openwrt-packages/luci-app-quickstart/htdocs/luci-static/quickstart/index.js
2024-02-19 23:29:07 +08:00

4 lines
329 KiB
JavaScript

var ka=Object.defineProperty,xa=Object.defineProperties;var wa=Object.getOwnPropertyDescriptors;var Ge=Object.getOwnPropertySymbols;var ya=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable;var xe=(e,a,o)=>a in e?ka(e,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[a]=o,J=(e,a)=>{for(var o in a||(a={}))ya.call(a,o)&&xe(e,o,a[o]);if(Ge)for(var o of Ge(a))Fa.call(a,o)&&xe(e,o,a[o]);return e},at=(e,a)=>xa(e,wa(a));var Ea=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var Zt=(e,a,o)=>(xe(e,typeof a!="symbol"?a+"":a,o),o);var T=(e,a,o)=>new Promise((n,s)=>{var l=u=>{try{m(o.next(u))}catch(d){s(d)}},p=u=>{try{m(o.throw(u))}catch(d){s(d)}},m=u=>u.done?n(u.value):Promise.resolve(u.value).then(l,p);m((o=o.apply(e,a)).next())});import{d as Qt,a as P,c as R,u as w,o as i,b as r,e as t,t as h,n as Vt,f as E,r as X,g as D,h as ot,i as Dt,w as z,v as Tt,j as Ca,k as M,l as V,m as y,p as $a,q as Ft,s as Q,F as L,x as j,y as W,z as O,A as N,B as It,C as Da,D as Gt,E as Ba,G as Ya,H as Aa,I as Sa,J as za,K as Pa,L as Ta,M as nt,T as xt,N as tt,O as Ia,P as it,Q as wt,R as U,S as pt,U as te,V as Fe,W as La,X as Ma,Y as ue,Z as Oa,_ as Na,$ as qa,a0 as Va}from"./vendor.js?v=c0f4c287";var eF=Ea(Kt=>{const Ga=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 l of s)if(l.type==="childList")for(const p of l.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&n(p)}).observe(document,{childList:!0,subtree:!0});function o(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerpolicy&&(l.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?l.credentials="include":s.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(s){if(s.ep)return;s.ep=!0;const l=o(s);fetch(s.href,l)}};Ga();const ja=(e,a)=>T(Kt,null,function*(){return new Promise((o,n)=>T(Kt,null,function*(){try{const s=yield fetch(e,a);if(Math.floor(s.status/100)!=2)throw s.status+" "+s.statusText;const l=J({},s);l.data=yield s.json(),o(l)}catch(s){const l=s;n("\u7F51\u7EDC\u5F02\u5E38\uFF1A"+((l==null?void 0:l.message)||s))}}))});class Ee{constructor(a){Zt(this,"config",{baseURL:"",headers:{}});Zt(this,"useRequest",a=>a);Zt(this,"useResponse",a=>a);Zt(this,"useError",a=>a);a.baseURL&&(this.config.baseURL=a.baseURL),a.headers&&(this.config.headers=a.headers)}static create(a){return new Ee(a)}Do(a,o){return T(this,null,function*(){return new Promise((n,s)=>T(this,null,function*(){try{const l=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});a=`${l.baseURL||""}${a}`,o.headers==null&&(o.headers={}),l.headers&&(o.headers=J({},l.headers));const m=yield fetch(a,o),u=J({},m);u.data=yield m.json(),n(this.useResponse(u))}catch(l){this.useError(l),s(l)}}))})}TEXT(a,o){return T(this,null,function*(){return new Promise((n,s)=>T(this,null,function*(){try{const l=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});a=`${l.baseURL||""}${a}`,o.headers==null&&(o.headers={}),l.headers&&(o.headers=J({},l.headers));const m=yield fetch(a,o),u=J({},m);u.data=yield m.text(),n(u)}catch(l){this.useError(l),s(l)}}))})}interceptors(){const a=this;return{requset:{use(o){a.useRequest=o}},response:{use(o,n){a.useResponse=o,n&&(a.useError=n)}}}}}const Xe=Ee.create({});Xe.interceptors().requset.use(e=>e);Xe.interceptors().response.use(e=>(e.data&&e.data.success==null&&e.data.success==0,e));const Ra="/cgi-bin/luci/istore";let je=!1;const I=(e,a)=>(e.indexOf("//")==-1&&(e=`${Ra}${e}`),ja(e,a).then(o=>(o!=null&&o.data&&o.data.success==-1001&&o.data.error=="Forbidden"&&(je||(je=!0,alert("\u767B\u5F55\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),location.reload())),o))),Ua={Statistics:{GET(){return I("/u/network/statistics/",{method:"GET"})}},Status:{GET(){return I("/u/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"}})}}},Wa={Version:{GET(){return I("/u/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"})}}},Ha={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("/u/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("/u/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("/u/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"}})}}},Za={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("/u/guide/ddns/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GetDdns:{GET(){return I("/u/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)})}}},Xa={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"})}}},Ka={Log:{GET(){return I("/smart/log/",{method:"GET"})}},List:{GET(){return I("/u/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("/u/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 Qa=Object.freeze(Object.defineProperty({__proto__:null,Network:Ua,System:Wa,Nas:Ha,App:Za,Guide:Ja,Raid:Xa,Smart:Ka},Symbol.toStringTag,{value:"Module"})),S=J({},Qa);const Ke=Qt("app",{state:()=>({portitemStyle:{show:!1,left:0,top:0,portitem:{name:"",macAddress:"",linkSpeed:"",linkState:"",rx_packets:"",tx_packets:"",interfaceNames:[],master:"",duplex:""}}})});Qt("guide",{});const Qe=Qt("nas",{state:()=>({webdav:{}})}),ce=Qt("network",{state:()=>({status:{},statistics:{},deviceList:{}}),getters:{},actions:{updateNetworkStatus(e){this.status=e},requestNetworkStatistics(){return T(this,null,function*(){try{const e=yield S.Network.Statistics.GET();e!=null&&e.data&&e.data.result&&(this.statistics=e.data.result)}catch(e){console.log(e)}})},requestDeviceList(){S.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++}}}),Ce=Qt("system",{state:()=>({version:{},checkUpdate:null,systemStatus:{}}),getters:{},actions:{incrTime(){var e;(e=this.systemStatus)!=null&&e.uptime&&this.systemStatus.uptime++},requestVersion(){S.System.Version.GET().then(e=>{var a;(a=e==null?void 0:e.data)!=null&&a.result&&(this.version=e.data.result)})},requestCheckUpdate(){S.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 Re=!1;const to=()=>{if(Re)return;Re=!0;let e=!0,a=!0;const o=ce(),n=Ce(),s=function(){return S.System.Status.GET().then(p=>{p!=null&&p.data.result&&n.updateSystemStatus(p.data.result)}).finally(()=>{setTimeout(s,5e3),e&&(setInterval(()=>{n.incrTime()},1e3),e=!1)})},l=function(){return S.Network.Status.GET().then(p=>{if(p!=null&&p.data){const{result:m}=p==null?void 0:p.data;m&&o.updateNetworkStatus(m)}}).finally(()=>{setTimeout(l,5e3),a&&(setInterval(()=>{o.incrTime()},1e3),a=!1)})};l(),o.requestDeviceList(),setTimeout(()=>{n.requestCheckUpdate(),n.requestVersion(),s()},1100)};var Y=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o};const eo=P({setup(e){const a=Ke(),o=R(()=>a.portitemStyle.portitem),n=R(()=>a.portitemStyle.show),s=R(()=>({bottom:`calc(100% - ${a.portitemStyle.top}px)`,left:`${a.portitemStyle.left}px`})),l=u=>{switch(u){case"full":return"\u5168\u53CC\u5DE5";case"half":return"\u534A\u53CC\u5DE5"}},p=u=>{a.portitemStyle.show=!0},m=u=>{a.portitemStyle.show=!1};return(u,d)=>w(n)?(i(),r("div",{key:0,class:"disk-item-tooltip",style:Vt(w(s)),onMouseenter:p,onMouseleave:m},[t("div",null,h(l(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)):E("",!0)}});var ao=Y(eo,[["__scopeId","data-v-57f1326f"]]);const oo={id:"main"},no=P({setup(e){return(a,o)=>{const n=X("router-view");return i(),r("div",oo,[D(n),D(ao)])}}});var io=Y(no,[["__scopeId","data-v-9bc295c2"]]);const ro={},so={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"},uo=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),co=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),lo=[uo,co];function po(e,a){return i(),r("svg",so,lo)}var fo=Y(ro,[["render",po]]);const mo={},vo={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"},bo=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),go=[bo];function _o(e,a){return i(),r("svg",vo,go)}var ho=Y(mo,[["render",_o]]);const ko={},xo={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"},wo=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),yo=[wo];function Fo(e,a){return i(),r("svg",xo,yo)}var Eo=Y(ko,[["render",Fo]]);const Co={},$o={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"},Do=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),Bo=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),Yo=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),Ao=[Do,Bo,Yo];function So(e,a){return i(),r("svg",$o,Ao)}var zo=Y(Co,[["render",So]]);const Po={},To={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"},Io=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),Lo=[Io];function Mo(e,a){return i(),r("svg",To,Lo)}var Oo=Y(Po,[["render",Mo]]);const No={},qo={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"},Vo=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),Go=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),jo=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),Ro=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),Uo=t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"80692"},null,-1),Wo=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),Ho=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),Zo=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),Xo=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),Ko=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),Qo=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),tn=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),en=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),an=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),on=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),nn=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),rn=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),sn=t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"80706"},null,-1),dn=[Vo,Go,jo,Ro,Uo,Wo,Ho,Zo,Jo,Xo,Ko,Qo,tn,en,an,on,nn,rn,sn];function un(e,a){return i(),r("svg",qo,dn)}var cn=Y(No,[["render",un]]);const ln={},pn={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"},fn=t("path",{d:"M894.185422 128.023792 129.814578 445.743994 445.99982 577.744353 571.860343 893.929596Z","p-id":"2997"},null,-1),mn=[fn];function vn(e,a){return i(),r("svg",pn,mn)}var bn=Y(ln,[["render",vn]]);const gn={class:"progress"},_n=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",gn,[t("div",{class:ot(["progress-value",`${e.value>50}`]),style:Vt({width:`${e.value}%`,backgroundColor:w(o)})},[t("span",null,h(e.text),1)],6),Dt(n.$slots,"default",{},void 0,!0)]))}});var ta=Y(_n,[["__scopeId","data-v-733828e1"]]);const hn={},kn={height:"32",width:"64",t:"1649907260906",viewBox:"-8 248 1045 537",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2793","xmlns:xlink":"http://www.w3.org/1999/xlink"},xn=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),wn=[xn];function yn(e,a){return i(),r("svg",kn,wn)}var Fn=Y(hn,[["render",yn]]);const En={},Cn={height:"32",width:"64",t:"1649907515643",viewBox:"-8 248 1045 537",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2971","xmlns:xlink":"http://www.w3.org/1999/xlink"},$n=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),Dn=[$n];function Bn(e,a){return i(),r("svg",Cn,Dn)}var Yn=Y(En,[["render",Bn]]);const An={class:"checkbox_switch"},Sn={class:"checkbox_switch_on"},zn={class:"checkbox_switch_off"},Pn=P({props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(e,{emit:a}){const o=e,n=R({get:()=>o.modelValue.valueOf(),set:s=>a("update:modelValue",s)});return(s,l)=>(i(),r("label",An,[z(t("input",{type:"checkbox","onUpdate:modelValue":l[0]||(l[0]=p=>Ca(n)?n.value=p:null)},null,512),[[Tt,w(n)]]),t("span",Sn,[D(Fn)]),t("span",zn,[D(Yn)]),Dt(s.$slots,"default",{},void 0,!0)]))}});var ea=Y(Pn,[["__scopeId","data-v-2c8b6a70"]]);const Tn={},In={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"},Ln=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),Mn=[Ln];function On(e,a){return i(),r("svg",In,Mn)}var Nn=Y(Tn,[["render",On]]);const qn={},Vn={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"},Gn=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),jn=[Gn];function Rn(e,a){return i(),r("svg",Vn,jn)}var Un=Y(qn,[["render",Rn]]);const Wn={};function Hn(e,a){return i(),r("article",null,[Dt(e.$slots,"default",{},void 0,!0)])}var Zn=Y(Wn,[["render",Hn],["__scopeId","data-v-bd286d4e"]]);const Jn={class:"cover"},Xn={class:"thumbnail"},Kn=P({emits:["click"],setup(e,{emit:a}){const o=()=>{a("click")};return(n,s)=>(i(),M(Zn,null,{default:V(()=>[t("a",{onClick:o},[t("div",Jn,[t("div",Xn,[Dt(n.$slots,"default",{},void 0,!0)])])])]),_:3}))}});var Qn=Y(Kn,[["__scopeId","data-v-123deb20"]]);const ti=e=>(O("data-v-169d5b59"),e=e(),N(),e),ei={class:"select-editable"},ai={selected:"",value:""},oi=["value"],ni=ti(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),ii=["placeholder"],ri=P({props:{modelValue:{type:String,required:!0},title:{type:String,default:""},options:{type:Array,default:[]}},emits:["update:modelValue"],setup(e,{emit:a}){const o=e,n=y(""),s=y(""),l=R({get:()=>o.modelValue.valueOf(),set:d=>a("update:modelValue",d)}),p=d=>{d===n.value||n.value==="useInput"&&d===s.value||(d===""||o.options.some(c=>c.key===d)?n.value=d:(s.value=d,n.value="useInput"))};$a(()=>o.modelValue,d=>{p(d)}),Ft(()=>{const d=l.value;p(d)});const m=d=>{n.value==="useInput"?l.value=s.value:l.value=n.value},u=d=>{l.value=s.value};return(d,c)=>(i(),r("label",null,[t("div",ei,[z(t("select",{"onUpdate:modelValue":c[0]||(c[0]=f=>n.value=f),autocomplete:"off",onChange:m},[t("option",ai,"\u8BF7\u9009\u62E9"+h(e.title),1),(i(!0),r(L,null,j(e.options,(f,v)=>(i(),r("option",{value:f.key,key:v},h(f.value||f.key),9,oi))),128)),ni],544),[[Q,n.value,void 0,{trim:!0}]]),n.value=="useInput"?z((i(),r("input",{key:0,type:"text","onUpdate:modelValue":c[1]||(c[1]=f=>s.value=f),required:"",placeholder:"\u8BF7\u8F93\u5165"+e.title,onChange:u},null,40,ii)),[[W,s.value,void 0,{trim:!0}]]):E("",!0)])]))}});var Pt=Y(ri,[["__scopeId","data-v-169d5b59"]]);const si={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"},di=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:"quick-loading",style:Vt({width:a(e.size),height:a(e.size)})},[(i(),r("svg",si,[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:Vt({fill:e.color})},null,4)]))],4))}});var ui=Y(di,[["__scopeId","data-v-0ec4e762"]]);const ci={},li={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":""},pi=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),fi=[pi];function mi(e,a){return i(),r("svg",li,fi)}var vi=Y(ci,[["render",mi]]);const bi={},gi={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"},_i=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),hi=[_i];function ki(e,a){return i(),r("svg",gi,hi)}var xi=Y(bi,[["render",ki]]);const wi=e=>(O("data-v-7fc1a08c"),e=e(),N(),e),yi=["href"],Fi=wi(()=>t("svg",{t:"1684144670421",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4343"},[t("path",{d:"M512 74.666667c241.066667 0 437.333333 196.266667 437.333333 437.333333S753.066667 949.333333 512 949.333333 74.666667 753.066667 74.666667 512 270.933333 74.666667 512 74.666667zM512 704c-23.466667 0-42.666667 19.2-42.666667 42.666667s19.2 42.666667 42.666667 42.666666 42.666667-19.2 42.666667-42.666666-19.2-42.666667-42.666667-42.666667z m0-458.666667c-76.8 0-138.666667 61.866667-138.666667 138.666667 0 17.066667 14.933333 32 32 32s32-14.933333 32-32c0-40.533333 34.133333-74.666667 74.666667-74.666667s74.666667 34.133333 74.666667 74.666667c0 2.133333 0 6.4-2.133334 10.666667-6.4 14.933333-19.2 32-40.533333 51.2-10.666667 10.666667-21.333333 19.2-34.133333 27.733333-2.133333 2.133333-6.4 4.266667-8.533334 6.4l-6.4 4.266667c-8.533333 6.4-14.933333 17.066667-14.933333 27.733333v108.8c2.133333 17.066667 14.933333 29.866667 32 29.866667h2.133333c17.066667-2.133333 29.866667-14.933333 29.866667-32v-89.6l12.8-10.666667c10.666667-8.533333 19.2-17.066667 29.866667-25.6 27.733333-25.6 46.933333-49.066667 57.6-74.666667 4.266667-10.666667 6.4-23.466667 6.4-34.133333 0-76.8-61.866667-138.666667-138.666667-138.666667z",fill:"#666666","p-id":"4344"})],-1)),Ei=[Fi],Ci=P({props:{type:null},setup(e){const a=e,o=R(()=>{switch(a.type){case"disk":return"https://www.linkease.com/rd/8myYAEVA/";case"store":return"https://www.linkease.com/rd/1F58VUTT/";case"docker":return"https://www.linkease.com/rd/2Q28MDtf/";case"download":return"https://www.linkease.com/rd/1tJo1KX-/";case"ddns":return"https://www.linkease.com/rd/3yFiX5-X/";case"network-interface":return"https://www.linkease.com/rd/3ca51a3G/"}});return(n,s)=>(i(),r("a",{href:w(o),target:"_blank",title:"\u8DF3\u8F6C\u6559\u7A0B"},Ei,8,yi))}});var $i=Y(Ci,[["__scopeId","data-v-7fc1a08c"]]),aa={install:e=>{e.component("icon-loading",ui),e.component("icon-success",vi),e.component("icon-error",xi),e.component("GlHelp",$i)}};const Di=e=>{},Bi=()=>new Date().getTime(),Yi=e=>{if(e<1e3)return`${e} B`;let o=1e3,n=0;for(let p=e/1e3;p>=1e3;p/=1e3)o*=1e3,n++;let s=[" KB"," MB"," GB"," TB"," PB"," EB"];return(e/100/(o/100)).toFixed(1)+s[n]},Ai=e=>{if(e==null)return 0;if(e<1e4)return e;let o=parseInt(`${e/1e4}`),n=e%1e4;return`${o}\u4E07${n}`},Si=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(l){}return""},zi=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),Ti=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",Ii=(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 Li=Object.freeze(Object.defineProperty({__proto__:null,formatDate:Di,UnixDate:Bi,byteToSize:Yi,numberToSum:Ai,dateForm:Si,stampForm:zi,checkIsIP:Pi,checkSmabaUserName:Ti,easyInterval:Ii},Symbol.toStringTag,{value:"Module"})),yt=J({},Li);const Mi=()=>{var a;const e=document.body.getAttribute("theme");if(e)switch(e){case"dark":case"light":return e}return(a=window.matchMedia("(prefers-color-scheme: dark)"))!=null&&a.matches?"dark":"light"},Oi=()=>Mi()=="dark",Ni={class:"flow"},qi={class:"flow-data"},Vi={key:0},Gi={key:1},ji=P({setup(e){Da([Ba,Ya,Aa,Sa,za,Pa]);const a=y(),o=g=>{var _;const b=(_=a.value)==null?void 0:_[g];return!b||b.startTime==0?"":u(b.startTime*1e3)+"-"+u(b.endTime*1e3)},n=R(()=>{var b;let g=[];return(b=a.value)==null||b.forEach(_=>{g.push({value:_.uploadSpeed})}),g}),s=R(()=>{var b;let g=[];return(b=a.value)==null||b.forEach(_=>{g.push({value:_.downloadSpeed})}),g}),l=R(()=>{var b;let g="";if(a.value){let _=((b=a.value)==null?void 0:b.length)||0;if(_>0){let x=a.value[_-1];g=d(x.uploadSpeed)+"/s"}}return g}),p=R(()=>{var b;let g="";if(a.value){let _=((b=a.value)==null?void 0:b.length)||0;if(_>0){let x=a.value[_-1];g=d(x.downloadSpeed)+"/s"}}return g});R(()=>{var b;let g=[];return(b=a.value)==null||b.forEach(_=>{g.push({value:_.downloadSpeed+_.uploadSpeed})}),g});const m=()=>T(this,null,function*(){var g;try{const b=yield S.Network.Statistics.GET();if(b.data&&(g=b.data.result)!=null&&g.items){const _=b.data.result.slots||10;if(b.data.result.items.length<_){let x=b.data.result.items;for(;x.length<_;)x=[{downloadSpeed:0,endTime:0,startTime:0,uploadSpeed:0}].concat(x);a.value=x}else b.data.result.items.length>_?a.value=b.data.result.items.slice(_-b.data.result.items.length):a.value=b.data.result.items}}catch(b){console.log(b)}}),u=yt.dateForm,d=yt.byteToSize,c=y();let f=null;const v=g=>{const b=Oi();return f=Ta(g,b?"dark":"light"),f.setOption({animation:!1,backgroundColor:b?"#88888822":"#fff",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:_=>{if(Array.isArray(_)){let x="";_.length>0&&(x=o(_[0].axisValue));for(let k=0;k<_.length;k++)x=`${x}<br>${_[k].seriesName}: ${d(_[k].value)}/s`;return x.toString()}else{const x=_;return`${o(x.axisValue)}<br>${x.seriesName}: ${d(x.value)}/s`}}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{color:["#999"]},show:!1},name:"",show:!1,nameGap:0,nameTextStyle:{height:0,lineHeight:0,padding:0}},title:{text:"\u6D41\u91CF\u7EDF\u8BA1",textStyle:{fontSize:12,color:b?"#cccccc":"rgba(0, 0, 0, 0.6)"},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(_,x){return`${d(_)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:"\u4E0B\u8F7D",data:s.value,type:"line",symbol:"none",showSymbol:!1,symbolSize:0,smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(32, 199, 247, 1)"},{offset:1,color:"rgba(32, 199, 247, 0.1)"}],global:!1}}},{name:"\u4E0A\u4F20",data:n.value,type:"line",symbol:"none",showSymbol:!1,symbolSize:0,smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(85, 58, 254, 1)"},{offset:1,color:"rgba(85, 58, 254, 0.1)"}],global:!1}}}],legend:{padding:0,align:"right",top:"10px",data:[{name:"\u4E0A\u4F20",itemStyle:{color:"rgb(85, 58, 254)"}},{name:"\u4E0B\u8F7D",itemStyle:{color:"rgb(32, 199, 247)"}}],textStyle:{color:b?"#cccccc":"rgba(0, 0, 0, 0.6)"},lineStyle:{color:"#333"}},grid:{left:"2%",right:"2%",bottom:"0%",top:"10%",containLabel:!0}}),f};return Ft(()=>{setTimeout(()=>T(this,null,function*(){if(c.value){yield m();const g=v(c.value),b=c.value;g.resize({width:b.clientWidth,height:b.clientHeight}),window.addEventListener("resize",()=>{g.resize({width:b.clientWidth,height:b.clientHeight})});const _=()=>T(this,null,function*(){f!=null&&(yield m(),f!=null&&(g.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(_,5e3)))});setTimeout(_,5e3)}}),900)}),Gt(()=>{f!=null&&(f.dispose(),f=null)}),(g,b)=>(i(),r("div",Ni,[t("div",{ref_key:"el",ref:c,class:"echart"},null,512),t("div",qi,[w(l)?(i(),r("span",Vi,"\u4E0A\u4F20: "+h(w(l)),1)):E("",!0),w(p)?(i(),r("span",Gi,"\u4E0B\u8F7D: "+h(w(p)),1)):E("",!0)])]))}});var Ri=Y(ji,[["__scopeId","data-v-680b6286"]]);const Ui={},Wi={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"},Hi=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),Zi=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),Ji=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),Xi=[Hi,Zi,Ji];function Ki(e,a){return i(),r("svg",Wi,Xi)}var $t=Y(Ui,[["render",Ki]]);let se=0;const Qi={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,se=window.setTimeout(e,1e3))};se=window.setTimeout(e,1e3)}},computed:{Message(){return this.message+(this.countdown?" "+this.remain+"s":"")}},methods:{Stop(){this.type!="loading"&&(this.show=!1,se!=0&&clearTimeout(se),this.Close())}}},le=e=>(O("data-v-6935a479"),e=e(),N(),e),tr={key:0,class:"loading icon"},er=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)),ar=[er],or={key:1,class:"success icon"},nr=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)),ir=[nr],rr={key:2,class:"error icon"},sr=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)),dr=[sr],ur={key:3,class:"warning icon"},cr=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)),lr=[cr];function pr(e,a,o,n,s,l){return i(),M(xt,{name:"el-fade-in-linear"},{default:V(()=>[s.show?(i(),r("div",{key:0,class:"toast",onClick:a[1]||(a[1]=p=>l.Stop())},[o.type=="loading"?(i(),r("div",tr,ar)):o.type=="success"?(i(),r("div",or,ir)):o.type=="error"?(i(),r("div",rr,dr)):o.type=="warning"?(i(),r("div",ur,lr)):E("",!0),t("div",{class:"message",onClick:a[0]||(a[0]=nt(()=>{},["stop"]))},h(l.Message),1)])):E("",!0)]),_:1})}var fr=Y(Qi,[["render",pr],["__scopeId","data-v-6935a479"]]);const Xt=new Map,jt=e=>{const a=tt(fr,at(J({},e),{Close:()=>{n()}})),o=document.createElement("div");document.body.append(o),a.mount(o);const n=()=>{o.remove(),Xt.get(a._uid)&&Xt.delete(a._uid)};return e.type=="loading"&&Xt.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}},F=e=>jt(e);F.Loading=(e,a)=>jt({type:"loading",message:e||"\u52A0\u8F7D\u4E2D...",duration:0,countdown:a||0});F.Success=e=>jt({type:"success",message:e});F.Error=e=>jt({type:"error",message:e,duration:0});F.Warning=e=>jt({type:"warning",message:e});F.Message=e=>jt({message:e});F.Clear=()=>{Xt.forEach((e,a)=>{e.Close(),Xt.delete(a)})};const lt={installApp:(e,a)=>new Promise((o,n)=>{let s=0;S.App.Install.POST({name:e}).then(()=>{const l=setTimeout(()=>{s==0&&(s=1,o(!1))},(a||60)*1e3),p=()=>{s==0&&S.App.Check.POST({name:e}).then(m=>{if(s==0&&m!=null&&m.data){const{result:u}=m.data;if((u==null?void 0:u.status)=="installed"){clearTimeout(l),s=1,o(!0);return}}}).catch(m=>{}).finally(()=>{s==0&&setTimeout(p,3e3)})};setTimeout(p,3e3)}).catch(l=>{s==0&&(s=1,n("\u5B89\u88C5\u5931\u8D25\uFF0C"+l))})}),checkAndInstallApp:(e,a,o)=>T(Kt,null,function*(){let n=F.Loading("\u68C0\u67E5\u4E2D...");try{const s=yield S.App.Check.POST({name:e});if(n.Close(),s!=null&&s.data){const{result:l,error:p}=s.data;if(p)F.Warning(p);else if(l){if(l.status=="installed")return!0;if(confirm(`\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 ${a} \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F`)){n=F.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const m=yield lt.installApp(o||e);if(n.Close(),m)return!0;F.Error("\u5B89\u88C5\u5931\u8D25\u6216\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u8F6F\u4EF6\u6E90\u6216\u7A0D\u5019\u91CD\u8BD5")}}else F.Warning("\u68C0\u67E5\u63D2\u4EF6\u72B6\u6001\u5931\u8D25")}return!1}catch(s){return n.Close(),F.Warning(s),!1}}),installAndGo:(e,a,o,n)=>T(Kt,null,function*(){(yield lt.checkAndInstallApp(e,a,n))&&(location.href=o)})},mr={},vr={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"},br=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),gr=[br];function _r(e,a){return i(),r("svg",vr,gr)}var hr=Y(mr,[["render",_r]]);const kr=e=>(O("data-v-428d873e"),e=e(),N(),e),xr={id:"actioner"},wr={key:0,class:"action-container"},yr={class:"action-container_header"},Fr=kr(()=>t("div",null,null,-1)),Er={class:"title"},Cr={class:"action-container_body"},$r=P({props:{Close:{type:Function},type:{type:Number},title:String},setup(e){const a=e,o=y(!1);Ft(()=>{o.value=!0,document.body.setAttribute("lock-scroll","true")}),Gt(()=>{document.body.removeAttribute("lock-scroll")});const n=()=>{a.Close&&(o.value=!1,setTimeout(()=>{a.Close&&a.Close()},300))};return(s,l)=>(i(),r("div",xr,[t("div",{class:"bg",onClick:n}),e.type!=null?Dt(s.$slots,"default",{key:0},void 0,!0):(i(),r(L,{key:1},[o.value?(i(),r("div",wr,[t("div",yr,[Fr,t("div",Er,h(e.title),1),t("button",{class:"close",title:"\u5173\u95ED",onClick:n},[D(hr)])]),t("div",Cr,[Dt(s.$slots,"default",{},void 0,!0)])])):E("",!0)],64))]))}});var Dr=Y($r,[["__scopeId","data-v-428d873e"]]);const et=P({props:{Close:{type:Function},type:{type:Number},title:String},setup(e){return(a,o)=>(i(),M(Dr,{Close:e.Close,type:e.type,title:e.title},{default:V(()=>[Dt(a.$slots,"default")]),_:3},8,["Close","type","title"]))}}),Lt=e=>(O("data-v-2a4078c6"),e=e(),N(),e),Br=["onSubmit"],Yr=Lt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),Ar={class:"actioner-dns_body"},Sr={class:"label-item"},zr=Lt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u9009\u9879")],-1)),Pr={class:"label-item_value"},Tr=["disabled"],Ir=Lt(()=>t("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1)),Lr={class:"label-item"},Mr=Lt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1)),Or={class:"label-item_value"},Nr=["onUpdate:modelValue"],qr=Lt(()=>t("div",{class:"label-item_key"},"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740",-1)),Vr={class:"label-item_value"},Gr=["onUpdate:modelValue"],jr={key:1,class:"label-message"},Rr={class:"actioner-dns_footer"},Ur=["disabled"],Wr={key:1,class:"actioner-dns"},Hr=Lt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),Zr=Lt(()=>t("div",{class:"actioner-dns_body"},[t("div",{class:"config-message"},"DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")],-1)),Jr=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0),n=ce(),s=n.status,l=R(()=>n.status.proto!="static"),p=()=>{let g=s.dnsList||[];for(g=g.filter(b=>b);g.length<2;)g.push("");return g},m=y({interfaceName:s.defaultInterface||"",dnsProto:s.dnsProto||"manual",manualDnsIp:p()}),u=y(""),d=y(!1),c=()=>T(this,null,function*(){u.value="";let g={};switch(m.value.dnsProto){case"auto":break;case"manual":if(g.manualDnsIp=[],!m.value.manualDnsIp[0]){F.Error("\u81F3\u5C11\u9700\u8981\u586B\u5199\u4E00\u4E2ADNS");return}g.manualDnsIp=m.value.manualDnsIp.filter(_=>_);break}g.dnsProto=m.value.dnsProto,g.interfaceName=m.value.interfaceName;const b=F.Loading("\u914D\u7F6E\u4E2D...");try{const _=yield S.Guide.DnsConfig.POST(g);if(_!=null&&_.data){const{success:x,error:k}=_==null?void 0:_.data;k&&(u.value=k),(x==null||x==0)&&(F.Success("\u914D\u7F6E\u6210\u529F"),o.value=1)}}catch(_){u.value=_}b.Close()}),f=g=>{g.preventDefault(),a.Close&&a.Close()},v=g=>{location.reload()};return(g,b)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[o.value==0?(i(),r("form",{key:0,class:"actioner-dns",onSubmit:nt(c,["prevent"])},[Yr,t("div",Ar,[t("div",Sr,[zr,t("div",Pr,[z(t("select",{"onUpdate:modelValue":b[0]||(b[0]=_=>m.value.dnsProto=_)},[t("option",{value:"auto",disabled:!w(l)},"\u81EA\u52A8\u83B7\u53D6DNS",8,Tr),Ir],512),[[Q,m.value.dnsProto]])])]),m.value.dnsProto=="manual"?(i(!0),r(L,{key:0},j(m.value.manualDnsIp,(_,x)=>(i(),r("div",Lr,[x==0?(i(),r(L,{key:0},[Mr,t("div",Or,[z(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740",required:"","onUpdate:modelValue":k=>m.value.manualDnsIp[x]=k},null,8,Nr),[[W,m.value.manualDnsIp[x],void 0,{trim:!0}]])])],64)):(i(),r(L,{key:1},[qr,t("div",Vr,[z(t("input",{type:"text",placeholder:"\u5907\u7528DNS\u5730\u5740","onUpdate:modelValue":k=>m.value.manualDnsIp[x]=k},null,8,Gr),[[W,m.value.manualDnsIp[x],void 0,{trim:!0}]])])],64))]))),256)):E("",!0),u.value?(i(),r("div",jr,h(u.value),1)):E("",!0)]),t("div",Rr,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:d.value},"\u786E\u8BA4",8,Ur),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:f},"\u53D6\u6D88")])],40,Br)):o.value==1?(i(),r("div",Wr,[Hr,Zr,t("div",{class:"actioner-dns_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:v},"\u5B8C\u6210")])])):E("",!0)]),_:1},8,["Close"]))}});var Xr=Y(Jr,[["__scopeId","data-v-2a4078c6"]]);const oa=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=tt(Xr,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},pe=e=>(O("data-v-0ae97e7e"),e=e(),N(),e),Kr={class:"action"},Qr={class:"action-body"},ts=pe(()=>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)),es=pe(()=>t("h2",{class:"title"},"\u670D\u52A1\u5DF2\u542F\u52A8",-1)),as={class:"info"},os=pe(()=>t("span",null,"\u524D\u5F80",-1)),ns=["href"],is=pe(()=>t("span",null,"\u8FDB\u884C\u6D4B\u901F",-1)),rs=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,l)=>(i(),M(et,{type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>[t("div",Kr,[t("div",Qr,[ts,es,t("div",as,[os,t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,ns),is]),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 ss=Y(rs,[["__scopeId","data-v-0ae97e7e"]]),ds=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(ss,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const $e=e=>(O("data-v-342aaca4"),e=e(),N(),e),us=$e(()=>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)),cs={class:"app-container_status-label_text"},ls=$e(()=>t("div",{class:"text_status"},"\u5DF2\u65AD\u5F00",-1)),ps={class:"text_info"},fs=$e(()=>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)),ms={class:"app-container_status-label_text"},vs={class:"text_info"},bs=P({props:{item:{type:Object,required:!0},transform:{type:Number,default:0}},setup(e){const a=e,o=Ke(),n=y(null),s=p=>{const m=p.target,{left:u,top:d}=m.getBoundingClientRect();o.portitemStyle.show=!0,o.portitemStyle.left=u,o.portitemStyle.top=d,o.portitemStyle.portitem=a.item},l=p=>{o.portitemStyle.show=!1};return(p,m)=>(i(),r("div",{class:"app-container_status-label_bg",style:Vt(`transform: translateX(${e.transform}px);`),ref_key:"el",ref:n,onMouseenter:s,onMouseleave:l},[e.item.linkState=="DOWN"?(i(),r(L,{key:0},[us,t("div",cs,[ls,t("div",ps,h(e.item.name)+" "+h(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64)):(i(),r(L,{key:1},[fs,t("div",ms,[t("div",null,h(e.item.linkSpeed),1),t("div",vs,h(e.item.name)+" "+h(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64))],36))}});var na=Y(bs,[["__scopeId","data-v-342aaca4"]]);const ia=e=>(O("data-v-3470ca08"),e=e(),N(),e),gs=ia(()=>t("span",null,h("<"),-1)),_s=[gs],hs=ia(()=>t("span",null,h(">"),-1)),ks=[hs],xs=P({props:{portList:{type:Array,required:!0}},setup(e){const a=y(),o=y(0),n=y(0),s=y(0),l=y(!1),p=()=>{if(s.value>=0){s.value=0;return}s.value+=100},m=()=>{if(s.value<=0-o.value+n.value){s.value=0-o.value+n.value;return}s.value-=100};return Ft(()=>{Ia(()=>{a.value&&(o.value=a.value.scrollWidth,n.value=a.value.clientWidth,l.value=o.value>n.value)})}),(u,d)=>(i(),r("div",{class:"app-interfaces",ref_key:"el",ref:a},[l.value?(i(),r(L,{key:0},[t("a",{class:"btn-f",onClick:p},_s),t("a",{class:"btn-r",onClick:m},ks)],64)):E("",!0),(i(!0),r(L,null,j(e.portList,(c,f)=>(i(),M(na,{item:c,transform:s.value},null,8,["item","transform"]))),256))],512))}});var ws=Y(xs,[["__scopeId","data-v-3470ca08"]]);const ys={},Fs={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"},Es=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),Cs=[Es];function $s(e,a){return i(),r("svg",Fs,Cs)}var De=Y(ys,[["render",$s]]);const Rt=e=>(O("data-v-1e29113c"),e=e(),N(),e),Ds=["onSubmit"],Bs=Rt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),Ys={class:"actioner-dns_body"},As={class:"label-item"},Ss=Rt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5F53\u524D\u8F6F\u4EF6\u6E90")],-1)),zs={class:"label-item_value"},Ps={class:"item_info"},Ts={class:"label-item"},Is=Rt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5207\u6362\u8F6F\u4EF6\u6E90")],-1)),Ls={class:"label-item_value"},Ms=Rt(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u8F6F\u4EF6\u6E90",-1)),Os=["value"],Ns={class:"actioner-dns_footer"},qs=["disabled"],Vs={key:1,class:"actioner-dns"},Gs=Rt(()=>t("div",{class:"actioner-dns_header"},[t("span",{class:"softsource_tit"},"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),js={class:"actioner-dns_body"},Rs={class:"finished"},Us=Rt(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),Ws=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0),n=y(""),s=y(),l=y();(()=>{S.Guide.SoftSourceList.GET().then(c=>{var f,v;if((f=c==null?void 0:c.data)!=null&&f.result){const g=(v=c==null?void 0:c.data)==null?void 0:v.result;l.value=g}}).then(()=>S.Guide.GetSoftSource.GET()).then(c=>{var f,v;if((f=c==null?void 0:c.data)!=null&&f.result){const g=c.data.result;s.value=g.softSource,(v=l.value)!=null&&v.softSourceList.find(b=>b.identity==g.softSource.identity)&&(n.value=g.softSource.identity)}})})();const m=c=>{c.preventDefault(),a.Close&&a.Close()},u=c=>{const f=F.Loading("\u6B63\u5728\u5207\u6362\u4E2D...");S.Guide.SoftSource.POST({softSourceIdentity:n.value}).then(v=>{if(v!=null&&v.data){if((v.data.success||0)==0){o.value=1;return}else if(v.data.error)throw v.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(v=>{F.Error(v)}).finally(()=>f.Close())},d=c=>{c.preventDefault(),location.reload()};return(c,f)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>{var v,g;return[o.value==0?(i(),r("form",{key:0,class:"actioner-dns",onSubmit:nt(u,["prevent"])},[Bs,t("div",Ys,[t("div",As,[Ss,t("div",zs,[t("p",Ps,h((v=s.value)==null?void 0:v.name),1)])]),t("div",Ts,[Is,t("div",Ls,[z(t("select",{name:"",id:"","onUpdate:modelValue":f[0]||(f[0]=b=>n.value=b)},[Ms,(i(!0),r(L,null,j((g=l.value)==null?void 0:g.softSourceList,(b,_)=>(i(),r("option",{value:b.identity,key:_},h(b.name),9,Os))),128))],512),[[Q,n.value,void 0,{trim:!0}]])])])]),t("div",Ns,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:n.value==""},"\u786E\u8BA4",8,qs),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:m},"\u53D6\u6D88")])],40,Ds)):E("",!0),o.value==1?(i(),r("form",Vs,[Gs,t("div",js,[t("div",Rs,[D(De)]),Us,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply softsource_successed",onClick:d},"\u786E\u5B9A")])])])):E("",!0)]}),_:1},8,["Close"]))}});var Hs=Y(Ws,[["__scopeId","data-v-1e29113c"]]);const ra=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=tt(Hs,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},ct=e=>(O("data-v-f1addc4c"),e=e(),N(),e),Zs={class:"app-container_status-label"},Js={class:"app-container_status-label_item",style:{"padding-right":"10px"}},Xs={class:"app-container_status-container",style:{height:"100%"}},Ks={key:0,class:"app-container_status-container_body"},Qs=ct(()=>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)),td={class:"app-container_status-info"},ed=ct(()=>t("span",{class:"container_success"},"\u5DF2\u8054\u7F51",-1)),ad={class:"container_time"},od={key:1,class:"app-container_status-container_body"},nd=ct(()=>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)),id={class:"app-container_status-info"},rd=ct(()=>t("span",{class:"container_failure"},"DNS\u9519\u8BEF",-1)),sd={class:"container_time"},dd={key:2,class:"app-container_status-container_body"},ud=ct(()=>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)),cd={class:"app-container_status-info"},ld=ct(()=>t("span",{class:"container_failure"},"\u8F6F\u4EF6\u6E90\u9519\u8BEF",-1)),pd={class:"container_time"},fd={key:3,class:"app-container_status-container_body"},md=ct(()=>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)),vd={class:"app-container_status-info"},bd=ct(()=>t("span",{class:"container_failure"},"\u672A\u8054\u7F51",-1)),gd={class:"container_time"},_d={key:4,class:"app-container_status-container_body"},hd=ct(()=>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)),kd=ct(()=>t("div",{class:"app-container_status-info"},[t("span",{class:"container_failure"},"\u68C0\u6D4B\u4E2D...")],-1)),xd=[hd,kd],wd={class:"app-container_status-label_item",style:{"padding-left":"10px"}},yd={class:"app-container_status-container",style:{height:"100%"}},Fd={class:"more_icon",title:"\u67E5\u770B\u8BBE\u5907\u4FE1\u606F"},Ed={class:"DeviceBlock"},Cd=ct(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/status/routes"},"\u8BBE\u5907\u8DEF\u7531")],-1)),$d={class:"app-container_status-container_body"},Dd=ct(()=>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)),Bd={class:"app-container_status-info"},Yd={class:"container_content"},Ad=ct(()=>t("span",{class:"devise"},"\u5DF2\u8FDE\u63A5\u8BBE\u5907",-1)),Sd=ct(()=>t("em",null,null,-1)),zd={class:"app-container_status-container"},Pd={class:"more_icon",title:"\u6D4B\u901F"},Td={class:"DeviceBlock"},Id={class:"app-container_title"},Ld={class:"app-container_status-label_block"},Md={class:"app-container_status-label_block"},Od={class:"app-container_title"},Nd={class:"app-container_status-label_block"},qd=ct(()=>t("em",null,null,-1)),Vd={class:"app-container_status-container"},Gd={class:"app-container_title"},jd=ct(()=>t("span",null,"\u7F51\u7EDC\u63A5\u53E3\u72B6\u6001",-1)),Rd={class:"more_icon",title:"\u67E5\u770B\u7F51\u7EDC\u63A5\u53E3\u4FE1\u606F"},Ud={class:"DeviceBlock"},Wd=U("\u7F51\u53E3\u914D\u7F6E"),Hd={class:"app-container_body"},Zd=P({props:{homebox:{type:Object}},setup(e){const a=()=>{oa()},o=()=>{ra()},n=ce(),s=R(()=>n.status),l=R(()=>n.deviceList),p=y(!1),m=y(!1),u=y(!1),d=it({portList:[],load:!1}),c=$=>{switch($){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}return $&&$.toUpperCase()},f=$=>{switch($){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},v=()=>{S.Network.PortList.GET().then($=>{if($!=null&&$.data){const{result:q}=$==null?void 0:$.data;q&&(d.portList=q.ports||[])}}).finally(()=>{d.load=!0,g()})},g=()=>{setTimeout(()=>{v()},1e4)};v();const b=yt.stampForm,_=()=>{p.value=!p.value},x=()=>{m.value=!m.value},k=()=>{u.value=!u.value},C=()=>{_(),lt.installAndGo("app-meta-nlbwmon","\u5E26\u5BBD\u76D1\u63A7","/cgi-bin/luci/admin/services/nlbw")},A=()=>T(this,null,function*(){var $,q,H;if(x(),yield lt.checkAndInstallApp("app-meta-homebox","Homebox"))try{const G=yield S.Network.Homebox.Enable.POST();(q=($=G==null?void 0:G.data)==null?void 0:$.result)!=null&&q.port?ds({port:G.data.result.port,setup:0}):((H=G==null?void 0:G.data)==null?void 0:H.success)==0?location.href="/cgi-bin/luci/admin/services/homebox":F.Warning("\u542F\u52A8\u5931\u8D25")}catch(G){F.Warning("\u542F\u52A8\u5931\u8D25")}}),B=()=>{x(),lt.installAndGo("app-meta-systools","SysTools","/cgi-bin/luci/admin/system/systools/pages")};return($,q)=>{var G,Z;const H=X("router-link");return i(),r(L,null,[t("div",Zs,[t("div",Js,[t("div",Xs,[w(s)!=null?(i(),r(L,{key:0},[w(s).networkInfo=="netSuccess"?(i(),r("div",Ks,[Qs,t("div",td,[ed,t("span",ad,h(w(b)(w(s).uptimeStamp)),1)])])):w(s).networkInfo=="dnsFailed"?(i(),r("div",od,[nd,t("div",id,[rd,t("span",sd,h(w(b)(w(s).uptimeStamp)),1),t("div",{onClick:a,class:"container_configure"},"DNS\u914D\u7F6E")])])):w(s).networkInfo=="softSourceFailed"?(i(),r("div",dd,[ud,t("div",cd,[ld,t("span",pd,h(w(b)(w(s).uptimeStamp)),1),t("div",{onClick:o,class:"container_configure"},"\u8F6F\u4EF6\u6E90\u914D\u7F6E")])])):w(s).networkInfo=="netFailed"?(i(),r("div",fd,[md,t("div",vd,[bd,t("span",gd,h(w(b)(w(s).uptimeStamp)),1)])])):(i(),r("div",_d,xd))],64)):E("",!0)])]),t("div",wd,[t("div",yd,[t("span",Fd,[D($t,{onClick:_})]),z(t("div",Ed,[t("div",{class:"menu_background",onClick:_}),t("ul",null,[Cd,t("li",null,[t("a",{onClick:C},"\u5E26\u5BBD\u76D1\u63A7")])])],512),[[wt,p.value]]),t("div",$d,[Dd,t("div",Bd,[t("span",Yd,h(((Z=(G=w(l))==null?void 0:G.devices)==null?void 0:Z.length)||0),1),Ad])])])])]),Sd,t("div",zd,[t("span",Pd,[D($t,{onClick:x})]),z(t("div",Td,[t("div",{class:"menu_background",onClick:x}),t("ul",null,[t("li",null,[t("a",{onClick:A},"\u5185\u7F51\u6D4B\u901F")]),t("li",null,[t("a",{onClick:B},"\u5916\u7F51\u6D4B\u901F")])])],512),[[wt,m.value]]),t("div",Id,[t("span",null,"IP\u5730\u5740\uFF08"+h(w(s).defaultInterface)+"\uFF09",1)]),t("div",Ld,[t("span",null," IPv4\uFF1A "+h(w(s).ipv4addr)+" \uFF08"+h(c(w(s).proto||""))+"\uFF09 ",1)]),t("div",Md,[t("span",null,"IPv6\uFF1A"+h(w(s).ipv6addr),1)]),t("div",Od,[t("span",null,"DNS\uFF08"+h(f(w(s).dnsProto))+"\uFF09",1)]),(i(!0),r(L,null,j(w(s).dnsList,ht=>(i(),r("div",Nd,[t("span",null,h(ht),1)]))),256))]),qd,t("div",Vd,[t("div",Gd,[jd,t("span",Rd,[D($t,{onClick:k})]),z(t("div",Ud,[t("div",{class:"menu_background",onClick:k}),t("ul",null,[t("li",null,[D(H,{to:"/interfaceconfig"},{default:V(()=>[Wd]),_:1})])])],512),[[wt,u.value]])]),t("div",Hd,[w(d).load?(i(),M(ws,{key:0,portList:w(d).portList},null,8,["portList"])):E("",!0)])])],64)}}});var Jd=Y(Zd,[["__scopeId","data-v-f1addc4c"]]);const Xd={class:"network-container"},Kd={class:"network-container_flow"},Qd={class:"network-container_flow-container"},t0={class:"network-container_status"},e0=P({setup(e){return(a,o)=>(i(),r("div",Xd,[t("div",Kd,[t("div",Qd,[D(Ri)])]),t("div",t0,[D(Jd)])]))}});var a0=Y(e0,[["__scopeId","data-v-569bbceb"]]);const o0={},n0={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"},i0=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),r0=[i0];function s0(e,a){return i(),r("svg",n0,r0)}var gt=Y(o0,[["render",s0]]);const d0={},u0={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"},c0=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),l0=[c0];function p0(e,a){return i(),r("svg",u0,l0)}var Ue=Y(d0,[["render",p0]]);const f0={},m0={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"},v0=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),b0=[v0];function g0(e,a){return i(),r("svg",m0,b0)}var _0=Y(f0,[["render",g0]]);const Bt=e=>(O("data-v-4116205a"),e=e(),N(),e),h0=["onSubmit"],k0=Bt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u786C\u76D8\u914D\u7F6E")],-1)),x0={class:"action-body"},w0={class:"disk-info"},y0=Bt(()=>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)),F0={key:0,class:"disk-info_mount-name"},E0={key:1,class:"disk-info_mount-name"},C0={key:0,class:"label-item"},$0=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),D0={class:"label-item_path"},B0={class:"label-item"},Y0=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u683C\u5F0F\u5316\u9009\u9879")],-1)),A0={class:"label-item_value"},S0=["disabled"],z0={key:0,value:""},P0=Bt(()=>t("option",{value:"format"},"\u683C\u5F0F\u5316",-1)),T0={key:1,value:"default"},I0={class:"label-item_value"},L0={key:0,class:"msg"},M0={key:1,class:"msg"},O0={class:"action-footer"},N0=Bt(()=>t("div",{class:"auto"},null,-1)),q0=["disabled"],V0=["disabled"],G0={key:1,class:"action result"},j0={class:"action-body"},R0=Bt(()=>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)),U0=Bt(()=>t("div",{class:"action-body_msg"},"\u683C\u5F0F\u5316\u6210\u529F",-1)),W0={key:0,class:"action-body_info"},H0={key:1,class:"action-body_info"},Z0=U(" \u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A "),J0={class:"btns"},X0=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=k=>{k.preventDefault(),a.Cancel&&a.Cancel(),o()},s=k=>{a.Next&&a.Next(k),o()},l=y(!1),p=y(0),m=k=>{p.value=k},u=y(a.action=="nas"?"":"format"),d=y(),c=y(),f=()=>{switch(u.value){case"format":g();return;case"default":v();return;default:F.Warning("\u8BF7\u9009\u62E9\u9009\u7EBF");return}},v=()=>{let k="";const C=a.mount;if(C!=null&&C.mountPoint!=null&&(k=C.mountPoint),k!=""){s(k);return}F.Warning("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84")},g=()=>{const k=a.disk,C=a.mount;if(C){const A=C.mountPoint||C.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${A} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${A}?`))return;_(C);return}if(k){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${k.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;b(k);return}F.Warning("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E")},b=k=>T(this,null,function*(){if(k.name==null||k.path==""){F.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(k.path==null||k.path==""){F.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}l.value=!0;const C=F.Loading("\u521D\u59CB\u5316\u4E2D...");try{const A=yield S.Nas.Disk.Init.POST({name:k.name,path:k.path});if(A!=null&&A.data){const{result:B,error:$}=A==null?void 0:A.data;$&&F.Warning($),B&&(B.errorInfo?F.Warning(B.errorInfo):(F.Success("\u521D\u59CB\u5316\u6210\u529F"),B.childrens&&B.childrens.length>0&&(c.value=B.childrens[0]),d.value=B,m(1)))}}catch(A){F.Error(A)}C.Close(),l.value=!1}),_=k=>T(this,null,function*(){if(k.path==null||k.path==""){F.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}l.value=!0;const C=F.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const A=yield S.Nas.Disk.Partition.Format.POST({path:k.path,uuid:k.uuid,mountPoint:k.mountPoint});if(A!=null&&A.data){const{result:B,error:$}=A==null?void 0:A.data;$&&F.Warning($),B&&(F.Success("\u683C\u5F0F\u5316\u6210\u529F"),c.value=B,m(1))}}catch(A){F.Error(A)}C.Close(),l.value=!1}),x=()=>{if(c.value&&c.value.mountPoint){s(c.value.mountPoint);return}F.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")};return(k,C)=>(i(),M(et,{type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>{var A;return[p.value==0?(i(),r("form",{key:0,class:"action format",onSubmit:nt(f,["prevent"])},[k0,t("div",x0,[t("div",w0,[y0,e.mount?(i(),r("div",F0,[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",E0,[t("span",null,"\u3010"+h(e.disk.size)+"\u3011",1),t("span",null,h(e.disk.venderModel),1)])):E("",!0)]),e.mount?(i(),r("div",C0,[$0,t("div",D0,h(e.mount.mountPoint||e.mount.path)+"\uFF08"+h(e.mount.total)+"\uFF09",1)])):E("",!0),t("div",B0,[Y0,t("div",A0,[z(t("select",{"onUpdate:modelValue":C[0]||(C[0]=B=>u.value=B),required:"",disabled:e.action=="disk"},[e.mount!=null?(i(),r("option",z0,"\u8BF7\u9009\u62E9\u9009\u9879")):E("",!0),P0,e.mount!=null?(i(),r("option",T0,"\u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF")):E("",!0)],8,S0),[[Q,u.value]])]),t("div",I0,[u.value=="format"?(i(),r("p",L0,"\u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF")):u.value=="default"?(i(),r("p",M0)):E("",!0)])])]),t("div",O0,[N0,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:n,type:"button",disabled:l.value},"\u8FD4\u56DE",8,q0),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:l.value},"\u4E0B\u4E00\u6B65",8,V0)])],40,h0)):p.value==1?(i(),r("div",G0,[t("div",j0,[R0,U0,d.value?(i(),r("div",W0,[U(" \u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8 "+h(d.value.venderModel)+" \u5E76\u6302\u8F7D\u5230 ",1),t("a",null,h((A=c.value)==null?void 0:A.mountPoint),1)])):E("",!0),c.value?(i(),r("div",H0,[Z0,t("a",null,h(c.value.mountPoint),1)])):E("",!0),t("div",J0,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:x},h(e.action=="nas"?"\u4E0B\u4E00\u6B65":"\u5B8C\u6210"),1)])])])):E("",!0)]}),_:1})]),_:1}))}});var K0=Y(X0,[["__scopeId","data-v-4116205a"]]),Be=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(K0,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Mt=e=>(O("data-v-57d4812a"),e=e(),N(),e),Q0=["onSubmit"],tu=Mt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"})],-1)),eu={class:"action-body"},au={class:"disk-info"},ou=Mt(()=>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)),nu={key:0,class:"disk-info_mount-name"},iu={key:1,class:"disk-info_mount-name"},ru={key:0,class:"label-item"},su=Mt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),du={class:"label-item_path"},uu={class:"label-item"},cu=Mt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u6302\u8F7D\u70B9")],-1)),lu={class:"label-item_value"},pu={class:"action-footer"},fu=Mt(()=>t("div",{class:"auto"},null,-1)),mu=["disabled"],vu=["disabled"],bu={key:1,class:"action result"},gu={class:"action-body"},_u=Mt(()=>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)),hu=Mt(()=>t("div",{class:"action-body_msg"},"\u6302\u8F7D\u6210\u529F",-1)),ku={key:0,class:"action-body_info"},xu={class:"btns"},wu=P({props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){var g;const a=e,o=()=>{a.Close&&a.Close()},n=b=>{b.preventDefault(),a.Cancel&&a.Cancel(),o()},s=b=>{a.Next&&a.Next(b),o()},l=y(!1),p=y(0),m=y("/mnt/data_"+((g=a==null?void 0:a.mount)==null?void 0:g.name)),u=b=>{p.value=b};y(a.mount?"":"format"),y();const d=y(),c=()=>T(this,null,function*(){const b=a.mount;if(b==null){F.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A");return}if(b.path==null||b.path==""){F.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}if(b.uuid==null||b.uuid==""){F.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID");return}l.value=!0;const _=F.Loading("\u6302\u8F7D\u4E2D...");try{const x=yield S.Nas.Disk.Partition.Mount.POST({path:b.path,uuid:b.uuid,mountPoint:m.value});if(x!=null&&x.data){const{result:k,error:C}=x==null?void 0:x.data;C&&F.Warning(C),k&&(F.Success("\u6302\u8F7D\u6210\u529F"),d.value=k,u(1))}}catch(x){F.Error(x)}_.Close(),l.value=!1}),f=()=>{if(d.value&&d.value.mountPoint){s(d.value.mountPoint);return}F.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")},v=()=>{};return(b,_)=>(i(),M(et,{type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>{var x,k;return[p.value==0?(i(),r("form",{key:0,class:"action format",onSubmit:nt(v,["prevent"])},[tu,t("div",eu,[t("div",au,[ou,e.mount?(i(),r("div",nu,[t("span",null,"\u3010"+h(e.mount.total)+"\u3011",1),t("span",null,h(e.mount.mountPoint),1)])):e.disk?(i(),r("div",iu,[t("span",null,"\u3010"+h(e.disk.size)+"\u3011",1),t("span",null,h(e.disk.venderModel),1)])):E("",!0)]),e.mount?(i(),r("div",ru,[su,t("div",du,h(e.mount.path)+"\uFF08"+h(e.mount.total)+"\uFF0C"+h((k=(x=e.mount)==null?void 0:x.filesystem)==null?void 0:k.toUpperCase())+"\uFF09",1)])):E("",!0),t("div",uu,[cu,t("div",lu,[z(t("input",{type:"text","onUpdate:modelValue":_[0]||(_[0]=C=>m.value=C)},null,512),[[W,m.value,void 0,{trim:!0}]])])])]),t("div",pu,[fu,t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:l.value,onClick:c},"\u786E\u5B9A",8,mu),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:n,type:"button",disabled:l.value},"\u8FD4\u56DE",8,vu)])],40,Q0)):p.value==1?(i(),r("div",bu,[t("div",gu,[_u,hu,d.value?(i(),r("div",ku,[U(" \u5DF2\u6210\u529F\u5C06\u5206\u533A "+h(d.value.path)+" \u6302\u8F7D\u5230 ",1),t("a",null,h(d.value.mountPoint),1)])):E("",!0),t("div",xu,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:f},h(e.action=="nas"?"\u5B8C\u6210":"\u4E0B\u4E00\u6B65"),1)])])])):E("",!0)]}),_:1})]),_:1}))}});var yu=Y(wu,[["__scopeId","data-v-57d4812a"]]),sa=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(yu,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const da=e=>(O("data-v-3e619a52"),e=e(),N(),e),Fu={class:"disk-content"},Eu={class:"disk-item"},Cu={class:"disk-item_name"},$u={key:0},Du={key:1},Bu={key:2},Yu={class:"disk_value"},Au={class:"disk-item_value"},Su={class:"value-data"},zu={key:0,class:"disk-item"},Pu={class:"disk-item_name"},Tu={key:0},Iu=["href"],Lu={key:0},Mu={class:"disk_status"},Ou={key:0,class:"disk_status_item"},Nu={key:0,class:"tooltip-trigger disk_tip"},qu=da(()=>t("div",{class:"tooltip-text tooltip-top"},[t("div",{class:"disk_dir_tip"},"\u6B64\u5206\u533A\u4E3A\u53EA\u8BFB\u72B6\u6001\uFF0C\u53EF\u80FD\u65E0\u6CD5\u5199\u5165\u6570\u636E")],-1)),Vu={class:"disk_status_item"},Gu={key:0,class:"tooltip-trigger disk_tip"},ju=da(()=>t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u6B64\u6587\u4EF6\u7CFB\u7EDF\u4E0D\u652F\u6301Docker\u7B49\u5E94\u7528\u6570\u636E\uFF0C\u5EFA\u8BAE\u683C\u5F0F\u5316\u6210EXT4\u6587\u4EF6\u7CFB\u7EDF")],-1)),Ru=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(()=>a.part.filesystem&&["ntfs","vfat","exfat"].indexOf(a.part.filesystem)>=0),s=R(()=>a.part.mountPoint&&a.part.isReadOnly&&a.part.filesystem!="swap"),l=R(()=>o.value||!a.part.isSystemRoot&&(s.value||n.value||!a.part.mountPoint&&a.part.filesystem=="swap")),p=function(){Be({action:"disk",disk:a.disk,mount:a.part,Cancel:()=>{},Next:f=>{location.reload()}})},m=()=>{sa({action:"nas",disk:a.disk,mount:a.part,Cancel:()=>{},Next:()=>{location.reload()}})},u=()=>T(this,null,function*(){const f=F.Loading("\u5904\u7406\u4E2D...");try{const v=yield S.Nas.Disk.InitRest.POST({name:a.disk.name,path:a.disk.path});if(v!=null&&v.data){const{result:g,error:b}=v==null?void 0:v.data;b&&F.Warning(b),g&&(F.Success("\u6302\u8F7D\u6210\u529F"),location.reload())}}catch(v){F.Error(v)}f.Close()}),d=R(()=>a.part.filesystem=="Free Space"),c=R(()=>{const f=a.part.mountPoint?a.part.mountPoint:"";return f.indexOf("/mnt/")==0?"/cgi-bin/luci/admin/services/linkease/file/?path=/"+f.substring(5):"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+f});return(f,v)=>{var b;const g=X("progress-item");return i(),r("div",Fu,[t("li",Eu,[t("div",Cu,[w(d)?(i(),r("span",$u,"\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",Bu,"\uFF08\u7CFB\u7EDF\u5206\u533A\uFF09")):E("",!0)]),t("div",Yu,[t("div",Au,[t("div",Su,[D(g,{value:w(d)||!e.part.usage?0:e.part.usage,text:w(d)?"\u672A\u5206\u533A\uFF08"+e.part.total+"\uFF09":(e.part.mountPoint&&e.part.filesystem!="swap"?e.part.used:"\u672A\u77E5")+"/"+e.part.total,style:{backgroundColor:"#767676"}},null,8,["value","text"])])]),w(d)?(i(),r("button",{key:0,class:"cbi-button cbi-button-apply",onClick:u},"\u5206\u533A\u5E76\u683C\u5F0F\u5316")):w(l)?(i(),r("button",{key:1,class:"cbi-button cbi-button-apply",onClick:p},"\u683C\u5F0F\u5316\u5206\u533A")):E("",!0)])]),!w(d)&&!w(o)?(i(),r("li",zu,[t("span",Pu,[e.part.mountPoint?(i(),r(L,{key:0},[e.part.filesystem=="swap"?(i(),r("span",Tu,"\u5DF2\u6302\u8F7D\u4E3A\u4EA4\u6362\u533A")):(i(),r("a",{key:1,href:w(c),target:"_blank"},h(e.part.mountPoint),9,Iu))],64)):(i(),r(L,{key:1},[e.part.filesystem=="swap"?(i(),r("span",Lu,"\u4E0D\u652F\u6301\u6302\u8F7D")):(i(),r("span",{key:1,class:"value-data buttondiv",onClick:m},"\u624B\u52A8\u6302\u8F7D"))],64))]),t("div",Mu,[e.part.mountPoint&&e.part.filesystem!="swap"?(i(),r("div",Ou,[t("div",null,"\u53EF\u8BFB\u5199\u72B6\u6001\uFF1A"+h(e.part.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1),w(s)?(i(),r("div",Nu,[D(gt),qu])):E("",!0)])):E("",!0),t("div",Vu,[t("div",null,"\u6587\u4EF6\u7CFB\u7EDF\uFF1A"+h((b=e.part.filesystem)==null?void 0:b.toUpperCase()),1),!e.part.isSystemRoot&&w(n)?(i(),r("div",Gu,[D(gt),ju])):E("",!0)])])])):E("",!0)])}}});var Uu=Y(Ru,[["__scopeId","data-v-3e619a52"]]);const ua=e=>(O("data-v-5fa713aa"),e=e(),N(),e),Wu={key:0,class:"action"},Hu={class:"title"},Zu=ua(()=>t("div",{class:"app-container_info"},[t("span",null,"\u5206\u533A / \u6302\u8F7D\u70B9"),t("span",null,"\u5BB9\u91CF")],-1)),Ju={class:"app-container_body"},Xu=ua(()=>t("div",{class:"auto"},null,-1)),Ku=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=l=>{l.preventDefault(),a.Cancel&&a.Cancel(),n()};return(l,p)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>[o.value==0?(i(),r("div",Wu,[t("h2",Hu,"\u5206\u533A\u4FE1\u606F - "+h((e.disk.name||"?")+(e.disk.isSystemRoot?"\uFF08\u7CFB\u7EDF\u76D8\uFF09":"")),1),t("ul",null,[t("li",null,[Zu,t("div",Ju,[(i(!0),r(L,null,j(e.disk.childrens,(m,u)=>(i(),M(Uu,{key:u,part:m,disk:e.disk},null,8,["part","disk"]))),128))])])]),t("div",{class:"action-footer"},[Xu,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:s,type:"button"},"\u8FD4\u56DE")])])):E("",!0)]),_:1})]),_:1},8,["Close"]))}});var Qu=Y(Ku,[["__scopeId","data-v-5fa713aa"]]),tc=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(Qu,at(J({},e),{Close:()=>{n()}}));o.component("progress-item",ta),o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const fe=e=>(O("data-v-3eb8bf52"),e=e(),N(),e),ec={key:0,class:"disk-item error"},ac=["title"],oc={class:"disk-item_value"},nc={class:"value-data"},ic={class:"error"},rc={key:1,class:"disk-item"},sc=["title"],dc={key:0,class:"disk_value"},uc=fe(()=>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)),cc=[uc],lc={key:1,class:"disk_value"},pc={class:"disk-item_value"},fc={class:"value-data"},mc=fe(()=>t("div",{class:"disk-item-tooltip"},[t("span",null,"\u4EC5\u7EDF\u8BA1\u5DF2\u6302\u8F7D\u5206\u533A")],-1)),vc={class:"disk_icon"},bc={key:0,class:"tooltip-trigger"},gc={class:"disk_tip"},_c=fe(()=>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)),hc={key:1,class:"tooltip-trigger"},kc={class:"disk_tip"},xc=fe(()=>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)),wc={key:2,class:"disk-item load"},yc=["title"],Fc={class:"disk_value"},Ec={class:"disk-item_value"},Cc={class:"value-data"},$c={key:3,class:"disk-item load"},Dc=["title"],Bc={class:"disk_value"},Yc={key:0,class:"disk-item_value"},Ac={class:"value-data"},Sc={class:"disk_icon"},zc=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(u=>u.mountPoint).length==0?"unmounted":"success"),n=R(()=>{const u=a.disk;let d=u.name;return u.size&&(d+=`\u3010${u.size}\u3011`),u.venderModel&&(d+=`(${u.venderModel})`),d}),s=R(()=>{var d;const u=a.disk;return!u.isSystemRoot&&(((d=u.childrens)==null?void 0:d.filter(c=>c.isReadOnly&&c.filesystem!="swap").length)||0)>0}),l=()=>{Be({action:"disk",disk:a.disk,Cancel:()=>{},Next:()=>{location.reload()}})},p=()=>{tc({action:"disk",disk:a.disk,Cancel:()=>{},Next:()=>{location.reload()}})},m=()=>{const u=a.disk,d=u.childrens||[];sa({action:"nas",disk:u,mount:d[0],Cancel:()=>{},Next:()=>{location.reload()}})};return(u,d)=>{var f,v,g;const c=X("progress-item");return w(o)=="error"?(i(),r("li",ec,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,ac),t("div",oc,[t("div",nc,[t("span",ic,h(e.disk.errorInfo),1)])])])):w(o)=="success"?(i(),r("li",rc,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,sc),e.disk.smartWarning&&e.smartWarning?(i(),r("div",dc,cc)):(i(),r("div",lc,[t("div",pc,[t("div",fc,[D(c,{value:e.disk.usage||0,text:`${e.disk.used}/${e.disk.total}`,style:{backgroundColor:"#767676"}},null,8,["value","text"])]),mc]),t("div",vc,[e.disk.isDockerRoot&&e.disk.isSystemRoot&&e.disk.usage&&e.disk.usage>=90?(i(),r("span",bc,[t("span",gc,[D(gt)]),_c])):E("",!0),w(s)?(i(),r("span",hc,[t("span",kc,[D(gt)]),xc])):E("",!0),w(s)&&((f=e.disk.childrens)==null?void 0:f.length)==1?(i(),r("span",{key:2,class:"disk_infoicon",onClick:d[0]||(d[0]=b=>l())},[D(_0)])):E("",!0),t("span",{class:"disk_infoicon",onClick:d[1]||(d[1]=b=>p())},[D(Ue)])])]))])):w(o)=="load"?(i(),r("li",wc,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,yc),t("div",Fc,[t("div",Ec,[t("div",Cc,[t("button",{onClick:d[2]||(d[2]=b=>l())},"\u683C\u5F0F\u5316\u5E76\u6302\u8F7D")])])])])):w(o)=="unmounted"?(i(),r("li",$c,[t("div",{class:"disk-item_name",title:w(n)},[t("span",null,h(w(n)),1)],8,Dc),t("div",Bc,[((v=e.disk.childrens)==null?void 0:v.length)==1?(i(),r("div",Yc,[t("div",Ac,[e.disk.childrens[0].filesystem=="swap"?(i(),r("button",{key:0,onClick:d[3]||(d[3]=b=>p())},"\u67E5\u770B\u8BE6\u60C5")):(i(),r("button",{key:1,onClick:d[4]||(d[4]=b=>m())},"\u624B\u52A8\u6302\u8F7D"))])])):E("",!0),t("div",Sc,[(((g=e.disk.childrens)==null?void 0:g.length)||0)>1?(i(),r("span",{key:0,class:"disk_infoicon",onClick:d[5]||(d[5]=b=>p())},[D(Ue)])):E("",!0)])])])):E("",!0)}}});var we=Y(zc,[["__scopeId","data-v-3eb8bf52"]]);const ee=e=>(O("data-v-bc09566a"),e=e(),N(),e),Pc={class:"app-container"},Tc={class:"app-container_title"},Ic={class:"disk_info"},Lc=U(" \u78C1\u76D8\u4FE1\u606F "),Mc={class:"app-container_tool"},Oc={class:"more_icon",title:"\u67E5\u770B\u78C1\u76D8\u7BA1\u7406\u4FE1\u606F"},Nc={class:"DeviceBlock"},qc=ee(()=>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)),Vc={key:0},Gc={class:"disk_loading_icon"},jc=ee(()=>t("span",{class:"disk_loading_info"},"\u6B63\u5728\u83B7\u53D6\u78C1\u76D8\u4FE1\u606F...",-1)),Rc={key:1},Uc=ee(()=>t("div",{class:"app-container_info"},[t("span",null,"\u7CFB\u7EDF\u6839\u76EE\u5F55")],-1)),Wc={class:"app-container_body"},Hc={key:2},Zc=ee(()=>t("div",{class:"app-container_info"},[t("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),Jc={class:"app-container_body"},Xc={key:3},Kc=ee(()=>t("div",{class:"app-container_info"},[t("span",null,"RAID\u8BBE\u5907")],-1)),Qc={class:"app-container_body"},tl=P({setup(e){const a=y(!1),o=it({disks:null,raidList:null}),n=()=>{S.Nas.Disk.Status.GET().then(m=>{var u;if((u=m==null?void 0:m.data)!=null&&u.result){const d=m.data.result;o.disks=d.disks||[]}})};(()=>T(this,null,function*(){try{const m=yield S.Raid.List.GET();if(m!=null&&m.data){const{success:u,error:d,result:c}=m.data;if(c&&(o.raidList=c.disks||[]),d)throw d}}catch(m){console.log(m)}}))(),n();const l=()=>{a.value=!a.value},p=()=>{lt.installAndGo("luci-app-linkease","\u6613\u6709\u4E91","/cgi-bin/luci/admin/services/linkease/file/","app-meta-linkease")};return(m,u)=>{var f,v;const d=X("GlHelp"),c=X("icon-loading");return i(),r("div",Pc,[t("ul",null,[t("li",null,[t("div",Tc,[t("span",Ic,[Lc,D(d,{type:"disk"})]),t("div",Mc,[t("div",{class:"app-container_configure",onClick:p}," \u6587\u4EF6\u7BA1\u7406 "),t("span",Oc,[D($t,{onClick:l})])]),z(t("div",Nc,[t("div",{class:"menu_background",onClick:l}),qc],512),[[wt,a.value]])])]),!w(o).disks&&!w(o).raidList?(i(),r("li",Vc,[t("div",Gc,[D(c,{size:38,color:"currentColor"}),jc])])):E("",!0),w(o).disks?(i(),r("li",Rc,[Uc,t("div",Wc,[(i(!0),r(L,null,j((f=w(o).disks)==null?void 0:f.filter(g=>g.isSystemRoot),(g,b)=>(i(),M(we,{key:b,disk:g},null,8,["disk"]))),128))])])):E("",!0),w(o).disks?(i(),r("li",Hc,[Zc,t("div",Jc,[(i(!0),r(L,null,j((v=w(o).disks)==null?void 0:v.filter(g=>!g.isSystemRoot),(g,b)=>(i(),M(we,{key:b,disk:g,smartWarning:!0},null,8,["disk"]))),128))])])):E("",!0),w(o).raidList&&w(o).raidList.length>0?(i(),r("li",Xc,[Kc,t("div",Qc,[(i(!0),r(L,null,j(w(o).raidList,(g,b)=>(i(),M(we,{key:b,disk:g},null,8,["disk"]))),128))])])):E("",!0)])])}}});var el=Y(tl,[["__scopeId","data-v-bc09566a"]]);const ca=e=>(O("data-v-184dd932"),e=e(),N(),e),al={class:"app-container_samba"},ol={key:0,class:"sambas-item"},nl=ca(()=>t("div",{class:"sambas-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),il={class:"sambas-item_value"},rl=ca(()=>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)),sl={class:"samba-item"},dl={class:"samba-item_name"},ul=["title"],cl=["href"],ll=P({props:{sambas:{type:Array}},setup(e){const a=window.location.hostname;return(o,n)=>{var s;return i(),r("ul",al,[e.sambas?(i(),r("li",ol,[nl,t("div",il,[t("span",null,h((s=e.sambas)!=null&&s.length?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"),1)])])):E("",!0),rl,(i(!0),r(L,null,j(e.sambas,l=>(i(),r("li",sl,[t("div",dl,[t("span",null,"smb://"+h(w(a))+"/"+h(l.shareName),1)]),t("div",{class:"samba-item_value",title:l.path},[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+l.path},h(l.path),9,cl)],8,ul)]))),256))])}}});var pl=Y(ll,[["__scopeId","data-v-184dd932"]]);const me=e=>(O("data-v-b4608492"),e=e(),N(),e),fl={class:"webdav-item"},ml=me(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),vl={class:"webdav-item_value"},bl={key:0,class:"webdav-item"},gl=me(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u6302\u8F7D\u8DEF\u5F84:")],-1)),_l={class:"webdav-item_value"},hl=["href"],kl={key:1,class:"webdav-item"},xl=me(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u670D\u52A1\u8DEF\u5F84:")],-1)),wl={class:"webdav-item_value"},yl=["href"],Fl={key:2,class:"webdav-item"},El=me(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u8D26\u53F7:")],-1)),Cl={class:"webdav-item_value"},$l=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 l,p,m,u,d,c,f;return i(),r(L,null,[t("li",fl,[ml,t("div",vl,[t("span",null,h((l=e.webdav)!=null&&l.path?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"),1)])]),(p=e.webdav)!=null&&p.path?(i(),r("li",bl,[gl,t("div",_l,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((m=e.webdav)==null?void 0:m.path)},h((u=e.webdav)==null?void 0:u.path),9,hl)])])):E("",!0),(d=e.webdav)!=null&&d.port?(i(),r("li",kl,[xl,t("div",wl,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,yl)])])):E("",!0),(c=e.webdav)!=null&&c.username?(i(),r("li",Fl,[El,t("div",Cl,[t("span",null,h((f=e.webdav)==null?void 0:f.username),1)])])):E("",!0)],64)}}});var Dl=Y($l,[["__scopeId","data-v-b4608492"]]);const Ye=e=>(O("data-v-4a3b6e0a"),e=e(),N(),e),Bl={class:"disk-item"},Yl=Ye(()=>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)),Al={class:"disk-item_f"},Sl={class:"disk-item_venderModel"},zl={class:"disk-item_used"},Pl=Ye(()=>t("div",{class:"auto"},null,-1)),Tl={class:"disk-item-r"},Il={class:"disk-children"},Ll=["onClick"],Ml=Ye(()=>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)),Ol={key:0},Nl={key:1},ql=P({props:{disk:{type:Object,required:!0},currDisk:{type:Object},currMountPoint:{type:Object},onDisk:{type:Function,required:!0}},setup(e){var s,l;const a=e,o=y(!1);a.currDisk!=null&&((s=a.currDisk)==null?void 0:s.venderModel)==((l=a.disk)==null?void 0:l.venderModel)&&(o.value=!0);const n=p=>{o.value=!o.value,a.onDisk(p,null)};return(p,m)=>{var u;return i(),r("ul",Bl,[t("li",{class:ot(["disk-info",{on:e.disk.venderModel==((u=e.currDisk)==null?void 0:u.venderModel),nopoint:e.disk.childrens==null||e.disk.childrens.length==0}]),onClick:m[0]||(m[0]=d=>n(e.disk))},[Yl,t("div",Al,[t("div",Sl,h(e.disk.venderModel),1),t("div",zl,h(e.disk.used)+"/"+h(e.disk.size),1)]),Pl,t("div",Tl,h(e.disk.path),1)],2),z(t("div",Il,[(i(!0),r(L,null,j(e.disk.childrens,d=>{var c,f;return i(),r("li",{class:ot(["disk-children_item",{on:d.uuid==((c=e.currMountPoint)==null?void 0:c.uuid)&&d.path==((f=e.currMountPoint)==null?void 0:f.path)}]),onClick:v=>e.onDisk(e.disk,d)},[Ml,d.mountPoint?(i(),r("span",Ol," \u3010"+h(d.filesystem)+"\u3011 "+h(d.mountPoint)+" \uFF08"+h(d.used)+"/"+h(d.total)+"\uFF09 ["+h(d.uuid)+"] ",1)):(i(),r("span",Nl," \u3010"+h(d.filesystem)+"\u3011 "+h(d.mountPoint||d.path||"\u672A\u6302\u8F7D\u78C1\u76D8")+" ["+h(d.uuid)+"] ",1))],10,Ll)}),256))],512),[[wt,o.value]])])}}});var We=Y(ql,[["__scopeId","data-v-4a3b6e0a"]]);const Ae=e=>(O("data-v-12d0f96b"),e=e(),N(),e),Vl={class:"action list"},Gl=Ae(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u8BF7\u9009\u62E9\u4E00\u4E2A\u786C\u76D8\u6216\u5206\u533A")],-1)),jl={class:"action-body"},Rl={class:"disk-list"},Ul=Ae(()=>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)),Wl=Ae(()=>t("div",{class:"auto"},null,-1)),Hl=P({props:{Cancel:{type:Function},Next:{type:Function},Close:{type:Function}},setup(e){const a=e,o=y(!0),n=it({disks:[],raids:[]});(()=>T(this,null,function*(){const v=yield Promise.all([S.Nas.Disk.Status.GET(),S.Raid.List.GET()]);try{if(v[0]){const g=v[0];g!=null&&g.data.result&&(n.disks=(g==null?void 0:g.data.result.disks)||[])}if(v[1]){const g=v[1];g.data.result&&(n.raids=g.data.result.disks||[])}}catch(g){F.Warning(g)}}))();const l=y(),p=y(),m=(v,g)=>{l.value=v,p.value=g},u=()=>{a.Close&&a.Close()},d=()=>{a.Cancel&&a.Cancel(),u()},c=v=>{a.Next&&a.Next(v),u()},f=()=>{if(l.value==null){F.Warning("\u8BF7\u9009\u62E9\u76EE\u6807\u786C\u76D8");return}if(l.value.childrens!=null&&l.value.childrens.length>0&&p.value==null){F.Warning("\u8BF7\u9009\u62E9\u786C\u76D8\u5206\u533A");return}if(p.value!=null&&(p.value.mountPoint==null||p.value.mountPoint=="")){F.Warning("\u8BE5\u5206\u533A\u5C1A\u672A\u6302\u8F7D\uFF0C\u8BF7\u5148\u53BB\u6302\u8F7D");return}o.value=!1,Be({action:"nas",disk:l.value,mount:p.value,Cancel:()=>{o.value=!0},Next:v=>{c(v)}})};return(v,g)=>o.value?(i(),M(et,{key:0,type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>[t("div",Vl,[Gl,t("div",jl,[t("div",Rl,[(i(!0),r(L,null,j(w(n).disks,b=>(i(),M(We,{disk:b,onDisk:m,currDisk:l.value,currMountPoint:p.value},null,8,["disk","currDisk","currMountPoint"]))),256)),(i(!0),r(L,null,j(w(n).raids,b=>(i(),M(We,{disk:b,onDisk:m,currDisk:l.value,currMountPoint:p.value},null,8,["disk","currDisk","currMountPoint"]))),256))])]),Ul,t("div",{class:"action-footer"},[Wl,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:d,type:"button"},"\u8FD4\u56DE"),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:f,type:"button"},"\u4E0B\u4E00\u6B65")])])]),_:1})]),_:1})):E("",!0)}});var Zl=Y(Hl,[["__scopeId","data-v-12d0f96b"]]),Jl=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(Zl,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const ve=e=>(O("data-v-67a63e8f"),e=e(),N(),e),Xl={class:"action"},Kl={class:"action-body"},Ql=ve(()=>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)),t1=ve(()=>t("h2",{class:"title"},"\u670D\u52A1\u5DF2\u542F\u52A8",-1)),e1={class:"info"},a1=ve(()=>t("span",null,"\u524D\u5F80",-1)),o1=["href"],n1=ve(()=>t("span",null,"\u914D\u7F6E",-1)),i1=P({props:{Close:Function},setup(e){const a=e,o=y(""),n=R(()=>`http://${location.hostname}:${o.value}`);(()=>{S.Nas.Linkease.Enable.POST().then(p=>{var m,u;(m=p==null?void 0:p.data)!=null&&m.result&&(o.value=((u=p.data.result)==null?void 0:u.port)||"")})})();const l=()=>{a.Close&&a.Close(),location.reload()};return(p,m)=>(i(),M(et,{type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>[t("div",Xl,[t("div",Kl,[Ql,t1,t("div",e1,[a1,t("a",{href:w(n),target:"_blank",rel:"noopener noreferrer"},h(w(n)),9,o1),n1]),t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:l},"\u5173\u95ED")])])])]),_:1})]),_:1}))}});var r1=Y(i1,[["__scopeId","data-v-67a63e8f"]]),s1=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(r1,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const ae=e=>(O("data-v-30ef6ccb"),e=e(),N(),e),d1=["onSubmit"],u1=ae(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Webdav\u5171\u4EAB\u914D\u7F6E")],-1)),c1={class:"action-body"},l1={class:"label-item"},p1=ae(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),f1={class:"label-item_value"},m1=["value"],v1={class:"label-item"},b1=ae(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),g1={class:"label-item_value"},_1={class:"label-item"},h1=ae(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),k1={class:"label-item_value"},x1={class:"action-footer"},w1=ae(()=>t("div",{class:"auto"},null,-1)),y1=["disabled"],F1=["disabled"],E1=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const a=e,o=u=>{u.preventDefault(),a.Close&&a.Close()},n=y(!1),s=y({username:"root",password:"",rootPath:a.rootPath});(()=>T(this,null,function*(){const u=F.Loading("\u52A0\u8F7D\u4E2D...");n.value=!0;try{const d=yield S.Nas.Webdav.Status.GET();if(d!=null&&d.data){const{result:c,error:f}=d.data;if(f){F.Warning(f);return}c&&(c.username&&(s.value.username=c.username),c.password&&(s.value.password=c.password))}}catch(d){F.Error(d)}n.value=!1,u.Close()}))();const p=()=>{const u=s.value;if(u.rootPath==""){F.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(u.username==""){F.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(u.password==""){F.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}m(u)},m=u=>T(this,null,function*(){n.value=!0;const d=F.Loading("\u521B\u5EFA\u4E2D...");try{const c=yield S.Nas.Webdav.Create.POST(u);if(c!=null&&c.data){const{error:f,result:v}=c.data;f&&F.Warning(f),v&&(F.Success("\u521B\u5EFA\u6210\u529F"),window.setTimeout(()=>{location.reload()},1e3))}}catch(c){F.Error(c)}d.Close(),n.value=!1});return(u,d)=>(i(),M(et,{type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>[t("form",{class:"action",onSubmit:nt(p,["prevent"])},[u1,t("div",c1,[t("div",l1,[p1,t("div",f1,[t("input",{type:"text",value:s.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,m1)])]),t("div",v1,[b1,t("div",g1,[z(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":d[0]||(d[0]=c=>s.value.username=c)},null,512),[[W,s.value.username,void 0,{trim:!0}]])])]),t("div",_1,[h1,t("div",k1,[z(t("input",{type:"password","onUpdate:modelValue":d[1]||(d[1]=c=>s.value.password=c)},null,512),[[W,s.value.password,void 0,{trim:!0}]])])])]),t("div",x1,[w1,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:o,disabled:n.value},"\u5173\u95ED",8,y1),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:n.value},"\u521B\u5EFA",8,F1)])],40,d1)]),_:1})]),_:1}))}});var C1=Y(E1,[["__scopeId","data-v-30ef6ccb"]]),$1=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(C1,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Yt=e=>(O("data-v-3ef9e48f"),e=e(),N(),e),D1=["onSubmit"],B1=Yt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Samba\u5171\u4EAB\u914D\u7F6E")],-1)),Y1={class:"action-body"},A1={class:"label-item"},S1=Yt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),z1={class:"label-item_value"},P1=["value"],T1={class:"label-item"},I1=Yt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5171\u4EAB\u540D\uFF08\u5EFA\u8BAE\u4F7F\u7528\u82F1\u6587\u5B57\u6BCD\uFF09")],-1)),L1={class:"label-item_value"},M1={class:"label-item"},O1=Yt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),N1={class:"label-item_value"},q1={class:"label-item"},V1=Yt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),G1={class:"label-item_value"},j1={class:"samba-item"},R1={class:"samba-item_allow"},U1=Yt(()=>t("label",{for:"allow",class:"samba-allow"},"\u5141\u8BB8\u65E7\u534F\u8BAE\u4E0E\u8EAB\u4EFD\u9A8C\u8BC1(\u4E0D\u5B89\u5168)",-1)),W1={class:"samba-item_tips"},H1={class:"tooltip-trigger"},Z1={class:"samba_tip"},J1=Yt(()=>t("span",{class:"samba_dir_tip"},"\u517C\u5BB9\u4E00\u4E9B\u7535\u89C6\u6216\u8005\u7535\u89C6\u76D2\u5B50",-1)),X1={class:"action-footer"},K1=Yt(()=>t("div",{class:"auto"},null,-1)),Q1=["disabled"],t2=["disabled"],e2=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const a=e,o=m=>{m.preventDefault(),a.Close&&a.Close()},n=y(!1),s=y({shareName:"",username:"",password:"",rootPath:a.rootPath,allowLegacy:!1}),l=()=>{const m=s.value;if(m.rootPath==""){F.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.shareName==""){F.Warning("\u5171\u4EAB\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.username==""){F.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.password==""){F.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}const u=yt.checkSmabaUserName(m.username);if(u!==!0){F.Warning(`${u}`);return}p(m)},p=m=>T(this,null,function*(){n.value=!0;const u=F.Loading("\u521B\u5EFA\u4E2D...");try{const d=yield S.Nas.Samba.Create.POST(m);if(d!=null&&d.data){const{error:c,result:f}=d.data;c&&F.Warning(c),f&&(F.Success("\u521B\u5EFA\u6210\u529F"),window.setTimeout(()=>{location.reload()},1e3))}}catch(d){F.Error(d)}u.Close(),n.value=!1});return(m,u)=>(i(),M(et,{type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>[t("form",{class:"action",onSubmit:nt(l,["prevent"])},[B1,t("div",Y1,[t("div",A1,[S1,t("div",z1,[t("input",{type:"text",value:s.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,P1)])]),t("div",T1,[I1,t("div",L1,[z(t("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=d=>s.value.shareName=d),required:"",placeholder:"\u5171\u4EAB\u540D\u79F0"},null,512),[[W,s.value.shareName,void 0,{trim:!0}]])])]),t("div",M1,[O1,t("div",N1,[z(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":u[1]||(u[1]=d=>s.value.username=d)},null,512),[[W,s.value.username,void 0,{trim:!0}]])])]),t("div",q1,[V1,t("div",G1,[z(t("input",{type:"password","onUpdate:modelValue":u[2]||(u[2]=d=>s.value.password=d)},null,512),[[W,s.value.password,void 0,{trim:!0}]])])]),t("div",j1,[t("div",R1,[z(t("input",{type:"checkbox",id:"allow","onUpdate:modelValue":u[3]||(u[3]=d=>s.value.allowLegacy=d)},null,512),[[Tt,s.value.allowLegacy]]),U1]),t("div",W1,[t("span",H1,[t("span",Z1,[D(gt)]),J1])])])]),t("div",X1,[K1,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:o,disabled:n.value},"\u5173\u95ED",8,Q1),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:n.value},"\u521B\u5EFA",8,t2)])],40,D1)]),_:1})]),_:1}))}});var a2=Y(e2,[["__scopeId","data-v-3ef9e48f"]]),o2=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(a2,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const qt=e=>!Array.isArray(window.quickstart_features)||window.quickstart_features.indexOf(e)!=-1,Ut=e=>(O("data-v-650e3bd4"),e=e(),N(),e),n2={key:0,class:"action"},i2=Ut(()=>t("h2",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528 NAS \u914D\u7F6E\u5411\u5BFC",-1)),r2=Ut(()=>t("h3",{class:"desc"},"\u8BF7\u9009\u62E9\u9700\u8981\u6DFB\u52A0\u7684NAS\u670D\u52A1",-1)),s2=Ut(()=>t("option",{value:"linkease"},"\u8DE8\u8BBE\u5907\u5171\u4EAB\uFF08\u6613\u6709\u4E91\uFF09",-1)),d2=Ut(()=>t("option",{value:"samba"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Samba\uFF09",-1)),u2=Ut(()=>t("option",{value:"webdav"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08WebDAV\uFF09",-1)),c2=[s2,d2,u2],l2={key:0,class:"tips"},p2=U("\u5982\u9700\u5BF9 Samba \u6216 WebDAV \u8FDB\u884C\u66F4\u7EC6\u81F4\u7684\u6743\u9650\u63A7\u5236\uFF0C\u8BF7\u4F7F\u7528\u201C"),f2=Ut(()=>t("a",{href:"/cgi-bin/luci/admin/nas/unishare"},"\u7EDF\u4E00\u6587\u4EF6\u5171\u4EAB",-1)),m2=U("\u201D"),v2=[p2,f2,m2],b2={class:"btns"},g2=["disabled"],_2=P({props:{setup:Number,Close:{type:Function,required:!0}},setup(e){const a=e,o=y(!0),n=y("linkease"),s=y(!1),l=y(a.setup||0),p=()=>{a.Close&&a.Close()},m=()=>T(this,null,function*(){switch(n.value){case"webdav":yield u();break;case"samba":yield c();break;case"linkease":yield d();break}}),u=()=>T(this,null,function*(){s.value=!0,(yield lt.checkAndInstallApp("app-meta-gowebdav","GoWebdav"))&&f(),s.value=!1}),d=()=>T(this,null,function*(){s.value=!0,(yield lt.checkAndInstallApp("linkease","\u6613\u6709\u4E91","app-meta-linkease"))&&v(),s.value=!1}),c=()=>T(this,null,function*(){s.value=!0;const _=F.Loading("\u914D\u7F6E\u4E2D...");f(),_.Close(),s.value=!1}),f=()=>{s.value=!1,o.value=!1,Jl({Cancel:()=>{o.value=!0},Next:_=>{switch(n.value){case"webdav":g(_);break;case"samba":b(_);break}}})},v=()=>{s1({}),p()},g=_=>{$1({rootPath:_}),p()},b=_=>{o2({rootPath:_}),p()};return(_,x)=>o.value?(i(),M(et,{key:0,Close:e.Close,type:1},{default:V(()=>[D(xt,{name:"rotate",mode:"out-in"},{default:V(()=>[l.value==0?(i(),r("div",n2,[i2,r2,t("form",null,[t("label",null,[z(t("select",{"onUpdate:modelValue":x[0]||(x[0]=k=>n.value=k)},c2,512),[[Q,n.value]])])]),w(qt)("unishare")?(i(),r("div",l2,v2)):E("",!0),t("div",b2,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:m,type:"button",disabled:s.value},"\u4E0B\u4E00\u6B65",8,g2),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:p,type:"button"},"\u53D6\u6D88")])])):E("",!0)]),_:1})]),_:1},8,["Close"])):E("",!0)}});var h2=Y(_2,[["__scopeId","data-v-650e3bd4"]]),la=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(h2,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}};const Se=e=>(O("data-v-edf68726"),e=e(),N(),e),k2={class:"app-container_linkease"},x2={class:"linkease-item"},w2=Se(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),y2={class:"linkease-item_value"},F2={key:0,class:"configure"},E2={key:0,class:"linkease-item"},C2=Se(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u670D\u52A1\u5730\u5740:")],-1)),$2={class:"linkease-item_value"},D2=["href"],B2=Se(()=>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)),Y2=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=()=>{la({setup:0})};return(s,l)=>{var p,m,u;return i(),r("ul",k2,[t("li",x2,[w2,t("div",y2,[(p=e.linkease)!=null&&p.enabel?(i(),r("span",F2,"\u5DF2\u914D\u7F6E")):(i(),r("span",{key:1,class:"configure enabel",onClick:l[0]||(l[0]=d=>n())},"\u672A\u914D\u7F6E"))])]),(m=e.linkease)!=null&&m.enabel?(i(),r(L,{key:0},[(u=e.linkease)!=null&&u.port?(i(),r("li",E2,[C2,t("div",$2,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,D2)])])):E("",!0)],64)):E("",!0),B2])}}});var A2=Y(Y2,[["__scopeId","data-v-edf68726"]]);const pa=e=>(O("data-v-6c088396"),e=e(),N(),e),S2={class:"app-container"},z2={class:"app-container_title"},P2=pa(()=>t("span",null,"\u5B58\u50A8\u670D\u52A1",-1)),T2={class:"app-container_tool"},I2={class:"more_icon",title:"\u67E5\u770B\u5B58\u50A8\u670D\u52A1\u4FE1\u606F"},L2={class:"DeviceBlock"},M2=pa(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/services/samba4"},"SAMBA\u9AD8\u7EA7\u914D\u7F6E")],-1)),O2={class:"app-container_body"},N2={class:"app-container_nas-menu"},q2=P({setup(e){const a=y(!1),o=y("linkease"),n=y(),s=Qe();(()=>{S.Nas.Service.Status.GET().then(d=>{var c;if((c=d==null?void 0:d.data)!=null&&c.result){const f=d.data.result;n.value=f,f.webdav&&(s.webdav=f.webdav)}})})();const p=()=>{la({setup:0})},m=()=>{a.value=!a.value},u=()=>{m(),lt.installAndGo("app-meta-gowebdav","GoWebDAV","/cgi-bin/luci/admin/nas/gowebdav")};return(d,c)=>{var v,g,b;const f=X("GlHelp");return i(),r("div",S2,[t("div",z2,[t("span",null,[P2,D(f,{type:"store"})]),t("div",T2,[t("div",{class:"app-container_configure",onClick:p},"\u5FEB\u901F\u914D\u7F6E"),t("span",I2,[D($t,{onClick:m})])]),z(t("div",L2,[t("div",{class:"menu_background",onClick:m}),t("ul",null,[M2,t("li",null,[t("a",{onClick:u},"WebDAV\u9AD8\u7EA7\u914D\u7F6E")])])],512),[[wt,a.value]])]),t("div",O2,[t("ul",N2,[t("button",{onClick:c[0]||(c[0]=_=>o.value="linkease"),class:ot({on:o.value=="linkease"})},"\u6613\u6709\u4E91",2),t("button",{onClick:c[1]||(c[1]=_=>o.value="samba"),class:ot({on:o.value=="samba"})},"SAMBA",2),t("button",{onClick:c[2]||(c[2]=_=>o.value="webdav"),class:ot({on:o.value=="webdav"})},"WEBDAV",2)]),o.value=="samba"?(i(),M(pl,{key:0,sambas:(v=n.value)==null?void 0:v.sambas},null,8,["sambas"])):o.value=="webdav"?(i(),M(Dl,{key:1,webdav:(g=n.value)==null?void 0:g.webdav},null,8,["webdav"])):o.value=="linkease"?(i(),M(A2,{key:2,linkease:(b=n.value)==null?void 0:b.linkease},null,8,["linkease"])):E("",!0)])])}}});var V2=Y(q2,[["__scopeId","data-v-6c088396"]]);const be=e=>(O("data-v-3fd3a42d"),e=e(),N(),e),G2={class:"app-container_docker"},j2={class:"docker-item"},R2=be(()=>t("div",{class:"docker-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),U2={key:0,class:"docker-item_value"},W2=be(()=>t("span",{class:"configure"},"\u672A\u5B89\u88C5",-1)),H2=[W2],Z2={key:1,class:"docker-item_value"},J2={class:"input-switch"},X2=["value","disabled"],K2=be(()=>t("em",null,null,-1)),Q2=[K2],t6={key:0,class:"docker-item"},e6=be(()=>t("div",{class:"docker-item_name"},[t("span",null,"Docker\u6839\u76EE\u5F55\uFF1A")],-1)),a6={class:"docker-item_value"},o6={class:"configure enabel"},n6={key:0},i6={class:"tooltip-trigger"},r6={class:"docker_tip"},s6={class:"tooltip-text tooltip-top"},d6={class:"docker_dir_tip"},u6=P({props:{docker:{type:Object}},setup(e){var l;const a=e,o=R(()=>{var p;return((p=a.docker)==null?void 0:p.status)!="not installed"}),n=it({enable:((l=a.docker)==null?void 0:l.status)=="running",disabled:!1}),s=()=>T(this,null,function*(){n.disabled=!0;try{const p=yield S.Guide.DockerSwitch.POST({enable:n.enable});if(p!=null&&p.data){const{success:m,error:u}=p.data;if(u)throw n.enable=!n.enable,u;(m||0)==0}}catch(p){F.Warning(`${p}`)}finally{n.disabled=!1}});return(p,m)=>{var u,d,c,f;return i(),r("ul",G2,[t("li",j2,[R2,(u=a.docker)!=null&&u.status?(i(),r(L,{key:0},[w(o)?(i(),r("div",Z2,[t("label",J2,[z(t("input",{type:"checkbox",hidden:"",value:!w(n).enable,"onUpdate:modelValue":m[0]||(m[0]=v=>w(n).enable=v),disabled:w(n).disabled,onChange:s},null,40,X2),[[Tt,w(n).enable]]),t("span",{class:ot(w(n).enable?"enable":"close")},Q2,2)])])):(i(),r("div",U2,H2))],64)):E("",!0)]),((d=e.docker)==null?void 0:d.status)=="running"?(i(),r("li",t6,[e6,t("div",a6,[t("span",o6,h((c=e.docker)==null?void 0:c.path),1),(f=e.docker)!=null&&f.errorInfo?(i(),r("span",n6,[t("span",i6,[t("span",r6,[D(gt)]),t("div",null,[t("div",s6,[t("span",d6,h(e.docker.errorInfo),1)])])])])):E("",!0)])])):E("",!0)])}}});var c6=Y(u6,[["__scopeId","data-v-3fd3a42d"]]);const l6={},p6={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"},f6=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),m6=[f6];function v6(e,a){return i(),r("svg",p6,m6)}var b6=Y(l6,[["render",v6]]);const mt=e=>(O("data-v-0c5883d5"),e=e(),N(),e),g6={key:0,class:"action"},_6=mt(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),h6=mt(()=>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\uFF08\u76EE\u6807\u5206\u533A\u4E0D\u652F\u6301NTFS\uFF0CFAT\u7B49\u6587\u4EF6\u7CFB\u7EDF\uFF09",-1)),k6={class:"roots"},x6=mt(()=>t("span",{class:"roots_tit"},"Docker\u6839\u76EE\u5F55\uFF1A",-1)),w6={class:"root"},y6={class:"move"},F6=mt(()=>t("span",{class:"roots_tit"},"\u8FC1\u79FB\u5230\uFF1A",-1)),E6={key:0},C6=["onSubmit"],$6={class:"select-editable"},D6=mt(()=>t("option",{selected:"",value:null},"\u8BF7\u9009\u62E9\u8FC1\u79FB\u5730\u5740",-1)),B6=["value"],Y6=mt(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),A6={key:1,class:"tips"},S6={class:"tips_content"},z6=mt(()=>t("span",{class:"tip"},"\u68C0\u6D4B\u5230\u60A8\u8FD8\u6CA1\u6709\u6302\u8F7D\u5916\u7F6E\u786C\u76D8\u6216\u5206\u533A\u5C0F\u4E8E8GB\uFF0C\u9700\u8981\u60A8\u63A5\u4E0A\u786C\u76D8\u5E76\u683C\u5F0F\u5316\u6216\u624B\u52A8\u6302\u8F7D\u786C\u76D8\u540E\uFF0C\u518D\u6267\u884CDocker\u8FC1\u79FB\u5411\u5BFC\uFF0C\u5C06Docker\u8FC1\u79FB\u5230\u76EE\u6807\u786C\u76D8\u3002",-1)),P6={key:0,class:"btns"},T6={key:1,class:"btns"},I6={key:1,class:"action docker_success"},L6=mt(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),M6={class:"finished"},O6=mt(()=>t("p",{class:"successed"},"\u8FC1\u79FB\u6210\u529F\uFF01",-1)),N6={key:2,class:"action docker_download"},q6=mt(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),V6={class:"finished"},G6=mt(()=>t("p",{class:"successed"},"\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),j6={class:"docker_moves"},R6={class:"moves change"},U6=mt(()=>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)),W6={class:"moves"},H6=mt(()=>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)),Z6={class:"btns"},J6=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const a=e,o=y(),n=y(),s=y(0),l=y("null"),p=y(""),m=y(),u=y(!1),d=y("");(()=>{S.Nas.Disk.Status.GET().then(k=>{k!=null&&k.data.result&&(m.value=k==null?void 0:k.data.result)}),S.Guide.DockerStatus.GET().then(k=>{var C;if((C=k==null?void 0:k.data)!=null&&C.result){const A=k.data.result;o.value=A}}),S.Guide.DockerPartitionList.GET().then(k=>{var C;if((C=k==null?void 0:k.data)!=null&&C.result){const A=k.data.result;n.value=A}})})();const f=k=>{let C=l.value;if(C=="useInput"&&(C=p.value),C==null||C=="null"||C=="")return;const A=F.Loading("\u6B63\u5728\u8FC1\u79FB\u4E2D...");S.Guide.DockerTransfer.POST({path:C,force:k,overwriteDir:!!d.value}).then(B=>{var $;if(B!=null&&B.data){if((B.data.success||0)==0){if(($=B.data.result)!=null&&$.emptyPathWarning){u.value=!0,s.value=2;return}s.value=1;return}else if(B.data.error)throw B.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(B=>{F.Error(B)}).finally(()=>A.Close())},v=()=>{u.value=!1,f(!1)},g=k=>{k.preventDefault(),a.Close&&a.Close()},b=k=>{k.preventDefault(),location.reload()},_=k=>{k.preventDefault(),s.value=0},x=k=>{k.preventDefault(),f(!0)};return(k,C)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>{var A,B,$,q,H,G;return[s.value==0?(i(),r("div",g6,[_6,h6,t("div",k6,[x6,t("span",w6,h((A=o.value)==null?void 0:A.path),1)]),t("div",y6,[F6,($=(B=n.value)==null?void 0:B.partitionList)!=null&&$.length?(i(),r("div",E6,[t("form",{onSubmit:nt(v,["prevent"])},[t("label",null,[t("div",$6,[z(t("select",{"onUpdate:modelValue":C[0]||(C[0]=Z=>l.value=Z)},[D6,(i(!0),r(L,null,j((q=n.value)==null?void 0:q.partitionList,(Z,ht)=>(i(),r("option",{value:Z,key:ht},h(Z),9,B6))),128)),Y6],512),[[Q,l.value,void 0,{trim:!0}]]),l.value=="useInput"?z((i(),r("input",{key:0,type:"text","onUpdate:modelValue":C[1]||(C[1]=Z=>p.value=Z),required:"",placeholder:"\u8BF7\u8F93\u5165\u8FC1\u79FB\u5730\u5740"},null,512)),[[W,p.value,void 0,{trim:!0}]]):E("",!0)])])],40,C6)])):n.value?(i(),r("div",A6,[t("div",S6,[D(gt),z6])])):E("",!0)]),(G=(H=n.value)==null?void 0:H.partitionList)!=null&&G.length?(i(),r("div",P6,[t("button",{class:"cbi-button cbi-button-apply",onClick:v},"\u786E\u5B9A"),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:g},"\u53D6\u6D88")])):(i(),r("div",T6,[t("button",{class:"cbi-button cbi-button-apply",onClick:g},"\u786E\u5B9A")]))])):s.value==1?(i(),r("div",I6,[L6,t("div",M6,[D(De)]),O6,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:b},"\u786E\u5B9A")])])):s.value==2?(i(),r("div",N6,[q6,t("div",V6,[D(b6)]),G6,t("div",j6,[t("div",R6,[z(t("input",{type:"radio",id:"move",name:"moves","onUpdate:modelValue":C[2]||(C[2]=Z=>d.value=Z),value:""},null,512),[[pt,d.value]]),U6]),t("div",W6,[z(t("input",{type:"radio",id:"cover",name:"moves","onUpdate:modelValue":C[3]||(C[3]=Z=>d.value=Z),value:"true"},null,512),[[pt,d.value]]),H6])]),t("div",Z6,[u.value?(i(),r("button",{key:0,class:"cbi-button cbi-button-apply",onClick:x},"\u786E\u5B9A")):E("",!0),t("button",{class:"cbi-button cbi-button-apply",onClick:_},"\u8FD4\u56DE"),u.value?E("",!0):(i(),r("button",{key:1,class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:b},"\u53D6\u6D88"))])])):E("",!0)]}),_:1},8,["Close"]))}});var X6=Y(J6,[["__scopeId","data-v-0c5883d5"]]);const K6=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=tt(X6,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},fa=e=>(O("data-v-68f828b1"),e=e(),N(),e),Q6={class:"app-container"},t5={class:"app-container_title"},e5=fa(()=>t("span",null,"Docker",-1)),a5={key:0,class:"app-container_tool"},o5={key:1,class:"more_icon",title:"\u67E5\u770BDocker\u4FE1\u606F"},n5={class:"DeviceBlock"},i5=fa(()=>t("ul",null,[t("li",null,[t("a",{href:"/cgi-bin/luci/admin/docker/overview"},"Docker\u9AD8\u7EA7\u914D\u7F6E")])],-1)),r5={key:1,class:"loading_placeholder"},s5=P({props:{docker:{type:Object}},setup(e){const a=y(!1),o=y(),n=y(!1),s=()=>{n.value=!n.value},l=()=>{K6()};return setTimeout(()=>{S.Guide.DockerStatus.GET().then(m=>{var u;if((u=m==null?void 0:m.data)!=null&&u.result){const d=m.data.result;o.value=d}}).finally(()=>{a.value=!0})},1100),(m,u)=>{var f,v;const d=X("GlHelp"),c=X("icon-loading");return i(),r("div",Q6,[t("div",t5,[t("span",null,[e5,D(d,{type:"docker"})]),a.value?(i(),r("div",a5,[((f=o.value)==null?void 0:f.status)!="not installed"?(i(),r("div",{key:0,class:"app-container_configure",onClick:l},"\u5FEB\u901F\u914D\u7F6E ")):E("",!0),((v=o.value)==null?void 0:v.status)==="running"?(i(),r("span",o5,[D($t,{onClick:s})])):E("",!0)])):E("",!0),z(t("div",n5,[t("div",{class:"menu_background",onClick:s}),i5],512),[[wt,n.value]])]),t("div",null,[a.value?(i(),M(c6,{key:0,docker:o.value},null,8,["docker"])):(i(),r("div",r5,[D(c,{size:50,color:"currentColor"})]))])])}}});var d5=Y(s5,[["__scopeId","data-v-68f828b1"]]);const oe=e=>(O("data-v-dbe287b2"),e=e(),N(),e),u5={class:"app-container_aria2"},c5={class:"aria2-item"},l5=oe(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),p5={class:"aria2-item_value"},f5={key:0,class:"configure"},m5={key:1,class:"configure enabel"},v5={class:"aria2-item"},b5=oe(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u4E0B\u8F7D\u76EE\u5F55:")],-1)),g5={class:"aria2-item_value"},_5=["href"],h5={class:"aria2-item"},k5=oe(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),x5={class:"aria2-item_value"},w5=["href"],y5={class:"aria2-item"},F5=oe(()=>t("div",{class:"aria2-item_name right"},[t("span",null,"\u8BA4\u8BC1\u5931\u8D25\uFF1F")],-1)),E5={class:"aria2-item_value"},C5=["href"],$5=oe(()=>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)),D5=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 p,m,u;let s=(p=a.aria2)==null?void 0:p.rpcToken;s&&(s=encodeURIComponent(btoa(s)));const l=encodeURIComponent(location.hostname);return`${location.origin}${(m=a.aria2)==null?void 0:m.webPath}/#!/settings/rpc/set/http/${l}/${(u=a.aria2)==null?void 0:u.rpcPort}/jsonrpc/${s}`});return(s,l)=>{var p,m,u,d;return i(),r("ul",u5,[t("li",c5,[l5,t("div",p5,[((p=e.aria2)==null?void 0:p.status)=="running"?(i(),r("span",f5,"\u5DF2\u542F\u52A8")):(i(),r("span",m5,"\u672A\u542F\u52A8"))])]),((m=e.aria2)==null?void 0:m.status)=="running"?(i(),r(L,{key:0},[t("li",v5,[b5,t("div",g5,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((u=e.aria2)==null?void 0:u.downloadPath)},h((d=e.aria2)==null?void 0:d.downloadPath),9,_5)])]),t("li",h5,[k5,t("div",x5,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,w5)])]),t("li",y5,[F5,t("div",E5,[t("a",{href:w(n),target:"_blank",rel:"noopener noreferrer"},"\u70B9\u6B64\u81EA\u52A8\u914D\u7F6E AriaNg",8,C5)])])],64)):E("",!0),$5])}}});var B5=Y(D5,[["__scopeId","data-v-dbe287b2"]]);const ge=e=>(O("data-v-1af61e64"),e=e(),N(),e),Y5={class:"app-container_qbittorrent"},A5={class:"qbittorrent-item"},S5=ge(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),z5={class:"qbittorrent-item_value"},P5={key:0,class:"configure"},T5={key:1,class:"configure enabel"},I5={class:"qbittorrent-item"},L5=ge(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u4E0B\u8F7D\u76EE\u5F55:")],-1)),M5={class:"qbittorrent-item_value"},O5=["href"],N5={class:"qbittorrent-item"},q5=ge(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),V5={class:"qbittorrent-item_value"},G5=["href"],j5=ge(()=>t("li",{class:"qbittorrent-item"},[t("div",{class:"qbittorrent-item_name right"},[t("span",null,"\u9ED8\u8BA4\u7528\u6237\u540D\uFF1Aadmin")]),t("div",{class:"qbittorrent-item_value"},[t("span",null,"\u9ED8\u8BA4\u5BC6\u7801\uFF1Aadminadmin")])],-1)),R5=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 l,p,m,u;return i(),r("ul",Y5,[t("li",A5,[S5,t("div",z5,[((l=e.qbittorrent)==null?void 0:l.status)=="running"?(i(),r("span",P5,"\u5DF2\u542F\u52A8")):(i(),r("span",T5,"\u672A\u542F\u52A8"))])]),((p=e.qbittorrent)==null?void 0:p.status)=="running"?(i(),r(L,{key:0},[t("li",I5,[L5,t("div",M5,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((m=e.qbittorrent)==null?void 0:m.downloadPath)},h((u=e.qbittorrent)==null?void 0:u.downloadPath),9,O5)])]),t("li",N5,[q5,t("div",V5,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,G5)])]),j5],64)):E("",!0)])}}});var U5=Y(R5,[["__scopeId","data-v-1af61e64"]]);const ze=e=>(O("data-v-31717210"),e=e(),N(),e),W5={class:"app-container_transmission"},H5={class:"transmission-item"},Z5=ze(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),J5={class:"transmission-item_value"},X5={key:0,class:"configure"},K5={key:1,class:"configure enabel"},Q5={class:"transmission-item"},t3=ze(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u4E0B\u8F7D\u76EE\u5F55:")],-1)),e3={class:"transmission-item_value"},a3=["href"],o3={class:"transmission-item"},n3=ze(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),i3={class:"transmission-item_value"},r3=["href"],s3=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 l,p,m,u;return i(),r("ul",W5,[t("li",H5,[Z5,t("div",J5,[((l=e.transmission)==null?void 0:l.status)=="running"?(i(),r("span",X5,"\u5DF2\u542F\u52A8")):(i(),r("span",K5,"\u672A\u542F\u52A8"))])]),((p=e.transmission)==null?void 0:p.status)=="running"?(i(),r(L,{key:0},[t("li",Q5,[t3,t("div",e3,[t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((m=e.transmission)==null?void 0:m.downloadPath)},h((u=e.transmission)==null?void 0:u.downloadPath),9,a3)])]),t("li",o3,[n3,t("div",i3,[t("a",{href:w(o),target:"_blank",rel:"noopener noreferrer"},h(w(o)),9,r3)])])],64)):E("",!0)])}}});var d3=Y(s3,[["__scopeId","data-v-31717210"]]);const u3={},c3={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"},l3=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),p3=[l3];function f3(e,a){return i(),r("svg",c3,p3)}var zt=Y(u3,[["render",f3]]);const K=e=>(O("data-v-378dba8e"),e=e(),N(),e),m3={key:0,class:"action"},v3=K(()=>t("h2",{class:"title"},"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",-1)),b3={class:"load_service input_row"},g3=K(()=>t("div",{class:"left"},[t("span",null,"\u4E0B\u8F7D\u670D\u52A1\uFF1A")],-1)),_3={class:"radios"},h3=K(()=>t("label",{for:"Aria2"},"Aria2",-1)),k3={class:"radios"},x3=K(()=>t("label",{for:"qB"},"qBittorrent",-1)),w3={class:"radios"},y3=K(()=>t("label",{for:"Tr"},"Transmission",-1)),F3=["onSubmit"],E3={class:"input_row"},C3={class:"left"},$3={class:"tooltip-trigger"},D3=K(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u914D\u7F6E\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/Configs/aria2\uFF1B\u8BF7\u52FF\u4F7F\u7528 /tmp \u6216 /var \uFF0C\u4EE5\u514D\u91CD\u542F\u4EE5\u540E\u4EFB\u52A1\u4E22\u5931")])],-1)),B3=K(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),Y3={class:"myinput_wrap"},A3={class:"input_row"},S3={class:"left"},z3={class:"tooltip-trigger"},P3=K(()=>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\uFF1A/mnt/sda1/download")])],-1)),T3=K(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),I3={class:"myinput_wrap"},L3={class:"input_row"},M3={class:"left"},O3={class:"tooltip-trigger"},N3=K(()=>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)),q3=K(()=>t("span",null,"RPC \u4EE4\u724C\uFF1A",-1)),V3={class:"input_row"},G3=K(()=>t("div",{class:""},[t("span",null,"\u9644\u52A0\u7684 BT Tracker\uFF1A")],-1)),j3={class:"radios"},R3=K(()=>t("label",{for:"default"},"\u9ED8\u8BA4",-1)),U3={class:"radios"},W3=K(()=>t("label",{for:"add"},"\u81EA\u5DF1\u6DFB\u52A0",-1)),H3={class:"input_row"},Z3=K(()=>t("div",{class:"left"},null,-1)),J3={class:"myinput_wrap Tracker_input"},X3=["onSubmit"],K3={class:"input_row"},Q3={class:"left"},t8={class:"tooltip-trigger"},e8=K(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u914D\u7F6E\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/Configs/qb\uFF1B\u8BF7\u52FF\u4F7F\u7528 /tmp \u6216 /var \uFF0C\u4EE5\u514D\u91CD\u542F\u4EE5\u540E\u4EFB\u52A1\u4E22\u5931")])],-1)),a8=K(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),o8={class:"myinput_wrap"},n8={class:"input_row"},i8={class:"left"},r8={class:"tooltip-trigger"},s8=K(()=>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\uFF1A/mnt/sda1/download")])],-1)),d8=K(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),u8={class:"myinput_wrap"},c8=["onSubmit"],l8={class:"input_row"},p8={class:"left"},f8={class:"tooltip-trigger"},m8=K(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u914D\u7F6E\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1A/mnt/sda1/Configs/tr\uFF1B\u8BF7\u52FF\u4F7F\u7528 /tmp \u6216 /var \uFF0C\u4EE5\u514D\u91CD\u542F\u4EE5\u540E\u4EFB\u52A1\u4E22\u5931")])],-1)),v8=K(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),b8={class:"myinput_wrap"},g8={class:"input_row"},_8={class:"left"},h8={class:"tooltip-trigger"},k8=K(()=>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\uFF1A/mnt/sda1/download")])],-1)),x8=K(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),w8={class:"myinput_wrap"},y8={class:"btns"},F8={key:1,class:"action"},E8={class:"title"},C8={class:"finished"},$8=K(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),D8=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(""),l=y(""),p=y("default"),m=y("Aria2"),u=y(""),d=y(""),c=y(""),f=y(""),v=y([]),g=y([]),b=y(0);Ft(()=>{var G,Z,ht,Ie,Le,Me,Oe,Ne,qe,Ve;switch(a.defaultTab){case"aria2":m.value="Aria2";break;case"qbittorrent":m.value="qBittorrent";break;case"transmission":m.value="Transmission";break}v.value=a.partitionList.map(Ht=>({key:Ht})),g.value=a.partitionList.filter(Ht=>Ht.startsWith("/mnt/")).map(Ht=>Ht.replace(/(\/mnt\/[^/]+).*/,"$1")),s.value=((G=a.services.aria2)==null?void 0:G.configPath)||"";const B=((Z=a.services.aria2)==null?void 0:Z.downloadPath)||((ht=a.services.qbittorrent)==null?void 0:ht.downloadPath)||((Ie=a.services.transmission)==null?void 0:Ie.downloadPath);B&&(l.value=B);const $=(Le=a.services.aria2)==null?void 0:Le.rpcToken;$&&(o.value=$),u.value=((Me=a.services.qbittorrent)==null?void 0:Me.configPath)||"";const q=((Oe=a.services.qbittorrent)==null?void 0:Oe.downloadPath)||B||((Ne=a.services.transmission)==null?void 0:Ne.downloadPath);q&&(d.value=q),c.value=((qe=a.services.transmission)==null?void 0:qe.configPath)||"";const H=((Ve=a.services.transmission)==null?void 0:Ve.downloadPath)||B||q;H&&(f.value=H)});const _=()=>{let B=s.value,$=l.value;B==null||B==""||$==null||$==""||T(this,null,function*(){if(yield lt.checkAndInstallApp("app-meta-aria2","Aria2")){const H=F.Loading("\u914D\u7F6E\u4E2D...");S.Guide.Aria2Init.POST({configPath:B,downloadPath:$,rpcToken:o.value,btTracker:p.value=="add"?n.value:""}).then(G=>{var Z;if(G!=null&&G.data){if((G.data.success||0)==0){b.value=1;return}else if((Z=G.data)!=null&&Z.error)throw G.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(G=>F.Error(G)).finally(()=>H.Close())}})},x=()=>{let B=u.value,$=d.value;B==null||B==""||$==null||$==""||T(this,null,function*(){if(yield lt.checkAndInstallApp("app-meta-qbittorrent","qBittorrent")){const H=F.Loading("\u914D\u7F6E\u4E2D...");S.Guide.qbitorrentInit.POST({configPath:B,downloadPath:$}).then(G=>{var Z;if(G!=null&&G.data){if((G.data.success||0)==0){b.value=1;return}else if((Z=G.data)!=null&&Z.error)throw G.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(G=>F.Error(G)).finally(()=>H.Close())}})},k=()=>{let B=c.value,$=f.value;B==null||B==""||$==null||$==""||T(this,null,function*(){if(yield lt.checkAndInstallApp("app-meta-transmission","Transmission")){const H=F.Loading("\u914D\u7F6E\u4E2D...");S.Guide.transmissionInit.POST({configPath:B,downloadPath:$}).then(G=>{var Z;if(G!=null&&G.data){if((G.data.success||0)==0){b.value=1;return}else if((Z=G.data)!=null&&Z.error)throw G.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(G=>F.Error(G)).finally(()=>H.Close())}})},C=B=>{B.preventDefault(),a.Close&&a.Close()},A=B=>{B.preventDefault(),location.reload()};return(B,$)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[b.value==0?(i(),r("div",m3,[v3,t("ul",null,[t("li",null,[t("div",b3,[g3,t("div",_3,[z(t("input",{type:"radio",value:"Aria2","onUpdate:modelValue":$[0]||($[0]=q=>m.value=q),name:"download",id:"Aria2"},null,512),[[pt,m.value]]),h3]),t("div",k3,[z(t("input",{type:"radio",value:"qBittorrent","onUpdate:modelValue":$[1]||($[1]=q=>m.value=q),name:"download",id:"qB"},null,512),[[pt,m.value]]),x3]),t("div",w3,[z(t("input",{type:"radio",value:"Transmission","onUpdate:modelValue":$[2]||($[2]=q=>m.value=q),name:"download",id:"Tr"},null,512),[[pt,m.value]]),y3])])])]),m.value=="Aria2"?(i(),r("form",{key:0,onSubmit:nt(_,["prevent"])},[t("ul",null,[t("li",null,[t("div",E3,[t("div",C3,[t("span",$3,[D(zt),D3]),B3]),t("div",Y3,[D(Pt,{modelValue:s.value,"onUpdate:modelValue":$[3]||($[3]=q=>s.value=q),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:g.value.concat("/root").map(q=>({key:q+"/Configs/aria2"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",A3,[t("div",S3,[t("span",z3,[D(zt),P3]),T3]),t("div",I3,[D(Pt,{modelValue:l.value,"onUpdate:modelValue":$[4]||($[4]=q=>l.value=q),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:v.value},null,8,["modelValue","options"])])])]),t("li",null,[t("div",L3,[t("div",M3,[t("span",O3,[D(zt),N3]),q3]),z(t("input",{type:"text",class:"RPC_input",placeholder:"\u8BF7\u8F93\u5165RPC\u4EE4\u724C","onUpdate:modelValue":$[5]||($[5]=q=>o.value=q)},null,512),[[W,o.value,void 0,{trim:!0}]])])]),t("li",null,[t("div",V3,[G3,t("div",j3,[z(t("input",{type:"radio",value:"default",name:"BT",id:"default","onUpdate:modelValue":$[6]||($[6]=q=>p.value=q)},null,512),[[pt,p.value]]),R3]),t("div",U3,[z(t("input",{type:"radio",value:"add",name:"BT",id:"add","onUpdate:modelValue":$[7]||($[7]=q=>p.value=q)},null,512),[[pt,p.value]]),W3])])]),t("li",null,[t("div",H3,[Z3,t("div",J3,[p.value=="add"?z((i(),r("textarea",{key:0,"onUpdate:modelValue":$[8]||($[8]=q=>n.value=q),rows:"4",placeholder:"\u8BF7\u8F93\u5165BT Tracker\u670D\u52A1\u5668\u5730\u5740\uFF0C\u591A\u4E2A\u5730\u5740\u4F7F\u7528\u6362\u884C\u6216\u8005\u82F1\u6587\u9017\u53F7\u5206\u9694"},null,512)),[[W,n.value,void 0,{trim:!0}]]):E("",!0)])])])])],40,F3)):E("",!0),m.value=="qBittorrent"?(i(),r("form",{key:1,onSubmit:nt(x,["prevent"])},[t("ul",null,[t("li",null,[t("div",K3,[t("div",Q3,[t("span",t8,[D(zt),e8]),a8]),t("div",o8,[D(Pt,{modelValue:u.value,"onUpdate:modelValue":$[9]||($[9]=q=>u.value=q),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:g.value.concat("/root").map(q=>({key:q+"/Configs/qb"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",n8,[t("div",i8,[t("span",r8,[D(zt),s8]),d8]),t("div",u8,[D(Pt,{modelValue:d.value,"onUpdate:modelValue":$[10]||($[10]=q=>d.value=q),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:v.value},null,8,["modelValue","options"])])])])])],40,X3)):E("",!0),m.value=="Transmission"?(i(),r("form",{key:2,onSubmit:nt(k,["prevent"])},[t("ul",null,[t("li",null,[t("div",l8,[t("div",p8,[t("span",f8,[D(zt),m8]),v8]),t("div",b8,[D(Pt,{modelValue:c.value,"onUpdate:modelValue":$[11]||($[11]=q=>c.value=q),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:g.value.concat("/root").map(q=>({key:q+"/Configs/transmission"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",g8,[t("div",_8,[t("span",h8,[D(zt),k8]),x8]),t("div",w8,[D(Pt,{modelValue:f.value,"onUpdate:modelValue":$[12]||($[12]=q=>f.value=q),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:v.value},null,8,["modelValue","options"])])])])])],40,c8)):E("",!0),t("div",y8,[m.value=="Aria2"?(i(),r("button",{key:0,class:"cbi-button cbi-button-apply",onClick:_},"\u542F\u7528")):E("",!0),m.value=="qBittorrent"?(i(),r("button",{key:1,class:"cbi-button cbi-button-apply",onClick:x},"\u542F\u7528")):E("",!0),m.value=="Transmission"?(i(),r("button",{key:2,class:"cbi-button cbi-button-apply",onClick:k},"\u542F\u7528")):E("",!0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:C},"\u53D6\u6D88")])])):b.value==1?(i(),r("div",F8,[t("h2",E8,h(m.value)+"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",1),t("div",C8,[D(De)]),$8,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:A},"\u786E\u5B9A")])])):E("",!0)]),_:1},8,["Close"]))}});var B8=Y(D8,[["__scopeId","data-v-378dba8e"]]);const Y8=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(B8,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},A8=e=>(O("data-v-6c45d60c"),e=e(),N(),e),S8={class:"app-container"},z8={class:"app-container_title"},P8=A8(()=>t("span",null,"\u4E0B\u8F7D\u670D\u52A1",-1)),T8={class:"app-container_tool"},I8=["disabled"],L8={class:"more_icon",title:"\u67E5\u770B\u9AD8\u7EA7\u914D\u7F6E"},M8={class:"DeviceBlock"},O8={class:"app-container_body"},N8={class:"app-container_nas-menu"},q8=P({setup(e){y(!1);const a=y("aria2"),o=y();Qe(),setTimeout(()=>{S.Guide.DownloadService.Status.GET().then(v=>{var g;if((g=v==null?void 0:v.data)!=null&&g.result){const b=v.data.result;o.value=b}})},800);const s=y(!1),l=y(!1),p=()=>{l.value=!l.value},m=()=>{S.Guide.DownloadPartition.List.GET().then(v=>{var b,_;let g=[];(_=(b=v==null?void 0:v.data)==null?void 0:b.result)!=null&&_.partitionList&&(g=v.data.result.partitionList),Y8({services:o.value,partitionList:g,defaultTab:a.value})})},u=(v,g,b)=>T(this,null,function*(){p(),lt.installAndGo(v,g,b)}),d=()=>{u("app-meta-aria2","Aria2","/cgi-bin/luci/admin/services/aria2")},c=()=>{u("app-meta-qbittorrent","qBittorrent","/cgi-bin/luci/admin/nas/qBittorrent")},f=()=>{u("app-meta-transmission","Transmission","/cgi-bin/luci/admin/services/transmission")};return(v,g)=>{var _,x,k;const b=X("GlHelp");return i(),r("div",S8,[t("div",z8,[t("span",null,[P8,D(b,{type:"download"})]),t("div",T8,[o.value?(i(),r("div",{key:0,class:"app-container_configure",onClick:m,disabled:s.value},"\u5FEB\u901F\u914D\u7F6E ",8,I8)):E("",!0),t("span",L8,[D($t,{onClick:p})])]),z(t("div",M8,[t("div",{class:"menu_background",onClick:p}),t("ul",null,[t("li",null,[t("a",{onClick:d},"Aria2\u9AD8\u7EA7\u914D\u7F6E")]),t("li",null,[t("a",{onClick:c},"qBittorrent\u9AD8\u7EA7\u914D\u7F6E")]),t("li",null,[t("a",{onClick:f},"Transmission\u9AD8\u7EA7\u914D\u7F6E")])])],512),[[wt,l.value]])]),t("div",O8,[t("ul",N8,[t("button",{onClick:g[0]||(g[0]=C=>a.value="aria2"),class:ot({on:a.value=="aria2"})},"Aria2",2),t("button",{onClick:g[1]||(g[1]=C=>a.value="qbittorrent"),class:ot({on:a.value=="qbittorrent"})},"qBittorrent",2),t("button",{onClick:g[2]||(g[2]=C=>a.value="transmission"),class:ot({on:a.value=="transmission"})},"Transmission",2)]),a.value=="aria2"?(i(),M(B5,{key:0,aria2:(_=o.value)==null?void 0:_.aria2},null,8,["aria2"])):a.value=="qbittorrent"?(i(),M(U5,{key:1,qbittorrent:(x=o.value)==null?void 0:x.qbittorrent},null,8,["qbittorrent"])):a.value=="transmission"?(i(),M(d3,{key:2,transmission:(k=o.value)==null?void 0:k.transmission},null,8,["transmission"])):E("",!0)])])}}});var V8=Y(q8,[["__scopeId","data-v-6c45d60c"]]);const Et=e=>(O("data-v-43beecef"),e=e(),N(),e),G8={class:"actioner-container"},j8=Et(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),R8={class:"actioner-container_body"},U8={class:"label-item"},W8=Et(()=>t("span",null,"DDNSTO",-1)),H8=Et(()=>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)),Z8={class:"label-item"},J8=Et(()=>t("span",null,"\u963F\u91CC\u4E91",-1)),X8=Et(()=>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)),K8={class:"label-item"},Q8=Et(()=>t("span",null,"Dnspod",-1)),t4=Et(()=>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)),e4={class:"label-item"},a4=Et(()=>t("span",null,"\u82B1\u751F\u58F3",-1)),o4=Et(()=>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)),n4=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),l=()=>{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(p,m)=>(i(),r("div",G8,[j8,t("div",R8,[t("div",U8,[t("label",null,[z(t("input",{type:"radio","onUpdate:modelValue":m[0]||(m[0]=u=>s.value=u),value:"ddnsto"},null,512),[[pt,s.value]]),W8]),H8]),t("div",Z8,[t("label",null,[z(t("input",{type:"radio","onUpdate:modelValue":m[1]||(m[1]=u=>s.value=u),value:"ali"},null,512),[[pt,s.value]]),J8]),X8]),t("div",K8,[t("label",null,[z(t("input",{type:"radio","onUpdate:modelValue":m[2]||(m[2]=u=>s.value=u),value:"dnspod"},null,512),[[pt,s.value]]),Q8]),t4]),t("div",e4,[t("label",null,[z(t("input",{type:"radio","onUpdate:modelValue":m[3]||(m[3]=u=>s.value=u),value:"oray"},null,512),[[pt,s.value]]),a4]),o4])]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:n},"\u53D6\u6D88"),t("div",{class:"next",onClick:l},"\u4E0B\u4E00\u6B65")])]))}});var i4=Y(n4,[["__scopeId","data-v-43beecef"]]);const ne=e=>(O("data-v-43dd65a2"),e=e(),N(),e),r4={class:"actioner-container"},s4={class:"actioner-container_body"},d4=ne(()=>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)),u4=ne(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),c4=ne(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),l4={class:"body-info"},p4=ne(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),f4=["href"],m4=ne(()=>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",r4,[t("div",s4,[d4,u4,c4,t("div",l4,[p4,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},h(e.target),9,f4)]),m4]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:a},"\u5173\u95ED")])]))}});var b4=Y(v4,[["__scopeId","data-v-43dd65a2"]]);const ma=e=>(O("data-v-7790f1da"),e=e(),N(),e),g4={class:"actioner-container"},_4=ma(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),h4=ma(()=>t("div",{class:"actioner-container_body ddnsto-login"},[t("iframe",{src:"https://www.kooldns.cn/bind/#/auth?send=1&source=openwrt&callback=*"})],-1)),k4=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 l=s.data.sign,p=s.data.token;l&&p&&(removeEventListener("message",n),a.onDdnstoConfig(l,p),a.onSetup("ddnsto-run"))}};return Ft(()=>{window.addEventListener("message",n)}),Gt(()=>{removeEventListener("message",n)}),(s,l)=>(i(),r("div",g4,[_4,h4,t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u53D6\u6D88")])]))}});var x4=Y(k4,[["__scopeId","data-v-7790f1da"]]);const w4=e=>(O("data-v-7b3ee72a"),e=e(),N(),e),y4={class:"actioner-container"},F4=w4(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),E4={class:"actioner-container_body ddnsto-bind"},C4=["src"],$4=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:p,token:m,sign:u,routerId:d,netaddr:c}=o.config,f=encodeURIComponent(p),v=encodeURIComponent(c);return`https://www.kooldns.cn/bind/#/domain?domain=${f}&sign=${u}&token=${m}&routerId=${d}&netaddr=${v}`}),s=p=>{if(p.data){const{auth:m,url:u}=p.data;m==="ddnsto"&&u&&l(u)}},l=p=>T(this,null,function*(){var m;try{const u=yield S.Guide.DdnstoAddress.POST({address:p});u!=null&&u.data&&(((m=u==null?void 0:u.data)==null?void 0:m.success)||0)==0&&(a("update:domain",p),o.onSetup("ddnsto-save"))}catch(u){}});return Ft(()=>{window.addEventListener("message",s)}),Gt(()=>{removeEventListener("message",s)}),(p,m)=>(i(),r("div",y4,[F4,t("div",E4,[t("iframe",{src:w(n)},null,8,C4)])]))}});var D4=Y($4,[["__scopeId","data-v-7b3ee72a"]]);const ie=e=>(O("data-v-7f5a8953"),e=e(),N(),e),B4={class:"actioner-container"},Y4={class:"actioner-container_body"},A4=ie(()=>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)),S4=ie(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),z4=ie(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),P4={class:"body-info"},T4=ie(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),I4=["href"],L4=ie(()=>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)),M4=P({props:{onSetup:{type:Function,required:!0},target:{type:String,required:!0}},setup(e){const a=()=>{location.reload()};return(o,n)=>(i(),r("div",B4,[t("div",Y4,[A4,S4,z4,t("div",P4,[T4,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},h(e.target),9,I4)]),L4]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:a},"\u5173\u95ED")])]))}});var O4=Y(M4,[["__scopeId","data-v-7f5a8953"]]);const N4=e=>(O("data-v-d60389d6"),e=e(),N(),e),q4={class:"actioner-container"},V4=N4(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),G4={class:"actioner-container_body"},j4={class:"actioner-container_footer"},R4=P({props:{onSetup:{type:Function,required:!0}},setup(e){const a=e,o=()=>{a.onSetup()},n=()=>T(this,null,function*(){if(p.value)return;p.value=!0;const u=F.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(d){s.value=d}finally{u.Close()}p.value=!1}),s=y("\u6B63\u5728\u68C0\u6D4B\u4E2D..."),l=y(!1),p=y(!1);return(()=>T(this,null,function*(){try{const u=yield S.App.Check.POST({name:"ddnsto"});if(u!=null&&u.data){const{result:d,error:c}=u.data;if(c){s.value=c;return}if(d){if(d.status=="installed"){a.onSetup("ddnsto-login");return}d.status=="uninstalled"&&(s.value="\u9700\u8981\u5B89\u88C5DDNSTO\u63D2\u4EF6\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5F00\u59CB\u5B89\u88C5")}}}catch(u){s.value=u}l.value=!0}))(),(u,d)=>(i(),r("div",q4,[V4,t("div",G4,[t("span",null,h(s.value),1)]),t("div",j4,[l.value?(i(),r(L,{key:0},[t("div",{class:"close",onClick:o},"\u53D6\u6D88"),t("div",{class:"next",onClick:n},"\u786E\u5B9A")],64)):E("",!0)])]))}});var U4=Y(R4,[["__scopeId","data-v-d60389d6"]]);const W4=e=>(O("data-v-1e0ebd66"),e=e(),N(),e),H4={class:"actioner-container"},Z4=W4(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),J4={class:"actioner-container_body"},X4=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...");(u=>T(this,null,function*(){var d;try{const c=yield S.Guide.Ddnsto.POST({token:a.token});c!=null&&c.data&&(c.data.error&&(o.value=c.data.error),(((d=c==null?void 0:c.data)==null?void 0:d.success)||0)==0&&l())}catch(c){o.value=c}}))(a.token);const s=y(),l=()=>{const u=()=>T(this,null,function*(){if((yield p())===!0){m();return}s.value=window.setTimeout(u,2e3)});u()},p=()=>T(this,null,function*(){try{const u=yield S.App.Check.POST({name:"ddnsto",checkRunning:!0});if(u!=null&&u.data){u.data.error&&(o.value=u.data.error);const d=u.data.result;if((d==null?void 0:d.status)=="running")return!0}}catch(u){o.value=u}return!1});Gt(()=>{s.value&&clearInterval(s.value)});const m=()=>T(this,null,function*(){var u;try{const d=yield S.Guide.DdntoConfig.GET();if(d!=null&&d.data&&(d.data.error&&(o.value=d.data.error),(((u=d==null?void 0:d.data)==null?void 0:u.success)||0)==0&&d.data.result)){const c=d.data.result;a.onDdnstoLocalConfig(c.netAddr,c.deviceId),a.onSetup("ddnsto-bind")}}catch(d){o.value=d}});return(u,d)=>(i(),r("div",H4,[Z4,t("div",J4,h(o.value),1)]))}});var K4=Y(X4,[["__scopeId","data-v-1e0ebd66"]]);const Q4={class:"action-main"},tp=P({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const a=e,o=y("ddnsto-install"),n=u=>{u!=null?o.value=u:s()},s=()=>{a.Close&&a.Close()},l=it({sign:"",token:"",domain:a.url,netaddr:"",routerId:""}),p=(u,d)=>{l.sign=u,l.token=d},m=(u,d)=>{l.netaddr=u,l.routerId=d};return(u,d)=>(i(),M(et,{type:1},{default:V(()=>[t("div",Q4,[o.value=="ddnsto-install"?(i(),M(U4,{key:0,onSetup:n})):o.value=="ddnsto-login"?(i(),M(x4,{key:1,onSetup:n,onDdnstoConfig:p})):o.value=="ddnsto-run"?(i(),M(K4,{key:2,onSetup:n,token:w(l).token,onDdnstoLocalConfig:m},null,8,["token"])):o.value=="ddnsto-bind"?(i(),M(D4,{key:3,onSetup:n,config:{token:w(l).token,sign:w(l).sign,domain:w(l).domain,netaddr:w(l).netaddr,routerId:w(l).routerId},domain:w(l).domain,"onUpdate:domain":d[0]||(d[0]=c=>w(l).domain=c)},null,8,["config","domain"])):o.value=="ddnsto-save"?(i(),M(O4,{key:4,onSetup:n,target:w(l).domain},null,8,["target"])):E("",!0)])]),_:1}))}});var ep=Y(tp,[["__scopeId","data-v-7a6bd385"]]);const ap=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(ep,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},op={class:"action"},np={class:"action-header"},ip=["innerHTML"],rp={class:"action-footer"},sp=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(l,p)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[t("div",op,[t("div",np,h(e.title),1),t("div",{class:"action-body",innerHTML:e.content},null,8,ip),t("div",rp,[e.clear?(i(),r("div",{key:0,class:"clear",onClick:n},h(e.clearTitle),1)):E("",!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)):E("",!0)])])]),_:1},8,["Close"]))}});var dp=Y(sp,[["__scopeId","data-v-4358e88c"]]);const de=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(dp,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},rt=e=>(O("data-v-9435cfa6"),e=e(),N(),e),up={class:"actioner-container"},cp=["onSubmit"],lp=rt(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),pp={key:0,class:"title_info"},fp=rt(()=>t("p",null," \u963F\u91CC\u4E91 ",-1)),mp=rt(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),vp=rt(()=>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)),bp=[fp,mp,vp],gp={key:1,class:"title_info"},_p=rt(()=>t("p",null," dnspod ",-1)),hp=rt(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),kp=rt(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#dnspod",target:"_blank"},"\u67E5\u770B\u6559\u7A0B>>",-1)),xp=[_p,hp,kp],wp={key:2,class:"title_info"},yp=rt(()=>t("p",null," \u82B1\u751F\u58F3 ",-1)),Fp=rt(()=>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=rt(()=>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)),Cp=[yp,Fp,Ep],$p={class:"label-item"},Dp=rt(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u5730\u5740\u7248\u672C\uFF1A")],-1)),Bp={class:"label-item_value"},Yp=rt(()=>t("option",{value:"ipv4"},"IPv4\u5730\u5740",-1)),Ap=rt(()=>t("option",{value:"ipv6"},"IPv6\u5730\u5740",-1)),Sp=[Yp,Ap],zp=rt(()=>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)),Pp={class:"label-item"},Tp=rt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u57DF\u540D\uFF1A")],-1)),Ip={class:"label-item_value"},Lp={class:"label-item"},Mp=rt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D\uFF1A")],-1)),Op={class:"label-item_value"},Np={class:"label-item"},qp=rt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801\uFF1A")],-1)),Vp={class:"label-item_value"},Gp={class:"actioner-container_footer"},jp=["disabled"],Rp=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),l=y(""),p=y(""),m=y(""),u=y(!1),d=()=>{o.onSetup("index")},c=()=>{u.value=!0;const b=F.Loading("\u68C0\u6D4B\u4E2D...");S.Network.CheckPublickNet.POST({ipVersion:n.value}).then(_=>{var x,k;if(_!=null&&_.data){if((x=_==null?void 0:_.data)!=null&&x.error){F.Warning(_==null?void 0:_.data.error);return}if((((k=_==null?void 0:_.data)==null?void 0:k.success)||0)==0){const C=_.data.result;C&&C.address?g():f();return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(_=>{F.Error(_)}).finally(()=>{b.Close(),u.value=!1})},f=()=>{de({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(){v()},continuer(){g()},clear(){}})},v=()=>{o.onSetup("ddnsto")},g=()=>{u.value=!0;const b=F.Loading("\u914D\u7F6E\u4E2D...");S.Guide.PostDdns.POST({ipVersion:n.value,serviceName:s.value,domain:l.value,userName:p.value,password:m.value}).then(_=>{if(_!=null&&_.data){const{error:x,scope:k,success:C}=_.data;if(x=="-100"&&k=="guide.ddns"){de({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(x){F.Warning(x);return}if((C||0)==0){a("update:target",l.value),o.onSetup("ddns-success");return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(_=>{F.Error(_)}).finally(()=>{b.Close(),u.value=!1})};return(b,_)=>(i(),r("div",up,[t("form",{class:"actioner-dns",onSubmit:nt(c,["prevent"])},[lp,t("div",{class:ot(["actioner-container_body",e.name])},[e.name=="ali"?(i(),r("div",pp,bp)):e.name=="dnspod"?(i(),r("div",gp,xp)):e.name=="oray"?(i(),r("div",wp,Cp)):E("",!0),t("div",$p,[Dp,t("div",Bp,[z(t("select",{name:"",id:"","onUpdate:modelValue":_[0]||(_[0]=x=>n.value=x)},Sp,512),[[Q,n.value]])]),zp]),t("div",Pp,[Tp,t("div",Ip,[z(t("input",{type:"text",placeholder:"myhost.example.com","onUpdate:modelValue":_[1]||(_[1]=x=>l.value=x),required:""},null,512),[[W,l.value,void 0,{trim:!0}]])])]),t("div",Lp,[Mp,t("div",Op,[z(t("input",{type:"text","onUpdate:modelValue":_[2]||(_[2]=x=>p.value=x),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",required:""},null,512),[[W,p.value,void 0,{trim:!0}]])])]),t("div",Np,[qp,t("div",Vp,[z(t("input",{type:"password","onUpdate:modelValue":_[3]||(_[3]=x=>m.value=x),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",required:""},null,512),[[W,m.value,void 0,{trim:!0}]])])])],2),t("div",Gp,[t("div",{class:"close",onClick:d,type:"button"},"\u8FD4\u56DE"),t("button",{class:"next save",type:"submit",disabled:u.value},"\u4FDD\u5B58",8,jp)])],40,cp)]))}});var ye=Y(Rp,[["__scopeId","data-v-9435cfa6"]]);const Up={class:"action-main"},Wp=P({props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const a=e,o=y(""),n=y("index"),s=u=>{if(u!=null){if(u=="ddnsto"){l();return}n.value=u}else p()},l=()=>{p(),ap({url:a.url})},p=()=>{a.Close&&a.Close()},m=y("ddnsto");return(u,d)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[t("div",Up,[n.value=="index"?(i(),M(i4,{key:0,onSetup:s,active:m.value,"onUpdate:active":d[0]||(d[0]=c=>m.value=c)},null,8,["active"])):n.value=="ddns-ali"?(i(),M(ye,{key:1,onSetup:s,target:o.value,"onUpdate:target":d[1]||(d[1]=c=>o.value=c),name:"ali"},null,8,["target"])):n.value=="ddns-dnspod"?(i(),M(ye,{key:2,onSetup:s,target:o.value,"onUpdate:target":d[2]||(d[2]=c=>o.value=c),name:"dnspod"},null,8,["target"])):n.value=="ddns-oray"?(i(),M(ye,{key:3,onSetup:s,target:o.value,"onUpdate:target":d[3]||(d[3]=c=>o.value=c),name:"oray"},null,8,["target"])):n.value=="ddns-success"?(i(),M(b4,{key:4,onSetup:s,target:o.value},null,8,["target"])):E("",!0)])]),_:1},8,["Close"]))}});var Hp=Y(Wp,[["__scopeId","data-v-6f1d92d9"]]);const Zp=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(Hp,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},Ot=e=>(O("data-v-4b51c7e0"),e=e(),N(),e),Jp={class:"app-container"},Xp={class:"app-container_title"},Kp=Ot(()=>t("span",null,"\u8FDC\u7A0B\u57DF\u540D",-1)),Qp={class:"app-container_domain"},t7={class:"domain-item"},e7=Ot(()=>t("div",{class:"domain-item_name"},[t("span",null,"DDNSTO\uFF1A")],-1)),a7={class:"domain-item_value"},o7=["href","title"],n7={key:1,class:"configure"},i7=Ot(()=>t("a",{class:"item_btn",href:"https://www.kooldns.cn/app/#/devices",target:"_blank"},"\u63A7\u5236\u53F0",-1)),r7={key:0,class:"domain-item"},s7=Ot(()=>t("div",{class:"domain-item_name"},[t("span",null,"myddns_ipv4\uFF1A")],-1)),d7={class:"domain-item_value"},u7={key:0},c7=["href"],l7={key:2,href:"/cgi-bin/luci/admin/services/ddns"},p7=Ot(()=>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)),f7=[p7],m7={key:1,class:"domain-item"},v7=Ot(()=>t("div",{class:"domain-item_name"},[t("span",null,"myddns_ipv6\uFF1A")],-1)),b7={class:"domain-item_value"},g7={key:0},_7=["href"],h7={key:2,href:"/cgi-bin/luci/admin/services/ddns"},k7=Ot(()=>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)),x7=[k7],w7=P({setup(e){let a=!1,o;const n=y({}),s=function(){!a||S.Guide.GetDdns.GET().then(u=>{var d;u!=null&&u.data&&(((d=u==null?void 0:u.data)==null?void 0:d.success)||0)==0&&u.data.result&&(n.value=u.data.result)}).then(()=>{!a||(o=window.setTimeout(s,3e3))})};Ft(()=>{a=!0,o=window.setTimeout(s,1100)}),Gt(()=>{o!==void 0&&window.clearTimeout(o),a=!1});const l=()=>{Zp({url:n.value.ddnstoDomain})},p=R(()=>{const u=n.value.ipv4Domain;return!u||u=="Stopped"||u=="Disabled"?u:`http://${u}`}),m=R(()=>{const u=n.value.ipv6Domain;return!u||u=="Stopped"||u=="Disabled"?u:`http://${u}`});return(u,d)=>{var f,v,g,b;const c=X("GlHelp");return i(),r("div",Jp,[t("div",Xp,[t("span",null,[Kp,D(c,{type:"ddns"})]),t("div",{class:"app-container_tool"},[t("div",{class:"app-container_configure",onClick:l},"\u5FEB\u901F\u914D\u7F6E")])]),t("ul",Qp,[t("li",t7,[e7,t("div",a7,[(f=n.value)!=null&&f.ddnstoDomain?(i(),r("a",{key:0,class:"configure",href:(v=n.value)==null?void 0:v.ddnstoDomain,target:"_blank",rel:"noopener noreferrer",title:(g=n.value)==null?void 0:g.ddnstoDomain},h((b=n.value)==null?void 0:b.ddnstoDomain),9,o7)):(i(),r("span",n7,"\u672A\u5B89\u88C5\u6216\u672A\u914D\u7F6E")),i7])]),w(p)?(i(),r("li",r7,[s7,t("div",d7,[w(p)=="Stopped"||w(p)=="Disabled"?(i(),r("span",u7,h(w(p)),1)):(i(),r("a",{key:1,class:"configure",href:w(p),target:"_blank",rel:"noopener noreferrer"},h(w(p)),9,c7)),w(p)?(i(),r("a",l7,f7)):E("",!0)])])):E("",!0),w(m)?(i(),r("li",m7,[v7,t("div",b7,[w(m)=="Stopped"||w(m)=="Disabled"?(i(),r("span",g7,h(w(m)),1)):(i(),r("a",{key:1,class:"configure",href:w(m),target:"_blank",rel:"noopener noreferrer"},h(w(m)),9,_7)),w(m)?(i(),r("a",h7,x7)):E("",!0)])])):E("",!0)])])}}});var y7=Y(w7,[["__scopeId","data-v-4b51c7e0"]]);const F7={class:"nas-container"},E7={class:"nas-container_card"},C7={class:"nas-container_card"},$7={key:0,class:"nas-container_card"},D7={class:"nas-container_card"},B7={class:"nas-container_card"},Y7=P({setup(e){return(a,o)=>(i(),r("div",F7,[t("div",E7,[D(el)]),t("div",C7,[D(V2)]),w(qt)("dockerd")?(i(),r("div",$7,[D(d5)])):E("",!0),t("div",D7,[D(V8)]),t("div",B7,[D(y7)])]))}});var A7=Y(Y7,[["__scopeId","data-v-66cc4e33"]]);const _t=e=>(O("data-v-4c08c4d6"),e=e(),N(),e),S7={class:"app-container"},z7={class:"app-container_title"},P7=_t(()=>t("span",null,"\u7CFB\u7EDF\u4FE1\u606F",-1)),T7={class:"more_icon",title:"\u67E5\u770B\u7CFB\u7EDF\u4FE1\u606F"},I7={class:"DeviceBlock"},L7=_t(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/system/flash"},"\u5907\u4EFD\u5347\u7EA7")],-1)),M7=_t(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/store/pages/maintance"},"\u63D2\u4EF6\u5907\u4EFD")],-1)),O7={class:"item-label"},N7=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u6E29\u5EA6")],-1)),q7={class:"item-label_value"},V7={class:"item-label"},G7=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u4F7F\u7528\u7387")],-1)),j7={class:"item-label_value"},R7={class:"item-label"},U7=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u5B58\u4F7F\u7528\u7387")],-1)),W7={class:"item-label_value"},H7={class:"item-label"},Z7=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"\u8BBE\u5907\u578B\u53F7")],-1)),J7={class:"item-label_value"},X7={class:"item-label"},K7=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"\u56FA\u4EF6\u7248\u672C")],-1)),Q7={class:"item-label_value"},tf={class:"item-label"},ef=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u6838\u7248\u672C")],-1)),af={class:"item-label_value"},of={class:"item-label"},nf=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5DF2\u542F\u52A8")],-1)),rf={class:"item-label_value"},sf={class:"item-label"},df=_t(()=>t("div",{class:"item-label_key"},[t("span",null,"\u7CFB\u7EDF\u65F6\u95F4")],-1)),uf={class:"item-label_value"},cf=P({setup(e){const a=Ce(),o=R(()=>a.version),n=R(()=>a.systemStatus),s=y(!1),l=R(()=>{var f;return((f=n.value)==null?void 0:f.cpuUsage)||0}),p=R(()=>{var f;return((f=n.value)==null?void 0:f.cpuTemperature)||0}),m=R(()=>{var v;const f=((v=n.value)==null?void 0:v.memAvailablePercentage)||100;return 100-f}),u=yt.stampForm;Ft(()=>{});const d=()=>{s.value=!s.value},c=()=>{d(),lt.installAndGo("app-meta-netdata","NetData","/cgi-bin/luci/admin/status/netdata")};return(f,v)=>{var b,_,x,k,C;const g=X("progress-item");return i(),r("div",S7,[t("div",z7,[P7,t("span",T7,[D($t,{onClick:d})]),z(t("div",I7,[t("div",{class:"menu_background",onClick:d}),t("ul",null,[t("li",null,[t("a",{onClick:c},"\u7CFB\u7EDF\u76D1\u63A7")]),L7,M7])],512),[[wt,s.value]])]),t("div",O7,[N7,t("div",q7,[D(g,{value:w(p)/1.5,text:`${w(p)}\u2103`},null,8,["value","text"])])]),t("div",V7,[G7,t("div",j7,[D(g,{value:w(l),text:`${w(l)}%`},null,8,["value","text"])])]),t("div",R7,[U7,t("div",W7,[D(g,{value:w(m),text:`${w(m)}%`},null,8,["value","text"])])]),t("div",H7,[Z7,t("div",J7,[t("span",null,h((b=w(o))==null?void 0:b.model),1)])]),t("div",X7,[K7,t("div",Q7,[t("span",null,h((_=w(o))==null?void 0:_.firmwareVersion),1)])]),t("div",tf,[ef,t("div",af,[t("span",null,h((x=w(o))==null?void 0:x.kernelVersion),1)])]),t("div",of,[nf,t("div",rf,[t("span",null,h(w(u)((k=w(n))==null?void 0:k.uptime)),1)])]),t("div",sf,[df,t("div",uf,[t("span",null,h((C=w(n))==null?void 0:C.localtime),1)])])])}}});var lf=Y(cf,[["__scopeId","data-v-4c08c4d6"]]);const va=/\d+\.\d+\.\d+\.\d+/,pf=e=>va.test(e)&&te.IPv4.isValid(e),Ct=e=>{const a=te.IPv4.parse(e).toByteArray();return a[0]<<24|a[1]<<16|a[2]<<8|a[3]},He=e=>te.fromByteArray([e>>24&255,e>>16&255,e>>8&255,e&255]).toString(),ff=e=>{if(!va.test(e)||!te.IPv4.isIPv4(e))return!1;let a=0,o=Ct(e);for(let n=31;n>=0&&(o&1<<n)!=0;n--)a=a+(1<<n);return(~a&o)==0},mf=(e,a,o,n)=>{let s=Ct(e)&Ct(a),l=Ct(o),p=Ct(n),u=~Ct(a);return l<p&&l>s+1&&p<s+u},vf=(e,a)=>{let o=Ct(a),n=Ct(e)&o,s=~o,l;return s>=105?(l=n|s-5,n=n|100):s>=3?(l=n|s-1,n=n|2):(n=n|1,l=n),[He(n),He(l)]},bf=e=>te.IPv4.subnetMaskFromPrefixLength(e).toString();var kt={isValidMask:ff,isValidIPv4:pf,isValidMaskRange:mf,calcMaskRange:vf,prefixToMask:bf};const ft=e=>(O("data-v-9cffddcc"),e=e(),N(),e),gf=["onSubmit"],_f=ft(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u5185\u7F51\u914D\u7F6E")],-1)),hf={class:"actioner-dns_body"},kf={class:"label-item"},xf=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5730\u5740")],-1)),wf={class:"label-item_value"},yf={class:"label-item"},Ff=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5B50\u7F51\u63A9\u7801")],-1)),Ef={class:"label-item_value"},Cf={key:0,class:"chose_dhcp"},$f={key:0,class:"dhcp_info"},Df={key:1,class:"dhcp_info"},Bf={class:"label-item"},Yf=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1)),Af={class:"label-item_value"},Sf={class:"label-item"},zf=ft(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1)),Pf={class:"label-item_value"},Tf={class:"actioner-dns_footer"},If=["disabled"],Lf={key:1,class:"actioner-dns"},Mf=ft(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u66F4\u6362\u914D\u7F6E")],-1)),Of={class:"actioner-dns_body"},Nf={key:0,class:"setting_status"},qf=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)),Vf=ft(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u6210\u529F",-1)),Gf=["href"],jf={key:1,class:"setting_status"},Rf=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)),Uf=ft(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u5931\u8D25",-1)),Wf=ft(()=>t("p",null,"\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E",-1)),Hf={key:2,class:"setting_status"},Zf=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)),Jf=ft(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u8D85\u65F6",-1)),Xf=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)),Kf=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 l=y(""),p=y(2),m=y(!1),u=y("timeout");let d=!0;(()=>{S.Guide.GetLan.GET().then(_=>{_.data.result&&(m.value=_.data.result.enableDhcp||!1,_.data.result.enableDhcp=!1,n.value=_.data.result,_.data.result.lanIp!==location.hostname&&(d=!1))})})();const f=()=>{const _=n.value;if(!kt.isValidIPv4(_.lanIp)){F.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!kt.isValidMask(_.netMask)){F.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}const x=kt.calcMaskRange(_.lanIp,_.netMask);_.dhcpStart=x[0],_.dhcpEnd=x[1],n.value=_},v=()=>{const _=n.value;if(!kt.isValidIPv4(_.lanIp)){F.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!kt.isValidMask(_.netMask)){F.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(_.enableDhcp&&!(kt.isValidIPv4(_.dhcpStart)&&kt.isValidIPv4(_.dhcpEnd)&&kt.isValidMaskRange(_.lanIp,_.netMask,_.dhcpStart,_.dhcpEnd))){F.Warning("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const x=F.Loading("\u6B63\u5728\u914D\u7F6E\u2026\u8BF7\u7A0D\u7B49",30);let k=0;const C=B=>{u.value=B,o.value=1,k=1,x.Close()},A=()=>{const B=new Date().getTime()+3e4,$=d?location.protocol+"//"+_.lanIp+(location.port?":"+location.port:""):location.origin,q=$+"/luci-static/resources/icons/loading.gif",H=()=>{k==0&&(new Date().getTime()>B?C("timeout"):window.setTimeout(Z,2e3))},G=()=>{k==0&&(l.value=$+location.pathname,C("success"),window.setTimeout(()=>{p.value=1},1e3),window.setTimeout(()=>{location.href=l.value},2e3))},Z=()=>{if(k!=0)return;console.log("check online ",q);const ht=new Image;ht.onload=G,ht.onerror=H,ht.src=q};window.setTimeout(Z,5e3)};S.Guide.LanIp.POST(_).then(B=>{var $;if(B!=null&&B.data){if((B.data.success||0)==0)return;if(($=B.data)!=null&&$.error)throw B.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(B=>{k==0&&(C("fail"),F.Error(B))}),A(),window.setTimeout(()=>{k==0&&C("timeout")},3e4)},g=_=>{_.preventDefault(),a.Close&&a.Close()},b=_=>{location.reload()};return(_,x)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[o.value==0?(i(),r("form",{key:0,class:"actioner-dns",onSubmit:nt(v,["prevent"])},[_f,t("div",hf,[t("div",kf,[xf,t("div",wf,[z(t("input",{type:"text",placeholder:"192.168.100.1",required:"","onUpdate:modelValue":x[0]||(x[0]=k=>n.value.lanIp=k),onChange:f},null,544),[[W,n.value.lanIp,void 0,{trim:!0}]])])]),t("div",yf,[Ff,t("div",Ef,[z(t("input",{type:"text",placeholder:"255.255.255.0",required:"","onUpdate:modelValue":x[1]||(x[1]=k=>n.value.netMask=k),onChange:f},null,544),[[W,n.value.netMask,void 0,{trim:!0}]])])]),m.value?(i(),r("div",Cf,[D(ea,{modelValue:n.value.enableDhcp,"onUpdate:modelValue":x[2]||(x[2]=k=>n.value.enableDhcp=k)},{default:V(()=>[n.value.enableDhcp?(i(),r("span",$f,"\u4FEE\u6539DHCP\u670D\u52A1")):(i(),r("span",Df,"\u4FDD\u6301DHCP\u670D\u52A1\u8BBE\u7F6E"))]),_:1},8,["modelValue"])])):E("",!0),n.value.enableDhcp?(i(),r(L,{key:1},[t("div",Bf,[Yf,t("div",Af,[z(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":x[3]||(x[3]=k=>n.value.dhcpStart=k)},null,512),[[W,n.value.dhcpStart,void 0,{trim:!0}]])])]),t("div",Sf,[zf,t("div",Pf,[z(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":x[4]||(x[4]=k=>n.value.dhcpEnd=k)},null,512),[[W,n.value.dhcpEnd,void 0,{trim:!0}]])])])],64)):E("",!0)]),t("div",Tf,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:s.value},"\u786E\u8BA4",8,If),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:g},"\u53D6\u6D88")])],40,gf)):o.value==1?(i(),r("div",Lf,[Mf,t("div",Of,[u.value=="success"?(i(),r("div",Nf,[qf,Vf,t("a",{href:l.value,class:"NewAdress"},h(p.value)+"s\u540E \u8DF3\u8F6C\u65B0\u5730\u5740",9,Gf)])):u.value=="fail"?(i(),r("div",jf,[Rf,Uf,Wf,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:b},"\u6211\u77E5\u9053\u4E86")])):u.value=="timeout"?(i(),r("div",Hf,[Zf,Jf,Xf,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:b},"\u5237\u65B0\u9875\u9762")])):E("",!0)])])):E("",!0)]),_:1},8,["Close"]))}});var Qf=Y(Kf,[["__scopeId","data-v-9cffddcc"]]);const tm=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=tt(Qf,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},vt=e=>(O("data-v-0384f3ac"),e=e(),N(),e),em={key:0,class:"actioner-dns"},am=vt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")],-1)),om={class:"actioner-dns_body"},nm=vt(()=>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)),im={key:0,class:"disk_loading_icon"},rm=vt(()=>t("span",{class:"disk_loading_info"},"\u6B63\u5728\u52A0\u8F7D\u4E2D...",-1)),sm={key:1,class:"disk_tips"},dm=vt(()=>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)),um={class:"label-item"},cm=vt(()=>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)),lm={class:"label-item_value"},pm=vt(()=>t("option",{value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8",-1)),fm=["value"],mm={class:"label-item"},vm=vt(()=>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)),bm={class:"label-item_value"},gm=vt(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A",-1)),_m=["value","disabled"],hm={class:"sandbox_tips"},km=vt(()=>t("span",null,"\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E",-1)),xm={class:"sandbox_info timeout"},wm=U("\u5373\u5C06\u91CD\u542F\u8BBE\u5907 "),ym=vt(()=>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)),Fm={key:0,class:"actioner-dns_footer"},Em=["disabled"],Cm={key:1,class:"actioner-tips"},$m=vt(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u6E29\u99A8\u63D0\u793A")],-1)),Dm=vt(()=>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)),Bm={key:2,class:"actioner-tips"},Ym=vt(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u9519\u8BEF")],-1)),Am={class:"actioner-tips_body"},Sm={class:"sandbox_info"},zm=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0);y("disk");const n=y(""),s=y(3),l=y(""),p=y([]),m=y(""),u=y(null);(()=>{S.Nas.SandboxDisks.GET().then(k=>{var C;if(k!=null&&k.data&&(C=k.data)!=null&&C.result){u.value=k.data.result;return}throw"\u52A0\u8F7D\u78C1\u76D8\u4FE1\u606F\u5931\u8D25"}).catch(k=>{n.value=k,o.value=3})})();const c=()=>S.System.Reboot.POST({name:l.value,path:m.value}).then(k=>{var C;if(!(k!=null&&k.data&&(((C=k==null?void 0:k.data)==null?void 0:C.success)||0)==0))throw"\u672A\u77E5\u9519\u8BEF"}),f=k=>{var C,A;m.value="",p.value=l.value&&((A=(C=u.value)==null?void 0:C.disks.find(B=>B.path==l.value))==null?void 0:A.childrens)||[]},v=()=>{s.value>0&&(s.value-=1,window.setTimeout(v,1e3))},g=k=>{k.preventDefault(),a.Close&&a.Close()},b=()=>{new Promise((k,C)=>{const A="/luci-static/resources/icons/loading.gif",B=()=>{window.setTimeout($,2e3)},$=()=>{const q=new Image;q.onload=k,q.onerror=B,q.src=A};window.setTimeout($,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},_=k=>{const C=F.Loading("\u914D\u7F6E\u6C99\u7BB1\u91CD\u542F\u4E2D...");S.Nas.Sandbox.POST({path:m.value}).then(A=>{var B;if(A!=null&&A.data){if((A.data.success||0)==0)return o.value=2,window.setTimeout(v,1e3),c();if((B=A.data)!=null&&B.error)throw A.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).then(b).catch(A=>F.Warning(A)).finally(()=>C.Close())},x=()=>{o.value=0};return(k,C)=>{const A=X("icon-loading");return i(),M(et,{Close:e.Close,type:1},{default:V(()=>[o.value==0||o.value==2?(i(),r("div",em,[am,t("div",om,[nm,o.value==0?(i(),r(L,{key:0},[u.value?E("",!0):(i(),r("div",im,[D(A,{size:38,color:"currentColor"}),rm])),u.value&&u.value.disks.length==0?(i(),r("div",sm,[D(gt),dm])):E("",!0),u.value&&u.value.disks.length>0?(i(),r(L,{key:2},[t("div",um,[cm,t("div",lm,[z(t("select",{name:"",id:"",onChange:f,"onUpdate:modelValue":C[0]||(C[0]=B=>l.value=B)},[pm,(i(!0),r(L,null,j(u.value.disks,(B,$)=>(i(),r("option",{value:B.path,key:$},h(B.venderModel)+"\uFF08"+h(B.size)+"\uFF09 ",9,fm))),128))],544),[[Q,l.value]])])]),t("div",mm,[vm,t("div",bm,[z(t("select",{name:"",id:"","onUpdate:modelValue":C[1]||(C[1]=B=>m.value=B)},[gm,(i(!0),r(L,null,j(p.value,(B,$)=>(i(),r("option",{value:B.path,key:$,disabled:B.sizeInt<(1<<30)*1||B.isSystemRoot},h(B.name)+"\uFF08"+h(B.filesystem||"\u672A\u683C\u5F0F\u5316")+"\uFF09"+h(B.total),9,_m))),128))],512),[[Q,m.value]])])]),t("div",hm,[D(gt),km])],64)):E("",!0)],64)):E("",!0),o.value==2?(i(),r(L,{key:1},[t("p",xm,[wm,t("span",null,"\uFF08"+h(s.value)+"s\uFF09",1)]),ym],64)):E("",!0)]),o.value==0?(i(),r("div",Fm,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:!m.value,onClick:C[2]||(C[2]=B=>o.value=1)},"\u5F00\u542F\u6C99\u7BB1",8,Em),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:g},"\u53D6\u6D88")])):E("",!0)])):E("",!0),o.value==1?(i(),r("div",Cm,[$m,Dm,t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:_},"\u7EE7\u7EED"),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:x},"\u53D6\u6D88")])])):E("",!0),o.value==3?(i(),r("div",Bm,[Ym,t("div",Am,[t("p",Sm,h(n.value),1)]),t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:x},"\u53D6\u6D88")])])):E("",!0)]),_:1},8,["Close"])}}});var Pm=Y(zm,[["__scopeId","data-v-0384f3ac"]]);const Tm=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=tt(Pm,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},ba=e=>(O("data-v-4db2efb4"),e=e(),N(),e),Im={key:0,class:"actioner-dns"},Lm=ba(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")],-1)),Mm=ba(()=>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)),Om={class:"actioner-dns_footer"},Nm=["disabled"],qm=["disabled"],Vm=["disabled"],Gm=P({props:{Close:{type:Function,required:!0}},setup(e){const a=e,o=y(0),n=y(!1),s=()=>{new Promise((d,c)=>{const f="/luci-static/resources/icons/loading.gif",v=()=>{window.setTimeout(g,2e3)},g=()=>{const b=new Image;b.onload=d,b.onerror=v,b.src=f};window.setTimeout(g,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},l=()=>{n.value=!0;const d=F.Loading("\u63D0\u4EA4\u4E2D...");S.Nas.SandboxCommit.POST().then(c=>{var f,v;if(c!=null&&c.data)if((((f=c==null?void 0:c.data)==null?void 0:f.success)||0)==0){F.Loading("\u8BBE\u5907\u91CD\u542F\u4E2D...");return}else(v=c==null?void 0:c.data)!=null&&v.error&&alert(c.data.error);throw"\u672A\u77E5\u9519\u8BEF"}).then(s).catch(c=>{F.Error(c),n.value=!1}).finally(()=>d.Close())},p=()=>{n.value=!0;const d=F.Loading("\u91CD\u7F6E\u4E2D...");S.Nas.SandboxReset.POST().then(c=>{var f,v;if(c!=null&&c.data)if((((f=c==null?void 0:c.data)==null?void 0:f.success)||0)==0){F.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(v=c==null?void 0:c.data)!=null&&v.error&&alert(c.data.error);throw"\u672A\u77E5\u9519\u8BEF"}).then(s).catch(c=>{F.Error(c),n.value=!1}).finally(()=>d.Close())},m=()=>{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 d=F.Loading("\u6267\u884C\u4E2D...");S.Nas.SandboxExit.POST().then(c=>{var f,v;if(c!=null&&c.data)if((((f=c==null?void 0:c.data)==null?void 0:f.success)||0)==0){F.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(v=c==null?void 0:c.data)!=null&&v.error&&alert(c.data.error);throw"\u672A\u77E5\u9519\u8BEF"}).then(s).catch(c=>{F.Error(c),n.value=!1}).finally(()=>d.Close())},u=d=>{d.preventDefault(),a.Close&&a.Close()};return(d,c)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[o.value==0?(i(),r("div",Im,[Lm,Mm,t("div",Om,[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:l,disabled:n.value},"\u63D0\u4EA4",8,Nm),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p,disabled:n.value},"\u91CD\u7F6E",8,qm),t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:m,disabled:n.value},"\u9000\u51FA",8,Vm),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:u},"\u53D6\u6D88")])])):E("",!0)]),_:1},8,["Close"]))}});var jm=Y(Gm,[["__scopeId","data-v-4db2efb4"]]);const Rm=()=>{const e=document.createElement("div");document.body.appendChild(e);const a=tt(jm,{Close:()=>{o()}});a.mount(e);const o=()=>{a.unmount(),e.remove()};return{Close:o}},Um={class:"nav-container"},Wm=["onClick"],Hm={key:1,class:"btn_styles color3 app-update-button",onclick:"window.location.href='/cgi-bin/luci/admin/system/ota'"},Zm=U(" \u56FA\u4EF6\u66F4\u65B0 "),Jm={key:0,style:{display:"inline-block"}},Xm={key:1},Km=["disabled"],Qm=U(" DNS\u914D\u7F6E "),t9={key:0,style:{display:"inline-block"}},e9=P({setup(e){const a=Ce(),o=ce(),n=R(()=>o.status);y(!1),y(!0);const s=y(),l=()=>{oa()},p=()=>{Tm()},m=()=>{Rm()},u=()=>{alert("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u6C99\u7BB1\u6A21\u5F0F")},d=()=>{tm()},c=()=>{ra()},f=()=>{var v,g,b,_;window.open(`${(g=(v=window.quickstart_configs)==null?void 0:v.ttyd)!=null&&g.ssl?"https":"http"}://${window.location.hostname}:${((_=(b=window.quickstart_configs)==null?void 0:b.ttyd)==null?void 0:_.port)||7681}/`,"_blank")};return qt("sandbox")&&S.Nas.GetSandbox.GET().then(g=>{var b,_,x;g!=null&&g.data&&((((b=g==null?void 0:g.data)==null?void 0:b.success)||0)==0?(_=g==null?void 0:g.data)!=null&&_.result&&(s.value=g.data.result):(x=g==null?void 0:g.data)!=null&&x.error&&alert(g.data.error))}).catch(g=>F.Warning(g)),(v,g)=>{var x,k,C,A,B,$;const b=X("router-link"),_=X("icon-loading");return i(),r("div",Um,[D(b,{to:"/network",custom:""},{default:V(({navigate:q})=>[t("button",{class:"btn_styles color1",onClick:q},"\u7F51\u7EDC\u5411\u5BFC",8,Wm)]),_:1}),w(qt)("ttyd")?(i(),r("button",{key:0,class:"btn_styles color2 app-btn-ttyd",onClick:f},"\u7EC8\u7AEF")):E("",!0),w(qt)("ota")?(i(),r("button",Hm,[Zm,w(a).checkUpdate==null?(i(),r("span",Jm,[D(_,{size:"0.8em",color:"currentColor"})])):(x=w(a).checkUpdate)!=null&&x.needUpdate?(i(),r("i",Xm)):E("",!0)])):E("",!0),t("button",{class:"btn_styles color4",onClick:d},"\u5185\u7F51\u914D\u7F6E"),t("button",{class:"btn_styles color5",onClick:l,disabled:!((k=w(n))!=null&&k.proto)},[Qm,(C=w(n))!=null&&C.proto?E("",!0):(i(),r("span",t9,[D(_,{size:"0.8em",color:"currentColor"})]))],8,Km),t("button",{class:"btn_styles color1",onClick:c},"\u8F6F\u4EF6\u6E90\u914D\u7F6E"),w(qt)("sandbox")?(i(),r(L,{key:2},[((A=s.value)==null?void 0:A.status)=="unsupport"?(i(),r("button",{key:0,class:"btn_styles color2",onClick:u},"\u5F00\u542F\u6C99\u7BB1")):((B=s.value)==null?void 0:B.status)=="stopped"?(i(),r("button",{key:1,class:"btn_styles color3",onClick:p},"\u5F00\u542F\u6C99\u7BB1")):(($=s.value)==null?void 0:$.status)=="running"?(i(),r("button",{key:2,class:"btn_styles color4",onClick:m},"\u6C99\u7BB1\u5DF2\u5F00\u542F")):E("",!0)],64)):E("",!0)])}}});var a9=Y(e9,[["__scopeId","data-v-0d223b54"]]);const _e=e=>(O("data-v-d324f700"),e=e(),N(),e),o9={id:"page"},n9=_e(()=>t("div",{style:{height:"48px","text-align":"right"}},[t("a",{onclick:"void(0)",href:"https://www.istoreos.com/",target:"_blank",style:{"text-decoration":"none",color:"white","line-height":"1.5em"}},"iStoreOS\u5B98\u7F51")],-1)),i9=_e(()=>t("em",null,null,-1)),r9=_e(()=>t("em",null,null,-1)),s9=_e(()=>t("em",null,null,-1)),d9=P({setup(e){return to(),(a,o)=>(i(),r("div",o9,[n9,D(a0),i9,D(a9),D(A7),r9,D(lf),s9]))}});var u9=Y(d9,[["__scopeId","data-v-d324f700"]]);const c9={};function l9(e,a){const o=X("router-view");return i(),M(o)}var p9=Y(c9,[["render",l9]]);const f9={},m9={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"},v9=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),b9=[v9];function g9(e,a){return i(),r("svg",m9,b9)}var _9=Y(f9,[["render",g9]]);const h9={},k9={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"},x9=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),w9=[x9];function y9(e,a){return i(),r("svg",k9,w9)}var F9=Y(h9,[["render",y9]]);const E9={},C9={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"},$9=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),D9=[$9];function B9(e,a){return i(),r("svg",C9,D9)}var Y9=Y(E9,[["render",B9]]);const Wt=e=>(O("data-v-082ffcaf"),e=e(),N(),e),A9={id:"page"},S9=Wt(()=>t("div",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC",-1)),z9=Wt(()=>t("div",{class:"desc"},"\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB",-1)),P9={class:"network-containers"},T9={class:"network-container_item"},I9={class:"cover"},L9={class:"thumbnail"},M9=Wt(()=>t("span",null,"\u5BBD\u5E26\u62E8\u53F7\u8FDE\u63A5",-1)),O9={class:"network-container_item"},N9={class:"cover"},q9={class:"thumbnail"},V9=Wt(()=>t("span",null,"\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668",-1)),G9={class:"network-container_item"},j9={class:"cover"},R9={class:"thumbnail"},U9=Wt(()=>t("span",null,"\u914D\u7F6E\u4E3A\u65C1\u8DEF\u7531",-1)),W9=Wt(()=>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)),H9=P({setup(e){return(a,o)=>{const n=X("router-link");return i(),r("div",A9,[S9,z9,t("div",P9,[t("div",T9,[D(n,{to:"/network/pppoe"},{default:V(()=>[t("div",I9,[t("div",L9,[D(F9),M9])])]),_:1})]),t("div",O9,[D(n,{to:"/network/dhcp"},{default:V(()=>[t("div",N9,[t("div",q9,[D(_9),V9])])]),_:1})]),t("div",G9,[D(n,{to:"/network/gateway"},{default:V(()=>[t("div",j9,[t("div",R9,[D(Y9),U9])])]),_:1})])]),W9])}}});var Z9=Y(H9,[["__scopeId","data-v-082ffcaf"]]);const At=e=>(O("data-v-16746f19"),e=e(),N(),e),J9={key:0,id:"page"},X9=At(()=>t("h2",{class:"title"},"\u914D\u7F6E\u5BBD\u5E26\u8D26\u53F7",-1)),K9=At(()=>t("h3",{class:"desc"},"\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B",-1)),Q9={class:"network-message"},tv={key:0},ev=U(" \u56E0\u4E3A\u60A8\u7684\u8BBE\u5907"),av=At(()=>t("span",null,"\u6CA1\u6709 WAN \u53E3",-1)),ov=U("\uFF0C\u65E0\u6CD5\u8D70\u672C\u8BBE\u7F6E\u5411\u5BFC\uFF0C\u5177\u4F53\u8BF7\u770B "),nv=At(()=>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)),iv=[ev,av,ov,nv],rv=["onSubmit"],sv=At(()=>t("div",{class:"label-key"},[t("span",null,"\u5BBD\u5E26\u8D26\u53F7")],-1)),dv=["disabled"],uv=At(()=>t("div",{class:"label-key"},[t("span",null,"\u5BC6\u7801")],-1)),cv=["disabled"],lv={key:0,class:"chose_dhcp"},pv=At(()=>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)),fv={key:1,class:"msg"},mv={class:"btns"},vv=["disabled"],bv=["onClick"],gv={key:1,id:"page"},_v=At(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),hv={class:"btns"},kv=["onClick"],xv=["onClick"],wv=P({setup(e){const a=y(0),o=y({}),n=y(""),s=y(!1),l=y(0),p=y(!1);(()=>T(this,null,function*(){var d,c;s.value=!0;try{const f=yield Promise.all([S.Guide.Pppoe.GET(),S.Guide.GetLan.GET()]);if(f[0].data){const{success:v,error:g,result:b}=f[0].data;b&&(b.enableLanDhcp=!1,o.value=b),v==-1011&&(s.value=!0,l.value=v)}(d=f[1].data)!=null&&d.result&&(((c=f[1].data)==null?void 0:c.result).enableDhcp||(p.value=!0,o.value.enableLanDhcp=!0))}catch(f){n.value=f}l.value==0&&(s.value=!1)}))();const u=()=>T(this,null,function*(){const d=o.value.account||"",c=o.value.password||"";if(d==""){n.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(c==""){n.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}s.value=!0;const f=F.Loading("\u914D\u7F6E\u4E2D...");try{const v=yield S.Guide.Pppoe.POST({account:d,password:c});if(v!=null&&v.data){const{error:g,success:b}=v.data;g&&(n.value=g),(b==null||b==0)&&(F.Success("\u914D\u7F6E\u6210\u529F"),a.value=1)}}catch(v){n.value=v}s.value=!1,f.Close()});return(d,c)=>{const f=X("switch-box"),v=X("router-link");return a.value==0?(i(),r("div",J9,[X9,K9,t("div",Q9,[l.value==-1011?(i(),r("li",tv,iv)):E("",!0)]),t("form",{onSubmit:nt(u,["prevent"])},[t("label",null,[sv,z(t("input",{type:"text","onUpdate:modelValue":c[0]||(c[0]=g=>o.value.account=g),placeholder:"\u5BBD\u5E26\u8D26\u53F7",required:"",disabled:s.value},null,8,dv),[[W,o.value.account,void 0,{trim:!0}]])]),t("label",null,[uv,z(t("input",{type:"password","onUpdate:modelValue":c[1]||(c[1]=g=>o.value.password=g),placeholder:"\u5BBD\u5E26\u5BC6\u7801",required:"",disabled:s.value},null,8,cv),[[W,o.value.password,void 0,{trim:!0}]])]),p.value?(i(),r("div",lv,[D(f,{modelValue:o.value.enableLanDhcp,"onUpdate:modelValue":c[2]||(c[2]=g=>o.value.enableLanDhcp=g)},{default:V(()=>[pv]),_:1},8,["modelValue"])])):E("",!0),n.value?(i(),r("div",fv,h(n.value),1)):E("",!0),t("div",mv,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:s.value},"\u4FDD\u5B58\u914D\u7F6E",8,vv),D(v,{to:"/network",custom:""},{default:V(({navigate:g})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:g},"\u8FD4\u56DE",8,bv)]),_:1})])],40,rv)])):a.value==1?(i(),r("div",gv,[_v,t("div",hv,[D(v,{to:"/",custom:""},{default:V(({navigate:g})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:g},"\u8FDB\u5165\u63A7\u5236\u53F0",8,kv)]),_:1}),D(v,{to:"/network",custom:""},{default:V(({navigate:g})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:g},"\u8FD4\u56DE",8,xv)]),_:1})])])):E("",!0)}}});var yv=Y(wv,[["__scopeId","data-v-16746f19"]]);const st=e=>(O("data-v-0d3a64fa"),e=e(),N(),e),Fv={key:0,id:"page"},Ev=st(()=>t("h2",{class:"title"},"\u914D\u7F6E\u4E92\u8054\u7F51",-1)),Cv=st(()=>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)),$v={class:"network-message"},Dv={key:0},Bv=U(" \u56E0\u4E3A\u60A8\u7684\u8BBE\u5907"),Yv=st(()=>t("span",null,"\u6CA1\u6709 WAN \u53E3",-1)),Av=U("\uFF0C\u65E0\u6CD5\u4F7F\u7528\u672C\u8BBE\u7F6E\u5411\u5BFC\uFF0C\u5177\u4F53\u8BF7\u770B "),Sv=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)),zv=[Bv,Yv,Av,Sv],Pv=["onSubmit"],Tv=st(()=>t("div",{class:"label-key"},[t("span",null,"WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),Iv=st(()=>t("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6IP\u5730\u5740\uFF08DHCP\uFF09",-1)),Lv=st(()=>t("option",{value:"static"},"\u9759\u6001IP\u5730\u5740",-1)),Mv=[Iv,Lv],Ov=st(()=>t("div",{class:"label-key"},[t("span",null,"IP\u5730\u5740")],-1)),Nv=["disabled"],qv={key:0,class:"msg"},Vv=st(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),Gv=["disabled"],jv={key:1,class:"msg"},Rv=st(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740")],-1)),Uv=["disabled"],Wv=st(()=>t("div",{class:"label-key"},[t("span",null,"DNS \u914D\u7F6E\u65B9\u5F0F")],-1)),Hv=["disabled"],Zv=st(()=>t("option",{value:"manual"},"\u624B\u5DE5\u914D\u7F6E",-1)),Jv=st(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),Xv=["onUpdate:modelValue","disabled"],Kv=st(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),Qv=["disabled"],tb=st(()=>t("div",{class:"label-key"},"\u5907\u7528DNS\u670D\u52A1\u5668",-1)),eb=["disabled"],ab={key:2,class:"chose_dhcp"},ob=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)),nb={key:3,class:"msgs"},ib={class:"btns"},rb=["disabled"],sb=["onClick"],db={key:1,id:"page"},ub=st(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),cb={class:"btns"},lb=["onClick"],pb=["onClick"],fb=P({setup(e){const a=y(0),o=y({}),n=y(""),s=y(""),l=y(""),p=y(!1),m=y(""),u=y(""),d=y(0),c=yt.checkIsIP,f=y(!1);(()=>T(this,null,function*(){var k,C;p.value=!0;try{const A=yield Promise.all([S.Guide.ClientModel.GET(),S.Guide.GetLan.GET()]);if(A[0]){const B=A[0];if(B.data){const{success:$,error:q,result:H}=B.data;H&&(H.wanProto!="dhcp"&&H.wanProto!="static"&&(H.wanProto="dhcp",H.dnsProto="auto"),H.enableLanDhcp=!1,o.value=H),$==-1011&&(d.value=$,p.value=!0)}}(k=A[1].data)!=null&&k.result&&(((C=A[1].data)==null?void 0:C.result).enableDhcp||(f.value=!0,o.value.enableLanDhcp=!0))}catch(A){n.value=A}d.value==0&&(p.value=!1)}))();const g=k=>{k.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)},b=k=>{const C=k.target;if(C.value==""){m.value="";return}c(C.value)?m.value="":m.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684IP\u5730\u5740"},_=k=>{const C=k.target;if(C.value==""){u.value="";return}c(C.value)?u.value="":u.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u5730\u5740"},x=()=>T(this,null,function*(){const k={};switch(o.value.wanProto){case"dhcp":break;case"static":k.staticIp=o.value.staticIp,k.subnetMask=o.value.subnetMask,k.gateway=o.value.gateway;break}switch(o.value.dnsProto){case"auto":break;case"manual":k.manualDnsIp=[],o.value.manualDnsIp!=null&&o.value.manualDnsIp.length>0?k.manualDnsIp=o.value.manualDnsIp:(k.manualDnsIp.push(s.value),l.value&&k.manualDnsIp.push(l.value));break}k.dnsProto=o.value.dnsProto,k.wanProto=o.value.wanProto,k.enableLanDhcp=o.value.enableLanDhcp;const C=F.Loading("\u914D\u7F6E\u4E2D....");p.value=!0;try{const A=yield S.Guide.ClientModel.POST(k);if(A!=null&&A.data){const{success:B,error:$}=A==null?void 0:A.data;$&&(n.value=$),(B==null||B==0)&&(F.Success("\u914D\u7F6E\u6210\u529F"),a.value=1)}}catch(A){n.value=A}p.value=!1,C.Close()});return(k,C)=>{const A=X("switch-box"),B=X("router-link");return a.value==0?(i(),r("div",Fv,[Ev,Cv,t("div",$v,[d.value==-1011?(i(),r("li",Dv,zv)):E("",!0)]),t("form",{onSubmit:nt(x,["prevent"])},[t("label",null,[Tv,z(t("select",{"onUpdate:modelValue":C[0]||(C[0]=$=>o.value.wanProto=$),onInput:g},Mv,544),[[Q,o.value.wanProto]])]),o.value.wanProto=="static"?(i(),r(L,{key:0},[t("label",null,[Ov,z(t("input",{type:"text","onUpdate:modelValue":C[1]||(C[1]=$=>o.value.staticIp=$),placeholder:"\u9759\u6001IP\u5730\u5740",required:"",disabled:p.value,onInput:b},null,40,Nv),[[W,o.value.staticIp,void 0,{trim:!0}]])]),m.value?(i(),r("p",qv,h(m.value),1)):E("",!0),t("label",null,[Vv,z(t("input",{type:"text","onUpdate:modelValue":C[2]||(C[2]=$=>o.value.subnetMask=$),placeholder:"\u5B50\u7F51\u63A9\u7801",required:"",disabled:p.value,onInput:_},null,40,Gv),[[W,o.value.subnetMask,void 0,{trim:!0}]])]),u.value?(i(),r("p",jv,h(u.value),1)):E("",!0),t("label",null,[Rv,z(t("input",{type:"text","onUpdate:modelValue":C[3]||(C[3]=$=>o.value.gateway=$),placeholder:"\u7F51\u5173\u5730\u5740",required:"",disabled:p.value},null,8,Uv),[[W,o.value.gateway,void 0,{trim:!0}]])])],64)):E("",!0),t("label",null,[Wv,z(t("select",{"onUpdate:modelValue":C[4]||(C[4]=$=>o.value.dnsProto=$)},[t("option",{value:"auto",disabled:o.value.wanProto=="static"},"\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09",8,Hv),Zv],512),[[Q,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,($,q)=>(i(),r("label",null,[Jv,z(t("input",{type:"text","onUpdate:modelValue":H=>o.value.manualDnsIp[q]=H,placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:p.value},null,8,Xv),[[W,o.value.manualDnsIp[q],void 0,{trim:!0}]])]))),256)):(i(),r(L,{key:1},[t("label",null,[Kv,z(t("input",{type:"text","onUpdate:modelValue":C[5]||(C[5]=$=>s.value=$),placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:p.value},null,8,Qv),[[W,s.value,void 0,{trim:!0}]])]),t("label",null,[tb,z(t("input",{type:"text","onUpdate:modelValue":C[6]||(C[6]=$=>l.value=$),placeholder:"\u5907\u7528DNS\u670D\u52A1\u5668",disabled:p.value},null,8,eb),[[W,l.value,void 0,{trim:!0}]])])],64))],64)):E("",!0),f.value?(i(),r("div",ab,[D(A,{modelValue:o.value.enableLanDhcp,"onUpdate:modelValue":C[7]||(C[7]=$=>o.value.enableLanDhcp=$)},{default:V(()=>[ob]),_:1},8,["modelValue"])])):E("",!0),n.value?(i(),r("div",nb,h(n.value),1)):E("",!0),t("div",ib,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:p.value},"\u4FDD\u5B58\u914D\u7F6E",8,rb),D(B,{to:"/network",custom:""},{default:V(({navigate:$})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:$},"\u8FD4\u56DE",8,sb)]),_:1})])],40,Pv)])):a.value==1?(i(),r("div",db,[ub,t("div",cb,[D(B,{to:"/",custom:""},{default:V(({navigate:$})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:$},"\u8FDB\u5165\u63A7\u5236\u53F0",8,lb)]),_:1}),D(B,{to:"/network",custom:""},{default:V(({navigate:$})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:$},"\u8FD4\u56DE",8,pb)]),_:1})])])):E("",!0)}}});var mb=Y(fb,[["__scopeId","data-v-0d3a64fa"]]);const dt=e=>(O("data-v-f4dbbdaa"),e=e(),N(),e),vb={key:0,id:"page"},bb=dt(()=>t("h2",{class:"title"},"\u65C1\u8DEF\u7531\u914D\u7F6E\u524D\u7684\u51C6\u5907\u5DE5\u4F5C",-1)),gb=dt(()=>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 "),t("br"),U("\u672C\u5411\u5BFC\u652F\u6301\u81EA\u52A8\u6216\u624B\u52A8\u914D\u7F6E\uFF1A "),t("br"),U("\u70B9\u51FB\u201C\u81EA\u52A8\u914D\u7F6E\u201D\u6309\u94AE\u5F00\u59CB\u81EA\u52A8\u914D\u7F6E\u5411\u5BFC\uFF1B "),t("br"),U("\u624B\u52A8\u914D\u7F6E\u5219\u9700\u81EA\u884C\u83B7\u53D6\u4E3B\u8DEF\u7531\u5668\u7684IP\u5730\u5740\uFF08\u4F8B\u5982 192.168.2.1 \uFF09\u548C\u5B50\u7F51\u63A9\u7801\uFF0C\u8BB0\u5F55\u4EE5\u5907\u540E\u7EED\u586B\u5199\uFF0C\u70B9\u51FB\u201C\u624B\u52A8\u914D\u7F6E\u201D\u6309\u94AE\uFF0C\u5207\u6362\u5230\u53C2\u6570\u914D\u7F6E\u9875\uFF0C\u6309\u5B9E\u9645\u60C5\u51B5\u81EA\u884C\u586B\u5199\u3002 ")],-1)),_b={class:"btns"},hb=["onClick"],kb={key:1,id:"page"},xb=dt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u65C1\u8DEF\u7531\u7F51\u7EDC",-1)),wb=dt(()=>t("h3",{class:"desc"},"\u73B0\u5728\uFF0C\u8BF7\u4F60\u914D\u7F6E\u65C1\u8DEF\u7531\u4FE1\u606F",-1)),yb=["onSubmit"],Fb=dt(()=>t("div",{class:"label-key"},[t("span",null,"LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),Eb={class:"label-value"},Cb=dt(()=>t("option",null,"\u65C1\u8DEF\u7531\u6A21\u5F0F\u4EC5\u652F\u6301\u9759\u6001IP\u5730\u5740",-1)),$b=[Cb],Db=dt(()=>t("div",{class:"label-key"},[t("span",null,"IP \u5730\u5740")],-1)),Bb=dt(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),Yb=dt(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740")],-1)),Ab=dt(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),Sb={key:0,class:"msgs"},zb={class:"switch_inline"},Pb={key:0,class:"switch_info"},Tb={key:1,class:"switch_info"},Ib={class:"switch_inline"},Lb=dt(()=>t("span",{class:"switch_info"},"\u81EA\u52A8\u83B7\u53D6 IPV6\uFF08\u5373\u5F00\u542F DHCPv6 \u5BA2\u6237\u7AEF\uFF09",-1)),Mb={class:"switch_inline"},Ob=dt(()=>t("span",{class:"switch_info"},"\u5F00\u542F NAT\uFF08\u53EF\u4FEE\u590D\u67D0\u4E9B\u65E0\u7EBF\u70ED\u70B9\u4E0D\u80FD\u8BBF\u95EE\u5916\u7F51\u95EE\u9898\uFF09",-1)),Nb={class:"btns"},qb=dt(()=>t("button",{class:"cbi-button cbi-button-apply app-btn app-next"},"\u4FDD\u5B58\u914D\u7F6E",-1)),Vb=["onClick"],Gb={key:2,id:"page"},jb=dt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),Rb=dt(()=>t("h3",{class:"desc"},"\u73B0\u5728\uFF0C\u5C06\u672C\u8DEF\u7531WAN\u53E3\u65AD\u5F00\uFF0C\u5C06\u5176\u4E2D\u4E00\u4E2ALAN\u53E3\u4E0E\u4E3B\u8DEF\u7531\u8FDE\u63A5\uFF0C\u5E76\u5C06\u5F53\u524D\u6D4F\u89C8\u5668\u8BBE\u5907\u8FDE\u63A5\u5230\u4E3B\u8DEF\u7531\u3002\u70B9\u51FB\u201C\u8FDB\u5165\u63A7\u5236\u53F0\u201D\u6D4F\u89C8\u5668\u5C06\u8DF3\u8F6C\u5230\u65B0\u7684\u8DEF\u7531IP",-1)),Ub={key:3,id:"page"},Wb=dt(()=>t("h2",{class:"title"},"\u65C1\u8DEF\u7531\u81EA\u52A8\u914D\u7F6E",-1)),Hb=dt(()=>t("code",null," \u9996\u5148\u786E\u8BA4\u4E3B\u8DEF\u7531\u5F00\u542F\u4E86 DHCP \u670D\u52A1\uFF0C\u786E\u8BA4\u672C\u8DEF\u7531 WAN \u53E3\u662F DHCP \u5BA2\u6237\u7AEF\u6A21\u5F0F\uFF08\u9ED8\u8BA4\u5373\u662F\uFF0C\u5982\u679C\u4E0D\u662F\u53EF\u4F7F\u7528\u201C\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668\u201D\u5411\u5BFC\u6539\u6210 DHCP \u5BA2\u6237\u7AEF\uFF09\uFF0C\u7136\u540E\u5C06\u672C\u8DEF\u7531 WAN \u53E3\u4E0E\u4E3B\u8DEF\u7531\u7684 LAN \u8FDE\u63A5\uFF0C\u4EE5\u81EA\u52A8\u83B7\u53D6\u914D\u7F6E\u3002 ",-1)),Zb=U(" 1. \u6EE1\u8DB3\u4E0A\u8FF0\u6761\u4EF6\u4EE5\u540E\uFF0C\u70B9\u51FB\u201C\u5F53\u524D IPv4 \u4E0A\u6E38\u4FE1\u606F\u201D\u4EE5\u5237\u65B0\u5F53\u524D\u8FDE\u63A5\u4FE1\u606F\uFF0C\u6210\u529F\u4EE5\u540E\uFF0C\u201C\u81EA\u52A8\u586B\u5199\u201D\u6309\u94AE\u5C06\u88AB\u6FC0\u6D3B\u3002(\u5931\u8D25\u53EF\u518D\u6B21\u70B9\u51FB) "),Jb=["disabled"],Xb=U("\u5F53\u524D IPv4 \u4E0A\u6E38\u4FE1\u606F\uFF08\u70B9\u6B64\u5237\u65B0\uFF09 "),Kb={style:{"text-align":"left"}},Qb=U(" 2. \u70B9\u51FB\u201C\u81EA\u52A8\u586B\u5199\u201D\uFF0C\u5C06\u5207\u6362\u5230\u53C2\u6570\u9875\u5E76\u81EA\u52A8\u586B\u5199\u3002\u6B64\u65F6\u4F9D\u7136\u53EF\u4EE5\u81EA\u884C\u8C03\u6574\u53C2\u6570\u3002 "),tg={class:"btns"},eg=["disabled"],ag=["onClick"],og=P({setup(e){const a=y(0),o=y(""),n=y(!1),s=R(()=>{var f,v,g;return!(((f=p.value)==null?void 0:f.ipv4addr)&&((v=p.value)==null?void 0:v.ipv4mask)&&((g=p.value)==null?void 0:g.gateway))}),l=y({subnetMask:"255.255.255.0",staticDnsIp:"223.5.5.5",staticLanIp:"",gateway:"",enableDhcp:!0,dhcp6c:!1,enableNat:!1}),p=y(),m=()=>{n.value=!0,S.Network.Status.GET().then(f=>{if(f!=null&&f.data){const{result:v}=f==null?void 0:f.data;v&&(p.value=v)}}).finally(()=>{n.value=!1})},u=f=>{var v,g,b,_,x;f&&(l.value.staticLanIp=((v=p.value)==null?void 0:v.ipv4addr)||"",l.value.subnetMask=((g=p.value)==null?void 0:g.ipv4mask)&&kt.prefixToMask(p.value.ipv4mask)||"",l.value.gateway=((b=p.value)==null?void 0:b.gateway)||"",l.value.staticDnsIp=((_=p.value)==null?void 0:_.dnsList)&&((x=p.value)==null?void 0:x.dnsList[0])||"223.5.5.5"),a.value=1},d=f=>{window.location.href=location.protocol+"//"+l.value.staticLanIp+(location.port?":"+location.port:"")},c=()=>T(this,null,function*(){const f=l.value,v=F.Loading("\u914D\u7F6E\u4E2D...");try{const g=yield S.Guide.GatewayRouter.POST(f);if(g!=null&&g.data){const{success:b,error:_}=g==null?void 0:g.data;if(_&&(o.value=_),b==null||b==0){setTimeout(()=>{a.value=2,v.Close()},5e3);return}}}catch(g){o.value=g}v.Close()});return(f,v)=>{var _,x,k,C;const g=X("router-link"),b=X("switch-box");return a.value==0?(i(),r("div",vb,[bb,gb,t("div",_b,[t("button",{class:"cbi-button cbi-button-success app-btn app-next",onClick:v[0]||(v[0]=A=>a.value=3)},"\u81EA\u52A8\u914D\u7F6E..."),t("button",{class:"cbi-button cbi-button-neutral app-btn app-next",onClick:v[1]||(v[1]=A=>u(!1))},"\u624B\u52A8\u914D\u7F6E..."),D(g,{to:"/network",custom:""},{default:V(({navigate:A})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:A},"\u8FD4\u56DE",8,hb)]),_:1})])])):a.value==1?(i(),r("div",kb,[xb,wb,t("form",{onSubmit:nt(c,["prevent"])},[t("label",null,[Fb,t("div",Eb,[t("select",{disabled:"",style:Vt({backgroundColor:"rgba(215, 215, 215, 1)",color:"#333"})},$b,4)])]),t("label",null,[Db,z(t("input",{type:"text","onUpdate:modelValue":v[2]||(v[2]=A=>l.value.staticLanIp=A),placeholder:"IP\u5730\u5740",required:""},null,512),[[W,l.value.staticLanIp,void 0,{trim:!0}]])]),t("label",null,[Bb,z(t("input",{type:"text","onUpdate:modelValue":v[3]||(v[3]=A=>l.value.subnetMask=A),placeholder:"\u5B50\u7F51\u63A9\u7801",required:""},null,512),[[W,l.value.subnetMask,void 0,{trim:!0}]])]),t("label",null,[Yb,z(t("input",{type:"text","onUpdate:modelValue":v[4]||(v[4]=A=>l.value.gateway=A),placeholder:"\u7F51\u5173\u5730\u5740",required:""},null,512),[[W,l.value.gateway,void 0,{trim:!0}]])]),t("label",null,[Ab,z(t("input",{type:"text","onUpdate:modelValue":v[5]||(v[5]=A=>l.value.staticDnsIp=A),placeholder:"223.5.5.5",required:""},null,512),[[W,l.value.staticDnsIp,void 0,{trim:!0}]])]),o.value?(i(),r("div",Sb,h(o.value),1)):E("",!0),t("div",zb,[D(b,{modelValue:l.value.enableDhcp,"onUpdate:modelValue":v[6]||(v[6]=A=>l.value.enableDhcp=A)},{default:V(()=>[l.value.enableDhcp?(i(),r("span",Pb,"\u63D0\u4F9B DHCPv4 \u670D\u52A1\uFF08\u9700\u8981\u5173\u95ED\u4E3B\u8DEF\u7531 DHCP \u670D\u52A1\uFF09")):(i(),r("span",Tb,"\u63D0\u4F9B DHCPv4 \u670D\u52A1"))]),_:1},8,["modelValue"])]),t("div",Ib,[D(b,{modelValue:l.value.dhcp6c,"onUpdate:modelValue":v[7]||(v[7]=A=>l.value.dhcp6c=A)},{default:V(()=>[Lb]),_:1},8,["modelValue"])]),t("div",Mb,[D(b,{modelValue:l.value.enableNat,"onUpdate:modelValue":v[8]||(v[8]=A=>l.value.enableNat=A)},{default:V(()=>[Ob]),_:1},8,["modelValue"])]),t("div",Nb,[qb,D(g,{to:"/network",custom:""},{default:V(({navigate:A})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:A},"\u8FD4\u56DE",8,Vb)]),_:1})])],40,yb)])):a.value==2?(i(),r("div",Gb,[jb,Rb,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:d},"\u8FDB\u5165\u63A7\u5236\u53F0")])])):a.value==3?(i(),r("div",Ub,[Wb,Hb,Zb,t("button",{class:ot(["cbi-button cbi-button-neutral",w(s)?"cbi-button-neutral":"cbi-button-success"]),disabled:n.value,onClick:m},[Xb,t("p",Kb,[t("ul",null,[t("li",null,"IP \u5730\u5740: "+h((_=p.value)==null?void 0:_.ipv4addr),1),t("li",null,"\u5B50\u7F51\u63A9\u7801: "+h(((x=p.value)==null?void 0:x.ipv4mask)&&w(kt).prefixToMask(p.value.ipv4mask)),1),t("li",null,"\u7F51\u5173\u5730\u5740: "+h((k=p.value)==null?void 0:k.gateway),1),t("li",null,"DNS\u670D\u52A1\u5668: "+h(((C=p.value)==null?void 0:C.dnsList)&&p.value.dnsList[0]||(w(s)?"":"\uFF08\u65E0DNS\u670D\u52A1\u5668\uFF0C\u8BF7\u4E4B\u540E\u81EA\u884C\u586B\u5199\u516C\u5171DNS\u670D\u52A1\u5668\uFF0C\u4F8B\u5982 223.5.5.5\uFF09")),1)])])],10,Jb),Qb,t("div",tg,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:w(s),onClick:v[9]||(v[9]=A=>u(!0))},"\u81EA\u52A8\u586B\u5199..."+h(w(s)?"\uFF08\u8BF7\u5148\u83B7\u53D6IPv4\u4E0A\u6E38\u4FE1\u606F\uFF09":""),9,eg),D(g,{to:"/network",custom:""},{default:V(({navigate:A})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:A},"\u8FD4\u56DE",8,ag)]),_:1})])])):E("",!0)}}});var ng=Y(og,[["__scopeId","data-v-f4dbbdaa"]]);const St=e=>(O("data-v-7fc91c6d"),e=e(),N(),e),ig={class:"actioner-container"},rg=St(()=>t("div",{class:"actioner-container_header"},[t("span",null,"RAID\u521B\u5EFA\u5411\u5BFC")],-1)),sg={class:"actioner-container_body"},dg=St(()=>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)),ug={class:"label-item"},cg=St(()=>t("div",{class:"label-item_key"},[t("span",null,"RAID\u7EA7\u522B\uFF1A")],-1)),lg={class:"label-item_value"},pg=["value"],fg={class:"label-item_tips"},mg={class:"label-item"},vg=St(()=>t("div",{class:"label-item_key"},[t("span",null,"\u78C1\u76D8\u9635\u5217\u6210\u5458\uFF1A")],-1)),bg={key:0,class:"label-item_value"},gg=St(()=>t("span",{class:"msg-warning"}," \u68C0\u6D4B\u4E2D... ",-1)),_g=[gg],hg={key:1,class:"label-item_value"},kg=["value"],xg={key:1,class:"msg-warning"},wg={class:"label-item_tips"},yg=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 "),Fg={class:"actioner-container_footer"},Eg=["disabled"],Cg=["disabled"],$g={key:1,class:"actioner-container_body setup-loading"},Dg=St(()=>t("span",null,"\u6B63\u5728\u521B\u5EFA\u4E2D...",-1)),Bg={class:"actioner-container_body setup-error"},Yg={class:"actioner-container_footer"},Ag=["disabled"],Sg={class:"actioner-container_body setup-success"},zg=St(()=>t("div",{class:"body-title"},"\u521B\u5EFA\u6210\u529F",-1)),Pg=St(()=>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)),Tg=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"),l=y(""),p=[{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}],m=y("raid5"),u=y([]),d=_=>{let x="";return p.forEach(k=>{k.name===_&&(x=k.info)}),x},c=y(!1),f=it({loading:!1,members:[]}),v=_=>{};(()=>T(this,null,function*(){f.loading=!0;try{const _=yield S.Raid.CreateList.GET();if(_!=null&&_.data){const{success:x,error:k,result:C}=_.data;if(C&&(f.members=C.members||[]),k)throw k}}catch(_){console.log(_)}finally{f.loading=!1}}))();const b=()=>T(this,null,function*(){const _=p.filter(k=>k.name===m.value)[0],x=u.value;if(!_){F.Warning("\u8BF7\u9009\u62E9raid\u7C7B\u578B");return}if(x.length==0){F.Warning("\u8BF7\u9009\u62E9\u78C1\u76D8");return}if(_.select>x.length){F.Warning("\u8BF7\u9009\u62E9\u81F3\u5C11"+_.select+"\u5757\u78C1\u76D8");return}if(!!confirm(`\u662F\u5426\u7ACB\u5373\u521B\u5EFA ${_.name}\uFF1F\u9009\u62E9\u7684\u786C\u76D8\u6240\u6709\u5206\u533A\u5C06\u4F1A\u88AB\u6E05\u9664\uFF0C\u6B64\u64CD\u4F5C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u786C\u76D8\u6570\u636E\u4E22\u5931\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002`)&&!!confirm(`\u786E\u5B9A\u521B\u5EFA ${_.name}\uFF1F\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u9006,\u8BF7\u8C28\u614E\u64CD\u4F5C`)){c.value=!0,s.value="loading";try{const k=yield S.Raid.Create.POST({level:_.name,devicePaths:x});if(k.data){const{success:C,error:A,result:B}=k.data;if(A)throw A;(C||0)==0&&(s.value="success",n())}}catch(k){l.value=k,s.value="error"}finally{c.value=!1}}});return(_,x)=>{const k=X("icon-loading"),C=X("icon-error"),A=X("icon-success");return i(),r("div",ig,[rg,s.value=="init"?(i(),r(L,{key:0},[t("div",sg,[dg,t("div",ug,[cg,t("div",lg,[z(t("select",{"onUpdate:modelValue":x[0]||(x[0]=B=>m.value=B),onChange:v},[(i(),r(L,null,j(p,B=>t("option",{value:B.name},h(B.title),9,pg)),64))],544),[[Q,m.value]])]),t("div",fg,[D(gt),U(" "+h(d(m.value)),1)])]),t("div",mg,[vg,w(f).loading?(i(),r("div",bg,_g)):(i(),r("div",hg,[w(f).members.length>0?(i(!0),r(L,{key:0},j(w(f).members,B=>(i(),r("label",null,[z(t("input",{type:"checkbox","onUpdate:modelValue":x[1]||(x[1]=$=>u.value=$),value:B.path},null,8,kg),[[Tt,u.value]]),U(" \u3010"+h(B.model)+"\u3011"+h(B.name)+" "+h(B.path)+" ["+h(B.sizeStr)+"] ",1)]))),256)):(i(),r("span",xg," \u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458... "))])),t("div",wg,[D(gt),yg])])]),t("div",Fg,[t("div",{class:"close",onClick:o,disabled:c.value},"\u53D6\u6D88",8,Eg),t("div",{class:"next",onClick:b,disabled:c.value},"\u521B\u5EFA",8,Cg)])],64)):s.value=="loading"?(i(),r("div",$g,[D(k,{size:60,color:"#666"}),Dg])):s.value=="error"?(i(),r(L,{key:2},[t("div",Bg,[D(C),t("span",null,h(l.value),1)]),t("div",Yg,[t("div",{class:"close",onClick:o},"\u5173\u95ED"),t("div",{class:"next",onClick:b,disabled:c.value},"\u91CD\u65B0\u521B\u5EFA",8,Ag)])],64)):s.value=="success"?(i(),r(L,{key:3},[t("div",Sg,[D(A),zg,Pg]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u5173\u95ED")])],64)):E("",!0)])}}});var Ig=Y(Tg,[["__scopeId","data-v-7fc91c6d"]]);const Lg={class:"actioner-container"},Mg={class:"actioner-container_body"},Og=["value"],Ng=P({props:{Close:{type:Function,required:!0},raid:{type:Object,required:!0}},setup(e){const a=e,o=()=>{a.Close()},n=y("");return(()=>{S.Raid.Detail.POST({path:a.raid.path}).then(l=>{if(l.data){const{result:p,error:m}=l.data;m?n.value=m:n.value=(p==null?void 0:p.detail)||""}}).catch(l=>{n.value=l.message})})(),(l,p)=>(i(),r("div",Lg,[t("div",Mg,[t("textarea",{value:n.value},null,8,Og)]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u5173\u95ED")])]))}});var qg=Y(Ng,[["__scopeId","data-v-51f9d7a2"]]);const Pe=e=>(O("data-v-c07c8244"),e=e(),N(),e),Vg={class:"actioner-container"},Gg={class:"actioner-container_header"},jg={class:"actioner-container_body"},Rg={class:"label-item"},Ug=Pe(()=>t("div",{class:"label-item_key"}," \u8BBE\u5907 ",-1)),Wg={class:"label-item_value"},Hg={disabled:""},Zg={class:"label-item"},Jg=Pe(()=>t("div",{class:"label-item_key"}," \u9009\u62E9\u786C\u76D8\uFF08\u9009\u62E9\u88AB\u6DFB\u52A0\u5230RAID\u7684\u786C\u76D8\uFF09\uFF1A ",-1)),Xg={key:0,class:"label-item_value"},Kg=Pe(()=>t("span",{class:"msg-warning"}," \u68C0\u6D4B\u4E2D... ",-1)),Qg=[Kg],t_={key:1,class:"label-item_value"},e_=["value"],a_={key:1,class:"msg-warning"},o_={class:"actioner-container_footer"},n_=["disabled"],i_=["disabled"],r_=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 d=m.value;if(d==""){F.Warning("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8");return}p.value=!0;const c=F.Loading("\u4FDD\u5B58\u4E2D...");try{const f=yield S.Raid.Add.POST({path:a.raid.path,memberPath:d});if(f.data){const{error:v,success:g}=f.data;if(v)throw v;(g||0)==0&&(F.Success("\u4FDD\u5B58\u6210\u529F"),n(),o())}}catch(f){F.Error(`${f}`)}finally{p.value=!1,c.Close()}}),l=it({loading:!1,members:[]}),p=y(!1),m=y("");return(()=>T(this,null,function*(){l.loading=!0,p.value=!0;try{const d=yield S.Raid.CreateList.GET();if(d!=null&&d.data){const{success:c,error:f,result:v}=d.data;if(v&&(l.members=v.members||[]),f)throw f}}catch(d){console.log(d)}finally{p.value=!1,l.loading=!1}}))(),(d,c)=>(i(),r("div",Vg,[t("div",Gg,[t("span",null,"RAID - "+h(e.raid.name)+" \u4FEE\u6539",1)]),t("div",jg,[t("div",Rg,[Ug,t("div",Wg,[t("select",Hg,[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",Zg,[Jg,w(l).loading?(i(),r("div",Xg,Qg)):(i(),r("div",t_,[w(l).members.length>0?(i(!0),r(L,{key:0},j(w(l).members,f=>(i(),r("label",null,[z(t("input",{type:"radio","onUpdate:modelValue":c[0]||(c[0]=v=>m.value=v),value:f.path},null,8,e_),[[pt,m.value]]),U(" \u3010"+h(f.model)+"\u3011"+h(f.name)+" "+h(f.path)+" ["+h(f.sizeStr)+"] ",1)]))),256)):(i(),r("span",a_," \u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458... "))]))])]),t("div",o_,[t("div",{class:"close",onClick:o,disabled:p.value},"\u53D6\u6D88",8,n_),t("div",{class:"next",onClick:s,disabled:p.value},"\u4FDD\u5B58",8,i_)])]))}});var s_=Y(r_,[["__scopeId","data-v-c07c8244"]]);const ga=e=>(O("data-v-13dc2cd6"),e=e(),N(),e),d_={class:"actioner-container"},u_={class:"actioner-container_header"},c_={class:"actioner-container_body"},l_={class:"label-item"},p_=ga(()=>t("div",{class:"label-item_key"}," \u8BBE\u5907 ",-1)),f_={class:"label-item_value"},m_={disabled:""},v_={class:"label-item"},b_=ga(()=>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)),g_={class:"label-item_value"},__=["value"],h_={class:"actioner-container_footer"},k_=["disabled"],x_=["disabled"],w_=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 m=p.value;if(m==""){F.Warning("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u786C\u76D8");return}l.value=!0;const u=F.Loading("\u4FDD\u5B58\u4E2D...");try{const d=yield S.Raid.Remove.POST({path:a.raid.path,memberPath:m});if(d.data){const{error:c,success:f}=d.data;if(c)throw c;(f||0)==0&&(F.Success("\u4FDD\u5B58\u6210\u529F"),n(),o())}}catch(d){F.Error(`${d}`)}finally{l.value=!1,u.Close()}}),l=y(!1),p=y("");return(m,u)=>(i(),r("div",d_,[t("div",u_,[t("span",null,"RAID - "+h(e.raid.name)+" \u79FB\u9664",1)]),t("div",c_,[t("div",l_,[p_,t("div",f_,[t("select",m_,[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",v_,[b_,t("div",g_,[(i(!0),r(L,null,j(e.raid.members,d=>(i(),r("label",null,[z(t("input",{type:"radio","onUpdate:modelValue":u[0]||(u[0]=c=>p.value=c),value:d},null,8,__),[[pt,p.value]]),U(" "+h(d),1)]))),256))])])]),t("div",h_,[t("div",{class:"close",onClick:o,disabled:l.value},"\u53D6\u6D88",8,k_),t("div",{class:"next",onClick:s,disabled:l.value},"\u4FDD\u5B58",8,x_)])]))}});var y_=Y(w_,[["__scopeId","data-v-13dc2cd6"]]);const Te=e=>(O("data-v-5643983d"),e=e(),N(),e),F_={class:"actioner-container"},E_={class:"actioner-container_header"},C_={class:"actioner-container_body"},$_={class:"label-item"},D_=Te(()=>t("div",{class:"label-item_key"}," \u8BBE\u5907 ",-1)),B_={class:"label-item_value"},Y_={disabled:""},A_={class:"label-item"},S_=Te(()=>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)),z_={key:0,class:"label-item_value"},P_=Te(()=>t("span",{class:"msg-warning"}," \u68C0\u6D4B\u4E2D... ",-1)),T_=[P_],I_={key:1,class:"label-item_value"},L_=["value"],M_={key:1,class:"msg-warning"},O_={class:"actioner-container_footer"},N_=["disabled"],q_=["disabled"],V_=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 d=m.value;if(d==""){F.Warning("\u8BF7\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u786C\u76D8");return}p.value=!0;const c=F.Loading("\u4FDD\u5B58\u4E2D...");try{const f=yield S.Raid.Recover.POST({path:a.raid.path,memberPath:d});if(f.data){const{error:v,success:g}=f.data;if(v)throw v;(g||0)==0&&(F.Success("\u4FDD\u5B58\u6210\u529F"),n(),o())}}catch(f){F.Error(`${f}`)}finally{p.value=!1,c.Close()}}),l=it({loading:!1,members:[]}),p=y(!1),m=y("");return(()=>T(this,null,function*(){l.loading=!0,p.value=!0;try{const d=yield S.Raid.CreateList.GET();if(d!=null&&d.data){const{success:c,error:f,result:v}=d.data;if(v&&(l.members=v.members||[]),f)throw f}}catch(d){console.log(d)}finally{p.value=!1,l.loading=!1}}))(),(d,c)=>(i(),r("div",F_,[t("div",E_,[t("span",null,"RAID - "+h(e.raid.name)+" \u6062\u590D",1)]),t("div",C_,[t("div",$_,[D_,t("div",B_,[t("select",Y_,[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",A_,[S_,w(l).loading?(i(),r("div",z_,T_)):(i(),r("div",I_,[w(l).members.length>0?(i(!0),r(L,{key:0},j(w(l).members,f=>(i(),r("label",null,[z(t("input",{type:"radio","onUpdate:modelValue":c[0]||(c[0]=v=>m.value=v),value:f.path},null,8,L_),[[pt,m.value]]),U(" \u3010"+h(f.model)+"\u3011"+h(f.name)+" "+h(f.path)+" ["+h(f.sizeStr)+"] ",1)]))),256)):(i(),r("span",M_," \u68C0\u6D4B\u4E0D\u5230\u53EF\u7528\u78C1\u76D8\u9635\u5217\u6210\u5458... "))]))])]),t("div",O_,[t("div",{class:"close",onClick:o,disabled:p.value},"\u53D6\u6D88",8,N_),t("div",{class:"next",onClick:s,disabled:p.value},"\u4FDD\u5B58",8,q_)])]))}});var G_=Y(V_,[["__scopeId","data-v-5643983d"]]);const j_={class:"action-main"},R_=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(et,{type:2},{default:V(()=>[t("div",j_,[e.setup=="create"?(i(),M(Ig,{key:0,Close:e.Close},null,8,["Close"])):e.setup=="info"&&e.raid!=null?(i(),M(qg,{key:1,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):e.setup=="edit"&&e.raid!=null?(i(),M(s_,{key:2,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):e.setup=="remove"&&e.raid!=null?(i(),M(y_,{key:3,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):e.setup=="recover"&&e.raid!=null?(i(),M(G_,{key:4,Close:e.Close,raid:e.raid,success:e.success},null,8,["Close","raid","success"])):E("",!0)])]),_:1}))}});var U_=Y(R_,[["__scopeId","data-v-6ef94d02"]]);const Jt=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(U_,at(J({},e),{Close:()=>{n()}}));o.use(aa),o.mount(a);const n=()=>{o.unmount(),a.remove()};return{Close:n}},re=e=>(O("data-v-535a673b"),e=e(),N(),e),W_={id:"page"},H_=re(()=>t("h2",{name:"content"}," RAID\u7BA1\u7406",-1)),Z_=re(()=>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)),J_={class:"btns"},X_=["disabled"],K_={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},Q_={class:"table cbi-section-table"},th={style:{}},eh=re(()=>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)),ah={class:"tr cbi-section-table-row"},oh={class:"td cbi-value-field"},nh={class:"td cbi-value-field"},ih=["title"],rh={class:"item-status"},sh={key:0,class:"item-status item-status-detail"},dh={class:"td cbi-value-field"},uh={class:"td cbi-value-field"},ch={class:"td cbi-value-field"},lh=re(()=>t("br",null,null,-1)),ph={class:"td cbi-value-field"},fh=re(()=>t("br",null,null,-1)),mh={key:1,href:"/cgi-bin/luci/admin/quickstart/"},vh={class:"td cbi-section-table-cell nowrap cbi-section-actions"},bh=["disabled","onClick"],gh=["disabled","onClick"],_h=["onClick"],hh=["onClick"],kh=["onClick"],xh=P({setup(e){const a=it({disksList:[]}),o=()=>T(this,null,function*(){try{const b=yield S.Raid.List.GET();if(b!=null&&b.data){const{success:_,error:x,result:k}=b.data;if(k&&(a.disksList=k.disks||[]),x)throw x}}catch(b){console.log(b)}}),n=yt.easyInterval(o,5e3);Fe(()=>{n()});const s=b=>{switch(b.level){case"raid0":case"jbod":return!0}return b.status.indexOf("degraded")!=-1||b.status.indexOf("resyncing(")!=-1},l=b=>{let _=[];return b.childrens&&b.childrens.forEach(x=>{x.mountPoint&&_.push(`${x.name}(${x.mountPoint})`)}),_},p=()=>T(this,null,function*(){Jt({setup:"create",success:()=>{o()}})}),m=b=>{Jt({setup:"info",raid:b})},u=b=>T(this,null,function*(){if(b.childrens&&b.childrens.length>0&&b.childrens.filter(k=>k.mountPoint).length>0){de({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 ${b.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 ${b.name} \u5417?`))return;const _=F.Loading("\u5220\u9664\u4E2D...");try{const x=yield S.Raid.Delete.POST({path:b.path,members:b.members});if(x.data){const{success:k,error:C}=x.data;if(C)throw C;(k||0)==0&&(F.Success("\u5220\u9664\u6210\u529F"),o())}}catch(x){F.Error(`${x}`)}finally{_.Close()}}),d=b=>{Jt({setup:"edit",raid:b,success:()=>{o()}})},c=b=>{Jt({setup:"remove",raid:b,success:()=>{o()}})},f=b=>{Jt({setup:"recover",raid:b,success:()=>{o()}})},v=y(!1),g=()=>{de({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*(){v.value=!0;const b=F.Loading("\u626B\u63CF\u4E2D...");try{const _=yield S.Raid.Autofix.GET();if(_.data){const{error:x,success:k}=_.data;if(x)throw x;(k||0)==0&&(F.Success("\u6062\u590D\u5B8C\u6210"),o())}}catch(_){F.Error(`${_}`)}finally{b.Close(),v.value=!1}}),clearTitle:"\u53D6\u6D88",clear:()=>{}})};return(b,_)=>(i(),r("div",W_,[H_,Z_,t("div",J_,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:_[0]||(_[0]=x=>p())},"\u521B\u5EFARAID"),t("button",{class:"btn cbi-button cbi-button-apply",onClick:_[1]||(_[1]=x=>g()),disabled:v.value},"\u626B\u63CF\u6062\u590DRAID",8,X_)]),t("div",null,[t("div",K_,[t("table",Q_,[t("tbody",th,[eh,(i(!0),r(L,null,j(w(a).disksList,x=>(i(),r("tr",ah,[t("td",oh,[t("b",null,h(x.name),1)]),t("td",nh,[t("b",null,h(x.path),1)]),t("td",{class:"td cbi-value-field",title:x.status+(x.rebuildStatus||"")},[t("b",rh,h(x.status),1),x.rebuildStatus?(i(),r("b",sh," \u2026 ")):E("",!0)],8,ih),t("td",dh,[t("b",null,h(x.level),1)]),t("td",uh,[t("b",null,h(x.size),1)]),t("td",ch,[(i(!0),r(L,null,j(x.members,k=>(i(),r("b",null,[U(h(k)+" ",1),lh]))),256))]),t("td",ph,[l(x).length>0?(i(!0),r(L,{key:0},j(l(x),k=>(i(),r("b",null,[U(h(k)+" ",1),fh]))),256)):(i(),r("a",mh,"\u53BB\u6302\u8F7D"))]),t("td",vh,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u6269\u5145",disabled:s(x),onClick:k=>d(x)},"\u6269\u5145",8,bh),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u79FB\u9664",disabled:s(x),onClick:k=>c(x)},"\u79FB\u9664",8,gh),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u6062\u590D",onClick:k=>f(x)},"\u6062\u590D",8,_h),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u8BE6\u60C5",onClick:k=>m(x)},"\u8BE6\u60C5",8,hh),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:k=>u(x)},"\u5220\u9664",8,kh)])]))),256))])])])])]))}});var wh=Y(xh,[["__scopeId","data-v-535a673b"]]);const _a=e=>(O("data-v-2bc40d1c"),e=e(),N(),e),yh={id:"page"},Fh=_a(()=>t("h2",{name:"content"},"S.M.A.R.T.",-1)),Eh=_a(()=>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)),Ch={class:"tabs"},$h=["href","onClick"],Dh=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=it({global:{enable:!1,powermode:"never",tmpDiff:0,tmpMax:0},devices:[],tasks:[]}),s=m=>{const{global:u,devices:d,tasks:c}=m;u&&(n.global.enable=u.enable||!1,n.global.powermode=u.powermode||"never"),n.devices=d||[],n.tasks=c||[]};(()=>T(this,null,function*(){try{const m=yield S.Smart.Config.GET();if(m.data){const{result:u}=m.data;u&&s(u)}}catch(m){}finally{o.value=!0}}))();const p=m=>T(this,null,function*(){const u=F.Loading("\u4FDD\u5B58\u4E2D...");try{const d=yield S.Smart.Config.POST(m);if(d.data){console.log(d.data);const{success:c,error:f,result:v}=d.data;if(f)throw f;(c||0)==0&&(F.Success("\u4FDD\u5B58\u6210\u529F"),v&&s(v))}}catch(d){F.Error(`${d}`)}finally{u.Close()}});return(m,u)=>{const d=X("router-link"),c=X("router-view");return i(),r("div",yh,[Fh,Eh,t("ul",Ch,[(i(),r(L,null,j(a,f=>D(d,{to:f.to,custom:"",key:f.to},{default:V(({route:v,href:g,navigate:b,isActive:_,isExactActive:x})=>[t("li",{class:ot({"active cbi-tab":_&&x})},[t("a",{href:g,onClick:b},h(f.name),9,$h)],2)]),_:2},1032,["to"])),64))]),o.value?(i(),M(c,{key:0,name:"default"},{default:V(({Component:f,route:v})=>[(i(),M(La,null,{default:V(()=>[(i(),M(Ma(f),{key:v.path,config:w(n),saveData:p},null,8,["config"]))]),_:2},1024))]),_:1})):E("",!0)])}}});var Bh=Y(Dh,[["__scopeId","data-v-2bc40d1c"]]);const Yh={class:"action-main"},Ah=P({setup(e){return(a,o)=>(i(),M(et,{type:2},{default:V(()=>[t("div",Yh,[Dt(a.$slots,"default",{},void 0,!0)])]),_:3}))}});var he=Y(Ah,[["__scopeId","data-v-742230ae"]]);const Sh={class:"actioner-container"},zh={class:"actioner-container_header"},Ph={class:"actioner-container_body"},Th={class:"cbi-value"},Ih=t("label",{class:"cbi-value-title"}," \u78C1\u76D8 ",-1),Lh={class:"cbi-value-field"},Mh={class:"cbi-value-description"},Oh={class:"cbi-value"},Nh=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09 ",-1),qh={class:"cbi-value-field"},Vh={class:"cbi-checkbox"},Gh=t("option",{value:-1},"\u4F7F\u7528\u5168\u5C40\u914D\u7F6E",-1),jh=t("option",{value:0},"\u7981\u7528",-1),Rh=["value"],Uh=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),Wh={class:"cbi-value"},Hh=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09 ",-1),Zh={class:"cbi-value-field"},Jh={class:"cbi-checkbox"},Xh=t("option",{value:-1},"\u4F7F\u7528\u5168\u5C40\u914D\u7F6E",-1),Kh=t("option",{value:0},"\u7981\u7528",-1),Qh=["value"],tk=t("div",{class:"cbi-value-description"}," \u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A. ",-1),ek={class:"actioner-container_footer"},ak=["disabled"],ok=["disabled"],nk=P({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0},device:{type:Object},next:{type:Function,required:!0}},setup(e){var p,m,u;const a=e;console.log(a.device);const o=y(!1),n=it({tmpDiff:((p=a.device)==null?void 0:p.tmpDiff)||0,tmpMax:((m=a.device)==null?void 0:m.tmpMax)||0,devicePath:((u=a.device)==null?void 0:u.devicePath)||""}),s=()=>{o.value=!0,a.close()},l=()=>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(d){}});return(d,c)=>(i(),M(he,null,{default:V(()=>[t("div",Sh,[t("div",zh,[t("span",null," S.M.A.R.T. \xBB \u8BBE\u5907 \xBB "+h(e.disk.path),1)]),t("div",Ph,[t("div",Th,[Ih,t("div",Lh,[t("div",Mh,h(e.disk.model)+" [ "+h(e.disk.path)+"\uFF0C"+h(e.disk.sizeStr)+" ] ",1)])]),t("div",Oh,[Nh,t("div",qh,[t("div",Vh,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":c[0]||(c[0]=f=>w(n).tmpDiff=f)},[Gh,jh,(i(),r(L,null,j(20,f=>t("option",{value:f},h(f)+"\xB0C",9,Rh)),64))],512),[[Q,w(n).tmpDiff,void 0,{number:!0}]])]),Uh])]),t("div",Wh,[Hh,t("div",Zh,[t("div",Jh,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":c[1]||(c[1]=f=>w(n).tmpMax=f)},[Xh,Kh,(i(),r(L,null,j(20,f=>t("option",{value:f*5},h(f*5)+"\xB0C",9,Qh)),64))],512),[[Q,w(n).tmpMax,void 0,{number:!0}]])]),tk])])]),t("div",ek,[t("button",{class:"close",onClick:s,disabled:o.value},"\u53D6\u6D88",8,ak),t("button",{class:"next",onClick:l,disabled:o.value},"\u4FDD\u5B58",8,ok)])])]),_:1}))}}),ik={class:"actioner-container"},rk=t("div",{class:"actioner-container_header"},[t("span",null," \u521B\u5EFA\u8BA1\u5212\u4EFB\u52A1 ")],-1),sk={class:"actioner-container_body"},dk={class:"cbi-value"},uk=t("label",{class:"cbi-value-title"}," \u78C1\u76D8 ",-1),ck={class:"cbi-value-field"},lk={class:"cbi-checkbox"},pk=t("option",{value:""},"\u9009\u62E9\u78C1\u76D8",-1),fk=["value"],mk={class:"cbi-value"},vk=t("label",{class:"cbi-value-title"}," \u7C7B\u578B ",-1),bk={class:"cbi-value-field"},gk={class:"cbi-checkbox"},_k=t("option",{value:"short"},"\u77ED\u6682\u81EA\u68C0",-1),hk=t("option",{value:"long"},"\u957F\u65F6\u81EA\u68C0",-1),kk=t("option",{value:"conveyance"},"\u4F20\u8F93\u65F6\u81EA\u68C0",-1),xk=t("option",{value:"offline"},"\u79BB\u7EBF\u65F6\u81EA\u68C0",-1),wk=[_k,hk,kk,xk],yk={class:"cbi-value"},Fk=t("label",{class:"cbi-value-title"}," \u5C0F\u65F6 ",-1),Ek={class:"cbi-value-field"},Ck={class:"cbi-checkbox"},$k=t("option",{value:"*"},"*",-1),Dk=["value"],Bk=t("div",{class:"cbi-value-description"}," * \u8868\u793A\u6BCF\u5C0F\u65F6 ",-1),Yk={class:"cbi-value"},Ak=t("label",{class:"cbi-value-title"}," \u5929 ",-1),Sk={class:"cbi-value-field"},zk={class:"cbi-checkbox"},Pk=t("option",{value:"*"},"*",-1),Tk=["value"],Ik=t("div",{class:"cbi-value-description"}," * \u8868\u793A\u6BCF\u5929 ",-1),Lk={class:"cbi-value"},Mk=t("label",{class:"cbi-value-title"}," \u6708 ",-1),Ok={class:"cbi-value-field"},Nk={class:"cbi-checkbox"},qk=t("option",{value:"*"},"*",-1),Vk=["value"],Gk=t("div",{class:"cbi-value-description"}," * \u8868\u793A\u6BCF\u6708 ",-1),jk={class:"actioner-container_footer"},Rk=["disabled"],Uk=["disabled"],Wk=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=it({type:"short",devicePath:"",month:"*",dayPerMonth:"*",hour:"*"}),s=y([]);(()=>T(this,null,function*(){try{const u=yield S.Smart.List.GET();if(u.data){const{result:d,error:c}=u.data;d&&d.disks&&(s.value=d.disks)}}catch(u){}}))();const p=()=>{o.value=!0,a.close()},m=()=>T(this,null,function*(){if(n.devicePath==""){F.Warning("\u8BF7\u9009\u62E9\u78C1\u76D8");return}o.value=!0;try{yield a.next(n),p()}catch(u){}finally{o.value=!1}});return(u,d)=>(i(),M(he,null,{default:V(()=>[t("div",ik,[rk,t("div",sk,[t("div",dk,[uk,t("div",ck,[t("div",lk,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":d[0]||(d[0]=c=>w(n).devicePath=c)},[pk,(i(!0),r(L,null,j(s.value,c=>(i(),r("option",{value:c.path},h(c.model)+" [ "+h(c.path)+"\uFF0C"+h(c.sizeStr)+" ] ",9,fk))),256))],512),[[Q,w(n).devicePath,void 0,{trim:!0}]])])])]),t("div",mk,[vk,t("div",bk,[t("div",gk,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":d[1]||(d[1]=c=>w(n).type=c)},wk,512),[[Q,w(n).type,void 0,{trim:!0}]])])])]),t("div",yk,[Fk,t("div",Ek,[t("div",Ck,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":d[2]||(d[2]=c=>w(n).hour=c)},[$k,(i(),r(L,null,j(24,(c,f)=>t("option",{value:`${f}`},h(f),9,Dk)),64))],512),[[Q,w(n).hour,void 0,{trim:!0}]])]),Bk])]),t("div",Yk,[Ak,t("div",Sk,[t("div",zk,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":d[3]||(d[3]=c=>w(n).dayPerMonth=c)},[Pk,(i(),r(L,null,j(31,c=>t("option",{value:`${c}`},h(c),9,Tk)),64))],512),[[Q,w(n).dayPerMonth,void 0,{trim:!0}]])]),Ik])]),t("div",Lk,[Mk,t("div",Ok,[t("div",Nk,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":d[4]||(d[4]=c=>w(n).month=c)},[qk,(i(),r(L,null,j(12,(c,f)=>t("option",{value:`${c}`},h(c),9,Vk)),64))],512),[[Q,w(n).month,void 0,{trim:!0}]])]),Gk])])]),t("div",jk,[t("button",{class:"close",onClick:p,disabled:o.value},"\u53D6\u6D88",8,Rk),t("button",{class:"next",onClick:m,disabled:o.value},"\u4FDD\u5B58",8,Uk)])])]),_:1}))}}),Hk=e=>(O("data-v-3f7c551e"),e=e(),N(),e),Zk={class:"actioner-container"},Jk=Hk(()=>t("div",{class:"actioner-container_header"},[t("span",null," \u8FD0\u884C\u8C03\u8BD5 ")],-1)),Xk={class:"actioner-container_body"},Kk=["value"],Qk={class:"actioner-container_footer"},tx=["disabled"],ex=["disabled"],ax=P({props:{close:{type:Function,required:!0},task:{type:Object,required:!0}},setup(e){const a=e,o=y(!1),n=y(""),s=y(""),l=y(""),p=()=>T(this,null,function*(){n.value+=".";try{const c=yield S.Smart.Test.Result.POST({type:"selftest",devicePath:a.task.devicePath||""});if(c.data){const{result:f,error:v}=c.data;f&&f.result&&(l.value=f.result),v&&(l.value=v)}}catch(c){c&&(l.value=c)}}),m=yt.easyInterval(p,5e3);Fe(()=>{m()});const u=()=>{o.value=!0,m(),a.close()},d=()=>T(this,null,function*(){o.value=!0;try{const c=yield S.Smart.Test.POST({type:a.task.type||"short",devicePath:a.task.devicePath||""});if(c.data){const{success:f,error:v,result:g}=c.data;v&&(s.value=v),g&&g.result&&(s.value=g.result)}}catch(c){s.value=c}finally{}});return(c,f)=>(i(),M(he,null,{default:V(()=>[t("div",Zk,[Jk,t("div",Xk,[t("textarea",{value:s.value+`
`+l.value+`
`+n.value,disabled:""},null,8,Kk)]),t("div",Qk,[t("div",{class:"close",onClick:u,disabled:o.value},"\u5173\u95ED",8,tx),o.value?E("",!0):(i(),r("div",{key:0,class:"next",onClick:d,disabled:o.value},"\u8FD0\u884C",8,ex))])])]),_:1}))}});var ox=Y(ax,[["__scopeId","data-v-3f7c551e"]]);const Nt=e=>(O("data-v-7d3ebf99"),e=e(),N(),e),nx={class:"actioner-container"},ix={class:"actioner-container_header"},rx={class:"tabs"},sx=Nt(()=>t("a",null,"\u8BBE\u5907\u4FE1\u606F",-1)),dx=[sx],ux=Nt(()=>t("a",null,"\u5C5E\u6027",-1)),cx=[ux],lx=Nt(()=>t("a",null,"\u81EA\u68C0\u65E5\u5FD7",-1)),px=[lx],fx=Nt(()=>t("a",null,"\u6269\u5C55\u4FE1\u606F",-1)),mx=[fx],vx={class:"actioner-container_body"},bx={key:0,class:"table"},gx={class:"tr"},_x=Nt(()=>t("td",{class:"td left"},"\u8BBE\u5907",-1)),hx={class:"td left"},kx={class:"tr"},xx=Nt(()=>t("td",{class:"td left"},"\u578B\u53F7",-1)),wx={class:"td left"},yx={class:"tr"},Fx=Nt(()=>t("td",{class:"td left"},"\u5E8F\u53F7",-1)),Ex={class:"td left"},Cx=["value"],$x=["value"],Dx=["value"],Bx={class:"actioner-container_footer"},Yx=["disabled"],Ax=P({props:{close:{type:Function,required:!0},disk:{type:Object,required:!0}},setup(e){const a=e,o=y(!1),n=y("info"),s=c=>{switch(n.value=c,c){case"info":break;case"attribute":u();break;case"log":m();break;case"extend":d();break}},l=()=>{o.value=!0,a.close()},p=it({log:"",attribute:"",extend:""}),m=()=>T(this,null,function*(){try{const c=yield S.Smart.Test.Result.POST({type:"selftest",devicePath:a.disk.path||""});if(c.data){const{result:f,error:v}=c.data;f&&f.result&&(p.log=f.result),v&&(p.log=v)}}catch(c){p.log=c}}),u=()=>T(this,null,function*(){try{const c=yield S.Smart.Attribute.Result.POST({devicePath:a.disk.path||""});if(c.data){const{result:f,error:v}=c.data;f&&f.result&&(p.attribute=f.result),v&&(p.attribute=v)}}catch(c){p.attribute=c}}),d=()=>T(this,null,function*(){try{const c=yield S.Smart.Extend.Result.POST({devicePath:a.disk.path||""});if(c.data){const{result:f,error:v}=c.data;f&&f.result&&(p.extend=f.result),v&&(p.extend=v)}}catch(c){p.extend=c}});return(c,f)=>(i(),M(he,null,{default:V(()=>[t("div",nx,[t("div",ix,[t("ul",rx,[t("li",{class:ot({"active cbi-tab":n.value=="info"}),onClick:f[0]||(f[0]=v=>s("info"))},dx,2),t("li",{class:ot({"active cbi-tab":n.value=="attribute"}),onClick:f[1]||(f[1]=v=>s("attribute"))},cx,2),t("li",{class:ot({"active cbi-tab":n.value=="log"}),onClick:f[2]||(f[2]=v=>s("log"))},px,2),t("li",{class:ot({"active cbi-tab":n.value=="extend"}),onClick:f[3]||(f[3]=v=>s("extend"))},mx,2)])]),t("div",vx,[n.value=="info"?(i(),r("table",bx,[t("tr",gx,[_x,t("td",hx,h(e.disk.path),1)]),t("tr",kx,[xx,t("td",wx,h(e.disk.model),1)]),t("tr",yx,[Fx,t("td",Ex,h(e.disk.serial),1)])])):n.value=="attribute"?(i(),r("textarea",{key:1,disabled:"",value:w(p).attribute},null,8,Cx)):n.value=="log"?(i(),r("textarea",{key:2,disabled:"",value:w(p).log},null,8,$x)):n.value=="extend"?(i(),r("textarea",{key:3,disabled:"",value:w(p).extend},null,8,Dx)):E("",!0)]),t("div",Bx,[t("div",{class:"close",onClick:l,disabled:o.value},"\u5173\u95ED",8,Yx)])])]),_:1}))}});var Sx=Y(Ax,[["__scopeId","data-v-7d3ebf99"]]);const zx=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=D(nk,at(J({},e),{close:()=>{n()}})),n=()=>{a.remove()};ue(o,a)},Px=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=D(Wk,at(J({},e),{close:()=>{n()}})),n=()=>{a.remove()};ue(o,a)},Tx=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=D(ox,at(J({},e),{close:()=>{n()}})),n=()=>{a.remove()};ue(o,a)},Ix=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=D(Sx,at(J({},e),{close:()=>{n()}})),n=()=>{a.remove()};ue(o,a)},Lx={class:"cbi-section"},Mx={class:"cbi-value"},Ox=t("label",{class:"cbi-value-title"}," \u542F\u7528 ",-1),Nx={class:"cbi-value-field"},qx={class:"cbi-checkbox"},Vx=["value"],Gx={class:"cbi-value"},jx=t("label",{class:"cbi-value-title"}," \u7535\u6E90\u6A21\u5F0F ",-1),Rx={class:"cbi-value-field"},Ux={class:"cbi-checkbox"},Wx=t("option",{value:"never"},"\u6C38\u4E0D",-1),Hx=t("option",{value:"sleep"},"\u7761\u7720",-1),Zx=t("option",{value:"standby"},"\u5F85\u673A",-1),Jx=t("option",{value:"idle"},"\u95F2\u7F6E",-1),Xx=[Wx,Hx,Zx,Jx],Kx=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),Qx={class:"cbi-value"},tw=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u5DEE\u5F02\uFF09 ",-1),ew={class:"cbi-value-field"},aw={class:"cbi-checkbox"},ow=t("option",{value:0},"\u7981\u7528",-1),nw=["value"],iw=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),rw={class:"cbi-value"},sw=t("label",{class:"cbi-value-title"}," \u6E29\u5EA6\u76D1\u6D4B\uFF08\u6700\u5927\uFF09 ",-1),dw={class:"cbi-value-field"},uw={class:"cbi-checkbox"},cw=t("option",{value:0},"\u7981\u7528",-1),lw=["value"],pw=t("div",{class:"cbi-value-description"}," \u5982\u679C\u6E29\u5EA6\u5927\u4E8E\u6216\u7B49\u4E8E N \u6444\u6C0F\u5EA6\u5219\u62A5\u544A. ",-1),fw={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},mw={class:"table cbi-section-table"},vw=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),bw={class:"tr cbi-section-table-row"},gw={class:"td cbi-value-field"},_w={class:"td cbi-value-field"},hw={class:"td cbi-value-field"},kw={class:"td cbi-value-field"},xw={class:"td cbi-value-field"},ww={class:"td cbi-value-field"},yw={class:"td cbi-value-field"},Fw={class:"td cbi-value-field"},Ew=["onClick"],Cw=["onClick"],$w=P({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(e){const a=e,o=it(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([]),l=()=>T(this,null,function*(){try{const c=yield S.Smart.List.GET();if(c.data){const{result:f,error:v}=c.data;f&&f.disks&&(s.value=f.disks||[])}}catch(c){}}),p=yt.easyInterval(l,5e3);Fe(()=>{p()});const m=()=>T(this,null,function*(){yield a.saveData({global:o.global,devices:a.config.devices,tasks:a.config.tasks}),n()}),u=c=>{Ix({disk:c})},d=(c,f)=>T(this,null,function*(){let v=null,g=-1;if(o.devices){for(let b=0;b<o.devices.length;b++)if(o.devices[b].devicePath==c.path){v=o.devices[b],g=b;break}}zx({disk:c,device:v,next:b=>T(this,null,function*(){b.tmpDiff==-1&&(b.tmpDiff=o.global.tmpDiff),b.tmpMax==-1&&(b.tmpMax=o.global.tmpMax),b.devicePath==""&&(b.devicePath=c.path);let _=[...o.devices];g>=0&&(_[g]=b);const x=new Map;_.forEach(k=>{k.devicePath!=null&&x.set(k.devicePath,null)});for(let k=0;k<s.value.length;k++){const C=s.value[k];C.path!=null&&!x.has(C.path)&&_.push({devicePath:C.path,tmpDiff:o.global.tmpDiff,tmpMax:o.global.tmpMax})}yield a.saveData({tasks:a.config.tasks,global:a.config.global,devices:_}),n()})})});return(c,f)=>(i(),r(L,null,[t("fieldset",Lx,[t("div",Mx,[Ox,t("div",Nx,[t("div",qx,[z(t("input",{type:"checkbox","onUpdate:modelValue":f[0]||(f[0]=v=>w(o).global.enable=v),value:!w(o).global.enable},null,8,Vx),[[Tt,w(o).global.enable]])])])]),t("div",Gx,[jx,t("div",Rx,[t("div",Ux,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":f[1]||(f[1]=v=>w(o).global.powermode=v)},Xx,512),[[Q,w(o).global.powermode,void 0,{trim:!0}]])]),Kx])]),t("div",Qx,[tw,t("div",ew,[t("div",aw,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":f[2]||(f[2]=v=>w(o).global.tmpDiff=v)},[ow,(i(),r(L,null,j(15,v=>t("option",{value:v},h(v)+"\xB0C",9,nw)),64))],512),[[Q,w(o).global.tmpDiff,void 0,{number:!0}]])]),iw])]),t("div",rw,[sw,t("div",dw,[t("div",uw,[z(t("select",{class:"cbi-input-select","onUpdate:modelValue":f[3]||(f[3]=v=>w(o).global.tmpMax=v)},[cw,(i(),r(L,null,j(20,v=>t("option",{value:v*5},h(v*5)+"\xB0C",9,lw)),64))],512),[[Q,w(o).global.tmpMax,void 0,{number:!0}]])]),pw])])]),t("div",fw,[t("table",mw,[vw,t("tbody",null,[(i(!0),r(L,null,j(s.value,(v,g)=>(i(),r("tr",bw,[t("td",gw,[t("b",null,h(v.path),1)]),t("td",_w,[t("b",null,h(v.model),1)]),t("td",hw,[t("b",null,h(v.serial),1)]),t("td",kw,[t("b",null,h(v.sizeStr),1)]),t("td",xw,[t("b",null,h(v.temp),1)]),t("td",ww,[t("b",null,h(v.status),1)]),t("td",yw,[t("b",null,h(v.health),1)]),t("td",Fw,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u7F16\u8F91",onClick:b=>d(v)},"\u7F16\u8F91",8,Ew),t("button",{class:"btn cbi-button cbi-button-apply",title:"\u8BE6\u60C5",onClick:b=>u(v)},"\u8BE6\u60C5",8,Cw)])]))),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:m})])],64))}}),Dw={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},Bw={class:"table cbi-section-table"},Yw=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),Aw={class:"tr cbi-section-table-row"},Sw={class:"td cbi-value-field"},zw={class:"td cbi-value-field"},Pw={class:"td cbi-value-field"},Tw={class:"td cbi-value-field"},Iw=["onClick"],Lw=["onClick"],Mw=P({props:{config:{type:Object,required:!0},saveData:{type:Function,required:!0}},setup(e){const a=e,o=it(a.config),n=m=>{switch(m){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=()=>{Px({config:a.config,disks:[],next:m=>T(this,null,function*(){yield a.saveData({tasks:[...o.tasks,m],global:a.config.global,devices:a.config.devices}),o.tasks=a.config.tasks||[]})})},l=m=>T(this,null,function*(){const u=[...o.tasks];u.splice(m,1),yield a.saveData({tasks:u,global:a.config.global,devices:a.config.devices}),o.tasks=a.config.tasks||[]}),p=m=>{Tx({task:m})};return(m,u)=>(i(),r(L,null,[t("button",{class:"btn cbi-button cbi-button-apply",onClick:u[0]||(u[0]=d=>s())},"\u65B0\u5EFA"),t("div",Dw,[t("table",Bw,[Yw,t("tbody",null,[(i(!0),r(L,null,j(w(o).tasks,(d,c)=>(i(),r("tr",Aw,[t("td",Sw,[t("b",null,h(d.devicePath),1)]),t("td",zw,[t("b",null,h(n(d.type)),1)]),t("td",Pw,[t("b",null,h(d.month)+"/"+h(d.dayPerMonth)+"/"+h(d.hour),1)]),t("td",Tw,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u8C03\u8BD5",onClick:f=>p(d)},"\u9884\u89C8",8,Iw),t("button",{class:"cbi-button cbi-button-remove",title:"\u5220\u9664",onClick:f=>l(c)},"\u5220\u9664",8,Lw)])]))),256))])])])],64))}}),Ow={class:"cbi-section"},Nw=["value"],qw=P({setup(e){return T(this,null,function*(){let a,o;const n=y(""),s=()=>T(this,null,function*(){try{const l=yield S.Smart.Log.GET();if(l.data){const{result:p,error:m}=l.data;p&&p.result&&(n.value=p.result),m&&(n.value=m)}}catch(l){n.value=l}});return[a,o]=Oa(()=>s()),yield a,o(),(l,p)=>(i(),r("fieldset",Ow,[t("textarea",{value:n.value,disabled:""},null,8,Nw)]))})}});var Vw=Y(qw,[["__scopeId","data-v-76197cba"]]);const Gw={},jw={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"},Rw=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),Uw=[Rw];function Ww(e,a){return i(),r("svg",jw,Uw)}var Ze=Y(Gw,[["render",Ww]]);const ke=e=>(O("data-v-2f7b866f"),e=e(),N(),e),Hw=["onSubmit"],Zw={class:"actioner-dns_header"},Jw={key:0},Xw={key:1},Kw={class:"actioner-dns_body"},Qw={class:"label-item"},ty=ke(()=>t("div",{class:"label-item_key"},[t("span",null,"\u540D\u79F0")],-1)),ey={class:"label-item_value"},ay={class:"label-item"},oy=ke(()=>t("div",{class:"label-item_key"},[t("span",null,"\u534F\u8BAE\uFF08\u7F51\u7EDC\u83B7\u53D6\u65B9\u5F0F\uFF09")],-1)),ny={class:"label-item_value"},iy=ke(()=>t("option",{value:"dhcp"},"DHCP\u5BA2\u6237\u7AEF",-1)),ry={key:0,value:"pppoe"},sy=ke(()=>t("option",{value:"static"},"\u9759\u6001\u5730\u5740",-1)),dy={class:"actioner-dns_footer"},uy=["disabled"],cy=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*(){F.Loading("\u914D\u7F6E\u4E2D...").Close(),a.next(n.value),l()}),l=()=>{a.Close&&a.Close()};return(p,m)=>(i(),M(et,{Close:e.Close,type:1},{default:V(()=>[t("form",{class:"actioner-dns",onSubmit:nt(s,["prevent"])},[t("div",Zw,[e.name=="wan"?(i(),r("span",Jw,h(e.e=="edit"?"\u7F16\u8F91WAN":"\u6DFB\u52A0WAN"),1)):(i(),r("span",Xw,h(e.e=="edit"?"\u7F16\u8F91LAN":"\u6DFB\u52A0LAN"),1))]),t("div",Kw,[t("div",Qw,[ty,t("div",ey,[t("span",null,h(n.value.name.toLocaleUpperCase()),1)])]),t("div",ay,[oy,t("div",ny,[z(t("select",{"onUpdate:modelValue":m[0]||(m[0]=u=>n.value.proto=u)},[iy,e.name=="wan"?(i(),r("option",ry,"PPPoE")):E("",!0),sy],512),[[Q,n.value.proto]])])])]),t("div",dy,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:o.value},"\u4FDD\u5B58",8,uy),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:l},"\u53D6\u6D88")])],40,Hw)]),_:1},8,["Close"]))}});var ly=Y(cy,[["__scopeId","data-v-2f7b866f"]]);const Je=e=>{const a=document.createElement("div");document.body.appendChild(a);const o=tt(ly,at(J({},e),{Close:()=>{n()}}));o.mount(a);const n=()=>{o.unmount(),a.remove()}},bt=e=>(O("data-v-589588f0"),e=e(),N(),e),py={id:"page"},fy=bt(()=>t("h2",{name:"content"}," \u7F51\u53E3\u914D\u7F6E",-1)),my={class:"cbi-section cbi-tblsection",id:"cbi-nfs-mount"},vy={class:"table cbi-section-table"},by={width:"200"},gy=bt(()=>t("col",null,null,-1)),_y=bt(()=>t("col",null,null,-1)),hy=bt(()=>t("col",{width:"200"},null,-1)),ky={class:"tr cbi-section-table-cell"},xy={class:"th cbi-section-table-cell interface-device","data-widget":"value"},wy={class:"interface-device-flex"},yy=bt(()=>t("th",{style:{width:"10px"}},null,-1)),Fy=bt(()=>t("th",{style:{width:"32px"}},null,-1)),Ey=bt(()=>t("th",null,null,-1)),Cy={class:"tr cbi-section-table-row cbi-rowstyle-1"},$y={class:"td cbi-value-field interface-device info"},Dy=["name","value","onUpdate:modelValue","onInput"],By=bt(()=>t("td",{class:"td cbi-value-field"},null,-1)),Yy={class:"td cbi-value-field"},Ay={class:"td cbi-value-field btns"},Sy=["onClick"],zy=["onClick"],Py={class:"tr cbi-section-table-row cbi-rowstyle-1"},Ty={class:"td cbi-value-field"},Iy=bt(()=>t("td",{class:"td cbi-value-field"},null,-1)),Ly=bt(()=>t("td",{class:"td cbi-value-field"},null,-1)),My={class:"tr cbi-section-table-row cbi-rowstyle-1"},Oy={class:"td cbi-value-field interface-device info","data-widget":"value"},Ny=["name","value","onUpdate:modelValue","onInput"],qy=bt(()=>t("td",{class:"td cbi-value-field"},null,-1)),Vy={class:"td cbi-value-field"},Gy={class:"td cbi-value-field btns"},jy=["onClick"],Ry=["onClick"],Uy={class:"tr cbi-section-table-row cbi-rowstyle-1"},Wy={class:"td cbi-value-field"},Hy=bt(()=>t("td",{class:"td cbi-value-field"},null,-1)),Zy=bt(()=>t("td",{class:"td cbi-value-field"},null,-1)),Jy={class:"cbi-page-actions control-group"},Xy=["disabled"],Ky=P({setup(e){const a=it({devices:[],interfaces:[]}),o=y(!1),n=it({lan:[],wan:[]});(()=>{S.Network.GetInterfaceConfig.GET().then(f=>{if(f.data){const{result:v}=f.data;if(v){a.devices=v.devices||[],a.interfaces=v.interfaces||[];for(let g=0;g<a.interfaces.length;g++)a.interfaces[g].firewallType=="wan"?n.wan.push(a.interfaces[g]):a.interfaces[g].firewallType=="lan"&&n.lan.push(a.interfaces[g])}}})})();const l=(f,v)=>{f=="wan"?n.wan.splice(v,1):f=="lan"&&n.lan.splice(v,1)},p=(f,v)=>{if(v==null){let g=f=="wan"?n.wan.length:n.lan.length;g==6&&f=="wan"&&g++,Je({e:"add",name:f,inface:{name:f+`${g}`,proto:"dhcp",ipv4Addr:"",ipv6Addr:"",portName:"",deviceNames:[],ports:[],firewallType:f},next:b=>{f=="wan"?n.wan.push(b):n.lan.push(b),F.Message("\u8BF7\u5728\u4FDD\u5B58\u4EE5\u540E\u524D\u5F80'\u7F51\u7EDC-\u63A5\u53E3'\u9875\u9762\u914D\u7F6E\u63A5\u53E3\u8BE6\u7EC6\u53C2\u6570")}})}else Je({e:"edit",name:f,inface:f=="wan"?n.wan[v]:n.lan[v],next:g=>{f=="wan"?n.wan[v]=g:n.lan[v]=g}})},m=(f,v)=>f?f.indexOf(v):-1,u=(f,v)=>{const b=f.target.value;for(let x=0;x<n.wan.length;x++){const k=m(n.wan[x].deviceNames,b);k!=-1&&n.wan[x].deviceNames.splice(k,1)}for(let x=0;x<n.lan.length;x++)if(x!=v){const k=m(n.lan[x].deviceNames,b);k!=-1&&n.lan[x].deviceNames.splice(k,1)}const _=m(n.lan[v].deviceNames,b);_!=-1?n.lan[v].deviceNames.splice(_,1):(n.lan[v].deviceNames===null&&(n.lan[v].deviceNames=[]),n.lan[v].deviceNames.push(b))},d=(f,v)=>{const b=f.target.value;for(let _=0;_<n.wan.length;_++)if(_!=v){const x=m(n.wan[_].deviceNames,b);x!=-1&&n.wan[_].deviceNames.splice(x,1)}for(let _=0;_<n.lan.length;_++){const x=m(n.lan[_].deviceNames,b);x!=-1&&n.lan[_].deviceNames.splice(x,1)}n.wan[v].deviceNames=[b]},c=()=>T(this,null,function*(){o.value=!0;const f=[];for(let g=0;g<n.wan.length;g++){const b=n.wan[g];f.push({name:b.name,proto:b.proto,devices:b.deviceNames||[],firewallType:b.firewallType})}for(let g=0;g<n.lan.length;g++){const b=n.lan[g];if(b.name==="lan"&&(!b.deviceNames||b.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}f.push({name:b.name,proto:b.proto,devices:b.deviceNames||[],firewallType:b.firewallType})}const v=F.Loading("\u4FDD\u5B58\u4E2D...");try{const g=yield S.Network.POSTInterfaceConfig.POST({configs:f});if(g.data){const{success:b,result:_,error:x}=g.data;if(x)throw x;(b||0)==0&&F.Success("\u914D\u7F6E\u6210\u529F")}}catch(g){F.Error(`${g}`)}finally{v.Close(),o.value=!1}});return(f,v)=>(i(),r("div",py,[fy,t("div",null,[t("div",my,[t("table",vy,[t("colgroup",null,[(i(!0),r(L,null,j(w(a).devices,g=>(i(),r("col",by))),256)),gy,_y,hy]),t("thead",null,[t("tr",ky,[(i(!0),r(L,null,j(w(a).devices,g=>(i(),r("th",xy,[t("div",wy,[D(na,{item:g},null,8,["item"])])]))),256)),yy,Fy,Ey])]),t("tbody",null,[(i(!0),r(L,null,j(w(n).lan,(g,b)=>(i(),r("tr",Cy,[(i(!0),r(L,null,j(w(a).devices,_=>(i(),r("td",$y,[z(t("input",{type:"checkbox",name:_.name,value:_.name,"onUpdate:modelValue":x=>g.deviceNames=x,onInput:x=>u(x,b)},null,40,Dy),[[Tt,g.deviceNames]])]))),256)),By,t("td",Yy,[t("b",null,h(g.name),1)]),t("td",Ay,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u7F16\u8F91",onClick:_=>p("lan",b)},"\u7F16\u8F91",8,Sy),b!=0?(i(),r("button",{key:0,class:"cbi-button cbi-button-remove",onClick:_=>l("lan",b)},"\u5220\u9664 ",8,zy)):E("",!0)])]))),256)),t("tr",Py,[(i(!0),r(L,null,j(w(a).devices,g=>(i(),r("td",Ty))),256)),Iy,Ly,t("td",{class:"td cbi-value-field btns",onClick:v[0]||(v[0]=g=>p("lan"))},[D(Ze,{class:"icon"})])]),(i(!0),r(L,null,j(w(n).wan,(g,b)=>(i(),r("tr",My,[(i(!0),r(L,null,j(w(a).devices,_=>(i(),r("td",Oy,[z(t("input",{type:"checkbox",name:_.name,value:_.name,"onUpdate:modelValue":x=>g.deviceNames=x,onInput:x=>d(x,b)},null,40,Ny),[[Tt,g.deviceNames]])]))),256)),qy,t("td",Vy,[t("b",null,h(g.name),1)]),t("td",Gy,[t("button",{class:"btn cbi-button cbi-button-apply",title:"\u7F16\u8F91",onClick:_=>p("wan",b)},"\u7F16\u8F91",8,jy),b!=0?(i(),r("button",{key:0,class:"cbi-button cbi-button-remove",onClick:_=>l("wan",b)},"\u5220\u9664",8,Ry)):E("",!0)])]))),256)),t("tr",Uy,[(i(!0),r(L,null,j(w(a).devices,g=>(i(),r("td",Wy))),256)),Hy,Zy,t("td",{class:"td cbi-value-field btns",onClick:v[1]||(v[1]=g=>p("wan"))},[D(Ze,{class:"icon"})])])])])]),t("div",Jy,[t("input",{class:"btn cbi-button cbi-button-apply",type:"button",value:"\u4FDD\u5B58\u5E76\u5E94\u7528",onClick:c,disabled:o.value},null,8,Xy)])])]))}});var Qy=Y(Ky,[["__scopeId","data-v-589588f0"]]);const tF=()=>window.vue_base||"/cgi-bin/luci/admin/quickstart",ha=Na({history:qa(tF()),routes:[{name:"IndexPage",path:"/",meta:{title:"\u63A7\u5236\u53F0"},component:u9},{name:"NetworkPage",path:"/network",meta:{title:"\u7F51\u7EDC\u8BBE\u7F6E\u5411\u5BFC"},component:p9,children:[{path:"",component:Z9},{path:"pppoe",component:yv},{path:"dhcp",component:mb},{path:"gateway",component:ng}]},{name:"RaidPage",path:"/raid",meta:{title:"raid\u5411\u5BFC"},component:wh},{name:"SmartPage",path:"/smart",meta:{title:"smart\u68C0\u6D4B"},component:Bh,children:[{path:"",component:$w},{path:"task",component:Mw},{path:"log",component:Vw}]},{path:"/interfaceconfig",component:Qy}]});ha.beforeEach((e,a)=>(e.meta.title,!0));const ut=tt(io);ut.component("svg-menu",fo);ut.component("svg-system",ho);ut.component("svg-download",Eo);ut.component("svg-store",zo);ut.component("svg-info",Oo);ut.component("svg-disk",cn);ut.component("svg-nav",bn);ut.component("progress-item",ta);ut.component("svg-view-show",Nn);ut.component("svg-view-hidden",Un);ut.component("article-item",Qn);ut.component("switch-box",ea);ut.component("editable-select",Pt);ut.use(aa);ut.use(ha);ut.use(Va());ut.mount("#app")});export default eF();