���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.2
/
public
/
_nuxt
/
Viewing: 7VdAf6qL.js
import{_ as Q}from"./Cwch0ha2.js";import{u as L,_ as W}from"./Ch02pi7V.js";import{u as Y}from"./CU2hArn6.js";import{_ as M,m as G,l as _,q as D,s as R,v as $,x as X,y as q,z as Z,A as ee,o as f,c as p,a,B as te,C as ae,D as O,E as v,F as j,d as I,t as g,G as A,H as le,I as P,J,K as se,w as z,L as C,g as ne,M as oe,N as re,r as ie,O as ue,h as de,P as ce,Q as me,R as fe,u as he,j as ge,k as s,b as S,n as pe,S as be}from"./CN8H5RCu.js";import{u as ve}from"./BFF_7S7Q.js";import{u as _e}from"./Hd6gNmEX.js";import"./tsPw1Hky.js";import"./DYEZnc8p.js";import"./DV-TEbnC.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"}},T={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"}},B=G(_.ui.strategy,_.ui.radio,T),we=D({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:()=>B.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}=R("radio",$(e,"ui"),B,$(e,"class")),h=e.id??Y("$9ml2Pv5YlC"),i=X("radio-group",null),{emitFormChange:r,color:n,name:y}=i??L(e,B),x=q({get(){return e.modelValue},set(w){d("update:modelValue",w),i||r()}});function u(w){d("change",w.target.value)}const V=q(()=>Z(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:h,ui:c,attrs:l,pick:x,name:y,inputClass:V,onChange:u}}}),ke=["data-n-ids"],xe=["id","name","required","value","disabled"],Se=["for"];function Ve(e,d,c,l,h,i){return f(),p("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]=r=>e.pick=r),name:e.name,required:e.required,value:e.value,disabled:e.disabled,type:"radio",class:e.inputClass},e.attrs,{onChange:d[1]||(d[1]=(...r)=>e.onChange&&e.onChange(...r))}),null,16,xe),[[ae,e.pick]])],2),e.label||e.$slots.label?(f(),p("div",{key:0,class:v(e.ui.inner)},[a("label",{for:e.inputId,class:v(e.ui.label)},[j(e.$slots,"label",{label:e.label},()=>[I(g(e.label),1)]),e.required?(f(),p("span",{key:0,class:v(e.ui.required)},"*",2)):A("",!0)],10,Se),e.help||e.$slots.help?(f(),p("p",{key:0,class:v(e.ui.help)},[j(e.$slots,"help",{help:e.help},()=>[I(g(e.help),1)])],2)):A("",!0)],2)):A("",!0)],10,ke)}const E=M(we,[["render",Ve]]),N=G(_.ui.strategy,_.ui.radioGroup,ye),$e=G(_.ui.strategy,_.ui.radio,T),je=D({components:{URadio:E},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:()=>N.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}=R("radioGroup",$(e,"ui"),N,$(e,"class")),{ui:h}=R("radio",$(e,"uiRadio"),$e),{emitFormChange:i,color:r,name:n}=L(e,N);le("radio-group",{color:r,name:n});const y=t=>{d("update:modelValue",t),d("change",t),i()},x=t=>C(t,e.valueAttribute,C(t,e.optionAttribute)),u=t=>C(t,e.optionAttribute,C(t,e.valueAttribute)),V=t=>e.modelValue===x(t),w=t=>["string","number","boolean"].includes(typeof t)?{value:t,label:t}:{...t,value:x(t),label:u(t),selected:V(t)},m=q(()=>e.options.map(t=>w(t)));return{ui:c,uiRadio:h,attrs:l,normalizedOptions:m,onUpdate:y}}});function Ce(e,d,c,l,h,i){const r=E;return f(),p("div",{class:v(e.ui.wrapper)},[a("fieldset",O(e.attrs,{class:e.ui.fieldset}),[e.legend||e.$slots.legend?(f(),p("legend",{key:0,class:v(e.ui.legend)},[j(e.$slots,"legend",{},()=>[I(g(e.legend),1)])],2)):A("",!0),(f(!0),p(P,null,J(e.normalizedOptions,n=>(f(),se(r,{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:y=>e.onUpdate(n.value)},{label:z(()=>[j(e.$slots,"label",O({ref_for:!0},{option:n,selected:n.selected}))]),help:z(()=>[j(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 Oe=M(je,[["render",Ce]]),Ae={key:0,class:"flex items-center justify-center"},Ue={key:1,class:"w-[95%] mx-auto lg:w-10/12"},Be=["dir"],Ne={class:"w-full"},Re={class:"w-8/12 mx-auto flex px-2 h-10 text-black rounded-lg bg-[#f7941d] items-center justify-center"},qe={class:"block px-2 text-sm"},Ie={class:"w-full flex flex-col gap-3 justify-start items-start border rounded-lg px-3 py-2 bg-gray-100"},ze={class:"w-full flex justify-start items-center"},Ge={class:"w-full flex justify-between items-center"},De={class:"w-[33%] flex justify-start items-center"},Fe={class:"w-7/12 text-center block text-sm bold text-black"},Le={class:"w-[33%] flex justify-start items-center"},Me={class:"w-7/12 text-center block text-sm bold text-black"},Pe={class:"w-[33%] flex justify-start items-center"},Je={class:"w-7/12 text-center block text-sm bold text-black"},Te={class:"w-full rounded-md flex justify-between items-center"},Ee={class:"w-3/12 h-8 mb-1"},He={class:"text-sm bold text-green-800 h-full w-full flex justify-start items-center px-2"},Ke={class:"w-9/12 flex justify-start items-center rounded h-full"},Qe={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"},We={class:"px-1 w-full"},Ye={class:"block px-2 text-xs bold truncate"},rt=D({__name:"dimensions",async setup(e){let d,c;const{t:l,locale:h}=ne(),i=oe("$8uDViqJwR2");re();const r=ie(!0),n=ve("sheets"),y=ue(),x=de();let u=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"}});async function V(){var t;r.value=!0;const{data:m}=await _e("/analyze/materials",{immediate:!0,server:!0});i.value=(t=m.value)==null?void 0:t.materials,r.value=!1}[d,c]=me(()=>V()),await d,c(),fe(async()=>{const m=await n.getItem("new"),t=await JSON.parse(m);if(m&&i.value.length==Object.keys(t).length)for(let o=0;o<Object.keys(t).length;o++)u[o]={name_sheet:t[o].name_sheet,width:t[o].width,length:t[o].length,rotation:t[o].rotation,value:t[o].value,name:t[o].name,name_en:t[o].name_en};else{await n.removeItem("new");for(let o=0;o<i.value.length;o++)u[o]={name_sheet:i.value[o].title,width:"183",length:"366",rotation:0,value:i.value[o].id,name:i.value[o].title,name_en:i.value[o].title_en}}});const w=async()=>{r.value=!0;for(let m=0;m<i.value.length;m++){const t=u[m];if(!t.width)return y.add({title:l("Section ")+(m+1)+" "+l("width ")+l(" is the ")+(h.value=="en"?t.name_en:t.name)+l(" of the required sheet"),color:"orange"}),r.value=!1;if(!t.length)return y.add({title:l("Section ")+(m+1)+" "+l("length ")+l(" is the ")+(h.value=="en"?t.name_en:t.name)+l(" of the required sheet"),color:"orange"}),r.value=!1}return await n.setItem("new",JSON.stringify(u)),pe(x("/analyze/start"))};return he({title:l("Dimensions")}),ge(()=>{r.value=!1}),(m,t)=>{const o=Q,U=W,H=Oe,K=be;return s(r)?(f(),p("div",Ae,[S(o)])):(f(),p("div",Ue,[a("div",{dir:s(h)=="en"?"ltr":"rtl",class:"w-full gap-3 flex justify-start !pt-1 items-center flex-col"},[a("div",Ne,[a("label",Re,[a("span",qe,g(s(l)("Sheet Name")),1)])]),(f(!0),p(P,null,J(s(i),(F,b)=>(f(),p("div",Ie,[a("div",ze,[a("label",{class:v([s(h)=="en"?"text-left w-40 ":"text-right w-24 ","block text-sm bold text-black"])},g(b+1)+". "+g(s(h)=="en"?F.title_en:F.title),3)]),a("div",Ge,[a("div",De,[a("label",Fe,g(s(l)("Sheet Name"))+" : ",1),S(U,{modelValue:s(u)[b].name_sheet,"onUpdate:modelValue":k=>s(u)[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",Le,[a("label",Me,g(s(l)("Sheet Width"))+" : ",1),S(U,{modelValue:s(u)[b].width,"onUpdate:modelValue":k=>s(u)[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",Je,g(s(l)("Sheet Length"))+" : ",1),S(U,{modelValue:s(u)[b].length,"onUpdate:modelValue":k=>s(u)[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",Te,[a("div",Ee,[a("h2",He,g(s(l)("rotation"))+" : ",1)]),a("div",Ke,[S(H,{color:"red",modelValue:s(u)[b].rotation,"onUpdate:modelValue":k=>s(u)[b].rotation=k,options:[{value:1,label:s(l)("active")},{value:0,label:s(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,Be),a("footer",Qe,[a("div",We,[S(K,{onClick:w,loading:s(r),square:"",class:"w-full flex text-white rounded-sm border h-10 bg-main-700 items-center justify-center"},{default:z(()=>[a("span",Ye,g(s(l)("registration")),1)]),_:1},8,["loading"])])])]))}}});export{rt as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa