4 lines
320 KiB
JavaScript
4 lines
320 KiB
JavaScript
var fa=Object.defineProperty,ma=Object.defineProperties;var ba=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var va=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable;var he=(e,a,o)=>a in e?fa(e,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[a]=o,W=(e,a)=>{for(var o in a||(a={}))va.call(a,o)&&he(e,o,a[o]);if(Le)for(var o of Le(a))ga.call(a,o)&&he(e,o,a[o]);return e},tt=(e,a)=>ma(e,ba(a));var _a=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var Wt=(e,a,o)=>(he(e,typeof a!="symbol"?a+"":a,o),o);var T=(e,a,o)=>new Promise((n,s)=>{var p=d=>{try{f(o.next(d))}catch(l){s(l)}},c=d=>{try{f(o.throw(d))}catch(l){s(l)}},f=d=>d.done?n(d.value):Promise.resolve(d.value).then(p,c);f((o=o.apply(e,a)).next())});import{d as Kt,a as P,c as R,u as w,o as i,b as r,e as t,t as h,n as Pt,f as $,r as J,g as A,h as st,i as $t,w as S,v as Tt,j as ha,k as M,l as q,m as It,p as xa,q as y,s as Dt,x as Nt,y as ka,z as wa,A as ya,B as Fa,C as Ea,D as Ca,E as $a,F as ot,T as ht,G as O,H as N,I as X,J as L,K as Z,L as j,M as V,N as Da,O as nt,P as kt,Q as U,R as pt,S as se,U as we,V as Ba,W as Ya,X as de,Y as Aa,Z as Sa,_ as za,$ as Pa}from"./vendor.js?v=a03fce7d";var gy=_a(Xt=>{const Ta=function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const p of s)if(p.type==="childList")for(const c of p.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function o(s){const p={};return s.integrity&&(p.integrity=s.integrity),s.referrerpolicy&&(p.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?p.credentials="include":s.crossorigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function n(s){if(s.ep)return;s.ep=!0;const p=o(s);fetch(s.href,p)}};Ta();const Ia=(e,a)=>T(Xt,null,function*(){return new Promise((o,n)=>T(Xt,null,function*(){try{const s=yield fetch(e,a);if(Math.floor(s.status/100)!=2)throw s.status+" "+s.statusText;const p=W({},s);p.data=yield s.json(),o(p)}catch(s){const p=s;n("\u7F51\u7EDC\u5F02\u5E38\uFF1A"+((p==null?void 0:p.message)||s))}}))});class ye{constructor(a){Wt(this,"config",{baseURL:"",headers:{}});Wt(this,"useRequest",a=>a);Wt(this,"useResponse",a=>a);Wt(this,"useError",a=>a);a.baseURL&&(this.config.baseURL=a.baseURL),a.headers&&(this.config.headers=a.headers)}static create(a){return new ye(a)}Do(a,o){return T(this,null,function*(){return new Promise((n,s)=>T(this,null,function*(){try{const p=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});a=`${p.baseURL||""}${a}`,o.headers==null&&(o.headers={}),p.headers&&(o.headers=W({},p.headers));const f=yield fetch(a,o),d=W({},f);d.data=yield f.json(),n(this.useResponse(d))}catch(p){this.useError(p),s(p)}}))})}TEXT(a,o){return T(this,null,function*(){return new Promise((n,s)=>T(this,null,function*(){try{const p=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});a=`${p.baseURL||""}${a}`,o.headers==null&&(o.headers={}),p.headers&&(o.headers=W({},p.headers));const f=yield fetch(a,o),d=W({},f);d.data=yield f.text(),n(d)}catch(p){this.useError(p),s(p)}}))})}interceptors(){const a=this;return{requset:{use(o){a.useRequest=o}},response:{use(o,n){a.useResponse=o,n&&(a.useError=n)}}}}}const Ve=ye.create({});Ve.interceptors().requset.use(e=>e);Ve.interceptors().response.use(e=>(e.data&&e.data.success==null&&e.data.success==0,e));const La="/cgi-bin/luci/istore";let Me=!1;const I=(e,a)=>(e.indexOf("//")==-1&&(e=`${La}${e}`),Ia(e,a).then(o=>(o!=null&&o.data&&o.data.success==-1001&&o.data.error=="Forbidden"&&(Me||(Me=!0,alert("\u767B\u5F55\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),location.reload())),o))),Ma={Statistics:{GET(){return I("/network/statistics/",{method:"GET"})}},Status:{GET(){return I("/network/status/",{method:"GET"})}},Device:{List:{GET(){return I("/network/device/list/",{method:"GET"})}}},Homebox:{Enable:{POST(){return I("/network/homebox/enable/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},CheckPublickNet:{POST(e){return I("/network/checkPublicNet/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GetInterfaceConfig:{GET(){return I("/network/interface/config/",{method:"GET",headers:{"Content-Type":"application/json;charset=utf-8"}})}},POSTInterfaceConfig:{POST(e){return I("/network/interface/config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},PortList:{GET(){return I("/network/port/list/",{method:"GET",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},Oa={Version:{GET(){return I("/system/version/",{method:"GET"})}},CheckUpdate:{GET(){return I("/system/check-update/",{method:"GET"})}},Reboot:{POST(e){return I("/system/reboot/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Status:{GET(){return I("/system/status/",{method:"GET"})}}},Na={Disk:{Status:{GET(){return I("/nas/disk/status/",{method:"GET"})}},Erase:{POST(e){return I("/nas/disk/erase",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Init:{POST:e=>I("/nas/disk/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},InitRest:{POST:e=>I("/nas/disk/initrest/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},Partition:{Format:{POST:e=>I("/nas/disk/partition/format",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},Mount:{POST:e=>I("/nas/disk/partition/mount",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Service:{Status:{GET(){return I("/nas/service/status/",{method:"GET"})}}},Samba:{Create:{POST(e){return I("/nas/samba/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Webdav:{Create:{POST(e){return I("/nas/webdav/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Status:{GET(){return I("/nas/webdav/status/",{method:"GET"})}}},Linkease:{Enable:{POST(){return I("/nas/linkease/enable",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},Sandbox:{POST(e){return I("/nas/sandbox/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GetSandbox:{GET(){return I("/nas/sandbox/",{method:"GET"})}},SandboxDisks:{GET(){return I("/nas/sandbox/disks/",{method:"GET"})}},SandboxCommit:{POST(){return I("/nas/sandbox/commit/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify({})})}},SandboxReset:{POST(){return I("/nas/sandbox/reset/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}},SandboxExit:{POST(){return I("/nas/sandbox/exit/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}},qa={Check:{POST(e){return I("/app/check/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Install:{POST(e){return I("/app/install/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},ja={Pppoe:{GET(){return I("/guide/pppoe/",{method:"GET"})},POST(e){return I("/guide/pppoe/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DnsConfig:{GET(){return I("/guide/dns-config/",{method:"GET"})},POST(e){return I("/guide/dns-config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DhcpClient:{POST(e){return I("/guide/dhcp-client/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},ClientModel:{GET(){return I("/guide/client-mode/",{method:"GET"})},POST(e){return I("/guide/client-mode/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GatewayRouter:{POST(e){return I("/guide/gateway-router/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DockerStatus:{GET(){return I("/guide/docker/status/",{method:"GET"})}},DockerPartitionList:{GET(){return I("/guide/docker/partition/list/",{method:"GET"})}},DockerTransfer:{POST(e){return I("/guide/docker/transfer/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DockerSwitch:{POST(e){return I("/guide/docker/switch/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DownloadService:{Status:{GET(){return I("/guide/download-service/status/",{method:"GET"})}}},DownloadPartition:{List:{GET(){return I("/guide/download/partition/list/",{method:"GET"})}}},Aria2Init:{POST(e){return I("/guide/aria2/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},qbitorrentInit:{POST(e){return I("/guide/qbittorrent/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},transmissionInit:{POST(e){return I("/guide/transmission/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GetLan:{GET(){return I("/guide/lan/",{method:"GET"})}},LanIp:{POST(e){return I("/guide/lan/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},SoftSource:{POST(e){return I("/guide/soft-source/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GetSoftSource:{GET(){return I("/guide/soft-source/",{method:"GET"})}},SoftSourceList:{GET(){return I("/guide/soft-source/list/",{method:"GET"})}},PostDdns:{POST(e){return I("/guide/ddns/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GetDdns:{GET(){return I("/guide/ddns/",{method:"GET"})}},Ddnsto:{POST(e){return I("/guide/ddnsto/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DdntoConfig:{GET(){return I("/guide/ddnsto/config/",{method:"GET"})}},DdnstoAddress:{POST(e){return I("/guide/ddnsto/address/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Ra={Create:{POST(e){return I("/raid/create/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Delete:{POST(e){return I("/raid/delete/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Add:{POST(e){return I("/raid/add/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Remove:{POST(e){return I("/raid/remove/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Recover:{POST(e){return I("/raid/recover/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Detail:{POST(e){return I("/raid/detail/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},List:{GET(){return I("/raid/list/",{method:"GET"})}},CreateList:{GET(){return I("/raid/create/list/",{method:"GET"})}},Autofix:{GET(){return I("/raid/autofix/",{method:"GET"})}}},Ga={Log:{GET(){return I("/smart/log/",{method:"GET"})}},List:{GET(){return I("/smart/list/",{method:"GET"})}},Config:{GET(){return I("/smart/config/",{method:"GET"})},POST(e){return I("/smart/config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Test:{POST(e){return I("/smart/test/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},Result:{POST(e){return I("/smart/test/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Attribute:{Result:{POST(e){return I("/smart/attribute/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Extend:{Result:{POST(e){return I("/smart/extend/result/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}}};var Va=Object.freeze(Object.defineProperty({__proto__:null,Network:Ma,System:Oa,Nas:Na,App:qa,Guide:ja,Raid:Ra,Smart:Ga},Symbol.toStringTag,{value:"Module"})),z=W({},Va);const Ue=Kt("app",{state:()=>({portitemStyle:{show:!1,left:0,top:0,portitem:{name:"",macAddress:"",linkSpeed:"",linkState:"",rx_packets:"",tx_packets:"",interfaceNames:[],master:"",duplex:""}}})});Kt("guide",{});const We=Kt("nas",{state:()=>({webdav:{}})}),ue=Kt("network",{state:()=>({status:{},statistics:{},deviceList:{}}),getters:{},actions:{updateNetworkStatus(e){this.status=e},requestNetworkStatistics(){return T(this,null,function*(){try{const e=yield z.Network.Statistics.GET();e!=null&&e.data&&e.data.result&&(this.statistics=e.data.result)}catch(e){console.log(e)}})},requestDeviceList(){z.Network.Device.List.GET().then(e=>{if(e!=null&&e.data){const{result:a}=e==null?void 0:e.data;a&&(this.deviceList=a)}})},incrTime(){this.status.uptimeStamp&&this.status.uptimeStamp++}}}),Fe=Kt("system",{state:()=>({version:{},checkUpdate:null,systemStatus:{}}),getters:{},actions:{incrTime(){var e;(e=this.systemStatus)!=null&&e.uptime&&this.systemStatus.uptime++},requestVersion(){z.System.Version.GET().then(e=>{var a;(a=e==null?void 0:e.data)!=null&&a.result&&(this.version=e.data.result)})},requestCheckUpdate(){z.System.CheckUpdate.GET().then(e=>{var a;(a=e==null?void 0:e.data)!=null&&a.result&&(this.checkUpdate=e.data.result)})},updateSystemStatus(e){this.systemStatus=e}}});let Oe=!1;const Ua=()=>{if(Oe)return;Oe=!0;let e=!0,a=!0;const o=ue(),n=Fe(),s=function(){return z.System.Status.GET().then(c=>{c!=null&&c.data.result&&n.updateSystemStatus(c.data.result)}).finally(()=>{setTimeout(s,5e3),e&&(setInterval(()=>{n.incrTime()},1e3),e=!1)})},p=function(){return z.Network.Status.GET().then(c=>{if(c!=null&&c.data){const{result:f}=c==null?void 0:c.data;f&&o.updateNetworkStatus(f)}}).finally(()=>{setTimeout(p,5e3),a&&(setInterval(()=>{o.incrTime()},1e3),a=!1)})};p(),o.requestDeviceList(),setTimeout(()=>{n.requestCheckUpdate()},2e3),setTimeout(()=>{n.requestVersion(),s()},4e3)};var Y=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o};const Wa=P({setup(e){const a=Ue(),o=R(()=>a.portitemStyle.portitem),n=R(()=>a.portitemStyle.show),s=R(()=>({bottom:`calc(100% - ${a.portitemStyle.top}px)`,left:`${a.portitemStyle.left}px`})),p=d=>{switch(d){case"full":return"\u5168\u53CC\u5DE5";case"half":return"\u534A\u53CC\u5DE5"}},c=d=>{a.portitemStyle.show=!0},f=d=>{a.portitemStyle.show=!1};return(d,l)=>w(n)?(i(),r("div",{key:0,class:"disk-item-tooltip",style:Pt(w(s)),onMouseenter:c,onMouseleave:f},[t("div",null,h(p(w(o).duplex)),1),t("div",null,"\u540D\u79F0\uFF1A"+h(w(o).name||"--"),1),t("div",null,"MAC\uFF1A"+h(w(o).macAddress||"--"),1),t("div",null,"\u63A5\u6536\uFF1A"+h(w(o).rx_packets||"--"),1),t("div",null,"\u53D1\u9001\uFF1A"+h(w(o).tx_packets||"--"),1)],36)):$("",!0)}});var Za=Y(Wa,[["__scopeId","data-v-57f1326f"]]);const Ha={id:"main"},Ja=P({setup(e){return(a,o)=>{const n=J("router-view");return i(),r("div",Ha,[A(n),A(Za)])}}});var Xa=Y(Ja,[["__scopeId","data-v-9bc295c2"]]);const Ka={},Qa={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"},to=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),eo=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),ao=[to,eo];function oo(e,a){return i(),r("svg",Qa,ao)}var no=Y(Ka,[["render",oo]]);const io={},ro={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"},so=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),uo=[so];function lo(e,a){return i(),r("svg",ro,uo)}var co=Y(io,[["render",lo]]);const po={},fo={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"},mo=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),bo=[mo];function vo(e,a){return i(),r("svg",fo,bo)}var go=Y(po,[["render",vo]]);const _o={},ho={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"},xo=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),ko=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),wo=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),yo=[xo,ko,wo];function Fo(e,a){return i(),r("svg",ho,yo)}var Eo=Y(_o,[["render",Fo]]);const Co={},$o={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"},Do=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),Bo=[Do];function Yo(e,a){return i(),r("svg",$o,Bo)}var Ao=Y(Co,[["render",Yo]]);const So={},zo={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"},Po=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),To=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),Io=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),Lo=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),Mo=t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"80692"},null,-1),Oo=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),No=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),qo=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),jo=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),Ro=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),Go=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),Vo=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),Uo=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),Wo=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),Zo=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),Ho=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),Jo=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),Xo=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),Ko=t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"80706"},null,-1),Qo=[Po,To,Io,Lo,Mo,Oo,No,qo,jo,Ro,Go,Vo,Uo,Wo,Zo,Ho,Jo,Xo,Ko];function tn(e,a){return i(),r("svg",zo,Qo)}var en=Y(So,[["render",tn]]);const an={},on={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"},nn=t("path",{d:"M894.185422 128.023792 129.814578 445.743994 445.99982 577.744353 571.860343 893.929596Z","p-id":"2997"},null,-1),rn=[nn];function sn(e,a){return i(),r("svg",on,rn)}var dn=Y(an,[["render",sn]]);const un={class:"progress"},ln=P({props:{value:{type:Number,required:!0},text:{type:String}},setup(e){const a=e,o=R(()=>a.value>=80?"#e45e5e":a.value>=70?"#ff9800":a.value>=60?"#297ff3":a.value>0?"#53c31b":"");return(n,s)=>(i(),r("div",un,[t("div",{class:st(["progress-value",`${e.value>50}`]),style:Pt({width:`${e.value}%`,backgroundColor:w(o)})},[t("span",null,h(e.text),1)],6),$t(n.$slots,"default",{},void 0,!0)]))}});var Ze=Y(ln,[["__scopeId","data-v-733828e1"]]);const cn={},pn={t:"1649907260906",viewBox:"-8 248 1042 530",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2793","xmlns:xlink":"http://www.w3.org/1999/xlink"},fn=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),mn=[fn];function bn(e,a){return i(),r("svg",pn,mn)}var vn=Y(cn,[["render",bn]]);const gn={},_n={t:"1649907515643",viewBox:"-8 248 1042 530",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2971","xmlns:xlink":"http://www.w3.org/1999/xlink"},hn=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),xn=[hn];function kn(e,a){return i(),r("svg",_n,xn)}var wn=Y(gn,[["render",kn]]);const yn={class:"checkbox_switch_on"},Fn={class:"checkbox_switch_off"},En=P({props:{modelValue:{type:Boolean,required:!0},height:{type:String,default:"100%"}},emits:["update:modelValue"],setup(e,{emit:a}){const o=e,n=R({get:()=>o.modelValue.valueOf(),set:s=>a("update:modelValue",s)});return(s,p)=>(i(),r("label",{class:"checkbox_switch",style:Pt({height:e.height})},[S(t("input",{type:"checkbox","onUpdate:modelValue":p[0]||(p[0]=c=>ha(n)?n.value=c:null)},null,512),[[Tt,w(n)]]),t("span",yn,[A(vn)]),t("span",Fn,[A(wn)]),$t(s.$slots,"default",{},void 0,!0)],4))}});var He=Y(En,[["__scopeId","data-v-20f08566"]]);const Cn={},$n={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"},Dn=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),Bn=[Dn];function Yn(e,a){return i(),r("svg",$n,Bn)}var An=Y(Cn,[["render",Yn]]);const Sn={},zn={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"},Pn=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),Tn=[Pn];function In(e,a){return i(),r("svg",zn,Tn)}var Ln=Y(Sn,[["render",In]]);const Mn={};function On(e,a){return i(),r("article",null,[$t(e.$slots,"default",{},void 0,!0)])}var Nn=Y(Mn,[["render",On],["__scopeId","data-v-bd286d4e"]]);const qn={class:"cover"},jn={class:"thumbnail"},Rn=P({emits:["click"],setup(e,{emit:a}){const o=()=>{a("click")};return(n,s)=>(i(),M(Nn,null,{default:q(()=>[t("a",{onClick:o},[t("div",qn,[t("div",jn,[$t(n.$slots,"default",{},void 0,!0)])])])]),_:3}))}});var Gn=Y(Rn,[["__scopeId","data-v-123deb20"]]);const Vn={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"},Un=P({props:{size:{type:[Number,String],default:50},color:{type:String,default:"#fff"}},setup(e){const a=o=>{if(o==null)return;if(typeof o=="number")return o+"px";const n=o.toString();return parseInt(n)+""==n?n+"px":n};return(o,n)=>(i(),r("div",{class:"loading",style:Pt({width:a(e.size),height:a(e.size)})},[(i(),r("svg",Vn,[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:Pt({fill:e.color})},null,4)]))],4))}});var Wn=Y(Un,[["__scopeId","data-v-0a8a31e2"]]);const Zn={},Hn={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":""},Jn=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),Xn=[Jn];function Kn(e,a){return i(),r("svg",Hn,Xn)}var Qn=Y(Zn,[["render",Kn]]);const ti={},ei={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"},ai=It('<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),oi=[ai];function ni(e,a){return i(),r("svg",ei,oi)}var ii=Y(ti,[["render",ni]]),Je={install:e=>{e.component("icon-loading",Wn),e.component("icon-success",Qn),e.component("icon-error",ii)}};const ri=e=>{},si=()=>new Date().getTime(),di=e=>{if(e<1e3)return`${e} B`;let o=1e3,n=0;for(let c=e/1e3;c>=1e3;c/=1e3)o*=1e3,n++;let s=[" KB"," MB"," GB"," TB"," PB"," EB"];return(e/100/(o/100)).toFixed(1)+s[n]},ui=e=>{if(e==null)return 0;if(e<1e4)return e;let o=parseInt(`${e/1e4}`),n=e%1e4;return`${o}\u4E07${n}`},li=e=>{if(e)try{var a=new Date(e),o=a.getHours(),n=a.getMinutes(),s=a.getSeconds();return o<10&&(o=`0${o}`),n<10&&(n=`0${n}`),s<10&&(s=`0${s}`),`${o}:${n}:${s}`}catch(p){}return""},ci=e=>{if(e){let a=Math.floor(e/86400),o=Math.floor(e/3600)%24,n=Math.floor(e/60)%60,s=e%60;return a+"\u5929"+o+"\u5C0F\u65F6"+(n<10?"0"+n:n)+"\u5206"+(s<10?"0"+s:s)+"\u79D2"}},pi=e=>/^\d+\.\d+\.\d+\.\d+$/.test(e),fi=e=>e.length<3?"\u7528\u6237\u540D\u592A\u77ED":e.toLowerCase()!=e?"\u7528\u6237\u540D\u53EA\u80FD\u4E3A\u5C0F\u5199":new RegExp("^\\d").exec(e)?"\u7528\u6237\u540D\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934":new RegExp("^_").exec(e)?"\u7528\u6237\u540D\u4E0D\u80FD\u4EE5_\u5F00\u5934":new RegExp("^[a-z0-9_]+$").exec(e)?!0:"\u975E\u6CD5\u7684\u7528\u6237\u540D",mi=(e,a)=>{let o=!0,n=null;const s=()=>{n=null,o&&e().finally(()=>{o&&(n=setTimeout(s,a))})};return n=setTimeout(s,0),()=>{o=!1,n!=null&&clearTimeout(n)}};var bi=Object.freeze(Object.defineProperty({__proto__:null,formatDate:ri,UnixDate:si,byteToSize:di,numberToSum:ui,dateForm:li,stampForm:ci,checkIsIP:pi,checkSmabaUserName:fi,easyInterval:mi},Symbol.toStringTag,{value:"Module"})),wt=W({},bi);const vi={class:"flow"},gi={class:"flow-data"},_i={key:0},hi={key:1},xi=P({setup(e){xa([ka,wa,ya,Fa,Ea,Ca]);const a=y(),o=_=>{var g;const v=(g=a.value)==null?void 0:g[_];return!v||v.startTime==0?"":d(v.startTime*1e3)+"-"+d(v.endTime*1e3)},n=R(()=>{var v;let _=[];return(v=a.value)==null||v.forEach(g=>{_.push({value:g.uploadSpeed})}),_}),s=R(()=>{var v;let _=[];return(v=a.value)==null||v.forEach(g=>{_.push({value:g.downloadSpeed})}),_}),p=R(()=>{var v;let _="";if(a.value){let g=((v=a.value)==null?void 0:v.length)||0;if(g>0){let k=a.value[g-1];_=l(k.uploadSpeed)+"/s"}}return _}),c=R(()=>{var v;let _="";if(a.value){let g=((v=a.value)==null?void 0:v.length)||0;if(g>0){let k=a.value[g-1];_=l(k.downloadSpeed)+"/s"}}return _});R(()=>{var v;let _=[];return(v=a.value)==null||v.forEach(g=>{_.push({value:g.downloadSpeed+g.uploadSpeed})}),_});const f=()=>T(this,null,function*(){var _;try{const v=yield z.Network.Statistics.GET();if(v.data&&(_=v.data.result)!=null&&_.items){const g=v.data.result.slots||10;if(v.data.result.items.length<g){let k=v.data.result.items;for(;k.length<g;)k=[{downloadSpeed:0,endTime:0,startTime:0,uploadSpeed:0}].concat(k);a.value=k}else v.data.result.items.length>g?a.value=v.data.result.items.slice(g-v.data.result.items.length):a.value=v.data.result.items}}catch(v){console.log(v)}}),d=wt.dateForm,l=wt.byteToSize,u=y();let m=null;const b=_=>(m=$a(_,"dark"),m.setOption({animation:!1,backgroundColor:"transparent",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:v=>{if(Array.isArray(v)){let g="";v.length>0&&(g=o(v[0].axisValue));for(let k=0;k<v.length;k++)g=`${g}<br>${v[k].seriesName}: ${l(v[k].value)}/s`;return g.toString()}else{const g=v;return`${o(g.axisValue)}<br>${g.seriesName}: ${l(g.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:"\u6D41\u91CF\u7EDF\u8BA1",textStyle:{fontSize:12,color:"rgba(0, 0, 0, 0.6)"},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(v,g){return`${l(v)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:"\u4E0B\u8F7D",data:s.value,type:"line",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:"\u4E0A\u4F20",data:n.value,type:"line",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",selected:{\u4E0A\u4F20:!0,\u4E0B\u8F7D:!0},textStyle:{color:"rgba(0, 0, 0, 0.6)"},itemStyle:{color:"#5e72e4"},lineStyle:{color:"#333"}},grid:{left:"2%",right:"2%",bottom:"0%",top:"10%",containLabel:!0}}),m);return Dt(()=>{setTimeout(()=>T(this,null,function*(){if(u.value){yield f();const _=b(u.value),v=u.value;_.resize({width:v.clientWidth,height:v.clientHeight}),window.addEventListener("resize",()=>{_.resize({width:v.clientWidth,height:v.clientHeight})});const g=()=>T(this,null,function*(){m!=null&&(yield f(),m!=null&&(_.setOption({series:[{name:"\u4E0B\u8F7D",data:s.value,type:"line",areaStyle:{},smooth:!0},{name:"\u4E0A\u4F20",data:n.value,type:"line",areaStyle:{},smooth:!0}]}),setTimeout(g,5e3)))});setTimeout(g,5e3)}}),1e3)}),Nt(()=>{m!=null&&(m.dispose(),m=null)}),(_,v)=>(i(),r("div",vi,[t("div",{ref_key:"el",ref:u,class:"echart"},null,512),t("div",gi,[w(p)?(i(),r("span",_i,"\u4E0A\u4F20: "+h(w(p)),1)):$("",!0),w(c)?(i(),r("span",hi,"\u4E0B\u8F7D: "+h(w(c)),1)):$("",!0)])]))}});var ki=Y(xi,[["__scopeId","data-v-54a7c83e"]]);const wi={},yi={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"},Fi=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),Ei=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),Ci=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),$i=[Fi,Ei,Ci];function Di(e,a){return i(),r("svg",yi,$i)}var Ct=Y(wi,[["render",Di]]);let ne=0;const Bi={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 e=()=>{this.show&&this.remain>0&&(this.remain=this.remain-1,ne=window.setTimeout(e,1e3))};ne=window.setTimeout(e,1e3)}},computed:{Message(){return this.message+(this.countdown?" "+this.remain+"s":"")}},methods:{Stop(){this.type!="loading"&&(this.show=!1,ne!=0&&clearTimeout(ne),this.Close())}}},le=e=>(O("data-v-6935a479"),e=e(),N(),e),Yi={key:0,class:"loading icon"},Ai=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)),Si=[Ai],zi={key:1,class:"success icon"},Pi=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)),Ti=[Pi],Ii={key:2,class:"error icon"},Li=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)),Mi=[Li],Oi={key:3,class:"warning icon"},Ni=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)),qi=[Ni];function ji(e,a,o,n,s,p){return i(),M(ht,{name:"el-fade-in-linear"},{default:q(()=>[s.show?(i(),r("div",{key:0,class:"toast",onClick:a[1]||(a[1]=c=>p.Stop())},[o.type=="loading"?(i(),r("div",Yi,Si)):o.type=="success"?(i(),r("div",zi,Ti)):o.type=="error"?(i(),r("div",Ii,Mi)):o.type=="warning"?(i(),r("div",Oi,qi)):$("",!0),t("div",{class:"message",onClick:a[0]||(a[0]=ot(()=>{},["stop"]))},h(p.Message),1)])):$("",!0)]),_:1})}var Ri=Y(Bi,[["render",ji],["__scopeId","data-v-6935a479"]]);const Ht=new Map,qt=e=>{const a=X(Ri,tt(W({},e),{Close:()=>{n()}})),o=document.createElement("div");document.body.append(o),a.mount(o);const n=()=>{o.remove(),Ht.get(a._uid)&&Ht.delete(a._uid)};return e.type=="loading"&&Ht.set(a._uid,{Close:n}),(e==null?void 0:e.duration)==0||((e==null?void 0:e.duration)>0?setTimeout(()=>{n()},e==null?void 0:e.duration):setTimeout(()=>{n()},3e3)),{Close:n}},E=e=>qt(e);E.Loading=(e,a)=>qt({type:"loading",message:e||"\u52A0\u8F7D\u4E2D...",duration:0,countdown:a||0});E.Success=e=>qt({type:"success",message:e});E.Error=e=>qt({type:"error",message:e,duration:0});E.Warning=e=>qt({type:"warning",message:e});E.Message=e=>qt({message:e});E.Clear=()=>{Ht.forEach((e,a)=>{e.Close(),Ht.delete(a)})};const lt={installApp:(e,a)=>new Promise((o,n)=>{let s=0;z.App.Install.POST({name:e}).then(()=>{const p=setTimeout(()=>{s==0&&(s=1,o(!1))},(a||60)*1e3),c=()=>{s==0&&z.App.Check.POST({name:e}).then(f=>{if(s==0&&f!=null&&f.data){const{result:d}=f.data;if((d==null?void 0:d.status)=="installed"){clearTimeout(p),s=1,o(!0);return}}}).catch(f=>{}).finally(()=>{s==0&&setTimeout(c,3e3)})};setTimeout(c,3e3)}).catch(p=>{s==0&&(s=1,n("\u5B89\u88C5\u5931\u8D25\uFF0C"+p))})}),checkAndInstallApp:(e,a,o)=>T(Xt,null,function*(){let n=E.Loading("\u68C0\u67E5\u4E2D...");try{const s=yield z.App.Check.POST({name:e});if(n.Close(),s!=null&&s.data){const{result:p,error:c}=s.data;if(c)E.Warning(c);else if(p){if(p.status=="installed")return!0;if(confirm(`\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 ${a} \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F`)){n=E.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const f=yield lt.installApp(o||e);if(n.Close(),f)return!0;E.Error("\u5B89\u88C5\u5931\u8D25\u6216\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u8F6F\u4EF6\u6E90\u6216\u7A0D\u5019\u91CD\u8BD5")}}else E.Warning("\u68C0\u67E5\u63D2\u4EF6\u72B6\u6001\u5931\u8D25")}return!1}catch(s){return n.Close(),E.Warning(s),!1}}),installAndGo:(e,a,o,n)=>T(Xt,null,function*(){(yield lt.checkAndInstallApp(e,a,n))&&(location.href=o)})},Gi={},Vi={t:"1640746738262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1216",width:"128",height:"128"},Ui=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"},null,-1),Wi=[Ui];function Zi(e,a){return i(),r("svg",Vi,Wi)}var Hi=Y(Gi,[["render",Zi]]);const Ji=e=>(O("data-v-428d873e"),e=e(),N(),e),Xi={id:"actioner"},Ki={key:0,class:"action-container"},Qi={class:"action-container_header"},tr=Ji(()=>t("div",null,null,-1)),er={class:"title"},ar={class:"action-container_body"},or=P({props:{Close:{type:Function},type:{type:Number},title:String},setup(e){const a=e,o=y(!1);Dt(()=>{o.value=!0,document.body.setAttribute("lock-scroll","true")}),Nt(()=>{document.body.removeAttribute("lock-scroll")});const n=()=>{a.Close&&(o.value=!1,setTimeout(()=>{a.Close&&a.Close()},300))};return(s,p)=>(i(),r("div",Xi,[t("div",{class:"bg",onClick:n}),e.type!=null?$t(s.$slots,"default",{key:0},void 0,!0):(i(),r(L,{key:1},[o.value?(i(),r("div",Ki,[t("div",Qi,[tr,t("div",er,h(e.title),1),t("button",{class:"close",title:"\u5173\u95ED",onClick:n},[A(Hi)])]),t("div",ar,[$t(s.$slots,"default",{},void 0,!0)])])):$("",!0)],64))]))}});var nr=Y(or,[["__scopeId","data-v-428d873e"]]);const Q=P({props:{Close:{type:Function},type:{type:Number},title:String},setup(e){return(a,o)=>(i(),M(nr,{Close:e.Close,type:e.type,title:e.title},{default:q(()=>[$t(a.$slots,"default")]),_:3},8,["Close","type","title"]))}}),Bt=e=>(O("data-v-c4cdcce6"),e=e(),N(),e),ir=["onSubmit"],rr=Bt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),sr={class:"actioner-dns_body"},dr={class:"label-item"},ur=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u9009\u9879")],-1)),lr={class:"label-item_value"},cr=["disabled"],pr=Bt(()=>t("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1)),fr={class:"label-item"},mr=Bt(()=>t("div",{class:"label-item_key"},"DNS\u670D\u52A1\u5668\u5730\u5740",-1)),br={class:"label-item_value"},vr=["onUpdate:modelValue"],gr={class:"label-item"},_r=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1)),hr={class:"label-item_value"},xr={class:"label-item"},kr=Bt(()=>t("div",{class:"label-item_key"},"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740",-1)),wr={class:"label-item_value"},yr={key:1,class:"label-message"},Fr={class:"actioner-dns_footer"},Er=["disabled"],Cr={key:1,class:"actioner-dns"},$r=Bt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),Dr=Bt(()=>t("div",{class:"actioner-dns_body"},[t("div",{class:"config-message"},"DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")],-1)),Br=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0),n=ue(),s=n.status,p=R(()=>n.status.proto!="static"),c=y({interfaceName:s.defaultInterface||"",dnsProto:s.dnsProto||"manual",manualDnsIp:s.dnsList||[]}),f=y(""),d=y(""),l=y(""),u=y(!1),m=()=>T(this,null,function*(){l.value="";let v={};switch(c.value.dnsProto){case"auto":break;case"manual":v.manualDnsIp=[],c.value.manualDnsIp!=null&&c.value.manualDnsIp.length>0?v.manualDnsIp=c.value.manualDnsIp:(v.manualDnsIp.push(f.value),d.value&&v.manualDnsIp.push(d.value));break}v.dnsProto=c.value.dnsProto,v.interfaceName=c.value.interfaceName;const g=E.Loading("\u914D\u7F6E\u4E2D...");try{const k=yield z.Guide.DnsConfig.POST(v);if(k!=null&&k.data){const{success:x,error:F}=k==null?void 0:k.data;F&&(l.value=F),(x==null||x==0)&&(E.Success("\u914D\u7F6E\u6210\u529F"),o.value=1)}}catch(k){l.value=k}g.Close()}),b=v=>{v.preventDefault(),a.Close&&a.Close()},_=v=>{location.reload()};return(v,g)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[o.value==0?(i(),r("form",{key:0,class:"actioner-dns",onSubmit:ot(m,["prevent"])},[rr,t("div",sr,[t("div",dr,[ur,t("div",lr,[S(t("select",{"onUpdate:modelValue":g[0]||(g[0]=k=>c.value.dnsProto=k)},[t("option",{value:"auto",disabled:!w(p)},"\u81EA\u52A8\u83B7\u53D6DNS",8,cr),pr],512),[[Z,c.value.dnsProto]])])]),c.value.dnsProto=="manual"?(i(),r(L,{key:0},[c.value.manualDnsIp!=null&&c.value.manualDnsIp.length>0?(i(!0),r(L,{key:0},j(c.value.manualDnsIp,(k,x)=>(i(),r("div",fr,[mr,t("div",br,[S(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740","onUpdate:modelValue":F=>c.value.manualDnsIp[x]=F},null,8,vr),[[V,c.value.manualDnsIp[x],void 0,{trim:!0}]])])]))),256)):(i(),r(L,{key:1},[t("div",gr,[_r,t("div",hr,[S(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740",required:"","onUpdate:modelValue":g[1]||(g[1]=k=>f.value=k)},null,512),[[V,f.value,void 0,{trim:!0}]])])]),t("div",xr,[kr,t("div",wr,[S(t("input",{type:"text",placeholder:"\u5907\u7528DNS\u5730\u5740","onUpdate:modelValue":g[2]||(g[2]=k=>d.value=k)},null,512),[[V,d.value,void 0,{trim:!0}]])])])],64))],64)):$("",!0),l.value?(i(),r("div",yr,h(l.value),1)):$("",!0)]),t("div",Fr,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:u.value},"\u786E\u8BA4",8,Er),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:b},"\u53D6\u6D88")])],40,ir)):o.value==1?(i(),r("div",Cr,[$r,Dr,t("div",{class:"actioner-dns_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},"\u5B8C\u6210")])])):$("",!0)]),_:1},8,["Close"]))}});var Yr=Y(Br,[["__scopeId","data-v-c4cdcce6"]]);const Xe=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=X(Yr,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},ce=e=>(O("data-v-ed442d72"),e=e(),N(),e),Ar={class:"action"},Sr={class:"action-body"},zr=ce(()=>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)),Pr=ce(()=>t("h2",{class:"title"},"\u670D\u52A1\u5DF2\u542F\u52A8",-1)),Tr={class:"info"},Ir=ce(()=>t("span",null,"\u524D\u5F80",-1)),Lr=["href"],Mr=ce(()=>t("span",null,"\u8FDB\u884C\u6D4B\u901F",-1)),Or=P({props:{port:Number,Close:Function},setup(e){const a=e,o=R(()=>`http://${location.hostname}:${a.port}`),n=()=>{a.Close&&(a.Close(),location.reload())};return(s,p)=>(i(),M(Q,{type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>[t("div",Ar,[t("div",Sr,[zr,Pr,t("div",Tr,[Ir,t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,Lr),Mr]),t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:n},"\u5173\u95ED")])])])]),_:1})]),_:1}))}});var Nr=Y(Or,[["__scopeId","data-v-ed442d72"]]),qr=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(Nr,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Ee=e=>(O("data-v-39248365"),e=e(),N(),e),jr=Ee(()=>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)),Rr={class:"app-container_status-label_text"},Gr=Ee(()=>t("div",{class:"text_status"},"\u5DF2\u65AD\u5F00",-1)),Vr={class:"text_info"},Ur=Ee(()=>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)),Wr={class:"app-container_status-label_text"},Zr={class:"text_info"},Hr=P({props:{item:{type:Object,required:!0},transform:{type:Number,default:0}},setup(e){const a=e,o=Ue(),n=y(null),s=c=>{const f=c.target,{left:d,top:l}=f.getBoundingClientRect();o.portitemStyle.show=!0,o.portitemStyle.left=d,o.portitemStyle.top=l,o.portitemStyle.portitem=a.item},p=c=>{o.portitemStyle.show=!1};return(c,f)=>(i(),r("div",{class:"app-container_status-label_bg",style:Pt(`transform: translateX(${e.transform}px);`),ref_key:"el",ref:n,onMouseenter:s,onMouseleave:p},[e.item.linkState=="DOWN"?(i(),r(L,{key:0},[jr,t("div",Rr,[Gr,t("div",Vr,h(e.item.name)+" "+h(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64)):(i(),r(L,{key:1},[Ur,t("div",Wr,[t("div",null,h(e.item.linkSpeed),1),t("div",Zr,h(e.item.name)+" "+h(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64))],36))}});var Ke=Y(Hr,[["__scopeId","data-v-39248365"]]);const Qe=e=>(O("data-v-3470ca08"),e=e(),N(),e),Jr=Qe(()=>t("span",null,h("<"),-1)),Xr=[Jr],Kr=Qe(()=>t("span",null,h(">"),-1)),Qr=[Kr],ts=P({props:{portList:{type:Array,required:!0}},setup(e){const a=y(),o=y(0),n=y(0),s=y(0),p=y(!1),c=()=>{if(s.value>=0){s.value=0;return}s.value+=100},f=()=>{if(s.value<=0-o.value+n.value){s.value=0-o.value+n.value;return}s.value-=100};return Dt(()=>{Da(()=>{a.value&&(o.value=a.value.scrollWidth,n.value=a.value.clientWidth,p.value=o.value>n.value)})}),(d,l)=>(i(),r("div",{class:"app-interfaces",ref_key:"el",ref:a},[p.value?(i(),r(L,{key:0},[t("a",{class:"btn-f",onClick:c},Xr),t("a",{class:"btn-r",onClick:f},Qr)],64)):$("",!0),(i(!0),r(L,null,j(e.portList,(u,m)=>(i(),M(Ke,{item:u,transform:s.value},null,8,["item","transform"]))),256))],512))}});var es=Y(ts,[["__scopeId","data-v-3470ca08"]]);const as={},os={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"},ns=It('<title>icon_finished</title><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>',2),is=[ns];function rs(e,a){return i(),r("svg",os,is)}var Ce=Y(as,[["render",rs]]);const jt=e=>(O("data-v-1e29113c"),e=e(),N(),e),ss=["onSubmit"],ds=jt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),us={class:"actioner-dns_body"},ls={class:"label-item"},cs=jt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5F53\u524D\u8F6F\u4EF6\u6E90")],-1)),ps={class:"label-item_value"},fs={class:"item_info"},ms={class:"label-item"},bs=jt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5207\u6362\u8F6F\u4EF6\u6E90")],-1)),vs={class:"label-item_value"},gs=jt(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u8F6F\u4EF6\u6E90",-1)),_s=["value"],hs={class:"actioner-dns_footer"},xs=["disabled"],ks={key:1,class:"actioner-dns"},ws=jt(()=>t("div",{class:"actioner-dns_header"},[t("span",{class:"softsource_tit"},"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),ys={class:"actioner-dns_body"},Fs={class:"finished"},Es=jt(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),Cs=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0),n=y(""),s=y(),p=y();(()=>{z.Guide.SoftSourceList.GET().then(u=>{var m,b;if((m=u==null?void 0:u.data)!=null&&m.result){const _=(b=u==null?void 0:u.data)==null?void 0:b.result;p.value=_}}).then(()=>z.Guide.GetSoftSource.GET()).then(u=>{var m,b;if((m=u==null?void 0:u.data)!=null&&m.result){const _=u.data.result;s.value=_.softSource,(b=p.value)!=null&&b.softSourceList.find(v=>v.identity==_.softSource.identity)&&(n.value=_.softSource.identity)}})})();const f=u=>{u.preventDefault(),a.Close&&a.Close()},d=u=>{const m=E.Loading("\u6B63\u5728\u5207\u6362\u4E2D...");z.Guide.SoftSource.POST({softSourceIdentity:n.value}).then(b=>{if(b!=null&&b.data){if((b.data.success||0)==0){o.value=1;return}else if(b.data.error)throw b.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(b=>{E.Error(b)}).finally(()=>m.Close())},l=u=>{u.preventDefault(),location.reload()};return(u,m)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>{var b,_;return[o.value==0?(i(),r("form",{key:0,class:"actioner-dns",onSubmit:ot(d,["prevent"])},[ds,t("div",us,[t("div",ls,[cs,t("div",ps,[t("p",fs,h((b=s.value)==null?void 0:b.name),1)])]),t("div",ms,[bs,t("div",vs,[S(t("select",{name:"",id:"","onUpdate:modelValue":m[0]||(m[0]=v=>n.value=v)},[gs,(i(!0),r(L,null,j((_=p.value)==null?void 0:_.softSourceList,(v,g)=>(i(),r("option",{value:v.identity,key:g},h(v.name),9,_s))),128))],512),[[Z,n.value,void 0,{trim:!0}]])])])]),t("div",hs,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:n.value==""},"\u786E\u8BA4",8,xs),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:f},"\u53D6\u6D88")])],40,ss)):$("",!0),o.value==1?(i(),r("form",ks,[ws,t("div",ys,[t("div",Fs,[A(Ce)]),Es,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply softsource_successed",onClick:l},"\u786E\u5B9A")])])])):$("",!0)]}),_:1},8,["Close"]))}});var $s=Y(Cs,[["__scopeId","data-v-1e29113c"]]);const ta=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=X($s,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},dt=e=>(O("data-v-aa15207e"),e=e(),N(),e),Ds={class:"app-container_status-label"},Bs={class:"app-container_status-label_item",style:{"padding-right":"10px"}},Ys={class:"app-container_status-container",style:{height:"100%"}},As={key:0,class:"app-container_status-container_body"},Ss=dt(()=>t("svg",{width:"50px",height:"50px",viewBox:"0 0 50 50",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("title",null,"icon_internet connected"),t("g",{id:"icon_internet-connected",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"wancheng","fill-rule":"nonzero"},[t("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.0779329313",fill:"#553AFE"}),t("g",{id:"Group-2",transform:"translate(10.000000, 10.000000)"},[t("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:"#553AFE"}),t("path",{d:"M8,15 L13.2546984,20.2546984 C13.6452227,20.6452227 14.2783876,20.6452227 14.6689119,20.2546984 C14.6813066,20.2423037 14.6933732,20.2295853 14.7050993,20.2165563 L23,11 L23,11",id:"Path-3",stroke:"#FFFFFF","stroke-width":"2","stroke-linecap":"round"})])])])],-1)),zs={class:"app-container_status-info"},Ps=dt(()=>t("span",{class:"container_success"},"\u5DF2\u8054\u7F51",-1)),Ts={class:"container_time"},Is={key:1,class:"app-container_status-container_body"},Ls=dt(()=>t("svg",{width:"50px",height:"50px",viewBox:"0 0 50 50",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_internet-alert",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"wancheng"},[t("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"}),t("g",{id:"Group-2",transform:"translate(10.000000, 10.000000)"},[t("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"}),t("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"}),t("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"})])])])],-1)),Ms={class:"app-container_status-info"},Os=dt(()=>t("span",{class:"container_failure"},"DNS\u9519\u8BEF",-1)),Ns={class:"container_time"},qs={key:2,class:"app-container_status-container_body"},js=dt(()=>t("svg",{width:"50px",height:"50px",viewBox:"0 0 50 50",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_internet-alert",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"wancheng"},[t("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"}),t("g",{id:"Group-2",transform:"translate(10.000000, 10.000000)"},[t("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"}),t("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"}),t("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"})])])])],-1)),Rs={class:"app-container_status-info"},Gs=dt(()=>t("span",{class:"container_failure"},"\u8F6F\u4EF6\u6E90\u9519\u8BEF",-1)),Vs={class:"container_time"},Us={key:3,class:"app-container_status-container_body"},Ws=dt(()=>t("svg",{width:"50px",height:"50px",viewBox:"0 0 50 50",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_internet-alert",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"wancheng"},[t("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"}),t("g",{id:"Group-2",transform:"translate(10.000000, 10.000000)"},[t("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"}),t("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"}),t("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"})])])])],-1)),Zs={class:"app-container_status-info"},Hs=dt(()=>t("span",{class:"container_failure"},"\u672A\u8054\u7F51",-1)),Js={class:"container_time"},Xs={key:4,class:"app-container_status-container_body"},Ks=dt(()=>t("svg",{width:"50px",height:"50px",viewBox:"0 0 50 50",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_internet-launching",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"wancheng","fill-rule":"nonzero"},[t("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:"#3ED4AB"}),t("g",{id:"Group-2",transform:"translate(10.000000, 10.000000)"},[t("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:"#3ED4AB"}),t("path",{d:"M11.5738525,15.0233901 C11.5738525,14.8431935 11.5023882,14.6703653 11.3750746,14.5429471 C11.2477609,14.4155288 11.0750745,14.3439644 10.8950258,14.3440059 L7.67882684,14.3440059 C7.49875102,14.3439644 7.326041,14.4155503 7.19872281,14.5430024 C7.07140462,14.6704545 6.99991721,14.8433228 7.00000007,15.0235465 C7.00000007,15.2037431 7.0714644,15.3765713 7.19877809,15.5039895 C7.32609178,15.6314078 7.4987781,15.7029722 7.67882684,15.7029307 L10.8950258,15.7029307 C11.0750745,15.7029722 11.2477609,15.6314078 11.3750746,15.5039895 C11.5023882,15.3765713 11.5738525,15.2037431 11.5738525,15.0235465 L11.5738525,15.0233901 Z M22.3211553,14.3440059 L19.1049564,14.3440059 C18.9248806,14.3439644 18.7521705,14.4155503 18.6248524,14.5430024 C18.4975342,14.6704545 18.4260468,14.8433228 18.4261296,15.0235465 C18.4261296,15.2037431 18.4975939,15.3765713 18.6249076,15.5039895 C18.7522213,15.6314078 18.9249076,15.7029722 19.1049564,15.7029307 L22.3211553,15.7029307 C22.5012041,15.7029722 22.6738904,15.6314078 22.8012041,15.5039895 C22.9285178,15.3765713 22.9999911,15.2037431 22.9999911,15.0235465 C23.0019042,14.6481319 22.6962619,14.3440059 22.3211553,14.3440059 Z M15.0075079,18.6494887 C14.8274565,18.6494887 14.6547678,18.7210138 14.5274536,18.8484354 C14.4001395,18.9758571 14.3286356,19.1486892 14.3286812,19.3288885 L14.3286812,22.3206158 C14.3286398,22.5008124 14.4001455,22.6736405 14.5274592,22.8010588 C14.6547729,22.928477 14.8274592,23 15.0075079,23 C15.1875567,23 15.360243,22.928477 15.4875567,22.8010588 C15.6148704,22.6736405 15.6863761,22.5008124 15.6863348,22.3206158 L15.6863348,19.3308123 C15.6866114,18.9551699 15.3828413,18.6502825 15.0075079,18.6494887 Z M15.0075079,7 C14.8274592,7 14.6547729,7.07152297 14.5274592,7.19894122 C14.4001455,7.32635946 14.3286398,7.49918761 14.3286812,7.67938422 L14.3286812,10.8982245 C14.3286398,11.0784212 14.4001455,11.2512493 14.5274592,11.3786675 C14.6547729,11.5060858 14.8274592,11.5776088 15.0075079,11.5776088 C15.1875567,11.5776088 15.360243,11.5060858 15.4875567,11.3786675 C15.6148704,11.2512493 15.6863761,11.0784212 15.6863346,10.8982245 L15.6863346,7.67938422 C15.6863761,7.49918761 15.6148704,7.32635946 15.4875567,7.19894122 C15.360243,7.07152297 15.1875567,7 15.0075079,7 Z M11.6020132,17.4145291 L9.32916742,19.6892415 C9.06467707,19.9548666 9.06467707,20.3845576 9.32916742,20.6501827 C9.45618492,20.7780764 9.62906847,20.8497648 9.80924376,20.8492554 C9.98367775,20.8492554 10.1560177,20.783579 10.2893201,20.6501827 L12.5637599,18.3738593 C12.8282503,18.1082342 12.8282503,17.6785432 12.5637599,17.4129181 C12.2975184,17.147886 11.8671244,17.1486768 11.601857,17.4146855 L11.6020132,17.4145291 Z M17.8766048,12.7750942 C18.0510388,12.7750942 18.2236912,12.7094361 18.3566811,12.5760242 L20.6314491,10.29956 C20.8959395,10.0339349 20.8959395,9.6042439 20.6314491,9.3386188 C20.366042,9.07391123 19.9367036,9.07391123 19.6712965,9.3386188 L17.3966847,11.6133312 C17.1321944,11.8789563 17.1321944,12.3086474 17.3966847,12.5742725 C17.5235351,12.7026276 17.6963754,12.7749288 17.8767611,12.7750942 L17.8766048,12.7750942 Z M18.5349595,17.572293 C18.2695524,17.3075854 17.8402139,17.3075854 17.5748068,17.572293 C17.3103165,17.8379181 17.3103165,18.2676091 17.5748068,18.5332342 L19.6882679,20.6501827 C19.8152854,20.7780764 19.988169,20.8497648 20.1683442,20.8492554 C20.342747,20.8492554 20.5152744,20.783579 20.6484206,20.6501827 C20.9129109,20.3845576 20.9129109,19.9548666 20.6484206,19.6892415 L18.5349595,17.5722773 L18.5349595,17.572293 Z M10.2891638,9.35734026 C10.0237567,9.09263269 9.59441827,9.09263269 9.32901114,9.35734026 C9.06452079,9.62296536 9.06452079,10.0526564 9.32901114,10.3182815 L11.6037635,12.594902 C11.7308042,12.7227441 11.9036849,12.7943806 12.0838399,12.7938344 C12.2582738,12.7938344 12.43077,12.7281576 12.5639162,12.594902 C12.8284065,12.3292769 12.8284065,11.8995859 12.5639162,11.6339608 L10.2891638,9.3573559 L10.2891638,9.35734026 Z",id:"Shape",fill:"#FFFFFF"})])])])],-1)),Qs=dt(()=>t("div",{class:"app-container_status-info"},[t("span",{class:"container_failure"},"\u68C0\u6D4B\u4E2D...")],-1)),td=[Ks,Qs],ed={class:"app-container_status-label_item",style:{"padding-left":"10px"}},ad={class:"app-container_status-container",style:{height:"100%"}},od={class:"more_icon",title:"\u67E5\u770B\u8BBE\u5907\u4FE1\u606F"},nd={class:"DeviceBlock"},id=dt(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/status/routes"},"\u8BBE\u5907\u8DEF\u7531")],-1)),rd={class:"app-container_status-container_body"},sd=dt(()=>t("svg",{width:"50px",height:"50px",viewBox:"0 0 50 50",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("title",null,"icon_device number"),t("g",{id:"icon_device-number",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"wancheng","fill-rule":"nonzero"},[t("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.0804503114",fill:"#03C5FC"}),t("g",{id:"Group-2",transform:"translate(10.000000, 10.000000)"},[t("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:"#03C5FC"}),t("g",{id:"kehuduanIP",transform:"translate(5.000000, 7.000000)",fill:"#FFFFFF"},[t("path",{d:"M8.3164557,11.2822134 L2.39240506,11.2822134 C2.25316456,11.2822134 2.13924051,11.1683794 2.13924051,11.029249 L2.13924051,1.39130435 C2.13924051,1.25217391 2.25316456,1.13833992 2.39240506,1.13833992 L16.6075949,1.13833992 C16.7468354,1.13833992 16.8607595,1.25217391 16.8607595,1.39130435 L16.8607595,3.51620553 C17.2658228,3.5541502 17.6582278,3.69328063 18,3.9083004 L18,1.39130435 C18,0.619762846 17.3797468,0 16.6075949,0 L2.39240506,0 C1.62025316,0 1,0.619762846 1,1.39130435 L1,11.029249 C1,11.8007905 1.62025316,12.4205534 2.39240506,12.4205534 L7.15189873,12.4205534 L7.15189873,14.2798419 L6.40506329,14.2798419 C5.93670886,14.2798419 5.5443038,14.6592885 5.5443038,15.1399209 C5.5443038,15.6079051 5.92405063,16 6.40506329,16 L8.79746835,16 C8.48101266,15.5699605 8.3164557,15.0513834 8.3164557,14.5201581 L8.3164557,11.2822134 Z",id:"Path"}),t("path",{d:"M12.4062969,15.2371365 L12.4062969,14.0436242 L10.0074963,14.0436242 L10.0074963,6.39038031 C10.0074963,6.23042506 10.1394303,6.10738255 10.2833583,6.10738255 L15.6446777,6.10738255 C15.8005997,6.10738255 15.9205397,6.24272931 15.9205397,6.39038031 L15.9205397,8.77740492 L16.3283358,8.77740492 C16.5682159,8.77740492 16.7961019,8.85123043 17,8.97427293 L17,6.39038031 C17,5.62751678 16.3883058,5 15.6446777,5 L10.3313343,5 C9.58770615,5.0246085 9,5.63982103 9,6.39038031 L9,14.6465324 C9.02398801,15.3847875 9.61169415,15.9753915 10.3313343,16 L12.6581709,16 C12.5022489,15.7785235 12.4182909,15.50783 12.4062969,15.2371365 C12.4062969,15.2248322 12.4062969,15.2371365 12.4062969,15.2371365 L12.4062969,15.2371365 Z",id:"Path"}),t("path",{d:"M17.1515152,10 L13.8484848,10 C13.3787879,10 13,10.2857143 13,10.64 L13,15.36 C13,15.7142857 13.3787879,16 13.8484848,16 L17.1515152,16 C17.6212121,16 18,15.7142857 18,15.36 L18,10.64 C18,10.2857143 17.6212121,10 17.1515152,10 Z M14.0151515,10.7657143 L16.9848485,10.7657143 L16.9848485,14.8457143 L14.0151515,14.8457143 L14.0151515,10.7657143 L14.0151515,10.7657143 Z M15.4545455,15.6914286 C15.2575758,15.6914286 15.1060606,15.5657143 15.1060606,15.4285714 C15.1060606,15.28 15.2727273,15.1657143 15.469697,15.1657143 C15.6666667,15.1657143 15.8181818,15.2914286 15.8181818,15.44 C15.8181818,15.5085714 15.7727273,15.5885714 15.6969697,15.6342857 C15.6363636,15.68 15.5454545,15.7028571 15.4545455,15.6914286 C15.4545455,15.7028571 15.4545455,15.6914286 15.4545455,15.6914286 L15.4545455,15.6914286 Z",id:"Shape"})])])])])],-1)),dd={class:"app-container_status-info"},ud={class:"container_content"},ld=dt(()=>t("span",{class:"devise"},"\u5DF2\u8FDE\u63A5\u8BBE\u5907",-1)),cd=dt(()=>t("em",null,null,-1)),pd={class:"app-container_status-container"},fd={class:"more_icon",title:"\u6D4B\u901F"},md={class:"DeviceBlock"},bd={class:"app-container_title"},vd={class:"app-container_status-label_block"},gd={class:"app-container_status-label_block"},_d={class:"app-container_title"},hd={class:"app-container_status-label_block"},xd=dt(()=>t("em",null,null,-1)),kd={class:"app-container_status-container"},wd={class:"app-container_title"},yd=dt(()=>t("span",null,"\u7F51\u7EDC\u63A5\u53E3\u72B6\u6001",-1)),Fd={class:"more_icon",title:"\u67E5\u770B\u7F51\u7EDC\u63A5\u53E3\u4FE1\u606F"},Ed={class:"DeviceBlock"},Cd=U("\u7F51\u53E3\u914D\u7F6E"),$d={class:"app-container_body"},Dd=P({props:{homebox:{type:Object}},setup(e){const a=()=>{Xe()},o=()=>{ta()},n=ue(),s=R(()=>n.status),p=R(()=>n.deviceList),c=y(!1),f=y(!1),d=y(!1),l=nt({portList:[],load:!1}),u=B=>{switch(B){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},m=B=>{switch(B){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},b=()=>{z.Network.PortList.GET().then(B=>{if(B!=null&&B.data){const{result:G}=B==null?void 0:B.data;G&&(l.portList=G.ports||[])}}).finally(()=>{l.load=!0,_()})},_=()=>{setTimeout(()=>{b()},1e4)};b();const v=wt.stampForm,g=()=>{c.value=!c.value},k=()=>{f.value=!f.value},x=()=>{d.value=!d.value},F=()=>{g(),lt.installAndGo("app-meta-nlbwmon","\u5E26\u5BBD\u76D1\u63A7","/cgi-bin/luci/admin/services/nlbw")},D=()=>T(this,null,function*(){var B,G,K;if(k(),yield lt.checkAndInstallApp("app-meta-homebox","Homebox"))try{const et=yield z.Network.Homebox.Enable.POST();(G=(B=et==null?void 0:et.data)==null?void 0:B.result)!=null&&G.port?qr({port:et.data.result.port,setup:0}):((K=et==null?void 0:et.data)==null?void 0:K.success)==0?location.href="/cgi-bin/luci/admin/services/homebox":E.Warning("\u542F\u52A8\u5931\u8D25")}catch(et){E.Warning("\u542F\u52A8\u5931\u8D25")}}),C=()=>{k(),lt.installAndGo("app-meta-systools","SysTools","/cgi-bin/luci/admin/system/systools/pages")};return(B,G)=>{var et,at;const K=J("router-link");return i(),r(L,null,[t("div",Ds,[t("div",Bs,[t("div",Ys,[w(s)!=null?(i(),r(L,{key:0},[w(s).networkInfo=="netSuccess"?(i(),r("div",As,[Ss,t("div",zs,[Ps,t("span",Ts,h(w(v)(w(s).uptimeStamp)),1)])])):w(s).networkInfo=="dnsFailed"?(i(),r("div",Is,[Ls,t("div",Ms,[Os,t("span",Ns,h(w(v)(w(s).uptimeStamp)),1),t("div",{onClick:a,class:"container_configure"},"DNS\u914D\u7F6E")])])):w(s).networkInfo=="softSourceFailed"?(i(),r("div",qs,[js,t("div",Rs,[Gs,t("span",Vs,h(w(v)(w(s).uptimeStamp)),1),t("div",{onClick:o,class:"container_configure"},"\u8F6F\u4EF6\u6E90\u914D\u7F6E")])])):w(s).networkInfo=="netFailed"?(i(),r("div",Us,[Ws,t("div",Zs,[Hs,t("span",Js,h(w(v)(w(s).uptimeStamp)),1)])])):(i(),r("div",Xs,td))],64)):$("",!0)])]),t("div",ed,[t("div",ad,[t("span",od,[A(Ct,{onClick:g})]),S(t("div",nd,[t("div",{class:"menu_background",onClick:g}),t("ul",null,[id,t("li",null,[t("a",{onClick:F},"\u5E26\u5BBD\u76D1\u63A7")])])],512),[[kt,c.value]]),t("div",rd,[sd,t("div",dd,[t("span",ud,h(((at=(et=w(p))==null?void 0:et.devices)==null?void 0:at.length)||0),1),ld])])])])]),cd,t("div",pd,[t("span",fd,[A(Ct,{onClick:k})]),S(t("div",md,[t("div",{class:"menu_background",onClick:k}),t("ul",null,[t("li",null,[t("a",{onClick:D},"\u5185\u7F51\u6D4B\u901F")]),t("li",null,[t("a",{onClick:C},"\u5916\u7F51\u6D4B\u901F")])])],512),[[kt,f.value]]),t("div",bd,[t("span",null,"IP\u5730\u5740\uFF08"+h(w(s).defaultInterface)+"\uFF09",1)]),t("div",vd,[t("span",null," IPv4\uFF1A "+h(w(s).ipv4addr)+" \uFF08"+h(u(w(s).proto||""))+"\uFF09 ",1)]),t("div",gd,[t("span",null,"IPv6\uFF1A"+h(w(s).ipv6addr),1)]),t("div",_d,[t("span",null,"DNS\uFF08"+h(m(w(s).dnsProto))+"\uFF09",1)]),(i(!0),r(L,null,j(w(s).dnsList,_t=>(i(),r("div",hd,[t("span",null,h(_t),1)]))),256))]),xd,t("div",kd,[t("div",wd,[yd,t("span",Fd,[A(Ct,{onClick:x})]),S(t("div",Ed,[t("div",{class:"menu_background",onClick:x}),t("ul",null,[t("li",null,[A(K,{to:"/interfaceconfig"},{default:q(()=>[Cd]),_:1})])])],512),[[kt,d.value]])]),t("div",$d,[w(l).load?(i(),M(es,{key:0,portList:w(l).portList},null,8,["portList"])):$("",!0)])])],64)}}});var Bd=Y(Dd,[["__scopeId","data-v-aa15207e"]]);const Yd={class:"network-container"},Ad={class:"network-container_flow"},Sd={class:"network-container_flow-container"},zd={class:"network-container_status"},Pd=P({setup(e){return(a,o)=>(i(),r("div",Yd,[t("div",Ad,[t("div",Sd,[A(ki,{style:{height:"460px"}})])]),t("div",zd,[A(Bd)])]))}});var Td=Y(Pd,[["__scopeId","data-v-78a4e41a"]]);const Id={},Ld={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"},Md=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),Od=[Md];function Nd(e,a){return i(),r("svg",Ld,Od)}var gt=Y(Id,[["render",Nd]]);const qd={},jd={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"},Rd=It('<title>\u5206\u533A\u4FE1\u606F</title><g id="icon_info" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group"><circle id="Oval" stroke="#333333" cx="9" cy="9" r="8.5"></circle><circle id="Oval" fill="#333333" cx="5" cy="9" r="1"></circle><circle id="Oval" fill="#333333" cx="9" cy="9" r="1"></circle><circle id="Oval" fill="#333333" cx="13" cy="9" r="1"></circle></g></g>',2),Gd=[Rd];function Vd(e,a){return i(),r("svg",jd,Gd)}var Ne=Y(qd,[["render",Vd]]);const Ud={},Wd={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"},Zd=It('<title>\u5168\u76D8\u683C\u5F0F\u5316</title><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>',2),Hd=[Zd];function Jd(e,a){return i(),r("svg",Wd,Hd)}var Xd=Y(Ud,[["render",Jd]]);const Yt=e=>(O("data-v-3a0bca4c"),e=e(),N(),e),Kd=["onSubmit"],Qd=Yt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u786C\u76D8\u914D\u7F6E")],-1)),t0={class:"action-body"},e0={class:"disk-info"},a0=Yt(()=>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)),o0={key:0,class:"disk-info_mount-name"},n0={key:1,class:"disk-info_mount-name"},i0={key:0,class:"label-item"},r0=Yt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),s0={class:"label-item_path"},d0={class:"label-item"},u0=Yt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u683C\u5F0F\u5316\u9009\u9879")],-1)),l0={class:"label-item_value"},c0=["disabled"],p0={key:0,value:""},f0=Yt(()=>t("option",{value:"format"},"\u683C\u5F0F\u5316",-1)),m0={key:1,value:"default"},b0={class:"label-item_value"},v0={key:0,class:"msg"},g0={key:1,class:"msg"},_0={class:"action-footer"},h0=Yt(()=>t("div",{class:"auto"},null,-1)),x0=["disabled"],k0=["disabled"],w0={key:1,class:"action result"},y0={class:"action-body"},F0=Yt(()=>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)),E0=Yt(()=>t("div",{class:"action-body_msg"},"\u683C\u5F0F\u5316\u6210\u529F",-1)),C0={key:0,class:"action-body_info"},$0={key:1,class:"action-body_info"},D0=U(" \u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A "),B0={class:"btns"},Y0=P({props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const a=e,o=()=>{a.Close&&a.Close()},n=x=>{x.preventDefault(),a.Cancel&&a.Cancel(),o()},s=x=>{a.Next&&a.Next(x),o()},p=y(!1),c=y(0),f=x=>{c.value=x},d=y(a.action=="nas"?"":"format"),l=y(),u=y(),m=()=>{switch(d.value){case"format":_();return;case"default":b();return;default:E.Warning("\u8BF7\u9009\u62E9\u9009\u7EBF");return}},b=()=>{let x="";const F=a.mount;if(F!=null&&F.mountPoint!=null&&(x=F.mountPoint),x!=""){s(x);return}E.Warning("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84")},_=()=>{const x=a.disk,F=a.mount;if(F){const D=F.mountPoint||F.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${D} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${D}?`))return;g(F);return}if(x){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${x.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;v(x);return}E.Warning("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E")},v=x=>T(this,null,function*(){if(x.name==null||x.path==""){E.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(x.path==null||x.path==""){E.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}p.value=!0;const F=E.Loading("\u521D\u59CB\u5316\u4E2D...");try{const D=yield z.Nas.Disk.Init.POST({name:x.name,path:x.path});if(D!=null&&D.data){const{result:C,error:B}=D==null?void 0:D.data;B&&E.Warning(B),C&&(C.errorInfo?E.Warning(C.errorInfo):(E.Success("\u521D\u59CB\u5316\u6210\u529F"),C.childrens&&C.childrens.length>0&&(u.value=C.childrens[0]),l.value=C,f(1)))}}catch(D){E.Error(D)}F.Close(),p.value=!1}),g=x=>T(this,null,function*(){if(x.path==null||x.path==""){E.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}p.value=!0;const F=E.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const D=yield z.Nas.Disk.Partition.Format.POST({path:x.path,uuid:x.uuid,mountPoint:x.mountPoint});if(D!=null&&D.data){const{result:C,error:B}=D==null?void 0:D.data;B&&E.Warning(B),C&&(E.Success("\u683C\u5F0F\u5316\u6210\u529F"),u.value=C,f(1))}}catch(D){E.Error(D)}F.Close(),p.value=!1}),k=()=>{if(u.value&&u.value.mountPoint){s(u.value.mountPoint);return}E.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")};return(x,F)=>(i(),M(Q,{type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>{var D;return[c.value==0?(i(),r("form",{key:0,class:"action format",onSubmit:ot(m,["prevent"])},[Qd,t("div",t0,[t("div",e0,[a0,e.mount?(i(),r("div",o0,[t("span",null,"\u3010"+h(e.mount.total)+"\u3011",1),t("span",null,h(e.mount.mountPoint||e.mount.path),1)])):e.disk?(i(),r("div",n0,[t("span",null,"\u3010"+h(e.disk.size)+"\u3011",1),t("span",null,h(e.disk.venderModel),1)])):$("",!0)]),e.mount?(i(),r("div",i0,[r0,t("div",s0,h(e.mount.mountPoint||e.mount.path)+"\uFF08"+h(e.mount.total)+"\uFF09",1)])):$("",!0),t("div",d0,[u0,t("div",l0,[S(t("select",{"onUpdate:modelValue":F[0]||(F[0]=C=>d.value=C),required:"",disabled:e.action=="disk"},[e.mount!=null?(i(),r("option",p0,"\u8BF7\u9009\u62E9\u9009\u9879")):$("",!0),f0,e.mount!=null?(i(),r("option",m0,"\u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF")):$("",!0)],8,c0),[[Z,d.value]])]),t("div",b0,[d.value=="format"?(i(),r("p",v0,"\u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u4F20\u8F93\u901F\u5EA6\u66F4\u5FEB")):d.value=="default"?(i(),r("p",g0)):$("",!0)])])]),t("div",_0,[h0,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:n,type:"button",disabled:p.value},"\u8FD4\u56DE",8,x0),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:p.value},"\u4E0B\u4E00\u6B65",8,k0)])],40,Kd)):c.value==1?(i(),r("div",w0,[t("div",y0,[F0,E0,l.value?(i(),r("div",C0,[U(" \u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8 "+h(l.value.venderModel)+" \u5E76\u6302\u8F7D\u5230 ",1),t("a",null,h((D=u.value)==null?void 0:D.mountPoint),1)])):$("",!0),u.value?(i(),r("div",$0,[D0,t("a",null,h(u.value.mountPoint),1)])):$("",!0),t("div",B0,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:k},h(e.action=="nas"?"\u4E0B\u4E00\u6B65":"\u5B8C\u6210"),1)])])])):$("",!0)]}),_:1})]),_:1}))}});var A0=Y(Y0,[["__scopeId","data-v-3a0bca4c"]]),$e=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(A0,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Lt=e=>(O("data-v-61e01d51"),e=e(),N(),e),S0=["onSubmit"],z0=Lt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"})],-1)),P0={class:"action-body"},T0={class:"disk-info"},I0=Lt(()=>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)),L0={key:0,class:"disk-info_mount-name"},M0={key:1,class:"disk-info_mount-name"},O0={key:0,class:"label-item"},N0=Lt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),q0={class:"label-item_path"},j0={class:"label-item"},R0=Lt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u6302\u8F7D\u70B9")],-1)),G0={class:"label-item_value"},V0=["value"],U0={class:"action-footer"},W0=Lt(()=>t("div",{class:"auto"},null,-1)),Z0=["disabled"],H0=["disabled"],J0={key:1,class:"action result"},X0={class:"action-body"},K0=Lt(()=>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)),Q0=Lt(()=>t("div",{class:"action-body_msg"},"\u6302\u8F7D\u6210\u529F",-1)),tu={key:0,class:"action-body_info"},eu={class:"btns"},au=P({props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){var _;const a=e,o=()=>{a.Close&&a.Close()},n=v=>{v.preventDefault(),a.Cancel&&a.Cancel(),o()},s=v=>{a.Next&&a.Next(v),o()},p=y(!1),c=y(0),f=y("/mnt/data_"+((_=a==null?void 0:a.mount)==null?void 0:_.name)),d=v=>{c.value=v};y(a.mount?"":"format"),y();const l=y(),u=()=>T(this,null,function*(){const v=a.mount;if(v==null){E.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A");return}if(v.path==null||v.path==""){E.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}if(v.uuid==null||v.uuid==""){E.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID");return}p.value=!0;const g=E.Loading("\u6302\u8F7D\u4E2D...");try{const k=yield z.Nas.Disk.Partition.Mount.POST({path:v.path,uuid:v.uuid,mountPoint:f.value});if(k!=null&&k.data){const{result:x,error:F}=k==null?void 0:k.data;F&&E.Warning(F),x&&(E.Success("\u6302\u8F7D\u6210\u529F"),l.value=x,d(1))}}catch(k){E.Error(k)}g.Close(),p.value=!1}),m=()=>{if(l.value&&l.value.mountPoint){s(l.value.mountPoint);return}E.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")},b=()=>{};return(v,g)=>(i(),M(Q,{type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>{var k,x;return[c.value==0?(i(),r("form",{key:0,class:"action format",onSubmit:ot(b,["prevent"])},[z0,t("div",P0,[t("div",T0,[I0,e.mount?(i(),r("div",L0,[t("span",null,"\u3010"+h(e.mount.total)+"\u3011",1),t("span",null,h(e.mount.mountPoint),1)])):e.disk?(i(),r("div",M0,[t("span",null,"\u3010"+h(e.disk.size)+"\u3011",1),t("span",null,h(e.disk.venderModel),1)])):$("",!0)]),e.mount?(i(),r("div",O0,[N0,t("div",q0,h(e.mount.path)+"\uFF08"+h(e.mount.total)+"\uFF0C"+h((x=(k=e.mount)==null?void 0:k.filesystem)==null?void 0:x.toUpperCase())+"\uFF09",1)])):$("",!0),t("div",j0,[R0,t("div",G0,[t("input",{type:"text",value:f.value},null,8,V0)])])]),t("div",U0,[W0,t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:p.value,onClick:u},"\u786E\u5B9A",8,Z0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:n,type:"button",disabled:p.value},"\u8FD4\u56DE",8,H0)])],40,S0)):c.value==1?(i(),r("div",J0,[t("div",X0,[K0,Q0,l.value?(i(),r("div",tu,[U(" \u5DF2\u6210\u529F\u5C06\u5206\u533A "+h(l.value.path)+" \u6302\u8F7D\u5230 ",1),t("a",null,h(l.value.mountPoint),1)])):$("",!0),t("div",eu,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:m},h(e.action=="nas"?"\u5B8C\u6210":"\u4E0B\u4E00\u6B65"),1)])])])):$("",!0)]}),_:1})]),_:1}))}});var ou=Y(au,[["__scopeId","data-v-61e01d51"]]),ea=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(ou,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const aa=e=>(O("data-v-31be4af0"),e=e(),N(),e),nu={class:"disk-content"},iu={class:"disk-item"},ru={class:"disk-item_name"},su={key:0},du={key:1},uu={key:2},lu={class:"disk_value"},cu={key:0,class:"disk-item_value"},pu={class:"value-data"},fu={key:1,class:"disk-item_value"},mu={key:0,class:"disk-item"},bu={class:"disk-item_name"},vu=["href"],gu={class:"disk_status"},_u={class:"disk_status_item"},hu={key:0,class:"tooltip-trigger disk_tip"},xu=aa(()=>t("div",{class:"tooltip-text tooltip-top"},[t("div",{class:"disk_dir_tip"},"\u5F53\u524D\u78C1\u76D8\u4E3A\u53EA\u8BFB\u72B6\u6001\uFF0C\u53EF\u80FD\u5BFC\u81F4\u65E0\u6CD5\u5199\u5165\u6570\u636E")],-1)),ku={class:"disk_status_item"},wu={key:0,class:"tooltip-trigger disk_tip"},yu=aa(()=>t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u5F53\u524D\u78C1\u76D8\u786C\u76D8\u683C\u5F0F\u4E3ANTFS\uFF0C\u53EF\u80FD\u5BFC\u81F4\u786C\u76D8\u51FA\u73B0\u517C\u5BB9\u6027\u95EE\u9898\uFF0C\u5EFA\u8BAE\u683C\u5F0F\u5316\u6210EXT4\u6587\u4EF6\u7CFB\u7EDF")],-1)),Fu=P({props:{part:{type:Object,required:!0},disk:{type:Object,required:!0}},setup(e){const a=e,o=R(()=>a.part.filesystem=="No FileSystem"),n=R(()=>o.value||!a.part.isSystemRoot&&a.part.mountPoint&&(a.part.isReadOnly||a.part.filesystem=="ntfs")),s=function(){$e({action:"disk",disk:a.disk,mount:a.part,Cancel:()=>{},Next:l=>{location.reload()}})},p=()=>{ea({action:"nas",disk:a.disk,mount:a.part,Cancel:()=>{},Next:()=>{location.reload()}})},c=()=>T(this,null,function*(){const l=E.Loading("\u5904\u7406\u4E2D...");try{const u=yield z.Nas.Disk.InitRest.POST({name:a.disk.name,path:a.disk.path});if(u!=null&&u.data){const{result:m,error:b}=u==null?void 0:u.data;b&&E.Warning(b),m&&(E.Success("\u6302\u8F7D\u6210\u529F"),location.reload())}}catch(u){E.Error(u)}l.Close()}),f=R(()=>a.part.filesystem=="Free Space"),d=R(()=>{const l=a.part.mountPoint?a.part.mountPoint:"";return l.indexOf("/mnt/")==0?"/cgi-bin/luci/admin/services/linkease/file/?path=/"+l.substring(5):"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+l});return(l,u)=>{var b;const m=J("progress-item");return i(),r("div",nu,[t("li",iu,[t("div",ru,[w(f)?(i(),r("span",su,"\u672A\u5206\u533A")):(i(),r("span",du,h(e.part.name)+h(e.part.mountPoint?"":w(o)?"\uFF08\u672A\u683C\u5F0F\u5316\uFF09":"\uFF08\u672A\u6302\u8F7D\uFF09"),1)),e.part.isSystemRoot?(i(),r("span",uu,"\uFF08\u7CFB\u7EDF\u5206\u533A\uFF09")):$("",!0)]),t("div",lu,[e.part.mountPoint||w(f)?(i(),r("div",cu,[t("div",pu,[A(m,{value:w(f)||!e.part.usage?0:e.part.usage,text:w(f)?"\u672A\u5206\u533A\uFF08"+e.part.total+"\uFF09":e.part.used+"/"+e.part.total,style:{backgroundColor:"#767676"}},null,8,["value","text"])])])):w(o)?$("",!0):(i(),r("div",fu,[t("div",{class:"value-data buttondiv",onClick:p},"\u624B\u52A8\u6302\u8F7D")])),w(f)?(i(),r("button",{key:2,class:"cbi-button cbi-button-apply",onClick:c},"\u5206\u533A\u5E76\u683C\u5F0F\u5316")):w(n)?(i(),r("button",{key:3,class:"cbi-button cbi-button-apply",onClick:s},"\u683C\u5F0F\u5316\u5206\u533A")):$("",!0)])]),e.part.mountPoint?(i(),r("li",mu,[t("span",bu,[t("a",{href:w(d),target:"_blank"},h(e.part.mountPoint),9,vu)]),t("div",gu,[t("div",_u,[t("div",null,"\u78C1\u76D8\u8BFB\u5199\u72B6\u6001\uFF1A"+h(e.part.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1),!e.part.isSystemRoot&&e.part.isReadOnly?(i(),r("div",hu,[A(gt),xu])):$("",!0)]),t("div",ku,[t("div",null,"\u78C1\u76D8\u683C\u5F0F\uFF1A"+h((b=e.part.filesystem)==null?void 0:b.toUpperCase()),1),e.part.filesystem=="ntfs"?(i(),r("div",wu,[A(gt),yu])):$("",!0)])])])):$("",!0)])}}});var Eu=Y(Fu,[["__scopeId","data-v-31be4af0"]]);const oa=e=>(O("data-v-5fa713aa"),e=e(),N(),e),Cu={key:0,class:"action"},$u={class:"title"},Du=oa(()=>t("div",{class:"app-container_info"},[t("span",null,"\u5206\u533A / \u6302\u8F7D\u70B9"),t("span",null,"\u5BB9\u91CF")],-1)),Bu={class:"app-container_body"},Yu=oa(()=>t("div",{class:"auto"},null,-1)),Au=P({props:{disk:{type:Object,required:!0},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const a=e,o=y(0),n=()=>{a.Close&&a.Close()},s=p=>{p.preventDefault(),a.Cancel&&a.Cancel(),n()};return(p,c)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>[o.value==0?(i(),r("div",Cu,[t("h2",$u,"\u5206\u533A\u4FE1\u606F - "+h((e.disk.name||"?")+(e.disk.isSystemRoot?"\uFF08\u7CFB\u7EDF\u76D8\uFF09":"")),1),t("ul",null,[t("li",null,[Du,t("div",Bu,[(i(!0),r(L,null,j(e.disk.childrens,(f,d)=>(i(),M(Eu,{key:d,part:f,disk:e.disk},null,8,["part","disk"]))),128))])])]),t("div",{class:"action-footer"},[Yu,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:s,type:"button"},"\u8FD4\u56DE")])])):$("",!0)]),_:1})]),_:1},8,["Close"]))}});var Su=Y(Au,[["__scopeId","data-v-5fa713aa"]]),zu=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(Su,tt(W({},e),{Close:()=>{n()}}));o.component("progress-item",Ze),o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const pe=e=>(O("data-v-eb0dbbd8"),e=e(),N(),e),Pu={key:0,class:"disk-item error"},Tu=["title"],Iu={class:"disk-item_value"},Lu={class:"value-data"},Mu={class:"error"},Ou={key:1,class:"disk-item"},Nu=["title"],qu={key:0,class:"disk_value"},ju=pe(()=>t("div",{class:"value-data"},[t("a",{href:"/cgi-bin/luci/admin/nas/smart"},[t("span",{class:"error"}," S.M.A.R.T\u5F02\u5E38")])],-1)),Ru=[ju],Gu={key:1,class:"disk_value"},Vu={class:"disk-item_value"},Uu={class:"value-data"},Wu=pe(()=>t("div",{class:"disk-item-tooltip"},[t("span",null,"\u4EC5\u7EDF\u8BA1\u5DF2\u6302\u8F7D\u5206\u533A")],-1)),Zu={class:"disk_icon"},Hu={key:0,class:"tooltip-trigger"},Ju={class:"disk_tip"},Xu=pe(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\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)),Ku={key:1,class:"tooltip-trigger"},Qu={class:"disk_tip"},t1=pe(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u5206\u533A\u5B58\u5728\u5F02\u5E38\uFF0C\u70B9\u51FB\u5206\u533A\u5217\u8868\u67E5\u770B\u9519\u8BEF")])],-1)),e1={key:2,class:"disk-item load"},a1=["title"],o1={class:"disk_value"},n1={class:"disk-item_value"},i1={class:"value-data"},r1={key:3,class:"disk-item load"},s1=["title"],d1={class:"disk_value"},u1={key:0,class:"disk-item_value"},l1={class:"value-data"},c1={key:1,class:"disk-item_value"},p1={class:"value-data"},f1={class:"disk_icon"},m1=P({props:{disk:{type:Object,required:!0},smartWarning:{type:Boolean}},setup(e){const a=e,o=R(()=>a.disk.errorInfo?"error":a.disk.childrens==null||a.disk.childrens.length==0||a.disk.childrens.length==1&&a.disk.childrens[0].filesystem=="No FileSystem"?"load":a.disk.childrens.filter(f=>f.mountPoint).length==0?"unmounted":"success"),n=R(()=>{const f=a.disk;let d=f.name;return f.size&&(d+=`\u3010${f.size}\u3011`),f.venderModel&&(d+=`(${f.venderModel})`),d}),s=()=>{$e({action:"disk",disk:a.disk,Cancel:()=>{},Next:()=>{location.reload()}})},p=()=>{zu({action:"disk",disk:a.disk,Cancel:()=>{},Next:()=>{location.reload()}})},c=()=>{const f=a.disk,d=f.childrens||[];ea({action:"nas",disk:f,mount:d[0],Cancel:()=>{},Next:()=>{location.reload()}})};return(f,d)=>{var u,m,b,_,v;const l=J("progress-item");return w(o)=="error"?(i(),r("li",Pu,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,Tu),t("div",Iu,[t("div",Lu,[t("span",Mu,h(e.disk.errorInfo),1)])])])):w(o)=="success"?(i(),r("li",Ou,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,Nu),e.disk.smartWarning&&e.smartWarning?(i(),r("div",qu,Ru)):(i(),r("div",Gu,[t("div",Vu,[t("div",Uu,[A(l,{value:e.disk.usage||0,text:`${e.disk.used}/${e.disk.total}`,style:{backgroundColor:"#767676"}},null,8,["value","text"])]),Wu]),t("div",Zu,[e.disk.isDockerRoot&&e.disk.isSystemRoot&&e.disk.usage&&e.disk.usage>=90?(i(),r("span",Hu,[t("span",Ju,[A(gt)]),Xu])):$("",!0),!e.disk.isSystemRoot&&(((u=e.disk.childrens)==null?void 0:u.filter(g=>g.isReadOnly||g.filesystem=="ntfs").length)||0)>0?(i(),r("span",Ku,[t("span",Qu,[A(gt)]),t1])):$("",!0),!e.disk.isSystemRoot&&(((m=e.disk.childrens)==null?void 0:m.filter(g=>g.isReadOnly||g.filesystem=="ntfs").length)||0)>0?(i(),r("span",{key:2,class:"disk_infoicon",onClick:d[0]||(d[0]=g=>s())},[A(Xd)])):$("",!0),t("span",{class:"disk_infoicon",onClick:d[1]||(d[1]=g=>p())},[A(Ne)])])]))])):w(o)=="load"?(i(),r("li",e1,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,a1),t("div",o1,[t("div",n1,[t("div",i1,[t("button",{onClick:d[2]||(d[2]=g=>s())},"\u683C\u5F0F\u5316\u5E76\u6302\u8F7D")])])])])):w(o)=="unmounted"?(i(),r("li",r1,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,s1),t("div",d1,[((b=e.disk.childrens)==null?void 0:b.length)==1?(i(),r("div",u1,[t("div",l1,[t("button",{onClick:d[3]||(d[3]=g=>c())},"\u624B\u52A8\u6302\u8F7D")])])):$("",!0),(((_=e.disk.childrens)==null?void 0:_.length)||0)>1?(i(),r("div",c1,[t("div",p1,[t("button",{onClick:d[4]||(d[4]=g=>p())},"\u624B\u52A8\u6302\u8F7D")])])):$("",!0),t("div",f1,[(((v=e.disk.childrens)==null?void 0:v.length)||0)>1?(i(),r("span",{key:0,class:"disk_infoicon",onClick:d[5]||(d[5]=g=>p())},[A(Ne)])):$("",!0)])])])):$("",!0)}}});var xe=Y(m1,[["__scopeId","data-v-eb0dbbd8"]]);const Rt=e=>(O("data-v-4a49a4e4"),e=e(),N(),e),b1={class:"app-container"},v1={class:"app-container_title"},g1=Rt(()=>t("span",{class:"disk_info"},"\u78C1\u76D8\u4FE1\u606F",-1)),_1={class:"app-container_tool"},h1={class:"more_icon",title:"\u67E5\u770B\u78C1\u76D8\u7BA1\u7406\u4FE1\u606F"},x1={class:"DeviceBlock"},k1=Rt(()=>t("ul",null,[t("li",null,[t("a",{href:"/cgi-bin/luci/admin/nas/raid"},"RAID\u7BA1\u7406")]),t("li",null,[t("a",{href:"/cgi-bin/luci/admin/nas/smart"},"S.M.A.R.T.")]),t("li",null,[t("a",{href:"/cgi-bin/luci/admin/system/diskman"},"\u78C1\u76D8\u7BA1\u7406")]),t("li",null,[t("a",{href:"/cgi-bin/luci/admin/system/mounts"},"\u6302\u8F7D\u70B9")])],-1)),w1={key:0},y1={class:"disk_loading_icon"},F1=Rt(()=>t("span",{class:"disk_loading_info"},"\u6B63\u5728\u83B7\u53D6\u78C1\u76D8\u4FE1\u606F...",-1)),E1={key:1},C1=Rt(()=>t("div",{class:"app-container_info"},[t("span",null,"\u7CFB\u7EDF\u6839\u76EE\u5F55")],-1)),$1={class:"app-container_body"},D1={key:2},B1=Rt(()=>t("div",{class:"app-container_info"},[t("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),Y1={class:"app-container_body"},A1={key:3},S1=Rt(()=>t("div",{class:"app-container_info"},[t("span",null,"RAID\u8BBE\u5907")],-1)),z1={class:"app-container_body"},P1=P({setup(e){const a=y(!1),o=nt({disks:null,raidList:null}),n=()=>{z.Nas.Disk.Status.GET().then(f=>{var d;if((d=f==null?void 0:f.data)!=null&&d.result){const l=f.data.result;o.disks=l.disks||[]}})};(()=>T(this,null,function*(){try{const f=yield z.Raid.List.GET();if(f!=null&&f.data){const{success:d,error:l,result:u}=f.data;if(u&&(o.raidList=u.disks||[]),l)throw l}}catch(f){console.log(f)}}))(),n();const p=()=>{a.value=!a.value},c=()=>{lt.installAndGo("luci-app-linkease","\u6613\u6709\u4E91","/cgi-bin/luci/admin/services/linkease/file/","app-meta-linkease")};return(f,d)=>{var u,m;const l=J("icon-loading");return i(),r("div",b1,[t("ul",null,[t("li",null,[t("div",v1,[g1,t("div",_1,[t("div",{class:"app-container_configure",onClick:c}," \u6587\u4EF6\u7BA1\u7406 "),t("span",h1,[A(Ct,{onClick:p})])]),S(t("div",x1,[t("div",{class:"menu_background",onClick:p}),k1],512),[[kt,a.value]])])]),!w(o).disks&&!w(o).raidList?(i(),r("li",w1,[t("div",y1,[A(l,{size:38,color:"currentColor"}),F1])])):$("",!0),w(o).disks?(i(),r("li",E1,[C1,t("div",$1,[(i(!0),r(L,null,j((u=w(o).disks)==null?void 0:u.filter(b=>b.isSystemRoot),(b,_)=>(i(),M(xe,{key:_,disk:b},null,8,["disk"]))),128))])])):$("",!0),w(o).disks?(i(),r("li",D1,[B1,t("div",Y1,[(i(!0),r(L,null,j((m=w(o).disks)==null?void 0:m.filter(b=>!b.isSystemRoot),(b,_)=>(i(),M(xe,{key:_,disk:b,smartWarning:!0},null,8,["disk"]))),128))])])):$("",!0),w(o).raidList&&w(o).raidList.length>0?(i(),r("li",A1,[S1,t("div",z1,[(i(!0),r(L,null,j(w(o).raidList,(b,_)=>(i(),M(xe,{key:_,disk:b},null,8,["disk"]))),128))])])):$("",!0)])])}}});var T1=Y(P1,[["__scopeId","data-v-4a49a4e4"]]);const na=e=>(O("data-v-13ca629c"),e=e(),N(),e),I1={class:"app-container_samba"},L1={key:0,class:"sambas-item"},M1=na(()=>t("div",{class:"sambas-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),O1={class:"sambas-item_value"},N1=na(()=>t("li",{class:"sambas-item"},[t("div",{class:"sambas-item_name tit"},[t("span",null,"\u5730\u5740")]),t("div",{class:"sambas-item_value tit"},[t("span",null,"\u76EE\u5F55")])],-1)),q1={class:"samba-item"},j1={class:"samba-item_name"},R1=["title"],G1=["href"],V1=P({props:{sambas:{type:Array}},setup(e){const a=window.location.hostname;return(o,n)=>{var s;return i(),r("ul",I1,[e.sambas?(i(),r("li",L1,[M1,t("div",O1,[t("span",null,h((s=e.sambas)!=null&&s.length?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"),1)])])):$("",!0),N1,(i(!0),r(L,null,j(e.sambas,p=>(i(),r("li",q1,[t("div",j1,[t("span",null,"smb://"+h(w(a))+"/"+h(p.shareName),1)]),t("div",{class:"samba-item_value",title:p.path},[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+p.path},h(p.path),9,G1)],8,R1)]))),256))])}}});var U1=Y(V1,[["__scopeId","data-v-13ca629c"]]);const fe=e=>(O("data-v-b4608492"),e=e(),N(),e),W1={class:"webdav-item"},Z1=fe(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),H1={class:"webdav-item_value"},J1={key:0,class:"webdav-item"},X1=fe(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u6302\u8F7D\u8DEF\u5F84:")],-1)),K1={class:"webdav-item_value"},Q1=["href"],tl={key:1,class:"webdav-item"},el=fe(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u670D\u52A1\u8DEF\u5F84:")],-1)),al={class:"webdav-item_value"},ol=["href"],nl={key:2,class:"webdav-item"},il=fe(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u8D26\u53F7:")],-1)),rl={class:"webdav-item_value"},sl=P({props:{webdav:{type:Object}},setup(e){const a=e,o=R(()=>{var n;return`http://${location.hostname}:${(n=a.webdav)==null?void 0:n.port}`});return(n,s)=>{var p,c,f,d,l,u,m;return i(),r(L,null,[t("li",W1,[Z1,t("div",H1,[t("span",null,h((p=e.webdav)!=null&&p.path?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"),1)])]),(c=e.webdav)!=null&&c.path?(i(),r("li",J1,[X1,t("div",K1,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((f=e.webdav)==null?void 0:f.path)},h((d=e.webdav)==null?void 0:d.path),9,Q1)])])):$("",!0),(l=e.webdav)!=null&&l.port?(i(),r("li",tl,[el,t("div",al,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,ol)])])):$("",!0),(u=e.webdav)!=null&&u.username?(i(),r("li",nl,[il,t("div",rl,[t("span",null,h((m=e.webdav)==null?void 0:m.username),1)])])):$("",!0)],64)}}});var dl=Y(sl,[["__scopeId","data-v-b4608492"]]);const De=e=>(O("data-v-4a3b6e0a"),e=e(),N(),e),ul={class:"disk-item"},ll=De(()=>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)),cl={class:"disk-item_f"},pl={class:"disk-item_venderModel"},fl={class:"disk-item_used"},ml=De(()=>t("div",{class:"auto"},null,-1)),bl={class:"disk-item-r"},vl={class:"disk-children"},gl=["onClick"],_l=De(()=>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)),hl={key:0},xl={key:1},kl=P({props:{disk:{type:Object,required:!0},currDisk:{type:Object},currMountPoint:{type:Object},onDisk:{type:Function,required:!0}},setup(e){var s,p;const a=e,o=y(!1);a.currDisk!=null&&((s=a.currDisk)==null?void 0:s.venderModel)==((p=a.disk)==null?void 0:p.venderModel)&&(o.value=!0);const n=c=>{o.value=!o.value,a.onDisk(c,null)};return(c,f)=>{var d;return i(),r("ul",ul,[t("li",{class:st(["disk-info",{on:e.disk.venderModel==((d=e.currDisk)==null?void 0:d.venderModel),nopoint:e.disk.childrens==null||e.disk.childrens.length==0}]),onClick:f[0]||(f[0]=l=>n(e.disk))},[ll,t("div",cl,[t("div",pl,h(e.disk.venderModel),1),t("div",fl,h(e.disk.used)+"/"+h(e.disk.size),1)]),ml,t("div",bl,h(e.disk.path),1)],2),S(t("div",vl,[(i(!0),r(L,null,j(e.disk.childrens,l=>{var u,m;return i(),r("li",{class:st(["disk-children_item",{on:l.uuid==((u=e.currMountPoint)==null?void 0:u.uuid)&&l.path==((m=e.currMountPoint)==null?void 0:m.path)}]),onClick:b=>e.onDisk(e.disk,l)},[_l,l.mountPoint?(i(),r("span",hl," \u3010"+h(l.filesystem)+"\u3011 "+h(l.mountPoint)+" \uFF08"+h(l.used)+"/"+h(l.total)+"\uFF09 ["+h(l.uuid)+"] ",1)):(i(),r("span",xl," \u3010"+h(l.filesystem)+"\u3011 "+h(l.mountPoint||l.path||"\u672A\u6302\u8F7D\u78C1\u76D8")+" ["+h(l.uuid)+"] ",1))],10,gl)}),256))],512),[[kt,o.value]])])}}});var qe=Y(kl,[["__scopeId","data-v-4a3b6e0a"]]);const Be=e=>(O("data-v-12d0f96b"),e=e(),N(),e),wl={class:"action list"},yl=Be(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u8BF7\u9009\u62E9\u4E00\u4E2A\u786C\u76D8\u6216\u5206\u533A")],-1)),Fl={class:"action-body"},El={class:"disk-list"},Cl=Be(()=>t("div",{class:"action-msg"},[t("span",null,[U(" \u60F3\u8981\u66F4\u7CBE\u786E\u7684\u914D\u7F6E\uFF1F\u8BF7\u524D\u5F80 "),t("a",{href:"/cgi-bin/luci/admin/system/diskman"},"\u9AD8\u7EA7\u8BBE\u7F6E")])],-1)),$l=Be(()=>t("div",{class:"auto"},null,-1)),Dl=P({props:{Cancel:{type:Function},Next:{type:Function},Close:{type:Function}},setup(e){const a=e,o=y(!0),n=nt({disks:[],raids:[]});(()=>T(this,null,function*(){const b=yield Promise.all([z.Nas.Disk.Status.GET(),z.Raid.List.GET()]);try{if(b[0]){const _=b[0];_!=null&&_.data.result&&(n.disks=(_==null?void 0:_.data.result.disks)||[])}if(b[1]){const _=b[1];_.data.result&&(n.raids=_.data.result.disks||[])}}catch(_){E.Warning(_)}}))();const p=y(),c=y(),f=(b,_)=>{p.value=b,c.value=_},d=()=>{a.Close&&a.Close()},l=()=>{a.Cancel&&a.Cancel(),d()},u=b=>{a.Next&&a.Next(b),d()},m=()=>{if(p.value==null){E.Warning("\u8BF7\u9009\u62E9\u76EE\u6807\u786C\u76D8");return}if(p.value.childrens!=null&&p.value.childrens.length>0&&c.value==null){E.Warning("\u8BF7\u9009\u62E9\u786C\u76D8\u5206\u533A");return}if(c.value!=null&&(c.value.mountPoint==null||c.value.mountPoint=="")){E.Warning("\u8BE5\u5206\u533A\u5C1A\u672A\u6302\u8F7D\uFF0C\u8BF7\u5148\u53BB\u6302\u8F7D");return}o.value=!1,$e({action:"nas",disk:p.value,mount:c.value,Cancel:()=>{o.value=!0},Next:b=>{u(b)}})};return(b,_)=>o.value?(i(),M(Q,{key:0,type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>[t("div",wl,[yl,t("div",Fl,[t("div",El,[(i(!0),r(L,null,j(w(n).disks,v=>(i(),M(qe,{disk:v,onDisk:f,currDisk:p.value,currMountPoint:c.value},null,8,["disk","currDisk","currMountPoint"]))),256)),(i(!0),r(L,null,j(w(n).raids,v=>(i(),M(qe,{disk:v,onDisk:f,currDisk:p.value,currMountPoint:c.value},null,8,["disk","currDisk","currMountPoint"]))),256))])]),Cl,t("div",{class:"action-footer"},[$l,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:l,type:"button"},"\u8FD4\u56DE"),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:m,type:"button"},"\u4E0B\u4E00\u6B65")])])]),_:1})]),_:1})):$("",!0)}});var Bl=Y(Dl,[["__scopeId","data-v-12d0f96b"]]),Yl=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(Bl,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const me=e=>(O("data-v-530e728c"),e=e(),N(),e),Al={class:"action"},Sl={class:"action-body"},zl=me(()=>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)),Pl=me(()=>t("h2",{class:"title"},"\u670D\u52A1\u5DF2\u542F\u52A8",-1)),Tl={class:"info"},Il=me(()=>t("span",null,"\u524D\u5F80",-1)),Ll=["href"],Ml=me(()=>t("span",null,"\u914D\u7F6E",-1)),Ol=P({props:{Close:Function},setup(e){const a=e,o=y(""),n=R(()=>`http://${location.hostname}:${o.value}`);(()=>{z.Nas.Linkease.Enable.POST().then(c=>{var f,d;(f=c==null?void 0:c.data)!=null&&f.result&&(o.value=((d=c.data.result)==null?void 0:d.port)||"")})})();const p=()=>{a.Close&&a.Close(),location.reload()};return(c,f)=>(i(),M(Q,{type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>[t("div",Al,[t("div",Sl,[zl,Pl,t("div",Tl,[Il,t("a",{href:w(n),target:"_blank",rel:"noopener noreferrer"},h(w(n)),9,Ll),Ml]),t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:p},"\u5173\u95ED")])])])]),_:1})]),_:1}))}});var Nl=Y(Ol,[["__scopeId","data-v-530e728c"]]),ql=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(Nl,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Qt=e=>(O("data-v-30ef6ccb"),e=e(),N(),e),jl=["onSubmit"],Rl=Qt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Webdav\u5171\u4EAB\u914D\u7F6E")],-1)),Gl={class:"action-body"},Vl={class:"label-item"},Ul=Qt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),Wl={class:"label-item_value"},Zl=["value"],Hl={class:"label-item"},Jl=Qt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),Xl={class:"label-item_value"},Kl={class:"label-item"},Ql=Qt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),tc={class:"label-item_value"},ec={class:"action-footer"},ac=Qt(()=>t("div",{class:"auto"},null,-1)),oc=["disabled"],nc=["disabled"],ic=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const a=e,o=d=>{d.preventDefault(),a.Close&&a.Close()},n=y(!1),s=y({username:"root",password:"",rootPath:a.rootPath});(()=>T(this,null,function*(){const d=E.Loading("\u52A0\u8F7D\u4E2D...");n.value=!0;try{const l=yield z.Nas.Webdav.Status.GET();if(l!=null&&l.data){const{result:u,error:m}=l.data;if(m){E.Warning(m);return}u&&(u.username&&(s.value.username=u.username),u.password&&(s.value.password=u.password))}}catch(l){E.Error(l)}n.value=!1,d.Close()}))();const c=()=>{const d=s.value;if(d.rootPath==""){E.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(d.username==""){E.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(d.password==""){E.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}f(d)},f=d=>T(this,null,function*(){n.value=!0;const l=E.Loading("\u521B\u5EFA\u4E2D...");try{const u=yield z.Nas.Webdav.Create.POST(d);if(u!=null&&u.data){const{error:m,result:b}=u.data;m&&E.Warning(m),b&&(E.Success("\u521B\u5EFA\u6210\u529F"),window.setTimeout(()=>{location.reload()},1e3))}}catch(u){E.Error(u)}l.Close(),n.value=!1});return(d,l)=>(i(),M(Q,{type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>[t("form",{class:"action",onSubmit:ot(c,["prevent"])},[Rl,t("div",Gl,[t("div",Vl,[Ul,t("div",Wl,[t("input",{type:"text",value:s.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,Zl)])]),t("div",Hl,[Jl,t("div",Xl,[S(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":l[0]||(l[0]=u=>s.value.username=u)},null,512),[[V,s.value.username,void 0,{trim:!0}]])])]),t("div",Kl,[Ql,t("div",tc,[S(t("input",{type:"password","onUpdate:modelValue":l[1]||(l[1]=u=>s.value.password=u)},null,512),[[V,s.value.password,void 0,{trim:!0}]])])])]),t("div",ec,[ac,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:o,disabled:n.value},"\u5173\u95ED",8,oc),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:n.value},"\u521B\u5EFA",8,nc)])],40,jl)]),_:1})]),_:1}))}});var rc=Y(ic,[["__scopeId","data-v-30ef6ccb"]]),sc=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(rc,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const At=e=>(O("data-v-3ef9e48f"),e=e(),N(),e),dc=["onSubmit"],uc=At(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Samba\u5171\u4EAB\u914D\u7F6E")],-1)),lc={class:"action-body"},cc={class:"label-item"},pc=At(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),fc={class:"label-item_value"},mc=["value"],bc={class:"label-item"},vc=At(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5171\u4EAB\u540D\uFF08\u5EFA\u8BAE\u4F7F\u7528\u82F1\u6587\u5B57\u6BCD\uFF09")],-1)),gc={class:"label-item_value"},_c={class:"label-item"},hc=At(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),xc={class:"label-item_value"},kc={class:"label-item"},wc=At(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),yc={class:"label-item_value"},Fc={class:"samba-item"},Ec={class:"samba-item_allow"},Cc=At(()=>t("label",{for:"allow",class:"samba-allow"},"\u5141\u8BB8\u65E7\u534F\u8BAE\u4E0E\u8EAB\u4EFD\u9A8C\u8BC1(\u4E0D\u5B89\u5168)",-1)),$c={class:"samba-item_tips"},Dc={class:"tooltip-trigger"},Bc={class:"samba_tip"},Yc=At(()=>t("span",{class:"samba_dir_tip"},"\u517C\u5BB9\u4E00\u4E9B\u7535\u89C6\u6216\u8005\u7535\u89C6\u76D2\u5B50",-1)),Ac={class:"action-footer"},Sc=At(()=>t("div",{class:"auto"},null,-1)),zc=["disabled"],Pc=["disabled"],Tc=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const a=e,o=f=>{f.preventDefault(),a.Close&&a.Close()},n=y(!1),s=y({shareName:"",username:"",password:"",rootPath:a.rootPath,allowLegacy:!1}),p=()=>{const f=s.value;if(f.rootPath==""){E.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(f.shareName==""){E.Warning("\u5171\u4EAB\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A");return}if(f.username==""){E.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(f.password==""){E.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}const d=wt.checkSmabaUserName(f.username);if(d!==!0){E.Warning(`${d}`);return}c(f)},c=f=>T(this,null,function*(){n.value=!0;const d=E.Loading("\u521B\u5EFA\u4E2D...");try{const l=yield z.Nas.Samba.Create.POST(f);if(l!=null&&l.data){const{error:u,result:m}=l.data;u&&E.Warning(u),m&&(E.Success("\u521B\u5EFA\u6210\u529F"),window.setTimeout(()=>{location.reload()},1e3))}}catch(l){E.Error(l)}d.Close(),n.value=!1});return(f,d)=>(i(),M(Q,{type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>[t("form",{class:"action",onSubmit:ot(p,["prevent"])},[uc,t("div",lc,[t("div",cc,[pc,t("div",fc,[t("input",{type:"text",value:s.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,mc)])]),t("div",bc,[vc,t("div",gc,[S(t("input",{type:"text","onUpdate:modelValue":d[0]||(d[0]=l=>s.value.shareName=l),required:"",placeholder:"\u5171\u4EAB\u540D\u79F0"},null,512),[[V,s.value.shareName,void 0,{trim:!0}]])])]),t("div",_c,[hc,t("div",xc,[S(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":d[1]||(d[1]=l=>s.value.username=l)},null,512),[[V,s.value.username,void 0,{trim:!0}]])])]),t("div",kc,[wc,t("div",yc,[S(t("input",{type:"password","onUpdate:modelValue":d[2]||(d[2]=l=>s.value.password=l)},null,512),[[V,s.value.password,void 0,{trim:!0}]])])]),t("div",Fc,[t("div",Ec,[S(t("input",{type:"checkbox",id:"allow","onUpdate:modelValue":d[3]||(d[3]=l=>s.value.allowLegacy=l)},null,512),[[Tt,s.value.allowLegacy]]),Cc]),t("div",$c,[t("span",Dc,[t("span",Bc,[A(gt)]),Yc])])])]),t("div",Ac,[Sc,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:o,disabled:n.value},"\u5173\u95ED",8,zc),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:n.value},"\u521B\u5EFA",8,Pc)])],40,dc)]),_:1})]),_:1}))}});var Ic=Y(Tc,[["__scopeId","data-v-3ef9e48f"]]),Lc=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(Ic,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Jt=e=>!Array.isArray(window.quickstart_features)||window.quickstart_features.indexOf(e)!=-1,Gt=e=>(O("data-v-7244f123"),e=e(),N(),e),Mc={key:0,class:"action"},Oc=Gt(()=>t("h2",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528 NAS \u914D\u7F6E\u5411\u5BFC",-1)),Nc=Gt(()=>t("h3",{class:"desc"},"\u8BF7\u9009\u62E9\u9700\u8981\u6DFB\u52A0\u7684NAS\u670D\u52A1",-1)),qc=Gt(()=>t("option",{value:"linkease"},"\u8DE8\u8BBE\u5907\u5171\u4EAB\uFF08\u6613\u6709\u4E91\uFF09",-1)),jc=Gt(()=>t("option",{value:"samba"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Samba\uFF09",-1)),Rc=Gt(()=>t("option",{value:"webdav"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08WebDAV\uFF09",-1)),Gc=[qc,jc,Rc],Vc={key:0,class:"tips"},Uc=U("\u5982\u9700\u5BF9 Samba \u6216 WebDAV \u8FDB\u884C\u66F4\u7EC6\u81F4\u7684\u6743\u9650\u63A7\u5236\uFF0C\u8BF7\u4F7F\u7528\u201C"),Wc=Gt(()=>t("a",{href:"/cgi-bin/luci/admin/nas/unishare"},"\u7EDF\u4E00\u6587\u4EF6\u5171\u4EAB",-1)),Zc=U("\u201D"),Hc=[Uc,Wc,Zc],Jc={class:"btns"},Xc=["disabled"],Kc=P({props:{setup:Number,Close:{type:Function,required:!0}},setup(e){const a=e,o=y(!0),n=y("linkease"),s=y(!1),p=y(a.setup||0),c=()=>{a.Close&&a.Close()},f=()=>T(this,null,function*(){switch(n.value){case"webdav":yield d();break;case"samba":yield u();break;case"linkease":yield l();break}}),d=()=>T(this,null,function*(){s.value=!0,(yield lt.checkAndInstallApp("app-meta-gowebdav","GoWebdav"))&&m(),s.value=!1}),l=()=>T(this,null,function*(){s.value=!0,(yield lt.checkAndInstallApp("linkease","\u6613\u6709\u4E91","app-meta-linkease"))&&b(),s.value=!1}),u=()=>T(this,null,function*(){s.value=!0;const g=E.Loading("\u914D\u7F6E\u4E2D...");m(),g.Close(),s.value=!1}),m=()=>{s.value=!1,o.value=!1,Yl({Cancel:()=>{o.value=!0},Next:g=>{switch(n.value){case"webdav":_(g);break;case"samba":v(g);break}}})},b=()=>{ql({}),c()},_=g=>{sc({rootPath:g}),c()},v=g=>{Lc({rootPath:g}),c()};return(g,k)=>o.value?(i(),M(Q,{key:0,Close:e.Close,type:1},{default:q(()=>[A(ht,{name:"rotate",mode:"out-in"},{default:q(()=>[p.value==0?(i(),r("div",Mc,[Oc,Nc,t("form",null,[t("label",null,[S(t("select",{"onUpdate:modelValue":k[0]||(k[0]=x=>n.value=x)},Gc,512),[[Z,n.value]])])]),w(Jt)("unishare")?(i(),r("div",Vc,Hc)):$("",!0),t("div",Jc,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:f,type:"button",disabled:s.value},"\u4E0B\u4E00\u6B65",8,Xc),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:c,type:"button"},"\u53D6\u6D88")])])):$("",!0)]),_:1})]),_:1},8,["Close"])):$("",!0)}});var Qc=Y(Kc,[["__scopeId","data-v-7244f123"]]),ia=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(Qc,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Ye=e=>(O("data-v-edf68726"),e=e(),N(),e),t2={class:"app-container_linkease"},e2={class:"linkease-item"},a2=Ye(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),o2={class:"linkease-item_value"},n2={key:0,class:"configure"},i2={key:0,class:"linkease-item"},r2=Ye(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u670D\u52A1\u5730\u5740:")],-1)),s2={class:"linkease-item_value"},d2=["href"],u2=Ye(()=>t("div",null,[t("a",{href:" https://app.linkease.com/",target:"_blank"},"\u4E0B\u8F7D\u6613\u6709\u4E91\u5BA2\u6237\u7AEF\uFF0C\u968F\u65F6\u968F\u5730\u76F8\u518C\u5907\u4EFD\u3001\u8FDC\u7A0B\u8BBF\u95EE")],-1)),l2=P({props:{linkease:{type:Object}},setup(e){const a=e,o=R(()=>{var s;return`http://${location.hostname}:${(s=a.linkease)==null?void 0:s.port}`}),n=()=>{ia({setup:0})};return(s,p)=>{var c,f,d;return i(),r("ul",t2,[t("li",e2,[a2,t("div",o2,[(c=e.linkease)!=null&&c.enabel?(i(),r("span",n2,"\u5DF2\u914D\u7F6E")):(i(),r("span",{key:1,class:"configure enabel",onClick:p[0]||(p[0]=l=>n())},"\u672A\u914D\u7F6E"))])]),(f=e.linkease)!=null&&f.enabel?(i(),r(L,{key:0},[(d=e.linkease)!=null&&d.port?(i(),r("li",i2,[r2,t("div",s2,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,d2)])])):$("",!0)],64)):$("",!0),u2])}}});var c2=Y(l2,[["__scopeId","data-v-edf68726"]]);const ra=e=>(O("data-v-62b7dbe8"),e=e(),N(),e),p2={class:"app-container"},f2={class:"app-container_title"},m2=ra(()=>t("span",null,[t("span",null,"\u5B58\u50A8\u670D\u52A1")],-1)),b2={class:"app-container_tool"},v2={class:"more_icon",title:"\u67E5\u770B\u5B58\u50A8\u670D\u52A1\u4FE1\u606F"},g2={class:"DeviceBlock"},_2=ra(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/services/samba4"},"SAMBA\u9AD8\u7EA7\u914D\u7F6E")],-1)),h2={class:"app-container_body"},x2={class:"app-container_nas-menu"},k2=P({setup(e){const a=y(!1),o=y("linkease"),n=y(),s=We();(()=>{z.Nas.Service.Status.GET().then(l=>{var u;if((u=l==null?void 0:l.data)!=null&&u.result){const m=l.data.result;n.value=m,m.webdav&&(s.webdav=m.webdav)}})})();const c=()=>{ia({setup:0})},f=()=>{a.value=!a.value},d=()=>{f(),lt.installAndGo("app-meta-gowebdav","GoWebDAV","/cgi-bin/luci/admin/nas/gowebdav")};return(l,u)=>{var m,b,_;return i(),r("div",p2,[t("div",f2,[m2,t("div",b2,[t("div",{class:"app-container_configure",onClick:c},"\u5FEB\u901F\u914D\u7F6E"),t("span",v2,[A(Ct,{onClick:f})])]),S(t("div",g2,[t("div",{class:"menu_background",onClick:f}),t("ul",null,[_2,t("li",null,[t("a",{onClick:d},"WebDAV\u9AD8\u7EA7\u914D\u7F6E")])])],512),[[kt,a.value]])]),t("div",h2,[t("ul",x2,[t("button",{onClick:u[0]||(u[0]=v=>o.value="linkease"),class:st({on:o.value=="linkease"})},"\u6613\u6709\u4E91",2),t("button",{onClick:u[1]||(u[1]=v=>o.value="samba"),class:st({on:o.value=="samba"})},"SAMBA",2),t("button",{onClick:u[2]||(u[2]=v=>o.value="webdav"),class:st({on:o.value=="webdav"})},"WEBDAV",2)]),o.value=="samba"?(i(),M(U1,{key:0,sambas:(m=n.value)==null?void 0:m.sambas},null,8,["sambas"])):o.value=="webdav"?(i(),M(dl,{key:1,webdav:(b=n.value)==null?void 0:b.webdav},null,8,["webdav"])):o.value=="linkease"?(i(),M(c2,{key:2,linkease:(_=n.value)==null?void 0:_.linkease},null,8,["linkease"])):$("",!0)])])}}});var w2=Y(k2,[["__scopeId","data-v-62b7dbe8"]]);const be=e=>(O("data-v-3fd3a42d"),e=e(),N(),e),y2={class:"app-container_docker"},F2={class:"docker-item"},E2=be(()=>t("div",{class:"docker-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),C2={key:0,class:"docker-item_value"},$2=be(()=>t("span",{class:"configure"},"\u672A\u5B89\u88C5",-1)),D2=[$2],B2={key:1,class:"docker-item_value"},Y2={class:"input-switch"},A2=["value","disabled"],S2=be(()=>t("em",null,null,-1)),z2=[S2],P2={key:0,class:"docker-item"},T2=be(()=>t("div",{class:"docker-item_name"},[t("span",null,"Docker\u6839\u76EE\u5F55\uFF1A")],-1)),I2={class:"docker-item_value"},L2={class:"configure enabel"},M2={key:0},O2={class:"tooltip-trigger"},N2={class:"docker_tip"},q2={class:"tooltip-text tooltip-top"},j2={class:"docker_dir_tip"},R2=P({props:{docker:{type:Object}},setup(e){var p;const a=e,o=R(()=>{var c;return((c=a.docker)==null?void 0:c.status)!="not installed"}),n=nt({enable:((p=a.docker)==null?void 0:p.status)=="running",disabled:!1}),s=()=>T(this,null,function*(){n.disabled=!0;try{const c=yield z.Guide.DockerSwitch.POST({enable:n.enable});if(c!=null&&c.data){const{success:f,error:d}=c.data;if(d)throw n.enable=!n.enable,d;(f||0)==0}}catch(c){E.Warning(`${c}`)}finally{n.disabled=!1}});return(c,f)=>{var d,l,u,m;return i(),r("ul",y2,[t("li",F2,[E2,(d=a.docker)!=null&&d.status?(i(),r(L,{key:0},[w(o)?(i(),r("div",B2,[t("label",Y2,[S(t("input",{type:"checkbox",hidden:"",value:!w(n).enable,"onUpdate:modelValue":f[0]||(f[0]=b=>w(n).enable=b),disabled:w(n).disabled,onChange:s},null,40,A2),[[Tt,w(n).enable]]),t("span",{class:st(w(n).enable?"enable":"close")},z2,2)])])):(i(),r("div",C2,D2))],64)):$("",!0)]),((l=e.docker)==null?void 0:l.status)=="running"?(i(),r("li",P2,[T2,t("div",I2,[t("span",L2,h((u=e.docker)==null?void 0:u.path),1),(m=e.docker)!=null&&m.errorInfo?(i(),r("span",M2,[t("span",O2,[t("span",N2,[A(gt)]),t("div",null,[t("div",q2,[t("span",j2,h(e.docker.errorInfo),1)])])])])):$("",!0)])])):$("",!0)])}}});var G2=Y(R2,[["__scopeId","data-v-3fd3a42d"]]);const V2={},U2={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"},W2=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),Z2=[W2];function H2(e,a){return i(),r("svg",U2,Z2)}var J2=Y(V2,[["render",H2]]);const ct=e=>(O("data-v-83e05458"),e=e(),N(),e),X2={key:0,class:"action"},K2=ct(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Q2=ct(()=>t("p",{class:"desc"},"\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:",-1)),t6={key:1,class:"action"},e6=ct(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),a6=ct(()=>t("p",{class:"desc"},"\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:",-1)),o6={class:"roots"},n6=ct(()=>t("span",{class:"roots_tit"},"Docker\u6839\u76EE\u5F55\uFF1A",-1)),i6={class:"root"},r6={class:"move"},s6=ct(()=>t("span",{class:"roots_tit"},"\u8FC1\u79FB\u5230\uFF1A",-1)),d6={key:0},u6=["onSubmit"],l6={class:"select-editable"},c6=ct(()=>t("option",{selected:"",value:null},"\u8BF7\u9009\u62E9\u8FC1\u79FB\u5730\u5740",-1)),p6=["value"],f6=ct(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),m6={key:1,class:"tips"},b6={class:"tips_content"},v6=ct(()=>t("span",{class:"tip"},"\u68C0\u6D4B\u5230\u60A8\u8FD8\u6CA1\u6709\u6302\u8F7D\u5916\u7F6E\u786C\u76D8\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)),g6={key:0,class:"btns"},_6={key:1,class:"btns"},h6={key:2,class:"action docker_success"},x6=ct(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),k6={class:"finished"},w6=ct(()=>t("p",{class:"successed"},"\u8FC1\u79FB\u6210\u529F\uFF01",-1)),y6={key:3,class:"action docker_download"},F6=ct(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),E6={class:"finished"},C6=ct(()=>t("p",{class:"successed"},"\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),$6={class:"docker_moves"},D6={class:"moves change"},B6=ct(()=>t("label",{for:"move"},"\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)),Y6={class:"moves"},A6=ct(()=>t("label",{for:"cover"},"\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)),S6={class:"btns"},z6=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const a=e,o=y(),n=y(),s=y(0),p=y("null"),c=y(""),f=y(),d=y(!1),l=y("");(()=>{z.Nas.Disk.Status.GET().then(x=>{x!=null&&x.data.result&&(f.value=x==null?void 0:x.data.result)}),z.Guide.DockerStatus.GET().then(x=>{var F;if((F=x==null?void 0:x.data)!=null&&F.result){const D=x.data.result;o.value=D}}),z.Guide.DockerPartitionList.GET().then(x=>{var F;if((F=x==null?void 0:x.data)!=null&&F.result){const D=x.data.result;n.value=D}})})();const m=x=>{let F=p.value;if(F=="useInput"&&(F=c.value),F==null||F=="null"||F=="")return;const D=E.Loading("\u6B63\u5728\u8FC1\u79FB\u4E2D...");z.Guide.DockerTransfer.POST({path:F,force:x,overwriteDir:!!l.value}).then(C=>{var B;if(C!=null&&C.data){if((C.data.success||0)==0){if((B=C.data.result)!=null&&B.emptyPathWarning){d.value=!0,s.value=2;return}s.value=1;return}else if(C.data.error)throw C.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(C=>{E.Error(C)}).finally(()=>D.Close())},b=()=>{d.value=!1,m(!1)},_=x=>{x.preventDefault(),a.Close&&a.Close()},v=x=>{x.preventDefault(),location.reload()},g=x=>{x.preventDefault(),s.value=0},k=x=>{x.preventDefault(),m(!0)};return(x,F)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>{var D,C,B,G,K,et;return[s.value==-1?(i(),r("div",X2,[K2,Q2,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:_},"\u53D6\u6D88")])])):s.value==0?(i(),r("div",t6,[e6,a6,t("div",o6,[n6,t("span",i6,h((D=o.value)==null?void 0:D.path),1)]),t("div",r6,[s6,(B=(C=n.value)==null?void 0:C.partitionList)!=null&&B.length?(i(),r("div",d6,[t("form",{onSubmit:ot(b,["prevent"])},[t("label",null,[t("div",l6,[S(t("select",{"onUpdate:modelValue":F[0]||(F[0]=at=>p.value=at)},[c6,(i(!0),r(L,null,j((G=n.value)==null?void 0:G.partitionList,(at,_t)=>(i(),r("option",{value:at,key:_t},h(at),9,p6))),128)),f6],512),[[Z,p.value,void 0,{trim:!0}]]),p.value=="useInput"?S((i(),r("input",{key:0,type:"text","onUpdate:modelValue":F[1]||(F[1]=at=>c.value=at),required:"",placeholder:"\u8BF7\u8F93\u5165\u8FC1\u79FB\u5730\u5740"},null,512)),[[V,c.value,void 0,{trim:!0}]]):$("",!0)])])],40,u6)])):n.value?(i(),r("div",m6,[t("div",b6,[A(gt),v6])])):$("",!0)]),(et=(K=n.value)==null?void 0:K.partitionList)!=null&&et.length?(i(),r("div",g6,[t("button",{class:"cbi-button cbi-button-apply",onClick:b},"\u786E\u5B9A"),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:_},"\u53D6\u6D88")])):(i(),r("div",_6,[t("button",{class:"cbi-button cbi-button-apply",onClick:_},"\u786E\u5B9A")]))])):s.value==1?(i(),r("div",h6,[x6,t("div",k6,[A(Ce)]),w6,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:v},"\u786E\u5B9A")])])):s.value==2?(i(),r("div",y6,[F6,t("div",E6,[A(J2)]),C6,t("div",$6,[t("div",D6,[S(t("input",{type:"radio",id:"move",name:"moves","onUpdate:modelValue":F[2]||(F[2]=at=>l.value=at),value:""},null,512),[[pt,l.value]]),B6]),t("div",Y6,[S(t("input",{type:"radio",id:"cover",name:"moves","onUpdate:modelValue":F[3]||(F[3]=at=>l.value=at),value:"true"},null,512),[[pt,l.value]]),A6])]),t("div",S6,[d.value?(i(),r("button",{key:0,class:"cbi-button cbi-button-apply",onClick:k},"\u786E\u5B9A")):$("",!0),t("button",{class:"cbi-button cbi-button-apply",onClick:g},"\u8FD4\u56DE"),d.value?$("",!0):(i(),r("button",{key:1,class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:v},"\u53D6\u6D88"))])])):$("",!0)]}),_:1},8,["Close"]))}});var P6=Y(z6,[["__scopeId","data-v-83e05458"]]);const T6=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=X(P6,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},sa=e=>(O("data-v-45f6b8cc"),e=e(),N(),e),I6={class:"app-container"},L6={class:"app-container_title"},M6=sa(()=>t("span",null,[t("span",null,"Docker")],-1)),O6={key:0,class:"app-container_tool"},N6={key:1,class:"more_icon",title:"\u67E5\u770BDocker\u4FE1\u606F"},q6={class:"DeviceBlock"},j6=sa(()=>t("ul",null,[t("li",null,[t("a",{href:"/cgi-bin/luci/admin/docker/overview"},"Docker\u9AD8\u7EA7\u914D\u7F6E")])],-1)),R6={key:1,class:"loading_placeholder"},G6=P({props:{docker:{type:Object}},setup(e){const a=y(!1),o=y(),n=y(!1),s=()=>{n.value=!n.value},p=()=>{T6()};return setTimeout(()=>{z.Guide.DockerStatus.GET().then(f=>{var d;if((d=f==null?void 0:f.data)!=null&&d.result){const l=f.data.result;o.value=l}}).finally(()=>{a.value=!0})},3e3),(f,d)=>{var u,m;const l=J("icon-loading");return i(),r("div",I6,[t("div",L6,[M6,a.value?(i(),r("div",O6,[((u=o.value)==null?void 0:u.status)!="not installed"?(i(),r("div",{key:0,class:"app-container_configure",onClick:p},"\u5FEB\u901F\u914D\u7F6E ")):$("",!0),((m=o.value)==null?void 0:m.status)==="running"?(i(),r("span",N6,[A(Ct,{onClick:s})])):$("",!0)])):$("",!0),S(t("div",q6,[t("div",{class:"menu_background",onClick:s}),j6],512),[[kt,n.value]])]),t("div",null,[a.value?(i(),M(G2,{key:0,docker:o.value},null,8,["docker"])):(i(),r("div",R6,[A(l,{size:50,color:"currentColor"})]))])])}}});var V6=Y(G6,[["__scopeId","data-v-45f6b8cc"]]);const te=e=>(O("data-v-dbe287b2"),e=e(),N(),e),U6={class:"app-container_aria2"},W6={class:"aria2-item"},Z6=te(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),H6={class:"aria2-item_value"},J6={key:0,class:"configure"},X6={key:1,class:"configure enabel"},K6={class:"aria2-item"},Q6=te(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u4E0B\u8F7D\u76EE\u5F55:")],-1)),t5={class:"aria2-item_value"},e5=["href"],a5={class:"aria2-item"},o5=te(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),n5={class:"aria2-item_value"},i5=["href"],r5={class:"aria2-item"},s5=te(()=>t("div",{class:"aria2-item_name right"},[t("span",null,"\u8BA4\u8BC1\u5931\u8D25\uFF1F")],-1)),d5={class:"aria2-item_value"},u5=["href"],l5=te(()=>t("div",{class:"use-url_app"},[t("a",{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"},"\u4F7F\u7528\u6613\u6709\u4E91APP\uFF0C\u968F\u65F6\u968F\u5730\u8FDC\u7A0B\u4E0B\u8F7D")],-1)),c5=P({props:{aria2:{type:Object}},setup(e){const a=e,o=R(()=>{var s;return`${location.origin}${(s=a.aria2)==null?void 0:s.webPath}`}),n=R(()=>{var c,f,d;let s=(c=a.aria2)==null?void 0:c.rpcToken;s&&(s=encodeURIComponent(btoa(s)));const p=encodeURIComponent(location.hostname);return`${location.origin}${(f=a.aria2)==null?void 0:f.webPath}/#!/settings/rpc/set/http/${p}/${(d=a.aria2)==null?void 0:d.rpcPort}/jsonrpc/${s}`});return(s,p)=>{var c,f,d,l;return i(),r("ul",U6,[t("li",W6,[Z6,t("div",H6,[((c=e.aria2)==null?void 0:c.status)=="running"?(i(),r("span",J6,"\u5DF2\u542F\u52A8")):(i(),r("span",X6,"\u672A\u542F\u52A8"))])]),((f=e.aria2)==null?void 0:f.status)=="running"?(i(),r(L,{key:0},[t("li",K6,[Q6,t("div",t5,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((d=e.aria2)==null?void 0:d.downloadPath)},h((l=e.aria2)==null?void 0:l.downloadPath),9,e5)])]),t("li",a5,[o5,t("div",n5,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,i5)])]),t("li",r5,[s5,t("div",d5,[t("a",{href:w(n),target:"_blank",rel:"noopener noreferrer"},"\u70B9\u6B64\u81EA\u52A8\u914D\u7F6E AriaNg",8,u5)])])],64)):$("",!0),l5])}}});var p5=Y(c5,[["__scopeId","data-v-dbe287b2"]]);const Ae=e=>(O("data-v-030a7bea"),e=e(),N(),e),f5={class:"app-container_qbittorrent"},m5={class:"qbittorrent-item"},b5=Ae(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),v5={class:"qbittorrent-item_value"},g5={key:0,class:"configure"},_5={key:1,class:"configure enabel"},h5={class:"qbittorrent-item"},x5=Ae(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u4E0B\u8F7D\u76EE\u5F55:")],-1)),k5={class:"qbittorrent-item_value"},w5=["href"],y5={class:"qbittorrent-item"},F5=Ae(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),E5={class:"qbittorrent-item_value"},C5=["href"],$5=P({props:{qbittorrent:{type:Object}},setup(e){const a=e,o=R(()=>{var n;return`http://${location.hostname}${(n=a.qbittorrent)==null?void 0:n.webPath}`});return(n,s)=>{var p,c,f,d;return i(),r("ul",f5,[t("li",m5,[b5,t("div",v5,[((p=e.qbittorrent)==null?void 0:p.status)=="running"?(i(),r("span",g5,"\u5DF2\u542F\u52A8")):(i(),r("span",_5,"\u672A\u542F\u52A8"))])]),((c=e.qbittorrent)==null?void 0:c.status)=="running"?(i(),r(L,{key:0},[t("li",h5,[x5,t("div",k5,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((f=e.qbittorrent)==null?void 0:f.downloadPath)},h((d=e.qbittorrent)==null?void 0:d.downloadPath),9,w5)])]),t("li",y5,[F5,t("div",E5,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,C5)])])],64)):$("",!0)])}}});var D5=Y($5,[["__scopeId","data-v-030a7bea"]]);const Se=e=>(O("data-v-31717210"),e=e(),N(),e),B5={class:"app-container_transmission"},Y5={class:"transmission-item"},A5=Se(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),S5={class:"transmission-item_value"},z5={key:0,class:"configure"},P5={key:1,class:"configure enabel"},T5={class:"transmission-item"},I5=Se(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u4E0B\u8F7D\u76EE\u5F55:")],-1)),L5={class:"transmission-item_value"},M5=["href"],O5={class:"transmission-item"},N5=Se(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),q5={class:"transmission-item_value"},j5=["href"],R5=P({props:{transmission:{type:Object}},setup(e){const a=e,o=R(()=>{var n;return`http://${location.hostname}${(n=a.transmission)==null?void 0:n.webPath}`});return(n,s)=>{var p,c,f,d;return i(),r("ul",B5,[t("li",Y5,[A5,t("div",S5,[((p=e.transmission)==null?void 0:p.status)=="running"?(i(),r("span",z5,"\u5DF2\u542F\u52A8")):(i(),r("span",P5,"\u672A\u542F\u52A8"))])]),((c=e.transmission)==null?void 0:c.status)=="running"?(i(),r(L,{key:0},[t("li",T5,[I5,t("div",L5,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((f=e.transmission)==null?void 0:f.downloadPath)},h((d=e.transmission)==null?void 0:d.downloadPath),9,M5)])]),t("li",O5,[N5,t("div",q5,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,j5)])])],64)):$("",!0)])}}});var G5=Y(R5,[["__scopeId","data-v-31717210"]]);const V5={},U5={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"},W5=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),Z5=[W5];function H5(e,a){return i(),r("svg",U5,Z5)}var ie=Y(V5,[["render",H5]]);const H=e=>(O("data-v-e7bddcca"),e=e(),N(),e),J5={key:0,class:"action"},X5=H(()=>t("h2",{class:"title"},"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",-1)),K5={class:"load_service input_row"},Q5=H(()=>t("div",{class:"left"},[t("span",null,"\u4E0B\u8F7D\u670D\u52A1\uFF1A")],-1)),t3={class:"radios"},e3=H(()=>t("label",{for:"Aria2"},"Aria2",-1)),a3={class:"radios"},o3=H(()=>t("label",{for:"qB"},"qBittorrent",-1)),n3={class:"radios"},i3=H(()=>t("label",{for:"Tr"},"Transmission",-1)),r3={key:0},s3={class:"input_row"},d3={class:"left"},u3={class:"tooltip-trigger"},l3=H(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1Amnt/sda1/download")])],-1)),c3=H(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),p3=["onSubmit"],f3={class:"select-editable"},m3=H(()=>t("option",{selected:"true",value:null},"\u8BF7\u9009\u62E9\u4E0B\u8F7D\u76EE\u5F55",-1)),b3=["value"],v3=H(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),g3={class:"input_row"},_3={class:"left"},h3={class:"tooltip-trigger"},x3=H(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-bottom"},[t("span",{class:"dowload_rpc_tip"},"\u7528\u4E8E\u8FDC\u7A0B\u8BBF\u95EE\u7684\u4EE4\u724C\u3002")])],-1)),k3=H(()=>t("span",null,"RPC \u4EE4\u724C\uFF1A",-1)),w3={class:"input_row"},y3=H(()=>t("div",{class:""},[t("span",null,"\u9644\u52A0\u7684 BT Tracker\uFF1A")],-1)),F3={class:"radios"},E3=H(()=>t("label",{for:"default"},"\u9ED8\u8BA4",-1)),C3={class:"radios"},$3=H(()=>t("label",{for:"add"},"\u81EA\u5DF1\u6DFB\u52A0",-1)),D3={class:"input_row"},B3=H(()=>t("div",{class:"left"},null,-1)),Y3={class:"myinput_wrap Tracker_input"},A3={key:1},S3={class:"load"},z3={class:"left"},P3={class:"tooltip-trigger"},T3=H(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1Amnt/sda1/download")])],-1)),I3=H(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),L3=["onSubmit"],M3={class:"select-editable"},O3=H(()=>t("option",{selected:"true",value:null},"\u8BF7\u9009\u62E9\u4E0B\u8F7D\u76EE\u5F55",-1)),N3=["value"],q3=H(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),j3={key:2},R3={class:"load"},G3={class:"left"},V3={class:"tooltip-trigger"},U3=H(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1Amnt/sda1/download")])],-1)),W3=H(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),Z3=["onSubmit"],H3={class:"select-editable"},J3=H(()=>t("option",{selected:"true",value:null},"\u8BF7\u9009\u62E9\u4E0B\u8F7D\u76EE\u5F55",-1)),X3=["value"],K3=H(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),Q3={class:"btns"},t4={key:1,class:"action"},e4={class:"title"},a4={class:"finished"},o4=H(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),n4=P({props:{services:{type:Object,required:!0},partitionList:{type:Array,required:!0},defaultTab:{type:String,required:!1},Close:Function},setup(e){const a=e,o=y(""),n=y(""),s=y("null"),p=y(""),c=y("default"),f=y("Aria2"),d=y("null"),l=y(""),u=y("null"),m=y(""),b=y(0);Dt(()=>{var G,K,et,at,_t,Te,Ie;switch(a.defaultTab){case"aria2":f.value="Aria2";break;case"qbittorrent":f.value="qBittorrent";break;case"transmission":f.value="Transmission";break}const F=((G=a.services.aria2)==null?void 0:G.downloadPath)||((K=a.services.qbittorrent)==null?void 0:K.downloadPath)||((et=a.services.transmission)==null?void 0:et.downloadPath);F&&(a.partitionList.find(Ut=>Ut==F)?s.value=F:(p.value=F,s.value="useInput"));const D=(at=a.services.aria2)==null?void 0:at.rpcToken;D&&(o.value=D);const C=((_t=a.services.qbittorrent)==null?void 0:_t.downloadPath)||F||((Te=a.services.transmission)==null?void 0:Te.downloadPath);C&&(a.partitionList.find(Ut=>Ut==C)?d.value=C:(l.value=C,d.value="useInput"));const B=((Ie=a.services.transmission)==null?void 0:Ie.downloadPath)||F||C;B&&(a.partitionList.find(Ut=>Ut==B)?u.value=B:(m.value=B,u.value="useInput"))});const _=()=>{let F=s.value;F=="useInput"&&(F=p.value),!(F==null||F=="null"||F=="")&&T(this,null,function*(){if(yield lt.checkAndInstallApp("app-meta-aria2","Aria2")){const C=E.Loading("\u914D\u7F6E\u4E2D...");z.Guide.Aria2Init.POST({downloadPath:F,rpcToken:o.value,btTracker:c.value=="add"?n.value:""}).then(B=>{var G;if(B!=null&&B.data){if((B.data.success||0)==0){b.value=1;return}else if((G=B.data)!=null&&G.error)throw B.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(B=>E.Error(B)).finally(()=>C.Close())}})},v=()=>{let F=d.value;F=="useInput"&&(F=l.value),!(F==null||F=="null"||F=="")&&T(this,null,function*(){if(yield lt.checkAndInstallApp("app-meta-qbittorrent","qBittorrent")){const C=E.Loading("\u914D\u7F6E\u4E2D...");z.Guide.qbitorrentInit.POST({downloadPath:F}).then(B=>{var G;if(B!=null&&B.data){if((B.data.success||0)==0){b.value=1;return}else if((G=B.data)!=null&&G.error)throw B.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(B=>E.Error(B)).finally(()=>C.Close())}})},g=()=>{let F=u.value;F=="useInput"&&(F=m.value),!(F==null||F=="null"||F=="")&&T(this,null,function*(){if(yield lt.checkAndInstallApp("app-meta-transmission","Transmission")){const C=E.Loading("\u914D\u7F6E\u4E2D...");z.Guide.transmissionInit.POST({downloadPath:F}).then(B=>{var G;if(B!=null&&B.data){if((B.data.success||0)==0){b.value=1;return}else if((G=B.data)!=null&&G.error)throw B.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(B=>E.Error(B)).finally(()=>C.Close())}})},k=F=>{F.preventDefault(),a.Close&&a.Close()},x=F=>{F.preventDefault(),location.reload()};return(F,D)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[b.value==0?(i(),r("div",J5,[X5,t("ul",null,[t("li",null,[t("div",K5,[Q5,t("div",t3,[S(t("input",{type:"radio",value:"Aria2","onUpdate:modelValue":D[0]||(D[0]=C=>f.value=C),name:"download",id:"Aria2"},null,512),[[pt,f.value]]),e3]),t("div",a3,[S(t("input",{type:"radio",value:"qBittorrent","onUpdate:modelValue":D[1]||(D[1]=C=>f.value=C),name:"download",id:"qB"},null,512),[[pt,f.value]]),o3]),t("div",n3,[S(t("input",{type:"radio",value:"Transmission","onUpdate:modelValue":D[2]||(D[2]=C=>f.value=C),name:"download",id:"Tr"},null,512),[[pt,f.value]]),i3])])])]),f.value=="Aria2"?(i(),r("ul",r3,[t("li",null,[t("div",s3,[t("div",d3,[t("span",u3,[A(ie),l3]),c3]),t("form",{class:"myinput_wrap",onSubmit:ot(_,["prevent"])},[t("label",null,[t("div",f3,[S(t("select",{"onUpdate:modelValue":D[3]||(D[3]=C=>s.value=C),autocomplete:"off"},[m3,(i(!0),r(L,null,j(e.partitionList,(C,B)=>(i(),r("option",{value:C,key:B},h(C),9,b3))),128)),v3],512),[[Z,s.value,void 0,{trim:!0}]]),s.value=="useInput"?S((i(),r("input",{key:0,type:"text","onUpdate:modelValue":D[4]||(D[4]=C=>p.value=C),required:"",placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8F7D\u76EE\u5F55"},null,512)),[[V,p.value,void 0,{trim:!0}]]):$("",!0)])])],40,p3)])]),t("li",null,[t("div",g3,[t("div",_3,[t("span",h3,[A(ie),x3]),k3]),S(t("input",{type:"text",class:"RPC_input",placeholder:"\u8BF7\u8F93\u5165RPC\u4EE4\u724C","onUpdate:modelValue":D[5]||(D[5]=C=>o.value=C)},null,512),[[V,o.value,void 0,{trim:!0}]])])]),t("li",null,[t("div",w3,[y3,t("div",F3,[S(t("input",{type:"radio",value:"default",name:"BT",id:"default","onUpdate:modelValue":D[6]||(D[6]=C=>c.value=C)},null,512),[[pt,c.value]]),E3]),t("div",C3,[S(t("input",{type:"radio",value:"add",name:"BT",id:"add","onUpdate:modelValue":D[7]||(D[7]=C=>c.value=C)},null,512),[[pt,c.value]]),$3])])]),t("li",null,[t("div",D3,[B3,t("div",Y3,[c.value=="add"?S((i(),r("textarea",{key:0,"onUpdate:modelValue":D[8]||(D[8]=C=>n.value=C),rows:"4",placeholder:"\u8BF7\u8F93\u5165bt\u670D\u52A1\u5668\u5730\u5740"},null,512)),[[V,n.value,void 0,{trim:!0}]]):$("",!0)])])])])):$("",!0),f.value=="qBittorrent"?(i(),r("ul",A3,[t("li",null,[t("div",S3,[t("div",z3,[t("span",P3,[A(ie),T3]),I3]),t("form",{class:"myinput_wrap",onSubmit:ot(v,["prevent"])},[t("label",null,[t("div",M3,[S(t("select",{"onUpdate:modelValue":D[9]||(D[9]=C=>d.value=C),autocomplete:"off"},[O3,(i(!0),r(L,null,j(e.partitionList,(C,B)=>(i(),r("option",{value:C,key:B},h(C),9,N3))),128)),q3],512),[[Z,d.value,void 0,{trim:!0}]]),d.value=="useInput"?S((i(),r("input",{key:0,type:"text","onUpdate:modelValue":D[10]||(D[10]=C=>l.value=C),required:"",placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8F7D\u76EE\u5F55"},null,512)),[[V,l.value,void 0,{trim:!0}]]):$("",!0)])])],40,L3)])])])):$("",!0),f.value=="Transmission"?(i(),r("ul",j3,[t("li",null,[t("div",R3,[t("div",G3,[t("span",V3,[A(ie),U3]),W3]),t("form",{class:"myinput_wrap",onSubmit:ot(g,["prevent"])},[t("label",null,[t("div",H3,[S(t("select",{"onUpdate:modelValue":D[11]||(D[11]=C=>u.value=C),autocomplete:"off"},[J3,(i(!0),r(L,null,j(e.partitionList,(C,B)=>(i(),r("option",{value:C,key:B},h(C),9,X3))),128)),K3],512),[[Z,u.value,void 0,{trim:!0}]]),u.value=="useInput"?S((i(),r("input",{key:0,type:"text","onUpdate:modelValue":D[12]||(D[12]=C=>m.value=C),required:"",placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8F7D\u76EE\u5F55"},null,512)),[[V,m.value,void 0,{trim:!0}]]):$("",!0)])])],40,Z3)])])])):$("",!0),t("div",Q3,[f.value=="Aria2"?(i(),r("button",{key:0,class:"cbi-button cbi-button-apply",onClick:_},"\u542F\u7528")):$("",!0),f.value=="qBittorrent"?(i(),r("button",{key:1,class:"cbi-button cbi-button-apply",onClick:v},"\u542F\u7528")):$("",!0),f.value=="Transmission"?(i(),r("button",{key:2,class:"cbi-button cbi-button-apply",onClick:g},"\u542F\u7528")):$("",!0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:k},"\u53D6\u6D88")])])):b.value==1?(i(),r("div",t4,[t("h2",e4,h(f.value)+"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",1),t("div",a4,[A(Ce)]),o4,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:x},"\u786E\u5B9A")])])):$("",!0)]),_:1},8,["Close"]))}});var i4=Y(n4,[["__scopeId","data-v-e7bddcca"]]);const r4=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(i4,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},s4=e=>(O("data-v-432c38b6"),e=e(),N(),e),d4={class:"app-container"},u4={class:"app-container_title"},l4=s4(()=>t("span",null,[t("span",null,"\u4E0B\u8F7D\u670D\u52A1")],-1)),c4={class:"app-container_tool"},p4=["disabled"],f4={class:"more_icon",title:"\u67E5\u770B\u9AD8\u7EA7\u914D\u7F6E"},m4={class:"DeviceBlock"},b4={class:"app-container_body"},v4={class:"app-container_nas-menu"},g4=P({setup(e){y(!1);const a=y("aria2"),o=y();We(),(()=>{z.Guide.DownloadService.Status.GET().then(b=>{var _;if((_=b==null?void 0:b.data)!=null&&_.result){const v=b.data.result;o.value=v}})})();const s=y(!1),p=y(!1),c=()=>{p.value=!p.value},f=()=>{z.Guide.DownloadPartition.List.GET().then(b=>{var v,g;let _=[];(g=(v=b==null?void 0:b.data)==null?void 0:v.result)!=null&&g.partitionList&&(_=b.data.result.partitionList),r4({services:o.value,partitionList:_,defaultTab:a.value})})},d=(b,_,v)=>T(this,null,function*(){c(),lt.installAndGo(b,_,v)}),l=()=>{d("app-meta-aria2","Aria2","/cgi-bin/luci/admin/services/aria2")},u=()=>{d("app-meta-qbittorrent","qBittorrent","/cgi-bin/luci/admin/nas/qBittorrent")},m=()=>{d("app-meta-transmission","Transmission","/cgi-bin/luci/admin/services/transmission")};return(b,_)=>{var v,g,k;return i(),r("div",d4,[t("div",u4,[l4,t("div",c4,[o.value?(i(),r("div",{key:0,class:"app-container_configure",onClick:f,disabled:s.value},"\u5FEB\u901F\u914D\u7F6E ",8,p4)):$("",!0),t("span",f4,[A(Ct,{onClick:c})])]),S(t("div",m4,[t("div",{class:"menu_background",onClick:c}),t("ul",null,[t("li",null,[t("a",{onClick:l},"Aria2\u9AD8\u7EA7\u914D\u7F6E")]),t("li",null,[t("a",{onClick:u},"qBittorrent\u9AD8\u7EA7\u914D\u7F6E")]),t("li",null,[t("a",{onClick:m},"Transmission\u9AD8\u7EA7\u914D\u7F6E")])])],512),[[kt,p.value]])]),t("div",b4,[t("ul",v4,[t("button",{onClick:_[0]||(_[0]=x=>a.value="aria2"),class:st({on:a.value=="aria2"})},"Aria2",2),t("button",{onClick:_[1]||(_[1]=x=>a.value="qbittorrent"),class:st({on:a.value=="qbittorrent"})},"qBittorrent",2),t("button",{onClick:_[2]||(_[2]=x=>a.value="transmission"),class:st({on:a.value=="transmission"})},"Transmission",2)]),a.value=="aria2"?(i(),M(p5,{key:0,aria2:(v=o.value)==null?void 0:v.aria2},null,8,["aria2"])):a.value=="qbittorrent"?(i(),M(D5,{key:1,qbittorrent:(g=o.value)==null?void 0:g.qbittorrent},null,8,["qbittorrent"])):a.value=="transmission"?(i(),M(G5,{key:2,transmission:(k=o.value)==null?void 0:k.transmission},null,8,["transmission"])):$("",!0)])])}}});var _4=Y(g4,[["__scopeId","data-v-432c38b6"]]);const yt=e=>(O("data-v-43beecef"),e=e(),N(),e),h4={class:"actioner-container"},x4=yt(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),k4={class:"actioner-container_body"},w4={class:"label-item"},y4=yt(()=>t("span",null,"DDNSTO",-1)),F4=yt(()=>t("p",{class:"label_info"},"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)),E4={class:"label-item"},C4=yt(()=>t("span",null,"\u963F\u91CC\u4E91",-1)),$4=yt(()=>t("p",{class:"label_info"}," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),D4={class:"label-item"},B4=yt(()=>t("span",null,"Dnspod",-1)),Y4=yt(()=>t("p",{class:"label_info"}," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),A4={class:"label-item"},S4=yt(()=>t("span",null,"\u82B1\u751F\u58F3",-1)),z4=yt(()=>t("p",{class:"label_info"}," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),P4=P({props:{onSetup:{type:Function,required:!0},active:{type:String,default:"ddnsto"}},emits:["update:active"],setup(e,{emit:a}){const o=e,n=()=>{o.onSetup()},s=y(o.active),p=()=>{switch(a("update:active",s.value),s.value){case"ddnsto":o.onSetup("ddnsto");break;case"ali":o.onSetup("ddns-ali");break;case"dnspod":o.onSetup("ddns-dnspod");break;case"oray":o.onSetup("ddns-oray");break}};return(c,f)=>(i(),r("div",h4,[x4,t("div",k4,[t("div",w4,[t("label",null,[S(t("input",{type:"radio","onUpdate:modelValue":f[0]||(f[0]=d=>s.value=d),value:"ddnsto"},null,512),[[pt,s.value]]),y4]),F4]),t("div",E4,[t("label",null,[S(t("input",{type:"radio","onUpdate:modelValue":f[1]||(f[1]=d=>s.value=d),value:"ali"},null,512),[[pt,s.value]]),C4]),$4]),t("div",D4,[t("label",null,[S(t("input",{type:"radio","onUpdate:modelValue":f[2]||(f[2]=d=>s.value=d),value:"dnspod"},null,512),[[pt,s.value]]),B4]),Y4]),t("div",A4,[t("label",null,[S(t("input",{type:"radio","onUpdate:modelValue":f[3]||(f[3]=d=>s.value=d),value:"oray"},null,512),[[pt,s.value]]),S4]),z4])]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:n},"\u53D6\u6D88"),t("div",{class:"next",onClick:p},"\u4E0B\u4E00\u6B65")])]))}});var T4=Y(P4,[["__scopeId","data-v-43beecef"]]);const ee=e=>(O("data-v-43dd65a2"),e=e(),N(),e),I4={class:"actioner-container"},L4={class:"actioner-container_body"},M4=ee(()=>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)),O4=ee(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),N4=ee(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),q4={class:"body-info"},j4=ee(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),R4=["href"],G4=ee(()=>t("div",null,[t("span",null,"\u53EF\u524D\u5F80"),t("a",{href:"/cgi-bin/luci/admin/services/ddns",target:"_blank"},"\u670D\u52A1-\u52A8\u6001DNS"),t("span",null,"\u67E5\u770B\u66F4\u591A\u8BE6\u60C5")],-1)),V4=P({props:{target:{type:String,required:!0},onSetup:{type:Function,required:!0}},setup(e){const a=()=>{location.reload()};return(o,n)=>(i(),r("div",I4,[t("div",L4,[M4,O4,N4,t("div",q4,[j4,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},h(e.target),9,R4)]),G4]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:a},"\u5173\u95ED")])]))}});var U4=Y(V4,[["__scopeId","data-v-43dd65a2"]]);const da=e=>(O("data-v-7790f1da"),e=e(),N(),e),W4={class:"actioner-container"},Z4=da(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),H4=da(()=>t("div",{class:"actioner-container_body ddnsto-login"},[t("iframe",{src:"https://www.kooldns.cn/bind/#/auth?send=1&source=openwrt&callback=*"})],-1)),J4=P({props:{onSetup:{type:Function,required:!0},onDdnstoConfig:{type:Function,required:!0}},setup(e){const a=e,o=()=>{a.onSetup()},n=s=>{if(s.data.auth=="ddnsto"){const p=s.data.sign,c=s.data.token;p&&c&&(removeEventListener("message",n),a.onDdnstoConfig(p,c),a.onSetup("ddnsto-run"))}};return Dt(()=>{window.addEventListener("message",n)}),Nt(()=>{removeEventListener("message",n)}),(s,p)=>(i(),r("div",W4,[Z4,H4,t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u53D6\u6D88")])]))}});var X4=Y(J4,[["__scopeId","data-v-7790f1da"]]);const K4=e=>(O("data-v-7b3ee72a"),e=e(),N(),e),Q4={class:"actioner-container"},t8=K4(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),e8={class:"actioner-container_body ddnsto-bind"},a8=["src"],o8=P({props:{onSetup:{type:Function,required:!0},config:{type:Object,required:!0},domain:{type:String,required:!0}},emits:["update:domain"],setup(e,{emit:a}){const o=e,n=R(()=>{const{domain:c,token:f,sign:d,routerId:l,netaddr:u}=o.config,m=encodeURIComponent(c),b=encodeURIComponent(u);return`https://www.kooldns.cn/bind/#/domain?domain=${m}&sign=${d}&token=${f}&routerId=${l}&netaddr=${b}`}),s=c=>{if(c.data){const{auth:f,url:d}=c.data;f==="ddnsto"&&d&&p(d)}},p=c=>T(this,null,function*(){var f;try{const d=yield z.Guide.DdnstoAddress.POST({address:c});d!=null&&d.data&&(((f=d==null?void 0:d.data)==null?void 0:f.success)||0)==0&&(a("update:domain",c),o.onSetup("ddnsto-save"))}catch(d){}});return Dt(()=>{window.addEventListener("message",s)}),Nt(()=>{removeEventListener("message",s)}),(c,f)=>(i(),r("div",Q4,[t8,t("div",e8,[t("iframe",{src:w(n)},null,8,a8)])]))}});var n8=Y(o8,[["__scopeId","data-v-7b3ee72a"]]);const ae=e=>(O("data-v-7f5a8953"),e=e(),N(),e),i8={class:"actioner-container"},r8={class:"actioner-container_body"},s8=ae(()=>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)),d8=ae(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),u8=ae(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),l8={class:"body-info"},c8=ae(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),p8=["href"],f8=ae(()=>t("div",null,[t("span",null,"\u53EF\u524D\u5F80"),t("a",{href:"https://www.ddnsto.com/app/#/devices",target:"_blank"},"DDNSTO\u63A7\u5236\u53F0"),t("span",null,"\u67E5\u770B\u66F4\u591A\u8BE6\u60C5")],-1)),m8=P({props:{onSetup:{type:Function,required:!0},target:{type:String,required:!0}},setup(e){const a=()=>{location.reload()};return(o,n)=>(i(),r("div",i8,[t("div",r8,[s8,d8,u8,t("div",l8,[c8,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},h(e.target),9,p8)]),f8]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:a},"\u5173\u95ED")])]))}});var b8=Y(m8,[["__scopeId","data-v-7f5a8953"]]);const v8=e=>(O("data-v-d60389d6"),e=e(),N(),e),g8={class:"actioner-container"},_8=v8(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),h8={class:"actioner-container_body"},x8={class:"actioner-container_footer"},k8=P({props:{onSetup:{type:Function,required:!0}},setup(e){const a=e,o=()=>{a.onSetup()},n=()=>T(this,null,function*(){if(c.value)return;c.value=!0;const d=E.Loading("\u5B89\u88C5\u4E2D...");try{if(yield lt.installApp("app-meta-ddnsto",30)){a.onSetup("ddnsto-login");return}else s.value="\u5B89\u88C5\u5931\u8D25"}catch(l){s.value=l}finally{d.Close()}c.value=!1}),s=y("\u6B63\u5728\u68C0\u6D4B\u4E2D..."),p=y(!1),c=y(!1);return(()=>T(this,null,function*(){try{const d=yield z.App.Check.POST({name:"ddnsto"});if(d!=null&&d.data){const{result:l,error:u}=d.data;if(u){s.value=u;return}if(l){if(l.status=="installed"){a.onSetup("ddnsto-login");return}l.status=="uninstalled"&&(s.value="\u9700\u8981\u5B89\u88C5DDNSTO\u63D2\u4EF6\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5F00\u59CB\u5B89\u88C5")}}}catch(d){s.value=d}p.value=!0}))(),(d,l)=>(i(),r("div",g8,[_8,t("div",h8,[t("span",null,h(s.value),1)]),t("div",x8,[p.value?(i(),r(L,{key:0},[t("div",{class:"close",onClick:o},"\u53D6\u6D88"),t("div",{class:"next",onClick:n},"\u786E\u5B9A")],64)):$("",!0)])]))}});var w8=Y(k8,[["__scopeId","data-v-d60389d6"]]);const y8=e=>(O("data-v-1e0ebd66"),e=e(),N(),e),F8={class:"actioner-container"},E8=y8(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),C8={class:"actioner-container_body"},$8=P({props:{onSetup:{type:Function,required:!0},token:{type:String,required:!0},onDdnstoLocalConfig:{type:Function,required:!0}},setup(e){const a=e,o=y("\u6B63\u5728\u68C0\u6D4B\u63D2\u4EF6\u662F\u5426\u5DF2\u542F\u52A8...");(d=>T(this,null,function*(){var l;try{const u=yield z.Guide.Ddnsto.POST({token:a.token});u!=null&&u.data&&(u.data.error&&(o.value=u.data.error),(((l=u==null?void 0:u.data)==null?void 0:l.success)||0)==0&&p())}catch(u){o.value=u}}))(a.token);const s=y(),p=()=>{const d=()=>T(this,null,function*(){if((yield c())===!0){f();return}s.value=window.setTimeout(d,2e3)});d()},c=()=>T(this,null,function*(){try{const d=yield z.App.Check.POST({name:"ddnsto",checkRunning:!0});if(d!=null&&d.data){d.data.error&&(o.value=d.data.error);const l=d.data.result;if((l==null?void 0:l.status)=="running")return!0}}catch(d){o.value=d}return!1});Nt(()=>{s.value&&clearInterval(s.value)});const f=()=>T(this,null,function*(){var d;try{const l=yield z.Guide.DdntoConfig.GET();if(l!=null&&l.data&&(l.data.error&&(o.value=l.data.error),(((d=l==null?void 0:l.data)==null?void 0:d.success)||0)==0&&l.data.result)){const u=l.data.result;a.onDdnstoLocalConfig(u.netAddr,u.deviceId),a.onSetup("ddnsto-bind")}}catch(l){o.value=l}});return(d,l)=>(i(),r("div",F8,[E8,t("div",C8,h(o.value),1)]))}});var D8=Y($8,[["__scopeId","data-v-1e0ebd66"]]);const B8={class:"action-main"},Y8=P({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const a=e,o=y("ddnsto-install"),n=d=>{d!=null?o.value=d:s()},s=()=>{a.Close&&a.Close()},p=nt({sign:"",token:"",domain:a.url,netaddr:"",routerId:""}),c=(d,l)=>{p.sign=d,p.token=l},f=(d,l)=>{p.netaddr=d,p.routerId=l};return(d,l)=>(i(),M(Q,{type:1},{default:q(()=>[t("div",B8,[o.value=="ddnsto-install"?(i(),M(w8,{key:0,onSetup:n})):o.value=="ddnsto-login"?(i(),M(X4,{key:1,onSetup:n,onDdnstoConfig:c})):o.value=="ddnsto-run"?(i(),M(D8,{key:2,onSetup:n,token:w(p).token,onDdnstoLocalConfig:f},null,8,["token"])):o.value=="ddnsto-bind"?(i(),M(n8,{key:3,onSetup:n,config:{token:w(p).token,sign:w(p).sign,domain:w(p).domain,netaddr:w(p).netaddr,routerId:w(p).routerId},domain:w(p).domain,"onUpdate:domain":l[0]||(l[0]=u=>w(p).domain=u)},null,8,["config","domain"])):o.value=="ddnsto-save"?(i(),M(b8,{key:4,onSetup:n,target:w(p).domain},null,8,["target"])):$("",!0)])]),_:1}))}});var A8=Y(Y8,[["__scopeId","data-v-7a6bd385"]]);const S8=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(A8,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},z8={class:"action"},P8={class:"action-header"},T8=["innerHTML"],I8={class:"action-footer"},L8=P({props:{Close:Function,next:{type:Function},clear:{type:Function},continuer:{type:Function},nextTitle:{type:String,default:"\u786E\u5B9A"},clearTitle:{type:String,default:"\u8FD4\u56DE"},continuerTitle:{type:String,default:"\u7EE7\u7EED\u4FDD\u5B58"},title:{type:String,default:"\u63D0\u793A"},content:{type:String}},setup(e){const a=e,o=()=>{a.next&&a.next(),a.Close&&a.Close()},n=()=>{a.clear&&a.clear(),a.Close&&a.Close()},s=()=>{a.continuer&&a.continuer(),a.Close&&a.Close()};return(p,c)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[t("div",z8,[t("div",P8,h(e.title),1),t("div",{class:"action-body",innerHTML:e.content},null,8,T8),t("div",I8,[e.clear?(i(),r("div",{key:0,class:"clear",onClick:n},h(e.clearTitle),1)):$("",!0),t("div",{class:"next",onClick:o},h(e.nextTitle),1),e.continuer?(i(),r("div",{key:1,class:"next",onClick:s},h(e.continuerTitle),1)):$("",!0)])])]),_:1},8,["Close"]))}});var M8=Y(L8,[["__scopeId","data-v-4358e88c"]]);const re=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(M8,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},it=e=>(O("data-v-9435cfa6"),e=e(),N(),e),O8={class:"actioner-container"},N8=["onSubmit"],q8=it(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),j8={key:0,class:"title_info"},R8=it(()=>t("p",null," \u963F\u91CC\u4E91 ",-1)),G8=it(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),V8=it(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#%E9%98%BF%E9%87%8C%E4%BA%91",target:"_blank"},"\u67E5\u770B\u6559\u7A0B>>",-1)),U8=[R8,G8,V8],W8={key:1,class:"title_info"},Z8=it(()=>t("p",null," dnspod ",-1)),H8=it(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),J8=it(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#dnspod",target:"_blank"},"\u67E5\u770B\u6559\u7A0B>>",-1)),X8=[Z8,H8,J8],K8={key:2,class:"title_info"},Q8=it(()=>t("p",null," \u82B1\u751F\u58F3 ",-1)),tp=it(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),ep=it(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#%E8%8A%B1%E7%94%9F%E5%A3%B3",target:"_blank"},"\u67E5\u770B\u6559\u7A0B>>",-1)),ap=[Q8,tp,ep],op={class:"label-item"},np=it(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u5730\u5740\u7248\u672C\uFF1A")],-1)),ip={class:"label-item_value"},rp=it(()=>t("option",{value:"ipv4"},"IPv4\u5730\u5740",-1)),sp=it(()=>t("option",{value:"ipv6"},"IPv6\u5730\u5740",-1)),dp=[rp,sp],up=it(()=>t("div",{class:"label_tips"},[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"})])])]),t("span",{class:"info"},"\u8BBE\u5B9A\u54EA\u4E00\u4E2A IP \u5730\u5740\uFF08IPv4 \u6216 IPv6\uFF09\u4F1A\u88AB\u53D1\u9001\u7ED9 DDNS \u63D0\u4F9B\u5546")],-1)),lp={class:"label-item"},cp=it(()=>t("div",{class:"label-item_key"},[t("span",null,"\u57DF\u540D\uFF1A")],-1)),pp={class:"label-item_value"},fp={class:"label-item"},mp=it(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D\uFF1A")],-1)),bp={class:"label-item_value"},vp={class:"label-item"},gp=it(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801\uFF1A")],-1)),_p={class:"label-item_value"},hp={class:"actioner-container_footer"},xp=["disabled"],kp=P({props:{name:{type:String,default:"ali"},onSetup:{type:Function,required:!0},target:{type:String,required:!0}},emits:["update:target"],setup(e,{emit:a}){const o=e,n=y("ipv4"),s=y(o.name),p=y(""),c=y(""),f=y(""),d=y(!1),l=()=>{o.onSetup("index")},u=()=>{d.value=!0;const v=E.Loading("\u68C0\u6D4B\u4E2D...");z.Network.CheckPublickNet.POST({ipVersion:n.value}).then(g=>{var k,x;if(g!=null&&g.data){if((k=g==null?void 0:g.data)!=null&&k.error){E.Warning(g==null?void 0:g.data.error);return}if((((x=g==null?void 0:g.data)==null?void 0:x.success)||0)==0){const F=g.data.result;F&&F.address?_():m();return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(g=>{E.Error(g)}).finally(()=>{v.Close(),d.value=!1})},m=()=>{re({title:"\u6E29\u99A8\u63D0\u793A",nextTitle:"\u4F7F\u7528DDNSTO",continuerTitle:"\u7EE7\u7EED\u4FDD\u5B58",content:"\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(){b()},continuer(){_()},clear(){}})},b=()=>{o.onSetup("ddnsto")},_=()=>{d.value=!0;const v=E.Loading("\u914D\u7F6E\u4E2D...");z.Guide.PostDdns.POST({ipVersion:n.value,serviceName:s.value,domain:p.value,userName:c.value,password:f.value}).then(g=>{if(g!=null&&g.data){const{error:k,scope:x,success:F}=g.data;if(k=="-100"&&x=="guide.ddns"){re({title:"\u6E29\u99A8\u63D0\u793A",content:"\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(k){E.Warning(k);return}if((F||0)==0){a("update:target",p.value),o.onSetup("ddns-success");return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(g=>{E.Error(g)}).finally(()=>{v.Close(),d.value=!1})};return(v,g)=>(i(),r("div",O8,[t("form",{class:"actioner-dns",onSubmit:ot(u,["prevent"])},[q8,t("div",{class:st(["actioner-container_body",e.name])},[e.name=="ali"?(i(),r("div",j8,U8)):e.name=="dnspod"?(i(),r("div",W8,X8)):e.name=="oray"?(i(),r("div",K8,ap)):$("",!0),t("div",op,[np,t("div",ip,[S(t("select",{name:"",id:"","onUpdate:modelValue":g[0]||(g[0]=k=>n.value=k)},dp,512),[[Z,n.value]])]),up]),t("div",lp,[cp,t("div",pp,[S(t("input",{type:"text",placeholder:"myhost.example.com","onUpdate:modelValue":g[1]||(g[1]=k=>p.value=k),required:""},null,512),[[V,p.value,void 0,{trim:!0}]])])]),t("div",fp,[mp,t("div",bp,[S(t("input",{type:"text","onUpdate:modelValue":g[2]||(g[2]=k=>c.value=k),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",required:""},null,512),[[V,c.value,void 0,{trim:!0}]])])]),t("div",vp,[gp,t("div",_p,[S(t("input",{type:"password","onUpdate:modelValue":g[3]||(g[3]=k=>f.value=k),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",required:""},null,512),[[V,f.value,void 0,{trim:!0}]])])])],2),t("div",hp,[t("div",{class:"close",onClick:l,type:"button"},"\u8FD4\u56DE"),t("button",{class:"next save",type:"submit",disabled:d.value},"\u4FDD\u5B58",8,xp)])],40,N8)]))}});var ke=Y(kp,[["__scopeId","data-v-9435cfa6"]]);const wp={class:"action-main"},yp=P({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const a=e,o=y(""),n=y("index"),s=d=>{if(d!=null){if(d=="ddnsto"){p();return}n.value=d}else c()},p=()=>{c(),S8({url:a.url})},c=()=>{a.Close&&a.Close()},f=y("ddnsto");return(d,l)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[t("div",wp,[n.value=="index"?(i(),M(T4,{key:0,onSetup:s,active:f.value,"onUpdate:active":l[0]||(l[0]=u=>f.value=u)},null,8,["active"])):n.value=="ddns-ali"?(i(),M(ke,{key:1,onSetup:s,target:o.value,"onUpdate:target":l[1]||(l[1]=u=>o.value=u),name:"ali"},null,8,["target"])):n.value=="ddns-dnspod"?(i(),M(ke,{key:2,onSetup:s,target:o.value,"onUpdate:target":l[2]||(l[2]=u=>o.value=u),name:"dnspod"},null,8,["target"])):n.value=="ddns-oray"?(i(),M(ke,{key:3,onSetup:s,target:o.value,"onUpdate:target":l[3]||(l[3]=u=>o.value=u),name:"oray"},null,8,["target"])):n.value=="ddns-success"?(i(),M(U4,{key:4,onSetup:s,target:o.value},null,8,["target"])):$("",!0)])]),_:1},8,["Close"]))}});var Fp=Y(yp,[["__scopeId","data-v-6f1d92d9"]]);const Ep=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(Fp,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},Mt=e=>(O("data-v-10ce7ce8"),e=e(),N(),e),Cp={class:"app-container"},$p=Mt(()=>t("span",null,[t("span",null,"\u8FDC\u7A0B\u57DF\u540D")],-1)),Dp={class:"app-container_domain"},Bp={class:"domain-item"},Yp=Mt(()=>t("div",{class:"domain-item_name"},[t("span",null,"DDNSTO\uFF1A")],-1)),Ap={class:"domain-item_value"},Sp=["href","title"],zp=Mt(()=>t("a",{class:"item_btn",href:"https://www.kooldns.cn/app/#/devices",target:"_blank"},"\u63A7\u5236\u53F0",-1)),Pp={class:"domain-item"},Tp=Mt(()=>t("div",{class:"domain-item_name"},[t("span",null,"myddns_ipv4\uFF1A")],-1)),Ip={class:"domain-item_value"},Lp={key:0},Mp=["href"],Op={key:2,href:"/cgi-bin/luci/admin/services/ddns"},Np=Mt(()=>t("svg",{t:"1653625385794",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4476",width:"28",height:"28"},[t("path",{d:"M145.83060282785186 873.7309800675556h650.2280809434073c24.411293468444445 0 44.384169832296294-19.97287636385185 44.38416861866666-44.384169832296294V500.90395784533337c0-13.315251313777777-8.876834209185184-22.19208430933333-22.19208430933333-22.19208430933333s-22.19208430933333 8.876834209185184-22.19208430933333 22.19208430933333v326.22364444444446H145.83060282785186V179.1187305054815h616.9399532657777c13.315251313777777 0 22.19208430933333-8.876834209185184 22.19208552296296-22.19208552296296s-8.876834209185184-22.19208430933333-22.19208552296296-22.19208430933333H145.83060282785186c-24.411293468444445 0-44.384169832296294 19.97287636385185-44.38416861866666 44.384169832296294v650.2280797297777c0 24.411293468444445 19.97287636385185 44.384169832296294 44.38416861866666 44.384169832296294z",fill:"#666","p-id":"4477"}),t("path",{d:"M887.0462301677038 203.53002276029633l-488.225862087111 488.2258633007407c-8.876834209185184 8.876834209185184-8.876834209185184 22.19208430933333 0 31.06891851851852 4.438417104592592 4.438417104592592 11.096042154666666 6.657625050074073 15.53445925925926 6.657625050074073s11.096042154666666-2.2192079454814815 15.53445925925926-6.657625050074073l490.4450712462222-490.4450712462222c8.876834209185184-8.876834209185184 8.876834209185184-22.19208430933333 0-31.06891851851852s-24.411293468444445-6.657625050074073-33.288127677629625 2.2192079454814815z",fill:"#666","p-id":"4478"})],-1)),qp=[Np],jp={class:"domain-item"},Rp=Mt(()=>t("div",{class:"domain-item_name"},[t("span",null,"myddns_ipv6\uFF1A")],-1)),Gp={class:"domain-item_value"},Vp={key:0},Up=["href"],Wp={key:2,href:"/cgi-bin/luci/admin/services/ddns"},Zp=Mt(()=>t("svg",{t:"1653625385794",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4476",width:"28",height:"28"},[t("path",{d:"M145.83060282785186 873.7309800675556h650.2280809434073c24.411293468444445 0 44.384169832296294-19.97287636385185 44.38416861866666-44.384169832296294V500.90395784533337c0-13.315251313777777-8.876834209185184-22.19208430933333-22.19208430933333-22.19208430933333s-22.19208430933333 8.876834209185184-22.19208430933333 22.19208430933333v326.22364444444446H145.83060282785186V179.1187305054815h616.9399532657777c13.315251313777777 0 22.19208430933333-8.876834209185184 22.19208552296296-22.19208552296296s-8.876834209185184-22.19208430933333-22.19208552296296-22.19208430933333H145.83060282785186c-24.411293468444445 0-44.384169832296294 19.97287636385185-44.38416861866666 44.384169832296294v650.2280797297777c0 24.411293468444445 19.97287636385185 44.384169832296294 44.38416861866666 44.384169832296294z",fill:"#666","p-id":"4477"}),t("path",{d:"M887.0462301677038 203.53002276029633l-488.225862087111 488.2258633007407c-8.876834209185184 8.876834209185184-8.876834209185184 22.19208430933333 0 31.06891851851852 4.438417104592592 4.438417104592592 11.096042154666666 6.657625050074073 15.53445925925926 6.657625050074073s11.096042154666666-2.2192079454814815 15.53445925925926-6.657625050074073l490.4450712462222-490.4450712462222c8.876834209185184-8.876834209185184 8.876834209185184-22.19208430933333 0-31.06891851851852s-24.411293468444445-6.657625050074073-33.288127677629625 2.2192079454814815z",fill:"#666","p-id":"4478"})],-1)),Hp=[Zp],Jp=P({setup(e){let a=!1,o;const n=y({}),s=function(){!a||z.Guide.GetDdns.GET().then(d=>{var l;d!=null&&d.data&&(((l=d==null?void 0:d.data)==null?void 0:l.success)||0)==0&&d.data.result&&(n.value=d.data.result)}).then(()=>{!a||(o=window.setTimeout(s,3e3))})};Dt(()=>{a=!0,s()}),Nt(()=>{o!==void 0&&window.clearTimeout(o),a=!1});const p=()=>{Ep({url:n.value.ddnstoDomain})},c=R(()=>{const d=n.value.ipv4Domain;return d!=null&&d!=""&&d!="Stopped"?`http://${d}`:d}),f=R(()=>{const d=n.value.ipv6Domain;return d!=null&&d!=""&&d!="Stopped"?`http://${d}`:d});return(d,l)=>{var u,m,b;return i(),r("div",Cp,[t("div",{class:"app-container_title"},[$p,t("div",{class:"app-container_tool"},[t("div",{class:"app-container_configure",onClick:p},"\u5FEB\u901F\u914D\u7F6E")])]),t("ul",Dp,[t("li",Bp,[Yp,t("div",Ap,[t("a",{class:"configure",href:(u=n.value)==null?void 0:u.ddnstoDomain,target:"_blank",rel:"noopener noreferrer",title:(m=n.value)==null?void 0:m.ddnstoDomain},h((b=n.value)==null?void 0:b.ddnstoDomain),9,Sp),zp])]),t("li",Pp,[Tp,t("div",Ip,[w(c)=="Stopped"?(i(),r("span",Lp,h(w(c)),1)):(i(),r("a",{key:1,class:"configure",href:w(c),target:"_blank",rel:"noopener noreferrer"},h(w(c)),9,Mp)),w(c)?(i(),r("a",Op,qp)):$("",!0)])]),t("li",jp,[Rp,t("div",Gp,[w(f)=="Stopped"?(i(),r("span",Vp,h(w(f)),1)):(i(),r("a",{key:1,class:"configure",href:w(f),target:"_blank",rel:"noopener noreferrer"},h(w(f)),9,Up)),w(f)?(i(),r("a",Wp,Hp)):$("",!0)])])])])}}});var Xp=Y(Jp,[["__scopeId","data-v-10ce7ce8"]]);const Kp={class:"nas-container"},Qp={class:"nas-container_card"},t7={class:"nas-container_card"},e7={key:0,class:"nas-container_card"},a7={class:"nas-container_card"},o7={class:"nas-container_card"},n7=P({setup(e){return(a,o)=>(i(),r("div",Kp,[t("div",Qp,[A(T1)]),t("div",t7,[A(w2)]),w(Jt)("dockerd")?(i(),r("div",e7,[A(V6)])):$("",!0),t("div",a7,[A(_4)]),t("div",o7,[A(Xp)])]))}});var i7=Y(n7,[["__scopeId","data-v-66cc4e33"]]);const xt=e=>(O("data-v-20dfc9cc"),e=e(),N(),e),r7={class:"app-container"},s7={class:"app-container_title"},d7=xt(()=>t("span",null,"\u7CFB\u7EDF\u4FE1\u606F",-1)),u7={class:"more_icon",title:"\u67E5\u770B\u7CFB\u7EDF\u4FE1\u606F"},l7={class:"DeviceBlock"},c7=xt(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/system/flash"},"\u5907\u4EFD\u5347\u7EA7")],-1)),p7=xt(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/store/pages/maintance"},"\u63D2\u4EF6\u5907\u4EFD")],-1)),f7={class:"item-label"},m7=xt(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u6E29\u5EA6")],-1)),b7={class:"item-label_value"},v7={class:"item-label"},g7=xt(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u4F7F\u7528\u7387")],-1)),_7={class:"item-label_value"},h7={class:"item-label"},x7=xt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u5B58\u4F7F\u7528\u7387")],-1)),k7={class:"item-label_value"},w7={class:"item-label"},y7=xt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u56FA\u4EF6\u7248\u672C")],-1)),F7={class:"item-label_value"},E7={class:"item-label"},C7=xt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u6838\u7248\u672C")],-1)),$7={class:"item-label_value"},D7={class:"item-label"},B7=xt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5DF2\u542F\u52A8")],-1)),Y7={class:"item-label_value"},A7={class:"item-label"},S7=xt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u7CFB\u7EDF\u65F6\u95F4")],-1)),z7={class:"item-label_value"},P7=P({setup(e){const a=Fe(),o=R(()=>a.version),n=R(()=>a.systemStatus),s=y(!1),p=R(()=>{var m;return((m=n.value)==null?void 0:m.cpuUsage)||0}),c=R(()=>{var m;return((m=n.value)==null?void 0:m.cpuTemperature)||0}),f=R(()=>{var b;const m=((b=n.value)==null?void 0:b.memAvailablePercentage)||100;return 100-m}),d=wt.stampForm;Dt(()=>{});const l=()=>{s.value=!s.value},u=()=>{l(),lt.installAndGo("app-meta-netdata","NetData","/cgi-bin/luci/admin/status/netdata")};return(m,b)=>{var v,g,k,x;const _=J("progress-item");return i(),r("div",r7,[t("div",s7,[d7,t("span",u7,[A(Ct,{onClick:l})]),S(t("div",l7,[t("div",{class:"menu_background",onClick:l}),t("ul",null,[t("li",null,[t("a",{onClick:u},"\u7CFB\u7EDF\u76D1\u63A7")]),c7,p7])],512),[[kt,s.value]])]),t("div",f7,[m7,t("div",b7,[A(_,{value:w(c)/1.5,text:`${w(c)}\u2103`},null,8,["value","text"])])]),t("div",v7,[g7,t("div",_7,[A(_,{value:w(p),text:`${w(p)}%`},null,8,["value","text"])])]),t("div",h7,[x7,t("div",k7,[A(_,{value:w(f),text:`${w(f)}%`},null,8,["value","text"])])]),t("div",w7,[y7,t("div",F7,[t("span",null,h((v=w(o))==null?void 0:v.firmwareVersion),1)])]),t("div",E7,[C7,t("div",$7,[t("span",null,h((g=w(o))==null?void 0:g.kernelVersion),1)])]),t("div",D7,[B7,t("div",Y7,[t("span",null,h(w(d)((k=w(n))==null?void 0:k.uptime)),1)])]),t("div",A7,[S7,t("div",z7,[t("span",null,h((x=w(n))==null?void 0:x.localtime),1)])])])}}});var T7=Y(P7,[["__scopeId","data-v-20dfc9cc"]]);const I7=e=>se.isValid(e),Et=e=>{const a=se.IPv4.parse(e).toByteArray();return a[0]<<24|a[1]<<16|a[2]<<8|a[3]},je=e=>se.fromByteArray([e>>24&255,e>>16&255,e>>8&255,e&255]).toString(),L7=e=>{if(!se.IPv4.isIPv4(e))return!1;let a=0,o=Et(e);for(let n=31;n>=0&&(o&1<<n)!=0;n--)a=a+(1<<n);return(~a&o)==0},M7=(e,a,o,n)=>{let s=Et(e)&Et(a),p=Et(o),c=Et(n),d=~Et(a);return p<c&&p>s+1&&c<s+d},O7=(e,a)=>{let o=Et(a),n=Et(e)&o,s=~o,p;return s>=105?(p=n|s-5,n=n|100):s>=3?(p=n|s-1,n=n|2):(n=n|1,p=n),[je(n),je(p)]};var Ft={isValidMask:L7,isValidIP:I7,isValidMaskRange:M7,calcMaskRange:O7};const ft=e=>(O("data-v-a0faa6f2"),e=e(),N(),e),N7=["onSubmit"],q7=ft(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u5185\u7F51\u914D\u7F6E")],-1)),j7={class:"actioner-dns_body"},R7={class:"label-item"},G7=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5730\u5740")],-1)),V7={class:"label-item_value"},U7={class:"label-item"},W7=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5B50\u7F51\u63A9\u7801")],-1)),Z7={class:"label-item_value"},H7={key:0,class:"chose_dhcp"},J7={key:0,class:"dhcp_info"},X7={key:1,class:"dhcp_info"},K7={class:"label-item"},Q7=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1)),tf={class:"label-item_value"},ef={class:"label-item"},af=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1)),of={class:"label-item_value"},nf={class:"actioner-dns_footer"},rf=["disabled"],sf={key:1,class:"actioner-dns"},df=ft(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u66F4\u6362\u914D\u7F6E")],-1)),uf={class:"actioner-dns_body"},lf={key:0,class:"setting_status"},cf=ft(()=>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)),pf=ft(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u6210\u529F",-1)),ff=["href"],mf={key:1,class:"setting_status"},bf=ft(()=>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)),vf=ft(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u5931\u8D25",-1)),gf=ft(()=>t("p",null,"\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E",-1)),_f={key:2,class:"setting_status"},hf=ft(()=>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)),xf=ft(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u8D85\u65F6",-1)),kf=ft(()=>t("p",null,"\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)),wf=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0),n=y({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""});y("");const s=y(!1);y(!0),y(!1);const p=y(""),c=y(2),f=y(!1),d=y("timeout");let l=!0;(()=>{z.Guide.GetLan.GET().then(g=>{g.data.result&&(f.value=g.data.result.enableDhcp||!1,g.data.result.enableDhcp=!1,n.value=g.data.result,g.data.result.lanIp!==location.hostname&&(l=!1))})})();const m=()=>{const g=n.value;if(!Ft.isValidIP(g.lanIp)){E.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!Ft.isValidMask(g.netMask)){E.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}const k=Ft.calcMaskRange(g.lanIp,g.netMask);g.dhcpStart=k[0],g.dhcpEnd=k[1],n.value=g},b=()=>{const g=n.value;if(!Ft.isValidIP(g.lanIp)){E.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!Ft.isValidMask(g.netMask)){E.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(g.enableDhcp&&!Ft.isValidIP(g.dhcpStart)||!Ft.isValidIP(g.dhcpEnd)||!Ft.isValidMaskRange(g.lanIp,g.netMask,g.dhcpStart,g.dhcpEnd)){E.Warning("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const k=E.Loading("\u6B63\u5728\u914D\u7F6E\u2026\u8BF7\u7A0D\u7B49",30);let x=0;const F=C=>{d.value=C,o.value=1,x=1,k.Close()},D=()=>{const C=new Date().getTime()+3e4,B=l?location.protocol+"//"+g.lanIp+(location.port?":"+location.port:""):location.origin,G=B+"/luci-static/resources/icons/loading.gif",K=()=>{x==0&&(new Date().getTime()>C?F("timeout"):window.setTimeout(at,2e3))},et=()=>{x==0&&(p.value=B+location.pathname,F("success"),window.setTimeout(()=>{c.value=1},1e3),window.setTimeout(()=>{location.href=p.value},2e3))},at=()=>{if(x!=0)return;console.log("check online ",G);const _t=new Image;_t.onload=et,_t.onerror=K,_t.src=G};window.setTimeout(at,5e3)};z.Guide.LanIp.POST(g).then(C=>{var B;if(C!=null&&C.data){if((C.data.success||0)==0)return;if((B=C.data)!=null&&B.error)throw C.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(C=>{x==0&&(F("fail"),E.Error(C))}),D(),window.setTimeout(()=>{x==0&&F("timeout")},3e4)},_=g=>{g.preventDefault(),a.Close&&a.Close()},v=g=>{location.reload()};return(g,k)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[o.value==0?(i(),r("form",{key:0,class:"actioner-dns",onSubmit:ot(b,["prevent"])},[q7,t("div",j7,[t("div",R7,[G7,t("div",V7,[S(t("input",{type:"text",placeholder:"192.168.100.1","onUpdate:modelValue":k[0]||(k[0]=x=>n.value.lanIp=x),onChange:m},null,544),[[V,n.value.lanIp,void 0,{trim:!0}]])])]),t("div",U7,[W7,t("div",Z7,[S(t("input",{type:"text",placeholder:"255.255.255.0","onUpdate:modelValue":k[1]||(k[1]=x=>n.value.netMask=x),onChange:m},null,544),[[V,n.value.netMask,void 0,{trim:!0}]])])]),f.value?(i(),r("div",H7,[A(He,{modelValue:n.value.enableDhcp,"onUpdate:modelValue":k[2]||(k[2]=x=>n.value.enableDhcp=x)},{default:q(()=>[n.value.enableDhcp?(i(),r("span",J7,"\u4FEE\u6539DHCP\u670D\u52A1")):(i(),r("span",X7,"\u4FDD\u6301DHCP\u670D\u52A1\u8BBE\u7F6E"))]),_:1},8,["modelValue"])])):$("",!0),n.value.enableDhcp?(i(),r(L,{key:1},[t("div",K7,[Q7,t("div",tf,[S(t("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":k[3]||(k[3]=x=>n.value.dhcpStart=x)},null,512),[[V,n.value.dhcpStart,void 0,{trim:!0}]])])]),t("div",ef,[af,t("div",of,[S(t("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":k[4]||(k[4]=x=>n.value.dhcpEnd=x)},null,512),[[V,n.value.dhcpEnd,void 0,{trim:!0}]])])])],64)):$("",!0)]),t("div",nf,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:s.value},"\u786E\u8BA4",8,rf),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},"\u53D6\u6D88")])],40,N7)):o.value==1?(i(),r("div",sf,[df,t("div",uf,[d.value=="success"?(i(),r("div",lf,[cf,pf,t("a",{href:p.value,class:"NewAdress"},h(c.value)+"s\u540E \u8DF3\u8F6C\u65B0\u5730\u5740",9,ff)])):d.value=="fail"?(i(),r("div",mf,[bf,vf,gf,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:v},"\u6211\u77E5\u9053\u4E86")])):d.value=="timeout"?(i(),r("div",_f,[hf,xf,kf,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:v},"\u5237\u65B0\u9875\u9762")])):$("",!0)])])):$("",!0)]),_:1},8,["Close"]))}});var yf=Y(wf,[["__scopeId","data-v-a0faa6f2"]]);const Ff=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=X(yf,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},bt=e=>(O("data-v-0384f3ac"),e=e(),N(),e),Ef={key:0,class:"actioner-dns"},Cf=bt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")],-1)),$f={class:"actioner-dns_body"},Df=bt(()=>t("p",{class:"sandbox_info"},"\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\u62A4Docker\u548C\u786C\u76D8\u7684\u6570\u636E",-1)),Bf={key:0,class:"disk_loading_icon"},Yf=bt(()=>t("span",{class:"disk_loading_info"},"\u6B63\u5728\u52A0\u8F7D\u4E2D...",-1)),Af={key:1,class:"disk_tips"},Sf=bt(()=>t("span",null,"\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)),zf={class:"label-item"},Pf=bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u78C1\u76D8\uFF08\u5EFA\u8BAE\u9009\u62E9U\u76D8\u6216\u8005\u79FB\u52A8\u786C\u76D8\uFF0C\u65B9\u4FBF\u88C5\u5378\uFF09")],-1)),Tf={class:"label-item_value"},If=bt(()=>t("option",{value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8",-1)),Lf=["value"],Mf={class:"label-item"},Of=bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\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)),Nf={class:"label-item_value"},qf=bt(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A",-1)),jf=["value","disabled"],Rf={class:"sandbox_tips"},Gf=bt(()=>t("span",null,"\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E",-1)),Vf={class:"sandbox_info timeout"},Uf=U("\u5373\u5C06\u91CD\u542F\u8BBE\u5907 "),Wf=bt(()=>t("p",{class:"sandbox_roboot_tips"},[U("\u7B49\u5F85\u8BBE\u5907\u91CD\u542F\uFF0C\u91CD\u542F\u5B8C\u6210\u540E"),t("span",{class:"sandbox_roboot_refresh"},"\u8BF7\u5237\u65B0\u754C\u9762")],-1)),Zf={key:0,class:"actioner-dns_footer"},Hf=["disabled"],Jf={key:1,class:"actioner-tips"},Xf=bt(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u6E29\u99A8\u63D0\u793A")],-1)),Kf=bt(()=>t("div",{class:"actioner-tips_body"},[t("p",{class:"sandbox_info"},"\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)),Qf={key:2,class:"actioner-tips"},tm=bt(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u9519\u8BEF")],-1)),em={class:"actioner-tips_body"},am={class:"sandbox_info"},om=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0);y("disk");const n=y(""),s=y(3),p=y(""),c=y([]),f=y(""),d=y(null);(()=>{z.Nas.SandboxDisks.GET().then(x=>{var F;if(x!=null&&x.data&&(F=x.data)!=null&&F.result){d.value=x.data.result;return}throw"\u52A0\u8F7D\u78C1\u76D8\u4FE1\u606F\u5931\u8D25"}).catch(x=>{n.value=x,o.value=3})})();const u=()=>z.System.Reboot.POST({name:p.value,path:f.value}).then(x=>{var F;if(!(x!=null&&x.data&&(((F=x==null?void 0:x.data)==null?void 0:F.success)||0)==0))throw"\u672A\u77E5\u9519\u8BEF"}),m=x=>{var F,D;f.value="",c.value=p.value&&((D=(F=d.value)==null?void 0:F.disks.find(C=>C.path==p.value))==null?void 0:D.childrens)||[]},b=()=>{s.value>0&&(s.value-=1,window.setTimeout(b,1e3))},_=x=>{x.preventDefault(),a.Close&&a.Close()},v=()=>{new Promise((x,F)=>{const D="/luci-static/resources/icons/loading.gif",C=()=>{window.setTimeout(B,2e3)},B=()=>{const G=new Image;G.onload=x,G.onerror=C,G.src=D};window.setTimeout(B,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},g=x=>{const F=E.Loading("\u914D\u7F6E\u6C99\u7BB1\u91CD\u542F\u4E2D...");z.Nas.Sandbox.POST({path:f.value}).then(D=>{var C;if(D!=null&&D.data){if((D.data.success||0)==0)return o.value=2,window.setTimeout(b,1e3),u();if((C=D.data)!=null&&C.error)throw D.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).then(v).catch(D=>E.Warning(D)).finally(()=>F.Close())},k=()=>{o.value=0};return(x,F)=>{const D=J("icon-loading");return i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[o.value==0||o.value==2?(i(),r("div",Ef,[Cf,t("div",$f,[Df,o.value==0?(i(),r(L,{key:0},[d.value?$("",!0):(i(),r("div",Bf,[A(D,{size:38,color:"currentColor"}),Yf])),d.value&&d.value.disks.length==0?(i(),r("div",Af,[A(gt),Sf])):$("",!0),d.value&&d.value.disks.length>0?(i(),r(L,{key:2},[t("div",zf,[Pf,t("div",Tf,[S(t("select",{name:"",id:"",onChange:m,"onUpdate:modelValue":F[0]||(F[0]=C=>p.value=C)},[If,(i(!0),r(L,null,j(d.value.disks,(C,B)=>(i(),r("option",{value:C.path,key:B},h(C.venderModel)+"\uFF08"+h(C.size)+"\uFF09 ",9,Lf))),128))],544),[[Z,p.value]])])]),t("div",Mf,[Of,t("div",Nf,[S(t("select",{name:"",id:"","onUpdate:modelValue":F[1]||(F[1]=C=>f.value=C)},[qf,(i(!0),r(L,null,j(c.value,(C,B)=>(i(),r("option",{value:C.path,key:B,disabled:C.sizeInt<(1<<30)*1||C.isSystemRoot},h(C.name)+"\uFF08"+h(C.filesystem||"\u672A\u683C\u5F0F\u5316")+"\uFF09"+h(C.total),9,jf))),128))],512),[[Z,f.value]])])]),t("div",Rf,[A(gt),Gf])],64)):$("",!0)],64)):$("",!0),o.value==2?(i(),r(L,{key:1},[t("p",Vf,[Uf,t("span",null,"\uFF08"+h(s.value)+"s\uFF09",1)]),Wf],64)):$("",!0)]),o.value==0?(i(),r("div",Zf,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:!f.value,onClick:F[2]||(F[2]=C=>o.value=1)},"\u5F00\u542F\u6C99\u7BB1",8,Hf),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},"\u53D6\u6D88")])):$("",!0)])):$("",!0),o.value==1?(i(),r("div",Jf,[Xf,Kf,t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:g},"\u7EE7\u7EED"),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:k},"\u53D6\u6D88")])])):$("",!0),o.value==3?(i(),r("div",Qf,[tm,t("div",em,[t("p",am,h(n.value),1)]),t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:k},"\u53D6\u6D88")])])):$("",!0)]),_:1},8,["Close"])}}});var nm=Y(om,[["__scopeId","data-v-0384f3ac"]]);const im=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=X(nm,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},ua=e=>(O("data-v-4db2efb4"),e=e(),N(),e),rm={key:0,class:"actioner-dns"},sm=ua(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")],-1)),dm=ua(()=>t("div",{class:"actioner-dns_body"},[t("p",{class:"sandbox_info"},"\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"),t("div",{class:"sandbox_environment"},[t("p",null,"\u5F53\u524D\u5904\u4E8E\u6C99\u7BB1\u73AF\u5883\uFF1A"),t("p",null,"1\u3001\u70B9\u51FB\u201C\u63D0\u4EA4\u201D\u53EF\u5C06\u53D8\u66F4\u5408\u5E76\u5230\u975E\u6C99\u7BB1\u73AF\u5883"),t("p",null,"2\u3001\u70B9\u51FB\u201C\u91CD\u7F6E\u201D\u53EF\u5C06\u6C99\u7BB1\u6062\u590D\u5230\u521D\u59CB\u72B6\u6001"),t("p",null,"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")]),t("div",{class:"sandbox_environment_info"},[U("\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"),t("span",{class:"sandbox_environment_reboot"},"\u624B\u52A8\u5728\u5730\u5740\u680F\u8F93\u5165\u5730\u5740"),t("p",{class:"sandbox_environment_tex"},[U(" \u5982\u9700"),t("b",null,"\u4E34\u65F6"),U("\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"),t("br"),U(" \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 ")])])],-1)),um={class:"actioner-dns_footer"},lm=["disabled"],cm=["disabled"],pm=["disabled"],fm=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0),n=y(!1),s=()=>{new Promise((l,u)=>{const m="/luci-static/resources/icons/loading.gif",b=()=>{window.setTimeout(_,2e3)},_=()=>{const v=new Image;v.onload=l,v.onerror=b,v.src=m};window.setTimeout(_,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},p=()=>{n.value=!0;const l=E.Loading("\u63D0\u4EA4\u4E2D...");z.Nas.SandboxCommit.POST().then(u=>{var m,b;if(u!=null&&u.data)if((((m=u==null?void 0:u.data)==null?void 0:m.success)||0)==0){E.Loading("\u8BBE\u5907\u91CD\u542F\u4E2D...");return}else(b=u==null?void 0:u.data)!=null&&b.error&&alert(u.data.error);throw"\u672A\u77E5\u9519\u8BEF"}).then(s).catch(u=>{E.Error(u),n.value=!1}).finally(()=>l.Close())},c=()=>{n.value=!0;const l=E.Loading("\u91CD\u7F6E\u4E2D...");z.Nas.SandboxReset.POST().then(u=>{var m,b;if(u!=null&&u.data)if((((m=u==null?void 0:u.data)==null?void 0:m.success)||0)==0){E.Loading("\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(b=u==null?void 0:u.data)!=null&&b.error&&alert(u.data.error);throw"\u672A\u77E5\u9519\u8BEF"}).then(s).catch(u=>{E.Error(u),n.value=!1}).finally(()=>l.Close())},f=()=>{if(!confirm("\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;n.value=!0;const l=E.Loading("\u6267\u884C\u4E2D...");z.Nas.SandboxExit.POST().then(u=>{var m,b;if(u!=null&&u.data)if((((m=u==null?void 0:u.data)==null?void 0:m.success)||0)==0){E.Loading("\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(b=u==null?void 0:u.data)!=null&&b.error&&alert(u.data.error);throw"\u672A\u77E5\u9519\u8BEF"}).then(s).catch(u=>{E.Error(u),n.value=!1}).finally(()=>l.Close())},d=l=>{l.preventDefault(),a.Close&&a.Close()};return(l,u)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[o.value==0?(i(),r("div",rm,[sm,dm,t("div",um,[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p,disabled:n.value},"\u63D0\u4EA4",8,lm),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:c,disabled:n.value},"\u91CD\u7F6E",8,cm),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:f,disabled:n.value},"\u9000\u51FA",8,pm),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:d},"\u53D6\u6D88")])])):$("",!0)]),_:1},8,["Close"]))}});var mm=Y(fm,[["__scopeId","data-v-4db2efb4"]]);const bm=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=X(mm,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},vm={class:"nav-container"},gm=["onClick"],_m={key:0,class:"btn_styles color3 app-update-button",onclick:"window.location.href='/cgi-bin/luci/admin/system/ota'"},hm=U(" \u56FA\u4EF6\u66F4\u65B0 "),xm={key:0,style:{display:"inline-block"}},km={key:1},wm=["disabled"],ym=U(" DNS\u914D\u7F6E "),Fm={key:0,style:{display:"inline-block"}},Em=P({setup(e){const a=Fe(),o=ue(),n=R(()=>o.status);y(!1),y(!0);const s=y(),p=()=>{Xe()},c=()=>{im()},f=()=>{bm()},d=()=>{alert("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u6C99\u7BB1\u6A21\u5F0F")},l=()=>{Ff()},u=()=>{ta()},m=()=>{window.open(`http://${window.location.hostname}:7681/`,"_blank")};return Jt("sandbox")&&z.Nas.GetSandbox.GET().then(_=>{var v,g,k;_!=null&&_.data&&((((v=_==null?void 0:_.data)==null?void 0:v.success)||0)==0?(g=_==null?void 0:_.data)!=null&&g.result&&(s.value=_.data.result):(k=_==null?void 0:_.data)!=null&&k.error&&alert(_.data.error))}).catch(_=>E.Warning(_)),(b,_)=>{var k,x,F,D,C,B;const v=J("router-link"),g=J("icon-loading");return i(),r("div",vm,[A(v,{to:"/network",custom:""},{default:q(({navigate:G})=>[t("button",{class:"btn_styles color1",onClick:G},"\u7F51\u7EDC\u5411\u5BFC",8,gm)]),_:1}),t("button",{class:"btn_styles color2 app-btn-ttyd",onClick:m},"\u7EC8\u7AEF"),w(Jt)("ota")?(i(),r("button",_m,[hm,w(a).checkUpdate==null?(i(),r("span",xm,[A(g,{size:"0.8em",color:"currentColor"})])):(k=w(a).checkUpdate)!=null&&k.needUpdate?(i(),r("i",km)):$("",!0)])):$("",!0),t("button",{class:"btn_styles color4",onClick:l},"\u5185\u7F51\u914D\u7F6E"),t("button",{class:"btn_styles color5",onClick:p,disabled:!((x=w(n))!=null&&x.proto)},[ym,(F=w(n))!=null&&F.proto?$("",!0):(i(),r("span",Fm,[A(g,{size:"0.8em",color:"currentColor"})]))],8,wm),t("button",{class:"btn_styles color1",onClick:u},"\u8F6F\u4EF6\u6E90\u914D\u7F6E"),w(Jt)("sandbox")?(i(),r(L,{key:1},[((D=s.value)==null?void 0:D.status)=="unsupport"?(i(),r("button",{key:0,class:"btn_styles color2",onClick:d},"\u5F00\u542F\u6C99\u7BB1")):((C=s.value)==null?void 0:C.status)=="stopped"?(i(),r("button",{key:1,class:"btn_styles color3",onClick:c},"\u5F00\u542F\u6C99\u7BB1")):((B=s.value)==null?void 0:B.status)=="running"?(i(),r("button",{key:2,class:"btn_styles color4",onClick:f},"\u6C99\u7BB1\u5DF2\u5F00\u542F")):$("",!0)],64)):$("",!0)])}}});var Cm=Y(Em,[["__scopeId","data-v-82a27618"]]);const ve=e=>(O("data-v-0a2eed64"),e=e(),N(),e),$m={id:"page"},Dm=ve(()=>t("em",null,null,-1)),Bm=ve(()=>t("em",null,null,-1)),Ym=ve(()=>t("em",null,null,-1)),Am=ve(()=>t("em",null,null,-1)),Sm=P({setup(e){return Ua(),(a,o)=>(i(),r("div",$m,[Dm,A(Td),Bm,A(Cm),A(i7),Ym,A(T7),Am]))}});var zm=Y(Sm,[["__scopeId","data-v-0a2eed64"]]);const Pm={};function Tm(e,a){const o=J("router-view");return i(),M(o)}var Im=Y(Pm,[["render",Tm]]);const Lm={},Mm={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"},Om=It('<title>icon_router</title><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>',3),Nm=[Om];function qm(e,a){return i(),r("svg",Mm,Nm)}var jm=Y(Lm,[["render",qm]]);const Rm={},Gm={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"},Vm=It('<title>icon_dial</title><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>',3),Um=[Vm];function Wm(e,a){return i(),r("svg",Gm,Um)}var Zm=Y(Rm,[["render",Wm]]);const Hm={},Jm={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"},Xm=It('<title>icon_side router</title><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>',3),Km=[Xm];function Qm(e,a){return i(),r("svg",Jm,Km)}var t9=Y(Hm,[["render",Qm]]);const Vt=e=>(O("data-v-082ffcaf"),e=e(),N(),e),e9={id:"page"},a9=Vt(()=>t("div",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC",-1)),o9=Vt(()=>t("div",{class:"desc"},"\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB",-1)),n9={class:"network-containers"},i9={class:"network-container_item"},r9={class:"cover"},s9={class:"thumbnail"},d9=Vt(()=>t("span",null,"\u5BBD\u5E26\u62E8\u53F7\u8FDE\u63A5",-1)),u9={class:"network-container_item"},l9={class:"cover"},c9={class:"thumbnail"},p9=Vt(()=>t("span",null,"\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668",-1)),f9={class:"network-container_item"},m9={class:"cover"},b9={class:"thumbnail"},v9=Vt(()=>t("span",null,"\u914D\u7F6E\u4E3A\u65C1\u8DEF\u7531",-1)),g9=Vt(()=>t("div",{class:"info"},[U(" \u6CA1\u627E\u5230\u60F3\u8981\u7684\u914D\u7F6E\uFF1F\u8BF7\u4F7F\u7528 "),t("a",{href:"/cgi-bin/luci/admin/network/network"},"\u9AD8\u7EA7\u6A21\u5F0F")],-1)),_9=P({setup(e){return(a,o)=>{const n=J("router-link");return i(),r("div",e9,[a9,o9,t("div",n9,[t("div",i9,[A(n,{to:"/network/pppoe"},{default:q(()=>[t("div",r9,[t("div",s9,[A(Zm),d9])])]),_:1})]),t("div",u9,[A(n,{to:"/network/dhcp"},{default:q(()=>[t("div",l9,[t("div",c9,[A(jm),p9])])]),_:1})]),t("div",f9,[A(n,{to:"/network/gateway"},{default:q(()=>[t("div",m9,[t("div",b9,[A(t9),v9])])]),_:1})])]),g9])}}});var h9=Y(_9,[["__scopeId","data-v-082ffcaf"]]);const St=e=>(O("data-v-16746f19"),e=e(),N(),e),x9={key:0,id:"page"},k9=St(()=>t("h2",{class:"title"},"\u914D\u7F6E\u5BBD\u5E26\u8D26\u53F7",-1)),w9=St(()=>t("h3",{class:"desc"},"\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B",-1)),y9={class:"network-message"},F9={key:0},E9=U(" \u56E0\u4E3A\u60A8\u7684\u8BBE\u5907"),C9=St(()=>t("span",null,"\u6CA1\u6709 WAN \u53E3",-1)),$9=U("\uFF0C\u65E0\u6CD5\u8D70\u672C\u8BBE\u7F6E\u5411\u5BFC\uFF0C\u5177\u4F53\u8BF7\u770B "),D9=St(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/question.html#%E7%BD%91%E7%BB%9C",target:"_blank",rel:"noopener noreferrer"},"\u94FE\u63A5",-1)),B9=[E9,C9,$9,D9],Y9=["onSubmit"],A9=St(()=>t("div",{class:"label-key"},[t("span",null,"\u5BBD\u5E26\u8D26\u53F7")],-1)),S9=["disabled"],z9=St(()=>t("div",{class:"label-key"},[t("span",null,"\u5BC6\u7801")],-1)),P9=["disabled"],T9={key:0,class:"chose_dhcp"},I9=St(()=>t("span",{class:"dhcp_info"},"\u542F\u7528LAN\u53E3DHCP\u670D\u52A1\uFF08\u7528\u4E8E\u4ECE\u65C1\u8DEF\u7531\u6A21\u5F0F\u6062\u590D\u6210\u9ED8\u8BA4\u72B6\u6001\uFF09",-1)),L9={key:1,class:"msg"},M9={class:"btns"},O9=["disabled"],N9=["onClick"],q9={key:1,id:"page"},j9=St(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),R9={class:"btns"},G9=["onClick"],V9=["onClick"],U9=P({setup(e){const a=y(0),o=y({}),n=y(""),s=y(!1),p=y(0),c=y(!1);(()=>T(this,null,function*(){var l,u;s.value=!0;try{const m=yield Promise.all([z.Guide.Pppoe.GET(),z.Guide.GetLan.GET()]);if(m[0].data){const{success:b,error:_,result:v}=m[0].data;v&&(v.enableLanDhcp=!1,o.value=v),b==-1011&&(s.value=!0,p.value=b)}(l=m[1].data)!=null&&l.result&&(((u=m[1].data)==null?void 0:u.result).enableDhcp||(c.value=!0,o.value.enableLanDhcp=!0))}catch(m){n.value=m}p.value==0&&(s.value=!1)}))();const d=()=>T(this,null,function*(){const l=o.value.account||"",u=o.value.password||"";if(l==""){n.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(u==""){n.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}s.value=!0;const m=E.Loading("\u914D\u7F6E\u4E2D...");try{const b=yield z.Guide.Pppoe.POST({account:l,password:u});if(b!=null&&b.data){const{error:_,success:v}=b.data;_&&(n.value=_),(v==null||v==0)&&(E.Success("\u914D\u7F6E\u6210\u529F"),a.value=1)}}catch(b){n.value=b}s.value=!1,m.Close()});return(l,u)=>{const m=J("switch-box"),b=J("router-link");return a.value==0?(i(),r("div",x9,[k9,w9,t("div",y9,[p.value==-1011?(i(),r("li",F9,B9)):$("",!0)]),t("form",{onSubmit:ot(d,["prevent"])},[t("label",null,[A9,S(t("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=_=>o.value.account=_),placeholder:"\u5BBD\u5E26\u8D26\u53F7",required:"",disabled:s.value},null,8,S9),[[V,o.value.account,void 0,{trim:!0}]])]),t("label",null,[z9,S(t("input",{type:"password","onUpdate:modelValue":u[1]||(u[1]=_=>o.value.password=_),placeholder:"\u5BBD\u5E26\u5BC6\u7801",required:"",disabled:s.value},null,8,P9),[[V,o.value.password,void 0,{trim:!0}]])]),c.value?(i(),r("div",T9,[A(m,{modelValue:o.value.enableLanDhcp,"onUpdate:modelValue":u[2]||(u[2]=_=>o.value.enableLanDhcp=_)},{default:q(()=>[I9]),_:1},8,["modelValue"])])):$("",!0),n.value?(i(),r("div",L9,h(n.value),1)):$("",!0),t("div",M9,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:s.value},"\u4FDD\u5B58\u914D\u7F6E",8,O9),A(b,{to:"/network",custom:""},{default:q(({navigate:_})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},"\u8FD4\u56DE",8,N9)]),_:1})])],40,Y9)])):a.value==1?(i(),r("div",q9,[j9,t("div",R9,[A(b,{to:"/",custom:""},{default:q(({navigate:_})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:_},"\u8FDB\u5165\u63A7\u5236\u53F0",8,G9)]),_:1}),A(b,{to:"/network",custom:""},{default:q(({navigate:_})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},"\u8FD4\u56DE",8,V9)]),_:1})])])):$("",!0)}}});var W9=Y(U9,[["__scopeId","data-v-16746f19"]]);const rt=e=>(O("data-v-0d3a64fa"),e=e(),N(),e),Z9={key:0,id:"page"},H9=rt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u4E92\u8054\u7F51",-1)),J9=rt(()=>t("h3",{class:"desc"},"\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u4E0A\u7EA7\u8DEF\u7531\u5C40\u57DF\u7F51\uFF08 LAN \uFF09\u63A5\u53E3",-1)),X9={class:"network-message"},K9={key:0},Q9=U(" \u56E0\u4E3A\u60A8\u7684\u8BBE\u5907"),tb=rt(()=>t("span",null,"\u6CA1\u6709 WAN \u53E3",-1)),eb=U("\uFF0C\u65E0\u6CD5\u4F7F\u7528\u672C\u8BBE\u7F6E\u5411\u5BFC\uFF0C\u5177\u4F53\u8BF7\u770B "),ab=rt(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/question.html#%E7%BD%91%E7%BB%9C",target:"_blank",rel:"noopener noreferrer"},"\u94FE\u63A5",-1)),ob=[Q9,tb,eb,ab],nb=["onSubmit"],ib=rt(()=>t("div",{class:"label-key"},[t("span",null,"WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),rb=rt(()=>t("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6IP\u5730\u5740\uFF08DHCP\uFF09",-1)),sb=rt(()=>t("option",{value:"static"},"\u9759\u6001IP\u5730\u5740",-1)),db=[rb,sb],ub=rt(()=>t("div",{class:"label-key"},[t("span",null,"IP\u5730\u5740")],-1)),lb=["disabled"],cb={key:0,class:"msg"},pb=rt(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),fb=["disabled"],mb={key:1,class:"msg"},bb=rt(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740")],-1)),vb=["disabled"],gb=rt(()=>t("div",{class:"label-key"},[t("span",null,"DNS \u914D\u7F6E\u65B9\u5F0F")],-1)),_b=["disabled"],hb=rt(()=>t("option",{value:"manual"},"\u624B\u5DE5\u914D\u7F6E",-1)),xb=rt(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),kb=["onUpdate:modelValue","disabled"],wb=rt(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),yb=["disabled"],Fb=rt(()=>t("div",{class:"label-key"},"\u5907\u7528DNS\u670D\u52A1\u5668",-1)),Eb=["disabled"],Cb={key:2,class:"chose_dhcp"},$b=rt(()=>t("span",{class:"dhcp_info"},"\u542F\u7528LAN\u53E3DHCP\u670D\u52A1\uFF08\u7528\u4E8E\u4ECE\u65C1\u8DEF\u7531\u6A21\u5F0F\u6062\u590D\u6210\u9ED8\u8BA4\u72B6\u6001\uFF09",-1)),Db={key:3,class:"msgs"},Bb={class:"btns"},Yb=["disabled"],Ab=["onClick"],Sb={key:1,id:"page"},zb=rt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),Pb={class:"btns"},Tb=["onClick"],Ib=["onClick"],Lb=P({setup(e){const a=y(0),o=y({}),n=y(""),s=y(""),p=y(""),c=y(!1),f=y(""),d=y(""),l=y(0),u=wt.checkIsIP,m=y(!1);(()=>T(this,null,function*(){var x,F;c.value=!0;try{const D=yield Promise.all([z.Guide.ClientModel.GET(),z.Guide.GetLan.GET()]);if(D[0]){const C=D[0];if(C.data){const{success:B,error:G,result:K}=C.data;K&&(K.wanProto!="dhcp"&&K.wanProto!="static"&&(K.wanProto="dhcp",K.dnsProto="auto"),K.enableLanDhcp=!1,o.value=K),B==-1011&&(l.value=B,c.value=!0)}}(x=D[1].data)!=null&&x.result&&(((F=D[1].data)==null?void 0:F.result).enableDhcp||(m.value=!0,o.value.enableLanDhcp=!0))}catch(D){n.value=D}l.value==0&&(c.value=!1)}))();const _=x=>{x.target.value=="static"?((o.value.staticIp==null||o.value.staticIp=="")&&(o.value.staticIp="192.168.1.100"),(o.value.subnetMask==null||o.value.subnetMask=="")&&(o.value.subnetMask="255.255.255.0"),o.value.dnsProto=="auto"&&setTimeout(()=>o.value.dnsProto="manual",0)):o.value.dnsProto=="manual"&&setTimeout(()=>o.value.dnsProto="auto",0)},v=x=>{const F=x.target;if(F.value==""){f.value="";return}u(F.value)?f.value="":f.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684IP\u5730\u5740"},g=x=>{const F=x.target;if(F.value==""){d.value="";return}u(F.value)?d.value="":d.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u5730\u5740"},k=()=>T(this,null,function*(){const x={};switch(o.value.wanProto){case"dhcp":break;case"static":x.staticIp=o.value.staticIp,x.subnetMask=o.value.subnetMask,x.gateway=o.value.gateway;break}switch(o.value.dnsProto){case"auto":break;case"manual":x.manualDnsIp=[],o.value.manualDnsIp!=null&&o.value.manualDnsIp.length>0?x.manualDnsIp=o.value.manualDnsIp:(x.manualDnsIp.push(s.value),p.value&&x.manualDnsIp.push(p.value));break}x.dnsProto=o.value.dnsProto,x.wanProto=o.value.wanProto,x.enableLanDhcp=o.value.enableLanDhcp;const F=E.Loading("\u914D\u7F6E\u4E2D....");c.value=!0;try{const D=yield z.Guide.ClientModel.POST(x);if(D!=null&&D.data){const{success:C,error:B}=D==null?void 0:D.data;B&&(n.value=B),(C==null||C==0)&&(E.Success("\u914D\u7F6E\u6210\u529F"),a.value=1)}}catch(D){n.value=D}c.value=!1,F.Close()});return(x,F)=>{const D=J("switch-box"),C=J("router-link");return a.value==0?(i(),r("div",Z9,[H9,J9,t("div",X9,[l.value==-1011?(i(),r("li",K9,ob)):$("",!0)]),t("form",{onSubmit:ot(k,["prevent"])},[t("label",null,[ib,S(t("select",{"onUpdate:modelValue":F[0]||(F[0]=B=>o.value.wanProto=B),onInput:_},db,544),[[Z,o.value.wanProto]])]),o.value.wanProto=="static"?(i(),r(L,{key:0},[t("label",null,[ub,S(t("input",{type:"text","onUpdate:modelValue":F[1]||(F[1]=B=>o.value.staticIp=B),placeholder:"\u9759\u6001IP\u5730\u5740",required:"",disabled:c.value,onInput:v},null,40,lb),[[V,o.value.staticIp,void 0,{trim:!0}]])]),f.value?(i(),r("p",cb,h(f.value),1)):$("",!0),t("label",null,[pb,S(t("input",{type:"text","onUpdate:modelValue":F[2]||(F[2]=B=>o.value.subnetMask=B),placeholder:"\u5B50\u7F51\u63A9\u7801",required:"",disabled:c.value,onInput:g},null,40,fb),[[V,o.value.subnetMask,void 0,{trim:!0}]])]),d.value?(i(),r("p",mb,h(d.value),1)):$("",!0),t("label",null,[bb,S(t("input",{type:"text","onUpdate:modelValue":F[3]||(F[3]=B=>o.value.gateway=B),placeholder:"\u7F51\u5173\u5730\u5740",required:"",disabled:c.value},null,8,vb),[[V,o.value.gateway,void 0,{trim:!0}]])])],64)):$("",!0),t("label",null,[gb,S(t("select",{"onUpdate:modelValue":F[4]||(F[4]=B=>o.value.dnsProto=B)},[t("option",{value:"auto",disabled:o.value.wanProto=="static"},"\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09",8,_b),hb],512),[[Z,o.value.dnsProto]])]),o.value.dnsProto=="manual"?(i(),r(L,{key:1},[o.value.manualDnsIp!=null&&o.value.manualDnsIp.length>0?(i(!0),r(L,{key:0},j(o.value.manualDnsIp,(B,G)=>(i(),r("label",null,[xb,S(t("input",{type:"text","onUpdate:modelValue":K=>o.value.manualDnsIp[G]=K,placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:c.value},null,8,kb),[[V,o.value.manualDnsIp[G],void 0,{trim:!0}]])]))),256)):(i(),r(L,{key:1},[t("label",null,[wb,S(t("input",{type:"text","onUpdate:modelValue":F[5]||(F[5]=B=>s.value=B),placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:c.value},null,8,yb),[[V,s.value,void 0,{trim:!0}]])]),t("label",null,[Fb,S(t("input",{type:"text","onUpdate:modelValue":F[6]||(F[6]=B=>p.value=B),placeholder:"\u5907\u7528DNS\u670D\u52A1\u5668",disabled:c.value},null,8,Eb),[[V,p.value,void 0,{trim:!0}]])])],64))],64)):$("",!0),m.value?(i(),r("div",Cb,[A(D,{modelValue:o.value.enableLanDhcp,"onUpdate:modelValue":F[7]||(F[7]=B=>o.value.enableLanDhcp=B)},{default:q(()=>[$b]),_:1},8,["modelValue"])])):$("",!0),n.value?(i(),r("div",Db,h(n.value),1)):$("",!0),t("div",Bb,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:c.value},"\u4FDD\u5B58\u914D\u7F6E",8,Yb),A(C,{to:"/network",custom:""},{default:q(({navigate:B})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:B},"\u8FD4\u56DE",8,Ab)]),_:1})])],40,nb)])):a.value==1?(i(),r("div",Sb,[zb,t("div",Pb,[A(C,{to:"/",custom:""},{default:q(({navigate:B})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:B},"\u8FDB\u5165\u63A7\u5236\u53F0",8,Tb)]),_:1}),A(C,{to:"/network",custom:""},{default:q(({navigate:B})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:B},"\u8FD4\u56DE",8,Ib)]),_:1})])])):$("",!0)}}});var Mb=Y(Lb,[["__scopeId","data-v-0d3a64fa"]]);const mt=e=>(O("data-v-c43b9118"),e=e(),N(),e),Ob={key:0,id:"page"},Nb=mt(()=>t("h2",{class:"title"},"\u65C1\u8DEF\u7531\u914D\u7F6E\u524D\u7684\u51C6\u5907\u5DE5\u4F5C",-1)),qb=mt(()=>t("code",null,[U(" \u65C1\u8DEF\u7531\u6A21\u5F0F\uFF0C\u4E5F\u53EB\u5355\u81C2\u8DEF\u7531\u6A21\u5F0F\u3002 "),t("br"),U("\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)),jb=mt(()=>t("h3",{class:"desc"},"\u8BF7\u60A8\u83B7\u5F97\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\u4F7F\u7528",-1)),Rb=mt(()=>t("div",{class:"info"},[U(" \u4F60\u53EF\u4EE5\u67E5\u770B\u6211\u4EEC\u7684 "),t("a",{target:"_blank",href:"https://doc.linkease.com/zh/guide/easepi/common.html#%E6%97%81%E8%B7%AF%E7%94%B1%E6%A8%A1%E5%BC%8F"},"\u914D\u7F6E\u6559\u7A0B")],-1)),Gb={class:"btns"},Vb=["disabled"],Ub=["onClick"],Wb={key:1,id:"page"},Zb=mt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u65C1\u8DEF\u7531\u7F51\u7EDC",-1)),Hb=mt(()=>t("h3",{class:"desc"},"\u73B0\u5728\uFF0C\u8BF7\u4F60\u914D\u7F6E\u65C1\u8DEF\u7531\u4FE1\u606F",-1)),Jb=["onSubmit"],Xb=mt(()=>t("div",{class:"label-key"},[t("span",null,"LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),Kb={class:"label-value"},Qb=mt(()=>t("option",null,"\u65C1\u8DEF\u7531\u6A21\u5F0F\u4EC5\u652F\u6301\u9759\u6001IP\u5730\u5740",-1)),tv=[Qb],ev=mt(()=>t("div",{class:"label-key"},[t("span",null,"IP \u5730\u5740\uFF08\u4E0E\u4E0A\u4E00\u6B65\u8BB0\u5F55\u7684\u4E3B\u8DEF\u7531\u5728\u540C\u4E00\u7F51\u6BB5\uFF09")],-1)),av=["disabled"],ov=mt(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),nv=["disabled"],iv=mt(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740\uFF08\u5373\u4E0A\u4E00\u6B65\u8BB0\u5F55\u7684\u4E3B\u8DEF\u7531IP\u5730\u5740\uFF09")],-1)),rv=["disabled"],sv=mt(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),dv=["disabled"],uv={key:0,class:"msgs"},lv={class:"chose_dhcp"},cv={key:0,class:"dhcp_info"},pv={key:1,class:"dhcp_info"},fv={class:"btns"},mv=["disabled"],bv=["onClick"],vv={key:2,id:"page"},gv=mt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),_v=mt(()=>t("h3",{class:"desc"},"\u73B0\u5728\uFF0C\u5C06\u672C\u8DEF\u7531\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)),hv=P({setup(e){const a=y(0),o=y(!1),n=y(""),s=y({subnetMask:"255.255.255.0",staticDnsIp:"223.5.5.5",staticLanIp:"",gateway:"",enableDhcp:!0}),p=d=>{a.value=d},c=d=>{window.location.href=location.protocol+"//"+s.value.staticLanIp+(location.port?":"+location.port:"")},f=()=>T(this,null,function*(){const d=s.value,l=E.Loading("\u914D\u7F6E\u4E2D...");try{const u=yield z.Guide.GatewayRouter.POST(d);if(u!=null&&u.data){const{success:m,error:b}=u==null?void 0:u.data;if(b&&(n.value=b),m==null||m==0){setTimeout(()=>{a.value=2,l.Close()},5e3);return}}}catch(u){n.value=u}l.Close()});return(d,l)=>{const u=J("router-link"),m=J("switch-box");return a.value==0?(i(),r("div",Ob,[Nb,qb,jb,Rb,t("div",Gb,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:o.value,onClick:l[0]||(l[0]=b=>p(1))},"\u4E0B\u4E00\u6B65",8,Vb),A(u,{to:"/network",custom:""},{default:q(({navigate:b})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:b},"\u8FD4\u56DE",8,Ub)]),_:1})])])):a.value==1?(i(),r("div",Wb,[Zb,Hb,t("form",{onSubmit:ot(f,["prevent"])},[t("label",null,[Xb,t("div",Kb,[t("select",{disabled:"",style:Pt({backgroundColor:"rgba(215, 215, 215, 1)",color:"#333"})},tv,4)])]),t("label",null,[ev,S(t("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=b=>s.value.staticLanIp=b),placeholder:"IP\u5730\u5740",required:"",disabled:o.value},null,8,av),[[V,s.value.staticLanIp,void 0,{trim:!0}]])]),t("label",null,[ov,S(t("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=b=>s.value.subnetMask=b),placeholder:"\u5B50\u7F51\u63A9\u7801",required:"",disabled:o.value},null,8,nv),[[V,s.value.subnetMask,void 0,{trim:!0}]])]),t("label",null,[iv,S(t("input",{type:"text","onUpdate:modelValue":l[3]||(l[3]=b=>s.value.gateway=b),placeholder:"\u7F51\u5173\u5730\u5740",required:"",disabled:o.value},null,8,rv),[[V,s.value.gateway,void 0,{trim:!0}]])]),t("label",null,[sv,S(t("input",{type:"text","onUpdate:modelValue":l[4]||(l[4]=b=>s.value.staticDnsIp=b),placeholder:"223.5.5.5",required:"",disabled:o.value},null,8,dv),[[V,s.value.staticDnsIp,void 0,{trim:!0}]])]),n.value?(i(),r("div",uv,h(n.value),1)):$("",!0),t("div",lv,[A(m,{modelValue:s.value.enableDhcp,"onUpdate:modelValue":l[5]||(l[5]=b=>s.value.enableDhcp=b)},{default:q(()=>[s.value.enableDhcp?(i(),r("span",cv,"\u63D0\u4F9B DHCP \u670D\u52A1\uFF08\u9700\u8981\u5173\u95ED\u4E3B\u8DEF\u7531 DHCP \u670D\u52A1\uFF09")):(i(),r("span",pv,"\u63D0\u4F9B DHCP \u670D\u52A1"))]),_:1},8,["modelValue"])]),t("div",fv,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:o.value},"\u4FDD\u5B58\u914D\u7F6E",8,mv),A(u,{to:"/network",custom:""},{default:q(({navigate:b})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:b},"\u8FD4\u56DE",8,bv)]),_:1})])],40,Jb)])):a.value==2?(i(),r("div",vv,[gv,_v,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:c},"\u8FDB\u5165\u63A7\u5236\u53F0")])])):$("",!0)}}});var xv=Y(hv,[["__scopeId","data-v-c43b9118"]]);const zt=e=>(O("data-v-7fc91c6d"),e=e(),N(),e),kv={class:"actioner-container"},wv=zt(()=>t("div",{class:"actioner-container_header"},[t("span",null,"RAID\u521B\u5EFA\u5411\u5BFC")],-1)),yv={class:"actioner-container_body"},Fv=zt(()=>t("p",null,"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)),Ev={class:"label-item"},Cv=zt(()=>t("div",{class:"label-item_key"},[t("span",null,"RAID\u7EA7\u522B\uFF1A")],-1)),$v={class:"label-item_value"},Dv=["value"],Bv={class:"label-item_tips"},Yv={class:"label-item"},Av=zt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u78C1\u76D8\u9635\u5217\u6210\u5458\uFF1A")],-1)),Sv={key:0,class:"label-item_value"},zv=zt(()=>t("span",{class:"msg-warning"}," \u68C0\u6D4B\u4E2D... ",-1)),Pv=[zv],Tv={key:1,class:"label-item_value"},Iv=["value"],Lv={key:1,class:"msg-warning"},Mv={class:"label-item_tips"},Ov=U(" \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 "),Nv={class:"actioner-container_footer"},qv=["disabled"],jv=["disabled"],Rv={key:1,class:"actioner-container_body setup-loading"},Gv=zt(()=>t("span",null,"\u6B63\u5728\u521B\u5EFA\u4E2D...",-1)),Vv={class:"actioner-container_body setup-error"},Uv={class:"actioner-container_footer"},Wv=["disabled"],Zv={class:"actioner-container_body setup-success"},Hv=zt(()=>t("div",{class:"body-title"},"\u521B\u5EFA\u6210\u529F",-1)),Jv=zt(()=>t("div",{class:"body-info"},[t("span",null," \u5982\u9700\u5BF9raid\u8BBE\u5907\u8FDB\u884C\u8BFB\u5199\u64CD\u4F5C\uFF0C\u9700\u8981\u5BF9raid\u8BBE\u5907\u683C\u5F0F\u5316\u5E76\u6302\u8F7D\u6587\u4EF6\u7CFB\u7EDF "),t("br"),t("span",null,[U(" \u53EF\u524D\u5F80 "),t("a",{href:"/cgi-bin/luci/",target:"_blank",rel:"noopener noreferrer"},"\u9996\u9875-\u78C1\u76D8\u4FE1\u606F"),U(" \u8FDB\u884C\u6302\u8F7D ")])],-1)),Xv=P({props:{Close:{type:Function,required:!0},success:{type:Function}},setup(e){const a=e,o=()=>{a.Close()},n=()=>{a.success&&a.success()},s=y("init"),p=y(""),c=[{name:"jbod",title:"JBOD (\u7EBF\u6027)",info:"\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:"RAID 0 (\u6761\u5E26)",info:"\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:"RAID 1 (\u955C\u50CF)",info:"\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:"\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:"\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:"\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}],f=y("raid5"),d=y([]),l=g=>{let k="";return c.forEach(x=>{x.name===g&&(k=x.info)}),k},u=y(!1),m=nt({loading:!1,members:[]}),b=g=>{};(()=>T(this,null,function*(){m.loading=!0;try{const g=yield z.Raid.CreateList.GET();if(g!=null&&g.data){const{success:k,error:x,result:F}=g.data;if(F&&(m.members=F.members||[]),x)throw x}}catch(g){console.log(g)}finally{m.loading=!1}}))();const v=()=>T(this,null,function*(){const g=c.filter(x=>x.name===f.value)[0],k=d.value;if(!g){E.Warning("\u8BF7\u9009\u62E9raid\u7C7B\u578B");return}if(k.length==0){E.Warning("\u8BF7\u9009\u62E9\u78C1\u76D8");return}if(g.select>k.length){E.Warning("\u8BF7\u9009\u62E9\u81F3\u5C11"+g.select+"\u5757\u78C1\u76D8");return}if(!!confirm(`\u662F\u5426\u7ACB\u5373\u521B\u5EFA ${g.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`)&&!!confirm(`\u786E\u5B9A\u521B\u5EFA ${g.name}\uFF1F\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u9006,\u8BF7\u8C28\u614E\u64CD\u4F5C`)){u.value=!0,s.value="loading";try{const x=yield z.Raid.Create.POST({level:g.name,devicePaths:k});if(x.data){const{success:F,error:D,result:C}=x.data;if(D)throw D;(F||0)==0&&(s.value="success",n())}}catch(x){p.value=x,s.value="error"}finally{u.value=!1}}});return(g,k)=>{const x=J("icon-loading"),F=J("icon-error"),D=J("icon-success");return i(),r("div",kv,[wv,s.value=="init"?(i(),r(L,{key:0},[t("div",yv,[Fv,t("div",Ev,[Cv,t("div",$v,[S(t("select",{"onUpdate:modelValue":k[0]||(k[0]=C=>f.value=C),onChange:b},[(i(),r(L,null,j(c,C=>t("option",{value:C.name},h(C.title),9,Dv)),64))],544),[[Z,f.value]])]),t("div",Bv,[A(gt),U(" "+h(l(f.value)),1)])]),t("div",Yv,[Av,w(m).loading?(i(),r("div",Sv,Pv)):(i(),r("div",Tv,[w(m).members.length>0?(i(!0),r(L,{key:0},j(w(m).members,C=>(i(),r("label",null,[S(t("input",{type:"checkbox","onUpdate:modelValue":k[1]||(k[1]=B=>d.value=B),value:C.path},null,8,Iv),[[Tt,d.value]]),U(" \u3010"+h(C.model)+"\u3011"+h(C.name)+" "+h(C.path)+" ["+h(C.sizeStr)+"] ",1)]))),256)):(i(),r("span",Lv," \u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458... "))])),t("div",Mv,[A(gt),Ov])])]),t("div",Nv,[t("div",{class:"close",onClick:o,disabled:u.value},"\u53D6\u6D88",8,qv),t("div",{class:"next",onClick:v,disabled:u.value},"\u521B\u5EFA",8,jv)])],64)):s.value=="loading"?(i(),r("div",Rv,[A(x,{size:60,color:"#666"}),Gv])):s.value=="error"?(i(),r(L,{key:2},[t("div",Vv,[A(F),t("span",null,h(p.value),1)]),t("div",Uv,[t("div",{class:"close",onClick:o},"\u5173\u95ED"),t("div",{class:"next",onClick:v,disabled:u.value},"\u91CD\u65B0\u521B\u5EFA",8,Wv)])],64)):s.value=="success"?(i(),r(L,{key:3},[t("div",Zv,[A(D),Hv,Jv]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u5173\u95ED")])],64)):$("",!0)])}}});var Kv=Y(Xv,[["__scopeId","data-v-7fc91c6d"]]);const Qv={class:"actioner-container"},tg={class:"actioner-container_body"},eg=["value"],ag=P({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0}},setup(e){const a=e,o=()=>{a.Close()},n=y("");return(()=>{z.Raid.Detail.POST({path:a.raid.path}).then(p=>{if(p.data){const{result:c,error:f}=p.data;f?n.value=f:n.value=(c==null?void 0:c.detail)||""}}).catch(p=>{n.value=p.message})})(),(p,c)=>(i(),r("div",Qv,[t("div",tg,[t("textarea",{value:n.value},null,8,eg)]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u5173\u95ED")])]))}});var og=Y(ag,[["__scopeId","data-v-51f9d7a2"]]);const ze=e=>(O("data-v-c07c8244"),e=e(),N(),e),ng={class:"actioner-container"},ig={class:"actioner-container_header"},rg={class:"actioner-container_body"},sg={class:"label-item"},dg=ze(()=>t("div",{class:"label-item_key"}," \u8BBE\u5907 ",-1)),ug={class:"label-item_value"},lg={disabled:""},cg={class:"label-item"},pg=ze(()=>t("div",{class:"label-item_key"}," \u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u88AB\u6DFB\u52A0\u5230RAID\u7684\u786C\u76D8\uFF09\uFF1A ",-1)),fg={key:0,class:"label-item_value"},mg=ze(()=>t("span",{class:"msg-warning"}," \u68C0\u6D4B\u4E2D... ",-1)),bg=[mg],vg={key:1,class:"label-item_value"},gg=["value"],_g={key:1,class:"msg-warning"},hg={class:"actioner-container_footer"},xg=["disabled"],kg=["disabled"],wg=P({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(e){const a=e,o=()=>{a.Close()},n=()=>{a.success&&a.success()},s=()=>T(this,null,function*(){const l=f.value;if(l==""){E.Warning("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8");return}c.value=!0;const u=E.Loading("\u4FDD\u5B58\u4E2D...");try{const m=yield z.Raid.Add.POST({path:a.raid.path,memberPath:l});if(m.data){const{error:b,success:_}=m.data;if(b)throw b;(_||0)==0&&(E.Success("\u4FDD\u5B58\u6210\u529F"),n(),o())}}catch(m){E.Error(`${m}`)}finally{c.value=!1,u.Close()}}),p=nt({loading:!1,members:[]}),c=y(!1),f=y("");return(()=>T(this,null,function*(){p.loading=!0,c.value=!0;try{const l=yield z.Raid.CreateList.GET();if(l!=null&&l.data){const{success:u,error:m,result:b}=l.data;if(b&&(p.members=b.members||[]),m)throw m}}catch(l){console.log(l)}finally{c.value=!1,p.loading=!1}}))(),(l,u)=>(i(),r("div",ng,[t("div",ig,[t("span",null,"RAID - "+h(e.raid.name)+" \u4FEE\u6539",1)]),t("div",rg,[t("div",sg,[dg,t("div",ug,[t("select",lg,[t("option",null,h(e.raid.name)+"_"+h(e.raid.venderModel)+" ("+h(e.raid.path)+"\uFF0C"+h(e.raid.level)+"\uFF0C"+h(e.raid.size)+") ",1)])])]),t("div",cg,[pg,w(p).loading?(i(),r("div",fg,bg)):(i(),r("div",vg,[w(p).members.length>0?(i(!0),r(L,{key:0},j(w(p).members,m=>(i(),r("label",null,[S(t("input",{type:"radio","onUpdate:modelValue":u[0]||(u[0]=b=>f.value=b),value:m.path},null,8,gg),[[pt,f.value]]),U(" \u3010"+h(m.model)+"\u3011"+h(m.name)+" "+h(m.path)+" ["+h(m.sizeStr)+"] ",1)]))),256)):(i(),r("span",_g," \u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458... "))]))])]),t("div",hg,[t("div",{class:"close",onClick:o,disabled:c.value},"\u53D6\u6D88",8,xg),t("div",{class:"next",onClick:s,disabled:c.value},"\u4FDD\u5B58",8,kg)])]))}});var yg=Y(wg,[["__scopeId","data-v-c07c8244"]]);const la=e=>(O("data-v-13dc2cd6"),e=e(),N(),e),Fg={class:"actioner-container"},Eg={class:"actioner-container_header"},Cg={class:"actioner-container_body"},$g={class:"label-item"},Dg=la(()=>t("div",{class:"label-item_key"}," \u8BBE\u5907 ",-1)),Bg={class:"label-item_value"},Yg={disabled:""},Ag={class:"label-item"},Sg=la(()=>t("div",{class:"label-item_key"}," \u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u8981\u4ECERAID\u9635\u5217\u4E2D\u5220\u9664\u7684\u786C\u76D8\uFF09\uFF1A ",-1)),zg={class:"label-item_value"},Pg=["value"],Tg={class:"actioner-container_footer"},Ig=["disabled"],Lg=["disabled"],Mg=P({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(e){const a=e,o=()=>{a.Close()},n=()=>{a.success&&a.success()},s=()=>T(this,null,function*(){const f=c.value;if(f==""){E.Warning("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u786C\u76D8");return}p.value=!0;const d=E.Loading("\u4FDD\u5B58\u4E2D...");try{const l=yield z.Raid.Remove.POST({path:a.raid.path,memberPath:f});if(l.data){const{error:u,success:m}=l.data;if(u)throw u;(m||0)==0&&(E.Success("\u4FDD\u5B58\u6210\u529F"),n(),o())}}catch(l){E.Error(`${l}`)}finally{p.value=!1,d.Close()}}),p=y(!1),c=y("");return(f,d)=>(i(),r("div",Fg,[t("div",Eg,[t("span",null,"RAID - "+h(e.raid.name)+" \u79FB\u9664",1)]),t("div",Cg,[t("div",$g,[Dg,t("div",Bg,[t("select",Yg,[t("option",null,h(e.raid.name)+"_"+h(e.raid.venderModel)+" ("+h(e.raid.path)+"\uFF0C"+h(e.raid.level)+"\uFF0C"+h(e.raid.size)+") ",1)])])]),t("div",Ag,[Sg,t("div",zg,[(i(!0),r(L,null,j(e.raid.members,l=>(i(),r("label",null,[S(t("input",{type:"radio","onUpdate:modelValue":d[0]||(d[0]=u=>c.value=u),value:l},null,8,Pg),[[pt,c.value]]),U(" "+h(l),1)]))),256))])])]),t("div",Tg,[t("div",{class:"close",onClick:o,disabled:p.value},"\u53D6\u6D88",8,Ig),t("div",{class:"next",onClick:s,disabled:p.value},"\u4FDD\u5B58",8,Lg)])]))}});var Og=Y(Mg,[["__scopeId","data-v-13dc2cd6"]]);const Pe=e=>(O("data-v-5643983d"),e=e(),N(),e),Ng={class:"actioner-container"},qg={class:"actioner-container_header"},jg={class:"actioner-container_body"},Rg={class:"label-item"},Gg=Pe(()=>t("div",{class:"label-item_key"}," \u8BBE\u5907 ",-1)),Vg={class:"label-item_value"},Ug={disabled:""},Wg={class:"label-item"},Zg=Pe(()=>t("div",{class:"label-item_key"}," \u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u7A7A\u95F2\u7684\u786C\u76D8\u6062\u590DRAID\u8BBE\u5907\uFF09\uFF1A ",-1)),Hg={key:0,class:"label-item_value"},Jg=Pe(()=>t("span",{class:"msg-warning"}," \u68C0\u6D4B\u4E2D... ",-1)),Xg=[Jg],Kg={key:1,class:"label-item_value"},Qg=["value"],t_={key:1,class:"msg-warning"},e_={class:"actioner-container_footer"},a_=["disabled"],o_=["disabled"],n_=P({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0},success:{type:Function}},setup(e){const a=e,o=()=>{a.Close()},n=()=>{a.success&&a.success()},s=()=>T(this,null,function*(){const l=f.value;if(l==""){E.Warning("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8");return}c.value=!0;const u=E.Loading("\u4FDD\u5B58\u4E2D...");try{const m=yield z.Raid.Recover.POST({path:a.raid.path,memberPath:l});if(m.data){const{error:b,success:_}=m.data;if(b)throw b;(_||0)==0&&(E.Success("\u4FDD\u5B58\u6210\u529F"),n(),o())}}catch(m){E.Error(`${m}`)}finally{c.value=!1,u.Close()}}),p=nt({loading:!1,members:[]}),c=y(!1),f=y("");return(()=>T(this,null,function*(){p.loading=!0,c.value=!0;try{const l=yield z.Raid.CreateList.GET();if(l!=null&&l.data){const{success:u,error:m,result:b}=l.data;if(b&&(p.members=b.members||[]),m)throw m}}catch(l){console.log(l)}finally{c.value=!1,p.loading=!1}}))(),(l,u)=>(i(),r("div",Ng,[t("div",qg,[t("span",null,"RAID - "+h(e.raid.name)+" \u6062\u590D",1)]),t("div",jg,[t("div",Rg,[Gg,t("div",Vg,[t("select",Ug,[t("option",null,h(e.raid.name)+"_"+h(e.raid.venderModel)+" ("+h(e.raid.path)+"\uFF0C"+h(e.raid.level)+"\uFF0C"+h(e.raid.size)+") ",1)])])]),t("div",Wg,[Zg,w(p).loading?(i(),r("div",Hg,Xg)):(i(),r("div",Kg,[w(p).members.length>0?(i(!0),r(L,{key:0},j(w(p).members,m=>(i(),r("label",null,[S(t("input",{type:"radio","onUpdate:modelValue":u[0]||(u[0]=b=>f.value=b),value:m.path},null,8,Qg),[[pt,f.value]]),U(" \u3010"+h(m.model)+"\u3011"+h(m.name)+" "+h(m.path)+" ["+h(m.sizeStr)+"] ",1)]))),256)):(i(),r("span",t_," \u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458... "))]))])]),t("div",e_,[t("div",{class:"close",onClick:o,disabled:c.value},"\u53D6\u6D88",8,a_),t("div",{class:"next",onClick:s,disabled:c.value},"\u4FDD\u5B58",8,o_)])]))}});var i_=Y(n_,[["__scopeId","data-v-5643983d"]]);const r_={class:"action-main"},s_=P({props:{Close:{type:Function,required:!0},setup:{type:String,default:"create"},raid:{type:Object},success:{type:Function}},setup(e){return(a,o)=>(i(),M(Q,{type:2},{default:q(()=>[t("div",r_,[e.setup=="create"?(i(),M(Kv,{key:0,Close:e.Close},null,8,["Close"])):e.setup=="info"&&e.raid!=null?(i(),M(og,{key:1,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):e.setup=="edit"&&e.raid!=null?(i(),M(yg,{key:2,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):e.setup=="remove"&&e.raid!=null?(i(),M(Og,{key:3,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):e.setup=="recover"&&e.raid!=null?(i(),M(i_,{key:4,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):$("",!0)])]),_:1}))}});var d_=Y(s_,[["__scopeId","data-v-6ef94d02"]]);const Zt=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X(d_,tt(W({},e),{Close:()=>{n()}}));o.use(Je),o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},oe=e=>(O("data-v-535a673b"),e=e(),N(),e),u_={id:"page"},l_=oe(()=>t("h2",{name:"content"}," RAID\u7BA1\u7406",-1)),c_=oe(()=>t("div",{class:"cbi-map-descr"},[t("p",null," 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 "),t("p",{style:{color:"#f5365b","margin-top":"10px"}}," * 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 "),t("p",{style:{color:"#f5365b","margin-top":"10px"}}," * \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)),p_={class:"btns"},f_=["disabled"],m_={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},b_={class:"table cbi-section-table"},v_={style:{}},g_=oe(()=>t("tr",{class:"tr cbi-section-table-titles anonymous"},[t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u540D\u79F0"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u8BBE\u5907"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u72B6\u6001"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u7EA7\u522B"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u5BB9\u91CF"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u6210\u5458"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u6302\u8F7D\u4FE1\u606F"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u64CD\u4F5C")],-1)),__={class:"tr cbi-section-table-row"},h_={class:"td cbi-value-field"},x_={class:"td cbi-value-field"},k_=["title"],w_={class:"item-status"},y_={key:0,class:"item-status item-status-detail"},F_={class:"td cbi-value-field"},E_={class:"td cbi-value-field"},C_={class:"td cbi-value-field"},$_=oe(()=>t("br",null,null,-1)),D_={class:"td cbi-value-field"},B_=oe(()=>t("br",null,null,-1)),Y_={key:1,href:"/cgi-bin/luci/admin/quickstart/"},A_={class:"td cbi-section-table-cell nowrap cbi-section-actions"},S_=["disabled","onClick"],z_=["disabled","onClick"],P_=["onClick"],T_=["onClick"],I_=["onClick"],L_=P({setup(e){const a=nt({disksList:[]}),o=()=>T(this,null,function*(){try{const v=yield z.Raid.List.GET();if(v!=null&&v.data){const{success:g,error:k,result:x}=v.data;if(x&&(a.disksList=x.disks||[]),k)throw k}}catch(v){console.log(v)}}),n=wt.easyInterval(o,5e3);we(()=>{n()});const s=v=>{switch(v.level){case"raid0":case"jbod":return!0}return v.status.indexOf("degraded")!=-1||v.status.indexOf("resyncing(")!=-1},p=v=>{let g=[];return v.childrens&&v.childrens.forEach(k=>{k.mountPoint&&g.push(`${k.name}(${k.mountPoint})`)}),g},c=()=>T(this,null,function*(){Zt({setup:"create",success:()=>{o()}})}),f=v=>{Zt({setup:"info",raid:v})},d=v=>T(this,null,function*(){if(v.childrens&&v.childrens.length>0&&v.childrens.filter(x=>x.mountPoint).length>0){re({content:"\u5220\u9664 RAID \u8BBE\u5907\u4E4B\u524D\u8BF7\u5148\u5378\u8F7D\u6587\u4EF6\u7CFB\u7EDF",nextTitle:"\u53BB\u5378\u8F7D",next:()=>{location.href="/cgi-bin/luci/admin/system/mounts"},clearTitle:"\u53D6\u6D88",clear:()=>{}});return}if(!confirm(`\u786E\u5B9A\u8981\u5220\u9664 ${v.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`)||!confirm(`\u786E\u5B9A\u8981\u5220\u9664 ${v.name} \u5417?`))return;const g=E.Loading("\u5220\u9664\u4E2D...");try{const k=yield z.Raid.Delete.POST({path:v.path,members:v.members});if(k.data){const{success:x,error:F}=k.data;if(F)throw F;(x||0)==0&&(E.Success("\u5220\u9664\u6210\u529F"),o())}}catch(k){E.Error(`${k}`)}finally{g.Close()}}),l=v=>{Zt({setup:"edit",raid:v,success:()=>{o()}})},u=v=>{Zt({setup:"remove",raid:v,success:()=>{o()}})},m=v=>{Zt({setup:"recover",raid:v,success:()=>{o()}})},b=y(!1),_=()=>{re({content:"\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:"\u786E\u5B9A",next:()=>T(this,null,function*(){b.value=!0;const v=E.Loading("\u626B\u63CF\u4E2D...");try{const g=yield z.Raid.Autofix.GET();if(g.data){const{error:k,success:x}=g.data;if(k)throw k;(x||0)==0&&(E.Success("\u6062\u590D\u5B8C\u6210"),o())}}catch(g){E.Error(`${g}`)}finally{v.Close(),b.value=!1}}),clearTitle:"\u53D6\u6D88",clear:()=>{}})};return(v,g)=>(i(),r("div",u_,[l_,c_,t("div",p_,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:g[0]||(g[0]=k=>c())},"\u521B\u5EFARAID"),t("button",{class:"btn cbi-button cbi-button-apply",onClick:g[1]||(g[1]=k=>_()),disabled:b.value},"\u626B\u63CF\u6062\u590DRAID",8,f_)]),t("div",null,[t("div",m_,[t("table",b_,[t("tbody",v_,[g_,(i(!0),r(L,null,j(w(a).disksList,k=>(i(),r("tr",__,[t("td",h_,[t("b",null,h(k.name),1)]),t("td",x_,[t("b",null,h(k.path),1)]),t("td",{class:"td cbi-value-field",title:k.status+(k.rebuildStatus||"")},[t("b",w_,h(k.status),1),k.rebuildStatus?(i(),r("b",y_," \u2026 ")):$("",!0)],8,k_),t("td",F_,[t("b",null,h(k.level),1)]),t("td",E_,[t("b",null,h(k.size),1)]),t("td",C_,[(i(!0),r(L,null,j(k.members,x=>(i(),r("b",null,[U(h(x)+" ",1),$_]))),256))]),t("td",D_,[p(k).length>0?(i(!0),r(L,{key:0},j(p(k),x=>(i(),r("b",null,[U(h(x)+" ",1),B_]))),256)):(i(),r("a",Y_,"\u53BB\u6302\u8F7D"))]),t("td",A_,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u6269\u5145",disabled:s(k),onClick:x=>l(k)},"\u6269\u5145",8,S_),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u79FB\u9664",disabled:s(k),onClick:x=>u(k)},"\u79FB\u9664",8,z_),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u6062\u590D",onClick:x=>m(k)},"\u6062\u590D",8,P_),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u8BE6\u60C5",onClick:x=>f(k)},"\u8BE6\u60C5",8,T_),t("button",{class:"cbi-button cbi-button-remove",title:"\u5982\u679C\u60A8\u5728RAID\u78C1\u76D8\u9635\u5217\u4E2D\u521B\u5EFA\u4E86\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u5148\u5378\u8F7D\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u540E\u5220\u9664\u6587\u4EF6\u7CFB\u7EDF\u5220\u9664\u64CD\u4F5C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u6570\u636E\u4E22\u5931\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002",onClick:x=>d(k)},"\u5220\u9664",8,I_)])]))),256))])])])])]))}});var M_=Y(L_,[["__scopeId","data-v-535a673b"]]);const ca=e=>(O("data-v-2bc40d1c"),e=e(),N(),e),O_={id:"page"},N_=ca(()=>t("h2",{name:"content"},"S.M.A.R.T.",-1)),q_=ca(()=>t("div",{class:"cbi-map-descr"},[t("p",null," 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 "),t("p",null," \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 "),t("p",null," \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 "),t("p",null," \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)),j_={class:"tabs"},R_=["href","onClick"],G_=P({setup(e){const a=[{to:"/smart",name:"\u5E38\u89C4\u8BBE\u7F6E"},{to:"/smart/task",name:"\u8BA1\u5212\u4EFB\u52A1"},{to:"/smart/log",name:"\u67E5\u770B\u65E5\u5FD7"}],o=y(!1),n=nt({global:{enable:!1,powermode:"never",tmpDiff:0,tmpMax:0},devices:[],tasks:[]}),s=f=>{const{global:d,devices:l,tasks:u}=f;d&&(n.global.enable=d.enable||!1,n.global.powermode=d.powermode||"never"),n.devices=l||[],n.tasks=u||[]};(()=>T(this,null,function*(){try{const f=yield z.Smart.Config.GET();if(f.data){const{result:d}=f.data;d&&s(d)}}catch(f){}finally{o.value=!0}}))();const c=f=>T(this,null,function*(){const d=E.Loading("\u4FDD\u5B58\u4E2D...");try{const l=yield z.Smart.Config.POST(f);if(l.data){console.log(l.data);const{success:u,error:m,result:b}=l.data;if(m)throw m;(u||0)==0&&(E.Success("\u4FDD\u5B58\u6210\u529F"),b&&s(b))}}catch(l){E.Error(`${l}`)}finally{d.Close()}});return(f,d)=>{const l=J("router-link"),u=J("router-view");return i(),r("div",O_,[N_,q_,t("ul",j_,[(i(),r(L,null,j(a,m=>A(l,{to:m.to,custom:"",key:m.to},{default:q(({route:b,href:_,navigate:v,isActive:g,isExactActive:k})=>[t("li",{class:st({"active cbi-tab":g&&k})},[t("a",{href:_,onClick:v},h(m.name),9,R_)],2)]),_:2},1032,["to"])),64))]),o.value?(i(),M(u,{key:0,name:"default"},{default:q(({Component:m,route:b})=>[(i(),M(Ba,null,{default:q(()=>[(i(),M(Ya(m),{key:b.path,config:w(n),saveData:c},null,8,["config"]))]),_:2},1024))]),_:1})):$("",!0)])}}});var V_=Y(G_,[["__scopeId","data-v-2bc40d1c"]]);const U_={class:"action-main"},W_=P({setup(e){return(a,o)=>(i(),M(Q,{type:2},{default:q(()=>[t("div",U_,[$t(a.$slots,"default",{},void 0,!0)])]),_:3}))}});var ge=Y(W_,[["__scopeId","data-v-742230ae"]]);const Z_={class:"actioner-container"},H_={class:"actioner-container_header"},J_={class:"actioner-container_body"},X_={class:"cbi-value"},K_=t("label",{class:"cbi-value-title"}," \u78C1\u76D8 ",-1),Q_={class:"cbi-value-field"},th={class:"cbi-value-description"},eh={class:"cbi-value"},ah=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09 ",-1),oh={class:"cbi-value-field"},nh={class:"cbi-checkbox"},ih=t("option",{value:-1},"\u4F7F\u7528\u5168\u5C40\u914D\u7F6E",-1),rh=t("option",{value:0},"\u7981\u7528",-1),sh=["value"],dh=t("div",{class:"cbi-value-description"}," \u81EA\u4E0A\u6B21\u62A5\u544A\u4EE5\u6765\u6E29\u5EA6\u53D8\u5316\u81F3\u5C11 N \u5EA6\uFF0C\u5219\u9700\u62A5\u544A. ",-1),uh={class:"cbi-value"},lh=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09 ",-1),ch={class:"cbi-value-field"},ph={class:"cbi-checkbox"},fh=t("option",{value:-1},"\u4F7F\u7528\u5168\u5C40\u914D\u7F6E",-1),mh=t("option",{value:0},"\u7981\u7528",-1),bh=["value"],vh=t("div",{class:"cbi-value-description"}," \u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A. ",-1),gh={class:"actioner-container_footer"},_h=["disabled"],hh=["disabled"],xh=P({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0},device:{type:Object},next:{type:Function,required:!0}},setup(e){var c,f,d;const a=e;console.log(a.device);const o=y(!1),n=nt({tmpDiff:((c=a.device)==null?void 0:c.tmpDiff)||0,tmpMax:((f=a.device)==null?void 0:f.tmpMax)||0,devicePath:((d=a.device)==null?void 0:d.devicePath)||""}),s=()=>{o.value=!0,a.close()},p=()=>T(this,null,function*(){o.value=!0;try{yield a.next({tmpDiff:n.tmpDiff,tmpMax:n.tmpMax,devicePath:n.devicePath}),o.value=!1,s()}catch(l){}});return(l,u)=>(i(),M(ge,null,{default:q(()=>[t("div",Z_,[t("div",H_,[t("span",null," S.M.A.R.T. \xBB \u8BBE\u5907 \xBB "+h(e.disk.path),1)]),t("div",J_,[t("div",X_,[K_,t("div",Q_,[t("div",th,h(e.disk.model)+" [ "+h(e.disk.path)+"\uFF0C"+h(e.disk.sizeStr)+" ] ",1)])]),t("div",eh,[ah,t("div",oh,[t("div",nh,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":u[0]||(u[0]=m=>w(n).tmpDiff=m)},[ih,rh,(i(),r(L,null,j(20,m=>t("option",{value:m},h(m)+"\xB0C",9,sh)),64))],512),[[Z,w(n).tmpDiff,void 0,{number:!0}]])]),dh])]),t("div",uh,[lh,t("div",ch,[t("div",ph,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":u[1]||(u[1]=m=>w(n).tmpMax=m)},[fh,mh,(i(),r(L,null,j(20,m=>t("option",{value:m*5},h(m*5)+"\xB0C",9,bh)),64))],512),[[Z,w(n).tmpMax,void 0,{number:!0}]])]),vh])])]),t("div",gh,[t("button",{class:"close",onClick:s,disabled:o.value},"\u53D6\u6D88",8,_h),t("button",{class:"next",onClick:p,disabled:o.value},"\u4FDD\u5B58",8,hh)])])]),_:1}))}}),kh={class:"actioner-container"},wh=t("div",{class:"actioner-container_header"},[t("span",null," \u521B\u5EFA\u8BA1\u5212\u4EFB\u52A1 ")],-1),yh={class:"actioner-container_body"},Fh={class:"cbi-value"},Eh=t("label",{class:"cbi-value-title"}," \u78C1\u76D8 ",-1),Ch={class:"cbi-value-field"},$h={class:"cbi-checkbox"},Dh=t("option",{value:""},"\u9009\u62E9\u78C1\u76D8",-1),Bh=["value"],Yh={class:"cbi-value"},Ah=t("label",{class:"cbi-value-title"}," \u7C7B\u578B ",-1),Sh={class:"cbi-value-field"},zh={class:"cbi-checkbox"},Ph=t("option",{value:"short"},"\u77ED\u6682\u81EA\u68C0",-1),Th=t("option",{value:"long"},"\u957F\u65F6\u81EA\u68C0",-1),Ih=t("option",{value:"conveyance"},"\u4F20\u8F93\u65F6\u81EA\u68C0",-1),Lh=t("option",{value:"offline"},"\u79BB\u7EBF\u65F6\u81EA\u68C0",-1),Mh=[Ph,Th,Ih,Lh],Oh={class:"cbi-value"},Nh=t("label",{class:"cbi-value-title"}," \u5C0F\u65F6 ",-1),qh={class:"cbi-value-field"},jh={class:"cbi-checkbox"},Rh=t("option",{value:"*"},"*",-1),Gh=["value"],Vh=t("div",{class:"cbi-value-description"}," * \u8868\u793A\u6BCF\u5C0F\u65F6 ",-1),Uh={class:"cbi-value"},Wh=t("label",{class:"cbi-value-title"}," \u5929 ",-1),Zh={class:"cbi-value-field"},Hh={class:"cbi-checkbox"},Jh=t("option",{value:"*"},"*",-1),Xh=["value"],Kh=t("div",{class:"cbi-value-description"}," * \u8868\u793A\u6BCF\u5929 ",-1),Qh={class:"cbi-value"},tx=t("label",{class:"cbi-value-title"}," \u6708 ",-1),ex={class:"cbi-value-field"},ax={class:"cbi-checkbox"},ox=t("option",{value:"*"},"*",-1),nx=["value"],ix=t("div",{class:"cbi-value-description"}," * \u8868\u793A\u6BCF\u6708 ",-1),rx={class:"actioner-container_footer"},sx=["disabled"],dx=["disabled"],ux=P({props:{close:{type:Function,required:!0},config:{type:Object,required:!0},next:{type:Function,required:!0}},setup(e){const a=e,o=y(!1),n=nt({type:"short",devicePath:"",month:"*",dayPerMonth:"*",hour:"*"}),s=y([]);(()=>T(this,null,function*(){try{const d=yield z.Smart.List.GET();if(d.data){const{result:l,error:u}=d.data;l&&l.disks&&(s.value=l.disks)}}catch(d){}}))();const c=()=>{o.value=!0,a.close()},f=()=>T(this,null,function*(){if(n.devicePath==""){E.Warning("\u8BF7\u9009\u62E9\u78C1\u76D8");return}o.value=!0;try{yield a.next(n),c()}catch(d){}finally{o.value=!1}});return(d,l)=>(i(),M(ge,null,{default:q(()=>[t("div",kh,[wh,t("div",yh,[t("div",Fh,[Eh,t("div",Ch,[t("div",$h,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":l[0]||(l[0]=u=>w(n).devicePath=u)},[Dh,(i(!0),r(L,null,j(s.value,u=>(i(),r("option",{value:u.path},h(u.model)+" [ "+h(u.path)+"\uFF0C"+h(u.sizeStr)+" ] ",9,Bh))),256))],512),[[Z,w(n).devicePath,void 0,{trim:!0}]])])])]),t("div",Yh,[Ah,t("div",Sh,[t("div",zh,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":l[1]||(l[1]=u=>w(n).type=u)},Mh,512),[[Z,w(n).type,void 0,{trim:!0}]])])])]),t("div",Oh,[Nh,t("div",qh,[t("div",jh,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":l[2]||(l[2]=u=>w(n).hour=u)},[Rh,(i(),r(L,null,j(24,(u,m)=>t("option",{value:`${m}`},h(m),9,Gh)),64))],512),[[Z,w(n).hour,void 0,{trim:!0}]])]),Vh])]),t("div",Uh,[Wh,t("div",Zh,[t("div",Hh,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":l[3]||(l[3]=u=>w(n).dayPerMonth=u)},[Jh,(i(),r(L,null,j(31,u=>t("option",{value:`${u}`},h(u),9,Xh)),64))],512),[[Z,w(n).dayPerMonth,void 0,{trim:!0}]])]),Kh])]),t("div",Qh,[tx,t("div",ex,[t("div",ax,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":l[4]||(l[4]=u=>w(n).month=u)},[ox,(i(),r(L,null,j(12,(u,m)=>t("option",{value:`${u}`},h(u),9,nx)),64))],512),[[Z,w(n).month,void 0,{trim:!0}]])]),ix])])]),t("div",rx,[t("button",{class:"close",onClick:c,disabled:o.value},"\u53D6\u6D88",8,sx),t("button",{class:"next",onClick:f,disabled:o.value},"\u4FDD\u5B58",8,dx)])])]),_:1}))}}),lx=e=>(O("data-v-3f7c551e"),e=e(),N(),e),cx={class:"actioner-container"},px=lx(()=>t("div",{class:"actioner-container_header"},[t("span",null," \u8FD0\u884C\u8C03\u8BD5 ")],-1)),fx={class:"actioner-container_body"},mx=["value"],bx={class:"actioner-container_footer"},vx=["disabled"],gx=["disabled"],_x=P({props:{close:{type:Function,required:!0},task:{type:Object,required:!0}},setup(e){const a=e,o=y(!1),n=y(""),s=y(""),p=y(""),c=()=>T(this,null,function*(){n.value+=".";try{const u=yield z.Smart.Test.Result.POST({type:"selftest",devicePath:a.task.devicePath||""});if(u.data){const{result:m,error:b}=u.data;m&&m.result&&(p.value=m.result),b&&(p.value=b)}}catch(u){u&&(p.value=u)}}),f=wt.easyInterval(c,5e3);we(()=>{f()});const d=()=>{o.value=!0,f(),a.close()},l=()=>T(this,null,function*(){o.value=!0;try{const u=yield z.Smart.Test.POST({type:a.task.type||"short",devicePath:a.task.devicePath||""});if(u.data){const{success:m,error:b,result:_}=u.data;b&&(s.value=b),_&&_.result&&(s.value=_.result)}}catch(u){s.value=u}finally{}});return(u,m)=>(i(),M(ge,null,{default:q(()=>[t("div",cx,[px,t("div",fx,[t("textarea",{value:s.value+`
|
|
`+p.value+`
|
|
`+n.value,disabled:""},null,8,mx)]),t("div",bx,[t("div",{class:"close",onClick:d,disabled:o.value},"\u5173\u95ED",8,vx),o.value?$("",!0):(i(),r("div",{key:0,class:"next",onClick:l,disabled:o.value},"\u8FD0\u884C",8,gx))])])]),_:1}))}});var hx=Y(_x,[["__scopeId","data-v-3f7c551e"]]);const Ot=e=>(O("data-v-7d3ebf99"),e=e(),N(),e),xx={class:"actioner-container"},kx={class:"actioner-container_header"},wx={class:"tabs"},yx=Ot(()=>t("a",null,"\u8BBE\u5907\u4FE1\u606F",-1)),Fx=[yx],Ex=Ot(()=>t("a",null,"\u5C5E\u6027",-1)),Cx=[Ex],$x=Ot(()=>t("a",null,"\u81EA\u68C0\u65E5\u5FD7",-1)),Dx=[$x],Bx=Ot(()=>t("a",null,"\u6269\u5C55\u4FE1\u606F",-1)),Yx=[Bx],Ax={class:"actioner-container_body"},Sx={key:0,class:"table"},zx={class:"tr"},Px=Ot(()=>t("td",{class:"td left"},"\u8BBE\u5907",-1)),Tx={class:"td left"},Ix={class:"tr"},Lx=Ot(()=>t("td",{class:"td left"},"\u578B\u53F7",-1)),Mx={class:"td left"},Ox={class:"tr"},Nx=Ot(()=>t("td",{class:"td left"},"\u5E8F\u53F7",-1)),qx={class:"td left"},jx=["value"],Rx=["value"],Gx=["value"],Vx={class:"actioner-container_footer"},Ux=["disabled"],Wx=P({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0}},setup(e){const a=e,o=y(!1),n=y("info"),s=u=>{switch(n.value=u,u){case"info":break;case"attribute":d();break;case"log":f();break;case"extend":l();break}},p=()=>{o.value=!0,a.close()},c=nt({log:"",attribute:"",extend:""}),f=()=>T(this,null,function*(){try{const u=yield z.Smart.Test.Result.POST({type:"selftest",devicePath:a.disk.path||""});if(u.data){const{result:m,error:b}=u.data;m&&m.result&&(c.log=m.result),b&&(c.log=b)}}catch(u){c.log=u}}),d=()=>T(this,null,function*(){try{const u=yield z.Smart.Attribute.Result.POST({devicePath:a.disk.path||""});if(u.data){const{result:m,error:b}=u.data;m&&m.result&&(c.attribute=m.result),b&&(c.attribute=b)}}catch(u){c.attribute=u}}),l=()=>T(this,null,function*(){try{const u=yield z.Smart.Extend.Result.POST({devicePath:a.disk.path||""});if(u.data){const{result:m,error:b}=u.data;m&&m.result&&(c.extend=m.result),b&&(c.extend=b)}}catch(u){c.extend=u}});return(u,m)=>(i(),M(ge,null,{default:q(()=>[t("div",xx,[t("div",kx,[t("ul",wx,[t("li",{class:st({"active cbi-tab":n.value=="info"}),onClick:m[0]||(m[0]=b=>s("info"))},Fx,2),t("li",{class:st({"active cbi-tab":n.value=="attribute"}),onClick:m[1]||(m[1]=b=>s("attribute"))},Cx,2),t("li",{class:st({"active cbi-tab":n.value=="log"}),onClick:m[2]||(m[2]=b=>s("log"))},Dx,2),t("li",{class:st({"active cbi-tab":n.value=="extend"}),onClick:m[3]||(m[3]=b=>s("extend"))},Yx,2)])]),t("div",Ax,[n.value=="info"?(i(),r("table",Sx,[t("tr",zx,[Px,t("td",Tx,h(e.disk.path),1)]),t("tr",Ix,[Lx,t("td",Mx,h(e.disk.model),1)]),t("tr",Ox,[Nx,t("td",qx,h(e.disk.serial),1)])])):n.value=="attribute"?(i(),r("textarea",{key:1,disabled:"",value:w(c).attribute},null,8,jx)):n.value=="log"?(i(),r("textarea",{key:2,disabled:"",value:w(c).log},null,8,Rx)):n.value=="extend"?(i(),r("textarea",{key:3,disabled:"",value:w(c).extend},null,8,Gx)):$("",!0)]),t("div",Vx,[t("div",{class:"close",onClick:p,disabled:o.value},"\u5173\u95ED",8,Ux)])])]),_:1}))}});var Zx=Y(Wx,[["__scopeId","data-v-7d3ebf99"]]);const Hx=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=A(xh,tt(W({},e),{close:()=>{n()}})),n=()=>{a.remove()};de(o,a)},Jx=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=A(ux,tt(W({},e),{close:()=>{n()}})),n=()=>{a.remove()};de(o,a)},Xx=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=A(hx,tt(W({},e),{close:()=>{n()}})),n=()=>{a.remove()};de(o,a)},Kx=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=A(Zx,tt(W({},e),{close:()=>{n()}})),n=()=>{a.remove()};de(o,a)},Qx={class:"cbi-section"},tk={class:"cbi-value"},ek=t("label",{class:"cbi-value-title"}," \u542F\u7528 ",-1),ak={class:"cbi-value-field"},ok={class:"cbi-checkbox"},nk=["value"],ik={class:"cbi-value"},rk=t("label",{class:"cbi-value-title"}," \u7535\u6E90\u6A21\u5F0F ",-1),sk={class:"cbi-value-field"},dk={class:"cbi-checkbox"},uk=t("option",{value:"never"},"\u6C38\u4E0D",-1),lk=t("option",{value:"sleep"},"\u7761\u7720",-1),ck=t("option",{value:"standby"},"\u5F85\u673A",-1),pk=t("option",{value:"idle"},"\u95F2\u7F6E",-1),fk=[uk,lk,ck,pk],mk=t("div",{class:"cbi-value-description"},[t("span",null," \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"),t("br"),t("span",null,".\u6C38\u8FDC-\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"),t("br"),t("span",null,".\u7761\u7720-\u5904\u4E8E\u7761\u7720\u6A21\u5F0F\u4E0B\u4E0D\u68C0\u67E5\u8BBE\u5907\u3002"),t("br"),t("span",null,".\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"),t("br"),t("span",null,".\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),bk={class:"cbi-value"},vk=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09 ",-1),gk={class:"cbi-value-field"},_k={class:"cbi-checkbox"},hk=t("option",{value:0},"\u7981\u7528",-1),xk=["value"],kk=t("div",{class:"cbi-value-description"}," \u81EA\u4E0A\u6B21\u62A5\u544A\u4EE5\u6765\u6E29\u5EA6\u53D8\u5316\u81F3\u5C11 N \u5EA6\uFF0C\u5219\u9700\u62A5\u544A. ",-1),wk={class:"cbi-value"},yk=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09 ",-1),Fk={class:"cbi-value-field"},Ek={class:"cbi-checkbox"},Ck=t("option",{value:0},"\u7981\u7528",-1),$k=["value"],Dk=t("div",{class:"cbi-value-description"}," \u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A. ",-1),Bk={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},Yk={class:"table cbi-section-table"},Ak=t("thead",null,[t("tr",{class:"tr cbi-section-table-titles anonymous"},[t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u8BBE\u5907"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u578B\u53F7"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u5E8F\u53F7"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u5BB9\u91CF"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u6E29\u5EA6"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u72B6\u6001"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u5065\u5EB7"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u64CD\u4F5C")])],-1),Sk={class:"tr cbi-section-table-row"},zk={class:"td cbi-value-field"},Pk={class:"td cbi-value-field"},Tk={class:"td cbi-value-field"},Ik={class:"td cbi-value-field"},Lk={class:"td cbi-value-field"},Mk={class:"td cbi-value-field"},Ok={class:"td cbi-value-field"},Nk={class:"td cbi-value-field"},qk=["onClick"],jk=["onClick"],Rk=P({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(e){const a=e,o=nt(a.config),n=()=>{o.global.tmpDiff=a.config.global.tmpDiff||0,o.global.tmpMax=a.config.global.tmpMax||0,o.global.enable=a.config.global.enable||!1,o.global.powermode=a.config.global.powermode||"never",o.devices=a.config.devices||[],o.tasks=a.config.tasks||[]},s=y([]),p=()=>T(this,null,function*(){try{const u=yield z.Smart.List.GET();if(u.data){const{result:m,error:b}=u.data;m&&m.disks&&(s.value=m.disks||[])}}catch(u){}}),c=wt.easyInterval(p,5e3);we(()=>{c()});const f=()=>T(this,null,function*(){yield a.saveData({global:o.global,devices:a.config.devices,tasks:a.config.tasks}),n()}),d=u=>{Kx({disk:u})},l=(u,m)=>T(this,null,function*(){let b=null,_=-1;if(o.devices){for(let v=0;v<o.devices.length;v++)if(o.devices[v].devicePath==u.path){b=o.devices[v],_=v;break}}Hx({disk:u,device:b,next:v=>T(this,null,function*(){v.tmpDiff==-1&&(v.tmpDiff=o.global.tmpDiff),v.tmpMax==-1&&(v.tmpMax=o.global.tmpMax),v.devicePath==""&&(v.devicePath=u.path);let g=[...o.devices];_>=0&&(g[_]=v);const k=new Map;g.forEach(x=>{x.devicePath!=null&&k.set(x.devicePath,null)});for(let x=0;x<s.value.length;x++){const F=s.value[x];F.path!=null&&!k.has(F.path)&&g.push({devicePath:F.path,tmpDiff:o.global.tmpDiff,tmpMax:o.global.tmpMax})}yield a.saveData({tasks:a.config.tasks,global:a.config.global,devices:g}),n()})})});return(u,m)=>(i(),r(L,null,[t("fieldset",Qx,[t("div",tk,[ek,t("div",ak,[t("div",ok,[S(t("input",{type:"checkbox","onUpdate:modelValue":m[0]||(m[0]=b=>w(o).global.enable=b),value:!w(o).global.enable},null,8,nk),[[Tt,w(o).global.enable]])])])]),t("div",ik,[rk,t("div",sk,[t("div",dk,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":m[1]||(m[1]=b=>w(o).global.powermode=b)},fk,512),[[Z,w(o).global.powermode,void 0,{trim:!0}]])]),mk])]),t("div",bk,[vk,t("div",gk,[t("div",_k,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":m[2]||(m[2]=b=>w(o).global.tmpDiff=b)},[hk,(i(),r(L,null,j(15,b=>t("option",{value:b},h(b)+"\xB0C",9,xk)),64))],512),[[Z,w(o).global.tmpDiff,void 0,{number:!0}]])]),kk])]),t("div",wk,[yk,t("div",Fk,[t("div",Ek,[S(t("select",{class:"cbi-input-select","onUpdate:modelValue":m[3]||(m[3]=b=>w(o).global.tmpMax=b)},[Ck,(i(),r(L,null,j(20,b=>t("option",{value:b*5},h(b*5)+"\xB0C",9,$k)),64))],512),[[Z,w(o).global.tmpMax,void 0,{number:!0}]])]),Dk])])]),t("div",Bk,[t("table",Yk,[Ak,t("tbody",null,[(i(!0),r(L,null,j(s.value,(b,_)=>(i(),r("tr",Sk,[t("td",zk,[t("b",null,h(b.path),1)]),t("td",Pk,[t("b",null,h(b.model),1)]),t("td",Tk,[t("b",null,h(b.serial),1)]),t("td",Ik,[t("b",null,h(b.sizeStr),1)]),t("td",Lk,[t("b",null,h(b.temp),1)]),t("td",Mk,[t("b",null,h(b.status),1)]),t("td",Ok,[t("b",null,h(b.health),1)]),t("td",Nk,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u7F16\u8F91",onClick:v=>l(b)},"\u7F16\u8F91",8,qk),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u8BE6\u60C5",onClick:v=>d(b)},"\u8BE6\u60C5",8,jk)])]))),256))])])]),t("span",{class:"cbi-page-actions control-group"},[t("input",{class:"btn cbi-button cbi-button-apply",type:"button",value:"\u4FDD\u5B58\u5E76\u5E94\u7528",onClick:f})])],64))}}),Gk={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},Vk={class:"table cbi-section-table"},Uk=t("thead",null,[t("tr",{class:"tr cbi-section-table-titles anonymous"},[t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u8BBE\u5907"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u7C7B\u578B"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u8C03\u5EA6"),t("th",{class:"th cbi-section-table-cell","data-widget":"value"},"\u529F\u80FD")])],-1),Wk={class:"tr cbi-section-table-row"},Zk={class:"td cbi-value-field"},Hk={class:"td cbi-value-field"},Jk={class:"td cbi-value-field"},Xk={class:"td cbi-value-field"},Kk=["onClick"],Qk=["onClick"],tw=P({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(e){const a=e,o=nt(a.config),n=f=>{switch(f){case"short":return"\u77ED\u6682\u81EA\u68C0";case"long":return"\u957F\u65F6\u81EA\u68C0";case"conveyance":return"\u4F20\u8F93\u65F6\u81EA\u68C0";case"offline":return"\u79BB\u7EBF\u65F6\u81EA\u68C0";default:return"\u672A\u77E5"}},s=()=>{Jx({config:a.config,disks:[],next:f=>T(this,null,function*(){yield a.saveData({tasks:[...o.tasks,f],global:a.config.global,devices:a.config.devices}),o.tasks=a.config.tasks||[]})})},p=f=>T(this,null,function*(){const d=[...o.tasks];d.splice(f,1),yield a.saveData({tasks:d,global:a.config.global,devices:a.config.devices}),o.tasks=a.config.tasks||[]}),c=f=>{Xx({task:f})};return(f,d)=>(i(),r(L,null,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:d[0]||(d[0]=l=>s())},"\u65B0\u5EFA"),t("div",Gk,[t("table",Vk,[Uk,t("tbody",null,[(i(!0),r(L,null,j(w(o).tasks,(l,u)=>(i(),r("tr",Wk,[t("td",Zk,[t("b",null,h(l.devicePath),1)]),t("td",Hk,[t("b",null,h(n(l.type)),1)]),t("td",Jk,[t("b",null,h(l.month)+"/"+h(l.dayPerMonth)+"/"+h(l.hour),1)]),t("td",Xk,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u8C03\u8BD5",onClick:m=>c(l)},"\u9884\u89C8",8,Kk),t("button",{class:"cbi-button cbi-button-remove",title:"\u5220\u9664",onClick:m=>p(u)},"\u5220\u9664",8,Qk)])]))),256))])])])],64))}}),ew={class:"cbi-section"},aw=["value"],ow=P({setup(e){return T(this,null,function*(){let a,o;const n=y(""),s=()=>T(this,null,function*(){try{const p=yield z.Smart.Log.GET();if(p.data){const{result:c,error:f}=p.data;c&&c.result&&(n.value=c.result),f&&(n.value=f)}}catch(p){n.value=p}});return[a,o]=Aa(()=>s()),yield a,o(),(p,c)=>(i(),r("fieldset",ew,[t("textarea",{value:n.value,disabled:""},null,8,aw)]))})}});var nw=Y(ow,[["__scopeId","data-v-76197cba"]]);const iw={},rw={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"},sw=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),dw=[sw];function uw(e,a){return i(),r("svg",rw,dw)}var Re=Y(iw,[["render",uw]]);const _e=e=>(O("data-v-2f7b866f"),e=e(),N(),e),lw=["onSubmit"],cw={class:"actioner-dns_header"},pw={key:0},fw={key:1},mw={class:"actioner-dns_body"},bw={class:"label-item"},vw=_e(()=>t("div",{class:"label-item_key"},[t("span",null,"\u540D\u79F0")],-1)),gw={class:"label-item_value"},_w={class:"label-item"},hw=_e(()=>t("div",{class:"label-item_key"},[t("span",null,"\u534F\u8BAE\uFF08\u7F51\u7EDC\u83B7\u53D6\u65B9\u5F0F\uFF09")],-1)),xw={class:"label-item_value"},kw=_e(()=>t("option",{value:"dhcp"},"DHCP\u5BA2\u6237\u7AEF",-1)),ww={key:0,value:"pppoe"},yw=_e(()=>t("option",{value:"static"},"\u9759\u6001\u5730\u5740",-1)),Fw={class:"actioner-dns_footer"},Ew=["disabled"],Cw=P({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(e){const a=e,o=y(!1),n=y(a.inface),s=()=>T(this,null,function*(){E.Loading("\u914D\u7F6E\u4E2D...").Close(),a.next(n.value),p()}),p=()=>{a.Close&&a.Close()};return(c,f)=>(i(),M(Q,{Close:e.Close,type:1},{default:q(()=>[t("form",{class:"actioner-dns",onSubmit:ot(s,["prevent"])},[t("div",cw,[e.name=="wan"?(i(),r("span",pw,h(e.e=="edit"?"\u7F16\u8F91WAN":"\u6DFB\u52A0WAN"),1)):(i(),r("span",fw,h(e.e=="edit"?"\u7F16\u8F91LAN":"\u6DFB\u52A0LAN"),1))]),t("div",mw,[t("div",bw,[vw,t("div",gw,[t("span",null,h(n.value.name.toLocaleUpperCase()),1)])]),t("div",_w,[hw,t("div",xw,[S(t("select",{"onUpdate:modelValue":f[0]||(f[0]=d=>n.value.proto=d)},[kw,e.name=="wan"?(i(),r("option",ww,"PPPoE")):$("",!0),yw],512),[[Z,n.value.proto]])])])]),t("div",Fw,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:o.value},"\u4FDD\u5B58",8,Ew),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:p},"\u53D6\u6D88")])],40,lw)]),_:1},8,["Close"]))}});var $w=Y(Cw,[["__scopeId","data-v-2f7b866f"]]);const Ge=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=X($w,tt(W({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()}},vt=e=>(O("data-v-589588f0"),e=e(),N(),e),Dw={id:"page"},Bw=vt(()=>t("h2",{name:"content"}," \u7F51\u53E3\u914D\u7F6E",-1)),Yw={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},Aw={class:"table cbi-section-table"},Sw={width:"200"},zw=vt(()=>t("col",null,null,-1)),Pw=vt(()=>t("col",null,null,-1)),Tw=vt(()=>t("col",{width:"200"},null,-1)),Iw={class:"tr cbi-section-table-cell"},Lw={class:"th cbi-section-table-cell interface-device","data-widget":"value"},Mw={class:"interface-device-flex"},Ow=vt(()=>t("th",{style:{width:"10px"}},null,-1)),Nw=vt(()=>t("th",{style:{width:"32px"}},null,-1)),qw=vt(()=>t("th",null,null,-1)),jw={class:"tr cbi-section-table-row cbi-rowstyle-1"},Rw={class:"td cbi-value-field interface-device info"},Gw=["name","value","onUpdate:modelValue","onInput"],Vw=vt(()=>t("td",{class:"td cbi-value-field"},null,-1)),Uw={class:"td cbi-value-field"},Ww={class:"td cbi-value-field btns"},Zw=["onClick"],Hw=["onClick"],Jw={class:"tr cbi-section-table-row cbi-rowstyle-1"},Xw={class:"td cbi-value-field"},Kw=vt(()=>t("td",{class:"td cbi-value-field"},null,-1)),Qw=vt(()=>t("td",{class:"td cbi-value-field"},null,-1)),ty={class:"tr cbi-section-table-row cbi-rowstyle-1"},ey={class:"td cbi-value-field interface-device info","data-widget":"value"},ay=["name","value","onUpdate:modelValue","onInput"],oy=vt(()=>t("td",{class:"td cbi-value-field"},null,-1)),ny={class:"td cbi-value-field"},iy={class:"td cbi-value-field btns"},ry=["onClick"],sy=["onClick"],dy={class:"tr cbi-section-table-row cbi-rowstyle-1"},uy={class:"td cbi-value-field"},ly=vt(()=>t("td",{class:"td cbi-value-field"},null,-1)),cy=vt(()=>t("td",{class:"td cbi-value-field"},null,-1)),py={class:"cbi-page-actions control-group"},fy=["disabled"],my=P({setup(e){const a=nt({devices:[],interfaces:[]}),o=y(!1),n=nt({lan:[],wan:[]});(()=>{z.Network.GetInterfaceConfig.GET().then(m=>{if(m.data){const{result:b}=m.data;if(b){a.devices=b.devices||[],a.interfaces=b.interfaces||[];for(let _=0;_<a.interfaces.length;_++)a.interfaces[_].firewallType=="wan"?n.wan.push(a.interfaces[_]):a.interfaces[_].firewallType=="lan"&&n.lan.push(a.interfaces[_])}}})})();const p=(m,b)=>{m=="wan"?n.wan.splice(b,1):m=="lan"&&n.lan.splice(b,1)},c=(m,b)=>{if(b==null){let _=m=="wan"?n.wan.length:n.lan.length;_==6&&m=="wan"&&_++,Ge({e:"add",name:m,inface:{name:m+`${_}`,proto:"dhcp",ipv4Addr:"",ipv6Addr:"",portName:"",deviceNames:[],ports:[],firewallType:m},next:v=>{m=="wan"?n.wan.push(v):n.lan.push(v),E.Message("\u8BF7\u5728\u4FDD\u5B58\u4EE5\u540E\u524D\u5F80'\u7F51\u7EDC-\u63A5\u53E3'\u9875\u9762\u914D\u7F6E\u63A5\u53E3\u8BE6\u7EC6\u53C2\u6570")}})}else Ge({e:"edit",name:m,inface:m=="wan"?n.wan[b]:n.lan[b],next:_=>{m=="wan"?n.wan[b]=_:n.lan[b]=_}})},f=(m,b)=>m?m.indexOf(b):-1,d=(m,b)=>{const v=m.target.value;for(let k=0;k<n.wan.length;k++){const x=f(n.wan[k].deviceNames,v);x!=-1&&n.wan[k].deviceNames.splice(x,1)}for(let k=0;k<n.lan.length;k++)if(k!=b){const x=f(n.lan[k].deviceNames,v);x!=-1&&n.lan[k].deviceNames.splice(x,1)}const g=f(n.lan[b].deviceNames,v);g!=-1?n.lan[b].deviceNames.splice(g,1):(n.lan[b].deviceNames===null&&(n.lan[b].deviceNames=[]),n.lan[b].deviceNames.push(v))},l=(m,b)=>{const v=m.target.value;for(let g=0;g<n.wan.length;g++)if(g!=b){const k=f(n.wan[g].deviceNames,v);k!=-1&&n.wan[g].deviceNames.splice(k,1)}for(let g=0;g<n.lan.length;g++){const k=f(n.lan[g].deviceNames,v);k!=-1&&n.lan[g].deviceNames.splice(k,1)}n.wan[b].deviceNames=[v]},u=()=>T(this,null,function*(){o.value=!0;const m=[];for(let _=0;_<n.wan.length;_++){const v=n.wan[_];m.push({name:v.name,proto:v.proto,devices:v.deviceNames||[],firewallType:v.firewallType})}for(let _=0;_<n.lan.length;_++){const v=n.lan[_];if(v.name==="lan"&&(!v.deviceNames||v.deviceNames.length==0)&&!confirm("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")){o.value=!1;return}m.push({name:v.name,proto:v.proto,devices:v.deviceNames||[],firewallType:v.firewallType})}const b=E.Loading("\u4FDD\u5B58\u4E2D...");try{const _=yield z.Network.POSTInterfaceConfig.POST({configs:m});if(_.data){const{success:v,result:g,error:k}=_.data;if(k)throw k;(v||0)==0&&E.Success("\u914D\u7F6E\u6210\u529F")}}catch(_){E.Error(`${_}`)}finally{b.Close(),o.value=!1}});return(m,b)=>(i(),r("div",Dw,[Bw,t("div",null,[t("div",Yw,[t("table",Aw,[t("colgroup",null,[(i(!0),r(L,null,j(w(a).devices,_=>(i(),r("col",Sw))),256)),zw,Pw,Tw]),t("thead",null,[t("tr",Iw,[(i(!0),r(L,null,j(w(a).devices,_=>(i(),r("th",Lw,[t("div",Mw,[A(Ke,{item:_},null,8,["item"])])]))),256)),Ow,Nw,qw])]),t("tbody",null,[(i(!0),r(L,null,j(w(n).lan,(_,v)=>(i(),r("tr",jw,[(i(!0),r(L,null,j(w(a).devices,g=>(i(),r("td",Rw,[S(t("input",{type:"checkbox",name:g.name,value:g.name,"onUpdate:modelValue":k=>_.deviceNames=k,onInput:k=>d(k,v)},null,40,Gw),[[Tt,_.deviceNames]])]))),256)),Vw,t("td",Uw,[t("b",null,h(_.name),1)]),t("td",Ww,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u7F16\u8F91",onClick:g=>c("lan",v)},"\u7F16\u8F91",8,Zw),v!=0?(i(),r("button",{key:0,class:"cbi-button cbi-button-remove",onClick:g=>p("lan",v)},"\u5220\u9664 ",8,Hw)):$("",!0)])]))),256)),t("tr",Jw,[(i(!0),r(L,null,j(w(a).devices,_=>(i(),r("td",Xw))),256)),Kw,Qw,t("td",{class:"td cbi-value-field btns",onClick:b[0]||(b[0]=_=>c("lan"))},[A(Re,{class:"icon"})])]),(i(!0),r(L,null,j(w(n).wan,(_,v)=>(i(),r("tr",ty,[(i(!0),r(L,null,j(w(a).devices,g=>(i(),r("td",ey,[S(t("input",{type:"checkbox",name:g.name,value:g.name,"onUpdate:modelValue":k=>_.deviceNames=k,onInput:k=>l(k,v)},null,40,ay),[[Tt,_.deviceNames]])]))),256)),oy,t("td",ny,[t("b",null,h(_.name),1)]),t("td",iy,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u7F16\u8F91",onClick:g=>c("wan",v)},"\u7F16\u8F91",8,ry),v!=0?(i(),r("button",{key:0,class:"cbi-button cbi-button-remove",onClick:g=>p("wan",v)},"\u5220\u9664",8,sy)):$("",!0)])]))),256)),t("tr",dy,[(i(!0),r(L,null,j(w(a).devices,_=>(i(),r("td",uy))),256)),ly,cy,t("td",{class:"td cbi-value-field btns",onClick:b[1]||(b[1]=_=>c("wan"))},[A(Re,{class:"icon"})])])])])]),t("div",py,[t("input",{class:"btn cbi-button cbi-button-apply",type:"button",value:"\u4FDD\u5B58\u5E76\u5E94\u7528",onClick:u,disabled:o.value},null,8,fy)])])]))}});var by=Y(my,[["__scopeId","data-v-589588f0"]]);const vy=()=>window.vue_base||"/cgi-bin/luci/admin/quickstart",pa=Sa({history:za(vy()),routes:[{name:"IndexPage",path:"/",meta:{title:"\u63A7\u5236\u53F0"},component:zm},{name:"NetworkPage",path:"/network",meta:{title:"\u7F51\u7EDC\u8BBE\u7F6E\u5411\u5BFC"},component:Im,children:[{path:"",component:h9},{path:"pppoe",component:W9},{path:"dhcp",component:Mb},{path:"gateway",component:xv}]},{name:"RaidPage",path:"/raid",meta:{title:"raid\u5411\u5BFC"},component:M_},{name:"SmartPage",path:"/smart",meta:{title:"smart\u68C0\u6D4B"},component:V_,children:[{path:"",component:Rk},{path:"task",component:tw},{path:"log",component:nw}]},{path:"/interfaceconfig",component:by}]});pa.beforeEach((e,a)=>(e.meta.title,!0));const ut=X(Xa);ut.component("svg-menu",no);ut.component("svg-system",co);ut.component("svg-download",go);ut.component("svg-store",Eo);ut.component("svg-info",Ao);ut.component("svg-disk",en);ut.component("svg-nav",dn);ut.component("progress-item",Ze);ut.component("svg-view-show",An);ut.component("svg-view-hidden",Ln);ut.component("article-item",Gn);ut.component("switch-box",He);ut.use(Je);ut.use(pa);ut.use(Pa());ut.mount("#app")});export default gy();
|