[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 2366.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2366],{970:(e,t,r)=>{r.d(t,{A:()=>l});const l=Object.freeze({PAID:5,UNPAID:10})},2366:(e,t,r)=>{r.r(t),r.d(t,{default:()=>be});var l=r(9726),o={class:"capitalize text-2xl font-bold mb-2 text-primary"},n={class:"mb-7 font-medium capitalize"},a={class:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-8"},s={class:"p-3 rounded-2xl shadow-xs bg-white"},i={class:"text-shopperz-pink text-2xl font-bold mb-1"},d={class:"font-medium text-text"},c={class:"p-3 rounded-2xl shadow-xs bg-white"},p={class:"text-shopperz-orange text-2xl font-bold mb-1"},m={class:"font-medium text-text"},u={class:"p-3 rounded-2xl shadow-xs bg-white"},h={class:"text-shopperz-purple text-2xl font-bold mb-1"},y={class:"font-medium text-text"},g={class:"p-3 rounded-2xl shadow-xs bg-white"},b={class:"text-shopperz-blue text-2xl font-bold mb-1"},x={class:"font-medium text-text"},f={class:"flex items-center justify-between mb-5"},v={class:"text-xl font-bold capitalize"},E={class:"rounded-2xl shadow-card bg-white mobile:mb-20"},w={class:"max-md:overflow-x-auto"},N={class:"w-full text-left text-sm capitalize"},V={class:"font-semibold border-b-2 border-gray-200"},S={class:"p-4"},k={class:"p-4"},A={class:"p-4"},_={class:"p-4"},D={class:"p-4"},B={class:"p-4"},C={key:0,class:"font-medium"},$={class:"p-4 border-t border-gray-100"},I={class:"font-semibold mb-1"},O={class:"text-xs text-text"},T={class:"p-4 border-t border-gray-100"},z={class:"p-4 border-t border-gray-100"},P={class:"p-4 border-t border-gray-100"},L={class:"p-4 border-t border-gray-100"},R={class:"p-4 border-t border-gray-100"},U={class:"relative group w-fit"},q={class:"rounded-lg shadow-md absolute top-8 ltr:right-0 rtl:left-0 z-30 border border-gray-100 bg-white transition-all duration-300 origin-top scale-y-0 group-hover:scale-y-100"},H=["onClick"],j={key:1,class:"db-table-body"},F={class:"db-table-body-tr"},M={class:"db-table-body-td text-center",colspan:"6"},W={class:"p-4"},Y={class:"max-w-[300px] mx-auto mt-2"},K=["src"],G={class:"d-block mt-3 text-lg"},J={id:"orderReceiptPrint",class:"fixed inset-0 z-50 p-3 w-screen h-dvh overflow-y-auto bg-black/50 transition-all duration-500 opacity-0 invisible"},X={class:"w-full max-w-[302px] mx-auto bg-white transition-all duration-500",id:"print"},Q={class:"modal-header hidden-print"},Z={class:"text-xs leading-5 capitalize text-white"},ee={type:"button",class:"flex items-center justify-center gap-1.5 py-2 px-4 rounded bg-[#1AB759]"},te={class:"text-xs leading-5 capitalize text-white"};var re=r(1811),le=r(6719),oe=r(8655),ne=r(4233),ae=r(908),se=r(970),ie=r(3106),de=r(5316);function ce(e){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(e)}function pe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ce(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var l=r.call(e,t||"default");if("object"!=ce(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const me={name:"OverviewComponent",components:{LoadingComponent:re.A,OrderReceiptComponent:ie.A},directives:{print:de.A},data:function(){return{loading:{isActive:!1},printObj:{id:"print",popTitle:this.$t("menu.order_receipt")},enums:{paymentStatusEnum:se.A,orderStatusEnum:ae.A,orderStatusEnumArray:pe(pe(pe(pe(pe(pe({},ae.A.PENDING,this.$t("label.pending")),ae.A.CONFIRMED,this.$t("label.confirmed")),ae.A.ON_THE_WAY,this.$t("label.on_the_way")),ae.A.DELIVERED,this.$t("label.delivered")),ae.A.CANCELED,this.$t("label.canceled")),ae.A.REJECTED,this.$t("label.rejected")),paymentStatusEnumArray:pe(pe({},se.A.PAID,this.$t("label.paid")),se.A.UNPAID,this.$t("label.unpaid"))},search:{paginate:1,page:1,per_page:3,order_column:"id",order_by:"desc",active:le.A.YES},name:"",total_orders:"",total_completed_orders:"",total_returned_orders:"",wallet_balance:"",orderId:""}},mounted:function(){var e=this.$store.getters.authInfo;this.name=e.name,this.totalOrders(),this.totalCompletedOrders(),this.totalReturnedOrders(),this.walletBalance(),this.list()},computed:{setting:function(){return this.$store.getters["frontendSetting/lists"]},orders:function(){return this.$store.getters["frontendOrder/lists"]}},methods:{orderStatusClass:function(e){return oe.A.orderStatusClass(e)},handleOrderReceiptModal:function(e){this.orderId=e.id},reset:function(){var e=this;ne.A.hideTarget("orderReceiptPrint","modal-active"),setTimeout(function(){e.orderId=""},500)},list:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading.isActive=!0,this.search.page=t,this.$store.dispatch("frontendOrder/lists",{search:this.search}).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},totalOrders:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendOverview/totalOrders").then(function(t){e.total_orders=t.data.data.total_orders,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},totalCompletedOrders:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendOverview/totalCompletedOrders").then(function(t){e.total_completed_orders=t.data.data.total_completed_orders,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},totalReturnedOrders:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendOverview/totalReturnedOrders").then(function(t){e.total_returned_orders=t.data.data.total_returned_orders,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},walletBalance:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendOverview/walletBalance").then(function(t){e.wallet_balance=t.data.data.wallet_balance,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}}};var ue=r(5072),he=r.n(ue),ye=r(4507),ge={insert:"head",singleton:!1};he()(ye.A,ge);ye.A.locals;const be=(0,r(6262).A)(me,[["render",function(e,t,r,re,le,oe){var ne=(0,l.resolveComponent)("LoadingComponent"),ae=(0,l.resolveComponent)("RouterLink"),se=(0,l.resolveComponent)("OrderReceiptComponent"),ie=(0,l.resolveDirective)("print");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(ne,{props:le.loading},null,8,["props"]),(0,l.createElementVNode)("h2",o,(0,l.toDisplayString)(e.$t("menu.overview")),1),(0,l.createElementVNode)("p",n,(0,l.toDisplayString)(e.$t("label.welcome_back"))+", "+(0,l.toDisplayString)(le.name)+"!",1),(0,l.createElementVNode)("div",a,[(0,l.createElementVNode)("div",s,[t[1]||(t[1]=(0,l.createElementVNode)("i",{class:"lab-fill-bag bg-shopperz-pink shadow-pink w-10 h-10 !leading-10 rounded-lg text-lg text-center text-white mb-6"},null,-1)),(0,l.createElementVNode)("h3",i,(0,l.toDisplayString)(le.total_orders),1),(0,l.createElementVNode)("p",d,(0,l.toDisplayString)(this.$t("label.total_orders")),1)]),(0,l.createElementVNode)("div",c,[t[2]||(t[2]=(0,l.createElementVNode)("i",{class:"lab-fill-bag-check bg-shopperz-orange shadow-orange w-10 h-10 !leading-10 rounded-lg text-lg text-center text-white mb-6"},null,-1)),(0,l.createElementVNode)("h3",p,(0,l.toDisplayString)(le.total_completed_orders),1),(0,l.createElementVNode)("p",m,(0,l.toDisplayString)(this.$t("label.total_completed")),1)]),(0,l.createElementVNode)("div",u,[t[3]||(t[3]=(0,l.createElementVNode)("i",{class:"lab-fill-refresh bg-shopperz-purple shadow-purple w-10 h-10 !leading-10 rounded-lg text-lg text-center text-white mb-6"},null,-1)),(0,l.createElementVNode)("h3",h,(0,l.toDisplayString)(le.total_returned_orders),1),(0,l.createElementVNode)("p",y,(0,l.toDisplayString)(this.$t("label.total_returned")),1)]),(0,l.createElementVNode)("div",g,[t[4]||(t[4]=(0,l.createElementVNode)("i",{class:"lab-fill-wallet bg-shopperz-blue shadow-blue w-10 h-10 !leading-10 rounded-lg text-lg text-center text-white mb-6"},null,-1)),(0,l.createElementVNode)("h3",b,(0,l.toDisplayString)(le.wallet_balance),1),(0,l.createElementVNode)("p",x,(0,l.toDisplayString)(this.$t("label.wallet_balance")),1)])]),(0,l.createElementVNode)("div",f,[(0,l.createElementVNode)("h4",v,(0,l.toDisplayString)(e.$t("label.order_history")),1),(0,l.createVNode)(ae,{to:{name:"frontend.account.orderHistory"},class:"py-1 px-4 text-sm sm:py-2 sm:px-5 rounded-3xl capitalize sm:text-base font-semibold whitespace-nowrap bg-primary-slate text-primary transition-all duration-300 hover:bg-primary hover:text-white"},{default:(0,l.withCtx)(function(){return[(0,l.createTextVNode)((0,l.toDisplayString)(e.$t("label.show_full_history")),1)]}),_:1})]),(0,l.createElementVNode)("div",E,[(0,l.createElementVNode)("div",w,[(0,l.createElementVNode)("table",N,[(0,l.createElementVNode)("thead",V,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("th",S,(0,l.toDisplayString)(e.$t("label.order_id")),1),(0,l.createElementVNode)("th",k,(0,l.toDisplayString)(e.$t("label.products")),1),(0,l.createElementVNode)("th",A,(0,l.toDisplayString)(e.$t("label.status")),1),(0,l.createElementVNode)("th",_,(0,l.toDisplayString)(e.$t("label.payment")),1),(0,l.createElementVNode)("th",D,(0,l.toDisplayString)(e.$t("label.amount")),1),(0,l.createElementVNode)("th",B,(0,l.toDisplayString)(e.$t("label.action")),1)])]),oe.orders.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("tbody",C,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(oe.orders,function(r){return(0,l.openBlock)(),(0,l.createElementBlock)("tr",{key:r},[(0,l.createElementVNode)("td",$,[(0,l.createElementVNode)("h5",I,(0,l.toDisplayString)(r.order_serial_no),1),(0,l.createElementVNode)("p",O,(0,l.toDisplayString)(r.order_datetime),1)]),(0,l.createElementVNode)("td",T,(0,l.toDisplayString)(r.order_items)+" "+(0,l.toDisplayString)(e.$t("label.product")),1),(0,l.createElementVNode)("td",z,[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(["db-table-badge",oe.orderStatusClass(r.status)])},(0,l.toDisplayString)(le.enums.orderStatusEnumArray[r.status]),3)]),(0,l.createElementVNode)("td",P,[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(["ext-xs px-2 py-1 rounded-full",le.enums.paymentStatusEnum.PAID===r.payment_status?"text-[#2AC769] bg-[#E2FFEE]":"text-[#FB4E4E] bg-[#FFE8E8]"])},(0,l.toDisplayString)(le.enums.paymentStatusEnumArray[r.payment_status]),3)]),(0,l.createElementVNode)("td",L,(0,l.toDisplayString)(r.total_currency_price),1),(0,l.createElementVNode)("td",R,[(0,l.createElementVNode)("div",U,[t[5]||(t[5]=(0,l.createElementVNode)("button",{type:"button"},[(0,l.createElementVNode)("i",{class:"lab-fill-more-circle w-[30px] h-[30px] !leading-[30px] text-center rounded-lg text-white bg-primary shadow-action lab-font-size-16"})],-1)),(0,l.createElementVNode)("nav",q,[(0,l.createVNode)(ae,{to:{name:"frontend.account.orderDetails",params:{id:r.id}},class:"block w-full text-left capitalize rounded-lg text-sm py-2 pl-3 pr-5 border-b last:border-b-0 border-gray-100 transition-all duration-500 hover:bg-gray-50 hover:text-primary"},{default:(0,l.withCtx)(function(){return[(0,l.createTextVNode)((0,l.toDisplayString)(e.$t("label.view")),1)]}),_:2},1032,["to"]),(0,l.createElementVNode)("button",{type:"button",onClick:(0,l.withModifiers)(function(e){return oe.handleOrderReceiptModal(r)},["prevent"]),class:"block w-full text-left capitalize rounded-lg text-sm py-2 pl-3 pr-5 border-b last:border-b-0 border-gray-100 transition-all duration-500 hover:bg-gray-50 hover:text-primary"},(0,l.toDisplayString)(e.$t("label.download")),9,H)])])])])}),128))])):((0,l.openBlock)(),(0,l.createElementBlock)("tbody",j,[(0,l.createElementVNode)("tr",F,[(0,l.createElementVNode)("td",M,[(0,l.createElementVNode)("div",W,[(0,l.createElementVNode)("div",Y,[(0,l.createElementVNode)("img",{class:"w-full h-full",src:oe.setting.not_found,alt:"Not Found"},null,8,K)]),(0,l.createElementVNode)("span",G,(0,l.toDisplayString)(e.$t("message.no_data_found")),1)])])])]))])])]),(0,l.createElementVNode)("div",J,[(0,l.createElementVNode)("div",X,[(0,l.createElementVNode)("div",Q,[(0,l.createElementVNode)("button",{type:"button",onClick:t[0]||(t[0]=function(){return oe.reset&&oe.reset.apply(oe,arguments)}),class:"modal-close flex items-center justify-center gap-1.5 py-2 px-4 rounded bg-[#FB4E4E]"},[t[6]||(t[6]=(0,l.createElementVNode)("i",{class:"lab lab-fill-close-circle lab-font-size-16 text-white"},null,-1)),(0,l.createElementVNode)("span",Z,(0,l.toDisplayString)(e.$t("button.close")),1)]),(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("button",ee,[t[7]||(t[7]=(0,l.createElementVNode)("i",{class:"lab lab-fill-printer lab-font-size-16 text-white"},null,-1)),(0,l.createElementVNode)("span",te,(0,l.toDisplayString)(e.$t("button.print_invoice")),1)])),[[ie,le.printObj]])]),le.orderId?((0,l.openBlock)(),(0,l.createBlock)(se,{key:0,method:oe.reset,orderId:le.orderId},null,8,["method","orderId"])):(0,l.createCommentVNode)("",!0)])])],64)}],["__scopeId","data-v-1bbf16f0"]])},3106:(e,t,r)=>{r.d(t,{A:()=>_e});var l=r(9726),o={class:"modal-body"},n={class:"text-center pb-3.5 border-b border-dashed border-gray-400"},a={class:"font-bold mb-1"},s={class:"text-sm font-normal"},i={class:"text-sm font-normal"},d={class:"w-full my-1.5"},c={class:"text-xs text-left py-0.5 text-heading"},p={class:"text-xs text-left py-0.5 text-heading"},m={class:"text-xs text-right py-0.5 text-heading"},u={class:"w-full"},h={class:"border-t border-b border-dashed border-gray-400"},y={scope:"col",class:"py-1 font-normal text-xs capitalize text-left text-heading w-8"},g={scope:"col",class:"py-1 font-normal text-xs capitalize flex items-center justify-between text-heading"},b={class:"border-b border-dashed border-gray-400"},x={class:"text-left font-normal align-top py-1"},f={class:"text-xs leading-5 text-heading"},v={class:"text-left font-normal align-top py-1"},E={class:"flex items-center justify-between"},w={class:"text-xs leading-5 text-heading"},N={class:"text-xs leading-5 text-heading"},V={key:0,class:"text-xs leading-5 text-heading max-w-[200px]"},S={class:"py-2 pl-7"},k={class:"w-full"},A={class:"text-xs text-left py-0.5 uppercase text-heading"},_={class:"text-xs text-right py-0.5 text-heading"},D={class:"text-xs text-left py-0.5 uppercase text-heading"},B={class:"text-xs text-right py-0.5 text-heading"},C={class:"text-xs text-left py-0.5 uppercase text-heading"},$={class:"text-xs text-right py-0.5 text-heading"},I={key:0},O={class:"text-xs text-left py-0.5 uppercase text-heading"},T={class:"text-xs text-right py-0.5 text-heading"},z={class:"text-xs text-left py-0.5 font-bold uppercase text-heading"},P={class:"text-xs text-right py-0.5 font-bold text-heading"},L={class:"text-xs py-1 border-t border-b border-dashed border-gray-400 text-heading"},R={class:"pt-1 pb-1 pr-1"},U={class:"pt-1 pb-1"},q={class:"pt-1 pb-1 pr-1"},H={class:"pt-1 pb-1"},j={class:"pt-1 pb-1 pr-1"},F={class:"pt-1 pb-1"},M={class:"text-xs py-1 border-b border-dashed border-gray-400 text-heading"},W={key:0},Y={class:"pt-1 pb-1 pr-1"},K={class:"pt-1 pb-1"},G={class:"pt-1 pb-1 pr-1"},J={class:"pt-1 pb-1"},X={key:0},Q={class:"pt-1 pb-1 pr-1"},Z={class:"pt-1 pb-1"},ee={key:0},te={key:1},re={key:2},le={key:3},oe={key:4},ne={key:1},ae={class:"pt-1 pb-1 pr-1"},se={class:"pt-1 pb-1"},ie={class:"pt-1 pb-1 pr-1"},de={class:"pt-1 pb-1"},ce={class:"pt-1 pb-1 pr-1"},pe={class:"pt-1 pb-1"},me={key:0},ue={key:1},he={key:2},ye={key:3},ge={key:4},be={class:"text-center pt-2 pb-4"},xe={class:"text-[11px] leading-[14px] capitalize text-heading"},fe={class:"text-[11px] leading-[14px] capitalize text-heading"},ve={class:"flex flex-col items-end"},Ee={class:"text-[8px] font-normal text-left w-[46px] leading-[10px]"},we={class:"text-xs font-normal leading-4"};var Ne=r(1978),Ve=r(4233);function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function ke(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var l=r.call(e,t||"default");if("object"!=Se(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Se(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ae={name:"OrderReceiptComponent",props:{method:{type:Function},orderId:{type:Number}},data:function(){return{loading:{isActive:!1},enums:{orderTypeEnum:Ne.A,orderTypeEnumArray:ke(ke({},Ne.A.DELIVERY,this.$t("label.delivery")),Ne.A.PICK_UP,this.$t("label.pick_up"))}}},mounted:function(){this.modalShow(),this.$store.dispatch("company/lists").then().catch(),this.show()},computed:{company:function(){return this.$store.getters["company/lists"]},order:function(){return this.$store.getters["frontendOrder/show"]},orderProducts:function(){return this.$store.getters["frontendOrder/orderProducts"]},orderUser:function(){return this.$store.getters["frontendOrder/orderUser"]},orderAddress:function(){return this.$store.getters["frontendOrder/orderAddress"]},outletAddress:function(){return this.$store.getters["frontendOrder/outletAddress"]}},methods:{modalShow:function(){Ve.A.showTarget("orderReceiptPrint","modal-active")},readMore:function(){this.props.search.review_limit+=1,this.show()},show:function(){var e=this;this.$props.orderId&&void 0!==this.$props.orderId&&(this.loading.isActive=!0,this.$store.dispatch("frontendOrder/show",this.$props.orderId).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}))}}};const _e=(0,r(6262).A)(Ae,[["render",function(e,t,r,Ne,Ve,Se){return(0,l.openBlock)(),(0,l.createElementBlock)("div",o,[(0,l.createElementVNode)("div",n,[(0,l.createElementVNode)("h3",a,(0,l.toDisplayString)(Se.company.company_name),1),(0,l.createElementVNode)("h4",s,(0,l.toDisplayString)(Se.company.company_address),1),(0,l.createElementVNode)("h5",i,(0,l.toDisplayString)(e.$t("label.tel"))+": "+(0,l.toDisplayString)(Se.company.company_calling_code)+" "+(0,l.toDisplayString)(Se.company.company_phone),1)]),(0,l.createElementVNode)("table",d,[(0,l.createElementVNode)("tbody",null,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",c,(0,l.toDisplayString)(e.$t("label.order_id"))+" #"+(0,l.toDisplayString)(Se.order.order_serial_no),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",p,(0,l.toDisplayString)(Se.order.order_date),1),(0,l.createElementVNode)("td",m,(0,l.toDisplayString)(Se.order.order_time),1)])])]),(0,l.createElementVNode)("table",u,[(0,l.createElementVNode)("thead",h,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("th",y,(0,l.toDisplayString)(e.$t("label.qty")),1),(0,l.createElementVNode)("th",g,[(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("label.product_description")),1),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("label.price")),1)])])]),(0,l.createElementVNode)("tbody",b,[Se.orderProducts.length>0?((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,{key:0},(0,l.renderList)(Se.orderProducts,function(e){return(0,l.openBlock)(),(0,l.createElementBlock)("tr",{key:e},[(0,l.createElementVNode)("td",x,[(0,l.createElementVNode)("p",f,(0,l.toDisplayString)(e.quantity),1)]),(0,l.createElementVNode)("td",v,[(0,l.createElementVNode)("div",E,[(0,l.createElementVNode)("p",w,(0,l.toDisplayString)(e.product_name),1),(0,l.createElementVNode)("p",N,(0,l.toDisplayString)(e.total_currency_price),1)]),e.variation_names?((0,l.openBlock)(),(0,l.createElementBlock)("p",V,(0,l.toDisplayString)(e.variation_names),1)):(0,l.createCommentVNode)("",!0),e.product_tax.length>0?((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,{key:1},(0,l.renderList)(e.product_tax,function(e){return(0,l.openBlock)(),(0,l.createElementBlock)("p",{class:"text-xs leading-5 text-heading",key:e},(0,l.toDisplayString)(e.tax_name)+" ("+(0,l.toDisplayString)(e.tax_rate)+"%) ",1)}),128)):(0,l.createCommentVNode)("",!0)])])}),128)):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",S,[(0,l.createElementVNode)("table",k,[(0,l.createElementVNode)("tbody",null,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",A,(0,l.toDisplayString)(e.$t("label.subtotal"))+":",1),(0,l.createElementVNode)("td",_,(0,l.toDisplayString)(Se.order.subtotal_currency_price),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",D,(0,l.toDisplayString)(e.$t("label.tax_fee"))+": ",1),(0,l.createElementVNode)("td",B,(0,l.toDisplayString)(Se.order.tax_currency_price),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",C,(0,l.toDisplayString)(e.$t("label.discount"))+":",1),(0,l.createElementVNode)("td",$,(0,l.toDisplayString)(Se.order.discount_currency_price),1)]),Se.order.order_type===Ve.enums.orderTypeEnum.DELIVERY?((0,l.openBlock)(),(0,l.createElementBlock)("tr",I,[(0,l.createElementVNode)("td",O,(0,l.toDisplayString)(e.$t("label.shipping_charge"))+": ",1),(0,l.createElementVNode)("td",T,(0,l.toDisplayString)(Se.order.shipping_charge_currency_price),1)])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",z,(0,l.toDisplayString)(e.$t("label.total"))+": ",1),(0,l.createElementVNode)("td",P,(0,l.toDisplayString)(Se.order.total_currency_price),1)])])])]),(0,l.createElementVNode)("div",L,[(0,l.createElementVNode)("table",null,[(0,l.createElementVNode)("tbody",null,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",R,(0,l.toDisplayString)(e.$t("label.order_type"))+":",1),(0,l.createElementVNode)("td",U,(0,l.toDisplayString)(Ve.enums.orderTypeEnumArray[Se.order.order_type]),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",q,(0,l.toDisplayString)(e.$t("label.payment_type"))+":",1),(0,l.createElementVNode)("td",H,(0,l.toDisplayString)(Se.order.payment_method_name),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",j,(0,l.toDisplayString)(e.$t("label.order_date_time"))+":",1),(0,l.createElementVNode)("td",F,(0,l.toDisplayString)(Se.order.order_datetime),1)])])])]),(0,l.createElementVNode)("div",M,[(0,l.createElementVNode)("table",null,[Se.order.order_type===Ve.enums.orderTypeEnum.DELIVERY?((0,l.openBlock)(),(0,l.createElementBlock)("tbody",W,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",Y,(0,l.toDisplayString)(e.$t("label.customer"))+":",1),(0,l.createElementVNode)("td",K,(0,l.toDisplayString)(Se.orderAddress[0].full_name),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",G,(0,l.toDisplayString)(e.$t("label.phone"))+":",1),(0,l.createElementVNode)("td",J,(0,l.toDisplayString)(Se.orderAddress[0].country_code+""+Se.orderAddress[0].phone),1)]),Se.order.order_type===Ve.enums.orderTypeEnum.DELIVERY?((0,l.openBlock)(),(0,l.createElementBlock)("tr",X,[(0,l.createElementVNode)("td",Q,(0,l.toDisplayString)(e.$t("label.address"))+":",1),(0,l.createElementVNode)("td",Z,[Se.orderAddress[0].address?((0,l.openBlock)(),(0,l.createElementBlock)("span",ee,(0,l.toDisplayString)(Se.orderAddress[0].address)+",",1)):(0,l.createCommentVNode)("",!0),Se.orderAddress[0].state?((0,l.openBlock)(),(0,l.createElementBlock)("span",te,(0,l.toDisplayString)(Se.orderAddress[0].state)+",",1)):(0,l.createCommentVNode)("",!0),Se.orderAddress[0].city?((0,l.openBlock)(),(0,l.createElementBlock)("span",re,(0,l.toDisplayString)(Se.orderAddress[0].city)+",",1)):(0,l.createCommentVNode)("",!0),Se.orderAddress[0].country?((0,l.openBlock)(),(0,l.createElementBlock)("span",le,(0,l.toDisplayString)(Se.orderAddress[0].country)+",",1)):(0,l.createCommentVNode)("",!0),Se.orderAddress[0].zip_code?((0,l.openBlock)(),(0,l.createElementBlock)("span",oe,(0,l.toDisplayString)(Se.orderAddress[0].zip_code),1)):(0,l.createCommentVNode)("",!0)])])):(0,l.createCommentVNode)("",!0)])):(0,l.createCommentVNode)("",!0),Se.order.order_type===Ve.enums.orderTypeEnum.PICK_UP?((0,l.openBlock)(),(0,l.createElementBlock)("tbody",ne,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",ae,(0,l.toDisplayString)(e.$t("label.customer"))+":",1),(0,l.createElementVNode)("td",se,(0,l.toDisplayString)(Se.orderUser.name),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",ie,(0,l.toDisplayString)(e.$t("label.phone"))+":",1),(0,l.createElementVNode)("td",de,(0,l.toDisplayString)(Se.orderUser.country_code+""+Se.orderUser.phone),1)]),(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",ce,(0,l.toDisplayString)(e.$t("label.outlet"))+":",1),(0,l.createElementVNode)("td",pe,[Se.outletAddress.address?((0,l.openBlock)(),(0,l.createElementBlock)("span",me,(0,l.toDisplayString)(Se.outletAddress.address)+",",1)):(0,l.createCommentVNode)("",!0),Se.outletAddress.state?((0,l.openBlock)(),(0,l.createElementBlock)("span",ue,(0,l.toDisplayString)(Se.outletAddress.state)+",",1)):(0,l.createCommentVNode)("",!0),Se.outletAddress.city?((0,l.openBlock)(),(0,l.createElementBlock)("span",he,(0,l.toDisplayString)(Se.outletAddress.city)+",",1)):(0,l.createCommentVNode)("",!0),Se.outletAddress.country?((0,l.openBlock)(),(0,l.createElementBlock)("span",ye,(0,l.toDisplayString)(Se.outletAddress.country)+",",1)):(0,l.createCommentVNode)("",!0),Se.outletAddress.zip_code?((0,l.openBlock)(),(0,l.createElementBlock)("span",ge,(0,l.toDisplayString)(Se.outletAddress.zip_code),1)):(0,l.createCommentVNode)("",!0)])])])):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",be,[(0,l.createElementVNode)("p",xe,(0,l.toDisplayString)(e.$t("message.thank_you")),1),(0,l.createElementVNode)("p",fe,(0,l.toDisplayString)(e.$t("message.please_come_again")),1)]),(0,l.createElementVNode)("div",ve,[(0,l.createElementVNode)("h5",Ee,(0,l.toDisplayString)(e.$t("label.powered_by")),1),(0,l.createElementVNode)("h6",we,(0,l.toDisplayString)(Se.company.company_name),1)])])}]])},4507:(e,t,r)=>{r.d(t,{A:()=>n});var l=r(6314),o=r.n(l)()(function(e){return e[1]});o.push([e.id,"@media print{.hidden-print[data-v-1bbf16f0]{display:none!important}}",""]);const n=o},5316:(e,t,r)=>{r.d(t,{A:()=>n});class l{constructor(e){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,e),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);let t=this;if(this.settings.asyncUrl)return void t.settings.asyncUrl(function(e){let r=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(r)},t.settings.vue);let r=this.getPrintWindow(e);this.settings.url||this.write(r.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(r)}addEvent(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,r=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(r,"load",function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()}),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),r.contentWindow.print(),t.settings.closeCallback()})}}removeCanvasImg(){let e=this;try{if(e.elsdom){let t=e.elsdom.querySelectorAll(".canvasImg");for(let e=0;e<t.length;e++)t[e].remove()}}catch(e){console.log(e)}}print(e){var t=this;let r=document.getElementById(this.settings.id)||e.f,l=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(r,"load",function(){l.focus(),t.settings.openCallback(),l.print(),r.remove(),t.settings.closeCallback(),t.removeCanvasImg()})}write(e){e.open(),e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),e.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let e="",t="",r="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,t=>{e+=t}),[].forEach.call(document.querySelectorAll("link"),function(e){e.href.indexOf(".css")>=0&&(t+=`<link type="text/css" rel="stylesheet" href="${e.href}" >`)});let l=document.styleSheets;if(l&&l.length>0)for(let e=0;e<l.length;e++)try{if(l[e].cssRules||l[e].rules){let t=l[e].cssRules||l[e].rules;for(let e=0;e<t.length;e++)r+=t[e].cssText}}catch(t){console.log(l[e].href+t)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,e=>{t+=`<link type="text/css" rel="stylesheet" href="${e}">`}),`<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${r}</style></head>`}getBody(){let e=this.settings.ids;return e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(e){let t=e.querySelectorAll("canvas");for(let e=0;e<t.length;e++)if(!t[e].style.display){let r=t[e].parentNode,l=t[e].toDataURL("image/png"),o=new Image;o.className="canvasImg",o.style.display="none",o.src=l,r.appendChild(o)}return e}getFormData(e){let t=e.cloneNode(!0),r=t.querySelectorAll("input,select,textarea"),l=t.querySelectorAll(".canvasImg,canvas"),o=-1;for(let e=0;e<l.length;e++){let t=l[e].parentNode,r=l[e];"canvas"===r.tagName.toLowerCase()?t.removeChild(r):r.style.display="block"}for(let t=0;t<r.length;t++){let l=r[t],n=l.getAttribute("type"),a=r[t];if(n||(n="SELECT"===l.tagName?"select":"TEXTAREA"===l.tagName?"textarea":""),"INPUT"===l.tagName)"radio"===n||"checkbox"===n?l.checked&&a.setAttribute("checked",l.checked):(a.value=l.value,a.setAttribute("value",l.value));else if("select"===n){o++;for(let t=0;t<e.querySelectorAll("select").length;t++){let r=e.querySelectorAll("select")[t];if(!r.getAttribute("newbs")&&r.setAttribute("newbs",t),r.getAttribute("newbs")==o){let t=e.querySelectorAll("select")[o].selectedIndex;l.options[t].setAttribute("selected",!0)}}}else a.innerHTML=l.value,a.setAttribute("html",l.value)}return t}getPrintWindow(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}previewBoxShow(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}previewBoxHide(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&e.querySelector("iframe").remove(),e.style.display="none")}previewBox(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e)return e.querySelector("iframe")&&e.querySelector("iframe").remove(),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".previewBody")};let t=document.createElement("div");t.setAttribute("id","vue-pirnt-nb-previewBox"),t.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),t.style.zIndex=this.settings.zIndex;let r=document.createElement("div");r.setAttribute("class","previewHeader"),r.setAttribute("style","padding: 5px 20px;"),r.innerHTML=this.settings.previewTitle,t.appendChild(r),this.close=document.createElement("div");let l=this.close;l.setAttribute("class","previewClose"),l.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let o=document.createElement("div"),n=document.createElement("div");o.setAttribute("class","closeBefore"),o.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),n.setAttribute("class","closeAfter"),n.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),l.appendChild(o),l.appendChild(n),r.appendChild(l),this.previewBody=document.createElement("div");let a=this.previewBody;a.setAttribute("class","previewBody"),a.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(a);let s=document.createElement("div");s.setAttribute("class","previewBodyUtil"),s.setAttribute("style","height: 32px;background: #474747;position: relative;"),a.appendChild(s),this.previewBodyUtilPrintBtn=document.createElement("div");let i=this.previewBodyUtilPrintBtn;return i.setAttribute("class","previewBodyUtilPrintBtn"),i.innerHTML=this.settings.previewPrintBtnLabel,i.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),s.appendChild(i),document.body.appendChild(t),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let r=document.createElement("iframe");return r.style.border="0px",r.style.position="absolute",r.style.width="0px",r.style.height="0px",r.style.right="0px",r.style.top="0px",r.setAttribute("id",e),r.setAttribute("src",t),r}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let r=this,l=this.iframeBox(t,e);try{if(this.settings.preview){l.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,o=e.close;t.appendChild(l),this.addEvent(o,"click",function(){r.previewBoxHide()})}else document.body.appendChild(l);l.doc=null,l.doc=l.contentDocument?l.contentDocument:l.contentWindow?l.contentWindow.document:l.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==l.doc)throw new Error("Cannot find document.");return l}}var o={directiveName:"print",mounted(e,t,r){let o=t.instance,n="";var a,s,i;s="click",i=()=>{if("string"==typeof t.value)n=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{n=t.value.id;let e=n.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),n="")}}d()},(a=e).addEventListener?a.addEventListener(s,i,!1):a.attachEvent?a.attachEvent("on"+s,i):a["on"+s]=i;const d=()=>{new l({ids:n,vue:o,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(o)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(o)},openCallback(){t.value.openCallback&&t.value.openCallback(o)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(o)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(o)}})}},install:function(e){e.directive("print",o)}};const n=o}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285