(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["event-index"],{1198:function(t,e,i){},1861:function(t,e,i){var n,o,s;(function(a,r){o=[e,i("2b0e"),i("e9ba")],n=r,s="function"===typeof n?n.apply(e,o):n,void 0===s||(t.exports=s)})(0,(function(t,e,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(e),o=s(i);function s(t){return t&&t.__esModule?t:{default:t}}var a=function t(e){var i=e.content,s=void 0===i?"":i,a=e.icon,r=void 0===a?"":a,c=e.iconSvg,u=void 0!==c&&c,l=e.duration,d=void 0===l?3e3:l,p=e.position,f=void 0===p?"center":p,h=e.hasMask,v=void 0!==h&&h,_=e.parentNode,m=void 0===_?document.body:_,g=t._instance;if(!g){var b=n.default.extend(o.default);g=t._instance=new b({propsData:{content:s,icon:r,iconSvg:u,duration:d,position:f,hasMask:v}}).$mount()}return g.$el.parentNode||m.appendChild(g.$el),g.content=s,g.icon=r,g.iconSvg=u,g.duration=d,g.position=f,g.hasMask=v,g.show(),g};a._instance=null,a.hide=function(){var t=n.default.extend(o.default);a._instance instanceof t&&a._instance.visible&&a._instance.hide()},a.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 a({icon:"",content:t,duration:e,hasMask:i,parentNode:n})},a.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 a({icon:"success",content:t,duration:e,hasMask:i,parentNode:n})},a.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 a({icon:"fail",content:t,duration:e,hasMask:i,parentNode:n})},a.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 a({icon:"spinner",iconSvg:!0,content:t,duration:e,hasMask:i,parentNode:n})},a.component=o.default,t.default=a}))},"2e02":function(t,e,i){},3573:function(t,e,i){"use strict";i("2e02")},"357d":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:"page-event",class:{"has-top-bar":!t.$platform.isMylink&&!t.$platform.isMlim},style:{backgroundColor:t.backgroundColor}},[t.$platform.isMylink||t.$platform.isMlim?t._e():n("app-title-bar",{attrs:{title:t.documentTitle}}),t.eventError?n("div",{staticClass:"product-hide-alert"},[n("img",{attrs:{src:i("5dfc"),alt:""}}),n("p",[t._v(t._s(t.$t("Event 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.hasCurrentLangTrans?[n("div",{staticClass:"event-banner",style:{backgroundImage:"url("+t.bannerImage+")"}},[n("div",{staticClass:"coupon-list"},t._l(t.coupons,(function(e){return n("div",{key:e.id,staticClass:"coupon-item",on:{click:function(e){return t.showCouponList(e)}}},[n("div",{staticClass:"item-left"},[n("div",{staticClass:"coupon-title"},[0===e.discount_type?n("span",{staticClass:"bold"},[t._v(" "+t._s(t.currencyName)+t._s(e.discount_value[t.currency])+" OFF")]):t._e(),1===e.discount_type?n("span",{staticClass:"bold"},[t._v(t._s(e.discount_value[t.currency])+"% OFF")]):t._e()]),n("div",{staticClass:"coupon-outdate"},[t._v(t._s(t._f("date")(e.valid_end_dt,"YYYY-MM-DD")))])]),n("div",{staticClass:"item-right"},[n("div",{staticClass:"redeem-button",class:{collected:!e.is_available}},[t._v(t._s(e.is_available?t.$t("Get"):t.$t("Collected")))])])])})),0)]),t.sectionNavFontColor&&t.sectionNavBackgroundColor&&t.navigationSections.length?n("div",{staticClass:"event-nav"},[n("affix",{attrs:{"relative-element-selector":"#section-detail-hook",offset:{top:110,bottom:0},"scroll-affix":!0}},[n("scrollactive",{staticClass:"event-nav-affix",attrs:{offset:100,"highlight-first-item":"",modifyUrl:!1}},t._l(t.navigationSections,(function(e){return n("a",{key:e.id,staticClass:"scrollactive-item",style:{backgroundColor:t.sectionNavBackgroundColor},attrs:{href:"#section-"+e.id}},[n("span",{style:{color:t.sectionNavFontColor,borderBottomColor:t.sectionNavFontColor}},[t._v(t._s(e.name))])])})),0)],1)],1):t._e(),n("div",{staticClass:"section-detail-hook",attrs:{id:"section-detail-hook"}},[n("div",{staticClass:"section-list"},t._l(t.sections,(function(e){return n("div",{key:e.id,staticClass:"section-list-item",attrs:{id:"section-"+e.id}},[0===e.type?[e.images.length?n("div",{staticClass:"section-title",style:{backgroundImage:"url("+e.images[0].mobile+")"}}):t._e(),"DEI"===e.product_type?n("div",{staticClass:"product-list"},t._l(e.products,(function(t){return n("ProductItemDelivery",{key:t.id,attrs:{product:t}})})),1):"RTR"===e.product_type?n("div",{staticClass:"product-list"},t._l(e.products,(function(t){return n("ProductItemRestaurant",{key:t.id,attrs:{product:t}})})),1):n("div",{staticClass:"product-list"},t._l(e.products,(function(t){return n("ProductItem",{key:t.id,attrs:{product:t}})})),1)]:[n("div",{staticClass:"section-image-container",attrs:{id:"section-"+e.id}},t._l(e.images,(function(e,i){return n("div",{key:i,staticClass:"section-image",on:{click:function(i){return t.onImageClick(e)}}},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.mobile,expression:"image.mobile"}],attrs:{alt:""}})])})),0)]],2)})),0),t.description?n("div",{staticClass:"event-desc"},[n("div",{domProps:{innerHTML:t._s(t.description)}})]):t._e(),n("PopupCouponList",{attrs:{fetchMethod:t.fetchCoupon,coupons:t.coupons,couponClicked:t.couponClicked,show:t.isShowPopupCoupon},on:{"update:show":function(e){t.isShowPopupCoupon=e}}})],1)]:t.eventInfo?n("div",{staticClass:"no-trans"},[n("div",{staticClass:"no-trans-content"},[n("h3",[t._v(t._s(t.$t("Oops, this event 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.eventInfo.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.eventInfo.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.eventInfo.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(),t.isShowShareTip?n("div",{staticClass:"guide-mask",on:{touchstart:t.onGuideMaskClick}},[1===t.tipStep?n("div",{staticClass:"share-tip"},[n("img",{attrs:{src:"/static/images/share_"+t.locale+".png",alt:""}})]):t._e(),2===t.tipStep?n("div",{staticClass:"look-down-tip"},[n("img",{attrs:{src:"/static/images/look_down_"+t.locale+".png",alt:""}})]):t._e()]):t._e()],2)},o=[],s=(i("8e6e"),i("ac6a"),i("456d"),i("6b54"),i("386d"),i("b54a"),i("96cf"),i("1da1")),a=i("ade3"),r=i("2f62"),c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-item",on:{click:function(e){return t.onProductClick()}}},[i("div",{staticClass:"product-info"},[i("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.imageUrl,expression:"imageUrl",arg:"background-image"}],staticClass:"product-image"}),i("div",{staticClass:"product-name"},[t._v("\n "+t._s(t._f("lang")(t.product.details,t.locale,"title"))+"\n ")]),i("div",{staticClass:"product-price"},[i("span",{staticClass:"price"},[t._v(t._s(["AED","JOD","₨","RM"].indexOf(t.currencyName)>-1?t.currencyName+" ":t.currencyName)+t._s(t.price))]),t.originalPrice>t.price?i("span",{staticClass:"origin-price"},[t._v(t._s(["AED","JOD","₨","RM"].indexOf(t.currencyName)>-1?t.currencyName+" ":t.currencyName)+t._s(t.originalPrice))]):t._e(),t.priceOffPct>0?i("div",{staticClass:"sale-percent"},["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()])])])},u=[],l=(i("c5f6"),{props:{product:{type:Object,required:!0}},computed:{imageUrl:function(){return this.product.images.base.title},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}},methods:{onProductClick:function(){this.$router.push({name:"ProductDetailWithSN",params:{id:this.product.id,sn:this.product.seo_sn}})}}}),d=l,p=(i("be28"),i("2877")),f=Object(p["a"])(d,c,u,!1,null,"bbf547dc",null),h=f.exports,v=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-item",on:{click:function(e){return t.onProductClick(t.item)}}},[i("div",{staticClass:"product-info"},[i("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.imageUrl,expression:"imageUrl",arg:"background-image"}],staticClass:"product-image"}),i("div",{staticClass:"product-name"},[t._v("\n "+t._s(t._f("lang")(t.product.details,t.locale,"title"))+"\n ")]),i("div",{staticClass:"sale-price"},[i("span",{staticClass:"currency scale"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(t.product.mkp_display_price[t.currency]))]),t.product.mkp_display_original_price[t.currency]>t.product.mkp_display_price[t.currency]?i("div",{staticClass:"origin-price"},[i("span",{staticClass:"currency"},[t._v(t._s(t.currencyName))]),i("span",[t._v(t._s(t.product.mkp_display_original_price[t.currency]))])]):t._e()])])])},_=[],m={props:{product:{type:Object,required:!0}},computed:{imageUrl:function(){return this.product.images.base.title}},methods:{onProductClick:function(){this.$router.push({name:"ProductDetailWithSN",params:{id:this.product.id,sn:this.product.seo_sn}})}}},g=m,b=(i("62b4"),Object(p["a"])(g,v,_,!1,null,"4ffb816f",null)),C=b.exports,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("router-link",{staticClass:"product-item",attrs:{to:t.linkRoute}},[i("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.image,expression:"image",arg:"background-image"}],staticClass:"product-image"}),i("div",{staticClass:"product-info"},[i("div",{staticClass:"product-name"},[t._v("\n "+t._s(t._f("lang")(t.product.details,t.locale,"title"))+"\n ")]),t.product.most_closed_poi?i("div",{staticClass:"rest-info"},[i("span",{staticClass:"iconfont iconlocation1"}),i("div",{staticClass:"rest-name"},[t._v("\n "+t._s(t._f("lang")(t.product.most_closed_poi.name,t.locale))+"\n ")]),i("div",{staticClass:"distance"},[t._v("\n "+t._s(t._f("distance")(t.product.most_closed_poi.distance))+"\n ")])]):t._e(),i("div",{staticClass:"product-price"},[i("span",{staticClass:"price"},[t._v(t._s(["AED","JOD","₨","RM"].indexOf(t.currencyName)>-1?t.currencyName+" ":t.currencyName)+t._s(t.price))]),t.originalPrice>t.price?i("span",{staticClass:"origin-price"},[t._v(t._s(["AED","JOD","₨","RM"].indexOf(t.currencyName)>-1?t.currencyName+" ":t.currencyName)+t._s(t.originalPrice))]):t._e(),t.priceOffPct>0?i("div",{staticClass:"sale-percent"},["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()])])])},k=[],w={props:{product:Object},computed:{linkRoute:function(){return this.product.type===this.$productTypes.RTR?{name:"RestaurantProductDetailWithSN",params:{id:this.product.id,sn:this.product.seo_sn}}:{name:"ProductDetailWithSN",params:{id:this.product.id,sn:this.product.seo_sn}}},productTitle:function(){return this.product&&this.product.details[this.locale]?this.product.details[this.locale].title:""},image:function(){var t=this.product.images.base;return t?t.title:""},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}}},O=w,P=(i("e019"),Object(p["a"])(O,y,k,!1,null,"643c15e9",null)),$=P.exports,S=i("cc3b");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 M(t){for(var e=1;e"+o+""};t.exports=function(t,e){var i={};i[t]=e(r),n(n.P+n.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)}},"501b":function(t,e,i){},"588a":function(t,e,i){},"5dfc":function(t,e,i){t.exports=i.p+"img/default_image@2x.23bb5967.png"},"62b4":function(t,e,i){"use strict";i("a96f")},"6d51":function(t,e,i){"use strict";i("501b")},a5fd:function(t,e,i){},a96f:function(t,e,i){},b54a:function(t,e,i){"use strict";i("386b")("link",(function(t){return function(e){return t(this,"a","href",e)}}))},be28:function(t,e,i){"use strict";i("588a")},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=[],s=(i("8e6e"),i("386d"),i("96cf"),i("1da1")),a=(i("55dd"),i("456d"),i("ac6a"),i("c5f6"),i("ade3")),r=i("1861"),c=i.n(r),u=(i("7f7f"),i("2f62")),l=i("c1df"),d=i.n(l),p=i("365c"),f=i("90b9");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 v(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())?a="".concat(this.$t("Available period")," ").concat(d()(o).format("YYYY.MM.DD"),"-").concat(d()(s).format("YYYY.MM.DD")):e?a="".concat(s?this.$t("Expired in {time}",{time:d.a.duration(d()(s)-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()})):s&&(a="".concat(this.$t("Valid until")," ").concat(d()(s).format("YYYY.MM.DD"))),a},onHide:function(){this.$refs.scrollContainer.scrollTop=0,this.$emit("update:show",!1)},onCouponGetClick:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e){var i,n,o,s=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(){s.$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}}},m=_,g=(i("6d51"),i("2877")),b=Object(g["a"])(m,n,o,!1,null,"7affa4f0",null);e["a"]=b.exports},e019:function(t,e,i){"use strict";i("a5fd")},e9ba:function(t,e,i){var n,o,s;(function(){(function(a,r){o=[e,i("06cd"),i("aed6"),i("cdfc"),i("1198")],n=r,s="function"===typeof n?n.apply(e,o):n,void 0===s||(t.exports=s)})(0,(function(t,e,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(e),s=a(i);function a(t){return t&&t.__esModule?t:{default:t}}function r(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={},r(n,o.default.name,o.default),r(n,s.default.name,s.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 a="function"===typeof t.exports?t.exports.options:t.exports;a.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)},a.staticRenderFns=[]}}]);