mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-28 01:11:21 +08:00
4 lines
487 KiB
JavaScript
4 lines
487 KiB
JavaScript
var go=Object.defineProperty,vo=Object.defineProperties;var bo=Object.getOwnPropertyDescriptors;var xa=Object.getOwnPropertySymbols;var ho=Object.prototype.hasOwnProperty,_o=Object.prototype.propertyIsEnumerable;var We=(o,n,a)=>n in o?go(o,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[n]=a,st=(o,n)=>{for(var a in n||(n={}))ho.call(n,a)&&We(o,a,n[a]);if(xa)for(var a of xa(n))_o.call(n,a)&&We(o,a,n[a]);return o},vt=(o,n)=>vo(o,bo(n));var xo=(o,n)=>()=>(n||o((n={exports:{}}).exports,n),n.exports);var ve=(o,n,a)=>(We(o,typeof n!="symbol"?n+"":n,a),a);var L=(o,n,a)=>new Promise((l,u)=>{var d=g=>{try{k(a.next(g))}catch(p){u(p)}},c=g=>{try{k(a.throw(g))}catch(p){u(p)}},k=g=>g.done?l(g.value):Promise.resolve(g.value).then(d,c);k((a=a.apply(o,n)).next())});import{a as wo,c as ko,d as we,b as I,e as Q,u as e,o as r,f as s,g as t,t as i,n as ht,h as D,i as Y,r as _t,j as lt,k as Yt,w as O,v as Rt,l as Ia,m as Z,p as V,q as E,s as $t,x as Pt,y as pt,F as U,z as tt,A as at,B as jt,C as ut,D as ct,E as ke,G as ee,T as St,H as Nt,I as ft,J as xt,K as dt,L as gt,M as Bt,N as Xe,O as Ma,P as La,Q as Oa,R as ta,S as ea,U as Na,V as aa,W as Pe,X as yo,Y as oa,Z as ye,_ as Fo,$ as Eo,a0 as na,a1 as $o,a2 as Te,a3 as Co,a4 as Ie,a5 as Do,a6 as Bo,a7 as Yo,a8 as Ao,a9 as So,aa as zo,ab as Po,ac as To}from"./vendor.js?v=4c8355cf";var sT=xo(ae=>{const Io=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const c of d.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function a(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerpolicy&&(d.referrerPolicy=u.referrerpolicy),u.crossorigin==="use-credentials"?d.credentials="include":u.crossorigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=a(u);fetch(u.href,d)}};Io();const Gt={language:void 0,numberFormat:new Intl.NumberFormat("en",{notation:"compact"})},Mo=o=>L(ae,null,function*(){const n=window.vue_lang;new Date().getTime();let a={};try{const d=yield wo({url:window.vue_lang_data,method:"GET"});d.data&&(a=d.data)}catch(d){console.log(d)}const l=ko({defaultLanguage:n,mutedLanguages:["zh-cn"],translations:a,setGlobalProperties:!1,provideDirective:!1,provideComponent:!1});o.use(l),Gt.language=l;const{$gettext:u}=l;window.$i18n=u;try{Gt.numberFormat=new Intl.NumberFormat(n,{notation:"compact"})}catch(d){console.error("Intl.NumberFormat unsupported lang",n,d)}}),J=()=>{if(Gt.language)return Gt.language;throw new Error("I18N Uninitialized!")},Me=()=>({$gettext:(o,n,a)=>{if(Gt.language)return Gt.language.$gettext(o,n,a);throw new Error("I18N Uninitialized!")},$ngettext:(o,n,a,l,u)=>{if(Gt.language)return Gt.language.$ngettext(o,n,a,l,u);throw new Error("I18N Uninitialized!")}}),De=o=>typeof o=="number"?Gt.numberFormat.format(o):"?",{$gettext:Lo,$ngettext:uT}=Me(),Va=(o,n)=>L(ae,null,function*(){return new Promise((a,l)=>L(ae,null,function*(){try{const u=yield fetch(o,n);if(Math.floor(u.status/100)!=2)throw u.status+" "+u.statusText;const d=st({},u);d.data=yield u.json(),a(d)}catch(u){const d=u;l(Lo("\u7F51\u7EDC\u5F02\u5E38\uFF1A")+((d==null?void 0:d.message)||u))}}))});class ia{constructor(n){ve(this,"config",{baseURL:"",headers:{}});ve(this,"useRequest",n=>n);ve(this,"useResponse",n=>n);ve(this,"useError",n=>n);n.baseURL&&(this.config.baseURL=n.baseURL),n.headers&&(this.config.headers=n.headers)}static create(n){return new ia(n)}Do(n,a){return L(this,null,function*(){return new Promise((l,u)=>L(this,null,function*(){try{const d=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});n=`${d.baseURL||""}${n}`,a.headers==null&&(a.headers={}),d.headers&&(a.headers=st({},d.headers));const k=yield fetch(n,a),g=st({},k);g.data=yield k.json(),l(this.useResponse(g))}catch(d){this.useError(d),u(d)}}))})}TEXT(n,a){return L(this,null,function*(){return new Promise((l,u)=>L(this,null,function*(){try{const d=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});n=`${d.baseURL||""}${n}`,a.headers==null&&(a.headers={}),d.headers&&(a.headers=st({},d.headers));const k=yield fetch(n,a),g=st({},k);g.data=yield k.text(),l(g)}catch(d){this.useError(d),u(d)}}))})}interceptors(){const n=this;return{requset:{use(a){n.useRequest=a}},response:{use(a,l){n.useResponse=a,l&&(n.useError=l)}}}}}const Ga=ia.create({});Ga.interceptors().requset.use(o=>o);Ga.interceptors().response.use(o=>(o.data&&o.data.success==null&&o.data.success==0,o));const{$gettext:ja,$ngettext:cT}=Me(),Oo="/cgi-bin/luci/istore",No="/cgi-bin/luci/admin";let Ae=!1;const W=(o,n)=>(o.indexOf("//")==-1&&(o=`${Oo}${o}`),Va(o,n).then(a=>(a!=null&&a.data&&a.data.success==-1001&&a.data.error=="Forbidden"&&(Ae||(Ae=!0,alert(ja("\u767B\u5F55\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55")),location.reload())),a))),Vo=(o,n)=>(o.indexOf("//")==-1&&(o=`${No}${o}`),Va(o,n).then(a=>(a!=null&&a.data&&a.data.success==-1001&&a.data.error=="Forbidden"&&(Ae||(Ae=!0,alert(ja("\u767B\u5F55\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55")),location.reload())),a))),Go={Statistics:{GET(){return W("/u/network/statistics/",{method:"GET"})}},Status:{GET(){return W("/u/network/status/",{method:"GET"})}},Device:{List:{GET(){return W("/network/device/list/",{method:"GET"})}}},Homebox:{Enable:{POST(){return W("/network/homebox/enable/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},CheckPublickNet:{POST(o){return W("/network/checkPublicNet/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetInterfaceConfig:{GET(){return W("/network/interface/config/",{method:"GET",headers:{"Content-Type":"application/json;charset=utf-8"}})}},POSTInterfaceConfig:{POST(o){return W("/network/interface/config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},PortList:{GET(){return W("/network/port/list/",{method:"GET",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},jo={Version:{GET(){return W("/u/system/version/",{method:"GET"})}},CheckUpdate:{GET(){return W("/system/check-update/",{method:"GET"})}},AutoCheckUpdate:{POST(o){return W("/system/auto-check-update/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Reboot:{POST(){return W("/system/reboot/",{method:"POST"})}},Status:{GET(){return W("/system/status/",{method:"GET"})}}},Uo={Disk:{Status:{GET(){return W("/nas/disk/status/",{method:"GET"})}},Erase:{POST(o){return W("/nas/disk/erase",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Init:{POST:o=>W("/nas/disk/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},InitRest:{POST:o=>W("/nas/disk/initrest/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},Partition:{Format:{POST:o=>W("/nas/disk/partition/format",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},Mount:{POST:o=>W("/nas/disk/partition/mount",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Service:{Status:{GET(){return W("/u/nas/service/status/",{method:"GET"})}}},Samba:{Create:{POST(o){return W("/nas/samba/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Webdav:{Create:{POST(o){return W("/nas/webdav/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Status:{GET(){return W("/nas/webdav/status/",{method:"GET"})}}},Linkease:{Enable:{POST(){return W("/u/nas/linkease/enable",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},Sandbox:{POST(o){return W("/nas/sandbox/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetSandbox:{GET(){return W("/nas/sandbox/",{method:"GET"})}},SandboxDisks:{GET(){return W("/nas/sandbox/disks/",{method:"GET"})}},SandboxCommit:{POST(){return W("/u/nas/sandbox/commit/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify({})})}},SandboxReset:{POST(){return W("/nas/sandbox/reset/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}},SandboxExit:{POST(){return W("/nas/sandbox/exit/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},qo={Check:{POST(o){return W("/app/check/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Install:{POST(o){return W("/app/install/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Ro={Pppoe:{GET(){return W("/guide/pppoe/",{method:"GET"})},POST(o){return W("/guide/pppoe/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DnsConfig:{GET(){return W("/guide/dns-config/",{method:"GET"})},POST(o){return W("/guide/dns-config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DhcpClient:{POST(o){return W("/guide/dhcp-client/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},ClientModel:{GET(){return W("/guide/client-mode/",{method:"GET"})},POST(o){return W("/guide/client-mode/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GatewayRouter:{POST(o){return W("/guide/gateway-router/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DockerStatus:{GET(){return W("/guide/docker/status/",{method:"GET"})}},DockerPartitionList:{GET(){return W("/guide/docker/partition/list/",{method:"GET"})}},DockerTransfer:{POST(o){return W("/guide/docker/transfer/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DockerSwitch:{POST(o){return W("/guide/docker/switch/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DownloadService:{Status:{GET(){return W("/guide/download-service/status/",{method:"GET"})}}},DownloadPartition:{List:{GET(){return W("/guide/download/partition/list/",{method:"GET"})}}},Aria2Init:{POST(o){return W("/guide/aria2/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},qbitorrentInit:{POST(o){return W("/guide/qbittorrent/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},transmissionInit:{POST(o){return W("/guide/transmission/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetLan:{GET(){return W("/guide/lan/",{method:"GET"})}},LanIp:{POST(o){return W("/guide/lan/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},SoftSource:{POST(o){return W("/guide/soft-source/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetSoftSource:{GET(){return W("/guide/soft-source/",{method:"GET"})}},SoftSourceList:{GET(){return W("/guide/soft-source/list/",{method:"GET"})}},PostDdns:{POST(o){return W("/u/guide/ddns/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetDdns:{GET(){return W("/u/guide/ddns/",{method:"GET"})}},Ddnsto:{POST(o){return W("/guide/ddnsto/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DdntoConfig:{GET(){return W("/guide/ddnsto/config/",{method:"GET"})}},DdnstoAddress:{POST(o){return W("/guide/ddnsto/address/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Wo={Create:{POST(o){return W("/raid/create/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Delete:{POST(o){return W("/raid/delete/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Add:{POST(o){return W("/raid/add/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Remove:{POST(o){return W("/raid/remove/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Recover:{POST(o){return W("/raid/recover/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Detail:{POST(o){return W("/raid/detail/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},List:{GET(){return W("/raid/list/",{method:"GET"})}},CreateList:{GET(){return W("/raid/create/list/",{method:"GET"})}},Autofix:{POST(){return W("/raid/autofix/",{method:"POST"})}}},Ho={Log:{GET(){return W("/smart/log/",{method:"GET"})}},List:{GET(){return W("/u/smart/list/",{method:"GET"})}},Config:{GET(){return W("/smart/config/",{method:"GET"})},POST(o){return W("/smart/config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Test:{POST(o){return W("/u/smart/test/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},Result:{POST(o){return W("/smart/test/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Attribute:{Result:{POST(o){return W("/smart/attribute/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Extend:{Result:{POST(o){return W("/smart/extend/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}}},Jo={List:{GET(){return W("/wireless/list-iface/",{method:"GET"})}},Switch:{POST(o){return W("/wireless/enable-iface/",{body:JSON.stringify(o),method:"POST"})}},Power:{POST(o){return W("/wireless/set-device-power/",{body:JSON.stringify(o),method:"POST"})}},Edit:{POST(o){return W("/wireless/edit-iface/",{body:JSON.stringify(o),method:"POST"})}},Setup:{POST(o){return W("/wireless/setup/",{body:JSON.stringify(o),method:"POST"})}}},Zo={getInstalled:{GET(){return Vo("/store/installed/",{method:"GET"})}},needSetup:{GET(){return W("/guide/need/setup/",{method:"GET"})}},setPassword:{POST(o){return W("/system/setPassword/",{body:JSON.stringify(o),method:"POST"})}},completeGuide:{POST(){return W("/guide/finish/setup/",{method:"POST"})}}},Ko={listDevices:{GET(){return W("/lanctrl/listDevices/",{method:"GET"})}},staticDeviceConfig:{POST(o){return W("/lanctrl/staticDeviceConfig/",{body:JSON.stringify(o),method:"POST"})}},globalConfigs:{GET(){return W("/lanctrl/globalConfigs/",{method:"GET"})}},speedLimitConfig:{POST(o){return W("/lanctrl/speedLimitConfig/",{body:JSON.stringify(o),method:"POST"})}},listStaticDevices:{GET(){return W("/lanctrl/listStaticDevices/",{method:"GET"})}},listSpeedLimitedDevices:{GET(){return W("/lanctrl/listSpeedLimitedDevices/",{method:"GET"})}},dhcpGatewayConfig:{POST(o){return W("/lanctrl/dhcpGatewayConfig/",{body:JSON.stringify(o),method:"POST"})}},dhcpTagsConfig:{POST(o){return W("/lanctrl/dhcpTagsConfig/",{body:JSON.stringify(o),method:"POST"})}},enableSpeedLimit:{POST(o){return W("/lanctrl/enableSpeedLimit/",{body:JSON.stringify(o),method:"POST"})}},enableFloatGateway:{POST(o){return W("/lanctrl/enableFloatGateway/",{body:JSON.stringify(o),method:"POST"})}},speedsForDevices:{GET(){return W("/lanctrl/speedsForDevices/",{method:"GET"})}},speedsForOneDevice:{POST(o){return W("/lanctrl/speedsForOneDevice/",{body:JSON.stringify(o),method:"POST"})}}},Qo={GET(){return W("/system/module-settings/",{method:"GET"})},POST(o){return W("/system/module-settings/",{body:JSON.stringify(o),method:"POST"})}};var Xo=Object.freeze(Object.defineProperty({__proto__:null,Network:Go,System:jo,Nas:Uo,App:qo,Guide:Ro,Raid:Wo,Smart:Ho,Quickwifi:Jo,GuidePage:Zo,DeviceMangement:Ko,ModuleSettings:Qo},Symbol.toStringTag,{value:"Module"})),G=st({},Xo);const ra=we("app",{state:()=>({portitemStyle:{show:!1,left:0,top:0,portitem:{name:"",macAddress:"",linkSpeed:"",linkState:"",rx_packets:"",tx_packets:"",interfaceNames:[],master:"",duplex:""}}})});we("guide",{});const tn=we("nas",{state:()=>({webdav:{}})}),Fe=we("network",{state:()=>({status:{},deviceList:{}}),getters:{},actions:{updateNetworkStatus(o){this.status=o},requestDeviceList(){G.Network.Device.List.GET().then(o=>{if(o!=null&&o.data){const{result:n}=o==null?void 0:o.data;n&&(this.deviceList=n)}})},incrTime(){this.status.uptimeStamp&&this.status.uptimeStamp++}}}),Le=we("system",{state:()=>({version:{},checkUpdate:null,updateChecked:!1,systemStatus:{}}),getters:{},actions:{incrTime(){var o;(o=this.systemStatus)!=null&&o.uptime&&this.systemStatus.uptime++},requestVersion(){G.System.Version.GET().then(o=>{var n;(n=o==null?void 0:o.data)!=null&&n.result&&(this.version=o.data.result)})},requestCheckUpdate(){this.updateChecked||(this.updateChecked=!0,G.System.CheckUpdate.GET().then(o=>{var n;(n=o==null?void 0:o.data)!=null&&n.result&&(this.checkUpdate=o.data.result)}).finally(()=>{this.checkUpdate==null&&(this.checkUpdate={needUpdate:!1,msg:"skip"})}))},updateSystemStatus(o){this.systemStatus=o}}});let wa=!1;const en=()=>{if(wa)return;wa=!0;let o=!0,n=!0;const a=Fe(),l=Le(),u=function(){return(!o&&document.hidden?Promise.resolve():G.System.Status.GET().then(c=>{c!=null&&c.data.result&&l.updateSystemStatus(c.data.result)})).finally(()=>{setTimeout(u,5e3),o&&(setInterval(()=>{l.incrTime()},1e3),o=!1)})},d=function(){return(!n&&document.hidden?Promise.resolve():G.Network.Status.GET().then(c=>{if(c!=null&&c.data){const{result:k}=c==null?void 0:c.data;k&&a.updateNetworkStatus(k)}})).finally(()=>{setTimeout(d,5e3),n&&(setInterval(()=>{a.incrTime()},1e3),n=!1)})};d(),a.requestDeviceList(),setTimeout(()=>{l.requestVersion(),u()},1100)};var N=(o,n)=>{const a=o.__vccOpts||o;for(const[l,u]of n)a[l]=u;return a};const an=I({setup(o){const{$gettext:n,$ngettext:a}=J(),l=ra(),u=Q(()=>l.portitemStyle.portitem),d=Q(()=>l.portitemStyle.show),c=Q(()=>({bottom:`calc(100% - ${l.portitemStyle.top}px)`,left:`${l.portitemStyle.left}px`})),k=m=>{switch(m){case"full":return n("\u5168\u53CC\u5DE5");case"half":return n("\u534A\u53CC\u5DE5")}},g=m=>{l.portitemStyle.show=!0},p=m=>{l.portitemStyle.show=!1};return(m,v)=>e(d)?(r(),s("div",{key:0,class:"disk-item-tooltip",style:ht(e(c)),onMouseenter:g,onMouseleave:p},[t("div",null,i(k(e(u).duplex)),1),t("div",null,i(e(n)("\u540D\u79F0\uFF1A"))+i(e(u).name||"--"),1),t("div",null,i(e(n)("MAC\uFF1A"))+i(e(u).macAddress||"--"),1),t("div",null,i(e(n)("\u63A5\u6536\uFF1A"))+i(e(u).rx_packets||"--"),1),t("div",null,i(e(n)("\u53D1\u9001\uFF1A"))+i(e(u).tx_packets||"--"),1)],36)):D("",!0)}});var on=N(an,[["__scopeId","data-v-0698ba82"]]);const nn={id:"main"},rn=I({setup(o){return(n,a)=>{const l=_t("router-view");return r(),s("div",nn,[Y(l),Y(on)])}}});var sn=N(rn,[["__scopeId","data-v-9bc295c2"]]);const dn={},ln={t:"1640593669834",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"54870",width:"128",height:"128"},un=t("path",{d:"M148.7872 57.4464h177.152c64.9216 0 118.0672 53.1456 118.0672 118.0672v295.2192H148.7872C83.8656 470.7328 30.72 417.5872 30.72 352.5632v-177.152C30.72 110.592 83.8656 57.4464 148.7872 57.4464z m0 531.3536h295.2192v295.2192c0 64.9216-53.1456 118.0672-118.0672 118.0672h-177.152C83.8656 1001.984 30.72 948.9408 30.72 883.9168v-177.152C30.72 641.9456 83.8656 588.8 148.7872 588.8z m0 0M768.7168 559.2064L562.0736 346.7264c-23.6544-17.7152-35.4304-53.1456-35.4304-82.6368s11.776-59.0848 35.4304-82.6368L686.08 57.4464C733.2864 10.24 810.0864 10.24 851.3536 57.4464l124.0064 124.0064c23.6544 23.6544 35.4304 53.1456 35.4304 82.6368s-11.776 59.0848-35.4304 82.6368L768.7168 559.2064z m0-478.208c-17.7152 0-29.4912 5.9392-41.3696 17.7152l-123.904 124.0064c-11.776 11.776-17.7152 23.6544-17.7152 41.3696s5.9392 29.4912 17.7152 41.3696l165.2736 165.2736 165.2736-165.2736c11.776-11.776 17.7152-23.6544 17.7152-41.3696s-5.9392-29.4912-17.7152-41.3696L809.984 98.7136c-11.776-11.776-23.552-17.7152-41.2672-17.7152z m0 0","p-id":"54871"},null,-1),cn=t("path",{d:"M562.0736 588.8h295.2192c64.9216 0 118.0672 53.1456 118.0672 118.0672v177.152c0 64.9216-53.1456 118.0672-118.0672 118.0672h-177.152c-64.9216 0-118.0672-53.1456-118.0672-118.0672V588.8z m0 0","p-id":"54872"},null,-1),pn=[un,cn];function fn(o,n){return r(),s("svg",ln,pn)}var mn=N(dn,[["render",fn]]);const gn={},vn={t:"1640598743438",class:"icon",viewBox:"0 0 1036 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"65341",width:"128",height:"128"},bn=t("path",{d:"M984.177778 432.355556l-45.511111 0c-22.755556 0-45.511111-17.066667-51.2-39.822222l-28.444444-68.266667C847.644444 312.888889 853.333333 284.444444 870.4 267.377778l34.133333-34.133333c17.066667-17.066667 17.066667-39.822222 0-56.888889l-56.888889-56.888889c-17.066667-17.066667-39.822222-17.066667-56.888889 0l-34.133333 34.133333C739.555556 170.666667 711.111111 176.355556 694.044444 164.977778L625.777778 136.533333c-22.755556-5.688889-39.822222-28.444444-39.822222-51.2L585.955556 39.822222c0-22.755556-17.066667-39.822222-39.822222-39.822222L472.177778 0C449.422222 0 432.355556 17.066667 432.355556 39.822222l0 45.511111c0 22.755556-17.066667 45.511111-39.822222 51.2L329.955556 164.977778C312.888889 176.355556 284.444444 170.666667 267.377778 153.6L233.244444 119.466667c-17.066667-17.066667-39.822222-17.066667-56.888889 0l-56.888889 56.888889c-17.066667 17.066667-17.066667 39.822222 0 56.888889l34.133333 34.133333C170.666667 284.444444 176.355556 312.888889 164.977778 329.955556L136.533333 398.222222C130.844444 415.288889 108.088889 432.355556 85.333333 432.355556l-45.511111 0C17.066667 432.355556 0 449.422222 0 472.177778l0 79.644444c0 22.755556 17.066667 39.822222 39.822222 39.822222l45.511111 0c22.755556 0 45.511111 17.066667 51.2 39.822222l28.444444 68.266667C176.355556 711.111111 170.666667 739.555556 153.6 756.622222l-34.133333 34.133333c-17.066667 17.066667-17.066667 39.822222 0 56.888889l56.888889 56.888889c17.066667 17.066667 39.822222 17.066667 56.888889 0l34.133333-34.133333C284.444444 853.333333 312.888889 847.644444 329.955556 859.022222L398.222222 887.466667c22.755556 5.688889 39.822222 28.444444 39.822222 51.2l0 45.511111c0 22.755556 17.066667 39.822222 39.822222 39.822222l79.644444 0c22.755556 0 39.822222-17.066667 39.822222-39.822222l0-45.511111c0-22.755556 17.066667-45.511111 39.822222-51.2l68.266667-28.444444c17.066667-11.377778 45.511111-5.688889 62.577778 11.377778l34.133333 34.133333c17.066667 17.066667 39.822222 17.066667 56.888889 0l56.888889-56.888889c17.066667-17.066667 17.066667-39.822222 0-56.888889l-34.133333-34.133333c-17.066667-17.066667-17.066667-45.511111-11.377778-62.577778l28.444444-68.266667c5.688889-22.755556 28.444444-39.822222 51.2-39.822222l45.511111 0c22.755556 0 39.822222-17.066667 39.822222-39.822222L1035.377778 472.177778C1024 449.422222 1006.933333 432.355556 984.177778 432.355556L984.177778 432.355556zM711.111111 512c0 108.088889-91.022222 199.111111-199.111111 199.111111-108.088889 0-199.111111-85.333333-199.111111-199.111111 0-108.088889 85.333333-199.111111 199.111111-199.111111C620.088889 312.888889 711.111111 403.911111 711.111111 512L711.111111 512zM711.111111 512","p-id":"65342"},null,-1),hn=[bn];function _n(o,n){return r(),s("svg",vn,hn)}var xn=N(gn,[["render",_n]]);const wn={},kn={t:"1640599890701",class:"icon",viewBox:"0 0 1565 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"76947",width:"128",height:"128"},yn=t("path",{d:"M1206.477959 299.331595c-27.357038 0-53.867311 3.354494-79.465683 9.151581C1078.518669 130.792698 916.428217 0 723.365689 0 492.068443 0 304.575027 187.493416 304.575027 418.790662c0 16.055976 1.074741 31.786273 2.865975 47.386299-9.184149-0.911901-18.400865-1.40042-27.812989-1.40042C125.191018 464.743973 0 589.934991 0 744.371987c0 154.469563 125.191018 279.628013 279.595446 279.628013 59.990077 0 221.233764 0 394.527575 0l0-302.295274L496.986197 721.704726l285.457668-339.031868 285.457668 339.031868-177.136823 0 0 302.295274c139.748871 0 262.204185 0 315.71325 0 197.947713 0 358.40977-168.34349 358.40977-366.291203S1404.425673 299.331595 1206.477959 299.331595z","p-id":"76948"},null,-1),Fn=[yn];function En(o,n){return r(),s("svg",kn,Fn)}var $n=N(wn,[["render",En]]);const Cn={},Dn={t:"1640599792937",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"68605",width:"128",height:"128"},Bn=t("path",{d:"M512 825.6c-211.2 0-377.6-57.6-377.6-128l0 0L134.4 896l0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0 0-204.8 0 0C889.6 768 723.2 825.6 512 825.6L512 825.6z","p-id":"68606"},null,-1),Yn=t("path",{d:"M512 544c-211.2 0-377.6-57.6-377.6-128l0 0 0 204.8 0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0L889.6 416l0 0C889.6 486.4 723.2 544 512 544L512 544z","p-id":"68607"},null,-1),An=t("path",{d:"M889.6 128 889.6 128c0-70.4-166.4-128-377.6-128C300.8 0 134.4 57.6 134.4 128l0 0 0 0 0 204.8 0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0L889.6 128 889.6 128 889.6 128zM512 217.6c-153.6 0-281.6-44.8-281.6-96 0-51.2 128-96 281.6-96 153.6 0 281.6 44.8 281.6 96C793.6 179.2 665.6 217.6 512 217.6L512 217.6z","p-id":"68608"},null,-1),Sn=[Bn,Yn,An];function zn(o,n){return r(),s("svg",Dn,Sn)}var Pn=N(Cn,[["render",zn]]);const Tn={},In={t:"1640575557247",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4211",width:"128",height:"128"},Mn=t("path",{d:"M560 800l-10.464-416h-75.072L464 800h96z m-14.144-493.984c9.44-9.312 14.144-20.672 14.144-34.016 0-13.6-4.704-24.992-14.144-34.208A46.784 46.784 0 0 0 512 224c-13.12 0-24.448 4.608-33.856 13.792A45.856 45.856 0 0 0 464 272c0 13.344 4.704 24.704 14.144 34.016 9.408 9.312 20.704 13.984 33.856 13.984 13.12 0 24.448-4.672 33.856-13.984zM512 32C246.912 32 32 246.912 32 512c0 265.088 214.912 480 480 480 265.088 0 480-214.912 480-480 0-265.088-214.912-480-480-480z m0 64c229.76 0 416 186.24 416 416s-186.24 416-416 416S96 741.76 96 512 282.24 96 512 96z","p-id":"4212"},null,-1),Ln=[Mn];function On(o,n){return r(),s("svg",In,Ln)}var Nn=N(Tn,[["render",On]]);const Vn={},Gn={t:"1640681742480",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"80687",width:"128",height:"128"},jn=t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"80688"},null,-1),Un=t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"80689"},null,-1),qn=t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"80690"},null,-1),Rn=t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"80691"},null,-1),Wn=t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"80692"},null,-1),Hn=t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"80693"},null,-1),Jn=t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"80694"},null,-1),Zn=t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"80695"},null,-1),Kn=t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"80696"},null,-1),Qn=t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"80697"},null,-1),Xn=t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80698"},null,-1),ti=t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"80699"},null,-1),ei=t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80700"},null,-1),ai=t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"80701"},null,-1),oi=t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80702"},null,-1),ni=t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"80703"},null,-1),ii=t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"80704"},null,-1),ri=t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"80705"},null,-1),si=t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"80706"},null,-1),di=[jn,Un,qn,Rn,Wn,Hn,Jn,Zn,Kn,Qn,Xn,ti,ei,ai,oi,ni,ii,ri,si];function li(o,n){return r(),s("svg",Gn,di)}var ui=N(Vn,[["render",li]]);const ci={},pi={t:"1640775712185",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2996",width:"128",height:"128"},fi=t("path",{d:"M894.185422 128.023792 129.814578 445.743994 445.99982 577.744353 571.860343 893.929596Z","p-id":"2997"},null,-1),mi=[fi];function gi(o,n){return r(),s("svg",pi,mi)}var vi=N(ci,[["render",gi]]);const bi={class:"progress"},hi=I({props:{value:{type:Number,required:!0},text:{type:String}},setup(o){const n=o,a=Q(()=>n.value>=80?"#e45e5e":n.value>=70?"#ff9800":n.value>=60?"#297ff3":n.value>0?"#53c31b":"");return(l,u)=>(r(),s("div",bi,[t("div",{class:lt(["progress-value",`${o.value>50}`]),style:ht({width:`${o.value}%`,backgroundColor:e(a)})},[t("span",null,i(o.text),1)],6),Yt(l.$slots,"default",{},void 0,!0)]))}});var Ua=N(hi,[["__scopeId","data-v-733828e1"]]);const _i={},xi={height:"32",width:"64",t:"1649907260906",viewBox:"-8 248 1045 537",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2793","xmlns:xlink":"http://www.w3.org/1999/xlink"},wi=t("path",{d:"M764.904497 251.418146 259.086289 251.418146c-143.076626 0-259.065314 115.989711-259.065314 259.065314 0 143.077649 115.988688 259.063267 259.065314 259.063267l505.818207 0c143.074579 0 259.063267-115.985618 259.063267-259.063267C1023.967764 367.407857 907.980099 251.418146 764.904497 251.418146zM764.904497 747.164974c-130.507356 0-236.682537-106.175181-236.682537-236.682537S634.397141 273.798876 764.904497 273.798876s236.683561 106.176205 236.683561 236.683561S895.411853 747.164974 764.904497 747.164974z","p-id":"2794",fill:"#52C41A"},null,-1),ki=[wi];function yi(o,n){return r(),s("svg",xi,ki)}var Fi=N(_i,[["render",yi]]);const Ei={},$i={height:"32",width:"64",t:"1649907515643",viewBox:"-8 248 1045 537",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2971","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ci=t("path",{d:"M764.867148 249.793136 259.0735 249.793136c-143.070486 0-259.052011 115.984594-259.052011 259.052011 0 143.07151 115.982548 259.050987 259.052011 259.050987l505.793648 0c143.067416 0 259.050987-115.979478 259.050987-259.050987C1023.917112 365.778754 907.933541 249.793136 764.867148 249.793136zM259.0735 745.516428c-130.501216 0-236.671281-106.172111-236.671281-236.671281 0-130.501216 106.170065-236.671281 236.671281-236.671281S495.744781 378.344954 495.744781 508.84617C495.744781 639.34534 389.574716 745.516428 259.0735 745.516428z","p-id":"2972",fill:"#999"},null,-1),Di=[Ci];function Bi(o,n){return r(),s("svg",$i,Di)}var Yi=N(Ei,[["render",Bi]]);const Ai={class:"checkbox_switch"},Si={class:"checkbox_switch_on"},zi={class:"checkbox_switch_off"},Pi=I({props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(o,{emit:n}){const a=o,l=Q({get:()=>a.modelValue.valueOf(),set:u=>n("update:modelValue",u)});return(u,d)=>(r(),s("label",Ai,[O(t("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=c=>Ia(l)?l.value=c:null)},null,512),[[Rt,e(l)]]),t("span",Si,[Y(Fi)]),t("span",zi,[Y(Yi)]),Yt(u.$slots,"default",{},void 0,!0)]))}});var qa=N(Pi,[["__scopeId","data-v-76324716"]]);const Ti={},Ii={t:"1641369474206",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7685",width:"128",height:"128"},Mi=t("path",{d:"M757.76 637.44l-218.88 245.76c-14.72 16.64-40.32 16.64-54.4 0L265.6 637.44C244.48 613.76 261.12 576 293.12 576l437.76 0C762.24 576 779.52 613.76 757.76 637.44z","p-id":"7686"},null,-1),Li=[Mi];function Oi(o,n){return r(),s("svg",Ii,Li)}var Ni=N(Ti,[["render",Oi]]);const Vi={},Gi={t:"1641369492518",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7831",width:"128",height:"128"},ji=t("path",{d:"M758.4 385.92 539.52 140.16c-14.72-16.64-40.32-16.64-54.4 0L266.24 385.92C244.48 409.6 261.76 448 293.12 448l437.76 0C762.88 448 779.52 409.6 758.4 385.92z","p-id":"7832"},null,-1),Ui=[ji];function qi(o,n){return r(),s("svg",Gi,Ui)}var Ri=N(Vi,[["render",qi]]);const Wi={};function Hi(o,n){return r(),s("article",null,[Yt(o.$slots,"default",{},void 0,!0)])}var Ji=N(Wi,[["render",Hi],["__scopeId","data-v-bd286d4e"]]);const Zi={class:"cover"},Ki={class:"thumbnail"},Qi=I({emits:["click"],setup(o,{emit:n}){const a=()=>{n("click")};return(l,u)=>(r(),Z(Ji,null,{default:V(()=>[t("a",{onClick:a},[t("div",Zi,[t("div",Ki,[Yt(l.$slots,"default",{},void 0,!0)])])])]),_:3}))}});var Xi=N(Qi,[["__scopeId","data-v-123deb20"]]);const tr={class:"select-editable"},er={selected:"",value:""},ar=["value"],or={value:"useInput"},nr=["placeholder"],ir=I({props:{modelValue:{type:String,required:!0},title:{type:String,default:""},options:{type:Array,default:[]}},emits:["update:modelValue"],setup(o,{emit:n}){const a=o,{$gettext:l,$ngettext:u}=J(),d=E(""),c=E(""),k=Q({get:()=>a.modelValue.valueOf(),set:v=>n("update:modelValue",v)}),g=v=>{v===d.value||d.value==="useInput"&&v===c.value||(v===""||a.options.some(b=>b.key===v)?d.value=v:(c.value=v,d.value="useInput"))};$t(()=>a.modelValue,v=>{g(v)}),Pt(()=>{const v=k.value;g(v)});const p=v=>{d.value==="useInput"?k.value=c.value:k.value=d.value},m=v=>{k.value=c.value};return(v,b)=>(r(),s("label",null,[t("div",tr,[O(t("select",{"onUpdate:modelValue":b[0]||(b[0]=y=>d.value=y),autocomplete:"off",onChange:p},[t("option",er,i(e(l)("\u8BF7\u9009\u62E9%{title}",{title:o.title})),1),(r(!0),s(U,null,tt(o.options,(y,f)=>(r(),s("option",{value:y.key,key:f},i(y.value||y.key),9,ar))),128)),t("option",or,i(e(l)("- -\u81EA\u5B9A\u4E49- -")),1)],544),[[pt,d.value,void 0,{trim:!0}]]),d.value=="useInput"?O((r(),s("input",{key:0,type:"text","onUpdate:modelValue":b[1]||(b[1]=y=>c.value=y),required:"",placeholder:e(l)("\u8BF7\u8F93\u5165%{title}",{title:o.title}),onChange:m},null,40,nr)),[[at,c.value,void 0,{trim:!0}]]):D("",!0)])]))}});var Zt=N(ir,[["__scopeId","data-v-0b6f3a7d"]]);const rr={t:"1631799919469",class:"icon",viewBox:"0 0 1047 1047",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:"128",height:"128"},sr=I({props:{size:{type:[Number,String],default:50},color:{type:String,default:"#fff"}},setup(o){const n=a=>{if(a==null)return;if(typeof a=="number")return a+"px";const l=a.toString();return parseInt(l)+""==l?l+"px":l};return(a,l)=>(r(),s("div",{class:"quick-loading",style:ht({width:n(o.size),height:n(o.size)})},[(r(),s("svg",rr,[t("path",{d:"M522.695111 1.991111c-26.339556 0.170667-47.416889 21.475556-47.672889 48.753778-0.284444 26.453333-0.056889 52.963556-0.056889 79.445333 0 27.249778-0.369778 54.528 0.113778 81.777778 0.483556 27.050667 22.016 47.132444 49.351111 46.904889a47.786667 47.786667 0 0 0 47.729778-47.445333c0.284444-53.76 0.284444-107.52-0.028444-161.251556-0.170667-27.676444-21.902222-48.355556-49.436445-48.184889m-195.896889 88.092445c-8.334222-14.222222-21.646222-21.276444-38.314666-21.333334-35.128889 0-56.576 36.949333-38.968889 68.152889a11616.995556 11616.995556 0 0 0 78.961777 137.614222 44.942222 44.942222 0 0 0 61.838223 16.896c21.304889-12.202667 29.667556-38.968889 17.379555-60.871111-26.453333-47.104-53.560889-93.866667-80.896-140.458666m-228.693333 234.524444c44.316444 25.799111 88.746667 51.342222 133.176889 76.970667 6.712889 3.896889 13.681778 6.912 21.703111 6.428444 20.138667 0.142222 35.953778-11.946667 41.301333-31.573333 5.006222-18.261333-2.673778-36.721778-20.224-46.990222-44.629333-26.026667-89.372444-51.882667-134.115555-77.710223-22.528-12.999111-47.815111-7.025778-59.818667 13.909334-12.231111 21.248-4.977778 45.624889 17.948444 58.965333m34.161778 235.975111c26.396444 0 52.821333 0.199111 79.217778-0.085333 23.409778-0.256 39.139556-16.412444 38.798222-39.139556-0.341333-21.617778-16.924444-37.347556-39.594666-37.376-51.655111-0.056889-103.310222-0.056889-154.965334 0.028445-24.177778 0.056889-40.704 15.985778-40.561778 38.684444 0.142222 22.186667 16.583111 37.745778 40.192 37.859556 25.656889 0.142222 51.285333 0.028444 76.913778 0m151.722667 100.238222a34.247111 34.247111 0 0 0-46.876445-12.942222 13764.778667 13764.778667 0 0 0-139.008 80.583111c-11.093333 6.485333-16.327111 16.867556-16.497777 25.372444 0.085333 30.549333 27.249778 47.957333 50.403555 35.072 47.160889-26.197333 93.724444-53.475556 140.145778-80.924444 17.180444-10.154667 21.504-30.378667 11.832889-47.160889m91.875555 101.660444c-14.250667-4.067556-27.619556 1.422222-35.84 15.644445a24375.466667 24375.466667 0 0 0-77.312 134.485333c-10.012444 17.550222-5.859556 35.669333 9.784889 45.027556 16.014222 9.557333 34.247111 4.039111 44.714667-13.994667 25.543111-44.088889 50.915556-88.263111 76.373333-132.352 3.299556-5.745778 5.688889-11.690667 5.745778-14.933333 0-17.834667-9.272889-29.866667-23.466667-33.877334m147.456 44.288c-16.384 0.085333-27.306667 11.918222-27.448888 30.151111-0.142222 25.372444-0.028444 50.716444-0.028445 76.060445h-0.085333c0 26.112-0.113778 52.252444 0.056889 78.364444 0.113778 18.261333 11.064889 30.065778 27.448889 30.208 16.952889 0.142222 28.046222-11.832889 28.103111-30.748444 0.113778-51.086222 0.142222-102.172444 0.056889-153.258667 0-18.773333-11.207111-30.862222-28.103112-30.776889m177.208889-26.112c-7.509333-12.8-21.902222-16.014222-33.792-8.874666a23.722667 23.722667 0 0 0-8.533333 32.995555c26.282667 46.279111 52.906667 92.330667 79.644444 138.353778 4.494222 7.765333 11.633778 11.946667 20.906667 11.804444 18.545778-0.142222 30.520889-19.342222 21.219556-35.868444-26.026667-46.392889-52.650667-92.444444-79.473778-138.410667m239.957333-41.187555c-45.283556-26.254222-90.595556-52.48-135.964444-78.648889-4.693333-2.702222-9.728-4.323556-15.36-2.958222-9.102222 2.247111-14.933333 8.049778-16.497778 17.095111-1.877333 10.894222 3.84 18.204444 12.885333 23.438222 29.809778 17.180444 59.562667 34.417778 89.344 51.598222 15.217778 8.789333 30.236444 17.976889 45.738667 26.225778 14.677333 7.793778 31.061333-2.048 31.061333-18.033778-0.056889-8.448-4.096-14.592-11.207111-18.716444m48.867556-234.638222c-24.888889-0.085333-49.749333 0-74.609778 0v-0.085334c-25.258667 0-50.517333-0.056889-75.776 0.028445-13.425778 0.056889-20.963556 6.343111-21.162667 17.294222-0.199111 11.150222 7.082667 17.521778 20.679111 17.550222 50.488889 0.113778 100.977778 0.142222 151.495112 0.085333 13.368889 0 21.191111-6.485333 21.390222-17.152 0.227556-10.808889-8.106667-17.664-22.016-17.720888m-187.960889-127.146667c45.084444-26.026667 90.140444-52.110222 135.168-78.222222 4.864-2.844444 8.248889-6.855111 8.135111-12.942223-0.142222-11.036444-11.207111-17.436444-21.504-11.548444-45.511111 26.055111-90.851556 52.394667-136.135111 78.819556-7.68 4.494222-10.524444 11.52-5.575111 19.569777 4.835556 7.850667 12.088889 8.817778 19.911111 4.323556m-122.311111-115.114667c5.205333-0.256 8.220444-3.413333 10.609778-7.651555 4.920889-8.647111 10.040889-17.208889 14.990222-25.827556 20.48-35.555556 40.931556-71.025778 61.297778-106.609778 5.091556-8.874667 3.015111-16.668444-4.778667-18.517333-7.68-1.848889-10.894222 3.697778-14.051556 9.159111l-68.778666 119.495111c-2.844444 4.977778-6.030222 9.870222-8.305778 15.104-3.128889 7.196444 1.678222 14.648889 9.045333 14.848","p-id":"3454",style:ht({fill:o.color})},null,4)]))],4))}});var dr=N(sr,[["__scopeId","data-v-0ec4e762"]]);const lr={},ur={t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},cr=t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""},null,-1),pr=[cr];function fr(o,n){return r(),s("svg",ur,pr)}var mr=N(lr,[["render",fr]]);const gr={},vr={width:"128",height:"128",viewBox:"0 0 50 50",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},br=jt('<g id="icon_internet-alert" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="wancheng"><path d="M0,25 C0,33.9316396 4.76497292,42.1848151 12.5,46.6506351 C20.2350269,51.116455 29.7649731,51.116455 37.5,46.6506351 C45.2350271,42.1848151 50,33.9316396 50,25 C50,11.1928812 38.8071187,0 25,0 C11.1928813,0 0,11.1928812 0,25 Z" id="Path" fill-opacity="0.08" fill="#FAAD14" fill-rule="nonzero"></path><g id="Group-2" transform="translate(10.000000, 10.000000)"><path d="M0,15 C0,20.3589838 2.85898375,25.3108891 7.5,27.990381 C12.1410161,30.669873 17.8589839,30.669873 22.5,27.990381 C27.1410162,25.3108891 30,20.3589838 30,15 C30,6.7157287 23.2842712,0 15,0 C6.71572875,0 0,6.7157287 0,15 Z" id="Path" fill="#FAAD14" fill-rule="nonzero"></path><path d="M15,6 C15.8284271,6 16.5,6.67157288 16.5,7.5 L16.5,18.5 C16.5,19.3284271 15.8284271,20 15,20 C14.1715729,20 13.5,19.3284271 13.5,18.5 L13.5,7.5 C13.5,6.67157288 14.1715729,6 15,6 Z" id="\u8DEF\u5F84" fill="#FFFFFF"></path><path d="M15,25 C14.171875,25 13.5,24.328125 13.5,23.5 C13.5,22.671875 14.171875,22 15,22 C15.828125,22 16.5,22.671875 16.5,23.5 C16.5,24.328125 15.828125,25 15,25 Z" id="\u8DEF\u5F84" fill="#FFFFFF"></path></g></g></g>',1),hr=[br];function _r(o,n){return r(),s("svg",vr,hr)}var xr=N(gr,[["render",_r]]);const wr=o=>(ut("data-v-b934e2ce"),o=o(),ct(),o),kr=["href","title"],yr=wr(()=>t("svg",{t:"1684144670421",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4343"},[t("path",{d:"M512 74.666667c241.066667 0 437.333333 196.266667 437.333333 437.333333S753.066667 949.333333 512 949.333333 74.666667 753.066667 74.666667 512 270.933333 74.666667 512 74.666667zM512 704c-23.466667 0-42.666667 19.2-42.666667 42.666667s19.2 42.666667 42.666667 42.666666 42.666667-19.2 42.666667-42.666666-19.2-42.666667-42.666667-42.666667z m0-458.666667c-76.8 0-138.666667 61.866667-138.666667 138.666667 0 17.066667 14.933333 32 32 32s32-14.933333 32-32c0-40.533333 34.133333-74.666667 74.666667-74.666667s74.666667 34.133333 74.666667 74.666667c0 2.133333 0 6.4-2.133334 10.666667-6.4 14.933333-19.2 32-40.533333 51.2-10.666667 10.666667-21.333333 19.2-34.133333 27.733333-2.133333 2.133333-6.4 4.266667-8.533334 6.4l-6.4 4.266667c-8.533333 6.4-14.933333 17.066667-14.933333 27.733333v108.8c2.133333 17.066667 14.933333 29.866667 32 29.866667h2.133333c17.066667-2.133333 29.866667-14.933333 29.866667-32v-89.6l12.8-10.666667c10.666667-8.533333 19.2-17.066667 29.866667-25.6 27.733333-25.6 46.933333-49.066667 57.6-74.666667 4.266667-10.666667 6.4-23.466667 6.4-34.133333 0-76.8-61.866667-138.666667-138.666667-138.666667z",fill:"#666666","p-id":"4344"})],-1)),Fr=[yr],Er=I({props:{type:null},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>{switch(n.type){case"disk":return"https://www.linkease.com/rd/8myYAEVA/";case"store":return"https://www.linkease.com/rd/1F58VUTT/";case"docker":return"https://www.linkease.com/rd/2Q28MDtf/";case"download":return"https://www.linkease.com/rd/1tJo1KX-/";case"ddns":return"https://www.linkease.com/rd/3yFiX5-X/";case"network-interface":return"https://www.linkease.com/rd/3ca51a3G/"}});return(d,c)=>(r(),s("a",{href:e(u),target:"_blank",title:e(a)("\u8DF3\u8F6C\u6559\u7A0B")},Fr,8,kr))}});var $r=N(Er,[["__scopeId","data-v-b934e2ce"]]),Ra={install:o=>{o.component("icon-loading",dr),o.component("icon-success",mr),o.component("icon-error",xr),o.component("GlHelp",$r)}};const Cr={class:"reusable-card",role:"group"},Dr={class:"card-header"},Br={class:"left"},Yr={class:"title"},Ar={class:"settings-wrapper"},Sr={key:0,class:"settings-btn"},zr={class:"dropdown-menu"},Pr={class:"card-body"},Tr={props:{title:{type:String,required:!0},showSettings:{type:Boolean,default:!0},isSettingsMenuOpen:{type:Boolean,default:!1}},emits:["settings","update:isSettingsMenuOpen"],setup(o,{emit:n}){const a=o;J(),Pt(()=>document.addEventListener("click",u)),ke(()=>document.removeEventListener("click",u));const l=Q({get:()=>a.isSettingsMenuOpen,set:d=>n("update:isSettingsMenuOpen",d)}),u=d=>{d.target.closest(".settings-wrapper")||(l.value=!1)};return(d,c)=>(r(),s("div",Cr,[t("div",Dr,[t("div",Br,[Yt(d.$slots,"icon",{},void 0,!0),t("div",Yr,i(o.title),1)]),t("div",Ar,[o.showSettings?(r(),s("div",Sr,[Yt(d.$slots,"settings",{},void 0,!0)])):D("",!0),Y(St,{name:"fade"},{default:V(()=>[O(t("div",zr,[Yt(d.$slots,"settings-menu",{},void 0,!0)],512),[[ee,e(l)]])]),_:3})])]),t("div",Pr,[Yt(d.$slots,"default",{},void 0,!0)])]))}};var Wt=N(Tr,[["__scopeId","data-v-dbb174c6"]]);const Ir={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Mr=["fill"],Lr=["fill"],Or=["fill"],Kt=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Ir,[t("path",{d:"M665.6 911.36H358.4c-76.8 0-117.76 0-153.6-20.48-30.72-15.36-56.32-40.96-71.68-71.68-20.48-35.84-20.48-76.8-20.48-153.6v-51.2c0-20.48 15.36-40.96 40.96-40.96s40.96 15.36 40.96 40.96v51.2c0 61.44 0 97.28 10.24 117.76 10.24 15.36 20.48 30.72 40.96 40.96 20.48 10.24 56.32 10.24 117.76 10.24h307.2c61.44 0 97.28 0 117.76-10.24 15.36-10.24 30.72-20.48 40.96-40.96 10.24-20.48 10.24-56.32 10.24-117.76v-51.2c0-20.48 15.36-40.96 40.96-40.96s40.96 15.36 40.96 40.96v51.2c0 76.8 0 117.76-20.48 153.6-15.36 30.72-40.96 56.32-71.68 71.68-35.84 20.48-76.8 20.48-153.6 20.48z","p-id":"4906",fill:o.color},null,8,Mr),t("path",{d:"M512 645.12c-10.24 0-15.36 0-20.48-10.24l-204.8-204.8c-10.24-10.24-10.24-30.72 0-46.08s30.72-10.24 46.08 0l184.32 184.32 184.32-184.32c10.24-10.24 30.72-10.24 46.08 0 10.24 10.24 10.24 30.72 0 46.08l-204.8 204.8c-5.12 5.12-15.36 10.24-20.48 10.24z","p-id":"4907",fill:o.color},null,8,Lr),t("path",{d:"M512 645.12c-15.36 0-30.72-15.36-30.72-30.72V153.6c0-15.36 15.36-30.72 30.72-30.72s30.72 15.36 30.72 30.72v460.8c0 15.36-15.36 30.72-30.72 30.72z","p-id":"4908",fill:o.color},null,8,Or)]))}}),Nr={},Vr={t:"1649668202191",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2338","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"28px",height:"28px"},Gr=t("path",{d:"M288 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z","p-id":"2339",fill:"#666"},null,-1),jr=t("path",{d:"M512 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z","p-id":"2340",fill:"#666"},null,-1),Ur=t("path",{d:"M736 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z","p-id":"2341",fill:"#666"},null,-1),qr=[Gr,jr,Ur];function Rr(o,n){return r(),s("svg",Vr,qr)}var Ee=N(Nr,[["render",Rr]]);const Wr={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"128",height:"128"},Hr=["fill"],Jr=I({props:{color:{type:String,default:"#000000"}},setup(o){return(n,a)=>(r(),s("svg",Wr,[t("path",{d:"M511.232 438.8352L112.9984 40.6016A51.2 51.2 0 0 0 40.6016 112.9984L438.784 511.232 40.6016 909.4656a51.2 51.2 0 1 0 72.3968 72.448l398.2336-398.2848 398.2336 398.2848a51.2 51.2 0 1 0 72.448-72.448l-398.2848-398.2336 398.2848-398.2336A51.2 51.2 0 0 0 909.4656 40.6016L511.232 438.784z","p-id":"1217",fill:o.color},null,8,Hr)]))}}),Zr=o=>(ut("data-v-75eeccd3"),o=o(),ct(),o),Kr={id:"actioner"},Qr={key:0,class:"action-container"},Xr={class:"action-container_header"},ts=Zr(()=>t("div",null,null,-1)),es={class:"title"},as=["title"],os={class:"action-container_body"},ns=I({props:{Close:{type:Function},type:{type:Number},title:String},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!1);Pt(()=>{u.value=!0,document.body.setAttribute("lock-scroll","true")}),Nt(()=>{document.body.removeAttribute("lock-scroll")});const d=()=>{n.Close&&(u.value=!1,setTimeout(()=>{n.Close&&n.Close()},300))};return(c,k)=>(r(),s("div",Kr,[t("div",{class:"bg",onClick:d}),o.type!=null?Yt(c.$slots,"default",{key:0},void 0,!0):(r(),s(U,{key:1},[u.value?(r(),s("div",Qr,[t("div",Xr,[ts,t("div",es,i(o.title),1),t("button",{class:"close",title:e(a)("\u5173\u95ED"),onClick:d},[Y(Jr)],8,as)]),t("div",os,[Yt(c.$slots,"default",{},void 0,!0)])])):D("",!0)],64))]))}});var is=N(ns,[["__scopeId","data-v-75eeccd3"]]);const wt=I({props:{Close:{type:Function},type:{type:Number},title:String},setup(o){return(n,a)=>(r(),Z(is,{Close:o.Close,type:o.type,title:o.title},{default:V(()=>[Yt(n.$slots,"default")]),_:3},8,["Close","type","title"]))}}),sa=o=>(ut("data-v-7732abe2"),o=o(),ct(),o),rs={class:"disk-item"},ss=sa(()=>t("div",{class:"disk-item_icon"},[t("svg",{t:"1642563338465",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2216",width:"128",height:"128"},[t("path",{d:"M998.4 711.68l-119.467-512c-6.826-42.667-42.666-75.093-87.04-76.8H232.107c-44.374 1.707-80.214 35.84-87.04 78.507L25.6 711.68c-5.12 13.653-6.827 29.013-6.827 42.667 0 76.8 63.147 139.946 141.654 139.946H865.28c78.507 0 141.653-63.146 141.653-139.946 0-13.654-3.413-29.014-8.533-42.667zM394.24 366.933c1.707-51.2 56.32-92.16 124.587-92.16S640 315.733 640 365.227c44.373-1.707 81.92 23.893 83.627 58.026s-34.134 63.147-78.507 64.854h-6.827l-245.76 1.706c-44.373 0-80.213-27.306-80.213-59.733 0-35.84 37.547-63.147 81.92-63.147z m471.04 459.094H160.427c-39.254 0-69.974-30.72-69.974-69.974s32.427-69.973 69.974-69.973H865.28c39.253 0 69.973 30.72 69.973 69.973 1.707 37.547-30.72 69.974-69.973 69.974z m-35.84-92.16c-11.947 0-22.187 8.533-23.893 20.48 0 11.946 8.533 22.186 20.48 23.893h3.413c11.947 0 22.187-10.24 22.187-22.187 0-13.653-8.534-22.186-22.187-22.186z m-46.08 22.186c0-25.6 20.48-46.08 46.08-46.08s46.08 20.48 46.08 46.08-20.48 46.08-46.08 46.08-46.08-20.48-46.08-46.08z","p-id":"2217"})])],-1)),ds={class:"disk-item_f"},ls={class:"disk-item_venderModel"},us={class:"disk-item_used"},cs=sa(()=>t("div",{class:"auto"},null,-1)),ps={class:"disk-item-r"},fs={class:"disk-children"},ms=["onClick"],gs=sa(()=>t("div",{class:"disk-item_icon"},[t("svg",{t:"1642563581459",class:"icon",viewBox:"0 0 1228 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7132",width:"128",height:"128"},[t("path",{d:"M525.2096 145.3568c1.9968-45.568-35.6864-99.1232-57.4976-99.1232H57.4976C15.872 79.9232 17.8176 145.408 17.8176 145.408h507.392z",fill:"#ECC049","p-id":"7133"}),t("path",{d:"M21.8112 143.36L19.8144 825.1392c0 75.3152 75.3152 152.576 150.6304 152.576h887.9104c75.264 0 150.6304-75.264 150.6304-152.576V297.984c0-75.264-75.3152-152.576-150.6304-152.576h-434.0224L21.8112 143.36z",fill:"#FFD658","p-id":"7134"})])],-1)),vs={key:0},bs={key:1},hs=I({props:{disk:{type:Object,required:!0},currDisk:{type:Object},currMountPoint:{type:Object},onDisk:{type:Function,required:!0}},setup(o){var c,k;const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!1);n.currDisk!=null&&((c=n.currDisk)==null?void 0:c.venderModel)==((k=n.disk)==null?void 0:k.venderModel)&&(u.value=!0);const d=g=>{u.value=!u.value,n.onDisk(g,null)};return(g,p)=>{var m;return r(),s("ul",rs,[t("li",{class:lt(["disk-info",{on:o.disk.venderModel==((m=o.currDisk)==null?void 0:m.venderModel),nopoint:o.disk.childrens==null||o.disk.childrens.length==0}]),onClick:p[0]||(p[0]=v=>d(o.disk))},[ss,t("div",ds,[t("div",ls,i(o.disk.venderModel),1),t("div",us,i(o.disk.used)+"/"+i(o.disk.size),1)]),cs,t("div",ps,i(o.disk.path),1)],2),O(t("div",fs,[(r(!0),s(U,null,tt(o.disk.childrens,v=>{var b,y;return r(),s("li",{class:lt(["disk-children_item",{on:v.uuid==((b=o.currMountPoint)==null?void 0:b.uuid)&&v.path==((y=o.currMountPoint)==null?void 0:y.path)}]),onClick:f=>o.onDisk(o.disk,v)},[gs,v.mountPoint?(r(),s("span",vs," \u3010"+i(v.filesystem)+"\u3011 "+i(v.mountPoint)+" \uFF08"+i(v.used)+"/"+i(v.total)+"\uFF09 ["+i(v.uuid)+"] ",1)):(r(),s("span",bs," \u3010"+i(v.filesystem)+"\u3011 "+i(v.mountPoint||v.path||e(a)("\u672A\u6302\u8F7D\u78C1\u76D8"))+" ["+i(v.uuid)+"] ",1))],10,ms)}),256))],512),[[ee,u.value]])])}}});var ka=N(hs,[["__scopeId","data-v-7732abe2"]]);let Be=0;const _s={props:{type:String,message:String|Function,Close:Function,countdown:Number},data(){return{show:!1,remain:0}},mounted(){if(window.setTimeout(()=>{this.show=!0},0),this.countdown){this.remain=this.countdown;const o=()=>{this.show&&this.remain>0&&(this.remain=this.remain-1,Be=window.setTimeout(o,1e3))};Be=window.setTimeout(o,1e3)}},computed:{Message(){return this.message+(this.countdown?" "+this.remain+"s":"")}},methods:{Stop(){this.type!="loading"&&(this.show=!1,Be!=0&&clearTimeout(Be),this.Close())}}},Oe=o=>(ut("data-v-6935a479"),o=o(),ct(),o),xs={key:0,class:"loading icon"},ws=Oe(()=>t("svg",{t:"1631799919469",class:"icon",viewBox:"0 0 1047 1047",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:"128",height:"128"},[t("path",{d:"M522.695111 1.991111c-26.339556 0.170667-47.416889 21.475556-47.672889 48.753778-0.284444 26.453333-0.056889 52.963556-0.056889 79.445333 0 27.249778-0.369778 54.528 0.113778 81.777778 0.483556 27.050667 22.016 47.132444 49.351111 46.904889a47.786667 47.786667 0 0 0 47.729778-47.445333c0.284444-53.76 0.284444-107.52-0.028444-161.251556-0.170667-27.676444-21.902222-48.355556-49.436445-48.184889m-195.896889 88.092445c-8.334222-14.222222-21.646222-21.276444-38.314666-21.333334-35.128889 0-56.576 36.949333-38.968889 68.152889a11616.995556 11616.995556 0 0 0 78.961777 137.614222 44.942222 44.942222 0 0 0 61.838223 16.896c21.304889-12.202667 29.667556-38.968889 17.379555-60.871111-26.453333-47.104-53.560889-93.866667-80.896-140.458666m-228.693333 234.524444c44.316444 25.799111 88.746667 51.342222 133.176889 76.970667 6.712889 3.896889 13.681778 6.912 21.703111 6.428444 20.138667 0.142222 35.953778-11.946667 41.301333-31.573333 5.006222-18.261333-2.673778-36.721778-20.224-46.990222-44.629333-26.026667-89.372444-51.882667-134.115555-77.710223-22.528-12.999111-47.815111-7.025778-59.818667 13.909334-12.231111 21.248-4.977778 45.624889 17.948444 58.965333m34.161778 235.975111c26.396444 0 52.821333 0.199111 79.217778-0.085333 23.409778-0.256 39.139556-16.412444 38.798222-39.139556-0.341333-21.617778-16.924444-37.347556-39.594666-37.376-51.655111-0.056889-103.310222-0.056889-154.965334 0.028445-24.177778 0.056889-40.704 15.985778-40.561778 38.684444 0.142222 22.186667 16.583111 37.745778 40.192 37.859556 25.656889 0.142222 51.285333 0.028444 76.913778 0m151.722667 100.238222a34.247111 34.247111 0 0 0-46.876445-12.942222 13764.778667 13764.778667 0 0 0-139.008 80.583111c-11.093333 6.485333-16.327111 16.867556-16.497777 25.372444 0.085333 30.549333 27.249778 47.957333 50.403555 35.072 47.160889-26.197333 93.724444-53.475556 140.145778-80.924444 17.180444-10.154667 21.504-30.378667 11.832889-47.160889m91.875555 101.660444c-14.250667-4.067556-27.619556 1.422222-35.84 15.644445a24375.466667 24375.466667 0 0 0-77.312 134.485333c-10.012444 17.550222-5.859556 35.669333 9.784889 45.027556 16.014222 9.557333 34.247111 4.039111 44.714667-13.994667 25.543111-44.088889 50.915556-88.263111 76.373333-132.352 3.299556-5.745778 5.688889-11.690667 5.745778-14.933333 0-17.834667-9.272889-29.866667-23.466667-33.877334m147.456 44.288c-16.384 0.085333-27.306667 11.918222-27.448888 30.151111-0.142222 25.372444-0.028444 50.716444-0.028445 76.060445h-0.085333c0 26.112-0.113778 52.252444 0.056889 78.364444 0.113778 18.261333 11.064889 30.065778 27.448889 30.208 16.952889 0.142222 28.046222-11.832889 28.103111-30.748444 0.113778-51.086222 0.142222-102.172444 0.056889-153.258667 0-18.773333-11.207111-30.862222-28.103112-30.776889m177.208889-26.112c-7.509333-12.8-21.902222-16.014222-33.792-8.874666a23.722667 23.722667 0 0 0-8.533333 32.995555c26.282667 46.279111 52.906667 92.330667 79.644444 138.353778 4.494222 7.765333 11.633778 11.946667 20.906667 11.804444 18.545778-0.142222 30.520889-19.342222 21.219556-35.868444-26.026667-46.392889-52.650667-92.444444-79.473778-138.410667m239.957333-41.187555c-45.283556-26.254222-90.595556-52.48-135.964444-78.648889-4.693333-2.702222-9.728-4.323556-15.36-2.958222-9.102222 2.247111-14.933333 8.049778-16.497778 17.095111-1.877333 10.894222 3.84 18.204444 12.885333 23.438222 29.809778 17.180444 59.562667 34.417778 89.344 51.598222 15.217778 8.789333 30.236444 17.976889 45.738667 26.225778 14.677333 7.793778 31.061333-2.048 31.061333-18.033778-0.056889-8.448-4.096-14.592-11.207111-18.716444m48.867556-234.638222c-24.888889-0.085333-49.749333 0-74.609778 0v-0.085334c-25.258667 0-50.517333-0.056889-75.776 0.028445-13.425778 0.056889-20.963556 6.343111-21.162667 17.294222-0.199111 11.150222 7.082667 17.521778 20.679111 17.550222 50.488889 0.113778 100.977778 0.142222 151.495112 0.085333 13.368889 0 21.191111-6.485333 21.390222-17.152 0.227556-10.808889-8.106667-17.664-22.016-17.720888m-187.960889-127.146667c45.084444-26.026667 90.140444-52.110222 135.168-78.222222 4.864-2.844444 8.248889-6.855111 8.135111-12.942223-0.142222-11.036444-11.207111-17.436444-21.504-11.548444-45.511111 26.055111-90.851556 52.394667-136.135111 78.819556-7.68 4.494222-10.524444 11.52-5.575111 19.569777 4.835556 7.850667 12.088889 8.817778 19.911111 4.323556m-122.311111-115.114667c5.205333-0.256 8.220444-3.413333 10.609778-7.651555 4.920889-8.647111 10.040889-17.208889 14.990222-25.827556 20.48-35.555556 40.931556-71.025778 61.297778-106.609778 5.091556-8.874667 3.015111-16.668444-4.778667-18.517333-7.68-1.848889-10.894222 3.697778-14.051556 9.159111l-68.778666 119.495111c-2.844444 4.977778-6.030222 9.870222-8.305778 15.104-3.128889 7.196444 1.678222 14.648889 9.045333 14.848","p-id":"3454"})],-1)),ks=[ws],ys={key:1,class:"success icon"},Fs=Oe(()=>t("svg",{t:"1632451272305",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2204",width:"128",height:"128"},[t("path",{d:"M1001.305115 275.874141 431.461709 845.718571c-28.221762 28.221762-73.977875 28.221762-102.20066 0L22.661116 539.116591c-28.222785-28.221762-28.222785-73.979922 0-102.20066 28.221762-28.221762 73.977875-28.221762 102.20066 0l255.500115 255.502162 518.743588-518.743588c28.221762-28.221762 73.977875-28.221762 102.199637 0C1029.5279 201.89422 1029.5279 247.65238 1001.305115 275.874141z","p-id":"2205"})],-1)),Es=[Fs],$s={key:2,class:"error icon"},Cs=Oe(()=>t("svg",{t:"1632451325789",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2204",width:"128",height:"128"},[t("path",{d:"M823.04 840.32 524.16 540.16l296.32-294.4c12.8-12.8 12.8-33.28 0-45.44-12.8-12.8-33.28-12.8-46.08 0L478.08 494.08 184.96 200.32c-12.8-12.8-33.28-12.8-45.44 0s-12.8 33.28 0 45.44l292.48 293.76-302.72 300.8c-12.8 12.8-12.8 33.28 0 45.44 12.8 12.8 33.28 12.8 46.08 0l302.72-300.16 299.52 300.16c12.8 12.8 33.28 12.8 45.44 0C835.2 873.6 835.2 853.12 823.04 840.32z","p-id":"2205"})],-1)),Ds=[Cs],Bs={key:3,class:"warning icon"},Ys=Oe(()=>t("svg",{t:"1632451401172",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1638",width:"128",height:"128"},[t("path",{d:"M512 1021.45211835a60.32985613 60.32985613 0 1 1 60.32985613-60.32985611 60.32985613 60.32985613 0 0 1-60.32985613 60.32985611z m86.85823451-924.97400238L572.32985613 719.80283775a60.32985613 60.32985613 0 0 1-120.65971226 0l-26.52837838-623.32472178c-0.16758294-2.22885301-0.28489098-4.49122263-0.284891-6.78710881a87.14312551 87.14312551 0 0 1 174.28625102 0c0 2.2958862-0.11730806 4.5582558-0.284891 6.78710881z","p-id":"1639"})],-1)),As=[Ys];function Ss(o,n,a,l,u,d){return r(),Z(St,{name:"el-fade-in-linear"},{default:V(()=>[u.show?(r(),s("div",{key:0,class:"toast",onClick:n[1]||(n[1]=c=>d.Stop())},[a.type=="loading"?(r(),s("div",xs,ks)):a.type=="success"?(r(),s("div",ys,Es)):a.type=="error"?(r(),s("div",$s,Ds)):a.type=="warning"?(r(),s("div",Bs,As)):D("",!0),t("div",{class:"message",onClick:n[0]||(n[0]=ft(()=>{},["stop"]))},i(d.Message),1)])):D("",!0)]),_:1})}var zs=N(_s,[["render",Ss],["__scopeId","data-v-6935a479"]]);const _e=new Map,oe=o=>{const n=xt(zs,vt(st({},o),{Close:()=>{l()}})),a=document.createElement("div");document.body.append(a),n.mount(a);const l=()=>{a.remove(),_e.get(n._uid)&&_e.delete(n._uid)};return o.type=="loading"&&_e.set(n._uid,{Close:l}),(o==null?void 0:o.duration)==0||((o==null?void 0:o.duration)>0?setTimeout(()=>{l()},o==null?void 0:o.duration):setTimeout(()=>{l()},3e3)),{Close:l}},$=o=>oe(o);$.Loading=(o,n)=>oe({type:"loading",message:o||"\u52A0\u8F7D\u4E2D...",duration:0,countdown:n||0});$.Success=o=>oe({type:"success",message:o});$.Error=o=>oe({type:"error",message:o,duration:0});$.Warning=o=>oe({type:"warning",message:o});$.Message=o=>oe({message:o});$.Clear=()=>{_e.forEach((o,n)=>{o.Close(),_e.delete(n)})};const da=o=>(ut("data-v-d72e7026"),o=o(),ct(),o),Ps=["onSubmit"],Ts={class:"action-header"},Is={class:"action-header_title"},Ms={class:"action-body"},Ls={class:"disk-info"},Os=da(()=>t("div",{class:"disk-info_icon"},[t("svg",{t:"1642589762094",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11301",width:"128",height:"128"},[t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"11302"}),t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"11303"}),t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"11304"}),t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"11305"}),t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"11306"}),t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"11307"}),t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"11308"}),t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"11309"}),t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"11310"}),t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"11311"}),t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11312"}),t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11313"}),t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11314"}),t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11315"}),t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11316"}),t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"11317"}),t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"11318"}),t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"11319"}),t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"11320"})])],-1)),Ns={key:0,class:"disk-info_mount-name"},Vs={key:1,class:"disk-info_mount-name"},Gs={key:0,class:"label-item"},js={class:"label-item_key"},Us={class:"label-item_path"},qs={class:"label-item"},Rs={class:"label-item_key"},Ws={class:"label-item_value"},Hs=["disabled"],Js={key:0,value:""},Zs={value:"format"},Ks={key:1,value:"default"},Qs={class:"label-item_value"},Xs={key:0,class:"msg"},td={key:1,class:"msg"},ed={class:"action-footer"},ad=da(()=>t("div",{class:"auto"},null,-1)),od=["disabled"],nd=["disabled"],id={key:1,class:"action result"},rd={class:"action-body"},sd=da(()=>t("div",{class:"action-body_icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),dd={class:"action-body_msg"},ld={key:0,class:"action-body_info"},ud={key:1,class:"action-body_info"},cd={class:"btns"},pd=I({props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.Close&&n.Close()},d=x=>{x.preventDefault(),n.Cancel&&n.Cancel(),u()},c=x=>{n.Next&&n.Next(x),u()},k=E(!1),g=E(0),p=x=>{g.value=x},m=E(n.action=="nas"?"":"format"),v=E(),b=E(),y=()=>{switch(m.value){case"format":F();return;case"default":f();return;default:$.Warning(a("\u8BF7\u9009\u62E9\u9009\u9879"));return}},f=()=>{let x="";const C=n.mount;if(C!=null&&C.mountPoint!=null&&(x=C.mountPoint),x!=""){c(x);return}$.Warning(a("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84"))},F=()=>{const x=n.disk,C=n.mount;if(C){const S=C.mountPoint||C.path;if(!confirm(a("\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A %{partname} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C",{partname:S||""}))||!confirm(a("\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 %{partname}?",{partname:S||""})))return;h(C);return}if(x){if(!confirm(a("\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 %{model} \u786C\u76D8\u5E76\u521B\u5EFA\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C",{model:x.venderModel||""}))||!confirm(a("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?")))return;w(x);return}$.Warning(a("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E"))},w=x=>L(this,null,function*(){if(x.name==null||x.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0"));return}if(x.path==null||x.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84"));return}k.value=!0;const C=$.Loading(a("\u521D\u59CB\u5316\u4E2D..."));try{const S=yield G.Nas.Disk.Init.POST({name:x.name,path:x.path});if(S!=null&&S.data){const{result:A,error:z}=S==null?void 0:S.data;z&&$.Warning(z),A&&(A.errorInfo?$.Warning(A.errorInfo):($.Success(a("\u521D\u59CB\u5316\u6210\u529F")),A.childrens&&A.childrens.length>0&&(b.value=A.childrens[0]),v.value=A,p(1)))}}catch(S){$.Error(S)}C.Close(),k.value=!1}),h=x=>L(this,null,function*(){if(x.path==null||x.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84"));return}k.value=!0;const C=$.Loading(a("\u683C\u5F0F\u5316\u4E2D..."));try{const S=yield G.Nas.Disk.Partition.Format.POST({path:x.path,uuid:x.uuid,mountPoint:x.mountPoint});if(S!=null&&S.data){const{result:A,error:z}=S==null?void 0:S.data;z&&$.Warning(z),A&&($.Success(a("\u683C\u5F0F\u5316\u6210\u529F")),b.value=A,p(1))}}catch(S){$.Error(S)}C.Close(),k.value=!1}),_=()=>{if(b.value&&b.value.mountPoint){c(b.value.mountPoint);return}$.Warning(a("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25"))};return(x,C)=>(r(),Z(wt,{type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>{var S;return[g.value==0?(r(),s("form",{key:0,class:"action format",onSubmit:ft(y,["prevent"])},[t("div",Ts,[t("div",Is,i(e(a)("\u786C\u76D8\u914D\u7F6E")),1)]),t("div",Ms,[t("div",Ls,[Os,o.mount?(r(),s("div",Ns,[t("span",null,"\u3010"+i(o.mount.total)+"\u3011",1),t("span",null,i(o.mount.mountPoint||o.mount.path),1)])):o.disk?(r(),s("div",Vs,[t("span",null,"\u3010"+i(o.disk.size)+"\u3011",1),t("span",null,i(o.disk.venderModel),1)])):D("",!0)]),o.mount?(r(),s("div",Gs,[t("div",js,[t("span",null,i(e(a)("\u76EE\u6807\u5206\u533A")),1)]),t("div",Us,i(o.mount.mountPoint||o.mount.path)+"\uFF08"+i(o.mount.total)+"\uFF09",1)])):D("",!0),t("div",qs,[t("div",Rs,[t("span",null,i(e(a)("\u683C\u5F0F\u5316\u9009\u9879")),1)]),t("div",Ws,[O(t("select",{"onUpdate:modelValue":C[0]||(C[0]=A=>m.value=A),required:"",disabled:o.action=="disk"},[o.mount!=null?(r(),s("option",Js,i(e(a)("\u8BF7\u9009\u62E9\u9009\u9879")),1)):D("",!0),t("option",Zs,i(e(a)("\u683C\u5F0F\u5316")),1),o.mount!=null?(r(),s("option",Ks,i(e(a)("\u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF")),1)):D("",!0)],8,Hs),[[pt,m.value]])]),t("div",Qs,[m.value=="format"?(r(),s("p",Xs,i(e(a)("\u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF")),1)):m.value=="default"?(r(),s("p",td)):D("",!0)])])]),t("div",ed,[ad,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:d,type:"button",disabled:k.value},i(e(a)("\u8FD4\u56DE")),9,od),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:k.value},i(e(a)("\u4E0B\u4E00\u6B65")),9,nd)])],40,Ps)):g.value==1?(r(),s("div",id,[t("div",rd,[sd,t("div",dd,i(e(a)("\u683C\u5F0F\u5316\u6210\u529F")),1),v.value?(r(),s("div",ld,[dt(i(e(a)("\u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8"))+" "+i(v.value.venderModel)+" "+i(e(a)("\u5E76\u6302\u8F7D\u5230"))+" ",1),t("a",null,i((S=b.value)==null?void 0:S.mountPoint),1)])):D("",!0),b.value?(r(),s("div",ud,[dt(i(e(a)("\u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A"))+" ",1),t("a",null,i(b.value.mountPoint),1)])):D("",!0),t("div",cd,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:_},i(o.action=="nas"?e(a)("\u4E0B\u4E00\u6B65"):e(a)("\u5B8C\u6210")),1)])])])):D("",!0)]}),_:1})]),_:1}))}});var fd=N(pd,[["__scopeId","data-v-d72e7026"]]),la=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(fd,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const md=o=>(ut("data-v-0d1b6ac8"),o=o(),ct(),o),gd={class:"action list"},vd={class:"action-header"},bd={class:"action-header_title"},hd={class:"action-body"},_d={class:"disk-list"},xd={class:"action-msg"},wd={href:"/cgi-bin/luci/admin/system/diskman"},kd={class:"action-footer"},yd=md(()=>t("div",{class:"auto"},null,-1)),Fd=I({props:{Cancel:{type:Function},Next:{type:Function},Close:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!0),d=gt({disks:[],raids:[]});(()=>L(this,null,function*(){const f=yield Promise.all([G.Nas.Disk.Status.GET(),G.Raid.List.GET()]);try{if(f[0]){const F=f[0];F!=null&&F.data.result&&(d.disks=(F==null?void 0:F.data.result.disks)||[])}if(f[1]){const F=f[1];F.data.result&&(d.raids=F.data.result.disks||[])}}catch(F){$.Warning(F)}}))();const k=E(),g=E(),p=(f,F)=>{k.value=f,g.value=F},m=()=>{n.Close&&n.Close()},v=()=>{n.Cancel&&n.Cancel(),m()},b=f=>{n.Next&&n.Next(f),m()},y=()=>{if(k.value==null){$.Warning(a("\u8BF7\u9009\u62E9\u76EE\u6807\u786C\u76D8"));return}if(k.value.childrens!=null&&k.value.childrens.length>0&&g.value==null){$.Warning(a("\u8BF7\u9009\u62E9\u786C\u76D8\u5206\u533A"));return}if(g.value!=null&&(g.value.mountPoint==null||g.value.mountPoint=="")){$.Warning(a("\u8BE5\u5206\u533A\u5C1A\u672A\u6302\u8F7D\uFF0C\u8BF7\u5148\u53BB\u6302\u8F7D"));return}u.value=!1,la({action:"nas",disk:k.value,mount:g.value,Cancel:()=>{u.value=!0},Next:f=>{b(f)}})};return(f,F)=>u.value?(r(),Z(wt,{key:0,type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>[t("div",gd,[t("div",vd,[t("div",bd,i(e(a)("\u8BF7\u9009\u62E9\u4E00\u4E2A\u786C\u76D8\u6216\u5206\u533A")),1)]),t("div",hd,[t("div",_d,[(r(!0),s(U,null,tt(e(d).disks,w=>(r(),Z(ka,{disk:w,onDisk:p,currDisk:k.value,currMountPoint:g.value},null,8,["disk","currDisk","currMountPoint"]))),256)),(r(!0),s(U,null,tt(e(d).raids,w=>(r(),Z(ka,{disk:w,onDisk:p,currDisk:k.value,currMountPoint:g.value},null,8,["disk","currDisk","currMountPoint"]))),256))])]),t("div",xd,[t("span",null,[dt(i(e(a)("\u60F3\u8981\u66F4\u7CBE\u786E\u7684\u914D\u7F6E\uFF1F\u8BF7\u524D\u5F80"))+" ",1),t("a",wd,i(e(a)("\u9AD8\u7EA7\u8BBE\u7F6E")),1)])]),t("div",kd,[yd,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:v,type:"button"},i(e(a)("\u8FD4\u56DE")),1),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:y,type:"button"},i(e(a)("\u4E0B\u4E00\u6B65")),1)])])]),_:1})]),_:1})):D("",!0)}});var Ed=N(Fd,[["__scopeId","data-v-0d1b6ac8"]]),$d=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(Ed,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const Cd=o=>(ut("data-v-5f6e53be"),o=o(),ct(),o),Dd={class:"action"},Bd={class:"action-body"},Yd=Cd(()=>t("div",{class:"icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),Ad={class:"title"},Sd={class:"info"},zd=["href"],Pd={class:"btns"},Td=I({props:{Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(""),d=Q(()=>`http://${location.hostname}:${u.value}`);(()=>{G.Nas.Linkease.Enable.POST().then(g=>{var p,m;(p=g==null?void 0:g.data)!=null&&p.result&&(u.value=((m=g.data.result)==null?void 0:m.port)||"")})})();const k=()=>{n.Close&&n.Close(),location.reload()};return(g,p)=>(r(),Z(wt,{type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>[t("div",Dd,[t("div",Bd,[Yd,t("h2",Ad,i(e(a)("\u670D\u52A1\u5DF2\u542F\u52A8")),1),t("div",Sd,[t("span",null,i(e(a)("\u524D\u5F80")),1),t("a",{href:e(d),target:"_blank",rel:"noopener noreferrer"},i(e(d)),9,zd),t("span",null,i(e(a)("\u7EE7\u7EED\u914D\u7F6E")),1)]),t("div",Pd,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:k},i(e(a)("\u5173\u95ED")),1)])])])]),_:1})]),_:1}))}});var Id=N(Td,[["__scopeId","data-v-5f6e53be"]]),Md=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(Id,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const Ld=o=>(ut("data-v-2eafa10c"),o=o(),ct(),o),Od=["onSubmit"],Nd={class:"action-header"},Vd={class:"action-header_title"},Gd={class:"action-body"},jd={class:"label-item"},Ud={class:"label-item_key"},qd={class:"label-item_value"},Rd=["value"],Wd={class:"label-item"},Hd={class:"label-item_key"},Jd={class:"label-item_value"},Zd=["placeholder"],Kd={class:"label-item"},Qd={class:"label-item_key"},Xd={class:"label-item_value"},t0={class:"action-footer"},e0=Ld(()=>t("div",{class:"auto"},null,-1)),a0=["disabled"],o0=["disabled"],n0=I({props:{rootPath:{type:String,required:!0},Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=m=>{m.preventDefault(),n.Close&&n.Close()},d=E(!1),c=E({username:"root",password:"",rootPath:n.rootPath});(()=>L(this,null,function*(){const m=$.Loading(a("\u52A0\u8F7D\u4E2D..."));d.value=!0;try{const v=yield G.Nas.Webdav.Status.GET();if(v!=null&&v.data){const{result:b,error:y}=v.data;if(y){$.Warning(y);return}b&&(b.username&&(c.value.username=b.username),b.password&&(c.value.password=b.password))}}catch(v){$.Error(v)}d.value=!1,m.Close()}))();const g=()=>{const m=c.value;if(m.rootPath==""){$.Warning(a("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A"));return}if(m.username==""){$.Warning(a("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A"));return}if(m.password==""){$.Warning(a("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A"));return}p(m)},p=m=>L(this,null,function*(){d.value=!0;const v=$.Loading(a("\u521B\u5EFA\u4E2D..."));try{const b=yield G.Nas.Webdav.Create.POST(m);if(b!=null&&b.data){const{error:y,result:f}=b.data;y&&$.Warning(y),f&&($.Success(a("\u521B\u5EFA\u6210\u529F")),window.setTimeout(()=>{location.reload()},1e3))}}catch(b){$.Error(b)}v.Close(),d.value=!1});return(m,v)=>(r(),Z(wt,{type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>[t("form",{class:"action",onSubmit:ft(g,["prevent"])},[t("div",Nd,[t("div",Vd,i(e(a)("Webdav\u5171\u4EAB\u914D\u7F6E")),1)]),t("div",Gd,[t("div",jd,[t("div",Ud,[t("span",null,i(e(a)("\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")),1)]),t("div",qd,[t("input",{type:"text",value:c.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,Rd)])]),t("div",Wd,[t("div",Hd,[t("span",null,i(e(a)("\u7528\u6237\u540D")),1)]),t("div",Jd,[O(t("input",{type:"text",required:"",placeholder:e(a)("\u8D26\u53F7\u7528\u6237\u540D"),"onUpdate:modelValue":v[0]||(v[0]=b=>c.value.username=b)},null,8,Zd),[[at,c.value.username,void 0,{trim:!0}]])])]),t("div",Kd,[t("div",Qd,[t("span",null,i(e(a)("\u5BC6\u7801")),1)]),t("div",Xd,[O(t("input",{type:"password","onUpdate:modelValue":v[1]||(v[1]=b=>c.value.password=b)},null,512),[[at,c.value.password,void 0,{trim:!0}]])])])]),t("div",t0,[e0,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:u,disabled:d.value},i(e(a)("\u5173\u95ED")),9,a0),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:d.value},i(e(a)("\u521B\u5EFA")),9,o0)])],40,Od)]),_:1})]),_:1}))}});var i0=N(n0,[["__scopeId","data-v-2eafa10c"]]),r0=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(i0,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const s0={},d0={width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},l0=t("g",{id:"icon_alert",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"14",height:"14"}),t("path",{d:"M7,0.875 C3.61757813,0.875 0.875,3.61757813 0.875,7 C0.875,10.3824219 3.61757813,13.125 7,13.125 C10.3824219,13.125 13.125,10.3824219 13.125,7 C13.125,3.61757813 10.3824219,0.875 7,0.875 Z M6.5625,4.046875 C6.5625,3.98671875 6.61171875,3.9375 6.671875,3.9375 L7.328125,3.9375 C7.38828125,3.9375 7.4375,3.98671875 7.4375,4.046875 L7.4375,7.765625 C7.4375,7.82578125 7.38828125,7.875 7.328125,7.875 L6.671875,7.875 C6.61171875,7.875 6.5625,7.82578125 6.5625,7.765625 L6.5625,4.046875 Z M7,10.0625 C6.63769531,10.0625 6.34375,9.76855469 6.34375,9.40625 C6.34375,9.04394531 6.63769531,8.75 7,8.75 C7.36230469,8.75 7.65625,9.04394531 7.65625,9.40625 C7.65625,9.76855469 7.36230469,10.0625 7,10.0625 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])],-1),u0=[l0];function c0(o,n){return r(),s("svg",d0,u0)}var It=N(s0,[["render",c0]]);const{$gettext:be,$ngettext:Ye}=Me(),p0=o=>{},f0=()=>new Date().getTime(),m0=o=>{if(o<1e3)return`${o} B`;let a=1e3,l=0;for(let c=o/1e3;c>=1e3;c/=1e3)a*=1e3,l++;let u=[" KB"," MB"," GB"," TB"," PB"," EB"];return(o/100/(a/100)).toFixed(1)+u[l]},g0=o=>{if(o==null)return 0;if(o<1e4)return o;let a=parseInt(`${o/1e4}`),l=o%1e4;return`${a}\u4E07${l}`},v0=o=>{if(o)try{var n=new Date(o),a=n.getHours(),l=n.getMinutes(),u=n.getSeconds();return a<10&&(a=`0${a}`),l<10&&(l=`0${l}`),u<10&&(u=`0${u}`),`${a}:${l}:${u}`}catch(d){}return""},b0=o=>{if(o){let n=Math.floor(o/86400),a=Math.floor(o/3600)%24,l=Math.floor(o/60)%60,u=o%60;return(n>0?Ye("%{ days }\u5929","%{ days }\u5929",n,{days:De(n)}):"")+Ye("%{ hours }\u5C0F\u65F6","%{ hours }\u5C0F\u65F6",a,{hours:De(a)})+Ye("%{ minutes }\u5206","%{ minutes }\u5206",l,{minutes:De(l)})+Ye("%{ seconds }\u79D2","%{ seconds }\u79D2",u,{seconds:De(u)})}},h0=o=>/^\d+\.\d+\.\d+\.\d+$/.test(o),_0=o=>o.length<3?be("\u7528\u6237\u540D\u592A\u77ED"):o.toLowerCase()!=o?be("\u7528\u6237\u540D\u53EA\u80FD\u4E3A\u5C0F\u5199"):new RegExp("^\\d").exec(o)?be("\u7528\u6237\u540D\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934"):new RegExp("^_").exec(o)?be("\u7528\u6237\u540D\u4E0D\u80FD\u4EE5_\u5F00\u5934"):new RegExp("^[a-z0-9_]+$").exec(o)?!0:be("\u975E\u6CD5\u7684\u7528\u6237\u540D"),x0=(o,n)=>{let a=!0,l=null;const u=()=>{l=null,a&&o().finally(()=>{a&&(l=setTimeout(u,n))})};return l=setTimeout(u,0),()=>{a=!1,l!=null&&clearTimeout(l)}};var w0=Object.freeze(Object.defineProperty({__proto__:null,formatDate:p0,UnixDate:f0,byteToSize:m0,numberToSum:g0,dateForm:v0,stampForm:b0,checkIsIP:h0,checkSmabaUserName:_0,easyInterval:x0},Symbol.toStringTag,{value:"Module"})),Mt=st({},w0);const k0=o=>(ut("data-v-58844394"),o=o(),ct(),o),y0=["onSubmit"],F0={class:"action-header"},E0={class:"action-header_title"},$0={class:"action-body"},C0={class:"label-item"},D0={class:"label-item_key"},B0={class:"label-item_value"},Y0=["value"],A0={class:"label-item"},S0={class:"label-item_key"},z0={class:"label-item_value"},P0=["placeholder"],T0={class:"label-item"},I0={class:"label-item_key"},M0={class:"label-item_value"},L0=["placeholder"],O0={class:"label-item"},N0={class:"label-item_key"},V0={class:"label-item_value"},G0={class:"samba-item"},j0={class:"samba-item_allow"},U0={for:"allow",class:"samba-allow"},q0={class:"samba-item_tips"},R0={class:"tooltip-trigger"},W0={class:"samba_tip"},H0={class:"samba_dir_tip"},J0={class:"action-footer"},Z0=k0(()=>t("div",{class:"auto"},null,-1)),K0=["disabled"],Q0=["disabled"],X0=I({props:{rootPath:{type:String,required:!0},Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=p=>{p.preventDefault(),n.Close&&n.Close()},d=E(!1),c=E({shareName:"",username:"",password:"",rootPath:n.rootPath,allowLegacy:!1}),k=()=>{const p=c.value;if(p.rootPath==""){$.Warning(a("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A"));return}if(p.shareName==""){$.Warning(a("\u5171\u4EAB\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"));return}if(p.username==""){$.Warning(a("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A"));return}if(p.password==""){$.Warning(a("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A"));return}const m=Mt.checkSmabaUserName(p.username);if(m!==!0){$.Warning(`${m}`);return}g(p)},g=p=>L(this,null,function*(){d.value=!0;const m=$.Loading(a("\u521B\u5EFA\u4E2D..."));try{const v=yield G.Nas.Samba.Create.POST(p);if(v!=null&&v.data){const{error:b,result:y}=v.data;b&&$.Warning(b),y&&($.Success(a("\u521B\u5EFA\u6210\u529F")),window.setTimeout(()=>{location.reload()},1e3))}}catch(v){$.Error(v)}m.Close(),d.value=!1});return(p,m)=>(r(),Z(wt,{type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>[t("form",{class:"action",onSubmit:ft(k,["prevent"])},[t("div",F0,[t("div",E0,i(e(a)("Samba\u5171\u4EAB\u914D\u7F6E")),1)]),t("div",$0,[t("div",C0,[t("div",D0,[t("span",null,i(e(a)("\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")),1)]),t("div",B0,[t("input",{type:"text",value:c.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,Y0)])]),t("div",A0,[t("div",S0,[t("span",null,i(e(a)("\u5171\u4EAB\u540D\uFF08\u5EFA\u8BAE\u4F7F\u7528\u82F1\u6587\u5B57\u6BCD\uFF09")),1)]),t("div",z0,[O(t("input",{type:"text","onUpdate:modelValue":m[0]||(m[0]=v=>c.value.shareName=v),required:"",placeholder:e(a)("\u5171\u4EAB\u540D\u79F0")},null,8,P0),[[at,c.value.shareName,void 0,{trim:!0}]])])]),t("div",T0,[t("div",I0,[t("span",null,i(e(a)("\u7528\u6237\u540D")),1)]),t("div",M0,[O(t("input",{type:"text",required:"",placeholder:e(a)("\u8D26\u53F7\u7528\u6237\u540D"),"onUpdate:modelValue":m[1]||(m[1]=v=>c.value.username=v)},null,8,L0),[[at,c.value.username,void 0,{trim:!0}]])])]),t("div",O0,[t("div",N0,[t("span",null,i(e(a)("\u5BC6\u7801")),1)]),t("div",V0,[O(t("input",{type:"password","onUpdate:modelValue":m[2]||(m[2]=v=>c.value.password=v)},null,512),[[at,c.value.password,void 0,{trim:!0}]])])]),t("div",G0,[t("div",j0,[O(t("input",{type:"checkbox",id:"allow","onUpdate:modelValue":m[3]||(m[3]=v=>c.value.allowLegacy=v)},null,512),[[Rt,c.value.allowLegacy]]),t("label",U0,i(e(a)("\u5141\u8BB8\u65E7\u534F\u8BAE\u4E0E\u8EAB\u4EFD\u9A8C\u8BC1(\u4E0D\u5B89\u5168)")),1)]),t("div",q0,[t("span",R0,[t("span",W0,[Y(It)]),t("span",H0,i(e(a)("\u517C\u5BB9\u4E00\u4E9B\u7535\u89C6\u6216\u8005\u7535\u89C6\u76D2\u5B50")),1)])])])]),t("div",J0,[Z0,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:u,disabled:d.value},i(e(a)("\u5173\u95ED")),9,K0),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:d.value},i(e(a)("\u521B\u5EFA")),9,Q0)])],40,y0)]),_:1})]),_:1}))}});var tl=N(X0,[["__scopeId","data-v-58844394"]]),el=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(tl,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const{$gettext:te,$ngettext:pT}=Me(),zt={installApp:(o,n)=>new Promise((a,l)=>{let u=0;G.App.Install.POST({name:o}).then(()=>{const d=setTimeout(()=>{u==0&&(u=1,a(!1))},(n||60)*1e3),c=()=>{u==0&&G.App.Check.POST({name:o}).then(k=>{if(u==0&&k!=null&&k.data){const{result:g}=k.data;if((g==null?void 0:g.status)=="installed"){clearTimeout(d),u=1,a(!0);return}}}).catch(k=>{}).finally(()=>{u==0&&setTimeout(c,3e3)})};setTimeout(c,3e3)}).catch(d=>{u==0&&(u=1,l(te("\u5B89\u88C5\u5931\u8D25\uFF0C")+d))})}),checkAndInstallApp:(o,n,a)=>L(ae,null,function*(){let l=$.Loading(te("\u68C0\u67E5\u4E2D..."));try{const u=yield G.App.Check.POST({name:o});if(l.Close(),u!=null&&u.data){const{result:d,error:c}=u.data;if(c)$.Warning(c);else if(d){if(d.status=="installed")return!0;if(confirm(te("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 %{name} \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F",{name:n}))){l=$.Loading(te("\u6B63\u5728\u5B89\u88C5\u4E2D..."));const k=yield zt.installApp(a||o);if(l.Close(),k)return!0;$.Error(te("\u5B89\u88C5\u5931\u8D25\u6216\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u8F6F\u4EF6\u6E90\u6216\u7A0D\u5019\u91CD\u8BD5"))}}else $.Warning(te("\u68C0\u67E5\u63D2\u4EF6\u72B6\u6001\u5931\u8D25"))}return!1}catch(u){return l.Close(),$.Warning(u),!1}}),installAndGo:(o,n,a,l)=>L(ae,null,function*(){(yield zt.checkAndInstallApp(o,n,l))&&(location.href=a)})},Qt=o=>!Array.isArray(window.quickstart_features)||window.quickstart_features.indexOf(o)!=-1,al={key:0,class:"action"},ol={class:"title"},nl={class:"desc"},il={value:"linkease"},rl={value:"samba"},sl={value:"webdav"},dl=["innerHTML"],ll={class:"btns"},ul=["disabled"],cl=I({props:{setup:Number,Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!0),d=E("linkease"),c=E(!1),k=E(n.setup||0),g=()=>{n.Close&&n.Close()},p=()=>L(this,null,function*(){switch(d.value){case"webdav":yield m();break;case"samba":yield b();break;case"linkease":yield v();break}}),m=()=>L(this,null,function*(){c.value=!0,(yield zt.checkAndInstallApp("app-meta-gowebdav","GoWebdav"))&&y(),c.value=!1}),v=()=>L(this,null,function*(){c.value=!0,(yield zt.checkAndInstallApp("linkease",a("\u6613\u6709\u4E91"),"app-meta-linkease"))&&f(),c.value=!1}),b=()=>L(this,null,function*(){c.value=!0;const h=$.Loading(a("\u914D\u7F6E\u4E2D..."));y(),h.Close(),c.value=!1}),y=()=>{c.value=!1,u.value=!1,$d({Cancel:()=>{u.value=!0},Next:h=>{switch(d.value){case"webdav":F(h);break;case"samba":w(h);break}}})},f=()=>{Md({}),g()},F=h=>{r0({rootPath:h}),g()},w=h=>{el({rootPath:h}),g()};return(h,_)=>u.value?(r(),Z(wt,{key:0,Close:o.Close,type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>[k.value==0?(r(),s("div",al,[t("h2",ol,i(e(a)("\u6B22\u8FCE\u4F7F\u7528 NAS \u914D\u7F6E\u5411\u5BFC")),1),t("h3",nl,i(e(a)("\u8BF7\u9009\u62E9\u9700\u8981\u6DFB\u52A0\u7684NAS\u670D\u52A1")),1),t("form",null,[t("label",null,[O(t("select",{"onUpdate:modelValue":_[0]||(_[0]=x=>d.value=x)},[t("option",il,i(e(a)("\u8DE8\u8BBE\u5907\u5171\u4EAB\uFF08\u6613\u6709\u4E91\uFF09")),1),t("option",rl,i(e(a)("\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Samba\uFF09")),1),t("option",sl,i(e(a)("\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08WebDAV\uFF09")),1)],512),[[pt,d.value]])])]),e(Qt)("unishare")?(r(),s("div",{key:0,class:"tips",innerHTML:e(a)("\u5982\u9700\u5BF9 Samba \u6216 WebDAV \u8FDB\u884C\u66F4\u7EC6\u81F4\u7684\u6743\u9650\u63A7\u5236\uFF0C\u8BF7\u4F7F\u7528\u201C%{unishare}\u201D",{unishare:'<a href="/cgi-bin/luci/admin/nas/unishare">'+e(a)("\u7EDF\u4E00\u6587\u4EF6\u5171\u4EAB")+"</a>"},!0)},null,8,dl)):D("",!0),t("div",ll,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:p,type:"button",disabled:c.value},i(e(a)("\u4E0B\u4E00\u6B65")),9,ul),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:g,type:"button"},i(e(a)("\u53D6\u6D88")),1)])])):D("",!0)]),_:1})]),_:1},8,["Close"])):D("",!0)}});var pl=N(cl,[["__scopeId","data-v-1d64dea6"]]),Wa=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(pl,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const fl={class:"app-container_aria2"},ml={class:"aria2-item"},gl={class:"aria2-item_name"},vl={class:"aria2-item_value"},bl={key:0,class:"configure"},hl={key:1,class:"configure enabel"},_l={class:"aria2-item"},xl={class:"aria2-item_name"},wl={class:"aria2-item_value"},kl=["href"],yl={class:"aria2-item"},Fl={class:"aria2-item_name"},El={class:"aria2-item_value"},$l=["href"],Cl={class:"aria2-item"},Dl={class:"aria2-item_name right"},Bl={class:"aria2-item_value"},Yl=["href"],Al={class:"use-url_app"},Sl={href:"https://doc.linkease.com/zh/guide/linkease_app/tutorial.html#%E8%BF%9C%E7%A8%8B%E4%B8%8B%E8%BD%BD",target:"_blank"},zl=I({props:{aria2:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>{var c;return`${location.origin}${(c=n.aria2)==null?void 0:c.webPath}`}),d=Q(()=>{var g,p,m;let c=(g=n.aria2)==null?void 0:g.rpcToken;c?c=encodeURIComponent(btoa(c)):c="";const k=encodeURIComponent(location.hostname);return`${location.origin}${(p=n.aria2)==null?void 0:p.webPath}/#!/settings/rpc/set/http/${k}/${(m=n.aria2)==null?void 0:m.rpcPort}/jsonrpc/${c}`});return(c,k)=>{var g,p,m,v;return r(),s("ul",fl,[t("li",ml,[t("div",gl,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",vl,[((g=o.aria2)==null?void 0:g.status)=="running"?(r(),s("span",bl,i(e(a)("\u5DF2\u542F\u52A8")),1)):(r(),s("span",hl,i(e(a)("\u672A\u542F\u52A8")),1))])]),((p=o.aria2)==null?void 0:p.status)=="running"?(r(),s(U,{key:0},[t("li",_l,[t("div",xl,[t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55:")),1)]),t("div",wl,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((m=o.aria2)==null?void 0:m.downloadPath)},i((v=o.aria2)==null?void 0:v.downloadPath),9,kl)])]),t("li",yl,[t("div",Fl,[t("span",null,i(e(a)("\u7F51\u7EDC\u5730\u5740:")),1)]),t("div",El,[t("a",{href:e(u),target:"_blank",rel:"noopener noreferrer"},i(e(u)),9,$l)])]),t("li",Cl,[t("div",Dl,[t("span",null,i(e(a)("\u8BA4\u8BC1\u5931\u8D25\uFF1F")),1)]),t("div",Bl,[t("a",{href:e(d),target:"_blank",rel:"noopener noreferrer"},i(e(a)("\u70B9\u6B64\u81EA\u52A8\u914D\u7F6E AriaNg")),9,Yl)])])],64)):D("",!0),t("div",Al,[t("a",Sl,i(e(a)("\u4F7F\u7528\u6613\u6709\u4E91APP\uFF0C\u968F\u65F6\u968F\u5730\u8FDC\u7A0B\u4E0B\u8F7D")),1)])])}}});var Pl=N(zl,[["__scopeId","data-v-27ba49f9"]]);const Tl={class:"app-container_qbittorrent"},Il={class:"qbittorrent-item"},Ml={class:"qbittorrent-item_name"},Ll={class:"qbittorrent-item_value"},Ol={key:0,class:"configure"},Nl={key:1,class:"configure enabel"},Vl={class:"qbittorrent-item"},Gl={class:"qbittorrent-item_name"},jl={class:"qbittorrent-item_value"},Ul=["href"],ql={class:"qbittorrent-item"},Rl={class:"qbittorrent-item_name"},Wl={class:"qbittorrent-item_value"},Hl=["href"],Jl={class:"qbittorrent-item"},Zl={class:"qbittorrent-item_name right"},Kl={class:"qbittorrent-item_value"},Ql=I({props:{qbittorrent:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>{var d;return`http://${location.hostname}${(d=n.qbittorrent)==null?void 0:d.webPath}`});return(d,c)=>{var k,g,p,m;return r(),s("ul",Tl,[t("li",Il,[t("div",Ml,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",Ll,[((k=o.qbittorrent)==null?void 0:k.status)=="running"?(r(),s("span",Ol,i(e(a)("\u5DF2\u542F\u52A8")),1)):(r(),s("span",Nl,i(e(a)("\u672A\u542F\u52A8")),1))])]),((g=o.qbittorrent)==null?void 0:g.status)=="running"?(r(),s(U,{key:0},[t("li",Vl,[t("div",Gl,[t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55:")),1)]),t("div",jl,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((p=o.qbittorrent)==null?void 0:p.downloadPath)},i((m=o.qbittorrent)==null?void 0:m.downloadPath),9,Ul)])]),t("li",ql,[t("div",Rl,[t("span",null,i(e(a)("\u7F51\u7EDC\u5730\u5740:")),1)]),t("div",Wl,[t("a",{href:e(u),target:"_blank",rel:"noopener noreferrer"},i(e(u)),9,Hl)])]),t("li",Jl,[t("div",Zl,[t("span",null,i(e(a)("\u9ED8\u8BA4\u7528\u6237\u540D\uFF1A"))+"admin",1)]),t("div",Kl,[t("span",null,i(e(a)("\u9ED8\u8BA4\u5BC6\u7801\uFF1A"))+"adminadmin",1)])])],64)):D("",!0)])}}});var Xl=N(Ql,[["__scopeId","data-v-da46870e"]]);const tu={class:"app-container_transmission"},eu={class:"transmission-item"},au={class:"transmission-item_name"},ou={class:"transmission-item_value"},nu={key:0,class:"configure"},iu={key:1,class:"configure enabel"},ru={class:"transmission-item"},su={class:"transmission-item_name"},du={class:"transmission-item_value"},lu=["href"],uu={class:"transmission-item"},cu={class:"transmission-item_name"},pu={class:"transmission-item_value"},fu=["href"],mu=I({props:{transmission:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>{var d;return`http://${location.hostname}${(d=n.transmission)==null?void 0:d.webPath}`});return(d,c)=>{var k,g,p,m;return r(),s("ul",tu,[t("li",eu,[t("div",au,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",ou,[((k=o.transmission)==null?void 0:k.status)=="running"?(r(),s("span",nu,i(e(a)("\u5DF2\u542F\u52A8")),1)):(r(),s("span",iu,i(e(a)("\u672A\u542F\u52A8")),1))])]),((g=o.transmission)==null?void 0:g.status)=="running"?(r(),s(U,{key:0},[t("li",ru,[t("div",su,[t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55:")),1)]),t("div",du,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((p=o.transmission)==null?void 0:p.downloadPath)},i((m=o.transmission)==null?void 0:m.downloadPath),9,lu)])]),t("li",uu,[t("div",cu,[t("span",null,i(e(a)("\u7F51\u7EDC\u5730\u5740:")),1)]),t("div",pu,[t("a",{href:e(u),target:"_blank",rel:"noopener noreferrer"},i(e(u)),9,fu)])])],64)):D("",!0)])}}});var gu=N(mu,[["__scopeId","data-v-562f4f7e"]]);const vu={},bu={width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},hu=t("path",{d:"M7,0.875 C3.61757813,0.875 0.875,3.61757813 0.875,7 C0.875,10.3824219 3.61757813,13.125 7,13.125 C10.3824219,13.125 13.125,10.3824219 13.125,7 C13.125,3.61757813 10.3824219,0.875 7,0.875 Z M6.5625,4.046875 C6.5625,3.98671875 6.61171875,3.9375 6.671875,3.9375 L7.328125,3.9375 C7.38828125,3.9375 7.4375,3.98671875 7.4375,4.046875 L7.4375,7.765625 C7.4375,7.82578125 7.38828125,7.875 7.328125,7.875 L6.671875,7.875 C6.61171875,7.875 6.5625,7.82578125 6.5625,7.765625 L6.5625,4.046875 Z M7,10.0625 C6.63769531,10.0625 6.34375,9.76855469 6.34375,9.40625 C6.34375,9.04394531 6.63769531,8.75 7,8.75 C7.36230469,8.75 7.65625,9.04394531 7.65625,9.40625 C7.65625,9.76855469 7.36230469,10.0625 7,10.0625 Z",id:"\u5F62\u72B6","fill-opacity":"0.65"},null,-1),_u=[hu];function xu(o,n){return r(),s("svg",bu,_u)}var Jt=N(vu,[["render",xu]]);const wu={},ku={width:"82px",height:"82px",viewBox:"0 0 82 82",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},yu=jt('<g id="icon_finished" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="circle" transform="translate(2.000000, 2.000000)"><circle id="Oval" stroke="#553AFE" stroke-width="4" cx="39" cy="39" r="39"></circle><circle id="Oval" fill="#553AFE" cx="39.028463" cy="39.028463" r="35.028463"></circle><path d="M41.0148619,52.8014169 C39.924327,53.7754409 39.8138203,55.4674462 40.7680384,56.5806164 C41.7222564,57.6937867 43.3798562,57.8065871 44.4703911,56.8325631 L54.9654709,47.4587599 C56.1301083,46.4185505 56.1643255,44.5807064 55.0392485,43.4960788 L31.4253189,20.7311283 C30.3718273,19.7155123 28.7112257,19.7639428 27.7162614,20.8393009 C26.7212971,21.914659 26.7687429,23.6097284 27.8222345,24.6253444 L49.3379698,45.3675358 L41.0148619,52.8014169 Z" id="Shape" fill="#FFFFFF" fill-rule="nonzero" transform="translate(41.430740, 38.747628) rotate(-270.000000) translate(-41.430740, -38.747628) "></path></g></g>',1),Fu=[yu];function Eu(o,n){return r(),s("svg",ku,Fu)}var ua=N(wu,[["render",Eu]]);const Ne=o=>(ut("data-v-7b328460"),o=o(),ct(),o),$u={key:0,class:"action"},Cu={class:"title"},Du={class:"load_service input_row"},Bu={class:"left"},Yu={class:"radios"},Au=Ne(()=>t("label",{for:"Aria2"},"Aria2",-1)),Su={class:"radios"},zu=Ne(()=>t("label",{for:"qB"},"qBittorrent",-1)),Pu={class:"radios"},Tu=Ne(()=>t("label",{for:"Tr"},"Transmission",-1)),Iu=["onSubmit"],Mu={class:"input_row"},Lu={class:"left"},Ou={class:"tooltip-trigger"},Nu={class:"tooltip-text tooltip-top"},Vu={class:"dowload_dir_tip"},Gu={class:"myinput_wrap"},ju={class:"input_row"},Uu={class:"left"},qu={class:"tooltip-trigger"},Ru={class:"tooltip-text tooltip-top"},Wu={class:"dowload_dir_tip"},Hu={class:"myinput_wrap"},Ju={class:"input_row"},Zu={class:"left"},Ku={class:"tooltip-trigger"},Qu={class:"tooltip-text tooltip-bottom"},Xu={class:"dowload_rpc_tip"},tc=["placeholder"],ec={class:"input_row"},ac={class:""},oc={class:"radios"},nc={for:"default"},ic={class:"radios"},rc={for:"add"},sc={class:"input_row"},dc=Ne(()=>t("div",{class:"left"},null,-1)),lc={class:"myinput_wrap Tracker_input"},uc=["placeholder"],cc=["onSubmit"],pc={class:"input_row"},fc={class:"left"},mc={class:"tooltip-trigger"},gc={class:"tooltip-text tooltip-top"},vc={class:"dowload_dir_tip"},bc={class:"myinput_wrap"},hc={class:"input_row"},_c={class:"left"},xc={class:"tooltip-trigger"},wc={class:"tooltip-text tooltip-top"},kc={class:"dowload_dir_tip"},yc={class:"myinput_wrap"},Fc=["onSubmit"],Ec={class:"input_row"},$c={class:"left"},Cc={class:"tooltip-trigger"},Dc={class:"tooltip-text tooltip-top"},Bc={class:"dowload_dir_tip"},Yc={class:"myinput_wrap"},Ac={class:"input_row"},Sc={class:"left"},zc={class:"tooltip-trigger"},Pc={class:"tooltip-text tooltip-top"},Tc={class:"dowload_dir_tip"},Ic={class:"myinput_wrap"},Mc={class:"btns"},Lc={key:1,class:"action"},Oc={class:"title"},Nc={class:"finished"},Vc={class:"successed"},Gc={class:"btns"},jc=I({props:{services:{type:Object,required:!0},partitionList:{type:Array,required:!0},defaultTab:{type:String,required:!1},Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(""),d=E(""),c=E(""),k=E(""),g=E("default"),p=E("Aria2"),m=E(""),v=E(""),b=E(""),y=E(""),f=E([]),F=E([]),w=E(0);Pt(()=>{var M,q,T,j,R,it,ot,bt,Dt,yt;switch(n.defaultTab){case"aria2":p.value="Aria2";break;case"qbittorrent":p.value="qBittorrent";break;case"transmission":p.value="Transmission";break}f.value=n.partitionList.map(Vt=>({key:Vt})),F.value=n.partitionList.filter(Vt=>Vt.startsWith("/mnt/")).map(Vt=>Vt.replace(/(\/mnt\/[^/]+).*/,"$1")),c.value=((M=n.services.aria2)==null?void 0:M.configPath)||"";const A=((q=n.services.aria2)==null?void 0:q.downloadPath)||((T=n.services.qbittorrent)==null?void 0:T.downloadPath)||((j=n.services.transmission)==null?void 0:j.downloadPath);A&&(k.value=A);const z=(R=n.services.aria2)==null?void 0:R.rpcToken;z&&(u.value=z),m.value=((it=n.services.qbittorrent)==null?void 0:it.configPath)||"";const B=((ot=n.services.qbittorrent)==null?void 0:ot.downloadPath)||A||((bt=n.services.transmission)==null?void 0:bt.downloadPath);B&&(v.value=B),b.value=((Dt=n.services.transmission)==null?void 0:Dt.configPath)||"";const H=((yt=n.services.transmission)==null?void 0:yt.downloadPath)||A||B;H&&(y.value=H)});const h=()=>{let A=c.value,z=k.value;A==null||A==""||z==null||z==""||L(this,null,function*(){if(yield zt.checkAndInstallApp("app-meta-aria2","Aria2")){const H=$.Loading(a("\u914D\u7F6E\u4E2D..."));G.Guide.Aria2Init.POST({configPath:A,downloadPath:z,rpcToken:u.value,btTracker:g.value=="add"?d.value:""}).then(M=>{var q;if(M!=null&&M.data){if((M.data.success||0)==0){w.value=1;return}else if((q=M.data)!=null&&q.error)throw M.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(M=>$.Error(M)).finally(()=>H.Close())}})},_=()=>{let A=m.value,z=v.value;A==null||A==""||z==null||z==""||L(this,null,function*(){if(yield zt.checkAndInstallApp("app-meta-qbittorrent","qBittorrent")){const H=$.Loading(a("\u914D\u7F6E\u4E2D..."));G.Guide.qbitorrentInit.POST({configPath:A,downloadPath:z}).then(M=>{var q;if(M!=null&&M.data){if((M.data.success||0)==0){w.value=1;return}else if((q=M.data)!=null&&q.error)throw M.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(M=>$.Error(M)).finally(()=>H.Close())}})},x=()=>{let A=b.value,z=y.value;A==null||A==""||z==null||z==""||L(this,null,function*(){if(yield zt.checkAndInstallApp("app-meta-transmission","Transmission")){const H=$.Loading(a("\u914D\u7F6E\u4E2D..."));G.Guide.transmissionInit.POST({configPath:A,downloadPath:z}).then(M=>{var q;if(M!=null&&M.data){if((M.data.success||0)==0){w.value=1;return}else if((q=M.data)!=null&&q.error)throw M.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(M=>$.Error(M)).finally(()=>H.Close())}})},C=A=>{A.preventDefault(),n.Close&&n.Close()},S=A=>{A.preventDefault(),location.reload()};return(A,z)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[w.value==0?(r(),s("div",$u,[t("h2",Cu,i(e(a)("\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC")),1),t("ul",null,[t("li",null,[t("div",Du,[t("div",Bu,[t("span",null,i(e(a)("\u4E0B\u8F7D\u670D\u52A1\uFF1A")),1)]),t("div",Yu,[O(t("input",{type:"radio",value:"Aria2","onUpdate:modelValue":z[0]||(z[0]=B=>p.value=B),name:"download",id:"Aria2"},null,512),[[Bt,p.value]]),Au]),t("div",Su,[O(t("input",{type:"radio",value:"qBittorrent","onUpdate:modelValue":z[1]||(z[1]=B=>p.value=B),name:"download",id:"qB"},null,512),[[Bt,p.value]]),zu]),t("div",Pu,[O(t("input",{type:"radio",value:"Transmission","onUpdate:modelValue":z[2]||(z[2]=B=>p.value=B),name:"download",id:"Tr"},null,512),[[Bt,p.value]]),Tu])])])]),p.value=="Aria2"?(r(),s("form",{key:0,onSubmit:ft(h,["prevent"])},[t("ul",null,[t("li",null,[t("div",Mu,[t("div",Lu,[t("span",Ou,[Y(Jt),t("div",null,[t("div",Nu,[t("span",Vu,i(e(a)("\u7528\u4E8E\u653E\u7F6E\u914D\u7F6E\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/Configs/aria2\uFF1B\u8BF7\u52FF\u4F7F\u7528 /tmp \u6216 /var \uFF0C\u4EE5\u514D\u91CD\u542F\u4EE5\u540E\u4EFB\u52A1\u4E22\u5931")),1)])])]),t("span",null,i(e(a)("\u914D\u7F6E\u76EE\u5F55\uFF1A")),1)]),t("div",Gu,[Y(Zt,{modelValue:c.value,"onUpdate:modelValue":z[3]||(z[3]=B=>c.value=B),modelModifiers:{trim:!0},title:e(a)("\u914D\u7F6E\u76EE\u5F55"),options:F.value.concat("/root").map(B=>({key:B+"/Configs/aria2"}))},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",ju,[t("div",Uu,[t("span",qu,[Y(Jt),t("div",null,[t("div",Ru,[t("span",Wu,i(e(a)("\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/download")),1)])])]),t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55\uFF1A")),1)]),t("div",Hu,[Y(Zt,{modelValue:k.value,"onUpdate:modelValue":z[4]||(z[4]=B=>k.value=B),modelModifiers:{trim:!0},title:e(a)("\u4E0B\u8F7D\u76EE\u5F55"),options:f.value},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",Ju,[t("div",Zu,[t("span",Ku,[Y(Jt),t("div",null,[t("div",Qu,[t("span",Xu,i(e(a)("\u7528\u4E8E\u8FDC\u7A0B\u8BBF\u95EE\u7684\u4EE4\u724C\u3002")),1)])])]),t("span",null,i(e(a)("RPC \u4EE4\u724C\uFF1A")),1)]),O(t("input",{type:"text",class:"RPC_input",placeholder:e(a)("\u8BF7\u8F93\u5165RPC\u4EE4\u724C"),"onUpdate:modelValue":z[5]||(z[5]=B=>u.value=B)},null,8,tc),[[at,u.value,void 0,{trim:!0}]])])]),t("li",null,[t("div",ec,[t("div",ac,[t("span",null,i(e(a)("\u9644\u52A0\u7684 BT Tracker\uFF1A")),1)]),t("div",oc,[O(t("input",{type:"radio",value:"default",name:"BT",id:"default","onUpdate:modelValue":z[6]||(z[6]=B=>g.value=B)},null,512),[[Bt,g.value]]),t("label",nc,i(e(a)("\u9ED8\u8BA4")),1)]),t("div",ic,[O(t("input",{type:"radio",value:"add",name:"BT",id:"add","onUpdate:modelValue":z[7]||(z[7]=B=>g.value=B)},null,512),[[Bt,g.value]]),t("label",rc,i(e(a)("\u81EA\u5DF1\u6DFB\u52A0")),1)])])]),t("li",null,[t("div",sc,[dc,t("div",lc,[g.value=="add"?O((r(),s("textarea",{key:0,"onUpdate:modelValue":z[8]||(z[8]=B=>d.value=B),rows:"4",placeholder:e(a)("\u8BF7\u8F93\u5165BT Tracker\u670D\u52A1\u5668\u5730\u5740\uFF0C\u591A\u4E2A\u5730\u5740\u4F7F\u7528\u6362\u884C\u6216\u8005\u82F1\u6587\u9017\u53F7\u5206\u9694")},null,8,uc)),[[at,d.value,void 0,{trim:!0}]]):D("",!0)])])])])],40,Iu)):D("",!0),p.value=="qBittorrent"?(r(),s("form",{key:1,onSubmit:ft(_,["prevent"])},[t("ul",null,[t("li",null,[t("div",pc,[t("div",fc,[t("span",mc,[Y(Jt),t("div",null,[t("div",gc,[t("span",vc,i(e(a)("\u7528\u4E8E\u653E\u7F6E\u914D\u7F6E\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/Configs/qb\uFF1B\u8BF7\u52FF\u4F7F\u7528 /tmp \u6216 /var \uFF0C\u4EE5\u514D\u91CD\u542F\u4EE5\u540E\u4EFB\u52A1\u4E22\u5931")),1)])])]),t("span",null,i(e(a)("\u914D\u7F6E\u76EE\u5F55\uFF1A")),1)]),t("div",bc,[Y(Zt,{modelValue:m.value,"onUpdate:modelValue":z[9]||(z[9]=B=>m.value=B),modelModifiers:{trim:!0},title:e(a)("\u914D\u7F6E\u76EE\u5F55"),options:F.value.concat("/root").map(B=>({key:B+"/Configs/qb"}))},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",hc,[t("div",_c,[t("span",xc,[Y(Jt),t("div",null,[t("div",wc,[t("span",kc,i(e(a)("\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/download")),1)])])]),t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55\uFF1A")),1)]),t("div",yc,[Y(Zt,{modelValue:v.value,"onUpdate:modelValue":z[10]||(z[10]=B=>v.value=B),modelModifiers:{trim:!0},title:e(a)("\u4E0B\u8F7D\u76EE\u5F55"),options:f.value},null,8,["modelValue","title","options"])])])])])],40,cc)):D("",!0),p.value=="Transmission"?(r(),s("form",{key:2,onSubmit:ft(x,["prevent"])},[t("ul",null,[t("li",null,[t("div",Ec,[t("div",$c,[t("span",Cc,[Y(Jt),t("div",null,[t("div",Dc,[t("span",Bc,i(e(a)("\u7528\u4E8E\u653E\u7F6E\u914D\u7F6E\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/Configs/tr\uFF1B\u8BF7\u52FF\u4F7F\u7528 /tmp \u6216 /var \uFF0C\u4EE5\u514D\u91CD\u542F\u4EE5\u540E\u4EFB\u52A1\u4E22\u5931")),1)])])]),t("span",null,i(e(a)("\u914D\u7F6E\u76EE\u5F55\uFF1A")),1)]),t("div",Yc,[Y(Zt,{modelValue:b.value,"onUpdate:modelValue":z[11]||(z[11]=B=>b.value=B),modelModifiers:{trim:!0},title:e(a)("\u914D\u7F6E\u76EE\u5F55"),options:F.value.concat("/root").map(B=>({key:B+"/Configs/transmission"}))},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",Ac,[t("div",Sc,[t("span",zc,[Y(Jt),t("div",null,[t("div",Pc,[t("span",Tc,i(e(a)("\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/download")),1)])])]),t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55\uFF1A")),1)]),t("div",Ic,[Y(Zt,{modelValue:y.value,"onUpdate:modelValue":z[12]||(z[12]=B=>y.value=B),modelModifiers:{trim:!0},title:e(a)("\u4E0B\u8F7D\u76EE\u5F55"),options:f.value},null,8,["modelValue","title","options"])])])])])],40,Fc)):D("",!0),t("div",Mc,[p.value=="Aria2"?(r(),s("button",{key:0,class:"cbi-button cbi-button-apply",onClick:h},i(e(a)("\u542F\u7528")),1)):D("",!0),p.value=="qBittorrent"?(r(),s("button",{key:1,class:"cbi-button cbi-button-apply",onClick:_},i(e(a)("\u542F\u7528")),1)):D("",!0),p.value=="Transmission"?(r(),s("button",{key:2,class:"cbi-button cbi-button-apply",onClick:x},i(e(a)("\u542F\u7528")),1)):D("",!0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:C},i(e(a)("\u53D6\u6D88")),1)])])):w.value==1?(r(),s("div",Lc,[t("h2",Oc,i(e(a)("%{status}\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",{status:p.value})),1),t("div",Nc,[Y(ua)]),t("p",Vc,i(e(a)("\u914D\u7F6E\u6210\u529F\uFF01")),1),t("div",Gc,[t("button",{class:"cbi-button cbi-button-apply",onClick:S},i(e(a)("\u786E\u5B9A")),1)])])):D("",!0)]),_:1},8,["Close"]))}});var Uc=N(jc,[["__scopeId","data-v-7b328460"]]);const qc=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(Uc,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},ca=o=>(ut("data-v-5ebde5ac"),o=o(),ct(),o),Rc={class:"content"},Wc={class:"tab"},Hc=ca(()=>t("div",{class:"title"},"Aria2",-1)),Jc={key:0},Zc={key:1},Kc=ca(()=>t("div",{class:"title"},"qBittorrent",-1)),Qc={key:0},Xc={key:1},t1=ca(()=>t("div",{class:"title"},"Transmission",-1)),e1={key:0},a1={key:1},o1=I({setup(o){const{$gettext:n}=J(),a=E(!1),l=E("aria2"),u=E(!1),d=w=>{l.value=w,u.value=!0},c=E(),k=()=>{if(u.value)return;const h=["aria2","qbittorrent","transmission"].find(_=>{var x,C;return((C=(x=c.value)==null?void 0:x[_])==null?void 0:C.status)==="running"});l.value=h||"aria2"};setTimeout(()=>{G.Guide.DownloadService.Status.GET().then(w=>{var h;if((h=w==null?void 0:w.data)!=null&&h.result){const _=w.data.result;c.value=_,k()}})},800),E(!1);const p=E(!1),m=()=>{p.value=!p.value},v=()=>{G.Guide.DownloadPartition.List.GET().then(w=>{var _,x;let h=[];(x=(_=w==null?void 0:w.data)==null?void 0:_.result)!=null&&x.partitionList&&(h=w.data.result.partitionList),qc({services:c.value,partitionList:h,defaultTab:l.value})})},b=(w,h,_)=>L(this,null,function*(){m(),zt.installAndGo(w,h,_)}),y=()=>{b("app-meta-aria2","Aria2","/cgi-bin/luci/admin/services/aria2")},f=()=>{b("app-meta-qbittorrent","qBittorrent","/cgi-bin/luci/admin/nas/qBittorrent")},F=()=>{b("app-meta-transmission","Transmission","/cgi-bin/luci/admin/services/transmission")};return(w,h)=>(r(),Z(Wt,{title:e(n)("\u4E0B\u8F7D\u670D\u52A1"),showSettings:!0,onFooterClick:v,style:{width:"100%",height:"100%",display:"block"},"is-settings-menu-open":a.value,"onUpdate:isSettingsMenuOpen":h[4]||(h[4]=_=>a.value=_)},{icon:V(()=>[Y(Kt,{color:"#00a63e",class:"icon"})]),settings:V(()=>[t("div",{class:"btn_settings",onClick:v},[Y(Kt,{color:"#0a0a0a",class:"icon1 downloadIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u4E0B\u8F7D\u7BA1\u7406")),1),Boolean(c.value)?(r(),s("div",{key:0,class:"rotation",onClick:h[0]||(h[0]=ft(_=>a.value=!a.value,["stop"]))},[Y(Ee,{class:"moreIcon"})])):D("",!0)])]),"settings-menu":V(()=>[t("div",null,[t("a",{onClick:y},i(e(n)("Aria2\u9AD8\u7EA7\u914D\u7F6E")),1)]),t("div",null,[t("a",{onClick:f},i(e(n)("qBittorrent\u9AD8\u7EA7\u914D\u7F6E")),1)]),t("div",null,[t("a",{onClick:F},i(e(n)("Transmission\u9AD8\u7EA7\u914D\u7F6E")),1)])]),default:V(()=>{var _,x,C,S,A,z,B,H,M;return[t("div",Rc,[t("div",Wc,[t("div",{class:lt(["item cloud",{active:l.value=="aria2"}]),onClick:h[1]||(h[1]=q=>d("aria2"))},[Y(Kt,{color:"#f54900",class:"icon2"}),Hc,((x=(_=c.value)==null?void 0:_.aria2)==null?void 0:x.status)=="running"?(r(),s("span",Jc,i(e(n)("\u5DF2\u542F\u7528")),1)):(r(),s("span",Zc,i(e(n)("\u672A\u542F\u7528")),1))],2),t("div",{class:lt(["item memory",{active:l.value=="qbittorrent"}]),onClick:h[2]||(h[2]=q=>d("qbittorrent"))},[Y(Kt,{color:"#4a5565",class:"icon2"}),Kc,((S=(C=c.value)==null?void 0:C.qbittorrent)==null?void 0:S.status)=="running"?(r(),s("span",Qc,i(e(n)("\u5DF2\u542F\u7528")),1)):(r(),s("span",Xc,i(e(n)("\u672A\u542F\u7528")),1))],2),t("div",{class:lt(["item network",{active:l.value=="transmission"}]),onClick:h[3]||(h[3]=q=>d("transmission"))},[Y(Kt,{color:"#009689",class:"icon2"}),t1,((z=(A=c.value)==null?void 0:A.transmission)==null?void 0:z.status)=="running"?(r(),s("span",e1,i(e(n)("\u5DF2\u542F\u7528")),1)):(r(),s("span",a1,i(e(n)("\u672A\u542F\u7528")),1))],2)]),l.value=="aria2"?(r(),Z(Pl,{key:0,aria2:(B=c.value)==null?void 0:B.aria2},null,8,["aria2"])):l.value=="qbittorrent"?(r(),Z(Xl,{key:1,qbittorrent:(H=c.value)==null?void 0:H.qbittorrent},null,8,["qbittorrent"])):l.value=="transmission"?(r(),Z(gu,{key:2,transmission:(M=c.value)==null?void 0:M.transmission},null,8,["transmission"])):D("",!0)])]}),_:1},8,["title","is-settings-menu-open"]))}});var n1=N(o1,[["__scopeId","data-v-5ebde5ac"]]);const i1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},r1=["fill"],He=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",i1,[t("path",{d:"M584.675 134.868C561.143 130.36 536.847 128 512 128a392 392 0 0 0-3.783 0.018l-24.19 169.685A32 32 0 0 1 466.68 321.8l-99.807 49.992-50.81 127.247a32 32 0 0 1-24.45 19.697l-162.145 27.069c8.105 92.926 49.308 176.368 111.754 238.473L223.089 657.52c-2.323-16.238 8.01-31.603 23.924-35.578l226.491-56.558a32 32 0 0 1 30.368 8.407l96.768 96.662a8 8 0 0 0 8.728 1.726l150.425-62.602 31.42-0.772c17.669-0.434 32.343 13.536 32.777 31.204 0.007 0.262 0.01 0.524 0.01 0.786v95.11c45.314-63.03 72-140.351 72-223.906 0-40.5-6.27-79.535-17.891-116.188l-103.215 27.656a32 32 0 0 1-23.36-2.684l-127.842-68.287a32 32 0 0 1-16.712-24.553l-22.305-193.076z m58.509 16.124l18.31 159.176 109.262 56.623 86.458-23.166c-43.44-88.897-120.207-158.532-214.03-192.633z m-336.132 685.8C366.357 874.295 436.644 896 512 896c94.536 0 181.093-34.162 248-90.814V683.96a8 8 0 0 0-11.074-7.386l-138.21 57.53a32 32 0 0 1-34.913-6.903l-99.24-99.132a8 8 0 0 0-7.592-2.102l-178.437 44.563a8 8 0 0 0-5.981 8.894l22.499 157.37zM128.65 489.473l140.726-23.504 49.219-123.244a32 32 0 0 1 15.386-16.744l96.748-48.46 20.65-144.762C275.347 160.675 139.137 308.212 128.65 489.47zM512 960C264.576 960 64 759.424 64 512S264.576 64 512 64s448 200.576 448 448-200.576 448-448 448z",fill:o.color,"p-id":"8679"},null,8,r1)]))}}),s1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},d1=["fill"],l1=["fill"],u1=["fill"],pa=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",s1,[t("path",{d:"M298.894222 482.417778c-35.271111 0-65.649778 12.231111-90.624 36.636444-25.031111 24.462222-37.603556 54.158222-37.603555 88.746667v87.153778h60.359111V607.857778c0-18.318222 6.599111-33.848889 19.854222-46.762667a65.991111 65.991111 0 0 1 48.014222-19.456h426.382222c18.887111 0 34.759111 6.428444 48.014223 19.399111 13.312 13.027556 19.854222 28.444444 19.854222 46.819556v87.04h60.359111v-87.04c0-34.702222-12.572444-64.341333-37.546667-88.746667a125.098667 125.098667 0 0 0-90.680889-36.750222H298.894222z",fill:o.color,"p-id":"8894"},null,8,d1),t("path",{d:"M488.049778 334.734222h47.900444V512h-47.900444V334.734222z",fill:o.color,"p-id":"8895"},null,8,l1),t("path",{d:"M597.333333 142.222222v170.666667h-170.666666v-170.666667h170.666666z m-170.666666-56.888889a56.888889 56.888889 0 0 0-56.888889 56.888889v170.666667a56.888889 56.888889 0 0 0 56.888889 56.888889h170.666666a56.888889 56.888889 0 0 0 56.888889-56.888889v-170.666667a56.888889 56.888889 0 0 0-56.888889-56.888889h-170.666666zM284.444444 711.111111H113.777778v170.666667h170.666666v-170.666667z m-170.666666-56.888889h170.666666a56.888889 56.888889 0 0 1 56.888889 56.888889v170.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H113.777778a56.888889 56.888889 0 0 1-56.888889-56.888889v-170.666667a56.888889 56.888889 0 0 1 56.888889-56.888889zM910.222222 711.111111v170.666667h-170.666666v-170.666667h170.666666z m-170.666666-56.888889a56.888889 56.888889 0 0 0-56.888889 56.888889v170.666667a56.888889 56.888889 0 0 0 56.888889 56.888889h170.666666a56.888889 56.888889 0 0 0 56.888889-56.888889v-170.666667a56.888889 56.888889 0 0 0-56.888889-56.888889h-170.666666z",fill:o.color,"p-id":"8896"},null,8,u1)]))}}),c1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},p1=["fill"],f1=["fill"],m1=["fill"],g1=I({props:{color:{type:String,default:"#4a5565"}},setup(o){return(n,a)=>(r(),s("svg",c1,[t("path",{d:"M909.1 499.1h-797c-27.5 0-50 22.5-50 50v351.5c0 27.5 22.5 50 50 50h797c27.5 0 50-22.5 50-50V549.1c0-27.5-22.5-50-50-50z m-14 387.5h-769V563.1h769v323.5z",fill:o.color,"p-id":"19594"},null,8,p1),t("path",{d:"M191.932 734.691a63 63 0 1 0 124.375-20.173 63 63 0 1 0-124.375 20.173zM395.56 774.136a63 63 0 1 0 89.093-89.097 63 63 0 1 0-89.094 89.097zM702.8 296.6c-19.4 0-35.2 8.4-35.2 18.7v198c0 10.3 15.9 18.7 35.2 18.7 19.4 0 35.2-8.4 35.2-18.7v-198c0.1-10.3-15.8-18.7-35.2-18.7z",fill:o.color,"p-id":"19595"},null,8,f1),t("path",{d:"M701.8 218.6c-49.7 0-93.2 31.8-117.7 79.5h41.5c19.3-24.3 46.3-39.5 76.2-39.5 29.9 0 56.9 15.2 76.2 39.5h41.5c-24.4-47.7-68-79.5-117.7-79.5z m5.3-45.5c41.1 0 78.3 15.2 104.8 39.5H869c-33.7-47.7-93.7-79.5-162-79.5s-128.3 31.8-162 79.5h57.1c26.6-24.3 63.8-39.5 105-39.5z",fill:o.color,"p-id":"19596"},null,8,m1)]))}}),v1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},b1=["fill"],ya=I({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",v1,[t("path",{d:"M526.41 117.029v58.514a7.314 7.314 0 0 1-7.315 7.314H219.429a36.571 36.571 0 0 0-35.987 29.989l-0.585 6.583V804.57a36.571 36.571 0 0 0 29.989 35.987l6.583 0.585H804.57a36.571 36.571 0 0 0 35.987-29.989l0.585-6.583v-317.44a7.314 7.314 0 0 1 7.314-7.314h58.514a7.314 7.314 0 0 1 7.315 7.314v317.44a109.714 109.714 0 0 1-99.182 109.203l-10.533 0.512H219.43a109.714 109.714 0 0 1-109.203-99.182l-0.512-10.533V219.43a109.714 109.714 0 0 1 99.182-109.203l10.533-0.512h299.666a7.314 7.314 0 0 1 7.314 7.315z m307.345 31.817l41.4 41.399a7.314 7.314 0 0 1 0 10.313L419.985 655.726a7.314 7.314 0 0 1-10.313 0l-41.399-41.4a7.314 7.314 0 0 1 0-10.312l455.168-455.168a7.314 7.314 0 0 1 10.313 0z","p-id":"4497",fill:o.color},null,8,b1)]))}}),h1={class:"actioner-container"},_1={class:"actioner-container_header"},x1={class:"actioner-container_body"},w1={class:"label-item"},k1={class:"label_info"},y1={class:"label-item"},F1={class:"label_info"},E1={class:"label-item"},$1={class:"label_info"},C1={class:"label-item"},D1={class:"label_info"},B1={class:"actioner-container_footer"},Y1=I({props:{onSetup:{type:Function,required:!0},active:{type:String,default:"ddnsto"}},emits:["update:active"],setup(o,{emit:n}){const a=o,{$gettext:l,$ngettext:u}=J(),d=()=>{a.onSetup()},c=E(a.active),k=()=>{switch(n("update:active",c.value),c.value){case"ddnsto":a.onSetup("ddnsto");break;case"ali":a.onSetup("ddns-ali");break;case"dnspod":a.onSetup("ddns-dnspod");break;case"oray":a.onSetup("ddns-oray");break}};return(g,p)=>(r(),s("div",h1,[t("div",_1,[t("span",null,i(e(l)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",x1,[t("div",w1,[t("label",null,[O(t("input",{type:"radio","onUpdate:modelValue":p[0]||(p[0]=m=>c.value=m),value:"ddnsto"},null,512),[[Bt,c.value]]),t("span",null,i(e(l)("DDNSTO")),1)]),t("p",k1,i(e(l)("DDNSTO \u662F\u4E00\u4E2A\u4E0D\u9700\u8981\u516C\u7F51IP\u4E5F\u53EF\u4EE5\u5728\u5916\u7F51\u8BBF\u95EE\u7684\u7A7F\u900F\u57DF\u540D\u670D\u52A1\uFF0C\u4E00\u4E2A\u6D4F\u89C8\u5668\u641E\u5B9A\u5185\u7F51\u7A7F\u900F\uFF0C\u8FDC\u7A0B\u8BBF\u95EEOpenwrt\u3001\u8FDC\u7A0B\u7EC8\u7AEF\u3001\u8FDC\u7A0B\u684C\u9762...")),1)]),t("div",y1,[t("label",null,[O(t("input",{type:"radio","onUpdate:modelValue":p[1]||(p[1]=m=>c.value=m),value:"ali"},null,512),[[Bt,c.value]]),t("span",null,i(e(l)("\u963F\u91CC\u4E91")),1)]),t("p",F1,i(e(l)("\u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D")),1)]),t("div",E1,[t("label",null,[O(t("input",{type:"radio","onUpdate:modelValue":p[2]||(p[2]=m=>c.value=m),value:"dnspod"},null,512),[[Bt,c.value]]),t("span",null,i(e(l)("Dnspod")),1)]),t("p",$1,i(e(l)("\u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D")),1)]),t("div",C1,[t("label",null,[O(t("input",{type:"radio","onUpdate:modelValue":p[3]||(p[3]=m=>c.value=m),value:"oray"},null,512),[[Bt,c.value]]),t("span",null,i(e(l)("\u82B1\u751F\u58F3")),1)]),t("p",D1,i(e(l)("\u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D")),1)])]),t("div",B1,[t("div",{class:"close",onClick:d},i(e(l)("\u53D6\u6D88")),1),t("div",{class:"next",onClick:k},i(e(l)("\u4E0B\u4E00\u6B65")),1)])]))}});var A1=N(Y1,[["__scopeId","data-v-46dd945e"]]);const S1=o=>(ut("data-v-b760733a"),o=o(),ct(),o),z1={class:"actioner-container"},P1={class:"actioner-container_body"},T1=S1(()=>t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})],-1)),I1={class:"body-title"},M1={class:"body-tips"},L1={class:"body-info"},O1=["href"],N1={href:"/cgi-bin/luci/admin/services/ddns",target:"_blank"},V1={class:"actioner-container_footer"},G1=I({props:{target:{type:String,required:!0},onSetup:{type:Function,required:!0}},setup(o){const{$gettext:n,$ngettext:a}=J(),l=()=>{localStorage.setItem("firstOpen",JSON.stringify(!0)),location.reload()};return(u,d)=>(r(),s("div",z1,[t("div",P1,[T1,t("div",I1,i(e(n)("\u6DFB\u52A0\u6210\u529F")),1),t("p",M1,i(e(n)("\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002")),1),t("div",L1,[t("span",null,i(e(n)("\u8BBF\u95EE\u5730\u5740\uFF1A")),1),t("a",{href:o.target,target:"_blank",rel:"noopener noreferrer"},i(o.target),9,O1)]),t("div",null,[t("span",null,i(e(n)("\u53EF\u524D\u5F80")),1),t("a",N1,i(e(n)("\u670D\u52A1-\u52A8\u6001DNS")),1),t("span",null,i(e(n)("\u67E5\u770B\u66F4\u591A\u8BE6\u60C5")),1)])]),t("div",V1,[t("div",{class:"close",onClick:l},i(e(n)("\u5173\u95ED")),1)])]))}});var j1=N(G1,[["__scopeId","data-v-b760733a"]]);const U1=o=>(ut("data-v-064efd50"),o=o(),ct(),o),q1={class:"actioner-container"},R1={class:"actioner-container_header"},W1=U1(()=>t("div",{class:"actioner-container_body ddnsto-login"},[t("iframe",{src:"https://www.kooldns.cn/bind/#/auth?send=1&source=openwrt&callback=*"})],-1)),H1={class:"actioner-container_footer"},J1=I({props:{onSetup:{type:Function,required:!0},onDdnstoConfig:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.onSetup()},d=c=>{if(c.data.auth=="ddnsto"){const k=c.data.sign,g=c.data.token;k&&g&&(removeEventListener("message",d),n.onDdnstoConfig(k,g),n.onSetup("ddnsto-run"))}};return Pt(()=>{window.addEventListener("message",d)}),Nt(()=>{removeEventListener("message",d)}),(c,k)=>(r(),s("div",q1,[t("div",R1,[t("span",null,i(e(a)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),W1,t("div",H1,[t("div",{class:"close",onClick:u},i(e(a)("\u53D6\u6D88")),1)])]))}});var Z1=N(J1,[["__scopeId","data-v-064efd50"]]);const K1={class:"actioner-container"},Q1={class:"actioner-container_header"},X1={class:"actioner-container_body ddnsto-bind"},t2=["src"],e2=I({props:{onSetup:{type:Function,required:!0},config:{type:Object,required:!0},domain:{type:String,required:!0}},emits:["update:domain"],setup(o,{emit:n}){const a=o,{$gettext:l,$ngettext:u}=J(),d=Q(()=>{const{domain:g,token:p,sign:m,routerId:v,netaddr:b}=a.config,y=encodeURIComponent(g),f=encodeURIComponent(b);return`https://www.kooldns.cn/bind/#/domain?domain=${y}&sign=${m}&token=${p}&routerId=${v}&netaddr=${f}`}),c=g=>{if(g.data){const{auth:p,url:m}=g.data;p==="ddnsto"&&m&&k(m)}},k=g=>L(this,null,function*(){var p;try{const m=yield G.Guide.DdnstoAddress.POST({address:g});m!=null&&m.data&&(((p=m==null?void 0:m.data)==null?void 0:p.success)||0)==0&&(n("update:domain",g),a.onSetup("ddnsto-save"))}catch(m){}});return Pt(()=>{window.addEventListener("message",c)}),Nt(()=>{removeEventListener("message",c)}),(g,p)=>(r(),s("div",K1,[t("div",Q1,[t("span",null,i(e(l)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",X1,[t("iframe",{src:e(d)},null,8,t2)])]))}});var a2=N(e2,[["__scopeId","data-v-49c43a08"]]);const o2=o=>(ut("data-v-27f65f12"),o=o(),ct(),o),n2={class:"actioner-container"},i2={class:"actioner-container_body"},r2=o2(()=>t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})],-1)),s2={class:"body-title"},d2={class:"body-tips"},l2={class:"body-info"},u2=["href"],c2={href:"https://www.ddnsto.com/app/#/devices",target:"_blank"},p2={class:"actioner-container_footer"},f2=I({props:{onSetup:{type:Function,required:!0},target:{type:String,required:!0}},setup(o){const{$gettext:n,$ngettext:a}=J(),l=()=>{localStorage.setItem("firstOpen",JSON.stringify(!0)),location.reload()};return(u,d)=>(r(),s("div",n2,[t("div",i2,[r2,t("div",s2,i(e(n)("\u6DFB\u52A0\u6210\u529F")),1),t("p",d2,i(e(n)("\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002")),1),t("div",l2,[t("span",null,i(e(n)("\u8BBF\u95EE\u5730\u5740\uFF1A")),1),t("a",{href:o.target,target:"_blank",rel:"noopener noreferrer"},i(o.target),9,u2)]),t("div",null,[t("span",null,i(e(n)("\u53EF\u524D\u5F80")),1),t("a",c2,i(e(n)("DDNSTO\u63A7\u5236\u53F0")),1),t("span",null,i(e(n)("\u67E5\u770B\u66F4\u591A\u8BE6\u60C5")),1)])]),t("div",p2,[t("div",{class:"close",onClick:l},i(e(n)("\u5173\u95ED")),1)])]))}});var m2=N(f2,[["__scopeId","data-v-27f65f12"]]);const g2={class:"actioner-container"},v2={class:"actioner-container_header"},b2={class:"actioner-container_body"},h2={class:"actioner-container_footer"},_2=I({props:{onSetup:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.onSetup()},d=()=>L(this,null,function*(){if(g.value)return;g.value=!0;const m=$.Loading(a("\u5B89\u88C5\u4E2D..."));try{if(yield zt.installApp("app-meta-ddnsto",30)){n.onSetup("ddnsto-login");return}else c.value=a("\u5B89\u88C5\u5931\u8D25")}catch(v){c.value=v}finally{m.Close()}g.value=!1}),c=E(a("\u6B63\u5728\u68C0\u6D4B\u4E2D...")),k=E(!1),g=E(!1);return(()=>L(this,null,function*(){try{const m=yield G.App.Check.POST({name:"ddnsto"});if(m!=null&&m.data){const{result:v,error:b}=m.data;if(b){c.value=b;return}if(v){if(v.status=="installed"){n.onSetup("ddnsto-login");return}v.status=="uninstalled"&&(c.value=a("\u9700\u8981\u5B89\u88C5DDNSTO\u63D2\u4EF6\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5F00\u59CB\u5B89\u88C5"))}}}catch(m){c.value=m}k.value=!0}))(),(m,v)=>(r(),s("div",g2,[t("div",v2,[t("span",null,i(e(a)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",b2,[t("span",null,i(c.value),1)]),t("div",h2,[k.value?(r(),s(U,{key:0},[t("div",{class:"close",onClick:u},i(e(a)("\u53D6\u6D88")),1),t("div",{class:"next",onClick:d},i(e(a)("\u786E\u5B9A")),1)],64)):D("",!0)])]))}});var x2=N(_2,[["__scopeId","data-v-210c03e8"]]);const w2={class:"actioner-container"},k2={class:"actioner-container_header"},y2={class:"actioner-container_body"},F2=I({props:{onSetup:{type:Function,required:!0},token:{type:String,required:!0},onDdnstoLocalConfig:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(a("\u6B63\u5728\u68C0\u6D4B\u63D2\u4EF6\u662F\u5426\u5DF2\u542F\u52A8..."));(m=>L(this,null,function*(){var v;try{const b=yield G.Guide.Ddnsto.POST({token:n.token});b!=null&&b.data&&(b.data.error&&(u.value=b.data.error),(((v=b==null?void 0:b.data)==null?void 0:v.success)||0)==0&&k())}catch(b){u.value=b}}))(n.token);const c=E(),k=()=>{const m=()=>L(this,null,function*(){if((yield g())===!0){p();return}c.value=window.setTimeout(m,2e3)});m()},g=()=>L(this,null,function*(){try{const m=yield G.App.Check.POST({name:"ddnsto",checkRunning:!0});if(m!=null&&m.data){m.data.error&&(u.value=m.data.error);const v=m.data.result;if((v==null?void 0:v.status)=="running")return!0}}catch(m){u.value=m}return!1});Nt(()=>{c.value&&clearInterval(c.value)});const p=()=>L(this,null,function*(){var m;try{const v=yield G.Guide.DdntoConfig.GET();if(v!=null&&v.data&&(v.data.error&&(u.value=v.data.error),(((m=v==null?void 0:v.data)==null?void 0:m.success)||0)==0&&v.data.result)){const b=v.data.result;n.onDdnstoLocalConfig(b.netAddr,b.deviceId),n.onSetup("ddnsto-bind")}}catch(v){u.value=v}});return(m,v)=>(r(),s("div",w2,[t("div",k2,[t("span",null,i(e(a)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",y2,i(u.value),1)]))}});var E2=N(F2,[["__scopeId","data-v-1b21487b"]]);const $2={class:"action-main"},C2=I({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(o){const n=o,a=E("ddnsto-install"),l=g=>{g!=null?a.value=g:u()},u=()=>{n.Close&&n.Close()},d=gt({sign:"",token:"",domain:n.url,netaddr:"",routerId:""}),c=(g,p)=>{d.sign=g,d.token=p},k=(g,p)=>{d.netaddr=g,d.routerId=p};return(g,p)=>(r(),Z(wt,{type:1},{default:V(()=>[t("div",$2,[a.value=="ddnsto-install"?(r(),Z(x2,{key:0,onSetup:l})):a.value=="ddnsto-login"?(r(),Z(Z1,{key:1,onSetup:l,onDdnstoConfig:c})):a.value=="ddnsto-run"?(r(),Z(E2,{key:2,onSetup:l,token:e(d).token,onDdnstoLocalConfig:k},null,8,["token"])):a.value=="ddnsto-bind"?(r(),Z(a2,{key:3,onSetup:l,config:{token:e(d).token,sign:e(d).sign,domain:e(d).domain,netaddr:e(d).netaddr,routerId:e(d).routerId},domain:e(d).domain,"onUpdate:domain":p[0]||(p[0]=m=>e(d).domain=m)},null,8,["config","domain"])):a.value=="ddnsto-save"?(r(),Z(m2,{key:4,onSetup:l,target:e(d).domain},null,8,["target"])):D("",!0)])]),_:1}))}});var D2=N(C2,[["__scopeId","data-v-7a6bd385"]]);const B2=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(D2,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},Y2={class:"action"},A2={class:"action-header"},S2=["innerHTML"],z2={class:"action-footer"},P2=I({props:{Close:Function,next:{type:Function},clear:{type:Function},continuer:{type:Function},nextTitle:{type:String},clearTitle:{type:String},continuerTitle:{type:String},title:{type:String},content:{type:String}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.next&&n.next(),n.Close&&n.Close()},d=()=>{n.clear&&n.clear(),n.Close&&n.Close()},c=()=>{n.continuer&&n.continuer(),n.Close&&n.Close()};return(k,g)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[t("div",Y2,[t("div",A2,i(o.title||e(a)("\u63D0\u793A")),1),t("div",{class:"action-body",innerHTML:o.content},null,8,S2),t("div",z2,[o.clear?(r(),s("div",{key:0,class:"clear",onClick:d},i(o.clearTitle||e(a)("\u8FD4\u56DE")),1)):D("",!0),t("div",{class:"next",onClick:u},i(o.nextTitle||e(a)("\u786E\u5B9A")),1),o.continuer?(r(),s("div",{key:1,class:"next",onClick:c},i(o.continuerTitle||e(a)("\u7EE7\u7EED\u4FDD\u5B58")),1)):D("",!0)])])]),_:1},8,["Close"]))}});var T2=N(P2,[["__scopeId","data-v-05611967"]]);const Se=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(T2,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},I2=o=>(ut("data-v-6e29e960"),o=o(),ct(),o),M2={class:"actioner-container"},L2=["onSubmit"],O2={class:"actioner-container_header"},N2={key:0,class:"title_info"},V2={href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#%E9%98%BF%E9%87%8C%E4%BA%91",target:"_blank"},G2={key:1,class:"title_info"},j2={href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#dnspod",target:"_blank"},U2={key:2,class:"title_info"},q2={href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#%E8%8A%B1%E7%94%9F%E5%A3%B3",target:"_blank"},R2={class:"label-item"},W2={class:"label-item_key"},H2={class:"label-item_value"},J2={value:"ipv4"},Z2={value:"ipv6"},K2={class:"label_tips"},Q2=I2(()=>t("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_alert",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"14",height:"14"}),t("path",{d:"M7,0.875 C3.61757813,0.875 0.875,3.61757813 0.875,7 C0.875,10.3824219 3.61757813,13.125 7,13.125 C10.3824219,13.125 13.125,10.3824219 13.125,7 C13.125,3.61757813 10.3824219,0.875 7,0.875 Z M6.5625,4.046875 C6.5625,3.98671875 6.61171875,3.9375 6.671875,3.9375 L7.328125,3.9375 C7.38828125,3.9375 7.4375,3.98671875 7.4375,4.046875 L7.4375,7.765625 C7.4375,7.82578125 7.38828125,7.875 7.328125,7.875 L6.671875,7.875 C6.61171875,7.875 6.5625,7.82578125 6.5625,7.765625 L6.5625,4.046875 Z M7,10.0625 C6.63769531,10.0625 6.34375,9.76855469 6.34375,9.40625 C6.34375,9.04394531 6.63769531,8.75 7,8.75 C7.36230469,8.75 7.65625,9.04394531 7.65625,9.40625 C7.65625,9.76855469 7.36230469,10.0625 7,10.0625 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])])],-1)),X2={class:"info"},t6={class:"label-item"},e6={class:"label-item_key"},a6={class:"label-item_value"},o6={class:"label-item"},n6={class:"label-item_key"},i6={class:"label-item_value"},r6=["placeholder"],s6={class:"label-item"},d6={class:"label-item_key"},l6={class:"label-item_value"},u6=["placeholder"],c6={class:"actioner-container_footer"},p6=["disabled"],f6=I({props:{name:{type:String,default:"ali"},onSetup:{type:Function,required:!0},target:{type:String,required:!0}},emits:["update:target"],setup(o,{emit:n}){const a=o,{$gettext:l,$ngettext:u}=J(),d=E("ipv4"),c=E(a.name),k=E(""),g=E(""),p=E(""),m=E(!1),v=()=>{a.onSetup("index")},b=()=>{m.value=!0;const w=$.Loading(l("\u68C0\u6D4B\u4E2D..."));G.Network.CheckPublickNet.POST({ipVersion:d.value}).then(h=>{var _,x;if(h!=null&&h.data){if((_=h==null?void 0:h.data)!=null&&_.error){$.Warning(h==null?void 0:h.data.error);return}if((((x=h==null?void 0:h.data)==null?void 0:x.success)||0)==0){const C=h.data.result;C&&C.address?F():y();return}}throw l("\u672A\u77E5\u9519\u8BEF")}).catch(h=>{$.Error(h)}).finally(()=>{w.Close(),m.value=!1})},y=()=>{Se({title:l("\u6E29\u99A8\u63D0\u793A"),nextTitle:l("\u4F7F\u7528DDNSTO"),continuerTitle:l("\u7EE7\u7EED\u4FDD\u5B58"),content:l("\u68C0\u6D4B\u5230\u60A8\u7684wan\u53E3\u6CA1\u6709\u516C\u7F51IP\u6216\u8005IPv6\u5730\u5740\uFF0C\u53EF\u4EE5\u4F7F\u7528DDNSTO\u914D\u7F6E\u8FDC\u7A0B\u57DF\u540D\u8BBF\u95EE"),next(){f()},continuer(){F()},clear(){}})},f=()=>{a.onSetup("ddnsto")},F=()=>{m.value=!0;const w=$.Loading(l("\u914D\u7F6E\u4E2D..."));G.Guide.PostDdns.POST({ipVersion:d.value,serviceName:c.value,domain:k.value,userName:g.value,password:p.value}).then(h=>{if(h!=null&&h.data){const{error:_,scope:x,success:C}=h.data;if(_=="-100"&&x=="guide.ddns"){Se({title:l("\u6E29\u99A8\u63D0\u793A"),content:l("\u68C0\u6D4B\u5230\u4F60\u6709\u672A\u4FDD\u5B58\u7684\u914D\u7F6E\uFF0C\u53EF\u524D\u5F80\u9875\u9762\u53F3\u4E0A\u89D2\u70B9\u51FB\u67E5\u770B\uFF0C\u4FDD\u5B58\u5E76\u5E94\u7528\u6216\u8005\u6062\u590D\u914D\u7F6E\u540E\u7EE7\u7EED"),next(){}});return}if(_){$.Warning(_);return}if((C||0)==0){n("update:target",k.value),a.onSetup("ddns-success");return}}throw l("\u672A\u77E5\u9519\u8BEF")}).catch(h=>{$.Error(h)}).finally(()=>{w.Close(),m.value=!1})};return(w,h)=>(r(),s("div",M2,[t("form",{class:"actioner-dns",onSubmit:ft(b,["prevent"])},[t("div",O2,[t("span",null,i(e(l)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",{class:lt(["actioner-container_body",o.name])},[o.name=="ali"?(r(),s("div",N2,[t("p",null,i(e(l)("\u963F\u91CC\u4E91")),1),t("span",null,i(e(l)("\u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D")),1),t("a",V2,i(e(l)("\u67E5\u770B\u6559\u7A0B"))+">>",1)])):o.name=="dnspod"?(r(),s("div",G2,[t("p",null,i(e(l)("dnspod")),1),t("span",null,i(e(l)("\u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D")),1),t("a",j2,i(e(l)("\u67E5\u770B\u6559\u7A0B"))+">>",1)])):o.name=="oray"?(r(),s("div",U2,[t("p",null,i(e(l)("\u82B1\u751F\u58F3")),1),t("span",null,i(e(l)("\u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D")),1),t("a",q2,i(e(l)("\u67E5\u770B\u6559\u7A0B"))+">>",1)])):D("",!0),t("div",R2,[t("div",W2,[t("span",null,i(e(l)("IP\u5730\u5740\u7248\u672C\uFF1A")),1)]),t("div",H2,[O(t("select",{name:"",id:"","onUpdate:modelValue":h[0]||(h[0]=_=>d.value=_)},[t("option",J2,i(e(l)("IPv4\u5730\u5740")),1),t("option",Z2,i(e(l)("IPv6\u5730\u5740")),1)],512),[[pt,d.value]])]),t("div",K2,[Q2,t("span",X2,i(e(l)("\u8BBE\u5B9A\u54EA\u4E00\u4E2A IP \u5730\u5740\uFF08IPv4 \u6216 IPv6\uFF09\u4F1A\u88AB\u53D1\u9001\u7ED9 DDNS \u63D0\u4F9B\u5546")),1)])]),t("div",t6,[t("div",e6,[t("span",null,i(e(l)("\u57DF\u540D\uFF1A")),1)]),t("div",a6,[O(t("input",{type:"text",placeholder:"myhost.example.com","onUpdate:modelValue":h[1]||(h[1]=_=>k.value=_),required:""},null,512),[[at,k.value,void 0,{trim:!0}]])])]),t("div",o6,[t("div",n6,[t("span",null,i(e(l)("\u7528\u6237\u540D\uFF1A")),1)]),t("div",i6,[O(t("input",{type:"text","onUpdate:modelValue":h[2]||(h[2]=_=>g.value=_),placeholder:e(l)("\u8BF7\u8F93\u5165\u7528\u6237\u540D"),required:""},null,8,r6),[[at,g.value,void 0,{trim:!0}]])])]),t("div",s6,[t("div",d6,[t("span",null,i(e(l)("\u5BC6\u7801\uFF1A")),1)]),t("div",l6,[O(t("input",{type:"password","onUpdate:modelValue":h[3]||(h[3]=_=>p.value=_),placeholder:e(l)("\u8BF7\u8F93\u5165\u5BC6\u7801"),required:""},null,8,u6),[[at,p.value,void 0,{trim:!0}]])])])],2),t("div",c6,[t("div",{class:"close",onClick:v,type:"button"},i(e(l)("\u8FD4\u56DE")),1),t("button",{class:"next save",type:"submit",disabled:m.value},i(e(l)("\u4FDD\u5B58")),9,p6)])],40,L2)]))}});var Je=N(f6,[["__scopeId","data-v-6e29e960"]]);const m6={class:"action-main"},g6=I({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(o){const n=o,a=E(""),l=E("index"),u=g=>{if(g!=null){if(g=="ddnsto"){d();return}l.value=g}else c()},d=()=>{c(),B2({url:n.url})},c=()=>{n.Close&&n.Close()},k=E("ddnsto");return(g,p)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[t("div",m6,[l.value=="index"?(r(),Z(A1,{key:0,onSetup:u,active:k.value,"onUpdate:active":p[0]||(p[0]=m=>k.value=m)},null,8,["active"])):l.value=="ddns-ali"?(r(),Z(Je,{key:1,onSetup:u,target:a.value,"onUpdate:target":p[1]||(p[1]=m=>a.value=m),name:"ali"},null,8,["target"])):l.value=="ddns-dnspod"?(r(),Z(Je,{key:2,onSetup:u,target:a.value,"onUpdate:target":p[2]||(p[2]=m=>a.value=m),name:"dnspod"},null,8,["target"])):l.value=="ddns-oray"?(r(),Z(Je,{key:3,onSetup:u,target:a.value,"onUpdate:target":p[3]||(p[3]=m=>a.value=m),name:"oray"},null,8,["target"])):l.value=="ddns-success"?(r(),Z(j1,{key:4,onSetup:u,target:a.value},null,8,["target"])):D("",!0)])]),_:1},8,["Close"]))}});var v6=N(g6,[["__scopeId","data-v-6f1d92d9"]]);const b6=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(v6,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},Ve=o=>(ut("data-v-134135a2"),o=o(),ct(),o),h6={class:"content"},_6={class:"tab"},x6=Ve(()=>t("div",{class:"title"},"DDNSTO",-1)),w6={key:0},k6={key:1},y6=Ve(()=>t("div",{class:"title"},"IPv4",-1)),F6={key:0},E6={key:1},$6=Ve(()=>t("div",{class:"title"},"IPv6",-1)),C6={key:0},D6={key:1},B6={key:0,class:"info"},Y6={class:"status"},A6=Ve(()=>t("div",null,"DDNSTO",-1)),S6={key:0},z6={key:1,class:"offline"},P6={class:"title_box"},T6={class:"title"},I6={class:"path"},M6=["href","title"],L6={key:1},O6={class:"item_btn",href:"https://www.kooldns.cn/app/#/devices",target:"_blank"},N6={key:1,class:"info"},V6={class:"status"},G6={key:0,class:"offline"},j6={key:1},U6={class:"title_box"},q6={class:"title"},R6={class:"path"},W6={key:0},H6=["href"],J6={key:2,href:"/cgi-bin/luci/admin/services/ddns"},Z6={key:2,class:"info"},K6={class:"status"},Q6={key:0,class:"offline"},X6={key:1},t5={class:"title_box"},e5={class:"title"},a5={class:"path"},o5={key:0},n5=["href"],i5={key:2,href:"/cgi-bin/luci/admin/services/ddns"},r5=I({setup(o){const{$gettext:n}=J(),a=E(0),l=E(!1),u=f=>{a.value=f,l.value=!0},d=f=>Boolean(f&&f!=="Stopped"&&f!=="Disabled"),c=()=>{if(l.value)return;const F=[{index:0,active:Boolean(p.value.ddnstoDomain)},{index:1,active:d(p.value.ipv4Domain)},{index:2,active:d(p.value.ipv6Domain)}].find(w=>w.active);a.value=F?F.index:0};let k=!1,g;const p=E({}),m=function(){!k||(document.hidden?Promise.resolve():G.Guide.GetDdns.GET().then(f=>{var F;f!=null&&f.data&&(((F=f==null?void 0:f.data)==null?void 0:F.success)||0)==0&&f.data.result&&(p.value=f.data.result,c())})).then(()=>{!k||(g=window.setTimeout(m,3e3))})};Pt(()=>{k=!0,g=window.setTimeout(m,1100)}),Nt(()=>{g!==void 0&&window.clearTimeout(g),k=!1});const v=()=>{b6({url:p.value.ddnstoDomain})},b=Q(()=>{const f=p.value.ipv4Domain;return!f||f=="Stopped"||f=="Disabled"?f:`http://${f}`}),y=Q(()=>{const f=p.value.ipv6Domain;return!f||f=="Stopped"||f=="Disabled"?f:`http://${f}`});return(f,F)=>(r(),Z(Wt,{title:e(n)("\u8FDC\u7A0B\u57DF\u540D"),showSettings:!0,style:{width:"100%",height:"100%",display:"block"}},{icon:V(()=>[Y(He,{color:"#00a63e",class:"icon"})]),settings:V(()=>[t("div",{class:"btn_settings",onClick:v},[Y(He,{color:"#0a0a0a",class:"icon1 earthIcon",style:{"margin-right":"6px"}}),dt(" "+i(e(n)("\u57DF\u540D\u914D\u7F6E")),1)])]),default:V(()=>{var w,h,_,x,C,S;return[t("div",h6,[t("div",_6,[t("div",{class:lt(["item cloud",{active:a.value==0}]),onClick:F[0]||(F[0]=A=>u(0))},[Y(He,{color:"#155dfc",class:"icon2"}),x6,(w=p.value)!=null&&w.ddnstoDomain?(r(),s("span",w6,i(e(n)("\u6B63\u5E38")),1)):(r(),s("span",k6,i(e(n)("\u672A\u542F\u52A8")),1))],2),e(b)?(r(),s("div",{key:0,class:lt(["item memory",{active:a.value==1}]),onClick:F[1]||(F[1]=A=>u(1))},[Y(pa,{color:"#00a63e",class:"icon2"}),y6,e(b)=="Stopped"||e(b)=="Disabled"?(r(),s("span",F6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",E6,i(e(n)("\u6B63\u5E38")),1))],2)):D("",!0),e(y)?(r(),s("div",{key:1,class:lt(["item network",{active:a.value==2}]),onClick:F[2]||(F[2]=A=>u(2))},[Y(g1,{class:"icon2"}),$6,e(y)=="Stopped"||e(y)=="Disabled"?(r(),s("span",C6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",D6,i(e(n)("\u6B63\u5E38")),1))],2)):D("",!0)]),a.value==0?(r(),s("div",B6,[t("div",Y6,[A6,(h=p.value)!=null&&h.ddnstoDomain?(r(),s("span",S6,i(e(n)("\u6B63\u5E38")),1)):(r(),s("span",z6,i(e(n)("\u672A\u542F\u52A8")),1))]),t("div",P6,[t("div",T6,i(e(n)("\u667A\u80FD\u5185\u7F51\u7A7F\u900F\u670D\u52A1")),1),t("div",I6,[(_=p.value)!=null&&_.ddnstoDomain?(r(),s("a",{key:0,class:"configure",href:(x=p.value)==null?void 0:x.ddnstoDomain,target:"_blank",rel:"noopener noreferrer",title:(C=p.value)==null?void 0:C.ddnstoDomain},i((S=p.value)==null?void 0:S.ddnstoDomain),9,M6)):(r(),s("div",L6,i(e(n)("\u672A\u5B89\u88C5\u6216\u672A\u914D\u7F6E")),1)),t("span",null,[t("a",O6,i(e(n)("\u63A7\u5236\u53F0")),1)])])])])):D("",!0),a.value==1?(r(),s("div",N6,[t("div",V6,[t("div",null,i(e(n)("\u5F53\u524D\u72B6\u6001:")),1),e(b)=="Stopped"||e(b)=="Disabled"?(r(),s("span",G6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",j6,i(e(n)("\u6B63\u5E38")),1))]),t("div",U6,[t("div",q6,"IPv4 "+i(e(n)("\u52A8\u6001\u57DF\u540D\u89E3\u6790")),1),t("div",R6,[e(b)=="Stopped"||e(b)=="Disabled"?(r(),s("div",W6,i(e(b)),1)):(r(),s("a",{key:1,class:"configure",href:e(b),target:"_blank",rel:"noopener noreferrer"},i(e(b)),9,H6)),e(b)?(r(),s("a",J6,[Y(ya,{class:"icon3"})])):D("",!0)])])])):D("",!0),a.value==2?(r(),s("div",Z6,[t("div",K6,[t("div",null,i(e(n)("\u5F53\u524D\u72B6\u6001:")),1),e(y)=="Stopped"||e(y)=="Disabled"?(r(),s("span",Q6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",X6,i(e(n)("\u6B63\u5E38")),1))]),t("div",t5,[t("div",e5,"IPv6 "+i(e(n)("\u52A8\u6001\u57DF\u540D\u89E3\u6790")),1),t("div",a5,[e(y)=="Stopped"||e(y)=="Disabled"?(r(),s("div",o5,i(e(y)),1)):(r(),s("a",{key:1,class:"configure",href:e(y),target:"_blank",rel:"noopener noreferrer"},i(e(y)),9,n5)),e(y)?(r(),s("a",i5,[Y(ya,{class:"icon3"})])):D("",!0)])])])):D("",!0)])]}),_:1},8,["title"]))}});var s5=N(r5,[["__scopeId","data-v-134135a2"]]);const d5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},l5=["fill"],u5=I({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",d5,[t("path",{d:"M879.674 544.51l-158.254-0.221c-8.534 2.287-17.305-2.776-19.588-11.307l-23.862-75.877-74.742 350.891c0 0-1.523 18.507-11.518 18.507s-26.9 0.281-26.9 0.281c-8.259 2.213-16.748-2.687-18.961-10.949l-92.741-457.648-70.305 330.634c-2.261 8.291-11.94 15.206-20.385 12.986l-24.876 0.339c-8.723 2.293-17.685-2.789-20.023-11.349L270.629 544.51 143.993 544.51c-8.831 0-15.993-7.159-15.993-15.993l0-31.986c0-8.831 7.162-15.993 15.993-15.993l157.429-0.516c9.565-0.304 17.685 0.788 20.023 9.351l24.386 76.092 68.642-358.907c0 0 3.4-10.894 14.397-10.894 10.994 0 34.107-0.448 34.107-0.448 8.262-2.213 16.751 2.687 18.965 10.949l91.912 454.126 67.948-326.182c2.213-8.262 8.707-15.161 16.965-12.948l27.316-0.333c8.531-2.287 17.301 2.776 19.588 11.31l46.665 148.4 127.337 0c8.835 0 15.993 7.162 15.993 15.993l0 31.986C895.667 537.352 888.508 544.51 879.674 544.51z","p-id":"5314",fill:o.color},null,8,l5)]))}}),c5=()=>{var n;const o=document.body.getAttribute("theme");if(o)switch(o){case"dark":case"light":return o}return(n=window.matchMedia("(prefers-color-scheme: dark)"))!=null&&n.matches?"dark":"light"},Ha=()=>c5()=="dark",Ja=o=>(ut("data-v-47c7bd93"),o=o(),ct(),o),p5={class:"title_box"},f5={class:"display_flex"},m5={class:"network_tag"},g5={class:"tag_item"},v5=Ja(()=>t("div",{class:"tag_dn"},null,-1)),b5={class:"tag_item"},h5=Ja(()=>t("div",{class:"tag_up"},null,-1)),_5={class:"speed"},x5={class:"speed_item"},w5={style:{color:"#1596fd"}},k5={class:"speed_item"},y5={style:{color:"#00a63e"}},F5=I({setup(o){const{$gettext:n}=J();Xe([Ma,La,Oa,ta,ea,Na]);const a=E(),l=_=>{var C;const x=(C=a.value)==null?void 0:C[_];return!x||x.startTime==0?"":p(x.startTime*1e3)+"-"+p(x.endTime*1e3)},u=Q(()=>{var x;let _=[];return(x=a.value)==null||x.forEach(C=>{_.push({value:C.uploadSpeed})}),_}),d=Q(()=>{var x;let _=[];return(x=a.value)==null||x.forEach(C=>{_.push({value:C.downloadSpeed})}),_}),c=Q(()=>{var x;let _="";if(a.value){let C=((x=a.value)==null?void 0:x.length)||0;if(C>0){let S=a.value[C-1];_=m(S.uploadSpeed)+"/s"}}return _}),k=Q(()=>{var x;let _="";if(a.value){let C=((x=a.value)==null?void 0:x.length)||0;if(C>0){let S=a.value[C-1];_=m(S.downloadSpeed)+"/s"}}return _});Q(()=>{var x;let _=[];return(x=a.value)==null||x.forEach(C=>{_.push({value:C.downloadSpeed+C.uploadSpeed})}),_});const g=()=>L(this,null,function*(){var _;try{const x=yield G.Network.Statistics.GET();if(x.data&&(_=x.data.result)!=null&&_.items){const C=x.data.result.slots||10;if(x.data.result.items.length<C){let S=x.data.result.items;for(;S.length<C;)S=[{downloadSpeed:0,endTime:0,startTime:0,uploadSpeed:0}].concat(S);a.value=S}else x.data.result.items.length>C?a.value=x.data.result.items.slice(C-x.data.result.items.length):a.value=x.data.result.items}}catch(x){console.log(x)}}),p=Mt.dateForm,m=Mt.byteToSize,v=E(),b=E();let y=null,f=null,F=null;const w=_=>{const x=Ha();return y=aa(_,x?"dark":"light"),y.setOption({animation:!1,backgroundColor:x?"#2c2c2c":"#fff",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:C=>{if(Array.isArray(C)){let S="";C.length>0&&(S=l(C[0].axisValue));for(let A=0;A<C.length;A++)S=`${S}<br>${C[A].seriesName}: ${m(C[A].value)}/s`;return S.toString()}else{const S=C;return`${l(S.axisValue)}<br>${S.seriesName}: ${m(S.value)}/s`}}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{color:["#999"]},show:!1},name:"",show:!1,nameGap:0,nameTextStyle:{height:0,lineHeight:0,padding:0}},title:{text:"",textStyle:{fontSize:12,color:x?"#cccccc":"rgba(0, 0, 0, 0.6)"},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(C,S){return`${m(C)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:n("\u4E0B\u8F7D"),data:d.value,type:"line",symbol:"none",showSymbol:!1,symbolSize:0,smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(32, 199, 247, 1)"},{offset:1,color:"rgba(32, 199, 247, 0.1)"}],global:!1}}},{name:n("\u4E0A\u4F20"),data:u.value,type:"line",symbol:"none",showSymbol:!1,symbolSize:0,smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(85, 58, 254, 1)"},{offset:1,color:"rgba(85, 58, 254, 0.1)"}],global:!1}}}],grid:{left:"2%",right:"2%",bottom:"0%",top:"10%",containLabel:!0}}),y},h=()=>{if(!y||!v.value)return;const _=Math.max(v.value.clientWidth,50),x=Math.max(v.value.clientHeight,50);y.resize({width:_,height:x})};return Pt(()=>{setTimeout(()=>L(this,null,function*(){if(v.value){yield g();const _=w(v.value),x=v.value;h(),F=()=>{h()},window.addEventListener("resize",F),"ResizeObserver"in window&&(f=new ResizeObserver(()=>{h()}),b.value&&f.observe(b.value),f.observe(x));const C=()=>L(this,null,function*(){if(y!=null){if(!document.hidden){if(yield g(),y==null)return;_.setOption({series:[{name:n("\u4E0B\u8F7D"),data:d.value,type:"line",areaStyle:{},smooth:!0},{name:n("\u4E0A\u4F20"),data:u.value,type:"line",areaStyle:{},smooth:!0}]}),h()}setTimeout(C,5e3)}});setTimeout(C,5e3)}}),900)}),Nt(()=>{y!=null&&(y.dispose(),y=null),F&&(window.removeEventListener("resize",F),F=null),f&&(f.disconnect(),f=null)}),(_,x)=>(r(),s("div",{class:"network_container",ref_key:"containerRef",ref:b},[t("div",p5,[t("div",f5,[Y(u5,{color:"#20c7f7",class:"icon"}),t("span",null,i(e(n)("\u7F51\u7EDC\u6D41\u91CF")),1)]),t("div",null,[t("div",m5,[t("div",g5,[v5,t("span",null,i(e(n)("\u4E0B\u8F7D")),1)]),t("div",b5,[h5,t("span",null,i(e(n)("\u4E0A\u4F20")),1)])])])]),t("div",_5,[t("div",x5,[t("span",null,i(e(n)("\u4E0B\u8F7D\u901F\u5EA6")),1),t("div",w5,i(e(k)),1)]),t("div",k5,[t("span",null,i(e(n)("\u4E0A\u4F20\u901F\u5EA6")),1),t("div",y5,i(e(c)),1)])]),t("div",{ref_key:"el",ref:v,class:"echart"},null,512)],512))}});var Fa=N(F5,[["__scopeId","data-v-47c7bd93"]]);const E5={width:"32",height:"32",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},$5=["fill"],Ea=I({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",E5,[t("path",{d:"M512 298.666667c-162.133333 0-285.866667 68.266667-375.466667 213.333333 89.6 145.066667 213.333333 213.333333 375.466667 213.333333s285.866667-68.266667 375.466667-213.333333c-89.6-145.066667-213.333333-213.333333-375.466667-213.333333z m0 469.333333c-183.466667 0-328.533333-85.333333-426.666667-256 98.133333-170.666667 243.2-256 426.666667-256s328.533333 85.333333 426.666667 256c-98.133333 170.666667-243.2 256-426.666667 256z m0-170.666667c46.933333 0 85.333333-38.4 85.333333-85.333333s-38.4-85.333333-85.333333-85.333333-85.333333 38.4-85.333333 85.333333 38.4 85.333333 85.333333 85.333333z m0 42.666667c-72.533333 0-128-55.466667-128-128s55.466667-128 128-128 128 55.466667 128 128-55.466667 128-128 128z",fill:o.color,"p-id":"5225"},null,8,$5)]))}}),C5={width:"32",height:"32",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},D5=["fill"],$a=I({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",C5,[t("path",{d:"M332.8 729.6l34.133333-34.133333c42.666667 12.8 93.866667 21.333333 145.066667 21.333333 162.133333 0 285.866667-68.266667 375.466667-213.333333-46.933333-72.533333-102.4-128-166.4-162.133334l29.866666-29.866666c72.533333 42.666667 132.266667 106.666667 183.466667 192-98.133333 170.666667-243.2 256-426.666667 256-59.733333 4.266667-119.466667-8.533333-174.933333-29.866667z m-115.2-64c-51.2-38.4-93.866667-93.866667-132.266667-157.866667 98.133333-170.666667 243.2-256 426.666667-256 38.4 0 76.8 4.266667 110.933333 12.8l-34.133333 34.133334c-25.6-4.266667-46.933333-4.266667-76.8-4.266667-162.133333 0-285.866667 68.266667-375.466667 213.333333 34.133333 51.2 72.533333 93.866667 115.2 128l-34.133333 29.866667z m230.4-46.933333l29.866667-29.866667c8.533333 4.266667 21.333333 4.266667 29.866666 4.266667 46.933333 0 85.333333-38.4 85.333334-85.333334 0-12.8 0-21.333333-4.266667-29.866666l29.866667-29.866667c12.8 17.066667 17.066667 38.4 17.066666 64 0 72.533333-55.466667 128-128 128-17.066667-4.266667-38.4-12.8-59.733333-21.333333zM384 499.2c4.266667-68.266667 55.466667-119.466667 123.733333-123.733333 0 4.266667-123.733333 123.733333-123.733333 123.733333zM733.866667 213.333333l29.866666 29.866667-512 512-34.133333-29.866667L733.866667 213.333333z",fill:o.color,"p-id":"5534"},null,8,D5)]))}}),B5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Y5=["fill"],xe=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",B5,[t("path",{d:"M512 96c229.76 0 416 186.24 416 416S741.76 928 512 928 96 741.76 96 512 282.24 96 512 96z m-32 448l-127.317333 0.021333c0.896 20.48 2.624 40.405333 5.12 59.669334l1.984 14.293333 2.474666 15.253333c19.754667 112.896 65.728 197.738667 117.76 222.997334L480 544z m191.317333 0.021333L544 544v312.234667c50.858667-24.725333 95.936-106.368 116.373333-215.509334l1.365334-7.488 2.474666-15.232a701.013333 701.013333 0 0 0 7.104-73.984z m-382.698666 0H161.429333c11.648 129.066667 92.992 238.08 206.101334 289.066667-22.122667-34.282667-40.362667-76.416-53.76-124.032l-3.029334-11.093333-3.52-14.165334-3.242666-14.464a744.490667 744.490667 0 0 1-15.36-125.312z m573.952 0H735.36a752.661333 752.661333 0 0 1-12.672 112.128l-2.688 13.184-3.242667 14.464-3.52 14.186667c-13.653333 52.138667-32.96 98.197333-56.789333 135.104 113.109333-50.986667 194.453333-160 206.08-289.066667zM367.530667 190.890667l-2.858667 1.301333C253.013333 243.733333 172.970667 352 161.429333 480h127.189334c1.536-39.04 5.866667-76.693333 12.672-112.149333l2.688-13.184 3.242666-14.464 3.52-14.186667c13.653333-52.138667 32.96-98.197333 56.789334-135.104zM480 167.765333c-50.709333 24.618667-95.68 105.898667-116.202667 214.592l-1.536 8.405334-2.474666 15.232a701.034667 701.034667 0 0 0-7.104 74.005333H480V167.765333z m176.469333 23.146667l2.56 4.053333c20.906667 33.429333 38.229333 73.984 51.093334 119.552l3.136 11.52 3.52 14.165334 3.242666 14.464c8.362667 39.253333 13.632 81.408 15.36 125.333333h127.189334c-11.626667-129.088-92.970667-238.101333-206.101334-289.066667zM544 167.765333L544 480h127.317333a707.136 707.136 0 0 0-5.333333-61.376l-1.770667-12.629333-2.474666-15.232c-19.754667-112.874667-65.706667-197.717333-117.717334-222.997334z","p-id":"4600",fill:o.color},null,8,Y5)]))}}),A5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},S5=["fill"],z5=["fill"],P5=I({props:{color:{type:String,default:"#00a63e"}},setup(o){return(n,a)=>(r(),s("svg",A5,[t("path",{d:"M986.112 179.2c-12.288-12.288-31.744-12.288-44.032 0l-472.064 471.04-180.224-180.224c-12.288-12.288-31.744-12.288-44.032 0-12.288 12.288-12.288 31.744 0 44.032l202.752 201.728c6.144 6.144 12.288 9.216 22.528 9.216 9.216 0 15.36-3.072 22.528-9.216l494.592-492.544c10.24-12.288 10.24-31.744-2.048-44.032z",fill:o.color,"p-id":"11312"},null,8,S5),t("path",{d:"M1024 548.864c0-17.408-14.336-31.744-31.744-31.744-17.408 0-31.744 14.336-31.744 31.744C941.056 779.264 747.52 959.488 513.024 959.488 265.216 959.488 64.512 759.808 64.512 512c0-247.808 200.704-447.488 448.512-447.488 69.632 0 135.168 15.36 194.56 44.032h1.024c4.096 1.024 7.168 2.048 11.264 2.048 17.408 0 31.744-14.336 31.744-31.744 0-12.288-7.168-23.552-17.408-28.672C665.6 17.408 590.848 0 513.024 0 229.376 0 0 229.376 0 512s229.376 512 513.024 512c270.336 0 491.52-208.896 510.976-475.136z",fill:o.color,"p-id":"11313"},null,8,z5)]))}}),T5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},I5=["fill"],M5=I({props:{color:{type:String,default:"#e7000b"}},setup(o){return(n,a)=>(r(),s("svg",T5,[t("path",{d:"M511.9744 706.6624a57.2672 57.2672 0 0 1 56.96 57.5488c0 20.5568-10.8544 39.552-28.4672 49.8432a56.4736 56.4736 0 0 1-56.9856 0 57.6512 57.6512 0 0 1-28.4928-49.8432c0-31.7696 25.4976-57.5488 56.9856-57.5488zM190.1824 147.3024l2.4832 2.2272 614.4 614.4a30.72 30.72 0 0 1-40.96 45.696l-2.4832-2.2528-229.4528-229.504a189.6704 189.6704 0 0 0-180.864 83.8912 29.3376 29.3376 0 0 1-40.9344 7.3728 30.976 30.976 0 0 1-8.32-41.6768 248.8576 248.8576 0 0 1 170.624-109.056l-78.7968-78.7968a346.8288 346.8288 0 0 0-156.7744 112.128 29.4144 29.4144 0 0 1-50.944-8.4224 31.0784 31.0784 0 0 1 4.736-30.0544 406.9888 406.9888 0 0 1 156.1088-120.4736l-71.9872-72.0128a504.7808 504.7808 0 0 0-150.6816 120.32 29.2864 29.2864 0 0 1-41.9328 2.7904 31.0016 31.0016 0 0 1-2.9184-42.88 564.608 564.608 0 0 1 150.8608-124.928L149.2224 192.9472a30.72 30.72 0 0 1 40.96-45.6704z m321.792 211.6352a404.992 404.992 0 0 1 319.0528 154.368 30.976 30.976 0 0 1-4.3008 42.8288 29.184 29.184 0 0 1-41.9072-4.4032 345.984 345.984 0 0 0-229.7088-129.2032l-63.1552-63.104c6.656-0.3328 13.312-0.4864 20.0192-0.4864z m0-156.6976c166.1184 0 322.9952 72.448 430.4896 198.8608 10.752 12.672 9.472 31.872-2.8416 42.9312a29.184 29.184 0 0 1-42.0352-2.9184 505.344 505.344 0 0 0-385.6128-177.92 509.184 509.184 0 0 0-105.2672 11.008l-50.2272-50.2784A566.656 566.656 0 0 1 512 202.24z","p-id":"5359",fill:o.color},null,8,I5)]))}}),L5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},O5=["fill"],N5=["fill"],V5=["fill"],G5=I({props:{color:{type:String,default:"#f54900"}},setup(o){return(n,a)=>(r(),s("svg",L5,[t("path",{d:"M512 179.2l390.4 627.2H128l384-627.2m0-64c-19.2 0-44.8 12.8-51.2 32l-390.4 627.2c-25.6 44.8 6.4 96 51.2 96H896c51.2 0 83.2-57.6 51.2-96l-384-627.2c-6.4-19.2-32-32-51.2-32z",fill:o.color,"p-id":"4490"},null,8,O5),t("path",{d:"M512 640c-19.2 0-32-12.8-32-32v-192c0-19.2 12.8-32 32-32s32 12.8 32 32v192c0 19.2-12.8 32-32 32z",fill:o.color,"p-id":"4491"},null,8,N5),t("path",{d:"M512 723.2m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z",fill:o.color,"p-id":"4492"},null,8,V5)]))}}),j5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},U5=["fill"],Za=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",j5,[t("path",{d:"M511.3 116.7l339.1 193.8v387.6L511.3 891.9 172.2 698.1V310.5l339.1-193.8zM802 345.6L535.5 516.7v305.5L802 670V345.6z m-581.4 0.3V670l266.5 152.3V516.7L220.6 345.9z m434.1-87.3L401.1 405l110.3 71.4 248.9-161.5L658 256.4c-1.1 0.7-2.2 1.5-3.3 2.2z m-143.4-86L262.2 314.9l93.4 60.5c0.5-0.4 1.1-0.7 1.6-1l252.3-145.7-98.2-56.1z m0 0",fill:o.color,"p-id":"14790"},null,8,U5)]))}}),q5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},R5=["fill"],W5=["fill"],H5=["fill"],ze=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",q5,[t("path",{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6c-3.2 2.8-3.6 7.8-0.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4 0.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-0.9l36-42.9c2.8-3.3 2.4-8.3-0.9-11.2zM840.4 480.4C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4c-3.4 2.8-3.8 7.9-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3z","p-id":"5126",fill:o.color},null,8,R5),t("path",{d:"M957.1 341.4C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4-3.5 2.8-4 7.9-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3z","p-id":"5127",fill:o.color},null,8,W5),t("path",{d:"M512 778m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z","p-id":"5128",fill:o.color},null,8,H5)]))}}),J5=["onSubmit"],Z5={class:"actioner-dns_header"},K5={class:"actioner-dns_body"},Q5={class:"label-item"},X5={class:"label-item_key"},t3={class:"label-item_value"},e3=["disabled"],a3={value:"manual"},o3={class:"label-item"},n3={class:"label-item_key"},i3={class:"label-item_value"},r3=["placeholder","onUpdate:modelValue"],s3={class:"label-item_key"},d3={class:"label-item_value"},l3=["placeholder","onUpdate:modelValue"],u3={key:1,class:"label-message"},c3={class:"actioner-dns_footer"},p3=["disabled"],f3={key:1,class:"actioner-dns"},m3={class:"actioner-dns_header"},g3={class:"actioner-dns_body"},v3={class:"config-message"},b3={class:"actioner-dns_footer"},h3=I({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(0),d=Fe(),c=d.status,k=Q(()=>d.status.proto!="static"),g=()=>{let F=c.dnsList||[];for(F=F.filter(w=>w);F.length<2;)F.push("");return F},p=E({interfaceName:c.defaultInterface||"",dnsProto:c.dnsProto||"manual",manualDnsIp:g()}),m=E(""),v=E(!1),b=()=>L(this,null,function*(){m.value="";let F={};switch(p.value.dnsProto){case"auto":break;case"manual":if(F.manualDnsIp=[],!p.value.manualDnsIp[0]){$.Error(a("\u81F3\u5C11\u9700\u8981\u586B\u5199\u4E00\u4E2ADNS"));return}F.manualDnsIp=p.value.manualDnsIp.filter(h=>h);break}F.dnsProto=p.value.dnsProto,F.interfaceName=p.value.interfaceName;const w=$.Loading(a("\u914D\u7F6E\u4E2D..."));try{const h=yield G.Guide.DnsConfig.POST(F);if(h!=null&&h.data){const{success:_,error:x}=h==null?void 0:h.data;x&&(m.value=x),(_==null||_==0)&&($.Success(a("\u914D\u7F6E\u6210\u529F")),u.value=1)}}catch(h){m.value=h}w.Close()}),y=F=>{F.preventDefault(),n.Close&&n.Close()},f=F=>{location.reload()};return(F,w)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[u.value==0?(r(),s("form",{key:0,class:"actioner-dns",onSubmit:ft(b,["prevent"])},[t("div",Z5,[t("span",null,i(e(a)("DNS\u914D\u7F6E")),1)]),t("div",K5,[t("div",Q5,[t("div",X5,[t("span",null,i(e(a)("DNS\u9009\u9879")),1)]),t("div",t3,[O(t("select",{"onUpdate:modelValue":w[0]||(w[0]=h=>p.value.dnsProto=h)},[t("option",{value:"auto",disabled:!e(k)},i(e(a)("\u81EA\u52A8\u83B7\u53D6DNS")),9,e3),t("option",a3,i(e(a)("\u81EA\u5B9A\u4E49DNS")),1)],512),[[pt,p.value.dnsProto]])])]),p.value.dnsProto=="manual"?(r(!0),s(U,{key:0},tt(p.value.manualDnsIp,(h,_)=>(r(),s("div",o3,[_==0?(r(),s(U,{key:0},[t("div",n3,[t("span",null,i(e(a)("DNS\u670D\u52A1\u5668\u5730\u5740")),1)]),t("div",i3,[O(t("input",{type:"text",placeholder:e(a)("\u8BF7\u8F93\u5165DNS\u5730\u5740"),required:"","onUpdate:modelValue":x=>p.value.manualDnsIp[_]=x},null,8,r3),[[at,p.value.manualDnsIp[_],void 0,{trim:!0}]])])],64)):(r(),s(U,{key:1},[t("div",s3,i(e(a)("\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740")),1),t("div",d3,[O(t("input",{type:"text",placeholder:e(a)("\u5907\u7528DNS\u5730\u5740"),"onUpdate:modelValue":x=>p.value.manualDnsIp[_]=x},null,8,l3),[[at,p.value.manualDnsIp[_],void 0,{trim:!0}]])])],64))]))),256)):D("",!0),m.value?(r(),s("div",u3,i(m.value),1)):D("",!0)]),t("div",c3,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:v.value},i(e(a)("\u786E\u8BA4")),9,p3),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:y},i(e(a)("\u53D6\u6D88")),1)])],40,J5)):u.value==1?(r(),s("div",f3,[t("div",m3,[t("span",null,i(e(a)("DNS\u914D\u7F6E")),1)]),t("div",g3,[t("div",v3,i(e(a)("DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")),1)]),t("div",b3,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:f},i(e(a)("\u5B8C\u6210")),1)])])):D("",!0)]),_:1},8,["Close"]))}});var _3=N(h3,[["__scopeId","data-v-5cff2770"]]);const Ka=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=xt(_3,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},x3=["onSubmit"],w3={class:"actioner-dns_header"},k3={class:"actioner-dns_body"},y3={class:"label-item"},F3={class:"label-item_key"},E3={class:"label-item_value"},$3={class:"item_info"},C3={class:"label-item"},D3={class:"label-item_key"},B3={class:"label-item_value"},Y3={selected:"true",value:""},A3=["value"],S3={class:"actioner-dns_footer"},z3=["disabled"],P3={key:1,class:"actioner-dns"},T3={class:"actioner-dns_header"},I3={class:"softsource_tit"},M3={class:"actioner-dns_body"},L3={class:"finished"},O3={class:"successed"},N3={class:"btns"},V3=I({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(0),d=E(""),c=E(),k=E();(()=>{G.Guide.SoftSourceList.GET().then(b=>{var y,f;if((y=b==null?void 0:b.data)!=null&&y.result){const F=(f=b==null?void 0:b.data)==null?void 0:f.result;k.value=F}}).then(()=>G.Guide.GetSoftSource.GET()).then(b=>{var y,f;if((y=b==null?void 0:b.data)!=null&&y.result){const F=b.data.result;c.value=F.softSource,(f=k.value)!=null&&f.softSourceList.find(w=>w.identity==F.softSource.identity)&&(d.value=F.softSource.identity)}})})();const p=b=>{b.preventDefault(),n.Close&&n.Close()},m=b=>{const y=$.Loading(a("\u6B63\u5728\u5207\u6362\u4E2D..."));G.Guide.SoftSource.POST({softSourceIdentity:d.value}).then(f=>{if(f!=null&&f.data){if((f.data.success||0)==0){u.value=1;return}else if(f.data.error)throw f.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(f=>{$.Error(f)}).finally(()=>y.Close())},v=b=>{b.preventDefault(),location.reload()};return(b,y)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>{var f,F;return[u.value==0?(r(),s("form",{key:0,class:"actioner-dns",onSubmit:ft(m,["prevent"])},[t("div",w3,[t("span",null,i(e(a)("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)]),t("div",k3,[t("div",y3,[t("div",F3,[t("span",null,i(e(a)("\u5F53\u524D\u8F6F\u4EF6\u6E90")),1)]),t("div",E3,[t("p",$3,i((f=c.value)==null?void 0:f.name),1)])]),t("div",C3,[t("div",D3,[t("span",null,i(e(a)("\u5207\u6362\u8F6F\u4EF6\u6E90")),1)]),t("div",B3,[O(t("select",{name:"",id:"","onUpdate:modelValue":y[0]||(y[0]=w=>d.value=w)},[t("option",Y3,i(e(a)("\u8BF7\u9009\u62E9\u8F6F\u4EF6\u6E90")),1),(r(!0),s(U,null,tt((F=k.value)==null?void 0:F.softSourceList,(w,h)=>(r(),s("option",{value:w.identity,key:h},i(w.name),9,A3))),128))],512),[[pt,d.value,void 0,{trim:!0}]])])])]),t("div",S3,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:d.value==""},i(e(a)("\u786E\u8BA4")),9,z3),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:p},i(e(a)("\u53D6\u6D88")),1)])],40,x3)):D("",!0),u.value==1?(r(),s("form",P3,[t("div",T3,[t("span",I3,i(e(a)("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)]),t("div",M3,[t("div",L3,[Y(ua)]),t("p",O3,i(e(a)("\u914D\u7F6E\u6210\u529F\uFF01")),1),t("div",N3,[t("button",{class:"cbi-button cbi-button-apply softsource_successed",onClick:v},i(e(a)("\u786E\u5B9A")),1)])])])):D("",!0)]}),_:1},8,["Close"]))}});var G3=N(V3,[["__scopeId","data-v-3f8f9931"]]);const Qa=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=xt(G3,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},j3=o=>(ut("data-v-24e35542"),o=o(),ct(),o),U3={class:"info_content"},q3={key:0,class:"status_box"},R3={class:"status_name"},W3={class:"status_time"},H3={key:1,class:"status_box"},J3={class:"flex"},Z3={class:"status_name"},K3={class:"dns-btn"},Q3={class:"status_time",style:{background:"#ffe2e2",color:"#c10007"}},X3={key:2,class:"status_box"},t8={class:"flex"},e8={class:"status_name"},a8={class:"dns-btn"},o8={class:"status_time",style:{background:"#ffe2e2",color:"#c10007"}},n8={key:3,class:"status_box"},i8={class:"status_name"},r8={class:"status_time",style:{background:"#ffe2e2",color:"#c10007"}},s8={key:4,class:"status_box"},d8={class:"status_name"},l8={class:"ip_info"},u8={class:"ip_item"},c8={class:"ip_action"},p8={class:"ip_tag"},f8={key:0,class:"ip_address"},m8={key:1,class:"ip_address"},g8={class:"ip_info"},v8={class:"ip_item"},b8=j3(()=>t("div",null,"IPv6",-1)),h8={key:0,class:"ip_action"},_8={key:1,class:"ip_tag"},x8={key:0,class:"ip_address"},w8={key:1,class:"ip_address"},k8={class:"ip_info",style:{"margin-bottom":"0"}},y8={class:"ip_item"},F8={class:"ip_address"},E8=I({setup(o){const{$gettext:n}=J(),a=Fe(),l=Pe(),u="***************************************",d=()=>{const x=E(!1),C=E(60);let S=null;const A=()=>{S!==null&&(clearInterval(S),S=null)},z=()=>{C.value>0?C.value--:A()},B=()=>{A(),S=setInterval(z,1e3)};$t(C,M=>{M===0&&(x.value=!1)});const H=()=>{x.value=!x.value,x.value?(C.value=60,B()):(C.value=60,A())};return Nt(A),{isShow:x,toggle:H}},{isShow:c,toggle:k}=d(),{isShow:g,toggle:p}=d(),m=Q(()=>a.status),v=()=>{Ka()},b=()=>{Qa()};Q(()=>a.deviceList);const y=gt({portList:[],load:!1}),f=x=>{switch(x){case"pppoe":return n("\u62E8\u53F7\u4E0A\u7F51");case"static":return n("\u9759\u6001\u7F51\u7EDC");case"dhcp":return"DHCP"}return x&&x.toUpperCase()},F=x=>{switch(x){case"manual":return n("\u624B\u52A8\u914D\u7F6E");case"auto":return n("\u81EA\u52A8\u83B7\u53D6");default:return""}},w=()=>{(y.load&&document.hidden?Promise.resolve():G.Network.PortList.GET().then(x=>{if(x!=null&&x.data){const{result:C}=x==null?void 0:x.data;C&&(y.portList=C.ports||[])}})).finally(()=>{y.load=!0,setTimeout(w,1e4)})};w();const h=Mt.stampForm,_=()=>{l.push("/devicemanagement")};return(x,C)=>(r(),s("div",null,[Y(Wt,{title:e(n)("\u7F51\u7EDC\u8FDE\u63A5\u548CIP\u5730\u5740"),showSettings:!0},{settings:V(()=>[t("div",{class:"device-manage-btn",onClick:_},[Y(pa,{color:"#3a3a3a",class:"device-manage-icon"}),dt(" "+i(e(n)("\u8BBE\u5907\u7BA1\u7406")),1)])]),icon:V(()=>[Y(xe,{color:"#0a0a0a",class:"icon networkIcon"})]),default:V(()=>[t("div",U3,[e(m)!=null?(r(),s(U,{key:0},[e(m).networkInfo=="netSuccess"?(r(),s("div",q3,[t("div",R3,[Y(P5,{color:"#00a63e",class:"icon"}),t("span",null,i(e(n)("\u7F51\u7EDC\u8FDE\u63A5\u6B63\u5E38")),1)]),t("div",W3,i(e(h)(e(m).uptimeStamp)),1)])):e(m).networkInfo=="dnsFailed"?(r(),s("div",H3,[t("div",J3,[t("div",Z3,[Y(G5,{style:{width:"1.2rem",height:"1.2rem","margin-right":"4px"}}),t("span",null,i(e(n)("DNS\u9519\u8BEF")),1)]),t("div",K3,[t("button",{class:"btn-primary",onClick:v},i(e(n)("DNS\u914D\u7F6E")),1)])]),t("div",Q3,i(e(h)(e(m).uptimeStamp)),1)])):e(m).networkInfo=="softSourceFailed"?(r(),s("div",X3,[t("div",t8,[t("div",e8,[Y(Za,{color:"#9810fa",style:{width:"1.5rem",height:"1.5rem","margin-right":"4px"}}),t("span",null,i(e(n)("\u8F6F\u4EF6\u6E90\u9519\u8BEF")),1)]),t("div",a8,[t("button",{class:"btn-pink",onClick:b},i(e(n)("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)])]),t("div",o8,i(e(h)(e(m).uptimeStamp)),1)])):e(m).networkInfo=="netFailed"?(r(),s("div",n8,[t("div",i8,[Y(M5,{style:{width:"1.2rem",height:"1.2rem","margin-right":"4px"}}),t("span",null,i(e(n)("\u672A\u8054\u7F51")),1)]),t("div",r8,i(e(h)(e(m).uptimeStamp)),1)])):(r(),s("div",s8,[t("div",d8,[Y(ze,{color:"#d08700",class:"icon"}),t("span",null,i(e(n)("\u68C0\u6D4B\u4E2D...")),1)])]))],64)):D("",!0),t("div",l8,[t("div",u8,[t("div",null,"IPv4 \uFF08"+i(e(m).defaultInterface)+"\uFF09",1),t("div",c8,[t("div",p8,i(f(e(m).proto||"")),1),e(m).ipv4addr?(r(),s("div",{key:0,class:"ip_tag",style:{cursor:"pointer"},onClick:C[0]||(C[0]=(...S)=>e(k)&&e(k)(...S))},[e(c)?(r(),Z($a,{key:0})):(r(),Z(Ea,{key:1})),dt(" "+i(e(n)("\u5DF2\u542F\u7528")),1)])):D("",!0)])]),e(m).ipv4addr?(r(),s("div",f8,i(e(c)?e(m).ipv4addr:u),1)):(r(),s("div",m8,"-"))]),t("div",g8,[t("div",v8,[b8,e(m).ipv6addr?(r(),s("div",h8,[t("div",{class:"ip_tag",style:{cursor:"pointer"},onClick:C[1]||(C[1]=(...S)=>e(p)&&e(p)(...S))},[e(g)?(r(),Z($a,{key:0})):(r(),Z(Ea,{key:1})),dt(" "+i(e(n)("\u5DF2\u542F\u7528")),1)])])):(r(),s("div",_8,i(e(n)("\u672A\u542F\u7528")),1))]),e(m).ipv6addr?(r(),s("div",x8,i(e(g)?e(m).ipv6addr:u),1)):(r(),s("div",w8,"-"))]),t("div",k8,[t("div",y8,[t("div",null,"DNS\uFF08"+i(F(e(m).dnsProto))+"\uFF09",1)]),(r(!0),s(U,null,tt(e(m).dnsList,S=>(r(),s("div",F8,i(S),1))),256))])])]),_:1},8,["title"])]))}});var $8=N(E8,[["__scopeId","data-v-24e35542"]]);const C8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},D8=["fill"],Ca=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",C8,[t("path",{d:"M170.666667 647.253333a128.042667 128.042667 0 1 0 85.333333 0V256c0-71.850667 49.109333-128 106.666667-128S469.333333 184.149333 469.333333 256v512c0 116.650667 84.608 213.333333 192 213.333333s192-96.682667 192-213.333333V376.746667a128.042667 128.042667 0 1 0-85.333333 0V768c0 71.850667-49.109333 128-106.666667 128S554.666667 839.850667 554.666667 768V256c0-116.650667-84.608-213.333333-192-213.333333S170.666667 139.349333 170.666667 256v391.253333zM768 256a42.666667 42.666667 0 1 1 85.333333 0 42.666667 42.666667 0 0 1-85.333333 0zM213.333333 810.666667a42.666667 42.666667 0 1 1 0-85.333334 42.666667 42.666667 0 0 1 0 85.333334z",fill:o.color,"p-id":"39967"},null,8,D8)]))}}),B8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Y8=["fill"],fa=I({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",B8,[t("path",{d:"M680.64 960a61.184 61.184 0 0 1-44.864-19.072c-14.72-16.192-61.568-58.24-99.84-58.24-38.016 0-85.504 42.24-99.2 57.088a61.184 61.184 0 0 1-67.328 14.08l-1.28-0.448-116.352-65.088-1.152-0.832a55.872 55.872 0 0 1-18.752-67.456c0.064-0.192 10.752-24.768 10.752-47.232a123.52 123.52 0 0 0-123.392-123.328h-4.864c-19.52 0-35.392-17.28-40.448-44.096C73.6 603.2 64 552.384 64 512.384c0-40.064 9.536-90.88 9.92-92.992 5.12-27.136 21.376-44.544 41.152-44.096h4.16A123.52 123.52 0 0 0 242.56 251.904c0-22.4-10.688-46.976-10.816-47.232a55.68 55.68 0 0 1 18.944-67.392l1.216-0.832L374.72 68.992l1.28-0.576a62.336 62.336 0 0 1 67.2 13.888c14.528 15.296 60.48 54.848 97.664 54.848 36.8 0 82.496-38.784 96.96-53.76a62.336 62.336 0 0 1 67.264-13.44l1.28 0.64 118.592 65.92 1.152 0.768a55.808 55.808 0 0 1 18.816 67.456c-0.064 0.192-10.752 24.768-10.752 47.168a123.52 123.52 0 0 0 123.392 123.392h4.096c19.84-0.448 36.096 16.96 41.216 44.096 0.384 2.112 9.92 52.928 9.92 92.992 0 40-9.536 90.88-9.92 92.992-5.12 27.136-21.376 44.48-41.216 44.096h-4.096A123.52 123.52 0 0 0 834.176 772.8c0 22.4 10.688 47.04 10.752 47.232a55.808 55.808 0 0 1-18.816 67.456l-1.216 0.832-120.64 66.624-1.28 0.576a56.32 56.32 0 0 1-22.4 4.48z m-3.648-56.832a7.68 7.68 0 0 0 3.84 0.96l112.704-62.336c-2.688-6.272-15.168-36.992-15.168-68.928a179.456 179.456 0 0 1 169.856-179.008c1.344-7.552 8.768-49.792 8.768-81.472 0-31.68-7.424-73.92-8.768-81.472a179.456 179.456 0 0 1-169.856-179.008c0-32 12.48-62.72 15.168-68.992L682.688 121.28h-0.448c-1.92 0-3.648 0.64-4.288 1.088-1.856 1.92-17.92 18.24-40.96 34.432-34.24 24.064-66.56 36.224-96.064 36.224-29.888 0-62.464-12.416-96.832-36.928a313.792 313.792 0 0 1-41.216-35.072 8.832 8.832 0 0 0-4.736-1.152l-114.816 63.104c2.752 6.4 15.168 36.992 15.168 68.928A179.456 179.456 0 0 1 128.64 430.912c-1.344 7.552-8.768 49.792-8.768 81.472 0 31.68 7.424 73.92 8.768 81.408A179.456 179.456 0 0 1 298.496 772.8c0 32.128-12.544 62.912-15.232 69.12L392 902.72a7.68 7.68 0 0 0 3.84-0.896c2.048-2.24 18.304-19.456 41.6-36.608 34.944-25.536 68.032-38.464 98.56-38.464 30.72 0 64.064 13.184 99.2 39.232 23.488 17.472 39.744 34.944 41.792 37.184zM536.32 676.032a164.48 164.48 0 0 1-164.288-164.288A164.48 164.48 0 0 1 536.32 347.52a164.48 164.48 0 0 1 164.352 164.288A164.48 164.48 0 0 1 536.32 676.096z m0-272.64c-59.776 0-108.352 48.64-108.352 108.352 0 59.776 48.64 108.416 108.352 108.416 59.84 0 108.416-48.64 108.416-108.416 0-59.776-48.64-108.416-108.416-108.416z",fill:o.color,"p-id":"4508"},null,8,Y8)]))}}),A8=["value","checked","onChange"],S8={class:"content"},z8=["onMouseenter"],P8={class:"name"},T8={key:0,class:"speed",style:{background:"#f3f4f6",color:"#4a5565"}},I8={style:{display:"flex","align-items":"center"}},M8={key:0,class:"status"},L8={key:1,class:"status"},O8={key:2,class:"speed",style:{"margin-left":"6px"}},N8=I({setup(o){const{$gettext:n}=J(),a=Pe(),l=E(!1),u=ra(),d=gt({portList:[],load:!1}),c=()=>{a.push("/interfaceconfig")},k=(h,_)=>{localStorage.setItem(h,JSON.stringify(_))},g=h=>{const _=localStorage.getItem(h);try{return _?JSON.parse(_):[]}catch(x){return[]}},p="checkedPorts",m=E(g(p)),v=E([]),b=()=>{(d.load&&document.hidden?Promise.resolve():G.Network.PortList.GET().then(h=>{if(h!=null&&h.data){const{result:_}=h==null?void 0:h.data;_&&(d.portList=_.ports||[],v.value=_.ports||[])}})).finally(()=>{d.load=!0,setTimeout(b,1e4)})};b(),$t(m,h=>{v.value=d.portList.filter(_=>h.includes(_.name)),console.log(h,"newVal"),k(p,h)});const y=(h,_)=>{_.target.checked?m.value.includes(h)||(m.value=[...m.value,h]):m.value.length>1?m.value=m.value.filter(x=>x!==h):($.Warning(n("\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u7F51\u7EDC\u63A5\u53E3\uFF01")),_.target.checked=!0)},f=E(null),F=(h,_)=>{u.portitemStyle.show=!0;const x=_==null?void 0:_.target;if(x){const{left:C,top:S}=x.getBoundingClientRect();u.portitemStyle.left=C,u.portitemStyle.top=S}u.portitemStyle.portitem=h},w=()=>{u.portitemStyle.show=!1};return(h,_)=>(r(),Z(Wt,{title:e(n)("\u7F51\u7EDC\u63A5\u53E3\u72B6\u6001"),showSettings:!0,"is-settings-menu-open":l.value,"onUpdate:isSettingsMenuOpen":_[0]||(_[0]=x=>l.value=x)},{icon:V(()=>[Y(Ca,{color:"#0a0a0a",class:"icon interfaceIcon"})]),settings:V(()=>[t("div",{class:"btn_settings",onClick:c},[Y(fa,{color:"#0a0a0a",class:"icon1 interfaceIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u914D\u7F6E\u7F51\u7EDC\u63A5\u53E3")),1)])]),"settings-menu":V(()=>[t("div",null,[(r(!0),s(U,null,tt(e(d).portList,x=>(r(),s("div",{key:x.name,class:"row"},[t("input",{type:"checkbox",value:x.name,checked:m.value.includes(x.name),onChange:C=>y(x.name,C)},null,40,A8),t("span",null,i(x.name),1)]))),128))])]),default:V(()=>[t("div",S8,[e(d).load?(r(!0),s(U,{key:0},tt(e(d).portList,x=>(r(),s("div",{class:"item",ref_for:!0,ref_key:"el",ref:f,onMouseenter:C=>F(x,C),onMouseleave:w},[t("div",{class:"icon_box",style:ht({backgroundColor:x.linkState=="DOWN"?"#f3f4f6":"#dbfce7"})},[Y(Ca,{color:x.linkState=="DOWN"?"#99a1af":"#00a63e",class:"icon2"},null,8,["color"])],4),t("div",null,[t("div",P8,[dt(i(x.name)+" "+i(x.interfaceNames?`(${x.interfaceNames.join(",").toLocaleUpperCase()})`:""),1),x.linkState=="DOWN"?(r(),s("div",T8,i(e(n)("\u5DF2\u65AD\u5F00")),1)):D("",!0)]),t("div",I8,[x.linkState=="DOWN"?(r(),s("div",M8,i(e(n)("\u672A\u8FDE\u63A5")),1)):(r(),s("div",L8,i(e(n)("\u5DF2\u8FDE\u63A5")),1)),x.linkSpeed?(r(),s("div",O8,i(x.linkSpeed),1)):D("",!0)])])],40,z8))),256)):D("",!0)])]),_:1},8,["title","is-settings-menu-open"]))}});var Da=N(N8,[["__scopeId","data-v-3ebe4ebd"]]);const V8={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"32",height:"32"},G8=["fill"],j8=["fill"],U8=["fill"],q8=["fill"],R8=I({props:{color:{type:String,default:"#ffffff"}},setup(o){return(n,a)=>(r(),s("svg",V8,[t("path",{d:"M384 480 96 480C44.8 480 0 435.2 0 384L0 96C0 44.8 44.8 0 96 0L384 0c51.2 0 96 44.8 96 96L480 384C480 435.2 435.2 480 384 480z",fill:o.color,"p-id":"6495"},null,8,G8),t("path",{d:"M384 1024 96 1024C44.8 1024 0 979.2 0 928L0 640c0-51.2 44.8-96 96-96L384 544c51.2 0 96 44.8 96 96l0 281.6C480 979.2 435.2 1024 384 1024z",fill:o.color,"p-id":"6496"},null,8,j8),t("path",{d:"M787.2 1024 787.2 1024c-134.4 0-243.2-108.8-243.2-236.8l0 0c0-134.4 108.8-236.8 236.8-236.8l0 0c134.4 0 236.8 108.8 236.8 236.8l0 0C1024 915.2 915.2 1024 787.2 1024z",fill:o.color,"p-id":"6497"},null,8,U8),t("path",{d:"M928 480 640 480C588.8 480 544 435.2 544 384L544 96C544 44.8 588.8 0 640 0l281.6 0C979.2 0 1024 44.8 1024 96L1024 384C1024 435.2 979.2 480 928 480z",fill:o.color,"p-id":"6498"},null,8,q8)]))}}),W8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},H8=["fill"],J8=["fill"],Z8=["fill"],K8=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",W8,[t("path",{d:"M123.92 555.9a32 32 0 0 1-14.82-60.38l719.19-374.9a32 32 0 0 1 29.59 56.76l-719.2 374.89a31.87 31.87 0 0 1-14.76 3.63z",fill:o.color,"p-id":"5084"},null,8,H8),t("path",{d:"M608.6 957.7a32 32 0 0 1-30.6-41.27l234.64-776.34a32 32 0 0 1 61.26 18.52L639.22 935a32 32 0 0 1-30.62 22.7zM505.92 580.44c-0.68 0-1.36 0-2.05-0.07l-381.46-24.12a32 32 0 1 1 4-63.88l381.5 24.13a32 32 0 0 1-2 63.94z",fill:o.color,"p-id":"5085"},null,8,J8),t("path",{d:"M608.14 957.32a32 32 0 0 1-30.87-23.63L475 556.82a32 32 0 1 1 61.77-16.76L639 916.93a32 32 0 0 1-22.51 39.26 31.61 31.61 0 0 1-8.35 1.13z",fill:o.color,"p-id":"5086"},null,8,Z8)]))}}),Q8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},X8=["fill"],t4=["fill"],e4=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Q8,[t("path",{d:"M748 469.97l-283.81 248.1c-3.96 1.98-5.94 5.94-9.9 9.9-17.82 29.71-9.9 67.34 19.8 85.16 29.71 15.84 65.35 5.94 83.18-21.79L757.9 477.89c1.98-5.95-3.96-11.88-9.9-7.92z","p-id":"9627",fill:o.color},null,8,X8),t("path",{d:"M512 181.96c-247.23 0-448.35 201.13-448.35 448.34 0 63.85 13.31 125.74 39.59 183.94 10.72 23.74 38.61 34.37 62.41 23.59 23.74-10.72 34.31-38.67 23.59-62.41C168.5 729.5 158 680.67 158 630.3c0-195.18 158.8-353.99 354-353.99 195.18 0 354 158.8 354 353.99 0 50.37-10.5 99.2-31.24 145.12-10.72 23.74-0.15 51.69 23.59 62.41 6.3 2.86 12.9 4.18 19.38 4.18 17.97 0 35.17-10.32 43.03-27.76 26.26-58.2 39.59-120.09 39.59-183.94 0-247.23-201.14-448.35-448.35-448.35z","p-id":"9628",fill:o.color},null,8,t4)]))}}),a4={width:"32",height:"32",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},o4=["fill"],n4=["fill"],i4=["fill"],r4=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",a4,[t("path",{d:"M880.213333 395.093333a31.786667 31.786667 0 0 1-26.88-15.573333 385.706667 385.706667 0 0 0-91.52-104.32 32.426667 32.426667 0 0 1-5.12-45.013333 32 32 0 0 1 45.013334-5.12 449.92 449.92 0 0 1 106.666666 121.6A31.786667 31.786667 0 0 1 896 390.4a30.293333 30.293333 0 0 1-15.786667 4.693333zM165.12 395.093333A30.293333 30.293333 0 0 1 149.333333 390.4a31.786667 31.786667 0 0 1-11.093333-43.733333A450.56 450.56 0 0 1 522.666667 128a32 32 0 0 1 0 64A386.56 386.56 0 0 0 192 379.52a31.786667 31.786667 0 0 1-26.88 15.573333z","p-id":"17913",fill:o.color},null,8,o4),t("path",{d:"M565.333333 341.333333a32 32 0 0 1 0-64A101.76 101.76 0 0 0 661.333333 170.666667a101.76 101.76 0 0 0-96-106.666667 32 32 0 0 1 0-64A165.76 165.76 0 0 1 725.333333 170.666667a165.76 165.76 0 0 1-160 170.666666zM522.666667 1024C362.666667 1024 220.8 936.106667 139.946667 787.84 61.013333 776.746667 0 700.373333 0 608 0 507.946667 71.68 426.666667 160 426.666667a32 32 0 0 1 0 64C106.666667 490.666667 64 543.36 64 608S106.666667 725.333333 160 725.333333a31.786667 31.786667 0 0 1 28.586667 17.706667C256 878.933333 381.653333 960 522.666667 960a384 384 0 0 0 354.56-236.373333 31.146667 31.146667 0 0 1 14.506666-16 106.666667 106.666667 0 0 0 57.6-99.626667c0-64-42.666667-117.333333-96-117.333333a32 32 0 0 1 0-64c88.32 0 160 81.28 160 181.333333a170.666667 170.666667 0 0 1-81.706666 150.613333A448 448 0 0 1 522.666667 1024z","p-id":"17914",fill:o.color},null,8,n4),t("path",{d:"M394.666667 640a32 32 0 0 1-32-32v-42.666667a32 32 0 0 1 64 0v42.666667a32 32 0 0 1-32 32zM629.333333 640a32 32 0 0 1-32-32v-42.666667a32 32 0 0 1 64 0v42.666667a32 32 0 0 1-32 32zM512 822.186667A131.2 131.2 0 0 1 391.466667 746.666667a32 32 0 1 1 58.24-26.453334 70.186667 70.186667 0 0 0 124.586666 0A32 32 0 1 1 632.533333 746.666667 131.2 131.2 0 0 1 512 822.186667z","p-id":"17915",fill:o.color},null,8,i4)]))}}),s4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},d4=["fill"],l4=["fill"],u4=I({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",s4,[t("path",{d:"M771.328 320.896H258.986667a64 64 0 0 0-63.701334 57.856l-41.386666 427.178667a64 64 0 0 0 57.472 69.888l5.12 0.256h590.592a64 64 0 0 0 64-64l-0.170667-4.394667-35.797333-428.117333a64 64 0 0 0-63.786667-58.666667z m-512.341333 42.666667h512.341333a21.333333 21.333333 0 0 1 21.290667 19.584l35.712 427.178666 0.085333 2.688c0 10.88-9.557333 20.437333-21.333333 20.437334H217.557333l-3.072-0.170667a21.162667 21.162667 0 0 1-18.176-23.210667l41.472-427.221333a21.333333 21.333333 0 0 1 21.205334-19.285333z",fill:o.color,"p-id":"8134"},null,8,d4),t("path",{d:"M685.013333 429.312a21.333333 21.333333 0 0 1 21.333334 21.333333 194.346667 194.346667 0 1 1-388.693334 0 21.333333 21.333333 0 1 1 42.666667 0 151.68 151.68 0 0 0 303.36 0 21.333333 21.333333 0 0 1 21.333333-21.333333zM512 147.882667a194.346667 194.346667 0 0 1 194.346667 194.346666 21.333333 21.333333 0 1 1-42.666667 0 151.68 151.68 0 1 0-303.36 0 21.333333 21.333333 0 1 1-42.666667 0A194.346667 194.346667 0 0 1 512 147.882667z",fill:o.color,"p-id":"8135"},null,8,l4)]))}}),c4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},p4=["fill"],f4=I({props:{color:{type:String,default:"#333333"}},setup(o){return(n,a)=>(r(),s("svg",c4,[t("path",{d:"M353.323071 246.407016L620.37222 510.637979l-265.320785 268.146133c-11.776208 11.775184-11.73425201 30.908964 0.091074 42.73429l0.001023 0c11.825326 11.82635 30.958082 11.867282 42.72815-2.930749L680.899758 535.559579c3.817955-4.273327 8.205892-9.321296 8.933463-12.045337 4.470825-11.112082 2.232854-24.76503301-6.710842-35.987632l-286.98213-286.98213c-11.875468-8.847505-31.096229-8.893554-42.922578 2.932796C341.393367 215.303624 341.439416 234.523361 353.323071 246.407016z","p-id":"5051",fill:o.color},null,8,p4)]))}}),m4={class:"header"},g4={class:"icon-wrapper"},v4={class:"content"},b4={class:"title"},h4={class:"subtitle"},_4={class:"footer"},x4={key:1,class:"extra"},w4={key:2,class:"extra badge"},k4={class:"extra_num"},y4={key:3,class:"badge"},F4=I({props:{card:{type:Object,required:!0}},setup(o){const{$gettext:n}=J(),a={navigation:{component:K8,props:{color:"#ffffff"}},wifi:{component:ze,props:{color:"#ffffff"}},topology:{component:pa,props:{color:"#ffffff"}},speed:{component:e4,props:{color:"#ffffff"}},baby:{component:r4,props:{color:"#ffffff"}},appStore:{component:u4,props:{color:"#ffffff"}}};return(l,u)=>(r(),s("div",{class:lt(["feature-card",o.card.color]),onClick:u[0]||(u[0]=d=>l.$emit("click",o.card))},[t("div",null,[t("div",m4,[t("div",g4,[Yt(l.$slots,"icon",{},()=>{var d;return[o.card.icon&&a[o.card.icon]?(r(),Z(oa((d=a[o.card.icon])==null?void 0:d.component),yo({key:0},a[o.card.icon].props,{class:"icon-svg"}),null,16)):D("",!0)]},!0)])]),t("div",v4,[t("div",b4,i(o.card.title),1),t("div",h4,i(o.card.subtitle),1)]),t("div",_4,[o.card.status?(r(),s("span",{key:0,class:lt(["status",{active:o.card.isActive}])},i(o.card.status),3)):D("",!0),o.card.extra?(r(),s("div",x4,i(o.card.extra),1)):D("",!0),o.card.num?(r(),s("div",w4,[t("span",k4,i(o.card.num),1),dt(" "+i(e(n)("\u53F0\u8BBE\u5907\u5728\u7EBF")),1)])):D("",!0),o.card.tag?(r(),s("span",y4,i(o.card.tag),1)):D("",!0)])]),Y(f4,{class:"right-arrow",color:"#99a1af"})],2))}});var E4=N(F4,[["__scopeId","data-v-58f520f0"]]);const $4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},C4=["fill"],D4=["fill"],B4=["fill"],Y4=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",$4,[t("path",{d:"M298.894222 482.417778c-35.271111 0-65.649778 12.231111-90.624 36.636444-25.031111 24.462222-37.603556 54.158222-37.603555 88.746667v87.153778h60.359111V607.857778c0-18.318222 6.599111-33.848889 19.854222-46.762667a65.991111 65.991111 0 0 1 48.014222-19.456h426.382222c18.887111 0 34.759111 6.428444 48.014223 19.399111 13.312 13.027556 19.854222 28.444444 19.854222 46.819556v87.04h60.359111v-87.04c0-34.702222-12.572444-64.341333-37.546667-88.746667a125.098667 125.098667 0 0 0-90.680889-36.750222H298.894222z",fill:o.color,"p-id":"8894"},null,8,C4),t("path",{d:"M488.049778 334.734222h47.900444V512h-47.900444V334.734222z",fill:o.color,"p-id":"8895"},null,8,D4),t("path",{d:"M597.333333 142.222222v170.666667h-170.666666v-170.666667h170.666666z m-170.666666-56.888889a56.888889 56.888889 0 0 0-56.888889 56.888889v170.666667a56.888889 56.888889 0 0 0 56.888889 56.888889h170.666666a56.888889 56.888889 0 0 0 56.888889-56.888889v-170.666667a56.888889 56.888889 0 0 0-56.888889-56.888889h-170.666666zM284.444444 711.111111H113.777778v170.666667h170.666666v-170.666667z m-170.666666-56.888889h170.666666a56.888889 56.888889 0 0 1 56.888889 56.888889v170.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H113.777778a56.888889 56.888889 0 0 1-56.888889-56.888889v-170.666667a56.888889 56.888889 0 0 1 56.888889-56.888889zM910.222222 711.111111v170.666667h-170.666666v-170.666667h170.666666z m-170.666666-56.888889a56.888889 56.888889 0 0 0-56.888889 56.888889v170.666667a56.888889 56.888889 0 0 0 56.888889 56.888889h170.666666a56.888889 56.888889 0 0 0 56.888889-56.888889v-170.666667a56.888889 56.888889 0 0 0-56.888889-56.888889h-170.666666z",fill:o.color,"p-id":"8896"},null,8,B4)]))}}),A4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},S4=["fill"],z4=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",A4,[t("path",{d:"M853.333333 768a42.666667 42.666667 0 0 1 0 85.333333h-341.333333a42.666667 42.666667 0 0 1 0-85.333333h341.333333zM200.832 183.168L426.666667 409.002667l30.165333 30.165333a42.666667 42.666667 0 0 1 0 60.330667l-14.634667 14.634666-241.365333 241.365334a42.666667 42.666667 0 1 1-60.330667-60.330667l225.792-225.877333-225.792-225.792a42.666667 42.666667 0 0 1 60.330667-60.330667z",fill:o.color,"p-id":"5439"},null,8,S4)]))}}),P4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},T4=["fill"],I4=["fill"],Ze=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",P4,[t("path",{d:"M531.216667 77.336366c0 0-8.147564-10.313903-16.938788-10.709923-8.791224-0.396019-18.070564 9.133008-18.070564 9.133008-96.577592 77.010955-246.112304 97.021707-345.075223 110.281709 0 0-14.838963 2.062985-22.257933 3.094478-11.189853 1.555425-21.184485 3.125177-27.569916 8.241708-6.385431 5.117554-5.999644 18.659989-5.999644 18.659989 0 476.176097 84.005252 627.530246 410.888138 736.639247 0 0 4.438079 1.619894 8.085142 1.373277 3.647063-0.042979 7.195889-1.980097 7.195889-1.980097 324.821947-108.462271 408.826176-259.857353 408.826176-736.033449 0 0-1.264806-13.920034-6.709819-18.659989-5.445012-4.739954-13.812587-6.433526-24.073278-7.864108-8.308223-1.157359-24.923646-3.473101-24.923646-3.473101C775.550465 172.782182 626.055662 152.771429 531.216667 77.336366zM486.388692 884.038318c-260.550131-96.030124-328.494593-228.237191-332.62875-628.806309-0.045025-4.400217 0.357134-6.599302 1.663896-8.667404 1.306762-2.068102 3.713578-2.836605 3.713578-2.836605 91.436502-12.233626 223.901443-29.972639 328.759629-91.828428 8.445346-4.982478 17.749246-11.634991 25.087375-11.634991 7.338129 0 15.890922 6.689353 24.289196 11.686157 103.57496 61.632709 234.845703 79.437214 327.058894 91.777263 0 0 4.41659 0.768503 5.910617 2.836605 1.494027 2.068102 2.324952 4.094248 2.309602 6.16542-2.819209 380.861264-55.186903 527.575744-329.520969 630.016881-9.733689 3.634784-19.105127 8.231475-27.533077 8.231475C507.070734 890.978381 495.039723 887.22694 486.388692 884.038318z",fill:o.color,"p-id":"5082"},null,8,T4),t("path",{d:"M763.882728 456.981942c-32.383548 146.597823-101.757568 233.810117-243.305375 299.834856-14.22191 1.440815-25.321712 13.450337-25.321712 28.051893 0 15.572674 12.624529 28.197202 28.197202 28.197202 4.321422 0 8.41567-0.972141 12.076036-2.709715l0.143263 0.393973c158.820192-71.15048 242.084571-167.561273 280.661168-345.308537 0.969071-2.781346 1.496074-5.7694 1.496074-8.881274 0-14.898315-12.07706-26.975375-26.975375-26.975375-14.898315 0-26.975375 12.07706-26.975375 26.975375C763.878634 456.701556 763.879658 456.841749 763.882728 456.981942z",fill:o.color,"p-id":"5083"},null,8,I4)]))}}),M4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},L4=["fill"],O4=["fill"],Xa=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",M4,[t("path",{d:"M762 942H262c-71.68 0-130-58.32-130-130V212c0-71.68 58.32-130 130-130h350c16.56 0 30 13.43 30 30v151.56c0 38.59 31.41 70 70 70h150c16.56 0 30 13.43 30 30V812c0 71.68-58.32 130-130 130zM262 142c-38.59 0-70 31.41-70 70v600c0 38.59 31.41 70 70 70h500c38.59 0 70-31.41 70-70V393.57H712c-71.68 0-130-58.32-130-130V142H262z","p-id":"13142",fill:o.color},null,8,L4),t("path",{d:"M862 393.57H712c-71.68 0-130-58.32-130-130V112c0-12.15 7.32-23.11 18.55-27.73a29.938 29.938 0 0 1 32.71 6.59l250 251.56c8.55 8.59 11.07 21.47 6.43 32.67s-15.58 18.48-27.69 18.48zM642 184.75v78.82c0 38.59 31.41 70 70 70h77.89L642 184.75zM487 379.5H312c-16.57 0-30-13.43-30-30s13.43-30 30-30h175c16.57 0 30 13.43 30 30s-13.43 30-30 30zM712 542H312c-16.57 0-30-13.43-30-30s13.43-30 30-30h400c16.56 0 30 13.43 30 30s-13.44 30-30 30zM712 704.5H312c-16.57 0-30-13.44-30-30s13.43-30 30-30h400c16.56 0 30 13.44 30 30s-13.44 30-30 30z","p-id":"13143",fill:o.color},null,8,O4)]))}}),to=/\d+\.\d+\.\d+\.\d+/,N4=o=>to.test(o)&&ye.IPv4.isValid(o),qt=o=>{const n=ye.IPv4.parse(o).toByteArray();return n[0]<<24|n[1]<<16|n[2]<<8|n[3]},Ba=o=>ye.fromByteArray([o>>24&255,o>>16&255,o>>8&255,o&255]).toString(),V4=o=>{if(!to.test(o)||!ye.IPv4.isIPv4(o))return!1;let n=0,a=qt(o);for(let l=31;l>=0&&(a&1<<l)!=0;l--)n=n+(1<<l);return(~n&a)==0},G4=(o,n,a,l)=>{let u=qt(o)&qt(n),d=qt(a),c=qt(l),g=~qt(n);return d<c&&d>u+1&&c<u+g},j4=(o,n)=>{let a=qt(n),l=qt(o)&a,u=~a,d;return u>=105?(d=l|u-5,l=l|100):u>=3?(d=l|u-1,l=l|2):(l=l|1,d=l),[Ba(l),Ba(d)]},U4=o=>ye.IPv4.subnetMaskFromPrefixLength(o).toString();var Lt={isValidMask:V4,isValidIPv4:N4,isValidMaskRange:G4,calcMaskRange:j4,prefixToMask:U4};const ma=o=>(ut("data-v-22104807"),o=o(),ct(),o),q4=["onSubmit"],R4={class:"actioner-dns_header"},W4={class:"actioner-dns_body"},H4={class:"label-item"},J4={class:"label-item_key"},Z4={class:"label-item_value"},K4={class:"label-item"},Q4={class:"label-item_key"},X4={class:"label-item_value"},t7={key:0,class:"chose_dhcp"},e7={key:0,class:"dhcp_info"},a7={key:1,class:"dhcp_info"},o7={class:"label-item"},n7={class:"label-item_key"},i7={class:"label-item_value"},r7={class:"label-item"},s7={class:"label-item_key"},d7={class:"label-item_value"},l7={class:"actioner-dns_footer"},u7=["disabled"],c7={key:1,class:"actioner-dns"},p7={class:"actioner-dns_header"},f7={class:"actioner-dns_body"},m7={key:0,class:"setting_status"},g7=ma(()=>t("div",{class:"success_icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128"},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063"})])],-1)),v7={class:"config-message"},b7=["href"],h7={key:1,class:"setting_status"},_7=ma(()=>t("div",{class:"success_icon"},[t("svg",{t:"1642063200324",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5898",width:"128",height:"128"},[t("path",{d:"M549.044706 512l166.189176-166.249412a26.383059 26.383059 0 0 0 0-36.98447 26.383059 26.383059 0 0 0-37.044706 0L512 475.015529l-166.249412-166.249411a26.383059 26.383059 0 0 0-36.98447 0 26.383059 26.383059 0 0 0 0 37.044706L475.015529 512l-166.249411 166.249412a26.383059 26.383059 0 0 0 0 36.98447 26.383059 26.383059 0 0 0 37.044706 0L512 548.984471l166.249412 166.249411a26.383059 26.383059 0 0 0 36.98447 0 26.383059 26.383059 0 0 0 0-37.044706L548.984471 512zM512 1024a512 512 0 1 1 0-1024 512 512 0 0 1 0 1024z",fill:"#E84335","p-id":"5899"})])],-1)),x7={class:"config-message"},w7={key:2,class:"setting_status"},k7=ma(()=>t("div",{class:"success_icon"},[t("svg",{width:"128px",height:"128px",viewBox:"0 0 128 128",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_yellow",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"128",height:"128"}),t("path",{d:"M64,8 C33.075,8 8,33.075 8,64 C8,94.925 33.075,120 64,120 C94.925,120 120,94.925 120,64 C120,33.075 94.925,8 64,8 Z M60,37 C60,36.45 60.45,36 61,36 L67,36 C67.55,36 68,36.45 68,37 L68,71 C68,71.55 67.55,72 67,72 L61,72 C60.45,72 60,71.55 60,71 L60,37 Z M64,92 C60.6875,92 58,89.3125 58,86 C58,82.6875 60.6875,80 64,80 C67.3125,80 70,82.6875 70,86 C70,89.3125 67.3125,92 64,92 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])])])],-1)),y7={class:"config-message"},F7=I({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(0),d=E({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""});E("");const c=E(!1);E(!0),E(!1);const k=E(""),g=E(2),p=E(!1),m=E("timeout");let v=!0;(()=>{G.Guide.GetLan.GET().then(h=>{h.data.result&&(p.value=h.data.result.enableDhcp||!1,h.data.result.enableDhcp=!1,d.value=h.data.result,h.data.result.lanIp!==location.hostname&&(v=!1))})})();const y=()=>{const h=d.value;if(!Lt.isValidIPv4(h.lanIp)){$.Warning(a("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF"));return}if(!Lt.isValidMask(h.netMask)){$.Warning(a("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF"));return}const _=Lt.calcMaskRange(h.lanIp,h.netMask);h.dhcpStart=_[0],h.dhcpEnd=_[1],d.value=h},f=()=>{const h=d.value;if(!Lt.isValidIPv4(h.lanIp)){$.Warning(a("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF"));return}if(!Lt.isValidMask(h.netMask)){$.Warning(a("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF"));return}if(h.enableDhcp&&!(Lt.isValidIPv4(h.dhcpStart)&&Lt.isValidIPv4(h.dhcpEnd)&&Lt.isValidMaskRange(h.lanIp,h.netMask,h.dhcpStart,h.dhcpEnd))){$.Warning(a("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4"));return}const _=$.Loading(a("\u6B63\u5728\u914D\u7F6E\u2026\u8BF7\u7A0D\u7B49"),30);let x=0;const C=A=>{m.value=A,u.value=1,x=1,_.Close()},S=()=>{const A=new Date().getTime()+3e4,z=v?location.protocol+"//"+h.lanIp+(location.port?":"+location.port:""):location.origin,B=z+"/luci-static/resources/icons/loading.gif",H=()=>{x==0&&(new Date().getTime()>A?C("timeout"):window.setTimeout(q,2e3))},M=()=>{x==0&&(k.value=z+location.pathname,C("success"),window.setTimeout(()=>{g.value=1},1e3),window.setTimeout(()=>{location.href=k.value},2e3))},q=()=>{if(x!=0)return;console.log("check online ",B);const T=new Image;T.onload=M,T.onerror=H,T.src=B};window.setTimeout(q,5e3)};G.Guide.LanIp.POST(h).then(A=>{var z;if(A!=null&&A.data){if((A.data.success||0)==0)return;if((z=A.data)!=null&&z.error)throw A.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(A=>{x==0&&(C("fail"),$.Error(A))}),S(),window.setTimeout(()=>{x==0&&C("timeout")},3e4)},F=h=>{h.preventDefault(),n.Close&&n.Close()},w=h=>{location.reload()};return(h,_)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[u.value==0?(r(),s("form",{key:0,class:"actioner-dns",onSubmit:ft(f,["prevent"])},[t("div",R4,[t("span",null,i(e(a)("\u5185\u7F51\u914D\u7F6E")),1)]),t("div",W4,[t("div",H4,[t("div",J4,[t("span",null,i(e(a)("IPv4\u5730\u5740")),1)]),t("div",Z4,[O(t("input",{type:"text",placeholder:"192.168.100.1",required:"","onUpdate:modelValue":_[0]||(_[0]=x=>d.value.lanIp=x),onChange:y},null,544),[[at,d.value.lanIp,void 0,{trim:!0}]])])]),t("div",K4,[t("div",Q4,[t("span",null,i(e(a)("IPv4\u5B50\u7F51\u63A9\u7801")),1)]),t("div",X4,[O(t("input",{type:"text",placeholder:"255.255.255.0",required:"","onUpdate:modelValue":_[1]||(_[1]=x=>d.value.netMask=x),onChange:y},null,544),[[at,d.value.netMask,void 0,{trim:!0}]])])]),p.value?(r(),s("div",t7,[Y(qa,{modelValue:d.value.enableDhcp,"onUpdate:modelValue":_[2]||(_[2]=x=>d.value.enableDhcp=x)},{default:V(()=>[d.value.enableDhcp?(r(),s("span",e7,i(e(a)("\u4FEE\u6539DHCP\u670D\u52A1")),1)):(r(),s("span",a7,i(e(a)("\u4FDD\u6301DHCP\u670D\u52A1\u8BBE\u7F6E")),1))]),_:1},8,["modelValue"])])):D("",!0),d.value.enableDhcp?(r(),s(U,{key:1},[t("div",o7,[t("div",n7,[t("span",null,i(e(a)("IP\u6C60\u8D77\u59CB\u5730\u5740")),1)]),t("div",i7,[O(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":_[3]||(_[3]=x=>d.value.dhcpStart=x)},null,512),[[at,d.value.dhcpStart,void 0,{trim:!0}]])])]),t("div",r7,[t("div",s7,[t("span",null,i(e(a)("IP\u6C60\u7ED3\u675F\u5730\u5740")),1)]),t("div",d7,[O(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":_[4]||(_[4]=x=>d.value.dhcpEnd=x)},null,512),[[at,d.value.dhcpEnd,void 0,{trim:!0}]])])])],64)):D("",!0)]),t("div",l7,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:c.value},i(e(a)("\u786E\u8BA4")),9,u7),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:F},i(e(a)("\u53D6\u6D88")),1)])],40,q4)):u.value==1?(r(),s("div",c7,[t("div",p7,[t("span",null,i(e(a)("\u66F4\u6362\u914D\u7F6E")),1)]),t("div",f7,[m.value=="success"?(r(),s("div",m7,[g7,t("div",v7,i(e(a)("\u914D\u7F6E\u6210\u529F")),1),t("a",{href:k.value,class:"NewAdress"},i(e(a)("%{ countdown }s\u540E \u8DF3\u8F6C\u65B0\u5730\u5740",{countdown:""+g.value})),9,b7)])):m.value=="fail"?(r(),s("div",h7,[_7,t("div",x7,i(e(a)("\u914D\u7F6E\u5931\u8D25")),1),t("p",null,i(e(a)("\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E")),1),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:w},i(e(a)("\u6211\u77E5\u9053\u4E86")),1)])):m.value=="timeout"?(r(),s("div",w7,[k7,t("div",y7,i(e(a)("\u914D\u7F6E\u8D85\u65F6")),1),t("p",null,i(e(a)("\u8DEF\u7531\u5668 IP \u53EF\u80FD\u5DF2\u7ECF\u4FEE\u6539\u6210\u529F\u3002\u82E5\u5237\u65B0\u9875\u9762\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u8FDE\u63A5\u8DEF\u7531\u5668\uFF0C\u5426\u5219\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E\u3002")),1),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:w},i(e(a)("\u5237\u65B0\u9875\u9762")),1)])):D("",!0)])])):D("",!0)]),_:1},8,["Close"]))}});var E7=N(F7,[["__scopeId","data-v-22104807"]]);const $7=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=xt(E7,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},C7={key:0,class:"actioner-dns"},D7={class:"actioner-dns_header"},B7={class:"actioner-dns_body"},Y7={class:"sandbox_info"},A7={key:0,class:"disk_loading_icon"},S7={class:"disk_loading_info"},z7={key:1,class:"disk_tips"},P7={class:"label-item"},T7={class:"label-item_key"},I7={class:"label-item_value"},M7={value:""},L7=["value"],O7={class:"label-item"},N7={class:"label-item_key"},V7={class:"label-item_value"},G7={selected:"true",value:""},j7=["value","disabled"],U7={class:"sandbox_tips"},q7={class:"sandbox_info timeout"},R7={class:"sandbox_roboot_tips"},W7={class:"sandbox_roboot_refresh"},H7={key:0,class:"actioner-dns_footer"},J7=["disabled"],Z7={key:1,class:"actioner-tips"},K7={class:"actioner-tips_header"},Q7={class:"actioner-tips_body"},X7={class:"sandbox_info"},tp={class:"actioner-tips_footer"},ep={key:2,class:"actioner-tips"},ap={class:"actioner-tips_header"},op={class:"actioner-tips_body"},np={class:"sandbox_info"},ip={class:"actioner-tips_footer"},rp=I({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(0);E("disk");const d=E(""),c=E(3),k=E(""),g=E([]),p=E(""),m=E(null);(()=>{G.Nas.SandboxDisks.GET().then(x=>{var C;if(x!=null&&x.data&&(C=x.data)!=null&&C.result){m.value=x.data.result;return}throw a("\u52A0\u8F7D\u78C1\u76D8\u4FE1\u606F\u5931\u8D25")}).catch(x=>{d.value=x,u.value=3})})();const b=()=>G.System.Reboot.POST().then(x=>{var C;if(!(x!=null&&x.data&&(((C=x==null?void 0:x.data)==null?void 0:C.success)||0)==0))throw a("\u672A\u77E5\u9519\u8BEF")}),y=x=>{var C,S;p.value="",g.value=k.value&&((S=(C=m.value)==null?void 0:C.disks.find(A=>A.path==k.value))==null?void 0:S.childrens)||[]},f=()=>{c.value>0&&(c.value-=1,window.setTimeout(f,1e3))},F=x=>{x.preventDefault(),n.Close&&n.Close()},w=()=>{new Promise((x,C)=>{const S="/luci-static/resources/icons/loading.gif",A=()=>{window.setTimeout(z,2e3)},z=()=>{const B=new Image;B.onload=x,B.onerror=A,B.src=S};window.setTimeout(z,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},h=x=>{const C=$.Loading(a("\u914D\u7F6E\u6C99\u7BB1\u91CD\u542F\u4E2D..."));G.Nas.Sandbox.POST({path:p.value}).then(S=>{var A;if(S!=null&&S.data){if((S.data.success||0)==0)return u.value=2,window.setTimeout(f,1e3),b();if((A=S.data)!=null&&A.error)throw S.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).then(w).catch(S=>$.Warning(S)).finally(()=>C.Close())},_=()=>{u.value=0};return(x,C)=>{const S=_t("icon-loading");return r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[u.value==0||u.value==2?(r(),s("div",C7,[t("div",D7,[t("span",null,i(e(a)("\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",B7,[t("p",Y7,i(e(a)("\u4E00\u4E2A\u7B80\u6613\u6C99\u7BB1\uFF0C\u65B9\u4FBF\u7528\u6765\u5B9E\u9A8C\u7CFB\u7EDF\u914D\u7F6E\u548C\u7A0B\u5E8F\uFF0C\u65B9\u4FBF\u5F00\u53D1\u672A\u5B8C\u6210\u7684\u8F6F\u4EF6\uFF0C\u4F46\u4E0D\u4FDD\u62A4 Docker \u548C\u786C\u76D8\u7684\u6570\u636E")),1),u.value==0?(r(),s(U,{key:0},[m.value?D("",!0):(r(),s("div",A7,[Y(S,{size:38,color:"currentColor"}),t("span",S7,i(e(a)("\u6B63\u5728\u52A0\u8F7D\u4E2D...")),1)])),m.value&&m.value.disks.length==0?(r(),s("div",z7,[Y(It),t("span",null,i(e(a)("\u68C0\u6D4B\u4E0D\u5230\u6302\u8F7D\u7684\u78C1\u76D8\u4FE1\u606F\uFF0C\u8BF7\u5148\u63D2\u4E0A\u78C1\u76D8\uFF0C\u5EFA\u8BAE\u4F7F\u7528U\u76D8\u6216\u8005\u79FB\u52A8\u786C\u76D8\uFF0C\u65B9\u4FBF\u88C5\u5378")),1)])):D("",!0),m.value&&m.value.disks.length>0?(r(),s(U,{key:2},[t("div",P7,[t("div",T7,[t("span",null,i(e(a)("\u76EE\u6807\u78C1\u76D8\uFF08\u5EFA\u8BAE\u9009\u62E9U\u76D8\u6216\u8005\u79FB\u52A8\u786C\u76D8\uFF0C\u65B9\u4FBF\u88C5\u5378\uFF09")),1)]),t("div",I7,[O(t("select",{name:"",id:"",onChange:y,"onUpdate:modelValue":C[0]||(C[0]=A=>k.value=A)},[t("option",M7,i(e(a)("\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8")),1),(r(!0),s(U,null,tt(m.value.disks,(A,z)=>(r(),s("option",{value:A.path,key:z},i(A.venderModel)+"\uFF08"+i(A.size)+"\uFF09 ",9,L7))),128))],544),[[pt,k.value]])])]),t("div",O7,[t("div",N7,[t("span",null,i(e(a)("\u76EE\u6807\u5206\u533A\uFF08\u5206\u533A\u5927\u5C0F\u987B\u5927\u4E8E2G\uFF0C\u5C06\u6B64\u5206\u533A\u4F5C\u4E3A\u5916\u90E8 overlay \u4F7F\u7528\uFF09")),1)]),t("div",V7,[O(t("select",{name:"",id:"","onUpdate:modelValue":C[1]||(C[1]=A=>p.value=A)},[t("option",G7,i(e(a)("\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A")),1),(r(!0),s(U,null,tt(g.value,(A,z)=>(r(),s("option",{value:A.path,key:z,disabled:A.sizeInt<(1<<30)*1||A.isSystemRoot},i(A.name)+"\uFF08"+i(A.filesystem||e(a)("\u672A\u683C\u5F0F\u5316"))+"\uFF09"+i(A.total),9,j7))),128))],512),[[pt,p.value]])])]),t("div",U7,[Y(It),t("span",null,i(e(a)("\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E")),1)])],64)):D("",!0)],64)):D("",!0),u.value==2?(r(),s(U,{key:1},[t("p",q7,[dt(i(e(a)("\u5373\u5C06\u91CD\u542F\u8BBE\u5907"))+" ",1),t("span",null,"\uFF08"+i(c.value)+"s\uFF09",1)]),t("p",R7,[dt(i(e(a)("\u7B49\u5F85\u8BBE\u5907\u91CD\u542F\uFF0C\u91CD\u542F\u5B8C\u6210\u540E")),1),t("span",W7,i(e(a)("\u8BF7\u5237\u65B0\u754C\u9762")),1)])],64)):D("",!0)]),u.value==0?(r(),s("div",H7,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:!p.value,onClick:C[2]||(C[2]=A=>u.value=1)},i(e(a)("\u5F00\u542F\u6C99\u7BB1")),9,J7),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:F},i(e(a)("\u53D6\u6D88")),1)])):D("",!0)])):D("",!0),u.value==1?(r(),s("div",Z7,[t("div",K7,[t("span",null,i(e(a)("\u6E29\u99A8\u63D0\u793A")),1)]),t("div",Q7,[t("p",X7,i(e(a)("\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E\uFF0C\u5E76\u683C\u5F0F\u5316\u6210EXT4\uFF0C\u968F\u540E\u81EA\u52A8\u91CD\u542F\u8FDB\u5165\u6C99\u7BB1\u6A21\u5F0F\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F")),1)]),t("div",tp,[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:h},i(e(a)("\u7EE7\u7EED")),1),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},i(e(a)("\u53D6\u6D88")),1)])])):D("",!0),u.value==3?(r(),s("div",ep,[t("div",ap,[t("span",null,i(e(a)("\u9519\u8BEF")),1)]),t("div",op,[t("p",np,i(d.value),1)]),t("div",ip,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},i(e(a)("\u53D6\u6D88")),1)])])):D("",!0)]),_:1},8,["Close"])}}});var sp=N(rp,[["__scopeId","data-v-58c55341"]]);const dp=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=xt(sp,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},lp={key:0,class:"actioner-dns"},up={class:"actioner-dns_header"},cp={class:"actioner-dns_body"},pp={class:"sandbox_info"},fp={class:"sandbox_environment"},mp={class:"sandbox_environment_info"},gp={class:"sandbox_environment_reboot"},vp=["innerHTML"],bp={class:"actioner-dns_footer"},hp=["disabled"],_p=["disabled"],xp=["disabled"],wp=I({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(0),d=E(!1),c=()=>{new Promise((v,b)=>{const y="/luci-static/resources/icons/loading.gif",f=()=>{window.setTimeout(F,2e3)},F=()=>{const w=new Image;w.onload=v,w.onerror=f,w.src=y};window.setTimeout(F,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},k=()=>{d.value=!0;const v=$.Loading(a("\u63D0\u4EA4\u4E2D..."));G.Nas.SandboxCommit.POST().then(b=>{var y,f;if(b!=null&&b.data)if((((y=b==null?void 0:b.data)==null?void 0:y.success)||0)==0){$.Loading(a("\u8BBE\u5907\u91CD\u542F\u4E2D..."));return}else(f=b==null?void 0:b.data)!=null&&f.error&&alert(b.data.error);throw a("\u672A\u77E5\u9519\u8BEF")}).then(c).catch(b=>{$.Error(b),d.value=!1}).finally(()=>v.Close())},g=()=>{d.value=!0;const v=$.Loading(a("\u91CD\u7F6E\u4E2D..."));G.Nas.SandboxReset.POST().then(b=>{var y,f;if(b!=null&&b.data)if((((y=b==null?void 0:b.data)==null?void 0:y.success)||0)==0){$.Loading(a("\u8BBE\u5907\u91CD\u542F\u4E2D... \u82E5\u9875\u9762\u957F\u65F6\u95F4\u672A\u5237\u65B0\u53EF\u80FD\u9700\u8981\u624B\u52A8\u586B\u5199\u5730\u5740"));return}else(f=b==null?void 0:b.data)!=null&&f.error&&alert(b.data.error);throw a("\u672A\u77E5\u9519\u8BEF")}).then(c).catch(b=>{$.Error(b),d.value=!1}).finally(()=>v.Close())},p=()=>{if(!confirm(a("\u786E\u5B9A\u653E\u5F03\u6C99\u7BB1\u4E2D\u7684\u6570\u636E\uFF1F\u518D\u6B21\u8FDB\u5165\u6C99\u7BB1\u9700\u8981\u91CD\u65B0\u683C\u5F0F\u5316\u76F8\u5E94\u78C1\u76D8\u5206\u533A")))return;d.value=!0;const v=$.Loading(a("\u6267\u884C\u4E2D..."));G.Nas.SandboxExit.POST().then(b=>{var y,f;if(b!=null&&b.data)if((((y=b==null?void 0:b.data)==null?void 0:y.success)||0)==0){$.Loading(a("\u8BBE\u5907\u91CD\u542F\u4E2D... \u82E5\u9875\u9762\u957F\u65F6\u95F4\u672A\u5237\u65B0\u53EF\u80FD\u9700\u8981\u624B\u52A8\u586B\u5199\u5730\u5740"));return}else(f=b==null?void 0:b.data)!=null&&f.error&&alert(b.data.error);throw a("\u672A\u77E5\u9519\u8BEF")}).then(c).catch(b=>{$.Error(b),d.value=!1}).finally(()=>v.Close())},m=v=>{v.preventDefault(),n.Close&&n.Close()};return(v,b)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[u.value==0?(r(),s("div",lp,[t("div",up,[t("span",null,i(e(a)("\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",cp,[t("p",pp,i(e(a)("\u4E00\u4E2A\u7B80\u6613\u6C99\u7BB1\uFF0C\u65B9\u4FBF\u7528\u6765\u5B9E\u9A8C\u7CFB\u7EDF\u914D\u7F6E\u548C\u7A0B\u5E8F\uFF0C\u65B9\u4FBF\u5F00\u53D1\u672A\u5B8C\u6210\u7684\u8F6F\u4EF6\uFF0C\u4F46\u4E0D\u4FDD\u62A4 Docker \u548C\u786C\u76D8\u7684\u6570\u636E")),1),t("div",fp,[t("p",null,i(e(a)("\u5F53\u524D\u5904\u4E8E\u6C99\u7BB1\u73AF\u5883\uFF1A")),1),t("p",null,i(e(a)("1\u3001\u70B9\u51FB\u201C\u63D0\u4EA4\u201D\u53EF\u5C06\u53D8\u66F4\u5408\u5E76\u5230\u975E\u6C99\u7BB1\u73AF\u5883")),1),t("p",null,i(e(a)("2\u3001\u70B9\u51FB\u201C\u91CD\u7F6E\u201D\u53EF\u5C06\u6C99\u7BB1\u6062\u590D\u5230\u521D\u59CB\u72B6\u6001")),1),t("p",null,i(e(a)("3\u3001\u70B9\u51FB\u201C\u9000\u51FA\u201D\u53EF\u9000\u51FA\u6C99\u7BB1\u73AF\u5883\uFF0C\u5E76\u653E\u5F03\u6C99\u7BB1\u4E2D\u7684\u6570\u636E")),1)]),t("div",mp,[dt(i(e(a)("\u4EE5\u4E0A\u64CD\u4F5C\u90FD\u5C06\u91CD\u542F\u8BBE\u5907\uFF0C\u8BBE\u5907\u91CD\u542F\u5B8C\u6210\u540E\u4F1A\u81EA\u52A8\u5237\u65B0\u9875\u9762\u3002\u5982\u679C IP \u53D8\u5316\u53EF\u80FD\u9700\u8981")),1),t("span",gp,i(e(a)("\u624B\u52A8\u5728\u5730\u5740\u680F\u8F93\u5165\u5730\u5740")),1),t("p",{class:"sandbox_environment_tex",innerHTML:e(a)("\u5982\u9700<b>\u4E34\u65F6</b>\u9000\u51FA\u6C99\u7BB1\u73AF\u5883\uFF0C\u8BF7\u5C06\u8BBE\u5907\u5173\u673A\u540E\u62D4\u51FA\u76F8\u5173\u78C1\u76D8\uFF0C\u542F\u52A8\u524D\u63D2\u5165\u76F8\u5173\u78C1\u76D8\u53EF\u518D\u6B21\u8FDB\u5165\u6C99\u7BB1\u3002<br/> \u6CE8\u610F\u4E34\u65F6\u9000\u51FA\u6C99\u7BB1\u73AF\u5883\u4EE5\u540E\u5347\u7EA7\u56FA\u4EF6\u4F1A\u5BFC\u81F4\u4E4B\u524D\u7684\u6C99\u7BB1\u6570\u636E\u65E0\u6548",{},!0)},null,8,vp)])]),t("div",bp,[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:k,disabled:d.value},i(e(a)("\u63D0\u4EA4")),9,hp),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:g,disabled:d.value},i(e(a)("\u91CD\u7F6E")),9,_p),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p,disabled:d.value},i(e(a)("\u9000\u51FA")),9,xp),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:m},i(e(a)("\u53D6\u6D88")),1)])])):D("",!0)]),_:1},8,["Close"]))}});var kp=N(wp,[["__scopeId","data-v-9573dc70"]]);const yp=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=xt(kp,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},Fp={class:"item_container"},Ep=["onClick","title"],$p={class:"renew"},Cp={key:0},Dp={key:1,style:{display:"inline-block","margin-left":"4px"}},Bp={class:"app-update-button-menu"},Yp=["onClick"],Ap={class:"app-update-menu-item"},Sp={key:0,class:"app-update-menu-item-loading"},zp={class:"dns_txt"},Pp={key:0,style:{display:"inline-block","margin-left":"4px"}},Tp=I({setup(o){var S,A;const{$gettext:n}=J(),a=E(!0);(A=(S=window.quickstart_configs)==null?void 0:S.update)!=null&&A.disable&&(a.value=!1);const l=E(!1),u=E(a.value),d=E(!1),c=Le(),k=Fe(),g=Q(()=>k.status),p=E(),m=()=>{Ka()};$t(u,z=>{d.value=!0,G.System.AutoCheckUpdate.POST({enable:z}).catch(B=>{$.Warning(B)}).finally(()=>{d.value=!1})});const v=()=>{window.location.href="/cgi-bin/luci/admin/system/ota"},b=()=>{window.location.href="/cgi-bin/luci/admin/status/logs"},y=()=>{window.location.href="/cgi-bin/luci/admin/store/pages/maintance"},f=()=>{dp()},F=()=>{yp()},w=()=>{alert(n("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u6C99\u7BB1\u6A21\u5F0F"))},h=()=>{$7()},_=()=>{Qa()},x=()=>{var z,B,H,M;window.open(`${(B=(z=window.quickstart_configs)==null?void 0:z.ttyd)!=null&&B.ssl?"https":"http"}://${window.location.hostname}:${((M=(H=window.quickstart_configs)==null?void 0:H.ttyd)==null?void 0:M.port)||7681}/`,"_blank")},C=()=>{l.value=!l.value};return a.value&&setTimeout(()=>{c.requestCheckUpdate()},1100),Qt("sandbox")&&G.Nas.GetSandbox.GET().then(B=>{var H,M,q;B!=null&&B.data&&((((H=B==null?void 0:B.data)==null?void 0:H.success)||0)==0?(M=B==null?void 0:B.data)!=null&&M.result&&(p.value=B.data.result):(q=B==null?void 0:B.data)!=null&&q.error&&alert(B.data.error))}).catch(B=>$.Warning(B)),(z,B)=>{var q,T,j,R,it,ot;const H=_t("icon-loading"),M=_t("switch-box");return r(),s("div",Fp,[t("div",{class:"item",style:{backgroundColor:"#f3f7fd"},onClick:h},[Y(Y4,{color:"#2b7fff",class:"icon"}),t("span",null,i(e(n)("\u5185\u7F51\u914D\u7F6E")),1)]),e(Qt)("ttyd")?(r(),s("div",{key:0,class:"item",style:{backgroundColor:"#f4fbf7"},onClick:x},[Y(z4,{color:"#00c850",class:"icon"}),t("span",null,i(e(n)("\u7EC8\u7AEF")),1)])):D("",!0),e(Qt)("ota")?(r(),s("div",{key:1,class:"item",style:{backgroundColor:"#f9f7fd"},onClick:v},[t("span",{class:"app-update-button-more",onClick:ft(C,["stop","prevent"]),title:e(n)("\u56FA\u4EF6\u66F4\u65B0\u9009\u9879")},[Y(Ee)],8,Ep),Y(Kt,{color:"#ad46ff",class:"icon"}),t("span",$p,[(q=e(c).checkUpdate)!=null&&q.needUpdate?(r(),s("i",Cp)):D("",!0),dt(" "+i(e(n)("\u56FA\u4EF6\u66F4\u65B0"))+" ",1),a.value&&e(c).checkUpdate==null?(r(),s("span",Dp,[Y(H,{size:"1em",color:"currentColor"})])):D("",!0)]),O(t("div",Bp,[t("div",{class:"menu_background",onClick:ft(C,["stop","prevent"])},null,8,Yp),t("ul",{onClick:B[1]||(B[1]=ft(()=>{},["stop"]))},[t("li",null,[Y(M,{modelValue:u.value,"onUpdate:modelValue":B[0]||(B[0]=bt=>u.value=bt)},{default:V(()=>[t("span",Ap,i(e(n)("\u81EA\u52A8\u68C0\u67E5\u66F4\u65B0")),1)]),_:1},8,["modelValue"]),d.value?(r(),s("span",Sp,[Y(H,{size:"1em",color:"currentColor"})])):D("",!0)])])],512),[[ee,l.value]])])):D("",!0),t("div",{class:lt(["item",{"disabled-style":!((T=e(g))!=null&&T.proto)}]),style:{backgroundColor:"#f1fbfd"},onClick:m},[Y(xe,{color:"#00b8db",class:"icon"}),t("span",zp,[dt(i(e(n)("DNS\u914D\u7F6E"))+" ",1),(j=e(g))!=null&&j.proto?D("",!0):(r(),s("span",Pp,[Y(H,{size:"1em",color:"currentColor"})]))])],2),t("div",{class:"item",style:{backgroundColor:"#fbf5fa"},onClick:_},[Y(Za,{color:"#f6339a",class:"icon"}),t("span",null,i(e(n)("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)]),e(Qt)("sandbox")?(r(),s(U,{key:2},[((R=p.value)==null?void 0:R.status)=="unsupport"?(r(),s("div",{key:0,class:"item",style:{backgroundColor:"#f9fafb"},onClick:w},[Y(Ze,{color:"#cac9cd",class:"icon"}),t("span",null,i(e(n)("\u5F00\u542F\u6C99\u7BB1")),1)])):((it=p.value)==null?void 0:it.status)=="stopped"?(r(),s("div",{key:1,class:"item",style:{backgroundColor:"#fbf4f5"},onClick:f},[Y(Ze,{color:"#fb2c36",class:"icon"}),t("span",null,i(e(n)("\u5F00\u542F\u6C99\u7BB1")),1)])):((ot=p.value)==null?void 0:ot.status)=="running"?(r(),s("div",{key:2,class:"item",style:{backgroundColor:"#dae8fd"},onClick:F},[Y(Ze,{color:"#2b7fff",class:"icon"}),t("span",null,i(e(n)("\u6C99\u7BB1\u5DF2\u5F00\u542F")),1)])):D("",!0)],64)):D("",!0),t("div",{class:"item",style:{backgroundColor:"#fcf7f2"},onClick:b},[Y(Xa,{color:"#ff6900",class:"icon"}),t("span",null,i(e(n)("\u65E5\u5FD7\u67E5\u770B")),1)]),t("div",{class:"item",style:{backgroundColor:"#eff5ff"},onClick:y},[Y(fa,{color:"#553afe",class:"icon"}),t("span",null,i(e(n)("\u7CFB\u7EDF\u7EF4\u62A4")),1)])])}}});var Ip=N(Tp,[["__scopeId","data-v-6ac226af"]]);const Mp={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Lp=["fill"],Op=["fill"],Np=I({props:{color:{type:String,default:"#222222"}},setup(o){return(n,a)=>(r(),s("svg",Mp,[t("path",{d:"M746 112c82.84 0 150 67.16 150 150S828.84 412 746 412 596 344.84 596 262 663.16 112 746 112z m0 48C689.668 160 644 205.668 644 262S689.668 364 746 364 848 318.332 848 262 802.332 160 746 160zM746 612c82.84 0 150 67.16 150 150S828.84 912 746 912 596 844.84 596 762s67.16-150 150-150z m0 48c-56.332 0-102 45.668-102 102s45.668 102 102 102 102-45.668 102-102-45.668-102-102-102zM262 364c82.84 0 150 67.16 150 150S344.84 664 262 664 112 596.84 112 514 179.16 364 262 364z m0 48C205.668 412 160 457.668 160 514S205.668 616 262 616 364 570.332 364 514 318.332 412 262 412z",fill:o.color,"p-id":"5059"},null,8,Lp),t("path",{d:"M337.7 442.744l293.488-169.62 40.464 70.16-293.484 169.62zM387.708 526.728l277.02 160.12-40.468 70.156-277.02-160.12z",fill:o.color,"p-id":"5060"},null,8,Op)]))}}),Vp={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Gp=["fill"],eo=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Vp,[t("path",{d:"M827.84 886.4H187.9184375c-32.2659375 0-53.76-21.51375-53.76-53.784375V714.28625a53.889375 53.889375 0 0 1 53.76-53.784375h639.9215625a53.8940625 53.8940625 0 0 1 53.76 53.784375v118.35375a53.8940625 53.8940625 0 0 1-53.76 53.76z m-5.375625-172.11375H187.9184375v118.35375h634.5309375V714.28625z m-570 32.664375a26.88 26.88 0 1 1-26.88 26.88 26.88 26.88 0 0 1 26.865-26.88z m78.3403125 0a26.88 26.88 0 1 1-26.60625 27.1678125 26.88 26.88 0 0 1 26.5875-27.16875z m78.6 0a26.88 26.88 0 1 1-26.60625 27.1678125 26.88 26.88 0 0 1 26.5875-27.16875zM827.215625 624.9490625H187.2846875c-32.2603125 0-53.76-21.51375-53.76-53.784375V452.8353125a53.8940625 53.8940625 0 0 1 53.76-53.784375H827.196875a53.8940625 53.8940625 0 0 1 53.76 53.784375v118.329375a53.8940625 53.8940625 0 0 1-53.76 53.784375z m-5.38125-172.11375H187.285625v118.329375H821.815625V452.8353125z m-569.994375 31.9921875a26.88 26.88 0 1 1-26.88 26.88 26.88 26.88 0 0 1 26.88-26.88z m77.889375 0a26.88 26.88 0 1 1-26.88 26.88 26.88 26.88 0 0 1 26.8565625-26.88z m76.963125-0.403125a26.88 26.88 0 1 1-26.60625 27.1678125 26.88 26.88 0 0 1 26.5875-27.163125z m419.7890625-120.744375H186.56c-32.2509375 0-53.76-21.5278125-53.76-53.7984375V191.5521875a53.8940625 53.8940625 0 0 1 53.76-53.784375h639.9215625a53.8940625 53.8940625 0 0 1 53.76 53.784375v118.329375a53.8940625 53.8940625 0 0 1-53.76 53.7984375z m-5.3615625-172.1278125H186.56v118.329375h634.56V191.5521875z m-570.0140625 32.2753125a26.88 26.88 0 1 1-26.88 26.88 26.88 26.88 0 0 1 26.88-26.88z m78.6046875 0a26.88 26.88 0 1 1-26.88 26.88 26.88 26.88 0 0 1 26.8753125-26.88z m78.6046875 0a26.88 26.88 0 1 1-26.88 26.88 26.88 26.88 0 0 1 26.8846875-26.88z",fill:o.color,"p-id":"19012"},null,8,Gp)]))}}),jp={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Up=["fill"],qp=I({props:{color:{type:String,default:"#155dfc"}},setup(o){return(n,a)=>(r(),s("svg",jp,[t("path",{d:"M716.8 750.933333c47.786667 0 95.573333-27.306667 119.466667-68.266666 23.893333-40.96 23.893333-95.573333 0-136.533334-23.893333-40.96-68.266667-68.266667-119.466667-68.266666-10.24 0-17.066667-3.413333-23.893333-10.24-6.826667-6.826667-10.24-13.653333-10.24-23.893334 0-95.573333-75.093333-170.666667-170.666667-170.666666s-170.666667 75.093333-170.666667 170.666666v6.826667c81.92 23.893333 136.533333 95.573333 136.533334 180.906667 0 13.653333-6.826667 23.893333-17.066667 30.72-10.24 6.826667-23.893333 6.826667-34.133333 0-10.24-6.826667-17.066667-17.066667-17.066667-30.72 0-64.853333-54.613333-119.466667-119.466667-119.466667S170.666667 566.613333 170.666667 631.466667 225.28 750.933333 290.133333 750.933333H716.8zM296.96 819.2c-102.4 3.413333-187.733333-75.093333-194.56-177.493333-3.413333-102.4 75.093333-191.146667 177.493333-194.56 0-126.293333 95.573333-228.693333 221.866667-238.933334 122.88-6.826667 232.106667 81.92 249.173333 208.213334 105.813333 17.066667 180.906667 112.64 170.666667 218.453333-10.24 102.4-98.986667 184.32-204.8 184.32H296.96z",fill:o.color,"p-id":"8044"},null,8,Up)]))}}),Rp={class:"app-container_samba"},Wp={key:0,class:"sambas-item"},Hp={class:"sambas-item_name"},Jp={class:"sambas-item_value"},Zp={class:"sambas-item"},Kp={class:"sambas-item_name tit"},Qp={class:"sambas-item_value tit"},Xp={class:"samba-item"},tf={class:"samba-item_name"},ef=["title"],af=["href"],of=I({props:{sambas:{type:Array}},setup(o){const{$gettext:n,$ngettext:a}=J(),l=window.location.hostname;return(u,d)=>{var c;return r(),s("ul",Rp,[o.sambas?(r(),s("li",Wp,[t("div",Hp,[t("span",null,i(e(n)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",Jp,[t("span",null,i((c=o.sambas)!=null&&c.length?e(n)("\u5DF2\u542F\u7528"):e(n)("\u672A\u542F\u7528")),1)])])):D("",!0),t("li",Zp,[t("div",Kp,[t("span",null,i(e(n)("\u5730\u5740")),1)]),t("div",Qp,[t("span",null,i(e(n)("\u76EE\u5F55")),1)])]),(r(!0),s(U,null,tt(o.sambas,k=>(r(),s("li",Xp,[t("div",tf,[t("span",null,"smb://"+i(e(l))+"/"+i(k.shareName),1)]),t("div",{class:"samba-item_value",title:k.path},[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+k.path},i(k.path),9,af)],8,ef)]))),256))])}}});var nf=N(of,[["__scopeId","data-v-d0b06580"]]);const rf={class:"webdav-item"},sf={class:"webdav-item_name"},df={class:"webdav-item_value"},lf={key:0,class:"webdav-item"},uf={class:"webdav-item_name"},cf={class:"webdav-item_value"},pf=["href"],ff={key:1,class:"webdav-item"},mf={class:"webdav-item_name"},gf={class:"webdav-item_value"},vf=["href"],bf={key:2,class:"webdav-item"},hf={class:"webdav-item_name"},_f={class:"webdav-item_value"},xf=I({props:{webdav:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>{var d;return`http://${location.hostname}:${(d=n.webdav)==null?void 0:d.port}`});return(d,c)=>{var k,g,p,m,v,b,y;return r(),s(U,null,[t("li",rf,[t("div",sf,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",df,[t("span",null,i((k=o.webdav)!=null&&k.path?e(a)("\u5DF2\u542F\u7528"):e(a)("\u672A\u542F\u7528")),1)])]),(g=o.webdav)!=null&&g.path?(r(),s("li",lf,[t("div",uf,[t("span",null,i(e(a)("\u6302\u8F7D\u8DEF\u5F84:")),1)]),t("div",cf,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((p=o.webdav)==null?void 0:p.path)},i((m=o.webdav)==null?void 0:m.path),9,pf)])])):D("",!0),(v=o.webdav)!=null&&v.port?(r(),s("li",ff,[t("div",mf,[t("span",null,i(e(a)("\u670D\u52A1\u8DEF\u5F84:")),1)]),t("div",gf,[t("a",{href:e(u),target:"_blank",rel:"noopener noreferrer"},i(e(u)),9,vf)])])):D("",!0),(b=o.webdav)!=null&&b.username?(r(),s("li",bf,[t("div",hf,[t("span",null,i(e(a)("\u8D26\u53F7:")),1)]),t("div",_f,[t("span",null,i((y=o.webdav)==null?void 0:y.username),1)])])):D("",!0)],64)}}});var wf=N(xf,[["__scopeId","data-v-31dcf6eb"]]);const kf={class:"app-container_linkease"},yf={class:"linkease-item"},Ff={class:"linkease-item_name"},Ef={class:"linkease-item_value"},$f={key:0,class:"configure"},Cf={key:0,class:"linkease-item"},Df={class:"linkease-item_name"},Bf={class:"linkease-item_value"},Yf=["href"],Af={href:"https://www.linkease.com",target:"_blank"},Sf=I({props:{linkease:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>{var c;return`http://${location.hostname}:${(c=n.linkease)==null?void 0:c.port}`}),d=()=>{Wa({setup:0})};return(c,k)=>{var g,p,m;return r(),s("ul",kf,[t("li",yf,[t("div",Ff,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",Ef,[(g=o.linkease)!=null&&g.enabel?(r(),s("span",$f,i(e(a)("\u5DF2\u914D\u7F6E")),1)):(r(),s("span",{key:1,class:"configure enabel",onClick:k[0]||(k[0]=v=>d())},i(e(a)("\u672A\u914D\u7F6E")),1))])]),(p=o.linkease)!=null&&p.enabel?(r(),s(U,{key:0},[(m=o.linkease)!=null&&m.port?(r(),s("li",Cf,[t("div",Df,[t("span",null,i(e(a)("\u670D\u52A1\u5730\u5740:")),1)]),t("div",Bf,[t("a",{href:e(u),target:"_blank",rel:"noopener noreferrer"},i(e(u)),9,Yf)])])):D("",!0)],64)):D("",!0),t("div",null,[t("a",Af,i(e(a)("\u4E0B\u8F7D\u6613\u6709\u4E91\u5BA2\u6237\u7AEF\uFF0C\u968F\u65F6\u968F\u5730\u76F8\u518C\u5907\u4EFD\u3001\u8FDC\u7A0B\u8BBF\u95EE")),1)])])}}});var zf=N(Sf,[["__scopeId","data-v-132ef714"]]);const ao=o=>(ut("data-v-e1182f0e"),o=o(),ct(),o),Pf={href:"/cgi-bin/luci/admin/services/samba4"},Tf={class:"content"},If={class:"tab"},Mf={class:"title"},Lf={key:0},Of={key:1},Nf=ao(()=>t("div",{class:"title"},"SAMBA",-1)),Vf=ao(()=>t("div",{class:"title"},"WEBDAV",-1)),Gf=I({setup(o){const{$gettext:n}=J(),a=E(!1);E("linkease");const l=E(),u=tn(),d=E(!1);(()=>{G.Nas.Service.Status.GET().then(f=>{var F;if((F=f==null?void 0:f.data)!=null&&F.result){const w=f.data.result;l.value=w,b(),w.webdav&&(u.webdav=w.webdav)}})})();const k=()=>{Wa({setup:0})},g=()=>{a.value=!a.value},p=()=>{g(),zt.installAndGo("app-meta-gowebdav","GoWebDAV","/cgi-bin/luci/admin/nas/gowebdav")},m=E(0),v=E(!1),b=()=>{var w,h,_,x,C,S;if(v.value)return;const F=[Boolean((h=(w=l.value)==null?void 0:w.linkease)==null?void 0:h.enabel),Boolean((x=(_=l.value)==null?void 0:_.sambas)==null?void 0:x.length),Boolean((S=(C=l.value)==null?void 0:C.webdav)==null?void 0:S.path)].findIndex(Boolean);m.value=F===-1?0:F},y=f=>{m.value=f,v.value=!0};return(f,F)=>(r(),Z(Wt,{title:e(n)("\u5B58\u50A8\u670D\u52A1"),style:{width:"100%",height:"100%",display:"block"},"is-settings-menu-open":d.value,"onUpdate:isSettingsMenuOpen":F[4]||(F[4]=w=>d.value=w)},{icon:V(()=>[Y(Np,{color:"#4f39f6",class:"icon"})]),settings:V(()=>[t("div",{class:"btn_settings",onClick:k},[Y(fa,{color:"#0a0a0a",class:"icon1 settings-icon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u914D\u7F6E\u5B58\u50A8\u670D\u52A1")),1),t("div",{class:"rotation",onClick:F[0]||(F[0]=ft(w=>d.value=!d.value,["stop"]))},[Y(Ee,{class:"moreIcon"})])])]),"settings-menu":V(()=>[t("div",null,[t("a",Pf,i(e(n)("SAMBA\u9AD8\u7EA7\u914D\u7F6E")),1)]),t("div",null,[t("a",{onClick:p},i(e(n)("WebDAV\u9AD8\u7EA7\u914D\u7F6E")),1)])]),default:V(()=>{var w,h,_,x,C,S,A,z,B;return[t("div",Tf,[t("div",If,[t("div",{class:lt(["item cloud",{active:m.value==0}]),onClick:F[1]||(F[1]=H=>y(0))},[Y(qp,{color:"#155dfc",class:"icon2"}),t("div",Mf,i(e(n)("\u6613\u6709\u4E91")),1),(h=(w=l.value)==null?void 0:w.linkease)!=null&&h.enabel?(r(),s("span",Lf,i(e(n)("\u5DF2\u914D\u7F6E")),1)):(r(),s("span",Of,i(e(n)("\u672A\u914D\u7F6E")),1))],2),t("div",{class:lt(["item memory",{active:m.value==1}]),onClick:F[2]||(F[2]=H=>y(1))},[Y(eo,{color:"#0bab47",class:"icon2"}),Nf,t("span",null,i((x=(_=l.value)==null?void 0:_.sambas)!=null&&x.length?e(n)("\u5DF2\u542F\u7528"):e(n)("\u672A\u542F\u7528")),1)],2),t("div",{class:lt(["item network",{active:m.value==2}]),onClick:F[3]||(F[3]=H=>y(2))},[Y(xe,{color:"#9810fa",class:"icon2"}),Vf,t("span",null,i((S=(C=l.value)==null?void 0:C.webdav)!=null&&S.path?e(n)("\u5DF2\u542F\u7528"):e(n)("\u672A\u542F\u7528")),1)],2)]),m.value==0?(r(),Z(zf,{key:0,linkease:(A=l.value)==null?void 0:A.linkease},null,8,["linkease"])):m.value==1?(r(),Z(nf,{key:1,sambas:(z=l.value)==null?void 0:z.sambas},null,8,["sambas"])):m.value==2?(r(),Z(wf,{key:2,webdav:(B=l.value)==null?void 0:B.webdav},null,8,["webdav"])):D("",!0)])]}),_:1},8,["title","is-settings-menu-open"]))}});var jf=N(Gf,[["__scopeId","data-v-e1182f0e"]]);const Uf={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},qf=["fill"],Rf=["fill"],Ya=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Uf,[t("path",{d:"M554.688 682.624a42.688 42.688 0 0 0 0 85.376h0.448a42.688 42.688 0 1 0 0-85.376h-0.448zM767.488 682.624a42.688 42.688 0 0 0 0 85.376H768a42.688 42.688 0 1 0 0-85.376h-0.512z",fill:o.color,"p-id":"5230"},null,8,qf),t("path",{d:"M465.28 96h93.44c59.456 0 106.88 0 144.96 4.48 39.36 4.48 72.128 14.08 100.992 35.584 28.8 21.44 47.424 50.112 63.104 86.464 15.232 35.2 28.8 80.64 45.952 137.6l52.48 174.848c1.28 4.48 2.752 9.28 3.584 14.336v0.32l0.192 1.216c0.64 5.12 0.64 10.048 0.64 14.72v3.392c0 72.704 0 130.304-5.632 175.68-5.824 46.592-18.112 84.736-45.952 115.84-4.992 5.568-10.304 10.88-15.936 15.872-31.104 27.84-69.184 40.128-115.84 45.952-45.312 5.696-102.912 5.696-175.616 5.696H412.352c-72.704 0-130.304 0-175.68-5.696-46.592-5.824-84.672-18.112-115.84-45.888a202.944 202.944 0 0 1-15.872-16c-27.84-31.04-40.128-69.12-45.952-115.84-5.696-45.312-5.696-102.912-5.696-175.616v-3.328c0-4.672 0-9.664 0.704-14.784v-0.32l0.192-1.216c0.832-5.056 2.24-9.856 3.584-14.272l52.48-174.912c17.088-56.96 30.72-102.4 45.952-137.6 15.68-36.352 34.304-65.024 63.104-86.4 28.8-21.504 61.632-31.104 100.992-35.712C358.4 96 405.76 96 465.28 96zM327.68 164.032c-33.152 3.84-53.632 11.072-70.144 23.36-16.512 12.288-29.376 29.824-42.56 60.48-13.568 31.424-26.176 73.28-43.968 132.544l-42.688 142.272h767.36l-42.688-142.272c-17.792-59.264-30.4-101.12-43.968-132.48-13.184-30.72-26.048-48.256-42.56-60.544-16.512-12.288-36.992-19.52-70.144-23.36C662.336 160 618.624 160 556.736 160H467.328c-61.952 0-105.6 0-139.648 4.032zM122.496 736.64c5.056 40.128 14.528 63.616 30.144 81.088 3.456 3.84 7.04 7.488 10.88 10.88 17.536 15.68 40.96 25.088 81.152 30.144 40.96 5.12 94.464 5.184 169.92 5.184h194.816c75.456 0 129.024 0 169.92-5.184 40.128-5.056 63.616-14.464 81.152-30.08 3.84-3.456 7.424-7.104 10.88-10.944 15.616-17.536 25.088-40.96 30.08-81.088 4.672-37.248 5.12-84.928 5.248-150.016H117.312c0.064 65.088 0.512 112.768 5.184 150.016z",fill:o.color,"p-id":"5231"},null,8,Rf)]))}}),Wf={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Hf=["fill"],Jf=I({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",Wf,[t("path",{d:"M912 208H427.872l-50.368-94.176A63.936 63.936 0 0 0 321.056 80H112c-35.296 0-64 28.704-64 64v736c0 35.296 28.704 64 64 64h800c35.296 0 64-28.704 64-64v-608c0-35.296-28.704-64-64-64z m-800-64h209.056l68.448 128H912v97.984c-0.416 0-0.8-0.128-1.216-0.128H113.248c-0.416 0-0.8 0.128-1.248 0.128V144z m0 736v-96l1.248-350.144 798.752 1.216V784h0.064v96H112z",fill:o.color,"p-id":"5094"},null,8,Hf)]))}}),Zf={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Kf=["fill"],Qf=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Zf,[t("path",{d:"M136.12 251.958a83.054 83.054 0 0 1-0.12-4.458c0-32.903 19.447-58.344 41.115-75.981 21.984-17.893 51.365-32.231 84.13-43.511C327.163 105.315 415.641 92 511.5 92c95.859 0 184.337 13.315 250.255 36.008 32.765 11.28 62.146 25.618 84.13 43.511 20.221 16.458 38.506 39.713 40.86 69.485l0.255 0.002v532.88c0 32.888-19.031 58.62-40.776 76.719-21.978 18.294-51.385 32.976-84.207 44.53C696.011 918.373 607.438 932 511.5 932c-95.938 0-184.511-13.627-250.517-36.865-32.822-11.554-62.229-26.236-84.207-44.53C155.031 832.506 136 806.774 136 773.886V251.96l0.12-0.002z m79.88-4.459v0.002c0 0.016-0.003 0.151 0.098 0.491 0.112 0.379 0.397 1.16 1.103 2.347 1.479 2.49 4.55 6.323 10.415 11.096 11.97 9.743 31.722 20.293 59.67 29.914C342.796 310.459 422.067 323 511.5 323c89.433 0 168.704-12.541 224.214-31.651 27.948-9.621 47.7-20.171 59.67-29.914 5.865-4.773 8.936-8.606 10.415-11.096 0.706-1.187 0.991-1.968 1.103-2.347 0.088-0.297 0.097-0.437 0.098-0.479v-0.014-0.012c-0.001-0.042-0.01-0.182-0.098-0.479-0.112-0.379-0.397-1.16-1.103-2.347-1.479-2.49-4.55-6.323-10.415-11.096-11.97-9.743-31.722-20.293-59.67-29.914C680.204 184.541 600.933 172 511.5 172c-89.433 0-168.704 12.541-224.214 31.651-27.948 9.621-47.7 20.171-59.67 29.914-5.865 4.773-8.936 8.606-10.415 11.096-0.706 1.187-0.991 1.968-1.103 2.347-0.101 0.34-0.098 0.475-0.098 0.491z m591 100.656c-13.955 7.052-29.194 13.311-45.245 18.837C695.837 389.685 607.359 403 511.5 403c-95.859 0-184.337-13.315-250.255-36.008-16.051-5.526-31.29-11.785-45.245-18.837v85.359c0.001 0.042 0.01 0.182 0.098 0.478 0.112 0.379 0.397 1.16 1.103 2.347 1.479 2.489 4.55 6.323 10.415 11.096 11.97 9.743 31.722 20.293 59.67 29.914C342.796 496.459 422.067 509 511.5 509c89.433 0 168.704-12.541 224.214-31.651 27.948-9.621 47.7-20.171 59.67-29.914 5.865-4.773 8.936-8.607 10.415-11.096 0.706-1.187 0.991-1.968 1.103-2.347 0.088-0.297 0.097-0.437 0.098-0.479v-85.358z m-45.245 204.837C695.837 575.685 607.359 589 511.5 589c-95.859 0-184.337-13.315-250.255-36.008-16.051-5.526-31.29-11.785-45.245-18.837v70.359c0.001 0.041 0.01 0.182 0.098 0.478 0.112 0.379 0.397 1.16 1.103 2.347 1.479 2.489 4.55 6.323 10.415 11.096 11.97 9.743 31.722 20.293 59.67 29.914C342.796 667.459 422.067 680 511.5 680c89.433 0 168.704-12.541 224.214-31.651 27.948-9.621 47.7-20.171 59.67-29.914 5.865-4.773 8.936-8.607 10.415-11.096 0.706-1.187 0.991-1.968 1.103-2.347 0.088-0.297 0.097-0.437 0.098-0.479v-70.358c-13.955 7.052-29.194 13.311-45.245 18.837zM807 705.155c-13.955 7.052-29.194 13.311-45.245 18.837C695.837 746.685 607.359 760 511.5 760c-95.859 0-184.337-13.315-250.255-36.008-16.051-5.526-31.29-11.785-45.245-18.837V773.894c0 0.181-0.003 1.283 1.399 3.695 1.555 2.675 4.69 6.646 10.556 11.529 11.976 9.968 31.701 20.738 59.594 30.557C342.97 839.186 422.146 852 511.5 852c89.354 0 168.53-12.814 223.951-32.325 27.893-9.819 47.618-20.589 59.594-30.557 5.866-4.883 9.001-8.854 10.556-11.529 1.402-2.412 1.399-3.514 1.399-3.695v-68.739z",fill:o.color,"p-id":"9960"},null,8,Kf)]))}}),Xf={},t9={width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},e9=jt('<g id="icon_info" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group"><circle id="Oval" stroke="currentColor" cx="9" cy="9" r="8.5"></circle><circle id="Oval" fill="currentColor" cx="5" cy="9" r="1"></circle><circle id="Oval" fill="currentColor" cx="9" cy="9" r="1"></circle><circle id="Oval" fill="currentColor" cx="13" cy="9" r="1"></circle></g></g>',1),a9=[e9];function o9(o,n){return r(),s("svg",t9,a9)}var Aa=N(Xf,[["render",o9]]);const n9={},i9={width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},r9=jt('<g id="icon_disk-formatting" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-15" stroke="#333333"><circle id="Oval" cx="9" cy="9" r="8.5"></circle><g id="Group-16" transform="translate(4.000000, 4.500000)" stroke-linejoin="round"><polygon id="Rectangle" points="0.911080155 0 9.08891985 0 10 6 -8.8817842e-16 6"></polygon><rect id="Rectangle" transform="translate(5.000000, 7.500000) scale(1, -1) translate(-5.000000, -7.500000) " x="0" y="6" width="10" height="3"></rect></g></g></g>',1),s9=[r9];function d9(o,n){return r(),s("svg",i9,s9)}var l9=N(n9,[["render",d9]]);const Ge=o=>(ut("data-v-b5895698"),o=o(),ct(),o),u9=["onSubmit"],c9=Ge(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"})],-1)),p9={class:"action-body"},f9={class:"disk-info"},m9=Ge(()=>t("div",{class:"disk-info_icon"},[t("svg",{t:"1642589762094",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11301",width:"128",height:"128"},[t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"11302"}),t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"11303"}),t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"11304"}),t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"11305"}),t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"11306"}),t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"11307"}),t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"11308"}),t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"11309"}),t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"11310"}),t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"11311"}),t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11312"}),t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11313"}),t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11314"}),t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11315"}),t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11316"}),t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"11317"}),t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"11318"}),t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"11319"}),t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"11320"})])],-1)),g9={key:0,class:"disk-info_mount-name"},v9={key:1,class:"disk-info_mount-name"},b9={key:0,class:"label-item"},h9={class:"label-item_key"},_9={class:"label-item_path"},x9={class:"label-item"},w9={class:"label-item_key"},k9={class:"label-item_value"},y9={class:"action-footer"},F9=Ge(()=>t("div",{class:"auto"},null,-1)),E9=["disabled"],$9=["disabled"],C9={key:1,class:"action result"},D9={class:"action-body"},B9=Ge(()=>t("div",{class:"action-body_icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),Y9={class:"action-body_msg"},A9=["innerHTML"],S9={class:"btns"},z9=I({props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(o){var F;const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.Close&&n.Close()},d=w=>{w.preventDefault(),n.Cancel&&n.Cancel(),u()},c=w=>{n.Next&&n.Next(w),u()},k=E(!1),g=E(0),p=E("/mnt/data_"+((F=n==null?void 0:n.mount)==null?void 0:F.name)),m=w=>{g.value=w};E(n.mount?"":"format"),E();const v=E(),b=()=>L(this,null,function*(){const w=n.mount;if(w==null){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533A"));return}if(w.path==null||w.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84"));return}if(w.uuid==null||w.uuid==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID"));return}k.value=!0;const h=$.Loading(a("\u6302\u8F7D\u4E2D..."));try{const _=yield G.Nas.Disk.Partition.Mount.POST({path:w.path,uuid:w.uuid,mountPoint:p.value});if(_!=null&&_.data){const{result:x,error:C}=_==null?void 0:_.data;C&&$.Warning(C),x&&($.Success(a("\u6302\u8F7D\u6210\u529F")),v.value=x,m(1))}}catch(_){$.Error(_)}h.Close(),k.value=!1}),y=()=>{if(v.value&&v.value.mountPoint){c(v.value.mountPoint);return}$.Warning(a("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25"))},f=()=>{};return(w,h)=>(r(),Z(wt,{type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>{var _,x;return[g.value==0?(r(),s("form",{key:0,class:"action format",onSubmit:ft(f,["prevent"])},[c9,t("div",p9,[t("div",f9,[m9,o.mount?(r(),s("div",g9,[t("span",null,"\u3010"+i(o.mount.total)+"\u3011",1),t("span",null,i(o.mount.mountPoint),1)])):o.disk?(r(),s("div",v9,[t("span",null,"\u3010"+i(o.disk.size)+"\u3011",1),t("span",null,i(o.disk.venderModel),1)])):D("",!0)]),o.mount?(r(),s("div",b9,[t("div",h9,[t("span",null,i(e(a)("\u76EE\u6807\u5206\u533A")),1)]),t("div",_9,i(o.mount.path)+"\uFF08"+i(o.mount.total)+"\uFF0C"+i((x=(_=o.mount)==null?void 0:_.filesystem)==null?void 0:x.toUpperCase())+"\uFF09",1)])):D("",!0),t("div",x9,[t("div",w9,[t("span",null,i(e(a)("\u6302\u8F7D\u70B9")),1)]),t("div",k9,[O(t("input",{type:"text","onUpdate:modelValue":h[0]||(h[0]=C=>p.value=C)},null,512),[[at,p.value,void 0,{trim:!0}]])])])]),t("div",y9,[F9,t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:k.value,onClick:b},i(e(a)("\u786E\u5B9A")),9,E9),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:d,type:"button",disabled:k.value},i(e(a)("\u8FD4\u56DE")),9,$9)])],40,u9)):g.value==1?(r(),s("div",C9,[t("div",D9,[B9,t("div",Y9,i(e(a)("\u6302\u8F7D\u6210\u529F")),1),v.value?(r(),s("div",{key:0,class:"action-body_info",innerHTML:e(a)("\u5DF2\u6210\u529F\u5C06\u5206\u533A %{dev} \u6302\u8F7D\u5230 <a>%{mount}</a>",{dev:v.value.path||"",mount:v.value.mountPoint||""},!0)},null,8,A9)):D("",!0),t("div",S9,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:y},i(o.action=="nas"?e(a)("\u5B8C\u6210"):e(a)("\u4E0B\u4E00\u6B65")),1)])])])):D("",!0)]}),_:1})]),_:1}))}});var P9=N(z9,[["__scopeId","data-v-b5895698"]]),oo=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(P9,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const T9={class:"disk-content"},I9={class:"disk-item"},M9={class:"disk-item_name"},L9={key:0},O9={key:1},N9={key:2},V9={class:"disk_value"},G9={class:"disk-item_value"},j9={class:"value-data"},U9={key:0,class:"disk-item"},q9={class:"disk-item_name"},R9={key:0},W9=["href"],H9={key:0},J9={class:"disk_status"},Z9={key:0,class:"disk_status_item"},K9={key:0,class:"tooltip-trigger disk_tip"},Q9={class:"tooltip-text tooltip-top"},X9={class:"disk_dir_tip"},tm={class:"disk_status_item"},em={key:0,class:"tooltip-trigger disk_tip"},am={class:"tooltip-text tooltip-top"},om={class:"disk_dir_tip"},nm=I({props:{part:{type:Object,required:!0},disk:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>n.part.filesystem=="No FileSystem"),d=Q(()=>n.part.filesystem&&["ntfs","vfat","exfat"].indexOf(n.part.filesystem)>=0),c=Q(()=>n.part.mountPoint&&n.part.isReadOnly&&n.part.filesystem!="swap"),k=Q(()=>u.value||!n.part.isSystemRoot&&(c.value||d.value||!n.part.mountPoint&&n.part.filesystem=="swap")),g=function(){la({action:"disk",disk:n.disk,mount:n.part,Cancel:()=>{},Next:y=>{location.reload()}})},p=()=>{oo({action:"nas",disk:n.disk,mount:n.part,Cancel:()=>{},Next:()=>{location.reload()}})},m=()=>L(this,null,function*(){const y=$.Loading(a("\u5904\u7406\u4E2D..."));try{const f=yield G.Nas.Disk.InitRest.POST({name:n.disk.name,path:n.disk.path});if(f!=null&&f.data){const{result:F,error:w}=f==null?void 0:f.data;w&&$.Warning(w),F&&($.Success(a("\u6302\u8F7D\u6210\u529F")),location.reload())}}catch(f){$.Error(f)}y.Close()}),v=Q(()=>n.part.filesystem=="Free Space"),b=Q(()=>{const y=n.part.mountPoint?n.part.mountPoint:"";return y.indexOf("/mnt/")==0?"/cgi-bin/luci/admin/services/linkease/file/?path=/"+y.substring(5):"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+y});return(y,f)=>{var w;const F=_t("progress-item");return r(),s("div",T9,[t("li",I9,[t("div",M9,[e(v)?(r(),s("span",L9,i(e(a)("\u672A\u5206\u533A")),1)):(r(),s("span",O9,i(o.part.name)+i(o.part.mountPoint?"":e(u)?e(a)("\uFF08\u672A\u683C\u5F0F\u5316\uFF09"):e(a)("\uFF08\u672A\u6302\u8F7D\uFF09")),1)),o.part.isSystemRoot?(r(),s("span",N9,i(e(a)("\uFF08\u7CFB\u7EDF\u5206\u533A\uFF09")),1)):D("",!0)]),t("div",V9,[t("div",G9,[t("div",j9,[Y(F,{value:e(v)||!o.part.usage?0:o.part.usage,text:e(v)?e(a)("\u672A\u5206\u533A\uFF08%{total}\uFF09",{total:o.part.total||""}):(o.part.mountPoint&&o.part.filesystem!="swap"?o.part.used:e(a)("\u672A\u77E5"))+"/"+(o.part.total||""),style:{backgroundColor:"#767676"}},null,8,["value","text"])])]),e(v)?(r(),s("button",{key:0,class:"cbi-button cbi-button-apply",onClick:m},i(e(a)("\u5206\u533A\u5E76\u683C\u5F0F\u5316")),1)):e(k)?(r(),s("button",{key:1,class:"cbi-button cbi-button-apply",onClick:g},i(e(a)("\u683C\u5F0F\u5316\u5206\u533A")),1)):D("",!0)])]),!e(v)&&!e(u)?(r(),s("li",U9,[t("span",q9,[o.part.mountPoint?(r(),s(U,{key:0},[o.part.filesystem=="swap"?(r(),s("span",R9,i(e(a)("\u5DF2\u6302\u8F7D\u4E3A\u4EA4\u6362\u533A")),1)):(r(),s("a",{key:1,href:e(b),target:"_blank"},i(o.part.mountPoint),9,W9))],64)):(r(),s(U,{key:1},[o.part.filesystem=="swap"?(r(),s("span",H9,i(e(a)("\u4E0D\u652F\u6301\u6302\u8F7D")),1)):(r(),s("span",{key:1,class:"value-data buttondiv",onClick:p},i(e(a)("\u624B\u52A8\u6302\u8F7D")),1))],64))]),t("div",J9,[o.part.mountPoint&&o.part.filesystem!="swap"?(r(),s("div",Z9,[t("div",null,i(e(a)("\u53EF\u8BFB\u5199\u72B6\u6001\uFF1A"))+i(o.part.isReadOnly?e(a)("\u53EA\u8BFB"):e(a)("\u8BFB\u5199")),1),e(c)?(r(),s("div",K9,[Y(It),t("div",Q9,[t("div",X9,i(e(a)("\u6B64\u5206\u533A\u4E3A\u53EA\u8BFB\u72B6\u6001\uFF0C\u53EF\u80FD\u65E0\u6CD5\u5199\u5165\u6570\u636E")),1)])])):D("",!0)])):D("",!0),t("div",tm,[t("div",null,i(e(a)("\u6587\u4EF6\u7CFB\u7EDF\uFF1A"))+i((w=o.part.filesystem)==null?void 0:w.toUpperCase()),1),!o.part.isSystemRoot&&e(d)?(r(),s("div",em,[Y(It),t("div",am,[t("span",om,i(e(a)("\u6B64\u6587\u4EF6\u7CFB\u7EDF\u4E0D\u652F\u6301Docker\u7B49\u5E94\u7528\u6570\u636E\uFF0C\u5EFA\u8BAE\u683C\u5F0F\u5316\u6210EXT4\u6587\u4EF6\u7CFB\u7EDF")),1)])])):D("",!0)])])])):D("",!0)])}}});var im=N(nm,[["__scopeId","data-v-10dd00b8"]]);const rm=o=>(ut("data-v-127a3100"),o=o(),ct(),o),sm={key:0,class:"action"},dm={class:"title"},lm={class:"app-container_info"},um={class:"app-container_body"},cm={class:"action-footer"},pm=rm(()=>t("div",{class:"auto"},null,-1)),fm=I({props:{disk:{type:Object,required:!0},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(0),d=()=>{n.Close&&n.Close()},c=k=>{k.preventDefault(),n.Cancel&&n.Cancel(),d()};return(k,g)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[Y(St,{name:"rotate",mode:"out-in"},{default:V(()=>[u.value==0?(r(),s("div",sm,[t("h2",dm,i(e(a)("\u5206\u533A\u4FE1\u606F"))+" - "+i((o.disk.name||"?")+(o.disk.isSystemRoot?e(a)("\uFF08\u7CFB\u7EDF\u76D8\uFF09"):"")),1),t("ul",null,[t("li",null,[t("div",lm,[t("span",null,i(e(a)("\u5206\u533A / \u6302\u8F7D\u70B9")),1),t("span",null,i(e(a)("\u5BB9\u91CF")),1)]),t("div",um,[(r(!0),s(U,null,tt(o.disk.childrens,(p,m)=>(r(),Z(im,{key:m,part:p,disk:o.disk},null,8,["part","disk"]))),128))])])]),t("div",cm,[pm,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:c,type:"button"},i(e(a)("\u8FD4\u56DE")),1)])])):D("",!0)]),_:1})]),_:1},8,["Close"]))}});var mm=N(fm,[["__scopeId","data-v-127a3100"]]),gm=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(mm,vt(st({},o),{Close:()=>{l()}}));a.component("progress-item",Ua),a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const vm={class:"progress-bar-wrapper"},bm={key:0,class:"percentage-text"},hm={props:{percentage:{type:Number,default:0,validator:o=>o>=0&&o<=100},color:{type:String,default:"#4CAF50"},backgroundColor:{type:String,default:"#e0e0e0"},height:{type:[String,Number],default:"20px"},borderRadius:{type:[String,Number],default:"4px"},showPercentage:{type:Boolean,default:!0},gradient:{type:Boolean,default:!1},gradientColors:{type:String,default:"linear-gradient(90deg, #4CAF50, #45a049)"},duration:{type:Number,default:1e3}},setup(o){const n=o,a=Q(()=>({height:typeof n.height=="number"?`${n.height}px`:n.height,borderRadius:typeof n.borderRadius=="number"?`${n.borderRadius}px`:n.borderRadius,backgroundColor:n.backgroundColor,overflow:"hidden"})),l=Q(()=>{const u={height:"100%",width:`${n.percentage}%`,borderRadius:typeof n.borderRadius=="number"?`${n.borderRadius}px`:n.borderRadius,transition:`width ${n.duration}ms cubic-bezier(0.4, 0, 0.2, 1)`,position:"relative",overflow:"hidden"};return n.gradient?vt(st({},u),{background:n.gradientColors}):vt(st({},u),{background:n.color})});return(u,d)=>(r(),s("div",vm,[t("div",{class:"progress-bar",style:ht(e(a))},[t("div",{class:"progress-fill",style:ht(e(l))},[o.showPercentage?(r(),s("span",bm,i(Math.round(o.percentage))+"% ",1)):D("",!0)],4)],4)]))}};var no=N(hm,[["__scopeId","data-v-2e966a39"]]);const _m={key:0,class:"disk-item error"},xm=["title"],wm={class:"disk-item_value"},km={class:"value-data"},ym={class:"error"},Fm={key:1,class:"disk-item"},Em=["title"],$m={key:0,class:"disk_value"},Cm={class:"value-data"},Dm={href:"/cgi-bin/luci/admin/nas/smart"},Bm={class:"error"},Ym={key:1,class:"disk_value"},Am={class:"disk-item_value"},Sm={class:"value-data"},zm={class:"disk-item-tooltip"},Pm={class:"disk_icon"},Tm={key:0,class:"tooltip-trigger"},Im={class:"disk_tip"},Mm={class:"tooltip-text tooltip-top"},Lm={class:"disk_dir_tip"},Om={key:1,class:"tooltip-trigger"},Nm={class:"disk_tip"},Vm={class:"tooltip-text tooltip-top"},Gm={class:"disk_dir_tip"},jm={key:2,class:"disk-item load"},Um=["title"],qm={class:"disk_value"},Rm={class:"disk-item_value"},Wm={class:"value-data"},Hm={key:3,class:"disk-item load"},Jm=["title"],Zm={class:"disk_value"},Km={key:0,class:"disk-item_value"},Qm={class:"value-data"},Xm={class:"disk_icon"},tg=I({props:{disk:{type:Object,required:!0},smartWarning:{type:Boolean}},setup(o){const n=o,{$gettext:a}=J(),l=Q(()=>n.disk.errorInfo?"error":n.disk.isSystemRoot?"success":n.disk.childrens==null||n.disk.childrens.length==0||n.disk.childrens.length==1&&n.disk.childrens[0].filesystem=="No FileSystem"?"load":n.disk.childrens.filter(m=>m.mountPoint).length==0?"unmounted":"success"),u=Q(()=>{const m=n.disk;let v=m.name;return m.size&&(v+=`\u3010${m.size}\u3011`),m.venderModel&&(v+=`(${m.venderModel})`),v}),d=Q(()=>{var v;const m=n.disk;return!m.isSystemRoot&&(((v=m.childrens)==null?void 0:v.filter(b=>b.isReadOnly&&b.filesystem!="swap").length)||0)>0}),c=()=>{la({action:"disk",disk:n.disk,Cancel:()=>{},Next:()=>{location.reload()}})},k=()=>{gm({action:"disk",disk:n.disk,Cancel:()=>{},Next:()=>{location.reload()}})},g=()=>{const m=n.disk,v=m.childrens||[];oo({action:"nas",disk:m,mount:v[0],Cancel:()=>{},Next:()=>{location.reload()}})},p=m=>m<50?"#2fc867":m>50&&m<=75?"#f97316":"#dc2626";return(m,v)=>{var b,y,f,F,w,h;return e(l)=="error"?(r(),s("li",_m,[t("div",{class:"disk-item_name",title:e(u)},[t("span",null,i(e(u)),1)],8,xm),t("div",wm,[t("div",km,[t("span",ym,i(o.disk.errorInfo),1)])])])):e(l)=="success"?(r(),s("li",Fm,[t("div",{class:"disk-item_name",title:e(u)},[t("span",null,i(e(u)),1)],8,Em),o.disk.smartWarning&&o.smartWarning?(r(),s("div",$m,[t("div",Cm,[t("a",Dm,[t("span",Bm,i(e(a)("S.M.A.R.T\u5F02\u5E38")),1)])])])):(r(),s("div",Ym,[t("div",Am,[t("div",Sm,[Y(no,{percentage:o.disk.usage||0,showPercentage:!1,height:"10px",borderRadius:"10px",color:p(o.disk.usage||0),backgroundColor:"#f4f5f7"},null,8,["percentage","color"]),t("div",null,[t("span",null,i(e(a)("\u4F7F\u7528\u7387"))+"\uFF1A"+i(o.disk.usage||0)+"%",1),t("span",null,i(e(a)("\u5DF2\u4F7F\u7528"))+"\uFF1A"+i(o.disk.used),1)])]),t("div",zm,[t("span",null,i(e(a)("\u4EC5\u7EDF\u8BA1\u5DF2\u6302\u8F7D\u5206\u533A")),1)])]),t("div",Pm,[o.disk.isDockerRoot&&o.disk.isSystemRoot&&o.disk.usage&&o.disk.usage>=90?(r(),s("span",Tm,[t("span",Im,[Y(It)]),t("div",null,[t("div",Mm,[t("span",Lm,i(e(a)("\u60A8\u7684\u7CFB\u7EDF\u7A7A\u95F4\u5DF2\u4E0D\u8DB3\uFF0C\u68C0\u6D4B\u5230\u60A8\u7684Docker\u6839\u76EE\u5F55\u4F4D\u4E8E\u7CFB\u7EDF\u6839\u76EE\u5F55\u4E0A\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C\uFF0C\u5EFA\u8BAE\u4F7F\u7528Docker\u8FC1\u79FB\u5411\u5BFC\u5C06Docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\u4E0A\u3002")),1)])])])):D("",!0),e(d)?(r(),s("span",Om,[t("span",Nm,[Y(It)]),t("div",null,[t("div",Vm,[t("span",Gm,i(e(a)("\u5206\u533A\u5B58\u5728\u5F02\u5E38\uFF0C\u70B9\u51FB\u5206\u533A\u5217\u8868\u67E5\u770B\u9519\u8BEF")),1)])])])):D("",!0),e(d)&&(((b=o.disk.childrens)==null?void 0:b.length)||0)==1?(r(),s("span",{key:2,class:"disk_infoicon",onClick:v[0]||(v[0]=_=>c())},[Y(l9)])):D("",!0),(((y=o.disk.childrens)==null?void 0:y.length)||0)>0?(r(),s("span",{key:3,class:"disk_infoicon",onClick:v[1]||(v[1]=_=>k())},[Y(Aa,{style:{color:"var(--app-container_title-color)"}})])):D("",!0)])]))])):e(l)=="load"?(r(),s("li",jm,[t("div",{class:"disk-item_name",title:e(u)},[t("span",null,i(e(u)),1)],8,Um),t("div",qm,[t("div",Rm,[t("div",Wm,[t("button",{onClick:v[2]||(v[2]=_=>c())},i(e(a)("\u683C\u5F0F\u5316\u5E76\u6302\u8F7D")),1)])])])])):e(l)=="unmounted"?(r(),s("li",Hm,[t("div",{class:"disk-item_name",title:e(u)},[t("span",null,i(e(u)),1)],8,Jm),t("div",Zm,[(((f=o.disk.childrens)==null?void 0:f.length)||0)==1?(r(),s("div",Km,[t("div",Qm,[((w=(F=o.disk.childrens)==null?void 0:F[0])==null?void 0:w.filesystem)=="swap"?(r(),s("button",{key:0,onClick:v[3]||(v[3]=_=>k())},i(e(a)("\u67E5\u770B\u8BE6\u60C5")),1)):(r(),s("button",{key:1,onClick:v[4]||(v[4]=_=>g())},i(e(a)("\u624B\u52A8\u6302\u8F7D")),1))])])):D("",!0),t("div",Xm,[(((h=o.disk.childrens)==null?void 0:h.length)||0)>1?(r(),s("span",{key:0,class:"disk_infoicon",onClick:v[5]||(v[5]=_=>k())},[Y(Aa,{style:{color:"var(--app-container_title-color)"}})])):D("",!0)])])])):D("",!0)}}});var Ke=N(tg,[["__scopeId","data-v-c3855aca"]]);const eg=o=>(ut("data-v-6f7fe2ab"),o=o(),ct(),o),ag={href:"/cgi-bin/luci/admin/nas/raid"},og=eg(()=>t("div",null,[t("a",{href:"/cgi-bin/luci/admin/nas/smart"},"S.M.A.R.T.")],-1)),ng={href:"/cgi-bin/luci/admin/system/diskman"},ig={href:"/cgi-bin/luci/admin/system/mounts"},rg={class:"content"},sg={key:0,class:"disk_loading_icon"},dg={class:"disk_loading_info"},lg={class:"item",style:{"margin-top":"4px","padding-bottom":"0"}},ug={class:"icon_box"},cg={class:"info"},pg={class:"name"},fg={class:"schedule"},mg={key:0,class:"line"},gg={key:1,class:"item"},vg={class:"icon_box",style:{background:"#f3e8ff"}},bg={class:"info"},hg={class:"name"},_g={class:"schedule"},xg={key:2,class:"item"},wg={class:"icon_box",style:{background:"#dbfce7"}},kg={class:"info"},yg={class:"name"},Fg={class:"schedule"},Eg=I({setup(o){const{$gettext:n}=J(),a=E(!1),l=gt({disks:null,raidList:null}),u=()=>{G.Nas.Disk.Status.GET().then(k=>{var g;if((g=k==null?void 0:k.data)!=null&&g.result){const p=k.data.result;l.disks=p.disks||[]}})};(()=>L(this,null,function*(){try{const k=yield G.Raid.List.GET();if(k!=null&&k.data){const{success:g,error:p,result:m}=k.data;if(m&&(l.raidList=m.disks||[]),p)throw p}}catch(k){console.log(k)}}))(),u();const c=()=>{zt.installAndGo("luci-app-linkease",n("\u6613\u6709\u4E91"),"/cgi-bin/luci/admin/services/linkease/file/","app-meta-linkease")};return(k,g)=>{const p=_t("icon-loading");return r(),Z(Wt,{title:e(n)("\u78C1\u76D8\u4FE1\u606F"),style:{width:"100%",display:"block"},"is-settings-menu-open":a.value,"onUpdate:isSettingsMenuOpen":g[1]||(g[1]=m=>a.value=m)},{icon:V(()=>[Y(Ya,{color:"#45556c",class:"icon"})]),settings:V(()=>[t("div",{class:"btn_settings",onClick:c},[Y(Jf,{color:"#0a0a0a",class:"icon1 interfaceIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u6587\u4EF6\u7BA1\u7406")),1),t("div",{class:"rotation",onClick:g[0]||(g[0]=ft(m=>a.value=!a.value,["stop"]))},[Y(Ee,{class:"moreIcon"})])])]),"settings-menu":V(()=>[t("div",null,[t("a",ag,i(e(n)("RAID\u7BA1\u7406")),1)]),og,t("div",null,[t("a",ng,i(e(n)("\u78C1\u76D8\u7BA1\u7406")),1)]),t("div",null,[t("a",ig,i(e(n)("\u6302\u8F7D\u70B9")),1)])]),default:V(()=>{var m,v,b,y;return[t("div",rg,[!e(l).disks&&!e(l).raidList?(r(),s("div",sg,[Y(p,{size:38,color:"#888888"}),t("span",dg,i(e(n)("\u6B63\u5728\u83B7\u53D6\u78C1\u76D8\u4FE1\u606F...")),1)])):D("",!0),e(l).disks?(r(),s(U,{key:1},[t("div",lg,[t("div",ug,[Y(Ya,{color:"#2b6cfc",class:"icon"})]),t("div",cg,[t("div",pg,[t("div",null,i(e(n)("\u7CFB\u7EDF\u6839\u76EE\u5F55")),1)]),t("div",fg,[(r(!0),s(U,null,tt((m=e(l).disks)==null?void 0:m.filter(f=>f.isSystemRoot),(f,F)=>(r(),Z(Ke,{key:F,disk:f},null,8,["disk"]))),128))])])]),((v=e(l).disks)==null?void 0:v.filter(f=>!f.isSystemRoot).length)>0?(r(),s("div",mg)):D("",!0),((b=e(l).disks)==null?void 0:b.filter(f=>!f.isSystemRoot).length)>0?(r(),s("div",gg,[t("div",vg,[Y(Qf,{class:"icon"})]),t("div",bg,[t("div",hg,[t("div",null,i(e(n)("\u5DF2\u6302\u8F7D\u78C1\u76D8")),1)]),t("div",_g,[(r(!0),s(U,null,tt((y=e(l).disks)==null?void 0:y.filter(f=>!f.isSystemRoot),(f,F)=>(r(),Z(Ke,{key:F,disk:f,smartWarning:!0},null,8,["disk"]))),128))])])])):D("",!0)],64)):D("",!0),e(l).raidList&&e(l).raidList.length>0?(r(),s("div",xg,[t("div",wg,[Y(eo,{color:"#0bab47",class:"icon"})]),t("div",kg,[t("div",yg,[t("div",null,i(e(n)("RAID\u8BBE\u5907")),1)]),t("div",Fg,[(r(!0),s(U,null,tt(e(l).raidList,(f,F)=>(r(),Z(Ke,{key:F,disk:f},null,8,["disk"]))),128))])])])):D("",!0)])]}),_:1},8,["title","is-settings-menu-open"])}}});var $g=N(Eg,[["__scopeId","data-v-6f7fe2ab"]]);const Cg={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Dg=["fill"],Sa=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Cg,[t("path",{d:"M473.950316 63.164632l488.070737 234.226526v414.234947l-337.92 200.111158-502.837895-295.019789V223.447579l352.687158-160.282947zM200.434526 306.661053V571.284211l383.892211 225.28V510.113684L200.434526 306.661053z m682.253474 82.728421l-219.082105 120.400842v286.396631l219.082105-129.670736V389.335579z m-409.761684-238.753685L258.910316 247.915789l364.759579 193.374316 212.075789-116.520421-362.819368-174.08z",fill:o.color,"p-id":"6174"},null,8,Dg)]))}}),Bg=o=>(ut("data-v-64cabc6e"),o=o(),ct(),o),Yg={class:"app-container_docker"},Ag={class:"docker-item"},Sg={class:"docker-item_name"},zg={key:0,class:"docker-item_value"},Pg={class:"configure"},Tg={key:1,class:"docker-item_value"},Ig={class:"input-switch"},Mg=["value","disabled"],Lg=Bg(()=>t("em",null,null,-1)),Og=[Lg],Ng={key:0,class:"status-icon"},Vg={key:1,class:"status-icon",style:{background:"#e9ebef",color:"#4a5565"}},Gg={key:0,class:"content"},jg={class:"docker-item_name"},Ug={class:"docker_box"},qg={class:"path"},Rg={key:0},Wg={class:"tooltip-trigger"},Hg={class:"docker_tip"},Jg={class:"tooltip-text tooltip-top"},Zg={class:"docker_dir_tip"},Kg=I({props:{docker:{type:Object}},setup(o){var k;const n=o,{$gettext:a,$ngettext:l}=J(),u=Q(()=>{var g;return((g=n.docker)==null?void 0:g.status)!="not installed"}),d=gt({enable:((k=n.docker)==null?void 0:k.status)=="running",disabled:!1}),c=()=>L(this,null,function*(){d.disabled=!0;try{const g=yield G.Guide.DockerSwitch.POST({enable:d.enable});if(g!=null&&g.data){const{success:p,error:m}=g.data;if(m)throw d.enable=!d.enable,m;(p||0)==0}}catch(g){$.Warning(`${g}`)}finally{d.disabled=!1}});return(g,p)=>{var m,v,b,y;return r(),s("ul",Yg,[t("li",Ag,[t("div",Sg,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),(m=n.docker)!=null&&m.status?(r(),s(U,{key:0},[e(u)?(r(),s("div",Tg,[t("label",Ig,[O(t("input",{type:"checkbox",hidden:"",value:!e(d).enable,"onUpdate:modelValue":p[0]||(p[0]=f=>e(d).enable=f),disabled:e(d).disabled,onChange:c},null,40,Mg),[[Rt,e(d).enable]]),t("span",{class:lt(e(d).enable?"enable":"close")},Og,2)]),e(d).enable?(r(),s("span",Ng,i(e(a)("\u8FD0\u884C\u4E2D")),1)):D("",!0),e(d).enable?D("",!0):(r(),s("span",Vg,i(e(a)("\u672A\u542F\u7528")),1))])):(r(),s("div",zg,[t("span",Pg,i(e(a)("\u672A\u5B89\u88C5")),1)]))],64)):D("",!0)]),((v=o.docker)==null?void 0:v.status)=="running"?(r(),s("li",Gg,[t("div",jg,[t("span",{style:ht({color:"var(--app-container_title-color)"})},i(e(a)("Docker\u6839\u76EE\u5F55\uFF1A")),5)]),t("div",Ug,[t("div",qg,i((b=o.docker)==null?void 0:b.path),1),(y=o.docker)!=null&&y.errorInfo?(r(),s("span",Rg,[t("span",Wg,[t("span",Hg,[Y(It)]),t("div",null,[t("div",Jg,[t("span",Zg,i(o.docker.errorInfo),1)])])])])):D("",!0)])])):D("",!0)])}}});var Qg=N(Kg,[["__scopeId","data-v-64cabc6e"]]);const Xg={},tv={width:"128px",height:"128px",viewBox:"0 0 128 128",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},ev=t("g",{id:"icon_yellow",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"128",height:"128"}),t("path",{d:"M64,8 C33.075,8 8,33.075 8,64 C8,94.925 33.075,120 64,120 C94.925,120 120,94.925 120,64 C120,33.075 94.925,8 64,8 Z M60,37 C60,36.45 60.45,36 61,36 L67,36 C67.55,36 68,36.45 68,37 L68,71 C68,71.55 67.55,72 67,72 L61,72 C60.45,72 60,71.55 60,71 L60,37 Z M64,92 C60.6875,92 58,89.3125 58,86 C58,82.6875 60.6875,80 64,80 C67.3125,80 70,82.6875 70,86 C70,89.3125 67.3125,92 64,92 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])],-1),av=[ev];function ov(o,n){return r(),s("svg",tv,av)}var nv=N(Xg,[["render",ov]]);const iv={key:0,class:"action"},rv={class:"title"},sv={class:"desc"},dv={class:"roots"},lv={class:"roots_tit"},uv={class:"root"},cv={class:"move"},pv={class:"roots_tit"},fv={key:0},mv=["onSubmit"],gv={class:"select-editable"},vv={selected:"",value:null},bv=["value"],hv={value:"useInput"},_v=["placeholder"],xv={key:1,class:"tips"},wv={class:"tips_content"},kv={class:"tip"},yv={key:0,class:"btns"},Fv={key:1,class:"btns"},Ev={key:1,class:"action docker_success"},$v={class:"title"},Cv={class:"finished"},Dv={class:"successed"},Bv={class:"btns"},Yv={key:2,class:"action docker_download"},Av={class:"title"},Sv={class:"finished"},zv={class:"successed"},Pv={class:"docker_moves"},Tv={class:"moves change"},Iv={for:"move"},Mv={class:"moves"},Lv={for:"cover"},Ov={class:"btns"},Nv=I({props:{rootPath:{type:String,required:!0},Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(),d=E(),c=E(0),k=E("null"),g=E(""),p=E(),m=E(!1),v=E("");(()=>{G.Nas.Disk.Status.GET().then(x=>{x!=null&&x.data.result&&(p.value=x==null?void 0:x.data.result)}),G.Guide.DockerStatus.GET().then(x=>{var C;if((C=x==null?void 0:x.data)!=null&&C.result){const S=x.data.result;u.value=S}}),G.Guide.DockerPartitionList.GET().then(x=>{var C;if((C=x==null?void 0:x.data)!=null&&C.result){const S=x.data.result;d.value=S}})})();const y=x=>{let C=k.value;if(C=="useInput"&&(C=g.value),C==null||C=="null"||C=="")return;const S=$.Loading(a("\u6B63\u5728\u8FC1\u79FB\u4E2D..."));G.Guide.DockerTransfer.POST({path:C,force:x,overwriteDir:!!v.value}).then(A=>{var z;if(A!=null&&A.data){if((A.data.success||0)==0){if((z=A.data.result)!=null&&z.emptyPathWarning){m.value=!0,c.value=2;return}c.value=1;return}else if(A.data.error)throw A.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(A=>{$.Error(A)}).finally(()=>S.Close())},f=()=>{m.value=!1,y(!1)},F=x=>{x.preventDefault(),n.Close&&n.Close()},w=x=>{x.preventDefault(),location.reload()},h=x=>{x.preventDefault(),c.value=0},_=x=>{x.preventDefault(),y(!0)};return(x,C)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>{var S,A,z,B,H,M;return[c.value==0?(r(),s("div",iv,[t("h2",rv,i(e(a)("Docker\u8FC1\u79FB\u5411\u5BFC")),1),t("p",sv,i(e(a)("\u5F53\u7CFB\u7EDF\u6839\u76EE\u5F55\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u5C06Docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\uFF0C\u4EE5\u4FDD\u8BC1\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C\uFF08\u76EE\u6807\u5206\u533A\u4E0D\u652F\u6301NTFS\uFF0CFAT\u7B49\u6587\u4EF6\u7CFB\u7EDF\uFF09")),1),t("div",dv,[t("span",lv,i(e(a)("Docker\u6839\u76EE\u5F55\uFF1A")),1),t("span",uv,i((S=u.value)==null?void 0:S.path),1)]),t("div",cv,[t("span",pv,i(e(a)("\u8FC1\u79FB\u5230\uFF1A")),1),(z=(A=d.value)==null?void 0:A.partitionList)!=null&&z.length?(r(),s("div",fv,[t("form",{onSubmit:ft(f,["prevent"])},[t("label",null,[t("div",gv,[O(t("select",{"onUpdate:modelValue":C[0]||(C[0]=q=>k.value=q)},[t("option",vv,i(e(a)("\u8BF7\u9009\u62E9\u8FC1\u79FB\u8DEF\u5F84")),1),(r(!0),s(U,null,tt((B=d.value)==null?void 0:B.partitionList,(q,T)=>(r(),s("option",{value:q,key:T},i(q),9,bv))),128)),t("option",hv,i(e(a)("- -\u81EA\u5B9A\u4E49- -")),1)],512),[[pt,k.value,void 0,{trim:!0}]]),k.value=="useInput"?O((r(),s("input",{key:0,type:"text","onUpdate:modelValue":C[1]||(C[1]=q=>g.value=q),required:"",placeholder:e(a)("\u8BF7\u8F93\u5165\u8FC1\u79FB\u8DEF\u5F84")},null,8,_v)),[[at,g.value,void 0,{trim:!0}]]):D("",!0)])])],40,mv)])):d.value?(r(),s("div",xv,[t("div",wv,[Y(It),t("span",kv,i(e(a)("\u68C0\u6D4B\u5230\u60A8\u8FD8\u6CA1\u6709\u6302\u8F7D\u5916\u7F6E\u786C\u76D8\u6216\u5206\u533A\u5C0F\u4E8E8GB\uFF0C\u9700\u8981\u60A8\u63A5\u4E0A\u786C\u76D8\u5E76\u683C\u5F0F\u5316\u6216\u624B\u52A8\u6302\u8F7D\u786C\u76D8\u540E\uFF0C\u518D\u6267\u884CDocker\u8FC1\u79FB\u5411\u5BFC\uFF0C\u5C06Docker\u8FC1\u79FB\u5230\u76EE\u6807\u786C\u76D8\u3002")),1)])])):D("",!0)]),(M=(H=d.value)==null?void 0:H.partitionList)!=null&&M.length?(r(),s("div",yv,[t("button",{class:"cbi-button cbi-button-apply",onClick:f},i(e(a)("\u786E\u5B9A")),1),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:F},i(e(a)("\u53D6\u6D88")),1)])):(r(),s("div",Fv,[t("button",{class:"cbi-button cbi-button-apply",onClick:F},i(e(a)("\u786E\u5B9A")),1)]))])):c.value==1?(r(),s("div",Ev,[t("h2",$v,i(e(a)("Docker\u8FC1\u79FB\u5411\u5BFC")),1),t("div",Cv,[Y(ua)]),t("p",Dv,i(e(a)("\u8FC1\u79FB\u6210\u529F\uFF01")),1),t("div",Bv,[t("button",{class:"cbi-button cbi-button-apply",onClick:w},i(e(a)("\u786E\u5B9A")),1)])])):c.value==2?(r(),s("div",Yv,[t("h2",Av,i(e(a)("Docker\u8FC1\u79FB\u5411\u5BFC")),1),t("div",Sv,[Y(nv)]),t("p",zv,i(e(a)("\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0D\u4E3A\u7A7A")),1),t("div",Pv,[t("div",Tv,[O(t("input",{type:"radio",id:"move",name:"moves","onUpdate:modelValue":C[2]||(C[2]=q=>v.value=q),value:""},null,512),[[Bt,v.value]]),t("label",Iv,i(e(a)("\u66F4\u6362\u76EE\u5F55\uFF08\u4E0D\u8986\u76D6\u76EE\u6807\u8DEF\u5F84\uFF0C\u4EC5\u5C06Docker\u76EE\u5F55\u4FEE\u6539\u4E3A\u76EE\u6807\u8DEF\u5F84\uFF09")),1)]),t("div",Mv,[O(t("input",{type:"radio",id:"cover",name:"moves","onUpdate:modelValue":C[3]||(C[3]=q=>v.value=q),value:"true"},null,512),[[Bt,v.value]]),t("label",Lv,i(e(a)("\u8986\u76D6\u8FC1\u79FB\uFF08\u8986\u76D6\u76EE\u6807\u8DEF\u5F84\uFF0C\u7EE7\u7EED\u8FC1\u79FB\u4F1A\u6E05\u7A7A\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0B\u7684\u6587\u4EF6\uFF09")),1)])]),t("div",Ov,[m.value?(r(),s("button",{key:0,class:"cbi-button cbi-button-apply",onClick:_},i(e(a)("\u786E\u5B9A")),1)):D("",!0),t("button",{class:"cbi-button cbi-button-apply",onClick:h},i(e(a)("\u8FD4\u56DE")),1),m.value?D("",!0):(r(),s("button",{key:1,class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:w},i(e(a)("\u53D6\u6D88")),1))])])):D("",!0)]}),_:1},8,["Close"]))}});var Vv=N(Nv,[["__scopeId","data-v-a5cf4814"]]);const Gv=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=xt(Vv,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},jv={href:"/cgi-bin/luci/admin/docker/overview"},Uv={key:0,class:"content"},qv={key:1,class:"content",style:{display:"flex","justify-content":"center"}},Rv=I({setup(o){const{$gettext:n}=J(),a=E(!1),l=E(),u=E(!1),d=()=>{Gv()};return setTimeout(()=>{G.Guide.DockerStatus.GET().then(k=>{var g;if((g=k==null?void 0:k.data)!=null&&g.result){const p=k.data.result;l.value=p}}).finally(()=>{a.value=!0})},1100),(k,g)=>{var m;const p=_t("icon-loading");return r(),Z(Wt,{title:"Docker",showSettings:!0,onFooterClick:d,style:{width:"100%",height:"100%",display:"block"},"is-settings-menu-open":u.value,"onUpdate:isSettingsMenuOpen":g[1]||(g[1]=v=>u.value=v)},Fo({icon:V(()=>[Y(Sa,{color:"#155dfc",class:"icon"})]),settings:V(()=>{var v;return[t("div",{class:"btn_settings",onClick:d},[Y(Sa,{color:"#0a0a0a",class:"icon1 dockerIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("Docker\u8FC1\u79FB")),1),((v=l.value)==null?void 0:v.status)==="running"?(r(),s("div",{key:0,class:"rotation",onClick:g[0]||(g[0]=ft(b=>u.value=!u.value,["stop"]))},[Y(Ee,{class:"moreIcon"})])):D("",!0)])]}),default:V(()=>[a.value?(r(),s("div",Uv,[Y(Qg,{docker:l.value},null,8,["docker"])])):(r(),s("div",qv,[Y(p,{size:40,color:"currentColor"})]))]),_:2},[((m=l.value)==null?void 0:m.status)==="running"?{name:"settings-menu",fn:V(()=>[t("div",null,[t("a",jv,i(e(n)("Docker\u9AD8\u7EA7\u914D\u7F6E")),1)])])}:void 0]),1032,["is-settings-menu-open"])}}});var Wv=N(Rv,[["__scopeId","data-v-78ae3db3"]]);const Hv={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Jv=["fill"],Zv=["fill"],io=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Hv,[t("path",{d:"M577.78 355.55H449.62c-52.93 0-96 43.07-96 96V579.7c0 52.93 43.07 96 96 96h128.15c52.93 0 96-43.07 96-96V451.55c0.01-52.93-43.06-96-95.99-96z m32 224.15c0 17.64-14.36 32-32 32H449.62c-17.65 0-32-14.36-32-32V451.55c0-17.65 14.35-32 32-32h128.15c17.64 0 32 14.35 32 32V579.7z",fill:o.color,"p-id":"5378"},null,8,Jv),t("path",{d:"M927.33 547.13c17.67 0 32-14.33 32-32s-14.33-32-32-32h-62.44V355.2h62.44c17.67 0 32-14.33 32-32s-14.33-32-32-32h-64.37c-10.34-64.43-61.3-115.45-125.69-125.87v-64.19c0-17.67-14.33-32-32-32s-32 14.33-32 32v62.22H545.34v-62.22c0-17.67-14.33-32-32-32s-32 14.33-32 32v62.22H353.2v-62.22c0-17.67-14.33-32-32-32s-32 14.33-32 32v64.16c-64.46 10.37-115.49 61.42-125.83 125.9H99.14c-17.67 0-32 14.33-32 32s14.33 32 32 32h62.3v127.93h-62.3c-17.67 0-32 14.33-32 32s14.33 32 32 32h62.3v128.14h-62.3c-17.67 0-32 14.33-32 32s14.33 32 32 32h64.28c10.45 64.34 61.42 115.25 125.79 125.61v64.46c0 17.67 14.33 32 32 32s32-14.33 32-32v-62.51h128.14v62.51c0 17.67 14.33 32 32 32s32-14.33 32-32v-62.51h127.93v62.51c0 17.67 14.33 32 32 32s32-14.33 32-32v-64.48c64.3-10.41 115.2-61.29 125.64-125.58h64.42c17.67 0 32-14.33 32-32s-14.33-32-32-32H864.9V547.13h62.43zM800.89 714.82c0 48.52-39.48 88-88 88H313.44c-48.52 0-88-39.48-88-88V315.36c0-48.52 39.48-88 88-88H712.9c48.52 0 88 39.48 88 88v399.46z",fill:o.color,"p-id":"5379"},null,8,Zv)]))}}),Kv={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Qv=["fill"],Xv=I({props:{color:{type:String,default:"#ef4444"}},setup(o){return(n,a)=>(r(),s("svg",Kv,[t("path",{d:"M520 75c72.899 0 132.133 58.543 133.31 131.209l0.018 2.206v399.237C700.759 646.978 729 705.514 729 768.714c0 84.846-50.493 157.892-123.051 190.69C579.509 971.959 549.966 979 518.85 979c-57.133 0-108.962-23.737-146.008-61.784C334.65 879.324 311 826.783 311 768.714c0-63.27 28.313-121.806 75.67-161.065l0.002-399.234C386.672 134.732 446.365 75 520 75z m0 59.807c-40.22 0-72.9 32.3-73.55 72.39l-0.01 1.218v403.457c4.008 12.048-0.02 25.747-10.721 33.573l-0.619 0.441c-40.008 27.753-64.332 73.214-64.332 122.828 0 82.472 66.813 149.33 149.232 149.33s149.232-66.858 149.232-149.33c0-47.591-22.367-91.397-59.645-119.44l-1.134-0.846a29.773 29.773 0 0 1-10.972-15.751 29.763 29.763 0 0 1-3.913-14.111l-0.008-0.706V208.415c0-40.653-32.934-73.608-73.56-73.608z m-2.299 236.926c4.41 0 8.66 0.69 12.647 1.968 16.826 4.965 29.19 20.52 29.19 38.81l0.002 240.184c47.972 17.182 82.294 63.07 82.294 116.982 0 6.94-0.568 13.747-1.662 20.376-6.746 60.536-58.728 108.02-121.321 108.02-47.223 0-88.407-27.027-108.683-66.296-10.557-18.27-16.6-39.479-16.6-62.1 0-54.083 34.542-100.093 82.754-117.145l0.002-239.422c0-22.852 18.525-41.377 41.377-41.377z",fill:o.color,"p-id":"4599"},null,8,Qv)]))}}),tb={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},eb=["fill"],ro=I({props:{color:{type:String,default:"#222222"}},setup(o){return(n,a)=>(r(),s("svg",tb,[t("path",{d:"M760.1 64l-150 262.7-41 71.8c-6.1 10.7 1.6 23.9 13.9 23.9h104.7c13.9 0 21.2 16.6 11.8 26.9L410.8 761.9l59.5-178.5 21.1-63.2c3.5-10.4-4.3-21.1-15.2-21.1H277.8c-11.6 0-19.4-12-14.6-22.6l179-393.8c5.2-11.4 16.6-18.8 29.1-18.8h288.8M450.8 0c-25.1 0-47.9 14.7-58.3 37.5L194.7 472.7c-19.3 42.4 11.7 90.5 58.3 90.5h145.5c5.5 0 9.3 5.3 7.6 10.5L256 1024l515.3-558.2c37.8-41 8.8-107.4-47-107.4h-44.8c-6.1 0-10-6.6-6.9-12L870.4 0H450.8z","p-id":"4712",fill:o.color},null,8,eb)]))}}),ab={key:0,class:"center-content"},ob=I({props:{value:null,color:null,icon:null,label:null,width:null,height:null},setup(o){const n=o;Xe([Eo,ta,ea]);const a=E(null);let l=null;function u(k,g){return{tooltip:{show:!1},series:[{type:"pie",radius:["75%","90%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},z:1,zlevel:0,data:[{value:k,itemStyle:{color:g||"#409EFF"}},{value:Math.max(0,100-k),itemStyle:{color:"#f0f0f0"}}]}]}}const d=()=>{!a.value||(l=l!=null?l:aa(a.value),l.setOption(u(n.value,n.color)))};Pt(()=>L(this,null,function*(){yield na(),d(),window.addEventListener("resize",c)}));function c(){l==null||l.resize()}return $t(()=>[n.value,n.color],()=>{l?l.setOption({series:[{z:1,zlevel:0,data:[{value:n.value,itemStyle:{color:n.color||"#409EFF"}},{value:Math.max(0,100-n.value),itemStyle:{color:"#f0f0f0"}}]}]}):d()},{immediate:!0}),ke(()=>{window.removeEventListener("resize",c),l==null||l.dispose(),l=null}),(k,g)=>(r(),s("div",{class:"pie-chart-wrapper",style:ht({width:o.width||"120px",height:o.height||"120px"})},[t("div",{ref_key:"chartDom",ref:a,class:"chart-dom"},null,512),o.icon||o.label?(r(),s("div",ab,[o.icon==="chip"?(r(),Z(io,{key:0,color:o.color,class:"center-icon"},null,8,["color"])):o.icon==="temperature"?(r(),Z(Xv,{key:1,color:o.color,class:"center-icon"},null,8,["color"])):o.icon==="lightning"?(r(),Z(ro,{key:2,color:o.color,class:"center-icon"},null,8,["color"])):D("",!0),o.label?(r(),s("div",{key:3,class:"center-label",style:ht({color:o.color})},i(o.label),5)):D("",!0)])):D("",!0)],4))}});var Qe=N(ob,[["__scopeId","data-v-1b4ddc16"]]);const nb={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},ib=["fill"],za=I({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",nb,[t("path",{d:"M868.95177918 215.34678468H274.11312994c-10.26749627 0-19.00277466 3.6151618-26.30943653 10.88910739-7.22487113 7.23032433-10.89456058 15.97650768-10.89456059 26.20583515v370.75858453c0 10.24023245 3.66968946 18.95370022 10.89456059 26.22764579 7.30666259 7.22487113 16.04194099 10.86184429 26.30943653 10.86184429h594.83864924c10.28385442 0 19.04094415-3.63697315 26.28217344-10.86184429 7.30120941-7.27394558 10.9218244-15.98741334 10.92182439-26.22764579V252.44172722c0-10.2293275-3.62061501-18.97551083-10.92727686-26.20583516-7.23577681-7.27394558-15.99286582-10.8891081-26.27672097-10.88910738M274.09131931 141.21142578h594.83864924c30.77522572 0 57.07375657 10.86729676 78.86287773 32.59643853 21.78912116 21.74004671 32.66187112 47.91861806 32.66187114 78.62841045v370.76403699c0 30.68798176-10.87274996 56.91562756-32.66187114 78.63386293-21.78912116 21.72914105-48.08765274 32.59643853-78.86287773 32.59643851H608.68737796v74.15716953h111.5465602c10.26204379 0 19.03003849 3.6151618 26.28217344 10.8891081 7.29030445 7.22487113 10.91091874 15.97650768 10.91091872 26.20583518 0 10.24023245-3.62061501 18.98641651-10.91637192 26.20038195-7.25213496 7.28485125-16.01467717 10.90001305-26.27672024 10.90001379H422.80370787c-10.27840195 0-19.0191328-3.6151618-26.30943728-10.90001379-7.25213496-7.21396618-10.89456058-15.96014952-10.89456056-26.20038195 0-10.23477998 3.6478781-18.97551083 10.89456056-26.20583518 7.29030445-7.27394558 16.03103531-10.8891081 26.30943728-10.8891081h111.53565452v-74.15716953H274.09131931c-30.79703633 0-57.09011544-10.86729676-78.86287845-32.59643851C173.43931968 680.11593931 162.54475911 653.88829351 162.54475911 623.20031175V252.44172722C162.54475911 221.72648236 173.43931968 195.54791102 195.22844086 173.80786431 217.00665706 152.07872254 243.29428298 141.21142578 274.09131931 141.21142578","p-id":"6454",fill:o.color},null,8,ib)]))}}),rb={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},sb=["fill"],db=["fill"],lb=I({props:{color:{type:String,default:"#333333"}},setup(o){return(n,a)=>(r(),s("svg",rb,[t("path",{d:"M512 458.67c-8.66 0-15.69 7.02-15.69 15.69v125.49c0 8.66 7.02 15.69 15.69 15.69s15.69-7.02 15.69-15.69v-125.5c0-8.66-7.03-15.68-15.69-15.68z m-31.37-26.98h62.75c8.66 0 15.69-7.02 15.69-15.69 0-8.66-7.02-15.69-15.69-15.69h-15.69V296.78c0-8.66-7.02-15.69-15.69-15.69s-15.69 7.02-15.69 15.69v103.53h-15.69c-8.66 0-15.69 7.02-15.69 15.69 0.01 8.66 7.03 15.69 15.7 15.69z m219.61 53.33c-8.66 0-15.69 7.02-15.69 15.69V601.1c0 8.66 7.02 15.69 15.69 15.69s15.69-7.02 15.69-15.69v-99.76c0.35-8.66-6.39-15.95-15.05-16.3-0.22-0.02-0.43-0.02-0.64-0.02z m-31.38-27.61h62.75c8.66 0 15.69-7.02 15.69-15.69 0-8.66-7.02-15.69-15.69-15.69h-14.43V296.78c0-8.66-7.02-15.69-15.69-15.69s-15.69 7.02-15.69 15.69v125.49h-16.94c-8.66 0-15.69 7.02-15.69 15.69 0 8.66 7.02 15.69 15.69 15.69v3.76z m-376.47 32.63h62.75c8.66 0 15.69-7.02 15.69-15.69s-7.02-15.69-15.69-15.69h-15.69V296.78c0-8.66-7.02-15.69-15.69-15.69-8.66 0-15.69 7.02-15.69 15.69v161.88h-15.69c-8.66 0-15.69 7.02-15.69 15.69s7.04 15.69 15.7 15.69z m31.37 32c-8.66 0-15.69 7.02-15.69 15.69v62.75c0 8.66 7.02 15.69 15.69 15.69 8.66 0 15.69-7.02 15.69-15.69v-62.75c0-8.67-7.02-15.69-15.69-15.69z",fill:o.color,"p-id":"15217"},null,8,sb),t("path",{d:"M870 116.39H154c-49.71 0-90 40.29-90 90v485.1c0 49.71 40.29 90 90 90h716c49.71 0 90-40.29 90-90v-485.1c0-49.7-40.29-90-90-90z m50 565.1c0 33.14-26.86 60-60 60H164c-33.14 0-60-26.86-60-60v-465.1c0-33.14 26.86-60 60-60h696c33.14 0 60 26.86 60 60v465.1zM680.24 907.61H343.76c-11.05 0-20-8.95-20-20s8.95-20 20-20h336.48c11.05 0 20 8.95 20 20 0 11.04-8.96 20-20 20z",fill:o.color,"p-id":"15218"},null,8,db)]))}}),ub={href:"/cgi-bin/luci/admin/system/flash"},cb={href:"/cgi-bin/luci/admin/store/pages/maintance"},pb={class:"content"},fb={class:"chart_box"},mb={class:"chart"},gb={class:"chart"},vb={class:"chart"},bb={class:"info"},hb={class:"item1 bgcolor1"},_b={style:{"font-weight":"bold","margin-top":"2px"}},xb={class:"item1 bgcolor2"},wb={style:{"font-weight":"bold","margin-top":"2px"}},kb={class:"item"},yb={class:"item"},Fb=I({setup(o){const{$gettext:n}=J(),a=Le(),l=Q(()=>a.version),u=Q(()=>a.systemStatus),d=E(!1),c=Q(()=>{var w;return((w=u.value)==null?void 0:w.cpuUsage)||0}),k=Q(()=>{var w;return((w=u.value)==null?void 0:w.cpuTemperature)||0}),g=Q(()=>{var h;const w=((h=u.value)==null?void 0:h.memAvailablePercentage)||100;return 100-w}),p=Q(()=>{const w=c.value;return w<76?"#3b82f6":w>=76&&w<96?"#f59e0b":"#ef4444"}),m=Q(()=>k.value<=115?"#22c55e":"#f97316"),v=Q(()=>{const w=g.value;return w<76?"#8b5cf6":w>=76&&w<96?"#fb923c":"#b91c1c"}),b=()=>{location.href="/cgi-bin/luci/admin/status/overview"},y=Mt.stampForm;Pt(()=>{});const f=()=>{d.value=!d.value},F=()=>{f(),zt.installAndGo("app-meta-netdata","NetData","/cgi-bin/luci/admin/status/netdata")};return(w,h)=>(r(),Z(Wt,{title:e(n)("\u7CFB\u7EDF\u4FE1\u606F"),showFooter:!1,style:{width:"100%",height:"100%",display:"block"}},{icon:V(()=>[Y(za,{class:"icon computerIcon"})]),settings:V(()=>[t("div",{class:"btn_settings",onClick:b},[Y(za,{color:"#0a0a0a",class:"icon2 computerIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u4FE1\u606F\u6982\u89C8")),1)])]),"settings-menu":V(()=>[t("div",null,[t("a",{onClick:F},i(e(n)("\u7CFB\u7EDF\u76D1\u63A7")),1)]),t("div",null,[t("a",ub,i(e(n)("\u5907\u4EFD\u5347\u7EA7")),1)]),t("div",null,[t("a",cb,i(e(n)("\u63D2\u4EF6\u5907\u4EFD")),1)])]),default:V(()=>{var _,x,C,S,A;return[t("div",pb,[t("div",fb,[t("div",mb,[Y(Qe,{value:e(c),color:e(p),icon:"chip",label:`${e(c)}%`,width:"150px",height:"150px"},null,8,["value","color","label"]),t("div",null,i(e(n)("CPU\u4F7F\u7528\u7387")),1)]),t("div",gb,[Y(Qe,{value:e(k)/1.5,color:e(m),icon:"temperature",label:`${e(k)}\u2103`,width:"150px",height:"150px"},null,8,["value","color","label"]),t("div",null,i(e(n)("CPU\u6E29\u5EA6")),1)]),t("div",vb,[Y(Qe,{value:e(g),color:e(v),icon:"lightning",label:`${e(g)}%`,width:"150px",height:"150px"},null,8,["value","color","label"]),t("div",null,i(e(n)("\u5185\u5B58\u4F7F\u7528\u7387")),1)])]),t("div",bb,[t("div",hb,[t("div",null,[Y(io,{color:"#155dfc",class:"icon1",style:{"margin-bottom":"0"}}),t("span",null,i(e(n)("\u8BBE\u5907\u578B\u53F7")),1)]),t("span",_b,i((_=e(l))==null?void 0:_.model),1)]),t("div",xb,[t("div",null,[Y(lb,{color:"#00a63e",class:"icon1",style:{"margin-bottom":"0"}}),t("span",null,i(e(n)("\u56FA\u4EF6\u7248\u672C")),1)]),t("span",wb,i((x=e(l))==null?void 0:x.firmwareVersion)+"\uFF08"+i(e(n)("\u5185\u6838"))+"\uFF1A"+i((C=e(l))==null?void 0:C.kernelVersion)+"\uFF09",1)]),t("div",kb,[t("div",null,i(e(n)("\u7CFB\u7EDF\u65F6\u95F4"))+"\uFF1A",1),t("span",null,i((S=e(u))==null?void 0:S.localtime),1)]),t("div",yb,[t("div",null,i(e(n)("\u5DF2\u542F\u52A8"))+"\uFF1A",1),t("span",null,i(e(y)((A=e(u))==null?void 0:A.uptime)),1)])])])]}),_:1},8,["title"]))}});var Eb=N(Fb,[["__scopeId","data-v-e005287c"]]);const $b=["onClick"],Cb={class:"modal-header"},Db={class:"modal-title"},Bb={class:"modal-content"},Yb={key:0,class:"modal-footer"},Xt=I({props:{modelValue:{type:Boolean},title:{default:"\u63D0\u793A"},showClose:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1},footerShow:{type:Boolean,default:!0},width:{default:"500px"}},emits:["update:modelValue","confirm","cancel","close"],setup(o,{expose:n,emit:a}){const l=o;$o(v=>({"3fcd09c7":e(d)}));const{$gettext:u}=J(),d=Q(()=>typeof l.width=="number"?`${l.width}px`:l.width),c=E(l.modelValue);$t(()=>l.modelValue,v=>{c.value=v}),$t(c,v=>{a("update:modelValue",v),v||a("close")}),Q(()=>typeof l.width=="number"?`${l.width}px`:l.width);const k=()=>{c.value=!1},g=()=>{l.closeOnClickOverlay&&m()},p=()=>{a("confirm")},m=()=>{a("cancel"),k()};return n({show:()=>c.value=!0,hide:()=>c.value=!1}),(v,b)=>(r(),Z(St,{name:"fade"},{default:V(()=>[c.value?(r(),s("div",{key:0,class:"modal-overlay",onClick:ft(g,["self"])},[Y(St,{name:"slide"},{default:V(()=>[t("div",{class:"modal-container",style:ht({maxWidth:e(d)})},[t("div",Cb,[t("h3",Db,i(e(u)(o.title)),1),o.showClose?(r(),s("button",{key:0,class:"modal-close",onClick:m,"aria-label":"Close"}," \xD7 ")):D("",!0)]),t("div",Bb,[Yt(v.$slots,"default")]),o.footerShow?(r(),s("div",Yb,[Yt(v.$slots,"footer",{},()=>[t("button",{class:"modal-button cancel",onClick:m},i(e(u)("\u53D6\u6D88")),1),t("button",{class:"modal-button confirm",onClick:p},i(e(u)("\u4FDD\u5B58")),1)])])):D("",!0)],4)]),_:3})],8,$b)):D("",!0)]),_:3}))}}),Ab=o=>(ut("data-v-ca434918"),o=o(),ct(),o),Sb=Ab(()=>t("span",{class:"switch__button"},null,-1)),zb=[Sb],Pb=["checked","disabled"],Tb=I({props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},activeColor:{default:"#409EFF"},inactiveColor:{default:"#DCDFE6"}},emits:["update:modelValue","change","beforeChange"],setup(o,{emit:n}){const a=o,l=()=>{if(n("beforeChange",!a.modelValue),a.disabled)return;const u=!a.modelValue;n("update:modelValue",u),n("change",u)};return Q(()=>a.modelValue),(u,d)=>(r(),s("div",{class:lt(["switch",{"is-checked":o.modelValue,"is-disabled":o.disabled}]),onClick:l},[t("span",{class:"switch__core",style:ht({backgroundColor:o.modelValue?o.activeColor:o.inactiveColor,borderColor:o.modelValue?o.activeColor:o.inactiveColor})},zb,4),t("input",{type:"checkbox",class:"switch__input",checked:o.modelValue,disabled:o.disabled},null,8,Pb)],2))}});var Ot=N(Tb,[["__scopeId","data-v-ca434918"]]);const Ib={class:"module-settings"},Mb={class:"module-settings__header"},Lb={class:"module-settings__summary"},Ob={class:"module-settings__badge"},Nb={class:"module-settings__texts"},Vb={class:"module-settings__title"},Gb={class:"module-settings__sub"},jb={class:"module-settings__list"},Ub={class:"module-settings__info"},qb={class:"module-settings__name"},Rb={class:"module-settings__desc"},Wb={class:"module-settings__footer"},Hb=I({props:{visible:{type:Boolean},modules:null,states:null},emits:["update:visible","update:states","cancel","save"],setup(o,{emit:n}){const a=o,{$gettext:l}=J(),u=Q({get:()=>a.visible,set:b=>n("update:visible",b)}),d=()=>{const b={};return a.modules.forEach(y=>{var f,F;b[y.key]=(F=(f=a.states)==null?void 0:f[y.key])!=null?F:!0}),b},c=gt(d());$t(()=>a.visible,b=>{b&&Object.assign(c,d())}),$t(()=>a.states,()=>{Object.assign(c,d())},{deep:!0}),$t(()=>a.modules,()=>{Object.assign(c,d())},{deep:!0});const k=Q(()=>a.modules.reduce((b,y)=>c[y.key]?b+1:b,0)),g=(b,y)=>{const f=a.modules.find(F=>F.key===b);if(!!f&&!f.disabled){if(y===!1&&a.modules.reduce((w,h)=>c[h.key]?w+1:w,0)<=1)return $.Warning(l("\u8BF7\u81F3\u5C11\u4FDD\u7559\u4E00\u9879\uFF01"));c[b]=y}},p=()=>{n("cancel"),u.value=!1},m=()=>{const b=st({},a.states||{});a.modules.forEach(y=>{b[y.key]=!!c[y.key]}),n("save",b)},v=()=>{a.modules.forEach(b=>{b.disabled||(c[b.key]=!0)})};return(b,y)=>(r(),Z(Xt,{modelValue:e(u),"onUpdate:modelValue":y[0]||(y[0]=f=>Ia(u)?u.value=f:null),title:e(l)("\u6A21\u5757\u663E\u793A\u8BBE\u7F6E"),width:"640px","show-close":!0,onCancel:p,onConfirm:m},{footer:V(()=>[t("div",Wb,[t("button",{class:"module-settings__btn module-settings__btn--secondary",type:"button",onClick:p},i(e(l)("\u53D6\u6D88")),1),t("button",{class:"module-settings__btn module-settings__btn--primary",type:"button",onClick:m},i(e(l)("\u4FDD\u5B58\u8BBE\u7F6E")),1)])]),default:V(()=>[t("span",null,i(e(l)("\u9009\u62E9\u8981\u5728\u9996\u9875\u663E\u793A\u7684\u529F\u80FD\u6A21\u5757\uFF0C\u9690\u85CF\u4E0D\u5E38\u7528\u7684\u6A21\u5757\u53EF\u4EE5\u8BA9\u754C\u9762\u66F4\u7B80\u6D01")),1),t("div",Ib,[t("div",Mb,[t("div",Lb,[t("div",Ob,i(e(k)),1),t("div",Nb,[t("span",Vb,i(e(l)("\u5DF2\u663E\u793A\u6A21\u5757")),1),t("span",Gb,i(e(l)("\u5171"))+i(o.modules.length)+i(e(l)("\u4E2A\u6A21\u5757")),1)])]),t("button",{class:"module-settings__toggle-all",type:"button",onClick:v},i(e(l)("\u5168\u90E8\u663E\u793A")),1)]),t("div",jb,[(r(!0),s(U,null,tt(o.modules,f=>(r(),s("div",{key:f.key,class:lt(["module-settings__item",{"module-settings__item--disabled":f.disabled}])},[t("div",Ub,[t("div",qb,[t("span",{class:lt(["module-settings__dot",{"is-active":e(c)[f.key]}])},null,2),t("span",null,i(f.title),1)]),t("p",Rb,i(f.description),1)]),Y(Ot,{"model-value":e(c)[f.key],disabled:f.disabled,"active-color":"#553AFE","inactive-color":"#E5E6EB",onChange:F=>g(f.key,F)},null,8,["model-value","disabled","onChange"])],2))),128))])])]),_:1},8,["modelValue","title"]))}});var Jb=N(Hb,[["__scopeId","data-v-79624e8f"]]);const Zb={class:"page-container"},Kb={style:{height:"48px","text-align":"right",display:"flex","justify-content":"flex-end","align-items":"start"}},Qb={style:{display:"flex","align-items":"center"}},Xb={onclick:"void(0)",href:"https://www.istoreos.com/",target:"_blank",style:{"text-decoration":"none",color:"white","line-height":"1.5em"}},th=["title"],eh={key:0,class:"card-container"},ah={key:1,style:{"margin-top":"10px"}},oh={key:0,class:"network-stack"},nh={class:"stack-item"},ih={class:"stack-item",style:{"margin-top":"10px"}},rh={key:1,class:"network-container"},sh={key:2,class:"network-container align-c"},dh={class:"left-box"},lh={key:3,class:"other-container"},uh={class:"grid-container"},ch={key:4,class:"system"},ph=I({setup(o){var T,j;const{$gettext:n}=J(),a=Pe();en();const l=Le(),u=E(!0);(j=(T=window.quickstart_configs)==null?void 0:T.update)!=null&&j.disable&&(u.value=!1),u.value&&setTimeout(()=>{l.requestCheckUpdate()},1100);const d=Fe(),c=Q(()=>d.deviceList),k=Q(()=>{var R,it;return[{icon:"navigation",title:n("\u7F51\u7EDC\u5411\u5BFC"),subtitle:n("\u7F51\u7EDC\u914D\u7F6E\u5F15\u5BFC"),tag:n("\u667A\u80FD\u914D\u7F6E"),status:"",extra:"",color:"purple",link:"/network"},{icon:"topology",title:n("\u5C40\u57DF\u7F51\u8BBE\u5907\u7BA1\u7406"),subtitle:n("\u7BA1\u7406\u7F51\u7EDC\u4E2D\u7684\u6240\u6709\u8BBE\u5907"),badge:n("\u63A8\u8350"),status:"",num:((it=(R=c.value)==null?void 0:R.devices)==null?void 0:it.length)||0,color:"blue",link:"/devicemanagement"},{icon:"speed",title:n("\u7F51\u7EDC\u6D4B\u901F"),subtitle:n("\u68C0\u6D4B\u7F51\u7EDC\u901F\u5EA6"),status:"",color:"skyblue",link:"/networkSpeedTest"},{icon:"baby",title:n("\u5BB6\u957F\u63A7\u5236"),subtitle:n("\u513F\u7AE5\u4E0A\u7F51\u4FDD\u62A4"),badge:n("\u4FDD\u62A4"),status:"",extra:"",color:"pink",isActive:!0,alink:"/cgi-bin/luci/admin/services/appfilter"},{icon:"appStore",title:n("\u5E94\u7528\u5546\u5E97"),subtitle:n("\u767E\u6B3E\u5E94\u7528\uFF0C\u81EA\u7531\u9009\u62E9"),status:"",color:"orange",alink:"/cgi-bin/luci/admin/store/pages/store"}]}),g=R=>{if(!!R.title){if(R.icon=="speed")return m();if(R.icon=="baby")return p();R.link?a.push(R.link):R.alink&&(window.location.href=R.alink)}},p=()=>L(this,null,function*(){(yield zt.checkAndInstallApp("luci-app-oaf","\u5E94\u7528\u8FC7\u6EE4"))&&(window.location.href="/cgi-bin/luci/admin/services/appfilter")}),m=()=>L(this,null,function*(){const R="app-meta-fastnet";(yield zt.checkAndInstallApp(R,n("FastNet")))&&(window.location.href="/cgi-bin/luci/admin/services/fastnet")}),v=E(!1);(()=>L(this,null,function*(){try{const R=yield G.App.Check.POST({name:"luci-app-oaf"});if(R!=null&&R.data){const{result:it,error:ot}=R.data;ot?v.value=!1:it&&it.status=="installed"?v.value=!0:v.value=!1}}catch(R){v.value=!1}}))();const y={quickActions:!0,networkFlow:!0,networkConnection:!0,networkInterface:!0,configModule:!0,diskInfo:!0,storage:!0,docker:!0,downloadService:!0,remoteDomain:!0,systemInfo:!0},f=E({quickActions:!1,networkFlow:!1,networkConnection:!1,networkInterface:!1,configModule:!1,diskInfo:!1,storage:!1,docker:!1,downloadService:!1,remoteDomain:!1,systemInfo:!1}),F=E(!1),w=Q(()=>{const R=[{key:"quickActions",title:n("\u5FEB\u6377\u5165\u53E3"),description:n("\u9876\u90E8\u5FEB\u6377\u6377\u5F84\u6309\u94AE\u7EC4")},{key:"networkFlow",title:n("\u7F51\u7EDC\u6D41\u91CF"),description:n("\u5B9E\u65F6\u6D41\u91CF\u7EDF\u8BA1\u56FE\u8868")},{key:"networkConnection",title:n("\u7F51\u7EDC\u8FDE\u63A5\u548CIP\u5730\u5740"),description:n("\u8054\u7F51\u65F6\u95F4\u548C\u8BBE\u5907\u4FE1\u606F")},{key:"networkInterface",title:n("\u7F51\u7EDC\u63A5\u53E3\u72B6\u6001"),description:n("\u7F51\u7EDC\u63A5\u53E3\u8BE6\u7EC6\u4FE1\u606F")},{key:"configModule",title:n("\u914D\u7F6E\u6A21\u5757"),description:n("\u5185\u7F51\u914D\u7F6E\u3001DNS\u914D\u7F6E\u7B49\u5DE5\u5177")},{key:"diskInfo",title:n("\u78C1\u76D8\u4FE1\u606F"),description:n("\u78C1\u76D8\u4F7F\u7528\u60C5\u51B5\u4E0E\u5BB9\u91CF\u6982\u89C8")},{key:"storage",title:n("\u5B58\u50A8\u670D\u52A1"),description:n("\u5171\u4EAB\u4E0E\u5B58\u50A8\u670D\u52A1\u6982\u89C8")},{key:"downloadService",title:n("\u4E0B\u8F7D\u670D\u52A1"),description:n("\u4E0B\u8F7D\u4EFB\u52A1\u4E0E\u670D\u52A1\u72B6\u6001")},{key:"remoteDomain",title:n("\u8FDC\u7A0B\u57DF\u540D"),description:n("\u8FDC\u7A0B\u8BBF\u95EE\u57DF\u540D\u7BA1\u7406")},{key:"systemInfo",title:n("\u7CFB\u7EDF\u4FE1\u606F"),description:n("\u8BBE\u5907\u7CFB\u7EDF\u4FE1\u606F\u6982\u89C8")}];return Qt("dockerd")&&R.splice(7,0,{key:"docker",title:n("Docker\u6A21\u5757"),description:n("\u5BB9\u5668\u8FD0\u884C\u72B6\u6001\u4E0E\u7BA1\u7406")}),R}),h=Q(()=>f.value.networkFlow||f.value.networkConnection||f.value.networkInterface),_=Q(()=>f.value.networkConnection||f.value.networkInterface),x=Q(()=>f.value.networkFlow&&!f.value.networkConnection&&f.value.networkInterface),C=Q(()=>f.value.networkFlow&&!f.value.networkConnection&&!f.value.networkInterface),S=Q(()=>f.value.networkConnection&&!f.value.networkInterface);typeof window!="undefined"&&$t(()=>[f.value.networkConnection,f.value.networkInterface],()=>{requestAnimationFrame(()=>{window.dispatchEvent(new Event("resize"))})});const A=Q(()=>{const R=[];return f.value.diskInfo&&R.push({key:"diskInfo",component:$g}),f.value.storage&&R.push({key:"storage",component:jf}),Qt("dockerd")&&f.value.docker&&R.push({key:"docker",component:Wv}),f.value.downloadService&&R.push({key:"downloadService",component:n1}),f.value.remoteDomain&&R.push({key:"remoteDomain",component:s5}),R}),z=(R,it)=>{if(it<=0)return"100%";if(it<=2)return`calc((100% - ${(it-1)*24}px) / ${it})`;const ot=Math.min(2,it);if(R<ot)return`calc((100% - ${(ot-1)*24}px) / ${ot})`;const bt=it-ot;return bt<=0?"100%":`calc((100% - ${(bt-1)*24}px) / ${bt})`},B=E(null),H=R=>L(this,null,function*(){if(!(B.value&&Object.keys(R).some(Dt=>{var yt;return R[Dt]!==((yt=B.value)==null?void 0:yt[Dt])}))){F.value=!1;return}const ot=st(st({},f.value),R);(yield q(ot))&&(f.value=ot,F.value=!1)}),M=()=>L(this,null,function*(){var R,it;try{const ot=yield G.ModuleSettings.GET(),bt=(it=(R=ot==null?void 0:ot.data)==null?void 0:R.result)==null?void 0:it.diableDisplay;if(!bt||bt.length===0||bt.length===1&&bt[0]===""){const Dt=st({},y);f.value=Dt,B.value=st({},Dt)}else{const Dt=st({},y);bt.forEach(yt=>{yt&&yt.trim()&&yt in Dt&&(Dt[yt]=!1)}),f.value=Dt,B.value=st({},Dt)}}catch(ot){console.warn("[ModuleSettings] fetch failed",ot),f.value=st({},y),B.value=st({},y)}}),q=R=>L(this,null,function*(){try{const it=[];return Object.keys(R).forEach(ot=>{R[ot]||it.push(ot)}),yield G.ModuleSettings.POST({diableDisplay:it}),B.value=st({},R),$.Success(n("\u4FDD\u5B58\u6210\u529F")),!0}catch(it){return console.error("[ModuleSettings] save failed",it),$.Warning(n("\u4FDD\u5B58\u5931\u8D25\uFF01")),!1}});return $t(F,R=>{R&&(B.value=st({},f.value))}),M(),(R,it)=>(r(),s("div",Zb,[t("div",Kb,[t("div",Qb,[t("a",Xb,i(e(n)("iStoreOS\u5B98\u7F51")),1),t("span",{title:e(n)("\u6A21\u5757\u8BBE\u7F6E"),class:"model_btn",onClick:it[0]||(it[0]=ot=>F.value=!0)},[Y(R8,{style:{width:"16px",height:"16px"}})],8,th)])]),f.value.quickActions?(r(),s("div",eh,[(r(!0),s(U,null,tt(e(k),(ot,bt)=>(r(),s(U,{key:bt},[ot.icon!=="baby"||v.value?(r(),Z(E4,{key:0,card:ot,onClick:g},null,8,["card"])):D("",!0)],64))),128))])):D("",!0),e(h)?(r(),s("div",ah,[e(x)?(r(),s("div",oh,[t("div",nh,[Y(Fa,{style:{"min-height":"600px"}})]),t("div",ih,[Y(Da)])])):(r(),s("div",rh,[f.value.networkFlow?(r(),s("div",{key:0,class:lt(["left-box",{"full-row":e(C)}])},[Y(Fa,{style:ht(e(C)?{minHeight:"600px"}:void 0)},null,8,["style"])],2)):D("",!0),e(_)?(r(),s("div",{key:1,class:lt(["right-box",{"single-card":e(S)}]),style:{overflow:"visible"}},[f.value.networkConnection?(r(),Z($8,{key:0,class:lt({"fill-card":e(S)})},null,8,["class"])):D("",!0),f.value.networkInterface?(r(),Z(Da,{key:1,style:ht({marginTop:f.value.networkConnection?"10px":"0px"})},null,8,["style"])):D("",!0)],2)):D("",!0)]))])):D("",!0),f.value.configModule?(r(),s("div",sh,[t("div",dh,[Y(Ip)])])):D("",!0),e(A).length?(r(),s("div",lh,[t("div",uh,[(r(!0),s(U,null,tt(e(A),(ot,bt)=>(r(),s("div",{class:"grid-item",key:ot.key,style:ht({flexBasis:z(bt,e(A).length)})},[(r(),Z(oa(ot.component)))],4))),128))])])):D("",!0),f.value.systemInfo?(r(),s("div",ch,[Y(Eb)])):D("",!0),Y(Jb,{visible:F.value,"onUpdate:visible":it[1]||(it[1]=ot=>F.value=ot),modules:e(w),states:f.value,onSave:H},null,8,["visible","modules","states"])]))}});var fh=N(ph,[["__scopeId","data-v-1f2aa331"]]);const mh={};function gh(o,n){const a=_t("router-view");return r(),Z(a)}var vh=N(mh,[["render",gh]]);const bh={},hh={width:"136px",height:"136px",viewBox:"0 0 136 136",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_h=jt('<defs><rect id="path-1" x="0" y="0" width="72" height="72" rx="10"></rect><filter x="-68.1%" y="-65.3%" width="236.1%" height="236.1%" filterUnits="objectBoundingBox" id="filter-2"><feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="16" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0.00576685472 0 0 0 0 0.712891067 0 0 0 0 0.523400265 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter></defs><g id="icon_router" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group" transform="translate(32.000000, 30.000000)"><g id="Rectangle"><use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use><use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use></g><g id="luyouqi" transform="translate(9.000000, 12.000000)" fill="#2FBE96" fill-rule="nonzero"><path d="M5,36.25 L6.24999997,36.25 L6.24999997,37.5 C6.24999997,38.8750001 7.37499997,40 8.74999999,40 L13.75,40 C15.125,40 16.25,38.875 16.25,37.5 L16.25,36.25 L38.75,36.25 L38.75,37.5 C38.75,38.8750001 39.875,40 41.25,40 L46.25,40 C47.625,40 48.75,38.875 48.75,37.5 L48.75,36.25 L50,36.25 C52.75,36.25 55,34 55,31.25 L0,31.25 C0,34 2.25,36.25 5,36.25 Z M50,20 L45,20 L45,1.875 C45,0.874999981 44.1250001,0 43.125,0 C42.125,0 41.25,0.874999981 41.25,1.875 L41.25,20 L13.75,20 L13.75,1.875 C13.75,0.874999981 12.875,0 11.875,0 C10.8749999,0 10,0.874999981 10,1.875 L10,20 L5,20 C2.25,20 0,22.25 0,25 L0,28.75 L55,28.75 L55,25 C55,22.25 52.75,20 50,20 Z M30.625,26.25 C29.625,26.25 28.75,25.375 28.75,24.375 C28.75,23.375 29.625,22.5 30.625,22.5 C31.625,22.5 32.5,23.375 32.5,24.375 C32.5,25.375 31.625,26.25 30.625,26.25 Z M36.875,26.25 C35.875,26.25 35,25.375 35,24.375 C35,23.375 35.875,22.5 36.875,22.5 C37.875,22.5 38.75,23.375 38.75,24.375 C38.75,25.375 37.875,26.25 36.875,26.25 Z M43.125,26.25 C42.125,26.25 41.25,25.375 41.25,24.375 C41.25,23.375 42.125,22.5 43.125,22.5 C44.1250001,22.5 45,23.375 45,24.375 C45,25.375 44.1250001,26.25 43.125,26.25 Z" id="Shape"></path></g></g></g>',2),xh=[_h];function wh(o,n){return r(),s("svg",hh,xh)}var kh=N(bh,[["render",wh]]);const yh={},Fh={width:"136px",height:"136px",viewBox:"0 0 136 136",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Eh=jt('<defs><rect id="path-1" x="0" y="0" width="72" height="72" rx="10"></rect><filter x="-68.1%" y="-65.3%" width="236.1%" height="236.1%" filterUnits="objectBoundingBox" id="filter-2"><feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="16" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0.788163337 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter></defs><g id="icon_dial" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group" transform="translate(32.000000, 30.000000)"><g id="Rectangle"><use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use><use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use></g><g id="bohao" transform="translate(14.000000, 13.000000)" fill="#FF6C68" fill-rule="nonzero"><path d="M27.2980992,0.874200971 C26.7268663,0.758523804 26.1331134,0.866913453 25.6392917,1.17701641 C25.1554389,1.47930436 24.8141653,1.96483113 24.6930984,2.52315663 C24.5731079,3.07574301 24.6878398,3.65344238 25.0098158,4.11789644 C25.3371296,4.5939296 25.8390162,4.92096156 26.4060118,5.02766508 C31.045922,5.95330175 35.0418401,8.55830791 37.6547588,12.3772204 C40.2676774,16.1961329 41.1782401,20.7555549 40.2228092,25.2210907 C40.1022213,25.7732483 40.2170154,26.350782 40.5395266,26.8145082 C40.9402684,27.3951092 41.5930751,27.7496771 42.2973083,27.7692363 C42.7546094,27.787238 43.2065645,27.6654879 43.5932104,27.420139 C44.0774855,27.1189844 44.4196894,26.6344423 44.542043,26.0766435 C47.0071602,14.5551113 39.2726569,3.24779794 27.2980992,0.874200971 M31.0947493,32.74255 C31.2267149,32.824535 34.1299578,34.6215925 36.3733729,36.8312195 C37.2153133,37.6669372 38.6247059,39.0646486 38.5877555,40.6871575 C38.5560837,41.7952768 37.906813,42.9047185 36.5990341,44.0789548 C36.2743987,44.3844149 33.3645574,46.9999998 28.710131,46.9999998 C27.3912247,46.9937384 26.0799397,46.7991615 24.8158264,46.422138 C23.3601676,45.9861014 21.9649286,45.3685851 20.6628693,44.584088 C15.2153297,41.4871721 11.0188239,37.5109013 7.02422548,31.6621998 C0.162014763,21.6230086 -0.0293353467,13.0238438 0.00233638896,11.4039796 C0.0142132841,3.92483507 6.48844518,0.983955044 7.22613283,0.671883236 C8.2422679,0.218321248 9.12907663,6.56389309e-05 9.94594365,6.56389309e-05 C10.3221663,-0.00210452636 10.6967773,0.0495481459 11.0584136,0.153526698 C11.7736671,0.362456139 12.7647287,0.901970084 13.4337942,2.28910278 C14.3430371,4.17343462 15.2021331,6.8736491 15.7880603,9.69419635 C16.4056593,12.6271423 14.6953853,13.450959 13.0418564,14.2470065 L12.9771933,14.2734533 C12.9771933,14.2734533 10.0515161,15.4476896 9.53685034,15.6513296 C9.03619964,15.8421642 8.77356796,16.3935308 8.94036587,16.9035838 C10.1201383,20.341663 11.9227882,23.9119759 14.1477281,27.2178213 C16.2898673,30.4151399 18.819615,33.3337939 21.6790044,35.9069051 C21.8774142,36.0783671 22.130935,36.1722806 22.3929382,36.1713728 L22.4826748,36.1713728 C22.7712253,36.1486937 23.0383058,36.009873 23.2230017,35.7865724 C23.7910711,35.0765111 24.4084443,34.4075091 25.07052,33.7845524 C26.4350442,32.5349429 27.6702421,31.933279 28.8434163,31.9332791 C29.1639159,31.9320794 29.4829541,31.9766039 29.7909292,32.0655129 C30.2528699,32.2365199 30.6924376,32.4629666 31.1000279,32.7399053 M21.8400024,18.2655921 C21.2727998,18.1576666 20.7707788,17.8303809 20.4424867,17.3545011 C20.1195351,16.8899676 20.0042929,16.3116272 20.1244497,15.758439 C20.3633736,14.7240741 21.3099013,14.0116196 22.3678647,14.0698132 C22.4897786,14.07308 22.61119,14.0867942 22.7307701,14.1108057 C27.8483957,15.1263614 31.1554534,19.9595073 30.1010483,24.8852168 C29.9793303,25.4425668 29.6381304,25.9270351 29.1548551,26.2287124 C28.767264,26.4717676 28.3158939,26.5928996 27.8589529,26.5764873 C27.7379231,26.5712459 27.6174771,26.5566569 27.4986869,26.5328501 C26.9296524,26.4268815 26.4259713,26.0986569 26.098532,25.6204368 C25.77801,25.1583614 25.6633089,24.5836905 25.7818146,24.033631 C26.0564522,22.762289 25.7906175,21.4337675 25.0480859,20.3667874 C24.2959909,19.2710084 23.1434575,18.5161347 21.8400024,18.2655921 M24.130925,11.620843 C22.9432347,11.3828221 22.1738753,10.2628017 22.4153724,9.11633459 C22.5346624,8.55724948 22.875754,8.07082659 23.360246,7.76887199 C23.8543437,7.45823035 24.448547,7.34937141 25.0203731,7.46473423 C29.1614533,8.28722853 32.7258439,10.6145437 35.0589956,14.0235314 C37.3755259,17.3601994 38.204796,21.5111457 37.3485986,25.484236 C37.2282609,26.0425595 36.8861326,26.5276693 36.4010857,26.8277315 C35.9088475,27.1418728 35.3138166,27.2514444 34.7422782,27.1331916 C33.5545879,26.8951707 32.7852285,25.7751504 33.0267255,24.6286832 C33.6442543,21.7595069 33.0443871,18.7622168 31.3705573,16.3534912 C29.6708669,13.8824331 27.0678646,12.1820541 24.1256464,11.620843 L24.130925,11.620843 Z" id="Shape"></path></g></g></g>',2),$h=[Eh];function Ch(o,n){return r(),s("svg",Fh,$h)}var Dh=N(yh,[["render",Ch]]);const Bh={},Yh={width:"136px",height:"136px",viewBox:"0 0 136 136",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ah=jt('<defs><rect id="path-1" x="0" y="0" width="72" height="72" rx="10"></rect><filter x="-68.1%" y="-65.3%" width="236.1%" height="236.1%" filterUnits="objectBoundingBox" id="filter-2"><feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="16" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0.064613567 0 0 0 0 0.378874402 0 0 0 0 0.840799967 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter></defs><g id="icon_side-router" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-5" transform="translate(32.000000, 30.000000)"><g id="Rectangle"><use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use><use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use></g><g id="route" transform="translate(15.000000, 15.000000)" fill="#3B89FE"><path d="M37.25,31 L37.25,18.66 L22.2525,18.66 L22.2525,11 L26,11 L26,1 L16,1 L16,11 L19.75,11 L19.75,18.6625 L4.75,18.6625 L4.75,31 L1,31 L1,41 L11,41 L11,31 L7.25,31 L7.25,21.16 L19.75,21.16 L19.75,31 L16,31 L16,41 L26,41 L26,31 L22.2525,31 L22.2525,21.16 L34.75,21.16 L34.75,31 L31,31 L31,41 L41,41 L41,31 L37.25,31 Z M23.1425,38.1425 L18.8575,38.1425 L18.8575,33.855 L23.1425,33.855 L23.1425,38.1425 Z M8.1425,38.14 L3.8575,38.14 L3.8575,33.855 L8.1425,33.855 L8.1425,38.14 Z M23.1425,8.1425 L18.8575,8.1425 L18.8575,3.8575 L23.1425,3.8575 L23.1425,8.1425 Z M38.285,38.1425 L34,38.1425 L34,33.855 L38.285,33.855 L38.285,38.1425 Z" id="Shape" fill-rule="nonzero"></path><rect id="Rectangle" x="15" y="0" width="12" height="12" rx="2"></rect><rect id="Rectangle" x="0" y="30" width="12" height="12" rx="2"></rect><rect id="Rectangle" x="15" y="30" width="12" height="12" rx="2"></rect><rect id="Rectangle" x="30" y="30" width="12" height="12" rx="2"></rect></g></g></g>',2),Sh=[Ah];function zh(o,n){return r(),s("svg",Yh,Sh)}var Ph=N(Bh,[["render",zh]]);const Th={id:"page"},Ih={class:"title"},Mh={class:"desc"},Lh={class:"network-containers"},Oh={class:"network-container_item"},Nh={class:"cover"},Vh={class:"thumbnail"},Gh={class:"network-container_item"},jh={class:"cover"},Uh={class:"thumbnail"},qh={class:"network-container_item"},Rh={class:"cover"},Wh={class:"thumbnail"},Hh=["innerHTML"],Jh=I({setup(o){const{$gettext:n,$ngettext:a}=J(),l=n("\u6CA1\u627E\u5230\u60F3\u8981\u7684\u914D\u7F6E\uFF1F\u8BF7\u4F7F\u7528%{link}",{link:'<a href="/cgi-bin/luci/admin/network/network">'+n("\u9AD8\u7EA7\u6A21\u5F0F")+"</a>"},!0);return(u,d)=>{const c=_t("router-link");return r(),s("div",Th,[t("div",Ih,i(e(n)("\u6B22\u8FCE\u4F7F\u7528\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC")),1),t("div",Mh,i(e(n)("\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB")),1),t("div",Lh,[t("div",Oh,[Y(c,{to:"/network/pppoe"},{default:V(()=>[t("div",Nh,[t("div",Vh,[Y(Dh),t("span",null,i(e(n)("\u5BBD\u5E26\u62E8\u53F7\u8FDE\u63A5")),1)])])]),_:1})]),t("div",Gh,[Y(c,{to:"/network/dhcp"},{default:V(()=>[t("div",jh,[t("div",Uh,[Y(kh),t("span",null,i(e(n)("\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668")),1)])])]),_:1})]),t("div",qh,[Y(c,{to:"/network/gateway"},{default:V(()=>[t("div",Rh,[t("div",Wh,[Y(Ph),t("span",null,i(e(n)("\u914D\u7F6E\u4E3A\u65C1\u8DEF\u7531")),1)])])]),_:1})])]),t("div",{class:"info",innerHTML:e(l)},null,8,Hh)])}}});var Zh=N(Jh,[["__scopeId","data-v-52c03678"]]);const Kh={key:0,id:"page"},Qh={class:"title"},Xh={class:"desc"},t_={class:"network-message"},e_=["innerHTML"],a_=["onSubmit"],o_={class:"label-key"},n_=["placeholder","disabled"],i_={class:"label-key"},r_=["placeholder","disabled"],s_={key:0,class:"chose_dhcp"},d_={class:"dhcp_info"},l_={key:1,class:"msg"},u_={class:"btns"},c_=["disabled"],p_=["onClick"],f_={key:1,id:"page"},m_={class:"title"},g_={class:"btns"},v_=["onClick"],b_=["onClick"],h_=I({setup(o){const{$gettext:n,$ngettext:a}=J(),u=Te().query.type,d=n("\u7531\u4E8E\u60A8\u7684\u8BBE\u5907<span>\u6CA1\u6709 WAN \u53E3</span>\uFF0C\u65E0\u6CD5\u4F7F\u7528\u672C\u8BBE\u7F6E\u5411\u5BFC\uFF0C\u5177\u4F53\u8BF7\u770B%{link}",{link:'<a href="https://doc.linkease.com/zh/guide/istoreos/question.html#%E7%BD%91%E7%BB%9C" target="_blank" rel="noopener noreferrer">'+n("\u94FE\u63A5")+"</a>"},!0),c=E(0),k=E({}),g=E(""),p=E(!1),m=E(0),v=E(!1);(()=>L(this,null,function*(){var f,F;p.value=!0;try{const w=yield Promise.all([G.Guide.Pppoe.GET(),G.Guide.GetLan.GET()]);if(w[0].data){const{success:h,error:_,result:x}=w[0].data;x&&(x.enableLanDhcp=!1,k.value=x),h==-1011&&(p.value=!0,m.value=h)}(f=w[1].data)!=null&&f.result&&(((F=w[1].data)==null?void 0:F.result).enableDhcp||(v.value=!0,k.value.enableLanDhcp=!0))}catch(w){g.value=w}m.value==0&&(p.value=!1)}))();const y=()=>L(this,null,function*(){const f=k.value.account||"",F=k.value.password||"";if(f==""){g.value=n("\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A");return}if(F==""){g.value=n("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}p.value=!0;const w=$.Loading(n("\u914D\u7F6E\u4E2D..."));try{const h=yield G.Guide.Pppoe.POST({account:f,password:F});if(h!=null&&h.data){const{error:_,success:x}=h.data;_&&(g.value=_),(x==null||x==0)&&($.Success(n("\u914D\u7F6E\u6210\u529F")),c.value=1)}}catch(h){g.value=h}p.value=!1,w.Close()});return(f,F)=>{const w=_t("switch-box"),h=_t("router-link");return c.value==0?(r(),s("div",Kh,[t("h2",Qh,i(e(n)("\u914D\u7F6E\u5BBD\u5E26\u8D26\u53F7")),1),t("h3",Xh,i(e(n)("\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B")),1),t("div",t_,[m.value==-1011?(r(),s("li",{key:0,innerHTML:e(d)},null,8,e_)):D("",!0)]),t("form",{onSubmit:ft(y,["prevent"])},[t("label",null,[t("div",o_,[t("span",null,i(e(n)("\u5BBD\u5E26\u8D26\u53F7")),1)]),O(t("input",{type:"text","onUpdate:modelValue":F[0]||(F[0]=_=>k.value.account=_),placeholder:e(n)("\u5BBD\u5E26\u8D26\u53F7"),required:"",disabled:p.value},null,8,n_),[[at,k.value.account,void 0,{trim:!0}]])]),t("label",null,[t("div",i_,[t("span",null,i(e(n)("\u5BC6\u7801")),1)]),O(t("input",{type:"password","onUpdate:modelValue":F[1]||(F[1]=_=>k.value.password=_),placeholder:e(n)("\u5BBD\u5E26\u5BC6\u7801"),required:"",disabled:p.value},null,8,r_),[[at,k.value.password,void 0,{trim:!0}]])]),v.value?(r(),s("div",s_,[Y(w,{modelValue:k.value.enableLanDhcp,"onUpdate:modelValue":F[2]||(F[2]=_=>k.value.enableLanDhcp=_)},{default:V(()=>[t("span",d_,i(e(n)("\u542F\u7528LAN\u53E3DHCP\u670D\u52A1\uFF08\u7528\u4E8E\u4ECE\u65C1\u8DEF\u7531\u6A21\u5F0F\u6062\u590D\u6210\u9ED8\u8BA4\u72B6\u6001\uFF09")),1)]),_:1},8,["modelValue"])])):D("",!0),g.value?(r(),s("div",l_,i(g.value),1)):D("",!0),t("div",u_,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:p.value},i(e(n)("\u4FDD\u5B58\u914D\u7F6E")),9,c_),Y(h,{to:e(u)=="index"?"/":"/network",custom:""},{default:V(({navigate:_})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},i(e(n)("\u8FD4\u56DE")),9,p_)]),_:1},8,["to"])])],40,a_)])):c.value==1?(r(),s("div",f_,[t("h2",m_,i(e(n)("\u914D\u7F6E\u6210\u529F")),1),t("div",g_,[Y(h,{to:"/",custom:""},{default:V(({navigate:_})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:_},i(e(n)("\u8FDB\u5165\u63A7\u5236\u53F0")),9,v_)]),_:1}),Y(h,{to:e(u)=="index"?"/":"/network",custom:""},{default:V(({navigate:_})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},i(e(n)("\u8FD4\u56DE")),9,b_)]),_:1},8,["to"])])])):D("",!0)}}});var __=N(h_,[["__scopeId","data-v-e187efe4"]]);const x_={key:0,id:"page"},w_={class:"title"},k_={class:"desc"},y_={class:"network-message"},F_=["innerHTML"],E_=["onSubmit"],$_={class:"label-key"},C_={value:"dhcp"},D_={value:"static"},B_={class:"label-key"},Y_=["placeholder","disabled"],A_={key:0,class:"msg"},S_={class:"label-key"},z_=["placeholder","disabled"],P_={key:1,class:"msg"},T_={class:"label-key"},I_=["placeholder","disabled"],M_={class:"label-key"},L_=["disabled"],O_={value:"manual"},N_={class:"label-key"},V_=["onUpdate:modelValue","placeholder","disabled"],G_={class:"label-key"},j_=["placeholder","disabled"],U_={class:"label-key"},q_=["placeholder","disabled"],R_={key:2,class:"chose_dhcp"},W_={class:"dhcp_info"},H_={key:3,class:"msgs"},J_={class:"btns"},Z_=["disabled"],K_=["onClick"],Q_={key:1,id:"page"},X_={class:"title"},tx={class:"btns"},ex=["onClick"],ax=["onClick"],ox=I({setup(o){const{$gettext:n,$ngettext:a}=J(),l=n("\u7531\u4E8E\u60A8\u7684\u8BBE\u5907<span>\u6CA1\u6709 WAN \u53E3</span>\uFF0C\u65E0\u6CD5\u4F7F\u7528\u672C\u8BBE\u7F6E\u5411\u5BFC\uFF0C\u5177\u4F53\u8BF7\u770B%{link}",{link:'<a href="https://doc.linkease.com/zh/guide/istoreos/question.html#%E7%BD%91%E7%BB%9C" target="_blank" rel="noopener noreferrer">'+n("\u94FE\u63A5")+"</a>"},!0),u=E(0),d=E({}),c=E(""),k=E(""),g=E(""),p=E(!1),m=E(""),v=E(""),b=E(0),y=Mt.checkIsIP,f=E(!1),w=Te().query.type;(()=>L(this,null,function*(){var A,z;p.value=!0;try{const B=yield Promise.all([G.Guide.ClientModel.GET(),G.Guide.GetLan.GET()]);if(B[0]){const H=B[0];if(H.data){const{success:M,error:q,result:T}=H.data;T&&(T.wanProto!="dhcp"&&T.wanProto!="static"&&(T.wanProto="dhcp",T.dnsProto="auto"),T.enableLanDhcp=!1,d.value=T),M==-1011&&(b.value=M,p.value=!0)}}(A=B[1].data)!=null&&A.result&&(((z=B[1].data)==null?void 0:z.result).enableDhcp||(f.value=!0,d.value.enableLanDhcp=!0))}catch(B){c.value=B}b.value==0&&(p.value=!1)}))();const _=A=>{A.target.value=="static"?((d.value.staticIp==null||d.value.staticIp=="")&&(d.value.staticIp="192.168.1.100"),(d.value.subnetMask==null||d.value.subnetMask=="")&&(d.value.subnetMask="255.255.255.0"),d.value.dnsProto=="auto"&&setTimeout(()=>d.value.dnsProto="manual",0)):d.value.dnsProto=="manual"&&setTimeout(()=>d.value.dnsProto="auto",0)},x=A=>{const z=A.target;if(z.value==""){m.value="";return}y(z.value)?m.value="":m.value=n("\u8BF7\u8F93\u5165\u5408\u6CD5\u7684IP\u5730\u5740")},C=A=>{const z=A.target;if(z.value==""){v.value="";return}y(z.value)?v.value="":v.value=n("\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u5730\u5740")},S=()=>L(this,null,function*(){const A={};switch(d.value.wanProto){case"dhcp":break;case"static":A.staticIp=d.value.staticIp,A.subnetMask=d.value.subnetMask,A.gateway=d.value.gateway||"";break}switch(d.value.dnsProto){case"auto":break;case"manual":A.manualDnsIp=[],d.value.manualDnsIp!=null&&d.value.manualDnsIp.length>0?A.manualDnsIp=d.value.manualDnsIp:(A.manualDnsIp.push(k.value),g.value&&A.manualDnsIp.push(g.value));break}A.dnsProto=d.value.dnsProto,A.wanProto=d.value.wanProto,A.enableLanDhcp=d.value.enableLanDhcp;const z=$.Loading(n("\u914D\u7F6E\u4E2D...."));p.value=!0;try{const B=yield G.Guide.ClientModel.POST(A);if(B!=null&&B.data){const{success:H,error:M}=B==null?void 0:B.data;M&&(c.value=M),(H==null||H==0)&&($.Success(n("\u914D\u7F6E\u6210\u529F")),u.value=1)}}catch(B){c.value=B}p.value=!1,z.Close()});return(A,z)=>{const B=_t("switch-box"),H=_t("router-link");return u.value==0?(r(),s("div",x_,[t("h2",w_,i(e(n)("\u914D\u7F6E\u4E92\u8054\u7F51")),1),t("h3",k_,i(e(n)("\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u672C\u8BBE\u5907 WAN \u53E3\u8FDE\u63A5\u5230\u4E0A\u7EA7\u8DEF\u7531\u5668\u5C40\u57DF\u7F51\uFF08 LAN \uFF09\u63A5\u53E3")),1),t("div",y_,[b.value==-1011?(r(),s("li",{key:0,innerHTML:e(l)},null,8,F_)):D("",!0)]),t("form",{onSubmit:ft(S,["prevent"])},[t("label",null,[t("div",$_,[t("span",null,i(e(n)("WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")),1)]),O(t("select",{"onUpdate:modelValue":z[0]||(z[0]=M=>d.value.wanProto=M),onInput:_},[t("option",C_,i(e(n)("\u81EA\u52A8\u83B7\u53D6IP\u5730\u5740\uFF08DHCP\uFF09")),1),t("option",D_,i(e(n)("\u9759\u6001IP\u5730\u5740")),1)],544),[[pt,d.value.wanProto]])]),d.value.wanProto=="static"?(r(),s(U,{key:0},[t("label",null,[t("div",B_,[t("span",null,i(e(n)("IP\u5730\u5740")),1)]),O(t("input",{type:"text","onUpdate:modelValue":z[1]||(z[1]=M=>d.value.staticIp=M),placeholder:e(n)("\u9759\u6001IP\u5730\u5740"),required:"",disabled:p.value,onInput:x},null,40,Y_),[[at,d.value.staticIp,void 0,{trim:!0}]])]),m.value?(r(),s("p",A_,i(m.value),1)):D("",!0),t("label",null,[t("div",S_,[t("span",null,i(e(n)("\u5B50\u7F51\u63A9\u7801")),1)]),O(t("input",{type:"text","onUpdate:modelValue":z[2]||(z[2]=M=>d.value.subnetMask=M),placeholder:e(n)("\u5B50\u7F51\u63A9\u7801"),required:"",disabled:p.value,onInput:C},null,40,z_),[[at,d.value.subnetMask,void 0,{trim:!0}]])]),v.value?(r(),s("p",P_,i(v.value),1)):D("",!0),t("label",null,[t("div",T_,[t("span",null,i(e(n)("\u7F51\u5173\u5730\u5740")),1)]),O(t("input",{type:"text","onUpdate:modelValue":z[3]||(z[3]=M=>d.value.gateway=M),placeholder:e(n)("\u7F51\u5173\u5730\u5740"),required:"",disabled:p.value},null,8,I_),[[at,d.value.gateway,void 0,{trim:!0}]])])],64)):D("",!0),t("label",null,[t("div",M_,[t("span",null,i(e(n)("DNS \u914D\u7F6E\u65B9\u5F0F")),1)]),O(t("select",{"onUpdate:modelValue":z[4]||(z[4]=M=>d.value.dnsProto=M)},[t("option",{value:"auto",disabled:d.value.wanProto=="static"},i(e(n)("\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09")),9,L_),t("option",O_,i(e(n)("\u624B\u5DE5\u914D\u7F6E")),1)],512),[[pt,d.value.dnsProto]])]),d.value.dnsProto=="manual"?(r(),s(U,{key:1},[d.value.manualDnsIp!=null&&d.value.manualDnsIp.length>0?(r(!0),s(U,{key:0},tt(d.value.manualDnsIp,(M,q)=>(r(),s("label",null,[t("div",N_,[t("span",null,i(e(n)("DNS\u670D\u52A1\u5668")),1)]),O(t("input",{type:"text","onUpdate:modelValue":T=>d.value.manualDnsIp[q]=T,placeholder:e(n)("DNS\u670D\u52A1\u5668"),required:"",disabled:p.value},null,8,V_),[[at,d.value.manualDnsIp[q],void 0,{trim:!0}]])]))),256)):(r(),s(U,{key:1},[t("label",null,[t("div",G_,[t("span",null,i(e(n)("DNS\u670D\u52A1\u5668")),1)]),O(t("input",{type:"text","onUpdate:modelValue":z[5]||(z[5]=M=>k.value=M),placeholder:e(n)("DNS\u670D\u52A1\u5668"),required:"",disabled:p.value},null,8,j_),[[at,k.value,void 0,{trim:!0}]])]),t("label",null,[t("div",U_,i(e(n)("\u5907\u7528DNS\u670D\u52A1\u5668")),1),O(t("input",{type:"text","onUpdate:modelValue":z[6]||(z[6]=M=>g.value=M),placeholder:e(n)("\u5907\u7528DNS\u670D\u52A1\u5668"),disabled:p.value},null,8,q_),[[at,g.value,void 0,{trim:!0}]])])],64))],64)):D("",!0),f.value?(r(),s("div",R_,[Y(B,{modelValue:d.value.enableLanDhcp,"onUpdate:modelValue":z[7]||(z[7]=M=>d.value.enableLanDhcp=M)},{default:V(()=>[t("span",W_,i(e(n)("\u542F\u7528LAN\u53E3DHCP\u670D\u52A1\uFF08\u7528\u4E8E\u4ECE\u65C1\u8DEF\u7531\u6A21\u5F0F\u6062\u590D\u6210\u9ED8\u8BA4\u72B6\u6001\uFF09")),1)]),_:1},8,["modelValue"])])):D("",!0),c.value?(r(),s("div",H_,i(c.value),1)):D("",!0),t("div",J_,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:p.value},i(e(n)("\u4FDD\u5B58\u914D\u7F6E")),9,Z_),Y(H,{to:e(w)=="index"?"/":"/network",custom:""},{default:V(({navigate:M})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:M},i(e(n)("\u8FD4\u56DE")),9,K_)]),_:1},8,["to"])])],40,E_)])):u.value==1?(r(),s("div",Q_,[t("h2",X_,i(e(n)("\u914D\u7F6E\u6210\u529F")),1),t("div",tx,[Y(H,{to:"/",custom:""},{default:V(({navigate:M})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:M},i(e(n)("\u8FDB\u5165\u63A7\u5236\u53F0")),9,ex)]),_:1}),Y(H,{to:e(w)=="index"?"/":"/network",custom:""},{default:V(({navigate:M})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:M},i(e(n)("\u8FD4\u56DE")),9,ax)]),_:1},8,["to"])])])):D("",!0)}}});var nx=N(ox,[["__scopeId","data-v-5eefd6ee"]]);const ix=o=>(ut("data-v-3d6d1dea"),o=o(),ct(),o),rx={key:0,id:"page"},sx={class:"title"},dx=ix(()=>t("br",null,null,-1)),lx={class:"btns"},ux=["onClick"],cx={key:1,id:"page"},px={class:"title"},fx={class:"desc"},mx=["onSubmit"],gx={class:"label-key"},vx={class:"label-value"},bx={class:"label-key"},hx=["placeholder"],_x={class:"label-key"},xx=["placeholder"],wx={class:"label-key"},kx=["placeholder"],yx={class:"label-key"},Fx=["placeholder"],Ex={key:0,class:"msgs"},$x={class:"switch_inline"},Cx={key:0,class:"switch_info"},Dx={key:1,class:"switch_info"},Bx={class:"switch_inline"},Yx={class:"switch_info"},Ax={class:"switch_inline"},Sx={class:"switch_info"},zx={class:"btns"},Px={class:"cbi-button cbi-button-apply app-btn app-next"},Tx=["onClick"],Ix={key:2,id:"page"},Mx={class:"title"},Lx={class:"desc"},Ox={class:"btns"},Nx={key:3,id:"page"},Vx={class:"title"},Gx=["disabled"],jx={style:{"text-align":"left"}},Ux={class:"btns"},qx=["disabled"],Rx=["onClick"],Wx=I({setup(o){const{$gettext:n,$ngettext:a}=J(),u=Te().query.type,d=E(0),c=E(""),k=E(!1),g=Q(()=>{var F,w,h;return!(((F=m.value)==null?void 0:F.ipv4addr)&&((w=m.value)==null?void 0:w.ipv4mask)&&((h=m.value)==null?void 0:h.gateway))}),p=E({subnetMask:"255.255.255.0",staticDnsIp:"223.5.5.5",staticLanIp:"",gateway:"",enableDhcp:!0,dhcp6c:!1,enableNat:!1}),m=E(),v=()=>{k.value=!0,G.Network.Status.GET().then(F=>{if(F!=null&&F.data){const{result:w}=F==null?void 0:F.data;w&&(m.value=w)}}).finally(()=>{k.value=!1})},b=F=>{var w,h,_,x,C;F&&(p.value.staticLanIp=((w=m.value)==null?void 0:w.ipv4addr)||"",p.value.subnetMask=((h=m.value)==null?void 0:h.ipv4mask)&&Lt.prefixToMask(m.value.ipv4mask)||"",p.value.gateway=((_=m.value)==null?void 0:_.gateway)||"",p.value.staticDnsIp=((x=m.value)==null?void 0:x.dnsList)&&((C=m.value)==null?void 0:C.dnsList[0])||"223.5.5.5"),d.value=1},y=F=>{window.location.href=location.protocol+"//"+p.value.staticLanIp+(location.port?":"+location.port:"")},f=()=>L(this,null,function*(){const F=p.value,w=$.Loading(n("\u914D\u7F6E\u4E2D..."));try{const h=yield G.Guide.GatewayRouter.POST(F);if(h!=null&&h.data){const{success:_,error:x}=h==null?void 0:h.data;if(x&&(c.value=x),_==null||_==0){setTimeout(()=>{d.value=2,w.Close()},5e3);return}}}catch(h){c.value=h}w.Close()});return(F,w)=>{var x,C,S,A;const h=_t("router-link"),_=_t("switch-box");return d.value==0?(r(),s("div",rx,[t("h2",sx,i(e(n)("\u65C1\u8DEF\u7531\u914D\u7F6E\u524D\u7684\u51C6\u5907\u5DE5\u4F5C")),1),t("code",null,[dt(i(e(n)("\u65C1\u8DEF\u7531\u6A21\u5F0F\uFF0C\u4E5F\u53EB\u5355\u81C2\u8DEF\u7531\u6A21\u5F0F\u3002"))+" ",1),t("p",null,i(e(n)("\u60A8\u53EF\u4EE5\u7528\u4E0A\u4E00\u7EA7\u8DEF\u7531\uFF08\u4E3B\u8DEF\u7531\uFF09\u62E8\u53F7\uFF0C\u7136\u540E\u7528\u672C\u8DEF\u7531\u6765\u5B9E\u73B0\u4E00\u4E9B\u9AD8\u7EA7\u529F\u80FD\u3002")),1),dx,t("p",null,i(e(n)("\u672C\u5411\u5BFC\u652F\u6301\u81EA\u52A8\u6216\u624B\u52A8\u914D\u7F6E\uFF1A")),1),t("p",null,i(e(n)("\u70B9\u51FB\u201C\u81EA\u52A8\u914D\u7F6E\u201D\u6309\u94AE\u5F00\u59CB\u81EA\u52A8\u914D\u7F6E\u5411\u5BFC\uFF1B")),1),t("p",null,i(e(n)("\u624B\u52A8\u914D\u7F6E\u5219\u9700\u81EA\u884C\u83B7\u53D6\u4E3B\u8DEF\u7531\u5668\u7684IP\u5730\u5740\uFF08\u4F8B\u5982 192.168.2.1 \uFF09\u548C\u5B50\u7F51\u63A9\u7801\uFF0C\u8BB0\u5F55\u4EE5\u5907\u540E\u7EED\u586B\u5199\uFF0C\u70B9\u51FB\u201C\u624B\u52A8\u914D\u7F6E\u201D\u6309\u94AE\uFF0C\u5207\u6362\u5230\u53C2\u6570\u914D\u7F6E\u9875\uFF0C\u6309\u5B9E\u9645\u60C5\u51B5\u81EA\u884C\u586B\u5199\u3002")),1)]),t("div",lx,[t("button",{class:"cbi-button cbi-button-success app-btn app-next",onClick:w[0]||(w[0]=z=>d.value=3)},i(e(n)("\u81EA\u52A8\u914D\u7F6E...")),1),t("button",{class:"cbi-button cbi-button-neutral app-btn app-next",onClick:w[1]||(w[1]=z=>b(!1))},i(e(n)("\u624B\u52A8\u914D\u7F6E...")),1),Y(h,{to:e(u)=="index"?"/":"/network",custom:""},{default:V(({navigate:z})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:z},i(e(n)("\u8FD4\u56DE")),9,ux)]),_:1},8,["to"])])])):d.value==1?(r(),s("div",cx,[t("h2",px,i(e(n)("\u914D\u7F6E\u65C1\u8DEF\u7531\u7F51\u7EDC")),1),t("h3",fx,i(e(n)("\u73B0\u5728\uFF0C\u8BF7\u4F60\u914D\u7F6E\u65C1\u8DEF\u7531\u4FE1\u606F")),1),t("form",{onSubmit:ft(f,["prevent"])},[t("label",null,[t("div",gx,[t("span",null,i(e(n)("LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")),1)]),t("div",vx,[t("select",{disabled:"",style:ht({backgroundColor:"rgba(215, 215, 215, 1)",color:"#333"})},[t("option",null,i(e(n)("\u65C1\u8DEF\u7531\u6A21\u5F0F\u4EC5\u652F\u6301\u9759\u6001IP\u5730\u5740")),1)],4)])]),t("label",null,[t("div",bx,[t("span",null,i(e(n)("IP \u5730\u5740")),1)]),O(t("input",{type:"text","onUpdate:modelValue":w[2]||(w[2]=z=>p.value.staticLanIp=z),placeholder:e(n)("IP\u5730\u5740"),required:""},null,8,hx),[[at,p.value.staticLanIp,void 0,{trim:!0}]])]),t("label",null,[t("div",_x,[t("span",null,i(e(n)("\u5B50\u7F51\u63A9\u7801")),1)]),O(t("input",{type:"text","onUpdate:modelValue":w[3]||(w[3]=z=>p.value.subnetMask=z),placeholder:e(n)("\u5B50\u7F51\u63A9\u7801"),required:""},null,8,xx),[[at,p.value.subnetMask,void 0,{trim:!0}]])]),t("label",null,[t("div",wx,[t("span",null,i(e(n)("\u7F51\u5173\u5730\u5740")),1)]),O(t("input",{type:"text","onUpdate:modelValue":w[4]||(w[4]=z=>p.value.gateway=z),placeholder:e(n)("\u7F51\u5173\u5730\u5740"),required:""},null,8,kx),[[at,p.value.gateway,void 0,{trim:!0}]])]),t("label",null,[t("div",yx,[t("span",null,i(e(n)("DNS\u670D\u52A1\u5668")),1)]),O(t("input",{type:"text","onUpdate:modelValue":w[5]||(w[5]=z=>p.value.staticDnsIp=z),placeholder:e(n)("223.5.5.5"),required:""},null,8,Fx),[[at,p.value.staticDnsIp,void 0,{trim:!0}]])]),c.value?(r(),s("div",Ex,i(c.value),1)):D("",!0),t("div",$x,[Y(_,{modelValue:p.value.enableDhcp,"onUpdate:modelValue":w[6]||(w[6]=z=>p.value.enableDhcp=z)},{default:V(()=>[p.value.enableDhcp?(r(),s("span",Cx,i(e(n)("\u63D0\u4F9B DHCPv4 \u670D\u52A1\uFF08\u9700\u8981\u5173\u95ED\u4E3B\u8DEF\u7531 DHCP \u670D\u52A1\uFF09")),1)):(r(),s("span",Dx,i(e(n)("\u63D0\u4F9B DHCPv4 \u670D\u52A1")),1))]),_:1},8,["modelValue"])]),t("div",Bx,[Y(_,{modelValue:p.value.dhcp6c,"onUpdate:modelValue":w[7]||(w[7]=z=>p.value.dhcp6c=z)},{default:V(()=>[t("span",Yx,i(e(n)("\u81EA\u52A8\u83B7\u53D6 IPV6\uFF08\u5373\u5F00\u542F DHCPv6 \u5BA2\u6237\u7AEF\uFF09")),1)]),_:1},8,["modelValue"])]),t("div",Ax,[Y(_,{modelValue:p.value.enableNat,"onUpdate:modelValue":w[8]||(w[8]=z=>p.value.enableNat=z)},{default:V(()=>[t("span",Sx,i(e(n)("\u5F00\u542F NAT\uFF08\u53EF\u4FEE\u590D\u67D0\u4E9B\u65E0\u7EBF\u70ED\u70B9\u4E0D\u80FD\u8BBF\u95EE\u5916\u7F51\u95EE\u9898\uFF09")),1)]),_:1},8,["modelValue"])]),t("div",zx,[t("button",Px,i(e(n)("\u4FDD\u5B58\u914D\u7F6E")),1),Y(h,{to:e(u)=="index"?"/":"/network",custom:""},{default:V(({navigate:z})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:z},i(e(n)("\u8FD4\u56DE")),9,Tx)]),_:1},8,["to"])])],40,mx)])):d.value==2?(r(),s("div",Ix,[t("h2",Mx,i(e(n)("\u914D\u7F6E\u6210\u529F")),1),t("h3",Lx,i(e(n)("\u73B0\u5728\uFF0C\u5C06\u672C\u8DEF\u7531WAN\u53E3\u65AD\u5F00\uFF0C\u5C06\u5176\u4E2D\u4E00\u4E2ALAN\u53E3\u4E0E\u4E3B\u8DEF\u7531\u8FDE\u63A5\uFF0C\u5E76\u5C06\u5F53\u524D\u6D4F\u89C8\u5668\u8BBE\u5907\u8FDE\u63A5\u5230\u4E3B\u8DEF\u7531\u3002\u70B9\u51FB\u201C\u8FDB\u5165\u63A7\u5236\u53F0\u201D\u6D4F\u89C8\u5668\u5C06\u8DF3\u8F6C\u5230\u65B0\u7684\u8DEF\u7531IP")),1),t("div",Ox,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:y},i(e(n)("\u8FDB\u5165\u63A7\u5236\u53F0")),1)])])):d.value==3?(r(),s("div",Nx,[t("h2",Vx,i(e(n)("\u65C1\u8DEF\u7531\u81EA\u52A8\u914D\u7F6E")),1),t("code",null,i(e(n)("\u9996\u5148\u786E\u8BA4\u4E3B\u8DEF\u7531\u5F00\u542F\u4E86 DHCP \u670D\u52A1\uFF0C\u786E\u8BA4\u672C\u8DEF\u7531 WAN \u53E3\u662F DHCP \u5BA2\u6237\u7AEF\u6A21\u5F0F\uFF08\u9ED8\u8BA4\u5373\u662F\uFF0C\u5982\u679C\u4E0D\u662F\u53EF\u4F7F\u7528\u201C\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668\u201D\u5411\u5BFC\u6539\u6210 DHCP \u5BA2\u6237\u7AEF\uFF09\uFF0C\u7136\u540E\u5C06\u672C\u8DEF\u7531 WAN \u53E3\u4E0E\u4E3B\u8DEF\u7531\u7684 LAN \u8FDE\u63A5\uFF0C\u4EE5\u81EA\u52A8\u83B7\u53D6\u914D\u7F6E\u3002")),1),dt(" "+i(e(n)("1. \u6EE1\u8DB3\u4E0A\u8FF0\u6761\u4EF6\u4EE5\u540E\uFF0C\u70B9\u51FB\u201C\u5F53\u524D IPv4 \u4E0A\u6E38\u4FE1\u606F\u201D\u4EE5\u5237\u65B0\u5F53\u524D\u8FDE\u63A5\u4FE1\u606F\uFF0C\u6210\u529F\u4EE5\u540E\uFF0C\u201C\u81EA\u52A8\u586B\u5199\u201D\u6309\u94AE\u5C06\u88AB\u6FC0\u6D3B\u3002(\u5931\u8D25\u53EF\u518D\u6B21\u70B9\u51FB)"))+" ",1),t("button",{class:lt(["cbi-button cbi-button-neutral",e(g)?"cbi-button-neutral":"cbi-button-success"]),disabled:k.value,onClick:v},[dt(i(e(n)("\u5F53\u524D IPv4 \u4E0A\u6E38\u4FE1\u606F\uFF08\u70B9\u6B64\u5237\u65B0\uFF09"))+" ",1),t("p",jx,[t("ul",null,[t("li",null,i(e(n)("IP \u5730\u5740: "))+i((x=m.value)==null?void 0:x.ipv4addr),1),t("li",null,i(e(n)("\u5B50\u7F51\u63A9\u7801: "))+i(((C=m.value)==null?void 0:C.ipv4mask)&&e(Lt).prefixToMask(m.value.ipv4mask)),1),t("li",null,i(e(n)("\u7F51\u5173\u5730\u5740: "))+i((S=m.value)==null?void 0:S.gateway),1),t("li",null,i(e(n)("DNS\u670D\u52A1\u5668: "))+i(((A=m.value)==null?void 0:A.dnsList)&&m.value.dnsList[0]||(e(g)?"":e(n)("\uFF08\u65E0DNS\u670D\u52A1\u5668\uFF0C\u8BF7\u4E4B\u540E\u81EA\u884C\u586B\u5199\u516C\u5171DNS\u670D\u52A1\u5668\uFF0C\u4F8B\u5982 223.5.5.5\uFF09"))),1)])])],10,Gx),dt(" "+i(e(n)("2. \u70B9\u51FB\u201C\u81EA\u52A8\u586B\u5199\u201D\uFF0C\u5C06\u5207\u6362\u5230\u53C2\u6570\u9875\u5E76\u81EA\u52A8\u586B\u5199\u3002\u6B64\u65F6\u4F9D\u7136\u53EF\u4EE5\u81EA\u884C\u8C03\u6574\u53C2\u6570\u3002"))+" ",1),t("div",Ux,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:e(g),onClick:w[9]||(w[9]=z=>b(!0))},i(e(n)("\u81EA\u52A8\u586B\u5199..."))+i(e(g)?e(n)("\uFF08\u8BF7\u5148\u83B7\u53D6IPv4\u4E0A\u6E38\u4FE1\u606F\uFF09"):""),9,qx),Y(h,{to:e(u)=="index"?"/":"/network",custom:""},{default:V(({navigate:z})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:z},i(e(n)("\u8FD4\u56DE")),9,Rx)]),_:1},8,["to"])])])):D("",!0)}}});var Hx=N(Wx,[["__scopeId","data-v-3d6d1dea"]]);const Jx={class:"actioner-container"},Zx={class:"actioner-container_header"},Kx={class:"actioner-container_body"},Qx={class:"label-item"},Xx={class:"label-item_key"},tw={class:"label-item_value"},ew=["value"],aw={class:"label-item_tips"},ow={class:"label-item"},nw={class:"label-item_key"},iw={key:0,class:"label-item_value"},rw={class:"msg-warning"},sw={key:1,class:"label-item_value"},dw=["value"],lw={key:1,class:"msg-warning"},uw={class:"label-item_tips"},cw={class:"actioner-container_footer"},pw=["disabled"],fw=["disabled"],mw={key:1,class:"actioner-container_body setup-loading"},gw={class:"actioner-container_body setup-error"},vw={class:"actioner-container_footer"},bw=["disabled"],hw={class:"actioner-container_body setup-success"},_w={class:"body-title"},xw={class:"actioner-container_footer"},ww=I({props:{Close:{type:Function,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.Close()},d=()=>{n.success&&n.success()},c=E("init"),k=E(""),g=[{name:"jbod",title:a("JBOD (\u7EBF\u6027)"),info:a("\u81F3\u5C11\u9700\u89812\u5757\u786C\u76D8\uFF0C\u5C06\u591A\u4E2A\u786C\u76D8\u5408\u5E76\u4E3A\u5355\u4E2A\u5B58\u50A8\u7A7A\u95F4\uFF0C\u5176\u5BB9\u91CF\u7B49\u4E8E\u6240\u6709\u786C\u76D8\u5BB9\u91CF\u7684\u603B\u548C\u3002\u4E0D\u63D0\u4F9B\u6570\u636E\u5197\u4F59\u3002"),select:2},{name:"raid0",title:a("RAID 0 (\u6761\u5E26)"),info:a("\u81F3\u5C11\u9700\u89812\u5757\u786C\u76D8\uFF0C\u201C\u533A\u5757\u5EF6\u5C55\u201D\u529F\u80FD\u662F\u5C06\u6570\u636E\u5206\u6210\u591A\u4E2A\u5757\uFF0C\u5E76\u5C06\u6570\u636E\u5757\u5206\u6563\u5230\u7EC4\u6210\u7684\u591A\u4E2A\u786C\u76D8\u4E0A\u4EE5\u63D0\u9AD8\u6027\u80FD\u7684\u8FC7\u7A0B\u3002\u4E0D\u63D0\u4F9B\u6570\u636E\u5197\u4F59\u3002"),select:2},{name:"raid1",title:a("RAID 1 (\u955C\u50CF)"),info:a("\u81F3\u5C11\u9700\u89812\u5757\u786C\u76D8\uFF0C\u540C\u65F6\u5411\u6240\u6709\u786C\u76D8\u5199\u5165\u76F8\u540C\u7684\u6570\u636E\u3002\u63D0\u4F9B\u6570\u636E\u5197\u4F59\u3002"),select:2},{name:"raid5",title:"RAID 5 ",info:a("\u81F3\u5C11\u9700\u89813\u5757\u786C\u76D8\uFF0C\u6267\u884C\u6BB5\u843D\u5206\u5757\u5EF6\u5C55\uFF0C\u5E76\u5BF9\u5206\u5E03\u5230\u6240\u6709\u7EC4\u6210\u786C\u76D8\u4E0A\u7684\u6570\u636E\u6267\u884C\u5947\u5076\u6821\u9A8C\uFF0C\u4ECE\u800C\u63D0\u4F9B\u6BD4 RAID 1 \u66F4\u6709\u6548\u7684\u6570\u636E\u5197\u4F59\u3002"),select:3},{name:"raid6",title:"RAID 6 ",info:a("\u81F3\u5C11\u9700\u89814\u5757\u786C\u76D8\uFF0C\u6267\u884C\u4E24\u4E2A\u5C42\u7EA7\u7684\u6570\u636E\u5947\u5076\u6821\u9A8C\u4EE5\u5B58\u50A8\u7B49\u4E8E 2 \u4E2A\u786C\u76D8\u5BB9\u91CF\u7684\u5197\u4F59\u6570\u636E\uFF0C\u63D0\u4F9B\u6BD4 RAID 5 \u66F4\u5927\u7A0B\u5EA6\u7684\u6570\u636E\u5197\u4F59\u3002"),select:4},{name:"raid10",title:"RAID 10",info:a("\u81F3\u5C11\u9700\u89814\u5757\u786C\u76D8\uFF0C\u63D0\u4F9B RAID 0 \u7684\u6027\u80FD\u548C RAID 1 \u7684\u6570\u636E\u4FDD\u62A4\u7EA7\u522B\uFF0C\u5C06\u786C\u76D8\u7EC4\u5408\u8FDB\u955C\u50CF\u6570\u636E\u7684\u7531\u4E24\u4E2A\u786C\u76D8\u7EC4\u6210\u7684\u7EC4\u3002"),select:4}],p=E("raid5"),m=E([]),v=h=>{let _="";return g.forEach(x=>{x.name===h&&(_=x.info)}),_},b=E(!1),y=gt({loading:!1,members:[]}),f=h=>{};(()=>L(this,null,function*(){y.loading=!0;try{const h=yield G.Raid.CreateList.GET();if(h!=null&&h.data){const{success:_,error:x,result:C}=h.data;if(C&&(y.members=C.members||[]),x)throw x}}catch(h){console.log(h)}finally{y.loading=!1}}))();const w=()=>L(this,null,function*(){const h=g.filter(x=>x.name===p.value)[0],_=m.value;if(!h){$.Warning(a("\u8BF7\u9009\u62E9raid\u7C7B\u578B"));return}if(_.length==0){$.Warning(a("\u8BF7\u9009\u62E9\u78C1\u76D8"));return}if(h.select>_.length){$.Warning(a("\u8BF7\u9009\u62E9\u81F3\u5C11%{min}\u5757\u78C1\u76D8",{min:""+h.select}));return}if(!!confirm(a("\u662F\u5426\u7ACB\u5373\u521B\u5EFA %{name}\uFF1F\u9009\u62E9\u7684\u786C\u76D8\u6240\u6709\u5206\u533A\u5C06\u4F1A\u88AB\u6E05\u9664\uFF0C\u6B64\u64CD\u4F5C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u786C\u76D8\u6570\u636E\u4E22\u5931\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002",{name:h.name}))&&!!confirm(a("\u786E\u5B9A\u521B\u5EFA %{name}\uFF1F\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u9006,\u8BF7\u8C28\u614E\u64CD\u4F5C",{name:h.name}))){b.value=!0,c.value="loading";try{const x=yield G.Raid.Create.POST({level:h.name,devicePaths:_});if(x.data){const{success:C,error:S,result:A}=x.data;if(S)throw S;(C||0)==0&&(c.value="success",d())}}catch(x){k.value=x,c.value="error"}finally{b.value=!1}}});return(h,_)=>{const x=_t("icon-loading"),C=_t("icon-error"),S=_t("icon-success");return r(),s("div",Jx,[t("div",Zx,[t("span",null,i(e(a)("RAID\u521B\u5EFA\u5411\u5BFC")),1)]),c.value=="init"?(r(),s(U,{key:0},[t("div",Kx,[t("p",null,i(e(a)("RAID\u78C1\u76D8\u9635\u5217\u662F\u7528\u591A\u4E2A\u72EC\u7ACB\u7684\u78C1\u76D8\u7EC4\u6210\u5728\u4E00\u8D77\u5F62\u6210\u4E00\u4E2A\u5927\u7684\u78C1\u76D8\u7CFB\u7EDF\uFF0C\u4ECE\u800C\u5B9E\u73B0\u6BD4\u5355\u5757\u78C1\u76D8\u66F4\u597D\u7684\u5B58\u50A8\u6027\u80FD\u548C\u66F4\u9AD8\u7684\u53EF\u9760\u6027\u3002")),1),t("div",Qx,[t("div",Xx,[t("span",null,i(e(a)("RAID\u7EA7\u522B\uFF1A")),1)]),t("div",tw,[O(t("select",{"onUpdate:modelValue":_[0]||(_[0]=A=>p.value=A),onChange:f},[(r(),s(U,null,tt(g,A=>t("option",{value:A.name},i(A.title),9,ew)),64))],544),[[pt,p.value]])]),t("div",aw,[Y(It),dt(" "+i(v(p.value)),1)])]),t("div",ow,[t("div",nw,[t("span",null,i(e(a)("\u78C1\u76D8\u9635\u5217\u6210\u5458\uFF1A")),1)]),e(y).loading?(r(),s("div",iw,[t("span",rw,i(e(a)("\u68C0\u6D4B\u4E2D...")),1)])):(r(),s("div",sw,[e(y).members.length>0?(r(!0),s(U,{key:0},tt(e(y).members,A=>(r(),s("label",null,[O(t("input",{type:"checkbox","onUpdate:modelValue":_[1]||(_[1]=z=>m.value=z),value:A.path},null,8,dw),[[Rt,m.value]]),dt(" \u3010"+i(A.model)+"\u3011"+i(A.name)+" "+i(A.path)+" ["+i(A.sizeStr)+"] ",1)]))),256)):(r(),s("span",lw,i(e(a)("\u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458")),1))])),t("div",uw,[Y(It),dt(" "+i(e(a)("\u9009\u62E9\u5C06\u8981\u7528\u4E8E\u521B\u5EFA RAID \u7684\u786C\u76D8\uFF0C\u901A\u8FC7 USB \u63A5\u5165\u7684\u8BBE\u5907\u4E0D\u4F1A\u5728\u5217\u8868\u4E2D\u663E\u793A\uFF08USB\u63A5\u5165\u4E0D\u7A33\u5B9A\uFF09\u3002")),1)])])]),t("div",cw,[t("div",{class:"close",onClick:u,disabled:b.value},i(e(a)("\u53D6\u6D88")),9,pw),t("div",{class:"next",onClick:w,disabled:b.value},i(e(a)("\u521B\u5EFA")),9,fw)])],64)):c.value=="loading"?(r(),s("div",mw,[Y(x,{size:60,color:"#666"}),t("span",null,i(e(a)("\u6B63\u5728\u521B\u5EFA\u4E2D...")),1)])):c.value=="error"?(r(),s(U,{key:2},[t("div",gw,[Y(C),t("span",null,i(k.value),1)]),t("div",vw,[t("div",{class:"close",onClick:u},i(e(a)("\u5173\u95ED")),1),t("div",{class:"next",onClick:w,disabled:b.value},i(e(a)("\u91CD\u65B0\u521B\u5EFA")),9,bw)])],64)):c.value=="success"?(r(),s(U,{key:3},[t("div",hw,[Y(S),t("div",_w,i(e(a)("\u521B\u5EFA\u6210\u529F")),1)]),t("div",xw,[t("div",{class:"close",onClick:u},i(e(a)("\u5173\u95ED")),1)])],64)):D("",!0)])}}});var kw=N(ww,[["__scopeId","data-v-7cf2dd18"]]);const yw={class:"actioner-container"},Fw={class:"actioner-container_body"},Ew=["value"],$w={class:"actioner-container_footer"},Cw=I({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.Close()},d=E("");return(()=>{G.Raid.Detail.POST({path:n.raid.path}).then(k=>{if(k.data){const{result:g,error:p}=k.data;p?d.value=p:d.value=(g==null?void 0:g.detail)||""}}).catch(k=>{d.value=k.message})})(),(k,g)=>(r(),s("div",yw,[t("div",Fw,[t("textarea",{value:d.value},null,8,Ew)]),t("div",$w,[t("div",{class:"close",onClick:u},i(e(a)("\u5173\u95ED")),1)])]))}});var Dw=N(Cw,[["__scopeId","data-v-0ef06e27"]]);const Bw={class:"actioner-container"},Yw={class:"actioner-container_header"},Aw={class:"actioner-container_body"},Sw={class:"label-item"},zw={class:"label-item_key"},Pw={class:"label-item_value"},Tw={disabled:""},Iw={class:"label-item"},Mw={class:"label-item_key"},Lw={key:0,class:"label-item_value"},Ow={class:"msg-warning"},Nw={key:1,class:"label-item_value"},Vw=["value"],Gw={key:1,class:"msg-warning"},jw={class:"actioner-container_footer"},Uw=["disabled"],qw=["disabled"],Rw=I({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.Close()},d=()=>{n.success&&n.success()},c=()=>L(this,null,function*(){const v=p.value;if(v==""){$.Warning(a("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8"));return}g.value=!0;const b=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const y=yield G.Raid.Add.POST({path:n.raid.path,memberPath:v});if(y.data){const{error:f,success:F}=y.data;if(f)throw f;(F||0)==0&&($.Success(a("\u4FDD\u5B58\u6210\u529F")),d(),u())}}catch(y){$.Error(`${y}`)}finally{g.value=!1,b.Close()}}),k=gt({loading:!1,members:[]}),g=E(!1),p=E("");return(()=>L(this,null,function*(){k.loading=!0,g.value=!0;try{const v=yield G.Raid.CreateList.GET();if(v!=null&&v.data){const{success:b,error:y,result:f}=v.data;if(f&&(k.members=f.members||[]),y)throw y}}catch(v){console.log(v)}finally{g.value=!1,k.loading=!1}}))(),(v,b)=>(r(),s("div",Bw,[t("div",Yw,[t("span",null,"RAID - "+i(o.raid.name)+" "+i(e(a)("\u4FEE\u6539")),1)]),t("div",Aw,[t("div",Sw,[t("div",zw,i(e(a)("\u8BBE\u5907")),1),t("div",Pw,[t("select",Tw,[t("option",null,i(o.raid.name)+"_"+i(o.raid.venderModel)+" ("+i(o.raid.path)+"\uFF0C"+i(o.raid.level)+"\uFF0C"+i(o.raid.size)+") ",1)])])]),t("div",Iw,[t("div",Mw,i(e(a)("\u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u88AB\u6DFB\u52A0\u5230RAID\u7684\u786C\u76D8\uFF09\uFF1A")),1),e(k).loading?(r(),s("div",Lw,[t("span",Ow,i(e(a)("\u68C0\u6D4B\u4E2D...")),1)])):(r(),s("div",Nw,[e(k).members.length>0?(r(!0),s(U,{key:0},tt(e(k).members,y=>(r(),s("label",null,[O(t("input",{type:"radio","onUpdate:modelValue":b[0]||(b[0]=f=>p.value=f),value:y.path},null,8,Vw),[[Bt,p.value]]),dt(" \u3010"+i(y.model)+"\u3011"+i(y.name)+" "+i(y.path)+" ["+i(y.sizeStr)+"] ",1)]))),256)):(r(),s("span",Gw,i(e(a)("\u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458")),1))]))])]),t("div",jw,[t("div",{class:"close",onClick:u,disabled:g.value},i(e(a)("\u53D6\u6D88")),9,Uw),t("div",{class:"next",onClick:c,disabled:g.value},i(e(a)("\u4FDD\u5B58")),9,qw)])]))}});var Ww=N(Rw,[["__scopeId","data-v-593445fb"]]);const Hw={class:"actioner-container"},Jw={class:"actioner-container_header"},Zw={class:"actioner-container_body"},Kw={class:"label-item"},Qw={class:"label-item_key"},Xw={class:"label-item_value"},tk={disabled:""},ek={class:"label-item"},ak={class:"label-item_key"},ok={class:"label-item_value"},nk=["value"],ik={class:"actioner-container_footer"},rk=["disabled"],sk=["disabled"],dk=I({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.Close()},d=()=>{n.success&&n.success()},c=()=>L(this,null,function*(){const p=g.value;if(p==""){$.Warning(a("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u786C\u76D8"));return}k.value=!0;const m=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const v=yield G.Raid.Remove.POST({path:n.raid.path,memberPath:p});if(v.data){const{error:b,success:y}=v.data;if(b)throw b;(y||0)==0&&($.Success(a("\u4FDD\u5B58\u6210\u529F")),d(),u())}}catch(v){$.Error(`${v}`)}finally{k.value=!1,m.Close()}}),k=E(!1),g=E("");return(p,m)=>(r(),s("div",Hw,[t("div",Jw,[t("span",null,"RAID - "+i(o.raid.name)+" "+i(e(a)("\u79FB\u9664")),1)]),t("div",Zw,[t("div",Kw,[t("div",Qw,i(e(a)("\u8BBE\u5907")),1),t("div",Xw,[t("select",tk,[t("option",null,i(o.raid.name)+"_"+i(o.raid.venderModel)+" ("+i(o.raid.path)+"\uFF0C"+i(o.raid.level)+"\uFF0C"+i(o.raid.size)+") ",1)])])]),t("div",ek,[t("div",ak,i(e(a)("\u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u8981\u4ECERAID\u9635\u5217\u4E2D\u5220\u9664\u7684\u786C\u76D8\uFF09\uFF1A")),1),t("div",ok,[(r(!0),s(U,null,tt(o.raid.members,v=>(r(),s("label",null,[O(t("input",{type:"radio","onUpdate:modelValue":m[0]||(m[0]=b=>g.value=b),value:v},null,8,nk),[[Bt,g.value]]),dt(" "+i(v),1)]))),256))])])]),t("div",ik,[t("div",{class:"close",onClick:u,disabled:k.value},i(e(a)("\u53D6\u6D88")),9,rk),t("div",{class:"next",onClick:c,disabled:k.value},i(e(a)("\u4FDD\u5B58")),9,sk)])]))}});var lk=N(dk,[["__scopeId","data-v-77aa4121"]]);const uk={class:"actioner-container"},ck={class:"actioner-container_header"},pk={class:"actioner-container_body"},fk={class:"label-item"},mk={class:"label-item_key"},gk={class:"label-item_value"},vk={disabled:""},bk={class:"label-item"},hk={class:"label-item_key"},_k={key:0,class:"label-item_value"},xk={class:"msg-warning"},wk={key:1,class:"label-item_value"},kk=["value"],yk={key:1,class:"msg-warning"},Fk={class:"actioner-container_footer"},Ek=["disabled"],$k=["disabled"],Ck=I({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=()=>{n.Close()},d=()=>{n.success&&n.success()},c=()=>L(this,null,function*(){const v=p.value;if(v==""){$.Warning(a("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8"));return}g.value=!0;const b=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const y=yield G.Raid.Recover.POST({path:n.raid.path,memberPath:v});if(y.data){const{error:f,success:F}=y.data;if(f)throw f;(F||0)==0&&($.Success(a("\u4FDD\u5B58\u6210\u529F")),d(),u())}}catch(y){$.Error(`${y}`)}finally{g.value=!1,b.Close()}}),k=gt({loading:!1,members:[]}),g=E(!1),p=E("");return(()=>L(this,null,function*(){k.loading=!0,g.value=!0;try{const v=yield G.Raid.CreateList.GET();if(v!=null&&v.data){const{success:b,error:y,result:f}=v.data;if(f&&(k.members=f.members||[]),y)throw y}}catch(v){console.log(v)}finally{g.value=!1,k.loading=!1}}))(),(v,b)=>(r(),s("div",uk,[t("div",ck,[t("span",null,"RAID - "+i(o.raid.name)+" "+i(e(a)("\u6062\u590D")),1)]),t("div",pk,[t("div",fk,[t("div",mk,i(e(a)("\u8BBE\u5907")),1),t("div",gk,[t("select",vk,[t("option",null,i(o.raid.name)+"_"+i(o.raid.venderModel)+" ("+i(o.raid.path)+"\uFF0C"+i(o.raid.level)+"\uFF0C"+i(o.raid.size)+") ",1)])])]),t("div",bk,[t("div",hk,i(e(a)("\u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u7A7A\u95F2\u7684\u786C\u76D8\u6062\u590DRAID\u8BBE\u5907\uFF09\uFF1A")),1),e(k).loading?(r(),s("div",_k,[t("span",xk,i(e(a)("\u68C0\u6D4B\u4E2D...")),1)])):(r(),s("div",wk,[e(k).members.length>0?(r(!0),s(U,{key:0},tt(e(k).members,y=>(r(),s("label",null,[O(t("input",{type:"radio","onUpdate:modelValue":b[0]||(b[0]=f=>p.value=f),value:y.path},null,8,kk),[[Bt,p.value]]),dt(" \u3010"+i(y.model)+"\u3011"+i(y.name)+" "+i(y.path)+" ["+i(y.sizeStr)+"] ",1)]))),256)):(r(),s("span",yk,i(e(a)("\u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458")),1))]))])]),t("div",Fk,[t("div",{class:"close",onClick:u,disabled:g.value},i(e(a)("\u53D6\u6D88")),9,Ek),t("div",{class:"next",onClick:c,disabled:g.value},i(e(a)("\u4FDD\u5B58")),9,$k)])]))}});var Dk=N(Ck,[["__scopeId","data-v-a924400c"]]);const Bk={class:"action-main"},Yk=I({props:{Close:{type:Function,required:!0},setup:{type:String,default:"create"},raid:{type:Object},success:{type:Function}},setup(o){return(n,a)=>(r(),Z(wt,{type:2},{default:V(()=>[t("div",Bk,[o.setup=="create"?(r(),Z(kw,{key:0,Close:o.Close},null,8,["Close"])):o.setup=="info"&&o.raid!=null?(r(),Z(Dw,{key:1,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):o.setup=="edit"&&o.raid!=null?(r(),Z(Ww,{key:2,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):o.setup=="remove"&&o.raid!=null?(r(),Z(lk,{key:3,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):o.setup=="recover"&&o.raid!=null?(r(),Z(Dk,{key:4,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):D("",!0)])]),_:1}))}});var Ak=N(Yk,[["__scopeId","data-v-6ef94d02"]]);const he=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(Ak,vt(st({},o),{Close:()=>{l()}}));a.use(Ra),a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},so=o=>(ut("data-v-30707fb2"),o=o(),ct(),o),Sk={id:"page"},zk={name:"content"},Pk={class:"cbi-map-descr"},Tk={style:{color:"#f5365b","margin-top":"10px"}},Ik={style:{color:"#f5365b","margin-top":"10px"}},Mk={class:"btns"},Lk=["disabled"],Ok={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},Nk={class:"table cbi-section-table"},Vk={style:{}},Gk={class:"tr cbi-section-table-titles anonymous"},jk={class:"th cbi-section-table-cell","data-widget":"value"},Uk={class:"th cbi-section-table-cell","data-widget":"value"},qk={class:"th cbi-section-table-cell","data-widget":"value"},Rk={class:"th cbi-section-table-cell","data-widget":"value"},Wk={class:"th cbi-section-table-cell","data-widget":"value"},Hk={class:"th cbi-section-table-cell","data-widget":"value"},Jk={class:"th cbi-section-table-cell","data-widget":"value"},Zk={class:"th cbi-section-table-cell","data-widget":"value"},Kk={class:"tr cbi-section-table-row"},Qk={class:"td cbi-value-field"},Xk={class:"td cbi-value-field"},ty=["title"],ey={class:"item-status"},ay={key:0,class:"item-status item-status-detail"},oy={class:"td cbi-value-field"},ny={class:"td cbi-value-field"},iy={class:"td cbi-value-field"},ry=so(()=>t("br",null,null,-1)),sy={class:"td cbi-value-field"},dy=so(()=>t("br",null,null,-1)),ly={key:1,href:"/cgi-bin/luci/admin/quickstart/"},uy={class:"td cbi-section-table-cell nowrap cbi-section-actions"},cy=["title","disabled","onClick"],py=["title","disabled","onClick"],fy=["title","onClick"],my=["title","onClick"],gy=["title","onClick"],vy=I({setup(o){const{$gettext:n,$ngettext:a}=J(),l=gt({disksList:[]}),u=()=>L(this,null,function*(){try{const w=yield G.Raid.List.GET();if(w!=null&&w.data){const{success:h,error:_,result:x}=w.data;if(x&&(l.disksList=x.disks||[]),_)throw _}}catch(w){console.log(w)}}),d=Mt.easyInterval(u,5e3);ke(()=>{d()});const c=w=>{switch(w.level){case"raid0":case"jbod":return!0}return w.status.indexOf("degraded")!=-1||w.status.indexOf("resyncing(")!=-1},k=w=>{let h=[];return w.childrens&&w.childrens.forEach(_=>{_.mountPoint&&h.push(`${_.name}(${_.mountPoint})`)}),h},g=()=>L(this,null,function*(){he({setup:"create",success:()=>{u()}})}),p=w=>{he({setup:"info",raid:w})},m=w=>L(this,null,function*(){if(w.childrens&&w.childrens.length>0&&w.childrens.filter(x=>x.mountPoint).length>0){Se({content:n("\u5220\u9664 RAID \u8BBE\u5907\u4E4B\u524D\u8BF7\u5148\u5378\u8F7D\u6587\u4EF6\u7CFB\u7EDF"),nextTitle:n("\u53BB\u5378\u8F7D"),next:()=>{location.href="/cgi-bin/luci/admin/system/mounts"},clearTitle:n("\u53D6\u6D88"),clear:()=>{}});return}if(!confirm(n("\u786E\u5B9A\u8981\u5220\u9664 %{name} \u8BE5\u78C1\u76D8\u9635\u5217\u5417\uFF1F\u5220\u9664\u64CD\u4F5C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u6570\u636E\u4E22\u5931\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002\u5220\u9664\u6210\u529F\u540E\uFF0C\u5982\u9700\u53E6\u5916\u7EC4RAID\uFF0C\u5EFA\u8BAE\u7A0D\u7B49\u51E0\u5206\u949F\u540E\u518D\u8BD5\u3002",{name:w.name}))||!confirm(n("\u786E\u5B9A\u8981\u5220\u9664 %{name} \u5417?",{name:w.name})))return;const h=$.Loading(n("\u5220\u9664\u4E2D..."));try{const _=yield G.Raid.Delete.POST({path:w.path,members:w.members});if(_.data){const{success:x,error:C}=_.data;if(C)throw C;(x||0)==0&&($.Success(n("\u5220\u9664\u6210\u529F")),u())}}catch(_){$.Error(`${_}`)}finally{h.Close()}}),v=w=>{he({setup:"edit",raid:w,success:()=>{u()}})},b=w=>{he({setup:"remove",raid:w,success:()=>{u()}})},y=w=>{he({setup:"recover",raid:w,success:()=>{u()}})},f=E(!1),F=()=>{Se({content:n("\u5C06\u626B\u63CF\u78C1\u76D8\u91CC RAID \u7684\u78C1\u76D8\u9635\u5217\u914D\u7F6E\u5E76\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6062\u590D RAID \u78C1\u76D8\u9635\u5217\u5417\uFF1F"),nextTitle:n("\u786E\u5B9A"),next:()=>L(this,null,function*(){f.value=!0;const w=$.Loading(n("\u626B\u63CF\u4E2D..."));try{const h=yield G.Raid.Autofix.POST();if(h.data){const{error:_,success:x}=h.data;if(_)throw _;(x||0)==0&&($.Success(n("\u6062\u590D\u5B8C\u6210")),u())}}catch(h){$.Error(`${h}`)}finally{w.Close(),f.value=!1}}),clearTitle:n("\u53D6\u6D88"),clear:()=>{}})};return(w,h)=>(r(),s("div",Sk,[t("h2",zk,i(e(n)("RAID\u7BA1\u7406")),1),t("div",Pk,[t("p",null,i(e(n)("RAID \uFF08 Redundant Array of Independent Disks \uFF09\u5373\u72EC\u7ACB\u78C1\u76D8\u5197\u4F59\u9635\u5217\uFF0C\u7B80\u79F0\u4E3A\u300C\u78C1\u76D8\u9635\u5217\u300D\uFF0C\u5C31\u662F\u7528\u591A\u4E2A\u72EC\u7ACB\u7684\u78C1\u76D8\u7EC4\u6210\u5728\u4E00\u8D77\u5F62\u6210\u4E00\u4E2A\u5927\u7684\u78C1\u76D8\u7CFB\u7EDF\uFF0C\u4ECE\u800C\u5B9E\u73B0\u6BD4\u5355\u5757\u78C1\u76D8\u66F4\u597D\u7684\u5B58\u50A8\u6027\u80FD\u548C\u66F4\u9AD8\u7684\u53EF\u9760\u6027\u3002")),1),t("p",Tk," * "+i(e(n)("RAID\u529F\u80FD\u6B63\u5728\u516C\u6D4B\u4E2D\uFF0C\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u5982\u9020\u6210\u6570\u636E\u4E22\u5931\u7B49\u95EE\u9898\uFF0C\u6982\u4E0D\u8D1F\u8D23\uFF0C\u8BF7\u8C28\u614E\u4F7F\u7528\u3002")),1),t("p",Ik," * "+i(e(n)("\u5982\u679C\u7531\u4E8E\u7CFB\u7EDF\u91CD\u7F6E\u6216\u91CD\u542F\u5BFC\u81F4\u7684RAID\u8BBE\u5907\u4E22\u5931\u53EF\u4EE5\u5C1D\u8BD5\u901A\u8FC7\u4E0B\u65B9'\u626B\u63CF\u6062\u590DRAID'\u6309\u94AE\u6062\u590D")),1)]),t("div",Mk,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:h[0]||(h[0]=_=>g())},i(e(n)("\u521B\u5EFARAID")),1),t("button",{class:"btn cbi-button cbi-button-apply",onClick:h[1]||(h[1]=_=>F()),disabled:f.value},i(e(n)("\u626B\u63CF\u6062\u590DRAID")),9,Lk)]),t("div",null,[t("div",Ok,[t("table",Nk,[t("tbody",Vk,[t("tr",Gk,[t("th",jk,i(e(n)("\u540D\u79F0")),1),t("th",Uk,i(e(n)("\u8BBE\u5907")),1),t("th",qk,i(e(n)("\u72B6\u6001")),1),t("th",Rk,i(e(n)("\u7EA7\u522B")),1),t("th",Wk,i(e(n)("\u5BB9\u91CF")),1),t("th",Hk,i(e(n)("\u6210\u5458")),1),t("th",Jk,i(e(n)("\u6302\u8F7D\u4FE1\u606F")),1),t("th",Zk,i(e(n)("\u64CD\u4F5C")),1)]),(r(!0),s(U,null,tt(e(l).disksList,_=>(r(),s("tr",Kk,[t("td",Qk,[t("b",null,i(_.name),1)]),t("td",Xk,[t("b",null,i(_.path),1)]),t("td",{class:"td cbi-value-field",title:_.status+(_.rebuildStatus||"")},[t("b",ey,i(_.status),1),_.rebuildStatus?(r(),s("b",ay," \u2026 ")):D("",!0)],8,ty),t("td",oy,[t("b",null,i(_.level),1)]),t("td",ny,[t("b",null,i(_.size),1)]),t("td",iy,[(r(!0),s(U,null,tt(_.members,x=>(r(),s("b",null,[dt(i(x)+" ",1),ry]))),256))]),t("td",sy,[k(_).length>0?(r(!0),s(U,{key:0},tt(k(_),x=>(r(),s("b",null,[dt(i(x)+" ",1),dy]))),256)):(r(),s("a",ly,i(e(n)("\u53BB\u6302\u8F7D")),1))]),t("td",uy,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u6269\u5145"),disabled:c(_),onClick:x=>v(_)},i(e(n)("\u6269\u5145")),9,cy),t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u79FB\u9664"),disabled:c(_),onClick:x=>b(_)},i(e(n)("\u79FB\u9664")),9,py),t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u6062\u590D"),onClick:x=>y(_)},i(e(n)("\u6062\u590D")),9,fy),t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u8BE6\u60C5"),onClick:x=>p(_)},i(e(n)("\u8BE6\u60C5")),9,my),t("button",{class:"cbi-button cbi-button-remove",title:e(n)("\u5982\u679C\u60A8\u5728RAID\u78C1\u76D8\u9635\u5217\u4E2D\u521B\u5EFA\u4E86\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u5148\u5378\u8F7D\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u540E\u5220\u9664\u6587\u4EF6\u7CFB\u7EDF\u5220\u9664\u64CD\u4F5C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u6570\u636E\u4E22\u5931\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),onClick:x=>m(_)},i(e(n)("\u5220\u9664")),9,gy)])]))),256))])])])])]))}});var by=N(vy,[["__scopeId","data-v-30707fb2"]]);const hy=o=>(ut("data-v-16dd0913"),o=o(),ct(),o),_y={id:"page"},xy=hy(()=>t("h2",{name:"content"},"S.M.A.R.T.",-1)),wy={class:"cbi-map-descr"},ky={class:"tabs"},yy=["href","onClick"],Fy=I({setup(o){const{$gettext:n,$ngettext:a}=J(),l=[{to:"/smart",name:n("\u5E38\u89C4\u8BBE\u7F6E")},{to:"/smart/task",name:n("\u8BA1\u5212\u4EFB\u52A1")},{to:"/smart/log",name:n("\u67E5\u770B\u65E5\u5FD7")}],u=E(!1),d=gt({global:{enable:!1,powermode:"never",tmpDiff:0,tmpMax:0},devices:[],tasks:[]}),c=p=>{const{global:m,devices:v,tasks:b}=p;m&&(d.global.enable=m.enable||!1,d.global.powermode=m.powermode||"never"),d.devices=v||[],d.tasks=b||[]};(()=>L(this,null,function*(){try{const p=yield G.Smart.Config.GET();if(p.data){const{result:m}=p.data;m&&c(m)}}catch(p){}finally{u.value=!0}}))();const g=p=>L(this,null,function*(){const m=$.Loading(n("\u4FDD\u5B58\u4E2D..."));try{const v=yield G.Smart.Config.POST(p);if(v.data){console.log(v.data);const{success:b,error:y,result:f}=v.data;if(y)throw y;(b||0)==0&&($.Success(n("\u4FDD\u5B58\u6210\u529F")),f&&c(f))}}catch(v){$.Error(`${v}`)}finally{m.Close()}});return(p,m)=>{const v=_t("router-link"),b=_t("router-view");return r(),s("div",_y,[xy,t("div",wy,[t("p",null,i(e(n)("S.M.A.R.T.\uFF0C\u5168\u79F0\u4E3A\u201CSelf-Monitoring Analysis and Reporting Technology\u201D\uFF0C\u5373\u201C\u81EA\u6211\u76D1\u6D4B\u3001\u5206\u6790\u53CA\u62A5\u544A\u6280\u672F\u201D\uFF0C")),1),t("p",null,i(e(n)("\u662F\u4E00\u79CD\u81EA\u52A8\u7684\u786C\u76D8\u72B6\u6001\u68C0\u6D4B\u4E0E\u9884\u8B66\u7CFB\u7EDF\u548C\u89C4\u8303\u3002\u901A\u8FC7\u5728\u786C\u76D8\u786C\u4EF6\u5185\u7684\u68C0\u6D4B\u6307\u4EE4\u5BF9\u786C\u76D8\u7684\u786C\u4EF6\u5982\u78C1\u5934\u3001\u76D8\u7247\u3001\u9A6C\u8FBE\u3001")),1),t("p",null,i(e(n)("\u7535\u8DEF\u7684\u8FD0\u884C\u60C5\u51B5\u8FDB\u884C\u76D1\u63A7\u3001\u8BB0\u5F55\u5E76\u4E0E\u5382\u5546\u6240\u8BBE\u5B9A\u7684\u9884\u8BBE\u5B89\u5168\u503C\u8FDB\u884C\u6BD4\u8F83\uFF0C\u82E5\u76D1\u63A7\u60C5\u51B5\u5C06\u8981\u6216\u5DF2\u8D85\u51FA\u9884\u8BBE\u5B89\u5168\u503C\u7684\u5B89\u5168\u8303\u56F4\uFF0C")),1),t("p",null,i(e(n)("\u5C31\u53EF\u4EE5\u901A\u8FC7\u4E3B\u673A\u7684\u76D1\u63A7\u786C\u4EF6\u6216\u8F6F\u4EF6\u81EA\u52A8\u5411\u7528\u6237\u4F5C\u51FA\u8B66\u544A\u5E76\u8FDB\u884C\u8F7B\u5FAE\u7684\u81EA\u52A8\u4FEE\u590D\uFF0C\u4EE5\u63D0\u524D\u4FDD\u969C\u786C\u76D8\u6570\u636E\u7684\u5B89\u5168\u3002")),1)]),t("ul",ky,[(r(),s(U,null,tt(l,y=>Y(v,{to:y.to,custom:"",key:y.to},{default:V(({route:f,href:F,navigate:w,isActive:h,isExactActive:_})=>[t("li",{class:lt({"active cbi-tab":h&&_})},[t("a",{href:F,onClick:w},i(y.name),9,yy)],2)]),_:2},1032,["to"])),64))]),u.value?(r(),Z(b,{key:0,name:"default"},{default:V(({Component:y,route:f})=>[(r(),Z(Co,null,{default:V(()=>[(r(),Z(oa(y),{key:f.path,config:e(d),saveData:g},null,8,["config"]))]),_:2},1024))]),_:1})):D("",!0)])}}});var Ey=N(Fy,[["__scopeId","data-v-16dd0913"]]);const $y={class:"action-main"},Cy=I({setup(o){return(n,a)=>(r(),Z(wt,{type:2},{default:V(()=>[t("div",$y,[Yt(n.$slots,"default",{},void 0,!0)])]),_:3}))}});var je=N(Cy,[["__scopeId","data-v-742230ae"]]);const Dy={class:"actioner-container"},By={class:"actioner-container_header"},Yy={class:"actioner-container_body"},Ay={class:"cbi-value"},Sy={class:"cbi-value-title"},zy={class:"cbi-value-field"},Py={class:"cbi-value-description"},Ty={class:"cbi-value"},Iy={class:"cbi-value-title"},My={class:"cbi-value-field"},Ly={class:"cbi-checkbox"},Oy={value:-1},Ny={value:0},Vy=["value"],Gy={class:"cbi-value-description"},jy={class:"cbi-value"},Uy={class:"cbi-value-title"},qy={class:"cbi-value-field"},Ry={class:"cbi-checkbox"},Wy={value:-1},Hy={value:0},Jy=["value"],Zy={class:"cbi-value-description"},Ky={class:"actioner-container_footer"},Qy=["disabled"],Xy=["disabled"],tF=I({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0},device:{type:Object},next:{type:Function,required:!0}},setup(o){var g,p,m;const n=o,{$gettext:a,$ngettext:l}=J();console.log(n.device);const u=E(!1),d=gt({tmpDiff:((g=n.device)==null?void 0:g.tmpDiff)||0,tmpMax:((p=n.device)==null?void 0:p.tmpMax)||0,devicePath:((m=n.device)==null?void 0:m.devicePath)||""}),c=()=>{u.value=!0,n.close()},k=()=>L(this,null,function*(){u.value=!0;try{yield n.next({tmpDiff:d.tmpDiff,tmpMax:d.tmpMax,devicePath:d.devicePath}),u.value=!1,c()}catch(v){}});return(v,b)=>(r(),Z(je,null,{default:V(()=>[t("div",Dy,[t("div",By,[t("span",null," S.M.A.R.T. \xBB "+i(e(a)("\u8BBE\u5907"))+" \xBB "+i(o.disk.path),1)]),t("div",Yy,[t("div",Ay,[t("label",Sy,i(e(a)("\u78C1\u76D8")),1),t("div",zy,[t("div",Py,i(o.disk.model)+" [ "+i(o.disk.path)+"\uFF0C"+i(o.disk.sizeStr)+" ] ",1)])]),t("div",Ty,[t("label",Iy,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09")),1),t("div",My,[t("div",Ly,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":b[0]||(b[0]=y=>e(d).tmpDiff=y)},[t("option",Oy,i(e(a)("\u4F7F\u7528\u5168\u5C40\u914D\u7F6E")),1),t("option",Ny,i(e(a)("\u7981\u7528")),1),(r(),s(U,null,tt(20,y=>t("option",{value:y},i(y)+"\xB0C",9,Vy)),64))],512),[[pt,e(d).tmpDiff,void 0,{number:!0}]])]),t("div",Gy,i(e(a)("\u81EA\u4E0A\u6B21\u62A5\u544A\u4EE5\u6765\u6E29\u5EA6\u53D8\u5316\u81F3\u5C11 N \u5EA6\uFF0C\u5219\u9700\u62A5\u544A.")),1)])]),t("div",jy,[t("label",Uy,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09")),1),t("div",qy,[t("div",Ry,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":b[1]||(b[1]=y=>e(d).tmpMax=y)},[t("option",Wy,i(e(a)("\u4F7F\u7528\u5168\u5C40\u914D\u7F6E")),1),t("option",Hy,i(e(a)("\u7981\u7528")),1),(r(),s(U,null,tt(20,y=>t("option",{value:y*5},i(y*5)+"\xB0C",9,Jy)),64))],512),[[pt,e(d).tmpMax,void 0,{number:!0}]])]),t("div",Zy,i(e(a)("\u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A.")),1)])])]),t("div",Ky,[t("button",{class:"close",onClick:c,disabled:u.value},i(e(a)("\u53D6\u6D88")),9,Qy),t("button",{class:"next",onClick:k,disabled:u.value},i(e(a)("\u4FDD\u5B58")),9,Xy)])])]),_:1}))}}),eF={class:"actioner-container"},aF={class:"actioner-container_header"},oF={class:"actioner-container_body"},nF={class:"cbi-value"},iF={class:"cbi-value-title"},rF={class:"cbi-value-field"},sF={class:"cbi-checkbox"},dF={value:""},lF=["value"],uF={class:"cbi-value"},cF={class:"cbi-value-title"},pF={class:"cbi-value-field"},fF={class:"cbi-checkbox"},mF={value:"short"},gF={value:"long"},vF={value:"conveyance"},bF={value:"offline"},hF={class:"cbi-value"},_F={class:"cbi-value-title"},xF={class:"cbi-value-field"},wF={class:"cbi-checkbox"},kF=t("option",{value:"*"},"*",-1),yF=["value"],FF={class:"cbi-value-description"},EF={class:"cbi-value"},$F={class:"cbi-value-title"},CF={class:"cbi-value-field"},DF={class:"cbi-checkbox"},BF=t("option",{value:"*"},"*",-1),YF=["value"],AF={class:"cbi-value-description"},SF={class:"cbi-value"},zF={class:"cbi-value-title"},PF={class:"cbi-value-field"},TF={class:"cbi-checkbox"},IF=t("option",{value:"*"},"*",-1),MF=["value"],LF={class:"cbi-value-description"},OF={class:"actioner-container_footer"},NF=["disabled"],VF=["disabled"],GF=I({props:{close:{type:Function,required:!0},config:{type:Object,required:!0},next:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!1),d=gt({type:"short",devicePath:"",month:"*",dayPerMonth:"*",hour:"*"}),c=E([]);(()=>L(this,null,function*(){try{const m=yield G.Smart.List.GET();if(m.data){const{result:v,error:b}=m.data;v&&v.disks&&(c.value=v.disks)}}catch(m){}}))();const g=()=>{u.value=!0,n.close()},p=()=>L(this,null,function*(){if(d.devicePath==""){$.Warning(a("\u8BF7\u9009\u62E9\u78C1\u76D8"));return}u.value=!0;try{yield n.next(d),g()}catch(m){}finally{u.value=!1}});return(m,v)=>(r(),Z(je,null,{default:V(()=>[t("div",eF,[t("div",aF,[t("span",null,i(e(a)("\u521B\u5EFA\u8BA1\u5212\u4EFB\u52A1")),1)]),t("div",oF,[t("div",nF,[t("label",iF,i(e(a)("\u78C1\u76D8")),1),t("div",rF,[t("div",sF,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":v[0]||(v[0]=b=>e(d).devicePath=b)},[t("option",dF,i(e(a)("\u9009\u62E9\u78C1\u76D8")),1),(r(!0),s(U,null,tt(c.value,b=>(r(),s("option",{value:b.path},i(b.model)+" [ "+i(b.path)+"\uFF0C"+i(b.sizeStr)+" ] ",9,lF))),256))],512),[[pt,e(d).devicePath,void 0,{trim:!0}]])])])]),t("div",uF,[t("label",cF,i(e(a)("\u7C7B\u578B")),1),t("div",pF,[t("div",fF,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":v[1]||(v[1]=b=>e(d).type=b)},[t("option",mF,i(e(a)("\u77ED\u6682\u81EA\u68C0")),1),t("option",gF,i(e(a)("\u957F\u65F6\u81EA\u68C0")),1),t("option",vF,i(e(a)("\u4F20\u8F93\u65F6\u81EA\u68C0")),1),t("option",bF,i(e(a)("\u79BB\u7EBF\u65F6\u81EA\u68C0")),1)],512),[[pt,e(d).type,void 0,{trim:!0}]])])])]),t("div",hF,[t("label",_F,i(e(a)("\u5C0F\u65F6")),1),t("div",xF,[t("div",wF,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":v[2]||(v[2]=b=>e(d).hour=b)},[kF,(r(),s(U,null,tt(24,(b,y)=>t("option",{value:`${y}`},i(y),9,yF)),64))],512),[[pt,e(d).hour,void 0,{trim:!0}]])]),t("div",FF,i(e(a)("* \u8868\u793A\u6BCF\u5C0F\u65F6")),1)])]),t("div",EF,[t("label",$F,i(e(a)("\u5929")),1),t("div",CF,[t("div",DF,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":v[3]||(v[3]=b=>e(d).dayPerMonth=b)},[BF,(r(),s(U,null,tt(31,b=>t("option",{value:`${b}`},i(b),9,YF)),64))],512),[[pt,e(d).dayPerMonth,void 0,{trim:!0}]])]),t("div",AF,i(e(a)("* \u8868\u793A\u6BCF\u5929")),1)])]),t("div",SF,[t("label",zF,i(e(a)("\u6708")),1),t("div",PF,[t("div",TF,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":v[4]||(v[4]=b=>e(d).month=b)},[IF,(r(),s(U,null,tt(12,(b,y)=>t("option",{value:`${b}`},i(b),9,MF)),64))],512),[[pt,e(d).month,void 0,{trim:!0}]])]),t("div",LF,i(e(a)("* \u8868\u793A\u6BCF\u6708")),1)])])]),t("div",OF,[t("button",{class:"close",onClick:g,disabled:u.value},i(e(a)("\u53D6\u6D88")),9,NF),t("button",{class:"next",onClick:p,disabled:u.value},i(e(a)("\u4FDD\u5B58")),9,VF)])])]),_:1}))}}),jF={class:"actioner-container"},UF={class:"actioner-container_header"},qF={class:"actioner-container_body"},RF=["value"],WF={class:"actioner-container_footer"},HF=["disabled"],JF=["disabled"],ZF=I({props:{close:{type:Function,required:!0},task:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!1),d=E(""),c=E(""),k=E(""),g=()=>L(this,null,function*(){d.value+=".";try{const b=yield G.Smart.Test.Result.POST({type:"selftest",devicePath:n.task.devicePath||""});if(b.data){const{result:y,error:f}=b.data;y&&y.result&&(k.value=y.result),f&&(k.value=f)}}catch(b){b&&(k.value=b)}}),p=Mt.easyInterval(g,5e3);ke(()=>{p()});const m=()=>{u.value=!0,p(),n.close()},v=()=>L(this,null,function*(){u.value=!0;try{const b=yield G.Smart.Test.POST({type:n.task.type||"short",devicePath:n.task.devicePath||""});if(b.data){const{success:y,error:f,result:F}=b.data;f&&(c.value=f),F&&F.result&&(c.value=F.result)}}catch(b){c.value=b}finally{}});return(b,y)=>(r(),Z(je,null,{default:V(()=>[t("div",jF,[t("div",UF,[t("span",null,i(e(a)("\u8FD0\u884C\u8C03\u8BD5")),1)]),t("div",qF,[t("textarea",{value:c.value+`
|
|
`+k.value+`
|
|
`+d.value,disabled:""},null,8,RF)]),t("div",WF,[t("div",{class:"close",onClick:m,disabled:u.value},i(e(a)("\u5173\u95ED")),9,HF),u.value?D("",!0):(r(),s("div",{key:0,class:"next",onClick:v,disabled:u.value},i(e(a)("\u8FD0\u884C")),9,JF))])])]),_:1}))}});var KF=N(ZF,[["__scopeId","data-v-70c3aae0"]]);const QF={class:"actioner-container"},XF={class:"actioner-container_header"},tE={class:"tabs"},eE={class:"actioner-container_body"},aE={key:0,class:"table"},oE={class:"tr"},nE={class:"td left"},iE={class:"td left"},rE={class:"tr"},sE={class:"td left"},dE={class:"td left"},lE={class:"tr"},uE={class:"td left"},cE={class:"td left"},pE=["value"],fE=["value"],mE=["value"],gE={class:"actioner-container_footer"},vE=["disabled"],bE=I({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!1),d=E("info"),c=b=>{switch(d.value=b,b){case"info":break;case"attribute":m();break;case"log":p();break;case"extend":v();break}},k=()=>{u.value=!0,n.close()},g=gt({log:"",attribute:"",extend:""}),p=()=>L(this,null,function*(){try{const b=yield G.Smart.Test.Result.POST({type:"selftest",devicePath:n.disk.path||""});if(b.data){const{result:y,error:f}=b.data;y&&y.result&&(g.log=y.result),f&&(g.log=f)}}catch(b){g.log=b}}),m=()=>L(this,null,function*(){try{const b=yield G.Smart.Attribute.Result.POST({devicePath:n.disk.path||""});if(b.data){const{result:y,error:f}=b.data;y&&y.result&&(g.attribute=y.result),f&&(g.attribute=f)}}catch(b){g.attribute=b}}),v=()=>L(this,null,function*(){try{const b=yield G.Smart.Extend.Result.POST({devicePath:n.disk.path||""});if(b.data){const{result:y,error:f}=b.data;y&&y.result&&(g.extend=y.result),f&&(g.extend=f)}}catch(b){g.extend=b}});return(b,y)=>(r(),Z(je,null,{default:V(()=>[t("div",QF,[t("div",XF,[t("ul",tE,[t("li",{class:lt({"active cbi-tab":d.value=="info"}),onClick:y[0]||(y[0]=f=>c("info"))},[t("a",null,i(e(a)("\u8BBE\u5907\u4FE1\u606F")),1)],2),t("li",{class:lt({"active cbi-tab":d.value=="attribute"}),onClick:y[1]||(y[1]=f=>c("attribute"))},[t("a",null,i(e(a)("\u5C5E\u6027")),1)],2),t("li",{class:lt({"active cbi-tab":d.value=="log"}),onClick:y[2]||(y[2]=f=>c("log"))},[t("a",null,i(e(a)("\u81EA\u68C0\u65E5\u5FD7")),1)],2),t("li",{class:lt({"active cbi-tab":d.value=="extend"}),onClick:y[3]||(y[3]=f=>c("extend"))},[t("a",null,i(e(a)("\u6269\u5C55\u4FE1\u606F")),1)],2)])]),t("div",eE,[d.value=="info"?(r(),s("table",aE,[t("tr",oE,[t("td",nE,i(e(a)("\u8BBE\u5907")),1),t("td",iE,i(o.disk.path),1)]),t("tr",rE,[t("td",sE,i(e(a)("\u578B\u53F7")),1),t("td",dE,i(o.disk.model),1)]),t("tr",lE,[t("td",uE,i(e(a)("\u5E8F\u53F7")),1),t("td",cE,i(o.disk.serial),1)])])):d.value=="attribute"?(r(),s("textarea",{key:1,disabled:"",value:e(g).attribute},null,8,pE)):d.value=="log"?(r(),s("textarea",{key:2,disabled:"",value:e(g).log},null,8,fE)):d.value=="extend"?(r(),s("textarea",{key:3,disabled:"",value:e(g).extend},null,8,mE)):D("",!0)]),t("div",gE,[t("div",{class:"close",onClick:k,disabled:u.value},i(e(a)("\u5173\u95ED")),9,vE)])])]),_:1}))}});var hE=N(bE,[["__scopeId","data-v-313197ee"]]);const _E=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=Y(tF,vt(st({},o),{close:()=>{l()}})),l=()=>{n.remove()};Ie(a,n)},xE=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=Y(GF,vt(st({},o),{close:()=>{l()}})),l=()=>{n.remove()};Ie(a,n)},wE=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=Y(KF,vt(st({},o),{close:()=>{l()}})),l=()=>{n.remove()};Ie(a,n)},kE=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=Y(hE,vt(st({},o),{close:()=>{l()}})),l=()=>{n.remove()};Ie(a,n)},yE={class:"cbi-section"},FE={class:"cbi-value"},EE={class:"cbi-value-title"},$E={class:"cbi-value-field"},CE={class:"cbi-checkbox"},DE=["value"],BE={class:"cbi-value"},YE={class:"cbi-value-title"},AE={class:"cbi-value-field"},SE={class:"cbi-checkbox"},zE={value:"never"},PE={value:"sleep"},TE={value:"standby"},IE={value:"idle"},ME={class:"cbi-value-description"},LE=t("br",null,null,-1),OE=t("br",null,null,-1),NE=t("br",null,null,-1),VE=t("br",null,null,-1),GE={class:"cbi-value"},jE={class:"cbi-value-title"},UE={class:"cbi-value-field"},qE={class:"cbi-checkbox"},RE={value:0},WE=["value"],HE={class:"cbi-value-description"},JE={class:"cbi-value"},ZE={class:"cbi-value-title"},KE={class:"cbi-value-field"},QE={class:"cbi-checkbox"},XE={value:0},t$=["value"],e$={class:"cbi-value-description"},a$={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},o$={class:"table cbi-section-table"},n$={class:"tr cbi-section-table-titles anonymous"},i$={class:"th cbi-section-table-cell","data-widget":"value"},r$={class:"th cbi-section-table-cell","data-widget":"value"},s$={class:"th cbi-section-table-cell","data-widget":"value"},d$={class:"th cbi-section-table-cell","data-widget":"value"},l$={class:"th cbi-section-table-cell","data-widget":"value"},u$={class:"th cbi-section-table-cell","data-widget":"value"},c$={class:"th cbi-section-table-cell","data-widget":"value"},p$={class:"th cbi-section-table-cell","data-widget":"value"},f$={class:"tr cbi-section-table-row"},m$={class:"td cbi-value-field"},g$={class:"td cbi-value-field"},v$={class:"td cbi-value-field"},b$={class:"td cbi-value-field"},h$={class:"td cbi-value-field"},_$={class:"td cbi-value-field"},x$={class:"td cbi-value-field"},w$={class:"td cbi-value-field"},k$=["title","onClick"],y$=["title","onClick"],F$={class:"cbi-page-actions control-group"},E$=["value"],$$=I({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=gt(n.config),d=()=>{u.global.tmpDiff=n.config.global.tmpDiff||0,u.global.tmpMax=n.config.global.tmpMax||0,u.global.enable=n.config.global.enable||!1,u.global.powermode=n.config.global.powermode||"never",u.devices=n.config.devices||[],u.tasks=n.config.tasks||[]},c=E([]),k=()=>L(this,null,function*(){try{const b=yield G.Smart.List.GET();if(b.data){const{result:y,error:f}=b.data;y&&y.disks&&(c.value=y.disks||[])}}catch(b){}}),g=Mt.easyInterval(k,5e3);ke(()=>{g()});const p=()=>L(this,null,function*(){yield n.saveData({global:u.global,devices:n.config.devices,tasks:n.config.tasks}),d()}),m=b=>{kE({disk:b})},v=(b,y)=>L(this,null,function*(){let f=null,F=-1;if(u.devices){for(let w=0;w<u.devices.length;w++)if(u.devices[w].devicePath==b.path){f=u.devices[w],F=w;break}}_E({disk:b,device:f,next:w=>L(this,null,function*(){w.tmpDiff==-1&&(w.tmpDiff=u.global.tmpDiff),w.tmpMax==-1&&(w.tmpMax=u.global.tmpMax),w.devicePath==""&&(w.devicePath=b.path);let h=[...u.devices];F>=0&&(h[F]=w);const _=new Map;h.forEach(x=>{x.devicePath!=null&&_.set(x.devicePath,null)});for(let x=0;x<c.value.length;x++){const C=c.value[x];C.path!=null&&!_.has(C.path)&&h.push({devicePath:C.path,tmpDiff:u.global.tmpDiff,tmpMax:u.global.tmpMax})}yield n.saveData({tasks:n.config.tasks,global:n.config.global,devices:h}),d()})})});return(b,y)=>(r(),s(U,null,[t("fieldset",yE,[t("div",FE,[t("label",EE,i(e(a)("\u542F\u7528")),1),t("div",$E,[t("div",CE,[O(t("input",{type:"checkbox","onUpdate:modelValue":y[0]||(y[0]=f=>e(u).global.enable=f),value:!e(u).global.enable},null,8,DE),[[Rt,e(u).global.enable]])])])]),t("div",BE,[t("label",YE,i(e(a)("\u7535\u6E90\u6A21\u5F0F")),1),t("div",AE,[t("div",SE,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":y[1]||(y[1]=f=>e(u).global.powermode=f)},[t("option",zE,i(e(a)("\u603B\u662F")),1),t("option",PE,i(e(a)("\u7761\u7720")),1),t("option",TE,i(e(a)("\u5F85\u673A")),1),t("option",IE,i(e(a)("\u95F2\u7F6E")),1)],512),[[pt,e(u).global.powermode,void 0,{trim:!0}]])]),t("div",ME,[t("span",null,i(e(a)("\u6D4B\u8BD5\u65F6\u78C1\u76D8\u4F1A\u8F6C\u52A8\uFF0C\u8BF7\u9009\u62E9\u5408\u9002\u7684\u6A21\u5F0F\u6765\u63A7\u5236\u78C1\u76D8\u8F6C\u52A8\u3002")),1),LE,t("span",null,"* "+i(e(a)("\u603B\u662F-\u65E0\u8BBA\u662F\u4EC0\u4E48\u529F\u8017\u6A21\u5F0F\u4E0B\u90FD\u6D4B\u8BD5(\u68C0\u67E5)\u78C1\u76D8\uFF0C\u5F53\u68C0\u67E5\u65F6\uFF0C\u8FD9\u53EF\u80FD\u4F1A\u4F7F\u505C\u8F6C\u7684\u78C1\u76D8\u5F00\u59CB\u8F6C\u52A8\u3002")),1),OE,t("span",null,"* "+i(e(a)("\u7761\u7720-\u5904\u4E8E\u7761\u7720\u6A21\u5F0F\u4E0B\u4E0D\u68C0\u67E5\u8BBE\u5907\u3002")),1),NE,t("span",null,"* "+i(e(a)("\u5F85\u673A-\u5904\u4E8E\u5F85\u673A\u548C\u7761\u7720\u6A21\u5F0F\u4E0B\u4E0D\u68C0\u67E5\u8BBE\u5907\u3002\u6B64\u6A21\u5F0F\u4E0B\u78C1\u76D8\u4E00\u822C\u4E0D\u65CB\u8F6C\uFF0C\u5982\u679C\u4F60\u4E0D\u60F3\u6BCF\u6B21\u68C0\u67E5\u90FD\u8F6C\u52A8\u78C1\u76D8\uFF0C\u90A3\u4E48\u8FD9\u4E2A\u6A21\u5F0F\u6BD4\u8F83\u9002\u5408\u3002")),1),VE,t("span",null,"* "+i(e(a)("\u95F2\u7F6E-\u5904\u4E8E\u5F85\u673A\u3001\u7761\u7720\u3001\u95F2\u7F6E\u6A21\u5F0F\u4E0B\u4E0D\u68C0\u67E5\u8BBE\u5907\uFF0C\u5728\u95F2\u7F6E\u72B6\u6001\u4E0B\uFF0C\u5927\u591A\u6570\u78C1\u76D8\u8FD8\u5728\u8F6C\u52A8\uFF0C\u6240\u4EE5\u8FD9\u53EF\u80FD\u4E0D\u9002\u5408\u4F60\u3002")),1)])])]),t("div",GE,[t("label",jE,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09")),1),t("div",UE,[t("div",qE,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":y[2]||(y[2]=f=>e(u).global.tmpDiff=f)},[t("option",RE,i(e(a)("\u7981\u7528")),1),(r(),s(U,null,tt(15,f=>t("option",{value:f},i(f)+"\xB0C",9,WE)),64))],512),[[pt,e(u).global.tmpDiff,void 0,{number:!0}]])]),t("div",HE,i(e(a)("\u81EA\u4E0A\u6B21\u62A5\u544A\u4EE5\u6765\u6E29\u5EA6\u53D8\u5316\u81F3\u5C11 N \u5EA6\uFF0C\u5219\u9700\u62A5\u544A.")),1)])]),t("div",JE,[t("label",ZE,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09")),1),t("div",KE,[t("div",QE,[O(t("select",{class:"cbi-input-select","onUpdate:modelValue":y[3]||(y[3]=f=>e(u).global.tmpMax=f)},[t("option",XE,i(e(a)("\u7981\u7528")),1),(r(),s(U,null,tt(20,f=>t("option",{value:f*5},i(f*5)+"\xB0C",9,t$)),64))],512),[[pt,e(u).global.tmpMax,void 0,{number:!0}]])]),t("div",e$,i(e(a)("\u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A.")),1)])])]),t("div",a$,[t("table",o$,[t("thead",null,[t("tr",n$,[t("th",i$,i(e(a)("\u8BBE\u5907")),1),t("th",r$,i(e(a)("\u578B\u53F7")),1),t("th",s$,i(e(a)("\u5E8F\u53F7")),1),t("th",d$,i(e(a)("\u5BB9\u91CF")),1),t("th",l$,i(e(a)("\u6E29\u5EA6")),1),t("th",u$,i(e(a)("\u72B6\u6001")),1),t("th",c$,i(e(a)("\u5065\u5EB7")),1),t("th",p$,i(e(a)("\u64CD\u4F5C")),1)])]),t("tbody",null,[(r(!0),s(U,null,tt(c.value,(f,F)=>(r(),s("tr",f$,[t("td",m$,[t("b",null,i(f.path),1)]),t("td",g$,[t("b",null,i(f.model),1)]),t("td",v$,[t("b",null,i(f.serial),1)]),t("td",b$,[t("b",null,i(f.sizeStr),1)]),t("td",h$,[t("b",null,i(f.temp),1)]),t("td",_$,[t("b",null,i(f.status),1)]),t("td",x$,[t("b",null,i(f.health),1)]),t("td",w$,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(a)("\u7F16\u8F91"),onClick:w=>v(f)},i(e(a)("\u7F16\u8F91")),9,k$),t("button",{class:"btn cbi-button cbi-button-apply",title:e(a)("\u8BE6\u60C5"),onClick:w=>m(f)},i(e(a)("\u8BE6\u60C5")),9,y$)])]))),256))])])]),t("span",F$,[t("input",{class:"btn cbi-button cbi-button-apply",type:"button",value:e(a)("\u4FDD\u5B58\u5E76\u5E94\u7528"),onClick:p},null,8,E$)])],64))}}),C$={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},D$={class:"table cbi-section-table"},B$={class:"tr cbi-section-table-titles anonymous"},Y$={class:"th cbi-section-table-cell","data-widget":"value"},A$={class:"th cbi-section-table-cell","data-widget":"value"},S$={class:"th cbi-section-table-cell","data-widget":"value"},z$={class:"th cbi-section-table-cell","data-widget":"value"},P$={class:"tr cbi-section-table-row"},T$={class:"td cbi-value-field"},I$={class:"td cbi-value-field"},M$={class:"td cbi-value-field"},L$={class:"td cbi-value-field"},O$=["title","onClick"],N$=["title","onClick"],V$=I({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=gt(n.config),d=p=>{switch(p){case"short":return a("\u77ED\u6682\u81EA\u68C0");case"long":return a("\u957F\u65F6\u81EA\u68C0");case"conveyance":return a("\u4F20\u8F93\u65F6\u81EA\u68C0");case"offline":return a("\u79BB\u7EBF\u65F6\u81EA\u68C0");default:return a("\u672A\u77E5")}},c=()=>{xE({config:n.config,disks:[],next:p=>L(this,null,function*(){yield n.saveData({tasks:[...u.tasks,p],global:n.config.global,devices:n.config.devices}),u.tasks=n.config.tasks||[]})})},k=p=>L(this,null,function*(){const m=[...u.tasks];m.splice(p,1),yield n.saveData({tasks:m,global:n.config.global,devices:n.config.devices}),u.tasks=n.config.tasks||[]}),g=p=>{wE({task:p})};return(p,m)=>(r(),s(U,null,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:m[0]||(m[0]=v=>c())},i(e(a)("\u65B0\u5EFA")),1),t("div",C$,[t("table",D$,[t("thead",null,[t("tr",B$,[t("th",Y$,i(e(a)("\u8BBE\u5907")),1),t("th",A$,i(e(a)("\u7C7B\u578B")),1),t("th",S$,i(e(a)("\u8C03\u5EA6")),1),t("th",z$,i(e(a)("\u529F\u80FD")),1)])]),t("tbody",null,[(r(!0),s(U,null,tt(e(u).tasks,(v,b)=>(r(),s("tr",P$,[t("td",T$,[t("b",null,i(v.devicePath),1)]),t("td",I$,[t("b",null,i(d(v.type)),1)]),t("td",M$,[t("b",null,i(v.month)+"/"+i(v.dayPerMonth)+"/"+i(v.hour),1)]),t("td",L$,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(a)("\u8C03\u8BD5"),onClick:y=>g(v)},i(e(a)("\u9884\u89C8")),9,O$),t("button",{class:"cbi-button cbi-button-remove",title:e(a)("\u5220\u9664"),onClick:y=>k(b)},i(e(a)("\u5220\u9664")),9,N$)])]))),256))])])])],64))}}),G$={class:"cbi-section"},j$=["value"],U$=I({setup(o){return L(this,null,function*(){let n,a;const l=E(""),u=()=>L(this,null,function*(){try{const d=yield G.Smart.Log.GET();if(d.data){const{result:c,error:k}=d.data;c&&c.result&&(l.value=c.result),k&&(l.value=k)}}catch(d){l.value=d}});return[n,a]=Do(()=>u()),yield n,a(),(d,c)=>(r(),s("fieldset",G$,[t("textarea",{value:l.value,disabled:""},null,8,j$)]))})}});var q$=N(U$,[["__scopeId","data-v-76197cba"]]);const lo=o=>(ut("data-v-02f10ac5"),o=o(),ct(),o),R$=lo(()=>t("div",{class:"app-container_status-label_iconer"},[t("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:v":"https://vecta.io/nano",width:"48",height:"38",viewBox:"0 0 12.7 10.05"},[t("defs",null,[t("filter",{id:"A","color-interpolation-filters":"sRGB"},[t("feColorMatrix",{result:"A",values:"2 -0.5 -0.5 0 0 -0.5 2 -0.5 0 0 -0.5 -0.5 2 0 0 0 0 0 1 0 "}),t("feColorMatrix",{values:"0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"}),t("feColorMatrix",{in:"A",values:"2 -0.5 -0.5 0 0 -0.5 2 -0.5 0 0 -0.5 -0.5 2 0 0 0 0 0 1 0 "})]),t("path",{id:"B",d:"M80.56 75.75h3.91v22.79h-3.91z"})]),t("g",{transform:"translate(0 -286.95)"},[t("rect",{x:".21",y:"287.25",width:"12.33",height:"9.5",ry:".57",fill:"#e6e6e6",stroke:"#e6e6e6","stroke-linejoin":"round","stroke-width":".37","paint-order":"normal"}),t("path",{transform:"matrix(.105 0 0 .0989 -6.0834 280.6)",d:"M73.96 75.66h89.41c2.31 0 4.17 1.86 4.17 4.17v52.65h-21.74v9.41h-8.69v12.59h-36.87v-12.59h-8.69v-9.41H69.79V79.83c0-2.31 1.86-4.17 4.17-4.17z",fill:"#999",filter:"url(#A)",stroke:"#999","stroke-width":"2.5"}),t("g",{transform:"matrix(.1048 0 0 .1048 -6.0999 280.7)",fill:"#fff",filter:"url(#A)",stroke:"#fff"},[t("use",{"xlink:href":"#B"}),t("use",{"xlink:href":"#B",x:"73.04"}),t("use",{"xlink:href":"#B",x:"52.17"}),t("use",{"xlink:href":"#B",x:"41.74"}),t("use",{"xlink:href":"#B",x:"31.3"}),t("use",{"xlink:href":"#B",x:"20.87"}),t("use",{"xlink:href":"#B",x:"10.43"}),t("use",{"xlink:href":"#B",x:"62.61"})]),t("rect",{x:"1.24",y:"294.55",width:"1.6",height:"1.38",ry:".11",fill:"#ccc",stroke:"#ccc","stroke-width":".22","paint-order":"normal"})])])],-1)),W$={class:"app-container_status-label_text"},H$={class:"text_status"},J$={class:"text_info"},Z$=lo(()=>t("div",{class:"app-container_status-label_iconer"},[t("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"48",height:"38",viewBox:"0 0 12.7 10.05","xmlns:v":"https://vecta.io/nano"},[t("defs",null,[t("filter",{id:"A","color-interpolation-filters":"sRGB"},[t("feColorMatrix",{result:"A",values:"2 -0.5 -0.5 0 0 -0.5 2 -0.5 0 0 -0.5 -0.5 2 0 0 0 0 0 1 0 "}),t("feColorMatrix",{values:"0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"}),t("feColorMatrix",{in:"A",values:"2 -0.5 -0.5 0 0 -0.5 2 -0.5 0 0 -0.5 -0.5 2 0 0 0 0 0 1 0 "})]),t("path",{id:"B",d:"M80.56 75.75h3.91v22.79h-3.91z"})]),t("g",{transform:"translate(-.03 -287.07)"},[t("rect",{x:".24",y:"287.36",width:"12.33",height:"9.5",ry:".57",fill:"#e6e6e6",stroke:"#e6e6e6","stroke-linejoin":"round","stroke-width":".37","paint-order":"normal"}),t("path",{transform:"matrix(.105 0 0 .0989 -6.0532 280.72)",d:"M73.96 75.66h89.41c2.31 0 4.17 1.86 4.17 4.17v52.65h-21.74v9.41h-8.69v12.59h-36.87v-12.59h-8.69v-9.41H69.79V79.83c0-2.31 1.86-4.17 4.17-4.17z",fill:"#4d4d4d",filter:"url(#A)",stroke:"#4d4d4d","stroke-width":"2.5"}),t("g",{transform:"matrix(.1048 0 0 .1048 -6.0697 280.81)",fill:"#fff",filter:"url(#A)",stroke:"#fff"},[t("use",{"xlink:href":"#B"}),t("use",{"xlink:href":"#B",x:"73.04"}),t("use",{"xlink:href":"#B",x:"52.17"}),t("use",{"xlink:href":"#B",x:"41.74"}),t("use",{"xlink:href":"#B",x:"31.3"}),t("use",{"xlink:href":"#B",x:"20.87"}),t("use",{"xlink:href":"#B",x:"10.43"}),t("use",{"xlink:href":"#B",x:"62.61"})]),t("rect",{x:"1.27",y:"294.67",width:"1.6",height:"1.38",ry:".11",fill:"#55d400",stroke:"#55d400","stroke-width":".22","paint-order":"normal"})])])],-1)),K$={class:"app-container_status-label_text"},Q$={class:"text_info"},X$=I({props:{item:{type:Object,required:!0},transform:{type:Number,default:0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=ra(),d=E(null),c=g=>{const p=g.target,{left:m,top:v}=p.getBoundingClientRect();u.portitemStyle.show=!0,u.portitemStyle.left=m,u.portitemStyle.top=v,u.portitemStyle.portitem=n.item},k=g=>{u.portitemStyle.show=!1};return(g,p)=>(r(),s("div",{class:"app-container_status-label_bg",style:ht(`transform: translateX(${o.transform}px);`),ref_key:"el",ref:d,onMouseenter:c,onMouseleave:k},[o.item.linkState=="DOWN"?(r(),s(U,{key:0},[R$,t("div",W$,[t("div",H$,i(e(a)("\u5DF2\u65AD\u5F00")),1),t("div",J$,i(o.item.name)+" "+i(o.item.interfaceNames?`(${o.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64)):(r(),s(U,{key:1},[Z$,t("div",K$,[t("div",null,i(o.item.linkSpeed),1),t("div",Q$,i(o.item.name)+" "+i(o.item.interfaceNames?`(${o.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64))],36))}});var tC=N(X$,[["__scopeId","data-v-02f10ac5"]]);const eC={},aC={t:"1659511092204",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2332","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},oC=t("path",{d:"M514.048 62.464q93.184 0 175.616 35.328t143.872 96.768 96.768 143.872 35.328 175.616q0 94.208-35.328 176.128t-96.768 143.36-143.872 96.768-175.616 35.328q-94.208 0-176.64-35.328t-143.872-96.768-96.768-143.36-35.328-176.128q0-93.184 35.328-175.616t96.768-143.872 143.872-96.768 176.64-35.328zM772.096 576.512q26.624 0 45.056-18.944t18.432-45.568-18.432-45.056-45.056-18.432l-192.512 0 0-192.512q0-26.624-18.944-45.568t-45.568-18.944-45.056 18.944-18.432 45.568l0 192.512-192.512 0q-26.624 0-45.056 18.432t-18.432 45.056 18.432 45.568 45.056 18.944l192.512 0 0 191.488q0 26.624 18.432 45.568t45.056 18.944 45.568-18.944 18.944-45.568l0-191.488 192.512 0z","p-id":"2333"},null,-1),nC=[oC];function iC(o,n){return r(),s("svg",aC,nC)}var Pa=N(eC,[["render",iC]]);const rC=["onSubmit"],sC={class:"actioner-dns_header"},dC={key:0},lC={key:1},uC={class:"actioner-dns_body"},cC={class:"label-item"},pC={class:"label-item_key"},fC={class:"label-item_value"},mC={class:"label-item"},gC={class:"label-item_key"},vC={class:"label-item_value"},bC={value:"dhcp"},hC={key:0,value:"pppoe"},_C={value:"static"},xC={class:"actioner-dns_footer"},wC=["disabled"],kC=I({props:{Close:{type:Function,required:!0},e:{type:String,required:!0},name:{type:String,required:!0},inface:{type:Object,required:!0},next:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=J(),u=E(!1),d=E(n.inface),c=()=>L(this,null,function*(){$.Loading(a("\u914D\u7F6E\u4E2D...")).Close(),n.next(d.value),k()}),k=()=>{n.Close&&n.Close()};return(g,p)=>(r(),Z(wt,{Close:o.Close,type:1},{default:V(()=>[t("form",{class:"actioner-dns",onSubmit:ft(c,["prevent"])},[t("div",sC,[o.name=="wan"?(r(),s("span",dC,i(o.e=="edit"?e(a)("\u7F16\u8F91WAN"):e(a)("\u6DFB\u52A0WAN")),1)):(r(),s("span",lC,i(o.e=="edit"?e(a)("\u7F16\u8F91LAN"):e(a)("\u6DFB\u52A0LAN")),1))]),t("div",uC,[t("div",cC,[t("div",pC,[t("span",null,i(e(a)("\u540D\u79F0")),1)]),t("div",fC,[t("span",null,i(d.value.name.toLocaleUpperCase()),1)])]),t("div",mC,[t("div",gC,[t("span",null,i(e(a)("\u534F\u8BAE\uFF08\u7F51\u7EDC\u83B7\u53D6\u65B9\u5F0F\uFF09")),1)]),t("div",vC,[O(t("select",{"onUpdate:modelValue":p[0]||(p[0]=m=>d.value.proto=m)},[t("option",bC,i(e(a)("DHCP\u5BA2\u6237\u7AEF")),1),o.name=="wan"?(r(),s("option",hC,"PPPoE")):D("",!0),t("option",_C,i(e(a)("\u9759\u6001\u5730\u5740")),1)],512),[[pt,d.value.proto]])])])]),t("div",xC,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:u.value},i(e(a)("\u4FDD\u5B58")),9,wC),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:k},i(e(a)("\u53D6\u6D88")),1)])],40,rC)]),_:1},8,["Close"]))}});var yC=N(kC,[["__scopeId","data-v-c88486ac"]]);const Ta=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=xt(yC,vt(st({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()}},Ut=o=>(ut("data-v-3dabb970"),o=o(),ct(),o),FC={id:"page"},EC={name:"content"},$C={class:"container"},CC={class:"table-wrapper"},DC={class:"table-header"},BC={class:"interface-device-flex"},YC=Ut(()=>t("div",{class:"header-cell spacer-col"},null,-1)),AC=Ut(()=>t("div",{class:"header-cell"},null,-1)),SC=Ut(()=>t("div",{class:"header-cell action-col"},null,-1)),zC={class:"table-body"},PC=["name","value","onUpdate:modelValue","onInput"],TC=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),IC={class:"table-cell name-col"},MC={class:"table-cell action-col"},LC=["title","onClick"],OC=["onClick"],NC=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),VC=Ut(()=>t("div",{class:"table-cell name-col"},null,-1)),GC={class:"table-cell action-col"},jC=["name","value","onUpdate:modelValue","onInput"],UC=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),qC={class:"table-cell name-col"},RC={class:"table-cell action-col"},WC=["title","onClick"],HC=["onClick"],JC=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),ZC=Ut(()=>t("div",{class:"table-cell name-col"},null,-1)),KC={class:"table-cell action-col"},QC={class:"cbi-page-actions control-group"},XC=["value","disabled"],tD=I({setup(o){const{$gettext:n,$ngettext:a}=J(),l=gt({devices:[],interfaces:[]}),u=E(!1),d=gt({lan:[],wan:[]});(()=>{G.Network.GetInterfaceConfig.GET().then(y=>{if(y.data){const{result:f}=y.data;if(f){l.devices=f.devices||[],l.interfaces=f.interfaces||[];for(let F=0;F<l.interfaces.length;F++)l.interfaces[F].firewallType=="wan"?d.wan.push(l.interfaces[F]):l.interfaces[F].firewallType=="lan"&&d.lan.push(l.interfaces[F])}}})})();const k=(y,f)=>{y=="wan"?d.wan.splice(f,1):y=="lan"&&d.lan.splice(f,1)},g=(y,f)=>{if(f==null){let F=y=="wan"?d.wan.length:d.lan.length;F==6&&y=="wan"&&F++,Ta({e:"add",name:y,inface:{name:y+`${F}`,proto:"dhcp",ipv4Addr:"",ipv6Addr:"",portName:"",deviceNames:[],ports:[],firewallType:y},next:w=>{y=="wan"?d.wan.push(w):d.lan.push(w),$.Message(n("\u8BF7\u5728\u4FDD\u5B58\u4EE5\u540E\u524D\u5F80'\u7F51\u7EDC-\u63A5\u53E3'\u9875\u9762\u914D\u7F6E\u63A5\u53E3\u8BE6\u7EC6\u53C2\u6570"))}})}else Ta({e:"edit",name:y,inface:y=="wan"?d.wan[f]:d.lan[f],next:F=>{y=="wan"?d.wan[f]=F:d.lan[f]=F}})},p=(y,f)=>y?y.indexOf(f):-1,m=(y,f)=>{const w=y.target.value;for(let _=0;_<d.wan.length;_++){const x=p(d.wan[_].deviceNames,w);x!=-1&&d.wan[_].deviceNames.splice(x,1)}for(let _=0;_<d.lan.length;_++)if(_!=f){const x=p(d.lan[_].deviceNames,w);x!=-1&&d.lan[_].deviceNames.splice(x,1)}const h=p(d.lan[f].deviceNames,w);h!=-1?d.lan[f].deviceNames.splice(h,1):(d.lan[f].deviceNames===null&&(d.lan[f].deviceNames=[]),d.lan[f].deviceNames.push(w))},v=(y,f)=>{const w=y.target.value;for(let h=0;h<d.wan.length;h++)if(h!=f){const _=p(d.wan[h].deviceNames,w);_!=-1&&d.wan[h].deviceNames.splice(_,1)}for(let h=0;h<d.lan.length;h++){const _=p(d.lan[h].deviceNames,w);_!=-1&&d.lan[h].deviceNames.splice(_,1)}d.wan[f].deviceNames=[w]},b=()=>L(this,null,function*(){u.value=!0;const y=[];for(let F=0;F<d.wan.length;F++){const w=d.wan[F];y.push({name:w.name,proto:w.proto,devices:w.deviceNames||[],firewallType:w.firewallType})}for(let F=0;F<d.lan.length;F++){const w=d.lan[F];if(w.name==="lan"&&(!w.deviceNames||w.deviceNames.length==0)&&!confirm(n("LAN\u53E3\u672A\u5173\u8054\u4EFB\u4F55\u7269\u7406\u7F51\u53E3\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8DEF\u7531\u5668\u5931\u8054\uFF0C\u662F\u5426\u7EE7\u7EED\u64CD\u4F5C\uFF1F"))){u.value=!1;return}y.push({name:w.name,proto:w.proto,devices:w.deviceNames||[],firewallType:w.firewallType})}const f=$.Loading(n("\u4FDD\u5B58\u4E2D..."));try{const F=yield G.Network.POSTInterfaceConfig.POST({configs:y});if(F.data){const{success:w,result:h,error:_}=F.data;if(_)throw _;(w||0)==0&&$.Success(n("\u914D\u7F6E\u6210\u529F"))}}catch(F){$.Error(`${F}`)}finally{f.Close(),u.value=!1}});return(y,f)=>(r(),s("div",FC,[t("h2",EC,i(e(n)("\u7F51\u53E3\u914D\u7F6E")),1),t("div",$C,[t("div",CC,[t("div",DC,[(r(!0),s(U,null,tt(e(l).devices,F=>(r(),s("div",{class:"header-cell device-col",key:F.name},[t("div",BC,[Y(tC,{item:F},null,8,["item"])])]))),128)),YC,AC,SC]),t("div",zC,[(r(!0),s(U,null,tt(e(d).lan,(F,w)=>(r(),s("div",{key:w,class:"table-row"},[(r(!0),s(U,null,tt(e(l).devices,h=>(r(),s("div",{class:"table-cell device-col",key:h.name},[O(t("input",{type:"checkbox",name:h.name,value:h.name,"onUpdate:modelValue":_=>F.deviceNames=_,onInput:_=>m(_,w)},null,40,PC),[[Rt,F.deviceNames]])]))),128)),TC,t("div",IC,[t("b",null,i(F.name),1)]),t("div",MC,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u7F16\u8F91"),onClick:h=>g("lan",w)},i(e(n)("\u7F16\u8F91")),9,LC),w!==0?(r(),s("button",{key:0,class:"cbi-button cbi-button-remove",onClick:h=>k("lan",w)},i(e(n)("\u5220\u9664")),9,OC)):D("",!0)])]))),128)),t("div",{class:"table-row add-row",onClick:f[0]||(f[0]=F=>g("lan"))},[(r(!0),s(U,null,tt(e(l).devices,F=>(r(),s("div",{class:"table-cell device-col",key:F.name}))),128)),NC,VC,t("div",GC,[Y(Pa,{class:"icon"})])]),(r(!0),s(U,null,tt(e(d).wan,(F,w)=>(r(),s("div",{key:w,class:"table-row"},[(r(!0),s(U,null,tt(e(l).devices,h=>(r(),s("div",{class:"table-cell device-col",key:h.name},[O(t("input",{type:"checkbox",name:h.name,value:h.name,"onUpdate:modelValue":_=>F.deviceNames=_,onInput:_=>v(_,w)},null,40,jC),[[Rt,F.deviceNames]])]))),128)),UC,t("div",qC,[t("b",null,i(F.name),1)]),t("div",RC,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u7F16\u8F91"),onClick:h=>g("wan",w)},i(e(n)("\u7F16\u8F91")),9,WC),w!==0?(r(),s("button",{key:0,class:"cbi-button cbi-button-remove",onClick:h=>k("wan",w)},i(e(n)("\u5220\u9664")),9,HC)):D("",!0)])]))),128)),t("div",{class:"table-row add-row",onClick:f[1]||(f[1]=F=>g("wan"))},[(r(!0),s(U,null,tt(e(l).devices,F=>(r(),s("div",{class:"table-cell device-col",key:F.name}))),128)),JC,ZC,t("div",KC,[Y(Pa,{class:"icon"})])])])])]),t("div",QC,[t("input",{class:"btn cbi-button cbi-button-apply",type:"button",value:e(n)("\u4FDD\u5B58\u5E76\u5E94\u7528"),onClick:b,disabled:u.value},null,8,XC)])]))}});var eD=N(tD,[["__scopeId","data-v-3dabb970"]]);const aD={name:"CustomTable",props:{data:{type:Array,default:()=>[]},columns:{type:Array,required:!0,validator:o=>o.every(n=>n.label&&n.prop)},showSelection:{type:Boolean,default:!1},rowKey:{type:String,default:"id"},showPagination:{type:Boolean,default:!0},pageSize:{type:Number,default:10},currentPage:{type:Number,default:1},emptyText:{type:String,default:"\u6682\u65E0\u6570\u636E"},maxPagerCount:{type:Number,default:5},theadBgColor:{type:String,default:"#F8F8F8"}},emits:["selection-change","update:currentPage","page-change"],setup(o,{emit:n}){const{$gettext:a}=J(),l=E([]),u=E(!1),d=E(!1);E(null);const c=Q(()=>o.data.length),k=Q(()=>Math.ceil(c.value/o.pageSize)),g=Q(()=>{if(!o.showPagination)return o.data;const C=(o.currentPage-1)*o.pageSize,S=C+o.pageSize;return o.data.slice(C,S)}),p=Q(()=>(o.currentPage-1)*o.pageSize+1),m=Q(()=>{const C=o.currentPage*o.pageSize;return C>c.value?c.value:C}),v=Q(()=>({minWidth:`${o.columns.reduce((S,A)=>S+(parseInt(A.width)||50),o.showSelection?50:0)}px`})),b=Q(()=>{const C=[],S=Math.floor(o.maxPagerCount/2);let A=o.currentPage-S,z=o.currentPage+S;A<1&&(A=1,z=Math.min(o.maxPagerCount,k.value)),z>k.value&&(z=k.value,A=Math.max(1,z-o.maxPagerCount+1));for(let B=A;B<=z;B++)C.push(B);return C}),y=C=>({width:C.width?`${Math.max(50,parseInt(C.width))}px`:"auto",minWidth:"50px",textAlign:C.align||"center"}),f=()=>{u.value?l.value=[...g.value.map(C=>C[o.rowKey])]:l.value=[],h()},F=()=>{u.value=l.value.length===g.value.length&&g.value.length>0,h()},w=(C,S)=>{S?l.value.includes(C)||l.value.push(C):l.value=l.value.filter(A=>A!==C),F()},h=()=>{const C=o.data.filter(S=>l.value.includes(S[o.rowKey]));n("selection-change",C)},_=C=>{C<1||C>k.value||(n("update:currentPage",C),n("page-change",C))},x=()=>{d.value=window.innerWidth<=768};return $t(()=>o.data,()=>{l.value=[],u.value=!1},{deep:!0}),Pt(()=>{x(),window.addEventListener("resize",x)}),Nt(()=>{window.removeEventListener("resize",x)}),{selectedRows:l,allSelected:u,isMobile:d,total:c,totalPages:k,paginatedData:g,startItem:p,endItem:m,visiblePages:b,tableStyle:v,gettext:a,getColumnStyle:y,toggleAllSelection:f,handleSelectionChange:F,changePage:_,updateSelection:w}}},oD={class:"custom-table-container"},nD={key:0,class:"selection-header"},iD={key:0,class:"selection-cell"},rD=["checked","onChange"],sD={key:0,class:"empty-row"},dD=["colspan"],lD={key:0,class:"pagination-wrapper"},uD={class:"pagination-info"},cD={class:"pagination-controls"},pD=["disabled"],fD=["onClick"],mD=["disabled"];function gD(o,n,a,l,u,d){return r(),s("div",oD,[t("div",{class:"custom-table-wrapper",style:ht({overflowX:l.isMobile?"auto":"hidden"})},[t("table",{class:lt(["custom-table",{"has-selection":a.showSelection}]),style:ht(l.tableStyle)},[t("thead",{style:ht({background:a.theadBgColor})},[t("tr",null,[a.showSelection?(r(),s("th",nD,[O(t("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=c=>l.allSelected=c),onChange:n[1]||(n[1]=(...c)=>l.toggleAllSelection&&l.toggleAllSelection(...c))},null,544),[[Rt,l.allSelected]])])):D("",!0),(r(!0),s(U,null,tt(a.columns,(c,k)=>(r(),s("th",{key:k,style:ht(l.getColumnStyle(c))},i(l.gettext(c.label)),5))),128))])],4),t("tbody",null,[(r(!0),s(U,null,tt(l.paginatedData,(c,k)=>(r(),s("tr",{key:k,class:lt({"last-row":k===l.paginatedData.length-1})},[a.showSelection?(r(),s("td",iD,[t("input",{type:"checkbox",checked:l.selectedRows.includes(c[a.rowKey]),onChange:g=>l.updateSelection(c[a.rowKey],g.target.checked)},null,40,rD)])):D("",!0),(r(!0),s(U,null,tt(a.columns,(g,p)=>(r(),s("td",{key:p,style:ht({textAlign:g.align||"center"})},[g.slot?Yt(o.$slots,g.slot,{key:0,row:c,index:k},void 0,!0):(r(),s(U,{key:1},[dt(i(c[g.prop]),1)],64))],4))),128))],2))),128)),l.paginatedData.length===0?(r(),s("tr",sD,[t("td",{colspan:a.showSelection?a.columns.length+1:a.columns.length},i(a.emptyText),9,dD)])):D("",!0)])],6)],4),a.showPagination?(r(),s("div",lD,[t("div",uD,i(l.gettext("\u663E\u793A"))+" "+i(l.startItem)+" "+i(l.gettext("\u5230"))+" "+i(l.endItem)+" "+i(l.gettext("\u6761"))+"\uFF0C"+i(l.gettext("\u5171"))+" "+i(l.total)+" "+i(l.gettext("\u6761")),1),t("div",cD,[t("button",{disabled:a.currentPage===1,onClick:n[2]||(n[2]=c=>l.changePage(a.currentPage-1))},i(l.gettext("\u4E0A\u4E00\u9875")),9,pD),(r(!0),s(U,null,tt(l.visiblePages,c=>(r(),s("button",{key:c,class:lt({active:c===a.currentPage}),onClick:k=>l.changePage(c)},i(c),11,fD))),128)),t("button",{disabled:a.currentPage===l.totalPages,onClick:n[3]||(n[3]=c=>l.changePage(a.currentPage+1))},i(l.gettext("\u4E0B\u4E00\u9875")),9,mD)])])):D("",!0)])}var Ue=N(aD,[["render",gD],["__scopeId","data-v-6c49427e"]]);const uo=o=>(ut("data-v-9eb77922"),o=o(),ct(),o),vD={style:{display:"flex","align-items":"center"}},bD={class:"search_box"},hD={class:"search_container"},_D={class:"search_input_wrapper"},xD=["onKeyup","placeholder"],wD=uo(()=>t("path",{d:"M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},null,-1)),kD=[wD],yD=uo(()=>t("svg",{class:"refresh_icon",viewBox:"0 0 24 24",width:"26",height:"26"},[t("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})],-1)),FD=[yD],ED=I({props:{showBatchDelete:{type:Boolean,default:!0},showAdd:{type:Boolean,default:!0}},emits:["refresh","batch-delete","search","handleAdd"],setup(o,{emit:n}){const a=o,{$gettext:l}=J(),u=E(""),d=E(!1),c=E(a.showBatchDelete),k=E(a.showAdd),g=()=>{n("refresh",{data:"\u8FD9\u662F\u5B50\u7EC4\u4EF6\u7684\u6570\u636E"})},p=()=>{n("search",String(u.value))},m=()=>{n("batch-delete",{data:"\u8FD9\u662F\u5B50\u7EC4\u4EF6\u7684\u6570\u636E"})},v=()=>{n("handleAdd")};return(b,y)=>(r(),s("div",vD,[k.value?(r(),s("button",{key:0,class:"del-button add-button--danger",style:{},onClick:v},[t("span",null,i(e(l)("\u6DFB\u52A0")),1)])):D("",!0),c.value?(r(),s("button",{key:1,class:"del-button del-button--danger",onClick:m},[t("span",null,i(e(l)("\u6279\u91CF\u5220\u9664")),1)])):D("",!0),t("div",bD,[t("div",hD,[t("div",_D,[O(t("input",{type:"text",onKeyup:Bo(p,["enter"]),"onUpdate:modelValue":y[0]||(y[0]=f=>u.value=f),class:"search_input",placeholder:e(l)("\u8BF7\u8F93\u5165\u540D\u79F0/IP/MAC\u2026")},null,40,xD),[[at,u.value,void 0,{trim:!0}]]),t("svg",{class:"search_icon",viewBox:"0 0 24 24",width:"24",height:"24",onClick:p},kD)]),t("button",{class:lt(["refresh_button",{rotate:d.value}]),onClick:g},FD,2)])])]))}});var ga=N(ED,[["__scopeId","data-v-9eb77922"]]);const $D={class:"flow"},CD={class:"flow-data"},DD={key:0},BD={key:1},YD=I({props:{ipParam:{type:String}},setup(o){const n=o,{$gettext:a}=J();Xe([Ma,La,Oa,ta,ea,Na]);const l=E(n.ipParam),u=E(),d=w=>{var _;const h=(_=u.value)==null?void 0:_[w];return!h||h.startTime==0?"":v(h.startTime*1e3)+"-"+v(h.endTime*1e3)},c=Q(()=>{var h;let w=[];return(h=u.value)==null||h.forEach(_=>{w.push({value:_.uploadSpeed})}),w}),k=Q(()=>{var h;let w=[];return(h=u.value)==null||h.forEach(_=>{w.push({value:_.downloadSpeed})}),w}),g=Q(()=>{var h;let w="";if(u.value){let _=((h=u.value)==null?void 0:h.length)||0;if(_>0){let x=u.value[_-1];w=b(x.uploadSpeed)+"/s"}}return w}),p=Q(()=>{var h;let w="";if(u.value){let _=((h=u.value)==null?void 0:h.length)||0;if(_>0){let x=u.value[_-1];w=b(x.downloadSpeed)+"/s"}}return w}),m=()=>L(this,null,function*(){var w;try{const h=yield G.DeviceMangement.speedsForOneDevice.POST({ip:l.value});if(h.data&&(w=h.data.result)!=null&&w.items){const _=h.data.result.slots||10;if(h.data.result.items.length<_){let x=h.data.result.items;for(;x.length<_;)x=[{downloadSpeed:0,endTime:0,startTime:0,uploadSpeed:0}].concat(x);u.value=x}else h.data.result.items.length>_?u.value=h.data.result.items.slice(_-h.data.result.items.length):u.value=h.data.result.items}}catch(h){console.log(h)}}),v=Mt.dateForm,b=Mt.byteToSize,y=E();let f=null;const F=w=>{const h=Ha();return f=aa(w,h?"dark":"light"),f.setOption({animation:!1,backgroundColor:h?"#88888822":"#fff",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:_=>{if(Array.isArray(_)){let x="";_.length>0&&(x=d(_[0].axisValue));for(let C=0;C<_.length;C++)x=`${x}<br>${_[C].seriesName}: ${b(_[C].value)}/s`;return x.toString()}else{const x=_;return`${d(x.axisValue)}<br>${x.seriesName}: ${b(x.value)}/s`}}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{color:["#999"]},show:!1},name:"",show:!1,nameGap:0,nameTextStyle:{height:0,lineHeight:0,padding:0}},title:{text:a("\u6D41\u91CF\u7EDF\u8BA1"),textStyle:{fontSize:12,color:h?"#cccccc":"rgba(0, 0, 0, 0.6)"},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(_,x){return`${b(_)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:a("\u4E0B\u8F7D"),data:k.value,type:"line",symbol:"none",showSymbol:!1,symbolSize:0,smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(32, 199, 247, 1)"},{offset:1,color:"rgba(32, 199, 247, 0.1)"}],global:!1}}},{name:a("\u4E0A\u4F20"),data:c.value,type:"line",symbol:"none",showSymbol:!1,symbolSize:0,smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(85, 58, 254, 1)"},{offset:1,color:"rgba(85, 58, 254, 0.1)"}],global:!1}}}],legend:{padding:0,align:"right",top:"10px",data:[{name:a("\u4E0A\u4F20"),itemStyle:{color:"rgb(85, 58, 254)"}},{name:a("\u4E0B\u8F7D"),itemStyle:{color:"rgb(32, 199, 247)"}}],textStyle:{color:h?"#cccccc":"rgba(0, 0, 0, 0.6)"},lineStyle:{color:"#333"}},grid:{left:"2%",right:"2%",bottom:"0%",top:"10%",containLabel:!0}}),f};return Pt(()=>{setTimeout(()=>L(this,null,function*(){if(y.value){yield m();const w=F(y.value),h=y.value;w.resize({width:h.clientWidth,height:h.clientHeight}),window.addEventListener("resize",()=>{w.resize({width:h.clientWidth,height:h.clientHeight})});const _=()=>L(this,null,function*(){if(f!=null){if(!document.hidden){if(yield m(),f==null)return;w.setOption({series:[{name:a("\u4E0B\u8F7D"),data:k.value,type:"line",areaStyle:{},smooth:!0},{name:a("\u4E0A\u4F20"),data:c.value,type:"line",areaStyle:{},smooth:!0}]})}setTimeout(_,5e3)}});setTimeout(_,5e3)}}),900)}),Nt(()=>{f!=null&&(f.dispose(),f=null)}),(w,h)=>(r(),s("div",$D,[t("div",{ref_key:"el",ref:y,class:"echart"},null,512),t("div",CD,[e(g)?(r(),s("span",DD,i(e(a)("\u4E0A\u4F20:"))+" "+i(e(g)),1)):D("",!0),e(p)?(r(),s("span",BD,i(e(a)("\u4E0B\u8F7D:"))+" "+i(e(p)),1)):D("",!0)])]))}});var AD=N(YD,[["__scopeId","data-v-4a18630f"]]);const $e=o=>(ut("data-v-586a633c"),o=o(),ct(),o),SD={class:"container"},zD={style:{display:"flex","justify-content":"end"}},PD=["onClick"],TD=["onClick"],ID=["onClick"],MD={class:"custom-content"},LD={class:"IP_address"},OD={class:"item_box"},ND={class:"item_left"},VD={key:0,class:"tip"},GD=["onClick"],jD={key:1},UD={class:"item_box"},qD={class:"item_left"},RD={class:"item_box"},WD={class:"item_left"},HD=["placeholder"],JD={class:"item_box"},ZD={class:"item_left"},KD=["placeholder"],QD={class:"item_box"},XD={class:"item_left"},tB=["placeholder"],eB={class:"custom-content"},aB=$e(()=>t("div",{class:"img_box"},[t("img",{src:"https://fwindex.koolcenter.com/cover/x86_64/cover.png",alt:""})],-1)),oB={class:"item_box"},nB={class:"item_left"},iB=["placeholder"],rB={class:"item_box"},sB=$e(()=>t("div",{class:"item_left"},"MAC\uFF1A",-1)),dB=["placeholder"],lB={class:"item_box"},uB={class:"item_left"},cB={key:0,value:null,disabled:""},pB=["value"],fB={class:"item_box"},mB={class:"item_left"},gB={key:0,class:"item_box"},vB=$e(()=>t("div",{class:"item_left"},"IP\uFF1A",-1)),bB=["placeholder"],hB={class:"custom-content"},_B={class:"info-content"},xB=$e(()=>t("div",{class:"img_box"},[t("img",{src:"https://fwindex.koolcenter.com/cover/x86_64/cover.png",alt:""})],-1)),wB={style:{"margin-bottom":"16px",flex:"1"}},kB={class:"item_box"},yB={class:"item_left"},FB={class:"item_box"},EB={class:"item_left"},$B={class:"item_box"},CB=$e(()=>t("div",{class:"item_left"}," MAC\uFF1A",-1)),DB={class:"item_box"},BB={class:"item_left"},YB={class:"item_box"},AB={class:"item_left"},SB={class:"item_box"},zB={class:"item_left"},PB=I({emits:["openGloba"],setup(o,{emit:n}){const{$gettext:a}=J(),l=P=>{H.hostname=P.target.value.replace(/[\u4e00-\u9fa5\s]/g,"")},u=E(null),d=()=>{c(),A(),u.value=setInterval(A,3e3)},c=()=>{u.value&&(clearInterval(u.value),u.value=null)};Pt(()=>L(this,null,function*(){yield C(),p.value.length!==0&&d()})),Nt(()=>{c()});const k=E({});(()=>L(this,null,function*(){try{const{data:P}=yield G.DeviceMangement.globalConfigs.GET();P.result&&(k.value=P.result||{})}catch(P){}}))();const p=E([]),m=E([]),v=E(!1),b=E(!1),y=E(!1),f=Q(()=>!H.dhcpGateway),F=E([{label:"\u4E3B\u673A\u540D\u79F0",prop:"hostname"},{label:"IP\u5730\u5740",prop:"ip"},{label:"MAC\u5730\u5740",prop:"mac"},{label:"\u4E0A\u4F20\u901F\u5EA6",prop:"uploadSpeedStr"},{label:"\u4E0B\u8F7D\u901F\u5EA6",prop:"downloadSpeedStr"},{label:"\u6807\u7B7E",prop:"staticAssigned",slot:"staticAssigned"},{label:"\u64CD\u4F5C",prop:"action",slot:"action"}]),w=P=>({default:a("\u9ED8\u8BA4\u7F51\u5173"),parent:a("\u4E0A\u7EA7\u8DEF\u7531"),myself:a("\u672C\u8BBE\u5907"),bypass:a("\u65C1\u8DEF\u7531"),floatip:a("\u6D6E\u52A8\u7F51\u5173")})[P]||P,h=()=>{v.value=!1,n("openGloba")},_=P=>{var X,et;if(P==!0&&!((et=(X=k.value)==null?void 0:X.speedLimit)!=null&&et.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"))},x=E([]),C=()=>L(this,null,function*(){var X,et,rt;let P=$.Loading(a("\u52A0\u8F7D\u4E2D..."));try{const{data:kt}=yield G.DeviceMangement.listDevices.GET();kt.result&&(p.value=((X=kt.result)==null?void 0:X.devices)||[],m.value=((et=kt.result)==null?void 0:et.devices)||[],x.value=((rt=kt.result)==null?void 0:rt.dhcpTags)||[])}catch(kt){}finally{P.Close()}}),S=(P,X)=>{const et={};return P.forEach(rt=>{rt.ip&&(et[rt.ip]={downloadSpeedStr:rt.downloadSpeedStr||"0 B",uploadSpeedStr:rt.uploadSpeedStr||"0 B"})}),X.map(rt=>rt.ip&&et[rt.ip]?vt(st({},rt),{downloadSpeedStr:et[rt.ip].downloadSpeedStr,uploadSpeedStr:et[rt.ip].uploadSpeedStr}):vt(st({},rt),{downloadSpeedStr:rt.downloadSpeedStr||"0 B",uploadSpeedStr:rt.uploadSpeedStr||"0 B"}))},A=()=>L(this,null,function*(){try{const{data:P}=yield G.DeviceMangement.speedsForDevices.GET();P.result&&(m.value=S(P.result,m.value))}catch(P){}}),z=P=>/^[a-zA-Z\s]+$/.test(P)?P.toUpperCase():P,B=gt({ip:"",mac:"",uploadSpeed:100,downloadSpeed:1e3,networkAccess:!1,enabled:!1,comment:"",action:"add"}),H=gt({hostname:"",assignedIP:"",assignedMac:"",bindIP:!1,tagTitle:"",tagName:"",dhcpGateway:"",action:"add"}),M=E(""),q=E({}),T=(P,X)=>{var et,rt,kt,Tt,Ft,ne,ie,re,se,de,le,ue,ce,pe,fe,me;q.value=P,X===1?(B.ip=P.ip||"",B.mac=P.mac||"",B.uploadSpeed=((et=P==null?void 0:P.speedLimit)==null?void 0:et.uploadSpeed)||100,B.downloadSpeed=((rt=P==null?void 0:P.speedLimit)==null?void 0:rt.downloadSpeed)||1e3,B.networkAccess=!((kt=P==null?void 0:P.speedLimit)!=null&&kt.networkAccess)||!1,B.enabled=((Tt=P==null?void 0:P.speedLimit)==null?void 0:Tt.enabled)||!1,B.comment=((Ft=P==null?void 0:P.speedLimit)==null?void 0:Ft.comment)||"",B.action=((ne=P==null?void 0:P.speedLimit)==null?void 0:ne.action)||"add",v.value=!0):X===2?(H.hostname=((ie=P==null?void 0:P.staticAssigned)==null?void 0:ie.hostname)||"",H.assignedIP=((re=P==null?void 0:P.staticAssigned)==null?void 0:re.assignedIP)||"",H.assignedMac=((se=P==null?void 0:P.staticAssigned)==null?void 0:se.assignedMac)||"",H.bindIP=((de=P==null?void 0:P.staticAssigned)==null?void 0:de.bindIP)||!1,H.tagTitle=((le=P==null?void 0:P.staticAssigned)==null?void 0:le.tagTitle)||"",H.tagName=((ue=P==null?void 0:P.staticAssigned)==null?void 0:ue.tagName)||"",(ce=P==null?void 0:P.staticAssigned)!=null&&ce.dhcpGateway?(x.value.forEach(ge=>{var Et;ge.gateway===((Et=P==null?void 0:P.staticAssigned)==null?void 0:Et.dhcpGateway)&&(j.value=ge)}),H.dhcpGateway=((fe=P==null?void 0:P.staticAssigned)==null?void 0:fe.dhcpGateway)||x.value[0]||""):(j.value=x.value[0]||null,H.dhcpGateway=((pe=j.value)==null?void 0:pe.gateway)||""),H.action=((me=P==null?void 0:P.staticAssigned)==null?void 0:me.action)||"add",b.value=!0):X===3&&(M.value="",M.value=P.ip,y.value=!0)},j=E(x.value[0]||null),R=()=>{var P,X,et;j.value?(H.dhcpGateway=((P=j.value)==null?void 0:P.gateway)||"",H.tagName=((X=j.value)==null?void 0:X.tagName)||"",H.tagTitle=((et=j.value)==null?void 0:et.tagTitle)||""):(H.dhcpGateway="",H.tagName="",H.tagTitle="")},it=(P,X)=>X?{ip:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,mac:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$|^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/}[P].test(X.trim()):!1,ot=P=>/^([1-9]\d*(\.\d+)?|0\.\d*[1-9]\d*)$/.test(P.toString()),bt=()=>L(this,null,function*(){if(!H.hostname)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u540D\u79F0")}`);if(!H.assignedMac)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("MAC")}`);if(!it("mac",H.assignedMac))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684MAC\u5730\u5740")}`);if(!H.dhcpGateway)return $.Warning(`${a("\u8BF7\u9009\u62E9")}${a("\u7F51\u5173")}`);if(H.bindIP){if(!H.assignedIP)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("IP")}`);if(!it("ip",H.assignedIP))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`)}else H.assignedIP="";let P=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const{data:X}=yield G.DeviceMangement.staticDeviceConfig.POST(H);JSON.stringify(X)==="{}"?(b.value=!1,yt(),nt(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((X==null?void 0:X.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(X){$.Warning(`${X==null?void 0:X.error} || ${X==null?void 0:X.message}`)}finally{P.Close()}}),Dt=()=>L(this,null,function*(){var X,et;if(!((et=(X=k.value)==null?void 0:X.speedLimit)!=null&&et.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"));if(B.networkAccess)B.downloadSpeed=0,B.uploadSpeed=0;else{if(!B.downloadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0B\u8F7D\u901F\u5EA6")}`);if(!ot(B.downloadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0B\u8F7D\u901F\u5EA6")}`);if(!B.uploadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0A\u4F20\u901F\u5EA6")}`);if(!ot(B.uploadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0A\u4F20\u901F\u5EA6")}`);B.downloadSpeed=Number(B.downloadSpeed),B.uploadSpeed=Number(B.uploadSpeed)}let P=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{B.networkAccess=!B.networkAccess;const{data:rt}=yield G.DeviceMangement.speedLimitConfig.POST(B);JSON.stringify(rt)==="{}"?(v.value=!1,yt(),nt(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((rt==null?void 0:rt.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(rt){$.Warning(`${rt==null?void 0:rt.error} || ${rt==null?void 0:rt.message}`)}finally{B.downloadSpeed=1e3,B.uploadSpeed=100,P.Close()}}),yt=()=>{q.value={},j.value=x.value[0]||null,H.hostname="",H.assignedIP="",H.assignedMac="",H.bindIP=!1,H.dhcpGateway="",H.tagName="",H.tagTitle="",H.action="add",B.ip="",B.mac="",B.uploadSpeed=100,B.downloadSpeed=1e3,B.networkAccess=!1,B.comment="",B.action="add"},Vt=E([]),Re=E(null),nt=()=>L(this,null,function*(){p.value=[],yield C()}),K=P=>p.value.filter(X=>{const et=X.ip.includes(P),rt=X.mac.toLowerCase().includes(P.toLowerCase());return et||rt}),At=P=>{P===""&&(m.value=p.value),m.value=K(P)},mt=()=>{if(Vt.value.length===0)return $.Warning(a("\u8BF7\u52FE\u9009\u8981\u5220\u9664\u7684\u6570\u636E")+" !")};return(P,X)=>(r(),s("div",SD,[t("div",zD,[Y(ga,{onRefresh:nt,showAdd:!1,showBatchDelete:!1,ref_key:"searchRef",ref:Re,onBatchDelete:mt,onSearch:At},null,512)]),t("div",null,[Y(Ue,{data:m.value,columns:F.value,showPagination:!1},{action:V(({row:et})=>[t("span",{style:{color:"#553AFE",cursor:"pointer"},onClick:rt=>T(et,2)},i(e(a)("\u9759\u6001\u5206\u914D")),9,PD),t("span",{style:{color:"#553AFE",cursor:"pointer",margin:"0 8px"},onClick:rt=>T(et,1)},i(e(a)("\u9650\u901F\u914D\u7F6E")),9,TD),t("span",{style:{color:"#553AFE",margin:"0 8px",cursor:"pointer"},onClick:rt=>T(et,3)},i(e(a)("\u8BE6\u60C5")),9,ID)]),staticAssigned:V(({row:et})=>{var rt,kt;return[t("span",null,i(w((rt=et==null?void 0:et.staticAssigned)==null?void 0:rt.tagTitle)||w((kt=et==null?void 0:et.staticAssigned)==null?void 0:kt.tagName)||"-"),1)]}),_:1},8,["data","columns"])]),Y(Xt,{modelValue:v.value,"onUpdate:modelValue":X[6]||(X[6]=et=>v.value=et),title:"\u9650\u901F\u914D\u7F6E","show-close":!0,onConfirm:Dt,onCancel:yt},{default:V(()=>{var et,rt,kt,Tt;return[t("div",MD,[t("div",LD,"IP: "+i(q.value.ip),1),t("div",OD,[t("div",ND,i(e(a)("\u5BF9\u8BBE\u5907\u5F00\u542F\u9650\u901F"))+"\uFF1A",1),Y(Ot,{modelValue:e(B).enabled,"onUpdate:modelValue":X[0]||(X[0]=Ft=>e(B).enabled=Ft),disabled:!((rt=(et=k.value)==null?void 0:et.speedLimit)!=null&&rt.enabled),onBeforeChange:_},null,8,["modelValue","disabled"])]),(Tt=(kt=k.value)==null?void 0:kt.speedLimit)!=null&&Tt.enabled?D("",!0):(r(),s("div",VD,[t("a",{href:"",onClick:ft(h,["prevent"])},i(e(a)("\u70B9\u6211\u8DF3\u8F6C\u5168\u5C40\u914D\u7F6E")),9,GD)])),e(B).enabled?(r(),s("div",jD,[t("div",UD,[t("div",qD,i(e(a)("\u7981\u6B62\u8BE5\u8BBE\u5907\u8BBF\u95EE\u7F51\u7EDC"))+"\uFF1A",1),Y(Ot,{modelValue:e(B).networkAccess,"onUpdate:modelValue":X[1]||(X[1]=Ft=>e(B).networkAccess=Ft),onChange:X[2]||(X[2]=()=>{})},null,8,["modelValue"])]),e(B).networkAccess?D("",!0):(r(),s(U,{key:0},[t("div",RD,[t("div",WD,i(e(a)("\u4E0B\u8F7D\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":X[3]||(X[3]=Ft=>e(B).downloadSpeed=Ft),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,HD),[[at,e(B).downloadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",JD,[t("div",ZD,i(e(a)("\u4E0A\u4F20\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":X[4]||(X[4]=Ft=>e(B).uploadSpeed=Ft),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,KD),[[at,e(B).uploadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",QD,[t("div",XD,i(e(a)("\u6CE8\u89E3"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":X[5]||(X[5]=Ft=>e(B).comment=Ft),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,tB),[[at,e(B).comment,void 0,{trim:!0}]])])],64))])):D("",!0)])]}),_:1},8,["modelValue"]),Y(Xt,{modelValue:b.value,"onUpdate:modelValue":X[12]||(X[12]=et=>b.value=et),title:"\u9759\u6001\u5206\u914D",width:"550px","show-close":!0,onConfirm:bt,onCancel:yt},{default:V(()=>[t("div",eB,[aB,t("div",oB,[t("div",nB,i(e(a)("\u540D\u79F0"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text",onInput:l,"onUpdate:modelValue":X[7]||(X[7]=et=>e(H).hostname=et),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,40,iB),[[at,e(H).hostname,void 0,{trim:!0}]])]),t("div",rB,[sB,O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":X[8]||(X[8]=et=>e(H).assignedMac=et),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,dB),[[at,e(H).assignedMac,void 0,{trim:!0}]])]),t("div",lB,[t("div",uB,i(e(a)("\u7F51\u5173"))+"\uFF1A",1),O(t("select",{"onUpdate:modelValue":X[9]||(X[9]=et=>j.value=et),onChange:R},[e(f)?(r(),s("option",cB,i(e(a)("\u8BF7\u9009\u62E9")),1)):D("",!0),(r(!0),s(U,null,tt(x.value,et=>(r(),s("option",{value:et},i(et.gateway)+"("+i(et.tagTitle?w(et.tagTitle):et.tagName?et.tagName:"-")+") ",9,pB))),256))],544),[[pt,j.value]])]),t("div",fB,[t("div",mB,i(e(a)("MAC\u5730\u5740\u4E0EIP\u7ED1\u5B9A"))+"\uFF1A",1),Y(Ot,{modelValue:e(H).bindIP,"onUpdate:modelValue":X[10]||(X[10]=et=>e(H).bindIP=et)},null,8,["modelValue"])]),e(H).bindIP?(r(),s("div",gB,[vB,O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":X[11]||(X[11]=et=>e(H).assignedIP=et),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,bB),[[at,e(H).assignedIP,void 0,{trim:!0}]])])):D("",!0)])]),_:1},8,["modelValue"]),Y(Xt,{modelValue:y.value,"onUpdate:modelValue":X[13]||(X[13]=et=>y.value=et),title:"\u8BE6\u60C5",width:"550px",footerShow:!1,"show-close":!0,onCancel:yt},{default:V(()=>{var et,rt,kt,Tt,Ft;return[t("div",hB,[t("div",_B,[xB,t("div",wB,[t("div",kB,[t("div",yB,i(e(a)("\u540D\u79F0"))+"\uFF1A",1),dt(" "+i(q.value.hostname||"-"),1)]),t("div",FB,[t("div",EB,i(e(a)("IP\u5730\u5740"))+"\uFF1A",1),dt(" "+i(q.value.ip),1)]),t("div",$B,[CB,dt(" "+i(q.value.mac),1)]),t("div",DB,[t("div",BB,i(e(a)("\u7F51\u5173"))+"\uFF1A",1),dt(" "+i(((et=q.value)==null?void 0:et.staticAssigned.dhcpGateway)||"-"),1)]),t("div",YB,[t("div",AB,i(e(a)("\u63A5\u53E3"))+"\uFF1A",1),dt(" "+i(z(q.value.intr)||"-"),1)]),t("div",SB,[t("div",zB,i(e(a)("\u6807\u7B7E"))+"\uFF1A",1),dt(" "+i(((kt=(rt=q.value)==null?void 0:rt.staticAssigned)==null?void 0:kt.tagTitle)||((Ft=(Tt=q.value)==null?void 0:Tt.staticAssigned)==null?void 0:Ft.tagName)||"-"),1)])])]),M.value?(r(),Z(AD,{key:0,ipParam:M.value},null,8,["ipParam"])):D("",!0)])]}),_:1},8,["modelValue"])]))}});var TB=N(PB,[["__scopeId","data-v-586a633c"]]);const va=o=>(ut("data-v-b2212e7c"),o=o(),ct(),o),IB={class:"container"},MB={style:{display:"flex","justify-content":"end"}},LB=["onClick"],OB=["onClick"],NB={class:"custom-content"},VB=va(()=>t("div",{class:"img_box"},[t("img",{src:"https://fwindex.koolcenter.com/cover/x86_64/cover.png",alt:""})],-1)),GB={class:"item_box"},jB={class:"item_left"},UB=["placeholder"],qB={class:"item_box"},RB=va(()=>t("div",{class:"item_left"},"MAC\uFF1A",-1)),WB=["placeholder"],HB={class:"item_box"},JB={class:"item_left"},ZB={key:0,value:null,disabled:""},KB=["value"],QB={class:"item_box"},XB={class:"item_left"},tY={key:0,class:"item_box"},eY=va(()=>t("div",{class:"item_left"},"IP\uFF1A",-1)),aY=["placeholder"],oY=I({setup(o){const{$gettext:n}=J(),a=E([]);(()=>L(this,null,function*(){var T;try{const{data:j}=yield G.DeviceMangement.globalConfigs.GET();j.result&&(a.value=((T=j.result)==null?void 0:T.dhcpTags)||[])}catch(j){}}))();const u=E([]),d=E([]),c=E(!1),k=E([{label:"\u4E3B\u673A\u540D\u79F0",prop:"hostname"},{label:"IP\u5730\u5740",prop:"assignedIP"},{label:"MAC\u5730\u5740",prop:"assignedMac"},{label:"\u9759\u6001IP\u7ED1\u5B9A",prop:"bindIP",slot:"bindIP"},{label:"\u6807\u7B7E",prop:"tagTitle",slot:"tagTitle"},{label:"\u64CD\u4F5C",prop:"action",slot:"action"}]),g=T=>({default:n("\u9ED8\u8BA4\u7F51\u5173"),parent:n("\u4E0A\u7EA7\u8DEF\u7531"),myself:n("\u672C\u8BBE\u5907"),bypass:n("\u65C1\u8DEF\u7531"),floatip:n("\u6D6E\u52A8\u7F51\u5173")})[T]||T,p=T=>{B.hostname=T.target.value.replace(/[\u4e00-\u9fa5\s]/g,"")},m=()=>L(this,null,function*(){let T=$.Loading(n("\u52A0\u8F7D\u4E2D..."));try{const{data:j}=yield G.DeviceMangement.listStaticDevices.GET();j.result&&(u.value=j.result||[],d.value=j.result||[])}catch(j){}finally{T.Close()}});m();const v=E(!0),b=E([]),y=T=>{b.value=T},f=()=>L(this,null,function*(){u.value=[];let T=$.Loading(n("\u52A0\u8F7D\u4E2D..."));yield m(),T.Close()}),F=T=>u.value.filter(j=>{const R=j.assignedIP.includes(T),it=j.assignedMac.toLowerCase().includes(T.toLowerCase());return R||it}),w=T=>{T===""&&(d.value=u.value),d.value=F(T)},h=T=>{var j;B.hostname=(T==null?void 0:T.hostname)||"",B.assignedIP=(T==null?void 0:T.assignedIP)||"",B.assignedMac=(T==null?void 0:T.assignedMac)||"",B.bindIP=(T==null?void 0:T.bindIP)||!1,B.tagTitle=(T==null?void 0:T.tagTitle)||"",B.tagName=(T==null?void 0:T.tagName)||"",T!=null&&T.dhcpGateway?(a.value.forEach(R=>{R.gateway===(T==null?void 0:T.dhcpGateway)&&(A.value=R)}),B.dhcpGateway=(T==null?void 0:T.dhcpGateway)||a.value[0]||""):(A.value=a.value[0]||null,B.dhcpGateway=((j=A.value)==null?void 0:j.gateway)||""),B.action=(T==null?void 0:T.action)||"add",c.value=!0},_=T=>L(this,null,function*(){if(confirm(n("\u6E29\u99A8\u63D0\u793A\uFF1A\u5220\u9664\u8BBE\u5907\u7684\u9759\u6001\u5206\u914D\u53EF\u80FD\u5F71\u54CD\u6B64\u8BBE\u5907\u7684\u8054\u7F51\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01"))){let j={hostname:T.hostname||"",assignedIP:T.assignedIP||"",assignedMac:T.assignedMac||"",tagTitle:T.tagTitle||"",bindIP:T.bindIP||!1,tagName:T.tagName||"",dhcpGateway:T.dhcpGateway||"",action:"delete"};x(j,1)}}),x=(T,j)=>L(this,null,function*(){let R=$.Loading(n("\u5220\u9664\u4E2D..."));try{const{data:it}=yield G.DeviceMangement.staticDeviceConfig.POST(T);return j==1&&(JSON.stringify(it)==="{}"?$.Success("\u5220\u9664\u6210\u529F !"):$.Success((it==null?void 0:it.error)||"\u5220\u9664\u5931\u8D25\uFF01"),m()),it}catch(it){}finally{R.Close()}}),C=()=>L(this,null,function*(){if(b.value.length===0)return $.Warning(n("\u8BF7\u52FE\u9009\u8981\u5220\u9664\u7684\u6570\u636E")+" !");if(confirm(n("\u6E29\u99A8\u63D0\u793A\uFF1A\u5220\u9664\u8BBE\u5907\u7684\u9759\u6001\u5206\u914D\u53EF\u80FD\u5F71\u54CD\u6B64\u8BBE\u5907\u7684\u8054\u7F51\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")))try{const T=b.value.map(j=>{const R={hostname:j.hostname||"",assignedIP:j.assignedIP||"",assignedMac:j.assignedMac||"",tagTitle:j.tagTitle||"",bindIP:j.bindIP||!1,tagName:j.tagName||"",dhcpGateway:j.dhcpGateway||"",action:"delete"};return x(R)});yield Promise.all(T),$.Success(n("\u6240\u6709\u5220\u9664\u64CD\u4F5C\u5DF2\u5B8C\u6210")),m()}catch(T){}}),S=Q(()=>!B.dhcpGateway),A=E(null),z=()=>{var T,j,R;A.value?(B.dhcpGateway=((T=A.value)==null?void 0:T.gateway)||"",B.tagName=((j=A.value)==null?void 0:j.tagName)||"",B.tagTitle=((R=A.value)==null?void 0:R.tagTitle)||""):(B.dhcpGateway="",B.tagName="",B.tagTitle="")},B=gt({hostname:"",assignedIP:"",assignedMac:"",bindIP:!1,tagTitle:"",tagName:"",dhcpGateway:"",action:"add"}),H=(T,j)=>j?{ip:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,mac:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$|^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/}[T].test(j.trim()):!1,M=()=>L(this,null,function*(){if(!B.assignedMac)return $.Warning(`${n("\u8BF7\u8F93\u5165")}${n("MAC")}`);if(!H("mac",B.assignedMac))return $.Warning(`${n("\u8BF7\u8F93\u5165\u6B63\u786E\u7684MAC\u5730\u5740")}`);if(!B.dhcpGateway)return $.Warning(`${n("\u8BF7\u9009\u62E9")}${n("\u7F51\u5173")}`);if(B.bindIP){if(!B.assignedIP)return $.Warning(`${n("\u8BF7\u8F93\u5165")}${n("IP")}`);if(!H("ip",B.assignedIP))return $.Warning(`${n("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`)}else B.assignedIP="";let T=$.Loading(n("\u4FDD\u5B58\u4E2D..."));try{const{data:j}=yield G.DeviceMangement.staticDeviceConfig.POST(B);JSON.stringify(j)==="{}"?(c.value=!1,q(),f(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((j==null?void 0:j.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(j){$.Warning(`${j==null?void 0:j.error} || ${j==null?void 0:j.message}`)}finally{T.Close()}}),q=()=>{A.value=null,B.hostname="",B.assignedIP="",B.assignedMac="",B.bindIP=!1,B.dhcpGateway="",B.tagName="",B.tagTitle="",B.action="add"};return(T,j)=>(r(),s("div",IB,[t("div",MB,[Y(ga,{onHandleAdd:j[0]||(j[0]=R=>c.value=!0),onRefresh:f,onBatchDelete:C,onSearch:w})]),t("div",null,[Y(Ue,{data:d.value,columns:k.value,rowKey:"assignedMac",showSelection:v.value,showPagination:!1,onSelectionChange:y},{action:V(({row:R})=>[t("button",{class:"del-button edit-button",onClick:it=>h(R)},[t("span",null,i(e(n)("\u7F16\u8F91")),1)],8,LB),t("button",{class:"del-button del-button--danger",onClick:it=>_(R)},[t("span",null,i(e(n)("\u5220\u9664")),1)],8,OB)]),tagTitle:V(({row:R})=>[t("span",null,i(g(R==null?void 0:R.tagTitle)||g(R==null?void 0:R.tagName)||"-"),1)]),bindIP:V(({row:R})=>[t("span",null,i(R!=null&&R.bindIP?e(n)("\u662F"):e(n)("\u5426")),1)]),_:1},8,["data","columns","showSelection"])]),Y(Xt,{modelValue:c.value,"onUpdate:modelValue":j[6]||(j[6]=R=>c.value=R),title:"\u9759\u6001\u5206\u914D",width:"550px","show-close":!0,onConfirm:M,onCancel:q},{default:V(()=>[t("div",NB,[VB,t("div",GB,[t("div",jB,i(e(n)("\u540D\u79F0"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text",onInput:p,"onUpdate:modelValue":j[1]||(j[1]=R=>e(B).hostname=R),placeholder:e(n)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,40,UB),[[at,e(B).hostname,void 0,{trim:!0}]])]),t("div",qB,[RB,O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":j[2]||(j[2]=R=>e(B).assignedMac=R),placeholder:e(n)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,WB),[[at,e(B).assignedMac,void 0,{trim:!0}]])]),t("div",HB,[t("div",JB,i(e(n)("\u7F51\u5173"))+"\uFF1A",1),O(t("select",{"onUpdate:modelValue":j[3]||(j[3]=R=>A.value=R),onChange:z},[e(S)?(r(),s("option",ZB,i(e(n)("\u8BF7\u9009\u62E9")),1)):D("",!0),(r(!0),s(U,null,tt(a.value,R=>(r(),s("option",{value:R},i(R.gateway)+"("+i(R.tagTitle?g(R.tagTitle):R.tagName?R.tagName:"-")+") ",9,KB))),256))],544),[[pt,A.value]])]),t("div",QB,[t("div",XB,i(e(n)("MAC\u5730\u5740\u4E0EIP\u7ED1\u5B9A"))+"\uFF1A",1),Y(Ot,{modelValue:e(B).bindIP,"onUpdate:modelValue":j[4]||(j[4]=R=>e(B).bindIP=R)},null,8,["modelValue"])]),e(B).bindIP?(r(),s("div",tY,[eY,O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":j[5]||(j[5]=R=>e(B).assignedIP=R),placeholder:e(n)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,aY),[[at,e(B).assignedIP,void 0,{trim:!0}]])])):D("",!0)])]),_:1},8,["modelValue"])]))}});var nY=N(oY,[["__scopeId","data-v-b2212e7c"]]);const iY={class:"container"},rY={style:{display:"flex","justify-content":"end"}},sY=["onClick"],dY={class:"custom-content"},lY={class:"item_box"},uY={class:"item_left"},cY={class:"item_box"},pY={class:"item_left"},fY=["placeholder"],mY={class:"item_box"},gY={class:"item_left"},vY=["placeholder"],bY={key:0,class:"tip"},hY=["onClick"],_Y={key:1},xY={class:"item_box"},wY={class:"item_left"},kY={class:"item_box"},yY={class:"item_left"},FY=["placeholder"],EY={class:"item_box"},$Y={class:"item_left"},CY=["placeholder"],DY={class:"item_box"},BY={class:"item_left"},YY=["placeholder"],AY=I({emits:["openGloba"],setup(o,{emit:n}){const{$gettext:a}=J(),l=E({});(()=>L(this,null,function*(){try{const{data:M}=yield G.DeviceMangement.globalConfigs.GET();M.result&&(l.value=M.result||{})}catch(M){}}))();const d=E([]),c=E([]),k=E(!1),g=E([{label:"\u4E3B\u673A\u540D\u79F0",prop:"hostname"},{label:"IP\u5730\u5740",prop:"ip"},{label:"MAC\u5730\u5740",prop:"mac"},{label:"\u7981\u6B62\u7F51\u7EDC\u8BBF\u95EE",prop:"enabled",slot:"enabled"},{label:"\u4E0A\u4F20\u9650\u901F\uFF08Mbit/s\uFF09",prop:"uploadSpeed",slot:"uploadSpeed"},{label:"\u4E0B\u8F7D\u9650\u901F\uFF08Mbit/s\uFF09",prop:"downloadSpeed",slot:"downloadSpeed"},{label:"\u6CE8\u89E3",prop:"comment"},{label:"\u64CD\u4F5C",prop:"action",slot:"action"}]),p=()=>L(this,null,function*(){let M=$.Loading(a("\u52A0\u8F7D\u4E2D..."));try{const{data:q}=yield G.DeviceMangement.listSpeedLimitedDevices.GET();q.result&&(d.value=q.result||[],c.value=q.result||[])}catch(q){}finally{M.Close()}});p();const m=E(!0),v=E([]),b=M=>{v.value=M},y=()=>L(this,null,function*(){d.value=[];let M=$.Loading(a("\u52A0\u8F7D\u4E2D..."));yield p(),M.Close()}),f=M=>d.value.filter(q=>{const T=q.ip.includes(M),j=q.mac.toLowerCase().includes(M.toLowerCase());return T||j}),F=M=>{M===""&&(c.value=d.value),c.value=f(M)},w=M=>L(this,null,function*(){if(confirm(a("\u6E29\u99A8\u63D0\u793A\uFF1A\u5220\u9664\u8BBE\u5907\u7684\u9650\u901F\u914D\u7F6E\u53EF\u80FD\u5F71\u54CD\u6B64\u8BBE\u5907\u7684\u5E26\u5BBD\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01"))){let q={ip:M.ip||"",mac:M.mac||"",uploadSpeed:M.uploadSpeed||0,downloadSpeed:M.downloadSpeed||0,networkAccess:M.networkAccess||!1,comment:"",action:"delete"};h(q,1)}}),h=(M,q)=>L(this,null,function*(){let T=$.Loading(a("\u5220\u9664\u4E2D..."));try{const{data:j}=yield G.DeviceMangement.speedLimitConfig.POST(M);return q==1&&(JSON.stringify(j)==="{}"?$.Success("\u5220\u9664\u6210\u529F !"):$.Success((j==null?void 0:j.error)||"\u5220\u9664\u5931\u8D25\uFF01"),p()),j}catch(j){}finally{T.Close()}}),_=()=>L(this,null,function*(){if(v.value.length===0)return $.Warning(a("\u8BF7\u52FE\u9009\u8981\u5220\u9664\u7684\u6570\u636E")+" !");if(confirm(a("\u6E29\u99A8\u63D0\u793A\uFF1A\u5220\u9664\u8BBE\u5907\u7684\u9650\u901F\u914D\u7F6E\u53EF\u80FD\u5F71\u54CD\u6B64\u8BBE\u5907\u7684\u5E26\u5BBD\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")))try{const M=v.value.map(q=>{const T={ip:q.ip||"",mac:q.mac||"",uploadSpeed:q.uploadSpeed||0,downloadSpeed:q.downloadSpeed||0,networkAccess:q.networkAccess||!1,comment:"",action:"delete"};return h(T)});yield Promise.all(M),$.Success(a("\u6240\u6709\u5220\u9664\u64CD\u4F5C\u5DF2\u5B8C\u6210")),p()}catch(M){}}),x=()=>{k.value=!1,n("openGloba")},C=M=>{var q,T;if(M==!0&&!((T=(q=l.value)==null?void 0:q.speedLimit)!=null&&T.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"))},S=gt({ip:"",mac:"",uploadSpeed:100,downloadSpeed:1e3,networkAccess:!1,enabled:!1,comment:"",action:"add"}),A=M=>/^([1-9]\d*(\.\d+)?|0\.\d*[1-9]\d*)$/.test(M.toString()),z=(M,q)=>q?{ip:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,mac:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$|^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/}[M].test(q.trim()):!1,B=()=>L(this,null,function*(){var q,T;if(!((T=(q=l.value)==null?void 0:q.speedLimit)!=null&&T.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"));if(!S.ip)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("IP")}`);if(!z("ip",S.ip))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`);if(!S.mac)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("MAC")}`);if(!z("mac",S.mac))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684MAC\u5730\u5740")}`);if(S.networkAccess)S.downloadSpeed=0,S.uploadSpeed=0;else{if(!S.downloadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0B\u8F7D\u901F\u5EA6")}`);if(!A(S.downloadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0B\u8F7D\u901F\u5EA6")}`);if(!S.uploadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0A\u4F20\u901F\u5EA6")}`);if(!A(S.uploadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0A\u4F20\u901F\u5EA6")}`);S.downloadSpeed=Number(S.downloadSpeed),S.uploadSpeed=Number(S.uploadSpeed)}let M=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{S.networkAccess=!S.networkAccess;const{data:j}=yield G.DeviceMangement.speedLimitConfig.POST(S);JSON.stringify(j)==="{}"?(y(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((j==null?void 0:j.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01"),k.value=!1,H()}catch(j){$.Warning(`${j==null?void 0:j.error} || ${j==null?void 0:j.message}`)}finally{S.downloadSpeed=1e3,S.uploadSpeed=100,M.Close()}}),H=()=>{S.ip="",S.mac="",S.uploadSpeed=100,S.downloadSpeed=1e3,S.networkAccess=!1,S.comment="",S.action="add"};return(M,q)=>(r(),s("div",iY,[t("div",rY,[Y(ga,{onHandleAdd:q[0]||(q[0]=T=>k.value=!0),onRefresh:y,onBatchDelete:_,onSearch:F})]),t("div",null,[Y(Ue,{data:c.value,columns:g.value,rowKey:"mac",showSelection:m.value,showPagination:!1,onSelectionChange:b},{action:V(({row:T})=>[t("button",{class:"del-button del-button--danger",onClick:j=>w(T)},[t("span",null,i(e(a)("\u5220\u9664")),1)],8,sY)]),enabled:V(({row:T})=>[t("span",null,i(T!=null&&T.enabled?e(a)("\u662F"):e(a)("\u5426")),1)]),uploadSpeed:V(({row:T})=>[t("span",null,i((T==null?void 0:T.uploadSpeed)||"-")+" "+i(T!=null&&T.uploadSpeed?"Mbit/s":""),1)]),downloadSpeed:V(({row:T})=>[t("span",null,i((T==null?void 0:T.downloadSpeed)||"-")+" "+i(T!=null&&T.downloadSpeed?"Mbit/s":""),1)]),_:1},8,["data","columns","showSelection"])]),Y(Xt,{modelValue:k.value,"onUpdate:modelValue":q[9]||(q[9]=T=>k.value=T),title:"\u9650\u901F\u914D\u7F6E","show-close":!0,onConfirm:B,onCancel:H},{default:V(()=>{var T,j,R,it;return[t("div",dY,[t("div",lY,[t("div",uY,i(e(a)("\u5BF9\u8BBE\u5907\u5F00\u542F\u9650\u901F"))+"\uFF1A",1),Y(Ot,{modelValue:e(S).enabled,"onUpdate:modelValue":q[1]||(q[1]=ot=>e(S).enabled=ot),disabled:!((j=(T=l.value)==null?void 0:T.speedLimit)!=null&&j.enabled),onBeforeChange:C},null,8,["modelValue","disabled"])]),t("div",cY,[t("div",pY,i(e(a)("IP\u5730\u5740"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":q[2]||(q[2]=ot=>e(S).ip=ot),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,fY),[[at,e(S).ip,void 0,{trim:!0}]])]),t("div",mY,[t("div",gY,i(e(a)("MAC\u5730\u5740"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":q[3]||(q[3]=ot=>e(S).mac=ot),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,vY),[[at,e(S).mac,void 0,{trim:!0}]])]),(it=(R=l.value)==null?void 0:R.speedLimit)!=null&&it.enabled?D("",!0):(r(),s("div",bY,[t("a",{href:"",onClick:ft(x,["prevent"])},i(e(a)("\u70B9\u6211\u8DF3\u8F6C\u5168\u5C40\u914D\u7F6E")),9,hY)])),e(S).enabled?(r(),s("div",_Y,[t("div",xY,[t("div",wY,i(e(a)("\u7981\u6B62\u8BE5\u8BBE\u5907\u8BBF\u95EE\u7F51\u7EDC"))+"\uFF1A",1),Y(Ot,{modelValue:e(S).networkAccess,"onUpdate:modelValue":q[4]||(q[4]=ot=>e(S).networkAccess=ot),onChange:q[5]||(q[5]=()=>{})},null,8,["modelValue"])]),e(S).networkAccess?D("",!0):(r(),s(U,{key:0},[t("div",kY,[t("div",yY,i(e(a)("\u4E0B\u8F7D\u9650\u901F\uFF08Mbit/s\uFF09"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":q[6]||(q[6]=ot=>e(S).downloadSpeed=ot),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,FY),[[at,e(S).downloadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",EY,[t("div",$Y,i(e(a)("\u4E0A\u4F20\u9650\u901F\uFF08Mbit/s\uFF09"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":q[7]||(q[7]=ot=>e(S).uploadSpeed=ot),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,CY),[[at,e(S).uploadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",DY,[t("div",BY,i(e(a)("\u6CE8\u89E3"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":q[8]||(q[8]=ot=>e(S).comment=ot),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,YY),[[at,e(S).comment,void 0,{trim:!0}]])])],64))])):D("",!0)])]}),_:1},8,["modelValue"])]))}});var SY=N(AY,[["__scopeId","data-v-23c28a68"]]);const ba=o=>(ut("data-v-ed203952"),o=o(),ct(),o),zY={key:0,class:"dialog-overlay"},PY={class:"dialog-container"},TY={class:"dialog-title"},IY=ba(()=>t("div",{class:"loading-animation"},[t("div",{class:"spinner"})],-1)),MY={class:"dialog-message"},LY={key:0,class:"dialog-overlay"},OY={class:"dialog-container"},NY={class:"dialog-title"},VY=ba(()=>t("div",{style:{display:"flex","justify-content":"center"}},[t("svg",{t:"1752661662572",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5921",width:"50",height:"50"},[t("path",{d:"M0 512C0 229.234759 229.234759 0 512 0s512 229.234759 512 512-229.234759 512-512 512S0 794.765241 0 512z m419.310345 194.630621a35.310345 35.310345 0 0 0 49.399172 1.271172l335.518897-311.931586a35.310345 35.310345 0 0 0-48.075035-51.729655l-309.124413 289.544827-145.125518-149.645241a35.310345 35.310345 0 1 0-50.688 49.169655l168.112552 173.320828z",fill:"#553afe","p-id":"5922"})])],-1)),GY={class:"dialog-message"},jY={key:0,class:"dialog-overlay"},UY={class:"dialog-container tag-dialog"},qY={class:"dialog-title"},RY={class:"warning-message"},WY=ba(()=>t("svg",{class:"warning-icon",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"})],-1)),HY={class:"input-group"},JY={for:"tagTitle"},ZY=["placeholder"],KY={class:"input-group"},QY={for:"tagName"},XY=["disabled","placeholder"],tA={class:"input-group"},eA={for:"gateway"},aA=["placeholder"],oA={class:"button-group"},nA=I({props:{title:{type:String,required:!0}},emits:["confirm","update:modelValue"],setup(o,{expose:n,emit:a}){const{$gettext:l}=J(),u=E("install"),d=E(!1),c=E(!1),k=E(!1),g=E(""),p=E(""),m=E(""),v=()=>{u.value="install",d.value=!0},b=()=>{d.value=!1},y=()=>{d.value=!1,setTimeout(()=>{c.value=!0},300)},f=()=>{c.value=!1},F=E("1"),w=()=>{u.value="tag",F.value="1",p.value="",g.value="",m.value="",k.value=!0},h=()=>{u.value="tag",F.value="2",k.value=!0},_=()=>{k.value=!1},x=A=>{p.value=A.target.value.replace(/[\u4e00-\u9fa5]/g,"")},C=(A,z)=>z?{ip:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,mac:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$|^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/}[A].test(z.trim()):!1,S=()=>{if(!C("ip",m.value.trim()))return $.Warning(`${l("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`);g.value.trim()&&p.value.trim()&&m.value.trim()&&(a("confirm",{tagTitle:g.value.trim(),tagName:p.value.trim(),gateway:m.value.trim(),type:F.value}),_())};return $t(g,A=>{a("update:modelValue",A)}),$t(p,A=>{a("update:modelValue",A)}),$t(m,A=>{a("update:modelValue",A)}),n({tagTitle:g,tagName:p,gateway:m,openInstallDialog:v,showInstallResult:y,openTagDialog:w,closeTagDialog:_,cancelInstall:b,openEditTagDialog:h}),(A,z)=>(r(),s(U,null,[Y(St,{name:"fade"},{default:V(()=>[d.value&&u.value==="install"?(r(),s("div",zY,[t("div",PY,[t("div",TY,i(o.title),1),IY,t("p",MY,i(e(l)("\u6B63\u5728\u5B89\u88C5"))+"...",1),t("button",{class:"dialog-button",onClick:b},i(e(l)("\u5173\u95ED")),1)])])):D("",!0)]),_:1}),Y(St,{name:"fade"},{default:V(()=>[c.value&&u.value==="install"?(r(),s("div",LY,[t("div",OY,[t("div",NY,i(e(l)("\u7ED3\u679C")),1),VY,t("p",GY,i(e(l)("\u5B89\u88C5\u6210\u529F"))+"\uFF01",1),t("button",{class:"dialog-button",onClick:f},i(e(l)("\u786E\u5B9A")),1)])])):D("",!0)]),_:1}),Y(St,{name:"fade"},{default:V(()=>[k.value&&u.value==="tag"?(r(),s("div",jY,[t("div",UY,[t("div",qY,i(F.value==="1"?e(l)("\u6DFB\u52A0\u6807\u7B7E"):e(l)("\u7F16\u8F91\u6807\u7B7E")),1),t("div",RY,[WY,t("span",null,i(e(l)("\u6CE8\u610F\uFF1A\u6DFB\u52A0ID\u65F6\uFF0C\u8BF7\u52FF\u5C06\u201Codhcpd\u201D\u6216\u7F51\u7EDC\u63A5\u53E3\uFF08\u4F8B\u5982\u201Clan\u201D,\u201Cwan\u201D,\u201Cwan6\u201D\u7B49\uFF09\u4F5C\u4E3AID\uFF0C\u6B64\u4E3E\u5C06\u4EA7\u751F\u51B2\u7A81\u3002\u5EFA\u8BAE\u5728ID\u524D\u9762\u52A0\u4E0A\u524D\u7F00\u201Ct_\u201D\u4EE5\u675C\u7EDD\u6B64\u7C7B\u51B2\u7A81\u3002")),1)]),t("div",HY,[t("label",JY,i(e(l)("\u6807\u9898"))+"\uFF1A",1),O(t("input",{id:"tagTitle","onUpdate:modelValue":z[0]||(z[0]=B=>g.value=B),type:"text",placeholder:e(l)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,ZY),[[at,g.value]])]),t("div",KY,[t("label",QY,i(e(l)("ID"))+"\uFF1A",1),O(t("input",{id:"tagName","onUpdate:modelValue":z[1]||(z[1]=B=>p.value=B),onInput:x,disabled:F.value=="2",type:"text",placeholder:e(l)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,40,XY),[[at,p.value]])]),t("div",tA,[t("label",eA,i(e(l)("\u7F51\u5173"))+"\uFF1A",1),O(t("input",{id:"gateway","onUpdate:modelValue":z[2]||(z[2]=B=>m.value=B),type:"text",placeholder:e(l)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,aA),[[at,m.value]])]),t("div",oA,[t("button",{class:"cancel-button",onClick:_},i(e(l)("\u53D6\u6D88")),1),t("button",{class:"confirm-button",onClick:S},i(e(l)("\u786E\u5B9A")),1)])])])):D("",!0)]),_:1})],64))}});var iA=N(nA,[["__scopeId","data-v-ed203952"]]);const co=o=>(ut("data-v-102c75ea"),o=o(),ct(),o),rA={class:"tab-container"},sA={class:"tab-header"},dA=["onClick"],lA={class:"tab-content_g"},uA={key:0,class:"not_installed"},cA=co(()=>t("svg",{t:"1752659436579",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4943",width:"150",height:"150"},[t("path",{d:"M216.896 97.232l-55.792 106.24 704.784 8.928-24.352-75.888-38.496-39.28z",fill:"#FFFFFF","p-id":"4944"}),t("path",{d:"M192.016 255.968h655.968v592H192.016z",fill:"#FFFFFF","p-id":"4945"}),t("path",{d:"M921.904 187.008l-66.72-80.656a69.744 69.744 0 0 0-55.168-26.32h-576a71.296 71.296 0 0 0-55.664 26.416l-66.256 80.56a93.984 93.984 0 0 0-22.08 61.024v600a96.288 96.288 0 0 0 96 96h672a96.288 96.288 0 0 0 96-96v-600a93.984 93.984 0 0 0-22.112-61.024zM512.016 777.856L246.128 512.032h166.144v-132.976h199.392v132.976h166.128zM179.664 179.664l33.152-66.464h598.128l33.2 66.464z",fill:"#909399","p-id":"4946"})],-1)),pA={key:1},fA={class:"item_box"},mA={class:"item_left"},gA={class:"item_box"},vA={class:"item_left"},bA=["placeholder"],hA={class:"item_box"},_A={class:"item_left"},xA=["placeholder"],wA={class:"item_box"},kA={class:"item_left"},yA={key:0,class:"not_installed"},FA=co(()=>t("svg",{t:"1752659436579",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4943",width:"150",height:"150"},[t("path",{d:"M216.896 97.232l-55.792 106.24 704.784 8.928-24.352-75.888-38.496-39.28z",fill:"#FFFFFF","p-id":"4944"}),t("path",{d:"M192.016 255.968h655.968v592H192.016z",fill:"#FFFFFF","p-id":"4945"}),t("path",{d:"M921.904 187.008l-66.72-80.656a69.744 69.744 0 0 0-55.168-26.32h-576a71.296 71.296 0 0 0-55.664 26.416l-66.256 80.56a93.984 93.984 0 0 0-22.08 61.024v600a96.288 96.288 0 0 0 96 96h672a96.288 96.288 0 0 0 96-96v-600a93.984 93.984 0 0 0-22.112-61.024zM512.016 777.856L246.128 512.032h166.144v-132.976h199.392v132.976h166.128zM179.664 179.664l33.152-66.464h598.128l33.2 66.464z",fill:"#909399","p-id":"4946"})],-1)),EA={key:1},$A={class:"item_box"},CA={class:"item_left"},DA={class:"item_box"},BA={class:"item_left"},YA={key:0,value:"",disabled:""},AA=["value"],SA={class:"item_box"},zA={class:"item_left"},PA=["placeholder"],TA={class:"item_box"},IA={class:"item_left"},MA=["placeholder"],LA={class:"item_box"},OA={class:"item_left"},NA={style:{"margin-bottom":"16px"}},VA={class:"item_box"},GA={class:"item_left"},jA={class:"item_box"},UA={class:"item_left"},qA=["value"],RA={class:"item_box"},WA={class:"item_left"},HA={style:{display:"flex","justify-content":"end","margin-bottom":"8px"}},JA=["onClick"],ZA=["onClick"],KA=I({setup(o,{expose:n}){const{$gettext:a}=J(),l=Q(()=>!p.role),u=E([]),d=E([{label:"\u6807\u9898",prop:"tagTitle",slot:"tagTitle"},{label:"ID",prop:"tagName",slot:"tagName"},{label:"\u7F51\u5173",prop:"gateway",slot:"gateway"},{label:"\u64CD\u4F5C",prop:"action",slot:"action"}]),c=E([{name:a("\u4E3B\u8DEF\u7531"),value:"fallback"},{name:a("\u65C1\u8DEF\u7531"),value:"main"}]),k=gt({dhcpEnabled:!1,dhcpGateway:""}),g=gt({enabled:!1,uploadSpeed:"",downloadSpeed:"",installed:!0}),p=gt({enabled:!1,role:"",setIP:"",checkIP:""}),m=E({}),v=()=>L(this,null,function*(){var nt,K,At,mt,P,X,et,rt,kt,Tt,Ft,ne,ie,re,se,de,le,ue,ce,pe,fe,me,ge;try{const{data:Et}=yield G.DeviceMangement.globalConfigs.GET();if(Et.result){if(m.value=Et.result||{},k.dhcpEnabled=((K=(nt=Et.result)==null?void 0:nt.dhcpGlobal)==null?void 0:K.dhcpEnabled)||!1,(mt=(At=Et.result)==null?void 0:At.dhcpGlobal)!=null&&mt.dhcpGateway)k.dhcpGateway=(X=(P=Et.result)==null?void 0:P.dhcpGlobal)==null?void 0:X.dhcpGateway;else{const _a=(rt=(et=Et.result)==null?void 0:et.dhcpGlobal)==null?void 0:rt.gatewaySels.find(mo=>mo.title==="myself");_a?k.dhcpGateway=_a.gateway:k.dhcpGateway=""}u.value=((kt=Et.result)==null?void 0:kt.dhcpTags)||[],g.enabled=((Ft=(Tt=Et.result)==null?void 0:Tt.speedLimit)==null?void 0:Ft.enabled)||!1,g.uploadSpeed=((ie=(ne=Et.result)==null?void 0:ne.speedLimit)==null?void 0:ie.uploadSpeed)||"",g.downloadSpeed=((se=(re=Et.result)==null?void 0:re.speedLimit)==null?void 0:se.downloadSpeed)||"",p.enabled=((le=(de=Et.result)==null?void 0:de.floatGateway)==null?void 0:le.enabled)||!1,p.role=((ce=(ue=Et.result)==null?void 0:ue.floatGateway)==null?void 0:ce.role)||"",p.setIP=((fe=(pe=Et.result)==null?void 0:pe.floatGateway)==null?void 0:fe.setIP)||"",p.checkIP=((ge=(me=Et.result)==null?void 0:me.floatGateway)==null?void 0:ge.checkIP)||""}}catch(Et){}});v();const b=()=>L(this,null,function*(){let nt=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const{data:K}=yield G.DeviceMangement.dhcpGatewayConfig.POST(k);JSON.stringify(K)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),v()):$.Success((K==null?void 0:K.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(K){$.Warning(`${K==null?void 0:K.error} || ${K==null?void 0:K.message}`)}finally{nt.Close()}}),y=(nt,K)=>L(this,null,function*(){let At=$.Loading(a("\u68C0\u67E5\u4E2D..."));try{const mt=yield G.App.Check.POST({name:nt});if(At.Close(),mt!=null&&mt.data){const{result:P,error:X}=mt.data;if(X)$.Warning(X);else{if(P)return P.status=="installed";$.Warning(a("\u68C0\u67E5\u63D2\u4EF6\u72B6\u6001\u5931\u8D25"))}}return!1}catch(mt){return At.Close(),$.Warning(mt),!1}}),f=E(!1),F=E(!1),w=()=>L(this,null,function*(){(yield y("app-meta-floatip"))&&(F.value=!0)}),h=()=>L(this,null,function*(){(yield y("app-meta-eqos"))&&(f.value=!0)});w(),h();const _=[{id:"tag",label:a("DHCP")},{id:"gateway",label:a("\u6D6E\u52A8\u7F51\u5173")},{id:"ip",label:a("IP\u9650\u901F")}],x=E("tag");n({activeTab:x});const C=nt=>{x.value=nt},S=E(),A=nt=>({default:a("\u9ED8\u8BA4\u7F51\u5173"),parent:a("\u4E0A\u7EA7\u8DEF\u7531"),myself:a("\u672C\u8BBE\u5907"),bypass:a("\u65C1\u8DEF\u7531"),floatip:a("\u6D6E\u52A8\u7F51\u5173")})[nt]||nt,z=E("app-meta-floatip"),B=Q(()=>z.value==="app-meta-floatip"?a("\u6D6E\u52A8\u7F51\u5173"):a("IP\u9650\u901F")),H=nt=>L(this,null,function*(){if(z.value=nt,S.value.openInstallDialog(),yield zt.installApp(nt))return nt=="app-meta-floatip"?w():h(),S.value.showInstallResult(),!0;S.value.cancelInstall(),$.Error(a("\u5B89\u88C5\u5931\u8D25\u6216\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u8F6F\u4EF6\u6E90\u6216\u7A0D\u5019\u91CD\u8BD5"))}),M=nt=>/^([1-9]\d*(\.\d+)?|0\.\d*[1-9]\d*)$/.test(nt.toString()),q=()=>L(this,null,function*(){if(g.enabled){if(!g.downloadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0B\u8F7D\u901F\u5EA6")}`);if(!M(g.downloadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0B\u8F7D\u901F\u5EA6")}`);if(!g.uploadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0A\u4F20\u901F\u5EA6")}`);if(!M(g.uploadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0A\u4F20\u901F\u5EA6")}`);g.downloadSpeed=Number(g.downloadSpeed),g.uploadSpeed=Number(g.uploadSpeed)}else g.downloadSpeed=0,g.uploadSpeed=0;let nt=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const{data:K}=yield G.DeviceMangement.enableSpeedLimit.POST(g);JSON.stringify(K)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),v()):$.Success((K==null?void 0:K.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(K){$.Warning(`${K==null?void 0:K.error} || ${K==null?void 0:K.message}`)}finally{nt.Close()}}),T=(nt,K)=>K?{ip:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\/([0-9]|[1-2][0-9]|3[0-2]))?$/,mac:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$|^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/}[nt].test(K.trim()):!1,j=()=>L(this,null,function*(){if(!p.role)return $.Warning(a("\u8BF7\u9009\u62E9\u8282\u70B9\u89D2\u8272"));if(!p.setIP)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u6D6E\u52A8\u7F51\u5173")}IP`);if(!T("ip",p.setIP))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6D6E\u52A8\u7F51\u5173IP\u5730\u5740")}`);if(!p.checkIP)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u65C1\u8DEF\u7531")}IP`);if(!T("ip",p.checkIP))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u65C1\u8DEF\u7531IP\u5730\u5740")}`);let nt=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const{data:K}=yield G.DeviceMangement.enableFloatGateway.POST(p);JSON.stringify(K)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),v()):$.Success((K==null?void 0:K.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(K){$.Warning(`${K==null?void 0:K.error} || ${K==null?void 0:K.message}`)}finally{nt.Close()}}),R=nt=>{nt||confirm(a("\u6E29\u99A8\u63D0\u793A\uFF1A\u5173\u95EDDHCP\u53EF\u80FD\u5F71\u54CD\u5C40\u57DF\u7F51\u5185\u8BBE\u5907\u7684IP\u5206\u914D\u548C\u8054\u7F51\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01"))||(k.dhcpEnabled=!0)},it=nt=>{nt||confirm(a("\u6E29\u99A8\u63D0\u793A\uFF1A\u5173\u95ED\u6D6E\u52A8\u7F51\u5173\u53EF\u80FD\u5F71\u54CD\u6B63\u5728\u4F7F\u7528\u6D6E\u52A8\u7F51\u5173\u7684\u8BBE\u5907\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01"))||(p.enabled=!0)},ot=nt=>{nt||confirm(a("\u6E29\u99A8\u63D0\u793A\uFF1A\u5173\u95ED\u9650\u901F\u4F1A\u8BA9\u5DF2\u914D\u7F6E\u9650\u901F\u7684\u8BBE\u5907\u7684\u5E26\u5BBD\u9650\u5236\u5168\u90E8\u5931\u6548\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01"))||(g.enabled=!0)},bt=nt=>L(this,null,function*(){if(confirm(a("\u6E29\u99A8\u63D0\u793A\uFF1A\u5220\u9664\u7F51\u5173\u6807\u7B7E\u53EF\u80FD\u5F71\u54CD\u6B63\u5728\u4F7F\u7528\u6B64\u6807\u7B7E\u7684\u8BBE\u5907\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01"))){let K=$.Loading(a("\u5220\u9664\u4E2D...")),At={action:"delete",tagTitle:nt.tagTitle||"",tagName:nt.tagName||"",dhcpOption:(nt==null?void 0:nt.dhcpOption)||[]};try{const{data:mt}=yield G.DeviceMangement.dhcpTagsConfig.POST(At);JSON.stringify(mt)==="{}"?($.Success(a("\u5220\u9664\u6210\u529F")),v()):$.Success((mt==null?void 0:mt.error)||"\u5220\u9664\u5931\u8D25\uFF01")}catch(mt){$.Warning(`${mt==null?void 0:mt.error} || ${mt==null?void 0:mt.message}`)}finally{K.Close()}}}),Dt=()=>{S.value.openTagDialog()},yt=E([]),Vt=nt=>L(this,null,function*(){yt.value=nt.dhcpOption?nt.dhcpOption:[],S.value.tagTitle=nt.tagTitle||"",S.value.tagName=nt.tagName||"",S.value.gateway=nt.gateway||"",yield na(),S.value.openEditTagDialog()}),Re=nt=>L(this,null,function*(){let K=$.Loading(a("\u4FDD\u5B58\u4E2D..."));const At=[`3,${nt.gateway}`,`6,${nt.gateway}`];let mt={action:nt.type==1?"add":"modify",tagTitle:nt.tagTitle,tagName:nt.tagName,dhcpOption:At};try{const{data:P}=yield G.DeviceMangement.dhcpTagsConfig.POST(mt);JSON.stringify(P)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),v()):$.Success((P==null?void 0:P.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(P){$.Warning(`${P==null?void 0:P.error} || ${P==null?void 0:P.message}`)}finally{K.Close()}});return(nt,K)=>{var At,mt;return r(),s("div",rA,[t("div",sA,[(r(),s(U,null,tt(_,P=>t("button",{key:P.id,class:lt(["tab-button",{active:x.value===P.id}]),onClick:X=>C(P.id)},i(P.label),11,dA)),64))]),t("div",lA,[O(t("div",null,[f.value?(r(),s("div",pA,[t("div",fA,[t("div",mA,i(e(a)("IP\u9650\u901F"))+"\uFF1A",1),Y(Ot,{modelValue:e(g).enabled,"onUpdate:modelValue":K[1]||(K[1]=P=>e(g).enabled=P),onChange:ot},null,8,["modelValue"])]),e(g).enabled?(r(),s(U,{key:0},[t("div",gA,[t("div",vA,i(e(a)("\u4E0B\u8F7D\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":K[2]||(K[2]=P=>e(g).downloadSpeed=P),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,bA),[[at,e(g).downloadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",hA,[t("div",_A,i(e(a)("\u4E0A\u4F20\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":K[3]||(K[3]=P=>e(g).uploadSpeed=P),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,xA),[[at,e(g).uploadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)])],64)):D("",!0),t("div",wA,[t("div",kA,[t("button",{class:"add-button add-button--danger",onClick:q},i(e(a)("\u4FDD\u5B58")),1)])])])):(r(),s("div",uA,[cA,t("span",null,i(e(a)("\u8F6F\u4EF6\u6682\u672A\u5B89\u88C5")),1),t("div",{class:"not_installed_btn",onClick:K[0]||(K[0]=P=>H("app-meta-eqos"))},i(e(a)("\u7ACB\u5373\u5B89\u88C5")),1)]))],512),[[ee,x.value==="ip"]]),O(t("div",null,[F.value?(r(),s("div",EA,[t("div",$A,[t("div",CA,i(e(a)("\u6D6E\u52A8\u7F51\u5173"))+"\uFF1A",1),Y(Ot,{modelValue:e(p).enabled,"onUpdate:modelValue":K[5]||(K[5]=P=>e(p).enabled=P),onChange:it},null,8,["modelValue"])]),t("div",DA,[t("div",BA,i(e(a)("\u8282\u70B9\u89D2\u8272"))+"\uFF1A",1),O(t("select",{"onUpdate:modelValue":K[6]||(K[6]=P=>e(p).role=P),onChange:K[7]||(K[7]=()=>{})},[e(l)?(r(),s("option",YA,i(e(a)("\u8BF7\u9009\u62E9")),1)):D("",!0),(r(!0),s(U,null,tt(c.value,P=>(r(),s("option",{value:P.value},i(P.name),9,AA))),256))],544),[[pt,e(p).role]])]),t("div",SA,[t("div",zA,i(e(a)("\u6D6E\u52A8\u7F51\u5173"))+"IP\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":K[8]||(K[8]=P=>e(p).setIP=P),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,PA),[[at,e(p).setIP,void 0,{trim:!0}]])]),t("div",TA,[t("div",IA,i(e(a)("\u65C1\u8DEF\u7531IP"))+"\uFF1A",1),O(t("input",{id:"tagName",type:"text","onUpdate:modelValue":K[9]||(K[9]=P=>e(p).checkIP=P),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,MA),[[at,e(p).checkIP,void 0,{trim:!0}]])]),t("div",LA,[t("div",OA,[t("button",{class:"add-button add-button--danger",onClick:j},i(e(a)("\u4FDD\u5B58")),1)])])])):(r(),s("div",yA,[FA,t("span",null,i(e(a)("\u8F6F\u4EF6\u6682\u672A\u5B89\u88C5")),1),t("div",{class:"not_installed_btn",onClick:K[4]||(K[4]=P=>H("app-meta-floatip"))},i(e(a)("\u7ACB\u5373\u5B89\u88C5")),1)]))],512),[[ee,x.value==="gateway"]]),O(t("div",null,[t("div",NA,[t("div",VA,[t("div",GA,i(e(a)("\u542F\u7528"))+"DHCP\uFF1A",1),Y(Ot,{modelValue:e(k).dhcpEnabled,"onUpdate:modelValue":K[10]||(K[10]=P=>e(k).dhcpEnabled=P),onChange:R},null,8,["modelValue"])]),t("div",jA,[t("div",UA,"DHCP"+i(e(a)("\u7F51\u5173"))+"\uFF1A",1),O(t("select",{"onUpdate:modelValue":K[11]||(K[11]=P=>e(k).dhcpGateway=P),onChange:K[12]||(K[12]=()=>{})},[(r(!0),s(U,null,tt((mt=(At=m.value)==null?void 0:At.dhcpGlobal)==null?void 0:mt.gatewaySels,P=>(r(),s("option",{value:P.gateway},i(P.gateway)+" ("+i(P.title?A(P.title):"")+") ",9,qA))),256))],544),[[pt,e(k).dhcpGateway]])]),t("div",RA,[t("div",WA,[t("button",{class:"add-button add-button--danger",onClick:b},i(e(a)("\u4FDD\u5B58")),1)])])]),t("div",HA,[t("button",{class:"add-button add-button--danger",onClick:Dt},[t("span",null,i(e(a)("\u6DFB\u52A0")),1)])]),Y(Ue,{data:u.value,columns:d.value,showSelection:!1,showPagination:!1,theadBgColor:"#e8e6f9"},{action:V(({row:P})=>[P.autoCreated?D("",!0):(r(),s("span",{key:0,style:{color:"#553AFE",cursor:"pointer"},onClick:X=>Vt(P)},i(e(a)("\u7F16\u8F91")),9,JA)),P.autoCreated?D("",!0):(r(),s("span",{key:1,style:{color:"#F04134",cursor:"pointer","margin-left":"18px"},onClick:X=>bt(P)},i(e(a)("\u5220\u9664")),9,ZA))]),tagTitle:V(({row:P})=>[t("span",null,i(A(P.tagTitle)),1)]),tagName:V(({row:P})=>[t("span",null,i(P.tagName||"-"),1)]),gateway:V(({row:P})=>[t("span",null,i(P.gateway||"-"),1)]),_:1},8,["data","columns"])],512),[[ee,x.value==="tag"]])]),Y(iA,{ref_key:"tagDialogRef",ref:S,title:e(B),onConfirm:Re},null,8,["title"])])}}});var QA=N(KA,[["__scopeId","data-v-102c75ea"]]);const po=o=>(ut("data-v-39804772"),o=o(),ct(),o),XA={id:"page"},tS={style:{"text-align":"left",display:"flex","align-items":"center","margin-bottom":"20px","padding-top":"4px"}},eS=po(()=>t("svg",{width:"20",height:"20",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M20 30 L50 50 L20 70",stroke:"#d6dbf8","stroke-width":"8","stroke-linecap":"round",fill:"none"})],-1)),aS={style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color1)","line-height":"1.5em"}},oS={class:"device_container",style:{color:"black"}},nS={class:"tab-container"},iS={class:"tabs_box_g"},rS=["onClick"],sS={class:"tab-content_g"},dS={key:0,class:"content-item"},lS={key:1,class:"content-item"},uS={key:2,class:"content-item"},cS={key:3,class:"content-item"},pS=po(()=>t("div",{style:{height:"30px"}},null,-1)),fS=I({setup(o){const{$gettext:n}=J(),a=E(["\u8BBE\u5907\u5217\u8868","\u9759\u6001\u5206\u914D\u5217\u8868","\u9650\u901F\u8BBE\u5907\u5217\u8868","\u5168\u5C40\u8BBE\u7F6E"]),l=E(0),u=E(null),d=()=>L(this,null,function*(){l.value=3,yield na(),u.value&&(u.value.activeTab="ip")});return(c,k)=>{const g=_t("router-link");return r(),s(U,null,[t("div",XA,[t("div",tS,[Y(g,{to:"/",style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color)","line-height":"1.5em","margin-right":"4px"}},{default:V(()=>[dt(i(e(n)("\u9996\u9875")),1)]),_:1}),eS,t("a",aS,i(e(n)("\u8BBE\u5907\u7BA1\u7406")),1)])]),t("div",oS,[t("div",nS,[t("div",iS,[(r(!0),s(U,null,tt(a.value,(p,m)=>(r(),s("button",{key:m,onClick:v=>l.value=m,class:lt({active:l.value===m})},i(e(n)(p)),11,rS))),128))]),t("div",sS,[l.value===0?(r(),s("div",dS,[Y(TB,{onOpenGloba:d})])):D("",!0),l.value===1?(r(),s("div",lS,[Y(nY)])):D("",!0),l.value===2?(r(),s("div",uS,[Y(SY,{onOpenGloba:d})])):D("",!0),l.value===3?(r(),s("div",cS,[Y(QA,{ref_key:"configureRef",ref:u},null,512)])):D("",!0)]),pS])])],64)}}});var mS=N(fS,[["__scopeId","data-v-39804772"]]);const gS={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},vS=["fill"],bS=["fill"],hS=I({props:{color:{type:String,default:"#ffa847"}},setup(o){return(n,a)=>(r(),s("svg",gS,[t("path",{d:"M640.825806 900.129032c-18.167742 6.606452-37.987097 9.909677-57.806451 13.212903-26.425806 4.954839-44.593548 29.729032-41.290323 56.154839 4.954839 26.425806 29.729032 44.593548 56.154839 41.290323 24.774194-3.303226 47.896774-9.909677 71.019355-16.516129 26.425806-8.258065 41.290323-36.335484 33.032258-62.761291s-34.683871-39.63871-61.109678-31.380645zM974.451613 576.412903c-26.425806-6.606452-52.851613 9.909677-61.109678 36.335484-4.954839 19.819355-11.56129 37.987097-18.167741 56.154839-9.909677 24.774194 1.651613 54.503226 26.425806 64.412903 24.774194 9.909677 54.503226-1.651613 64.412903-26.425806 9.909677-23.122581 16.516129-46.245161 23.122581-69.367742 6.606452-28.077419-8.258065-54.503226-34.683871-61.109678zM814.245161 791.122581c-13.212903 14.864516-28.077419 28.077419-42.941935 39.638709-21.470968 16.516129-24.774194 47.896774-8.258065 69.367742 16.516129 21.470968 47.896774 24.774194 69.367742 8.258065 19.819355-14.864516 37.987097-31.380645 54.503226-49.548387 18.167742-19.819355 18.167742-51.2-1.651613-69.367742s-51.2-18.167742-71.019355 1.651613zM526.864516 341.883871c-28.077419 0-49.548387 21.470968-49.548387 49.548387v122.219355c0 14.864516 6.606452 28.077419 18.167742 37.987097l117.264516 97.445161c21.470968 18.167742 52.851613 14.864516 69.367742-6.606452s14.864516-52.851613-6.606452-69.367742l-99.096774-82.580645v-99.096774c0-26.425806-21.470968-49.548387-49.548387-49.548387z",fill:o.color,"p-id":"4722"},null,8,vS),t("path",{d:"M910.03871 327.019355c28.077419 1.651613 51.2-18.167742 52.851613-46.245161l9.909677-142.03871c1.651613-28.077419-18.167742-51.2-46.245161-52.851613-28.077419-1.651613-51.2 18.167742-52.851613 46.245161v16.516129c-1.651613-1.651613-3.303226-3.303226-4.954839-3.303226-1.651613-3.303226-4.954839-4.954839-6.606452-8.258064-18.167742-16.516129-36.335484-31.380645-57.806451-46.245161-1.651613-1.651613-4.954839-3.303226-6.606452-3.303226-46.245161-31.380645-99.096774-54.503226-155.251613-69.367742-1.651613 0-3.303226-1.651613-4.954838-1.651613-8.258065-1.651613-14.864516-3.303226-23.122581-4.954839h-1.651613c-6.606452-1.651613-13.212903-3.303226-21.470968-3.303225-4.954839-1.651613-11.56129-1.651613-16.516129-1.651613-3.303226 0-6.606452-1.651613-9.909677-1.651613h-1.651613C307.2-19.819355 69.367742 153.6 18.167742 412.903226c-52.851613 275.819355 125.522581 541.729032 401.341935 594.580645 26.425806 4.954839 52.851613-11.56129 57.806452-39.63871 4.954839-26.425806-11.56129-52.851613-39.63871-57.806451h-1.651613c-19.819355-3.303226-37.987097-9.909677-56.154838-16.516129h-3.303226c-44.593548-16.516129-84.232258-39.63871-118.916129-67.716129l-4.954839-4.954839c-14.864516-13.212903-29.729032-26.425806-41.290322-41.290323-1.651613-1.651613-3.303226-3.303226-6.606452-4.954838-28.077419-33.032258-51.2-71.019355-67.716129-112.309678 0-3.303226-1.651613-6.606452-1.651613-8.258064-6.606452-18.167742-13.212903-37.987097-16.516129-56.154839 0-3.303226-1.651613-6.606452-3.303226-9.909677-8.258065-41.290323-9.909677-82.580645-4.954838-125.522581 1.651613-3.303226 1.651613-6.606452 3.303225-9.909678 3.303226-19.819355 6.606452-37.987097 13.212904-57.806451 1.651613-3.303226 1.651613-6.606452 1.651612-9.909678 13.212903-41.290323 33.032258-80.929032 57.806452-115.612903 3.303226-1.651613 4.954839-4.954839 6.606452-6.606451 11.56129-14.864516 24.774194-29.729032 39.638709-44.593549 1.651613-1.651613 3.303226-4.954839 4.954839-6.606451 33.032258-31.380645 71.019355-56.154839 112.309677-74.322581 1.651613 0 3.303226 0 3.303226-1.651613 18.167742-8.258065 37.987097-14.864516 56.154839-19.819355 1.651613 0 1.651613-1.651613 3.303226-1.651613 47.896774-13.212903 100.748387-16.516129 153.6-9.909677 3.303226 0 6.606452 1.651613 9.909677 1.651613 6.606452 1.651613 11.56129 1.651613 18.167742 3.303226 80.929032 16.516129 153.6 54.503226 209.754839 112.309677l-29.729032-1.651613c-28.077419-1.651613-51.2 18.167742-52.851613 46.245161-1.651613 28.077419 18.167742 51.2 46.245161 52.851613l142.03871 8.258065z",fill:o.color,"p-id":"4723"},null,8,bS)]))}}),_S={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},xS=["fill"],wS=I({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",_S,[t("path",{d:"M914.285714 548.571429a36.571429 36.571429 0 0 1 36.571429 36.571428v219.428572a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714v-219.428572a36.571429 36.571429 0 1 1 73.142857 0v219.428572a73.142857 73.142857 0 0 0 67.657143 72.96L219.428571 877.714286h585.142858a73.142857 73.142857 0 0 0 72.96-67.657143L877.714286 804.571429v-219.428572a36.571429 36.571429 0 0 1 36.571428-36.571428zM537.307429 83.858286l258.596571 258.596571a36.571429 36.571429 0 1 1-51.712 51.712L548.571429 198.509714 548.571429 634.733714a36.571429 36.571429 0 1 1-73.142858 0V197.485714L278.674286 394.166857a36.571429 36.571429 0 1 1-51.712-51.712l258.596571-258.596571a36.571429 36.571429 0 0 1 51.712 0z",fill:o.color,"p-id":"9077"},null,8,xS)]))}}),Ht=o=>(ut("data-v-cbc39b94"),o=o(),ct(),o),kS={class:"item_container"},yS={class:"item"},FS={class:"item_title"},ES={class:"tip"},$S={class:"item"},CS={class:"item_title"},DS={class:"select_box"},BS={value:null,disabled:"",selected:""},YS=["value"],AS={class:"start_btn"},SS={key:0,class:"progress"},zS=Ht(()=>t("span",null,"25%",-1)),PS={class:"item"},TS={class:"item_title"},IS={class:"log_info"},MS={class:"item"},LS={class:"item_title"},OS={class:"result_box"},NS={class:"result"},VS={class:"result_item"},GS=Ht(()=>t("div",{class:"speed_value"},"105.5",-1)),jS=Ht(()=>t("span",{class:"unit"},"Mbps",-1)),US=Ht(()=>t("span",{class:"status status_bg1"},"\u4F18\u79C0",-1)),qS={class:"speed_title"},RS={class:"result_item"},WS=Ht(()=>t("div",{class:"speed_value"},"105.5",-1)),HS=Ht(()=>t("span",{class:"unit"},"Mbps",-1)),JS=Ht(()=>t("span",{class:"status status_bg2"},"\u826F\u597D",-1)),ZS={class:"speed_title"},KS=jt('<div class="line" data-v-cbc39b94></div><div class="result" data-v-cbc39b94><div class="result_state" data-v-cbc39b94><div data-v-cbc39b94>18 ms</div><span class="status status_bg2" data-v-cbc39b94>\u826F\u597D</span><span class="result_txt" data-v-cbc39b94>\u5EF6\u8FDF</span></div><div class="result_state" data-v-cbc39b94><div data-v-cbc39b94>18 ms</div><span class="result_txt" data-v-cbc39b94>\u5EF6\u8FDF</span></div></div>',2),QS=Ht(()=>t("div",{class:"custom-content"},[t("p",null,"\u4EE5\u4E0B\u662F\u68C0\u6D4B\u5230\u7684\u5185\u7F51\u5730\u5740\uFF0C\u8BF7\u70B9\u51FB\u8BBF\u95EE\u8FDB\u884C\u6D4B\u901F"),t("div",{class:"address_box"},[t("span",null,"http://192.168.1.1"),t("div",null,"\u8BBF\u95EE")]),t("div",{class:"address_box"},[t("span",null,"http://192.168.1.1"),t("div",null,"\u8BBF\u95EE")]),t("div",{class:"address_box"},[t("span",null,"http://192.168.1.1"),t("div",null,"\u8BBF\u95EE")]),t("div",{class:"address_box"},[t("span",null,"http://192.168.1.1"),t("div",null,"\u8BBF\u95EE")]),t("div",{class:"address_box"},[t("span",null,"http://192.168.1.1"),t("div",null,"\u8BBF\u95EE")])],-1)),XS=I({setup(o){const{$gettext:n}=J(),a=E(!1),l=E([{title:"SpeedTest.Net",describe:"\u5168\u7403\u6807\u51C6\u7F51\u901F\u6D4B\u8BD5\u670D\u52A1",value:"SpeedTest"},{title:"CDN\u8282\u70B9\u6D4B\u8BD5",describe:"\u6D4B\u8BD5\u5230\u4E3B\u8981CDN\u8282\u70B9\u7684\u8FDE\u63A5\u901F\u5EA6",value:"CDN"},{title:"UST\u9AD8\u6821\u8282\u70B9",describe:"\u4E2D\u79D1\u5927\u6559\u80B2\u7F51\u8282\u70B9\u6D4B\u8BD5",value:"UST"},{title:"NAT\u7C7B\u578B\u6D4B\u901F",describe:"\u68C0\u6D4B\u7F51\u7EDCNAT\u7C7B\u578B\u548C\u8FDE\u901A\u6027",value:"NAT"}]),u=E(null),d=E(!1),c=()=>{!u.value||(d.value=!0)};return(k,g)=>(r(),s(U,null,[t("div",kS,[t("div",yS,[t("div",FS,[Y(ze,{color:"#155dfc",class:"icon"}),t("span",null,i(e(n)("\u5185\u7F51\u6D4B\u901F")),1)]),t("p",null,i(e(n)("\u68C0\u6D4B\u672C\u5730\u7F51\u7EDC\u73AF\u5883\uFF0C\u83B7\u53D6\u5185\u7F51\u8BBF\u95EE\u5730\u5740")),1),t("div",{class:"wifi_btn",onClick:g[0]||(g[0]=p=>a.value=!0)},[t("div",null,[Y(ze,{color:"#ffffff",class:"icon1"}),t("span",null,i(e(n)("\u5F00\u59CB\u5185\u7F51\u6D4B\u901F")),1)])]),t("p",ES,i(e(n)("\u70B9\u51FB\u6309\u94AE\u83B7\u53D6\u5185\u7F51\u6D4B\u901F\u5730\u5740\uFF0C\u901A\u8FC7\u8BBF\u95EE\u8FD9\u4E9B\u5730\u5740\u6765\u6D4B\u8BD5\u5185\u7F51\u8FDE\u63A5\u901F\u5EA6")),1)]),t("div",$S,[t("div",CS,[Y(xe,{color:"#2bb55e",class:"icon"}),t("span",null,i(e(n)("\u5185\u7F51\u6D4B\u901F")),1)]),t("p",null,i(e(n)("\u9009\u62E9\u6D4B\u901F\u8282\u70B9\uFF0C\u8FDB\u884C\u7F51\u7EDC\u901F\u5EA6\u548C\u8FDE\u63A5\u8D28\u91CF\u6D4B\u8BD5")),1),t("div",DS,[t("div",null,i(e(n)("\u9009\u62E9\u6D4B\u901F\u8282\u70B9")),1),O(t("select",{"onUpdate:modelValue":g[1]||(g[1]=p=>u.value=p),id:"node",required:"",class:lt({"is-placeholder":!u.value})},[t("option",BS,i(e(n)("\u8BF7\u9009\u62E9\u6D4B\u901F\u8282\u70B9")),1),(r(!0),s(U,null,tt(l.value,p=>(r(),s("option",{value:p},i(p.title)+" - "+i(p.describe),9,YS))),256))],2),[[pt,u.value]])]),t("div",{class:lt(["wifi_btn m-20",{"is-bg":!u.value||d.value}]),onClick:c},[t("div",AS,[d.value?(r(),s("span",{key:0,class:lt(["icon3-wrap",{"is-rotating":d.value}])},[Y(hS,{color:"#ffffff",class:"icon3"})],2)):(r(),Z(xe,{key:1,color:"#ffffff",class:"icon2"})),t("span",null,i(e(n)("\u5F00\u59CB\u6D4B\u901F")),1)])],2),d.value?(r(),s("div",SS,[t("p",null,[dt(i(e(n)("\u6D4B\u901F\u8FDB\u5EA6"))+" ",1),zS]),Y(no,{percentage:25,showPercentage:!1,height:"10px",borderRadius:"10px",color:"#030213",backgroundColor:"#cdccd0"})])):D("",!0)]),t("div",PS,[t("div",TS,[Y(Xa,{color:"#ff6900",class:"icon2"}),t("span",null,i(e(n)("\u6D4B\u901F\u65E5\u5FD7")),1)]),t("p",null,i(e(n)("\u5B9E\u65F6\u6D4B\u901F\u8FC7\u7A0B\u8BB0\u5F55")),1),t("div",IS,[(r(),s(U,null,tt(20,p=>t("p",null,"[17:00:20] \u6B63\u5728\u8FDE\u63A5\u5230\u6D4B\u8BD5\u670D\u52A1\u5668...")),64))])]),t("div",MS,[t("div",LS,[Y(ro,{color:"#9865ff",class:"icon2"}),t("span",null,i(e(n)("\u6D4B\u901F\u7ED3\u679C")),1)]),t("p",null,i(e(n)("\u6D4B\u901F\u8282\u70B9"))+"\uFF1ACDN\u8282\u70B9 (\u5317\u4EAC)",1),t("div",OS,[t("div",NS,[t("div",VS,[Y(Kt,{color:"#155dfc",class:"icon_speed"}),GS,jS,US,t("div",qS,i(e(n)("\u4E0B\u8F7D\u901F\u5EA6")),1)]),t("div",RS,[Y(wS,{color:"#00a63e",class:"icon_speed1"}),WS,HS,JS,t("div",ZS,i(e(n)("\u4E0A\u4F20\u901F\u5EA6")),1)])]),KS])])]),Y(Xt,{modelValue:a.value,"onUpdate:modelValue":g[2]||(g[2]=p=>a.value=p),title:"\u5185\u7F51\u8BBF\u95EE\u5730\u5740",width:"550px",footerShow:!1,"show-close":!0},{default:V(()=>[QS]),_:1},8,["modelValue"])],64))}});var tz=N(XS,[["__scopeId","data-v-cbc39b94"]]);const ez={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},az=["fill"],oz=I({props:{color:{type:String,default:"#155dfc"}},setup(o){return(n,a)=>(r(),s("svg",ez,[t("path",{d:"M0 855.04a64.896 64.896 0 0 1 129.792 0v55.637333a64.896 64.896 0 0 1-129.792 0V855.04zM213.248 669.610667a64.896 64.896 0 0 1 129.792 0v241.066666a64.896 64.896 0 0 1-129.792 0v-241.066666zM426.496 484.181333a64.896 64.896 0 0 1 129.792 0v426.496a64.896 64.896 0 1 1-129.792 0v-426.496zM639.701333 298.752a64.896 64.896 0 1 1 129.792 0v611.925333a64.896 64.896 0 0 1-129.792 0V298.752zM852.949333 113.322667a64.896 64.896 0 0 1 129.792 0v797.354666a64.896 64.896 0 0 1-129.792 0V113.322667z",fill:o.color,"p-id":"11967"},null,8,az)]))}}),ha=o=>(ut("data-v-164df064"),o=o(),ct(),o),nz={id:"page"},iz={style:{"text-align":"left",display:"flex","align-items":"center","margin-bottom":"20px","padding-top":"4px"}},rz=ha(()=>t("svg",{width:"20",height:"20",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M20 30 L50 50 L20 70",stroke:"#d6dbf8","stroke-width":"8","stroke-linecap":"round",fill:"none"})],-1)),sz={style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color1)","line-height":"1.5em"}},dz={class:"container",style:{color:"black"}},lz={class:"title"},uz=ha(()=>t("span",null,"\u7F51\u7EDC\u6D4B\u901F\u5DE5\u5177",-1)),cz=ha(()=>t("p",null,"\u4E13\u4E1A\u7684\u7F51\u7EDC\u8FDE\u63A5\u901F\u5EA6\u68C0\u6D4B\u5DE5\u5177\uFF0C\u652F\u6301\u5185\u7F51\u548C\u5916\u7F51\u6D4B\u901F",-1)),pz=I({setup(o){const{$gettext:n}=J();return(a,l)=>{const u=_t("router-link");return r(),s(U,null,[t("div",nz,[t("div",iz,[Y(u,{to:"/",style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color)","line-height":"1.5em","margin-right":"4px"}},{default:V(()=>[dt(i(e(n)("\u9996\u9875")),1)]),_:1}),rz,t("a",sz,i(e(n)("\u7F51\u7EDC\u6D4B\u901F")),1)])]),t("div",dz,[t("div",lz,[t("div",null,[Y(oz,{class:"icon"}),uz]),cz]),Y(tz)])],64)}}});var fz=N(pz,[["__scopeId","data-v-164df064"]]);const Ce=o=>(ut("data-v-2b19eb04"),o=o(),ct(),o),mz=["onSubmit"],gz={class:"form-item"},vz={class:"label-name"},bz={class:"label-value switch_label"},hz={class:"label-flex pc-radio"},_z=["disabled"],xz=["disabled"],wz=Ce(()=>t("div",{class:"switch-button"},null,-1)),kz=[wz],yz={key:0,class:"form-item"},Fz={class:"label-name"},Ez={class:"label-value"},$z=["disabled"],Cz={value:100},Dz={value:70},Bz={value:50},Yz={value:30},Az={key:0,class:"select-arrow"},Sz={class:"form-item"},zz={class:"label-name"},Pz={class:"label-value"},Tz=["disabled","placeholder"],Iz={class:"form-item"},Mz={class:"label-name"},Lz={class:"label-value"},Oz=["disabled"],Nz=["value"],Vz={key:0,class:"select-arrow"},Gz={class:"form-item"},jz={class:"label-name"},Uz={class:"label-value"},qz=["type","disabled","placeholder"],Rz={key:0,class:"seeIcon",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},Wz=Ce(()=>t("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z",fill:"currentColor"},null,-1)),Hz=[Wz],Jz={key:1,class:"seeIcon",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},Zz=Ce(()=>t("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",fill:"currentColor"},null,-1)),Kz=[Zz],Qz={class:"form-item"},Xz={class:"label-name"},tP={class:"label-value"},eP=["disabled"],aP={value:!1},oP={value:!0},nP={key:0,class:"select-arrow"},iP={key:1,class:"form-item"},rP={class:"label-name"},sP={class:"label-value"},dP=["disabled"],lP=["value"],uP={key:0,class:"select-arrow"},cP={key:2,class:"form-item"},pP={class:"label-name"},fP={class:"label-value"},mP=["disabled"],gP=Ce(()=>t("option",{value:"20"},"20 MHz",-1)),vP=Ce(()=>t("option",{value:"40"},"40 MHz",-1)),bP={key:0,value:"auto"},hP={key:1,value:"80"},_P={key:2,value:"160"},xP={key:0,class:"select-arrow"},wP={key:3,class:"form-item"},kP={class:"label-name"},yP={class:"label-value"},FP=["disabled"],EP={value:0},$P=["value"],CP=["disabled"],DP={value:0},BP=jt('<option value="36" data-v-2b19eb04>36</option><option value="40" data-v-2b19eb04>40</option><option value="44" data-v-2b19eb04>44</option><option value="48" data-v-2b19eb04>48</option><option value="52" data-v-2b19eb04>52(DFS)</option><option value="56" data-v-2b19eb04>56(DFS)</option><option value="60" data-v-2b19eb04>60(DFS)</option><option value="64" data-v-2b19eb04>64(DFS)</option><option value="149" data-v-2b19eb04>149</option><option value="153" data-v-2b19eb04>153</option><option value="157" data-v-2b19eb04>157</option><option value="161" data-v-2b19eb04>161</option>',12),YP={key:2,class:"select-arrow"},AP={key:4,class:"form-item"},SP={class:"label-name"},zP={class:"label-value"},PP=["placeholder","disabled"],TP={class:"label-btns"},IP=["disabled"],MP=I({props:{data:null},emits:["getData"],setup(o,{emit:n}){const a=o,{$gettext:l,$ngettext:u}=J(),d=E(Object.assign({},a.data)),c=Yo("disabled"),k=E(!0),g=()=>{c.value||(d.value.disabled=!d.value.disabled)};$t(()=>d.value.disabled,y=>{m()});const p=()=>L(this,null,function*(){if(d.value.txpower===a.data.txpower)return;const y=$.Loading("\u914D\u7F6E\u4E2D...");try{const{data:f}=yield G.Quickwifi.Power.POST({device:d.value.device||"",txpower:d.value.txpower||0}),{error:F,success:w}=f;if(F)throw F;(w==null||w==0)&&$.Success("\u914D\u7F6E\u5B8C\u6210")}catch(f){throw $.Error("\u914D\u7F6E\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),f}finally{y.Close()}}),m=()=>L(this,null,function*(){const y=$.Loading("\u914D\u7F6E\u4E2D...");try{const{data:f}=yield G.Quickwifi.Switch.POST({ifaceName:d.value.ifaceName||"",enable:!d.value.disabled}),{error:F,success:w}=f;if(F)throw F;(w==null||w==0)&&$.Success("\u914D\u7F6E\u5B8C\u6210")}catch(f){throw console.error("\u8BF7\u6C42\u51FA\u9519:",f),$.Error("\u914D\u7F6E\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),f}finally{y.Close()}}),v=()=>L(this,null,function*(){const y=st({},d.value);delete y.encryptSelects,delete y.hwmodeSelects,delete y.disabled,delete y.txpower;const{data:f}=yield G.Quickwifi.Edit.POST(y),{error:F,success:w}=f;if(F)throw F;(w==null||w==0)&&$.Success("\u914D\u7F6E\u5B8C\u6210")}),b=()=>L(this,null,function*(){if(c.value)return;c.value=!0;const y=$.Loading("\u914D\u7F6E\u4E2D...");try{yield v(),yield n("getData")}catch(f){const F=$.Error(`${f}`);setTimeout(()=>{F.Close()},2e3)}finally{y.Close(),c.value=!1}});return(y,f)=>(r(),s("form",{class:"form-container",onSubmit:ft(b,["prevent"])},[t("div",gz,[t("div",vz,[t("span",null,i(e(l)("\u542F\u7528Wi-Fi")),1)]),t("div",bz,[t("div",hz,[t("label",null,[O(t("input",{type:"radio",value:!1,"onUpdate:modelValue":f[0]||(f[0]=F=>d.value.disabled=F),disabled:e(c)},null,8,_z),[[Bt,d.value.disabled]]),dt(" "+i(e(l)("\u5F00\u542F")),1)]),t("label",null,[O(t("input",{type:"radio",value:!0,"onUpdate:modelValue":f[1]||(f[1]=F=>d.value.disabled=F),disabled:e(c)},null,8,xz),[[Bt,d.value.disabled]]),dt(" "+i(e(l)("\u5173\u95ED")),1)])]),t("div",{class:"mobile-switch",onClick:g},[t("div",{class:lt(["switch-core",{"is-checked":!d.value.disabled,"is-disabled":e(c)}])},kz,2)])])]),d.value.isGuest?D("",!0):(r(),s("div",yz,[t("div",Fz,[t("span",null,i(e(l)("\u53D1\u5C04\u529F\u7387")),1)]),t("div",Ez,[O(t("select",{"onUpdate:modelValue":f[2]||(f[2]=F=>d.value.txpower=F),disabled:e(c),onChange:p},[t("option",Cz,i(e(l)("\u6700\u5927")),1),t("option",Dz,i(e(l)("\u9AD8")),1),t("option",Bz,i(e(l)("\u4E2D")),1),t("option",Yz,i(e(l)("\u4F4E")),1)],40,$z),[[pt,d.value.txpower]]),e(c)?D("",!0):(r(),s("div",Az))])])),t("div",Sz,[t("div",zz,[t("span",null,i(e(l)("Wi-Fi\u540D\u79F0\uFF08SSID\uFF09")),1)]),t("div",Pz,[O(t("input",{"onUpdate:modelValue":f[3]||(f[3]=F=>d.value.ssid=F),disabled:e(c),placeholder:e(l)("\u8BF7\u8F93\u5165WIFI\u540D\u79F0")},null,8,Tz),[[at,d.value.ssid]])])]),t("div",Iz,[t("div",Mz,[t("span",null,i(e(l)("Wi-Fi \u5B89\u5168\u6027")),1)]),t("div",Lz,[O(t("select",{"onUpdate:modelValue":f[4]||(f[4]=F=>d.value.encryption=F),disabled:e(c)},[(r(!0),s(U,null,tt(d.value.encryptSelects,F=>(r(),s("option",{value:F},i(F),9,Nz))),256))],8,Oz),[[pt,d.value.encryption]]),e(c)?D("",!0):(r(),s("div",Vz))])]),t("div",Gz,[t("div",jz,[t("span",null,i(e(l)("Wi-Fi \u5BC6\u7801")),1)]),t("div",Uz,[O(t("input",{"onUpdate:modelValue":f[5]||(f[5]=F=>d.value.key=F),class:"password_input",type:k.value?"password":"",disabled:e(c),placeholder:e(l)("\u8BF7\u8F93\u5165WIFI\u5BC6\u7801")},null,8,qz),[[Ao,d.value.key]]),e(c)?D("",!0):(r(),s("div",{key:0,onClick:f[6]||(f[6]=F=>k.value=!k.value)},[k.value?(r(),s("svg",Rz,Hz)):(r(),s("svg",Jz,Kz))]))])]),t("div",Qz,[t("div",Xz,[t("span",null,i(e(l)("SSID \u53EF\u89C1\u6027")),1)]),t("div",tP,[O(t("select",{"onUpdate:modelValue":f[7]||(f[7]=F=>d.value.hidden=F),disabled:e(c)},[t("option",aP,i(e(l)("\u663E\u793A")),1),t("option",oP,i(e(l)("\u9690\u85CF")),1)],8,eP),[[pt,d.value.hidden]]),e(c)?D("",!0):(r(),s("div",nP))])]),d.value.isGuest?D("",!0):(r(),s("div",iP,[t("div",rP,[t("span",null,i(e(l)("\u65E0\u7EBF\u6A21\u5F0F")),1)]),t("div",sP,[O(t("select",{"onUpdate:modelValue":f[8]||(f[8]=F=>d.value.hwmode=F),disabled:e(c)},[(r(!0),s(U,null,tt(d.value.hwmodeSelects,F=>(r(),s("option",{value:F},i(F),9,lP))),256))],8,dP),[[pt,d.value.hwmode]]),e(c)?D("",!0):(r(),s("div",uP))])])),d.value.isGuest?D("",!0):(r(),s("div",cP,[t("div",pP,[t("span",null,i(e(l)("\u9891\u5BBD")),1)]),t("div",fP,[O(t("select",{"onUpdate:modelValue":f[9]||(f[9]=F=>d.value.htmode=F),disabled:e(c)},[gP,vP,d.value.band==="2g"?(r(),s("option",bP," 20/40 MHz ")):D("",!0),d.value.band==="5g"?(r(),s("option",hP," 80 MHz ")):D("",!0),d.value.band==="5g"?(r(),s("option",_P," 160 MHz ")):D("",!0)],8,mP),[[pt,d.value.htmode]]),e(c)?D("",!0):(r(),s("div",xP))])])),d.value.isGuest?D("",!0):(r(),s("div",wP,[t("div",kP,[t("span",null,i(e(l)("\u4FE1\u9053")),1)]),t("div",yP,[d.value.band==="2g"?O((r(),s("select",{key:0,"onUpdate:modelValue":f[10]||(f[10]=F=>d.value.channel=F),disabled:e(c)},[t("option",EP,i(e(l)("\u81EA\u52A8")),1),(r(),s(U,null,tt(13,F=>t("option",{value:F},i(F),9,$P)),64))],8,FP)),[[pt,d.value.channel,void 0,{number:!0}]]):D("",!0),d.value.band==="5g"?O((r(),s("select",{key:1,"onUpdate:modelValue":f[11]||(f[11]=F=>d.value.channel=F),disabled:e(c)},[t("option",DP,i(e(l)("\u81EA\u52A8")),1),BP],8,CP)),[[pt,d.value.channel,void 0,{number:!0}]]):D("",!0),e(c)?D("",!0):(r(),s("div",YP))])])),d.value.isGuest?D("",!0):(r(),s("div",AP,[t("div",SP,[t("span",null,i(e(l)("\u7F51\u7EDC")),1)]),t("div",zP,[O(t("input",{type:"text",placeholder:e(l)("\u8BF7\u914D\u7F6E\u7F51\u7EDC\u540D\u79F0"),required:"","onUpdate:modelValue":f[12]||(f[12]=F=>d.value.network=F),disabled:e(c)},null,8,PP),[[at,d.value.network]])])])),t("div",TP,[t("button",{class:"btn primary-btn",disabled:e(c),onClick:b},i(e(l)("\u4FDD\u5B58\u914D\u7F6E")),9,IP)])],40,mz))}});var LP=N(MP,[["__scopeId","data-v-2b19eb04"]]);const qe=o=>(ut("data-v-42d0731d"),o=o(),ct(),o),OP={id:"page",class:"page-container"},NP={class:"mobile-tags-container"},VP={class:"tags-wrapper"},GP={class:"tags-scroll"},jP=["onClick"],UP={class:"more-btn-wrapper"},qP=qe(()=>t("div",{class:"fade-overlay"},null,-1)),RP=qe(()=>t("div",{class:"line"},null,-1)),WP=qe(()=>t("div",{class:"line"},null,-1)),HP=qe(()=>t("div",{class:"line"},null,-1)),JP=[RP,WP,HP],ZP={class:"page-flex"},KP={class:"page-sidebar"},QP=["onClick"],XP={class:"page-main"},tT={class:"popup-content"},eT={class:"popup-tags"},aT=["onClick"],oT={class:"popup-footer"},nT=I({setup(o){var F;const{$gettext:n}=J(),a=E(!1);So("disabled",a);const l=E([]),u=Te(),d=Pe(),c=E(String((F=u==null?void 0:u.query)==null?void 0:F.tab)),k=E(!1),g=w=>{var h;return(h=w.band)==null?void 0:h.toUpperCase()},p=w=>w.isGuest?w.band+"_Guest":w.ssid,m=w=>{a.value||(c.value=p(w),k.value=!1,c.value!==u.query.tab&&d.push({query:{tab:c.value}}))},v=E(),b=w=>{a.value||(v.value=p(w))},y=()=>{k.value=!1,v.value!==u.query.tab&&d.push({query:{tab:v.value}})};$t(()=>k.value,w=>{w?v.value=c.value:c.value=v.value});const f=()=>L(this,null,function*(){try{const{data:w}=yield G.Quickwifi.List.GET(),{error:h,result:_}=w;if(h)throw h;_!=null&&_.ifaces&&(l.value=_.ifaces.map(C=>vt(st({},C),{hidden:C.hidden||!1,disabled:C.disabled||!1,isGuest:C.isGuest||!1,channel:C.channel||0,txpower:C.txpower||0,ifaceIndex:C.ifaceIndex||0})));let x=!1;for(let C=0;C<l.value.length;C++)if(p(l.value[C])===c.value){m(l.value[C]),x=!0;break}!x&&l.value.length>0&&m(l.value[0])}catch(w){console.log(w)}});return f(),(w,h)=>(r(),s("div",OP,[t("div",NP,[t("div",VP,[t("div",GP,[(r(!0),s(U,null,tt(l.value,_=>(r(),s("div",{key:p(_),class:lt(c.value===p(_)?"tag-item active":"tag-item"),onClick:ft(x=>m(_),["stop"])},i(g(_))+" "+i(_.isGuest?` ${e(n)("\u8BBF\u5BA2")}`:"")+" Wi-Fi "+i(_.ifaceIndex?`[${_.ifaceIndex}]`:""),11,jP))),128))]),t("div",UP,[qP,t("div",{class:"more-btn",onClick:h[0]||(h[0]=_=>k.value=!0)},JP)])])]),t("div",ZP,[t("div",KP,[(r(!0),s(U,null,tt(l.value,_=>(r(),s("div",{key:p(_),class:lt(c.value===p(_)?"item activeItem":"item"),onClick:ft(x=>m(_),["stop"])},i(g(_))+" "+i(_.isGuest?` ${e(n)("\u8BBF\u5BA2")}`:"")+" Wi-Fi "+i(_.ifaceIndex?`[${_.ifaceIndex}]`:""),11,QP))),128))]),t("div",XP,[(r(!0),s(U,null,tt(l.value,_=>(r(),s(U,{key:p(_)},[c.value===p(_)?(r(),Z(LP,{key:0,data:_,onGetData:f},null,8,["data"])):D("",!0)],64))),128))])]),k.value?(r(),s("div",{key:0,class:"popup-overlay",onClick:h[2]||(h[2]=ft(_=>k.value=!1,["self"]))},[t("div",tT,[t("div",eT,[(r(!0),s(U,null,tt(l.value,_=>(r(),s("div",{key:p(_),class:lt(v.value===p(_)?"popup-tag-item active":"popup-tag-item"),onClick:ft(x=>b(_),["stop"])},i(g(_))+" "+i(_.isGuest?` ${e(n)("\u8BBF\u5BA2")}`:"")+" Wi-Fi "+i(_.ifaceIndex?`[${_.ifaceIndex}]`:""),11,aT))),128))]),t("div",oT,[t("button",{class:"cancel-btn",onClick:h[1]||(h[1]=_=>k.value=!1)},i(e(n)("\u53D6\u6D88")),1),t("button",{class:"confirm-btn",onClick:y},i(e(n)("\u786E\u5B9A")),1)])])])):D("",!0)]))}});var iT=N(nT,[["__scopeId","data-v-42d0731d"]]);const rT=()=>window.vue_base||"/cgi-bin/luci/admin/quickstart",fo=zo({history:Po(rT()),routes:[{name:"IndexPage",path:"/",meta:{title:"\u63A7\u5236\u53F0"},component:fh},{name:"NetworkPage",path:"/network",meta:{title:"\u7F51\u7EDC\u8BBE\u7F6E\u5411\u5BFC"},component:vh,children:[{path:"",component:Zh},{path:"pppoe",component:__},{path:"dhcp",component:nx},{path:"gateway",component:Hx}]},{path:"/quickwifi",component:iT},{name:"RaidPage",path:"/raid",meta:{title:"raid\u5411\u5BFC"},component:by},{name:"SmartPage",path:"/smart",meta:{title:"smart\u68C0\u6D4B"},component:Ey,children:[{path:"",component:$$},{path:"task",component:V$},{path:"log",component:q$}]},{path:"/interfaceconfig",component:eD},{path:"/devicemanagement",component:mS},{path:"/networkSpeedTest",component:fz}]});fo.beforeEach((o,n)=>(o.meta.title,!0));const Ct=xt(sn);Ct.component("svg-menu",mn);Ct.component("svg-system",xn);Ct.component("svg-download",$n);Ct.component("svg-store",Pn);Ct.component("svg-info",Nn);Ct.component("svg-disk",ui);Ct.component("svg-nav",vi);Ct.component("progress-item",Ua);Ct.component("svg-view-show",Ni);Ct.component("svg-view-hidden",Ri);Ct.component("article-item",Xi);Ct.component("switch-box",qa);Ct.component("editable-select",Zt);Ct.use(Ra);Ct.use(fo);Ct.use(To());Mo(Ct).finally(()=>Ct.mount("#app"))});export default sT();
|