[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6395.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6395],{970:(e,t,r)=>{r.d(t,{A:()=>n});const n=Object.freeze({PAID:5,UNPAID:10})},3106:(e,t,r)=>{r.d(t,{A:()=>Be});var n=r(9726),a={class:"modal-body"},o={class:"text-center pb-3.5 border-b border-dashed border-gray-400"},l={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"},u={class:"text-xs text-right py-0.5 text-heading"},m={class:"w-full"},g={class:"border-t border-b border-dashed border-gray-400"},h={scope:"col",class:"py-1 font-normal text-xs capitalize text-left text-heading w-8"},y={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"},f={class:"text-left font-normal align-top py-1"},x={class:"text-xs leading-5 text-heading"},v={class:"text-left font-normal align-top py-1"},E={class:"flex items-center justify-between"},N={class:"text-xs leading-5 text-heading"},k={class:"text-xs leading-5 text-heading"},V={key:0,class:"text-xs leading-5 text-heading max-w-[200px]"},w={class:"py-2 pl-7"},S={class:"w-full"},A={class:"text-xs text-left py-0.5 uppercase text-heading"},B={class:"text-xs text-right py-0.5 text-heading"},D={class:"text-xs text-left py-0.5 uppercase text-heading"},C={class:"text-xs text-right py-0.5 text-heading"},_={class:"text-xs text-left py-0.5 uppercase text-heading"},P={class:"text-xs text-right py-0.5 text-heading"},$={key:0},I={class:"text-xs text-left py-0.5 uppercase text-heading"},T={class:"text-xs text-right py-0.5 text-heading"},O={class:"text-xs text-left py-0.5 font-bold uppercase text-heading"},U={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"},z={class:"pt-1 pb-1"},H={class:"pt-1 pb-1 pr-1"},j={class:"pt-1 pb-1"},q={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},ne={key:3},ae={key:4},oe={key:1},le={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"},ue={key:0},me={key:1},ge={key:2},he={key:3},ye={key:4},be={class:"text-center pt-2 pb-4"},fe={class:"text-[11px] leading-[14px] capitalize text-heading"},xe={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]"},Ne={class:"text-xs font-normal leading-4"};var ke=r(1978),Ve=r(4233);function we(e){return we="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},we(e)}function Se(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=we(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=we(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==we(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:ke.A,orderTypeEnumArray:Se(Se({},ke.A.DELIVERY,this.$t("label.delivery")),ke.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 Be=(0,r(6262).A)(Ae,[["render",function(e,t,r,ke,Ve,we){return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createElementVNode)("div",o,[(0,n.createElementVNode)("h3",l,(0,n.toDisplayString)(we.company.company_name),1),(0,n.createElementVNode)("h4",s,(0,n.toDisplayString)(we.company.company_address),1),(0,n.createElementVNode)("h5",i,(0,n.toDisplayString)(e.$t("label.tel"))+": "+(0,n.toDisplayString)(we.company.company_calling_code)+" "+(0,n.toDisplayString)(we.company.company_phone),1)]),(0,n.createElementVNode)("table",d,[(0,n.createElementVNode)("tbody",null,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",c,(0,n.toDisplayString)(e.$t("label.order_id"))+" #"+(0,n.toDisplayString)(we.order.order_serial_no),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",p,(0,n.toDisplayString)(we.order.order_date),1),(0,n.createElementVNode)("td",u,(0,n.toDisplayString)(we.order.order_time),1)])])]),(0,n.createElementVNode)("table",m,[(0,n.createElementVNode)("thead",g,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("th",h,(0,n.toDisplayString)(e.$t("label.qty")),1),(0,n.createElementVNode)("th",y,[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("label.product_description")),1),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("label.price")),1)])])]),(0,n.createElementVNode)("tbody",b,[we.orderProducts.length>0?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:0},(0,n.renderList)(we.orderProducts,function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{key:e},[(0,n.createElementVNode)("td",f,[(0,n.createElementVNode)("p",x,(0,n.toDisplayString)(e.quantity),1)]),(0,n.createElementVNode)("td",v,[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("p",N,(0,n.toDisplayString)(e.product_name),1),(0,n.createElementVNode)("p",k,(0,n.toDisplayString)(e.total_currency_price),1)]),e.variation_names?((0,n.openBlock)(),(0,n.createElementBlock)("p",V,(0,n.toDisplayString)(e.variation_names),1)):(0,n.createCommentVNode)("",!0),e.product_tax.length>0?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(e.product_tax,function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("p",{class:"text-xs leading-5 text-heading",key:e},(0,n.toDisplayString)(e.tax_name)+" ("+(0,n.toDisplayString)(e.tax_rate)+"%) ",1)}),128)):(0,n.createCommentVNode)("",!0)])])}),128)):(0,n.createCommentVNode)("",!0)])]),(0,n.createElementVNode)("div",w,[(0,n.createElementVNode)("table",S,[(0,n.createElementVNode)("tbody",null,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",A,(0,n.toDisplayString)(e.$t("label.subtotal"))+":",1),(0,n.createElementVNode)("td",B,(0,n.toDisplayString)(we.order.subtotal_currency_price),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",D,(0,n.toDisplayString)(e.$t("label.tax_fee"))+": ",1),(0,n.createElementVNode)("td",C,(0,n.toDisplayString)(we.order.tax_currency_price),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",_,(0,n.toDisplayString)(e.$t("label.discount"))+":",1),(0,n.createElementVNode)("td",P,(0,n.toDisplayString)(we.order.discount_currency_price),1)]),we.order.order_type===Ve.enums.orderTypeEnum.DELIVERY?((0,n.openBlock)(),(0,n.createElementBlock)("tr",$,[(0,n.createElementVNode)("td",I,(0,n.toDisplayString)(e.$t("label.shipping_charge"))+": ",1),(0,n.createElementVNode)("td",T,(0,n.toDisplayString)(we.order.shipping_charge_currency_price),1)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",O,(0,n.toDisplayString)(e.$t("label.total"))+": ",1),(0,n.createElementVNode)("td",U,(0,n.toDisplayString)(we.order.total_currency_price),1)])])])]),(0,n.createElementVNode)("div",L,[(0,n.createElementVNode)("table",null,[(0,n.createElementVNode)("tbody",null,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",R,(0,n.toDisplayString)(e.$t("label.order_type"))+":",1),(0,n.createElementVNode)("td",z,(0,n.toDisplayString)(Ve.enums.orderTypeEnumArray[we.order.order_type]),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",H,(0,n.toDisplayString)(e.$t("label.payment_type"))+":",1),(0,n.createElementVNode)("td",j,(0,n.toDisplayString)(we.order.payment_method_name),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",q,(0,n.toDisplayString)(e.$t("label.order_date_time"))+":",1),(0,n.createElementVNode)("td",F,(0,n.toDisplayString)(we.order.order_datetime),1)])])])]),(0,n.createElementVNode)("div",M,[(0,n.createElementVNode)("table",null,[we.order.order_type===Ve.enums.orderTypeEnum.DELIVERY?((0,n.openBlock)(),(0,n.createElementBlock)("tbody",W,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",Y,(0,n.toDisplayString)(e.$t("label.customer"))+":",1),(0,n.createElementVNode)("td",K,(0,n.toDisplayString)(we.orderAddress[0].full_name),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",G,(0,n.toDisplayString)(e.$t("label.phone"))+":",1),(0,n.createElementVNode)("td",J,(0,n.toDisplayString)(we.orderAddress[0].country_code+""+we.orderAddress[0].phone),1)]),we.order.order_type===Ve.enums.orderTypeEnum.DELIVERY?((0,n.openBlock)(),(0,n.createElementBlock)("tr",X,[(0,n.createElementVNode)("td",Q,(0,n.toDisplayString)(e.$t("label.address"))+":",1),(0,n.createElementVNode)("td",Z,[we.orderAddress[0].address?((0,n.openBlock)(),(0,n.createElementBlock)("span",ee,(0,n.toDisplayString)(we.orderAddress[0].address)+",",1)):(0,n.createCommentVNode)("",!0),we.orderAddress[0].state?((0,n.openBlock)(),(0,n.createElementBlock)("span",te,(0,n.toDisplayString)(we.orderAddress[0].state)+",",1)):(0,n.createCommentVNode)("",!0),we.orderAddress[0].city?((0,n.openBlock)(),(0,n.createElementBlock)("span",re,(0,n.toDisplayString)(we.orderAddress[0].city)+",",1)):(0,n.createCommentVNode)("",!0),we.orderAddress[0].country?((0,n.openBlock)(),(0,n.createElementBlock)("span",ne,(0,n.toDisplayString)(we.orderAddress[0].country)+",",1)):(0,n.createCommentVNode)("",!0),we.orderAddress[0].zip_code?((0,n.openBlock)(),(0,n.createElementBlock)("span",ae,(0,n.toDisplayString)(we.orderAddress[0].zip_code),1)):(0,n.createCommentVNode)("",!0)])])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),we.order.order_type===Ve.enums.orderTypeEnum.PICK_UP?((0,n.openBlock)(),(0,n.createElementBlock)("tbody",oe,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",le,(0,n.toDisplayString)(e.$t("label.customer"))+":",1),(0,n.createElementVNode)("td",se,(0,n.toDisplayString)(we.orderUser.name),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",ie,(0,n.toDisplayString)(e.$t("label.phone"))+":",1),(0,n.createElementVNode)("td",de,(0,n.toDisplayString)(we.orderUser.country_code+""+we.orderUser.phone),1)]),(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("td",ce,(0,n.toDisplayString)(e.$t("label.outlet"))+":",1),(0,n.createElementVNode)("td",pe,[we.outletAddress.address?((0,n.openBlock)(),(0,n.createElementBlock)("span",ue,(0,n.toDisplayString)(we.outletAddress.address)+",",1)):(0,n.createCommentVNode)("",!0),we.outletAddress.state?((0,n.openBlock)(),(0,n.createElementBlock)("span",me,(0,n.toDisplayString)(we.outletAddress.state)+",",1)):(0,n.createCommentVNode)("",!0),we.outletAddress.city?((0,n.openBlock)(),(0,n.createElementBlock)("span",ge,(0,n.toDisplayString)(we.outletAddress.city)+",",1)):(0,n.createCommentVNode)("",!0),we.outletAddress.country?((0,n.openBlock)(),(0,n.createElementBlock)("span",he,(0,n.toDisplayString)(we.outletAddress.country)+",",1)):(0,n.createCommentVNode)("",!0),we.outletAddress.zip_code?((0,n.openBlock)(),(0,n.createElementBlock)("span",ye,(0,n.toDisplayString)(we.outletAddress.zip_code),1)):(0,n.createCommentVNode)("",!0)])])])):(0,n.createCommentVNode)("",!0)])]),(0,n.createElementVNode)("div",be,[(0,n.createElementVNode)("p",fe,(0,n.toDisplayString)(e.$t("message.thank_you")),1),(0,n.createElementVNode)("p",xe,(0,n.toDisplayString)(e.$t("message.please_come_again")),1)]),(0,n.createElementVNode)("div",ve,[(0,n.createElementVNode)("h5",Ee,(0,n.toDisplayString)(e.$t("label.powered_by")),1),(0,n.createElementVNode)("h6",Ne,(0,n.toDisplayString)(we.company.company_name),1)])])}]])},3301:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(9726),a={class:"first-letter:capitalize"};const o={name:"PaginationTextComponent",props:["props"]};const l=(0,r(6262).A)(o,[["render",function(e,t,r,o,l,s){var i,d;return(0,n.openBlock)(),(0,n.createElementBlock)("p",a,[(0,n.createTextVNode)((0,n.toDisplayString)(e.$t("label.showing"))+" ",1),(0,n.createElementVNode)("b",null,(0,n.toDisplayString)(null!==(i=r.props.page.from)&&void 0!==i?i:0),1),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("label.to"))+" ",1),(0,n.createElementVNode)("b",null,(0,n.toDisplayString)(null!==(d=r.props.page.to)&&void 0!==d?d:0),1),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("label.of"))+" ",1),(0,n.createElementVNode)("b",null,(0,n.toDisplayString)(r.props.page.total),1),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("label.results")),1)])}]])},5316:(e,t,r)=>{r.d(t,{A:()=>o});class n{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,n=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(r,"load",function(){n.focus(),t.settings.openCallback(),n.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 n=document.styleSheets;if(n&&n.length>0)for(let e=0;e<n.length;e++)try{if(n[e].cssRules||n[e].rules){let t=n[e].cssRules||n[e].rules;for(let e=0;e<t.length;e++)r+=t[e].cssText}}catch(t){console.log(n[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,n=t[e].toDataURL("image/png"),a=new Image;a.className="canvasImg",a.style.display="none",a.src=n,r.appendChild(a)}return e}getFormData(e){let t=e.cloneNode(!0),r=t.querySelectorAll("input,select,textarea"),n=t.querySelectorAll(".canvasImg,canvas"),a=-1;for(let e=0;e<n.length;e++){let t=n[e].parentNode,r=n[e];"canvas"===r.tagName.toLowerCase()?t.removeChild(r):r.style.display="block"}for(let t=0;t<r.length;t++){let n=r[t],o=n.getAttribute("type"),l=r[t];if(o||(o="SELECT"===n.tagName?"select":"TEXTAREA"===n.tagName?"textarea":""),"INPUT"===n.tagName)"radio"===o||"checkbox"===o?n.checked&&l.setAttribute("checked",n.checked):(l.value=n.value,l.setAttribute("value",n.value));else if("select"===o){a++;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")==a){let t=e.querySelectorAll("select")[a].selectedIndex;n.options[t].setAttribute("selected",!0)}}}else l.innerHTML=n.value,l.setAttribute("html",n.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 n=this.close;n.setAttribute("class","previewClose"),n.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let a=document.createElement("div"),o=document.createElement("div");a.setAttribute("class","closeBefore"),a.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),o.setAttribute("class","closeAfter"),o.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),n.appendChild(a),n.appendChild(o),r.appendChild(n),this.previewBody=document.createElement("div");let l=this.previewBody;l.setAttribute("class","previewBody"),l.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(l);let s=document.createElement("div");s.setAttribute("class","previewBodyUtil"),s.setAttribute("style","height: 32px;background: #474747;position: relative;"),l.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,n=this.iframeBox(t,e);try{if(this.settings.preview){n.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,a=e.close;t.appendChild(n),this.addEvent(a,"click",function(){r.previewBoxHide()})}else document.body.appendChild(n);n.doc=null,n.doc=n.contentDocument?n.contentDocument:n.contentWindow?n.contentWindow.document:n.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==n.doc)throw new Error("Cannot find document.");return n}}var a={directiveName:"print",mounted(e,t,r){let a=t.instance,o="";var l,s,i;s="click",i=()=>{if("string"==typeof t.value)o=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{o=t.value.id;let e=o.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),o="")}}d()},(l=e).addEventListener?l.addEventListener(s,i,!1):l.attachEvent?l.attachEvent("on"+s,i):l["on"+s]=i;const d=()=>{new n({ids:o,vue:a,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(a)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(a)},openCallback(){t.value.openCallback&&t.value.openCallback(a)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(a)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(a)}})}},install:function(e){e.directive("print",a)}};const o=a},5449:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(6314),a=r.n(n)()(function(e){return e[1]});a.push([e.id,"@media print{.hidden-print[data-v-4ad921da]{display:none!important}}",""]);const o=a},6079:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(9726),a=["disabled"],o=["aria-current"],l=["disabled"];const s={name:"PaginationComponent",inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderLessPagination:{emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},computed:{isApiResource(){return!!this.data.meta},currentPage(){return this.isApiResource?this.data.meta.current_page:this.data.current_page??null},firstPageUrl(){return this.data.first_page_url??this.data.meta?.first_page_url??this.data.links?.first??null},from(){return this.isApiResource?this.data.meta.from:this.data.from??null},lastPage(){return this.isApiResource?this.data.meta.last_page:this.data.last_page??null},lastPageUrl(){return this.data.last_page_url??this.data.meta?.last_page_url??this.data.links?.last??null},nextPageUrl(){return this.data.next_page_url??this.data.meta?.next_page_url??this.data.links?.next??null},perPage(){return this.isApiResource?this.data.meta.per_page:this.data.per_page??null},prevPageUrl(){return this.data.prev_page_url??this.data.meta?.prev_page_url??this.data.links?.prev??null},to(){return this.isApiResource?this.data.meta.to:this.data.to??null},total(){return this.isApiResource?this.data.meta.total:this.data.total??null},pageRange(){if(-1===this.limit)return 0;if(0===this.limit)return this.lastPage;for(var e,t=this.currentPage,r=this.keepLength,n=this.lastPage,a=this.limit,o=t-a,l=t+a,s=2*(a+2),i=2*(a+2)-1,d=[],c=[],p=1;p<=n;p++)(1===p||p===n||p>=o&&p<=l||r&&p<s&&t<s-2||r&&p>n-i&&t>n-i+2)&&d.push(p);return d.forEach(function(t){e&&(t-e===2?c.push(e+1):t-e!==1&&c.push("...")),c.push(t),e=t}),c}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(e){"..."!==e&&e!==this.currentPage&&this.$emit("pagination-change-page",e)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:e=>{e.preventDefault(),this.previousPage()}},nextButtonEvents:{click:e=>{e.preventDefault(),this.nextPage()}},pageButtonEvents:e=>({click:t=>{t.preventDefault(),this.selectPage(e)}})})}}},props:{data:{type:Object,default:function(){}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},data:function(){return{activeClass:["bg-primary","text-white"]}},methods:{onPaginationChangePage:function(e){this.$emit("pagination-change-page",e)}}};const i=(0,r(6262).A)(s,[["render",function(e,t,r,s,i,d){var c=(0,n.resolveComponent)("RenderLessPagination");return(0,n.openBlock)(),(0,n.createBlock)(c,{data:r.data,limit:r.limit,"keep-length":r.keepLength,onPaginationChangePage:d.onPaginationChangePage},{default:(0,n.withCtx)(function(t){return[t.computed.total>t.computed.perPage?((0,n.openBlock)(),(0,n.createElementBlock)("nav",(0,n.mergeProps)({key:0},e.$attrs,{"aria-label":"Pagination",class:"flex items-center justify-center gap-4 mobile:mb-12"}),[(0,n.createElementVNode)("button",(0,n.mergeProps)({disabled:!t.computed.prevPageUrl,class:t.computed.prevPageUrl?"hover:text-white hover:bg-primary":""},(0,n.toHandlers)(t.prevButtonEvents,!0),{class:"h-10 leading-10 px-4 rounded-full font-medium capitalize bg-gray-100 transition-all duration-500"}),[(0,n.renderSlot)(e.$slots,"prev-nav",{},function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.$t("label.previous")),1)]})],16,a),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.computed.pageRange,function(e,r){return(0,n.openBlock)(),(0,n.createElementBlock)("button",(0,n.mergeProps)({class:t.computed.currentPage===e?"bg-primary text-white":"","aria-current":t.computed.currentPage?"page":null,key:r},(0,n.toHandlers)(t.pageButtonEvents(e),!0),{class:"w-10 h-10 leading-10 rounded-full font-medium capitalize text-center transition-all duration-500 hover:text-white hover:bg-primary hidden sm:block bg-gray-100"}),(0,n.toDisplayString)(e),17,o)}),128)),(0,n.createElementVNode)("button",(0,n.mergeProps)({disabled:!t.computed.nextPageUrl,class:t.computed.nextPageUrl?"hover:text-white hover:bg-primary":""},(0,n.toHandlers)(t.nextButtonEvents,!0),{class:"h-10 leading-10 px-4 rounded-full font-medium capitalize bg-gray-100 transition-all duration-500"}),[(0,n.renderSlot)(e.$slots,"next-nav",{},function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.$t("label.next")),1)]})],16,l)],16)):(0,n.createCommentVNode)("",!0)]}),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},6395:(e,t,r)=>{r.r(t),r.d(t,{default:()=>oe});var n=r(9726),a={class:"capitalize text-2xl font-bold mb-7 text-primary"},o={class:"rounded-2xl shadow-card bg-white mobile:mb-20"},l={class:"max-md:overflow-x-auto"},s={class:"w-full text-left text-sm capitalize"},i={class:"font-semibold border-b-2 border-gray-200"},d={class:"p-4"},c={class:"p-4"},p={class:"p-4"},u={class:"p-4"},m={class:"p-4"},g={class:"p-4"},h={key:0,class:"font-medium"},y={class:"p-4 border-t border-gray-100"},b={class:"font-semibold mb-1"},f={class:"text-xs text-text"},x={class:"p-4 border-t border-gray-100"},v={class:"p-4 border-t border-gray-100"},E={class:"p-4 border-t border-gray-100"},N={class:"p-4 border-t border-gray-100"},k={class:"p-4 border-t border-gray-100"},V={class:"relative group w-fit"},w={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"},S=["onClick"],A={key:1,class:"db-table-body"},B={class:"db-table-body-tr"},D={class:"db-table-body-td text-center",colspan:"6"},C={class:"p-4"},_={class:"max-w-[300px] mx-auto mt-2"},P=["src"],$={class:"d-block mt-3 text-lg"},I={key:0,class:"px-4 py-6 border-t border-gray-100"},T={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},O={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"},U={class:"w-full max-w-[302px] mx-auto bg-white transition-all duration-500",id:"print"},L={class:"modal-header hidden-print"},R={class:"text-xs leading-5 capitalize text-white"},z={type:"button",class:"flex items-center justify-center gap-1.5 py-2 px-4 rounded bg-[#1AB759]"},H={class:"text-xs leading-5 capitalize text-white"};var j=r(1811),q=r(908),F=r(970),M=r(6719),W=r(8655),Y=r(4233),K=r(6079),G=r(3301),J=r(3106),X=r(5316);function Q(e){return Q="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},Q(e)}function Z(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ee={name:"OrderHistoryComponent",components:{LoadingComponent:j.A,PaginationComponent:K.A,PaginationTextComponent:G.A,OrderReceiptComponent:J.A},directives:{print:X.A},data:function(){return{loading:{isActive:!1},printObj:{id:"print",popTitle:this.$t("menu.order_receipt")},enums:{paymentStatusEnum:F.A,orderStatusEnum:q.A,orderStatusEnumArray:Z(Z(Z(Z(Z(Z({},q.A.PENDING,this.$t("label.pending")),q.A.CONFIRMED,this.$t("label.confirmed")),q.A.ON_THE_WAY,this.$t("label.on_the_way")),q.A.DELIVERED,this.$t("label.delivered")),q.A.CANCELED,this.$t("label.canceled")),q.A.REJECTED,this.$t("label.rejected")),paymentStatusEnumArray:Z(Z({},F.A.PAID,this.$t("label.paid")),F.A.UNPAID,this.$t("label.unpaid"))},search:{paginate:1,page:1,per_page:10,order_column:"id",order_by:"desc",active:M.A.YES},orderId:""}},mounted:function(){this.list()},computed:{setting:function(){return this.$store.getters["frontendSetting/lists"]},orders:function(){return this.$store.getters["frontendOrder/lists"]},pagination:function(){return this.$store.getters["frontendOrder/pagination"]},paginationPage:function(){return this.$store.getters["frontendOrder/page"]}},methods:{orderStatusClass:function(e){return W.A.orderStatusClass(e)},handleOrderReceiptModal:function(e){this.orderId=e.id},reset:function(){var e=this;Y.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})}}};var te=r(5072),re=r.n(te),ne=r(5449),ae={insert:"head",singleton:!1};re()(ne.A,ae);ne.A.locals;const oe=(0,r(6262).A)(ee,[["render",function(e,t,r,j,q,F){var M=(0,n.resolveComponent)("LoadingComponent"),W=(0,n.resolveComponent)("router-link"),Y=(0,n.resolveComponent)("PaginationTextComponent"),K=(0,n.resolveComponent)("PaginationComponent"),G=(0,n.resolveComponent)("OrderReceiptComponent"),J=(0,n.resolveDirective)("print");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(M,{props:q.loading},null,8,["props"]),(0,n.createElementVNode)("h2",a,(0,n.toDisplayString)(e.$t("label.order_history")),1),(0,n.createElementVNode)("div",o,[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("table",s,[(0,n.createElementVNode)("thead",i,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("th",d,(0,n.toDisplayString)(e.$t("label.order_id")),1),(0,n.createElementVNode)("th",c,(0,n.toDisplayString)(e.$t("label.products")),1),(0,n.createElementVNode)("th",p,(0,n.toDisplayString)(e.$t("label.status")),1),(0,n.createElementVNode)("th",u,(0,n.toDisplayString)(e.$t("label.payment")),1),(0,n.createElementVNode)("th",m,(0,n.toDisplayString)(e.$t("label.amount")),1),(0,n.createElementVNode)("th",g,(0,n.toDisplayString)(e.$t("label.action")),1)])]),F.orders.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("tbody",h,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(F.orders,function(r){return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{key:r},[(0,n.createElementVNode)("td",y,[(0,n.createElementVNode)("h5",b,(0,n.toDisplayString)(r.order_serial_no),1),(0,n.createElementVNode)("p",f,(0,n.toDisplayString)(r.order_datetime),1)]),(0,n.createElementVNode)("td",x,(0,n.toDisplayString)(r.order_items)+" "+(0,n.toDisplayString)(e.$t("label.product")),1),(0,n.createElementVNode)("td",v,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["db-table-badge",F.orderStatusClass(r.status)])},(0,n.toDisplayString)(q.enums.orderStatusEnumArray[r.status]),3)]),(0,n.createElementVNode)("td",E,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["ext-xs px-2 py-1 rounded-full",q.enums.paymentStatusEnum.PAID===r.payment_status?"text-[#2AC769] bg-[#E2FFEE]":"text-[#FB4E4E] bg-[#FFE8E8]"])},(0,n.toDisplayString)(q.enums.paymentStatusEnumArray[r.payment_status]),3)]),(0,n.createElementVNode)("td",N,(0,n.toDisplayString)(r.total_currency_price),1),(0,n.createElementVNode)("td",k,[(0,n.createElementVNode)("div",V,[t[1]||(t[1]=(0,n.createElementVNode)("button",{type:"button"},[(0,n.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,n.createElementVNode)("nav",w,[(0,n.createVNode)(W,{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,n.withCtx)(function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.$t("label.view")),1)]}),_:2},1032,["to"]),(0,n.createElementVNode)("button",{type:"button",onClick:(0,n.withModifiers)(function(e){return F.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,n.toDisplayString)(e.$t("label.download")),9,S)])])])])}),128))])):((0,n.openBlock)(),(0,n.createElementBlock)("tbody",A,[(0,n.createElementVNode)("tr",B,[(0,n.createElementVNode)("td",D,[(0,n.createElementVNode)("div",C,[(0,n.createElementVNode)("div",_,[(0,n.createElementVNode)("img",{class:"w-full h-full",src:F.setting.not_found,alt:"Not Found"},null,8,P)]),(0,n.createElementVNode)("span",$,(0,n.toDisplayString)(e.$t("message.no_data_found")),1)])])])]))])]),F.orders.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",I,[(0,n.createElementVNode)("div",T,[(0,n.createVNode)(Y,{props:{page:F.paginationPage}},null,8,["props"]),(0,n.createVNode)(K,{onPaginationChangePage:F.list,data:F.pagination,limit:1,"keep-length":!1},null,8,["onPaginationChangePage","data"])])])):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",O,[(0,n.createElementVNode)("div",U,[(0,n.createElementVNode)("div",L,[(0,n.createElementVNode)("button",{type:"button",onClick:t[0]||(t[0]=function(){return F.reset&&F.reset.apply(F,arguments)}),class:"modal-close flex items-center justify-center gap-1.5 py-2 px-4 rounded bg-[#FB4E4E]"},[t[2]||(t[2]=(0,n.createElementVNode)("i",{class:"lab lab-fill-close-circle lab-font-size-16 text-white"},null,-1)),(0,n.createElementVNode)("span",R,(0,n.toDisplayString)(e.$t("button.close")),1)]),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("button",z,[t[3]||(t[3]=(0,n.createElementVNode)("i",{class:"lab lab-fill-printer lab-font-size-16 text-white"},null,-1)),(0,n.createElementVNode)("span",H,(0,n.toDisplayString)(e.$t("button.print_invoice")),1)])),[[J,q.printObj]])]),q.orderId?((0,n.openBlock)(),(0,n.createBlock)(G,{key:0,method:F.reset,orderId:q.orderId},null,8,["method","orderId"])):(0,n.createCommentVNode)("",!0)])])],64)}],["__scopeId","data-v-4ad921da"]])}}]);
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