[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 9909.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9909],{616:(e,t,r)=>{r.d(t,{A:()=>a});const a=Object.freeze({CASH_ON_DELIVERY:1,E_WALLET:2,PAYPAL:3})},970:(e,t,r)=>{r.d(t,{A:()=>a});const a=Object.freeze({PAID:5,UNPAID:10})},5316:(e,t,r)=>{r.d(t,{A:()=>n});class a{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,a=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(r,"load",function(){a.focus(),t.settings.openCallback(),a.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 a=document.styleSheets;if(a&&a.length>0)for(let e=0;e<a.length;e++)try{if(a[e].cssRules||a[e].rules){let t=a[e].cssRules||a[e].rules;for(let e=0;e<t.length;e++)r+=t[e].cssText}}catch(t){console.log(a[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,a=t[e].toDataURL("image/png"),l=new Image;l.className="canvasImg",l.style.display="none",l.src=a,r.appendChild(l)}return e}getFormData(e){let t=e.cloneNode(!0),r=t.querySelectorAll("input,select,textarea"),a=t.querySelectorAll(".canvasImg,canvas"),l=-1;for(let e=0;e<a.length;e++){let t=a[e].parentNode,r=a[e];"canvas"===r.tagName.toLowerCase()?t.removeChild(r):r.style.display="block"}for(let t=0;t<r.length;t++){let a=r[t],n=a.getAttribute("type"),o=r[t];if(n||(n="SELECT"===a.tagName?"select":"TEXTAREA"===a.tagName?"textarea":""),"INPUT"===a.tagName)"radio"===n||"checkbox"===n?a.checked&&o.setAttribute("checked",a.checked):(o.value=a.value,o.setAttribute("value",a.value));else if("select"===n){l++;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")==l){let t=e.querySelectorAll("select")[l].selectedIndex;a.options[t].setAttribute("selected",!0)}}}else o.innerHTML=a.value,o.setAttribute("html",a.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 a=this.close;a.setAttribute("class","previewClose"),a.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let l=document.createElement("div"),n=document.createElement("div");l.setAttribute("class","closeBefore"),l.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%;"),a.appendChild(l),a.appendChild(n),r.appendChild(a),this.previewBody=document.createElement("div");let o=this.previewBody;o.setAttribute("class","previewBody"),o.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(o);let s=document.createElement("div");s.setAttribute("class","previewBodyUtil"),s.setAttribute("style","height: 32px;background: #474747;position: relative;"),o.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,a=this.iframeBox(t,e);try{if(this.settings.preview){a.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,l=e.close;t.appendChild(a),this.addEvent(l,"click",function(){r.previewBoxHide()})}else document.body.appendChild(a);a.doc=null,a.doc=a.contentDocument?a.contentDocument:a.contentWindow?a.contentWindow.document:a.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==a.doc)throw new Error("Cannot find document.");return a}}var l={directiveName:"print",mounted(e,t,r){let l=t.instance,n="";var o,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="")}}c()},(o=e).addEventListener?o.addEventListener(s,i,!1):o.attachEvent?o.attachEvent("on"+s,i):o["on"+s]=i;const c=()=>{new a({ids:n,vue:l,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(l)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(l)},openCallback(){t.value.openCallback&&t.value.openCallback(l)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(l)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(l)}})}},install:function(e){e.directive("print",l)}};const n=l},5570:(e,t,r)=>{r.d(t,{A:()=>a});const a=Object.freeze({SHIPPING:5,BILLING:10})},9909:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Wr});var a=r(9726),l={class:"flex items-center gap-4 mb-7"},n={class:"capitalize text-xl font-bold text-primary"},o={class:"rounded-2xl shadow-card p-4 sm:p-6 mb-6 bg-white"},s={class:"text-center mb-10"},i={class:"text-xl font-semibold capitalize mb-4"},c={class:"text-sm font-medium mb-3"},d={class:"text-sm font-semibold"},p={class:"text-primary"},m={key:0,class:"w-full flex items-center justify-center pb-12 mt-8"},u={class:"w-full flex items-center justify-center gap-1 relative"},y={class:"absolute top-10 left-1/2 -translate-x-1/2 w-14 sm:w-20 text-xs sm:text-sm leading-[18px] text-center capitalize"},b={key:1,class:"w-full flex items-center justify-center pb-12 mt-8"},g={class:"w-full flex items-center justify-center gap-1 relative"},h={class:"absolute top-10 left-1/2 -translate-x-1/2 w-14 sm:w-20 text-xs sm:text-sm leading-[18px] text-center capitalize"},f={key:2,type:"button",class:"flex items-center justify-center gap-2 py-3 sm:py-4 px-7 sm:px-10 mx-auto mt-6 rounded-2xl border border-[#FB4E4E] text-[#FB4E4E] bg-white transition-all duration-500 hover:bg-[#FB4E4E] hover:text-white"},x={class:"sm:text-lg font-bold capitalize whitespace-nowrap"},E={key:3,type:"button",class:"flex items-center justify-center gap-2 py-3 sm:py-4 px-7 sm:px-10 mx-auto mt-6 rounded-2xl border border-[#FB4E4E] text-[#FB4E4E] bg-white transition-all duration-500 hover:bg-[#FB4E4E] hover:text-white"},N={class:"sm:text-lg font-bold capitalize whitespace-nowrap"},v={class:"row"},w={class:"col-12 md:col-5"},V={class:"p-4 mb-6 rounded-2xl border border-gray-100"},k={class:"flex flex-col gap-2.5"},_={class:"flex flex-wrap sm:flex-nowrap gap-2"},S={class:"text-sm font-semibold capitalize w-28 flex-shrink-0"},D={class:"text-sm font-semibold capitalize"},A={class:"flex flex-wrap sm:flex-nowrap gap-2"},B={class:"text-sm font-semibold capitalize w-28 flex-shrink-0"},C={class:"text-sm font-normal capitalize"},$={class:"flex flex-wrap sm:flex-nowrap gap-2"},z={class:"text-sm font-semibold capitalize w-28 flex-shrink-0"},I={class:"flex flex-wrap sm:flex-nowrap gap-2"},T={class:"text-sm font-semibold capitalize w-28 flex-shrink-0"},P={class:"flex flex-wrap sm:flex-nowrap gap-2"},L={class:"text-sm font-semibold capitalize w-28 flex-shrink-0"},O={class:"flex flex-wrap sm:flex-nowrap gap-2"},j={class:"text-sm font-semibold capitalize w-28 flex-shrink-0"},F={class:"text-sm font-normal capitalize"},U={key:0,class:"p-4 capitalize font-bold text-center"},q={key:1,class:"p-4 capitalize font-bold text-center"},R={class:"p-4 flex flex-col gap-2.5 border-t border-dashed border-gray-100"},H={class:"flex flex-wrap sm:flex-nowrap gap-2"},M={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},W={class:"text-sm font-normal capitalize"},Y={class:"flex flex-wrap sm:flex-nowrap gap-2"},G={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},K={class:"text-sm font-normal capitalize"},J={key:0,class:"flex flex-wrap sm:flex-nowrap gap-2"},X={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},Q={class:"text-sm font-normal"},Z={class:"flex flex-wrap sm:flex-nowrap gap-2"},ee={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},te={class:"text-sm font-normal capitalize"},re={key:0},ae={key:0},le={key:1},ne={key:2},oe={key:3},se={key:1,class:"rounded-2xl border border-gray-100"},ie={class:"p-4 capitalize font-bold text-center"},ce={class:"p-4 flex flex-col gap-2.5 border-t border-dashed border-gray-100"},de={class:"flex flex-wrap sm:flex-nowrap gap-2"},pe={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},me={class:"text-sm font-normal capitalize"},ue={key:0,class:"flex flex-wrap sm:flex-nowrap gap-2"},ye={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},be={class:"text-sm font-normal capitalize"},ge={key:1,class:"flex flex-wrap sm:flex-nowrap gap-2"},he={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},fe={class:"text-sm font-normal"},xe={class:"flex flex-wrap sm:flex-nowrap gap-2"},Ee={class:"text-sm font-semibold capitalize w-20 flex-shrink-0"},Ne={class:"text-sm font-normal capitalize"},ve={key:0},we={key:0},Ve={key:1},ke={key:2},_e={class:"col-12 md:col-7"},Se={class:"rounded-2xl border border-gray-100"},De={class:"p-4 capitalize font-bold text-center"},Ae={class:"border-b border-t border-dashed border-gray-100"},Be=["src"],Ce={class:"flex-auto overflow-hidden"},$e={class:"text-sm overflow-hidden"},ze={class:"flex flex-wrap items-center justify-between gap-4"},Ie={class:"flex items-center gap-8"},Te={class:"text-sm font-semibold"},Pe={class:"text-sm font-medium"},Le={class:"flex flex-col gap-2 py-4 mx-4 border-b border-dashed border-[#EFF0F6]"},Oe={class:"flex items-center justify-between"},je={class:"capitalize"},Fe={class:"font-medium"},Ue={class:"flex items-center justify-between"},qe={class:"capitalize"},Re={class:"font-medium"},He={class:"flex items-center justify-between"},Me={class:"capitalize"},We={class:"font-medium"},Ye={class:"flex items-center justify-between"},Ge={class:"capitalize"},Ke={class:"font-medium"},Je={class:"flex items-center justify-between py-3 px-4"},Xe={class:"capitalize font-bold"},Qe={class:"capitalize font-bold"},Ze={key:0,class:"flex flex-wrap gap-6 mobile:mb-20"},et={class:"w-full rounded-xl mx-auto bg-white transition-all duration-300 max-w-[360px]"},tt={class:"px-4 py-5 relative"},rt={class:"font-medium text-center mb-5"},at=["src"],lt={class:"font-semibold text-center mb-5"};var nt=r(1811),ot=r(908),st=r(970),it=r(5570),ct=r(8655),dt=r(9856),pt=r(4233),mt=r(5220),ut={type:"button",class:"px-6 py-3 capitalize rounded-full whitespace-nowrap text-center font-semibold text-white bg-primary"},yt={id:"receipt",class:"modal"},bt={class:"modal-dialog max-w-[302px] rounded-none",id:"print"},gt={class:"modal-body"},ht={class:"text-center pb-3.5 border-b border-dashed border-gray-400"},ft={class:"font-bold mb-1"},xt={class:"text-sm font-normal"},Et={class:"text-sm font-normal"},Nt={class:"w-full my-1.5"},vt={class:"text-xs text-left py-0.5 text-heading"},wt={class:"text-xs text-left py-0.5 text-heading"},Vt={class:"text-xs text-right py-0.5 text-heading"},kt={class:"w-full"},_t={class:"border-t border-b border-dashed border-gray-400"},St={scope:"col",class:"py-1 font-normal text-xs capitalize text-left text-heading w-8"},Dt={scope:"col",class:"py-1 font-normal text-xs capitalize flex items-center justify-between text-heading"},At={class:"border-b border-dashed border-gray-400"},Bt={class:"text-left font-normal align-top py-1"},Ct={class:"text-xs leading-5 text-heading"},$t={class:"text-left font-normal align-top py-1"},zt={class:"flex items-center justify-between"},It={class:"text-xs leading-5 text-heading"},Tt={class:"text-xs leading-5 text-heading"},Pt={key:0,class:"text-xs leading-5 text-heading max-w-[200px]"},Lt={class:"py-2 pl-7"},Ot={class:"w-full"},jt={class:"text-xs text-left py-0.5 uppercase text-heading"},Ft={class:"text-xs text-right py-0.5 text-heading"},Ut={class:"text-xs text-left py-0.5 uppercase text-heading"},qt={class:"text-xs text-right py-0.5 text-heading"},Rt={class:"text-xs text-left py-0.5 uppercase text-heading"},Ht={class:"text-xs text-right py-0.5 text-heading"},Mt={key:0},Wt={class:"text-xs text-left py-0.5 uppercase text-heading"},Yt={class:"text-xs text-right py-0.5 text-heading"},Gt={class:"text-xs text-left py-0.5 font-bold uppercase text-heading"},Kt={class:"text-xs text-right py-0.5 font-bold text-heading"},Jt={class:"text-xs py-1 border-t border-b border-dashed border-gray-400 text-heading"},Xt={class:"pt-1 pb-1 pr-1"},Qt={class:"pt-1 pb-1"},Zt={class:"pt-1 pb-1 pr-1"},er={class:"pt-1 pb-1"},tr={class:"pt-1 pb-1 pr-1"},rr={class:"pt-1 pb-1"},ar={class:"text-xs py-1 border-b border-dashed border-gray-400 text-heading"},lr={key:0},nr={class:"pt-1 pb-1 pr-1"},or={class:"pt-1 pb-1"},sr={class:"pt-1 pb-1 pr-1"},ir={class:"pt-1 pb-1"},cr={class:"pt-1 pb-1 pr-1"},dr={class:"pt-1 pb-1"},pr={key:0},mr={key:1},ur={key:2},yr={key:3},br={key:4},gr={key:1},hr={class:"pt-1 pb-1 pr-1"},fr={class:"pt-1 pb-1"},xr={class:"pt-1 pb-1 pr-1"},Er={class:"pt-1 pb-1"},Nr={class:"pt-1 pb-1 pr-1"},vr={class:"pt-1 pb-1"},wr={key:0},Vr={key:1},kr={key:2},_r={key:3},Sr={key:4},Dr={class:"text-center pt-2 pb-4"},Ar={class:"text-[11px] leading-[14px] capitalize text-heading"},Br={class:"text-[11px] leading-[14px] capitalize text-heading"},Cr={class:"flex flex-col items-end"},$r={class:"text-[8px] font-normal text-left w-[46px] leading-[10px]"},zr={class:"text-xs font-normal leading-4"};var Ir=r(5316),Tr=r(1978);r(616);function Pr(e){return Pr="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},Pr(e)}function Lr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=Pr(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Or={name:"OrderReceiptComponent",props:{order:Object,orderProducts:Object,orderUser:Object,orderAddress:Object},directives:{print:Ir.A},data:function(){return{loading:{isActive:!1},printObj:{id:"print",popTitle:this.$t("menu.order_receipt")},enums:{orderTypeEnum:Tr.A,orderTypeEnumArray:Lr(Lr({},Tr.A.DELIVERY,this.$t("label.delivery")),Tr.A.PICK_UP,this.$t("label.pick_up"))}}},mounted:function(){this.$store.dispatch("company/lists").then().catch()},computed:{company:function(){return this.$store.getters["company/lists"]},outletAddress:function(){return this.$store.getters["frontendOrder/outletAddress"]}}};var jr=r(6262);const Fr=(0,jr.A)(Or,[["render",function(e,t,r,l,n,o){var s=(0,a.resolveDirective)("print");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("button",ut,[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("button.download_receipt")),1)])),[[s,n.printObj]]),(0,a.createElementVNode)("div",yt,[(0,a.createElementVNode)("div",bt,[(0,a.createElementVNode)("div",gt,[(0,a.createElementVNode)("div",ht,[(0,a.createElementVNode)("h3",ft,(0,a.toDisplayString)(o.company.company_name),1),(0,a.createElementVNode)("h4",xt,(0,a.toDisplayString)(o.company.company_address),1),(0,a.createElementVNode)("h5",Et,(0,a.toDisplayString)(e.$t("label.tel"))+": "+(0,a.toDisplayString)(o.company.company_calling_code)+" "+(0,a.toDisplayString)(o.company.company_phone),1)]),(0,a.createElementVNode)("table",Nt,[(0,a.createElementVNode)("tbody",null,[(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",vt,(0,a.toDisplayString)(e.$t("label.order_id"))+" #"+(0,a.toDisplayString)(r.order.order_serial_no),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",wt,(0,a.toDisplayString)(r.order.order_date),1),(0,a.createElementVNode)("td",Vt,(0,a.toDisplayString)(r.order.order_time),1)])])]),(0,a.createElementVNode)("table",kt,[(0,a.createElementVNode)("thead",_t,[(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("th",St,(0,a.toDisplayString)(e.$t("label.qty")),1),(0,a.createElementVNode)("th",Dt,[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("label.product_description")),1),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("label.price")),1)])])]),(0,a.createElementVNode)("tbody",At,[r.orderProducts.length>0?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(r.orderProducts,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e},[(0,a.createElementVNode)("td",Bt,[(0,a.createElementVNode)("p",Ct,(0,a.toDisplayString)(e.quantity),1)]),(0,a.createElementVNode)("td",$t,[(0,a.createElementVNode)("div",zt,[(0,a.createElementVNode)("p",It,(0,a.toDisplayString)(e.product_name),1),(0,a.createElementVNode)("p",Tt,(0,a.toDisplayString)(e.subtotal_currency_price),1)]),e.variation_names?((0,a.openBlock)(),(0,a.createElementBlock)("p",Pt,(0,a.toDisplayString)(e.variation_names),1)):(0,a.createCommentVNode)("",!0),e.product_tax.length>0?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(e.product_tax,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("p",{class:"text-xs leading-5 text-heading",key:e},(0,a.toDisplayString)(e.tax_name)+" ("+(0,a.toDisplayString)(e.tax_rate)+"%) ",1)}),128)):(0,a.createCommentVNode)("",!0)])])}),128)):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("div",Lt,[(0,a.createElementVNode)("table",Ot,[(0,a.createElementVNode)("tbody",null,[(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",jt,(0,a.toDisplayString)(e.$t("label.subtotal"))+": ",1),(0,a.createElementVNode)("td",Ft,(0,a.toDisplayString)(r.order.subtotal_currency_price),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",Ut,(0,a.toDisplayString)(e.$t("label.tax_fee"))+": ",1),(0,a.createElementVNode)("td",qt,(0,a.toDisplayString)(r.order.tax_currency_price),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",Rt,(0,a.toDisplayString)(e.$t("label.discount"))+": ",1),(0,a.createElementVNode)("td",Ht,(0,a.toDisplayString)(r.order.discount_currency_price),1)]),r.order.order_type===n.enums.orderTypeEnum.DELIVERY?((0,a.openBlock)(),(0,a.createElementBlock)("tr",Mt,[(0,a.createElementVNode)("td",Wt,(0,a.toDisplayString)(e.$t("label.shipping_charge"))+": ",1),(0,a.createElementVNode)("td",Yt,(0,a.toDisplayString)(r.order.shipping_charge_currency_price),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",Gt,(0,a.toDisplayString)(e.$t("label.total"))+": ",1),(0,a.createElementVNode)("td",Kt,(0,a.toDisplayString)(r.order.total_currency_price),1)])])])]),(0,a.createElementVNode)("div",Jt,[(0,a.createElementVNode)("table",null,[(0,a.createElementVNode)("tbody",null,[(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",Xt,(0,a.toDisplayString)(e.$t("label.order_type"))+":",1),(0,a.createElementVNode)("td",Qt,(0,a.toDisplayString)(n.enums.orderTypeEnumArray[r.order.order_type]),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",Zt,(0,a.toDisplayString)(e.$t("label.payment_type"))+":",1),(0,a.createElementVNode)("td",er,(0,a.toDisplayString)(r.order.payment_method_name),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",tr,(0,a.toDisplayString)(e.$t("label.order_date_time"))+":",1),(0,a.createElementVNode)("td",rr,(0,a.toDisplayString)(r.order.order_datetime),1)])])])]),(0,a.createElementVNode)("div",ar,[(0,a.createElementVNode)("table",null,[r.order.order_type===n.enums.orderTypeEnum.DELIVERY?((0,a.openBlock)(),(0,a.createElementBlock)("tbody",lr,[(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",nr,(0,a.toDisplayString)(e.$t("label.customer"))+":",1),(0,a.createElementVNode)("td",or,(0,a.toDisplayString)(r.orderAddress.full_name),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",sr,(0,a.toDisplayString)(e.$t("label.phone"))+":",1),(0,a.createElementVNode)("td",ir,(0,a.toDisplayString)(r.orderAddress.country_code+""+r.orderAddress.phone),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",cr,(0,a.toDisplayString)(e.$t("label.address"))+":",1),(0,a.createElementVNode)("td",dr,[r.orderAddress.address?((0,a.openBlock)(),(0,a.createElementBlock)("span",pr,(0,a.toDisplayString)(r.orderAddress.address)+",",1)):(0,a.createCommentVNode)("",!0),r.orderAddress.city?((0,a.openBlock)(),(0,a.createElementBlock)("span",mr,(0,a.toDisplayString)(r.orderAddress.city)+",",1)):(0,a.createCommentVNode)("",!0),r.orderAddress.state?((0,a.openBlock)(),(0,a.createElementBlock)("span",ur,(0,a.toDisplayString)(r.orderAddress.state)+",",1)):(0,a.createCommentVNode)("",!0),r.orderAddress.country?((0,a.openBlock)(),(0,a.createElementBlock)("span",yr,(0,a.toDisplayString)(r.orderAddress.country)+",",1)):(0,a.createCommentVNode)("",!0),r.orderAddress.zip_code?((0,a.openBlock)(),(0,a.createElementBlock)("span",br,(0,a.toDisplayString)(r.orderAddress.zip_code),1)):(0,a.createCommentVNode)("",!0)])])])):(0,a.createCommentVNode)("",!0),r.order.order_type===n.enums.orderTypeEnum.PICK_UP?((0,a.openBlock)(),(0,a.createElementBlock)("tbody",gr,[(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",hr,(0,a.toDisplayString)(e.$t("label.customer"))+":",1),(0,a.createElementVNode)("td",fr,(0,a.toDisplayString)(r.orderUser.name),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",xr,(0,a.toDisplayString)(e.$t("label.phone"))+":",1),(0,a.createElementVNode)("td",Er,(0,a.toDisplayString)(r.orderUser.country_code+""+r.orderUser.phone),1)]),(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("td",Nr,(0,a.toDisplayString)(e.$t("label.outlet"))+":",1),(0,a.createElementVNode)("td",vr,[o.outletAddress.address?((0,a.openBlock)(),(0,a.createElementBlock)("span",wr,(0,a.toDisplayString)(o.outletAddress.address)+",",1)):(0,a.createCommentVNode)("",!0),o.outletAddress.state?((0,a.openBlock)(),(0,a.createElementBlock)("span",Vr,(0,a.toDisplayString)(o.outletAddress.state)+",",1)):(0,a.createCommentVNode)("",!0),o.outletAddress.city?((0,a.openBlock)(),(0,a.createElementBlock)("span",kr,(0,a.toDisplayString)(o.outletAddress.city)+",",1)):(0,a.createCommentVNode)("",!0),o.outletAddress.country?((0,a.openBlock)(),(0,a.createElementBlock)("span",_r,(0,a.toDisplayString)(o.outletAddress.country)+",",1)):(0,a.createCommentVNode)("",!0),o.outletAddress.zip_code?((0,a.openBlock)(),(0,a.createElementBlock)("span",Sr,(0,a.toDisplayString)(o.outletAddress.zip_code),1)):(0,a.createCommentVNode)("",!0)])])])):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("div",Dr,[(0,a.createElementVNode)("p",Ar,(0,a.toDisplayString)(e.$t("message.thank_you")),1),(0,a.createElementVNode)("p",Br,(0,a.toDisplayString)(e.$t("message.please_come_again")),1)]),(0,a.createElementVNode)("div",Cr,[(0,a.createElementVNode)("h5",$r,(0,a.toDisplayString)(e.$t("label.powered_by")),1),(0,a.createElementVNode)("h6",zr,(0,a.toDisplayString)(o.company.company_name),1)])])])])],64)}]]);var Ur=r(2419),qr=r(8536);function Rr(e){return Rr="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},Rr(e)}function Hr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Rr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=Rr(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Mr={name:"OrderDetailsComponent",components:{LoadingComponent:nt.A,OrderReceiptComponent:Fr},setup:function(){return{route:(0,mt.lq)()}},data:function(){return{loading:{isActive:!1},tracks:[{step:1,title:this.$t("label.order_pending")},{step:5,title:this.$t("label.order_confirmed")},{step:7,title:this.$t("label.order_on_the_way")},{step:10,title:this.$t("label.order_delivered")}],pickupTracks:[{step:1,title:this.$t("label.order_pending")},{step:5,title:this.$t("label.order_confirmed")},{step:10,title:this.$t("label.order_delivered")}],enums:{orderStatusEnum:ot.A,paymentStatusEnum:st.A,addressTypeEnum:it.A,orderTypeEnum:Tr.A,activityEnum:Ur.A,orderStatusEnumArray:Hr(Hr(Hr(Hr(Hr(Hr({},ot.A.PENDING,this.$t("label.pending")),ot.A.CONFIRMED,this.$t("label.confirmed")),ot.A.ON_THE_WAY,this.$t("label.on_the_way")),ot.A.DELIVERED,this.$t("label.delivered")),ot.A.CANCELED,this.$t("label.canceled")),ot.A.REJECTED,this.$t("label.rejected")),paymentStatusEnumArray:Hr(Hr({},st.A.PAID,this.$t("label.paid")),st.A.UNPAID,this.$t("label.unpaid")),orderTypeEnumArray:Hr(Hr({},Tr.A.DELIVERY,this.$t("label.delivery")),Tr.A.PICK_UP,this.$t("label.pick_up"))},modal:!1}},computed:{setting:function(){return this.$store.getters["frontendSetting/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"]},cart:function(){return this.$store.getters["frontendCart/lists"]},paymentMethod:function(){return this.$store.getters["frontendCart/paymentMethod"]}},mounted:function(){var e=this;this.$route.params.id&&(this.loading.isActive=!0,this.$store.dispatch("frontendOrder/show",this.$route.params.id).then(function(t){"success"===e.$route.query.status&&e.setting.whatsapp_status===Ur.A.ENABLE&&e.setting.whatsapp_number?(e.modal=!1,e.handleClick(t.data.data,t.data.data.outlet_address)):e.modal=!0,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}))},methods:{showTarget:function(e,t){pt.A.showTarget(e,t)},reset:function(){this.cart.length>0&&Object.keys(this.paymentMethod).length>0&&"credit"===this.paymentMethod.slug&&this.$store.dispatch("profile").then().catch(),this.$store.dispatch("frontendCart/resetCart").then().catch()},orderStatusClass:function(e){return ct.A.orderStatusClass(e)},changeStatus:function(e){var t=this;ct.A.cancelOrder().then(function(r){try{t.loading.isActive=!0,t.$store.dispatch("frontendOrder/changeStatus",{id:t.$route.params.id,status:e}).then(function(e){t.loading.isActive=!1,dt.A.successFlip(1,t.$t("label.status"))}).catch(function(e){t.loading.isActive=!1,dt.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,dt.A.error(e.response.data.message)}}).catch(function(e){t.loading.isActive=!1})},handleClick:function(e,t){var r="\n ".concat(this.setting.company_name,"\n ****************************************************\n ").concat(this.$t("label.order_id")," : #").concat(e.order_serial_no,"\n ").concat(this.$t("label.order_type")," : ").concat(this.enums.orderTypeEnumArray[e.order_type],"\n ").concat(this.$t("label.order_date")," : ").concat(e.order_date).concat(e.order_time,"\n ").concat(this.$t("label.order_status")," : ").concat(this.enums.orderStatusEnumArray[e.status],"\n ").concat(this.$t("label.payment_status")," : ").concat(this.enums.paymentStatusEnumArray[e.payment_status],"\n ").concat(this.$t("label.payment_method")," : ").concat(e.payment_method_name,"\n\n ");r+="\n --------------------------\n ".concat(this.$t("label.order_details"),"\n --------------------------\n ");for(var a=0;a<e.order_products.length;a++){var l=e.order_products[a];r+="\n ".concat(a+1,") ").concat(l.product_name,"\n "),r+="\n --------------------------\n ".concat(this.$t("label.variation")," : ").concat(l.variation_names,"\n ").concat(this.$t("label.price")," : ").concat(l.currency_price,"\n ").concat(this.$t("label.quantity")," : ").concat(l.quantity,"\n ").concat(this.$t("label.discount")," : ").concat(l.discount_currency_price,"\n --------------------------\n ").concat(this.$t("label.total")," : ").concat(l.subtotal_currency_price,"\n --------------------------\n ")}if(r+="\n ".concat(this.$t("label.subtotal")," : ").concat(e.subtotal_currency_price,"\n ").concat(this.$t("label.tax_fee")," : ").concat(e.tax_currency_price,"\n ").concat(this.$t("label.shipping_charge")," : ").concat(e.shipping_charge_currency_price,"\n ").concat(this.$t("label.discount")," : ").concat(e.discount_currency_price,"\n --------------------------\n ").concat(this.$t("label.total")," : ").concat(e.total_currency_price,"\n --------------------------\n "),e.order_type===this.enums.orderTypeEnum.DELIVERY)for(var n=0;n<e.order_address.length;n++){var o=e.order_address[n],s="";s=o.address_type===this.enums.addressTypeEnum.SHIPPING?this.$t("label.shipping_address"):this.$t("label.billing_address"),r+="\n ".concat(s,"\n --------------------------\n ").concat(this.$t("label.name")," : ").concat(o.full_name,"\n ").concat(this.$t("label.phone")," : ").concat(o.country_code).concat(o.phone,"\n ").concat(this.$t("label.email")," : ").concat(o.email,"\n ").concat(this.$t("label.address")," : ").concat(o.address,"\n ").concat(o.city," ").concat(o.state," ").concat(o.country," ").concat(o.zip_code,"\n ")}else r+="\n ".concat(this.$t("label.pick_up_address"),"\n --------------------------\n ").concat(this.$t("label.name")," : ").concat(t.name,"\n ").concat(this.$t("label.phone")," : ").concat(t.country_code).concat(t.phone,"\n ").concat(this.$t("label.email")," : ").concat(t.email,"\n ").concat(this.$t("label.address")," : ").concat(t.address,"\n ").concat(t.city," ").concat(t.state," ").concat(t.country," ").concat(t.zip_code,"\n ");r=encodeURIComponent(r),this.reset(),"true"===qr.A.DEMO||!0===qr.A.DEMO||"1"===qr.A.DEMO||1===qr.A.DEMO?window.open("https://api.whatsapp.com/send?phone="+this.setting.whatsapp_calling_code+this.setting.whatsapp_number+"&text="+r,"_blank"):window.location="https://api.whatsapp.com/send?phone="+this.setting.whatsapp_calling_code+this.setting.whatsapp_number+"&text="+r}}},Wr=(0,jr.A)(Mr,[["render",function(e,t,r,nt,ot,st){var it=(0,a.resolveComponent)("LoadingComponent"),ct=(0,a.resolveComponent)("router-link"),dt=(0,a.resolveComponent)("OrderReceiptComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(it,{props:ot.loading},null,8,["props"]),(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("button",{onClick:t[0]||(t[0]=(0,a.withModifiers)(function(t){return e.$router.back()},["prevent"])),class:"lab-line-undo text-xl font-bold text-primary"}),(0,a.createElementVNode)("h2",n,(0,a.toDisplayString)(e.$t("label.order_details")),1)]),(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("h3",i,(0,a.toDisplayString)(e.$t("message.thank_you")),1),(0,a.createElementVNode)("p",c,(0,a.toDisplayString)(e.$t("message.order_status_follows")),1),(0,a.createElementVNode)("h4",d,[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("label.order_id"))+": ",1),(0,a.createElementVNode)("span",p,"# "+(0,a.toDisplayString)(st.order.order_serial_no),1)]),st.order.status!==ot.enums.orderStatusEnum.CANCELED&&st.order.status!==ot.enums.orderStatusEnum.REJECTED&&st.order.order_type!==ot.enums.orderTypeEnum.PICK_UP?((0,a.openBlock)(),(0,a.createElementBlock)("ul",m,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(ot.tracks,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("li",u,[(0,a.createElementVNode)("hr",{class:(0,a.normalizeClass)([{"!bg-success":e.step<=st.order.status},"block border-none w-full h-1 rounded-xl bg-gray-200"])},null,2),(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)([{"lab-fill-save !bg-success text-white":e.step<=st.order.status},"flex-shrink-0 w-7 h-7 !leading-7 text-center rounded-full bg-gray-200 lab-font-size-16"])},null,2),(0,a.createElementVNode)("hr",{class:(0,a.normalizeClass)([{"!bg-success":e.step<=st.order.status},"block border-none w-full h-1 rounded-xl bg-gray-200"])},null,2),(0,a.createElementVNode)("span",y,(0,a.toDisplayString)(e.title),1)])}),256))])):(0,a.createCommentVNode)("",!0),st.order.status!==ot.enums.orderStatusEnum.CANCELED&&st.order.status!==ot.enums.orderStatusEnum.REJECTED&&st.order.order_type===ot.enums.orderTypeEnum.PICK_UP?((0,a.openBlock)(),(0,a.createElementBlock)("ul",b,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(ot.pickupTracks,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("li",g,[(0,a.createElementVNode)("hr",{class:(0,a.normalizeClass)([{"!bg-success":e.step<=st.order.status},"block border-none w-full h-1 rounded-xl bg-gray-200"])},null,2),(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)([{"lab-fill-save !bg-success text-white":e.step<=st.order.status},"flex-shrink-0 w-7 h-7 !leading-7 text-center rounded-full bg-gray-200 lab-font-size-16"])},null,2),(0,a.createElementVNode)("hr",{class:(0,a.normalizeClass)([{"!bg-success":e.step<=st.order.status},"block border-none w-full h-1 rounded-xl bg-gray-200"])},null,2),(0,a.createElementVNode)("span",h,(0,a.toDisplayString)(e.title),1)])}),256))])):(0,a.createCommentVNode)("",!0),st.order.status===ot.enums.orderStatusEnum.CANCELED?((0,a.openBlock)(),(0,a.createElementBlock)("button",f,[t[4]||(t[4]=(0,a.createElementVNode)("i",{class:"lab-fill-close-circle sm:text-xl"},null,-1)),(0,a.createElementVNode)("span",x,(0,a.toDisplayString)(e.$t("label.order_cancelled")),1)])):(0,a.createCommentVNode)("",!0),st.order.status===ot.enums.orderStatusEnum.REJECTED?((0,a.openBlock)(),(0,a.createElementBlock)("button",E,[t[5]||(t[5]=(0,a.createElementVNode)("i",{class:"lab-fill-close-circle sm:text-xl"},null,-1)),(0,a.createElementVNode)("span",N,(0,a.toDisplayString)(e.$t("label.order_rejected")),1)])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("div",w,[(0,a.createElementVNode)("div",V,[(0,a.createElementVNode)("ul",k,[(0,a.createElementVNode)("li",_,[(0,a.createElementVNode)("span",S,(0,a.toDisplayString)(e.$t("label.order_id"))+":",1),(0,a.createElementVNode)("span",D,"#"+(0,a.toDisplayString)(st.order.order_serial_no),1)]),(0,a.createElementVNode)("li",A,[(0,a.createElementVNode)("span",B,(0,a.toDisplayString)(e.$t("label.order_date"))+":",1),(0,a.createElementVNode)("span",C,(0,a.toDisplayString)(st.order.order_date)+" "+(0,a.toDisplayString)(st.order.order_time),1)]),(0,a.createElementVNode)("li",$,[(0,a.createElementVNode)("span",z,(0,a.toDisplayString)(e.$t("label.order_type"))+":",1),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(ot.enums.orderTypeEnumArray[st.order.order_type]),1)]),(0,a.createElementVNode)("li",I,[(0,a.createElementVNode)("span",T,(0,a.toDisplayString)(e.$t("label.order_status"))+":",1),(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(["font-sm capitalize px-2 rounded-3xl",st.orderStatusClass(st.order.status)])},(0,a.toDisplayString)(ot.enums.orderStatusEnumArray[st.order.status]),3)]),(0,a.createElementVNode)("li",P,[(0,a.createElementVNode)("span",L,(0,a.toDisplayString)(e.$t("label.payment_status"))+":",1),(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(["font-sm capitalize px-2 rounded-3xl",ot.enums.paymentStatusEnum.PAID===st.order.payment_status?"text-[#2AC769] bg-[#E2FFEE]":"text-[#FB4E4E] bg-[#FFE8E8]"])},(0,a.toDisplayString)(ot.enums.paymentStatusEnumArray[st.order.payment_status]),3)]),(0,a.createElementVNode)("li",O,[(0,a.createElementVNode)("span",j,(0,a.toDisplayString)(e.$t("label.payment_method"))+":",1),(0,a.createElementVNode)("span",F,(0,a.toDisplayString)(st.order.payment_method_name),1)])])]),st.order.order_type===ot.enums.orderTypeEnum.DELIVERY&&st.orderAddress.length>0?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(st.orderAddress,function(t){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(["rounded-2xl border border-gray-100",t.address_type===ot.enums.addressTypeEnum.SHIPPING?"mb-6":""]),key:t},[t.address_type===ot.enums.addressTypeEnum.SHIPPING?((0,a.openBlock)(),(0,a.createElementBlock)("h3",U,(0,a.toDisplayString)(e.$t("label.shipping_address")),1)):(0,a.createCommentVNode)("",!0),t.address_type===ot.enums.addressTypeEnum.BILLING?((0,a.openBlock)(),(0,a.createElementBlock)("h3",q,(0,a.toDisplayString)(e.$t("label.billing_address")),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("ul",R,[(0,a.createElementVNode)("li",H,[(0,a.createElementVNode)("span",M,(0,a.toDisplayString)(e.$t("label.name"))+":",1),(0,a.createElementVNode)("span",W,(0,a.toDisplayString)(t.full_name),1)]),(0,a.createElementVNode)("li",Y,[(0,a.createElementVNode)("span",G,(0,a.toDisplayString)(e.$t("label.phone"))+":",1),(0,a.createElementVNode)("span",K,(0,a.toDisplayString)(t.country_code)+" "+(0,a.toDisplayString)(t.phone),1)]),t.email?((0,a.openBlock)(),(0,a.createElementBlock)("li",J,[(0,a.createElementVNode)("span",X,(0,a.toDisplayString)(e.$t("label.email"))+":",1),(0,a.createElementVNode)("span",Q,(0,a.toDisplayString)(t.email),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("li",Z,[(0,a.createElementVNode)("span",ee,(0,a.toDisplayString)(e.$t("label.address"))+":",1),(0,a.createElementVNode)("span",te,[t.address?((0,a.openBlock)(),(0,a.createElementBlock)("span",re,(0,a.toDisplayString)(t.address),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(["block",t.address?"mt-2":""])},[t.city?((0,a.openBlock)(),(0,a.createElementBlock)("span",ae,(0,a.toDisplayString)(t.city)+",",1)):(0,a.createCommentVNode)("",!0),t.state?((0,a.openBlock)(),(0,a.createElementBlock)("span",le,(0,a.toDisplayString)(t.state)+",",1)):(0,a.createCommentVNode)("",!0),t.country?((0,a.openBlock)(),(0,a.createElementBlock)("span",ne,(0,a.toDisplayString)(t.country)+",",1)):(0,a.createCommentVNode)("",!0),t.zip_code?((0,a.openBlock)(),(0,a.createElementBlock)("span",oe,(0,a.toDisplayString)(t.zip_code),1)):(0,a.createCommentVNode)("",!0)],2)])])])],2)}),128)):(0,a.createCommentVNode)("",!0),st.order.order_type===ot.enums.orderTypeEnum.PICK_UP&&Object.keys(st.outletAddress).length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",se,[(0,a.createElementVNode)("h3",ie,(0,a.toDisplayString)(e.$t("label.pick_up_address")),1),(0,a.createElementVNode)("ul",ce,[(0,a.createElementVNode)("li",de,[(0,a.createElementVNode)("span",pe,(0,a.toDisplayString)(e.$t("label.name"))+":",1),(0,a.createElementVNode)("span",me,(0,a.toDisplayString)(st.outletAddress.name),1)]),st.outletAddress.phone?((0,a.openBlock)(),(0,a.createElementBlock)("li",ue,[(0,a.createElementVNode)("span",ye,(0,a.toDisplayString)(e.$t("label.phone"))+":",1),(0,a.createElementVNode)("span",be,(0,a.toDisplayString)(st.outletAddress.country_code)+" "+(0,a.toDisplayString)(st.outletAddress.phone),1)])):(0,a.createCommentVNode)("",!0),st.outletAddress.email?((0,a.openBlock)(),(0,a.createElementBlock)("li",ge,[(0,a.createElementVNode)("span",he,(0,a.toDisplayString)(e.$t("label.email"))+":",1),(0,a.createElementVNode)("span",fe,(0,a.toDisplayString)(st.outletAddress.email),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("li",xe,[(0,a.createElementVNode)("span",Ee,(0,a.toDisplayString)(e.$t("label.address"))+":",1),(0,a.createElementVNode)("span",Ne,[st.outletAddress.address?((0,a.openBlock)(),(0,a.createElementBlock)("span",ve,(0,a.toDisplayString)(st.outletAddress.address),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(["block",st.outletAddress.address?"mt-2":""])},[st.outletAddress.city?((0,a.openBlock)(),(0,a.createElementBlock)("span",we,(0,a.toDisplayString)(st.outletAddress.city)+",",1)):(0,a.createCommentVNode)("",!0),st.outletAddress.state?((0,a.openBlock)(),(0,a.createElementBlock)("span",Ve,(0,a.toDisplayString)(st.outletAddress.state)+",",1)):(0,a.createCommentVNode)("",!0),st.outletAddress.zip_code?((0,a.openBlock)(),(0,a.createElementBlock)("span",ke,(0,a.toDisplayString)(st.outletAddress.zip_code),1)):(0,a.createCommentVNode)("",!0)],2)])])])])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",_e,[(0,a.createElementVNode)("div",Se,[(0,a.createElementVNode)("h3",De,(0,a.toDisplayString)(e.$t("label.order_summary")),1),(0,a.createElementVNode)("ul",Ae,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(st.orderProducts,function(t){return(0,a.openBlock)(),(0,a.createElementBlock)("li",{key:t,class:"py-4 mx-4 flex gap-3 border-b last:border-0 border-dashed border-gray-100"},[(0,a.createElementVNode)("img",{src:t.product_image,alt:"product",class:"w-14 h-14 object-cover rounded-md flex-shrink-0"},null,8,Be),(0,a.createElementVNode)("div",Ce,[(0,a.createElementVNode)("h4",{class:(0,a.normalizeClass)([t.variation_names?"":"mb-4","text-sm capitalize whitespace-nowrap overflow-hidden text-ellipsis"])},(0,a.toDisplayString)(t.product_name),3),(0,a.createElementVNode)("p",$e,(0,a.toDisplayString)(t.variation_names),1),(0,a.createElementVNode)("div",ze,[(0,a.createElementVNode)("div",Ie,[(0,a.createElementVNode)("span",Te,(0,a.toDisplayString)(t.subtotal_currency_price),1),(0,a.createElementVNode)("span",Pe,(0,a.toDisplayString)(e.$t("label.quantity"))+": "+(0,a.toDisplayString)(t.quantity),1)]),st.order.status!==ot.enums.orderStatusEnum.DELIVERED||t.product_user_review?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(ct,{key:0,to:{name:"frontend.account.productReview",params:{slug:t.product_slug}},class:"text-sm font-semibold capitalize py-1 px-3 rounded-full whitespace-nowrap bg-[#FFF4F1] text-primary transition-all duration-500 hover:text-white hover:bg-primary"},{default:(0,a.withCtx)(function(){return[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("button.write_review")),1)]}),_:2},1032,["to"])),st.order.status===ot.enums.orderStatusEnum.DELIVERED&&t.product_user_review?((0,a.openBlock)(),(0,a.createBlock)(ct,{key:1,to:{name:"frontend.account.productReview.edit",params:{slug:t.product_slug,id:t.product_user_review_id}},class:"text-sm font-semibold capitalize py-1 px-3 rounded-full whitespace-nowrap bg-[#FFF4F1] text-primary transition-all duration-500 hover:text-white hover:bg-primary"},{default:(0,a.withCtx)(function(){return[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("button.edit_review")),1)]}),_:2},1032,["to"])):(0,a.createCommentVNode)("",!0)])])])}),128))]),(0,a.createElementVNode)("ul",Le,[(0,a.createElementVNode)("li",Oe,[(0,a.createElementVNode)("span",je,(0,a.toDisplayString)(e.$t("label.subtotal")),1),(0,a.createElementVNode)("span",Fe,(0,a.toDisplayString)(st.order.subtotal_currency_price),1)]),(0,a.createElementVNode)("li",Ue,[(0,a.createElementVNode)("span",qe,(0,a.toDisplayString)(e.$t("label.tax_fee")),1),(0,a.createElementVNode)("span",Re,(0,a.toDisplayString)(st.order.tax_currency_price),1)]),(0,a.createElementVNode)("li",He,[(0,a.createElementVNode)("span",Me,(0,a.toDisplayString)(e.$t("label.shipping_charge")),1),(0,a.createElementVNode)("span",We,(0,a.toDisplayString)(st.order.shipping_charge_currency_price),1)]),(0,a.createElementVNode)("li",Ye,[(0,a.createElementVNode)("span",Ge,(0,a.toDisplayString)(e.$t("label.discount")),1),(0,a.createElementVNode)("span",Ke,(0,a.toDisplayString)(st.order.discount_currency_price),1)])]),(0,a.createElementVNode)("div",Je,[(0,a.createElementVNode)("span",Xe,(0,a.toDisplayString)(e.$t("label.total")),1),(0,a.createElementVNode)("span",Qe,(0,a.toDisplayString)(st.order.total_currency_price),1)])])])])]),st.order.status!==ot.enums.orderStatusEnum.CANCELED?((0,a.openBlock)(),(0,a.createElementBlock)("div",Ze,[(0,a.createVNode)(dt,{order:st.order,orderProducts:st.orderProducts,orderUser:st.orderUser,orderAddress:st.orderAddress[0]},null,8,["order","orderProducts","orderUser","orderAddress"]),st.order.status===ot.enums.orderStatusEnum.PENDING?((0,a.openBlock)(),(0,a.createElementBlock)("button",{key:0,onClick:t[1]||(t[1]=function(e){return st.changeStatus(ot.enums.orderStatusEnum.CANCELED)}),type:"button",class:"px-6 py-3 capitalize rounded-full whitespace-nowrap text-center font-semibold border border-danger text-danger bg-white"},(0,a.toDisplayString)(e.$t("button.cancel_order")),1)):(0,a.createCommentVNode)("",!0),st.order.status===ot.enums.orderStatusEnum.DELIVERED&&st.order.return_and_refund?((0,a.openBlock)(),(0,a.createBlock)(ct,{key:1,to:{name:"frontend.account.returnOrder.request",params:{id:st.order.id}},class:"px-6 py-3 capitalize rounded-full whitespace-nowrap text-center font-semibold border border-danger text-danger bg-white"},{default:(0,a.withCtx)(function(){return[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("button.return_request")),1)]}),_:1},8,["to"])):(0,a.createCommentVNode)("",!0)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",{id:"payment-modal",class:(0,a.normalizeClass)([Object.keys(nt.route.query).length>0&&"success"===nt.route.query.status&&st.cart.length>0&&ot.modal?"modal-active":"","fixed inset-0 z-50 p-3 w-screen h-dvh overflow-y-auto bg-black/50 transition-all duration-300 opacity-0 invisible"])},[(0,a.createElementVNode)("div",et,[(0,a.createElementVNode)("div",tt,[(0,a.createElementVNode)("button",{onClick:t[2]||(t[2]=(0,a.withModifiers)(function(){return st.reset&&st.reset.apply(st,arguments)},["prevent"])),type:"button",class:"lab-line-circle-cross text-lg text-[#E93C3C] absolute top-3 right-3"}),(0,a.createElementVNode)("h3",rt,(0,a.toDisplayString)(e.$t("message.thank_you_for_your_order")),1),(0,a.createElementVNode)("img",{src:st.setting.image_confirm,alt:"confirm-image",class:"w-[120px] mx-auto mb-5"},null,8,at),(0,a.createElementVNode)("h4",lt,(0,a.toDisplayString)(e.$t("message.your_order_is_successfully_placed")),1),(0,a.createElementVNode)("button",{type:"button",onClick:t[3]||(t[3]=(0,a.withModifiers)(function(){return st.reset&&st.reset.apply(st,arguments)},["prevent"])),class:"field-button font-semibold normal-case"},(0,a.toDisplayString)(e.$t("button.see_your_order_details")),1)])])],2)],64)}]])}}]);
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