���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.1
/
dist
/
client
/
_nuxt
/
Viewing: CkIdy53J.js
import{_ as F}from"./DbU6YvtQ.js";import{u as L,_ as P}from"./CMN_rtbD.js";import{_ as E}from"./Bj1FAeg3.js";import{_ as H,m as J,a0 as G,q as A,s as R,v as W,x as N,r as I,a1 as X,k as D,X as Y,a2 as Q,z as Z,A as ee,B as te,o as T,c as U,a as i,E as se,G as ae,F as M,a3 as oe,g as ne,u as le,a4 as ie,O as re,i as ue,P as de,l as n,b as g,t as y,w as $,Y as ce,n as q,S as fe}from"./B_6d-9uz.js";import{_ as me}from"./CmNiw3BJ.js";import{u as K}from"./CMaedZ5M.js";import"./GEUOYCnp.js";import"./COvY8u_i.js";import"./Cgqmfd8w.js";import"./ByH0FjRO.js";const _=J(A.ui.strategy,A.ui.textarea,G),ge=R({inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rows:{type:Number,default:3},maxrows:{type:Number,default:0},autoresize:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autofocusDelay:{type:Number,default:100},resize:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(_.size).includes(e)}},color:{type:String,default:()=>_.default.color,validator(e){return[...A.ui.colors,...Object.keys(_.color)].includes(e)}},variant:{type:String,default:()=>_.default.variant,validator(e){return[...Object.keys(_.variant),...Object.values(_.color).flatMap(s=>Object.keys(s))].includes(e)}},textareaClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},modelModifiers:{type:Object,default:()=>({})}},emits:["update:modelValue","blur","change"],setup(e,{emit:s}){const{ui:r,attrs:S}=W("textarea",N(e,"ui"),_,N(e,"class")),{emitFormBlur:p,emitFormInput:v,inputId:c,color:x,size:k,name:B}=L(e,_),w=I(X({},e.modelModifiers,{trim:!1,lazy:!1,number:!1})),f=I(null),o=()=>{var a;e.autofocus&&((a=f.value)==null||a.focus())},C=()=>{if(e.autoresize){if(!f.value)return;f.value.rows=e.rows;const a=window.getComputedStyle(f.value),d=parseInt(a.paddingTop),h=parseInt(a.paddingBottom),V=d+h,j=parseInt(a.lineHeight),{scrollHeight:O}=f.value,u=(O-V)/j;u>e.rows&&(f.value.rows=e.maxrows?Math.min(u,e.maxrows):u)}},b=a=>{w.value.trim&&(a=a.trim()),w.value.number&&(a=oe(a)),s("update:modelValue",a),v()},z=a=>{C(),w.value.lazy||b(a.target.value)},m=a=>{const d=a.target.value;s("change",d),w.value.lazy&&b(d),w.value.trim&&(a.target.value=d.trim())},l=a=>{s("blur",a),p()};D(()=>{setTimeout(()=>{o()},e.autofocusDelay)}),Y(()=>e.modelValue,()=>{Q(C)}),D(()=>{setTimeout(()=>{o(),C()},100)});const t=Z(()=>{var d,h;const a=((h=(d=r.value.color)==null?void 0:d[x.value])==null?void 0:h[e.variant])||r.value.variant[e.variant];return ee(te(r.value.base,r.value.form,r.value.rounded,r.value.placeholder,r.value.size[k.value],e.padded?r.value.padding[k.value]:"p-0",a==null?void 0:a.replaceAll("{color}",x.value),!e.resize&&"resize-none"),e.textareaClass)});return{ui:r,attrs:S,name:B,inputId:c,textarea:f,textareaClass:t,onInput:z,onChange:m,onBlur:l}}}),pe=["id","value","name","rows","required","disabled","placeholder"];function _e(e,s,r,S,p,v){return T(),U("div",{class:M(e.ui.wrapper)},[i("textarea",se({id:e.inputId,ref:"textarea",value:e.modelValue,name:e.name,rows:e.rows,required:e.required,disabled:e.disabled,placeholder:e.placeholder,class:e.textareaClass},e.attrs,{onInput:s[0]||(s[0]=(...c)=>e.onInput&&e.onInput(...c)),onBlur:s[1]||(s[1]=(...c)=>e.onBlur&&e.onBlur(...c)),onChange:s[2]||(s[2]=(...c)=>e.onChange&&e.onChange(...c))}),null,16,pe),ae(e.$slots,"default")],2)}const we=H(ge,[["render",_e]]),he={key:0,class:"flex items-center justify-center"},ye={key:1},be={class:"w-[95%] mx-auto lg:w-10/12 min-h-[60vh] flex justify-center items-center"},ve=["dir"],xe={class:"w-full flex flex-col justify-start items-start"},ke={class:"block text-sm text-right bold text-black mb-3"},Ce={class:"w-full flex flex-col justify-start items-start"},je={class:"block text-sm text-right bold text-black mb-3"},Se={class:"w-full flex flex-col justify-start items-start"},Be={class:"block text-sm text-right bold text-black mb-3"},ze={class:"w-full flex flex-col justify-start items-start"},Ie={class:"block text-sm text-right bold text-black mb-3"},Ve={class:"w-full"},Oe={class:"block px-2 text-sm"},$e={class:"w-full flex flex-wrap justify-start items-center"},Ae={class:"block px-2 text-sm"},De={class:"block px-2 text-sm"},Ee=R({__name:"start",setup(e){const{t:s,locale:r}=ne();le({title:s("new_analysis")});const S=ie();let p=I(!1);const v=K("projects"),c=K("sheets"),x=re(),k=ue();let B=I(!0);const w=[{name:s("Single"),value:"single"},{name:s("Double"),value:"double"}],f=[{name:s("1 Mile"),value:"1"},{name:s("2 Mile"),value:"2"}],o=de({loading_category:!1,loading_settings:!1,loading_dimensions:!1,name:s("project_1"),width_strip:"1",height_strip:"single",description:""});D(async()=>{const l=await v.getItem("new");if(l){const t=await JSON.parse(l);t&&(o.name=t.name,o.description=t.description,o.height_strip=t.height_strip,o.width_strip=t.width_strip)}B.value=!1});const C=()=>{p.value=!1,S.push("/analyze/dimensions")},b=async l=>{if(!o.name)return x.add({title:s("Project name field is required"),color:"orange"});if(await v.setItem("new",JSON.stringify({name:o.name,description:o.description,width_strip:o.width_strip,height_strip:o.height_strip})),l=="category")return await c.getItem("new")?(o.loading_category=!0,window.location.href=r.value=="en"?"/en/analyze/category":window.location.href="/analyze/category"):x.add({title:s("First, complete the section on the dimensions of the sheets to be used"),color:"orange"});if(l=="settings")return o.loading_settings=!0,q(k("/settings"));if(l=="dimensions")return o.loading_dimensions=!0,q(k("/analyze/dimensions"))};let z=l=>["ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(l);const m=l=>{if(l.target.tagName=="SELECT"&&z(l.code)&&l.preventDefault(),z(l.code)){let t=parseInt(l.target.id),a;switch(l.code){case"ArrowUp":case"ArrowRight":if(t>1)a=t-1;else return;break;case"ArrowDown":case"ArrowLeft":if(t<7)a=t+1;else return;break}let d=document.getElementById(a.toString());d==null||d.focus()}};return(l,t)=>{const a=F,d=P,h=E,V=we,j=fe,O=me;return n(B)?(T(),U("div",he,[g(a)])):(T(),U("div",ye,[i("div",be,[i("div",{dir:n(r)=="en"?"ltr":"rtl",class:"w-full border rounded-xl gap-5 flex justify-start !pt-4 items-center flex-col border-black p-2 h-[35rem]"},[i("div",xe,[i("label",ke,y(n(s)("project_name"))+" : ",1),g(d,{modelValue:n(o).name,"onUpdate:modelValue":t[0]||(t[0]=u=>n(o).name=u),variant:"outline",class:"w-full",id:"1",onKeydown:m,inputClass:" w-full !h-10 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue"])]),i("div",Ce,[i("label",je,y(n(s)("Width Strip"))+" : ",1),g(h,{options:f,"option-attribute":"name",class:"w-full",selectClass:" w-full !h-10 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 py-0 text-xs",id:"2",onKeydown:m,modelValue:n(o).width_strip,"onUpdate:modelValue":t[1]||(t[1]=u=>n(o).width_strip=u)},null,8,["modelValue"])]),i("div",Se,[i("label",Be,y(n(s)("Thickness Strip"))+" : ",1),g(h,{options:w,"option-attribute":"name",class:"w-full",id:"3",onKeydown:m,selectClass:" w-full !h-10 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 py-0 text-xs",modelValue:n(o).height_strip,"onUpdate:modelValue":t[2]||(t[2]=u=>n(o).height_strip=u)},null,8,["modelValue"])]),i("div",ze,[i("label",Ie,y(n(s)("description"))+" : ",1),g(V,{modelValue:n(o).description,"onUpdate:modelValue":t[3]||(t[3]=u=>n(o).description=u),variant:"outline",rows:4,class:"w-full",onKeydown:m,id:"4",textareaClass:"py-2 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 text-xs"},null,8,["modelValue"])]),i("div",Ve,[g(j,{id:"5",onKeydown:m,square:"",loading:n(o).loading_category,onClick:t[4]||(t[4]=u=>ce(p)?p.value=!0:p=!0),class:"w-full flex px-2 h-10 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:$(()=>[i("span",Oe,y(n(s)("choose_unit")),1)]),_:1},8,["loading"]),g(O,{"toggle-show-up":n(p),message:n(s)("are_you_sure_of_the_dimensions_of_your_used_sheets"),onOnClosed:C,onOnConfirmed:t[5]||(t[5]=u=>b("category"))},null,8,["toggle-show-up","message"])]),i("div",$e,[i("div",{class:M([n(r)=="en"?"pr-2":"pl-2","w-6/12"])},[g(j,{id:"6",onKeydown:m,square:"",loading:n(o).loading_settings,onClick:t[6]||(t[6]=u=>b("settings")),class:"w-full flex px-2 h-9 text-black rounded-lg hover:bg-gray-300 bg-gray-200 items-center justify-center"},{default:$(()=>[i("span",Ae,y(n(s)("advanced_settings")),1)]),_:1},8,["loading"])],2),i("div",{class:M([n(r)=="en"?"pl-2":"pr-2","w-6/12"])},[g(j,{id:"7",onKeydown:m,square:"",loading:n(o).loading_dimensions,onClick:t[7]||(t[7]=u=>b("dimensions")),class:"w-full flex px-2 h-9 text-black rounded-lg hover:bg-gray-300 bg-gray-200 items-center justify-center"},{default:$(()=>[i("span",De,y(n(s)("usable_sheets_dimensions")),1)]),_:1},8,["loading"])],2)])],8,ve)])]))}}});export{Ee as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa