���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: BT37tVdZ.js
import{q as F,h as O,u as z,P as k,N as B,i as E,r as T,Q as q,R as L,o as g,c as h,a as t,t as c,k as i,b as s,w as d,I as j,J as M,G as C,n as R,U as D,S as G,E as J,T as K}from"./Bkw0duvu.js";import{_ as H}from"./Bk3PtmvI.js";import{_ as Q}from"./yDnVNt26.js";import{u as W}from"./DmDSYH1u.js";import{u as X}from"./DKnm8qnS.js";import{u as Y}from"./BbgV3qLK.js";import"./CyhgVoz5.js";const Z={class:"w-[95%] mx-auto lg:w-10/12"},ee=["dir"],te={class:"w-full"},se={class:"w-8/12 mx-auto flex px-2 h-10 text-black rounded-lg bg-[#f7941d] items-center justify-center"},le={class:"block px-2 text-sm"},ne=["dir"],ie={class:"block text-sm text-right w-full bold text-black mb-3"},oe={class:"w-full flex flex-col justify-start items-start"},ae={class:"block text-sm text-right bold text-black mb-3"},de={class:"w-full flex justify-center items-center"},re={class:"flex justify-start items-center"},ue={class:"w-[30%] mx-2 flex justify-start items-center"},ce={class:"flex justify-start items-center"},fe={class:"w-full flex flex-col justify-start items-start"},me={class:"block text-sm text-right bold text-black mb-3"},xe={class:"w-full flex justify-center items-center"},be={class:"flex justify-start items-center"},_e={class:"w-[30%] mx-2 flex justify-start items-center"},ge={class:"flex justify-start items-center"},he=["dir"],pe={class:"block text-sm text-right w-full bold text-black mb-3"},ye={class:"w-full flex flex-col justify-start items-start"},ve={class:"block text-sm text-right bold text-black mb-3"},we={class:"w-full flex justify-center items-center"},ke={class:"flex justify-start items-center"},je={class:"w-[30%] mx-2 flex justify-start items-center"},Ce={class:"flex justify-start items-center"},$e={class:"w-full flex flex-col justify-start items-start"},Ne={class:"block text-sm text-right bold text-black mb-3"},Ve={class:"w-full flex justify-center items-center"},Se={class:"flex justify-start items-center"},Ie={class:"w-[30%] mx-2 flex justify-start items-center"},Ue={class:"flex justify-start items-center"},Pe={class:"w-full"},Ae=["dir"],Fe=["textContent"],Oe={class:"w-7/12"},ze={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"},Be={class:"px-1 w-full"},Ee={class:"block px-2 text-xs bold truncate"},Ke=F({__name:"setting",async setup(Te){let b,y;const{t:u}=O();z({title:u("SettingsStart")});const $=Y();let f=k([]),l=k([{dd:0,du:0,dh:0,dw:0}]);const{$api:N}=B(),V=E(),S=K(),v=T(!1),{data:p}=([b,y]=q(async()=>W(async()=>{const[o]=await Promise.all([N(S.public.API_URL+"/analyze/setting/get")]);return{feilds:JSON.parse(o).data.setting.data}},{server:!0},"$TwIon51Syk")),b=await b,y(),b),I=async o=>{o&&o.forEach(e=>{f.push({id:e.id,key:e.key,value:e.user?e.user.value:e.value}),e.key=="dd"&&(l.dd=e.user?e.user.value:e.value),e.key=="du"&&(l.du=e.user?e.user.value:e.value),e.key=="dh"&&(l.dh=e.user?e.user.value:e.value),e.key=="dw"&&(l.dw=e.user?e.user.value:e.value)})};L(async()=>{p.value.feilds&&await I(p.value.feilds)});const m=(o,e)=>{let a=0;o=="increment"?a=.1:a=-.1,e=="dd"&&(l.dd=Number(Number(l.dd)+a).toFixed(1)),e=="du"&&(l.du=Number(Number(l.du)+a).toFixed(1)),e=="dh"&&(l.dh=Number(Number(l.dh)+a).toFixed(1)),e=="dw"&&(l.dw=Number(Number(l.dw)+a).toFixed(1))},U=(o,e,a)=>{var r=f.find(function(x){return x.id===e});r?r.value=o.target.value:f.push({id:e,key:a,value:o.target.value})},P=async()=>{v.value=!0;for(let o=0;o<f.length;o++){const e=f[o];e.key=="dd"&&(e.value=l.dd),e.key=="du"&&(e.value=l.du),e.key=="dh"&&(e.value=l.dh),e.key=="dw"&&(e.value=l.dw)}return await X("/analyze/setting/update",{method:"POST",body:f,immediate:!0,server:!0}),R(V("/analyze/start"))};return(o,e)=>{const a=D,r=G,x=H,_=Q;return g(),h("section",Z,[t("div",{dir:o.$i18n.locale=="en"?"ltr":"rtl",class:"w-full gap-3 flex justify-start !pt-1 items-center flex-col"},[t("div",te,[t("label",se,[t("span",le,c(i(u)("SettingsStart")),1)])]),t("div",{dir:o.$i18n.locale=="en"?"ltr":"rtl",class:"w-full border rounded-xl gap-3 bg-gray-100 flex justify-start !pt-4 items-center flex-col border-gray-500 p-2 min-h-48"},[t("label",ie,c(i(u)("Ground unit door"))+" : ",1),t("div",oe,[t("label",ae,c(i(u)("difference unit")),1),t("div",de,[t("div",re,[s(r,{square:"",onClick:e[0]||(e[0]=n=>m("increment","dd")),class:"w-8 h-8 flex px-2 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",ue,[s(_,null,{default:d(()=>[s(x,{dir:"ltr",modelValue:i(l).dd,"onUpdate:modelValue":e[1]||(e[1]=n=>i(l).dd=n),variant:"outline",inputmode:"numeric",type:"number",class:"w-full",inputClass:" text-center !h-8 bg-white !shadow-none focus:ring-1 rounded-md focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue"])]),_:1})]),t("div",ce,[s(r,{onClick:e[2]||(e[2]=n=>m("decrement","dd")),class:"flex px-2 w-8 h-8 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])]),t("div",fe,[t("label",me,c(i(u)("difference width unit")),1),t("div",xe,[t("div",be,[s(r,{onClick:e[3]||(e[3]=n=>m("increment","du")),class:"w-8 h-8 flex px-2 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",_e,[s(_,null,{default:d(()=>[s(x,{dir:"ltr",modelValue:i(l).du,"onUpdate:modelValue":e[4]||(e[4]=n=>i(l).du=n),variant:"outline",inputmode:"numeric",type:"number",class:"w-full",inputClass:" text-center !h-8 bg-white !shadow-none focus:ring-1 rounded-md focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue"])]),_:1})]),t("div",ge,[s(r,{onClick:e[5]||(e[5]=n=>m("decrement","du")),class:"flex px-2 w-8 h-8 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])])],8,ne),t("div",{dir:o.$i18n.locale=="en"?"ltr":"rtl",class:"w-full border rounded-xl gap-3 mb-3 bg-gray-100 flex justify-start !pt-4 items-center flex-col border-gray-500 p-2 min-h-48"},[t("label",pe,c(i(u)("Air unit door"))+" : ",1),t("div",ye,[t("label",ve,c(i(u)("difference unit")),1),t("div",we,[t("div",ke,[s(r,{onClick:e[6]||(e[6]=n=>m("increment","dh")),class:"w-8 h-8 flex px-2 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",je,[s(_,null,{default:d(()=>[s(x,{dir:"ltr",modelValue:i(l).dh,"onUpdate:modelValue":e[7]||(e[7]=n=>i(l).dh=n),variant:"outline",inputmode:"numeric",type:"number",class:"w-full",inputClass:" text-center !h-8 bg-white !shadow-none focus:ring-1 rounded-md focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue"])]),_:1})]),t("div",Ce,[s(r,{onClick:e[8]||(e[8]=n=>m("decrement","dh")),class:"flex px-2 w-8 h-8 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])]),t("div",$e,[t("label",Ne,c(i(u)("difference width unit")),1),t("div",Ve,[t("div",Se,[s(r,{onClick:e[9]||(e[9]=n=>m("increment","dw")),class:"w-8 h-8 flex px-2 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",Ie,[s(_,null,{default:d(()=>[s(x,{dir:"ltr",modelValue:i(l).dw,"onUpdate:modelValue":e[10]||(e[10]=n=>i(l).dw=n),variant:"outline",inputmode:"numeric",type:"number",class:"w-full",inputClass:" text-center !h-8 bg-white !shadow-none focus:ring-1 rounded-md focus:ring-orange-600 py-0 text-xs"},null,8,["modelValue"])]),_:1})]),t("div",Ue,[s(r,{onClick:e[11]||(e[11]=n=>m("decrement","dw")),class:"flex px-2 w-8 h-8 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center"},{default:d(()=>[s(a,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])])],8,he),t("div",Pe,[0<i(f).length?(g(!0),h(j,{key:0},M(i(p).feilds,(n,w)=>(g(),h(j,{key:w},[["du","dd","dw","dh"].includes(n.key)?C("",!0):(g(),h("div",{key:0,dir:o.$i18n.locale=="en"?"ltr":"rtl",class:"w-full flex justify-between items-center mb-3"},[t("label",{class:J([o.$i18n.locale=="en"?"mr-2 text-left":"ml-2 text-right","block w-5/12 text-gray-500 bg-white text-xs"]),textContent:c(o.$i18n.locale=="en"?n.title_en:n.title)},null,10,Fe),t("div",Oe,[s(x,{onKeypress:i($).NumbersOnly,variant:"outline",inputClass:" w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs",value:i(f)[w].value,onInput:A=>U(A,n.id,n.key)},null,8,["onKeypress","value","onInput"])])],8,Ae))],64))),128)):C("",!0),t("footer",ze,[t("div",Be,[s(r,{loading:i(v),onClick:P,square:"",class:"w-full flex text-white rounded-sm border h-10 bg-main-700 items-center justify-center"},{default:d(()=>[t("span",Ee,c(i(u)("Edit settings")),1)]),_:1},8,["loading"])])])])],8,ee)])}}});export{Ke as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa