[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6286.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6286],{6286:(e,t,r)=>{r.r(t),r.d(t,{default:()=>U});var n=r(9726),o={class:"flex items-center gap-4 mb-7"},l={class:"capitalize text-xl font-bold text-primary"},a={class:"rounded-2xl shadow-card mb-6 bg-white"},s={class:"font-semibold p-4"},c={class:"mobile:overflow-x-auto"},i={class:"w-full text-left text-sm capitalize"},d={class:"font-semibold border-b border-t border-gray-200"},u={class:"p-4"},m={class:"p-4"},p={class:"p-4"},b={class:"p-4"},g={key:0,class:"font-medium"},f={class:"group"},y={class:"p-4 border-b group-last:border-0 border-gray-100"},E={class:"inline-flex items-center gap-3"},h=["src"],N={class:"overflow-hidden"},V={class:"text-sm capitalize whitespace-nowrap overflow-hidden text-ellipsis mb-0.5"},v={key:0,class:"text-sm capitalize whitespace-nowrap overflow-hidden text-ellipsis"},k={class:"p-4 border-b group-last:border-0 border-gray-100"},S={class:"p-4 border-b group-last:border-0 border-gray-100"},x={class:"p-4 border-b group-last:border-0 border-gray-100"},w={class:"rounded-2xl shadow-card p-4 mb-6 bg-white mobile:mb-20"},D={key:0,class:"mb-5"},B={class:"font-semibold capitalize mb-2"},C={class:"text-sm"},$={key:1,class:"mb-5"},_={class:"font-semibold capitalize mb-2"},A={class:"text-sm"},O={key:2},z={class:"font-semibold capitalize mb-3"},P={class:"inline-flex flex-wrap gap-4"},R=["src"],j={class:"rounded-2xl shadow-card p-4 bg-white mobile:mb-20"},L={class:"capitalize font-semibold mb-2 text-focus"},T={class:"flex items-center gap-1 mb-3"},F={class:"capitalize text-sm"},q={class:"capitalize text-sm font-semibold text-success"},J={key:0,class:"text-sm"};var G=r(1811),I=r(4290),M=r(8655);function H(e){return H="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},H(e)}function K(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Q={name:"ReturnOrderDetailsComponent",components:{LoadingComponent:G.A},data:function(){return{loading:{isActive:!1},enums:{returnStatusEnum:I.A,returnStatusEnumArray:K(K(K({},I.A.PENDING,this.$t("label.pending")),I.A.ACCEPT,this.$t("label.accepted")),I.A.REJECTED,this.$t("label.rejected"))}}},mounted:function(){var e=this;this.loading.isActive=!0,this.$route.params.id&&(this.loading.isActive=!0,this.$store.dispatch("frontendReturnAndRefund/show",this.$route.params.id).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}))},computed:{returnOrder:function(){return this.$store.getters["frontendReturnAndRefund/show"]},returnProducts:function(){return this.$store.getters["frontendReturnAndRefund/returnProducts"]}},methods:{returnStatusClass:function(e){return M.A.returnStatusClass(e)}}};const U=(0,r(6262).A)(Q,[["render",function(e,t,r,G,I,M){var H,K=(0,n.resolveComponent)("LoadingComponent");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(K,{props:I.loading},null,8,["props"]),(0,n.createElementVNode)("div",o,[(0,n.createElementVNode)("button",{onClick:t[0]||(t[0]=(0,n.withModifiers)(function(t){return e.$router.back()},["prevent"])),class:"lab-line-undo text-xl font-bold text-primary"}),(0,n.createElementVNode)("h2",l,(0,n.toDisplayString)(e.$t("label.return_order_details")),1)]),(0,n.createElementVNode)("div",a,[(0,n.createElementVNode)("h3",s,(0,n.toDisplayString)(e.$t("label.order_id"))+": #"+(0,n.toDisplayString)(M.returnOrder.order_serial_no),1),(0,n.createElementVNode)("div",c,[(0,n.createElementVNode)("table",i,[(0,n.createElementVNode)("thead",d,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("th",u,(0,n.toDisplayString)(e.$t("label.products")),1),(0,n.createElementVNode)("th",m,(0,n.toDisplayString)(e.$t("label.quantity")),1),(0,n.createElementVNode)("th",p,(0,n.toDisplayString)(e.$t("label.price")),1),(0,n.createElementVNode)("th",b,(0,n.toDisplayString)(e.$t("label.total")),1)])]),M.returnProducts.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("tbody",g,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(M.returnProducts,function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("tr",f,[(0,n.createElementVNode)("td",y,[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("img",{src:e.product_image,alt:"product",class:"w-12 h-12 object-cover rounded-md flex-shrink-0"},null,8,h),(0,n.createElementVNode)("div",N,[(0,n.createElementVNode)("h4",V,(0,n.toDisplayString)(e.product_name),1),e.variation_names?((0,n.openBlock)(),(0,n.createElementBlock)("p",v,(0,n.toDisplayString)(e.variation_names),1)):(0,n.createCommentVNode)("",!0)])])]),(0,n.createElementVNode)("td",k,(0,n.toDisplayString)(e.quantity),1),(0,n.createElementVNode)("td",S,(0,n.toDisplayString)(e.currency_price),1),(0,n.createElementVNode)("td",x,(0,n.toDisplayString)(e.return_currency_price),1)])}),256))])):(0,n.createCommentVNode)("",!0)])])]),(0,n.createElementVNode)("div",w,[M.returnOrder.return_reason_name?((0,n.openBlock)(),(0,n.createElementBlock)("dl",D,[(0,n.createElementVNode)("dt",B,(0,n.toDisplayString)(e.$t("label.return_reason")),1),(0,n.createElementVNode)("dd",C,(0,n.toDisplayString)(M.returnOrder.return_reason_name),1)])):(0,n.createCommentVNode)("",!0),M.returnOrder.note?((0,n.openBlock)(),(0,n.createElementBlock)("dl",$,[(0,n.createElementVNode)("dt",_,(0,n.toDisplayString)(e.$t("label.return_note")),1),(0,n.createElementVNode)("dd",A,(0,n.toDisplayString)(M.returnOrder.note),1)])):(0,n.createCommentVNode)("",!0),(null===(H=M.returnOrder.images)||void 0===H?void 0:H.length)>0?((0,n.openBlock)(),(0,n.createElementBlock)("dl",O,[(0,n.createElementVNode)("dt",z,(0,n.toDisplayString)(e.$t("label.attachment")),1),(0,n.createElementVNode)("dd",P,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(M.returnOrder.images,function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("img",{src:e,alt:"return",class:"w-20 h-20 rounded-lg object-cover"},null,8,R)}),256))])])):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",j,[(0,n.createElementVNode)("h3",L,(0,n.toDisplayString)(e.$t("label.return_response")),1),(0,n.createElementVNode)("dl",T,[(0,n.createElementVNode)("dt",F,(0,n.toDisplayString)(e.$t("label.status"))+":",1),(0,n.createElementVNode)("dd",q,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(M.returnStatusClass(M.returnOrder.status))},(0,n.toDisplayString)(I.enums.returnStatusEnumArray[M.returnOrder.status]),3)])]),M.returnOrder.status===I.enums.returnStatusEnum.REJECTED?((0,n.openBlock)(),(0,n.createElementBlock)("p",J,(0,n.toDisplayString)(M.returnOrder.reject_reason),1)):(0,n.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