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