���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: X1YoiIid.js
import{q as L,g as S,u as P,O as T,r as E,N as F,h as G,Q as O,P as z,o as m,c as w,a as e,t as l,k as t,B as _,ah as f,I as A,J as j,a6 as x,ai as C,E as K,b as M,w as q,S as J,K as W,G as H,d as Q,n as X,U as Z,a0 as Y}from"./CN8H5RCu.js";import{u as ee}from"./DV-TEbnC.js";import{u as te}from"./Hd6gNmEX.js";import"./DYEZnc8p.js";const oe={class:"w-[95%] mx-auto"},se=["dir"],ne={class:"bg-[#f7941d] text-black block w-full rounded-t-md overflow-hidden"},le={class:"flex items-center justify-between px-2 py-2"},re=e("span",{class:"w-4/12 text-base font-bold text-right text-white"},null,-1),ie={class:"flex items-start justify-center w-4/12"},de={id:"title_group_1",class:"block text-sm font-bold"},ae=e("span",{class:"w-4/12 block"},null,-1),ce={class:"pt-2 border-b border-l border-r border-gray-400 min-h-[90vh] !rounded-t-none rounded-md overflow-hidden"},ue={class:"flex flex-wrap w-full mx-auto"},_e={class:"flex items-start justify-start flex-wrap w-full mb-4"},he={class:"w-full mb-2"},me={class:"mx-auto w-[98%]"},pe=["value"],be={class:"w-full mb-2"},we={class:"mx-auto w-[98%]"},fe=["placeholder"],xe={class:"w-full"},ge={class:"mx-auto w-[98%] flex justify-start items-center"},ye={class:"mr-5 text-sm text-black"},ve={class:"flex separator items-center justify-between w-full pb-5"},ke={class:"flex items-center justify-center flex-row px-2"},Ue=e("i",{class:"mx-1 text-xl bx bx-plus text-green-500"},null,-1),Ve={class:"flex w-full justify-center items-center"},Se=e("i",{class:"mx-1 text-xl bx bx-minus text-red-500"},null,-1),Ae={class:"flex w-full justify-center items-center"},je={class:"w-full"},Ce={class:"w-full flex items-center bg-gray-300 text-gray-700"},Ke={class:"w-[75px] text-center"},Ne={class:"w-[125px] text-center"},$e={class:"w-[125px] text-center"},Re={class:"w-[125px] text-center"},Be={class:"w-[125px] text-center"},De={class:"w-full flex justify-start items-start mb-2 pb-0 border-b border-dashed border-main-700 odd:bg-gray-300 pt-2"},Ie={class:"w-[12%] mr-[.1rem]"},Le={class:"w-full py-0 !pr-0 text-xs text-gray-900 h-7 3xl:h-9 flex items-center rounded justify-center text-center bold border-2 border-red-700 border-dashed focus:!ring-0"},Pe={class:"w-full flex flex-col items-center justify-end my-[.3rem]"},Te=["onUpdate:modelValue"],Ee={class:"text-xs text-black"},Fe={class:"w-[88%] flex flex-wrap justify-start items-center"},Ge={class:"w-[24%] mr-[.1rem] mb-[.1rem]"},Oe=["placeholder","onUpdate:modelValue","id"],ze={class:"w-[24%] mr-[.1rem] mb-[.1rem]"},Me=["placeholder","onUpdate:modelValue","id"],qe={class:"w-[24%] mr-[.1rem] mb-[.1rem]"},Je=["onUpdate:modelValue","placeholder","id"],We={class:"w-[24%] mb-[.1rem] mr-[.1rem]"},He=["onUpdate:modelValue","id","placeholder"],Qe={class:"w-[24%] mr-[.1rem]"},Xe=["onUpdate:modelValue","id"],Ze={value:"0"},Ye={value:"1"},et={value:"2"},tt={value:"3"},ot={value:"0"},st={class:"w-[24%] mr-[.1rem]"},nt=["onUpdate:modelValue","id"],lt={value:"0"},rt={value:"1"},it={value:"2"},dt={value:"3"},at={value:"0"},ct={class:"w-[24%] mr-[.1rem]"},ut=["onUpdate:modelValue","id"],_t={value:"0"},ht={value:"1"},mt={value:"2"},pt={value:"3"},bt={value:"0"},wt={class:"w-[24%] mr-[.1rem]"},ft=["onUpdate:modelValue","id"],xt={value:"0"},gt={value:"1"},yt={value:"2"},vt={value:"3"},kt={value:"0"},Ut={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"},Vt={class:"px-1 w-full"},St={class:"block px-2 text-xs bold truncate"},$t=L({__name:"create",async setup(At){let g,v;const{t:s}=S();P({title:s("makeUnit")});const y=T(),p=E(!1);S();const{$api:N}=F(),$=Y(),R=G(),{data:B}=([g,v]=O(async()=>ee(async()=>{const[r]=await Promise.all([N($.public.API_URL+"/analyze/materials")]);return{fields:JSON.parse(r).data.materials}},{server:!0},"$xXuVZ6ovh6")),g=await g,v(),g);let u=1;const o=z({material_id:1,panel_description:"",rotate_status:!1,num_slice:1,slice:[{row_id:u,length:"",width:"",count:"1",length_one:0,length_two:0,width_one:0,width_two:0,rotate_status:!1,description:""}]}),k=r=>{r=="increment"?(u=u+1,o.num_slice=o.num_slice+1,o.slice.push({row_id:u,length:"",width:"",count:"1",length_one:0,length_two:0,width_one:0,width_two:0,rotate_status:!1,description:""})):1<o.num_slice&&(o.num_slice=o.num_slice-1,o.slice.splice(o.num_slice,1),u=u-1),U()},D=r=>{u=u-1,o.slice.splice(r,1),o.num_slice=o.num_slice-1},U=()=>{for(let r=0;r<o.slice.length;r++)o.slice[r].rotate_status=o.rotate_status},I=async()=>{p.value=!0;for(let r=0;r<o.slice.length;r++){const d=o.slice[r];if(!d.width)return y.add({title:s("Section ")+(r+1)+" "+s("Width_Alert"),color:"orange"}),p.value=!1;if(!d.length)return y.add({title:s("Section ")+(r+1)+" "+s("Length_Alert"),color:"orange"}),p.value=!1;if(!d.count)return y.add({title:s("Section ")+(r+1)+" "+s("Number_Alert"),color:"orange"}),p.value=!1}await te("/analyze/custom-list/add",{method:"POST",body:o,immediate:!0,server:!0,onResponse({request:r,response:d,options:b}){if(d.status!=422)return X(R("/analyze/list"))}})};let V=r=>["ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(r);const h=r=>{if(r.target.tagName=="SELECT"&&V(r.code)&&r.preventDefault(),V(r.code)){let d,b=parseInt(r.target.id),c=Math.floor(b/10),n=b%10;switch(r.code){case"ArrowUp":if(c==1&&n<=4)return;if(c>1&&n<=4){--c,n=n+4;break}if(c>=1&&n>=5){n=n-4;break}case"ArrowRight":if(c==1&&n==1)return;if(c>=1&&n>=1){--n;break}case"ArrowDown":if(c==u&&n>=5)return;if(c<=u&&n<=4){n=n+4;break}if(c<u&&n>=5){++c,n=n-4;break}case"ArrowLeft":if(c==u&&n==8||n==8)return;if(c>=1&&n>=1){++n;break}}d=String(c)+String(n),document.getElementById(d).focus()}};return(r,d)=>{const b=Z,c=J;return m(),w("div",oe,[e("div",{dir:r.$i18n.locale=="en"?"ltr":"rtl",class:"mb-2"},[e("div",ne,[e("div",le,[re,e("div",ie,[e("span",de,l(t(s)("add_piece")),1)]),ae])]),e("div",ce,[e("div",ue,[e("div",_e,[e("div",he,[e("div",me,[_(e("select",{"onUpdate:modelValue":d[0]||(d[0]=n=>t(o).material_id=n),class:"block w-full h-9 py-0 !px-3 text-sm bg-white text-gray-900 border border-gray-300 rounded focus:ring-main-700 focus:border-main-700"},[(m(!0),w(A,null,j(t(B).fields,(n,i)=>(m(),w("option",{value:n.id},l(r.$i18n.locale=="en"?n.title_en:n.title),9,pe))),256))],512),[[f,t(o).material_id]])])]),e("div",be,[e("div",we,[_(e("textarea",{"onUpdate:modelValue":d[1]||(d[1]=n=>t(o).panel_description=n),rows:"1",class:"block w-full h-9 py-1 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded 3xl:h-9 focus:ring-main-700 focus:border-main-700 placeholder-slate-400",placeholder:t(s)("Sheet name and code")},null,8,fe),[[x,t(o).panel_description]])])]),e("div",xe,[e("div",ge,[_(e("input",{type:"checkbox",onChange:U,"onUpdate:modelValue":d[2]||(d[2]=n=>t(o).rotate_status=n),class:"w-5 h-5 text-red-900 border-2 border-red-900 cursor-pointer focus:border-red-900 focus:ring-red-900"},null,544),[[C,t(o).rotate_status]]),e("span",ye,l(t(s)("Total rotation of parts")),1)])])])]),e("section",ve,[e("div",ke,[e("button",{onClick:d[3]||(d[3]=n=>k("increment")),type:"button",class:K([r.$i18n.locale=="en"?"mr-2 pr-2":"ml-2 pl-2","mb-0 w-auto h-7 text-xs bold flex justify-center items-center bg-gray-50 border-green-500 hover:bg-green-50 border rounded cursor-pointer"])},[Ue,e("span",Ve,l(t(s)("Add row")),1)],2),e("button",{onClick:d[4]||(d[4]=n=>k("decrement")),type:"button",class:K([r.$i18n.locale=="en"?" pr-2":" pl-2","mb-0 :w-auto h-7 text-xs bold flex justify-center items-center bg-gray-50 border-red-500 hover:bg-red-50 border rounded cursor-pointer"])},[Se,e("span",Ae,l(t(s)("Reduce line")),1)],2)])]),e("div",je,[e("div",Ce,[e("div",Ke,l(t(s)("row_number")),1),e("div",Ne,l(t(s)("count")),1),e("div",$e,l(t(s)("width")),1),e("div",Re,l(t(s)("length")),1),e("div",Be,l(t(s)("description")),1)]),(m(!0),w(A,null,j(t(o).num_slice,(n,i)=>(m(),w("div",De,[e("div",Ie,[e("span",Le,[1<i+1?(m(),W(b,{key:0,onClick:a=>D(i),name:"i-heroicons-x-circle",class:"text-xl text-red-600 cursor-pointer ml-1"},null,8,["onClick"])):H("",!0),Q(" "+l(i+1),1)]),e("div",Pe,[_(e("input",{type:"checkbox","onUpdate:modelValue":a=>t(o).slice[i].rotate_status=a,onKeydown:h,class:"text-red-900 border-2 border-red-900 cursor-pointer focus:border-red-900 focus:ring-red-900"},null,40,Te),[[C,t(o).slice[i].rotate_status]]),e("span",Ee,l(t(s)("rotation")),1)])]),e("div",Fe,[e("div",Ge,[_(e("input",{placeholder:t(s)("number"),"onUpdate:modelValue":a=>t(o).slice[i].count=a,id:t(o).slice[i].row_id+"1",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 text-center bold rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700"},null,40,Oe),[[x,t(o).slice[i].count]])]),e("div",ze,[_(e("input",{placeholder:t(s)("Width"),"onUpdate:modelValue":a=>t(o).slice[i].width=a,id:t(o).slice[i].row_id+"2",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 text-center bold rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700"},null,40,Me),[[x,t(o).slice[i].width]])]),e("div",qe,[_(e("input",{"onUpdate:modelValue":a=>t(o).slice[i].length=a,placeholder:t(s)("length"),id:t(o).slice[i].row_id+"3",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 text-center bold rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700"},null,40,Je),[[x,t(o).slice[i].length]])]),e("div",We,[_(e("textarea",{"onUpdate:modelValue":a=>t(o).slice[i].description=a,rows:"1",id:t(o).slice[i].row_id+"4",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-1 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded description h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700 placeholder-slate-400",placeholder:t(s)("description")},null,40,He),[[x,t(o).slice[i].description]])]),e("div",Qe,[_(e("select",{"onUpdate:modelValue":a=>t(o).slice[i].width_two=a,id:t(o).slice[i].row_id+"5",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700"},[e("option",Ze,l(t(s)("width two")),1),e("option",Ye,l(t(s)("Strip")),1),e("option",et,l(t(s)("Farsi")),1),e("option",tt,l(t(s)("Groove")),1),e("option",ot,l(t(s)("none")),1)],40,Xe),[[f,t(o).slice[i].width_two]])]),e("div",st,[_(e("select",{"onUpdate:modelValue":a=>t(o).slice[i].width_one=a,id:t(o).slice[i].row_id+"6",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700"},[e("option",lt,l(t(s)("width one")),1),e("option",rt,l(t(s)("Strip")),1),e("option",it,l(t(s)("Farsi")),1),e("option",dt,l(t(s)("Groove")),1),e("option",at,l(t(s)("none")),1)],40,nt),[[f,t(o).slice[i].width_one]])]),e("div",ct,[_(e("select",{"onUpdate:modelValue":a=>t(o).slice[i].length_two=a,id:t(o).slice[i].row_id+"7",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700"},[e("option",_t,l(t(s)("length two")),1),e("option",ht,l(t(s)("Strip")),1),e("option",mt,l(t(s)("Farsi")),1),e("option",pt,l(t(s)("Groove")),1),e("option",bt,l(t(s)("none")),1)],40,ut),[[f,t(o).slice[i].length_two]])]),e("div",wt,[_(e("select",{"onUpdate:modelValue":a=>t(o).slice[i].length_one=a,id:t(o).slice[i].row_id+"8",onKeydown:h,class:"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700"},[e("option",xt,l(t(s)("length one")),1),e("option",gt,l(t(s)("Strip")),1),e("option",yt,l(t(s)("Farsi")),1),e("option",vt,l(t(s)("Groove")),1),e("option",kt,l(t(s)("none")),1)],40,ft),[[f,t(o).slice[i].length_one]])])])]))),256))])])],8,se),e("footer",Ut,[e("div",Vt,[M(c,{onClick:I,loading:t(p),square:"",class:"w-full flex text-white rounded-sm border h-10 bg-main-700 items-center justify-center"},{default:q(()=>[e("span",St,l(t(s)("registration")),1)]),_:1},8,["loading"])])])])}}});export{$t as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa