���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
.output
/
public
/
_nuxt
/
Viewing: DcxowBcr.js
import{_ as R}from"./Bk3PtmvI.js";import{_ as E}from"./eQviZWxx.js";import{q,h as N,i as B,N as D,O as F,a7 as A,r as v,P as J,Q as T,R as H,u as M,o as u,c as d,a as t,t as i,k as e,b as _,G as f,w as O,I as k,J as W,T as G,n as Q,S as X}from"./Bkw0duvu.js";import{_ as Y}from"./CHsAzR7N.js";import{u as Z}from"./DmDSYH1u.js";import{u as tt}from"./DKnm8qnS.js";import{u as et}from"./BbgV3qLK.js";import"./CyhgVoz5.js";const st={class:"mb-2 pt-3 px-2 mt-1"},nt=["dir"],ot={class:"flex justify-between items-start"},lt={class:"w-full flex justify-between items-start mb-3"},at={class:"w-5/12"},it={class:"flex justify-between items-center w-full mb-3"},rt={class:"block w-5/12 text-gray-500 bg-white text-sm"},ct={class:"w-7/12"},ut={class:"flex justify-between items-center w-full mb-3"},dt={class:"block w-5/12 text-gray-500 bg-white text-sm"},_t={class:"w-7/12"},mt={class:"flex justify-between items-center w-full mb-3"},xt={class:"block w-5/12 text-gray-500 bg-white text-sm"},ft={class:"w-7/12"},pt={key:0,class:"flex justify-between items-center w-full mb-3"},wt={class:"block w-5/12 text-gray-500 bg-white text-sm"},bt={class:"w-7/12"},yt={class:"flex justify-between items-center w-full mb-3"},gt={class:"block w-5/12 text-gray-500 bg-white text-sm"},ht={class:"w-7/12"},vt={class:"h-32 w-[13rem] mb-3"},kt=["src","alt"],Ct=["textContent"],Vt={class:"mb-2"},Ut={key:0},jt=["dir"],zt=["textContent"],Nt={dir:"ltr",class:"w-9/12 flex justify-start items-center"},At={class:"block w-2/12 text-gray-500 text-center text-xs"},Ot=t("span",{class:"block w-1/12 text-gray-500 text-center text-xs"}," * ",-1),St={class:"block w-2/12 text-gray-500 text-center text-xs"},$t=t("span",{class:"block w-1/12 text-gray-500 text-center text-xs"}," * ",-1),Kt={class:"block w-2/12 text-gray-500 text-center text-xs"},Pt=t("span",{class:"block w-1/12 text-gray-500 text-center text-xs"}," * ",-1),It={class:"block w-2/12 text-gray-500 text-center text-xs"},Lt=t("span",{class:"block w-1/12 text-gray-500 text-center text-xs"}," = ",-1),Rt={class:"block w-2/12 text-gray-500 text-center text-xs"},Et=["dir"],qt={class:"px-1 w-4/12"},Bt={class:"block px-2 text-base truncate"},Xt=q({__name:"[id]",async setup(Dt){let p,C;const{t:l}=N(),S=B(),{locale:$}=N(),y=G(),{$api:V}=D(),w=et(),g=F(),{id:U}=A().params,h=v(!1),s=J({y:void 0,x:void 0,z:void 0,s:void 0,unit_id:void 0,list_id:void 0,c:1,count:1}),b=v(null),j=v([]),K=A(),{data:c}=([p,C]=T(async()=>Z(`user:${U}`,async()=>{const[r,n]=await Promise.all([V(y.public.API_URL+"/analyze/materials"),V(y.public.API_URL+"/analyze/list/single",{query:{unit_id:U}})]),a=JSON.parse(r).data.materials,m=JSON.parse(n).data.list,x=m.unit;return{feilds:a,list:m,unit:x}},{server:!0})),p=await p,C(),p),P=async(r,n)=>{r&&(r.forEach(a=>{j.value.push({name:$.value=="en"?a.title_en:a.title,value:a.id})}),s.unit_id=n.unit.id,s.list_id=n.id,s.x=n.x,s.y=n.y,s.z=n.z,s.s=n.s,s.c=n.attach[0].material_id)};H(async()=>{c.value.feilds&&await P(c.value.feilds,c.value.list),K.meta.title=l("Edit")+" "+c.value.unit.title,M({title:c.value.unit.title})});async function z(r,n,a){if(!s.y)return g.add({title:l("Length field Alert"),color:"orange"});if(!s.x)return g.add({title:l("Width field Alert"),color:"orange"});if(!s.z)return g.add({title:l("Height field Alert"),color:"orange"});let m=1;s.s&&(m=s.x-s.s),h.value=!0;const{data:x}=await tt("/analyze/computing-unit",{method:"POST",immediate:!0,server:!0,body:{y:s.y,x:s.x,z:s.z,s:s.s,c:s.c,d:m,count:s.count,type:r,unit_id:s.unit_id,list_id:s.list_id,unit_title:n}});b.value=JSON.parse(x.value).data.result,h.value=!1,a&&Q(S(a))}return(r,n)=>{const a=R,m=E,x=X,I=Y;return u(),d("div",st,[t("section",{dir:r.$i18n.locale=="en"?"ltr":"rtl"},[t("div",ot,[t("div",lt,[t("div",at,[t("div",it,[t("label",rt,i(e(l)("Depth")),1),t("div",ct,[_(a,{loading:!1,variant:"outline",inputClass:" w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(w).NumbersOnly,modelValue:e(s).y,"onUpdate:modelValue":n[0]||(n[0]=o=>e(s).y=o)},null,8,["onKeypress","modelValue"])])]),t("div",ut,[t("label",dt,i(e(l)("Width")),1),t("div",_t,[_(a,{loading:!1,variant:"outline",inputClass:" w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(w).NumbersOnly,modelValue:e(s).x,"onUpdate:modelValue":n[1]||(n[1]=o=>e(s).x=o)},null,8,["onKeypress","modelValue"])])]),t("div",mt,[t("label",xt,i(e(l)("Height")),1),t("div",ft,[_(a,{loading:!1,variant:"outline",inputClass:"w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(w).NumbersOnly,modelValue:e(s).z,"onUpdate:modelValue":n[2]||(n[2]=o=>e(s).z=o)},null,8,["onKeypress","modelValue"])])]),e(c).unit.sabet_status=="true"?(u(),d("div",pt,[t("label",wt,i(e(l)("Fixed Width")),1),t("div",bt,[_(a,{loading:!1,variant:"outline",inputClass:"w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(w).NumbersOnly,modelValue:e(s).s,"onUpdate:modelValue":n[3]||(n[3]=o=>e(s).s=o)},null,8,["onKeypress","modelValue"])])])):f("",!0),t("div",yt,[t("label",gt,i(e(l)("Door Color")),1),t("div",ht,[_(m,{options:e(j),"option-attribute":"name",class:"w-full",selectClass:" w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs",modelValue:e(s).c,"onUpdate:modelValue":n[4]||(n[4]=o=>e(s).c=o)},null,8,["options","modelValue"])])])]),t("div",vt,[e(c).unit.image_2_d?(u(),d("img",{key:0,src:e(y).public.FILE_URL+e(c).unit.image_2_d.address,class:"w-full h-full",alt:e(l)("Add Unit")},null,8,kt)):f("",!0),_(x,{loading:!1,square:"",onClick:n[5]||(n[5]=o=>z("computing",e(c).unit.title,null)),class:"w-full flex text-main-700 rounded-sm border border-red-600 h-7 bg-white items-center justify-center"},{default:O(()=>{var o;return[t("span",{textContent:i((o=e(b))!=null&&o.length?e(l)("Recalculate"):e(l)("Computing")),class:"block px-2 text-sm truncate"},null,8,Ct)]}),_:1})])])])],8,nt),t("section",Vt,[e(h)==!0?(u(),d("div",Ut,[_(I)])):f("",!0),e(b)?(u(),d("ul",{key:1,class:"w-full p-0",dir:r.$i18n.locale=="en"?"ltr":"rtl"},[(u(!0),d(k,null,W(e(b),(o,L)=>(u(),d("li",{class:"px-2 flex justify-between items-center w-full mb-2 border-b pb-2",key:L},[t("label",{textContent:i(r.$i18n.locale=="en"?o.label_en:o.label),class:"block w-3/12 text-gray-500 text-xs"},null,8,zt),t("div",Nt,[t("span",At,i(o.length),1),Ot,t("span",St,i(o.width),1),o.var_1&&o.var_1!=0?(u(),d(k,{key:0},[$t,t("span",Kt,i(o.var_1),1)],64)):f("",!0),o.var_2&&o.var_2!=0?(u(),d(k,{key:1},[Pt,t("span",It,i(o.var_2),1)],64)):f("",!0),Lt,t("span",Rt,i(o.count),1)])]))),128))],8,jt)):f("",!0)]),t("footer",{dir:r.$i18n.locale=="en"?"ltr":"rtl",class:"px-3 bg-white flex justify-center items-center pb-2 pt-2 sm:border-r sm:border-l w-full sm:w-9/12 md:w-7/12 lg:w-6/12 2xl:w-5/12 mx-auto fixed bottom-0 right-0 left-0 border-t"},[t("div",qt,[_(x,{loading:!1,square:"",onClick:n[6]||(n[6]=o=>z("edit_unit",e(c).unit.title,"/analyze/list")),class:"w-full flex text-main-700 border-red-700 rounded-sm border h-8 bg-white items-center justify-center"},{default:O(()=>[t("span",Bt,i(e(l)("Edit")),1)]),_:1})])],8,Et)])}}});export{Xt as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa