(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["checkout"],{"00b9":function(t,e,i){},"023b":function(t,e,i){"use strict";i("5f0e")},"0788":function(t,e,i){"use strict";i("e1e8")},"0994":function(t,e,i){"use strict";i("00b9")},1013:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"checkout-payment"},[i("app-title-bar",{attrs:{title:t.$t("Pay")}}),i("div",{staticClass:"top-back"}),i("div",{staticClass:"subtotal-container"},[i("div",{staticClass:"item header"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.itemCount)+" "+t._s(t.$t("items total"))+"\n ")])]),t.isShowDetail?[t.discountedAmount>0?i("div",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Subtotal"))+"\n ")]),i("div",{staticClass:"price"},[i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(t.amountPrice.toFixed(2)))])])]):t._e(),t.discountedAmount>0?i("div",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Coupon code"))+"\n ")]),i("div",{staticClass:"price"},[t._v("\n -\n "),i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(t.discountedAmount.toFixed(2)))])])]):t._e()]:t._e(),i("div",{staticClass:"item total"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Total"))+"\n ")]),i("div",{staticClass:"price"},[i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(t.actualAmount.toFixed(2)))])])])],2),t.$platform.isCn?i("div",{staticClass:"payment-list"},[t.$platform.isWechat?i("div",{staticClass:"payment-list-item",on:{click:function(e){return t.changePayment("wechatpay-oa")}}},["wechatpay-oa"===t.paymentType?i("span",{staticClass:"iconfont icondotcircle"}):i("span",{staticClass:"iconfont iconTickcircle"}),i("div",{staticClass:"payment-name"},[i("span",[t._v(t._s(t.$t("WeChat Pay")))])]),i("div",{staticClass:"payment-icon wechat"})]):i("div",{staticClass:"payment-list-item",on:{click:function(e){return t.changePayment("alipay-wap")}}},["alipay-wap"===t.paymentType?i("span",{staticClass:"iconfont icondotcircle"}):i("span",{staticClass:"iconfont iconTickcircle"}),i("div",{staticClass:"payment-name"},[i("span",[t._v(t._s(t.$t("Alipay")))])]),i("div",{staticClass:"payment-icon alipay"})])]):i("div",{staticClass:"payment-list"},["HKD"===t.currency?i("div",{staticClass:"payment-list-item",class:{selected:"alipayhk-wap"===t.paymentType},on:{click:function(e){return t.changePayment("alipayhk-wap")}}},["alipayhk-wap"===t.paymentType?i("span",{staticClass:"iconfont icondotcircle"}):i("span",{staticClass:"iconfont iconTickcircle"}),t._m(0),i("div",{staticClass:"payment-icon alipay"})]):t._e(),t.isHidePaypal?t._e():i("div",{staticClass:"payment-list-item",class:{selected:"paypal"===t.paymentType},on:{click:function(e){return t.changePayment("paypal")}}},["paypal"===t.paymentType?i("span",{staticClass:"iconfont icondotcircle"}):i("span",{staticClass:"iconfont iconTickcircle"}),t._m(1),i("div",{staticClass:"payment-icon paypal"})]),i("div",{staticClass:"payment-list-item",on:{click:function(e){return t.changePayment("stripe-card")}}},["stripe-card"===t.paymentType?i("span",{staticClass:"iconfont icondotcircle"}):i("span",{staticClass:"iconfont iconTickcircle"}),i("div",{staticClass:"payment-name"},[i("span",[t._v(t._s(t.$t("Credit card")))])]),i("div",{staticClass:"payment-icon visa"}),i("div",{staticClass:"payment-icon master"}),i("div",{staticClass:"payment-icon axp"})])]),"stripe-card"===t.paymentType?i("div",{staticClass:"strip-form-container"},[i("StripeForm",{ref:"stripeForm"})],1):t._e(),i("div",{staticClass:"bottom-container"},[i("div",{staticClass:"tips"},[t._v(t._s(t.$t("All payment information is secured and encrypted")))]),i("button",{staticClass:"submit-button",on:{click:t.createOrder}},[t._v(t._s(t.$t("Pay")))])])],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"payment-name"},[i("span",[t._v("Alipay HK")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"payment-name"},[i("span",[t._v("PayPal")])])}],a=(i("8e6e"),i("456d"),i("7f7f"),i("c5f6"),i("96cf"),i("1da1")),o=(i("ac6a"),i("ade3")),r=i("2f62"),c=i("365c"),u=i("90b9"),l=i("3082");function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function p(t){for(var e=1;e element.");return n.appendChild(i),i},p=function(t,e){t&&t._registerWrapper&&t._registerWrapper({name:"stripe-js",version:"1.15.0",startTime:e})},h=null,m=function(t){return null!==h||(h=new Promise((function(e,i){if("undefined"!==typeof window)if(window.Stripe&&t&&console.warn(u),window.Stripe)e(window.Stripe);else try{var n=l();n&&t?console.warn(u):n||(n=d(t)),n.addEventListener("load",(function(){window.Stripe?e(window.Stripe):i(new Error("Stripe.js not available"))})),n.addEventListener("error",(function(){i(new Error("Failed to load Stripe.js"))}))}catch(s){return void i(s)}else e(null)}))),h},f=function(t,e,i){if(null===t)return null;var n=t.apply(void 0,e);return p(n,i),n},v=Promise.resolve().then((function(){return m(null)})),b=!1;v["catch"]((function(t){b||console.warn(t)}));var y=function(){for(var t=arguments.length,e=new Array(t),i=0;ie.product.limit_purchased_num-e.product.user_purchased_num?i("div",{staticClass:"limit-tip"},[t._v("\n "+t._s(t.$t("Quantity over limit"))+"\n ")]):t._e(),i("div",{staticClass:"price"},[i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s((100*e.subOption.price[t.currency]*e.quantity/100).toFixed(2)))])])])])])})),t._l(t.restItems,(function(e){return i("div",{key:e.id,staticClass:"order-product-list-item"},[i("div",{staticClass:"product-image",style:{backgroundImage:"url('"+e.product.image+"')"}}),i("div",{staticClass:"pur-detail"},[i("div",{staticClass:"product-name"},[t._v("\n "+t._s(t._f("lang")(e.product.details,t.locale,"title"))+"\n ")]),e.productNeedReservation?i("div",{staticClass:"variant-reservation"},[e.productNeedReservationDateTime?i("div",[t._v(t._s(t._f("date")(e.book_dt,"YYYY-MM-DD HH:mm")))]):i("div",[t._v(t._s(t._f("date")(e.book_dt,"YYYY-MM-DD")))])]):i("div",{staticClass:"variant-valid"},[e.variant.valid_start_dt?i("div",[t._v(t._s(t._f("date")(e.variant.valid_start_dt)))]):t._e(),e.variant.valid_end_dt?i("div",[t._v(t._s(t._f("date")(e.variant.valid_end_dt)))]):t._e()]),i("div",{staticClass:"pur-info"},[i("div",{staticClass:"count"},[i("span",{staticClass:"number"},[t._v("x"+t._s(e.quantity))])]),e.product.is_limit_purchased&&t.productSum[e.product.id].num>e.product.limit_purchased_num-e.product.user_purchased_num?i("div",{staticClass:"limit-tip"},[t._v("\n "+t._s(t.$t("Quantity over limit"))+"\n ")]):t._e(),i("div",{staticClass:"price"},[i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s((100*e.variant.price[t.currency]*e.quantity/100).toFixed(2)))])])])])])}))],2)},m=[];function f(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function v(t){for(var e=1;e-1?t.currencyName+" ":t.currencyName)+t._s(e.price[t.currency]||"--")+" "+t._s(t.$t("/day")))])]),e.available?i("div",{staticClass:"option-order-count"},[i("button",{class:{disabled:e.num<=t.minPurchaseQuantity(e)},on:{click:function(i){return t.decreaseSubOptionNum(e)}}},[t._v("-")]),i("span",{staticClass:"num"},[t._v(t._s(e.num))]),i("button",{class:{disabled:e.num>=t.maxPurchaseQuantity(e)},on:{click:function(i){return t.increaseSubOptionNum(e)}}},[t._v("+")])]):t._e()]),i("div",{staticClass:"suboption-tips"},[i("span",[t._v(t._s(e.details[t.locale].meta.brief))])])])})),0)]),i("md-date-picker",{key:"startDatePicker",ref:"startDatePicker",attrs:{"min-date":t.rentStartDate,"max-date":t.rentEndDate,"ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel"),type:"date",title:t.$t("Rent date"),"unit-text":t.dateUnit},on:{confirm:t.onStartDatePickerConfirm},model:{value:t.isStartDatePickerShow,callback:function(e){t.isStartDatePickerShow=e},expression:"isStartDatePickerShow"}}),i("md-date-picker",{key:"endDatePicker",ref:"endDatePicker",attrs:{"min-date":t.returnStartDate,"max-date":t.returnEndDate,"ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel"),type:"date",title:t.$t("Return date"),"unit-text":t.dateUnit},on:{confirm:t.onEndDatePickerConfirm},model:{value:t.isEndDatePickerShow,callback:function(e){t.isEndDatePickerShow=e},expression:"isEndDatePickerShow"}}),i("md-dialog",{attrs:{title:t.$t("Purchase notes"),closable:!0},model:{value:t.isShowBuyTips,callback:function(e){t.isShowBuyTips=e},expression:"isShowBuyTips"}},[i("div",{staticClass:"buy-tips"},[t.costIncluded?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Inclusions")))]),i("span",{domProps:{innerHTML:t._s(t.costIncluded)}})]):t._e(),t.costNotIncluded?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Exclusions")))]),i("span",{domProps:{innerHTML:t._s(t.costNotIncluded)}})]):t._e(),t.precautions?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Important to Know")))]),i("span",{domProps:{innerHTML:t._s(t.precautions)}})]):t._e(),t.refundPolicy?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Refund Policy")))]),i("span",{domProps:{innerHTML:t._s(t.refundPolicy)}})]):t._e()])])],1)},N=[];function A(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function q(t){for(var e=1;e=i&&0!==t.quantity}))>-1:t.max_quantity_per_sub_option<0||t.max_quantity_per_sub_option>=t.min_purchase_quantity,n})).length>0;return{available:s,text:e.details[t.locale].title,value:e.id,data:e}}))},availableOptionDates:function(){var t=this;if(!this.bookingOption)return[];var e=this.bookingOption.sub_options[0].book_n_days_before_book_date,i=[],n=Object.keys(this.bookingOption.available_book_dates);return n.forEach((function(n){var s=t.bookingOption.available_book_dates[n];c()(n).add(1,"day").isBefore(c()(c()().format("YYYY-MM-DD")).add(e,"days"))||s.some((function(t){return t&&t.length>1&&0!==t[1]}))&&i.push(n)})),i},rentStartDate:function(){var t=null;return t=this.availableOptionDates.length>0?new Date(this.availableOptionDates[0]):c()(c()().add(1,"days").format("YYYY-MM-DD")).toDate(),c()().format("YYYY-MM-DD")===c()(t).format("YYYY-MM-DD")&&(t=c()(t).add(1,"days").toDate()),t},rentEndDate:function(){var t=null;if(this.bookingEndDate){var e=1;this.bookingSubOptions.length&&(e=this.bookingSubOptions[0].min_book_days),t=c()(this.bookingEndDate).add(-e,"days").toDate()}else t=this.availableOptionDates.length>1?new Date(this.availableOptionDates[this.availableOptionDates.length-1]):c()(c()().format("YYYY-MM-DD")).add(6,"months").toDate();return t},returnStartDate:function(){var t=null;if(this.bookingStartDate){var e=1;this.bookingSubOptions.length&&(e=this.bookingSubOptions[0].min_book_days),t=c()(this.bookingStartDate).add(e,"days").toDate()}else t=this.availableOptionDates.length>0?new Date(this.availableOptionDates[0]):c()(c()().format("YYYY-MM-DD")).toDate();return c()().format("YYYY-MM-DD")===c()(t).format("YYYY-MM-DD")&&(t=c()(t).add(1,"days").toDate()),t},returnEndDate:function(){return this.availableOptionDates.length>1?new Date(this.availableOptionDates[this.availableOptionDates.length-1]):c()(c()().format("YYYY-MM-DD")).add(6,"months").toDate()},startDateFormated:function(){if(this.bookingStartDate){var t=c()(this.bookingStartDate);return{date:"en_US"===this.$i18n.locale?t.format("MMM-DD"):t.format("M月D日"),weekDay:this.weekDays[t.day()]}}return null},defaultStartDate:function(){return this.tripDate.bookingStartDate?c()(this.tripDate.bookingStartDate).toDate():null},endDateFormated:function(){if(this.bookingEndDate){var t=c()(this.bookingEndDate);return{date:"en_US"===this.$i18n.locale?t.format("MMM-DD"):t.format("M月D日"),weekDay:this.weekDays[t.day()]}}return null},defaultEndDate:function(){return this.tripDate.bookingEndDate?c()(this.tripDate.bookingEndDate).toDate():null},costIncluded:function(){return this.product?this.product.details[this.locale].meta.fee_include:null},costNotIncluded:function(){return this.product?this.product.details[this.locale].meta.fee_not_include:null},precautions:function(){return this.product?this.product.details[this.locale].meta.precautions:null},refundPolicy:function(){if(!this.product)return null;var t="";return this.product.details[this.locale].meta.refund_policy&&(t+=this.product.details[this.locale].meta.refund_policy),this.product.details[this.locale].meta.refund_extra&&(t+=this.product.details[this.locale].meta.refund_extra),t},isLimitPurchased:function(){return!!this.product&&this.product.is_limit_purchased},limitedData:function(){if(!this.product)return{};var t=this.product.limit_purchased_start_date,e=this.product.limit_purchased_end_date;return t=c()(t).format("YYYY.MM.DD"),e=c()(e).format("YYYY.MM.DD"),{num:this.product.limit_purchased_num,start:t,end:e}}}),mounted:function(){this.initData()},methods:q(q({},Object(u["d"])("checkout",["mtSetBookingOption","mtSetBookingSubOptions","mtSetTripDate","mtSetBookingSubOptionNum"])),{},{maxPurchaseQuantity:function(t){return t&&t.max_purchase_quantity>0?t.max_purchase_quantity:10},minPurchaseQuantity:function(t){return t&&t.min_purchase_quantity>0?t.min_purchase_quantity:1},onOptionSelected:function(t){t.available&&this.mtSetBookingOption(t.data)},initData:function(){var t=this.optionPickerData.filter((function(t){return t.available}));t.length&&this.mtSetBookingOption(this.availableOptions.filter((function(e){return e.id===t[0].value}))[0]),this.initBookingDate()},initBookingDate:function(){this.mtSetTripDate({bookingStartDate:null,bookingEndDate:null})},initSubOptions:function(){var t=this,e=[];if(this.bookingOption){e=this.bookingOption.sub_options.filter((function(e){return e.details[t.$i18n.locale]}));var i=!1;e=e.map((function(e){var n=!0;t.bookingOption.book_date_required&&(n=n&&(!t.bookingDate||e.available_book_dates.findIndex((function(e){return e.date===t.bookingDate}))>-1)),n=n&&0!==e.max_quantity_per_sub_option;var s=Object.assign({},e,{available:n});return!i&&n?(s.num=e.min_purchase_quantity,i=!0):s.num=0,s}))}this.mtSetBookingSubOptions(e)},decreaseSubOptionNum:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.available){t.next=2;break}return t.abrupt("return");case 2:return i=1,e.min_purchase_quantity>0&&(i=e.min_purchase_quantity),e.num>i?e.num--:e.num=0,t.next=7,this.mtSetBookingSubOptionNum(e);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),increaseSubOptionNum:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var i,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.available){t.next=2;break}return t.abrupt("return");case 2:if(i=10,n=1,s=-1,e.min_purchase_quantity>0&&(n=e.min_purchase_quantity),e.max_purchase_quantity>0&&(i=e.max_purchase_quantity),e.max_quantity_per_sub_option>-1&&(s=e.max_quantity_per_sub_option),!(s>-1&&n>s)){t.next=11;break}return this.$toast.info(this.$t("Out of stock")),t.abrupt("return");case 11:if(!(e.num-1&&e.num>=s?this.$toast.info(this.$t("We only have {stock} left",{stock:s})):e.num>=i?this.$toast.info(this.$t("Max {max} per person",{max:i})):this.$toast.info(this.$t("Quantity out of range"));case 18:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),showStartDatePicker:function(){this.isStartDatePickerShow=!0},onStartDatePickerConfirm:function(){this.mtSetTripDate({bookingStartDate:this.$refs.startDatePicker.getFormatDate("yyyy-MM-dd")})},showEndDatePicker:function(){this.isEndDatePickerShow=!0},onEndDatePickerConfirm:function(){this.mtSetTripDate({bookingEndDate:this.$refs.endDatePicker.getFormatDate("yyyy-MM-dd")})},openPopupBuyTips:function(){this.isShowBuyTips=!0},closePopupBuyTips:function(){this.isShowBuyTips=!1},onOptionClick:function(){this.availableOptions.length>1&&(this.isOptionPickerShow=!0)}})},F=L,Y=(i("65ce"),Object(_["a"])(F,R,N,!1,null,"2923ab24",null)),B=Y.exports,H=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"checkout-info"},[t.product?i("div",{staticClass:"product-info"},[t.image?i("div",{staticClass:"product-image",style:{backgroundImage:"url('"+t.image+"')",backgroundSize:"cover"}}):t._e(),i("div",{staticClass:"product-desc"},[i("div",{staticClass:"title"},[t._v(t._s(t.title))]),t.sku&&t.sku.valid_type===t.RESTAURANT_VALID_TYPE.SpecificPeriod?i("div",{staticClass:"expired"},[t._v(t._s(t.$t("Expired at"))+" "+t._s(t.product&&t.product.product_end_date))]):t._e(),t.sku?i("div",{staticClass:"price"},[t._v("\n "+t._s(t.currencyName)+" "+t._s(t.price)+"\n ")]):t._e()])]):t._e(),i("div",{staticClass:"pur-info"},[i("div",{staticClass:"label"},[t._v("\n "+t._s(t.$t("Quantity"))+"\n ")]),i("div",{staticClass:"value quantity"},[i("button",{class:{disabled:t.quantity<=t.minPurchaseQuantity},on:{click:t.decreaseQuantity}},[t._v("-")]),i("span",{staticClass:"num"},[t._v(t._s(t.quantity))]),i("button",{class:{disabled:t.quantity>=t.maxPurchaseQuantity},on:{click:t.increaseQuantity}},[t._v("+")])])]),t.isLimitPurchased?i("div",{staticClass:"limit-tip"},[t._v("\n "+t._s(t.$t("From {start} to {end}, the product is limited to {num} per account",t.limitedData))+"\n ")]):t._e()]),t.productNeedReservation?i("div",{staticClass:"reserve-info",on:{click:t.changeReservation}},[i("div",{staticClass:"label"},[t._v("\n "+t._s(t.$t("Reservation time"))),i("span",{staticClass:"required"},[t._v("*")])]),i("div",{staticClass:"date"},[t.tripDate.bookingDate?i("span",[t._v(t._s(t.tripDate.bookingDate))]):i("span",{staticClass:"empty"},[t._v(t._s(t.$t("Date")))])]),t.productNeedReservationDateTime?i("div",{staticClass:"time"},[t.tripDate.bookingTime?i("span",[t._v(t._s(t.tripDate.bookingTime))]):i("span",{staticClass:"empty"},[t._v(t._s(t.$t("Time")))])]):t._e()]):t._e(),t.product?i("Reservation",{ref:"reservation",attrs:{reservation:t.currentReservation,restaurantProduct:t.product}}):t._e()],1)},V=[],Q=i("b57d"),U=i("064e");function K(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function W(t){for(var e=1;ethis.product.limit_purchased_num-this.product.user_purchased_num},limitedData:function(){if(!this.product)return{};var t=this.product.limit_purchased_start_date,e=this.product.limit_purchased_end_date;return t=c()(t).format("YYYY.MM.DD"),e=c()(e).format("YYYY.MM.DD"),{num:this.product.limit_purchased_num,start:t,end:e}}}),created:function(){this.restQuantity?this.quantity=this.restQuantity:this.quantity=this.minPurchaseQuantity,this.mtSetRestQuantity(this.quantity)},methods:W(W({},Object(u["d"])("checkout",["mtSetRestQuantity","mtSetTripDate","mtSetRestReservation"])),{},{changeReservation:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$nextTick(Object(a["a"])(regeneratorRuntime.mark((function t(){var i,n,s,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$refs.reservation.show();case 3:return i=t.sent,n=i.bookingDate,s=i.bookingTime,a=i.quantity,console.log({bookingDate:n,bookingTime:s,quantity:a}),t.next=8,e.mtSetRestReservation({bookingDate:n,bookingTime:s,quantity:a});case 8:t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])}))));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),decreaseQuantity:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=1,this.minPurchaseQuantity>0&&(e=this.minPurchaseQuantity),this.quantity>e?this.quantity--:this.quantity=0,t.next=5,this.mtSetRestQuantity(this.quantity);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),increaseQuantity:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=10,i=1,this.minPurchaseQuantity>0&&(i=this.minPurchaseQuantity),this.maxPurchaseQuantity>0&&(e=this.maxPurchaseQuantity),!(this.quantity-1?[e]:[]},districtText:function(){return this.addressDistrict?this.addressDistrict.name:""},allPogDistrictList:function(){return[].concat(Object(st["a"])(this.hkPogDistrictList),[lt({},ct["a"])])},allDistrictOptions:function(){var t=this;return[this.allPogDistrictList.map((function(e){var i=t.$options.filters.lang(e.details,t.locale,"title"),n=e;return{label:i,value:n}}))]},currentDistInHk:function(){var t=this.addressDistrict;return this.hkPogDistrictList.findIndex((function(e){return t&&e.id===t.id}))>-1}},mounted:function(){this.getHkDist(),this.address=this.originAddress||"",this.doSearchDebounce=Object(rt["debounce"])(this.doSearch,300)},methods:{getAddressDistric:function(t){var e={id:t.id,name:{}};for(var i in t.details)e.name[i]=t.details[i].title;return e},onAddressFocus:function(){null===this.addressDistrict&&(this.$refs.mdInputAdress.blur(),this.$toast.info(this.$t("Area is required")))},onPickerConfirm:function(t){t&&(this.addressDistrict=this.getAddressDistric(t[0].value)),this.shouldShowAreaSelect=!1},getHkDist:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.districtLoading=!0,t.prev=1,t.next=4,l["a"].location.getHongKongDistrict(this.$i18n.locale);case 4:e=t.sent,this.hkPogDistrictList=e.results;case 6:return t.prev=6,this.districtLoading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,this,[[1,,6,9]])})));function e(){return t.apply(this,arguments)}return e}(),validateInputs:function(){return this.addressDistrict?!!this.address||(this.$toast.info(this.$t("Shipping address is required")),!1):(this.$toast.info(this.$t("Area is required")),!1)},getFullAddress:function(t){var e=t.name,i=t.address.length?t.address:"";return"".concat(e," ").concat(i).trim()},setAddress:function(t){this.address=t.name,this.keywords="",this.addressSearchList=[]},onSave:function(){if(this.validateInputs()){var t=this.addressDistrict,e=this.address;this.resolve({address_district:t,address:e}),this.hide()}},addressChange:function(){this.keywords=this.address,this.doSearchDebounce()},doSearch:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,i,n,s,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this,i=this.addressDistrict,n=this.keywords,s=this.$i18n.locale,n.trim()){t.next=6;break}return this.addressSearchList=[],t.abrupt("return");case 6:if(this.currentDistInHk){t.next=9;break}return this.addressSearchList=[],t.abrupt("return");case 9:if(a=this.$options.filters.lang(i.name,this.$i18n.locale),!i){t.next=26;break}return this.addressSearching=!0,t.prev=12,e.cancelflightRequest&&(e.cancelflightRequest(),e.cancelflightRequest=null),t.next=16,l["a"].location.searchG({keywords:"".concat(a," ").concat(n),language:s,lang:s},{cancelToken:new ot.a.CancelToken((function(t){e.cancelflightRequest=t}))});case 16:o=t.sent,this.addressSearchList=o,e.cancelflightRequest=null,t.next=23;break;case 21:t.prev=21,t.t0=t["catch"](12);case 23:return t.prev=23,this.addressSearching=!1,t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[12,21,23,26]])})));function e(){return t.apply(this,arguments)}return e}(),show:function(){var t=this;return this.$set(this.isPopupShow,"bottom",!0),new Promise((function(e,i){t.resolve=e,t.reject=i}))},cancel:function(){this.reject("hide"),this.hide()},hide:function(){this.$set(this.isPopupShow,"bottom",!1)}},watch:{originAddress:function(t){this.address=t||""},address_district:function(t){this.addressDistrict=t}}},pt=dt,ht=(i("124b"),i("55f8"),Object(_["a"])(pt,it,nt,!1,null,"456f4349",null)),mt=ht.exports;function ft(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function vt(t){for(var e=1;e0?i("div",{staticClass:"item header"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Subtotal"))+"\n ")]),i("div",{staticClass:"price"},[t._v("\n "+t._s(["AED","JOD","₨","RM"].indexOf(t.currencyName)>-1?t.currencyName+" ":t.currencyName)+t._s(t.amountPrice.toFixed(2))+"\n ")])]):t._e(),i("div",{class:{item:!0,"only-item":!(t.discountedAmount>0)},on:{click:function(e){return t.showCoupon()}}},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Coupon discount"))+"\n ")]),i("div",{staticClass:"coupon"},[t.discountedAmount>0?i("span",{staticClass:"discounted-amount"},[t._v("- "+t._s(["AED","JOD","₨","RM"].indexOf(t.currencyName)>-1?t.currencyName+" ":t.currencyName)+t._s(t.discountedAmount.toFixed(2)))]):i("md-button",{attrs:{type:"link",loading:t.couponsFetching}},[t._v(t._s(t.$t("Use coupon")))]),i("span",{staticClass:"iconfont iconarrowright"})],1)]),t.mylinkPoints>0?i("div",{staticClass:"item",on:{click:function(e){return t.showMyLinkPointsRule()}}},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Promotion"))+"\n ")]),i("div",{staticClass:"coupon"},[t._v("\n "+t._s(t.mylinkPoints)+" "+t._s(t.$t("MyLink points"))+"\n "),i("span",{staticClass:"iconfont iconinfo"})])]):t._e(),i("PopupCouponUsage",{attrs:{show:t.isShowPopupCoupon},on:{"update:show":function(e){t.isShowPopupCoupon=e}}}),i("PopupMylinkPointRule",{attrs:{show:t.isShowMyLinkPointsRule},on:{"update:show":function(e){t.isShowMyLinkPointsRule=e}}})],1)},Ct=[],Ot=i("ecd3"),wt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("md-popup",{attrs:{position:"bottom"},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}},[i("md-popup-title-bar",{staticClass:"cp-pp-title",attrs:{title:t.$t("Point rules"),"large-radius":"","ok-text":t.$t("OK")},on:{confirm:t.onConfirm}}),i("div",{staticClass:"popup-content"},[i("div",[t._v("\n "+t._s(t.$t("1. After your order is completed, points will be sent"))+"\n ")]),i("div",[t._v("\n "+t._s(t.$t("2. The points will not be given if the order is refunded"))+"\n ")]),i("div",[t._v("\n "+t._s(t.$t("3. Points will be sent to your MyLink account"))+"\n ")])])],1)},Dt=[],Pt={props:{show:{type:Boolean,default:!1}},data:function(){return{showPopup:!1}},methods:{setShowPopupValue:function(t){this.showPopup=t},onConfirm:function(){this.showPopup=!1,this.$emit("update:show",!1)}},watch:{show:function(t){this.setShowPopupValue(t)}},created:function(){this.setShowPopupValue(this.show)}},St=Pt,xt=(i("8c1a"),Object(_["a"])(St,wt,Dt,!1,null,"dd813e8c",null)),$t=xt.exports;function jt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Tt(t){for(var e=1;e-1?t.currencyName+" ":t.currencyName)+t._s(e.price[t.currency]||"--"))])]),e.available?i("div",{staticClass:"option-order-count"},[i("button",{class:{disabled:e.num<=t.minPurchaseQuantity(e)},on:{click:function(i){return i.preventDefault(),t.decreaseSubOptionNum(e)}}},[t._v("-")]),i("span",{staticClass:"num"},[t._v(t._s(e.num))]),i("button",{class:{disabled:e.num>=t.maxPurchaseQuantity(e)},on:{click:function(i){return i.preventDefault(),t.increaseSubOptionNum(e)}}},[t._v("+")])]):t._e()]),i("div",{staticClass:"suboption-tips"},[e.available?i("span",[t._v(t._s(e.details[t.locale].meta.brief))]):i("span",[t._v(t._s(t.$t("Not available this day")))])])])})),0)],2),t.availableOptionDates.length?i("Calendar",{attrs:{dates:t.availableOptionDates,"default-value":t.bookingDate},on:{selected:t.onSelectedDate},model:{value:t.isCalendarShow,callback:function(e){t.isCalendarShow=e},expression:"isCalendarShow"}}):t._e(),i("md-dialog",{attrs:{title:t.$t("Purchase notes"),closable:!0},model:{value:t.isShowBuyTips,callback:function(e){t.isShowBuyTips=e},expression:"isShowBuyTips"}},[i("div",{staticClass:"buy-tips"},[t.costIncluded?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Inclusions")))]),i("span",{domProps:{innerHTML:t._s(t.costIncluded)}})]):t._e(),t.costNotIncluded?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Exclusions")))]),i("span",{domProps:{innerHTML:t._s(t.costNotIncluded)}})]):t._e(),t.precautions?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Important to Know")))]),i("span",{domProps:{innerHTML:t._s(t.precautions)}})]):t._e(),t.refundPolicy?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Refund Policy")))]),i("span",{domProps:{innerHTML:t._s(t.refundPolicy)}})]):t._e()])]),t.isTimePickerShow?i("md-picker",{key:t.timePickerKey,ref:"timePicker",attrs:{"mask-closable":!0,"ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel"),cols:2,"default-index":t.timeDefaultIndexs,"default-value":t.timeDefaultValues,data:t.timePickerOptions,"is-cascade":""},on:{confirm:t.onTimePickerConfirm},model:{value:t.isTimePickerShow,callback:function(e){t.isTimePickerShow=e},expression:"isTimePickerShow"}}):t._e()],1)},At=[],qt=i("3835"),Lt=(i("28a5"),i("fa96"));function Ft(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Yt(t){for(var e=1;e=i&&0!==t.quantity}))>-1:t.max_quantity_per_sub_option<0||t.max_quantity_per_sub_option>=t.min_purchase_quantity,n})).length>0;return{available:s,text:e.details[t.locale].title,value:e.id,data:e}}))},availableOptionDates:function(){var t=this;if(!this.bookingOption)return[];var e=this.bookingOption.sub_options[0].book_n_days_before_book_date,i=[],n=Object.keys(this.bookingOption.available_book_dates);return n.forEach((function(n){var s=t.bookingOption.available_book_dates[n];c()(n).add(1,"day").isBefore(c()().add(e,"days"))||s.some((function(t){return t&&t.length>1&&0!==t[1]}))&&i.push(n)})),i},startDate:function(){return this.availableOptionDates.length>0?new Date(this.availableOptionDates[0]):c()().toDate()},endDate:function(){return this.availableOptionDates.length>1?new Date(this.availableOptionDates[this.availableOptionDates.length-1]):c()().add(6,"months").toDate()},importantDates:function(){var t=this;return this.availableOptionDates.slice(0,4).map((function(e){var i=c()(e);return"en_US"===t.$i18n.locale?{value:i.format("YYYY-MM-DD"),display:i.format("MMM-DD"),weekDay:t.weekDays[i.day()]}:{value:i.format("YYYY-MM-DD"),display:i.format("M月D日"),weekDay:t.weekDays[i.day()]}}))},isImportantDateSelected:function(){var t=this;return this.bookingDate&&this.importantDates.findIndex((function(e){return e.value===t.bookingDate}))>-1},bookingDateFormated:function(){if(this.bookingDate){var t=c()(this.bookingDate);return{date:"en_US"===this.$i18n.locale?t.format("MMM-DD"):t.format("M月D日"),weekDay:this.weekDays[t.day()]}}return null},costIncluded:function(){return this.product?this.product.details[this.locale].meta.fee_include:null},costNotIncluded:function(){return this.product?this.product.details[this.locale].meta.fee_not_include:null},precautions:function(){return this.product?this.product.details[this.locale].meta.precautions:null},refundPolicy:function(){if(!this.product)return null;var t="";return this.product.details[this.locale].meta.refund_policy&&(t+=this.product.details[this.locale].meta.refund_policy),this.product.details[this.locale].meta.refund_extra&&(t+=this.product.details[this.locale].meta.refund_extra),t},isLimitPurchased:function(){return!!this.product&&this.product.is_limit_purchased},limitedData:function(){if(!this.product)return{};var t=this.product.limit_purchased_start_date,e=this.product.limit_purchased_end_date;return t=c()(t).format("YYYY.MM.DD"),e=c()(e).format("YYYY.MM.DD"),{num:this.product.limit_purchased_num,start:t,end:e}},leftLimitNum:function(){return this.product?this.product.limit_purchased_num-this.product.user_purchased_num:0},isNeedReservationDateTime:function(){return!!this.product&&(this.product.book_end_time&&this.product.book_start_time&&this.product.book_time_interval)}}),mounted:function(){this.initData()},methods:Yt(Yt({},Object(u["d"])("checkout",["mtSetBookingOption","mtSetBookingSubOptions","mtSetBookingDate","mtSetBookingSubOptionNum","mtSetBookingTime"])),{},{moment:c.a,maxPurchaseQuantity:function(t){return t&&t.max_purchase_quantity>0?t.max_purchase_quantity:10},minPurchaseQuantity:function(t){return t&&t.min_purchase_quantity>0?t.min_purchase_quantity:1},initTimeSelectedValue:function(t){this.timeDefaultIndexs=[],this.timeDefaultValues=t.split(":")},onTimePickerConfirm:function(){var t=this.$refs.timePicker.getColumnValues(),e=Object(qt["a"])(t,2),i=e[0],n=e[1],s="".concat(i.value,":").concat(n.value);this.bookingTime=c()(s,"HH:mm").toDate(),this.isTimePickerShow=!1,this.initTimeSelectedValue(s),this.mtSetBookingTime(s)},showTimePicker:function(){this.timePickerKey=this.timePickerKey+1,this.isTimePickerShow=!0},onTimeSelected:function(t){this.bookingTime=t,this.mtSetBookingTime(c()(t).format("HH:mm"))},getTimeCutSec:function(t,e){return c()(c()(t,e).format("HH:mm"),"HH:mm")},onOptionSelected:function(t){t.available&&this.mtSetBookingOption(t.data)},initData:function(){var t=this.optionPickerData.filter((function(t){return t.available}));if(t.length&&this.mtSetBookingOption(this.availableOptions.filter((function(e){return e.id===t[0].value}))[0]),this.initBookingDate(),this.isNeedReservationDateTime&&this.timeOptions&&this.timeOptions.length){this.bookingTime=this.timeOptions[0];var e=c()(this.bookingTime).format("HH:mm");this.timeDefaultValues=e.split(":"),this.mtSetBookingTime(e)}else this.mtSetBookingTime(null)},initBookingDate:function(){this.availableOptionDates.length&&this.bookingOption&&this.bookingOption.book_date_required?this.mtSetBookingDate(this.availableOptionDates[0]):this.mtSetBookingDate(null)},initSubOptions:function(){var t=this,e=[];if(this.bookingOption){e=this.bookingOption.sub_options.filter((function(e){return e.details[t.$i18n.locale]}));var i=!1;e=e.map((function(e){var n=!0;t.bookingOption.book_date_required&&(n=n&&(!t.bookingDate||e.available_book_dates.findIndex((function(e){return e.date===t.bookingDate}))>-1)),n=n&&0!==e.max_quantity_per_sub_option;var s=Object.assign({},e,{available:n});return!i&&n?(s.num=e.min_purchase_quantity,i=!0):s.num=0,s}))}this.mtSetBookingSubOptions(e)},decreaseSubOptionNum:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.available){t.next=2;break}return t.abrupt("return");case 2:return i=1,e.min_purchase_quantity>0&&(i=e.min_purchase_quantity),e.num>i?e.num--:e.num=0,t.next=7,this.mtSetBookingSubOptionNum(e);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),increaseSubOptionNum:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var i,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.available){t.next=2;break}return t.abrupt("return");case 2:if(i=10,n=1,s=-1,e.min_purchase_quantity>0&&(n=e.min_purchase_quantity),e.max_purchase_quantity>0&&(i=e.max_purchase_quantity),e.max_quantity_per_sub_option>-1&&(s=e.max_quantity_per_sub_option),!(s>-1&&n>s)){t.next=11;break}return this.$toast.info(this.$t("Out of stock")),t.abrupt("return");case 11:if(!(e.num-1&&e.num>=s?this.$toast.info(this.$t("We only have {stock} left",{stock:s})):e.num>=i?this.$toast.info(this.$t("Max {max} per person",{max:i})):this.$toast.info(this.$t("Quantity out of range"));case 18:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onSelectDate:function(){this.isCalendarShow=!0},onSelectedDate:function(t){this.mtSetBookingDate(t)},openPopupBuyTips:function(){this.isShowBuyTips=!0},closePopupBuyTips:function(){this.isShowBuyTips=!1},onOptionClick:function(){this.availableOptions.length>1&&(this.isOptionPickerShow=!0)}})},Ht=Bt,Vt=(i("1af2"),Object(_["a"])(Ht,Nt,At,!1,null,"ed43a132",null)),Qt=Vt.exports,Ut=i("3082");function Kt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Wt(t){for(var e=1;ethis.product.limit_purchased_num-this.product.user_purchased_num||this.restQuantity>this.product.limit_purchased_num-this.product.user_purchased_num)},isFreeProduct:function(){return"EC"===this.checkoutType&&2===this.product.variants[this.product.variants.length-1].purchase_type},hasWechatProduct:function(){if(this.isCartRoutine){var t=!1;return this.deliveryItems.length&&(t=this.deliveryItems.findIndex((function(t){return Gt.indexOf(t.product.id)>=0}))>=0),!t&&this.restItems.length&&(t=this.restItems.findIndex((function(t){return Gt.indexOf(t.product.id)>=0}))>=0),t}return!!this.product&&Gt.indexOf(this.product.id)>=0}}),methods:Wt(Wt(Wt({},Object(u["b"])("checkout",["getProductInfo"])),Object(u["d"])("checkout",["mtSetCoupon","mtUpdateCheckoutConfirmed","mtSetDeliveryItems","mtSetRestItems"])),{},{initProductInfo:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,t.prev=1,t.next=4,this.getProductInfo(e);case 4:i=this.$route.params.reservation,this.productNeedReservation&&!i&&this.$router.replace({name:"RestaurantProductDetail",params:{id:e}}),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),console.log(t.t0);case 11:return t.prev=11,this.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,this,[[1,8,11,14]])})));function e(e){return t.apply(this,arguments)}return e}(),changePayment:function(t){this.paymentType=t},validateInputs:function(){if("TV-RNT"===this.checkoutType){if(!this.tripDate.bookingStartDate)return this.$toast.info(this.$t("Rent date is required")),!1;if(!this.tripDate.bookingEndDate)return this.$toast.info(this.$t("Return date is required")),!1;if(c()(this.tripDate.bookingEndDate).isBefore(c()(this.tripDate.bookingStartDate)))return this.$toast.info(this.$t("Return date cant before rent date")),!1;if(!this.totalDays)return this.$toast.info(this.$t("At least one leased day")),!1;if(!this.bookingSubOptions.filter((function(t){return t.num})).length)return this.$toast.info(this.$t("Please enter quantity")),!1}if("TV-DEI"===this.checkoutType||"TV-COMMON"===this.checkoutType){if(this.bookingOption&&this.bookingOption.book_date_required&&!this.tripDate.bookingDate)return this.$toast.info(this.$t("Travel date is required")),!1;if(!this.bookingSubOptions.filter((function(t){return t.num})).length)return this.$toast.info(this.$t("Please enter quantity")),!1}if(this.isContactOnlyEmailNeeded){if(!this.bookingMeta.email.trim())return this.$toast.info(this.$t("Email is required")),!1;if(!Object(d["e"])(this.bookingMeta.email.trim()))return this.$toast.info(this.$t("Invalid email")),!1}return!this.isContactInfoNeeded||(this.bookingMeta.lastName?this.bookingMeta.firstName?this.bookingMeta.phone?null===this.bookingMeta.phone.toString().match(/^[0-9]*$/g)?(this.$toast.info(this.$t("Wrong format of phone number")),!1):this.bookingMeta.email.trim()?Object(d["e"])(this.bookingMeta.email.trim())?!!("shipping"!==this.shipping.type||this.shipping.address&&this.shipping.address.trim())||(this.$toast.info(this.$t("Shipping Address is required")),!1):(this.$toast.info(this.$t("Invalid email")),!1):(this.$toast.info(this.$t("Email is required")),!1):(this.$toast.info(this.$t("Phone number is required")),!1):(this.$toast.info(this.$t("First name is required")),!1):(this.$toast.info(this.$t("Last name is required")),!1))},onSubmitClick:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,i,n,s,a,o,r,c,u,h,m=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.submitting&&this.validateInputs()){t.next=2;break}return t.abrupt("return");case 2:if(!this.isFreeProduct){t.next=18;break}return e={currency:this.currencyCode,meta:Wt(Wt({},this.bookingMeta),{},{device:this.$platform.deviceName}),requested_amount:0},i={payment:e,checkout_lines:[{product_id:this.product.id,variant_id:this.product.variants[this.product.variants.length-1].id,quantity:this.restQuantity,scope:"EC"}],platform:0},this.productNeedReservationDateTime?i.checkout_lines[0].booking_fields={book_dt:this.tripDate.bookingDate+"T".concat(this.tripDate.bookingTime,":00.000"),input_entities:[]}:this.productNeedReservationDate&&(i.checkout_lines[0].booking_fields={book_dt:this.tripDate.bookingDate+"T00:00:00.000",input_entities:[]}),this.submitting=!0,this.$toast.loading(this.$t("Receiving")),t.prev=8,t.next=11,l["a"].order.createOrder2(i,this.$i18n.locale);case 11:this.isSubmitting=!1,this.$toast.hide(),this.$router.push({name:"CheckoutResult",query:{receiving_result:"1"}});case 14:return t.prev=14,this.submitting=!1,t.finish(14);case 17:return t.abrupt("return");case 18:if(this.mtUpdateCheckoutConfirmed(!0),n={checkout_lines:[],payment:{requested_amount:Number(this.actualAmount.toFixed(2)),meta:{user_name:"".concat(this.bookingMeta.firstName," ").concat(this.bookingMeta.lastName),user_last_name:this.bookingMeta.lastName,user_first_name:this.bookingMeta.firstName,user_email:this.bookingMeta.email.trim(),user_phone:"".concat(this.bookingMeta.countryCode," ").concat(this.bookingMeta.phone),comment:this.bookingMeta.remark,device:this.$platform.deviceName},currency:this.currencyCode},platform:0},("TV-DEI"===this.checkoutType||"CART"===this.checkoutType&&this.deliveryItems.length)&&("shipping"===this.shipping.type?(s="",s=this.shipping.address_district?this.$options.filters.lang(this.shipping.address_district.name,this.$i18n.locale):this.$t("Other area"),n.payment.meta.picking_type="SHP",n.payment.meta.ko_KR_address={address:{detail:"".concat(s," ").concat(this.shipping.address)}}):(n.payment.meta.picking_type="PCK",n.payment.meta.pickup_address={address:{detail:Object(d["d"])(this.warehouse.information.address,this.locale)}})),this.coupon&&(n.coupon_id=this.coupon.id),"TV-COMMON"!==this.checkoutType&&"TV-DEI"!==this.checkoutType||this.bookingSubOptions.forEach((function(t){if(t.num){var e={product_id:m.product.id,option_id:m.bookingOption.id,sub_option_id:t.id,quantity:t.num,booking_fields:{input_entities:[]}};m.tripDate.bookingDate&&(e.booking_fields.book_dt=m.tripDate.bookingDate+"T00:00:00.000"),m.tripDate.bookingTime&&(e.booking_fields.book_time=m.tripDate.bookingTime),n.checkout_lines.push(e)}})),"TV-RNT"===this.checkoutType&&this.bookingSubOptions.forEach((function(t){t.num&&n.checkout_lines.push({product_id:m.product.id,option_id:m.bookingOption.id,sub_option_id:t.id,quantity:t.num,booking_fields:{book_dt:m.tripDate.bookingStartDate+"T".concat(m.tripDate.bookingStartTime,":00.000"),end_dt:m.tripDate.bookingEndDate+"T".concat(m.tripDate.bookingEndTime,":00.000"),input_entities:[]}})})),"EC"===this.checkoutType&&(a={product_id:this.product.id,variant_id:this.product.variants[this.product.variants.length-1].id,quantity:this.restQuantity,scope:"EC"},this.productNeedReservationDateTime?a.booking_fields={book_dt:this.tripDate.bookingDate+"T".concat(this.tripDate.bookingTime,":00.000"),input_entities:[]}:this.productNeedReservationDate&&(a.booking_fields={book_dt:this.tripDate.bookingDate+"T00:00:00.000",input_entities:[]}),n.checkout_lines.push(a)),"CART"===this.checkoutType&&(this.deliveryItems.forEach((function(t){n.checkout_lines.push({basket_line_id:t.id,product_id:t.product.id,option_id:t.option.id,sub_option_id:t.subOption.id,quantity:t.quantity})})),this.restItems.forEach((function(t){var e={basket_line_id:t.id,product_id:t.product.id,variant_id:t.variant.id,quantity:t.quantity,scope:"EC"};t.productNeedReservation&&(e.booking_fields={book_dt:t.book_dt,input_entities:[]}),n.checkout_lines.push(e)}))),this.submitting=!0,this.$toast.loading(this.$t("Submitting")),t.prev=28,"wechatpayhk-oa"!==this.paymentType){t.next=32;break}return t.next=32,Object(p["b"])();case 32:if(o="","stripe-card"!==this.paymentType){t.next=45;break}return t.next=36,this.$refs.stripeForm.getToken();case 36:if(r=t.sent,r){t.next=39;break}throw new Error("Information incomplete");case 39:if(!r.error){t.next=44;break}return this.submitting=!1,this.$toast.hide(),this.$toast.info(r.error.message),t.abrupt("return");case 44:r.secret?n.secret=r.secret:r.paymentMethodId&&(o=r.paymentMethodId);case 45:return t.next=47,l["a"].order.createOrder2(n,this.locale);case 47:return c=t.sent,this.mtSetDeliveryItems([]),this.mtSetRestItems([]),u={payment_type:this.paymentType,sn:c.sn},"stripe-card"===this.paymentType&&(o?u.payment_method=o:u.secret=n.secret),t.next=54,this.payOrder(u);case 54:t.next=66;break;case 56:t.prev=56,t.t0=t["catch"](28),console.log(t.t0),h=this.$t("Failed to submit order, please check your information!"),Object.keys(t.t0||{}).forEach((function(e){t.t0[e]&&"quantity_exceed_limit"===t.t0[e].code&&(h=m.$t("Failed to submit order, out of stock")),t.t0[e]&&"exceed_limit_amount"===t.t0[e].code&&(h=m.$t("Failed to submit order, exceeding the purchase limit"))})),t.t0.error_msg&&(h=this.$t(t.t0.error_msg)),"exceed_limit_amount"===t.t0.detail&&(h=this.$t("Failed to submit order, exceeding the purchase limit")),this.submitting=!1,this.$toast.hide(),this.$toast.info(h);case 66:return t.prev=66,this.submitting=!1,this.mtUpdateCheckoutConfirmed(!1),t.finish(66);case 70:case"end":return t.stop()}}),t,this,[[8,,14,17],[28,56,66,70]])})));function e(){return t.apply(this,arguments)}return e}(),payOrder:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var i,n,s,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.$toast.loading(this.$t("Submitting")),i="",i=this.userInfo?this.userInfo.user_id:window.localStorage.getItem("anon_user_id"),t.next=6,l["a"].order.payOrder(i,e,this.$i18n.locale);case 6:if(n=t.sent,"alipay-wap"!==this.paymentType&&"alipayhk-wap"!==this.paymentType){t.next=12;break}this.$toast.hide(),n.data&&(window.location.href=n.data),t.next=34;break;case 12:if("wechatpayhk-oa"!==this.paymentType){t.next=21;break}if(this.$toast.hide(),window.wx){t.next=17;break}return this.$toast.info(this.$t("Failed to pay")),t.abrupt("return");case 17:s={timestamp:n.jsapi.timeStamp,nonceStr:n.jsapi.nonceStr,package:n.jsapi.package,signType:n.jsapi.signType,paySign:n.jsapi.paySign,success:function(){a.$router.push("/checkout/result?tf_pid=".concat(n.id))}},window.wx.chooseWXPay(s),t.next=34;break;case 21:if("wechatpayhk_h5"!==this.paymentType){t.next=26;break}this.$toast.hide(),window.location.href=n.mweb_url,t.next=34;break;case 26:if("stripe-card"!==this.paymentType){t.next=33;break}return t.next=29,this.$refs.stripeForm.confirmCardPayment(n.client_secret);case 29:this.$toast.hide(),this.$router.push("/checkout/result?tf_pid="+n.id),t.next=34;break;case 33:"paypal"===this.paymentType&&(this.$toast.hide(),window.location.href=n.data);case 34:t.next=40;break;case 36:t.prev=36,t.t0=t["catch"](0),t.t0.message&&(this.$toast.hide(),this.$toast.info(t.t0.message)),console.log(t.t0);case 40:case"end":return t.stop()}}),t,this,[[0,36]])})));function e(e){return t.apply(this,arguments)}return e}(),onLoginClick:function(){this.$router.push({name:"Login",query:{redirect:encodeURIComponent(this.$route.fullPath)}})}}),beforeRouteLeave:function(t,e,i){"Cart"===t.name&&t.params&&(t.params.checkedDeliveryItems=this.$route.params.checkedDeliveryItems,t.params.checkedRestItems=this.$route.params.checkedRestItems),i()},created:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.$route.query.productId,!e){t.next=4;break}return t.next=4,this.initProductInfo(e);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},Jt=zt,Xt=(i("4e49"),Object(_["a"])(Jt,n,s,!1,null,"0d488f90",null));e["default"]=Xt.exports},"3b30":function(t,e,i){},"3b57":function(t,e,i){},"3cf1":function(t,e,i){},4289:function(t,e,i){},4939:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"booking-policy"},[i("p",[t._v("\n "+t._s(t.$t("By completing this reservation, means that you have read and accepted the rules and restrictions, terms of use and privacy policy"))+"\n "+t._s(t.$t("We use secure transmission and encrypted storage to ensure the security of your personal data."))+"\n ")])])},s=[],a=(i("6592"),i("2877")),o={},r=Object(a["a"])(o,n,s,!1,null,"1ff86209",null);e["a"]=r.exports},"4cf8":function(t,e,i){"use strict";e["a"]={PickupAndDelivery:0,PickupOnly:1,DeliveryOnly:2}},"4dfe":function(t,e,i){},"4e49":function(t,e,i){"use strict";i("4289")},52944:function(t,e,i){},"529f":function(t,e,i){},"52a6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAALDklEQVR4Xu1dCVSVxxX+7kMURAx1CyKuGNejaNRocQ1RaVMerlhtepKy1LorSK2m1hj1GI97UaIxgtXGWgW18ojVIEYgRdy3gLsgKnGLIqAIyD898+NjER7v/9+bB8p5/zke8HDvnTvff+/MnTt35ifU4DNRp20iFVJPJqGjBKkjGHUE4AyCIwBHMPknQMgBkAMm/7wLYpc10FwmDS5rbNmZTVrdw5rqBlVnw0FJvvbZmXlDGSNPEDwZWDcwmKcDgRHoAhgOE7HDDV3sD63xiMyrrn6Zp7wCLRlj5L/XZxAk9jEYxgJoqIDNHJJsEKKgoW0Ro6ITiIiZI8wYr8UAnL5/er2nz9L8APyZMbQzpogl/k6EGwBWONRvu2Xdh+vyLdKGaKHcTbMyn08ihhAG5iJavinyCJTJCCudXOw2inZvoRYYEOWtlUChYKyNKR21OA9RugZsRvjYGJ2otoQAGLB7dGsmFYQywEeUYpaUQ0B0nXqYvsknJsPcdswGMDDSZ3QRsXAw5mSuMtXKT5Rlwyhgs2/0HnPaNRnAhSm+dTNSn69kYNPNUaCmeQm0rlUXu5CFXSMLTNHFJAADDvg2knLzdGDwMKXR146HkKRpYK8N/1XkI7W6qQYwcPdoV0kqPMjAuqht7HW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3b30")},"5b4c":function(t,e,i){},"5f0e":function(t,e,i){},6592:function(t,e,i){"use strict";i("3cf1")},"65ce":function(t,e,i){"use strict";i("829c")},"66b2":function(t,e,i){},"6d5b":function(t,e,i){},7170:function(t,e,i){"use strict";i("3b57")},"723c":function(t,e,i){"use strict";i("9626")},"7bfd":function(t,e,i){"use strict";i("52944")},8037:function(t,e,i){"use strict";i("c8b7")},"829c":function(t,e,i){},8933:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"coupon-list-container"},[i("md-scroll-view",{ref:"scrollView",attrs:{bouncing:!1,"scrolling-x":!1,"immediate-check-end-reaching":""},on:{"end-reached":t.getCouponList}},[t._l(t.couponList,(function(t,e){return i("CouponItem",{key:"valid-"+e,attrs:{data:t}})})),i("md-scroll-view-more",{directives:[{name:"show",rawName:"v-show",value:!t.isAllDataLoaded,expression:"!isAllDataLoaded"}],attrs:{slot:"more","loading-text":t.$t("Loading..."),"is-finished":t.isAllDataLoaded,"finished-text":""},slot:"more"}),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading&&t.isAllDataLoaded&&!t.couponList.length,expression:"!loading && isAllDataLoaded && !couponList.length"}],staticClass:"no-coupon-tip"},[i("div",{staticClass:"tips"},[t._v(t._s(t.$t("No coupons, go explore more!")))]),i("button",{on:{click:t.toHomePage}},[t._v(t._s(t.$t("Go to home page")))])]),t.isAllDataLoaded&&t.couponList.length?i("div",{staticClass:"no-more-data"},[t._v("\n "+t._s(t.$t("No more content"))+"\n ")]):t._e()],2)],1)},s=[],a=(i("8e6e"),i("ac6a"),i("456d"),i("96cf"),i("1da1")),o=(i("a481"),i("ade3")),r=i("2f62"),c=i("365c"),u=i("1f0f");function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function d(t){for(var e=1;e0?i("div",{staticClass:"before-discounted"},[t._v(t._s(t.currencyName)+t._s(t.amountPriceDisplay))]):t._e()]),i("button",{staticClass:"button-detail",on:{click:t.onFeeDetailClick}},[t._v("\n "+t._s(t.$t("Detail"))),i("span",{staticClass:"iconfont iconarrowdown"})]),i("button",{staticClass:"button-submit",on:{click:t.onNextClick}},[t._v(t._s(t.$t("Submit")))])]):t._e(),i("md-popup",{attrs:{position:"bottom"},model:{value:t.isFeeDetailPopupShow,callback:function(e){t.isFeeDetailPopupShow=e},expression:"isFeeDetailPopupShow"}},[t.product?i("div",{staticClass:"fee-detail"},[i("div",{staticClass:"detail-item-list"},[t.productPlain.type===t.$productTypes.RNT?i("div",{staticClass:"detail-item"},[i("div",{staticClass:"detail-item-label"},[t._v("\n "+t._s(t.$t("Days"))+"\n ")]),i("div",{staticClass:"detail-item-value"},[t._v("\n "+t._s(t.totalDays)+"\n ")])]):t._e(),t._l(t.selectedSubOptions,(function(e){return i("div",{key:e.id,staticClass:"detail-item"},[i("div",{staticClass:"detail-item-label"},[t._v("\n "+t._s(e.details[t.$i18n.locale].title)+"\n ")]),i("div",{staticClass:"detail-item-value"},[i("div",{staticClass:"detail-calculate"},[i("span",[t._v(t._s(t.currencyName)+" "+t._s(e.price[t.currency])+" * "+t._s(e.num))])]),t._v("\n "+t._s(t.currencyName)+t._s(e.price[t.currency]*e.num)+"\n ")])])})),t.discountedAmount>0?i("div",{staticClass:"detail-item"},[i("div",{staticClass:"detail-item-label"},[t._v("\n "+t._s(t.$t("Discount"))+"\n ")]),i("div",{staticClass:"detail-item-value highlight"},[t._v("\n -"+t._s(t.currencyName)+t._s(t.discountedAmount)+"\n ")])]):t._e(),i("div",{staticClass:"split-line"}),i("div",{staticClass:"detail-item"},[i("div",{staticClass:"detail-item-label"},[t._v("\n "+t._s(t.$t("Total"))+"\n ")]),i("div",{staticClass:"detail-item-value highlight"},[t._v("\n "+t._s(t.currencyName)+t._s(t.actualAmount)+"\n ")])])],2)]):t._e()])],2)},s=[],a=(i("8e6e"),i("ac6a"),i("456d"),i("6b54"),i("4917"),i("ade3")),o=i("c1df"),r=i.n(o),c=i("2f62"),u=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"order-info"},[t.bookingOption?i("div",{staticClass:"option-info",on:{click:t.onOptionClick}},[i("div",{staticClass:"option-name"},[t._v(t._s(t.bookingOption.details[t.locale].title))]),t.availableOptions.length>1?i("md-icon",{attrs:{name:"arrow-down",size:"lg"}}):t._e()],1):t._e(),i("div",{staticClass:"order-detail"},[t.productPlain.type===t.$productTypes.RNT?[i("div",{staticClass:"order-date"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Rent time"))+"\n "),i("div",{staticClass:"buy-tips-button",on:{click:t.openPopupBuyTips}},[t._v(t._s(t.$t("Purchase notes")))])])]),i("div",{staticClass:"date-list"},[i("div",{staticClass:"date-list-item",on:{click:t.showStartDatePicker}},[t.bookingStartDate?[i("div",[t._v(t._s(t.startDateFormated.weekDay))]),i("div",[t._v(t._s(t.startDateFormated.date))])]:i("span",[t._v(t._s(t.$t("Rent date")))])],2)]),i("div",{staticClass:"order-date"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Return time"))+"\n ")])]),i("div",{staticClass:"date-list"},[i("div",{staticClass:"date-list-item",on:{click:t.showEndDatePicker}},[t.bookingEndDate?[i("div",[t._v(t._s(t.endDateFormated.weekDay))]),i("div",[t._v(t._s(t.endDateFormated.date))])]:i("span",[t._v(t._s(t.$t("Return date")))])],2)]),i("div",{staticClass:"rental-days"},[t._v("\n "+t._s(t.$t("Leased days"))+"\n "),i("span",{staticClass:"days"},[t._v(t._s(t.totalDays))])])]:t.bookingOption&&t.bookingOption.book_date_required?[i("div",{staticClass:"order-date"},[i("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Travel date"))+"\n "),i("div",{staticClass:"buy-tips-button",on:{click:t.openPopupBuyTips}},[t._v(t._s(t.$t("Purchase notes")))])]),t.availableOptionDates.length?i("div",{staticClass:"date-list"},[t._l(t.importantDates,(function(e){return i("div",{key:e.value,staticClass:"date-list-item",class:{selected:t.bookingDate===e.value},on:{click:function(i){return t.onSelectedDate(e.value)}}},[i("span",[t._v(t._s(e.weekDay))]),i("span",[t._v(t._s(e.display))])])})),i("div",{staticClass:"date-list-item last",class:{selected:t.bookingDate&&!t.isImportantDateSelected},on:{click:t.onSelectDate}},[t.bookingDate&&!t.isImportantDateSelected?[i("span",[t._v(t._s(t.bookingDateFormated.weekDay))]),i("span",[t._v(t._s(t.bookingDateFormated.date))])]:[i("span",[t._v(t._s(t.$t("Other")))]),i("span",[t._v(t._s(t.$t("date")))])]],2)],2):i("div",{staticClass:"no-available-dates"},[t._v("\n "+t._s(t.$t("No available dates"))+"\n ")])])]:t._e(),i("div",{staticClass:"order-num"},t._l(t.bookingSubOptions,(function(e){return i("div",{key:e.id,staticClass:"order-num-item",class:{disabled:!e.available}},[i("div",{staticClass:"suboption-item"},[i("div",{staticClass:"suboption-info"},[i("div",{staticClass:"label"},[i("span",[t._v(t._s(e.details[t.$i18n.locale].title))])]),i("div",{staticClass:"price"},[t._v("\n "+t._s(t.currencyName)+t._s(e.price[t.currency]||"--")+"\n "),t.productPlain.type===t.$productTypes.RNT?i("span",[t._v(t._s(t.$t("/day")))]):t._e()])])]),i("div",{staticClass:"suboption-item"},[i("div",{staticClass:"suboption-info"},[i("div",{staticClass:"tips"},[e.available?i("span",[t._v(t._s(e.details[t.locale].meta.brief))]):i("span",[t._v(t._s(t.$t("Not available this day")))])]),i("div",{staticClass:"option-order-count"},[i("div",{staticClass:"amount-button",class:{disabled:10===e.num},on:{click:function(i){return t.increaseSubOptionNum(e)}}},[t._v("+")]),i("span",{staticClass:"number"},[t._v(t._s(e.num))]),i("div",{staticClass:"amount-button",class:{disabled:0===e.num},on:{click:function(i){return t.decreaseSubOptionNum(e)}}},[t._v("-")])])])])])})),0)],2),t.availableOptionDates.length?i("Calendar",{attrs:{dates:t.availableOptionDates,"default-value":t.bookingDate},on:{selected:t.onSelectedDate},model:{value:t.isCalendarShow,callback:function(e){t.isCalendarShow=e},expression:"isCalendarShow"}}):t._e(),i("md-date-picker",{ref:"startDatePicker",attrs:{"min-date":t.startDate,"max-date":t.endDate,"ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel"),type:"date","default-date":t.defaultStartDate,title:t.$t("Rent date"),"unit-text":t.dateUnit},on:{confirm:t.onStartDatePickerConfirm},model:{value:t.isStartDatePickerShow,callback:function(e){t.isStartDatePickerShow=e},expression:"isStartDatePickerShow"}}),i("md-date-picker",{ref:"endDatePicker",attrs:{"min-date":t.startDate,"max-date":t.endDate,"ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel"),type:"date","default-date":t.defaultEndDate,title:t.$t("Return date"),"unit-text":t.dateUnit},on:{confirm:t.onEndDatePickerConfirm},model:{value:t.isEndDatePickerShow,callback:function(e){t.isEndDatePickerShow=e},expression:"isEndDatePickerShow"}}),i("md-picker",{ref:"optionPicker",attrs:{"ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel"),data:t.optionPickerData,"large-radius":"",title:""},on:{confirm:t.onOptionSelected},model:{value:t.isOptionPickerShow,callback:function(e){t.isOptionPickerShow=e},expression:"isOptionPickerShow"}}),i("md-dialog",{attrs:{title:t.$t("Purchase notes"),closable:!0},model:{value:t.isShowBuyTips,callback:function(e){t.isShowBuyTips=e},expression:"isShowBuyTips"}},[i("div",{staticClass:"buy-tips"},[t.costIncluded?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Inclusions")))]),i("span",{domProps:{innerHTML:t._s(t.costIncluded)}})]):t._e(),t.costNotIncluded?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Exclusions")))]),i("span",{domProps:{innerHTML:t._s(t.costNotIncluded)}})]):t._e(),t.precautions?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Important to Know")))]),i("span",{domProps:{innerHTML:t._s(t.precautions)}})]):t._e(),t.refundPolicy?i("div",{staticClass:"buy-tips-content"},[i("span",{staticClass:"title"},[t._v(t._s(t.$t("Change & Refund Policy")))]),i("span",{domProps:{innerHTML:t._s(t.refundPolicy)}})]):t._e()])])],1)},l=[],d=(i("96cf"),i("1da1")),p=(i("20d6"),i("fa96"));function h(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function m(t){for(var e=1;e1&&0!==t[1]}))&&i.push(n)})),i},startDate:function(){return this.availableOptionDates.length>0?new Date(this.availableOptionDates[0]):r()().toDate()},endDate:function(){return this.availableOptionDates.length>1?new Date(this.availableOptionDates[this.availableOptionDates.length-1]):r()().add(6,"months").toDate()},importantDates:function(){var t=this;return this.availableOptionDates.slice(0,4).map((function(e){var i=r()(e);return{value:i.format("YYYY-MM-DD"),display:i.format("MM-DD"),weekDay:t.weekDays[i.day()]}}))},isImportantDateSelected:function(){var t=this;return this.bookingDate&&this.importantDates.findIndex((function(e){return e.value===t.bookingDate}))>-1},bookingDateFormated:function(){if(this.bookingDate){var t=r()(this.bookingDate);return{date:t.format("MM-DD"),weekDay:this.weekDays[t.day()]}}return null},startDateFormated:function(){if(this.bookingStartDate){var t=r()(this.bookingStartDate);return{date:t.format("MM-DD"),weekDay:this.weekDays[t.day()]}}return null},defaultStartDate:function(){return this.bookingStartDate?r()(this.bookingStartDate).toDate():null},endDateFormated:function(){if(this.bookingEndDate){var t=r()(this.bookingEndDate);return{date:t.format("MM-DD"),weekDay:this.weekDays[t.day()]}}return null},defaultEndDate:function(){return this.bookingEndDate?r()(this.bookingEndDate).toDate():null},costIncluded:function(){return this.productPlain?this.productPlain.costIncluded:null},costNotIncluded:function(){return this.productPlain?this.productPlain.costNotIncluded:null},precautions:function(){return this.productPlain?this.productPlain.precautions:null},refundPolicy:function(){return this.productPlain?this.productPlain.refundPolicy:null}}),mounted:function(){this.initData()},methods:m(m({},Object(c["b"])("checkout",["setBookingOption","setBookingSubOptions","setBookingDate","setBookingStartDate","setBookingStartTime","setBookingEndDate","setBookingEndTime","updateBookingSubOptionNum"])),{},{onOptionSelected:function(t){this.setBookingOption(t[0].data)},initData:function(){this.availableOptions.length&&this.setBookingOption(this.availableOptions[0]),this.initBookingDate()},initBookingDate:function(){this.availableOptionDates.length?this.productType===this.$productTypes.RNT?(this.setBookingStartDate(this.availableOptionDates[0]),this.setBookingEndDate(this.availableOptionDates[Math.min(this.availableOptionDates.length-1,3)])):this.bookingOption&&this.bookingOption.book_date_required?this.setBookingDate(this.availableOptionDates[0]):this.setBookingDate(null):this.setBookingDate(null)},initSubOptions:function(){var t=this,e=[];if(this.bookingOption){e=this.bookingOption.sub_options.filter((function(e){return e.details[t.$i18n.locale]}));var i=!1;e=e.map((function(e){var n=!0;n=t.bookingOption.book_date_required?!t.bookingDate||e.available_book_dates.findIndex((function(e){return e.date===t.bookingDate}))>-1:0!==e.max_quantity_per_sub_option;var s=Object.assign({},e,{available:n});return!i&&n?(s.num=e.min_purchase_quantity,i=!0):s.num=0,s}))}this.setBookingSubOptions(e)},decreaseSubOptionNum:function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.available){t.next=2;break}return t.abrupt("return");case 2:return i=1,e.min_purchase_quantity>0&&(i=e.min_purchase_quantity),e.num>i?e.num--:e.num=0,t.next=7,this.updateBookingSubOptionNum(e);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),increaseSubOptionNum:function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(e){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.available){t.next=2;break}return t.abrupt("return");case 2:if(i=10,n=1,e.min_purchase_quantity>0&&(n=e.min_purchase_quantity),e.max_purchase_quantity>0&&(i=e.max_purchase_quantity),e.max_quantity_per_sub_option>0&&(i=Math.min(i,e.max_quantity_per_sub_option)),!(e.num1&&(this.isOptionPickerShow=!0)}})},v=f,b=(i("8037"),i("2877")),y=Object(b["a"])(v,u,l,!1,null,"eea5e686",null),_=y.exports,g=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"primary-user-info"},[i("div",{staticClass:"primary-user-info-item"},[i("div",{staticClass:"label"},[t._v(t._s(t.$t("Last name")))]),i("div",{staticClass:"content"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.userModel.lastName,expression:"userModel.lastName"}],attrs:{type:"text",placeholder:t.$t("Last name")},domProps:{value:t.userModel.lastName},on:{change:t.updateFormData,input:function(e){e.target.composing||t.$set(t.userModel,"lastName",e.target.value)}}})])]),i("div",{staticClass:"primary-user-info-item"},[i("div",{staticClass:"label"},[t._v(t._s(t.$t("First name")))]),i("div",{staticClass:"content"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.userModel.firstName,expression:"userModel.firstName"}],attrs:{type:"text",placeholder:t.$t("First name")},domProps:{value:t.userModel.firstName},on:{change:t.updateFormData,input:function(e){e.target.composing||t.$set(t.userModel,"firstName",e.target.value)}}})])]),t.productPlain.type===t.$productTypes.TOR||t.productPlain.type===t.$productTypes.TKT?i("div",{staticClass:"primary-user-info-item"},[i("div",{staticClass:"label"},[t._v(t._s(t.$t("Gender")))]),i("div",{staticClass:"content"},[i("div",{staticClass:"gender-item",class:{selected:"female"===t.userModel.gender},on:{click:function(e){return t.selectGender("female")}}},[i("span",[t._v(t._s(t.$t("Female")))])]),i("div",{staticClass:"gender-item",class:{selected:"male"===t.userModel.gender},on:{click:function(e){return t.selectGender("male")}}},[i("span",[t._v(t._s(t.$t("Male")))])])])]):t._e(),i("div",{staticClass:"primary-user-info-item"},[i("div",{staticClass:"label"},[t._v(t._s(t.$t("Phone")))]),i("div",{staticClass:"content"},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.userModel.phone,expression:"userModel.phone",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:t.$t("Phone")},domProps:{value:t.userModel.phone},on:{change:t.updateFormData,input:function(e){e.target.composing||t.$set(t.userModel,"phone",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),i("div",{staticClass:"country-code",on:{click:t.showCountrySelector}},[t._v(t._s(t.userModel.countryCode))])])]),i("div",{staticClass:"primary-user-info-item"},[i("div",{staticClass:"label"},[t._v(t._s(t.$t("Email")))]),i("div",{staticClass:"content"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.userModel.email,expression:"userModel.email"}],staticClass:"input-email",attrs:{type:"text",placeholder:t.$t("Email")},domProps:{value:t.userModel.email},on:{change:t.updateFormData,input:function(e){e.target.composing||t.$set(t.userModel,"email",e.target.value)}}})])]),i("div",{staticClass:"email-tips"},[i("span",{staticClass:"highlight2"},[t._v("("+t._s(t.$t("To receive booking confirmation"))+")")])]),t.bookingOption&&"DEI"===t.bookingOption.voucher_type?i("div",{staticClass:"primary-user-info-item"},[i("div",[i("div",{staticClass:"label"},[t._v(t._s(t.$t("Shipping Address"))),i("span",{staticClass:"highlight"},[t._v("*")])]),i("div",{staticClass:"highlight2"},[t._v("("+t._s(t.$t("actual shipping fee depends on products description"))+")")])])]):t._e(),t.bookingOption&&"DEI"===t.bookingOption.voucher_type?i("div",{staticClass:"primary-user-info-item"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.shippingAddress,expression:"shippingAddress"}],attrs:{placeholder:t.shippingAddressPlaceholder},domProps:{value:t.shippingAddress},on:{change:t.onShippingAddressChange,input:function(e){e.target.composing||(t.shippingAddress=e.target.value)}}})]):t._e(),i("md-selector",{attrs:{"default-value":t.userModel.countryCode,data:t.formattedCountries,title:t.$t("Country or region")},on:{choose:t.onCountrySelected},model:{value:t.isCountrySelectorShow,callback:function(e){t.isCountrySelectorShow=e},expression:"isCountrySelectorShow"}})],1)},k=[];function C(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function O(t){for(var e=1;e0}))}}),created:function(){this.getProductData(this.$route.query.item)},methods:F(F({},Object(c["b"])("product",["getProductData"])),{},{validateInputs:function(){if(this.product.type===this.$productTypes.RNT){if(!this.bookingStartDate)return this.$toast.info(this.$t("Rent date is required")),!1;if(!this.bookingStartTime)return this.$toast.info(this.$t("Rent time is required")),!1;if(!this.bookingEndDate)return this.$toast.info(this.$t("Return date is required")),!1;if(!this.bookingEndTime)return this.$toast.info(this.$t("Return time is required")),!1;if(r()(this.bookingEndDate).isBefore(r()(this.bookingStartDate)))return this.$toast.info(this.$t("Return date cant before rent date")),!1;if(!this.totalDays)return this.$toast.info(this.$t("At least one leased day")),!1}else if(this.bookingOption&&this.bookingOption.book_date_required&&!this.bookingDate)return this.$toast.info(this.$t("Travel date is required")),!1;return this.selectedSubOptions.filter((function(t){return t.num})).length?this.bookingMeta.lastName?this.bookingMeta.firstName?this.bookingMeta.gender?this.bookingMeta.phone?null===this.bookingMeta.phone.toString().match(/^[0-9]*$/g)?(this.$toast.info(this.$t("Wrong format of phone number")),!1):this.bookingMeta.email.trim()?Object(q["e"])(this.bookingMeta.email.trim())?!(this.bookingOption&&"DEI"===this.bookingOption.voucher_type&&!this.shippingAddress)||(this.$toast.info(this.$t("Shipping Address is required")),!1):(this.$toast.info(this.$t("Invalid email")),!1):(this.$toast.info(this.$t("Email is required")),!1):(this.$toast.info(this.$t("Phone number is required")),!1):(this.$toast.info(this.$t("Gender is required")),!1):(this.$toast.info(this.$t("First name is required")),!1):(this.$toast.info(this.$t("Last name is required")),!1):(this.$toast.info(this.$t("Please enter quantity")),!1)},onNextClick:function(){this.validateInputs()&&this.$router.push({name:"CheckoutPayment",query:{item:this.product.id}})},onFeeDetailClick:function(){this.isFeeDetailPopupShow=!0}})},B=Y,H=(i("b3f7"),Object(b["a"])(B,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LA+MrWno6r/tTP4Nct7O2h7i1+NcDdEvd9hS8RlhK6QLblxFohSaAmq/DMHF+/82vwjD5c87aN/Z1GIzxC4AuQ/pKDMZ+u9Nfh/F/XPZ2aFy/eCoAAAAASUVORK5CYII="},a850:function(t,e,i){"use strict";i("d29b")},ae5c:function(t,e,i){"use strict";i("9f1a")},b2a5:function(t,e,i){},b3f7:function(t,e,i){"use strict";i("c2b1")},b841:function(t,e,i){},bade:function(t,e,i){},bbf2:function(t,e,i){"use strict";i("2091")},c2b1:function(t,e,i){},c2b3:function(t,e,i){"use strict";i("136a")},c3e4:function(t,e,i){},c8b7:function(t,e,i){},d29b:function(t,e,i){},da58:function(t,e,i){},e1e8:function(t,e,i){},e84f:function(t,e,i){"use strict";i("c3e4")},eacd:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"checkout-page"},[i("router-view")],1)},s=[],a={},o=a,r=(i("fbbb"),i("2877")),c=Object(r["a"])(o,n,s,!1,null,"7d2d2664",null);e["default"]=c.exports},ecd3:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("md-popup",{attrs:{position:"bottom"},on:{hide:t.onHide,show:t.onShow},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}},[i("md-popup-title-bar",{staticClass:"cp-pp-title",attrs:{title:t.$t("Coupon"),"large-radius":"","ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel")},on:{cancel:t.onCancel,confirm:t.onConfirm}}),t.loading?i("div",{staticClass:"loading-ctn"},[i("loading",{attrs:{type:"bars"}})],1):[i("div",{staticClass:"popup-content"},[i("div",{staticClass:"coupon-redeem"},[i("div",{staticClass:"redeem-input-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.couponCode,expression:"couponCode"}],attrs:{type:"text",placeholder:t.$t("Please enter coupon code")},domProps:{value:t.couponCode},on:{input:[function(e){e.target.composing||(t.couponCode=e.target.value)},t.onPromoCodeChange]}}),i("button",{staticClass:"button-redeem",on:{click:t.validatePromoCode}},[t._v(t._s(t.$t("Redeem")))])])])]),i("div",{ref:"cpList",staticClass:"cp-list"},t._l(t.mappedCoupons,(function(e){return i("div",{key:e.id,ref:""+(t.selectedCoupon&&t.selectedCoupon.id?"cpListItem"+e.id:null),refInFor:!0,staticClass:"cp-list-item",class:{selected:t.selectedCoupon&&t.selectedCoupon.id===e.id,disabled:!e.is_available},on:{click:function(i){return t.onCouponClick(e)}}},[i("div",{staticClass:"cp-icon"},[i("span",{staticClass:"iconfont iconicon_ticket"})]),i("div",{staticClass:"cp-content"},[i("div",{staticClass:"cp-name-wrapper"},[i("div",{staticClass:"cp-name"},[t._v("\n "+t._s(e.name)+"\n ")])]),e.valid_end_dt?i("div",{staticClass:"cp-date"},[t._v("\n "+t._s(t.getValidDateTip(e))+"\n ")]):t._e(),i("div",{staticClass:"cp-detail"},[i("span",{domProps:{innerHTML:t._s(e.description)}})])])])})),0),i("md-toast",{ref:"toastSuccess"},[i("div",{staticClass:"toasted-success"},[t._v(t._s(t.$t("Redeem successful")))])])]],2)},s=[],a=(i("8e6e"),i("7514"),i("96cf"),i("1da1")),o=(i("456d"),i("ac6a"),i("ade3")),r=i("1861"),c=i.n(r),u=(i("7f7f"),i("2f62")),l=i("365c"),d=i("90b9"),p=i("c1df"),h=i.n(p);function m(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function f(t){for(var e=1;eh()(Date.now())?s="".concat(h()(e).format("YYYY.MM.DD"),"-").concat(h()(i).format("YYYY.MM.DD")):n&&i?s="".concat(this.$t("Expired in {time}",{time:h.a.duration(h()(i)-h()(Date.now())).locale(this.$i18n.locale).humanize()})):i&&(s="".concat(this.$t("Valid until")," ").concat(h()(i).format("YYYY.MM.DD"))),s},onPromoCodeChange:function(){this.couponCodeValidateState=0,this.coupon&&this.mtSetCoupon(null)},onHide:function(){this.$emit("update:show",!1),this.initScrollView()},onShow:function(){this.initScrollView()},initScrollView:function(){var t=this.coupon;if(this.$refs.cpList)if(t){if(!this.$refs["cpListItem".concat(t.id)])return;this.$refs.cpList.scrollTop=this.$refs["cpListItem".concat(t.id)][0].offsetTop}else this.$refs.cpList.scrollTop=0},onCouponClick:function(t){t.is_available&&(this.selectedCoupon&&this.selectedCoupon.id===t.id?this.selectedCoupon=null:this.selectedCoupon=t)},onConfirm:function(){this.mtSetCoupon(this.selectedCoupon),this.showPopup=!1,this.$emit("update:show",!1)},onCancel:function(){this.showPopup=!1,this.$emit("update:show",!1)},setShowPopupValue:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.showPopup=e;case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),doGetAvailabelCoupons:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,this.getAvailabelCoupons();case 4:this.initCoupon(e);case 5:return t.prev=5,this.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,this,[[0,,5,8]])})));function e(e){return t.apply(this,arguments)}return e}()}),watch:{show:function(t){this.setShowPopupValue(t),t&&(this.selectedCoupon=this.coupon)},availabelCoupons:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e,i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e===i||0!==e.length||!this.cleared){t.next=3;break}return t.next=3,this.doGetAvailabelCoupons();case 3:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}(),bookingOption:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e,i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e===i){t.next=3;break}return t.next=3,this.doGetAvailabelCoupons();case 3:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}(),bookingSubOptions:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e,i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e===i){t.next=3;break}return t.next=3,this.doGetAvailabelCoupons();case 3:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},created:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.setShowPopupValue(this.show);case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},b=v,y=(i("723c"),i("2877")),_=Object(y["a"])(b,n,s,!1,null,"07518a44",null);e["a"]=_.exports},edfd:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"has-top-bar"},[n("app-title-bar",{attrs:{title:"","back-button":!t.$platform.isMylink}}),n("div",{staticClass:"pay-success"},[3===t.paymentStatus||4===t.paymentStatus||5===t.paymentStatus?n("div",{staticClass:"booking-result"},[t._m(0),n("div",{staticClass:"result-info"},[n("h1",[t._v(t._s(t.$t("Paid successfully")))]),n("h5",[t._v(t._s(t.$t("We will confirm booking ASAP")))])])]):t._e(),1===t.paymentStatus?n("div",{staticClass:"booking-result"},[t._m(1),n("div",{staticClass:"result-info"},[n("h1",[t._v(t._s(t.$t("Payment failed")))]),n("h5",[t._v(t._s(t.$t("Please check your network or contact our customer agent")))])])]):t._e(),0===t.paymentStatus?n("div",{staticClass:"booking-result"},[t._m(2),n("div",{staticClass:"result-info"},[n("h1",[t._v(t._s(t.$t("Payment confirming")))]),n("h5",[t._v(t._s(t.$t("Please wait a little longer")))])])]):t._e(),1===t.receivingResult?n("div",{staticClass:"booking-result"},[t._m(3),n("div",{staticClass:"result-info"},[n("h1",{domProps:{innerHTML:t._s(t.$t("Received successfully"))}}),n("h5",[t._v(t._s(t.$t("Have a wonderful time")))])])]):t._e(),0===t.receivingResult?n("div",{staticClass:"booking-result"},[t._m(4),n("div",{staticClass:"result-info"},[n("h1",[t._v(t._s(t.$t("Failed to receive")))]),n("h5",[t._v(t._s(t.$t("Please check your network or contact our customer agent")))])])]):t._e(),1===t.bookingResult?n("div",{staticClass:"booking-result"},[t._m(5),n("div",{staticClass:"result-info"},[n("h1",[t._v(t._s(t.$t("Booking submitted")))]),n("h5",[t._v(t._s(t.$t("We will confirm booking ASAP")))])])]):t._e(),0===t.bookingResult?n("div",{staticClass:"booking-result"},[t._m(6),n("div",{staticClass:"result-info"},[n("h1",[t._v(t._s(t.$t("Booking failed")))]),n("h5",[t._v(t._s(t.$t("Please check your network or contact our customer agent")))])])]):t._e(),n("hr"),n("div",{staticClass:"follow-us"},[t.$platform.isCom?n("div",{staticClass:"contact-info"},[n("div",{staticClass:"title"},[t._v("\n "+t._s(t.$t("Contact us"))+"\n ")]),t.$platform.isCom?n("div",{staticClass:"contact-content"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("Phone")))]),n("a",{staticClass:"tel",attrs:{href:"tel://+852 2789 9773"}},[t._v("+852 2789 9773")])]):t._e(),n("div",{staticClass:"contact-content"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("Email")))]),n("a",{staticClass:"tel",attrs:{href:"mailto:hello@travelflan.com"}},[t._v("hello@travelflan.com")])])]):n("div",{staticClass:"tips"},[n("span",{domProps:{innerHTML:t._s(t.$t("Follow TravelFlan, easy access, quick FAQ, make life easier."))}})]),t.$platform.isCom?n("div",{staticClass:"platforms"},[t._m(7),t._m(8),n("a",{attrs:{href:t.$platform.agentUrl,target:"_blank"}},[n("span",{staticClass:"iconfont iconagent1"})])]):n("div",{staticClass:"platforms"},[n("button",{staticClass:"button-wechat",on:{click:function(e){t.isShowWechatQrCode=!0}}},[n("img",{attrs:{src:i("a4b2"),alt:""}})]),n("button",{staticClass:"button-wechat",on:{click:function(e){t.isShowMinipQrCode=!0}}},[n("img",{attrs:{src:i("52a6"),alt:""}})])])]),n("div",{staticClass:"actions"},[t.$platform.isMlim||!t.$platform.isMylink?n("router-link",{staticClass:"button-home",attrs:{to:"/"}},[t._v(t._s(t.$t("Home page")))]):t._e(),null!==t.bookingResult?n("router-link",{staticClass:"button-orders",attrs:{to:"/order-list/reservations"}},[t._v(t._s(t.$t("Order detail")))]):n("router-link",{staticClass:"button-orders",attrs:{to:"/order-list/purchases"}},[t._v(t._s(t.$t("Order detail")))])],1),n("md-dialog",{attrs:{closable:!0},model:{value:t.isShowWechatQrCode,callback:function(e){t.isShowWechatQrCode=e},expression:"isShowWechatQrCode"}},[n("div",{staticClass:"qr-code"},[n("img",{attrs:{src:"/static/images/wechat_qrcode@2x.png",alt:""}}),n("div",{staticClass:"tips"},[t._v("\n "+t._s(t.$t("Please take a screenshot and use WeChat to scan and follow us on WeChat public account"))+"\n ")])])]),n("md-dialog",{attrs:{closable:!0},model:{value:t.isShowMinipQrCode,callback:function(e){t.isShowMinipQrCode=e},expression:"isShowMinipQrCode"}},[n("div",{staticClass:"qr-code"},[n("img",{attrs:{src:"/static/images/minip_qrcode@2x.png",alt:""}}),n("div",{staticClass:"tips"},[t._v("\n "+t._s(t.$t("Please take a screenshot and use WeChat to scan and follow us on WeChat MiniProgram"))+"\n ")])])]),n("ShoppingFab")],1)],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"result-icon"},[i("span",{staticClass:"iconfont iconicon_circle_check"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"result-icon"},[i("span",{staticClass:"iconfont iconicon_circle_cross"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"result-icon"},[i("span",{staticClass:"iconfont iconicon_circle_processing"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"result-icon"},[i("span",{staticClass:"iconfont iconicon_circle_check"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"result-icon"},[i("span",{staticClass:"iconfont iconicon_circle_cross"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"result-icon"},[i("span",{staticClass:"iconfont iconicon_circle_check"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"result-icon"},[i("span",{staticClass:"iconfont iconicon_circle_cross"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("a",{attrs:{href:"https://m.me/travelflan?ref=marketplace_com_v1",target:"_blank"}},[i("img",{attrs:{src:"/static/images/icons/icon_facebook@2x.png",alt:""}})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("a",{attrs:{href:"https://wa.me/85267362836",target:"_blank"}},[i("img",{attrs:{src:"/static/images/icons/icon_whatsapp@2x.png",alt:""}})])}],a=(i("8e6e"),i("456d"),i("ac6a"),i("96cf"),i("1da1")),o=i("ade3"),r=i("2f62"),c=i("365c"),u=i("f116");function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function d(t){for(var e=1;ethis.requestTimeLimit)){t.next=3;break}return this.paymentStatus=1,t.abrupt("return");case 3:return null===this.paymentStatus&&(this.paymentStatus=0),this.getPaymentInfoTimer=null,this.requestedTimes++,t.prev=6,e="",e=this.userInfo?this.userInfo.user_id:window.localStorage.getItem("anon_user_id"),t.next=11,c["a"].order.getPaymentInfo(e,this.$route.query.tf_pid);case 11:i=t.sent,this.paymentStatus=i.product_bookings[0].status,0===this.paymentStatus?this.getPaymentInfoTimer=setTimeout((function(){n.updatePaymentStatus()}),3e3):this.addGATrack(i),t.next=19;break;case 16:t.prev=16,t.t0=t["catch"](6),this.paymentStatus=1;case 19:case"end":return t.stop()}}),t,this,[[6,16]])})));function e(){return t.apply(this,arguments)}return e}(),addGATrack:function(t){try{var e=t.coupons,i=t.requested_amount,n=t.user,s=t.currency_detail,a=t.product_bookings,o=t.sn,r=[];a.forEach((function(t){t.snapshot.variant?r.push({item_name:t.product_title,item_id:t.product.id,priceInfo:t.snapshot.variant.price,quantity:t.snapshot.variant.count}):t.snapshot.options&&t.snapshot.options.forEach((function(e){e.sub_options.forEach((function(e){r.push({item_name:t.product_title,item_id:t.product.id,priceInfo:e.price,quantity:e.count})}))}))})),3!==this.paymentStatus&&4!==this.paymentStatus&&5!==this.paymentStatus||window.dataLayer.push({event:"purchase",ecommerce:{transaction_id:o,value:i,coupon:e,currency:s.code,items:r},user_id:n})}catch(c){}}},beforeDestroy:function(){this.getPaymentInfoTimer&&clearTimeout(this.getPaymentInfoTimer)}},h=p,m=(i("9b93"),i("2877")),f=Object(m["a"])(h,n,s,!1,null,"54174a82",null);e["default"]=f.exports},f116:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"shopping-fab"},[t.$platform.isMylink?i("div",{staticClass:"fab-buttons",style:t.buttonStyle},[i("transition",{attrs:{name:"fab-slide"}},[t.isFabButtonShow?i("button",{staticClass:"fab-shopping iconfont iconfloat-shop",on:{click:t.onShoppingClick}},[i("div",{staticClass:"button-text"},[t._v("\n "+t._s(t.$t("Shopping"))+"\n ")])]):t._e()]),i("transition",{attrs:{name:"fab-slide"}},[t.isFabButtonShow?i("button",{staticClass:"fab-travel iconfont iconfloat-travel",on:{click:t.onTravelClick}},[i("div",{staticClass:"button-text"},[t._v("\n "+t._s(t.$t("Travel"))+"\n ")])]):t._e()]),t.isFabButtonShow?i("button",{staticClass:"fab-close iconfont iconfloat-close",on:{click:function(e){t.isFabButtonShow=!1}}}):i("button",{staticClass:"fab-open iconfont iconfloat-open",on:{click:function(e){t.isFabButtonShow=!0}}})],1):t._e(),i("transition",{attrs:{name:"fade"}},[t.$platform.isMylink&&t.isFabButtonShow?i("div",{staticClass:"fab-button-backdrop"}):t._e()])],1)},s=[],a=(i("8e6e"),i("ac6a"),i("456d"),i("7f7f"),i("ade3")),o=(i("c5f6"),i("2f62"));function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e0?{marginBottom:"".concat(this.bottom,"px")}:null}}),methods:{onShoppingClick:function(){this.isFabButtonShow=!1,"ProductListDelivery"!==this.$route.name&&this.$router.push({name:"ProductListDelivery"})},onTravelClick:function(){this.isFabButtonShow=!1,"ProductList"!==this.$route.name&&this.$router.push({name:"ProductList",query:{dest:this.defaultHotCity?this.defaultHotCity.id:""}})},onRestaurantClick:function(){this.isFabButtonShow=!1,"RestaurantList"!==this.$route.name&&this.$router.push({name:"RestaurantList"})}}},l=u,d=(i("7170"),i("2877")),p=Object(d["a"])(l,n,s,!1,null,"c58b6788",null);e["a"]=p.exports},fac4:function(t,e,i){},fbbb:function(t,e,i){"use strict";i("6d5b")},fed7:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container padded has-top-bar"},[i("app-title-bar",{attrs:{title:t.$t("My coupon")}}),i("md-tab-bar",{attrs:{items:t.orderTypes},on:{change:t.onTabChange},model:{value:t.currentOrderType,callback:function(e){t.currentOrderType=e},expression:"currentOrderType"}}),i("div",{staticClass:"coupon-list-wrapper"},[i("router-view")],1)],1)},s=[],a=(i("7f7f"),i("a481"),{data:function(){return{currentOrderType:"CardbagValid"}},computed:{orderTypes:function(){return[{name:"CardbagValid",label:this.$t("Valid")},{name:"CardbagInvalid",label:this.$t("Invalid")}]}},methods:{onTabChange:function(t){this.$router.replace({name:t.name})}},mounted:function(){this.currentOrderType=this.$route.name}}),o=a,r=(i("a850"),i("2877")),c=Object(r["a"])(o,n,s,!1,null,"6009f130",null);e["default"]=c.exports},fedd:function(t,e,i){"use strict";i("b2a5")}}]);