���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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.1
/
public
/
_nuxt
/
Viewing: DkhZS0eU.js
import{_ as K}from"./DbU6YvtQ.js";import{s as L,g as M,h as q,P as C,i as H,r as V,Q as O,u as T,k as D,l as s,o as _,c as b,b as l,a as t,t as f,w as a,J as N,K as G,n as J,U as Q,S as R,F as $,H as W}from"./B_6d-9uz.js";import{_ as X}from"./CMN_rtbD.js";import{_ as Y}from"./Cgqmfd8w.js";import{u as U}from"./aG0p4yd5.js";import{u as Z}from"./CKuTmZUJ.js";import"./DKlaZ6Hy.js";import"./BGGxw1gv.js";const ee={key:0,class:"block text-center"},te={key:1,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"},_e={class:"block text-sm text-right bold text-black mb-3"},be={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"},ye={class:"flex justify-start items-center"},pe=["dir"],ve={class:"block text-sm text-right w-full bold text-black mb-3"},we={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"},Ve={class:"w-[30%] mx-2 flex justify-start items-center"},Ne={class:"flex justify-start items-center"},$e={class:"w-full flex flex-col justify-start items-start"},Ue={class:"block text-sm text-right bold text-black mb-3"},Fe={class:"w-full flex justify-center items-center"},Ie={class:"flex justify-start items-center"},Se={class:"w-[30%] mx-2 flex justify-start items-center"},Pe={class:"flex justify-start items-center"},ze={key:0,class:"w-full"},Ae=["dir"],Be=["textContent"],Ee={class:"w-7/12"},Ke={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"},Le={class:"px-1 w-full"},Me={class:"block px-2 text-xs bold truncate"},qe={key:1,class:"w-full"},He={class:"text-red-500 block mx-auto w-full text-center"},Ye=L({__name:"settings",async setup(Oe){let k,j;const{t:r,locale:g}=M(),F=q(),I=Z();let m=C([]),n=C([{dd:0,du:0,dh:0,dw:0}]);const S=H(),y=V(!0),p=V([]);async function P(){var e,d;const{data:o}=await U("/analyze/setting/get",{immediate:!0,server:!0});p.value=(d=(e=o.value)==null?void 0:e.setting)==null?void 0:d.data}[k,j]=O(()=>P()),await k,j();const z=async o=>{o&&o.forEach(e=>{m.push({id:e.id,key:e.key,value:e.user?e.user.value:e.value}),e.key=="dd"&&(n.dd=e.user?e.user.value:e.value),e.key=="du"&&(n.du=e.user?e.user.value:e.value),e.key=="dh"&&(n.dh=e.user?e.user.value:e.value),e.key=="dw"&&(n.dw=e.user?e.user.value:e.value)})},x=(o,e)=>{let d=0;o=="increment"?d=.1:d=-.1,e=="dd"&&(n.dd=Number(Number(n.dd)+d).toFixed(1)),e=="du"&&(n.du=Number(Number(n.du)+d).toFixed(1)),e=="dh"&&(n.dh=Number(Number(n.dh)+d).toFixed(1)),e=="dw"&&(n.dw=Number(Number(n.dw)+d).toFixed(1))},A=(o,e,d)=>{var u=m.find(function(c){return c.id===e});u?u.value=o.target.value:m.push({id:e,key:d,value:o.target.value})},B=async()=>{y.value=!0;for(let o=0;o<m.length;o++){const e=m[o];e.key=="dd"&&(e.value=n.dd),e.key=="du"&&(e.value=n.du),e.key=="dh"&&(e.value=n.dh),e.key=="dw"&&(e.value=n.dw)}return await U("/analyze/setting/update",{method:"POST",body:m,immediate:!0,server:!0}),J(S("/analyze/start"))};return T({title:r("advanced_settings")}),D(async()=>{F.meta.title=r("advanced_settings"),p.value.length&&await z(p.value),y.value=!1}),(o,e)=>{const d=K,u=Q,c=R,h=X,v=Y;return s(y)?(_(),b("div",ee,[l(d)])):(_(),b("section",te,[t("div",{dir:s(g)=="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,f(s(r)("advanced_settings")),1)])]),t("div",{dir:s(g)=="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,f(s(r)("Ground unit door"))+" : ",1),t("div",ae,[t("label",re,f(s(r)("difference unit")),1),t("div",ue,[t("div",ce,[l(c,{square:"",onClick:e[0]||(e[0]=i=>x("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(()=>[l(u,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",fe,[l(v,null,{default:a(()=>[l(h,{dir:"ltr",modelValue:s(n).dd,"onUpdate:modelValue":e[1]||(e[1]=i=>s(n).dd=i),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,[l(c,{onClick:e[2]||(e[2]=i=>x("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(()=>[l(u,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])]),t("div",xe,[t("label",_e,f(s(r)("difference width unit")),1),t("div",be,[t("div",ge,[l(c,{onClick:e[3]||(e[3]=i=>x("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(()=>[l(u,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",he,[l(v,null,{default:a(()=>[l(h,{dir:"ltr",modelValue:s(n).du,"onUpdate:modelValue":e[4]||(e[4]=i=>s(n).du=i),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,[l(c,{onClick:e[5]||(e[5]=i=>x("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(()=>[l(u,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])])],8,oe),t("div",{dir:s(g)=="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",ve,f(s(r)("Air unit door"))+" : ",1),t("div",we,[t("label",ke,f(s(r)("difference unit")),1),t("div",je,[t("div",Ce,[l(c,{onClick:e[6]||(e[6]=i=>x("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(()=>[l(u,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",Ve,[l(v,null,{default:a(()=>[l(h,{dir:"ltr",modelValue:s(n).dh,"onUpdate:modelValue":e[7]||(e[7]=i=>s(n).dh=i),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,[l(c,{onClick:e[8]||(e[8]=i=>x("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(()=>[l(u,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])]),t("div",$e,[t("label",Ue,f(s(r)("difference width unit")),1),t("div",Fe,[t("div",Ie,[l(c,{onClick:e[9]||(e[9]=i=>x("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(()=>[l(u,{name:"i-heroicons-plus",class:"text-black text-lg"})]),_:1})]),t("div",Se,[l(v,null,{default:a(()=>[l(h,{dir:"ltr",modelValue:s(n).dw,"onUpdate:modelValue":e[10]||(e[10]=i=>s(n).dw=i),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,[l(c,{onClick:e[11]||(e[11]=i=>x("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(()=>[l(u,{name:"i-heroicons-minus",class:"text-black text-lg"})]),_:1})])])])],8,pe),s(m).length?(_(),b("div",ze,[(_(!0),b(N,null,G(s(p),(i,w)=>(_(),b(N,{key:w},[["du","dd","dw","dh"].includes(i.key)?W("",!0):(_(),b("div",{key:0,dir:s(g)=="en"?"ltr":"rtl",class:$(["w-full flex justify-between items-center p-2",{"bg-gray-200":w%2==0}])},[t("label",{class:$([[s(g)=="en"?"mr-2 text-left":"ml-2 text-right",w%2==0?"bg-gray-200":""],"block w-5/12 text-gray-900 text-sm"]),textContent:f(s(g)=="en"?i.title_en:i.title)},null,10,Be),t("div",Ee,[l(h,{onKeypress:s(I).NumbersOnly,variant:"outline",color:"white",inputClass:" w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 text-sm rounded p-2",value:s(m)[w].value,type:"number",onInput:E=>A(E,i.id,i.key)},null,8,["onKeypress","value","onInput"])])],10,Ae))],64))),128)),t("footer",Ke,[t("div",Le,[l(c,{loading:s(y),onClick:B,square:"",class:"w-full flex text-white rounded-sm border h-10 bg-main-700 items-center justify-center"},{default:a(()=>[t("span",Me,f(s(r)("Edit settings")),1)]),_:1},8,["loading"])])])])):(_(),b("div",qe,[t("h2",He,f(s(r)("there_is_no_record_to_showing")),1)]))],8,se)]))}}});export{Ye as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa