PageSourceSearch

https://rsv.hgp.co.jp/page-Booking-Result-vue~page-OtaView-OtaSear…taFacilityRooms-vue.7201baa54829beec4879.js

js hgp.co.jp collected 2026-09-25 23:35:49 UTC 130,411 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1008:function(t,e,o){"use strict";var i=o(33),n=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:"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=n.exports},1018:function(t,e,o){t.exports=o.p+"arrow-left-white.2e66f95d18639109a9fadc546f37c018.svg"},1019:function(t,e,o){},1044:function(t,e,o){"use strict";var i=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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 n={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(i.d)({cancellationPolicyContent:"search/getCancellationPolicyContent"}))},r=o(33),a=Object(r.a)(n,(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,i){return e("div",{key:"policy-".concat(i),staticClass:"policy-item"},t._l(o,(function(o,i){return e("p",{directives:[{name:"dompurify-html",rawName:"v-dompurify-html",value:o,expression:"sentence"}],key:"sentence-".concat(i),class:[{"font-weight-bold":t.$ota&&0===i}],attrs:{id:"cancellation-policy-sentence-".concat(i)}})})),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 i=o(1185),n=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),m=o(1192),h=o(1193),_=o(136),f=o.n(_),g={name:"RoomFacilities",components:{SmokingIcon:i.a,NonSmokingIcon:a.a,CheckIcon:s.a,InfoIcon:c.a,HotelIcon:l.a,RoomSizeIcon:u.a,FloorIcon:d.a,ToiletIcon:m.a,WifiIcon:h.a,BathIcon:p.a,ShowerIcon:n.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,i,n,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===(i=o.room_size)||void 0===i?void 0:i.unit]||(null===(n=this.room)||void 0===n||null===(r=n.room_size)||void 0===r?void 0:r.unit)}},featureList:function featureList(){var t,e,o,i,n,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,m=!1,h=void 0;try{for(var _,g=this.room.beds[Symbol.iterator]();!(p=(_=g.next()).done);p=!0){var v=_.value,b=v.bed_count>0?": ".concat(this.$tc("bookingResult.bedCount",v.bed_count)):"",y=v.width&&v.length?"(".concat(v.width," x ").concat(v.length,"cm)"):"";d.push({id:"room-".concat(this.room.room_type_code,"-bed-type-").concat(v.bed_type),icon:"HotelIcon",text:"".concat(v.bed_type," ").concat(y).concat(b),count:v.bed_count})}}catch(P){m=!0,h=P}finally{try{p||null==g.return||g.return()}finally{if(m)throw h}}}return(null===(i=this.room)||void 0===i?void 0:i.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===(n=this.room)||void 0===n?void 0:n.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}}},v=(o(1062),o(33)),b=Object(v.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,i){return e("span",{key:"feature-"+i,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,i){return e("span",{key:"facility-"+i,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=b.exports},1053:function(t,e,o){"use strict";var i={name:"PromotionTag",props:{tooltipKey:{type:String,default:null},color:{type:String,default:null}}},n=(o(1047),o(33)),r=Object(n.a)(i,(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 i=o(33),n=Object(i.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=n.exports},1055:function(t,e,o){"use strict";var i=o(33),n=Object(i.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=n.exports},1062:function(t,e,o){"use strict";o(996)},1079:function(t,e,o){"use strict";var i={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")}}},n=o(33),r=Object(n.a)(i,(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 i={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}},n=o(33),r=Object(n.a)(i,(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 i=o(40),n=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 i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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(i.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 i=127*(this.slide-o),n=e-t;return Math.min(i,n)}}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(n.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,i){return e("b-carousel-slide",{key:i,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,i){return e("div",{key:i,staticClass:"img-container",class:{focus:i===t.slide},on:{click:function click(e){t.slide=i}}},[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)},1133:function(t,e,o){},1161:function(t,e,o){"use strict";var i={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)}}},n=o(33),r=Object(n.a)(i,(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 i=o(976),n=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:i.a,TCollapse:s},props:{room:{type:Object,required:!0},variant:{type:String,default:"room"}},data:function data(){return{roomDescriptionExpanded:!1}},computed:{roomDescriptionVisible:function roomDescriptionVisible(){return Object(n.h)()||"room"===this.variant}},created:function created(){this.roomDescriptionExpanded=!Object(n.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}]}
1)])]):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 i={name:"NoSearchResult",props:{hasRecommends:{type:Boolean,default:!1},errorMessage:{type:String,default:null}}},n=(o(1215),o(33)),r=Object(n.a)(i,(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 i={name:"MemberExclusive"},n=(o(1356),o(33)),r=Object(n.a)(i,(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){},1315:function(t,e,o){"use strict";var i=o(1078),n=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:i.a,ImageWrapper:n.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)),m=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=m.exports},1332:function(t,e,o){"use strict";var i=o(11),n=o(1010),r=o(88),a=o(40),s=o(23),c=o(72);function _objectWithoutProperties(t,e){if(null==t)return{};var o,i,n=function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var o,i,n={},r=Object.keys(t);for(i=0;i<r.length;i++)o=r[i],e.indexOf(o)>=0||(n[o]=t[o]);return n}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)o=r[i],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}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=[],i=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(c){n=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}return o}(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function asyncGeneratorStep(t,e,o,i,n,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(i,n)}function _asyncToGenerator(t){return function(){var e=this,o=arguments;return new Promise((function(i,n){var r=t.apply(e,o);function _next(t){asyncGeneratorStep(r,i,n,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(r,i,n,_next,_throw,"throw",t)}_next(void 0)}))}}function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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/getReservationDetails",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,i=null,n=e?"sign_in_discount":"non_sign_in_discount",r=this[t][n];if((null===(o=r.applied_scrape_ids)||void 0===o?void 0:o.length)&&r.total_price_after_discount<this[t].total_price)i=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;i=l[c]}return i},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_
1count))},setWbfPriceMap:(o=_asyncToGenerator(regeneratorRuntime.mark((function _callee(t){var e,o,i,n;return regeneratorRuntime.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return e=t.promotionID,o=this.getSearchParams(null,e),i=o.paramsForAPI,r.prev=2,r.next=5,this.$store.dispatch("booking/getBookingPrice",{searchParams:i});case 5:n=r.sent,this.$store.dispatch("search/setWbfPriceMap",{action:"".concat(i.rooms[0].room_plan_code,"_").concat(i.adults,"_").concat(i.children),payload:{rooms:n.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,i,n,r,a,s;return regeneratorRuntime.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:if(e=t.promotionID,o=t.wbfPayload,i=this.getSearchParams(null,e,null,o),n=i.paramsForAPI,this.setCurrentSearchParams(n),c.prev=3,r=this.wbfPriceMap["".concat(n.rooms[0].room_plan_code,"_").concat(n.adults,"_").concat(n.children)]){c.next=9;break}return c.next=8,this.$store.dispatch("booking/getBookingPrice",{searchParams:n});case 8:r=c.sent;case 9:o.hotelsearchInfo.roomInfo=o.hotelsearchInfo.roomInfo.map((function(t,e){var o=r.rooms[e].rate_details,i=0,n=0;return Object.entries(o).forEach((function(t){var e=_slicedToArray(t,2),o=(e[0],e[1]);i+=o.adult_rate,n=n+o.day_total_rate-o.adult_rate})),_objectSpread({},t,{roomreserveInfo:_objectSpread({},t.roomreserveInfo,{totalprice:r.rooms[e].total_price,pricedtInfo:{adtprice:i,chdprice:n}})})})),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(n))),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?i.a.roomLottery.guestDetail:i.a.reservation.guestDetail;e.$router.push({name:l,query:d}),e.isMcpMode||Object(n.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,i,n){var r,a,s,l,u=this.setting.code,d=this.searchForm,p=d.checkin,m=d.checkout,h=d.mode,_=d.rooms,f=d.room_count,g=d.utm_source,v=d.utm_medium,b=d.utm_campaign,y=d.campaignid,P=d.adgroupid,w=d.keyword,k=d.gclid,O=d.yclid,C=d.source,j=d.medium,x=d.email_id,S=d.search_id,R=d.lottery_event_uuid,I=d.lottery_access_token,T=d.voucher_coupon_code,D=this.isTiersMode&&!this.$preview?f:this.isUndated?_.length:(null==n||null===(r=n.hotelsearchInfo)||void 0===r?void 0:r.roomInfo)?n.hotelsearchInfo.roomInfo.length:1,M=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:m,mode:h||"standard",adults:M*D,children:this.isTiersMode?this.totalKidsCount*D:(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:v,utm_campaign:b,campaignid:y,adgroupid:P,keyword:w,gclid:k,yclid:O,source:C,medium:j,email_id:x},A={checkin_date:p,checkout_date:m,adults:M,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,N,E,F,L,W,q,V=this.searchForm.rooms[0];if(this.isTiersMode&&(A.kids_age_range=Object(c.h)(V.kids_tiers)),A.adults=(null===(B=this[t].matched_search_criteria)||void 0===B?void 0:B.adults_with_companion)||(null===(N=this[t].matched_search_criteria)||void 0===N?void 0:N.adults_count),$.adults=A.adults*D,A.children=(null===(E=this[t].matched_search_criteria)||void 0===E?void 0:E.
1children_with_kid_tier_A_companion)||(null===(F=this[t].matched_search_criteria)||void 0===F?void 0:F.children_count),$.children=A.children*D,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=V.kids_tiers)||void 0===q?void 0:q.length)>0||(null==V?void 0:V.kid_tier_A_companion)>0){var K=_toConsumableArray(V.kids_tiers);if((null==V?void 0:V.kid_tier_A_companion)>0)for(var H=0;H<(null==V?void 0:V.kid_tier_A_companion);H++)K.push("A");A.kids_age_range=Object(c.h)(K)}}var z=this.isSignedIn?"sign_in_discount":"non_sign_in_discount";o&&(A.membership_promotion_id=o),"brr"===this.appliedPriceType&&(A.scrape_ids=this[t][z].applied_scrape_ids);for(var U=0;U<D;U++)$.rooms.push(A);i&&($.coupon_code=i),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 J=this.$route.query.current_lottery_entry;return J&&($.lottery_result_entry_number=J,$.context="update_lottery_result",G.current_lottery_entry=J),R&&($.lottery_event_uuid=R,G.lottery_event=R),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 i=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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 n={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(i.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)(n,(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 i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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(i.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 i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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(i.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)}}},m=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,h=o(11),_=o(20),f=o.n(_),g=o(975),v=o(1055),b=o(1053),y=o(258),P=o(9),w=o(1358),k={name:"PromotionName",components:{InfoIcon:v.a,PromotionTag:b.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"),i=Object(P.toRef)(t,"taxIncluded"),n=Object(w.a)(e,{bookRoomCount:o,taxIncluded:i}).promotionDiscountAmount;return{tooltipKey:Object(P.computed)((function(){return"promotion-tooltip-".concat(t.promotionId,"-").concat(Object(y.v4)())})),promotionDiscountAmount:n,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),x=o(1079),S=o(1080),R={name:"NonSignInPrice",components:{RoomPriceLabel:S.a,PriceTaxInfo:x.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)(R,(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:x.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]}}},D=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,M=o(1054),$={components:{MedalPointIcon:M.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:M.a},props:{pointAmount:{type:Number,required:!0},pointName:{type:String,required:!0}},data:function data(){return{priceWithComma:g.b}}},N=(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),E=o(1051),F=o(1016),L=o(207),W=o(49),q=o(136),V=o.n(q),K=o(57),H=o(72),z=o(1008),U=o(8),G=o(257),J=o(137),Q=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(J.c)({buttonPosition:J.a.PRICE_TABLE}),Object(J.b)("Price table")}}}}),Y=(o(1362),Object(r.a)(Q,(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,i,n=function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var o,i,n={},r=Object.keys(t);for(i=0;i<r.length;i++)o=r[i],e.indexOf(o)>=0||(n[o]=t[o]);return n}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)o=r[i],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function _slicedToArray(t,e){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(c){n=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(n)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 i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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:x.a,GuestNumber:a,BookSelectButton:u,BookWithFlightSelectButton:m,PromotionName:O,NonSignInPrice:I,SignInPrice:D,DateRangePicker:E.a,InfoBlueIcon:z.a,PointReward:A,PriceTableSignInButton:Y,PointRewardForRegistration:N},mixins:[F.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,i=e.bookRoomCount,n=Object(G.g)(o,i),r=n.signInPriceDetail,a=n.nonSignInPriceDetail,s=n.originalPrice,c=n.originalPriceDetail,l=Object(P.computed)((function(){return U.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})),m=Object(P.computed)((function(){return r.value.total<a.value.total})),h=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:m,isMemberPriceEqualToGuest:h,priceWithSymbol:g.c}},data:function data(){return{dateRange:[],isMobile:Object(j.h)()}},computed:PriceTablevue_type_script_lang_js_objectSpread({},Object(i.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,i,n,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===(i=o.matched_search_criteria)||void 0===i?void 0:i.adults_count))-((null===(n=this.item)||void 0===n||null===(r=n.matched_search_criteria)||void 0===r?void 0:r.adult_companion)||0)},childrenCount:function childrenCount(){var t,e,o,i,n,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===(i=o.matched_search_criteria)||void 0===i?void 0:i.children_count))-((null===(n=this.item)||void 0===n||null===(r=n.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,i=Object(W.i)(this.wbfSetting.settings.check_in_start_day-1),n=Object(W.i)(this.wbfSetting.settings.check_in_end_day+1);
1return!(Object(W.b)(o,i)&&Object(W.c)(o,n))},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),i=o.promotionID,n=o.couponCode;return PriceTablevue_type_script_lang_js_objectSpread({searchResultPrice:e},i?{promotionID:i}:{},{},n?{couponCode:n}:{})},signInRoute:function signInRoute(){var t;if(null===(t=this.item)||void 0===t?void 0:t.only_visible_to_guest)return{name:h.a.membership.signIn,query:{urlBack:this.$route.fullPath,code:this.setting.code}};if(!this.isMultipleRoomsMode&&!this.isUndated&&this.memberPriceInfo){var e,o,i,n=this.memberPriceInfo,r=n.searchResultPrice,a=n.promotionID,s=n.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===(i=this.ghaQueryParams)||void 0===i?void 0:i.hotel_plan_code)&&(c.hotel_plan_code=this.ghaQueryParams.hotel_plan_code);var l=this.$router.resolve({name:h.a.reservation.guestDetail,query:c}).href;return{name:h.a.membership.signIn,query:{urlBack:l,code:this.setting.code}}}return{name:h.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,i,n,r=null;if((null!==(e=null===(o=this.currentDiscount)||void 0===o||null===(i=o.promotions)||void 0===i?void 0:i.length)&&void 0!==e?e:0)>0)r="coupon"!==(null===(n=this.currentDiscount.promotions[0])||void 0===n?void 0:n.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(V()(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),i=this.item.tax+(this.item.accommodation_tax||0);return(V()(o)?o:i)*this.bookRoomCount}
1,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],i=e[1];L.a.$emit("search",{checkin:o,checkout:i||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,i,n=[],r=null,a=null;if(this.appliedPriceType===d.k.BRR&&(null===(e=this.currentDiscount.applied_scrape_ids)||void 0===e?void 0:e.length)&&(n=this.currentDiscount.applied_scrape_ids),(null===(o=this.currentDiscount)||void 0===o||null===(i=o.promotions)||void 0===i?void 0:i.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:n,promotionID:r,couponCode:a})},selectAndBook:function selectAndBook(t){var e=this,o=_slicedToArray(t,1)[0],i=Object(W.a)(o,this.form.nights);this.$store.dispatch("search/setSearchForm",{checkin:o,checkout:i});var n=this.roomRateMap[o];if(n&&"number"==typeof n.rate){var r={searchResultPrice:n.rate},a=n.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 i=t.find((function(t){return["all_users","standard","secret","early_bird","last_minute"].includes(t.promotion_type)}));e=null==i?void 0:i.id;var n=t.find((function(t){return"coupon"===t.promotion_type}));o=null==n?void 0:n.coupon_code}return{promotionID:e,couponCode:o}},handleBook:function handleBook(t,e){var o=this.getAppliedPromotionIDAndCouponCode(e),i=o.promotionID,n=o.couponCode,r=PriceTablevue_type_script_lang_js_objectSpread({},t,{},i?{promotionID:i}:{},{},n?{couponCode:n}:{});this.$emit("book",r)},bookWithAirlineTicket:function bookWithAirlineTicket(){for(var t,e,o,i,n=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(K.b)(),hotelsearchInfo:{checkin:this.searchForm.checkin.replace(/\//g,"-"),checkout:this.searchForm.checkout.replace(/\//g,"-"),hoteladt:this.adultsCount*n,hotelchd:this.childrenCount*n,roomInfo:[]}},a=this.displayPromotions(this.isSignedIn).find((function(t){return["all_users","standard","early_bird","last_minute"].includes(t.promotion_type)})),s=0;s<n;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(H.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 m,h=null;(null===(o=this.currentDiscount)||void 0===o?void 0:o.promotions)&&(null===(i=this.currentDiscount)||void 0===i?void 0:i.promotions.length)>0&&(h="coupon"!==(null===(m=this.currentDiscount.promotions[0])||void 0===m?void 0:m.promotion_type)&&this.currentDiscount.promotions[0].id);this.$emit("bookAirline",{promotionID:h,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)],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.signInPriceDetail.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-
1highlighted-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},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 i=o(32);var n=o(33),r={components:{AddIcon: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:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",fill:"#767677"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null).exports,RemoveIcon: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:{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(n.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(n.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,i){return e("b-row",{key:"".concat(i,"-").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),m=o(9);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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 h={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(m.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(i.a.tc("bookingResult.forNights",e))}}},_=(o(1355),Object(n.a)(h,(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,i){return e("b-row",{key:"ota-".concat(i,"-").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 i=o(20),n=o.n(i),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,i){return e("li",{key:i,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),m=o(1050),h=o(9),_=o(257),f=o(975),g=o(23);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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 v={name:"RoomPlanFeatures",components:{PaymentPromotionBanner:m.a,NotificationAlert:d},mixins:[r.a],props:{plan:{type:Object,required:!0},roomPlanCode:{type:String,required:!0}},setup:function setup(t){var e=Object(h.getCurrentInstance)().proxy.$store,o=Object(_.b)().getMcpPriceValue,i=Object(h.computed)((function(){return e.getters["membership/isSignedIn"]}));return{paymentPromotionAmount:Object(h.computed)((function(){var e,n,r,a=i.value?"sign_in_discount":"non_sign_in_discount";if(!(null===(e=t.plan[a])||void 0===e||null===(n=e.payment_promotion)||void 0===n?void 0:n.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=n()(this.plan,"wifi_option")||n()(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),i=n()(t,"payment_method",[])||[],r=[g.w.OnSite,g.w.deferredPayment].includes(this.currentReservation.payment_method);return i.map((function(t){var i=t.code,n=t.name;return!(i===g.w.OnSite&&!r&&e.$route.query.current_reservation)&&("credit_card"===i?e.$t("reservationPayment.prePayment"):e.isTWD&&"credit_card"===i?e.$t("bookingResult.paymentMethod.credit_card_".concat(o?"deposit":"full")):e.isTWD&&"on_site"===i?e.$t("bookingResult.paymentMethod.bank_transfer"):i?e.$t("bookingResult.paymentMethod.".concat(i)):n)})).filter(Boolean).join(", ")}}},b=(o(1353),Object(a.a)(v,(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,i;return e.preventDefault(),t.openAndLoadCancellationPolicy({title:null===(o=t.plan)||void 0===o?void 0:o.name,policyId:null===(i=t.plan)||void 0===i?void 0:i.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=b.exports},1337:function(t,e,o){"use strict";function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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 i=o(40),n=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),m=o(23);function RoomViewItemvue_type_script_lang_js_ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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 h={name:"RoomViewItem",components:{RoomPlanFeatures:r.a,OtaList:a.a,MemberExclusive:s.a,PriceTable:u.a},mixins:[Object(n.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,i=Object(d.toRefs)(t).plan,n=Object(p.g)(i,o.bookRoomCount);return{nonSignInPriceDetail:n.nonSignInPriceDetail,signInPriceDetail:n.signInPriceDetail,originalPrice:n.originalPrice,getMcpPriceValue:e}},data:function data(){return{isLoading:!1}},computed:RoomViewItemvue_type_script_lang_js_objectSpread({},Object(i.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===m.k.BRR)return!0}if(o.nonSignInPriceDetail){if(e>o.nonSignInPriceDetail.total)return!0;if(e===o.nonSignInPriceDetail.total&&o.appliedPriceType===m.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,i,n=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===(i=this.plan.matched_search_criteria)||void 0===i?void 0:i.children_count);return this.getSelectedRoomCount({roomTypeCode:n,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,i,n,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===(i=o.matched_search_criteria)||void 0===i?void 0:i.children_count))-((null===(n=this.plan)||void 0===n||null===(r=n.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(i.c)("search",["setPlanDetails"]),{changeRoomCount:function changeRoomCount(t){var e,o,i,n,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===(i=this.plan.matched_search_criteria)||void 0===i?void 0:i.adults_count),numberOfChildren:(null===(n=this.plan)||void 0===n||null===(r=n.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 i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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)(h,(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(i.d)({multiple:"search/getIsMultiple",isTiersMode:"setting/isTiersMode",isUndated:"search/isUndated",searchForm:"search/getSearchForm",currentReservation:"booking/getReservationDetails"}),{},Object(i.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,i=!!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,n,r=null===(e=t.payment_method)||void 0===e?void 0:e.every((function(t){return[m.w.deferredPayment,m.w.OnSite].includes(t.code)})),a=[m.w.CreditCard,m.w.PrePaid,m.w.AmazonPay].includes(null===(n=o.currentReservation)||void 0===n?void 0:n.payment_method);
1return i&&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})),i=o.reduce((function(t,e){return t+e.quantity}),0),n=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-i+((null==n?void 0:n.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,i){return[e("room-view-item",{key:"room-view-item-".concat(i),attrs:{plan:o,"plan-index":i,"room-index":t.roomIndex,hidden:i>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(i),attrs:{type:"room","available-room":t.availableRoomCount(o),"room-data":t.room,"plan-data":o,"plan-index":i}})]})),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 i=o(9),n=o(467),r=o.n(n);function asyncGeneratorStep(t,e,o,i,n,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(i,n)}function _asyncToGenerator(t){return function(){var e=this,o=arguments;return new Promise((function(i,n){var r=t.apply(e,o);function _next(t){asyncGeneratorStep(r,i,n,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(r,i,n,_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(i.getCurrentInstance)().proxy,n=Object(i.ref)(null);function _loadContent(){return(_loadContent=_asyncToGenerator(regeneratorRuntime.mark((function _callee(a){var s,c,l,u,d,p,m;return regeneratorRuntime.wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:return m=function _ref2(){var t=n.value;t&&(t.contentWindow.location.reload(),t.dispatchEvent(new Event("load")))},p=function _ref(){var t,e,o=s.body.scrollHeight+"px";(null===(t=n.value)||void 0===t?void 0:t.height)&&(null===(e=n.value)||void 0===e?void 0:e.height)!==o&&(n.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"),h.next=13,o.e(81).then(o.bind(null,1725));case 13:l.innerHTML=h.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(),n.value.style.opacity=1,s.body.querySelectorAll("a").forEach((function(t){t.target=t.target||"_top"}))}),100),setTimeout((function(){p()}),1500),Object(i.watch)((function(){return e.$i18n.locale}),(function(){setTimeout((function(){m()}),1e3)}));case 26:case"end":return h.stop()}}),_callee)})))).apply(this,arguments)}return{viewer:n,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 i=o(40),n=o(866),r=o.n(n),a=o(31);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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(i.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,i){return e("b-carousel-slide",{key:i},[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 i=o(40),n=o(976),r=o(1052),a=o(1210);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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:n.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(i.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 i=o(975),n=o(40),r=o(1080);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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(n.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:i.c},Object(n.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,i){return e("div",{key:i,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",[i+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 i=o(40);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}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 n={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(i.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,i,n;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===(i=this.jsonld)||void 0===i||null===(n=i.makesOffer)||void 0===n?void 0:n.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,i;if("room"===this.type){var n,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===(n=this.roomData)||void 0===n?void 0:n.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"),m=this.extractPlanSearchTimes("checkout");this.jsonld.containsPlace.offers=this.getOffers({identifier:d,checkinTime:p,checkoutTime:m,data:this.roomData}),this.jsonld.makesOffer=this.getMakesOffers({identifier:d,checkinTime:p,checkoutTime:m,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===(i=o.picture)||void 0===i?void 0:i.url)},methods:{extractRoomSearchTimes:function extractRoomSearchTimes(t,e,o){if(!e)return this.searchForm[o].replace(/\//g,"-");var i=e.match(new RegExp(t,"m")),n=i&&i.length>0?i[0].replace(/.*?(?=\d)/,"").split("-")[0].trim():"";return(""!==n?"".concat(this.searchForm[o]," ").concat(n,":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),i="Meals: ".concat(Array.isArray(e.meal_status)?e.meal_status.join(", "):e.meal_status),n=e.payment_method.map((function(t){return"".concat(t.name,", Payment Discount: ").concat(t.payment_discount_amount)})).join(", ");return"".concat(o,", ").concat(n,", ").concat(i)},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,i=t.identifier,n=t.checkinTime,r=t.checkoutTime,a=t.hasMerchantReturnPolicy,s=t.price,c={"@type":["Offer","LodgingReservation"],identifier:i,checkinTime:n,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,i=t.checkoutTime,n=t.data,r=this.getReturnPolicy(n),a=this.getRegularPrice(n),s=this.getNonSignInPrice(n),c=isNaN(s)?a:s,l=[this.getOffer({identifier:e,checkinTime:o,checkoutTime:i,hasMerchantReturnPolicy:r,price:c})],u=this.getSignInPrice(n);if(!isNaN(u)&&u<c){var d=this.getOffer({identifier:e,checkinTime:o,checkoutTime:i,hasMerchantReturnPolicy:r,price:u});l.push(d)}return l},getMakesOffer:function getMakesOffer(t){var e,o,i=t.identifier,n=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:i,price:a,checkinTime:n,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,i=t.checkoutTime,n=t.data,r=this.getRegularPrice(n),a=this.getNonSignInPrice(n),s=isNaN(a)?r:a,c=[this.getMakesOffer({identifier:e,checkinTime:o,checkoutTime:i,price:s})],l=this.getSignInPrice(n);if(!isNaN(l)&&l<s){var u=this.getMakesOffer({identifier:e,checkinTime:o,checkoutTime:i,price:l,eligibleCustomerType:"RewardsMember"});c.push(u)}return c}}},r=o(33),a=Object(r.a)(n,(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 i=o(9),n=o(856),r=o.n(n),a=function usePromotionDiscount(e,o){var n,a=o.bookRoomCount,s=o.taxIncluded,c=Object(i.getCurrentInstance)(),l=(null==c||null===(n=c.proxy)||void 0===n?void 0:n.$store)||t.$store,u=Object(i.computed)((function(){return l.getters["mcp/isMcpMode"]}));return{promotionDiscountAmount:Object(i.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)},992:function(t,e,o){},996:function(t,e,o){}}]);
2//# sourceMappingURL=page-Booking-Result-vue~page-OtaView-OtaSearchRooms-OtaFacilityRooms-vue.7201baa54829beec4879.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.