���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
/
.nuxt.1
/
dist
/
client
/
_nuxt
/
Viewing: DmSVQl8r.js
import{s as O,g as q,u as z,P as j,a5 as B,i as E,h as K,r as L,Q as M,k as R,o as g,c as h,a as t,t as c,l as i,b as s,w as a,d as T,J as C,K as D,H as $,n as H,U as J,S as G,F as Q,$ as W}from"./B_6d-9uz.js";import{_ as X}from"./CMN_rtbD.js";import{_ as Y}from"./Cgqmfd8w.js";import{u as Z}from"./BGGxw1gv.js";import{u as ee}from"./aG0p4yd5.js";import{u as te}from"./CKuTmZUJ.js";import"./DKlaZ6Hy.js";const se={class:"w-[95%] mx-auto lg:w-10/12"},le=["dir"],ne={class:"w-full"},ie={class:"w-8/12 mx-auto flex px-2 h-10 text-black rounded-lg bg-[#f7941d] items-center justify-center"},oe={class:"block px-2 text-sm"},de=["dir"],ae={class:"block text-sm text-right w-full bold text-black mb-3"},re={class:"w-full flex flex-col justify-start items-start"},ue={class:"block text-sm text-right bold text-black mb-3"},ce={class:"w-full flex justify-center items-center"},fe={class:"flex justify-start items-center"},me={class:"w-[30%] mx-2 flex justify-start items-center"},xe={class:"flex justify-start items-center"},be={class:"w-full flex flex-col justify-start items-start"},_e={class:"block text-sm text-right bold text-black mb-3"},ge={class:"w-full flex justify-center items-center"},he={class:"flex justify-start items-center"},pe={class:"w-[30%] mx-2 flex justify-start items-center"},ye={class:"flex justify-start items-center"},ve=["dir"],we={class:"block text-sm text-right w-full bold text-black mb-3"},ke={class:"w-full flex flex-col justify-start items-start"},je={class:"block text-sm text-right bold text-black mb-3"},Ce={class:"w-full flex justify-center items-center"},$e={class:"flex justify-start items-center"},Ve={class:"w-[30%] mx-2 flex justify-start items-center"},Ne={class:"flex justify-start items-center"},Ue={class:"w-full flex flex-col justify-start items-start"},Ie={class:"block text-sm text-right bold text-black mb-3"},Pe={class:"w-full flex justify-center items-center"},Fe={class:"flex justify-start items-center"},Ae={class:"w-[30%] mx-2 flex justify-start items-center"},Se={class:"flex justify-start items-center"},Oe=["dir"],qe=["textContent"],ze={class:"w-7/12"},Be={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"},Ee={class:"px-1 w-full"},Ke={class:"block px-2 text-xs bold truncate"},Qe=O({__name:"[id]",async setup(Le){let b,v;const{t:u}=q();z({title:u("advanced_settings")});const V=te();let f=j([]),l=j([{dd:0,du:0,dh:0,dw:0}]);const{$api:N}=B(),U=E(),I=W(),{id:p}=K().params,w=L(!1),{data:y}=([b,v]=M(async()=>Z(`user:${p}`,async()=>{const[o]=await Promise.all([N(I.public.API_URL+"/analyze/list/setting",{query:{list_id:p}})]);return{fields:JSON.parse(o).data.setting}},{server:!0})),b=await b,v(),b),P=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)})};R(async()=>{y.value.fields&&await P(y.value.fields)});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))},F=(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()=>{w.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 ee("/analyze/list/update-setting",{method:"POST",body:f,query:{list_id:p},immediate:!0,server:!0}),H(U("/analyze/list"))};return(o,e)=>{const d=J,r=G,x=X,_=Y;return g(),h("section",se,[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",ne,[t("label",ie,[t("span",oe,c(i(u)("advanced_settings")),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",ae,c(i(u)("Ground unit door"))+" : ",1),t("div",re,[t("label",ue,c(i(u)("difference unit")),1),t("div",ce,[t("div",fe,[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(" ` ")]),t("div",me,[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",xe,[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",be,[t("label",_e,c(i(u)("difference width unit")),1),t("div",ge,[t("div",he,[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",pe,[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",ye,[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,de),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",ke,[t("label",je,c(i(u)("difference unit")),1),t("div",Ce,[t("div",$e,[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",Ve,[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",Ue,[t("label",Ie,c(i(u)("difference width unit")),1),t("div",Pe,[t("div",Fe,[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",Ae,[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",Se,[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,ve),0<i(f).length?(g(!0),h(C,{key:0},D(i(y).fields,(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:Q([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",ze,[s(x,{onKeypress:i(V).NumbersOnly,variant:"outline",type:"number",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:S=>F(S,n.id,n.key)},null,8,["onKeypress","value","onInput"])])],8,Oe))],64))),128)):$("",!0),t("footer",Be,[t("div",Ee,[s(r,{loading:i(w),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",Ke,c(i(u)("Edit settings")),1)]),_:1},8,["loading"])])])],8,le)])}}});export{Qe as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa