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