[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 4436.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4436],{4436:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ge});var a=r(9726),l={class:"col-12"},n={class:"db-card p-4"},o={class:"flex flex-wrap gap-y-5 items-end justify-between"},s={class:"flex flex-wrap items-start gap-y-2 gap-x-3 mb-5"},c={class:"text-2xl font-medium"},d={class:"text-heading"},i={class:"flex items-center gap-2 mt-1.5"},m={class:"flex flex-col gap-2"},u={class:"flex items-center gap-2"},p={class:"text-xs"},b={key:0,class:"flex flex-wrap gap-3"},f={class:"text-sm capitalize text-white"},E={class:"col-12 sm:col-6"},g={class:"row"},N={class:"col-12"},v={class:"db-card"},V={class:"db-card-header"},h={class:"db-card-title"},y={class:"db-card-body p-0"},x={class:"pl-8 py-4 pr-4"},S={class:"flex items-center gap-3 relative"},A={class:"absolute top-5 ltr:-left-3 rtl:-right-3 text-sm w-[26px] h-[26px] leading-[26px] text-center rounded-full text-white bg-heading"},k=["src"],w={class:"flex-auto overflow-hidden"},C={class:"text-sm capitalize whitespace-nowrap overflow-hidden text-ellipsis"},D={key:0,class:"text-sm overflow-hidden"},_={class:"flex flex-wrap items-center justify-between gap-4"},B={class:"flex items-center gap-8"},$={class:"text-sm font-semibold"},R={class:"flex items-center justify-between p-4 border-t border-dashed border-[#EFF0F6]"},j={class:"text-sm leading-6 font-bold capitalize"},M={class:"text-sm leading-6 font-bold capitalize"},z={key:0,class:"col-12"},F={class:"db-card"},O={class:"db-card-header"},P={class:"db-card-title"},U={class:"db-card-body"},T={class:"inline-flex flex-wrap gap-4"},L=["src"],J={key:1,class:"col-12"},q={class:"db-card"},G={class:"db-card-header"},H={class:"db-card-title"},I={class:"db-card-body"},K={class:"capitalize"},Q={class:"col-12 sm:col-6"},W={class:"row"},X={key:0,class:"col-12"},Y={class:"db-card"},Z={class:"db-card-header"},ee={class:"db-card-title"},te={class:"db-card-body"},re={class:"capitalize"},ae={key:1,class:"col-12"},le={class:"db-card"},ne={class:"db-card-header"},oe={class:"db-card-title"},se={class:"db-card-body"},ce={class:"capitalize"},de={class:"col-12"},ie={class:"db-card"},me={class:"db-card-header"},ue={class:"db-card-title"},pe={class:"db-card-body"},be={class:"flex items-center gap-3 mb-4"},fe=["src"],Ee={class:"font-semibold text-sm capitalize text-[#374151]"},ge={class:"flex flex-col gap-3 py-4 border-t border-[#EFF0F6]"},Ne={class:"flex items-center gap-2.5"},ve={class:"text-xs"},Ve={key:0,class:"flex items-center gap-2.5"},he={class:"text-xs"};var ye=r(5475),xe=r(8655),Se=r(4290),Ae=r(9856),ke={class:"text-sm capitalize text-white"},we={id:"reasonModal",class:"modal"},Ce={class:"modal-dialog"},De={class:"modal-header"},_e={class:"modal-title"},Be={class:"modal-body"},$e={class:"form-row"},Re={class:"form-col-12"},je={for:"name",class:"db-field-title required"},Me={key:0,class:"db-field-alert"},ze={class:"form-col-12"},Fe={class:"modal-btns"},Oe={type:"submit",class:"db-btn py-2 text-white bg-primary"};const Pe={name:"ReturnAndRefundReasonComponent",components:{LoadingComponent:ye.A},data:function(){return{loading:{isActive:!1},form:{reason:""},error:""}},methods:{reasonModal:function(){xe.A.modalShow("#reasonModal")},resetModal:function(){xe.A.modalHide("#reasonModal"),this.form.reason="",this.error=""},rejectOrder:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("returnAndRefund/changeStatus",{id:this.$route.params.id,status:Se.A.REJECTED,reason:this.form.reason}).then(function(t){e.loading.isActive=!1,xe.A.modalHide(),e.form={reason:""},e.error="",Ae.A.successFlip(1,e.$t("label.status"))}).catch(function(t){e.loading.isActive=!1,e.error=t.response.data.message})}catch(e){this.loading.isActive=!1,Ae.A.error(e.response.data.message)}}}};var Ue=r(6262);const Te=(0,Ue.A)(Pe,[["render",function(e,t,r,l,n,o){var s=(0,a.resolveComponent)("LoadingComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,{props:n.loading},null,8,["props"]),(0,a.createElementVNode)("button",{type:"button",onClick:t[0]||(t[0]=function(){return o.reasonModal&&o.reasonModal.apply(o,arguments)}),"data-modal":"#reasonModal",class:"flex items-center justify-center text-white gap-2 px-4 h-[38px] rounded shadow-db-card bg-[#FB4E4E]"},[t[5]||(t[5]=(0,a.createElementVNode)("i",{class:"lab lab-fill-close-circle"},null,-1)),(0,a.createElementVNode)("span",ke,(0,a.toDisplayString)(e.$t("button.reject")),1)]),(0,a.createElementVNode)("div",we,[(0,a.createElementVNode)("div",Ce,[(0,a.createElementVNode)("div",De,[(0,a.createElementVNode)("h3",_e,(0,a.toDisplayString)(e.$t("label.reason")),1),(0,a.createElementVNode)("button",{class:"modal-close fa-solid fa-xmark text-xl text-slate-400 hover:text-red-500",onClick:t[1]||(t[1]=(0,a.withModifiers)(function(){return o.resetModal&&o.resetModal.apply(o,arguments)},["prevent"]))})]),(0,a.createElementVNode)("div",Be,[(0,a.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,a.withModifiers)(function(){return o.rejectOrder&&o.rejectOrder.apply(o,arguments)},["prevent"])),class:"w-full d-block"},[(0,a.createElementVNode)("div",$e,[(0,a.createElementVNode)("div",Re,[(0,a.createElementVNode)("label",je,(0,a.toDisplayString)(e.$t("label.reason")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return n.form.reason=e}),class:(0,a.normalizeClass)([n.error?"invalid":"","db-field-control"]),type:"text",id:"name"},null,2),[[a.vModelText,n.form.reason]]),n.error?((0,a.openBlock)(),(0,a.createElementBlock)("small",Me,(0,a.toDisplayString)(n.error),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",ze,[(0,a.createElementVNode)("div",Fe,[(0,a.createElementVNode)("button",{type:"button",class:"modal-btn-outline modal-close",onClick:t[3]||(t[3]=(0,a.withModifiers)(function(){return o.resetModal&&o.resetModal.apply(o,arguments)},["prevent"]))},[t[6]||(t[6]=(0,a.createElementVNode)("i",{class:"lab lab-fill-close-circle"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.close")),1)]),(0,a.createElementVNode)("button",Oe,[t[7]||(t[7]=(0,a.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.save")),1)])])])])],32)])])])],64)}]]);function Le(e){return Le="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},Le(e)}function Je(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=Le(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qe={name:"ReturnAndRefundShowComponent",components:{LoadingComponent:ye.A,ReturnAndRefundReasonComponent:Te},data:function(){return{loading:{isActive:!1},payment_status:null,delivery_boy:null,order_status:null,enums:{returnStatusEnum:Se.A,returnStatusEnumArray:Je(Je(Je({},Se.A.PENDING,this.$t("label.pending")),Se.A.ACCEPT,this.$t("label.accept")),Se.A.REJECTED,this.$t("label.rejected"))}}},computed:{order:function(){return this.$store.getters["returnAndRefund/show"]},returnProducts:function(){return this.$store.getters["returnAndRefund/returnProducts"]},returnOrderUser:function(){return this.$store.getters["returnAndRefund/returnOrderUser"]}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("returnAndRefund/show",this.$route.params.id).then(function(t){e.payment_status=t.data.data.payment_status,e.order_status=t.data.data.status,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},methods:{statusClass:function(e){return xe.A.statusClass(e)},orderStatusClass:function(e){return xe.A.orderStatusClass(e)},textShortener:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return xe.A.textShortener(e,t)},changeStatus:function(e){var t=this;xe.A.acceptOrder().then(function(r){try{t.loading.isActive=!0,t.$store.dispatch("returnAndRefund/changeStatus",{id:t.$route.params.id,status:e}).then(function(e){t.order_status=e.data.data.status,t.loading.isActive=!1,Ae.A.successFlip(1,t.$t("label.status"))}).catch(function(e){t.loading.isActive=!1,Ae.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,Ae.A.error(e.response.data.message)}}).catch(function(e){t.loading.isActive=!1})}}},Ge=(0,Ue.A)(qe,[["render",function(e,t,r,ye,xe,Se){var Ae,ke=(0,a.resolveComponent)("LoadingComponent"),we=(0,a.resolveComponent)("ReturnAndRefundReasonComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(ke,{props:xe.loading},null,8,["props"]),(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("div",n,[(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("div",null,[(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("p",c,[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("label.order_id"))+": ",1),(0,a.createElementVNode)("span",d," #"+(0,a.toDisplayString)(Se.order.order_serial_no),1)]),(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)("text-sm capitalize px-2 rounded-3xl "+Se.orderStatusClass(Se.order.status))},(0,a.toDisplayString)(xe.enums.returnStatusEnumArray[Se.order.status]),3)])]),(0,a.createElementVNode)("ul",m,[(0,a.createElementVNode)("li",u,[t[1]||(t[1]=(0,a.createElementVNode)("i",{class:"lab lab-line-calendar lab-font-size-16"},null,-1)),(0,a.createElementVNode)("span",p,(0,a.toDisplayString)(Se.order.order_datetime),1)])])]),Se.order.status===xe.enums.returnStatusEnum.PENDING?((0,a.openBlock)(),(0,a.createElementBlock)("div",b,[(0,a.createVNode)(we),(0,a.createElementVNode)("button",{type:"button",onClick:t[0]||(t[0]=function(e){return Se.changeStatus(xe.enums.returnStatusEnum.ACCEPT)}),class:"flex items-center justify-center text-white gap-2 px-4 h-[38px] rounded shadow-db-card bg-[#2AC769]"},[t[2]||(t[2]=(0,a.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,a.createElementVNode)("span",f,(0,a.toDisplayString)(e.$t("button.accept")),1)])])):(0,a.createCommentVNode)("",!0)])])]),(0,a.createElementVNode)("div",E,[(0,a.createElementVNode)("div",g,[(0,a.createElementVNode)("div",N,[(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("div",V,[(0,a.createElementVNode)("h3",h,(0,a.toDisplayString)(e.$t("label.return_details")),1)]),(0,a.createElementVNode)("div",y,[(0,a.createElementVNode)("div",x,[Se.returnProducts.length>0?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(Se.returnProducts,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:"mb-3 pb-3 border-b last:mb-0 last:border-b-0 border-gray-2",key:e},[(0,a.createElementVNode)("div",S,[(0,a.createElementVNode)("h3",A,(0,a.toDisplayString)(e.quantity),1),(0,a.createElementVNode)("img",{class:"w-16 h-16 rounded-lg flex-shrink-0",src:e.product_image,alt:"thumbnail"},null,8,k),(0,a.createElementVNode)("div",w,[(0,a.createElementVNode)("h4",C,(0,a.toDisplayString)(e.product_name),1),e.variation_names?((0,a.openBlock)(),(0,a.createElementBlock)("p",D,(0,a.toDisplayString)(e.variation_names),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",_,[(0,a.createElementVNode)("div",B,[(0,a.createElementVNode)("span",$,(0,a.toDisplayString)(e.return_currency_price),1)])])])])])}),128)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",R,[(0,a.createElementVNode)("h4",j,(0,a.toDisplayString)(e.$t("label.total")),1),(0,a.createElementVNode)("h5",M,(0,a.toDisplayString)(Se.order.return_total_currency_price),1)])])])]),(null===(Ae=Se.order.images)||void 0===Ae?void 0:Ae.length)>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",z,[(0,a.createElementVNode)("div",F,[(0,a.createElementVNode)("div",O,[(0,a.createElementVNode)("h3",P,(0,a.toDisplayString)(e.$t("label.attachment")),1)]),(0,a.createElementVNode)("div",U,[(0,a.createElementVNode)("div",T,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(Se.order.images,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("img",{src:e,alt:"return",class:"w-20 h-20 rounded-lg object-cover"},null,8,L)}),256))])])])])):(0,a.createCommentVNode)("",!0),Se.order.status===xe.enums.returnStatusEnum.REJECTED?((0,a.openBlock)(),(0,a.createElementBlock)("div",J,[(0,a.createElementVNode)("div",q,[(0,a.createElementVNode)("div",G,[(0,a.createElementVNode)("h3",H,(0,a.toDisplayString)(e.$t("label.reject_reason")),1)]),(0,a.createElementVNode)("div",I,[(0,a.createElementVNode)("p",K,(0,a.toDisplayString)(Se.order.reject_reason),1)])])])):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("div",Q,[(0,a.createElementVNode)("div",W,[Se.order.return_reason_name?((0,a.openBlock)(),(0,a.createElementBlock)("div",X,[(0,a.createElementVNode)("div",Y,[(0,a.createElementVNode)("div",Z,[(0,a.createElementVNode)("h3",ee,(0,a.toDisplayString)(e.$t("label.return_reason")),1)]),(0,a.createElementVNode)("div",te,[(0,a.createElementVNode)("p",re,(0,a.toDisplayString)(Se.order.return_reason_name),1)])])])):(0,a.createCommentVNode)("",!0),Se.order.note?((0,a.openBlock)(),(0,a.createElementBlock)("div",ae,[(0,a.createElementVNode)("div",le,[(0,a.createElementVNode)("div",ne,[(0,a.createElementVNode)("h3",oe,(0,a.toDisplayString)(e.$t("label.return_note")),1)]),(0,a.createElementVNode)("div",se,[(0,a.createElementVNode)("p",ce,(0,a.toDisplayString)(Se.order.note),1)])])])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",de,[(0,a.createElementVNode)("div",ie,[(0,a.createElementVNode)("div",me,[(0,a.createElementVNode)("h3",ue,(0,a.toDisplayString)(e.$t("label.information")),1)]),(0,a.createElementVNode)("div",pe,[(0,a.createElementVNode)("div",be,[(0,a.createElementVNode)("img",{class:"w-8 rounded-full",src:Se.returnOrderUser.image,alt:"avatar"},null,8,fe),(0,a.createElementVNode)("h4",Ee,(0,a.toDisplayString)(Se.textShortener(Se.returnOrderUser.name,20)),1)]),(0,a.createElementVNode)("ul",ge,[(0,a.createElementVNode)("li",Ne,[t[3]||(t[3]=(0,a.createElementVNode)("i",{class:"lab lab-line-mail lab-font-size-14"},null,-1)),(0,a.createElementVNode)("span",ve,(0,a.toDisplayString)(Se.returnOrderUser.email),1)]),Se.returnOrderUser.phone?((0,a.openBlock)(),(0,a.createElementBlock)("li",Ve,[t[4]||(t[4]=(0,a.createElementVNode)("i",{class:"lab lab-line-call-calling lab-font-size-14"},null,-1)),(0,a.createElementVNode)("span",he,(0,a.toDisplayString)(Se.returnOrderUser.country_code+""+Se.returnOrderUser.phone),1)])):(0,a.createCommentVNode)("",!0)])])])])])])],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