(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["product"],{"0393":function(t,e,i){},1198:function(t,e,i){},1548:function(t,e,i){"use strict";i("9b85")},1774:function(t,e,i){"use strict";i("0393")},1861:function(t,e,i){var n,o,r;(function(s,a){o=[e,i("2b0e"),i("e9ba")],n=a,r="function"===typeof n?n.apply(e,o):n,void 0===r||(t.exports=r)})(0,(function(t,e,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(e),o=r(i);function r(t){return t&&t.__esModule?t:{default:t}}var s=function t(e){var i=e.content,r=void 0===i?"":i,s=e.icon,a=void 0===s?"":s,c=e.iconSvg,u=void 0!==c&&c,l=e.duration,d=void 0===l?3e3:l,p=e.position,h=void 0===p?"center":p,f=e.hasMask,m=void 0!==f&&f,g=e.parentNode,_=void 0===g?document.body:g,v=t._instance;if(!v){var y=n.default.extend(o.default);v=t._instance=new y({propsData:{content:r,icon:a,iconSvg:u,duration:d,position:h,hasMask:m}}).$mount()}return v.$el.parentNode||_.appendChild(v.$el),v.content=r,v.icon=a,v.iconSvg=u,v.duration=d,v.position=h,v.hasMask=m,v.show(),v};s._instance=null,s.hide=function(){var t=n.default.extend(o.default);s._instance instanceof t&&s._instance.visible&&s._instance.hide()},s.info=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body;return s({icon:"",content:t,duration:e,hasMask:i,parentNode:n})},s.succeed=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body;return s({icon:"success",content:t,duration:e,hasMask:i,parentNode:n})},s.failed=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body;return s({icon:"fail",content:t,duration:e,hasMask:i,parentNode:n})},s.loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body;return s({icon:"spinner",iconSvg:!0,content:t,duration:e,hasMask:i,parentNode:n})},s.component=o.default,t.default=s}))},"20eb":function(t,e,i){"use strict";i("6c4f")},"34b7":function(t,e,i){},"3b57":function(t,e,i){},"3b59":function(t,e,i){},"435f":function(t,e,i){"use strict";i("f778")},"46b8":function(t,e,i){"use strict";i("3b59")},4849:function(t,e,i){},"4c10":function(t,e,i){},"4cf8":function(t,e,i){"use strict";e["a"]={PickupAndDelivery:0,PickupOnly:1,DeliveryOnly:2}},"501b":function(t,e,i){},5916: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:"product-page has-top-bar"},[n("app-title-bar",{attrs:{title:t.productPlain&&t.productPlain.title}}),t.isProductHide?n("div",{staticClass:"product-hide-alert"},[n("img",{attrs:{src:i("5dfc"),alt:""}}),n("p",[t._v(t._s(t.$t("Product has been taken off")))]),t.$platform.isMylink?t._e():n("router-link",{attrs:{to:{name:"HomeIndex"}}},[t._v(t._s(t.$t("Return to the home page")))])],1):t.product?[t.images.length?n("ProductBanner",{attrs:{images:t.images}}):t._e(),t.hasCurrentLangTrans?[t.productPlain?n("ProductTitle",{attrs:{name:t.productPlain.title,price:t.price,tags:t.tags,"day-limited":t.dayLimited,"user-limited":t.userLimited,"booking-limited":t.bookingLimited,promoted:t.promoted,fetchMethod:t.getCoupons,coupons:t.coupons,warehouse:t.warehouse,promotions:t.promotions}}):t._e(),n("div",{staticClass:"product-detail-menu"},[n("affix",{attrs:{"relative-element-selector":"#product-detail-hook",offset:{top:110,bottom:0},"scroll-affix":!0}},[n("scrollactive",{ref:"productDetailMenu",staticClass:"product-detail-menu-affix",attrs:{offset:100,"highlight-first-item":"",modifyUrl:!1},on:{itemchanged:t.onMenuItemChanged}},[t.highlight?n("a",{staticClass:"scrollactive-item",attrs:{href:"#product-highlight"}},[t._v(t._s(t.$t("What to Expect")))]):t._e(),t.detail?n("a",{staticClass:"scrollactive-item",attrs:{href:"#product-detail"}},[t._v(t._s(t.$t("Details")))]):t._e(),t.costIncluded?n("a",{staticClass:"scrollactive-item",attrs:{href:"#product-inclusions"}},[t._v(t._s(t.$t("Inclusions")))]):t._e(),t.costNotIncluded?n("a",{staticClass:"scrollactive-item",attrs:{href:"#product-exclusions"}},[t._v(t._s(t.$t("Exclusions")))]):t._e(),t.precautions?n("a",{staticClass:"scrollactive-item",attrs:{href:"#product-precautions"}},[t._v(t._s(t.$t("Important to Know")))]):t._e(),t.orderDetail?n("a",{staticClass:"scrollactive-item",attrs:{href:"#product-order-detail"}},[t._v(t._s(t.$t("Order & Delivery")))]):t._e(),t.refundPolicy?n("a",{staticClass:"scrollactive-item",attrs:{href:"#product-policy"}},[t._v(t._s(t.refundPolicyTitle))]):t._e()])],1)],1),n("div",{staticClass:"product-detail-hook",attrs:{id:"product-detail-hook"}},[t.highlight?n("ProductDetailContent",{attrs:{id:"product-highlight",title:t.$t("What to Expect"),content:t.highlight,type:"highlight"}}):t._e(),t.detail?n("ProductDetailContent",{attrs:{id:"product-detail",title:t.$t("Details"),content:t.detail,type:"info"}}):t._e(),t.costIncluded?n("ProductDetailContent",{attrs:{id:"product-inclusions",title:t.$t("Inclusions"),content:t.costIncluded,type:"cost-included"}}):t._e(),t.costNotIncluded?n("ProductDetailContent",{attrs:{id:"product-exclusions",title:t.$t("Exclusions"),content:t.costNotIncluded,type:"cost-included"}}):t._e(),t.precautions?n("ProductDetailContent",{attrs:{id:"product-precautions",title:t.$t("Important to Know"),content:t.precautions,type:"info"}}):t._e(),t.orderDetail?n("ProductDetailContent",{attrs:{id:"product-order-detail",title:t.$t("Order & Delivery"),content:t.orderDetail,type:"info"}}):t._e(),t.refundPolicy?n("ProductDetailContent",{staticClass:"last-content-module",attrs:{id:"product-policy",title:t.refundPolicyTitle,content:t.refundPolicy,type:"info"}}):t._e(),t.relatedProducts.length?n("div",{staticClass:"related-products"},[n("RelatedProductList",{attrs:{products:t.relatedProducts}})],1):t._e()],1),t.productPlain?n("div",{staticClass:"bottom-container"},[n("div",{staticClass:"button-booking-wrapper"},[!t.isSoldOut&&t.canLineToBasket?n("button",{staticClass:"button-booking add-cart",on:{click:t.onAddCartClick}},[n("span",[t._v(t._s(t.$t("Add to Cart")))])]):t._e(),n("button",{staticClass:"button-booking",attrs:{disabled:t.isSoldOut},on:{click:t.onBookingClick}},[t.isSoldOut?n("span",[t._v(t._s(t.$t("Daily limit, sold out today!")))]):n("span",[t._v(t._s(t.$t("Book now")))])])])]):t._e()]:n("div",{staticClass:"no-trans"},[n("h3",[t._v(t._s(t.$t("Oops, this product is not yet in current language")))]),n("p",[t._v(t._s(t.$t("But It has other language supported, click to see")))]),n("div",{staticClass:"lang-buttons"},[t.product.details.en_US?n("button",{on:{click:function(e){return t.onLangSelected("en_US")}}},[t._v(t._s(t.$t("In English")))]):t._e(),t.product.details.zh_CN?n("button",{on:{click:function(e){return t.onLangSelected("zh_CN")}}},[t._v(t._s(t.$t("In Simplified Chinese")))]):t._e(),t.product.details.zh_HK?n("button",{on:{click:function(e){return t.onLangSelected("zh_HK")}}},[t._v(t._s(t.$t("In Traditional Chinese")))]):t._e()])])]:t._e(),n("md-popup",{staticClass:"popup-option-sel",attrs:{position:"bottom"},model:{value:t.isShowOptionPopup,callback:function(e){t.isShowOptionPopup=e},expression:"isShowOptionPopup"}},[n("md-popup-title-bar",{attrs:{title:"","ok-text":t.$t("OK"),"cancel-text":t.$t("Cancel"),"large-radius":""},on:{confirm:t.onAddCartConfirm,cancel:function(e){t.isShowOptionPopup=!1}}}),n("OptionSelector",{on:{change:t.onSubOptionChange}})],1),n("ShoppingFab",{attrs:{bottom:50}}),t.product?n("UnAuthProductPurchase",{ref:"priceWrapper",attrs:{product:t.product}}):t._e()],2)},o=[],r=(i("8e6e"),i("ac6a"),i("456d"),i("7f7f"),i("6b54"),i("386d"),i("a481"),i("96cf"),i("1da1")),s=i("ade3"),a=i("2f62"),c=i("90b9"),u=i("365c"),l=i("f116"),d=i("b220"),p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-banner"},[i("md-swiper",{ref:"swiper",attrs:{autoplay:5e3,"is-prevent":!1,"useNative-driver":!1,"has-dots":!1},on:{"after-change":t.onSwiperChange}},t._l(t.images,(function(t){return i("md-swiper-item",{key:t},[i("div",{staticClass:"image-view",style:{backgroundImage:"url('"+t+"')"}})])})),1),i("div",{staticClass:"image-thumb-list-wrapper"},[i("div",{ref:"thumbList",staticClass:"image-thumb-list"},t._l(t.images,(function(e,n){return i("div",{key:n,ref:"thumb_item_"+n,refInFor:!0,staticClass:"image-thumb-item",class:{selected:e===t.currentImage},style:{backgroundImage:"url('"+e+"')"},on:{click:function(e){return t.onImageClick(n)}}})})),0)])],1)},h=[],f={props:{images:{type:Array,default:function(){return[]}}},data:function(){return{currentImage:null,currentImageIndex:0}},computed:{imageViewStyle:function(){return this.currentImage?{backgroundImage:'url("'.concat(this.currentImage,'")')}:null}},watch:{images:function(t){this.setDefaultImage()},currentImageIndex:function(t){this.$refs.thumbList.scrollTo(this.$refs["thumb_item_".concat(t)][0].offsetLeft,0)}},mounted:function(){this.setDefaultImage()},methods:{setDefaultImage:function(){this.images&&this.images.length&&(this.currentImage=this.images[0])},onImageClick:function(t){this.$refs.swiper.goto(t),this.currentImageIndex=t},onSwiperChange:function(t,e){this.currentImage=this.images[e],this.currentImageIndex=e}}},m=f,g=(i("797c"),i("2877")),_=Object(g["a"])(m,p,h,!1,null,"3d3489fc",null),v=_.exports,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-title"},[i("div",{staticClass:"price"},[i("div",[t.productPlain.has_multiple_price&&"en_US"===t.locale?i("span",{staticClass:"price-from"},[t._v("From")]):t._e(),i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName)+" ")]),i("span",[t._v(t._s(t.productPlain.price))]),!t.productPlain.has_multiple_price||"zh_CN"!==t.locale&&"zh_HK"!==t.locale?t._e():i("span",{staticClass:"price-from"},[t._v("起")])]),t.productPlain.originalPrice>t.productPlain.price?i("div",{staticClass:"original"},[i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(t.productPlain.originalPrice))])]):t._e(),i("div",{staticClass:"ratings"},[i("span",{staticClass:"rating-num"},[t._v(t._s(t.ratings.toFixed(1)))]),i("span",{staticClass:"iconfont iconstar"}),t.views>0&&t.views<1e3?i("span",[t._v("("+t._s(t.views)+")")]):t.views>=1e3?i("span",[t._v("("+t._s(Math.floor(t.views/1e3))+"k+)")]):t._e()])]),i("div",{staticClass:"name"},[i("span",[t._v(t._s(t.productPlain.title))])]),i("div",{staticClass:"voucher-tip-container",class:{"voucher-tip-no-margin":t.coupons.length}},[t._l(t.productPlain&&t.productPlain.tags,(function(e){return i("div",{key:e,staticClass:"voucher-tip"},[t._v(t._s(t.$t(e)))])})),t.voucherType&&t.productPlain&&t.productPlain.type===t.$productTypes.DEI?i("div",{staticClass:"voucher-tip"},[t._v(t._s(t.voucherType))]):t._e(),t.isFreeShiping?i("div",{staticClass:"voucher-tip"},[t._v(t._s(t.$t("Free shipping")))]):t._e(),t.isLimitPurchased?i("div",{staticClass:"voucher-tip tip-highlight"},[t._v(t._s(t.$t("Limited {num} per account",{num:t.limitedData.num})))]):t._e()],2),t.coupons.length||t.promotions.length?i("div",{staticClass:"split-line"}):t._e(),t.coupons.length?i("div",{staticClass:"cp-list-wrapper",on:{click:function(e){return t.showCouponList(e)}}},[i("div",{staticClass:"label"},[t._v("\n "+t._s(t.$t("Coupon"))+"\n ")]),i("div",{staticClass:"cp-list"},t._l(t.coupons,(function(e){return i("div",{key:e.id,staticClass:"cp-list-item",on:{click:function(i){return t.showCouponList(i,e.id)}}},[0===e.discount_type?i("span",{staticClass:"bold"},[t._v(" "+t._s(t.currencyName)+" "+t._s(e.discount_value[t.currency])+" OFF")]):t._e(),1===e.discount_type?i("span",{staticClass:"bold"},[t._v(t._s(e.discount_value[t.currency])+"% OFF")]):t._e()])})),0),i("div",{staticClass:"btn-get-coupon"},[t._v(t._s(t.$t("Get")))])]):t._e(),t.promotions.length?i("div",{staticClass:"promotion-list-wrapper"},[i("div",{staticClass:"label"},[t._v("\n "+t._s(t.$t("Promotion"))+"\n ")]),i("div",{staticClass:"promotion-list"},t._l(t.promotions,(function(e){return i("div",{key:e.id,staticClass:"promotion-list-item"},[0===e.reward_method?i("span",[t._v(t._s(t.$t("Buy now get {num} MyLink points",{num:e.reward_mylink_points})))]):t._e(),1===e.reward_method?i("span",[t._v(t._s(t.$t("For every {price} get {num} MyLink points",{price:t.currencyName+e.reward_per_amount[t.currency],num:e.reward_mylink_points})))]):t._e()])})),0)]):t._e(),i("PopupCouponList",{attrs:{fetchMethod:t.fetchMethod,show:t.isShowPopupCoupon,couponClicked:t.couponClicked,coupons:t.coupons},on:{"update:show":function(e){t.isShowPopupCoupon=e}}})],1)},b=[],C=(i("c5f6"),i("c1df")),w=i.n(C),P=i("4cf8"),k=i("cc3b");function O(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 $(t){for(var e=1;e0||this.userLimited>0},limitedText:function(){var t=[];return this.userLimited>0&&t.push(this.$t("Maximum limit pieces per person",{num:this.userLimited})),this.dayLimited>0&&t.push(this.$t("limit pieces release per day",{num:this.dayLimited})),t.join(",")},isLimitPurchased:function(){return!!this.current&&this.current.is_limit_purchased},limitedData:function(){if(!this.current)return{};var t=this.current.limit_purchased_start_date,e=this.current.limit_purchased_end_date;return t=w()(t).format("YYYY.MM.DD"),e=w()(e).format("YYYY.MM.DD"),{num:this.current.limit_purchased_num,start:t,end:e}},views:function(){return this.current?this.current.flan.views:0},ratings:function(){return this.current&&this.current.flan.star_ratings||0}}),methods:{showCouponList:function(t,e){event.stopPropagation(),this.isShowPopupCoupon=!this.isShowPopupCoupon,this.couponClicked=e}}},x=S,j=(i("20eb"),Object(g["a"])(x,y,b,!1,null,"3837ddbd",null)),A=j.exports,I=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-content"},[i("h3",{staticClass:"title",class:t.type},[t._v(t._s(t.title))]),i("div",{domProps:{innerHTML:t._s(t.content)}})])},D=[],L={props:{type:String,title:String,content:String}},N=L,T=(i("6bbe"),Object(g["a"])(N,I,D,!1,null,"5d597c18",null)),M=T.exports,R=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"popular-list"},[i("div",{staticClass:"list-title"},[t._v("\n "+t._s(t.$t("You might like"))+"\n ")]),i("div",{staticClass:"scroll-container"},t._l(t.toursFormatted,(function(e){return i("a",{key:e.id,staticClass:"list-item",attrs:{href:"/product/"+e.seo_sn+"/"+e.id}},[i("div",{staticClass:"list-item-image",style:{"background-image":"url('"+e.imageUrl+"')"}}),i("div",{staticClass:"tour-name"},[t._v(t._s(e.title))]),i("div",{staticClass:"tour-price"},[e.has_multiple_price&&"en_US"===t.locale?i("span",{staticClass:"price-from"},[t._v("From")]):t._e(),i("span",[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(e.price))]),!e.has_multiple_price||"zh_CN"!==t.locale&&"zh_HK"!==t.locale?t._e():i("span",{staticClass:"price-from"},[t._v("起")])])])})),0)])},E=[],F={props:{products:{type:Array,default:function(){return[]}}},computed:{toursFormatted:function(){var t=this;return this.products.map((function(e){var i=e.id,n=e.seo_sn,o=e.images,r=e.details,s=e.pog_cities,a=e.mkp_display_price,c=e.has_multiple_price,u="",l="";return r[t.locale]&&(u=r[t.locale].title),o.base&&o.base.title&&(l=o.base.title),{id:i,seo_sn:n,title:u,has_multiple_price:c,imageUrl:l,pog_cities:s,price:a[t.currency]}}))}}},U=F,Y=(i("b542"),Object(g["a"])(U,R,E,!1,null,"9ee9d608",null)),B=Y.exports,q=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(),t.isOverLimitPurchasedNum?i("div",{staticClass:"limit-tip"},[t._v(t._s(t.$t("Quantity over limit")))]):t._e(),i("div",{staticClass:"order-detail"},[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 ")]),e.original_price&&e.original_price[t.currency]>e.price[t.currency]?i("div",{staticClass:"original-price"},[t._v("\n "+t._s(t.currencyName)+t._s(e.original_price[t.currency]||"--")+"\n ")]):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)]),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"}})],1)},H=[];function z(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;ethis.current.limit_purchased_num-this.current.user_purchased_num}}),methods:{onOptionSelected:function(t){this.bookingOption=t[0].data},decreaseSubOptionNum:function(t){if(t.available){var e=1;t.min_purchase_quantity>0&&(e=t.min_purchase_quantity),t.num>e?t.num--:t.num=0,this.$emit("change",this.bookingSubOptions)}},increaseSubOptionNum:function(t){if(t.available){var e=10,i=1,n=-1;t.min_purchase_quantity>0&&(i=t.min_purchase_quantity),t.max_purchase_quantity>0&&(e=t.max_purchase_quantity),t.max_quantity_per_sub_option>0&&(n=t.max_quantity_per_sub_option),n>-1&&i>n?this.$toast.info(this.$t("Out of stock")):t.num-1&&t.num>=n?this.$toast.info(this.$t("We only have {stock} left",{stock:n})):t.num>=e?this.$toast.info(this.$t("Maximum {quantity} orders per person",{quantity:e})):this.$toast.info(this.$t("Quantity out of range"))}},onOptionClick:function(){this.availableOptions.length>1&&(this.isOptionPickerShow=!0)}},watch:{availableOptions:function(t){t&&t.length?this.bookingOption=t[0]:this.bookingOption=null},bookingOption:function(t){var e=this,i=[];if(t){i=this.bookingOption.sub_options.filter((function(t){return t.details[e.$i18n.locale]}));var n=!1;i=i.map((function(t){var e=t.max_quantity_per_sub_option<0||t.max_quantity_per_sub_option>=t.min_purchase_quantity,i=Object.assign({},t,{available:e});return!n&&e?(i.num=t.min_purchase_quantity,n=!0):i.num=0,i}))}this.bookingSubOptions=i,this.$emit("change",i)}}},G=K,W=(i("1548"),Object(g["a"])(G,q,H,!1,null,"3fbf7b16",null)),Z=W.exports;function X(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 J(t){for(var e=1;e0}))},getCoupons:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,u["a"].coupon.getCoupons({product_id:this.$route.params.id,platforms__in:this.$platform.platform,locale:this.locale,visible_in_storefront:"True"});case 2:e=t.sent,this.coupons=e.results;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),initShare:function(){var t=new URLSearchParams(window.location.search);t.delete("thirdpartytoken"),t=t.toString(),t&&(t="?"+t);var e="";this.images.length&&(e=this.images[0]),this.setMylinkShare({title:this.name,content:Object(c["c"])(this.highlight),img:e,url:"".concat(window.location.origin).concat(window.location.pathname).concat(t)})}}),watch:{locale:function(){this.getProductData(this.$route.params.id)}}},tt=Q,et=(i("1774"),Object(g["a"])(tt,n,o,!1,null,"145f0f58",null));e["default"]=et.exports},"5dfc":function(t,e,i){t.exports=i.p+"img/default_image@2x.23bb5967.png"},"6bbe":function(t,e,i){"use strict";i("4849")},"6c4f":function(t,e,i){},"6c6d":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:"product-list-page has-top-bar"},[n("app-title-bar",{attrs:{title:t.$t("Product list")}}),n("div",{staticClass:"top-banner"},[t.bannerImage?[n("div",{staticClass:"top-banner-img",style:{"background-image":"url('"+t.bannerImage+"')"}}),n("div",{staticClass:"top-banner-content"},[n("span",{staticClass:"title"},[t._v(t._s(t.bannerTitle))]),n("img",{staticClass:"button-switch-city",attrs:{src:i("ad92"),alt:""},on:{click:t.switchCityClick}})])]:t._e()],2),n("ProductFilter",{on:{change:t.onProductFilterChange,init:t.onProductFilterInit,sorting:t.onSortingChange}}),n("ProductList",{staticClass:"product-list-comp",attrs:{types:t.filterCategoryIds,sorting:t.sorting,type:t.productType,"parent-id":t.parentId}})],1)},o=[],r=(i("6b54"),i("386d"),i("a481"),i("7f7f"),i("96cf"),i("1da1")),s=i("365c"),a=i("8e84"),c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"filter-sort-container"},[i("div",{staticClass:"filter-sort"},[i("div",{staticClass:"filter-item",class:{active:t.selectedParentCategory},on:{click:t.onCategoryShow}},[i("span",{staticClass:"iconfont iconfilter"}),i("span",[t._v(t._s(t.currentCategoryName))])]),i("div",{staticClass:"filter-item",class:{active:t.sorting},on:{click:function(e){t.showSortingPopup=!0}}},["mkp_display_price"===t.sorting?i("span",{staticClass:"iconfont iconarrow-up"}):i("span",{staticClass:"iconfont iconarrow-down"}),i("span",[t._v(t._s(t.sortingName))])])]),i("md-popup",{attrs:{position:"bottom"},on:{hide:t.onCategoryPopupHide},model:{value:t.showCategoryPopup,callback:function(e){t.showCategoryPopup=e},expression:"showCategoryPopup"}},[i("div",{staticClass:"popup-content"},[i("div",{staticClass:"category-list"},[i("div",{staticClass:"category-item",class:{selected:!t.selectedParentCategory},on:{click:t.onAllCategoryClick}},[i("span",[t._v(t._s(t.$t("All")))])]),t._l(t.types,(function(e){return i("div",{key:e.id,staticClass:"category-item",class:{selected:t.selectedParentCategory&&t.selectedParentCategory.id===e.id},on:{click:function(i){return t.onParentCategoryClick(e)}}},[i("span",[t._v(t._s(e.name[t.locale]))])])}))],2),i("div",{staticClass:"category-list"},[t.selectedParentCategory?i("div",{staticClass:"category-item",class:{selected:"all"===t.selectedChildCategory},on:{click:function(e){return t.onChildCategoryChange("all")}}},[i("span",[t._v(t._s(t.$t("All")))])]):t._e(),t._l(t.childCategories,(function(e){return i("div",{directives:[{name:"show",rawName:"v-show",value:t.childCategories.length>1,expression:"childCategories.length > 1"}],key:e.id,staticClass:"category-item",class:{selected:t.selectedChildCategory&&t.selectedChildCategory.id===e.id},on:{click:function(i){return t.onChildCategoryChange(e)}}},[i("span",[t._v(t._s(e.name[t.locale]))])])}))],2)])]),i("md-popup",{attrs:{position:"bottom"},model:{value:t.showSortingPopup,callback:function(e){t.showSortingPopup=e},expression:"showSortingPopup"}},[i("div",{staticClass:"popup-content"},[i("div",{staticClass:"sorting-list"},t._l(t.sortings,(function(e){return i("div",{key:e.value,staticClass:"sorting-item",class:{selected:t.sorting===e.value},on:{click:function(i){return t.onSortingClick(e)}}},[i("span",[t._v(t._s(e.text))])])})),0)])])],1)},u=[],l=(i("ac6a"),i("2909")),d=(i("7514"),i("28a5"),i("20d6"),{data:function(){return{prevParentCategory:null,prevChildCategory:null,selectedParentCategory:null,selectedChildCategory:null,types:[],showCategoryPopup:!1,showSortingPopup:!1,sorting:""}},computed:{currentCategoryName:function(){return this.selectedParentCategory?this.selectedParentCategory.name[this.locale]:this.$t("Category")},sortingName:function(){var t=this,e=this.sortings.findIndex((function(e){return e.value===t.sorting}));return e>=0?this.sortings[e].text:""},sortings:function(){return[{value:"",text:this.$t("Sorting")},{value:"-id",text:this.$t("New arrival")},{value:"mkp_display_price",text:this.$t("Low price")},{value:"-flan__star_ratings",text:this.$t("High Rating")}]},childCategories:function(){return this.selectedParentCategory?this.selectedParentCategory.children:[]},defaultSeleted:function(){return this.$route.query.type?this.$route.query.type.split(","):[]}},created:function(){this.getMkpTagTree()},methods:{getMkpTagTree:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,i,n,o,r,a,c,u=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={depth:1,status:"ACT"},t.next=3,s["a"].tag.getCategoryTree(e);case 3:i=t.sent,n=i.results.filter((function(t){return"Tour"===t.name.en_US||"Ticket"===t.name.en_US||"Hotel"===t.name.en_US})),o=n.find((function(t){return"Tour"===t.name.en_US})),r=n.find((function(t){return"Ticket"===t.name.en_US})),a={children:[].concat(Object(l["a"])(o.children),Object(l["a"])(r.children)),name:{en_US:this.$t("Things to do"),zh_CN:this.$t("Things to do"),zh_HK:this.$t("Things to do")}},c=n.find((function(t){return"Hotel"===t.name.en_US})),n=[a,c],n.forEach((function(t){var e=!0;t.children.forEach((function(i){var n=u.defaultSeleted.findIndex((function(t){return t===i.name.en_US||t===i.id.toString()}))>-1;n&&(u.selectedParentCategory=t,u.selectedChildCategory=i),e=n&&e})),e&&(u.selectedChildCategory="all")})),this.types=n,this.updateValue("init");case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onAllCategoryClick:function(t){this.selectedParentCategory=null,this.selectedChildCategory=null,this.showCategoryPopup=!1},onParentCategoryClick:function(t){this.selectedParentCategory=t,this.selectedChildCategory=null},onCategoryShow:function(){this.showCategoryPopup=!0,this.prevParentCategory=this.selectedParentCategory,this.prevChildCategory=this.selectedChildCategory,this.selectedParentCategory&&!this.selectedChildCategory&&(this.selectedChildCategory="all")},onChildCategoryChange:function(t){this.selectedChildCategory=t,this.showCategoryPopup=!1},onCategoryPopupHide:function(){this.prevParentCategory===this.selectedParentCategory&&this.prevChildCategory===this.selectedChildCategory||this.updateValue()},updateValue:function(t){var e=[];this.selectedParentCategory&&(this.selectedChildCategory&&"all"!==this.selectedChildCategory?e.push({id:this.selectedChildCategory.id,name:this.selectedChildCategory.name.en_US}):e=this.childCategories.map((function(t){return{id:t.id,name:t.name.en_US}}))),this.$emit(t||"change",e)},onSortingClick:function(t){this.sorting=t.value,this.showSortingPopup=!1,this.$emit("sorting",t.value)}},watch:{defaultSeleted:function(){this.getMkpTagTree()}}}),p=d,h=(i("851d"),i("2877")),f=Object(h["a"])(p,c,u,!1,null,"159ecff6",null),m=f.exports,g={components:{ProductList:a["a"],ProductFilter:m},data:function(){return{sorting:"",filterCategories:[],cityInfo:null,bannerImage:null,showCategorySelector:!1,showSortingSelector:!1}},computed:{parentId:function(){return this.$route.query.dest},bannerTitle:function(){return this.cityInfo?this.$options.filters.lang(this.cityInfo.details,this.locale,"title"):""},filterCategoryIds:function(){return this.filterCategories.map((function(t){return t.id}))},productType:function(){return this.filterCategoryIds.length?null:this.$platform.isMylink?"TKT":"TKT,TOR,RNT,LGG"}},methods:{getCityInfo:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s["a"].location.getCities({id:this.parentId});case 2:if(e=t.sent,e&&e.length){t.next=5;break}return t.abrupt("return");case 5:i=e[0],this.cityInfo=i,i.images&&i.images.mobile&&i.images.mobile.banners.length?this.bannerImage=i.images.mobile.banners[0]:i.images&&i.images.base&&i.images.base.banners.length?this.bannerImage=i.images.base.banners[0]:this.bannerImage="/static/images/default_city_banner.jpg";case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),switchCityClick:function(){var t={name:"HomeDestinations"};this.filterCategories.length&&(t.query={productType:this.filterCategories.map((function(t){return t.name})).join(",")}),this.$router.push(t)},onSortingChange:function(t){this.sorting=t},onProductFilterChange:function(t){this.$router.replace({name:this.$route.name,query:{dest:this.$route.query.dest,type:t.map((function(t){return t.name})).join(",")}})},onProductFilterInit:function(t){this.filterCategories=t},initShare:function(){var t=new URLSearchParams(window.location.search.toLowerCase());t.delete("thirdpartytoken"),t=t.toString(),t&&(t="?"+t),this.setMylinkShare({title:this.$t("Selected travel product"),content:this.$t("Selected, Quality, Plenty"),img:"https://flanb-data.travelflan.com/product/d06c32a1542a4770aa26851d4eca25c7.jpeg",url:"".concat(window.location.origin).concat(window.location.pathname).concat(t)})}},mounted:function(){this.getCityInfo(),this.initShare()}},_=g,v=(i("ed77"),Object(h["a"])(_,n,o,!1,null,"9f0a790c",null));e["default"]=v.exports},"6d51":function(t,e,i){"use strict";i("501b")},7170:function(t,e,i){"use strict";i("3b57")},"78cd":function(t,e,i){"use strict";i("8175")},"797c":function(t,e,i){"use strict";i("bf21")},8175:function(t,e,i){},"851d":function(t,e,i){"use strict";i("9d9a")},"8e84":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-list-container"},[i("md-scroll-view",{ref:"scrollView",attrs:{"scrolling-x":!1,bouncing:!1},on:{endReached:t.onEndReached}},[t._l(t.products,(function(t){return i("ProductListItem",{key:t.id,attrs:{product:t}})})),i("md-scroll-view-more",{attrs:{slot:"more","loading-text":t.$t("Loading..."),"finished-text":"","is-finished":t.isAllProductLoaded},slot:"more"}),i("div",[t.isAllProductLoaded&&!t.products.length?i("div",{staticClass:"no-products"},[i("span",{domProps:{innerHTML:t._s(t.$t("No more content"))}})]):t._e(),t.isAllProductLoaded&&t.products.length?i("div",{staticClass:"no-more-data"},[t._v("\n "+t._s(t.$t("No more content"))+"\n ")]):t._e()])],2),i("ShoppingFab")],1)},o=[],r=(i("8e6e"),i("ac6a"),i("456d"),i("96cf"),i("1da1")),s=i("ade3"),a=(i("c5f6"),i("2f62")),c=i("f116"),u=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("router-link",{staticClass:"product-item",attrs:{to:{name:"ProductDetailWithSN",params:{id:t.product.id,sn:t.product.seo_sn}}}},[i("div",{staticClass:"product-image",style:{"background-image":"url('"+t.image+"')"}}),i("div",{staticClass:"product-info"},[i("div",{staticClass:"title"},[t._v(t._s(t.productTitle))]),t.subDescription?i("div",{staticClass:"desc"},[t._v("\n "+t._s(t.subDescription)+"\n ")]):i("div",{staticClass:"product-tags"},t._l(t.product.tags,(function(e){return i("span",{key:e,staticClass:"product-tag"},[t._v(t._s(t.$t(e)))])})),0),t.originalPrice&&t.originalPrice>t.price?i("div",{staticClass:"origin-price"},[i("span",[t._v(t._s(t.currencyName))]),t._v(t._s(t.originalPrice)+"\n ")]):t._e(),i("div",{staticClass:"price"},[t.product.has_multiple_price&&"en_US"===t.locale?i("span",{staticClass:"price-from"},[t._v("From")]):t._e(),i("span",[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(t.price))]),!t.product.has_multiple_price||"zh_CN"!==t.locale&&"zh_HK"!==t.locale?t._e():i("span",{staticClass:"price-from"},[t._v("起")]),i("div",{staticClass:"ratings"},[i("span",{staticClass:"rating-num"},[t._v(t._s(t.ratings.toFixed(1)))]),i("span",{staticClass:"iconfont iconstar"}),t.views>0&&t.views<1e3?i("span",[t._v("("+t._s(t.views)+")")]):t.views>=1e3?i("span",[t._v("("+t._s(Math.floor(t.views/1e3))+"k+)")]):t._e()])])])])},l=[],d={props:{product:Object},computed:{price:function(){return this.product.mkp_display_price[this.currency]},originalPrice:function(){return this.product.mkp_display_original_price[this.currency]},priceOffPct:function(){var t=0;return this.originalPrice>this.price&&(t=Number((100*(this.originalPrice-this.price)/this.originalPrice).toFixed(0))),t},productTitle:function(){return this.product&&this.product.details[this.locale]?this.product.details[this.locale].title:""},subDescription:function(){return this.product&&this.product.details[this.locale]?this.product.details[this.locale].meta.sub_description:""},image:function(){var t=this.product.images.base;return t?t.title:""},tags:function(){var t=[];return t},views:function(){return this.product?Number(this.product.flan.views):0},ratings:function(){return this.product&&this.product.flan.star_ratings||0}}},p=d,h=(i("fd34"),i("2877")),f=Object(h["a"])(p,u,l,!1,null,"75490914",null),m=f.exports;function g(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 _(t){for(var e=1;e0?this.sortings[e].text:this.$t("Sorting")},sortings:function(){return[{value:"",text:this.$t("Default sorting")},{value:"-id",text:this.$t("New arrival")},{value:"mkp_display_price",text:this.$t("Low price")},{value:"-flan__star_ratings",text:this.$t("High Rating")}]},childCategories:function(){return this.selectedCategory?this.selectedCategory.children:[]},defaultSeleted:function(){return this.$route.query.type?this.$route.query.type.split(","):[]}},created:function(){this.getMkpTagTree()},methods:{getMkpTagTree:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){var e,i,n,o=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={status:"ACT",parent__name:"Delivery"},t.next=3,u["a"].tag.getCategoryTree(e);case 3:i=t.sent,n=i.results,n.forEach((function(t){var e=o.defaultSeleted.findIndex((function(e){return e===t.name.en_US}))>-1;e&&(o.selectedCategory=t)})),this.types=n,this.updateValue("init");case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onAllCategoryClick:function(t){this.selectedCategory=null,this.showCategoryPopup=!1,this.updateValue()},onCategoryClick:function(t){this.selectedCategory=t,this.showCategoryPopup=!1,this.updateValue()},onCategoryShow:function(){this.showCategoryPopup=!0},updateValue:function(t){var e=[];this.selectedCategory&&e.push({id:this.selectedCategory.id,name:this.selectedCategory.name.en_US}),this.$emit(t||"change",e)},onSortingClick:function(t){this.sorting=t.value,this.showSortingPopup=!1,this.$emit("sorting",t.value)}},watch:{defaultSeleted:function(){this.getMkpTagTree()}}},d=l,p=(i("959f"),i("2877")),h=Object(p["a"])(d,s,a,!1,null,"8de221a2",null),f=h.exports,m={components:{ProductList:r["a"],DeliveryProductFilter:f},data:function(){return{sorting:"",filterCategories:[],cityInfo:null,bannerImage:null,showCategorySelector:!1,showSortingSelector:!1}},computed:{parentId:function(){return this.$route.query.dest},bannerTitle:function(){return this.cityInfo?this.cityInfo.meta[this.locale]:""},filterCategoryIds:function(){return this.filterCategories.map((function(t){return t.id}))}},methods:{onSortingChange:function(t){this.sorting=t},onProductFilterChange:function(t){this.$router.replace({name:this.$route.name,query:{dest:this.$route.query.dest,type:t.map((function(t){return t.name})).join(",")}})},onProductFilterInit:function(t){this.filterCategories=t},initShare:function(){var t=new URLSearchParams(window.location.search.toLowerCase());t.delete("thirdpartytoken"),t=t.toString(),t&&(t="?"+t),this.setMylinkShare({title:this.$t("Selected goods"),content:this.$t("Selected, Quality, Plenty"),img:"https://flanb-data.travelflan.com/product/fe93e057332946ac8cc48a49db73969b.jpeg",url:"".concat(window.location.origin).concat(window.location.pathname).concat(t)})}},mounted:function(){this.initShare()}},g=m,_=(i("435f"),Object(p["a"])(g,n,o,!1,null,"0f781b78",null));e["default"]=_.exports},"9d9a":function(t,e,i){},a6cf:function(t,e,i){},ad92:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAABZLkSWAAAEvElEQVRYCe2XT0jlVRTHZ7JpRsZhhoahJiimbIYmipAKWtYmctFSWkXQJqGyoGaCqHBh/xa1GcLaBIkhLQJRECVdVNJCUREU/5AYoiLiP3IeWv5+7/X9PN953Hff7/fe7z1nlweO995zzj3n+8695/yuJ04c03EGjjNQMgMnS2rLK9397tzdmXEW7twRx0/vjlfFalwgzF1mk+kNDKMxeiPT2zpyNGeRygih2TPeJbaRua3NxkClpTNGxtzA2SjR0YigBqZG81PiM4ODg9c2Nzff29/f/yUIgj/T6fRtmPne3t7gysrKBx0dHU/I9ry4jj1i9uLD/0ESVUcuOK7E6aGhofpUKvVDJpMJxOUo2NnZ+bG9vR2gF8Rn8SHG1x0BaZnD4Rll5RUh+rscKl+vzO5OTk6+Jh8XxefwJXZBalk5FYBTJm4ocNoPXsE6XFxc/EQwLomPDNKOlvtyOpe5sAIwcabh6Ojo6w5IjpsYFk/TZGTZO8WdU7SKjzUOIcfd2tr6jGBw3NxJCsfuo6bJCIDZe5criLh4VcnX19d/kv/LYgrH7iMxE1E+e7QSIUhSrZUCDZTF54SG+0gLiswiaY2jLMiGhoaXZcAdyZP63vLu7u5MXlB6ktne3h5Xb9zxzGqamppekszvi55Z9NKOt5Ym7KUmbGxsfFHbnp2dnf3e0/nLYGBg4CPZPt3Z2dnsK9UVfpXuIfG94loxV4rYZYnM8svO8lXwHff29t6QrkH85Nzc3De+nrUK4aCvr++mbJ7Cbn5+/jvfTj9+UbqHxRyzWyxaliYDWMeny3cs2T/d3d1vysXj4scE8ivXRvp/9SPekY6vx3Vl+ktXb/MwDFPS14vvE7v3UMvSBMB7xOeiABIAEGo/b8nmmvjqzMzMZzn5fk9PzxuSXUe3sLDwtQHyxxzAR2V3v5jGTcxSdSH1IeUBRh2xE+hgeHj4XW0hSP3U1NTH/f39r9p6aWnplmNbNNWD4q+cbVUAuYN1vEqKPBcKgpGRkfdly1Fxn67Aq6ur3xaaFa+2trZ+l23VR5wtEp5Mxa6LJOHExMSHCvYI4NbW1spVd9bB2NjYp7KvqkhOaiMlX8t7Tt6SNOr0xsZGr/rjH0XwowVBS0vLC4pRVZsBYI2YD/l53nPRMaqXLi8v/yzfV8UPEEPsPhq0PKRSFcNznOd52NXV9bmg0BLuCKkDpNra2m7J2UGOQ43EquhfADtmPuQXeGwK5FHegpbutBr42/JJ5Vf9WNDe7CeHDGeLReNFHptHBJkeHx//Qr7onQ/iU+x+QUhKYsLYvYs00ks8NuOat6UoalRTvp3LHOAoDD5v+HTvXkUAtTefRSqao86C5LHJe05AklR3QEE0Nzc/r/0cK5kzcPjENydVMTjtyRIbceCC5Ggu856bnp5u1XPqNz78fLpgvhA0YfpcrpVQrVfYI2YvPzQRuCSozcaA0n4Ay900Zo3czUS+C0geiK1iGVn7lRtZwRZc9iXJ7Bh9oAAzjgMIGNgHZqBslEkhWeBCafzK7A2kjQAzcGZDUJj+ZmxrA2SjTKLJnEVro6XuHuYus8P0FpzRZWwg0x+uYv6asxh1WbG73527G10g7ty1OZ7/fzPwHzA7hTPNTkhvAAAAAElFTkSuQmCC"},b220:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("md-popup",{staticClass:"price-popup",attrs:{"mask-closable":!0,position:"bottom"},model:{value:t.isPopupShow.bottom,callback:function(e){t.$set(t.isPopupShow,"bottom",e)},expression:"isPopupShow.bottom"}},[i("md-popup-title-bar",{attrs:{"cancel-text":t.$t("Cancel")},on:{confirm:t.onNext,cancel:function(e){return t.cancel()}}}),i("div",{staticClass:"price-wrapper"},[t.product.options&&t.product.options.length?i("div",{staticClass:"product-options"},t._l(t.product.options,(function(e){return i("div",{key:e.id,staticClass:"product-option",class:{select:t.selectedOption===e},on:{click:function(i){t.selectedOption=e}}},[t._v("\n "+t._s(t.$options.filters.lang(e.details,t.locale,"title"))+"\n ")])})),0):t._e(),t.selectedOption&&t.selectedOption.sub_options&&t.selectedOption.sub_options.length?i("div",{staticClass:"product-sub-options"},t._l(t.selectedOption&&t.selectedOption.sub_options,(function(e){return i("div",{key:e.id,staticClass:"product-sub-option"},[i("div",{staticClass:"sub-title"},[t._v("\n "+t._s(t.$options.filters.lang(e.details,t.locale,"title"))+"\n ")]),i("div",{staticClass:"price"},[t._v("\n "+t._s(t.currencyName)+" "+t._s(e.price[t.currency])+"\n ")])])})),0):t._e(),t.product.variants&&t.product.variants.length?i("div",{staticClass:"product-variants"},t._l(t.product.variants,(function(e){return i("div",{key:e.id,staticClass:"product-variant"},[i("div",{staticClass:"sub-title"},[t._v("\n "+t._s(t.$options.filters.lang(t.product.details,t.locale,"title"))+"\n ")]),i("div",{staticClass:"price"},[t._v("\n "+t._s(t.currencyName)+" "+t._s(e.price[t.currency])+"\n ")])])})),0):t._e()]),i("div",{staticClass:"summary-next"},[i("div",{staticClass:"summary"},[t.product.mkp_display_price?i("div",{staticClass:"summary-pridce"},[i("label",[t._v(t._s(t.currencyName))]),t._v(t._s(t.product.mkp_display_price[t.currency])+"\n ")]):t._e(),t.product.mkp_display_original_price&&t.product.mkp_display_original_price[t.currency]?i("div",{staticClass:"summary-orign"},[i("label",[t._v(t._s(t.currencyName))]),t._v(t._s(t.product.mkp_display_original_price[t.currency])+"\n ")]):t._e(),t.priceOffPct>0?i("div",{staticClass:"summary-off"},["zh_CN"===t.locale||"zh_HK"===t.locale?i("span",[t._v(t._s(t._f("priceDic")(t.priceOffPct))+" 折")]):i("span",[t._v(t._s(t.priceOffPct)+"% off")])]):t._e()]),i("button",{staticClass:"button-get",on:{click:t.onBuyClick}},[t._v(t._s(t.$t("Next")))])])],1)},o=[],r=(i("386d"),i("ac6a"),i("456d"),i("c5f6"),i("c1df")),s=i.n(r),a={components:{},props:{product:{type:Object,required:!0}},data:function(){return{selectedOption:this.product.options[0],selectedVarint:null,resolve:null,reject:null,isPopupShow:{bottom:!1}}},computed:{priceOffPct:function(){if(!this.product)return 0;var t=this.product.mkp_display_price[this.currency],e=this.product.mkp_display_original_price[this.currency],i=0;return e>t&&(i=Number((100*(e-t)/e).toFixed(0))),i}},methods:{optionBetweenStartEndDate:function(t){if(!t)return!0;var e=s()().format("YYYY-MM-DD"),i=t.option_start_date-1;return i},onNext:function(){var t=encodeURIComponent(window.location.pathname+window.location.search);this.$platform.isCn&&this.$platform.isWechat?this.loginByWechat(t):this.$router.push({name:"Login",query:{redirect:t}})},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)},onBuyClick:function(){var t=encodeURIComponent("/restaurant/product/".concat(this.$route.params.id));this.$platform.isCn&&this.$platform.isWechat?this.loginByWechat(t):this.$router.push({name:"Login",query:{redirect:t}})}},mounted:function(){this.product&&this.product.options&&this.product.options.length&&(this.selectedOption=this.product.options[0])},watch:{}},c=a,u=(i("46b8"),i("2877")),l=Object(u["a"])(c,n,o,!1,null,"000521ac",null);e["a"]=l.exports},b542:function(t,e,i){"use strict";i("a6cf")},bee8:function(t,e,i){},bf21:function(t,e,i){},cc3b: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.initScrollView},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":""}}),i("div",{ref:"scrollContainer",staticClass:"cp-list"},[t._l(t.mappedCoupons,(function(e){return i("div",{key:e.id,ref:e.id===t.couponClicked?"list-item-"+e.id:null,refInFor:!0,class:"cp-list-item "+(e.id===t.couponClicked?"clicked":"")},[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.is_available?i("button",{staticClass:"button-get",on:{click:function(i){return t.onCouponGetClick(e)}}},[t._v(t._s(t.$t("Get")))]):i("div",{staticClass:"collected"},[t._v(t._s(t.$t("Collected")))])]),i("div",{staticClass:"cp-date"},[t._v("\n "+t._s(t.getValidDateTip(e))+"\n ")]),i("div",{staticClass:"cp-detail"},[i("span",{domProps:{innerHTML:t._s(e.description)}})])])])})),i("md-toast",{ref:"toastSuccess"},[i("div",{staticClass:"toasted-success"},[t._v(t._s(t.$t("Coupon collected")))])])],2)],1)},o=[],r=(i("8e6e"),i("386d"),i("96cf"),i("1da1")),s=(i("55dd"),i("456d"),i("ac6a"),i("c5f6"),i("ade3")),a=i("1861"),c=i.n(a),u=(i("7f7f"),i("2f62")),l=i("c1df"),d=i.n(l),p=i("365c"),h=i("90b9");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 m(t){for(var e=1;ed()(Date.now())})).sort((function(t,e){return t.valid_end_dt>e.valid_end_dt?1:t.valid_end_dt===e.valid_end_dt?0:t.valid_end_dtd()(Date.now())?s="".concat(this.$t("Available period")," ").concat(d()(o).format("YYYY.MM.DD"),"-").concat(d()(r).format("YYYY.MM.DD")):e?s="".concat(r?this.$t("Expired in {time}",{time:d.a.duration(d()(r)-d()(Date.now())).locale(this.$i18n.locale).humanize()}):this.$t("Expired in {time} after redeeming",{time:d.a.duration(3600*e*1e3).locale(this.$i18n.locale).humanize()})):r&&(s="".concat(this.$t("Valid until")," ").concat(d()(r).format("YYYY.MM.DD"))),s},onHide:function(){this.$refs.scrollContainer.scrollTop=0,this.$emit("update:show",!1)},onCouponGetClick:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var i,n,o,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=encodeURIComponent(window.location.pathname+window.location.search),this.userInfo){t.next=5;break}this.$platform.isCn&&this.$platform.isWechat?this.loginByWechat(i):this.$router.push({name:"Login",query:{redirect:i}}),t.next=42;break;case 5:return t.prev=5,this.$toast.loading(this.$t("Redeeming...")),t.next=9,p["a"].coupon.redeemCoupon({base_coupon_id:e.id});case 9:this.$toast.hide(),this.$refs.toastSuccess.show(),setTimeout((function(){r.$refs.toastSuccess.hide()}),3e3),t.next=38;break;case 14:if(t.prev=14,t.t0=t["catch"](5),!t.t0||!t.t0.error_code){t.next=37;break}n=t.t0.error_code,o="",t.t1=+n,t.next=24002===t.t1?22:24003===t.t1||24004===t.t1?24:24005===t.t1?26:24006===t.t1?28:24007===t.t1?30:24011===t.t1?32:34;break;case 22:return o=this.$t("Code invalid"),t.abrupt("break",34);case 24:return o=this.$t("Reach the limit of this coupon"),t.abrupt("break",34);case 26:return o=this.$t("This Code cannot be used to this product"),t.abrupt("break",34);case 28:return o=this.$t("Conditions of Usage are not met"),t.abrupt("break",34);case 30:return o=this.$t("This Code is not Valid now"),t.abrupt("break",34);case 32:return o=this.$t("This Code has been redeemed"),t.abrupt("break",34);case 34:this.$toast.info(o),t.next=38;break;case 37:this.$toast.info(this.$t("Coupon collect failed"));case 38:return t.prev=38,t.next=41,this.fetchMethod();case 41:return t.finish(38);case 42:case"end":return t.stop()}}),t,this,[[5,14,38,42]])})));function e(e){return t.apply(this,arguments)}return e}()},watch:{show:function(t){this.showPopup=t}}},_=g,v=(i("6d51"),i("2877")),y=Object(v["a"])(_,n,o,!1,null,"7affa4f0",null);e["a"]=y.exports},e9ba:function(t,e,i){var n,o,r;(function(){(function(s,a){o=[e,i("06cd"),i("aed6"),i("cdfc"),i("1198")],n=a,r="function"===typeof n?n.apply(e,o):n,void 0===r||(t.exports=r)})(0,(function(t,e,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=s(e),r=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}t.default={name:"md-toast",components:(n={},a(n,o.default.name,o.default),a(n,r.default.name,r.default),n),props:{icon:{type:String,default:""},iconSvg:{type:Boolean,default:!1},content:{type:[String,Number],default:""},duration:{type:Number,default:0},position:{type:String,default:"center"},hasMask:{type:Boolean,default:!1}},data:function(){return{visible:!1}},beforeDestroy:function(){this.$_timer&&clearTimeout(this.$_timer)},methods:{$_onShow:function(){this.$emit("show")},$_onHide:function(){this.$emit("hide")},fire:function(){var t=this;this.$_timer&&clearTimeout(this.$_timer),this.visible&&this.duration&&(this.$_timer=setTimeout((function(){t.hide()}),this.duration))},show:function(){this.visible=!0,this.fire()},hide:function(){this.visible=!1}}}}))})(),t.exports.__esModule&&(t.exports=t.exports.default);var s="function"===typeof t.exports?t.exports.options:t.exports;s.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"md-toast",class:[t.position]},[i("md-popup",{attrs:{value:t.visible,hasMask:t.hasMask,maskClosable:!1},on:{show:t.$_onShow,hide:t.$_onHide}},[t.$slots.default?i("div",{staticClass:"md-toast-content"},[t._t("default")],2):i("div",{staticClass:"md-toast-content"},[t.icon?i("md-icon",{attrs:{name:t.icon,size:"lg",svg:t.iconSvg}}):t._e(),t._v(" "),t.content?i("div",{staticClass:"md-toast-text",domProps:{textContent:t._s(t.content)}}):t._e()],1)])],1)},s.staticRenderFns=[]},ed77:function(t,e,i){"use strict";i("4c10")},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)},o=[],r=(i("8e6e"),i("ac6a"),i("456d"),i("7f7f"),i("ade3")),s=(i("c5f6"),i("2f62"));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 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,o,!1,null,"c58b6788",null);e["a"]=p.exports},f778:function(t,e,i){},fd34:function(t,e,i){"use strict";i("34b7")}}]);