(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5af30cec"],{"04d3":function(t,e,s){t.exports=s.p+"img/health.65d96b9a.webp"},"06dc":function(t,e,s){t.exports=s.p+"img/banner-5.d57e56de.jpg"},"0736":function(t,e,s){},"08ac":function(t,e,s){t.exports=s.p+"img/1.63d2afa3.jpg"},"099b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAACTFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ACAABIAAEgAAQAAJAAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAAQgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABMD/bu6sWpqvT5X21ONaAQAAAAAAAAAAACrsTxb49ov/PWD6AAAAAElFTkSuQmCC"},"0a80":function(t,e,s){t.exports=s.p+"img/butcher.6d5f95d7.webp"},1131:function(t,e,s){t.exports=s.p+"img/SpecialPrice.b79b6178.png"},1175:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row bg-white items-center text-center justify-center",staticStyle:{width:"100%",height:"100vh"}},[i("div",{staticClass:"col-12 row items-center text-center justify-center"},[i("div",{staticClass:"col-12"},[i("q-img",{attrs:{basic:"",contain:"",height:"150px",src:s("9e01")("./"+(t.status?"success-icon-blue":"fail-icon")+".png")}})],1),t.status?i("div",{staticClass:"col-12",staticStyle:{"font-size":"45px",color:"#2c2a74"}},[t._v(t._s(t.totalPrice))]):i("div",{staticClass:"col-12",staticStyle:{"font-size":"30px",color:"red"}},[t._v("Transaction failed")]),t.status?i("div",{staticClass:"col-12",staticStyle:{"font-size":"17px",color:"#AFAFAF"}},[t._v("Paid Successfully")]):t._e(),i("div",{staticClass:"col-10",staticStyle:{padding:"50px 0px"}},[i("q-separator")],1),i("div",{staticClass:"col-12",style:"font-size: 23px;color:"+(t.status?"#2c2a74":"red")},[t._v("Order #"+t._s(t.id))]),i("div",{staticClass:"col-12",staticStyle:{"font-size":"17px",color:"#AFAFAF"}},[t._v(t._s(t.date))]),i("div",{staticClass:"col-12",staticStyle:{"padding-top":"30px"}},[i("q-btn",{staticClass:"no-border-radius",staticStyle:{width:"150px","margin-right":"10px"},attrs:{unelevated:"",color:t.status?"primary":"red","text-color":"white","no-caps":""},on:{click:function(e){return t.ActionStatus(t.status)}}},[t._v(t._s(t.status?"Order":"Back"))]),i("q-btn",{staticClass:"no-border-radius",staticStyle:{width:"150px"},attrs:{color:t.status?"primary":"red","no-caps":"",outline:""},on:{click:function(e){return t.$router.push("/")}}},[t._v("Home")])],1)])])},o=[],a=s("5a0c"),r=s.n(a),n={data:function(){return{order:null,totalPrice:0}},computed:{date(){return r()().format("DD/MM/YYYY h:mm A")},id(){return this.$router.currentRoute.params.id},status(){return!0}},beforeRouteEnter(t,e,s){if(t&&t.query)return s(e=>{e.totalPrice=t.query.amount||0});s()},beforeRouteUpdate(t,e,s){s()},beforeRouteLeave(t,e,s){s()},mounted(){this.order=this.$store.getters["checkout/order"]},methods:{ActionStatus(t){t?this.$router.push("/order"):this.$router.push("/checkout")}}},l=n,c=s("2877"),d=Object(c["a"])(l,i,o,!1,null,"29a10ab8",null);e["default"]=d.exports},"14ec":function(t,e,s){t.exports=s.p+"img/fail-icon.967af154.png"},"15fd":function(t,e,s){t.exports=s.p+"img/special-offer.7abb68b9.webp"},"16e9":function(t,e,s){t.exports=s.p+"img/gourmet-line.6e7420e0.svg"},"17f9":function(t,e,s){t.exports=s.p+"img/master-card.fb9bc75e.svg"},1936:function(t,e,s){t.exports=s.p+"img/seasonal.78cba4d9.svg"},"1aaa":function(t,e,s){t.exports=s.p+"img/new-arrival.58d4325f.svg"},"1d74":function(t,e,s){t.exports=s.p+"img/new-arrival.97f0d2a6.png"},"1f89":function(t,e,s){t.exports=s.p+"img/dairy.508bf153.svg"},2092:function(t,e,s){t.exports=s.p+"img/6.d5c2a346.jpg"},2658:function(t,e,s){},"26fe":function(t,e,s){t.exports=s.p+"img/bakery.a4386a87.png"},"299a":function(t,e,s){t.exports=s.p+"img/other.a03005a8.png"},"2a4c":function(t,e,s){t.exports=s.p+"img/gourmet-line.280e36f7.webp"},"2af7":function(t,e,s){t.exports=s.p+"img/visa.29cda517.svg"},"2b69":function(t,e,s){"use strict";e["a"]={computed:{__refocusTargetEl(){if(!0!==this.disable)return this.$createElement("span",{ref:"refocusTarget",staticClass:"no-outline",attrs:{tabindex:-1}})}},methods:{__refocusTarget(t){void 0!==t&&0===t.type.indexOf("key")?document.activeElement!==this.$el&&!0===this.$el.contains(document.activeElement)&&this.$el.focus():void 0!==t&&!0!==this.$el.contains(t.target)||void 0===this.$refs.refocusTarget||this.$refs.refocusTarget.focus()}}}},"2c23":function(t,e,s){"use strict";s("a794")},"2ce2":function(t,e,s){t.exports=s.p+"img/beauty.cdd7e1a1.png"},"2d0b":function(t,e,s){t.exports=s.p+"img/confectionery_and_snack.0d5a5b62.svg"},"2eb5":function(t,e,s){t.exports=s.p+"img/monoprix.ee05a8c4.png"},"310e":function(t,e,s){t.exports=s.p+"img/dairy.282c36d6.webp"},"32f4":function(t,e,s){t.exports=s.p+"img/hampers.09ec218e.webp"},"341e":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row bg-white items-center text-center justify-center",staticStyle:{width:"100%",height:"100vh"}},[i("div",{staticClass:"col-12 row items-center text-center justify-center"},[i("div",{staticClass:"col-12"},[i("q-img",{attrs:{basic:"",contain:"",height:"150px",src:s("9e01")("./"+(t.status?"success-icon-blue":"fail-icon")+".png")}})],1),t.status?i("div",{staticClass:"col-12",staticStyle:{"font-size":"45px",color:"#2c2a74"}},[t._v(" "+t._s(t.totalPrice)+" ")]):i("div",{staticClass:"col-12",staticStyle:{"font-size":"30px",color:"red"}},[t._v(" "+t._s(t.reason)+" ")]),t.status?i("div",{staticClass:"col-12",staticStyle:{"font-size":"17px",color:"#AFAFAF"}},[t._v(" Paid Successfully ")]):t._e(),i("div",{staticClass:"col-10",staticStyle:{padding:"50px 0px"}},[i("q-separator")],1),i("div",{staticClass:"col-12",style:"font-size: 23px;color:"+(t.status?"#2c2a74":"red")},[t._v(" Order #"+t._s(t.id)+" ")]),i("div",{staticClass:"col-12",staticStyle:{"font-size":"17px",color:"#AFAFAF"}},[t._v(" "+t._s(t.date)+" ")]),i("div",{staticClass:"col-12",staticStyle:{"padding-top":"30px"}},[i("q-btn",{staticClass:"no-border-radius",staticStyle:{width:"150px","margin-right":"10px"},attrs:{unelevated:"",color:t.status?"primary":"red","text-color":"white","no-caps":""},on:{click:function(e){return t.ActionStatus(t.status)}}},[t._v(t._s(t.status?"Order":"Back"))]),i("q-btn",{staticClass:"no-border-radius",staticStyle:{width:"150px"},attrs:{color:t.status?"primary":"red","no-caps":"",outline:""},on:{click:function(e){return t.$router.push("/")}}},[t._v("Home")])],1)])])},o=[],a=s("5a0c"),r=s.n(a),n=s("eb85");const l={QSeparator:n["a"]};var c={components:{...l},data:function(){return{order:null,totalPrice:0}},computed:{date(){return r()().format("DD/MM/YYYY h:mm A")},id(){return this.$router.currentRoute.params.id},reason(){return this.$router.currentRoute.query.reason},status(){let t=this.$router.currentRoute.params.status;return"success"===t}},beforeRouteEnter(t,e,s){if(t&&t.query)return s(e=>{e.totalPrice=parseInt(t.query.amount).toFixed(2)||0});s()},beforeRouteUpdate(t,e,s){s()},beforeRouteLeave(t,e,s){s()},mounted(){const t=this.$store.getters["cache/basketId"];t&&this.status&&(this.$store.dispatch("cart/ClearBasket",t),this.$store.commit("cache/clear"))},methods:{ActionStatus(t){t?this.$router.push("/order",()=>{}):this.$router.push("/checkout",()=>{})}}},d=c,p=s("2877"),h=Object(p["a"])(d,i,o,!1,null,"75a0a9b9",null);e["default"]=h.exports},"356c":function(t,e,s){t.exports=s.p+"img/success-icon-blue.72d45430.png"},3628:function(t,e,s){t.exports=s.p+"img/New.a644adb5.png"},3755:function(t,e,s){t.exports=s.p+"img/banner-3.34e64611.jpg"},3786:function(t,e,s){"use strict";var i=s("2b0e"),o=s("b7fa"),a=s("ff7b"),r=s("f89c"),n=s("2b69"),l=s("d882"),c=s("dde5"),d=s("0cd3");e["a"]=i["default"].extend({name:"QRadio",mixins:[o["a"],a["a"],r["b"],n["a"]],props:{value:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return this.value===this.val},classes(){return"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-radio--dark":"")+(!0===this.dense?" q-radio--dense":"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=void 0===this.color||!0!==this.keepColor&&!0!==this.isTrue?"":" text-"+this.color;return`q-radio__inner--${!0===this.isTrue?"truthy":"falsy"}${t}`},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},formAttrs(){const t={type:"radio"};return void 0!==this.name&&Object.assign(t,{name:this.name,value:this.val}),t},formDomProps(){if(void 0!==this.name&&!0===this.isTrue)return{checked:!0}},attrs(){const t={tabindex:this.computedTabindex,role:"radio","aria-label":this.label,"aria-checked":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{set(t){void 0!==t&&(Object(l["l"])(t),this.__refocusTarget(t)),!0!==this.disable&&!0!==this.isTrue&&this.$emit("input",this.val,t)}},render(t){const e=[t("svg",{staticClass:"q-radio__bg absolute non-selectable",attrs:{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"}},[t("path",{attrs:{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}}),t("path",{staticClass:"q-radio__check",attrs:{d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"}})])];!0!==this.disable&&this.__injectFormInput(e,"unshift","q-radio__native q-ma-none q-pa-none");const s=[t("div",{staticClass:"q-radio__inner relative-position",class:this.innerClass,style:this.sizeStyle},e)];void 0!==this.__refocusTargetEl&&s.push(this.__refocusTargetEl);const i=void 0!==this.label?Object(c["a"])([this.label],this,"default"):Object(c["c"])(this,"default");return void 0!==i&&s.push(t("div",{staticClass:"q-radio__label q-anchor--skip"},i)),t("div",{class:this.classes,attrs:this.attrs,on:Object(d["b"])(this,"inpExt",{click:this.set,keydown:t=>{13!==t.keyCode&&32!==t.keyCode||Object(l["l"])(t)},keyup:t=>{13!==t.keyCode&&32!==t.keyCode||this.set(t)}})},s)}})},"3aba":function(t,e,s){t.exports=s.p+"img/partnership_shops.5439d8de.svg"},"3bd9":function(t,e,s){t.exports=s.p+"img/seasonal.4d58bf6e.png"},"3d2f":function(t,e,s){t.exports=s.p+"img/pet.4411b538.png"},"3da0":function(t,e,s){t.exports=s.p+"img/dairy.36ad875d.png"},"3f56":function(t,e,s){t.exports=s.p+"img/hampers.3d585d2b.png"},"3f68":function(t,e,s){t.exports=s.p+"img/grocery.8c1254df.webp"},"413d":function(t,e,s){t.exports=s.p+"img/Iceland-01.63e8e947.svg"},"430c":function(t,e,s){"use strict";s("9fcf")},"46c5":function(t,e,s){t.exports=s.p+"img/bakery.0e4f8da6.svg"},"4a5f":function(t,e,s){t.exports=s.p+"img/other.ffa6410c.webp"},"4b7e":function(t,e,s){"use strict";var i=s("2b0e"),o=s("99b6"),a=s("87e8"),r=s("dde5");e["a"]=i["default"].extend({name:"QCardActions",mixins:[a["a"],o["a"]],props:{vertical:Boolean},computed:{classes(){return`q-card__actions--${!0===this.vertical?"vert column":"horiz row"} ${this.alignClass}`}},render(t){return t("div",{staticClass:"q-card__actions",class:this.classes,on:{...this.qListeners}},Object(r["c"])(this,"default"))}})},"4c5e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAACBCAMAAAB92mbiAAAAS1BMVEURNWb///8hqpd4gZja3OGvs8DFydE6TnT39/jk5emVnK1nco1TYoHt7vG6vsiiqLaHj6PQ09nk8e5AsJ+w2NC73daX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NxEGPLuwWDWSw+vJaR/H/KGyQ6T2dT8OWwM3BhscVoc9e/U7VOpTeLmN3hCkGq/veEGsViW3AYn0ctnhuFtukDvwCHxiLQQdgppyzXyrFANq0k2rj4rDhvKN4CbbwYdAIbNHc9CzBTsih5QHfHN24k0PRMIBQzYxIY7qEk3o13aHYzOf34D6vGGyx3MgARMnbWG3bstIgIWaqCL0av0Viw3ezHInN/ERP8INYFLZIbhtsm2F1T4Ny2FYErQIci802DkdhM3OUoJfGYYvjtsG2mcS5x2VJSONxJItobObtHIXNHpWfAyEisUVx87FBq9PqA0PgsAMJymHTpItTAjZzdvMobLZxCZ0HicUWw83HZjuEVU6nEMSGG2cmUzT7lF04wth6QHMYNrsztuN7hWhsEdx8bPDOGufSOWVMgloG9hRbeABSulGMmYdhI/uw+foWj22fm4cNmhxyGnkmlS+MDRxuNEWzTx9hU73CYdicjdjcL9glYNvl5mGrCaZV4KX0lDGJWnjXpmj26UNs/hbgZ7G5Q6e696tcCrY9bh426BDocxgODSbokdhOZgWJpPcMtvHB0tpz+n//qtttH4BwY7Rznk+4BSTc8lRI+5alJvdnd384t1Ox80lZuAU0XHcOvwi3gIa+WsrDlfNzOCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSfRv9B7KUS8NA1MoyAAAAAElFTkSuQmCC"},"4d37":function(t,e,s){},"4dc1":function(t,e,s){t.exports=s.p+"img/seafood.cb5165a4.svg"},"4e95":function(t,e,s){t.exports=s.p+"img/monoprix-01.23df4675.svg"},"4fa1":function(t,e,s){t.exports=s.p+"img/baby.27fe42b0.png"},"528f":function(t,e,s){t.exports=s.p+"img/5.24862208.jpg"},"537b":function(t,e,s){t.exports=s.p+"img/monoprix.1abf896d.webp"},"53a4":function(t,e,s){var i={"./assets/about-d.jpg":"a1c0","./assets/about-d.png":"11c0","./assets/app-store-logo.png":"c466","./assets/badge/Best.png":"ed20","./assets/badge/New.png":"3628","./assets/badge/PreOrder.png":"abcf","./assets/badge/SpecialPrice.png":"1131","./assets/banner/banner-1.jpg":"5542","./assets/banner/banner-2.jpg":"ba76","./assets/banner/banner-3.jpg":"3755","./assets/banner/banner-4.jpg":"6293","./assets/banner/banner-5.jpg":"06dc","./assets/banner/banner-left-1.jpg":"e525","./assets/banner/banner-left-2.jpg":"839e","./assets/banner/banner-right-1-1.jpg":"e63e","./assets/banner/banner-right-1-2.jpg":"cd8b","./assets/banner/banner-right-1-3.jpg":"5a2c","./assets/banner/banner-right-1-4.jpg":"876e","./assets/banner/banner-right-1-5.jpg":"7e00","./assets/body-bg-d-1.jpg":"db63","./assets/body-bg-d.jpg":"f1af","./assets/car.svg":"d724","./assets/catogory/Iceland-01.svg":"413d","./assets/catogory/baby.png":"4fa1","./assets/catogory/baby.svg":"76bc","./assets/catogory/baby.webp":"d65d","./assets/catogory/bakery.png":"26fe","./assets/catogory/bakery.svg":"46c5","./assets/catogory/bakery.webp":"81b0","./assets/catogory/beauty.png":"2ce2","./assets/catogory/beauty.svg":"a5ff","./assets/catogory/beauty.webp":"a548","./assets/catogory/beer.png":"6de9","./assets/catogory/beer.svg":"73c8","./assets/catogory/beer.webp":"c0cb","./assets/catogory/best-seller.png":"dc79","./assets/catogory/best-seller.svg":"c3a1","./assets/catogory/best-seller.webp":"b94a","./assets/catogory/butcher.png":"9186","./assets/catogory/butcher.svg":"d4ad","./assets/catogory/butcher.webp":"0a80","./assets/catogory/confectionery_and_snack.svg":"2d0b","./assets/catogory/dairy.png":"3da0","./assets/catogory/dairy.svg":"1f89","./assets/catogory/dairy.webp":"310e","./assets/catogory/delicatessen.png":"e534","./assets/catogory/delicatessen.svg":"a24d","./assets/catogory/delicatessen.webp":"7237","./assets/catogory/drinks.png":"cfc6","./assets/catogory/drinks.svg":"65e1","./assets/catogory/drinks.webp":"f93c","./assets/catogory/frozen-food.png":"67c7","./assets/catogory/frozen-food.svg":"f5e8","./assets/catogory/frozen-food.webp":"75d6","./assets/catogory/fruits.png":"ea3a","./assets/catogory/fruits.svg":"ffd4","./assets/catogory/fruits.webp":"a6fd","./assets/catogory/gourmet-line.png":"9a47","./assets/catogory/gourmet-line.svg":"16e9","./assets/catogory/gourmet-line.webp":"2a4c","./assets/catogory/grab-go.svg":"bd9f","./assets/catogory/grab_and_go.svg":"db40","./assets/catogory/grocery.png":"876c","./assets/catogory/grocery.svg":"ae2f","./assets/catogory/grocery.webp":"3f68","./assets/catogory/hampers.png":"3f56","./assets/catogory/hampers.svg":"6e31","./assets/catogory/hampers.webp":"32f4","./assets/catogory/health.png":"858e","./assets/catogory/health.svg":"f9a1","./assets/catogory/health.webp":"04d3","./assets/catogory/iceland.svg":"b062","./assets/catogory/monoprix-01.svg":"4e95","./assets/catogory/monoprix.png":"2eb5","./assets/catogory/monoprix.svg":"80c5","./assets/catogory/monoprix.webp":"537b","./assets/catogory/new-arrival.png":"1d74","./assets/catogory/new-arrival.svg":"1aaa","./assets/catogory/new-arrival.webp":"83dd","./assets/catogory/other.png":"299a","./assets/catogory/other.webp":"4a5f","./assets/catogory/partnership-shops.svg":"74c59","./assets/catogory/partnership_shops.svg":"3aba","./assets/catogory/pet.png":"3d2f","./assets/catogory/pet.svg":"5c07","./assets/catogory/pet.webp":"f3cc","./assets/catogory/pre-order.png":"562d","./assets/catogory/pre-order.svg":"963e","./assets/catogory/pre-order.webp":"f2e8","./assets/catogory/seafood.png":"9073","./assets/catogory/seafood.svg":"4dc1","./assets/catogory/seafood.webp":"ef04","./assets/catogory/seasonal.png":"3bd9","./assets/catogory/seasonal.svg":"1936","./assets/catogory/seasonal.webp":"bbcd","./assets/catogory/special-offer.png":"cb0b","./assets/catogory/special-offer.svg":"a897","./assets/catogory/special-offer.webp":"15fd","./assets/catogory/woolworths-01.svg":"ed73","./assets/catogory/woolworths.svg":"68d3","./assets/dl-app.png":"fb96","./assets/fail-icon.png":"14ec","./assets/faq-top-bg-d.jpg":"81f9","./assets/google-icon.svg":"8c54","./assets/google-pay-logo.svg":"66e4","./assets/how-to.png":"c315","./assets/image-not-found.png":"cbd0","./assets/logo-villa-desktop.svg":"e019","./assets/logo-villa-mobile.svg":"5ccb","./assets/logo-villa.png":"6e30","./assets/logo.png":"cf05","./assets/new-footer-app-icon.png":"6c2e","./assets/partner/partner-01.jpg":"1256","./assets/partner/partner-02.jpg":"983f","./assets/partner/partner-03.png":"c204","./assets/partner/partner-04.png":"e04c","./assets/partner/partner-05.jpg":"1a50","./assets/partner/partner-06.jpg":"15cf","./assets/partner/partner-07.jpg":"7255","./assets/payment/alipay_logo.jpg":"c7ef","./assets/payment/amex.svg":"8561","./assets/payment/jcb.svg":"7fd1","./assets/payment/master-card.svg":"17f9","./assets/payment/scb-logo.svg":"f3be","./assets/payment/thai_qr.png":"4c5e","./assets/payment/union.svg":"61c7","./assets/payment/visa.svg":"2af7","./assets/payment/wallet-logo.svg":"5fc5","./assets/payment/wechat-pay.svg":"fdfa","./assets/privileges/1.jpg":"08ac","./assets/privileges/2.jpg":"7e8c","./assets/privileges/3.jpg":"e949","./assets/privileges/4.jpg":"9827","./assets/product/0241665-1.jpg":"e78d","./assets/promotions/1.jpg":"9e81","./assets/promotions/2.jpg":"8e1d","./assets/promotions/3.jpg":"b4bb","./assets/promotions/4.jpg":"dd10","./assets/promotions/5.jpg":"528f","./assets/promotions/6.jpg":"2092","./assets/search.png":"bbc5","./assets/social/facebook.png":"099b","./assets/social/facebook.svg":"b7dc","./assets/success-icon-blue.png":"356c"};function o(t){var e=a(t);return s(e)}function a(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="53a4"},5542:function(t,e,s){t.exports=s.p+"img/banner-1.05adc304.jpg"},"562d":function(t,e,s){t.exports=s.p+"img/pre-order.565f1224.png"},"5a2c":function(t,e,s){t.exports=s.p+"img/banner-right-1-3.38ced5a5.jpg"},"5c07":function(t,e,s){t.exports=s.p+"img/pet.b3fb02dd.svg"},"5fc5":function(t,e,s){t.exports=s.p+"img/wallet-logo.4ff1aedd.svg"},"61c7":function(t,e,s){t.exports=s.p+"img/union.d48b1fff.svg"},6293:function(t,e,s){t.exports=s.p+"img/banner-4.023b91d6.jpg"},"65e1":function(t,e,s){t.exports=s.p+"img/drinks.e1517d02.svg"},"66e4":function(t,e,s){t.exports=s.p+"img/google-pay-logo.dffd25fb.svg"},"67c7":function(t,e,s){t.exports=s.p+"img/frozen-food.d2d575f1.png"},"68d3":function(t,e,s){t.exports=s.p+"img/woolworths.2bea13d4.svg"},"6c2e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAYAAACOqiAdAAAAAXNSR0IArs4c6QAADzVJREFUeAHtXGlwVFUWPunsISEkIRtLQhJGEgIBWWSLGBUVGBQlEExCEGeUmZI/Y1la1tSsVY7l/BjHwoEacMAlsgszKMJMRAkOS5Atyj4pICAkAkISlpD9zfe9dDf9ut976U5awCSn6vR77y7n3vO9c7dz72uRbupG4HYi4OOlwiyQEw6OAIeBQ8BB4ACwP9jXykxHJumVrRfWmlpEsd04XG1hLQgjN1u5EdcGcB24FnwNXG1lpuswmVXUSLgfIlLBw8FDwengRDCBCwbbAGM6G0i4ve1EgJrANgBv4r4GfAZ8BHwIXAo+Dma6H4xSIPlV8FdgvkG+7R87Uw/qQ72on9vkjsVFQtpL4Png3m5LdjOhr6+vhIWFSXR0tMrh4eESHBwsDG9ubpabN29KTU2NXLp0SeVr166p4W6K9yTZ90i8FPwm+HJbGdsCbhQEvANms/QK+fn5SUpKiowfP17GjBkjgwcPlsTERImKipLAwEBhvDM1NTVJfX29XL58Wc6cOSNHjx6VPXv2yK5du+TkyZPCeC8Sm/DPwPvaK3McMlaCvdIcBw0apLzyyitKcXGxAqtRvEGUs337dlUu5Xurrla9qb/HlIAcZeAOVcZisSiTJk1S1qxZo1RVVXkDK0MZlM9yWB7L7WjdrfoTB7eJzfdDcIcKz8rKUjZt2qQ0NjYaKvtDRLA8lsvyO6qDFYe2ujMka6UsX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tSHenl0YNgdi4NMDfnhKRXM5osvNbrm39m2Bzhg5ULcu+BR9QhwGDgEzKNFOPWiLo55LoHMdLZ9Dr2y9cKQRSVauDPZwng0gMy9T3IjmHPROjD3UmhZ1VZmum7qRuBHhsD/AcBPBvV8w9LpAAAAAElFTkSuQmCC"},"6de9":function(t,e,s){t.exports=s.p+"img/beer.c81a5730.png"},"6e31":function(t,e,s){t.exports=s.p+"img/hampers.1764323b.svg"},7112:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"col-12 col-sm-10 col-md-9 row",staticStyle:{"min-height":"36px"}},[t.title?s("div",{staticClass:"col-grow title gray-5",staticStyle:{display:"flex","align-items":"center"}},[t._v(" "+t._s(t.title)+" ")]):t._e(),t._t("default"),t.optionButton?s("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{"no-caps":"","no-wrap":"",flat:"",color:"primary"},on:{click:t.onButton}},[t._v(" "+t._s(t.optionButton)+" ")]):t._e(),t.optionToggle?s("q-toggle",{attrs:{size:"lg",disable:t.disable,"checked-icon":"check",color:"green","unchecked-icon":"clear"},model:{value:t.toggle,callback:function(e){t.toggle=e},expression:"toggle"}}):t._e(),t.optionText?s("div",{class:t.computedOptionTextClass,staticStyle:{display:"flex","align-items":"center",padding:"0px 16px 0px 0px","flex-direction":"row-reverse"}},[t._v(" "+t._s(t.optionText)+" ")]):t._e()],2)},o=[],a=s("2b0e"),r=s("0016"),n=s("85fc"),l=a["default"].extend({name:"QToggle",mixins:[n["a"]],props:{icon:String,checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,iconColor:String},computed:{computedIcon(){return(!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon)||this.icon},computedIconColor(){if(!0===this.isTrue)return this.iconColor}},methods:{__getInner(t){return[t("div",{staticClass:"q-toggle__track"}),t("div",{staticClass:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==this.computedIcon?[t(r["a"],{props:{name:this.computedIcon,color:this.computedIconColor}})]:void 0)]}},created(){this.type="toggle"}});const c={QToggle:l};var d={name:"TileBar",props:["title","optionButton","value","optionToggle","disable","optionText","optionTextClass"],components:{...c},data(){return{toggle:this.value}},computed:{computedOptionTextClass(){return"col-grow title text-gray-5 "+this.optionTextClass}},watch:{value(t){this.toggle=t},toggle(t){this.handleToggle(t)}},methods:{handleToggle(t){this.$emit("input",t)},onButton(){this.$emit("on-button")}}},p=d,h=(s("430c"),s("2877")),u=Object(h["a"])(p,i,o,!1,null,"b38a68d0",null);e["default"]=u.exports},7237:function(t,e,s){t.exports=s.p+"img/delicatessen.24e0f4ce.webp"},"72d4":function(t,e,s){"use strict";const i={methods:{async loadMember(){await this.$store.dispatch("member/LoadMemberInfo")},async loadMemberWithPhonenumber(t){await this.$store.dispatch("member/LoadMemberInfoWithPhone",t)}}};e["a"]=i},"73c8":function(t,e,s){t.exports=s.p+"img/beer.26693c37.svg"},"74c59":function(t,e,s){t.exports=s.p+"img/partnership-shops.fade2cc9.svg"},"75d6":function(t,e,s){t.exports=s.p+"img/frozen-food.9ba3a519.webp"},"76bc":function(t,e,s){t.exports=s.p+"img/baby.4a93876c.svg"},"7e00":function(t,e,s){t.exports=s.p+"img/banner-right-1-5.f0095800.jpg"},"7e8c":function(t,e,s){t.exports=s.p+"img/2.b99a403c.jpg"},"7fd1":function(t,e,s){t.exports=s.p+"img/jcb.24576fc9.svg"},"80c5":function(t,e,s){t.exports=s.p+"img/monoprix.76360a56.svg"},8148:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row justify-center",staticStyle:{"padding-bottom":"170px"}},[t.$q.screen.lt.sm?s("TitleBar",{attrs:{"center-slot":"Cart"}}):t._e(),t.$q.screen.gt.xs?s("TileBar",{attrs:{optionButton:"Back"},on:{"on-button":function(e){return t.$router.go(-1)}}}):t._e(),t.OutOfStockList.length>0?s("TileBar",{attrs:{title:"Out of stock items",optionButton:"Remove"},on:{"on-button":t.onRemoveOutOfStock}}):t._e(),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white",staticStyle:{position:"relative"}},[t._l(t.OutOfStockList,(function(t){return s("CartItem",{key:t.cprcode,staticClass:"q-mt-sm q-mb-md",staticStyle:{padding:"0px 16px"},attrs:{info:t,disable:!0}})})),s("q-inner-loading",{attrs:{showing:t.OOSLoading}},[s("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],2),t.OverStockList.length>0?s("TileBar",{attrs:{title:"Unavailable items",optionButton:"Remove"},on:{"on-button":t.onRemoveOverStock}}):t._e(),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white",staticStyle:{position:"relative"}},[t._l(t.OverStockList,(function(t){return s("CartItem",{key:t.cprcode,staticClass:"q-mt-sm q-mb-md",staticStyle:{padding:"0px 16px"},attrs:{info:t,disable:!0}})})),s("q-inner-loading",{attrs:{showing:t.OSLoading}},[s("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],2),s("TileBar",{attrs:{title:"Your cart",optionButton:t.InStockList.length<=0?"Add items":"Clear"},on:{"on-button":function(e){t.InStockList.length<=0?t.onAddItems():t.onClear()}}}),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white",staticStyle:{position:"relative","min-height":"100px"}},[t._l(t.InStockList,(function(t){return s("CartItem",{key:t.cprcode,staticClass:"q-mt-sm q-mb-md",staticStyle:{padding:"0px 16px"},attrs:{info:t}})})),t.InStockList.length<=0&&t.IsLoaded?s("div",{staticClass:"col-12 row",staticStyle:{padding:"16px"}},[s("span",{staticClass:"col-12"},[t._v("You have no items in your shopping cart. ")])]):t._e(),s("q-inner-loading",{attrs:{showing:t.ISLoading||!t.IsLoaded}},[s("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],2),s("div",{staticClass:"sticky-bottom col-12 col-sm-10 col-md-9 bg-white"},[s("q-btn",{staticClass:"full-width q-mt-sm",attrs:{"no-caps":"","no-wrap":"",loading:t.priceLoading,color:"primary",label:"Checkout",disable:t.error},on:{click:t.onCheckout}}),s("div",{staticClass:"row justify-end"},[s("div",{staticClass:"col-12 col-md-6"},[s("div",{staticClass:"row justify-between"},[s("div",[t._v("Sub total")]),s("div",{staticClass:"text-primary"},[t._v(" "+t._s(t.$priceFormat(t.subTotal))+" ")])]),s("div",{staticClass:"row justify-between"},[s("div",[t._v("Promotion discount")]),s("div",{staticClass:"text-red"},[t._v(" "+t._s(0===t.discount?"":"-")+t._s(t.$priceFormat(t.discount))+" ")])]),s("div",{staticClass:"row justify-between"},[s("div",[t._v("Total")]),s("div",{staticClass:"text-primary text-bold"},[t._v(" "+t._s(t.$priceFormat(t.total))+" ")])])])]),s("q-separator"),s("div",{staticClass:"row"},[s("q-checkbox",{staticClass:"q-mr-sm",attrs:{color:"primary",dense:""},on:{input:t.onChangeSelectAll},model:{value:t.selectAll,callback:function(e){t.selectAll=e},expression:"selectAll"}}),s("div",{staticClass:"title"},[t._v("Select all")])],1)],1),s("q-dialog",{attrs:{persistent:""},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[s("DialogAlert",{attrs:{message:t.message,"left-btn":"Cancel","right-btn":"Confirm"},on:{leftClick:t.onCancel,rightClick:t.onClearConfirm}})],1),s("q-dialog",{attrs:{persistent:""},model:{value:t.dialogSuggestProduct,callback:function(e){t.dialogSuggestProduct=e},expression:"dialogSuggestProduct"}},[s("q-card",[s("q-bar",{staticClass:"bg-primary"},[s("q-space"),s("q-btn",{staticClass:"text-white",attrs:{dense:"",flat:"",icon:"close"},on:{click:t.onCloseSuggestProduct}},[s("q-tooltip",{staticClass:"bg-white text-primary"},[t._v("Close")])],1)],1),s("q-card-section",[s("div",{staticClass:"text-h6 text-primary"},[t._v(" Please choose your free product ")])]),s("q-separator"),t.suggestProduct.length>0?s("q-card-section",{staticClass:"scroll",staticStyle:{"max-height":"50vh"}},t._l(t.suggestProduct,(function(e,i){return s("div",{key:i},[s("div",{staticStyle:{"font-weight":"bold"}},[t._v(" Promotion: "+t._s(e.couponInfo.description)+" ")]),s("SuggestProductGroup",{ref:"SuggestProductGroup",refInFor:!0,attrs:{group:e}})],1)})),0):t._e(),t.suggestProduct.length<=0?s("q-card-section",{staticClass:"scroll",staticStyle:{"max-height":"50vh"}},[s("div",{staticStyle:{"font-weight":"bold"}},[t._v(" No suggest product left. ")])]):t._e(),s("q-separator"),s("q-card-actions",{attrs:{align:"right"}},[s("q-btn",{attrs:{"no-wrap":"","no-caps":"",flat:"",label:"Checkout Now",loading:t.confirmCheckoutLoading,color:"primary"},on:{click:t.onConfirmCheckout}})],1)],1)],1)],1)},o=[],a=(s("ddb0"),s("2f62")),r=s("013f"),n=s("429b"),l=s("7460"),c=s("27f9"),d=s("1c1c"),p=s("66e5"),h=s("4074"),u=s("0170"),g=s("3786"),m=s("eb85"),A=s("cb32"),f=s("8f8e"),b=s("74f7"),v=s("0d59"),y=s("24e8"),w=s("f09f"),C=s("a370"),x=s("4b7e"),S=s("d847"),k=s("05c0"),P=s("2c91"),q=s("bb5b"),T=s("256a");const I={QTabs:n["a"],QTab:l["a"],QInput:c["a"],QList:d["a"],QItem:p["a"],QItemSection:h["a"],QItemLabel:u["a"],QRadio:g["a"],QSeparator:m["a"],QAvatar:A["a"],QCheckbox:f["a"],QInnerLoading:b["a"],QSpinner:v["a"],QDialog:y["a"],QCard:w["a"],QCardSection:C["a"],QCardActions:x["a"],QBar:S["a"],QTooltip:k["a"],QSpace:P["a"]};var E={name:"CartV2",components:{...I,DialogAlert:q["default"],TitleBar:()=>s.e("signin~31ecd969").then(s.bind(null,"1e1d")),TileBar:()=>Promise.resolve().then(s.bind(null,"7112")),CartItem:()=>s.e("home~31ecd969").then(s.bind(null,"415a")),SuggestProductGroup:()=>s.e("signin~31ecd969").then(s.bind(null,"b8fb"))},mixins:[T["a"]],data(){return{selectAll:!0,OOSLoading:!1,OSLoading:!1,ISLoading:!1,total:null,discount:null,subTotal:null,priceLoading:!1,error:!0,dialog:!1,message:null,suggestProduct:[],dialogSuggestProduct:!1,confirmCheckoutLoading:!1}},computed:{...Object(a["b"])("cartData",["IsLoaded","InStockList","OutOfStockList","OverStockList","IsSelectedAll","SelectedInStockList"])},watch:{IsSelectedAll:{handler:function(t){this.selectAll=t}},SelectedInStockList:{immediate:!0,handler:function(){this.IsLoaded&&this.getPriceDetail()}}},methods:{async sequenctialAsync(t){const e=Promise.resolve(null);await t.reduce((t,e)=>t.then(()=>this.$store.dispatch("cart/Remove",e)),e)},async onRemoveOutOfStock(){try{this.OOSLoading=!0,await this.sequenctialAsync(this.OutOfStockList)}catch(t){this.$Sentry.captureException(t)}finally{this.OOSLoading=!1}},async onRemoveOverStock(){try{this.OSLoading=!0,await this.sequenctialAsync(this.OverStockList)}catch(t){this.$Sentry.captureException(t)}finally{this.OSLoading=!1}},onClear(){this.dialog=!0,this.dialogFrom="onRemove",this.message="Do you want to clear your cart ?"},onCancel(){this.dialog=!1},async onClearConfirm(){this.dialog=!1;try{this.ISLoading=!0,await this.$store.dispatch("cart/Clear")}catch(t){this.$Sentry.captureException(t)}finally{this.ISLoading=!1}},onAddItems(){this.$router.push("/catalog/New Arrival")},onChangeSelectAll(t){this.$store.commit("cartData/setSelectedAll",t)},async getPriceDetail(){try{this.priceLoading=!0;const t=this.$store.getters["branch/code"];let e;if(e=await this.$store.dispatch("cartData/GetCost",{branchId:t.toString(),productList:this.SelectedInStockList.map(t=>({productName:t.hema_name_en,quantity:t.quantity,cprcode:t.cprcode,remark:t.remark}))}),this.total=e.grandTotal,this.subTotal=e.subTotal,this.discount=e.cartDiscount,e.bogoDiscount&&(this.discount+=e.bogoDiscount),e=await this.$store.dispatch("cartData/GetSuggestion",{branchId:t.toString(),productList:this.SelectedInStockList.map(t=>({productName:t.hema_name_en,quantity:t.quantity,cprcode:t.cprcode,remark:t.remark})),shipping:{scheduleList:[],shippingType:"PICKUP"}}),e.suggestedCoupons){let s=await Promise.all(e.suggestedCoupons.map(async e=>{let s=await this.$store.dispatch("catalogs/GetMultiple",{list:e.suggestedProducts.map(t=>({cprcode:t})),branch:t});return s=s.filter(t=>t.stock>0),s=s.filter(t=>{const e=this.InStockList.find(e=>e.cprcode===t.cprcode);return!(e&&e.quantity&&t.stock!!(t.itemList&&t.itemList.length>0)),this.suggestProduct=s}e.calculateCostInput&&(e=await this.$store.dispatch("order/GetCostWithShippingWithCoupon",{branchId:t.toString(),couponCodeList:e.calculateCostInput.couponCodeList,productList:this.SelectedInStockList.map(t=>({productName:t.hema_name_en,quantity:t.quantity,cprcode:t.cprcode,remark:t.remark}))})),this.total=e.grandTotal,this.subTotal=e.subTotal,this.discount=e.cartDiscount,e.bogoDiscount&&(this.discount+=e.bogoDiscount),this.error=null}catch(t){this.total="-",this.subTotal="-",this.discount="",this.error=!0}finally{this.priceLoading=!1}},async onCheckout(){this.suggestProduct.length>0?this.dialogSuggestProduct=!0:this.$router.push("/checkout")},async onConfirmCheckout(){try{this.confirmCheckoutLoading=!0;const t=this.$refs["SuggestProductGroup"],e=t.map(t=>t.getSelectedItem());await Promise.all(e.map(t=>this.AddToCart(t,null,{noNotify:!0}))),this.$router.push("/checkout")}catch(t){this.$Sentry.captureException(t)}finally{this.confirmCheckoutLoading=!1}},onCloseSuggestProduct(){this.dialogSuggestProduct=!1},$priceFormat(t){return Object(r["a"])(t)}}},D=E,L=(s("c926"),s("2877")),B=Object(L["a"])(D,i,o,!1,null,"e3156a72",null);e["default"]=B.exports},"81b0":function(t,e,s){t.exports=s.p+"img/bakery.c3a208aa.webp"},"81f9":function(t,e,s){t.exports=s.p+"img/faq-top-bg-d.cc3c1ea6.jpg"},"839e":function(t,e,s){t.exports=s.p+"img/banner-left-2.7d5b1098.jpg"},"83dd":function(t,e,s){t.exports=s.p+"img/new-arrival.e5064ac0.webp"},8561:function(t,e,s){t.exports=s.p+"img/amex.686afd7c.svg"},"858e":function(t,e,s){t.exports=s.p+"img/health.ed034006.png"},"85fc":function(t,e,s){"use strict";var i=s("b7fa"),o=s("d882"),a=s("f89c"),r=s("ff7b"),n=s("2b69"),l=s("dde5"),c=s("0cd3");e["a"]={mixins:[i["a"],r["a"],a["b"],n["a"]],props:{value:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},toggleOrder:{type:String,validator:t=>"tf"===t||"ft"===t},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return!0===this.modelIsArray?this.index>-1:this.value===this.trueValue},isFalse(){return!0===this.modelIsArray?-1===this.index:this.value===this.falseValue},isIndeterminate(){return!1===this.isTrue&&!1===this.isFalse},index(){if(!0===this.modelIsArray)return this.value.indexOf(this.val)},modelIsArray(){return void 0!==this.val&&Array.isArray(this.value)},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},classes(){return`q-${this.type} cursor-pointer no-outline row inline no-wrap items-center`+(!0===this.disable?" disabled":"")+(!0===this.isDark?` q-${this.type}--dark`:"")+(!0===this.dense?` q-${this.type}--dense`:"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=!0===this.isTrue?"truthy":!0===this.isFalse?"falsy":"indet",e=void 0===this.color||!0!==this.keepColor&&("toggle"===this.type?!0!==this.isTrue:!0===this.isFalse)?"":" text-"+this.color;return`q-${this.type}__inner--${t}${e}`},formAttrs(){const t={type:"checkbox"};return void 0!==this.name&&Object.assign(t,{checked:this.isTrue,name:this.name,value:!0===this.modelIsArray?this.val:this.trueValue}),t},attrs(){const t={tabindex:this.computedTabindex,role:"checkbox","aria-label":this.label,"aria-checked":!0===this.isIndeterminate?"mixed":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{toggle(t){void 0!==t&&(Object(o["l"])(t),this.__refocusTarget(t)),!0!==this.disable&&this.$emit("input",this.__getNextValue(),t)},__getNextValue(){if(!0===this.modelIsArray){if(!0===this.isTrue){const t=this.value.slice();return t.splice(this.index,1),t}return this.value.concat([this.val])}if(!0===this.isTrue){if("ft"!==this.toggleOrder||!1===this.toggleIndeterminate)return this.falseValue}else{if(!0!==this.isFalse)return"ft"!==this.toggleOrder?this.trueValue:this.falseValue;if("ft"===this.toggleOrder||!1===this.toggleIndeterminate)return this.trueValue}return this.indeterminateValue},__onKeydown(t){13!==t.keyCode&&32!==t.keyCode||Object(o["l"])(t)},__onKeyup(t){13!==t.keyCode&&32!==t.keyCode||this.toggle(t)}},render(t){const e=this.__getInner(t);!0!==this.disable&&this.__injectFormInput(e,"unshift",`q-${this.type}__native absolute q-ma-none q-pa-none`);const s=[t("div",{staticClass:`q-${this.type}__inner relative-position non-selectable`,class:this.innerClass,style:this.sizeStyle},e)];void 0!==this.__refocusTargetEl&&s.push(this.__refocusTargetEl);const i=void 0!==this.label?Object(l["a"])([this.label],this,"default"):Object(l["c"])(this,"default");return void 0!==i&&s.push(t("div",{staticClass:`q-${this.type}__label q-anchor--skip`},i)),t("div",{class:this.classes,attrs:this.attrs,on:Object(c["b"])(this,"inpExt",{click:this.toggle,keydown:this.__onKeydown,keyup:this.__onKeyup})},s)}}},"876c":function(t,e,s){t.exports=s.p+"img/grocery.782facd1.png"},"876e":function(t,e,s){t.exports=s.p+"img/banner-right-1-4.7e1f968a.jpg"},8896:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row justify-center",staticStyle:{"padding-bottom":"170px"}},[t.$q.screen.lt.sm?i("TitleBar",{attrs:{"center-slot":"Checkout"}}):t._e(),t.$q.screen.gt.xs?i("TileBar",{attrs:{optionButton:"Back"},on:{"on-button":function(e){return t.$router.go(-1)}}}):t._e(),i("TileBar",{ref:"shippingAddress",attrs:{title:t.shippingTitle,optionButton:t.shippingSwitchText},on:{"on-button":t.onSwitchShippingType}}),i("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[t.local.shippingAddress?i("div",{staticClass:"col-12 row"},[i("q-icon",{staticClass:"q-px-sm",attrs:{color:"red",size:"md",name:"fas fa-map-marker-alt"}}),i("div",{staticClass:"col-grow"},[i("div",{staticStyle:{"font-weight":"bold"}},[t._v(" "+t._s(t.formatedName)+" ")]),i("div",[t._v(" "+t._s(t.formatedAddress)+" ")]),i("div",{staticStyle:{"font-weight":"bold"}},[t._v(" Contact Information ")]),i("div",[t._v(" "+t._s(t.formatedContact)+" ")])])],1):t._e(),t.showChangeAddress?i("div",{staticClass:"col-12 text-right"},[i("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{color:"primary",label:"Change address","no-caps":"","no-wrap":"",flat:""},on:{click:t.onChangeAddress}})],1):t._e(),t.showChangeBranch?i("div",{staticClass:"col-12 text-right"},[i("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{color:"primary",label:"Change branch","no-caps":"","no-wrap":"",flat:""},on:{click:t.onChangeBranch}})],1):t._e(),t.showBranchList?i("q-list",{staticClass:"col-12",attrs:{dense:""}},t._l(t.formatedBranchAddressList,(function(e,s){return i("q-item",{key:s,attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:s,color:"primary"},model:{value:t.local.branchIndex,callback:function(e){t.$set(t.local,"branchIndex",e)},expression:"local.branchIndex"}})],1),i("q-item-section",[i("q-item-label",[t._v(t._s(e.name))]),i("q-item-label",{attrs:{caption:"",lines:"2"}},[t._v(t._s(e.formatedAddress))])],1)],1)})),1):t._e(),t.showAddressList?i("div",{ref:"ChooseAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[t._v(" Choose your prefer address ")]):t._e(),t.showAddressList?i("q-list",{staticClass:"col-12",attrs:{dense:""}},t._l(t.formatedShippingAddressList,(function(e,s){return i("q-item",{key:s,attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:s,color:"primary"},model:{value:t.local.addressIndex,callback:function(e){t.$set(t.local,"addressIndex",e)},expression:"local.addressIndex"}})],1),i("q-item-section",[i("q-item-label",[t._v(t._s(e.name))]),i("q-item-label",{attrs:{caption:"",lines:"2"}},[t._v(t._s(e.formatedAddress))])],1)],1)})),1):t._e(),t.showAddAddress?i("div",{staticClass:"col-12 text-right"},[i("q-btn",{ref:"AddNewAddress",staticStyle:{"font-weight":"bold"},attrs:{color:"primary",label:"Add new address","no-caps":"","no-wrap":"",flat:""},on:{click:t.onAddNewAddress}})],1):t._e(),i("q-inner-loading",{attrs:{showing:t.shippingAddressLoading}},[i("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),t.delivery.show&&"DELIVERY"===t.local.shippingType?i("TileBar",{attrs:{title:"Delivery type"}}):t._e(),t.delivery.show&&"DELIVERY"===t.local.shippingType?i("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"},attrs:{title:"Delivery type"}},[i("q-list",{staticClass:"col-12"},t._l(t.deliveryTypes,(function(e,s){return i("q-item",{key:s,attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:e.name,color:"primary",disable:e.disable},model:{value:t.local.deliveryType,callback:function(e){t.$set(t.local,"deliveryType",e)},expression:"local.deliveryType"}})],1),i("q-item-section",[i("q-item-label",[t._v(t._s(e.displayName))]),i("q-item-label",{attrs:{caption:"",lines:"2"}},[t._v(t._s(e.description))])],1)],1)})),1),i("q-inner-loading",{attrs:{showing:t.delivery.loading}},[i("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1):t._e(),i("TileBar",{ref:"paymentDetails",attrs:{title:"Payment details"}}),i("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[i("q-list",{staticClass:"col-12"},t._l(t.paymentMethods,(function(e,o){return i("q-item",{key:o,attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:e.name,color:"primary"},model:{value:t.local.paymentMethod,callback:function(e){t.$set(t.local,"paymentMethod",e)},expression:"local.paymentMethod"}})],1),t._l(e.img,(function(t,e){return i("q-item-section",{key:e,attrs:{avatar:""}},[i("q-avatar",{staticStyle:{"border-radius":"0px",width:"50px"}},[i("img",{attrs:{width:"50px",src:s("e974")("./"+t)}})])],1)}))],2)})),1),"Credit/Debit Card"===t.local.paymentMethod&&t.payment.creditcardTokens.length>0?i("div",{ref:"CreditCardToken",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[t._v(" Recent Credit/Debit card ")]):t._e(),"Credit/Debit Card"===t.local.paymentMethod&&t.payment.creditcardTokens.length>0?i("q-list",{staticClass:"col-12"},t._l(t.payment.creditcardTokens,(function(e,s){return i("q-item",{key:s,attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:s,color:"primary"},nativeOn:{click:function(e){t.payment.newCreditCard=!1}},model:{value:t.payment.creditcardTokenIndex,callback:function(e){t.$set(t.payment,"creditcardTokenIndex",e)},expression:"payment.creditcardTokenIndex"}})],1),i("q-item-section",{attrs:{avatar:""}},[t._v(" "+t._s(e.maskedCardNo)+" ")])],1)})),1):t._e(),"Credit/Debit Card"===t.local.paymentMethod?i("div",{ref:"CreditCardToken",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[t._v(" New Credit/Debit card ")]):t._e(),"Credit/Debit Card"===t.local.paymentMethod?i("q-list",{staticClass:"col-12"},[i("q-item",{attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:!0,color:"primary"},nativeOn:{click:function(e){t.payment.creditcardTokenIndex=-1}},model:{value:t.payment.newCreditCard,callback:function(e){t.$set(t.payment,"newCreditCard",e)},expression:"payment.newCreditCard"}})],1),i("q-item-section",{attrs:{avatar:""}},[t._v(" New Credit/Debit card ")])],1)],1):t._e(),"VPlus Wallet"===t.local.paymentMethod?i("div",{ref:"CreditCardToken",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[t._v(" VPlus Wallet ")]):t._e(),"VPlus Wallet"===t.local.paymentMethod?i("div",{ref:"vplus",staticClass:"full-width row q-my-sm"},[i("div",{staticClass:"col-5 col-md-3 col-lg-2 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center"}},[t._v(" Vplus Mobile No. ")]),i("q-input",{staticClass:"col-grow",staticStyle:{"max-width":"200px"},attrs:{outlined:"",dense:"",mask:"##########",placeholder:"Enter mobile number",autogrow:""},model:{value:t.payment.vplusMobileNumber,callback:function(e){t.$set(t.payment,"vplusMobileNumber",e)},expression:"payment.vplusMobileNumber"}})],1):t._e(),"VPlus Wallet"===t.local.paymentMethod?i("div",{staticClass:"full-width row q-my-sm"},[i("div",{staticClass:"col-5 col-md-3 col-lg-2 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","padding-bottom":"20px"}},[t._v(" Vplus Member ID ")]),i("q-input",{staticClass:"col-grow",staticStyle:{"max-width":"200px"},attrs:{outlined:"",dense:"",readonly:t.vplusVerified,debounce:500,error:t.isVplusMemberIDError,"error-message":t.payment.vplusMemberIDError,mask:"XXXXXX",placeholder:"Enter member ID",autogrow:""},model:{value:t.payment.vplusMemberID,callback:function(e){t.$set(t.payment,"vplusMemberID",e)},expression:"payment.vplusMemberID"}})],1):t._e(),i("q-inner-loading",{attrs:{showing:t.paymentMethodLoading}},[i("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),i("TileBar",{attrs:{title:"Coupon code"}}),i("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row items-center justify-start",staticStyle:{padding:"6px 16px"}},[i("q-input",{staticClass:"col-grow q-mr-sm",staticStyle:{"max-width":"200px"},attrs:{outlined:"",clearable:"",dense:"",mask:"XXXXXXXX",maxlength:"8",placeholder:"Add coupon code",autogrow:""},model:{value:t.local.couponCode,callback:function(e){t.$set(t.local,"couponCode",e)},expression:"local.couponCode"}}),i("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{color:"primary",dense:"","no-caps":"","no-wrap":"",flat:"",label:"Apply"},on:{click:t.onApplyCouponCode}})],1),i("TileBar",{ref:"OrderSummary",attrs:{title:"Order summary",optionButton:"Add items"},on:{"on-button":t.onAddItems}}),i("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px"}},[t._l(t.ScheduleGroupsWithDeliveryFeeWithPricing,(function(e,s){return i("schedule-group",{key:s,ref:"ScheduleGroup",refInFor:!0,attrs:{group:e,index:s,isExpress:t.isExpress,isNationwide:t.isNationwide,shippingType:t.local.shippingType}})})),t.ScheduleGroupsWithDeliveryFeeWithPricing.length<=0?i("span",[t._v(" "+t._s("You have no items. ")+" ")]):t._e()],2),i("TileBar",{ref:"comment-to-shopper",attrs:{title:"Comment to shopper"}}),i("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px 16px 16px",position:"relative"}},[i("q-input",{staticClass:"full-width q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter comment to shopper/rider",autogrow:""},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1),i("TileBar",{ref:"billingAddress",attrs:{title:"Request tax invoice",optionToggle:!0},model:{value:t.local.requestTaxInvoice,callback:function(e){t.$set(t.local,"requestTaxInvoice",e)},expression:"local.requestTaxInvoice"}}),t.local.requestTaxInvoice?i("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[i("q-list",{staticClass:"col-12",attrs:{dense:""}},t._l(t.filteredBillingAddressTypeList,(function(e,s){return i("q-item",{key:s,attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:e.type,color:"primary"},model:{value:t.local.billingAddressType,callback:function(e){t.$set(t.local,"billingAddressType",e)},expression:"local.billingAddressType"}})],1),i("q-item-section",[i("q-item-label",[t._v(t._s(e.name))])],1)],1)})),1),"USE_SAVED_ADDRESS"===t.local.billingAddressType&&t.formatedShippingAddressList.length>0?i("div",{ref:"SavedAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[t._v(" Saved address ")]):t._e(),"USE_SAVED_ADDRESS"===t.local.billingAddressType?i("q-list",{staticClass:"col-12",attrs:{dense:""}},t._l(t.formatedShippingAddressList,(function(e,s){return i("q-item",{key:s,attrs:{tag:"label"}},[i("q-item-section",{attrs:{avatar:""}},[i("q-radio",{attrs:{val:s,color:"primary"},model:{value:t.local.billingAddressIndexFromSavedAddress,callback:function(e){t.$set(t.local,"billingAddressIndexFromSavedAddress",e)},expression:"local.billingAddressIndexFromSavedAddress"}})],1),i("q-item-section",[i("q-item-label",[t._v(t._s(e.name))]),i("q-item-label",{attrs:{caption:"",lines:"2"}},[t._v(t._s(e.formatedAddress))])],1)],1)})),1):t._e(),"USE_SAVED_ADDRESS"===t.local.billingAddressType||"USE_DELIVERY_ADDRESS"===t.local.billingAddressType?i("div",{ref:"SavedAdditionalAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[t._v(" Fill billing details ")]):t._e(),"USE_SAVED_ADDRESS"===t.local.billingAddressType||"USE_DELIVERY_ADDRESS"===t.local.billingAddressType?i("q-form",{ref:"additionalForm",staticClass:"col-12"},[i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Tax ID* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter tax ID",autogrow:"","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter tax ID"}]},model:{value:t.additionalBillingInfo.customerTaxId,callback:function(e){t.$set(t.additionalBillingInfo,"customerTaxId",e)},expression:"additionalBillingInfo.customerTaxId"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Company name ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter company name",autogrow:"","lazy-rules":"",rules:[function(t){return!0}]},model:{value:t.additionalBillingInfo.customerCompanyName,callback:function(e){t.$set(t.additionalBillingInfo,"customerCompanyName",e)},expression:"additionalBillingInfo.customerCompanyName"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Branch ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter company branch","lazy-rules":"",rules:[function(t){return!0}],autogrow:""},model:{value:t.additionalBillingInfo.customerCompanyBranch,callback:function(e){t.$set(t.additionalBillingInfo,"customerCompanyBranch",e)},expression:"additionalBillingInfo.customerCompanyBranch"}})],1)]):t._e(),"USE_OTHER_ADDRESS"===t.local.billingAddressType?i("div",{ref:"OtherAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[t._v(" Fill billing address details ")]):t._e(),"USE_OTHER_ADDRESS"===t.local.billingAddressType?i("q-form",{ref:"form",staticClass:"col-12"},[i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" First name* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter first name","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter first name"}],autogrow:""},model:{value:t.otherBillingAddress.customerFirstName,callback:function(e){t.$set(t.otherBillingAddress,"customerFirstName",e)},expression:"otherBillingAddress.customerFirstName"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Last name* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter last name","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter last name"}],autogrow:""},model:{value:t.otherBillingAddress.customerLastName,callback:function(e){t.$set(t.otherBillingAddress,"customerLastName",e)},expression:"otherBillingAddress.customerLastName"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Tax ID* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter tax ID",autogrow:"","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter tax ID"}]},model:{value:t.otherBillingAddress.customerTaxId,callback:function(e){t.$set(t.otherBillingAddress,"customerTaxId",e)},expression:"otherBillingAddress.customerTaxId"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Company name ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter company name",autogrow:"","lazy-rules":"",rules:[function(t){return!0}]},model:{value:t.otherBillingAddress.customerCompanyName,callback:function(e){t.$set(t.otherBillingAddress,"customerCompanyName",e)},expression:"otherBillingAddress.customerCompanyName"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Branch ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter company branch","lazy-rules":"",rules:[function(t){return!0}],autogrow:""},model:{value:t.otherBillingAddress.customerCompanyBranch,callback:function(e){t.$set(t.otherBillingAddress,"customerCompanyBranch",e)},expression:"otherBillingAddress.customerCompanyBranch"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Address* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter address","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter your address"}],autogrow:""},model:{value:t.otherBillingAddress.billingAddress,callback:function(e){t.$set(t.otherBillingAddress,"billingAddress",e)},expression:"otherBillingAddress.billingAddress"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Sub district* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter sub district","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter sub district"}],autogrow:""},model:{value:t.otherBillingAddress.billingSubDistrict,callback:function(e){t.$set(t.otherBillingAddress,"billingSubDistrict",e)},expression:"otherBillingAddress.billingSubDistrict"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" District* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter district","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter district"}],autogrow:""},model:{value:t.otherBillingAddress.billingDistrict,callback:function(e){t.$set(t.otherBillingAddress,"billingDistrict",e)},expression:"otherBillingAddress.billingDistrict"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Province* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter province","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter province"}],autogrow:""},model:{value:t.otherBillingAddress.billingProvince,callback:function(e){t.$set(t.otherBillingAddress,"billingProvince",e)},expression:"otherBillingAddress.billingProvince"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Post code* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter postcode","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter postcode"}],autogrow:""},model:{value:t.otherBillingAddress.billingPostcode,callback:function(e){t.$set(t.otherBillingAddress,"billingPostcode",e)},expression:"otherBillingAddress.billingPostcode"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Phone number* ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter phone number","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter your phone number"}],autogrow:""},model:{value:t.otherBillingAddress.billingPhone,callback:function(e){t.$set(t.otherBillingAddress,"billingPhone",e)},expression:"otherBillingAddress.billingPhone"}})],1),i("div",{staticClass:"full-width row"},[i("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Email ")]),i("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter email",autogrow:"","lazy-rules":"",rules:[function(t){return!0}]},model:{value:t.otherBillingAddress.customerEmail,callback:function(e){t.$set(t.otherBillingAddress,"customerEmail",e)},expression:"otherBillingAddress.customerEmail"}})],1)]):t._e(),i("q-inner-loading",{attrs:{showing:t.addressLoading}},[i("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1):t._e(),i("TileBar",{attrs:{title:"Request subtitutes",optionToggle:!0},model:{value:t.local.requestSubstitute,callback:function(e){t.$set(t.local,"requestSubstitute",e)},expression:"local.requestSubstitute"}}),i("TileBar",{attrs:{title:"Chat with us",optionButton:"chat now"},on:{"on-button":t.onLiveChat}}),i("div",{staticClass:"sticky-bottom col-12 col-sm-10 col-md-9 bg-white"},[i("div",{staticClass:"col-12"},[i("q-btn",{staticClass:"full-width q-mt-sm",attrs:{"no-caps":"","no-wrap":"",loading:t.grandTotalLoading||t.loadingPlaceOrder,color:"primary",label:"Place Order"},on:{click:t.onPlaceOrder},scopedSlots:t._u([t.vplusLoading?{key:"loading",fn:function(){return[i("q-spinner",{staticClass:"on-left"}),t._v(" Loading... "+t._s(t.vplusLoadingCountdown)+" ")]},proxy:!0}:t.vplusLoading?null:{key:"loading",fn:function(){return[i("q-spinner",{staticClass:"on-left"}),t._v(" We are processing your order... ")]},proxy:!0}],null,!0)})],1),i("div",{staticClass:"row justify-end"},[i("div",{staticClass:"col-12 col-md-6"},[i("div",{staticClass:"row justify-between"},[i("div",[t._v("Sub total")]),i("div",{staticClass:"text-primary"},[t._v(" "+t._s(t.$priceFormat(t.pricing.subTotal))+" ")])]),i("div",{staticClass:"row justify-between"},[i("div",[t._v("Total delivery fee")]),null!=t.pricing.deliveryFee||void 0!=t.pricing.deliveryFee?i("div",{staticClass:"text-primary"},[t._v(" "+t._s(t.pricing.deliveryFee>0?"+"+t.$priceFormat(t.pricing.deliveryFee):"0")+" ")]):t._e()]),i("div",{staticClass:"row justify-between"},[i("div",[t._v("Promotion discount")]),null!=t.pricing.discount||void 0!=t.pricing.discount?i("div",{staticClass:"text-red"},[t._v(" "+t._s(t.pricing.discount>0?"-"+t.$priceFormat(t.pricing.discount):"0")+" ")]):t._e()]),i("div",{staticClass:"row justify-between"},[i("div",[t._v("Total")]),i("div",{staticClass:"text-primary text-bold"},[t._v(" "+t._s(t.$priceFormat(t.pricing.total))+" ")])])])])]),i("q-dialog",{attrs:{persistent:""},model:{value:t.dialogDelivery.show,callback:function(e){t.$set(t.dialogDelivery,"show",e)},expression:"dialogDelivery.show"}},[i("DialogAlert",{attrs:{message:t.dialogDelivery.message,"left-btn":t.dialogDelivery.leftButtonText,"right-btn":t.dialogDelivery.rightButtonText},on:{leftClick:t.dialogDelivery.leftButtonCallback,rightClick:t.dialogDelivery.rightButtonCallback}})],1),i("q-dialog",{attrs:{persistent:""},model:{value:t.dialogNationwide.show,callback:function(e){t.$set(t.dialogNationwide,"show",e)},expression:"dialogNationwide.show"}},[i("DialogAlert",{attrs:{message:t.dialogNationwide.message,"left-btn":"Contact us","mid-btn":"Live chat","right-btn":"Close"},on:{leftClick:t.onContactUs,midClick:t.onLiveChat,rightClick:t.onDeliveryNationwide}})],1),i("q-dialog",{attrs:{persistent:""},model:{value:t.dialogShippingError.show,callback:function(e){t.$set(t.dialogShippingError,"show",e)},expression:"dialogShippingError.show"}},[i("DialogAlert",{attrs:{message:t.dialogShippingError.message,"right-btn":"Close"},on:{rightClick:t.onCloseShippingError}})],1),i("q-dialog",{attrs:{persistent:""},model:{value:t.dialogVplusWallet.show,callback:function(e){t.$set(t.dialogVplusWallet,"show",e)},expression:"dialogVplusWallet.show"}},[i("DialogAlert",{attrs:{message:t.dialogVplusWallet.message,submessage:t.dialogVplusWallet.submessage,"right-btn":"Close"},on:{rightClick:t.onCloseDialogVplusWallet}})],1),i("q-dialog",{attrs:{persistent:""},model:{value:t.promptShippingPhone.show,callback:function(e){t.$set(t.promptShippingPhone,"show",e)},expression:"promptShippingPhone.show"}},[i("q-card",{staticStyle:{"min-width":"350px"}},[i("q-card-section",[i("div",{staticClass:"text-h6"},[t._v("Please add phone number")])]),i("q-card-section",{staticClass:"q-pt-none"},[i("VuePhoneNumberInput",{ref:"PromptShippingPhone",staticStyle:{"margin-bottom":"20px"},attrs:{"default-country-code":"TH","preferred-countries":["TH","US","GB"],error:t.promptShippingPhone.shippingPhoneDummyError},on:{update:t.onUpdatePromptShippingPhone},model:{value:t.promptShippingPhone.shippingPhoneDummy,callback:function(e){t.$set(t.promptShippingPhone,"shippingPhoneDummy",e)},expression:"promptShippingPhone.shippingPhoneDummy"}})],1),i("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[i("q-btn",{attrs:{flat:"",label:"Cancel"},on:{click:t.onCancelPrompShippingAddress}}),i("q-btn",{attrs:{loading:t.promptShippingPhone.loading,flat:"",label:"Confirm"},on:{click:t.onConfirmPrompShippingAddress}})],1)],1)],1),i("q-dialog",{attrs:{persistent:""},model:{value:t.dialogCoupon.show,callback:function(e){t.$set(t.dialogCoupon,"show",e)},expression:"dialogCoupon.show"}},[i("DialogAlert",{attrs:{message:t.dialogCoupon.message,"right-btn":"Close"},on:{rightClick:t.onCloseDialogCoupon}})],1),i(t.paymentComponents[t.local.paymentMethod],{ref:"payment",tag:"component"})],1)},o=[],a=(s("5319"),s("5a0c")),r=s.n(a),n=s("d772"),l=s.n(n),c=s("2f62"),d=s("429b"),p=s("7460"),h=s("27f9"),u=s("1c1c"),g=s("66e5"),m=s("4074"),A=s("0170"),f=s("3786"),b=s("cb32"),v=s("74f7"),y=s("0d59"),w=s("24e8"),C=s("eb85"),x=s("2c91"),S=s("0378"),k=s("f09f"),P=s("a370"),q=s("4b7e"),T=s("7bec"),I=s.n(T),E=(s("4413"),s("2ba5")),D=s("72d4"),L=s("013f"),B=s("0be3"),_=s("d8af"),O=s("c88b");r.a.extend(l.a);const N={QTabs:d["a"],QTab:p["a"],QInput:h["a"],QList:u["a"],QItem:g["a"],QItemSection:m["a"],QItemLabel:A["a"],QRadio:f["a"],QAvatar:b["a"],QInnerLoading:v["a"],QSpinner:y["a"],QDialog:w["a"],QSeparator:C["a"],QSpace:x["a"],QForm:S["a"],QCard:k["a"],QCardSection:P["a"],QCardActions:q["a"]},j={"Credit/Debit Card":"CreditCardFormV2",Amex:"CreditCardFormV2",Other:"CreditCardFormV2"};var V={name:"CheckoutV2",components:{...N,VuePhoneNumberInput:I.a,TitleBar:()=>s.e("signin~31ecd969").then(s.bind(null,"1e1d")),TileBar:()=>s.e("chunk-5af30cec").then(s.bind(null,"7112")),ScheduleGroup:()=>s.e("chunk-21d65af0").then(s.bind(null,"c7ee")),DialogAlert:()=>Promise.resolve().then(s.bind(null,"bb5b")),CreditCardFormV2:()=>s.e("chunk-21d65af0").then(s.bind(null,"b60a"))},mixins:[E["a"],D["a"]],data(){return{paymentComponents:j,tab:"delivery",comment:"",selectedPaymentMethod:"",selectedAddressIndex:-1,selectedShippingAddress:void 0,selectedBranchIndex:-1,selectedBillingAddressType:-1,billingAddressTypeList:[{type:"USE_DELIVERY_ADDRESS",name:"Use delivery address",DELIVERY:!0,PICKUP:!1,zeroShippingAddress:!1},{type:"USE_SAVED_ADDRESS",name:"Saved address",DELIVERY:!0,PICKUP:!0,zeroShippingAddress:!1},{type:"USE_OTHER_ADDRESS",name:"Other",DELIVERY:!0,PICKUP:!0,zeroShippingAddress:!0}],selectedBillingAddressIndexFromSavedAddress:-1,creditcardTokens:[],selectedCreditcardTokenIndex:-1,selectedNewCreditCard:!1,addressLoading:!1,grandTotalLoading:!1,pricing:{total:null,discount:null,subTotal:null,productList:[],couponCodeList:[]},otherBillingAddress:{billingAddress:void 0,billingSubDistrict:void 0,billingDistrict:void 0,billingProvince:void 0,billingPostcode:void 0,billingPhone:void 0,customerFirstName:void 0,customerLastName:void 0,customerEmail:void 0,customerCompanyName:void 0,customerCompanyBranch:void 0,customerTaxId:void 0},additionalBillingInfo:{customerCompanyName:void 0,customerCompanyBranch:void 0,customerTaxId:void 0},loadingPlaceOrder:!1,dialogNationwide:{show:!1,message:void 0},dialogShippingError:{show:!1,message:void 0},error:null,liveAgentLoaded:!1,promptShippingPhone:{show:!1,shippingPhone:void 0,shippingPhoneDummy:void 0,shippingPhoneDummyError:!1,confirm:!1,loading:!1},dialogVplusWallet:{show:!1,message:void 0,submessage:void 0},vplusLoading:!1,vplusLoadingCountdown:"",vplusPointLoading:!1,local:{shippingType:"DELIVERY",addressIndex:-1,branchIndex:-1,shippingAddress:null,shippingAddressList:[],paymentMethod:"",requestTaxInvoice:!1,billingAddressType:-1,billingAddressIndexFromSavedAddress:-1,requestSubstitute:!1,deliveryType:"",couponCode:""},shipping:{showAddressList:!1,showBranchList:!1},payment:{creditcardTokens:[],creditcardTokenIndex:-1,newCreditCard:!0,vplusMobileNumber:"",vplusMemberID:"",vplusMemberIDError:void 0},delivery:{show:!0,loading:!1,forceNationwide:!1,canNationwide:!0},dialogDelivery:{show:!1,message:void 0,leftButtonText:null,leftButtonCallback:()=>{},rightButtonText:null,rightButtonCallback:()=>{}},dialogCoupon:{show:!1,message:null},getCostWithShippingResponse:null}},computed:{...Object(c["b"])("configFile",{paymentMethods:"paymentMethods"}),...Object(c["b"])("branch",{branchName:"name"}),...Object(c["b"])("cartData",["SelectedInStockList","ScheduleGroups"]),...Object(c["b"])("user",["shippingType","paymentMethod","shippingAddressList","requestTaxInvoice","requestTaxInvoiceType","requestTaxInvoiceSavedAddressIndex","requestSubstitute"]),...Object(c["b"])("member",["vplusMobileNumber","vplusMemberID","vplusPoints","vplusVerified"]),...Object(c["b"])("delivery",["deliveryFee","deliveryMode"]),...Object(c["b"])(["IsBranchCartProductPriceInventoryLoaded"]),loading(){return!this.IsBranchCartProductPriceInventoryLoaded.loaded||!this.$store.getters["cartData/IsLoaded"]||this.$store.getters["cart/loading"]||this.$store.getters["user/loading"]},branchList(){return Object(_["d"])()},canExpress(){if(!this.ScheduleGroups)return!1;if(this.ScheduleGroups.length<=0)return!1;const t=this.ScheduleGroups[0].items.reduce((t,e)=>t+e.quantity,0);return!(t>8)},currentTime(){return this.$store.getters["cartData/currentTime"]},isNextDayExpress(){const t=r.a.unix(this.currentTime);return t.hour()>18},deliveryTypes(){return[{name:"REGULAR",displayName:"Regular",description:"",disable:!!this.delivery.forceNationwide},{name:"EXPRESS",displayName:"Express",description:this.canExpress?this.isNextDayExpress?"After 19:00 (7 PM), the order will be delivered in the next day morning":"Deliver as fast as possible":"*Cannot apply express delivery, your regular order has more than 8 items.",disable:!!this.delivery.forceNationwide||!this.canExpress},{name:"NATIONWIDE",displayName:"Nation wide",description:"Delivery will be between 2 to 5 days",disable:!this.delivery.canNationwide}]},isExpress(){return"EXPRESS"===this.local.deliveryType},isNationwide(){return"NATIONWIDE"===this.local.deliveryType},ScheduleGroupsWithDeliveryFee(){return this.ScheduleGroups?this.getCostWithShippingResponse&&this.getCostWithShippingResponse.deliveryFee?this.ScheduleGroups.map(t=>({...t,deliveryFee:this.getCostWithShippingResponse.deliveryFee})):this.ScheduleGroups.map(t=>({...t,deliveryFee:0})):[]},ScheduleGroupsWithDeliveryFeeWithPricing(){return this.ScheduleGroupsWithDeliveryFee.map(t=>{const e=t.items.map(t=>{const e=this.pricing.productList.find(e=>e.cprcode===t.cprcode);return e?{...t,originalPrice:e.originalPrice,price:e.price,discount:e.discount,rowTotal:e.rowTotal,discountedRowTotal:e.discountedRowTotal!==e.rowTotal?e.discountedRowTotal:void 0}:t});return{...t,items:e}})},shippingTitle(){switch(this.local.shippingType){case"PICKUP":return"Pick-up at";case"DELIVERY":default:return"Deliver to"}},shippingSwitchText(){switch(this.local.shippingType){case"PICKUP":return"Switch to delivery";case"DELIVERY":default:return"Switch to self pick-up"}},formatedName(){return this.local.shippingAddress?this.local.shippingAddress.name:""},formatedAddress(){if(this.local.shippingAddress){const t=this.local.shippingAddress;return`${t.address} ${t.subDistrict} ${t.district} ${t.province} ${t.postcode}`}return""},formatedContact(){if(this.local.shippingAddress){const t=this.local.shippingAddress;let e="";return t.firstname&&(e+=t.firstname),t.lastname&&(e+=" "+t.lastname),this.promptShippingPhone.shippingPhone?e+=" "+this.promptShippingPhone.shippingPhone:t.phone&&(e+=" "+t.phone),t.email&&(e+=" "+t.email),e}return""},formatedShippingAddressList(){return this.local.shippingAddressList?this.local.shippingAddressList.map(t=>({...t,formatedAddress:`${t.address} ${t.subDistrict} ${t.district} ${t.province} ${t.postcode}`})):[]},formatedBranchAddressList(){return this.branchList.map(t=>({...t,formatedAddress:`${t.address} ${t.subDistrict} ${t.district} ${t.province} ${t.postcode}`}))},showChangeAddress(){return"DELIVERY"===this.local.shippingType&&this.local.shippingAddressList.length>0},showChangeBranch(){return"PICKUP"===this.local.shippingType},showAddressList(){return"DELIVERY"===this.local.shippingType&&this.shipping.showAddressList},showAddAddress(){return"PICKUP"!==this.local.shippingType&&(!!this.showAddressList||this.local.shippingAddressList.length<=0)},showBranchList(){return"PICKUP"===this.local.shippingType&&this.shipping.showBranchList},shippingAddressLoading(){return this.loading},paymentMethodLoading(){return this.loading},filteredBillingAddressTypeList(){const t=this.billingAddressTypeList.filter(t=>t[this.local.shippingType]);return this.formatedShippingAddressList.length<=0?t.filter(t=>t.zeroShippingAddress):t},ScheduleGroupsShippingAddressPaymentMethodLoaded(){return this.ScheduleGroups&&!this.loading},isVplusMemberIDError(){return!!this.payment.vplusMemberIDError}},watch:{shippingType:{immediate:!0,handler:function(t){switch(t){case"PICKUP":this.local.shippingType=t,this.loadPickUpInfomation();break;case"DELIVERY":this.local.shippingType=t,this.loadDeliveryInfomation();break;default:this.local.shippingType="DELIVERY",this.loadDeliveryInfomation();break}}},"local.shippingType":{immediate:!1,handler:function(t){this.$store.dispatch("user/UpdateShippingType",t),this.getCost()}},shippingAddressList:{immediate:!0,handler:function(t){this.local.shippingAddressList=t}},"local.shippingAddressList":{immediate:!1,handler:function(t){}},"local.shippingAddress":{immediate:!0,handler:function(t){t&&this.getDeliveryFee(t.location)}},"local.deliveryType":{immediate:!1,handler:function(t,e){if(t&&"DELIVERY"===this.local.shippingType)switch(t){case"REGULAR":this.$gtag&&this.$gtag.event("set_checkout_option",{checkout_option:"Delivery type",value:1}),this.getCost();break;case"EXPRESS":this.$gtag&&this.$gtag.event("set_checkout_option",{checkout_option:"Delivery type",value:2}),this.getCost();break;case"NATIONWIDE":{this.$gtag&&this.$gtag.event("set_checkout_option",{checkout_option:"Delivery type",value:3});const t=this.$store.getters["branch/name"],e=this.$store.getters["branch/code"];return"1000"===e?void this.getCost():(this.delivery.loading=!0,this.dialogDelivery.show=!0,this.dialogDelivery.message=`You are currently shopping at ${t}, However, your address are to be delivered from Sukhumvit 33.`,this.dialogDelivery.rightButtonText="Apply Nation Wide delivery",void(this.dialogDelivery.rightButtonCallback=async()=>{await this.$store.dispatch("branch/update",{code:1e3}),this.dialogDelivery.show=!1,this.delivery.loading=!1}))}default:break}}},"local.addressIndex":{immediate:!1,handler:function(t){this.shipping.showAddressList=!this.shipping.showAddressList,this.local.shippingAddress=this.$store.getters["user/shippingAddressById"](t),this.$store.dispatch("user/UpdateDefaultShippingAddress",t)}},"local.branchIndex":{immediate:!1,handler:function(t){this.shipping.showBranchList=!this.shipping.showBranchList,t>=0&&this.changeBranch()}},paymentMethod:{immediate:!0,handler:function(t){const e=this.$store.getters["configFile/paymentMethods"];e.find(e=>e.name===t)&&(this.local.paymentMethod=t),"Amex"===t&&this.$store.dispatch("order/ConfigureAmex"),"Credit/Debit Card"===t&&this.loadCreditCardToken()}},"local.paymentMethod":{immediate:!1,handler:function(t){"Amex"===t&&this.$store.dispatch("order/ConfigureAmex"),"Credit/Debit Card"===t&&this.loadCreditCardToken(),this.$store.dispatch("user/UpdatePaymentMethod",t)}},requestTaxInvoice:{immediate:!0,handler:function(t){this.local.requestTaxInvoice=t}},"local.requestTaxInvoice":{immediate:!1,handler:function(t){this.$store.dispatch("user/UpdateRequestTaxInvoice",{requestTaxInvoice:t,type:this.local.requestTaxInvoiceType,savedAddressIndex:this.local.requestTaxInvoiceSavedAddressIndex})}},requestTaxInvoiceType:{immediate:!0,handler:function(t){this.local.billingAddressType=t}},"local.billingAddressType":{immediate:!1,handler:function(t){this.$store.dispatch("user/UpdateRequestTaxInvoice",{requestTaxInvoice:this.local.requestTaxInvoice,type:t,savedAddressIndex:this.local.billingAddressIndexFromSavedAddress})}},requestTaxInvoiceSavedAddressIndex:{immediate:!0,handler:function(t){void 0===t&&(this.local.billingAddressIndexFromSavedAddress=-1),t&&(this.local.billingAddressIndexFromSavedAddress=t)}},"local.billingAddressIndexFromSavedAddress":{immediate:!1,handler:function(t){this.$store.dispatch("user/UpdateRequestTaxInvoice",{requestTaxInvoice:this.local.requestTaxInvoice,type:this.local.billingAddressType,savedAddressIndex:t})}},requestSubstitute:{immediate:!0,handler:function(t){void 0===t&&(this.local.requestSubstitute=!1),t&&(this.local.requestSubstitute=t)}},"local.requestSubstitute":{immediate:!1,handler:function(t){this.$store.dispatch("user/UpdateRequestSubstitute",t)}},vplusMobileNumber:{immediate:!0,handler:function(t){t&&(this.payment.vplusMobileNumber=t)}},vplusMemberID:{immediate:!0,handler:function(t){t&&(this.payment.vplusMemberID=t)}},"payment.vplusMobileNumber":{immediate:!1,handler:function(t){t&&this.vplusVerified&&(this.payment.vplusMemberIDError=void 0,this.loadMemberWithPhonenumber(t).catch(t=>{t&&t.response&&t.response.data&&(this.payment.vplusMemberIDError=t.response.data.error)}))}},loading:{immediate:!1,handler:function(t){t||this.$store.dispatch("cartData/CreateSchedule").then(()=>this.getCost())}}},created(){this.$gtag&&this.$gtag.event("begin_checkout",{currency:"THB"}),this.loadUser(),this.loadMember(),this.$store.dispatch("cartData/GetCurrentTime"),window.LiveAgent&&(this.liveAgentLoaded=!0)},mounted(){this.$store.dispatch("cartData/CreateSchedule")},methods:{async onSwitchShippingType(){switch(this.local.shippingType){case"DELIVERY":this.loadPickUpInfomation(),this.clearPickupState();break;case"PICKUP":this.loadDeliveryInfomation(),this.clearDeliveryState();break}},loadDeliveryInfomation(){this.local.shippingType="DELIVERY",this.local.shippingAddress=this.$store.getters["user/defaultShippingAddressDetail"]},loadPickUpInfomation(){this.local.shippingType="PICKUP";const t=this.$store.getters["user/user"],e=this.$store.getters["branch/name"],s=Object(_["b"])(e);t.firstName&&t.lastName?(s.firstname=t.firstName,s.lastname=t.lastName):t.name&&(s.firstname=t.name.split(" ")[0],s.lastname=t.name.split(" ")[1]),t.phone_number&&(s.phone=t.phone_number),t.email&&(s.email=t.email),this.local.shippingAddress={...s,location:{lat:s.latlng[0],lng:s.latlng[1]}}},clearPickupState(){this.shipping.showBranchList=!1},clearDeliveryState(){this.shipping.showAddressList=!1},onChangeAddress(){this.shipping.showAddressList=!this.shipping.showAddressList},onAddNewAddress(){this.$router.push("/profile/shipping/add")},onChangeBranch(){this.shipping.showBranchList=!this.shipping.showBranchList},changeBranch(){const t=this.branchList[this.local.branchIndex].code;t&&(this.$store.dispatch("branch/update",{code:t}),this.loadPickUpInfomation())},async loadCreditCardToken(){try{const t=this.$store.getters["user/user"],e=await this.$store.dispatch("order/GetCreditCardToken",{ownerId:t.id});e.length>0?(this.payment.creditcardTokens=e,this.payment.creditcardTokenIndex=0,this.payment.newCreditCard=!1):0===e.length&&(this.payment.newCreditCard=!0)}catch(t){this.payment.newCreditCard=!0}},onCloseShippingError(){this.dialogShippingError={show:!1,message:null}},buildScheduleList(){if(this.ScheduleGroupsWithDeliveryFee)return this.ScheduleGroupsWithDeliveryFee.map(t=>({scheduleId:t.id,preOrder:t.preOrder,mode:t.type,dateTime:t.dateTime,deliveryFee:t.deliveryFee,pickingStatus:"pending"}))},buildScheduleListForCostCalculation(){if(this.ScheduleGroupsWithDeliveryFee)return this.ScheduleGroupsWithDeliveryFee.map(t=>({scheduleId:t.id,preOrder:t.preOrder,mode:t.type,dateTime:t.dateTime,deliveryFee:t.deliveryFee,pickingStatus:"pending"})).map(t=>{let e,s;if("DELIVERY"===this.local.shippingType)switch(s=t.deliveryFee,this.local.deliveryType){case"REGULAR":case"EXPRESS":e="EXPRESS";break;case"NATIONWIDE":e="NATIONWIDE";break}return"PICKUP"===this.local.shippingType&&(e="REGULAR",s=0),{...t,mode:e,deliveryFee:s}})},buildShipping(t){return t?{scheduleList:this.buildScheduleList(),shippingFirstName:t.firstname,shippingLastName:t.lastname,shippingAddress:t.address,shippingSubDistrict:t.subdistrict,shippingDistrict:t.district,shippingProvince:t.province,shippingPostcode:t.postcode,shippingLat:t.location.lat,shippingLon:t.location.lng,shippingPhone:t.phone,shippingEmail:t.email,shippingType:this.local.shippingType}:{scheduleList:this.buildScheduleList()}},buildShippingForCostCalculation(t){return t?{scheduleList:this.buildScheduleListForCostCalculation(),shippingFirstName:t.firstname,shippingLastName:t.lastname,shippingAddress:t.address,shippingSubDistrict:t.subdistrict,shippingDistrict:t.district,shippingProvince:t.province,shippingPostcode:t.postcode,shippingLat:t.location.lat,shippingLon:t.location.lng,shippingPhone:t.phone||"",shippingEmail:t.email,shippingType:this.local.shippingType}:{scheduleList:this.buildScheduleListForCostCalculation()}},async getCost(){try{let e,s;this.grandTotalLoading=!0;const i=this.$store.getters["branch/code"],o=this.SelectedInStockList.map(t=>({productName:t.hema_name_en,quantity:t.quantity,cprcode:t.cprcode,remark:t.remark}));if(o.length<=0)throw"Zeros product";if(e={ownerId:this.$store.getters["authentication/userId"],branchId:i.toString(),couponCodeList:[],productList:o,shipping:this.buildShippingForCostCalculation(this.local.shippingAddress)},s=await this.$store.dispatch("order/GetCost",e),this.getCostWithShippingResponse=null,this.pricing.total=s.grandTotal,this.pricing.subTotal=s.subTotal,this.pricing.deliveryFee=s.deliveryFee,this.pricing.discount=s.cartDiscount,this.pricing.productList=s.productList,this.error=null,s=await this.$store.dispatch("order/GetSuggestion",e),s.calculateCostInput){e.couponCodeList=s.calculateCostInput.couponCodeList,[null,void 0,""].indexOf(this.local.couponCode)<0&&e.couponCodeList.push(this.local.couponCode);try{s=await this.$store.dispatch("order/GetCostWithShippingWithCoupon",e)}catch(t){throw this.dialogCoupon={show:!0,message:"Coupon code invalid or expired."},this.local.couponCode=null,new Error("invalid coupon code")}}this.getCostWithShippingResponse=s,this.pricing.total=s.grandTotal,this.pricing.subTotal=s.subTotal,this.pricing.deliveryFee=s.deliveryFee,this.pricing.discount=s.cartDiscount,this.pricing.couponCodeList=s.couponCodeList,s.bogoDiscount&&(this.pricing.discount+=s.bogoDiscount),this.pricing.productList=s.productList,this.error=null}catch(t){this.pricing.total="-",this.pricing.subTotal="-",this.pricing.deliveryFee="-",this.pricing.discount="-",this.pricing.productList=[],this.error=!0}finally{this.grandTotalLoading=!1}},async getCostWithShipping(){},async getCostWithCoupon(){},async onApplyCouponCode(){this.getCost()},onCloseDialogCoupon(){this.dialogCoupon={show:!1,message:null}},async fetchDeliveryFee(){if("PICKUP"!==this.local.shippingType){if(null!==this.local.shippingAddress&&void 0!==this.local.shippingAddress)try{this.grandTotalLoading=!0;const t=this.$store.getters["branch/name"],e=await this.$store.dispatch("delivery/GetDeliveryFee",this.local.shippingAddress.location);if(e)switch(e.mode){case"express":e.branch!=t&&(this.dialogDelivery.show=!0,this.dialogDelivery.data=e,this.dialogDelivery.message=`You are currently shopping at ${t}, However, your address are to be delivered from ${e.branch}. You can choose to change shipping address or change shopping branch to ${e.branch} but some item may not available.`);break;case"nationwide":this.dialogNationwide.show=!0,this.dialogNationwide.message=e.message;break;default:break}}catch(t){this.$Sentry.captureException(t)}finally{this.grandTotalLoading=!1}}else this.$store.commit("delivery/setDeliveryFee",0)},async getDeliveryFee(t){try{if("PICKUP"===this.local.shippingType)return this.$store.commit("delivery/setDeliveryFee",0),void this.getCost();this.delivery.loading=!0;const e=await this.$store.dispatch("delivery/GetDeliveryFee",t);if(this.delivery.canNationwide=!0,this.delivery.forceNationwide=!1,e){const t=this.$store.getters["branch/name"];let s=!1,i=null,o=!1,a=null;if(e.success){const r=e.top5.filter(t=>t.cost>=0);for(let t=0;t=0){a=r[t];break}t!=a.store_name&&(s=!0,i=a),t!=a.eligible_to_shop_at_33&&(o=!0)}if(s&&o)return this.dialogDelivery.show=!0,this.dialogDelivery.message=`You are currently shopping at ${t}, However, your address are to be delivered from ${i.store_name}. You can choose to switch shopping branch or delivery from Sukhumvit 33.`,this.dialogDelivery.rightButtonText="Switch branch",this.dialogDelivery.leftButtonText="Deliver from Sukhumvit 33",this.dialogDelivery.leftButtonCallback=async()=>{await this.$store.dispatch("branch/update",{code:1e3}),"EXPRESS"===this.local.deliveryType?this.local.deliveryType="EXPRESS":this.local.deliveryType="REGULAR",this.dialogDelivery.show=!1,this.delivery.loading=!1},void(this.dialogDelivery.rightButtonCallback=async()=>{await this.$store.dispatch("branch/update",{code:i.br_code}),"EXPRESS"===this.local.deliveryType?this.local.deliveryType="EXPRESS":this.local.deliveryType="REGULAR",this.dialogDelivery.show=!1,this.delivery.loading=!1,this.getCost(),this.delivery.canNationwide=!1});if(s)return this.dialogDelivery.show=!0,this.dialogDelivery.message=`You are currently shopping at ${t}, However, your address are to be delivered from ${i.store_name}.`,this.dialogDelivery.rightButtonText="Switch branch",void(this.dialogDelivery.rightButtonCallback=async()=>{await this.$store.dispatch("branch/update",{code:i.br_code}),"EXPRESS"===this.local.deliveryType?this.local.deliveryType="EXPRESS":this.local.deliveryType="REGULAR",this.dialogDelivery.show=!1,this.delivery.loading=!1,this.getCost(),this.delivery.canNationwide=!1});if(e.success)return this.local.deliveryType="REGULAR",this.delivery.loading=!1,this.getCost(),void(this.delivery.canNationwide=!1)}{const t=this.$store.getters["branch/name"],e=this.$store.getters["branch/code"];return this.delivery.forceNationwide=!0,"1000"===e?(this.local.deliveryType="NATIONWIDE",void(this.delivery.loading=!1)):(this.dialogDelivery.show=!0,this.dialogDelivery.message=`You are currently shopping at ${t}, However, your address are to be delivered from Sukhumvit 33.`,this.dialogDelivery.rightButtonText="Apply Nation Wide delivery",void(this.dialogDelivery.rightButtonCallback=async()=>{await this.$store.dispatch("branch/update",{code:1e3}),this.local.deliveryType="NATIONWIDE",this.dialogDelivery.show=!1,this.delivery.loading=!1}))}}catch(e){this.delivery.loading=!1}},async onDeliveryChangeBranch(){await this.$store.dispatch("branch/update",{name:this.dialogDelivery.data.branch}),this.dialogDelivery.show=!1,this.error=null},async onDeliveryChangeAddress(){this.dialogDelivery.show=!1,this.shipping.showAddressList=!0,this.error="Error: Wait to change address"},onAddItems(){this.$router.push("/catalog/New Arrival")},async onPlaceOrder(){if(this.loadingPlaceOrder=!0,this.error)return this.$nextTick(()=>{this.dialogShippingError={show:!0,message:"Please add shipping address."};let t=this.$refs["ChooseAddress"];if(t){const e=t.offsetTop;window.scrollTo(0,e)}else if(t=this.$refs["AddNewAddress"],t){const e=t.offsetTop;window.scrollTo(0,e)}else;}),void(this.loadingPlaceOrder=!1);if(null===this.local.shippingAddress)return this.$nextTick(()=>{const t=this.$refs["shippingAddress"],e=t.offsetTop;window.scrollTo(0,e),this.dialogShippingError={show:!0,message:"Please add shipping address."}}),void(this.loadingPlaceOrder=!1);if([null,void 0,""].indexOf(this.local.paymentMethod)>=0)return this.$nextTick(()=>{const t=this.$refs["paymentDetails"],e=t.offsetTop;window.scrollTo(0,e),this.dialogShippingError={show:!0,message:"Please choose payment method."}}),void(this.loadingPlaceOrder=!1);if("Credit/Debit Card"===this.local.paymentMethod&&!1===this.local.newCreditCard&&this.local.creditcardTokenIndex<0)return this.$nextTick(()=>{const t=this.$refs["CreditCardToken"],e=t.offsetTop;window.scrollTo(0,e),this.dialogShippingError={show:!0,message:"Please choose credit card or new card."}}),void(this.loadingPlaceOrder=!1);if("VPlus Wallet"===this.local.paymentMethod){if(["",null,void 0].indexOf(this.payment.vplusMobileNumber)>=0)return void this.$nextTick(()=>{const t=this.$refs["vplus"],e=t.offsetTop;window.scrollTo(0,e),this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message="Please enter Vplus mobile number",this.loadingPlaceOrder=!1});if(this.isVplusMemberIDError)return void this.$nextTick(()=>{const t=this.$refs["vplus"],e=t.offsetTop;window.scrollTo(0,e),this.loadingPlaceOrder=!1})}if(!0===this.local.requestTaxInvoice&&!this.filteredBillingAddressTypeList.some(t=>t.type===this.local.billingAddressType))return this.$nextTick(()=>{this.dialogShippingError={show:!0,message:"Please choose billing address."}}),void(this.loadingPlaceOrder=!1);if(!0===this.local.requestTaxInvoice&&"USE_SAVED_ADDRESS"===this.local.billingAddressType&&this.local.billingAddressIndexFromSavedAddress<0)return this.$nextTick(()=>{this.$refs["SavedAddress"].focus(),this.dialogShippingError={show:!0,message:"Please choose your saved address."}}),void(this.loadingPlaceOrder=!1);if(!0===this.local.requestTaxInvoice&&"USE_OTHER_ADDRESS"===this.local.billingAddressType){const t=await this.$refs["form"].validate();if(!1===t)return this.$nextTick(()=>{this.$refs["form"].focus()}),void(this.loadingPlaceOrder=!1)}if("PICKUP"===this.local.shippingType&&"USE_DELIVERY_ADDRESS"===this.local.billingAddressType)return this.$q.notify({message:"Please choose billing address in Request tax invoice section.",type:"warning",position:"top",actions:[{label:"Dismiss",handler:()=>{}}]}),void(this.loadingPlaceOrder=!1);const t=this.$store.getters["authentication/userId"],e=this.$store.getters["branch/code"],s=this.buildShipping(this.local.shippingAddress),i=this.$refs["ScheduleGroup"].reduce((t,e)=>t.concat(e.getProductWithRemarkList()),[]);if(i&&i.length<=0)return void this.$nextTick(()=>{const t=this.$refs["OrderSummary"],e=t.$el.offsetTop;window.scrollTo(0,e),this.dialogShippingError={show:!0,message:"Your order have no items."},this.loadingPlaceOrder=!1});if(s&&(void 0===s.shippingPhone||null===s.shippingPhone))return this.promptShippingPhone.show=!this.promptShippingPhone.show,void(this.loadingPlaceOrder=!1);let o=this.$refs["ScheduleGroup"].map(t=>t.validate());if(o.some(t=>!1===t))switch(this.local.shippingType){case"DELIVERY":return void this.$nextTick(()=>{const t=this.$refs["OrderSummary"],e=t.$el.offsetTop;window.scrollTo(0,e),this.dialogShippingError={show:!0,message:"Please choose your delivery date."},this.loadingPlaceOrder=!1});case"PICKUP":return void this.$nextTick(()=>{const t=this.$refs["OrderSummary"],e=t.$el.offsetTop;window.scrollTo(0,e),this.dialogShippingError={show:!0,message:"Please choose your pickup date."},this.loadingPlaceOrder=!1})}s.scheduleList=this.$refs["ScheduleGroup"].map(t=>(t.validate(),t.getSchedule()));let a={};if(this.local.requestTaxInvoice)switch(this.local.billingAddressType){case"USE_DELIVERY_ADDRESS":{const t=await this.$refs["additionalForm"].validate();if(!1===t)return this.$nextTick(()=>{this.$refs["additionalForm"].focus()}),void(this.loadingPlaceOrder=!1);a={billingAddress:this.local.shippingAddress.address,billingSubDistrict:this.local.shippingAddress.subDistrict,billingDistrict:this.local.shippingAddress.district,billingProvince:this.local.shippingAddress.province,billingPostcode:this.local.shippingAddress.postcode,billingPhone:this.local.shippingAddress.phone,customerFirstName:this.local.shippingAddress.firstname,customerLastName:this.local.shippingAddress.lastname,customerEmail:this.local.shippingAddress.email,customerCompanyName:this.additionalBillingInfo.customerCompanyName,customerCompanyBranch:this.additionalBillingInfo.customerCompanyBranch,customerTaxId:this.additionalBillingInfo.customerTaxId,requestTaxInvoice:!0}}break;case"USE_SAVED_ADDRESS":{const t=await this.$refs["additionalForm"].validate();if(!1===t)return this.$nextTick(()=>{this.$refs["additionalForm"].focus()}),void(this.loadingPlaceOrder=!1);const e=this.local.shippingAddressList[this.local.billingAddressIndexFromSavedAddress];a={billingAddress:e.address,billingSubDistrict:e.subDistrict,billingDistrict:e.district,billingProvince:e.province,billingPostcode:e.postcode,billingPhone:e.phone,customerFirstName:e.firstname,customerLastName:e.lastname,customerEmail:e.email,customerCompanyName:this.additionalBillingInfo.customerCompanyName,customerCompanyBranch:this.additionalBillingInfo.customerCompanyBranch,customerTaxId:this.additionalBillingInfo.customerTaxId,requestTaxInvoice:!0}}break;case"USE_OTHER_ADDRESS":a=this.otherBillingAddress;break;default:break}const r={grandTotal:this.pricing.total};try{const o=await this.$store.dispatch("order/CreateOrder",{userId:t,branch:e,shipping:s,productList:i,couponCodeList:this.pricing.couponCodeList,specialComment:this.comment,billingInfo:a,requestSubstitute:this.requestSubstitute,payment:r});switch(this.local.paymentMethod){case"Other":{const t=await this.$store.dispatch("order/PayByOther",o),e=this.$refs.payment;e.setInfo(t),e.submit()}break;case"Credit/Debit Card":{let t;t=this.payment.creditcardTokenIndex>=0?await this.$store.dispatch("order/PayByCreditCard",{order:o,encryptedToken:this.payment.creditcardTokens[this.payment.creditcardTokenIndex].encryptedToken}):await this.$store.dispatch("order/PayByCreditCard",{order:o});const e=this.$refs.payment;e.setInfo(t),e.submit()}break;case"Amex":{const t=await this.$store.dispatch("order/PayByAmex",o);if(!window.Checkout)throw new Error("Cannot connect AMEX");window.Checkout.configure({session:{id:t.session.id},interaction:{merchant:{name:t.merchant}}}),window.Checkout.showPaymentPage()}break;case"VPlus Wallet":if(this.payment.vplusMemberID&&this.payment.vplusMobileNumber){o.memberId=this.payment.vplusMemberID,o.mobile=this.payment.vplusMobileNumber;const t=await this.$store.dispatch("order/PayByWallet",o);let e=!1;switch(t.statusCode){case 500:this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message=t.message,e=!0;break;case 200:this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message="Please check you Vplus wallet application\nfor approval of the wallet transaction.\n",this.dialogVplusWallet.submessage="If the notification doesn't show up\nyou may need to restart the app.";break;default:break}let s=3e5,i=1e3,a=0;this.vplusLoading=!0;while(this.vplusLoading&&!e){if(a%(3*i)===0)try{const t=await this.$store.dispatch("order/GetOrderStatus",{orderId:o.orderId});if(t.payment&&t.payment.isPaid){await this.$router.replace({name:"OrderStatus",params:{id:t.orderId,status:"success"},query:{amount:t.payment.grandTotal}});break}}catch(n){break}if(await Object(B["a"])(i),a+=i,this.vplusLoadingCountdown=Math.floor((s-a)/1e3/60)+":"+String((s-a)/1e3%60).padStart(2,"0"),a>s){this.vplusLoadingCountdown="";break}}this.vplusLoading=!1}else this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message="You do not have Vplus member";default:break}}catch(n){this.$Sentry.captureException(n)}finally{this.vplusLoadingCountdown="",this.loadingPlaceOrder=!1}},onDeliveryNationwide(){this.dialogNationwide.show=!1},onContactUs(){this.$router.push("/contact")},async openChat(){window.LiveAgent.clearAllUserDetails();const t=this.$store.getters["user/user"];t&&(t.name&&window.LiveAgent.addUserDetail("firstName",t.name),t.email&&window.LiveAgent.addUserDetail("email",t.email),t.phone_number&&window.LiveAgent.addUserDetail("phone",t.phone_number));const e=await this.$store.dispatch("authentication/GetUserInfo");e&&(e.attributes?(e.attributes.name&&window.LiveAgent.addUserDetail("firstName",e.attributes.name),e.attributes.phone_number&&window.LiveAgent.addUserDetail("phone",e.attributes.phone_number),e.attributes.email&&window.LiveAgent.addUserDetail("email",e.attributes.email)):(e.name&&window.LiveAgent.addUserDetail("firstName",e.name),e.email&&window.LiveAgent.addUserDetail("email",e.email))),window.chatButton.onClick()},onCancelPrompShippingAddress(){this.promptShippingPhone.show=!this.promptShippingPhone.show,this.promptShippingPhone.confirm=!1,this.promptShippingPhone.shippingPhoneDummyError=!1,this.promptShippingPhone.shippingPhoneDummy=void 0},async onConfirmPrompShippingAddress(){const t=this.$refs["PromptShippingPhone"].isValid;if(t)try{this.promptShippingPhone.loading=!0,this.local.shippingAddress.phone=this.promptShippingPhone.shippingPhone,await this.$store.dispatch("user/UpdateUserInfo",{phone_number:this.promptShippingPhone.shippingPhone}),this.promptShippingPhone.confirm=!0}catch(e){this.$Sentry.captureException(e)}finally{this.promptShippingPhone.show=!this.promptShippingPhone.show,this.promptShippingPhone.loading=!1}else this.promptShippingPhone.shippingPhoneDummyError=!0},async onLiveChat(){this.dialogNationwide=!1,this.liveAgentLoaded||await this.loadLiveAgent(),await this.openChat()},async loadLiveAgent(){const t="https://villamarket.ladesk.com/scripts/track.js",e="j24z1lfr";return Object(O["a"])(t,"la_x2s6df8d",(function(t){window.LiveAgentID=e,window.chatButton=window.LiveAgent.createButton(e,t,"NOTE")}))},onUpdatePromptShippingPhone(t){this.promptShippingPhone.shippingPhone=t.formattedNumber,t.isValid&&(this.promptShippingPhone.shippingPhoneDummyError=!1)},onCloseDialogVplusWallet(){this.dialogVplusWallet.show=!this.dialogVplusWallet.show,this.dialogVplusWallet.message=void 0,this.dialogVplusWallet.submessage=void 0},$priceFormat(t){return Object(L["a"])(t)}},beforeDestroy(){this.vplusLoading=!1}},M=V,$=(s("ffc3"),s("2877")),R=Object($["a"])(M,i,o,!1,null,"7536f530",null);e["default"]=R.exports},"8c54":function(t,e,s){t.exports=s.p+"img/google-icon.14137f89.svg"},"8e1d":function(t,e,s){t.exports=s.p+"img/2.54b136d8.jpg"},"8f8e":function(t,e,s){"use strict";var i=s("2b0e"),o=s("85fc");e["a"]=i["default"].extend({name:"QCheckbox",mixins:[o["a"]],methods:{__getInner(t){return[t("div",{staticClass:"q-checkbox__bg absolute"},[t("svg",{staticClass:"q-checkbox__svg fit absolute-full",attrs:{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"}},[t("path",{staticClass:"q-checkbox__truthy",attrs:{fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}}),t("path",{staticClass:"q-checkbox__indet",attrs:{d:"M4,14H20V10H4"}})])])]}},created(){this.type="checkbox"}})},9073:function(t,e,s){t.exports=s.p+"img/seafood.6dbd22f8.png"},9186:function(t,e,s){t.exports=s.p+"img/butcher.39eb88da.png"},"963e":function(t,e,s){t.exports=s.p+"img/pre-order.76752367.svg"},9827:function(t,e,s){t.exports=s.p+"img/4.854da7b7.jpg"},"9a47":function(t,e,s){t.exports=s.p+"img/gourmet-line.c36ed23c.png"},"9e01":function(t,e,s){var i={"./about-d.png":"11c0","./app-store-logo.png":"c466","./badge/Best.png":"ed20","./badge/New.png":"3628","./badge/PreOrder.png":"abcf","./badge/SpecialPrice.png":"1131","./catogory/baby.png":"4fa1","./catogory/bakery.png":"26fe","./catogory/beauty.png":"2ce2","./catogory/beer.png":"6de9","./catogory/best-seller.png":"dc79","./catogory/butcher.png":"9186","./catogory/dairy.png":"3da0","./catogory/delicatessen.png":"e534","./catogory/drinks.png":"cfc6","./catogory/frozen-food.png":"67c7","./catogory/fruits.png":"ea3a","./catogory/gourmet-line.png":"9a47","./catogory/grocery.png":"876c","./catogory/hampers.png":"3f56","./catogory/health.png":"858e","./catogory/monoprix.png":"2eb5","./catogory/new-arrival.png":"1d74","./catogory/other.png":"299a","./catogory/pet.png":"3d2f","./catogory/pre-order.png":"562d","./catogory/seafood.png":"9073","./catogory/seasonal.png":"3bd9","./catogory/special-offer.png":"cb0b","./dl-app.png":"fb96","./fail-icon.png":"14ec","./how-to.png":"c315","./image-not-found.png":"cbd0","./logo-villa.png":"6e30","./logo.png":"cf05","./new-footer-app-icon.png":"6c2e","./partner/partner-03.png":"c204","./partner/partner-04.png":"e04c","./payment/thai_qr.png":"4c5e","./search.png":"bbc5","./social/facebook.png":"099b","./success-icon-blue.png":"356c"};function o(t){var e=a(t);return s(e)}function a(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="9e01"},"9e81":function(t,e,s){t.exports=s.p+"img/1.713fe7a2.jpg"},"9fcf":function(t,e,s){},a24d:function(t,e,s){t.exports=s.p+"img/delicatessen.2faa373c.svg"},a548:function(t,e,s){t.exports=s.p+"img/beauty.baab5b7b.webp"},a5ff:function(t,e,s){t.exports=s.p+"img/beauty.cf71f87e.svg"},a6fd:function(t,e,s){t.exports=s.p+"img/fruits.bb6f9373.webp"},a794:function(t,e,s){},a897:function(t,e,s){t.exports=s.p+"img/special-offer.49b62735.svg"},abcf:function(t,e,s){t.exports=s.p+"img/PreOrder.9da6e150.png"},ad37:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row justify-center"},[i("div",{staticClass:"col-md-8 col-sm-10 col-xs-11 row"},[i("div",{staticClass:"col-12 text-title text-center",staticStyle:{margin:"40px 0px"}},[t._v("Privileges")]),t._l(t.privileges,(function(e,o){return i("div",{key:o,staticClass:"col-12 row",staticStyle:{margin:"0 0 40px"}},[i("div",{staticClass:"col-12"},[i("q-img",{attrs:{basic:"",contain:"",src:s("53a4")("./assets"+e.img)}})],1),i("div",{staticClass:"col-12 row privileges-card"},[i("div",{staticClass:"col-md-8 col-sm-12 col-xs-12 text-title"},[t._v(t._s(e.name))]),i("div",{staticClass:"col-md-4 col-sm-12 col-xs-12 text-right justify-end items-start flex"},[i("q-btn",{staticClass:"btn-text",attrs:{"no-caps":"",rounded:"",outline:""},on:{click:function(s){return t.ToPage(e.url)}}},[t._v("View detail")])],1)])])}))],2)])},o=[],a={data(){return{privileges:[{img:"/privileges/1.jpg",name:"KTC Credit Cardholders",url:"/privileges/KTC-Credit-Card-Members"},{img:"/privileges/2.jpg",name:"Krungsri Credit Cardholders",url:"/privileges/september-best-deals"},{img:"/privileges/3.jpg",name:"Krungsri Credit Cardholders",url:"/privileges/cocohut"},{img:"/privileges/4.jpg",name:"Kasikorn Cardholders",url:"/privileges/fruits-19-24-sep-2020"}]}},methods:{ToPage(t){this.$router.push(t)}}},r=a,n=(s("f28f"),s("2877")),l=Object(n["a"])(r,i,o,!1,null,"bbeded06",null);e["default"]=l.exports},ae2f:function(t,e,s){t.exports=s.p+"img/grocery.71f0e24d.svg"},b062:function(t,e,s){t.exports=s.p+"img/iceland.b5bb1334.svg"},b4bb:function(t,e,s){t.exports=s.p+"img/3.ed53f77d.jpg"},b7dc:function(t,e,s){t.exports=s.p+"img/facebook.0ff762a6.svg"},b94a:function(t,e,s){t.exports=s.p+"img/best-seller.a012f781.webp"},ba76:function(t,e,s){t.exports=s.p+"img/banner-2.9f6951d1.jpg"},bb5b:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("q-card",[s("q-card-section",{staticClass:"row justify-center items-center"},[s("q-icon",{attrs:{size:"80px",name:"info",color:"primary","text-color":"white"}}),s("span",{staticClass:"col-12 text-center message",staticStyle:{"white-space":"pre-wrap"}},[t._v(t._s(t.message))]),t.submessage?s("br"):t._e(),t.submessage?s("span",{staticClass:"col-12 text-center message text-grey-7",staticStyle:{"white-space":"pre-wrap"}},[t._v(t._s(t.submessage))]):t._e()],1),s("div",{staticClass:"flex justify-center"},[t._t("default")],2),s("q-card-actions",{attrs:{align:"right"}},[t.leftBtn?s("q-btn",{attrs:{"no-caps":"",flat:"",label:t.leftBtn,color:"primary"},on:{click:t.ActionLeftBtn}}):t._e(),t.midBtn?s("q-btn",{attrs:{"no-caps":"",flat:"",label:t.midBtn,color:"primary"},on:{click:t.ActionMidBtn}}):t._e(),t.rightBtn?s("q-btn",{attrs:{"no-caps":"",flat:"",label:t.rightBtn,color:"red"},on:{click:t.ActionRightBtn}}):t._e()],1)],1)],1)},o=[],a=s("f09f"),r=s("0016"),n=s("4b7e"),l=s("a370");const c={QCard:a["a"],QIcon:r["a"],QCardActions:n["a"],QCardSection:l["a"]};var d={props:["message","submessage","left-btn","right-btn","mid-btn"],components:{...c},data(){return{}},methods:{ActionLeftBtn(){this.$emit("leftClick")},ActionMidBtn(){this.$emit("midClick")},ActionRightBtn(){this.$emit("rightClick")}}},p=d,h=(s("d59d"),s("2877")),u=Object(h["a"])(p,i,o,!1,null,"13ceec86",null);e["default"]=u.exports},bbcd:function(t,e,s){t.exports=s.p+"img/seasonal.024c69bf.webp"},bd9f:function(t,e,s){t.exports=s.p+"img/grab-go.dad2fae5.svg"},c0cb:function(t,e,s){t.exports=s.p+"img/beer.1df0c5f2.webp"},c3a1:function(t,e,s){t.exports=s.p+"img/best-seller.bc4aaee3.svg"},c466:function(t,e,s){t.exports=s.p+"img/app-store-logo.311bb44d.png"},c7ef:function(t,e,s){t.exports=s.p+"img/alipay_logo.858009da.jpg"},c926:function(t,e,s){"use strict";s("4d37")},cab1:function(t,e,s){},cb0b:function(t,e,s){t.exports=s.p+"img/special-offer.f5e6c167.png"},cd8b:function(t,e,s){t.exports=s.p+"img/banner-right-1-2.de701110.jpg"},cf05:function(t,e,s){t.exports=s.p+"img/logo.8c4120b4.png"},cfc6:function(t,e,s){t.exports=s.p+"img/drinks.8a83339d.png"},d4ad:function(t,e,s){t.exports=s.p+"img/butcher.0e7f2464.svg"},d59d:function(t,e,s){"use strict";s("cab1")},d65d:function(t,e,s){t.exports=s.p+"img/baby.25499a4f.webp"},d724:function(t,e,s){t.exports=s.p+"img/car.978b9f2c.svg"},d772:function(t,e,s){!function(e,s){t.exports=s()}(0,(function(){"use strict";var t,e,s=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,i={years:31536e6,months:2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},o=function(t){return t instanceof n},a=function(t,e,s){return new n(t,s,e.$l)},r=function(t){return e.p(t)+"s"},n=function(){function e(t,e,o){var n=this;if(this.$d={},this.$l=o,e)return a(t*i[r(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){n.$d[r(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var l=t.match(s);if(l)return this.$d.years=l[2],this.$d.months=l[3],this.$d.weeks=l[4],this.$d.days=l[5],this.$d.hours=l[6],this.$d.minutes=l[7],this.$d.seconds=l[8],this.calMilliseconds(),this}return this}var n=e.prototype;return n.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,s){return e+(t.$d[s]||0)*i[s]}),0)},n.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=Math.floor(t/31536e6),t%=31536e6,this.$d.months=Math.floor(t/2592e6),t%=2592e6,this.$d.days=Math.floor(t/864e5),t%=864e5,this.$d.hours=Math.floor(t/36e5),t%=36e5,this.$d.minutes=Math.floor(t/6e4),t%=6e4,this.$d.seconds=Math.floor(t/1e3),t%=1e3,this.$d.milliseconds=t},n.toISOString=function(){var t=this.$d.years?this.$d.years+"Y":"",e=this.$d.months?this.$d.months+"M":"",s=+this.$d.days||0;this.$d.weeks&&(s+=7*this.$d.weeks);var i=s?s+"D":"",o=this.$d.hours?this.$d.hours+"H":"",a=this.$d.minutes?this.$d.minutes+"M":"",r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3);var n=r?r+"S":"",l="P"+t+e+i+(o||a||n?"T":"")+o+a+n;return"P"===l?"P0D":l},n.toJSON=function(){return this.toISOString()},n.as=function(t){return this.$ms/i[r(t)]},n.get=function(t){var e=this.$ms,s=r(t);return"milliseconds"===s?e%=1e3:e="weeks"===s?Math.floor(e/i[s]):this.$d[s],e},n.add=function(t,e,s){var n;return n=e?t*i[r(e)]:o(t)?t.$ms:a(t,this).$ms,a(this.$ms+n*(s?-1:1),this)},n.subtract=function(t,e){return this.add(t,e,!0)},n.locale=function(t){var e=this.clone();return e.$l=t,e},n.clone=function(){return a(this.$ms,this)},n.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},n.milliseconds=function(){return this.get("milliseconds")},n.asMilliseconds=function(){return this.as("milliseconds")},n.seconds=function(){return this.get("seconds")},n.asSeconds=function(){return this.as("seconds")},n.minutes=function(){return this.get("minutes")},n.asMinutes=function(){return this.as("minutes")},n.hours=function(){return this.get("hours")},n.asHours=function(){return this.as("hours")},n.days=function(){return this.get("days")},n.asDays=function(){return this.as("days")},n.weeks=function(){return this.get("weeks")},n.asWeeks=function(){return this.as("weeks")},n.months=function(){return this.get("months")},n.asMonths=function(){return this.as("months")},n.years=function(){return this.get("years")},n.asYears=function(){return this.as("years")},e}();return function(s,i,r){t=r,e=r().$utils(),r.duration=function(t,e){var s=r.locale();return a(t,{$l:s},e)},r.isDuration=o;var n=i.prototype.add,l=i.prototype.subtract;i.prototype.add=function(t,e){return o(t)&&(t=t.asMilliseconds()),n.bind(this)(t,e)},i.prototype.subtract=function(t,e){return o(t)&&(t=t.asMilliseconds()),l.bind(this)(t,e)}}}))},db40:function(t,e,s){t.exports=s.p+"img/grab_and_go.84e559d4.svg"},dbb6:function(t,e,s){},dc79:function(t,e,s){t.exports=s.p+"img/best-seller.631b5786.png"},dd10:function(t,e,s){t.exports=s.p+"img/4.ab48d19e.jpg"},e525:function(t,e,s){t.exports=s.p+"img/banner-left-1.fe9105fd.jpg"},e534:function(t,e,s){t.exports=s.p+"img/delicatessen.358e2519.png"},e63e:function(t,e,s){t.exports=s.p+"img/banner-right-1-1.69f49033.jpg"},e78d:function(t,e,s){t.exports=s.p+"img/0241665-1.109857ec.jpg"},e90e:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row justify-center",staticStyle:{"padding-bottom":"120px"}},[t.$q.screen.lt.sm?s("TitleBar",{attrs:{"center-slot":"Profile"}}):t._e(),t.$q.screen.gt.xs?s("TileBar",{attrs:{optionButton:"Back"},on:{"on-button":function(e){return t.$router.go(-1)}}}):t._e(),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"Your Personal Info",optionButton:t.canEditProfile?"Save":"Edit"},on:{"on-button":function(e){t.canEditProfile?t.onSaveProfile():t.onEditProfile()}}}),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[s("div",{staticClass:"full-width row"},[s("div",{staticClass:"col-3 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" First name ")]),t.canEditProfile?s("q-input",{staticClass:"col-xs-9 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter first name","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter first name"}],autogrow:""},model:{value:t.firstName,callback:function(e){t.firstName=e},expression:"firstName"}}):s("div",{staticClass:"col-xs-9 col-sm-4 q-mt-sm",staticStyle:{"font-weight":"bold"}},[t._v(" "+t._s(t.firstName)+" ")])],1),s("div",{staticClass:"full-width row"},[s("div",{staticClass:"col-3 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Last name ")]),t.canEditProfile?s("q-input",{staticClass:"col-xs-9 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter last name","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter last name"}],autogrow:""},model:{value:t.lastName,callback:function(e){t.lastName=e},expression:"lastName"}}):s("div",{staticClass:"col-xs-9 col-sm-4 q-mt-sm",staticStyle:{"font-weight":"bold"}},[t._v(" "+t._s(0===t.lastName.length?"-":t.lastName)+" ")])],1),s("q-inner-loading",{attrs:{showing:t.userInfoLoading}},[s("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"Email Address",optionText:t.email_verified?"Verified":void 0,optionButton:t.email_verified?void 0:"Verify",optionTextClass:"text-green-5"},on:{"on-button":t.onVerifyEmail}}),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[s("div",[t._v(" "+t._s(t.email||"No email")+" ")])]),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"Phone Number",optionTextClass:"text-green-5",optionText:t.phone_number_verified&&""!==t.phone_number?"Verified":void 0}},[!t.phone_number_verified||""===t.phone_number||void 0?s("q-btn",{staticClass:"q-ma-sm",staticStyle:{"font-weight":"bold"},attrs:{"no-caps":"","no-wrap":"",size:"11.5px",color:"primary"},on:{click:t.onVerifyPhoneNumber}},[t._v(" "+t._s("Verify to connect Vplus")+" ")]):t._e()],1),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[s("div",[t._v(" "+t._s(t.phone_number||"No phone number")+" ")])]),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"Shipping Address",optionButton:"Add"},on:{"on-button":t.onAddAddress}}),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[t.formatedShippingAddressList.length<=0?s("div",[t._v(" You have no saved shipping address. ")]):t._e(),s("q-list",{staticClass:"col-12",attrs:{dense:""}},t._l(t.formatedShippingAddressList,(function(e,i){return s("q-item",{key:i,attrs:{tag:"label"}},[s("q-item-section",{attrs:{avatar:""}},[s("q-radio",{attrs:{val:i,color:"primary"},model:{value:t.selectedAddressIndex,callback:function(e){t.selectedAddressIndex=e},expression:"selectedAddressIndex"}})],1),s("q-item-section",[s("q-item-label",[t._v(t._s(e.name))]),s("q-item-label",{attrs:{caption:"",lines:"2"}},[t._v(t._s(e.formatedAddress))])],1),s("q-item-section",{attrs:{avatar:""}},[s("q-btn",{attrs:{flat:"",icon:"fas fa-times"},on:{click:function(e){return t.onRemoveAddress(i)}}})],1)],1)})),1),s("q-inner-loading",{attrs:{showing:t.addressLoading}},[s("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"Vplus Member"}}),s("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[s("div",{staticClass:"full-width row"},[s("div",{staticClass:"col-5 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Vplus Member ID ")]),t.canEditWallet?s("q-input",{staticClass:"col-xs-7 col-sm-6 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:"Enter Vplus Member ID","lazy-rules":"",rules:[function(t){return t&&t.length>0||"Please enter Vplus Member ID"}],autogrow:""},model:{value:t.vplusMemberID,callback:function(e){t.vplusMemberID=e},expression:"vplusMemberID"}}):s("div",{staticClass:"col-xs-7 col-sm-6 q-mt-sm",staticStyle:{"font-weight":"bold"}},[t._v(" "+t._s(t.vplusMemberID)+" ")])],1),s("div",{staticClass:"full-width row"},[s("div",{staticClass:"col-5 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[t._v(" Vplus Points ")]),s("div",{staticClass:"col-xs-7 col-sm-6 q-mt-sm",staticStyle:{"font-weight":"bold"}},[t._v(" "+t._s(t.vplusPoints)+" ")])]),s("q-inner-loading",{attrs:{showing:t.userInfoLoading||t.vplusLoading}},[s("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"Orders History",optionButton:"View"},on:{"on-button":t.onViewOrdersHistory}}),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"History Items",optionButton:"View"},on:{"on-button":t.onViewHistoryItems}}),s("TileBar",{staticClass:"q-mt-sm",attrs:{title:"Favorite Items",optionButton:"View"},on:{"on-button":t.onViewFavoriteItems}}),s("div",{staticClass:"sticky-bottom col-12 col-sm-10 col-md-9 bg-white"},[s("div",{staticClass:"col-12 row"},[s("q-btn",{staticClass:"col-6 col-xs-12 q-mt-sm text-white",attrs:{"no-caps":"","no-wrap":"",color:"primary","text-color":"white",label:"Change Password"},on:{click:t.onChangePassword}}),s("q-btn",{staticClass:"col-6 col-xs-12 q-mt-sm text-white",attrs:{"no-caps":"","no-wrap":"",color:"primary","text-color":"white",label:"Sign Out"},on:{click:t.onSignOut}})],1)]),s("q-dialog",{attrs:{persistent:""},model:{value:t.dialogChangePassword,callback:function(e){t.dialogChangePassword=e},expression:"dialogChangePassword"}},[s("q-card",[s("q-bar",{staticClass:"bg-primary"},[s("q-space"),s("q-btn",{staticClass:"text-white",attrs:{dense:"",flat:"",icon:"close"},on:{click:t.onCloseDialogChangePassword}})],1),s("q-card-section",[s("div",{staticClass:"text-h6 text-primary"},[t._v(" Change password ")])]),s("q-separator"),s("q-card-section",[s("q-form",{ref:"form",staticClass:"scroll",staticStyle:{"max-height":"50vh","min-width":"300px"}},[s("q-input",{staticClass:"q-mb-sm",attrs:{filled:"",autocomplete:"new-password",type:"password",label:"Old password"},model:{value:t.form.oldPassword,callback:function(e){t.$set(t.form,"oldPassword",e)},expression:"form.oldPassword"}}),s("q-input",{attrs:{filled:"",autocomplete:"new-password",type:"password",label:"New password","lazy-rules":"",rules:[t.CheckPassword]},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),s("q-input",{attrs:{filled:"",autocomplete:"new-password",type:"password",label:"Confirm password","lazy-rules":"",rules:[function(t){return t&&t.length>0||"You can't leave this empty."},function(e){return e&&e===t.form.password||"Password and Confirm password does not match"}]},model:{value:t.form.newPassword,callback:function(e){t.$set(t.form,"newPassword",e)},expression:"form.newPassword"}})],1)],1),s("q-separator"),s("q-card-actions",{attrs:{align:"right"}},[s("div",{staticClass:"text-red"},[t._v(t._s(t.changePasswordError))]),s("q-btn",{attrs:{"no-wrap":"","no-caps":"",flat:"",loading:t.changePasswordLoading,label:"Confirm",color:"primary"},on:{click:t.onConfirmChangePassword}})],1)],1)],1),s("q-dialog",{attrs:{persistent:""},model:{value:t.dialogRemoveAddress.show,callback:function(e){t.$set(t.dialogRemoveAddress,"show",e)},expression:"dialogRemoveAddress.show"}},[s("DialogAlert",{attrs:{message:t.dialogRemoveAddress.message,"left-btn":"Remove","right-btn":"Cancel"},on:{leftClick:t.onConfirmRemoveAddress,rightClick:t.onCancelRemoveAddress}})],1),s("q-dialog",{attrs:{persistent:""},model:{value:t.promptEmail.show,callback:function(e){t.$set(t.promptEmail,"show",e)},expression:"promptEmail.show"}},[s("q-card",{staticStyle:{"min-width":"350px"}},[s("q-card-section",[s("div",{staticClass:"text-h6"},[t._v("Verify your email")])]),t.promptEmail.verify?s("q-card-section",{staticClass:"q-pt-none"},[s("OtpInput",{ref:"otpInput",staticClass:"justify-center",attrs:{autocomplete:"one-time-code","input-classes":"otp-input",separator:" ","num-inputs":6,"should-auto-focus":!0,"is-input-num":!0},on:{"on-change":t.promptEmailOTPOnChange,"on-complete":t.promptEmailOTPOnComplete}}),s("div",{staticClass:"text-term",staticStyle:{display:"block"}},[t._v(" Did not receive the code? "),s("span",{staticClass:"set-txt-click",on:{click:t.promptEmailOnResentOTP}},[t._v("Resend")]),t._v(". ")])],1):s("q-card-section",{staticClass:"q-pt-none"},[s("q-input",{ref:"email",attrs:{filled:"",dense:"",label:"Email *","lazy-rules":"",rules:[t.CheckEmail]},model:{value:t.promptEmail.email,callback:function(e){t.$set(t.promptEmail,"email",e)},expression:"promptEmail.email"}})],1),s("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[s("q-btn",{attrs:{flat:"",label:"Cancel"},on:{click:t.onCancelPromptEmail}}),t.promptEmail.verify?s("q-btn",{attrs:{flat:"",loading:t.promptEmail.confirmLoading,label:"Confirm"},on:{click:t.onConfirmPromptEmail}}):s("q-btn",{attrs:{flat:"",loading:t.promptEmail.verifyLoading,label:"Verify"},on:{click:t.onVerifyPromptEmail}})],1)],1)],1),s("q-dialog",{attrs:{persistent:""},model:{value:t.promptPhone.show,callback:function(e){t.$set(t.promptPhone,"show",e)},expression:"promptPhone.show"}},[s("q-card",{staticStyle:{"min-width":"350px"}},[s("q-card-section",[s("div",{staticClass:"text-h6"},[t._v("Verify your phone number")])]),t.promptPhone.verify?s("q-card-section",{staticClass:"q-pt-none"},[s("OtpInput",{ref:"otpInput",staticClass:"justify-center",attrs:{autocomplete:"one-time-code","input-classes":"otp-input",separator:" ","num-inputs":6,"should-auto-focus":!0,"is-input-num":!0},on:{"on-change":t.promptPhoneOTPOnChange,"on-complete":t.promptPhoneOTPOnComplete}}),s("div",{staticClass:"text-term",staticStyle:{display:"block"}},[t._v(" Did not receive the code? "),s("span",{staticClass:"set-txt-click",on:{click:t.promptPhoneOnResentOTP}},[t._v("Resend")]),t._v(". ")])],1):s("q-card-section",{staticClass:"q-pt-none"},[s("VuePhoneNumberInput",{ref:"promptPhone",staticStyle:{"margin-bottom":"20px"},attrs:{"default-country-code":"TH","preferred-countries":["TH","US","GB"],error:t.promptPhone.phoneDummyError},on:{update:t.onUpdatePromptPhone},model:{value:t.promptPhone.phoneDummy,callback:function(e){t.$set(t.promptPhone,"phoneDummy",e)},expression:"promptPhone.phoneDummy"}}),s("div",[t._v(" "+t._s(t.promptPhone.message)+" ")])],1),s("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[s("q-btn",{attrs:{flat:"",label:"Cancel"},on:{click:t.onCancelPromptPhone}}),t.promptPhone.verify?s("q-btn",{attrs:{flat:"",loading:t.promptPhone.confirmLoading,label:"Confirm"},on:{click:t.onConfirmPromptPhone}}):s("q-btn",{attrs:{flat:"",loading:t.promptPhone.verifyLoading,label:"Verify"},on:{click:t.onVerifyPromptPhone}})],1)],1)],1)],1)},o=[],a=(s("5319"),s("ddb0"),s("202c")),r=s("2f62"),n=s("2ba5"),l=s("72d4"),c=s("90df"),d=s("7bec"),p=s.n(d),h=(s("4413"),s("cc46")),u=s.n(h),g=s("27f9"),m=s("74f7"),A=s("0d59"),f=s("429b"),b=s("7460"),v=s("1c1c"),y=s("66e5"),w=s("4074"),C=s("0170"),x=s("3786"),S=s("cb32"),k=s("24e8"),P=s("eb85"),q=s("2c91"),T=s("0378"),I=s("f09f"),E=s("a370"),D=s("4b7e"),L=s("d847"),B=s("05c0");const _={QInput:g["a"],QInnerLoading:m["a"],QSpinner:A["a"],QTabs:f["a"],QTab:b["a"],QList:v["a"],QItem:y["a"],QItemSection:w["a"],QItemLabel:C["a"],QRadio:x["a"],QAvatar:S["a"],QDialog:k["a"],QSeparator:P["a"],QSpace:q["a"],QForm:T["a"],QCard:I["a"],QCardSection:E["a"],QCardActions:D["a"],QBar:L["a"],QTooltip:B["a"]};var O={name:"ProfileV2",components:{..._,VuePhoneNumberInput:p.a,OtpInput:u.a,TitleBar:()=>s.e("signin~31ecd969").then(s.bind(null,"1e1d")),TileBar:()=>s.e("chunk-5af30cec").then(s.bind(null,"7112")),DialogAlert:()=>Promise.resolve().then(s.bind(null,"bb5b"))},mixins:[n["a"],l["a"]],data(){return{firstName:"",lastName:"-",email:"",email_verified:!1,phone_number:"",phone_number_verified:!1,canEditProfile:!1,canEditWallet:!1,userInfoLoading:!0,vplusLoading:!1,addressLoading:!0,selectedAddressIndex:-1,dialogChangePassword:!1,dialogRemoveAddress:{show:!1,message:"",index:null},form:{oldPassword:null,password:null,confirmPassword:null},changePasswordLoading:!1,changePasswordError:void 0,promptEmail:{show:!1,email:void 0,verify:!1,verifyLoading:!1,verificationCode:void 0,confirm:!1,confirmLoading:!1},promptPhone:{show:!1,phone:void 0,phoneDummy:void 0,phoneDummyError:!1,verify:!1,verifyLoading:!1,verificationCode:void 0,confirm:!1,confirmLoading:!1}}},computed:{...Object(r["b"])("user",["shippingAddressList"]),...Object(r["b"])("member",["vplusMemberID","vplusPoints"]),formatedShippingAddressList(){return this.shippingAddressList?this.shippingAddressList.map(t=>({...t,formatedAddress:`${t.address} ${t.subDistrict} ${t.district} ${t.province} ${t.postcode}`})):[]}},watch:{selectedAddressIndex:{immediate:!1,handler:function(t){this.$store.dispatch("user/UpdateDefaultShippingAddress",t)}}},mounted(){this.addressLoading=!0,this.userInfoLoading=!0,this.loadUserData(),this.loadMember()},methods:{loadUserData(){this.loadUser().then(()=>{this.selectedAddressIndex=this.$store.getters["user/defaultShippingAddressId"]||-1;const t=this.$store.getters["user/user"];t.firstName?this.firstName=t.firstName:t.name&&(this.firstName=t.name.split(" ")[0]),t.lastName?this.lastName=t.lastName:t.name&&(this.lastName=t.name.split(" ")[1]||"-"),t.email&&(this.email=t.email),t.email_verified&&(this.email_verified=t.email_verified),t.phone_number&&(this.phone_number=t.phone_number),t.phone_number_verified&&(this.phone_number_verified=t.phone_number_verified)}).finally(()=>{this.userInfoLoading=!1,this.addressLoading=!1})},CheckEmail(t){return Object(c["a"])(t)},onEditProfile(){this.canEditProfile=!this.canEditProfile},async onSaveProfile(){this.userInfoLoading=!0,await this.$store.dispatch("user/UpdateUserInfo",{firstName:this.firstName,lastName:this.lastName}),this.userInfoLoading=!1,this.canEditProfile=!this.canEditProfile},onAddAddress(){this.$router.push("/profile/shipping/add")},onEditWallet(){this.canEditWallet=!this.canEditWallet},onVerifyEmail(){this.promptEmail.show=!this.promptEmail.show,this.promptEmail.email=this.email},onUpdatePromptEmail(t){this.promptEmail.email=t},onCancelPromptEmail(){this.promptEmail.show=!this.promptEmail.show,this.promptEmail.email=void 0,this.promptEmail.confirm=!1,this.promptEmail.verify=!1,this.promptEmail.message=void 0},async promptEmailOnResentOTP(){await this.$store.dispatch("authentication/VerifyEmail")},async onVerifyPromptEmail(){try{this.promptEmail.verifyLoading=!0;const t=this.$refs["email"].validate();if(t){let t;t=await this.$store.dispatch("authentication/UpdateEmail",this.promptEmail.email),this.promptEmail.verify=!0}}catch(t){this.promptEmail.message=t.message}finally{this.promptEmail.verifyLoading=!1}},promptEmailOTPOnChange(){},promptEmailOTPOnComplete(t){this.promptEmail.verificationCode=t},async onConfirmPromptEmail(){try{this.promptEmail.confirmLoading=!0;await this.$store.dispatch("authentication/VerifyEmailSubmit",this.promptEmail.verificationCode);const t=await this.$store.dispatch("authentication/GetAttributes");t&&t.attributes&&t.attributes.email_verified&&await this.$store.dispatch("user/UpdateUserInfo",{email:t.attributes.email,email_verified:t.attributes.email_verified}),await this.loadUserData(),this.promptEmail.show=!this.promptEmail.show,this.promptEmail.verify=!1,this.promptEmail.message=void 0}catch(t){}finally{this.promptEmail.confirmLoading=!1}},onVerifyPhoneNumber(){this.promptPhone.show=!this.promptPhone.show,this.promptPhone.phoneDummy=this.phone_number},onUpdatePromptPhone(t){this.promptPhone.phone=t.formattedNumber,t.isValid&&(this.promptPhone.phoneDummyError=!1)},onCancelPromptPhone(){this.promptPhone.show=!this.promptPhone.show,this.promptPhone.confirm=!1,this.promptPhone.phoneDummyError=!1,this.promptPhone.phoneDummy=void 0,this.promptPhone.verify=!1,this.promptPhone.message=void 0},async promptPhoneOnResentOTP(){await this.$store.dispatch("authentication/VerifyPhoneNumber")},async onVerifyPromptPhone(){try{if(this.promptPhone.verifyLoading=!0,!this.promptPhone.phoneDummyError){let t;t=await this.$store.dispatch("authentication/UpdatePhoneNumber",this.promptPhone.phone),this.promptPhone.verify=!0}}catch(t){this.promptPhone.message=t.message}finally{this.promptPhone.verifyLoading=!1}},promptPhoneOTPOnChange(){},promptPhoneOTPOnComplete(t){this.promptPhone.verificationCode=t},async onConfirmPromptPhone(){try{this.promptPhone.confirmLoading=!0;await this.$store.dispatch("authentication/VerifyPhoneNumberSubmit",this.promptPhone.verificationCode);const t=await this.$store.dispatch("authentication/GetAttributes");t&&t.attributes&&t.attributes.phone_number_verified&&await this.$store.dispatch("user/UpdateUserInfo",{phone_number:t.attributes.phone_number,phone_number_verified:t.attributes.phone_number_verified}),await this.loadUserData(),this.promptPhone.show=!this.promptPhone.show,this.promptPhone.verify=!1,this.promptPhone.message=void 0}catch(t){}finally{this.promptPhone.confirmLoading=!1}},async onSaveWallet(){this.userInfoLoading=!0,this.$store.dispatch("user/UpdateUserInfo",{vplusMobileNumber:this.vplusMobileNumber,vplusMemberID:this.vplusMemberID}),this.userInfoLoading=!1,this.canEditWallet=!this.canEditWallet},onChangePassword(){this.dialogChangePassword=!0},async onConfirmChangePassword(){if(await this.$refs["form"].validate())try{this.changePasswordLoading=!0,await this.$store.dispatch("authentication/ChangePassword",{oldPassword:this.form.oldPassword,newPassword:this.form.password}),this.dialogChangePassword=!1}catch(t){this.changePasswordError=t.message}finally{this.changePasswordLoading=!1}},async onSignOut(){try{await this.$store.dispatch("auth/Invalidate")}catch(t){}await Promise.all([this.$store.dispatch("authentication/SignOut"),this.$store.commit("user/RESET"),this.$store.commit("cache/clear")]),window.location.replace(window.location.origin)},onRemoveAddress(t){this.dialogRemoveAddress={show:!0,message:"Do you want to remove shipping address ?",index:t}},onConfirmRemoveAddress(){try{const t=this.dialogRemoveAddress.index,e=this.shippingAddressList[t];this.addressLoading=!0;let s=this.shippingAddressList.filter(t=>t.id!=e.id);void 0===s&&(s=[]),this.$store.dispatch("user/AddAddress",s)}catch(t){}finally{this.addressLoading=!1,this.dialogRemoveAddress={show:!1,message:"",index:null}}},onCancelRemoveAddress(){this.dialogRemoveAddress={show:!1,message:"",index:null}},onCloseDialogChangePassword(){this.dialogChangePassword=!1},CheckPassword(t){return Object(a["a"])(t)},onViewOrdersHistory(){this.$router.push("/order")},onViewHistoryItems(){this.$router.push("/profile/historyitems")},onViewFavoriteItems(){this.$router.push("/profile/favorites")}}},N=O,j=(s("2c23"),s("eaae"),s("2877")),V=Object(j["a"])(N,i,o,!1,null,"3bc77ad9",null);e["default"]=V.exports},e949:function(t,e,s){t.exports=s.p+"img/3.73e0dd00.jpg"},e974:function(t,e,s){var i={"./alipay_logo.jpg":"c7ef","./amex.svg":"8561","./jcb.svg":"7fd1","./master-card.svg":"17f9","./scb-logo.svg":"f3be","./thai_qr.png":"4c5e","./union.svg":"61c7","./visa.svg":"2af7","./wallet-logo.svg":"5fc5","./wechat-pay.svg":"fdfa"};function o(t){var e=a(t);return s(e)}function a(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="e974"},ea3a:function(t,e,s){t.exports=s.p+"img/fruits.b7fa16e4.png"},eaae:function(t,e,s){"use strict";s("dbb6")},ed20:function(t,e,s){t.exports=s.p+"img/Best.bd2c14df.png"},ed73:function(t,e,s){t.exports=s.p+"img/woolworths-01.3bbe62e1.svg"},ef04:function(t,e,s){t.exports=s.p+"img/seafood.5efc9893.webp"},f1af:function(t,e,s){t.exports=s.p+"img/body-bg-d.d80ec4f2.jpg"},f28f:function(t,e,s){"use strict";s("2658")},f2e8:function(t,e,s){t.exports=s.p+"img/pre-order.b9920c6b.webp"},f3be:function(t,e,s){t.exports=s.p+"img/scb-logo.19132ad4.svg"},f3cc:function(t,e,s){t.exports=s.p+"img/pet.e36f813a.webp"},f5e8:function(t,e,s){t.exports=s.p+"img/frozen-food.f85946ca.svg"},f93c:function(t,e,s){t.exports=s.p+"img/drinks.7100b177.webp"},f9a1:function(t,e,s){t.exports=s.p+"img/health.763aaec1.svg"},fb96:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAABhCAMAAAAzxLlQAAAA4VBMVEVHcEx+hYCGnKEAAAAuO1BxcXpNUVcAAAAaGRkbIyv///81MzQUEhSMjI0kJCU8uMJoaWpdXV6YmZnExsZ1dnhP49mhoqPv7/C1trXU1dVMS0uqq6zj5ORUU1NDQ0Pc3Nz6+vrMzM2BgYG8vb/m6e2v4LX19fX3rXXMPVOL0K/7//9GlcMImI/qLUMleLgfm9XYQ6XCJY0Hj3b0oWKHKj7kWV/71rX4u4mDaSb6yJrE5dJoloTWqIHkbHDyxGlqJ1yBq81DUX9/hbyYUVOriBr1l1HDHDLdQ0UAVKUpSWgLTZGOHs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pyugi1eyxKeAHGCZyS1Mnyx8lZYOsEYDbkzcbjUlau4lPQQzaphuaqeknnR3kXlw/s9ktH5gGVuWpcUtaNc52Qf9kDIpyRVuxnAmyugHkumZs8eNVORaWevEe9VkDyOjmDvy5jwVbC4/6h9GJuUaw/y0s74F2tWqipJeQbtVutMcWWLG+oZJ6y0gDVYeQjsVfqWl48qk9p4yCc30Hud9NbcjJwoAa4aOQopIzbMWkYyRDEgHTvStjEBlSCURFNy9ZCxZwfFM7qnjZstgymgTuGFuAsnZQZEMNjpnOfssa2HIonV5dMg5khuNhJtKBVLdR8YzB/RAt4ynEG+uQ2DMi8q52bUkz+o4SEkzN6/lduL8b8jaTqIiJGFM7iOTUOoZi/nbzdycmcjYZeUrRGzNCR9lwrzWNebSopmdS7oljPoeMmTmnS9inpQMJfRMELhd0nPRWZk5diUzCWAM3dKtiX7YckwmSlLdXcZzh7skM04yhpsrMjPVwGQnk7DeTbsUTQyqPuPMvWQKNkY443ovMvm+jHTY7NK0XiLTke1OZmBqVeTu/+1ETrOMsY3jppjvLyBI5q7MmZ39TiaQGrtylpHixk1vWxYTyTqLZTGkF3t8tUuXF5mNnleTkiGy3VoRqg4T7cAgMuWl1TSwnC1m9fYGGWwY8apcKpipYy52C0hxYpUmZIDIcJ2ucrJbYrgOpiBzHW1rY5FNhU9zUu1kpGSWOpN0N/0SJ80ZcecKa8yMJCwZYss6Br/PLrdNGBmtxGQ731Cg0LTzqoSgl3b+epmGQm9hGKkWGecVZqx3IqOQBlMhyjToTLh4zFSpMenS0aYmjVarYOZh/fk3dVM7pw6kqRsYWYoM++w2jB2B24c6ErFeSFdOig63ksn1Bzos2t9SMp59KJmHjwzuirU4R1v7v3um9wQ4oiPyx8dzJi2x+eB/yHjyyUcO8S9ue1zeiVb6VAAAAABJRU5ErkJggg=="},fdfa:function(t,e,s){t.exports=s.p+"img/wechat-pay.15f27d36.svg"},ff7b:function(t,e,s){"use strict";var i=s("6642");e["a"]=Object(i["b"])({xs:30,sm:35,md:40,lg:50,xl:60})},ffc3:function(t,e,s){"use strict";s("0736")},ffd4:function(t,e,s){t.exports=s.p+"img/fruits.9c3fa34e.svg"}}]);