1(window.webpackJsonp=window.webpackJsonp||[]).push([[63,8,60],{1008:function(t,e,o){"use strict";var n=o(33),i=Object(n.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"}},this.$listeners),[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{fill:"#005CF0",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}})])}),[],!1,null,null,null);e.a=i.exports},1018:function(t,e,o){t.exports=o.p+"arrow-left-white.2e66f95d18639109a9fadc546f37c018.svg"},1019:function(t,e,o){},1043:function(t,e,o){},1044:function(t,e,o){"use strict";var n=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var i={name:"CancellationPolicyModal",components:{IconInfoBlue:o(1008).a},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({cancellationPolicyContent:"search/getCancellationPolicyContent"}))},r=o(33),a=Object(r.a)(i,(function render(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"result-cancellation-policy-modal",title:t.$t("bookingResult.cancellationPolicy"),size:"lg","hide-footer":"",centered:""}},[t.cancellationPolicyContent?[t._l(t.cancellationPolicyContent,(function(o,n){return e("div",{key:"policy-".concat(n),staticClass:"policy-item"},t._l(o,(function(o,n){return e("p",{directives:[{name:"dompurify-html",rawName:"v-dompurify-html",value:o,expression:"sentence"}],key:"sentence-".concat(n),class:[{"font-weight-bold":t.$ota&&0===n}],attrs:{id:"cancellation-policy-sentence-".concat(n)}})})),0)})),t._v(" "),e("div",[e("p",{staticClass:"d-flex align-items-center",attrs:{id:"cancellation-policy-local-time"}},[t.$ota?e("icon-info-blue",{staticClass:"mr-2 flex-shrink-0"}):t._e(),t._v("\n "+t._s(t.$ota?t.$t("cancellationPolicy.uponLocalTimeOTA"):t.$t("cancellationPolicy.uponLocalTime"))+"\n ")],1)])]:e("div",{staticClass:"text-center p-3"},[e("b-spinner")],1)],2)}),[],!1,null,null,null);e.a=a.exports},1046:function(t,e,o){t.exports=o.p+"membership-tag.16b942c896ba8fe8bc940ec0f38118f2.svg"},1047:function(t,e,o){"use strict";o(992)},1052:function(t,e,o){"use strict";var n=o(1185),i=o(1186),r=o(1187),a=o(1188),s=o(1189),c=o(979),l=o(1045),u=o(1165),d=o(1190),p=o(1191),h=o(1192),m=o(1193),_=o(136),f=o.n(_),g={name:"RoomFacilities",components:{SmokingIcon:n.a,NonSmokingIcon:a.a,CheckIcon:s.a,InfoIcon:c.a,HotelIcon:l.a,RoomSizeIcon:u.a,FloorIcon:d.a,ToiletIcon:h.a,WifiIcon:m.a,BathIcon:p.a,ShowerIcon:i.a,BathtubIcon:r.a},props:{room:{type:Object,required:!0},oneLine:{type:Boolean,default:!1},plain:{type:Boolean,default:!1}},data:function data(){return{infoId:String(Math.random())}},computed:{roomSize:function roomSize(){var t,e,o,n,i,r,a={square_meters:"m<sup>2</sup>",tatami_mats:this.$t("bookingResult.roomSizeUnit.tatami_mats")};return{value:null===(t=this.room)||void 0===t||null===(e=t.room_size)||void 0===e?void 0:e.value,unit:a[null===(o=this.room)||void 0===o||null===(n=o.room_size)||void 0===n?void 0:n.unit]||(null===(i=this.room)||void 0===i||null===(r=i.room_size)||void 0===r?void 0:r.unit)}},featureList:function featureList(){var t,e,o,n,i,r,a,s,c,l,u,d=[];(null===(t=this.room)||void 0===t?void 0:t.floor_data)&&d.push({id:"room-".concat(this.room.room_type_code,"-floor"),icon:"FloorIcon",text:null===(c=this.room)||void 0===c?void 0:c.floor_data});f()(null===(e=this.roomSize)||void 0===e?void 0:e.value)&&d.push({id:"room-".concat(this.room.room_type_code,"-room-size"),icon:"RoomSizeIcon",html:"".concat(this.$t("bookingResult.roomSize"),": ").concat(null===(l=this.roomSize)||void 0===l?void 0:l.value," ").concat(null===(u=this.roomSize)||void 0===u?void 0:u.unit)});if(Array.isArray(null===(o=this.room)||void 0===o?void 0:o.beds)){var p=!0,h=!1,m=void 0;try{for(var _,g=this.room.beds[Symbol.iterator]();!(p=(_=g.next()).done);p=!0){var b=_.value,v=b.bed_count>0?": ".concat(this.$tc("bookingResult.bedCount",b.bed_count)):"",y=b.width&&b.length?"(".concat(b.width," x ").concat(b.length,"cm)"):"";d.push({id:"room-".concat(this.room.room_type_code,"-bed-type-").concat(b.bed_type),icon:"HotelIcon",text:"".concat(b.bed_type," ").concat(y).concat(v),count:b.bed_count})}}catch(P){h=!0,m=P}finally{try{p||null==g.return||g.return()}finally{if(h)throw m}}}return(null===(n=this.room)||void 0===n?void 0:n.hide_smoking)||d.push({id:"room-".concat(this.room.room_type_code,"-smoking"),icon:this.room.is_smoking?"SmokingIcon":"NonSmokingIcon",text:this.room.is_smoking?this.$t("bookingResult.smoking"):this.$t("bookingResult.nonSmoking")}),(null===(i=this.room)||void 0===i?void 0:i.shower)&&d.push({id:"room-".concat(this.room.room_type_code,"-shower"),icon:"ShowerIcon",text:this.$t("bookingResult.shower"),iconClass:"icon-b"}),(null===(r=this.room)||void 0===r?void 0:r.bathtub)&&d.push({id:"room-".concat(this.room.room_type_code,"-bathtub"),icon:"BathtubIcon",text:this.$t("bookingResult.bathtub"),iconClass:"icon-b"}),(null===(a=this.room)||void 0===a?void 0:a.toilet)&&d.push({id:"room-".concat(this.room.room_type_code,"-toilet"),icon:"ToiletIcon",text:this.$t("bookingResult.toilet")}),(null===(s=this.room)||void 0===s?void 0:s.free_wifi)&&d.push({id:"room-".concat(this.room.room_type_code,"-free-wifi"),icon:"WifiIcon",text:this.$t("bookingResult.freeWifi")}),d}}},b=(o(1062),o(33)),v=Object(b.a)(g,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"feature-container",class:{"one-line":t.oneLine,plain:t.plain}},[t.oneLine?t._e():e("h6",{attrs:{"data-cy":"room-".concat(t.room.room_type_code,"-info")}},[t._v("\n "+t._s(t.$t("bookingResult.roomFeatures"))+":\n ")]),t._v(" "),t._l(t.featureList,(function(o,n){return e("span",{key:"feature-"+n,staticClass:"feature-item",attrs:{cols:"6",lg:"12"}}
1,[e("i",{style:"fill: #a1a2a2"},[e(o.icon,{tag:"component",staticClass:"icon mr-1",class:o.iconClass})],1),t._v(" "),o.text?e("span",{staticClass:"text",attrs:{"data-cy":o.id,"data-count":o.count}},[t._v(t._s(o.text))]):t._e(),t._v(" "),o.html?e("span",{staticClass:"text",attrs:{"data-cy":o.id},domProps:{innerHTML:t._s(o.html)}}):t._e(),t._v(" "),o.tooltip?[e("info-icon",{staticClass:"icon",attrs:{id:t.infoId}}),t._v(" "),e("b-tooltip",{attrs:{"custom-class":"white-tooltip",target:t.infoId}},[e("div",[t._v(t._s(t.$tc("bookingResult.maxAdults",o.tooltip)))])])]:t._e()],2)})),t._v(" "),t._l(t.room.room_facilities,(function(o,n){return e("span",{key:"facility-"+n,staticClass:"feature-item",attrs:{cols:"6",lg:"12"}},[e("i",{style:"fill: #a1a2a2"},[e("check-icon")],1),t._v(" "),e("span",{staticClass:"text"},[t._v(t._s(o.text))])])}))],2)}),[],!1,null,"758a1ae4",null);e.a=v.exports},1053:function(t,e,o){"use strict";var n={name:"PromotionTag",props:{tooltipKey:{type:String,default:null},color:{type:String,default:null}}},i=(o(1047),o(33)),r=Object(i.a)(n,(function render(){var t=this._self._c;return t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.focus",modifiers:{focus:!0}}],staticClass:"promotion-title",style:this.color?{background:this.color}:{},attrs:{id:this.tooltipKey,href:"#",tabindex:"0",variant:"link"}},[t("img",{staticClass:"promotion-tag",attrs:{src:o(1046),alt:"prmotion-tag-icon"}}),this._v(" "),this._t("default")],2)}),[],!1,null,"460b5672",null);e.a=r.exports},1054:function(t,e,o){"use strict";var n=o(33),i=Object(n.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{width:"16",height:"20",xmlns:"http://www.w3.org/2000/svg"}},this.$listeners),[t("g",{attrs:{fill:"#005BF0","fill-rule":"nonzero"}},[t("path",{attrs:{d:"M10.483 12.65c.365-.61.902-.922 1.614-.93.711-.008 1.07-.37 1.082-1.084.01-.71.32-1.247.93-1.61.611-.365.743-.856.395-1.478-.346-.62-.346-1.24 0-1.861.348-.62.217-1.11-.396-1.475-.61-.366-.92-.902-.929-1.615-.011-.71-.37-1.073-1.082-1.081-.712-.01-1.249-.321-1.614-.931-.365-.612-.856-.744-1.476-.396-.62.347-1.241.347-1.861 0-.621-.347-1.112-.216-1.477.396-.364.61-.901.922-1.612.93-.71.01-1.071.372-1.081 1.082-.012.713-.321 1.248-.931 1.615-.612.365-.746.854-.396 1.475.349.621.349 1.241 0 1.861-.35.622-.216 1.114.396 1.478.61.363.92.9.93 1.61.01.712.372 1.076 1.082 1.084.711.008 1.248.32 1.613.93.365.612.856.745 1.476.395.62-.343 1.241-.343 1.862 0 .62.35 1.111.217 1.475-.394zm-2.405-2.138a3.894 3.894 0 11-.001-7.789 3.894 3.894 0 01.001 7.789z"}}),t("path",{attrs:{d:"M3.994 12.29c-.748 0-.848-.347-.848-.347L.223 17.687l2.344-.264 1.295 1.95s2.7-5.633 2.7-5.596c-1.399-.034-.842-1.449-2.568-1.486zM12.97 12.168c-2.136.223-1.702.753-2.19 1.165-.562.599-1.263.481-1.263.481l3.296 5.671.81-2.1 2.305.3-2.959-5.517zM8.892 5.758l-.815-1.65-.816 1.65-1.824.266L6.755 7.31l-.31 1.818 1.632-.857 1.632.857L9.4 7.31l1.318-1.286z"}})])])}),[],!1,null,null,null);e.a=i.exports},1055:function(t,e,o){"use strict";var n=o(33),i=Object(n.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"}},this.$listeners),[t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("path",{attrs:{d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z",fill:"#E5EE9C","fill-rule":"nonzero"}}),t("path",{attrs:{fill:"#000","fill-rule":"nonzero",d:"M13 17h-2v-2h2zm0-4h-2V7h2z"}})])])}),[],!1,null,null,null);e.a=i.exports},1062:function(t,e,o){"use strict";o(996)},1079:function(t,e,o){"use strict";var n={name:"PriceTaxInfo",props:{taxIncluded:{type:Boolean,default:void 0}},computed:{taxInfo:function taxInfo(){return this.$store.getters["setting/showPricesTaxIncluded"]?this.$t("base.taxAndServiceFeeIncluded"):this.$t("bookingResult.taxExcluded")}}},i=o(33),r=Object(i.a)(n,(function render(){return(0,this._self._c)("span",{attrs:{"data-cy":this.taxIncluded?"tax-included":"tax-excluded"}},[this._v("("+this._s(this.taxInfo)+")")])}),[],!1,null,null,null);e.a=r.exports},1080:function(t,e,o){"use strict";var n={name:"RoomPriceLabel",components:{PriceLabel:o(988).a},props:{tag:{type:String,default:"strong"},amount:{type:Number,default:0},amountWithoutTax:{type:Number,default:0},isUndated:Boolean}},i=o(33),r=Object(i.a)(n,(function render(){var t=this._self._c;return t(this.tag,{tag:"component",attrs:{id:"room-price-label"}},[t("price-label",{attrs:{amount:this.amount,"amount-without-tax":this.amountWithoutTax}}),this.isUndated?t("span",[this._v("~")]):this._e()],1)}),[],!1,null,null,null);e.a=r.exports},1091:function(t,e,o){"use strict";var n=o(40),i=o(31),r=o(33),a=Object(r.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},this.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.322 3.395l3.393 3.394V4.65c0-2.011.01-2.15.159-2.342a.808.808
10 01.362-.253c.234-.059.639.122.714.318.028.071.05 1.517.05 3.212v3.082l-.212.166C8.582 8.995 8.491 9 5.491 9H2.405l-.197-.197c-.214-.214-.257-.563-.094-.775.223-.29.415-.314 2.562-.314H6.79L3.395 4.317 0 .919.464.46.928 0l3.394 3.395m14.471 8.802c.214.214.257.563.095.774-.224.291-.416.315-2.563.315H14.21l3.395 3.395L21 20.077l-.462.461-.461.462-3.396-3.395-3.395-3.395v2.139c0 2.01-.01 2.15-.16 2.34a.808.808 0 01-.362.254c-.233.059-.639-.122-.714-.318-.027-.071-.05-1.516-.05-3.21v-3.082l.212-.166c.206-.162.297-.167 3.298-.167h3.086l.197.197",fill:"#fff"}})])}),[],!1,null,null,null).exports;function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var s={name:"GalleryModal",components:{CollapseIcon:a},data:function data(){return{slide:0,expand:!1,clickTimer:null,expandClass:"w-100"}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({photos:"search/getGalleryPhotos",focusPhoto:"search/getGalleryIndex"}),{moveOffset:function moveOffset(){if(this.$refs.relativeContainer){var t=this.$refs.relativeContainer.clientWidth,e=this.$refs.thumbnailsWrapper.scrollWidth,o=t/2/127-1;if(this.slide>o){var n=127*(this.slide-o),i=e-t;return Math.min(n,i)}}return 0*this.slide}}),watch:{expand:function expand(t){var e=this;t&&setTimeout((function(){if(e.$refs.expandImg.clientWidth>=e.$refs.expandImg.clientHeight){e.expandClass="h-expand";var t=document.querySelector(".expand-block");setTimeout((function(){t.scrollLeft=(t.scrollWidth-window.screen.width)/2}))}else e.expandClass="w-100"}))}},methods:{hideResetModal:function hideResetModal(){document.addEventListener("remove",this.changeSlide)},showResetModal:function showResetModal(){var t=this;setTimeout((function(){t.slide=t.focusPhoto})),document.addEventListener("keydown",this.changeSlide)},changeSlide:function changeSlide(t){switch(t.keyCode){case 37:this.slide=this.slide-1;break;case 39:this.slide=this.slide+1}},clickLeft:function clickLeft(){this.slide--},clickRight:function clickRight(){this.slide++},handleSwipe:function handleSwipe(t){["top","bottom"].includes(t)&&this.$bvModal.hide("gallery-modal")},handleDoubleTap:function handleDoubleTap(){var t=this;null===this.clickTimer?this.clickTimer=setTimeout((function(){clearTimeout(t.clickTimer),t.clickTimer=null}),500):(clearTimeout(this.clickTimer),this.clickTimer=null,Object(i.h)()&&(this.expand=!this.expand))},highResolutionUrl:function highResolutionUrl(t){var e,o;return(null==t||null===(e=t.picture)||void 0===e||null===(o=e.wordpress)||void 0===o?void 0:o.url)||(null==t?void 0:t.fullSize)},lowResolutionUrl:function lowResolutionUrl(t){var e,o;return(null==t||null===(e=t.picture)||void 0===e||null===(o=e.wordpress_thumb)||void 0===o?void 0:o.url)||(null==t?void 0:t.fullSize)},thumbUrl:function thumbUrl(t){var e,o;return(null==t||null===(e=t.picture)||void 0===e||null===(o=e.thumbnail)||void 0===o?void 0:o.url)||(null==t?void 0:t.thumbnail)}}},c=(o(1095),Object(r.a)(s,(function render(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"gallery-modal",size:"xl","hide-header":"","hide-footer":"","content-class":"gallery-content","dialog-class":"media-modal"},on:{show:t.showResetModal,hidden:t.hideResetModal}},[e("div",{directives:[{name:"touch",rawName:"v-touch:swipe",value:t.handleSwipe,expression:"handleSwipe",arg:"swipe"}],attrs:{hidden:t.expand}},[e("div",{staticClass:"top-space"},[e("b-carousel",{staticClass:"slides room-carousel md",attrs:{interval:0},model:{value:t.slide,callback:function callback(e){t.slide=e},expression:"slide"}},t._l(t.photos,(function(o,n){return e("b-carousel-slide",{key:n,staticClass:"text-center"},[e("div",{attrs:{slot:"img"},slot:"img"},[e("div",{staticClass:"bg-pic"},[e("div",{staticClass:"pic background-layer",style:{backgroundImage:"url(".concat(t.highResolutionUrl(o),")")}}),t._v(" "),e("div",{staticClass:"pic",style:{backgroundImage:"url(".concat(t.highResolutionUrl(o),")")},on:{click:t.handleDoubleTap}})]),t._v(" "),e("p",{staticClass:"display-text pl-2"},[t._v("\n "+t._s(o.display_name)+"\n ")])])])})),1)],1),t._v(" "),e("div",{staticClass:"w-100"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",{staticClass:"display-text pl-3 pr-4"},[t._v(t._s(t.slide+1)+"/"+t._s(t.photos.length))]),t._v(" "),t.photos.length>1?[e("img",{staticClass:"left-arrow",attrs:{src:o(1018),alt:"<"},on:{click:t.clickLeft}}),t._v(" "),e("img",{staticClass:"right-arrow",attrs:{src:o(1018),alt:"<"},on:{click:t.clickRight}})]:t._e(),t._v(" "),e("button",{staticClass:"display-text close-btn",on:{click:function click(e){return t.$bvMod
1al.hide("gallery-modal")}}},[t._v("\n "+t._s(t.$t("base.close"))+"\n ")])],2),t._v(" "),e("div",{ref:"relativeContainer",staticClass:"relative-container"},[e("div",{ref:"thumbnailsWrapper",staticClass:"thumbnails-wrapper",style:{left:"-".concat(t.moveOffset,"px")}},t._l(t.photos,(function(o,n){return e("div",{key:n,staticClass:"img-container",class:{focus:n===t.slide},on:{click:function click(e){t.slide=n}}},[e("img",{attrs:{src:t.lowResolutionUrl(o)||t.thumbUrl(o),alt:"thumbnail"}}),t._v(" "),e("div",{staticClass:"overlay"})])})),0)])])]),t._v(" "),t.photos[t.slide]?e("div",{staticClass:"expand-block",attrs:{hidden:!t.expand}},[e("img",{ref:"expandImg",class:t.expandClass,attrs:{src:t.highResolutionUrl(t.photos[t.slide])},on:{click:t.handleDoubleTap}}),t._v(" "),e("button",{staticClass:"collapse-btn",on:{click:function click(e){t.expand=!1}}},[t._v("\n "+t._s(t.$t("base.collapse"))),e("collapse-icon",{staticClass:"ml-2"})],1)]):t._e()])}),[],!1,null,"67a43d9c",null));e.a=c.exports},1095:function(t,e,o){"use strict";o(1019)},1098:function(t,e,o){"use strict";var n=o(123),i=o(182),r=o.n(i),a=o(41),s=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}e.a={computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(s.d)({getBookLanguages:"setting/getBookLanguages"})),methods:{changeLocale:function changeLocale(){var t,e,o=this.getBookLanguages,i=o.length>0?o:r()(n.c),s=null===(t=this.$route.query.locale)||void 0===t||null===(e=t.toLowerCase)||void 0===e?void 0:e.call(t);if(s){var c=s;"zh"===s||"zh-tw"===s?c="zh_hant":"zh-cn"===s&&(c="zh_hans");var l=i.find((function(t){return c===t.toLowerCase()}))||i[0];this.$i18n.locale=l,a.a.setItem("triplabot_locale",l)}}}}},1125:function(t,e,o){"use strict";o(1043)},1128:function(t,e,o){"use strict";var n=o(981),i=o(1064),r=o.n(i),a=o(123),s=o(49),c=o(1001),l=o(999),u=o(31);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var d={name:"DateRangePickerMobile",components:{InputContainer:n.a,CalendarModal:l.a},mixins:[c.a],props:{config:{type:Object,required:!0},value:{type:[Array,Date,String],required:!0},plain:{type:Boolean,default:!1}},data:function data(){return{calendarIcon:r.a}},computed:{datePickerConfig:function datePickerConfig(){return _objectSpread({minDate:Object(s.f)(),maxDate:null,dateFormat:"Y/m/d",locale:_objectSpread({},Object(a.a)(this.$i18n.locale),{rangeSeparator:" - "})},this.config,{},this.$attrs,{onReady:this.config.onOpen})}},methods:{onChange:function onChange(t){this.$emit("input",t.split(this.datePickerConfig.locale.rangeSeparator)),setTimeout((function(){Object(u.n)()}),500)},closeModal:function closeModal(){this.$store.dispatch("search/setSearchForm",{selectedRoomPlanCode:null})},openModal:function openModal(){this.$bvModal.show("search-bar-calendar-modal")}}},p=(o(1125),o(33)),h=Object(p.a)(d,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"date-range-mobile-container"},[e("input-container",{staticClass:"min-date-width",class:{plain:t.plain},attrs:{label:t.$t("searchBar.checkInAndOut"),src:t.calendarIcon,"data-cy":"checkin-checkout"},on:{click:t.openModal}},[e("span",{staticClass:"date-text",on:{click:t.openModal}},[t._v(t._s(t.dateRangeFormatted))])]),t._v(" "),e("calendar-modal",{attrs:{id:"search-bar-calendar-modal",config:t.datePickerConfig,value:t.dateRangeFormatted},on:{"on-change":t.onChange,close:t.closeModal}})],1)}),[],!1,null,"86eefd16",null);e.a=h.exports},1133:function(t,e,o){},1161:function(t,e,o){"use strict";var n={props:{wrapperTag:{type:String,required:!1,default:"div"},rootMargin:{type:String,required:!1,default:"0px 0px 0px 0px"},threshold:{type:[Number,Array],required:!1,default:0},otaSearch:{type:Boolean,required:!1,default:!1}},data:function data(){return{isIntersected:!1,observer:null}},watch:{isIntersected:function isIntersected(t){t&&this.$emit("intersected",this.$el)}},mounted:function mounted(){"IntersectionObserver"in window?this.observe():this.isIntersected=!0},beforeDestroy:function beforeDestroy(){this.unobserve()},methods:{observe:function observe(){var t={root:void 0,rootMargin:this.rootMargin,threshold:this.threshold};this.observer=new IntersectionObserver(this.onIntersection,t),this.observer.observe(this.$el)},onIntersection:function onIntersection(t){this.isIntersected=t.some((function(t){return t.intersectionRatio>0})),this.isIntersected&&!this.otaSearch&&this.unobserve()},unobserve:function unobserve(){"IntersectionObserver"in window&&this.observer.unobserve(this.$el)}}},i=o(33),r=Object(i.a)(n,(function render(){var t=this;return(0,t._self._c)(t.wrapperTag,{tag:"component",class:["v-lazy-component",{loading:!t.isIntersected,loaded:t.isIntersected}],style:{minWidth:"1px",minHeight:"1px"}},[t.isIntersected?t._t("default"):t._e(),t._v(" "),t.isIntersected?t._e():t._t("placeholder")],2)}),[],!1,null,null,null);e.a=r.exports},1196:function(t,e,o){"use strict";var n=o(976),i=o(31),r={name:"TCollapse",props:{value:{type:Boolean,required:!0}},data:function data(){return{isExpanding:!1}},watch:{value:function value(t){this.isExpanding=t}},created:function created(){this.isExpanding=this.value}},a=(o(1348),o(33)),s=Object(a.a)(r,(function render(){return(0,this._self._c)("div",{staticClass:"collapse-container",class:{showing:this.isExpanding,folding:!this.isExpanding}},[this._t("default")],2)}),[],!1,null,"4463ca38",null).exports,c={components:{MarkdownViewer:n.a,TCollapse:s},props:{room:{type:Object,required:!0},variant:{type:String,default:"room"}},data:function data(){return{roomDescriptionExpanded:!1}}
1,computed:{roomDescriptionVisible:function roomDescriptionVisible(){return Object(i.h)()||"room"===this.variant}},created:function created(){this.roomDescriptionExpanded=!Object(i.h)()},methods:{handleRoomDetailsClick:function handleRoomDetailsClick(){this.roomDescriptionExpanded=!this.roomDescriptionExpanded}}},l=(o(1349),Object(a.a)(c,(function render(){var t=this,e=t._self._c;return e("b-row",{attrs:{"no-gutters":""}},[e("b-col",{attrs:{cols:"12"}},[e("h2",{staticClass:"room-name"},[t._v("\n "+t._s(t.room.room_type_name)+"\n "),t._t("default")],2),t._v(" "),t._t("room-facilities"),t._v(" "),t.room.room_type_description?e("section",{staticClass:"room-feature-wrapper mobile-only"},[e("div",{staticClass:"room-details",on:{click:t.handleRoomDetailsClick}},[t._v("\n "+t._s(t.$t("bookingResult.roomDetails"))+"\n "),e("span",{class:["btn-toggle",{"btn-expand":t.roomDescriptionExpanded}]})])]):t._e(),t._v(" "),t.roomDescriptionVisible?e("t-collapse",{staticClass:"room-feature-wrapper",attrs:{id:"room-description-collapse"},model:{value:t.roomDescriptionExpanded,callback:function callback(e){t.roomDescriptionExpanded=e},expression:"roomDescriptionExpanded"}},[e("markdown-viewer",{staticClass:"room-description",attrs:{markdown:t.room.room_type_description}})],1):t._e()],2)],1)}),[],!1,null,"520eb4b6",null));e.a=l.exports},1198:function(t,e,o){"use strict";var n={name:"NoSearchResult",props:{hasRecommends:{type:Boolean,default:!1},errorMessage:{type:String,default:null}}},i=(o(1215),o(33)),r=Object(i.a)(n,(function render(){var t=this,e=t._self._c;return t.$ota?e("b-alert",{attrs:{show:"","data-cy":"no-result-room-search",variant:"danger"}},[e("div",[e("p",{staticClass:"text-lg red-font mb-0"},[t._v("\n "+t._s(t.errorMessage||t.$t("otaRoomsResult.noRoomsAvailable"))+"\n ")]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v(t._s(t.$t("otaRoomsResult.noRoomsAvailableDesc")))])])]):t.hasRecommends?e("div",{staticClass:"no-result"},[e("b-alert",{attrs:{show:"","data-cy":"no-result-room-search",variant:"danger"}},[e("div",[e("p",{staticClass:"text-lg red-font mb-0"},[t._v("\n "+t._s(t.errorMessage||t.$t("bookingResult.noRoomsAvailable"))+"\n ")]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v(t._s(t.$t("bookingResult.noRoomsAvailableDesc")))])])]),t._v(" "),t._t("default")],2):e("b-alert",{attrs:{show:"","data-cy":"no-result-room-search",variant:"danger"}},[e("div",[e("p",{staticClass:"text-lg red-font mb-0"},[t._v("\n "+t._s(t.errorMessage||t.$t("bookingResult.noRoomsAvailable"))+"\n ")]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v(t._s(t.$t("bookingResult.noRoomsAvailableDesc")))])])])}),[],!1,null,"3b56b838",null);e.a=r.exports},1210:function(t,e,o){"use strict";var n={name:"MemberExclusive"},i=(o(1356),o(33)),r=Object(i.a)(n,(function render(){return(0,this._self._c)("span",{staticClass:"limited-tag"},[this._v(this._s(this.$t("bookingResult.memberExclusive")))])}),[],!1,null,"14b106b1",null);e.a=r.exports},1215:function(t,e,o){"use strict";o(1133)},1219:function(t,e,o){},1220:function(t,e,o){},1221:function(t,e,o){t.exports=o.p+"381cc60257d3bb5a5909723034c97222.png"},1222:function(t,e,o){},1223:function(t,e,o){},1225:function(t,e,o){},1226:function(t,e,o){},1227:function(t,e,o){},1228:function(t,e,o){},1229:function(t,e,o){},1230:function(t,e,o){},1231:function(t,e,o){},1232:function(t,e,o){},1233:function(t,e,o){},1234:function(t,e,o){},1235:function(t,e,o){},1236:function(t,e,o){},1237:function(t,e,o){},1238:function(t,e,o){},1256:function(t,e,o){},1304:function(t,e,o){},1305:function(t,e,o){},1306:function(t,e,o){},1307:function(t,e,o){},1315:function(t,e,o){"use strict";var n=o(1078),i=o(1209),r=o(1318),a=o(1052),s=o(1196),c=o(31),l=o(1221),u=o.n(l),d={name:"RoomType",components:{MultiImages:n.a,ImageWrapper:i.a,RoomLeftTag:r.a,RoomFacilities:a.a,RoomTitle:s.a},props:{variant:{type:String,default:"room"},room:{type:Object,required:!0},clickable:{type:Boolean,default:!1},numberOfFooterImage:{type:Number,default:3}},data:function data(){return{defaultRoomImage:u.a}},computed:{isDefaultImage:function isDefaultImage(){return this.room.room_pictures[0].picture.wordpress.url.includes("placeholder_room.png")},hasImages:function hasImages(){return this.room.room_pictures&&this.room.room_pictures.length>0},useInPlanView:function useInPlanView(){return"plan"===this.variant}},methods:{showGalleryMode:function showGalleryMode(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.clickable&&(this.$store.dispatch("search/setGalleryPhotos",this.room.room_pictures),this.$store.dispatch("search/setGalleryIndex",t),this.$bvModal.show("gallery-modal"))},isMobile:c.h}},p=(o(1350),o(33)),h=Object(p.a)(d,(function render(){var t=this,e=t._self._c;return e("div",{class:{"room-type-plan-wrapper":t.useInPlanView}},[t.hasImages?e("div",{staticClass:"room-type-plan-image-wrapper"},[t.room.room_pictures.length>1?e("multi-images",{attrs:{photos:t.room.room_pictures,"room-count":t.room.room_count,clickable:t.clickable,"number-of-footer-image":t.numberOfFooterImage},on:{galleryMode:t.showGalleryMode,click:function click(e){return t.showGalleryMode()}}}):t.room.room_pictures.length>0?e("div",{staticClass:"position-relative"}
1,[e("room-left-tag",{attrs:{"room-count":t.room.room_count}}),t._v(" "),e("image-wrapper",{attrs:{img:t.room.room_pictures[0].picture.wordpress.url,clickable:!t.isDefaultImage&&t.clickable,"blur-background":""},on:{click:function click(e){!t.isDefaultImage&&t.showGalleryMode()}}},[t.isDefaultImage?t._e():e("div",{staticClass:"show-image-count-button",attrs:{slot:"footer"},slot:"footer"},[t._v("1 / 1")])])],1):t._e()],1):t.isMobile()?t._e():e("div",{staticClass:"position-relative"},[e("room-left-tag",{attrs:{"room-count":t.room.room_count}}),t._v(" "),e("image-wrapper",{attrs:{img:t.defaultRoomImage}})],1),t._v(" "),t.useInPlanView?t._e():e("div",{staticClass:"room-header"},[t.isMobile()?e("room-title",{attrs:{room:t.room,variant:"room"}},[e("template",{slot:"room-facilities"},[e("room-facilities",{staticClass:"mb-3",attrs:{room:t.room}})],1)],2):e("room-facilities",{staticClass:"mb-3",attrs:{room:t.room}})],1)])}),[],!1,null,"483eac7b",null);e.a=h.exports},1327:function(t,e,o){"use strict";var n=o(33),i=Object(n.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"}},this.$listeners),[t("path",{attrs:{d:"M480-480q33 0 56.5-23.5T560-560q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 33 23.5 56.5T480-480zm0 400Q319-217 239.5-334.5T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 100-79.5 217.5T480-80z"}})])}),[],!1,null,null,null);e.a=i.exports},1332:function(t,e,o){"use strict";var n=o(11),i=o(1010),r=o(88),a=o(40),s=o(23),c=o(72);function _objectWithoutProperties(t,e){if(null==t)return{};var o,n,i=function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var o,n,i={},r=Object.keys(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||(i[o]=t[o]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e<t.length;e++)o[e]=t[e];return o}}(t)||function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _slicedToArray(t,e){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);n=!0);}catch(c){i=!0,r=c}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}return o}(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function asyncGeneratorStep(t,e,o,n,i,r,a){try{var s=t[r](a),c=s.value}catch(l){return void o(l)}s.done?e(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,o=arguments;return new Promise((function(n,i){var r=t.apply(e,o);function _next(t){asyncGeneratorStep(r,n,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(r,n,i,_next,_throw,"throw",t)}_next(void 0)}))}}function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var l={secret:s.k.Secret,standard:s.k.Member,all_users:s.k.All,coupon:s.k.All,rounding:s.k.All,voucher_coupon:s.k.All,early_bird:s.k.EarlyBird,last_minute:s.k.LastMinute};e.a=function(t){return{computed:_objectSpread({},Object(a.d)({searchForm:"search/getSearchForm",currentReservation:"booking/getReservationDetail
1s",isSignedIn:"membership/isSignedIn",initialSetting:"setting/getInit",isVoucherMode:"search/isVoucherMode",isTiersMode:"setting/isTiersMode",isUndated:"search/isUndated",totalKidsCount:"search/getTotalKidsCount",guest:"booking/getGuest",formattedAges:"search/getFormattedAges",setting:"setting/getSetting",isSupportCompanion:"setting/isSupportCompanion",adultCompanion:"membership/getAdultCompanion",kidCompanion:"membership/getKidCompanion",lotteryEvent:"lottery/getLotteryEventSetting",wbfPriceMap:"search/getWbfPriceMap",isLotteryEntry:"lottery/getIsLotteryEntry",isMcpMode:"mcp/isMcpMode",selectedCurrency:"mcp/selectedCurrency",utmSource:"setting/getUtmSource"}),{appliedPriceType:function appliedPriceType(){return this.getPriceType(this.isSignedIn)},priceType:function priceType(){return this.getPriceType(!0)}}),methods:_objectSpread({},Object(a.c)("search",["setCurrentSearchParams"]),{getPriceType:function getPriceType(e){var o,n=null,i=e?"sign_in_discount":"non_sign_in_discount",r=this[t][i];if((null===(o=r.applied_scrape_ids)||void 0===o?void 0:o.length)&&r.total_price_after_discount<this[t].total_price)n=s.k.BRR;else if((null==r?void 0:r.promotions)&&r.total_price_after_discount<this[t].total_price){var a,c=null===(a=r.promotions[0])||void 0===a?void 0:a.promotion_type;n=l[c]}return n},sendBookEvent:function sendBookEvent(){var t,e,o;Object(r.b)(this,(null===(t=this.searchForm)||void 0===t||null===(e=t.rooms)||void 0===e?void 0:e.length)||(null===(o=this.searchForm)||void 0===o?void 0:o.room_count))},setWbfPriceMap:(o=_asyncToGenerator(regeneratorRuntime.mark((function _callee(t){var e,o,n,i;return regeneratorRuntime.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return e=t.promotionID,o=this.getSearchParams(null,e),n=o.paramsForAPI,r.prev=2,r.next=5,this.$store.dispatch("booking/getBookingPrice",{searchParams:n});case 5:i=r.sent,this.$store.dispatch("search/setWbfPriceMap",{action:"".concat(n.rooms[0].room_plan_code,"_").concat(n.adults,"_").concat(n.children),payload:{rooms:i.rooms.map((function(t){return{rate_details:t.rate_details,total_price:t.total_price}}))}}),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),console.info(r.t0);case 12:case"end":return r.stop()}}),_callee,this,[[2,9]])}))),function setWbfPriceMap(t){return o.apply(this,arguments)}),bookAirline:(e=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(t){var e,o,n,i,r,a,s;return regeneratorRuntime.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:if(e=t.promotionID,o=t.wbfPayload,n=this.getSearchParams(null,e,null,o),i=n.paramsForAPI,this.setCurrentSearchParams(i),c.prev=3,r=this.wbfPriceMap["".concat(i.rooms[0].room_plan_code,"_").concat(i.adults,"_").concat(i.children)]){c.next=9;break}return c.next=8,this.$store.dispatch("booking/getBookingPrice",{searchParams:i});case 8:r=c.sent;case 9:o.hotelsearchInfo.roomInfo=o.hotelsearchInfo.roomInfo.map((function(t,e){var o=r.rooms[e].rate_details,n=0,i=0;return Object.entries(o).forEach((function(t){var e=_slicedToArray(t,2),o=(e[0],e[1]);n+=o.adult_rate,i=i+o.day_total_rate-o.adult_rate})),_objectSpread({},t,{roomreserveInfo:_objectSpread({},t.roomreserveInfo,{totalprice:r.rooms[e].total_price,pricedtInfo:{adtprice:n,chdprice:i}})})})),console.log(o),(a=document.createElement("form")).style.visibility="hidden",a.method="POST",a.action=this.$ota?"https://tripla.ai/WBFTravel/TriplaOtaTicketSearch.aspx":"https://www.wbf.co.jp/os_Programs/WBFTravel/TicketSearch.aspx",window.Cypress||(a.target="_blank"),a.setAttribute("data-cy","wbf-form"),(s=document.createElement("input")).name="Type1",s.setAttribute("value",JSON.stringify(o)),a.appendChild(s),document.body.appendChild(a),a.submit(),c.next=31;break;case 25:c.prev=25,c.t0=c.catch(3),console.info(c.t0),console.info("error ".concat(JSON.stringify(c.t0))),console.info("payload ".concat(JSON.stringify(i))),this.$rollbar.info("Price api failed on book airline");case 31:case"end":return c.stop()}}),_callee2,this,[[3,25]])}))),function bookAirline(t){return e.apply(this,arguments)}),book:function book(t){var e=this,o=t.searchResultPrice,a=t.promotionID,c=t.couponCode;t.paymentPromotionType;this.isLoading=!0,this.$store.dispatch("search/setTotalPriceFromSearch",o),this.$store.dispatch("error/setReservationError",null);var l=this.getSearchParams(o,a,c),u=l.paramsForAPI,d=l.paramsForQuery;this.$store.dispatch("booking/resetPoints"),this.setCurrentSearchParams(u),this.sendBookEvent();var p="before getBookingPrice";this.$store.dispatch("booking/getBookingPrice",{searchParams:u}).then((function(t){var a;p="getBookingPrice",Object(r.r)(t),e.$store.dispatch("extras/setExtraItems",null!==(a=null==t?void 0:t.extras)&&void 0!==a?a:[]);var c=null==t?void 0:t.additional_questions;e.$store.dispatch("booking/setInitAdditionalQuestions",c),e.$store.dispatch("extras/clearSelectedExtraItems"),e.currentReservation.guest&&e.$store.dispatch("booking/setGuest",e.currentReservation.guest),e.$route.query.current_reservation&&(d.current_reservation=e.currentReservation.reservation_number,d.bypass_token=e.currentReservation.bypass_token),e.$route.query[s.a]&&(d[s.a]=e.$route.query[s.a]);var l=e.$route.query.lottery_event?n.a.roomLottery.guestDetail:n.a.reservation.guestDetail;e.$router.push({name:l,query:d}),e.isMcpMode||Object(i.a)(t.total_price,t.search_result_price||o)})).catch((function(t){e.$store.dispatch("error/setGlobalError",t),console.info("error ".concat(JSON.stringify(t))),console.info("payload ".concat(JSON.stringify(u))),console.info("checkpoint ".concat(p)),e.$rollbar.info("Price api failed on single room booking")})).finally((function(){e.isLoading=!1}))},getSearchParams:function getSearchParams(e,o,n,i){var r,a,s,l,u=this.setting.code,d=this.searchForm,p=d.checkin,h=d.checkout,m=d.mode,_=d.rooms,f=d.room_count,g=d.utm_source,b=d.utm_medium,v=d.utm_campaign,y=d.campaignid,P=d.adgroupid,w=d.keyword,k=d.gclid,O=d.yclid,C=d.source,j=d.medium,R=d.email_id,S=d.search_id,x=d.lottery_event_uuid,I=d.lottery_access_token,T=d.voucher_coupon_code,M=this.isTiersMode&&!this.$preview?f:this.isUndated?_.length:(null==i||null===(r=i.hotelsearchInfo)||void 0===r?void 0:r.roomInfo)?i.hotelsearchInfo.roomInfo.length:1,D=this.isTiersMode?this.searchForm.adults:null===(a=this[t].matched_search_criteria)||void 0===a?void 0:a.adults_count,$={checkin_date:p,checkout_date:h,mode:m||"standard",adults:D*M,children:this.isTiersMode?this.totalKidsCount*M:(null===(s=this[t].matched_search_criteria)||void 0===s?void 0:s.children_count)||0,search_result_price:e,rooms:[],utm_source:g,utm_medium:b,utm_campaign:v,campaignid:y,adgroupid:P,keyword:w,gclid:k,yclid:O,source:C,medium:j,email_id:R},A={checkin_date:p,checkout_date:h,adults:D,children:this.isTiersMode?this.totalKidsCount:(null===(l=this[t].matched_search_criteria)||void 0===l?void 0:l.children_count)||0,room_type_code:this.roomCode,room_plan_code:this.plan.room_plan_code||this.room.room_plan_code,room_count:1,kids_age_range:this.formattedAges};if(this.$preview&&this.searchForm.rooms[0]){var B,F,N,E,L,W,q,K=this.searchForm.rooms[0];if(this.isTiersMode&&(A.kids_age_range=Object(c.h)(K.kids_tiers)),A.adults=(null===(B=this[t].matched_search_criteria)||void 0===B?void 0:B.adults_with_companion)||(null===(F=this[t].matched_search_criteria)||void 0===F?void 0:F.adults_count),$.adults=A.adults*M,A.children=(null===(N=this[t].matched_search_criteria)||void 0===N?void 0:N.children_with_kid_tier_A_companion)||(null===(E=this[t].matched_search_criteria)||void 0===E?void 0:E.
1children_count),$.children=A.children*M,A.adult_companion=(null===(L=this[t].matched_search_criteria)||void 0===L?void 0:L.adult_companion)||0,A.kid_tier_A_companion=(null===(W=this[t].matched_search_criteria)||void 0===W?void 0:W.kid_tier_A_companion)||0,(null===(q=K.kids_tiers)||void 0===q?void 0:q.length)>0||(null==K?void 0:K.kid_tier_A_companion)>0){var V=_toConsumableArray(K.kids_tiers);if((null==K?void 0:K.kid_tier_A_companion)>0)for(var z=0;z<(null==K?void 0:K.kid_tier_A_companion);z++)V.push("A");A.kids_age_range=Object(c.h)(V)}}var U=this.isSignedIn?"sign_in_discount":"non_sign_in_discount";o&&(A.membership_promotion_id=o),"brr"===this.appliedPriceType&&(A.scrape_ids=this[t][U].applied_scrape_ids);for(var H=0;H<M;H++)$.rooms.push(A);n&&($.coupon_code=n),T&&($.voucher_coupon_code=T);var G=_objectSpread({code:u},$,{rooms:JSON.stringify($.rooms.map((function(t){t.checkin_date,t.checkout_date;return _objectWithoutProperties(t,["checkin_date","checkout_date"])}))),search_id:S});this.$route.query.current_reservation&&($.reservation_no=this.$route.query.current_reservation);var Q=this.$route.query.current_lottery_entry;return Q&&($.lottery_result_entry_number=Q,$.context="update_lottery_result",G.current_lottery_entry=Q),x&&($.lottery_event_uuid=x,G.lottery_event=x),I&&($.lottery_access_token=I,G.lottery_access_token=I),this.isMcpMode&&($.mcp_currency=this.selectedCurrency,G.mcp_currency=this.selectedCurrency),{paramsForAPI:$,paramsForQuery:G}}})};var e,o}},1334:function(t,e,o){"use strict";var n=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var i={name:"GuestNumber",props:{adults:{type:[Number,String],required:!0},adultsCompanion:{type:[Number],default:null},kids:{type:[Number],default:null},childrenCompanion:{type:[Number],default:null},roomCountInSearch:{type:Number,default:1},nights:{type:Number,default:1}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({adultCompanion:"membership/getAdultCompanion",kidCompanion:"membership/getKidCompanion"}),{adultsCompanionLabel:function adultsCompanionLabel(){var t,e;return null===(t=this.adultCompanion.translationMap)||void 0===t||null===(e=t[this.$i18n.locale])||void 0===e?void 0:e.name},childrenCompanionLabel:function childrenCompanionLabel(){var t,e;return null===(t=this.kidCompanion.translationMap)||void 0===t||null===(e=t[this.$i18n.locale])||void 0===e?void 0:e.name}})},r=(o(1357),o(33)),a=Object(r.a)(i,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"text-sm"},[e("span",{staticClass:"d-inline-block mr-1"},[t._v(t._s(t.$t("bookingResult.priceFor")))]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.$tc("bookingResult.priceForAdult",t.adults||0)))]),t._v(" "),t.adultsCompanion?e("span",{staticClass:"font-weight-bold"},[t._v(", "+t._s(t.adultsCompanionLabel)+" x "+t._s(t.adultsCompanion||0))]):t._e(),t._v(" "),t.kids?e("span",{staticClass:"font-weight-bold"},[t._v(", "+t._s(t.$tc("bookingResult.priceForChild",t.kids)))]):t._e(),t._v(" "),t.childrenCompanion?e("span",{staticClass:"font-weight-bold"},[t._v(", "+t._s(t.childrenCompanionLabel)+" Ã "+t._s(t.childrenCompanion||0))]):t._e(),t._v(" "),t.roomCountInSearch>1?e("span",{staticClass:"font-weight-bold"},[t._v(", "+t._s(t.$t("bookingResult.priceForRoom"))+" Ã "+t._s(t.roomCountInSearch))]):t._e(),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.$tc("bookingResult.forNights",t.nights)))])])}),[],!1,null,"66af30c2",null).exports,s=o(200),c=o.n(s);function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e<t.length;e++)o[e]=t[e];return o}}(t)||function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function BookSelectButtonvue_type_script_lang_js_ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function BookSelectButtonvue_type_script_lang_js_defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var l={name:"BookSelectButton",props:{item:{type:Object,required:!0},isLoading:{type:Boolean,default:!1},roomCount:{type:Number,required:!0},selectedRoomCount:{type:Number,required:!0},roomCountInSearch:{type:Number,default:1},multiple:{type:Boolean,default:!1},isHighlightedPriceTable:{type:Boolean,default:!1}},computed:function BookSelectButtonvue_type_script_lang_js_objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?BookSelectButtonvue_type_script_lang_js_ownKeys(o,!0).forEac
1h((function(e){BookSelectButtonvue_type_script_lang_js_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):BookSelectButtonvue_type_script_lang_js_ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({spinnerVariant:"setting/getSpinnerVariant",isVoucherMode:"search/isVoucherMode",hasPreloadData:"search/hasPreloadData",selectedRooms:"search/getSelectedRooms",initialSetting:"setting/getInit",remains:"search/getRemainsExtraInventory",selectedRoomsByPlanCode:"search/getSelectedRoomsByPlanCode",isLotteryEntry:"lottery/getIsLotteryEntry",lotteryEventSetting:"lottery/getLotteryEventSetting"}),{inclusiveExtraLimit:function inclusiveExtraLimit(){var t,e,o=this;return Math.min.apply(Math,[Number.MAX_SAFE_INTEGER].concat(_toConsumableArray((null===(t=this.item)||void 0===t||null===(e=t.inclusive_extra_ids)||void 0===e?void 0:e.map((function(t){return o.remains[t]+o.selectedRoomCount})))||[])))},saleLimit:function saleLimit(){var t;if(!Number.isInteger(this.item.sale_limit)||!Number.isInteger(this.item.plan_stock_count))return Number.MAX_SAFE_INTEGER;var e=this.item.hotel_plan_code,o=(null===(t=this.selectedRoomsByPlanCode[e])||void 0===t?void 0:t.length)||0,saleLimit=Math.min(this.item.plan_stock_count,this.item.sale_limit);return saleLimit-o+this.selectedRoomCount},limitedRoomMaxCount:function limitedRoomMaxCount(){var t=this.initialSetting.multi_rooms_reserve_limit;this.isLotteryEntry&&(t=this.lotteryEventSetting.settings.max_room);var e=t-this.selectedRooms.length;return Math.min(e+this.selectedRoomCount,this.roomCount,this.inclusiveExtraLimit,this.saleLimit)},roomCountOptions:function roomCountOptions(){return c()(0,this.limitedRoomMaxCount+1)},nonMultipleButtonText:function nonMultipleButtonText(){return this.isLotteryEntry?this.$t("lottery.registerForLottery"):this.isVoucherMode?this.$t("bookingResult.select"):this.$t("bookingResult.book")}})},u=Object(r.a)(l,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"position-relative"},[t.multiple?e("b-form-select",{staticClass:"ninja-hidden-z0 cursor-pointer",attrs:{value:t.selectedRoomCount,options:t.roomCountOptions,"data-auto":"room-".concat(t.item.room_plan_code,"-book-multiple-btn"),"data-cy":"book-multiple-btn"},on:{input:function input(e){return t.$emit("changeRoomCount",e)}}}):t._e(),t._v(" "),t.multiple?e("b-button",{directives:[{name:"theme-btn-outline",rawName:"v-theme-btn-outline"}],staticClass:"w-100 pl-0 pr-0",attrs:{disabled:t.isLoading||!!t.hasPreloadData,"data-auto":"room-".concat(t.item.room_plan_code,"-book-btn"),"data-cy":"book-btn"}},[0===t.selectedRoomCount?[t._v(t._s(t.$t("bookingResult.select")))]:[t._v(t._s(t.$tc("searchBar.room",t.selectedRoomCount)))]],2):t.isHighlightedPriceTable?e("b-button",{directives:[{name:"theme-btn-outline",rawName:"v-theme-btn-outline"}],staticClass:"w-100 pl-0 pr-0 nowrap",attrs:{disabled:t.isLoading||!!t.hasPreloadData||t.roomCountInSearch>t.inclusiveExtraLimit,"data-auto":"room-".concat(t.item.room_plan_code,"-book-btn"),"data-cy":"book-btn"},on:{click:function click(e){return t.$emit("book")}}},[e("b-spinner",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticClass:"btn-spinner",attrs:{variant:t.spinnerVariant,small:""}}),t._v("\n "+t._s(t.nonMultipleButtonText)+"\n ")],1):e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],staticClass:"w-100 pl-0 pr-0 nowrap book-solid-button",attrs:{disabled:t.isLoading||!!t.hasPreloadData||t.roomCountInSearch>t.inclusiveExtraLimit,"data-auto":"room-".concat(t.item.room_plan_code,"-book-btn"),"data-cy":"book-btn"},on:{click:function click(e){return t.$emit("book")}}},[e("b-spinner",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticClass:"btn-spinner",attrs:{variant:t.spinnerVariant,small:""}}),t._v("\n "+t._s(t.nonMultipleButtonText)+"\n ")],1),t._v(" "),t.roomCountInSearch>1?e("p",{staticClass:"mb-0 text-center text-sm mt-1",attrs:{"data-cy":"room-".concat(t.item.room_plan_code,"-count-text")}},[t._v("\n ("+t._s(t.$tc("searchBar.room",t.roomCountInSearch))+")\n ")]):t._e()],1)}),[],!1,null,null,null).exports,d=o(23);function BookWithFlightSelectButtonvue_type_script_lang_js_ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function BookWithFlightSelectButtonvue_type_script_lang_js_defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var p={name:"BookSelectWithFlightButton",props:{item:{type:Object,required:!0},roomCountInSearch:{type:Number,default:1},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1}},data:function data(){return{roomCount:-1,wbfMaxReservedLimit:d.A}},computed:function BookWithFlightSelectButtonvue_type_script_lang_js_objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?BookWithFlightSelectButtonvue_type_script_lang_js_ownKeys(o,!0).forEac
1h((function(e){BookWithFlightSelectButtonvue_type_script_lang_js_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):BookWithFlightSelectButtonvue_type_script_lang_js_ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({selectedRooms:"search/getSelectedRooms",initialSetting:"setting/getInit"}),{roomCountOptions:function roomCountOptions(){var t=this.initialSetting.multi_rooms_reserve_limit;return Array(Math.min(t,d.A)).fill(null).map((function(t,e){return e+1}))}}),methods:{updateRoomCount:function updateRoomCount(t){this.roomCount=t,this.$emit("bookWithAirlineTicket",t)}}},h=Object(r.a)(p,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"position-relative"},[t.multiple?e("b-form-select",{staticClass:"ninja-hidden-z0 cursor-pointer",attrs:{"data-cy":"book-with-flight-btn",value:t.roomCount,options:t.roomCountOptions,"data-auto":"room-".concat(t.item.room_plan_code,"-book-with-flight-btn"),disabled:t.disabled},on:{input:t.updateRoomCount}}):t._e(),t._v(" "),e("b-button",{staticClass:"w-100 mt-2 t-theme-btn-outline",attrs:{"data-cy":"book-with-flight-".concat(t.item.room_plan_code),disabled:t.disabled},on:{click:function click(e){t.$emit("bookWithAirlineTicket",Math.min(t.roomCountInSearch,t.wbfMaxReservedLimit))}}},[t._v("\n "+t._s(t.$t("bookingResult.bookAirline"))+"\n ")])],1)}),[],!1,null,null,null).exports,m=o(11),_=o(20),f=o.n(_),g=o(975),b=o(1055),v=o(1053),y=o(258),P=o(9),w=o(1358),k={name:"PromotionName",components:{InfoIcon:b.a,PromotionTag:v.a},props:{name:{type:String,required:!0},promotionId:{type:[String,Number],required:!1,default:null},promotion:{type:Object,default:null},taxIncluded:Boolean,bookRoomCount:{type:Number,default:1}},setup:function setup(t){var e=Object(P.toRef)(t,"promotion"),o=Object(P.toRef)(t,"bookRoomCount"),n=Object(P.toRef)(t,"taxIncluded"),i=Object(w.a)(e,{bookRoomCount:o,taxIncluded:n}).promotionDiscountAmount;return{tooltipKey:Object(P.computed)((function(){return"promotion-tooltip-".concat(t.promotionId,"-").concat(Object(y.v4)())})),promotionDiscountAmount:i,priceWithSymbol:g.c}}},O=(o(1359),Object(r.a)(k,(function render(){var t=this,e=t._self._c;return e("div",[e("promotion-tag",{staticClass:"mt-2",attrs:{"tooltip-key":t.tooltipKey,"data-cy":"promotion-tooltip-".concat(t.promotionId)}},[t._v("\n "+t._s(t.name)+"\n ")]),t._v(" "),t.promotion?e("b-tooltip",{ref:"tooltip",attrs:{"custom-class":"promotion-tooltip",target:t.tooltipKey}},[e("div",[e("ul",[["coupon","rounding"].includes(t.promotion.promotion_type)?t._e():e("li",[t._v("\n "+t._s(t.$t("bookingResult.targetUser"))+":\n "+t._s("standard"===t.promotion.promotion_type?t.$t("bookingResult.membersOnly"):t.$t("bookingResult.allUser"))+"\n ")]),t._v(" "),e("li",{attrs:{"data-cy":"discount-amount"}},[t._v("\n "+t._s(t.$t("bookingResult.discountAmount"))+":\n "+t._s(t.priceWithSymbol(t.promotionDiscountAmount))+"\n ")]),t._v(" "),t.promotion.sale_start_date||t.promotion.sale_end_date?e("li",[t._v("\n "+t._s(t.$t("bookingResult.availableBetween"))+": "+t._s(t.promotion.sale_start_date)+" ~\n "+t._s(t.promotion.sale_end_date)+"\n ")]):t._e(),t._v(" "),t.promotion.excluding_start_date||t.promotion.excluding_end_date?e("li",[t._v("\n "+t._s(t.$t("bookingResult.excludeDuring"))+": "+t._s(t.promotion.excluding_start_date)+" ~\n "+t._s(t.promotion.excluding_end_date)+"\n ")]):t._e(),t._v(" "),t.promotion.minimum_nights>1?e("li",[t._v("\n "+t._s(t.$t("bookingResult.appliesTo"))+":\n "+t._s(t.$t("bookingResult.nightsStay",{nights:t.promotion.minimum_nights}))+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"promotion-notes"},[e("b-row",{attrs:{"no-gutters":""}},[e("b-col",{staticClass:"mr-2",attrs:{cols:"1"}},[e("InfoIcon",{staticClass:"icon"})],1),t._v(" "),e("b-col",{attrs:{cols:"10"}},[e("span",[t._v(t._s(t.$t("bookingResult.promotionMayChanged")))])])],1
1)],1)])]):t._e()],1)}),[],!1,null,null,null).exports),C=o(979),j=o(31),R=o(1079),S=o(1080),x={name:"NonSignInPrice",components:{RoomPriceLabel:S.a,PriceTaxInfo:R.a,InfoIcon:C.a},props:{item:{type:Object,required:!0},nights:{type:Number,default:0},appliedPriceType:{type:String,default:null},isUndated:{type:Boolean,default:!1},priceWithoutTax:{type:Number,default:null},tax:{type:Number,default:null},total:{type:Number,default:null},originalPrice:{type:Number,default:null},originalPriceWithoutTax:{type:Number,default:null},taxIncluded:Boolean},data:function data(){return{isMobile:Object(j.h)()}},computed:{discountClass:function discountClass(){return this.appliedPriceType===d.k.BRR||this.appliedPriceType===d.k.Secret?"discount":""}}},I=Object(r.a)(x,(function render(){var t=this,e=t._self._c;return e("div",[e("div",[e("small",{staticClass:"font-weight-bold",attrs:{id:"regular-rate-text"}},[t._v(t._s(t.$t("bookingResult.regularRate")))]),t._v(" "),t.appliedPriceType?e("room-price-label",{staticClass:"old-price",class:[t.appliedPriceType],attrs:{"data-cy":"room-".concat(t.item.room_plan_code,"-old-price"),amount:t.originalPrice,"amount-without-tax":t.originalPriceWithoutTax,"is-undated":t.isUndated}}):t._e()],1),t._v(" "),e("div",[e("room-price-label",{staticClass:"price",class:t.discountClass,attrs:{"data-cy":"room-".concat(t.item.room_plan_code,"-non-sign-in-price"),amount:t.total,"amount-without-tax":t.priceWithoutTax,"is-undated":t.isUndated}}),t._v(" "),t.nights>0&&!t.isMobile?e("span",{staticClass:"nowrap text-sm",class:t.discountClass},[t._v("\n "+t._s(t.$tc("bookingResult.forNights",t.nights))+"\n "),t.isUndated?e("span",{ref:"info-button"},[e("info-icon",{staticClass:"ml-1",staticStyle:{transform:"scale(0.9)"}})],1):t._e()]):t._e(),t._v(" "),e("price-tax-info",{staticClass:"tax",class:t.discountClass})],1),t._v(" "),t.isUndated?e("b-tooltip",{attrs:{placement:"bottom","custom-class":"white-tooltip",target:function target(){return t.$refs["info-button"]}}},[t._v("\n "+t._s(t.$t("bookingResult.lowestPriceInfo"))+"\n ")]):t._e()],1)}),[],!1,null,null,null).exports,T={name:"SignInPrice",components:{RoomPriceLabel:S.a,PriceTaxInfo:R.a,InfoIcon:C.a},props:{item:{type:Object,required:!0},nights:{type:Number,default:0},appliedPriceType:{type:String,default:null},isUndated:{type:Boolean,default:!1},priceWithoutTax:{type:Number,default:null},tax:{type:Number,default:null},total:{type:Number,default:null},originalPrice:{type:Number,default:null},originalPriceWithoutTax:{type:Number,default:null},taxIncluded:Boolean,isHighlightedPriceTable:{type:Boolean,default:!1}},data:function data(){return{isMobile:Object(j.h)()}},computed:{discountClass:function discountClass(){return this.isHighlightedPriceTable||!this.appliedPriceType?"":{member:"orange-font",brr:"discount",all:""}[this.appliedPriceType]}}},M=Object(r.a)(T,(function render(){var t=this,e=t._self._c;return e("div",[e("div",[e("small",{staticClass:"font-weight-bold",attrs:{id:"regular-rate-text"}},[t._v(t._s(t.$t("bookingResult.regularRate")))]),t._v(" "),t.appliedPriceType?e("room-price-label",{staticClass:"old-price",class:t.appliedPriceType,attrs:{tag:"span","data-cy":"room-".concat(t.item.room_plan_code,"-old-price"),amount:t.originalPrice,"amount-without-tax":t.originalPriceWithoutTax,"is-undated":t.isUndated}}):t._e()],1),t._v(" "),e("div",[e("room-price-label",{staticClass:"price",class:t.discountClass,attrs:{"data-cy":"room-".concat(t.item.room_plan_code,"-sign-in-price"),amount:t.total,"amount-without-tax":t.priceWithoutTax,"is-undated":t.isUndated}}),t._v(" "),t.nights>0&&!t.isMobile?e("span",{staticClass:"nowrap text-sm",class:t.discountClass},[t._v(t._s(t.$tc("bookingResult.forNights",t.nights))+"\n "),t.isUndated?e("span",{ref:"info-button"},[e("info-icon",{staticClass:"ml-1",staticStyle:{transform:"scale(0.9)"}})],1):t._e()]):t._e(),t._v(" "),e("price-tax-info",{staticClass:"tax",class:t.discountClass})],1),t._v(" "),t.isUndated?e("b-tooltip",{attrs:{placement:"bottom","custom-class":"white-tooltip",target:function target(){return t.$refs["info-button"]}}},[t._v("\n "+t._s(t.$t("bookingResult.lowestPriceInfo"))+"\n ")]):t._e()],1)}),[],!1,null,null,null).exports,D=o(1054),$={components:{MedalPointIcon:D.a},props:{bonusPoint:{type:Number,required:!0,default:0},pointName:{type:String,required:!0}},data:function data(){return{isOta:d.t,priceWithComma:g.b}}},A=(o(1360),Object(r.a)($,(function render(){var t=this._self._c;return t("div",[t("div",{staticClass:"point-reward",attrs:{id:"point-reward-remark","data-cy":"search-result-point-reward"}},[t("medal-point-icon",{staticClass:"point-reward-icon"}),this._v("\n "+this._s(this.$t("points.naming.earn",{point:"".concat(this.pointName),number:"".concat(this.priceWithComma(this.bonusPoint))}))+"\n ")],1)])}
1),[],!1,null,"e7756476",null).exports),B={components:{MedalPointIcon:D.a},props:{pointAmount:{type:Number,required:!0},pointName:{type:String,required:!0}},data:function data(){return{priceWithComma:g.b}}},F=(o(1361),Object(r.a)(B,(function render(){var t=this._self._c;return t("div",{staticClass:"point-reward"},[t("medal-point-icon",{staticClass:"point-reward-icon"}),this._v("\n "+this._s(this.$t("points.getRegisterPoint",{amount:this.priceWithComma(this.pointAmount),points_name:this.pointName}))+"\n ")],1)}),[],!1,null,"ee685b22",null).exports),N=o(1051),E=o(1016),L=o(207),W=o(49),q=o(136),K=o.n(q),V=o(57),z=o(72),U=o(1008),H=o(8),G=o(257),Q=o(137),J=Object(P.defineComponent)({name:"PriceTableSignInButton",props:{item:{type:Object,required:!0},creansmaerd:{type:Object,required:!0},signInRoute:{type:Object,required:!0},buttonVariant:{type:String,default:"outline-warning"}},setup:function setup(){return{handleClickEvent:function handleClickEvent(){Object(Q.c)({buttonPosition:Q.a.PRICE_TABLE}),Object(Q.b)("Price table")}}}}),Y=(o(1362),Object(r.a)(J,(function render(){var t,e=this,o=e._self._c;e._self._setupProxy;return o("router-link",{attrs:{to:e.signInRoute}},[o("b-button",{staticClass:"sign-in-button",attrs:{variant:e.buttonVariant,"data-cy":"room-".concat(e.item.room_plan_code,"-").concat((null===(t=e.creansmaerd)||void 0===t?void 0:t.active)?"creansmaerd-":"","sign-up")},on:{click:e.handleClickEvent}},[e._v("\n "+e._s(e.$t("base.signInUp"))+"\n ")])],1)}),[],!1,null,"1ffd7ff2",null).exports);function _objectWithoutProperties(t,e){if(null==t)return{};var o,n,i=function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var o,n,i={},r=Object.keys(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||(i[o]=t[o]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function _slicedToArray(t,e){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);n=!0);}catch(c){i=!0,r=c}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}return o}(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function PriceTablevue_type_script_lang_js_ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function PriceTablevue_type_script_lang_js_objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?PriceTablevue_type_script_lang_js_ownKeys(o,!0).forEach((function(e){PriceTablevue_type_script_lang_js_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):PriceTablevue_type_script_lang_js_ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function PriceTablevue_type_script_lang_js_defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var X={name:"PriceTable",components:{RoomPriceLabel:S.a,PriceTaxInfo:R.a,GuestNumber:a,BookSelectButton:u,BookWithFlightSelectButton:h,PromotionName:O,NonSignInPrice:I,SignInPrice:M,DateRangePicker:N.a,InfoBlueIcon:U.a,PointReward:A,PriceTableSignInButton:Y,PointRewardForRegistration:F},mixins:[E.a],props:{item:{type:Object,required:!0},appliedPriceType:{type:String,default:null},priceType:{type:String,default:null},isLoading:{type:Boolean,default:!1},roomCount:{type:Number,required:!0},selectedRoomCount:{type:Number,required:!0},getSearchParams:{type:Function,default:function _default(){return{}}},bookRoomCount:{type:Number,required:!0},isHighlightedPriceTable:{type:Boolean,default:!1}},setup:function setup(t){var e=Object(P.toRefs)(t),o=e.item,n=e.bookRoomCount,i=Object(G.g)(o,n),r=i.signInPriceDetail,a=i.nonSignInPriceDetail,s=i.originalPrice,c=i.originalPriceDetail,l=Object(P.computed)((function(){return H.a.getters["membership/isSignedIn"]})),u=Object(P.computed)((function(){return l.value?r.value.priceWithoutTax:a.value.priceWithoutTax})),d=Object(P.computed)((function(){return l.value?r.value.tax:a.value.tax})),p=Object(P.computed)((function(){return c.value.priceWithoutTax})),h=Object(P.computed)((function(){return r.value.total<a.value.total})),m=Object(P.computed)((function(){return r.value.total===a.value.total}));
1return{signInPriceDetail:r,nonSignInPriceDetail:a,originalPrice:s,originalPriceWithoutTax:p,priceWithoutTax:u,tax:d,isSignedIn:l,isMemberPriceCheaperThanGuest:h,isMemberPriceEqualToGuest:m,priceWithSymbol:g.c}},data:function data(){return{dateRange:[],isMobile:Object(j.h)()}},computed:PriceTablevue_type_script_lang_js_objectSpread({},Object(n.d)({isHotelPointProgramDisabled:"setting/getPointProgramDisabled",isRegistrationPointEnabled:"setting/isRegistrationPointEnabled",registrationPoint:"setting/getRegistrationPoint",setting:"setting/getSetting",nights:"search/getNights",form:"search/getSearchForm",isVoucherMode:"search/isVoucherMode",isTiersMode:"setting/isTiersMode",hotelId:"setting/getHotelId",isUndated:"search/isUndated",isMultipleRoomsMode:"search/getIsMultiple",creansmaerd:"setting/getCreansmaerd",hotelCode:"setting/getHotelCode",totalAdultsCount:"search/getTotalAdultsCount",totalKidsCount:"search/getTotalKidsCount",wbfSetting:"setting/getWbfSetting",wbfPriceMap:"search/getWbfPriceMap",isLotteryEntry:"lottery/getIsLotteryEntry",pointName:"setting/getPointName",isCorporateSignedIn:"membership/isCorporateSignedIn",showPricesTaxIncluded:"setting/showPricesTaxIncluded",promotionMap:"search/getPromotionMap",ghaQueryParams:"search/getGHAQueryParams",isUpdateMode:"booking/isUpdateMode",isNightsBasedBonusPoint:"setting/isNightsBasedBonusPoint"}),{isReservationUpdateFlow:function isReservationUpdateFlow(){return this.isUpdateMode||this.$route.query.current_reservation},hasSecretPromotion:function hasSecretPromotion(){var t;return!!(null===(t=this.item.non_sign_in_discount)||void 0===t?void 0:t.promotions)&&this.item.non_sign_in_discount.promotions.some((function(t){return"secret"===t.promotion_type}))},hasMemberBenefit:function hasMemberBenefit(){return this.isMemberPriceCheaperThanGuest||this.isHighlightedPriceTable&&this.isMemberPriceEqualToGuest},shouldShowMembershipPromotion:function shouldShowMembershipPromotion(){var t,e;return!!(null===(t=this.item)||void 0===t?void 0:t.sign_in_required)||!this.$ota&&(!this.isSignedIn&&(!!this.isMemberPriceCheaperThanGuest&&(!(null===(e=this.item)||void 0===e?void 0:e.only_visible_to_guest)&&!this.isReservationUpdateFlow)))},membershipDiscountClass:function membershipDiscountClass(){return this.isHighlightedPriceTable?"":"brr"===this.priceType?"discount":"orange-font"},adultsCount:function adultsCount(){var t,e,o,n,i,r;return((null===(t=this.item)||void 0===t||null===(e=t.matched_search_criteria)||void 0===e?void 0:e.adults_with_companion)||(null===(o=this.item)||void 0===o||null===(n=o.matched_search_criteria)||void 0===n?void 0:n.adults_count))-((null===(i=this.item)||void 0===i||null===(r=i.matched_search_criteria)||void 0===r?void 0:r.adult_companion)||0)},childrenCount:function childrenCount(){var t,e,o,n,i,r;return((null===(t=this.item)||void 0===t||null===(e=t.matched_search_criteria)||void 0===e?void 0:e.children_with_kid_tier_A_companion)||(null===(o=this.item)||void 0===o||null===(n=o.matched_search_criteria)||void 0===n?void 0:n.children_count))-((null===(i=this.item)||void 0===i||null===(r=i.matched_search_criteria)||void 0===r?void 0:r.kid_tier_A_companion)||0)},adultsCompanionCount:function adultsCompanionCount(){var t,e;return null===(t=this.item)||void 0===t||null===(e=t.matched_search_criteria)||void 0===e?void 0:e.adult_companion},childrenCompanionCount:function childrenCompanionCount(){var t,e;return null===(t=this.item)||void 0===t||null===(e=t.matched_search_criteria)||void 0===e?void 0:e.kid_tier_A_companion},datePickerMode:function datePickerMode(){var t;return(null===(t=this.form)||void 0===t?void 0:t.is_day_use)?"single":"range"},searchForm:function searchForm(){return PriceTablevue_type_script_lang_js_objectSpread({},this.form,{selectedRoomPlanCode:this.item.room_plan_code})},isRoomCountShortage:function isRoomCountShortage(){return!!this.isTiersMode&&this.form.room_count>this.roomCount},showBookAirline:function showBookAirline(){var t,e;if(!(null===(t=this.wbfSetting)||void 0===t||null===(e=t.settings)||void 0===e?void 0:e.check_in_start_day))return!1;if(this.isLotteryEntry)return!1;var o=this.item.wbf_enabled&&this.wbfSetting.is_active;return this.$ota?o&&!0:o},validWbfDateRange:function validWbfDateRange(){var t,e;return(null===(t=this.wbfSetting)||void 0===t||null===(e=t.settings)||void 0===e?void 0:e.check_in_start_day)?"".concat(Object(W.i)(this.wbfSetting.settings.check_in_start_day)," ~ ").concat(Object(W.i)(this.wbfSetting.settings.check_in_end_day)):null},bookNotInRange:function bookNotInRange(){var t,e;if(!(null===(t=this.wbfSetting)||void 0===t||null===(e=t.settings)||void 0===e?void 0:e.check_in_start_day))return!0;var o=this.form.checkin,n=Object(W.i)(this.wbfSetting.settings.check_in_start_day-1),i=Object(W.i)(this.wbfSetting.settings.check_in_end_day+1);return!(Object(W.b)(o,n)&&Object(W.c)(o,i))},bookNotInMaxStay:function bookNotInMaxStay(){return this.nights>this.wbfSetting.settings.max_stay_period},gotPriceInAdvance:function gotPriceInAdvance(){return!Object(j.j)()||!!this.wbfPriceMap["".concat(this.item.room_plan_code,"_").concat(this.item.matched_search_criteria.adults_with_companion,"_").concat(this.item.matched_search_criteria.children_with_kid_tier_A_companion)]},currentDiscount:function currentDiscount(){var t=this.isSignedIn?"sign_in_discount":"non_sign_in_discount";return this.item[t]},signedInBonusPoint:function signedInBonusPoint(){var t,e;return(this.isMultipleRoomsMode||this.isNightsBasedBonusPoint?1:this.bookRoomCount)*((null===(t=this.item)||void 0===t||null===(e=t.sign_in_discount)||void 0===e?void 0:e.bonus_point)||0)},registrationPointOnlyGuest:function registrationPointOnlyGuest(){var t;return null===(t=this.item)||void 0===t?void 0:t.only_visible_to_guest},showPointForRegistration:function showPointForRegistration(){return!this.$ota&&this.isRegistrationPointEnabled&&this.pointName&&!this.isVoucherMode&&!this.isSignedIn&&!this.registrationPointOnlyGuest},showPointReward:function showPointReward(){return!this.$ota&&this.signedInBonusPoint&&this.pointName&&!this.isVoucherMode&&!this.isCorporateSignedIn},memberPriceInfo:function memberPriceInfo(){var t,e=this.getSalePriceWithTax(!0),o=this.getAppliedPromotionIDAndCouponCode(null===(t=this.item.sign_in_discount)||void 0===t?void 0:t.promotions),n=o.promotionID,i=o.couponCode;return PriceTablevue_type_script_lang_js_objectSpread({searchResultPrice
1:e},n?{promotionID:n}:{},{},i?{couponCode:i}:{})},signInRoute:function signInRoute(){var t;if(null===(t=this.item)||void 0===t?void 0:t.only_visible_to_guest)return{name:m.a.membership.signIn,query:{urlBack:this.$route.fullPath,code:this.setting.code}};if(!this.isMultipleRoomsMode&&!this.isUndated&&this.memberPriceInfo){var e,o,n,i=this.memberPriceInfo,r=i.searchResultPrice,a=i.promotionID,s=i.couponCode,c=this.getSearchParams(r,a,s).paramsForQuery;(null===(e=this.ghaQueryParams)||void 0===e?void 0:e.metasearch_source)&&(c.metasearch_source=this.ghaQueryParams.metasearch_source),(null===(o=this.ghaQueryParams)||void 0===o?void 0:o.room_type_code)&&(c.room_type_code=this.ghaQueryParams.room_type_code),(null===(n=this.ghaQueryParams)||void 0===n?void 0:n.hotel_plan_code)&&(c.hotel_plan_code=this.ghaQueryParams.hotel_plan_code);var l=this.$router.resolve({name:m.a.reservation.guestDetail,query:c}).href;return{name:m.a.membership.signIn,query:{urlBack:l,code:this.setting.code}}}return{name:m.a.membership.signIn,query:{urlBack:this.$route.fullPath,code:this.setting.code}}},showSignInButtonForPoints:function showSignInButtonForPoints(){var t;return!this.item.sign_in_required&&(!this.isReservationUpdateFlow&&(!this.isSignedIn&&(!(null===(t=this.item)||void 0===t?void 0:t.only_visible_to_guest)&&!(!this.showPointReward&&!this.showPointForRegistration||this.isMemberPriceCheaperThanGuest))))}}),created:function created(){var t=this;if(L.a.$on("triggerSelectAndBookFlow",(function(e){t.item.room_plan_code===t.form.selectedRoomPlanCode&&t.selectAndBook([e])})),this.showBookAirline&&Object(j.j)()&&this.item.inventory>0){var e,o,n,i,r=null;if((null!==(e=null===(o=this.currentDiscount)||void 0===o||null===(n=o.promotions)||void 0===n?void 0:n.length)&&void 0!==e?e:0)>0)r="coupon"!==(null===(i=this.currentDiscount.promotions[0])||void 0===i?void 0:i.promotion_type)&&this.currentDiscount.promotions[0].id;this.$emit("setWbfPriceMap",{promotionID:r})}},methods:{displayPromotions:function displayPromotions(t){var e,o=(null===(e=t?this.item.sign_in_discount:this.item.non_sign_in_discount)||void 0===e?void 0:e.promotions)||[];return this.appliedPriceType===d.k.BRR?o.filter((function(t){return"rounding"!==t.promotion_type})):o},getSalePriceWithTax:function getSalePriceWithTax(t){return this.getSalePrice(t)+this.getSalePriceTax(t)},getSalePrice:function getSalePrice(t){var e=t?"sign_in_discount":"non_sign_in_discount",o=this.item[e].total_price_after_discount;return(K()(o)?o:this.item.total_price)*this.bookRoomCount},getSalePriceTax:function getSalePriceTax(t){var e=t?"sign_in_discount":"non_sign_in_discount",o=this.item[e].total_price_after_discount_tax+(this.item[e].total_accommodation_tax||0),n=this.item.tax+(this.item.accommodation_tax||0);return(K()(o)?o:n)*this.bookRoomCount},book:function book(){var t={searchResultPrice:this.getSalePriceWithTax(this.isSignedIn)};this.handleBook(t,this.currentDiscount.promotions)},reselectDate:function reselectDate(t){this.dateRange=t;var e=_slicedToArray(this.dateRange,2),o=e[0],n=e[1];L.a.$emit("search",{checkin:o,checkout:n||o,search_type:null}),Object(j.n)()},mobilePopupCalendarModal:function mobilePopupCalendarModal(){this.isMobile&&(this.$store.dispatch("search/setSearchForm",{selectedRoomPlanCode:this.item.room_plan_code}),this.$bvModal.show("search-bar-calendar-modal"))},mobilePopupSelectDateModal:function mobilePopupSelectDateModal(){this.isMobile&&(this.$store.dispatch("search/setSearchForm",{selectedRoomPlanCode:this.item.room_plan_code}),this.$bvModal.show("select-rates-calendar-modal"))},changeRoomCount:function changeRoomCount(t){var e,o,n,i=[],r=null,a=null;if(this.appliedPriceType===d.k.BRR&&(null===(e=this.currentDiscount.applied_scrape_ids)||void 0===e?void 0:e.length)&&(i=this.currentDiscount.applied_scrape_ids),(null===(o=this.currentDiscount)||void 0===o||null===(n=o.promotions)||void 0===n?void 0:n.length)>0){var s=this.currentDiscount.promotions.find((function(t){return["all_users","standard","secret","early_bird","last_minute"].includes(t.promotion_type)})),c=this.currentDiscount.promotions.find((function(t){return"coupon"===t.promotion_type}));s&&"coupon"!==s.promotion_type&&(r=s.id),c&&(a=c.coupon_code)}this.$emit("changeRoomCount",{value:t,salePrice:this.priceWithoutTax,tax:this.tax,scrapeIds:i,promotionID:r,couponCode:
1a})},selectAndBook:function selectAndBook(t){var e=this,o=_slicedToArray(t,1)[0],n=Object(W.a)(o,this.form.nights);this.$store.dispatch("search/setSearchForm",{checkin:o,checkout:n});var i=this.roomRateMap[o];if(i&&"number"==typeof i.rate){var r={searchResultPrice:i.rate},a=i.promotion_ids.map((function(t){return e.promotionMap[t]}));this.handleBook(r,a)}},getAppliedPromotionIDAndCouponCode:function getAppliedPromotionIDAndCouponCode(t){var e=null,o=null;if((null==t?void 0:t.length)>0){var n=t.find((function(t){return["all_users","standard","secret","early_bird","last_minute"].includes(t.promotion_type)}));e=null==n?void 0:n.id;var i=t.find((function(t){return"coupon"===t.promotion_type}));o=null==i?void 0:i.coupon_code}return{promotionID:e,couponCode:o}},handleBook:function handleBook(t,e){var o=this.getAppliedPromotionIDAndCouponCode(e),n=o.promotionID,i=o.couponCode,r=PriceTablevue_type_script_lang_js_objectSpread({},t,{},n?{promotionID:n}:{},{},i?{couponCode:i}:{});this.$emit("book",r)},bookWithAirlineTicket:function bookWithAirlineTicket(){for(var t,e,o,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r={agentcode:"21000",agentbranch:"0001",hotelcode:null===(t=this.wbfSetting)||void 0===t||null===(e=t.settings)||void 0===e?void 0:e.hotel_code,token:Object(V.b)(),hotelsearchInfo:{checkin:this.searchForm.checkin.replace(/\//g,"-"),checkout:this.searchForm.checkout.replace(/\//g,"-"),hoteladt:this.adultsCount*i,hotelchd:this.childrenCount*i,roomInfo:[]}},a=this.displayPromotions(this.isSignedIn).find((function(t){return["all_users","standard","early_bird","last_minute"].includes(t.promotion_type)})),s=0;s<i;s++){var c,l,u,d=this.searchForm.kidsTiers?this.searchForm.kidsTiers.filter((function(t){return t.children})).map((function(t){return{code:t.code,count:t.children}})):Object(z.h)((null===(c=this.searchForm.rooms[0])||void 0===c?void 0:c.kids_tiers)||[]),p={roomadults:this.adultsCount,roomchildren:this.childrenCount,kidsagerangeInfo:d,hotelplancd:this.item.hotel_plan_code,roomplancd:this.item.room_plan_code,roomtypcd:this.item.room_type_code,roomreserveInfo:{hotelplandescription:this.item.hotel_plan_description,roomplanname:this.item.room_plan_name,mealstatus:this.item.meal_status,roomtypename:this.item.room_type_name,roomtypedescription:this.item.room_type_description,wifioption:this.item.wifi&&this.item.wifi.includes("yes")?"True":"False",hidesmoking:this.item.hide_smoking,roomfacilities:this.item.room_facilities.map((function(t){return null==t?void 0:t.text})).join(","),bedInfo:this.item.beds.map((function(t){return PriceTablevue_type_script_lang_js_objectSpread({bedcount:t.bed_count,bedtype:t.bed_type},_objectWithoutProperties(t,["bed_count","bed_type"]))})),floor_data:this.item.floor_data,room_size:(null===(l=this.item)||void 0===l||null===(u=l.room_size)||void 0===u?void 0:u.value)?"".concat(this.item.room_size.value," ").concat(this.item.room_size.unit):null,bathroom:this.item.bathroom,toilet:this.item.toilet,issmoking:this.item.is_smoking,totalprice:this.getSalePriceWithTax(this.isSignedIn),promotion:null==a?void 0:a.id,pricedtInfo:{adtprice:this.getSalePriceWithTax(this.isSignedIn),chdprice:0}}};"secret"===this.form.mode&&(p.hotelplanmode="secret"),r.hotelsearchInfo.roomInfo.push(p)}var h,m=null;(null===(o=this.currentDiscount)||void 0===o?void 0:o.promotions)&&(null===(n=this.currentDiscount)||void 0===n?void 0:n.promotions.length)>0&&(m="coupon"!==(null===(h=this.currentDiscount.promotions[0])||void 0===h?void 0:h.promotion_type)&&this.currentDiscount.promotions[0].id);this.$emit("bookAirline",{promotionID:m,wbfPayload:r})},_get:f.a,isDatePast:W.o}},Z=(o(1363),Object(r.a)(X,(function render(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"d-flex"},[e("guest-number",{attrs:{"data-cy":"room-".concat(t.item.room_plan_code,"-guest-number"),adults:t.adultsCount,kids:t.childrenCount,"adults-companion":t.adultsCompanionCount,"children-companion":t.childrenCompanionCount,"room-count-in-search":t.bookRoomCount,nights:t.nights}})],1),t._v(" "),!t.showPointReward&&!t.showPointForRegistration||t.isHotelPointProgramDisabled||t.isReservationUpdateFlow&&!t.isSignedIn?t._e():e("div",{staticClass:"reward-block",class:{"sign-in":t.showSignInButtonForPoints}},[e("div",{staticClass:"d-flex flex-column"},[t.showPointReward?e("point-reward",{attrs:{"bonus-point":t.signedInBonusPoint,"point-name":t.pointName,"data-cy":"point-reward-".concat(t.item.room_plan_code)}}):t._e(),t._v(" "),t.showPointForRegistration?e("point-reward-for-registration",{staticClass:"mt-2",attrs:{"point-amount":t.registrationPoint,"point-name":t.pointName,"data-cy":"registration-point-".concat(t.item.room_plan_code)}}):t._e()],1),t._v(" "),t.showSignInButtonForPoints?e("b-col",{staticClass:"p-0",attrs:{cols:"6",order:"4",lg:"5",xl:"4"}},[e("price-table-sign-in-button",{attrs:{item:t.item,creansmaerd:t.creansmaerd,"sign-in-route":t.signInRoute}})],1):t._e()],1),t._v(" "),t.shouldShowMembershipPromotion?t._l(t.displayPromotions(!0),(function(o){return e("promotion-name",{key:"promotion-".concat(o.id),staticClass:"mr-1",attrs:{"promotion-id":"".concat(o.id,"-").concat(t.item.room_plan_code),name:o.name,promotion:o,"tax-included":t.showPricesTaxIncluded,"book-room-count":t.bookRoomCount}})})):t._e(),t._v(" "),t.shouldShowMembershipPromotion?e("b-row",{staticClass:"plan-separator pt-1",attrs:{tag:"section","no-gutters":"","align-v":"center"}},[e("b-col",{attrs:{cols:"6",order:"3",lg:"7",xl:"8"}},[e("span",{staticClass:"d-block",class:{"orange-font":!t.isHighlightedPriceTable}},[e("small",{staticClass:"font-weight-bold"},[t._v(t._s(t.$t("membership.signUpFor")))]),t._v(" "),"brr"===t.priceType?e("room-price-label",{staticClass:"old-price",class:[t.priceType],attrs:{amount:t.
1signInPriceDetail.total,"amount-without-tax":t.signInPriceDetail.priceWithoutTax,"is-undated":t.isUndated}}):t._e()],1),t._v(" "),e("span",[e("room-price-label",{staticClass:"price",class:t.membershipDiscountClass,attrs:{"data-cy":"room-".concat(t.item.room_plan_code,"-membership-price"),amount:t.signInPriceDetail.total,"amount-without-tax":t.signInPriceDetail.priceWithoutTax,"is-undated":t.isUndated}}),t._v(" "),t.isMobile?t._e():e("span",{staticClass:"nowrap text-sm",class:t.membershipDiscountClass},[t._v("\n "+t._s(t.$tc("bookingResult.forNights",t.nights))+"\n ")]),t._v(" "),e("price-tax-info",{staticClass:"tax",class:t.membershipDiscountClass})],1)]),t._v(" "),e("b-col",{attrs:{cols:"6",order:"4",lg:"5",xl:"4","data-cy":"price-comparison-section"}},[e("price-table-sign-in-button",{attrs:{item:t.item,creansmaerd:t.creansmaerd,"sign-in-route":t.signInRoute,"button-variant":t.isHighlightedPriceTable?"primary":"outline-warning","data-cy":"price-sign-in-button"}})],1)],1):t._e(),t._v(" "),t._l(t.displayPromotions(t.isSignedIn&&!t.hasSecretPromotion),(function(o){return e("promotion-name",{key:o.id,staticClass:"mr-1",attrs:{name:o.name,"promotion-id":"".concat(o.id,"-").concat(t.item.room_plan_code),promotion:o,"tax-included":t.showPricesTaxIncluded,"book-room-count":t.bookRoomCount}})})),t._v(" "),t.item.sign_in_required?t._e():e("b-row",{staticClass:"plan-separator pt-2",attrs:{tag:"section","no-gutters":"","align-v":"center"}},[e("b-col",{class:{"highlighted-regular-rate-section":t.isHighlightedPriceTable&&t.isMemberPriceCheaperThanGuest,"signed-in":t.isSignedIn},attrs:{cols:"6",order:"3",lg:"7",xl:"8","data-cy":t.isHighlightedPriceTable?"highlighted-regular-rate-section":"regular-rate-section"}},[t.item.total_price?[!t.isSignedIn||t.hasSecretPromotion?e("non-sign-in-price",t._b({attrs:{item:t.item,nights:t.nights,"applied-price-type":t.appliedPriceType,"is-undated":t.isUndated,"original-price":t.originalPrice,"original-price-without-tax":t.originalPriceWithoutTax}},"non-sign-in-price",t.nonSignInPriceDetail,!1)):e("sign-in-price",t._b({attrs:{item:t.item,nights:t.nights,"applied-price-type":t.appliedPriceType,"is-undated":t.isUndated,"original-price":t.originalPrice,"original-price-without-tax":t.originalPriceWithoutTax,"is-highlighted-price-table":t.isHighlightedPriceTable}},"sign-in-price",t.signInPriceDetail,!1))]:t._e()],2),t._v(" "),e("b-col",{class:{"highlighted-buttons-section":t.isHighlightedPriceTable&&!t.shouldShowMembershipPromotion},attrs:{cols:"6",order:"4",lg:"5",xl:"4"}},[t.item.booking_start_date&&!t.isDatePast(t.item.booking_start_date,"YYYY-MM-DD")?[e("p",{staticClass:"mb-0 text-center text-sm"},[t._v(t._s(t.$t("bookingResult.reservationStartDate")))]),t._v(" "),e("p",{staticClass:"mb-0 text-center text-sm"},[t._v(t._s(t.item.booking_start_date))])]:t.item.sign_in_required&&!t.isSignedIn?[e("price-table-sign-in-button",{attrs:{item:t.item,creansmaerd:t.creansmaerd,"sign-in-route":t.signInRoute,"button-variant":t.isHighlightedPriceTable?"primary":"outline-warning","data-cy":"price-sign-in-button-required"}})]:t.isUndated?[e("div",{staticClass:"position-relative"},[e("b-button",{staticClass:"w-100",attrs:{variant:"outline-dark","data-cy":"room-".concat(t.item.room_plan_code,"-undated-book")},on:{click:t.mobilePopupSelectDateModal}},[t._v(t._s(t.$t("bookingResult.book")))]),t._v(" "),t.isMobile?t._e():e("date-range-picker",{attrs:{value:t.dateRange,mode:"single",config:t.datePickerConfig,"hidden-mode":""},on:{input:t.selectAndBook}})],1),t._v(" "),t.bookRoomCount>1?e("p",{staticClass:"mb-0 text-center text-sm mt-1"},[t._v("\n ("+t._s(t.$tc("searchBar.room",t.bookRoomCount))+")\n ")]):t._e()]:"unavailable"!==t.item.availability&&!t.isRoomCountShortage||t.isVoucherMode?e("div",[e("book-select-button",{attrs:{item:t.item,"is-loading":t.isLoading,"room-count":t.roomCount,"selected-room-count":t.selectedRoomCount,"room-count-in-search":t.form.room_count,multiple:t.isMultipleRoomsMode,"is-highlighted-price-table":t.isHighlightedPriceTable&&t.shouldShowMembershipPromotion},on:{book:t.book,changeRoomCount:t.changeRoomCount}}),t._v(" "),t.showBookAirline?e("div",[e("book-with-flight-select-button",{attrs:{item:t.item,"room-count-in-search":t.form.room_count,multiple:t.isMultipleRoomsMode,disabled:!t.gotPriceInAdvance||t.bookNotInRange||t.bookNotInMaxStay}
1,on:{bookWithAirlineTicket:t.bookWithAirlineTicket}}),t._v(" "),e("portal",{attrs:{to:"bookAirlineWarning-".concat(t.item.room_type_code,"-").concat(t.item.room_plan_code,"-").concat(t.item.sleeps)}},[t.bookNotInRange||t.bookNotInMaxStay?e("div",{staticClass:"position-relative"},[e("info-blue-icon",{staticClass:"svg-scale-sm-8 position-absolute"}),t._v(" "),e("i18n",{staticClass:"text-sm pl-4 mb-0 font-weight-normal",attrs:{tag:"p",path:t.bookNotInRange?"bookingResult.bookAirlineWarning":"bookingResult.bookAirlineWarningStay","data-cy":"book-with-flight-".concat(t.item.room_plan_code,"-warning")}},[e("strong",[t._v(t._s(t.$t("bookingResult.flightRooms")))]),t._v(" "),e("span",[t._v(t._s(t.bookNotInRange?t.validWbfDateRange:t.wbfSetting.settings.max_stay_period))])])],1):t._e()])],1):t._e()],1):[e("p",{staticClass:"red-font font-weight-bold mb-2 text-center"},[t._v("\n "+t._s(t.$t("bookingResult.notAvailable"))+"\n ")]),t._v(" "),e("div",{staticClass:"position-relative"},[e("b-button",{staticClass:"w-100",attrs:{variant:"outline-dark","data-cy":"room-".concat(t.item.room_plan_code,"-select-new-date")},on:{click:t.mobilePopupCalendarModal}},[t._v(t._s(t.$t("bookingResult.selectNewDate")))]),t._v(" "),t.isMobile?t._e():e("date-range-picker",{attrs:{value:t.dateRange,mode:t.datePickerMode,config:t.datePickerConfig,"hidden-mode":""},on:{input:t.reselectDate}})],1)]],2)],1)],2)}),[],!1,null,"0e9db21e",null));e.a=Z.exports},1335:function(t,e,o){"use strict";var n=o(32);var i=o(33),r={components:{AddIcon:Object(i.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"}},this.$listeners),[t("path",{attrs:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",fill:"#767677"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null).exports,RemoveIcon:Object(i.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"}},this.$listeners),[t("path",{attrs:{fill:"#767677",d:"M19 13H5v-2h14v2z"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null).exports},props:{toggleMore:{type:Boolean,required:!0}}},a=(o(1354),Object(i.a)(r,(function render(){var t=this,e=t._self._c;return e("button",{staticClass:"see-more",attrs:{type:"button"},on:{click:function click(e){return t.$emit("click")}}},[t.toggleMore?e("remove-icon"):e("add-icon"),t._v("\n "+t._s(t.toggleMore?t.$t("bookingResult.viewClose"):t.$t("bookingResult.viewAll"))+"\n ")],1)}),[],!1,null,"29936cbb",null).exports),s={props:{otaNames:{type:Array,required:!0},target:{type:String,required:!0}}},c=Object(i.a)(s,(function render(){var t=this,e=t._self._c;return e("b-tooltip",{ref:"tooltip",attrs:{placement:"topleft","custom-class":"white-tooltip",target:t.target}},[e("div",{staticClass:"text-left"},[t._v(t._s(t.$t("bookingResult.serviceFeeDesc")))]),t._v(" "),t._l(t.otaNames,(function(o,n){return e("b-row",{key:"".concat(n,"-").concat(o.code),staticClass:"text-left mt-2",attrs:{"no-gutters":""}},[e("b-col",{attrs:{cols:"6"}},[t._v(t._s(t.$t("ota.name.".concat(o.ota))))]),t._v(" "),e("b-col",{attrs:{cols:"6"}},[t._v(t._s(o.service_fee)+" %")])],1)}))],2)}),[],!1,null,null,null).exports,l=o(979),u=o(40),d=o(257),p=o(975),h=o(9);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var m={name:"OtaList",components:{SeeMore:a,ServiceFeeTooltip:c,InfoIcon:l.a},props:{id:{type:String,required:!0},otaNames:{type:Array,required:!0},isPlanView:{type:Boolean,default:!1},bookRoomCount:{type:Number,default:1}},setup:function setup(t){var e=Object(h.toRefs)(t).bookRoomCount,o=Object(d.b)().getMcpPriceValue;return{getOtaPriceWithSymbol:function getOtaPriceWithSymbol(t){return Object(p.c)(o(t,"ota_price_value")*e.value)}}},data:function data(){return{toggleMore:!1}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({otaList:function otaList(){return this.toggleMore?this.otaNames:this.otaNames.slice(0,3)},serviceFeeList:function serviceFeeList(){return this.otaNames.filter((function(t){return Number(t.service_fee)>0}))},showSeeMore:function showSeeMore(){return this.otaNames.length>3},showServiceFee:function showServiceFee(){return this.otaNames.some((function(t){return Number(t.service_fee)>0}))}},Object(u.d)({nights:"search/getNights"})),methods:{renderOTAPrice:function renderOTAPrice(t,e){return"".concat(t," ").concat(n.a.tc("bookingResult.forNights",e))}}},_=(o(1355),Object(i.a)(m,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"ota-block",attrs:{"data-cy":"ota-list-".concat(t.id)}},[e("div",{staticClass:"ota-list-wrapper"},[t._l(t.otaList,(function(o,n){return e("b-row",{key:"ota-".concat(n,"-").concat(o.code),attrs:{"data-cy":"ota-list-item-".concat(o.ota),tag:"section","no-gutters":""}},[e("b-col",{attrs:{cols:"6"}},[t._v(t._s(t.$t("ota.name.".concat(o.ota))))]),t._v(" "),e("b-col",{attrs:{cols:"6"}},[e("span",{attrs:{"data-cy":"ota-list-item-price-".concat(o.ota)}},[t._v("\n "+t._s(t.renderOTAPrice(t.getOtaPriceWithSymbol(o),t.nights))+"\n ")])])],1)})),t._v(" "),t.showSeeMore?e("see-more",{attrs:{"toggle-more":t.toggleMore},on:{click:function click(e){t.toggleMore=!t.toggleMore}}}):t._e()],2),t._v(" "),t.showServiceFee?e("span",{staticClass:"info-icon",attrs:{id:t.id}},[e("info-icon")],1):t._e(),t._v(" "),t.showServiceFee?e("service-fee-tooltip",{attrs:{target:t.id,"ota-names":t.serviceFeeList}}):t._e()],1)}),[],!1,null,"de5554e2",null));e.a=_.exports},1336:function(t,e,o){"use strict";var n=o(20),i=o.n(n),r=o(991),a=o(33),s=Object(a.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"}},this.$listeners),[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{fill:"#FFF",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}})])}),[],!1,null,null,null).exports,c=o(31),l=o(258),u={name:"NotificationAlert",components:{InfoIcon:s},props:{notifications:{type:Array,required:!0}},data:function data(){return{tooltipId:Object(l.v4)()}},computed:{triggers:function triggers(){return Object(c.h)()?"click blur":"hover focus"}},methods:{onShow:function onShow(){Object(c.h)()&&document.addEventListener("touchmove",this.onScroll)},onScroll:function onScroll(){this.$root.$emit("bv::hide::tooltip",this.tooltipId),document.removeEventListener("touchmove",this.onScroll)}}},d=(o(1351),Object(a.a)(u,(function render(){var t=this,e=t._self._c;return e("div",{ref:"notification-button",staticClass:"notification-container"},[e("info-icon",{staticClass:"icon"}),e("span",{staticClass:"align-middle"},[t._v(t._s(t.$t("additionalQuestion.notificationFromFacility")))]),t._v(" "),e("b-tooltip",{attrs:{id:t.tooltipId,placement:"bottom","custom-class":"white-tooltip",target:function target(){return t.$refs["notification-button"]},triggers:t.triggers},on:{show:t.onShow}},[e("ul",{staticClass:"list-style-none"},t._l(t.notifications,(function(o,n){return e("li",{key:n,attrs:{"data-cy":"notification-".concat(o.id)}},[t._v("\n "+t._s(o.question)+"\n ")])})),0)])],1)}),[],!1,null,null,null).exports),p=o(40),h=o(1050),m=o(9),_=o(257),f=o(975),g=o(23);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var b={name:"RoomPlanFeatures",components:{PaymentPromotionBanner:h.a,NotificationAlert:d},mixins:[r.a],props:{plan:{type:Object,required:!0},roomPlanCode:{type:String,required:!0}},setup:function setup(t){var e=Object(m.getCurrentInstance)().proxy.$store,o=Object(_.b)().getMcpPriceValue,n=Object(m.computed)((function(){return e.getters["membership/isSignedIn"]}));return{paymentPromotionAmount:Object(m.computed)((function(){var e,i,r,a=n.value?"sign_in_discount":"non_sign_in_discount";if(!(null===(e=t.plan[a])||void 0===e||null===(i=e.payment_promotion)||void 0===i?void 0:i.discount_amount))return null;var s=o(null===(r=t.plan[a])||void 0===r?void 0:r.payment_promotion,"discount_amount");return Object(f.c)(s)}))}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(p.d)({isTWD:"setting/isTWD",isLotteryEntry:"lottery/getIsLotteryEntry",notificationMap:"search/getNotificationMap",searchForm:"search/getSearchForm",currentReservation:"booking/getReservationDetails"}),{hasNotifications:function hasNotifications(){var t;return(null===(t=this.notificationMap[this.plan.hotel_plan_code||this.plan.code])||void 0===t?void 0:t.length)>0},checkInDate:function checkInDate(){var t;return null===(t=this.searchForm)||void 0===t?void 0:t.checkin},wifiOption:function wifiOption(){var wifiOption=i()(this.plan,"wifi_option")||i()(this.plan,"wifi");switch(wifiOption){case"no":return this.$t("bookingResult.wifiOption1");case"yes_free":return this.$t("bookingResult.wifiOption2");case"yes_paid":return this.$t("bookingResult.wifiOption3");default:return wifiOption}},cancelPolicyText:function cancelPolicyText(){return this.plan.cancellation_free_deadline?this.$t("bookingResult.cancellationFreeUntil",[this.plan.cancellation_free_deadline]):this.$t("bookingResult.cancellationPolicy")}}),methods:{priceWithSymbol:f.c,paymentMethods:function paymentMethods(t){var e=this,o=(null==t?void 0:t.charge_percent)&&100!==(null==t?void 0:t.charge_percent),n=i()(t,"payment_method",[])||[],r=[g.w.OnSite,g.w.deferredPayment].includes(this.currentReservation.payment_method);return n.map((function(t){var n=t.code,i=t.name;return!(n===g.w.OnSite&&!r&&e.$route.query.current_reservation)&&("credit_card"===n?e.$t("reservationPayment.prePayment"):e.isTWD&&"credit_card"===n?e.$t("bookingResult.paymentMethod.credit_card_".concat(o?"deposit":"full")):e.isTWD&&"on_site"===n?e.$t("bookingResult.paymentMethod.bank_transfer"):n?e.$t("bookingResult.paymentMethod.".concat(n)):i)})).filter(Boolean).join(", ")}}},v=(o(1353),Object(a.a)(b,(function render(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"inclusions"},[t.paymentPromotionAmount&&!t.$ota&&"rooms"===t.searchForm.type?e("payment-promotion-banner",{staticClass:"mb-2",attrs:{variant:"superlight",compact:""},scopedSlots:t._u([{key:"title",fn:function fn(){return[e("div",{staticClass:"font-weight-bold text-13px"},[t._v("\n "+t._s(t.$t("bookingResult.paymentPromotionBanner.saveWithPrePayment",[t.paymentPromotionAmount]))+"\n ")])]},proxy:!0}],null,!1,420779787)}):t._e(),t._v(" "),e("p",{staticClass:"inclusions-title font-weight-bold",attrs:{"data-cy":"plan-".concat(t.roomPlanCode,"-info")}},[t._v("\n "+t._s(t.$t("bookingResult.planInformation"))+"\n ")]),t._v(" "),e("ul",{staticClass:"inclusions-list"},[e("li",{attrs:{"data-cy":"plan-".concat(t.roomPlanCode,"-wifi")}},[t._v("\n "+t._s(t.$t("bookingResult.wifi"))+": "+t._s(t.wifiOption)+"\n ")]),t._v(" "),e("li",{attrs:{"data-cy":"plan-".concat(t.roomPlanCode,"-payment")}},[t._v(t._s(t.paymentMethods(t.plan)))]),t._v(" "),t.plan.meal_status?e("li",{attrs:{"data-cy":"plan-".concat(t.roomPlanCode,"-meals")}},[t._v("\n "+t._s(t.$t("bookingResult.meals"))+": "+t._s(t.plan.meal_status)+"\n ")]):t._e(),t._v(" "),t.plan.is_no_refund||!1===t.plan.is_refundable?e("li",{attrs:{"data-cy":"plan-".concat(t.roomPlanCode,"-non-refundable")}},[t._v("\n "+t._s(t.$t("reservationCancellation.nonRefundable"))+"\n ")]):e("li",[e("a",{attrs:{target:"_blank",rel:"noopener noreferrer","data-cy":"plan-".concat(t.roomPlanCode,"-cancellation_policy")},on:{click:function click(e){var o,n;return e.preventDefault(),t.openAndLoadCancellationPolicy({title:null===(o=t.plan)||void 0===o?void 0:o.name,policyId:null===(n=t.plan)||void 0===n?void 0:n.cancellation_policy_id})}}},[t._v(t._s(t.cancelPolicyText)+"\n ")])])])],1),t._v(" "),!t.isLotteryEntry&&t.hasNotifications?e("notification-alert",{staticClass:"notification-alert",attrs:{"data-cy":"plan-".concat(t.roomPlanCode,"-notification"),notifications:t.notificationMap[t.plan.hotel_plan_code||t.plan.code]}}):t._e()],1)}),[],!1,null,"1b4ee49f",null));e.a=v.exports},1337:function(t,e,o){"use strict";function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var n=o(40),i=o(1332),r=o(1336),a=o(1335),s=o(1210),c=o(20),l=o.n(c),u=o(1334),d=o(9),p=o(257),h=o(23);function RoomViewItemvue_type_script_lang_js_ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function RoomViewItemvue_type_script_lang_js_objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?RoomViewItemvue_type_script_lang_js_ownKeys(o,!0).forEach((function(e){RoomViewItemvue_type_script_lang_js_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):RoomViewItemvue_type_script_lang_js_ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function RoomViewItemvue_type_script_lang_js_defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var m={name:"RoomViewItem",components:{RoomPlanFeatures:r.a,OtaList:a.a,MemberExclusive:s.a,PriceTable:u.a},mixins:[Object(i.a)("plan")],props:{hidden:Boolean,plan:{type:Object,required:!0},roomType:{type:Object,required:!0},planIndex:{type:Number,required:!0},roomIndex:{type:Number,required:!0},roomCount:{type:Number,required:!0},roomCode:{type:String,required:!0},isLimited:{type:Boolean,default:!1}},setup:function setup(t){var e=Object(p.b)().getMcpPriceValue,o=Object(d.getCurrentInstance)().proxy,n=Object(d.toRefs)(t).plan,i=Object(p.g)(n,o.bookRoomCount);return{nonSignInPriceDetail:i.nonSignInPriceDetail,signInPriceDetail:i.signInPriceDetail,originalPrice:i.originalPrice,getMcpPriceValue:e}},data:function data(){return{isLoading:!1}},computed:RoomViewItemvue_type_script_lang_js_objectSpread({},Object(n.d)({getSelectedRoomCount:"search/getSelectedRoomCount",isTiersMode:"setting/isTiersMode",isUndated:"search/isUndated",form:"search/getSearchForm",isGHAHighlightedItem:"search/isGHAHighlightedItem"}),{bookRoomCount:function bookRoomCount(){return!this.isTiersMode&&this.isUndated?this.form.rooms.length:this.form.room_count},filteredBrrPrices:function filteredBrrPrices(){var t,e,o=this;return null===(t=this.plan.non_sign_in_discount)||void 0===t||null===(e=t.brr_prices)||void 0===e?void 0:e.filter((function(t){var e=o.getMcpPriceValue(t,"ota_price_value");if(!e)return!1;if(o.originalPrice&&e>o.originalPrice)return!0;if(o.signInPriceDetail){if(e>o.signInPriceDetail.total)return!0;if(e===o.signInPriceDetail.total&&o.priceType===h.k.BRR)return!0}if(o.nonSignInPriceDetail){if(e>o.nonSignInPriceDetail.total)return!0;if(e===o.nonSignInPriceDetail.total&&o.appliedPriceType===h.k.BRR)return!0}return!1}))},showOTAPrices:function showOTAPrices(){var t;return!this.childrenCount&&!!(null===(t=this.filteredBrrPrices)||void 0===t?void 0:t.length)},selectedRoomCount:function selectedRoomCount(){var t,e,o,n,i=this.roomCode,r=this.plan.room_plan_code,a=(null===(t=this.plan.matched_search_criteria)||void 0===t?void 0:t.adults_with_companion)||(null===(e=this.plan.matched_search_criteria)||void 0===e?void 0:e.adults_count),s=(null===(o=this.plan.matched_search_criteria)||void 0===o?void 0:o.children_with_kid_tier_A_companion)||(null===(n=this.plan.matched_search_criteria)||void 0===n?void 0:n.children_count);return this.getSelectedRoomCount({roomTypeCode:i,roomPlanCode:r,numberOfAdults:a,numberOfChildren:s,type:"rooms"})},isRecommended:function isRecommended(){return 0===this.planIndex&&!this.$ota},roomPlanCode:function roomPlanCode(){var t,e,o;return null!==(t=null===(e=this.plan)||void 0===e?void 0:e.room_plan_code)&&void 0!==t?t:null===(o=this.plan)||void 0===o?void 0:o.code},childrenCount:function childrenCount(){var t,e,o,n,i,r;return((null===(t=this.plan)||void 0===t||null===(e=t.matched_search_criteria)||void 0===e?void 0:e.children_with_kid_tier_A_companion)||(null===(o=this.plan)||void 0===o||null===(n=o.matched_search_criteria)||void 0===n?void 0:n.children_count))-((null===(i=this.plan)||void 0===i||null===(r=i.matched_search_criteria)||void 0===r?void 0:r.kid_tier_A_companion)||0)},isGHASelectedRoom:function isGHASelectedRoom(){return this.isGHAHighlightedItem({hotelPlanCode:this.plan.hotel_plan_code,roomTypeCode:this.roomCode})}}),methods:RoomViewItemvue_type_script_lang_js_objectSpread({},Object(n.c)("search",["setPlanDetails"]),{changeRoomCount:function changeRoomCount(t){var e,o,n,i,r,a;this.$store.dispatch("search/setRoomSelectedCount",RoomViewItemvue_type_script_lang_js_objectSpread({type:"rooms",roomTypeCode:this.roomCode,roomPlanCode:this.plan.room_plan_code,numberOfAdults:(null===(e=this.plan)||void 0===e||null===(o=e.matched_search_criteria)||void 0===o?void 0:o.adults_with_companion)||(null===(n=this.plan.matched_search_criteria)||void 0===n?void 0:n.adults_count),numberOfChildren:(null===(i=this.plan)||void 0===i||null===(r=i.matched_search_criteria)||void 0===r?void 0:r.children_with_kid_tier_A_companion)||(null===(a=this.plan.matched_search_criteria)||void 0===a?void 0:a.children_count)},t))},handleClickPlanDetails:function handleClickPlanDetails(){this.setPlanDetails(this.plan),this.$bvModal.show("plan-detail
1s-modal")},_get:l.a})},_=(o(1364),o(33));function RoomViewListvue_type_script_lang_js_ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function RoomViewListvue_type_script_lang_js_defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var f={name:"RoomViewList",components:{RoomViewItem:Object(_.a)(m,(function render(){var t=this,e=t._self._c;return e("b-row",{class:["plan-container",{hidden:t.hidden,"pt-0":t.isRecommended}],attrs:{"data-cy":"room-".concat(t.roomCode),tag:"article"}},[e("b-col",{attrs:{id:"room-detail-section",cols:"12",lg:"5","data-cy":"room-detail-section"}},[t.isRecommended?e("label",{directives:[{name:"theme-font",rawName:"v-theme-font"}],staticClass:"recommended mt-3 mt-lg-0"},[t._v(t._s(t.$t("base.recommended"))+"\n ")]):t._e(),t._v(" "),e("div",[e("h5",{staticClass:"room-plan-name",attrs:{"data-cy":"room-".concat(t.plan.room_plan_code,"-plan-name")}},[e("span",[t._v(t._s(t.plan.room_plan_name))])]),t._v(" "),t.isLimited?e("member-exclusive"):t._e()],1),t._v(" "),t.plan.hotel_plan_description?e("p",{directives:[{name:"theme-font",rawName:"v-theme-font"}],staticClass:"plan-details",attrs:{"data-cy":"show-plan-details"},on:{click:t.handleClickPlanDetails}},[t._v("\n "+t._s(t.$t("searchResultByPlan.showPlan"))+"\n ")]):t._e(),t._v(" "),e("room-plan-features",{staticClass:"mt-3",attrs:{plan:t.plan,"room-plan-code":t.roomPlanCode,"has-toggle":"","is-narrow-default":t.planIndex>1}})],1),t._v(" "),e("b-col",{attrs:{id:"room-price-section",cols:"12",lg:"7","data-cy":"room-price-section"}},[e("price-table",{attrs:{item:_objectSpread({},t.plan,{room_type_code:t.roomCode,room_type_name:t.roomType.room_type_name,room_type_description:t.roomType.room_type_description,hide_smoking:t.roomType.hide_smoking,room_facilities:t.roomType.room_facilities,bathroom:t.roomType.bathroom,toilet:t.roomType.toilet,is_smoking:t.roomType.is_smoking,room_size:t.roomType.room_size,floor_data:t.roomType.floor_data,beds:t.roomType.beds,only_visible_to_guest:t.plan.only_visible_to_guest,sign_in_required:t.plan.sign_in_required}),"applied-price-type":t.appliedPriceType,"price-type":t.priceType,"is-loading":t.isLoading,"room-count":t.roomCount,"selected-room-count":t.selectedRoomCount,"get-search-params":t.getSearchParams,"book-room-count":t.bookRoomCount,"is-highlighted-price-table":t.isGHASelectedRoom,"is-table":""},on:{book:t.book,bookAirline:t.bookAirline,changeRoomCount:t.changeRoomCount,setWbfPriceMap:t.setWbfPriceMap}}),t._v(" "),t.showOTAPrices?e("ota-list",{attrs:{id:"room-".concat(t.roomIndex,"-plan-").concat(t.planIndex,"-service-fee"),"ota-names":t.filteredBrrPrices,"book-room-count":t.bookRoomCount}}):t._e(),t._v(" "),e("b-row",{attrs:{"no-gutters":""}},[e("b-col",{attrs:{lg:"7",xl:"8"}}),t._v(" "),e("b-col",{attrs:{lg:"5",xl:"4"}},[e("portal-target",{attrs:{name:"bookAirlineWarning-".concat(t.roomCode,"-").concat(t.plan.room_plan_code,"-").concat(t.plan.sleeps)}})],1)],1)],1)],1)}),[],!1,null,"736bf6aa",null).exports,ResultPageJsonLd:o(1343).a},props:{room:{type:Object,required:!0},roomIndex:{type:Number,required:!0}},data:function data(){return{viewMore:!1}},computed:function RoomViewListvue_type_script_lang_js_objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?RoomViewListvue_type_script_lang_js_ownKeys(o,!0).forEach((function(e){RoomViewListvue_type_script_lang_js_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):RoomViewListvue_type_script_lang_js_ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({multiple:"search/getIsMultiple",isTiersMode:"setting/isTiersMode",isUndated:"search/isUndated",searchForm:"search/getSearchForm",currentReservation:"booking/getReservationDetails"}),{},Object(n.f)({selectedRooms:function selectedRooms(t){return t.search.selectedRooms}}),{bookRoomCount:function bookRoomCount(){return this.isTiersMode||this.isUndated?this.searchForm.room_count:0},roomPlans:function roomPlans(){var t,e,o=this,n=!!this.$route.query.current_reservation;return(null===(t=this.room)||void 0===t||null===(e=t.room_plan)||void 0===e?void 0:e.filter((function(t){var e,i,r=null===(e=t.payment_method)||void 0===e?void 0:e.every((function(t){return[h.w.deferredPayment,h.w.OnSite].includes(t.code)})),a=[h.w.CreditCard,h.w.PrePaid,h.w.AmazonPay].includes(null===(i=o.currentReservation)||void 0===i?void 0:i.payment_method);
1return n&&a?t.inclusiveExtraLimit>=o.bookRoomCount&&!r:t.inclusiveExtraLimit>=o.bookRoomCount})))||[]},displayedPlans:function displayedPlans(){return this.viewMore?this.roomPlans:!this.viewMore&&Array.isArray(this.roomPlans)?this.roomPlans.slice(0,2):this.roomPlans}}),methods:{availableRoomCount:function availableRoomCount(t){var e=this,o=this.selectedRooms.filter((function(t){return t.roomTypeCode===e.room.room_type_code})),n=o.reduce((function(t,e){return t+e.quantity}),0),i=o.find((function(e){return e.roomPlanCode===t.room_plan_code&&e.numberOfAdults===(t.matched_search_criteria.adults_with_companion||t.matched_search_criteria.adults_count)&&e.numberOfChildren===(t.matched_search_criteria.children_with_kid_tier_A_companion||t.matched_search_criteria.children_count)}));return this.room.room_count-n+((null==i?void 0:i.quantity)||0)}}},g=(o(1365),Object(_.a)(f,(function render(){var t=this,e=t._self._c;return e("section",{staticClass:"plan-wrapper"},[t._l(t.displayedPlans,(function(o,n){return[e("room-view-item",{key:"room-view-item-".concat(n),attrs:{plan:o,"plan-index":n,"room-index":t.roomIndex,hidden:n>1&&!t.viewMore,"room-code":t.room.room_type_code,"room-count":t.availableRoomCount(o),"room-type":t.room,"is-limited":o.limited}}),t._v(" "),e("result-page-json-ld",{key:"result-room-page-json-ld-".concat(n),attrs:{type:"room","available-room":t.availableRoomCount(o),"room-data":t.room,"plan-data":o,"plan-index":n}})]})),t._v(" "),t.roomPlans.length>2?e("span",{class:["view-more",{expand:t.viewMore}],attrs:{"data-cy":"room-type-".concat(t.room.room_type_code,"-view-more")},on:{click:function click(e){t.viewMore=!t.viewMore}}},[t._v("\n "+t._s(t.viewMore?t.$t("bookingResult.viewLess"):t.$tc("bookingResult.viewMore",t.roomPlans.length))+"\n ")]):t._e()],2)}),[],!1,null,"2aef7e02",null));e.a=g.exports},1338:function(t,e,o){"use strict";var n=o(9),i=o(467),r=o.n(i);function asyncGeneratorStep(t,e,o,n,i,r,a){try{var s=t[r](a),c=s.value}catch(l){return void o(l)}s.done?e(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,o=arguments;return new Promise((function(n,i){var r=t.apply(e,o);function _next(t){asyncGeneratorStep(r,n,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(r,n,i,_next,_throw,"throw",t)}_next(void 0)}))}}var a={props:{value:{type:String,default:null},contentClass:{type:String,default:null}},setup:function setup(t){var e=Object(n.getCurrentInstance)().proxy,i=Object(n.ref)(null);function _loadContent(){return(_loadContent=_asyncToGenerator(regeneratorRuntime.mark((function _callee(a){var s,c,l,u,d,p,h;return regeneratorRuntime.wrap((function _callee$(m){for(;;)switch(m.prev=m.next){case 0:return h=function _ref2(){var t=i.value;t&&(t.contentWindow.location.reload(),t.dispatchEvent(new Event("load")))},p=function _ref(){var t,e,o=s.body.scrollHeight+"px";(null===(t=i.value)||void 0===t?void 0:t.height)&&(null===(e=i.value)||void 0===e?void 0:e.height)!==o&&(i.value.height=o)},s=a.target.contentDocument||a.target.contentWindow.document,(c=s.createElement("meta")).content="width=device-width, initial-scale=1",c.name="viewport",s.head.appendChild(c),s.body.style.fontFamily="Muli, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue",s.body.style.margin="0",s.documentElement.style.fontSize="min(calc(100vw / 390 * 16), 16px)",l=s.createElement("style"),m.next=13,o.e(81).then(o.bind(null,1725));case 13:l.innerHTML=m.sent.default,(u=s.createElement("style")).innerHTML="\n img { max-width: min(100%, 100vw); height: auto; }\n\n .rx-content.text-sm * {\n font-size: 0.875rem;\n }\n ",s.head.appendChild(l),s.head.appendChild(u),(d=s.createElement("div")).classList.add("rx-content"),d.innerHTML=r.a.sanitize(t.value,{ADD_ATTR:["target"]}),s.body.appendChild(d),t.contentClass&&d.classList.toggle("text-sm"),setTimeout((function(){p(),i.value.style.opacity=1,s.body.querySelectorAll("a").forEach((function(t){t.target=t.target||"_top"}))}),100),setTimeout((function(){p()}),1500),Object(n.watch)((function(){return e.$i18n.locale}),(function(){setTimeout((function(){h()}),1e3)}));case 26:case"end":return m.stop()}}),_callee)})))).apply(this,arguments)}return{viewer:i,loadContent:function loadContent(t){return _loadContent.apply(this,arguments)}}}},s=o(33),c={name:"PlanDescription",components:{RedactorViewer:Object(s.a)(a,(function render(){return(0,this._self._c)("iframe",{ref:"viewer",attrs:{"data-cy":"redactor-viewer",frameborder:"0",width:"100%",height:"auto",scrolling:"no","opacity-0":"","transition-opacity":""},on:{load:this.loadContent}})}),[],!1,null,null,null).exports,MarkdownViewer:o(976).a},props:{plan:{type:Object,required:!0},contentClass:{type:String,default:""}},computed:{isMarkdown:function isMarkdown(){return"simplemde"===this.plan.editor_name},description:function description(){return this.plan.description||this.plan.hotel_plan_description||""}}},l=Object(s.a)(c,(function render(){var t=this._self._c;return this.isMarkdown?t("markdown-viewer",{attrs:{markdown:this.description}}):t("redactor-viewer",this._b({attrs:{value:this.description}},"redactor-viewer",{contentClass:this.contentClass},!1))}),[],!1,null,null,null);e.a=l.exports},1340:function(t,e,o){"use strict";var n=o(40),i=o(866),r=o.n(i),a=o(31);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var s={name:"PlanDetailsModal",components:{PlanDescription:o(1338).a},data:function data(){return{slide:0}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({planDetails:"search/getPlanDetails"}),{hasImages:function hasImages(){return this.planDetails.url_plan_pictures&&this.planDetails.url_plan_pictures.length>0},policyId:function policyId(){var t,e,o;return null!==(t=null===(e=this.planDetails)||void 0===e?void 0:e.room_plan_code)&&void 0!==t?t:null===(o=this.planDetails)||void 0===o?void 0:o.code},pictures:function pictures(){return r()(this.planDetails.url_plan_pictures,Object(a.h)()?1:2)}})},c=(o(1366),o(33)),l=Object(c.a)(s,(function render(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"plan-details-modal",title:t.$t("bookingResult.planDetails"),size:"lg","hide-footer":"",centered:""},on:{hidden:function hidden(e){t.slide=0}}},[t.hasImages?e("b-carousel",{staticClass:"room-carousel mt-3",attrs:{controls:t.pictures.length>1,interval:0},model:{value:t.slide,callback:function callback(e){t.slide=e},expression:"slide"}},t._l(t.pictures,(function(o,n){return e("b-carousel-slide",{key:n},[e("img",{staticClass:"pic",attrs:{slot:"img",src:o[0]},slot:"img"}),t._v(" "),o[1]?e("img",{staticClass:"pic",attrs:{slot:"img",src:o[1]},slot:"img"}):t._e()])})),1):t._e(),t._v(" "),t.planDetails.hotel_plan_description?e("p",{staticClass:"font-weight-bold mt-3 mb-2"},[t._v("\n "+t._s(t.$t("searchResultByPlan.planContent"))+"\n ")]):t._e(),t._v(" "),t.planDetails.hotel_plan_description?e("plan-description",{staticClass:"text-break",attrs:{plan:t.planDetails}}):t._e()],1)}),[],!1,null,"77ca6890",null);e.a=l.exports},1341:function(t,e,o){"use strict";var n=o(40),i=o(976),r=o(1052),a=o(1210);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var s={name:"RoomDetailsModal",components:{MarkdownViewer:i.a,RoomFacilities:r.a,MemberExclusive:a.a},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({room:"search/getRoomDetails"}))},c=o(33),l=Object(c.a)(s,(function render(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"room-details-modal","modal-class":"room-details-modal",size:"lg",centered:"","hide-footer":""}},[t.room?[e("h5",{staticClass:"title mt-0 mb-3"},[t._v("\n "+t._s(t.room.room_type_name)),t.room.limited?e("member-exclusive",{staticClass:"md-ml-3"}):t._e()],1),t._v(" "),e("markdown-viewer",{staticClass:"text-sm break-word",attrs:{markdown:t.room.room_type_description}}),t._v(" "),e("room-facilities",{staticClass:"mt-26px",attrs:{room:t.room}})]:t._e()],2)}),[],!1,null,null,null);e.a=l.exports},1342:function(t,e,o){"use strict";var n=o(975),i=o(40),r=o(1080);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var a={name:"SelectedBar",components:{PriceTaxInfo:o(1079).a,RoomPriceLabel:r.a},props:{isLoading:{type:Boolean,default:!1}},computed:_objectSpread({},Object(i.d)({selectedRooms:"search/getSelectedRooms",nights:"search/getNights",spinnerVariant:"setting/getSpinnerVariant",hasPreloadData:"search/hasPreloadData",showPricesTaxIncluded:"setting/showPricesTaxIncluded",isLotteryEntry:"lottery/getIsLotteryEntry"}),{sumPrice:function sumPrice(){var t=this;return this.selectedRooms.reduce((function(e,o){return t.showPricesTaxIncluded?e+o.cheapestPriceInfo.salePrice+o.cheapestPriceInfo.tax:e+o.cheapestPriceInfo.salePrice}),0)},sumAdults:function sumAdults(){return this.selectedRooms.reduce((function(t,e){return t+e.adults}),0)},sumChildren:function sumChildren(){return this.selectedRooms.reduce((function(t,e){var o;return t+(null!==(o=null==e?void 0:e.children)&&void 0!==o?o:0)}),0)},bookButtonText:function bookButtonText(){return this.isLotteryEntry?this.$t("lottery.registerForLottery"):this.$t("bookingResult.book")}}),methods:_objectSpread({priceWithSymbol:n.c},Object(i.c)("search",["decreaseRoomSelectedCount"]),{book:function book(){this.$store.dispatch("search/setTotalPriceFromSearch",this.sumPrice),this.$emit("book")}})},s=(o(1367),o(33)),c=Object(s.a)(a,(function render(){var t=this,e=t._self._c;return e("b-row",{class:["bar-block",{show:0!==t.selectedRooms.length}]},[e("b-col",{staticClass:"room-container",attrs:{md:"6"}},[0===t.selectedRooms.length?e("div",{staticClass:"no-room-block"},[e("p",[t._v(t._s(t.$t("bookingResult.noRoomSelected")))])]):t._l(t.selectedRooms,(function(o,n){return e("div",{key:n,staticClass:"room-block",attrs:{"data-cy":"selected-room"}},[e("b-button-close",{staticClass:"close-icon",on:{click:function click(e){return t.decreaseRoomSelectedCount(o)}}}),t._v(" "),e("strong",{staticClass:"keep-one-line"},[t._v(t._s(o.roomName))]),t._v(" "),e("p",{staticClass:"keep-one-line"},[t._v("\n "+t._s(o.plan)+"\n ")]),t._v(" "),e("p",{staticClass:"gray-font"},[t._v("\n "+t._s(t.$t("reservationDetail.roomNb",[n+1]))+":\n "+t._s(t.$tc("searchBar.adult",o.adults))+", "+t._s(t.$tc("searchBar.child",o.children))+"\n ")])],1)}
1))],2),t._v(" "),e("b-col",{attrs:{md:"12",lg:"6"}},[e("b-row",{staticClass:"detail-wrapper"},[e("b-col",{staticClass:"info",attrs:{lg:"4"}},[e("p",[t._v(t._s(t.$tc("bookingResult.totalPriceForNights",t.nights)))]),t._v(" "),e("p",{staticClass:"gray-font"},[t._v("\n "+t._s(t.$tc("searchBar.adult",t.sumAdults))+", "+t._s(t.$tc("searchBar.child",t.sumChildren))+",\n "+t._s(t.$tc("searchBar.room",t.selectedRooms.length))+"\n ")])]),t._v(" "),e("b-col",{attrs:{lg:"4",cols:"6"}},[e("room-price-label",{directives:[{name:"theme-font",rawName:"v-theme-font"}],staticClass:"sum-price",attrs:{amount:t.sumPrice,"data-cy":"total-price-with-tax"}}),t._v(" "),e("price-tax-info")],1),t._v(" "),e("b-col",{attrs:{lg:"4",cols:"6"}},[e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn",value:0!==t.selectedRooms.length,expression:"selectedRooms.length !== 0"}],staticClass:"w-100 book-btn",attrs:{disabled:0===t.selectedRooms.length||t.isLoading||t.hasPreloadData,"data-cy":"multiple-book-btn"},on:{click:t.book}},[e("b-spinner",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticClass:"btn-spinner",attrs:{variant:t.spinnerVariant,small:""}}),t._v("\n "+t._s(t.bookButtonText)+"\n ")],1)],1)],1)],1)],1)}),[],!1,null,"66fcd97d",null);e.a=c.exports},1343:function(t,e,o){"use strict";var n=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var i={name:"ResultPageJsonLd",props:{roomData:{type:Object,required:!0},planData:{type:Object,required:!0},planIndex:{type:Number,required:!0},availableRoom:{type:Number,required:!1,default:1},type:{type:String,required:!0}},data:function data(){return{jsonld:{"@context":"https://schema.org","@type":"Hotel",identifier:"",name:"",containsPlace:{"@context":"https://schema.org","@type":["HotelRoom","Product"],identifier:"",name:"",bed:[],image:"",description:"",occupancy:{"@type":"QuantitativeValue",value:0},offers:[],amenityFeature:[]},makesOffer:[]}}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({searchForm:"search/getSearchForm",hotelCode:"setting/getHotelCode",hotelName:"setting/getHotelName",hotelCurrency:"setting/getCurrency"}),{structuredData:function structuredData(){return JSON.stringify(this.jsonld)},roomIdentifier:function roomIdentifier(){var t,e,o=(null===(t=this.roomData)||void 0===t?void 0:t.room_type_code)||(null===(e=this.planData)||void 0===e?void 0:e.room_type_code);return o?"".concat(this.hotelCode,"-").concat(o):"result-item-".concat(this.planIndex)}}),metaInfo:function metaInfo(){var t,e,o,n,i;return(this.availableRoom||(null===(t=this.roomData)||void 0===t?void 0:t.room_count))&&(null===(e=this.jsonld)||void 0===e||null===(o=e.makesOffer)||void 0===o?void 0:o.some((function(t){var e;return null===(e=t.priceSpecification)||void 0===e?void 0:e.price})))&&(null===(n=this.jsonld)||void 0===n||null===(i=n.makesOffer)||void 0===i?void 0:i.some((function(t){var e;return null===(e=t.priceSpecification)||void 0===e?void 0:e.priceCurrency})))?{script:[{type:"application/ld+json",json:JSON.parse(this.structuredData)}]}:{}},created:function created(){var t,e,o,n;if("room"===this.type){var i,r;this.jsonld.identifier=this.hotelCode||this.planData.room_plan_code,this.jsonld.name=this.hotelName,this.jsonld.containsPlace.identifier=this.roomIdentifier,this.jsonld.containsPlace.name=this.planData.hotel_plan_description||this.planData.room_plan_name,this.jsonld.containsPlace.occupancy={"@type":"QuantitativeValue",value:(null===(i=this.roomData)||void 0===i?void 0:i.sleeps)||(null===(r=this.planData)||void 0===r?void 0:r.sleeps)},this.extractBeds(),this.extractAmenityFeature(this.planData,this.roomData);var a="result-room-page-identifier-".concat(this.planIndex),s=this.extractRoomSearchTimes("^Check-in (.*?)(?=\n|$)",this.roomData.room_type_description,"checkin"),c=this.extractRoomSearchTimes("^Check-out
1(.*?)(?=\n|$)",this.roomData.room_type_description,"checkout");this.jsonld.containsPlace.offers=this.getOffers({identifier:a,checkinTime:s,checkoutTime:c,data:this.planData}),this.jsonld.makesOffer=this.getMakesOffers({identifier:a,checkinTime:s,checkoutTime:c,data:this.planData})}else{var l,u;this.jsonld.identifier=this.hotelCode||this.roomData.room_plan_code,this.jsonld.name=this.hotelName,this.jsonld.containsPlace.identifier=this.roomIdentifier,this.jsonld.containsPlace.name=this.roomData.room_type_name,this.jsonld.containsPlace.occupancy={"@type":"QuantitativeValue",value:(null===(l=this.roomData)||void 0===l?void 0:l.sleeps)||(null===(u=this.planData)||void 0===u?void 0:u.sleeps)},this.extractBeds(),this.extractAmenityFeature(this.roomData,this.roomData);var d="result-plan-page-identifier-".concat(this.planIndex),p=this.extractPlanSearchTimes("checkin"),h=this.extractPlanSearchTimes("checkout");this.jsonld.containsPlace.offers=this.getOffers({identifier:d,checkinTime:p,checkoutTime:h,data:this.roomData}),this.jsonld.makesOffer=this.getMakesOffers({identifier:d,checkinTime:p,checkoutTime:h,data:this.roomData})}(null===(t=this.roomData.room_pictures[0])||void 0===t||null===(e=t.picture)||void 0===e?void 0:e.url)&&(this.jsonld.containsPlace.image=null===(o=this.roomData.room_pictures[0])||void 0===o||null===(n=o.picture)||void 0===n?void 0:n.url)},methods:{extractRoomSearchTimes:function extractRoomSearchTimes(t,e,o){if(!e)return this.searchForm[o].replace(/\//g,"-");var n=e.match(new RegExp(t,"m")),i=n&&n.length>0?n[0].replace(/.*?(?=\d)/,"").split("-")[0].trim():"";return(""!==i?"".concat(this.searchForm[o]," ").concat(i,":00"):this.searchForm[o]).replace(/\//g,"-")},extractPlanSearchTimes:function extractPlanSearchTimes(t){var e="checkin"===t?this.planData.checkin_time_start:this.planData.checkout_time;return(""!==e?"".concat(this.searchForm[t]," ").concat(e):this.searchForm[t]).replace(/\//g,"-")},extractBeds:function extractBeds(){var t=this;this.roomData.beds&&this.roomData.beds.length>0&&this.roomData.beds.forEach((function(e){t.jsonld.containsPlace.bed.push({"@type":"BedDetails",numberOfBeds:1,typeOfBed:e.bed_type})}))},getReturnPolicy:function getReturnPolicy(t){if(!t.is_no_refund){var e=t.cancellation_free_deadline;if(""===e){var o=new Date(this.searchForm.checkin);o.setDate(o.getDate()-1),e=o.toISOString().slice(0,19)+"Z"}return{"@type":"MerchantReturnPolicy",returnPolicyCategory:"MerchantReturnPermitted",refundType:"FullRefund",merchantReturnDays:e,restockingFee:0}}return null},extractAmenityFeature:function extractAmenityFeature(t,e){""!==t.wifi?this.jsonld.containsPlace.amenityFeature.push({"@type":"LocationFeatureSpecification",name:"Wifi"}):e.is_smoking&&this.jsonld.containsPlace.amenityFeature.push({"@type":"LocationFeatureSpecification",name:"Smoking",value:e.is_smoking})},getMakesOfferDescription:function getMakesOfferDescription(t,e){var o="Wifi: ".concat(t),n="Meals: ".concat(Array.isArray(e.meal_status)?e.meal_status.join(", "):e.meal_status),i=e.payment_method.map((function(t){return"".concat(t.name,", Payment Discount: ").concat(t.payment_discount_amount)})).join(", ");return"".concat(o,", ").concat(i,", ").concat(n)},getRegularPrice:function getRegularPrice(t){return t.accommodation_tax+t.tax+t.total_price},getSignInPrice:function getSignInPrice(t){return 0===Object.keys(t.sign_in_discount).length?null:t.sign_in_discount.total_accommodation_tax+t.sign_in_discount.total_price_after_discount+t.sign_in_discount.total_price_after_discount_tax},getNonSignInPrice:function getNonSignInPrice(t){return 0===Object.keys(t.non_sign_in_discount).length?null:t.non_sign_in_discount.total_accommodation_tax+t.non_sign_in_discount.total_price_after_discount+t.non_sign_in_discount.total_price_after_discount_tax},getOffer:function getOffer(t){var e,o,n=t.identifier,i=t.checkinTime,r=t.checkoutTime,a=t.hasMerchantReturnPolicy,s=t.price,c={"@type":["Offer","LodgingReservation"],identifier:n,checkinTime:i,checkoutTime:r,price:s,priceCurrency:(null===(e=this.hotelCurrency)||void 0===e?void 0:e.code)||"JPY",priceSpecification:{"@type":"CompoundPriceSpecification",price:s,priceCurrency:(null===(o=this.hotelCurrency)||void 0===o?void 0:o.code)||"JPY",valueAddedTaxIncluded:!0,potentialAction:{"@type":"https://schema.org/PayAction",recipient:{"@type":"Hotel",name:this.hotelName}}}};return a&&(c.hasMerchantReturnPolicy=a),c}
1,getOffers:function getOffers(t){var e=t.identifier,o=t.checkinTime,n=t.checkoutTime,i=t.data,r=this.getReturnPolicy(i),a=this.getRegularPrice(i),s=this.getNonSignInPrice(i),c=isNaN(s)?a:s,l=[this.getOffer({identifier:e,checkinTime:o,checkoutTime:n,hasMerchantReturnPolicy:r,price:c})],u=this.getSignInPrice(i);if(!isNaN(u)&&u<c){var d=this.getOffer({identifier:e,checkinTime:o,checkoutTime:n,hasMerchantReturnPolicy:r,price:u});l.push(d)}return l},getMakesOffer:function getMakesOffer(t){var e,o,n=t.identifier,i=t.checkinTime,r=t.checkoutTime,a=t.price,s=t.eligibleCustomerType,c="room"===this.type?this.planData.wifi_option:this.roomData.wifi_option,l={"@type":["Offer","LodgingReservation"],businessFunction:"http://purl.org/goodrelations/v1#LeaseOut",description:this.getMakesOfferDescription(c,this.planData),identifier:n,price:a,checkinTime:i,checkoutTime:r,priceCurrency:(null===(e=this.hotelCurrency)||void 0===e?void 0:e.code)||"JPY",priceSpecification:{"@type":"CompoundPriceSpecification",price:a,priceCurrency:(null===(o=this.hotelCurrency)||void 0===o?void 0:o.code)||"JPY",valueAddedTaxIncluded:!0,potentialAction:{"@type":"https://schema.org/PayAction",recipient:{"@type":"Hotel",name:this.hotelName}}}};return s&&(l.name=s,l.eligibleCustomerType=s),l},getMakesOffers:function getMakesOffers(t){var e=t.identifier,o=t.checkinTime,n=t.checkoutTime,i=t.data,r=this.getRegularPrice(i),a=this.getNonSignInPrice(i),s=isNaN(a)?r:a,c=[this.getMakesOffer({identifier:e,checkinTime:o,checkoutTime:n,price:s})],l=this.getSignInPrice(i);if(!isNaN(l)&&l<s){var u=this.getMakesOffer({identifier:e,checkinTime:o,checkoutTime:n,price:l,eligibleCustomerType:"RewardsMember"});c.push(u)}return c}}},r=o(33),a=Object(r.a)(i,(function render(){return(0,this._self._c)("div")}),[],!1,null,null,null);e.a=a.exports},1348:function(t,e,o){"use strict";o(1219)},1349:function(t,e,o){"use strict";o(1220)},1350:function(t,e,o){"use strict";o(1222)},1351:function(t,e,o){"use strict";o(1223)},1353:function(t,e,o){"use strict";o(1225)},1354:function(t,e,o){"use strict";o(1226)},1355:function(t,e,o){"use strict";o(1227)},1356:function(t,e,o){"use strict";o(1228)},1357:function(t,e,o){"use strict";o(1229)},1358:function(t,e,o){"use strict";(function(t){o.d(e,"a",(function(){return a}));var n=o(9),i=o(856),r=o.n(i),a=function usePromotionDiscount(e,o){var i,a=o.bookRoomCount,s=o.taxIncluded,c=Object(n.getCurrentInstance)(),l=(null==c||null===(i=c.proxy)||void 0===i?void 0:i.$store)||t.$store,u=Object(n.computed)((function(){return l.getters["mcp/isMcpMode"]}));return{promotionDiscountAmount:Object(n.computed)((function(){var t;if(!e.value)return 0;var o=r()(a.value)?a.value:1;return u.value?(null===(t=e.value.mcp_discount_amount)||void 0===t?void 0:t.cents)*o:s.value?e.value.discount_amount*o:e.value.discount_amount_without_tax*o}
1))}}}).call(this,o(64))},1359:function(t,e,o){"use strict";o(1230)},1360:function(t,e,o){"use strict";o(1231)},1361:function(t,e,o){"use strict";o(1232)},1362:function(t,e,o){"use strict";o(1233)},1363:function(t,e,o){"use strict";o(1234)},1364:function(t,e,o){"use strict";o(1235)},1365:function(t,e,o){"use strict";o(1236)},1366:function(t,e,o){"use strict";o(1237)},1367:function(t,e,o){"use strict";o(1238)},1376:function(t,e,o){"use strict";o(1256)},1414:function(t,e,o){"use strict";o(1304)},1415:function(t,e,o){"use strict";o(1305)},1416:function(t,e,o){"use strict";o(1306)},1417:function(t,e,o){"use strict";o(1307)},1430:function(t,e,o){"use strict";var n=o(976),i=o(40),r=o(31),a=o(49);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var s={name:"BrandNotifications",components:{MarkdownViewer:n.a},data:function data(){return{isExpand:!0,isLongNotification:!1}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(i.d)({getBrandNotifications:"booking/getBrandNotifications",isUndatedSearch:"search/isUndated"}),{brandNotifications:function brandNotifications(){return this.isUndatedSearch?this.getBrandNotifications(Object(a.f)()):this.getBrandNotifications()}}),watch:{brandNotifications:{handler:function handler(){var t=this;this.$nextTick((function(){var e,o;t.isLongNotification=(null===(e=t.$refs)||void 0===e||null===(o=e.brandNotificationContainer)||void 0===o?void 0:o.clientHeight)>=(Object(r.h)()?180:250)}))},immediate:!0}}},c=(o(1376),o(33)),l=Object(c.a)(s,(function render(){var t,e=this,o=e._self._c;return(null===(t=e.brandNotifications)||void 0===t?void 0:t.length)>0?o("div",{ref:"brandNotificationContainer",staticClass:"notification-block",class:{expand:e.isExpand}},[o("ul",{staticClass:"list-style-none"},e._l(e.brandNotifications,(function(t){return o("li",{key:t.id,attrs:{"data-cy":"brand-notification-".concat(t.id)}},[o("markdown-viewer",{staticClass:"mb-0",attrs:{markdown:t.question}})],1)})),0),e._v(" "),e.isLongNotification?[e.isExpand?e._e():o("div",{staticClass:"hidden-layer"},[o("b",{staticClass:"read-more blue-font",on:{click:function click(t){e.isExpand=!0}}},[e._v(e._s(e.$t("base.readMore")))])]),e._v(" "),o("b",{staticClass:"blue-font mb-2 d-block cursor-pointer",class:{hidden:!e.isExpand},on:{click:function click(t){e.isExpand=!1}}},[e._v(e._s(e.$t("base.readLess")))])]:e._e()],2):e._e()}),[],!1,null,"16f66c77",null);e.a=l.exports},1441:function(t,e,o){"use strict";var n={name:"RoomSkeletonLoading",components:{VueSkeletonLoader:o(329).a},data:function data(){return{widthCenter:[485,387,489,395,323].map((function(t){return document.documentElement.clientWidth<1200?.8*t:t})),infoRight:[{width:120,height:17},{width:57,height:17},{width:106,height:26},{width:57,height:17},{width:177,height:36}].map((function(t){var e=t.width,o=t.height;return document.documentElement.clientWidth<1200?{width:.8*e,height:.8*o}:{width:e,height:o}}))}}},i=(o(1414),o(33)),r=Object(i.a)(n,(function render(){var t=this,e=t._self._c;return e("div",t._l([1,2,3],(function(o){return e("div",{key:o,staticClass:"facility-item"},[e("b-row",{attrs:{"no-gutters":!0}},[e("b-col",{attrs:{cols:"12",lg:"4"}},[e("vue-skeleton-loader",{attrs:{type:"rect",width:360,height:206,animation:"wave"}})],1),t._v(" "),e("b-col",{staticClass:"d-flex flex-column flex-lg-row justify-content-lg-between pt-3 pt-lg-0 px-lg-3",attrs:{cols:"12",lg:"8"}},[e("div",t._l(t.widthCenter,(function(t,o){return e("vue-skeleton-loader",{key:o,staticClass:"mb-2 loader",attrs:{type:"rect",width:t,height:17,animation:"wave",rounded:""}})})),1),t._v(" "),e("div",{staticClass:"price-block"},t._l(t.infoRight,(function(t,o){return e("vue-skeleton-loader",{key:o,staticClass:"mb-2 loader",attrs:{type:"rect",width:t.width,height:t.height,animation:"wave",rounded:""}})})),1)])],1)],1)})),0)}),[],!1,null,"431f7570",null);e.a=r.exports},864:function(t,e,o){"use strict";o.r(e);o(11);var n=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var i={name:"OtaFacilityMap",components:{},mixins:[],data:function data(){return{}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({hotel:"setting/getHotelData",hotelName:"setting/getHotelName"}),{address:function address(){return this.hotel.address?"JP"===this.hotel.address.country_code&&"ja"===this.$i18n.locale?this.japaneseAddress:[this.hotel.address.full_address,this.hotel.address.country,this.hotel.address.post_code].filter(Boolean).join().replaceAll(/\s*,[\s,]*/gi,", "):""},japaneseAddress:function japaneseAddress(){return[this.hotel.address.post_code&&"ã",this.hotel.address.post_code," ",this.hotel.address.full_address].filter(Boolean).join("").replaceAll(/[\s,]+/gi," ")},src:function src(){return["https://www.google.com/maps/embed/v1/place","?key=".concat("AIzaSyDewMeDkaNPCFwpXI-bXkeukXrMezg4cXs"),"&q=".concat(this.hotelName,",").concat(this.address)].join("")}})},r=o(33),a=Object(r.a)(i,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"background-white pt-44px pb-44px"},[t.hotel?e("b-container",[e("h3",{staticClass:"font-weight-bold mb-16px text-22px lh-33px"},[t._v("\n "+t._s(t.$t("otaRoomsMap.title"))+"\n ")]),t._v(" "),t.hotel.address?e("iframe",{key:t.src,staticClass:"mb-16px",staticStyle:{border:"0"},attrs:{width:"100%",height:"450",loading:"lazy",allowfullscreen:"",referrerpolicy:"no-referrer-when-downgrade",src:t.src}}):t._e()]):t._e()],1)}),[],!1,null,"0a9dbeae",null);e.default=a.exports},875:function(t,e,o){"use strict";o.r(e);var n=o(40),i=o(1078),r=o(1327),a=o(864);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var s={name:"OtaFacilityInfo",components:{MultiImages:i.a,IconBlueLocation:r.a,OtaFacilityMap:a.default},mixins:[],data:function data(){return{}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(n.d)({hotelName:"setting/getHotelName",hotelImages:"setting/getHotelImages",hotel:"setting/getHotelData"}),{address:function address(){return this.hotel.address?"JP"===this.hotel.address.country_code&&"ja"===this.$i18n.locale?this.japaneseAddress:[this.hotel.address.full_address,this.hotel.address.country,this.hotel.address.post_code].filter(Boolean).join().replaceAll(/\s*,[\s,]*/gi,", "):""},japaneseAddress:function japaneseAddress(){return[this.hotel.address.post_code&&"ã",this.hotel.address.post_code," ",this.hotel.address.full_address].filter(Boolean).join("").replaceAll(/[\s,]+/gi," ")}}),created:function created(){},methods:{showGalleryMode:function showGalleryMode(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.$store.dispatch("search/setGalleryPhotos",t),this.$store.dispatch("search/setGalleryIndex",e),this.$bvModal.show("gallery-modal")},showMapModal:function showMapModal(){this.$bvModal.show("show-google-map")}}},c=(o(1415),o(33)),l=Object(c.a)(s,(function render(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"background-white pt-4px"},[e("b-container",[e("h2",{staticClass:"font-weight-bold text-22px lh-33px pb-4px mb-0"},[t._v("\n "+t._s(t.hotelName)+"\n ")]),t._v(" "),e("p",{staticClass:"text-14px pb-4px mb-2",attrs:{"data-cy":"ota-facility-info-address"}},[t._v("\n "+t._s(t.address)+"\n ")])]),t._v(" "),e("b-container",[e("icon-blue-location",{staticClass:"fill-blue icon-24px"}),t._v(" "),e("span",{staticClass:"blue-icon-font cursor-pointer",on:{click:t.showMapModal}}
1,[t._v(t._s(t.$t("otaRoomsMap.seeMap")))])],1),t._v(" "),t.hotelImages.length?e("multi-images",{staticClass:"ota-carousel",attrs:{photos:t.hotelImages,clickable:"","number-of-footer-image":0,rounded:!1,"show-sub-images":!1,"accept-ratio":.4,"show-all-photos-button":!0,"show-image-count-button":!1,"hi-res":""},on:{galleryMode:function galleryMode(e){return t.showGalleryMode(t.hotelImages,e)}}}):t._e()],1),t._v(" "),e("b-modal",{attrs:{id:"show-google-map",centered:"",size:"lg","hide-footer":"",static:""}},[e("ota-facility-map")],1)],1)}),[],!1,null,"0890f224",null);e.default=l.exports},876:function(t,e,o){"use strict";o.r(e);var n=o(1315),i=o(1337),r=o(1340),a=o(1341),s=o(1342),c=o(11),l=o(1091),u=o(1044),d=o(40),p=o(1010),h=o(88),m=o(156),_=o(72),f=o(1161),g=o(31),b=o(1196),v=o(1198);function _objectWithoutProperties(t,e){if(null==t)return{};var o,n,i=function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var o,n,i={},r=Object.keys(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||(i[o]=t[o]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e<t.length;e++)o[e]=t[e];return o}}(t)||function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var y={name:"OtaFacilityRooms",components:{RoomViewList:i.a,RoomType:n.a,SelectedBar:s.a,GalleryModal:l.a,PlanDetailsModal:r.a,RoomDetailsModal:a.a,CancellationPolicyModal:u.a,FormError:m.a,LazyComponent:f.a,RoomTitle:b.a,NoSearchResult:v.a},data:function data(){return{isMobile:Object(g.h)(),isBooking:!1,currentRoomIndex:2,currentPlanIndex:2}},computed:_objectSpread({},Object(d.d)({getRooms:"search/getRooms",getPlans:"search/getPlans",multiple:"search/getIsMultiple",isUndated:"search/isUndated",error:"error/getSearchResultError",searchForm:"search/getSearchForm",guest:"booking/getGuest",initialSetting:"setting/getInit",selectedRooms:"search/getSelectedRooms",totalKidsCount:"search/getTotalKidsCount",isTiersMode:"setting/isTiersMode",searchResultPrice:"search/getTotalPriceFromSearch",currentReservation:"booking/getReservationDetails",setting:"setting/getSetting",isSupportCompanion:"setting/isSupportCompanion",adultCompanion:"membership/getAdultCompanion",kidCompanion:"membership/getKidCompanion",numberOfRooms:"search/getRoomsCount"}),{hasNoResult:function hasNoResult(){return 0===this.rooms.length&&!this.error},rooms:function rooms(){return this.getRooms?this.getRooms.slice(0,this.currentRoomIndex):[]},displayPlans:function displayPlans(){var t,e=this;return(null===(t=this.getPlans)||void 0===t?void 0:t.filter((function(t){return t.inclusiveExtraLimit>=e.bookRoomCount})))||[]},plans:function plans(){var t;return(null===(t=this.displayPlans)||void 0===t?void 0:t.slice(0,this.currentPlanIndex))||[]},numberOfPlans:function numberOfPlans(){var t;return(null===(t=this.displayPlans)||void 0===t?void 0:t.length)||0},roomViewIntersectionKey:function roomViewIntersectionKey(){var t,e;return"".concat(this.currentRoomIndex,"_").concat(null!==(t=null===(e=this.getRooms)||void 0===e?void 0:e.length)&&void 0!==t?t:0)},planViewIntersectionKey:function planViewIntersectionKey(){var t,e;return"".concat(this.currentPlanIndex,"_").concat(null!==(t=null===(e=this.getPlans)||void 0===e?void 0:e.length)&&void 0!==t?t:0)},bookRoomCount:function bookRoomCount(){return this.isTiersMode||this.isUndated?this.searchForm.room_count:0}}),methods:{getSearchParams:function getSearchParams(){var t=this,e=this.setting.code,o=this.searchForm,n=o.checkin,i=o.checkout,r=o.mode,a=o.search_id,s=this.isTiersMode?this.searchForm.adults:this.selectedRooms.reduce((function(t,e){return t+e.adults}),0),c=this.totalKidsCount,l=this.selectedRooms.find((function(t){return t.cheapestPriceInfo.couponCode})),u=null==l?void 0:l.cheapestPriceInfo.couponCode,d={mode:r,checkin_date:n,checkout_date:i,adults:s,children:c,coupon_code:u,search_result_price:this.searchResultPrice,rooms:this.selectedRooms.map((function(e){var o,r,a=e.adults,s=e.children,c=e.roomCode,l=e.planCode,u=e.cheapestPriceInfo,d={checkin_date:n,checkout_date:i,adults:a,children:s||0,room_
1count:1,room_type_code:c,room_plan_code:l},p=null===(o=t.searchForm)||void 0===o?void 0:o.rooms[0];if(t.$preview&&p&&(t.isTiersMode&&(d.kids_age_range=Object(_.h)(p.kids_tiers)),d.adult_companion=p.adult_companion||0,d.kid_tier_A_companion=p.kid_tier_A_companion||0,t.isSupportCompanion&&t.kidCompanion.is_active&&p.kid_tier_A_companion>0)){for(var h=_toConsumableArray(p.kids_tiers),m=0;m<(null==p?void 0:p.kid_tier_A_companion);m++)h.push("A");d.kids_age_range=Object(_.h)(h)}return u.promotionID&&(d.membership_promotion_id=u.promotionID),(null===(r=u.scrapeIds)||void 0===r?void 0:r.length)&&(d.scrape_ids=u.scrapeIds),d}))};this.$preview&&(d.adults=d.rooms.reduce((function(t,e){return t+e.adults}),0),d.children=d.rooms.reduce((function(t,e){return t+e.children}),0));var p=_objectSpread({},d,{search_id:a,rooms:JSON.stringify(d.rooms.map((function(t){t.checkin_date,t.checkout_date;return _objectWithoutProperties(t,["checkin_date","checkout_date"])}))),code:e});return this.$route.query.current_reservation&&(d.reservation_no=this.$route.query.current_reservation),{paramsForQuery:p,paramsForAPI:d}},sendBookEvent:function sendBookEvent(){var t,e,o;Object(h.b)(this,(null===(t=this.searchForm)||void 0===t||null===(e=t.rooms)||void 0===e?void 0:e.length)||(null===(o=this.searchForm)||void 0===o?void 0:o.room_count))},bookMultipleRoom:function bookMultipleRoom(){var t=this;this.$store.dispatch("error/setReservationError",null),this.$store.dispatch("error/setGlobalError",null),this.$store.dispatch("booking/resetPoints"),this.isBooking=!0;var e=this.getSearchParams(),o=e.paramsForAPI,n=e.paramsForQuery;this.sendBookEvent(),this.$store.dispatch("booking/getBookingPrice",{searchParams:o}).then((function(e){var o;Object(h.r)(e),t.$store.dispatch("extras/setExtraItems",null!==(o=null==e?void 0:e.extras)&&void 0!==o?o:[]);var i=null==e?void 0:e.additional_questions;if(t.$store.dispatch("booking/setInitAdditionalQuestions",i),t.$store.dispatch("extras/clearSelectedExtraItems"),t.currentReservation.guest){var r=e.rooms.map((function(e,o){var n,i,r,a,s=null!==(r=null===(a=(null!==(n=null===(i=t.currentReservation)||void 0===i?void 0:i.rooms)&&void 0!==n?n:[])[o])||void 0===a?void 0:a.guest)&&void 0!==r?r:{};return{first_name:s.first_name||null,last_name:s.last_name||null,first_name_kana:s.first_name_kana||null,last_name_kana:s.last_name_kana||null}}));t.$store.dispatch("booking/setGuest",t.currentReservation.guest),t.$store.dispatch("booking/setGuestsInRooms",r)}Object(p.a)(null==e?void 0:e.total_price,(null==e?void 0:e.search_result_price)||t.searchResultPrice),t.$store.dispatch("search/clearSelectedRooms");var a=n.rooms.length>1600?{code:n.code}:n;t.$route.query.current_reservation&&(a.current_reservation=t.currentReservation.reservation_number,a.bypass_token=t.currentReservation.bypass_token),t.$router.push({name:c.a.reservation.guestDetail,query:a})})).catch((function(e){t.$store.dispatch("error/setGlobalError",e),console.info("error ".concat(JSON.stringify(e))),console.info("payload ".concat(JSON.stringify(o))),t.$rollbar.info("Price api failed on multiple room booking")})).finally((function(){return t.isBooking=!1}))},handleLastRoomIntersected:function handleLastRoomIntersected(t){var e,o;null!==(e=this.currentRoomIndex>=(null===(o=this.getRooms)||void 0===o?void 0:o.length))&&void 0!==e&&e||(this.currentRoomIndex=this.currentRoomIndex+2)},handleLastPlanIntersected:function handleLastPlanIntersected(t){var e,o;null!==(e=this.currentPlanIndex>=(null===(o=this.getPlans)||void 0===o?void 0:o.length))&&void 0!==e&&e||(this.currentPlanIndex=this.currentPlanIndex+2)}}},P=(o(1416),o(33)),w=Object(P.a)(y,(function render(){var t=this,e=t._self._c;return e("b-container",{staticClass:"multiple-wrapper pb-5"},[t.error?e("form-error",{staticClass:"pre-wrap mt-50px",attrs:{errors:t.error}}):t._e(),t._v(" "),t.hasNoResult?e("no-search-result",{staticClass:"mb-0 mt-50px"}):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasNoResult,expression:"!hasNoResult"}]},[t.numberOfRooms?e("div",{staticClass:"search-result-count mt-50px"},[t._v("\n "+t._s(t.$t("bookingResult.searchResults"))+"\n "+t._s(t.$tc("bookingResult.nRoomTypes",t.numberOfRooms))+"\n ")]):t._e(),t._v(" "),e("transition-group",{attrs:{name:"search-result-lazy"}},t._l(t.rooms,(function(o,n){return e("div",{key:o.room_type_code||n,staticClass:"room-wrapper",attrs:{"data-cy":"search-result-room-item"}},[t.isMobile?t._e():e("room-title",{staticClass:"room-title-desc",attrs:{room:o,variant:"room"}}),t._v(" "),t.isMobile?e("room-type",{attrs:{room:o,clickable:""}}):t._e(),t._v(" "),e("b-row",{attrs:{"no-gutters":""}},[e("b-col",{staticClass:"mb-3",attrs:{cols:"12",lg:"3"}},[t.isMobile?t._e():e("room-type",{attrs:{room:o,clickable:""}})],1),t._v(" "),e("b-col",{attrs:{cols:"12",lg:"9"}}
1,[e("room-view-list",{attrs:{"room-index":n,room:o}})],1)],1)],1)})),0),t._v(" "),t.rooms.length?e("lazy-component",{key:t.roomViewIntersectionKey,on:{intersected:t.handleLastRoomIntersected}}):t._e()],1),t._v(" "),t.multiple&&!t.isUndated?e("selected-bar",{attrs:{"is-loading":t.isBooking},on:{book:t.bookMultipleRoom}}):t._e(),t._v(" "),e("gallery-modal"),t._v(" "),e("room-details-modal"),t._v(" "),e("plan-details-modal"),t._v(" "),e("cancellation-policy-modal")],1)}),[],!1,null,"5061d9d8",null);e.default=w.exports},877:function(t,e,o){"use strict";o.r(e);var n=o(40),i=o(31),r=o(1097),a=(o(11),o(49)),s=o(207),c=o(1016),l=o(1051),u=o(1128),d=o(1199),p=o(1201),h=o(1200),m=o(1202),_=o(1203),f=o(998);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var g={name:"SearchBar",components:{DateRangePicker:l.a,DateRangePickerMobile:u.a,TravellerPickerV2:d.a,KidsTiersPickerV2:p.a,AdultPickerV2:m.a,RoomsPickerV2:_.a,MultipleRoomsPickerV2:h.a,InputContainerV2:f.a},mixins:[r.a,c.a],props:{loading:{type:Boolean,default:!1}},data:function data(){return{dirty:!1,dateRange:[]}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({isMobile:i.h},Object(n.d)({searchForm:"search/getSearchForm",initialSetting:"setting/getInit",isTiersMode:"setting/isTiersMode",kidsSetting:"setting/getKidsSetting",totalAdultsCount:"search/getTotalAdultsCount",isMultiRoomSearchEnabled:"setting/isMultiRoomSearchEnabled",isUndated:"search/isUndated"}),{datePickerMode:function datePickerMode(){return this.searchForm.is_day_use?"single":"range"}}),watch:{totalAdultsCount:function totalAdultsCount(){this.$store.dispatch("search/clearSelectedRooms")}},created:function created(){var t=this;this.dateRange=[this.searchForm.checkin,this.searchForm.checkout],s.a.$on("search",(function(e){e.checkin&&e.checkout&&(t.dateRange=[e.checkin,e.checkout]),t.search(e)}))},methods:{toggleSelectorDropdown:function toggleSelectorDropdown(t){this.$refs[t].toggle()},search:function search(t){t&&(this.$store.dispatch("search/setSearchForm",t),this.dirty=!0),!this.loading&&this.dirty&&(this.$emit("search"),this.dirty=!1)},handleDateRangeChange:function handleDateRangeChange(t){var e;this.dateRange=t,this.search({checkin:this.dateRange[0],checkout:null!==(e=this.dateRange[1])&&void 0!==e?e:this.dateRange[0]})},handleDatePickerClose:function handleDatePickerClose(t){var e=t.selectedDates;t.dateStr;if(!this.searchForm.is_day_use&&1===e.length){var o=Object(a.j)(e[0]),n=Object(a.a)(o,1);this.dateRange=[o,n],this.search({checkin:o,checkout:n})}},changeSearchRoomCount:function changeSearchRoomCount(t){this.$store.dispatch("search/setSearchForm",{room_count:t})},changeAdults:function changeAdults(t){this.search({adults:t})},handleTierChange:function handleTierChange(){this.changeTierCount.apply(this,arguments),this.dirty=!0},changeNights:function changeNights(t){this.search({nights:t})},closePicker:function closePicker(){this.search()},handleRoomAttrChange:function handleRoomAttrChange(){this.changeRoomAttr.apply(this,arguments),this.dirty=!0}}},b=(o(1417),o(33)),v=Object(b.a)(g,(function render(){var t=this,e=t._self._c;return e("div",[e("b-container",{staticClass:"py-3 px-0"},[e("div",{staticClass:"ota-picker"},[e("b-col",{attrs:{cols:"12",md:"5 px-0",lg:"4 pl-0"}},[t.isMobile?e("date-range-picker-mobile",{ref:"dateRangePicker",attrs:{value:t.dateRange,config:t.datePickerConfig,mode:t.datePickerMode,plain:""},on:{input:t.handleDateRangeChange}}):e("div",[e("input-container-v2",{attrs:{label:t.$t("searchBar.checkInAndOut"),"icon-name":"icon-calendar","data-cy":"checkin-checkout"}},[e("date-range-picker",{attrs:{value:t.dateRange,config:t.datePickerConfig,mode:t.datePickerMode,"hidden-mode":"","show-date-range-label":""},on:{input:t.handleDateRangeChange,onClose:t.handleDatePickerClose}})],1)],1)],1),t._v(" "),t.$preview?[e("b-col",{staticClass:"px-0 traveller-picker",attrs:{cols:"12",md:"5",lg:"4"}},[t.searchForm.rooms?e("multiple-rooms-picker-v2",{attrs:{rooms:t.searchForm.rooms,"shared-bed-kid-count-per-adult":t.sharedBedKidCountPerAdult,"is-multi-room-search-enabled":t.isMultiRoomSearchEnabled},on:{addRoom:t.addRoom,removeRoom:t.removeRoom,changeRoomAttr:t.handleRoomAttrChange,changeTierCode:t.changeTierCode,toggle:t.closePicker}}):t._e()],1)]:[t.isTiersMode?[e("div",{staticClass:"adult-kid-container"},[e("b-col",{staticClass:"tier-picker",attrs:{cols:"8",sm:"7",lg:"6"}},[e("adult-picker-v2",{staticClass:"w-100",attrs:{adults:t.searchForm.adults,"max-adult-count":t.initialSetting.max_guests_per_room,"no-padding-icon":!0},on:{change:t.changeAdults}},[t.searchForm.kidsTiers?e("kids-tiers-picker-v2",{attrs:{"kids-tiers":t.searchForm.kidsTiers,"no-padding-icon":!0},on:{changeTierCount:t.handleTierChange,reset:t.resetKidsTiersCriteria,toggle:t.closePicker}}
1):t._e()],1)],1),t._v(" "),e("b-col",{staticClass:"px-0 room-picker",attrs:{cols:"4",sm:"5",lg:"4"}},[t.isMultiRoomSearchEnabled&&t.searchForm.room_count?e("rooms-picker-v2",{attrs:{"no-padding-icon":!0,"room-count":t.searchForm.room_count},on:{change:t.changeSearchRoomCount}}):t._e()],1)],1)]:[e("b-col",{staticClass:"px-0 traveller-picker",attrs:{cols:"12",md:"5",lg:"4"}},[e("traveller-picker-v2",{attrs:{rooms:t.searchForm.rooms,"shared-bed-kid-count-per-adult":t.sharedBedKidCountPerAdult,"is-multi-room-search-enabled":t.isMultiRoomSearchEnabled,plain:""},on:{addRoom:t.addRoom,removeRoom:t.removeRoom,changeRoomAttr:t.handleRoomAttrChange,toggle:t.closePicker}})],1)]]],2)])],1)}),[],!1,null,"360d68a2",null);e.default=v.exports},939:function(t,e,o){"use strict";o.r(e);var n=o(11),i=o(40),r=o(23),a=o(876),s=o(875),c=o(864),l=o(877),u=o(328),d=o(1098),p=o(258),h=o(72),m=o(202),_=o(338),f=o.n(_),g=o(1441),b=o(1430);function _objectWithoutProperties(t,e){if(null==t)return{};var o,n,i=function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var o,n,i={},r=Object.keys(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||(i[o]=t[o]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function asyncGeneratorStep(t,e,o,n,i,r,a){try{var s=t[r](a),c=s.value}catch(l){return void o(l)}s.done?e(c):Promise.resolve(c).then(n,i)}function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(o,!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var v,y={name:"OtaSearchRooms",components:{OtaFacilityRooms:a.default,OtaPickers:l.default,OtaFacilityInfo:s.default,OtaFacilityMap:c.default,RoomSkeletonLoading:g.a,BrandNotifications:b.a},mixins:[u.a,d.a],data:function data(){return{paths:n.a,loading:!0,isWBFEnabled:!0,searchFormInitialized:!1}},computed:_objectSpread({},Object(i.d)({searchForm:"search/getSearchForm",isUpdateMode:"booking/isUpdateMode",initialSetting:"setting/getInit",isTiersMode:"setting/isTiersMode",isSharedBedKidsMode:"setting/showSharedBedKids",hotelName:"setting/getHotelName",wbfSetting:"setting/getWbfSetting",isInitAPIArrived:"search/isInitAPIArrived"}),{displayFlightAndRooms:function displayFlightAndRooms(){var t;return!!(null===(t=this.wbfSetting)||void 0===t?void 0:t.is_active)}}),created:function created(){this.$store.dispatch("booking/resetAdditionalQuestions"),this.init({isFirstSearch:!0}),this.changeLocale()},methods:{init:function init(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$store.dispatch("booking/fetchBrandNotifications",{pageLabel:"place_search_result"}),this.$store.dispatch("search/fetchNotifications",{pageLabel:"place_search_result"}),this.$store.dispatch("booking/setReservationDetails",{}),this.assignQueryToSearchForm().then((function(o){t.$store.dispatch("search/setSearchForm",o),t.$store.dispatch("booking/setBookingDetails",{guest:_objectSpread({},t.guest)}),t.searchFormInitialized=!0,t.search(e)}))},search:(v=function _asyncToGenerator(t){return function(){var e=this,o=arguments;return new Promise((function(n,i){var r=t.apply(e,o);function _next(t){asyncGeneratorStep(r,n,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(r,n,i,_next,_throw,"throw",t)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(t){return regeneratorRuntime.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,t&&this.$store.dispatch("search/setSearchForm",t),(null==t?void 0:t.isFirstSearch)||(this.warning=null,this.scrollToResultStart(),this.$store.dispatch("search/setSearchForm",{roomPlanCodes:[]})),e.next=5,this.callSearch(t);case 5:e.sent,this.loading=!1;case 7:case"end":return e.stop()}}),_callee,this)}))),function search(t){return v.apply(this,arguments)}),callSearch:function callSearch(t){var e,o,n=this;this.loading=!0;var i=Object(h.d)(_objectSpread({},this.searchForm,{},t,{reservation_no:this.$route.query.current_reservation||null}),this.isTiersMode,this.isSharedBedKidsMode),r=Object(h.f)(_objectSpread({},this.searchForm,{},t,{current_reservation:this.isUpdateMode&&(null===(e=this.currentReservation)||void 0===e?void 0:e.reservation_number)||null,bypass_token:this.isUpdateMode&&(null===(o=this.currentReservation)||void 0===o?void 0:o.bypass_token)||null}),this.isTiersMode),a=(r.code,_objectWithoutProperties(r,["code"]));this.replaceUrl(a);var s=null;return(null==t?void 0:t.type)||this.$store.dispatch("search/clearSelectedRooms"),this.$store.dispatch("error/setSearchResultError",null),s=this.searchRooms(i),this.$store.dispatch("search/setSearchForm",{search_id:Object(p.v4)().substring(0,6)}),s.then((function(t){return n.initLoading=!1,n.loading=!1,t}))},searchRooms:function searchRooms(t){var e=this,o=_objectSpread({},t,{type:"rooms"});return m.a.get(o).then((function(t){t.rooms=t.rooms.map((function(t){return _objectSpread({}
1,t,{room_plan:t.room_plan.map((function(t){var o,n=f()(null==t?void 0:t.payment_method,{code:r.w.CreditCard});return n?_objectSpread({},t,{has_brr:!!(null===(o=t[e.isSignedIn?"sign_in_discount":"non_sign_in_discount"].applied_scrape_ids)||void 0===o?void 0:o.length),payment_method:[n]}):null})).filter(Boolean)})})).filter((function(t){var e;return null==t||null===(e=t.room_plan)||void 0===e?void 0:e.length})),e.$store.dispatch("search/setRoomSearchSuccess",!0),e.$store.dispatch("search/setRoomsResult",t);var o=t.search_params,n=o.checkin_date,i=o.checkout_date;return n&&i&&(e.$refs.searchBar&&(e.$refs.searchBar.dateRange=[n,i]),e.$store.dispatch("search/setSearchForm",{checkin:n,checkout:i})),e.setSearchParamsForName(t),t})).catch((function(t){if(t.response)return e.$store.dispatch("search/setRoomsResult",{rooms:[]}),e.$store.dispatch("search/setRoomSearchSuccess",!1),e.setSearchResultError(t),[];e.$store.dispatch("error/setSearchResultError",e.$t("base.error"))}))},setSearchParamsForName:function setSearchParamsForName(t){var e,o,n,i;((null===(e=t.search_params)||void 0===e?void 0:e.room_types)||(null===(o=t.search_params)||void 0===o?void 0:o.hotel_plans))&&(this.$store.dispatch("search/setCurrentSearchParamsHotelPlans",null===(n=t.search_params)||void 0===n?void 0:n.hotel_plans),this.$store.dispatch("search/setCurrentSearchParamsRoomTypes",null===(i=t.search_params)||void 0===i?void 0:i.room_types))},setSearchResultError:function setSearchResultError(t){this.$te("base.errorCode.".concat(t.code))?this.$store.dispatch("error/setSearchResultError",this.$t("base.errorCode.".concat(t.code),t.payload)):this.$store.dispatch("error/setSearchResultError",t.titleList)},replaceUrl:function replaceUrl(t){var e=this,o=["code","hotel_code","uri","checkin","checkout","adults","type","room_type_codes","hotel_plan_codes","filter","is_day_use","mode","promo_code","coupon_code","voucher_coupon_code","utm_source","utm_medium","utm_campaign","campaignid","adgroupid","keyword","gclid","yclid","medium","source","email_id","search_type","nights","current_reservation","email","bypass_token","kids_tiers","room_count","rooms","kids_ages","children","order","is_including_occupied","dynamic_package"],n={};Object.keys(this.$route.query).forEach((function(t){o.includes(t)||(n[t]=e.$route.query[t])})),this.$router.push({query:_objectSpread({},t,{},n)}).catch((function(){}))},scrollToResultStart:function scrollToResultStart(){try{var t,e=document.documentElement.scrollTop+(null===(t=document.querySelector("#ota-search-rooms-result-starts"))||void 0===t?void 0:t.getBoundingClientRect().y)-document.querySelector(".ota-header").clientHeight;window.scrollTo({top:e,behavior:"smooth"})}catch(o){window.scrollTo({top:0,behavior:"smooth"})}},changeWbfFilter:function changeWbfFilter(t){this.search({dynamic_package:t?"wbf":null})}}},P=o(33),w=Object(P.a)(y,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"background-light-gray pb-0",attrs:{id:"ota-search-rooms-page"}},[e("portal",{staticClass:"py-3",attrs:{to:"ota-header"}},[e("ota-pickers",{ref:"searchBar",attrs:{loading:t.loading},on:{search:t.search}}),t._v(" "),t.displayFlightAndRooms&&t.isWBFEnabled?e("b-container",{staticClass:"px-0 mb-3"},[e("b-form-checkbox",{staticClass:"custom-tripla-switch btn-switch-warning",attrs:{"data-cy":"show-only-wbf-plan",checked:"wbf"===t.searchForm.dynamic_package,switch:""},on:{change:t.changeWbfFilter}},[t._v("\n "+t._s(t.$t("bookingResult.bookAirline"))+"\n ")])],1):t._e()],1),t._v(" "),e("div",{staticClass:"background-white"},[e("b-container",[e("b-breadcrumb",{staticClass:"mb-0 px-0"},[e("b-breadcrumb-item",{attrs:{to:{name:t.paths.ota.home}}},[t._v(t._s(t.$t("ota.home")))]),t._v(" "),t.$route.query.option?e("b-breadcrumb-item",{attrs:{to:{name:t.paths.ota.searchHotels,query:t.$route.query}}},[t._v(t._s(t.$t("ota.aiRecommendations")))]):t._e(),t._v(" "),e("b-breadcrumb-item",{attrs:{active:""}},[t._v(t._s(t.hotelName))])],1)],1)],1),t._v(" "),e("ota-facility-info"),t._v(" "),e("div",{attrs:{id:"ota-search-rooms-result-starts"}}),t._v(" "),e("b-container",[e("brand-notifications")],1),t._v(" "),t.loading?e("b-container",{staticClass:"pt-4"},[e("RoomSkeletonLoading")],1):e("ota-facility-rooms"),t._v(" "),e("ota-facility-map")],1)}),[],!1,null,null,null);e.default=w.exports},992:function(t,e,o){},996:function(t,e,o){}}]); 2//# sourceMappingURL=page-OtaView-OtaSearchRooms-index-vue.9f1b7b755d24c9bfae0e.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.