Files
infra/ru-vps/mihomo/config/ui/_nuxt/p5ExTIuN.js
T
Dmitry 59a7749b18
Deploy ru-vps / deploy (push) Successful in 22s
Убрать всё, кроме mihomo
2026-06-08 23:05:05 +03:00

1 line
38 KiB
JavaScript

import{B as e,C as t,Ct as n,D as r,G as i,H as a,K as o,L as s,Q as c,T as l,V as u,Y as d,Z as f,_ as p,a as m,b as h,c as g,d as _,it as v,lt as y,m as b,n as x,s as S,st as C,u as w,v as T,vt as E,w as D,wt as O,x as k,xt as A,y as j}from"./CaGtQlYh.js";import{a as M,c as ee,s as te,t as N}from"./B794cfQr.js";import{At as P,Jt as ne,Lt as F,Ot as I,Wt as re,Z as ie,qt as ae,t as oe}from"#entry";import{t as se}from"./CJgAejf_.js";import{a as ce,i as L,n as le,o as ue,r as de,s as R}from"./DNKnP_p9.js";import{a as fe,i as pe,n as z,o as B,r as V,t as H}from"./CqOBGK95.js";import{g as me,v as he}from"./DohEsvF1.js";import{t as ge}from"./CX_RojMw.js";import{t as _e}from"./taTi6IIU.js";var U={class:`relative min-w-32 shrink-0`},W={class:`flex-1 truncate text-left capitalize`},ve=Object.assign(r({__name:`ThemeSelector`,props:{modelValue:{}},emits:[`update:modelValue`],setup(t,{emit:r}){let i=t,o=r,s=y(null),c=y(null),d=y(!1),{floatingStyles:p}=le(s,c,{placement:`bottom-end`,middleware:[ce(4),R({padding:8,apply({availableHeight:e,elements:t}){Object.assign(t.floating.style,{maxHeight:`${e}px`})}}),L(),ue({padding:8,crossAxis:!0}),{name:`sameWidth`,fn({rects:e,elements:t}){return Object.assign(t.floating.style,{minWidth:`${Math.max(e.reference.width,240)}px`}),{}}}],whileElementsMounted:de});function m(){d.value=!d.value}function g(e){o(`update:modelValue`,e),d.value=!1}function _(e){let t=e.target;!s.value?.contains(t)&&!c.value?.contains(t)&&(d.value=!1)}return e(()=>{document.addEventListener(`click`,_,!0)}),u(()=>{document.removeEventListener(`click`,_,!0)}),(e,t)=>{let r=B;return a(),k(`div`,U,[T(`button`,{ref_key:`reference`,ref:s,class:`flex w-full cursor-pointer items-center justify-between gap-2 overflow-hidden rounded-lg border border-base-content/15 bg-base-200/80 px-3 py-1.5 text-sm text-base-content transition-all duration-200 ease-in-out hover:bg-base-content/10`,onClick:w(m,[`stop`])},[T(`span`,W,O(i.modelValue),1),l(E(ie),{class:A([`size-4 transition-transform duration-200 ease-in-out`,{"rotate-180":E(d)}])},null,8,[`class`])],512),(a(),j(b,{to:`body`},[l(x,{"enter-active-class":`transition-opacity duration-150`,"leave-active-class":`transition-opacity duration-100`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:f(()=>[E(d)?(a(),k(`div`,{key:0,ref_key:`floating`,ref:c,style:n(E(p)),class:`z-70 overflow-visible rounded-xl shadow-lg`},[l(r,{"model-value":i.modelValue,"max-height":420,"onUpdate:modelValue":g},null,8,[`model-value`])],4)):h(``,!0)]),_:1})]))])}}}),{__name:`ThemeSelector`}),G={key:0,class:`flex flex-col gap-3`},K={class:`px-2 text-xs font-medium opacity-50`},q={class:`flex items-center gap-2 text-sm`},ye={key:0,class:`badge badge-xs badge-primary`},be={class:`flex items-center gap-2`},J={class:`flex items-center gap-2`},Y={key:0,class:`flex items-center gap-2`},X={class:`text-xs text-warning`},Z=[`onClick`],Q={class:`kbd kbd-sm`},xe={class:`mt-2 flex justify-end`},Se=Object.assign(r({__name:`ShortcutsSettings`,setup(e){let t=H(),{t:n}=I(),r=F(`(max-width: 768px)`),o=y(null),s=y(``),c=y(null),l=e=>{o.value=e,s.value=``,c.value=null},u=()=>{o.value=null,s.value=``,c.value=null},d=e=>{if(!o.value)return;e.preventDefault(),e.stopPropagation();let n=e.key;if(n===`Escape`){u();return}let r=``;r=n===`?`?`?`:n.length===1?n.toLowerCase():n,s.value=r;let i=t.findConflict(r,o.value);i?c.value=i:(t.updateShortcut(o.value,r),u())},f=()=>{o.value&&s.value&&(t.updateShortcut(o.value,s.value),u())},p=()=>{t.resetToDefaults()},m=e=>t.isCustomized(e);return(e,g)=>E(r)?h(``,!0):(a(),k(`div`,G,[(a(!0),k(_,null,i(E(z),e=>(a(),k(`div`,{key:e.id,class:`flex flex-col gap-1`},[T(`div`,K,O(E(n)(e.labelKey,e.id)),1),(a(!0),k(_,null,i(e.shortcuts,e=>(a(),k(`div`,{key:e,class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},[T(`div`,q,[T(`span`,null,O(E(n)(E(V)[e],e)),1),m(e)?(a(),k(`span`,ye,O(E(n)(`shortcuts.customized`,`customized`)),1)):h(``,!0)]),T(`div`,be,[E(o)===e?(a(),k(_,{key:0},[T(`div`,J,[T(`kbd`,{class:`kbd animate-pulse border-primary kbd-sm`,tabindex:`0`,onKeydown:d},O(E(s)||E(n)(`shortcuts.pressKey`,`Press a key...`)),33),T(`button`,{class:`btn btn-ghost btn-xs`,onClick:u},[...g[0]||=[T(`span`,{class:`i-tabler-x size-4`},null,-1)]])]),E(c)?(a(),k(`div`,Y,[T(`span`,X,O(E(n)(`shortcuts.conflictWith`,`Conflicts with`))+` `+O(E(n)(E(V)[E(c)],E(c))),1),T(`button`,{class:`btn btn-xs btn-warning`,onClick:f},O(E(n)(`shortcuts.forceApply`,`Apply anyway`)),1)])):h(``,!0)],64)):(a(),k(`button`,{key:1,class:`btn gap-1 btn-ghost btn-xs`,onClick:t=>l(e)},[T(`kbd`,Q,O(E(pe)(E(t).shortcuts[e])),1),g[1]||=T(`span`,{class:`i-tabler-edit size-3 opacity-50`},null,-1)],8,Z))])]))),128))]))),128)),T(`div`,xe,[T(`button`,{class:`btn btn-outline btn-sm btn-error`,onClick:p},[g[2]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M3 12a9 9 0 109-9 9.75 9.75 0 00-6.74 2.74L3 8`}),T(`path`,{d:`M3 3v5h5`})],-1),D(` `+O(E(n)(`shortcuts.resetToDefaults`,`Reset to Defaults`)),1)])])]))}}),{__name:`ShortcutsSettings`});(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();var Ce=Object.defineProperty,we=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,De=(e,t,n)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t)=>{for(var n in t||={})Te.call(t,n)&&De(e,n,t[n]);if(we)for(var n of we(t))Ee.call(t,n)&&De(e,n,t[n]);return e},ke=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Ae=r({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:`normal`},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:[`onComplete`,`onLoopComplete`,`onPause`,`onResume`,`onOverflowDetected`,`onOverflowCleared`],setup(t,{emit:n}){let r=y(0),i=y(`100%`),a=y(`100%`),o=y(0),c=y(!1),l=y(!0),u=y(0),f=y(0),m=y(0),h=y(0),g=y(!1),_=y(!1),v=y(0),b=y(null),x=y(`200px`),S=y(!1),C=y(null),w=y(null),T=async()=>{await E(),o.value++},E=async()=>{t.vertical&&(c.value=!0),setInterval(()=>{if(i.value=`0%`,a.value=`0%`,C.value!==null&&w.value!==null&&C.value&&w.value)if(t.vertical&&`clientHeight`in C.value&&`clientHeight`in w.value){h.value=C.value.clientHeight,m.value=w.value.clientHeight;let e=Math.ceil(m.value/h.value);return r.value=t.animateOnOverflowOnly?0:isFinite(e)?e:0,c.value=!1,r.value}else if(!t.vertical&&`clientWidth`in C.value&&`clientWidth`in w.value){if(f.value=C.value.clientWidth,u.value=w.value.clientWidth,t.animateOnOverflowOnly&&S.value)return f.value<=u.value?(l.value=!0,n(`onOverflowCleared`)):(l.value=!1,n(`onOverflowDetected`)),0;let e=Math.ceil(u.value/f.value);return r.value=isFinite(e)?e:0,r.value}else return i.value=`100%`,a.value=`100%`,0;else return i.value=`100%`,a.value=`100%`,0},100)};d(f,async()=>{t.clone&&T()}),d(u,async()=>{(t.clone||t.animateOnOverflowOnly)&&T()}),d(()=>t.pause,(e,t)=>{e!==t&&n(e?`onResume`:`onPause`)});let D=()=>{t.pauseOnHover&&(n(`onPause`),g.value=!0)},O=()=>{t.pauseOnHover&&(n(`onResume`),g.value=!1)},k=()=>{t.pauseOnClick&&(n(`onPause`),_.value=!0)},A=()=>{t.pauseOnClick&&(n(`onResume`),_.value=!1)},j=p(()=>t.pause||t.vertical&&c.value||t.animateOnOverflowOnly&&l.value?`paused`:`running`),M=p(()=>t.pauseOnHover&&(g.value||_.value)||!t.pauseOnHover&&j.value===`paused`?`paused`:`running`),ee=p(()=>t.pauseOnHover&&g.value||t.pauseOnClick&&_.value||!t.pauseOnHover&&j.value===`paused`?`paused`:`running`),te=p(()=>{let e={"--duration":`${t.duration}s`,"--delay":`${t.delay}s`,"--direction":`${t.direction}`,"--pauseOnHover":`${M.value}`,"--pauseOnClick":`${ee.value}`,"--pauseAnimation":`${j.value}`,"--loops":`${t.loop===0?`infinite`:t.loop}`,"--gradient-color":`rgba(${t.gradientColor[0]}, ${t.gradientColor[1]}, ${t.gradientColor[2]}, 1), rgba(${t.gradientColor[0]}, ${t.gradientColor[1]}, ${t.gradientColor[2]}, 0)`,"--gradient-length":`${x.value}`,"--min-width":`${i.value}`,"--min-height":`${a.value}`},n={"--orientation":`scrollX`,orientation:`horizontal`};return t.vertical&&(n[`--orientation`]=`scrollY`),Oe(Oe({},e),n)}),N=p(()=>!!t.gradient),P=async()=>{t.vertical?(a.value=`100%`,i.value=`auto`,t.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(a.value=`auto`,t.animateOnOverflowOnly?i.value=`auto`:i.value=`100%`),t.gradient&&(t.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),x.value=t.gradientWidth):t.gradientLength&&(x.value=t.gradientLength)),t.clone||t.animateOnOverflowOnly?(await E(),T(),S.value=!0):S.value=!0};return e(async()=>{P(),b.value=setInterval(()=>{v.value++,t.loop!==0&&v.value===t.loop&&(n(`onComplete`),clearInterval(b.value)),n(`onLoopComplete`)},t.duration*1e3)}),s(()=>{clearInterval(b.value)}),{ready:S,contentWidth:f,containerWidth:u,contentHeight:h,containerHeight:m,loopCounter:v,loopInterval:b,mouseOverMarquee:g,mouseDownMarquee:_,minWidth:i,minHeight:a,animateOnOverflowPause:l,marqueeContent:C,marqueeOverlayContainer:w,componentKey:o,showGradient:N,cloneAmount:r,ForcesUpdate:T,checkForClone:E,setupMarquee:P,getCurrentStyle:te,hoverStarted:D,hoverEnded:O,mouseDown:k,mouseUp:A}}}),je={class:`transparent-overlay`,ref:`marqueeOverlayContainer`,"aria-hidden":!0},Me={class:`marquee`,ref:`marqueeContent`},Ne={key:1,"aria-hidden":!0,class:`marquee`};function Pe(e,t,r,s,c,l){return e.ready?(a(),k(`div`,{class:A([`vue3-marquee`,{vertical:e.vertical,horizontal:!e.vertical}]),style:n(e.getCurrentStyle),key:e.componentKey,onMouseenter:t[0]||=(...t)=>e.hoverStarted&&e.hoverStarted(...t),onMouseleave:t[1]||=(...t)=>e.hoverEnded&&e.hoverEnded(...t),onMousedown:t[2]||=(...t)=>e.mouseDown&&e.mouseDown(...t),onMouseup:t[3]||=(...t)=>e.mouseUp&&e.mouseUp(...t)},[T(`div`,je,null,512),e.showGradient?(a(),k(`div`,{key:0,"aria-hidden":!0,class:A([`overlay`,{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):h(``,!0),T(`div`,Me,[o(e.$slots,`default`)],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(a(),k(`div`,Ne,[o(e.$slots,`default`)])):h(``,!0),(a(!0),k(_,null,i(e.cloneAmount,t=>(a(),k(`div`,{"aria-hidden":!0,class:`marquee cloned`,key:t},[o(e.$slots,`default`)]))),128))],38)):h(``,!0)}var $=ke(Ae,[[`render`,Pe]]),Fe={class:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto`},Ie={key:0,class:`flex h-64 items-center justify-center`},Le={class:`flex flex-col items-center gap-4`},Re={class:`text-sm opacity-60`},ze={key:1,class:`flex h-64 items-center justify-center`},Be={class:`flex flex-col items-center gap-4 text-center`},Ve={class:`text-lg font-bold`},He={class:`mt-1 max-w-sm text-sm opacity-60`},Ue={class:`mt-1 text-xs opacity-40`},We={class:`flex gap-2`},Ge={class:`animate-fade-slide-in flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between`},Ke={class:`flex items-center gap-3`},qe={class:`text-xl font-bold tracking-tight`},Je={class:`text-xs opacity-60`},Ye={class:`flex gap-1 rounded-lg bg-base-200 p-1 sm:hidden`},Xe={class:`grid grid-cols-1 gap-6 lg:grid-cols-2`},Ze={class:`flex items-center gap-2 border-b border-base-content/5 bg-base-300/30 px-4 py-3 text-sm font-semibold`},Qe={class:`flex flex-col gap-3 p-4`},$e={class:`flex flex-col gap-2`},et={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},tt={class:`flex items-center gap-2 text-sm`},nt={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},rt={class:`flex items-center gap-2 text-sm`},it=[`value`],at={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},ot={class:`flex items-center gap-2 text-sm`},st={class:`flex flex-col gap-2`},ct={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},lt={class:`flex items-center gap-2 text-sm`},ut={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},dt={class:`flex items-center gap-2 text-sm`},ft={class:`pl-5`},pt=[`value`],mt={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},ht={class:`flex items-center gap-2 text-sm`},gt={class:`pl-5`},_t={class:`flex flex-col gap-2`},vt={class:`grid grid-cols-2 gap-3 sm:grid-cols-3`},yt=[`for`],bt=[`id`,`onUpdate:modelValue`,`placeholder`,`onChange`],xt={class:`flex items-center gap-2 border-b border-base-content/5 bg-base-300/30 px-4 py-3 text-sm font-semibold`},St={class:`flex flex-col gap-3 p-4`},Ct={class:`flex flex-col gap-2`},wt={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},Tt={class:`flex items-center gap-2 text-sm`},Et={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},Dt={class:`flex flex-col gap-0.5`},Ot={class:`text-sm`},kt={class:`text-xs opacity-50`},At={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5 lg:hidden`},jt={class:`flex items-center gap-2 text-sm`},Mt={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},Nt={class:`flex items-center gap-2 text-sm`},Pt={value:`overview`},Ft={value:`proxies`},It={value:`connections`},Lt={value:`rules`},Rt={value:`logs`},zt={value:`config`},Bt={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},Vt={class:`flex items-center gap-2 text-sm`},Ht={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},Ut={class:`flex items-center gap-2 text-sm`},Wt={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},Gt={class:`flex items-center gap-2 text-sm`},Kt={class:`pl-4 text-sm opacity-70`},qt={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},Jt={class:`flex items-center gap-2 text-sm`},Yt={class:`pl-4 text-sm opacity-70`},Xt={class:`divider my-2 text-xs opacity-40`},Zt={class:`divider my-2 text-xs opacity-40`},Qt={class:`flex flex-col gap-2`},$t={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},en={class:`flex flex-col gap-0.5`},tn={class:`text-sm`},nn={class:`text-xs opacity-50`},rn={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},an={class:`flex items-center gap-2 text-sm`},on={class:`flex items-center gap-2`},sn={class:`w-8 text-right font-mono text-xs`},cn={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},ln={class:`flex items-center gap-2 text-sm`},un={class:`flex items-center gap-2`},dn={class:`w-8 text-right font-mono text-xs`},fn={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},pn={class:`flex items-center gap-2 text-sm`},mn={class:`flex items-center gap-2`},hn={class:`w-8 text-right font-mono text-xs`},gn={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},_n={class:`flex items-center gap-2 text-sm`},vn={class:`flex items-center justify-between gap-4 rounded-lg px-2 py-1.5 transition-colors hover:bg-base-content/5`},yn={class:`flex items-center gap-2 text-sm`},bn={class:`flex items-center gap-2`},xn={class:`badge badge-neutral`},Sn={class:`flex flex-col gap-2`},Cn={class:`config-card animate-fade-slide-in-3 col-span-1 lg:col-span-2`},wn={class:`flex items-center gap-2 border-b border-base-content/5 bg-base-300/30 px-4 py-3 text-sm font-semibold`},Tn={class:`flex flex-col gap-3 p-4`},En=[`placeholder`],Dn={class:`grid grid-cols-2 gap-3 md:grid-cols-3 xl:grid-cols-5`},On={class:`pr-6`},kn={class:`pr-6`},An={class:`pr-6`},jn={class:`pr-6`},Mn={class:`pr-6`},Nn={class:`flex items-center gap-2 border-b border-base-content/5 bg-base-300/30 px-4 py-3 text-sm font-semibold`},Pn={class:`flex flex-col gap-3 p-4`},Fn={key:0,class:`mt-4 flex flex-col gap-1 rounded-xl bg-base-300/50 p-3`},In={class:`font-mono text-sm`},Ln=oe(r({__name:`config`,setup(e){let{t:r}=I(),o=_e();re({title:p(()=>r(`config`))});let s=ae(),u=se(),b=P(),x=me(),F=`v${ne().public.appVersion||`0.0.0`}`,{data:ie,isLoading:oe,isError:ce}=N(),{data:L,isLoading:le,isError:ue}=te(),de=M(),R=p(()=>L.value?.includes(`sing-box`)||!1),pe=[`Mixed`,`gVisor`,`System`,`LWIP`],z=C({name:``,type:`A`}),B=y([]),V=ee({mutationFn:async({name:e,type:t})=>(await he().get(`dns/query`,{searchParams:{name:e||`google.com`,type:t}}).json()).Answer?.map(({data:e})=>e)||[],onSuccess:e=>{B.value=e}});function H(){z.name||(B.value=[])}function U(){V.mutate({name:z.name,type:z.type})}let W=y(``);async function G(){if(W.value)try{await x.fetchRemoteConfigAPI(W.value)}catch{}}let K=C({allowLan:!1,mode:`rule`,interfaceName:``,tunEnable:!1,tunStack:`Mixed`,tunDevice:``,mixedPort:0,port:0,socksPort:0,redirPort:0,tproxyPort:0}),q=y([`rule`,`direct`,`global`]);d(ie,e=>{e&&(K.allowLan=e[`allow-lan`]||!1,K.mode=e.mode||`rule`,K.interfaceName=e[`interface-name`]||``,K.tunEnable=e.tun?.enable||!1,K.tunStack=e.tun?.stack||`Mixed`,K.tunDevice=e.tun?.device||``,K.mixedPort=e[`mixed-port`]||0,K.port=e.port||0,K.socksPort=e[`socks-port`]||0,K.redirPort=e[`redir-port`]||0,K.tproxyPort=e[`tproxy-port`]||0,q.value=e[`mode-list`]||e.modes||[`rule`,`direct`,`global`])},{immediate:!0});let ye=p(()=>[{label:r(`port`,{name:`Mixed`}),key:`mixedPort`,configKey:`mixed-port`},{label:r(`port`,{name:`HTTP`}),key:`port`,configKey:`port`},{label:r(`port`,{name:`Socks`}),key:`socksPort`,configKey:`socks-port`},{label:r(`port`,{name:`Redir`}),key:`redirPort`,configKey:`redir-port`},{label:r(`port`,{name:`TProxy`}),key:`tproxyPort`,configKey:`tproxy-port`}]);function be(e){return[`rule`,`direct`,`global`].includes(e)&&r(e)||e}function J(e,t){de.mutate({key:e,value:t})}function Y(){b.setSelectedEndpoint(``),s.push(`/setup`)}let X=p(()=>oe.value||le.value),Z=p(()=>ce.value||ue.value),Q=y(`core`);return(e,s)=>{let d=fe,p=ve,y=Se,C=ge;return a(),k(`div`,Fe,[E(X)&&!E(Z)?(a(),k(`div`,Ie,[T(`div`,Le,[s[35]||=T(`span`,{class:`loading loading-lg loading-ring text-primary`},null,-1),T(`span`,Re,O(E(r)(`config`)),1)])])):E(Z)?(a(),k(`div`,ze,[T(`div`,Be,[s[36]||=T(`div`,{class:`flex h-16 w-16 items-center justify-center rounded-full bg-error/10 text-error`},[T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-8`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`circle`,{cx:`12`,cy:`12`,r:`10`}),T(`path`,{d:`M15 9l-6 6M9 9l6 6`})])],-1),T(`div`,null,[T(`h2`,Ve,O(E(r)(`connectionError`)),1),T(`p`,He,O(E(r)(`connectionErrorDesc`)),1),T(`p`,Ue,O(E(b).currentEndpoint?.url),1)]),T(`div`,We,[T(`button`,{class:`btn btn-sm btn-primary`,onClick:s[0]||=t=>e.$router.go(0)},O(E(r)(`retry`)),1),T(`button`,{class:`btn btn-outline btn-sm btn-info`,onClick:Y},O(E(r)(`switchEndpoint`)),1)])])])):(a(),k(_,{key:2},[T(`div`,Ge,[T(`div`,Ke,[s[37]||=T(`div`,{class:`animate-pulse-subtle flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10 text-primary`},[T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-6`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`circle`,{cx:`12`,cy:`12`,r:`3`}),T(`path`,{d:`M12 1v6m0 6v10M4.22 4.22l4.24 4.24m7.08 7.08l4.24 4.24M1 12h6m6 0h10M4.22 19.78l4.24-4.24m7.08-7.08l4.24-4.24`})])],-1),T(`div`,null,[T(`h1`,qe,O(E(r)(`config`)),1),T(`p`,Je,O(E(b).currentEndpoint?.url),1)])]),l(d,{"frontend-version":F,"backend-version":E(L)||``},null,8,[`backend-version`])]),T(`div`,Ye,[T(`button`,{class:A([`tab`,{"tab-active":E(Q)===`core`}]),onClick:s[1]||=e=>Q.value=`core`},O(E(r)(`coreConfig`)),3),T(`button`,{class:A([`tab`,{"tab-active":E(Q)===`xd`}]),onClick:s[2]||=e=>Q.value=`xd`},O(E(r)(`xdConfig`)),3),E(R)?h(``,!0):(a(),k(`button`,{key:0,class:A([`tab`,{"tab-active":E(Q)===`tools`}]),onClick:s[3]||=e=>Q.value=`tools`},O(E(r)(`dnsQuery`)),3))]),T(`div`,Xe,[T(`div`,{class:A([`config-card animate-fade-slide-in-1 hidden sm:block`,{"!block":E(Q)===`core`}])},[T(`div`,Ze,[s[38]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5`})],-1),T(`span`,null,O(E(r)(`coreConfig`)),1)]),T(`div`,Qe,[T(`div`,$e,[T(`div`,et,[T(`div`,tt,[s[39]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4 opacity-60`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9`})],-1),T(`span`,null,O(E(r)(`allowLan`)),1)]),c(T(`input`,{id:`enable-allow-lan`,"onUpdate:modelValue":s[4]||=e=>E(K).allowLan=e,type:`checkbox`,class:`toggle toggle-primary`,onChange:s[5]||=e=>J(`allow-lan`,E(K).allowLan)},null,544),[[m,E(K).allowLan]])]),T(`div`,nt,[T(`div`,rt,[s[40]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4 opacity-60`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M13 2L3 14h9l-1 8 10-12h-9l1-8z`})],-1),T(`span`,null,O(E(r)(`runningMode`)),1)]),c(T(`select`,{id:`mode`,"onUpdate:modelValue":s[6]||=e=>E(K).mode=e,class:`select-bordered select w-32 select-sm`,onChange:s[7]||=e=>J(`mode`,E(K).mode)},[(a(!0),k(_,null,i(E(q),e=>(a(),k(`option`,{key:e,value:e},O(be(e)),9,it))),128))],544),[[S,E(K).mode]])]),T(`div`,at,[T(`div`,ot,[s[41]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4 opacity-60`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,ry:`2`}),T(`path`,{d:`M8 21h8M12 17v4`})],-1),T(`span`,null,O(E(r)(`outboundInterfaceName`)),1)]),c(T(`input`,{id:`interface-name`,"onUpdate:modelValue":s[8]||=e=>E(K).interfaceName=e,type:`text`,class:`input-bordered input input-sm w-32`,onChange:s[9]||=e=>J(`interface-name`,E(K).interfaceName)},null,544),[[g,E(K).interfaceName]])])]),E(R)?h(``,!0):(a(),k(_,{key:0},[s[43]||=T(`div`,{class:`divider my-2 text-xs opacity-40`},`TUN`,-1),T(`div`,st,[T(`div`,ct,[T(`div`,lt,[s[42]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4 opacity-60`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M5 12.55a11 11 0 0114.08 0M1.42 9a16 16 0 0121.16 0M8.53 16.11a6 6 0 016.95 0M12 20h.01`})],-1),T(`span`,null,O(E(r)(`enableTunDevice`)),1)]),c(T(`input`,{id:`enable-tun-device`,"onUpdate:modelValue":s[10]||=e=>E(K).tunEnable=e,type:`checkbox`,class:`toggle toggle-primary`,onChange:s[11]||=e=>J(`tun`,{enable:E(K).tunEnable})},null,544),[[m,E(K).tunEnable]])]),T(`div`,ut,[T(`div`,dt,[T(`span`,ft,O(E(r)(`tunModeStack`)),1)]),c(T(`select`,{id:`tun-ip-stack`,"onUpdate:modelValue":s[12]||=e=>E(K).tunStack=e,class:`select-bordered select w-32 select-sm`,onChange:s[13]||=e=>J(`tun`,{stack:E(K).tunStack})},[(a(),k(_,null,i(pe,e=>T(`option`,{key:e,value:e},O(e),9,pt)),64))],544),[[S,E(K).tunStack]])]),T(`div`,mt,[T(`div`,ht,[T(`span`,gt,O(E(r)(`tunDeviceName`)),1)]),c(T(`input`,{id:`device-name`,"onUpdate:modelValue":s[14]||=e=>E(K).tunDevice=e,type:`text`,class:`input-bordered input input-sm w-32`,onChange:s[15]||=e=>J(`tun`,{device:E(K).tunDevice})},null,544),[[g,E(K).tunDevice]])])]),s[44]||=T(`div`,{class:`divider my-2 text-xs opacity-40`},`PORTS`,-1),T(`div`,_t,[T(`div`,vt,[(a(!0),k(_,null,i(E(ye),e=>(a(),k(`fieldset`,{key:e.key,class:`fieldset`},[T(`label`,{class:`label text-xs opacity-70`,for:e.key},O(e.label),9,yt),c(T(`input`,{id:e.key,"onUpdate:modelValue":t=>E(K)[e.key]=t,type:`number`,class:`input-bordered input input-sm w-full font-mono`,placeholder:e.label,onChange:t=>J(e.configKey,E(K)[e.key])},null,40,bt),[[g,E(K)[e.key],void 0,{number:!0}]])]))),128))])])],64))])],2),T(`div`,{class:A([`config-card animate-fade-slide-in-2 hidden sm:block`,{"!block":E(Q)===`xd`}])},[T(`div`,xt,[s[45]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`circle`,{cx:`12`,cy:`12`,r:`10`}),T(`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01`})],-1),T(`span`,null,O(E(r)(`xdConfig`)),1)]),T(`div`,St,[T(`div`,Ct,[T(`div`,wt,[T(`div`,Tt,[T(`span`,null,O(E(r)(`enableTwemoji`)),1)]),c(T(`input`,{"onUpdate:modelValue":s[16]||=e=>E(u).enableTwemoji=e,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[m,E(u).enableTwemoji]])]),T(`div`,Et,[T(`div`,Dt,[T(`span`,Ot,O(E(r)(`enableDataUsageTracking`)),1),T(`span`,kt,O(E(r)(`enableDataUsageTrackingDesc`)),1)]),c(T(`input`,{"onUpdate:modelValue":s[17]||=e=>E(u).enableDataUsageTracking=e,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[m,E(u).enableDataUsageTracking]])]),T(`div`,At,[T(`div`,jt,[T(`span`,null,O(E(r)(`useMobileBottomNav`)),1)]),c(T(`input`,{"onUpdate:modelValue":s[18]||=e=>E(u).useMobileBottomNav=e,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[m,E(u).useMobileBottomNav]])]),T(`div`,Mt,[T(`div`,Nt,[T(`span`,null,O(E(r)(`defaultPage`)),1)]),c(T(`select`,{"onUpdate:modelValue":s[19]||=e=>E(u).defaultPage=e,class:`select-bordered select select-sm`},[T(`option`,Pt,O(E(r)(`overview`)),1),T(`option`,Ft,O(E(r)(`proxies`)),1),T(`option`,It,O(E(r)(`connections`)),1),T(`option`,Lt,O(E(r)(`rules`)),1),T(`option`,Rt,O(E(r)(`logs`)),1),T(`option`,zt,O(E(r)(`config`)),1)],512),[[S,E(u).defaultPage]])]),T(`div`,Bt,[T(`div`,Vt,[T(`span`,null,O(E(r)(`autoSwitchEndpoint`)),1)]),c(T(`input`,{"onUpdate:modelValue":s[20]||=e=>E(u).autoSwitchEndpoint=e,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[m,E(u).autoSwitchEndpoint]])]),T(`div`,Ht,[T(`div`,Ut,[T(`span`,null,O(E(r)(`autoSwitchTheme`)),1)]),c(T(`input`,{"onUpdate:modelValue":s[21]||=e=>E(u).autoSwitchTheme=e,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[m,E(u).autoSwitchTheme]])]),E(u).autoSwitchTheme?(a(),k(_,{key:0},[T(`div`,Wt,[T(`div`,Gt,[T(`span`,Kt,O(E(r)(`favDayTheme`)),1)]),l(p,{modelValue:E(u).favDayTheme,"onUpdate:modelValue":s[22]||=e=>E(u).favDayTheme=e},null,8,[`modelValue`])]),T(`div`,qt,[T(`div`,Jt,[T(`span`,Yt,O(E(r)(`favNightTheme`)),1)]),l(p,{modelValue:E(u).favNightTheme,"onUpdate:modelValue":s[23]||=e=>E(u).favNightTheme=e},null,8,[`modelValue`])])],64)):h(``,!0)]),T(`div`,Xt,O(E(r)(`shortcuts.title`,`Keyboard Shortcuts`)),1),l(y),T(`div`,Zt,O(E(r)(`recommendation.title`,`Smart Recommendation`)),1),T(`div`,Qt,[T(`div`,$t,[T(`div`,en,[T(`span`,tn,O(E(r)(`recommendation.autoSwitch`)),1),T(`span`,nn,O(E(r)(`recommendation.autoSwitchDesc`)),1)]),c(T(`input`,{"onUpdate:modelValue":s[24]||=e=>E(o).autoSwitchEnabled=e,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[m,E(o).autoSwitchEnabled]])]),T(`div`,rn,[T(`div`,an,[T(`span`,null,O(E(r)(`recommendation.latencyWeight`)),1)]),T(`div`,on,[c(T(`input`,{"onUpdate:modelValue":s[25]||=e=>E(o).scoringWeights.latency=e,type:`range`,min:`0`,max:`100`,class:`range w-24 range-primary range-xs`},null,512),[[g,E(o).scoringWeights.latency,void 0,{number:!0}]]),T(`span`,sn,O(E(o).scoringWeights.latency)+`%`,1)])]),T(`div`,cn,[T(`div`,ln,[T(`span`,null,O(E(r)(`recommendation.stabilityWeight`)),1)]),T(`div`,un,[c(T(`input`,{"onUpdate:modelValue":s[26]||=e=>E(o).scoringWeights.stability=e,type:`range`,min:`0`,max:`100`,class:`range w-24 range-secondary range-xs`},null,512),[[g,E(o).scoringWeights.stability,void 0,{number:!0}]]),T(`span`,dn,O(E(o).scoringWeights.stability)+`%`,1)])]),T(`div`,fn,[T(`div`,pn,[T(`span`,null,O(E(r)(`recommendation.successRateWeight`)),1)]),T(`div`,mn,[c(T(`input`,{"onUpdate:modelValue":s[27]||=e=>E(o).scoringWeights.successRate=e,type:`range`,min:`0`,max:`100`,class:`range w-24 range-accent range-xs`},null,512),[[g,E(o).scoringWeights.successRate,void 0,{number:!0}]]),T(`span`,hn,O(E(o).scoringWeights.successRate)+`%`,1)])]),T(`div`,gn,[T(`div`,_n,[T(`span`,null,O(E(r)(`recommendation.minTestInterval`)),1)]),c(T(`input`,{"onUpdate:modelValue":s[28]||=e=>E(o).minTestInterval=e,type:`number`,min:`1`,max:`60`,class:`input-bordered input input-sm w-20 text-center`},null,512),[[g,E(o).minTestInterval,void 0,{number:!0}]])]),T(`div`,vn,[T(`div`,yn,[T(`span`,null,O(E(r)(`recommendation.excludedNodes`)),1)]),T(`div`,bn,[T(`span`,xn,O(E(o).excludedNodes.length),1),E(o).excludedNodes.length>0?(a(),k(`button`,{key:0,class:`btn btn-ghost btn-xs`,onClick:s[29]||=e=>E(o).excludedNodes=[]},O(E(r)(`clearAll`)),1)):h(``,!0)])]),l(C,{class:`mt-2 w-full btn-outline btn-warning`,onClick:s[30]||=e=>E(o).clearAllData()},{default:f(()=>[s[46]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2`})],-1),D(` `+O(E(r)(`recommendation.clearHistory`)),1)]),_:1})]),s[49]||=T(`div`,{class:`divider my-2 text-xs opacity-40`},`ENDPOINT`,-1),T(`div`,Sn,[l(C,{class:`w-full btn-outline btn-info`,onClick:Y},{default:f(()=>[s[47]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M16 3h5v5M4 20L21 3M21 16v5h-5M15 15l6 6M4 4l5 5`})],-1),D(` `+O(E(r)(`switchEndpoint`)),1)]),_:1}),l(C,{class:`w-full btn-outline btn-error`,onClick:s[31]||=e=>E(u).resetXdConfig()},{default:f(()=>[s[48]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M3 12a9 9 0 109-9 9.75 9.75 0 00-6.74 2.74L3 8`}),T(`path`,{d:`M3 3v5h5`})],-1),D(` `+O(E(r)(`resetSettings`)),1)]),_:1})])])],2),T(`div`,Cn,[T(`div`,wn,[s[50]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z`})],-1),T(`span`,null,O(E(r)(`coreConfig`))+` - Actions`,1)]),T(`div`,Tn,[T(`form`,{class:`flex flex-col gap-2 sm:flex-row`,onSubmit:w(G,[`prevent`])},[c(T(`input`,{"onUpdate:modelValue":s[32]||=e=>v(W)?W.value=e:null,type:`text`,inputmode:`url`,class:`input-bordered input h-10 min-h-10 flex-1 appearance-none px-3`,placeholder:E(r)(`remoteConfigURLPlaceholder`)},null,8,En),[[g,E(W)]]),l(C,{type:`submit`,class:`btn-secondary`,loading:E(x).fetchingRemoteConfig.value,disabled:!E(W)},{default:f(()=>[s[51]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3`})],-1),D(` `+O(E(r)(`fetchRemoteConfig`)),1)]),_:1},8,[`loading`,`disabled`])],32),s[57]||=T(`div`,{class:`divider my-3`},null,-1),T(`div`,Dn,[l(C,{class:`btn-primary`,loading:E(x).reloadingConfigFile.value,onClick:E(x).reloadConfigFileAPI},{default:f(()=>[s[52]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M23 4v6h-6M1 20v-6h6M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15`})],-1),l(E($),{"animate-on-overflow-only":!0,duration:10,delay:2,clone:!1,"pause-on-hover":!0,class:`w-full flex-1 overflow-hidden`},{default:f(()=>[T(`span`,On,O(E(r)(`reloadConfig`)),1)]),_:1})]),_:1},8,[`loading`,`onClick`]),l(C,{class:`btn-warning`,loading:E(x).restartingBackend.value,onClick:E(x).restartBackendAPI},{default:f(()=>[s[53]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`polygon`,{points:`5 3 19 12 5 21 5 3`})],-1),l(E($),{"animate-on-overflow-only":!0,duration:10,delay:2,clone:!1,"pause-on-hover":!0,class:`w-full flex-1 overflow-hidden`},{default:f(()=>[T(`span`,kn,O(E(r)(`restartCore`)),1)]),_:1})]),_:1},8,[`loading`,`onClick`]),l(C,{class:`btn-accent`,loading:E(x).flushingFakeIPData.value,onClick:E(x).flushFakeIPDataAPI},{default:f(()=>[s[54]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`path`,{d:`M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z`})],-1),l(E($),{"animate-on-overflow-only":!0,duration:10,delay:2,clone:!1,"pause-on-hover":!0,class:`w-full flex-1 overflow-hidden`},{default:f(()=>[T(`span`,An,O(E(r)(`flushFakeIP`)),1)]),_:1})]),_:1},8,[`loading`,`onClick`]),l(C,{class:`btn-info`,loading:E(x).flushingDNSCache.value,onClick:E(x).flushDNSCacheAPI},{default:f(()=>[s[55]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`}),T(`path`,{d:`M21 12c0 1.66-4 3-9 3s-9-1.34-9-3`}),T(`path`,{d:`M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5`})],-1),l(E($),{"animate-on-overflow-only":!0,duration:10,delay:2,clone:!1,"pause-on-hover":!0,class:`w-full flex-1 overflow-hidden`},{default:f(()=>[T(`span`,jn,O(E(r)(`flushDNSCache`)),1)]),_:1})]),_:1},8,[`loading`,`onClick`]),E(R)?h(``,!0):(a(),j(C,{key:0,class:`btn-secondary`,loading:E(x).updatingGEODatabases.value,onClick:E(x).updateGEODatabasesAPI},{default:f(()=>[s[56]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`circle`,{cx:`12`,cy:`12`,r:`10`}),T(`path`,{d:`M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z`})],-1),l(E($),{"animate-on-overflow-only":!0,duration:10,delay:2,clone:!1,"pause-on-hover":!0,class:`w-full flex-1 overflow-hidden`},{default:f(()=>[T(`span`,Mn,O(E(r)(`updateGEODatabases`)),1)]),_:1})]),_:1},8,[`loading`,`onClick`]))])])]),E(R)?h(``,!0):(a(),k(`div`,{key:0,class:A([`config-card animate-fade-slide-in-4 col-span-1 hidden sm:block lg:col-span-2`,{"!block":E(Q)===`tools`}])},[T(`div`,Nn,[s[58]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`circle`,{cx:`11`,cy:`11`,r:`8`}),T(`path`,{d:`M21 21l-4.35-4.35`})],-1),T(`span`,null,O(E(r)(`dnsQuery`)),1)]),T(`div`,Pn,[T(`form`,{class:`flex flex-col gap-3 sm:flex-row`,onSubmit:w(U,[`prevent`])},[c(T(`input`,{"onUpdate:modelValue":s[33]||=e=>E(z).name=e,type:`text`,enterkeyhint:`search`,class:`input-bordered input h-10 min-h-10 flex-1 appearance-none px-3 font-mono`,placeholder:`google.com`,onInput:H},null,544),[[g,E(z).name]]),c(T(`select`,{"onUpdate:modelValue":s[34]||=e=>E(z).type=e,class:`select-bordered select h-10 min-h-10 w-full appearance-none px-3 sm:w-auto`},[...s[59]||=[t(`<option data-v-177461c9>A</option><option data-v-177461c9>AAAA</option><option data-v-177461c9>CNAME</option><option data-v-177461c9>TXT</option><option data-v-177461c9>MX</option><option data-v-177461c9>SRV</option><option data-v-177461c9>HTTPS</option><option data-v-177461c9>NS</option><option data-v-177461c9>DNSKEY</option><option data-v-177461c9>DS</option><option data-v-177461c9>SIG</option><option data-v-177461c9>SOA</option><option data-v-177461c9>RRSIG</option><option data-v-177461c9>RP</option>`,14)]],512),[[S,E(z).type]]),l(C,{type:`submit`,class:`btn-primary`,loading:E(V).isPending.value},{default:f(()=>[s[60]||=T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`size-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[T(`circle`,{cx:`11`,cy:`11`,r:`8`}),T(`path`,{d:`M21 21l-4.35-4.35`})],-1),D(` `+O(E(r)(`dnsQuery`)),1)]),_:1},8,[`loading`])],32),E(B).length>0?(a(),k(`div`,Fn,[(a(!0),k(_,null,i(E(B),(e,t)=>(a(),k(`div`,{key:e,class:`animate-slide-in rounded-lg bg-base-content/5 px-3 py-2`,style:n({animationDelay:`${t*50}ms`})},[T(`span`,In,O(e),1)],4))),128))])):h(``,!0)])],2))])],64))])}}}),[[`__scopeId`,`data-v-177461c9`]]);export{Ln as default};