PageSourceSearch

https://reserve.keioplaza.co.jp/page-RoomLottery-Confirmation-vue.5ea7bff7f384efab42f9.js

js keioplaza.co.jp collected 2026-09-25 19:47:12 UTC 127,038 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{1e3:function(t,e,n){"use strict";var o=n(1087),i=n.n(o),a=n(1013),r=n.n(a),s={name:"CheckoutLayoutBox",props:{expanded:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!1},title:{type:String,default:""},useWhiteTitle:Boolean,contentClass:{type:[String,Object],default:""},freeze:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1}},data:function data(){return{showDetail:!0}},computed:{arrowIcon:function arrowIcon(){return this.showDetail?i.a:r.a}},created:function created(){window.addEventListener("resize",this.resizeHandler),this.showDetail=this.expanded,this.resizeHandler()},destroyed:function destroyed(){window.removeEventListener("resize",this.resizeHandler)},methods:{toggleDetail:function toggleDetail(){window.innerWidth<992&&!this.freeze&&(this.showDetail=!this.showDetail)},resizeHandler:function resizeHandler(){window.innerWidth>=992&&(this.showDetail=!0)}}},c=(n(1103),n(33)),l=Object(c.a)(s,(function render(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],class:["box-wrapper position-relative",{"is-white":t.useWhiteTitle,"box-wrapper--ota":t.$ota}]},[t.title?e("div",{staticClass:"box-title",class:{bordered:t.bordered},on:{click:t.toggleDetail}},[t.title?e("h2",{staticClass:"title mb-0",attrs:{id:"".concat(t.title,"-page-title")}},[t._v("\n        "+t._s(t.title)+"\n      ")]):t._e(),t._v(" "),e("img",{staticClass:"icon",class:{"d-none":t.freeze},attrs:{src:t.arrowIcon,alt:"Toggle details"}})]):t._e(),t._v(" "),e("div",{staticClass:"box-content",class:[t.contentClass,{bordered:t.bordered,collapsed:!t.showDetail}]},[t.showDetail?t._t("default"):t._e()],2)])}),[],!1,null,"690a6810",null);e.a=l.exports},1013:function(t,e,n){t.exports=n.p+"arrow-bottom.c3d75740c5c58e55c4e6e9bac7e742ac.svg"},1014:function(t,e,n){"use strict";function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));var o=function transformExtrasToPriceAPIParams(t){return(null==t?void 0:t.extra_items)?{extra_items:t.extra_items.map((function(t){return{extra_id:t.extra_id,delivery_times:t.delivery_times.map((function(t){return{delivered_at:t.delivered_at,quantity:t.quantity,price:t.price}})),quantity:t.quantity}})),extra_items_total_price:t.extra_price}:{}},i=function applyExtrasForPaymentUpdate(t,e,n){return n?function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{},o(e)):t}},1020:function(t,e,n){},1021:function(t,e,n){},1022:function(t,e,n){},1023:function(t,e,n){},1024:function(t,e,n){},1025:function(t,e,n){},1052:function(t,e,n){"use strict";var o=n(1185),i=n(1186),a=n(1187),r=n(1188),s=n(1189),c=n(979),l=n(1045),u=n(1165),d=n(1190),p=n(1191),m=n(1192),v=n(1193),h=n(136),_=n.n(h),f={name:"RoomFacilities",components:{SmokingIcon:o.a,NonSmokingIcon:r.a,CheckIcon:s.a,InfoIcon:c.a,HotelIcon:l.a,RoomSizeIcon:u.a,FloorIcon:d.a,ToiletIcon:m.a,WifiIcon:v.a,BathIcon:p.a,ShowerIcon:i.a,BathtubIcon:a.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,n,o,i,a,r={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:r[null===(n=this.room)||void 0===n||null===(o=n.room_size)||void 0===o?void 0:o.unit]||(null===(i=this.room)||void 0===i||null===(a=i.room_size)||void 0===a?void 0:a.unit)}},featureList:function featureList(){var t,e,n,o,i,a,r,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});_()(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===(n=this.room)||void 0===n?void 0:n.beds)){var p=!0,m=!1,v=void 0;try{for(var h,f=this.room.beds[Symbol.iterator]();!(p=(h=f.next()).done);p=!0){var b=h.value,g=b.bed_count>0?": ".concat(this.$tc("bookingResult.bedCount",b.bed_count)):"",y=b.width&&b.length?"(".concat(b.width," x ").concat(b.length,"cm)"):"";d.push({id:"room-".concat(this.room.room_type_code,"-bed-type-").concat(b.bed_type),icon:"HotelIcon",text:"".concat(b.bed_type," ").concat(y).concat(g),count:b.bed_count})}}catch(C){m=!0,v=C}finally{try{p||null==f.return||f.return()}finally{if(m)throw v}}}return(null===(o=this.room)||void 0===o?void 0:o.hide_smoking)||d.push({id:"room-".concat(this.room.room_type_code,"-smoking"),icon:this.room.is_smoking?"SmokingIcon":"NonSmokingIcon",text:this.room.is_smoking?this.$t("bookingResult.smoking"):this.$t("bookingResult.nonSmoking")}),(null===(i=this.room)||void 0===i?void 0:i.shower)&&d.push({id:"room-".concat(this.room.room_type_code,"-shower"),icon:"ShowerIcon",text:this.$t("bookingResult.shower"),iconClass:"icon-b"}),(null===(a=this.room)||void 0===a?void 0:a.bathtub)&&d.push({id:"room-".concat(this.room.room_type_code,"-bathtub"),icon:"BathtubIcon",text:this.$t("bookingResult.bathtub"),iconClass:"icon-b"}),(null===(r=this.room)||void 0===r?void 0:r.toilet)&&d.push({id:"room-".concat(this.room.room_type_code,"-toilet"),icon:"ToiletIcon",text:this.$t("bookingResult.toilet")}),(null===(s=this.room)||void 0===s?void 0:s.free_wifi)&&d.push({id:"room-".concat(this.room.room_type_code,"-free-wifi"),icon:"WifiIcon",text:this.$t("bookingResult.freeWifi")}),d}}},b=(n(1062),n(33)),g=Object(b.a)(f,(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(n,o){return e("span",{key:"feature-"+o,staticClass:"feature-item",attrs:{cols:"6",lg:"12"}}
1,[e("i",{style:"fill: #a1a2a2"},[e(n.icon,{tag:"component",staticClass:"icon mr-1",class:n.iconClass})],1),t._v(" "),n.text?e("span",{staticClass:"text",attrs:{"data-cy":n.id,"data-count":n.count}},[t._v(t._s(n.text))]):t._e(),t._v(" "),n.html?e("span",{staticClass:"text",attrs:{"data-cy":n.id},domProps:{innerHTML:t._s(n.html)}}):t._e(),t._v(" "),n.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",n.tooltip)))])])]:t._e()],2)})),t._v(" "),t._l(t.room.room_facilities,(function(n,o){return e("span",{key:"facility-"+o,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(n.text))])])}))],2)}),[],!1,null,"758a1ae4",null);e.a=g.exports},1057:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));var o={REGISTERED:"registered",REGISTRATION_CANCELLED:"registration_cancelled",SELECTED_NOTIFIED:"winner_reservation_pending",NOT_SELECTED:"not_winner",SELECTED_RESERVED:"winner_reservation_confirmed",RESERVATION_CANCELLED:"winner_reservation_cancelled",SELECTED_DECLINED:"winner_reservation_pending_declined"},i={PROCESS_BOOKING:"processBooking",VIEW_DETAILS:"viewDetails",RESTORE_ENTRY:"restoreEntry",CANCEL_RESERVATION:"cancelReservation",CANCEL_ENTRY:"cancelEntry"}},1058:function(t,e,n){"use strict";var o=n(40),i=n(995);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a={name:"NotificationFromFacility",components:{MarkdownViewer:n(976).a,InfoIcon:i.a},props:{brandNotifications:{type:Array,default:function _default(){return[]}}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(o.d)({facilityNotifications:"booking/getFacilityNotifications"}))},r=(n(1100),n(33)),s=Object(r.a)(a,(function render(){var t=this,e=t._self._c;return(t.facilityNotifications||[]).length>0||t.brandNotifications.length>0?e("div",[e("div",{staticClass:"notification-title"},[e("info-icon",{staticClass:"info-icon"}),t._v("\n      "+t._s(t.$t("additionalQuestion.notificationFromFacility"))+"\n    ")],1),t._v(" "),e("div",{staticClass:"notification-list"},[e("ul",{staticClass:"list-style-none"},[t._l(t.facilityNotifications,(function(n){return e("li",{key:n.id,staticClass:"break-word mb-2",attrs:{"data-cy":"facility-notification-".concat(n.id)}},[t._v("\n          "+t._s(n.question)+"\n        ")])})),t._v(" "),t._l(t.brandNotifications,(function(t){return e("li",{key:t.id,staticClass:"break-word mb-2",attrs:{"data-cy":"brand-notification-".concat(t.id)}},[e("markdown-viewer",{attrs:{markdown:t.question}})],1)}))],2)])]):t._e()}),[],!1,null,"2002b726",null);e.a=s.exports},1059:function(t,e,n){"use strict";var o=n(322),i=n(1132),a=n(31),r={name:"MobileBottomModal",components:{CloseIcon:o.a,SafeArea:i.a},props:{id:{type:String,required:!0},title:{type:String,required:!0},safeArea:{type:Boolean,default:!0},fullHeight:{type:Boolean,default:!1},customClass:{type:String,default:""}},computed:{dialogClass:function dialogClass(){return""===this.customClass?"bottom-modal":this.customClass}},methods:{handleClose:function handleClose(){this.$bvModal.hide(this.id),this.$emit("close",{trigger:"close-button"})},closeBrrWidget:function closeBrrWidget(){Object(a.p)({action:"close-brr-widget"})}}},s=(n(1168),n(33)),c=Object(s.a)(r,(function render(){var t=this,e=t._self._c;return e("b-modal",t._g(t._b({attrs:{id:t.id,"dialog-class":t.dialogClass,"content-class":t.fullHeight?"full-height":"calendar-modal",size:"lg","hide-footer":"","hide-header":""},on:{show:t.closeBrrWidget}},"b-modal",t.$attrs,!1),t.$listeners),[e("h6",{staticClass:"header"},[e("div",{staticClass:"close-icon",on:{click:t.handleClose}},[e("close-icon")],1),t._v("\n      "+t._s(t.title)+"\n    ")]),t._v(" "),t._t("default"),t._v(" "),t.safeArea?e("safe-area"):t._e()],2)}),[],!1,null,"40e50b1d",null);e.a=c.exports},1060:function(t,e,n){"use strict";var o=n(33),i=Object(o.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24"}},this.$listeners),[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"}})])}),[],!1,null,null,null);e.a=i.exports},1061:function(t,e,n){"use strict";var o=n(33),i=Object(o.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},this.$listeners),[t("path",{attrs:{d:"M168 336c13.3 0 24 10.7 24 24s-10.7 24-24 24h-48c-13.3 0-24-10.7-24-24s10.7-24 24-24h48zm192 0c13.3 0 24 10.7 24 24s-10.7 24-24 24H248c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM512 32c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V96c0-35.35 28.65-64 64-64h448zm0 48H64c-8.84 0-16 7.16-16 16v32h480V96c0-8.84-7.2-16-16-16zm16 144H48v192c0 8.8 7.16 16 16 16h448c8.8 0 16-7.2 16-16V224z"}})])}),[],!1,null,null,null);e.a=i.exports},1062:function(t,e,n){"use strict";n(996)},1063:function(t,e,n){}
1,1065:function(t,e,n){},1069:function(t,e,n){},1074:function(t,e,n){},1075:function(t,e,n){},1076:function(t,e,n){},1087:function(t,e,n){t.exports=n.p+"arrow-top.24a93bb6a956c41e0f5fde63df92e183.svg"},1092:function(t,e,n){"use strict";var o={name:"CheckoutLayout",props:{errors:{type:[Array,String],default:null}}},i=(n(1099),n(33)),a=Object(i.a)(o,(function render(){var t,e=this,n=e._self._c;return n("div",{class:["checkout-container",{"checkout-container--ota":e.$ota}]},[(null===(t=e.errors)||void 0===t?void 0:t[0])?n("form-error",{staticClass:"mt-3 w-100",attrs:{variant:"danger",errors:e.errors}}):e._e(),e._v(" "),n("div",{staticClass:"d-flex checkout-container-inner"},[n("div",{staticClass:"top-of-main-wrapper"},[e._t("top-of-main-wrapper"),e._v(" "),n("div",{staticClass:"main-wrapper"},[e._t("default")],2)],2),e._v(" "),n("div",{staticClass:"side-wrapper"},[e._t("side")],2)])],1)}),[],!1,null,"aa3a1df8",null);e.a=a.exports},1096:function(t,e,n){"use strict";n(1020)},1099:function(t,e,n){"use strict";n(1021)},1100:function(t,e,n){"use strict";n(1022)},1101:function(t,e,n){"use strict";n(1023)},1102:function(t,e,n){"use strict";n(1024)},1103:function(t,e,n){"use strict";n(1025)},1127:function(t,e,n){"use strict";var o=n(33),i=Object(o.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},this.$listeners),[t("mask",{staticStyle:{"mask-type":"alpha"},attrs:{id:"a",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"}},[t("path",{attrs:{fill:"#D9D9D9",d:"M0 0h20v20H0z"}})]),t("g",{attrs:{mask:"url(#a)"}},[t("path",{attrs:{d:"M11.665 15L10.5 13.792l2.958-2.959H3.332V9.167h10.125l-2.958-2.959L11.665 5l5 5-5 5z",fill:"#005CF0"}})])])}),[],!1,null,null,null).exports,a=n(31),r={name:"ItemDisplay",components:{ArrowRight:i},props:{title:{type:String,required:!0},value:{type:[String,Number],required:!0},isDifference:{type:Boolean,default:!1},oldValue:{type:[String,Number],default:null},isItemDiff:{type:Boolean,default:!1},first:{type:Boolean,default:!1},itemKey:{type:String,default:null}},data:function data(){return{isMobile:Object(a.h)()}}},s=(n(1102),Object(o.a)(r,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex flex-wrap align-items-center mb-3"},[e("div",{staticClass:"font-weight-bold",class:{"col-4":t.isMobile},attrs:{"data-cy":"".concat(t.itemKey,"-title")}},[t._v("\n      "+t._s(t.title)+":\n    ")]),t._v(" "),e("div",{staticClass:"col-8 d-flex flex-wrap align-items-center position-relative"},[t.isDifference?e("span",{staticClass:"mr-2"},[t._v(t._s(t.oldValue))]):t._e(),t._v(" "),t.isDifference&&t.isItemDiff?e("arrow-right",{staticClass:"mr-2"}):t._e(),t._v(" "),!t.isDifference||t.isDifference&&t.isItemDiff?e("span",{class:{"blue-update-font":t.isItemDiff},attrs:{"data-cy":"".concat(t.itemKey,"-value")}},[t._v(t._s(t.value))]):t._e()],1)])}),[],!1,null,null,null));e.a=s.exports},1129:function(t,e,n){"use strict";var o=n(40),i=n(1013),a=n.n(i),r=n(975),s=n(83),c=n(257);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={name:"ReservationDetailPriceBreakdown",components:{PriceLabel:n(988).a},props:{currency:{type:String,default:null},roomData:{type:Object,required:!0}},setup:function setup(){return{getMcpPriceValue:Object(c.b)().getMcpPriceValue}},data:function data(){return{priceWithSymbol:r.c,ArrowBottom:a.a,showCollapse:!1}},computed:_objectSpread({},Object(o.d)({hotelCurrency:"setting/getCurrency",isSupportCompanion:"setting/isSupportCompanion",adultCompanion:"membership/getAdultCompanion",kidCompanion:"membership/getKidCompanion"}),{customId:function customId(){return Math.random().toString()},currencySym:function currencySym(){return s.d[this.currency||this.hotelCurrency.code]}}),methods:{accommodationTax:function accommodationTax(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=null===(t=this.roomData)||void 0===t||null===(e=t.accommodation_tax_details)||void 0===e?void 0:e[n.replace(/-/g,"/")],i=this.getMcpPriceValue(o,"total_tax_amount");return i?Object(r.c)(i):""},formattedTiers:function formattedTiers(t){var e=this,n={number_of_person:0,price:0},o={number_of_person:0,price:0};return t.filter((function(i){return"adult_companion"===i.code?(n.number_of_person=i.number_of_person||0,n.price=e.getMcpPriceValue(i,"price"),!1):"A_companion"!==i.code||(o.number_of_person=i.number_of_person||0,o.price=e.getMcpPriceValue(i,"price"),!t.some((function(t){return"A"===t.code})))})).map((function(t){var i=_objectSpread({},t);if("adult"===t.code||"A"===t.code){var a="adult"===t.code?n:o;i.number_of_person=t.number_of_person+a.number_of_person,i.price=e.getMcpPriceValue(t,"price")+a.price}return i}))}}},u=(n(1101),n(33)),d=Object(u.a)(l,(function render(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"d-flex justify-content-between",attrs:{variant:"primary","data-cy":"price-breakdown"},on:{click:function click(e){t.showCollapse=!t.showCollapse}}},[e("span",{staticClass:"header-text"},[t._v("\n        "+t._s(t.$t("reservationDetail.priceBreakDown"))+"\n      ")]),t._v(" "),e("img",{class:[{"collapsed-icon":t.showCollapse}],attrs:{src:t.ArrowBottom}})]),t._v(" "),e("b-collapse",{staticClass:"mt-2",attrs:{id:t.customId},model:{value:t.showCollapse,callback:function callback(e){t.showCollapse=e},expression:"showCollapse"}},t._l(t.roomData.room_rates,(function(n,o){return e("b-row",{key:"room-rate-item-".concat(o),staticClass:"mb-3"},[e("b-col",{staticClass:"header-text pr-0",attrs:{cols:"4"}},[t._v(" "+t._s(n.date)+": ")]),t._v(" "),e("b-col",{attrs:{cols:"8"}},[e("div",{staticClass:"price-list"},t._l(t.formattedTiers(n.tiers),(function(n,o){return e("b-row",{key:"price-item-".concat(o),staticClass:"price-item",attrs:{"no-gutters":""}},[e("b-col",{attrs:{cols:"5"}},[t._v(" "+t._s(n.name)+" x "+t._s(n.number_of_person)+" ")]),t._v(" "),e("b-col",{staticClass:"text-right",attrs:{cols:"7","data-cy":"price-".concat(o)}},[e("price-label",{attrs:{amount:t.getMcpPriceValue(n,"price"),"amount-without-tax":t.getMcpPriceValue(n,"price_without_tax")}})],1)],1)})),1),t._v(" "),e("b-row",{attrs:{"no-gutters":""}},[e("b-col",{attrs:{cols:"5"}},[t._v("\n              "+t._s(t.$t("reservationDetail.subTotal"))+"\n            ")]),t._v(" "),e("b-col",{staticClass:"text-right",attrs:{cols:"7","data-cy":"subtotal-price"}},[e("price-label",{attrs:{amount:t.getMcpPriceValue(n,"day_total_rate"),"amount-without-tax":t.getMcpPriceValue(n,"day_total_rate_without_tax")}})],1)],1),t._v(" "),t.accommodationTax(n.date)?e("b-row",{staticClass:"mt-1"},[e("b-col",{attrs:{cols:"6"}},[t._v(" "+t._s(t.$t("reservationDetail.accommodationTax"))+" ")]),t._v(" "),e("b-col",{staticClass:"text-right",attrs:{cols:"6","data-cy":"accommodation-tax"}},[t._v("\n              "+t._s(t.accommodationTax(n.date))+"\n            ")])],1):t._e()],1)],1)})),1)],1)}),[],!1,null,"b8ffb11e",null);e.a=d.exports},1132:function(t,e,n){"use strict";var o=n(31),i={name:"SafeArea",data:function data(){var t;return{isIOS11:11===(null===(t=Object(o.e)())||void 0===t?void 0:t.ver
1sion)}}},a=(n(1096),n(33)),r=Object(a.a)(i,(function render(){var t=this._self._c;return t("div",[t("div",{staticClass:"safe-area-agent"}),this._v(" "),this.isIOS11?t("div",{staticClass:"ios11-extra-safe"}):this._e()])}),[],!1,null,"404aad2d",null);e.a=r.exports},1150:function(t,e,n){},1157:function(t,e,n){},1164:function(t,e,n){"use strict";var o=n(979),i=n(258),a={name:"ExpiredTooltip",components:{InfoIcon:o.a},props:{id:{type:String,default:function _default(){return Object(i.v4)()}},content:{type:String,default:null}}},r=(n(1174),n(33)),s=Object(r.a)(a,(function render(){var t=this._self._c;return t("span",[t("info-icon",{staticClass:"info-icon",attrs:{id:this.id},on:{click:function click(t){t.stopPropagation()}}}),this._v(" "),t("b-tooltip",{ref:"tooltip",attrs:{placement:"topright","custom-class":"white-tooltip",triggers:["hover","click"],target:this.id}},[t("div",{staticClass:"text-left"},[this._v(this._s(this.content))])])],1)}),[],!1,null,"70bfef66",null);e.a=s.exports},1166:function(t,e,n){"use strict";var o=n(33),i=Object(o.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:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z",fill:"#A1A2A2"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null);e.a=i.exports},1168:function(t,e,n){"use strict";n(1063)},1169:function(t,e,n){"use strict";n(1065)},1174:function(t,e,n){"use strict";n(1069)},1177:function(t,e,n){"use strict";n(1074)},1178:function(t,e,n){"use strict";n(1075)},1179:function(t,e,n){"use strict";n(1076)},1181:function(t,e,n){"use strict";var o=n(975),i=n(1058),a=n(1129),r=n(20),s=n.n(r),c=n(84),l=n.n(c),u=n(991),d=n(1127),p=n(23),m=n(257),v=n(988),h={name:"ReservationDetailExtraItems",components:{PriceLabel:v.a},mixins:[u.a],props:{currency:{type:String,required:!0},extra_items:{type:Array,default:function _default(){return[]}},gridLg:{type:Number,default:4}},setup:function setup(){return{getMcpPriceValue:Object(m.b)().getMcpPriceValue}},computed:{filteredExtraItems:function filteredExtraItems(){var t,e;return null!==(t=null===(e=this.extra_items)||void 0===e?void 0:e.filter((function(t){return t.quantity>0})))&&void 0!==t?t:[]}},methods:{_get:s.a}},_=(n(1177),n(33)),f=Object(_.a)(h,(function render(){var t=this,e=t._self._c;return e("div",{staticClass:"ph-14px"},[e("div",t._l(t.filteredExtraItems,(function(n){return e("b-row",{key:n.id,staticClass:"extra-block",attrs:{tag:"section"}},[e("b-col",{staticClass:"font-weight-bold mb-2",attrs:{cols:"12"}},[t._v(t._s(n.name))]),t._v(" "),"generic"===n.extra_type?e("b-col",{attrs:{cols:"12"}},t._l(n.delivery_times,(function(o,i){return e("div",{key:"time-".concat(i)},[o.quantity>0?e("b-row",[e("b-col",{staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n                "+t._s(t.$t("reservationConfirmation.extra.dateTime"))+"\n              ")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg}},[e("span",[t._v(t._s(t._get(o,"delivered_at","-")))])]),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n                "+t._s(t.$t("reservationConfirmation.extra.price"))+"\n              ")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg,"data-cy":"extra-item-price"}},[e("price-label",{attrs:{amount:t.getMcpPriceValue(o,"price"),"amount-without-tax":t.getMcpPriceValue(o,"price_without_tax")}})],1),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n                "+t._s(t.$t("reservationConfirmation.extra.items"))+"\n              ")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n                "+t._s(o.quantity)+" "+t._s(n.unit)+"\n              ")]),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{staticClass:"pl-5",attrs:{cols:"12"}},[e("div",{staticClass:"table-space"})])],1):t._e()],1)})),0):e("b-col",{attrs:{cols:"12"}},[e("b-row",[e("b-col",{staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n              "+t._s(t.$t("reservationConfirmation.extra.price"))+"\n            ")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg}},[e("price-label",{attrs:{amount:t.getMcpPriceValue(n,"total_price"),"amount-without-tax":t.getMcpPriceValue(n,"total_price_without_tax")}})],1),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n              "+t._s(t.$t("reservationConfirmation.extra.items"))+"\n            ")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n              "+t._s(n.delivery_times[0].quantity)+" "+t._s(n.unit)+"\n            ")])],1)],1),t._v(" "),e("b-col",{directives:[{name:"show",rawName:"v-show",value:n.answer,expression:"extra.answer"}],staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n          "+t._s(t.$t("reservationConfirmation.extra.question"))+"\n        ")]),t._v(" "),e("b-col",{directives:[{name:"show",rawName:"v-show",value:n.answer,expression:"extra.answer"}],staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n          "+t._s(n.question||"")+"\n        ")]),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{directives:[{name:"show",rawName:"v-show",value:n.answer,expression:"extra.answer"}],staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n          "+t._s(t.$t("reservationConfirmation.extra.answer"))+"\n        ")]),t._v(" "),e("b-col",{directives:[{name:"show",rawName:"v-show",value:n.answer,expression:"extra.answer"}],staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n          "+t._s(n.answer||"")+"\n        ")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:n.notes,expression:"extra.notes"}],staticClass:"w-100"}),t._v(" "),e("b-col",{directives:[{name:"show",rawName:"v-show",value:n.notes,expression:"extra.notes"}],staticClass:"table-title table-nospace pl-5",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n          "+t._s(t.$t("reservationConfirmation.extra.notes"))+"\n        ")]),t._v(" "),e("b-col",{directives:[{name:"show",rawName:"v-show",value:n.notes,expression:"extra.notes"}],staticClass:"table-content table-nospace",attrs:{cols:"6",lg:t.gridLg}},[t._v("\n          "+t._s(n.notes||"")+"\n        ")]),t._v(" "),e("b-col",{directives:[{name:"show",rawName:"v-show",value:n.cancellation_policy_id,expression:"extra.cancellation_policy_id"}],staticClass:"table-content table-nospace pl-5",attrs:{cols:"12"}},[n.cancellation_policy_id?e("a",{on:{click:function click(e){e.preventDefault(),t.openAndLoadCancellationPolicy({title:"".concat(t.$t("guestDetail.extras"),": ").concat(n.name),policyId:n.cancellation_policy_id})}}},[t._v("\n            "+t._s(t.$t("bookingResult.cancellationPolicy"))+"\n          ")]):e("span",[t._v(t._s(t.$t("reservationCancellation.nonRefundable")))])])],1
1)})),1)])}),[],!1,null,"19b02387",null).exports,b=n(40),g=n(83),y=n(9);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C={name:"ReservationDetailDiscount",components:{PriceLabel:v.a},props:{subtotal:{type:String,required:!1,default:""},specialDiscountTotal:{type:Number,default:0},spendingPointValue:{type:Number,default:0},roundingDiscount:{type:Number,default:0},bookingDetails:{type:Object,required:!1,default:function _default(){}},currencySymbol:{type:String,required:!1,default:""}},setup:function setup(t){var e=Object(y.toRefs)(t).bookingDetails,n=Object(m.b)().getMcpPriceValue,i=Object(m.f)(e);return{voucherCouponDiscountAmount:i.voucherCouponDiscountAmount,totalSpecialDiscount:i.totalSpecialDiscount,creansmaerdDiscountRooms:i.creansmaerdDiscountRooms,priceWithSymbol:o.c,getMcpPriceValue:n}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(b.d)({pointName:"setting/getPointName"}),{specialDiscountInfo:function specialDiscountInfo(){var t;return null===(t=this.bookingDetails.rooms.find((function(t){return t.special_discount})))||void 0===t?void 0:t.special_discount},couponName:function couponName(){var t,e=null===(t=this.couponDiscountRooms[0])||void 0===t?void 0:t.discounts.find((function(t){return"coupon"===t.discount_type}));return null==e?void 0:e.name},couponDiscountRooms:function couponDiscountRooms(){return this.bookingDetails.rooms.filter((function(t){return t.coupon_discount_amount}))},appliedVoucherCoupons:function appliedVoucherCoupons(){return(this.bookingDetails.voucher_coupon_promotions||[]).filter((function(t){return!t.error_message}))},promotionDiscountRooms:function promotionDiscountRooms(){return this.bookingDetails.rooms.filter((function(t){return t.promotion_discount_amount>0}))},paymentPromotionsDiscounts:function paymentPromotionsDiscounts(){return this.bookingDetails.rooms.map((function(t){return t.discounts.find((function(t){return"payment"===t.discount_type&&t.discount_amount>0}))})).filter((function(t){return t}))},brrDiscountRooms:function brrDiscountRooms(){return this.bookingDetails.rooms.filter((function(t){return t.brr_discount_amount>0}))},roundingDiscountName:function roundingDiscountName(){var t,e;return null===(t=this.bookingDetails.rooms.find((function(t){var e;return(null===(e=t.rounding_discount)||void 0===e?void 0:e.discount_amount)>0})))||void 0===t||null===(e=t.rounding_discount)||void 0===e?void 0:e.name}}),methods:{voucherAppliedAmount:function voucherAppliedAmount(t){return null!=t.discount_amount?this.getMcpPriceValue(t,"discount_amount",0):this.getMcpPriceValue(t,"effective_amount",0)}}},D=(n(1178),Object(_.a)(C,(function render(){var t,e=this,n=e._self._c;return n("div",{staticClass:"discount-container"},[e.promotionDiscountRooms.length>0?n("div",{staticClass:"font-weight-bold line-height-tall red-font"},[e._v("\n      "+e._s(e.$t("reservationDetail.discounts"))+":\n    ")]):e._e(),e._v(" "),e._l(e.promotionDiscountRooms,(function(t,o){return n("div",{key:"promotion-".concat(o),staticClass:"w-100"},[n("div",{staticClass:"discount-item"},[n("div",{key:"room-promotion-name-".concat(o),attrs:{"data-cy":"promotion-".concat(t.membership_promotion_id,"-plan-").concat(o)}},[e._v("\n          "+e._s(t.membership_promotion_name)+"\n        ")]),e._v(" "),n("div",{key:"room-promotion-discount-amount-".concat(o),staticClass:"discount-amount",attrs:{"data-cy":"promotion-".concat(t.membership_promotion_id,"-amount-").concat(o)}}
1,[n("price-label",{attrs:{minus:"",amount:e.getMcpPriceValue(t,"promotion_discount_amount")}})],1)])])})),e._v(" "),e._l(e.paymentPromotionsDiscounts,(function(t,o){return n("div",{key:"payment-promotion-".concat(o),staticClass:"w-100"},[n("div",{staticClass:"discount-item"},[n("div",{key:"payment-promotion-".concat(o),attrs:{"data-cy":"payment-promotion-block-".concat(o)}},[e._v("\n          "+e._s(e.$t("paymentMethod.paymentPromotion"))+"\n        ")]),e._v(" "),n("div",{key:"room-promotion-discount-amount-".concat(o),staticClass:"discount-amount",attrs:{"data-cy":"payment-promotion-amount-".concat(o)}},[n("price-label",{attrs:{minus:"",amount:e.getMcpPriceValue(t,"discount_amount")}})],1)])])})),e._v(" "),e.brrDiscountRooms.length>0?n("div",{staticClass:"font-weight-bold line-height-tall red-font"},[e._v("\n      "+e._s(e.$t("guestDetail.brrDiscount"))+"\n    ")]):e._e(),e._v(" "),e._l(e.brrDiscountRooms,(function(t,o){return n("div",{key:"brr-".concat(o),staticClass:"pl-3"},[n("div",{staticClass:"discount-item"},[n("div",{key:"room-brr-name-".concat(o),attrs:{"data-cy":"brr-discount-name-".concat(o)}},[e._v("\n          "+e._s(t.room_plan_name)+"\n        ")]),e._v(" "),n("div",{key:"room-brr-discount-amount-".concat(o),staticClass:"discount-amount",attrs:{"data-cy":"brr-discount-amount-".concat(o)}},[n("price-label",{attrs:{minus:"",amount:e.getMcpPriceValue(t,"brr_discount_amount")}})],1)])])})),e._v(" "),e.spendingPointValue>0?n("div",{staticClass:"w-100 discount-item"},[n("div",{attrs:{"data-cy":"spending-point-title"}},[e._v("\n        "+e._s(e.$t("points.naming.discount",{point:"".concat(e.pointName)}))+"\n      ")]),e._v(" "),n("div",{staticClass:"discount-amount",attrs:{"data-cy":"spending-point-value"}},[n("price-label",{attrs:{minus:"",amount:e.spendingPointValue}})],1)]):e._e(),e._v(" "),e.roundingDiscount>0?n("div",{staticClass:"w-100 discount-item"},[n("div",{attrs:{"data-cy":"rounding-discount-title"}},[e._v(e._s(e.roundingDiscountName))]),e._v(" "),n("div",{staticClass:"discount-amount",attrs:{"data-cy":"rounding-discount-value"}},[n("price-label",{attrs:{minus:"",amount:e.roundingDiscount}})],1)]):e._e(),e._v(" "),e.bookingDetails.coupon_promotion||(null===(t=e.bookingDetails.voucher_coupon_promotions)||void 0===t?void 0:t.length)||e.bookingDetails.voucher_coupon_promotion?n("div",{staticClass:"font-weight-bold line-height-tall red-font"},[e._v("\n      "+e._s(e.$t("guestDetail.couponDiscount"))+":\n      "),e.couponName?n("span",{attrs:{id:"summary-coupon-name"}},[e._v("("+e._s(e.couponName)+")")]):e._e()]):e._e(),e._v(" "),e._l(e.couponDiscountRooms,(function(t,o){return n("div",{key:"coupon-".concat(o),staticClass:"pl-3"},[n("div",{staticClass:"discount-item"},[n("div",{key:"room-plan-name-".concat(o),attrs:{"data-cy":"coupon-discount-plan-name-".concat(o)}},[e._v("\n          "+e._s(t.room_plan_name)+"\n        ")]),e._v(" "),n("div",{key:"room-plan-discount-amount-".concat(o),staticClass:"discount-amount",attrs:{"data-cy":"coupon-discount-amount-".concat(o)}},[n("price-label",{attrs:{minus:"",amount:e.getMcpPriceValue(t,"coupon_discount_amount")}})],1)])])})),e._v(" "),e.appliedVoucherCoupons.length?e._l(e.appliedVoucherCoupons,(function(t,o){return n("div",{key:"voucher-coupon-".concat(o),staticClass:"pl-3"},[n("div",{staticClass:"discount-item"},[n("div",{attrs:{"data-cy":"voucher-coupon-name-".concat(o)}},[e._v("\n            "+e._s(t.name)+"\n          ")]),e._v(" "),n("div",{staticClass:"discount-amount",attrs:{"data-cy":"voucher-coupon-discount-amount-".concat(o)}},[n("price-label",{attrs:{minus:"",amount:e.voucherAppliedAmount(t)}})],1)])])})):e.bookingDetails.voucher_coupon_promotion?n("div",{staticClass:"pl-3"},[n("div",{staticClass:"discount-item"},[n("div",{attrs:{"data-cy":"voucher-coupon-name"}},[e._v("\n          "+e._s(e.bookingDetails.voucher_coupon_promotion.name)+"\n        ")]),e._v(" "),n("div",{staticClass:"discount-amount",attrs:{"data-cy":"voucher-coupon-discount-amount"}},[n("price-label",{attrs:{minus:"",amount:e.voucherCouponDiscountAmount}})],1)])]):e._e(),e._v(" "),e.creansmaerdDiscountRooms.length>0?n("div",{staticClass:"font-weight-bold line-height-tall red-font"},[e._v("\n      "+e._s(e.$t("guestDetail.couponDiscount"))+":\n      "),e.creansmaerdDiscountRooms[0].creansmaerdDiscount?n("span",{staticClass:"ml-2"},[e._v("("+e._s(e.creansmaerdDiscountRooms[0].creansmaerdDiscount.name)+")")]):e._e(
1)]):e._e(),e._v(" "),e._l(e.creansmaerdDiscountRooms,(function(t,o){return n("div",{key:"creansmaerd-coupon-".concat(o),staticClass:"pl-3"},[n("div",{staticClass:"discount-item"},[n("div",{key:"room-plan-creansmaerd-".concat(o),attrs:{"data-cy":"creansmaerd-coupon-plan-".concat(o)}},[e._v("\n          "+e._s(t.room_plan_name)+"\n        ")]),e._v(" "),n("div",{key:"room-plan-creansmaerd-discount-amount-".concat(o),staticClass:"discount-amount",attrs:{"data-cy":"creansmaerd-coupon-amount-".concat(o)}},[n("price-label",{attrs:{minus:"",amount:t.creansmaerdDiscount.discountAmount}})],1)])])})),e._v(" "),e.specialDiscountInfo?[n("b-col",{staticClass:"mb-2 font-weight-bold line-height-tall red-font",attrs:{cols:"9"}},[e._v("\n        "+e._s(e.$t("reservationDetail.discount"))+"\n        "),e.specialDiscountInfo.discount_reason?n("span",[e._v("\n          ("+e._s(e.specialDiscountInfo.discount_reason)+")\n        ")]):e._e(),e._v("\n        :\n      ")]),e._v(" "),n("b-col",{staticClass:"line-height-tall text-right red-font",attrs:{cols:"3","data-cy":"special-discount-amount"}},[n("price-label",{attrs:{minus:"",amount:e.totalSpecialDiscount}})],1)]:e._e()],2)}),[],!1,null,"3c7771f8",null).exports),w=n(1060),k=n(1078),O=n(1052),P=n(1e3),S=n(31);function ReservationDetailvue_type_script_lang_js_ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function ReservationDetailvue_type_script_lang_js_defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x={name:"ReservationDetail",components:{PriceLabel:v.a,CheckoutLayoutBox:P.a,RoomFacilities:O.a,MultiImages:k.a,NotificationFromFacility:i.a,ReservationDetailPriceBreakdown:a.a,ItemDisplay:d.a,ReservationDetailExtraItems:f,ReservationDetailDiscount:D,IconBusiness:w.a},mixins:[u.a],props:{bookingDetails:{type:Object,required:!0},isVoucherMode:{type:Boolean,default:!1},showRoomImage:{type:Boolean,default:!1},hideNotification:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},currentReservation:{type:Object,default:function _default(){return{}}},cancelled:Boolean,brandNotifications:{type:Array,default:function _default(){return[]}}},setup:function setup(t){var e=Object(y.toRefs)(t).bookingDetails,n=Object(m.f)(e),i=n.spendingPointValue,a=n.originalPrice,r=n.originalPriceWithTax,s=n.accommodationTax,c=n.tax,l=n.totalPrice,u=n.totalSpecialDiscount,d=n.discountedPrice,p=n.couponDiscountAmount,v=n.voucherCouponDiscountAmount,h=n.depositAmount,_=n.remainAmount,f=n.roundingDiscountTotal,b=Object(m.b)().getMcpPriceValue;return{spendingPointValue:i,originalPrice:a,originalPriceWithTax:r,accommodationTax:s,tax:c,totalPrice:l,totalSpecialDiscount:u,discountedPrice:d,couponDiscountAmount:p,voucherCouponDiscountAmount:v,depositAmount:h,remainAmount:_,roundingDiscountTotal:f,priceWithSymbol:o.c,getMcpPriceValue:b}},data:function data(){return{isMobile:Object(S.h)(),paymentMethod:p.w,paymentVendor:p.x,guestNameHiraganaLabel:"宿泊者名 (ひらがな)"}},computed:function ReservationDetailvue_type_script_lang_js_objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ReservationDetailvue_type_script_lang_js_ownKeys(n,!0).forEach((function(e){ReservationDetailvue_type_script_lang_js_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ReservationDetailvue_type_script_lang_js_ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(b.d)({showPricesTaxIncluded:"setting/showPricesTaxIncluded",facilityNotifications:"booking/getFacilityNotifications",isLotteryBooking:"booking/isLotteryBooking",isSignedIn:"membership/isSignedIn",isUpdateMode:"booking/isUpdateMode",enableKanjiNames:"setting/kanjiNameForGuests",defaultCurrency:"setting/getCurrency",pointName:"setting/getPointName",selectedCurrency:"mcp/selectedCurrency",hotelCurrency:"setting/getCurrency",isEnglishNameRequired:"setting/isEnglishNameRequired",hotelLocale:"setting/getHotelLocale"}),{showGuestNameHiragana:function showGuestNameHiragana(){return"ja"===this.hotelLocale&&"ja"===this.$i18n.locale&&this.enableKanjiNames&&!this.isEnglishNameRequired},isCancelSomeStays:function isCancelSomeStays(){return["cancelStays","reduceNights"].includes(this.$route.query.update_action)},cancellationFee:function cancellationFee(){return this.isLotteryBooking?0:this.getMcpPriceValue(this.bookingDetails.cancellation,"fee",0)},title:function title(){return this.isVoucherMode?this.$t("voucher.voucherDetails"):this.$t("reservationDetail.roomDetails")},facilityName:function facilityName(){return s()(this.bookingDetails,"hotel.name")},maxGuests:function maxGuests(){var t=this.bookingDetails.rooms.reduce((function(t,e){return t+e.max_people}),0);return this.$tc("reservationDetail.guest",t)},isCheckInDiff:function isCheckInDiff(){return!!this.currentReservation.checkin_date&&this.bookingDetails.checkin_date!==this.currentReservation.checkin_date},isCheckOutDiff:function isCheckOutDiff(){return!!this.currentReservation.checkin_date&&this.bookingDetails.checkout_date!==this.currentReservation.checkout_date},isNightDiff:function isNightDiff(){return!!this.currentReservation.checkin_date&&this.bookingDetails.nights!==this.currentReservation.nights},isRoomCountDiff:function isRoomCountDiff(){var t,e;return!!this.currentReservation.checkin_date&&this.bookingDetails.rooms.length!==(null!==(t=null===(e=this.currentReservation)||void 0===e?void 0:e.rooms)&&void 0!==t?t:[]).length},isAdultsDiff:function isAdultsDiff(){return!!this.currentReservation.checkin_date&&Number(this.bookingDetails.adults)!==Number(this.currentReservation.adults)},isChildrenDiff:function isChildrenDiff(){return!!this.currentReservation.checkin_date&&Number(this.childrenCount)!==Number(this.oldChildrenCount)},isDifference:function isDifference(){return!!this.currentReservation.checkin_date&&(this.isCheckInDiff||this.isCheckOutDiff||this.isNightDiff||this.isRoomCountDiff||this.isAdultsDiff||this.isChildrenDiff)},currentReservationPrice:function currentReservationPrice(){return this.getMcpPriceValue(this.bookingDetails.original_reservation,"total_price")},currentOriginalOldPriceText:function currentOriginalOldPriceText(){return"(".concat(Object(o.c)(this.bookingDetails.original_reservation.total_price,"JPY"),")")},isPrepaid:function isPrepaid(){return this.bookingDetails.payment_method===p.w.PrePaid&&this.bookingDetails.payment_vendor},isTWD:function isTWD(){return"TWD"===this.bookingDetails.currency},isCreditCard:function isCreditCard(){return"credit_card"===this.bookingDetails.payment_method},isOnSite:function isOnSite(){return"on_site"===this.bookingDetails.payment_method},isCancelled:function isCancelled(){return this.cancelled||"cancelled"===this.bookingDetails.status},isBooked:function isBooked(){return this.bookingDetails.status&&this.bookingDetails.payment_method},needDeposit:function needDeposit(){var t,e;return(null===(t=this.bookingDetails)||void 0===t?void 0:t.charge_percent)&&100!==Number(null===(e=this.bookingDetails)||void 0===e?void 0:e.charge_percent)}
1,gridLg:function gridLg(){return this.isDifference?4:6},childrenCount:function childrenCount(){var t;return Number(((null===(t=this.bookingDetails)||void 0===t?void 0:t.rooms)||[]).reduce((function(t,e){var n;return Number(t)+Number(null!==(n=null==e?void 0:e.children)&&void 0!==n?n:0)}),0))},oldChildrenCount:function oldChildrenCount(){var t,e;return null===(t=this.currentReservation)||void 0===t||null===(e=t.rooms)||void 0===e?void 0:e.reduce((function(t,e){var n;return t+Number(null!==(n=null==e?void 0:e.children)&&void 0!==n?n:0)}),0)},roundingDiscountName:function roundingDiscountName(){var t,e;return null===(t=this.bookingDetails.rooms.find((function(t){var e;return(null===(e=t.rounding_discount)||void 0===e?void 0:e.discount_amount)>0})))||void 0===t||null===(e=t.rounding_discount)||void 0===e?void 0:e.name},currencySymbol:function currencySymbol(){var t;return g.d[this.bookingDetails.currency]||(null===(t=this.defaultCurrency)||void 0===t?void 0:t.symbol)},subtotal:function subtotal(){return this.priceWithSymbol(this.discountedPrice+this.couponDiscountAmount+this.voucherCouponDiscountAmount+this.totalSpecialDiscount)}}),methods:{guestText:function guestText(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o="";return-1!==n&&(o="".concat(this.$tc("searchBar.room",n),", ")),t>0&&(o="".concat(o).concat(this.$tc("searchBar.adult",t))),e>0&&(o="".concat(o,", ").concat(this.$tc("searchBar.child",e))),o},getGuestName:function getGuestName(t){var e=function getTrimmed(e){return(s()(t,e,"")||"").trim()},n=e("first_name_en"),o=e("last_name_en"),i=(s()(t,"name","")||"").trim(),a=(s()(t,"first_name","")||"").trim(),r=(s()(t,"last_name","")||"").trim();return n&&o&&"ja"===this.bookingDetails.locale?"".concat(o," ").concat(n):!this.isEnglishNameRequired&&this.getGuestNameKana(t)?i:"en"===this.$i18n.locale?"".concat(a," ").concat(r):"".concat(r," ").concat(a)},showGuestKanjiName:function showGuestKanjiName(t){if(!this.isEnglishNameRequired)return!1;var e=this.getGuestNameKanji(t);return!!e&&this.getGuestName(t)!==e},getGuestNameKanji:function getGuestNameKanji(t){var e=(s()(t,"first_name","")||"").trim(),n=(s()(t,"last_name","")||"").trim();return l()(e)||l()(n)?"":"".concat(n," ").concat(e)},getGuestNameKana:function getGuestNameKana(t){var e=(s()(t,"first_name_kana","")||"").trim();return[(s()(t,"last_name_kana","")||"").trim(),e].filter(Boolean).join(" ")},calculateRoomRate:function calculateRoomRate(t){var e,n=this;return null===(e=t.room_rates)||void 0===e?void 0:e.reduce((function(t,e){return t+n.getMcpPriceValue(e,"day_total_rate",0)}),0)},calculateRoomRateWithoutTax:function calculateRoomRateWithoutTax(t){var e,n=this;return null===(e=t.room_rates)||void 0===e?void 0:e.reduce((function(t,e){return t+n.getMcpPriceValue(e,"day_total_rate_without_tax",0)}),0)},showGalleryMode:function showGalleryMode(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.$store.dispatch("search/setGalleryPhotos",t),this.$store.dispatch("search/setGalleryIndex",e),this.$bvModal.show("gallery-modal")},_get:s.a}},R=(n(1179),Object(_.a)(x,(function render(){var t=this,e=t._self._c;return t.bookingDetails.rooms?e("div",[e("b-row",{staticClass:"details"},[e("b-col",{attrs:{cols:"12"}},[e("checkout-layout-box",{attrs:{title:t.title}},[e("div",{class:{"ph-16px":t.isMobile}},[t.isDifference&&t.isCancelSomeStays&&(t.isCheckInDiff||t.isCheckOutDiff)?e("b-alert",{staticClass:"alert-subtle mb-12px",attrs:{show:"",variant:"info"}},[e("div",[e("div",{staticClass:"mb-1"},[t._v(t._s(t.$t("reservationAction.stayUpdated")))]),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.$t("reservationAction.stayUpdatedByXNights",{x:"<b>".concat(t.bookingDetails.nights,"</b>")}))}})])]):t._e(),t._v(" "),t.isVoucherMode?t._e():[e("item-display",{attrs:{title:t.$t("reservationDetail.checkIn"),value:t.bookingDetails.checkin_date,"old-value":t.currentReservation.checkin_date,"is-difference":t.isDifference,"is-item-diff":t.isCheckInDiff,"item-key":"check-in",first:""}}),t._v(" "),e("item-display",{attrs:{title:t.$t("reservationDetail.checkOut"),value:t.bookingDetails.checkout_date,"old-value":t.currentReservation.checkout_date,"is-difference":t.isDifference,"is-item-diff":t.isCheckOutDiff,"item-key":"check-out"}})],t._v(" "),e("item-display",{attrs:{title:t.$t("reservationDetail.numberOfNights"),value:t.bookingDetails.nights>0?t.$tc("reservationDetail.night",t.bookingDetails.nights):t.$t("reservationDetail.dayUse"),"old-value":t.currentReservation.nights>0?t.$tc("reservationDetail.night",t.currentReservation.nights):t.$t("reservationDetail.dayUse"),"is-difference":t.isDifference,"is-item-diff":t.isNightDiff,"item-key":"number-of-nights"}}),t._v(" "),e("item-display",{attrs:{title:t.$t("searchBar.rooms"),value:t.$tc("searchBar.room",t.bookingDetails.rooms.length),"old-value":t.$tc("searchBar.room",t.currentReservation.rooms?t.currentReservation.rooms.length:0),"is-difference":t.isDifference,"is-item-diff":t.isRoomCountDiff,"item-key":"number-of-rooms"}}),t._v(" "),e("item-display",{attrs:{title:t.$t("searchBar.adults"),value:t.$tc("reservationDetail.adult",t.bookingDetails.adults),"old-value":t.$tc("reservationDetail.adult",t.currentReservation.adults),"is-difference":t.isDifference,"is-item-diff":t.isAdultsDiff,"item-key":"number-of-adults"}}),t._v(" "),e("item-display",{directives:[{name:"show",rawName:"v-show",value:0!==t.childrenCount&&0!==t.oldChildrenCount,expression:"childrenCount !== 0 && oldChildrenCount !== 0"}],attrs:{title:t.$t("searchBar.children"),value:t.$tc("reservationDetail.child",t.childrenCount),"old-value":t.$tc("reservationDetail.child",t.oldChildrenCount),"is-difference":t.isDifference,"is-item-diff":t.isChildrenDiff,"item-key":"number-of-children"}})],2),t._v(" "),t.hideNotification?t._e():e("notification-from-facility",{staticClass:"mt-20px mobile-margin",attrs:{"brand-notifications":t.brandNotifications}}),t._v(" "),t.showRoomImage?e("div",{staticClass:"font-weight-bold d-flex align-items-center mb-12px mt-30px text-lg mobile-margin",attrs:{cols:"12"}},[e("icon-business",{staticClass:"icon-business"}),t._v(t._s(t.facilityName)+"\n          ")],1):e("div",{staticClass:"mt-20px"}),t._v(" "),e("div",{staticClass:"mobile-margin"},t._l(t.bookingDetails.rooms,(function(n,o){var i;return e("div",{key:o,staticClass:"room-detail d-flex",class:{"flex-wrap":!t.wide}},[t.showRoomImage?[e("div",{class:{"fixed-size-image":t.wide,"w-100":!t.wide}},[n.room_pictures&&n.room_pictures.length>1?e("multi-images",{attrs:{photos:n.room_pictures,"room-count":n.room_count,clickable:"","number-of-footer-image":0},on:{galleryMode:function galleryMode(e){return t.showGalleryMode(n.room_pictures,e)}}}):t._e(),t._v(" "),e("room-facilities",{staticClass:"mt-3",attrs:{room:n,plain:""}}),t._v(" "),t.wide?t._e():e("div",{staticClass:"room-detail-sep-line"})],1)]:t._e(),t._v(" "),e("div",{},[e("b-row",{staticClass:"lh-24px"},[e("b-col",{staticClass:"room-title font-weight-bold",attrs:{cols:12}},[t._v("\n                    "+t._s(t.$t("reservationDetail.roomNb",[o+1]))+"\n                  ")]),t._v(" "),n.guest?e("b-col",{staticClass:"font-weight-bold",attrs:{cols:12}},[t._v("\n                    "+t._s(t.$t("guestDetail.guestName"))+":\n                  ")]):t._e(),t._v(" "),n.guest?e("b-col",{staticClass:"mb-3",attrs:{cols:12,"data-cy":"guestName"+o}},[t._v("\n                    "+t._s(t.getGuestName(n.guest))+"\n                  ")]):t._e(),t._v(" "),n.guest&&t.showGuestKanjiName(n.guest)?[e("b-col",{staticClass:"font-weight-bold",attrs:{cols:12}},[t._v("\n                      "+t._s(t.$t("guestDetail.guestNameKanji"))+":\n                    ")]),t._v(" "),e("b-col",{staticClass:"mb-3",attrs:{cols:12,"data-cy":"guestNameKanji"+o}},[t._v("\n                      "+t._s(t.getGuestNameKanji(n.guest))+"\n                    ")])]:t._e(),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),n.guest&&t.showGuestNameHiragana?[e("b-col",{staticClass:"font-weight-bold",attrs:{cols:12}},[t._v(" "+t._s(t.guestNameHiraganaLabel)+": ")]),t._v(" "),e("b-col",{staticClass:"mb-3",attrs:{cols:12,"data-cy":"guestNameHiragana"+o}},[t._v("\n                      "+t._s(t.getGuestNameKana(n.guest)||"-")+"\n                    ")]),t._v(" "),e("div",{staticClass:"w-100"})]:t._e(),t._v(" "),e("b-col",{staticClass:"font-weight-bold",attrs:{cols:12}},[t._v(" "+t._s(t.$t("searchBar.guests"))+": ")]),t._v(" "),e("b-col",{staticClass:"mb-3",attrs:{cols:12,"data-cy":"room-".concat(o+1,"-guests-value")}},[t._v("\n                    "+t._s(t.guestText(n.adults,n.children))+"\n                  ")]),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{staticClass:"font-weight-bold",attrs:{cols:12}},[t._v("\n                    "+t._s(t.$t("reservationDetail.roomType"))+":\n                  ")]),t._v(" "),e("b-col",{staticClass:"mb-3",attrs:{cols:12,"data-cy":"room-".concat(o+1,"-type-name-value")}},[t._v("\n                    "+t._s(n.room_type_name)+"\n                  ")]),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{staticClass:"font-weight-bold",attrs:{cols:12}},[t._v("\n                    "+t._s(t.$t("reservationDetail.roomPlan"))+":\n                  ")]),t._v(" "),e("b-col",{staticClass:"mb-3",attrs:{cols:12,"data-cy":"room-".concat(o+1,"-plan-name-value")}},[t._v("\n                    "+t._s(n.room_plan_name)+"\n                  ")]),t._v(" "),e("div",{staticClass:"w-100"}),t._v(" "),e("b-col",{staticClass:"font-weight-bold",attrs:{cols:12}},[t._v(t._s(t.$t("reservationDetail.roomRate"))+":")]),t._v(" "),e("b-col",{staticClass:"mb-3",attrs:{cols:12,"data-cy":"room-".concat(o+1,"-rate-value")}},[e("price-label",{attrs:{amount:t.calculateRoomRate(n),"amount-without-tax":t.calculateRoomRateWithoutTax(n)}}
1)],1)],2),t._v(" "),e("b-row",[e("b-col",{staticClass:"table-title",attrs:{cols:"12"}},[e("reservation-detail-price-breakdown",{attrs:{currency:t.bookingDetails.currency,"room-data":n}})],1),t._v(" "),e("b-col",{staticClass:"table-content",attrs:{cols:"12"}},[n.cancellation_policy_id?e("a",{attrs:{target:"_blank",rel:"noopener noreferrer","data-cy":"room-".concat(o+1,"-cancellation-policy-").concat(n.cancellation_policy_id)},on:{click:function click(e){var o;return e.preventDefault(),t.openAndLoadCancellationPolicy({title:n.room_plan_name,policyId:n.cancellation_policy_id,hotelId:null===(o=t.bookingDetails.hotel)||void 0===o?void 0:o.id})}}},[t._v("\n                      "+t._s((null==n||null===(i=n.cancellation)||void 0===i?void 0:i.message)||t.$t("reservationCancellation.cancellationPolicy"))+"\n                    ")]):e("span",[t._v("\n                      "+t._s(t.$t("reservationCancellation.nonRefundable"))+"\n                    ")])])],1)],1)],2)})),0)],1)],1),t._v(" "),t.bookingDetails.extra_items&&t.bookingDetails.extra_items.length>0?e("b-col",{staticClass:"mt-30px",attrs:{cols:"12"}},[e("checkout-layout-box",{attrs:{title:t.$t("reservationConfirmation.extra.extrasPrice")}},[e("reservation-detail-extra-items",{attrs:{extra_items:t.bookingDetails.extra_items,"grid-lg":t.gridLg,"booking-details":t.bookingDetails,currency:t.bookingDetails.currency||t.defaultCurrency.code}})],1)],1):t._e(),t._v(" "),e("b-col",{staticClass:"mt-30px",attrs:{cols:"12"}},[e("checkout-layout-box",{attrs:{title:t.$t("reservationDetail.priceBreakDown"),"content-class":{"ph-16px":t.isMobile}}},[e("b-row",[e("b-col",{staticClass:"table-title table-nospace",attrs:{cols:"7"}},[t._v("\n              "+t._s(t.showPricesTaxIncluded?t.$t("guestDetail.totalAmount"):t.$t("guestDetail.totalWithoutTax"))+"\n              "),t.showPricesTaxIncluded?e("small",[t._v(t._s(t.$t("guestDetail.taxIncluded")))]):t._e(),t._v("\n              :\n            ")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace text-right",attrs:{"data-cy":"total-amount-with-tax",cols:"5"}},[e("price-label",{attrs:{"data-cy":"original-price",amount:t.originalPriceWithTax,"amount-without-tax":t.originalPrice}})],1),t._v(" "),t.showPricesTaxIncluded?t._e():[e("b-col",{staticClass:"table-title table-nospace",attrs:{cols:"8"}},[t._v("\n                "+t._s(t.$t("reservationDetail.tax"))+":\n              ")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace text-right",attrs:{"data-cy":"total-amount-with-tax",cols:"4"}},[e("price-label",{attrs:{"data-cy":"tax-amount",amount:t.originalPriceWithTax-t.originalPrice}})],1)],t._v(" "),e("b-col",{attrs:{cols:"12"}},[e("reservation-detail-discount",{staticClass:"w-100 mb-3",attrs:{subtotal:t.subtotal,"booking-details":t.bookingDetails,"currency-symbol":t.currencySymbol,"special-discount-total":t.totalSpecialDiscount,"spending-point-value":t.spendingPointValue,"rounding-discount":t.roundingDiscountTotal}})],1),t._v(" "),t.accommodationTax>0?[e("b-col",{staticClass:"table-title table-nospace",attrs:{cols:"7","data-cy":"accommodation-tax-title"}},[t._v(t._s(t.$t("reservationDetail.accommodationTax"))+":")]),t._v(" "),e("b-col",{staticClass:"table-content table-nospace text-right",attrs:{cols:"5","data-cy":"accommodation-tax-value"}},[e("price-label",{attrs:{amount:t.accommodationTax}})],1)]:t._e(),t._v(" "),e("div",{staticClass:"divider w-100"}),t._v(" "),t.isNightDiff&&t.isCancelSomeStays?[e("b-col",{staticClass:"mt-12px",attrs:{cols:"12"}},[e("b-alert",{staticClass:"alert-subtle",attrs:{show:"",variant:"info"}},[t._v("\n                  "+t._s(t.$t("reservationAction.priceUpdated"))+"\n                ")])],1)]:t._e(),t._v(" "),t.isCancelled?t._e():[e("b-col",{staticClass:"font-weight-bold total-price pt-2",attrs:{cols:"6","data-cy":"total-payment-amount-title"}},[t._v("\n                "+t._s(t.$t("reservationDetail.originalPrice"))+":\n              ")]),t._v(" "),e("b-col",{staticClass:"text-right pt-2",attrs:{cols:"6"}},[e("strong",{staticClass:"total-price-amount",attrs:{"data-cy":"total-payment-amount-value"}},[e("price-label",{attrs:{"data-cy":"total-payment-amount",amount:t.totalPrice}})],1),t._v(" "),e("p",{staticClass:"text-sm mb-0"},[t._v(t._s(t.$t("base.taxAndServiceFeeIncluded")))])]),t._v(" "),t.needDeposit?[e("b-col",{staticClass:"table-space-before-terms",attrs:{cols:"12"}},[t._v(" ")])]:t._e(),t._v(" "),t.isBooked?[e("b-col",{staticClass:"pt-2",attrs:{cols:"6"}},[t._v(t._s(t.$t("paymentMethod.type"))+":")]),t._v(" "),t.isTWD&&t.isCreditCard?[t.needDeposit?e("b-col",{staticClass:"text-right py-2",attrs:{cols:"6"}},[t._v("\n                    "+t._s(t.$t("paymentMethod.twd_credit_card_deposit"))+"\n                  ")]):e("b-col",{staticClass:"text-right py-2",attrs:{cols:"6"}},[t._v("\n                    "+t._s(t.$t("paymentMethod.twd_credit_card"))+"\n                  ")])]:t.isTWD&&t.isOnSite?e("b-col",{staticClass:"text-right py-2",attrs:{cols:"6"}},[t._v("\n                  "+t._s(t.$t("paymentMethod.bank_transfer"))+"\n                ")]):t.isPrepaid?e("b-col",{staticClass:"text-right py-2",attrs:{cols:"6"}},[t._v("\n                  "+t._s(t.$t("paymentMethod.credit_card"))+"\n                ")]):e("b-col",{staticClass:"text-right py-2",attrs:{cols:"6"}},[t._v("\n                  "+t._s(t.$t("paymentMethod.".concat(t.bookingDetails.payment_method)))+"\n                ")]),t._v(" "),t.needDeposit?[e("b-col",{staticClass:"confirm-deposit-amount mb-1",attrs:{cols:"7"}},[t._v("\n                    "+t._s(t.$t("reservationDetail.depositAmount",[t.bookingDetails.charge_percent]))+":\n                  ")]),t._v(" "),e("b-col",{staticClass:"text-right confirm-deposit-amount mb-1",attrs:{cols:"5","data-cy":"deposit-amount"}},[e("price-label",{attrs:{amount:t.depositAmount}})],1),t._v(" "),e("b-col",{staticClass:"confirm-deposit-amount",attrs:{cols:"7"}},[t._v("\n                    "+t._s(t.$t("reservationDetail.remainAmount"))+":\n                  ")]),t._v(" "),e("b-col",{staticClass:"text-right confirm-deposit-amount",attrs:{cols:"5","data-cy":"remain-amount"}},[e("price-label",{attrs:{amount:t.remainAmount}})],1)]:t._e()]:t._e(),t._v(" "),!t.isBooked&&t.needDeposit?[e("b-col",{staticClass:"deposit-amount mb-1",attrs:{cols:"7"}},[t._v("\n                  "+t._s(t.$t("reservationDetail.depositAmount",[t.bookingDetails.charge_percent]))+":\n                ")]),t._v(" "),e("b-col",{staticClass:"text-right deposit-amount mb-1",attrs:{cols:"5","data-cy":"remain-amount-percent-amount"}},[e("price-label",{attrs:{amount:t.depositAmount}})],1),t._v(" "),e("b-col",{attrs:{cols:"12"}},[e("span",{staticClass:"deposit-term"},[t._v("\n                    "+t._s(t.$t("reservationDetail.depositNecessary",[t.bookingDetails.charge_percent]))+"\n                  ")])])]:t._e()],t._v(" "),t.isCancelled?[e("b-col",{staticClass:"table-title table-nospace",attrs:{cols:"6"}},[t._v("\n                "+t._s(t.$t("reservationCancellation.cancellationFee"))+":\n              ")]),t._v(" "),e("b-col",{staticClass:"table-title table-nospace text-right",attrs:{cols:"6","data-cy":"cancellation-fee-value"}},[e("price-label",{attrs:{amount:t.cancellationFee}})],1)]:t._e(),t._v(" "),t.isUpdateMode&&t.currentReservation.checkin_date?[e("b-col",{staticClass:"pt-3",attrs:{cols:"7"}},[t._v(t._s(t.$t("guestDetail.originalPaymentAmount"))+":")]),t._v(" "),e("b-col",{staticClass:"pt-3 text-right",attrs:{cols:"5"}},[e("price-label",{attrs:{"data-cy":"original-payment-amount",amount:t.currentReservationPrice}}),t._v(" "),t.hotelCurrency.code!==t.selectedCurrency?e("p",{staticClass:"text-xs",attrs:{"data-cy":"original-old-payment-amount"}},[t._v("\n                  "+t._s(t.currentOriginalOldPriceText)+"\n                ")]):t._e()],1),t._v(" "),e("b-col",{staticClass:"pt-3",attrs:{cols:"7"}},[t._v(t._s(t.$t("guestDetail.priceDiff"))+":")]),t._v(" "),e("b-col",{staticClass:"pt-3 pb-3 text-right",attrs:{cols:"5"}},[e("price-label",{attrs:{"data-cy":"price-diff",amount:t.totalPrice-t.currentReservationPrice}})],1),t._v(" "),t.currentReservation.payment_method===t.paymentMethod.CreditCard?e("b-col",{staticClass:"pb-4 text-sm",attrs:{cols:"12"}},[t._v("\n                "+t._s(t.$t("guestDetail.creditCardWarning"))+"\n              ")]):t._e()]:t._e()],2)],1)],1)],1)],1):t._e()}),[],!1,null,"d4b00436",null));e.a=R.exports},1212:function(t,e,n){"use strict";var o=n(33),i=Object(o.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:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null);e.a=i.exports},1213:function(t,e,n){"use strict";var o=n(33),i=Object(o.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:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null);e.a=i.exports},1214:function(t,e,n){"use strict";var o=n(33),i=Object(o.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24"}},this.$listeners),[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"}})])}),[],!1,null,null,null);e.a=i.exports},1275:function(t,e,n){"use strict";n(1150)},1285:function(t,e,n){"use strict";n(1157)},1309:function(t,e,n){},1314:function(t,e,n){"use strict";var o=n(854),i=n(999),a={name:"MinLengthOfStayWarning",props:{rooms:{type:Array,default:function _default(){return[]}},nights:{type:Number,default:null}},computed:{removedDiscounts:function removedDiscounts(){var t=this;if(null===this.nights)return[];var e=this.rooms.flatMap((function(t){return t.discounts||[]})).filter((function(e){return e.minimum_nights&&t.nights<e.minimum_nights})),n=new Set;return e.filter((function(t){return!n.has(t.name)&&(n.add(t.name),!0)}))},isMinimumLengthOfStayPromotionRemoved:function isMinimumLengthOfStayPromotionRemoved(){return this.removedDiscounts.length>0}}},r=(n(1275),n(33)),s=Object(r.a)(a,(function render(){var t=this,e=t._self._c;return t.isMinimumLengthOfStayPromotionRemoved?e("b-alert",{staticClass:"alert-subtle",attrs:{show:"",variant:"warning"}},[e("div",[e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.$t("reservationAction.minLosPromotionsRemoved")))]),t._v(" "),t._l(t.removedDiscounts,(function(n){return e("div",{key:n.name,staticClass:"promotion-tags mt-1"},[e("span",{staticClass:"promotion-tag"},[t._v("\n          "+t._s(n.name)+"\n        ")])])})),t._v(" "),e("div",{staticClass:"mt-1"},[t._v(t._s(t.$t("reservationAction.minLosPromotionRemovedWarningDesc")))])],2)]):t._e()}),[],!1,null,"6184e9f6",null).exports,c=n(1166),l=n(40),u=n(156),d=n(123),p=n(49),m=n(31),v=n(995);n(38);function _slicedToArray(t,e){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,e){var n=[],o=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(o=(r=s.next()).done)&&(n.push(r.value),!e||n.length!==e);o=!0);}catch(c){i=!0,a=c}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance")}()}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={name:"CancelStaysBlock",components:{DatePicker:o.DatePicker,CalendarIcon:c.a,FormError:u.a,CalendarModal:i.a,InfoIcon:v.a,MinLengthOfStayWarning:s},props:{reservationDetails:{type:Object,required:!0},updateSetting:{type:Object,required:!0}},data:function data(){var t,e,n,o;return{date:"",disabledCTACTDDate:[],datePickerConfig:{minDate:null!==(t=null===(e=this.reservationDetails)||void 0===e?void 0:e.checkin_date)&&void 0!==t?t:null,maxDate:null!==(n=null===(o=this.reservationDetails)||void 0===o?void 0:o.checkout_date)&&void 0!==n?n:null,dateFormat:"Y/m/d",mode:"range",locale:_objectSpread({},Object(d.a)(this.$i18n.locale),{rangeSeparator:" - "})},errors:null,isMobile:Object(m.h)()}},computed:_objectSpread({},Object(l.d)({hotelCode:"setting/getHotelCode",spinnerVariant:"setting/getSpinnerVariant"}),{CTADates:function CTADates(){var t,e;return null===(t=this.updateSetting)||void 0===t||null===(e=t.restrictions)||void 0===e?void 0:e.filter((function(t){return null==t?void 0:t.closed_to_arrival})).map((function(t){return t.date}))},CTDDates:function CTDDates(){var t,e;return null===(t=this.updateSetting)||void 0===t||null===(e=t.restrictions)||void 0===e?void 0:e.filter((function(t){return null==t?void 0:t.closed_to_departure})).map((function(t){return t.date}))},minStay:function minStay(){var t,e;return Math.max.apply(Math,_toConsumableArray(null===(t=this.reservationDetails)||void 0===t||null===(e=t.rooms)||void 0===e?void 0:e.map((function(t){return t.min_stay}))))},selectedNights:function selectedNights(){return this.date?p.g.apply(void 0,_toConsumableArray(this.date.split(this.datePickerConfig.locale.rangeSeparator))):null},enoughStays:function enoughStays(){return this.date?this.selectedNights>=this.minStay:null}}),watch:{disabledCTACTDDate:function disabledCTACTDDate(t){this.rearrangeDisabledDate()}},created:function created(){this.disabledCTACTDDate=this.$clone(this.CTADates)},methods:{onClose:function onClose(t,e,n){t.forEach((function(t){var e=new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),n=document.querySelector('[aria-label="'.concat(e,'"]'));n&&n.classList.contains("flatpickr-disabled-middle")&&n.classList.add("override-enabled")}))},rearrangeDisabledDate:function rearrangeDisabledDate(){var t=this;document.querySelectorAll(".flatpickr-day").forEach((function(e){var n=e.dateObj,o="".concat(n.getFullYear(),"/").concat(String(n.getMonth()+1).padStart(2,"0"),"/").concat(String(n.getDate()).padStart(2,"0"));t.disabledCTACTDDate.includes(o)?e.classList.add("flatpickr-disabled-middle"):e.classList.remove("flatpickr-disabled-middle")}))},onDayCreate:function onDayCreate(t,e,n,o){var i=n.formatDate(o.dateObj,"Y/m/d");this.CTADates.includes(i)?o.classList.add("flatpickr-disabled-middle"):o.classList.remove("flatpickr-disabled-middle")},changingDate:function changingDate(t){var e;if(1===t.length){var n=function formatDate(t){return"".concat(t.getFullYear(),"/").concat(String(t.getMonth()+1).padStart(2,"0"),"/").concat(String(t.getDate()).padStart(2,"0"))},o=new Date(t[0]),i=(null===(e=this.updateSetting)||void 0===e?void 0:e.restrictions.map((function(t){return t.date})))||[];this.disabledCTACTDDate=this.$clone(this.CTADates);var a=_toConsumableArray(this.disabledCTACTDDate).filter((function(t){return new Date(t)<=o})),r=!0,s=!1,c=void 0;try{for(var l,u=this.CTDDates[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var d,p=l.value,m=new Date(p);if(m>o&&a.push(n(m)),m.getTime()===o.getTime())(d=a).push.apply(d,_toConsumableArray(i.filter((function(t){return new Date(t)<o}))))}}catch(v){s=!0,c=v}finally{try{r||null==u.return||u.return()}finally{if(s)throw c}}
1a=_toConsumableArray(new Set(a)),this.disabledCTACTDDate=a}},updateStays:function updateStays(){var t=_slicedToArray(this.date.split(this.datePickerConfig.locale.rangeSeparator),2),e=t[0],n=t[1];this.$emit("submit",{checkin:e,checkout:n})},onChange:function onChange(t){this.date=t}}},_=Object(r.a)(h,(function render(){var t=this,e=t._self._c;return e("b-card",{attrs:{"no-body":""}},[e("b-card-header",[e("strong",[e("calendar-icon",{staticClass:"mr-2"}),t._v(t._s(t.$t("reservationAction.reductionOfNights")))],1)]),t._v(" "),e("b-card-text",{staticClass:"card-blockquote p-3"},[e("b-form",{attrs:{id:"reduction-of-nights-form","data-cy":"reduction-of-nights-form"},on:{submit:function submit(e){return e.preventDefault(),t.updateStays.apply(null,arguments)}}},[e("p",{staticClass:"text-sm"},[t._v(t._s(t.$t("voucher.updateItineraryDesc")))]),t._v(" "),e("label",{staticClass:"font-weight-bold"},[t._v(t._s(t.$t("searchBar.checkInAndOut")))]),t._v(" "),e("div",{staticClass:"d-flex flex-column gap-12px"},[e("div",{staticClass:"position-relative mr-1"},[e("b-form-input",{attrs:{value:t.date||t.$t("bookingResult.select"),readonly:""},on:{click:function click(e){return t.$bvModal.show("cancel-stays-calendar-modal")}}}),t._v(" "),t.isMobile?t._e():e("date-picker",{staticClass:"ninja-hidden",attrs:{id:"reduction-of-nights-date-picker","data-cy":"reduction-of-nights-date-picker",config:t.datePickerConfig,events:["onDayCreate","onChange","onClose"]},on:{"on-day-create":t.onDayCreate,"on-change":t.changingDate,"on-close":t.onClose},model:{value:t.date,callback:function callback(e){t.date=e},expression:"date"}}),t._v(" "),e("b-form-invalid-feedback",{staticClass:"mt-5px text-16px lh-24px",attrs:{state:t.enoughStays}},[e("info-icon",{staticClass:"fill-alert-warning mr-1 mt--2px"}),t._v(t._s(t.$t("reservationAction.notEnoughStays",[t.minStay]))+"\n            ")],1)],1),t._v(" "),e("min-length-of-stay-warning",{attrs:{rooms:t.reservationDetails.rooms,nights:t.selectedNights}}),t._v(" "),e("form-error",{attrs:{errors:t.errors}}),t._v(" "),e("div",[e("b-button",{staticClass:"btn-half mr-2",attrs:{id:"reduction-of-nights-cancel-btn","data-cy":"reduction-of-nights-cancel-btn",variant:"outline-dark"},on:{click:function click(e){return t.$emit("cancel")}}},[t._v("\n              "+t._s(t.$t("base.cancel"))+"\n            ")]),t._v(" "),e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],staticClass:"btn-half",attrs:{id:"reduction-of-nights-next-btn","data-cy":"reduction-of-nights-next-btn",type:"submit",disabled:!t.date||t.date&&!t.date.includes("-")||!t.enoughStays}},[t._v("\n              "+t._s(t.$t("base.next"))+"\n            ")])],1)],1)])],1),t._v(" "),e("calendar-modal",{attrs:{id:"cancel-stays-calendar-modal",config:t.datePickerConfig,value:t.date},on:{"on-change":t.onChange}})],1)}),[],!1,null,null,null);e.a=_.exports},1316:function(t,e,n){"use strict";var o=n(40);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i={name:"ReservationNumberBox",props:{bookingDetails:{type:Object,required:!0}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(o.d)({isSignedIn:"membership/isSignedIn"}),{show:function show(){var t;return this.bookingDetails.reservation_number||(null===(t=this.bookingDetails.lottery_result)||void 0===t?void 0:t.entry_number)},isVoucherMode:function isVoucherMode(){return"voucher"===this.bookingDetails.status},isCancelled:function isCancelled(){return"cancelled"===this.bookingDetails.status}})},a=(n(1285),n(33)),r=Object(a.a)(i,(function render(){var t=this,e=t._self._c;return t.show?e("div",{staticClass:"enhance-block",class:{isCancelled:t.isCancelled}},[e("p",{staticClass:"enhance-title mb-0"},[t._t("default",(function(){return[t._v("\n        "+t._s(t.isVoucherMode?t.$t("voucher.voucherNumber"):t.$t("reservationDetail.reservationNumber"))+":\n        "),e("span",{attrs:{id:"reservation-number"}},[t._v(t._s(t.bookingDetails.reservation_number))])]}))],2),t._v(" "),t.isSignedIn||t.isVoucherMode||t.$ota?t._e():e("p",{staticClass:"enhance-subtitle mt-2"},[t._v("\n      "+t._s(t.$t("reservationDetail.searchNecessary"))+"\n    ")])]):t._e()}),[],!1,null,"e32e8bfa",null);e.a=r.exports},1317:function(t,e,n){"use strict";var o=n(40);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i={name:"GoToOtaConfirmationModal",components:{FormError:n(156).a},props:{loading:{type:Boolean,default:!1},confirmationMessage:{type:String,default:"ota.confirmToOtaDescription"},showRedirectError:{type:Boolean,default:!1}},setup:function setup(){return{otaUrl:"https://tripla.ai"}}
1,computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(o.d)({spinnerVariant:"setting/getSpinnerVariant"}))},a=n(33),r=Object(a.a)(i,(function render(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"go-ota-modal","data-cy":"go-ota-modal",centered:!0},scopedSlots:t._u([{key:"modal-title",fn:function fn(){return[t._v(t._s(t.$t("ota.confirmToOtaTitle")))]},proxy:!0},{key:"modal-footer",fn:function fn(){return[e("div",{staticClass:"d-flex"},[e("b-button",{directives:[{name:"theme-btn-outline",rawName:"v-theme-btn-outline"}],staticClass:"minw-3 mr-2",attrs:{disabled:t.loading},on:{click:function click(e){return t.$bvModal.hide("go-ota-modal")}}},[t._v("\n          "+t._s(t.$t("base.cancel"))+"\n        ")]),t._v(" "),e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],staticClass:"minw-3",attrs:{disabled:t.loading,"data-cy":"go-to-ota-button"},on:{click:function click(e){return t.$emit("continue")}}},[e("b-spinner",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"btn-spinner",attrs:{variant:t.spinnerVariant,small:""}}),t._v("\n          "+t._s(t.$t("base.continue"))+"\n        ")],1)],1)]},proxy:!0}])},[t._v(" "),e("i18n",{attrs:{tag:"p",path:t.confirmationMessage}},[e("a",{staticClass:"link",attrs:{href:t.otaUrl,target:"_blank"}},[t._v(t._s(t.$t("base.triplaAi")))])]),t._v(" "),t._t("default"),t._v(" "),t.showRedirectError?e("form-error",{attrs:{errors:t.$t("ota.fromBwToOtaPaymentError")}}):t._e()],2)}),[],!1,null,null,null);e.a=r.exports},1320:function(t,e,n){"use strict";var o=n(1045),i=n(40),a=n(156);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r={name:"CancelRoomsBlock",components:{HotelIcon:o.a,FormError:a.a},props:{rooms:{type:Array,required:!0},reservationDetails:{type:Object,required:!0}},data:function data(){var t=this;return{localRooms:this.rooms.map((function(e,n){return{text:t.$t("reservationDetail.roomNb",[n+1]),value:n}})),selectedRooms:[],errors:null}},computed:_objectSpread({},Object(i.d)({hotelCode:"setting/getHotelCode",spinnerVariant:"setting/getSpinnerVariant"})),methods:{updateRooms:function updateRooms(){var t=this,e=this.reservationDetails.rooms.map((function(t,e){return _objectSpread({index:e},t)})).filter((function(e){return!t.selectedRooms.includes(e.index)}));this.$emit("submit",{currentRooms:e})}}},s=n(33),c=Object(s.a)(r,(function render(){var t=this,e=t._self._c;return e("b-card",{attrs:{"no-body":""}},[e("b-card-header",[e("strong",[e("hotel-icon",{staticClass:"mr-2"}),t._v(t._s(t.$t("reservationAction.reductionOfRooms")))],1)]),t._v(" "),e("b-card-text",{staticClass:"card-blockquote p-3"},[e("b-form",{attrs:{id:"reduction-of-rooms-form","data-cy":"reduction-of-rooms-form"},on:{submit:function submit(e){return e.preventDefault(),t.updateRooms.apply(null,arguments)}}},[e("p",{staticClass:"text-sm mb-2"},[t._v(t._s(t.$t("reservationAction.selectRoomsToCancel")))]),t._v(" "),e("b-form-checkbox-group",{staticClass:"pl-2 mb-3 t-checkbox",attrs:{id:"reduction-of-rooms-checkbox","data-cy":"reduction-of-rooms-checkbox",options:t.localRooms,stacked:""},model:{value:t.selectedRooms,callback:function callback(e){t.selectedRooms=e},expression:"selectedRooms"}}),t._v(" "),e("form-error",{attrs:{errors:t.errors}}),t._v(" "),t.selectedRooms.length===t.rooms.length?e("form-error",{attrs:{errors:t.$t("reservationAction.pleaseCancelAll")}}):t._e(),t._v(" "),e("b-button",{staticClass:"btn-half mr-2",attrs:{id:"reduction-of-rooms-cancel-btn","data-cy":"reduction-of-rooms-cancel-btn",variant:"outline-dark"},on:{click:function click(e){return t.$emit("cancel")}}},[t._v("\n          "+t._s(t.$t("base.cancel"))+"\n        ")]),t._v(" "),e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],staticClass:"btn-half",attrs:{id:"reduction-of-rooms-next-btn","data-cy":"reduction-of-rooms-next-btn",type:"submit",disabled:0===t.selectedRooms.length||t.selectedRooms.length===t.rooms.length}},[t._v("\n          "+t._s(t.$t("base.next"))+"\n        ")])],1)],1)],1)}),[],!1,null,null,null);e.a=c.exports},1328:function(t,e,n){"use strict";var o=n(33),i=Object(o.a)({},(function render(){var t=this._self._c;return t("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24"}},this.$listeners),[t("path",{attrs:{fill:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M22 10V6a2 2 0 00-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-9 7.5h-2v-2h2v2zm0-4.5h-2v-2h2v2zm0-4.5h-2v-2h2v2z"}})])}),[],!1,null,null,null);e.a=i.exports},1329:function(t,e,n){"use strict";var o=n(33),i=Object(o.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:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null);e.a=i.exports},1330:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(11),i=n(320),a=n(49),r=n(9),s=n(1057),c=n(17),l=n(15),u=function getBookingWidgetSettings(t){return c.a.getData(Object(l.O)(t))};function asyncGeneratorStep(t,e,n,o,i,a,r){try{var s=t[a](r),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(o,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;
1return new Promise((function(o,i){var a=t.apply(e,n);function _next(t){asyncGeneratorStep(a,o,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(a,o,i,_next,_throw,"throw",t)}_next(void 0)}))}}var d=function useLotteryCompleteFlow(){var t=Object(i.useRouter)(),e=Object(i.useRoute)(),n=Object(r.getCurrentInstance)().proxy.$store,c=Object(r.ref)(!1),l=Object(r.computed)((function(){return n.getters["setting/getHotelCode"]})),d={};function isReserveDeadlinePassed(t){return Object(a.u)(t.lottery_event.reserve_deadline).getTime()<Date.now()}function _handleLotteryResultFlow(){return(_handleLotteryResultFlow=_asyncToGenerator(regeneratorRuntime.mark((function _callee(n){var i,a,r,p,m,v,h,_;return regeneratorRuntime.wrap((function _callee$(f){for(;;)switch(f.prev=f.next){case 0:if(this.$store.dispatch("mcp/setSelectedCurrency","JPY"),![s.b.SELECTED_RESERVED,s.b.RESERVATION_CANCELLED].includes(n.status)){f.next=5;break}t.push({name:o.a.reservation.confirmation,params:{confirmationNumber:n.reservation.reservation_number},query:{code:l.value}}),f.next=24;break;case 5:if(!isReserveDeadlinePassed(n)){f.next=10;break}c.value=!0,e.name!==o.a.roomLottery.complete&&t.push({name:o.a.roomLottery.complete,params:{confirmationNumber:n.entry_number},query:{code:l.value}}),f.next=24;break;case 10:if(s.b.SELECTED_NOTIFIED!==n.status){f.next=24;break}if(a={name:o.a.reservation.guestDetail,query:{code:(null===(i=n.hotel)||void 0===i?void 0:i.id)||l.value,lottery_entry_number:n.entry_number,prev_route:e.name}},l.value.replace(/-/g,"")===a.query.code.replace(/-/g,"")){f.next=23;break}if(void 0!==(r=d[a.query.code])){f.next=20;break}return f.next=17,u(a.query.code);case 17:m=f.sent,r=(null===(p=m.booking_widget_setting_attributes.standalone_settings)||void 0===p?void 0:p.url)||null,d[a.query.code]=r;case 20:r?(v=new URL(r),window.open(v.toString()+t.resolve(a).href.slice(1),"_blank")):(h=new URL(window.location.origin+t.resolve(a).href),_=new URL(n.hotel.url),h.searchParams.delete("code"),_.searchParams.set("tripla_booking_widget_open",h.pathname+h.search),window.open(_.toString(),"_blank")),f.next=24;break;case 23:t.push(a);case 24:case"end":return f.stop()}}),_callee,this)})))).apply(this,arguments)}return{handleLotteryResultFlow:function handleLotteryResultFlow(t){return _handleLotteryResultFlow.apply(this,arguments)},isLotteryReserveDeadlinePassed:c}}},1386:function(t,e,n){"use strict";var o=n(201);e.a={mixins:[o.a],methods:{goToLotteryUpdatePage:function goToLotteryUpdatePage(t){var e=t.reservation||{},n=e.checkin_date,o=e.checkout_date,i=e.rooms;this.goToSearchPage({checkin_date:n,checkout_date:o,rooms:JSON.stringify(i.map((function(t){return{adults:t.adults,children:t.children}}))),lottery_event:t.lottery_event.uuid,current_lottery_entry:t.entry_number})}}}},1420:function(t,e,n){"use strict";n(1309)},1434:function(t,e,n){"use strict";var o=n(325),i=n(40);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a={name:"RoomLotteryCancelModal",props:{lotteryResult:{type:Object,required:!0}},data:function data(){return{errors:null,isLoading:!1}},computed:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(i.d)({spinnerVariant:"setting/getSpinnerVariant",hotelCode:"setting/getHotelCode",currency:"setting/getCurrency"})),methods:{hideModal:function hideModal(){this.$bvModal.hide("room-lottery-cancel-modal")},cancelRoomLotteryEntry:function cancelRoomLotteryEntry(){var t=this;this.isLoading=!0,o.a.cancelLotteryResult({hotelId:this.hotelCode,entryNumber:this.lotteryResult.entry_number}).then((function(){t.$emit("lottery-cancelled"),t.hideModal()})).catch((function(e){var n;t.errors=null===(n=e.title)||void 0===n?void 0:n.split(/\n/g)})).finally((function(){t.isLoading=!1}))}}},r=n(33),s=Object(r.a)(a,(function render(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"room-lottery-cancel-modal","data-cy":"room-lottery-cancel-modal",centered:"",title:t.$t("roomLottery.cancelModalTitle")},scopedSlots:t._u([{key:"modal-footer",fn:function fn(){return[e("b-button",{attrs:{variant:"outline-secondary","data-cy":"btn-close-cancel-lottery",disabled:t.isLoading},on:{click:t.hideModal}},[t._v(t._s(t.$t("base.close")))]),t._v(" "),e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],attrs:{type:"button","data-cy":"btn-cancel-lottery-entry",disabled:t.isLoading},on:{click:t.cancelRoomLotteryEntry}},[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.$t("roomLottery.cancelEntry"))+"\n      ")],1)]},proxy:!0}])},[e("p",[t._v(t._s(t.$t("roomLottery.cancelModalDesc")))]),t._v(" "),e("p",{attrs:{"data-cy":"lottery-entry-cancellation-fee"}},[t._v("\n      "+t._s(t.$t("reservationCancellation.cancellationFee"))+": "+t._s(t.currency.symbol)+"0\n    ")]),t._v(" "),e("form-error",{attrs:{errors:t.errors}}
1)],1)}),[],!1,null,null,null);e.a=s.exports},1442:function(t,e,n){"use strict";var o=n(31),i=n(40),a=n(1320),r=n(1314),s=n(1e3),c=n(1212),l=n(1061),u=n(1213),d=n(1328),p=n(1045),m=n(1329),v=n(1214),h=n(1164),_=n(11),f=n(49),b=n(23),g=n(122),y=n(975),C=n(1010),D=n(1317),w=n(180),k=n(257),O=n(1014),P=n(70),S=n(209),x=n(1050),R=n(137),j=n(41),$=n(88);function asyncGeneratorStep(t,e,n,o,i,a,r){try{var s=t[a](r),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(o,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function _next(t){asyncGeneratorStep(a,o,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(a,o,i,_next,_throw,"throw",t)}_next(void 0)}))}}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E,N,L={name:"ReservationAction",components:{CancelRoomsBlock:a.a,CancelStaysBlock:r.a,CheckoutLayoutBox:s.a,CancelIcon:c.a,CalendarIcon:u.a,CardIcon:l.a,CouponIcon:d.a,HotelIcon:p.a,EditIcon:m.a,ExpiredTooltip:h.a,PrintIcon:v.a,GoToOtaConfirmationModal:D.a,PaymentPromotionBanner:x.a},props:{type:{type:String,default:"done",validator:function validator(t){return["done","cancelled","edited","voucher"].includes(t)}},reservationHotelId:{type:[String,Number],default:null},currentHotelId:{type:[String,Number],default:null},reservationDetails:{type:Object,required:!0}},setup:function setup(t){return{getMcpPriceValue:Object(k.b)().getMcpPriceValue}},data:function data(){return{view:null,isMobile:Object(o.h)(),ReservationStep:g.h,paymentMethod:b.w,showRedirectError:!1,modalLoading:!1}},computed:_objectSpread({},Object(i.d)({isUserSignedIn:"membership/isUserSignedIn",hotelCode:"setting/getHotelCode",brandId:"setting/getBrandID",updateSetting:"booking/getUpdateSetting",currentUser:"membership/getCurrentUser",siteController:"setting/getSiteController",paymentGatewaySetting:"setting/getPaymentGatewaySetting",isEnableBwToOtaProcess:"setting/getEnableBwToOtaProcess",getPaymentHubSetting:"setting/getPaymentHubSetting",isTiersMode:"setting/isTiersMode",storageData:"booking/storageData",isLotteryReservation:"booking/isLotteryReservation",setting:"setting/getSetting",isMcpMode:"mcp/isMcpMode",isSignedIn:"membership/isSignedIn",isAmazonPayEnabled:"setting/isAmazonPayEnabled"}),{disableReduceNight:function disableReduceNight(){var t;return((null===(t=this.updateSetting)||void 0===t?void 0:t.restrictions)||[]).slice(1,-1).every((function(t){return t.closed_to_arrival||t.closed_to_departure}))},canUpdatePaymentMethod:function canUpdatePaymentMethod(){return!this.disabledPermission&&!this.isAppliedSpecialDiscount},afterCheckinDate:function afterCheckinDate(){var t;return Object(f.n)(null===(t=this.reservationDetails)||void 0===t?void 0:t.checkin_date)},isSignOutRequired:function isSignOutRequired(){var t,e,n,o,i,a;return!(null===(t=this.reservationDetails)||void 0===t?void 0:t.organization_id)&&!(null===(e=this.reservationDetails)||void 0===e||null===(n=e.membership)||void 0===n?void 0:n.program_id)&&((null===(o=this.currentUser)||void 0===o||null===(i=o.organization)||void 0===i?void 0:i.id)||(null===(a=this.currentUser)||void 0===a?void 0:a.id))},isGuestReservation:function isGuestReservation(){return null===this.reservationDetails.membership},isDifferentFacility:function isDifferentFacility(){return this.currentHotelId!==this.reservationHotelId},isDifferentOrg:function isDifferentOrg(){var t,e,n=this.reservationDetail
1s.organization_id;return(n||(null===(t=this.currentUser)||void 0===t?void 0:t.organization))&&n!==(null===(e=this.currentUser.organization)||void 0===e?void 0:e.id)},isDifferentMembership:function isDifferentMembership(){var t,e,n=this.reservationDetails.membership,o=n||(null===(t=this.currentUser)||void 0===t?void 0:t.program_id),i=(null==n?void 0:n.customer_id)!==(null===(e=this.currentUser)||void 0===e?void 0:e.id);return o&&i},isDisableUpdateForNeppan:function isDisableUpdateForNeppan(){return"neppan"===this.siteController&&!"".split(",").includes(String(this.currentHotelId))},disabledPermission:function disabledPermission(){return this.isDifferentOrg||this.isDifferentMembership||this.isDifferentFacility},disableUpdate:function disableUpdate(){return!this.updateSetting.updatable&&this.updateSetting.reason||this.disabledPermission},isAppliedSpecialDiscount:function isAppliedSpecialDiscount(){return this.updateSetting.is_updated_by_concierge&&!this.updateSetting.updatable},disableReason:function disableReason(){return this.isAppliedSpecialDiscount?this.updateSetting.reason:this.isDifferentFacility?this.$t("reservationAction.differentFacilityWarning"):this.isSignOutRequired?this.$t("reservationAction.signOutRequired"):this.isDifferentOrg?(null===(t=this.currentUser.organization)||void 0===t?void 0:t.id)?this.$t("reservationAction.differentOrgWarning"):this.$t("reservationAction.corporateSignInRequired"):this.isDifferentMembership?(null===(e=this.currentUser)||void 0===e?void 0:e.program_id)?this.$t("reservationAction.differentAccountWarning"):this.$t("reservationAction.memberSignInRequired"):this.updateSetting.reason;var t,e},disableApplyCoupon:function disableApplyCoupon(){return this.isDifferentFacility||this.isSignOutRequired||this.isDifferentOrg||this.isDifferentMembership||this.isAppliedSpecialDiscount},disableApplyCouponReason:function disableApplyCouponReason(){return this.isAppliedSpecialDiscount?this.updateSetting.reason:this.isDifferentFacility?this.$t("reservationAction.coupon.differentFacilityWarning"):this.isSignOutRequired?this.$t("reservationAction.coupon.signOutRequired"):this.isDifferentOrg?(null===(t=this.currentUser.organization)||void 0===t?void 0:t.id)?this.$t("reservationAction.coupon.differentOrgWarning"):this.$t("reservationAction.coupon.corporateSignInRequired"):this.isDifferentMembership?(null===(e=this.currentUser)||void 0===e?void 0:e.program_id)?this.$t("reservationAction.coupon.differentAccountWarning"):this.$t("reservationAction.coupon.memberSignInRequired"):"";var t,e},availableCreditCardPayment:function availableCreditCardPayment(){var t,e,n=this;return null===(t=this.reservationDetails)||void 0===t||null===(e=t.available_payment_methods_v2)||void 0===e?void 0:e.find((function(t){return t.code===n.paymentMethod.CreditCard}))},allowChangeCard:function allowChangeCard(){var t;return null===(t=this.updateSetting)||void 0===t?void 0:t.update_payment_method},canUpdateGuestDetail:function canUpdateGuestDetail(){var t,e;return!!(null===(t=this.updateSetting)||void 0===t?void 0:t.update_guest_detail)||!(null===(e=this.reservationDetails)||void 0===e?void 0:e.lock_guest_update)},disableReasonAdyenNotCaptured:function disableReasonAdyenNotCaptured(){var t,e,n,o;if(this.getPaymentHubSetting.isNone&&!((null===(t=this.reservationDetails)||void 0===t||null===(e=t.payment)||void 0===e?void 0:e.gateway)===b.h.Adyen&&["authorized","captured"].includes(null===(n=this.reservationDetails)||void 0===n||null===(o=n.payment)||void 0===o?void 0:o.status)))return this.$t("reservationConfirmation.cannotUpdateTooltip");return""},canCancelBooking:function canCancelBooking(){if(this.isAppliedSpecialDiscount)return!1;var t=[b.w.CreditCard,b.w.OnSiteCreditCardRequired].includes(this.reservationDetails.payment_method),e=this.reservationDetails.payment;return!t||(null==e?void 0:e.gateway)!==b.h.Adyen||["authorized","captured"].includes(null==e?void 0:e.status)}}),watch:{updateSetting:function updateSetting(){this.allowChangeCard&&this.canUpdatePaymentMethod&&"pay-by-credit-card"===this.$route.query.action&&(Object(P.g)({exclude:["action"]}),this.handlePayByCreditCard())}},mounted:function mounted(){this.$nextTick((function(){j.a.getItem("showModalOnPayNowAndSaveSignInSuccess")&&(this.handlePayByCreditCard(),j.a.removeItem("showModalOnPayNowAndSaveSignInSuccess"))}))},methods:_objectSpread({},Object(i.c)({getBookingPrice:"booking/getBookingPrice",setConsentStateFromBw:"booking/setConsentStateFromBw"}),{priceWithSymbol:y.c,print:function print(){window.print()},clickUpdatePicker:function clickUpdatePicker(){this.disableUpdate||this.$emit("popupUpdateModal")},changeView:function changeView(t){this.disableUpdate||(this.view=t)},handleSignIn:function handleSignIn(){var t;Object(R.c)({buttonPosition:R.a.HEADER}),this.ssoDirectLoading&&this.$store.dispatch("sso/setSsoDirectLoading",!1),this.$router.push({name:_.a.membership.sign
1In,query:{urlBack:this.$route.name.includes("SignIn")||this.$route.name.includes("SignUp")?null:(null===(t=this.$route.query)||void 0===t?void 0:t.urlBack)||this.$route.fullPath,code:this.setting.code}}),Object(R.b)("Sign-in button in the header")},handlePayNow:function handlePayNow(){this.isGuestReservation||this.isSignedIn?this.handlePayByCreditCard():(this.isEnableBwToOtaProcess&&j.a.setItem("showModalOnPayNowAndSaveSignInSuccess",!0),this.handleSignIn())},handlePayByCreditCard:function handlePayByCreditCard(){this.disabledPermission||this.isAppliedSpecialDiscount||(this.isEnableBwToOtaProcess?this.$bvModal.show("go-ota-modal"):this.redirectToGuestDetail({},{step:g.h.Payment,context:"update_payment_type"}))},generatePriceParams:function generatePriceParams(){var t,e,n=this,o=this.reservationDetails.coupon_promotion||this.reservationDetails.voucher_coupon_promotion,i=o?{coupon_code:o.coupon_code}:{};return _objectSpread({adults:this.reservationDetails.adults,children:this.reservationDetails.children,bypass_token:this.reservationDetails.bypass_token,checkin_date:this.reservationDetails.checkin_date,checkout_date:this.reservationDetails.checkout_date,context:"update_payment_type",guest:this.isUserSignedIn||!(null===(t=this.reservationDetails.guest)||void 0===t?void 0:t.email)?void 0:{email:null===(e=this.reservationDetails.guest)||void 0===e?void 0:e.email},payment:{type:b.w.CreditCard}},i,{spending_point:this.reservationDetails.spending_point_amount},Object(O.b)(this.reservationDetails),{rooms:this.reservationDetails.rooms.map((function(t){var e=t.membership_promotion_id?{membership_promotion_id:t.membership_promotion_id}:{};return _objectSpread({id:t.id,adults:t.adults,children:t.children,room_count:1,room_plan_code:t.room_plan_code,room_type_code:t.room_type_code},n.isTiersMode?{kids_age_range:t.kids_age_range}:{},{},e)})),reservation_no:this.reservationDetails.reservation_number,search_result_price:this.reservationDetails.total_price})},generatePaymentQuery:function generatePaymentQuery(t){return{code:this.setting.code,current_reservation:this.reservationDetails.reservation_number,bypass_token:this.reservationDetails.bypass_token,checkin_date:this.reservationDetails.checkin_date,checkout_date:this.reservationDetails.checkout_date,adults:this.reservationDetails.adults,children:this.reservationDetails.children,search_result_price:this.reservationDetails.total_price,locale:this.$i18n.locale,rooms:JSON.stringify(this.reservationDetails.rooms.map((function(t){return{id:t.id,adults:t.adults,children:t.children,room_count:t.room_count,room_type_code:t.room_type_code,room_plan_code:t.room_plan_code}}))),context:"update_payment_type",key:t}},fillBookingDetailsInfoBeforeRedirectingToOta:(N=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var t,e,n=this;return regeneratorRuntime.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.getBookingPrice({searchParams:this.generatePriceParams()});case 2:t=o.sent,e=t.rooms.map((function(t,e){var o,i,a,r=null!==(o=null===(i=n.reservationDetails)||void 0===i?void 0:i.rooms)&&void 0!==o?o:[],s=t.guest||(null===(a=r[e])||void 0===a?void 0:a.guest);return{first_name:s.first_name||null,last_name:s.last_name||null,first_name_kana:s.first_name_kana||null,last_name_kana:s.last_name_kana||null}})),this.$store.dispatch("booking/setGuest",this.reservationDetails.guest),this.$store.dispatch("booking/setGuestsInRooms",e),this.$store.dispatch("booking/setInitAdditionalQuestions",{additional_questions:t.additional_questions,rooms:t.rooms}),this.$store.dispatch("search/setTotalPriceFromSearch",t.search_result_price);case 8:case"end":return o.stop()}}),_callee,this)}))),function fillBookingDetailsInfoBeforeRedirectingToOta(){return N.apply(this,arguments)}),goToOta:(E=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var t,e,n,i;return regeneratorRuntime.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:return this.showRedirectError=!1,this.modalLoading=!0,a.prev=2,a.next=5,this.fillBookingDetailsInfoBeforeRedirectingToOta();case 5:return this.setConsentStateFromBw(Object($.o)()),a.next=8,this.saveGuestDataToStorageAPI(this.storageData);case 8:t=a.sent,e=new URLSearchParams(_objectSpread({},this.generatePaymentQuery(t),{},Object(S.a)()?{maintenance_mode:!1}:{})).toString(),this.modalLoading=!1,n="".concat("https://tripla.ai").concat("/reservation/payment","?").concat(e),i=document.referrer,Object(o.f)()&&i?window.parent.location.href=n:window.location.href=n,a.next=23;break;case 19:a.prev=19,a.t0=a.catch(2),this.showRedirectError=!0,this.modalLoading=!1;case 23:case"end":return a.stop()}}),_callee2,this,[[2,19]])}))),function goToOta(){return E.apply(this,arguments)}),saveGuestDataToStorageAPI:function saveGuestDataToStorageAPI(t){var e=this;return new Promise((function(n,o){w.a.storageGuestData(t).then((function(t){n(t.key)})).catch((function(t){console.info("error ".concat(JSON.stringify(t))),e.$rollbar.info("Storage API Failed to stored BW Guest Data"),o(t)}))}))},redirectToGuestDetail:function redirectToGuestDetail(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currentRooms:null,checkin:null,checkout:null,utm_medium:null},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(C.b)();
1var o=this.reservationDetails,i=o.reservation_number,a=o.bypass_token,r=o.adults,s=o.children,c=o.coupon_promotion,l=o.voucher_coupon_promotion,u=o.total_price,d=o.rooms,p=o.checkin_date,m=o.checkout_date,v={code:this.hotelCode,current_reservation:i,bypass_token:a,checkin_date:e.checkin||p,checkout_date:e.checkout||m,adults:r,children:s,search_result_price:u,rooms:JSON.stringify((e.currentRooms||d).map((function(e){var n,o={id:e.id,adults:e.adults,children:e.children,room_count:1,room_type_code:e.room_type_code,room_plan_code:e.room_plan_code};return e.membership_promotion_id&&(o.membership_promotion_id=e.membership_promotion_id),(null===(n=e.scrape_ids)||void 0===n?void 0:n.length)&&(o.scrape_ids=e.scrape_ids),t.isTiersMode&&e.kids_age_range&&(o.kids_age_range=e.kids_age_range),o}))),update_action:this.view};"after_coupon"===e.utm_medium&&(v.utm_medium="after_coupon",v.utm_source="tripla",v.utm_campaign="apply_coupon_code",v.after_coupon=!0,this.$store.dispatch("booking/setApplyingAfterCoupon",!0)),((null==c?void 0:c.coupon_code)||(null==l?void 0:l.coupon_code))&&(v.coupon_code=(null==c?void 0:c.coupon_code)||(null==l?void 0:l.coupon_code)),this.$store.dispatch("booking/setBookingDetails",{rooms:[],guest:{}}),this.$store.dispatch("booking/setUpdateMode",!0),this.$router.push({name:_.a.reservation.guestDetail,query:_objectSpread({},v,{},n)})}})},I=(n(1420),n(33)),A=Object(I.a)(L,(function render(){var t,e,n=this,o=n._self._c;return o("div",{attrs:{id:"reservation-action","data-cy":"reservation-action"}},["cancelled"===n.type?o("div",{staticClass:"actions-container"},[o("span",{staticClass:"title"},[n._v(n._s(n.$t("reservationAction.madeMistakeTitle")))]),n._v(" "),o("span",[n._v(n._s(n.$t("reservationAction.madeMistakeHelp")))])]):["cancelStays"===n.view?o("cancel-stays-block",{attrs:{"reservation-details":n.reservationDetails,"update-setting":n.updateSetting},on:{cancel:function cancel(t){n.view=null},submit:n.redirectToGuestDetail}}):"cancelRooms"===n.view?o("cancel-rooms-block",{attrs:{rooms:n.reservationDetails.rooms,"reservation-details":n.reservationDetails},on:{cancel:function cancel(t){n.view=null},submit:n.redirectToGuestDetail}}):o("checkout-layout-box",{attrs:{title:n.$t("reservationAction.everythingCorrectTitle"),"content-class":"pr-3 pl-3 pb-3",bordered:!n.isMobile}},[o("span",[n._v(n._s(n.$t("reservationAction.everythingCorrectSubtitle")))]),n._v(" "),o("ul",{staticClass:"action-list"},[n.afterCheckinDate?n._e():o("li",{staticClass:"action-item",class:{disabled:!n.canCancelBooking}},[o("a",{directives:[{name:"b-modal",rawName:"v-b-modal.cancellation-modal",modifiers:{"cancellation-modal":!0}}],staticClass:"action-link",class:{disabled:!n.canCancelBooking},attrs:{"data-cy":"booking-cancel-btn"}},[o("cancel-icon",{staticClass:"action-icon"}),n._v("\n              "+n._s(n.$t("reservationAction.bookingCancel"))+"\n              "),n.canCancelBooking?n._e():o("expired-tooltip",{attrs:{content:n.disableReasonAdyenNotCaptured||n.disableReason}})],1)]),n._v(" "),n.allowChangeCard&&!n.isLotteryReservation&&"neppan"!==n.siteController?o("li",{staticClass:"action-item",class:{disabled:!n.canUpdatePaymentMethod}},[o("a",{staticClass:"action-link",class:{disabled:!n.canUpdatePaymentMethod},attrs:{"data-cy":"update-payment"},on:{click:n.handlePayByCreditCard}},[o("card-icon",{staticClass:"action-icon mt-2px",attrs:{height:"21"}}),n._v(" "),n.isAmazonPayEnabled?o("span",[n._v(n._s(n.$t("pay.changeToPrepaid")))]):o("span",[n._v(n._s(n.$t("reservationAction.payByCreditCard")))]),n._v(" "),n.canUpdatePaymentMethod?n._e():o("expired-tooltip",{attrs:{content:n.disableReason}})],1)]):n._e(),n._v(" "),!n.updateSetting.unrestricted||n.isLotteryReservation||n.isMcpMode||"neppan"===n.siteController?n._e():o("li",{staticClass:"action-item",class:{disabled:n.disableUpdate}},[o("a",{staticClass:"action-link",class:{disabled:n.disableUpdate},attrs:{"data-cy":"update-itinerary"},on:{click:n.clickUpdatePicker}},[o("calendar-icon",{staticClass:"action-icon"}),n._v("\n              "+n._s(n.$t("reservationAction.updateItinerary"))+"\n              "),n.disableUpdate?o("expired-tooltip",{attrs:{content:n.disableReason}}):n._e()],1)]),n._v(" "),!(n.updateSetting.cancel_some_stays&&n.reservationDetail
1s.nights>1)||n.afterCheckinDate||n.disableReduceNight||n.isLotteryReservation||n.isMcpMode||"neppan"===n.siteController?n._e():o("li",{staticClass:"action-item cursor-pointer",class:{disabled:n.disableUpdate},attrs:{"data-cy":"cancel-stay-btn"},on:{click:function click(t){return n.changeView("cancelStays")}}},[o("calendar-icon",{staticClass:"action-icon"}),n._v("\n            "+n._s(n.$t("reservationAction.reductionOfNights"))+"\n            "),n.disableUpdate?o("expired-tooltip",{attrs:{content:n.disableReason}}):n._e()],1),n._v(" "),n.updateSetting.cancel_some_rooms&&n.reservationDetails.rooms.length>1&&!n.afterCheckinDate&&!n.isLotteryReservation&&!n.isMcpMode&&"neppan"!==n.siteController?o("li",{staticClass:"action-item cursor-pointer",class:{disabled:n.disableUpdate},attrs:{"data-cy":"cancel-rooms-btn"},on:{click:function click(t){return n.changeView("cancelRooms")}}},[o("hotel-icon",{staticClass:"action-icon"}),n._v("\n            "+n._s(n.$t("reservationAction.reductionOfRooms"))+"\n            "),n.disableUpdate?o("expired-tooltip",{attrs:{content:n.disableReason}}):n._e()],1):n._e(),n._v(" "),n.afterCheckinDate||"wise"===n.siteController||n.isLotteryReservation||!n.canUpdateGuestDetail||n.isDisableUpdateForNeppan?n._e():o("li",{staticClass:"action-item",class:{disabled:n.disabledPermission}},[o("a",{directives:[{name:"b-modal",rawName:"v-b-modal.edit-guest",value:!n.disabledPermission,expression:"!disabledPermission",modifiers:{"edit-guest":!0}}],staticClass:"action-link",class:{disabled:n.disabledPermission},attrs:{"data-cy":"edit-guest"}},[o("edit-icon",{staticClass:"action-icon"}),n._v("\n              "+n._s(n.$t("reservationAction.bookingUpdate"))+"\n              "),n.disabledPermission?o("expired-tooltip",{attrs:{content:n.disableReason}}):n._e()],1)]),n._v(" "),!n.updateSetting.apply_coupon_after_reservation||"voucher"===(null===(t=n.reservationDetails)||void 0===t||null===(e=t.rooms[0])||void 0===e?void 0:e.room_plan_mode)||n.isLotteryReservation||n.isMcpMode||"neppan"===n.siteController?n._e():o("li",{staticClass:"action-item",class:{disabled:n.disableApplyCoupon}},[o("a",{staticClass:"action-link",class:{disabled:n.disableApplyCoupon},attrs:{"data-cy":"apply-coupon"},on:{click:function click(t){!n.disableApplyCoupon&&n.redirectToGuestDetail({utm_medium:"after_coupon"})}}},[o("coupon-icon",{staticClass:"action-icon"}),n._v("\n              "+n._s(n.$t("reservationAction.applyGOTO"))+"\n              "),n.disableApplyCoupon?o("expired-tooltip",{attrs:{content:n.disableApplyCouponReason}}):n._e()],1)]),n._v(" "),o("li",{staticClass:"action-item cursor-pointer",attrs:{"data-cy":"print-details-btn"},on:{click:n.print}},[o("print-icon",{staticClass:"action-icon"}),n._v("\n            "+n._s(n.$t("reservationAction.invoiceDownload"))+"\n          ")],1)])])],n._v(" "),n.allowChangeCard&&!n.isLotteryReservation&&n.availableCreditCardPayment&&n.availableCreditCardPayment.payment_discount_amount&&!n.isAppliedSpecialDiscount?[o("fieldset",[o("payment-promotion-banner",{staticClass:"mb-2 mt-4 text-center hide-mobile p-12px",attrs:{amount:n.priceWithSymbol(n.getMcpPriceValue(n.availableCreditCardPayment,"payment_discount_amount")),variant:"superlight","disable-reason":n.disableReason,compact:"","title-center":""},scopedSlots:n._u([{key:"title",fn:function fn(){return[o("div",{staticClass:"promotion-banner__main-title"},[n._v("\n              "+n._s(n.$t("bookingResult.paymentPromotionBanner.payNowAndSaveTitle",[n.priceWithSymbol(n.getMcpPriceValue(n.availableCreditCardPayment,"payment_discount_amount"))]))+"\n            ")])]},proxy:!0}],null,!1,4014673438)},[n._v(" "),o("div",[o("div",{staticClass:"mt-2 promotion-banner__title"},[n._v("\n              "+n._s(n.$t("bookingResult.paymentPromotionBanner.payNowAndSaveDescriptionPrePayment"))+"\n            ")]),n._v(" "),o("b-button",{staticClass:"promotion-banner__button-pay",attrs:{disabled:n.isSignOutRequired||n.isDifferentOrg||n.isSignedIn&&n.isDifferentMembership},on:{click:n.handlePayNow}},[n._v(n._s(n.$t("bookingResult.paymentPromotionBanner.payNowAndSaveButton")))])],1
1)])],1)]:n._e(),n._v(" "),o("go-to-ota-confirmation-modal",{attrs:{loading:n.modalLoading,"show-redirect-error":n.showRedirectError},on:{continue:n.goToOta}})],2)}),[],!1,null,"bd2c0f02",null);e.a=A.exports},1564:function(t,e,n){},1565:function(t,e,n){},1708:function(t,e,n){"use strict";n(1564)},1709:function(t,e,n){"use strict";n(1565)},901:function(t,e,n){"use strict";n.r(e);var o=n(1092),i=n(40),a=n(33),r=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",fill:"#00805B"}},this.$listeners),[t("path",{attrs:{fill:"none",d:"M0 0h24v24H0V0z"}}),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 2zM9.29 16.29L5.7 12.7a.996.996 0 111.41-1.41L10 14.17l6.88-6.88a.996.996 0 111.41 1.41l-7.59 7.59a.996.996 0 01-1.41 0z"}})])}),[],!1,null,null,null).exports,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",fill:"#ec0e01"}},this.$listeners),[t("path",{attrs:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}),t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null).exports,c=n(1058),l=n(1316),u=n(1181),d=n(31),p=n(1442),m=n(122),v=n(1e3),h=n(1214),_=n(1212),f=n(1213),b=n(1057),g=n(49),y=n(1164),C=n(1386),D={name:"RoomLotteryAction",components:{ExpiredTooltip:y.a,IconCalendar:f.a,IconCancel:_.a,IconPrint:h.a,CheckoutLayoutBox:v.a},mixins:[C.a],props:{lotteryResult:{type:Object,required:!0}},data:function data(){return{isMobile:Object(d.h)()}},computed:{showCancelEntryButton:function showCancelEntryButton(){return[b.b.REGISTERED,b.b.SELECTED_NOTIFIED].includes(this.lotteryResult.status)},isCancelled:function isCancelled(){return this.lotteryResult.status===b.b.REGISTRATION_CANCELLED},isEndDatePassed:function isEndDatePassed(){return Object(g.n)(this.lotteryResult.lottery_event.entry_end_date)},showUpdateItinerary:function showUpdateItinerary(){return[b.b.REGISTERED,b.b.REGISTRATION_CANCELLED].includes(this.lotteryResult.status)}},methods:{handleUpdateLotteryEntry:function handleUpdateLotteryEntry(){this.isEndDatePassed||this.goToLotteryUpdatePage(this.lotteryResult)},print:function print(){window.print()}}},w=(n(1708),Object(a.a)(D,(function render(){var t=this,e=t._self._c;return e("checkout-layout-box",{attrs:{title:t.$t("roomLottery.manageYourLottery"),"content-class":"pr-3 pl-3 pb-3",bordered:!t.isMobile}},[e("ul",{staticClass:"action-list"},[t.showCancelEntryButton?e("li",{class:["action-item",{disabled:t.isEndDatePassed}]},[e("a",{directives:[{name:"b-modal",rawName:"v-b-modal.room-lottery-cancel-modal",modifiers:{"room-lottery-cancel-modal":!0}}],class:["action-link",{disabled:t.isEndDatePassed}],attrs:{"data-cy":"lottery-cancel-btn"}},[e("icon-cancel",{staticClass:"action-icon"}),t._v("\n          "+t._s(t.$t("roomLottery.cancelModalTitle"))+"\n          "),t.isEndDatePassed?e("expired-tooltip",{attrs:{content:t.$t("roomLottery.updateDisabledDesc")}}):t._e()],1)]):t._e(),t._v(" "),t.showUpdateItinerary?e("li",{class:["action-item",{disabled:t.isEndDatePassed}]},[e("a",{class:["action-link",{disabled:t.isEndDatePassed}],attrs:{"data-cy":"update-lottery-entry"},on:{click:t.handleUpdateLotteryEntry}},[e("icon-calendar",{staticClass:"action-icon"}),t._v("\n          "+t._s(t.isCancelled?t.$t("roomLottery.restoreLottery"):t.$t("roomLottery.updateLottery"))+"\n          "),t.isEndDatePassed?e("expired-tooltip",{attrs:{content:t.$t("roomLottery.updateDisabledDesc")}}):t._e()],1)]):t._e(),t._v(" "),e("li",{staticClass:"action-item cursor-pointer",attrs:{"data-cy":"print-details-btn"},on:{click:t.print}},[e("icon-print",{staticClass:"action-icon"}),t._v("\n        "+t._s(t.$t("reservationAction.invoiceDownload"))+"\n      ")],1)])])}),[],!1,null,"647e7d6a",null).exports),k=n(325),O=n(1434),P=n(11),S=n(8),x=n(24),R=n(1330);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function asyncGeneratorStep(t,e,n,o,i,a,r){try{var s=t[a](r),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(o,i)}var j,$={name:"RoomLotteryConfirmation",components:{RoomLotteryCancelModal:O.a,RoomLotteryAction:w,ReservationAction:p.a,ReservationDetail:u.a,ReservationNumberBox:l.a,NotificationFromFacility:c.a,CheckoutLayout:o.a,IconDone:r,IconCancelled:s,LotteryStatusMap:b.b},beforeRouteEnter:(j=function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function _next(t){asyncGeneratorStep(a,o,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(a,o,i,_next,_throw,"throw",t)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(t,e,n){return regeneratorRuntime.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(x.d)();case 2:if(S.a.getters["membership/isUserSignedIn"]){e.next=5;break}return n({name:P.a.membership.signIn,query:{urlBack:t.fullPath}}),e.abrupt("return");case 5:n();case 6:case"end":return e.stop()}}),_callee)}))),function beforeRouteEnter(t,e,n){return j.apply(this,arguments)}),setup:function setup(){return{handleLotteryResultFlow:Object(R.a)().handleLotteryResultFlow}},data:function data(){return{loading:!0,lotteryResult:null,isMobile:Object(d.h)(),LotteryStatusMap:b.b}},computed:_objectSpread({},Object(i.d)({reservationDetails:"booking/getReservationDetails",bookingDetails:"booking/getBookingDetails",hotelCode:"setting/getHotelCode",hotelId:"setting/getHotelId",isUserSignedIn:"membership/isUserSignedIn"}),{currentReservationHotelId:function currentReservationHotelId(){var t,e;return null===(t=this.reservationDetails)||void 0===t||null===(e=t.hotel)||void 0===e?void 0:e.id},lotteryEventNotifications:function lotteryEventNotifications(){var t,e=null===(t=this.lotteryResult)||void 0===t?void 0:t.lottery_event;return(null==e?void 0:e.notification)?[{id:e.id,question:e.notification}]:[]},lotteryStatus:function lotteryStatus(){var t;return null===(t=this.lotteryResult)||void 0===t?void 0:t.status},isCancelled:function isCancelled(){return this.lotteryStatus===b.b.REGISTRATION_CANCELLED},statusTitleClass:function statusTitleClass(){return[b.b.NOT_SELECTED,b.b.REGISTRATION_CANCELLED,b.b.SELECTED_DECLINED,b.b.RESERVATION_CANCELLED].includes(this.lotteryStatus)?"cancel":"success"},hotelCode:function hotelCode(){return this.$route.query.code},resultDateTimeNotice:function resultDateTimeNotice(){if(!this.lotteryResult)return"";var t=this.formatDate(this.lotteryResult.lottery_event.result_datetime),e=t.date,n=t.time,o=t.day;return this.$t("roomLottery.resultDateNotice",{date:e,time:n,day:o})},reserveDeadlineNotice:function reserveDeadlineNotice(){if(!this.lotteryResult)return"";var t=this.formatDate(this.lotteryResult.lottery_event.reserve_deadline),e=t.date,n=t.time,o=t.day;return this.$t("roomLottery.lotteryWinnerNotice02",{date:e,time:n,day:o})},statusIcon:function statusIcon(){switch(this.lotteryStatus){case b.b.NOT_SELECTED:case b.b.SELECTED_NOTIFIED:case b.b.REGISTRATION_CANCELLED:case b.b.SELECTED_DECLINED:return"";default:return"icon-done"}},statusTitle:function statusTitle(){switch(this.lotteryStatus){case b.b.NOT_SELECTED:return this.$t("roomLottery.lotteryResultNotSelected");case b.b.REGISTRATION_CANCELLED:case b.b.SELECTED_DECLINED:return this.$t("roomLottery.lotteryEntryCancelled");case b.b.SELECTED_NOTIFIED:return this.$t("roomLottery.lotteryResultSelectedNotified");default:return this.$t("roomLottery.lotteryEntryConfirmed")}}}),created:function created(){this.isUserSignedIn&&(this.getLotteryResult(),this.setCurrentStep(m.i.Confirmation))},methods:_objectSpread({},Object(i.c)({setCurrentStep:"booking/setCurrentStep",setRoomLotteryError:"error/setRoomLotteryError"}),{getLotteryResult:function getLotteryResult(){var t=this,e={entryNumber:this.$route.params.confirmationNumber,hotelId:this.hotelCode};return k.a.getLotteryResult(e).then((function(e){var n;t.lotteryResult=e.data,(null===(n=t.lotteryResult.reservation.lottery_result)||void 0===n?void 0:n.entry_number)||(t.lotteryResult.reservation.lottery_result={entry_number:t.lotteryResult.entry_number}),t.$store.dispatch("booking/setBookingDetails",t.lotteryResult.reservation),[b.b.SELECTED_RESERVED,b.b.RESERVATION_CANCELLED].includes(t.lotteryResult.status)&&t.handleLotteryResultFlow(t.lotteryResult)})).catch((function(e){t.setRoomLotteryError(403===e.status?[{title:t.$t("roomLottery.accountNotMatched"),code:403}]:e.errors)})).finally((function(){t.loading=!1}))},formatDate:function formatDate(t){if(t){var e=Object(g.u)(t),n=g.r[this.$i18n.locale];return{date:Object(g.k)(e,"YYYY/MM/DD",n),time:Object(g.k)(e,"HH:mm",n),day:Object(g.k)(e,n.startsWith("zh")?"dddd":"ddd",n)}}},goToReservationPage:function goToReservationPage(t){var e;this.$router.push({name:P.a.reservation.review,params:{confirmationNumber:t.reservation_number},query:{hotelId:null===(e=t.hotel)||void 0===e?void 0:e.id,code:this.$store.getters["setting/getHotelCode"]}
1})},processBooking:function processBooking(){this.handleLotteryResultFlow(this.lotteryResult)}})},E=(n(1709),Object(a.a)($,(function render(){var t=this,e=t._self._c;return t.loading?e("div",{staticClass:"text-center"},[e("b-spinner",{staticClass:"spinner-64px"})],1):e("div",[t.lotteryResult&&t.lotteryResult.entry_number?e("checkout-layout",{staticClass:"detail-container",scopedSlots:t._u([{key:"side",fn:function fn(){return[e("room-lottery-action",{staticClass:"hide-mobile mb-30px",attrs:{"lottery-result":t.lotteryResult}})]},proxy:!0}],null,!1,464350074)},[e("div",{staticClass:"details"},[e("div",{staticClass:"status mobile-margin"},[e(t.statusIcon,{tag:"component",staticClass:"icon-24px flex-shrink-0"}),t._v(" "),e("span",{class:["status-message",t.statusTitleClass],attrs:{"data-cy":"status-title"}},[t._v(t._s(t.statusTitle))])],1),t._v(" "),e("div",{staticClass:"mobile-margin"},[t.lotteryStatus===t.LotteryStatusMap.NOT_SELECTED?e("p",[t._v("\n            "+t._s(t.$t("roomLottery.notSelectedNotice"))+"\n          ")]):t.lotteryStatus===t.LotteryStatusMap.SELECTED_NOTIFIED?e("p",[e("span",[t._v(" "+t._s(t.$t("roomLottery.lotteryWinnerNotice01")))]),t._v(" "),e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],staticClass:"minw-3 d-flex align-items-center justify-content-center my-2",attrs:{id:"additional-question-submit",type:"submit"},on:{click:t.processBooking}},[t._v("\n              "+t._s(t.$t("myProfile.processBooking"))+"\n            ")]),t._v(" "),e("strong",[t._v("\n              "+t._s(t.reserveDeadlineNotice)+"\n            ")])],1):t.isCancelled?e("p",[t._v("\n            "+t._s(t.$t("roomLottery.cancellationEmailDesc",[t.lotteryResult.reservation.guest.email]))+"\n          ")]):e("p",[t._v("\n            "+t._s(t.resultDateTimeNotice)),e("br"),t._v("\n            "+t._s(t.$t("roomLottery.resultDateNotice02"))),e("br"),t._v("\n            "+t._s(t.$t("roomLottery.resultDateNotice03"))+"\n          ")])]),t._v(" "),e("reservation-number-box",{staticClass:"mt-22px mobile-margin",attrs:{"booking-details":t.bookingDetails}},[t._v("\n          "+t._s(t.$t("roomLottery.lotteryEntryNumber"))+":\n          "),e("span",[t._v(t._s(t.$route.params.confirmationNumber))])]),t._v(" "),e("reservation-detail",{staticClass:"mb-3 mt-30px",attrs:{"booking-details":t.bookingDetails,wide:!t.isMobile,cancelled:t.isCancelled,"brand-notifications":t.lotteryEventNotifications,"show-room-image":"","booking-complete":""}}),t._v(" "),t.isMobile?e("room-lottery-action",{staticClass:"mt-30px",attrs:{"lottery-result":t.lotteryResult}}):t._e()],1),t._v(" "),e("room-lottery-cancel-modal",{attrs:{"lottery-result":t.lotteryResult},on:{"lottery-cancelled":t.getLotteryResult}})],1):t._e()],1)}),[],!1,null,"0719ed85",null));e.default=E.exports},995:function(t,e,n){"use strict";var o=n(33),i=Object(o.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",fill:"#767677"}},this.$listeners),[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),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 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}})])}),[],!1,null,null,null);e.a=i.exports},996:function(t,e,n){},999:function(t,e,n){"use strict";function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(n,!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(854),i=n(1059),a=n(49),r={name:"CalendarModal",components:{DatePicker:o.DatePicker,MobileBottomModal:i.a},props:{id:{type:String,default:"calendar-modal"},config:{type:Object,required:!0},value:{type:[Array,Date,String],required:!0},oneDateOnly:{type:Boolean,default:!1},nights:{type:Number,default:null}},data:function data(){return{showDatePicker:!1,localValue:this.$clone(this.value),events:["onDayCreate","onReady","onOpen","onClose","onMonthChange","onChange"]}},computed:{stayDates:function stayDates(){return this.localValue&&0!==this.localValue.length?this.localValue.split(this.config.locale.rangeSeparator):[]},checkoutDate:function checkoutDate(){return this.stayDates[0]&&this.nights>0?Object(a.a)(this.stayDates[0],this.nights):this.stayDates[0]}},methods:{initial:function initial(){this.showDatePicker=!0,this.localValue=this.value},handleApply:function handleApply(){this.$emit("on-change",this.localValue),this.$bvModal.hide(this.id
1)},close:function close(){this.showDatePicker=!1,this.$emit("close")}}},s=(n(1169),n(33)),c=Object(s.a)(r,(function render(){var t=this,e=t._self._c;return e("mobile-bottom-modal",{attrs:{id:t.id,"custom-class":"bottom-modal-mobile","content-class":"calendar-modal",size:"lg","hide-footer":"","hide-header":"",title:t.oneDateOnly?t.$t("searchBar.checkIn"):t.$t("searchBar.checkInAndOut")},on:{show:t.initial,hidden:t.close}},[e("div",{staticClass:"scroll-viewer"},[t.showDatePicker?e("date-picker",{attrs:{"custom-class":["w-100","hidden-input"],config:_objectSpread({},t.config,{inline:!0}),events:t.events},model:{value:t.localValue,callback:function callback(e){t.localValue=e},expression:"localValue"}}):t._e()],1),t._v(" "),e("div",{staticClass:"selected-block"},[e("div",{staticClass:"display-date-block right-border"},[e("span",{staticClass:"gray-font text-sm"},[t._v(t._s(t.$t("searchBar.checkIn")))]),t._v(" "),e("span",{staticClass:"stay-date"},[t._v(t._s(t.stayDates[0]||"-"))])]),t._v(" "),t.oneDateOnly?t._e():e("div",{staticClass:"display-date-block"},[e("span",{staticClass:"gray-font text-sm"},[t._v(t._s(t.$t("searchBar.checkOut")))]),t._v(" "),e("span",{staticClass:"stay-date"},[t._v(t._s(("single"===t.config.mode?t.checkoutDate:t.stayDates[1])||"-"))])])]),t._v(" "),e("div",{staticClass:"px-3 pb-3"},[e("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],staticClass:"w-100",attrs:{disabled:"single"!==t.config.mode&&t.stayDates.length<2,"data-cy":"calendar-modal-confirm"},on:{click:t.handleApply}},[t._v(t._s(t.$t("base.apply")))])],1)])}),[],!1,null,"73580690",null);e.a=c.exports}}]);
2//# sourceMappingURL=page-RoomLottery-Confirmation-vue.5ea7bff7f384efab42f9.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.