���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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: WbKzHgjz.js
import{u as F,_ as W}from"./Bk3PtmvI.js";import{u as Y}from"./CeT3hz8W.js";import{_ as L,m as D,l as _,q as G,s as B,v as $,x as Z,y as q,z as X,A as ee,o as h,c as g,a,B as te,C as ae,D as O,E as v,F as C,d as I,t as f,G as A,H as le,I as T,J as M,K as se,w as z,L as j,h as P,u as ne,M as oe,N as re,r as ie,O as ue,i as de,P as ce,Q as me,R as fe,k as r,b as V,n as he,S as ge,T as pe}from"./Bkw0duvu.js";import{u as be}from"./4QFFUPoZ.js";import{u as ve}from"./DmDSYH1u.js";import"./yDnVNt26.js";const ye={wrapper:"relative flex items-start",fieldset:"",legend:"text-sm font-medium text-gray-700 dark:text-gray-200 mb-1",default:{color:"primary"}},E={wrapper:"relative flex items-start",container:"flex items-center h-5",base:"h-4 w-4 dark:checked:bg-current dark:checked:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",form:"form-radio",color:"text-{color}-500 dark:text-{color}-400",background:"bg-white dark:bg-gray-900",border:"border border-gray-300 dark:border-gray-700",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",inner:"ms-3 flex flex-col",label:"text-sm font-medium text-gray-700 dark:text-gray-200",required:"text-sm text-red-500 dark:text-red-400",help:"text-sm text-gray-500 dark:text-gray-400",default:{color:"primary"}},N=D(_.ui.strategy,_.ui.radio,E),we=G({inheritAttrs:!1,props:{id:{type:String,default:null},value:{type:[String,Number,Boolean],default:null},modelValue:{type:[String,Number,Boolean,Object],default:null},name:{type:String,default:null},disabled:{type:Boolean,default:!1},help:{type:String,default:null},label:{type:String,default:null},required:{type:Boolean,default:!1},color:{type:String,default:()=>N.default.color,validator(e){return _.ui.colors.includes(e)}},inputClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","change"],setup(e,{emit:d}){const{ui:c,attrs:l}=B("radio",$(e,"ui"),N,$(e,"class")),y=e.id??Y("$9ml2Pv5YlC"),u=Z("radio-group",null),{emitFormChange:m,color:n,name:p}=u??F(e,N),w=q({get(){return e.modelValue},set(o){d("update:modelValue",o),u||m()}});function S(o){d("change",o.target.value)}const x=q(()=>X(ee(c.value.base,c.value.form,c.value.background,c.value.border,n.value&&c.value.ring.replaceAll("{color}",n.value),n.value&&c.value.color.replaceAll("{color}",n.value)),e.inputClass));return{inputId:y,ui:c,attrs:l,pick:w,name:p,inputClass:x,onChange:S}}}),_e=["data-n-ids"],ke=["id","name","required","value","disabled"],Se=["for"];function xe(e,d,c,l,y,u){return h(),g("div",{class:v(e.ui.wrapper),"data-n-ids":e.attrs["data-n-ids"]},[a("div",{class:v(e.ui.container)},[te(a("input",O({id:e.inputId,"onUpdate:modelValue":d[0]||(d[0]=m=>e.pick=m),name:e.name,required:e.required,value:e.value,disabled:e.disabled,type:"radio",class:e.inputClass},e.attrs,{onChange:d[1]||(d[1]=(...m)=>e.onChange&&e.onChange(...m))}),null,16,ke),[[ae,e.pick]])],2),e.label||e.$slots.label?(h(),g("div",{key:0,class:v(e.ui.inner)},[a("label",{for:e.inputId,class:v(e.ui.label)},[C(e.$slots,"label",{label:e.label},()=>[I(f(e.label),1)]),e.required?(h(),g("span",{key:0,class:v(e.ui.required)},"*",2)):A("",!0)],10,Se),e.help||e.$slots.help?(h(),g("p",{key:0,class:v(e.ui.help)},[C(e.$slots,"help",{help:e.help},()=>[I(f(e.help),1)])],2)):A("",!0)],2)):A("",!0)],10,_e)}const H=L(we,[["render",xe]]),R=D(_.ui.strategy,_.ui.radioGroup,ye),Ve=D(_.ui.strategy,_.ui.radio,E),$e=G({components:{URadio:H},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Boolean],default:""},name:{type:String,default:null},legend:{type:String,default:null},options:{type:Array,default:()=>[]},optionAttribute:{type:String,default:"label"},valueAttribute:{type:String,default:"value"},disabled:{type:Boolean,default:!1},color:{type:String,default:()=>R.default.color,validator(e){return _.ui.colors.includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},uiRadio:{type:Object,default:()=>({})}},emits:["update:modelValue","change"],setup(e,{emit:d}){const{ui:c,attrs:l}=B("radioGroup",$(e,"ui"),R,$(e,"class")),{ui:y}=B("radio",$(e,"uiRadio"),Ve),{emitFormChange:u,color:m,name:n}=F(e,R);le("radio-group",{color:m,name:n});const p=t=>{d("update:modelValue",t),d("change",t),u()},w=t=>j(t,e.valueAttribute,j(t,e.optionAttribute)),S=t=>j(t,e.optionAttribute,j(t,e.valueAttribute)),x=t=>e.modelValue===w(t),o=t=>["string","number","boolean"].includes(typeof t)?{value:t,label:t}:{...t,value:w(t),label:S(t),selected:x(t)},U=q(()=>e.options.map(t=>o(t)));return{ui:c,uiRadio:y,attrs:l,normalizedOptions:U,onUpdate:p}}});function Ce(e,d,c,l,y,u){const m=H;return h(),g("div",{class:v(e.ui.wrapper)},[a("fieldset",O(e.attrs,{class:e.ui.fieldset}),[e.legend||e.$slots.legend?(h(),g("legend",{key:0,class:v(e.ui.legend)},[C(e.$slots,"legend",{},()=>[I(f(e.legend),1)])],2)):A("",!0),(h(!0),g(T,null,M(e.normalizedOptions,n=>(h(),se(m,{key:n.value,label:n.label,"model-value":e.modelValue,value:n.value,help:n.help,disabled:n.disabled||e.disabled,ui:e.uiRadio,onChange:p=>e.onUpdate(n.value)},{label:z(()=>[C(e.$slots,"label",O({ref_for:!0},{option:n,selected:n.selected}))]),help:z(()=>[C(e.$slots,"help",O({ref_for:!0},{option:n,selected:n.selected}))]),_:2},1032,["label","model-value","value","help","disabled","ui","onChange"]))),128))],16)],2)}const je=L($e,[["render",Ce]]),Oe={class:"w-[95%] mx-auto lg:w-10/12"},Ae=["dir"],Ue={class:"w-full"},Ne={class:"w-8/12 mx-auto flex px-2 h-10 text-black rounded-lg bg-[#f7941d] items-center justify-center"},Re={class:"block px-2 text-sm"},Be={class:"w-full flex flex-col gap-3 justify-start items-start border rounded-lg px-3 py-2 bg-gray-100"},qe={class:"w-full flex justify-start items-center"},Ie={class:"w-full flex justify-between items-center"},ze={class:"w-[33%] flex justify-start items-center"},De={class:"w-7/12 text-center block text-sm bold text-black"},Ge={class:"w-[33%] flex justify-start items-center"},Je={class:"w-7/12 text-center block text-sm bold text-black"},Pe={class:"w-[33%] flex justify-start items-center"},Fe={class:"w-7/12 text-center block text-sm bold text-black"},Le={class:"w-full rounded-md flex justify-between items-center"},Te={class:"w-3/12 h-8 mb-1"},Me={class:"text-sm bold text-green-800 h-full w-full flex justify-start items-center px-2"},Ee={class:"w-9/12 flex justify-start items-center rounded h-full"},He={class:"bg-white flex justify-between items-center pb-2 pt-1 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"},Ke={class:"px-1 w-full"},Qe={class:"block px-2 text-xs bold truncate"},at=G({__name:"dimensions",async setup(e){let d,c;const{t:l}=P(),{locale:y}=P();ne({title:l("Dimensions")});const u=oe("$8uDViqJwR2"),{$api:m}=re(),n=pe(),p=ie(!1),w=be("sheets"),S=ue(),x=de();let o=ce({0:{name_sheet:"",width:"183",length:"366",rotation:0,value:1,name:"ورق",name_en:"Sheet Name "},1:{name_sheet:"",width:"183",length:"366",rotation:0,value:2,name:"ورق رنگ 1",name_en:"Sheet color 1"},2:{name_sheet:"",width:"183",length:"366",rotation:0,value:3,name:"ورق رنگ 2",name_en:"Sheet color 2"},3:{name_sheet:"",width:"183",length:"366",rotation:0,value:4,name:"ورق رنگ 3",name_en:"Sheet color 3"},4:{name_sheet:"",width:"183",length:"366",rotation:0,value:5,name:"ورق رنگ 4",name_en:"Sheet color 4"},5:{name_sheet:"",width:"183",length:"366",rotation:0,value:6,name:"ورق سه میل",name_en:"Sheet 3 mil"},6:{name_sheet:"",width:"183",length:"366",rotation:0,value:7,name:"ورق فومیزه 16 میل",name_en:"Sheet fomize 16 mil"},7:{name_sheet:"",width:"183",length:"366",rotation:0,value:8,name:"ورق فومیزه 3 میل",name_en:"Sheet fomize 3 mil"}});[d,c]=me(async()=>ve(async()=>{const[t]=await Promise.all([m(n.public.API_URL+"/analyze/materials")]);return 0<JSON.parse(t).data.materials.length&&(u.value=JSON.parse(t).data.materials),{feilds:t}},{server:!0},"$Z0visS8lDR")),await d,c(),fe(async()=>{const t=await w.getItem("new"),i=await JSON.parse(t);if(t&&u.value.length==Object.keys(i).length)for(let s=0;s<Object.keys(i).length;s++)o[s]={name_sheet:i[s].name_sheet,width:i[s].width,length:i[s].length,rotation:i[s].rotation,value:i[s].value,name:i[s].name,name_en:i[s].name_en};else{await w.removeItem("new");for(let s=0;s<u.value.length;s++)o[s]={name_sheet:u.value[s].title,width:"183",length:"366",rotation:0,value:u.value[s].id,name:u.value[s].title,name_en:u.value[s].title_en}}});const U=async()=>{p.value=!0;for(let t=0;t<u.value.length;t++){const i=o[t];if(!i.width)return S.add({title:l("Section ")+(t+1)+" "+l("width ")+l(" is the ")+(y.value=="en"?i.name_en:i.name)+l(" of the required sheet"),color:"orange"}),p.value=!1;if(!i.length)return S.add({title:l("Section ")+(t+1)+" "+l("length ")+l(" is the ")+(y.value=="en"?i.name_en:i.name)+l(" of the required sheet"),color:"orange"}),p.value=!1}return await w.setItem("new",JSON.stringify(o)),he(x("/analyze/start"))};return(t,i)=>{const s=W,K=je,Q=ge;return h(),g("div",Oe,[a("div",{dir:t.$i18n.locale=="en"?"ltr":"rtl",class:"w-full gap-3 flex justify-start !pt-1 items-center flex-col"},[a("div",Ue,[a("label",Ne,[a("span",Re,f(r(l)("Sheet Name")),1)])]),(h(!0),g(T,null,M(r(u),(J,b)=>(h(),g("div",Be,[a("div",qe,[a("label",{class:v([t.$i18n.locale=="en"?"text-left w-40 ":"text-right w-24 ","block text-sm bold text-black"])},f(b+1)+". "+f(t.$i18n.locale=="en"?J.title_en:J.title),3)]),a("div",Ie,[a("div",ze,[a("label",De,f(r(l)("Sheet Name"))+" : ",1),V(s,{modelValue:r(o)[b].name_sheet,"onUpdate:modelValue":k=>r(o)[b].name_sheet=k,variant:"outline",class:"w-5/12",type:"text",inputClass:" !h-8 bg-white text-center !shadow-none focus:ring-1 rounded-md focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue","onUpdate:modelValue"])]),a("div",Ge,[a("label",Je,f(r(l)("Sheet Width"))+" : ",1),V(s,{modelValue:r(o)[b].width,"onUpdate:modelValue":k=>r(o)[b].width=k,variant:"outline",inputmode:"numeric",type:"number",class:"w-5/12",inputClass:" text-center !h-8 bg-white !shadow-none focus:ring-1 rounded-md focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue","onUpdate:modelValue"])]),a("div",Pe,[a("label",Fe,f(r(l)("Sheet Length"))+" : ",1),V(s,{modelValue:r(o)[b].length,"onUpdate:modelValue":k=>r(o)[b].length=k,variant:"outline",inputmode:"numeric",type:"number",class:"w-5/12",inputClass:" text-center !h-8 bg-white !shadow-none focus:ring-1 rounded-md focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue","onUpdate:modelValue"])])]),a("div",Le,[a("div",Te,[a("h2",Me,f(r(l)("rotation"))+" : ",1)]),a("div",Ee,[V(K,{color:"red",modelValue:r(o)[b].rotation,"onUpdate:modelValue":k=>r(o)[b].rotation=k,options:[{value:1,label:r(l)("active")},{value:0,label:r(l)("deactive")}],ui:{wrapper:" w-full",fieldset:"w-full flex gap-x-3 justify-start items-center"}},null,8,["modelValue","onUpdate:modelValue","options"])])])]))),256))],8,Ae),a("footer",He,[a("div",Ke,[V(Q,{onClick:U,loading:r(p),square:"",class:"w-full flex text-white rounded-sm border h-10 bg-main-700 items-center justify-center"},{default:z(()=>[a("span",Qe,f(r(l)("payment_5")),1)]),_:1},8,["loading"])])])])}}});export{at as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa