{"version":3,"sources":["webpack:///./src/assets/img/creditcardlogo.png","webpack:///./src/views/Transfer/PurelifeTransfer.vue?40df","webpack:///./src/views/Transfer/PurelifePostcode.js","webpack:///src/views/Transfer/PurelifeTransfer.vue","webpack:///./src/views/Transfer/PurelifeTransfer.vue?61bd","webpack:///./src/views/Transfer/PurelifeTransfer.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","userid","staticStyle","attrs","slot","_v","_s","$t","theme","color","on","$event","goToShop","model","value","callback","$$v","pageProfile","expression","preventDefault","handleSubmit","style","class","errors","has","directives","name","rawName","first","customerName","chooseShippingType","required","placesinfolabel","lastordercoords","branchlocation","gmapLocation","gmapvalue","_e","regex","isBearhousezipcode","cart","length","isBearhouse","shippingAddress","pickuplocation","customerPhone","pageid","shippinglist","isOoca","bearhouseshippingprice","khaiwhanshippingprice","additionalproduct_charge","totalincludediscount","shippingType","total","totalPrice","customshippingprice","discount","voucher","ableToBuy","fbpay_status","gbprime_status","banktransferinfo_photo","banktransferinfo","type","paymentSlipImage","ref","pickupdate","scopedSlots","_u","key","fn","_g","showDatePicker","mindate","maxdate","allowedDates","$refs","dialog","save","pickuptimelist","pickuptime","pickuptimelist2","pickuptimelist3","remark","paymentList","includes","transferType","setShippingDefault","openModal","loading","isEmptyShoppingCart","pageLoading","creditcard","$set","onChangeExpireDate","domProps","target","composing","orderid","amount","facebookname","isCartOutOfStock","gbcreditSubmit","loadingQrcode","qrHandleSubmit","close","showQrCode","closeQrCode","qrimage","gbpath","gbpublickey","gbcharge","gbpReferenceNo","staticRenderFns","shippingprice","zipcode","en","custom","th","la","mixins","MainTransfer","data","timestamp","app","khaiwhandistance","paiddate","paidtime","products","ems_charge","normal_charge","kerry_charge","undefined","khaiwhanselectedbank","bankname","banknum","bankowner","isCompleted","showAlert","showProduct","intervalQrCode","timer","isRequest","referenceNo","config","placesinfo","sessiontoken","mainBankTransferInfoPhoto","showTerm","showmap","ableToShipping","mounted","components","SyncLoader","Loading","Modal","Cover","MerchantDetail","nl2br","UploadFile","TermAndCondition","CartItem","BankNumber","ShippingType","CartSummary","GmapAddress","computed","pagename","$route","query","isGaiGao","methods","betweenSongkran","isHoliday","getbranchlocation","vm","Promise","calCustomShippingPrice","ceiling_distance_km","decimal","parseFloat","distance_km","toFixed","Math","floor","console","error","price","totalprice","boxset","drinkset","map","categoryid","parseInt","quantity","nearestlocation","locations","stringlatlng","service","google","maps","DistanceMatrixService","origins","response","status","bodyjson","i","rows","row","elements","distance","push","pictureurl","sort","x","a","y","b","destinationAddresses","inBKK","postcode","match","getDistanceMatrix","requestQrCode","FormData","append","xhr","XMLHttpRequest","addEventListener","readyState","arrayBuffer","resolve","Uint8Array","reject","open","responseType","send","formatOrderRequest","payment","note","combine_address","replace","inBangkok","shippingAddress2","province","toString","address","phone","nameaddress","shippingtype","shippingcharge","extraOrderRequest","gmapregex","test","requestQrCode2","photo","getUserDetail","window","location","hash","onpopstate","history","back","getTransferDetail","$validator","validate","then","result","goToErrorInput","cart_ids","url","from","device","$liff","getOS","version","getVersion","ready","log","$router","getProducts","ketshop_api_key","ketshop_api_secret","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,mC,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,QAAQ,CAAGJ,EAAIO,OAAoNP,EAAe,YAAEI,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACA,EAAG,MAAM,CAACI,YAAY,CAAC,aAAa,SAAS,aAAa,SAASC,MAAM,CAAC,KAAO,QAAQC,KAAK,QAAQ,CAACN,EAAG,MAAM,CAACI,YAAY,CAAC,MAAQ,QAAQ,iBAAiB,QAAQC,MAAM,CAAC,IAAM,EAAQ,QAA+C,IAAM,mBAAmBL,EAAG,IAAI,CAACI,YAAY,CAAC,iBAAiB,SAAS,CAACR,EA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,EAAV,cAEA,kBACU,EAAV,WACU,EAAV,OACY,MAAZ,cACY,KAAZ,mDACY,KAAZ,QACY,kBAAZ,gBACY,iBAAZ,eACY,gBAAZ,WA+FI/K,SAAU,WACR,IAAN,OACA,2BACUoK,EAAG/K,QAAuB,MAAb+K,EAAG/K,QAA+B,IAAb+K,EAAG/K,SACvC8Q,GAAO,WAAa/F,EAAG/K,OAE/B,gBACA,sBACA,qBAEU8Q,GAAO,iBAAmB/F,EAAG7B,eAGjC6B,EAAGwG,QAAQpE,KAAK,CAAtB,UAEIqE,YAAa,WACX,IAAN,OACM,OAAO,IAAIxG,SAAQ,SAAzB,KACQ,IAAItD,EAAO,CACT7E,OAAQkI,EAAGlI,QAGrB,eACA,6BACA,+BACA,mCAEU6E,EAAK,mBAAqBqD,EAAG/J,YAAYyQ,gBACzC/J,EAAK,sBAAwBqD,EAAG/J,YAAY0Q,oBAE9C,EAAR,EACA,8CACU,OAAV,IAEA,kBAEU,EAAV,OACA,qBACY,EAAZ,YACY,EAAZ,oCASc,GARA,EAAd,gCACA,wBAEc,EAAd,wCACA,gCAEc,EAAd,+BAEA,wCACgB,IAAhB,KACgB,EAAhB,qCAEA,SACA,qCACA,IAEoB,GAApB,GAGkB,IAAlB,IACA,IAEA,wBACoB,EAApB,oBACoB,EAApB,8BAGsB,EADtB,WACA,oBAEA,WACA,qCAKsB,EADtB,WAEA,oCAEA,WACA,sCAKkB,EAAlB,oCAEkB,EAAlB,kCACA,KAGA,IACkB,EAAlB,qCAGgB,EAAhB,+BAEA,IACgB,EAAhB,qBAIY,KAGA,aC5+E6V,I,YCOrWC,EAAY,eACd,EACAnS,EACAyH,GACA,EACA,KACA,KACA,MAIa,aAAA0K,E","file":"js/chunk-5a78372d.3eff1218.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/creditcardlogo.f64daa3c.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"transfer\"},[_c('v-app',[(!_vm.userid)?_c('div',[_c('v-container',[_c('v-alert',{attrs:{\"value\":true,\"color\":\"warning\",\"icon\":\"priority_high\",\"outline\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Not found this page'))+\"\\n \")])],1)],1):(_vm.isCompleted)?_c('div',[_c('cover',[_c('div',{staticStyle:{\"text-align\":\"center\",\"margin-top\":\"-95px\"},attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('img',{staticStyle:{\"width\":\"140px\",\"padding-bottom\":\"10px\"},attrs:{\"src\":require(\"@/assets/img/ecommerce/shopping_cart@4x.png\"),\"alt\":\"shopping cart\"}}),_c('p',{staticStyle:{\"padding-bottom\":\"10px\"}},[_vm._v(_vm._s(_vm.$t('Payment Successfully')))]),_c('v-btn',{attrs:{\"outline\":\"\",\"color\":_vm.theme.color},on:{\"click\":function($event){return _vm.goToShop()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Continue Shopping'))+\"\\n \")])],1)])],1):(_vm.isEmptyShoppingCart)?_c('div',[_c('cover',[_c('div',{staticStyle:{\"text-align\":\"center\",\"margin-top\":\"-95px\"},attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('img',{staticStyle:{\"width\":\"140px\",\"padding-bottom\":\"10px\"},attrs:{\"src\":require(\"@/assets/img/ecommerce/shopping_cart_out@4x.png\"),\"alt\":\"empty shopping cart\"}}),_c('p',{staticStyle:{\"padding-bottom\":\"10px\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('This order has been reset, please try to order again.'))+\"\\n \")]),_c('v-btn',{attrs:{\"outline\":\"\",\"color\":_vm.theme.color},on:{\"click\":function($event){return _vm.goToShop()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Continue Shopping'))+\"\\n \")])],1)])],1):_c('div',[_c('merchant-detail',{model:{value:(_vm.pageProfile),callback:function ($$v) {_vm.pageProfile=$$v},expression:\"pageProfile\"}}),_c('form',{staticClass:\"checkout-form\",attrs:{\"id\":\"checkout-form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.handleSubmit($event)}}},[_c('v-container',{staticClass:\"mt-5\"},[_c('v-layout',{attrs:{\"wrap\":\"\",\"row\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm6\":\"\",\"offset-sm3\":\"\"}},[_c('h3',{staticClass:\"headline\",style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Payment'))+\"\\n \")]),_c('br')]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm6\":\"\",\"offset-sm3\":\"\"}},[_c('div',{staticClass:\"mb-1\",class:{ 'has-error': _vm.errors.has('customerName') }},[_c('v-text-field',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"label\":_vm.$t('Name'),\"data-vv-as\":_vm.$t('Name'),\"outline\":\"\",\"name\":\"customerName\",\"light\":\"\",\"color\":_vm.theme.color,\"error\":_vm.errors.has('customerName') ? true : false,\"error-messages\":_vm.errors.has('customerName')\n ? _vm.errors.first('customerName')\n : ''},model:{value:(_vm.customerName),callback:function ($$v) {_vm.customerName=$$v},expression:\"customerName\"}})],1),_c('v-layout',[_c('v-flex',{staticClass:\"pa-1\"},[_c('v-btn',{attrs:{\"color\":_vm.chooseShippingType == 'delivery' ? _vm.theme.color : 'grey',\"depressed\":\"\",\"outline\":_vm.chooseShippingType != 'delivery',\"block\":\"\",\"dark\":\"\"},on:{\"click\":function($event){_vm.chooseShippingType = 'delivery'}}},[_vm._v(\"\\n จัดส่งสินค้า\\n \")])],1),_c('v-flex',{staticClass:\"pa-1\"},[_c('v-btn',{attrs:{\"color\":_vm.chooseShippingType == 'pickup' ? _vm.theme.color : 'grey',\"depressed\":\"\",\"outline\":_vm.chooseShippingType != 'pickup',\"block\":\"\",\"dark\":\"\"},on:{\"click\":function($event){_vm.chooseShippingType = 'pickup'}}},[_vm._v(\"\\n รับที่ร้าน\\n \")])],1)],1),(_vm.chooseShippingType == 'delivery')?[_c('div',{staticClass:\"mb-1\",class:{ 'has-error': _vm.errors.has('shippingAddress') }},[_c('div',{staticClass:\"mb-3\"},[_c('div',{staticClass:\"mb-1\",class:{ 'has-error': _vm.errors.has('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ') }},[(_vm.showmap)?_c('gmap-address',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({ required: true }),expression:\"{ required: true }\"}],attrs:{\"placesinfo\":_vm.placesinfolabel,\"name\":\"ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ\",\"lastordercoords\":_vm.lastordercoords,\"error\":_vm.errors.has('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ'),\"shoplocation\":_vm.branchlocation,\"radius\":40000,\"radiusColor\":_vm.theme.color,\"infoloading\":false},on:{\"input\":_vm.gmapLocation},model:{value:(_vm.gmapvalue),callback:function ($$v) {_vm.gmapvalue=$$v},expression:\"gmapvalue\"}}):_vm._e(),_c('p',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ')),expression:\"errors.has('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ')\"}],staticClass:\"caption ma-2\",staticStyle:{\"color\":\"red\"}},[_vm._v(\"\\n \"+_vm._s(_vm.errors.first('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ'))+\"\\n \")])],1)]),_c('v-textarea',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({\n required: true,\n regex: /([^0-9][1-9][0-9]{4})|^([1-9][0-9]{4})/,\n isBearhousezipcode: [_vm.cart.length, _vm.isBearhouse]\n }),expression:\"{\\n required: true,\\n regex: /([^0-9][1-9][0-9]{4})|^([1-9][0-9]{4})/,\\n isBearhousezipcode: [cart.length, isBearhouse]\\n }\"}],staticStyle:{\"resize\":\"none\",\"width\":\"100%\"},attrs:{\"outline\":\"\",\"label\":_vm.$t('Shipping Address'),\"placeholder\":_vm.$t('Ex. Address No., Village, Alley, and Road'),\"name\":\"shippingAddress\",\"rows\":\"5\",\"data-vv-as\":_vm.$t('Shipping Address'),\"readonly\":\"\",\"light\":\"\",\"color\":_vm.theme.color,\"error\":_vm.errors.has('shippingAddress') ? true : false,\"error-messages\":_vm.errors.has('shippingAddress')\n ? _vm.errors.first('shippingAddress')\n : ''},model:{value:(_vm.shippingAddress),callback:function ($$v) {_vm.shippingAddress=$$v},expression:\"shippingAddress\"}})],1)]:[_c('div',{staticClass:\"mb-3\",class:{ 'has-error': _vm.errors.has('shippingAddress') }},[_c('v-radio-group',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({\n required: true\n }),expression:\"{\\n required: true\\n }\"}],staticClass:\"full-width\",staticStyle:{\"width\":\"100%\"},attrs:{\"name\":\"shippingAddress\",\"data-vv-as\":_vm.$t('Shipping Address'),\"error\":_vm.errors.has('shippingAddress') ? true : false,\"error-messages\":_vm.errors.has('shippingAddress')\n ? _vm.errors.first('shippingAddress')\n : ''},model:{value:(_vm.pickuplocation),callback:function ($$v) {_vm.pickuplocation=$$v},expression:\"pickuplocation\"}},[_c('v-card',{staticClass:\"mb-2\"},[_c('v-card-text',[_c('v-layout',[_c('v-radio',{attrs:{\"value\":\"รับสินค้าที่ สาขา 1 ร้านเพียวไลท์ (รามà¸à¸´à¸™à¸—รา)\",\"color\":_vm.theme.color}}),_c('v-flex',[_c('span',{staticClass:\"pl-3\"},[_vm._v(\"\\n สาขา 1 ร้านเพียวไลท์ (รามà¸à¸´à¸™à¸—รา) ทุà¸à¸§à¸±à¸™ 08.00 -\\n 18.00 น. (à¸à¸£à¸¸à¸“าระบุเวลารับสินค้าในช่à¸à¸‡à¸«à¸¡à¸²à¸¢à¹€à¸«à¸•ุ)\\n \")])])],1)],1)],1)],1)],1)],_c('div',{staticClass:\"mb-1\",class:{ 'has-error': _vm.errors.has('customerPhone') }},[_c('v-text-field',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({\n required: true,\n regex: /(\\d{10})/\n }),expression:\"{\\n required: true,\\n regex: /(\\\\d{10})/\\n }\"}],attrs:{\"label\":_vm.$t('Tel.'),\"data-vv-as\":_vm.$t('Tel.'),\"outline\":\"\",\"tyle\":\"tel\",\"name\":\"customerPhone\",\"light\":\"\",\"color\":_vm.theme.color,\"mask\":'##########',\"error\":_vm.errors.has('customerPhone') ? true : false,\"error-messages\":_vm.errors.has('customerPhone')\n ? _vm.errors.first('customerPhone')\n : ''},model:{value:(_vm.customerPhone),callback:function ($$v) {_vm.customerPhone=$$v},expression:\"customerPhone\"}})],1),(\n _vm.pageProfile && _vm.pageProfile.pageid && _vm.shippinglist && !_vm.isOoca\n )?[_c('shipping-type',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],attrs:{\"bearhouseshippingprice\":_vm.bearhouseshippingprice,\"khaiwhanshippingprice\":_vm.khaiwhanshippingprice,\"shippinglist\":_vm.shippinglist,\"additionalproduct_charge\":_vm.additionalproduct_charge,\"pageid\":_vm.pageProfile.pageid,\"total\":_vm.totalincludediscount},model:{value:(_vm.shippingType),callback:function ($$v) {_vm.shippingType=$$v},expression:\"shippingType\"}})]:_vm._e()],2)],1)],1),_c('v-divider'),_c('v-container',{staticClass:\"mt-3\"},[_c('v-layout',{attrs:{\"wrap\":\"\",\"row\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm6\":\"\",\"offset-sm3\":\"\"}},[_c('h3',{staticClass:\"headline mb-3\",style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Payment Detail'))+\"\\n \")]),_c('cart-summary',{attrs:{\"khaiwhanshippingprice\":_vm.khaiwhanshippingprice,\"bearhouseshippingprice\":_vm.bearhouseshippingprice,\"total\":_vm.total,\"totalincludediscount\":_vm.totalPrice -\n (this.customshippingprice || 0) -\n (this.additionalproduct_charge || 0),\"discount\":_vm.discount,\"voucher\":_vm.voucher,\"shippingType\":_vm.shippingType,\"additionalproduct_charge\":_vm.additionalproduct_charge,\"customerShippingPrice\":_vm.customshippingprice,\"isCustomize\":true,\"ableToBuy\":_vm.ableToBuy}}),(\n !(_vm.pageProfile.fbpay_status || _vm.pageProfile.gbprime_status)\n )?_c('div',[_c('div',{staticClass:\"mb-4\"},[(_vm.banktransferinfo_photo)?[_c('img',{staticStyle:{\"border\":\"1px solid #eee\",\"border-radius\":\"5px\",\"margin-bottom\":\"15px\",\"width\":\"100%\"},attrs:{\"src\":_vm.banktransferinfo_photo,\"alt\":\"bank transfer\"}})]:_vm._e(),(_vm.banktransferinfo)?[_c('bank-number',{attrs:{\"text\":_vm.banktransferinfo}})]:_vm._e()],2),(\n !_vm.shippingType ||\n (_vm.shippingType && _vm.shippingType.type != 'cod_charge')\n )?_c('div',{staticClass:\"mb-4\",class:{ 'has-error': _vm.errors.has('paymentSlipImage') }},[_c('h3',{staticClass:\"headline\",style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Payment slip'))+\"\\n \")]),_c('br'),_c('upload-file',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"paymentSlipImage\",\"data-vv-as\":_vm.$t('Payment Slip Image')},model:{value:(_vm.paymentSlipImage),callback:function ($$v) {_vm.paymentSlipImage=$$v},expression:\"paymentSlipImage\"}}),_c('p',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('paymentSlipImage')),expression:\"errors.has('paymentSlipImage')\"}],staticClass:\"caption ma-2\",staticStyle:{\"color\":\"red\"}},[_vm._v(\"\\n \"+_vm._s(_vm.errors.first('paymentSlipImage'))+\"\\n \")])],1):_vm._e()]):_vm._e(),_c('div',{staticClass:\"text-xs-center\"},[_vm._v(\"ต้à¸à¸‡à¸à¸²à¸£à¸£à¸±à¸šà¸ªà¸´à¸™à¸„้าในช่วงเวลา\")]),_c('v-layout',{attrs:{\"wrap\":\"\"}},[_c('v-flex',{staticClass:\"px-1\",attrs:{\"xs12\":\"\",\"sm8\":\"\"}},[_c('v-dialog',{ref:\"dialog\",attrs:{\"return-value\":_vm.pickupdate,\"persistent\":\"\",\"lazy\":\"\",\"full-width\":\"\",\"width\":\"290px\"},on:{\"update:returnValue\":function($event){_vm.pickupdate=$event},\"update:return-value\":function($event){_vm.pickupdate=$event}},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\nreturn [_c('v-text-field',_vm._g({directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"label\":\"วันที่รับสินค้า\",\"data-vv-as\":'วันที่รับสินค้า',\"prepend-inner-icon\":\"event\",\"readonly\":\"\",\"name\":\"pickupdate\",\"error\":_vm.errors.has('pickupdate') ? true : false,\"error-messages\":_vm.errors.has('pickupdate')\n ? _vm.errors.first('pickupdate')\n : '',\"outline\":\"\",\"color\":_vm.theme.color},model:{value:(_vm.pickupdate),callback:function ($$v) {_vm.pickupdate=$$v},expression:\"pickupdate\"}},on))]}}]),model:{value:(_vm.showDatePicker),callback:function ($$v) {_vm.showDatePicker=$$v},expression:\"showDatePicker\"}},[_c('v-date-picker',{attrs:{\"scrollable\":\"\",\"color\":_vm.theme.color,\"min\":_vm.mindate,\"max\":_vm.maxdate,\"allowed-dates\":_vm.allowedDates},model:{value:(_vm.pickupdate),callback:function ($$v) {_vm.pickupdate=$$v},expression:\"pickupdate\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"flat\":\"\",\"color\":_vm.theme.color},on:{\"click\":function($event){_vm.showDatePicker = false}}},[_vm._v(\"Cancel\")]),_c('v-btn',{attrs:{\"flat\":\"\",\"color\":_vm.theme.color},on:{\"click\":function($event){return _vm.$refs.dialog.save(_vm.pickupdate)}}},[_vm._v(\"OK\")])],1)],1)],1),_c('v-flex',{staticClass:\"px-1\",attrs:{\"xs12\":\"\",\"sm4\":\"\"}},[(_vm.chooseShippingType == 'delivery')?[_c('v-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],key:\"timerange\",attrs:{\"outline\":\"\",\"color\":_vm.theme.color,\"label\":\"ช่วงเวลารับสินค้า\",\"data-vv-as\":\"ช่วงเวลารับสินค้า\",\"items\":_vm.pickuptimelist,\"name\":\"pickuptime\",\"error\":_vm.errors.has('pickuptime') ? true : false,\"error-messages\":_vm.errors.has('pickuptime')\n ? _vm.errors.first('pickuptime')\n : ''},model:{value:(_vm.pickuptime),callback:function ($$v) {_vm.pickuptime=$$v},expression:\"pickuptime\"}})]:[_c('v-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],key:\"timerange\",attrs:{\"outline\":\"\",\"color\":_vm.theme.color,\"label\":\"ช่วงเวลารับสินค้า\",\"data-vv-as\":\"ช่วงเวลารับสินค้า\",\"items\":_vm.pickuplocation ==\n 'รับสินค้าที่ สาขา 1 ร้านเพียวไลท์ (รามà¸à¸´à¸™à¸—รา)'\n ? _vm.pickuptimelist2\n : _vm.pickuptimelist3,\"name\":\"pickuptime\",\"error\":_vm.errors.has('pickuptime') ? true : false,\"error-messages\":_vm.errors.has('pickuptime')\n ? _vm.errors.first('pickuptime')\n : ''},model:{value:(_vm.pickuptime),callback:function ($$v) {_vm.pickuptime=$$v},expression:\"pickuptime\"}})]],2)],1),_c('div',{class:{ 'has-error': _vm.errors.has('remark') },staticStyle:{\"margin-bottom\":\"15px\"}},[_c('v-textarea',{staticStyle:{\"resize\":\"none\",\"width\":\"100%\"},attrs:{\"outline\":\"\",\"label\":_vm.$t('Remark'),\"name\":\"remark\",\"rows\":\"5\",\"data-vv-as\":_vm.$t('Remark'),\"color\":_vm.theme.color,\"light\":\"\"},model:{value:(_vm.remark),callback:function ($$v) {_vm.remark=$$v},expression:\"remark\"}})],1),_c('div',[(\n _vm.pageProfile.fbpay_status ||\n (_vm.pageProfile.gbprime_status && !_vm.isOoca)\n )?_c('div',{staticStyle:{\"padding-bottom\":\"25px\"}},[_c('v-card',[_c('v-card-text',[_c('v-layout',{staticClass:\"mb-3\",attrs:{\"row\":\"\",\"wrap\":\"\"}},[(_vm.paymentList.includes('fbpay'))?_c('v-flex',{staticClass:\"px-1\",attrs:{\"xs6\":_vm.paymentList.length > 1,\"xs12\":_vm.paymentList.length == 1}},[_c('v-btn',{attrs:{\"color\":_vm.theme.color,\"dark\":\"\",\"block\":\"\",\"small\":\"\",\"outline\":_vm.transferType != 'fbpay'},on:{\"click\":function($event){_vm.transferType = 'fbpay'}}},[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\"}},[_vm._v(\"mdi-facebook-messenger\")]),_vm._v(\"\\n \"+_vm._s(_vm.$t('Mobile Banking'))+\"\\n \")],1),_c('div',{staticClass:\"text-xs-center\",style:({ color: _vm.theme.color })})],1):_vm._e(),(_vm.paymentList.includes('gbprime'))?_c('v-flex',{staticClass:\"px-1\",attrs:{\"xs6\":_vm.paymentList.length > 1,\"xs12\":_vm.paymentList.length == 1}},[_c('v-btn',{attrs:{\"color\":_vm.theme.color,\"dark\":\"\",\"block\":\"\",\"small\":\"\",\"outline\":_vm.transferType != 'qrcode'},on:{\"click\":function($event){_vm.transferType = 'qrcode'}}},[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\"}},[_vm._v(\"mdi-qrcode-scan\")]),_vm._v(\"QR CODE\\n \")],1),_c('div',{staticClass:\"text-xs-center\",style:({ color: _vm.theme.color })})],1):_vm._e(),(_vm.paymentList.includes('transfer'))?_c('v-flex',{staticClass:\"px-1\",attrs:{\"xs6\":_vm.paymentList.length > 1,\"xs12\":_vm.paymentList.length == 1}},[_c('v-btn',{attrs:{\"color\":_vm.theme.color,\"dark\":\"\",\"block\":\"\",\"small\":\"\",\"outline\":_vm.transferType != 'transfer'},on:{\"click\":function($event){_vm.transferType = 'transfer'}}},[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\"}},[_vm._v(\"mdi-cash-multiple\")]),_vm._v(\"\\n \"+_vm._s(_vm.$t('transfer'))+\"\\n \")],1)],1):_vm._e(),(_vm.paymentList.includes('creditgbprime'))?_c('v-flex',{staticClass:\"px-1\",attrs:{\"xs6\":_vm.paymentList.length > 1,\"xs12\":_vm.paymentList.length == 1}},[_c('v-btn',{attrs:{\"color\":_vm.theme.color,\"dark\":\"\",\"small\":\"\",\"block\":\"\",\"outline\":_vm.transferType != 'creditgbprime'},on:{\"click\":function($event){_vm.transferType = 'creditgbprime'\n _vm.setShippingDefault()}}},[[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\"}},[_vm._v(\"mdi-credit-card\")]),_vm._v(\"\\n \"+_vm._s(_vm.$t('Credit Cards'))+\"\\n \")]],2)],1):_vm._e()],1),(['transfer', 'fbpay'].includes(_vm.transferType))?[(['transfer'].includes(_vm.transferType))?_c('div',[_c('div',{staticClass:\"mb-4\"},[(_vm.banktransferinfo_photo)?[_c('img',{staticStyle:{\"border\":\"1px solid #eee\",\"border-radius\":\"5px\",\"margin-bottom\":\"15px\",\"width\":\"100%\"},attrs:{\"src\":_vm.banktransferinfo_photo,\"alt\":\"bank transfer\"}})]:_vm._e(),(_vm.banktransferinfo)?[_c('bank-number',{attrs:{\"text\":_vm.banktransferinfo}})]:_vm._e()],2),(\n !_vm.shippingType ||\n (_vm.shippingType &&\n _vm.shippingType.type != 'cod_charge')\n )?_c('div',{staticClass:\"mb-4\",class:{\n 'has-error': _vm.errors.has('paymentSlipImage')\n }},[_c('h3',{staticClass:\"headline\",style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Payment slip'))+\"\\n \")]),_c('br'),_c('upload-file',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"paymentSlipImage\",\"data-vv-as\":_vm.$t('Payment Slip Image')},model:{value:(_vm.paymentSlipImage),callback:function ($$v) {_vm.paymentSlipImage=$$v},expression:\"paymentSlipImage\"}}),_c('p',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('paymentSlipImage')),expression:\"errors.has('paymentSlipImage')\"}],staticClass:\"caption ma-2\",staticStyle:{\"color\":\"red\"}},[_vm._v(\"\\n \"+_vm._s(_vm.errors.first('paymentSlipImage'))+\"\\n \")])],1):_vm._e()]):_vm._e(),_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"padding-top\":\"15px\",\"padding-bottom\":\"15px\"}},[_c('a',{staticStyle:{\"color\":\"rgb(169, 169, 169)\"},attrs:{\"href\":\"javascript:void(0);\"},on:{\"click\":function($event){return _vm.openModal()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('By clicking Proceed Payment, Ive read and'))+\"\\n \"),_c('br'),_vm._v(\"\\n \"+_vm._s(_vm.$t('agree to'))+\"\\n \"),_c('span',{style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Terms & Condition & Refund Prolicy'))+\" \")]),_vm._v(\".\\n \")])]),(_vm.isEmptyShoppingCart)?_c('p',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\n 'Not enough products in stock, please try to order again.'\n ))+\".\\n \")]):(!_vm.ableToBuy)?_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_c('div',[_vm._v(\"\\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน\\n 090-979-0389\\n \")]),_c('v-btn',{staticClass:\"white--text\",attrs:{\"href\":\"tel:+660909790389\",\"color\":_vm.theme.color}},[_vm._v(\"\\n ติดต่à¸à¹à¸à¸”มิน 090-979-0389\\n \")])],1):_c('div',{staticClass:\"text-xs-center\"},[_c('v-btn',{attrs:{\"dark\":\"\",\"color\":_vm.theme.color,\"disabled\":_vm.loading || _vm.isEmptyShoppingCart,\"loading\":_vm.pageLoading},on:{\"click\":_vm.handleSubmit}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-cart-outline\")]),_vm._v(\"\\n \"+_vm._s(_vm.$t('Proceed Payment'))+\"\\n \")],1)],1)]:(['creditgbprime'].includes(_vm.transferType))?[_c('div',[_c('v-card',{staticClass:\"elevation-0\"},[_c('v-card-text',[_c('form',{ref:\"form-gbcredit\",attrs:{\"id\":\"gbcredit-payment-form\",\"method\":\"POST\"}},[_c('div',{staticClass:\"mb-1\",class:{\n 'has-error': _vm.errors.has('Cardholdername')\n }},[_c('v-text-field',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"Cardholdername\",\"data-vv-as\":_vm.$t('Cardholder Name'),\"label\":\"Cardholder Name\",\"color\":_vm.theme.color,\"maxlength\":\"120\",\"placeholder\":\" \",\"error\":_vm.errors.has('Cardholdername')\n ? true\n : false,\"error-messages\":_vm.errors.has('Cardholdername')\n ? _vm.errors.first('Cardholdername')\n : ''},model:{value:(_vm.creditcard.name),callback:function ($$v) {_vm.$set(_vm.creditcard, \"name\", $$v)},expression:\"creditcard.name\"}})],1),_c('div',{staticClass:\"mb-1\",class:{\n 'has-error': _vm.errors.has('cardnumber')\n }},[_c('v-text-field',{directives:[{name:\"themask\",rawName:\"v-themask\",value:('#### #### #### #### ###'),expression:\"'#### #### #### #### ###'\"},{name:\"validate\",rawName:\"v-validate\",value:('required|credit_card'),expression:\"'required|credit_card'\"}],attrs:{\"data-encrypt\":\"cardnumber\",\"name\":\"cardnumber\",\"label\":\"Card Number\",\"placeholder\":\" \",\"error\":_vm.errors.has('cardnumber') ? true : false,\"error-messages\":_vm.errors.has('cardnumber')\n ? _vm.errors.first('cardnumber')\n : '',\"color\":_vm.theme.color},model:{value:(_vm.creditcard.number),callback:function ($$v) {_vm.$set(_vm.creditcard, \"number\", $$v)},expression:\"creditcard.number\"}})],1),_c('v-layout',[_c('v-flex',{staticClass:\"pr-1\",attrs:{\"xs6\":\"\"}},[_c('div',{staticClass:\"form-control\",class:{\n 'has-error':\n _vm.errors.has('month') ||\n _vm.errors.has('year')\n }},[_c('v-text-field',{directives:[{name:\"themask\",rawName:\"v-themask\",value:('##/##'),expression:\"'##/##'\"}],attrs:{\"label\":\"Expire date\",\"masked\":true,\"error\":_vm.errors.has('month') ||\n _vm.errors.has('year'),\"error-messages\":_vm.errors.has('month')\n ? _vm.errors.first('month')\n : _vm.errors.has('year')\n ? _vm.errors.first('month')\n : '',\"placeholder\":\"MM/YY\",\"color\":_vm.theme.color},on:{\"input\":_vm.onChangeExpireDate},model:{value:(_vm.creditcard.validate),callback:function ($$v) {_vm.$set(_vm.creditcard, \"validate\", $$v)},expression:\"creditcard.validate\"}}),_c('v-text-field',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"pa-0\",staticStyle:{\"width\":\"0\",\"height\":\"0\"},attrs:{\"data-encrypt\":\"month\",\"name\":\"month\",\"data-vv-as\":'Month',\"readonly\":\"\"},model:{value:(_vm.creditcard.expiremonth),callback:function ($$v) {_vm.$set(_vm.creditcard, \"expiremonth\", $$v)},expression:\"creditcard.expiremonth\"}}),_c('v-text-field',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"pa-0\",staticStyle:{\"visibility\":\"hidden\",\"width\":\"0\",\"height\":\"0\"},attrs:{\"name\":\"year\",\"data-encrypt\":\"year\",\"data-vv-as\":'Year',\"readonly\":\"\"},model:{value:(_vm.creditcard.expireyear),callback:function ($$v) {_vm.$set(_vm.creditcard, \"expireyear\", $$v)},expression:\"creditcard.expireyear\"}})],1)]),_c('v-flex',{staticClass:\"pl-1\",attrs:{\"xs6\":\"\"}},[_c('div',{class:{\n 'has-error': _vm.errors.has('cvv')\n }},[_c('v-text-field',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"},{name:\"themask\",rawName:\"v-themask\",value:(['###', '####']),expression:\"['###', '####']\"}],attrs:{\"label\":\"CVV/CVV2\",\"data-vv-as\":'CVV/CVV2',\"data-encrypt\":\"cvv\",\"name\":\"cvv\",\"placeholder\":\" \",\"color\":_vm.theme.color,\"error\":_vm.errors.has('cvv') ? true : false,\"error-messages\":_vm.errors.has('cvv')\n ? _vm.errors.first('cvv')\n : ''},model:{value:(_vm.creditcard.cvv),callback:function ($$v) {_vm.$set(_vm.creditcard, \"cvv\", $$v)},expression:\"creditcard.cvv\"}})],1)])],1),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.orderid),expression:\"orderid\"}],attrs:{\"type\":\"hidden\",\"name\":\"orderid\"},domProps:{\"value\":(_vm.orderid)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.orderid=$event.target.value}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],attrs:{\"type\":\"hidden\",\"name\":\"amount\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.facebookname),expression:\"facebookname\"}],attrs:{\"type\":\"hidden\",\"name\":\"facebookname\"},domProps:{\"value\":(_vm.facebookname)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.facebookname=$event.target.value}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.pageid),expression:\"pageid\"}],attrs:{\"type\":\"hidden\",\"name\":\"pageid\"},domProps:{\"value\":(_vm.pageid)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.pageid=$event.target.value}}})],1)]),_c('div',{staticClass:\"pb-3 text-xs-center\"},[_c('img',{attrs:{\"width\":\"120px\",\"src\":require(\"@/assets/img/creditcardlogo.png\")}})])],1)],1),_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"padding-top\":\"15px\",\"padding-bottom\":\"15px\"}},[_c('a',{staticStyle:{\"color\":\"rgb(169, 169, 169)\"},attrs:{\"href\":\"javascript:void(0);\"},on:{\"click\":function($event){return _vm.openModal()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('By clicking Proceed Payment, Ive read and'))+\"\\n \"),_c('br'),_vm._v(\"\\n \"+_vm._s(_vm.$t('agree to'))+\"\\n \"),_c('span',{style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Terms & Condition & Refund Prolicy'))+\" \")]),_vm._v(\".\\n \")])]),(_vm.loading)?[_c('div',{staticClass:\"text-xs-center my-3\"},[_c('v-progress-circular',{key:_vm.theme.color,attrs:{\"indeterminate\":\"\",\"color\":_vm.theme.color}})],1)]:[(_vm.isCartOutOfStock)?_c('p',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\n 'Not enough products in stock, please try to order again.'\n ))+\".\\n \")]):(!_vm.ableToBuy)?_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_c('div',[_vm._v(\"\\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน\\n 090-979-0389\\n \")]),_c('v-btn',{staticClass:\"white--text\",attrs:{\"href\":\"tel:+660909790389\",\"color\":_vm.theme.color}},[_vm._v(\"\\n ติดต่à¸à¹à¸à¸”มิน 090-979-0389\\n \")])],1):_c('div',{staticClass:\"text-xs-center\"},[_c('v-btn',{attrs:{\"dark\":\"\",\"color\":_vm.theme.color,\"disabled\":_vm.loading || _vm.isCartOutOfStock,\"loading\":_vm.pageLoading},on:{\"click\":_vm.gbcreditSubmit}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-cart-outline\")]),_vm._v(\"\\n \"+_vm._s(_vm.$t('Proceed Payment'))+\"\\n \")],1)],1)]]:[_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"padding-top\":\"15px\",\"padding-bottom\":\"15px\"}},[_c('a',{staticStyle:{\"color\":\"rgb(169, 169, 169)\"},attrs:{\"href\":\"javascript:void(0);\"},on:{\"click\":function($event){return _vm.openModal()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('By clicking Proceed Payment, Ive read and'))+\"\\n \"),_c('br'),_vm._v(\"\\n \"+_vm._s(_vm.$t('agree to'))+\"\\n \"),_c('span',{style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Terms & Condition & Refund Prolicy'))+\" \")]),_vm._v(\".\\n \")])]),(_vm.isEmptyShoppingCart)?_c('p',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\n 'Not enough products in stock, please try to order again.'\n ))+\".\\n \")]):(!_vm.ableToBuy)?_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_c('div',[_vm._v(\"\\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน\\n 090-979-0389\\n \")]),_c('v-btn',{staticClass:\"white--text\",attrs:{\"href\":\"tel:+660909790389\",\"color\":_vm.theme.color}},[_vm._v(\"\\n ติดต่à¸à¹à¸à¸”มิน 090-979-0389\\n \")])],1):_c('div',{staticClass:\"text-xs-center\"},[_c('v-btn',{attrs:{\"dark\":\"\",\"color\":_vm.theme.color,\"disabled\":_vm.loading || _vm.isEmptyShoppingCart,\"loading\":_vm.pageLoading || _vm.loadingQrcode},on:{\"click\":_vm.qrHandleSubmit}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-cart-outline\")]),_vm._v(\"\\n \"+_vm._s(_vm.$t('Proceed Payment'))+\"\\n \")],1)],1)]],2)],1)],1):_vm._e(),(\n !(_vm.pageProfile.fbpay_status || _vm.pageProfile.gbprime_status)\n )?_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"padding-bottom\":\"25px\"}},[_c('div',{staticStyle:{\"padding-top\":\"15px\",\"padding-bottom\":\"15px\"}},[_c('a',{staticStyle:{\"color\":\"rgb(169, 169, 169)\"},attrs:{\"href\":\"javascript:void(0);\"},on:{\"click\":function($event){return _vm.openModal()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('By clicking Proceed Payment, Ive read and'))+\"\\n \"),_c('br'),_vm._v(\"\\n \"+_vm._s(_vm.$t('agree to'))+\"\\n \"),_c('span',{style:({ color: _vm.theme.color })},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Terms & Condition & Refund Prolicy'))+\" \")]),_vm._v(\".\\n \")])]),(_vm.isEmptyShoppingCart)?_c('p',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\n 'Not enough products in stock, please try to order again.'\n ))+\".\\n \")]):(!_vm.ableToBuy)?_c('div',{staticClass:\"text-xs-center\",staticStyle:{\"color\":\"red\"}},[_c('div',[_vm._v(\"\\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน 090-979-0389\\n \")]),_c('v-btn',{staticClass:\"white--text\",attrs:{\"color\":_vm.theme.color}},[_vm._v(\"\\n ติดต่à¸à¹à¸à¸”มิน\\n \")])],1):_c('v-btn',{attrs:{\"dark\":\"\",\"color\":_vm.theme.color,\"disabled\":_vm.loading || _vm.isEmptyShoppingCart,\"loading\":_vm.pageLoading},on:{\"click\":_vm.handleSubmit}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-cart-outline\")]),_vm._v(\"\\n \"+_vm._s(_vm.$t('Proceed Payment'))+\"\\n \")],1)],1):_vm._e()])],1)],1)],1)],1)],1)]),(!_vm.pageLoading && _vm.loading)?_c('Loading'):_vm._e(),(_vm.showTerm)?_c('term-and-condition',{on:{\"close\":function($event){return _vm.close()}}}):_vm._e(),_c('v-dialog',{attrs:{\"max-width\":\"376\",\"persistent\":\"\"},model:{value:(_vm.showQrCode),callback:function ($$v) {_vm.showQrCode=$$v},expression:\"showQrCode\"}},[_c('v-card',[_c('div',{staticClass:\"text-xs-right\"},[_c('v-btn',{attrs:{\"fab\":\"\",\"small\":\"\",\"flat\":\"\"},on:{\"click\":_vm.closeQrCode}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1)],1),_c('v-card-text',[(_vm.qrimage)?[_c('img',{staticStyle:{\"width\":\"100%\"},attrs:{\"src\":_vm.qrimage}}),_c('div',{staticClass:\"text-xs-center mt-2\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\n 'If you already have proceeded a payment, you may close this popup window.'\n ))+\"\\n \")])]:_vm._e()],2)],1)],1),(_vm.gbcharge)?[_c('form',{ref:\"gbchargeform\",attrs:{\"name\":\"form\",\"action\":(_vm.gbpath + \"/v1/tokens/3d_secured\"),\"method\":\"POST\"}},[_vm._v(\"\\n publicKey:\\n \"),_c('input',{attrs:{\"type\":\"text\",\"name\":\"publicKey\"},domProps:{\"value\":_vm.gbpublickey}}),_c('br'),_vm._v(\"\\n gbpReferenceNo:\\n \"),_c('input',{attrs:{\"type\":\"text\",\"name\":\"gbpReferenceNo\"},domProps:{\"value\":_vm.gbcharge.gbpReferenceNo}})])]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","function shippingprice(zipcode) {\n switch (zipcode) {\n // จังหวัดà¸à¸£à¸¸à¸‡à¹€à¸—พ\n case '10110':\n case '10600':\n case '10510':\n case '10230':\n case '10900':\n case '10150':\n case '10210':\n case '10400':\n case '10300':\n case '10170':\n case '10140':\n case '10700':\n case '10240':\n case '10250':\n case '10220':\n case '10120':\n case '10800':\n case '10260':\n case '10500':\n case '10330':\n case '10100':\n case '10200':\n case '10520':\n case '10310':\n case '10530':\n case '10550': // จังหวัดสมุทรปราà¸à¸²à¸£\n case '10560':\n case '10540':\n case '10130':\n case '10280':\n case '10270':\n case '12120': // จังหวัดปทุมธานี\n case '12110':\n case '12130':\n case '12000':\n case '12140':\n case '12150':\n case '12180':\n case '11150': // จังหวัดนนทบุรี\n case '11130':\n case '11110':\n case '11140':\n case '11120':\n case '11000':\n return 'bkk'\n default:\n return false\n }\n}\n\nexport { shippingprice }\n","<template>\n <div class=\"transfer\">\n <v-app>\n <div v-if=\"!userid\">\n <v-container>\n <v-alert :value=\"true\" color=\"warning\" icon=\"priority_high\" outline>\n {{ $t('Not found this page') }}\n </v-alert>\n </v-container>\n </div>\n <div v-else-if=\"isCompleted\">\n <cover>\n <div slot=\"body\" style=\"text-align: center; margin-top: -95px\">\n <img\n src=\"@/assets/img/ecommerce/shopping_cart@4x.png\"\n alt=\"shopping cart\"\n style=\"width: 140px; padding-bottom: 10px\"\n />\n <p style=\"padding-bottom: 10px\">{{ $t('Payment Successfully') }}</p>\n <v-btn outline :color=\"theme.color\" @click=\"goToShop()\">\n {{ $t('Continue Shopping') }}\n </v-btn>\n </div>\n </cover>\n </div>\n <!-- <div v-else-if=\"isEmptyShoppingCart\">\n <cover>\n <div slot=\"body\" style=\"margin-left: -93px;text-align: center;margin-top: -95px;\">\n <img\n src=\"../assets/img/ecommerce/empty_shopping_cart@4x.png\"\n alt=\"empty shopping cart\"\n style=\"width: 140px;padding-bottom: 10px;\"\n >\n <p style=\"padding-bottom: 10px\">{{$t('There are no items in this cart')}}</p>\n <v-btn\n outline\n :color=\"theme.color\"\n @click=\"goToShop()\"\n >{{$t('Continue Shopping')}}</v-btn>\n </div>\n </cover>\n </div>-->\n <div v-else-if=\"isEmptyShoppingCart\">\n <cover>\n <div slot=\"body\" style=\"text-align: center; margin-top: -95px\">\n <img\n src=\"@/assets/img/ecommerce/shopping_cart_out@4x.png\"\n alt=\"empty shopping cart\"\n style=\"width: 140px; padding-bottom: 10px\"\n />\n <p style=\"padding-bottom: 10px\">\n {{ $t('This order has been reset, please try to order again.') }}\n </p>\n\n <v-btn outline :color=\"theme.color\" @click=\"goToShop()\">\n {{ $t('Continue Shopping') }}\n </v-btn>\n </div>\n </cover>\n </div>\n <!-- <div v-else-if=\"pageLoading\" style=\"height: 100vh\">\n <v-layout justify-center align-center style=\"height: 100%\">\n <v-progress-circular\n :key=\"theme.color\"\n :size=\"70\"\n :width=\"7\"\n :color=\"theme.color\"\n indeterminate\n ></v-progress-circular>\n </v-layout>\n </div>-->\n <div v-else>\n <merchant-detail v-model=\"pageProfile\"></merchant-detail>\n\n <form\n id=\"checkout-form\"\n class=\"checkout-form\"\n method=\"POST\"\n @submit.prevent=\"handleSubmit\"\n >\n <v-container class=\"mt-5\">\n <v-layout wrap row>\n <v-flex xs12 sm6 offset-sm3>\n <h3 class=\"headline\" :style=\"{ color: theme.color }\">\n {{ $t('Payment') }}\n </h3>\n\n <br />\n </v-flex>\n <v-flex xs12 sm6 offset-sm3>\n <div\n :class=\"{ 'has-error': errors.has('customerName') }\"\n class=\"mb-1\"\n >\n <v-text-field\n :label=\"$t('Name')\"\n :data-vv-as=\"$t('Name')\"\n outline\n name=\"customerName\"\n v-validate=\"'required'\"\n v-model=\"customerName\"\n light\n :color=\"theme.color\"\n :error=\"errors.has('customerName') ? true : false\"\n :error-messages=\"\n errors.has('customerName')\n ? errors.first('customerName')\n : ''\n \"\n ></v-text-field>\n </div>\n <v-layout>\n <v-flex class=\"pa-1\">\n <v-btn\n :color=\"\n chooseShippingType == 'delivery' ? theme.color : 'grey'\n \"\n depressed\n :outline=\"chooseShippingType != 'delivery'\"\n block\n dark\n @click=\"chooseShippingType = 'delivery'\"\n >\n จัดส่งสินค้า\n </v-btn>\n </v-flex>\n <v-flex class=\"pa-1\">\n <v-btn\n :color=\"\n chooseShippingType == 'pickup' ? theme.color : 'grey'\n \"\n depressed\n :outline=\"chooseShippingType != 'pickup'\"\n block\n dark\n @click=\"chooseShippingType = 'pickup'\"\n >\n รับที่ร้าน\n </v-btn>\n </v-flex>\n </v-layout>\n <template v-if=\"chooseShippingType == 'delivery'\">\n <div\n :class=\"{ 'has-error': errors.has('shippingAddress') }\"\n class=\"mb-1\"\n >\n <div class=\"mb-3\">\n <div\n :class=\"{ 'has-error': errors.has('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ') }\"\n class=\"mb-1\"\n >\n <gmap-address\n v-if=\"showmap\"\n :placesinfo=\"placesinfolabel\"\n v-validate=\"{ required: true }\"\n name=\"ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ\"\n v-model=\"gmapvalue\"\n v-on:input=\"gmapLocation\"\n :lastordercoords=\"lastordercoords\"\n :error=\"errors.has('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ')\"\n :shoplocation=\"branchlocation\"\n :radius=\"40000\"\n :radiusColor=\"theme.color\"\n :infoloading=\"false\"\n ></gmap-address>\n <p\n class=\"caption ma-2\"\n style=\"color: red\"\n v-show=\"errors.has('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ')\"\n >\n {{ errors.first('ปัà¸à¸«à¸¡à¸¸à¸”ที่à¸à¸¢à¸¹à¹ˆ') }}\n </p>\n </div>\n </div>\n <v-textarea\n outline\n :label=\"$t('Shipping Address')\"\n :placeholder=\"\n $t('Ex. Address No., Village, Alley, and Road')\n \"\n name=\"shippingAddress\"\n rows=\"5\"\n :data-vv-as=\"$t('Shipping Address')\"\n style=\"resize: none; width: 100%\"\n v-model=\"shippingAddress\"\n readonly\n v-validate=\"{\n required: true,\n regex: /([^0-9][1-9][0-9]{4})|^([1-9][0-9]{4})/,\n isBearhousezipcode: [cart.length, isBearhouse]\n }\"\n light\n :color=\"theme.color\"\n :error=\"errors.has('shippingAddress') ? true : false\"\n :error-messages=\"\n errors.has('shippingAddress')\n ? errors.first('shippingAddress')\n : ''\n \"\n ></v-textarea>\n </div>\n </template>\n <template v-else>\n <div\n :class=\"{ 'has-error': errors.has('shippingAddress') }\"\n class=\"mb-3\"\n >\n <v-radio-group\n name=\"shippingAddress\"\n :data-vv-as=\"$t('Shipping Address')\"\n v-model=\"pickuplocation\"\n class=\"full-width\"\n style=\"width: 100%\"\n v-validate=\"{\n required: true\n }\"\n :error=\"errors.has('shippingAddress') ? true : false\"\n :error-messages=\"\n errors.has('shippingAddress')\n ? errors.first('shippingAddress')\n : ''\n \"\n >\n <v-card class=\"mb-2\">\n <v-card-text>\n <v-layout>\n <v-radio\n :value=\"`รับสินค้าที่ สาขา 1 ร้านเพียวไลท์ (รามà¸à¸´à¸™à¸—รา)`\"\n :color=\"theme.color\"\n ></v-radio>\n <v-flex>\n <span class=\"pl-3\">\n สาขา 1 ร้านเพียวไลท์ (รามà¸à¸´à¸™à¸—รา) ทุà¸à¸§à¸±à¸™ 08.00 -\n 18.00 น. (à¸à¸£à¸¸à¸“าระบุเวลารับสินค้าในช่à¸à¸‡à¸«à¸¡à¸²à¸¢à¹€à¸«à¸•ุ)\n </span>\n </v-flex>\n </v-layout>\n </v-card-text>\n </v-card>\n </v-radio-group>\n </div>\n </template>\n\n <div\n :class=\"{ 'has-error': errors.has('customerPhone') }\"\n class=\"mb-1\"\n >\n <v-text-field\n :label=\"$t('Tel.')\"\n :data-vv-as=\"$t('Tel.')\"\n outline\n tyle=\"tel\"\n name=\"customerPhone\"\n light\n :color=\"theme.color\"\n v-validate=\"{\n required: true,\n regex: /(\\d{10})/\n }\"\n :mask=\"'##########'\"\n v-model=\"customerPhone\"\n :error=\"errors.has('customerPhone') ? true : false\"\n :error-messages=\"\n errors.has('customerPhone')\n ? errors.first('customerPhone')\n : ''\n \"\n ></v-text-field>\n </div>\n\n <template\n v-if=\"\n pageProfile && pageProfile.pageid && shippinglist && !isOoca\n \"\n >\n <shipping-type\n v-show=\"false\"\n :bearhouseshippingprice=\"bearhouseshippingprice\"\n :khaiwhanshippingprice=\"khaiwhanshippingprice\"\n v-model=\"shippingType\"\n :shippinglist=\"shippinglist\"\n :additionalproduct_charge=\"additionalproduct_charge\"\n :pageid=\"pageProfile.pageid\"\n :total=\"totalincludediscount\"\n ></shipping-type>\n </template>\n </v-flex>\n </v-layout>\n </v-container>\n <v-divider></v-divider>\n <v-container class=\"mt-3\">\n <v-layout wrap row>\n <v-flex xs12 sm6 offset-sm3>\n <h3 class=\"headline mb-3\" :style=\"{ color: theme.color }\">\n {{ $t('Payment Detail') }}\n </h3>\n <cart-summary\n :khaiwhanshippingprice=\"khaiwhanshippingprice\"\n :bearhouseshippingprice=\"bearhouseshippingprice\"\n :total=\"total\"\n :totalincludediscount=\"\n totalPrice -\n (this.customshippingprice || 0) -\n (this.additionalproduct_charge || 0)\n \"\n :discount=\"discount\"\n :voucher=\"voucher\"\n :shippingType=\"shippingType\"\n :additionalproduct_charge=\"additionalproduct_charge\"\n :customerShippingPrice=\"customshippingprice\"\n :isCustomize=\"true\"\n :ableToBuy=\"ableToBuy\"\n ></cart-summary>\n <div\n v-if=\"\n !(pageProfile.fbpay_status || pageProfile.gbprime_status)\n \"\n >\n <div class=\"mb-4\">\n <template v-if=\"banktransferinfo_photo\">\n <img\n :src=\"banktransferinfo_photo\"\n alt=\"bank transfer\"\n style=\"\n border: 1px solid #eee;\n border-radius: 5px;\n margin-bottom: 15px;\n width: 100%;\n \"\n />\n </template>\n <template v-if=\"banktransferinfo\">\n <bank-number :text=\"banktransferinfo\"></bank-number>\n </template>\n <!-- <bank-number\n :text=\"\n `à¸à¸£à¸¸à¸“าโà¸à¸™à¹€à¸‡à¸´à¸™à¸¡à¸²à¸—ี่\\nธนาคาร: ${\n khaiwhanselectedbank.bankname\n } \\nเลขที่บัà¸à¸Šà¸µ: ${\n khaiwhanselectedbank.banknum\n } <<à¸à¸”ตรงนี้เพื่ภcopy\\nชื่à¸à¸šà¸±à¸à¸Šà¸µ: ${\n khaiwhanselectedbank.bankowner\n }`\n \"\n ></bank-number> -->\n </div>\n\n <div\n :class=\"{ 'has-error': errors.has('paymentSlipImage') }\"\n class=\"mb-4\"\n v-if=\"\n !shippingType ||\n (shippingType && shippingType.type != 'cod_charge')\n \"\n >\n <h3 class=\"headline\" :style=\"{ color: theme.color }\">\n {{ $t('Payment slip') }}\n </h3>\n <br />\n\n <upload-file\n name=\"paymentSlipImage\"\n v-validate=\"'required'\"\n :data-vv-as=\"$t('Payment Slip Image')\"\n v-model=\"paymentSlipImage\"\n ></upload-file>\n <p\n class=\"caption ma-2\"\n style=\"color: red\"\n v-show=\"errors.has('paymentSlipImage')\"\n >\n {{ errors.first('paymentSlipImage') }}\n </p>\n </div>\n </div>\n\n <div class=\"text-xs-center\">ต้à¸à¸‡à¸à¸²à¸£à¸£à¸±à¸šà¸ªà¸´à¸™à¸„้าในช่วงเวลา</div>\n\n <v-layout wrap>\n <v-flex xs12 sm8 class=\"px-1\">\n <v-dialog\n ref=\"dialog\"\n v-model=\"showDatePicker\"\n :return-value.sync=\"pickupdate\"\n persistent\n lazy\n full-width\n width=\"290px\"\n >\n <template v-slot:activator=\"{ on }\">\n <v-text-field\n v-model=\"pickupdate\"\n label=\"วันที่รับสินค้า\"\n :data-vv-as=\"'วันที่รับสินค้า'\"\n prepend-inner-icon=\"event\"\n readonly\n name=\"pickupdate\"\n v-validate=\"'required'\"\n :error=\"errors.has('pickupdate') ? true : false\"\n :error-messages=\"\n errors.has('pickupdate')\n ? errors.first('pickupdate')\n : ''\n \"\n outline\n :color=\"theme.color\"\n v-on=\"on\"\n ></v-text-field>\n </template>\n <v-date-picker\n v-model=\"pickupdate\"\n scrollable\n :color=\"theme.color\"\n :min=\"mindate\"\n :max=\"maxdate\"\n :allowed-dates=\"allowedDates\"\n >\n <v-spacer></v-spacer>\n <v-btn\n flat\n :color=\"theme.color\"\n @click=\"showDatePicker = false\"\n >Cancel</v-btn\n >\n <v-btn\n flat\n :color=\"theme.color\"\n @click=\"$refs.dialog.save(pickupdate)\"\n >OK</v-btn\n >\n </v-date-picker>\n </v-dialog>\n </v-flex>\n <v-flex xs12 sm4 class=\"px-1\">\n <template v-if=\"chooseShippingType == 'delivery'\">\n <v-select\n v-model=\"pickuptime\"\n outline\n :color=\"theme.color\"\n label=\"ช่วงเวลารับสินค้า\"\n key=\"timerange\"\n data-vv-as=\"ช่วงเวลารับสินค้า\"\n v-validate=\"'required'\"\n :items=\"pickuptimelist\"\n name=\"pickuptime\"\n :error=\"errors.has('pickuptime') ? true : false\"\n :error-messages=\"\n errors.has('pickuptime')\n ? errors.first('pickuptime')\n : ''\n \"\n ></v-select>\n </template>\n <template v-else>\n <v-select\n v-model=\"pickuptime\"\n outline\n :color=\"theme.color\"\n label=\"ช่วงเวลารับสินค้า\"\n key=\"timerange\"\n data-vv-as=\"ช่วงเวลารับสินค้า\"\n v-validate=\"'required'\"\n :items=\"\n pickuplocation ==\n 'รับสินค้าที่ สาขา 1 ร้านเพียวไลท์ (รามà¸à¸´à¸™à¸—รา)'\n ? pickuptimelist2\n : pickuptimelist3\n \"\n name=\"pickuptime\"\n :error=\"errors.has('pickuptime') ? true : false\"\n :error-messages=\"\n errors.has('pickuptime')\n ? errors.first('pickuptime')\n : ''\n \"\n ></v-select>\n </template>\n </v-flex>\n </v-layout>\n\n <div\n :class=\"{ 'has-error': errors.has('remark') }\"\n style=\"margin-bottom: 15px\"\n >\n <v-textarea\n outline\n :label=\"$t('Remark')\"\n name=\"remark\"\n rows=\"5\"\n :data-vv-as=\"$t('Remark')\"\n style=\"resize: none; width: 100%\"\n v-model=\"remark\"\n :color=\"theme.color\"\n light\n ></v-textarea>\n </div>\n <div>\n <div\n v-if=\"\n pageProfile.fbpay_status ||\n (pageProfile.gbprime_status && !isOoca)\n \"\n style=\"padding-bottom: 25px\"\n >\n <v-card>\n <v-card-text>\n <v-layout row wrap class=\"mb-3\">\n <v-flex\n :xs6=\"paymentList.length > 1\"\n :xs12=\"paymentList.length == 1\"\n class=\"px-1\"\n v-if=\"paymentList.includes('fbpay')\"\n >\n <v-btn\n :color=\"theme.color\"\n dark\n block\n small\n @click=\"transferType = 'fbpay'\"\n :outline=\"transferType != 'fbpay'\"\n >\n <v-icon small class=\"mr-2\"\n >mdi-facebook-messenger</v-icon\n >\n {{ $t('Mobile Banking') }}\n </v-btn>\n <div\n class=\"text-xs-center\"\n :style=\"{ color: theme.color }\"\n >\n <!-- (รวดเร็วà¸à¸§à¹ˆà¸²) -->\n </div>\n </v-flex>\n <v-flex\n :xs6=\"paymentList.length > 1\"\n :xs12=\"paymentList.length == 1\"\n class=\"px-1\"\n v-if=\"paymentList.includes('gbprime')\"\n >\n <v-btn\n :color=\"theme.color\"\n dark\n block\n small\n @click=\"transferType = 'qrcode'\"\n :outline=\"transferType != 'qrcode'\"\n >\n <v-icon small class=\"mr-2\">mdi-qrcode-scan</v-icon\n >QR CODE\n </v-btn>\n <div\n class=\"text-xs-center\"\n :style=\"{ color: theme.color }\"\n >\n <!-- (รวดเร็วà¸à¸§à¹ˆà¸²) -->\n </div>\n </v-flex>\n <v-flex\n :xs6=\"paymentList.length > 1\"\n :xs12=\"paymentList.length == 1\"\n class=\"px-1\"\n v-if=\"paymentList.includes('transfer')\"\n >\n <v-btn\n :color=\"theme.color\"\n dark\n block\n small\n @click=\"transferType = 'transfer'\"\n :outline=\"transferType != 'transfer'\"\n >\n <v-icon small class=\"mr-2\"\n >mdi-cash-multiple</v-icon\n >\n {{ $t('transfer') }}\n </v-btn>\n </v-flex>\n <v-flex\n :xs6=\"paymentList.length > 1\"\n :xs12=\"paymentList.length == 1\"\n class=\"px-1\"\n v-if=\"paymentList.includes('creditgbprime')\"\n >\n <v-btn\n :color=\"theme.color\"\n dark\n small\n block\n @click=\"\n transferType = 'creditgbprime'\n setShippingDefault()\n \"\n :outline=\"transferType != 'creditgbprime'\"\n >\n <template>\n <v-icon small class=\"mr-2\"\n >mdi-credit-card</v-icon\n >\n {{ $t('Credit Cards') }}\n </template>\n </v-btn>\n </v-flex>\n </v-layout>\n\n <template\n v-if=\"['transfer', 'fbpay'].includes(transferType)\"\n >\n <div v-if=\"['transfer'].includes(transferType)\">\n <div class=\"mb-4\">\n <template v-if=\"banktransferinfo_photo\">\n <img\n :src=\"banktransferinfo_photo\"\n alt=\"bank transfer\"\n style=\"\n border: 1px solid #eee;\n border-radius: 5px;\n margin-bottom: 15px;\n width: 100%;\n \"\n />\n </template>\n <template v-if=\"banktransferinfo\">\n <bank-number\n :text=\"banktransferinfo\"\n ></bank-number>\n </template>\n </div>\n\n <div\n :class=\"{\n 'has-error': errors.has('paymentSlipImage')\n }\"\n class=\"mb-4\"\n v-if=\"\n !shippingType ||\n (shippingType &&\n shippingType.type != 'cod_charge')\n \"\n >\n <h3\n class=\"headline\"\n :style=\"{ color: theme.color }\"\n >\n {{ $t('Payment slip') }}\n </h3>\n <br />\n\n <upload-file\n name=\"paymentSlipImage\"\n v-validate=\"'required'\"\n :data-vv-as=\"$t('Payment Slip Image')\"\n v-model=\"paymentSlipImage\"\n ></upload-file>\n <p\n class=\"caption ma-2\"\n style=\"color: red\"\n v-show=\"errors.has('paymentSlipImage')\"\n >\n {{ errors.first('paymentSlipImage') }}\n </p>\n </div>\n </div>\n\n <div\n class=\"text-xs-center\"\n style=\"padding-top: 15px; padding-bottom: 15px\"\n >\n <a\n href=\"javascript:void(0);\"\n @click=\"openModal()\"\n style=\"color: rgb(169, 169, 169)\"\n >\n {{\n $t('By clicking Proceed Payment, Ive read and')\n }}\n <br />\n {{ $t('agree to') }}\n <span :style=\"{ color: theme.color }\">\n {{\n $t('Terms & Condition & Refund Prolicy')\n }} </span\n >.\n </a>\n </div>\n <p\n class=\"text-xs-center\"\n style=\"color: red\"\n v-if=\"isEmptyShoppingCart\"\n >\n {{\n $t(\n 'Not enough products in stock, please try to order again.'\n )\n }}.\n </p>\n <div\n v-else-if=\"!ableToBuy\"\n style=\"color: red\"\n class=\"text-xs-center\"\n >\n <div>\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน\n 090-979-0389\n </div>\n <v-btn\n href=\"tel:+660909790389\"\n :color=\"theme.color\"\n class=\"white--text\"\n >\n ติดต่à¸à¹à¸à¸”มิน 090-979-0389\n </v-btn>\n </div>\n <div class=\"text-xs-center\" v-else>\n <v-btn\n dark\n :color=\"theme.color\"\n :disabled=\"loading || isEmptyShoppingCart\"\n @click=\"handleSubmit\"\n :loading=\"pageLoading\"\n >\n <v-icon class=\"mr-2\">mdi-cart-outline</v-icon>\n {{ $t('Proceed Payment') }}\n </v-btn>\n </div>\n </template>\n <template\n v-else-if=\"['creditgbprime'].includes(transferType)\"\n >\n <div>\n <v-card class=\"elevation-0\">\n <v-card-text>\n <form\n ref=\"form-gbcredit\"\n id=\"gbcredit-payment-form\"\n method=\"POST\"\n >\n <div\n :class=\"{\n 'has-error': errors.has('Cardholdername')\n }\"\n class=\"mb-1\"\n >\n <v-text-field\n name=\"Cardholdername\"\n :data-vv-as=\"$t('Cardholder Name')\"\n label=\"Cardholder Name\"\n :color=\"theme.color\"\n v-model=\"creditcard.name\"\n maxlength=\"120\"\n placeholder=\" \"\n v-validate=\"'required'\"\n :error=\"\n errors.has('Cardholdername')\n ? true\n : false\n \"\n :error-messages=\"\n errors.has('Cardholdername')\n ? errors.first('Cardholdername')\n : ''\n \"\n ></v-text-field>\n </div>\n <div\n :class=\"{\n 'has-error': errors.has('cardnumber')\n }\"\n class=\"mb-1\"\n >\n <v-text-field\n data-encrypt=\"cardnumber\"\n name=\"cardnumber\"\n v-themask=\"'#### #### #### #### ###'\"\n label=\"Card Number\"\n placeholder=\" \"\n v-validate=\"'required|credit_card'\"\n :error=\"\n errors.has('cardnumber') ? true : false\n \"\n :error-messages=\"\n errors.has('cardnumber')\n ? errors.first('cardnumber')\n : ''\n \"\n :color=\"theme.color\"\n v-model=\"creditcard.number\"\n ></v-text-field>\n </div>\n <v-layout>\n <v-flex xs6 class=\"pr-1\">\n <div\n class=\"form-control\"\n :class=\"{\n 'has-error':\n errors.has('month') ||\n errors.has('year')\n }\"\n >\n <v-text-field\n label=\"Expire date\"\n v-themask=\"'##/##'\"\n :masked=\"true\"\n :error=\"\n errors.has('month') ||\n errors.has('year')\n \"\n :error-messages=\"\n errors.has('month')\n ? errors.first('month')\n : errors.has('year')\n ? errors.first('month')\n : ''\n \"\n placeholder=\"MM/YY\"\n :color=\"theme.color\"\n @input=\"onChangeExpireDate\"\n v-model=\"creditcard.validate\"\n />\n\n <v-text-field\n data-encrypt=\"month\"\n name=\"month\"\n :data-vv-as=\"'Month'\"\n style=\"width: 0; height: 0\"\n v-validate=\"'required'\"\n readonly\n class=\"pa-0\"\n v-model=\"creditcard.expiremonth\"\n />\n <v-text-field\n name=\"year\"\n data-encrypt=\"year\"\n class=\"pa-0\"\n :data-vv-as=\"'Year'\"\n v-validate=\"'required'\"\n style=\"\n visibility: hidden;\n width: 0;\n height: 0;\n \"\n readonly\n v-model=\"creditcard.expireyear\"\n />\n </div>\n </v-flex>\n <v-flex xs6 class=\"pl-1\">\n <div\n :class=\"{\n 'has-error': errors.has('cvv')\n }\"\n >\n <v-text-field\n label=\"CVV/CVV2\"\n v-validate=\"'required'\"\n :data-vv-as=\"'CVV/CVV2'\"\n data-encrypt=\"cvv\"\n name=\"cvv\"\n v-themask=\"['###', '####']\"\n placeholder=\" \"\n :color=\"theme.color\"\n v-model=\"creditcard.cvv\"\n :error=\"\n errors.has('cvv') ? true : false\n \"\n :error-messages=\"\n errors.has('cvv')\n ? errors.first('cvv')\n : ''\n \"\n />\n </div>\n </v-flex>\n </v-layout>\n <input\n type=\"hidden\"\n v-model=\"orderid\"\n name=\"orderid\"\n />\n <input\n type=\"hidden\"\n v-model=\"amount\"\n name=\"amount\"\n />\n <input\n type=\"hidden\"\n v-model=\"facebookname\"\n name=\"facebookname\"\n />\n <input\n type=\"hidden\"\n v-model=\"pageid\"\n name=\"pageid\"\n />\n </form>\n </v-card-text>\n <div class=\"pb-3 text-xs-center\">\n <img\n width=\"120px\"\n src=\"@/assets/img/creditcardlogo.png\"\n />\n </div>\n </v-card>\n </div>\n <div\n class=\"text-xs-center\"\n style=\"padding-top: 15px; padding-bottom: 15px\"\n >\n <a\n href=\"javascript:void(0);\"\n @click=\"openModal()\"\n style=\"color: rgb(169, 169, 169)\"\n >\n {{\n $t('By clicking Proceed Payment, Ive read and')\n }}\n <br />\n {{ $t('agree to') }}\n <span :style=\"{ color: theme.color }\">\n {{\n $t('Terms & Condition & Refund Prolicy')\n }} </span\n >.\n </a>\n </div>\n <template v-if=\"loading\">\n <div class=\"text-xs-center my-3\">\n <v-progress-circular\n :key=\"theme.color\"\n indeterminate\n :color=\"theme.color\"\n ></v-progress-circular>\n </div>\n </template>\n\n <template v-else>\n <p\n class=\"text-xs-center\"\n style=\"color: red\"\n v-if=\"isCartOutOfStock\"\n >\n {{\n $t(\n 'Not enough products in stock, please try to order again.'\n )\n }}.\n </p>\n <div\n v-else-if=\"!ableToBuy\"\n style=\"color: red\"\n class=\"text-xs-center\"\n >\n <div>\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน\n 090-979-0389\n </div>\n <v-btn\n href=\"tel:+660909790389\"\n :color=\"theme.color\"\n class=\"white--text\"\n >\n ติดต่à¸à¹à¸à¸”มิน 090-979-0389\n </v-btn>\n </div>\n\n <div class=\"text-xs-center\" v-else>\n <v-btn\n dark\n :color=\"theme.color\"\n :disabled=\"loading || isCartOutOfStock\"\n @click=\"gbcreditSubmit\"\n :loading=\"pageLoading\"\n >\n <v-icon class=\"mr-2\">mdi-cart-outline</v-icon>\n {{ $t('Proceed Payment') }}\n </v-btn>\n </div>\n </template>\n </template>\n <template v-else>\n <div\n class=\"text-xs-center\"\n style=\"padding-top: 15px; padding-bottom: 15px\"\n >\n <a\n href=\"javascript:void(0);\"\n @click=\"openModal()\"\n style=\"color: rgb(169, 169, 169)\"\n >\n {{\n $t('By clicking Proceed Payment, Ive read and')\n }}\n <br />\n {{ $t('agree to') }}\n <span :style=\"{ color: theme.color }\">\n {{\n $t('Terms & Condition & Refund Prolicy')\n }} </span\n >.\n </a>\n </div>\n <p\n class=\"text-xs-center\"\n style=\"color: red\"\n v-if=\"isEmptyShoppingCart\"\n >\n {{\n $t(\n 'Not enough products in stock, please try to order again.'\n )\n }}.\n </p>\n <div\n v-else-if=\"!ableToBuy\"\n style=\"color: red\"\n class=\"text-xs-center\"\n >\n <div>\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน\n 090-979-0389\n </div>\n <v-btn\n href=\"tel:+660909790389\"\n :color=\"theme.color\"\n class=\"white--text\"\n >\n ติดต่à¸à¹à¸à¸”มิน 090-979-0389\n </v-btn>\n </div>\n\n <div v-else class=\"text-xs-center\">\n <v-btn\n dark\n :color=\"theme.color\"\n :disabled=\"loading || isEmptyShoppingCart\"\n @click=\"qrHandleSubmit\"\n :loading=\"pageLoading || loadingQrcode\"\n >\n <v-icon class=\"mr-2\">mdi-cart-outline</v-icon>\n {{ $t('Proceed Payment') }}\n </v-btn>\n </div>\n </template>\n </v-card-text>\n </v-card>\n </div>\n\n <div\n v-if=\"\n !(pageProfile.fbpay_status || pageProfile.gbprime_status)\n \"\n class=\"text-xs-center\"\n style=\"padding-bottom: 25px\"\n >\n <div style=\"padding-top: 15px; padding-bottom: 15px\">\n <a\n href=\"javascript:void(0);\"\n @click=\"openModal()\"\n style=\"color: rgb(169, 169, 169)\"\n >\n {{ $t('By clicking Proceed Payment, Ive read and') }}\n <br />\n {{ $t('agree to') }}\n <span :style=\"{ color: theme.color }\">\n {{ $t('Terms & Condition & Refund Prolicy') }} </span\n >.\n </a>\n </div>\n <p\n class=\"text-xs-center\"\n style=\"color: red\"\n v-if=\"isEmptyShoppingCart\"\n >\n {{\n $t(\n 'Not enough products in stock, please try to order again.'\n )\n }}.\n </p>\n <div\n v-else-if=\"!ableToBuy\"\n style=\"color: red\"\n class=\"text-xs-center\"\n >\n <div>\n à¸à¸¢à¸¹à¹ˆà¸™à¸à¸à¸žà¸·à¹‰à¸™à¸—ี่à¸à¸²à¸£à¸ˆà¸±à¸”ส่ง à¸à¸£à¸¸à¸“าติดต่à¸à¹à¸à¸”มิน 090-979-0389\n </div>\n <v-btn :color=\"theme.color\" class=\"white--text\">\n ติดต่à¸à¹à¸à¸”มิน\n </v-btn>\n </div>\n <v-btn\n dark\n v-else\n :color=\"theme.color\"\n :disabled=\"loading || isEmptyShoppingCart\"\n @click=\"handleSubmit\"\n :loading=\"pageLoading\"\n >\n <v-icon class=\"mr-2\">mdi-cart-outline</v-icon>\n {{ $t('Proceed Payment') }}\n </v-btn>\n </div>\n </div>\n </v-flex>\n </v-layout>\n </v-container>\n </form>\n </div>\n </v-app>\n <Loading v-if=\"!pageLoading && loading\"></Loading>\n <term-and-condition v-if=\"showTerm\" @close=\"close()\"></term-and-condition>\n <v-dialog v-model=\"showQrCode\" max-width=\"376\" persistent>\n <v-card>\n <div class=\"text-xs-right\">\n <v-btn fab small flat @click=\"closeQrCode\">\n <v-icon>mdi-close</v-icon>\n </v-btn>\n </div>\n <v-card-text>\n <template v-if=\"qrimage\">\n <img :src=\"qrimage\" style=\"width: 100%\" />\n <div class=\"text-xs-center mt-2\">\n {{\n $t(\n 'If you already have proceeded a payment, you may close this popup window.'\n )\n }}\n </div>\n </template>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <template v-if=\"gbcharge\">\n <form\n ref=\"gbchargeform\"\n name=\"form\"\n :action=\"`${gbpath}/v1/tokens/3d_secured`\"\n method=\"POST\"\n >\n publicKey:\n <input type=\"text\" name=\"publicKey\" :value=\"gbpublickey\" /><br />\n gbpReferenceNo:\n <input\n type=\"text\"\n name=\"gbpReferenceNo\"\n :value=\"gbcharge.gbpReferenceNo\"\n />\n </form>\n </template>\n </div>\n</template>\n\n<script>\nimport MainTransfer from './MainTransfer'\nimport { mapGetters } from 'vuex'\n\nimport $ from 'jquery'\nimport config from '@/config'\nimport axios from 'axios'\nimport nl2br from 'vue-nl2br'\nimport SyncLoader from 'vue-spinner/src/SyncLoader.vue'\n\nimport Loading from '@/components/Loading.vue'\nimport Modal from '@/components/Modal.vue'\nimport Cover from '@/components/Cover.vue'\nimport UploadFile from '@/components/UploadFile.vue'\nimport TermAndCondition from '@/components/ecommerce/TermAndCondition.vue'\nimport MerchantDetail from '@/components/ecommerce/MerchantDetail'\nimport CartItem from '@/components/payment/CartItem.vue'\nimport BankNumber from '@/components/BankNumber.vue'\nimport ShippingType from '@/components/ecommerce/ShippingType.vue'\nimport CartSummary from '@/components/ecommerce/CartSummary.vue'\nimport GmapAddress from '@/components/ecommerce/GmapAddress2.vue'\nimport { bearhousecalculateshippingprice } from '@/assets/js/BearHouse.js'\nimport moment from 'moment'\n// import querystring from \"querystring\";\nimport numeral from 'numeral'\n\nimport { shippingprice as PurelifePostcode } from './PurelifePostcode.js'\n\nconst dict = {\n en: {\n custom: {\n shippingAddress: {\n isBearhousezipcode: 'Wrong shipping address'\n }\n }\n },\n th: {\n custom: {\n shippingAddress: {\n isBearhousezipcode: 'ที่à¸à¸¢à¸¹à¹ˆà¸ˆà¸±à¸”ส่งไม่ถูà¸à¸•้à¸à¸‡'\n }\n }\n },\n la: {\n custom: {\n shippingAddress: {\n isBearhousezipcode: 'ที่à¸à¸¢à¸¹à¹ˆà¸ˆà¸±à¸”ส่งไม่ถูà¸à¸•้à¸à¸‡'\n }\n }\n }\n}\n\nexport default {\n mixins: [MainTransfer],\n data() {\n return {\n loadingQrcode: false,\n showDatePicker: false,\n pickupdate: null,\n mindate: moment().add('1', 'days').format('YYYY-MM-DD'),\n maxdate: moment().add('15', 'days').format('YYYY-MM-DD'),\n timestamp: moment().format('x'),\n app: 'facebook',\n khaiwhandistance: null,\n lastordercoords: null,\n gmapvalue: null,\n pageid: null,\n userid: null,\n paiddate: null,\n paidtime: null,\n products: {},\n remark: '',\n transferType: '',\n khaiwhanshippingprice: 0,\n shippingprice: 0,\n\n additionalproduct_charge: 0,\n ems_charge: 0,\n normal_charge: 0,\n kerry_charge: 0,\n total: 0,\n totalincludediscount: 0,\n discount: 0,\n\n shippingType: undefined,\n\n loading: false,\n pageLoading: true,\n khaiwhanselectedbank: {\n bankname: '',\n banknum: '',\n bankowner: ''\n },\n isCompleted: false,\n isEmptyShoppingCart: false,\n\n shippingAddress: null,\n showAlert: false,\n showProduct: false,\n shippinglist: undefined,\n showQrCode: false,\n qrimage: '',\n intervalQrCode: null,\n timer: 300,\n isRequest: true,\n referenceNo: '',\n\n config: {\n color: config.color\n },\n placesinfo: '',\n sessiontoken: null,\n banktransferinfo: null,\n banktransferinfo_photo: null,\n mainBankTransferInfoPhoto: null,\n paymentSlipImage: null,\n branchlocation: '',\n\n showTerm: false,\n customerName: null,\n customerPhone: null,\n // qrimage: \"\",\n showmap: false,\n pickuptime: null,\n pickuptimelist: ['10:30 - 12:30', '13:30 - 15:30', '16:00 - 18:00'],\n pickuptimelist2: ['08:00 - 18:00'],\n pickuptimelist3: ['10:30 - 15:00'],\n\n chooseShippingType: 'delivery',\n ableToShipping: false,\n pickuplocation: 'รับสินค้าที่ สาขา 1 ร้านเพียวไลท์ (รามà¸à¸´à¸™à¸—รา)',\n placesinfolabel: ''\n }\n },\n mounted: async function () {\n let vm = this\n\n vm.$validator.localize(dict)\n vm.$validator.localize(this.currentLang)\n\n var format = 'hh:mm:ss'\n\n var time = moment(moment(), format),\n beforeTime = moment('17:00:00', format),\n afterTime = moment('23:59:59', format)\n\n if (time.isBetween(beforeTime, afterTime)) {\n this.mindate = moment().add('2', 'days').format('YYYY-MM-DD')\n this.maxdate = moment().add('16', 'days').format('YYYY-MM-DD')\n } else {\n this.mindate = moment().add('1', 'days').format('YYYY-MM-DD')\n this.maxdate = moment().add('15', 'days').format('YYYY-MM-DD')\n }\n\n vm.loading = true\n\n if (vm.$route.query.userid) {\n vm.userid = vm.$route.query.userid\n }\n\n if (vm.$route.query.pkey) {\n vm.omise_key = vm.$route.query.pkey\n }\n\n if (vm.$route.query.app) {\n vm.app = vm.$route.query.app\n }\n\n if (vm.$route.query.sessiontoken) {\n vm.sessiontoken = vm.$route.query.sessiontoken\n }\n vm.pageLoading = true\n\n vm.pageid = vm.pageProfile.pageid\n\n if (vm.pageProfile.fbpay_status) {\n vm.transferType = 'fbpay'\n } else if (vm.pageProfile.gbprime_status) {\n vm.transferType = 'qrcode'\n } else {\n vm.transferType = 'transfer'\n }\n\n document.title = vm.pageProfile.pagename\n vm.$store.dispatch('updateShopColor', vm.pageProfile.shopcolor)\n vm.pageLoading = false\n\n if (vm.userid) {\n try {\n let firstletterofuserid = vm.userid.charAt(0)\n if (firstletterofuserid && firstletterofuserid.toLowerCase() == 'u') {\n vm.app = 'line'\n }\n } catch (error) {\n // eslint-disable-next-line\n console.error(error)\n }\n // var response_lang = await vm.$store.dispatch(\"getUserShopLang\", {\n // pageid: vm.pageProfile.pageid,\n // userid: vm.userid,\n // });\n // if (response_lang) {\n // vm.$store.dispatch(\"setLang\", response_lang.usershoplang);\n // }\n vm.$store.dispatch('setLang', vm.pageProfile.shoplang)\n\n vm.getUserDetail().then(function (data) {\n vm.customerName = data.name\n vm.customerPhone = data.phone\n if (data.address) {\n // eslint-disable-next-line no-useless-escape\n var gmapregex =\n /https\\:\\/\\/www\\.google\\.com\\/maps\\?\\=(\\d)+(\\.(\\d)+)?\\,(\\d)+(\\.(\\d)+)?/gm\n var address = data.address.replace(gmapregex, '').replace('\\n', '')\n vm.shippingAddress = address\n }\n })\n\n // var data = {\n // userid: vm.userid,\n // pageid: vm.pageProfile.pageid,\n // lang: vm.currentLang\n // };\n // vm.$store.dispatch(\"setLang\", vm.currentLang);\n // vm.$store.dispatch(\"updatePageProfile\", data);\n }\n // vm.$store.dispatch(\"getWholeSaleStatus\", vm.pageProfile.pageid).then(function() {\n if (vm.pageProfile.wholesale_status === true) {\n vm.$store.dispatch('getWholeSale', vm.pageProfile.pageid)\n }\n // });\n await vm.getProducts()\n await vm.getUserCart(this.pageProfile.shippinglist)\n await vm.getbranchlocation()\n // await vm.getTransferDetail();\n vm.loading = false\n },\n components: {\n SyncLoader,\n Loading,\n Modal,\n Cover,\n MerchantDetail,\n nl2br,\n UploadFile,\n TermAndCondition,\n CartItem,\n BankNumber,\n ShippingType,\n CartSummary,\n GmapAddress\n },\n computed: {\n ...mapGetters({\n cart: 'getCart',\n currentLang: 'currentLang',\n loadingPageProfile: 'getLoadingPageProfile',\n pageProfile: 'getPageProfile',\n theme: 'getTheme'\n }),\n bearhouseshippingprice() {\n var zipcode = ''\n if (\n this.shippingAddress &&\n this.shippingAddress.match(/([1-9][0-9]{4})|^([1-9][0-9]{4})/g)\n ) {\n zipcode = this.shippingAddress\n .match(/([^0-9][1-9][0-9]{4})|^([1-9][0-9]{4})/g)[0]\n .trim()\n }\n return bearhousecalculateshippingprice(zipcode, this.cart.length)\n },\n isBearhouse() {\n return (\n this.pageProfile &&\n this.$store.state.bearhouse.includes(this.pageProfile.pageid)\n )\n },\n isOoca() {\n return (\n this.pageProfile &&\n ['100935418246290', '142088386194745'].includes(this.pageProfile.pageid)\n )\n },\n pagename: function () {\n return this.$route.query.pageid\n ? this.$route.query.pageid\n : this.$route.params.id\n ? this.$route.params.id\n : undefined\n },\n isGaiGao() {\n return this.pageProfile && this.pageProfile.type == 'gaigao'\n },\n totalPrice: function () {\n return (\n this.totalincludediscount +\n (this.customshippingprice || 0) +\n (this.additionalproduct_charge || 0)\n )\n },\n // isCartOutOfStock: function() {\n // return (\n // this.cart.filter(function(el) {\n // if (el.optionDetail == null) {\n // return true;\n // }\n // if (parseInt(el.optionDetail[2]) < el.quantity) {\n // return true;\n // }\n // return false;\n // }).length > 0\n // );\n // },\n ableToBuy() {\n if (this.chooseShippingType == 'delivery') {\n return this.ableToShipping\n } else {\n return true\n }\n },\n customshippingprice() {\n if (this.chooseShippingType == 'delivery') {\n return this.shippingprice\n } else {\n return 0\n }\n }\n },\n methods: {\n async closeQrCode() {\n this.showQrCode = false\n },\n allowedDates(val) {\n const betweenSongkran = moment(val).isBetween('2022-04-13', '2022-04-21')\n if (betweenSongkran) {\n return false\n }\n let holiday = ['2022-07-13', '2022-07-14', '2022-07-30']\n let isHoliday = holiday.some((el) => {\n return moment(val).isSame(el)\n })\n if (isHoliday) {\n return false\n }\n if (\n this.pickuplocation &&\n this.pickuplocation.includes('สาขา 2 ร้านนมเพียว') &&\n this.chooseShippingType == 'pickup'\n ) {\n return (\n moment(val).weekday() == 1 ||\n moment(val).weekday() == 3 ||\n moment(val).weekday() == 5\n )\n }\n return true\n },\n async contactAdmin() {\n if (this.$liff.isInClient()) {\n // eslint-disable-next-line no-undef\n await this.$liff.sendMessages([\n {\n type: 'text',\n text: 'ติดต่à¸à¹à¸à¸”มิน'\n }\n ])\n // eslint-disable-next-line no-undef\n await this.$liff.closeWindow()\n } else {\n window.location.href =\n 'https://m.me/' + this.pageid + '?ref=contactadmin'\n // eslint-disable-next-line no-undef\n MessengerExtensions.requestCloseBrowser(\n function success() {},\n function error() {\n window.close()\n }\n )\n }\n },\n getbranchlocation() {\n var vm = this\n return new Promise((resolve, reject) => {\n axios\n .get(\n config.getConfig('serverUrl') +\n 'branchlocation?pageid=' +\n this.pageid\n )\n .then((response) => {\n if (response.data.responsecode == 200) {\n vm.branchlocation = response.data.branchlocation\n let externalScript = document.createElement('script')\n externalScript.setAttribute(\n 'src',\n `https://maps.googleapis.com/maps/api/js?key=${response.data.googlekey}&language=th&libraries=places`\n )\n externalScript.async = true\n externalScript.defer = true\n externalScript.onload = () => {\n vm.showmap = true\n resolve()\n }\n document.head.appendChild(externalScript)\n // resolve();\n }\n })\n })\n },\n calCustomShippingPrice(distance_km, totalprice) {\n // var ceiling_distance_km = Math.ceil(distance_km);\n try {\n var ceiling_distance_km = 0\n var decimal = parseFloat((distance_km % 1).toFixed(1))\n distance_km = Math.floor(distance_km)\n if (decimal > 0.4) distance_km += 1\n ceiling_distance_km += distance_km\n } catch (error) {\n console.error(error)\n return false\n }\n\n // 0-3 km ฟรีค่าส่ง\n // 3-5 km ค่าส่ง 10 บาท\n // 5-8 km ค่าส่ง 20 บาท\n // 8-20 บาท ค่าส่ง 50 บาท\n // 20-30 km ค่าส่ง 100 บาท\n // 30-50 km ค่าส่ง 150 บาท\n\n var price = 0\n if (totalprice < 200 || ceiling_distance_km > 50) {\n return false\n } else {\n var boxset = 0\n var drinkset = 0\n this.cart.map((cart) => {\n if ([11020, 11021, 11022].includes(cart.categoryid)) {\n boxset += parseInt(cart.quantity)\n }\n\n if ([11023].includes(cart.categoryid)) {\n drinkset += parseInt(cart.quantity)\n }\n })\n\n if (ceiling_distance_km > 30) {\n if (boxset >= 15) {\n price = 100\n } else {\n price = 150\n }\n } else if (ceiling_distance_km > 20) {\n price = 100\n } else if (ceiling_distance_km > 8) {\n price = 50\n } else if (ceiling_distance_km > 5) {\n price = 20\n } else if (ceiling_distance_km > 3) {\n price = 10\n } else {\n price = 0\n }\n\n if (ceiling_distance_km <= 30 && boxset >= 15) {\n price = 0\n }\n if (ceiling_distance_km <= 30 && drinkset >= 60) {\n price = 0\n }\n }\n\n // console.log(price);\n return price\n // if (totalprice >= 200) {\n // var chargeprice = 0;\n // } else {\n // var chargeprice = 20;\n // }\n // distance_km -= 3;\n // if (distance_km > 0) {\n // var decimal = parseFloat((distance_km % 1).toFixed(1));\n // distance_km = Math.floor(distance_km);\n // if (decimal > 0.4) distance_km += 1;\n // chargeprice += distance_km * 10;\n // }\n // return chargeprice;\n },\n gmapLocation() {\n var vm = this\n var locations = []\n var nearestlocation\n var stringlatlng =\n this.gmapvalue ||\n this.gmapvalue.lat.toString() + ',' + this.gmapvalue.lng.toString()\n // eslint-disable-next-line no-undef\n var service = new google.maps.DistanceMatrixService()\n var origins = vm.branchlocation.map((el) => el.lat_long)\n\n service.getDistanceMatrix(\n {\n origins,\n destinations: [stringlatlng],\n travelMode: 'DRIVING',\n region: 'TH',\n drivingOptions: {\n departureTime: new Date(),\n trafficModel: 'optimistic'\n }\n },\n callback\n )\n function callback(response, status) {\n if (status == 'OK') {\n var bodyjson = response\n for (var i = 0; i < bodyjson.rows.length; i++) {\n var row = bodyjson.rows[i].elements[0].distance\n\n try {\n locations.push({\n name: vm.branchlocation[i].name,\n distance: parseFloat((row.value / 1000).toFixed(2)),\n pictureurl: vm.branchlocation[i].pictureurl\n })\n } catch (error) {\n console.error(error)\n }\n }\n\n locations.sort((a, b) => {\n var x = a.distance\n var y = b.distance\n return x < y ? -1 : x > y ? 1 : 0\n })\n\n nearestlocation = locations[0]\n vm.shippingAddress = response.destinationAddresses[0]\n vm.placesinfo = response.destinationAddresses[0]\n vm.khaiwhandistance = nearestlocation\n var shippingprice = vm.calCustomShippingPrice(\n nearestlocation.distance,\n vm.totalincludediscount\n )\n var inBKK = false\n try {\n var postcode = vm.shippingAddress.match(/\\d{5}/)\n if (postcode) {\n inBKK = PurelifePostcode(postcode[0])\n }\n } catch (error) {\n //\n }\n\n vm.ableToShipping = shippingprice !== false && inBKK !== false\n\n vm.shippingprice = vm.ableToShipping ? shippingprice : 0\n\n if (vm.branchlocation && vm.branchlocation.length > 0) {\n vm.banktransferinfo_photo = nearestlocation.pictureurl\n } else {\n vm.banktransferinfo_photo = vm.mainBankTransferInfoPhoto\n }\n\n vm.placesinfolabel =\n vm.placesinfo +\n ` (${vm.khaiwhandistance ? vm.khaiwhandistance.distance : 0} Km) ${\n shippingprice === false\n ? `<div style=\"margin-top: 5px;border-radius: 5px;padding: 5px; color: white; background: red\"> ไม่สามารถจัดส่งได้</div>`\n : `<div style=\"margin-top: 5px;border-radius: 5px;padding: 5px; color: white; background: green\">ค่าส่ง ${shippingprice} บาท</div>`\n }`\n // vm.khaiwhanselectedbank = vm.khaiwhanbank.find((el) => el.ref == nearestlocation.name);\n } else {\n // 400\n }\n }\n },\n async checkOrderStatus() {\n // var total = numeral(0.01).format(\"0.00\");\n var total = numeral(this.totalPrice).format('0.00')\n var response = await axios.get(\n config.getConfig('serverUrl') +\n `gbcompletedwithrefnoverify?referenceNo=${this.referenceNo}&pageid=${this.pageid}&userid=${this.userid}&amount=${total}`\n )\n return response\n },\n requestQrCode() {\n var vm = this\n return new Promise((resolve, reject) => {\n var data = new FormData()\n var total = numeral(vm.totalPrice).format('0.00')\n // var total = numeral(0.01).format(\"0.00\");\n vm.referenceNo = moment().format('x')\n\n data.append(\n 'token',\n vm.pageProfile.gbprime_token\n // \"PUD9omECXQTwqePYfQzTS+S+lExcJJVNe3Ov0G2swnmSLml8MW3Ws6AKuvavsm5ydRzYSXuTFhyW1Q52EqXQUATUTsI+i1yCX7HDupxf7UEt3FBpQIKtTpo2bf0GetHO63MLQuHRsGk5cCe3H/Rw+NyC/7+HkSScuRlx5ikPosSJ9aeG\"\n )\n data.append('amount', total)\n data.append('referenceNo', vm.referenceNo)\n data.append('detail', '-')\n data.append('customerName', vm.customerName)\n data.append(\n 'backgroundUrl',\n `https://zwizai.herokuapp.com/gbcompletedcartwithrefno?referenceNo=${vm.referenceNo}&amount=${total}&userid=${vm.userid}&pageid=${vm.pageid}`\n )\n\n var xhr = new XMLHttpRequest()\n // xhr.withCredentials = true;\n\n xhr.addEventListener('readystatechange', function () {\n if (this.readyState === 4) {\n if (this.status == 200) {\n var arrayBuffer = this.response // Note: not oReq.responseText\n if (arrayBuffer) {\n resolve(new Uint8Array(arrayBuffer))\n } else {\n reject()\n }\n //\n } else {\n reject()\n }\n }\n })\n\n xhr.open('POST', 'https://api.gbprimepay.com/gbp/gateway/qrcode')\n xhr.responseType = 'arraybuffer'\n // xhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\n xhr.send(data)\n })\n },\n async submitOrder() {\n if (this.isEmptyShoppingCart) {\n return false\n }\n\n var total = this.total + this.additionalproduct_charge\n if (this.shippingType) {\n total += this.shippingType.value\n }\n if (this.chooseShippingType == 'pickup') {\n this.shippingAddress = this.pickuplocation\n }\n let data = {\n amount: this.totalPrice.toFixed(2).toString().replace('.', ''),\n pageid: this.pageid,\n userid: this.userid,\n app: this.app,\n name: this.customerName,\n address: this.shippingAddress,\n phone: this.customerPhone,\n nameaddress:\n this.customerName +\n ' , ' +\n this.shippingAddress +\n ' , ' +\n this.customerPhone,\n shippingtype: this.shippingType ? this.shippingType.type : null,\n note: this.paymentSlipImage,\n remark:\n this.remark +\n ' รับสินค้าวันที่ ' +\n this.pickupdate +\n ' เวลา ' +\n this.pickuptime,\n payment: this.transferType == 'qrcode' ? 'qrcode' : null,\n shippingcharge: (\n (this.shippingType ? this.shippingType.value : 0) +\n this.additionalproduct_charge\n )\n .toFixed(2)\n .toString()\n .replace('.', ''),\n total: total.toFixed(2).toString().replace('.', ''),\n pageprofile: this.pageProfile\n }\n if (this.transferType == 'qrcode') {\n data.paiddate = moment()\n data.transactionid = this.referenceNo\n } else {\n data.paiddate = moment(`${this.paiddate} ${this.paidtime}`)\n }\n data.cart_ids = this.$store.state.cart_ids || []\n let url = config.getConfig('serverUrl') + 'banktransfernotify'\n if (this.sessiontoken != null || this.sessiontoken != '') {\n url += '?sessiontoken=' + this.sessiontoken\n }\n if (this.$route.query.from) {\n data.from = this.$route.query.from\n } else {\n try {\n var device = this.$liff.getOS()\n var version = this.$liff.getVersion()\n await this.$liff.ready\n\n if (\n this.userid.indexOf('__') != -1 &&\n device &&\n version &&\n !this.$liff.isInClient()\n ) {\n data.from = 'livechat'\n }\n } catch (error) {\n // eslint-disable-next-line\n console.log(error)\n }\n }\n\n try {\n var response = await axios.post(url, data)\n\n // JSON responses are automatically parsed.\n response = response.data\n if (response.responsecode == 200) {\n this.isCompleted = true\n await this.$store.dispatch('deleteAllItemsInCart')\n // eslint-disable-next-line\n if (this.$liff.isInClient()) {\n // eslint-disable-next-line no-undef\n await this.$liff.sendMessages([\n {\n type: 'text',\n text: 'Order: ' + response.orderid\n }\n ])\n // eslint-disable-next-line no-undef\n await this.$liff.closeWindow()\n } else {\n // eslint-disable-next-line no-undef\n MessengerExtensions.requestCloseBrowser(\n function success() {},\n function error() {\n window.close()\n }\n )\n }\n } else if (response.responsecode == 201) {\n this.isCompleted = true\n await this.$store.dispatch('deleteAllItemsInCart')\n let url = '/ecommerce/' + this.pagename\n if (this.userid && this.userid != null && this.userid != '') {\n url += '?userid=' + this.userid\n }\n this.$router.push({ path: url })\n } else {\n await this.$swal({\n title: this.$t('Error'),\n text: this.$t('Something went wrong. Please try it again.'),\n type: 'error',\n confirmButtonText: this.$t('Confirm'),\n cancelButtonText: this.$t('Cancel'),\n reverseButtons: true\n })\n }\n } catch (error) {\n this.loading = false\n await this.$swal({\n title: this.$t('Error'),\n text: this.$t('Something went wrong. Please try it again.'),\n type: 'error',\n confirmButtonText: this.$t('Confirm'),\n cancelButtonText: this.$t('Cancel'),\n reverseButtons: true\n })\n }\n },\n async getQrCode2() {\n var result = await this.$validator.validate()\n if (!result) {\n // do stuff if not valid.\n this.goToErrorInput()\n throw 400\n }\n\n try {\n this.loadingQrcode = true\n let photo = await this.gbcreaterefnofromcart()\n var response = await this.requestQrCode2(photo)\n var binary = response.reduce(\n (data, b) => (data += String.fromCharCode(b)),\n ''\n )\n this.qrimage = 'data:image/jpeg;base64,' + btoa(binary)\n } catch (error) {\n throw error\n }\n this.loadingQrcode = false\n },\n async gbcreaterefnofromcart() {\n try {\n var data = { ...this.formatOrderRequest(), ...this.extraOrderRequest() }\n\n let detail = []\n this.cart.map((el) => {\n detail.push(\n `${el.name}${el.option ? ` (${el.option})` : ''} x ${el.quantity}`\n )\n })\n\n let stringdetail = detail.join(',')\n if (stringdetail.length < 250) {\n stringdetail.slice(0, 250)\n }\n\n data.detail = stringdetail\n data.note = this.paymentSlipImage\n if (this.$route.query.from) {\n data.from = this.$route.query.from\n } else {\n try {\n var device = this.$liff.getOS()\n var version = this.$liff.getVersion()\n await this.$liff.ready\n\n if (\n this.userid.indexOf('__') != -1 &&\n device &&\n version &&\n !this.$liff.isInClient()\n ) {\n data.from = 'livechat'\n }\n } catch (error) {\n // eslint-disable-next-line\n console.log(error)\n }\n }\n\n let response = await axios.post(\n config.getConfig('serverUrl') + 'gbcreaterefnofromcart',\n data,\n {\n params: {},\n headers: { AUTHORIZATION: 'Bearer xxx xxx' },\n responseType: 'arraybuffer'\n }\n )\n if (response.status == 200) {\n // console.log(response.data);\n return response.data\n } else {\n throw 400\n }\n } catch (error) {\n throw error\n }\n },\n formatOrderRequest() {\n var total = this.total + this.customshippingprice\n if (this.shippingType) {\n total += this.shippingType.value\n }\n var payment\n if (this.transferType) {\n payment = this.transferType\n } else {\n payment = null\n }\n var note = this.paymentSlipImage\n\n this.shippingAddress\n\n var combine_address = ''\n combine_address = this.shippingAddress.replace(/,/g, '')\n if (\n this.shippingAddress2 &&\n this.shippingAddress2.sub_district &&\n this.shippingAddress2.district &&\n this.shippingAddress2.province &&\n this.shippingAddress2.zipcode\n ) {\n var inBangkok = this.shippingAddress2.province == 'à¸à¸£à¸¸à¸‡à¹€à¸—พมหานคร'\n combine_address =\n combine_address +\n ' , ' +\n [\n (inBangkok ? 'à¹à¸‚วง' : 'ตำบล') +\n this.shippingAddress2.sub_district.replace(/,/g, ''),\n (inBangkok ? 'เขต' : 'à¸à¸³à¹€à¸ à¸') +\n this.shippingAddress2.district.replace(/,/g, ''),\n 'จังหวัด' + this.shippingAddress2.province.replace(/,/g, ''),\n this.shippingAddress2.zipcode.replace(/,/g, '')\n ].join(' , ')\n }\n\n let data = {\n amount: this.totalPrice.toFixed(2).toString().replace('.', ''),\n pageid: this.pageid,\n userid: this.userid,\n app: this.app,\n name: this.customerName,\n address: combine_address,\n phone: this.customerPhone,\n payment: payment,\n nameaddress:\n this.customerName.replace(/,/g, '') +\n ' , ' +\n combine_address +\n ' , ' +\n this.customerPhone.replace(/,/g, ''),\n shippingtype: this.shippingType ? this.shippingType.type : null,\n note: note,\n remark:\n this.pageProfile.type == 'monobo'\n ? this.remark + ';;' + this.bankname\n : this.remark,\n shippingcharge: (this.shippingType ? this.shippingType.value : 0)\n .toFixed(2)\n .toString()\n .replace('.', ''),\n total: total.toFixed(2).toString().replace('.', '')\n }\n\n if (this.sessiontoken != null || this.sessiontoken != '') {\n data.sessiontoken = this.sessiontoken\n }\n return data\n },\n extraOrderRequest() {\n var data = []\n // purelife customize start\n data.remark =\n this.remark +\n ' รับสินค้าวันที่ ' +\n this.pickupdate +\n ' เวลา ' +\n this.pickuptime\n // eslint-disable-next-line no-useless-escape\n var gmapregex =\n /https\\:\\/\\/www\\.google\\.com\\/maps\\?\\=(\\d)+(\\.(\\d)+)?\\,(\\d)+(\\.(\\d)+)?/gm\n var shippingAddress\n if (this.chooseShippingType == 'pickup') {\n this.shippingAddress = this.pickuplocation\n shippingAddress = this.pickuplocation\n } else {\n if (this.shippingAddress) {\n if (gmapregex.test(this.shippingAddress)) {\n this.shippingAddress = this.shippingAddress\n .replace(gmapregex, '')\n .replace('\\n', '')\n }\n shippingAddress =\n this.shippingAddress +\n '\\nhttps://www.google.com/maps?q=' +\n this.gmapvalue.lat.toString() +\n ',' +\n this.gmapvalue.lng.toString()\n }\n }\n data.nameaddress =\n this.customerName + ' , ' + shippingAddress + ' , ' + this.customerPhone\n data.shippingtype = this.khaiwhandistance.name\n data.shippingcharge = this.customshippingprice\n .toFixed(2)\n .toString()\n .replace('.', '')\n // purelife customize end\n\n return data\n },\n requestQrCode2(photo) {\n // var vm = this;\n return new Promise((resolve, reject) => {\n if (photo) {\n // var photobyte = vm.getByte(photo);\n resolve(new Uint8Array(photo))\n } else {\n reject()\n }\n })\n },\n async gbcreditSubmit() {\n var result = await this.$validator.validate()\n if (!result) {\n // do stuff if not valid.\n this.goToErrorInput()\n return false\n }\n if (this.isEmptyShoppingCart) {\n return false\n }\n this.loading = true\n var response = await this.getGBCreditToken()\n\n if (response.status == 200 && response.data.resultCode == '00') {\n var data = { ...this.formatOrderRequest(), ...this.extraOrderRequest(), pageprofile: this.pageProfile }\n data.creditcardtoken = response.data.card.token\n var order_response = await this.banktransfernotify(data)\n if (\n order_response.status == 200 &&\n order_response.data.responsecode == 200\n ) {\n this.gbcharge = {\n gbpReferenceNo: order_response.data.transactionid\n }\n await this.$nextTick()\n this.$refs.gbchargeform.submit()\n }\n }\n\n this.loading = false\n },\n getUserDetail: function () {\n let vm = this\n return new Promise((resolve, reject) => {\n axios\n .get(\n config.getConfig('serverUrl') +\n 'lastorderaddress?pageid=' +\n vm.pageid +\n '&userid=' +\n vm.userid\n )\n .then((response) => {\n // JSON responses are automatically parsed.\n response = response.data\n if (response.responsecode == 200) {\n if (response.data) {\n var gmapregex =\n /https\\:\\/\\/www\\.google\\.com\\/maps\\?\\=(\\d)+(\\.(\\d)+)?\\,(\\d)+(\\.(\\d)+)?/gm\n if (gmapregex.test(response.data.address)) {\n var coords = response.data.address.match(gmapregex)[0]\n coords = coords.split('@')[1].split(',')\n vm.lastordercoords = { lat: coords[0], lng: coords[1] }\n }\n resolve(response.data)\n } else {\n reject()\n }\n } else {\n reject()\n // console.log(response);\n }\n })\n })\n },\n openModal: function () {\n this.showTerm = true\n let vm = this\n window.location.hash = '#modal-open'\n window.onpopstate = function () {\n if (location.hash == '#modal-open') {\n // console.log(\"test\");\n } else {\n vm.showTerm = false\n }\n }\n },\n close: function () {\n var vm = this\n if (window.history.length == 0) {\n vm.showTerm = false\n } else {\n window.history.back()\n }\n },\n getTransferDetail: async function () {\n let vm = this\n var response = await axios.get(\n config.getConfig('serverUrl') + 'banktransferinfo?pageid=' + vm.pageid\n )\n // JSON responses are automatically parsed.\n response = response.data\n if (response.responsecode == 200) {\n vm.banktransferinfo = response.banktransferinfo\n vm.banktransferinfo_photo = response.banktransferinfo_photo\n vm.mainBankTransferInfoPhoto = response.banktransferinfo_photo\n } else {\n //\n }\n },\n async qrHandleSubmit() {\n try {\n await this.getQrCode2()\n this.showQrCode = true\n } catch (error) {\n // console.log(error);\n }\n },\n handleSubmit: function () {\n let vm = this\n vm.$validator.validate().then((result) => {\n if (!result) {\n // do stuff if not valid.\n vm.goToErrorInput()\n return false\n }\n if (vm.isEmptyShoppingCart) {\n return false\n }\n vm.loading = true\n var data = { ...vm.formatOrderRequest(), ...vm.extraOrderRequest(), pageprofile: this.pageProfile }\n data.cart_ids = this.$store.state.cart_ids || []\n let url = config.getConfig('serverUrl') + 'banktransfernotify'\n if (vm.sessiontoken != null || vm.sessiontoken != '') {\n url += '?sessiontoken=' + vm.sessiontoken\n }\n if (vm.$route.query.from) {\n data.from = vm.$route.query.from\n } else {\n try {\n var device = vm.$liff.getOS()\n var version = vm.$liff.getVersion()\n vm.$liff.ready.then(() => {\n if (\n vm.userid.indexOf('__') != -1 &&\n device &&\n version &&\n !vm.$liff.isInClient()\n ) {\n data.from = 'livechat'\n }\n })\n } catch (error) {\n // eslint-disable-next-line\n console.log(error)\n }\n }\n axios\n .post(url, data)\n .then((response) => {\n // JSON responses are automatically parsed.\n response = response.data\n if (response.responsecode == 200) {\n vm.isCompleted = true\n vm.$store.dispatch('deleteAllItemsInCart')\n // eslint-disable-next-line\n if (vm.$liff.isInClient()) {\n // eslint-disable-next-line no-undef\n vm.$liff\n .sendMessages([\n {\n type: 'text',\n text: 'Order: ' + response.orderid\n }\n ])\n .then(() => {})\n // eslint-disable-next-line no-undef\n vm.$liff.closeWindow()\n } else {\n // eslint-disable-next-line no-undef\n MessengerExtensions.requestCloseBrowser(\n function success() {},\n function error() {\n window.close()\n }\n )\n }\n } else if (response.responsecode == 400) {\n vm.$swal({\n title: vm.$t('Error'),\n text: vm.$t(response.reason),\n type: 'error',\n confirmButtonText: vm.$t('Confirm'),\n cancelButtonText: vm.$t('Cancel'),\n reverseButtons: true\n })\n } else if (response.responsecode == 201) {\n vm.isCompleted = true\n vm.$store.dispatch('deleteAllItemsInCart')\n let url = '/ecommerce/' + vm.pagename\n if (vm.userid && vm.userid != null && vm.userid != '') {\n url += '?userid=' + vm.userid\n }\n vm.$router.push({ path: url })\n } else {\n vm.$swal({\n title: vm.$t('Error'),\n text: vm.$t('Something went wrong. Please try it again.'),\n type: 'error',\n confirmButtonText: vm.$t('Confirm'),\n cancelButtonText: vm.$t('Cancel'),\n reverseButtons: true\n })\n }\n vm.loading = false\n })\n .catch(() => {\n vm.loading = false\n vm.$swal({\n title: vm.$t('Error'),\n text: vm.$t('Something went wrong. Please try it again.'),\n type: 'error',\n confirmButtonText: vm.$t('Confirm'),\n cancelButtonText: vm.$t('Cancel'),\n reverseButtons: true\n })\n })\n })\n },\n\n // getUserCart: function() {\n // let vm = this;\n // return new Promise((resolve, reject) => {\n // axios\n // .get(\n // config.getConfig(\"serverUrl\") + \"usercart?pageid=\" + vm.pageid + \"&userid=\" + vm.userid\n // )\n // .then((response) => {\n // // JSON responses are automatically parsed.\n // response = response.data;\n // if (response.responsecode == 200) {\n // // vm.$store.dispatch('setCart',response.cartarray)\n\n // vm.banktransferinfo = response.banktransferinfo;\n // vm.banktransferinfo_photo = response.banktransferinfo_photo;\n // if (response.cartarray) {\n // if (response.cartarray.length == 0) {\n // vm.isEmptyShoppingCart = true;\n // }\n // var product_id_list = [];\n // var products = [];\n\n // $.each(response.cartarray, function(index, val) {\n // product_id_list.push(val.productid);\n\n // if (vm.products[val.productid]) {\n // var stock = vm.products[val.productid].productstock;\n // var option = stock.find(function(el) {\n // return el[1] == val.option;\n // });\n // }\n // products.push({\n // photourl: val.photourl,\n // quantity: val.quantity,\n // name: val.name,\n // option: val.option,\n // id: val.productid,\n // price: parseFloat(val.price),\n // discountprice: parseFloat(val.discountprice),\n // optionDetail: option,\n // categoryid: val.categoryid,\n // cart_remark: val.cart_remark,\n // });\n // });\n\n // if (products.length > 0) {\n // let url =\n // config.getConfig(\"serverUrl\") +\n // \"productbundle?productid=\" +\n // product_id_list.join(\",\");\n // axios.get(url).then((response) => {\n // response = response.data;\n // if (response.responsecode == 200) {\n // var allproductbundle = response.productbundlelist;\n // $.each(products, function(index, product) {\n // var p = product;\n // var bundles = [];\n // $.each(allproductbundle, function(bindex, bundle) {\n // if (bundle.productid == p.id) {\n // bundles.push(bundle);\n // }\n // });\n\n // p.productbundle = bundles;\n\n // vm.$store.dispatch(\"addToCart\", p);\n // });\n // }\n // });\n // }\n\n // vm.additionalproduct_charge = parseFloat(response.additionalproduct_charge);\n // vm.ems_charge = parseFloat(response.ems_charge);\n // vm.normal_charge = parseFloat(response.normal_charge);\n // vm.kerry_charge = parseFloat(response.kerry_charge);\n // vm.total = parseFloat(response.total);\n // vm.totalincludediscount = parseFloat(response.totalincludediscount);\n // vm.discount = parseFloat(response.discount);\n\n // vm.shippinglist = response.shippinglist;\n // }\n // resolve();\n // } else {\n // // console.log(response);\n // reject();\n // }\n // });\n // });\n // },\n goToShop: function () {\n let vm = this\n let url = '/ecommerce/' + vm.pagename\n if (vm.userid && vm.userid != null && vm.userid != '') {\n url += '?userid=' + vm.userid\n if (\n vm.sessiontoken &&\n vm.sessiontoken != null &&\n vm.sessiontoken != ''\n ) {\n url += '&sessiontoken=' + vm.sessiontoken\n }\n }\n vm.$router.push({ path: url })\n },\n getProducts: function () {\n let vm = this\n return new Promise((resolve, reject) => {\n var data = {\n pageid: vm.pageid\n }\n if (\n vm.pageProfile &&\n vm.pageProfile.useketshop == true &&\n vm.pageProfile.ketshop_api_key &&\n vm.pageProfile.ketshop_api_secret\n ) {\n data['ketshop_api_key'] = vm.pageProfile.ketshop_api_key\n data['ketshop_api_secret'] = vm.pageProfile.ketshop_api_secret\n }\n axios\n .get(config.getConfig('serverUrl') + 'products', {\n params: data\n })\n .then((response) => {\n // JSON responses are automatically parsed.\n response = response.data\n if (response.responsecode == 200) {\n vm.products = {}\n $.each(response.productlist, function (index, val) {\n response.productlist[index].price = parseFloat(\n response.productlist[index].price\n )\n response.productlist[index].discountprice = parseFloat(\n response.productlist[index].discountprice\n )\n response.productlist[index].isOutOfStock = false\n\n if (response.productlist[index].productstock.length > 0) {\n var haveStock = false\n $.each(val.productstock, function (pindex, pval) {\n if (\n parseInt(\n response.productlist[index].productstock[pindex][2]\n ) > 0\n ) {\n haveStock = true\n }\n\n var price = 0\n var discount = 0\n\n if (pval[3] == null && pval[4] == null) {\n price = parseFloat(val.price)\n discount = parseFloat(val.discountprice)\n } else {\n if (pval[3] == null) {\n price = parseFloat(val.price)\n } else {\n price = parseFloat(\n response.productlist[index].productstock[pindex][3]\n )\n }\n\n if (pval[4] == null) {\n discount =\n response.productlist[index].productstock[pindex][3]\n } else {\n discount = parseFloat(\n response.productlist[index].productstock[pindex][4]\n )\n }\n }\n\n response.productlist[index].productstock[pindex][3] = price\n\n response.productlist[index].productstock[pindex][4] =\n discount\n })\n\n if (!haveStock) {\n response.productlist[index].isOutOfStock = true\n }\n } else {\n response.productlist[index].isOutOfStock = true\n }\n if (val) {\n vm.products[val.id] = val\n }\n })\n\n resolve()\n } else {\n // console.log(response);\n reject()\n }\n })\n })\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PurelifeTransfer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PurelifeTransfer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PurelifeTransfer.vue?vue&type=template&id=6ef4d15d&\"\nimport script from \"./PurelifeTransfer.vue?vue&type=script&lang=js&\"\nexport * from \"./PurelifeTransfer.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}