(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{"5jKQ":function(e,t,o){"use strict";o.d(t,"a",(function(){return p}));var a=o("wd/R"),r=o("qHG9"),n=o("eVvo"),i=o("Rx7G"),l=o("AcpL"),s=(o("kQ89"),o("z4V5")),c=o("AytR"),m=o("kHqD"),h=o("CcnG"),u=o("gIcY"),p=function(){function e(e,t,o,a,r){this.hsh=e,this.hotelStateService=t,this.generalState=o,this.hotelService=a,this.fb=r,this.hotelReviewAdapter=new s.a(this.hotelStateService,this.generalState,this.fb)}return e.prototype.mergeHotelDetailsContentResponseWithHotelReviewDetailsVM=function(e){var t,o=this;e&&e.hotel&&(this.hotelStateService.HotelReviewDetails.hotelSummary={},this.hotelStateService.HotelReviewDetails.hotelSummary.hotelName=e.hotel.name,this.hotelStateService.HotelReviewDetails.hotelSummary.hotelCode=e.hotel.id,this.hotelStateService.HotelReviewDetails.hotelSummary.locationName=e.hotel.locationName,this.hotelStateService.HotelReviewDetails.hotelSummary.starRating=Math.floor(e.hotel.starRating),this.hotelStateService.HotelReviewDetails.hotelSummary.checkInTime=e.hotel.checkinInfo&&e.hotel.checkinInfo.beginTime?e.hotel.checkinInfo.beginTime:"2 PM",this.hotelStateService.HotelReviewDetails.hotelSummary.checkOutTime=e.hotel.checkoutInfo&&e.hotel.checkoutInfo.time?e.hotel.checkoutInfo.time:"11 AM",this.hotelStateService.HotelReviewDetails.hotelSummary.positionX=e.hotel.geoCode.lat,this.hotelStateService.HotelReviewDetails.hotelSummary.positionY=e.hotel.geoCode.long,this.hotelStateService.HotelReviewDetails.hotelSummary.pinCode=e.hotel.contact.address.postalCode,this.hotelStateService.HotelReviewDetails.hotelSummary.address="",e.hotel.contact.address.line1&&(this.hotelStateService.HotelReviewDetails.hotelSummary.address=e.hotel.contact.address.line1),e.hotel.contact.address.line2&&(this.hotelStateService.HotelReviewDetails.hotelSummary.address=this.hotelStateService.HotelReviewDetails.hotelSummary.address+" "+e.hotel.contact.address.line2),e.hotel.descriptions&&e.hotel.descriptions.length>0&&e.hotel.descriptions.forEach((function(e){"location"===e.type&&(o.hotelStateService.HotelReviewDetails.hotelSummary.hotelDescription=e.text)})),this.hotelStateService.HotelReviewDetails.hotelRoomDetails=[],e.hotel.facilities&&e.hotel.facilities.length>0&&e.hotel.facilities.forEach((function(e){var t={hotelDetailCode:"Amenity",hotelDetailName:"Amenity"};t.hotelDetailDescription=e.name,o.hotelStateService.HotelReviewDetails.hotelRoomDetails.push(t)})),e.hotel.policies&&e.hotel.policies.length>0&&e.hotel.policies.forEach((function(e){var t={hotelDetailCode:"Policies"};t.hotelDetailName=e.type&&""!==e.type?e.type.replace(/\_/g," "):"",t.hotelDetailDescription=""===e.text?"":e.text.replace(/