1(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{1011:function(t,e,r){"use strict";var n=r(33),i=Object(n.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"}},this.$listeners),[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{fill:"#005CF0",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}})])}),[],!1,null,null,null);e.a=i.exports},1021:function(t,e,r){t.exports=r.p+"arrow-left-white.2e66f95d18639109a9fadc546f37c018.svg"},1022:function(t,e,r){},1047:function(t,e,r){"use strict";var n=r(40);function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i={name:"CancellationPolicyModal",components:{IconInfoBlue:r(1011).a},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(r,!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(n.d)({cancellationPolicyContent:"search/getCancellationPolicyContent"}))},o=r(33),s=Object(o.a)(i,(function render(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"result-cancellation-policy-modal",title:t.$t("bookingResult.cancellationPolicy"),size:"lg","hide-footer":"",centered:""}},[t.cancellationPolicyContent?[t._l(t.cancellationPolicyContent,(function(r,n){return e("div",{key:"policy-".concat(n),staticClass:"policy-item"},t._l(r,(function(r,n){return e("p",{directives:[{name:"dompurify-html",rawName:"v-dompurify-html",value:r,expression:"sentence"}],key:"sentence-".concat(n),class:[{"font-weight-bold":t.$ota&&0===n}],attrs:{id:"cancellation-policy-sentence-".concat(n)}})})),0)})),t._v(" "),e("div",[e("p",{staticClass:"d-flex align-items-center",attrs:{id:"cancellation-policy-local-time"}},[t.$ota?e("icon-info-blue",{staticClass:"mr-2 flex-shrink-0"}):t._e(),t._v("\n "+t._s(t.$ota?t.$t("cancellationPolicy.uponLocalTimeOTA"):t.$t("cancellationPolicy.uponLocalTime"))+"\n ")],1)])]:e("div",{staticClass:"text-center p-3"},[e("b-spinner")],1)],2)}),[],!1,null,null,null);e.a=s.exports},1094:function(t,e,r){"use strict";var n=r(40),i=r(31),o=r(33),s=Object(o.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 0 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 r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={name:"GalleryModal",components:{CollapseIcon:s},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 r=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(r,!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(n.d)({photos:"search/getGalleryPhotos",focusPhoto:"search/getGalleryIndex"}),{moveOffset:function moveOffset(){if(this.$refs.relativeContainer){var t=this.$refs.relativeContainer.clientWidth,e=this.$refs.thumbnailsWrapper.scrollWidth,r=t/2/127-1;if(this.slide>r){var n=127*(this.slide-r),i=e-t;return Math.min(n,i)}}return 0*this.slide}}),watch:{expand:function expand(t){var e=this;t&&setTimeout((function(){if(e.$refs.expandImg.clientWidth>=e.$refs.expandImg.clientHeight){e.expandClass="h-expand";var t=document.querySelector(".expand-block");setTimeout((function(){t.scrollLeft=(t.scrollWidth-window.screen.width)/2}))}else e.expandClass="w-100"}))}},methods:{hideResetModal:function hideResetModal(){document.addEventListener("remove",this.changeSlide)},showResetModal:function showResetModal(){var t=this;setTimeout((function(){t.slide=t.focusPhoto})),document.addEventListener("keydown",this.changeSlide)},changeSlide:function changeSlide(t){switch(t.keyCode){case 37:this.slide=this.slide-1;break;case 39:this.slide=this.slide+1}},clickLeft:function clickLeft(){this.slide--},clickRight:function clickRight(){this.slide++},handleSwipe:function handleSwipe(t){["top","bottom"].includes(t)&&this.$bvModal.hide("gallery-modal")},handleDoubleTap:function handleDoubleTap(){var t=this;null===this.clickTimer?this.clickTimer=setTimeout((function(){clearTimeout(t.clickTimer),t.clickTimer=null}),500):(clearTimeout(this.clickTimer),this.clickTimer=null,Object(i.h)()&&(this.expand=!this.expand))},highResolutionUrl:function highResolutionUrl(t){var e,r;return(null==t||null===(e=t.picture)||void 0===e||null===(r=e.wordpress)||void 0===r?void 0:r.url)||(null==t?void 0:t.fullSize)},lowResolutionUrl:function lowResolutionUrl(t){var e,r;return(null==t||null===(e=t.picture)||void 0===e||null===(r=e.wordpress_thumb)||void 0===r?void 0:r.url)||(null==t?void 0:t.fullSize)},thumbUrl:function thumbUrl(t){var e,r;return(null==t||null===(e=t.picture)||void 0===e||null===(r=e.thumbnail)||void 0===r?void 0:r.url)||(null==t?void 0:t.thumbnail)}}},a=(r(1098),Object(o.a)(l,(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(r,n){return e("b-carousel-slide",{key:n,staticClass:"text-center"},[e("div",{attrs:{slot:"img"},slot:"img"},[e("div",{staticClass:"bg-pic"},[e("div",{staticClass:"pic background-layer",style:{backgroundImage:"url(".concat(t.highResolutionUrl(r),")")}}),t._v(" "),e("div",{staticClass:"pic",style:{backgroundImage:"url(".concat(t.highResolutionUrl(r),")")},on:{click:t.handleDoubleTap}})]),t._v(" "),e("p",{staticClass:"display-text pl-2"},[t._v("\n "+t._s(r.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:r(1021),alt:"<"},on:{click:t.clickLeft}}),t._v(" "),e("img",{staticClass:"right-arrow",attrs:{src:r(1021),alt:"<"},on:{click:t.clickRight}})]:t._e(),t._v(" "),e("button",{staticClass:"display-text close-btn",on:{click:function click(e){return t.$bvModal.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(r,n){return e("div",{key:n,staticClass:"img-container",class:{focus:n===t.slide},on:{click:function click(e){t.slide=n}}}
1,[e("img",{attrs:{src:t.lowResolutionUrl(r)||t.thumbUrl(r),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=a.exports},1098:function(t,e,r){"use strict";r(1022)},1164:function(t,e,r){},1307:function(t,e,r){"use strict";r(1164)},1317:function(t,e,r){"use strict";var n=r(9),i=r(33),o=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:"M9 11.75a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zm6 0a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37a9.974 9.974 0 0010.41 3.97c.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"}}),t("path",{attrs:{fill:"none",d:"M0 0h24v24H0z"}})])}),[],!1,null,null,null).exports,s=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:{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}})])}),[],!1,null,null,null).exports,l=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:{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"}})])}),[],!1,null,null,null).exports,a=Object(i.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"}},this.$listeners),[t("path",{attrs:{fill:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}})])}),[],!1,null,null,null).exports,c=r(122),u=r(23),d=r(320),p=r(11),h=r(322);function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(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")}()}var f={name:"BookingProgress",components:{PersonIcon:o,PeopleIcon:s,PaymentIcon:l,DoneIcon:a},props:{isVoucherMode:{type:Boolean,default:!1},isRoomLottery:Boolean,selectedPaymentMethod:{type:String,default:null}},setup:function setup(t){var e=Object(n.getCurrentInstance)().proxy,r=e.$store,i=e.$ota,f=Object(d.useRoute)(),v=Object(n.computed)((function(){return[{key:"GuestDetail",title:"progressBar.guestTitle",subtitle:"progressBar.guestSubtitle",icon:i?s:o}].concat(_toConsumableArray(m.value?[{key:"Payment",title:"progressBar.paymentTitle",subtitle:"progressBar.paymentSubtitle",icon:l}]:[]),[!t.isRoomLottery&&{key:"Confirmation",title:i?"progressBar.confirmationTitleOTA":t.isVoucherMode?"voucher.purchseComplete":"progressBar.confirmationTitle",subtitle:i?"progressBar.confirmationSubtitleOTA":t.isVoucherMode?"voucher.thankPurchase":"progressBar.confirmationSubtitle",icon:a},t.isRoomLottery&&{key:"Confirmation",title:"progressBar.completeLottery",subtitle:"progressBar.completeLotterySubtitle",icon:a}]).filter(Boolean)}
1)),m=Object(n.computed)((function(){if(t.isRoomLottery)return!1;var e=r.getters["setting/getEnableBwToOtaProcess"],n=[u.w.CreditCard,u.w.OnSiteCreditCardRequired].includes(t.selectedPaymentMethod);return!((e||!n)&&t.selectedPaymentMethod)||n})),b=Object(n.computed)((function(){return r.getters["booking/getCurrentStep"]})),g=Object(n.computed)((function(){return r.getters["setting/getFontColor"]}));return Object(n.onMounted)((function(){[p.a.ota.reservation.failure,p.a.reservation.failure].includes(Object(h.a)(f.name))&&r.dispatch("booking/setCurrentStep",1)})),{progressSteps:v,currentStep:b,iconColor:g,isActive:function isActive(e){return(t.isRoomLottery?c.i[e]:c.h[e])<=b.value},isExact:function isExact(e){return(t.isRoomLottery?c.i[e]:c.h[e])===b.value}}}},v=(r(1307),Object(i.a)(f,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"progressbar"},[e("b-container",[e("b-row",{staticClass:"progress-steps-container",attrs:{"no-gutters":""}},[t._l(t.progressSteps,(function(r){return e("b-col",{key:r.key,staticClass:"progressbar-item",class:{active:t.isActive(r.key)},attrs:{xs:"4","align-h":"center"}},[e("div",{directives:[{name:"theme-btn",rawName:"v-theme-btn",value:t.isActive(r.key),expression:"isActive(step.key)"}],staticClass:"progressbar-icon",class:{active:t.isActive(r.key)}},[e("i",{style:"fill: ".concat(t.iconColor)},[e(r.icon,{tag:"component",staticClass:"progressbar-icon-inner",attrs:{alt:t.$t(r.title)}})],1)]),t._v(" "),e("div",{staticClass:"progressbar-title",class:{active:t.isExact(r.key)}},[e("i18n",{attrs:{path:r.title}})],1),t._v(" "),e("div",{staticClass:"progressbar-details",class:{active:t.isExact(r.key)}},[e("i18n",{attrs:{path:r.subtitle}}
1)],1)])})),t._v(" "),e("div",{staticClass:"progressbar-line"})],2)],1)],1)}),[],!1,null,"3312d1b5",null));e.a=v.exports},1573:function(t,e,r){},1717:function(t,e,r){"use strict";r(1573)},948:function(t,e,r){"use strict";r.r(e);var n=r(1317),i=r(1094),o=r(1047),s=r(40),l=r(11);function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a={name:"RoomLottery",components:{CancellationPolicyModal:o.a,GalleryModal:i.a,BookingProgress:n.a},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(r,!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(s.d)({errors:"error/getRoomLotteryError"}),{isError403:function isError403(){var t;return null===(t=this.errors)||void 0===t?void 0:t.some((function(t){return 403===t.code}))},isCompletePage:function isCompletePage(){return this.$route.name===l.a.roomLottery.complete}}),created:function created(){this.$store.dispatch("error/setRoomLotteryError",null)}},c=(r(1717),r(33)),u=Object(c.a)(a,(function render(){var t=this,e=t._self._c;return e("div",[t.isCompletePage||t.isError403?t._e():e("booking-progress",{attrs:{"is-room-lottery":""}}),t._v(" "),e("div",{staticClass:"room-lottery-wrapper"},[t.errors?e("b-container",{staticClass:"error-block"},[e("form-error",{attrs:{errors:t.errors}})],1):t._e(),t._v(" "),e("router-view")],1),t._v(" "),e("gallery-modal"),t._v(" "),e("cancellation-policy-modal")],1)}),[],!1,null,"b224ee5c",null);e.default=u.exports}}]); 2//# sourceMappingURL=page-RoomLottery-index-vue.5a6508fd01d9707af69c.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.