���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: Bq_EazWQ.js
import{_ as q}from"./Ch02pi7V.js";import{_ as J}from"./B1nRRrFI.js";import{q as M,g as j,h as T,N as W,O as F,W as $,r as U,P as H,Q as G,j as Q,u as X,o as _,c as p,a as t,t as i,k as e,b as d,G as b,w as z,I as Y,J as Z,a0 as ee,R as te,n as se,S as ne,p as oe,f as le,U as ae,_ as ie}from"./CN8H5RCu.js";import{_ as re}from"./CYo8lBmY.js";import{u as ue}from"./DV-TEbnC.js";import{u as de}from"./Hd6gNmEX.js";import{u as ce}from"./9gVSszSs.js";import"./DYEZnc8p.js";const K=w=>(oe("data-v-a2376527"),w=w(),le(),w),me={class:"mb-2 pt-3 px-2 mt-1"},_e=["dir"],pe={class:"flex justify-between items-start"},fe={class:"w-full flex justify-between items-start mb-3"},we={class:"w-5/12"},he={class:"flex justify-between items-center w-full mb-3"},ge={class:"block w-5/12 text-gray-500 bg-white text-sm"},ye={class:"w-7/12"},be={class:"flex justify-between items-center w-full mb-3"},xe={class:"block w-5/12 text-gray-500 bg-white text-sm"},ve={class:"w-7/12"},ke={class:"flex justify-between items-center w-full mb-3"},Ve={class:"block w-5/12 text-gray-500 bg-white text-sm"},Ae={class:"w-7/12"},Ue={key:0,class:"flex justify-between items-center w-full mb-3"},Ke={class:"block w-5/12 text-gray-500 bg-white text-sm"},Ce={class:"w-7/12"},Ie={class:"flex justify-between items-center w-full mb-3"},Ne={class:"block w-5/12 text-gray-500 bg-white text-sm"},Se={class:"w-7/12"},Oe={class:"h-32 w-[13rem] mb-3"},je=["src","alt"],$e=["textContent"],ze={class:"mb-2"},Le={key:0},Re=["dir"],De={class:"bg-gray-300"},Pe=K(()=>t("th",null,null,-1)),Be=K(()=>t("th",null,null,-1)),Ee=K(()=>t("td",null," = ",-1)),qe=["dir"],Je={class:"px-1 w-3/12"},Me={class:"block text-gray-500 bg-white text-base"},Te={class:"px-1 w-4/12"},We={class:"px-1 w-4/12"},Fe={class:"block px-2 text-base truncate"},He=M({__name:"[id]",async setup(w){let h,C;const{t:a}=j(),L=T(),{locale:R}=j(),x=ee(),{$api:I}=W(),f=ce(),v=F(),{id:k}=$().params,V=U(!1),s=H({y:void 0,x:void 0,z:void 0,s:void 0,c:1,count:1}),g=U(null),N=U([]),D=$(),{data:c}=([h,C]=G(async()=>ue(`user:${k}`,async()=>{const[n,o]=await Promise.all([I(x.public.API_URL+"/analyze/materials"),I(x.public.API_URL+"/analyze/unit",{query:{unit_id:k}})]),r=JSON.parse(n).data.materials,u=JSON.parse(o).data.unit;return{fields:r,unit:u}},{server:!0})),h=await h,C(),h);Q(async()=>{c.value.fields.forEach(n=>{N.value.push({name:R.value=="en"?n.title_en:n.title,value:n.id})}),D.meta.title=c.value.unit.title,X({title:c.value.unit.title})});async function S(n,o,r){if(!s.y)return v.add({title:a("Length field Alert"),color:"orange"});if(!s.x)return v.add({title:a("Width field Alert"),color:"orange"});if(!s.z)return v.add({title:a("Height field Alert"),color:"orange"});let u=1;s.s&&(u=s.x-s.s),V.value=!0;const{data:y,refresh:A}=await de("/analyze/computing-unit",{method:"POST",immediate:!0,server:!0,body:{y:s.y,x:s.x,z:s.z,s:s.s,c:s.c,d:u,count:s.count,type:n,unit_id:k,unit_title:o}});te(()=>{A()}),g.value=JSON.parse(y.value).data.result,V.value=!1,r&&se(L(r))}let O=n=>["ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(n),P=n=>[38,40].includes(n);const m=n=>{var o;if((n.target.tagName=="SELECT"&&O(n.code)||P(n.which))&&n.preventDefault(),O(n.code)){let r=parseInt(n.target.id),u;switch(n.code){case"ArrowUp":case"ArrowRight":if(r>1)u=r-1;else return;break;case"ArrowDown":case"ArrowLeft":if(r<7)u=r+1;else return;break}(o=document.getElementById(`${u}`))==null||o.focus()}};return(n,o)=>{const r=q,u=J,y=ne,A=re,B=ae;return _(),p("div",me,[t("section",{dir:n.$i18n.locale=="en"?"ltr":"rtl"},[t("div",pe,[t("div",fe,[t("div",we,[t("div",he,[t("label",ge,i(e(a)("Depth")),1),t("div",ye,[d(r,{loading:!1,variant:"outline",onKeydown:m,id:"1",type:"number",inputClass:" w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(f).NumbersOnly,modelValue:e(s).y,"onUpdate:modelValue":o[0]||(o[0]=l=>e(s).y=l)},null,8,["onKeypress","modelValue"])])]),t("div",be,[t("label",xe,i(e(a)("Width")),1),t("div",ve,[d(r,{loading:!1,variant:"outline",onKeydown:m,id:"2",type:"number",inputClass:" w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(f).NumbersOnly,modelValue:e(s).x,"onUpdate:modelValue":o[1]||(o[1]=l=>e(s).x=l)},null,8,["onKeypress","modelValue"])])]),t("div",ke,[t("label",Ve,i(e(a)("Height")),1),t("div",Ae,[d(r,{loading:!1,variant:"outline",type:"number",inputClass:"w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(f).NumbersOnly,onKeydown:m,id:"3",modelValue:e(s).z,"onUpdate:modelValue":o[2]||(o[2]=l=>e(s).z=l)},null,8,["onKeypress","modelValue"])])]),e(c).unit.sabet_status=="true"?(_(),p("div",Ue,[t("label",Ke,i(e(a)("Fixed Width")),1),t("div",Ce,[d(r,{loading:!1,variant:"outline",type:"number",inputClass:"w-10/12 sm:w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",onKeypress:e(f).NumbersOnly,modelValue:e(s).s,"onUpdate:modelValue":o[3]||(o[3]=l=>e(s).s=l)},null,8,["onKeypress","modelValue"])])])):b("",!0),t("div",Ie,[t("label",Ne,i(e(a)("Door Color")),1),t("div",Se,[d(u,{options:e(N),"option-attribute":"name",id:"4",onKeydown:m,class:"w-full",selectClass:" w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs",modelValue:e(s).c,"onUpdate:modelValue":o[4]||(o[4]=l=>e(s).c=l)},null,8,["options","modelValue"])])])]),t("div",Oe,[e(c).unit.image_2_d?(_(),p("img",{key:0,src:e(x).public.FILE_URL+e(c).unit.image_2_d.address,class:"w-full h-full",alt:e(a)("Add Unit")},null,8,je)):b("",!0),d(y,{loading:!1,square:"",onKeydown:m,id:"5",onClick:o[5]||(o[5]=l=>S("computing",e(c).unit.title,null)),class:"w-full flex text-main-700 rounded-sm border border-red-600 h-7 bg-white items-center justify-center"},{default:z(()=>{var l;return[t("span",{textContent:i((l=e(g))!=null&&l.length?e(a)("Recalculate"):e(a)("Computing")),class:"block px-2 text-sm truncate"},null,8,$e)]}),_:1})])])])],8,_e),t("section",ze,[e(V)?(_(),p("div",Le,[d(A)])):b("",!0),e(g)?(_(),p("table",{key:1,class:"w-full p-0",dir:n.$i18n.locale=="en"?"ltr":"rtl"},[t("thead",null,[t("tr",De,[t("th",null,i(e(a)("length")),1),Pe,t("th",null,i(e(a)("width")),1),Be,t("th",null,i(e(a)("count")),1),t("th",null,i(e(a)("unit_title")),1)])]),t("tbody",null,[(_(!0),p(Y,null,Z(e(g),(l,E)=>(_(),p("tr",{key:E,class:"even:bg-gray-100"},[t("td",null,i(l.length),1),t("td",null,[d(B,{name:"i-heroicons-x-mark",class:"text-[11px]"})]),t("td",null,i(l.width),1),Ee,t("td",null,i(l.count),1),t("td",null,i(n.$i18n.locale=="en"?l.label_en:l.label),1)]))),128))])],8,Re)):b("",!0)]),t("footer",{dir:n.$i18n.locale=="en"?"ltr":"rtl",class:"px-3 bg-white flex justify-between items-center pb-2 pt-2 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"},[t("div",Je,[t("label",Me,i(e(a)("Number_Units"))+" : ",1)]),t("div",Te,[d(r,{loading:!1,variant:"outline",inputClass:"w-full text-center text-main-700 rounded-sm ring-gray-400 !shadow-none focus:ring-1 focus:ring-orange-600 h-7 text-base ",modelValue:e(s).count,"onUpdate:modelValue":o[6]||(o[6]=l=>e(s).count=l),type:"number",onKeypress:e(f).NumbersOnly,onKeydown:m,id:"6"},null,8,["modelValue","onKeypress"])]),t("div",We,[d(y,{loading:!1,square:"",onKeydown:m,id:"7",onClick:o[7]||(o[7]=l=>S("set",e(c).unit.title,"/analyze/list")),class:"w-full flex text-main-700 border-red-700 rounded-sm border h-7 bg-white items-center justify-center"},{default:z(()=>[t("span",Fe,i(e(a)("registration")),1)]),_:1})])],8,qe)])}}}),nt=ie(He,[["__scopeId","data-v-a2376527"]]);export{nt as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa