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