1(this["webpackJsonpreact-spotlio-booking"]=this["webpackJsonpreact-spotlio-booking"]||[]).push([[33],{603:function(e,t,a){},637:function(e,t,a){},665:function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var i=a(531),n=a(459),s=a(458),c=a(461),o=a(460),l=a(4),r=a.n(l),d=a(2529),u=a(2546),p=a(2547),b=a(2591),j=a(2548),m=a(520),g=a(527),O=a(547),h=a(752),f=a(570),x=a(716),v=a(528),y=a(463),N=a(457),P=a(475),k=a(467),S=(a(603),a(86)),I=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,t,[e])).getRoomInformation=function(e){return new Promise((function(t,a){Object(k.a)({method:"GET",url:"".concat(Object(N.F)().api,"/activities/details?id=").concat(Object(N.F)().id,"&salesId=").concat(Object(P.a)(),"&supplierId=").concat(e.SupplierId,"&productId=").concat(e.ProductId,"&startDate=").concat(Object(N.m)().lodging.arrivalDate)}).then((function(e){if("string"===typeof e)return!0;t(e.data)})).catch((function(e){a(e)}))}))},a.addToCart=function(e,t){a.props.addToCart(e,t)},a.state={showAmenities:!1,list:a.props.element?a.props.element.Products_Lodging:[]},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=!1;this.props.element.SupplierAttributes&&Array.isArray(this.props.element.SupplierAttributes)&&(this.props.element.SupplierAttributes.filter((function(e){return 44!==e.CodeType&&502!==e.CodeType&&e.Value>0})).length&&(t=!0));this.props.sectionConfiguration&&this.props.sectionConfiguration.showImageOnRoom?this.setState({loadingRooms:!0,showAmenities:t},(function(){var a=e.props.element.Products_Lodging.map((function(t){return e.getRoomInformation(t).catch((function(e){console.error(e)}))}));Promise.all(a).then((function(a){var n=Object(i.a)(e.state.list);a.forEach((function(e){var t=n.indexOf(n.find((function(t){return t.ProductId===e.ProductId})));n[t].Image=e.Image,n[t].Description=e.Description})),e.setState({loadingRooms:!1,showAmenities:t,list:n})}))})):this.setState({showAmenities:t})}},{key:"render",value:function(){var e=this.props,t=e.index,a=e.element,i=e.loadingSearch,n=e.sectionConfiguration,s=e.featuredCondition,c=this.props.element.HighlightedSupplierAttributes.length+this.props.element.SupplierAttributes.length>0,o="supplier.tabs.units",l="lodging.location.photos",P="lodging.location.location";return n&&n.label_customization&&(n.label_customization[o]&&(o=n.label_customization[o]),n.label_customization[l]&&(l=n.label_customization[l]),n.label_customization[P]&&(P=n.label_customization[P])),Object(S.jsx)(u.a,{item:!0,xs:12,className:"item lodgingDetails ".concat(s?" featured":""),children:Object(S.jsx)("div",{className:"tabWrapper",children:this.props.isSupplierPage?Object(S.jsxs)(r.a.Fragment,{children:[Object(S.jsx)(p.a,{position:"static",className:"tabBar",children:Object(S.jsxs)(b.a,{className:"tabsMenu",value:this.props.value,onChange:this.props.handleChange,indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollbuttons:"on",children:[Object(S.jsx)(j.a,{value:0,className:"tabOption",label:Object(S.jsxs)(r.a.Fragment,{children:[Object(S.jsx)(y.a,{id:"supplier.tabs.units"})," ",this.state.list&&this.state.list.length>0?Object(S.jsxs)("span",{style:{fontWeight:350},children:["(",this.state.list.length,")"]}):null," "]})}),Object(S.jsx)(j.a,{value:1,className:"tabOption",label:Object(S.jsx)(y.a,{id:"supplier.tabs.description"})}),this.state.showAmenities&&n&&n.showAmenities&&c&&Object(S.jsx)(j.a,{value:2,className:"tabOption",label:Object(S.jsx)(y.a,{id:"supplier.tabs.amenities"})}),a.Trustyou&&a.Trustyou.api_response&&null!==a.Trustyou.api_response.score?Object(S.jsx)(j.a,{value:3,className:"tabOption",label:Object(S.jsx)(y.a,{id:"lodging.location.reviews"})}):null,n&&n.showSupplierPolicies&&Object(S.jsx)(j.a,{value:4,className:"tabOption",label:Object(S.jsx)(y.a,{id:"supplier.tabs.policies"})})]})}),Object(S.jsxs)("div",{className:"tabPanes",children:[0===this.props.value&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(h.a,{componentName:this.props.componentName,section:this.props.section,supplier:a,form:this.props.form,roomPricing:this.props.roomPricing,sectionConfiguration:n,loadingSearch:i,currentStep:this.props.currentStep,updateStep:this.props.updateStep,onlyProduct:this.props.onlyProduct,addToCart:this.addToCart.bind(this),compact:this.props.compact,policies:a.Policies,list:a.Products_Lodging})}),1===this.props.value&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(d.a,{dangerouslySetInnerHTML:{__html:a.Supplier.SupplierDescription},variant:"body1",gutterBottom:!0,className:"supplierDescription"})}),2===this.props.value&&Object(S.jsxs)("div",{className:"tabPane",children:[this.props.element.HighlightedSupplierAttributes&&this.props.element.HighlightedSupplierAttributes.length>0?Object(S.jsx)("div",{className:"highlightedAmenities",style:{display:"none"},children:Object(S.jsx)("div",{children:Object(S.jsx)(x.a,{elements:this.props.element.HighlightedSupplierAttributes})})}):null,Object(S.jsx)(f.a,{elements:this.props.element.SupplierAttributes})]}),3===this.props.value&&a.Trustyou&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)("iframe",{title:"reviews",src:a.Trustyou.reviews})}),4===this.props.value&&this.props.policies&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(d.a,{className:"longparagraph",variant:"body1",gutterBottom:!0,children:Object(S.jsx)(v.a,{element:this.props.policies})})})]})]}):Object(S.jsxs)(r.a.Fragment,{children:[Object(S.jsx)(p.a,{position:"static",className:"tabBar",children:Object(S.jsxs)(b.a,{className:"tabsMenu",value:this.props.value,onChange:this.props.handleChange,indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto",children:[Object(S.jsx)(j.a,{value:0,className:"tabOption",label:Object(S.jsx)(y.a,{id:o})}),(n&&!0!==n.hideDescriptionTab||window.innerWidth<=991)&&Object(S.jsx)(j.a,{value:1,className:"tabOption",label:Object(S.jsx)(y.a,{id:"lodging.location.description"})}),a.Images.length>0?Object(S.jsx)(j.a,{value:2,className:"tabOption",label:Object(S.jsx)(y.a,{id:l})}):null,a.Supplier.Lat&&!1!==Object(N.F)().app.enableMap?Object(S.jsx)(j.a,{value:3,className:"tabOption",label:Object(S.jsx)(y.a,{id:P})}):null,a.Trustyou&&a.Trustyou.api_response&&null!==a.Trustyou.api_response.score?Object(S.jsx)(j.a,{value:4,className:"tabOption",label:Object(S.jsx)(y.a,{id:"lodging.location.reviews"})}):null,n&&n.showSupplierPolicies&&Object(S.jsx)(j.a,{value:5,className:"tabOption",label:Object(S.jsx)(y.a,{id:"supplier.tabs.policies"})}),this.state.showAmenities&&n&&n.showAmenities&&Object(S.jsx)(j.a,{value:6,className:"tabOption",label:Object(S.jsx)(y.a,{id:"supplier.tabs.amenities"})})]})}),Object(S.jsxs)("div",{className:"tabPanes",children:[0===this.props.value&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(h.a,{componentName:this.props.componentName,loadingRooms:this.state.loadingRooms,amountOfComponents:this.props.amountOfComponents,supplier:a,section:this.props.section,roomPricing:this.props.roomPricing,sectionConfiguration:this.props.sectionConfiguration,currentStep:this.props.currentStep,updateStep:this.props.updateStep,displayType:this.props.displayType,onlyProduct:this.props.onlyProduct,addToCart:this.addToCart.bind(this),compact:this.props.compact,policies:a.Policies,list:this.state.list})}),1===this.props.value&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(d.a,{dangerouslySetInnerHTML:{__html:a.Supplier.SupplierDescription},variant:"body1",gutterBottom:!0,className:"supplierDescription"})}),2===this.props.value&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(m.a,{children:a.Images.map((function(e,t){return Object(S.jsxs)(r.a.Fragment,{children:[e.ImageCaption?Object(S.jsx)("div",{className:"caption",children:e.ImageCaption}):null,Object(S.jsx)(g.a,{source:e.Delivery.large+e.FileName,alt:a.Supplier.SupplierName})]})}))})}),3!==this.props.value||a.customMap?3===this.props.value&&a.customMap?Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)("iframe",{title:a.ProductName,className:"customMap",src:a.customMap})}):null:Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(O.a,{class:"mobilemap",update:!0,marker:a,height:"300px",width:"100%",display:!0})}),4===this.props.value&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)("iframe",{title:"reviews",src:a.Trustyou.reviews})}),5===this.props.value&&this.props.policies&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(d.a,{className:"longparagraph",variant:"body1",gutterBottom:!0,children:Object(S.jsx)(v.a,{element:this.props.policies})})}),6===this.props.value&&n.showAmenities&&Object(S.jsx)("div",{className:"tabPane",children:Object(S.jsx)(f.a,{elements:this.props.element.SupplierAttributes})})]})]})})},t+"cell-details")}}])}(l.Component)},716:function(e,t,a){"use strict";a(4);var i=a(462),n=(a(829),a(86));t.a=function(e){return Object(n.jsx)("div",{className:"listHighlightedAmenities",children:e.elements.map((function(e,t){var a;return a=e.icon.includes("http")?Object(n.jsx)("img",{src:e.icon,alt:"".concat(e.name," icon")}):Object(n.jsx)(i.a,{icon:e.icon}),Object(n.jsxs)("div",{className:"amenity",children:[Object(n.jsx)("span",{className:"icon",children:a}),Object(n.jsx)("span",{className:"name",children:e.name})]},t)}))})}},752:function(e,t,a){"use strict";a.d(t,"a",(function(){return oe}));var i=a(4),n=a.n(i),s=a(2546),c=a(470),o=a(2544),l=a(2529),r=a(2590),d=a(2547),u=a(2591),p=a(2548),b=a(110),j=a(459),m=a(458),g=a(461),O=a(460),h=a(464),f=a.n(h),x=a(2520),v=a(148),y=a(478),N=a(472),P=a(477),k=a(520),S=a(527),I=a(528),D=a(484),C=a(806),M=a(543),w=a(570),A=a(462),T=a(547),F=a(469),_=a(475),L=a(463),B=a(457),Y=a(545),R=a(569),W=a(481),z=a(466),H=a(492),Q=a(86),E=function(e){var t=e.visible,a=e.message,i=e.notAvailableInfoModalOpen;return Object(Q.jsx)(y.a,{container:function(){return document.getElementsByClassName("main-application")[0]}
1,open:t,classname:"notAvailableInfo",closeFn:i.bind(undefined,!1),footerContent:Object(Q.jsx)(n.a.Fragment,{children:Object(Q.jsx)(x.a,{onClick:function(){return i(!1)},className:"secondary",children:Object(Q.jsx)(L.a,{id:"profile.itinerary.modal.close"})})}),children:Object(Q.jsx)("div",{className:"body",children:a})})},U=a(517),q=a(467),G=function(e){function t(e){var a;return Object(j.a)(this,t),(a=Object(g.a)(this,t,[e])).updateDimensions=function(){a.setState({width:window.innerWidth})},a.getDayClassName=function(e){var t=a.state.availability.find((function(t){return t.Date===e.format("MM/DD/YYYY")}));return t?"0"===t.Saleable&&"1"===t.InWindow||"1"===t.Saleable&&"1"===t.InWindow&&"0"===t.Qty?"redDay":"0"===t.Saleable&&"0"===t.InWindow?"greyDay":"1"!==t.MinStay?"lightGreenDay":"defaultDay":"greyDay"},a.renderSpecialConditions=function(e){var t=a.state.availability.find((function(t){return t.Date===e.format("MM/DD/YYYY")})).MinStay;a.setState({days:{date:e,days:t}})},a.parseDay=function(e){var t=a.getDayClassName(e);return Object(Q.jsxs)("div",{onMouseEnter:function(){return"lightGreenDay"===t?a.renderSpecialConditions(e):null},onMouseLeave:function(){return a.setState({days:{}})},className:"day "+t,children:[a.state.days.date===e&&Object(Q.jsxs)("div",{className:"tooltip",children:["This date could only be booked for stays longer than ",a.state.days.days," nights."]}),e.format("DD")]})},a.state={availability:null,loading:!0,days:{},width:window.innerWidth},a}return Object(O.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.addEventListener("resize",this.updateDimensions),Object(q.a)({url:Object(B.F)().api+"/inntopia/lodging/supplier/room/availability?salesId="+Object(_.a)()+"&supplierId="+this.props.room.SupplierId+"&productId="+this.props.room.ProductId+"&startMonth="+f.a.utc(this.props.form.lodging.arrivalDate).format("M")+"&startYear="+f.a.utc(this.props.form.lodging.arrivalDate).format("YYYY"),method:"GET"}).then((function(t){!1===t.data?e.setState({error:!0,loading:!1}):e.setState({availability:t.data.Day,loading:!1})}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"render",value:function(){var e=this,t=this.state,a=this.props,i=t.width,n=t.availability,s=t.loading,c=a.form,o={numberOfMonths:3};return i<=991&&(o={enableOutsideDays:!0,daySize:32,numberOfMonths:1,verticalHeight:750}),s?null:Object(Q.jsxs)("div",{className:"availability",children:[n?Object(Q.jsx)(U.SingleDatePicker,Object(b.a)(Object(b.a)({weekDayFormat:"dd",hideKeyboardShortcutsPanel:!0,className:"AvailabilityCalendar",onFocusChange:function(){return!0},readOnly:!0,date:f()(c.lodging.arrivalDate),focused:!0,autoFocus:!0,verticalSpacing:-58,daySize:28,firstDayOfWeek:0,initialVisibleMonth:function(){return f()(c.lodging.arrivalDate)},renderDayContents:function(t){return e.parseDay(t)}},o),{},{transitionDuration:0,navNext:Object(Q.jsx)("div",{className:"nextArrow",children:Object(Q.jsx)(A.a,{icon:"iw-right_arrow"})}),navPrev:Object(Q.jsx)("div",{className:"prevArrow",children:Object(Q.jsx)(A.a,{icon:"iw-left_arrow"})})})):Object(Q.jsx)("p",{children:"No availability data found for this unit."}),Object(Q.jsxs)("div",{className:"legend",children:[Object(Q.jsxs)("div",{className:"legendMobile",children:[Object(Q.jsxs)("div",{className:"availableMob",children:[Object(Q.jsx)("div",{children:" "}),Object(Q.jsx)("div",{children:"Available"})]}),Object(Q.jsxs)("div",{className:"specialConditionsMob",children:[Object(Q.jsx)("div",{children:" "}),Object(Q.jsx)("div",{children:"Available with special conditions hover for details"})]})]}),Object(Q.jsxs)("div",{className:"notAvailable",children:[Object(Q.jsx)("span",{children:"day"}),Object(Q.jsx)("span",{children:"Not available"})]}),Object(Q.jsxs)("div",{className:"specialConditions",children:[Object(Q.jsx)("span",{children:"day"}),Object(Q.jsx)("span",{children:"DATE WITH SPECIAL CONDITIONS (Hover for more info)"})]}),Object(Q.jsxs)("div",{className:"available",children:[Object(Q.jsx)("span",{children:"day"}),Object(Q.jsx)("span",{children:"Available"})]})]})]})}}])}(n.a.Component);var J=Object(v.b)((function(e){return{form:e.form.form}}))(G),V=(a(571),a(480),a(544)),K=function(e){function t(e){var a;return Object(j.a)(this,t),(a=Object(g.a)(this,t,[e])).packageInfoModalOpen=function(e,t){if(window.innerWidth<992)return null;a.setState({indexPackage:e}),a.setState({modal:t})},a.notAvailableInfoModalOpen=function(e){a.setState({modalNotAvailable:e})},a.addToCart=function(e){a.setState({loading:!0});var t=[],i={ArrivalDate:f.a.utc(new Date(a.props.form.lodging.arrivalDate)).format("YYYY-MM-DD"),DepartureDate:f.a.utc(new Date(a.props.form.lodging.departureDate)).format("YYYY-MM-DD"),AdultCount:a.props.form.lodging.adults,ChildCount:a.props.form.lodging.children};a.props.form.lodging.childrenAges&&(i=Object(b.a)(Object(b.a)({},i),{},{childrenAges:a.props.form.lodging.childrenAges.join(",")})),t.push(Object(b.a)(Object(b.a)({},i),{},{SalesId:Object(_.a)(),SupplierId:a.props.element.SupplierId,LocationId:a.props.element.LocationId,ProductId:e.ProductId,Quantity:1,hasTotalPrice:!0})),Object(H.a)({itineraryitems:JSON.stringify(t),productWithFullInfo:Object(b.a)(Object(b.a)({},a.props.element),{},{CategoryName:"lodging",Quantity:1})}).then((function(e){var t=a.state;t.loading=!1,e.ItemsAddedList?(Object(B.Y)(e.ItineraryId),null!==e.UpsellItemList&&e.UpsellItemList&&e.UpsellItemList.length>0?Object(R.c)(e.UpsellItemList).then((function(e){e?(t.bundleObject=e,t.isBundle=!0,a.setState(t)):Object(F.a)("/shopping-cart/review")}
1)):(t.isBundle=!1,a.setState(t),a.checkForLodgingAddOn())):(t.errorMessage=e,t.modalNotAvailable=!0,a.setState(t))}))},a.addPackage=function(e){a.setState({loading:!0});var t=Object(B.m)().lodging,i=[{ArrivalDate:f.a.utc(new Date(t.arrivalDate)).format("YYYY-MM-DD"),DepartureDate:f.a.utc(new Date(t.departureDate)).format("YYYY-MM-DD"),AdultCount:t.adults,ChildCount:t.children,SupplierId:e.SupplierId,ProductId:e.ProductId,Quantity:e.QuantityTotal,PackageComponentId:e.ComponentId}];Object(H.d)({itineraryitems:JSON.stringify(i),packageId:e.PackageId,productWithFullInfo:[Object(b.a)(Object(b.a)({},e),{},{Image:a.props.element&&a.props.element.Image,ProductCategoryId:a.props.element&&a.props.element.CategoryId})],section:a.props.section}).then((function(e){a.setState({loading:!1}),Object(B.Y)(e.ItineraryId),Object(F.a)("/shopping-cart/review")}))},a.getUpperPricing=function(e){var t=null;return e.savings.percent>0&&(t=Object(Q.jsxs)("div",{className:"discount flag",children:[a.showDiscountMinus?"-":"",e.savings.percent,"%"]})),t},a.checkForLodgingAddOn=function(){var e=a.props.config;e&&e.activitiesModal&&e.activitiesModal.enabled&&(e.activitiesModal.whiteList&&e.activitiesModal.whiteList.find((function(e){return Object(B.l)().indexOf(e)>=0}))||!e.activitiesModal.whiteList)?a.setState({activitiesModal:1,bundleObject:Object(R.d)(a.state.bundleObject,!1)}):Object(F.a)("/shopping-cart/review")},a.isAtLeastOneBundleSelected=function(){var e=a.state.bundleObject.bundles[a.state.bundleObject.currentIndexModal];if(e){var t=!0;return e.childProducts.forEach((function(e){e.QuantitySelected&&(t=!1)})),t}return!0},a.getFlags=function(e,t){var i=a.props.config,n=Object(Q.jsx)("div",{className:"flag typeflag packageflag",children:"Package"}),s=Object(Q.jsx)("div",{className:"flag roomOnly typeflag",children:Object(z.a)(t)});if(0===e){if(!0!==i.hideRoomFlag)return s}else if(!0!==i.hidePackageFlag)return n;return null},a.temporalFixImageDelivery=function(e){return e=(e=e.replace("h-125,","")).replace("h-420,","")},a.getBookNowCallBack=function(e,t,i,n){return n&&n.externalLink&&n.externalLink.enabled&&n.externalLink.list&&n.externalLink.list.find((function(e){return e.id===i.SupplierId}))?Object(F.a)(n.externalLink.list.find((function(e){return e.id===i.SupplierId})).link,!0):e.IsLodgingOnly?a.addToCart(e):0===e.HasOptionalComponents?a.addPackage(Object(b.a)(Object(b.a)({},e),{},{ProductName:i.ProductName,SupplierName:i.SupplierName})):Object(F.a)(t,void 0===n.newPackageTab||n.newPackageTab)},a.getPriceText=function(){return Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsx)("span",{children:Object(z.a)("lodging.package.".concat(a.lodgingOffersPricing.primaryPrice.timeSpan))}),Object(V.a)(a.props.element)]})},a.state={modal:!1,modalNotAvailable:!1,indexPackage:0,loading:!1,errorMessage:"",availability:null,isBundle:!1,bundleObject:{bundles:[],bundleModal:[],currentIndexModal:null,productNameBundle:[],incorrectAmount:!1},activitiesModal:!1},a.lodgingOffersPricing={primaryPrice:{type:"price",timeSpan:"perNight"},secondaryPrice:[{type:"original",timeSpan:"perStay"},{type:"savings",timeSpan:"perStay"},{type:"price",timeSpan:"perStay"}]},a.configurePackageMessage=!1,a.showDiscountMinus=!0,a.props.config&&(a.props.config.lodgingOffersPricing&&(a.lodgingOffersPricing=a.props.config.lodgingOffersPricing),a.props.config.configurePackageMessage&&(a.configurePackageMessage=a.props.config.configurePackageMessage),void 0!==a.props.config.showDiscountMinus&&(a.showDiscountMinus=a.props.config.showDiscountMinus)),a}return Object(O.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.element.Packages;this.setState({packages:t,loading:!1},(function(){t.forEach((function(t){Object(W.d)("view_item",[Object(b.a)(Object(b.a)({},t),{},{ProductName:e.props.element.ProductName,SupplierName:e.props.element.SupplierName})],e.props.section)}))}))}},{key:"sortFunction",value:function(e,t){var a="PackagePrice",i="asc";return this.props.config&&this.props.config.unitPackageSort&&(a=this.props.config.unitPackageSort.field,i=this.props.config.unitPackageSort.order),e[a]<t[a]?"asc"===i?-1:1:e[a]>t[a]?"asc"===i?1:-1:0}},{key:"render",value:function(){var e=this,t=this.state,a=this.props,i=this.lodgingOffersPricing,c=this.getUpperPricing,o=a.index,r=a.element,j=a.handleChange,m=a.value,g=a.policies,O=a.config,h=a.onlyPackages,v=void 0!==h&&h,_=a.onlyRooms,B=void 0!==_&&_,W=t.packages,H=r.Attributes&&r.Attributes.filter((function(e){return 53===e.CodeType})).length>0,U="lodging.package.book_now",q="supplier.tabs.photos",G="lodging.package.title_room_only";return O&&O.label_customization&&(O.label_customization[U]&&(U=O.label_customization[U]),O.label_customization[q]&&(q=O.label_customization[q]),O.label_customization[G]&&(G=O.label_customization[G])),Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsxs)(s.a,{item:!0,xs:12,className:"item roomDetails",children:[Object(Q.jsxs)("div",{className:"tabWrapperRoom",children:[Object(Q.jsx)(d.a,{position:"static",className:"tabBar",children:Object(Q.jsxs)(u.a,{className:"tabsMenu",value:m,onChange:j,indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto",children:[Object(Q.jsx)(p.a,{value:0,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lo.titles.main"})}),O&&!0!==O.hideDescriptionTab&&r.ProductDescription&&Object(Q.jsx)(p.a,{value:1,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lodging.product.unit_description"})}),r.Images&&r.Images.length>0?Object(Q.jsx)(p.a,{value:2,className:"tabOption",label:Object(Q.jsx)(L.a,{id:q})}):null,O&&O.showAmenities&&H?Object(Q.jsx)(p.a,{value:3,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"supplier.tabs.amenities"})}):null,O&&O.hideAvailabilityTab?null:Object(Q.jsx)(p.a,{value:4,className:"tabOption",label:Object(z.a)("lodging.product.availability")}),r.Lat&&r.Lng?Object(Q.jsx)(p.a,{value:5,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lodging.product.unit_location"})}):null,Object(Q.jsx)(p.a,{value:6,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"supplier.tabs.policies"})})]})}),Object(Q.jsxs)("div",{className:"tabPanes",children:[0===m&&Object(Q.jsx)("div",{className:"tabPane ".concat(this.props.config&&this.props.config.inlineUnits?"inline":""),children:W&&W.length>0&&Object(Q.jsx)("div",{className:"packages",children:W.sort(this.sortFunction.bind(this)).map((function(t,a){var n="/packages/"+Object(Y.a)(t.PackageName)+"/"+t.PackageId+"?arrivalDate="+f.a.utc(e.props.form.lodging.arrivalDate).format("YYYY-MM-DD")+"&departureDate="+f.a.utc(e.props.form.lodging.departureDate).format("YYYY-MM-DD")+"&adults="+e.props.form.lodging.adults+"&children="+e.props.form.lodging.children+"&supplierId="+r.SupplierId+"&productId="+r.ProductId;return t.Visible?v&&0===t.HasOptionalComponents||B&&0!==t.HasOptionalComponents?null:Object(Q.jsxs)(Q.Fragment,{children:[Object(Q.jsxs)("div",{className:"package",children:[Object(Q.jsx)("div",{className:"multimedia",children:Object(Q.jsx)("img",{src:e.temporalFixImageDelivery(r.Image.Delivery)+r.Image.FileName,alt:r.ProductName})}),Object(Q.jsxs)("div",{className:"mainInfo",children:[Object(Q.jsxs)("div",{style:{cursor:"pointer"},onClick:function(){return e.packageInfoModalOpen(a,!0)},className:"name",children:[Object(Q.jsx)("h5",{className:"title",children:t.PackageName}),e.props.config&&e.props.config.disabledRoomDetailsSubtitle?null:1===t.HasOptionalComponents&&Object(Q.jsx)("h6",{className:"subtitle",children:"".concat(t.Subtitle," + ").concat(Object(z.a)("lbundle.component.optional"))}),Object(Q.jsxs)("div",{className:"flags",children:[e.getFlags(t.HasOptionalComponents,G),c(t.Pricing)]})]}),Object(Q.jsxs)("div",{className:"pricing",children:[Object(Q.jsx)("div",{className:"secondaryPrices",children:O.overWritePricingWithDisplayType&&3!==t.Dis
1playType?i.secondaryPrice.map((function(e,a){switch(e.type){case"original":return t.Pricing.original[e.timeSpan]===t.Pricing.price[e.timeSpan]?null:Object(Q.jsxs)("div",{className:"original",children:[Object(Q.jsx)(P.a,{strikeThrough:!0,value:t.Pricing.original[e.timeSpan],float:!0,onlyOriginal:!0}),Object(Q.jsx)("span",{className:"perStay",children:Object(z.a)("lodging.package.".concat(e.timeSpan))})]},e.type+a);case"savings":return 0===t.Pricing.savings[e.timeSpan]||O.overWritePricingWithDisplayType&&1===t.DisplayType?null:Object(Q.jsxs)("div",{className:"savings",children:["save ",Object(Q.jsx)(P.a,{value:t.Pricing.savings[e.timeSpan],onlyOriginal:!0})]},e.type+a);case"price":return O.overWritePricingWithDisplayType&&1===t.DisplayType?null:Object(Q.jsxs)("div",{className:"stay",children:[Object(Q.jsx)(P.a,{value:t.Pricing.price[e.timeSpan],float:!0}),Object(Q.jsx)("span",{className:"perStay",children:Object(z.a)("lodging.package.".concat(e.timeSpan))})]},e.type+a);default:return null}})):null}),Object(Q.jsxs)("div",{className:"booknow",children:[Object(Q.jsxs)("div",{className:"avg",children:[Object(Q.jsx)(P.a,{float:O&&O.avgNightFloat,value:t.Pricing[O.overWritePricingWithDisplayType&&3===t.DisplayType?"original":i.primaryPrice.type][i.primaryPrice.timeSpan]}),Object(Q.jsx)("span",{className:"avgText",children:Object(z.a)("lodging.package.".concat(i.primaryPrice.timeSpan))})]}),Object(Q.jsx)(N.a,{loading:e.state.loading,callBack:function(){return e.getBookNowCallBack(t,n,r,O)},className:"book",children:0===t.HasOptionalComponents?Object(z.a)(U):e.configurePackageMessage?e.configurePackageMessage:Object(Q.jsxs)(Q.Fragment,{children:[Object(z.a)("lodging.package.configure.package")," ",Object(Q.jsx)(A.a,{icon:"feather-arrow-right"})]})})]})]})]})]},"package"+a),Object(Q.jsx)("div",{className:"mobileConfigurePackageButton",children:Object(Q.jsx)(N.a,{loading:e.state.loading,callBack:function(){return e.getBookNowCallBack(t,n,r,O)},className:"book",children:0===t.HasOptionalComponents?Object(z.a)("lbundle.summary.button.book_it"):e.configurePackageMessage?e.configurePackageMessage:Object(Q.jsxs)(Q.Fragment,{children:[Object(z.a)("lodging.package.configure.package")," ",Object(Q.jsx)(A.a,{icon:"feather-arrow-right"})]})})})]}):null}))})}),1===m&&r.ProductDescription?Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(l.a,{variant:"body1",gutterBottom:!0,children:r.ProductDescription})}):null,2===m&&Object(Q.jsx)("div",{className:"tabPane",children:r.Images?Object(Q.jsx)(k.a,{children:r.Images.map((function(t,a){return Object(Q.jsxs)(n.a.Fragment,{children:[t.ImageCaption?Object(Q.jsx)("div",{className:"caption",children:t.ImageCaption}):null,Object(Q.jsx)(S.a,{source:e.temporalFixImageDelivery(t.Delivery.large)+t.FileName,alt:r.ProductName})]},"roomImg_ "+a)}))}):Object(Q.jsx)(S.a,{alt:r.ProductName,source:r.Image.FileName})}),3===m&&O.showAmenities&&Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(w.a,{type:"rooms",elements:r.Attributes})}),4===m&&Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(J,{room:r})}),5===m&&r.Lat&&r.Lng?Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(T.a,{class:"mobilemap",update:!0,marker:Object(b.a)(Object(b.a)({},r),{},{Supplier:{Lat:r.Lat,Lng:r.Lng}}),height:"300px",width:"100%",display:!0})}):null,6===m&&Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(l.a,{variant:"body1",gutterBottom:!0,children:Object(Q.jsx)(I.a,{element:r.Policies||g})})})]})]}),r.Packages&&r.Packages.length>0?Object(Q.jsx)(y.a,{container:function(){return document.getElementsByClassName("package")[0]},open:this.state.modal,title:r.Packages[this.state.indexPackage].PackageName,classname:"packageInfo",closeFn:this.packageInfoModalOpen.bind(this,0,!1),footerContent:Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsx)(x.a,{onClick:function(){return e.packageInfoModalOpen(0,!1)},className:"secondary",children:Object(Q.jsx)(L.a,{id:"profile.itinerary.modal.close"})}),Object(Q.jsx)(x.a,{style:{backgroundColor:"#ff00ff !important"},onClick:function(){return r.Packages[e.state.indexPackage].IsLodgingOnly?e.addToCart(r.Packages[e.state.indexPackage]):0===r.Packages[e.state.indexPackage].HasOptionalComponents?e.addPackage(Object(b.a)(Object(b.a)({},r.Packages[e.state.indexPackage]),{},{ProductName:r.ProductName,SupplierName:r.SupplierName})):Object(F.a)("/packages/"+Object(Y.a)(r.Packages[e.state.indexPackage].PackageName)+"/"+r.Packages[e.state.indexPackage].PackageId+"?arrivalDate="+f.a.utc(e.props.form.lodging.arrivalDate).format("YYYY-MM-DD")+"&departureDate="+f.a.utc(e.props.form.lodging.departureDate).format("YYYY-MM-DD")+"&adults="+e.props.form.lodging.adults+"&children="+e.props.form.lodging.children+"&supplierId="+r.SupplierId+"&productId="+r.ProductId,void 0===O.
1newPackageTab||O.newPackageTab)},className:"primary",children:Object(Q.jsx)(L.a,{id:U})})]}),children:Object(Q.jsxs)("div",{className:"body",children:[this.getFlags(r.Packages[this.state.indexPackage].HasOptionalComponents,G),Object(Q.jsx)("div",{dangerouslySetInnerHTML:{__html:r.Packages[this.state.indexPackage].PackageDescription}}),Object(Q.jsx)(P.a,{float:!0,currency:"usd",value:r.Packages[this.state.indexPackage].PackagePrice})]})}):null,Object(Q.jsx)(E,{message:this.state.errorMessage,visible:this.state.modalNotAvailable,notAvailableInfoModalOpen:this.notAvailableInfoModalOpen})]},o+"cell-details"),Object(Q.jsx)(D.a,{container:document.getElementsByClassName("supplierSection")[0],open:this.state.bundleObject.bundleModal[this.state.bundleObject.currentIndexModal],title:this.state.bundleObject.bundles.length>0?this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].bundleName:void 0,className:"bundleInfo",noCloseButton:!0,closeFn:function(){return e.setState({bundleObject:Object(R.d)(e.state.bundleObject,!1)})},footerContent:this.state.bundleObject.bundles.length>0?Object(Q.jsxs)(n.a.Fragment,{children:[!1!==this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].optional?Object(Q.jsx)(N.a,{className:"secondary",onClick:function(){return e.state.bundleObject.currentIndexModal+1===e.state.bundleObject.bundles.length?e.checkForLodgingAddOn():e.setState({bundleObject:Object(R.d)(e.state.bundleObject,!1)})},children:Object(Q.jsx)(L.a,{id:"bundle.modal.close"})}):null,Object(Q.jsx)(N.a,{className:"primary",disabled:this.isAtLeastOneBundleSelected(),onClick:function(){return Object(R.a)(e.state.bundleObject.bundles[e.state.bundleObject.currentIndexModal],(function(t){return Object(R.b)(t).then((function(){e.state.bundleObject.currentIndexModal+1===e.state.bundleObject.bundles.length?e.checkForLodgingAddOn():e.setState({loadingBundle:!1,bundleObject:Object(R.d)(e.state.bundleObject,!1)})}))}))},children:"Add"})]}):null,children:Object(Q.jsx)("div",{className:"body",children:this.state.bundleObject.bundles.length>0?Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsxs)("div",{className:"originalProduct",children:[Object(Q.jsxs)("div",{children:[Object(Q.jsx)(L.a,{id:"bundle.modal.add_on_to"})," "+this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].productNameBundle]}),this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].bundleDescription,Object(Q.jsxs)("p",{children:[0!==this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].minAddOn?Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsx)(L.a,{id:"bundle.min.add_on_to"})," : "," "+this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].minAddOn]}):null," ",0!==this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].maxAddOn?Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsx)(L.a,{id:"bundle.max.add_on_to"})," : "," "+this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].maxAddOn]}):null]})]}),this.state.bundleObject.bundles[this.state.bundleObject.currentIndexModal].childProducts.map((function(t,a){return Object(Q.jsxs)("div",{className:"productBundle "+(a%2===0?"even":"odd"),children:[Object(Q.jsx)("div",{className:"productName",children:t.ProductName||t.productName}),Object(Q.jsxs)("div",{className:"prices",children:[t.Savings?Object(Q.jsx)("div",{className:"discount",children:t.Savings.label}):null,Object(Q.jsx)(P.a,{onlyOriginal:!0,float:!0,value:e.state.bundleObject.bundles[e.state.bundleObject.currentIndexModal].childProducts[a].QuantitySelected>1?e.state.bundleObject.bundles[e.state.bundleObject.currentIndexModal].childProducts[a].QuantitySelected*t.Price:t.Price})]}),Object(Q.jsx)("div",{className:"stepper",children:Object(Q.jsx)(M.a,{showSymbol:"x",whenChange:function(t,i){return e.setState({bundleObject:Object(R.e)(i,e.state.bundleObject,a)})},default:e.state.bundleObject.bundles[e.state.bundleObject.currentIndexModal].childProducts[a].QuantitySelected,value:null!==e.state.bundleObject.bundles[e.state.bundleObject.currentIndexModal].childProducts[a].QuantitySelected?e.
1state.bundleObject.bundles[e.state.bundleObject.currentIndexModal].childProducts[a].QuantitySelected:0,onlyDropDown:!0,min:0,max:e.state.bundleObject.bundles[e.state.bundleObject.currentIndexModal].maxAddOn<t.QuantityAvailable?e.state.bundleObject.bundles[e.state.bundleObject.currentIndexModal].maxAddOn:t.QuantityAvailable})})]})})),Object(Q.jsx)("span",{className:"errorAmount",children:this.state.bundleObject.incorrectAmount?Object(Q.jsx)(L.a,{id:"bundle.max.add_on_to_error"}):null})]}):void 0})}),Object(Q.jsx)(C.a,{onCloseModal:function(){return Object(F.a)("/shopping-cart/review")},config:O&&O.activitiesModal,open:this.state.activitiesModal,container:document.getElementsByClassName("supplierSection")[0]})]})}}])}(n.a.Component);var Z=Object(v.b)((function(e){return{form:e.form.form}}))(K),X=a(715),$=a(542),ee=a(501),te=(a(827),n.a.Component,a(554)),ae=a(525);a(828);function ie(e){var t=e.index,a=e.element,s=Object(i.useState)(!1),b=Object(c.a)(s,2),j=b[0],m=b[1],g=Object(i.useState)(!1),O=Object(c.a)(g,2),h=O[0],f=O[1],x=n.a.useState(0),v=Object(c.a)(x,2),y=v[0],N=v[1],C=Object(i.useState)(!0),M=Object(c.a)(C,2),R=M[0],H=(M[1],Object(i.useState)(!1)),E=Object(c.a)(H,2),U=E[0],G=E[1],J=Object(i.useState)(0),K=Object(c.a)(J,2),ie=K[0],ne=K[1],se=Object(i.useState)({}),ce=Object(c.a)(se,2),oe=ce[0],le=ce[1],re={primaryPrice:{type:"price",timeSpan:"perNight"},upperPrice:{type:"savings",timeSpan:"percent"}},de=Object(z.a)("lodging.location.save_up_to"),ue=!0,pe="Available Packages",be=e.config&&e.config.mobileRoomCellRatio?e.config.mobileRoomCellRatio:"half";e.config&&(e.config.roomPricing&&(re=e.config.roomPricing),e.config.discountMessage&&(de=e.config.discountMessage),void 0!==e.config.showDiscountMinus&&(ue=e.config.showDiscountMinus),e.config.packagesMessage&&(pe=e.config.packagesMessage),e.config.overWritePricingWithDisplayType&&e.element.Packages&&e.element.Packages[0]&&3===e.element.Packages[0].DisplayType&&(re.primaryPrice.type="original",re.upperPrice.type=null));var je=function(t,a){e.addToCart(t,a)};function me(e,t){N(t)}function ge(e){N(e)}var Oe=function(){return e.config&&e.config.lodgingOnlyAutoAdd&&1===e.amountOfComponents?"lbundle.summary.button.book_it":void 0!==e.onlyProduct?"promocode.results.change_lodge":"promocode.results.add_button"};function he(t,i){var n=null;switch(re[i].type){case"savings":"percent"===re.upperPrice.timeSpan&&t.savings.percent>0&&(n=Object(Q.jsxs)("div",{className:"discount",children:[de," ",ue?"-":"",t.savings.percent,"%"]}));break;case"original":case"price":n=Object(Q.jsxs)("div",{className:"finalPrice",children:[Object(Q.jsxs)("div",{className:"finalPriceDetails",children:[a.Packages.length>1&&Object(Q.jsx)("span",{children:Object(z.a)("lodging.product.from")}),Object(Q.jsx)(P.a,{float:e.config&&e.config.avgNightFloat,value:t[re[i].type][re.primaryPrice.timeSpan]})]}),Object(Q.jsx)("span",{className:"avg",children:Object(z.a)("lodging.package.".concat(re.primaryPrice.timeSpan))}),Object(V.a)(a)]});break;default:n=null}return n}function fe(e){var t=Object(B.F)();return t&&t.app&&t.app.showQuantityLeftOnLodgingProducts&&t.app.showQuantityLeftOnLodgingProducts.enabled&&t.app.showQuantityLeftOnLodgingProducts.limit>e?Object(Q.jsx)("div",{className:"quantityLeft",children:t.app.showQuantityLeftOnLodgingProducts.message.replace("[QUANTITY]",e)}):null}function xe(e){Object(q.a)({method:"GET",url:"".concat(Object(B.F)().api,"/activities/details?id=").concat(Object(B.F)().id,"&salesId=").concat(Object(_.a)(),"&supplierId=").concat(e.SupplierId,"&productId=").concat(e.ProductId,"&startDate=").concat(Object(B.m)().lodging.arrivalDate)}).then((function(e){200===e.status&&e.data&&(le(e.data),G(!0))}))}var ve="lodging.product.view_offers";e.config&&e.config.label_customization&&e.config.label_customization[ve]&&(ve=e.config.label_customization[ve]);var ye=!1;a.Packages.forEach((function(e){0!==e.HasOptionalComponents&&(ye=!0)}));var Ne=a.Packages.some((function(e){return 0===e.HasOptionalComponents})),Pe=a.Attributes&&a.Attributes.filter((function(e){return 53===e.CodeType})).length>0,ke=oe.Attributes&&oe.Attributes.filter((function(e){return 53===e.CodeType})).length>0,Se=function(e){return e=e.replace("h-125,","")};return Object(Q.jsxs)("div",{className:"roomCell",children:[Object(Q.jsxs)("div",{onClick:function(){window.innerWidth<=991&&!e.compact&&m(!0)},spacing:0,className:"item ".concat(be),children:[e.compact?Object(Q.jsxs)("div",{className:"compact",children:[e.config&&e.config.showImageOnRoom?Object(Q.jsx)("div",{className:"multimedia",children:e.loadingRooms?Object(Q.jsx)(o.a,{}):Object(Q.jsx)("img",{onClick:function(){return xe(a)},src:Se(a.Image.Delivery)+a.Image.FileName,alt:a.ProductName})}):null,Object(Q.jsxs)("div",{className:"titleWrapper",children:[fe(a.Quantity),Object(Q.jsxs)("div",{className:"title",children:[e.config&&e.config.showImageOnRoom?null:Object(Q.jsx)(A.a,{onClick:function(){return xe(a)},icon:"feather-info"}),Object(Q.jsx)(X.a,{element:a})]}),e.config&&e.config.showImageOnRoom?Object(Q.jsx)(l.a,{variant:"body2",component:"div",className:"description",children:Object(Q.jsx)($.a,{Function:function(){return xe(a)},text:a.Description,sufix:"...",limit:100,mode:"word"})}):null]}),function(t){var i={timeSpan:"perNight"};e.roomPricing&&e.roomPricing.timeSpan&&(i=e.roomPricing);var s=null;switch(t){case 1:s=Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsx)("span",{children:e.config&&e.config.showSavings&&Object(Q.jsxs)("div",{className:"packageSavings",children:[Object(z.a)("lodging.package.save"),Object(Q.jsx)(P.a,{float:!0,value:a.Pricing.savings[i.timeSpan]})]})}),Object(Q.jsxs)("span",{className:"originalPrice",children:[Object(Q.jsx)(P.a,{displayType:t,float:!0,strikeThrough:!0,value:a.Pricing.original[i.timeSpan]}),Object(Q.jsx)("div",{className:"avg",children:Object(z.a)("lodging.package.".concat(i.timeSpan))}),Object(V.a)(a)]}),Object(Q.jsx)(r.a,{onClick:function(){return je(a,e.index)},className:"primary",children:Object(Q.jsx)(L.a,{id:Oe()})})]});break;case 2:s=Object(Q.jsxs)(n.a.Fragment,{children:[e.config&&e.config.showSavings&&Object(Q.jsxs)("div",{className:"packageSavings",children:[Object(z.a)("lodging.package.save"),Object(Q.jsx)(P.a,{float:!0,value:a.Pricing.savings[i.timeSpan]})]}),Object(Q.jsx)("span",{style:a.OriginalPrice-a.Price===0?{visibility:"hidden"}:{},className:"originalPrice",children:Object(Q.jsx)(P.a,{displayType:t,float:!0,strikeThrough:!0,value:a.Pricing.original[i.timeSpan]})}),Object(Q.jsxs)("span",{children:[Object(Q.jsx)(P.a,{float:!0,value:a.Pricing.price[i.timeSpan]}),Object(Q.jsx)("div",{className:"avg",children:Object(z.a)("lodging.package.".concat(i.timeSpan))}),Object(V.a)(a)]}),Object(Q.jsx)(r.a,{onClick:function(){return je(a,e.index)},className:"primary",children:Object(Q.jsx)(L.a,{id:Oe()})})]});break;case 3:s=Object(Q.jsx)(r.a,{onClick:function(){return je(a,e.index)},className:"primary",children:Object(Q.jsx)(L.a,{id:Oe()})})}return s}(e.displayType)]}):Object(Q.jsxs)(n.a.Fragment,{children:[Object(Q.jsx)("div",{className:"multimedia",onClick:function(){window.innerWidth<=991||(f(!0),N(2))},children:Object(Q.jsx)("img",{src:Se(a.Image.Delivery)+a.Image.FileName,alt:a.ProductName})}),Object(Q.jsxs)("div",{className:"content",children:[Object(Q.jsxs)("div",{className:"mainInfo",children:[fe(a.Quantity),Object(Q.jsxs)("div",{className:"titleWrap",children:[Object(Q.jsx)(X.a,{config:e.config,element:a}),a.UnitRating?Object(Q.jsx)(te.a,{ratings:a.UnitRating}):null]}),function(t){var a=Object(B.m)().lodging,i=a.arrivalDate,n=a.departureDate,s=a.adults,c=a.children,o=a.childrenAges,l=void 0===o?[!1]:o,r=e.config&&e.config.showManagedBy?e.config.showManagedBy:{};if(r.enabled&&t.SupplierName&&t.SupplierName!==t.LocationName){var d="/supplier/".concat(Object(Y.a)(t.SupplierName),"/").concat(t.SupplierId,"/?arrivalDate=").concat(i,"&departureDate=").concat(n,"&adults=").concat(s,"&children=").concat(c).concat(l.indexOf(!1)<0?"&childrenAges="+l.toString():"");return Object(Q.jsxs)("div",{className:"managedBy",children:[Object(Q.jsxs)("span",{children:[r.label,": "]}),Object(Q.jsx)("span",{className:"".concat(r.enableLinkToSupplierPage?"managedByLink":null),onClick:function(){return r.enableLinkToSupplierPage?Object(F.a)(d,!0):null},children:t.SupplierName})]})}}(a),Object(Q.jsxs)("div",{className:"descriptionWrap",children:[Object(Q.jsx)(l.a,{variant:"body2",component:"div",className:"description",children:Object(Q.jsx)($.a,{Function:e.config&&e.config.showDescriptionInline?null:function(){f(!0),N(1)}.bind(this),text:a.ProductDescription,sufix:"...",limit:100,mode:"word"})}),a.Packages&&a.Packages.find((function(e){return void 0===e.IsLodgingOnly}))&&Object(Q.jsx)("span",{className:"flag",children:pe})]})]}),Object(Q.jsxs)("div",{className:"pricing",children:[he(a.Pricing,"upperPrice"),he(a.Pricing,"primaryPrice"),Object(Q.jsx)("div",{className:"main-cta",children:Object(Q.jsxs)(r.a,{onClick:function(){return!1===h&&Object(W.d)("productClick",e.element,"lodging"),f(!h),N(0),void(e.updateStep&&e.updateStep(3))},className:"primary",children:[Object(Q.jsx)(L.a,{id:ve}),h?Object(Q.jsx)(A.a,{size:14,icon:"feather-chevron-up"}):Object(Q.jsx)(A.a,{size:16,icon:"feather-chevron-down"})]})})]})]})]}),Object(Q.jsxs)(D.a,{outerClassName:"packageRoomModal",className:"packageRoomModal",open:U,title:a.ProductName,closeFn:function(){return G(!1)},children:[Object(Q.jsx)(k.a,{children:oe.Images?oe.Images.map((function(e,t){return Object(Q.jsxs)(n.a.Fragment,{children:[e.ImageCaption?Object(Q.jsx)("div",{className:"caption",children:e.ImageCaption}):null,Object(Q.jsx)(S.a,{source:e.FileName,alt:a.ProductName})]},"roomImg_ "+t)})):null}),Object(Q.jsxs)("div",{className:"tabs",style:{position:"relative"},children:[Object(Q.jsx)(d.a,{position:"static",className:"tabBar",children:Object(Q.jsxs)(u.a,{className:"tabsMenu",value:ie,onChange:function(e,t){return ne(t)},indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto",children:[Object(Q.jsx)(p.a,{value:0,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lodging.product.unit_description"})}),e.supplier&&e.supplier.Supplier&&e.supplier.Supplier.Lat&&!1!==Object(B.F)().app.enableMap?Object(Q.jsx)(p.a,{value:1,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lodging.location.location"})}):null,oe.Policies&&Object(Q.jsx)(p.a,{value:2,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"supplier.tabs.policies"})}),e.config&&e.config.showAmenities&&ke?Object(Q.jsx)(p.a,{value:3,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"supplier.tabs.amenities"})}):null]})}),Object(Q.jsxs)("div",{className:"tabPanes",children:[0===ie&&Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(l.a,{dangerouslySetInnerHTML:{__html:oe.Description},variant:"body1",gutterBottom:!0})}),1===ie&&Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(T.a,{class:"mobilemap",update:!0,marker:e.supplier,height:"300px",width:"100%",display:!0})}),2===ie&&Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(l.a,{className:"longparagraph",variant:"body1",gutterBottom:!0,children:Object(Q.jsx)(I.a,{element:oe.Policies})})}),3===ie&&Object(Q.jsx)("div",{className:"tabPane",children:Object(Q.jsx)(w.a,{type:"rooms",elements:oe.Attributes})})]})]}),Object(Q.jsxs)("div",{className:"bottomFixed",onClick:function(){return G(!1)},children:[Object(Q.jsx)(A.a,{icon:"feather-x"})," Close"]})]})]}),h&&Object(Q.jsx)(Z,{section:e.section,config:e.config,value:y,handleChangeIndex:ge.bind(this),handleChange:me.bind(this),policies:e.policies,index:t,element:a}),Object(Q.jsxs)(ee.a,{disablePortal:!0,onEscapeKeyDown:function(){return m(!1)},onBackdropClick:function(){return m(!1)},variant:"temporary",anchor:"bottom",open:j,className:"mobileProductsModal",paperStyles:{backgroundColor:"#F4F4F9",padding:"0 !important"},children:[Object(Q.jsx)(ae.a,{toggleButton:function(){return m(!1)},isBackButton:!0,currentStep:Object(Q.jsx)(X.a,{element:a,config:e.config,noStyles:!0}),pastSteps:[function(){var e="";
1if(Object(B.l)()){if(Object(B.l)().length>1)return e="Multiple destinations";Object(B.F)().multiDestination&&Object(B.F)().multiDestination.list.forEach((function(t){Object(B.l)().find((function(e){return parseInt(e)===parseInt(t.id)}))&&(e=t.name)}))}return e}(),e.element.LocationName],arrivalDate:e.form&&e.form.arrivalDate,departureDate:e.form&&e.form.departureDate,guests:e.form&&e.form.adults+e.form.children,mode:"lodging"}),Object(Q.jsxs)("div",{className:"wrapper",children:[Object(Q.jsx)("div",{className:"tabBarMobile",children:Object(Q.jsx)(d.a,{position:"static",className:"tabBar mobile",children:Object(Q.jsxs)(u.a,{className:"tabsMenu",value:y,onChange:me,indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto",children:[Object(Q.jsx)(p.a,{value:0,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lo.titles.main"})}),a.ProductDescription?Object(Q.jsx)(p.a,{value:1,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lodging.product.unit_description"})}):null,a.Images&&a.Images.length>0?Object(Q.jsx)(p.a,{value:2,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"supplier.tabs.photos"})}):null,e.config&&e.config.showAmenities&&Pe?Object(Q.jsx)(p.a,{value:3,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"supplier.tabs.amenities"})}):null,e.config&&e.config.hideAvailabilityTab?null:Object(Q.jsx)(p.a,{value:4,className:"tabOption",label:Object(z.a)("lodging.product.availability")}),a.Lat&&a.Lng?Object(Q.jsx)(p.a,{value:5,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"lodging.product.unit_location"})}):null,Object(Q.jsx)(p.a,{value:6,className:"tabOption",label:Object(Q.jsx)(L.a,{id:"supplier.tabs.policies"})})]})})}),!1,ye&&0===y||ye&&!Ne?Object(Q.jsxs)("div",{className:"rooms ".concat(R?"":"closed"),children:[0===y?Object(Q.jsxs)("div",{className:"section",children:[Object(Q.jsx)(A.a,{icon:"spotlio-packages"})," ",Object(z.a)("skin.engadin.tabs.packages")]}):null,Object(Q.jsx)(Z,{section:e.section,config:e.config,value:y,handleChangeIndex:ge.bind(this),handleChange:me.bind(this),policies:e.policies,index:t,element:a,onlyPackages:!0})]}):null,Ne?Object(Q.jsxs)("div",{className:"rooms minheight",children:[0===y&&Object(Q.jsxs)("div",{className:"section",children:[Object(Q.jsx)(A.a,{icon:"spotlio-bed"})," ",Object(z.a)("lodging.package.title_room_only")]}),Object(Q.jsx)(Z,{section:e.section,config:e.config,value:y,handleChangeIndex:ge.bind(this),handleChange:me.bind(this),policies:e.policies,index:t,element:a,onlyRooms:!0})]}):null]}),Object(Q.jsxs)("div",{className:"bottomFixed",onClick:function(){return m(!1)},children:[Object(Q.jsx)(A.a,{icon:"feather-x"})," Close"]})]})]},e.index)}var ne=a(534),se=a(474),ce=a(564);a(637);function oe(e){var t=this;Object(i.useEffect)((function(){e.list&&e.list.length>0&&Object(W.d)("view_item_list",e.list,a())}),[]);var a=function(){return e.section?e.section:e.componentName?e.componentName:""},n=Object(B.F)(),c=n.app&&n.app.animationMobile&&n.app.animationMobile.type&&"tier"!==n.app.animationMobile.type;if(e.loadingSearch)return window.innerWidth<992&&!c?Object(Q.jsxs)(Q.Fragment,{children:[Object(Q.jsx)(se.a,{title:"Loading..."}),Object(Q.jsx)(ce.a,{quantity:5,noMargin:!0})]}):Object(Q.jsx)(ne.a,{});if(!e.list||e.list&&e.list.length<=0)return Object(Q.jsx)(L.a,{id:"supplier.units.no_units_found"});var o=function(t,a){e.addToCart(t,a)},l=function(e,t){return e.Price<t.Price?-1:e.Price>t.Price?1:0},r=function(e,t){return e.DisplaySeq<t.DisplaySeq?-1:e.DisplaySeq>t.DisplaySeq?1:0},d=function(e,t){return e.SortRank<t.SortRank?-1:e.SortRank>t.SortRank?1:0},u=function(e,t){return e.ProductName<t.ProductName?-1:e.ProductName>t.ProductName?1:0},p=function(e,t){var a=parseFloat(1e6*e.Position),i=parseFloat(1e6*t.Position);return(a+=e.FromPrice)<(i+=t.FromPrice)?-1:a>i?1:0},b=e.list;e.sectionConfiguration&&e.sectionConfiguration.defaultItemSort&&(b=function(e,t){switch(t){case"A-Z":e.sort(u);break;case"Price":e.sort(l);break;case"DisplaySeq":e.sort(r);break;case"SortRank":e.sort(d);break;default:e.sort(p)}return e}(e.list,e.sectionConfiguration.defaultItemSort));var j,m=void 0!==e.onlyProduct?(j=e.onlyProduct,e.list.find((function(e){return e.ProductId===j}))):void 0;return Object(Q.jsx)(s.a,{container:!0,spacing:0,className:"rooms",children:void 0!==e.onlyProduct&&m?Object(Q.jsx)(ie,{section:e.section,supplier:e.supplier,form:e.form,roomPricing:e.roomPricing,config:e.sectionConfiguration,currentStep:e.currentStep,updateStep:e.updateStep,displayType:e.dis
1playType,onlyProduct:e.onlyProduct,addToCart:o.bind(this),compact:e.compact,policies:e.policies,element:m,index:e.onlyProduct,loadingRooms:e.loadingRooms},e.onlyProduct):void 0!==e.onlyProduct?Object(Q.jsx)(L.a,{id:"supplier.units.no_units_found"}):b.map((function(a,i){return Object(Q.jsx)(ie,{loadingRooms:e.loadingRooms,amountOfComponents:e.amountOfComponents,section:e.section,supplier:e.supplier,form:e.form,roomPricing:e.roomPricing,config:e.sectionConfiguration,currentStep:e.currentStep,updateStep:e.updateStep,displayType:e.displayType,addToCart:o.bind(t),compact:e.compact,policies:e.policies,element:a,index:i},i)}))})}},827:function(e,t,a){},828:function(e,t,a){},829:function(e,t,a){}}]); 2//# sourceMappingURL=33.68406a07.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.