1(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{1057:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o}));var n={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"},o={PROCESS_BOOKING:"processBooking",VIEW_DETAILS:"viewDetails",RESTORE_ENTRY:"restoreEntry",CANCEL_RESERVATION:"cancelReservation",CANCEL_ENTRY:"cancelEntry"}},1330:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(11),o=r(320),s=r(49),a=r(9),i=r(1057),u=r(17),c=r(15),l=function getBookingWidgetSettings(e){return u.a.getData(Object(c.O)(e))};function asyncGeneratorStep(e,t,r,n,o,s,a){try{var i=e[s](a),u=i.value}catch(c){return void r(c)}i.done?t(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,o,_next,_throw,"throw",e)}_next(void 0)}))}}var d=function useLotteryCompleteFlow(){var e=Object(o.useRouter)(),t=Object(o.useRoute)(),r=Object(a.getCurrentInstance)().proxy.$store,u=Object(a.ref)(!1),c=Object(a.computed)((function(){return r.getters["setting/getHotelCode"]})),d={};function isReserveDeadlinePassed(e){return Object(s.u)(e.lottery_event.reserve_deadline).getTime()<Date.now()}function _handleLotteryResultFlow(){return(_handleLotteryResultFlow=_asyncToGenerator(regeneratorRuntime.mark((function _callee(r){var o,s,a,p,f,y,_,b;return regeneratorRuntime.wrap((function _callee$(v){for(;;)switch(v.prev=v.next){case 0:if(this.$store.dispatch("mcp/setSelectedCurrency","JPY"),![i.b.SELECTED_RESERVED,i.b.RESERVATION_CANCELLED].includes(r.status)){v.next=5;break}e.push({name:n.a.reservation.confirmation,params:{confirmationNumber:r.reservation.reservation_number},query:{code:c.value}}),v.next=24;break;case 5:if(!isReserveDeadlinePassed(r)){v.next=10;break}u.value=!0,t.name!==n.a.roomLottery.complete&&e.push({name:n.a.roomLottery.complete,params:{confirmationNumber:r.entry_number},query:{code:c.value}}),v.next=24;break;case 10:if(i.b.SELECTED_NOTIFIED!==r.status){v.next=24;break}if(s={name:n.a.reservation.guestDetail,query:{code:(null===(o=r.hotel)||void 0===o?void 0:o.id)||c.value,lottery_entry_number:r.entry_number,prev_route:t.name}},c.value.replace(/-/g,"")===s.query.code.replace(/-/g,"")){v.next=23;break}if(void 0!==(a=d[s.query.code])){v.next=20;break}return v.next=17,l(s.query.code);case 17:f=v.sent,a=(null===(p=f.booking_widget_setting_attributes.standalone_settings)||void 0===p?void 0:p.url)||null,d[s.query.code]=a;case 20:a?(y=new URL(a),window.open(y.toString()+e.resolve(s).href.slice(1),"_blank")):(_=new URL(window.location.origin+e.resolve(s).href),b=new URL(r.hotel.url),_.searchParams.delete("code"),b.searchParams.set("tripla_booking_widget_open",_.pathname+_.search),window.open(b.toString(),"_blank")),v.next=24;break;case 23:e.push(s);case 24:case"end":return v.stop()}}),_callee,this)})))).apply(this,arguments)}return{handleLotteryResultFlow:function handleLotteryResultFlow(e){return _handleLotteryResultFlow.apply(this,arguments)},isLotteryReserveDeadlinePassed:u}}},1563:function(e,t,r){},1707:function(e,t,r){"use strict";r(1563)},942:function(e,t,r){"use strict";r.r(t);var n=r(325),o=r(40),s=r(11),a=r(990),i=r(1330);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(r,!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={name:"RoomLotteryComplete",components:{MembershipResult:a.a},beforeRouteLeave:function beforeRouteLeave(e,t,r){this.isLotteryReserveDeadlinePassed||r()},setup:function setup(){var e=Object(i.a)();return{handleLotteryResultFlow:e.handleLotteryResultFlow,isLotteryReserveDeadlinePassed:e.isLotteryReserveDeadlinePassed}},data:function data(){return{loading:!0,lotteryResult:null}},computed:_objectSpread({},Object(o.d)({isUserSignedIn:"membership/isUserSignedIn",currentUser:"membership/getCurrentUser",setting:"setting/getSetting",isTiersMode:"setting/isTiersMode"}),{hotelCode:function hotelCode(){return this.$route.query.code}}),created:function created(){this.isUserSignedIn?this.getLotteryResult():this.$router.push({name:s.a.membership.sign
1In,query:{urlBack:this.$route.fullPath}})},methods:_objectSpread({},Object(o.c)({setRoomLotteryError:"error/setRoomLotteryError"}),{getLotteryResult:function getLotteryResult(){var e=this,t={entryNumber:this.$route.params.confirmationNumber,hotelId:this.hotelCode};return n.a.getLotteryResult(t).then((function(t){e.lotteryResult=t.data,e.handleLotteryResultFlow(e.lotteryResult)})).catch((function(t){e.setRoomLotteryError(403===t.status?[e.$t("roomLottery.accountNotMatched")]:t.errors)})).finally((function(){e.loading=!1}))}})},c=(r(1707),r(33)),l=Object(c.a)(u,(function render(){var e=this,t=e._self._c;return e.loading?t("div",{staticClass:"text-center"},[t("b-spinner",{staticClass:"spinner-64px"})],1):e.isLotteryReserveDeadlinePassed?t("membership-result",{scopedSlots:e._u([{key:"content",fn:function fn(){return[t("h4",[e._v(e._s(e.$t("roomLottery.reservationDeadlinePassed")))]),e._v(" "),t("p",{staticClass:"result-secondary-text"},[e._v("\n "+e._s(e.$t("roomLottery.reservationDeadlinePassedDesc"))+"\n ")])]},proxy:!0}])}):e._e()}),[],!1,null,"b1eb60e8",null);t.default=l.exports},977:function(e,t,r){},989:function(e,t,r){"use strict";r(977)},990:function(e,t,r){"use strict";var n={name:"MembershipResult"},o=(r(989),r(33)),s=Object(o.a)(n,(function render(){var e=this,t=e._self._c;return t("div",{staticClass:"wrapper"},[t("div",{staticClass:"form-container"},[e._t("content",(function(){return[t("h4",[e._v("Title")]),e._v(" "),t("h5",{staticClass:"secondary-text"},[e._v("Subtitle")])]}))],2)])}),[],!1,null,"3a531cfa",null);t.a=s.exports}}]); 2//# sourceMappingURL=page-RoomLottery-Complete-vue.26a0eaf54829a0feb006.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.