4 lines
487 KiB
JavaScript
4 lines
487 KiB
JavaScript
var fo=Object.defineProperty,mo=Object.defineProperties;var go=Object.getOwnPropertyDescriptors;var _a=Object.getOwnPropertySymbols;var bo=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable;var Re=(o,n,a)=>n in o?fo(o,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[n]=a,rt=(o,n)=>{for(var a in n||(n={}))bo.call(n,a)&&Re(o,a,n[a]);if(_a)for(var a of _a(n))vo.call(n,a)&&Re(o,a,n[a]);return o},bt=(o,n)=>mo(o,go(n));var ho=(o,n)=>()=>(n||o((n={exports:{}}).exports,n),n.exports);var be=(o,n,a)=>(Re(o,typeof n!="symbol"?n+"":n,a),a);var L=(o,n,a)=>new Promise((l,c)=>{var d=b=>{try{_(a.next(b))}catch(p){c(p)}},u=b=>{try{_(a.throw(b))}catch(p){c(p)}},_=b=>b.done?l(b.value):Promise.resolve(b.value).then(d,u);_((a=a.apply(o,n)).next())});import{a as _o,c as xo,d as we,b as T,e as Z,u as e,o as r,f as s,g as t,t as i,n as ht,h as C,i as B,r as xt,j as lt,k as Yt,w as N,v as Rt,l as za,m as J,p as G,q as E,s as $t,x as Pt,y as pt,F as U,z as tt,A as ot,B as jt,C as ct,D as ut,E as ke,G as ee,T as At,H as Nt,I as mt,J as _t,K as dt,L as vt,M as Bt,N as Qe,O as Pa,P as Ta,Q as Ia,R as Xe,S as ta,U as Ma,V as ea,W as aa,X as wo,Y as oa,Z as ye,_ as ko,$ as yo,a0 as na,a1 as Fo,a2 as Pe,a3 as Eo,a4 as Te,a5 as $o,a6 as Co,a7 as Do,a8 as Bo,a9 as Yo,aa as Ao,ab as So,ac as zo}from"./vendor.js?v=4c8355cf";var mT=ho(ae=>{const Po=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function a(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerpolicy&&(d.referrerPolicy=c.referrerpolicy),c.crossorigin==="use-credentials"?d.credentials="include":c.crossorigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=a(c);fetch(c.href,d)}};Po();const Gt={language:void 0,numberFormat:new Intl.NumberFormat("en",{notation:"compact"})},To=o=>L(ae,null,function*(){const n=window.vue_lang;new Date().getTime();let a={};try{const d=yield _o({url:window.vue_lang_data,method:"GET"});d.data&&(a=d.data)}catch(d){console.log(d)}const l=xo({defaultLanguage:n,mutedLanguages:["zh-cn"],translations:a,setGlobalProperties:!1,provideDirective:!1,provideComponent:!1});o.use(l),Gt.language=l;const{$gettext:c}=l;window.$i18n=c;try{Gt.numberFormat=new Intl.NumberFormat(n,{notation:"compact"})}catch(d){console.error("Intl.NumberFormat unsupported lang",n,d)}}),H=()=>{if(Gt.language)return Gt.language;throw new Error("I18N Uninitialized!")},Ie=()=>({$gettext:(o,n,a)=>{if(Gt.language)return Gt.language.$gettext(o,n,a);throw new Error("I18N Uninitialized!")},$ngettext:(o,n,a,l,c)=>{if(Gt.language)return Gt.language.$ngettext(o,n,a,l,c);throw new Error("I18N Uninitialized!")}}),De=o=>typeof o=="number"?Gt.numberFormat.format(o):"?",{$gettext:Io,$ngettext:vT}=Ie(),La=(o,n)=>L(ae,null,function*(){return new Promise((a,l)=>L(ae,null,function*(){try{const c=yield fetch(o,n);if(Math.floor(c.status/100)!=2)throw c.status+" "+c.statusText;const d=rt({},c);d.data=yield c.json(),a(d)}catch(c){const d=c;l(Io("\u7F51\u7EDC\u5F02\u5E38\uFF1A")+((d==null?void 0:d.message)||c))}}))});class ia{constructor(n){be(this,"config",{baseURL:"",headers:{}});be(this,"useRequest",n=>n);be(this,"useResponse",n=>n);be(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,c)=>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=rt({},d.headers));const _=yield fetch(n,a),b=rt({},_);b.data=yield _.json(),l(this.useResponse(b))}catch(d){this.useError(d),c(d)}}))})}TEXT(n,a){return L(this,null,function*(){return new Promise((l,c)=>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=rt({},d.headers));const _=yield fetch(n,a),b=rt({},_);b.data=yield _.text(),l(b)}catch(d){this.useError(d),c(d)}}))})}interceptors(){const n=this;return{requset:{use(a){n.useRequest=a}},response:{use(a,l){n.useResponse=a,l&&(n.useError=l)}}}}}const Oa=ia.create({});Oa.interceptors().requset.use(o=>o);Oa.interceptors().response.use(o=>(o.data&&o.data.success==null&&o.data.success==0,o));const{$gettext:Na,$ngettext:hT}=Ie(),Mo="/cgi-bin/luci/istore",Lo="/cgi-bin/luci/admin";let Ae=!1;const q=(o,n)=>(o.indexOf("//")==-1&&(o=`${Mo}${o}`),La(o,n).then(a=>(a!=null&&a.data&&a.data.success==-1001&&a.data.error=="Forbidden"&&(Ae||(Ae=!0,alert(Na("\u767B\u5F55\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55")),location.reload())),a))),Oo=(o,n)=>(o.indexOf("//")==-1&&(o=`${Lo}${o}`),La(o,n).then(a=>(a!=null&&a.data&&a.data.success==-1001&&a.data.error=="Forbidden"&&(Ae||(Ae=!0,alert(Na("\u767B\u5F55\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55")),location.reload())),a))),No={Statistics:{GET(){return q("/u/network/statistics/",{method:"GET"})}},Status:{GET(){return q("/u/network/status/",{method:"GET"})}},Device:{List:{GET(){return q("/network/device/list/",{method:"GET"})}}},Homebox:{Enable:{POST(){return q("/network/homebox/enable/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},CheckPublickNet:{POST(o){return q("/network/checkPublicNet/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetInterfaceConfig:{GET(){return q("/network/interface/config/",{method:"GET",headers:{"Content-Type":"application/json;charset=utf-8"}})}},POSTInterfaceConfig:{POST(o){return q("/network/interface/config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},PortList:{GET(){return q("/network/port/list/",{method:"GET",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},Vo={Version:{GET(){return q("/u/system/version/",{method:"GET"})}},CheckUpdate:{GET(){return q("/system/check-update/",{method:"GET"})}},AutoCheckUpdate:{POST(o){return q("/system/auto-check-update/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Reboot:{POST(o){return q("/system/reboot/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Status:{GET(){return q("/system/status/",{method:"GET"})}}},Go={Disk:{Status:{GET(){return q("/nas/disk/status/",{method:"GET"})}},Erase:{POST(o){return q("/nas/disk/erase",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Init:{POST:o=>q("/nas/disk/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},InitRest:{POST:o=>q("/nas/disk/initrest/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},Partition:{Format:{POST:o=>q("/nas/disk/partition/format",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},Mount:{POST:o=>q("/nas/disk/partition/mount",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Service:{Status:{GET(){return q("/u/nas/service/status/",{method:"GET"})}}},Samba:{Create:{POST(o){return q("/nas/samba/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Webdav:{Create:{POST(o){return q("/nas/webdav/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Status:{GET(){return q("/nas/webdav/status/",{method:"GET"})}}},Linkease:{Enable:{POST(){return q("/u/nas/linkease/enable",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},Sandbox:{POST(o){return q("/nas/sandbox/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetSandbox:{GET(){return q("/nas/sandbox/",{method:"GET"})}},SandboxDisks:{GET(){return q("/nas/sandbox/disks/",{method:"GET"})}},SandboxCommit:{POST(){return q("/u/nas/sandbox/commit/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify({})})}},SandboxReset:{POST(){return q("/nas/sandbox/reset/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}},SandboxExit:{POST(){return q("/nas/sandbox/exit/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},jo={Check:{POST(o){return q("/app/check/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Install:{POST(o){return q("/app/install/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Uo={Pppoe:{GET(){return q("/guide/pppoe/",{method:"GET"})},POST(o){return q("/guide/pppoe/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DnsConfig:{GET(){return q("/guide/dns-config/",{method:"GET"})},POST(o){return q("/guide/dns-config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DhcpClient:{POST(o){return q("/guide/dhcp-client/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},ClientModel:{GET(){return q("/guide/client-mode/",{method:"GET"})},POST(o){return q("/guide/client-mode/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GatewayRouter:{POST(o){return q("/guide/gateway-router/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DockerStatus:{GET(){return q("/guide/docker/status/",{method:"GET"})}},DockerPartitionList:{GET(){return q("/guide/docker/partition/list/",{method:"GET"})}},DockerTransfer:{POST(o){return q("/guide/docker/transfer/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DockerSwitch:{POST(o){return q("/guide/docker/switch/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DownloadService:{Status:{GET(){return q("/guide/download-service/status/",{method:"GET"})}}},DownloadPartition:{List:{GET(){return q("/guide/download/partition/list/",{method:"GET"})}}},Aria2Init:{POST(o){return q("/guide/aria2/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},qbitorrentInit:{POST(o){return q("/guide/qbittorrent/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},transmissionInit:{POST(o){return q("/guide/transmission/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetLan:{GET(){return q("/guide/lan/",{method:"GET"})}},LanIp:{POST(o){return q("/guide/lan/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},SoftSource:{POST(o){return q("/guide/soft-source/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetSoftSource:{GET(){return q("/guide/soft-source/",{method:"GET"})}},SoftSourceList:{GET(){return q("/guide/soft-source/list/",{method:"GET"})}},PostDdns:{POST(o){return q("/u/guide/ddns/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},GetDdns:{GET(){return q("/u/guide/ddns/",{method:"GET"})}},Ddnsto:{POST(o){return q("/guide/ddnsto/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},DdntoConfig:{GET(){return q("/guide/ddnsto/config/",{method:"GET"})}},DdnstoAddress:{POST(o){return q("/guide/ddnsto/address/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},qo={Create:{POST(o){return q("/raid/create/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Delete:{POST(o){return q("/raid/delete/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Add:{POST(o){return q("/raid/add/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Remove:{POST(o){return q("/raid/remove/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Recover:{POST(o){return q("/raid/recover/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Detail:{POST(o){return q("/raid/detail/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},List:{GET(){return q("/raid/list/",{method:"GET"})}},CreateList:{GET(){return q("/raid/create/list/",{method:"GET"})}},Autofix:{GET(){return q("/raid/autofix/",{method:"GET"})}}},Ro={Log:{GET(){return q("/smart/log/",{method:"GET"})}},List:{GET(){return q("/u/smart/list/",{method:"GET"})}},Config:{GET(){return q("/smart/config/",{method:"GET"})},POST(o){return q("/smart/config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}},Test:{POST(o){return q("/u/smart/test/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})},Result:{POST(o){return q("/smart/test/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Attribute:{Result:{POST(o){return q("/smart/attribute/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}},Extend:{Result:{POST(o){return q("/smart/extend/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(o)})}}}},Wo={List:{GET(){return q("/wireless/list-iface/",{method:"GET"})}},Switch:{POST(o){return q("/wireless/enable-iface/",{body:JSON.stringify(o),method:"POST"})}},Power:{POST(o){return q("/wireless/set-device-power/",{body:JSON.stringify(o),method:"POST"})}},Edit:{POST(o){return q("/wireless/edit-iface/",{body:JSON.stringify(o),method:"POST"})}},Setup:{POST(o){return q("/wireless/setup/",{body:JSON.stringify(o),method:"POST"})}}},Ho={getInstalled:{GET(){return Oo("/store/installed/",{method:"GET"})}},needSetup:{GET(){return q("/guide/need/setup/",{method:"GET"})}},setPassword:{POST(o){return q("/system/setPassword/",{body:JSON.stringify(o),method:"POST"})}},completeGuide:{POST(){return q("/guide/finish/setup/",{method:"POST"})}}},Jo={listDevices:{GET(){return q("/lanctrl/listDevices/",{method:"GET"})}},staticDeviceConfig:{POST(o){return q("/lanctrl/staticDeviceConfig/",{body:JSON.stringify(o),method:"POST"})}},globalConfigs:{GET(){return q("/lanctrl/globalConfigs/",{method:"GET"})}},speedLimitConfig:{POST(o){return q("/lanctrl/speedLimitConfig/",{body:JSON.stringify(o),method:"POST"})}},listStaticDevices:{GET(){return q("/lanctrl/listStaticDevices/",{method:"GET"})}},listSpeedLimitedDevices:{GET(){return q("/lanctrl/listSpeedLimitedDevices/",{method:"GET"})}},dhcpGatewayConfig:{POST(o){return q("/lanctrl/dhcpGatewayConfig/",{body:JSON.stringify(o),method:"POST"})}},dhcpTagsConfig:{POST(o){return q("/lanctrl/dhcpTagsConfig/",{body:JSON.stringify(o),method:"POST"})}},enableSpeedLimit:{POST(o){return q("/lanctrl/enableSpeedLimit/",{body:JSON.stringify(o),method:"POST"})}},enableFloatGateway:{POST(o){return q("/lanctrl/enableFloatGateway/",{body:JSON.stringify(o),method:"POST"})}},speedsForDevices:{GET(){return q("/lanctrl/speedsForDevices/",{method:"GET"})}},speedsForOneDevice:{POST(o){return q("/lanctrl/speedsForOneDevice/",{body:JSON.stringify(o),method:"POST"})}}},Zo={GET(){return q("/system/module-settings/",{method:"GET"})},POST(o){return q("/system/module-settings/",{body:JSON.stringify(o),method:"POST"})}};var Ko=Object.freeze(Object.defineProperty({__proto__:null,Network:No,System:Vo,Nas:Go,App:jo,Guide:Uo,Raid:qo,Smart:Ro,Quickwifi:Wo,GuidePage:Ho,DeviceMangement:Jo,ModuleSettings:Zo},Symbol.toStringTag,{value:"Module"})),j=rt({},Ko);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 Qo=we("nas",{state:()=>({webdav:{}})}),Fe=we("network",{state:()=>({status:{},deviceList:{}}),getters:{},actions:{updateNetworkStatus(o){this.status=o},requestDeviceList(){j.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++}}}),Me=we("system",{state:()=>({version:{},checkUpdate:null,updateChecked:!1,systemStatus:{}}),getters:{},actions:{incrTime(){var o;(o=this.systemStatus)!=null&&o.uptime&&this.systemStatus.uptime++},requestVersion(){j.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,j.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 xa=!1;const Xo=()=>{if(xa)return;xa=!0;let o=!0,n=!0;const a=Fe(),l=Me(),c=function(){return(!o&&document.hidden?Promise.resolve():j.System.Status.GET().then(u=>{u!=null&&u.data.result&&l.updateSystemStatus(u.data.result)})).finally(()=>{setTimeout(c,5e3),o&&(setInterval(()=>{l.incrTime()},1e3),o=!1)})},d=function(){return(!n&&document.hidden?Promise.resolve():j.Network.Status.GET().then(u=>{if(u!=null&&u.data){const{result:_}=u==null?void 0:u.data;_&&a.updateNetworkStatus(_)}})).finally(()=>{setTimeout(d,5e3),n&&(setInterval(()=>{a.incrTime()},1e3),n=!1)})};d(),a.requestDeviceList(),setTimeout(()=>{l.requestVersion(),c()},1100)};var O=(o,n)=>{const a=o.__vccOpts||o;for(const[l,c]of n)a[l]=c;return a};const tn=T({setup(o){const{$gettext:n,$ngettext:a}=H(),l=ra(),c=Z(()=>l.portitemStyle.portitem),d=Z(()=>l.portitemStyle.show),u=Z(()=>({bottom:`calc(100% - ${l.portitemStyle.top}px)`,left:`${l.portitemStyle.left}px`})),_=f=>{switch(f){case"full":return n("\u5168\u53CC\u5DE5");case"half":return n("\u534A\u53CC\u5DE5")}},b=f=>{l.portitemStyle.show=!0},p=f=>{l.portitemStyle.show=!1};return(f,g)=>e(d)?(r(),s("div",{key:0,class:"disk-item-tooltip",style:ht(e(u)),onMouseenter:b,onMouseleave:p},[t("div",null,i(_(e(c).duplex)),1),t("div",null,i(e(n)("\u540D\u79F0\uFF1A"))+i(e(c).name||"--"),1),t("div",null,i(e(n)("MAC\uFF1A"))+i(e(c).macAddress||"--"),1),t("div",null,i(e(n)("\u63A5\u6536\uFF1A"))+i(e(c).rx_packets||"--"),1),t("div",null,i(e(n)("\u53D1\u9001\uFF1A"))+i(e(c).tx_packets||"--"),1)],36)):C("",!0)}});var en=O(tn,[["__scopeId","data-v-0698ba82"]]);const an={id:"main"},on=T({setup(o){return(n,a)=>{const l=xt("router-view");return r(),s("div",an,[B(l),B(en)])}}});var nn=O(on,[["__scopeId","data-v-9bc295c2"]]);const rn={},sn={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"},dn=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),ln=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),cn=[dn,ln];function un(o,n){return r(),s("svg",sn,cn)}var pn=O(rn,[["render",un]]);const fn={},mn={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"},gn=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),bn=[gn];function vn(o,n){return r(),s("svg",mn,bn)}var hn=O(fn,[["render",vn]]);const _n={},xn={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"},wn=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),kn=[wn];function yn(o,n){return r(),s("svg",xn,kn)}var Fn=O(_n,[["render",yn]]);const En={},$n={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"},Cn=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),Dn=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),Bn=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),Yn=[Cn,Dn,Bn];function An(o,n){return r(),s("svg",$n,Yn)}var Sn=O(En,[["render",An]]);const zn={},Pn={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"},Tn=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),In=[Tn];function Mn(o,n){return r(),s("svg",Pn,In)}var Ln=O(zn,[["render",Mn]]);const On={},Nn={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"},Vn=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),Gn=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),jn=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),Un=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),qn=t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"80692"},null,-1),Rn=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),Wn=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),Hn=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),Jn=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),Zn=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),Kn=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),Qn=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),Xn=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),ti=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),ei=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),ai=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),oi=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),ni=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),ii=t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"80706"},null,-1),ri=[Vn,Gn,jn,Un,qn,Rn,Wn,Hn,Jn,Zn,Kn,Qn,Xn,ti,ei,ai,oi,ni,ii];function si(o,n){return r(),s("svg",Nn,ri)}var di=O(On,[["render",si]]);const li={},ci={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"},ui=t("path",{d:"M894.185422 128.023792 129.814578 445.743994 445.99982 577.744353 571.860343 893.929596Z","p-id":"2997"},null,-1),pi=[ui];function fi(o,n){return r(),s("svg",ci,pi)}var mi=O(li,[["render",fi]]);const gi={class:"progress"},bi=T({props:{value:{type:Number,required:!0},text:{type:String}},setup(o){const n=o,a=Z(()=>n.value>=80?"#e45e5e":n.value>=70?"#ff9800":n.value>=60?"#297ff3":n.value>0?"#53c31b":"");return(l,c)=>(r(),s("div",gi,[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 Va=O(bi,[["__scopeId","data-v-733828e1"]]);const vi={},hi={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"},_i=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),xi=[_i];function wi(o,n){return r(),s("svg",hi,xi)}var ki=O(vi,[["render",wi]]);const yi={},Fi={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"},Ei=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),$i=[Ei];function Ci(o,n){return r(),s("svg",Fi,$i)}var Di=O(yi,[["render",Ci]]);const Bi={class:"checkbox_switch"},Yi={class:"checkbox_switch_on"},Ai={class:"checkbox_switch_off"},Si=T({props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(o,{emit:n}){const a=o,l=Z({get:()=>a.modelValue.valueOf(),set:c=>n("update:modelValue",c)});return(c,d)=>(r(),s("label",Bi,[N(t("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=u=>za(l)?l.value=u:null)},null,512),[[Rt,e(l)]]),t("span",Yi,[B(ki)]),t("span",Ai,[B(Di)]),Yt(c.$slots,"default",{},void 0,!0)]))}});var Ga=O(Si,[["__scopeId","data-v-76324716"]]);const zi={},Pi={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"},Ti=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),Ii=[Ti];function Mi(o,n){return r(),s("svg",Pi,Ii)}var Li=O(zi,[["render",Mi]]);const Oi={},Ni={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"},Vi=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),Gi=[Vi];function ji(o,n){return r(),s("svg",Ni,Gi)}var Ui=O(Oi,[["render",ji]]);const qi={};function Ri(o,n){return r(),s("article",null,[Yt(o.$slots,"default",{},void 0,!0)])}var Wi=O(qi,[["render",Ri],["__scopeId","data-v-bd286d4e"]]);const Hi={class:"cover"},Ji={class:"thumbnail"},Zi=T({emits:["click"],setup(o,{emit:n}){const a=()=>{n("click")};return(l,c)=>(r(),J(Wi,null,{default:G(()=>[t("a",{onClick:a},[t("div",Hi,[t("div",Ji,[Yt(l.$slots,"default",{},void 0,!0)])])])]),_:3}))}});var Ki=O(Zi,[["__scopeId","data-v-123deb20"]]);const Qi={class:"select-editable"},Xi={selected:"",value:""},tr=["value"],er={value:"useInput"},ar=["placeholder"],or=T({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:c}=H(),d=E(""),u=E(""),_=Z({get:()=>a.modelValue.valueOf(),set:g=>n("update:modelValue",g)}),b=g=>{g===d.value||d.value==="useInput"&&g===u.value||(g===""||a.options.some(v=>v.key===g)?d.value=g:(u.value=g,d.value="useInput"))};$t(()=>a.modelValue,g=>{b(g)}),Pt(()=>{const g=_.value;b(g)});const p=g=>{d.value==="useInput"?_.value=u.value:_.value=d.value},f=g=>{_.value=u.value};return(g,v)=>(r(),s("label",null,[t("div",Qi,[N(t("select",{"onUpdate:modelValue":v[0]||(v[0]=w=>d.value=w),autocomplete:"off",onChange:p},[t("option",Xi,i(e(l)("\u8BF7\u9009\u62E9%{title}",{title:o.title})),1),(r(!0),s(U,null,tt(o.options,(w,m)=>(r(),s("option",{value:w.key,key:m},i(w.value||w.key),9,tr))),128)),t("option",er,i(e(l)("- -\u81EA\u5B9A\u4E49- -")),1)],544),[[pt,d.value,void 0,{trim:!0}]]),d.value=="useInput"?N((r(),s("input",{key:0,type:"text","onUpdate:modelValue":v[1]||(v[1]=w=>u.value=w),required:"",placeholder:e(l)("\u8BF7\u8F93\u5165%{title}",{title:o.title}),onChange:f},null,40,ar)),[[ot,u.value,void 0,{trim:!0}]]):C("",!0)])]))}});var Zt=O(or,[["__scopeId","data-v-0b6f3a7d"]]);const nr={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"},ir=T({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",nr,[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 rr=O(ir,[["__scopeId","data-v-0ec4e762"]]);const sr={},dr={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":""},lr=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),cr=[lr];function ur(o,n){return r(),s("svg",dr,cr)}var pr=O(sr,[["render",ur]]);const fr={},mr={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"},gr=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),br=[gr];function vr(o,n){return r(),s("svg",mr,br)}var hr=O(fr,[["render",vr]]);const _r=o=>(ct("data-v-b934e2ce"),o=o(),ut(),o),xr=["href","title"],wr=_r(()=>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)),kr=[wr],yr=T({props:{type:null},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>{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,u)=>(r(),s("a",{href:e(c),target:"_blank",title:e(a)("\u8DF3\u8F6C\u6559\u7A0B")},kr,8,xr))}});var Fr=O(yr,[["__scopeId","data-v-b934e2ce"]]),ja={install:o=>{o.component("icon-loading",rr),o.component("icon-success",pr),o.component("icon-error",hr),o.component("GlHelp",Fr)}};const Er={class:"reusable-card",role:"group"},$r={class:"card-header"},Cr={class:"left"},Dr={class:"title"},Br={class:"settings-wrapper"},Yr={key:0,class:"settings-btn"},Ar={class:"dropdown-menu"},Sr={class:"card-body"},zr={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;H(),Pt(()=>document.addEventListener("click",c)),ke(()=>document.removeEventListener("click",c));const l=Z({get:()=>a.isSettingsMenuOpen,set:d=>n("update:isSettingsMenuOpen",d)}),c=d=>{d.target.closest(".settings-wrapper")||(l.value=!1)};return(d,u)=>(r(),s("div",Er,[t("div",$r,[t("div",Cr,[Yt(d.$slots,"icon",{},void 0,!0),t("div",Dr,i(o.title),1)]),t("div",Br,[o.showSettings?(r(),s("div",Yr,[Yt(d.$slots,"settings",{},void 0,!0)])):C("",!0),B(At,{name:"fade"},{default:G(()=>[N(t("div",Ar,[Yt(d.$slots,"settings-menu",{},void 0,!0)],512),[[ee,e(l)]])]),_:3})])]),t("div",Sr,[Yt(d.$slots,"default",{},void 0,!0)])]))}};var Wt=O(zr,[["__scopeId","data-v-dbb174c6"]]);const Pr={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Tr=["fill"],Ir=["fill"],Mr=["fill"],Kt=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Pr,[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,Tr),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,Ir),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,Mr)]))}}),Lr={},Or={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"},Nr=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),Vr=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),Gr=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),jr=[Nr,Vr,Gr];function Ur(o,n){return r(),s("svg",Or,jr)}var Ee=O(Lr,[["render",Ur]]);const qr={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"128",height:"128"},Rr=["fill"],Wr=T({props:{color:{type:String,default:"#000000"}},setup(o){return(n,a)=>(r(),s("svg",qr,[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,Rr)]))}}),Hr=o=>(ct("data-v-75eeccd3"),o=o(),ut(),o),Jr={id:"actioner"},Zr={key:0,class:"action-container"},Kr={class:"action-container_header"},Qr=Hr(()=>t("div",null,null,-1)),Xr={class:"title"},ts=["title"],es={class:"action-container_body"},as=T({props:{Close:{type:Function},type:{type:Number},title:String},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(!1);Pt(()=>{c.value=!0,document.body.setAttribute("lock-scroll","true")}),Nt(()=>{document.body.removeAttribute("lock-scroll")});const d=()=>{n.Close&&(c.value=!1,setTimeout(()=>{n.Close&&n.Close()},300))};return(u,_)=>(r(),s("div",Jr,[t("div",{class:"bg",onClick:d}),o.type!=null?Yt(u.$slots,"default",{key:0},void 0,!0):(r(),s(U,{key:1},[c.value?(r(),s("div",Zr,[t("div",Kr,[Qr,t("div",Xr,i(o.title),1),t("button",{class:"close",title:e(a)("\u5173\u95ED"),onClick:d},[B(Wr)],8,ts)]),t("div",es,[Yt(u.$slots,"default",{},void 0,!0)])])):C("",!0)],64))]))}});var os=O(as,[["__scopeId","data-v-75eeccd3"]]);const wt=T({props:{Close:{type:Function},type:{type:Number},title:String},setup(o){return(n,a)=>(r(),J(os,{Close:o.Close,type:o.type,title:o.title},{default:G(()=>[Yt(n.$slots,"default")]),_:3},8,["Close","type","title"]))}}),sa=o=>(ct("data-v-7732abe2"),o=o(),ut(),o),ns={class:"disk-item"},is=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)),rs={class:"disk-item_f"},ss={class:"disk-item_venderModel"},ds={class:"disk-item_used"},ls=sa(()=>t("div",{class:"auto"},null,-1)),cs={class:"disk-item-r"},us={class:"disk-children"},ps=["onClick"],fs=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)),ms={key:0},gs={key:1},bs=T({props:{disk:{type:Object,required:!0},currDisk:{type:Object},currMountPoint:{type:Object},onDisk:{type:Function,required:!0}},setup(o){var u,_;const n=o,{$gettext:a,$ngettext:l}=H(),c=E(!1);n.currDisk!=null&&((u=n.currDisk)==null?void 0:u.venderModel)==((_=n.disk)==null?void 0:_.venderModel)&&(c.value=!0);const d=b=>{c.value=!c.value,n.onDisk(b,null)};return(b,p)=>{var f;return r(),s("ul",ns,[t("li",{class:lt(["disk-info",{on:o.disk.venderModel==((f=o.currDisk)==null?void 0:f.venderModel),nopoint:o.disk.childrens==null||o.disk.childrens.length==0}]),onClick:p[0]||(p[0]=g=>d(o.disk))},[is,t("div",rs,[t("div",ss,i(o.disk.venderModel),1),t("div",ds,i(o.disk.used)+"/"+i(o.disk.size),1)]),ls,t("div",cs,i(o.disk.path),1)],2),N(t("div",us,[(r(!0),s(U,null,tt(o.disk.childrens,g=>{var v,w;return r(),s("li",{class:lt(["disk-children_item",{on:g.uuid==((v=o.currMountPoint)==null?void 0:v.uuid)&&g.path==((w=o.currMountPoint)==null?void 0:w.path)}]),onClick:m=>o.onDisk(o.disk,g)},[fs,g.mountPoint?(r(),s("span",ms," \u3010"+i(g.filesystem)+"\u3011 "+i(g.mountPoint)+" \uFF08"+i(g.used)+"/"+i(g.total)+"\uFF09 ["+i(g.uuid)+"] ",1)):(r(),s("span",gs," \u3010"+i(g.filesystem)+"\u3011 "+i(g.mountPoint||g.path||e(a)("\u672A\u6302\u8F7D\u78C1\u76D8"))+" ["+i(g.uuid)+"] ",1))],10,ps)}),256))],512),[[ee,c.value]])])}}});var wa=O(bs,[["__scopeId","data-v-7732abe2"]]);let Be=0;const vs={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())}}},Le=o=>(ct("data-v-6935a479"),o=o(),ut(),o),hs={key:0,class:"loading icon"},_s=Le(()=>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)),xs=[_s],ws={key:1,class:"success icon"},ks=Le(()=>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)),ys=[ks],Fs={key:2,class:"error icon"},Es=Le(()=>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)),$s=[Es],Cs={key:3,class:"warning icon"},Ds=Le(()=>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)),Bs=[Ds];function Ys(o,n,a,l,c,d){return r(),J(At,{name:"el-fade-in-linear"},{default:G(()=>[c.show?(r(),s("div",{key:0,class:"toast",onClick:n[1]||(n[1]=u=>d.Stop())},[a.type=="loading"?(r(),s("div",hs,xs)):a.type=="success"?(r(),s("div",ws,ys)):a.type=="error"?(r(),s("div",Fs,$s)):a.type=="warning"?(r(),s("div",Cs,Bs)):C("",!0),t("div",{class:"message",onClick:n[0]||(n[0]=mt(()=>{},["stop"]))},i(d.Message),1)])):C("",!0)]),_:1})}var As=O(vs,[["render",Ys],["__scopeId","data-v-6935a479"]]);const _e=new Map,oe=o=>{const n=_t(As,bt(rt({},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=>(ct("data-v-d72e7026"),o=o(),ut(),o),Ss=["onSubmit"],zs={class:"action-header"},Ps={class:"action-header_title"},Ts={class:"action-body"},Is={class:"disk-info"},Ms=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)),Ls={key:0,class:"disk-info_mount-name"},Os={key:1,class:"disk-info_mount-name"},Ns={key:0,class:"label-item"},Vs={class:"label-item_key"},Gs={class:"label-item_path"},js={class:"label-item"},Us={class:"label-item_key"},qs={class:"label-item_value"},Rs=["disabled"],Ws={key:0,value:""},Hs={value:"format"},Js={key:1,value:"default"},Zs={class:"label-item_value"},Ks={key:0,class:"msg"},Qs={key:1,class:"msg"},Xs={class:"action-footer"},td=da(()=>t("div",{class:"auto"},null,-1)),ed=["disabled"],ad=["disabled"],od={key:1,class:"action result"},nd={class:"action-body"},id=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)),rd={class:"action-body_msg"},sd={key:0,class:"action-body_info"},dd={key:1,class:"action-body_info"},ld={class:"btns"},cd=T({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}=H(),c=()=>{n.Close&&n.Close()},d=y=>{y.preventDefault(),n.Cancel&&n.Cancel(),c()},u=y=>{n.Next&&n.Next(y),c()},_=E(!1),b=E(0),p=y=>{b.value=y},f=E(n.action=="nas"?"":"format"),g=E(),v=E(),w=()=>{switch(f.value){case"format":F();return;case"default":m();return;default:$.Warning(a("\u8BF7\u9009\u62E9\u9009\u9879"));return}},m=()=>{let y="";const D=n.mount;if(D!=null&&D.mountPoint!=null&&(y=D.mountPoint),y!=""){u(y);return}$.Warning(a("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84"))},F=()=>{const y=n.disk,D=n.mount;if(D){const A=D.mountPoint||D.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:A||""}))||!confirm(a("\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 %{partname}?",{partname:A||""})))return;x(D);return}if(y){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:y.venderModel||""}))||!confirm(a("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?")))return;k(y);return}$.Warning(a("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E"))},k=y=>L(this,null,function*(){if(y.name==null||y.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0"));return}if(y.path==null||y.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84"));return}_.value=!0;const D=$.Loading(a("\u521D\u59CB\u5316\u4E2D..."));try{const A=yield j.Nas.Disk.Init.POST({name:y.name,path:y.path});if(A!=null&&A.data){const{result:S,error:Y}=A==null?void 0:A.data;Y&&$.Warning(Y),S&&(S.errorInfo?$.Warning(S.errorInfo):($.Success(a("\u521D\u59CB\u5316\u6210\u529F")),S.childrens&&S.childrens.length>0&&(v.value=S.childrens[0]),g.value=S,p(1)))}}catch(A){$.Error(A)}D.Close(),_.value=!1}),x=y=>L(this,null,function*(){if(y.path==null||y.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84"));return}_.value=!0;const D=$.Loading(a("\u683C\u5F0F\u5316\u4E2D..."));try{const A=yield j.Nas.Disk.Partition.Format.POST({path:y.path,uuid:y.uuid,mountPoint:y.mountPoint});if(A!=null&&A.data){const{result:S,error:Y}=A==null?void 0:A.data;Y&&$.Warning(Y),S&&($.Success(a("\u683C\u5F0F\u5316\u6210\u529F")),v.value=S,p(1))}}catch(A){$.Error(A)}D.Close(),_.value=!1}),h=()=>{if(v.value&&v.value.mountPoint){u(v.value.mountPoint);return}$.Warning(a("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25"))};return(y,D)=>(r(),J(wt,{type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>{var A;return[b.value==0?(r(),s("form",{key:0,class:"action format",onSubmit:mt(w,["prevent"])},[t("div",zs,[t("div",Ps,i(e(a)("\u786C\u76D8\u914D\u7F6E")),1)]),t("div",Ts,[t("div",Is,[Ms,o.mount?(r(),s("div",Ls,[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",Os,[t("span",null,"\u3010"+i(o.disk.size)+"\u3011",1),t("span",null,i(o.disk.venderModel),1)])):C("",!0)]),o.mount?(r(),s("div",Ns,[t("div",Vs,[t("span",null,i(e(a)("\u76EE\u6807\u5206\u533A")),1)]),t("div",Gs,i(o.mount.mountPoint||o.mount.path)+"\uFF08"+i(o.mount.total)+"\uFF09",1)])):C("",!0),t("div",js,[t("div",Us,[t("span",null,i(e(a)("\u683C\u5F0F\u5316\u9009\u9879")),1)]),t("div",qs,[N(t("select",{"onUpdate:modelValue":D[0]||(D[0]=S=>f.value=S),required:"",disabled:o.action=="disk"},[o.mount!=null?(r(),s("option",Ws,i(e(a)("\u8BF7\u9009\u62E9\u9009\u9879")),1)):C("",!0),t("option",Hs,i(e(a)("\u683C\u5F0F\u5316")),1),o.mount!=null?(r(),s("option",Js,i(e(a)("\u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF")),1)):C("",!0)],8,Rs),[[pt,f.value]])]),t("div",Zs,[f.value=="format"?(r(),s("p",Ks,i(e(a)("\u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF")),1)):f.value=="default"?(r(),s("p",Qs)):C("",!0)])])]),t("div",Xs,[td,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:d,type:"button",disabled:_.value},i(e(a)("\u8FD4\u56DE")),9,ed),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:_.value},i(e(a)("\u4E0B\u4E00\u6B65")),9,ad)])],40,Ss)):b.value==1?(r(),s("div",od,[t("div",nd,[id,t("div",rd,i(e(a)("\u683C\u5F0F\u5316\u6210\u529F")),1),g.value?(r(),s("div",sd,[dt(i(e(a)("\u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8"))+" "+i(g.value.venderModel)+" "+i(e(a)("\u5E76\u6302\u8F7D\u5230"))+" ",1),t("a",null,i((A=v.value)==null?void 0:A.mountPoint),1)])):C("",!0),v.value?(r(),s("div",dd,[dt(i(e(a)("\u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A"))+" ",1),t("a",null,i(v.value.mountPoint),1)])):C("",!0),t("div",ld,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:h},i(o.action=="nas"?e(a)("\u4E0B\u4E00\u6B65"):e(a)("\u5B8C\u6210")),1)])])])):C("",!0)]}),_:1})]),_:1}))}});var ud=O(cd,[["__scopeId","data-v-d72e7026"]]),la=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(ud,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const pd=o=>(ct("data-v-0d1b6ac8"),o=o(),ut(),o),fd={class:"action list"},md={class:"action-header"},gd={class:"action-header_title"},bd={class:"action-body"},vd={class:"disk-list"},hd={class:"action-msg"},_d={href:"/cgi-bin/luci/admin/system/diskman"},xd={class:"action-footer"},wd=pd(()=>t("div",{class:"auto"},null,-1)),kd=T({props:{Cancel:{type:Function},Next:{type:Function},Close:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(!0),d=vt({disks:[],raids:[]});(()=>L(this,null,function*(){const m=yield Promise.all([j.Nas.Disk.Status.GET(),j.Raid.List.GET()]);try{if(m[0]){const F=m[0];F!=null&&F.data.result&&(d.disks=(F==null?void 0:F.data.result.disks)||[])}if(m[1]){const F=m[1];F.data.result&&(d.raids=F.data.result.disks||[])}}catch(F){$.Warning(F)}}))();const _=E(),b=E(),p=(m,F)=>{_.value=m,b.value=F},f=()=>{n.Close&&n.Close()},g=()=>{n.Cancel&&n.Cancel(),f()},v=m=>{n.Next&&n.Next(m),f()},w=()=>{if(_.value==null){$.Warning(a("\u8BF7\u9009\u62E9\u76EE\u6807\u786C\u76D8"));return}if(_.value.childrens!=null&&_.value.childrens.length>0&&b.value==null){$.Warning(a("\u8BF7\u9009\u62E9\u786C\u76D8\u5206\u533A"));return}if(b.value!=null&&(b.value.mountPoint==null||b.value.mountPoint=="")){$.Warning(a("\u8BE5\u5206\u533A\u5C1A\u672A\u6302\u8F7D\uFF0C\u8BF7\u5148\u53BB\u6302\u8F7D"));return}c.value=!1,la({action:"nas",disk:_.value,mount:b.value,Cancel:()=>{c.value=!0},Next:m=>{v(m)}})};return(m,F)=>c.value?(r(),J(wt,{key:0,type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>[t("div",fd,[t("div",md,[t("div",gd,i(e(a)("\u8BF7\u9009\u62E9\u4E00\u4E2A\u786C\u76D8\u6216\u5206\u533A")),1)]),t("div",bd,[t("div",vd,[(r(!0),s(U,null,tt(e(d).disks,k=>(r(),J(wa,{disk:k,onDisk:p,currDisk:_.value,currMountPoint:b.value},null,8,["disk","currDisk","currMountPoint"]))),256)),(r(!0),s(U,null,tt(e(d).raids,k=>(r(),J(wa,{disk:k,onDisk:p,currDisk:_.value,currMountPoint:b.value},null,8,["disk","currDisk","currMountPoint"]))),256))])]),t("div",hd,[t("span",null,[dt(i(e(a)("\u60F3\u8981\u66F4\u7CBE\u786E\u7684\u914D\u7F6E\uFF1F\u8BF7\u524D\u5F80"))+" ",1),t("a",_d,i(e(a)("\u9AD8\u7EA7\u8BBE\u7F6E")),1)])]),t("div",xd,[wd,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:g,type:"button"},i(e(a)("\u8FD4\u56DE")),1),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:w,type:"button"},i(e(a)("\u4E0B\u4E00\u6B65")),1)])])]),_:1})]),_:1})):C("",!0)}});var yd=O(kd,[["__scopeId","data-v-0d1b6ac8"]]),Fd=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(yd,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const Ed=o=>(ct("data-v-5f6e53be"),o=o(),ut(),o),$d={class:"action"},Cd={class:"action-body"},Dd=Ed(()=>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)),Bd={class:"title"},Yd={class:"info"},Ad=["href"],Sd={class:"btns"},zd=T({props:{Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(""),d=Z(()=>`http://${location.hostname}:${c.value}`);(()=>{j.Nas.Linkease.Enable.POST().then(b=>{var p,f;(p=b==null?void 0:b.data)!=null&&p.result&&(c.value=((f=b.data.result)==null?void 0:f.port)||"")})})();const _=()=>{n.Close&&n.Close(),location.reload()};return(b,p)=>(r(),J(wt,{type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>[t("div",$d,[t("div",Cd,[Dd,t("h2",Bd,i(e(a)("\u670D\u52A1\u5DF2\u542F\u52A8")),1),t("div",Yd,[t("span",null,i(e(a)("\u524D\u5F80")),1),t("a",{href:e(d),target:"_blank",rel:"noopener noreferrer"},i(e(d)),9,Ad),t("span",null,i(e(a)("\u7EE7\u7EED\u914D\u7F6E")),1)]),t("div",Sd,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:_},i(e(a)("\u5173\u95ED")),1)])])])]),_:1})]),_:1}))}});var Pd=O(zd,[["__scopeId","data-v-5f6e53be"]]),Td=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(Pd,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const Id=o=>(ct("data-v-2eafa10c"),o=o(),ut(),o),Md=["onSubmit"],Ld={class:"action-header"},Od={class:"action-header_title"},Nd={class:"action-body"},Vd={class:"label-item"},Gd={class:"label-item_key"},jd={class:"label-item_value"},Ud=["value"],qd={class:"label-item"},Rd={class:"label-item_key"},Wd={class:"label-item_value"},Hd=["placeholder"],Jd={class:"label-item"},Zd={class:"label-item_key"},Kd={class:"label-item_value"},Qd={class:"action-footer"},Xd=Id(()=>t("div",{class:"auto"},null,-1)),t0=["disabled"],e0=["disabled"],a0=T({props:{rootPath:{type:String,required:!0},Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=f=>{f.preventDefault(),n.Close&&n.Close()},d=E(!1),u=E({username:"root",password:"",rootPath:n.rootPath});(()=>L(this,null,function*(){const f=$.Loading(a("\u52A0\u8F7D\u4E2D..."));d.value=!0;try{const g=yield j.Nas.Webdav.Status.GET();if(g!=null&&g.data){const{result:v,error:w}=g.data;if(w){$.Warning(w);return}v&&(v.username&&(u.value.username=v.username),v.password&&(u.value.password=v.password))}}catch(g){$.Error(g)}d.value=!1,f.Close()}))();const b=()=>{const f=u.value;if(f.rootPath==""){$.Warning(a("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A"));return}if(f.username==""){$.Warning(a("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A"));return}if(f.password==""){$.Warning(a("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A"));return}p(f)},p=f=>L(this,null,function*(){d.value=!0;const g=$.Loading(a("\u521B\u5EFA\u4E2D..."));try{const v=yield j.Nas.Webdav.Create.POST(f);if(v!=null&&v.data){const{error:w,result:m}=v.data;w&&$.Warning(w),m&&($.Success(a("\u521B\u5EFA\u6210\u529F")),window.setTimeout(()=>{location.reload()},1e3))}}catch(v){$.Error(v)}g.Close(),d.value=!1});return(f,g)=>(r(),J(wt,{type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>[t("form",{class:"action",onSubmit:mt(b,["prevent"])},[t("div",Ld,[t("div",Od,i(e(a)("Webdav\u5171\u4EAB\u914D\u7F6E")),1)]),t("div",Nd,[t("div",Vd,[t("div",Gd,[t("span",null,i(e(a)("\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")),1)]),t("div",jd,[t("input",{type:"text",value:u.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,Ud)])]),t("div",qd,[t("div",Rd,[t("span",null,i(e(a)("\u7528\u6237\u540D")),1)]),t("div",Wd,[N(t("input",{type:"text",required:"",placeholder:e(a)("\u8D26\u53F7\u7528\u6237\u540D"),"onUpdate:modelValue":g[0]||(g[0]=v=>u.value.username=v)},null,8,Hd),[[ot,u.value.username,void 0,{trim:!0}]])])]),t("div",Jd,[t("div",Zd,[t("span",null,i(e(a)("\u5BC6\u7801")),1)]),t("div",Kd,[N(t("input",{type:"password","onUpdate:modelValue":g[1]||(g[1]=v=>u.value.password=v)},null,512),[[ot,u.value.password,void 0,{trim:!0}]])])])]),t("div",Qd,[Xd,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:c,disabled:d.value},i(e(a)("\u5173\u95ED")),9,t0),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:d.value},i(e(a)("\u521B\u5EFA")),9,e0)])],40,Md)]),_:1})]),_:1}))}});var o0=O(a0,[["__scopeId","data-v-2eafa10c"]]),n0=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(o0,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const i0={},r0={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"},s0=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),d0=[s0];function l0(o,n){return r(),s("svg",r0,d0)}var It=O(i0,[["render",l0]]);const{$gettext:ve,$ngettext:Ye}=Ie(),c0=o=>{},u0=()=>new Date().getTime(),p0=o=>{if(o<1e3)return`${o} B`;let a=1e3,l=0;for(let u=o/1e3;u>=1e3;u/=1e3)a*=1e3,l++;let c=[" KB"," MB"," GB"," TB"," PB"," EB"];return(o/100/(a/100)).toFixed(1)+c[l]},f0=o=>{if(o==null)return 0;if(o<1e4)return o;let a=parseInt(`${o/1e4}`),l=o%1e4;return`${a}\u4E07${l}`},m0=o=>{if(o)try{var n=new Date(o),a=n.getHours(),l=n.getMinutes(),c=n.getSeconds();return a<10&&(a=`0${a}`),l<10&&(l=`0${l}`),c<10&&(c=`0${c}`),`${a}:${l}:${c}`}catch(d){}return""},g0=o=>{if(o){let n=Math.floor(o/86400),a=Math.floor(o/3600)%24,l=Math.floor(o/60)%60,c=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",c,{seconds:De(c)})}},b0=o=>/^\d+\.\d+\.\d+\.\d+$/.test(o),v0=o=>o.length<3?ve("\u7528\u6237\u540D\u592A\u77ED"):o.toLowerCase()!=o?ve("\u7528\u6237\u540D\u53EA\u80FD\u4E3A\u5C0F\u5199"):new RegExp("^\\d").exec(o)?ve("\u7528\u6237\u540D\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934"):new RegExp("^_").exec(o)?ve("\u7528\u6237\u540D\u4E0D\u80FD\u4EE5_\u5F00\u5934"):new RegExp("^[a-z0-9_]+$").exec(o)?!0:ve("\u975E\u6CD5\u7684\u7528\u6237\u540D"),h0=(o,n)=>{let a=!0,l=null;const c=()=>{l=null,a&&o().finally(()=>{a&&(l=setTimeout(c,n))})};return l=setTimeout(c,0),()=>{a=!1,l!=null&&clearTimeout(l)}};var _0=Object.freeze(Object.defineProperty({__proto__:null,formatDate:c0,UnixDate:u0,byteToSize:p0,numberToSum:f0,dateForm:m0,stampForm:g0,checkIsIP:b0,checkSmabaUserName:v0,easyInterval:h0},Symbol.toStringTag,{value:"Module"})),Mt=rt({},_0);const x0=o=>(ct("data-v-58844394"),o=o(),ut(),o),w0=["onSubmit"],k0={class:"action-header"},y0={class:"action-header_title"},F0={class:"action-body"},E0={class:"label-item"},$0={class:"label-item_key"},C0={class:"label-item_value"},D0=["value"],B0={class:"label-item"},Y0={class:"label-item_key"},A0={class:"label-item_value"},S0=["placeholder"],z0={class:"label-item"},P0={class:"label-item_key"},T0={class:"label-item_value"},I0=["placeholder"],M0={class:"label-item"},L0={class:"label-item_key"},O0={class:"label-item_value"},N0={class:"samba-item"},V0={class:"samba-item_allow"},G0={for:"allow",class:"samba-allow"},j0={class:"samba-item_tips"},U0={class:"tooltip-trigger"},q0={class:"samba_tip"},R0={class:"samba_dir_tip"},W0={class:"action-footer"},H0=x0(()=>t("div",{class:"auto"},null,-1)),J0=["disabled"],Z0=["disabled"],K0=T({props:{rootPath:{type:String,required:!0},Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=p=>{p.preventDefault(),n.Close&&n.Close()},d=E(!1),u=E({shareName:"",username:"",password:"",rootPath:n.rootPath,allowLegacy:!1}),_=()=>{const p=u.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 f=Mt.checkSmabaUserName(p.username);if(f!==!0){$.Warning(`${f}`);return}b(p)},b=p=>L(this,null,function*(){d.value=!0;const f=$.Loading(a("\u521B\u5EFA\u4E2D..."));try{const g=yield j.Nas.Samba.Create.POST(p);if(g!=null&&g.data){const{error:v,result:w}=g.data;v&&$.Warning(v),w&&($.Success(a("\u521B\u5EFA\u6210\u529F")),window.setTimeout(()=>{location.reload()},1e3))}}catch(g){$.Error(g)}f.Close(),d.value=!1});return(p,f)=>(r(),J(wt,{type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>[t("form",{class:"action",onSubmit:mt(_,["prevent"])},[t("div",k0,[t("div",y0,i(e(a)("Samba\u5171\u4EAB\u914D\u7F6E")),1)]),t("div",F0,[t("div",E0,[t("div",$0,[t("span",null,i(e(a)("\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")),1)]),t("div",C0,[t("input",{type:"text",value:u.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,D0)])]),t("div",B0,[t("div",Y0,[t("span",null,i(e(a)("\u5171\u4EAB\u540D\uFF08\u5EFA\u8BAE\u4F7F\u7528\u82F1\u6587\u5B57\u6BCD\uFF09")),1)]),t("div",A0,[N(t("input",{type:"text","onUpdate:modelValue":f[0]||(f[0]=g=>u.value.shareName=g),required:"",placeholder:e(a)("\u5171\u4EAB\u540D\u79F0")},null,8,S0),[[ot,u.value.shareName,void 0,{trim:!0}]])])]),t("div",z0,[t("div",P0,[t("span",null,i(e(a)("\u7528\u6237\u540D")),1)]),t("div",T0,[N(t("input",{type:"text",required:"",placeholder:e(a)("\u8D26\u53F7\u7528\u6237\u540D"),"onUpdate:modelValue":f[1]||(f[1]=g=>u.value.username=g)},null,8,I0),[[ot,u.value.username,void 0,{trim:!0}]])])]),t("div",M0,[t("div",L0,[t("span",null,i(e(a)("\u5BC6\u7801")),1)]),t("div",O0,[N(t("input",{type:"password","onUpdate:modelValue":f[2]||(f[2]=g=>u.value.password=g)},null,512),[[ot,u.value.password,void 0,{trim:!0}]])])]),t("div",N0,[t("div",V0,[N(t("input",{type:"checkbox",id:"allow","onUpdate:modelValue":f[3]||(f[3]=g=>u.value.allowLegacy=g)},null,512),[[Rt,u.value.allowLegacy]]),t("label",G0,i(e(a)("\u5141\u8BB8\u65E7\u534F\u8BAE\u4E0E\u8EAB\u4EFD\u9A8C\u8BC1(\u4E0D\u5B89\u5168)")),1)]),t("div",j0,[t("span",U0,[t("span",q0,[B(It)]),t("span",R0,i(e(a)("\u517C\u5BB9\u4E00\u4E9B\u7535\u89C6\u6216\u8005\u7535\u89C6\u76D2\u5B50")),1)])])])]),t("div",W0,[H0,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:c,disabled:d.value},i(e(a)("\u5173\u95ED")),9,J0),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:d.value},i(e(a)("\u521B\u5EFA")),9,Z0)])],40,w0)]),_:1})]),_:1}))}});var Q0=O(K0,[["__scopeId","data-v-58844394"]]),X0=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(Q0,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const{$gettext:te,$ngettext:_T}=Ie(),zt={installApp:(o,n)=>new Promise((a,l)=>{let c=0;j.App.Install.POST({name:o}).then(()=>{const d=setTimeout(()=>{c==0&&(c=1,a(!1))},(n||60)*1e3),u=()=>{c==0&&j.App.Check.POST({name:o}).then(_=>{if(c==0&&_!=null&&_.data){const{result:b}=_.data;if((b==null?void 0:b.status)=="installed"){clearTimeout(d),c=1,a(!0);return}}}).catch(_=>{}).finally(()=>{c==0&&setTimeout(u,3e3)})};setTimeout(u,3e3)}).catch(d=>{c==0&&(c=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 c=yield j.App.Check.POST({name:o});if(l.Close(),c!=null&&c.data){const{result:d,error:u}=c.data;if(u)$.Warning(u);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 _=yield zt.installApp(a||o);if(l.Close(),_)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(c){return l.Close(),$.Warning(c),!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,tl={key:0,class:"action"},el={class:"title"},al={class:"desc"},ol={value:"linkease"},nl={value:"samba"},il={value:"webdav"},rl=["innerHTML"],sl={class:"btns"},dl=["disabled"],ll=T({props:{setup:Number,Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(!0),d=E("linkease"),u=E(!1),_=E(n.setup||0),b=()=>{n.Close&&n.Close()},p=()=>L(this,null,function*(){switch(d.value){case"webdav":yield f();break;case"samba":yield v();break;case"linkease":yield g();break}}),f=()=>L(this,null,function*(){u.value=!0,(yield zt.checkAndInstallApp("app-meta-gowebdav","GoWebdav"))&&w(),u.value=!1}),g=()=>L(this,null,function*(){u.value=!0,(yield zt.checkAndInstallApp("linkease",a("\u6613\u6709\u4E91"),"app-meta-linkease"))&&m(),u.value=!1}),v=()=>L(this,null,function*(){u.value=!0;const x=$.Loading(a("\u914D\u7F6E\u4E2D..."));w(),x.Close(),u.value=!1}),w=()=>{u.value=!1,c.value=!1,Fd({Cancel:()=>{c.value=!0},Next:x=>{switch(d.value){case"webdav":F(x);break;case"samba":k(x);break}}})},m=()=>{Td({}),b()},F=x=>{n0({rootPath:x}),b()},k=x=>{X0({rootPath:x}),b()};return(x,h)=>c.value?(r(),J(wt,{key:0,Close:o.Close,type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>[_.value==0?(r(),s("div",tl,[t("h2",el,i(e(a)("\u6B22\u8FCE\u4F7F\u7528 NAS \u914D\u7F6E\u5411\u5BFC")),1),t("h3",al,i(e(a)("\u8BF7\u9009\u62E9\u9700\u8981\u6DFB\u52A0\u7684NAS\u670D\u52A1")),1),t("form",null,[t("label",null,[N(t("select",{"onUpdate:modelValue":h[0]||(h[0]=y=>d.value=y)},[t("option",ol,i(e(a)("\u8DE8\u8BBE\u5907\u5171\u4EAB\uFF08\u6613\u6709\u4E91\uFF09")),1),t("option",nl,i(e(a)("\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Samba\uFF09")),1),t("option",il,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,rl)):C("",!0),t("div",sl,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:p,type:"button",disabled:u.value},i(e(a)("\u4E0B\u4E00\u6B65")),9,dl),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:b,type:"button"},i(e(a)("\u53D6\u6D88")),1)])])):C("",!0)]),_:1})]),_:1},8,["Close"])):C("",!0)}});var cl=O(ll,[["__scopeId","data-v-1d64dea6"]]),Ua=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(cl,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const ul={class:"app-container_aria2"},pl={class:"aria2-item"},fl={class:"aria2-item_name"},ml={class:"aria2-item_value"},gl={key:0,class:"configure"},bl={key:1,class:"configure enabel"},vl={class:"aria2-item"},hl={class:"aria2-item_name"},_l={class:"aria2-item_value"},xl=["href"],wl={class:"aria2-item"},kl={class:"aria2-item_name"},yl={class:"aria2-item_value"},Fl=["href"],El={class:"aria2-item"},$l={class:"aria2-item_name right"},Cl={class:"aria2-item_value"},Dl=["href"],Bl={class:"use-url_app"},Yl={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"},Al=T({props:{aria2:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>{var u;return`${location.origin}${(u=n.aria2)==null?void 0:u.webPath}`}),d=Z(()=>{var b,p,f;let u=(b=n.aria2)==null?void 0:b.rpcToken;u?u=encodeURIComponent(btoa(u)):u="";const _=encodeURIComponent(location.hostname);return`${location.origin}${(p=n.aria2)==null?void 0:p.webPath}/#!/settings/rpc/set/http/${_}/${(f=n.aria2)==null?void 0:f.rpcPort}/jsonrpc/${u}`});return(u,_)=>{var b,p,f,g;return r(),s("ul",ul,[t("li",pl,[t("div",fl,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",ml,[((b=o.aria2)==null?void 0:b.status)=="running"?(r(),s("span",gl,i(e(a)("\u5DF2\u542F\u52A8")),1)):(r(),s("span",bl,i(e(a)("\u672A\u542F\u52A8")),1))])]),((p=o.aria2)==null?void 0:p.status)=="running"?(r(),s(U,{key:0},[t("li",vl,[t("div",hl,[t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55:")),1)]),t("div",_l,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((f=o.aria2)==null?void 0:f.downloadPath)},i((g=o.aria2)==null?void 0:g.downloadPath),9,xl)])]),t("li",wl,[t("div",kl,[t("span",null,i(e(a)("\u7F51\u7EDC\u5730\u5740:")),1)]),t("div",yl,[t("a",{href:e(c),target:"_blank",rel:"noopener noreferrer"},i(e(c)),9,Fl)])]),t("li",El,[t("div",$l,[t("span",null,i(e(a)("\u8BA4\u8BC1\u5931\u8D25\uFF1F")),1)]),t("div",Cl,[t("a",{href:e(d),target:"_blank",rel:"noopener noreferrer"},i(e(a)("\u70B9\u6B64\u81EA\u52A8\u914D\u7F6E AriaNg")),9,Dl)])])],64)):C("",!0),t("div",Bl,[t("a",Yl,i(e(a)("\u4F7F\u7528\u6613\u6709\u4E91APP\uFF0C\u968F\u65F6\u968F\u5730\u8FDC\u7A0B\u4E0B\u8F7D")),1)])])}}});var Sl=O(Al,[["__scopeId","data-v-27ba49f9"]]);const zl={class:"app-container_qbittorrent"},Pl={class:"qbittorrent-item"},Tl={class:"qbittorrent-item_name"},Il={class:"qbittorrent-item_value"},Ml={key:0,class:"configure"},Ll={key:1,class:"configure enabel"},Ol={class:"qbittorrent-item"},Nl={class:"qbittorrent-item_name"},Vl={class:"qbittorrent-item_value"},Gl=["href"],jl={class:"qbittorrent-item"},Ul={class:"qbittorrent-item_name"},ql={class:"qbittorrent-item_value"},Rl=["href"],Wl={class:"qbittorrent-item"},Hl={class:"qbittorrent-item_name right"},Jl={class:"qbittorrent-item_value"},Zl=T({props:{qbittorrent:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>{var d;return`http://${location.hostname}${(d=n.qbittorrent)==null?void 0:d.webPath}`});return(d,u)=>{var _,b,p,f;return r(),s("ul",zl,[t("li",Pl,[t("div",Tl,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",Il,[((_=o.qbittorrent)==null?void 0:_.status)=="running"?(r(),s("span",Ml,i(e(a)("\u5DF2\u542F\u52A8")),1)):(r(),s("span",Ll,i(e(a)("\u672A\u542F\u52A8")),1))])]),((b=o.qbittorrent)==null?void 0:b.status)=="running"?(r(),s(U,{key:0},[t("li",Ol,[t("div",Nl,[t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55:")),1)]),t("div",Vl,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((p=o.qbittorrent)==null?void 0:p.downloadPath)},i((f=o.qbittorrent)==null?void 0:f.downloadPath),9,Gl)])]),t("li",jl,[t("div",Ul,[t("span",null,i(e(a)("\u7F51\u7EDC\u5730\u5740:")),1)]),t("div",ql,[t("a",{href:e(c),target:"_blank",rel:"noopener noreferrer"},i(e(c)),9,Rl)])]),t("li",Wl,[t("div",Hl,[t("span",null,i(e(a)("\u9ED8\u8BA4\u7528\u6237\u540D\uFF1A"))+"admin",1)]),t("div",Jl,[t("span",null,i(e(a)("\u9ED8\u8BA4\u5BC6\u7801\uFF1A"))+"adminadmin",1)])])],64)):C("",!0)])}}});var Kl=O(Zl,[["__scopeId","data-v-da46870e"]]);const Ql={class:"app-container_transmission"},Xl={class:"transmission-item"},tc={class:"transmission-item_name"},ec={class:"transmission-item_value"},ac={key:0,class:"configure"},oc={key:1,class:"configure enabel"},nc={class:"transmission-item"},ic={class:"transmission-item_name"},rc={class:"transmission-item_value"},sc=["href"],dc={class:"transmission-item"},lc={class:"transmission-item_name"},cc={class:"transmission-item_value"},uc=["href"],pc=T({props:{transmission:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>{var d;return`http://${location.hostname}${(d=n.transmission)==null?void 0:d.webPath}`});return(d,u)=>{var _,b,p,f;return r(),s("ul",Ql,[t("li",Xl,[t("div",tc,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",ec,[((_=o.transmission)==null?void 0:_.status)=="running"?(r(),s("span",ac,i(e(a)("\u5DF2\u542F\u52A8")),1)):(r(),s("span",oc,i(e(a)("\u672A\u542F\u52A8")),1))])]),((b=o.transmission)==null?void 0:b.status)=="running"?(r(),s(U,{key:0},[t("li",nc,[t("div",ic,[t("span",null,i(e(a)("\u4E0B\u8F7D\u76EE\u5F55:")),1)]),t("div",rc,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((p=o.transmission)==null?void 0:p.downloadPath)},i((f=o.transmission)==null?void 0:f.downloadPath),9,sc)])]),t("li",dc,[t("div",lc,[t("span",null,i(e(a)("\u7F51\u7EDC\u5730\u5740:")),1)]),t("div",cc,[t("a",{href:e(c),target:"_blank",rel:"noopener noreferrer"},i(e(c)),9,uc)])])],64)):C("",!0)])}}});var fc=O(pc,[["__scopeId","data-v-562f4f7e"]]);const mc={},gc={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"},bc=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),vc=[bc];function hc(o,n){return r(),s("svg",gc,vc)}var Jt=O(mc,[["render",hc]]);const _c={},xc={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"},wc=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),kc=[wc];function yc(o,n){return r(),s("svg",xc,kc)}var ca=O(_c,[["render",yc]]);const Oe=o=>(ct("data-v-7b328460"),o=o(),ut(),o),Fc={key:0,class:"action"},Ec={class:"title"},$c={class:"load_service input_row"},Cc={class:"left"},Dc={class:"radios"},Bc=Oe(()=>t("label",{for:"Aria2"},"Aria2",-1)),Yc={class:"radios"},Ac=Oe(()=>t("label",{for:"qB"},"qBittorrent",-1)),Sc={class:"radios"},zc=Oe(()=>t("label",{for:"Tr"},"Transmission",-1)),Pc=["onSubmit"],Tc={class:"input_row"},Ic={class:"left"},Mc={class:"tooltip-trigger"},Lc={class:"tooltip-text tooltip-top"},Oc={class:"dowload_dir_tip"},Nc={class:"myinput_wrap"},Vc={class:"input_row"},Gc={class:"left"},jc={class:"tooltip-trigger"},Uc={class:"tooltip-text tooltip-top"},qc={class:"dowload_dir_tip"},Rc={class:"myinput_wrap"},Wc={class:"input_row"},Hc={class:"left"},Jc={class:"tooltip-trigger"},Zc={class:"tooltip-text tooltip-bottom"},Kc={class:"dowload_rpc_tip"},Qc=["placeholder"],Xc={class:"input_row"},tu={class:""},eu={class:"radios"},au={for:"default"},ou={class:"radios"},nu={for:"add"},iu={class:"input_row"},ru=Oe(()=>t("div",{class:"left"},null,-1)),su={class:"myinput_wrap Tracker_input"},du=["placeholder"],lu=["onSubmit"],cu={class:"input_row"},uu={class:"left"},pu={class:"tooltip-trigger"},fu={class:"tooltip-text tooltip-top"},mu={class:"dowload_dir_tip"},gu={class:"myinput_wrap"},bu={class:"input_row"},vu={class:"left"},hu={class:"tooltip-trigger"},_u={class:"tooltip-text tooltip-top"},xu={class:"dowload_dir_tip"},wu={class:"myinput_wrap"},ku=["onSubmit"],yu={class:"input_row"},Fu={class:"left"},Eu={class:"tooltip-trigger"},$u={class:"tooltip-text tooltip-top"},Cu={class:"dowload_dir_tip"},Du={class:"myinput_wrap"},Bu={class:"input_row"},Yu={class:"left"},Au={class:"tooltip-trigger"},Su={class:"tooltip-text tooltip-top"},zu={class:"dowload_dir_tip"},Pu={class:"myinput_wrap"},Tu={class:"btns"},Iu={key:1,class:"action"},Mu={class:"title"},Lu={class:"finished"},Ou={class:"successed"},Nu={class:"btns"},Vu=T({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}=H(),c=E(""),d=E(""),u=E(""),_=E(""),b=E("default"),p=E("Aria2"),f=E(""),g=E(""),v=E(""),w=E(""),m=E([]),F=E([]),k=E(0);Pt(()=>{var V,I,M,W,X,st,at,ft,Dt,yt;switch(n.defaultTab){case"aria2":p.value="Aria2";break;case"qbittorrent":p.value="qBittorrent";break;case"transmission":p.value="Transmission";break}m.value=n.partitionList.map(Vt=>({key:Vt})),F.value=n.partitionList.filter(Vt=>Vt.startsWith("/mnt/")).map(Vt=>Vt.replace(/(\/mnt\/[^/]+).*/,"$1")),u.value=((V=n.services.aria2)==null?void 0:V.configPath)||"";const S=((I=n.services.aria2)==null?void 0:I.downloadPath)||((M=n.services.qbittorrent)==null?void 0:M.downloadPath)||((W=n.services.transmission)==null?void 0:W.downloadPath);S&&(_.value=S);const Y=(X=n.services.aria2)==null?void 0:X.rpcToken;Y&&(c.value=Y),f.value=((st=n.services.qbittorrent)==null?void 0:st.configPath)||"";const z=((at=n.services.qbittorrent)==null?void 0:at.downloadPath)||S||((ft=n.services.transmission)==null?void 0:ft.downloadPath);z&&(g.value=z),v.value=((Dt=n.services.transmission)==null?void 0:Dt.configPath)||"";const R=((yt=n.services.transmission)==null?void 0:yt.downloadPath)||S||z;R&&(w.value=R)});const x=()=>{let S=u.value,Y=_.value;S==null||S==""||Y==null||Y==""||L(this,null,function*(){if(yield zt.checkAndInstallApp("app-meta-aria2","Aria2")){const R=$.Loading(a("\u914D\u7F6E\u4E2D..."));j.Guide.Aria2Init.POST({configPath:S,downloadPath:Y,rpcToken:c.value,btTracker:b.value=="add"?d.value:""}).then(V=>{var I;if(V!=null&&V.data){if((V.data.success||0)==0){k.value=1;return}else if((I=V.data)!=null&&I.error)throw V.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(V=>$.Error(V)).finally(()=>R.Close())}})},h=()=>{let S=f.value,Y=g.value;S==null||S==""||Y==null||Y==""||L(this,null,function*(){if(yield zt.checkAndInstallApp("app-meta-qbittorrent","qBittorrent")){const R=$.Loading(a("\u914D\u7F6E\u4E2D..."));j.Guide.qbitorrentInit.POST({configPath:S,downloadPath:Y}).then(V=>{var I;if(V!=null&&V.data){if((V.data.success||0)==0){k.value=1;return}else if((I=V.data)!=null&&I.error)throw V.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(V=>$.Error(V)).finally(()=>R.Close())}})},y=()=>{let S=v.value,Y=w.value;S==null||S==""||Y==null||Y==""||L(this,null,function*(){if(yield zt.checkAndInstallApp("app-meta-transmission","Transmission")){const R=$.Loading(a("\u914D\u7F6E\u4E2D..."));j.Guide.transmissionInit.POST({configPath:S,downloadPath:Y}).then(V=>{var I;if(V!=null&&V.data){if((V.data.success||0)==0){k.value=1;return}else if((I=V.data)!=null&&I.error)throw V.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(V=>$.Error(V)).finally(()=>R.Close())}})},D=S=>{S.preventDefault(),n.Close&&n.Close()},A=S=>{S.preventDefault(),location.reload()};return(S,Y)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[k.value==0?(r(),s("div",Fc,[t("h2",Ec,i(e(a)("\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC")),1),t("ul",null,[t("li",null,[t("div",$c,[t("div",Cc,[t("span",null,i(e(a)("\u4E0B\u8F7D\u670D\u52A1\uFF1A")),1)]),t("div",Dc,[N(t("input",{type:"radio",value:"Aria2","onUpdate:modelValue":Y[0]||(Y[0]=z=>p.value=z),name:"download",id:"Aria2"},null,512),[[Bt,p.value]]),Bc]),t("div",Yc,[N(t("input",{type:"radio",value:"qBittorrent","onUpdate:modelValue":Y[1]||(Y[1]=z=>p.value=z),name:"download",id:"qB"},null,512),[[Bt,p.value]]),Ac]),t("div",Sc,[N(t("input",{type:"radio",value:"Transmission","onUpdate:modelValue":Y[2]||(Y[2]=z=>p.value=z),name:"download",id:"Tr"},null,512),[[Bt,p.value]]),zc])])])]),p.value=="Aria2"?(r(),s("form",{key:0,onSubmit:mt(x,["prevent"])},[t("ul",null,[t("li",null,[t("div",Tc,[t("div",Ic,[t("span",Mc,[B(Jt),t("div",null,[t("div",Lc,[t("span",Oc,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",Nc,[B(Zt,{modelValue:u.value,"onUpdate:modelValue":Y[3]||(Y[3]=z=>u.value=z),modelModifiers:{trim:!0},title:e(a)("\u914D\u7F6E\u76EE\u5F55"),options:F.value.concat("/root").map(z=>({key:z+"/Configs/aria2"}))},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",Vc,[t("div",Gc,[t("span",jc,[B(Jt),t("div",null,[t("div",Uc,[t("span",qc,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",Rc,[B(Zt,{modelValue:_.value,"onUpdate:modelValue":Y[4]||(Y[4]=z=>_.value=z),modelModifiers:{trim:!0},title:e(a)("\u4E0B\u8F7D\u76EE\u5F55"),options:m.value},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",Wc,[t("div",Hc,[t("span",Jc,[B(Jt),t("div",null,[t("div",Zc,[t("span",Kc,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)]),N(t("input",{type:"text",class:"RPC_input",placeholder:e(a)("\u8BF7\u8F93\u5165RPC\u4EE4\u724C"),"onUpdate:modelValue":Y[5]||(Y[5]=z=>c.value=z)},null,8,Qc),[[ot,c.value,void 0,{trim:!0}]])])]),t("li",null,[t("div",Xc,[t("div",tu,[t("span",null,i(e(a)("\u9644\u52A0\u7684 BT Tracker\uFF1A")),1)]),t("div",eu,[N(t("input",{type:"radio",value:"default",name:"BT",id:"default","onUpdate:modelValue":Y[6]||(Y[6]=z=>b.value=z)},null,512),[[Bt,b.value]]),t("label",au,i(e(a)("\u9ED8\u8BA4")),1)]),t("div",ou,[N(t("input",{type:"radio",value:"add",name:"BT",id:"add","onUpdate:modelValue":Y[7]||(Y[7]=z=>b.value=z)},null,512),[[Bt,b.value]]),t("label",nu,i(e(a)("\u81EA\u5DF1\u6DFB\u52A0")),1)])])]),t("li",null,[t("div",iu,[ru,t("div",su,[b.value=="add"?N((r(),s("textarea",{key:0,"onUpdate:modelValue":Y[8]||(Y[8]=z=>d.value=z),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,du)),[[ot,d.value,void 0,{trim:!0}]]):C("",!0)])])])])],40,Pc)):C("",!0),p.value=="qBittorrent"?(r(),s("form",{key:1,onSubmit:mt(h,["prevent"])},[t("ul",null,[t("li",null,[t("div",cu,[t("div",uu,[t("span",pu,[B(Jt),t("div",null,[t("div",fu,[t("span",mu,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",gu,[B(Zt,{modelValue:f.value,"onUpdate:modelValue":Y[9]||(Y[9]=z=>f.value=z),modelModifiers:{trim:!0},title:e(a)("\u914D\u7F6E\u76EE\u5F55"),options:F.value.concat("/root").map(z=>({key:z+"/Configs/qb"}))},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",bu,[t("div",vu,[t("span",hu,[B(Jt),t("div",null,[t("div",_u,[t("span",xu,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",wu,[B(Zt,{modelValue:g.value,"onUpdate:modelValue":Y[10]||(Y[10]=z=>g.value=z),modelModifiers:{trim:!0},title:e(a)("\u4E0B\u8F7D\u76EE\u5F55"),options:m.value},null,8,["modelValue","title","options"])])])])])],40,lu)):C("",!0),p.value=="Transmission"?(r(),s("form",{key:2,onSubmit:mt(y,["prevent"])},[t("ul",null,[t("li",null,[t("div",yu,[t("div",Fu,[t("span",Eu,[B(Jt),t("div",null,[t("div",$u,[t("span",Cu,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",Du,[B(Zt,{modelValue:v.value,"onUpdate:modelValue":Y[11]||(Y[11]=z=>v.value=z),modelModifiers:{trim:!0},title:e(a)("\u914D\u7F6E\u76EE\u5F55"),options:F.value.concat("/root").map(z=>({key:z+"/Configs/transmission"}))},null,8,["modelValue","title","options"])])])]),t("li",null,[t("div",Bu,[t("div",Yu,[t("span",Au,[B(Jt),t("div",null,[t("div",Su,[t("span",zu,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",Pu,[B(Zt,{modelValue:w.value,"onUpdate:modelValue":Y[12]||(Y[12]=z=>w.value=z),modelModifiers:{trim:!0},title:e(a)("\u4E0B\u8F7D\u76EE\u5F55"),options:m.value},null,8,["modelValue","title","options"])])])])])],40,ku)):C("",!0),t("div",Tu,[p.value=="Aria2"?(r(),s("button",{key:0,class:"cbi-button cbi-button-apply",onClick:x},i(e(a)("\u542F\u7528")),1)):C("",!0),p.value=="qBittorrent"?(r(),s("button",{key:1,class:"cbi-button cbi-button-apply",onClick:h},i(e(a)("\u542F\u7528")),1)):C("",!0),p.value=="Transmission"?(r(),s("button",{key:2,class:"cbi-button cbi-button-apply",onClick:y},i(e(a)("\u542F\u7528")),1)):C("",!0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:D},i(e(a)("\u53D6\u6D88")),1)])])):k.value==1?(r(),s("div",Iu,[t("h2",Mu,i(e(a)("%{status}\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",{status:p.value})),1),t("div",Lu,[B(ca)]),t("p",Ou,i(e(a)("\u914D\u7F6E\u6210\u529F\uFF01")),1),t("div",Nu,[t("button",{class:"cbi-button cbi-button-apply",onClick:A},i(e(a)("\u786E\u5B9A")),1)])])):C("",!0)]),_:1},8,["Close"]))}});var Gu=O(Vu,[["__scopeId","data-v-7b328460"]]);const ju=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(Gu,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},ua=o=>(ct("data-v-8fb53dec"),o=o(),ut(),o),Uu={class:"content"},qu={class:"tab"},Ru=ua(()=>t("div",{class:"title"},"Aria2",-1)),Wu={key:0},Hu={key:1},Ju=ua(()=>t("div",{class:"title"},"qBittorrent",-1)),Zu={key:0},Ku={key:1},Qu=ua(()=>t("div",{class:"title"},"Transmission",-1)),Xu={key:0},t1={key:1},e1=T({setup(o){const{$gettext:n}=H(),a=E(!1),l=E("aria2"),c=m=>{l.value=m},d=E();setTimeout(()=>{j.Guide.DownloadService.Status.GET().then(m=>{var F;if((F=m==null?void 0:m.data)!=null&&F.result){const k=m.data.result;d.value=k}})},800),E(!1);const _=E(!1),b=()=>{_.value=!_.value},p=()=>{j.Guide.DownloadPartition.List.GET().then(m=>{var k,x;let F=[];(x=(k=m==null?void 0:m.data)==null?void 0:k.result)!=null&&x.partitionList&&(F=m.data.result.partitionList),ju({services:d.value,partitionList:F,defaultTab:l.value})})},f=(m,F,k)=>L(this,null,function*(){b(),zt.installAndGo(m,F,k)}),g=()=>{f("app-meta-aria2","Aria2","/cgi-bin/luci/admin/services/aria2")},v=()=>{f("app-meta-qbittorrent","qBittorrent","/cgi-bin/luci/admin/nas/qBittorrent")},w=()=>{f("app-meta-transmission","Transmission","/cgi-bin/luci/admin/services/transmission")};return(m,F)=>(r(),J(Wt,{title:e(n)("\u4E0B\u8F7D\u670D\u52A1"),showSettings:!0,onFooterClick:p,style:{width:"100%",height:"100%",display:"block"},"is-settings-menu-open":a.value,"onUpdate:isSettingsMenuOpen":F[4]||(F[4]=k=>a.value=k)},{icon:G(()=>[B(Kt,{color:"#00a63e",class:"icon"})]),settings:G(()=>[t("div",{class:"btn_settings",onClick:p},[B(Kt,{color:"#0a0a0a",class:"icon1 downloadIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u4E0B\u8F7D\u7BA1\u7406")),1),Boolean(d.value)?(r(),s("div",{key:0,class:"rotation",onClick:F[0]||(F[0]=mt(k=>a.value=!a.value,["stop"]))},[B(Ee,{class:"moreIcon"})])):C("",!0)])]),"settings-menu":G(()=>[t("div",null,[t("a",{onClick:g},i(e(n)("Aria2\u9AD8\u7EA7\u914D\u7F6E")),1)]),t("div",null,[t("a",{onClick:v},i(e(n)("qBittorrent\u9AD8\u7EA7\u914D\u7F6E")),1)]),t("div",null,[t("a",{onClick:w},i(e(n)("Transmission\u9AD8\u7EA7\u914D\u7F6E")),1)])]),default:G(()=>{var k,x,h,y,D,A,S,Y,z;return[t("div",Uu,[t("div",qu,[t("div",{class:lt(["item cloud",{active:l.value=="aria2"}]),onClick:F[1]||(F[1]=R=>c("aria2"))},[B(Kt,{color:"#f54900",class:"icon2"}),Ru,((x=(k=d.value)==null?void 0:k.aria2)==null?void 0:x.status)=="running"?(r(),s("span",Wu,i(e(n)("\u5DF2\u542F\u7528")),1)):(r(),s("span",Hu,i(e(n)("\u672A\u542F\u7528")),1))],2),t("div",{class:lt(["item memory",{active:l.value=="qbittorrent"}]),onClick:F[2]||(F[2]=R=>c("qbittorrent"))},[B(Kt,{color:"#4a5565",class:"icon2"}),Ju,((y=(h=d.value)==null?void 0:h.qbittorrent)==null?void 0:y.status)=="running"?(r(),s("span",Zu,i(e(n)("\u5DF2\u542F\u7528")),1)):(r(),s("span",Ku,i(e(n)("\u672A\u542F\u7528")),1))],2),t("div",{class:lt(["item network",{active:l.value=="transmission"}]),onClick:F[3]||(F[3]=R=>c("transmission"))},[B(Kt,{color:"#009689",class:"icon2"}),Qu,((A=(D=d.value)==null?void 0:D.transmission)==null?void 0:A.status)=="running"?(r(),s("span",Xu,i(e(n)("\u5DF2\u542F\u7528")),1)):(r(),s("span",t1,i(e(n)("\u672A\u542F\u7528")),1))],2)]),l.value=="aria2"?(r(),J(Sl,{key:0,aria2:(S=d.value)==null?void 0:S.aria2},null,8,["aria2"])):l.value=="qbittorrent"?(r(),J(Kl,{key:1,qbittorrent:(Y=d.value)==null?void 0:Y.qbittorrent},null,8,["qbittorrent"])):l.value=="transmission"?(r(),J(fc,{key:2,transmission:(z=d.value)==null?void 0:z.transmission},null,8,["transmission"])):C("",!0)])]}),_:1},8,["title","is-settings-menu-open"]))}});var a1=O(e1,[["__scopeId","data-v-8fb53dec"]]);const o1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},n1=["fill"],We=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",o1,[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,n1)]))}}),i1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},r1=["fill"],s1=["fill"],d1=["fill"],qa=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",i1,[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,r1),t("path",{d:"M488.049778 334.734222h47.900444V512h-47.900444V334.734222z",fill:o.color,"p-id":"8895"},null,8,s1),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,d1)]))}}),l1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},c1=["fill"],u1=["fill"],p1=["fill"],f1=T({props:{color:{type:String,default:"#4a5565"}},setup(o){return(n,a)=>(r(),s("svg",l1,[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,c1),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,u1),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,p1)]))}}),m1={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},g1=["fill"],ka=T({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",m1,[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,g1)]))}}),b1={class:"actioner-container"},v1={class:"actioner-container_header"},h1={class:"actioner-container_body"},_1={class:"label-item"},x1={class:"label_info"},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:"actioner-container_footer"},D1=T({props:{onSetup:{type:Function,required:!0},active:{type:String,default:"ddnsto"}},emits:["update:active"],setup(o,{emit:n}){const a=o,{$gettext:l,$ngettext:c}=H(),d=()=>{a.onSetup()},u=E(a.active),_=()=>{switch(n("update:active",u.value),u.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(b,p)=>(r(),s("div",b1,[t("div",v1,[t("span",null,i(e(l)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",h1,[t("div",_1,[t("label",null,[N(t("input",{type:"radio","onUpdate:modelValue":p[0]||(p[0]=f=>u.value=f),value:"ddnsto"},null,512),[[Bt,u.value]]),t("span",null,i(e(l)("DDNSTO")),1)]),t("p",x1,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",w1,[t("label",null,[N(t("input",{type:"radio","onUpdate:modelValue":p[1]||(p[1]=f=>u.value=f),value:"ali"},null,512),[[Bt,u.value]]),t("span",null,i(e(l)("\u963F\u91CC\u4E91")),1)]),t("p",k1,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",y1,[t("label",null,[N(t("input",{type:"radio","onUpdate:modelValue":p[2]||(p[2]=f=>u.value=f),value:"dnspod"},null,512),[[Bt,u.value]]),t("span",null,i(e(l)("Dnspod")),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,[N(t("input",{type:"radio","onUpdate:modelValue":p[3]||(p[3]=f=>u.value=f),value:"oray"},null,512),[[Bt,u.value]]),t("span",null,i(e(l)("\u82B1\u751F\u58F3")),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("div",{class:"close",onClick:d},i(e(l)("\u53D6\u6D88")),1),t("div",{class:"next",onClick:_},i(e(l)("\u4E0B\u4E00\u6B65")),1)])]))}});var B1=O(D1,[["__scopeId","data-v-46dd945e"]]);const Y1=o=>(ct("data-v-b760733a"),o=o(),ut(),o),A1={class:"actioner-container"},S1={class:"actioner-container_body"},z1=Y1(()=>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)),P1={class:"body-title"},T1={class:"body-tips"},I1={class:"body-info"},M1=["href"],L1={href:"/cgi-bin/luci/admin/services/ddns",target:"_blank"},O1={class:"actioner-container_footer"},N1=T({props:{target:{type:String,required:!0},onSetup:{type:Function,required:!0}},setup(o){const{$gettext:n,$ngettext:a}=H(),l=()=>{localStorage.setItem("firstOpen",JSON.stringify(!0)),location.reload()};return(c,d)=>(r(),s("div",A1,[t("div",S1,[z1,t("div",P1,i(e(n)("\u6DFB\u52A0\u6210\u529F")),1),t("p",T1,i(e(n)("\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002")),1),t("div",I1,[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,M1)]),t("div",null,[t("span",null,i(e(n)("\u53EF\u524D\u5F80")),1),t("a",L1,i(e(n)("\u670D\u52A1-\u52A8\u6001DNS")),1),t("span",null,i(e(n)("\u67E5\u770B\u66F4\u591A\u8BE6\u60C5")),1)])]),t("div",O1,[t("div",{class:"close",onClick:l},i(e(n)("\u5173\u95ED")),1)])]))}});var V1=O(N1,[["__scopeId","data-v-b760733a"]]);const G1=o=>(ct("data-v-064efd50"),o=o(),ut(),o),j1={class:"actioner-container"},U1={class:"actioner-container_header"},q1=G1(()=>t("div",{class:"actioner-container_body ddnsto-login"},[t("iframe",{src:"https://www.kooldns.cn/bind/#/auth?send=1&source=openwrt&callback=*"})],-1)),R1={class:"actioner-container_footer"},W1=T({props:{onSetup:{type:Function,required:!0},onDdnstoConfig:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=()=>{n.onSetup()},d=u=>{if(u.data.auth=="ddnsto"){const _=u.data.sign,b=u.data.token;_&&b&&(removeEventListener("message",d),n.onDdnstoConfig(_,b),n.onSetup("ddnsto-run"))}};return Pt(()=>{window.addEventListener("message",d)}),Nt(()=>{removeEventListener("message",d)}),(u,_)=>(r(),s("div",j1,[t("div",U1,[t("span",null,i(e(a)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),q1,t("div",R1,[t("div",{class:"close",onClick:c},i(e(a)("\u53D6\u6D88")),1)])]))}});var H1=O(W1,[["__scopeId","data-v-064efd50"]]);const J1={class:"actioner-container"},Z1={class:"actioner-container_header"},K1={class:"actioner-container_body ddnsto-bind"},Q1=["src"],X1=T({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:c}=H(),d=Z(()=>{const{domain:b,token:p,sign:f,routerId:g,netaddr:v}=a.config,w=encodeURIComponent(b),m=encodeURIComponent(v);return`https://www.kooldns.cn/bind/#/domain?domain=${w}&sign=${f}&token=${p}&routerId=${g}&netaddr=${m}`}),u=b=>{if(b.data){const{auth:p,url:f}=b.data;p==="ddnsto"&&f&&_(f)}},_=b=>L(this,null,function*(){var p;try{const f=yield j.Guide.DdnstoAddress.POST({address:b});f!=null&&f.data&&(((p=f==null?void 0:f.data)==null?void 0:p.success)||0)==0&&(n("update:domain",b),a.onSetup("ddnsto-save"))}catch(f){}});return Pt(()=>{window.addEventListener("message",u)}),Nt(()=>{removeEventListener("message",u)}),(b,p)=>(r(),s("div",J1,[t("div",Z1,[t("span",null,i(e(l)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",K1,[t("iframe",{src:e(d)},null,8,Q1)])]))}});var t2=O(X1,[["__scopeId","data-v-49c43a08"]]);const e2=o=>(ct("data-v-27f65f12"),o=o(),ut(),o),a2={class:"actioner-container"},o2={class:"actioner-container_body"},n2=e2(()=>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)),i2={class:"body-title"},r2={class:"body-tips"},s2={class:"body-info"},d2=["href"],l2={href:"https://www.ddnsto.com/app/#/devices",target:"_blank"},c2={class:"actioner-container_footer"},u2=T({props:{onSetup:{type:Function,required:!0},target:{type:String,required:!0}},setup(o){const{$gettext:n,$ngettext:a}=H(),l=()=>{localStorage.setItem("firstOpen",JSON.stringify(!0)),location.reload()};return(c,d)=>(r(),s("div",a2,[t("div",o2,[n2,t("div",i2,i(e(n)("\u6DFB\u52A0\u6210\u529F")),1),t("p",r2,i(e(n)("\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002")),1),t("div",s2,[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,d2)]),t("div",null,[t("span",null,i(e(n)("\u53EF\u524D\u5F80")),1),t("a",l2,i(e(n)("DDNSTO\u63A7\u5236\u53F0")),1),t("span",null,i(e(n)("\u67E5\u770B\u66F4\u591A\u8BE6\u60C5")),1)])]),t("div",c2,[t("div",{class:"close",onClick:l},i(e(n)("\u5173\u95ED")),1)])]))}});var p2=O(u2,[["__scopeId","data-v-27f65f12"]]);const f2={class:"actioner-container"},m2={class:"actioner-container_header"},g2={class:"actioner-container_body"},b2={class:"actioner-container_footer"},v2=T({props:{onSetup:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=()=>{n.onSetup()},d=()=>L(this,null,function*(){if(b.value)return;b.value=!0;const f=$.Loading(a("\u5B89\u88C5\u4E2D..."));try{if(yield zt.installApp("app-meta-ddnsto",30)){n.onSetup("ddnsto-login");return}else u.value=a("\u5B89\u88C5\u5931\u8D25")}catch(g){u.value=g}finally{f.Close()}b.value=!1}),u=E(a("\u6B63\u5728\u68C0\u6D4B\u4E2D...")),_=E(!1),b=E(!1);return(()=>L(this,null,function*(){try{const f=yield j.App.Check.POST({name:"ddnsto"});if(f!=null&&f.data){const{result:g,error:v}=f.data;if(v){u.value=v;return}if(g){if(g.status=="installed"){n.onSetup("ddnsto-login");return}g.status=="uninstalled"&&(u.value=a("\u9700\u8981\u5B89\u88C5DDNSTO\u63D2\u4EF6\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5F00\u59CB\u5B89\u88C5"))}}}catch(f){u.value=f}_.value=!0}))(),(f,g)=>(r(),s("div",f2,[t("div",m2,[t("span",null,i(e(a)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",g2,[t("span",null,i(u.value),1)]),t("div",b2,[_.value?(r(),s(U,{key:0},[t("div",{class:"close",onClick:c},i(e(a)("\u53D6\u6D88")),1),t("div",{class:"next",onClick:d},i(e(a)("\u786E\u5B9A")),1)],64)):C("",!0)])]))}});var h2=O(v2,[["__scopeId","data-v-210c03e8"]]);const _2={class:"actioner-container"},x2={class:"actioner-container_header"},w2={class:"actioner-container_body"},k2=T({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}=H(),c=E(a("\u6B63\u5728\u68C0\u6D4B\u63D2\u4EF6\u662F\u5426\u5DF2\u542F\u52A8..."));(f=>L(this,null,function*(){var g;try{const v=yield j.Guide.Ddnsto.POST({token:n.token});v!=null&&v.data&&(v.data.error&&(c.value=v.data.error),(((g=v==null?void 0:v.data)==null?void 0:g.success)||0)==0&&_())}catch(v){c.value=v}}))(n.token);const u=E(),_=()=>{const f=()=>L(this,null,function*(){if((yield b())===!0){p();return}u.value=window.setTimeout(f,2e3)});f()},b=()=>L(this,null,function*(){try{const f=yield j.App.Check.POST({name:"ddnsto",checkRunning:!0});if(f!=null&&f.data){f.data.error&&(c.value=f.data.error);const g=f.data.result;if((g==null?void 0:g.status)=="running")return!0}}catch(f){c.value=f}return!1});Nt(()=>{u.value&&clearInterval(u.value)});const p=()=>L(this,null,function*(){var f;try{const g=yield j.Guide.DdntoConfig.GET();if(g!=null&&g.data&&(g.data.error&&(c.value=g.data.error),(((f=g==null?void 0:g.data)==null?void 0:f.success)||0)==0&&g.data.result)){const v=g.data.result;n.onDdnstoLocalConfig(v.netAddr,v.deviceId),n.onSetup("ddnsto-bind")}}catch(g){c.value=g}});return(f,g)=>(r(),s("div",_2,[t("div",x2,[t("span",null,i(e(a)("\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",w2,i(c.value),1)]))}});var y2=O(k2,[["__scopeId","data-v-1b21487b"]]);const F2={class:"action-main"},E2=T({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(o){const n=o,a=E("ddnsto-install"),l=b=>{b!=null?a.value=b:c()},c=()=>{n.Close&&n.Close()},d=vt({sign:"",token:"",domain:n.url,netaddr:"",routerId:""}),u=(b,p)=>{d.sign=b,d.token=p},_=(b,p)=>{d.netaddr=b,d.routerId=p};return(b,p)=>(r(),J(wt,{type:1},{default:G(()=>[t("div",F2,[a.value=="ddnsto-install"?(r(),J(h2,{key:0,onSetup:l})):a.value=="ddnsto-login"?(r(),J(H1,{key:1,onSetup:l,onDdnstoConfig:u})):a.value=="ddnsto-run"?(r(),J(y2,{key:2,onSetup:l,token:e(d).token,onDdnstoLocalConfig:_},null,8,["token"])):a.value=="ddnsto-bind"?(r(),J(t2,{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]=f=>e(d).domain=f)},null,8,["config","domain"])):a.value=="ddnsto-save"?(r(),J(p2,{key:4,onSetup:l,target:e(d).domain},null,8,["target"])):C("",!0)])]),_:1}))}});var $2=O(E2,[["__scopeId","data-v-7a6bd385"]]);const C2=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t($2,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},D2={class:"action"},B2={class:"action-header"},Y2=["innerHTML"],A2={class:"action-footer"},S2=T({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}=H(),c=()=>{n.next&&n.next(),n.Close&&n.Close()},d=()=>{n.clear&&n.clear(),n.Close&&n.Close()},u=()=>{n.continuer&&n.continuer(),n.Close&&n.Close()};return(_,b)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[t("div",D2,[t("div",B2,i(o.title||e(a)("\u63D0\u793A")),1),t("div",{class:"action-body",innerHTML:o.content},null,8,Y2),t("div",A2,[o.clear?(r(),s("div",{key:0,class:"clear",onClick:d},i(o.clearTitle||e(a)("\u8FD4\u56DE")),1)):C("",!0),t("div",{class:"next",onClick:c},i(o.nextTitle||e(a)("\u786E\u5B9A")),1),o.continuer?(r(),s("div",{key:1,class:"next",onClick:u},i(o.continuerTitle||e(a)("\u7EE7\u7EED\u4FDD\u5B58")),1)):C("",!0)])])]),_:1},8,["Close"]))}});var z2=O(S2,[["__scopeId","data-v-05611967"]]);const Se=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(z2,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},P2=o=>(ct("data-v-6e29e960"),o=o(),ut(),o),T2={class:"actioner-container"},I2=["onSubmit"],M2={class:"actioner-container_header"},L2={key:0,class:"title_info"},O2={href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#%E9%98%BF%E9%87%8C%E4%BA%91",target:"_blank"},N2={key:1,class:"title_info"},V2={href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#dnspod",target:"_blank"},G2={key:2,class:"title_info"},j2={href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#%E8%8A%B1%E7%94%9F%E5%A3%B3",target:"_blank"},U2={class:"label-item"},q2={class:"label-item_key"},R2={class:"label-item_value"},W2={value:"ipv4"},H2={value:"ipv6"},J2={class:"label_tips"},Z2=P2(()=>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)),K2={class:"info"},Q2={class:"label-item"},X2={class:"label-item_key"},t6={class:"label-item_value"},e6={class:"label-item"},a6={class:"label-item_key"},o6={class:"label-item_value"},n6=["placeholder"],i6={class:"label-item"},r6={class:"label-item_key"},s6={class:"label-item_value"},d6=["placeholder"],l6={class:"actioner-container_footer"},c6=["disabled"],u6=T({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:c}=H(),d=E("ipv4"),u=E(a.name),_=E(""),b=E(""),p=E(""),f=E(!1),g=()=>{a.onSetup("index")},v=()=>{f.value=!0;const k=$.Loading(l("\u68C0\u6D4B\u4E2D..."));j.Network.CheckPublickNet.POST({ipVersion:d.value}).then(x=>{var h,y;if(x!=null&&x.data){if((h=x==null?void 0:x.data)!=null&&h.error){$.Warning(x==null?void 0:x.data.error);return}if((((y=x==null?void 0:x.data)==null?void 0:y.success)||0)==0){const D=x.data.result;D&&D.address?F():w();return}}throw l("\u672A\u77E5\u9519\u8BEF")}).catch(x=>{$.Error(x)}).finally(()=>{k.Close(),f.value=!1})},w=()=>{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(){m()},continuer(){F()},clear(){}})},m=()=>{a.onSetup("ddnsto")},F=()=>{f.value=!0;const k=$.Loading(l("\u914D\u7F6E\u4E2D..."));j.Guide.PostDdns.POST({ipVersion:d.value,serviceName:u.value,domain:_.value,userName:b.value,password:p.value}).then(x=>{if(x!=null&&x.data){const{error:h,scope:y,success:D}=x.data;if(h=="-100"&&y=="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(h){$.Warning(h);return}if((D||0)==0){n("update:target",_.value),a.onSetup("ddns-success");return}}throw l("\u672A\u77E5\u9519\u8BEF")}).catch(x=>{$.Error(x)}).finally(()=>{k.Close(),f.value=!1})};return(k,x)=>(r(),s("div",T2,[t("form",{class:"actioner-dns",onSubmit:mt(v,["prevent"])},[t("div",M2,[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",L2,[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",O2,i(e(l)("\u67E5\u770B\u6559\u7A0B"))+">>",1)])):o.name=="dnspod"?(r(),s("div",N2,[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",V2,i(e(l)("\u67E5\u770B\u6559\u7A0B"))+">>",1)])):o.name=="oray"?(r(),s("div",G2,[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",j2,i(e(l)("\u67E5\u770B\u6559\u7A0B"))+">>",1)])):C("",!0),t("div",U2,[t("div",q2,[t("span",null,i(e(l)("IP\u5730\u5740\u7248\u672C\uFF1A")),1)]),t("div",R2,[N(t("select",{name:"",id:"","onUpdate:modelValue":x[0]||(x[0]=h=>d.value=h)},[t("option",W2,i(e(l)("IPv4\u5730\u5740")),1),t("option",H2,i(e(l)("IPv6\u5730\u5740")),1)],512),[[pt,d.value]])]),t("div",J2,[Z2,t("span",K2,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",Q2,[t("div",X2,[t("span",null,i(e(l)("\u57DF\u540D\uFF1A")),1)]),t("div",t6,[N(t("input",{type:"text",placeholder:"myhost.example.com","onUpdate:modelValue":x[1]||(x[1]=h=>_.value=h),required:""},null,512),[[ot,_.value,void 0,{trim:!0}]])])]),t("div",e6,[t("div",a6,[t("span",null,i(e(l)("\u7528\u6237\u540D\uFF1A")),1)]),t("div",o6,[N(t("input",{type:"text","onUpdate:modelValue":x[2]||(x[2]=h=>b.value=h),placeholder:e(l)("\u8BF7\u8F93\u5165\u7528\u6237\u540D"),required:""},null,8,n6),[[ot,b.value,void 0,{trim:!0}]])])]),t("div",i6,[t("div",r6,[t("span",null,i(e(l)("\u5BC6\u7801\uFF1A")),1)]),t("div",s6,[N(t("input",{type:"password","onUpdate:modelValue":x[3]||(x[3]=h=>p.value=h),placeholder:e(l)("\u8BF7\u8F93\u5165\u5BC6\u7801"),required:""},null,8,d6),[[ot,p.value,void 0,{trim:!0}]])])])],2),t("div",l6,[t("div",{class:"close",onClick:g,type:"button"},i(e(l)("\u8FD4\u56DE")),1),t("button",{class:"next save",type:"submit",disabled:f.value},i(e(l)("\u4FDD\u5B58")),9,c6)])],40,I2)]))}});var He=O(u6,[["__scopeId","data-v-6e29e960"]]);const p6={class:"action-main"},f6=T({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(o){const n=o,a=E(""),l=E("index"),c=b=>{if(b!=null){if(b=="ddnsto"){d();return}l.value=b}else u()},d=()=>{u(),C2({url:n.url})},u=()=>{n.Close&&n.Close()},_=E("ddnsto");return(b,p)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[t("div",p6,[l.value=="index"?(r(),J(B1,{key:0,onSetup:c,active:_.value,"onUpdate:active":p[0]||(p[0]=f=>_.value=f)},null,8,["active"])):l.value=="ddns-ali"?(r(),J(He,{key:1,onSetup:c,target:a.value,"onUpdate:target":p[1]||(p[1]=f=>a.value=f),name:"ali"},null,8,["target"])):l.value=="ddns-dnspod"?(r(),J(He,{key:2,onSetup:c,target:a.value,"onUpdate:target":p[2]||(p[2]=f=>a.value=f),name:"dnspod"},null,8,["target"])):l.value=="ddns-oray"?(r(),J(He,{key:3,onSetup:c,target:a.value,"onUpdate:target":p[3]||(p[3]=f=>a.value=f),name:"oray"},null,8,["target"])):l.value=="ddns-success"?(r(),J(V1,{key:4,onSetup:c,target:a.value},null,8,["target"])):C("",!0)])]),_:1},8,["Close"]))}});var m6=O(f6,[["__scopeId","data-v-6f1d92d9"]]);const g6=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(m6,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},Ne=o=>(ct("data-v-ed895ce0"),o=o(),ut(),o),b6={class:"content"},v6={class:"tab"},h6=Ne(()=>t("div",{class:"title"},"DDNSTO",-1)),_6={key:0},x6={key:1},w6=Ne(()=>t("div",{class:"title"},"IPv4",-1)),k6={key:0},y6={key:1},F6=Ne(()=>t("div",{class:"title"},"IPv6",-1)),E6={key:0},$6={key:1},C6={key:0,class:"info"},D6={class:"status"},B6=Ne(()=>t("div",null,"DDNSTO",-1)),Y6={key:0},A6={key:1,class:"offline"},S6={class:"title_box"},z6={class:"title"},P6={class:"path"},T6=["href","title"],I6={key:1},M6={class:"item_btn",href:"https://www.kooldns.cn/app/#/devices",target:"_blank"},L6={key:1,class:"info"},O6={class:"status"},N6={key:0,class:"offline"},V6={key:1},G6={class:"title_box"},j6={class:"title"},U6={class:"path"},q6={key:0},R6=["href"],W6={key:2,href:"/cgi-bin/luci/admin/services/ddns"},H6={key:2,class:"info"},J6={class:"status"},Z6={key:0,class:"offline"},K6={key:1},Q6={class:"title_box"},X6={class:"title"},t5={class:"path"},e5={key:0},a5=["href"],o5={key:2,href:"/cgi-bin/luci/admin/services/ddns"},n5=T({setup(o){const{$gettext:n}=H(),a=E(0),l=g=>{a.value=g};let c=!1,d;const u=E({}),_=function(){!c||(document.hidden?Promise.resolve():j.Guide.GetDdns.GET().then(g=>{var v;g!=null&&g.data&&(((v=g==null?void 0:g.data)==null?void 0:v.success)||0)==0&&g.data.result&&(u.value=g.data.result)})).then(()=>{!c||(d=window.setTimeout(_,3e3))})};Pt(()=>{c=!0,d=window.setTimeout(_,1100)}),Nt(()=>{d!==void 0&&window.clearTimeout(d),c=!1});const b=()=>{g6({url:u.value.ddnstoDomain})},p=Z(()=>{const g=u.value.ipv4Domain;return!g||g=="Stopped"||g=="Disabled"?g:`http://${g}`}),f=Z(()=>{const g=u.value.ipv6Domain;return!g||g=="Stopped"||g=="Disabled"?g:`http://${g}`});return(g,v)=>(r(),J(Wt,{title:e(n)("\u8FDC\u7A0B\u57DF\u540D"),showSettings:!0,style:{width:"100%",height:"100%",display:"block"}},{icon:G(()=>[B(We,{color:"#00a63e",class:"icon"})]),settings:G(()=>[t("div",{class:"btn_settings",onClick:b},[B(We,{color:"#0a0a0a",class:"icon1 earthIcon",style:{"margin-right":"6px"}}),dt(" "+i(e(n)("\u57DF\u540D\u914D\u7F6E")),1)])]),default:G(()=>{var w,m,F,k,x,h;return[t("div",b6,[t("div",v6,[t("div",{class:lt(["item cloud",{active:a.value==0}]),style:ht({border:e(p)||e(f)?"":"none"}),onClick:v[0]||(v[0]=y=>l(0))},[B(We,{color:"#155dfc",class:"icon2"}),h6,(w=u.value)!=null&&w.ddnstoDomain?(r(),s("span",_6,i(e(n)("\u6B63\u5E38")),1)):(r(),s("span",x6,i(e(n)("\u672A\u542F\u52A8")),1))],6),e(p)?(r(),s("div",{key:0,class:lt(["item memory",{active:a.value==1}]),onClick:v[1]||(v[1]=y=>l(1))},[B(qa,{color:"#00a63e",class:"icon2"}),w6,e(p)=="Stopped"||e(p)=="Disabled"?(r(),s("span",k6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",y6,i(e(n)("\u6B63\u5E38")),1))],2)):C("",!0),e(f)?(r(),s("div",{key:1,class:lt(["item network",{active:a.value==2}]),onClick:v[2]||(v[2]=y=>l(2))},[B(f1,{class:"icon2"}),F6,e(f)=="Stopped"||e(f)=="Disabled"?(r(),s("span",E6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",$6,i(e(n)("\u6B63\u5E38")),1))],2)):C("",!0)]),a.value==0?(r(),s("div",C6,[t("div",D6,[B6,(m=u.value)!=null&&m.ddnstoDomain?(r(),s("span",Y6,i(e(n)("\u6B63\u5E38")),1)):(r(),s("span",A6,i(e(n)("\u672A\u542F\u52A8")),1))]),t("div",S6,[t("div",z6,i(e(n)("\u667A\u80FD\u5185\u7F51\u7A7F\u900F\u670D\u52A1")),1),t("div",P6,[(F=u.value)!=null&&F.ddnstoDomain?(r(),s("a",{key:0,class:"configure",href:(k=u.value)==null?void 0:k.ddnstoDomain,target:"_blank",rel:"noopener noreferrer",title:(x=u.value)==null?void 0:x.ddnstoDomain},i((h=u.value)==null?void 0:h.ddnstoDomain),9,T6)):(r(),s("div",I6,i(e(n)("\u672A\u5B89\u88C5\u6216\u672A\u914D\u7F6E")),1)),t("span",null,[t("a",M6,i(e(n)("\u63A7\u5236\u53F0")),1)])])])])):C("",!0),a.value==1?(r(),s("div",L6,[t("div",O6,[t("div",null,i(e(n)("\u5F53\u524D\u72B6\u6001:")),1),e(p)=="Stopped"||e(p)=="Disabled"?(r(),s("span",N6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",V6,i(e(n)("\u6B63\u5E38")),1))]),t("div",G6,[t("div",j6,"IPv4 "+i(e(n)("\u52A8\u6001\u57DF\u540D\u89E3\u6790")),1),t("div",U6,[e(p)=="Stopped"||e(p)=="Disabled"?(r(),s("div",q6,i(e(p)),1)):(r(),s("a",{key:1,class:"configure",href:e(p),target:"_blank",rel:"noopener noreferrer"},i(e(p)),9,R6)),e(p)?(r(),s("a",W6,[B(ka,{class:"icon3"})])):C("",!0)])])])):C("",!0),a.value==2?(r(),s("div",H6,[t("div",J6,[t("div",null,i(e(n)("\u5F53\u524D\u72B6\u6001:")),1),e(f)=="Stopped"||e(f)=="Disabled"?(r(),s("span",Z6,i(e(n)("\u79BB\u7EBF")),1)):(r(),s("span",K6,i(e(n)("\u6B63\u5E38")),1))]),t("div",Q6,[t("div",X6,"IPv6 "+i(e(n)("\u52A8\u6001\u57DF\u540D\u89E3\u6790")),1),t("div",t5,[e(f)=="Stopped"||e(f)=="Disabled"?(r(),s("div",e5,i(e(f)),1)):(r(),s("a",{key:1,class:"configure",href:e(f),target:"_blank",rel:"noopener noreferrer"},i(e(f)),9,a5)),e(f)?(r(),s("a",o5,[B(ka,{class:"icon3"})])):C("",!0)])])])):C("",!0)])]}),_:1},8,["title"]))}});var i5=O(n5,[["__scopeId","data-v-ed895ce0"]]);const r5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},s5=["fill"],d5=T({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",r5,[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,s5)]))}}),l5=()=>{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"},Ra=()=>l5()=="dark",Wa=o=>(ct("data-v-47c7bd93"),o=o(),ut(),o),c5={class:"title_box"},u5={class:"display_flex"},p5={class:"network_tag"},f5={class:"tag_item"},m5=Wa(()=>t("div",{class:"tag_dn"},null,-1)),g5={class:"tag_item"},b5=Wa(()=>t("div",{class:"tag_up"},null,-1)),v5={class:"speed"},h5={class:"speed_item"},_5={style:{color:"#1596fd"}},x5={class:"speed_item"},w5={style:{color:"#00a63e"}},k5=T({setup(o){const{$gettext:n}=H();Qe([Pa,Ta,Ia,Xe,ta,Ma]);const a=E(),l=h=>{var D;const y=(D=a.value)==null?void 0:D[h];return!y||y.startTime==0?"":p(y.startTime*1e3)+"-"+p(y.endTime*1e3)},c=Z(()=>{var y;let h=[];return(y=a.value)==null||y.forEach(D=>{h.push({value:D.uploadSpeed})}),h}),d=Z(()=>{var y;let h=[];return(y=a.value)==null||y.forEach(D=>{h.push({value:D.downloadSpeed})}),h}),u=Z(()=>{var y;let h="";if(a.value){let D=((y=a.value)==null?void 0:y.length)||0;if(D>0){let A=a.value[D-1];h=f(A.uploadSpeed)+"/s"}}return h}),_=Z(()=>{var y;let h="";if(a.value){let D=((y=a.value)==null?void 0:y.length)||0;if(D>0){let A=a.value[D-1];h=f(A.downloadSpeed)+"/s"}}return h});Z(()=>{var y;let h=[];return(y=a.value)==null||y.forEach(D=>{h.push({value:D.downloadSpeed+D.uploadSpeed})}),h});const b=()=>L(this,null,function*(){var h;try{const y=yield j.Network.Statistics.GET();if(y.data&&(h=y.data.result)!=null&&h.items){const D=y.data.result.slots||10;if(y.data.result.items.length<D){let A=y.data.result.items;for(;A.length<D;)A=[{downloadSpeed:0,endTime:0,startTime:0,uploadSpeed:0}].concat(A);a.value=A}else y.data.result.items.length>D?a.value=y.data.result.items.slice(D-y.data.result.items.length):a.value=y.data.result.items}}catch(y){console.log(y)}}),p=Mt.dateForm,f=Mt.byteToSize,g=E(),v=E();let w=null,m=null,F=null;const k=h=>{const y=Ra();return w=ea(h,y?"dark":"light"),w.setOption({animation:!1,backgroundColor:y?"#2c2c2c":"#fff",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:D=>{if(Array.isArray(D)){let A="";D.length>0&&(A=l(D[0].axisValue));for(let S=0;S<D.length;S++)A=`${A}<br>${D[S].seriesName}: ${f(D[S].value)}/s`;return A.toString()}else{const A=D;return`${l(A.axisValue)}<br>${A.seriesName}: ${f(A.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:y?"#cccccc":"rgba(0, 0, 0, 0.6)"},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(D,A){return`${f(D)}/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: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}}}],grid:{left:"2%",right:"2%",bottom:"0%",top:"10%",containLabel:!0}}),w},x=()=>{if(!w||!g.value)return;const h=Math.max(g.value.clientWidth,50),y=Math.max(g.value.clientHeight,50);w.resize({width:h,height:y})};return Pt(()=>{setTimeout(()=>L(this,null,function*(){if(g.value){yield b();const h=k(g.value),y=g.value;x(),F=()=>{x()},window.addEventListener("resize",F),"ResizeObserver"in window&&(m=new ResizeObserver(()=>{x()}),v.value&&m.observe(v.value),m.observe(y));const D=()=>L(this,null,function*(){if(w!=null){if(!document.hidden){if(yield b(),w==null)return;h.setOption({series:[{name:n("\u4E0B\u8F7D"),data:d.value,type:"line",areaStyle:{},smooth:!0},{name:n("\u4E0A\u4F20"),data:c.value,type:"line",areaStyle:{},smooth:!0}]}),x()}setTimeout(D,5e3)}});setTimeout(D,5e3)}}),900)}),Nt(()=>{w!=null&&(w.dispose(),w=null),F&&(window.removeEventListener("resize",F),F=null),m&&(m.disconnect(),m=null)}),(h,y)=>(r(),s("div",{class:"network_container",ref_key:"containerRef",ref:v},[t("div",c5,[t("div",u5,[B(d5,{color:"#20c7f7",class:"icon"}),t("span",null,i(e(n)("\u7F51\u7EDC\u6D41\u91CF")),1)]),t("div",null,[t("div",p5,[t("div",f5,[m5,t("span",null,i(e(n)("\u4E0B\u8F7D")),1)]),t("div",g5,[b5,t("span",null,i(e(n)("\u4E0A\u4F20")),1)])])])]),t("div",v5,[t("div",h5,[t("span",null,i(e(n)("\u4E0B\u8F7D\u901F\u5EA6")),1),t("div",_5,i(e(_)),1)]),t("div",x5,[t("span",null,i(e(n)("\u4E0A\u4F20\u901F\u5EA6")),1),t("div",w5,i(e(u)),1)])]),t("div",{ref_key:"el",ref:g,class:"echart"},null,512)],512))}});var ya=O(k5,[["__scopeId","data-v-47c7bd93"]]);const y5={width:"32",height:"32",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},F5=["fill"],E5=T({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",y5,[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,F5)]))}}),$5={width:"32",height:"32",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},C5=["fill"],D5=T({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",$5,[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,C5)]))}}),B5={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Y5=["fill"],xe=T({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=T({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=T({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=T({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"],Ha=T({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=T({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"],c3={key:1,class:"label-message"},u3={class:"actioner-dns_footer"},p3=["disabled"],f3={key:1,class:"actioner-dns"},m3={class:"actioner-dns_header"},g3={class:"actioner-dns_body"},b3={class:"config-message"},v3={class:"actioner-dns_footer"},h3=T({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(0),d=Fe(),u=d.status,_=Z(()=>d.status.proto!="static"),b=()=>{let F=u.dnsList||[];for(F=F.filter(k=>k);F.length<2;)F.push("");return F},p=E({interfaceName:u.defaultInterface||"",dnsProto:u.dnsProto||"manual",manualDnsIp:b()}),f=E(""),g=E(!1),v=()=>L(this,null,function*(){f.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(x=>x);break}F.dnsProto=p.value.dnsProto,F.interfaceName=p.value.interfaceName;const k=$.Loading(a("\u914D\u7F6E\u4E2D..."));try{const x=yield j.Guide.DnsConfig.POST(F);if(x!=null&&x.data){const{success:h,error:y}=x==null?void 0:x.data;y&&(f.value=y),(h==null||h==0)&&($.Success(a("\u914D\u7F6E\u6210\u529F")),c.value=1)}}catch(x){f.value=x}k.Close()}),w=F=>{F.preventDefault(),n.Close&&n.Close()},m=F=>{location.reload()};return(F,k)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[c.value==0?(r(),s("form",{key:0,class:"actioner-dns",onSubmit:mt(v,["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,[N(t("select",{"onUpdate:modelValue":k[0]||(k[0]=x=>p.value.dnsProto=x)},[t("option",{value:"auto",disabled:!e(_)},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,(x,h)=>(r(),s("div",o3,[h==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,[N(t("input",{type:"text",placeholder:e(a)("\u8BF7\u8F93\u5165DNS\u5730\u5740"),required:"","onUpdate:modelValue":y=>p.value.manualDnsIp[h]=y},null,8,r3),[[ot,p.value.manualDnsIp[h],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,[N(t("input",{type:"text",placeholder:e(a)("\u5907\u7528DNS\u5730\u5740"),"onUpdate:modelValue":y=>p.value.manualDnsIp[h]=y},null,8,l3),[[ot,p.value.manualDnsIp[h],void 0,{trim:!0}]])])],64))]))),256)):C("",!0),f.value?(r(),s("div",c3,i(f.value),1)):C("",!0)]),t("div",u3,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:g.value},i(e(a)("\u786E\u8BA4")),9,p3),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:w},i(e(a)("\u53D6\u6D88")),1)])],40,J5)):c.value==1?(r(),s("div",f3,[t("div",m3,[t("span",null,i(e(a)("DNS\u914D\u7F6E")),1)]),t("div",g3,[t("div",b3,i(e(a)("DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")),1)]),t("div",v3,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:m},i(e(a)("\u5B8C\u6210")),1)])])):C("",!0)]),_:1},8,["Close"]))}});var _3=O(h3,[["__scopeId","data-v-5cff2770"]]);const Ja=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=_t(_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=T({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(0),d=E(""),u=E(),_=E();(()=>{j.Guide.SoftSourceList.GET().then(v=>{var w,m;if((w=v==null?void 0:v.data)!=null&&w.result){const F=(m=v==null?void 0:v.data)==null?void 0:m.result;_.value=F}}).then(()=>j.Guide.GetSoftSource.GET()).then(v=>{var w,m;if((w=v==null?void 0:v.data)!=null&&w.result){const F=v.data.result;u.value=F.softSource,(m=_.value)!=null&&m.softSourceList.find(k=>k.identity==F.softSource.identity)&&(d.value=F.softSource.identity)}})})();const p=v=>{v.preventDefault(),n.Close&&n.Close()},f=v=>{const w=$.Loading(a("\u6B63\u5728\u5207\u6362\u4E2D..."));j.Guide.SoftSource.POST({softSourceIdentity:d.value}).then(m=>{if(m!=null&&m.data){if((m.data.success||0)==0){c.value=1;return}else if(m.data.error)throw m.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(m=>{$.Error(m)}).finally(()=>w.Close())},g=v=>{v.preventDefault(),location.reload()};return(v,w)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>{var m,F;return[c.value==0?(r(),s("form",{key:0,class:"actioner-dns",onSubmit:mt(f,["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((m=u.value)==null?void 0:m.name),1)])]),t("div",C3,[t("div",D3,[t("span",null,i(e(a)("\u5207\u6362\u8F6F\u4EF6\u6E90")),1)]),t("div",B3,[N(t("select",{name:"",id:"","onUpdate:modelValue":w[0]||(w[0]=k=>d.value=k)},[t("option",Y3,i(e(a)("\u8BF7\u9009\u62E9\u8F6F\u4EF6\u6E90")),1),(r(!0),s(U,null,tt((F=_.value)==null?void 0:F.softSourceList,(k,x)=>(r(),s("option",{value:k.identity,key:x},i(k.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)):C("",!0),c.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,[B(ca)]),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:g},i(e(a)("\u786E\u5B9A")),1)])])])):C("",!0)]}),_:1},8,["Close"]))}});var G3=O(V3,[["__scopeId","data-v-3f8f9931"]]);const Za=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=_t(G3,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},j3=o=>(ct("data-v-7c8390a5"),o=o(),ut(),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"},c8={class:"ip_item"},u8={class:"ip_tag"},p8={class:"ip_address"},f8={class:"ip_info"},m8={class:"ip_item"},g8=j3(()=>t("div",null,"IPv6",-1)),b8={key:1,class:"ip_tag"},v8={key:0,class:"ip_address"},h8={key:1,class:"ip_address"},_8={class:"ip_info",style:{"margin-bottom":"0"}},x8={class:"ip_item"},w8={class:"ip_address"},k8=T({setup(o){const{$gettext:n}=H(),a=Fe(),l=Z(()=>a.status),c=()=>{Ja()},d=()=>{Za()},u=E(!1),_=E(60);let b=null;const p=()=>{b!==null&&(clearInterval(b),b=null)},f=()=>{_.value>0?_.value--:p()},g=()=>{p(),b=setInterval(f,1e3)};$t(_,h=>{h===0?u.value=!1:u.value=!0});const v=()=>{u.value=!u.value,u.value?(_.value=60,g()):(_.value=60,p())};Nt(p),Z(()=>a.deviceList);const w=vt({portList:[],load:!1}),m=h=>{switch(h){case"pppoe":return n("\u62E8\u53F7\u4E0A\u7F51");case"static":return n("\u9759\u6001\u7F51\u7EDC");case"dhcp":return"DHCP"}return h&&h.toUpperCase()},F=h=>{switch(h){case"manual":return n("\u624B\u52A8\u914D\u7F6E");case"auto":return n("\u81EA\u52A8\u83B7\u53D6");default:return""}},k=()=>{(w.load&&document.hidden?Promise.resolve():j.Network.PortList.GET().then(h=>{if(h!=null&&h.data){const{result:y}=h==null?void 0:h.data;y&&(w.portList=y.ports||[])}})).finally(()=>{w.load=!0,setTimeout(k,1e4)})};k();const x=Mt.stampForm;return(h,y)=>(r(),s("div",null,[B(Wt,{title:e(n)("\u7F51\u7EDC\u8FDE\u63A5\u548CIP\u5730\u5740"),showSettings:!1},{icon:G(()=>[B(xe,{color:"#0a0a0a",class:"icon networkIcon"})]),default:G(()=>[t("div",U3,[e(l)!=null?(r(),s(U,{key:0},[e(l).networkInfo=="netSuccess"?(r(),s("div",q3,[t("div",R3,[B(P5,{color:"#00a63e",class:"icon"}),t("span",null,i(e(n)("\u7F51\u7EDC\u8FDE\u63A5\u6B63\u5E38")),1)]),t("div",W3,i(e(x)(e(l).uptimeStamp)),1)])):e(l).networkInfo=="dnsFailed"?(r(),s("div",H3,[t("div",J3,[t("div",Z3,[B(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:c},i(e(n)("DNS\u914D\u7F6E")),1)])]),t("div",Q3,i(e(x)(e(l).uptimeStamp)),1)])):e(l).networkInfo=="softSourceFailed"?(r(),s("div",X3,[t("div",t8,[t("div",e8,[B(Ha,{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:d},i(e(n)("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)])]),t("div",o8,i(e(x)(e(l).uptimeStamp)),1)])):e(l).networkInfo=="netFailed"?(r(),s("div",n8,[t("div",i8,[B(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(x)(e(l).uptimeStamp)),1)])):(r(),s("div",s8,[t("div",d8,[B(ze,{color:"#d08700",class:"icon"}),t("span",null,i(e(n)("\u68C0\u6D4B\u4E2D...")),1)])]))],64)):C("",!0),t("div",l8,[t("div",c8,[t("div",null,"IPv4 \uFF08"+i(e(l).defaultInterface)+"\uFF09",1),t("div",u8,i(m(e(l).proto||"")),1)]),t("div",p8,i(e(l).ipv4addr),1)]),t("div",f8,[t("div",m8,[g8,e(l).ipv6addr?(r(),s("div",{key:0,class:"ip_tag",style:{cursor:"pointer"},onClick:v},[u.value?(r(),J(D5,{key:0})):(r(),J(E5,{key:1})),dt(" "+i(e(n)("\u5DF2\u542F\u7528")),1)])):(r(),s("div",b8,i(e(n)("\u672A\u542F\u7528")),1))]),e(l).ipv6addr?(r(),s("div",v8,i(u.value?e(l).ipv6addr:"***************************************"),1)):(r(),s("div",h8,"-"))]),t("div",_8,[t("div",x8,[t("div",null,"DNS\uFF08"+i(F(e(l).dnsProto))+"\uFF09",1)]),(r(!0),s(U,null,tt(e(l).dnsList,D=>(r(),s("div",w8,i(D),1))),256))])])]),_:1},8,["title"])]))}});var y8=O(k8,[["__scopeId","data-v-7c8390a5"]]);const F8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},E8=["fill"],Fa=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",F8,[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,E8)]))}}),$8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},C8=["fill"],pa=T({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",$8,[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,C8)]))}}),D8=["value","checked","onChange"],B8={class:"content"},Y8=["onMouseenter"],A8={class:"name"},S8={key:0,class:"speed",style:{background:"#f3f4f6",color:"#4a5565"}},z8={style:{display:"flex","align-items":"center"}},P8={key:0,class:"status"},T8={key:1,class:"status"},I8={key:2,class:"speed",style:{"margin-left":"6px"}},M8=T({setup(o){const{$gettext:n}=H(),a=aa(),l=E(!1),c=ra(),d=vt({portList:[],load:!1}),u=()=>{a.push("/interfaceconfig")},_=(x,h)=>{localStorage.setItem(x,JSON.stringify(h))},b=x=>{const h=localStorage.getItem(x);try{return h?JSON.parse(h):[]}catch(y){return[]}},p="checkedPorts",f=E(b(p)),g=E([]),v=()=>{(d.load&&document.hidden?Promise.resolve():j.Network.PortList.GET().then(x=>{if(x!=null&&x.data){const{result:h}=x==null?void 0:x.data;h&&(d.portList=h.ports||[],g.value=h.ports||[])}})).finally(()=>{d.load=!0,setTimeout(v,1e4)})};v(),$t(f,x=>{g.value=d.portList.filter(h=>x.includes(h.name)),console.log(x,"newVal"),_(p,x)});const w=(x,h)=>{h.target.checked?f.value.includes(x)||(f.value=[...f.value,x]):f.value.length>1?f.value=f.value.filter(y=>y!==x):($.Warning(n("\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u7F51\u7EDC\u63A5\u53E3\uFF01")),h.target.checked=!0)},m=E(null),F=(x,h)=>{c.portitemStyle.show=!0;const y=h==null?void 0:h.target;if(y){const{left:D,top:A}=y.getBoundingClientRect();c.portitemStyle.left=D,c.portitemStyle.top=A}c.portitemStyle.portitem=x},k=()=>{c.portitemStyle.show=!1};return(x,h)=>(r(),J(Wt,{title:e(n)("\u7F51\u7EDC\u63A5\u53E3\u72B6\u6001"),showSettings:!0,"is-settings-menu-open":l.value,"onUpdate:isSettingsMenuOpen":h[0]||(h[0]=y=>l.value=y)},{icon:G(()=>[B(Fa,{color:"#0a0a0a",class:"icon interfaceIcon"})]),settings:G(()=>[t("div",{class:"btn_settings",onClick:u},[B(pa,{color:"#0a0a0a",class:"icon1 interfaceIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u914D\u7F6E\u7F51\u7EDC\u63A5\u53E3")),1)])]),"settings-menu":G(()=>[t("div",null,[(r(!0),s(U,null,tt(e(d).portList,y=>(r(),s("div",{key:y.name,class:"row"},[t("input",{type:"checkbox",value:y.name,checked:f.value.includes(y.name),onChange:D=>w(y.name,D)},null,40,D8),t("span",null,i(y.name),1)]))),128))])]),default:G(()=>[t("div",B8,[e(d).load?(r(!0),s(U,{key:0},tt(e(d).portList,y=>(r(),s("div",{class:"item",ref_for:!0,ref_key:"el",ref:m,onMouseenter:D=>F(y,D),onMouseleave:k},[t("div",{class:"icon_box",style:ht({backgroundColor:y.linkState=="DOWN"?"#f3f4f6":"#dbfce7"})},[B(Fa,{color:y.linkState=="DOWN"?"#99a1af":"#00a63e",class:"icon2"},null,8,["color"])],4),t("div",null,[t("div",A8,[dt(i(y.name)+" "+i(y.interfaceNames?`(${y.interfaceNames.join(",").toLocaleUpperCase()})`:""),1),y.linkState=="DOWN"?(r(),s("div",S8,i(e(n)("\u5DF2\u65AD\u5F00")),1)):C("",!0)]),t("div",z8,[y.linkState=="DOWN"?(r(),s("div",P8,i(e(n)("\u672A\u8FDE\u63A5")),1)):(r(),s("div",T8,i(e(n)("\u5DF2\u8FDE\u63A5")),1)),y.linkSpeed?(r(),s("div",I8,i(y.linkSpeed),1)):C("",!0)])])],40,Y8))),256)):C("",!0)])]),_:1},8,["title","is-settings-menu-open"]))}});var Ea=O(M8,[["__scopeId","data-v-3ebe4ebd"]]);const L8={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"32",height:"32"},O8=["fill"],N8=["fill"],V8=["fill"],G8=["fill"],j8=T({props:{color:{type:String,default:"#ffffff"}},setup(o){return(n,a)=>(r(),s("svg",L8,[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,O8),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,N8),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,V8),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,G8)]))}}),U8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},q8=["fill"],R8=["fill"],W8=["fill"],H8=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",U8,[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,q8),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,R8),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,W8)]))}}),J8={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Z8=["fill"],K8=["fill"],Q8=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",J8,[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,Z8),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,K8)]))}}),X8={width:"32",height:"32",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},t4=["fill"],e4=["fill"],a4=["fill"],o4=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",X8,[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,t4),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,e4),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,a4)]))}}),n4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},i4=["fill"],r4=["fill"],s4=T({props:{color:{type:String,default:"#2c2c2c"}},setup(o){return(n,a)=>(r(),s("svg",n4,[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,i4),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,r4)]))}}),d4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},l4=["fill"],c4=T({props:{color:{type:String,default:"#333333"}},setup(o){return(n,a)=>(r(),s("svg",d4,[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,l4)]))}}),u4={class:"header"},p4={class:"icon-wrapper"},f4={class:"content"},m4={class:"title"},g4={class:"subtitle"},b4={class:"footer"},v4={key:1,class:"extra"},h4={key:2,class:"extra badge"},_4={class:"extra_num"},x4={key:3,class:"badge"},w4=T({props:{card:{type:Object,required:!0}},setup(o){const{$gettext:n}=H(),a={navigation:{component:H8,props:{color:"#ffffff"}},wifi:{component:ze,props:{color:"#ffffff"}},topology:{component:qa,props:{color:"#ffffff"}},speed:{component:Q8,props:{color:"#ffffff"}},baby:{component:o4,props:{color:"#ffffff"}},appStore:{component:s4,props:{color:"#ffffff"}}};return(l,c)=>(r(),s("div",{class:lt(["feature-card",o.card.color]),onClick:c[0]||(c[0]=d=>l.$emit("click",o.card))},[t("div",null,[t("div",u4,[t("div",p4,[Yt(l.$slots,"icon",{},()=>{var d;return[o.card.icon&&a[o.card.icon]?(r(),J(oa((d=a[o.card.icon])==null?void 0:d.component),wo({key:0},a[o.card.icon].props,{class:"icon-svg"}),null,16)):C("",!0)]},!0)])]),t("div",f4,[t("div",m4,i(o.card.title),1),t("div",g4,i(o.card.subtitle),1)]),t("div",b4,[o.card.status?(r(),s("span",{key:0,class:lt(["status",{active:o.card.isActive}])},i(o.card.status),3)):C("",!0),o.card.extra?(r(),s("div",v4,i(o.card.extra),1)):C("",!0),o.card.num?(r(),s("div",h4,[t("span",_4,i(o.card.num),1),dt(" "+i(e(n)("\u53F0\u8BBE\u5907\u5728\u7EBF")),1)])):C("",!0),o.card.tag?(r(),s("span",x4,i(o.card.tag),1)):C("",!0)])]),B(c4,{class:"right-arrow",color:"#99a1af"})],2))}});var k4=O(w4,[["__scopeId","data-v-2f3ab6ab"]]);const y4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},F4=["fill"],E4=["fill"],$4=["fill"],C4=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",y4,[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,F4),t("path",{d:"M488.049778 334.734222h47.900444V512h-47.900444V334.734222z",fill:o.color,"p-id":"8895"},null,8,E4),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,$4)]))}}),D4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},B4=["fill"],Y4=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",D4,[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,B4)]))}}),A4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},S4=["fill"],z4=["fill"],Je=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",A4,[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,S4),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,z4)]))}}),P4={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},T4=["fill"],I4=["fill"],Ka=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",P4,[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,T4),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,I4)]))}}),Qa=/\d+\.\d+\.\d+\.\d+/,M4=o=>Qa.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]},$a=o=>ye.fromByteArray([o>>24&255,o>>16&255,o>>8&255,o&255]).toString(),L4=o=>{if(!Qa.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},O4=(o,n,a,l)=>{let c=qt(o)&qt(n),d=qt(a),u=qt(l),b=~qt(n);return d<u&&d>c+1&&u<c+b},N4=(o,n)=>{let a=qt(n),l=qt(o)&a,c=~a,d;return c>=105?(d=l|c-5,l=l|100):c>=3?(d=l|c-1,l=l|2):(l=l|1,d=l),[$a(l),$a(d)]},V4=o=>ye.IPv4.subnetMaskFromPrefixLength(o).toString();var Lt={isValidMask:L4,isValidIPv4:M4,isValidMaskRange:O4,calcMaskRange:N4,prefixToMask:V4};const fa=o=>(ct("data-v-22104807"),o=o(),ut(),o),G4=["onSubmit"],j4={class:"actioner-dns_header"},U4={class:"actioner-dns_body"},q4={class:"label-item"},R4={class:"label-item_key"},W4={class:"label-item_value"},H4={class:"label-item"},J4={class:"label-item_key"},Z4={class:"label-item_value"},K4={key:0,class:"chose_dhcp"},Q4={key:0,class:"dhcp_info"},X4={key:1,class:"dhcp_info"},t7={class:"label-item"},e7={class:"label-item_key"},a7={class:"label-item_value"},o7={class:"label-item"},n7={class:"label-item_key"},i7={class:"label-item_value"},r7={class:"actioner-dns_footer"},s7=["disabled"],d7={key:1,class:"actioner-dns"},l7={class:"actioner-dns_header"},c7={class:"actioner-dns_body"},u7={key:0,class:"setting_status"},p7=fa(()=>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)),f7={class:"config-message"},m7=["href"],g7={key:1,class:"setting_status"},b7=fa(()=>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)),v7={class:"config-message"},h7={key:2,class:"setting_status"},_7=fa(()=>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)),x7={class:"config-message"},w7=T({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(0),d=E({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""});E("");const u=E(!1);E(!0),E(!1);const _=E(""),b=E(2),p=E(!1),f=E("timeout");let g=!0;(()=>{j.Guide.GetLan.GET().then(x=>{x.data.result&&(p.value=x.data.result.enableDhcp||!1,x.data.result.enableDhcp=!1,d.value=x.data.result,x.data.result.lanIp!==location.hostname&&(g=!1))})})();const w=()=>{const x=d.value;if(!Lt.isValidIPv4(x.lanIp)){$.Warning(a("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF"));return}if(!Lt.isValidMask(x.netMask)){$.Warning(a("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF"));return}const h=Lt.calcMaskRange(x.lanIp,x.netMask);x.dhcpStart=h[0],x.dhcpEnd=h[1],d.value=x},m=()=>{const x=d.value;if(!Lt.isValidIPv4(x.lanIp)){$.Warning(a("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF"));return}if(!Lt.isValidMask(x.netMask)){$.Warning(a("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF"));return}if(x.enableDhcp&&!(Lt.isValidIPv4(x.dhcpStart)&&Lt.isValidIPv4(x.dhcpEnd)&&Lt.isValidMaskRange(x.lanIp,x.netMask,x.dhcpStart,x.dhcpEnd))){$.Warning(a("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4"));return}const h=$.Loading(a("\u6B63\u5728\u914D\u7F6E\u2026\u8BF7\u7A0D\u7B49"),30);let y=0;const D=S=>{f.value=S,c.value=1,y=1,h.Close()},A=()=>{const S=new Date().getTime()+3e4,Y=g?location.protocol+"//"+x.lanIp+(location.port?":"+location.port:""):location.origin,z=Y+"/luci-static/resources/icons/loading.gif",R=()=>{y==0&&(new Date().getTime()>S?D("timeout"):window.setTimeout(I,2e3))},V=()=>{y==0&&(_.value=Y+location.pathname,D("success"),window.setTimeout(()=>{b.value=1},1e3),window.setTimeout(()=>{location.href=_.value},2e3))},I=()=>{if(y!=0)return;console.log("check online ",z);const M=new Image;M.onload=V,M.onerror=R,M.src=z};window.setTimeout(I,5e3)};j.Guide.LanIp.POST(x).then(S=>{var Y;if(S!=null&&S.data){if((S.data.success||0)==0)return;if((Y=S.data)!=null&&Y.error)throw S.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(S=>{y==0&&(D("fail"),$.Error(S))}),A(),window.setTimeout(()=>{y==0&&D("timeout")},3e4)},F=x=>{x.preventDefault(),n.Close&&n.Close()},k=x=>{location.reload()};return(x,h)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[c.value==0?(r(),s("form",{key:0,class:"actioner-dns",onSubmit:mt(m,["prevent"])},[t("div",j4,[t("span",null,i(e(a)("\u5185\u7F51\u914D\u7F6E")),1)]),t("div",U4,[t("div",q4,[t("div",R4,[t("span",null,i(e(a)("IPv4\u5730\u5740")),1)]),t("div",W4,[N(t("input",{type:"text",placeholder:"192.168.100.1",required:"","onUpdate:modelValue":h[0]||(h[0]=y=>d.value.lanIp=y),onChange:w},null,544),[[ot,d.value.lanIp,void 0,{trim:!0}]])])]),t("div",H4,[t("div",J4,[t("span",null,i(e(a)("IPv4\u5B50\u7F51\u63A9\u7801")),1)]),t("div",Z4,[N(t("input",{type:"text",placeholder:"255.255.255.0",required:"","onUpdate:modelValue":h[1]||(h[1]=y=>d.value.netMask=y),onChange:w},null,544),[[ot,d.value.netMask,void 0,{trim:!0}]])])]),p.value?(r(),s("div",K4,[B(Ga,{modelValue:d.value.enableDhcp,"onUpdate:modelValue":h[2]||(h[2]=y=>d.value.enableDhcp=y)},{default:G(()=>[d.value.enableDhcp?(r(),s("span",Q4,i(e(a)("\u4FEE\u6539DHCP\u670D\u52A1")),1)):(r(),s("span",X4,i(e(a)("\u4FDD\u6301DHCP\u670D\u52A1\u8BBE\u7F6E")),1))]),_:1},8,["modelValue"])])):C("",!0),d.value.enableDhcp?(r(),s(U,{key:1},[t("div",t7,[t("div",e7,[t("span",null,i(e(a)("IP\u6C60\u8D77\u59CB\u5730\u5740")),1)]),t("div",a7,[N(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":h[3]||(h[3]=y=>d.value.dhcpStart=y)},null,512),[[ot,d.value.dhcpStart,void 0,{trim:!0}]])])]),t("div",o7,[t("div",n7,[t("span",null,i(e(a)("IP\u6C60\u7ED3\u675F\u5730\u5740")),1)]),t("div",i7,[N(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":h[4]||(h[4]=y=>d.value.dhcpEnd=y)},null,512),[[ot,d.value.dhcpEnd,void 0,{trim:!0}]])])])],64)):C("",!0)]),t("div",r7,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:u.value},i(e(a)("\u786E\u8BA4")),9,s7),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:F},i(e(a)("\u53D6\u6D88")),1)])],40,G4)):c.value==1?(r(),s("div",d7,[t("div",l7,[t("span",null,i(e(a)("\u66F4\u6362\u914D\u7F6E")),1)]),t("div",c7,[f.value=="success"?(r(),s("div",u7,[p7,t("div",f7,i(e(a)("\u914D\u7F6E\u6210\u529F")),1),t("a",{href:_.value,class:"NewAdress"},i(e(a)("%{ countdown }s\u540E \u8DF3\u8F6C\u65B0\u5730\u5740",{countdown:""+b.value})),9,m7)])):f.value=="fail"?(r(),s("div",g7,[b7,t("div",v7,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:k},i(e(a)("\u6211\u77E5\u9053\u4E86")),1)])):f.value=="timeout"?(r(),s("div",h7,[_7,t("div",x7,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:k},i(e(a)("\u5237\u65B0\u9875\u9762")),1)])):C("",!0)])])):C("",!0)]),_:1},8,["Close"]))}});var k7=O(w7,[["__scopeId","data-v-22104807"]]);const y7=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=_t(k7,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},F7={key:0,class:"actioner-dns"},E7={class:"actioner-dns_header"},$7={class:"actioner-dns_body"},C7={class:"sandbox_info"},D7={key:0,class:"disk_loading_icon"},B7={class:"disk_loading_info"},Y7={key:1,class:"disk_tips"},A7={class:"label-item"},S7={class:"label-item_key"},z7={class:"label-item_value"},P7={value:""},T7=["value"],I7={class:"label-item"},M7={class:"label-item_key"},L7={class:"label-item_value"},O7={selected:"true",value:""},N7=["value","disabled"],V7={class:"sandbox_tips"},G7={class:"sandbox_info timeout"},j7={class:"sandbox_roboot_tips"},U7={class:"sandbox_roboot_refresh"},q7={key:0,class:"actioner-dns_footer"},R7=["disabled"],W7={key:1,class:"actioner-tips"},H7={class:"actioner-tips_header"},J7={class:"actioner-tips_body"},Z7={class:"sandbox_info"},K7={class:"actioner-tips_footer"},Q7={key:2,class:"actioner-tips"},X7={class:"actioner-tips_header"},tp={class:"actioner-tips_body"},ep={class:"sandbox_info"},ap={class:"actioner-tips_footer"},op=T({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(0);E("disk");const d=E(""),u=E(3),_=E(""),b=E([]),p=E(""),f=E(null);(()=>{j.Nas.SandboxDisks.GET().then(y=>{var D;if(y!=null&&y.data&&(D=y.data)!=null&&D.result){f.value=y.data.result;return}throw a("\u52A0\u8F7D\u78C1\u76D8\u4FE1\u606F\u5931\u8D25")}).catch(y=>{d.value=y,c.value=3})})();const v=()=>j.System.Reboot.POST({name:_.value,path:p.value}).then(y=>{var D;if(!(y!=null&&y.data&&(((D=y==null?void 0:y.data)==null?void 0:D.success)||0)==0))throw a("\u672A\u77E5\u9519\u8BEF")}),w=y=>{var D,A;p.value="",b.value=_.value&&((A=(D=f.value)==null?void 0:D.disks.find(S=>S.path==_.value))==null?void 0:A.childrens)||[]},m=()=>{u.value>0&&(u.value-=1,window.setTimeout(m,1e3))},F=y=>{y.preventDefault(),n.Close&&n.Close()},k=()=>{new Promise((y,D)=>{const A="/luci-static/resources/icons/loading.gif",S=()=>{window.setTimeout(Y,2e3)},Y=()=>{const z=new Image;z.onload=y,z.onerror=S,z.src=A};window.setTimeout(Y,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},x=y=>{const D=$.Loading(a("\u914D\u7F6E\u6C99\u7BB1\u91CD\u542F\u4E2D..."));j.Nas.Sandbox.POST({path:p.value}).then(A=>{var S;if(A!=null&&A.data){if((A.data.success||0)==0)return c.value=2,window.setTimeout(m,1e3),v();if((S=A.data)!=null&&S.error)throw A.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).then(k).catch(A=>$.Warning(A)).finally(()=>D.Close())},h=()=>{c.value=0};return(y,D)=>{const A=xt("icon-loading");return r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[c.value==0||c.value==2?(r(),s("div",F7,[t("div",E7,[t("span",null,i(e(a)("\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",$7,[t("p",C7,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),c.value==0?(r(),s(U,{key:0},[f.value?C("",!0):(r(),s("div",D7,[B(A,{size:38,color:"currentColor"}),t("span",B7,i(e(a)("\u6B63\u5728\u52A0\u8F7D\u4E2D...")),1)])),f.value&&f.value.disks.length==0?(r(),s("div",Y7,[B(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)])):C("",!0),f.value&&f.value.disks.length>0?(r(),s(U,{key:2},[t("div",A7,[t("div",S7,[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",z7,[N(t("select",{name:"",id:"",onChange:w,"onUpdate:modelValue":D[0]||(D[0]=S=>_.value=S)},[t("option",P7,i(e(a)("\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8")),1),(r(!0),s(U,null,tt(f.value.disks,(S,Y)=>(r(),s("option",{value:S.path,key:Y},i(S.venderModel)+"\uFF08"+i(S.size)+"\uFF09 ",9,T7))),128))],544),[[pt,_.value]])])]),t("div",I7,[t("div",M7,[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",L7,[N(t("select",{name:"",id:"","onUpdate:modelValue":D[1]||(D[1]=S=>p.value=S)},[t("option",O7,i(e(a)("\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A")),1),(r(!0),s(U,null,tt(b.value,(S,Y)=>(r(),s("option",{value:S.path,key:Y,disabled:S.sizeInt<(1<<30)*1||S.isSystemRoot},i(S.name)+"\uFF08"+i(S.filesystem||e(a)("\u672A\u683C\u5F0F\u5316"))+"\uFF09"+i(S.total),9,N7))),128))],512),[[pt,p.value]])])]),t("div",V7,[B(It),t("span",null,i(e(a)("\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E")),1)])],64)):C("",!0)],64)):C("",!0),c.value==2?(r(),s(U,{key:1},[t("p",G7,[dt(i(e(a)("\u5373\u5C06\u91CD\u542F\u8BBE\u5907"))+" ",1),t("span",null,"\uFF08"+i(u.value)+"s\uFF09",1)]),t("p",j7,[dt(i(e(a)("\u7B49\u5F85\u8BBE\u5907\u91CD\u542F\uFF0C\u91CD\u542F\u5B8C\u6210\u540E")),1),t("span",U7,i(e(a)("\u8BF7\u5237\u65B0\u754C\u9762")),1)])],64)):C("",!0)]),c.value==0?(r(),s("div",q7,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:!p.value,onClick:D[2]||(D[2]=S=>c.value=1)},i(e(a)("\u5F00\u542F\u6C99\u7BB1")),9,R7),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:F},i(e(a)("\u53D6\u6D88")),1)])):C("",!0)])):C("",!0),c.value==1?(r(),s("div",W7,[t("div",H7,[t("span",null,i(e(a)("\u6E29\u99A8\u63D0\u793A")),1)]),t("div",J7,[t("p",Z7,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",K7,[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:x},i(e(a)("\u7EE7\u7EED")),1),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:h},i(e(a)("\u53D6\u6D88")),1)])])):C("",!0),c.value==3?(r(),s("div",Q7,[t("div",X7,[t("span",null,i(e(a)("\u9519\u8BEF")),1)]),t("div",tp,[t("p",ep,i(d.value),1)]),t("div",ap,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:h},i(e(a)("\u53D6\u6D88")),1)])])):C("",!0)]),_:1},8,["Close"])}}});var np=O(op,[["__scopeId","data-v-2b57eea5"]]);const ip=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=_t(np,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},rp={key:0,class:"actioner-dns"},sp={class:"actioner-dns_header"},dp={class:"actioner-dns_body"},lp={class:"sandbox_info"},cp={class:"sandbox_environment"},up={class:"sandbox_environment_info"},pp={class:"sandbox_environment_reboot"},fp=["innerHTML"],mp={class:"actioner-dns_footer"},gp=["disabled"],bp=["disabled"],vp=["disabled"],hp=T({props:{Close:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(0),d=E(!1),u=()=>{new Promise((g,v)=>{const w="/luci-static/resources/icons/loading.gif",m=()=>{window.setTimeout(F,2e3)},F=()=>{const k=new Image;k.onload=g,k.onerror=m,k.src=w};window.setTimeout(F,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},_=()=>{d.value=!0;const g=$.Loading(a("\u63D0\u4EA4\u4E2D..."));j.Nas.SandboxCommit.POST().then(v=>{var w,m;if(v!=null&&v.data)if((((w=v==null?void 0:v.data)==null?void 0:w.success)||0)==0){$.Loading(a("\u8BBE\u5907\u91CD\u542F\u4E2D..."));return}else(m=v==null?void 0:v.data)!=null&&m.error&&alert(v.data.error);throw a("\u672A\u77E5\u9519\u8BEF")}).then(u).catch(v=>{$.Error(v),d.value=!1}).finally(()=>g.Close())},b=()=>{d.value=!0;const g=$.Loading(a("\u91CD\u7F6E\u4E2D..."));j.Nas.SandboxReset.POST().then(v=>{var w,m;if(v!=null&&v.data)if((((w=v==null?void 0:v.data)==null?void 0:w.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(m=v==null?void 0:v.data)!=null&&m.error&&alert(v.data.error);throw a("\u672A\u77E5\u9519\u8BEF")}).then(u).catch(v=>{$.Error(v),d.value=!1}).finally(()=>g.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 g=$.Loading(a("\u6267\u884C\u4E2D..."));j.Nas.SandboxExit.POST().then(v=>{var w,m;if(v!=null&&v.data)if((((w=v==null?void 0:v.data)==null?void 0:w.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(m=v==null?void 0:v.data)!=null&&m.error&&alert(v.data.error);throw a("\u672A\u77E5\u9519\u8BEF")}).then(u).catch(v=>{$.Error(v),d.value=!1}).finally(()=>g.Close())},f=g=>{g.preventDefault(),n.Close&&n.Close()};return(g,v)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[c.value==0?(r(),s("div",rp,[t("div",sp,[t("span",null,i(e(a)("\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")),1)]),t("div",dp,[t("p",lp,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",cp,[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",up,[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",pp,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,fp)])]),t("div",mp,[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:_,disabled:d.value},i(e(a)("\u63D0\u4EA4")),9,gp),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:b,disabled:d.value},i(e(a)("\u91CD\u7F6E")),9,bp),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p,disabled:d.value},i(e(a)("\u9000\u51FA")),9,vp),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:f},i(e(a)("\u53D6\u6D88")),1)])])):C("",!0)]),_:1},8,["Close"]))}});var _p=O(hp,[["__scopeId","data-v-9573dc70"]]);const xp=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=_t(_p,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},wp={class:"item_container"},kp=["onClick","title"],yp={class:"renew"},Fp={key:0},Ep={key:1,style:{display:"inline-block","margin-left":"4px"}},$p={class:"app-update-button-menu"},Cp=["onClick"],Dp={class:"app-update-menu-item"},Bp={key:0,class:"app-update-menu-item-loading"},Yp={class:"dns_txt"},Ap={key:0,style:{display:"inline-block","margin-left":"4px"}},Sp=T({setup(o){var A,S;const{$gettext:n}=H(),a=E(!0);(S=(A=window.quickstart_configs)==null?void 0:A.update)!=null&&S.disable&&(a.value=!1);const l=E(!1),c=E(a.value),d=E(!1),u=Me(),_=Fe(),b=Z(()=>_.status),p=E(),f=()=>{Ja()};$t(c,Y=>{d.value=!0,j.System.AutoCheckUpdate.POST({enable:Y}).catch(z=>{$.Warning(z)}).finally(()=>{d.value=!1})});const g=()=>{window.location.href="/cgi-bin/luci/admin/system/ota"},v=()=>{window.location.href="/cgi-bin/luci/admin/status/logs"},w=()=>{window.location.href="/cgi-bin/luci/admin/store/pages/maintance"},m=()=>{ip()},F=()=>{xp()},k=()=>{alert(n("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u6C99\u7BB1\u6A21\u5F0F"))},x=()=>{y7()},h=()=>{Za()},y=()=>{var Y,z,R,V;window.open(`${(z=(Y=window.quickstart_configs)==null?void 0:Y.ttyd)!=null&&z.ssl?"https":"http"}://${window.location.hostname}:${((V=(R=window.quickstart_configs)==null?void 0:R.ttyd)==null?void 0:V.port)||7681}/`,"_blank")},D=()=>{l.value=!l.value};return a.value&&setTimeout(()=>{u.requestCheckUpdate()},1100),Qt("sandbox")&&j.Nas.GetSandbox.GET().then(z=>{var R,V,I;z!=null&&z.data&&((((R=z==null?void 0:z.data)==null?void 0:R.success)||0)==0?(V=z==null?void 0:z.data)!=null&&V.result&&(p.value=z.data.result):(I=z==null?void 0:z.data)!=null&&I.error&&alert(z.data.error))}).catch(z=>$.Warning(z)),(Y,z)=>{var I,M,W,X,st,at;const R=xt("icon-loading"),V=xt("switch-box");return r(),s("div",wp,[t("div",{class:"item",style:{backgroundColor:"#f3f7fd"},onClick:x},[B(C4,{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:y},[B(Y4,{color:"#00c850",class:"icon"}),t("span",null,i(e(n)("\u7EC8\u7AEF")),1)])):C("",!0),e(Qt)("ota")?(r(),s("div",{key:1,class:"item",style:{backgroundColor:"#f9f7fd"},onClick:g},[t("span",{class:"app-update-button-more",onClick:mt(D,["stop","prevent"]),title:e(n)("\u56FA\u4EF6\u66F4\u65B0\u9009\u9879")},[B(Ee)],8,kp),B(Kt,{color:"#ad46ff",class:"icon"}),t("span",yp,[(I=e(u).checkUpdate)!=null&&I.needUpdate?(r(),s("i",Fp)):C("",!0),dt(" "+i(e(n)("\u56FA\u4EF6\u66F4\u65B0"))+" ",1),a.value&&e(u).checkUpdate==null?(r(),s("span",Ep,[B(R,{size:"1em",color:"currentColor"})])):C("",!0)]),N(t("div",$p,[t("div",{class:"menu_background",onClick:mt(D,["stop","prevent"])},null,8,Cp),t("ul",{onClick:z[1]||(z[1]=mt(()=>{},["stop"]))},[t("li",null,[B(V,{modelValue:c.value,"onUpdate:modelValue":z[0]||(z[0]=ft=>c.value=ft)},{default:G(()=>[t("span",Dp,i(e(n)("\u81EA\u52A8\u68C0\u67E5\u66F4\u65B0")),1)]),_:1},8,["modelValue"]),d.value?(r(),s("span",Bp,[B(R,{size:"1em",color:"currentColor"})])):C("",!0)])])],512),[[ee,l.value]])])):C("",!0),t("div",{class:lt(["item",{"disabled-style":!((M=e(b))!=null&&M.proto)}]),style:{backgroundColor:"#f1fbfd"},onClick:f},[B(xe,{color:"#00b8db",class:"icon"}),t("span",Yp,[dt(i(e(n)("DNS\u914D\u7F6E"))+" ",1),(W=e(b))!=null&&W.proto?C("",!0):(r(),s("span",Ap,[B(R,{size:"1em",color:"currentColor"})]))])],2),t("div",{class:"item",style:{backgroundColor:"#fbf5fa"},onClick:h},[B(Ha,{color:"#f6339a",class:"icon"}),t("span",null,i(e(n)("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)]),e(Qt)("sandbox")?(r(),s(U,{key:2},[((X=p.value)==null?void 0:X.status)=="unsupport"?(r(),s("div",{key:0,class:"item",style:{backgroundColor:"#f9fafb"},onClick:k},[B(Je,{color:"#cac9cd",class:"icon"}),t("span",null,i(e(n)("\u5F00\u542F\u6C99\u7BB1")),1)])):((st=p.value)==null?void 0:st.status)=="stopped"?(r(),s("div",{key:1,class:"item",style:{backgroundColor:"#fbf4f5"},onClick:m},[B(Je,{color:"#fb2c36",class:"icon"}),t("span",null,i(e(n)("\u5F00\u542F\u6C99\u7BB1")),1)])):((at=p.value)==null?void 0:at.status)=="running"?(r(),s("div",{key:2,class:"item",style:{backgroundColor:"#dae8fd"},onClick:F},[B(Je,{color:"#2b7fff",class:"icon"}),t("span",null,i(e(n)("\u6C99\u7BB1\u5DF2\u5F00\u542F")),1)])):C("",!0)],64)):C("",!0),t("div",{class:"item",style:{backgroundColor:"#fcf7f2"},onClick:v},[B(Ka,{color:"#ff6900",class:"icon"}),t("span",null,i(e(n)("\u65E5\u5FD7\u67E5\u770B")),1)]),t("div",{class:"item",style:{backgroundColor:"#eff5ff"},onClick:w},[B(pa,{color:"#553afe",class:"icon"}),t("span",null,i(e(n)("\u7CFB\u7EDF\u7EF4\u62A4")),1)])])}}});var zp=O(Sp,[["__scopeId","data-v-6ac226af"]]);const Pp={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Tp=["fill"],Ip=["fill"],Mp=T({props:{color:{type:String,default:"#222222"}},setup(o){return(n,a)=>(r(),s("svg",Pp,[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,Tp),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,Ip)]))}}),Lp={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Op=["fill"],Xa=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Lp,[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,Op)]))}}),Np={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Vp=["fill"],Gp=T({props:{color:{type:String,default:"#155dfc"}},setup(o){return(n,a)=>(r(),s("svg",Np,[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,Vp)]))}}),jp={class:"app-container_samba"},Up={key:0,class:"sambas-item"},qp={class:"sambas-item_name"},Rp={class:"sambas-item_value"},Wp={class:"sambas-item"},Hp={class:"sambas-item_name tit"},Jp={class:"sambas-item_value tit"},Zp={class:"samba-item"},Kp={class:"samba-item_name"},Qp=["title"],Xp=["href"],tf=T({props:{sambas:{type:Array}},setup(o){const{$gettext:n,$ngettext:a}=H(),l=window.location.hostname;return(c,d)=>{var u;return r(),s("ul",jp,[o.sambas?(r(),s("li",Up,[t("div",qp,[t("span",null,i(e(n)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",Rp,[t("span",null,i((u=o.sambas)!=null&&u.length?e(n)("\u5DF2\u542F\u7528"):e(n)("\u672A\u542F\u7528")),1)])])):C("",!0),t("li",Wp,[t("div",Hp,[t("span",null,i(e(n)("\u5730\u5740")),1)]),t("div",Jp,[t("span",null,i(e(n)("\u76EE\u5F55")),1)])]),(r(!0),s(U,null,tt(o.sambas,_=>(r(),s("li",Zp,[t("div",Kp,[t("span",null,"smb://"+i(e(l))+"/"+i(_.shareName),1)]),t("div",{class:"samba-item_value",title:_.path},[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+_.path},i(_.path),9,Xp)],8,Qp)]))),256))])}}});var ef=O(tf,[["__scopeId","data-v-d0b06580"]]);const af={class:"webdav-item"},of={class:"webdav-item_name"},nf={class:"webdav-item_value"},rf={key:0,class:"webdav-item"},sf={class:"webdav-item_name"},df={class:"webdav-item_value"},lf=["href"],cf={key:1,class:"webdav-item"},uf={class:"webdav-item_name"},pf={class:"webdav-item_value"},ff=["href"],mf={key:2,class:"webdav-item"},gf={class:"webdav-item_name"},bf={class:"webdav-item_value"},vf=T({props:{webdav:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>{var d;return`http://${location.hostname}:${(d=n.webdav)==null?void 0:d.port}`});return(d,u)=>{var _,b,p,f,g,v,w;return r(),s(U,null,[t("li",af,[t("div",of,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",nf,[t("span",null,i((_=o.webdav)!=null&&_.path?e(a)("\u5DF2\u542F\u7528"):e(a)("\u672A\u542F\u7528")),1)])]),(b=o.webdav)!=null&&b.path?(r(),s("li",rf,[t("div",sf,[t("span",null,i(e(a)("\u6302\u8F7D\u8DEF\u5F84:")),1)]),t("div",df,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((p=o.webdav)==null?void 0:p.path)},i((f=o.webdav)==null?void 0:f.path),9,lf)])])):C("",!0),(g=o.webdav)!=null&&g.port?(r(),s("li",cf,[t("div",uf,[t("span",null,i(e(a)("\u670D\u52A1\u8DEF\u5F84:")),1)]),t("div",pf,[t("a",{href:e(c),target:"_blank",rel:"noopener noreferrer"},i(e(c)),9,ff)])])):C("",!0),(v=o.webdav)!=null&&v.username?(r(),s("li",mf,[t("div",gf,[t("span",null,i(e(a)("\u8D26\u53F7:")),1)]),t("div",bf,[t("span",null,i((w=o.webdav)==null?void 0:w.username),1)])])):C("",!0)],64)}}});var hf=O(vf,[["__scopeId","data-v-31dcf6eb"]]);const _f={class:"app-container_linkease"},xf={class:"linkease-item"},wf={class:"linkease-item_name"},kf={class:"linkease-item_value"},yf={key:0,class:"configure"},Ff={key:0,class:"linkease-item"},Ef={class:"linkease-item_name"},$f={class:"linkease-item_value"},Cf=["href"],Df={href:" https://app.linkease.com/",target:"_blank"},Bf=T({props:{linkease:{type:Object}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>{var u;return`http://${location.hostname}:${(u=n.linkease)==null?void 0:u.port}`}),d=()=>{Ua({setup:0})};return(u,_)=>{var b,p,f;return r(),s("ul",_f,[t("li",xf,[t("div",wf,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),t("div",kf,[(b=o.linkease)!=null&&b.enabel?(r(),s("span",yf,i(e(a)("\u5DF2\u914D\u7F6E")),1)):(r(),s("span",{key:1,class:"configure enabel",onClick:_[0]||(_[0]=g=>d())},i(e(a)("\u672A\u914D\u7F6E")),1))])]),(p=o.linkease)!=null&&p.enabel?(r(),s(U,{key:0},[(f=o.linkease)!=null&&f.port?(r(),s("li",Ff,[t("div",Ef,[t("span",null,i(e(a)("\u670D\u52A1\u5730\u5740:")),1)]),t("div",$f,[t("a",{href:e(c),target:"_blank",rel:"noopener noreferrer"},i(e(c)),9,Cf)])])):C("",!0)],64)):C("",!0),t("div",null,[t("a",Df,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 Yf=O(Bf,[["__scopeId","data-v-8727fd06"]]);const to=o=>(ct("data-v-c7216f90"),o=o(),ut(),o),Af={href:"/cgi-bin/luci/admin/services/samba4"},Sf={class:"content"},zf={class:"tab"},Pf={class:"title"},Tf={key:0},If={key:1},Mf=to(()=>t("div",{class:"title"},"SAMBA",-1)),Lf=to(()=>t("div",{class:"title"},"WEBDAV",-1)),Of=T({setup(o){const{$gettext:n}=H(),a=E(!1);E("linkease");const l=E(),c=Qo(),d=E(!1);(()=>{j.Nas.Service.Status.GET().then(v=>{var w;if((w=v==null?void 0:v.data)!=null&&w.result){const m=v.data.result;l.value=m,m.webdav&&(c.webdav=m.webdav)}})})();const _=()=>{Ua({setup:0})},b=()=>{a.value=!a.value},p=()=>{b(),zt.installAndGo("app-meta-gowebdav","GoWebDAV","/cgi-bin/luci/admin/nas/gowebdav")},f=E(0),g=v=>{f.value=v};return(v,w)=>(r(),J(Wt,{title:e(n)("\u5B58\u50A8\u670D\u52A1"),style:{width:"100%",height:"100%",display:"block"},"is-settings-menu-open":d.value,"onUpdate:isSettingsMenuOpen":w[4]||(w[4]=m=>d.value=m)},{icon:G(()=>[B(Mp,{color:"#4f39f6",class:"icon"})]),settings:G(()=>[t("div",{class:"btn_settings",onClick:_},[B(pa,{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:w[0]||(w[0]=mt(m=>d.value=!d.value,["stop"]))},[B(Ee,{class:"moreIcon"})])])]),"settings-menu":G(()=>[t("div",null,[t("a",Af,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:G(()=>{var m,F,k,x,h,y,D,A,S;return[t("div",Sf,[t("div",zf,[t("div",{class:lt(["item cloud",{active:f.value==0}]),onClick:w[1]||(w[1]=Y=>g(0))},[B(Gp,{color:"#155dfc",class:"icon2"}),t("div",Pf,i(e(n)("\u6613\u6709\u4E91")),1),(F=(m=l.value)==null?void 0:m.linkease)!=null&&F.enabel?(r(),s("span",Tf,i(e(n)("\u5DF2\u914D\u7F6E")),1)):(r(),s("span",If,i(e(n)("\u672A\u914D\u7F6E")),1))],2),t("div",{class:lt(["item memory",{active:f.value==1}]),onClick:w[2]||(w[2]=Y=>g(1))},[B(Xa,{color:"#0bab47",class:"icon2"}),Mf,t("span",null,i((x=(k=l.value)==null?void 0:k.sambas)!=null&&x.length?e(n)("\u5DF2\u542F\u7528"):e(n)("\u672A\u542F\u7528")),1)],2),t("div",{class:lt(["item network",{active:f.value==2}]),onClick:w[3]||(w[3]=Y=>g(2))},[B(xe,{color:"#9810fa",class:"icon2"}),Lf,t("span",null,i((y=(h=l.value)==null?void 0:h.webdav)!=null&&y.path?e(n)("\u5DF2\u542F\u7528"):e(n)("\u672A\u542F\u7528")),1)],2)]),f.value==0?(r(),J(Yf,{key:0,linkease:(D=l.value)==null?void 0:D.linkease},null,8,["linkease"])):f.value==1?(r(),J(ef,{key:1,sambas:(A=l.value)==null?void 0:A.sambas},null,8,["sambas"])):f.value==2?(r(),J(hf,{key:2,webdav:(S=l.value)==null?void 0:S.webdav},null,8,["webdav"])):C("",!0)])]}),_:1},8,["title","is-settings-menu-open"]))}});var Nf=O(Of,[["__scopeId","data-v-c7216f90"]]);const Vf={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Gf=["fill"],jf=["fill"],Ca=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Vf,[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,Gf),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,jf)]))}}),Uf={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},qf=["fill"],Rf=T({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",Uf,[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,qf)]))}}),Wf={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Hf=["fill"],Jf=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Wf,[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,Hf)]))}}),Zf={},Kf={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"},Qf=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),Xf=[Qf];function t9(o,n){return r(),s("svg",Kf,Xf)}var Da=O(Zf,[["render",t9]]);const e9={},a9={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"},o9=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),n9=[o9];function i9(o,n){return r(),s("svg",a9,n9)}var r9=O(e9,[["render",i9]]);const Ve=o=>(ct("data-v-b5895698"),o=o(),ut(),o),s9=["onSubmit"],d9=Ve(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"})],-1)),l9={class:"action-body"},c9={class:"disk-info"},u9=Ve(()=>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)),p9={key:0,class:"disk-info_mount-name"},f9={key:1,class:"disk-info_mount-name"},m9={key:0,class:"label-item"},g9={class:"label-item_key"},b9={class:"label-item_path"},v9={class:"label-item"},h9={class:"label-item_key"},_9={class:"label-item_value"},x9={class:"action-footer"},w9=Ve(()=>t("div",{class:"auto"},null,-1)),k9=["disabled"],y9=["disabled"],F9={key:1,class:"action result"},E9={class:"action-body"},$9=Ve(()=>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)),C9={class:"action-body_msg"},D9=["innerHTML"],B9={class:"btns"},Y9=T({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}=H(),c=()=>{n.Close&&n.Close()},d=k=>{k.preventDefault(),n.Cancel&&n.Cancel(),c()},u=k=>{n.Next&&n.Next(k),c()},_=E(!1),b=E(0),p=E("/mnt/data_"+((F=n==null?void 0:n.mount)==null?void 0:F.name)),f=k=>{b.value=k};E(n.mount?"":"format"),E();const g=E(),v=()=>L(this,null,function*(){const k=n.mount;if(k==null){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533A"));return}if(k.path==null||k.path==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84"));return}if(k.uuid==null||k.uuid==""){$.Warning(a("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID"));return}_.value=!0;const x=$.Loading(a("\u6302\u8F7D\u4E2D..."));try{const h=yield j.Nas.Disk.Partition.Mount.POST({path:k.path,uuid:k.uuid,mountPoint:p.value});if(h!=null&&h.data){const{result:y,error:D}=h==null?void 0:h.data;D&&$.Warning(D),y&&($.Success(a("\u6302\u8F7D\u6210\u529F")),g.value=y,f(1))}}catch(h){$.Error(h)}x.Close(),_.value=!1}),w=()=>{if(g.value&&g.value.mountPoint){u(g.value.mountPoint);return}$.Warning(a("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25"))},m=()=>{};return(k,x)=>(r(),J(wt,{type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>{var h,y;return[b.value==0?(r(),s("form",{key:0,class:"action format",onSubmit:mt(m,["prevent"])},[d9,t("div",l9,[t("div",c9,[u9,o.mount?(r(),s("div",p9,[t("span",null,"\u3010"+i(o.mount.total)+"\u3011",1),t("span",null,i(o.mount.mountPoint),1)])):o.disk?(r(),s("div",f9,[t("span",null,"\u3010"+i(o.disk.size)+"\u3011",1),t("span",null,i(o.disk.venderModel),1)])):C("",!0)]),o.mount?(r(),s("div",m9,[t("div",g9,[t("span",null,i(e(a)("\u76EE\u6807\u5206\u533A")),1)]),t("div",b9,i(o.mount.path)+"\uFF08"+i(o.mount.total)+"\uFF0C"+i((y=(h=o.mount)==null?void 0:h.filesystem)==null?void 0:y.toUpperCase())+"\uFF09",1)])):C("",!0),t("div",v9,[t("div",h9,[t("span",null,i(e(a)("\u6302\u8F7D\u70B9")),1)]),t("div",_9,[N(t("input",{type:"text","onUpdate:modelValue":x[0]||(x[0]=D=>p.value=D)},null,512),[[ot,p.value,void 0,{trim:!0}]])])])]),t("div",x9,[w9,t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:_.value,onClick:v},i(e(a)("\u786E\u5B9A")),9,k9),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:d,type:"button",disabled:_.value},i(e(a)("\u8FD4\u56DE")),9,y9)])],40,s9)):b.value==1?(r(),s("div",F9,[t("div",E9,[$9,t("div",C9,i(e(a)("\u6302\u8F7D\u6210\u529F")),1),g.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:g.value.path||"",mount:g.value.mountPoint||""},!0)},null,8,D9)):C("",!0),t("div",B9,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:w},i(o.action=="nas"?e(a)("\u5B8C\u6210"):e(a)("\u4E0B\u4E00\u6B65")),1)])])])):C("",!0)]}),_:1})]),_:1}))}});var A9=O(Y9,[["__scopeId","data-v-b5895698"]]),eo=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(A9,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const S9={class:"disk-content"},z9={class:"disk-item"},P9={class:"disk-item_name"},T9={key:0},I9={key:1},M9={key:2},L9={class:"disk_value"},O9={class:"disk-item_value"},N9={class:"value-data"},V9={key:0,class:"disk-item"},G9={class:"disk-item_name"},j9={key:0},U9=["href"],q9={key:0},R9={class:"disk_status"},W9={key:0,class:"disk_status_item"},H9={key:0,class:"tooltip-trigger disk_tip"},J9={class:"tooltip-text tooltip-top"},Z9={class:"disk_dir_tip"},K9={class:"disk_status_item"},Q9={key:0,class:"tooltip-trigger disk_tip"},X9={class:"tooltip-text tooltip-top"},tm={class:"disk_dir_tip"},em=T({props:{part:{type:Object,required:!0},disk:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>n.part.filesystem=="No FileSystem"),d=Z(()=>n.part.filesystem&&["ntfs","vfat","exfat"].indexOf(n.part.filesystem)>=0),u=Z(()=>n.part.mountPoint&&n.part.isReadOnly&&n.part.filesystem!="swap"),_=Z(()=>c.value||!n.part.isSystemRoot&&(u.value||d.value||!n.part.mountPoint&&n.part.filesystem=="swap")),b=function(){la({action:"disk",disk:n.disk,mount:n.part,Cancel:()=>{},Next:w=>{location.reload()}})},p=()=>{eo({action:"nas",disk:n.disk,mount:n.part,Cancel:()=>{},Next:()=>{location.reload()}})},f=()=>L(this,null,function*(){const w=$.Loading(a("\u5904\u7406\u4E2D..."));try{const m=yield j.Nas.Disk.InitRest.POST({name:n.disk.name,path:n.disk.path});if(m!=null&&m.data){const{result:F,error:k}=m==null?void 0:m.data;k&&$.Warning(k),F&&($.Success(a("\u6302\u8F7D\u6210\u529F")),location.reload())}}catch(m){$.Error(m)}w.Close()}),g=Z(()=>n.part.filesystem=="Free Space"),v=Z(()=>{const w=n.part.mountPoint?n.part.mountPoint:"";return w.indexOf("/mnt/")==0?"/cgi-bin/luci/admin/services/linkease/file/?path=/"+w.substring(5):"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+w});return(w,m)=>{var k;const F=xt("progress-item");return r(),s("div",S9,[t("li",z9,[t("div",P9,[e(g)?(r(),s("span",T9,i(e(a)("\u672A\u5206\u533A")),1)):(r(),s("span",I9,i(o.part.name)+i(o.part.mountPoint?"":e(c)?e(a)("\uFF08\u672A\u683C\u5F0F\u5316\uFF09"):e(a)("\uFF08\u672A\u6302\u8F7D\uFF09")),1)),o.part.isSystemRoot?(r(),s("span",M9,i(e(a)("\uFF08\u7CFB\u7EDF\u5206\u533A\uFF09")),1)):C("",!0)]),t("div",L9,[t("div",O9,[t("div",N9,[B(F,{value:e(g)||!o.part.usage?0:o.part.usage,text:e(g)?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(g)?(r(),s("button",{key:0,class:"cbi-button cbi-button-apply",onClick:f},i(e(a)("\u5206\u533A\u5E76\u683C\u5F0F\u5316")),1)):e(_)?(r(),s("button",{key:1,class:"cbi-button cbi-button-apply",onClick:b},i(e(a)("\u683C\u5F0F\u5316\u5206\u533A")),1)):C("",!0)])]),!e(g)&&!e(c)?(r(),s("li",V9,[t("span",G9,[o.part.mountPoint?(r(),s(U,{key:0},[o.part.filesystem=="swap"?(r(),s("span",j9,i(e(a)("\u5DF2\u6302\u8F7D\u4E3A\u4EA4\u6362\u533A")),1)):(r(),s("a",{key:1,href:e(v),target:"_blank"},i(o.part.mountPoint),9,U9))],64)):(r(),s(U,{key:1},[o.part.filesystem=="swap"?(r(),s("span",q9,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",R9,[o.part.mountPoint&&o.part.filesystem!="swap"?(r(),s("div",W9,[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(u)?(r(),s("div",H9,[B(It),t("div",J9,[t("div",Z9,i(e(a)("\u6B64\u5206\u533A\u4E3A\u53EA\u8BFB\u72B6\u6001\uFF0C\u53EF\u80FD\u65E0\u6CD5\u5199\u5165\u6570\u636E")),1)])])):C("",!0)])):C("",!0),t("div",K9,[t("div",null,i(e(a)("\u6587\u4EF6\u7CFB\u7EDF\uFF1A"))+i((k=o.part.filesystem)==null?void 0:k.toUpperCase()),1),!o.part.isSystemRoot&&e(d)?(r(),s("div",Q9,[B(It),t("div",X9,[t("span",tm,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)])])):C("",!0)])])])):C("",!0)])}}});var am=O(em,[["__scopeId","data-v-10dd00b8"]]);const om=o=>(ct("data-v-127a3100"),o=o(),ut(),o),nm={key:0,class:"action"},im={class:"title"},rm={class:"app-container_info"},sm={class:"app-container_body"},dm={class:"action-footer"},lm=om(()=>t("div",{class:"auto"},null,-1)),cm=T({props:{disk:{type:Object,required:!0},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(0),d=()=>{n.Close&&n.Close()},u=_=>{_.preventDefault(),n.Cancel&&n.Cancel(),d()};return(_,b)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>[c.value==0?(r(),s("div",nm,[t("h2",im,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",rm,[t("span",null,i(e(a)("\u5206\u533A / \u6302\u8F7D\u70B9")),1),t("span",null,i(e(a)("\u5BB9\u91CF")),1)]),t("div",sm,[(r(!0),s(U,null,tt(o.disk.childrens,(p,f)=>(r(),J(am,{key:f,part:p,disk:o.disk},null,8,["part","disk"]))),128))])])]),t("div",dm,[lm,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:u,type:"button"},i(e(a)("\u8FD4\u56DE")),1)])])):C("",!0)]),_:1})]),_:1},8,["Close"]))}});var um=O(cm,[["__scopeId","data-v-127a3100"]]),pm=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(um,bt(rt({},o),{Close:()=>{l()}}));a.component("progress-item",Va),a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const fm={class:"progress-bar-wrapper"},mm={key:0,class:"percentage-text"},gm={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=Z(()=>({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=Z(()=>{const c={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?bt(rt({},c),{background:n.gradientColors}):bt(rt({},c),{background:n.color})});return(c,d)=>(r(),s("div",fm,[t("div",{class:"progress-bar",style:ht(e(a))},[t("div",{class:"progress-fill",style:ht(e(l))},[o.showPercentage?(r(),s("span",mm,i(Math.round(o.percentage))+"% ",1)):C("",!0)],4)],4)]))}};var ao=O(gm,[["__scopeId","data-v-2e966a39"]]);const bm={key:0,class:"disk-item error"},vm=["title"],hm={class:"disk-item_value"},_m={class:"value-data"},xm={class:"error"},wm={key:1,class:"disk-item"},km=["title"],ym={key:0,class:"disk_value"},Fm={class:"value-data"},Em={href:"/cgi-bin/luci/admin/nas/smart"},$m={class:"error"},Cm={key:1,class:"disk_value"},Dm={class:"disk-item_value"},Bm={class:"value-data"},Ym={class:"disk-item-tooltip"},Am={class:"disk_icon"},Sm={key:0,class:"tooltip-trigger"},zm={class:"disk_tip"},Pm={class:"tooltip-text tooltip-top"},Tm={class:"disk_dir_tip"},Im={key:1,class:"tooltip-trigger"},Mm={class:"disk_tip"},Lm={class:"tooltip-text tooltip-top"},Om={class:"disk_dir_tip"},Nm={key:2,class:"disk-item load"},Vm=["title"],Gm={class:"disk_value"},jm={class:"disk-item_value"},Um={class:"value-data"},qm={key:3,class:"disk-item load"},Rm=["title"],Wm={class:"disk_value"},Hm={key:0,class:"disk-item_value"},Jm={class:"value-data"},Zm={class:"disk_icon"},Km=T({props:{disk:{type:Object,required:!0},smartWarning:{type:Boolean}},setup(o){const n=o,{$gettext:a}=H(),l=Z(()=>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(f=>f.mountPoint).length==0?"unmounted":"success"),c=Z(()=>{const f=n.disk;let g=f.name;return f.size&&(g+=`\u3010${f.size}\u3011`),f.venderModel&&(g+=`(${f.venderModel})`),g}),d=Z(()=>{var g;const f=n.disk;return!f.isSystemRoot&&(((g=f.childrens)==null?void 0:g.filter(v=>v.isReadOnly&&v.filesystem!="swap").length)||0)>0}),u=()=>{la({action:"disk",disk:n.disk,Cancel:()=>{},Next:()=>{location.reload()}})},_=()=>{pm({action:"disk",disk:n.disk,Cancel:()=>{},Next:()=>{location.reload()}})},b=()=>{const f=n.disk,g=f.childrens||[];eo({action:"nas",disk:f,mount:g[0],Cancel:()=>{},Next:()=>{location.reload()}})},p=f=>f<50?"#2fc867":f>50&&f<=75?"#f97316":"#dc2626";return(f,g)=>{var v,w,m,F,k,x;return e(l)=="error"?(r(),s("li",bm,[t("div",{class:"disk-item_name",title:e(c)},[t("span",null,i(e(c)),1)],8,vm),t("div",hm,[t("div",_m,[t("span",xm,i(o.disk.errorInfo),1)])])])):e(l)=="success"?(r(),s("li",wm,[t("div",{class:"disk-item_name",title:e(c)},[t("span",null,i(e(c)),1)],8,km),o.disk.smartWarning&&o.smartWarning?(r(),s("div",ym,[t("div",Fm,[t("a",Em,[t("span",$m,i(e(a)("S.M.A.R.T\u5F02\u5E38")),1)])])])):(r(),s("div",Cm,[t("div",Dm,[t("div",Bm,[B(ao,{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",Ym,[t("span",null,i(e(a)("\u4EC5\u7EDF\u8BA1\u5DF2\u6302\u8F7D\u5206\u533A")),1)])]),t("div",Am,[o.disk.isDockerRoot&&o.disk.isSystemRoot&&o.disk.usage&&o.disk.usage>=90?(r(),s("span",Sm,[t("span",zm,[B(It)]),t("div",null,[t("div",Pm,[t("span",Tm,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)])])])):C("",!0),e(d)?(r(),s("span",Im,[t("span",Mm,[B(It)]),t("div",null,[t("div",Lm,[t("span",Om,i(e(a)("\u5206\u533A\u5B58\u5728\u5F02\u5E38\uFF0C\u70B9\u51FB\u5206\u533A\u5217\u8868\u67E5\u770B\u9519\u8BEF")),1)])])])):C("",!0),e(d)&&(((v=o.disk.childrens)==null?void 0:v.length)||0)==1?(r(),s("span",{key:2,class:"disk_infoicon",onClick:g[0]||(g[0]=h=>u())},[B(r9)])):C("",!0),(((w=o.disk.childrens)==null?void 0:w.length)||0)>0?(r(),s("span",{key:3,class:"disk_infoicon",onClick:g[1]||(g[1]=h=>_())},[B(Da,{style:{color:"var(--app-container_title-color)"}})])):C("",!0)])]))])):e(l)=="load"?(r(),s("li",Nm,[t("div",{class:"disk-item_name",title:e(c)},[t("span",null,i(e(c)),1)],8,Vm),t("div",Gm,[t("div",jm,[t("div",Um,[t("button",{onClick:g[2]||(g[2]=h=>u())},i(e(a)("\u683C\u5F0F\u5316\u5E76\u6302\u8F7D")),1)])])])])):e(l)=="unmounted"?(r(),s("li",qm,[t("div",{class:"disk-item_name",title:e(c)},[t("span",null,i(e(c)),1)],8,Rm),t("div",Wm,[(((m=o.disk.childrens)==null?void 0:m.length)||0)==1?(r(),s("div",Hm,[t("div",Jm,[((k=(F=o.disk.childrens)==null?void 0:F[0])==null?void 0:k.filesystem)=="swap"?(r(),s("button",{key:0,onClick:g[3]||(g[3]=h=>_())},i(e(a)("\u67E5\u770B\u8BE6\u60C5")),1)):(r(),s("button",{key:1,onClick:g[4]||(g[4]=h=>b())},i(e(a)("\u624B\u52A8\u6302\u8F7D")),1))])])):C("",!0),t("div",Zm,[(((x=o.disk.childrens)==null?void 0:x.length)||0)>1?(r(),s("span",{key:0,class:"disk_infoicon",onClick:g[5]||(g[5]=h=>_())},[B(Da,{style:{color:"var(--app-container_title-color)"}})])):C("",!0)])])])):C("",!0)}}});var Ze=O(Km,[["__scopeId","data-v-c3855aca"]]);const Qm=o=>(ct("data-v-6f7fe2ab"),o=o(),ut(),o),Xm={href:"/cgi-bin/luci/admin/nas/raid"},tg=Qm(()=>t("div",null,[t("a",{href:"/cgi-bin/luci/admin/nas/smart"},"S.M.A.R.T.")],-1)),eg={href:"/cgi-bin/luci/admin/system/diskman"},ag={href:"/cgi-bin/luci/admin/system/mounts"},og={class:"content"},ng={key:0,class:"disk_loading_icon"},ig={class:"disk_loading_info"},rg={class:"item",style:{"margin-top":"4px","padding-bottom":"0"}},sg={class:"icon_box"},dg={class:"info"},lg={class:"name"},cg={class:"schedule"},ug={key:0,class:"line"},pg={key:1,class:"item"},fg={class:"icon_box",style:{background:"#f3e8ff"}},mg={class:"info"},gg={class:"name"},bg={class:"schedule"},vg={key:2,class:"item"},hg={class:"icon_box",style:{background:"#dbfce7"}},_g={class:"info"},xg={class:"name"},wg={class:"schedule"},kg=T({setup(o){const{$gettext:n}=H(),a=E(!1),l=vt({disks:null,raidList:null}),c=()=>{j.Nas.Disk.Status.GET().then(_=>{var b;if((b=_==null?void 0:_.data)!=null&&b.result){const p=_.data.result;l.disks=p.disks||[]}})};(()=>L(this,null,function*(){try{const _=yield j.Raid.List.GET();if(_!=null&&_.data){const{success:b,error:p,result:f}=_.data;if(f&&(l.raidList=f.disks||[]),p)throw p}}catch(_){console.log(_)}}))(),c();const u=()=>{zt.installAndGo("luci-app-linkease",n("\u6613\u6709\u4E91"),"/cgi-bin/luci/admin/services/linkease/file/","app-meta-linkease")};return(_,b)=>{const p=xt("icon-loading");return r(),J(Wt,{title:e(n)("\u78C1\u76D8\u4FE1\u606F"),style:{width:"100%",display:"block"},"is-settings-menu-open":a.value,"onUpdate:isSettingsMenuOpen":b[1]||(b[1]=f=>a.value=f)},{icon:G(()=>[B(Ca,{color:"#45556c",class:"icon"})]),settings:G(()=>[t("div",{class:"btn_settings",onClick:u},[B(Rf,{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:b[0]||(b[0]=mt(f=>a.value=!a.value,["stop"]))},[B(Ee,{class:"moreIcon"})])])]),"settings-menu":G(()=>[t("div",null,[t("a",Xm,i(e(n)("RAID\u7BA1\u7406")),1)]),tg,t("div",null,[t("a",eg,i(e(n)("\u78C1\u76D8\u7BA1\u7406")),1)]),t("div",null,[t("a",ag,i(e(n)("\u6302\u8F7D\u70B9")),1)])]),default:G(()=>{var f,g,v,w;return[t("div",og,[!e(l).disks&&!e(l).raidList?(r(),s("div",ng,[B(p,{size:38,color:"#888888"}),t("span",ig,i(e(n)("\u6B63\u5728\u83B7\u53D6\u78C1\u76D8\u4FE1\u606F...")),1)])):C("",!0),e(l).disks?(r(),s(U,{key:1},[t("div",rg,[t("div",sg,[B(Ca,{color:"#2b6cfc",class:"icon"})]),t("div",dg,[t("div",lg,[t("div",null,i(e(n)("\u7CFB\u7EDF\u6839\u76EE\u5F55")),1)]),t("div",cg,[(r(!0),s(U,null,tt((f=e(l).disks)==null?void 0:f.filter(m=>m.isSystemRoot),(m,F)=>(r(),J(Ze,{key:F,disk:m},null,8,["disk"]))),128))])])]),((g=e(l).disks)==null?void 0:g.filter(m=>!m.isSystemRoot).length)>0?(r(),s("div",ug)):C("",!0),((v=e(l).disks)==null?void 0:v.filter(m=>!m.isSystemRoot).length)>0?(r(),s("div",pg,[t("div",fg,[B(Jf,{class:"icon"})]),t("div",mg,[t("div",gg,[t("div",null,i(e(n)("\u5DF2\u6302\u8F7D\u78C1\u76D8")),1)]),t("div",bg,[(r(!0),s(U,null,tt((w=e(l).disks)==null?void 0:w.filter(m=>!m.isSystemRoot),(m,F)=>(r(),J(Ze,{key:F,disk:m,smartWarning:!0},null,8,["disk"]))),128))])])])):C("",!0)],64)):C("",!0),e(l).raidList&&e(l).raidList.length>0?(r(),s("div",vg,[t("div",hg,[B(Xa,{color:"#0bab47",class:"icon"})]),t("div",_g,[t("div",xg,[t("div",null,i(e(n)("RAID\u8BBE\u5907")),1)]),t("div",wg,[(r(!0),s(U,null,tt(e(l).raidList,(m,F)=>(r(),J(Ze,{key:F,disk:m},null,8,["disk"]))),128))])])])):C("",!0)])]}),_:1},8,["title","is-settings-menu-open"])}}});var yg=O(kg,[["__scopeId","data-v-6f7fe2ab"]]);const Fg={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Eg=["fill"],Ba=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",Fg,[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,Eg)]))}}),$g=o=>(ct("data-v-64cabc6e"),o=o(),ut(),o),Cg={class:"app-container_docker"},Dg={class:"docker-item"},Bg={class:"docker-item_name"},Yg={key:0,class:"docker-item_value"},Ag={class:"configure"},Sg={key:1,class:"docker-item_value"},zg={class:"input-switch"},Pg=["value","disabled"],Tg=$g(()=>t("em",null,null,-1)),Ig=[Tg],Mg={key:0,class:"status-icon"},Lg={key:1,class:"status-icon",style:{background:"#e9ebef",color:"#4a5565"}},Og={key:0,class:"content"},Ng={class:"docker-item_name"},Vg={class:"docker_box"},Gg={class:"path"},jg={key:0},Ug={class:"tooltip-trigger"},qg={class:"docker_tip"},Rg={class:"tooltip-text tooltip-top"},Wg={class:"docker_dir_tip"},Hg=T({props:{docker:{type:Object}},setup(o){var _;const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>{var b;return((b=n.docker)==null?void 0:b.status)!="not installed"}),d=vt({enable:((_=n.docker)==null?void 0:_.status)=="running",disabled:!1}),u=()=>L(this,null,function*(){d.disabled=!0;try{const b=yield j.Guide.DockerSwitch.POST({enable:d.enable});if(b!=null&&b.data){const{success:p,error:f}=b.data;if(f)throw d.enable=!d.enable,f;(p||0)==0}}catch(b){$.Warning(`${b}`)}finally{d.disabled=!1}});return(b,p)=>{var f,g,v,w;return r(),s("ul",Cg,[t("li",Dg,[t("div",Bg,[t("span",null,i(e(a)("\u5F53\u524D\u72B6\u6001:")),1)]),(f=n.docker)!=null&&f.status?(r(),s(U,{key:0},[e(c)?(r(),s("div",Sg,[t("label",zg,[N(t("input",{type:"checkbox",hidden:"",value:!e(d).enable,"onUpdate:modelValue":p[0]||(p[0]=m=>e(d).enable=m),disabled:e(d).disabled,onChange:u},null,40,Pg),[[Rt,e(d).enable]]),t("span",{class:lt(e(d).enable?"enable":"close")},Ig,2)]),e(d).enable?(r(),s("span",Mg,i(e(a)("\u8FD0\u884C\u4E2D")),1)):C("",!0),e(d).enable?C("",!0):(r(),s("span",Lg,i(e(a)("\u672A\u542F\u7528")),1))])):(r(),s("div",Yg,[t("span",Ag,i(e(a)("\u672A\u5B89\u88C5")),1)]))],64)):C("",!0)]),((g=o.docker)==null?void 0:g.status)=="running"?(r(),s("li",Og,[t("div",Ng,[t("span",{style:ht({color:"var(--app-container_title-color)"})},i(e(a)("Docker\u6839\u76EE\u5F55\uFF1A")),5)]),t("div",Vg,[t("div",Gg,i((v=o.docker)==null?void 0:v.path),1),(w=o.docker)!=null&&w.errorInfo?(r(),s("span",jg,[t("span",Ug,[t("span",qg,[B(It)]),t("div",null,[t("div",Rg,[t("span",Wg,i(o.docker.errorInfo),1)])])])])):C("",!0)])])):C("",!0)])}}});var Jg=O(Hg,[["__scopeId","data-v-64cabc6e"]]);const Zg={},Kg={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"},Qg=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),Xg=[Qg];function tb(o,n){return r(),s("svg",Kg,Xg)}var eb=O(Zg,[["render",tb]]);const ab={key:0,class:"action"},ob={class:"title"},nb={class:"desc"},ib={class:"roots"},rb={class:"roots_tit"},sb={class:"root"},db={class:"move"},lb={class:"roots_tit"},cb={key:0},ub=["onSubmit"],pb={class:"select-editable"},fb={selected:"",value:null},mb=["value"],gb={value:"useInput"},bb=["placeholder"],vb={key:1,class:"tips"},hb={class:"tips_content"},_b={class:"tip"},xb={key:0,class:"btns"},wb={key:1,class:"btns"},kb={key:1,class:"action docker_success"},yb={class:"title"},Fb={class:"finished"},Eb={class:"successed"},$b={class:"btns"},Cb={key:2,class:"action docker_download"},Db={class:"title"},Bb={class:"finished"},Yb={class:"successed"},Ab={class:"docker_moves"},Sb={class:"moves change"},zb={for:"move"},Pb={class:"moves"},Tb={for:"cover"},Ib={class:"btns"},Mb=T({props:{rootPath:{type:String,required:!0},Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(),d=E(),u=E(0),_=E("null"),b=E(""),p=E(),f=E(!1),g=E("");(()=>{j.Nas.Disk.Status.GET().then(y=>{y!=null&&y.data.result&&(p.value=y==null?void 0:y.data.result)}),j.Guide.DockerStatus.GET().then(y=>{var D;if((D=y==null?void 0:y.data)!=null&&D.result){const A=y.data.result;c.value=A}}),j.Guide.DockerPartitionList.GET().then(y=>{var D;if((D=y==null?void 0:y.data)!=null&&D.result){const A=y.data.result;d.value=A}})})();const w=y=>{let D=_.value;if(D=="useInput"&&(D=b.value),D==null||D=="null"||D=="")return;const A=$.Loading(a("\u6B63\u5728\u8FC1\u79FB\u4E2D..."));j.Guide.DockerTransfer.POST({path:D,force:y,overwriteDir:!!g.value}).then(S=>{var Y;if(S!=null&&S.data){if((S.data.success||0)==0){if((Y=S.data.result)!=null&&Y.emptyPathWarning){f.value=!0,u.value=2;return}u.value=1;return}else if(S.data.error)throw S.data.error}throw a("\u672A\u77E5\u9519\u8BEF")}).catch(S=>{$.Error(S)}).finally(()=>A.Close())},m=()=>{f.value=!1,w(!1)},F=y=>{y.preventDefault(),n.Close&&n.Close()},k=y=>{y.preventDefault(),location.reload()},x=y=>{y.preventDefault(),u.value=0},h=y=>{y.preventDefault(),w(!0)};return(y,D)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>{var A,S,Y,z,R,V;return[u.value==0?(r(),s("div",ab,[t("h2",ob,i(e(a)("Docker\u8FC1\u79FB\u5411\u5BFC")),1),t("p",nb,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",ib,[t("span",rb,i(e(a)("Docker\u6839\u76EE\u5F55\uFF1A")),1),t("span",sb,i((A=c.value)==null?void 0:A.path),1)]),t("div",db,[t("span",lb,i(e(a)("\u8FC1\u79FB\u5230\uFF1A")),1),(Y=(S=d.value)==null?void 0:S.partitionList)!=null&&Y.length?(r(),s("div",cb,[t("form",{onSubmit:mt(m,["prevent"])},[t("label",null,[t("div",pb,[N(t("select",{"onUpdate:modelValue":D[0]||(D[0]=I=>_.value=I)},[t("option",fb,i(e(a)("\u8BF7\u9009\u62E9\u8FC1\u79FB\u8DEF\u5F84")),1),(r(!0),s(U,null,tt((z=d.value)==null?void 0:z.partitionList,(I,M)=>(r(),s("option",{value:I,key:M},i(I),9,mb))),128)),t("option",gb,i(e(a)("- -\u81EA\u5B9A\u4E49- -")),1)],512),[[pt,_.value,void 0,{trim:!0}]]),_.value=="useInput"?N((r(),s("input",{key:0,type:"text","onUpdate:modelValue":D[1]||(D[1]=I=>b.value=I),required:"",placeholder:e(a)("\u8BF7\u8F93\u5165\u8FC1\u79FB\u8DEF\u5F84")},null,8,bb)),[[ot,b.value,void 0,{trim:!0}]]):C("",!0)])])],40,ub)])):d.value?(r(),s("div",vb,[t("div",hb,[B(It),t("span",_b,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)])])):C("",!0)]),(V=(R=d.value)==null?void 0:R.partitionList)!=null&&V.length?(r(),s("div",xb,[t("button",{class:"cbi-button cbi-button-apply",onClick:m},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",wb,[t("button",{class:"cbi-button cbi-button-apply",onClick:F},i(e(a)("\u786E\u5B9A")),1)]))])):u.value==1?(r(),s("div",kb,[t("h2",yb,i(e(a)("Docker\u8FC1\u79FB\u5411\u5BFC")),1),t("div",Fb,[B(ca)]),t("p",Eb,i(e(a)("\u8FC1\u79FB\u6210\u529F\uFF01")),1),t("div",$b,[t("button",{class:"cbi-button cbi-button-apply",onClick:k},i(e(a)("\u786E\u5B9A")),1)])])):u.value==2?(r(),s("div",Cb,[t("h2",Db,i(e(a)("Docker\u8FC1\u79FB\u5411\u5BFC")),1),t("div",Bb,[B(eb)]),t("p",Yb,i(e(a)("\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0D\u4E3A\u7A7A")),1),t("div",Ab,[t("div",Sb,[N(t("input",{type:"radio",id:"move",name:"moves","onUpdate:modelValue":D[2]||(D[2]=I=>g.value=I),value:""},null,512),[[Bt,g.value]]),t("label",zb,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",Pb,[N(t("input",{type:"radio",id:"cover",name:"moves","onUpdate:modelValue":D[3]||(D[3]=I=>g.value=I),value:"true"},null,512),[[Bt,g.value]]),t("label",Tb,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",Ib,[f.value?(r(),s("button",{key:0,class:"cbi-button cbi-button-apply",onClick:h},i(e(a)("\u786E\u5B9A")),1)):C("",!0),t("button",{class:"cbi-button cbi-button-apply",onClick:x},i(e(a)("\u8FD4\u56DE")),1),f.value?C("",!0):(r(),s("button",{key:1,class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:k},i(e(a)("\u53D6\u6D88")),1))])])):C("",!0)]}),_:1},8,["Close"]))}});var Lb=O(Mb,[["__scopeId","data-v-a5cf4814"]]);const Ob=()=>{const o=document.createElement("div");document.body.appendChild(o);const n=_t(Lb,{Close:()=>{a()}});n.mount(o);const a=()=>{n.unmount(),o.remove()};return{Close:a}},Nb={href:"/cgi-bin/luci/admin/docker/overview"},Vb={key:0,class:"content"},Gb={key:1,class:"content",style:{display:"flex","justify-content":"center"}},jb=T({setup(o){const{$gettext:n}=H(),a=E(!1),l=E(),c=E(!1),d=()=>{Ob()};return setTimeout(()=>{j.Guide.DockerStatus.GET().then(_=>{var b;if((b=_==null?void 0:_.data)!=null&&b.result){const p=_.data.result;l.value=p}}).finally(()=>{a.value=!0})},1100),(_,b)=>{var f;const p=xt("icon-loading");return r(),J(Wt,{title:"Docker",showSettings:!0,onFooterClick:d,style:{width:"100%",height:"100%",display:"block"},"is-settings-menu-open":c.value,"onUpdate:isSettingsMenuOpen":b[1]||(b[1]=g=>c.value=g)},ko({icon:G(()=>[B(Ba,{color:"#155dfc",class:"icon"})]),settings:G(()=>{var g;return[t("div",{class:"btn_settings",onClick:d},[B(Ba,{color:"#0a0a0a",class:"icon1 dockerIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("Docker\u8FC1\u79FB")),1),((g=l.value)==null?void 0:g.status)==="running"?(r(),s("div",{key:0,class:"rotation",onClick:b[0]||(b[0]=mt(v=>c.value=!c.value,["stop"]))},[B(Ee,{class:"moreIcon"})])):C("",!0)])]}),default:G(()=>[a.value?(r(),s("div",Vb,[B(Jg,{docker:l.value},null,8,["docker"])])):(r(),s("div",Gb,[B(p,{size:40,color:"currentColor"})]))]),_:2},[((f=l.value)==null?void 0:f.status)==="running"?{name:"settings-menu",fn:G(()=>[t("div",null,[t("a",Nb,i(e(n)("Docker\u9AD8\u7EA7\u914D\u7F6E")),1)])])}:void 0]),1032,["is-settings-menu-open"])}}});var Ub=O(jb,[["__scopeId","data-v-78ae3db3"]]);const qb={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Rb=["fill"],Wb=["fill"],oo=T({props:{color:{type:String,default:"#9810f9"}},setup(o){return(n,a)=>(r(),s("svg",qb,[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,Rb),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,Wb)]))}}),Hb={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Jb=["fill"],Zb=T({props:{color:{type:String,default:"#ef4444"}},setup(o){return(n,a)=>(r(),s("svg",Hb,[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,Jb)]))}}),Kb={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},Qb=["fill"],no=T({props:{color:{type:String,default:"#222222"}},setup(o){return(n,a)=>(r(),s("svg",Kb,[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,Qb)]))}}),Xb={key:0,class:"center-content"},tv=T({props:{value:null,color:null,icon:null,label:null,width:null,height:null},setup(o){const n=o;Qe([yo,Xe,ta]);const a=E(null);let l=null;function c(_,b){return{tooltip:{show:!1},series:[{type:"pie",radius:["75%","90%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},z:1,zlevel:0,data:[{value:_,itemStyle:{color:b||"#409EFF"}},{value:Math.max(0,100-_),itemStyle:{color:"#f0f0f0"}}]}]}}const d=()=>{!a.value||(l=l!=null?l:ea(a.value),l.setOption(c(n.value,n.color)))};Pt(()=>L(this,null,function*(){yield na(),d(),window.addEventListener("resize",u)}));function u(){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",u),l==null||l.dispose(),l=null}),(_,b)=>(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",Xb,[o.icon==="chip"?(r(),J(oo,{key:0,color:o.color,class:"center-icon"},null,8,["color"])):o.icon==="temperature"?(r(),J(Zb,{key:1,color:o.color,class:"center-icon"},null,8,["color"])):o.icon==="lightning"?(r(),J(no,{key:2,color:o.color,class:"center-icon"},null,8,["color"])):C("",!0),o.label?(r(),s("div",{key:3,class:"center-label",style:ht({color:o.color})},i(o.label),5)):C("",!0)])):C("",!0)],4))}});var Ke=O(tv,[["__scopeId","data-v-1b4ddc16"]]);const ev={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},av=["fill"],Ya=T({props:{color:{type:String,default:"#0a0a0a"}},setup(o){return(n,a)=>(r(),s("svg",ev,[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,av)]))}}),ov={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},nv=["fill"],iv=["fill"],rv=T({props:{color:{type:String,default:"#333333"}},setup(o){return(n,a)=>(r(),s("svg",ov,[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,nv),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,iv)]))}}),sv={href:"/cgi-bin/luci/admin/system/flash"},dv={href:"/cgi-bin/luci/admin/store/pages/maintance"},lv={class:"content"},cv={class:"chart_box"},uv={class:"chart"},pv={class:"chart"},fv={class:"chart"},mv={class:"info"},gv={class:"item1 bgcolor1"},bv={style:{"font-weight":"bold","margin-top":"2px"}},vv={class:"item1 bgcolor2"},hv={style:{"font-weight":"bold","margin-top":"2px"}},_v={class:"item"},xv={class:"item"},wv=T({setup(o){const{$gettext:n}=H(),a=Me(),l=Z(()=>a.version),c=Z(()=>a.systemStatus),d=E(!1),u=Z(()=>{var k;return((k=c.value)==null?void 0:k.cpuUsage)||0}),_=Z(()=>{var k;return((k=c.value)==null?void 0:k.cpuTemperature)||0}),b=Z(()=>{var x;const k=((x=c.value)==null?void 0:x.memAvailablePercentage)||100;return 100-k}),p=Z(()=>{const k=u.value;return k<76?"#3b82f6":k>=76&&k<96?"#f59e0b":"#ef4444"}),f=Z(()=>_.value<=115?"#22c55e":"#f97316"),g=Z(()=>{const k=b.value;return k<76?"#8b5cf6":k>=76&&k<96?"#fb923c":"#b91c1c"}),v=()=>{location.href="/cgi-bin/luci/admin/status/overview"},w=Mt.stampForm;Pt(()=>{});const m=()=>{d.value=!d.value},F=()=>{m(),zt.installAndGo("app-meta-netdata","NetData","/cgi-bin/luci/admin/status/netdata")};return(k,x)=>(r(),J(Wt,{title:e(n)("\u7CFB\u7EDF\u4FE1\u606F"),showFooter:!1,style:{width:"100%",height:"100%",display:"block"}},{icon:G(()=>[B(Ya,{class:"icon computerIcon"})]),settings:G(()=>[t("div",{class:"btn_settings",onClick:v},[B(Ya,{color:"#0a0a0a",class:"icon2 computerIcon",style:{"margin-right":"6px"}}),t("span",null,i(e(n)("\u4FE1\u606F\u6982\u89C8")),1)])]),"settings-menu":G(()=>[t("div",null,[t("a",{onClick:F},i(e(n)("\u7CFB\u7EDF\u76D1\u63A7")),1)]),t("div",null,[t("a",sv,i(e(n)("\u5907\u4EFD\u5347\u7EA7")),1)]),t("div",null,[t("a",dv,i(e(n)("\u63D2\u4EF6\u5907\u4EFD")),1)])]),default:G(()=>{var h,y,D,A,S;return[t("div",lv,[t("div",cv,[t("div",uv,[B(Ke,{value:e(u),color:e(p),icon:"chip",label:`${e(u)}%`,width:"150px",height:"150px"},null,8,["value","color","label"]),t("div",null,i(e(n)("CPU\u4F7F\u7528\u7387")),1)]),t("div",pv,[B(Ke,{value:e(_)/1.5,color:e(f),icon:"temperature",label:`${e(_)}\u2103`,width:"150px",height:"150px"},null,8,["value","color","label"]),t("div",null,i(e(n)("CPU\u6E29\u5EA6")),1)]),t("div",fv,[B(Ke,{value:e(b),color:e(g),icon:"lightning",label:`${e(b)}%`,width:"150px",height:"150px"},null,8,["value","color","label"]),t("div",null,i(e(n)("\u5185\u5B58\u4F7F\u7528\u7387")),1)])]),t("div",mv,[t("div",gv,[t("div",null,[B(oo,{color:"#155dfc",class:"icon1",style:{"margin-bottom":"0"}}),t("span",null,i(e(n)("\u8BBE\u5907\u578B\u53F7")),1)]),t("span",bv,i((h=e(l))==null?void 0:h.model),1)]),t("div",vv,[t("div",null,[B(rv,{color:"#00a63e",class:"icon1",style:{"margin-bottom":"0"}}),t("span",null,i(e(n)("\u56FA\u4EF6\u7248\u672C")),1)]),t("span",hv,i((y=e(l))==null?void 0:y.firmwareVersion)+"\uFF08"+i(e(n)("\u5185\u6838"))+"\uFF1A"+i((D=e(l))==null?void 0:D.kernelVersion)+"\uFF09",1)]),t("div",_v,[t("div",null,i(e(n)("\u7CFB\u7EDF\u65F6\u95F4"))+"\uFF1A",1),t("span",null,i((A=e(c))==null?void 0:A.localtime),1)]),t("div",xv,[t("div",null,i(e(n)("\u5DF2\u542F\u52A8"))+"\uFF1A",1),t("span",null,i(e(w)((S=e(c))==null?void 0:S.uptime)),1)])])])]}),_:1},8,["title"]))}});var kv=O(wv,[["__scopeId","data-v-e005287c"]]);const yv=o=>(ct("data-v-7f0d8217"),o=o(),ut(),o),Fv={class:"action"},Ev={class:"action-body"},$v=yv(()=>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)),Cv={class:"title"},Dv={class:"info"},Bv=["href"],Yv={class:"btns"},Av=T({props:{port:Number,Close:Function},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=Z(()=>`http://${location.hostname}:${n.port}`),d=()=>{n.Close&&(n.Close(),location.reload())};return(u,_)=>(r(),J(wt,{type:1},{default:G(()=>[B(At,{name:"rotate",mode:"out-in"},{default:G(()=>[t("div",Fv,[t("div",Ev,[$v,t("h2",Cv,i(e(a)("\u670D\u52A1\u5DF2\u542F\u52A8")),1),t("div",Dv,[t("span",null,i(e(a)("\u524D\u5F80")),1),t("a",{href:e(c),target:"_blank",rel:"noopener noreferrer"},i(e(c)),9,Bv),t("span",null,i(e(a)("\u8FDB\u884C\u6D4B\u901F")),1)]),t("div",Yv,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:d},i(e(a)("\u5173\u95ED")),1)])])])]),_:1})]),_:1}))}});var Sv=O(Av,[["__scopeId","data-v-7f0d8217"]]),zv=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(Sv,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}};const Pv=["onClick"],Tv={class:"modal-header"},Iv={class:"modal-title"},Mv={class:"modal-content"},Lv={key:0,class:"modal-footer"},Xt=T({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;Fo(g=>({"3fcd09c7":e(d)}));const{$gettext:c}=H(),d=Z(()=>typeof l.width=="number"?`${l.width}px`:l.width),u=E(l.modelValue);$t(()=>l.modelValue,g=>{u.value=g}),$t(u,g=>{a("update:modelValue",g),g||a("close")}),Z(()=>typeof l.width=="number"?`${l.width}px`:l.width);const _=()=>{u.value=!1},b=()=>{l.closeOnClickOverlay&&f()},p=()=>{a("confirm")},f=()=>{a("cancel"),_()};return n({show:()=>u.value=!0,hide:()=>u.value=!1}),(g,v)=>(r(),J(At,{name:"fade"},{default:G(()=>[u.value?(r(),s("div",{key:0,class:"modal-overlay",onClick:mt(b,["self"])},[B(At,{name:"slide"},{default:G(()=>[t("div",{class:"modal-container",style:ht({maxWidth:e(d)})},[t("div",Tv,[t("h3",Iv,i(e(c)(o.title)),1),o.showClose?(r(),s("button",{key:0,class:"modal-close",onClick:f,"aria-label":"Close"}," \xD7 ")):C("",!0)]),t("div",Mv,[Yt(g.$slots,"default")]),o.footerShow?(r(),s("div",Lv,[Yt(g.$slots,"footer",{},()=>[t("button",{class:"modal-button cancel",onClick:f},i(e(c)("\u53D6\u6D88")),1),t("button",{class:"modal-button confirm",onClick:p},i(e(c)("\u4FDD\u5B58")),1)])])):C("",!0)],4)]),_:3})],8,Pv)):C("",!0)]),_:3}))}}),Ov=o=>(ct("data-v-ca434918"),o=o(),ut(),o),Nv=Ov(()=>t("span",{class:"switch__button"},null,-1)),Vv=[Nv],Gv=["checked","disabled"],jv=T({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 c=!a.modelValue;n("update:modelValue",c),n("change",c)};return Z(()=>a.modelValue),(c,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})},Vv,4),t("input",{type:"checkbox",class:"switch__input",checked:o.modelValue,disabled:o.disabled},null,8,Gv)],2))}});var Ot=O(jv,[["__scopeId","data-v-ca434918"]]);const Uv={class:"module-settings"},qv={class:"module-settings__header"},Rv={class:"module-settings__summary"},Wv={class:"module-settings__badge"},Hv={class:"module-settings__texts"},Jv={class:"module-settings__title"},Zv={class:"module-settings__sub"},Kv={class:"module-settings__list"},Qv={class:"module-settings__info"},Xv={class:"module-settings__name"},th={class:"module-settings__desc"},eh={class:"module-settings__footer"},ah=T({props:{visible:{type:Boolean},modules:null,states:null},emits:["update:visible","update:states","cancel","save"],setup(o,{emit:n}){const a=o,{$gettext:l}=H(),c=Z({get:()=>a.visible,set:v=>n("update:visible",v)}),d=()=>{const v={};return a.modules.forEach(w=>{var m,F;v[w.key]=(F=(m=a.states)==null?void 0:m[w.key])!=null?F:!0}),v},u=vt(d());$t(()=>a.visible,v=>{v&&Object.assign(u,d())}),$t(()=>a.states,()=>{Object.assign(u,d())},{deep:!0}),$t(()=>a.modules,()=>{Object.assign(u,d())},{deep:!0});const _=Z(()=>a.modules.reduce((v,w)=>u[w.key]?v+1:v,0)),b=(v,w)=>{const m=a.modules.find(F=>F.key===v);if(!!m&&!m.disabled){if(w===!1&&a.modules.reduce((k,x)=>u[x.key]?k+1:k,0)<=1)return $.Warning(l("\u8BF7\u81F3\u5C11\u4FDD\u7559\u4E00\u9879\uFF01"));u[v]=w}},p=()=>{n("cancel"),c.value=!1},f=()=>{const v=rt({},a.states||{});a.modules.forEach(w=>{v[w.key]=!!u[w.key]}),n("save",v)},g=()=>{a.modules.forEach(v=>{v.disabled||(u[v.key]=!0)})};return(v,w)=>(r(),J(Xt,{modelValue:e(c),"onUpdate:modelValue":w[0]||(w[0]=m=>za(c)?c.value=m:null),title:e(l)("\u6A21\u5757\u663E\u793A\u8BBE\u7F6E"),width:"640px","show-close":!0,onCancel:p,onConfirm:f},{footer:G(()=>[t("div",eh,[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:f},i(e(l)("\u4FDD\u5B58\u8BBE\u7F6E")),1)])]),default:G(()=>[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",Uv,[t("div",qv,[t("div",Rv,[t("div",Wv,i(e(_)),1),t("div",Hv,[t("span",Jv,i(e(l)("\u5DF2\u663E\u793A\u6A21\u5757")),1),t("span",Zv,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:g},i(e(l)("\u5168\u90E8\u663E\u793A")),1)]),t("div",Kv,[(r(!0),s(U,null,tt(o.modules,m=>(r(),s("div",{key:m.key,class:lt(["module-settings__item",{"module-settings__item--disabled":m.disabled}])},[t("div",Qv,[t("div",Xv,[t("span",{class:lt(["module-settings__dot",{"is-active":e(u)[m.key]}])},null,2),t("span",null,i(m.title),1)]),t("p",th,i(m.description),1)]),B(Ot,{"model-value":e(u)[m.key],disabled:m.disabled,"active-color":"#553AFE","inactive-color":"#E5E6EB",onChange:F=>b(m.key,F)},null,8,["model-value","disabled","onChange"])],2))),128))])])]),_:1},8,["modelValue","title"]))}});var oh=O(ah,[["__scopeId","data-v-79624e8f"]]);const nh={class:"page-container"},ih={style:{height:"48px","text-align":"right",display:"flex","justify-content":"flex-end","align-items":"start"}},rh={style:{display:"flex","align-items":"center"}},sh={onclick:"void(0)",href:"https://www.istoreos.com/",target:"_blank",style:{"text-decoration":"none",color:"white","line-height":"1.5em"}},dh=["title"],lh={key:0,class:"card-container"},ch={key:1,style:{"margin-top":"10px"}},uh={key:0,class:"network-stack"},ph={class:"stack-item"},fh={class:"stack-item",style:{"margin-top":"10px"}},mh={key:1,class:"network-container"},gh={key:2,class:"network-container align-c"},bh={class:"left-box"},vh={key:3,class:"other-container"},hh={class:"grid-container"},_h={key:4,class:"system"},xh=T({setup(o){var M,W;const{$gettext:n}=H(),a=aa();Xo();const l=Me(),c=E(!0);(W=(M=window.quickstart_configs)==null?void 0:M.update)!=null&&W.disable&&(c.value=!1),c.value&&setTimeout(()=>{l.requestCheckUpdate()},1100);const d=Fe(),u=Z(()=>d.deviceList),_=Z(()=>{var X,st;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:((st=(X=u.value)==null?void 0:X.devices)==null?void 0:st.length)||0,color:"blue",link:"/devicemanagement"},{icon:"speed",title:n("\u7F51\u7EDC\u6D4B\u901F"),subtitle:n("\u68C0\u6D4B\u7F51\u7EDC\u901F\u5EA6"),status:"",tag:n("\u70B9\u51FB\u6D4B\u8BD5"),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"}]}),b=X=>{if(!!X.title){if(X.icon=="speed")return f();if(X.icon=="baby")return p();X.link?a.push(X.link):X.alink&&(window.location.href=X.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")}),f=()=>L(this,null,function*(){var X,st,at;if(yield zt.checkAndInstallApp("app-meta-homebox","Homebox"))try{const ft=yield j.Network.Homebox.Enable.POST();(st=(X=ft==null?void 0:ft.data)==null?void 0:X.result)!=null&&st.port?zv({port:ft.data.result.port,setup:0}):((at=ft==null?void 0:ft.data)==null?void 0:at.success)==0?location.href="/cgi-bin/luci/admin/services/homebox":$.Warning(n("\u542F\u52A8\u5931\u8D25"))}catch(ft){$.Warning(n("\u542F\u52A8\u5931\u8D25"))}}),g=E(!1);(()=>L(this,null,function*(){try{const X=yield j.App.Check.POST({name:"luci-app-oaf"});if(X!=null&&X.data){const{result:st,error:at}=X.data;at?g.value=!1:st&&st.status=="installed"?g.value=!0:g.value=!1}}catch(X){g.value=!1}}))();const w={quickActions:!0,networkFlow:!0,networkConnection:!0,networkInterface:!0,configModule:!0,diskInfo:!0,storage:!0,docker:!0,downloadService:!0,remoteDomain:!0,systemInfo:!0},m=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),k=Z(()=>{const X=[{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")&&X.splice(7,0,{key:"docker",title:n("Docker\u6A21\u5757"),description:n("\u5BB9\u5668\u8FD0\u884C\u72B6\u6001\u4E0E\u7BA1\u7406")}),X}),x=Z(()=>m.value.networkFlow||m.value.networkConnection||m.value.networkInterface),h=Z(()=>m.value.networkConnection||m.value.networkInterface),y=Z(()=>m.value.networkFlow&&!m.value.networkConnection&&m.value.networkInterface),D=Z(()=>m.value.networkFlow&&!m.value.networkConnection&&!m.value.networkInterface),A=Z(()=>m.value.networkConnection&&!m.value.networkInterface);typeof window!="undefined"&&$t(()=>[m.value.networkConnection,m.value.networkInterface],()=>{requestAnimationFrame(()=>{window.dispatchEvent(new Event("resize"))})});const S=Z(()=>{const X=[];return m.value.diskInfo&&X.push({key:"diskInfo",component:yg}),m.value.storage&&X.push({key:"storage",component:Nf}),Qt("dockerd")&&m.value.docker&&X.push({key:"docker",component:Ub}),m.value.downloadService&&X.push({key:"downloadService",component:a1}),m.value.remoteDomain&&X.push({key:"remoteDomain",component:i5}),X}),Y=(X,st)=>{if(st<=0)return"100%";if(st<=2)return`calc((100% - ${(st-1)*24}px) / ${st})`;const at=Math.min(2,st);if(X<at)return`calc((100% - ${(at-1)*24}px) / ${at})`;const ft=st-at;return ft<=0?"100%":`calc((100% - ${(ft-1)*24}px) / ${ft})`},z=E(null),R=X=>L(this,null,function*(){if(!(z.value&&Object.keys(X).some(Dt=>{var yt;return X[Dt]!==((yt=z.value)==null?void 0:yt[Dt])}))){F.value=!1;return}const at=rt(rt({},m.value),X);(yield I(at))&&(m.value=at,F.value=!1)}),V=()=>L(this,null,function*(){var X,st;try{const at=yield j.ModuleSettings.GET(),ft=(st=(X=at==null?void 0:at.data)==null?void 0:X.result)==null?void 0:st.diableDisplay;if(!ft||ft.length===0||ft.length===1&&ft[0]===""){const Dt=rt({},w);m.value=Dt,z.value=rt({},Dt)}else{const Dt=rt({},w);ft.forEach(yt=>{yt&&yt.trim()&&yt in Dt&&(Dt[yt]=!1)}),m.value=Dt,z.value=rt({},Dt)}}catch(at){console.warn("[ModuleSettings] fetch failed",at),m.value=rt({},w),z.value=rt({},w)}}),I=X=>L(this,null,function*(){try{const st=[];return Object.keys(X).forEach(at=>{X[at]||st.push(at)}),yield j.ModuleSettings.POST({diableDisplay:st}),z.value=rt({},X),$.Success(n("\u4FDD\u5B58\u6210\u529F")),!0}catch(st){return console.error("[ModuleSettings] save failed",st),$.Warning(n("\u4FDD\u5B58\u5931\u8D25\uFF01")),!1}});return $t(F,X=>{X&&(z.value=rt({},m.value))}),V(),(X,st)=>(r(),s("div",nh,[t("div",ih,[t("div",rh,[t("a",sh,i(e(n)("iStoreOS\u5B98\u7F51")),1),t("span",{title:e(n)("\u6A21\u5757\u8BBE\u7F6E"),class:"model_btn",onClick:st[0]||(st[0]=at=>F.value=!0)},[B(j8,{style:{width:"16px",height:"16px"}})],8,dh)])]),m.value.quickActions?(r(),s("div",lh,[(r(!0),s(U,null,tt(e(_),(at,ft)=>(r(),s(U,{key:ft},[at.icon!=="baby"||g.value?(r(),J(k4,{key:0,card:at,onClick:b},null,8,["card"])):C("",!0)],64))),128))])):C("",!0),e(x)?(r(),s("div",ch,[e(y)?(r(),s("div",uh,[t("div",ph,[B(ya,{style:{"min-height":"600px"}})]),t("div",fh,[B(Ea)])])):(r(),s("div",mh,[m.value.networkFlow?(r(),s("div",{key:0,class:lt(["left-box",{"full-row":e(D)}])},[B(ya,{style:ht(e(D)?{minHeight:"600px"}:void 0)},null,8,["style"])],2)):C("",!0),e(h)?(r(),s("div",{key:1,class:lt(["right-box",{"single-card":e(A)}]),style:{overflow:"visible"}},[m.value.networkConnection?(r(),J(y8,{key:0,class:lt({"fill-card":e(A)})},null,8,["class"])):C("",!0),m.value.networkInterface?(r(),J(Ea,{key:1,style:ht({marginTop:m.value.networkConnection?"10px":"0px"})},null,8,["style"])):C("",!0)],2)):C("",!0)]))])):C("",!0),m.value.configModule?(r(),s("div",gh,[t("div",bh,[B(zp)])])):C("",!0),e(S).length?(r(),s("div",vh,[t("div",hh,[(r(!0),s(U,null,tt(e(S),(at,ft)=>(r(),s("div",{class:"grid-item",key:at.key,style:ht({flexBasis:Y(ft,e(S).length)})},[(r(),J(oa(at.component)))],4))),128))])])):C("",!0),m.value.systemInfo?(r(),s("div",_h,[B(kv)])):C("",!0),B(oh,{visible:F.value,"onUpdate:visible":st[1]||(st[1]=at=>F.value=at),modules:e(k),states:m.value,onSave:R},null,8,["visible","modules","states"])]))}});var wh=O(xh,[["__scopeId","data-v-7fbc85a6"]]);const kh={};function yh(o,n){const a=xt("router-view");return r(),J(a)}var Fh=O(kh,[["render",yh]]);const Eh={},$h={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"},Ch=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),Dh=[Ch];function Bh(o,n){return r(),s("svg",$h,Dh)}var Yh=O(Eh,[["render",Bh]]);const Ah={},Sh={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"},zh=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),Ph=[zh];function Th(o,n){return r(),s("svg",Sh,Ph)}var Ih=O(Ah,[["render",Th]]);const Mh={},Lh={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"},Oh=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),Nh=[Oh];function Vh(o,n){return r(),s("svg",Lh,Nh)}var Gh=O(Mh,[["render",Vh]]);const jh={id:"page"},Uh={class:"title"},qh={class:"desc"},Rh={class:"network-containers"},Wh={class:"network-container_item"},Hh={class:"cover"},Jh={class:"thumbnail"},Zh={class:"network-container_item"},Kh={class:"cover"},Qh={class:"thumbnail"},Xh={class:"network-container_item"},t_={class:"cover"},e_={class:"thumbnail"},a_=["innerHTML"],o_=T({setup(o){const{$gettext:n,$ngettext:a}=H(),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(c,d)=>{const u=xt("router-link");return r(),s("div",jh,[t("div",Uh,i(e(n)("\u6B22\u8FCE\u4F7F\u7528\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC")),1),t("div",qh,i(e(n)("\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB")),1),t("div",Rh,[t("div",Wh,[B(u,{to:"/network/pppoe"},{default:G(()=>[t("div",Hh,[t("div",Jh,[B(Ih),t("span",null,i(e(n)("\u5BBD\u5E26\u62E8\u53F7\u8FDE\u63A5")),1)])])]),_:1})]),t("div",Zh,[B(u,{to:"/network/dhcp"},{default:G(()=>[t("div",Kh,[t("div",Qh,[B(Yh),t("span",null,i(e(n)("\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668")),1)])])]),_:1})]),t("div",Xh,[B(u,{to:"/network/gateway"},{default:G(()=>[t("div",t_,[t("div",e_,[B(Gh),t("span",null,i(e(n)("\u914D\u7F6E\u4E3A\u65C1\u8DEF\u7531")),1)])])]),_:1})])]),t("div",{class:"info",innerHTML:e(l)},null,8,a_)])}}});var n_=O(o_,[["__scopeId","data-v-52c03678"]]);const i_={key:0,id:"page"},r_={class:"title"},s_={class:"desc"},d_={class:"network-message"},l_=["innerHTML"],c_=["onSubmit"],u_={class:"label-key"},p_=["placeholder","disabled"],f_={class:"label-key"},m_=["placeholder","disabled"],g_={key:0,class:"chose_dhcp"},b_={class:"dhcp_info"},v_={key:1,class:"msg"},h_={class:"btns"},__=["disabled"],x_=["onClick"],w_={key:1,id:"page"},k_={class:"title"},y_={class:"btns"},F_=["onClick"],E_=["onClick"],$_=T({setup(o){const{$gettext:n,$ngettext:a}=H(),c=Pe().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),u=E(0),_=E({}),b=E(""),p=E(!1),f=E(0),g=E(!1);(()=>L(this,null,function*(){var m,F;p.value=!0;try{const k=yield Promise.all([j.Guide.Pppoe.GET(),j.Guide.GetLan.GET()]);if(k[0].data){const{success:x,error:h,result:y}=k[0].data;y&&(y.enableLanDhcp=!1,_.value=y),x==-1011&&(p.value=!0,f.value=x)}(m=k[1].data)!=null&&m.result&&(((F=k[1].data)==null?void 0:F.result).enableDhcp||(g.value=!0,_.value.enableLanDhcp=!0))}catch(k){b.value=k}f.value==0&&(p.value=!1)}))();const w=()=>L(this,null,function*(){const m=_.value.account||"",F=_.value.password||"";if(m==""){b.value=n("\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A");return}if(F==""){b.value=n("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}p.value=!0;const k=$.Loading(n("\u914D\u7F6E\u4E2D..."));try{const x=yield j.Guide.Pppoe.POST({account:m,password:F});if(x!=null&&x.data){const{error:h,success:y}=x.data;h&&(b.value=h),(y==null||y==0)&&($.Success(n("\u914D\u7F6E\u6210\u529F")),u.value=1)}}catch(x){b.value=x}p.value=!1,k.Close()});return(m,F)=>{const k=xt("switch-box"),x=xt("router-link");return u.value==0?(r(),s("div",i_,[t("h2",r_,i(e(n)("\u914D\u7F6E\u5BBD\u5E26\u8D26\u53F7")),1),t("h3",s_,i(e(n)("\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B")),1),t("div",d_,[f.value==-1011?(r(),s("li",{key:0,innerHTML:e(d)},null,8,l_)):C("",!0)]),t("form",{onSubmit:mt(w,["prevent"])},[t("label",null,[t("div",u_,[t("span",null,i(e(n)("\u5BBD\u5E26\u8D26\u53F7")),1)]),N(t("input",{type:"text","onUpdate:modelValue":F[0]||(F[0]=h=>_.value.account=h),placeholder:e(n)("\u5BBD\u5E26\u8D26\u53F7"),required:"",disabled:p.value},null,8,p_),[[ot,_.value.account,void 0,{trim:!0}]])]),t("label",null,[t("div",f_,[t("span",null,i(e(n)("\u5BC6\u7801")),1)]),N(t("input",{type:"password","onUpdate:modelValue":F[1]||(F[1]=h=>_.value.password=h),placeholder:e(n)("\u5BBD\u5E26\u5BC6\u7801"),required:"",disabled:p.value},null,8,m_),[[ot,_.value.password,void 0,{trim:!0}]])]),g.value?(r(),s("div",g_,[B(k,{modelValue:_.value.enableLanDhcp,"onUpdate:modelValue":F[2]||(F[2]=h=>_.value.enableLanDhcp=h)},{default:G(()=>[t("span",b_,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"])])):C("",!0),b.value?(r(),s("div",v_,i(b.value),1)):C("",!0),t("div",h_,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:p.value},i(e(n)("\u4FDD\u5B58\u914D\u7F6E")),9,__),B(x,{to:e(c)=="index"?"/":"/network",custom:""},{default:G(({navigate:h})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:h},i(e(n)("\u8FD4\u56DE")),9,x_)]),_:1},8,["to"])])],40,c_)])):u.value==1?(r(),s("div",w_,[t("h2",k_,i(e(n)("\u914D\u7F6E\u6210\u529F")),1),t("div",y_,[B(x,{to:"/",custom:""},{default:G(({navigate:h})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:h},i(e(n)("\u8FDB\u5165\u63A7\u5236\u53F0")),9,F_)]),_:1}),B(x,{to:e(c)=="index"?"/":"/network",custom:""},{default:G(({navigate:h})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:h},i(e(n)("\u8FD4\u56DE")),9,E_)]),_:1},8,["to"])])])):C("",!0)}}});var C_=O($_,[["__scopeId","data-v-e187efe4"]]);const D_={key:0,id:"page"},B_={class:"title"},Y_={class:"desc"},A_={class:"network-message"},S_=["innerHTML"],z_=["onSubmit"],P_={class:"label-key"},T_={value:"dhcp"},I_={value:"static"},M_={class:"label-key"},L_=["placeholder","disabled"],O_={key:0,class:"msg"},N_={class:"label-key"},V_=["placeholder","disabled"],G_={key:1,class:"msg"},j_={class:"label-key"},U_=["placeholder","disabled"],q_={class:"label-key"},R_=["disabled"],W_={value:"manual"},H_={class:"label-key"},J_=["onUpdate:modelValue","placeholder","disabled"],Z_={class:"label-key"},K_=["placeholder","disabled"],Q_={class:"label-key"},X_=["placeholder","disabled"],tx={key:2,class:"chose_dhcp"},ex={class:"dhcp_info"},ax={key:3,class:"msgs"},ox={class:"btns"},nx=["disabled"],ix=["onClick"],rx={key:1,id:"page"},sx={class:"title"},dx={class:"btns"},lx=["onClick"],cx=["onClick"],ux=T({setup(o){const{$gettext:n,$ngettext:a}=H(),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),c=E(0),d=E({}),u=E(""),_=E(""),b=E(""),p=E(!1),f=E(""),g=E(""),v=E(0),w=Mt.checkIsIP,m=E(!1),k=Pe().query.type;(()=>L(this,null,function*(){var S,Y;p.value=!0;try{const z=yield Promise.all([j.Guide.ClientModel.GET(),j.Guide.GetLan.GET()]);if(z[0]){const R=z[0];if(R.data){const{success:V,error:I,result:M}=R.data;M&&(M.wanProto!="dhcp"&&M.wanProto!="static"&&(M.wanProto="dhcp",M.dnsProto="auto"),M.enableLanDhcp=!1,d.value=M),V==-1011&&(v.value=V,p.value=!0)}}(S=z[1].data)!=null&&S.result&&(((Y=z[1].data)==null?void 0:Y.result).enableDhcp||(m.value=!0,d.value.enableLanDhcp=!0))}catch(z){u.value=z}v.value==0&&(p.value=!1)}))();const h=S=>{S.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)},y=S=>{const Y=S.target;if(Y.value==""){f.value="";return}w(Y.value)?f.value="":f.value=n("\u8BF7\u8F93\u5165\u5408\u6CD5\u7684IP\u5730\u5740")},D=S=>{const Y=S.target;if(Y.value==""){g.value="";return}w(Y.value)?g.value="":g.value=n("\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u5730\u5740")},A=()=>L(this,null,function*(){const S={};switch(d.value.wanProto){case"dhcp":break;case"static":S.staticIp=d.value.staticIp,S.subnetMask=d.value.subnetMask,S.gateway=d.value.gateway||"";break}switch(d.value.dnsProto){case"auto":break;case"manual":S.manualDnsIp=[],d.value.manualDnsIp!=null&&d.value.manualDnsIp.length>0?S.manualDnsIp=d.value.manualDnsIp:(S.manualDnsIp.push(_.value),b.value&&S.manualDnsIp.push(b.value));break}S.dnsProto=d.value.dnsProto,S.wanProto=d.value.wanProto,S.enableLanDhcp=d.value.enableLanDhcp;const Y=$.Loading(n("\u914D\u7F6E\u4E2D...."));p.value=!0;try{const z=yield j.Guide.ClientModel.POST(S);if(z!=null&&z.data){const{success:R,error:V}=z==null?void 0:z.data;V&&(u.value=V),(R==null||R==0)&&($.Success(n("\u914D\u7F6E\u6210\u529F")),c.value=1)}}catch(z){u.value=z}p.value=!1,Y.Close()});return(S,Y)=>{const z=xt("switch-box"),R=xt("router-link");return c.value==0?(r(),s("div",D_,[t("h2",B_,i(e(n)("\u914D\u7F6E\u4E92\u8054\u7F51")),1),t("h3",Y_,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",A_,[v.value==-1011?(r(),s("li",{key:0,innerHTML:e(l)},null,8,S_)):C("",!0)]),t("form",{onSubmit:mt(A,["prevent"])},[t("label",null,[t("div",P_,[t("span",null,i(e(n)("WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")),1)]),N(t("select",{"onUpdate:modelValue":Y[0]||(Y[0]=V=>d.value.wanProto=V),onInput:h},[t("option",T_,i(e(n)("\u81EA\u52A8\u83B7\u53D6IP\u5730\u5740\uFF08DHCP\uFF09")),1),t("option",I_,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",M_,[t("span",null,i(e(n)("IP\u5730\u5740")),1)]),N(t("input",{type:"text","onUpdate:modelValue":Y[1]||(Y[1]=V=>d.value.staticIp=V),placeholder:e(n)("\u9759\u6001IP\u5730\u5740"),required:"",disabled:p.value,onInput:y},null,40,L_),[[ot,d.value.staticIp,void 0,{trim:!0}]])]),f.value?(r(),s("p",O_,i(f.value),1)):C("",!0),t("label",null,[t("div",N_,[t("span",null,i(e(n)("\u5B50\u7F51\u63A9\u7801")),1)]),N(t("input",{type:"text","onUpdate:modelValue":Y[2]||(Y[2]=V=>d.value.subnetMask=V),placeholder:e(n)("\u5B50\u7F51\u63A9\u7801"),required:"",disabled:p.value,onInput:D},null,40,V_),[[ot,d.value.subnetMask,void 0,{trim:!0}]])]),g.value?(r(),s("p",G_,i(g.value),1)):C("",!0),t("label",null,[t("div",j_,[t("span",null,i(e(n)("\u7F51\u5173\u5730\u5740")),1)]),N(t("input",{type:"text","onUpdate:modelValue":Y[3]||(Y[3]=V=>d.value.gateway=V),placeholder:e(n)("\u7F51\u5173\u5730\u5740"),required:"",disabled:p.value},null,8,U_),[[ot,d.value.gateway,void 0,{trim:!0}]])])],64)):C("",!0),t("label",null,[t("div",q_,[t("span",null,i(e(n)("DNS \u914D\u7F6E\u65B9\u5F0F")),1)]),N(t("select",{"onUpdate:modelValue":Y[4]||(Y[4]=V=>d.value.dnsProto=V)},[t("option",{value:"auto",disabled:d.value.wanProto=="static"},i(e(n)("\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09")),9,R_),t("option",W_,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,(V,I)=>(r(),s("label",null,[t("div",H_,[t("span",null,i(e(n)("DNS\u670D\u52A1\u5668")),1)]),N(t("input",{type:"text","onUpdate:modelValue":M=>d.value.manualDnsIp[I]=M,placeholder:e(n)("DNS\u670D\u52A1\u5668"),required:"",disabled:p.value},null,8,J_),[[ot,d.value.manualDnsIp[I],void 0,{trim:!0}]])]))),256)):(r(),s(U,{key:1},[t("label",null,[t("div",Z_,[t("span",null,i(e(n)("DNS\u670D\u52A1\u5668")),1)]),N(t("input",{type:"text","onUpdate:modelValue":Y[5]||(Y[5]=V=>_.value=V),placeholder:e(n)("DNS\u670D\u52A1\u5668"),required:"",disabled:p.value},null,8,K_),[[ot,_.value,void 0,{trim:!0}]])]),t("label",null,[t("div",Q_,i(e(n)("\u5907\u7528DNS\u670D\u52A1\u5668")),1),N(t("input",{type:"text","onUpdate:modelValue":Y[6]||(Y[6]=V=>b.value=V),placeholder:e(n)("\u5907\u7528DNS\u670D\u52A1\u5668"),disabled:p.value},null,8,X_),[[ot,b.value,void 0,{trim:!0}]])])],64))],64)):C("",!0),m.value?(r(),s("div",tx,[B(z,{modelValue:d.value.enableLanDhcp,"onUpdate:modelValue":Y[7]||(Y[7]=V=>d.value.enableLanDhcp=V)},{default:G(()=>[t("span",ex,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"])])):C("",!0),u.value?(r(),s("div",ax,i(u.value),1)):C("",!0),t("div",ox,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:p.value},i(e(n)("\u4FDD\u5B58\u914D\u7F6E")),9,nx),B(R,{to:e(k)=="index"?"/":"/network",custom:""},{default:G(({navigate:V})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:V},i(e(n)("\u8FD4\u56DE")),9,ix)]),_:1},8,["to"])])],40,z_)])):c.value==1?(r(),s("div",rx,[t("h2",sx,i(e(n)("\u914D\u7F6E\u6210\u529F")),1),t("div",dx,[B(R,{to:"/",custom:""},{default:G(({navigate:V})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:V},i(e(n)("\u8FDB\u5165\u63A7\u5236\u53F0")),9,lx)]),_:1}),B(R,{to:e(k)=="index"?"/":"/network",custom:""},{default:G(({navigate:V})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:V},i(e(n)("\u8FD4\u56DE")),9,cx)]),_:1},8,["to"])])])):C("",!0)}}});var px=O(ux,[["__scopeId","data-v-5eefd6ee"]]);const fx=o=>(ct("data-v-3d6d1dea"),o=o(),ut(),o),mx={key:0,id:"page"},gx={class:"title"},bx=fx(()=>t("br",null,null,-1)),vx={class:"btns"},hx=["onClick"],_x={key:1,id:"page"},xx={class:"title"},wx={class:"desc"},kx=["onSubmit"],yx={class:"label-key"},Fx={class:"label-value"},Ex={class:"label-key"},$x=["placeholder"],Cx={class:"label-key"},Dx=["placeholder"],Bx={class:"label-key"},Yx=["placeholder"],Ax={class:"label-key"},Sx=["placeholder"],zx={key:0,class:"msgs"},Px={class:"switch_inline"},Tx={key:0,class:"switch_info"},Ix={key:1,class:"switch_info"},Mx={class:"switch_inline"},Lx={class:"switch_info"},Ox={class:"switch_inline"},Nx={class:"switch_info"},Vx={class:"btns"},Gx={class:"cbi-button cbi-button-apply app-btn app-next"},jx=["onClick"],Ux={key:2,id:"page"},qx={class:"title"},Rx={class:"desc"},Wx={class:"btns"},Hx={key:3,id:"page"},Jx={class:"title"},Zx=["disabled"],Kx={style:{"text-align":"left"}},Qx={class:"btns"},Xx=["disabled"],tw=["onClick"],ew=T({setup(o){const{$gettext:n,$ngettext:a}=H(),c=Pe().query.type,d=E(0),u=E(""),_=E(!1),b=Z(()=>{var F,k,x;return!(((F=f.value)==null?void 0:F.ipv4addr)&&((k=f.value)==null?void 0:k.ipv4mask)&&((x=f.value)==null?void 0:x.gateway))}),p=E({subnetMask:"255.255.255.0",staticDnsIp:"223.5.5.5",staticLanIp:"",gateway:"",enableDhcp:!0,dhcp6c:!1,enableNat:!1}),f=E(),g=()=>{_.value=!0,j.Network.Status.GET().then(F=>{if(F!=null&&F.data){const{result:k}=F==null?void 0:F.data;k&&(f.value=k)}}).finally(()=>{_.value=!1})},v=F=>{var k,x,h,y,D;F&&(p.value.staticLanIp=((k=f.value)==null?void 0:k.ipv4addr)||"",p.value.subnetMask=((x=f.value)==null?void 0:x.ipv4mask)&&Lt.prefixToMask(f.value.ipv4mask)||"",p.value.gateway=((h=f.value)==null?void 0:h.gateway)||"",p.value.staticDnsIp=((y=f.value)==null?void 0:y.dnsList)&&((D=f.value)==null?void 0:D.dnsList[0])||"223.5.5.5"),d.value=1},w=F=>{window.location.href=location.protocol+"//"+p.value.staticLanIp+(location.port?":"+location.port:"")},m=()=>L(this,null,function*(){const F=p.value,k=$.Loading(n("\u914D\u7F6E\u4E2D..."));try{const x=yield j.Guide.GatewayRouter.POST(F);if(x!=null&&x.data){const{success:h,error:y}=x==null?void 0:x.data;if(y&&(u.value=y),h==null||h==0){setTimeout(()=>{d.value=2,k.Close()},5e3);return}}}catch(x){u.value=x}k.Close()});return(F,k)=>{var y,D,A,S;const x=xt("router-link"),h=xt("switch-box");return d.value==0?(r(),s("div",mx,[t("h2",gx,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),bx,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",vx,[t("button",{class:"cbi-button cbi-button-success app-btn app-next",onClick:k[0]||(k[0]=Y=>d.value=3)},i(e(n)("\u81EA\u52A8\u914D\u7F6E...")),1),t("button",{class:"cbi-button cbi-button-neutral app-btn app-next",onClick:k[1]||(k[1]=Y=>v(!1))},i(e(n)("\u624B\u52A8\u914D\u7F6E...")),1),B(x,{to:e(c)=="index"?"/":"/network",custom:""},{default:G(({navigate:Y})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:Y},i(e(n)("\u8FD4\u56DE")),9,hx)]),_:1},8,["to"])])])):d.value==1?(r(),s("div",_x,[t("h2",xx,i(e(n)("\u914D\u7F6E\u65C1\u8DEF\u7531\u7F51\u7EDC")),1),t("h3",wx,i(e(n)("\u73B0\u5728\uFF0C\u8BF7\u4F60\u914D\u7F6E\u65C1\u8DEF\u7531\u4FE1\u606F")),1),t("form",{onSubmit:mt(m,["prevent"])},[t("label",null,[t("div",yx,[t("span",null,i(e(n)("LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")),1)]),t("div",Fx,[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",Ex,[t("span",null,i(e(n)("IP \u5730\u5740")),1)]),N(t("input",{type:"text","onUpdate:modelValue":k[2]||(k[2]=Y=>p.value.staticLanIp=Y),placeholder:e(n)("IP\u5730\u5740"),required:""},null,8,$x),[[ot,p.value.staticLanIp,void 0,{trim:!0}]])]),t("label",null,[t("div",Cx,[t("span",null,i(e(n)("\u5B50\u7F51\u63A9\u7801")),1)]),N(t("input",{type:"text","onUpdate:modelValue":k[3]||(k[3]=Y=>p.value.subnetMask=Y),placeholder:e(n)("\u5B50\u7F51\u63A9\u7801"),required:""},null,8,Dx),[[ot,p.value.subnetMask,void 0,{trim:!0}]])]),t("label",null,[t("div",Bx,[t("span",null,i(e(n)("\u7F51\u5173\u5730\u5740")),1)]),N(t("input",{type:"text","onUpdate:modelValue":k[4]||(k[4]=Y=>p.value.gateway=Y),placeholder:e(n)("\u7F51\u5173\u5730\u5740"),required:""},null,8,Yx),[[ot,p.value.gateway,void 0,{trim:!0}]])]),t("label",null,[t("div",Ax,[t("span",null,i(e(n)("DNS\u670D\u52A1\u5668")),1)]),N(t("input",{type:"text","onUpdate:modelValue":k[5]||(k[5]=Y=>p.value.staticDnsIp=Y),placeholder:e(n)("223.5.5.5"),required:""},null,8,Sx),[[ot,p.value.staticDnsIp,void 0,{trim:!0}]])]),u.value?(r(),s("div",zx,i(u.value),1)):C("",!0),t("div",Px,[B(h,{modelValue:p.value.enableDhcp,"onUpdate:modelValue":k[6]||(k[6]=Y=>p.value.enableDhcp=Y)},{default:G(()=>[p.value.enableDhcp?(r(),s("span",Tx,i(e(n)("\u63D0\u4F9B DHCPv4 \u670D\u52A1\uFF08\u9700\u8981\u5173\u95ED\u4E3B\u8DEF\u7531 DHCP \u670D\u52A1\uFF09")),1)):(r(),s("span",Ix,i(e(n)("\u63D0\u4F9B DHCPv4 \u670D\u52A1")),1))]),_:1},8,["modelValue"])]),t("div",Mx,[B(h,{modelValue:p.value.dhcp6c,"onUpdate:modelValue":k[7]||(k[7]=Y=>p.value.dhcp6c=Y)},{default:G(()=>[t("span",Lx,i(e(n)("\u81EA\u52A8\u83B7\u53D6 IPV6\uFF08\u5373\u5F00\u542F DHCPv6 \u5BA2\u6237\u7AEF\uFF09")),1)]),_:1},8,["modelValue"])]),t("div",Ox,[B(h,{modelValue:p.value.enableNat,"onUpdate:modelValue":k[8]||(k[8]=Y=>p.value.enableNat=Y)},{default:G(()=>[t("span",Nx,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",Vx,[t("button",Gx,i(e(n)("\u4FDD\u5B58\u914D\u7F6E")),1),B(x,{to:e(c)=="index"?"/":"/network",custom:""},{default:G(({navigate:Y})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:Y},i(e(n)("\u8FD4\u56DE")),9,jx)]),_:1},8,["to"])])],40,kx)])):d.value==2?(r(),s("div",Ux,[t("h2",qx,i(e(n)("\u914D\u7F6E\u6210\u529F")),1),t("h3",Rx,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",Wx,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:w},i(e(n)("\u8FDB\u5165\u63A7\u5236\u53F0")),1)])])):d.value==3?(r(),s("div",Hx,[t("h2",Jx,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(b)?"cbi-button-neutral":"cbi-button-success"]),disabled:_.value,onClick:g},[dt(i(e(n)("\u5F53\u524D IPv4 \u4E0A\u6E38\u4FE1\u606F\uFF08\u70B9\u6B64\u5237\u65B0\uFF09"))+" ",1),t("p",Kx,[t("ul",null,[t("li",null,i(e(n)("IP \u5730\u5740: "))+i((y=f.value)==null?void 0:y.ipv4addr),1),t("li",null,i(e(n)("\u5B50\u7F51\u63A9\u7801: "))+i(((D=f.value)==null?void 0:D.ipv4mask)&&e(Lt).prefixToMask(f.value.ipv4mask)),1),t("li",null,i(e(n)("\u7F51\u5173\u5730\u5740: "))+i((A=f.value)==null?void 0:A.gateway),1),t("li",null,i(e(n)("DNS\u670D\u52A1\u5668: "))+i(((S=f.value)==null?void 0:S.dnsList)&&f.value.dnsList[0]||(e(b)?"":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,Zx),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",Qx,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:e(b),onClick:k[9]||(k[9]=Y=>v(!0))},i(e(n)("\u81EA\u52A8\u586B\u5199..."))+i(e(b)?e(n)("\uFF08\u8BF7\u5148\u83B7\u53D6IPv4\u4E0A\u6E38\u4FE1\u606F\uFF09"):""),9,Xx),B(x,{to:e(c)=="index"?"/":"/network",custom:""},{default:G(({navigate:Y})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:Y},i(e(n)("\u8FD4\u56DE")),9,tw)]),_:1},8,["to"])])])):C("",!0)}}});var aw=O(ew,[["__scopeId","data-v-3d6d1dea"]]);const ow={class:"actioner-container"},nw={class:"actioner-container_header"},iw={class:"actioner-container_body"},rw={class:"label-item"},sw={class:"label-item_key"},dw={class:"label-item_value"},lw=["value"],cw={class:"label-item_tips"},uw={class:"label-item"},pw={class:"label-item_key"},fw={key:0,class:"label-item_value"},mw={class:"msg-warning"},gw={key:1,class:"label-item_value"},bw=["value"],vw={key:1,class:"msg-warning"},hw={class:"label-item_tips"},_w={class:"actioner-container_footer"},xw=["disabled"],ww=["disabled"],kw={key:1,class:"actioner-container_body setup-loading"},yw={class:"actioner-container_body setup-error"},Fw={class:"actioner-container_footer"},Ew=["disabled"],$w={class:"actioner-container_body setup-success"},Cw={class:"body-title"},Dw={class:"actioner-container_footer"},Bw=T({props:{Close:{type:Function,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=()=>{n.Close()},d=()=>{n.success&&n.success()},u=E("init"),_=E(""),b=[{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"),f=E([]),g=x=>{let h="";return b.forEach(y=>{y.name===x&&(h=y.info)}),h},v=E(!1),w=vt({loading:!1,members:[]}),m=x=>{};(()=>L(this,null,function*(){w.loading=!0;try{const x=yield j.Raid.CreateList.GET();if(x!=null&&x.data){const{success:h,error:y,result:D}=x.data;if(D&&(w.members=D.members||[]),y)throw y}}catch(x){console.log(x)}finally{w.loading=!1}}))();const k=()=>L(this,null,function*(){const x=b.filter(y=>y.name===p.value)[0],h=f.value;if(!x){$.Warning(a("\u8BF7\u9009\u62E9raid\u7C7B\u578B"));return}if(h.length==0){$.Warning(a("\u8BF7\u9009\u62E9\u78C1\u76D8"));return}if(x.select>h.length){$.Warning(a("\u8BF7\u9009\u62E9\u81F3\u5C11%{min}\u5757\u78C1\u76D8",{min:""+x.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:x.name}))&&!!confirm(a("\u786E\u5B9A\u521B\u5EFA %{name}\uFF1F\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u9006,\u8BF7\u8C28\u614E\u64CD\u4F5C",{name:x.name}))){v.value=!0,u.value="loading";try{const y=yield j.Raid.Create.POST({level:x.name,devicePaths:h});if(y.data){const{success:D,error:A,result:S}=y.data;if(A)throw A;(D||0)==0&&(u.value="success",d())}}catch(y){_.value=y,u.value="error"}finally{v.value=!1}}});return(x,h)=>{const y=xt("icon-loading"),D=xt("icon-error"),A=xt("icon-success");return r(),s("div",ow,[t("div",nw,[t("span",null,i(e(a)("RAID\u521B\u5EFA\u5411\u5BFC")),1)]),u.value=="init"?(r(),s(U,{key:0},[t("div",iw,[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",rw,[t("div",sw,[t("span",null,i(e(a)("RAID\u7EA7\u522B\uFF1A")),1)]),t("div",dw,[N(t("select",{"onUpdate:modelValue":h[0]||(h[0]=S=>p.value=S),onChange:m},[(r(),s(U,null,tt(b,S=>t("option",{value:S.name},i(S.title),9,lw)),64))],544),[[pt,p.value]])]),t("div",cw,[B(It),dt(" "+i(g(p.value)),1)])]),t("div",uw,[t("div",pw,[t("span",null,i(e(a)("\u78C1\u76D8\u9635\u5217\u6210\u5458\uFF1A")),1)]),e(w).loading?(r(),s("div",fw,[t("span",mw,i(e(a)("\u68C0\u6D4B\u4E2D...")),1)])):(r(),s("div",gw,[e(w).members.length>0?(r(!0),s(U,{key:0},tt(e(w).members,S=>(r(),s("label",null,[N(t("input",{type:"checkbox","onUpdate:modelValue":h[1]||(h[1]=Y=>f.value=Y),value:S.path},null,8,bw),[[Rt,f.value]]),dt(" \u3010"+i(S.model)+"\u3011"+i(S.name)+" "+i(S.path)+" ["+i(S.sizeStr)+"] ",1)]))),256)):(r(),s("span",vw,i(e(a)("\u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458")),1))])),t("div",hw,[B(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",_w,[t("div",{class:"close",onClick:c,disabled:v.value},i(e(a)("\u53D6\u6D88")),9,xw),t("div",{class:"next",onClick:k,disabled:v.value},i(e(a)("\u521B\u5EFA")),9,ww)])],64)):u.value=="loading"?(r(),s("div",kw,[B(y,{size:60,color:"#666"}),t("span",null,i(e(a)("\u6B63\u5728\u521B\u5EFA\u4E2D...")),1)])):u.value=="error"?(r(),s(U,{key:2},[t("div",yw,[B(D),t("span",null,i(_.value),1)]),t("div",Fw,[t("div",{class:"close",onClick:c},i(e(a)("\u5173\u95ED")),1),t("div",{class:"next",onClick:k,disabled:v.value},i(e(a)("\u91CD\u65B0\u521B\u5EFA")),9,Ew)])],64)):u.value=="success"?(r(),s(U,{key:3},[t("div",$w,[B(A),t("div",Cw,i(e(a)("\u521B\u5EFA\u6210\u529F")),1)]),t("div",Dw,[t("div",{class:"close",onClick:c},i(e(a)("\u5173\u95ED")),1)])],64)):C("",!0)])}}});var Yw=O(Bw,[["__scopeId","data-v-7cf2dd18"]]);const Aw={class:"actioner-container"},Sw={class:"actioner-container_body"},zw=["value"],Pw={class:"actioner-container_footer"},Tw=T({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=()=>{n.Close()},d=E("");return(()=>{j.Raid.Detail.POST({path:n.raid.path}).then(_=>{if(_.data){const{result:b,error:p}=_.data;p?d.value=p:d.value=(b==null?void 0:b.detail)||""}}).catch(_=>{d.value=_.message})})(),(_,b)=>(r(),s("div",Aw,[t("div",Sw,[t("textarea",{value:d.value},null,8,zw)]),t("div",Pw,[t("div",{class:"close",onClick:c},i(e(a)("\u5173\u95ED")),1)])]))}});var Iw=O(Tw,[["__scopeId","data-v-0ef06e27"]]);const Mw={class:"actioner-container"},Lw={class:"actioner-container_header"},Ow={class:"actioner-container_body"},Nw={class:"label-item"},Vw={class:"label-item_key"},Gw={class:"label-item_value"},jw={disabled:""},Uw={class:"label-item"},qw={class:"label-item_key"},Rw={key:0,class:"label-item_value"},Ww={class:"msg-warning"},Hw={key:1,class:"label-item_value"},Jw=["value"],Zw={key:1,class:"msg-warning"},Kw={class:"actioner-container_footer"},Qw=["disabled"],Xw=["disabled"],tk=T({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=()=>{n.Close()},d=()=>{n.success&&n.success()},u=()=>L(this,null,function*(){const g=p.value;if(g==""){$.Warning(a("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8"));return}b.value=!0;const v=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const w=yield j.Raid.Add.POST({path:n.raid.path,memberPath:g});if(w.data){const{error:m,success:F}=w.data;if(m)throw m;(F||0)==0&&($.Success(a("\u4FDD\u5B58\u6210\u529F")),d(),c())}}catch(w){$.Error(`${w}`)}finally{b.value=!1,v.Close()}}),_=vt({loading:!1,members:[]}),b=E(!1),p=E("");return(()=>L(this,null,function*(){_.loading=!0,b.value=!0;try{const g=yield j.Raid.CreateList.GET();if(g!=null&&g.data){const{success:v,error:w,result:m}=g.data;if(m&&(_.members=m.members||[]),w)throw w}}catch(g){console.log(g)}finally{b.value=!1,_.loading=!1}}))(),(g,v)=>(r(),s("div",Mw,[t("div",Lw,[t("span",null,"RAID - "+i(o.raid.name)+" "+i(e(a)("\u4FEE\u6539")),1)]),t("div",Ow,[t("div",Nw,[t("div",Vw,i(e(a)("\u8BBE\u5907")),1),t("div",Gw,[t("select",jw,[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",Uw,[t("div",qw,i(e(a)("\u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u88AB\u6DFB\u52A0\u5230RAID\u7684\u786C\u76D8\uFF09\uFF1A")),1),e(_).loading?(r(),s("div",Rw,[t("span",Ww,i(e(a)("\u68C0\u6D4B\u4E2D...")),1)])):(r(),s("div",Hw,[e(_).members.length>0?(r(!0),s(U,{key:0},tt(e(_).members,w=>(r(),s("label",null,[N(t("input",{type:"radio","onUpdate:modelValue":v[0]||(v[0]=m=>p.value=m),value:w.path},null,8,Jw),[[Bt,p.value]]),dt(" \u3010"+i(w.model)+"\u3011"+i(w.name)+" "+i(w.path)+" ["+i(w.sizeStr)+"] ",1)]))),256)):(r(),s("span",Zw,i(e(a)("\u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458")),1))]))])]),t("div",Kw,[t("div",{class:"close",onClick:c,disabled:b.value},i(e(a)("\u53D6\u6D88")),9,Qw),t("div",{class:"next",onClick:u,disabled:b.value},i(e(a)("\u4FDD\u5B58")),9,Xw)])]))}});var ek=O(tk,[["__scopeId","data-v-593445fb"]]);const ak={class:"actioner-container"},ok={class:"actioner-container_header"},nk={class:"actioner-container_body"},ik={class:"label-item"},rk={class:"label-item_key"},sk={class:"label-item_value"},dk={disabled:""},lk={class:"label-item"},ck={class:"label-item_key"},uk={class:"label-item_value"},pk=["value"],fk={class:"actioner-container_footer"},mk=["disabled"],gk=["disabled"],bk=T({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=()=>{n.Close()},d=()=>{n.success&&n.success()},u=()=>L(this,null,function*(){const p=b.value;if(p==""){$.Warning(a("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u786C\u76D8"));return}_.value=!0;const f=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const g=yield j.Raid.Remove.POST({path:n.raid.path,memberPath:p});if(g.data){const{error:v,success:w}=g.data;if(v)throw v;(w||0)==0&&($.Success(a("\u4FDD\u5B58\u6210\u529F")),d(),c())}}catch(g){$.Error(`${g}`)}finally{_.value=!1,f.Close()}}),_=E(!1),b=E("");return(p,f)=>(r(),s("div",ak,[t("div",ok,[t("span",null,"RAID - "+i(o.raid.name)+" "+i(e(a)("\u79FB\u9664")),1)]),t("div",nk,[t("div",ik,[t("div",rk,i(e(a)("\u8BBE\u5907")),1),t("div",sk,[t("select",dk,[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",lk,[t("div",ck,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",uk,[(r(!0),s(U,null,tt(o.raid.members,g=>(r(),s("label",null,[N(t("input",{type:"radio","onUpdate:modelValue":f[0]||(f[0]=v=>b.value=v),value:g},null,8,pk),[[Bt,b.value]]),dt(" "+i(g),1)]))),256))])])]),t("div",fk,[t("div",{class:"close",onClick:c,disabled:_.value},i(e(a)("\u53D6\u6D88")),9,mk),t("div",{class:"next",onClick:u,disabled:_.value},i(e(a)("\u4FDD\u5B58")),9,gk)])]))}});var vk=O(bk,[["__scopeId","data-v-77aa4121"]]);const hk={class:"actioner-container"},_k={class:"actioner-container_header"},xk={class:"actioner-container_body"},wk={class:"label-item"},kk={class:"label-item_key"},yk={class:"label-item_value"},Fk={disabled:""},Ek={class:"label-item"},$k={class:"label-item_key"},Ck={key:0,class:"label-item_value"},Dk={class:"msg-warning"},Bk={key:1,class:"label-item_value"},Yk=["value"],Ak={key:1,class:"msg-warning"},Sk={class:"actioner-container_footer"},zk=["disabled"],Pk=["disabled"],Tk=T({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=()=>{n.Close()},d=()=>{n.success&&n.success()},u=()=>L(this,null,function*(){const g=p.value;if(g==""){$.Warning(a("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8"));return}b.value=!0;const v=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const w=yield j.Raid.Recover.POST({path:n.raid.path,memberPath:g});if(w.data){const{error:m,success:F}=w.data;if(m)throw m;(F||0)==0&&($.Success(a("\u4FDD\u5B58\u6210\u529F")),d(),c())}}catch(w){$.Error(`${w}`)}finally{b.value=!1,v.Close()}}),_=vt({loading:!1,members:[]}),b=E(!1),p=E("");return(()=>L(this,null,function*(){_.loading=!0,b.value=!0;try{const g=yield j.Raid.CreateList.GET();if(g!=null&&g.data){const{success:v,error:w,result:m}=g.data;if(m&&(_.members=m.members||[]),w)throw w}}catch(g){console.log(g)}finally{b.value=!1,_.loading=!1}}))(),(g,v)=>(r(),s("div",hk,[t("div",_k,[t("span",null,"RAID - "+i(o.raid.name)+" "+i(e(a)("\u6062\u590D")),1)]),t("div",xk,[t("div",wk,[t("div",kk,i(e(a)("\u8BBE\u5907")),1),t("div",yk,[t("select",Fk,[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",$k,i(e(a)("\u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u7A7A\u95F2\u7684\u786C\u76D8\u6062\u590DRAID\u8BBE\u5907\uFF09\uFF1A")),1),e(_).loading?(r(),s("div",Ck,[t("span",Dk,i(e(a)("\u68C0\u6D4B\u4E2D...")),1)])):(r(),s("div",Bk,[e(_).members.length>0?(r(!0),s(U,{key:0},tt(e(_).members,w=>(r(),s("label",null,[N(t("input",{type:"radio","onUpdate:modelValue":v[0]||(v[0]=m=>p.value=m),value:w.path},null,8,Yk),[[Bt,p.value]]),dt(" \u3010"+i(w.model)+"\u3011"+i(w.name)+" "+i(w.path)+" ["+i(w.sizeStr)+"] ",1)]))),256)):(r(),s("span",Ak,i(e(a)("\u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458")),1))]))])]),t("div",Sk,[t("div",{class:"close",onClick:c,disabled:b.value},i(e(a)("\u53D6\u6D88")),9,zk),t("div",{class:"next",onClick:u,disabled:b.value},i(e(a)("\u4FDD\u5B58")),9,Pk)])]))}});var Ik=O(Tk,[["__scopeId","data-v-a924400c"]]);const Mk={class:"action-main"},Lk=T({props:{Close:{type:Function,required:!0},setup:{type:String,default:"create"},raid:{type:Object},success:{type:Function}},setup(o){return(n,a)=>(r(),J(wt,{type:2},{default:G(()=>[t("div",Mk,[o.setup=="create"?(r(),J(Yw,{key:0,Close:o.Close},null,8,["Close"])):o.setup=="info"&&o.raid!=null?(r(),J(Iw,{key:1,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):o.setup=="edit"&&o.raid!=null?(r(),J(ek,{key:2,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):o.setup=="remove"&&o.raid!=null?(r(),J(vk,{key:3,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):o.setup=="recover"&&o.raid!=null?(r(),J(Ik,{key:4,Close:o.Close,raid:o.raid,success:o.success},null,8,["Close","raid","success"])):C("",!0)])]),_:1}))}});var Ok=O(Lk,[["__scopeId","data-v-6ef94d02"]]);const he=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(Ok,bt(rt({},o),{Close:()=>{l()}}));a.use(ja),a.mount(n);const l=()=>{a.unmount(),n.remove()};return{Close:l}},io=o=>(ct("data-v-e68d5bbe"),o=o(),ut(),o),Nk={id:"page"},Vk={name:"content"},Gk={class:"cbi-map-descr"},jk={style:{color:"#f5365b","margin-top":"10px"}},Uk={style:{color:"#f5365b","margin-top":"10px"}},qk={class:"btns"},Rk=["disabled"],Wk={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},Hk={class:"table cbi-section-table"},Jk={style:{}},Zk={class:"tr cbi-section-table-titles anonymous"},Kk={class:"th cbi-section-table-cell","data-widget":"value"},Qk={class:"th cbi-section-table-cell","data-widget":"value"},Xk={class:"th cbi-section-table-cell","data-widget":"value"},ty={class:"th cbi-section-table-cell","data-widget":"value"},ey={class:"th cbi-section-table-cell","data-widget":"value"},ay={class:"th cbi-section-table-cell","data-widget":"value"},oy={class:"th cbi-section-table-cell","data-widget":"value"},ny={class:"th cbi-section-table-cell","data-widget":"value"},iy={class:"tr cbi-section-table-row"},ry={class:"td cbi-value-field"},sy={class:"td cbi-value-field"},dy=["title"],ly={class:"item-status"},cy={key:0,class:"item-status item-status-detail"},uy={class:"td cbi-value-field"},py={class:"td cbi-value-field"},fy={class:"td cbi-value-field"},my=io(()=>t("br",null,null,-1)),gy={class:"td cbi-value-field"},by=io(()=>t("br",null,null,-1)),vy={key:1,href:"/cgi-bin/luci/admin/quickstart/"},hy={class:"td cbi-section-table-cell nowrap cbi-section-actions"},_y=["title","disabled","onClick"],xy=["title","disabled","onClick"],wy=["title","onClick"],ky=["title","onClick"],yy=["title","onClick"],Fy=T({setup(o){const{$gettext:n,$ngettext:a}=H(),l=vt({disksList:[]}),c=()=>L(this,null,function*(){try{const k=yield j.Raid.List.GET();if(k!=null&&k.data){const{success:x,error:h,result:y}=k.data;if(y&&(l.disksList=y.disks||[]),h)throw h}}catch(k){console.log(k)}}),d=Mt.easyInterval(c,5e3);ke(()=>{d()});const u=k=>{switch(k.level){case"raid0":case"jbod":return!0}return k.status.indexOf("degraded")!=-1||k.status.indexOf("resyncing(")!=-1},_=k=>{let x=[];return k.childrens&&k.childrens.forEach(h=>{h.mountPoint&&x.push(`${h.name}(${h.mountPoint})`)}),x},b=()=>L(this,null,function*(){he({setup:"create",success:()=>{c()}})}),p=k=>{he({setup:"info",raid:k})},f=k=>L(this,null,function*(){if(k.childrens&&k.childrens.length>0&&k.childrens.filter(y=>y.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:k.name}))||!confirm(n("\u786E\u5B9A\u8981\u5220\u9664 %{name} \u5417?",{name:k.name})))return;const x=$.Loading(n("\u5220\u9664\u4E2D..."));try{const h=yield j.Raid.Delete.POST({path:k.path,members:k.members});if(h.data){const{success:y,error:D}=h.data;if(D)throw D;(y||0)==0&&($.Success(n("\u5220\u9664\u6210\u529F")),c())}}catch(h){$.Error(`${h}`)}finally{x.Close()}}),g=k=>{he({setup:"edit",raid:k,success:()=>{c()}})},v=k=>{he({setup:"remove",raid:k,success:()=>{c()}})},w=k=>{he({setup:"recover",raid:k,success:()=>{c()}})},m=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*(){m.value=!0;const k=$.Loading(n("\u626B\u63CF\u4E2D..."));try{const x=yield j.Raid.Autofix.GET();if(x.data){const{error:h,success:y}=x.data;if(h)throw h;(y||0)==0&&($.Success(n("\u6062\u590D\u5B8C\u6210")),c())}}catch(x){$.Error(`${x}`)}finally{k.Close(),m.value=!1}}),clearTitle:n("\u53D6\u6D88"),clear:()=>{}})};return(k,x)=>(r(),s("div",Nk,[t("h2",Vk,i(e(n)("RAID\u7BA1\u7406")),1),t("div",Gk,[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",jk," * "+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",Uk," * "+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",qk,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:x[0]||(x[0]=h=>b())},i(e(n)("\u521B\u5EFARAID")),1),t("button",{class:"btn cbi-button cbi-button-apply",onClick:x[1]||(x[1]=h=>F()),disabled:m.value},i(e(n)("\u626B\u63CF\u6062\u590DRAID")),9,Rk)]),t("div",null,[t("div",Wk,[t("table",Hk,[t("tbody",Jk,[t("tr",Zk,[t("th",Kk,i(e(n)("\u540D\u79F0")),1),t("th",Qk,i(e(n)("\u8BBE\u5907")),1),t("th",Xk,i(e(n)("\u72B6\u6001")),1),t("th",ty,i(e(n)("\u7EA7\u522B")),1),t("th",ey,i(e(n)("\u5BB9\u91CF")),1),t("th",ay,i(e(n)("\u6210\u5458")),1),t("th",oy,i(e(n)("\u6302\u8F7D\u4FE1\u606F")),1),t("th",ny,i(e(n)("\u64CD\u4F5C")),1)]),(r(!0),s(U,null,tt(e(l).disksList,h=>(r(),s("tr",iy,[t("td",ry,[t("b",null,i(h.name),1)]),t("td",sy,[t("b",null,i(h.path),1)]),t("td",{class:"td cbi-value-field",title:h.status+(h.rebuildStatus||"")},[t("b",ly,i(h.status),1),h.rebuildStatus?(r(),s("b",cy," \u2026 ")):C("",!0)],8,dy),t("td",uy,[t("b",null,i(h.level),1)]),t("td",py,[t("b",null,i(h.size),1)]),t("td",fy,[(r(!0),s(U,null,tt(h.members,y=>(r(),s("b",null,[dt(i(y)+" ",1),my]))),256))]),t("td",gy,[_(h).length>0?(r(!0),s(U,{key:0},tt(_(h),y=>(r(),s("b",null,[dt(i(y)+" ",1),by]))),256)):(r(),s("a",vy,i(e(n)("\u53BB\u6302\u8F7D")),1))]),t("td",hy,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u6269\u5145"),disabled:u(h),onClick:y=>g(h)},i(e(n)("\u6269\u5145")),9,_y),t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u79FB\u9664"),disabled:u(h),onClick:y=>v(h)},i(e(n)("\u79FB\u9664")),9,xy),t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u6062\u590D"),onClick:y=>w(h)},i(e(n)("\u6062\u590D")),9,wy),t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u8BE6\u60C5"),onClick:y=>p(h)},i(e(n)("\u8BE6\u60C5")),9,ky),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:y=>f(h)},i(e(n)("\u5220\u9664")),9,yy)])]))),256))])])])])]))}});var Ey=O(Fy,[["__scopeId","data-v-e68d5bbe"]]);const $y=o=>(ct("data-v-16dd0913"),o=o(),ut(),o),Cy={id:"page"},Dy=$y(()=>t("h2",{name:"content"},"S.M.A.R.T.",-1)),By={class:"cbi-map-descr"},Yy={class:"tabs"},Ay=["href","onClick"],Sy=T({setup(o){const{$gettext:n,$ngettext:a}=H(),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")}],c=E(!1),d=vt({global:{enable:!1,powermode:"never",tmpDiff:0,tmpMax:0},devices:[],tasks:[]}),u=p=>{const{global:f,devices:g,tasks:v}=p;f&&(d.global.enable=f.enable||!1,d.global.powermode=f.powermode||"never"),d.devices=g||[],d.tasks=v||[]};(()=>L(this,null,function*(){try{const p=yield j.Smart.Config.GET();if(p.data){const{result:f}=p.data;f&&u(f)}}catch(p){}finally{c.value=!0}}))();const b=p=>L(this,null,function*(){const f=$.Loading(n("\u4FDD\u5B58\u4E2D..."));try{const g=yield j.Smart.Config.POST(p);if(g.data){console.log(g.data);const{success:v,error:w,result:m}=g.data;if(w)throw w;(v||0)==0&&($.Success(n("\u4FDD\u5B58\u6210\u529F")),m&&u(m))}}catch(g){$.Error(`${g}`)}finally{f.Close()}});return(p,f)=>{const g=xt("router-link"),v=xt("router-view");return r(),s("div",Cy,[Dy,t("div",By,[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",Yy,[(r(),s(U,null,tt(l,w=>B(g,{to:w.to,custom:"",key:w.to},{default:G(({route:m,href:F,navigate:k,isActive:x,isExactActive:h})=>[t("li",{class:lt({"active cbi-tab":x&&h})},[t("a",{href:F,onClick:k},i(w.name),9,Ay)],2)]),_:2},1032,["to"])),64))]),c.value?(r(),J(v,{key:0,name:"default"},{default:G(({Component:w,route:m})=>[(r(),J(Eo,null,{default:G(()=>[(r(),J(oa(w),{key:m.path,config:e(d),saveData:b},null,8,["config"]))]),_:2},1024))]),_:1})):C("",!0)])}}});var zy=O(Sy,[["__scopeId","data-v-16dd0913"]]);const Py={class:"action-main"},Ty=T({setup(o){return(n,a)=>(r(),J(wt,{type:2},{default:G(()=>[t("div",Py,[Yt(n.$slots,"default",{},void 0,!0)])]),_:3}))}});var Ge=O(Ty,[["__scopeId","data-v-742230ae"]]);const Iy={class:"actioner-container"},My={class:"actioner-container_header"},Ly={class:"actioner-container_body"},Oy={class:"cbi-value"},Ny={class:"cbi-value-title"},Vy={class:"cbi-value-field"},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:"cbi-value"},Qy={class:"cbi-value-title"},Xy={class:"cbi-value-field"},tF={class:"cbi-checkbox"},eF={value:-1},aF={value:0},oF=["value"],nF={class:"cbi-value-description"},iF={class:"actioner-container_footer"},rF=["disabled"],sF=["disabled"],dF=T({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0},device:{type:Object},next:{type:Function,required:!0}},setup(o){var b,p,f;const n=o,{$gettext:a,$ngettext:l}=H();console.log(n.device);const c=E(!1),d=vt({tmpDiff:((b=n.device)==null?void 0:b.tmpDiff)||0,tmpMax:((p=n.device)==null?void 0:p.tmpMax)||0,devicePath:((f=n.device)==null?void 0:f.devicePath)||""}),u=()=>{c.value=!0,n.close()},_=()=>L(this,null,function*(){c.value=!0;try{yield n.next({tmpDiff:d.tmpDiff,tmpMax:d.tmpMax,devicePath:d.devicePath}),c.value=!1,u()}catch(g){}});return(g,v)=>(r(),J(Ge,null,{default:G(()=>[t("div",Iy,[t("div",My,[t("span",null," S.M.A.R.T. \xBB "+i(e(a)("\u8BBE\u5907"))+" \xBB "+i(o.disk.path),1)]),t("div",Ly,[t("div",Oy,[t("label",Ny,i(e(a)("\u78C1\u76D8")),1),t("div",Vy,[t("div",Gy,i(o.disk.model)+" [ "+i(o.disk.path)+"\uFF0C"+i(o.disk.sizeStr)+" ] ",1)])]),t("div",jy,[t("label",Uy,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09")),1),t("div",qy,[t("div",Ry,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":v[0]||(v[0]=w=>e(d).tmpDiff=w)},[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,w=>t("option",{value:w},i(w)+"\xB0C",9,Jy)),64))],512),[[pt,e(d).tmpDiff,void 0,{number:!0}]])]),t("div",Zy,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",Ky,[t("label",Qy,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09")),1),t("div",Xy,[t("div",tF,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":v[1]||(v[1]=w=>e(d).tmpMax=w)},[t("option",eF,i(e(a)("\u4F7F\u7528\u5168\u5C40\u914D\u7F6E")),1),t("option",aF,i(e(a)("\u7981\u7528")),1),(r(),s(U,null,tt(20,w=>t("option",{value:w*5},i(w*5)+"\xB0C",9,oF)),64))],512),[[pt,e(d).tmpMax,void 0,{number:!0}]])]),t("div",nF,i(e(a)("\u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A.")),1)])])]),t("div",iF,[t("button",{class:"close",onClick:u,disabled:c.value},i(e(a)("\u53D6\u6D88")),9,rF),t("button",{class:"next",onClick:_,disabled:c.value},i(e(a)("\u4FDD\u5B58")),9,sF)])])]),_:1}))}}),lF={class:"actioner-container"},cF={class:"actioner-container_header"},uF={class:"actioner-container_body"},pF={class:"cbi-value"},fF={class:"cbi-value-title"},mF={class:"cbi-value-field"},gF={class:"cbi-checkbox"},bF={value:""},vF=["value"],hF={class:"cbi-value"},_F={class:"cbi-value-title"},xF={class:"cbi-value-field"},wF={class:"cbi-checkbox"},kF={value:"short"},yF={value:"long"},FF={value:"conveyance"},EF={value:"offline"},$F={class:"cbi-value"},CF={class:"cbi-value-title"},DF={class:"cbi-value-field"},BF={class:"cbi-checkbox"},YF=t("option",{value:"*"},"*",-1),AF=["value"],SF={class:"cbi-value-description"},zF={class:"cbi-value"},PF={class:"cbi-value-title"},TF={class:"cbi-value-field"},IF={class:"cbi-checkbox"},MF=t("option",{value:"*"},"*",-1),LF=["value"],OF={class:"cbi-value-description"},NF={class:"cbi-value"},VF={class:"cbi-value-title"},GF={class:"cbi-value-field"},jF={class:"cbi-checkbox"},UF=t("option",{value:"*"},"*",-1),qF=["value"],RF={class:"cbi-value-description"},WF={class:"actioner-container_footer"},HF=["disabled"],JF=["disabled"],ZF=T({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}=H(),c=E(!1),d=vt({type:"short",devicePath:"",month:"*",dayPerMonth:"*",hour:"*"}),u=E([]);(()=>L(this,null,function*(){try{const f=yield j.Smart.List.GET();if(f.data){const{result:g,error:v}=f.data;g&&g.disks&&(u.value=g.disks)}}catch(f){}}))();const b=()=>{c.value=!0,n.close()},p=()=>L(this,null,function*(){if(d.devicePath==""){$.Warning(a("\u8BF7\u9009\u62E9\u78C1\u76D8"));return}c.value=!0;try{yield n.next(d),b()}catch(f){}finally{c.value=!1}});return(f,g)=>(r(),J(Ge,null,{default:G(()=>[t("div",lF,[t("div",cF,[t("span",null,i(e(a)("\u521B\u5EFA\u8BA1\u5212\u4EFB\u52A1")),1)]),t("div",uF,[t("div",pF,[t("label",fF,i(e(a)("\u78C1\u76D8")),1),t("div",mF,[t("div",gF,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":g[0]||(g[0]=v=>e(d).devicePath=v)},[t("option",bF,i(e(a)("\u9009\u62E9\u78C1\u76D8")),1),(r(!0),s(U,null,tt(u.value,v=>(r(),s("option",{value:v.path},i(v.model)+" [ "+i(v.path)+"\uFF0C"+i(v.sizeStr)+" ] ",9,vF))),256))],512),[[pt,e(d).devicePath,void 0,{trim:!0}]])])])]),t("div",hF,[t("label",_F,i(e(a)("\u7C7B\u578B")),1),t("div",xF,[t("div",wF,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":g[1]||(g[1]=v=>e(d).type=v)},[t("option",kF,i(e(a)("\u77ED\u6682\u81EA\u68C0")),1),t("option",yF,i(e(a)("\u957F\u65F6\u81EA\u68C0")),1),t("option",FF,i(e(a)("\u4F20\u8F93\u65F6\u81EA\u68C0")),1),t("option",EF,i(e(a)("\u79BB\u7EBF\u65F6\u81EA\u68C0")),1)],512),[[pt,e(d).type,void 0,{trim:!0}]])])])]),t("div",$F,[t("label",CF,i(e(a)("\u5C0F\u65F6")),1),t("div",DF,[t("div",BF,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":g[2]||(g[2]=v=>e(d).hour=v)},[YF,(r(),s(U,null,tt(24,(v,w)=>t("option",{value:`${w}`},i(w),9,AF)),64))],512),[[pt,e(d).hour,void 0,{trim:!0}]])]),t("div",SF,i(e(a)("* \u8868\u793A\u6BCF\u5C0F\u65F6")),1)])]),t("div",zF,[t("label",PF,i(e(a)("\u5929")),1),t("div",TF,[t("div",IF,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":g[3]||(g[3]=v=>e(d).dayPerMonth=v)},[MF,(r(),s(U,null,tt(31,v=>t("option",{value:`${v}`},i(v),9,LF)),64))],512),[[pt,e(d).dayPerMonth,void 0,{trim:!0}]])]),t("div",OF,i(e(a)("* \u8868\u793A\u6BCF\u5929")),1)])]),t("div",NF,[t("label",VF,i(e(a)("\u6708")),1),t("div",GF,[t("div",jF,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":g[4]||(g[4]=v=>e(d).month=v)},[UF,(r(),s(U,null,tt(12,(v,w)=>t("option",{value:`${v}`},i(v),9,qF)),64))],512),[[pt,e(d).month,void 0,{trim:!0}]])]),t("div",RF,i(e(a)("* \u8868\u793A\u6BCF\u6708")),1)])])]),t("div",WF,[t("button",{class:"close",onClick:b,disabled:c.value},i(e(a)("\u53D6\u6D88")),9,HF),t("button",{class:"next",onClick:p,disabled:c.value},i(e(a)("\u4FDD\u5B58")),9,JF)])])]),_:1}))}}),KF={class:"actioner-container"},QF={class:"actioner-container_header"},XF={class:"actioner-container_body"},tE=["value"],eE={class:"actioner-container_footer"},aE=["disabled"],oE=["disabled"],nE=T({props:{close:{type:Function,required:!0},task:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(!1),d=E(""),u=E(""),_=E(""),b=()=>L(this,null,function*(){d.value+=".";try{const v=yield j.Smart.Test.Result.POST({type:"selftest",devicePath:n.task.devicePath||""});if(v.data){const{result:w,error:m}=v.data;w&&w.result&&(_.value=w.result),m&&(_.value=m)}}catch(v){v&&(_.value=v)}}),p=Mt.easyInterval(b,5e3);ke(()=>{p()});const f=()=>{c.value=!0,p(),n.close()},g=()=>L(this,null,function*(){c.value=!0;try{const v=yield j.Smart.Test.POST({type:n.task.type||"short",devicePath:n.task.devicePath||""});if(v.data){const{success:w,error:m,result:F}=v.data;m&&(u.value=m),F&&F.result&&(u.value=F.result)}}catch(v){u.value=v}finally{}});return(v,w)=>(r(),J(Ge,null,{default:G(()=>[t("div",KF,[t("div",QF,[t("span",null,i(e(a)("\u8FD0\u884C\u8C03\u8BD5")),1)]),t("div",XF,[t("textarea",{value:u.value+`
|
|
`+_.value+`
|
|
`+d.value,disabled:""},null,8,tE)]),t("div",eE,[t("div",{class:"close",onClick:f,disabled:c.value},i(e(a)("\u5173\u95ED")),9,aE),c.value?C("",!0):(r(),s("div",{key:0,class:"next",onClick:g,disabled:c.value},i(e(a)("\u8FD0\u884C")),9,oE))])])]),_:1}))}});var iE=O(nE,[["__scopeId","data-v-70c3aae0"]]);const rE={class:"actioner-container"},sE={class:"actioner-container_header"},dE={class:"tabs"},lE={class:"actioner-container_body"},cE={key:0,class:"table"},uE={class:"tr"},pE={class:"td left"},fE={class:"td left"},mE={class:"tr"},gE={class:"td left"},bE={class:"td left"},vE={class:"tr"},hE={class:"td left"},_E={class:"td left"},xE=["value"],wE=["value"],kE=["value"],yE={class:"actioner-container_footer"},FE=["disabled"],EE=T({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=E(!1),d=E("info"),u=v=>{switch(d.value=v,v){case"info":break;case"attribute":f();break;case"log":p();break;case"extend":g();break}},_=()=>{c.value=!0,n.close()},b=vt({log:"",attribute:"",extend:""}),p=()=>L(this,null,function*(){try{const v=yield j.Smart.Test.Result.POST({type:"selftest",devicePath:n.disk.path||""});if(v.data){const{result:w,error:m}=v.data;w&&w.result&&(b.log=w.result),m&&(b.log=m)}}catch(v){b.log=v}}),f=()=>L(this,null,function*(){try{const v=yield j.Smart.Attribute.Result.POST({devicePath:n.disk.path||""});if(v.data){const{result:w,error:m}=v.data;w&&w.result&&(b.attribute=w.result),m&&(b.attribute=m)}}catch(v){b.attribute=v}}),g=()=>L(this,null,function*(){try{const v=yield j.Smart.Extend.Result.POST({devicePath:n.disk.path||""});if(v.data){const{result:w,error:m}=v.data;w&&w.result&&(b.extend=w.result),m&&(b.extend=m)}}catch(v){b.extend=v}});return(v,w)=>(r(),J(Ge,null,{default:G(()=>[t("div",rE,[t("div",sE,[t("ul",dE,[t("li",{class:lt({"active cbi-tab":d.value=="info"}),onClick:w[0]||(w[0]=m=>u("info"))},[t("a",null,i(e(a)("\u8BBE\u5907\u4FE1\u606F")),1)],2),t("li",{class:lt({"active cbi-tab":d.value=="attribute"}),onClick:w[1]||(w[1]=m=>u("attribute"))},[t("a",null,i(e(a)("\u5C5E\u6027")),1)],2),t("li",{class:lt({"active cbi-tab":d.value=="log"}),onClick:w[2]||(w[2]=m=>u("log"))},[t("a",null,i(e(a)("\u81EA\u68C0\u65E5\u5FD7")),1)],2),t("li",{class:lt({"active cbi-tab":d.value=="extend"}),onClick:w[3]||(w[3]=m=>u("extend"))},[t("a",null,i(e(a)("\u6269\u5C55\u4FE1\u606F")),1)],2)])]),t("div",lE,[d.value=="info"?(r(),s("table",cE,[t("tr",uE,[t("td",pE,i(e(a)("\u8BBE\u5907")),1),t("td",fE,i(o.disk.path),1)]),t("tr",mE,[t("td",gE,i(e(a)("\u578B\u53F7")),1),t("td",bE,i(o.disk.model),1)]),t("tr",vE,[t("td",hE,i(e(a)("\u5E8F\u53F7")),1),t("td",_E,i(o.disk.serial),1)])])):d.value=="attribute"?(r(),s("textarea",{key:1,disabled:"",value:e(b).attribute},null,8,xE)):d.value=="log"?(r(),s("textarea",{key:2,disabled:"",value:e(b).log},null,8,wE)):d.value=="extend"?(r(),s("textarea",{key:3,disabled:"",value:e(b).extend},null,8,kE)):C("",!0)]),t("div",yE,[t("div",{class:"close",onClick:_,disabled:c.value},i(e(a)("\u5173\u95ED")),9,FE)])])]),_:1}))}});var $E=O(EE,[["__scopeId","data-v-313197ee"]]);const CE=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=B(dF,bt(rt({},o),{close:()=>{l()}})),l=()=>{n.remove()};Te(a,n)},DE=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=B(ZF,bt(rt({},o),{close:()=>{l()}})),l=()=>{n.remove()};Te(a,n)},BE=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=B(iE,bt(rt({},o),{close:()=>{l()}})),l=()=>{n.remove()};Te(a,n)},YE=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=B($E,bt(rt({},o),{close:()=>{l()}})),l=()=>{n.remove()};Te(a,n)},AE={class:"cbi-section"},SE={class:"cbi-value"},zE={class:"cbi-value-title"},PE={class:"cbi-value-field"},TE={class:"cbi-checkbox"},IE=["value"],ME={class:"cbi-value"},LE={class:"cbi-value-title"},OE={class:"cbi-value-field"},NE={class:"cbi-checkbox"},VE={value:"never"},GE={value:"sleep"},jE={value:"standby"},UE={value:"idle"},qE={class:"cbi-value-description"},RE=t("br",null,null,-1),WE=t("br",null,null,-1),HE=t("br",null,null,-1),JE=t("br",null,null,-1),ZE={class:"cbi-value"},KE={class:"cbi-value-title"},QE={class:"cbi-value-field"},XE={class:"cbi-checkbox"},t$={value:0},e$=["value"],a$={class:"cbi-value-description"},o$={class:"cbi-value"},n$={class:"cbi-value-title"},i$={class:"cbi-value-field"},r$={class:"cbi-checkbox"},s$={value:0},d$=["value"],l$={class:"cbi-value-description"},c$={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},u$={class:"table cbi-section-table"},p$={class:"tr cbi-section-table-titles anonymous"},f$={class:"th cbi-section-table-cell","data-widget":"value"},m$={class:"th cbi-section-table-cell","data-widget":"value"},g$={class:"th cbi-section-table-cell","data-widget":"value"},b$={class:"th cbi-section-table-cell","data-widget":"value"},v$={class:"th cbi-section-table-cell","data-widget":"value"},h$={class:"th cbi-section-table-cell","data-widget":"value"},_$={class:"th cbi-section-table-cell","data-widget":"value"},x$={class:"th cbi-section-table-cell","data-widget":"value"},w$={class:"tr cbi-section-table-row"},k$={class:"td cbi-value-field"},y$={class:"td cbi-value-field"},F$={class:"td cbi-value-field"},E$={class:"td cbi-value-field"},$$={class:"td cbi-value-field"},C$={class:"td cbi-value-field"},D$={class:"td cbi-value-field"},B$={class:"td cbi-value-field"},Y$=["title","onClick"],A$=["title","onClick"],S$={class:"cbi-page-actions control-group"},z$=["value"],P$=T({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=vt(n.config),d=()=>{c.global.tmpDiff=n.config.global.tmpDiff||0,c.global.tmpMax=n.config.global.tmpMax||0,c.global.enable=n.config.global.enable||!1,c.global.powermode=n.config.global.powermode||"never",c.devices=n.config.devices||[],c.tasks=n.config.tasks||[]},u=E([]),_=()=>L(this,null,function*(){try{const v=yield j.Smart.List.GET();if(v.data){const{result:w,error:m}=v.data;w&&w.disks&&(u.value=w.disks||[])}}catch(v){}}),b=Mt.easyInterval(_,5e3);ke(()=>{b()});const p=()=>L(this,null,function*(){yield n.saveData({global:c.global,devices:n.config.devices,tasks:n.config.tasks}),d()}),f=v=>{YE({disk:v})},g=(v,w)=>L(this,null,function*(){let m=null,F=-1;if(c.devices){for(let k=0;k<c.devices.length;k++)if(c.devices[k].devicePath==v.path){m=c.devices[k],F=k;break}}CE({disk:v,device:m,next:k=>L(this,null,function*(){k.tmpDiff==-1&&(k.tmpDiff=c.global.tmpDiff),k.tmpMax==-1&&(k.tmpMax=c.global.tmpMax),k.devicePath==""&&(k.devicePath=v.path);let x=[...c.devices];F>=0&&(x[F]=k);const h=new Map;x.forEach(y=>{y.devicePath!=null&&h.set(y.devicePath,null)});for(let y=0;y<u.value.length;y++){const D=u.value[y];D.path!=null&&!h.has(D.path)&&x.push({devicePath:D.path,tmpDiff:c.global.tmpDiff,tmpMax:c.global.tmpMax})}yield n.saveData({tasks:n.config.tasks,global:n.config.global,devices:x}),d()})})});return(v,w)=>(r(),s(U,null,[t("fieldset",AE,[t("div",SE,[t("label",zE,i(e(a)("\u542F\u7528")),1),t("div",PE,[t("div",TE,[N(t("input",{type:"checkbox","onUpdate:modelValue":w[0]||(w[0]=m=>e(c).global.enable=m),value:!e(c).global.enable},null,8,IE),[[Rt,e(c).global.enable]])])])]),t("div",ME,[t("label",LE,i(e(a)("\u7535\u6E90\u6A21\u5F0F")),1),t("div",OE,[t("div",NE,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":w[1]||(w[1]=m=>e(c).global.powermode=m)},[t("option",VE,i(e(a)("\u603B\u662F")),1),t("option",GE,i(e(a)("\u7761\u7720")),1),t("option",jE,i(e(a)("\u5F85\u673A")),1),t("option",UE,i(e(a)("\u95F2\u7F6E")),1)],512),[[pt,e(c).global.powermode,void 0,{trim:!0}]])]),t("div",qE,[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),RE,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),WE,t("span",null,"* "+i(e(a)("\u7761\u7720-\u5904\u4E8E\u7761\u7720\u6A21\u5F0F\u4E0B\u4E0D\u68C0\u67E5\u8BBE\u5907\u3002")),1),HE,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),JE,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",ZE,[t("label",KE,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09")),1),t("div",QE,[t("div",XE,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":w[2]||(w[2]=m=>e(c).global.tmpDiff=m)},[t("option",t$,i(e(a)("\u7981\u7528")),1),(r(),s(U,null,tt(15,m=>t("option",{value:m},i(m)+"\xB0C",9,e$)),64))],512),[[pt,e(c).global.tmpDiff,void 0,{number:!0}]])]),t("div",a$,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",o$,[t("label",n$,i(e(a)("\u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09")),1),t("div",i$,[t("div",r$,[N(t("select",{class:"cbi-input-select","onUpdate:modelValue":w[3]||(w[3]=m=>e(c).global.tmpMax=m)},[t("option",s$,i(e(a)("\u7981\u7528")),1),(r(),s(U,null,tt(20,m=>t("option",{value:m*5},i(m*5)+"\xB0C",9,d$)),64))],512),[[pt,e(c).global.tmpMax,void 0,{number:!0}]])]),t("div",l$,i(e(a)("\u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A.")),1)])])]),t("div",c$,[t("table",u$,[t("thead",null,[t("tr",p$,[t("th",f$,i(e(a)("\u8BBE\u5907")),1),t("th",m$,i(e(a)("\u578B\u53F7")),1),t("th",g$,i(e(a)("\u5E8F\u53F7")),1),t("th",b$,i(e(a)("\u5BB9\u91CF")),1),t("th",v$,i(e(a)("\u6E29\u5EA6")),1),t("th",h$,i(e(a)("\u72B6\u6001")),1),t("th",_$,i(e(a)("\u5065\u5EB7")),1),t("th",x$,i(e(a)("\u64CD\u4F5C")),1)])]),t("tbody",null,[(r(!0),s(U,null,tt(u.value,(m,F)=>(r(),s("tr",w$,[t("td",k$,[t("b",null,i(m.path),1)]),t("td",y$,[t("b",null,i(m.model),1)]),t("td",F$,[t("b",null,i(m.serial),1)]),t("td",E$,[t("b",null,i(m.sizeStr),1)]),t("td",$$,[t("b",null,i(m.temp),1)]),t("td",C$,[t("b",null,i(m.status),1)]),t("td",D$,[t("b",null,i(m.health),1)]),t("td",B$,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(a)("\u7F16\u8F91"),onClick:k=>g(m)},i(e(a)("\u7F16\u8F91")),9,Y$),t("button",{class:"btn cbi-button cbi-button-apply",title:e(a)("\u8BE6\u60C5"),onClick:k=>f(m)},i(e(a)("\u8BE6\u60C5")),9,A$)])]))),256))])])]),t("span",S$,[t("input",{class:"btn cbi-button cbi-button-apply",type:"button",value:e(a)("\u4FDD\u5B58\u5E76\u5E94\u7528"),onClick:p},null,8,z$)])],64))}}),T$={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},I$={class:"table cbi-section-table"},M$={class:"tr cbi-section-table-titles anonymous"},L$={class:"th cbi-section-table-cell","data-widget":"value"},O$={class:"th cbi-section-table-cell","data-widget":"value"},N$={class:"th cbi-section-table-cell","data-widget":"value"},V$={class:"th cbi-section-table-cell","data-widget":"value"},G$={class:"tr cbi-section-table-row"},j$={class:"td cbi-value-field"},U$={class:"td cbi-value-field"},q$={class:"td cbi-value-field"},R$={class:"td cbi-value-field"},W$=["title","onClick"],H$=["title","onClick"],J$=T({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=vt(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")}},u=()=>{DE({config:n.config,disks:[],next:p=>L(this,null,function*(){yield n.saveData({tasks:[...c.tasks,p],global:n.config.global,devices:n.config.devices}),c.tasks=n.config.tasks||[]})})},_=p=>L(this,null,function*(){const f=[...c.tasks];f.splice(p,1),yield n.saveData({tasks:f,global:n.config.global,devices:n.config.devices}),c.tasks=n.config.tasks||[]}),b=p=>{BE({task:p})};return(p,f)=>(r(),s(U,null,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:f[0]||(f[0]=g=>u())},i(e(a)("\u65B0\u5EFA")),1),t("div",T$,[t("table",I$,[t("thead",null,[t("tr",M$,[t("th",L$,i(e(a)("\u8BBE\u5907")),1),t("th",O$,i(e(a)("\u7C7B\u578B")),1),t("th",N$,i(e(a)("\u8C03\u5EA6")),1),t("th",V$,i(e(a)("\u529F\u80FD")),1)])]),t("tbody",null,[(r(!0),s(U,null,tt(e(c).tasks,(g,v)=>(r(),s("tr",G$,[t("td",j$,[t("b",null,i(g.devicePath),1)]),t("td",U$,[t("b",null,i(d(g.type)),1)]),t("td",q$,[t("b",null,i(g.month)+"/"+i(g.dayPerMonth)+"/"+i(g.hour),1)]),t("td",R$,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(a)("\u8C03\u8BD5"),onClick:w=>b(g)},i(e(a)("\u9884\u89C8")),9,W$),t("button",{class:"cbi-button cbi-button-remove",title:e(a)("\u5220\u9664"),onClick:w=>_(v)},i(e(a)("\u5220\u9664")),9,H$)])]))),256))])])])],64))}}),Z$={class:"cbi-section"},K$=["value"],Q$=T({setup(o){return L(this,null,function*(){let n,a;const l=E(""),c=()=>L(this,null,function*(){try{const d=yield j.Smart.Log.GET();if(d.data){const{result:u,error:_}=d.data;u&&u.result&&(l.value=u.result),_&&(l.value=_)}}catch(d){l.value=d}});return[n,a]=$o(()=>c()),yield n,a(),(d,u)=>(r(),s("fieldset",Z$,[t("textarea",{value:l.value,disabled:""},null,8,K$)]))})}});var X$=O(Q$,[["__scopeId","data-v-76197cba"]]);const ro=o=>(ct("data-v-02f10ac5"),o=o(),ut(),o),tC=ro(()=>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)),eC={class:"app-container_status-label_text"},aC={class:"text_status"},oC={class:"text_info"},nC=ro(()=>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)),iC={class:"app-container_status-label_text"},rC={class:"text_info"},sC=T({props:{item:{type:Object,required:!0},transform:{type:Number,default:0}},setup(o){const n=o,{$gettext:a,$ngettext:l}=H(),c=ra(),d=E(null),u=b=>{const p=b.target,{left:f,top:g}=p.getBoundingClientRect();c.portitemStyle.show=!0,c.portitemStyle.left=f,c.portitemStyle.top=g,c.portitemStyle.portitem=n.item},_=b=>{c.portitemStyle.show=!1};return(b,p)=>(r(),s("div",{class:"app-container_status-label_bg",style:ht(`transform: translateX(${o.transform}px);`),ref_key:"el",ref:d,onMouseenter:u,onMouseleave:_},[o.item.linkState=="DOWN"?(r(),s(U,{key:0},[tC,t("div",eC,[t("div",aC,i(e(a)("\u5DF2\u65AD\u5F00")),1),t("div",oC,i(o.item.name)+" "+i(o.item.interfaceNames?`(${o.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64)):(r(),s(U,{key:1},[nC,t("div",iC,[t("div",null,i(o.item.linkSpeed),1),t("div",rC,i(o.item.name)+" "+i(o.item.interfaceNames?`(${o.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64))],36))}});var dC=O(sC,[["__scopeId","data-v-02f10ac5"]]);const lC={},cC={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"},uC=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),pC=[uC];function fC(o,n){return r(),s("svg",cC,pC)}var Aa=O(lC,[["render",fC]]);const mC=["onSubmit"],gC={class:"actioner-dns_header"},bC={key:0},vC={key:1},hC={class:"actioner-dns_body"},_C={class:"label-item"},xC={class:"label-item_key"},wC={class:"label-item_value"},kC={class:"label-item"},yC={class:"label-item_key"},FC={class:"label-item_value"},EC={value:"dhcp"},$C={key:0,value:"pppoe"},CC={value:"static"},DC={class:"actioner-dns_footer"},BC=["disabled"],YC=T({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}=H(),c=E(!1),d=E(n.inface),u=()=>L(this,null,function*(){$.Loading(a("\u914D\u7F6E\u4E2D...")).Close(),n.next(d.value),_()}),_=()=>{n.Close&&n.Close()};return(b,p)=>(r(),J(wt,{Close:o.Close,type:1},{default:G(()=>[t("form",{class:"actioner-dns",onSubmit:mt(u,["prevent"])},[t("div",gC,[o.name=="wan"?(r(),s("span",bC,i(o.e=="edit"?e(a)("\u7F16\u8F91WAN"):e(a)("\u6DFB\u52A0WAN")),1)):(r(),s("span",vC,i(o.e=="edit"?e(a)("\u7F16\u8F91LAN"):e(a)("\u6DFB\u52A0LAN")),1))]),t("div",hC,[t("div",_C,[t("div",xC,[t("span",null,i(e(a)("\u540D\u79F0")),1)]),t("div",wC,[t("span",null,i(d.value.name.toLocaleUpperCase()),1)])]),t("div",kC,[t("div",yC,[t("span",null,i(e(a)("\u534F\u8BAE\uFF08\u7F51\u7EDC\u83B7\u53D6\u65B9\u5F0F\uFF09")),1)]),t("div",FC,[N(t("select",{"onUpdate:modelValue":p[0]||(p[0]=f=>d.value.proto=f)},[t("option",EC,i(e(a)("DHCP\u5BA2\u6237\u7AEF")),1),o.name=="wan"?(r(),s("option",$C,"PPPoE")):C("",!0),t("option",CC,i(e(a)("\u9759\u6001\u5730\u5740")),1)],512),[[pt,d.value.proto]])])])]),t("div",DC,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:c.value},i(e(a)("\u4FDD\u5B58")),9,BC),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},i(e(a)("\u53D6\u6D88")),1)])],40,mC)]),_:1},8,["Close"]))}});var AC=O(YC,[["__scopeId","data-v-c88486ac"]]);const Sa=o=>{const n=document.createElement("div");document.body.appendChild(n);const a=_t(AC,bt(rt({},o),{Close:()=>{l()}}));a.mount(n);const l=()=>{a.unmount(),n.remove()}},Ut=o=>(ct("data-v-3dabb970"),o=o(),ut(),o),SC={id:"page"},zC={name:"content"},PC={class:"container"},TC={class:"table-wrapper"},IC={class:"table-header"},MC={class:"interface-device-flex"},LC=Ut(()=>t("div",{class:"header-cell spacer-col"},null,-1)),OC=Ut(()=>t("div",{class:"header-cell"},null,-1)),NC=Ut(()=>t("div",{class:"header-cell action-col"},null,-1)),VC={class:"table-body"},GC=["name","value","onUpdate:modelValue","onInput"],jC=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),UC={class:"table-cell name-col"},qC={class:"table-cell action-col"},RC=["title","onClick"],WC=["onClick"],HC=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),JC=Ut(()=>t("div",{class:"table-cell name-col"},null,-1)),ZC={class:"table-cell action-col"},KC=["name","value","onUpdate:modelValue","onInput"],QC=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),XC={class:"table-cell name-col"},tD={class:"table-cell action-col"},eD=["title","onClick"],aD=["onClick"],oD=Ut(()=>t("div",{class:"table-cell spacer-col"},null,-1)),nD=Ut(()=>t("div",{class:"table-cell name-col"},null,-1)),iD={class:"table-cell action-col"},rD={class:"cbi-page-actions control-group"},sD=["value","disabled"],dD=T({setup(o){const{$gettext:n,$ngettext:a}=H(),l=vt({devices:[],interfaces:[]}),c=E(!1),d=vt({lan:[],wan:[]});(()=>{j.Network.GetInterfaceConfig.GET().then(w=>{if(w.data){const{result:m}=w.data;if(m){l.devices=m.devices||[],l.interfaces=m.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 _=(w,m)=>{w=="wan"?d.wan.splice(m,1):w=="lan"&&d.lan.splice(m,1)},b=(w,m)=>{if(m==null){let F=w=="wan"?d.wan.length:d.lan.length;F==6&&w=="wan"&&F++,Sa({e:"add",name:w,inface:{name:w+`${F}`,proto:"dhcp",ipv4Addr:"",ipv6Addr:"",portName:"",deviceNames:[],ports:[],firewallType:w},next:k=>{w=="wan"?d.wan.push(k):d.lan.push(k),$.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 Sa({e:"edit",name:w,inface:w=="wan"?d.wan[m]:d.lan[m],next:F=>{w=="wan"?d.wan[m]=F:d.lan[m]=F}})},p=(w,m)=>w?w.indexOf(m):-1,f=(w,m)=>{const k=w.target.value;for(let h=0;h<d.wan.length;h++){const y=p(d.wan[h].deviceNames,k);y!=-1&&d.wan[h].deviceNames.splice(y,1)}for(let h=0;h<d.lan.length;h++)if(h!=m){const y=p(d.lan[h].deviceNames,k);y!=-1&&d.lan[h].deviceNames.splice(y,1)}const x=p(d.lan[m].deviceNames,k);x!=-1?d.lan[m].deviceNames.splice(x,1):(d.lan[m].deviceNames===null&&(d.lan[m].deviceNames=[]),d.lan[m].deviceNames.push(k))},g=(w,m)=>{const k=w.target.value;for(let x=0;x<d.wan.length;x++)if(x!=m){const h=p(d.wan[x].deviceNames,k);h!=-1&&d.wan[x].deviceNames.splice(h,1)}for(let x=0;x<d.lan.length;x++){const h=p(d.lan[x].deviceNames,k);h!=-1&&d.lan[x].deviceNames.splice(h,1)}d.wan[m].deviceNames=[k]},v=()=>L(this,null,function*(){c.value=!0;const w=[];for(let F=0;F<d.wan.length;F++){const k=d.wan[F];w.push({name:k.name,proto:k.proto,devices:k.deviceNames||[],firewallType:k.firewallType})}for(let F=0;F<d.lan.length;F++){const k=d.lan[F];if(k.name==="lan"&&(!k.deviceNames||k.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"))){c.value=!1;return}w.push({name:k.name,proto:k.proto,devices:k.deviceNames||[],firewallType:k.firewallType})}const m=$.Loading(n("\u4FDD\u5B58\u4E2D..."));try{const F=yield j.Network.POSTInterfaceConfig.POST({configs:w});if(F.data){const{success:k,result:x,error:h}=F.data;if(h)throw h;(k||0)==0&&$.Success(n("\u914D\u7F6E\u6210\u529F"))}}catch(F){$.Error(`${F}`)}finally{m.Close(),c.value=!1}});return(w,m)=>(r(),s("div",SC,[t("h2",zC,i(e(n)("\u7F51\u53E3\u914D\u7F6E")),1),t("div",PC,[t("div",TC,[t("div",IC,[(r(!0),s(U,null,tt(e(l).devices,F=>(r(),s("div",{class:"header-cell device-col",key:F.name},[t("div",MC,[B(dC,{item:F},null,8,["item"])])]))),128)),LC,OC,NC]),t("div",VC,[(r(!0),s(U,null,tt(e(d).lan,(F,k)=>(r(),s("div",{key:k,class:"table-row"},[(r(!0),s(U,null,tt(e(l).devices,x=>(r(),s("div",{class:"table-cell device-col",key:x.name},[N(t("input",{type:"checkbox",name:x.name,value:x.name,"onUpdate:modelValue":h=>F.deviceNames=h,onInput:h=>f(h,k)},null,40,GC),[[Rt,F.deviceNames]])]))),128)),jC,t("div",UC,[t("b",null,i(F.name),1)]),t("div",qC,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u7F16\u8F91"),onClick:x=>b("lan",k)},i(e(n)("\u7F16\u8F91")),9,RC),k!==0?(r(),s("button",{key:0,class:"cbi-button cbi-button-remove",onClick:x=>_("lan",k)},i(e(n)("\u5220\u9664")),9,WC)):C("",!0)])]))),128)),t("div",{class:"table-row add-row",onClick:m[0]||(m[0]=F=>b("lan"))},[(r(!0),s(U,null,tt(e(l).devices,F=>(r(),s("div",{class:"table-cell device-col",key:F.name}))),128)),HC,JC,t("div",ZC,[B(Aa,{class:"icon"})])]),(r(!0),s(U,null,tt(e(d).wan,(F,k)=>(r(),s("div",{key:k,class:"table-row"},[(r(!0),s(U,null,tt(e(l).devices,x=>(r(),s("div",{class:"table-cell device-col",key:x.name},[N(t("input",{type:"checkbox",name:x.name,value:x.name,"onUpdate:modelValue":h=>F.deviceNames=h,onInput:h=>g(h,k)},null,40,KC),[[Rt,F.deviceNames]])]))),128)),QC,t("div",XC,[t("b",null,i(F.name),1)]),t("div",tD,[t("button",{class:"btn cbi-button cbi-button-apply",title:e(n)("\u7F16\u8F91"),onClick:x=>b("wan",k)},i(e(n)("\u7F16\u8F91")),9,eD),k!==0?(r(),s("button",{key:0,class:"cbi-button cbi-button-remove",onClick:x=>_("wan",k)},i(e(n)("\u5220\u9664")),9,aD)):C("",!0)])]))),128)),t("div",{class:"table-row add-row",onClick:m[1]||(m[1]=F=>b("wan"))},[(r(!0),s(U,null,tt(e(l).devices,F=>(r(),s("div",{class:"table-cell device-col",key:F.name}))),128)),oD,nD,t("div",iD,[B(Aa,{class:"icon"})])])])])]),t("div",rD,[t("input",{class:"btn cbi-button cbi-button-apply",type:"button",value:e(n)("\u4FDD\u5B58\u5E76\u5E94\u7528"),onClick:v,disabled:c.value},null,8,sD)])]))}});var lD=O(dD,[["__scopeId","data-v-3dabb970"]]);const cD={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}=H(),l=E([]),c=E(!1),d=E(!1);E(null);const u=Z(()=>o.data.length),_=Z(()=>Math.ceil(u.value/o.pageSize)),b=Z(()=>{if(!o.showPagination)return o.data;const D=(o.currentPage-1)*o.pageSize,A=D+o.pageSize;return o.data.slice(D,A)}),p=Z(()=>(o.currentPage-1)*o.pageSize+1),f=Z(()=>{const D=o.currentPage*o.pageSize;return D>u.value?u.value:D}),g=Z(()=>({minWidth:`${o.columns.reduce((A,S)=>A+(parseInt(S.width)||50),o.showSelection?50:0)}px`})),v=Z(()=>{const D=[],A=Math.floor(o.maxPagerCount/2);let S=o.currentPage-A,Y=o.currentPage+A;S<1&&(S=1,Y=Math.min(o.maxPagerCount,_.value)),Y>_.value&&(Y=_.value,S=Math.max(1,Y-o.maxPagerCount+1));for(let z=S;z<=Y;z++)D.push(z);return D}),w=D=>({width:D.width?`${Math.max(50,parseInt(D.width))}px`:"auto",minWidth:"50px",textAlign:D.align||"center"}),m=()=>{c.value?l.value=[...b.value.map(D=>D[o.rowKey])]:l.value=[],x()},F=()=>{c.value=l.value.length===b.value.length&&b.value.length>0,x()},k=(D,A)=>{A?l.value.includes(D)||l.value.push(D):l.value=l.value.filter(S=>S!==D),F()},x=()=>{const D=o.data.filter(A=>l.value.includes(A[o.rowKey]));n("selection-change",D)},h=D=>{D<1||D>_.value||(n("update:currentPage",D),n("page-change",D))},y=()=>{d.value=window.innerWidth<=768};return $t(()=>o.data,()=>{l.value=[],c.value=!1},{deep:!0}),Pt(()=>{y(),window.addEventListener("resize",y)}),Nt(()=>{window.removeEventListener("resize",y)}),{selectedRows:l,allSelected:c,isMobile:d,total:u,totalPages:_,paginatedData:b,startItem:p,endItem:f,visiblePages:v,tableStyle:g,gettext:a,getColumnStyle:w,toggleAllSelection:m,handleSelectionChange:F,changePage:h,updateSelection:k}}},uD={class:"custom-table-container"},pD={key:0,class:"selection-header"},fD={key:0,class:"selection-cell"},mD=["checked","onChange"],gD={key:0,class:"empty-row"},bD=["colspan"],vD={key:0,class:"pagination-wrapper"},hD={class:"pagination-info"},_D={class:"pagination-controls"},xD=["disabled"],wD=["onClick"],kD=["disabled"];function yD(o,n,a,l,c,d){return r(),s("div",uD,[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",pD,[N(t("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=u=>l.allSelected=u),onChange:n[1]||(n[1]=(...u)=>l.toggleAllSelection&&l.toggleAllSelection(...u))},null,544),[[Rt,l.allSelected]])])):C("",!0),(r(!0),s(U,null,tt(a.columns,(u,_)=>(r(),s("th",{key:_,style:ht(l.getColumnStyle(u))},i(l.gettext(u.label)),5))),128))])],4),t("tbody",null,[(r(!0),s(U,null,tt(l.paginatedData,(u,_)=>(r(),s("tr",{key:_,class:lt({"last-row":_===l.paginatedData.length-1})},[a.showSelection?(r(),s("td",fD,[t("input",{type:"checkbox",checked:l.selectedRows.includes(u[a.rowKey]),onChange:b=>l.updateSelection(u[a.rowKey],b.target.checked)},null,40,mD)])):C("",!0),(r(!0),s(U,null,tt(a.columns,(b,p)=>(r(),s("td",{key:p,style:ht({textAlign:b.align||"center"})},[b.slot?Yt(o.$slots,b.slot,{key:0,row:u,index:_},void 0,!0):(r(),s(U,{key:1},[dt(i(u[b.prop]),1)],64))],4))),128))],2))),128)),l.paginatedData.length===0?(r(),s("tr",gD,[t("td",{colspan:a.showSelection?a.columns.length+1:a.columns.length},i(a.emptyText),9,bD)])):C("",!0)])],6)],4),a.showPagination?(r(),s("div",vD,[t("div",hD,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",_D,[t("button",{disabled:a.currentPage===1,onClick:n[2]||(n[2]=u=>l.changePage(a.currentPage-1))},i(l.gettext("\u4E0A\u4E00\u9875")),9,xD),(r(!0),s(U,null,tt(l.visiblePages,u=>(r(),s("button",{key:u,class:lt({active:u===a.currentPage}),onClick:_=>l.changePage(u)},i(u),11,wD))),128)),t("button",{disabled:a.currentPage===l.totalPages,onClick:n[3]||(n[3]=u=>l.changePage(a.currentPage+1))},i(l.gettext("\u4E0B\u4E00\u9875")),9,kD)])])):C("",!0)])}var je=O(cD,[["render",yD],["__scopeId","data-v-6c49427e"]]);const so=o=>(ct("data-v-9eb77922"),o=o(),ut(),o),FD={style:{display:"flex","align-items":"center"}},ED={class:"search_box"},$D={class:"search_container"},CD={class:"search_input_wrapper"},DD=["onKeyup","placeholder"],BD=so(()=>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)),YD=[BD],AD=so(()=>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)),SD=[AD],zD=T({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}=H(),c=E(""),d=E(!1),u=E(a.showBatchDelete),_=E(a.showAdd),b=()=>{n("refresh",{data:"\u8FD9\u662F\u5B50\u7EC4\u4EF6\u7684\u6570\u636E"})},p=()=>{n("search",String(c.value))},f=()=>{n("batch-delete",{data:"\u8FD9\u662F\u5B50\u7EC4\u4EF6\u7684\u6570\u636E"})},g=()=>{n("handleAdd")};return(v,w)=>(r(),s("div",FD,[_.value?(r(),s("button",{key:0,class:"del-button add-button--danger",style:{},onClick:g},[t("span",null,i(e(l)("\u6DFB\u52A0")),1)])):C("",!0),u.value?(r(),s("button",{key:1,class:"del-button del-button--danger",onClick:f},[t("span",null,i(e(l)("\u6279\u91CF\u5220\u9664")),1)])):C("",!0),t("div",ED,[t("div",$D,[t("div",CD,[N(t("input",{type:"text",onKeyup:Co(p,["enter"]),"onUpdate:modelValue":w[0]||(w[0]=m=>c.value=m),class:"search_input",placeholder:e(l)("\u8BF7\u8F93\u5165\u540D\u79F0/IP/MAC\u2026")},null,40,DD),[[ot,c.value,void 0,{trim:!0}]]),t("svg",{class:"search_icon",viewBox:"0 0 24 24",width:"24",height:"24",onClick:p},YD)]),t("button",{class:lt(["refresh_button",{rotate:d.value}]),onClick:b},SD,2)])])]))}});var ma=O(zD,[["__scopeId","data-v-9eb77922"]]);const PD={class:"flow"},TD={class:"flow-data"},ID={key:0},MD={key:1},LD=T({props:{ipParam:{type:String}},setup(o){const n=o,{$gettext:a}=H();Qe([Pa,Ta,Ia,Xe,ta,Ma]);const l=E(n.ipParam),c=E(),d=k=>{var h;const x=(h=c.value)==null?void 0:h[k];return!x||x.startTime==0?"":g(x.startTime*1e3)+"-"+g(x.endTime*1e3)},u=Z(()=>{var x;let k=[];return(x=c.value)==null||x.forEach(h=>{k.push({value:h.uploadSpeed})}),k}),_=Z(()=>{var x;let k=[];return(x=c.value)==null||x.forEach(h=>{k.push({value:h.downloadSpeed})}),k}),b=Z(()=>{var x;let k="";if(c.value){let h=((x=c.value)==null?void 0:x.length)||0;if(h>0){let y=c.value[h-1];k=v(y.uploadSpeed)+"/s"}}return k}),p=Z(()=>{var x;let k="";if(c.value){let h=((x=c.value)==null?void 0:x.length)||0;if(h>0){let y=c.value[h-1];k=v(y.downloadSpeed)+"/s"}}return k}),f=()=>L(this,null,function*(){var k;try{const x=yield j.DeviceMangement.speedsForOneDevice.POST({ip:l.value});if(x.data&&(k=x.data.result)!=null&&k.items){const h=x.data.result.slots||10;if(x.data.result.items.length<h){let y=x.data.result.items;for(;y.length<h;)y=[{downloadSpeed:0,endTime:0,startTime:0,uploadSpeed:0}].concat(y);c.value=y}else x.data.result.items.length>h?c.value=x.data.result.items.slice(h-x.data.result.items.length):c.value=x.data.result.items}}catch(x){console.log(x)}}),g=Mt.dateForm,v=Mt.byteToSize,w=E();let m=null;const F=k=>{const x=Ra();return m=ea(k,x?"dark":"light"),m.setOption({animation:!1,backgroundColor:x?"#88888822":"#fff",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:h=>{if(Array.isArray(h)){let y="";h.length>0&&(y=d(h[0].axisValue));for(let D=0;D<h.length;D++)y=`${y}<br>${h[D].seriesName}: ${v(h[D].value)}/s`;return y.toString()}else{const y=h;return`${d(y.axisValue)}<br>${y.seriesName}: ${v(y.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:x?"#cccccc":"rgba(0, 0, 0, 0.6)"},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(h,y){return`${v(h)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:a("\u4E0B\u8F7D"),data:_.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: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}}}],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:x?"#cccccc":"rgba(0, 0, 0, 0.6)"},lineStyle:{color:"#333"}},grid:{left:"2%",right:"2%",bottom:"0%",top:"10%",containLabel:!0}}),m};return Pt(()=>{setTimeout(()=>L(this,null,function*(){if(w.value){yield f();const k=F(w.value),x=w.value;k.resize({width:x.clientWidth,height:x.clientHeight}),window.addEventListener("resize",()=>{k.resize({width:x.clientWidth,height:x.clientHeight})});const h=()=>L(this,null,function*(){if(m!=null){if(!document.hidden){if(yield f(),m==null)return;k.setOption({series:[{name:a("\u4E0B\u8F7D"),data:_.value,type:"line",areaStyle:{},smooth:!0},{name:a("\u4E0A\u4F20"),data:u.value,type:"line",areaStyle:{},smooth:!0}]})}setTimeout(h,5e3)}});setTimeout(h,5e3)}}),900)}),Nt(()=>{m!=null&&(m.dispose(),m=null)}),(k,x)=>(r(),s("div",PD,[t("div",{ref_key:"el",ref:w,class:"echart"},null,512),t("div",TD,[e(b)?(r(),s("span",ID,i(e(a)("\u4E0A\u4F20:"))+" "+i(e(b)),1)):C("",!0),e(p)?(r(),s("span",MD,i(e(a)("\u4E0B\u8F7D:"))+" "+i(e(p)),1)):C("",!0)])]))}});var OD=O(LD,[["__scopeId","data-v-4a18630f"]]);const $e=o=>(ct("data-v-130efc47"),o=o(),ut(),o),ND={class:"container"},VD={style:{display:"flex","justify-content":"end"}},GD=["onClick"],jD=["onClick"],UD=["onClick"],qD={class:"custom-content"},RD={class:"IP_address"},WD={class:"item_box"},HD={class:"item_left"},JD={key:0,class:"tip"},ZD=["onClick"],KD={key:1},QD={class:"item_box"},XD={class:"item_left"},tB={class:"item_box"},eB={class:"item_left"},aB=["placeholder"],oB={class:"item_box"},nB={class:"item_left"},iB=["placeholder"],rB={class:"item_box"},sB={class:"item_left"},dB=["placeholder"],lB={class:"custom-content"},cB=$e(()=>t("div",{class:"img_box"},[t("img",{src:"https://fwindex.koolcenter.com/cover/x86_64/cover.png",alt:""})],-1)),uB={class:"item_box"},pB={class:"item_left"},fB=["placeholder"],mB={class:"item_box"},gB=$e(()=>t("div",{class:"item_left"},"MAC\uFF1A",-1)),bB=["placeholder"],vB={class:"item_box"},hB={class:"item_left"},_B={key:0,value:null,disabled:""},xB=["value"],wB={class:"item_box"},kB={class:"item_left"},yB={key:0,class:"item_box"},FB=$e(()=>t("div",{class:"item_left"},"IP\uFF1A",-1)),EB=["placeholder"],$B={class:"custom-content"},CB={class:"info-content"},DB=$e(()=>t("div",{class:"img_box"},[t("img",{src:"https://fwindex.koolcenter.com/cover/x86_64/cover.png",alt:""})],-1)),BB={style:{"margin-bottom":"16px",flex:"1"}},YB={class:"item_box"},AB={class:"item_left"},SB={class:"item_box"},zB={class:"item_left"},PB={class:"item_box"},TB=$e(()=>t("div",{class:"item_left"}," MAC\uFF1A",-1)),IB={class:"item_box"},MB={class:"item_left"},LB={class:"item_box"},OB={class:"item_left"},NB={class:"item_box"},VB={class:"item_left"},GB=T({emits:["openGloba"],setup(o,{emit:n}){const{$gettext:a}=H(),l=P=>{R.hostname=P.target.value.replace(/[\u4e00-\u9fa5]/g,"")},c=E(null),d=()=>{u(),S(),c.value=setInterval(S,3e3)},u=()=>{c.value&&(clearInterval(c.value),c.value=null)};Pt(()=>L(this,null,function*(){yield D(),p.value.length!==0&&d()})),Nt(()=>{u()});const _=E({});(()=>L(this,null,function*(){try{const{data:P}=yield j.DeviceMangement.globalConfigs.GET();P.result&&(_.value=P.result||{})}catch(P){}}))();const p=E([]),f=E([]),g=E(!1),v=E(!1),w=E(!1),m=Z(()=>!R.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"}]),k=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,x=()=>{g.value=!1,n("openGloba")},h=P=>{var Q,et;if(P==!0&&!((et=(Q=_.value)==null?void 0:Q.speedLimit)!=null&&et.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"))},y=E([]),D=()=>L(this,null,function*(){var Q,et,it;let P=$.Loading(a("\u52A0\u8F7D\u4E2D..."));try{const{data:kt}=yield j.DeviceMangement.listDevices.GET();kt.result&&(p.value=((Q=kt.result)==null?void 0:Q.devices)||[],f.value=((et=kt.result)==null?void 0:et.devices)||[],y.value=((it=kt.result)==null?void 0:it.dhcpTags)||[])}catch(kt){}finally{P.Close()}}),A=(P,Q)=>{const et={};return P.forEach(it=>{it.ip&&(et[it.ip]={downloadSpeedStr:it.downloadSpeedStr||"0 B",uploadSpeedStr:it.uploadSpeedStr||"0 B"})}),Q.map(it=>it.ip&&et[it.ip]?bt(rt({},it),{downloadSpeedStr:et[it.ip].downloadSpeedStr,uploadSpeedStr:et[it.ip].uploadSpeedStr}):bt(rt({},it),{downloadSpeedStr:it.downloadSpeedStr||"0 B",uploadSpeedStr:it.uploadSpeedStr||"0 B"}))},S=()=>L(this,null,function*(){try{const{data:P}=yield j.DeviceMangement.speedsForDevices.GET();P.result&&(f.value=A(P.result,f.value))}catch(P){}}),Y=P=>/^[a-zA-Z\s]+$/.test(P)?P.toUpperCase():P,z=vt({ip:"",mac:"",uploadSpeed:100,downloadSpeed:1e3,networkAccess:!1,enabled:!1,comment:"",action:"add"}),R=vt({hostname:"",assignedIP:"",assignedMac:"",bindIP:!1,tagTitle:"",tagName:"",dhcpGateway:"",action:"add"}),V=E(""),I=E({}),M=(P,Q)=>{var et,it,kt,Tt,Ft,ne,ie,re,se,de,le,ce,ue,pe,fe,me;I.value=P,Q===1?(z.ip=P.ip||"",z.mac=P.mac||"",z.uploadSpeed=((et=P==null?void 0:P.speedLimit)==null?void 0:et.uploadSpeed)||100,z.downloadSpeed=((it=P==null?void 0:P.speedLimit)==null?void 0:it.downloadSpeed)||1e3,z.networkAccess=!((kt=P==null?void 0:P.speedLimit)!=null&&kt.networkAccess)||!1,z.enabled=((Tt=P==null?void 0:P.speedLimit)==null?void 0:Tt.enabled)||!1,z.comment=((Ft=P==null?void 0:P.speedLimit)==null?void 0:Ft.comment)||"",z.action=((ne=P==null?void 0:P.speedLimit)==null?void 0:ne.action)||"add",g.value=!0):Q===2?(R.hostname=((ie=P==null?void 0:P.staticAssigned)==null?void 0:ie.hostname)||"",R.assignedIP=((re=P==null?void 0:P.staticAssigned)==null?void 0:re.assignedIP)||"",R.assignedMac=((se=P==null?void 0:P.staticAssigned)==null?void 0:se.assignedMac)||"",R.bindIP=((de=P==null?void 0:P.staticAssigned)==null?void 0:de.bindIP)||!1,R.tagTitle=((le=P==null?void 0:P.staticAssigned)==null?void 0:le.tagTitle)||"",R.tagName=((ce=P==null?void 0:P.staticAssigned)==null?void 0:ce.tagName)||"",(ue=P==null?void 0:P.staticAssigned)!=null&&ue.dhcpGateway?(y.value.forEach(ge=>{var Et;ge.gateway===((Et=P==null?void 0:P.staticAssigned)==null?void 0:Et.dhcpGateway)&&(W.value=ge)}),R.dhcpGateway=((fe=P==null?void 0:P.staticAssigned)==null?void 0:fe.dhcpGateway)||y.value[0]||""):(W.value=y.value[0]||null,R.dhcpGateway=((pe=W.value)==null?void 0:pe.gateway)||""),R.action=((me=P==null?void 0:P.staticAssigned)==null?void 0:me.action)||"add",v.value=!0):Q===3&&(V.value="",V.value=P.ip,w.value=!0)},W=E(y.value[0]||null),X=()=>{var P,Q,et;W.value?(R.dhcpGateway=((P=W.value)==null?void 0:P.gateway)||"",R.tagName=((Q=W.value)==null?void 0:Q.tagName)||"",R.tagTitle=((et=W.value)==null?void 0:et.tagTitle)||""):(R.dhcpGateway="",R.tagName="",R.tagTitle="")},st=(P,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})$/}[P].test(Q.trim()):!1,at=P=>/^([1-9]\d*(\.\d+)?|0\.\d*[1-9]\d*)$/.test(P.toString()),ft=()=>L(this,null,function*(){if(!R.hostname)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u540D\u79F0")}`);if(!R.assignedMac)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("MAC")}`);if(!st("mac",R.assignedMac))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684MAC\u5730\u5740")}`);if(!R.dhcpGateway)return $.Warning(`${a("\u8BF7\u9009\u62E9")}${a("\u7F51\u5173")}`);if(R.bindIP){if(!R.assignedIP)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("IP")}`);if(!st("ip",R.assignedIP))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`)}else R.assignedIP="";let P=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const{data:Q}=yield j.DeviceMangement.staticDeviceConfig.POST(R);JSON.stringify(Q)==="{}"?(v.value=!1,yt(),nt(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((Q==null?void 0:Q.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(Q){$.Warning(`${Q==null?void 0:Q.error} || ${Q==null?void 0:Q.message}`)}finally{P.Close()}}),Dt=()=>L(this,null,function*(){var Q,et;if(!((et=(Q=_.value)==null?void 0:Q.speedLimit)!=null&&et.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"));if(z.networkAccess)z.downloadSpeed=0,z.uploadSpeed=0;else{if(!z.downloadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0B\u8F7D\u901F\u5EA6")}`);if(!at(z.downloadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0B\u8F7D\u901F\u5EA6")}`);if(!z.uploadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0A\u4F20\u901F\u5EA6")}`);if(!at(z.uploadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0A\u4F20\u901F\u5EA6")}`);z.downloadSpeed=Number(z.downloadSpeed),z.uploadSpeed=Number(z.uploadSpeed)}let P=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{z.networkAccess=!z.networkAccess;const{data:it}=yield j.DeviceMangement.speedLimitConfig.POST(z);JSON.stringify(it)==="{}"?(g.value=!1,yt(),nt(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((it==null?void 0:it.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(it){$.Warning(`${it==null?void 0:it.error} || ${it==null?void 0:it.message}`)}finally{z.downloadSpeed=1e3,z.uploadSpeed=100,P.Close()}}),yt=()=>{I.value={},W.value=y.value[0]||null,R.hostname="",R.assignedIP="",R.assignedMac="",R.bindIP=!1,R.dhcpGateway="",R.tagName="",R.tagTitle="",R.action="add",z.ip="",z.mac="",z.uploadSpeed=100,z.downloadSpeed=1e3,z.networkAccess=!1,z.comment="",z.action="add"},Vt=E([]),qe=E(null),nt=()=>L(this,null,function*(){p.value=[],yield D()}),K=P=>p.value.filter(Q=>{const et=Q.ip.includes(P),it=Q.mac.toLowerCase().includes(P.toLowerCase());return et||it}),St=P=>{P===""&&(f.value=p.value),f.value=K(P)},gt=()=>{if(Vt.value.length===0)return $.Warning(a("\u8BF7\u52FE\u9009\u8981\u5220\u9664\u7684\u6570\u636E")+" !")};return(P,Q)=>(r(),s("div",ND,[t("div",VD,[B(ma,{onRefresh:nt,showAdd:!1,showBatchDelete:!1,ref_key:"searchRef",ref:qe,onBatchDelete:gt,onSearch:St},null,512)]),t("div",null,[B(je,{data:f.value,columns:F.value,showPagination:!1},{action:G(({row:et})=>[t("span",{style:{color:"#553AFE",cursor:"pointer"},onClick:it=>M(et,2)},i(e(a)("\u9759\u6001\u5206\u914D")),9,GD),t("span",{style:{color:"#553AFE",cursor:"pointer",margin:"0 8px"},onClick:it=>M(et,1)},i(e(a)("\u9650\u901F\u914D\u7F6E")),9,jD),t("span",{style:{color:"#553AFE",margin:"0 8px",cursor:"pointer"},onClick:it=>M(et,3)},i(e(a)("\u8BE6\u60C5")),9,UD)]),staticAssigned:G(({row:et})=>{var it,kt;return[t("span",null,i(k((it=et==null?void 0:et.staticAssigned)==null?void 0:it.tagTitle)||k((kt=et==null?void 0:et.staticAssigned)==null?void 0:kt.tagName)||"-"),1)]}),_:1},8,["data","columns"])]),B(Xt,{modelValue:g.value,"onUpdate:modelValue":Q[6]||(Q[6]=et=>g.value=et),title:"\u9650\u901F\u914D\u7F6E","show-close":!0,onConfirm:Dt,onCancel:yt},{default:G(()=>{var et,it,kt,Tt;return[t("div",qD,[t("div",RD,"IP: "+i(I.value.ip),1),t("div",WD,[t("div",HD,i(e(a)("\u5BF9\u8BBE\u5907\u5F00\u542F\u9650\u901F"))+"\uFF1A",1),B(Ot,{modelValue:e(z).enabled,"onUpdate:modelValue":Q[0]||(Q[0]=Ft=>e(z).enabled=Ft),disabled:!((it=(et=_.value)==null?void 0:et.speedLimit)!=null&&it.enabled),onBeforeChange:h},null,8,["modelValue","disabled"])]),(Tt=(kt=_.value)==null?void 0:kt.speedLimit)!=null&&Tt.enabled?C("",!0):(r(),s("div",JD,[t("a",{href:"",onClick:mt(x,["prevent"])},i(e(a)("\u70B9\u6211\u8DF3\u8F6C\u5168\u5C40\u914D\u7F6E")),9,ZD)])),e(z).enabled?(r(),s("div",KD,[t("div",QD,[t("div",XD,i(e(a)("\u7981\u6B62\u8BE5\u8BBE\u5907\u8BBF\u95EE\u7F51\u7EDC"))+"\uFF1A",1),B(Ot,{modelValue:e(z).networkAccess,"onUpdate:modelValue":Q[1]||(Q[1]=Ft=>e(z).networkAccess=Ft),onChange:Q[2]||(Q[2]=()=>{})},null,8,["modelValue"])]),e(z).networkAccess?C("",!0):(r(),s(U,{key:0},[t("div",tB,[t("div",eB,i(e(a)("\u4E0B\u8F7D\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":Q[3]||(Q[3]=Ft=>e(z).downloadSpeed=Ft),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,aB),[[ot,e(z).downloadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",oB,[t("div",nB,i(e(a)("\u4E0A\u4F20\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":Q[4]||(Q[4]=Ft=>e(z).uploadSpeed=Ft),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,iB),[[ot,e(z).uploadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",rB,[t("div",sB,i(e(a)("\u6CE8\u89E3"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":Q[5]||(Q[5]=Ft=>e(z).comment=Ft),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,dB),[[ot,e(z).comment,void 0,{trim:!0}]])])],64))])):C("",!0)])]}),_:1},8,["modelValue"]),B(Xt,{modelValue:v.value,"onUpdate:modelValue":Q[12]||(Q[12]=et=>v.value=et),title:"\u9759\u6001\u5206\u914D",width:"550px","show-close":!0,onConfirm:ft,onCancel:yt},{default:G(()=>[t("div",lB,[cB,t("div",uB,[t("div",pB,i(e(a)("\u540D\u79F0"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text",onInput:l,"onUpdate:modelValue":Q[7]||(Q[7]=et=>e(R).hostname=et),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,40,fB),[[ot,e(R).hostname,void 0,{trim:!0}]])]),t("div",mB,[gB,N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":Q[8]||(Q[8]=et=>e(R).assignedMac=et),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,bB),[[ot,e(R).assignedMac,void 0,{trim:!0}]])]),t("div",vB,[t("div",hB,i(e(a)("\u7F51\u5173"))+"\uFF1A",1),N(t("select",{"onUpdate:modelValue":Q[9]||(Q[9]=et=>W.value=et),onChange:X},[e(m)?(r(),s("option",_B,i(e(a)("\u8BF7\u9009\u62E9")),1)):C("",!0),(r(!0),s(U,null,tt(y.value,et=>(r(),s("option",{value:et},i(et.gateway)+"("+i(et.tagTitle?k(et.tagTitle):et.tagName?et.tagName:"-")+") ",9,xB))),256))],544),[[pt,W.value]])]),t("div",wB,[t("div",kB,i(e(a)("MAC\u5730\u5740\u4E0EIP\u7ED1\u5B9A"))+"\uFF1A",1),B(Ot,{modelValue:e(R).bindIP,"onUpdate:modelValue":Q[10]||(Q[10]=et=>e(R).bindIP=et)},null,8,["modelValue"])]),e(R).bindIP?(r(),s("div",yB,[FB,N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":Q[11]||(Q[11]=et=>e(R).assignedIP=et),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,EB),[[ot,e(R).assignedIP,void 0,{trim:!0}]])])):C("",!0)])]),_:1},8,["modelValue"]),B(Xt,{modelValue:w.value,"onUpdate:modelValue":Q[13]||(Q[13]=et=>w.value=et),title:"\u8BE6\u60C5",width:"550px",footerShow:!1,"show-close":!0,onCancel:yt},{default:G(()=>{var et,it,kt,Tt,Ft;return[t("div",$B,[t("div",CB,[DB,t("div",BB,[t("div",YB,[t("div",AB,i(e(a)("\u540D\u79F0"))+"\uFF1A",1),dt(" "+i(I.value.hostname||"-"),1)]),t("div",SB,[t("div",zB,i(e(a)("IP\u5730\u5740"))+"\uFF1A",1),dt(" "+i(I.value.ip),1)]),t("div",PB,[TB,dt(" "+i(I.value.mac),1)]),t("div",IB,[t("div",MB,i(e(a)("\u7F51\u5173"))+"\uFF1A",1),dt(" "+i(((et=I.value)==null?void 0:et.staticAssigned.dhcpGateway)||"-"),1)]),t("div",LB,[t("div",OB,i(e(a)("\u63A5\u53E3"))+"\uFF1A",1),dt(" "+i(Y(I.value.intr)||"-"),1)]),t("div",NB,[t("div",VB,i(e(a)("\u6807\u7B7E"))+"\uFF1A",1),dt(" "+i(((kt=(it=I.value)==null?void 0:it.staticAssigned)==null?void 0:kt.tagTitle)||((Ft=(Tt=I.value)==null?void 0:Tt.staticAssigned)==null?void 0:Ft.tagName)||"-"),1)])])]),V.value?(r(),J(OD,{key:0,ipParam:V.value},null,8,["ipParam"])):C("",!0)])]}),_:1},8,["modelValue"])]))}});var jB=O(GB,[["__scopeId","data-v-130efc47"]]);const ga=o=>(ct("data-v-fdadaf30"),o=o(),ut(),o),UB={class:"container"},qB={style:{display:"flex","justify-content":"end"}},RB=["onClick"],WB={class:"custom-content"},HB=ga(()=>t("div",{class:"img_box"},[t("img",{src:"https://fwindex.koolcenter.com/cover/x86_64/cover.png",alt:""})],-1)),JB={class:"item_box"},ZB={class:"item_left"},KB=["placeholder"],QB={class:"item_box"},XB=ga(()=>t("div",{class:"item_left"},"MAC\uFF1A",-1)),tY=["placeholder"],eY={class:"item_box"},aY={class:"item_left"},oY={key:0,value:null,disabled:""},nY=["value"],iY={class:"item_box"},rY={class:"item_left"},sY={key:0,class:"item_box"},dY=ga(()=>t("div",{class:"item_left"},"IP\uFF1A",-1)),lY=["placeholder"],cY=T({setup(o){const{$gettext:n}=H(),a=E([]);(()=>L(this,null,function*(){var I;try{const{data:M}=yield j.DeviceMangement.globalConfigs.GET();M.result&&(a.value=((I=M.result)==null?void 0:I.dhcpTags)||[])}catch(M){}}))();const c=E([]),d=E([]),u=E(!1),_=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"}]),b=I=>({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")})[I]||I,p=I=>{Y.hostname=I.target.value.replace(/[\u4e00-\u9fa5]/g,"")},f=()=>L(this,null,function*(){let I=$.Loading(n("\u52A0\u8F7D\u4E2D..."));try{const{data:M}=yield j.DeviceMangement.listStaticDevices.GET();M.result&&(c.value=M.result||[],d.value=M.result||[])}catch(M){}finally{I.Close()}});f();const g=E(!0),v=E([]),w=I=>{v.value=I},m=()=>L(this,null,function*(){c.value=[];let I=$.Loading(n("\u52A0\u8F7D\u4E2D..."));yield f(),I.Close()}),F=I=>c.value.filter(M=>{const W=M.assignedIP.includes(I),X=M.assignedMac.toLowerCase().includes(I.toLowerCase());return W||X}),k=I=>{I===""&&(d.value=c.value),d.value=F(I)},x=I=>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 M={hostname:I.hostname||"",assignedIP:I.assignedIP||"",assignedMac:I.assignedMac||"",tagTitle:I.tagTitle||"",bindIP:I.bindIP||!1,tagName:I.tagName||"",dhcpGateway:I.dhcpGateway||"",action:"delete"};h(M,1)}}),h=(I,M)=>L(this,null,function*(){let W=$.Loading(n("\u5220\u9664\u4E2D..."));try{const{data:X}=yield j.DeviceMangement.staticDeviceConfig.POST(I);return M==1&&(JSON.stringify(X)==="{}"?$.Success("\u5220\u9664\u6210\u529F !"):$.Success((X==null?void 0:X.error)||"\u5220\u9664\u5931\u8D25\uFF01"),f()),X}catch(X){}finally{W.Close()}}),y=()=>L(this,null,function*(){if(v.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 I=v.value.map(M=>{const W={hostname:M.hostname||"",assignedIP:M.assignedIP||"",assignedMac:M.assignedMac||"",tagTitle:M.tagTitle||"",bindIP:M.bindIP||!1,tagName:M.tagName||"",dhcpGateway:M.dhcpGateway||"",action:"delete"};return h(W)});yield Promise.all(I),$.Success(n("\u6240\u6709\u5220\u9664\u64CD\u4F5C\u5DF2\u5B8C\u6210")),f()}catch(I){}}),D=Z(()=>!Y.dhcpGateway),A=E(null),S=()=>{var I,M,W;A.value?(Y.dhcpGateway=((I=A.value)==null?void 0:I.gateway)||"",Y.tagName=((M=A.value)==null?void 0:M.tagName)||"",Y.tagTitle=((W=A.value)==null?void 0:W.tagTitle)||""):(Y.dhcpGateway="",Y.tagName="",Y.tagTitle="")},Y=vt({hostname:"",assignedIP:"",assignedMac:"",bindIP:!1,tagTitle:"",tagName:"",dhcpGateway:"",action:"add"}),z=(I,M)=>M?{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})$/}[I].test(M.trim()):!1,R=()=>L(this,null,function*(){if(!Y.assignedMac)return $.Warning(`${n("\u8BF7\u8F93\u5165")}${n("MAC")}`);if(!z("mac",Y.assignedMac))return $.Warning(`${n("\u8BF7\u8F93\u5165\u6B63\u786E\u7684MAC\u5730\u5740")}`);if(!Y.dhcpGateway)return $.Warning(`${n("\u8BF7\u9009\u62E9")}${n("\u7F51\u5173")}`);if(Y.bindIP){if(!Y.assignedIP)return $.Warning(`${n("\u8BF7\u8F93\u5165")}${n("IP")}`);if(!z("ip",Y.assignedIP))return $.Warning(`${n("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`)}else Y.assignedIP="";let I=$.Loading(n("\u4FDD\u5B58\u4E2D..."));try{const{data:M}=yield j.DeviceMangement.staticDeviceConfig.POST(Y);JSON.stringify(M)==="{}"?(u.value=!1,V(),m(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((M==null?void 0:M.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01")}catch(M){$.Warning(`${M==null?void 0:M.error} || ${M==null?void 0:M.message}`)}finally{I.Close()}}),V=()=>{A.value=null,Y.hostname="",Y.assignedIP="",Y.assignedMac="",Y.bindIP=!1,Y.dhcpGateway="",Y.tagName="",Y.tagTitle="",Y.action="add"};return(I,M)=>(r(),s("div",UB,[t("div",qB,[B(ma,{onHandleAdd:M[0]||(M[0]=W=>u.value=!0),onRefresh:m,onBatchDelete:y,onSearch:k})]),t("div",null,[B(je,{data:d.value,columns:_.value,rowKey:"assignedMac",showSelection:g.value,showPagination:!1,onSelectionChange:w},{action:G(({row:W})=>[t("button",{class:"del-button del-button--danger",onClick:X=>x(W)},[t("span",null,i(e(n)("\u5220\u9664")),1)],8,RB)]),tagTitle:G(({row:W})=>[t("span",null,i(b(W==null?void 0:W.tagTitle)||b(W==null?void 0:W.tagName)||"-"),1)]),bindIP:G(({row:W})=>[t("span",null,i(W!=null&&W.bindIP?e(n)("\u662F"):e(n)("\u5426")),1)]),_:1},8,["data","columns","showSelection"])]),B(Xt,{modelValue:u.value,"onUpdate:modelValue":M[6]||(M[6]=W=>u.value=W),title:"\u9759\u6001\u5206\u914D",width:"550px","show-close":!0,onConfirm:R,onCancel:V},{default:G(()=>[t("div",WB,[HB,t("div",JB,[t("div",ZB,i(e(n)("\u540D\u79F0"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text",onInput:p,"onUpdate:modelValue":M[1]||(M[1]=W=>e(Y).hostname=W),placeholder:e(n)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,40,KB),[[ot,e(Y).hostname,void 0,{trim:!0}]])]),t("div",QB,[XB,N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":M[2]||(M[2]=W=>e(Y).assignedMac=W),placeholder:e(n)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,tY),[[ot,e(Y).assignedMac,void 0,{trim:!0}]])]),t("div",eY,[t("div",aY,i(e(n)("\u7F51\u5173"))+"\uFF1A",1),N(t("select",{"onUpdate:modelValue":M[3]||(M[3]=W=>A.value=W),onChange:S},[e(D)?(r(),s("option",oY,i(e(n)("\u8BF7\u9009\u62E9")),1)):C("",!0),(r(!0),s(U,null,tt(a.value,W=>(r(),s("option",{value:W},i(W.gateway)+"("+i(W.tagTitle?b(W.tagTitle):W.tagName?W.tagName:"-")+") ",9,nY))),256))],544),[[pt,A.value]])]),t("div",iY,[t("div",rY,i(e(n)("MAC\u5730\u5740\u4E0EIP\u7ED1\u5B9A"))+"\uFF1A",1),B(Ot,{modelValue:e(Y).bindIP,"onUpdate:modelValue":M[4]||(M[4]=W=>e(Y).bindIP=W)},null,8,["modelValue"])]),e(Y).bindIP?(r(),s("div",sY,[dY,N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":M[5]||(M[5]=W=>e(Y).assignedIP=W),placeholder:e(n)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,lY),[[ot,e(Y).assignedIP,void 0,{trim:!0}]])])):C("",!0)])]),_:1},8,["modelValue"])]))}});var uY=O(cY,[["__scopeId","data-v-fdadaf30"]]);const pY={class:"container"},fY={style:{display:"flex","justify-content":"end"}},mY=["onClick"],gY={class:"custom-content"},bY={class:"item_box"},vY={class:"item_left"},hY={class:"item_box"},_Y={class:"item_left"},xY=["placeholder"],wY={class:"item_box"},kY={class:"item_left"},yY=["placeholder"],FY={key:0,class:"tip"},EY=["onClick"],$Y={key:1},CY={class:"item_box"},DY={class:"item_left"},BY={class:"item_box"},YY={class:"item_left"},AY=["placeholder"],SY={class:"item_box"},zY={class:"item_left"},PY=["placeholder"],TY={class:"item_box"},IY={class:"item_left"},MY=["placeholder"],LY=T({emits:["openGloba"],setup(o,{emit:n}){const{$gettext:a}=H(),l=E({});(()=>L(this,null,function*(){try{const{data:V}=yield j.DeviceMangement.globalConfigs.GET();V.result&&(l.value=V.result||{})}catch(V){}}))();const d=E([]),u=E([]),_=E(!1),b=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 V=$.Loading(a("\u52A0\u8F7D\u4E2D..."));try{const{data:I}=yield j.DeviceMangement.listSpeedLimitedDevices.GET();I.result&&(d.value=I.result||[],u.value=I.result||[])}catch(I){}finally{V.Close()}});p();const f=E(!0),g=E([]),v=V=>{g.value=V},w=()=>L(this,null,function*(){d.value=[];let V=$.Loading(a("\u52A0\u8F7D\u4E2D..."));yield p(),V.Close()}),m=V=>d.value.filter(I=>{const M=I.ip.includes(V),W=I.mac.toLowerCase().includes(V.toLowerCase());return M||W}),F=V=>{V===""&&(u.value=d.value),u.value=m(V)},k=V=>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 I={ip:V.ip||"",mac:V.mac||"",uploadSpeed:V.uploadSpeed||0,downloadSpeed:V.downloadSpeed||0,networkAccess:V.networkAccess||!1,comment:"",action:"delete"};x(I,1)}}),x=(V,I)=>L(this,null,function*(){let M=$.Loading(a("\u5220\u9664\u4E2D..."));try{const{data:W}=yield j.DeviceMangement.speedLimitConfig.POST(V);return I==1&&(JSON.stringify(W)==="{}"?$.Success("\u5220\u9664\u6210\u529F !"):$.Success((W==null?void 0:W.error)||"\u5220\u9664\u5931\u8D25\uFF01"),p()),W}catch(W){}finally{M.Close()}}),h=()=>L(this,null,function*(){if(g.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 V=g.value.map(I=>{const M={ip:I.ip||"",mac:I.mac||"",uploadSpeed:I.uploadSpeed||0,downloadSpeed:I.downloadSpeed||0,networkAccess:I.networkAccess||!1,comment:"",action:"delete"};return x(M)});yield Promise.all(V),$.Success(a("\u6240\u6709\u5220\u9664\u64CD\u4F5C\u5DF2\u5B8C\u6210")),p()}catch(V){}}),y=()=>{_.value=!1,n("openGloba")},D=V=>{var I,M;if(V==!0&&!((M=(I=l.value)==null?void 0:I.speedLimit)!=null&&M.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"))},A=vt({ip:"",mac:"",uploadSpeed:100,downloadSpeed:1e3,networkAccess:!1,enabled:!1,comment:"",action:"add"}),S=V=>/^([1-9]\d*(\.\d+)?|0\.\d*[1-9]\d*)$/.test(V.toString()),Y=(V,I)=>I?{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})$/}[V].test(I.trim()):!1,z=()=>L(this,null,function*(){var I,M;if(!((M=(I=l.value)==null?void 0:I.speedLimit)!=null&&M.enabled))return $.Warning(a("\u8BF7\u524D\u5F80\u5168\u5C40\u914D\u7F6E\u5F00\u542F\u9650\u901F"));if(!A.ip)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("IP")}`);if(!Y("ip",A.ip))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`);if(!A.mac)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("MAC")}`);if(!Y("mac",A.mac))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684MAC\u5730\u5740")}`);if(A.networkAccess)A.downloadSpeed=0,A.uploadSpeed=0;else{if(!A.downloadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0B\u8F7D\u901F\u5EA6")}`);if(!S(A.downloadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0B\u8F7D\u901F\u5EA6")}`);if(!A.uploadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0A\u4F20\u901F\u5EA6")}`);if(!S(A.uploadSpeed))return $.Warning(`${a("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u4E0A\u4F20\u901F\u5EA6")}`);A.downloadSpeed=Number(A.downloadSpeed),A.uploadSpeed=Number(A.uploadSpeed)}let V=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{A.networkAccess=!A.networkAccess;const{data:W}=yield j.DeviceMangement.speedLimitConfig.POST(A);JSON.stringify(W)==="{}"?(w(),$.Success("\u4FDD\u5B58\u6210\u529F !")):$.Success((W==null?void 0:W.error)||"\u4FDD\u5B58\u5931\u8D25\uFF01"),_.value=!1,R()}catch(W){$.Warning(`${W==null?void 0:W.error} || ${W==null?void 0:W.message}`)}finally{A.downloadSpeed=1e3,A.uploadSpeed=100,V.Close()}}),R=()=>{A.ip="",A.mac="",A.uploadSpeed=100,A.downloadSpeed=1e3,A.networkAccess=!1,A.comment="",A.action="add"};return(V,I)=>(r(),s("div",pY,[t("div",fY,[B(ma,{onHandleAdd:I[0]||(I[0]=M=>_.value=!0),onRefresh:w,onBatchDelete:h,onSearch:F})]),t("div",null,[B(je,{data:u.value,columns:b.value,rowKey:"mac",showSelection:f.value,showPagination:!1,onSelectionChange:v},{action:G(({row:M})=>[t("button",{class:"del-button del-button--danger",onClick:W=>k(M)},[t("span",null,i(e(a)("\u5220\u9664")),1)],8,mY)]),enabled:G(({row:M})=>[t("span",null,i(M!=null&&M.enabled?e(a)("\u662F"):e(a)("\u5426")),1)]),uploadSpeed:G(({row:M})=>[t("span",null,i((M==null?void 0:M.uploadSpeed)||"-")+" "+i(M!=null&&M.uploadSpeed?"Mbit/s":""),1)]),downloadSpeed:G(({row:M})=>[t("span",null,i((M==null?void 0:M.downloadSpeed)||"-")+" "+i(M!=null&&M.downloadSpeed?"Mbit/s":""),1)]),_:1},8,["data","columns","showSelection"])]),B(Xt,{modelValue:_.value,"onUpdate:modelValue":I[9]||(I[9]=M=>_.value=M),title:"\u9650\u901F\u914D\u7F6E","show-close":!0,onConfirm:z,onCancel:R},{default:G(()=>{var M,W,X,st;return[t("div",gY,[t("div",bY,[t("div",vY,i(e(a)("\u5BF9\u8BBE\u5907\u5F00\u542F\u9650\u901F"))+"\uFF1A",1),B(Ot,{modelValue:e(A).enabled,"onUpdate:modelValue":I[1]||(I[1]=at=>e(A).enabled=at),disabled:!((W=(M=l.value)==null?void 0:M.speedLimit)!=null&&W.enabled),onBeforeChange:D},null,8,["modelValue","disabled"])]),t("div",hY,[t("div",_Y,i(e(a)("IP\u5730\u5740"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":I[2]||(I[2]=at=>e(A).ip=at),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,xY),[[ot,e(A).ip,void 0,{trim:!0}]])]),t("div",wY,[t("div",kY,i(e(a)("MAC\u5730\u5740"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":I[3]||(I[3]=at=>e(A).mac=at),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,yY),[[ot,e(A).mac,void 0,{trim:!0}]])]),(st=(X=l.value)==null?void 0:X.speedLimit)!=null&&st.enabled?C("",!0):(r(),s("div",FY,[t("a",{href:"",onClick:mt(y,["prevent"])},i(e(a)("\u70B9\u6211\u8DF3\u8F6C\u5168\u5C40\u914D\u7F6E")),9,EY)])),e(A).enabled?(r(),s("div",$Y,[t("div",CY,[t("div",DY,i(e(a)("\u7981\u6B62\u8BE5\u8BBE\u5907\u8BBF\u95EE\u7F51\u7EDC"))+"\uFF1A",1),B(Ot,{modelValue:e(A).networkAccess,"onUpdate:modelValue":I[4]||(I[4]=at=>e(A).networkAccess=at),onChange:I[5]||(I[5]=()=>{})},null,8,["modelValue"])]),e(A).networkAccess?C("",!0):(r(),s(U,{key:0},[t("div",BY,[t("div",YY,i(e(a)("\u4E0B\u8F7D\u9650\u901F\uFF08Mbit/s\uFF09"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":I[6]||(I[6]=at=>e(A).downloadSpeed=at),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,AY),[[ot,e(A).downloadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",SY,[t("div",zY,i(e(a)("\u4E0A\u4F20\u9650\u901F\uFF08Mbit/s\uFF09"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":I[7]||(I[7]=at=>e(A).uploadSpeed=at),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,PY),[[ot,e(A).uploadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",TY,[t("div",IY,i(e(a)("\u6CE8\u89E3"))+"\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":I[8]||(I[8]=at=>e(A).comment=at),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,MY),[[ot,e(A).comment,void 0,{trim:!0}]])])],64))])):C("",!0)])]}),_:1},8,["modelValue"])]))}});var OY=O(LY,[["__scopeId","data-v-23c28a68"]]);const ba=o=>(ct("data-v-ed203952"),o=o(),ut(),o),NY={key:0,class:"dialog-overlay"},VY={class:"dialog-container"},GY={class:"dialog-title"},jY=ba(()=>t("div",{class:"loading-animation"},[t("div",{class:"spinner"})],-1)),UY={class:"dialog-message"},qY={key:0,class:"dialog-overlay"},RY={class:"dialog-container"},WY={class:"dialog-title"},HY=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)),JY={class:"dialog-message"},ZY={key:0,class:"dialog-overlay"},KY={class:"dialog-container tag-dialog"},QY={class:"dialog-title"},XY={class:"warning-message"},tA=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)),eA={class:"input-group"},aA={for:"tagTitle"},oA=["placeholder"],nA={class:"input-group"},iA={for:"tagName"},rA=["disabled","placeholder"],sA={class:"input-group"},dA={for:"gateway"},lA=["placeholder"],cA={class:"button-group"},uA=T({props:{title:{type:String,required:!0}},emits:["confirm","update:modelValue"],setup(o,{expose:n,emit:a}){const{$gettext:l}=H(),c=E("install"),d=E(!1),u=E(!1),_=E(!1),b=E(""),p=E(""),f=E(""),g=()=>{c.value="install",d.value=!0},v=()=>{d.value=!1},w=()=>{d.value=!1,setTimeout(()=>{u.value=!0},300)},m=()=>{u.value=!1},F=E("1"),k=()=>{c.value="tag",F.value="1",p.value="",b.value="",f.value="",_.value=!0},x=()=>{c.value="tag",F.value="2",_.value=!0},h=()=>{_.value=!1},y=S=>{p.value=S.target.value.replace(/[\u4e00-\u9fa5]/g,"")},D=(S,Y)=>Y?{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})$/}[S].test(Y.trim()):!1,A=()=>{if(!D("ip",f.value.trim()))return $.Warning(`${l("\u8BF7\u8F93\u5165\u6B63\u786E\u7684IP\u5730\u5740")}`);b.value.trim()&&p.value.trim()&&f.value.trim()&&(a("confirm",{tagTitle:b.value.trim(),tagName:p.value.trim(),gateway:f.value.trim(),type:F.value}),h())};return $t(b,S=>{a("update:modelValue",S)}),$t(p,S=>{a("update:modelValue",S)}),$t(f,S=>{a("update:modelValue",S)}),n({tagTitle:b,tagName:p,gateway:f,openInstallDialog:g,showInstallResult:w,openTagDialog:k,closeTagDialog:h,cancelInstall:v,openEditTagDialog:x}),(S,Y)=>(r(),s(U,null,[B(At,{name:"fade"},{default:G(()=>[d.value&&c.value==="install"?(r(),s("div",NY,[t("div",VY,[t("div",GY,i(o.title),1),jY,t("p",UY,i(e(l)("\u6B63\u5728\u5B89\u88C5"))+"...",1),t("button",{class:"dialog-button",onClick:v},i(e(l)("\u5173\u95ED")),1)])])):C("",!0)]),_:1}),B(At,{name:"fade"},{default:G(()=>[u.value&&c.value==="install"?(r(),s("div",qY,[t("div",RY,[t("div",WY,i(e(l)("\u7ED3\u679C")),1),HY,t("p",JY,i(e(l)("\u5B89\u88C5\u6210\u529F"))+"\uFF01",1),t("button",{class:"dialog-button",onClick:m},i(e(l)("\u786E\u5B9A")),1)])])):C("",!0)]),_:1}),B(At,{name:"fade"},{default:G(()=>[_.value&&c.value==="tag"?(r(),s("div",ZY,[t("div",KY,[t("div",QY,i(F.value==="1"?e(l)("\u6DFB\u52A0\u6807\u7B7E"):e(l)("\u7F16\u8F91\u6807\u7B7E")),1),t("div",XY,[tA,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",eA,[t("label",aA,i(e(l)("\u6807\u9898"))+"\uFF1A",1),N(t("input",{id:"tagTitle","onUpdate:modelValue":Y[0]||(Y[0]=z=>b.value=z),type:"text",placeholder:e(l)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,oA),[[ot,b.value]])]),t("div",nA,[t("label",iA,i(e(l)("ID"))+"\uFF1A",1),N(t("input",{id:"tagName","onUpdate:modelValue":Y[1]||(Y[1]=z=>p.value=z),onInput:y,disabled:F.value=="2",type:"text",placeholder:e(l)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,40,rA),[[ot,p.value]])]),t("div",sA,[t("label",dA,i(e(l)("\u7F51\u5173"))+"\uFF1A",1),N(t("input",{id:"gateway","onUpdate:modelValue":Y[2]||(Y[2]=z=>f.value=z),type:"text",placeholder:e(l)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,lA),[[ot,f.value]])]),t("div",cA,[t("button",{class:"cancel-button",onClick:h},i(e(l)("\u53D6\u6D88")),1),t("button",{class:"confirm-button",onClick:A},i(e(l)("\u786E\u5B9A")),1)])])])):C("",!0)]),_:1})],64))}});var pA=O(uA,[["__scopeId","data-v-ed203952"]]);const lo=o=>(ct("data-v-102c75ea"),o=o(),ut(),o),fA={class:"tab-container"},mA={class:"tab-header"},gA=["onClick"],bA={class:"tab-content_g"},vA={key:0,class:"not_installed"},hA=lo(()=>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)),_A={key:1},xA={class:"item_box"},wA={class:"item_left"},kA={class:"item_box"},yA={class:"item_left"},FA=["placeholder"],EA={class:"item_box"},$A={class:"item_left"},CA=["placeholder"],DA={class:"item_box"},BA={class:"item_left"},YA={key:0,class:"not_installed"},AA=lo(()=>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)),SA={key:1},zA={class:"item_box"},PA={class:"item_left"},TA={class:"item_box"},IA={class:"item_left"},MA={key:0,value:"",disabled:""},LA=["value"],OA={class:"item_box"},NA={class:"item_left"},VA=["placeholder"],GA={class:"item_box"},jA={class:"item_left"},UA=["placeholder"],qA={class:"item_box"},RA={class:"item_left"},WA={style:{"margin-bottom":"16px"}},HA={class:"item_box"},JA={class:"item_left"},ZA={class:"item_box"},KA={class:"item_left"},QA=["value"],XA={class:"item_box"},tS={class:"item_left"},eS={style:{display:"flex","justify-content":"end","margin-bottom":"8px"}},aS=["onClick"],oS=["onClick"],nS=T({setup(o,{expose:n}){const{$gettext:a}=H(),l=Z(()=>!p.role),c=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"}]),u=E([{name:a("\u4E3B\u8DEF\u7531"),value:"fallback"},{name:a("\u65C1\u8DEF\u7531"),value:"main"}]),_=vt({dhcpEnabled:!1,dhcpGateway:""}),b=vt({enabled:!1,uploadSpeed:"",downloadSpeed:"",installed:!0}),p=vt({enabled:!1,role:"",setIP:"",checkIP:""}),f=E({}),g=()=>L(this,null,function*(){var nt,K,St,gt,P,Q,et,it,kt,Tt,Ft,ne,ie,re,se,de,le,ce,ue,pe,fe,me,ge;try{const{data:Et}=yield j.DeviceMangement.globalConfigs.GET();if(Et.result){if(f.value=Et.result||{},_.dhcpEnabled=((K=(nt=Et.result)==null?void 0:nt.dhcpGlobal)==null?void 0:K.dhcpEnabled)||!1,(gt=(St=Et.result)==null?void 0:St.dhcpGlobal)!=null&>.dhcpGateway)_.dhcpGateway=(Q=(P=Et.result)==null?void 0:P.dhcpGlobal)==null?void 0:Q.dhcpGateway;else{const ha=(it=(et=Et.result)==null?void 0:et.dhcpGlobal)==null?void 0:it.gatewaySels.find(po=>po.title==="myself");ha?_.dhcpGateway=ha.gateway:_.dhcpGateway=""}c.value=((kt=Et.result)==null?void 0:kt.dhcpTags)||[],b.enabled=((Ft=(Tt=Et.result)==null?void 0:Tt.speedLimit)==null?void 0:Ft.enabled)||!1,b.uploadSpeed=((ie=(ne=Et.result)==null?void 0:ne.speedLimit)==null?void 0:ie.uploadSpeed)||"",b.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=((ue=(ce=Et.result)==null?void 0:ce.floatGateway)==null?void 0:ue.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){}});g();const v=()=>L(this,null,function*(){let nt=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const{data:K}=yield j.DeviceMangement.dhcpGatewayConfig.POST(_);JSON.stringify(K)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),g()):$.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()}}),w=(nt,K)=>L(this,null,function*(){let St=$.Loading(a("\u68C0\u67E5\u4E2D..."));try{const gt=yield j.App.Check.POST({name:nt});if(St.Close(),gt!=null&>.data){const{result:P,error:Q}=gt.data;if(Q)$.Warning(Q);else{if(P)return P.status=="installed";$.Warning(a("\u68C0\u67E5\u63D2\u4EF6\u72B6\u6001\u5931\u8D25"))}}return!1}catch(gt){return St.Close(),$.Warning(gt),!1}}),m=E(!1),F=E(!1),k=()=>L(this,null,function*(){(yield w("app-meta-floatip"))&&(F.value=!0)}),x=()=>L(this,null,function*(){(yield w("app-meta-eqos"))&&(m.value=!0)});k(),x();const h=[{id:"tag",label:a("DHCP")},{id:"gateway",label:a("\u6D6E\u52A8\u7F51\u5173")},{id:"ip",label:a("IP\u9650\u901F")}],y=E("tag");n({activeTab:y});const D=nt=>{y.value=nt},A=E(),S=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,Y=E("app-meta-floatip"),z=Z(()=>Y.value==="app-meta-floatip"?a("\u6D6E\u52A8\u7F51\u5173"):a("IP\u9650\u901F")),R=nt=>L(this,null,function*(){if(Y.value=nt,A.value.openInstallDialog(),yield zt.installApp(nt))return nt=="app-meta-floatip"?k():x(),A.value.showInstallResult(),!0;A.value.cancelInstall(),$.Error(a("\u5B89\u88C5\u5931\u8D25\u6216\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u8F6F\u4EF6\u6E90\u6216\u7A0D\u5019\u91CD\u8BD5"))}),V=nt=>/^([1-9]\d*(\.\d+)?|0\.\d*[1-9]\d*)$/.test(nt.toString()),I=()=>L(this,null,function*(){if(b.enabled){if(!b.downloadSpeed)return $.Warning(`${a("\u8BF7\u8F93\u5165")}${a("\u4E0B\u8F7D\u901F\u5EA6")}`);if(!V(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(!V(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)}else b.downloadSpeed=0,b.uploadSpeed=0;let nt=$.Loading(a("\u4FDD\u5B58\u4E2D..."));try{const{data:K}=yield j.DeviceMangement.enableSpeedLimit.POST(b);JSON.stringify(K)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),g()):$.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()}}),M=(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,W=()=>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(!M("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(!M("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 j.DeviceMangement.enableFloatGateway.POST(p);JSON.stringify(K)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),g()):$.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()}}),X=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"))||(_.dhcpEnabled=!0)},st=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)},at=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"))||(b.enabled=!0)},ft=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...")),St={action:"delete",tagTitle:nt.tagTitle||"",tagName:nt.tagName||"",dhcpOption:(nt==null?void 0:nt.dhcpOption)||[]};try{const{data:gt}=yield j.DeviceMangement.dhcpTagsConfig.POST(St);JSON.stringify(gt)==="{}"?($.Success(a("\u5220\u9664\u6210\u529F")),g()):$.Success((gt==null?void 0:gt.error)||"\u5220\u9664\u5931\u8D25\uFF01")}catch(gt){$.Warning(`${gt==null?void 0:gt.error} || ${gt==null?void 0:gt.message}`)}finally{K.Close()}}}),Dt=()=>{A.value.openTagDialog()},yt=E([]),Vt=nt=>L(this,null,function*(){yt.value=nt.dhcpOption?nt.dhcpOption:[],A.value.tagTitle=nt.tagTitle||"",A.value.tagName=nt.tagName||"",A.value.gateway=nt.gateway||"",yield na(),A.value.openEditTagDialog()}),qe=nt=>L(this,null,function*(){let K=$.Loading(a("\u4FDD\u5B58\u4E2D..."));const St=[`3,${nt.gateway}`,`6,${nt.gateway}`];let gt={action:nt.type==1?"add":"modify",tagTitle:nt.tagTitle,tagName:nt.tagName,dhcpOption:St};try{const{data:P}=yield j.DeviceMangement.dhcpTagsConfig.POST(gt);JSON.stringify(P)==="{}"?($.Success(a("\u4FDD\u5B58\u6210\u529F")),g()):$.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 St,gt;return r(),s("div",fA,[t("div",mA,[(r(),s(U,null,tt(h,P=>t("button",{key:P.id,class:lt(["tab-button",{active:y.value===P.id}]),onClick:Q=>D(P.id)},i(P.label),11,gA)),64))]),t("div",bA,[N(t("div",null,[m.value?(r(),s("div",_A,[t("div",xA,[t("div",wA,i(e(a)("IP\u9650\u901F"))+"\uFF1A",1),B(Ot,{modelValue:e(b).enabled,"onUpdate:modelValue":K[1]||(K[1]=P=>e(b).enabled=P),onChange:at},null,8,["modelValue"])]),e(b).enabled?(r(),s(U,{key:0},[t("div",kA,[t("div",yA,i(e(a)("\u4E0B\u8F7D\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":K[2]||(K[2]=P=>e(b).downloadSpeed=P),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,FA),[[ot,e(b).downloadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)]),t("div",EA,[t("div",$A,i(e(a)("\u4E0A\u4F20\u901F\u5EA6"))+"\uFF08Mbit/s\uFF09\uFF1A",1),N(t("input",{id:"tagName",type:"text","onUpdate:modelValue":K[3]||(K[3]=P=>e(b).uploadSpeed=P),placeholder:e(a)("\u8BF7\u8F93\u5165")+"...",class:"tag-input"},null,8,CA),[[ot,e(b).uploadSpeed,void 0,{trim:!0}]]),dt(" \xA0 "+i(e(a)("\u603B\u5E26\u5BBD")),1)])],64)):C("",!0),t("div",DA,[t("div",BA,[t("button",{class:"add-button add-button--danger",onClick:I},i(e(a)("\u4FDD\u5B58")),1)])])])):(r(),s("div",vA,[hA,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=>R("app-meta-eqos"))},i(e(a)("\u7ACB\u5373\u5B89\u88C5")),1)]))],512),[[ee,y.value==="ip"]]),N(t("div",null,[F.value?(r(),s("div",SA,[t("div",zA,[t("div",PA,i(e(a)("\u6D6E\u52A8\u7F51\u5173"))+"\uFF1A",1),B(Ot,{modelValue:e(p).enabled,"onUpdate:modelValue":K[5]||(K[5]=P=>e(p).enabled=P),onChange:st},null,8,["modelValue"])]),t("div",TA,[t("div",IA,i(e(a)("\u8282\u70B9\u89D2\u8272"))+"\uFF1A",1),N(t("select",{"onUpdate:modelValue":K[6]||(K[6]=P=>e(p).role=P),onChange:K[7]||(K[7]=()=>{})},[e(l)?(r(),s("option",MA,i(e(a)("\u8BF7\u9009\u62E9")),1)):C("",!0),(r(!0),s(U,null,tt(u.value,P=>(r(),s("option",{value:P.value},i(P.name),9,LA))),256))],544),[[pt,e(p).role]])]),t("div",OA,[t("div",NA,i(e(a)("\u6D6E\u52A8\u7F51\u5173"))+"IP\uFF1A",1),N(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,VA),[[ot,e(p).setIP,void 0,{trim:!0}]])]),t("div",GA,[t("div",jA,i(e(a)("\u65C1\u8DEF\u7531IP"))+"\uFF1A",1),N(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,UA),[[ot,e(p).checkIP,void 0,{trim:!0}]])]),t("div",qA,[t("div",RA,[t("button",{class:"add-button add-button--danger",onClick:W},i(e(a)("\u4FDD\u5B58")),1)])])])):(r(),s("div",YA,[AA,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=>R("app-meta-floatip"))},i(e(a)("\u7ACB\u5373\u5B89\u88C5")),1)]))],512),[[ee,y.value==="gateway"]]),N(t("div",null,[t("div",WA,[t("div",HA,[t("div",JA,i(e(a)("\u542F\u7528"))+"DHCP\uFF1A",1),B(Ot,{modelValue:e(_).dhcpEnabled,"onUpdate:modelValue":K[10]||(K[10]=P=>e(_).dhcpEnabled=P),onChange:X},null,8,["modelValue"])]),t("div",ZA,[t("div",KA,"DHCP"+i(e(a)("\u7F51\u5173"))+"\uFF1A",1),N(t("select",{"onUpdate:modelValue":K[11]||(K[11]=P=>e(_).dhcpGateway=P),onChange:K[12]||(K[12]=()=>{})},[(r(!0),s(U,null,tt((gt=(St=f.value)==null?void 0:St.dhcpGlobal)==null?void 0:gt.gatewaySels,P=>(r(),s("option",{value:P.gateway},i(P.gateway)+" ("+i(P.title?S(P.title):"")+") ",9,QA))),256))],544),[[pt,e(_).dhcpGateway]])]),t("div",XA,[t("div",tS,[t("button",{class:"add-button add-button--danger",onClick:v},i(e(a)("\u4FDD\u5B58")),1)])])]),t("div",eS,[t("button",{class:"add-button add-button--danger",onClick:Dt},[t("span",null,i(e(a)("\u6DFB\u52A0")),1)])]),B(je,{data:c.value,columns:d.value,showSelection:!1,showPagination:!1,theadBgColor:"#e8e6f9"},{action:G(({row:P})=>[P.autoCreated?C("",!0):(r(),s("span",{key:0,style:{color:"#553AFE",cursor:"pointer"},onClick:Q=>Vt(P)},i(e(a)("\u7F16\u8F91")),9,aS)),P.autoCreated?C("",!0):(r(),s("span",{key:1,style:{color:"#F04134",cursor:"pointer","margin-left":"18px"},onClick:Q=>ft(P)},i(e(a)("\u5220\u9664")),9,oS))]),tagTitle:G(({row:P})=>[t("span",null,i(S(P.tagTitle)),1)]),tagName:G(({row:P})=>[t("span",null,i(P.tagName||"-"),1)]),gateway:G(({row:P})=>[t("span",null,i(P.gateway||"-"),1)]),_:1},8,["data","columns"])],512),[[ee,y.value==="tag"]])]),B(pA,{ref_key:"tagDialogRef",ref:A,title:e(z),onConfirm:qe},null,8,["title"])])}}});var iS=O(nS,[["__scopeId","data-v-102c75ea"]]);const co=o=>(ct("data-v-39804772"),o=o(),ut(),o),rS={id:"page"},sS={style:{"text-align":"left",display:"flex","align-items":"center","margin-bottom":"20px","padding-top":"4px"}},dS=co(()=>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)),lS={style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color1)","line-height":"1.5em"}},cS={class:"device_container",style:{color:"black"}},uS={class:"tab-container"},pS={class:"tabs_box_g"},fS=["onClick"],mS={class:"tab-content_g"},gS={key:0,class:"content-item"},bS={key:1,class:"content-item"},vS={key:2,class:"content-item"},hS={key:3,class:"content-item"},_S=co(()=>t("div",{style:{height:"30px"}},null,-1)),xS=T({setup(o){const{$gettext:n}=H(),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),c=E(null),d=()=>L(this,null,function*(){l.value=3,yield na(),c.value&&(c.value.activeTab="ip")});return(u,_)=>{const b=xt("router-link");return r(),s(U,null,[t("div",rS,[t("div",sS,[B(b,{to:"/",style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color)","line-height":"1.5em","margin-right":"4px"}},{default:G(()=>[dt(i(e(n)("\u9996\u9875")),1)]),_:1}),dS,t("a",lS,i(e(n)("\u8BBE\u5907\u7BA1\u7406")),1)])]),t("div",cS,[t("div",uS,[t("div",pS,[(r(!0),s(U,null,tt(a.value,(p,f)=>(r(),s("button",{key:f,onClick:g=>l.value=f,class:lt({active:l.value===f})},i(e(n)(p)),11,fS))),128))]),t("div",mS,[l.value===0?(r(),s("div",gS,[B(jB,{onOpenGloba:d})])):C("",!0),l.value===1?(r(),s("div",bS,[B(uY)])):C("",!0),l.value===2?(r(),s("div",vS,[B(OY,{onOpenGloba:d})])):C("",!0),l.value===3?(r(),s("div",hS,[B(iS,{ref_key:"configureRef",ref:c},null,512)])):C("",!0)]),_S])])],64)}}});var wS=O(xS,[["__scopeId","data-v-39804772"]]);const kS={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},yS=["fill"],FS=["fill"],ES=T({props:{color:{type:String,default:"#ffa847"}},setup(o){return(n,a)=>(r(),s("svg",kS,[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,yS),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,FS)]))}}),$S={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},CS=["fill"],DS=T({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,CS)]))}}),Ht=o=>(ct("data-v-cbc39b94"),o=o(),ut(),o),BS={class:"item_container"},YS={class:"item"},AS={class:"item_title"},SS={class:"tip"},zS={class:"item"},PS={class:"item_title"},TS={class:"select_box"},IS={value:null,disabled:"",selected:""},MS=["value"],LS={class:"start_btn"},OS={key:0,class:"progress"},NS=Ht(()=>t("span",null,"25%",-1)),VS={class:"item"},GS={class:"item_title"},jS={class:"log_info"},US={class:"item"},qS={class:"item_title"},RS={class:"result_box"},WS={class:"result"},HS={class:"result_item"},JS=Ht(()=>t("div",{class:"speed_value"},"105.5",-1)),ZS=Ht(()=>t("span",{class:"unit"},"Mbps",-1)),KS=Ht(()=>t("span",{class:"status status_bg1"},"\u4F18\u79C0",-1)),QS={class:"speed_title"},XS={class:"result_item"},tz=Ht(()=>t("div",{class:"speed_value"},"105.5",-1)),ez=Ht(()=>t("span",{class:"unit"},"Mbps",-1)),az=Ht(()=>t("span",{class:"status status_bg2"},"\u826F\u597D",-1)),oz={class:"speed_title"},nz=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),iz=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)),rz=T({setup(o){const{$gettext:n}=H(),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"}]),c=E(null),d=E(!1),u=()=>{!c.value||(d.value=!0)};return(_,b)=>(r(),s(U,null,[t("div",BS,[t("div",YS,[t("div",AS,[B(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:b[0]||(b[0]=p=>a.value=!0)},[t("div",null,[B(ze,{color:"#ffffff",class:"icon1"}),t("span",null,i(e(n)("\u5F00\u59CB\u5185\u7F51\u6D4B\u901F")),1)])]),t("p",SS,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",zS,[t("div",PS,[B(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",TS,[t("div",null,i(e(n)("\u9009\u62E9\u6D4B\u901F\u8282\u70B9")),1),N(t("select",{"onUpdate:modelValue":b[1]||(b[1]=p=>c.value=p),id:"node",required:"",class:lt({"is-placeholder":!c.value})},[t("option",IS,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,MS))),256))],2),[[pt,c.value]])]),t("div",{class:lt(["wifi_btn m-20",{"is-bg":!c.value||d.value}]),onClick:u},[t("div",LS,[d.value?(r(),s("span",{key:0,class:lt(["icon3-wrap",{"is-rotating":d.value}])},[B(ES,{color:"#ffffff",class:"icon3"})],2)):(r(),J(xe,{key:1,color:"#ffffff",class:"icon2"})),t("span",null,i(e(n)("\u5F00\u59CB\u6D4B\u901F")),1)])],2),d.value?(r(),s("div",OS,[t("p",null,[dt(i(e(n)("\u6D4B\u901F\u8FDB\u5EA6"))+" ",1),NS]),B(ao,{percentage:25,showPercentage:!1,height:"10px",borderRadius:"10px",color:"#030213",backgroundColor:"#cdccd0"})])):C("",!0)]),t("div",VS,[t("div",GS,[B(Ka,{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",jS,[(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",US,[t("div",qS,[B(no,{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",RS,[t("div",WS,[t("div",HS,[B(Kt,{color:"#155dfc",class:"icon_speed"}),JS,ZS,KS,t("div",QS,i(e(n)("\u4E0B\u8F7D\u901F\u5EA6")),1)]),t("div",XS,[B(DS,{color:"#00a63e",class:"icon_speed1"}),tz,ez,az,t("div",oz,i(e(n)("\u4E0A\u4F20\u901F\u5EA6")),1)])]),nz])])]),B(Xt,{modelValue:a.value,"onUpdate:modelValue":b[2]||(b[2]=p=>a.value=p),title:"\u5185\u7F51\u8BBF\u95EE\u5730\u5740",width:"550px",footerShow:!1,"show-close":!0},{default:G(()=>[iz]),_:1},8,["modelValue"])],64))}});var sz=O(rz,[["__scopeId","data-v-cbc39b94"]]);const dz={width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"none"},lz=["fill"],cz=T({props:{color:{type:String,default:"#155dfc"}},setup(o){return(n,a)=>(r(),s("svg",dz,[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,lz)]))}}),va=o=>(ct("data-v-164df064"),o=o(),ut(),o),uz={id:"page"},pz={style:{"text-align":"left",display:"flex","align-items":"center","margin-bottom":"20px","padding-top":"4px"}},fz=va(()=>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)),mz={style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color1)","line-height":"1.5em"}},gz={class:"container",style:{color:"black"}},bz={class:"title"},vz=va(()=>t("span",null,"\u7F51\u7EDC\u6D4B\u901F\u5DE5\u5177",-1)),hz=va(()=>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)),_z=T({setup(o){const{$gettext:n}=H();return(a,l)=>{const c=xt("router-link");return r(),s(U,null,[t("div",uz,[t("div",pz,[B(c,{to:"/",style:{"text-decoration":"none",color:"var(--breadcrumbs-tit-color)","line-height":"1.5em","margin-right":"4px"}},{default:G(()=>[dt(i(e(n)("\u9996\u9875")),1)]),_:1}),fz,t("a",mz,i(e(n)("\u7F51\u7EDC\u6D4B\u901F")),1)])]),t("div",gz,[t("div",bz,[t("div",null,[B(cz,{class:"icon"}),vz]),hz]),B(sz)])],64)}}});var xz=O(_z,[["__scopeId","data-v-164df064"]]);const Ce=o=>(ct("data-v-2b19eb04"),o=o(),ut(),o),wz=["onSubmit"],kz={class:"form-item"},yz={class:"label-name"},Fz={class:"label-value switch_label"},Ez={class:"label-flex pc-radio"},$z=["disabled"],Cz=["disabled"],Dz=Ce(()=>t("div",{class:"switch-button"},null,-1)),Bz=[Dz],Yz={key:0,class:"form-item"},Az={class:"label-name"},Sz={class:"label-value"},zz=["disabled"],Pz={value:100},Tz={value:70},Iz={value:50},Mz={value:30},Lz={key:0,class:"select-arrow"},Oz={class:"form-item"},Nz={class:"label-name"},Vz={class:"label-value"},Gz=["disabled","placeholder"],jz={class:"form-item"},Uz={class:"label-name"},qz={class:"label-value"},Rz=["disabled"],Wz=["value"],Hz={key:0,class:"select-arrow"},Jz={class:"form-item"},Zz={class:"label-name"},Kz={class:"label-value"},Qz=["type","disabled","placeholder"],Xz={key:0,class:"seeIcon",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},tP=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)),eP=[tP],aP={key:1,class:"seeIcon",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},oP=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)),nP=[oP],iP={class:"form-item"},rP={class:"label-name"},sP={class:"label-value"},dP=["disabled"],lP={value:!1},cP={value:!0},uP={key:0,class:"select-arrow"},pP={key:1,class:"form-item"},fP={class:"label-name"},mP={class:"label-value"},gP=["disabled"],bP=["value"],vP={key:0,class:"select-arrow"},hP={key:2,class:"form-item"},_P={class:"label-name"},xP={class:"label-value"},wP=["disabled"],kP=Ce(()=>t("option",{value:"20"},"20 MHz",-1)),yP=Ce(()=>t("option",{value:"40"},"40 MHz",-1)),FP={key:0,value:"auto"},EP={key:1,value:"80"},$P={key:2,value:"160"},CP={key:0,class:"select-arrow"},DP={key:3,class:"form-item"},BP={class:"label-name"},YP={class:"label-value"},AP=["disabled"],SP={value:0},zP=["value"],PP=["disabled"],TP={value:0},IP=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),MP={key:2,class:"select-arrow"},LP={key:4,class:"form-item"},OP={class:"label-name"},NP={class:"label-value"},VP=["placeholder","disabled"],GP={class:"label-btns"},jP=["disabled"],UP=T({props:{data:null},emits:["getData"],setup(o,{emit:n}){const a=o,{$gettext:l,$ngettext:c}=H(),d=E(Object.assign({},a.data)),u=Do("disabled"),_=E(!0),b=()=>{u.value||(d.value.disabled=!d.value.disabled)};$t(()=>d.value.disabled,w=>{f()});const p=()=>L(this,null,function*(){if(d.value.txpower===a.data.txpower)return;const w=$.Loading("\u914D\u7F6E\u4E2D...");try{const{data:m}=yield j.Quickwifi.Power.POST({device:d.value.device||"",txpower:d.value.txpower||0}),{error:F,success:k}=m;if(F)throw F;(k==null||k==0)&&$.Success("\u914D\u7F6E\u5B8C\u6210")}catch(m){throw $.Error("\u914D\u7F6E\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),m}finally{w.Close()}}),f=()=>L(this,null,function*(){const w=$.Loading("\u914D\u7F6E\u4E2D...");try{const{data:m}=yield j.Quickwifi.Switch.POST({ifaceName:d.value.ifaceName||"",enable:!d.value.disabled}),{error:F,success:k}=m;if(F)throw F;(k==null||k==0)&&$.Success("\u914D\u7F6E\u5B8C\u6210")}catch(m){throw console.error("\u8BF7\u6C42\u51FA\u9519:",m),$.Error("\u914D\u7F6E\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),m}finally{w.Close()}}),g=()=>L(this,null,function*(){const w=rt({},d.value);delete w.encryptSelects,delete w.hwmodeSelects,delete w.disabled,delete w.txpower;const{data:m}=yield j.Quickwifi.Edit.POST(w),{error:F,success:k}=m;if(F)throw F;(k==null||k==0)&&$.Success("\u914D\u7F6E\u5B8C\u6210")}),v=()=>L(this,null,function*(){if(u.value)return;u.value=!0;const w=$.Loading("\u914D\u7F6E\u4E2D...");try{yield g(),yield n("getData")}catch(m){const F=$.Error(`${m}`);setTimeout(()=>{F.Close()},2e3)}finally{w.Close(),u.value=!1}});return(w,m)=>(r(),s("form",{class:"form-container",onSubmit:mt(v,["prevent"])},[t("div",kz,[t("div",yz,[t("span",null,i(e(l)("\u542F\u7528Wi-Fi")),1)]),t("div",Fz,[t("div",Ez,[t("label",null,[N(t("input",{type:"radio",value:!1,"onUpdate:modelValue":m[0]||(m[0]=F=>d.value.disabled=F),disabled:e(u)},null,8,$z),[[Bt,d.value.disabled]]),dt(" "+i(e(l)("\u5F00\u542F")),1)]),t("label",null,[N(t("input",{type:"radio",value:!0,"onUpdate:modelValue":m[1]||(m[1]=F=>d.value.disabled=F),disabled:e(u)},null,8,Cz),[[Bt,d.value.disabled]]),dt(" "+i(e(l)("\u5173\u95ED")),1)])]),t("div",{class:"mobile-switch",onClick:b},[t("div",{class:lt(["switch-core",{"is-checked":!d.value.disabled,"is-disabled":e(u)}])},Bz,2)])])]),d.value.isGuest?C("",!0):(r(),s("div",Yz,[t("div",Az,[t("span",null,i(e(l)("\u53D1\u5C04\u529F\u7387")),1)]),t("div",Sz,[N(t("select",{"onUpdate:modelValue":m[2]||(m[2]=F=>d.value.txpower=F),disabled:e(u),onChange:p},[t("option",Pz,i(e(l)("\u6700\u5927")),1),t("option",Tz,i(e(l)("\u9AD8")),1),t("option",Iz,i(e(l)("\u4E2D")),1),t("option",Mz,i(e(l)("\u4F4E")),1)],40,zz),[[pt,d.value.txpower]]),e(u)?C("",!0):(r(),s("div",Lz))])])),t("div",Oz,[t("div",Nz,[t("span",null,i(e(l)("Wi-Fi\u540D\u79F0\uFF08SSID\uFF09")),1)]),t("div",Vz,[N(t("input",{"onUpdate:modelValue":m[3]||(m[3]=F=>d.value.ssid=F),disabled:e(u),placeholder:e(l)("\u8BF7\u8F93\u5165WIFI\u540D\u79F0")},null,8,Gz),[[ot,d.value.ssid]])])]),t("div",jz,[t("div",Uz,[t("span",null,i(e(l)("Wi-Fi \u5B89\u5168\u6027")),1)]),t("div",qz,[N(t("select",{"onUpdate:modelValue":m[4]||(m[4]=F=>d.value.encryption=F),disabled:e(u)},[(r(!0),s(U,null,tt(d.value.encryptSelects,F=>(r(),s("option",{value:F},i(F),9,Wz))),256))],8,Rz),[[pt,d.value.encryption]]),e(u)?C("",!0):(r(),s("div",Hz))])]),t("div",Jz,[t("div",Zz,[t("span",null,i(e(l)("Wi-Fi \u5BC6\u7801")),1)]),t("div",Kz,[N(t("input",{"onUpdate:modelValue":m[5]||(m[5]=F=>d.value.key=F),class:"password_input",type:_.value?"password":"",disabled:e(u),placeholder:e(l)("\u8BF7\u8F93\u5165WIFI\u5BC6\u7801")},null,8,Qz),[[Bo,d.value.key]]),e(u)?C("",!0):(r(),s("div",{key:0,onClick:m[6]||(m[6]=F=>_.value=!_.value)},[_.value?(r(),s("svg",Xz,eP)):(r(),s("svg",aP,nP))]))])]),t("div",iP,[t("div",rP,[t("span",null,i(e(l)("SSID \u53EF\u89C1\u6027")),1)]),t("div",sP,[N(t("select",{"onUpdate:modelValue":m[7]||(m[7]=F=>d.value.hidden=F),disabled:e(u)},[t("option",lP,i(e(l)("\u663E\u793A")),1),t("option",cP,i(e(l)("\u9690\u85CF")),1)],8,dP),[[pt,d.value.hidden]]),e(u)?C("",!0):(r(),s("div",uP))])]),d.value.isGuest?C("",!0):(r(),s("div",pP,[t("div",fP,[t("span",null,i(e(l)("\u65E0\u7EBF\u6A21\u5F0F")),1)]),t("div",mP,[N(t("select",{"onUpdate:modelValue":m[8]||(m[8]=F=>d.value.hwmode=F),disabled:e(u)},[(r(!0),s(U,null,tt(d.value.hwmodeSelects,F=>(r(),s("option",{value:F},i(F),9,bP))),256))],8,gP),[[pt,d.value.hwmode]]),e(u)?C("",!0):(r(),s("div",vP))])])),d.value.isGuest?C("",!0):(r(),s("div",hP,[t("div",_P,[t("span",null,i(e(l)("\u9891\u5BBD")),1)]),t("div",xP,[N(t("select",{"onUpdate:modelValue":m[9]||(m[9]=F=>d.value.htmode=F),disabled:e(u)},[kP,yP,d.value.band==="2g"?(r(),s("option",FP," 20/40 MHz ")):C("",!0),d.value.band==="5g"?(r(),s("option",EP," 80 MHz ")):C("",!0),d.value.band==="5g"?(r(),s("option",$P," 160 MHz ")):C("",!0)],8,wP),[[pt,d.value.htmode]]),e(u)?C("",!0):(r(),s("div",CP))])])),d.value.isGuest?C("",!0):(r(),s("div",DP,[t("div",BP,[t("span",null,i(e(l)("\u4FE1\u9053")),1)]),t("div",YP,[d.value.band==="2g"?N((r(),s("select",{key:0,"onUpdate:modelValue":m[10]||(m[10]=F=>d.value.channel=F),disabled:e(u)},[t("option",SP,i(e(l)("\u81EA\u52A8")),1),(r(),s(U,null,tt(13,F=>t("option",{value:F},i(F),9,zP)),64))],8,AP)),[[pt,d.value.channel,void 0,{number:!0}]]):C("",!0),d.value.band==="5g"?N((r(),s("select",{key:1,"onUpdate:modelValue":m[11]||(m[11]=F=>d.value.channel=F),disabled:e(u)},[t("option",TP,i(e(l)("\u81EA\u52A8")),1),IP],8,PP)),[[pt,d.value.channel,void 0,{number:!0}]]):C("",!0),e(u)?C("",!0):(r(),s("div",MP))])])),d.value.isGuest?C("",!0):(r(),s("div",LP,[t("div",OP,[t("span",null,i(e(l)("\u7F51\u7EDC")),1)]),t("div",NP,[N(t("input",{type:"text",placeholder:e(l)("\u8BF7\u914D\u7F6E\u7F51\u7EDC\u540D\u79F0"),required:"","onUpdate:modelValue":m[12]||(m[12]=F=>d.value.network=F),disabled:e(u)},null,8,VP),[[ot,d.value.network]])])])),t("div",GP,[t("button",{class:"btn primary-btn",disabled:e(u),onClick:v},i(e(l)("\u4FDD\u5B58\u914D\u7F6E")),9,jP)])],40,wz))}});var qP=O(UP,[["__scopeId","data-v-2b19eb04"]]);const Ue=o=>(ct("data-v-42d0731d"),o=o(),ut(),o),RP={id:"page",class:"page-container"},WP={class:"mobile-tags-container"},HP={class:"tags-wrapper"},JP={class:"tags-scroll"},ZP=["onClick"],KP={class:"more-btn-wrapper"},QP=Ue(()=>t("div",{class:"fade-overlay"},null,-1)),XP=Ue(()=>t("div",{class:"line"},null,-1)),tT=Ue(()=>t("div",{class:"line"},null,-1)),eT=Ue(()=>t("div",{class:"line"},null,-1)),aT=[XP,tT,eT],oT={class:"page-flex"},nT={class:"page-sidebar"},iT=["onClick"],rT={class:"page-main"},sT={class:"popup-content"},dT={class:"popup-tags"},lT=["onClick"],cT={class:"popup-footer"},uT=T({setup(o){var F;const{$gettext:n}=H(),a=E(!1);Yo("disabled",a);const l=E([]),c=Pe(),d=aa(),u=E(String((F=c==null?void 0:c.query)==null?void 0:F.tab)),_=E(!1),b=k=>{var x;return(x=k.band)==null?void 0:x.toUpperCase()},p=k=>k.isGuest?k.band+"_Guest":k.ssid,f=k=>{a.value||(u.value=p(k),_.value=!1,u.value!==c.query.tab&&d.push({query:{tab:u.value}}))},g=E(),v=k=>{a.value||(g.value=p(k))},w=()=>{_.value=!1,g.value!==c.query.tab&&d.push({query:{tab:g.value}})};$t(()=>_.value,k=>{k?g.value=u.value:u.value=g.value});const m=()=>L(this,null,function*(){try{const{data:k}=yield j.Quickwifi.List.GET(),{error:x,result:h}=k;if(x)throw x;h!=null&&h.ifaces&&(l.value=h.ifaces.map(D=>bt(rt({},D),{hidden:D.hidden||!1,disabled:D.disabled||!1,isGuest:D.isGuest||!1,channel:D.channel||0,txpower:D.txpower||0,ifaceIndex:D.ifaceIndex||0})));let y=!1;for(let D=0;D<l.value.length;D++)if(p(l.value[D])===u.value){f(l.value[D]),y=!0;break}!y&&l.value.length>0&&f(l.value[0])}catch(k){console.log(k)}});return m(),(k,x)=>(r(),s("div",RP,[t("div",WP,[t("div",HP,[t("div",JP,[(r(!0),s(U,null,tt(l.value,h=>(r(),s("div",{key:p(h),class:lt(u.value===p(h)?"tag-item active":"tag-item"),onClick:mt(y=>f(h),["stop"])},i(b(h))+" "+i(h.isGuest?` ${e(n)("\u8BBF\u5BA2")}`:"")+" Wi-Fi "+i(h.ifaceIndex?`[${h.ifaceIndex}]`:""),11,ZP))),128))]),t("div",KP,[QP,t("div",{class:"more-btn",onClick:x[0]||(x[0]=h=>_.value=!0)},aT)])])]),t("div",oT,[t("div",nT,[(r(!0),s(U,null,tt(l.value,h=>(r(),s("div",{key:p(h),class:lt(u.value===p(h)?"item activeItem":"item"),onClick:mt(y=>f(h),["stop"])},i(b(h))+" "+i(h.isGuest?` ${e(n)("\u8BBF\u5BA2")}`:"")+" Wi-Fi "+i(h.ifaceIndex?`[${h.ifaceIndex}]`:""),11,iT))),128))]),t("div",rT,[(r(!0),s(U,null,tt(l.value,h=>(r(),s(U,{key:p(h)},[u.value===p(h)?(r(),J(qP,{key:0,data:h,onGetData:m},null,8,["data"])):C("",!0)],64))),128))])]),_.value?(r(),s("div",{key:0,class:"popup-overlay",onClick:x[2]||(x[2]=mt(h=>_.value=!1,["self"]))},[t("div",sT,[t("div",dT,[(r(!0),s(U,null,tt(l.value,h=>(r(),s("div",{key:p(h),class:lt(g.value===p(h)?"popup-tag-item active":"popup-tag-item"),onClick:mt(y=>v(h),["stop"])},i(b(h))+" "+i(h.isGuest?` ${e(n)("\u8BBF\u5BA2")}`:"")+" Wi-Fi "+i(h.ifaceIndex?`[${h.ifaceIndex}]`:""),11,lT))),128))]),t("div",cT,[t("button",{class:"cancel-btn",onClick:x[1]||(x[1]=h=>_.value=!1)},i(e(n)("\u53D6\u6D88")),1),t("button",{class:"confirm-btn",onClick:w},i(e(n)("\u786E\u5B9A")),1)])])])):C("",!0)]))}});var pT=O(uT,[["__scopeId","data-v-42d0731d"]]);const fT=()=>window.vue_base||"/cgi-bin/luci/admin/quickstart",uo=Ao({history:So(fT()),routes:[{name:"IndexPage",path:"/",meta:{title:"\u63A7\u5236\u53F0"},component:wh},{name:"NetworkPage",path:"/network",meta:{title:"\u7F51\u7EDC\u8BBE\u7F6E\u5411\u5BFC"},component:Fh,children:[{path:"",component:n_},{path:"pppoe",component:C_},{path:"dhcp",component:px},{path:"gateway",component:aw}]},{path:"/quickwifi",component:pT},{name:"RaidPage",path:"/raid",meta:{title:"raid\u5411\u5BFC"},component:Ey},{name:"SmartPage",path:"/smart",meta:{title:"smart\u68C0\u6D4B"},component:zy,children:[{path:"",component:P$},{path:"task",component:J$},{path:"log",component:X$}]},{path:"/interfaceconfig",component:lD},{path:"/devicemanagement",component:wS},{path:"/networkSpeedTest",component:xz}]});uo.beforeEach((o,n)=>(o.meta.title,!0));const Ct=_t(nn);Ct.component("svg-menu",pn);Ct.component("svg-system",hn);Ct.component("svg-download",Fn);Ct.component("svg-store",Sn);Ct.component("svg-info",Ln);Ct.component("svg-disk",di);Ct.component("svg-nav",mi);Ct.component("progress-item",Va);Ct.component("svg-view-show",Li);Ct.component("svg-view-hidden",Ui);Ct.component("article-item",Ki);Ct.component("switch-box",Ga);Ct.component("editable-select",Zt);Ct.use(ja);Ct.use(uo);Ct.use(zo());To(Ct).finally(()=>Ct.mount("#app"))});export default mT();
|