diff --git a/linkease/luci-app-istorex/Makefile b/linkease/luci-app-istorex/Makefile index dd1678a6..a7e37e83 100755 --- a/linkease/luci-app-istorex/Makefile +++ b/linkease/luci-app-istorex/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=IstoreX -PKG_VERSION:=0.6.2 +PKG_VERSION:=0.6.3 LUCI_DEPENDS:=+luci-app-quickstart +luci-app-store +luci-lib-taskd LUCI_EXTRA_DEPENDS:=luci-lib-taskd (>=1.0.15) LUCI_MINIFY_CSS:=0 diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b1c52d7d.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.05e5ca20.js similarity index 88% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b1c52d7d.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.05e5ca20.js index bb2b46b7..2ca0dd4e 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b1c52d7d.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.05e5ca20.js @@ -1 +1 @@ -var c=(p,t,a)=>new Promise((n,o)=>{var r=e=>{try{s(a.next(e))}catch(_){o(_)}},d=e=>{try{s(a.throw(e))}catch(_){o(_)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(r,d);s((a=a.apply(p,t)).next())});import{_ as i,d as u,I as l,o as x,c as g,b as m,J as v}from"./index.js?v=6248f3bd";const f={id:"page",class:"page-top-container"},b=u({__name:"index",setup(p){const t=l();return(()=>c(this,null,function*(){yield t.getApp()}))(),(n,o)=>(x(),g("div",f,[m(v)]))}});var h=i(b,[["__scopeId","data-v-701aba0b"]]);export{h as default}; +var c=(p,t,a)=>new Promise((n,o)=>{var r=e=>{try{s(a.next(e))}catch(_){o(_)}},d=e=>{try{s(a.throw(e))}catch(_){o(_)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(r,d);s((a=a.apply(p,t)).next())});import{_ as i,d as u,I as l,o as x,c as g,b as m,J as v}from"./index.js?v=bc5d78ec";const f={id:"page",class:"page-top-container"},b=u({__name:"index",setup(p){const t=l();return(()=>c(this,null,function*(){yield t.getApp()}))(),(n,o)=>(x(),g("div",f,[m(v)]))}});var h=i(b,[["__scopeId","data-v-701aba0b"]]);export{h as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.64afbfe6.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.11f1e958.js similarity index 98% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.64afbfe6.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.11f1e958.js index b43e651c..bd8f85bb 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.64afbfe6.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.11f1e958.js @@ -1 +1 @@ -var f=Object.defineProperty;var F=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var v=(s,t,u)=>t in s?f(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u,b=(s,t)=>{for(var u in t||(t={}))h.call(t,u)&&v(s,u,t[u]);if(F)for(var u of F(t))A.call(t,u)&&v(s,u,t[u]);return s};var E=(s,t,u)=>new Promise((r,d)=>{var c=n=>{try{a(u.next(n))}catch(o){d(o)}},l=n=>{try{a(u.throw(n))}catch(o){d(o)}},a=n=>n.done?r(n.value):Promise.resolve(n.value).then(c,l);a((u=u.apply(s,t)).next())});import{d as y,s as m,j as x,o as D,c as _,a as e,x as i,A as p,y as B,z as C,l as V,m as g,B as I,G as w,T as S,C as k}from"./index.js?v=6248f3bd";const M=["onSubmit"],N=w('
\u65C1\u8DEF\u7531\u6A21\u5F0F\uFF0C\u4E5F\u53EB\u5355\u81C2\u8DEF\u7531\u6A21\u5F0F\u3002\u60A8\u53EF\u4EE5\u7528\u4E0A\u4E00\u7EA7\u8DEF\u7531\u62E8\u53F7\uFF0C\u7136\u540E\u7531\u8BE5\u8BBE\u5907\u6765\u5B9E\u73B0\u4E00\u4E9B\u9AD8\u7EA7\u529F\u80FD\u3002
LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F
IP \u5730\u5740\uFF08\u8BF7\u548C\u4E0A\u4E00\u6B65\u8BB0\u5F55\u7684\u4E3B\u8DEF\u7531\u5730\u5740\u5728\u540C\u4E00\u7F51\u6BB5\uFF09
',4),P={class:"label-value"},U=e("div",{class:"label-name"},[e("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),q={class:"label-value"},L=e("div",{class:"label-name"},[e("span",null,"\u7F51\u5173\u5730\u5740")],-1),T={class:"label-value"},G=e("div",{class:"label-name"},[e("span",null,"DNS\u670D\u52A1\u5668")],-1),H={class:"label-value"},R=e("div",{class:"label-name"},[e("span",null,"\u662F\u5426\u63D0\u4F9B DHCP\uFF08\u5982\u679C\u662F\u63D0\u4F9B DHCP\uFF0C\u5219\u9700\u8981\u5173\u95ED\u4E3B\u8DEF\u7531 DHCP\uFF09")],-1),j={class:"label-value"},z={class:"label-flex"},O={class:"label-btns"},J=["disabled"],K={key:0,class:"label-msg"},X=y({__name:"index",setup(s){const t=m(""),u=x({subnetMask:"255.255.255.0",staticDnsIp:"223.5.5.5",staticLanIp:"",gateway:"",enableDhcp:!0}),r=m(!1),d=()=>E(this,null,function*(){const c=b({},u),l=S.Loading("\u914D\u7F6E\u4E2D...");try{const a=yield k.Guide.GatewayRouter.POST(c);if(a!=null&&a.data){const{success:n,error:o}=a==null?void 0:a.data;o&&(t.value=o),(n==null||n==0)&&(t.value="\u914D\u7F6E\u6210\u529F")}}catch(a){t.value=a}l.Close()});return(c,l)=>(D(),_("form",{class:"form-container",onSubmit:I(d,["prevent"])},[N,e("div",P,[i(e("input",{type:"text",placeholder:"ip\u5730\u5740","onUpdate:modelValue":l[0]||(l[0]=a=>u.staticLanIp=a),required:""},null,512),[[p,u.staticLanIp,void 0,{trim:!0}]])]),U,e("div",q,[i(e("input",{type:"text",placeholder:"\u5B50\u7F51\u63A9\u7801\u5730\u5740","onUpdate:modelValue":l[1]||(l[1]=a=>u.subnetMask=a),required:""},null,512),[[p,u.subnetMask,void 0,{trim:!0}]])]),L,e("div",T,[i(e("input",{type:"text",placeholder:"\u7F51\u5173\u5730\u5740","onUpdate:modelValue":l[2]||(l[2]=a=>u.gateway=a),required:""},null,512),[[p,u.gateway,void 0,{trim:!0}]])]),G,e("div",H,[i(e("input",{type:"text",placeholder:"dns\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":l[3]||(l[3]=a=>u.staticDnsIp=a),required:""},null,512),[[p,u.staticDnsIp,void 0,{trim:!0}]])]),R,e("div",j,[e("div",z,[e("label",null,[i(e("input",{type:"radio",value:!1,"onUpdate:modelValue":l[4]||(l[4]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),C("\u5173\u95ED")]),e("label",null,[i(e("input",{type:"radio",value:!0,"onUpdate:modelValue":l[5]||(l[5]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),C("\u542F\u7528")])])]),e("div",O,[e("button",{class:"sumbit",disabled:r.value},"\u4FDD\u5B58",8,J)]),t.value?(D(),_("div",K,[e("span",null,V(t.value),1)])):g("",!0)],40,M))}});export{X as default}; +var f=Object.defineProperty;var F=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var v=(s,t,u)=>t in s?f(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u,b=(s,t)=>{for(var u in t||(t={}))h.call(t,u)&&v(s,u,t[u]);if(F)for(var u of F(t))A.call(t,u)&&v(s,u,t[u]);return s};var E=(s,t,u)=>new Promise((r,d)=>{var c=n=>{try{a(u.next(n))}catch(o){d(o)}},l=n=>{try{a(u.throw(n))}catch(o){d(o)}},a=n=>n.done?r(n.value):Promise.resolve(n.value).then(c,l);a((u=u.apply(s,t)).next())});import{d as y,s as m,j as x,o as D,c as _,a as e,x as i,A as p,y as B,z as C,l as V,m as g,B as I,G as w,T as S,C as k}from"./index.js?v=bc5d78ec";const M=["onSubmit"],N=w('
\u65C1\u8DEF\u7531\u6A21\u5F0F\uFF0C\u4E5F\u53EB\u5355\u81C2\u8DEF\u7531\u6A21\u5F0F\u3002\u60A8\u53EF\u4EE5\u7528\u4E0A\u4E00\u7EA7\u8DEF\u7531\u62E8\u53F7\uFF0C\u7136\u540E\u7531\u8BE5\u8BBE\u5907\u6765\u5B9E\u73B0\u4E00\u4E9B\u9AD8\u7EA7\u529F\u80FD\u3002
LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F
IP \u5730\u5740\uFF08\u8BF7\u548C\u4E0A\u4E00\u6B65\u8BB0\u5F55\u7684\u4E3B\u8DEF\u7531\u5730\u5740\u5728\u540C\u4E00\u7F51\u6BB5\uFF09
',4),P={class:"label-value"},U=e("div",{class:"label-name"},[e("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),q={class:"label-value"},L=e("div",{class:"label-name"},[e("span",null,"\u7F51\u5173\u5730\u5740")],-1),T={class:"label-value"},G=e("div",{class:"label-name"},[e("span",null,"DNS\u670D\u52A1\u5668")],-1),H={class:"label-value"},R=e("div",{class:"label-name"},[e("span",null,"\u662F\u5426\u63D0\u4F9B DHCP\uFF08\u5982\u679C\u662F\u63D0\u4F9B DHCP\uFF0C\u5219\u9700\u8981\u5173\u95ED\u4E3B\u8DEF\u7531 DHCP\uFF09")],-1),j={class:"label-value"},z={class:"label-flex"},O={class:"label-btns"},J=["disabled"],K={key:0,class:"label-msg"},X=y({__name:"index",setup(s){const t=m(""),u=x({subnetMask:"255.255.255.0",staticDnsIp:"223.5.5.5",staticLanIp:"",gateway:"",enableDhcp:!0}),r=m(!1),d=()=>E(this,null,function*(){const c=b({},u),l=S.Loading("\u914D\u7F6E\u4E2D...");try{const a=yield k.Guide.GatewayRouter.POST(c);if(a!=null&&a.data){const{success:n,error:o}=a==null?void 0:a.data;o&&(t.value=o),(n==null||n==0)&&(t.value="\u914D\u7F6E\u6210\u529F")}}catch(a){t.value=a}l.Close()});return(c,l)=>(D(),_("form",{class:"form-container",onSubmit:I(d,["prevent"])},[N,e("div",P,[i(e("input",{type:"text",placeholder:"ip\u5730\u5740","onUpdate:modelValue":l[0]||(l[0]=a=>u.staticLanIp=a),required:""},null,512),[[p,u.staticLanIp,void 0,{trim:!0}]])]),U,e("div",q,[i(e("input",{type:"text",placeholder:"\u5B50\u7F51\u63A9\u7801\u5730\u5740","onUpdate:modelValue":l[1]||(l[1]=a=>u.subnetMask=a),required:""},null,512),[[p,u.subnetMask,void 0,{trim:!0}]])]),L,e("div",T,[i(e("input",{type:"text",placeholder:"\u7F51\u5173\u5730\u5740","onUpdate:modelValue":l[2]||(l[2]=a=>u.gateway=a),required:""},null,512),[[p,u.gateway,void 0,{trim:!0}]])]),G,e("div",H,[i(e("input",{type:"text",placeholder:"dns\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":l[3]||(l[3]=a=>u.staticDnsIp=a),required:""},null,512),[[p,u.staticDnsIp,void 0,{trim:!0}]])]),R,e("div",j,[e("div",z,[e("label",null,[i(e("input",{type:"radio",value:!1,"onUpdate:modelValue":l[4]||(l[4]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),C("\u5173\u95ED")]),e("label",null,[i(e("input",{type:"radio",value:!0,"onUpdate:modelValue":l[5]||(l[5]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),C("\u542F\u7528")])])]),e("div",O,[e("button",{class:"sumbit",disabled:r.value},"\u4FDD\u5B58",8,J)]),t.value?(D(),_("div",K,[e("span",null,V(t.value),1)])):g("",!0)],40,M))}});export{X as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8e0a932e.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.12358599.js similarity index 98% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8e0a932e.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.12358599.js index 030f33aa..e80f6f29 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8e0a932e.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.12358599.js @@ -1 +1 @@ -var g=Object.defineProperty;var y=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,u,s)=>u in o?g(o,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[u]=s,k=(o,u)=>{for(var s in u||(u={}))w.call(u,s)&&C(o,s,u[s]);if(y)for(var s of y(u))A.call(u,s)&&C(o,s,u[s]);return o};var b=(o,u,s)=>new Promise((i,t)=>{var p=d=>{try{c(s.next(d))}catch(l){t(l)}},m=d=>{try{c(s.throw(d))}catch(l){t(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(p,m);c((s=s.apply(o,u)).next())});import{d as T,s as E,j as U,v as q,o as _,c as f,a as e,x as r,A as D,F as V,y as P,z as x,m as B,l as G,B as H,C as M,T as F}from"./index.js?v=6248f3bd";import{i as v}from"./chunk.6d3585bb.js";const L=["onSubmit"],N=e("div",{class:"label-name"},[e("span",null,"\u5185\u7F51\u5730\u5740")],-1),R={class:"label-value"},j=e("div",{class:"label-name"},[e("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),z={class:"label-value"},O=e("div",{class:"label-name"},[e("span",null,"DHCP\u670D\u52A1")],-1),$={class:"label-value"},J={class:"label-flex"},K=e("div",{class:"label-name"},[e("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1),Q={class:"label-value"},W=e("div",{class:"label-name"},[e("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1),X={class:"label-value"},Y={class:"label-btns"},Z=["disabled"],ee={key:2,class:"label-msg"},ue=T({__name:"index",setup(o){return b(this,null,function*(){let u,s;const i=E(""),t=U({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""}),p=E(!1),m=E(!1),c=()=>b(this,null,function*(){p.value=!0;const l=yield M.Guide.GetLan.GET();if(l.data){const{result:a}=l.data;a&&(t.lanIp=a.lanIp,t.netMask=a.netMask,m.value=a.enableDhcp||!1,t.dhcpStart=a.dhcpStart,t.dhcpEnd=a.dhcpEnd,a.lanIp,location.hostname)}p.value=!1});[u,s]=q(()=>c()),yield u,s();const d=()=>b(this,null,function*(){const l=k({},t);if(!v.isValidIP(l.lanIp)){F.Error("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!v.isValidMask(l.netMask)){F.Error("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(l.enableDhcp&&!v.isValidIP(l.dhcpStart)||!v.isValidIP(l.dhcpEnd)||!v.isValidMaskRange(l.lanIp,l.netMask,l.dhcpStart,l.dhcpEnd)){F.Error("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const a=F.Loading("\u6B63\u5728\u914D\u7F6E,\u8BF7\u7A0D\u7B49\u2026");let n=!1;try{const h=yield M.Guide.LanIp.POST(l);if(h.data){const{result:ae,success:S,error:I}=h.data;if(I){i.value=I;return}(S||0)==0&&(n=!0)}}catch(h){i.value=h}finally{a.Close()}n&&(i.value=`\u66F4\u65B0\u6210\u529F,\u8BF7\u8FDB\u5165 ${l.lanIp} \u8DEF\u7531\u5668\u5730\u5740`)});return(l,a)=>(_(),f("form",{class:"form-container",onSubmit:H(d,["prevent"])},[N,e("div",R,[r(e("input",{type:"text",placeholder:"192.168.100.1","onUpdate:modelValue":a[0]||(a[0]=n=>t.lanIp=n),required:""},null,512),[[D,t.lanIp,void 0,{trim:!0}]])]),j,e("div",z,[r(e("input",{type:"text",placeholder:"255.255.255.0","onUpdate:modelValue":a[1]||(a[1]=n=>t.netMask=n),required:""},null,512),[[D,t.netMask,void 0,{trim:!0}]])]),m.value?(_(),f(V,{key:0},[O,e("div",$,[e("div",J,[e("label",null,[r(e("input",{type:"radio",value:!1,"onUpdate:modelValue":a[2]||(a[2]=n=>t.enableDhcp=n)},null,512),[[P,t.enableDhcp]]),x("\u4FDD\u6301DHCP")]),e("label",null,[r(e("input",{type:"radio",value:!0,"onUpdate:modelValue":a[3]||(a[3]=n=>t.enableDhcp=n)},null,512),[[P,t.enableDhcp]]),x("\u4FEE\u6539DHCP")])])])],64)):B("",!0),t.enableDhcp?(_(),f(V,{key:1},[K,e("div",Q,[r(e("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":a[4]||(a[4]=n=>t.dhcpStart=n),required:""},null,512),[[D,t.dhcpStart,void 0,{trim:!0}]])]),W,e("div",X,[r(e("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":a[5]||(a[5]=n=>t.dhcpEnd=n),required:""},null,512),[[D,t.dhcpEnd,void 0,{trim:!0}]])])],64)):B("",!0),e("div",Y,[e("button",{class:"sumbit",disabled:p.value},"\u4FDD\u5B58",8,Z)]),i.value?(_(),f("div",ee,[e("span",null,G(i.value),1)])):B("",!0)],40,L))})}});export{ue as default}; +var g=Object.defineProperty;var y=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,u,s)=>u in o?g(o,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[u]=s,k=(o,u)=>{for(var s in u||(u={}))w.call(u,s)&&C(o,s,u[s]);if(y)for(var s of y(u))A.call(u,s)&&C(o,s,u[s]);return o};var b=(o,u,s)=>new Promise((i,t)=>{var p=d=>{try{c(s.next(d))}catch(l){t(l)}},m=d=>{try{c(s.throw(d))}catch(l){t(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(p,m);c((s=s.apply(o,u)).next())});import{d as T,s as E,j as U,v as q,o as _,c as f,a as e,x as r,A as D,F as V,y as P,z as x,m as B,l as G,B as H,C as M,T as F}from"./index.js?v=bc5d78ec";import{i as v}from"./chunk.6d3585bb.js";const L=["onSubmit"],N=e("div",{class:"label-name"},[e("span",null,"\u5185\u7F51\u5730\u5740")],-1),R={class:"label-value"},j=e("div",{class:"label-name"},[e("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),z={class:"label-value"},O=e("div",{class:"label-name"},[e("span",null,"DHCP\u670D\u52A1")],-1),$={class:"label-value"},J={class:"label-flex"},K=e("div",{class:"label-name"},[e("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1),Q={class:"label-value"},W=e("div",{class:"label-name"},[e("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1),X={class:"label-value"},Y={class:"label-btns"},Z=["disabled"],ee={key:2,class:"label-msg"},ue=T({__name:"index",setup(o){return b(this,null,function*(){let u,s;const i=E(""),t=U({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""}),p=E(!1),m=E(!1),c=()=>b(this,null,function*(){p.value=!0;const l=yield M.Guide.GetLan.GET();if(l.data){const{result:a}=l.data;a&&(t.lanIp=a.lanIp,t.netMask=a.netMask,m.value=a.enableDhcp||!1,t.dhcpStart=a.dhcpStart,t.dhcpEnd=a.dhcpEnd,a.lanIp,location.hostname)}p.value=!1});[u,s]=q(()=>c()),yield u,s();const d=()=>b(this,null,function*(){const l=k({},t);if(!v.isValidIP(l.lanIp)){F.Error("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!v.isValidMask(l.netMask)){F.Error("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(l.enableDhcp&&!v.isValidIP(l.dhcpStart)||!v.isValidIP(l.dhcpEnd)||!v.isValidMaskRange(l.lanIp,l.netMask,l.dhcpStart,l.dhcpEnd)){F.Error("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const a=F.Loading("\u6B63\u5728\u914D\u7F6E,\u8BF7\u7A0D\u7B49\u2026");let n=!1;try{const h=yield M.Guide.LanIp.POST(l);if(h.data){const{result:ae,success:S,error:I}=h.data;if(I){i.value=I;return}(S||0)==0&&(n=!0)}}catch(h){i.value=h}finally{a.Close()}n&&(i.value=`\u66F4\u65B0\u6210\u529F,\u8BF7\u8FDB\u5165 ${l.lanIp} \u8DEF\u7531\u5668\u5730\u5740`)});return(l,a)=>(_(),f("form",{class:"form-container",onSubmit:H(d,["prevent"])},[N,e("div",R,[r(e("input",{type:"text",placeholder:"192.168.100.1","onUpdate:modelValue":a[0]||(a[0]=n=>t.lanIp=n),required:""},null,512),[[D,t.lanIp,void 0,{trim:!0}]])]),j,e("div",z,[r(e("input",{type:"text",placeholder:"255.255.255.0","onUpdate:modelValue":a[1]||(a[1]=n=>t.netMask=n),required:""},null,512),[[D,t.netMask,void 0,{trim:!0}]])]),m.value?(_(),f(V,{key:0},[O,e("div",$,[e("div",J,[e("label",null,[r(e("input",{type:"radio",value:!1,"onUpdate:modelValue":a[2]||(a[2]=n=>t.enableDhcp=n)},null,512),[[P,t.enableDhcp]]),x("\u4FDD\u6301DHCP")]),e("label",null,[r(e("input",{type:"radio",value:!0,"onUpdate:modelValue":a[3]||(a[3]=n=>t.enableDhcp=n)},null,512),[[P,t.enableDhcp]]),x("\u4FEE\u6539DHCP")])])])],64)):B("",!0),t.enableDhcp?(_(),f(V,{key:1},[K,e("div",Q,[r(e("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":a[4]||(a[4]=n=>t.dhcpStart=n),required:""},null,512),[[D,t.dhcpStart,void 0,{trim:!0}]])]),W,e("div",X,[r(e("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":a[5]||(a[5]=n=>t.dhcpEnd=n),required:""},null,512),[[D,t.dhcpEnd,void 0,{trim:!0}]])])],64)):B("",!0),e("div",Y,[e("button",{class:"sumbit",disabled:p.value},"\u4FDD\u5B58",8,Z)]),i.value?(_(),f("div",ee,[e("span",null,G(i.value),1)])):B("",!0)],40,L))})}});export{ue as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f3da3763.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.283eada3.js similarity index 97% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f3da3763.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.283eada3.js index f0a200fe..2281861d 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f3da3763.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.283eada3.js @@ -1 +1 @@ -var _=(p,d,a)=>new Promise((c,n)=>{var o=s=>{try{i(a.next(s))}catch(e){n(e)}},f=s=>{try{i(a.throw(s))}catch(e){n(e)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(o,f);i((a=a.apply(p,d)).next())});import{d as g,s as b,j as E,v as w,o as S,c as m,a as r,F as x,E as F,l as h,m as L,B,x as D,y as G,z as T,C as y,T as v}from"./index.js?v=6248f3bd";const C=["onSubmit"],k=r("div",{class:"label-name"},[r("span",null,"\u9009\u62E9\u8F6F\u4EF6\u6E90 ")],-1),I={class:"label-value"},V={class:"label-flex"},N=["value"],M={class:"label-btns"},j=["disabled"],q={key:0,class:"label-msg"},O=g({__name:"index",setup(p){return _(this,null,function*(){let d,a;const c=b(!1),n=b(""),o=E({softsourceListIfo:[],softSource:{},currSoftSource:{}}),f=()=>_(this,null,function*(){var s,e,u;try{const t=yield y.Guide.SoftSourceList.GET();if((s=t==null?void 0:t.data)!=null&&s.result){const l=(e=t==null?void 0:t.data)==null?void 0:e.result;o.softsourceListIfo=l.softSourceList||[]}}catch(t){console.log(t)}try{const t=yield y.Guide.GetSoftSource.GET();if((u=t==null?void 0:t.data)!=null&&u.result){const l=t.data.result;o.softSource=l.softSource,o.currSoftSource=l.softSource}}catch(t){console.log(t)}});[d,a]=w(()=>f()),yield d,a();const i=()=>_(this,null,function*(){const s=v.Loading("\u6B63\u5728\u5207\u6362\u4E2D...");c.value=!0;try{const e=yield y.Guide.SoftSource.POST({softSourceIdentity:o.softSource.identity});if(e!=null&&e.data){const{result:u,error:t,success:l}=e.data;t&&v.Warning(t),(e.data.success||0)==0&&(v.Success("\u5207\u6362\u6210\u529F"),yield f())}}catch(e){v.Error(`${e}`)}finally{c.value=!1,s.Close()}});return(s,e)=>(S(),m("form",{class:"form-container",onSubmit:B(i,["prevent"])},[k,r("div",I,[(S(!0),m(x,null,F(o.softsourceListIfo,u=>(S(),m("label",V,[D(r("input",{type:"radio",value:u.identity,"onUpdate:modelValue":e[0]||(e[0]=t=>o.softSource.identity=t)},null,8,N),[[G,o.softSource.identity,void 0,{trim:!0}]]),T(" "+h(u.name),1)]))),256))]),r("div",M,[r("button",{class:"sumbit",disabled:c.value},"\u4FDD\u5B58",8,j)]),n.value?(S(),m("div",q,[r("span",null,h(n.value),1)])):L("",!0)],40,C))})}});export{O as default}; +var _=(p,d,a)=>new Promise((c,n)=>{var o=s=>{try{i(a.next(s))}catch(e){n(e)}},f=s=>{try{i(a.throw(s))}catch(e){n(e)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(o,f);i((a=a.apply(p,d)).next())});import{d as g,s as b,j as E,v as w,o as S,c as m,a as r,F as x,E as F,l as h,m as L,B,x as D,y as G,z as T,C as y,T as v}from"./index.js?v=bc5d78ec";const C=["onSubmit"],k=r("div",{class:"label-name"},[r("span",null,"\u9009\u62E9\u8F6F\u4EF6\u6E90 ")],-1),I={class:"label-value"},V={class:"label-flex"},N=["value"],M={class:"label-btns"},j=["disabled"],q={key:0,class:"label-msg"},O=g({__name:"index",setup(p){return _(this,null,function*(){let d,a;const c=b(!1),n=b(""),o=E({softsourceListIfo:[],softSource:{},currSoftSource:{}}),f=()=>_(this,null,function*(){var s,e,u;try{const t=yield y.Guide.SoftSourceList.GET();if((s=t==null?void 0:t.data)!=null&&s.result){const l=(e=t==null?void 0:t.data)==null?void 0:e.result;o.softsourceListIfo=l.softSourceList||[]}}catch(t){console.log(t)}try{const t=yield y.Guide.GetSoftSource.GET();if((u=t==null?void 0:t.data)!=null&&u.result){const l=t.data.result;o.softSource=l.softSource,o.currSoftSource=l.softSource}}catch(t){console.log(t)}});[d,a]=w(()=>f()),yield d,a();const i=()=>_(this,null,function*(){const s=v.Loading("\u6B63\u5728\u5207\u6362\u4E2D...");c.value=!0;try{const e=yield y.Guide.SoftSource.POST({softSourceIdentity:o.softSource.identity});if(e!=null&&e.data){const{result:u,error:t,success:l}=e.data;t&&v.Warning(t),(e.data.success||0)==0&&(v.Success("\u5207\u6362\u6210\u529F"),yield f())}}catch(e){v.Error(`${e}`)}finally{c.value=!1,s.Close()}});return(s,e)=>(S(),m("form",{class:"form-container",onSubmit:B(i,["prevent"])},[k,r("div",I,[(S(!0),m(x,null,F(o.softsourceListIfo,u=>(S(),m("label",V,[D(r("input",{type:"radio",value:u.identity,"onUpdate:modelValue":e[0]||(e[0]=t=>o.softSource.identity=t)},null,8,N),[[G,o.softSource.identity,void 0,{trim:!0}]]),T(" "+h(u.name),1)]))),256))]),r("div",M,[r("button",{class:"sumbit",disabled:c.value},"\u4FDD\u5B58",8,j)]),n.value?(S(),m("div",q,[r("span",null,h(n.value),1)])):L("",!0)],40,C))})}});export{O as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e7730d0b.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.437e6cf0.js similarity index 97% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e7730d0b.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.437e6cf0.js index 90f03105..cbde1611 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e7730d0b.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.437e6cf0.js @@ -1 +1 @@ -import{d as y,i as p,r as x,o as t,c as n,a as s,b as C,l as a,H as B,_ as D,p as $,q as I,u as S,F as _,E as k,m as v,e as h}from"./index.js?v=6248f3bd";const b=e=>($("data-v-f0f8da84"),e=e(),I(),e),F={class:"disk-item"},E={class:"disk-item_contanier"},z={class:"disk-item_icon"},N={class:"disk-item_name"},w=b(()=>s("div",{class:"auto"},null,-1)),O={class:"disk-item_used"},V={key:0,class:"disk-item_info"},j={class:"label-msg.warning"},q={key:1,class:"disk-item_info"},M=b(()=>s("div",{class:"auto"},null,-1)),A=y({__name:"item",props:{disk:{type:Object,required:!0}},setup(e){const l=e;p(()=>{var o;return((o=l.disk.childrens)==null?void 0:o.length)||0}),p(()=>{var u,c;let o=0;return(c=(u=l.disk)==null?void 0:u.childrens)==null||c.forEach(i=>{if(!i.mountPoint){const r=Number(i.sizeInt),g=(1<<30)*2;r>g&&o++}}),o});const d=()=>{B.OpenDisk({disk:l.disk})};return(o,u)=>{const c=x("icon-disk");return t(),n("div",F,[s("div",E,[s("div",z,[C(c)]),s("div",N,[s("span",null,a(e.disk.name)+" \u3010"+a(e.disk.size)+"\u3011"+a(e.disk.venderModel),1)]),w,s("div",O,[s("span",null,a(e.disk.used)+" / "+a(e.disk.total),1)])]),e.disk.errorInfo?(t(),n("div",V,[s("span",j,a(e.disk.errorInfo),1)])):(t(),n("div",q,[s("span",null,a(e.disk.path),1),M,s("a",{onClick:u[0]||(u[0]=i=>d())}," \u67E5\u770B ")]))])}}});var m=D(A,[["__scopeId","data-v-f0f8da84"]]);const f=e=>($("data-v-bf0d8af0"),e=e(),I(),e),H={key:0,class:"ul-container"},L=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u7CFB\u7EDF\u78C1\u76D8")],-1)),P={class:"ul-container_body"},G={key:1,class:"ul-container"},J=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),K={class:"ul-container_body"},Q={key:2,class:"ul-container"},R=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u672A\u8BC6\u522B\u78C1\u76D8")],-1)),T={class:"ul-container_body"},U={key:3,class:"ul-container"},W=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"raid")],-1)),X={class:"ul-container_body"},Y=y({__name:"index",setup(e){const l=S(),d=p(()=>l.disk),o=p(()=>l.raid.disks);return(u,c)=>(t(),n("main",null,[d.value.rootDisks.length>0?(t(),n("ul",H,[L,s("div",P,[(t(!0),n(_,null,k(d.value.rootDisks,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0),d.value.mountedDisks.length>0?(t(),n("ul",G,[J,s("div",K,[(t(!0),n(_,null,k(d.value.mountedDisks,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0),d.value.errorDisks.length>0?(t(),n("ul",Q,[R,s("div",T,[(t(!0),n(_,null,k(d.value.errorDisks,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0),o.value.length>0?(t(),n("ul",U,[W,s("div",X,[(t(!0),n(_,null,k(o.value,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0)]))}});var ss=D(Y,[["__scopeId","data-v-bf0d8af0"]]);export{ss as default}; +import{d as y,i as p,r as x,o as t,c as n,a as s,b as C,l as a,H as B,_ as D,p as $,q as I,u as S,F as _,E as k,m as v,e as h}from"./index.js?v=bc5d78ec";const b=e=>($("data-v-f0f8da84"),e=e(),I(),e),F={class:"disk-item"},E={class:"disk-item_contanier"},z={class:"disk-item_icon"},N={class:"disk-item_name"},w=b(()=>s("div",{class:"auto"},null,-1)),O={class:"disk-item_used"},V={key:0,class:"disk-item_info"},j={class:"label-msg.warning"},q={key:1,class:"disk-item_info"},M=b(()=>s("div",{class:"auto"},null,-1)),A=y({__name:"item",props:{disk:{type:Object,required:!0}},setup(e){const l=e;p(()=>{var o;return((o=l.disk.childrens)==null?void 0:o.length)||0}),p(()=>{var u,c;let o=0;return(c=(u=l.disk)==null?void 0:u.childrens)==null||c.forEach(i=>{if(!i.mountPoint){const r=Number(i.sizeInt),g=(1<<30)*2;r>g&&o++}}),o});const d=()=>{B.OpenDisk({disk:l.disk})};return(o,u)=>{const c=x("icon-disk");return t(),n("div",F,[s("div",E,[s("div",z,[C(c)]),s("div",N,[s("span",null,a(e.disk.name)+" \u3010"+a(e.disk.size)+"\u3011"+a(e.disk.venderModel),1)]),w,s("div",O,[s("span",null,a(e.disk.used)+" / "+a(e.disk.total),1)])]),e.disk.errorInfo?(t(),n("div",V,[s("span",j,a(e.disk.errorInfo),1)])):(t(),n("div",q,[s("span",null,a(e.disk.path),1),M,s("a",{onClick:u[0]||(u[0]=i=>d())}," \u67E5\u770B ")]))])}}});var m=D(A,[["__scopeId","data-v-f0f8da84"]]);const f=e=>($("data-v-bf0d8af0"),e=e(),I(),e),H={key:0,class:"ul-container"},L=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u7CFB\u7EDF\u78C1\u76D8")],-1)),P={class:"ul-container_body"},G={key:1,class:"ul-container"},J=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),K={class:"ul-container_body"},Q={key:2,class:"ul-container"},R=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u672A\u8BC6\u522B\u78C1\u76D8")],-1)),T={class:"ul-container_body"},U={key:3,class:"ul-container"},W=f(()=>s("div",{class:"ul-container_title"},[s("span",null,"raid")],-1)),X={class:"ul-container_body"},Y=y({__name:"index",setup(e){const l=S(),d=p(()=>l.disk),o=p(()=>l.raid.disks);return(u,c)=>(t(),n("main",null,[d.value.rootDisks.length>0?(t(),n("ul",H,[L,s("div",P,[(t(!0),n(_,null,k(d.value.rootDisks,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0),d.value.mountedDisks.length>0?(t(),n("ul",G,[J,s("div",K,[(t(!0),n(_,null,k(d.value.mountedDisks,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0),d.value.errorDisks.length>0?(t(),n("ul",Q,[R,s("div",T,[(t(!0),n(_,null,k(d.value.errorDisks,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0),o.value.length>0?(t(),n("ul",U,[W,s("div",X,[(t(!0),n(_,null,k(o.value,(i,r)=>(t(),h(m,{disk:i},null,8,["disk"]))),256))])])):v("",!0)]))}});var ss=D(Y,[["__scopeId","data-v-bf0d8af0"]]);export{ss as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a77bd404.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.477e6e94.js similarity index 99% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a77bd404.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.477e6e94.js index 77b5ee0c..f0b26e98 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a77bd404.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.477e6e94.js @@ -1 +1 @@ -var b=(i,u,t)=>new Promise((s,_)=>{var h=n=>{try{o(t.next(n))}catch(l){_(l)}},p=n=>{try{o(t.throw(n))}catch(l){_(l)}},o=n=>n.done?s(n.value):Promise.resolve(n.value).then(h,p);o((t=t.apply(i,u)).next())});import{d as F,I as Y,i as x,s as $,r as m,o as a,e as k,w as r,b as c,c as d,E as O,F as A,_ as y,O as X,C as M,T as G,Q as J,a as e,l as C,p as I,q as z,R as H,U,V as K,W as e1,g as L,j as q,m as E,H as t1,u as D,X as s1,k as n1,h as N,N as R,Y as a1,z as o1,n as i1,Z as l1,$ as T}from"./index.js?v=6248f3bd";import{F as c1,a as u1,G as j}from"./chunk.af55284f.js";const Q=i=>(I("data-v-37664f80"),i=i(),z(),i),d1=Q(()=>e("div",{class:"app-content"},[e("div",{class:"app-icon",style:{background:"none",padding:"0"}},[e("svg",{class:"icon",viewBox:"0 0 520 520",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e("title",null,"\u5E94\u7528\u5546\u5E97"),e("g",{id:"\u5E94\u7528\u5546\u5E97",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e("path",{d:"M100.645161,0 L419.354839,0 C474.939626,0 520,45.0603736 520,100.645161 L520,419.354839 C520,474.939626 474.939626,520 419.354839,520 L100.645161,520 C45.0603736,520 0,474.939626 0,419.354839 L0,100.645161 C0,45.0603736 45.0603736,0 100.645161,0 Z",id:"Rectangle",fill:"#FFFFFF"}),e("g",{id:"Group-4",transform:"translate(100.000000, 110.000000)"},[e("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,295.333333 27,290 L27,70 C27,64.6666668 31.6725001,60 37.0125,60 L283.9875,60 C289.3275,60 294,64.6666668 294,70 L294,290 C294,295.333333 289.995,300 283.9875,300 Z",id:"Path",fill:"#F4F4F4","fill-rule":"nonzero"}),e("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,298.852778 27,297.541667 L27,243.458333 C27,242.147222 31.6725001,241 37.0125,241 L283.9875,241 C289.3275,241 294,242.147222 294,243.458333 L294,297.541667 C294,298.852778 289.995,300 283.9875,300 Z",id:"Path",fill:"#CACACA","fill-rule":"nonzero"}),e("g",{id:"Group"},[e("g",{id:"Group-3"},[e("path",{d:"M95,0 L80,135 C80,157.09139 62.09139,175 40,175 C17.90861,175 0,157.09139 0,135 L34,0 L95,0 Z",id:"Path",fill:"#C0FFEA"}),e("path",{d:"M160,0 L160,135 C160,157.09139 142.09139,175 120,175 C97.90861,175 80,157.09139 80,135 C80,131.957009 80.3397951,128.993381 80.9835121,126.14499 L95,0 L160,0 Z",id:"Path",fill:"#01DE96"}),e("path",{d:"M160,0 L227,0 L239.258077,127.292436 C239.744914,129.78649 240,132.363456 240,135 C240,157.09139 222.09139,175 200,175 C177.90861,175 160,157.09139 160,135 L160,135 L160,0 Z",id:"Combined-Shape",fill:"#C0FFEA"}),e("path",{d:"M227,0 L288,0 L320,135 C320,157.09139 302.09139,175 280,175 C258.129524,175 240.35859,157.447771 240.005359,135.661473 L240,135 L227,0 Z",id:"Path",fill:"#01DE96"})]),e("g",{id:"Group-2",transform:"translate(0.000000, 135.000000)"},[e("path",{d:"M80,0 C80,22.09139 62.09139,40 40,40 C17.90861,40 0,22.09139 0,0 L80,0 Z",id:"Path",fill:"#B3F1DD"}),e("path",{d:"M160,0 C160,22.09139 142.09139,40 120,40 C97.90861,40 80,22.09139 80,0 L160,0 Z",id:"Path",fill:"#02C485"}),e("path",{d:"M240,0 C240,22.09139 222.09139,40 200,40 C178.129524,40 160.35859,22.4477713 160.005359,0.66147314 L160,0 L240,0 Z",id:"Path",fill:"#B3F1DD"}),e("path",{d:"M320,0 C320,22.09139 302.09139,40 280,40 C258.129524,40 240.35859,22.4477713 240.005359,0.66147314 L240,0 L320,0 Z",id:"Path",fill:"#02C485"})])])])])])]),e("div",{class:"app-name"}," \u5E94\u7528\u5546\u5E97 ")],-1)),_1=Q(()=>e("div",{class:"app-content"},[e("div",{class:"app-icon",style:{background:"none",padding:"0"}},[e("svg",{t:"1667208366992",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2669",width:"128",height:"128"},[e("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z",fill:"#E8EFF8","p-id":"2670"}),e("path",{d:"M141.637818 405.643636A23.272727 23.272727 0 0 0 160.814545 442.181818h350.487273a23.272727 23.272727 0 0 0 18.455273-37.469091L364.683636 190.161455a46.545455 46.545455 0 0 0-75.170909 1.88509l-147.874909 213.620364z",fill:"#69CB91","p-id":"2671"}),e("path",{d:"M337.454545 884.363636a174.545455 174.545455 0 1 0 0-349.090909 174.545455 174.545455 0 0 0 0 349.090909z",fill:"#247ADE","p-id":"2672"}),e("path",{d:"M907.636364 186.181818a23.272727 23.272727 0 0 0-23.272728-23.272727h-209.454545a23.272727 23.272727 0 0 0-23.272727 23.272727v674.909091a23.272727 23.272727 0 0 0 23.272727 23.272727h209.454545a23.272727 23.272727 0 0 0 23.272728-23.272727V186.181818z",fill:"#A0BFF7","p-id":"2673"})])]),e("div",{class:"app-name"}," NAS\u5957\u4EF6 ")],-1)),r1=["onClick"],p1={class:"app-icon"},v1=["src"],h1={class:"app-name"},m1={class:"app-footer"},g1=["onClick"],f1=["onClick"],C1={class:"app-content"},$1={class:"app-icon"},w1=["src"],F1={class:"app-name"},k1=F({__name:"index",setup(i){const u=Y(),t=x(()=>u.localApps.filter(n=>n.name!="istorex")),s=$(!1);(()=>b(this,null,function*(){yield u.getApp(),setTimeout(()=>{p()},2e3)}))();const h=()=>{X.Open()},p=()=>b(this,null,function*(){try{if((yield M.Quickstart.Guide.GlobalFolders.GET()).status!==200)return}catch(n){console.log(n);return}s.value=!0;try{const n=yield M.Storage.Get.POST({key:"nas_guide_init"});if(n.data){const{success:l,error:g,result:v}=n.data;if(v&&v.key=="nas_guide_init")return}}catch(n){return}o()}),o=()=>{if(!s.value){G.Warning("\u8BF7\u5148\u66F4\u65B0\u7CFB\u7EDF\u5230\u6700\u65B0\u7248\u672C");return}J.OpenGuideWindow()};return(n,l)=>{const g=m("nas-section-title"),v=m("nas-section-item"),w=m("nas-section-container"),P=m("nas-section");return a(),k(P,null,{default:r(()=>[c(g,{title:"Apps"}),c(w,{class:"section-app-container"},{default:r(()=>[c(v,{onClick:l[0]||(l[0]=f=>h())},{default:r(()=>[d1]),_:1}),c(v,{onClick:l[1]||(l[1]=f=>o())},{default:r(()=>[_1]),_:1}),(a(!0),d(A,null,O(t.value,f=>(a(),d(A,null,[f.isWebUrl()?(a(),k(v,{key:0,class:"app-item",name:f.name,title:f.title},{default:r(()=>[e("div",{class:"app-content",onClick:Z=>f.openWebUrl()},[e("div",p1,[e("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:f.getIcon()},null,8,v1)]),e("div",h1,C(f.title),1)],8,r1),e("div",m1,[e("button",{class:"open",onClick:Z=>f.openWebUrl()}," \u6253\u5F00 ",8,g1),e("button",{class:"setting",onClick:Z=>f.openApp()}," \u914D\u7F6E ",8,f1)])]),_:2},1032,["name","title"])):(a(),k(v,{key:1,onClick:Z=>f.openApp(),name:f.name,title:f.title},{default:r(()=>[e("div",C1,[e("div",$1,[e("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:f.getIcon()},null,8,w1)]),e("div",F1,C(f.title),1)])]),_:2},1032,["onClick","name","title"]))],64))),256))]),_:1})]),_:1})}}});var y1=y(k1,[["__scopeId","data-v-37664f80"]]);const E1=i=>(I("data-v-c01a3f98"),i=i(),z(),i),L1={class:"tabls"},x1=E1(()=>e("section",{class:"tab-content"},[e("div",{class:"label-value"},[e("div",{class:"label-name"},[e("span",null,"\u6302\u8F7D\u70B9")]),e("div",{class:"label-value"},[e("input",{type:"text"})])])],-1)),B1=F({__name:"index",props:{disk:{type:Object,required:!0},close:Function},setup(i){const u=i,t=()=>{o.value&&location.reload(),u.close&&u.close()},s=$("main"),_=$(!1),h=$(u.disk),p=$(null),o=$(!1);H("disk",h),H("updateDisk",l=>{h.value=l,o.value=!0}),H("disabled",_),H("onMount",l=>{p.value=l,s.value="mount"});const n=l=>{l=="mount"&&(p.value=null),s.value=l};return(l,g)=>(a(),k(K,{onHandleClose:t,title:"\u5171\u4EAB\u8BBE\u7F6E",width:"420px"},{default:r(()=>[e("ul",L1,[e("button",{class:U({on:s.value=="main"}),onClick:g[0]||(g[0]=v=>n("main"))},"Samba",2),e("button",{class:U({on:s.value=="partition"}),onClick:g[1]||(g[1]=v=>n("partition"))},"WebDav",2)]),x1]),_:1}))}});var b1=y(B1,[["__scopeId","data-v-c01a3f98"]]);class A1 extends e1{Open(){this.openWindow(b1)}}const D1=new A1;const B=i=>(I("data-v-2815b650"),i=i(),z(),i),S1=B(()=>e("div",{class:"tool-content"},[e("div",{class:"f"},[e("div",{class:"title"}," \u6587\u4EF6\u7BA1\u7406 "),e("div",{class:"desc"}," \u5728\u7EBF\u7BA1\u7406\u6587\u4EF6 "),e("div",{class:"btns"},[e("a",{href:"/cgi-bin/luci/admin/services/linkease/file",target:"_blank",class:"open",rel:"noopener noreferrer"}," \u6253\u5F00 ")])]),e("div",{class:"r"},[e("svg",{class:"icon",viewBox:"0 0 520 520",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e("title",null,"\u6587\u4EF6\u7BA1\u7406"),e("g",{id:"\u6587\u4EF6\u7BA1\u7406",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e("path",{d:"M100.645161,0 L419.354839,0 C474.939626,0 520,45.0603736 520,100.645161 L520,419.354839 C520,474.939626 474.939626,520 419.354839,520 L100.645161,520 C45.0603736,520 0,474.939626 0,419.354839 L0,100.645161 C0,45.0603736 45.0603736,0 100.645161,0 Z",id:"Rectangle",fill:"#FFFFFF"}),e("g",{id:"Group-5",transform:"translate(91.000000, 125.000000)"},[e("path",{d:"M17.9469027,198 L320.053097,198 L320.004939,41.9999992 C319.997272,33.165374 312.834627,26.0049401 304,26 L168.501475,26 L168.501475,26 L151.360646,5.6827235 C148.32056,2.07926566 143.845981,1.98155802e-14 139.131426,0 L34,0 C25.1651196,0.00429126987 18.0023698,7.16512047 17.9957093,15.9999994 L17.9469027,198 L17.9469027,198 Z",id:"Path-2",fill:"#FFB02C",transform:"translate(169.000000, 99.000000) scale(-1, 1) translate(-169.000000, -99.000000) "}),e("path",{d:"M297.245454,178.4361 L67.8061501,197.326892 C63.4027721,197.689443 59.5392238,194.413704 59.1766735,190.010326 C59.1711924,189.943756 59.1665453,189.87712 59.1627333,189.810433 L51.4420645,54.7472375 C51.1956458,50.4364574 54.4144797,46.7079405 58.7150678,46.322598 L288.43249,25.7393906 C292.833138,25.3450825 296.720218,28.5928625 297.114526,32.9935104 C297.122855,33.0864604 297.129556,33.1795491 297.134627,33.2727336 L304.577178,170.028344 C304.812572,174.353677 301.562579,178.080651 297.245454,178.4361 Z",id:"Path",fill:"#E8E8E8","fill-rule":"nonzero"}),e("path",{d:"M289.245454,185.4361 L59.8061501,204.326892 C55.4027721,204.689443 51.5392238,201.413704 51.1766735,197.010326 C51.1711924,196.943756 51.1665453,196.87712 51.1627333,196.810433 L43.4420645,61.7472375 C43.1956458,57.4364574 46.4144797,53.7079405 50.7150678,53.322598 L280.43249,32.7393906 C284.833138,32.3450825 288.720218,35.5928625 289.114526,39.9935104 C289.122855,40.0864604 289.129556,40.1795491 289.134627,40.2727336 L296.577178,177.028344 C296.812572,181.353677 293.562579,185.080651 289.245454,185.4361 Z",id:"Path",fill:"#F3F3F3","fill-rule":"nonzero"}),e("path",{d:"M280.245454,191.4361 L50.8061501,210.326892 C46.4027721,210.689443 42.5392238,207.413704 42.1766735,203.010326 C42.1711924,202.943756 42.1665453,202.87712 42.1627333,202.810433 L34.4420645,67.7472375 C34.1956458,63.4364574 37.4144797,59.7079405 41.7150678,59.322598 L271.43249,38.7393906 C275.833138,38.3450825 279.720218,41.5928625 280.114526,45.9935104 C280.122855,46.0864604 280.129556,46.1795491 280.134627,46.2727336 L287.577178,183.028344 C287.812572,187.353677 284.562579,191.080651 280.245454,191.4361 Z",id:"Path",fill:"#FAFAFA","fill-rule":"nonzero"}),e("path",{d:"M272.050402,211.155772 L44.7097773,224.528092 C40.2991228,224.787529 36.5132653,221.422303 36.2538278,217.011649 C36.2531111,216.999464 36.2524223,216.987279 36.2517614,216.975091 L28.4285714,72.713026 C28.1911376,68.3346726 31.5223826,64.5810839 35.8979358,64.2966766 L263.165019,49.5245057 C267.573993,49.2379261 271.380491,52.5797871 271.667071,56.9887612 C271.66893,57.0173626 271.670635,57.0459738 271.672187,57.0745935 L279.568919,202.73651 C279.807318,207.133987 276.446738,210.897177 272.050402,211.155772 Z",id:"Path",fill:"#FFFFFF","fill-rule":"nonzero"}),e("path",{d:"M32.5622397,270 L305.635714,270 C313.829424,270 320.698984,263.809932 321.54932,255.660465 L336.157264,115.660465 C337.074313,106.871623 330.692964,99.0034433 321.904122,98.086394 C321.352506,98.0288369 320.798269,98 320.243658,98 L168.501475,98 L168.501475,98 L151.360646,77.6827235 C148.32056,74.0792657 143.845981,72 139.131426,72 L17.5158465,72 C8.67929053,72 1.51584653,79.163444 1.51584653,88 C1.51584653,88.4821829 1.53764343,88.9641194 1.5811705,89.4443337 L16.6275636,255.444334 C17.374725,263.687425 24.2853564,270 32.5622397,270 Z",id:"Path-2",fill:"#FFCA28"})])])])])],-1)),M1={class:"tool-content"},I1=B(()=>e("div",{class:"f"},[e("div",{class:"title"}," \u7F51\u7EDC\u5171\u4EAB "),e("div",{class:"desc"}," \u7F51\u7EDC\u5171\u4EAB\u6587\u4EF6 ")],-1)),z1={class:"content"},V1=B(()=>e("div",null,null,-1)),P1=B(()=>e("span",null,"\u5171\u4EAB\u6587\u4EF6",-1)),H1=[V1,P1],O1=B(()=>e("div",null,null,-1)),Z1=B(()=>e("span",null,"\u5171\u4EAB\u7528\u6237",-1)),G1=[O1,Z1],U1=B(()=>e("div",null,null,-1)),N1=B(()=>e("span",null,"\u5171\u4EAB\u8BBE\u7F6E",-1)),T1=[U1,N1],j1=F({__name:"index",setup(i){return(u,t)=>{const s=m("nas-section-item"),_=m("nas-section-container"),h=m("nas-section");return a(),k(h,null,{default:r(()=>[c(_,{class:"section-setting-container"},{default:r(()=>[c(s,null,{default:r(()=>[S1]),_:1}),c(s,null,{default:r(()=>[e("div",M1,[I1,e("div",z1,[e("div",{onClick:t[0]||(t[0]=p=>L(c1).Open())},H1),e("div",{onClick:t[1]||(t[1]=p=>L(u1).Open())},G1),e("div",{onClick:t[2]||(t[2]=p=>L(D1).Open())},T1)])])]),_:1})]),_:1})]),_:1})}}});var W1=y(j1,[["__scopeId","data-v-2815b650"]]);const q1={class:"disk-content"},R1={class:"name"},Q1={class:"info"},Y1={class:"icon"},X1={class:"card"},J1={key:0,class:"status main"},K1={key:0},e2={key:1},t2={key:2},s2={key:3},n2=["value"],a2=F({__name:"disk",props:{type:{type:String},disk:{type:Object,required:!0}},setup(i){const u=i,t=q(u.disk),s=x(()=>t.errorInfo?"error":t.childrens==null||t.childrens.length==0||t.childrens.length==1&&t.childrens[0].filesystem=="No FileSystem"?"load":t.childrens.filter(h=>h.mountPoint).length==0?"unmounted":"success"),_=()=>{u.type!="raid"&&t1.OpenDisk({disk:u.disk})};return(h,p)=>{const o=m("icon-disk"),n=m("nas-section-item");return a(),k(n,{onClick:p[0]||(p[0]=l=>_())},{default:r(()=>[e("div",q1,[e("div",R1,C(i.type=="raid"?"raid: ":"")+" "+C(t.name),1),e("div",Q1,[e("div",Y1,[c(o)]),e("div",X1,[t.isSystemRoot?(a(),d("div",J1," \u7CFB\u7EDF ")):E("",!0),e("div",{class:U(["status",s.value])},[s.value=="error"?(a(),d("span",K1,"\u9519\u8BEF")):s.value=="success"?(a(),d("span",e2,"\u6B63\u5E38")):s.value=="load"?(a(),d("span",t2,"\u672A\u683C\u5F0F\u5316")):s.value=="unmounted"?(a(),d("span",s2,"\u672A\u6302\u8F7D")):E("",!0)],2),e("li",null,"Used: "+C(t.used),1),e("li",null,"Total: "+C(t.size||t.total),1)])]),e("progress",{value:t.usage||0,max:"100"},null,8,n2)])]),_:1})}}});var W=y(a2,[["__scopeId","data-v-1880f8c7"]]);const o2=F({__name:"index",setup(i){const u=D(),t=x(()=>u.disk),s=x(()=>u.raid.disks);return(_,h)=>{const p=m("nas-section-title"),o=m("nas-section-container"),n=m("nas-section");return a(),k(n,null,{default:r(()=>[c(p,{title:"Storage"}),c(o,{class:"section-disk-container"},{default:r(()=>[(a(!0),d(A,null,O(t.value.disks,l=>(a(),k(W,{disk:l},null,8,["disk"]))),256)),(a(!0),d(A,null,O(s.value,l=>(a(),k(W,{disk:l,type:"raid"},null,8,["disk"]))),256))]),_:1})]),_:1})}}});var i2=y(o2,[["__scopeId","data-v-32ba2e94"]]);const l2={class:"widget-content"},c2=F({__name:"cpu",setup(i){const u=D(),t=q({cpuusage:0,temperature:0,menavailablePercentage:0,menusage:0}),s=$(null),_=$(null),h=()=>{u.getSystemData().then(n=>{t.cpuusage=n.cpu.usage,t.temperature=n.cpu.temperature,t.menavailablePercentage=n.memery.availablePercentage||100,t.menusage=100-t.menavailablePercentage,o.cpu&&o.cpu.setValue(t.cpuusage),o.men&&o.men.setValue(t.menusage)})};h();const p=setInterval(()=>{h()},5e3),o={cpu:null,men:null};return s1(()=>{s.value&&_.value&&(o.cpu=j({el:s.value,value:t.cpuusage,name:"CPU"}),o.men=j({el:_.value,value:t.menusage,name:"RAM"}))}),n1(()=>{clearInterval(p)}),(n,l)=>{const g=m("nas-section-item"),v=m("nas-section-container"),w=m("nas-section");return a(),k(w,null,{default:r(()=>[c(v,null,{default:r(()=>[c(g,null,{default:r(()=>[e("div",l2,[e("div",{class:"gauge",ref_key:"cpu",ref:s},null,512),e("div",{class:"gauge",ref_key:"men",ref:_},null,512)])]),_:1})]),_:1})]),_:1})}}});var u2=y(c2,[["__scopeId","data-v-eb492a5a"]]);const S=i=>(I("data-v-5efc00dc"),i=i(),z(),i),d2=S(()=>e("div",{class:"widget-title"},[e("span",null,"\u7CFB\u7EDF\u4FE1\u606F")],-1)),_2={class:"widget-item"},r2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u8054\u7F51\u72B6\u6001:")],-1)),p2={class:"widget-item_value"},v2={key:0},h2={key:1},m2={key:2},g2={key:4},f2={class:"widget-item"},C2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u8FDE\u63A5\u65B9\u5F0F:")],-1)),$2={class:"widget-item_value"},w2={class:"widget-item"},F2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u5728\u7EBF\u8BBE\u5907:")],-1)),k2={class:"widget-item_value"},y2={class:"widget-item"},E2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"IPv4\u5730\u5740:")],-1)),L2={class:"widget-item_value"},x2={key:0,class:"widget-item"},B2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"IPv6\u5730\u5740:")],-1)),b2={class:"widget-item_value"},A2={class:"widget-item"},D2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"DNS:")],-1)),S2={class:"widget-item_value"},M2=F({__name:"info",setup(i){const u=D(),t=x(()=>u.network),s=x(()=>u.device),_=o=>{switch(o){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},h=o=>{switch(o){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},p=o=>o.toUpperCase();return(o,n)=>{const l=m("nas-section-item"),g=m("nas-section-container"),v=m("nas-section");return a(),k(v,null,{default:r(()=>[c(g,null,{default:r(()=>[c(l,{class:"widget-main"},{default:r(()=>{var w;return[d2,e("div",_2,[r2,e("div",p2,[t.value.networkInfo=="netSuccess"?(a(),d("span",v2," \u5DF2\u8054\u7F51 ")):t.value.networkInfo=="dnsFailed"?(a(),d("span",h2," DNS\u9519\u8BEF ")):t.value.networkInfo=="softSourceFailed"?(a(),d("span",m2," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(a(),d("span",g2," \u68C0\u6D4B\u4E2D "))])]),e("div",f2,[C2,e("div",$2,C(p(t.value.defaultInterface||"")),1)]),e("div",w2,[F2,e("div",k2,C(s.value.devices.length),1)]),e("div",y2,[E2,e("div",L2,C(t.value.ipv4addr)+"\uFF08"+C(_(t.value.proto||""))+"\uFF09 ",1)]),t.value.ipv6addr?(a(),d("div",x2,[B2,e("div",b2,C(t.value.ipv6addr),1)])):E("",!0),e("div",A2,[D2,e("div",S2,[e("p",null,C(h(t.value.dnsProto)),1),e("p",null,C((w=t.value.dnsList)==null?void 0:w.join(", ")),1)])])]}),_:1})]),_:1})]),_:1})}}});var I2=y(M2,[["__scopeId","data-v-5efc00dc"]]);const z2={class:"widget-content"},V2={class:"time"},P2={class:"date"},H2=F({__name:"time",setup(i){const u=N.formatDateYMD,t=N.formatDateHMS,s=D(),_=x(()=>s.localtime);return(h,p)=>{const o=m("nas-section-item"),n=m("nas-section-container"),l=m("nas-section");return a(),k(l,null,{default:r(()=>[c(n,null,{default:r(()=>[c(o,null,{default:r(()=>[e("div",z2,[e("div",V2,C(L(t)(L(_))),1),e("div",P2,C(L(u)(L(_))),1)])]),_:1})]),_:1})]),_:1})}}});var O2=y(H2,[["__scopeId","data-v-ce99f322"]]);const Z2=F({__name:"index",setup(i){return(u,t)=>(a(),d(A,null,[c(O2),c(I2),c(u2)],64))}});const V=i=>(I("data-v-642968c3"),i=i(),z(),i),G2={class:"dropdown-item"},U2=V(()=>e("svg",{t:"1668756315301",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"31499",width:"128",height:"128"},[e("path",{d:"M966.79936 655.37024a270.7968 270.7968 0 0 0-143.02208-40.96c-143.02208 0-257.4336 102.4-257.4336 230.4a208.4352 208.4352 0 0 0 45.7728 128H57.21088c-34.33472 0-57.21088-20.48-57.21088-51.2v-870.4c0-30.72 22.87616-51.2 57.21088-51.2h858.112c34.32448 0 57.20064 20.48 57.20064 51.2v604.16h-5.71392z m-200.22272-399.36a25.76384 25.76384 0 1 0 0-51.2H194.5088a25.76384 25.76384 0 1 0 0 51.2h572.07808z m0 256a25.76384 25.76384 0 1 0 0-51.2H194.5088a25.76384 25.76384 0 1 0 0 51.2h572.07808z m-577.792 204.8a25.76384 25.76384 0 0 0 0 51.2h303.2064a25.76384 25.76384 0 0 0 0-51.2z m0 0",fill:"#2E2A2A","p-id":"31500"}),e("path",{d:"M852.38784 819.2v-76.8a28.78464 28.78464 0 0 0-57.21088 0v102.4c0 5.12 5.72416 15.36 5.72416 20.48s11.43808 5.12 22.87616 5.12H938.1888a25.76384 25.76384 0 1 0 0-51.2h-85.80096z m-28.61056 204.8c-108.68736 0-200.22272-81.92-200.22272-179.2S715.08992 665.6 823.77728 665.6 1024 747.52 1024 844.8 932.48512 1024 823.77728 1024z m0 0",fill:"#2E2A2A","p-id":"31501"})],-1)),N2={key:0},T2={key:0,class:"dropdown-container"},j2={class:"title"},W2=V(()=>e("span",null,"\u5B89\u88C5\u4EFB\u52A1",-1)),q2=V(()=>e("div",{class:"auto"},null,-1)),R2={class:"dropdown-container_menus"},Q2={class:"dropdown-menu_item"},Y2=V(()=>e("div",{class:"auto"},null,-1)),X2={class:"status"},J2={key:0},K2={key:1},e0={class:"btn"},t0=V(()=>e("span",null," \u5B89\u88C5\u4E2D ",-1)),s0=F({__name:"task",setup(i){const u=v=>h.value.indexOf(v)!=-1,t=v=>p.value.indexOf(v)!=-1,s=$(!1),_=$([]),h=$([]),p=$([]),o=()=>b(this,null,function*(){try{const v=yield M.Quickstart.SetupResult.GET();if(v.data){const{result:w,error:P}=v.data;v.data.success==0&&w&&(_.value=w.packages||[],h.value=w.success||[],p.value=w.failed||[])}}catch(v){console.log(v)}});let n=!1;setTimeout(()=>b(this,null,function*(){yield o(),localStorage.getItem("nas_guide_init")&&(n=!0,s.value=!0)}),1e3);const l=()=>{s.value=!s.value,n&&localStorage.removeItem("nas_guide_init")},g=()=>{a1.autoSetup.Open()};return(v,w)=>{const P=m("icon-loading");return a(),d("div",G2,[e("button",{onClick:w[0]||(w[0]=f=>s.value=!s.value)},[U2,_.value.length>0?(a(),d("em",N2)):E("",!0)]),s.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:l})):E("",!0),c(R,{name:"fade"},{default:r(()=>[s.value?(a(),d("div",T2,[e("h2",j2,[W2,e("span",null,"("+C(h.value.length+p.value.length+"/"+_.value.length)+")",1),q2,e("a",{onClick:g},"\u67E5\u770B\u65E5\u5FD7")]),e("div",R2,[(a(!0),d(A,null,O(_.value,f=>(a(),d("div",Q2,[e("span",null,C(f),1),Y2,e("div",X2,[u(f)?(a(),d("span",J2," \u6210\u529F ")):t(f)?(a(),d("span",K2," \u5931\u8D25 ")):(a(),d(A,{key:2},[e("div",e0,[c(P)]),t0],64))])]))),256))])])):E("",!0)]),_:1})])}}});var n0=y(s0,[["__scopeId","data-v-642968c3"]]);const a0={class:"dropdown-item"},o0=e("svg",{t:"1663656201767",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1863",width:"128",height:"128"},[e("path",{d:"M25.6 54.84032v152.79104h967.68V54.84032H25.6z m0 534.76864h967.68V436.81792H25.6v152.79104z m0 381.98272h967.68v-152.79104H25.6v152.79104z","p-id":"1864"})],-1),i0={key:0},l0={key:0,class:"dropdown-container"},c0=e("h2",{class:"title"}," \u7CFB\u7EDF\u8BBE\u7F6E ",-1),u0={class:"dropdown-menu_item"},d0=e("div",{class:"icons"},[e("svg",{t:"1663663794595",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19033",width:"128",height:"128"},[e("path",{d:"M885.376 848H512v-74.624h373.376V250.624H512V176h373.376A74.88 74.88 0 0 1 960 250.688v522.688c0 41.088-33.536 74.624-74.624 74.624zM512 736h336V586.688l-224-112L512 530.688V736z m0 112H325.312v-74.624H512v74.624zM325.312 176H512v74.624H325.312V176zM512 530.688V736H325.312V561.792l74.688 24.896L512 530.688z m-186.688-56V325.376c41.152-0.064 74.688 33.536 74.688 74.624s-33.536 74.688-74.688 74.688z m0 373.312H138.688A74.88 74.88 0 0 1 64 773.376V250.624A74.88 74.88 0 0 1 138.688 176h186.624v74.624H138.688v522.752h186.624v74.624z m0-522.624c-41.088 0-74.624 33.472-74.624 74.624a74.88 74.88 0 0 0 74.624 74.688V325.376z m0 236.416L288 549.376l-112 37.312V736h149.312V561.792z","p-id":"19034"})])],-1),_0=e("span",null,"\u58C1\u7EB8",-1),r0=e("div",{class:"auto"},null,-1),p0={class:"upload",title:"\u4E0A\u4F20\u80CC\u666F"},v0=e("span",null,"\u4E0A\u4F20",-1),h0=e("div",{class:"icons"},[e("svg",{t:"1663666048430",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1979",width:"128",height:"128"},[e("path",{d:"M816.47182493 165.18652616c-45.03283702 5.80844472-91.61106134 5.60212947-139.89197922-1.26634882-48.55758565-6.90879227-98.65581637-20.5761858-150.4053594-41.66144114L512.02569025 116.4921875l-14.23100531 5.76654948c-51.72187603 21.08525534-101.79164949 34.75264886-150.37690215 41.66144114-48.22558465 6.86847828-94.85598046 7.07479277-139.89039874 1.26634881L159.65672594 159.01999391l0.63396504 55.68692219c2.58723985 236.52258702 39.47418405 393.75769043 98.82181686 499.07250806 62.3190467 110.60391658 147.37703179 163.61822717 243.19660678 189.35703593l9.71815688 2.6156971 9.68811914-2.6156971c95.79507051-25.73880876 180.87756008-78.75311934 243.17289253-189.35703593 59.40138634-105.26027387 96.28753954-262.54913003 98.84869362-499.07250806l0.60550779-55.68692219L816.47182493 165.18652616zM536.52502695 716.42199725c0 14.01125204-10.98371543 25.35226399-24.52542245 25.35226399-13.54486954 0-24.49933671-11.34180218-24.49933672-25.35226399l0-410.61466986c0-14.02548105 10.95446718-25.366493 24.49933671-25.36649299 13.54170702 0 24.52542246 11.34101194 24.52542245 25.366493L536.52502695 716.42199725z","p-id":"1980"})])],-1),m0=e("span",null," \u5411\u5BFC\u6A21\u5F0F ",-1),g0=e("div",{class:"auto"},null,-1),f0={class:"btn"},C0={target:"_blank",href:"/cgi-bin/luci/admin/quickstart/",class:"dropdown-menu_item"},$0=e("div",{class:"icons"},[e("svg",{t:"1663665818574",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1800",width:"128",height:"128"},[e("path",{d:"M900.48223089 607.65333044C901.65599673 614.64488767 901.40082993 623.01434302 899.56363186 632.86376636 897.87953241 642.71318476 894.97063672 652.76674038 890.88797519 662.87132559 886.80531367 673.02694531 881.90612131 682.16190192 876.13936032 690.27619046 870.37260346 698.44151353 863.89137986 704.20827039 857.00188672 707.67853421 850.01032949 711.19982761 843.93737131 712.93495745 838.68094394 712.93495745 833.47555027 712.93495745 827.7087934 711.81222613 821.3296347 709.46469858 815.56287701 707.7295646 808.26511929 706.14753335 799.58946179 704.66757031 790.81174103 703.23863767 782.03402026 702.98347085 773.00113186 703.8000058 764.01927798 704.66757031 755.03741998 706.55580288 746.10660061 709.41366406 737.17577712 712.27152524 729.36768909 717.27278579 723.09059861 724.21331345 709.15851373 738.70675738 700.94216111 755.24153579 698.64566311 773.81764539 696.34916596 792.39375581 698.95186032 810.05126636 706.50478567 826.89224197 712.27154666 838.52782886 711.4039772 850.06134671 703.90209048 861.69692947 700.43182749 866.34095913 694.8181684 871.13808246 687.36731207 876.03727893 679.81438672 880.98750581 671.49596506 885.47843274 662.56514157 889.56109426 653.6343222 893.6437558 644.1421347 896.8078183 634.24168179 899.15534585 624.39225845 901.40081345 615.7166059 902.57457517 608.11264685 902.57457517 602.90725318 902.57457517 598.05909534 900.53324399 593.36403611 896.50161697 588.77104095 892.41895544 585.60697846 888.03009671 583.76978039 883.43710156L582.90221506 883.43710156C576.52305554 865.42236011 565.65296991 849.95927851 550.29195652 836.89476309 534.93094394 823.83024768 517.12033478 817.29799038 496.75806164 817.29799038 477.05922073 817.29799038 459.19757788 823.83024768 443.27519882 836.89476309 427.30178689 849.95927851 416.12550159 865.16719331 409.74634289 882.56953706 406.83744721 889.56109426 402.49961968 894.61338853 396.68182666 897.82848142 390.96610102 900.99254392 384.58694314 902.57457517 377.5953851 902.57457517 369.48109573 902.57457517 360.3461416 901.14564663 350.19052106 898.18571643 340.03490134 895.27682073 329.87928162 891.65345913 319.72366189 887.31563081 309.56804135 882.97780164 300.43308722 877.87447699 292.31879786 872.05668149 284.20450848 866.28992461 278.13154947 860.47213324 274.04888794 854.70537225 271.13999224 850.62271072 269.55796099 845.82558245 269.25176132 840.36502692 268.94556164 834.85343274 271.13999224 827.14740879 275.78401944 817.29799038 282.16317732 803.92727366 284.61277472 788.71935886 283.18384289 771.57218274 281.75491189 754.47603949 274.35508843 738.65572698 260.98437253 724.16227893 252.87008316 715.43558774 243.02066229 709.82192947 231.43611157 707.21923511 219.80052634 704.5655021 208.82837414 703.59587268 198.36655475 704.15723669 186.16960385 704.71860483 173.71748697 707.06613238 160.95917041 711.14879392 152.84488104 713.44529108 144.73059167 712.83289337 136.56526944 709.36262954 130.18611157 707.06613238 124.26625198 701.70764011 118.70362659 693.33818476 113.19203323 684.91769489 108.29284006 675.57861011 103.90397885 665.47401996 99.56615134 655.31840024 96.24898941 644.9076137 93.90145938 634.13959629 91.60496222 623.42260842 90.99256287 614.59385728 92.16632788 607.60229592 93.90145938 594.84398184 99.66821789 586.72969331 109.56867163 583.25942947 126.97101538 576.26787226 142.58719477 564.83642261 156.51927634 548.86300739 170.45135791 532.88959629 177.39188226 515.07898711 177.39188226 495.32911252 177.39188226 475.06890594 170.45135791 457.36036252 156.51927634 442.25451594 142.58719477 427.14866934 126.91998252 416.17651715 109.56867163 409.18495911 104.46534534 407.55189499 100.12751782 403.3671669 96.65725564 396.68180936 93.18699346 389.99645098 91.40082911 383.15799402 91.40082911 376.26850254 91.40082911 368.71557965 92.57459412 360.29509061 94.87109128 351.00703623 97.16758762 341.71898184 100.22958438 332.73712714 104.00604541 324.01043842 107.78250726 315.33478339 112.17136846 307.37359345 117.07056164 300.07583654 122.02078852 292.88014539 127.37928162 287.47062024 133.14604095 284.00035723 137.79006814 281.09146154 142.33202878 279.96872939 146.66985629 280.53009589 151.00768381 281.09146154 155.80481042 282.26522656 161.01020411 284.00035723 178.41254786 290.99191528 196.52935669 293.13531219 215.41166595 290.53261536 234.24294071 287.92991934 250.93081854 279.66252972 265.42426661 265.78148184 272.36479095 258.78992462 277.41708356 250.21633533 280.63217974 240.11174848 283.79624225 229.90509588 285.88860629 219.90257559 286.70513794 210.05315473 287.62373697 200.20373468 287.62373697 191.22187998 286.70513794 183.10759061 285.88860629 174.94226837 285.12310669 169.17550903 284.56174103 165.70524686 283.38797601 162.23498468 282.36731042 158.15232315 281.49974509 153.50829597 280.63217974 148.86426877 281.09147885 144.78160723 282.77557666 141.31134588 286.24583884 133.19705652 292.47189728 126.10343191 301.50478567 120.03047373 310.48664038 113.95751472 320.18296099 108.85418841 330.64478039 104.77152688 341.1065998 100.73989904 351.26222034 97.72893598 361.11164038 95.63657193 370.96106042 93.59524158 378.82018381 92.57457599 384.58694314 92.57457599 392.08883316 92.57457599 398.05972479 95.02417341 402.44858599 99.97440027 406.78641351 104.92462714 409.79737659 110.02795344 411.53250727 115.23334629 417.91166596 130.90055936 428.37348535 144.62850781 442.86693259 156.5702919 457.36038064 168.46104312 474.50755759 174.43193475 494.20639849 174.43193475 514.51764041 174.43193475 532.48134817 168.76724279 548.14856208 157.43785724 563.81577185 146.10847251 574.83896021 131.7681247 581.2181156 114.36578095 583.51461277 109.72175376 587.1890097 104.92462714 592.08820122 100.02543313 596.98739771 95.07520627 602.03968866 92.62560969 607.34715054 92.62560969 615.41040539 92.62560969 624.29019436 93.74834183 633.88444595 96.09587186 643.47870249 98.39236902 652.91985547 101.60746438 662.10584577 105.69012591 671.49596506 109.72175376 680.06955353 114.97818029 687.82661118 121.35733816 695.68573374 127.73649686 701.86076013 134.67702039 706.55581936 142.22994409 709.46471506 146.87397129 710.33228039 151.92626472 709.15851373 157.43785724 707.98475201 162.94945059 706.86201657 166.87901187 705.68825486 169.17550903 698.13532949 186.01648711 695.83883152 203.67399686 698.69669763 222.25010562 701.60559332 240.77518152 710.07711277 257.05479312 723.90712942 270.9868747 737.83920935 284.91895627 754.98639041 292.57394653 775.24659534 294.05391123 795.55783478 295.48284222 814.44014157 292.16568029 831.84248532 284.05139093 836.43548047 281.14249524 842.10017324 279.96872939 848.78553327 280.58112876 855.47088999 281.19352811 861.03351373 283.79622412 865.72857791 288.38921844 874.40423047 296.50350781 882.05921991 308.85355813 888.74457993 325.38833654 895.42993664 341.92311414 899.92086277 358.61099279 902.21736074 375.4009372 903.39112659 385.25035724 901.80909534 392.95638037 897.52230151 398.46797373 893.13343866 403.92853338 888.64251172 407.60292786 883.94745249 409.33805936 865.9837406 415.71721722 850.67376172 426.89350254 837.91544763 442.81588159 825.15712942 458.73826064 818.77796991 476.90610401 818.77796991 497.16630976 818.77796991 516.91618518 824.13646548 534.16542621 834.8024147 548.96507559 845.57043708 563.71369046 859.60458521 574.32861011 876.95589526 580.70776467 881.03855679 583.00426267 884.50881567 585.35179434 887.41771548 587.64829233 893.79687087 592.85368518 898.18573374 599.53904107 900.48223089 607.65333044L900.48223089 607.65333044 900.48223089 607.65333044ZM495.94152917 685.93836212C522.01952712 685.93836212 546.71962942 680.98813608 569.83769964 671.13871274 593.05783478 661.28929434 613.21597561 647.66341079 630.36315256 630.26106704 647.51032949 612.8076896 660.98311032 592.70058245 670.83253284 569.78664866 680.68195123 546.87271072 685.58114771 522.32571116 685.58114771 496.29874524 685.58114771 470.16971277 680.68195123 445.67374524 670.83253284 422.81084101 660.98311032 399.89690472 647.51032949 379.84083127 630.36315256 362.74468719 613.21597561 345.64854312 593.10886929 332.12472778 569.83769964 322.27530774 546.71962942 312.42588687 521.96849673 307.47566001 495.94152917 307.47566001 469.86353039 307.47566001 445.31652917 312.42588687 422.40259289 322.27530774 399.53968948 332.12472778 379.48361603 345.64854312 362.43850564 362.74468719 345.34236157 379.84083127 331.81854541 399.89690472 321.96912537 422.81084101 312.11970532 445.67374524 307.16947845 470.22074563 307.16947845 496.29874524 307.16947845 522.37674568 312.11970532 546.87271072 321.96912537 569.78664866 331.81854541 592.64955288 345.34236157 612.8076896 362.43850564 630.26106704 379.53464972 647.66341079 399.59072317 661.23825983 422.45362659 671.13871274 445.36756287 680.98813608 469.86353039 685.93836212 495.94152917 685.93836212L495.94152917 685.93836212 495.94152917 685.93836212Z","p-id":"1801"})])],-1),w0=e("span",null," \u9AD8\u7EA7\u914D\u7F6E ",-1),F0=e("div",{class:"auto"},null,-1),k0={class:"btn"},y0={target:"_blank",href:"/cgi-bin/luci/admin/system/ota",class:"dropdown-menu_item"},E0=e("div",{class:"icons"},[e("svg",{t:"1663663860869",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1740",width:"128",height:"128"},[e("path",{d:"M231.27989011 542.51027439C211.04473401 415.97053009 280.55494614 288.10044748 404.67907455 239.7181185c91.98593976-35.86663916 191.16621194-18.71226809 261.39410679 32.5232872l-59.7602277 96.79966617 267.99328894-1.03276318L778.52183591 90.125l-49.06500266 79.45274542c-103.46886557-67.00707449-244.51980715-88.92265842-368.03127997-40.76788814C190.30194858 195.5193558 91.80435007 368.04331772 111.25180539 542.51027439L231.27989011 542.51027439z","p-id":"1741"}),e("path",{d:"M792.71795273 473.24512467c20.21765158 126.53974429-49.25755151 254.42733225-173.38167993 302.79215588-84.61656134 32.97840298-177.86282217 20.55023657-249.56109146-23.91109305 13.65347928-22.16064716 54.00126068-87.50479751 54.00126067-87.50479751L135.58300519 647.71208133l121.95357577 286.16291867 51.13052902-82.79609738c103.45136106 67.00707449 230.37620306 84.03891476 353.88767588 35.88414367 171.08859567-66.72700305 269.62120322-239.23346045 250.17374789-413.6829126L792.71795273 473.2801337z","p-id":"1742"})])],-1),L0={key:0},x0=e("div",{class:"auto"},null,-1),B0={class:"btn"},b0={href:"/cgi-bin/luci/admin/logout",class:"dropdown-menu_item"},A0=e("div",{class:"icons"},[e("svg",{t:"1663664454777",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1770",width:"128",height:"128"},[e("path",{d:"M713.78169987 245.58612675c-3.34486519 0.15820313-4.20368182 0.11300245-7.50334556 0.58761107a57.69892296 57.69892296 0 0 0-41.72041273 28.47655477 56.20729383 56.20729383 0 0 0-4.97209635 42.98603697c2.05663985 7.11913831 5.55970816 13.80886868 10.23799936 19.59458098 2.10184131 2.5764499 2.71205269 3.11886105 5.03989813 5.49190716l2.80245403 2.48604856c12.43024201 10.3284007 23.91126526 21.62862127 34.2170664 34.03626216a252.98932537 252.98932537 0 0 1 51.80020821 103.8942231 252.67291912 252.67291912 0 0 1-29.2449693 186.49882996 255.56577528 255.56577528 0 0 1-48.74914893 58.85154628 259.90505988 259.90505988 0 0 1-62.15121003 41.22320226 259.49825151 259.49825151 0 0 1-78.01671856 22.69084171 264.13134203 264.13134203 0 0 1-92.54880184-4.63309053 259.79205743 259.79205743 0 0 1-88.25471793-38.60155091 258.25522762 258.25522762 0 0 1-71.68859588-74.19724478 250.59367816 250.59367816 0 0 1-36.61271207-98.7187214 252.06270696 252.06270696 0 0 1 81.99439625-224.17376402c3.54826899-3.09625995 7.11913831-6.10211855 10.62220661-9.19837927 2.32784543-2.37304611 2.93805682-2.89285615 5.01729779-5.46930682a55.77788589 55.77788589 0 0 0-3.81947457-74.4232489 58.24133411 58.24133411 0 0 0-72.32140836-8.11355774c-4.70089153 3.0058586-8.85937268 6.73493106-13.01785306 10.37360216a367.41535298 367.41535298 0 0 0-76.34428597 92.1419935 363.12126904 363.12126904 0 0 0-23.95646671 316.58696308 366.55653557 366.55653557 0 0 0 58.87414585 98.92212598 371.91283994 371.91283994 0 0 0 199.01947486 123.89561168 381.49542647 381.49542647 0 0 0 146.65425515 6.4411259c45.17827961-6.82533317 88.97793253-21.92242642 128.59650322-44.36466363a374.26328571 374.26328571 0 0 0 97.95030691-80.02815852 365.58471726 365.58471726 0 0 0 56.38809728-87.53150408 365.44911447 365.44911447 0 0 0 29.80998078-198.45446336c-5.24330192-40.00277871-17.24413599-79.10154009-35.39228929-115.26224391a367.64135711 367.64135711 0 0 0-85.65566768-110.96815996c-2.96065793-2.5764499-5.98911687-5.13030024-8.9949747-7.66154946-2.59905024-2.03403952-3.2092624-2.62165134-6.03431754-4.40708563a58.53513926 58.53513926 0 0 0-17.15373388-7.29994176 70.92018059 70.92018059 0 0 0-11.11941633-1.62723192c-1.265625 0-2.48604855 0-3.75167355-0.04520068m-144.32640974 322.96028721c0 14.98409157-6.05691787 29.35797175-16.81472728 39.95757803a57.85712608 57.85712608 0 0 1-40.56778942 16.54352172 57.78932508 57.78932508 0 0 1-40.56778943-16.54352172 56.09429214 56.09429214 0 0 1-16.81472806-39.95757802V172.99351358c0-15.0066919 6.05691787-29.35797175 16.81472806-39.98017838A57.76672474 57.76672474 0 0 1 512.07277344 116.49241384c15.21009648 0 29.80998001 5.94391543 40.56778942 16.52092136 10.75780941 10.62220662 16.81472729 24.97348646 16.81472728 40.00277871v395.53030006z",fill:"#000000","p-id":"1771"})])],-1),D0=e("span",null,"\u6CE8\u9500",-1),S0=e("div",{class:"auto"},null,-1),M0={class:"btn"},I0=F({__name:"setting",setup(i){const u=D(),t=$(!1),s=$(!1);(()=>b(this,null,function*(){try{const o=yield M.System.CheckUpdate.GET(),{result:n}=o.data;n&&(s.value=n.needUpdate)}catch(o){console.log(o)}}))();const h=o=>{if(o&&(o==null?void 0:o.target)){const l=o.target.files;if(l){const g=l[0];p(g)}}},p=o=>{const n=new FormData;n.append("file",o),M.Upload.BG.POST(n).then(l=>{if(l.data.result){const g=l.data.result;if(g!=null&&g.filename!=""){G.Success("\u4E0A\u4F20\u6210\u529F,\u8BF7\u5237\u65B0\u7F13\u5B58\u67E5\u770B"),u.incr();return}G.Warning("\u4E0A\u4F20\u5931\u8D25")}})};return(o,n)=>{const l=m("icon-right"),g=m("router-link");return a(),d("div",a0,[e("button",{onClick:n[0]||(n[0]=v=>t.value=!t.value)},[o0,s.value?(a(),d("em",i0)):E("",!0)]),t.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:n[1]||(n[1]=v=>t.value=!t.value)})):E("",!0),c(R,{name:"fade"},{default:r(()=>[t.value?(a(),d("div",l0,[c0,e("div",u0,[d0,_0,r0,e("label",p0,[e("input",{type:"file",accept:"image/jpeg, image/jpg, image/png, image/gif",hidden:"",onChange:h},null,32),v0])]),c(g,{to:"/wizard",class:"dropdown-menu_item"},{default:r(()=>[h0,m0,g0,e("div",f0,[c(l)])]),_:1}),e("a",C0,[$0,w0,F0,e("div",k0,[c(l)])]),e("a",y0,[E0,e("span",null,[o1(" \u66F4\u65B0 "),s.value?(a(),d("em",L0)):E("",!0)]),x0,e("div",B0,[c(l)])]),e("a",b0,[A0,D0,S0,e("div",M0,[c(l)])])])):E("",!0)]),_:1})])}}});const z0={class:"f"},V0={class:"hostname"},P0={class:"r"},H0=F({__name:"index",setup(i){D(),$(!1);const u=$(!1);return(()=>b(this,null,function*(){try{const s=yield M.System.CheckUpdate.GET(),{result:_}=s.data;_&&(u.value=_.needUpdate)}catch(s){console.log(s)}}))(),(s,_)=>(a(),d("header",null,[e("div",z0,[e("div",V0,C(L(i1).HostName),1)]),e("div",P0,[c(n0),c(I0)])]))}});var O0=y(H0,[["__scopeId","data-v-6eeee710"]]);const Z0={},G0={class:"main-container"};function U0(i,u){return a(),d("div",G0,[l1(i.$slots,"default")])}var N0=y(Z0,[["render",U0]]);const T0={id:"page"},j0={class:"body"},W0={class:"f"},q0={class:"r"},R0=F({__name:"index",setup(i){const u=D(),t=x(()=>({"background-image":`url(/luci-static/istorex/image/bg.gif?t=${u.keys})`})),s=$(0),_=x(()=>({transform:`translateX(${s.value*-100}%)`}));return(h,p)=>(a(),d("div",T0,[e("div",{class:"bg",style:T(t.value)},null,4),c(O0),(a(),d("div",{id:"main",key:L(u).reloadCount,style:T(_.value),ref:"el"},[c(N0,null,{default:r(()=>[e("div",j0,[e("div",W0,[c(Z2)]),e("div",q0,[c(i2),c(W1),c(y1)])])]),_:1})],4))]))}});var J0=y(R0,[["__scopeId","data-v-763fd268"]]);export{J0 as default}; +var b=(i,u,t)=>new Promise((s,_)=>{var h=n=>{try{o(t.next(n))}catch(l){_(l)}},p=n=>{try{o(t.throw(n))}catch(l){_(l)}},o=n=>n.done?s(n.value):Promise.resolve(n.value).then(h,p);o((t=t.apply(i,u)).next())});import{d as F,I as Y,i as x,s as $,r as m,o as a,e as k,w as r,b as c,c as d,E as O,F as A,_ as y,O as X,C as M,T as G,Q as J,a as e,l as C,p as I,q as z,R as H,U,V as K,W as e1,g as L,j as q,m as E,H as t1,u as D,X as s1,k as n1,h as N,N as R,Y as a1,z as o1,n as i1,Z as l1,$ as T}from"./index.js?v=bc5d78ec";import{F as c1,a as u1,G as j}from"./chunk.b3a0ed74.js";const Q=i=>(I("data-v-37664f80"),i=i(),z(),i),d1=Q(()=>e("div",{class:"app-content"},[e("div",{class:"app-icon",style:{background:"none",padding:"0"}},[e("svg",{class:"icon",viewBox:"0 0 520 520",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e("title",null,"\u5E94\u7528\u5546\u5E97"),e("g",{id:"\u5E94\u7528\u5546\u5E97",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e("path",{d:"M100.645161,0 L419.354839,0 C474.939626,0 520,45.0603736 520,100.645161 L520,419.354839 C520,474.939626 474.939626,520 419.354839,520 L100.645161,520 C45.0603736,520 0,474.939626 0,419.354839 L0,100.645161 C0,45.0603736 45.0603736,0 100.645161,0 Z",id:"Rectangle",fill:"#FFFFFF"}),e("g",{id:"Group-4",transform:"translate(100.000000, 110.000000)"},[e("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,295.333333 27,290 L27,70 C27,64.6666668 31.6725001,60 37.0125,60 L283.9875,60 C289.3275,60 294,64.6666668 294,70 L294,290 C294,295.333333 289.995,300 283.9875,300 Z",id:"Path",fill:"#F4F4F4","fill-rule":"nonzero"}),e("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,298.852778 27,297.541667 L27,243.458333 C27,242.147222 31.6725001,241 37.0125,241 L283.9875,241 C289.3275,241 294,242.147222 294,243.458333 L294,297.541667 C294,298.852778 289.995,300 283.9875,300 Z",id:"Path",fill:"#CACACA","fill-rule":"nonzero"}),e("g",{id:"Group"},[e("g",{id:"Group-3"},[e("path",{d:"M95,0 L80,135 C80,157.09139 62.09139,175 40,175 C17.90861,175 0,157.09139 0,135 L34,0 L95,0 Z",id:"Path",fill:"#C0FFEA"}),e("path",{d:"M160,0 L160,135 C160,157.09139 142.09139,175 120,175 C97.90861,175 80,157.09139 80,135 C80,131.957009 80.3397951,128.993381 80.9835121,126.14499 L95,0 L160,0 Z",id:"Path",fill:"#01DE96"}),e("path",{d:"M160,0 L227,0 L239.258077,127.292436 C239.744914,129.78649 240,132.363456 240,135 C240,157.09139 222.09139,175 200,175 C177.90861,175 160,157.09139 160,135 L160,135 L160,0 Z",id:"Combined-Shape",fill:"#C0FFEA"}),e("path",{d:"M227,0 L288,0 L320,135 C320,157.09139 302.09139,175 280,175 C258.129524,175 240.35859,157.447771 240.005359,135.661473 L240,135 L227,0 Z",id:"Path",fill:"#01DE96"})]),e("g",{id:"Group-2",transform:"translate(0.000000, 135.000000)"},[e("path",{d:"M80,0 C80,22.09139 62.09139,40 40,40 C17.90861,40 0,22.09139 0,0 L80,0 Z",id:"Path",fill:"#B3F1DD"}),e("path",{d:"M160,0 C160,22.09139 142.09139,40 120,40 C97.90861,40 80,22.09139 80,0 L160,0 Z",id:"Path",fill:"#02C485"}),e("path",{d:"M240,0 C240,22.09139 222.09139,40 200,40 C178.129524,40 160.35859,22.4477713 160.005359,0.66147314 L160,0 L240,0 Z",id:"Path",fill:"#B3F1DD"}),e("path",{d:"M320,0 C320,22.09139 302.09139,40 280,40 C258.129524,40 240.35859,22.4477713 240.005359,0.66147314 L240,0 L320,0 Z",id:"Path",fill:"#02C485"})])])])])])]),e("div",{class:"app-name"}," \u5E94\u7528\u5546\u5E97 ")],-1)),_1=Q(()=>e("div",{class:"app-content"},[e("div",{class:"app-icon",style:{background:"none",padding:"0"}},[e("svg",{t:"1667208366992",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2669",width:"128",height:"128"},[e("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z",fill:"#E8EFF8","p-id":"2670"}),e("path",{d:"M141.637818 405.643636A23.272727 23.272727 0 0 0 160.814545 442.181818h350.487273a23.272727 23.272727 0 0 0 18.455273-37.469091L364.683636 190.161455a46.545455 46.545455 0 0 0-75.170909 1.88509l-147.874909 213.620364z",fill:"#69CB91","p-id":"2671"}),e("path",{d:"M337.454545 884.363636a174.545455 174.545455 0 1 0 0-349.090909 174.545455 174.545455 0 0 0 0 349.090909z",fill:"#247ADE","p-id":"2672"}),e("path",{d:"M907.636364 186.181818a23.272727 23.272727 0 0 0-23.272728-23.272727h-209.454545a23.272727 23.272727 0 0 0-23.272727 23.272727v674.909091a23.272727 23.272727 0 0 0 23.272727 23.272727h209.454545a23.272727 23.272727 0 0 0 23.272728-23.272727V186.181818z",fill:"#A0BFF7","p-id":"2673"})])]),e("div",{class:"app-name"}," NAS\u5957\u4EF6 ")],-1)),r1=["onClick"],p1={class:"app-icon"},v1=["src"],h1={class:"app-name"},m1={class:"app-footer"},g1=["onClick"],f1=["onClick"],C1={class:"app-content"},$1={class:"app-icon"},w1=["src"],F1={class:"app-name"},k1=F({__name:"index",setup(i){const u=Y(),t=x(()=>u.localApps.filter(n=>n.name!="istorex")),s=$(!1);(()=>b(this,null,function*(){yield u.getApp(),setTimeout(()=>{p()},2e3)}))();const h=()=>{X.Open()},p=()=>b(this,null,function*(){try{if((yield M.Quickstart.Guide.GlobalFolders.GET()).status!==200)return}catch(n){console.log(n);return}s.value=!0;try{const n=yield M.Storage.Get.POST({key:"nas_guide_init"});if(n.data){const{success:l,error:g,result:v}=n.data;if(v&&v.key=="nas_guide_init")return}}catch(n){return}o()}),o=()=>{if(!s.value){G.Warning("\u8BF7\u5148\u66F4\u65B0\u7CFB\u7EDF\u5230\u6700\u65B0\u7248\u672C");return}J.OpenGuideWindow()};return(n,l)=>{const g=m("nas-section-title"),v=m("nas-section-item"),w=m("nas-section-container"),P=m("nas-section");return a(),k(P,null,{default:r(()=>[c(g,{title:"Apps"}),c(w,{class:"section-app-container"},{default:r(()=>[c(v,{onClick:l[0]||(l[0]=f=>h())},{default:r(()=>[d1]),_:1}),c(v,{onClick:l[1]||(l[1]=f=>o())},{default:r(()=>[_1]),_:1}),(a(!0),d(A,null,O(t.value,f=>(a(),d(A,null,[f.isWebUrl()?(a(),k(v,{key:0,class:"app-item",name:f.name,title:f.title},{default:r(()=>[e("div",{class:"app-content",onClick:Z=>f.openWebUrl()},[e("div",p1,[e("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:f.getIcon()},null,8,v1)]),e("div",h1,C(f.title),1)],8,r1),e("div",m1,[e("button",{class:"open",onClick:Z=>f.openWebUrl()}," \u6253\u5F00 ",8,g1),e("button",{class:"setting",onClick:Z=>f.openApp()}," \u914D\u7F6E ",8,f1)])]),_:2},1032,["name","title"])):(a(),k(v,{key:1,onClick:Z=>f.openApp(),name:f.name,title:f.title},{default:r(()=>[e("div",C1,[e("div",$1,[e("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:f.getIcon()},null,8,w1)]),e("div",F1,C(f.title),1)])]),_:2},1032,["onClick","name","title"]))],64))),256))]),_:1})]),_:1})}}});var y1=y(k1,[["__scopeId","data-v-37664f80"]]);const E1=i=>(I("data-v-c01a3f98"),i=i(),z(),i),L1={class:"tabls"},x1=E1(()=>e("section",{class:"tab-content"},[e("div",{class:"label-value"},[e("div",{class:"label-name"},[e("span",null,"\u6302\u8F7D\u70B9")]),e("div",{class:"label-value"},[e("input",{type:"text"})])])],-1)),B1=F({__name:"index",props:{disk:{type:Object,required:!0},close:Function},setup(i){const u=i,t=()=>{o.value&&location.reload(),u.close&&u.close()},s=$("main"),_=$(!1),h=$(u.disk),p=$(null),o=$(!1);H("disk",h),H("updateDisk",l=>{h.value=l,o.value=!0}),H("disabled",_),H("onMount",l=>{p.value=l,s.value="mount"});const n=l=>{l=="mount"&&(p.value=null),s.value=l};return(l,g)=>(a(),k(K,{onHandleClose:t,title:"\u5171\u4EAB\u8BBE\u7F6E",width:"420px"},{default:r(()=>[e("ul",L1,[e("button",{class:U({on:s.value=="main"}),onClick:g[0]||(g[0]=v=>n("main"))},"Samba",2),e("button",{class:U({on:s.value=="partition"}),onClick:g[1]||(g[1]=v=>n("partition"))},"WebDav",2)]),x1]),_:1}))}});var b1=y(B1,[["__scopeId","data-v-c01a3f98"]]);class A1 extends e1{Open(){this.openWindow(b1)}}const D1=new A1;const B=i=>(I("data-v-2815b650"),i=i(),z(),i),S1=B(()=>e("div",{class:"tool-content"},[e("div",{class:"f"},[e("div",{class:"title"}," \u6587\u4EF6\u7BA1\u7406 "),e("div",{class:"desc"}," \u5728\u7EBF\u7BA1\u7406\u6587\u4EF6 "),e("div",{class:"btns"},[e("a",{href:"/cgi-bin/luci/admin/services/linkease/file",target:"_blank",class:"open",rel:"noopener noreferrer"}," \u6253\u5F00 ")])]),e("div",{class:"r"},[e("svg",{class:"icon",viewBox:"0 0 520 520",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e("title",null,"\u6587\u4EF6\u7BA1\u7406"),e("g",{id:"\u6587\u4EF6\u7BA1\u7406",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e("path",{d:"M100.645161,0 L419.354839,0 C474.939626,0 520,45.0603736 520,100.645161 L520,419.354839 C520,474.939626 474.939626,520 419.354839,520 L100.645161,520 C45.0603736,520 0,474.939626 0,419.354839 L0,100.645161 C0,45.0603736 45.0603736,0 100.645161,0 Z",id:"Rectangle",fill:"#FFFFFF"}),e("g",{id:"Group-5",transform:"translate(91.000000, 125.000000)"},[e("path",{d:"M17.9469027,198 L320.053097,198 L320.004939,41.9999992 C319.997272,33.165374 312.834627,26.0049401 304,26 L168.501475,26 L168.501475,26 L151.360646,5.6827235 C148.32056,2.07926566 143.845981,1.98155802e-14 139.131426,0 L34,0 C25.1651196,0.00429126987 18.0023698,7.16512047 17.9957093,15.9999994 L17.9469027,198 L17.9469027,198 Z",id:"Path-2",fill:"#FFB02C",transform:"translate(169.000000, 99.000000) scale(-1, 1) translate(-169.000000, -99.000000) "}),e("path",{d:"M297.245454,178.4361 L67.8061501,197.326892 C63.4027721,197.689443 59.5392238,194.413704 59.1766735,190.010326 C59.1711924,189.943756 59.1665453,189.87712 59.1627333,189.810433 L51.4420645,54.7472375 C51.1956458,50.4364574 54.4144797,46.7079405 58.7150678,46.322598 L288.43249,25.7393906 C292.833138,25.3450825 296.720218,28.5928625 297.114526,32.9935104 C297.122855,33.0864604 297.129556,33.1795491 297.134627,33.2727336 L304.577178,170.028344 C304.812572,174.353677 301.562579,178.080651 297.245454,178.4361 Z",id:"Path",fill:"#E8E8E8","fill-rule":"nonzero"}),e("path",{d:"M289.245454,185.4361 L59.8061501,204.326892 C55.4027721,204.689443 51.5392238,201.413704 51.1766735,197.010326 C51.1711924,196.943756 51.1665453,196.87712 51.1627333,196.810433 L43.4420645,61.7472375 C43.1956458,57.4364574 46.4144797,53.7079405 50.7150678,53.322598 L280.43249,32.7393906 C284.833138,32.3450825 288.720218,35.5928625 289.114526,39.9935104 C289.122855,40.0864604 289.129556,40.1795491 289.134627,40.2727336 L296.577178,177.028344 C296.812572,181.353677 293.562579,185.080651 289.245454,185.4361 Z",id:"Path",fill:"#F3F3F3","fill-rule":"nonzero"}),e("path",{d:"M280.245454,191.4361 L50.8061501,210.326892 C46.4027721,210.689443 42.5392238,207.413704 42.1766735,203.010326 C42.1711924,202.943756 42.1665453,202.87712 42.1627333,202.810433 L34.4420645,67.7472375 C34.1956458,63.4364574 37.4144797,59.7079405 41.7150678,59.322598 L271.43249,38.7393906 C275.833138,38.3450825 279.720218,41.5928625 280.114526,45.9935104 C280.122855,46.0864604 280.129556,46.1795491 280.134627,46.2727336 L287.577178,183.028344 C287.812572,187.353677 284.562579,191.080651 280.245454,191.4361 Z",id:"Path",fill:"#FAFAFA","fill-rule":"nonzero"}),e("path",{d:"M272.050402,211.155772 L44.7097773,224.528092 C40.2991228,224.787529 36.5132653,221.422303 36.2538278,217.011649 C36.2531111,216.999464 36.2524223,216.987279 36.2517614,216.975091 L28.4285714,72.713026 C28.1911376,68.3346726 31.5223826,64.5810839 35.8979358,64.2966766 L263.165019,49.5245057 C267.573993,49.2379261 271.380491,52.5797871 271.667071,56.9887612 C271.66893,57.0173626 271.670635,57.0459738 271.672187,57.0745935 L279.568919,202.73651 C279.807318,207.133987 276.446738,210.897177 272.050402,211.155772 Z",id:"Path",fill:"#FFFFFF","fill-rule":"nonzero"}),e("path",{d:"M32.5622397,270 L305.635714,270 C313.829424,270 320.698984,263.809932 321.54932,255.660465 L336.157264,115.660465 C337.074313,106.871623 330.692964,99.0034433 321.904122,98.086394 C321.352506,98.0288369 320.798269,98 320.243658,98 L168.501475,98 L168.501475,98 L151.360646,77.6827235 C148.32056,74.0792657 143.845981,72 139.131426,72 L17.5158465,72 C8.67929053,72 1.51584653,79.163444 1.51584653,88 C1.51584653,88.4821829 1.53764343,88.9641194 1.5811705,89.4443337 L16.6275636,255.444334 C17.374725,263.687425 24.2853564,270 32.5622397,270 Z",id:"Path-2",fill:"#FFCA28"})])])])])],-1)),M1={class:"tool-content"},I1=B(()=>e("div",{class:"f"},[e("div",{class:"title"}," \u7F51\u7EDC\u5171\u4EAB "),e("div",{class:"desc"}," \u7F51\u7EDC\u5171\u4EAB\u6587\u4EF6 ")],-1)),z1={class:"content"},V1=B(()=>e("div",null,null,-1)),P1=B(()=>e("span",null,"\u5171\u4EAB\u6587\u4EF6",-1)),H1=[V1,P1],O1=B(()=>e("div",null,null,-1)),Z1=B(()=>e("span",null,"\u5171\u4EAB\u7528\u6237",-1)),G1=[O1,Z1],U1=B(()=>e("div",null,null,-1)),N1=B(()=>e("span",null,"\u5171\u4EAB\u8BBE\u7F6E",-1)),T1=[U1,N1],j1=F({__name:"index",setup(i){return(u,t)=>{const s=m("nas-section-item"),_=m("nas-section-container"),h=m("nas-section");return a(),k(h,null,{default:r(()=>[c(_,{class:"section-setting-container"},{default:r(()=>[c(s,null,{default:r(()=>[S1]),_:1}),c(s,null,{default:r(()=>[e("div",M1,[I1,e("div",z1,[e("div",{onClick:t[0]||(t[0]=p=>L(c1).Open())},H1),e("div",{onClick:t[1]||(t[1]=p=>L(u1).Open())},G1),e("div",{onClick:t[2]||(t[2]=p=>L(D1).Open())},T1)])])]),_:1})]),_:1})]),_:1})}}});var W1=y(j1,[["__scopeId","data-v-2815b650"]]);const q1={class:"disk-content"},R1={class:"name"},Q1={class:"info"},Y1={class:"icon"},X1={class:"card"},J1={key:0,class:"status main"},K1={key:0},e2={key:1},t2={key:2},s2={key:3},n2=["value"],a2=F({__name:"disk",props:{type:{type:String},disk:{type:Object,required:!0}},setup(i){const u=i,t=q(u.disk),s=x(()=>t.errorInfo?"error":t.childrens==null||t.childrens.length==0||t.childrens.length==1&&t.childrens[0].filesystem=="No FileSystem"?"load":t.childrens.filter(h=>h.mountPoint).length==0?"unmounted":"success"),_=()=>{u.type!="raid"&&t1.OpenDisk({disk:u.disk})};return(h,p)=>{const o=m("icon-disk"),n=m("nas-section-item");return a(),k(n,{onClick:p[0]||(p[0]=l=>_())},{default:r(()=>[e("div",q1,[e("div",R1,C(i.type=="raid"?"raid: ":"")+" "+C(t.name),1),e("div",Q1,[e("div",Y1,[c(o)]),e("div",X1,[t.isSystemRoot?(a(),d("div",J1," \u7CFB\u7EDF ")):E("",!0),e("div",{class:U(["status",s.value])},[s.value=="error"?(a(),d("span",K1,"\u9519\u8BEF")):s.value=="success"?(a(),d("span",e2,"\u6B63\u5E38")):s.value=="load"?(a(),d("span",t2,"\u672A\u683C\u5F0F\u5316")):s.value=="unmounted"?(a(),d("span",s2,"\u672A\u6302\u8F7D")):E("",!0)],2),e("li",null,"Used: "+C(t.used),1),e("li",null,"Total: "+C(t.size||t.total),1)])]),e("progress",{value:t.usage||0,max:"100"},null,8,n2)])]),_:1})}}});var W=y(a2,[["__scopeId","data-v-1880f8c7"]]);const o2=F({__name:"index",setup(i){const u=D(),t=x(()=>u.disk),s=x(()=>u.raid.disks);return(_,h)=>{const p=m("nas-section-title"),o=m("nas-section-container"),n=m("nas-section");return a(),k(n,null,{default:r(()=>[c(p,{title:"Storage"}),c(o,{class:"section-disk-container"},{default:r(()=>[(a(!0),d(A,null,O(t.value.disks,l=>(a(),k(W,{disk:l},null,8,["disk"]))),256)),(a(!0),d(A,null,O(s.value,l=>(a(),k(W,{disk:l,type:"raid"},null,8,["disk"]))),256))]),_:1})]),_:1})}}});var i2=y(o2,[["__scopeId","data-v-32ba2e94"]]);const l2={class:"widget-content"},c2=F({__name:"cpu",setup(i){const u=D(),t=q({cpuusage:0,temperature:0,menavailablePercentage:0,menusage:0}),s=$(null),_=$(null),h=()=>{u.getSystemData().then(n=>{t.cpuusage=n.cpu.usage,t.temperature=n.cpu.temperature,t.menavailablePercentage=n.memery.availablePercentage||100,t.menusage=100-t.menavailablePercentage,o.cpu&&o.cpu.setValue(t.cpuusage),o.men&&o.men.setValue(t.menusage)})};h();const p=setInterval(()=>{h()},5e3),o={cpu:null,men:null};return s1(()=>{s.value&&_.value&&(o.cpu=j({el:s.value,value:t.cpuusage,name:"CPU"}),o.men=j({el:_.value,value:t.menusage,name:"RAM"}))}),n1(()=>{clearInterval(p)}),(n,l)=>{const g=m("nas-section-item"),v=m("nas-section-container"),w=m("nas-section");return a(),k(w,null,{default:r(()=>[c(v,null,{default:r(()=>[c(g,null,{default:r(()=>[e("div",l2,[e("div",{class:"gauge",ref_key:"cpu",ref:s},null,512),e("div",{class:"gauge",ref_key:"men",ref:_},null,512)])]),_:1})]),_:1})]),_:1})}}});var u2=y(c2,[["__scopeId","data-v-eb492a5a"]]);const S=i=>(I("data-v-5efc00dc"),i=i(),z(),i),d2=S(()=>e("div",{class:"widget-title"},[e("span",null,"\u7CFB\u7EDF\u4FE1\u606F")],-1)),_2={class:"widget-item"},r2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u8054\u7F51\u72B6\u6001:")],-1)),p2={class:"widget-item_value"},v2={key:0},h2={key:1},m2={key:2},g2={key:4},f2={class:"widget-item"},C2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u8FDE\u63A5\u65B9\u5F0F:")],-1)),$2={class:"widget-item_value"},w2={class:"widget-item"},F2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u5728\u7EBF\u8BBE\u5907:")],-1)),k2={class:"widget-item_value"},y2={class:"widget-item"},E2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"IPv4\u5730\u5740:")],-1)),L2={class:"widget-item_value"},x2={key:0,class:"widget-item"},B2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"IPv6\u5730\u5740:")],-1)),b2={class:"widget-item_value"},A2={class:"widget-item"},D2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"DNS:")],-1)),S2={class:"widget-item_value"},M2=F({__name:"info",setup(i){const u=D(),t=x(()=>u.network),s=x(()=>u.device),_=o=>{switch(o){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},h=o=>{switch(o){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},p=o=>o.toUpperCase();return(o,n)=>{const l=m("nas-section-item"),g=m("nas-section-container"),v=m("nas-section");return a(),k(v,null,{default:r(()=>[c(g,null,{default:r(()=>[c(l,{class:"widget-main"},{default:r(()=>{var w;return[d2,e("div",_2,[r2,e("div",p2,[t.value.networkInfo=="netSuccess"?(a(),d("span",v2," \u5DF2\u8054\u7F51 ")):t.value.networkInfo=="dnsFailed"?(a(),d("span",h2," DNS\u9519\u8BEF ")):t.value.networkInfo=="softSourceFailed"?(a(),d("span",m2," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(a(),d("span",g2," \u68C0\u6D4B\u4E2D "))])]),e("div",f2,[C2,e("div",$2,C(p(t.value.defaultInterface||"")),1)]),e("div",w2,[F2,e("div",k2,C(s.value.devices.length),1)]),e("div",y2,[E2,e("div",L2,C(t.value.ipv4addr)+"\uFF08"+C(_(t.value.proto||""))+"\uFF09 ",1)]),t.value.ipv6addr?(a(),d("div",x2,[B2,e("div",b2,C(t.value.ipv6addr),1)])):E("",!0),e("div",A2,[D2,e("div",S2,[e("p",null,C(h(t.value.dnsProto)),1),e("p",null,C((w=t.value.dnsList)==null?void 0:w.join(", ")),1)])])]}),_:1})]),_:1})]),_:1})}}});var I2=y(M2,[["__scopeId","data-v-5efc00dc"]]);const z2={class:"widget-content"},V2={class:"time"},P2={class:"date"},H2=F({__name:"time",setup(i){const u=N.formatDateYMD,t=N.formatDateHMS,s=D(),_=x(()=>s.localtime);return(h,p)=>{const o=m("nas-section-item"),n=m("nas-section-container"),l=m("nas-section");return a(),k(l,null,{default:r(()=>[c(n,null,{default:r(()=>[c(o,null,{default:r(()=>[e("div",z2,[e("div",V2,C(L(t)(L(_))),1),e("div",P2,C(L(u)(L(_))),1)])]),_:1})]),_:1})]),_:1})}}});var O2=y(H2,[["__scopeId","data-v-ce99f322"]]);const Z2=F({__name:"index",setup(i){return(u,t)=>(a(),d(A,null,[c(O2),c(I2),c(u2)],64))}});const V=i=>(I("data-v-642968c3"),i=i(),z(),i),G2={class:"dropdown-item"},U2=V(()=>e("svg",{t:"1668756315301",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"31499",width:"128",height:"128"},[e("path",{d:"M966.79936 655.37024a270.7968 270.7968 0 0 0-143.02208-40.96c-143.02208 0-257.4336 102.4-257.4336 230.4a208.4352 208.4352 0 0 0 45.7728 128H57.21088c-34.33472 0-57.21088-20.48-57.21088-51.2v-870.4c0-30.72 22.87616-51.2 57.21088-51.2h858.112c34.32448 0 57.20064 20.48 57.20064 51.2v604.16h-5.71392z m-200.22272-399.36a25.76384 25.76384 0 1 0 0-51.2H194.5088a25.76384 25.76384 0 1 0 0 51.2h572.07808z m0 256a25.76384 25.76384 0 1 0 0-51.2H194.5088a25.76384 25.76384 0 1 0 0 51.2h572.07808z m-577.792 204.8a25.76384 25.76384 0 0 0 0 51.2h303.2064a25.76384 25.76384 0 0 0 0-51.2z m0 0",fill:"#2E2A2A","p-id":"31500"}),e("path",{d:"M852.38784 819.2v-76.8a28.78464 28.78464 0 0 0-57.21088 0v102.4c0 5.12 5.72416 15.36 5.72416 20.48s11.43808 5.12 22.87616 5.12H938.1888a25.76384 25.76384 0 1 0 0-51.2h-85.80096z m-28.61056 204.8c-108.68736 0-200.22272-81.92-200.22272-179.2S715.08992 665.6 823.77728 665.6 1024 747.52 1024 844.8 932.48512 1024 823.77728 1024z m0 0",fill:"#2E2A2A","p-id":"31501"})],-1)),N2={key:0},T2={key:0,class:"dropdown-container"},j2={class:"title"},W2=V(()=>e("span",null,"\u5B89\u88C5\u4EFB\u52A1",-1)),q2=V(()=>e("div",{class:"auto"},null,-1)),R2={class:"dropdown-container_menus"},Q2={class:"dropdown-menu_item"},Y2=V(()=>e("div",{class:"auto"},null,-1)),X2={class:"status"},J2={key:0},K2={key:1},e0={class:"btn"},t0=V(()=>e("span",null," \u5B89\u88C5\u4E2D ",-1)),s0=F({__name:"task",setup(i){const u=v=>h.value.indexOf(v)!=-1,t=v=>p.value.indexOf(v)!=-1,s=$(!1),_=$([]),h=$([]),p=$([]),o=()=>b(this,null,function*(){try{const v=yield M.Quickstart.SetupResult.GET();if(v.data){const{result:w,error:P}=v.data;v.data.success==0&&w&&(_.value=w.packages||[],h.value=w.success||[],p.value=w.failed||[])}}catch(v){console.log(v)}});let n=!1;setTimeout(()=>b(this,null,function*(){yield o(),localStorage.getItem("nas_guide_init")&&(n=!0,s.value=!0)}),1e3);const l=()=>{s.value=!s.value,n&&localStorage.removeItem("nas_guide_init")},g=()=>{a1.autoSetup.Open()};return(v,w)=>{const P=m("icon-loading");return a(),d("div",G2,[e("button",{onClick:w[0]||(w[0]=f=>s.value=!s.value)},[U2,_.value.length>0?(a(),d("em",N2)):E("",!0)]),s.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:l})):E("",!0),c(R,{name:"fade"},{default:r(()=>[s.value?(a(),d("div",T2,[e("h2",j2,[W2,e("span",null,"("+C(h.value.length+p.value.length+"/"+_.value.length)+")",1),q2,e("a",{onClick:g},"\u67E5\u770B\u65E5\u5FD7")]),e("div",R2,[(a(!0),d(A,null,O(_.value,f=>(a(),d("div",Q2,[e("span",null,C(f),1),Y2,e("div",X2,[u(f)?(a(),d("span",J2," \u6210\u529F ")):t(f)?(a(),d("span",K2," \u5931\u8D25 ")):(a(),d(A,{key:2},[e("div",e0,[c(P)]),t0],64))])]))),256))])])):E("",!0)]),_:1})])}}});var n0=y(s0,[["__scopeId","data-v-642968c3"]]);const a0={class:"dropdown-item"},o0=e("svg",{t:"1663656201767",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1863",width:"128",height:"128"},[e("path",{d:"M25.6 54.84032v152.79104h967.68V54.84032H25.6z m0 534.76864h967.68V436.81792H25.6v152.79104z m0 381.98272h967.68v-152.79104H25.6v152.79104z","p-id":"1864"})],-1),i0={key:0},l0={key:0,class:"dropdown-container"},c0=e("h2",{class:"title"}," \u7CFB\u7EDF\u8BBE\u7F6E ",-1),u0={class:"dropdown-menu_item"},d0=e("div",{class:"icons"},[e("svg",{t:"1663663794595",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19033",width:"128",height:"128"},[e("path",{d:"M885.376 848H512v-74.624h373.376V250.624H512V176h373.376A74.88 74.88 0 0 1 960 250.688v522.688c0 41.088-33.536 74.624-74.624 74.624zM512 736h336V586.688l-224-112L512 530.688V736z m0 112H325.312v-74.624H512v74.624zM325.312 176H512v74.624H325.312V176zM512 530.688V736H325.312V561.792l74.688 24.896L512 530.688z m-186.688-56V325.376c41.152-0.064 74.688 33.536 74.688 74.624s-33.536 74.688-74.688 74.688z m0 373.312H138.688A74.88 74.88 0 0 1 64 773.376V250.624A74.88 74.88 0 0 1 138.688 176h186.624v74.624H138.688v522.752h186.624v74.624z m0-522.624c-41.088 0-74.624 33.472-74.624 74.624a74.88 74.88 0 0 0 74.624 74.688V325.376z m0 236.416L288 549.376l-112 37.312V736h149.312V561.792z","p-id":"19034"})])],-1),_0=e("span",null,"\u58C1\u7EB8",-1),r0=e("div",{class:"auto"},null,-1),p0={class:"upload",title:"\u4E0A\u4F20\u80CC\u666F"},v0=e("span",null,"\u4E0A\u4F20",-1),h0=e("div",{class:"icons"},[e("svg",{t:"1663666048430",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1979",width:"128",height:"128"},[e("path",{d:"M816.47182493 165.18652616c-45.03283702 5.80844472-91.61106134 5.60212947-139.89197922-1.26634882-48.55758565-6.90879227-98.65581637-20.5761858-150.4053594-41.66144114L512.02569025 116.4921875l-14.23100531 5.76654948c-51.72187603 21.08525534-101.79164949 34.75264886-150.37690215 41.66144114-48.22558465 6.86847828-94.85598046 7.07479277-139.89039874 1.26634881L159.65672594 159.01999391l0.63396504 55.68692219c2.58723985 236.52258702 39.47418405 393.75769043 98.82181686 499.07250806 62.3190467 110.60391658 147.37703179 163.61822717 243.19660678 189.35703593l9.71815688 2.6156971 9.68811914-2.6156971c95.79507051-25.73880876 180.87756008-78.75311934 243.17289253-189.35703593 59.40138634-105.26027387 96.28753954-262.54913003 98.84869362-499.07250806l0.60550779-55.68692219L816.47182493 165.18652616zM536.52502695 716.42199725c0 14.01125204-10.98371543 25.35226399-24.52542245 25.35226399-13.54486954 0-24.49933671-11.34180218-24.49933672-25.35226399l0-410.61466986c0-14.02548105 10.95446718-25.366493 24.49933671-25.36649299 13.54170702 0 24.52542246 11.34101194 24.52542245 25.366493L536.52502695 716.42199725z","p-id":"1980"})])],-1),m0=e("span",null," \u5411\u5BFC\u6A21\u5F0F ",-1),g0=e("div",{class:"auto"},null,-1),f0={class:"btn"},C0={target:"_blank",href:"/cgi-bin/luci/admin/quickstart/",class:"dropdown-menu_item"},$0=e("div",{class:"icons"},[e("svg",{t:"1663665818574",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1800",width:"128",height:"128"},[e("path",{d:"M900.48223089 607.65333044C901.65599673 614.64488767 901.40082993 623.01434302 899.56363186 632.86376636 897.87953241 642.71318476 894.97063672 652.76674038 890.88797519 662.87132559 886.80531367 673.02694531 881.90612131 682.16190192 876.13936032 690.27619046 870.37260346 698.44151353 863.89137986 704.20827039 857.00188672 707.67853421 850.01032949 711.19982761 843.93737131 712.93495745 838.68094394 712.93495745 833.47555027 712.93495745 827.7087934 711.81222613 821.3296347 709.46469858 815.56287701 707.7295646 808.26511929 706.14753335 799.58946179 704.66757031 790.81174103 703.23863767 782.03402026 702.98347085 773.00113186 703.8000058 764.01927798 704.66757031 755.03741998 706.55580288 746.10660061 709.41366406 737.17577712 712.27152524 729.36768909 717.27278579 723.09059861 724.21331345 709.15851373 738.70675738 700.94216111 755.24153579 698.64566311 773.81764539 696.34916596 792.39375581 698.95186032 810.05126636 706.50478567 826.89224197 712.27154666 838.52782886 711.4039772 850.06134671 703.90209048 861.69692947 700.43182749 866.34095913 694.8181684 871.13808246 687.36731207 876.03727893 679.81438672 880.98750581 671.49596506 885.47843274 662.56514157 889.56109426 653.6343222 893.6437558 644.1421347 896.8078183 634.24168179 899.15534585 624.39225845 901.40081345 615.7166059 902.57457517 608.11264685 902.57457517 602.90725318 902.57457517 598.05909534 900.53324399 593.36403611 896.50161697 588.77104095 892.41895544 585.60697846 888.03009671 583.76978039 883.43710156L582.90221506 883.43710156C576.52305554 865.42236011 565.65296991 849.95927851 550.29195652 836.89476309 534.93094394 823.83024768 517.12033478 817.29799038 496.75806164 817.29799038 477.05922073 817.29799038 459.19757788 823.83024768 443.27519882 836.89476309 427.30178689 849.95927851 416.12550159 865.16719331 409.74634289 882.56953706 406.83744721 889.56109426 402.49961968 894.61338853 396.68182666 897.82848142 390.96610102 900.99254392 384.58694314 902.57457517 377.5953851 902.57457517 369.48109573 902.57457517 360.3461416 901.14564663 350.19052106 898.18571643 340.03490134 895.27682073 329.87928162 891.65345913 319.72366189 887.31563081 309.56804135 882.97780164 300.43308722 877.87447699 292.31879786 872.05668149 284.20450848 866.28992461 278.13154947 860.47213324 274.04888794 854.70537225 271.13999224 850.62271072 269.55796099 845.82558245 269.25176132 840.36502692 268.94556164 834.85343274 271.13999224 827.14740879 275.78401944 817.29799038 282.16317732 803.92727366 284.61277472 788.71935886 283.18384289 771.57218274 281.75491189 754.47603949 274.35508843 738.65572698 260.98437253 724.16227893 252.87008316 715.43558774 243.02066229 709.82192947 231.43611157 707.21923511 219.80052634 704.5655021 208.82837414 703.59587268 198.36655475 704.15723669 186.16960385 704.71860483 173.71748697 707.06613238 160.95917041 711.14879392 152.84488104 713.44529108 144.73059167 712.83289337 136.56526944 709.36262954 130.18611157 707.06613238 124.26625198 701.70764011 118.70362659 693.33818476 113.19203323 684.91769489 108.29284006 675.57861011 103.90397885 665.47401996 99.56615134 655.31840024 96.24898941 644.9076137 93.90145938 634.13959629 91.60496222 623.42260842 90.99256287 614.59385728 92.16632788 607.60229592 93.90145938 594.84398184 99.66821789 586.72969331 109.56867163 583.25942947 126.97101538 576.26787226 142.58719477 564.83642261 156.51927634 548.86300739 170.45135791 532.88959629 177.39188226 515.07898711 177.39188226 495.32911252 177.39188226 475.06890594 170.45135791 457.36036252 156.51927634 442.25451594 142.58719477 427.14866934 126.91998252 416.17651715 109.56867163 409.18495911 104.46534534 407.55189499 100.12751782 403.3671669 96.65725564 396.68180936 93.18699346 389.99645098 91.40082911 383.15799402 91.40082911 376.26850254 91.40082911 368.71557965 92.57459412 360.29509061 94.87109128 351.00703623 97.16758762 341.71898184 100.22958438 332.73712714 104.00604541 324.01043842 107.78250726 315.33478339 112.17136846 307.37359345 117.07056164 300.07583654 122.02078852 292.88014539 127.37928162 287.47062024 133.14604095 284.00035723 137.79006814 281.09146154 142.33202878 279.96872939 146.66985629 280.53009589 151.00768381 281.09146154 155.80481042 282.26522656 161.01020411 284.00035723 178.41254786 290.99191528 196.52935669 293.13531219 215.41166595 290.53261536 234.24294071 287.92991934 250.93081854 279.66252972 265.42426661 265.78148184 272.36479095 258.78992462 277.41708356 250.21633533 280.63217974 240.11174848 283.79624225 229.90509588 285.88860629 219.90257559 286.70513794 210.05315473 287.62373697 200.20373468 287.62373697 191.22187998 286.70513794 183.10759061 285.88860629 174.94226837 285.12310669 169.17550903 284.56174103 165.70524686 283.38797601 162.23498468 282.36731042 158.15232315 281.49974509 153.50829597 280.63217974 148.86426877 281.09147885 144.78160723 282.77557666 141.31134588 286.24583884 133.19705652 292.47189728 126.10343191 301.50478567 120.03047373 310.48664038 113.95751472 320.18296099 108.85418841 330.64478039 104.77152688 341.1065998 100.73989904 351.26222034 97.72893598 361.11164038 95.63657193 370.96106042 93.59524158 378.82018381 92.57457599 384.58694314 92.57457599 392.08883316 92.57457599 398.05972479 95.02417341 402.44858599 99.97440027 406.78641351 104.92462714 409.79737659 110.02795344 411.53250727 115.23334629 417.91166596 130.90055936 428.37348535 144.62850781 442.86693259 156.5702919 457.36038064 168.46104312 474.50755759 174.43193475 494.20639849 174.43193475 514.51764041 174.43193475 532.48134817 168.76724279 548.14856208 157.43785724 563.81577185 146.10847251 574.83896021 131.7681247 581.2181156 114.36578095 583.51461277 109.72175376 587.1890097 104.92462714 592.08820122 100.02543313 596.98739771 95.07520627 602.03968866 92.62560969 607.34715054 92.62560969 615.41040539 92.62560969 624.29019436 93.74834183 633.88444595 96.09587186 643.47870249 98.39236902 652.91985547 101.60746438 662.10584577 105.69012591 671.49596506 109.72175376 680.06955353 114.97818029 687.82661118 121.35733816 695.68573374 127.73649686 701.86076013 134.67702039 706.55581936 142.22994409 709.46471506 146.87397129 710.33228039 151.92626472 709.15851373 157.43785724 707.98475201 162.94945059 706.86201657 166.87901187 705.68825486 169.17550903 698.13532949 186.01648711 695.83883152 203.67399686 698.69669763 222.25010562 701.60559332 240.77518152 710.07711277 257.05479312 723.90712942 270.9868747 737.83920935 284.91895627 754.98639041 292.57394653 775.24659534 294.05391123 795.55783478 295.48284222 814.44014157 292.16568029 831.84248532 284.05139093 836.43548047 281.14249524 842.10017324 279.96872939 848.78553327 280.58112876 855.47088999 281.19352811 861.03351373 283.79622412 865.72857791 288.38921844 874.40423047 296.50350781 882.05921991 308.85355813 888.74457993 325.38833654 895.42993664 341.92311414 899.92086277 358.61099279 902.21736074 375.4009372 903.39112659 385.25035724 901.80909534 392.95638037 897.52230151 398.46797373 893.13343866 403.92853338 888.64251172 407.60292786 883.94745249 409.33805936 865.9837406 415.71721722 850.67376172 426.89350254 837.91544763 442.81588159 825.15712942 458.73826064 818.77796991 476.90610401 818.77796991 497.16630976 818.77796991 516.91618518 824.13646548 534.16542621 834.8024147 548.96507559 845.57043708 563.71369046 859.60458521 574.32861011 876.95589526 580.70776467 881.03855679 583.00426267 884.50881567 585.35179434 887.41771548 587.64829233 893.79687087 592.85368518 898.18573374 599.53904107 900.48223089 607.65333044L900.48223089 607.65333044 900.48223089 607.65333044ZM495.94152917 685.93836212C522.01952712 685.93836212 546.71962942 680.98813608 569.83769964 671.13871274 593.05783478 661.28929434 613.21597561 647.66341079 630.36315256 630.26106704 647.51032949 612.8076896 660.98311032 592.70058245 670.83253284 569.78664866 680.68195123 546.87271072 685.58114771 522.32571116 685.58114771 496.29874524 685.58114771 470.16971277 680.68195123 445.67374524 670.83253284 422.81084101 660.98311032 399.89690472 647.51032949 379.84083127 630.36315256 362.74468719 613.21597561 345.64854312 593.10886929 332.12472778 569.83769964 322.27530774 546.71962942 312.42588687 521.96849673 307.47566001 495.94152917 307.47566001 469.86353039 307.47566001 445.31652917 312.42588687 422.40259289 322.27530774 399.53968948 332.12472778 379.48361603 345.64854312 362.43850564 362.74468719 345.34236157 379.84083127 331.81854541 399.89690472 321.96912537 422.81084101 312.11970532 445.67374524 307.16947845 470.22074563 307.16947845 496.29874524 307.16947845 522.37674568 312.11970532 546.87271072 321.96912537 569.78664866 331.81854541 592.64955288 345.34236157 612.8076896 362.43850564 630.26106704 379.53464972 647.66341079 399.59072317 661.23825983 422.45362659 671.13871274 445.36756287 680.98813608 469.86353039 685.93836212 495.94152917 685.93836212L495.94152917 685.93836212 495.94152917 685.93836212Z","p-id":"1801"})])],-1),w0=e("span",null," \u9AD8\u7EA7\u914D\u7F6E ",-1),F0=e("div",{class:"auto"},null,-1),k0={class:"btn"},y0={target:"_blank",href:"/cgi-bin/luci/admin/system/ota",class:"dropdown-menu_item"},E0=e("div",{class:"icons"},[e("svg",{t:"1663663860869",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1740",width:"128",height:"128"},[e("path",{d:"M231.27989011 542.51027439C211.04473401 415.97053009 280.55494614 288.10044748 404.67907455 239.7181185c91.98593976-35.86663916 191.16621194-18.71226809 261.39410679 32.5232872l-59.7602277 96.79966617 267.99328894-1.03276318L778.52183591 90.125l-49.06500266 79.45274542c-103.46886557-67.00707449-244.51980715-88.92265842-368.03127997-40.76788814C190.30194858 195.5193558 91.80435007 368.04331772 111.25180539 542.51027439L231.27989011 542.51027439z","p-id":"1741"}),e("path",{d:"M792.71795273 473.24512467c20.21765158 126.53974429-49.25755151 254.42733225-173.38167993 302.79215588-84.61656134 32.97840298-177.86282217 20.55023657-249.56109146-23.91109305 13.65347928-22.16064716 54.00126068-87.50479751 54.00126067-87.50479751L135.58300519 647.71208133l121.95357577 286.16291867 51.13052902-82.79609738c103.45136106 67.00707449 230.37620306 84.03891476 353.88767588 35.88414367 171.08859567-66.72700305 269.62120322-239.23346045 250.17374789-413.6829126L792.71795273 473.2801337z","p-id":"1742"})])],-1),L0={key:0},x0=e("div",{class:"auto"},null,-1),B0={class:"btn"},b0={href:"/cgi-bin/luci/admin/logout",class:"dropdown-menu_item"},A0=e("div",{class:"icons"},[e("svg",{t:"1663664454777",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1770",width:"128",height:"128"},[e("path",{d:"M713.78169987 245.58612675c-3.34486519 0.15820313-4.20368182 0.11300245-7.50334556 0.58761107a57.69892296 57.69892296 0 0 0-41.72041273 28.47655477 56.20729383 56.20729383 0 0 0-4.97209635 42.98603697c2.05663985 7.11913831 5.55970816 13.80886868 10.23799936 19.59458098 2.10184131 2.5764499 2.71205269 3.11886105 5.03989813 5.49190716l2.80245403 2.48604856c12.43024201 10.3284007 23.91126526 21.62862127 34.2170664 34.03626216a252.98932537 252.98932537 0 0 1 51.80020821 103.8942231 252.67291912 252.67291912 0 0 1-29.2449693 186.49882996 255.56577528 255.56577528 0 0 1-48.74914893 58.85154628 259.90505988 259.90505988 0 0 1-62.15121003 41.22320226 259.49825151 259.49825151 0 0 1-78.01671856 22.69084171 264.13134203 264.13134203 0 0 1-92.54880184-4.63309053 259.79205743 259.79205743 0 0 1-88.25471793-38.60155091 258.25522762 258.25522762 0 0 1-71.68859588-74.19724478 250.59367816 250.59367816 0 0 1-36.61271207-98.7187214 252.06270696 252.06270696 0 0 1 81.99439625-224.17376402c3.54826899-3.09625995 7.11913831-6.10211855 10.62220661-9.19837927 2.32784543-2.37304611 2.93805682-2.89285615 5.01729779-5.46930682a55.77788589 55.77788589 0 0 0-3.81947457-74.4232489 58.24133411 58.24133411 0 0 0-72.32140836-8.11355774c-4.70089153 3.0058586-8.85937268 6.73493106-13.01785306 10.37360216a367.41535298 367.41535298 0 0 0-76.34428597 92.1419935 363.12126904 363.12126904 0 0 0-23.95646671 316.58696308 366.55653557 366.55653557 0 0 0 58.87414585 98.92212598 371.91283994 371.91283994 0 0 0 199.01947486 123.89561168 381.49542647 381.49542647 0 0 0 146.65425515 6.4411259c45.17827961-6.82533317 88.97793253-21.92242642 128.59650322-44.36466363a374.26328571 374.26328571 0 0 0 97.95030691-80.02815852 365.58471726 365.58471726 0 0 0 56.38809728-87.53150408 365.44911447 365.44911447 0 0 0 29.80998078-198.45446336c-5.24330192-40.00277871-17.24413599-79.10154009-35.39228929-115.26224391a367.64135711 367.64135711 0 0 0-85.65566768-110.96815996c-2.96065793-2.5764499-5.98911687-5.13030024-8.9949747-7.66154946-2.59905024-2.03403952-3.2092624-2.62165134-6.03431754-4.40708563a58.53513926 58.53513926 0 0 0-17.15373388-7.29994176 70.92018059 70.92018059 0 0 0-11.11941633-1.62723192c-1.265625 0-2.48604855 0-3.75167355-0.04520068m-144.32640974 322.96028721c0 14.98409157-6.05691787 29.35797175-16.81472728 39.95757803a57.85712608 57.85712608 0 0 1-40.56778942 16.54352172 57.78932508 57.78932508 0 0 1-40.56778943-16.54352172 56.09429214 56.09429214 0 0 1-16.81472806-39.95757802V172.99351358c0-15.0066919 6.05691787-29.35797175 16.81472806-39.98017838A57.76672474 57.76672474 0 0 1 512.07277344 116.49241384c15.21009648 0 29.80998001 5.94391543 40.56778942 16.52092136 10.75780941 10.62220662 16.81472729 24.97348646 16.81472728 40.00277871v395.53030006z",fill:"#000000","p-id":"1771"})])],-1),D0=e("span",null,"\u6CE8\u9500",-1),S0=e("div",{class:"auto"},null,-1),M0={class:"btn"},I0=F({__name:"setting",setup(i){const u=D(),t=$(!1),s=$(!1);(()=>b(this,null,function*(){try{const o=yield M.System.CheckUpdate.GET(),{result:n}=o.data;n&&(s.value=n.needUpdate)}catch(o){console.log(o)}}))();const h=o=>{if(o&&(o==null?void 0:o.target)){const l=o.target.files;if(l){const g=l[0];p(g)}}},p=o=>{const n=new FormData;n.append("file",o),M.Upload.BG.POST(n).then(l=>{if(l.data.result){const g=l.data.result;if(g!=null&&g.filename!=""){G.Success("\u4E0A\u4F20\u6210\u529F,\u8BF7\u5237\u65B0\u7F13\u5B58\u67E5\u770B"),u.incr();return}G.Warning("\u4E0A\u4F20\u5931\u8D25")}})};return(o,n)=>{const l=m("icon-right"),g=m("router-link");return a(),d("div",a0,[e("button",{onClick:n[0]||(n[0]=v=>t.value=!t.value)},[o0,s.value?(a(),d("em",i0)):E("",!0)]),t.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:n[1]||(n[1]=v=>t.value=!t.value)})):E("",!0),c(R,{name:"fade"},{default:r(()=>[t.value?(a(),d("div",l0,[c0,e("div",u0,[d0,_0,r0,e("label",p0,[e("input",{type:"file",accept:"image/jpeg, image/jpg, image/png, image/gif",hidden:"",onChange:h},null,32),v0])]),c(g,{to:"/wizard",class:"dropdown-menu_item"},{default:r(()=>[h0,m0,g0,e("div",f0,[c(l)])]),_:1}),e("a",C0,[$0,w0,F0,e("div",k0,[c(l)])]),e("a",y0,[E0,e("span",null,[o1(" \u66F4\u65B0 "),s.value?(a(),d("em",L0)):E("",!0)]),x0,e("div",B0,[c(l)])]),e("a",b0,[A0,D0,S0,e("div",M0,[c(l)])])])):E("",!0)]),_:1})])}}});const z0={class:"f"},V0={class:"hostname"},P0={class:"r"},H0=F({__name:"index",setup(i){D(),$(!1);const u=$(!1);return(()=>b(this,null,function*(){try{const s=yield M.System.CheckUpdate.GET(),{result:_}=s.data;_&&(u.value=_.needUpdate)}catch(s){console.log(s)}}))(),(s,_)=>(a(),d("header",null,[e("div",z0,[e("div",V0,C(L(i1).HostName),1)]),e("div",P0,[c(n0),c(I0)])]))}});var O0=y(H0,[["__scopeId","data-v-6eeee710"]]);const Z0={},G0={class:"main-container"};function U0(i,u){return a(),d("div",G0,[l1(i.$slots,"default")])}var N0=y(Z0,[["render",U0]]);const T0={id:"page"},j0={class:"body"},W0={class:"f"},q0={class:"r"},R0=F({__name:"index",setup(i){const u=D(),t=x(()=>({"background-image":`url(/luci-static/istorex/image/bg.gif?t=${u.keys})`})),s=$(0),_=x(()=>({transform:`translateX(${s.value*-100}%)`}));return(h,p)=>(a(),d("div",T0,[e("div",{class:"bg",style:T(t.value)},null,4),c(O0),(a(),d("div",{id:"main",key:L(u).reloadCount,style:T(_.value),ref:"el"},[c(N0,null,{default:r(()=>[e("div",j0,[e("div",W0,[c(Z2)]),e("div",q0,[c(i2),c(W1),c(y1)])])]),_:1})],4))]))}});var J0=y(R0,[["__scopeId","data-v-763fd268"]]);export{J0 as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.d44dd332.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.574eccc8.js similarity index 98% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.d44dd332.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.574eccc8.js index 86fdc366..b41b2b5d 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.d44dd332.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.574eccc8.js @@ -1 +1 @@ -var m=(_,v,l)=>new Promise((n,r)=>{var F=i=>{try{c(l.next(i))}catch(u){r(u)}},h=i=>{try{c(l.throw(i))}catch(u){r(u)}},c=i=>i.done?n(i.value):Promise.resolve(i.value).then(F,h);c((l=l.apply(_,v)).next())});import{_ as g,d as y,j as k,v as E,i as x,o,c as a,a as e,l as d,F as A,K as S,L as B,p as b,q as N,C as w}from"./index.js?v=6248f3bd";const D=_=>(b("data-v-613b66e3"),_=_(),N(),_),$={id:"page",class:"page-container"},I=D(()=>e("div",{class:"notice_info"},[e("li",null," \u52A8\u6001 DNS \uFF08DDNS\uFF09\u8BA9\u60A8\u5373\u4F7F\u5728\u6CA1\u6709\u9759\u6001 IP \u5730\u5740\u7684\u60C5\u51B5\u4E0B\uFF0C\u4ECD\u53EF\u5C06\u670D\u52A1\u5668\u8FDE\u540C\u7ED1\u5B9A\u7684\u57DF\u540D\u6620\u5C04\u81F3\u516C\u7F51\u4E0A\u3002 "),e("li",null," \u5982\u679C\u60A8\u6CA1\u6709\u516C\u7F51 IP \u8BF7\u4F7F\u7528 DDNSTO \uFF0C\u521D\u6B21\u4F7F\u7528 DDNSTO \u9700\u8981\u521D\u59CB\u5316\u914D\u7F6E ")],-1)),P={class:"text-container"},T={class:"text-container_item"},O=D(()=>e("div",{class:"text-container_item_title"},[e("span",null,"DDNSTO\uFF1A")],-1)),q={class:"text-container_item_flex"},G={class:"text-container_item_block"},j=["href"],K={key:0,class:"domain"},L={key:1,class:"domain"},V={class:"text-container_item"},z=D(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv4\uFF1A")],-1)),H={class:"text-container_item_flex"},J={class:"text-container_item_block"},M=["href"],Q={key:1,class:"domain"},R={class:"text-container_item"},U=D(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv6\uFF1A")],-1)),W={class:"text-container_item_flex"},X={class:"text-container_item_block"},Y=["href"],Z={key:1,class:"domain"},tt=y({__name:"index",setup(_){return m(this,null,function*(){let v,l;k({ipv4:"",ipv6:""});const n=k({ddnstoDomain:"",ipv4Domain:"",ipv6Domain:""}),r=k({install:!0,error:null}),F=()=>m(this,null,function*(){yield Promise.all([h()])}),h=()=>m(this,null,function*(){try{const t=yield w.Guide.Ddns.GET(),{result:s,error:p}=t.data;if(p)throw p;s&&(n.ddnstoDomain=s.ddnstoDomain,n.ipv4Domain=s.ipv4Domain,n.ipv6Domain=s.ipv6Domain)}catch(t){console.log(t)}});[v,l]=E(()=>F()),yield v,l();const c=x(()=>n.ddnstoDomain),i=x(()=>{const t=n.ipv4Domain;return t!=null&&t!=""&&t!="Stopped"?{url:`http://${t}`,title:t,ok:!0}:{url:`http://${t}`,title:"\u672A\u914D\u7F6E",ok:!1}}),u=x(()=>{const t=n.ipv6Domain;return t!=null&&t!=""&&t!="Stopped"?{url:`http://${t}`,title:t,ok:!0}:{url:`http://${t}`,title:"\u672A\u914D\u7F6E",ok:!1}}),C=()=>{S({domain:c.value,callback:t=>{}})},f=t=>{B({setup:t,callback:s=>{switch(t){case"ipv4":n.ipv4Domain=s.domain;break;case"ipv6":n.ipv6Domain=s.domain;break}}})};return(t,s)=>(o(),a("div",$,[I,e("div",P,[e("div",T,[O,e("div",q,[e("div",G,[r.install?(o(),a("a",{key:0,href:c.value,target:"_blank",class:"domain"},d(c.value),9,j)):(o(),a(A,{key:1},[r.error?(o(),a("a",K,d(r.error),1)):(o(),a("a",L,"\u672A\u5B89\u88C5"))],64)),e("a",{class:"setting",onClick:s[0]||(s[0]=p=>C())},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",V,[z,e("div",H,[e("div",J,[i.value.ok?(o(),a("a",{key:0,href:i.value.url,target:"_blank",class:"domain"},d(i.value.title),9,M)):(o(),a("a",Q,d(i.value.title),1)),e("a",{class:"setting",onClick:s[1]||(s[1]=p=>f("ipv4"))},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",R,[U,e("div",W,[e("div",X,[u.value.ok?(o(),a("a",{key:0,href:u.value.url,target:"_blank",class:"domain"},d(u.value.title),9,Y)):(o(),a("a",Z,d(u.value.title),1)),e("a",{class:"setting",onClick:s[2]||(s[2]=p=>f("ipv6"))},"\u5FEB\u901F\u914D\u7F6E")])])])])]))})}});var it=g(tt,[["__scopeId","data-v-613b66e3"]]);export{it as default}; +var m=(_,v,l)=>new Promise((n,r)=>{var F=i=>{try{c(l.next(i))}catch(u){r(u)}},h=i=>{try{c(l.throw(i))}catch(u){r(u)}},c=i=>i.done?n(i.value):Promise.resolve(i.value).then(F,h);c((l=l.apply(_,v)).next())});import{_ as g,d as y,j as k,v as E,i as x,o,c as a,a as e,l as d,F as A,K as S,L as B,p as b,q as N,C as w}from"./index.js?v=bc5d78ec";const D=_=>(b("data-v-613b66e3"),_=_(),N(),_),$={id:"page",class:"page-container"},I=D(()=>e("div",{class:"notice_info"},[e("li",null," \u52A8\u6001 DNS \uFF08DDNS\uFF09\u8BA9\u60A8\u5373\u4F7F\u5728\u6CA1\u6709\u9759\u6001 IP \u5730\u5740\u7684\u60C5\u51B5\u4E0B\uFF0C\u4ECD\u53EF\u5C06\u670D\u52A1\u5668\u8FDE\u540C\u7ED1\u5B9A\u7684\u57DF\u540D\u6620\u5C04\u81F3\u516C\u7F51\u4E0A\u3002 "),e("li",null," \u5982\u679C\u60A8\u6CA1\u6709\u516C\u7F51 IP \u8BF7\u4F7F\u7528 DDNSTO \uFF0C\u521D\u6B21\u4F7F\u7528 DDNSTO \u9700\u8981\u521D\u59CB\u5316\u914D\u7F6E ")],-1)),P={class:"text-container"},T={class:"text-container_item"},O=D(()=>e("div",{class:"text-container_item_title"},[e("span",null,"DDNSTO\uFF1A")],-1)),q={class:"text-container_item_flex"},G={class:"text-container_item_block"},j=["href"],K={key:0,class:"domain"},L={key:1,class:"domain"},V={class:"text-container_item"},z=D(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv4\uFF1A")],-1)),H={class:"text-container_item_flex"},J={class:"text-container_item_block"},M=["href"],Q={key:1,class:"domain"},R={class:"text-container_item"},U=D(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv6\uFF1A")],-1)),W={class:"text-container_item_flex"},X={class:"text-container_item_block"},Y=["href"],Z={key:1,class:"domain"},tt=y({__name:"index",setup(_){return m(this,null,function*(){let v,l;k({ipv4:"",ipv6:""});const n=k({ddnstoDomain:"",ipv4Domain:"",ipv6Domain:""}),r=k({install:!0,error:null}),F=()=>m(this,null,function*(){yield Promise.all([h()])}),h=()=>m(this,null,function*(){try{const t=yield w.Guide.Ddns.GET(),{result:s,error:p}=t.data;if(p)throw p;s&&(n.ddnstoDomain=s.ddnstoDomain,n.ipv4Domain=s.ipv4Domain,n.ipv6Domain=s.ipv6Domain)}catch(t){console.log(t)}});[v,l]=E(()=>F()),yield v,l();const c=x(()=>n.ddnstoDomain),i=x(()=>{const t=n.ipv4Domain;return t!=null&&t!=""&&t!="Stopped"?{url:`http://${t}`,title:t,ok:!0}:{url:`http://${t}`,title:"\u672A\u914D\u7F6E",ok:!1}}),u=x(()=>{const t=n.ipv6Domain;return t!=null&&t!=""&&t!="Stopped"?{url:`http://${t}`,title:t,ok:!0}:{url:`http://${t}`,title:"\u672A\u914D\u7F6E",ok:!1}}),C=()=>{S({domain:c.value,callback:t=>{}})},f=t=>{B({setup:t,callback:s=>{switch(t){case"ipv4":n.ipv4Domain=s.domain;break;case"ipv6":n.ipv6Domain=s.domain;break}}})};return(t,s)=>(o(),a("div",$,[I,e("div",P,[e("div",T,[O,e("div",q,[e("div",G,[r.install?(o(),a("a",{key:0,href:c.value,target:"_blank",class:"domain"},d(c.value),9,j)):(o(),a(A,{key:1},[r.error?(o(),a("a",K,d(r.error),1)):(o(),a("a",L,"\u672A\u5B89\u88C5"))],64)),e("a",{class:"setting",onClick:s[0]||(s[0]=p=>C())},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",V,[z,e("div",H,[e("div",J,[i.value.ok?(o(),a("a",{key:0,href:i.value.url,target:"_blank",class:"domain"},d(i.value.title),9,M)):(o(),a("a",Q,d(i.value.title),1)),e("a",{class:"setting",onClick:s[1]||(s[1]=p=>f("ipv4"))},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",R,[U,e("div",W,[e("div",X,[u.value.ok?(o(),a("a",{key:0,href:u.value.url,target:"_blank",class:"domain"},d(u.value.title),9,Y)):(o(),a("a",Z,d(u.value.title),1)),e("a",{class:"setting",onClick:s[2]||(s[2]=p=>f("ipv6"))},"\u5FEB\u901F\u914D\u7F6E")])])])])]))})}});var it=g(tt,[["__scopeId","data-v-613b66e3"]]);export{it as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f1f94373.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.6700eedc.js similarity index 97% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f1f94373.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.6700eedc.js index 0baa0f3f..cd1112e8 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f1f94373.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.6700eedc.js @@ -1 +1 @@ -var m=(v,c,d)=>new Promise((l,e)=>{var u=o=>{try{r(d.next(o))}catch(a){e(a)}},i=o=>{try{r(d.throw(o))}catch(a){e(a)}},r=o=>o.done?l(o.value):Promise.resolve(o.value).then(u,i);r((d=d.apply(v,c)).next())});import{d as S,s as h,j as F,v as N,o as p,c as D,a as n,x as _,D as P,F as B,A as I,m as g,l as x,B as k,C as y,T as w}from"./index.js?v=6248f3bd";const C=["onSubmit"],E=n("div",{class:"label-name"},[n("span",null,"DNS\u9009\u9879")],-1),A={class:"label-value"},T=n("option",{value:"auto"},"\u4F7F\u7528\u8FD0\u8425\u5546\u63D0\u4F9B\u7684DNS",-1),V=n("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1),G=[T,V],M=n("div",{class:"label-name"},[n("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1),U={class:"label-value"},q=n("div",{class:"label-name"}," \u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740 ",-1),j={class:"label-value"},L={class:"label-btns"},O=["disabled"],z={key:1,class:"label-msg"},K=S({__name:"index",setup(v){return m(this,null,function*(){let c,d;const l=h(""),e=F({interfaceName:"",dnsProto:"auto",manualDnsIp:[]}),u=F({dns1:"",dns2:""}),i=h(!1),r=()=>m(this,null,function*(){i.value=!0;try{const a=yield y.Guide.DnsConfig.GET();if(a!=null&&a.data){const{result:t}=a.data;if(t){e.dnsProto=t.dnsProto,e.manualDnsIp=t.manualDnsIp||[];for(let s=0;sr()),yield c,d();const o=()=>m(this,null,function*(){let a={};switch(e.dnsProto){case"auto":break;case"manual":a.manualDnsIp=[],e.manualDnsIp!=null&&e.manualDnsIp.length>0?a.manualDnsIp=e.manualDnsIp:(a.manualDnsIp.push(u.dns1),u.dns2&&a.manualDnsIp.push(u.dns2));break}a.dnsProto=e.dnsProto,a.interfaceName=e.interfaceName;const t=w.Loading("\u914D\u7F6E\u4E2D...");try{const s=yield y.Guide.DnsConfig.POST(a);if(s!=null&&s.data){const{success:f,error:b}=s==null?void 0:s.data;b&&(l.value=b),(f==null||f==0)&&(l.value="\u914D\u7F6E\u6210\u529F")}}catch(s){l.value=s}t.Close()});return(a,t)=>(p(),D("form",{class:"form-container",onSubmit:k(o,["prevent"])},[E,n("div",A,[_(n("select",{"onUpdate:modelValue":t[0]||(t[0]=s=>e.dnsProto=s)},G,512),[[P,e.dnsProto]])]),e.dnsProto=="manual"?(p(),D(B,{key:0},[M,n("div",U,[_(n("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165 dns \u5730\u5740","onUpdate:modelValue":t[1]||(t[1]=s=>u.dns1=s),required:""},null,512),[[I,u.dns1,void 0,{trim:!0}]])]),q,n("div",j,[_(n("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5907\u7528 dns \u5730\u5740","onUpdate:modelValue":t[2]||(t[2]=s=>u.dns2=s)},null,512),[[I,u.dns2,void 0,{trim:!0}]])])],64)):g("",!0),n("div",L,[n("button",{class:"sumbit",disabled:i.value},"\u4FDD\u5B58",8,O)]),l.value?(p(),D("div",z,[n("span",null,x(l.value),1)])):g("",!0)],40,C))})}});export{K as default}; +var m=(v,c,d)=>new Promise((l,e)=>{var u=o=>{try{r(d.next(o))}catch(a){e(a)}},i=o=>{try{r(d.throw(o))}catch(a){e(a)}},r=o=>o.done?l(o.value):Promise.resolve(o.value).then(u,i);r((d=d.apply(v,c)).next())});import{d as S,s as h,j as F,v as N,o as p,c as D,a as n,x as _,D as P,F as B,A as I,m as g,l as x,B as k,C as y,T as w}from"./index.js?v=bc5d78ec";const C=["onSubmit"],E=n("div",{class:"label-name"},[n("span",null,"DNS\u9009\u9879")],-1),A={class:"label-value"},T=n("option",{value:"auto"},"\u4F7F\u7528\u8FD0\u8425\u5546\u63D0\u4F9B\u7684DNS",-1),V=n("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1),G=[T,V],M=n("div",{class:"label-name"},[n("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1),U={class:"label-value"},q=n("div",{class:"label-name"}," \u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740 ",-1),j={class:"label-value"},L={class:"label-btns"},O=["disabled"],z={key:1,class:"label-msg"},K=S({__name:"index",setup(v){return m(this,null,function*(){let c,d;const l=h(""),e=F({interfaceName:"",dnsProto:"auto",manualDnsIp:[]}),u=F({dns1:"",dns2:""}),i=h(!1),r=()=>m(this,null,function*(){i.value=!0;try{const a=yield y.Guide.DnsConfig.GET();if(a!=null&&a.data){const{result:t}=a.data;if(t){e.dnsProto=t.dnsProto,e.manualDnsIp=t.manualDnsIp||[];for(let s=0;sr()),yield c,d();const o=()=>m(this,null,function*(){let a={};switch(e.dnsProto){case"auto":break;case"manual":a.manualDnsIp=[],e.manualDnsIp!=null&&e.manualDnsIp.length>0?a.manualDnsIp=e.manualDnsIp:(a.manualDnsIp.push(u.dns1),u.dns2&&a.manualDnsIp.push(u.dns2));break}a.dnsProto=e.dnsProto,a.interfaceName=e.interfaceName;const t=w.Loading("\u914D\u7F6E\u4E2D...");try{const s=yield y.Guide.DnsConfig.POST(a);if(s!=null&&s.data){const{success:f,error:b}=s==null?void 0:s.data;b&&(l.value=b),(f==null||f==0)&&(l.value="\u914D\u7F6E\u6210\u529F")}}catch(s){l.value=s}t.Close()});return(a,t)=>(p(),D("form",{class:"form-container",onSubmit:k(o,["prevent"])},[E,n("div",A,[_(n("select",{"onUpdate:modelValue":t[0]||(t[0]=s=>e.dnsProto=s)},G,512),[[P,e.dnsProto]])]),e.dnsProto=="manual"?(p(),D(B,{key:0},[M,n("div",U,[_(n("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165 dns \u5730\u5740","onUpdate:modelValue":t[1]||(t[1]=s=>u.dns1=s),required:""},null,512),[[I,u.dns1,void 0,{trim:!0}]])]),q,n("div",j,[_(n("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5907\u7528 dns \u5730\u5740","onUpdate:modelValue":t[2]||(t[2]=s=>u.dns2=s)},null,512),[[I,u.dns2,void 0,{trim:!0}]])])],64)):g("",!0),n("div",L,[n("button",{class:"sumbit",disabled:i.value},"\u4FDD\u5B58",8,O)]),l.value?(p(),D("div",z,[n("span",null,x(l.value),1)])):g("",!0)],40,C))})}});export{K as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c880c05b.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.7a6e650d.js similarity index 50% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c880c05b.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.7a6e650d.js index dd4a6cc3..4619a5fa 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c880c05b.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.7a6e650d.js @@ -1 +1 @@ -import{_ as r}from"./index.js?v=6248f3bd";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; +import{_ as r}from"./index.js?v=bc5d78ec";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a73fc5f8.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.814bd89b.js similarity index 86% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a73fc5f8.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.814bd89b.js index 80aaf032..3bd7a683 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a73fc5f8.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.814bd89b.js @@ -1 +1 @@ -import{d as a,r as e,o as u,e as r,w as s,b as p}from"./index.js?v=6248f3bd";const m=a({__name:"index",setup(i){const t=[{name:"setting-index",title:"\u529F\u80FD\u4FE1\u606F",path:"/router/setting"},{name:"opkg",title:"\u8F6F\u4EF6\u6E90\u914D\u7F6E",path:"/router/setting/opkg"},{name:"opkg",title:"\u5411\u5BFC\u6A21\u5F0F",path:"/wizard"}];return(_,c)=>{const o=e("router-loading"),n=e("layout-page");return u(),r(n,{menus:t},{default:s(()=>[p(o)]),_:1})}}});export{m as default}; +import{d as a,r as e,o as u,e as r,w as s,b as p}from"./index.js?v=bc5d78ec";const m=a({__name:"index",setup(i){const t=[{name:"setting-index",title:"\u529F\u80FD\u4FE1\u606F",path:"/router/setting"},{name:"opkg",title:"\u8F6F\u4EF6\u6E90\u914D\u7F6E",path:"/router/setting/opkg"},{name:"opkg",title:"\u5411\u5BFC\u6A21\u5F0F",path:"/wizard"}];return(_,c)=>{const o=e("router-loading"),n=e("layout-page");return u(),r(n,{menus:t},{default:s(()=>[p(o)]),_:1})}}});export{m as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.96d54eac.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.82d0adb4.js similarity index 98% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.96d54eac.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.82d0adb4.js index 52c41493..e25c34ca 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.96d54eac.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.82d0adb4.js @@ -1 +1 @@ -var C=(r,h,d)=>new Promise((k,c)=>{var F=l=>{try{E(d.next(l))}catch(v){c(v)}},t=l=>{try{E(d.throw(l))}catch(v){c(v)}},E=l=>l.done?k(l.value):Promise.resolve(l.value).then(F,t);E((d=d.apply(r,h)).next())});import{_ as S,d as w,s as m,j as I,v as N,o,c as n,F as _,a as s,x,D as g,E as y,m as D,l as p,B as T,p as G,q as U,C as A,T as B}from"./index.js?v=6248f3bd";const i=r=>(G("data-v-6bbc1a4d"),r=r(),U(),r),V=["onSubmit"],M=i(()=>s("p",null,"\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)),q={key:0,class:"label-msg warning"},z=i(()=>s("div",{class:"label-value"},null,-1)),L=i(()=>s("div",{class:"label-name"},[s("span",null,"\u72B6\u6001")],-1)),P={class:"label-value"},$=["value"],j=i(()=>s("option",{disabled:"",selected:"true"},"\u83B7\u53D6\u4E2D...",-1)),O=i(()=>s("option",{disabled:"",value:"stopped"},"\u672A\u5F00\u542F",-1)),W=i(()=>s("option",{disabled:"",value:"running"},"\u5F00\u542F\u4E2D",-1)),H=[j,O,W],J={key:0,class:"label-btns"},K=i(()=>s("div",{class:"label-name"},[s("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)),Q={class:"label-value"},R=i(()=>s("option",{value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8",-1)),X=["value"],Y=i(()=>s("div",{class:"label-name"},[s("span",null,"\u76EE\u6807\u5206\u533A\uFF08\u5206\u533A\u5927\u5C0F\u987B\u5927\u4E8E8G\uFF0C\u5C06\u6B64\u5206\u533A\u4F5C\u4E3A\u5916\u90E8 overlay \u4F7F\u7528\uFF09")],-1)),Z={class:"label-value"},uu=i(()=>s("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A",-1)),su=["value","disabled"],tu={key:1,class:"label-btns"},eu=["disabled"],au={key:2,class:"label-msg warning"},ou=w({__name:"index",setup(r){return C(this,null,function*(){let h,d;const k=m(!1),c=m(""),F=m(0),t=I({status:"stopped",diskpath:"",partition:"",sandboxDisks:{disks:[]}}),E=()=>C(this,null,function*(){const b=yield Promise.all([A.Nas.SandboxDisks.GET(),A.Nas.GetSandbox.GET()]);try{const u=b[0];if(u!=null&&u.data){const{result:e,error:a}=u.data;e&&(t.sandboxDisks.disks=e.disks||[]),a&&(c.value=a)}}catch(u){c.value=u,F.value=3}try{const u=b[1];if(u!=null&&u.data){const{result:e}=u.data;e&&(t.status=e.status)}}catch(u){console.log(u)}});[h,d]=N(()=>E()),yield h,d();const l=()=>{t.partition=""},v=()=>C(this,null,function*(){if(confirm("\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E,\u662F\u5426\u7EE7\u7EED?")){const b=B.Loading("\u914D\u7F6E\u4E2D...");try{const u=yield A.Nas.Sandbox.POST({path:t.partition});if(u!=null&&u.data){const{result:e,error:a,success:f}=u.data;a&&B.Warning(a),(u.data.success||0)==0&&B.Success("\u914D\u7F6E\u6210\u529F")}}catch(u){B.Error(`${u}`)}b.Close()}});return(b,u)=>(o(),n("form",{class:"form-container",onSubmit:T(v,["prevent"])},[M,t.sandboxDisks.disks.length==0?(o(),n("div",q," \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 ")):(o(),n(_,{key:1},[z,L,s("div",P,[s("select",{value:t.status,disabled:""},H,8,$)]),F.value==0?(o(),n("div",J,[s("button",{class:"sumbit",type:"button",onClick:u[0]||(u[0]=e=>F.value=1)},"\u914D\u7F6E")])):F.value==1?(o(),n(_,{key:1},[K,s("div",Q,[x(s("select",{"onUpdate:modelValue":u[1]||(u[1]=e=>t.diskpath=e),onChange:l},[R,(o(!0),n(_,null,y(t.sandboxDisks.disks,(e,a)=>(o(),n("option",{value:e.path,key:a},p(e.venderModel)+"\uFF08"+p(e.size)+"\uFF09 ",9,X))),128))],544),[[g,t.diskpath]])]),t.diskpath?(o(),n(_,{key:0},[Y,(o(!0),n(_,null,y(t.sandboxDisks.disks,e=>(o(),n("div",Z,[e.path==t.diskpath?x((o(),n("select",{key:0,"onUpdate:modelValue":u[2]||(u[2]=a=>t.partition=a)},[uu,(o(!0),n(_,null,y(e.childrens,(a,f)=>(o(),n("option",{value:a.path,key:f,disabled:a.sizeInt<8192e6},p(a.name)+"\uFF08"+p(a.filesystem||"\u672A\u683C\u5F0F\u5316")+"\uFF09"+p(a.total),9,su))),128))],512)),[[g,t.partition]]):D("",!0)]))),256))],64)):D("",!0),t.diskpath&&t.partition?(o(),n("div",tu,[s("button",{class:"sumbit",disabled:k.value},"\u4FDD\u5B58",8,eu)])):D("",!0)],64)):D("",!0)],64)),c.value?(o(),n("div",au,p(c.value),1)):D("",!0)],40,V))})}});var lu=S(ou,[["__scopeId","data-v-6bbc1a4d"]]);export{lu as default}; +var C=(r,h,d)=>new Promise((k,c)=>{var F=l=>{try{E(d.next(l))}catch(v){c(v)}},t=l=>{try{E(d.throw(l))}catch(v){c(v)}},E=l=>l.done?k(l.value):Promise.resolve(l.value).then(F,t);E((d=d.apply(r,h)).next())});import{_ as S,d as w,s as m,j as I,v as N,o,c as n,F as _,a as s,x,D as g,E as y,m as D,l as p,B as T,p as G,q as U,C as A,T as B}from"./index.js?v=bc5d78ec";const i=r=>(G("data-v-6bbc1a4d"),r=r(),U(),r),V=["onSubmit"],M=i(()=>s("p",null,"\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)),q={key:0,class:"label-msg warning"},z=i(()=>s("div",{class:"label-value"},null,-1)),L=i(()=>s("div",{class:"label-name"},[s("span",null,"\u72B6\u6001")],-1)),P={class:"label-value"},$=["value"],j=i(()=>s("option",{disabled:"",selected:"true"},"\u83B7\u53D6\u4E2D...",-1)),O=i(()=>s("option",{disabled:"",value:"stopped"},"\u672A\u5F00\u542F",-1)),W=i(()=>s("option",{disabled:"",value:"running"},"\u5F00\u542F\u4E2D",-1)),H=[j,O,W],J={key:0,class:"label-btns"},K=i(()=>s("div",{class:"label-name"},[s("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)),Q={class:"label-value"},R=i(()=>s("option",{value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8",-1)),X=["value"],Y=i(()=>s("div",{class:"label-name"},[s("span",null,"\u76EE\u6807\u5206\u533A\uFF08\u5206\u533A\u5927\u5C0F\u987B\u5927\u4E8E8G\uFF0C\u5C06\u6B64\u5206\u533A\u4F5C\u4E3A\u5916\u90E8 overlay \u4F7F\u7528\uFF09")],-1)),Z={class:"label-value"},uu=i(()=>s("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A",-1)),su=["value","disabled"],tu={key:1,class:"label-btns"},eu=["disabled"],au={key:2,class:"label-msg warning"},ou=w({__name:"index",setup(r){return C(this,null,function*(){let h,d;const k=m(!1),c=m(""),F=m(0),t=I({status:"stopped",diskpath:"",partition:"",sandboxDisks:{disks:[]}}),E=()=>C(this,null,function*(){const b=yield Promise.all([A.Nas.SandboxDisks.GET(),A.Nas.GetSandbox.GET()]);try{const u=b[0];if(u!=null&&u.data){const{result:e,error:a}=u.data;e&&(t.sandboxDisks.disks=e.disks||[]),a&&(c.value=a)}}catch(u){c.value=u,F.value=3}try{const u=b[1];if(u!=null&&u.data){const{result:e}=u.data;e&&(t.status=e.status)}}catch(u){console.log(u)}});[h,d]=N(()=>E()),yield h,d();const l=()=>{t.partition=""},v=()=>C(this,null,function*(){if(confirm("\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E,\u662F\u5426\u7EE7\u7EED?")){const b=B.Loading("\u914D\u7F6E\u4E2D...");try{const u=yield A.Nas.Sandbox.POST({path:t.partition});if(u!=null&&u.data){const{result:e,error:a,success:f}=u.data;a&&B.Warning(a),(u.data.success||0)==0&&B.Success("\u914D\u7F6E\u6210\u529F")}}catch(u){B.Error(`${u}`)}b.Close()}});return(b,u)=>(o(),n("form",{class:"form-container",onSubmit:T(v,["prevent"])},[M,t.sandboxDisks.disks.length==0?(o(),n("div",q," \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 ")):(o(),n(_,{key:1},[z,L,s("div",P,[s("select",{value:t.status,disabled:""},H,8,$)]),F.value==0?(o(),n("div",J,[s("button",{class:"sumbit",type:"button",onClick:u[0]||(u[0]=e=>F.value=1)},"\u914D\u7F6E")])):F.value==1?(o(),n(_,{key:1},[K,s("div",Q,[x(s("select",{"onUpdate:modelValue":u[1]||(u[1]=e=>t.diskpath=e),onChange:l},[R,(o(!0),n(_,null,y(t.sandboxDisks.disks,(e,a)=>(o(),n("option",{value:e.path,key:a},p(e.venderModel)+"\uFF08"+p(e.size)+"\uFF09 ",9,X))),128))],544),[[g,t.diskpath]])]),t.diskpath?(o(),n(_,{key:0},[Y,(o(!0),n(_,null,y(t.sandboxDisks.disks,e=>(o(),n("div",Z,[e.path==t.diskpath?x((o(),n("select",{key:0,"onUpdate:modelValue":u[2]||(u[2]=a=>t.partition=a)},[uu,(o(!0),n(_,null,y(e.childrens,(a,f)=>(o(),n("option",{value:a.path,key:f,disabled:a.sizeInt<8192e6},p(a.name)+"\uFF08"+p(a.filesystem||"\u672A\u683C\u5F0F\u5316")+"\uFF09"+p(a.total),9,su))),128))],512)),[[g,t.partition]]):D("",!0)]))),256))],64)):D("",!0),t.diskpath&&t.partition?(o(),n("div",tu,[s("button",{class:"sumbit",disabled:k.value},"\u4FDD\u5B58",8,eu)])):D("",!0)],64)):D("",!0)],64)),c.value?(o(),n("div",au,p(c.value),1)):D("",!0)],40,V))})}});var lu=S(ou,[["__scopeId","data-v-6bbc1a4d"]]);export{lu as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.831a1f21.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.831a1f21.js deleted file mode 100644 index fa47f194..00000000 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.831a1f21.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o,r as n,o as r,c as t,b as a}from"./index.js?v=6248f3bd";const c={},s={id:"page",class:"page-container"};function _(d,i){const e=n("router-loading");return r(),t("div",s,[a(e)])}var p=o(c,[["render",_]]);export{p as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.7973a978.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.88211d90.js similarity index 99% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.7973a978.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.88211d90.js index 687380ff..3a6fb42d 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.7973a978.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.88211d90.js @@ -1 +1 @@ -var Me=Object.defineProperty,Te=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var he=(e,u,s)=>u in e?Me(e,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[u]=s,vt=(e,u)=>{for(var s in u||(u={}))ze.call(u,s)&&he(e,s,u[s]);if(ve)for(var s of ve(u))Ne.call(u,s)&&he(e,s,u[s]);return e},ht=(e,u)=>Te(e,Le(u));var z=(e,u,s)=>new Promise((o,c)=>{var _=n=>{try{h(s.next(n))}catch(i){c(i)}},f=n=>{try{h(s.throw(n))}catch(i){c(i)}},h=n=>n.done?o(n.value):Promise.resolve(n.value).then(_,f);h((s=s.apply(e,u)).next())});import{d as I,M as Oe,s as g,r as Zt,o as a,c as d,a as t,m as w,b as B,w as V,l as F,F as N,E as tt,N as Lt,_ as S,a4 as dt,C as P,T as A,Y as qe,p as q,q as H,$ as J,Z as bt,X as lt,a5 as wt,e as L,i as R,x as T,a2 as ye,A as Y,B as it,a6 as ut,a7 as He,D as Et,z as K,G as jt,g as Z,Q as De,j as mt,a0 as Ue,h as Ot,U as Xt,u as ke,P as ot,a8 as we,a9 as Re,aa as Fe,I as Ge,O as We,ab as Ze,ac as je,y as at,ad as Xe}from"./index.js?v=6248f3bd";import{c as Ye,i as Ft}from"./chunk.6d3585bb.js";import{u as Qe,i as Ke,b as Je,c as tu,d as eu,e as uu,f as su,g as nu,G as Ut,F as ou,a as au}from"./chunk.af55284f.js";var iu="/luci-static/istorex/logo.png?v=d233e332",lu="/luci-static/istorex/task.svg?v=f6a42032",cu="/luci-static/istorex/safari.svg?v=1bf8526f",du="/luci-static/istorex/setup.svg?v=69c7a200",ru="/luci-static/istorex/logout.svg?v=e9e539f8",Wt={exports:{}};(function(e,u){(function(s,o){var c={};s.PubSub?(c=s.PubSub,console.warn("PubSub already loaded, using existing version")):(s.PubSub=c,o(c)),e!==void 0&&e.exports&&(u=e.exports=c),u.PubSub=c,e.exports=u=c})(typeof window=="object"&&window||Ye,function(s){var o={},c=-1,_="*";function f(l){var E;for(E in l)if(Object.prototype.hasOwnProperty.call(l,E))return!0;return!1}function h(l){return function(){throw l}}function n(l,E,v){try{l(E,v)}catch(C){setTimeout(h(C),0)}}function i(l,E,v){l(E,v)}function r(l,E,v,C){var k=o[E],$=C?i:n,y;if(!!Object.prototype.hasOwnProperty.call(o,E))for(y in k)Object.prototype.hasOwnProperty.call(k,y)&&$(k[y],l,v)}function m(l,E,v){return function(){var k=String(l),$=k.lastIndexOf(".");for(r(l,l,E,v);$!==-1;)k=k.substr(0,$),$=k.lastIndexOf("."),r(l,k,E,v);r(l,_,E,v)}}function b(l){var E=String(l),v=Boolean(Object.prototype.hasOwnProperty.call(o,E)&&f(o[E]));return v}function D(l){for(var E=String(l),v=b(E)||b(_),C=E.lastIndexOf(".");!v&&C!==-1;)E=E.substr(0,C),C=E.lastIndexOf("."),v=b(E);return v}function p(l,E,v,C){l=typeof l=="symbol"?l.toString():l;var k=m(l,E,C),$=D(l);return $?(v===!0?k():setTimeout(k,0),!0):!1}s.publish=function(l,E){return p(l,E,!1,s.immediateExceptions)},s.publishSync=function(l,E){return p(l,E,!0,s.immediateExceptions)},s.subscribe=function(l,E){if(typeof E!="function")return!1;l=typeof l=="symbol"?l.toString():l,Object.prototype.hasOwnProperty.call(o,l)||(o[l]={});var v="uid_"+String(++c);return o[l][v]=E,v},s.subscribeAll=function(l){return s.subscribe(_,l)},s.subscribeOnce=function(l,E){var v=s.subscribe(l,function(){s.unsubscribe(v),E.apply(this,arguments)});return s},s.clearAllSubscriptions=function(){o={}},s.clearSubscriptions=function(E){var v;for(v in o)Object.prototype.hasOwnProperty.call(o,v)&&v.indexOf(E)===0&&delete o[v]},s.countSubscriptions=function(E){var v,C,k=0;for(v in o)if(Object.prototype.hasOwnProperty.call(o,v)&&v.indexOf(E)===0){for(C in o[v])k++;break}return k},s.getSubscriptions=function(E){var v,C=[];for(v in o)Object.prototype.hasOwnProperty.call(o,v)&&v.indexOf(E)===0&&C.push(v);return C},s.unsubscribe=function(l){var E=function(M){var O;for(O in o)if(Object.prototype.hasOwnProperty.call(o,O)&&O.indexOf(M)===0)return!0;return!1},v=typeof l=="string"&&(Object.prototype.hasOwnProperty.call(o,l)||E(l)),C=!v&&typeof l=="string",k=typeof l=="function",$=!1,y,x,G;if(v){s.clearSubscriptions(l);return}for(y in o)if(Object.prototype.hasOwnProperty.call(o,y)){if(x=o[y],C&&x[l]){delete x[l],$=l;break}if(k)for(G in x)Object.prototype.hasOwnProperty.call(x,G)&&x[G]===l&&(delete x[G],$=!0)}return $}})})(Wt,Wt.exports);var Be=Wt.exports;const ct=e=>(q("data-v-342ca842"),e=e(),H(),e),_u={class:"header"},pu=ct(()=>t("img",{src:iu,alt:"logo"},null,-1)),vu={class:"menu"},hu=ct(()=>t("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)),Fu=ct(()=>t("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1)),mu=[hu,Fu],fu={class:"task"},Eu={key:0,class:"dropdown-container"},Cu={class:"title"},$u=ct(()=>t("span",null,"\u5B89\u88C5\u4EFB\u52A1",-1)),gu=ct(()=>t("div",{class:"auto"},null,-1)),bu={class:"dropdown-container_menus"},yu={class:"dropdown-menu_item"},Du=ct(()=>t("div",{class:"auto"},null,-1)),ku={class:"status"},wu={key:0},Bu={key:1},Au={class:"btn"},xu=ct(()=>t("span",null," \u5B89\u88C5\u4E2D ",-1)),Su={class:"wizard"},Iu={key:0,class:"dropdown-container",style:{width:"140px"}},Vu=ct(()=>t("h2",{class:"title"},"\u5207\u6362\u5411\u5BFC\u6A21\u5F0F",-1)),Pu=ct(()=>t("a",{href:"/cgi-bin/luci/admin/quickstart/"},[t("img",{width:"28",height:"28",title:"\u5207\u6362\u81F3\u666E\u901A\u7248\u672C",src:du,alt:"setup"})],-1)),Mu=ct(()=>t("a",{href:"/cgi-bin/luci/admin/logout"},[t("img",{width:"28",height:"28",title:"\u6CE8\u9500",src:ru,alt:"logout"})],-1)),Tu=I({__name:"index",setup(e){const u=Oe(),s=C=>i.value.indexOf(C)!=-1,o=C=>r.value.indexOf(C)!=-1,c=()=>{const C=dt.global.locale==="en"?"zh":"en";localStorage.setItem("i18n",C),dt.global.locale=C,Be.publish("changeLocale",C)},_=g(!1),f=g(!1),h=g(!1),n=g([]),i=g([]),r=g([]),m=()=>z(this,null,function*(){try{const C=yield P.Quickstart.SetupResult.GET();if(C.data){const{result:k,error:$}=C.data;C.data.success==0&&k&&(n.value=k.packages||[],i.value=k.success||[],r.value=k.failed||[])}}catch(C){console.log(C)}});let b=!1;setTimeout(()=>z(this,null,function*(){yield m(),localStorage.getItem("nas_guide_init")&&(b=!0,_.value=!0)}),1e3);const D=()=>z(this,null,function*(){h.value||(yield l("router"))}),p=()=>z(this,null,function*(){h.value||(yield l("next-nas"))}),l=C=>z(this,null,function*(){h.value=!0;try{const k=yield P.Istorex.Updata.POST({model:C});if(A.Success("\u64CD\u4F5C\u6210\u529F"),k.data){const{success:$,error:y}=k.data;if(y)throw y;$===0&&u.push({path:`/${C}`})}}catch(k){A.Error(`${k}`)}finally{h.value=!1}}),E=()=>{_.value=!1,b&&localStorage.removeItem("nas_guide_init")},v=()=>{qe.autoSetup.Open()};return(C,k)=>{const $=Zt("icon-loading");return a(),d("div",_u,[pu,t("div",vu,[(a(),d("svg",{class:"i18n",onClick:c,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},mu)),t("div",fu,[t("img",{onClick:k[0]||(k[0]=y=>_.value=!_.value),width:"28",height:"28",title:"\u5B89\u88C5\u4EFB\u52A1\u8FDB\u5EA6",src:lu,alt:"logo"}),_.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:E})):w("",!0),B(Lt,null,{default:V(()=>[_.value?(a(),d("div",Eu,[t("h2",Cu,[$u,t("span",null,"("+F(i.value.length+r.value.length+"/"+n.value.length)+")",1),gu,t("a",{onClick:v},"\u67E5\u770B\u65E5\u5FD7")]),t("div",bu,[(a(!0),d(N,null,tt(n.value,y=>(a(),d("div",yu,[t("span",null,F(y),1),Du,t("div",ku,[s(y)?(a(),d("span",wu," \u6210\u529F ")):o(y)?(a(),d("span",Bu," \u5931\u8D25 ")):(a(),d(N,{key:2},[t("div",Au,[B($)]),xu],64))])]))),256))])])):w("",!0)]),_:1})]),t("div",Su,[t("img",{onClick:k[1]||(k[1]=y=>f.value=!f.value),width:"28",height:"28",title:"\u5411\u5BFC\u6A21\u5F0F",src:cu,alt:"safari"}),f.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:k[2]||(k[2]=y=>f.value=!1)})):w("",!0),B(Lt,{name:"fade"},{default:V(()=>[f.value?(a(),d("div",Iu,[Vu,t("div",{class:"dropdown-menu_item",style:{"margin-bottom":"8px"},onClick:D}," \u8DEF\u7531\u6A21\u5F0F "),t("div",{class:"dropdown-menu_item",onClick:p},"NAS\u6A21\u5F0F")])):w("",!0)]),_:1})]),Pu,Mu])])}}});var Lu=S(Tu,[["__scopeId","data-v-342ca842"]]);const zu={},Nu={class:"SearchBar"},Ou=["placeholder"];function qu(e,u){return a(),d("div",Nu,[t("input",{placeholder:e.$t("\u5E94\u7528\u641C\u7D22")},null,8,Ou)])}var Hu=S(zu,[["render",qu],["__scopeId","data-v-a531abbc"]]);const Uu={class:"widget"},Ru={key:0,class:"title"},Gu=I({__name:"index",props:{title:{},height:{},maxHeight:{},contentStyle:{}},setup(e){const u=e;return(s,o)=>(a(),d("div",Uu,[t("div",{style:J(`height: ${u.height};max-height:${u.maxHeight}`)},[u.title?(a(),d("span",Ru,F(u.title),1)):w("",!0),t("div",{style:J(u.contentStyle)},[bt(s.$slots,"default",{},void 0,!0)],4)],4)]))}});var ft=S(Gu,[["__scopeId","data-v-261e10c6"]]);const Wu={},Zu={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"},ju=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),Xu=[ju];function Yu(e,u){return a(),d("svg",Zu,Xu)}var Qu=S(Wu,[["render",Yu]]);const Ku=e=>(q("data-v-664f08dd"),e=e(),H(),e),Ju={id:"actioner"},ts={key:0,class:"action-container"},es={class:"action-container_header"},us=Ku(()=>t("div",null,null,-1)),ss={class:"title"},ns={class:"action-container_body"},os=I({__name:"index",props:{Close:{type:Function},type:{type:Number},title:String},setup(e){const u=e,s=g(!1);lt(()=>{s.value=!0,document.body.setAttribute("lock-scroll","true")}),wt(()=>{document.body.removeAttribute("lock-scroll")});const o=()=>{u.Close&&(s.value=!1,setTimeout(()=>{u.Close&&u.Close()},300))};return(c,_)=>(a(),d("div",Ju,[t("div",{class:"bg",onClick:o}),e.type!=null?bt(c.$slots,"default",{key:0},void 0,!0):(a(),d(N,{key:1},[s.value?(a(),d("div",ts,[t("div",es,[us,t("div",ss,F(e.title),1),t("button",{class:"close",title:"\u5173\u95ED",onClick:o},[B(Qu)])]),t("div",ns,[bt(c.$slots,"default",{},void 0,!0)])])):w("",!0)],64))]))}});var as=S(os,[["__scopeId","data-v-664f08dd"]]);const st=I({__name:"modal",props:{Close:{type:Function},type:{type:Number},title:String},setup(e){return(u,s)=>(a(),L(as,{Close:e.Close,type:e.type,title:e.title},{default:V(()=>[bt(u.$slots,"default")]),_:3},8,["Close","type","title"]))}}),is={},ls={t:"1649907260906",viewBox:"-8 248 1042 530",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2793","xmlns:xlink":"http://www.w3.org/1999/xlink"},cs=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),ds=[cs];function rs(e,u){return a(),d("svg",ls,ds)}var _s=S(is,[["render",rs]]);const ps={},vs={t:"1649907515643",viewBox:"-8 248 1042 530",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2971","xmlns:xlink":"http://www.w3.org/1999/xlink"},hs=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),Fs=[hs];function ms(e,u){return a(),d("svg",vs,Fs)}var fs=S(ps,[["render",ms]]);const Es={class:"checkbox_switch_on"},Cs={class:"checkbox_switch_off"},$s=I({__name:"index",props:{modelValue:{type:Boolean,required:!0},height:{type:String,default:"100%"}},emits:["update:modelValue"],setup(e,{emit:u}){const s=e,o=R({get:()=>s.modelValue.valueOf(),set:c=>u("update:modelValue",c)});return(c,_)=>(a(),d("label",{class:"checkbox_switch",style:J({height:e.height})},[T(t("input",{type:"checkbox","onUpdate:modelValue":_[0]||(_[0]=f=>o.value=f)},null,512),[[ye,o.value]]),t("span",Es,[B(_s)]),t("span",Cs,[B(fs)]),bt(c.$slots,"default",{},void 0,!0)],4))}});var gs=S($s,[["__scopeId","data-v-1b6cddbc"]]);const Q=e=>(q("data-v-76799e09"),e=e(),H(),e),bs=["onSubmit"],ys=Q(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u5185\u7F51\u914D\u7F6E")],-1)),Ds={class:"actioner-dns_body"},ks={class:"label-item"},ws=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5730\u5740")],-1)),Bs={class:"label-item_value"},As={class:"label-item"},xs=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5B50\u7F51\u63A9\u7801")],-1)),Ss={class:"label-item_value"},Is={key:0,class:"chose_dhcp"},Vs={key:0,class:"dhcp_info"},Ps={key:1,class:"dhcp_info"},Ms={class:"label-item"},Ts=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1)),Ls={class:"label-item_value"},zs={class:"label-item"},Ns=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1)),Os={class:"label-item_value"},qs={class:"actioner-dns_footer"},Hs=["disabled"],Us={key:1,class:"actioner-dns"},Rs=Q(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u66F4\u6362\u914D\u7F6E")],-1)),Gs={class:"actioner-dns_body"},Ws={key:0,class:"setting_status"},Zs=Q(()=>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)),js=Q(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u6210\u529F",-1)),Xs=["href"],Ys={key:1,class:"setting_status"},Qs=Q(()=>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)),Ks=Q(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u5931\u8D25",-1)),Js=Q(()=>t("p",null,"\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E",-1)),tn={key:2,class:"setting_status"},en=Q(()=>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)),un=Q(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u8D85\u65F6",-1)),sn=Q(()=>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)),nn=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0),o=g({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""});g("");const c=g(!1);g(!0),g(!1);const _=g(""),f=g(2),h=g(!1),n=g("timeout");let i=!0;(()=>{P.Guide.GetLan.GET().then(l=>{l.data.result&&(h.value=l.data.result.enableDhcp||!1,l.data.result.enableDhcp=!1,o.value=l.data.result,l.data.result.lanIp!==location.hostname&&(i=!1))})})();const m=()=>{const l=o.value;if(!Ft.isValidIPv4(l.lanIp)){A.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!Ft.isValidMask(l.netMask)){A.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}const E=Ft.calcMaskRange(l.lanIp,l.netMask);l.dhcpStart=E[0],l.dhcpEnd=E[1],o.value=l},b=()=>{const l=o.value;if(!Ft.isValidIPv4(l.lanIp)){A.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!Ft.isValidMask(l.netMask)){A.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(l.enableDhcp&&!(Ft.isValidIPv4(l.dhcpStart)&&Ft.isValidIPv4(l.dhcpEnd)&&Ft.isValidMaskRange(l.lanIp,l.netMask,l.dhcpStart,l.dhcpEnd))){A.Warning("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const E=A.Loading("\u6B63\u5728\u914D\u7F6E\u2026\u8BF7\u7A0D\u7B49",30);let v=0;const C=$=>{n.value=$,s.value=1,v=1,E.Close()},k=()=>{const $=new Date().getTime()+3e4,y=i?location.protocol+"//"+l.lanIp+(location.port?":"+location.port:""):location.origin,x=y+"/luci-static/resources/icons/loading.gif",G=()=>{v==0&&(new Date().getTime()>$?C("timeout"):window.setTimeout(O,2e3))},M=()=>{v==0&&(_.value=y+location.pathname,C("success"),window.setTimeout(()=>{f.value=1},1e3),window.setTimeout(()=>{location.href=_.value},2e3))},O=()=>{if(v!=0)return;console.log("check online ",x);const nt=new Image;nt.onload=M,nt.onerror=G,nt.src=x};window.setTimeout(O,5e3)};P.Guide.LanIp.POST(l).then($=>{var y;if($!=null&&$.data){if(($.data.success||0)==0)return;if((y=$.data)!=null&&y.error)throw $.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch($=>{v==0&&(C("fail"),A.Error($))}),k(),window.setTimeout(()=>{v==0&&C("timeout")},3e4)},D=l=>{l.preventDefault(),u.Close&&u.Close()},p=l=>{location.reload()};return(l,E)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[s.value==0?(a(),d("form",{key:0,class:"actioner-dns",onSubmit:it(b,["prevent"])},[ys,t("div",Ds,[t("div",ks,[ws,t("div",Bs,[T(t("input",{type:"text",placeholder:"192.168.100.1",required:"","onUpdate:modelValue":E[0]||(E[0]=v=>o.value.lanIp=v),onChange:m},null,544),[[Y,o.value.lanIp,void 0,{trim:!0}]])])]),t("div",As,[xs,t("div",Ss,[T(t("input",{type:"text",placeholder:"255.255.255.0",required:"","onUpdate:modelValue":E[1]||(E[1]=v=>o.value.netMask=v),onChange:m},null,544),[[Y,o.value.netMask,void 0,{trim:!0}]])])]),h.value?(a(),d("div",Is,[B(gs,{modelValue:o.value.enableDhcp,"onUpdate:modelValue":E[2]||(E[2]=v=>o.value.enableDhcp=v)},{default:V(()=>[o.value.enableDhcp?(a(),d("span",Vs,"\u4FEE\u6539DHCP\u670D\u52A1")):(a(),d("span",Ps,"\u4FDD\u6301DHCP\u670D\u52A1\u8BBE\u7F6E"))]),_:1},8,["modelValue"])])):w("",!0),o.value.enableDhcp?(a(),d(N,{key:1},[t("div",Ms,[Ts,t("div",Ls,[T(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":E[3]||(E[3]=v=>o.value.dhcpStart=v)},null,512),[[Y,o.value.dhcpStart,void 0,{trim:!0}]])])]),t("div",zs,[Ns,t("div",Os,[T(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":E[4]||(E[4]=v=>o.value.dhcpEnd=v)},null,512),[[Y,o.value.dhcpEnd,void 0,{trim:!0}]])])])],64)):w("",!0)]),t("div",qs,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:c.value}," \u786E\u8BA4 ",8,Hs),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:D}," \u53D6\u6D88 ")])],40,bs)):s.value==1?(a(),d("div",Us,[Rs,t("div",Gs,[n.value=="success"?(a(),d("div",Ws,[Zs,js,t("a",{href:_.value,class:"NewAdress"},F(f.value)+"s\u540E \u8DF3\u8F6C\u65B0\u5730\u5740",9,Xs)])):n.value=="fail"?(a(),d("div",Ys,[Qs,Ks,Js,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p}," \u6211\u77E5\u9053\u4E86 ")])):n.value=="timeout"?(a(),d("div",tn,[en,un,sn,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p}," \u5237\u65B0\u9875\u9762 ")])):w("",!0)])])):w("",!0)]),_:1},8,["Close"]))}});var on=S(nn,[["__scopeId","data-v-76799e09"]]);const me=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(on,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}};const yt=e=>(q("data-v-95c09170"),e=e(),H(),e),an=["onSubmit"],ln=yt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),cn={class:"actioner-dns_body"},dn={class:"label-item"},rn=yt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u9009\u9879")],-1)),_n={class:"label-item_value"},pn=["disabled"],vn=yt(()=>t("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1)),hn={class:"label-item"},Fn=yt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1)),mn={class:"label-item_value"},fn=["onUpdate:modelValue"],En=yt(()=>t("div",{class:"label-item_key"},"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740",-1)),Cn={class:"label-item_value"},$n=["onUpdate:modelValue"],gn={key:1,class:"label-message"},bn={class:"actioner-dns_footer"},yn=["disabled"],Dn={key:1,class:"actioner-dns"},kn=yt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),wn=yt(()=>t("div",{class:"actioner-dns_body"},[t("div",{class:"config-message"},"DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")],-1)),Bn=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0),o=He(),c=o.status,_=R(()=>o.status.proto!="static"),f=()=>{let D=c.dnsList||[];for(D=D.filter(p=>p);D.length<2;)D.push("");return D},h=g({interfaceName:c.defaultInterface||"",dnsProto:c.dnsProto||"manual",manualDnsIp:f()}),n=g(""),i=g(!1),r=()=>z(this,null,function*(){n.value="";let D={};switch(h.value.dnsProto){case"auto":break;case"manual":if(D.manualDnsIp=[],!h.value.manualDnsIp[0]){A.Error("\u81F3\u5C11\u9700\u8981\u586B\u5199\u4E00\u4E2ADNS");return}D.manualDnsIp=h.value.manualDnsIp.filter(l=>l);break}D.dnsProto=h.value.dnsProto,D.interfaceName=h.value.interfaceName;const p=A.Loading("\u914D\u7F6E\u4E2D...");try{const l=yield P.Guide.DnsConfig.POST(D);if(l!=null&&l.data){const{success:E,error:v}=l==null?void 0:l.data;v&&(n.value=v),(E==null||E==0)&&(A.Success("\u914D\u7F6E\u6210\u529F"),s.value=1)}}catch(l){n.value=l}p.Close()}),m=D=>{D.preventDefault(),u.Close&&u.Close()},b=D=>{location.reload()};return(D,p)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[s.value==0?(a(),d("form",{key:0,class:"actioner-dns",onSubmit:it(r,["prevent"])},[ln,t("div",cn,[t("div",dn,[rn,t("div",_n,[T(t("select",{"onUpdate:modelValue":p[0]||(p[0]=l=>h.value.dnsProto=l)},[t("option",{value:"auto",disabled:!_.value}," \u81EA\u52A8\u83B7\u53D6DNS ",8,pn),vn],512),[[Et,h.value.dnsProto]])])]),h.value.dnsProto=="manual"?(a(!0),d(N,{key:0},tt(h.value.manualDnsIp,(l,E)=>(a(),d("div",hn,[E==0?(a(),d(N,{key:0},[Fn,t("div",mn,[T(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740",required:"","onUpdate:modelValue":v=>h.value.manualDnsIp[E]=v},null,8,fn),[[Y,h.value.manualDnsIp[E],void 0,{trim:!0}]])])],64)):(a(),d(N,{key:1},[En,t("div",Cn,[T(t("input",{type:"text",placeholder:"\u5907\u7528DNS\u5730\u5740","onUpdate:modelValue":v=>h.value.manualDnsIp[E]=v},null,8,$n),[[Y,h.value.manualDnsIp[E],void 0,{trim:!0}]])])],64))]))),256)):w("",!0),n.value?(a(),d("div",gn,F(n.value),1)):w("",!0)]),t("div",bn,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:i.value}," \u786E\u8BA4 ",8,yn),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:m}," \u53D6\u6D88 ")])],40,an)):s.value==1?(a(),d("div",Dn,[kn,wn,t("div",{class:"actioner-dns_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:b}," \u5B8C\u6210 ")])])):w("",!0)]),_:1},8,["Close"]))}});var An=S(Bn,[["__scopeId","data-v-95c09170"]]);const fe=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(An,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}},xn={},Sn={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"},In=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),Vn=[In];function Pn(e,u){return a(),d("svg",Sn,Vn)}var rt=S(xn,[["render",Pn]]);const et=e=>(q("data-v-5141058a"),e=e(),H(),e),Mn={key:0,class:"actioner-dns"},Tn=et(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")],-1)),Ln={class:"actioner-dns_body"},zn=et(()=>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)),Nn={key:0,class:"disk_loading_icon"},On=et(()=>t("span",{class:"disk_loading_info"},"\u6B63\u5728\u52A0\u8F7D\u4E2D...",-1)),qn={key:1,class:"disk_tips"},Hn=et(()=>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)),Un={class:"label-item"},Rn=et(()=>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)),Gn={class:"label-item_value"},Wn=et(()=>t("option",{value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8",-1)),Zn=["value"],jn={class:"label-item"},Xn=et(()=>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)),Yn={class:"label-item_value"},Qn=et(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A",-1)),Kn=["value","disabled"],Jn={class:"sandbox_tips"},to=et(()=>t("span",null,"\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E",-1)),eo={class:"sandbox_info timeout"},uo=et(()=>t("p",{class:"sandbox_roboot_tips"},[K(" \u7B49\u5F85\u8BBE\u5907\u91CD\u542F\uFF0C\u91CD\u542F\u5B8C\u6210\u540E"),t("span",{class:"sandbox_roboot_refresh"},"\u8BF7\u5237\u65B0\u754C\u9762")],-1)),so={key:0,class:"actioner-dns_footer"},no=["disabled"],oo={key:1,class:"actioner-tips"},ao=et(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u6E29\u99A8\u63D0\u793A")],-1)),io=et(()=>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)),lo={key:2,class:"actioner-tips"},co=et(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u9519\u8BEF")],-1)),ro={class:"actioner-tips_body"},_o={class:"sandbox_info"},po=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0);g("disk");const o=g(""),c=g(3),_=g(""),f=g([]),h=g(""),n=g(null);(()=>{P.Nas.SandboxDisks.GET().then(v=>{var C;if(v!=null&&v.data&&(C=v.data)!=null&&C.result){n.value=v.data.result;return}throw"\u52A0\u8F7D\u78C1\u76D8\u4FE1\u606F\u5931\u8D25"}).catch(v=>{o.value=v,s.value=3})})();const r=()=>request.System.Reboot.POST({name:_.value,path:h.value}).then(v=>{var C;if(!(v!=null&&v.data&&(((C=v==null?void 0:v.data)==null?void 0:C.success)||0)==0))throw"\u672A\u77E5\u9519\u8BEF"}),m=v=>{var C,k;h.value="",f.value=_.value&&((k=(C=n.value)==null?void 0:C.disks.find($=>$.path==_.value))==null?void 0:k.childrens)||[]},b=()=>{c.value>0&&(c.value-=1,window.setTimeout(b,1e3))},D=v=>{v.preventDefault(),u.Close&&u.Close()},p=()=>{new Promise((v,C)=>{const k="/luci-static/resources/icons/loading.gif",$=()=>{window.setTimeout(y,2e3)},y=()=>{const x=new Image;x.onload=v,x.onerror=$,x.src=k};window.setTimeout(y,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},l=v=>{const C=A.Loading("\u914D\u7F6E\u6C99\u7BB1\u91CD\u542F\u4E2D...");request.Nas.Sandbox.POST({path:h.value}).then(k=>{var $;if(k!=null&&k.data){if((k.data.success||0)==0)return s.value=2,window.setTimeout(b,1e3),r();if(($=k.data)!=null&&$.error)throw k.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).then(p).catch(k=>A.Warning(k)).finally(()=>C.Close())},E=()=>{s.value=0};return(v,C)=>{const k=Zt("icon-loading");return a(),L(st,{Close:e.Close,type:1},{default:V(()=>[s.value==0||s.value==2?(a(),d("div",Mn,[Tn,t("div",Ln,[zn,s.value==0?(a(),d(N,{key:0},[n.value?w("",!0):(a(),d("div",Nn,[B(k,{size:38,color:"currentColor"}),On])),n.value&&n.value.disks.length==0?(a(),d("div",qn,[B(rt),Hn])):w("",!0),n.value&&n.value.disks.length>0?(a(),d(N,{key:2},[t("div",Un,[Rn,t("div",Gn,[T(t("select",{name:"",id:"",onChange:m,"onUpdate:modelValue":C[0]||(C[0]=$=>_.value=$)},[Wn,(a(!0),d(N,null,tt(n.value.disks,($,y)=>(a(),d("option",{value:$.path,key:y},F($.venderModel)+"\uFF08"+F($.size)+"\uFF09 ",9,Zn))),128))],544),[[Et,_.value]])])]),t("div",jn,[Xn,t("div",Yn,[T(t("select",{name:"",id:"","onUpdate:modelValue":C[1]||(C[1]=$=>h.value=$)},[Qn,(a(!0),d(N,null,tt(f.value,($,y)=>(a(),d("option",{value:$.path,key:y,disabled:$.sizeInt<(1<<30)*1||$.isSystemRoot},F($.name)+"\uFF08"+F($.filesystem||"\u672A\u683C\u5F0F\u5316")+"\uFF09"+F($.total),9,Kn))),128))],512),[[Et,h.value]])])]),t("div",Jn,[B(rt),to])],64)):w("",!0)],64)):w("",!0),s.value==2?(a(),d(N,{key:1},[t("p",eo,[K(" \u5373\u5C06\u91CD\u542F\u8BBE\u5907 "),t("span",null,"\uFF08"+F(c.value)+"s\uFF09",1)]),uo],64)):w("",!0)]),s.value==0?(a(),d("div",so,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:!h.value,onClick:C[2]||(C[2]=$=>s.value=1)}," \u5F00\u542F\u6C99\u7BB1 ",8,no),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:D}," \u53D6\u6D88 ")])):w("",!0)])):w("",!0),s.value==1?(a(),d("div",oo,[ao,io,t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:l}," \u7EE7\u7EED "),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:E}," \u53D6\u6D88 ")])])):w("",!0),s.value==3?(a(),d("div",lo,[co,t("div",ro,[t("p",_o,F(o.value),1)]),t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:E}," \u53D6\u6D88 ")])])):w("",!0)]),_:1},8,["Close"])}}});var vo=S(po,[["__scopeId","data-v-5141058a"]]);const ho=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(vo,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}},Fo={},mo={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"},fo=jt('icon_finished',2),Eo=[fo];function Co(e,u){return a(),d("svg",mo,Eo)}var Yt=S(Fo,[["render",Co]]);const Bt=e=>(q("data-v-5cf1870c"),e=e(),H(),e),$o=["onSubmit"],go=Bt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),bo={class:"actioner-dns_body"},yo={class:"label-item"},Do=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5F53\u524D\u8F6F\u4EF6\u6E90")],-1)),ko={class:"label-item_value"},wo={class:"item_info"},Bo={class:"label-item"},Ao=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5207\u6362\u8F6F\u4EF6\u6E90")],-1)),xo={class:"label-item_value"},So=Bt(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u8F6F\u4EF6\u6E90",-1)),Io=["value"],Vo={class:"actioner-dns_footer"},Po=["disabled"],Mo={key:1,class:"actioner-dns"},To=Bt(()=>t("div",{class:"actioner-dns_header"},[t("span",{class:"softsource_tit"},"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),Lo={class:"actioner-dns_body"},zo={class:"finished"},No=Bt(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),Oo=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0),o=g(""),c=g(),_=g();(()=>{P.Guide.SoftSourceList.GET().then(r=>{var m,b;if((m=r==null?void 0:r.data)!=null&&m.result){const D=(b=r==null?void 0:r.data)==null?void 0:b.result;_.value=D}}).then(()=>P.Guide.GetSoftSource.GET()).then(r=>{var m,b;if((m=r==null?void 0:r.data)!=null&&m.result){const D=r.data.result;c.value=D.softSource,(b=_.value)!=null&&b.softSourceList.find(p=>p.identity==D.softSource.identity)&&(o.value=D.softSource.identity)}})})();const h=r=>{r.preventDefault(),u.Close&&u.Close()},n=r=>{const m=A.Loading("\u6B63\u5728\u5207\u6362\u4E2D...");request.Guide.SoftSource.POST({softSourceIdentity:o.value}).then(b=>{if(b!=null&&b.data){if((b.data.success||0)==0){s.value=1;return}else if(b.data.error)throw b.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(b=>{A.Error(b)}).finally(()=>m.Close())},i=r=>{r.preventDefault(),location.reload()};return(r,m)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>{var b,D;return[s.value==0?(a(),d("form",{key:0,class:"actioner-dns",onSubmit:it(n,["prevent"])},[go,t("div",bo,[t("div",yo,[Do,t("div",ko,[t("p",wo,F((b=c.value)==null?void 0:b.name),1)])]),t("div",Bo,[Ao,t("div",xo,[T(t("select",{name:"",id:"","onUpdate:modelValue":m[0]||(m[0]=p=>o.value=p)},[So,(a(!0),d(N,null,tt((D=_.value)==null?void 0:D.softSourceList,(p,l)=>(a(),d("option",{value:p.identity,key:l},F(p.name),9,Io))),128))],512),[[Et,o.value,void 0,{trim:!0}]])])])]),t("div",Vo,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:o.value==""}," \u786E\u8BA4 ",8,Po),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:h}," \u53D6\u6D88 ")])],40,$o)):w("",!0),s.value==1?(a(),d("form",Mo,[To,t("div",Lo,[t("div",zo,[B(Yt)]),No,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply softsource_successed",onClick:i}," \u786E\u5B9A ")])])])):w("",!0)]}),_:1},8,["Close"]))}});var qo=S(Oo,[["__scopeId","data-v-5cf1870c"]]);const Ee=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(qo,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}};const Ho={class:"utilities"},Uo=I({__name:"index",setup(e){const u=g(!1),s=g(),o=()=>{window.location.href="/cgi-bin/luci/admin/system/ota"},c=()=>{s.value.status=="unsupport"&&alert("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u6C99\u7BB1\u6A21\u5F0F"),s.value.status=="stopped"&&ho()},_=()=>z(this,null,function*(){try{if((yield P.Quickstart.Guide.GlobalFolders.GET()).status!==200)return}catch(i){console.log(i);return}u.value=!0;try{const i=yield P.Storage.Get.POST({key:"nas_guide_init"});if(i.data){const{success:r,error:m,result:b}=i.data;if(b&&b.key=="nas_guide_init")return}}catch(i){return}f()}),f=()=>{if(!u.value){A.Warning("\u8BF7\u5148\u66F4\u65B0\u7CFB\u7EDF\u5230\u6700\u65B0\u7248\u672C");return}De.OpenGuideWindow()},h=()=>{var i,r,m,b;window.open(`${(r=(i=window.quickstart_configs)==null?void 0:i.ttyd)!=null&&r.ssl?"https":"http"}://${window.location.hostname}:${((b=(m=window.quickstart_configs)==null?void 0:m.ttyd)==null?void 0:b.port)||7681}/`,"_blank")};return(()=>{P.Nas.GetSandbox.GET().then(i=>{var r;console.log("getSandBox",i),(r=i==null?void 0:i.data)!=null&&r.result&&(s.value=i.data.result)}).catch(i=>A.Warning(i))})(),_(),(i,r)=>(a(),L(ft,{title:i.$t("\u5E38\u7528\u5DE5\u5177")},{default:V(()=>{var m;return[t("div",Ho,[t("div",{onClick:h},[t("span",null,"\u300B"+F(i.$t("\u7EC8\u7AEF")),1)]),t("div",{onClick:o},[t("span",null,F(i.$t("\u56FA\u4EF6\u66F4\u65B0")),1)]),t("div",{onClick:r[0]||(r[0]=(...b)=>Z(me)&&Z(me)(...b))},[t("span",null,F(i.$t("\u5185\u7F51\u914D\u7F6E")),1)]),t("div",{onClick:r[1]||(r[1]=(...b)=>Z(fe)&&Z(fe)(...b))},[t("span",null,F(i.$t("DNS\u914D\u7F6E")),1)]),t("div",{onClick:r[2]||(r[2]=(...b)=>Z(Ee)&&Z(Ee)(...b))},[t("span",null,F(i.$t("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)]),t("div",{onClick:c},[t("span",null,F(((m=s.value)==null?void 0:m.status)=="running"?i.$t("\u6C99\u7BB1\u5DF2\u5F00\u542F"):i.$t("\u5F00\u542F\u6C99\u7BB1")),1)])])]}),_:1},8,["title"]))}});var Ro=S(Uo,[["__scopeId","data-v-47b0529a"]]),Go="/luci-static/istorex/network.svg?v=3025665f",Wo="/luci-static/istorex/device.svg?v=9068551e";const Zo={},jo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},Xo=t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.375 12C3.375 12.4973 3.57254 12.9742 3.92417 13.3258C4.27581 13.6775 4.75272 13.875 5.25 13.875C5.74728 13.875 6.22419 13.6775 6.57583 13.3258C6.92746 12.9742 7.125 12.4973 7.125 12C7.125 11.5027 6.92746 11.0258 6.57583 10.6742C6.22419 10.3225 5.74728 10.125 5.25 10.125C4.75272 10.125 4.27581 10.3225 3.92417 10.6742C3.57254 11.0258 3.375 11.5027 3.375 12ZM10.125 12C10.125 12.4973 10.3225 12.9742 10.6742 13.3258C11.0258 13.6775 11.5027 13.875 12 13.875C12.4973 13.875 12.9742 13.6775 13.3258 13.3258C13.6775 12.9742 13.875 12.4973 13.875 12C13.875 11.5027 13.6775 11.0258 13.3258 10.6742C12.9742 10.3225 12.4973 10.125 12 10.125C11.5027 10.125 11.0258 10.3225 10.6742 10.6742C10.3225 11.0258 10.125 11.5027 10.125 12ZM17.4242 13.3258C17.0725 12.9742 16.875 12.4973 16.875 12C16.875 11.5027 17.0725 11.0258 17.4242 10.6742C17.7758 10.3225 18.2527 10.125 18.75 10.125C19.2473 10.125 19.7242 10.3225 20.0758 10.6742C20.4275 11.0258 20.625 11.5027 20.625 12C20.625 12.4973 20.4275 12.9742 20.0758 13.3258C19.7242 13.6775 19.2473 13.875 18.75 13.875C18.2527 13.875 17.7758 13.6775 17.4242 13.3258Z",fill:"black","fill-opacity":"0.8"},null,-1),Yo=[Xo];function Qo(e,u){return a(),d("svg",jo,Yo)}var Ko=S(Zo,[["render",Qo]]);const Jo=e=>(q("data-v-21e54302"),e=e(),H(),e),ta={key:0,class:"title"},ea=["href"],ua=Jo(()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[t("path",{d:"M7 14C3.1338 14 0 10.8662 0 7C0 3.1338 3.1338 0 7 0C10.8662 0 14 3.1338 14 7C14 10.8662 10.8662 14 7 14ZM7 10.9375C7.25944 10.9375 7.46988 10.8535 7.63175 10.6859C7.79362 10.5179 7.875 10.3101 7.875 10.0625C7.875 9.81487 7.79407 9.61099 7.63175 9.45131C7.46987 9.29119 7.25944 9.20368 7 9.1875C6.65962 9.20369 6.4085 9.3555 6.24663 9.64292C6.08475 9.93081 6.08475 10.2182 6.24663 10.5061C6.4085 10.7936 6.65962 10.9375 7 10.9375ZM7.67025 8.07931C7.67025 8.02901 7.65275 7.88463 7.65493 7.90519C7.637 7.72319 7.66107 7.56131 7.76081 7.40513C7.83344 7.29094 7.94588 7.18375 8.11388 7.08444C9.10175 6.50081 9.46312 5.85068 9.44256 5.17431C9.41195 4.16106 8.66556 3.16663 7.04682 3.15218C5.69361 3.1395 4.80418 3.79312 4.59376 5.02031C4.56892 5.18979 4.61132 5.36226 4.71192 5.50089C4.81251 5.63952 4.96332 5.73333 5.13214 5.76229C5.30096 5.79124 5.47441 5.75305 5.61545 5.65586C5.75649 5.55867 5.85394 5.41019 5.88699 5.24212C5.98282 4.6865 6.29388 4.4577 7.03456 4.46425C7.84699 4.47169 8.11956 4.83481 8.13094 5.21325C8.13376 5.27833 8.11633 5.34268 8.08106 5.39744C7.9905 5.56018 7.79405 5.7492 7.44669 5.95438C7.10324 6.15694 6.83899 6.40894 6.6535 6.70032C6.36518 7.15313 6.3022 7.60113 6.35119 8.05656C6.35862 8.12525 6.35776 8.1165 6.35776 8.07932C6.35734 8.16577 6.374 8.25145 6.4068 8.33143C6.43959 8.41142 6.48786 8.48414 6.54884 8.54542C6.60982 8.60669 6.6823 8.65532 6.76213 8.68849C6.84196 8.72167 6.92756 8.73875 7.014 8.73875C7.10045 8.73875 7.18605 8.72167 7.26587 8.68849C7.3457 8.65532 7.41819 8.60669 7.47917 8.54542C7.54015 8.48414 7.58842 8.41142 7.62121 8.33143C7.654 8.25145 7.67067 8.16575 7.67025 8.07931Z",fill:"#E1B8B2"})],-1)),sa=[ua],na={class:"toolbar"},oa={key:1,class:"more-icon"},aa={class:"actions"},ia=["onClick"],la=I({__name:"index",props:{span:{},height:{},title:{},padding:{},helpLink:{},moreActions:{},action:{}},setup(e){const u=e,s=g(!1),o=()=>{s.value=!s.value},c=mt({width:`calc(${u.span*100/24}% - 10px)`,height:u.height+"px"});return(_,f)=>{var h,n,i;return a(),d("div",{class:"card",style:J(c)},[t("div",null,[u.title?(a(),d("div",ta,[t("span",null,F(u.title),1),u.helpLink?(a(),d("a",{key:0,href:u.helpLink,target:"_blank"},sa,8,ea)):w("",!0),t("div",na,[u.action&&u.action.show!==!1?(a(),d("div",{key:0,class:"action",onClick:f[0]||(f[0]=(...r)=>{var m,b;return((m=u.action)==null?void 0:m.onClick)&&((b=u.action)==null?void 0:b.onClick(...r))})},F((h=u.action)==null?void 0:h.text),1)):w("",!0),(i=(n=u.moreActions)==null?void 0:n.filter(({show:r})=>r!==!1))!=null&&i.length?(a(),d("span",oa,[B(Ko,{onClick:o})])):w("",!0),T(t("div",aa,[t("div",{class:"menu_background",onClick:o}),t("ul",null,[(a(!0),d(N,null,tt(u.moreActions,r=>(a(),d("li",{onClick:r.onClick},F(r.text),9,ia))),256))])],512),[[Ue,s.value]])])])):w("",!0),t("div",{class:"card-body",style:J(`padding:${u.padding}`)},[bt(_.$slots,"default",{},void 0,!0)],4)])],4)}}});var W=S(la,[["__scopeId","data-v-21e54302"]]);const ca={class:"flow"},da={class:"flow-data"},ra={key:0},_a={key:1},pa=I({__name:"flow-chart",setup(e){Qe([Ke,Je,tu,eu,uu,su]);const u=g(),s=D=>{var l;const p=(l=u.value)==null?void 0:l[D];return!p||p.startTime==0?"":n(p.startTime*1e3)+"-"+n(p.endTime*1e3)},o=R(()=>{var p;let D=[];return(p=u.value)==null||p.forEach(l=>{D.push({value:l.uploadSpeed})}),D}),c=R(()=>{var p;let D=[];return(p=u.value)==null||p.forEach(l=>{D.push({value:l.downloadSpeed})}),D}),_=R(()=>{var p;let D="";if(u.value){let l=((p=u.value)==null?void 0:p.length)||0;if(l>0){let E=u.value[l-1];D=i(E.uploadSpeed)+"/s"}}return D}),f=R(()=>{var p;let D="";if(u.value){let l=((p=u.value)==null?void 0:p.length)||0;if(l>0){let E=u.value[l-1];D=i(E.downloadSpeed)+"/s"}}return D});R(()=>{var p;let D=[];return(p=u.value)==null||p.forEach(l=>{D.push({value:l.downloadSpeed+l.uploadSpeed})}),D});const h=()=>z(this,null,function*(){var D;try{const p=yield P.Network.Statistics.GET();if(p.data&&(D=p.data.result)!=null&&D.items){const l=p.data.result.slots||10;if(p.data.result.items.lengthl?u.value=p.data.result.items.slice(l-p.data.result.items.length):u.value=p.data.result.items}}catch(p){console.log(p)}}),n=Ot.dateForm,i=Ot.byteToSize,r=g();let m=null;const b=D=>(m=nu(D,"dark"),m.setOption({animation:!1,backgroundColor:"transparent",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:p=>{if(Array.isArray(p)){let l="";p.length>0&&(l=s(p[0].axisValue));for(let E=0;E${p[E].seriesName}: ${i(p[E].value)}/s`;return l.toString()}else{const l=p;return`${s(l.axisValue)}
${l.seriesName}: ${i(l.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}},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(p,l){return`${i(p)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:"\u4E0B\u8F7D",data:c.value,type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(32, 199, 247, 1)"},{offset:1,color:"rgba(32, 199, 247, 0.1)"}],global:!1}}},{name:"\u4E0A\u4F20",data:o.value,type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(85, 58, 254, 1)"},{offset:1,color:"rgba(85, 58, 254, 0.1)"}],global:!1}}}],grid:{left:"0%",right:"0%",bottom:"0%",top:"0w",containLabel:!0}}),m);return lt(()=>{setTimeout(()=>z(this,null,function*(){if(r.value){yield h();const D=b(r.value),p=r.value;D.resize({width:p.clientWidth,height:p.clientHeight}),window.addEventListener("resize",()=>{D.resize({width:p.clientWidth,height:p.clientHeight})});const l=()=>z(this,null,function*(){m!=null&&(yield h(),m!=null&&(D.setOption({series:[{name:"\u4E0B\u8F7D",data:c.value,type:"line",areaStyle:{},smooth:!0},{name:"\u4E0A\u4F20",data:o.value,type:"line",areaStyle:{},smooth:!0}]}),setTimeout(l,5e3)))});setTimeout(l,5e3)}}),900)}),wt(()=>{m!=null&&(m.dispose(),m=null)}),(D,p)=>(a(),d("div",ca,[t("div",{ref_key:"el",ref:r,class:"echart"},null,512),t("div",da,[_.value?(a(),d("span",ra,F(D.$t("\u4E0A\u4F20"))+": "+F(_.value),1)):w("",!0),f.value?(a(),d("span",_a,F(D.$t("\u4E0B\u8F7D"))+": "+F(f.value),1)):w("",!0)])]))}});var va=S(pa,[["__scopeId","data-v-475e377c"]]);const Ae=e=>(q("data-v-39628bee"),e=e(),H(),e),ha={class:"width-45 responsive"},Fa={class:"width-55 responsive"},ma={class:"network"},fa=Ae(()=>t("img",{src:Go,alt:"network"},null,-1)),Ea={class:"device"},Ca=Ae(()=>t("img",{src:Wo,alt:"device"},null,-1)),$a={class:"ip-dns"},ga={class:"title"},ba={class:"ip"},ya={class:"title"},Da={class:"dns"},ka=I({__name:"index",setup(e){const u=Ot.stampForm,s=n=>{switch(n){case"pppoe":return dt.global.t("\u62E8\u53F7\u4E0A\u7F51");case"static":return dt.global.t("\u9759\u6001\u7F51\u7EDC");case"dhcp":return"DHCP"}return n&&n.toUpperCase()},o=n=>{switch(n){case"manual":return dt.global.t("\u624B\u52A8\u914D\u7F6E");case"auto":return dt.global.t("\u81EA\u52A8\u83B7\u53D6");default:return""}},c=mt({ipv4addr:"",ipv6addr:"",internetConnected:!1,proto:"",dnsProto:"",dnsList:[],uptimeStamp:0}),_=g({devices:[]}),f=()=>z(this,null,function*(){P.Network.Status.GET().then(n=>{if(n!=null&&n.data){const{result:i}=n==null?void 0:n.data;i&&(c.ipv4addr=i.ipv4addr,c.proto=i.proto,c.dnsProto=i.dnsProto,c.ipv6addr=i.ipv6addr,c.dnsList=i.dnsList,c.uptimeStamp=i.uptimeStamp,window.setInterval(()=>{c.uptimeStamp&&(c.uptimeStamp=c.uptimeStamp+1)},1e3))}})}),h=()=>z(this,null,function*(){P.Network.Device.List.GET().then(n=>{if(n!=null&&n.data){const{result:i}=n==null?void 0:n.data;_.value={devices:(i==null?void 0:i.devices)||[]}}})});return f(),h(),(n,i)=>(a(),L(ft,null,{default:V(()=>[t("div",ha,[B(W,{title:n.$t("\u6D41\u91CF\u7EDF\u8BA1"),span:24,padding:"0 8px"},{default:V(()=>[B(va)]),_:1},8,["title"])]),t("div",Fa,[B(W,{span:12},{default:V(()=>[t("div",ma,[fa,t("div",null,[t("span",null,F(n.$t("\u5DF2\u8FDE\u63A5\u4E92\u8054\u7F51")),1),t("span",null,F(Z(u)(c.uptimeStamp)),1)])])]),_:1}),B(W,{span:12},{default:V(()=>{var r;return[t("div",Ea,[Ca,t("div",null,[t("span",null,F(n.$t("\u5DF2\u8FDE\u63A5\u8BBE\u5907")),1),t("span",null,F(`${(r=_.value.devices)==null?void 0:r.length}${n.$t("\u53F0")}`),1)])])]}),_:1}),B(W,{span:24},{default:V(()=>[t("div",$a,[t("span",ga,F(n.$t("IP\u5730\u5740")),1),t("div",ba,[t("span",null,F(`IPv4\uFF1A${c.ipv4addr}\uFF08${s(c.proto||"")}\uFF09`),1),t("span",null,F(`IPv6\uFF1A${c.ipv6addr||"-"}`),1)]),t("span",ya,F(`DNS\uFF08${o(c.dnsProto||"")}\uFF09`),1),t("div",Da,[(a(!0),d(N,null,tt(c.dnsList,r=>(a(),d("span",null,F(r),1))),256))])])]),_:1})])]),_:1}))}});var wa=S(ka,[["__scopeId","data-v-39628bee"]]),Ba="/luci-static/istorex/open.svg?v=84274947",Aa="/luci-static/istorex/info.svg?v=7035c5f2";const Ct=e=>(q("data-v-bd2acf72"),e=e(),H(),e),xa=["onSubmit"],Sa=Ct(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u786C\u76D8\u914D\u7F6E")],-1)),Ia={class:"action-body"},Va={class:"disk-info"},Pa=Ct(()=>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)),Ma={key:0,class:"disk-info_mount-name"},Ta={key:1,class:"disk-info_mount-name"},La={key:0,class:"label-item"},za=Ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),Na={class:"label-item_path"},Oa={class:"label-item"},qa=Ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u683C\u5F0F\u5316\u9009\u9879")],-1)),Ha={class:"label-item_value"},Ua=["disabled"],Ra={key:0,value:""},Ga=Ct(()=>t("option",{value:"format"},"\u683C\u5F0F\u5316",-1)),Wa={key:1,value:"default"},Za={class:"label-item_value"},ja={key:0,class:"msg"},Xa={key:1,class:"msg"},Ya={class:"action-footer"},Qa=Ct(()=>t("div",{class:"auto"},null,-1)),Ka=["disabled"],Ja=["disabled"],ti={key:1,class:"action result"},ei={class:"action-body"},ui=Ct(()=>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)),si=Ct(()=>t("div",{class:"action-body_msg"},"\u683C\u5F0F\u5316\u6210\u529F",-1)),ni={key:0,class:"action-body_info"},oi={key:1,class:"action-body_info"},ai={class:"btns"},ii=I({__name:"index",props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const u=e,s=()=>{u.Close&&u.Close()},o=v=>{v.preventDefault(),u.Cancel&&u.Cancel(),s()},c=v=>{u.Next&&u.Next(v),s()},_=g(!1),f=g(0),h=v=>{f.value=v},n=g(u.action=="nas"?"":"format"),i=g(),r=g(),m=()=>{switch(n.value){case"format":D();return;case"default":b();return;default:A.Warning("\u8BF7\u9009\u62E9\u9009\u7EBF");return}},b=()=>{let v="";const C=u.mount;if(C!=null&&C.mountPoint!=null&&(v=C.mountPoint),v!=""){c(v);return}A.Warning("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84")},D=()=>{const v=u.disk,C=u.mount;if(C){const k=C.mountPoint||C.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${k} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${k}?`))return;l(C);return}if(v){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${v.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;p(v);return}A.Warning("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E")},p=v=>z(this,null,function*(){if(v.name==null||v.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(v.path==null||v.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}_.value=!0;const C=A.Loading("\u521D\u59CB\u5316\u4E2D...");try{const k=yield P.Nas.Disk.Init.POST({name:v.name,path:v.path});if(k!=null&&k.data){const{result:$,error:y}=k==null?void 0:k.data;y&&A.Warning(y),$&&($.errorInfo?A.Warning($.errorInfo):(A.Success("\u521D\u59CB\u5316\u6210\u529F"),$.childrens&&$.childrens.length>0&&(r.value=$.childrens[0]),i.value=$,h(1)))}}catch(k){A.Error(k)}C.Close(),_.value=!1}),l=v=>z(this,null,function*(){if(v.path==null||v.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}_.value=!0;const C=A.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const k=yield P.Nas.Disk.Partition.Format.POST({path:v.path,uuid:v.uuid,mountPoint:v.mountPoint});if(k!=null&&k.data){const{result:$,error:y}=k==null?void 0:k.data;y&&A.Warning(y),$&&(A.Success("\u683C\u5F0F\u5316\u6210\u529F"),r.value=$,h(1))}}catch(k){A.Error(k)}C.Close(),_.value=!1}),E=()=>{if(r.value&&r.value.mountPoint){c(r.value.mountPoint);return}A.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")};return(v,C)=>(a(),L(st,{type:1},{default:V(()=>[B(Lt,{name:"rotate",mode:"out-in"},{default:V(()=>{var k;return[f.value==0?(a(),d("form",{key:0,class:"action format",onSubmit:it(m,["prevent"])},[Sa,t("div",Ia,[t("div",Va,[Pa,e.mount?(a(),d("div",Ma,[t("span",null,"\u3010"+F(e.mount.total)+"\u3011",1),t("span",null,F(e.mount.mountPoint||e.mount.path),1)])):e.disk?(a(),d("div",Ta,[t("span",null,"\u3010"+F(e.disk.size)+"\u3011",1),t("span",null,F(e.disk.venderModel),1)])):w("",!0)]),e.mount?(a(),d("div",La,[za,t("div",Na,F(e.mount.mountPoint||e.mount.path)+"\uFF08"+F(e.mount.total)+"\uFF09 ",1)])):w("",!0),t("div",Oa,[qa,t("div",Ha,[T(t("select",{"onUpdate:modelValue":C[0]||(C[0]=$=>n.value=$),required:"",disabled:e.action=="disk"},[e.mount!=null?(a(),d("option",Ra,"\u8BF7\u9009\u62E9\u9009\u9879")):w("",!0),Ga,e.mount!=null?(a(),d("option",Wa," \u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF ")):w("",!0)],8,Ua),[[Et,n.value]])]),t("div",Za,[n.value=="format"?(a(),d("p",ja," \u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u4F20\u8F93\u901F\u5EA6\u66F4\u5FEB ")):n.value=="default"?(a(),d("p",Xa)):w("",!0)])])]),t("div",Ya,[Qa,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:o,type:"button",disabled:_.value}," \u8FD4\u56DE ",8,Ka),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:_.value}," \u4E0B\u4E00\u6B65 ",8,Ja)])],40,xa)):f.value==1?(a(),d("div",ti,[t("div",ei,[ui,si,i.value?(a(),d("div",ni,[K(" \u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8 "+F(i.value.venderModel)+" \u5E76\u6302\u8F7D\u5230 ",1),t("a",null,F((k=r.value)==null?void 0:k.mountPoint),1)])):w("",!0),r.value?(a(),d("div",oi,[K(" \u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A "),t("a",null,F(r.value.mountPoint),1)])):w("",!0),t("div",ai,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:E},F(e.action=="nas"?"\u4E0B\u4E00\u6B65":"\u5B8C\u6210"),1)])])])):w("",!0)]}),_:1})]),_:1}))}});var li=S(ii,[["__scopeId","data-v-bd2acf72"]]),xe=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(li,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const Dt=e=>(q("data-v-3a7479d2"),e=e(),H(),e),ci=["onSubmit"],di=Dt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"})],-1)),ri={class:"action-body"},_i={class:"disk-info"},pi=Dt(()=>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)),vi={key:0,class:"disk-info_mount-name"},hi={key:1,class:"disk-info_mount-name"},Fi={key:0,class:"label-item"},mi=Dt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),fi={class:"label-item_path"},Ei={class:"label-item"},Ci=Dt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u6302\u8F7D\u70B9")],-1)),$i={class:"label-item_value"},gi={class:"action-footer"},bi=Dt(()=>t("div",{class:"auto"},null,-1)),yi=["disabled"],Di=["disabled"],ki={key:1,class:"action result"},wi={class:"action-body"},Bi=Dt(()=>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)),Ai=Dt(()=>t("div",{class:"action-body_msg"},"\u6302\u8F7D\u6210\u529F",-1)),xi={key:0,class:"action-body_info"},Si={class:"btns"},Ii=I({__name:"index",props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){var D;const u=e,s=()=>{u.Close&&u.Close()},o=p=>{p.preventDefault(),u.Cancel&&u.Cancel(),s()},c=p=>{u.Next&&u.Next(p),s()},_=g(!1),f=g(0),h=g("/mnt/data_"+((D=u==null?void 0:u.mount)==null?void 0:D.name)),n=p=>{f.value=p};g(u.mount?"":"format"),g();const i=g(),r=()=>z(this,null,function*(){const p=u.mount;if(p==null){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A");return}if(p.path==null||p.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}if(p.uuid==null||p.uuid==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID");return}_.value=!0;const l=A.Loading("\u6302\u8F7D\u4E2D...");try{const E=yield P.Nas.Disk.Partition.Mount.POST({path:p.path,uuid:p.uuid,mountPoint:h.value});if(E!=null&&E.data){const{result:v,error:C}=E==null?void 0:E.data;C&&A.Warning(C),v&&(A.Success("\u6302\u8F7D\u6210\u529F"),i.value=v,n(1))}}catch(E){A.Error(E)}l.Close(),_.value=!1}),m=()=>{if(i.value&&i.value.mountPoint){c(i.value.mountPoint);return}A.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")},b=()=>{};return(p,l)=>(a(),L(st,{type:1},{default:V(()=>[B(Lt,{name:"rotate",mode:"out-in"},{default:V(()=>{var E,v;return[f.value==0?(a(),d("form",{key:0,class:"action format",onSubmit:it(b,["prevent"])},[di,t("div",ri,[t("div",_i,[pi,e.mount?(a(),d("div",vi,[t("span",null,"\u3010"+F(e.mount.total)+"\u3011",1),t("span",null,F(e.mount.mountPoint),1)])):e.disk?(a(),d("div",hi,[t("span",null,"\u3010"+F(e.disk.size)+"\u3011",1),t("span",null,F(e.disk.venderModel),1)])):w("",!0)]),e.mount?(a(),d("div",Fi,[mi,t("div",fi,F(e.mount.path)+"\uFF08"+F(e.mount.total)+"\uFF0C"+F((v=(E=e.mount)==null?void 0:E.filesystem)==null?void 0:v.toUpperCase())+"\uFF09 ",1)])):w("",!0),t("div",Ei,[Ci,t("div",$i,[T(t("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=C=>h.value=C)},null,512),[[Y,h.value,void 0,{trim:!0}]])])])]),t("div",gi,[bi,t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:_.value,onClick:r}," \u786E\u5B9A ",8,yi),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:o,type:"button",disabled:_.value}," \u8FD4\u56DE ",8,Di)])],40,ci)):f.value==1?(a(),d("div",ki,[t("div",wi,[Bi,Ai,i.value?(a(),d("div",xi,[K(" \u5DF2\u6210\u529F\u5C06\u5206\u533A "+F(i.value.path)+" \u6302\u8F7D\u5230 ",1),t("a",null,F(i.value.mountPoint),1)])):w("",!0),t("div",Si,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:m},F(e.action=="nas"?"\u5B8C\u6210":"\u4E0B\u4E00\u6B65"),1)])])])):w("",!0)]}),_:1})]),_:1}))}});var Vi=S(Ii,[["__scopeId","data-v-3a7479d2"]]),Se=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Vi,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const Pi={class:"progress"},Mi=I({__name:"index",props:{value:{type:Number,required:!0},text:{type:String}},setup(e){const u=e,s=R(()=>u.value>=80?"#e45e5e":u.value>=70?"#ff9800":u.value>=60?"#297ff3":u.value>0?"#53c31b":"");return(o,c)=>(a(),d("div",Pi,[t("div",{class:Xt(["progress-value",`${e.value>50}`]),style:J({width:`${e.value}%`,backgroundColor:s.value})},[t("span",null,F(e.text),1)],6),bt(o.$slots,"default",{},void 0,!0)]))}});var Ti=S(Mi,[["__scopeId","data-v-733828e1"]]);const Ie=e=>(q("data-v-4b3c5909"),e=e(),H(),e),Li={class:"disk-content"},zi={class:"disk-item"},Ni={class:"disk-item_name"},Oi={key:0},qi={key:1},Hi={key:2},Ui={class:"disk_value"},Ri={key:0,class:"disk-item_value"},Gi={class:"value-data"},Wi={key:1,class:"disk-item_value"},Zi={key:0,class:"disk-item"},ji={class:"disk-item_name"},Xi=["href"],Yi={class:"disk_status"},Qi={class:"disk_status_item"},Ki={key:0,class:"tooltip-trigger disk_tip"},Ji=Ie(()=>t("div",{class:"tooltip-text tooltip-top"},[t("div",{class:"disk_dir_tip"}," \u5F53\u524D\u78C1\u76D8\u4E3A\u53EA\u8BFB\u72B6\u6001\uFF0C\u53EF\u80FD\u5BFC\u81F4\u65E0\u6CD5\u5199\u5165\u6570\u636E ")],-1)),tl={class:"disk_status_item"},el={key:0,class:"tooltip-trigger disk_tip"},ul=Ie(()=>t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u5F53\u524D\u78C1\u76D8\u786C\u76D8\u683C\u5F0F\u4E3ANTFS\uFF0C\u53EF\u80FD\u5BFC\u81F4\u786C\u76D8\u51FA\u73B0\u517C\u5BB9\u6027\u95EE\u9898\uFF0C\u5EFA\u8BAE\u683C\u5F0F\u5316\u6210EXT4\u6587\u4EF6\u7CFB\u7EDF")],-1)),sl=I({__name:"item",props:{part:{type:Object,required:!0},disk:{type:Object,required:!0}},setup(e){const u=e,s=R(()=>u.part.filesystem=="No FileSystem"),o=R(()=>s.value||!u.part.isSystemRoot&&u.part.mountPoint&&(u.part.isReadOnly||u.part.filesystem=="ntfs")),c=function(){xe({action:"disk",disk:u.disk,mount:u.part,Cancel:()=>{},Next:i=>{location.reload()}})},_=()=>{Se({action:"nas",disk:u.disk,mount:u.part,Cancel:()=>{},Next:()=>{location.reload()}})},f=()=>z(this,null,function*(){const i=A.Loading("\u5904\u7406\u4E2D...");try{const r=yield P.Nas.Disk.InitRest.POST({name:u.disk.name,path:u.disk.path});if(r!=null&&r.data){const{result:m,error:b}=r==null?void 0:r.data;b&&A.Warning(b),m&&(A.Success("\u6302\u8F7D\u6210\u529F"),location.reload())}}catch(r){A.Error(r)}i.Close()}),h=R(()=>u.part.filesystem=="Free Space"),n=R(()=>{const i=u.part.mountPoint?u.part.mountPoint:"";return i.indexOf("/mnt/")==0?"/cgi-bin/luci/admin/services/linkease/file/?path=/"+i.substring(5):"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+i});return(i,r)=>{var b;const m=Zt("progress-item");return a(),d("div",Li,[t("li",zi,[t("div",Ni,[h.value?(a(),d("span",Oi,"\u672A\u5206\u533A")):(a(),d("span",qi,F(e.part.name)+F(e.part.mountPoint?"":s.value?"\uFF08\u672A\u683C\u5F0F\u5316\uFF09":"\uFF08\u672A\u6302\u8F7D\uFF09"),1)),e.part.isSystemRoot?(a(),d("span",Hi,"\uFF08\u7CFB\u7EDF\u5206\u533A\uFF09")):w("",!0)]),t("div",Ui,[e.part.mountPoint||h.value?(a(),d("div",Ri,[t("div",Gi,[B(m,{value:h.value||!e.part.usage?0:e.part.usage,text:h.value?"\u672A\u5206\u533A\uFF08"+e.part.total+"\uFF09":e.part.used+"/"+e.part.total,style:{backgroundColor:"#767676"}},null,8,["value","text"])])])):s.value?w("",!0):(a(),d("div",Wi,[t("div",{class:"value-data buttondiv",onClick:_},"\u624B\u52A8\u6302\u8F7D")])),h.value?(a(),d("button",{key:2,class:"cbi-button cbi-button-apply",onClick:f}," \u5206\u533A\u5E76\u683C\u5F0F\u5316 ")):o.value?(a(),d("button",{key:3,class:"cbi-button cbi-button-apply",onClick:c}," \u683C\u5F0F\u5316\u5206\u533A ")):w("",!0)])]),e.part.mountPoint?(a(),d("li",Zi,[t("span",ji,[t("a",{href:n.value,target:"_blank"},F(e.part.mountPoint),9,Xi)]),t("div",Yi,[t("div",Qi,[t("div",null,"\u78C1\u76D8\u8BFB\u5199\u72B6\u6001\uFF1A"+F(e.part.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1),!e.part.isSystemRoot&&e.part.isReadOnly?(a(),d("div",Ki,[B(rt),Ji])):w("",!0)]),t("div",tl,[t("div",null,"\u78C1\u76D8\u683C\u5F0F\uFF1A"+F((b=e.part.filesystem)==null?void 0:b.toUpperCase()),1),e.part.filesystem=="ntfs"?(a(),d("div",el,[B(rt),ul])):w("",!0)])])])):w("",!0)])}}});var nl=S(sl,[["__scopeId","data-v-4b3c5909"]]);const Ve=e=>(q("data-v-5f29973e"),e=e(),H(),e),ol={key:0,class:"action"},al={class:"title"},il=Ve(()=>t("div",{class:"app-container_info"},[t("span",null,"\u5206\u533A / \u6302\u8F7D\u70B9"),t("span",null,"\u5BB9\u91CF")],-1)),ll={class:"app-container_body"},cl=Ve(()=>t("div",{class:"auto"},null,-1)),dl=I({__name:"index",props:{disk:{type:Object,required:!0},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const u=e,s=g(0),o=()=>{u.Close&&u.Close()},c=_=>{_.preventDefault(),u.Cancel&&u.Cancel(),o()};return(_,f)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[B(Lt,{name:"rotate",mode:"out-in"},{default:V(()=>[s.value==0?(a(),d("div",ol,[t("h2",al," \u5206\u533A\u4FE1\u606F - "+F((e.disk.name||"?")+(e.disk.isSystemRoot?"\uFF08\u7CFB\u7EDF\u76D8\uFF09":"")),1),t("ul",null,[t("li",null,[il,t("div",ll,[(a(!0),d(N,null,tt(e.disk.childrens,(h,n)=>(a(),L(nl,{key:n,part:h,disk:e.disk},null,8,["part","disk"]))),128))])])]),t("div",{class:"action-footer"},[cl,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:c,type:"button"}," \u8FD4\u56DE ")])])):w("",!0)]),_:1})]),_:1},8,["Close"]))}});var rl=S(dl,[["__scopeId","data-v-5f29973e"]]),_l=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(rl,ht(vt({},e),{Close:()=>{o()}}));s.component("progress-item",Ti),s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}},pl="/luci-static/istorex/warning.svg?v=69d55c8f";const qt=e=>(q("data-v-e039a994"),e=e(),H(),e),vl={class:"disk"},hl={key:0,class:"title"},Fl={class:"not-progress"},ml={key:0},fl={class:"progress"},El={class:"button"},Cl=["src"],$l=qt(()=>t("span",null,"S.M.A.R.T\u5F02\u5E38",-1)),gl={key:1},bl={class:"progress"},yl={class:"button"},Dl={key:0,class:"tooltip-trigger"},kl={class:"disk_tip"},wl=qt(()=>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)),Bl={key:1,class:"tooltip-trigger"},Al={class:"disk_tip"},xl=qt(()=>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)),Sl={key:2,class:"tooltip-trigger"},Il={class:"disk_tip"},Vl=qt(()=>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\u70B9\u51FB\u5206\u533A\u5217\u8868\u67E5\u770B\u9519\u8BEF")])],-1)),Pl=["onClick"],Ml=["onClick"],Tl={class:"progress"},Ll={class:"button"},zl=["onClick"],Nl={key:0},Ol={class:"progress"},ql={class:"button"},Hl=["onClick"],Ul={key:1},Rl={class:"progress"},Gl={class:"button"},Wl=["onClick"],Zl=I({__name:"disk",props:{title:String,type:String,smartWarning:Boolean},setup(e){const u=e,s=ke(),o=R(()=>{var m,b,D,p;if(u.type==="systemRoot")return((b=(m=s==null?void 0:s.disk)==null?void 0:m.disks)==null?void 0:b.filter(l=>l.isSystemRoot))||[];if(u.type==="notSystemRoot")return[...(D=s==null?void 0:s.disk)==null?void 0:D.disks].filter(l=>!l.isSystemRoot)||[];if(u.type==="raid")return[...(p=s==null?void 0:s.raid)==null?void 0:p.disks]}),c=m=>m.usage>80?"linear-gradient(91deg, #e7ab67 0.27%, #fa5b29 99.46%)":"linear-gradient(91deg, #4BCAE7 0.27%, #8ADE86 99.46%)",_=()=>{ot({title:"S.M.A.R.T.",src:"/cgi-bin/luci/admin/nas/smart"})},f=m=>{xe({action:"disk",disk:m,Cancel:()=>{},Next:()=>{location.reload()}})},h=m=>{_l({action:"disk",disk:m,Cancel:()=>{},Next:()=>{location.reload()}})},n=m=>{const b=m.childrens||[];Se({action:"nas",disk:m,mount:b[0],Cancel:()=>{},Next:()=>{location.reload()}})},i=m=>m.errorInfo?"error":m.childrens==null||m.childrens.length==0||m.childrens.length==1&&m.childrens[0].filesystem=="No FileSystem"?"load":m.childrens.filter(b=>b.mountPoint).length===0?"unmounted":"success",r=m=>{let b=m.name;return m.size&&(b+=`\u3010${m.size}\u3011`),m.venderModel&&(b+=`(${m.venderModel})`),b};return(m,b)=>{var D;return a(),d("div",vl,[(D=o.value)!=null&&D.length?(a(),d("span",hl,F(u.title),1)):w("",!0),(a(!0),d(N,null,tt(o.value,(p,l)=>{var E,v,C,k,$;return a(),d("div",{class:"item",key:l},[i(p)==="error"?(a(),d(N,{key:0},[t("span",null,F(r(p)),1),t("div",Fl,[t("span",null,F(p.errorInfo),1)])],64)):i(p)=="success"?(a(),d(N,{key:1},[t("span",null,F(r(p)),1),p.smartWarning&&e.smartWarning?(a(),d("div",ml,[t("div",fl,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",El,[t("span",{class:"btn",onClick:b[0]||(b[0]=y=>_())},[t("img",{src:Z(pl)},null,8,Cl),$l])])])):(a(),d("div",gl,[t("div",bl,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",yl,[p.isDockerRoot&&p.isSystemRoot&&p.usage&&p.usage>=90?(a(),d("span",Dl,[t("span",kl,[B(rt)]),wl])):w("",!0),!p.isSystemRoot&&(((E=p.childrens)==null?void 0:E.filter(y=>y.isReadOnly||y.filesystem=="ntfs").length)||0)>0?(a(),d("span",Bl,[t("span",Al,[B(rt)]),xl])):w("",!0),(v=p.childrens)!=null&&v.filter(y=>y.isSystemRoot&&y.usage&&y.usage>80).length?(a(),d("span",Sl,[t("span",Il,[B(rt)]),Vl])):w("",!0),!p.isSystemRoot&&(((C=p.childrens)==null?void 0:C.filter(y=>y.isReadOnly||y.filesystem=="ntfs").length)||0)>0?(a(),d("img",{key:3,src:Ba,onClick:y=>f(p),alt:""},null,8,Pl)):w("",!0),t("img",{onClick:y=>h(p),src:Aa,alt:""},null,8,Ml)])]))],64)):i(p)==="load"?(a(),d(N,{key:2},[t("span",null,F(r(p)),1),t("div",Tl,[t("div",{style:J({width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",Ll,[t("span",{class:"btn",onClick:y=>f(p)},"\u683C\u5F0F\u5316\u5E76\u6302\u8F7D",8,zl)])],64)):i(p)==="unmounted"?(a(),d(N,{key:3},[t("span",null,F(r(p)),1),((k=p.childrens)==null?void 0:k.length)==1?(a(),d("div",Nl,[t("div",Ol,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",ql,[t("span",{class:"btn",onClick:y=>n(p)},"\u624B\u52A8\u6302\u8F7D",8,Hl)])])):w("",!0),((($=p.childrens)==null?void 0:$.length)||0)>1?(a(),d("div",Ul,[t("div",Rl,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",Gl,[t("span",{class:"btn",onClick:y=>h(p)},"\u624B\u52A8\u6302\u8F7D",8,Wl)])])):w("",!0)],64)):w("",!0)])}),128))])}}});var Rt=S(Zl,[["__scopeId","data-v-e039a994"]]),Ce="/luci-static/istorex/right.svg?v=173d63f8";const jl=jt('
',1),Xl={class:"app-container_status-label_text"},Yl={class:"text_status"},Ql={class:"text_info"},Kl=jt('
',1),Jl={class:"app-container_status-label_text"},t1={class:"text_info"},e1=I({__name:"item",props:{item:{type:Object,required:!0},transform:{type:Number,default:0}},setup(e){const u=e,s=we(),o=g(null),c=f=>{const h=f.target,{left:n,top:i}=h.getBoundingClientRect();s.portitemStyle.show=!0,s.portitemStyle.left=n,s.portitemStyle.top=i,s.portitemStyle.portitem=u.item},_=f=>{s.portitemStyle.show=!1};return(f,h)=>(a(),d("div",{class:"app-container_status-label_bg",style:J(`transform: translateX(${e.transform}px);`),ref_key:"el",ref:o,onMouseenter:c,onMouseleave:_},[e.item.linkState=="DOWN"?(a(),d(N,{key:0},[jl,t("div",Xl,[t("div",Yl,F(f.$t("\u5DF2\u65AD\u5F00")),1),t("div",Ql,F(e.item.name)+" "+F(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64)):(a(),d(N,{key:1},[Kl,t("div",Jl,[t("div",null,F(e.item.linkSpeed),1),t("div",t1,F(e.item.name)+" "+F(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64))],36))}});var u1=S(e1,[["__scopeId","data-v-580b5628"]]);const s1=I({__name:"index",props:{portList:{type:Array,required:!0}},setup(e){const u=g(),s=g(0),o=g(0),c=g(0),_=g(!1),f=()=>{if(c.value>=0){c.value=0;return}c.value+=100},h=()=>{if(c.value<=0-s.value+o.value){c.value=0-s.value+o.value;return}c.value-=100};return lt(()=>{Re(()=>{u.value&&(s.value=u.value.scrollWidth,o.value=u.value.clientWidth,_.value=s.value>o.value)})}),(n,i)=>(a(),d("div",{class:"app-interfaces",ref_key:"el",ref:u},[_.value?(a(),d(N,{key:0},[t("img",{src:Ce,class:"btn-f",alt:"",onClick:f}),t("img",{src:Ce,class:"btn-r",alt:"",onClick:h})],64)):w("",!0),(a(!0),d(N,null,tt(e.portList,(r,m)=>(a(),L(u1,{item:r,transform:c.value},null,8,["item","transform"]))),256))],512))}});var n1=S(s1,[["__scopeId","data-v-92f8fb6c"]]);const o1={class:"status-card"},a1=I({__name:"interfacer-status",setup(e){const u=mt({portList:[],load:!1});return(()=>{P.Network.PortList.GET().then(o=>{if(o!=null&&o.data){const{result:c}=o==null?void 0:o.data;c&&(u.portList=c.ports||[])}}).finally(()=>{u.load=!0})})(),(o,c)=>(a(),d("div",o1,[u.load?(a(),L(n1,{key:0,portList:u.portList},null,8,["portList"])):w("",!0)]))}});var i1=S(a1,[["__scopeId","data-v-2244abae"]]);const gt={installApp:(e,u)=>new Promise((s,o)=>{let c=0;P.App.Install.POST({name:e}).then(()=>{const _=setTimeout(()=>{c==0&&(c=1,s(!1))},(u||60)*1e3),f=()=>{c==0&&P.App.Check.POST({name:e}).then(h=>{if(c==0&&h!=null&&h.data){const{result:n}=h.data;if((n==null?void 0:n.status)=="installed"){clearTimeout(_),c=1,s(!0);return}}}).catch(h=>{}).finally(()=>{c==0&&setTimeout(f,3e3)})};setTimeout(f,3e3)}).catch(_=>{c==0&&(c=1,o("\u5B89\u88C5\u5931\u8D25\uFF0C"+_))})}),checkAndInstallApp:(e,u,s)=>z(void 0,null,function*(){let o=A.Loading("\u68C0\u67E5\u4E2D...");try{const c=yield P.App.Check.POST({name:e});if(o.Close(),c!=null&&c.data){const{result:_,error:f}=c.data;if(f)A.Warning(f);else if(_){if(_.status=="installed")return!0;if(confirm(`\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 ${u} \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F`)){o=A.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const h=yield gt.installApp(s||e);if(o.Close(),h)return!0;A.Error("\u5B89\u88C5\u5931\u8D25\u6216\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u8F6F\u4EF6\u6E90\u6216\u7A0D\u5019\u91CD\u8BD5")}}else A.Warning("\u68C0\u67E5\u63D2\u4EF6\u72B6\u6001\u5931\u8D25")}return!1}catch(c){return o.Close(),A.Warning(c),!1}}),installAndGo:(e,u,s,o)=>z(void 0,null,function*(){(yield gt.checkAndInstallApp(e,u,o))&&(location.href=s)})};const l1={class:"width-50 responsive"},c1={class:"chart"},d1={class:"info"},r1={class:"width-50 responsive"},_1=I({__name:"index",setup(e){const u=Ot.stampForm,s=mt({cpuUsage:0,cpuTemperature:0,memAvailablePercentage:0,uptime:0,localtime:""}),o=mt({firmwareVersion:"",kernelVersion:"",model:""});mt({root:[],loaded:[]});const c={interfaceconfig:[{text:"\u7F51\u53E3\u914D\u7F6E",onClick:()=>{ot({title:"\u7F51\u53E3\u914D\u7F6E",src:"/cgi-bin/luci/admin/quickstart/interfaceconfig"})}}],system:[{text:"\u7CFB\u7EDF\u76D1\u63A7",onClick:()=>{gt.installAndGo("app-meta-netdata","NetData","/cgi-bin/luci/admin/status/netdata")}},{text:"\u5907\u4EFD\u5347\u7EA7",onClick:()=>{ot({title:"\u5907\u4EFD\u5347\u7EA7",src:"/cgi-bin/luci/admin/system/flash"})}},{text:"\u63D2\u4EF6\u5907\u4EFD",onClick:()=>{ot({title:"\u63D2\u4EF6\u5907\u4EFD",src:"/cgi-bin/luci/admin/store/pages/maintance"})}}],disk:[{text:"RAID\u7BA1\u7406",onClick:()=>{ot({title:"RAID\u7BA1\u7406",src:"/cgi-bin/luci/admin/nas/raid"})}},{text:"S.M.A.R.T.",onClick:()=>{ot({title:"S.M.A.R.T.",src:"/cgi-bin/luci/admin/nas/smart"})}},{text:"\u78C1\u76D8\u7BA1\u7406",onClick:()=>{ot({title:"\u78C1\u76D8\u7BA1\u7406",src:"/cgi-bin/luci/admin/system/diskman"})}},{text:"\u6302\u8F7D\u70B9",onClick:()=>{ot({title:"\u6302\u8F7D\u70B9",src:"/cgi-bin/luci/admin/system/mounts"})}}]},_=()=>z(this,null,function*(){var b,D,p,l,E;const m=yield P.System.Status.GET();console.log("getSystemStatus",m.data.result),m.data.result&&(s.uptime=(b=m.data.result)==null?void 0:b.uptime,s.localtime=(D=m.data.result)==null?void 0:D.localtime,s.cpuUsage=((p=m.data.result)==null?void 0:p.cpuUsage)||0,s.memAvailablePercentage=100-((l=m.data.result)==null?void 0:l.memAvailablePercentage)||0,s.cpuTemperature=(E=m.data.result)==null?void 0:E.cpuTemperature,r.cpu&&r.cpu.setValue(s.cpuUsage),r.men&&r.men.setValue(s.memAvailablePercentage),r.temperature&&r.temperature.setValue(s.cpuTemperature),window.setInterval(()=>{s.uptime&&(s.uptime=s.uptime+1),s.localtime&&(s.localtime=String(Fe(Fe(s.localtime).unix()*1e3+1e3).format("YYYY-MM-DD HH:mm:ss")))},1e3))}),f=()=>z(this,null,function*(){var b,D,p;const m=yield P.System.Version.GET();console.log("getSystemVersion",m),m.data.result&&(o.firmwareVersion=(b=m.data.result)==null?void 0:b.firmwareVersion,o.kernelVersion=(D=m.data.result)==null?void 0:D.kernelVersion,o.model=(p=m.data.result)==null?void 0:p.model)});ke();const h=g(null),n=g(null),i=g(null),r={cpu:null,men:null,temperature:null};return lt(()=>{h.value&&n.value&&i.value&&(r.cpu=Ut({el:h.value,value:s.cpuUsage,name:dt.global.t("CPU\u4F7F\u7528\u7387"),labelColor:"rgba(0, 0, 0, 0.80)",numberColor:"#32CFA4",labelFontSize:10,numberFontSize:14,radius:"100%",progressBackgroundColor:"rgba(0, 0, 0, 0.04)",progressColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#8ADE86"},{offset:1,color:"#4BCAE7"}],global:!1}}),r.men=Ut({el:n.value,value:s.memAvailablePercentage,name:dt.global.t("\u5185\u5B58\u4F7F\u7528\u7387"),labelColor:"rgba(0, 0, 0, 0.80)",numberColor:"#F66631",labelFontSize:10,numberFontSize:14,radius:"100%",progressBackgroundColor:"rgba(0, 0, 0, 0.04)",progressColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#E5B56E"},{offset:1,color:"#FD4812E5"}],global:!1}}),r.temperature=Ut({el:i.value,value:s.cpuTemperature,name:dt.global.t("CPU\u6E29\u5EA6"),labelColor:"rgba(0, 0, 0, 0.80)",numberColor:"#32CFA4",labelFontSize:10,numberFontSize:14,radius:"100%",progressBackgroundColor:"rgba(0, 0, 0, 0.04)",unit:"\xB0C",progressColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#8ADE86"},{offset:1,color:"#4BCAE7"}],global:!1}}))}),_(),f(),(m,b)=>(a(),L(ft,null,{default:V(()=>[t("div",l1,[B(W,{title:m.$t("\u7F51\u7EDC\u63A5\u53E3\u72B6\u6001"),span:24,"more-actions":c.interfaceconfig,padding:"0 10px 8px 10px"},{default:V(()=>[B(i1)]),_:1},8,["title","more-actions"]),B(W,{title:m.$t("\u7CFB\u7EDF\u4FE1\u606F"),padding:"0 10px 8px 10px",span:24,"more-actions":c.system},{default:V(()=>[t("div",c1,[t("div",{class:"gauge",ref_key:"temperature",ref:i},null,512),t("div",{class:"gauge",ref_key:"cpu",ref:h},null,512),t("div",{class:"gauge",ref_key:"men",ref:n},null,512)]),t("div",d1,[t("div",null,[t("span",null,F(m.$t("\u8BBE\u5907\u578B\u53F7"))+"\uFF1A",1),t("span",null,F(o.model),1)]),t("div",null,[t("span",null,F(m.$t("\u56FA\u4EF6\u7248\u672C"))+"\uFF1A",1),t("span",null,F(o.firmwareVersion),1)]),t("div",null,[t("span",null,F(m.$t("\u5185\u6838\u7248\u672C"))+"\uFF1A",1),t("span",null,F(o.kernelVersion),1)]),t("div",null,[t("span",null,F(m.$t("\u5DF2\u542F\u52A8"))+"\uFF1A",1),t("span",null,F(Z(u)(s.uptime)),1)]),t("div",null,[t("span",null,F(m.$t("\u7CFB\u7EDF\u65F6\u95F4"))+"\uFF1A",1),t("span",null,F(s.localtime),1)])])]),_:1},8,["title","more-actions"])]),t("div",r1,[B(W,{title:m.$t("\u78C1\u76D8\u4FE1\u606F"),padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/8myYAEVA/",span:24,"more-actions":c.disk},{default:V(()=>[B(Rt,{title:m.$t("\u7CFB\u7EDF\u6839\u76EE\u5F55"),type:"systemRoot"},null,8,["title"]),B(Rt,{title:m.$t("\u5DF2\u6302\u8F7D\u78C1\u76D8"),smartWarning:!0,type:"notSystemRoot"},null,8,["title"]),B(Rt,{title:m.$t("RAID\u8BBE\u5907"),type:"raid"},null,8,["title"])]),_:1},8,["title","more-actions"])])]),_:1}))}});var p1=S(_1,[["__scopeId","data-v-3f470552"]]),v1="/luci-static/istorex/setting.svg?v=9ffe8a9b";const h1={class:"app"},F1={class:"setting"},m1=["src"],f1=["src"],E1=I({__name:"app",props:{title:{},title_en:{},name:{},isWebUrl:{type:Function},openApp:{type:Function},openWebUrl:{type:Function}},setup(e){const u=e,s=g(localStorage.getItem("i18n")),o=c=>P.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${c}/logo.png`);return lt(()=>{Be.subscribe("changeLocale",(c,_)=>{s.value=_})}),(c,_)=>(a(),d("div",h1,[u.isWebUrl()?(a(),d("div",{key:0,onClick:_[1]||(_[1]=f=>u.openWebUrl())},[t("span",F1,[t("img",{src:v1,alt:"",onClick:_[0]||(_[0]=f=>{f.stopPropagation(),u.openApp()})})]),t("div",null,[t("img",{class:"app-icon",src:o(u.name),alt:"\u56FE\u6807\u51FA\u8D70\u5566"},null,8,m1),t("span",null,F(s.value==="en"&&u.title_en||u.title),1)])])):(a(),d("div",{key:1,onClick:_[2]||(_[2]=f=>u.openApp())},[t("div",null,[t("img",{class:"app-icon",src:o(u.name),alt:"\u56FE\u6807\u51FA\u8D70\u5566"},null,8,f1),t("span",null,F(s.value==="en"&&u.title_en||u.title),1)])]))]))}});var C1=S(E1,[["__scopeId","data-v-03c48935"]]);const $1=e=>(q("data-v-042b9e9a"),e=e(),H(),e),g1={class:"app-store"},b1=$1(()=>t("span",null,"APP Store",-1)),y1=I({__name:"index",setup(e){const u=Ge(),s=R(()=>u.localApps.filter(c=>c.name!="istorex"));return(()=>z(this,null,function*(){yield u.getApp()}))(),(c,_)=>(a(),L(ft,{title:c.$t("\u5E94\u7528\u4E2D\u5FC3")},{default:V(()=>[t("div",g1,[t("div",{class:"store",onClick:_[0]||(_[0]=f=>Z(We).Open())},[t("div",null,[t("div",null,[t("span",null,F(c.$t("\u5E94\u7528\u5546\u5E97")),1),b1])])]),(a(!0),d(N,null,tt(s.value,f=>(a(),L(C1,Ze(je(f)),null,16))),256))])]),_:1},8,["title"]))}});var D1=S(y1,[["__scopeId","data-v-042b9e9a"]]),k1="/luci-static/istorex/copy.png?v=7ec874a7";const _t=e=>(q("data-v-43beecef"),e=e(),H(),e),w1={class:"actioner-container"},B1=_t(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),A1={class:"actioner-container_body"},x1={class:"label-item"},S1=_t(()=>t("span",null,"DDNSTO",-1)),I1=_t(()=>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)),V1={class:"label-item"},P1=_t(()=>t("span",null,"\u963F\u91CC\u4E91",-1)),M1=_t(()=>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)),T1={class:"label-item"},L1=_t(()=>t("span",null,"Dnspod",-1)),z1=_t(()=>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)),N1={class:"label-item"},O1=_t(()=>t("span",null,"\u82B1\u751F\u58F3",-1)),q1=_t(()=>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)),H1=I({__name:"setup-index",props:{onSetup:{type:Function,required:!0},active:{type:String,default:"ddnsto"}},emits:["update:active"],setup(e,{emit:u}){const s=e,o=()=>{s.onSetup()},c=g(s.active),_=()=>{switch(u("update:active",c.value),c.value){case"ddnsto":s.onSetup("ddnsto");break;case"ali":s.onSetup("ddns-ali");break;case"dnspod":s.onSetup("ddns-dnspod");break;case"oray":s.onSetup("ddns-oray");break}};return(f,h)=>(a(),d("div",w1,[B1,t("div",A1,[t("div",x1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[0]||(h[0]=n=>c.value=n),value:"ddnsto"},null,512),[[at,c.value]]),S1]),I1]),t("div",V1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[1]||(h[1]=n=>c.value=n),value:"ali"},null,512),[[at,c.value]]),P1]),M1]),t("div",T1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[2]||(h[2]=n=>c.value=n),value:"dnspod"},null,512),[[at,c.value]]),L1]),z1]),t("div",N1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[3]||(h[3]=n=>c.value=n),value:"oray"},null,512),[[at,c.value]]),O1]),q1])]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u53D6\u6D88"),t("div",{class:"next",onClick:_},"\u4E0B\u4E00\u6B65")])]))}});var U1=S(H1,[["__scopeId","data-v-43beecef"]]);const zt=e=>(q("data-v-43dd65a2"),e=e(),H(),e),R1={class:"actioner-container"},G1={class:"actioner-container_body"},W1=zt(()=>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)),Z1=zt(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),j1=zt(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),X1={class:"body-info"},Y1=zt(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),Q1=["href"],K1=zt(()=>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)),J1=I({__name:"setup-ddns-success",props:{target:{type:String,required:!0},onSetup:{type:Function,required:!0}},setup(e){const u=()=>{location.reload()};return(s,o)=>(a(),d("div",R1,[t("div",G1,[W1,Z1,j1,t("div",X1,[Y1,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},F(e.target),9,Q1)]),K1]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:u},"\u5173\u95ED")])]))}});var tc=S(J1,[["__scopeId","data-v-43dd65a2"]]);const Pe=e=>(q("data-v-7790f1da"),e=e(),H(),e),ec={class:"actioner-container"},uc=Pe(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),sc=Pe(()=>t("div",{class:"actioner-container_body ddnsto-login"},[t("iframe",{src:"https://www.kooldns.cn/bind/#/auth?send=1&source=openwrt&callback=*"})],-1)),nc=I({__name:"setup-ddnsto-login",props:{onSetup:{type:Function,required:!0},onDdnstoConfig:{type:Function,required:!0}},setup(e){const u=e,s=()=>{u.onSetup()},o=c=>{if(c.data.auth=="ddnsto"){const _=c.data.sign,f=c.data.token;_&&f&&(removeEventListener("message",o),u.onDdnstoConfig(_,f),u.onSetup("ddnsto-run"))}};return lt(()=>{window.addEventListener("message",o)}),wt(()=>{removeEventListener("message",o)}),(c,_)=>(a(),d("div",ec,[uc,sc,t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:s},"\u53D6\u6D88")])]))}});var oc=S(nc,[["__scopeId","data-v-7790f1da"]]);const ac=e=>(q("data-v-5baf4b05"),e=e(),H(),e),ic={class:"actioner-container"},lc=ac(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),cc={class:"actioner-container_body ddnsto-bind"},dc=["src"],rc=I({__name:"setup-ddnsto-bind",props:{onSetup:{type:Function,required:!0},config:{type:Object,required:!0},domain:{type:String,required:!0}},emits:["update:domain"],setup(e,{emit:u}){const s=e,o=R(()=>{const{domain:f,token:h,sign:n,routerId:i,netaddr:r}=s.config,m=encodeURIComponent(f),b=encodeURIComponent(r);return`https://www.kooldns.cn/bind/#/domain?domain=${m}&sign=${n}&token=${h}&routerId=${i}&netaddr=${b}`}),c=f=>{if(f.data){const{auth:h,url:n}=f.data;h==="ddnsto"&&n&&_(n)}},_=f=>z(this,null,function*(){var h;try{const n=yield P.Guide.DdnstoAddress.POST({address:f});n!=null&&n.data&&(((h=n==null?void 0:n.data)==null?void 0:h.success)||0)==0&&(u("update:domain",f),s.onSetup("ddnsto-save"))}catch(n){}});return lt(()=>{window.addEventListener("message",c)}),wt(()=>{removeEventListener("message",c)}),(f,h)=>(a(),d("div",ic,[lc,t("div",cc,[t("iframe",{src:o.value},null,8,dc)])]))}});var _c=S(rc,[["__scopeId","data-v-5baf4b05"]]);const Nt=e=>(q("data-v-02a6c9d8"),e=e(),H(),e),pc={class:"actioner-container"},vc={class:"actioner-container_body"},hc=Nt(()=>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)),Fc=Nt(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),mc=Nt(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),fc={class:"body-info"},Ec=Nt(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),Cc=["href"],$c=Nt(()=>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)),gc=I({__name:"setup-ddnsto-save",props:{onSetup:{type:Function,required:!0},target:{type:String,required:!0}},setup(e){const u=()=>{location.reload()};return(s,o)=>(a(),d("div",pc,[t("div",vc,[hc,Fc,mc,t("div",fc,[Ec,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},F(e.target),9,Cc)]),$c]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:u},"\u5173\u95ED")])]))}});var bc=S(gc,[["__scopeId","data-v-02a6c9d8"]]);const yc=e=>(q("data-v-4f87c1d1"),e=e(),H(),e),Dc={class:"actioner-container"},kc=yc(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),wc={class:"actioner-container_body"},Bc={class:"actioner-container_footer"},Ac=I({__name:"setup-ddnsto-install",props:{onSetup:{type:Function,required:!0}},setup(e){const u=e,s=()=>{u.onSetup()},o=()=>z(this,null,function*(){if(f.value)return;f.value=!0;const n=A.Loading("\u5B89\u88C5\u4E2D...");try{if(yield gt.installApp("app-meta-ddnsto",30)){u.onSetup("ddnsto-login");return}else c.value="\u5B89\u88C5\u5931\u8D25"}catch(i){c.value=i}finally{n.Close()}f.value=!1}),c=g("\u6B63\u5728\u68C0\u6D4B\u4E2D..."),_=g(!1),f=g(!1);return(()=>z(this,null,function*(){try{const n=yield P.App.Check.POST({name:"ddnsto"});if(n!=null&&n.data){const{result:i,error:r}=n.data;if(r){c.value=r;return}if(i){if(i.status=="installed"){u.onSetup("ddnsto-login");return}i.status=="uninstalled"&&(c.value="\u9700\u8981\u5B89\u88C5DDNSTO\u63D2\u4EF6\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5F00\u59CB\u5B89\u88C5")}}}catch(n){c.value=n}_.value=!0}))(),(n,i)=>(a(),d("div",Dc,[kc,t("div",wc,[t("span",null,F(c.value),1)]),t("div",Bc,[_.value?(a(),d(N,{key:0},[t("div",{class:"close",onClick:s},"\u53D6\u6D88"),t("div",{class:"next",onClick:o},"\u786E\u5B9A")],64)):w("",!0)])]))}});var xc=S(Ac,[["__scopeId","data-v-4f87c1d1"]]);const Sc=e=>(q("data-v-06c9d91d"),e=e(),H(),e),Ic={class:"actioner-container"},Vc=Sc(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),Pc={class:"actioner-container_body"},Mc=I({__name:"setup-ddnsto-run",props:{onSetup:{type:Function,required:!0},token:{type:String,required:!0},onDdnstoLocalConfig:{type:Function,required:!0}},setup(e){const u=e,s=g("\u6B63\u5728\u68C0\u6D4B\u63D2\u4EF6\u662F\u5426\u5DF2\u542F\u52A8...");(n=>z(this,null,function*(){var i;try{const r=yield P.Guide.Ddnsto.POST({token:u.token});r!=null&&r.data&&(r.data.error&&(s.value=r.data.error),(((i=r==null?void 0:r.data)==null?void 0:i.success)||0)==0&&_())}catch(r){s.value=r}}))(u.token);const c=g(),_=()=>{const n=()=>z(this,null,function*(){if((yield f())===!0){h();return}c.value=window.setTimeout(n,2e3)});n()},f=()=>z(this,null,function*(){try{const n=yield P.App.Check.POST({name:"ddnsto",checkRunning:!0});if(n!=null&&n.data){n.data.error&&(s.value=n.data.error);const i=n.data.result;if((i==null?void 0:i.status)=="running")return!0}}catch(n){s.value=n}return!1});wt(()=>{c.value&&clearInterval(c.value)});const h=()=>z(this,null,function*(){var n;try{const i=yield P.Guide.DdntoConfig.GET();if(i!=null&&i.data&&(i.data.error&&(s.value=i.data.error),(((n=i==null?void 0:i.data)==null?void 0:n.success)||0)==0&&i.data.result)){const r=i.data.result;u.onDdnstoLocalConfig(r.netAddr,r.deviceId),u.onSetup("ddnsto-bind")}}catch(i){s.value=i}});return(n,i)=>(a(),d("div",Ic,[Vc,t("div",Pc,F(s.value),1)]))}});var Tc=S(Mc,[["__scopeId","data-v-06c9d91d"]]);const Lc={class:"action-main"},zc=I({__name:"index",props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const u=e,s=g("ddnsto-install"),o=n=>{n!=null?s.value=n:c()},c=()=>{u.Close&&u.Close()},_=mt({sign:"",token:"",domain:u.url,netaddr:"",routerId:""}),f=(n,i)=>{_.sign=n,_.token=i},h=(n,i)=>{_.netaddr=n,_.routerId=i};return(n,i)=>(a(),L(st,{type:1},{default:V(()=>[t("div",Lc,[s.value=="ddnsto-install"?(a(),L(xc,{key:0,onSetup:o})):s.value=="ddnsto-login"?(a(),L(oc,{key:1,onSetup:o,onDdnstoConfig:f})):s.value=="ddnsto-run"?(a(),L(Tc,{key:2,onSetup:o,token:_.token,onDdnstoLocalConfig:h},null,8,["token"])):s.value=="ddnsto-bind"?(a(),L(_c,{key:3,onSetup:o,config:{token:_.token,sign:_.sign,domain:_.domain,netaddr:_.netaddr,routerId:_.routerId},domain:_.domain,"onUpdate:domain":i[0]||(i[0]=r=>_.domain=r)},null,8,["config","domain"])):s.value=="ddnsto-save"?(a(),L(bc,{key:4,onSetup:o,target:_.domain},null,8,["target"])):w("",!0)])]),_:1}))}});var Nc=S(zc,[["__scopeId","data-v-2b767e18"]]);const Oc=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Nc,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const qc={class:"action"},Hc={class:"action-header"},Uc=["innerHTML"],Rc={class:"action-footer"},Gc=I({__name:"index",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 u=e,s=()=>{u.next&&u.next(),u.Close&&u.Close()},o=()=>{u.clear&&u.clear(),u.Close&&u.Close()},c=()=>{u.continuer&&u.continuer(),u.Close&&u.Close()};return(_,f)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[t("div",qc,[t("div",Hc,F(e.title),1),t("div",{class:"action-body",innerHTML:e.content},null,8,Uc),t("div",Rc,[e.clear?(a(),d("div",{key:0,class:"clear",onClick:o},F(e.clearTitle),1)):w("",!0),t("div",{class:"next",onClick:s},F(e.nextTitle),1),e.continuer?(a(),d("div",{key:1,class:"next",onClick:c},F(e.continuerTitle),1)):w("",!0)])])]),_:1},8,["Close"]))}});var Wc=S(Gc,[["__scopeId","data-v-4283f74c"]]);const $e=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Wc,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const j=e=>(q("data-v-b1e12544"),e=e(),H(),e),Zc={class:"actioner-container"},jc=["onSubmit"],Xc=j(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),Yc={key:0,class:"title_info"},Qc=j(()=>t("p",null,"\u963F\u91CC\u4E91",-1)),Kc=j(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),Jc=j(()=>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)),td=[Qc,Kc,Jc],ed={key:1,class:"title_info"},ud=j(()=>t("p",null,"dnspod",-1)),sd=j(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),nd=j(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#dnspod",target:"_blank"},"\u67E5\u770B\u6559\u7A0B>>",-1)),od=[ud,sd,nd],ad={key:2,class:"title_info"},id=j(()=>t("p",null,"\u82B1\u751F\u58F3",-1)),ld=j(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),cd=j(()=>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)),dd=[id,ld,cd],rd={class:"label-item"},_d=j(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u5730\u5740\u7248\u672C\uFF1A")],-1)),pd={class:"label-item_value"},vd=j(()=>t("option",{value:"ipv4"},"IPv4\u5730\u5740",-1)),hd=j(()=>t("option",{value:"ipv6"},"IPv6\u5730\u5740",-1)),Fd=[vd,hd],md=j(()=>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)),fd={class:"label-item"},Ed=j(()=>t("div",{class:"label-item_key"},[t("span",null,"\u57DF\u540D\uFF1A")],-1)),Cd={class:"label-item_value"},$d={class:"label-item"},gd=j(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D\uFF1A")],-1)),bd={class:"label-item_value"},yd={class:"label-item"},Dd=j(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801\uFF1A")],-1)),kd={class:"label-item_value"},wd={class:"actioner-container_footer"},Bd=["disabled"],Ad=I({__name:"setup-ddns",props:{name:{type:String,default:"ali"},onSetup:{type:Function,required:!0},target:{type:String,required:!0}},emits:["update:target"],setup(e,{emit:u}){const s=e,o=g("ipv4"),c=g(s.name),_=g(""),f=g(""),h=g(""),n=g(!1),i=()=>{s.onSetup("index")},r=()=>{n.value=!0;const p=A.Loading("\u68C0\u6D4B\u4E2D...");P.Network.CheckPublickNet.POST({ipVersion:o.value}).then(l=>{var E,v;if(l!=null&&l.data){if((E=l==null?void 0:l.data)!=null&&E.error){A.Warning(l==null?void 0:l.data.error);return}if((((v=l==null?void 0:l.data)==null?void 0:v.success)||0)==0){const C=l.data.result;C&&C.address?D():m();return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(l=>{A.Error(l)}).finally(()=>{p.Close(),n.value=!1})},m=()=>{$e({title:"\u6E29\u99A8\u63D0\u793A",nextTitle:"\u4F7F\u7528DDNSTO",continuerTitle:"\u7EE7\u7EED\u4FDD\u5B58",content:"\u68C0\u6D4B\u5230\u60A8\u7684wan\u53E3\u6CA1\u6709\u516C\u7F51IP\u6216\u8005IPv6\u5730\u5740\uFF0C\u53EF\u4EE5\u4F7F\u7528DDNSTO\u914D\u7F6E\u8FDC\u7A0B\u57DF\u540D\u8BBF\u95EE",next(){b()},continuer(){D()},clear(){}})},b=()=>{s.onSetup("ddnsto")},D=()=>{n.value=!0;const p=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.PostDdns.POST({ipVersion:o.value,serviceName:c.value,domain:_.value,userName:f.value,password:h.value}).then(l=>{if(l!=null&&l.data){const{error:E,scope:v,success:C}=l.data;if(E=="-100"&&v=="guide.ddns"){$e({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(E){A.Warning(E);return}if((C||0)==0){u("update:target",_.value),s.onSetup("ddns-success");return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(l=>{A.Error(l)}).finally(()=>{p.Close(),n.value=!1})};return(p,l)=>(a(),d("div",Zc,[t("form",{class:"actioner-dns",onSubmit:it(r,["prevent"])},[Xc,t("div",{class:Xt(["actioner-container_body",e.name])},[e.name=="ali"?(a(),d("div",Yc,td)):e.name=="dnspod"?(a(),d("div",ed,od)):e.name=="oray"?(a(),d("div",ad,dd)):w("",!0),t("div",rd,[_d,t("div",pd,[T(t("select",{name:"",id:"","onUpdate:modelValue":l[0]||(l[0]=E=>o.value=E)},Fd,512),[[Et,o.value]])]),md]),t("div",fd,[Ed,t("div",Cd,[T(t("input",{type:"text",placeholder:"myhost.example.com","onUpdate:modelValue":l[1]||(l[1]=E=>_.value=E),required:""},null,512),[[Y,_.value,void 0,{trim:!0}]])])]),t("div",$d,[gd,t("div",bd,[T(t("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=E=>f.value=E),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",required:""},null,512),[[Y,f.value,void 0,{trim:!0}]])])]),t("div",yd,[Dd,t("div",kd,[T(t("input",{type:"password","onUpdate:modelValue":l[3]||(l[3]=E=>h.value=E),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",required:""},null,512),[[Y,h.value,void 0,{trim:!0}]])])])],2),t("div",wd,[t("div",{class:"close",onClick:i,type:"button"},"\u8FD4\u56DE"),t("button",{class:"next save",type:"submit",disabled:n.value}," \u4FDD\u5B58 ",8,Bd)])],40,jc)]))}});var Gt=S(Ad,[["__scopeId","data-v-b1e12544"]]);const xd={class:"action-main"},Sd=I({__name:"index",props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const u=e,s=g(""),o=g("index"),c=n=>{if(n!=null){if(n=="ddnsto"){_();return}o.value=n}else f()},_=()=>{f(),Oc({url:u.url})},f=()=>{u.Close&&u.Close()},h=g("ddnsto");return(n,i)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[t("div",xd,[o.value=="index"?(a(),L(U1,{key:0,onSetup:c,active:h.value,"onUpdate:active":i[0]||(i[0]=r=>h.value=r)},null,8,["active"])):o.value=="ddns-ali"?(a(),L(Gt,{key:1,onSetup:c,target:s.value,"onUpdate:target":i[1]||(i[1]=r=>s.value=r),name:"ali"},null,8,["target"])):o.value=="ddns-dnspod"?(a(),L(Gt,{key:2,onSetup:c,target:s.value,"onUpdate:target":i[2]||(i[2]=r=>s.value=r),name:"dnspod"},null,8,["target"])):o.value=="ddns-oray"?(a(),L(Gt,{key:3,onSetup:c,target:s.value,"onUpdate:target":i[3]||(i[3]=r=>s.value=r),name:"oray"},null,8,["target"])):o.value=="ddns-success"?(a(),L(tc,{key:4,onSetup:c,target:s.value},null,8,["target"])):w("",!0)])]),_:1},8,["Close"]))}});var Id=S(Sd,[["__scopeId","data-v-5d97cabd"]]);const Vd=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Id,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};var Pd=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var u=document.activeElement,s=[],o=0;o(q("data-v-aa42396e"),e=e(),H(),e),Od={class:"button",style:{"margin-bottom":"8px"}},qd={href:"https://www.kooldns.cn/app/#/devices",target:"_blank"},Hd={class:"row"},Ud={class:"text"},Rd=Qt(()=>t("span",null,"DDNSTO\uFF1A",-1)),Gd={key:0},Wd=["href","title"],Zd={key:1,class:"configure"},jd={key:0,class:"row"},Xd={class:"text"},Yd=Qt(()=>t("span",null,"muddns_ipv4\uFF1A",-1)),Qd={key:0,class:"configure"},Kd=["href"],Jd={key:0,class:"button"},tr={key:1,class:"row"},er={class:"text"},ur=Qt(()=>t("span",null,"muddns_ipv6\uFF1A",-1)),sr={key:0,class:"configure"},nr=["href"],or={key:0,class:"button"},ar=I({__name:"ddns",setup(e){const u=g({});let s=!1,o;const c=n=>{Nd(n),A.Message("\u590D\u5236\u6210\u529F")};lt(()=>{s=!0,o=window.setTimeout(h,1100)}),wt(()=>{o!==void 0&&window.clearTimeout(o),s=!1});const _=R(()=>{const n=u.value.ipv4Domain;return!n||n=="Stopped"||n=="Disabled"?n:`http://${n}`}),f=R(()=>{const n=u.value.ipv6Domain;return!n||n=="Stopped"||n=="Disabled"?n:`http://${n}`}),h=function(){!s||P.Guide.Ddns.GET().then(n=>{var i;n!=null&&n.data&&(((i=n==null?void 0:n.data)==null?void 0:i.success)||0)==0&&n.data.result&&(u.value=n.data.result)}).then(()=>{})};return(n,i)=>(a(),L(W,{title:n.$t("\u8FDC\u7A0B\u57DF\u540D"),padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/3yFiX5-X/",span:24,action:{text:n.$t("\u5FEB\u901F\u914D\u7F6E"),onClick:()=>{Z(Vd)({url:u.value.ddnstoDomain})}}},{default:V(()=>{var r,m,b,D;return[t("div",Od,[t("a",qd,F(n.$t("\u524D\u5F80\u63A7\u5236\u53F0")),1)]),t("div",Hd,[t("div",Ud,[Rd,(r=u.value)!=null&&r.ddnstoDomain?(a(),d("span",Gd,[t("a",{class:"configure",href:(m=u.value)==null?void 0:m.ddnstoDomain,target:"_blank",rel:"noopener noreferrer",title:(b=u.value)==null?void 0:b.ddnstoDomain},F((D=u.value)==null?void 0:D.ddnstoDomain),9,Wd),t("img",{src:k1,onClick:i[0]||(i[0]=p=>{var l;return c((l=u.value)==null?void 0:l.ddnstoDomain)})})])):(a(),d("span",Zd,F(n.$t("\u672A\u5B89\u88C5\u6216\u672A\u914D\u7F6E")),1))])]),_.value?(a(),d("div",jd,[t("div",Xd,[Yd,_.value==="Stopped"||_.value==="Disabled"?(a(),d("span",Qd,F(_.value),1)):(a(),d("a",{key:1,target:"_blank",rel:"noopener noreferrer",href:_.value,class:"configure"},F(_.value),9,Kd))]),_.value?(a(),d("div",Jd,[t("span",{onClick:i[1]||(i[1]=p=>Z(ot)({title:"muddns_ipv4",src:"/cgi-bin/luci/admin/services/ddns"}))},F(n.$t("\u7F16\u8F91")),1)])):w("",!0)])):w("",!0),f.value?(a(),d("div",tr,[t("div",er,[ur,f.value==="Stopped"||f.value==="Disabled"?(a(),d("span",sr,F(f.value),1)):(a(),d("a",{key:1,target:"_blank",rel:"noopener noreferrer",href:f.value,class:"configure"},F(f.value),9,nr))]),f.value?(a(),d("div",or,[t("span",{onClick:i[2]||(i[2]=p=>Z(ot)({title:"muddns_ipv4",src:"/cgi-bin/luci/admin/services/ddns"}))},F(n.$t("\u7F16\u8F91")),1)])):w("",!0)])):w("",!0)]}),_:1},8,["title","action"]))}});var ir=S(ar,[["__scopeId","data-v-aa42396e"]]);const lr={},cr={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"},dr=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),rr=[dr];function _r(e,u){return a(),d("svg",cr,rr)}var pr=S(lr,[["render",_r]]);const X=e=>(q("data-v-097a32fc"),e=e(),H(),e),vr={key:0,class:"action"},hr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Fr=X(()=>t("p",{class:"desc"}," \u5F53\u7CFB\u7EDF\u6839\u76EE\u5F55\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u5C06docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\uFF0C\u4EE5\u4FDD\u8BC1\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C: ",-1)),mr={key:1,class:"action"},fr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Er=X(()=>t("p",{class:"desc"}," \u5F53\u7CFB\u7EDF\u6839\u76EE\u5F55\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u5C06docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\uFF0C\u4EE5\u4FDD\u8BC1\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C: ",-1)),Cr={class:"roots"},$r=X(()=>t("span",{class:"roots_tit"},"Docker\u6839\u76EE\u5F55\uFF1A",-1)),gr={class:"root"},br={class:"move"},yr=X(()=>t("span",{class:"roots_tit"},"\u8FC1\u79FB\u5230\uFF1A",-1)),Dr={key:0},kr=["onSubmit"],wr={class:"select-editable"},Br=X(()=>t("option",{selected:"",value:null},"\u8BF7\u9009\u62E9\u8FC1\u79FB\u5730\u5740",-1)),Ar=["value"],xr=X(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),Sr={key:1,class:"tips"},Ir={class:"tips_content"},Vr=X(()=>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)),Pr={key:0,class:"btns"},Mr={key:1,class:"btns"},Tr={key:2,class:"action docker_success"},Lr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),zr={class:"finished"},Nr=X(()=>t("p",{class:"successed"},"\u8FC1\u79FB\u6210\u529F\uFF01",-1)),Or={key:3,class:"action docker_download"},qr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Hr={class:"finished"},Ur=X(()=>t("p",{class:"successed"},"\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),Rr={class:"docker_moves"},Gr={class:"moves change"},Wr=X(()=>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)),Zr={class:"moves"},jr=X(()=>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)),Xr={class:"btns"},Yr=I({__name:"index",props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const u=e,s=g(),o=g(),c=g(0),_=g("null"),f=g(""),h=g(),n=g(!1),i=g("");(()=>{P.Nas.Disk.Status.GET().then(v=>{v!=null&&v.data.result&&(h.value=v==null?void 0:v.data.result)}),P.Guide.DockerStatus.GET().then(v=>{var C;if((C=v==null?void 0:v.data)!=null&&C.result){const k=v.data.result;s.value=k}}),P.Guide.DockerPartitionList.GET().then(v=>{var C;if((C=v==null?void 0:v.data)!=null&&C.result){const k=v.data.result;o.value=k}})})();const m=v=>{let C=_.value;if(C=="useInput"&&(C=f.value),C==null||C=="null"||C=="")return;const k=A.Loading("\u6B63\u5728\u8FC1\u79FB\u4E2D...");P.Guide.DockerTransfer.POST({path:C,force:v,overwriteDir:!!i.value}).then($=>{var y;if($!=null&&$.data){if(($.data.success||0)==0){if((y=$.data.result)!=null&&y.emptyPathWarning){n.value=!0,c.value=2;return}c.value=1;return}else if($.data.error)throw $.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch($=>{A.Error($)}).finally(()=>k.Close())},b=()=>{n.value=!1,m(!1)},D=v=>{v.preventDefault(),u.Close&&u.Close()},p=v=>{v.preventDefault(),location.reload()},l=v=>{v.preventDefault(),c.value=0},E=v=>{v.preventDefault(),m(!0)};return(v,C)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>{var k,$,y,x,G,M;return[c.value==-1?(a(),d("div",vr,[hr,Fr,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:D}," \u53D6\u6D88 ")])])):c.value==0?(a(),d("div",mr,[fr,Er,t("div",Cr,[$r,t("span",gr,F((k=s.value)==null?void 0:k.path),1)]),t("div",br,[yr,(y=($=o.value)==null?void 0:$.partitionList)!=null&&y.length?(a(),d("div",Dr,[t("form",{onSubmit:it(b,["prevent"])},[t("label",null,[t("div",wr,[T(t("select",{"onUpdate:modelValue":C[0]||(C[0]=O=>_.value=O)},[Br,(a(!0),d(N,null,tt((x=o.value)==null?void 0:x.partitionList,(O,nt)=>(a(),d("option",{value:O,key:nt},F(O),9,Ar))),128)),xr],512),[[Et,_.value,void 0,{trim:!0}]]),_.value=="useInput"?T((a(),d("input",{key:0,type:"text","onUpdate:modelValue":C[1]||(C[1]=O=>f.value=O),required:"",placeholder:"\u8BF7\u8F93\u5165\u8FC1\u79FB\u5730\u5740"},null,512)),[[Y,f.value,void 0,{trim:!0}]]):w("",!0)])])],40,kr)])):o.value?(a(),d("div",Sr,[t("div",Ir,[B(rt),Vr])])):w("",!0)]),(M=(G=o.value)==null?void 0:G.partitionList)!=null&&M.length?(a(),d("div",Pr,[t("button",{class:"cbi-button cbi-button-apply",onClick:b}," \u786E\u5B9A "),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:D}," \u53D6\u6D88 ")])):(a(),d("div",Mr,[t("button",{class:"cbi-button cbi-button-apply",onClick:D}," \u786E\u5B9A ")]))])):c.value==1?(a(),d("div",Tr,[Lr,t("div",zr,[B(Yt)]),Nr,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:p}," \u786E\u5B9A ")])])):c.value==2?(a(),d("div",Or,[qr,t("div",Hr,[B(pr)]),Ur,t("div",Rr,[t("div",Gr,[T(t("input",{type:"radio",id:"move",name:"moves","onUpdate:modelValue":C[2]||(C[2]=O=>i.value=O),value:""},null,512),[[at,i.value]]),Wr]),t("div",Zr,[T(t("input",{type:"radio",id:"cover",name:"moves","onUpdate:modelValue":C[3]||(C[3]=O=>i.value=O),value:"true"},null,512),[[at,i.value]]),jr])]),t("div",Xr,[n.value?(a(),d("button",{key:0,class:"cbi-button cbi-button-apply",onClick:E}," \u786E\u5B9A ")):w("",!0),t("button",{class:"cbi-button cbi-button-apply",onClick:l}," \u8FD4\u56DE "),n.value?w("",!0):(a(),d("button",{key:1,class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:p}," \u53D6\u6D88 "))])])):w("",!0)]}),_:1},8,["Close"]))}});var Qr=S(Yr,[["__scopeId","data-v-097a32fc"]]);const be=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(Qr,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}};const Kr=e=>(q("data-v-750b6b3e"),e=e(),H(),e),Jr={class:"button"},t5={class:"row"},e5={class:"text"},u5={key:0,class:"docker-item-value"},s5={class:"configure"},n5={key:1,class:"docker-item-value"},o5={class:"input-switch"},a5=["value","disabled"],i5=Kr(()=>t("em",null,null,-1)),l5=[i5],c5={key:0,class:"row"},d5={class:"text"},r5={style:{width:"100%"}},_5={class:"configure"},p5={key:0},v5={class:"tooltip-trigger"},h5={class:"docker_tip"},F5={class:"tooltip-text tooltip-top"},m5={class:"docker_dir_tip"},f5=I({__name:"docker",setup(e){const u=g(!1),s=g(),o=mt({enable:!1,disabled:!1}),c=()=>z(this,null,function*(){const n=A.Loading(o.enable?"Docker\u5F00\u542F\u4E2D...":"Docker\u5173\u95ED\u4E2D...");o.disabled=!0;try{const i=yield P.Guide.DockerSwitch.POST({enable:o.enable});if(i!=null&&i.data){const{success:r,error:m}=i.data;if(m)throw o.enable=!o.enable,m;(r||0)==0&&h()}}catch(i){A.Warning(`${i}`)}finally{o.disabled=!1}n.Close()}),_=()=>{window.open("/cgi-bin/luci/admin/docker/overview","_blank")},f=()=>{be()},h=()=>{P.Guide.DockerStatus.GET().then(n=>{var i;if((i=n==null?void 0:n.data)!=null&&i.result){const r=n.data.result;s.value=r,r.status==="running"&&(o.enable=!0)}}).finally(()=>{u.value=!0})};return setTimeout(h,1100),(n,i)=>{var r;return a(),L(W,{title:"Docker",padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/2Q28MDtf/",moreActions:[{show:((r=s.value)==null?void 0:r.status)==="running",text:"\u67E5\u770BDocker\u4FE1\u606F",onClick:f}],span:24},{default:V(()=>{var m,b,D,p;return[t("div",Jr,[t("span",{onClick:i[0]||(i[0]=l=>Z(be)({setup:0}))},F(n.$t("\u8FC1\u79FB\u5411\u5BFC")),1),t("span",{onClick:_},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)]),t("div",t5,[t("div",e5,[t("span",null,F(n.$t("\u5F53\u524D\u72B6\u6001")),1)]),(m=s.value)!=null&&m.status?(a(),d(N,{key:0},[((b=s.value)==null?void 0:b.status)==="not installed"?(a(),d("div",u5,[t("span",s5,F(n.$t("\u672A\u5B89\u88C5")),1)])):(a(),d("div",n5,[t("label",o5,[T(t("input",{type:"checkbox",hidden:"",value:!o.enable,"onUpdate:modelValue":i[1]||(i[1]=l=>o.enable=l),disabled:o.disabled,onChange:c},null,40,a5),[[ye,o.enable]]),t("span",{class:Xt(o.enable?"enable":"close")},l5,2)])]))],64)):w("",!0)]),o.enable?(a(),d("div",c5,[t("div",d5,[t("span",null,"Docker "+F(n.$t("\u6839\u76EE\u5F55"))+"\uFF1A",1),t("div",r5,[t("span",_5,F((D=s.value)==null?void 0:D.path),1),(p=s.value)!=null&&p.errorInfo?(a(),d("span",p5,[t("span",v5,[t("span",h5,[B(rt)]),t("div",null,[t("div",F5,[t("span",m5,F(s.value.errorInfo),1)])])])])):w("",!0)])])])):w("",!0)]}),_:1},8,["moreActions"])}}});var E5=S(f5,[["__scopeId","data-v-750b6b3e"]]);const C5=e=>(q("data-v-68b4579e"),e=e(),H(),e),$5={class:"select-editable"},g5=["value"],b5=C5(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),y5=["placeholder"],D5=I({__name:"index",props:{modelValue:{type:String,required:!0},title:{type:String,default:""},options:{type:Array,default:[]}},emits:["update:modelValue"],setup(e,{emit:u}){const s=e,o=g(""),c=g(""),_=R({get:()=>s.modelValue.valueOf(),set:i=>u("update:modelValue",i)}),f=i=>{if(i===o.value||o.value==="useInput"&&i===c.value){_.value=s.options[0].key;return}i===""||s.options.some(r=>r.key===i)?o.value=i:(c.value=i,o.value="useInput")};Xe(()=>s.modelValue,i=>{f(i)}),lt(()=>{const i=_.value;f(i)});const h=i=>{o.value==="useInput"?_.value=c.value:_.value=o.value},n=i=>{_.value=c.value};return(i,r)=>(a(),d("label",null,[t("div",$5,[T(t("select",{"onUpdate:modelValue":r[0]||(r[0]=m=>o.value=m),autocomplete:"off",onChange:h},[(a(!0),d(N,null,tt(e.options,(m,b)=>(a(),d("option",{value:m.key,key:b},F(m.value||m.key),9,g5))),128)),b5],544),[[Et,o.value,void 0,{trim:!0}]]),o.value=="useInput"?T((a(),d("input",{key:0,type:"text","onUpdate:modelValue":r[1]||(r[1]=m=>c.value=m),required:"",placeholder:"\u8BF7\u8F93\u5165"+e.title,onChange:n},null,40,y5)),[[Y,c.value,void 0,{trim:!0}]]):w("",!0)])]))}});var kt=S(D5,[["__scopeId","data-v-68b4579e"]]);const k5={},w5={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"},B5=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),A5=[B5];function x5(e,u){return a(),d("svg",w5,A5)}var $t=S(k5,[["render",x5]]);const U=e=>(q("data-v-f4c41bf2"),e=e(),H(),e),S5={key:0,class:"action"},I5=U(()=>t("h2",{class:"title"},"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",-1)),V5={class:"load_service input_row"},P5=U(()=>t("div",{class:"left"},[t("span",null,"\u4E0B\u8F7D\u670D\u52A1\uFF1A")],-1)),M5={class:"radios"},T5=U(()=>t("label",{for:"Aria2"},"Aria2",-1)),L5={class:"radios"},z5=U(()=>t("label",{for:"qB"},"qBittorrent",-1)),N5={class:"radios"},O5=U(()=>t("label",{for:"Tr"},"Transmission",-1)),q5=["onSubmit"],H5={class:"input_row"},U5={class:"left"},R5={class:"tooltip-trigger"},G5=U(()=>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)),W5=U(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),Z5={class:"myinput_wrap"},j5={class:"input_row"},X5={class:"left"},Y5={class:"tooltip-trigger"},Q5=U(()=>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)),K5=U(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),J5={class:"myinput_wrap"},t6={class:"input_row"},e6={class:"left"},u6={class:"tooltip-trigger"},s6=U(()=>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)),n6=U(()=>t("span",null,"RPC \u4EE4\u724C\uFF1A",-1)),o6={class:"input_row"},a6=U(()=>t("div",{class:""},[t("span",null,"\u9644\u52A0\u7684 BT Tracker\uFF1A")],-1)),i6={class:"radios"},l6=U(()=>t("label",{for:"default"},"\u9ED8\u8BA4",-1)),c6={class:"radios"},d6=U(()=>t("label",{for:"add"},"\u81EA\u5DF1\u6DFB\u52A0",-1)),r6={class:"input_row"},_6=U(()=>t("div",{class:"left"},null,-1)),p6={class:"myinput_wrap Tracker_input"},v6=["onSubmit"],h6={class:"input_row"},F6={class:"left"},m6={class:"tooltip-trigger"},f6=U(()=>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)),E6=U(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),C6={class:"myinput_wrap"},$6={class:"input_row"},g6={class:"left"},b6={class:"tooltip-trigger"},y6=U(()=>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)),D6=U(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),k6={class:"myinput_wrap"},w6=["onSubmit"],B6={class:"input_row"},A6={class:"left"},x6={class:"tooltip-trigger"},S6=U(()=>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)),I6=U(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),V6={class:"myinput_wrap"},P6={class:"input_row"},M6={class:"left"},T6={class:"tooltip-trigger"},L6=U(()=>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)),z6=U(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),N6={class:"myinput_wrap"},O6={class:"btns"},q6={key:1,class:"action"},H6={class:"title"},U6={class:"finished"},R6=U(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),G6=I({__name:"index",props:{services:{type:Object,required:!0},partitionList:{type:Array,required:!0},defaultTab:{type:String,required:!1},Close:Function},setup(e){const u=e,s=g(""),o=g(""),c=g(""),_=g(""),f=g("default"),h=g("Aria2"),n=g(""),i=g(""),r=g(""),m=g(""),b=g([]),D=g([]),p=g(0);lt(()=>{var M,O,nt,xt,St,It,Vt,Pt,Mt,Tt;switch(u.defaultTab){case"aria2":h.value="Aria2";break;case"qbittorrent":h.value="qBittorrent";break;case"transmission":h.value="Transmission";break}b.value=u.partitionList.map(pt=>({key:pt})),D.value=u.partitionList.filter(pt=>pt.startsWith("/mnt/")).map(pt=>pt.replace(/(\/mnt\/[^/]+).*/,"$1")),c.value=((M=u.services.aria2)==null?void 0:M.configPath)||"";const $=((O=u.services.aria2)==null?void 0:O.downloadPath)||((nt=u.services.qbittorrent)==null?void 0:nt.downloadPath)||((xt=u.services.transmission)==null?void 0:xt.downloadPath);$&&(_.value=$);const y=(St=u.services.aria2)==null?void 0:St.rpcToken;y&&(s.value=y),n.value=((It=u.services.qbittorrent)==null?void 0:It.configPath)||"";const x=((Vt=u.services.qbittorrent)==null?void 0:Vt.downloadPath)||$||((Pt=u.services.transmission)==null?void 0:Pt.downloadPath);x&&(i.value=x),r.value=((Mt=u.services.transmission)==null?void 0:Mt.configPath)||"";const G=((Tt=u.services.transmission)==null?void 0:Tt.downloadPath)||$||x;G&&(m.value=G)});const l=()=>{let $=c.value,y=_.value;$==null||$==""||y==null||y==""||z(this,null,function*(){if(yield gt.checkAndInstallApp("app-meta-aria2","Aria2")){const G=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.Aria2Init.POST({configPath:$,downloadPath:y,rpcToken:s.value,btTracker:f.value=="add"?o.value:""}).then(M=>{var O;if(M!=null&&M.data){if((M.data.success||0)==0){p.value=1;return}else if((O=M.data)!=null&&O.error)throw M.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(M=>A.Error(M)).finally(()=>G.Close())}})},E=()=>{let $=n.value,y=i.value;$==null||$==""||y==null||y==""||z(this,null,function*(){if(yield gt.checkAndInstallApp("app-meta-qbittorrent","qBittorrent")){const G=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.qbitorrentInit.POST({configPath:$,downloadPath:y}).then(M=>{var O;if(M!=null&&M.data){if((M.data.success||0)==0){p.value=1;return}else if((O=M.data)!=null&&O.error)throw M.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(M=>A.Error(M)).finally(()=>G.Close())}})},v=()=>{let $=r.value,y=m.value;$==null||$==""||y==null||y==""||z(this,null,function*(){if(yield gt.checkAndInstallApp("app-meta-transmission","Transmission")){const G=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.transmissionInit.POST({configPath:$,downloadPath:y}).then(M=>{var O;if(M!=null&&M.data){if((M.data.success||0)==0){p.value=1;return}else if((O=M.data)!=null&&O.error)throw M.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(M=>A.Error(M)).finally(()=>G.Close())}})},C=$=>{$.preventDefault(),u.Close&&u.Close()},k=$=>{$.preventDefault(),location.reload()};return($,y)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[p.value==0?(a(),d("div",S5,[I5,t("ul",null,[t("li",null,[t("div",V5,[P5,t("div",M5,[T(t("input",{type:"radio",value:"Aria2","onUpdate:modelValue":y[0]||(y[0]=x=>h.value=x),name:"download",id:"Aria2"},null,512),[[at,h.value]]),T5]),t("div",L5,[T(t("input",{type:"radio",value:"qBittorrent","onUpdate:modelValue":y[1]||(y[1]=x=>h.value=x),name:"download",id:"qB"},null,512),[[at,h.value]]),z5]),t("div",N5,[T(t("input",{type:"radio",value:"Transmission","onUpdate:modelValue":y[2]||(y[2]=x=>h.value=x),name:"download",id:"Tr"},null,512),[[at,h.value]]),O5])])])]),h.value=="Aria2"?(a(),d("form",{key:0,onSubmit:it(l,["prevent"])},[t("ul",null,[t("li",null,[t("div",H5,[t("div",U5,[t("span",R5,[B($t),G5]),W5]),t("div",Z5,[B(kt,{modelValue:c.value,"onUpdate:modelValue":y[3]||(y[3]=x=>c.value=x),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:D.value.concat("/root").map(x=>({key:x+"/Configs/aria2"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",j5,[t("div",X5,[t("span",Y5,[B($t),Q5]),K5]),t("div",J5,[B(kt,{modelValue:_.value,"onUpdate:modelValue":y[4]||(y[4]=x=>_.value=x),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:b.value},null,8,["modelValue","options"])])])]),t("li",null,[t("div",t6,[t("div",e6,[t("span",u6,[B($t),s6]),n6]),T(t("input",{type:"text",class:"RPC_input",placeholder:"\u8BF7\u8F93\u5165RPC\u4EE4\u724C","onUpdate:modelValue":y[5]||(y[5]=x=>s.value=x)},null,512),[[Y,s.value,void 0,{trim:!0}]])])]),t("li",null,[t("div",o6,[a6,t("div",i6,[T(t("input",{type:"radio",value:"default",name:"BT",id:"default","onUpdate:modelValue":y[6]||(y[6]=x=>f.value=x)},null,512),[[at,f.value]]),l6]),t("div",c6,[T(t("input",{type:"radio",value:"add",name:"BT",id:"add","onUpdate:modelValue":y[7]||(y[7]=x=>f.value=x)},null,512),[[at,f.value]]),d6])])]),t("li",null,[t("div",r6,[_6,t("div",p6,[f.value=="add"?T((a(),d("textarea",{key:0,"onUpdate:modelValue":y[8]||(y[8]=x=>o.value=x),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)),[[Y,o.value,void 0,{trim:!0}]]):w("",!0)])])])])],40,q5)):w("",!0),h.value=="qBittorrent"?(a(),d("form",{key:1,onSubmit:it(E,["prevent"])},[t("ul",null,[t("li",null,[t("div",h6,[t("div",F6,[t("span",m6,[B($t),f6]),E6]),t("div",C6,[B(kt,{modelValue:n.value,"onUpdate:modelValue":y[9]||(y[9]=x=>n.value=x),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:D.value.concat("/root").map(x=>({key:x+"/Configs/qb"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",$6,[t("div",g6,[t("span",b6,[B($t),y6]),D6]),t("div",k6,[B(kt,{modelValue:i.value,"onUpdate:modelValue":y[10]||(y[10]=x=>i.value=x),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:b.value},null,8,["modelValue","options"])])])])])],40,v6)):w("",!0),h.value=="Transmission"?(a(),d("form",{key:2,onSubmit:it(v,["prevent"])},[t("ul",null,[t("li",null,[t("div",B6,[t("div",A6,[t("span",x6,[B($t),S6]),I6]),t("div",V6,[B(kt,{modelValue:r.value,"onUpdate:modelValue":y[11]||(y[11]=x=>r.value=x),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:D.value.concat("/root").map(x=>({key:x+"/Configs/transmission"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",P6,[t("div",M6,[t("span",T6,[B($t),L6]),z6]),t("div",N6,[B(kt,{modelValue:m.value,"onUpdate:modelValue":y[12]||(y[12]=x=>m.value=x),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:b.value},null,8,["modelValue","options"])])])])])],40,w6)):w("",!0),t("div",O6,[h.value=="Aria2"?(a(),d("button",{key:0,class:"cbi-button cbi-button-apply",onClick:l}," \u542F\u7528 ")):w("",!0),h.value=="qBittorrent"?(a(),d("button",{key:1,class:"cbi-button cbi-button-apply",onClick:E}," \u542F\u7528 ")):w("",!0),h.value=="Transmission"?(a(),d("button",{key:2,class:"cbi-button cbi-button-apply",onClick:v}," \u542F\u7528 ")):w("",!0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:C}," \u53D6\u6D88 ")])])):p.value==1?(a(),d("div",q6,[t("h2",H6,F(h.value)+"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",1),t("div",U6,[B(Yt)]),R6,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:k}," \u786E\u5B9A ")])])):w("",!0)]),_:1},8,["Close"]))}});var W6=S(G6,[["__scopeId","data-v-f4c41bf2"]]);const Z6=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(W6,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const Ht=e=>(q("data-v-63fbd04d"),e=e(),H(),e),j6={class:"service-item"},X6={class:"name"},Y6=Ht(()=>t("span",null,"Aria2",-1)),Q6={class:"button"},K6={class:"info"},J6=["href"],t0=["href"],e0=Ht(()=>t("span",null,[K("\u4F7F\u7528"),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"},"\u6613\u6709\u4E91APP"),K("\uFF0C\u968F\u65F6\u968F\u5730\u8FDC\u7A0B\u4E0B\u8F7D")],-1)),u0={key:0},s0=["href"],n0={class:"service-item"},o0={class:"name"},a0=Ht(()=>t("span",null,"qBittorrent",-1)),i0={key:0,class:"button"},l0={class:"info"},c0=["href"],d0=["href"],r0={class:"service-item"},_0={class:"name"},p0=Ht(()=>t("span",null,"Transmission",-1)),v0={key:0,class:"button"},h0={class:"info"},F0=["href"],m0=I({__name:"download",setup(e){const u=g(),s=g("aria2"),o=g(window.location),c=()=>{P.Guide.DownloadPartition.List.GET().then(n=>{var r,m;let i=[];(m=(r=n==null?void 0:n.data)==null?void 0:r.result)!=null&&m.partitionList&&(i=n.data.result.partitionList),Z6({services:u.value,partitionList:i,defaultTab:s.value})})},_=()=>{P.Guide.DownloadService.Status.GET().then(n=>{var i;if((i=n==null?void 0:n.data)!=null&&i.result){const r=n.data.result;u.value=r}})},f=R(()=>{var n,i,r;if(u){let m=(n=u==null?void 0:u.aria2)==null?void 0:n.rpcToken;m&&(m=encodeURIComponent(btoa(m)));const b=encodeURIComponent(window.location.hostname);return`${window.location.origin}${(i=u==null?void 0:u.aria2)==null?void 0:i.webPath}/#!/settings/rpc/set/http/${b}/${(r=u==null?void 0:u.aria2)==null?void 0:r.rpcPort}/jsonrpc/${m}`}}),h=(n,i,r)=>z(this,null,function*(){window.open(r,"_blank")});return setTimeout(_,800),(n,i)=>(a(),L(W,{title:n.$t("\u4E0B\u8F7D\u670D\u52A1"),padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/2Q28MDtf/",span:24,action:{text:n.$t("\u5FEB\u901F\u914D\u7F6E"),onClick:c}},{default:V(()=>{var r,m,b,D,p,l,E,v,C,k,$,y,x,G,M,O,nt,xt,St,It,Vt,Pt,Mt,Tt,pt,Kt,Jt,te,ee,ue,se,ne,oe,ae,ie,le,ce,de,re,_e;return[t("div",j6,[t("div",X6,[t("span",null,[Y6,t("span",null,F(n.$t("\u6682\u65E0\u4E0B\u8F7D")),1)]),t("div",Q6,[t("span",{onClick:i[0]||(i[0]=pe=>h("app-meta-aria2","Aria2","/cgi-bin/luci/admin/services/aria2"))},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)])]),t("div",K6,[t("span",null,F(n.$t("\u5F53\u524D\u72B6\u6001"))+"\uFF1A"+F(`${((m=(r=u.value)==null?void 0:r.aria2)==null?void 0:m.status)==="running"?n.$t("\u5DF2\u542F\u52A8"):n.$t("\u672A\u542F\u52A8")}`),1),((D=(b=u.value)==null?void 0:b.aria2)==null?void 0:D.status)=="running"?(a(),d(N,{key:0},[t("span",null,[K(F(n.$t("\u4E0B\u8F7D\u76EE\u5F55"))+"\uFF1A ",1),t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((l=(p=u.value)==null?void 0:p.aria2)==null?void 0:l.downloadPath)},F((v=(E=u.value)==null?void 0:E.aria2)==null?void 0:v.downloadPath),9,J6)]),t("span",null,[K(F(n.$t("\u7F51\u7EDC\u5730\u5740"))+"\uFF1A ",1),t("a",{href:`http://${o.value.hostname}${(k=(C=u.value)==null?void 0:C.aria2)==null?void 0:k.webPath}`,target:"_blank",rel:"noopener noreferrer"},F(`http://${o.value.hostname}${(y=($=u.value)==null?void 0:$.aria2)==null?void 0:y.webPath}`),9,t0)])],64)):w("",!0),t("div",null,[e0,((G=(x=u.value)==null?void 0:x.aria2)==null?void 0:G.status)==="running"?(a(),d("span",u0,[K(F(n.$t("\u8BA4\u8BC1\u5931\u8D25"))+"\uFF1F ",1),t("a",{href:f.value,target:"_blank",rel:"noopener noreferrer"}," \u70B9\u6B64\u81EA\u52A8\u586B\u5145\u5BC6\u94A5 ",8,s0)])):w("",!0)])])]),t("div",n0,[t("div",o0,[t("span",null,[a0,t("span",null,F(n.$t("\u6682\u65E0\u4E0B\u8F7D")),1)]),((O=(M=u.value)==null?void 0:M.qbittorrent)==null?void 0:O.status)==="running"?(a(),d("div",i0,[t("span",{onClick:i[1]||(i[1]=pe=>h("app-meta-qbittorrent","qBittorrent","/cgi-bin/luci/admin/nas/qBittorrent"))},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)])):w("",!0)]),t("div",l0,[t("span",null,F(`${n.$t("\u5F53\u524D\u72B6\u6001")}\uFF1A${((xt=(nt=u.value)==null?void 0:nt.qbittorrent)==null?void 0:xt.status)==="running"?n.$t("\u5DF2\u542F\u52A8"):n.$t("\u672A\u542F\u52A8")}`),1),((It=(St=u.value)==null?void 0:St.qbittorrent)==null?void 0:It.status)=="running"?(a(),d(N,{key:0},[t("span",null,[K(F(n.$t("\u4E0B\u8F7D\u76EE\u5F55"))+"\uFF1A ",1),t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((Pt=(Vt=u.value)==null?void 0:Vt.qbittorrent)==null?void 0:Pt.downloadPath)},F((Tt=(Mt=u.value)==null?void 0:Mt.qbittorrent)==null?void 0:Tt.downloadPath),9,c0)]),t("span",null,[K(F(n.$t("\u7F51\u7EDC\u5730\u5740"))+"\uFF1A ",1),t("a",{href:`http://${o.value.hostname}${(Kt=(pt=u.value)==null?void 0:pt.qbittorrent)==null?void 0:Kt.webPath}`,target:"_blank",rel:"noopener noreferrer"},F(`http://${o.value.hostname}${(te=(Jt=u.value)==null?void 0:Jt.qbittorrent)==null?void 0:te.webPath}`),9,d0)])],64)):w("",!0)])]),t("div",r0,[t("div",_0,[t("span",null,[p0,t("span",null,F(n.$t("\u6682\u65E0\u4E0B\u8F7D")),1)]),((ue=(ee=u.value)==null?void 0:ee.transmission)==null?void 0:ue.status)==="running"?(a(),d("div",v0,[t("span",{onClick:i[2]||(i[2]=pe=>h("app-meta-transmission","Transmission","/cgi-bin/luci/admin/services/transmission"))},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)])):w("",!0)]),t("div",h0,[t("span",null,F(`${n.$t("\u5F53\u524D\u72B6\u6001")}\uFF1A${((ne=(se=u.value)==null?void 0:se.transmission)==null?void 0:ne.status)==="running"?n.$t("\u5DF2\u542F\u52A8"):n.$t("\u672A\u542F\u52A8")}`),1),((ae=(oe=u.value)==null?void 0:oe.transmission)==null?void 0:ae.status)=="running"?(a(),d(N,{key:0},[t("span",null,F(n.$t("\u4E0B\u8F7D\u76EE\u5F55"))+"\uFF1A "+F("/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((le=(ie=u.value)==null?void 0:ie.transmission)==null?void 0:le.downloadPath)),1),t("span",null,[K(F(n.$t("\u7F51\u7EDC\u5730\u5740"))+"\uFF1Ahttp ",1),t("a",{href:`http://${o.value.hostname}${(de=(ce=u.value)==null?void 0:ce.transmission)==null?void 0:de.webPath}`,target:"_blank",rel:"noopener noreferrer"},F(`http://${o.value.hostname}${(_e=(re=u.value)==null?void 0:re.transmission)==null?void 0:_e.webPath}`),9,F0)])],64)):w("",!0)])])]}),_:1},8,["title","action"]))}});var f0=S(m0,[["__scopeId","data-v-63fbd04d"]]);const E0=I({__name:"index",setup(e){return(u,s)=>(a(),L(ft,{title:u.$t("\u670D\u52A1\u72B6\u6001"),contentStyle:"flex-flow: column"},{default:V(()=>[B(ir),B(E5),B(f0)]),_:1},8,["title"]))}});var C0="/luci-static/istorex/file.png?v=055a0ac9",$0="/luci-static/istorex/user.png?v=fa675eea",g0="/luci-static/istorex/setting.png?v=bf214b33",b0="/luci-static/istorex/file-manage.png?v=3297497e",y0="/luci-static/istorex/sync.png?v=8384453e",D0="/luci-static/istorex/photo.png?v=3178eb60",k0="/luci-static/istorex/network.png?v=3314b340",w0="/luci-static/istorex/nas.png?v=902703f1";const At=e=>(q("data-v-41e0f196"),e=e(),H(),e),B0={class:"width-60 responsive"},A0={class:"card-content"},x0=At(()=>t("div",null,[t("img",{src:C0,alt:"\u5171\u4EAB\u6587\u4EF6"})],-1)),S0=At(()=>t("div",null,[t("img",{src:$0,alt:"\u5171\u4EAB\u7528\u6237"})],-1)),I0={class:"card-content"},V0=At(()=>t("div",null,[t("img",{src:g0,alt:"\u5171\u4EAB\u8BBE\u7F6E"})],-1)),P0={class:"card-content"},M0=At(()=>t("div",null,[t("img",{src:b0,alt:"\u6587\u4EF6\u7BA1\u7406"})],-1)),T0={class:"card-content"},L0=At(()=>t("div",null,[t("img",{src:y0,alt:"\u6587\u4EF6\u540C\u6B65"})],-1)),z0={class:"card-content"},N0=At(()=>t("div",null,[t("img",{src:D0,alt:"\u76F8\u518C\u5907\u4EFD"})],-1)),O0={class:"width-40 responsive"},q0={class:"card-content"},H0=["alt"],U0={class:"card-content"},R0=["alt"],G0=I({__name:"index",setup(e){const u=()=>{De.OpenGuideWindow()},s=()=>{window.open("/cgi-bin/luci/admin/services/linkease/file","_blank")},o=()=>{A.Message("\u6682\u672A\u5F00\u653E")};return(c,_)=>(a(),d("div",null,[t("div",B0,[B(ft,{title:c.$t("\u5171\u4EAB\u529F\u80FD"),height:"140px"},{default:V(()=>[B(W,{span:8,onClick:_[0]||(_[0]=f=>Z(ou).Open())},{default:V(()=>[t("div",A0,[x0,t("span",null,F(c.$t("\u5171\u4EAB\u6587\u4EF6")),1)])]),_:1}),B(W,{span:8},{default:V(()=>[t("div",{class:"card-content",onClick:_[1]||(_[1]=f=>Z(au).Open())},[S0,t("span",null,F(c.$t("\u5171\u4EAB\u7528\u6237")),1)])]),_:1}),B(W,{span:8,onClick:_[2]||(_[2]=f=>o())},{default:V(()=>[t("div",I0,[V0,t("span",null,F(c.$t("\u5171\u4EAB\u8BBE\u7F6E")),1)])]),_:1})]),_:1},8,["title"]),B(ft,{title:c.$t("\u5176\u4ED6\u529F\u80FD"),height:"140px"},{default:V(()=>[B(W,{span:8,onClick:s},{default:V(()=>[t("div",P0,[M0,t("span",null,F(c.$t("\u6587\u4EF6\u7BA1\u7406")),1)])]),_:1}),B(W,{span:8},{default:V(()=>[t("div",T0,[L0,t("span",null,F(c.$t("\u6587\u4EF6\u540C\u6B65")),1)])]),_:1}),B(W,{span:8},{default:V(()=>[t("div",z0,[N0,t("span",null,F(c.$t("\u76F8\u518C\u5907\u4EFD")),1)])]),_:1})]),_:1},8,["title"])]),t("div",O0,[B(ft,{height:"288px",title:c.$t("\u5411\u5BFC\u529F\u80FD")},{default:V(()=>[B(W,{span:12,onClick:_[3]||(_[3]=f=>Z(ot)({title:c.$t("\u7F51\u7EDC\u5411\u5BFC"),src:"/cgi-bin/luci/admin/quickstart/network"}))},{default:V(()=>[t("div",q0,[t("div",null,[t("img",{src:k0,alt:c.$t("\u7F51\u7EDC\u5411\u5BFC")},null,8,H0)]),t("span",null,F(c.$t("\u7F51\u7EDC\u5411\u5BFC")),1)])]),_:1}),B(W,{span:12,onClick:_[4]||(_[4]=f=>u())},{default:V(()=>[t("div",U0,[t("div",null,[t("img",{src:w0,alt:c.$t("NAS\u5411\u5BFC")},null,8,R0)]),t("span",null,F(c.$t("NAS\u5411\u5BFC")),1)])]),_:1})]),_:1},8,["title"])])]))}});var W0=S(G0,[["__scopeId","data-v-41e0f196"]]);const Z0=I({__name:"index",setup(e){const u=we(),s=R(()=>u.portitemStyle.portitem),o=R(()=>u.portitemStyle.show),c=R(()=>({bottom:`calc(100% - ${u.portitemStyle.top}px)`,left:`${u.portitemStyle.left}px`})),_=n=>{switch(n){case"full":return"\u5168\u53CC\u5DE5";case"half":return"\u534A\u53CC\u5DE5"}},f=n=>{u.portitemStyle.show=!0},h=n=>{u.portitemStyle.show=!1};return(n,i)=>o.value?(a(),d("div",{key:0,class:"disk-item-tooltip",style:J(c.value),onMouseenter:f,onMouseleave:h},[t("div",null,F(_(s.value.duplex)),1),t("div",null,"\u540D\u79F0\uFF1A"+F(s.value.name||"--"),1),t("div",null,"MAC\uFF1A"+F(s.value.macAddress||"--"),1),t("div",null,"\u63A5\u6536\uFF1A"+F(s.value.rx_packets||"--"),1),t("div",null,"\u53D1\u9001\uFF1A"+F(s.value.tx_packets||"--"),1)],36)):w("",!0)}});var j0=S(Z0,[["__scopeId","data-v-4955cc3f"]]);const X0={class:"next-main",style:{}},Y0={class:"content"},Q0=I({__name:"index",setup(e){return(u,s)=>(a(),d("div",X0,[B(Lu),t("div",Y0,[t("div",null,[B(Hu),B(Ro),B(wa),B(p1)]),t("div",null,[B(W0),B(D1),B(E0)])]),B(j0)]))}});var u2=S(Q0,[["__scopeId","data-v-745f7c2c"]]);export{u2 as default}; +var Me=Object.defineProperty,Te=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var he=(e,u,s)=>u in e?Me(e,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[u]=s,vt=(e,u)=>{for(var s in u||(u={}))ze.call(u,s)&&he(e,s,u[s]);if(ve)for(var s of ve(u))Ne.call(u,s)&&he(e,s,u[s]);return e},ht=(e,u)=>Te(e,Le(u));var z=(e,u,s)=>new Promise((o,c)=>{var _=n=>{try{h(s.next(n))}catch(i){c(i)}},f=n=>{try{h(s.throw(n))}catch(i){c(i)}},h=n=>n.done?o(n.value):Promise.resolve(n.value).then(_,f);h((s=s.apply(e,u)).next())});import{d as I,M as Oe,s as g,r as Zt,o as a,c as d,a as t,m as w,b as B,w as V,l as F,F as N,E as tt,N as Lt,_ as S,a4 as dt,C as P,T as A,Y as qe,p as q,q as H,$ as J,Z as bt,X as lt,a5 as wt,e as L,i as R,x as T,a2 as ye,A as Y,B as it,a6 as ut,a7 as He,D as Et,z as K,G as jt,g as Z,Q as De,j as mt,a0 as Ue,h as Ot,U as Xt,u as ke,P as ot,a8 as we,a9 as Re,aa as Fe,I as Ge,O as We,ab as Ze,ac as je,y as at,ad as Xe}from"./index.js?v=bc5d78ec";import{c as Ye,i as Ft}from"./chunk.6d3585bb.js";import{u as Qe,i as Ke,b as Je,c as tu,d as eu,e as uu,f as su,g as nu,G as Ut,F as ou,a as au}from"./chunk.b3a0ed74.js";var iu="/luci-static/istorex/logo.png?v=d233e332",lu="/luci-static/istorex/task.svg?v=f6a42032",cu="/luci-static/istorex/safari.svg?v=1bf8526f",du="/luci-static/istorex/setup.svg?v=69c7a200",ru="/luci-static/istorex/logout.svg?v=e9e539f8",Wt={exports:{}};(function(e,u){(function(s,o){var c={};s.PubSub?(c=s.PubSub,console.warn("PubSub already loaded, using existing version")):(s.PubSub=c,o(c)),e!==void 0&&e.exports&&(u=e.exports=c),u.PubSub=c,e.exports=u=c})(typeof window=="object"&&window||Ye,function(s){var o={},c=-1,_="*";function f(l){var E;for(E in l)if(Object.prototype.hasOwnProperty.call(l,E))return!0;return!1}function h(l){return function(){throw l}}function n(l,E,v){try{l(E,v)}catch(C){setTimeout(h(C),0)}}function i(l,E,v){l(E,v)}function r(l,E,v,C){var k=o[E],$=C?i:n,y;if(!!Object.prototype.hasOwnProperty.call(o,E))for(y in k)Object.prototype.hasOwnProperty.call(k,y)&&$(k[y],l,v)}function m(l,E,v){return function(){var k=String(l),$=k.lastIndexOf(".");for(r(l,l,E,v);$!==-1;)k=k.substr(0,$),$=k.lastIndexOf("."),r(l,k,E,v);r(l,_,E,v)}}function b(l){var E=String(l),v=Boolean(Object.prototype.hasOwnProperty.call(o,E)&&f(o[E]));return v}function D(l){for(var E=String(l),v=b(E)||b(_),C=E.lastIndexOf(".");!v&&C!==-1;)E=E.substr(0,C),C=E.lastIndexOf("."),v=b(E);return v}function p(l,E,v,C){l=typeof l=="symbol"?l.toString():l;var k=m(l,E,C),$=D(l);return $?(v===!0?k():setTimeout(k,0),!0):!1}s.publish=function(l,E){return p(l,E,!1,s.immediateExceptions)},s.publishSync=function(l,E){return p(l,E,!0,s.immediateExceptions)},s.subscribe=function(l,E){if(typeof E!="function")return!1;l=typeof l=="symbol"?l.toString():l,Object.prototype.hasOwnProperty.call(o,l)||(o[l]={});var v="uid_"+String(++c);return o[l][v]=E,v},s.subscribeAll=function(l){return s.subscribe(_,l)},s.subscribeOnce=function(l,E){var v=s.subscribe(l,function(){s.unsubscribe(v),E.apply(this,arguments)});return s},s.clearAllSubscriptions=function(){o={}},s.clearSubscriptions=function(E){var v;for(v in o)Object.prototype.hasOwnProperty.call(o,v)&&v.indexOf(E)===0&&delete o[v]},s.countSubscriptions=function(E){var v,C,k=0;for(v in o)if(Object.prototype.hasOwnProperty.call(o,v)&&v.indexOf(E)===0){for(C in o[v])k++;break}return k},s.getSubscriptions=function(E){var v,C=[];for(v in o)Object.prototype.hasOwnProperty.call(o,v)&&v.indexOf(E)===0&&C.push(v);return C},s.unsubscribe=function(l){var E=function(M){var O;for(O in o)if(Object.prototype.hasOwnProperty.call(o,O)&&O.indexOf(M)===0)return!0;return!1},v=typeof l=="string"&&(Object.prototype.hasOwnProperty.call(o,l)||E(l)),C=!v&&typeof l=="string",k=typeof l=="function",$=!1,y,x,G;if(v){s.clearSubscriptions(l);return}for(y in o)if(Object.prototype.hasOwnProperty.call(o,y)){if(x=o[y],C&&x[l]){delete x[l],$=l;break}if(k)for(G in x)Object.prototype.hasOwnProperty.call(x,G)&&x[G]===l&&(delete x[G],$=!0)}return $}})})(Wt,Wt.exports);var Be=Wt.exports;const ct=e=>(q("data-v-342ca842"),e=e(),H(),e),_u={class:"header"},pu=ct(()=>t("img",{src:iu,alt:"logo"},null,-1)),vu={class:"menu"},hu=ct(()=>t("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)),Fu=ct(()=>t("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1)),mu=[hu,Fu],fu={class:"task"},Eu={key:0,class:"dropdown-container"},Cu={class:"title"},$u=ct(()=>t("span",null,"\u5B89\u88C5\u4EFB\u52A1",-1)),gu=ct(()=>t("div",{class:"auto"},null,-1)),bu={class:"dropdown-container_menus"},yu={class:"dropdown-menu_item"},Du=ct(()=>t("div",{class:"auto"},null,-1)),ku={class:"status"},wu={key:0},Bu={key:1},Au={class:"btn"},xu=ct(()=>t("span",null," \u5B89\u88C5\u4E2D ",-1)),Su={class:"wizard"},Iu={key:0,class:"dropdown-container",style:{width:"140px"}},Vu=ct(()=>t("h2",{class:"title"},"\u5207\u6362\u5411\u5BFC\u6A21\u5F0F",-1)),Pu=ct(()=>t("a",{href:"/cgi-bin/luci/admin/quickstart/"},[t("img",{width:"28",height:"28",title:"\u5207\u6362\u81F3\u666E\u901A\u7248\u672C",src:du,alt:"setup"})],-1)),Mu=ct(()=>t("a",{href:"/cgi-bin/luci/admin/logout"},[t("img",{width:"28",height:"28",title:"\u6CE8\u9500",src:ru,alt:"logout"})],-1)),Tu=I({__name:"index",setup(e){const u=Oe(),s=C=>i.value.indexOf(C)!=-1,o=C=>r.value.indexOf(C)!=-1,c=()=>{const C=dt.global.locale==="en"?"zh":"en";localStorage.setItem("i18n",C),dt.global.locale=C,Be.publish("changeLocale",C)},_=g(!1),f=g(!1),h=g(!1),n=g([]),i=g([]),r=g([]),m=()=>z(this,null,function*(){try{const C=yield P.Quickstart.SetupResult.GET();if(C.data){const{result:k,error:$}=C.data;C.data.success==0&&k&&(n.value=k.packages||[],i.value=k.success||[],r.value=k.failed||[])}}catch(C){console.log(C)}});let b=!1;setTimeout(()=>z(this,null,function*(){yield m(),localStorage.getItem("nas_guide_init")&&(b=!0,_.value=!0)}),1e3);const D=()=>z(this,null,function*(){h.value||(yield l("router"))}),p=()=>z(this,null,function*(){h.value||(yield l("next-nas"))}),l=C=>z(this,null,function*(){h.value=!0;try{const k=yield P.Istorex.Updata.POST({model:C});if(A.Success("\u64CD\u4F5C\u6210\u529F"),k.data){const{success:$,error:y}=k.data;if(y)throw y;$===0&&u.push({path:`/${C}`})}}catch(k){A.Error(`${k}`)}finally{h.value=!1}}),E=()=>{_.value=!1,b&&localStorage.removeItem("nas_guide_init")},v=()=>{qe.autoSetup.Open()};return(C,k)=>{const $=Zt("icon-loading");return a(),d("div",_u,[pu,t("div",vu,[(a(),d("svg",{class:"i18n",onClick:c,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},mu)),t("div",fu,[t("img",{onClick:k[0]||(k[0]=y=>_.value=!_.value),width:"28",height:"28",title:"\u5B89\u88C5\u4EFB\u52A1\u8FDB\u5EA6",src:lu,alt:"logo"}),_.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:E})):w("",!0),B(Lt,null,{default:V(()=>[_.value?(a(),d("div",Eu,[t("h2",Cu,[$u,t("span",null,"("+F(i.value.length+r.value.length+"/"+n.value.length)+")",1),gu,t("a",{onClick:v},"\u67E5\u770B\u65E5\u5FD7")]),t("div",bu,[(a(!0),d(N,null,tt(n.value,y=>(a(),d("div",yu,[t("span",null,F(y),1),Du,t("div",ku,[s(y)?(a(),d("span",wu," \u6210\u529F ")):o(y)?(a(),d("span",Bu," \u5931\u8D25 ")):(a(),d(N,{key:2},[t("div",Au,[B($)]),xu],64))])]))),256))])])):w("",!0)]),_:1})]),t("div",Su,[t("img",{onClick:k[1]||(k[1]=y=>f.value=!f.value),width:"28",height:"28",title:"\u5411\u5BFC\u6A21\u5F0F",src:cu,alt:"safari"}),f.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:k[2]||(k[2]=y=>f.value=!1)})):w("",!0),B(Lt,{name:"fade"},{default:V(()=>[f.value?(a(),d("div",Iu,[Vu,t("div",{class:"dropdown-menu_item",style:{"margin-bottom":"8px"},onClick:D}," \u8DEF\u7531\u6A21\u5F0F "),t("div",{class:"dropdown-menu_item",onClick:p},"NAS\u6A21\u5F0F")])):w("",!0)]),_:1})]),Pu,Mu])])}}});var Lu=S(Tu,[["__scopeId","data-v-342ca842"]]);const zu={},Nu={class:"SearchBar"},Ou=["placeholder"];function qu(e,u){return a(),d("div",Nu,[t("input",{placeholder:e.$t("\u5E94\u7528\u641C\u7D22")},null,8,Ou)])}var Hu=S(zu,[["render",qu],["__scopeId","data-v-a531abbc"]]);const Uu={class:"widget"},Ru={key:0,class:"title"},Gu=I({__name:"index",props:{title:{},height:{},maxHeight:{},contentStyle:{}},setup(e){const u=e;return(s,o)=>(a(),d("div",Uu,[t("div",{style:J(`height: ${u.height};max-height:${u.maxHeight}`)},[u.title?(a(),d("span",Ru,F(u.title),1)):w("",!0),t("div",{style:J(u.contentStyle)},[bt(s.$slots,"default",{},void 0,!0)],4)],4)]))}});var ft=S(Gu,[["__scopeId","data-v-261e10c6"]]);const Wu={},Zu={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"},ju=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),Xu=[ju];function Yu(e,u){return a(),d("svg",Zu,Xu)}var Qu=S(Wu,[["render",Yu]]);const Ku=e=>(q("data-v-664f08dd"),e=e(),H(),e),Ju={id:"actioner"},ts={key:0,class:"action-container"},es={class:"action-container_header"},us=Ku(()=>t("div",null,null,-1)),ss={class:"title"},ns={class:"action-container_body"},os=I({__name:"index",props:{Close:{type:Function},type:{type:Number},title:String},setup(e){const u=e,s=g(!1);lt(()=>{s.value=!0,document.body.setAttribute("lock-scroll","true")}),wt(()=>{document.body.removeAttribute("lock-scroll")});const o=()=>{u.Close&&(s.value=!1,setTimeout(()=>{u.Close&&u.Close()},300))};return(c,_)=>(a(),d("div",Ju,[t("div",{class:"bg",onClick:o}),e.type!=null?bt(c.$slots,"default",{key:0},void 0,!0):(a(),d(N,{key:1},[s.value?(a(),d("div",ts,[t("div",es,[us,t("div",ss,F(e.title),1),t("button",{class:"close",title:"\u5173\u95ED",onClick:o},[B(Qu)])]),t("div",ns,[bt(c.$slots,"default",{},void 0,!0)])])):w("",!0)],64))]))}});var as=S(os,[["__scopeId","data-v-664f08dd"]]);const st=I({__name:"modal",props:{Close:{type:Function},type:{type:Number},title:String},setup(e){return(u,s)=>(a(),L(as,{Close:e.Close,type:e.type,title:e.title},{default:V(()=>[bt(u.$slots,"default")]),_:3},8,["Close","type","title"]))}}),is={},ls={t:"1649907260906",viewBox:"-8 248 1042 530",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2793","xmlns:xlink":"http://www.w3.org/1999/xlink"},cs=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),ds=[cs];function rs(e,u){return a(),d("svg",ls,ds)}var _s=S(is,[["render",rs]]);const ps={},vs={t:"1649907515643",viewBox:"-8 248 1042 530",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2971","xmlns:xlink":"http://www.w3.org/1999/xlink"},hs=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),Fs=[hs];function ms(e,u){return a(),d("svg",vs,Fs)}var fs=S(ps,[["render",ms]]);const Es={class:"checkbox_switch_on"},Cs={class:"checkbox_switch_off"},$s=I({__name:"index",props:{modelValue:{type:Boolean,required:!0},height:{type:String,default:"100%"}},emits:["update:modelValue"],setup(e,{emit:u}){const s=e,o=R({get:()=>s.modelValue.valueOf(),set:c=>u("update:modelValue",c)});return(c,_)=>(a(),d("label",{class:"checkbox_switch",style:J({height:e.height})},[T(t("input",{type:"checkbox","onUpdate:modelValue":_[0]||(_[0]=f=>o.value=f)},null,512),[[ye,o.value]]),t("span",Es,[B(_s)]),t("span",Cs,[B(fs)]),bt(c.$slots,"default",{},void 0,!0)],4))}});var gs=S($s,[["__scopeId","data-v-1b6cddbc"]]);const Q=e=>(q("data-v-76799e09"),e=e(),H(),e),bs=["onSubmit"],ys=Q(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u5185\u7F51\u914D\u7F6E")],-1)),Ds={class:"actioner-dns_body"},ks={class:"label-item"},ws=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5730\u5740")],-1)),Bs={class:"label-item_value"},As={class:"label-item"},xs=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5B50\u7F51\u63A9\u7801")],-1)),Ss={class:"label-item_value"},Is={key:0,class:"chose_dhcp"},Vs={key:0,class:"dhcp_info"},Ps={key:1,class:"dhcp_info"},Ms={class:"label-item"},Ts=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1)),Ls={class:"label-item_value"},zs={class:"label-item"},Ns=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1)),Os={class:"label-item_value"},qs={class:"actioner-dns_footer"},Hs=["disabled"],Us={key:1,class:"actioner-dns"},Rs=Q(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u66F4\u6362\u914D\u7F6E")],-1)),Gs={class:"actioner-dns_body"},Ws={key:0,class:"setting_status"},Zs=Q(()=>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)),js=Q(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u6210\u529F",-1)),Xs=["href"],Ys={key:1,class:"setting_status"},Qs=Q(()=>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)),Ks=Q(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u5931\u8D25",-1)),Js=Q(()=>t("p",null,"\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E",-1)),tn={key:2,class:"setting_status"},en=Q(()=>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)),un=Q(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u8D85\u65F6",-1)),sn=Q(()=>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)),nn=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0),o=g({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""});g("");const c=g(!1);g(!0),g(!1);const _=g(""),f=g(2),h=g(!1),n=g("timeout");let i=!0;(()=>{P.Guide.GetLan.GET().then(l=>{l.data.result&&(h.value=l.data.result.enableDhcp||!1,l.data.result.enableDhcp=!1,o.value=l.data.result,l.data.result.lanIp!==location.hostname&&(i=!1))})})();const m=()=>{const l=o.value;if(!Ft.isValidIPv4(l.lanIp)){A.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!Ft.isValidMask(l.netMask)){A.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}const E=Ft.calcMaskRange(l.lanIp,l.netMask);l.dhcpStart=E[0],l.dhcpEnd=E[1],o.value=l},b=()=>{const l=o.value;if(!Ft.isValidIPv4(l.lanIp)){A.Warning("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!Ft.isValidMask(l.netMask)){A.Warning("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(l.enableDhcp&&!(Ft.isValidIPv4(l.dhcpStart)&&Ft.isValidIPv4(l.dhcpEnd)&&Ft.isValidMaskRange(l.lanIp,l.netMask,l.dhcpStart,l.dhcpEnd))){A.Warning("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const E=A.Loading("\u6B63\u5728\u914D\u7F6E\u2026\u8BF7\u7A0D\u7B49",30);let v=0;const C=$=>{n.value=$,s.value=1,v=1,E.Close()},k=()=>{const $=new Date().getTime()+3e4,y=i?location.protocol+"//"+l.lanIp+(location.port?":"+location.port:""):location.origin,x=y+"/luci-static/resources/icons/loading.gif",G=()=>{v==0&&(new Date().getTime()>$?C("timeout"):window.setTimeout(O,2e3))},M=()=>{v==0&&(_.value=y+location.pathname,C("success"),window.setTimeout(()=>{f.value=1},1e3),window.setTimeout(()=>{location.href=_.value},2e3))},O=()=>{if(v!=0)return;console.log("check online ",x);const nt=new Image;nt.onload=M,nt.onerror=G,nt.src=x};window.setTimeout(O,5e3)};P.Guide.LanIp.POST(l).then($=>{var y;if($!=null&&$.data){if(($.data.success||0)==0)return;if((y=$.data)!=null&&y.error)throw $.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch($=>{v==0&&(C("fail"),A.Error($))}),k(),window.setTimeout(()=>{v==0&&C("timeout")},3e4)},D=l=>{l.preventDefault(),u.Close&&u.Close()},p=l=>{location.reload()};return(l,E)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[s.value==0?(a(),d("form",{key:0,class:"actioner-dns",onSubmit:it(b,["prevent"])},[ys,t("div",Ds,[t("div",ks,[ws,t("div",Bs,[T(t("input",{type:"text",placeholder:"192.168.100.1",required:"","onUpdate:modelValue":E[0]||(E[0]=v=>o.value.lanIp=v),onChange:m},null,544),[[Y,o.value.lanIp,void 0,{trim:!0}]])])]),t("div",As,[xs,t("div",Ss,[T(t("input",{type:"text",placeholder:"255.255.255.0",required:"","onUpdate:modelValue":E[1]||(E[1]=v=>o.value.netMask=v),onChange:m},null,544),[[Y,o.value.netMask,void 0,{trim:!0}]])])]),h.value?(a(),d("div",Is,[B(gs,{modelValue:o.value.enableDhcp,"onUpdate:modelValue":E[2]||(E[2]=v=>o.value.enableDhcp=v)},{default:V(()=>[o.value.enableDhcp?(a(),d("span",Vs,"\u4FEE\u6539DHCP\u670D\u52A1")):(a(),d("span",Ps,"\u4FDD\u6301DHCP\u670D\u52A1\u8BBE\u7F6E"))]),_:1},8,["modelValue"])])):w("",!0),o.value.enableDhcp?(a(),d(N,{key:1},[t("div",Ms,[Ts,t("div",Ls,[T(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":E[3]||(E[3]=v=>o.value.dhcpStart=v)},null,512),[[Y,o.value.dhcpStart,void 0,{trim:!0}]])])]),t("div",zs,[Ns,t("div",Os,[T(t("input",{type:"text",placeholder:"192.168.100.100",required:"","onUpdate:modelValue":E[4]||(E[4]=v=>o.value.dhcpEnd=v)},null,512),[[Y,o.value.dhcpEnd,void 0,{trim:!0}]])])])],64)):w("",!0)]),t("div",qs,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:c.value}," \u786E\u8BA4 ",8,Hs),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:D}," \u53D6\u6D88 ")])],40,bs)):s.value==1?(a(),d("div",Us,[Rs,t("div",Gs,[n.value=="success"?(a(),d("div",Ws,[Zs,js,t("a",{href:_.value,class:"NewAdress"},F(f.value)+"s\u540E \u8DF3\u8F6C\u65B0\u5730\u5740",9,Xs)])):n.value=="fail"?(a(),d("div",Ys,[Qs,Ks,Js,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p}," \u6211\u77E5\u9053\u4E86 ")])):n.value=="timeout"?(a(),d("div",tn,[en,un,sn,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:p}," \u5237\u65B0\u9875\u9762 ")])):w("",!0)])])):w("",!0)]),_:1},8,["Close"]))}});var on=S(nn,[["__scopeId","data-v-76799e09"]]);const me=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(on,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}};const yt=e=>(q("data-v-95c09170"),e=e(),H(),e),an=["onSubmit"],ln=yt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),cn={class:"actioner-dns_body"},dn={class:"label-item"},rn=yt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u9009\u9879")],-1)),_n={class:"label-item_value"},pn=["disabled"],vn=yt(()=>t("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1)),hn={class:"label-item"},Fn=yt(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1)),mn={class:"label-item_value"},fn=["onUpdate:modelValue"],En=yt(()=>t("div",{class:"label-item_key"},"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740",-1)),Cn={class:"label-item_value"},$n=["onUpdate:modelValue"],gn={key:1,class:"label-message"},bn={class:"actioner-dns_footer"},yn=["disabled"],Dn={key:1,class:"actioner-dns"},kn=yt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),wn=yt(()=>t("div",{class:"actioner-dns_body"},[t("div",{class:"config-message"},"DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")],-1)),Bn=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0),o=He(),c=o.status,_=R(()=>o.status.proto!="static"),f=()=>{let D=c.dnsList||[];for(D=D.filter(p=>p);D.length<2;)D.push("");return D},h=g({interfaceName:c.defaultInterface||"",dnsProto:c.dnsProto||"manual",manualDnsIp:f()}),n=g(""),i=g(!1),r=()=>z(this,null,function*(){n.value="";let D={};switch(h.value.dnsProto){case"auto":break;case"manual":if(D.manualDnsIp=[],!h.value.manualDnsIp[0]){A.Error("\u81F3\u5C11\u9700\u8981\u586B\u5199\u4E00\u4E2ADNS");return}D.manualDnsIp=h.value.manualDnsIp.filter(l=>l);break}D.dnsProto=h.value.dnsProto,D.interfaceName=h.value.interfaceName;const p=A.Loading("\u914D\u7F6E\u4E2D...");try{const l=yield P.Guide.DnsConfig.POST(D);if(l!=null&&l.data){const{success:E,error:v}=l==null?void 0:l.data;v&&(n.value=v),(E==null||E==0)&&(A.Success("\u914D\u7F6E\u6210\u529F"),s.value=1)}}catch(l){n.value=l}p.Close()}),m=D=>{D.preventDefault(),u.Close&&u.Close()},b=D=>{location.reload()};return(D,p)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[s.value==0?(a(),d("form",{key:0,class:"actioner-dns",onSubmit:it(r,["prevent"])},[ln,t("div",cn,[t("div",dn,[rn,t("div",_n,[T(t("select",{"onUpdate:modelValue":p[0]||(p[0]=l=>h.value.dnsProto=l)},[t("option",{value:"auto",disabled:!_.value}," \u81EA\u52A8\u83B7\u53D6DNS ",8,pn),vn],512),[[Et,h.value.dnsProto]])])]),h.value.dnsProto=="manual"?(a(!0),d(N,{key:0},tt(h.value.manualDnsIp,(l,E)=>(a(),d("div",hn,[E==0?(a(),d(N,{key:0},[Fn,t("div",mn,[T(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740",required:"","onUpdate:modelValue":v=>h.value.manualDnsIp[E]=v},null,8,fn),[[Y,h.value.manualDnsIp[E],void 0,{trim:!0}]])])],64)):(a(),d(N,{key:1},[En,t("div",Cn,[T(t("input",{type:"text",placeholder:"\u5907\u7528DNS\u5730\u5740","onUpdate:modelValue":v=>h.value.manualDnsIp[E]=v},null,8,$n),[[Y,h.value.manualDnsIp[E],void 0,{trim:!0}]])])],64))]))),256)):w("",!0),n.value?(a(),d("div",gn,F(n.value),1)):w("",!0)]),t("div",bn,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:i.value}," \u786E\u8BA4 ",8,yn),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:m}," \u53D6\u6D88 ")])],40,an)):s.value==1?(a(),d("div",Dn,[kn,wn,t("div",{class:"actioner-dns_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:b}," \u5B8C\u6210 ")])])):w("",!0)]),_:1},8,["Close"]))}});var An=S(Bn,[["__scopeId","data-v-95c09170"]]);const fe=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(An,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}},xn={},Sn={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"},In=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),Vn=[In];function Pn(e,u){return a(),d("svg",Sn,Vn)}var rt=S(xn,[["render",Pn]]);const et=e=>(q("data-v-5141058a"),e=e(),H(),e),Mn={key:0,class:"actioner-dns"},Tn=et(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u6C99\u7BB1\u6A21\u5F0F\u914D\u7F6E\u5411\u5BFC")],-1)),Ln={class:"actioner-dns_body"},zn=et(()=>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)),Nn={key:0,class:"disk_loading_icon"},On=et(()=>t("span",{class:"disk_loading_info"},"\u6B63\u5728\u52A0\u8F7D\u4E2D...",-1)),qn={key:1,class:"disk_tips"},Hn=et(()=>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)),Un={class:"label-item"},Rn=et(()=>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)),Gn={class:"label-item_value"},Wn=et(()=>t("option",{value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u78C1\u76D8",-1)),Zn=["value"],jn={class:"label-item"},Xn=et(()=>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)),Yn={class:"label-item_value"},Qn=et(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u76EE\u6807\u5206\u533A",-1)),Kn=["value","disabled"],Jn={class:"sandbox_tips"},to=et(()=>t("span",null,"\u6B64\u64CD\u4F5C\u4F1A\u5C06\u4F1A\u5220\u9664\u8BE5\u5206\u533A\u5168\u90E8\u6570\u636E",-1)),eo={class:"sandbox_info timeout"},uo=et(()=>t("p",{class:"sandbox_roboot_tips"},[K(" \u7B49\u5F85\u8BBE\u5907\u91CD\u542F\uFF0C\u91CD\u542F\u5B8C\u6210\u540E"),t("span",{class:"sandbox_roboot_refresh"},"\u8BF7\u5237\u65B0\u754C\u9762")],-1)),so={key:0,class:"actioner-dns_footer"},no=["disabled"],oo={key:1,class:"actioner-tips"},ao=et(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u6E29\u99A8\u63D0\u793A")],-1)),io=et(()=>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)),lo={key:2,class:"actioner-tips"},co=et(()=>t("div",{class:"actioner-tips_header"},[t("span",null,"\u9519\u8BEF")],-1)),ro={class:"actioner-tips_body"},_o={class:"sandbox_info"},po=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0);g("disk");const o=g(""),c=g(3),_=g(""),f=g([]),h=g(""),n=g(null);(()=>{P.Nas.SandboxDisks.GET().then(v=>{var C;if(v!=null&&v.data&&(C=v.data)!=null&&C.result){n.value=v.data.result;return}throw"\u52A0\u8F7D\u78C1\u76D8\u4FE1\u606F\u5931\u8D25"}).catch(v=>{o.value=v,s.value=3})})();const r=()=>request.System.Reboot.POST({name:_.value,path:h.value}).then(v=>{var C;if(!(v!=null&&v.data&&(((C=v==null?void 0:v.data)==null?void 0:C.success)||0)==0))throw"\u672A\u77E5\u9519\u8BEF"}),m=v=>{var C,k;h.value="",f.value=_.value&&((k=(C=n.value)==null?void 0:C.disks.find($=>$.path==_.value))==null?void 0:k.childrens)||[]},b=()=>{c.value>0&&(c.value-=1,window.setTimeout(b,1e3))},D=v=>{v.preventDefault(),u.Close&&u.Close()},p=()=>{new Promise((v,C)=>{const k="/luci-static/resources/icons/loading.gif",$=()=>{window.setTimeout(y,2e3)},y=()=>{const x=new Image;x.onload=v,x.onerror=$,x.src=k};window.setTimeout(y,1e4)}).then(()=>{window.setTimeout(()=>{location.reload()},2e3)})},l=v=>{const C=A.Loading("\u914D\u7F6E\u6C99\u7BB1\u91CD\u542F\u4E2D...");request.Nas.Sandbox.POST({path:h.value}).then(k=>{var $;if(k!=null&&k.data){if((k.data.success||0)==0)return s.value=2,window.setTimeout(b,1e3),r();if(($=k.data)!=null&&$.error)throw k.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).then(p).catch(k=>A.Warning(k)).finally(()=>C.Close())},E=()=>{s.value=0};return(v,C)=>{const k=Zt("icon-loading");return a(),L(st,{Close:e.Close,type:1},{default:V(()=>[s.value==0||s.value==2?(a(),d("div",Mn,[Tn,t("div",Ln,[zn,s.value==0?(a(),d(N,{key:0},[n.value?w("",!0):(a(),d("div",Nn,[B(k,{size:38,color:"currentColor"}),On])),n.value&&n.value.disks.length==0?(a(),d("div",qn,[B(rt),Hn])):w("",!0),n.value&&n.value.disks.length>0?(a(),d(N,{key:2},[t("div",Un,[Rn,t("div",Gn,[T(t("select",{name:"",id:"",onChange:m,"onUpdate:modelValue":C[0]||(C[0]=$=>_.value=$)},[Wn,(a(!0),d(N,null,tt(n.value.disks,($,y)=>(a(),d("option",{value:$.path,key:y},F($.venderModel)+"\uFF08"+F($.size)+"\uFF09 ",9,Zn))),128))],544),[[Et,_.value]])])]),t("div",jn,[Xn,t("div",Yn,[T(t("select",{name:"",id:"","onUpdate:modelValue":C[1]||(C[1]=$=>h.value=$)},[Qn,(a(!0),d(N,null,tt(f.value,($,y)=>(a(),d("option",{value:$.path,key:y,disabled:$.sizeInt<(1<<30)*1||$.isSystemRoot},F($.name)+"\uFF08"+F($.filesystem||"\u672A\u683C\u5F0F\u5316")+"\uFF09"+F($.total),9,Kn))),128))],512),[[Et,h.value]])])]),t("div",Jn,[B(rt),to])],64)):w("",!0)],64)):w("",!0),s.value==2?(a(),d(N,{key:1},[t("p",eo,[K(" \u5373\u5C06\u91CD\u542F\u8BBE\u5907 "),t("span",null,"\uFF08"+F(c.value)+"s\uFF09",1)]),uo],64)):w("",!0)]),s.value==0?(a(),d("div",so,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:!h.value,onClick:C[2]||(C[2]=$=>s.value=1)}," \u5F00\u542F\u6C99\u7BB1 ",8,no),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:D}," \u53D6\u6D88 ")])):w("",!0)])):w("",!0),s.value==1?(a(),d("div",oo,[ao,io,t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:l}," \u7EE7\u7EED "),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:E}," \u53D6\u6D88 ")])])):w("",!0),s.value==3?(a(),d("div",lo,[co,t("div",ro,[t("p",_o,F(o.value),1)]),t("div",{class:"actioner-tips_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:E}," \u53D6\u6D88 ")])])):w("",!0)]),_:1},8,["Close"])}}});var vo=S(po,[["__scopeId","data-v-5141058a"]]);const ho=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(vo,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}},Fo={},mo={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"},fo=jt('icon_finished',2),Eo=[fo];function Co(e,u){return a(),d("svg",mo,Eo)}var Yt=S(Fo,[["render",Co]]);const Bt=e=>(q("data-v-5cf1870c"),e=e(),H(),e),$o=["onSubmit"],go=Bt(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),bo={class:"actioner-dns_body"},yo={class:"label-item"},Do=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5F53\u524D\u8F6F\u4EF6\u6E90")],-1)),ko={class:"label-item_value"},wo={class:"item_info"},Bo={class:"label-item"},Ao=Bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5207\u6362\u8F6F\u4EF6\u6E90")],-1)),xo={class:"label-item_value"},So=Bt(()=>t("option",{selected:"true",value:""},"\u8BF7\u9009\u62E9\u8F6F\u4EF6\u6E90",-1)),Io=["value"],Vo={class:"actioner-dns_footer"},Po=["disabled"],Mo={key:1,class:"actioner-dns"},To=Bt(()=>t("div",{class:"actioner-dns_header"},[t("span",{class:"softsource_tit"},"\u8F6F\u4EF6\u6E90\u914D\u7F6E")],-1)),Lo={class:"actioner-dns_body"},zo={class:"finished"},No=Bt(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),Oo=I({__name:"index",props:{Close:{type:Function,required:!0}},setup(e){const u=e,s=g(0),o=g(""),c=g(),_=g();(()=>{P.Guide.SoftSourceList.GET().then(r=>{var m,b;if((m=r==null?void 0:r.data)!=null&&m.result){const D=(b=r==null?void 0:r.data)==null?void 0:b.result;_.value=D}}).then(()=>P.Guide.GetSoftSource.GET()).then(r=>{var m,b;if((m=r==null?void 0:r.data)!=null&&m.result){const D=r.data.result;c.value=D.softSource,(b=_.value)!=null&&b.softSourceList.find(p=>p.identity==D.softSource.identity)&&(o.value=D.softSource.identity)}})})();const h=r=>{r.preventDefault(),u.Close&&u.Close()},n=r=>{const m=A.Loading("\u6B63\u5728\u5207\u6362\u4E2D...");request.Guide.SoftSource.POST({softSourceIdentity:o.value}).then(b=>{if(b!=null&&b.data){if((b.data.success||0)==0){s.value=1;return}else if(b.data.error)throw b.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(b=>{A.Error(b)}).finally(()=>m.Close())},i=r=>{r.preventDefault(),location.reload()};return(r,m)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>{var b,D;return[s.value==0?(a(),d("form",{key:0,class:"actioner-dns",onSubmit:it(n,["prevent"])},[go,t("div",bo,[t("div",yo,[Do,t("div",ko,[t("p",wo,F((b=c.value)==null?void 0:b.name),1)])]),t("div",Bo,[Ao,t("div",xo,[T(t("select",{name:"",id:"","onUpdate:modelValue":m[0]||(m[0]=p=>o.value=p)},[So,(a(!0),d(N,null,tt((D=_.value)==null?void 0:D.softSourceList,(p,l)=>(a(),d("option",{value:p.identity,key:l},F(p.name),9,Io))),128))],512),[[Et,o.value,void 0,{trim:!0}]])])])]),t("div",Vo,[t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:o.value==""}," \u786E\u8BA4 ",8,Po),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:h}," \u53D6\u6D88 ")])],40,$o)):w("",!0),s.value==1?(a(),d("form",Mo,[To,t("div",Lo,[t("div",zo,[B(Yt)]),No,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply softsource_successed",onClick:i}," \u786E\u5B9A ")])])])):w("",!0)]}),_:1},8,["Close"]))}});var qo=S(Oo,[["__scopeId","data-v-5cf1870c"]]);const Ee=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(qo,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}};const Ho={class:"utilities"},Uo=I({__name:"index",setup(e){const u=g(!1),s=g(),o=()=>{window.location.href="/cgi-bin/luci/admin/system/ota"},c=()=>{s.value.status=="unsupport"&&alert("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u6C99\u7BB1\u6A21\u5F0F"),s.value.status=="stopped"&&ho()},_=()=>z(this,null,function*(){try{if((yield P.Quickstart.Guide.GlobalFolders.GET()).status!==200)return}catch(i){console.log(i);return}u.value=!0;try{const i=yield P.Storage.Get.POST({key:"nas_guide_init"});if(i.data){const{success:r,error:m,result:b}=i.data;if(b&&b.key=="nas_guide_init")return}}catch(i){return}f()}),f=()=>{if(!u.value){A.Warning("\u8BF7\u5148\u66F4\u65B0\u7CFB\u7EDF\u5230\u6700\u65B0\u7248\u672C");return}De.OpenGuideWindow()},h=()=>{var i,r,m,b;window.open(`${(r=(i=window.quickstart_configs)==null?void 0:i.ttyd)!=null&&r.ssl?"https":"http"}://${window.location.hostname}:${((b=(m=window.quickstart_configs)==null?void 0:m.ttyd)==null?void 0:b.port)||7681}/`,"_blank")};return(()=>{P.Nas.GetSandbox.GET().then(i=>{var r;console.log("getSandBox",i),(r=i==null?void 0:i.data)!=null&&r.result&&(s.value=i.data.result)}).catch(i=>A.Warning(i))})(),_(),(i,r)=>(a(),L(ft,{title:i.$t("\u5E38\u7528\u5DE5\u5177")},{default:V(()=>{var m;return[t("div",Ho,[t("div",{onClick:h},[t("span",null,"\u300B"+F(i.$t("\u7EC8\u7AEF")),1)]),t("div",{onClick:o},[t("span",null,F(i.$t("\u56FA\u4EF6\u66F4\u65B0")),1)]),t("div",{onClick:r[0]||(r[0]=(...b)=>Z(me)&&Z(me)(...b))},[t("span",null,F(i.$t("\u5185\u7F51\u914D\u7F6E")),1)]),t("div",{onClick:r[1]||(r[1]=(...b)=>Z(fe)&&Z(fe)(...b))},[t("span",null,F(i.$t("DNS\u914D\u7F6E")),1)]),t("div",{onClick:r[2]||(r[2]=(...b)=>Z(Ee)&&Z(Ee)(...b))},[t("span",null,F(i.$t("\u8F6F\u4EF6\u6E90\u914D\u7F6E")),1)]),t("div",{onClick:c},[t("span",null,F(((m=s.value)==null?void 0:m.status)=="running"?i.$t("\u6C99\u7BB1\u5DF2\u5F00\u542F"):i.$t("\u5F00\u542F\u6C99\u7BB1")),1)])])]}),_:1},8,["title"]))}});var Ro=S(Uo,[["__scopeId","data-v-47b0529a"]]),Go="/luci-static/istorex/network.svg?v=3025665f",Wo="/luci-static/istorex/device.svg?v=9068551e";const Zo={},jo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},Xo=t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.375 12C3.375 12.4973 3.57254 12.9742 3.92417 13.3258C4.27581 13.6775 4.75272 13.875 5.25 13.875C5.74728 13.875 6.22419 13.6775 6.57583 13.3258C6.92746 12.9742 7.125 12.4973 7.125 12C7.125 11.5027 6.92746 11.0258 6.57583 10.6742C6.22419 10.3225 5.74728 10.125 5.25 10.125C4.75272 10.125 4.27581 10.3225 3.92417 10.6742C3.57254 11.0258 3.375 11.5027 3.375 12ZM10.125 12C10.125 12.4973 10.3225 12.9742 10.6742 13.3258C11.0258 13.6775 11.5027 13.875 12 13.875C12.4973 13.875 12.9742 13.6775 13.3258 13.3258C13.6775 12.9742 13.875 12.4973 13.875 12C13.875 11.5027 13.6775 11.0258 13.3258 10.6742C12.9742 10.3225 12.4973 10.125 12 10.125C11.5027 10.125 11.0258 10.3225 10.6742 10.6742C10.3225 11.0258 10.125 11.5027 10.125 12ZM17.4242 13.3258C17.0725 12.9742 16.875 12.4973 16.875 12C16.875 11.5027 17.0725 11.0258 17.4242 10.6742C17.7758 10.3225 18.2527 10.125 18.75 10.125C19.2473 10.125 19.7242 10.3225 20.0758 10.6742C20.4275 11.0258 20.625 11.5027 20.625 12C20.625 12.4973 20.4275 12.9742 20.0758 13.3258C19.7242 13.6775 19.2473 13.875 18.75 13.875C18.2527 13.875 17.7758 13.6775 17.4242 13.3258Z",fill:"black","fill-opacity":"0.8"},null,-1),Yo=[Xo];function Qo(e,u){return a(),d("svg",jo,Yo)}var Ko=S(Zo,[["render",Qo]]);const Jo=e=>(q("data-v-21e54302"),e=e(),H(),e),ta={key:0,class:"title"},ea=["href"],ua=Jo(()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[t("path",{d:"M7 14C3.1338 14 0 10.8662 0 7C0 3.1338 3.1338 0 7 0C10.8662 0 14 3.1338 14 7C14 10.8662 10.8662 14 7 14ZM7 10.9375C7.25944 10.9375 7.46988 10.8535 7.63175 10.6859C7.79362 10.5179 7.875 10.3101 7.875 10.0625C7.875 9.81487 7.79407 9.61099 7.63175 9.45131C7.46987 9.29119 7.25944 9.20368 7 9.1875C6.65962 9.20369 6.4085 9.3555 6.24663 9.64292C6.08475 9.93081 6.08475 10.2182 6.24663 10.5061C6.4085 10.7936 6.65962 10.9375 7 10.9375ZM7.67025 8.07931C7.67025 8.02901 7.65275 7.88463 7.65493 7.90519C7.637 7.72319 7.66107 7.56131 7.76081 7.40513C7.83344 7.29094 7.94588 7.18375 8.11388 7.08444C9.10175 6.50081 9.46312 5.85068 9.44256 5.17431C9.41195 4.16106 8.66556 3.16663 7.04682 3.15218C5.69361 3.1395 4.80418 3.79312 4.59376 5.02031C4.56892 5.18979 4.61132 5.36226 4.71192 5.50089C4.81251 5.63952 4.96332 5.73333 5.13214 5.76229C5.30096 5.79124 5.47441 5.75305 5.61545 5.65586C5.75649 5.55867 5.85394 5.41019 5.88699 5.24212C5.98282 4.6865 6.29388 4.4577 7.03456 4.46425C7.84699 4.47169 8.11956 4.83481 8.13094 5.21325C8.13376 5.27833 8.11633 5.34268 8.08106 5.39744C7.9905 5.56018 7.79405 5.7492 7.44669 5.95438C7.10324 6.15694 6.83899 6.40894 6.6535 6.70032C6.36518 7.15313 6.3022 7.60113 6.35119 8.05656C6.35862 8.12525 6.35776 8.1165 6.35776 8.07932C6.35734 8.16577 6.374 8.25145 6.4068 8.33143C6.43959 8.41142 6.48786 8.48414 6.54884 8.54542C6.60982 8.60669 6.6823 8.65532 6.76213 8.68849C6.84196 8.72167 6.92756 8.73875 7.014 8.73875C7.10045 8.73875 7.18605 8.72167 7.26587 8.68849C7.3457 8.65532 7.41819 8.60669 7.47917 8.54542C7.54015 8.48414 7.58842 8.41142 7.62121 8.33143C7.654 8.25145 7.67067 8.16575 7.67025 8.07931Z",fill:"#E1B8B2"})],-1)),sa=[ua],na={class:"toolbar"},oa={key:1,class:"more-icon"},aa={class:"actions"},ia=["onClick"],la=I({__name:"index",props:{span:{},height:{},title:{},padding:{},helpLink:{},moreActions:{},action:{}},setup(e){const u=e,s=g(!1),o=()=>{s.value=!s.value},c=mt({width:`calc(${u.span*100/24}% - 10px)`,height:u.height+"px"});return(_,f)=>{var h,n,i;return a(),d("div",{class:"card",style:J(c)},[t("div",null,[u.title?(a(),d("div",ta,[t("span",null,F(u.title),1),u.helpLink?(a(),d("a",{key:0,href:u.helpLink,target:"_blank"},sa,8,ea)):w("",!0),t("div",na,[u.action&&u.action.show!==!1?(a(),d("div",{key:0,class:"action",onClick:f[0]||(f[0]=(...r)=>{var m,b;return((m=u.action)==null?void 0:m.onClick)&&((b=u.action)==null?void 0:b.onClick(...r))})},F((h=u.action)==null?void 0:h.text),1)):w("",!0),(i=(n=u.moreActions)==null?void 0:n.filter(({show:r})=>r!==!1))!=null&&i.length?(a(),d("span",oa,[B(Ko,{onClick:o})])):w("",!0),T(t("div",aa,[t("div",{class:"menu_background",onClick:o}),t("ul",null,[(a(!0),d(N,null,tt(u.moreActions,r=>(a(),d("li",{onClick:r.onClick},F(r.text),9,ia))),256))])],512),[[Ue,s.value]])])])):w("",!0),t("div",{class:"card-body",style:J(`padding:${u.padding}`)},[bt(_.$slots,"default",{},void 0,!0)],4)])],4)}}});var W=S(la,[["__scopeId","data-v-21e54302"]]);const ca={class:"flow"},da={class:"flow-data"},ra={key:0},_a={key:1},pa=I({__name:"flow-chart",setup(e){Qe([Ke,Je,tu,eu,uu,su]);const u=g(),s=D=>{var l;const p=(l=u.value)==null?void 0:l[D];return!p||p.startTime==0?"":n(p.startTime*1e3)+"-"+n(p.endTime*1e3)},o=R(()=>{var p;let D=[];return(p=u.value)==null||p.forEach(l=>{D.push({value:l.uploadSpeed})}),D}),c=R(()=>{var p;let D=[];return(p=u.value)==null||p.forEach(l=>{D.push({value:l.downloadSpeed})}),D}),_=R(()=>{var p;let D="";if(u.value){let l=((p=u.value)==null?void 0:p.length)||0;if(l>0){let E=u.value[l-1];D=i(E.uploadSpeed)+"/s"}}return D}),f=R(()=>{var p;let D="";if(u.value){let l=((p=u.value)==null?void 0:p.length)||0;if(l>0){let E=u.value[l-1];D=i(E.downloadSpeed)+"/s"}}return D});R(()=>{var p;let D=[];return(p=u.value)==null||p.forEach(l=>{D.push({value:l.downloadSpeed+l.uploadSpeed})}),D});const h=()=>z(this,null,function*(){var D;try{const p=yield P.Network.Statistics.GET();if(p.data&&(D=p.data.result)!=null&&D.items){const l=p.data.result.slots||10;if(p.data.result.items.lengthl?u.value=p.data.result.items.slice(l-p.data.result.items.length):u.value=p.data.result.items}}catch(p){console.log(p)}}),n=Ot.dateForm,i=Ot.byteToSize,r=g();let m=null;const b=D=>(m=nu(D,"dark"),m.setOption({animation:!1,backgroundColor:"transparent",color:["transparent","transparent"],tooltip:{trigger:"axis",formatter:p=>{if(Array.isArray(p)){let l="";p.length>0&&(l=s(p[0].axisValue));for(let E=0;E${p[E].seriesName}: ${i(p[E].value)}/s`;return l.toString()}else{const l=p;return`${s(l.axisValue)}
${l.seriesName}: ${i(l.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}},yAxis:{type:"value",name:"",minInterval:1e4,interval:1e3,axisLabel:{formatter:function(p,l){return`${i(p)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:"\u4E0B\u8F7D",data:c.value,type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(32, 199, 247, 1)"},{offset:1,color:"rgba(32, 199, 247, 0.1)"}],global:!1}}},{name:"\u4E0A\u4F20",data:o.value,type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(85, 58, 254, 1)"},{offset:1,color:"rgba(85, 58, 254, 0.1)"}],global:!1}}}],grid:{left:"0%",right:"0%",bottom:"0%",top:"0w",containLabel:!0}}),m);return lt(()=>{setTimeout(()=>z(this,null,function*(){if(r.value){yield h();const D=b(r.value),p=r.value;D.resize({width:p.clientWidth,height:p.clientHeight}),window.addEventListener("resize",()=>{D.resize({width:p.clientWidth,height:p.clientHeight})});const l=()=>z(this,null,function*(){m!=null&&(yield h(),m!=null&&(D.setOption({series:[{name:"\u4E0B\u8F7D",data:c.value,type:"line",areaStyle:{},smooth:!0},{name:"\u4E0A\u4F20",data:o.value,type:"line",areaStyle:{},smooth:!0}]}),setTimeout(l,5e3)))});setTimeout(l,5e3)}}),900)}),wt(()=>{m!=null&&(m.dispose(),m=null)}),(D,p)=>(a(),d("div",ca,[t("div",{ref_key:"el",ref:r,class:"echart"},null,512),t("div",da,[_.value?(a(),d("span",ra,F(D.$t("\u4E0A\u4F20"))+": "+F(_.value),1)):w("",!0),f.value?(a(),d("span",_a,F(D.$t("\u4E0B\u8F7D"))+": "+F(f.value),1)):w("",!0)])]))}});var va=S(pa,[["__scopeId","data-v-475e377c"]]);const Ae=e=>(q("data-v-39628bee"),e=e(),H(),e),ha={class:"width-45 responsive"},Fa={class:"width-55 responsive"},ma={class:"network"},fa=Ae(()=>t("img",{src:Go,alt:"network"},null,-1)),Ea={class:"device"},Ca=Ae(()=>t("img",{src:Wo,alt:"device"},null,-1)),$a={class:"ip-dns"},ga={class:"title"},ba={class:"ip"},ya={class:"title"},Da={class:"dns"},ka=I({__name:"index",setup(e){const u=Ot.stampForm,s=n=>{switch(n){case"pppoe":return dt.global.t("\u62E8\u53F7\u4E0A\u7F51");case"static":return dt.global.t("\u9759\u6001\u7F51\u7EDC");case"dhcp":return"DHCP"}return n&&n.toUpperCase()},o=n=>{switch(n){case"manual":return dt.global.t("\u624B\u52A8\u914D\u7F6E");case"auto":return dt.global.t("\u81EA\u52A8\u83B7\u53D6");default:return""}},c=mt({ipv4addr:"",ipv6addr:"",internetConnected:!1,proto:"",dnsProto:"",dnsList:[],uptimeStamp:0}),_=g({devices:[]}),f=()=>z(this,null,function*(){P.Network.Status.GET().then(n=>{if(n!=null&&n.data){const{result:i}=n==null?void 0:n.data;i&&(c.ipv4addr=i.ipv4addr,c.proto=i.proto,c.dnsProto=i.dnsProto,c.ipv6addr=i.ipv6addr,c.dnsList=i.dnsList,c.uptimeStamp=i.uptimeStamp,window.setInterval(()=>{c.uptimeStamp&&(c.uptimeStamp=c.uptimeStamp+1)},1e3))}})}),h=()=>z(this,null,function*(){P.Network.Device.List.GET().then(n=>{if(n!=null&&n.data){const{result:i}=n==null?void 0:n.data;_.value={devices:(i==null?void 0:i.devices)||[]}}})});return f(),h(),(n,i)=>(a(),L(ft,null,{default:V(()=>[t("div",ha,[B(W,{title:n.$t("\u6D41\u91CF\u7EDF\u8BA1"),span:24,padding:"0 8px"},{default:V(()=>[B(va)]),_:1},8,["title"])]),t("div",Fa,[B(W,{span:12},{default:V(()=>[t("div",ma,[fa,t("div",null,[t("span",null,F(n.$t("\u5DF2\u8FDE\u63A5\u4E92\u8054\u7F51")),1),t("span",null,F(Z(u)(c.uptimeStamp)),1)])])]),_:1}),B(W,{span:12},{default:V(()=>{var r;return[t("div",Ea,[Ca,t("div",null,[t("span",null,F(n.$t("\u5DF2\u8FDE\u63A5\u8BBE\u5907")),1),t("span",null,F(`${(r=_.value.devices)==null?void 0:r.length}${n.$t("\u53F0")}`),1)])])]}),_:1}),B(W,{span:24},{default:V(()=>[t("div",$a,[t("span",ga,F(n.$t("IP\u5730\u5740")),1),t("div",ba,[t("span",null,F(`IPv4\uFF1A${c.ipv4addr}\uFF08${s(c.proto||"")}\uFF09`),1),t("span",null,F(`IPv6\uFF1A${c.ipv6addr||"-"}`),1)]),t("span",ya,F(`DNS\uFF08${o(c.dnsProto||"")}\uFF09`),1),t("div",Da,[(a(!0),d(N,null,tt(c.dnsList,r=>(a(),d("span",null,F(r),1))),256))])])]),_:1})])]),_:1}))}});var wa=S(ka,[["__scopeId","data-v-39628bee"]]),Ba="/luci-static/istorex/open.svg?v=84274947",Aa="/luci-static/istorex/info.svg?v=7035c5f2";const Ct=e=>(q("data-v-bd2acf72"),e=e(),H(),e),xa=["onSubmit"],Sa=Ct(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u786C\u76D8\u914D\u7F6E")],-1)),Ia={class:"action-body"},Va={class:"disk-info"},Pa=Ct(()=>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)),Ma={key:0,class:"disk-info_mount-name"},Ta={key:1,class:"disk-info_mount-name"},La={key:0,class:"label-item"},za=Ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),Na={class:"label-item_path"},Oa={class:"label-item"},qa=Ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u683C\u5F0F\u5316\u9009\u9879")],-1)),Ha={class:"label-item_value"},Ua=["disabled"],Ra={key:0,value:""},Ga=Ct(()=>t("option",{value:"format"},"\u683C\u5F0F\u5316",-1)),Wa={key:1,value:"default"},Za={class:"label-item_value"},ja={key:0,class:"msg"},Xa={key:1,class:"msg"},Ya={class:"action-footer"},Qa=Ct(()=>t("div",{class:"auto"},null,-1)),Ka=["disabled"],Ja=["disabled"],ti={key:1,class:"action result"},ei={class:"action-body"},ui=Ct(()=>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)),si=Ct(()=>t("div",{class:"action-body_msg"},"\u683C\u5F0F\u5316\u6210\u529F",-1)),ni={key:0,class:"action-body_info"},oi={key:1,class:"action-body_info"},ai={class:"btns"},ii=I({__name:"index",props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const u=e,s=()=>{u.Close&&u.Close()},o=v=>{v.preventDefault(),u.Cancel&&u.Cancel(),s()},c=v=>{u.Next&&u.Next(v),s()},_=g(!1),f=g(0),h=v=>{f.value=v},n=g(u.action=="nas"?"":"format"),i=g(),r=g(),m=()=>{switch(n.value){case"format":D();return;case"default":b();return;default:A.Warning("\u8BF7\u9009\u62E9\u9009\u7EBF");return}},b=()=>{let v="";const C=u.mount;if(C!=null&&C.mountPoint!=null&&(v=C.mountPoint),v!=""){c(v);return}A.Warning("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84")},D=()=>{const v=u.disk,C=u.mount;if(C){const k=C.mountPoint||C.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${k} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${k}?`))return;l(C);return}if(v){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${v.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;p(v);return}A.Warning("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E")},p=v=>z(this,null,function*(){if(v.name==null||v.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(v.path==null||v.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}_.value=!0;const C=A.Loading("\u521D\u59CB\u5316\u4E2D...");try{const k=yield P.Nas.Disk.Init.POST({name:v.name,path:v.path});if(k!=null&&k.data){const{result:$,error:y}=k==null?void 0:k.data;y&&A.Warning(y),$&&($.errorInfo?A.Warning($.errorInfo):(A.Success("\u521D\u59CB\u5316\u6210\u529F"),$.childrens&&$.childrens.length>0&&(r.value=$.childrens[0]),i.value=$,h(1)))}}catch(k){A.Error(k)}C.Close(),_.value=!1}),l=v=>z(this,null,function*(){if(v.path==null||v.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}_.value=!0;const C=A.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const k=yield P.Nas.Disk.Partition.Format.POST({path:v.path,uuid:v.uuid,mountPoint:v.mountPoint});if(k!=null&&k.data){const{result:$,error:y}=k==null?void 0:k.data;y&&A.Warning(y),$&&(A.Success("\u683C\u5F0F\u5316\u6210\u529F"),r.value=$,h(1))}}catch(k){A.Error(k)}C.Close(),_.value=!1}),E=()=>{if(r.value&&r.value.mountPoint){c(r.value.mountPoint);return}A.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")};return(v,C)=>(a(),L(st,{type:1},{default:V(()=>[B(Lt,{name:"rotate",mode:"out-in"},{default:V(()=>{var k;return[f.value==0?(a(),d("form",{key:0,class:"action format",onSubmit:it(m,["prevent"])},[Sa,t("div",Ia,[t("div",Va,[Pa,e.mount?(a(),d("div",Ma,[t("span",null,"\u3010"+F(e.mount.total)+"\u3011",1),t("span",null,F(e.mount.mountPoint||e.mount.path),1)])):e.disk?(a(),d("div",Ta,[t("span",null,"\u3010"+F(e.disk.size)+"\u3011",1),t("span",null,F(e.disk.venderModel),1)])):w("",!0)]),e.mount?(a(),d("div",La,[za,t("div",Na,F(e.mount.mountPoint||e.mount.path)+"\uFF08"+F(e.mount.total)+"\uFF09 ",1)])):w("",!0),t("div",Oa,[qa,t("div",Ha,[T(t("select",{"onUpdate:modelValue":C[0]||(C[0]=$=>n.value=$),required:"",disabled:e.action=="disk"},[e.mount!=null?(a(),d("option",Ra,"\u8BF7\u9009\u62E9\u9009\u9879")):w("",!0),Ga,e.mount!=null?(a(),d("option",Wa," \u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF ")):w("",!0)],8,Ua),[[Et,n.value]])]),t("div",Za,[n.value=="format"?(a(),d("p",ja," \u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u4F20\u8F93\u901F\u5EA6\u66F4\u5FEB ")):n.value=="default"?(a(),d("p",Xa)):w("",!0)])])]),t("div",Ya,[Qa,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:o,type:"button",disabled:_.value}," \u8FD4\u56DE ",8,Ka),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:_.value}," \u4E0B\u4E00\u6B65 ",8,Ja)])],40,xa)):f.value==1?(a(),d("div",ti,[t("div",ei,[ui,si,i.value?(a(),d("div",ni,[K(" \u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8 "+F(i.value.venderModel)+" \u5E76\u6302\u8F7D\u5230 ",1),t("a",null,F((k=r.value)==null?void 0:k.mountPoint),1)])):w("",!0),r.value?(a(),d("div",oi,[K(" \u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A "),t("a",null,F(r.value.mountPoint),1)])):w("",!0),t("div",ai,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:E},F(e.action=="nas"?"\u4E0B\u4E00\u6B65":"\u5B8C\u6210"),1)])])])):w("",!0)]}),_:1})]),_:1}))}});var li=S(ii,[["__scopeId","data-v-bd2acf72"]]),xe=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(li,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const Dt=e=>(q("data-v-3a7479d2"),e=e(),H(),e),ci=["onSubmit"],di=Dt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"})],-1)),ri={class:"action-body"},_i={class:"disk-info"},pi=Dt(()=>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)),vi={key:0,class:"disk-info_mount-name"},hi={key:1,class:"disk-info_mount-name"},Fi={key:0,class:"label-item"},mi=Dt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),fi={class:"label-item_path"},Ei={class:"label-item"},Ci=Dt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u6302\u8F7D\u70B9")],-1)),$i={class:"label-item_value"},gi={class:"action-footer"},bi=Dt(()=>t("div",{class:"auto"},null,-1)),yi=["disabled"],Di=["disabled"],ki={key:1,class:"action result"},wi={class:"action-body"},Bi=Dt(()=>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)),Ai=Dt(()=>t("div",{class:"action-body_msg"},"\u6302\u8F7D\u6210\u529F",-1)),xi={key:0,class:"action-body_info"},Si={class:"btns"},Ii=I({__name:"index",props:{action:String,disk:{type:Object,required:!0},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){var D;const u=e,s=()=>{u.Close&&u.Close()},o=p=>{p.preventDefault(),u.Cancel&&u.Cancel(),s()},c=p=>{u.Next&&u.Next(p),s()},_=g(!1),f=g(0),h=g("/mnt/data_"+((D=u==null?void 0:u.mount)==null?void 0:D.name)),n=p=>{f.value=p};g(u.mount?"":"format"),g();const i=g(),r=()=>z(this,null,function*(){const p=u.mount;if(p==null){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A");return}if(p.path==null||p.path==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}if(p.uuid==null||p.uuid==""){A.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID");return}_.value=!0;const l=A.Loading("\u6302\u8F7D\u4E2D...");try{const E=yield P.Nas.Disk.Partition.Mount.POST({path:p.path,uuid:p.uuid,mountPoint:h.value});if(E!=null&&E.data){const{result:v,error:C}=E==null?void 0:E.data;C&&A.Warning(C),v&&(A.Success("\u6302\u8F7D\u6210\u529F"),i.value=v,n(1))}}catch(E){A.Error(E)}l.Close(),_.value=!1}),m=()=>{if(i.value&&i.value.mountPoint){c(i.value.mountPoint);return}A.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")},b=()=>{};return(p,l)=>(a(),L(st,{type:1},{default:V(()=>[B(Lt,{name:"rotate",mode:"out-in"},{default:V(()=>{var E,v;return[f.value==0?(a(),d("form",{key:0,class:"action format",onSubmit:it(b,["prevent"])},[di,t("div",ri,[t("div",_i,[pi,e.mount?(a(),d("div",vi,[t("span",null,"\u3010"+F(e.mount.total)+"\u3011",1),t("span",null,F(e.mount.mountPoint),1)])):e.disk?(a(),d("div",hi,[t("span",null,"\u3010"+F(e.disk.size)+"\u3011",1),t("span",null,F(e.disk.venderModel),1)])):w("",!0)]),e.mount?(a(),d("div",Fi,[mi,t("div",fi,F(e.mount.path)+"\uFF08"+F(e.mount.total)+"\uFF0C"+F((v=(E=e.mount)==null?void 0:E.filesystem)==null?void 0:v.toUpperCase())+"\uFF09 ",1)])):w("",!0),t("div",Ei,[Ci,t("div",$i,[T(t("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=C=>h.value=C)},null,512),[[Y,h.value,void 0,{trim:!0}]])])])]),t("div",gi,[bi,t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:_.value,onClick:r}," \u786E\u5B9A ",8,yi),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:o,type:"button",disabled:_.value}," \u8FD4\u56DE ",8,Di)])],40,ci)):f.value==1?(a(),d("div",ki,[t("div",wi,[Bi,Ai,i.value?(a(),d("div",xi,[K(" \u5DF2\u6210\u529F\u5C06\u5206\u533A "+F(i.value.path)+" \u6302\u8F7D\u5230 ",1),t("a",null,F(i.value.mountPoint),1)])):w("",!0),t("div",Si,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:m},F(e.action=="nas"?"\u5B8C\u6210":"\u4E0B\u4E00\u6B65"),1)])])])):w("",!0)]}),_:1})]),_:1}))}});var Vi=S(Ii,[["__scopeId","data-v-3a7479d2"]]),Se=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Vi,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const Pi={class:"progress"},Mi=I({__name:"index",props:{value:{type:Number,required:!0},text:{type:String}},setup(e){const u=e,s=R(()=>u.value>=80?"#e45e5e":u.value>=70?"#ff9800":u.value>=60?"#297ff3":u.value>0?"#53c31b":"");return(o,c)=>(a(),d("div",Pi,[t("div",{class:Xt(["progress-value",`${e.value>50}`]),style:J({width:`${e.value}%`,backgroundColor:s.value})},[t("span",null,F(e.text),1)],6),bt(o.$slots,"default",{},void 0,!0)]))}});var Ti=S(Mi,[["__scopeId","data-v-733828e1"]]);const Ie=e=>(q("data-v-4b3c5909"),e=e(),H(),e),Li={class:"disk-content"},zi={class:"disk-item"},Ni={class:"disk-item_name"},Oi={key:0},qi={key:1},Hi={key:2},Ui={class:"disk_value"},Ri={key:0,class:"disk-item_value"},Gi={class:"value-data"},Wi={key:1,class:"disk-item_value"},Zi={key:0,class:"disk-item"},ji={class:"disk-item_name"},Xi=["href"],Yi={class:"disk_status"},Qi={class:"disk_status_item"},Ki={key:0,class:"tooltip-trigger disk_tip"},Ji=Ie(()=>t("div",{class:"tooltip-text tooltip-top"},[t("div",{class:"disk_dir_tip"}," \u5F53\u524D\u78C1\u76D8\u4E3A\u53EA\u8BFB\u72B6\u6001\uFF0C\u53EF\u80FD\u5BFC\u81F4\u65E0\u6CD5\u5199\u5165\u6570\u636E ")],-1)),tl={class:"disk_status_item"},el={key:0,class:"tooltip-trigger disk_tip"},ul=Ie(()=>t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u5F53\u524D\u78C1\u76D8\u786C\u76D8\u683C\u5F0F\u4E3ANTFS\uFF0C\u53EF\u80FD\u5BFC\u81F4\u786C\u76D8\u51FA\u73B0\u517C\u5BB9\u6027\u95EE\u9898\uFF0C\u5EFA\u8BAE\u683C\u5F0F\u5316\u6210EXT4\u6587\u4EF6\u7CFB\u7EDF")],-1)),sl=I({__name:"item",props:{part:{type:Object,required:!0},disk:{type:Object,required:!0}},setup(e){const u=e,s=R(()=>u.part.filesystem=="No FileSystem"),o=R(()=>s.value||!u.part.isSystemRoot&&u.part.mountPoint&&(u.part.isReadOnly||u.part.filesystem=="ntfs")),c=function(){xe({action:"disk",disk:u.disk,mount:u.part,Cancel:()=>{},Next:i=>{location.reload()}})},_=()=>{Se({action:"nas",disk:u.disk,mount:u.part,Cancel:()=>{},Next:()=>{location.reload()}})},f=()=>z(this,null,function*(){const i=A.Loading("\u5904\u7406\u4E2D...");try{const r=yield P.Nas.Disk.InitRest.POST({name:u.disk.name,path:u.disk.path});if(r!=null&&r.data){const{result:m,error:b}=r==null?void 0:r.data;b&&A.Warning(b),m&&(A.Success("\u6302\u8F7D\u6210\u529F"),location.reload())}}catch(r){A.Error(r)}i.Close()}),h=R(()=>u.part.filesystem=="Free Space"),n=R(()=>{const i=u.part.mountPoint?u.part.mountPoint:"";return i.indexOf("/mnt/")==0?"/cgi-bin/luci/admin/services/linkease/file/?path=/"+i.substring(5):"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+i});return(i,r)=>{var b;const m=Zt("progress-item");return a(),d("div",Li,[t("li",zi,[t("div",Ni,[h.value?(a(),d("span",Oi,"\u672A\u5206\u533A")):(a(),d("span",qi,F(e.part.name)+F(e.part.mountPoint?"":s.value?"\uFF08\u672A\u683C\u5F0F\u5316\uFF09":"\uFF08\u672A\u6302\u8F7D\uFF09"),1)),e.part.isSystemRoot?(a(),d("span",Hi,"\uFF08\u7CFB\u7EDF\u5206\u533A\uFF09")):w("",!0)]),t("div",Ui,[e.part.mountPoint||h.value?(a(),d("div",Ri,[t("div",Gi,[B(m,{value:h.value||!e.part.usage?0:e.part.usage,text:h.value?"\u672A\u5206\u533A\uFF08"+e.part.total+"\uFF09":e.part.used+"/"+e.part.total,style:{backgroundColor:"#767676"}},null,8,["value","text"])])])):s.value?w("",!0):(a(),d("div",Wi,[t("div",{class:"value-data buttondiv",onClick:_},"\u624B\u52A8\u6302\u8F7D")])),h.value?(a(),d("button",{key:2,class:"cbi-button cbi-button-apply",onClick:f}," \u5206\u533A\u5E76\u683C\u5F0F\u5316 ")):o.value?(a(),d("button",{key:3,class:"cbi-button cbi-button-apply",onClick:c}," \u683C\u5F0F\u5316\u5206\u533A ")):w("",!0)])]),e.part.mountPoint?(a(),d("li",Zi,[t("span",ji,[t("a",{href:n.value,target:"_blank"},F(e.part.mountPoint),9,Xi)]),t("div",Yi,[t("div",Qi,[t("div",null,"\u78C1\u76D8\u8BFB\u5199\u72B6\u6001\uFF1A"+F(e.part.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1),!e.part.isSystemRoot&&e.part.isReadOnly?(a(),d("div",Ki,[B(rt),Ji])):w("",!0)]),t("div",tl,[t("div",null,"\u78C1\u76D8\u683C\u5F0F\uFF1A"+F((b=e.part.filesystem)==null?void 0:b.toUpperCase()),1),e.part.filesystem=="ntfs"?(a(),d("div",el,[B(rt),ul])):w("",!0)])])])):w("",!0)])}}});var nl=S(sl,[["__scopeId","data-v-4b3c5909"]]);const Ve=e=>(q("data-v-5f29973e"),e=e(),H(),e),ol={key:0,class:"action"},al={class:"title"},il=Ve(()=>t("div",{class:"app-container_info"},[t("span",null,"\u5206\u533A / \u6302\u8F7D\u70B9"),t("span",null,"\u5BB9\u91CF")],-1)),ll={class:"app-container_body"},cl=Ve(()=>t("div",{class:"auto"},null,-1)),dl=I({__name:"index",props:{disk:{type:Object,required:!0},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const u=e,s=g(0),o=()=>{u.Close&&u.Close()},c=_=>{_.preventDefault(),u.Cancel&&u.Cancel(),o()};return(_,f)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[B(Lt,{name:"rotate",mode:"out-in"},{default:V(()=>[s.value==0?(a(),d("div",ol,[t("h2",al," \u5206\u533A\u4FE1\u606F - "+F((e.disk.name||"?")+(e.disk.isSystemRoot?"\uFF08\u7CFB\u7EDF\u76D8\uFF09":"")),1),t("ul",null,[t("li",null,[il,t("div",ll,[(a(!0),d(N,null,tt(e.disk.childrens,(h,n)=>(a(),L(nl,{key:n,part:h,disk:e.disk},null,8,["part","disk"]))),128))])])]),t("div",{class:"action-footer"},[cl,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:c,type:"button"}," \u8FD4\u56DE ")])])):w("",!0)]),_:1})]),_:1},8,["Close"]))}});var rl=S(dl,[["__scopeId","data-v-5f29973e"]]),_l=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(rl,ht(vt({},e),{Close:()=>{o()}}));s.component("progress-item",Ti),s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}},pl="/luci-static/istorex/warning.svg?v=69d55c8f";const qt=e=>(q("data-v-e039a994"),e=e(),H(),e),vl={class:"disk"},hl={key:0,class:"title"},Fl={class:"not-progress"},ml={key:0},fl={class:"progress"},El={class:"button"},Cl=["src"],$l=qt(()=>t("span",null,"S.M.A.R.T\u5F02\u5E38",-1)),gl={key:1},bl={class:"progress"},yl={class:"button"},Dl={key:0,class:"tooltip-trigger"},kl={class:"disk_tip"},wl=qt(()=>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)),Bl={key:1,class:"tooltip-trigger"},Al={class:"disk_tip"},xl=qt(()=>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)),Sl={key:2,class:"tooltip-trigger"},Il={class:"disk_tip"},Vl=qt(()=>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\u70B9\u51FB\u5206\u533A\u5217\u8868\u67E5\u770B\u9519\u8BEF")])],-1)),Pl=["onClick"],Ml=["onClick"],Tl={class:"progress"},Ll={class:"button"},zl=["onClick"],Nl={key:0},Ol={class:"progress"},ql={class:"button"},Hl=["onClick"],Ul={key:1},Rl={class:"progress"},Gl={class:"button"},Wl=["onClick"],Zl=I({__name:"disk",props:{title:String,type:String,smartWarning:Boolean},setup(e){const u=e,s=ke(),o=R(()=>{var m,b,D,p;if(u.type==="systemRoot")return((b=(m=s==null?void 0:s.disk)==null?void 0:m.disks)==null?void 0:b.filter(l=>l.isSystemRoot))||[];if(u.type==="notSystemRoot")return[...(D=s==null?void 0:s.disk)==null?void 0:D.disks].filter(l=>!l.isSystemRoot)||[];if(u.type==="raid")return[...(p=s==null?void 0:s.raid)==null?void 0:p.disks]}),c=m=>m.usage>80?"linear-gradient(91deg, #e7ab67 0.27%, #fa5b29 99.46%)":"linear-gradient(91deg, #4BCAE7 0.27%, #8ADE86 99.46%)",_=()=>{ot({title:"S.M.A.R.T.",src:"/cgi-bin/luci/admin/nas/smart"})},f=m=>{xe({action:"disk",disk:m,Cancel:()=>{},Next:()=>{location.reload()}})},h=m=>{_l({action:"disk",disk:m,Cancel:()=>{},Next:()=>{location.reload()}})},n=m=>{const b=m.childrens||[];Se({action:"nas",disk:m,mount:b[0],Cancel:()=>{},Next:()=>{location.reload()}})},i=m=>m.errorInfo?"error":m.childrens==null||m.childrens.length==0||m.childrens.length==1&&m.childrens[0].filesystem=="No FileSystem"?"load":m.childrens.filter(b=>b.mountPoint).length===0?"unmounted":"success",r=m=>{let b=m.name;return m.size&&(b+=`\u3010${m.size}\u3011`),m.venderModel&&(b+=`(${m.venderModel})`),b};return(m,b)=>{var D;return a(),d("div",vl,[(D=o.value)!=null&&D.length?(a(),d("span",hl,F(u.title),1)):w("",!0),(a(!0),d(N,null,tt(o.value,(p,l)=>{var E,v,C,k,$;return a(),d("div",{class:"item",key:l},[i(p)==="error"?(a(),d(N,{key:0},[t("span",null,F(r(p)),1),t("div",Fl,[t("span",null,F(p.errorInfo),1)])],64)):i(p)=="success"?(a(),d(N,{key:1},[t("span",null,F(r(p)),1),p.smartWarning&&e.smartWarning?(a(),d("div",ml,[t("div",fl,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",El,[t("span",{class:"btn",onClick:b[0]||(b[0]=y=>_())},[t("img",{src:Z(pl)},null,8,Cl),$l])])])):(a(),d("div",gl,[t("div",bl,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",yl,[p.isDockerRoot&&p.isSystemRoot&&p.usage&&p.usage>=90?(a(),d("span",Dl,[t("span",kl,[B(rt)]),wl])):w("",!0),!p.isSystemRoot&&(((E=p.childrens)==null?void 0:E.filter(y=>y.isReadOnly||y.filesystem=="ntfs").length)||0)>0?(a(),d("span",Bl,[t("span",Al,[B(rt)]),xl])):w("",!0),(v=p.childrens)!=null&&v.filter(y=>y.isSystemRoot&&y.usage&&y.usage>80).length?(a(),d("span",Sl,[t("span",Il,[B(rt)]),Vl])):w("",!0),!p.isSystemRoot&&(((C=p.childrens)==null?void 0:C.filter(y=>y.isReadOnly||y.filesystem=="ntfs").length)||0)>0?(a(),d("img",{key:3,src:Ba,onClick:y=>f(p),alt:""},null,8,Pl)):w("",!0),t("img",{onClick:y=>h(p),src:Aa,alt:""},null,8,Ml)])]))],64)):i(p)==="load"?(a(),d(N,{key:2},[t("span",null,F(r(p)),1),t("div",Tl,[t("div",{style:J({width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",Ll,[t("span",{class:"btn",onClick:y=>f(p)},"\u683C\u5F0F\u5316\u5E76\u6302\u8F7D",8,zl)])],64)):i(p)==="unmounted"?(a(),d(N,{key:3},[t("span",null,F(r(p)),1),((k=p.childrens)==null?void 0:k.length)==1?(a(),d("div",Nl,[t("div",Ol,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",ql,[t("span",{class:"btn",onClick:y=>n(p)},"\u624B\u52A8\u6302\u8F7D",8,Hl)])])):w("",!0),((($=p.childrens)==null?void 0:$.length)||0)>1?(a(),d("div",Ul,[t("div",Rl,[t("div",{style:J({background:c(p),width:`${p.usage||0}%`})},null,4),t("span",null,F(`${p.used}/${p.total}`),1)]),t("div",Gl,[t("span",{class:"btn",onClick:y=>h(p)},"\u624B\u52A8\u6302\u8F7D",8,Wl)])])):w("",!0)],64)):w("",!0)])}),128))])}}});var Rt=S(Zl,[["__scopeId","data-v-e039a994"]]),Ce="/luci-static/istorex/right.svg?v=173d63f8";const jl=jt('
',1),Xl={class:"app-container_status-label_text"},Yl={class:"text_status"},Ql={class:"text_info"},Kl=jt('
',1),Jl={class:"app-container_status-label_text"},t1={class:"text_info"},e1=I({__name:"item",props:{item:{type:Object,required:!0},transform:{type:Number,default:0}},setup(e){const u=e,s=we(),o=g(null),c=f=>{const h=f.target,{left:n,top:i}=h.getBoundingClientRect();s.portitemStyle.show=!0,s.portitemStyle.left=n,s.portitemStyle.top=i,s.portitemStyle.portitem=u.item},_=f=>{s.portitemStyle.show=!1};return(f,h)=>(a(),d("div",{class:"app-container_status-label_bg",style:J(`transform: translateX(${e.transform}px);`),ref_key:"el",ref:o,onMouseenter:c,onMouseleave:_},[e.item.linkState=="DOWN"?(a(),d(N,{key:0},[jl,t("div",Xl,[t("div",Yl,F(f.$t("\u5DF2\u65AD\u5F00")),1),t("div",Ql,F(e.item.name)+" "+F(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64)):(a(),d(N,{key:1},[Kl,t("div",Jl,[t("div",null,F(e.item.linkSpeed),1),t("div",t1,F(e.item.name)+" "+F(e.item.interfaceNames?`(${e.item.interfaceNames.join(",").toLocaleUpperCase()})`:""),1)])],64))],36))}});var u1=S(e1,[["__scopeId","data-v-580b5628"]]);const s1=I({__name:"index",props:{portList:{type:Array,required:!0}},setup(e){const u=g(),s=g(0),o=g(0),c=g(0),_=g(!1),f=()=>{if(c.value>=0){c.value=0;return}c.value+=100},h=()=>{if(c.value<=0-s.value+o.value){c.value=0-s.value+o.value;return}c.value-=100};return lt(()=>{Re(()=>{u.value&&(s.value=u.value.scrollWidth,o.value=u.value.clientWidth,_.value=s.value>o.value)})}),(n,i)=>(a(),d("div",{class:"app-interfaces",ref_key:"el",ref:u},[_.value?(a(),d(N,{key:0},[t("img",{src:Ce,class:"btn-f",alt:"",onClick:f}),t("img",{src:Ce,class:"btn-r",alt:"",onClick:h})],64)):w("",!0),(a(!0),d(N,null,tt(e.portList,(r,m)=>(a(),L(u1,{item:r,transform:c.value},null,8,["item","transform"]))),256))],512))}});var n1=S(s1,[["__scopeId","data-v-92f8fb6c"]]);const o1={class:"status-card"},a1=I({__name:"interfacer-status",setup(e){const u=mt({portList:[],load:!1});return(()=>{P.Network.PortList.GET().then(o=>{if(o!=null&&o.data){const{result:c}=o==null?void 0:o.data;c&&(u.portList=c.ports||[])}}).finally(()=>{u.load=!0})})(),(o,c)=>(a(),d("div",o1,[u.load?(a(),L(n1,{key:0,portList:u.portList},null,8,["portList"])):w("",!0)]))}});var i1=S(a1,[["__scopeId","data-v-2244abae"]]);const gt={installApp:(e,u)=>new Promise((s,o)=>{let c=0;P.App.Install.POST({name:e}).then(()=>{const _=setTimeout(()=>{c==0&&(c=1,s(!1))},(u||60)*1e3),f=()=>{c==0&&P.App.Check.POST({name:e}).then(h=>{if(c==0&&h!=null&&h.data){const{result:n}=h.data;if((n==null?void 0:n.status)=="installed"){clearTimeout(_),c=1,s(!0);return}}}).catch(h=>{}).finally(()=>{c==0&&setTimeout(f,3e3)})};setTimeout(f,3e3)}).catch(_=>{c==0&&(c=1,o("\u5B89\u88C5\u5931\u8D25\uFF0C"+_))})}),checkAndInstallApp:(e,u,s)=>z(void 0,null,function*(){let o=A.Loading("\u68C0\u67E5\u4E2D...");try{const c=yield P.App.Check.POST({name:e});if(o.Close(),c!=null&&c.data){const{result:_,error:f}=c.data;if(f)A.Warning(f);else if(_){if(_.status=="installed")return!0;if(confirm(`\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 ${u} \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F`)){o=A.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const h=yield gt.installApp(s||e);if(o.Close(),h)return!0;A.Error("\u5B89\u88C5\u5931\u8D25\u6216\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u8F6F\u4EF6\u6E90\u6216\u7A0D\u5019\u91CD\u8BD5")}}else A.Warning("\u68C0\u67E5\u63D2\u4EF6\u72B6\u6001\u5931\u8D25")}return!1}catch(c){return o.Close(),A.Warning(c),!1}}),installAndGo:(e,u,s,o)=>z(void 0,null,function*(){(yield gt.checkAndInstallApp(e,u,o))&&(location.href=s)})};const l1={class:"width-50 responsive"},c1={class:"chart"},d1={class:"info"},r1={class:"width-50 responsive"},_1=I({__name:"index",setup(e){const u=Ot.stampForm,s=mt({cpuUsage:0,cpuTemperature:0,memAvailablePercentage:0,uptime:0,localtime:""}),o=mt({firmwareVersion:"",kernelVersion:"",model:""});mt({root:[],loaded:[]});const c={interfaceconfig:[{text:"\u7F51\u53E3\u914D\u7F6E",onClick:()=>{ot({title:"\u7F51\u53E3\u914D\u7F6E",src:"/cgi-bin/luci/admin/quickstart/interfaceconfig"})}}],system:[{text:"\u7CFB\u7EDF\u76D1\u63A7",onClick:()=>{gt.installAndGo("app-meta-netdata","NetData","/cgi-bin/luci/admin/status/netdata")}},{text:"\u5907\u4EFD\u5347\u7EA7",onClick:()=>{ot({title:"\u5907\u4EFD\u5347\u7EA7",src:"/cgi-bin/luci/admin/system/flash"})}},{text:"\u63D2\u4EF6\u5907\u4EFD",onClick:()=>{ot({title:"\u63D2\u4EF6\u5907\u4EFD",src:"/cgi-bin/luci/admin/store/pages/maintance"})}}],disk:[{text:"RAID\u7BA1\u7406",onClick:()=>{ot({title:"RAID\u7BA1\u7406",src:"/cgi-bin/luci/admin/nas/raid"})}},{text:"S.M.A.R.T.",onClick:()=>{ot({title:"S.M.A.R.T.",src:"/cgi-bin/luci/admin/nas/smart"})}},{text:"\u78C1\u76D8\u7BA1\u7406",onClick:()=>{ot({title:"\u78C1\u76D8\u7BA1\u7406",src:"/cgi-bin/luci/admin/system/diskman"})}},{text:"\u6302\u8F7D\u70B9",onClick:()=>{ot({title:"\u6302\u8F7D\u70B9",src:"/cgi-bin/luci/admin/system/mounts"})}}]},_=()=>z(this,null,function*(){var b,D,p,l,E;const m=yield P.System.Status.GET();console.log("getSystemStatus",m.data.result),m.data.result&&(s.uptime=(b=m.data.result)==null?void 0:b.uptime,s.localtime=(D=m.data.result)==null?void 0:D.localtime,s.cpuUsage=((p=m.data.result)==null?void 0:p.cpuUsage)||0,s.memAvailablePercentage=100-((l=m.data.result)==null?void 0:l.memAvailablePercentage)||0,s.cpuTemperature=(E=m.data.result)==null?void 0:E.cpuTemperature,r.cpu&&r.cpu.setValue(s.cpuUsage),r.men&&r.men.setValue(s.memAvailablePercentage),r.temperature&&r.temperature.setValue(s.cpuTemperature),window.setInterval(()=>{s.uptime&&(s.uptime=s.uptime+1),s.localtime&&(s.localtime=String(Fe(Fe(s.localtime).unix()*1e3+1e3).format("YYYY-MM-DD HH:mm:ss")))},1e3))}),f=()=>z(this,null,function*(){var b,D,p;const m=yield P.System.Version.GET();console.log("getSystemVersion",m),m.data.result&&(o.firmwareVersion=(b=m.data.result)==null?void 0:b.firmwareVersion,o.kernelVersion=(D=m.data.result)==null?void 0:D.kernelVersion,o.model=(p=m.data.result)==null?void 0:p.model)});ke();const h=g(null),n=g(null),i=g(null),r={cpu:null,men:null,temperature:null};return lt(()=>{h.value&&n.value&&i.value&&(r.cpu=Ut({el:h.value,value:s.cpuUsage,name:dt.global.t("CPU\u4F7F\u7528\u7387"),labelColor:"rgba(0, 0, 0, 0.80)",numberColor:"#32CFA4",labelFontSize:10,numberFontSize:14,radius:"100%",progressBackgroundColor:"rgba(0, 0, 0, 0.04)",progressColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#8ADE86"},{offset:1,color:"#4BCAE7"}],global:!1}}),r.men=Ut({el:n.value,value:s.memAvailablePercentage,name:dt.global.t("\u5185\u5B58\u4F7F\u7528\u7387"),labelColor:"rgba(0, 0, 0, 0.80)",numberColor:"#F66631",labelFontSize:10,numberFontSize:14,radius:"100%",progressBackgroundColor:"rgba(0, 0, 0, 0.04)",progressColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#E5B56E"},{offset:1,color:"#FD4812E5"}],global:!1}}),r.temperature=Ut({el:i.value,value:s.cpuTemperature,name:dt.global.t("CPU\u6E29\u5EA6"),labelColor:"rgba(0, 0, 0, 0.80)",numberColor:"#32CFA4",labelFontSize:10,numberFontSize:14,radius:"100%",progressBackgroundColor:"rgba(0, 0, 0, 0.04)",unit:"\xB0C",progressColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#8ADE86"},{offset:1,color:"#4BCAE7"}],global:!1}}))}),_(),f(),(m,b)=>(a(),L(ft,null,{default:V(()=>[t("div",l1,[B(W,{title:m.$t("\u7F51\u7EDC\u63A5\u53E3\u72B6\u6001"),span:24,"more-actions":c.interfaceconfig,padding:"0 10px 8px 10px"},{default:V(()=>[B(i1)]),_:1},8,["title","more-actions"]),B(W,{title:m.$t("\u7CFB\u7EDF\u4FE1\u606F"),padding:"0 10px 8px 10px",span:24,"more-actions":c.system},{default:V(()=>[t("div",c1,[t("div",{class:"gauge",ref_key:"temperature",ref:i},null,512),t("div",{class:"gauge",ref_key:"cpu",ref:h},null,512),t("div",{class:"gauge",ref_key:"men",ref:n},null,512)]),t("div",d1,[t("div",null,[t("span",null,F(m.$t("\u8BBE\u5907\u578B\u53F7"))+"\uFF1A",1),t("span",null,F(o.model),1)]),t("div",null,[t("span",null,F(m.$t("\u56FA\u4EF6\u7248\u672C"))+"\uFF1A",1),t("span",null,F(o.firmwareVersion),1)]),t("div",null,[t("span",null,F(m.$t("\u5185\u6838\u7248\u672C"))+"\uFF1A",1),t("span",null,F(o.kernelVersion),1)]),t("div",null,[t("span",null,F(m.$t("\u5DF2\u542F\u52A8"))+"\uFF1A",1),t("span",null,F(Z(u)(s.uptime)),1)]),t("div",null,[t("span",null,F(m.$t("\u7CFB\u7EDF\u65F6\u95F4"))+"\uFF1A",1),t("span",null,F(s.localtime),1)])])]),_:1},8,["title","more-actions"])]),t("div",r1,[B(W,{title:m.$t("\u78C1\u76D8\u4FE1\u606F"),padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/8myYAEVA/",span:24,"more-actions":c.disk},{default:V(()=>[B(Rt,{title:m.$t("\u7CFB\u7EDF\u6839\u76EE\u5F55"),type:"systemRoot"},null,8,["title"]),B(Rt,{title:m.$t("\u5DF2\u6302\u8F7D\u78C1\u76D8"),smartWarning:!0,type:"notSystemRoot"},null,8,["title"]),B(Rt,{title:m.$t("RAID\u8BBE\u5907"),type:"raid"},null,8,["title"])]),_:1},8,["title","more-actions"])])]),_:1}))}});var p1=S(_1,[["__scopeId","data-v-3f470552"]]),v1="/luci-static/istorex/setting.svg?v=9ffe8a9b";const h1={class:"app"},F1={class:"setting"},m1=["src"],f1=["src"],E1=I({__name:"app",props:{title:{},title_en:{},name:{},isWebUrl:{type:Function},openApp:{type:Function},openWebUrl:{type:Function}},setup(e){const u=e,s=g(localStorage.getItem("i18n")),o=c=>P.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${c}/logo.png`);return lt(()=>{Be.subscribe("changeLocale",(c,_)=>{s.value=_})}),(c,_)=>(a(),d("div",h1,[u.isWebUrl()?(a(),d("div",{key:0,onClick:_[1]||(_[1]=f=>u.openWebUrl())},[t("span",F1,[t("img",{src:v1,alt:"",onClick:_[0]||(_[0]=f=>{f.stopPropagation(),u.openApp()})})]),t("div",null,[t("img",{class:"app-icon",src:o(u.name),alt:"\u56FE\u6807\u51FA\u8D70\u5566"},null,8,m1),t("span",null,F(s.value==="en"&&u.title_en||u.title),1)])])):(a(),d("div",{key:1,onClick:_[2]||(_[2]=f=>u.openApp())},[t("div",null,[t("img",{class:"app-icon",src:o(u.name),alt:"\u56FE\u6807\u51FA\u8D70\u5566"},null,8,f1),t("span",null,F(s.value==="en"&&u.title_en||u.title),1)])]))]))}});var C1=S(E1,[["__scopeId","data-v-03c48935"]]);const $1=e=>(q("data-v-042b9e9a"),e=e(),H(),e),g1={class:"app-store"},b1=$1(()=>t("span",null,"APP Store",-1)),y1=I({__name:"index",setup(e){const u=Ge(),s=R(()=>u.localApps.filter(c=>c.name!="istorex"));return(()=>z(this,null,function*(){yield u.getApp()}))(),(c,_)=>(a(),L(ft,{title:c.$t("\u5E94\u7528\u4E2D\u5FC3")},{default:V(()=>[t("div",g1,[t("div",{class:"store",onClick:_[0]||(_[0]=f=>Z(We).Open())},[t("div",null,[t("div",null,[t("span",null,F(c.$t("\u5E94\u7528\u5546\u5E97")),1),b1])])]),(a(!0),d(N,null,tt(s.value,f=>(a(),L(C1,Ze(je(f)),null,16))),256))])]),_:1},8,["title"]))}});var D1=S(y1,[["__scopeId","data-v-042b9e9a"]]),k1="/luci-static/istorex/copy.png?v=7ec874a7";const _t=e=>(q("data-v-43beecef"),e=e(),H(),e),w1={class:"actioner-container"},B1=_t(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),A1={class:"actioner-container_body"},x1={class:"label-item"},S1=_t(()=>t("span",null,"DDNSTO",-1)),I1=_t(()=>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)),V1={class:"label-item"},P1=_t(()=>t("span",null,"\u963F\u91CC\u4E91",-1)),M1=_t(()=>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)),T1={class:"label-item"},L1=_t(()=>t("span",null,"Dnspod",-1)),z1=_t(()=>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)),N1={class:"label-item"},O1=_t(()=>t("span",null,"\u82B1\u751F\u58F3",-1)),q1=_t(()=>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)),H1=I({__name:"setup-index",props:{onSetup:{type:Function,required:!0},active:{type:String,default:"ddnsto"}},emits:["update:active"],setup(e,{emit:u}){const s=e,o=()=>{s.onSetup()},c=g(s.active),_=()=>{switch(u("update:active",c.value),c.value){case"ddnsto":s.onSetup("ddnsto");break;case"ali":s.onSetup("ddns-ali");break;case"dnspod":s.onSetup("ddns-dnspod");break;case"oray":s.onSetup("ddns-oray");break}};return(f,h)=>(a(),d("div",w1,[B1,t("div",A1,[t("div",x1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[0]||(h[0]=n=>c.value=n),value:"ddnsto"},null,512),[[at,c.value]]),S1]),I1]),t("div",V1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[1]||(h[1]=n=>c.value=n),value:"ali"},null,512),[[at,c.value]]),P1]),M1]),t("div",T1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[2]||(h[2]=n=>c.value=n),value:"dnspod"},null,512),[[at,c.value]]),L1]),z1]),t("div",N1,[t("label",null,[T(t("input",{type:"radio","onUpdate:modelValue":h[3]||(h[3]=n=>c.value=n),value:"oray"},null,512),[[at,c.value]]),O1]),q1])]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:o},"\u53D6\u6D88"),t("div",{class:"next",onClick:_},"\u4E0B\u4E00\u6B65")])]))}});var U1=S(H1,[["__scopeId","data-v-43beecef"]]);const zt=e=>(q("data-v-43dd65a2"),e=e(),H(),e),R1={class:"actioner-container"},G1={class:"actioner-container_body"},W1=zt(()=>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)),Z1=zt(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),j1=zt(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),X1={class:"body-info"},Y1=zt(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),Q1=["href"],K1=zt(()=>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)),J1=I({__name:"setup-ddns-success",props:{target:{type:String,required:!0},onSetup:{type:Function,required:!0}},setup(e){const u=()=>{location.reload()};return(s,o)=>(a(),d("div",R1,[t("div",G1,[W1,Z1,j1,t("div",X1,[Y1,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},F(e.target),9,Q1)]),K1]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:u},"\u5173\u95ED")])]))}});var tc=S(J1,[["__scopeId","data-v-43dd65a2"]]);const Pe=e=>(q("data-v-7790f1da"),e=e(),H(),e),ec={class:"actioner-container"},uc=Pe(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),sc=Pe(()=>t("div",{class:"actioner-container_body ddnsto-login"},[t("iframe",{src:"https://www.kooldns.cn/bind/#/auth?send=1&source=openwrt&callback=*"})],-1)),nc=I({__name:"setup-ddnsto-login",props:{onSetup:{type:Function,required:!0},onDdnstoConfig:{type:Function,required:!0}},setup(e){const u=e,s=()=>{u.onSetup()},o=c=>{if(c.data.auth=="ddnsto"){const _=c.data.sign,f=c.data.token;_&&f&&(removeEventListener("message",o),u.onDdnstoConfig(_,f),u.onSetup("ddnsto-run"))}};return lt(()=>{window.addEventListener("message",o)}),wt(()=>{removeEventListener("message",o)}),(c,_)=>(a(),d("div",ec,[uc,sc,t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:s},"\u53D6\u6D88")])]))}});var oc=S(nc,[["__scopeId","data-v-7790f1da"]]);const ac=e=>(q("data-v-5baf4b05"),e=e(),H(),e),ic={class:"actioner-container"},lc=ac(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),cc={class:"actioner-container_body ddnsto-bind"},dc=["src"],rc=I({__name:"setup-ddnsto-bind",props:{onSetup:{type:Function,required:!0},config:{type:Object,required:!0},domain:{type:String,required:!0}},emits:["update:domain"],setup(e,{emit:u}){const s=e,o=R(()=>{const{domain:f,token:h,sign:n,routerId:i,netaddr:r}=s.config,m=encodeURIComponent(f),b=encodeURIComponent(r);return`https://www.kooldns.cn/bind/#/domain?domain=${m}&sign=${n}&token=${h}&routerId=${i}&netaddr=${b}`}),c=f=>{if(f.data){const{auth:h,url:n}=f.data;h==="ddnsto"&&n&&_(n)}},_=f=>z(this,null,function*(){var h;try{const n=yield P.Guide.DdnstoAddress.POST({address:f});n!=null&&n.data&&(((h=n==null?void 0:n.data)==null?void 0:h.success)||0)==0&&(u("update:domain",f),s.onSetup("ddnsto-save"))}catch(n){}});return lt(()=>{window.addEventListener("message",c)}),wt(()=>{removeEventListener("message",c)}),(f,h)=>(a(),d("div",ic,[lc,t("div",cc,[t("iframe",{src:o.value},null,8,dc)])]))}});var _c=S(rc,[["__scopeId","data-v-5baf4b05"]]);const Nt=e=>(q("data-v-02a6c9d8"),e=e(),H(),e),pc={class:"actioner-container"},vc={class:"actioner-container_body"},hc=Nt(()=>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)),Fc=Nt(()=>t("div",{class:"body-title"},"\u6DFB\u52A0\u6210\u529F",-1)),mc=Nt(()=>t("p",{class:"body-tips"},"\u8BF7\u7A0D\u7B491\u5206\u949F\u751F\u6548\u540E\u518D\u4F7F\u7528\u3002",-1)),fc={class:"body-info"},Ec=Nt(()=>t("span",null,"\u8BBF\u95EE\u5730\u5740\uFF1A",-1)),Cc=["href"],$c=Nt(()=>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)),gc=I({__name:"setup-ddnsto-save",props:{onSetup:{type:Function,required:!0},target:{type:String,required:!0}},setup(e){const u=()=>{location.reload()};return(s,o)=>(a(),d("div",pc,[t("div",vc,[hc,Fc,mc,t("div",fc,[Ec,t("a",{href:e.target,target:"_blank",rel:"noopener noreferrer"},F(e.target),9,Cc)]),$c]),t("div",{class:"actioner-container_footer"},[t("div",{class:"close",onClick:u},"\u5173\u95ED")])]))}});var bc=S(gc,[["__scopeId","data-v-02a6c9d8"]]);const yc=e=>(q("data-v-4f87c1d1"),e=e(),H(),e),Dc={class:"actioner-container"},kc=yc(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),wc={class:"actioner-container_body"},Bc={class:"actioner-container_footer"},Ac=I({__name:"setup-ddnsto-install",props:{onSetup:{type:Function,required:!0}},setup(e){const u=e,s=()=>{u.onSetup()},o=()=>z(this,null,function*(){if(f.value)return;f.value=!0;const n=A.Loading("\u5B89\u88C5\u4E2D...");try{if(yield gt.installApp("app-meta-ddnsto",30)){u.onSetup("ddnsto-login");return}else c.value="\u5B89\u88C5\u5931\u8D25"}catch(i){c.value=i}finally{n.Close()}f.value=!1}),c=g("\u6B63\u5728\u68C0\u6D4B\u4E2D..."),_=g(!1),f=g(!1);return(()=>z(this,null,function*(){try{const n=yield P.App.Check.POST({name:"ddnsto"});if(n!=null&&n.data){const{result:i,error:r}=n.data;if(r){c.value=r;return}if(i){if(i.status=="installed"){u.onSetup("ddnsto-login");return}i.status=="uninstalled"&&(c.value="\u9700\u8981\u5B89\u88C5DDNSTO\u63D2\u4EF6\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5F00\u59CB\u5B89\u88C5")}}}catch(n){c.value=n}_.value=!0}))(),(n,i)=>(a(),d("div",Dc,[kc,t("div",wc,[t("span",null,F(c.value),1)]),t("div",Bc,[_.value?(a(),d(N,{key:0},[t("div",{class:"close",onClick:s},"\u53D6\u6D88"),t("div",{class:"next",onClick:o},"\u786E\u5B9A")],64)):w("",!0)])]))}});var xc=S(Ac,[["__scopeId","data-v-4f87c1d1"]]);const Sc=e=>(q("data-v-06c9d91d"),e=e(),H(),e),Ic={class:"actioner-container"},Vc=Sc(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),Pc={class:"actioner-container_body"},Mc=I({__name:"setup-ddnsto-run",props:{onSetup:{type:Function,required:!0},token:{type:String,required:!0},onDdnstoLocalConfig:{type:Function,required:!0}},setup(e){const u=e,s=g("\u6B63\u5728\u68C0\u6D4B\u63D2\u4EF6\u662F\u5426\u5DF2\u542F\u52A8...");(n=>z(this,null,function*(){var i;try{const r=yield P.Guide.Ddnsto.POST({token:u.token});r!=null&&r.data&&(r.data.error&&(s.value=r.data.error),(((i=r==null?void 0:r.data)==null?void 0:i.success)||0)==0&&_())}catch(r){s.value=r}}))(u.token);const c=g(),_=()=>{const n=()=>z(this,null,function*(){if((yield f())===!0){h();return}c.value=window.setTimeout(n,2e3)});n()},f=()=>z(this,null,function*(){try{const n=yield P.App.Check.POST({name:"ddnsto",checkRunning:!0});if(n!=null&&n.data){n.data.error&&(s.value=n.data.error);const i=n.data.result;if((i==null?void 0:i.status)=="running")return!0}}catch(n){s.value=n}return!1});wt(()=>{c.value&&clearInterval(c.value)});const h=()=>z(this,null,function*(){var n;try{const i=yield P.Guide.DdntoConfig.GET();if(i!=null&&i.data&&(i.data.error&&(s.value=i.data.error),(((n=i==null?void 0:i.data)==null?void 0:n.success)||0)==0&&i.data.result)){const r=i.data.result;u.onDdnstoLocalConfig(r.netAddr,r.deviceId),u.onSetup("ddnsto-bind")}}catch(i){s.value=i}});return(n,i)=>(a(),d("div",Ic,[Vc,t("div",Pc,F(s.value),1)]))}});var Tc=S(Mc,[["__scopeId","data-v-06c9d91d"]]);const Lc={class:"action-main"},zc=I({__name:"index",props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const u=e,s=g("ddnsto-install"),o=n=>{n!=null?s.value=n:c()},c=()=>{u.Close&&u.Close()},_=mt({sign:"",token:"",domain:u.url,netaddr:"",routerId:""}),f=(n,i)=>{_.sign=n,_.token=i},h=(n,i)=>{_.netaddr=n,_.routerId=i};return(n,i)=>(a(),L(st,{type:1},{default:V(()=>[t("div",Lc,[s.value=="ddnsto-install"?(a(),L(xc,{key:0,onSetup:o})):s.value=="ddnsto-login"?(a(),L(oc,{key:1,onSetup:o,onDdnstoConfig:f})):s.value=="ddnsto-run"?(a(),L(Tc,{key:2,onSetup:o,token:_.token,onDdnstoLocalConfig:h},null,8,["token"])):s.value=="ddnsto-bind"?(a(),L(_c,{key:3,onSetup:o,config:{token:_.token,sign:_.sign,domain:_.domain,netaddr:_.netaddr,routerId:_.routerId},domain:_.domain,"onUpdate:domain":i[0]||(i[0]=r=>_.domain=r)},null,8,["config","domain"])):s.value=="ddnsto-save"?(a(),L(bc,{key:4,onSetup:o,target:_.domain},null,8,["target"])):w("",!0)])]),_:1}))}});var Nc=S(zc,[["__scopeId","data-v-2b767e18"]]);const Oc=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Nc,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const qc={class:"action"},Hc={class:"action-header"},Uc=["innerHTML"],Rc={class:"action-footer"},Gc=I({__name:"index",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 u=e,s=()=>{u.next&&u.next(),u.Close&&u.Close()},o=()=>{u.clear&&u.clear(),u.Close&&u.Close()},c=()=>{u.continuer&&u.continuer(),u.Close&&u.Close()};return(_,f)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[t("div",qc,[t("div",Hc,F(e.title),1),t("div",{class:"action-body",innerHTML:e.content},null,8,Uc),t("div",Rc,[e.clear?(a(),d("div",{key:0,class:"clear",onClick:o},F(e.clearTitle),1)):w("",!0),t("div",{class:"next",onClick:s},F(e.nextTitle),1),e.continuer?(a(),d("div",{key:1,class:"next",onClick:c},F(e.continuerTitle),1)):w("",!0)])])]),_:1},8,["Close"]))}});var Wc=S(Gc,[["__scopeId","data-v-4283f74c"]]);const $e=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Wc,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const j=e=>(q("data-v-b1e12544"),e=e(),H(),e),Zc={class:"actioner-container"},jc=["onSubmit"],Xc=j(()=>t("div",{class:"actioner-container_header"},[t("span",null,"\u57DF\u540D\u914D\u7F6E\u5411\u5BFC")],-1)),Yc={key:0,class:"title_info"},Qc=j(()=>t("p",null,"\u963F\u91CC\u4E91",-1)),Kc=j(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),Jc=j(()=>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)),td=[Qc,Kc,Jc],ed={key:1,class:"title_info"},ud=j(()=>t("p",null,"dnspod",-1)),sd=j(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),nd=j(()=>t("a",{href:"https://doc.linkease.com/zh/guide/istoreos/basic/domain.html#dnspod",target:"_blank"},"\u67E5\u770B\u6559\u7A0B>>",-1)),od=[ud,sd,nd],ad={key:2,class:"title_info"},id=j(()=>t("p",null,"\u82B1\u751F\u58F3",-1)),ld=j(()=>t("span",null," \u4E3A\u62E5\u6709\u52A8\u6001IP\u7684\u4E3B\u673A\u914D\u7F6E\u4E00\u4E2A\u56FA\u5B9A\u7684\u53EF\u8BBF\u95EE\u57DF\u540D ",-1)),cd=j(()=>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)),dd=[id,ld,cd],rd={class:"label-item"},_d=j(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u5730\u5740\u7248\u672C\uFF1A")],-1)),pd={class:"label-item_value"},vd=j(()=>t("option",{value:"ipv4"},"IPv4\u5730\u5740",-1)),hd=j(()=>t("option",{value:"ipv6"},"IPv6\u5730\u5740",-1)),Fd=[vd,hd],md=j(()=>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)),fd={class:"label-item"},Ed=j(()=>t("div",{class:"label-item_key"},[t("span",null,"\u57DF\u540D\uFF1A")],-1)),Cd={class:"label-item_value"},$d={class:"label-item"},gd=j(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D\uFF1A")],-1)),bd={class:"label-item_value"},yd={class:"label-item"},Dd=j(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801\uFF1A")],-1)),kd={class:"label-item_value"},wd={class:"actioner-container_footer"},Bd=["disabled"],Ad=I({__name:"setup-ddns",props:{name:{type:String,default:"ali"},onSetup:{type:Function,required:!0},target:{type:String,required:!0}},emits:["update:target"],setup(e,{emit:u}){const s=e,o=g("ipv4"),c=g(s.name),_=g(""),f=g(""),h=g(""),n=g(!1),i=()=>{s.onSetup("index")},r=()=>{n.value=!0;const p=A.Loading("\u68C0\u6D4B\u4E2D...");P.Network.CheckPublickNet.POST({ipVersion:o.value}).then(l=>{var E,v;if(l!=null&&l.data){if((E=l==null?void 0:l.data)!=null&&E.error){A.Warning(l==null?void 0:l.data.error);return}if((((v=l==null?void 0:l.data)==null?void 0:v.success)||0)==0){const C=l.data.result;C&&C.address?D():m();return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(l=>{A.Error(l)}).finally(()=>{p.Close(),n.value=!1})},m=()=>{$e({title:"\u6E29\u99A8\u63D0\u793A",nextTitle:"\u4F7F\u7528DDNSTO",continuerTitle:"\u7EE7\u7EED\u4FDD\u5B58",content:"\u68C0\u6D4B\u5230\u60A8\u7684wan\u53E3\u6CA1\u6709\u516C\u7F51IP\u6216\u8005IPv6\u5730\u5740\uFF0C\u53EF\u4EE5\u4F7F\u7528DDNSTO\u914D\u7F6E\u8FDC\u7A0B\u57DF\u540D\u8BBF\u95EE",next(){b()},continuer(){D()},clear(){}})},b=()=>{s.onSetup("ddnsto")},D=()=>{n.value=!0;const p=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.PostDdns.POST({ipVersion:o.value,serviceName:c.value,domain:_.value,userName:f.value,password:h.value}).then(l=>{if(l!=null&&l.data){const{error:E,scope:v,success:C}=l.data;if(E=="-100"&&v=="guide.ddns"){$e({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(E){A.Warning(E);return}if((C||0)==0){u("update:target",_.value),s.onSetup("ddns-success");return}}throw"\u672A\u77E5\u9519\u8BEF"}).catch(l=>{A.Error(l)}).finally(()=>{p.Close(),n.value=!1})};return(p,l)=>(a(),d("div",Zc,[t("form",{class:"actioner-dns",onSubmit:it(r,["prevent"])},[Xc,t("div",{class:Xt(["actioner-container_body",e.name])},[e.name=="ali"?(a(),d("div",Yc,td)):e.name=="dnspod"?(a(),d("div",ed,od)):e.name=="oray"?(a(),d("div",ad,dd)):w("",!0),t("div",rd,[_d,t("div",pd,[T(t("select",{name:"",id:"","onUpdate:modelValue":l[0]||(l[0]=E=>o.value=E)},Fd,512),[[Et,o.value]])]),md]),t("div",fd,[Ed,t("div",Cd,[T(t("input",{type:"text",placeholder:"myhost.example.com","onUpdate:modelValue":l[1]||(l[1]=E=>_.value=E),required:""},null,512),[[Y,_.value,void 0,{trim:!0}]])])]),t("div",$d,[gd,t("div",bd,[T(t("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=E=>f.value=E),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",required:""},null,512),[[Y,f.value,void 0,{trim:!0}]])])]),t("div",yd,[Dd,t("div",kd,[T(t("input",{type:"password","onUpdate:modelValue":l[3]||(l[3]=E=>h.value=E),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",required:""},null,512),[[Y,h.value,void 0,{trim:!0}]])])])],2),t("div",wd,[t("div",{class:"close",onClick:i,type:"button"},"\u8FD4\u56DE"),t("button",{class:"next save",type:"submit",disabled:n.value}," \u4FDD\u5B58 ",8,Bd)])],40,jc)]))}});var Gt=S(Ad,[["__scopeId","data-v-b1e12544"]]);const xd={class:"action-main"},Sd=I({__name:"index",props:{Close:{type:Function,required:!0},url:{type:String,required:!0}},setup(e){const u=e,s=g(""),o=g("index"),c=n=>{if(n!=null){if(n=="ddnsto"){_();return}o.value=n}else f()},_=()=>{f(),Oc({url:u.url})},f=()=>{u.Close&&u.Close()},h=g("ddnsto");return(n,i)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[t("div",xd,[o.value=="index"?(a(),L(U1,{key:0,onSetup:c,active:h.value,"onUpdate:active":i[0]||(i[0]=r=>h.value=r)},null,8,["active"])):o.value=="ddns-ali"?(a(),L(Gt,{key:1,onSetup:c,target:s.value,"onUpdate:target":i[1]||(i[1]=r=>s.value=r),name:"ali"},null,8,["target"])):o.value=="ddns-dnspod"?(a(),L(Gt,{key:2,onSetup:c,target:s.value,"onUpdate:target":i[2]||(i[2]=r=>s.value=r),name:"dnspod"},null,8,["target"])):o.value=="ddns-oray"?(a(),L(Gt,{key:3,onSetup:c,target:s.value,"onUpdate:target":i[3]||(i[3]=r=>s.value=r),name:"oray"},null,8,["target"])):o.value=="ddns-success"?(a(),L(tc,{key:4,onSetup:c,target:s.value},null,8,["target"])):w("",!0)])]),_:1},8,["Close"]))}});var Id=S(Sd,[["__scopeId","data-v-5d97cabd"]]);const Vd=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(Id,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};var Pd=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var u=document.activeElement,s=[],o=0;o(q("data-v-aa42396e"),e=e(),H(),e),Od={class:"button",style:{"margin-bottom":"8px"}},qd={href:"https://www.kooldns.cn/app/#/devices",target:"_blank"},Hd={class:"row"},Ud={class:"text"},Rd=Qt(()=>t("span",null,"DDNSTO\uFF1A",-1)),Gd={key:0},Wd=["href","title"],Zd={key:1,class:"configure"},jd={key:0,class:"row"},Xd={class:"text"},Yd=Qt(()=>t("span",null,"muddns_ipv4\uFF1A",-1)),Qd={key:0,class:"configure"},Kd=["href"],Jd={key:0,class:"button"},tr={key:1,class:"row"},er={class:"text"},ur=Qt(()=>t("span",null,"muddns_ipv6\uFF1A",-1)),sr={key:0,class:"configure"},nr=["href"],or={key:0,class:"button"},ar=I({__name:"ddns",setup(e){const u=g({});let s=!1,o;const c=n=>{Nd(n),A.Message("\u590D\u5236\u6210\u529F")};lt(()=>{s=!0,o=window.setTimeout(h,1100)}),wt(()=>{o!==void 0&&window.clearTimeout(o),s=!1});const _=R(()=>{const n=u.value.ipv4Domain;return!n||n=="Stopped"||n=="Disabled"?n:`http://${n}`}),f=R(()=>{const n=u.value.ipv6Domain;return!n||n=="Stopped"||n=="Disabled"?n:`http://${n}`}),h=function(){!s||P.Guide.Ddns.GET().then(n=>{var i;n!=null&&n.data&&(((i=n==null?void 0:n.data)==null?void 0:i.success)||0)==0&&n.data.result&&(u.value=n.data.result)}).then(()=>{})};return(n,i)=>(a(),L(W,{title:n.$t("\u8FDC\u7A0B\u57DF\u540D"),padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/3yFiX5-X/",span:24,action:{text:n.$t("\u5FEB\u901F\u914D\u7F6E"),onClick:()=>{Z(Vd)({url:u.value.ddnstoDomain})}}},{default:V(()=>{var r,m,b,D;return[t("div",Od,[t("a",qd,F(n.$t("\u524D\u5F80\u63A7\u5236\u53F0")),1)]),t("div",Hd,[t("div",Ud,[Rd,(r=u.value)!=null&&r.ddnstoDomain?(a(),d("span",Gd,[t("a",{class:"configure",href:(m=u.value)==null?void 0:m.ddnstoDomain,target:"_blank",rel:"noopener noreferrer",title:(b=u.value)==null?void 0:b.ddnstoDomain},F((D=u.value)==null?void 0:D.ddnstoDomain),9,Wd),t("img",{src:k1,onClick:i[0]||(i[0]=p=>{var l;return c((l=u.value)==null?void 0:l.ddnstoDomain)})})])):(a(),d("span",Zd,F(n.$t("\u672A\u5B89\u88C5\u6216\u672A\u914D\u7F6E")),1))])]),_.value?(a(),d("div",jd,[t("div",Xd,[Yd,_.value==="Stopped"||_.value==="Disabled"?(a(),d("span",Qd,F(_.value),1)):(a(),d("a",{key:1,target:"_blank",rel:"noopener noreferrer",href:_.value,class:"configure"},F(_.value),9,Kd))]),_.value?(a(),d("div",Jd,[t("span",{onClick:i[1]||(i[1]=p=>Z(ot)({title:"muddns_ipv4",src:"/cgi-bin/luci/admin/services/ddns"}))},F(n.$t("\u7F16\u8F91")),1)])):w("",!0)])):w("",!0),f.value?(a(),d("div",tr,[t("div",er,[ur,f.value==="Stopped"||f.value==="Disabled"?(a(),d("span",sr,F(f.value),1)):(a(),d("a",{key:1,target:"_blank",rel:"noopener noreferrer",href:f.value,class:"configure"},F(f.value),9,nr))]),f.value?(a(),d("div",or,[t("span",{onClick:i[2]||(i[2]=p=>Z(ot)({title:"muddns_ipv4",src:"/cgi-bin/luci/admin/services/ddns"}))},F(n.$t("\u7F16\u8F91")),1)])):w("",!0)])):w("",!0)]}),_:1},8,["title","action"]))}});var ir=S(ar,[["__scopeId","data-v-aa42396e"]]);const lr={},cr={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"},dr=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),rr=[dr];function _r(e,u){return a(),d("svg",cr,rr)}var pr=S(lr,[["render",_r]]);const X=e=>(q("data-v-097a32fc"),e=e(),H(),e),vr={key:0,class:"action"},hr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Fr=X(()=>t("p",{class:"desc"}," \u5F53\u7CFB\u7EDF\u6839\u76EE\u5F55\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u5C06docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\uFF0C\u4EE5\u4FDD\u8BC1\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C: ",-1)),mr={key:1,class:"action"},fr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Er=X(()=>t("p",{class:"desc"}," \u5F53\u7CFB\u7EDF\u6839\u76EE\u5F55\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u5C06docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\uFF0C\u4EE5\u4FDD\u8BC1\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C: ",-1)),Cr={class:"roots"},$r=X(()=>t("span",{class:"roots_tit"},"Docker\u6839\u76EE\u5F55\uFF1A",-1)),gr={class:"root"},br={class:"move"},yr=X(()=>t("span",{class:"roots_tit"},"\u8FC1\u79FB\u5230\uFF1A",-1)),Dr={key:0},kr=["onSubmit"],wr={class:"select-editable"},Br=X(()=>t("option",{selected:"",value:null},"\u8BF7\u9009\u62E9\u8FC1\u79FB\u5730\u5740",-1)),Ar=["value"],xr=X(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),Sr={key:1,class:"tips"},Ir={class:"tips_content"},Vr=X(()=>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)),Pr={key:0,class:"btns"},Mr={key:1,class:"btns"},Tr={key:2,class:"action docker_success"},Lr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),zr={class:"finished"},Nr=X(()=>t("p",{class:"successed"},"\u8FC1\u79FB\u6210\u529F\uFF01",-1)),Or={key:3,class:"action docker_download"},qr=X(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Hr={class:"finished"},Ur=X(()=>t("p",{class:"successed"},"\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),Rr={class:"docker_moves"},Gr={class:"moves change"},Wr=X(()=>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)),Zr={class:"moves"},jr=X(()=>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)),Xr={class:"btns"},Yr=I({__name:"index",props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const u=e,s=g(),o=g(),c=g(0),_=g("null"),f=g(""),h=g(),n=g(!1),i=g("");(()=>{P.Nas.Disk.Status.GET().then(v=>{v!=null&&v.data.result&&(h.value=v==null?void 0:v.data.result)}),P.Guide.DockerStatus.GET().then(v=>{var C;if((C=v==null?void 0:v.data)!=null&&C.result){const k=v.data.result;s.value=k}}),P.Guide.DockerPartitionList.GET().then(v=>{var C;if((C=v==null?void 0:v.data)!=null&&C.result){const k=v.data.result;o.value=k}})})();const m=v=>{let C=_.value;if(C=="useInput"&&(C=f.value),C==null||C=="null"||C=="")return;const k=A.Loading("\u6B63\u5728\u8FC1\u79FB\u4E2D...");P.Guide.DockerTransfer.POST({path:C,force:v,overwriteDir:!!i.value}).then($=>{var y;if($!=null&&$.data){if(($.data.success||0)==0){if((y=$.data.result)!=null&&y.emptyPathWarning){n.value=!0,c.value=2;return}c.value=1;return}else if($.data.error)throw $.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch($=>{A.Error($)}).finally(()=>k.Close())},b=()=>{n.value=!1,m(!1)},D=v=>{v.preventDefault(),u.Close&&u.Close()},p=v=>{v.preventDefault(),location.reload()},l=v=>{v.preventDefault(),c.value=0},E=v=>{v.preventDefault(),m(!0)};return(v,C)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>{var k,$,y,x,G,M;return[c.value==-1?(a(),d("div",vr,[hr,Fr,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:D}," \u53D6\u6D88 ")])])):c.value==0?(a(),d("div",mr,[fr,Er,t("div",Cr,[$r,t("span",gr,F((k=s.value)==null?void 0:k.path),1)]),t("div",br,[yr,(y=($=o.value)==null?void 0:$.partitionList)!=null&&y.length?(a(),d("div",Dr,[t("form",{onSubmit:it(b,["prevent"])},[t("label",null,[t("div",wr,[T(t("select",{"onUpdate:modelValue":C[0]||(C[0]=O=>_.value=O)},[Br,(a(!0),d(N,null,tt((x=o.value)==null?void 0:x.partitionList,(O,nt)=>(a(),d("option",{value:O,key:nt},F(O),9,Ar))),128)),xr],512),[[Et,_.value,void 0,{trim:!0}]]),_.value=="useInput"?T((a(),d("input",{key:0,type:"text","onUpdate:modelValue":C[1]||(C[1]=O=>f.value=O),required:"",placeholder:"\u8BF7\u8F93\u5165\u8FC1\u79FB\u5730\u5740"},null,512)),[[Y,f.value,void 0,{trim:!0}]]):w("",!0)])])],40,kr)])):o.value?(a(),d("div",Sr,[t("div",Ir,[B(rt),Vr])])):w("",!0)]),(M=(G=o.value)==null?void 0:G.partitionList)!=null&&M.length?(a(),d("div",Pr,[t("button",{class:"cbi-button cbi-button-apply",onClick:b}," \u786E\u5B9A "),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:D}," \u53D6\u6D88 ")])):(a(),d("div",Mr,[t("button",{class:"cbi-button cbi-button-apply",onClick:D}," \u786E\u5B9A ")]))])):c.value==1?(a(),d("div",Tr,[Lr,t("div",zr,[B(Yt)]),Nr,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:p}," \u786E\u5B9A ")])])):c.value==2?(a(),d("div",Or,[qr,t("div",Hr,[B(pr)]),Ur,t("div",Rr,[t("div",Gr,[T(t("input",{type:"radio",id:"move",name:"moves","onUpdate:modelValue":C[2]||(C[2]=O=>i.value=O),value:""},null,512),[[at,i.value]]),Wr]),t("div",Zr,[T(t("input",{type:"radio",id:"cover",name:"moves","onUpdate:modelValue":C[3]||(C[3]=O=>i.value=O),value:"true"},null,512),[[at,i.value]]),jr])]),t("div",Xr,[n.value?(a(),d("button",{key:0,class:"cbi-button cbi-button-apply",onClick:E}," \u786E\u5B9A ")):w("",!0),t("button",{class:"cbi-button cbi-button-apply",onClick:l}," \u8FD4\u56DE "),n.value?w("",!0):(a(),d("button",{key:1,class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:p}," \u53D6\u6D88 "))])])):w("",!0)]}),_:1},8,["Close"]))}});var Qr=S(Yr,[["__scopeId","data-v-097a32fc"]]);const be=()=>{const e=document.createElement("div");document.body.appendChild(e);const u=ut(Qr,{Close:()=>{s()}});u.mount(e);const s=()=>{u.unmount(),e.remove()};return{Close:s}};const Kr=e=>(q("data-v-750b6b3e"),e=e(),H(),e),Jr={class:"button"},t5={class:"row"},e5={class:"text"},u5={key:0,class:"docker-item-value"},s5={class:"configure"},n5={key:1,class:"docker-item-value"},o5={class:"input-switch"},a5=["value","disabled"],i5=Kr(()=>t("em",null,null,-1)),l5=[i5],c5={key:0,class:"row"},d5={class:"text"},r5={style:{width:"100%"}},_5={class:"configure"},p5={key:0},v5={class:"tooltip-trigger"},h5={class:"docker_tip"},F5={class:"tooltip-text tooltip-top"},m5={class:"docker_dir_tip"},f5=I({__name:"docker",setup(e){const u=g(!1),s=g(),o=mt({enable:!1,disabled:!1}),c=()=>z(this,null,function*(){const n=A.Loading(o.enable?"Docker\u5F00\u542F\u4E2D...":"Docker\u5173\u95ED\u4E2D...");o.disabled=!0;try{const i=yield P.Guide.DockerSwitch.POST({enable:o.enable});if(i!=null&&i.data){const{success:r,error:m}=i.data;if(m)throw o.enable=!o.enable,m;(r||0)==0&&h()}}catch(i){A.Warning(`${i}`)}finally{o.disabled=!1}n.Close()}),_=()=>{window.open("/cgi-bin/luci/admin/docker/overview","_blank")},f=()=>{be()},h=()=>{P.Guide.DockerStatus.GET().then(n=>{var i;if((i=n==null?void 0:n.data)!=null&&i.result){const r=n.data.result;s.value=r,r.status==="running"&&(o.enable=!0)}}).finally(()=>{u.value=!0})};return setTimeout(h,1100),(n,i)=>{var r;return a(),L(W,{title:"Docker",padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/2Q28MDtf/",moreActions:[{show:((r=s.value)==null?void 0:r.status)==="running",text:"\u67E5\u770BDocker\u4FE1\u606F",onClick:f}],span:24},{default:V(()=>{var m,b,D,p;return[t("div",Jr,[t("span",{onClick:i[0]||(i[0]=l=>Z(be)({setup:0}))},F(n.$t("\u8FC1\u79FB\u5411\u5BFC")),1),t("span",{onClick:_},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)]),t("div",t5,[t("div",e5,[t("span",null,F(n.$t("\u5F53\u524D\u72B6\u6001")),1)]),(m=s.value)!=null&&m.status?(a(),d(N,{key:0},[((b=s.value)==null?void 0:b.status)==="not installed"?(a(),d("div",u5,[t("span",s5,F(n.$t("\u672A\u5B89\u88C5")),1)])):(a(),d("div",n5,[t("label",o5,[T(t("input",{type:"checkbox",hidden:"",value:!o.enable,"onUpdate:modelValue":i[1]||(i[1]=l=>o.enable=l),disabled:o.disabled,onChange:c},null,40,a5),[[ye,o.enable]]),t("span",{class:Xt(o.enable?"enable":"close")},l5,2)])]))],64)):w("",!0)]),o.enable?(a(),d("div",c5,[t("div",d5,[t("span",null,"Docker "+F(n.$t("\u6839\u76EE\u5F55"))+"\uFF1A",1),t("div",r5,[t("span",_5,F((D=s.value)==null?void 0:D.path),1),(p=s.value)!=null&&p.errorInfo?(a(),d("span",p5,[t("span",v5,[t("span",h5,[B(rt)]),t("div",null,[t("div",F5,[t("span",m5,F(s.value.errorInfo),1)])])])])):w("",!0)])])])):w("",!0)]}),_:1},8,["moreActions"])}}});var E5=S(f5,[["__scopeId","data-v-750b6b3e"]]);const C5=e=>(q("data-v-68b4579e"),e=e(),H(),e),$5={class:"select-editable"},g5=["value"],b5=C5(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),y5=["placeholder"],D5=I({__name:"index",props:{modelValue:{type:String,required:!0},title:{type:String,default:""},options:{type:Array,default:[]}},emits:["update:modelValue"],setup(e,{emit:u}){const s=e,o=g(""),c=g(""),_=R({get:()=>s.modelValue.valueOf(),set:i=>u("update:modelValue",i)}),f=i=>{if(i===o.value||o.value==="useInput"&&i===c.value){_.value=s.options[0].key;return}i===""||s.options.some(r=>r.key===i)?o.value=i:(c.value=i,o.value="useInput")};Xe(()=>s.modelValue,i=>{f(i)}),lt(()=>{const i=_.value;f(i)});const h=i=>{o.value==="useInput"?_.value=c.value:_.value=o.value},n=i=>{_.value=c.value};return(i,r)=>(a(),d("label",null,[t("div",$5,[T(t("select",{"onUpdate:modelValue":r[0]||(r[0]=m=>o.value=m),autocomplete:"off",onChange:h},[(a(!0),d(N,null,tt(e.options,(m,b)=>(a(),d("option",{value:m.key,key:b},F(m.value||m.key),9,g5))),128)),b5],544),[[Et,o.value,void 0,{trim:!0}]]),o.value=="useInput"?T((a(),d("input",{key:0,type:"text","onUpdate:modelValue":r[1]||(r[1]=m=>c.value=m),required:"",placeholder:"\u8BF7\u8F93\u5165"+e.title,onChange:n},null,40,y5)),[[Y,c.value,void 0,{trim:!0}]]):w("",!0)])]))}});var kt=S(D5,[["__scopeId","data-v-68b4579e"]]);const k5={},w5={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"},B5=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),A5=[B5];function x5(e,u){return a(),d("svg",w5,A5)}var $t=S(k5,[["render",x5]]);const U=e=>(q("data-v-f4c41bf2"),e=e(),H(),e),S5={key:0,class:"action"},I5=U(()=>t("h2",{class:"title"},"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",-1)),V5={class:"load_service input_row"},P5=U(()=>t("div",{class:"left"},[t("span",null,"\u4E0B\u8F7D\u670D\u52A1\uFF1A")],-1)),M5={class:"radios"},T5=U(()=>t("label",{for:"Aria2"},"Aria2",-1)),L5={class:"radios"},z5=U(()=>t("label",{for:"qB"},"qBittorrent",-1)),N5={class:"radios"},O5=U(()=>t("label",{for:"Tr"},"Transmission",-1)),q5=["onSubmit"],H5={class:"input_row"},U5={class:"left"},R5={class:"tooltip-trigger"},G5=U(()=>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)),W5=U(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),Z5={class:"myinput_wrap"},j5={class:"input_row"},X5={class:"left"},Y5={class:"tooltip-trigger"},Q5=U(()=>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)),K5=U(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),J5={class:"myinput_wrap"},t6={class:"input_row"},e6={class:"left"},u6={class:"tooltip-trigger"},s6=U(()=>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)),n6=U(()=>t("span",null,"RPC \u4EE4\u724C\uFF1A",-1)),o6={class:"input_row"},a6=U(()=>t("div",{class:""},[t("span",null,"\u9644\u52A0\u7684 BT Tracker\uFF1A")],-1)),i6={class:"radios"},l6=U(()=>t("label",{for:"default"},"\u9ED8\u8BA4",-1)),c6={class:"radios"},d6=U(()=>t("label",{for:"add"},"\u81EA\u5DF1\u6DFB\u52A0",-1)),r6={class:"input_row"},_6=U(()=>t("div",{class:"left"},null,-1)),p6={class:"myinput_wrap Tracker_input"},v6=["onSubmit"],h6={class:"input_row"},F6={class:"left"},m6={class:"tooltip-trigger"},f6=U(()=>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)),E6=U(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),C6={class:"myinput_wrap"},$6={class:"input_row"},g6={class:"left"},b6={class:"tooltip-trigger"},y6=U(()=>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)),D6=U(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),k6={class:"myinput_wrap"},w6=["onSubmit"],B6={class:"input_row"},A6={class:"left"},x6={class:"tooltip-trigger"},S6=U(()=>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)),I6=U(()=>t("span",null,"\u914D\u7F6E\u76EE\u5F55\uFF1A",-1)),V6={class:"myinput_wrap"},P6={class:"input_row"},M6={class:"left"},T6={class:"tooltip-trigger"},L6=U(()=>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)),z6=U(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),N6={class:"myinput_wrap"},O6={class:"btns"},q6={key:1,class:"action"},H6={class:"title"},U6={class:"finished"},R6=U(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),G6=I({__name:"index",props:{services:{type:Object,required:!0},partitionList:{type:Array,required:!0},defaultTab:{type:String,required:!1},Close:Function},setup(e){const u=e,s=g(""),o=g(""),c=g(""),_=g(""),f=g("default"),h=g("Aria2"),n=g(""),i=g(""),r=g(""),m=g(""),b=g([]),D=g([]),p=g(0);lt(()=>{var M,O,nt,xt,St,It,Vt,Pt,Mt,Tt;switch(u.defaultTab){case"aria2":h.value="Aria2";break;case"qbittorrent":h.value="qBittorrent";break;case"transmission":h.value="Transmission";break}b.value=u.partitionList.map(pt=>({key:pt})),D.value=u.partitionList.filter(pt=>pt.startsWith("/mnt/")).map(pt=>pt.replace(/(\/mnt\/[^/]+).*/,"$1")),c.value=((M=u.services.aria2)==null?void 0:M.configPath)||"";const $=((O=u.services.aria2)==null?void 0:O.downloadPath)||((nt=u.services.qbittorrent)==null?void 0:nt.downloadPath)||((xt=u.services.transmission)==null?void 0:xt.downloadPath);$&&(_.value=$);const y=(St=u.services.aria2)==null?void 0:St.rpcToken;y&&(s.value=y),n.value=((It=u.services.qbittorrent)==null?void 0:It.configPath)||"";const x=((Vt=u.services.qbittorrent)==null?void 0:Vt.downloadPath)||$||((Pt=u.services.transmission)==null?void 0:Pt.downloadPath);x&&(i.value=x),r.value=((Mt=u.services.transmission)==null?void 0:Mt.configPath)||"";const G=((Tt=u.services.transmission)==null?void 0:Tt.downloadPath)||$||x;G&&(m.value=G)});const l=()=>{let $=c.value,y=_.value;$==null||$==""||y==null||y==""||z(this,null,function*(){if(yield gt.checkAndInstallApp("app-meta-aria2","Aria2")){const G=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.Aria2Init.POST({configPath:$,downloadPath:y,rpcToken:s.value,btTracker:f.value=="add"?o.value:""}).then(M=>{var O;if(M!=null&&M.data){if((M.data.success||0)==0){p.value=1;return}else if((O=M.data)!=null&&O.error)throw M.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(M=>A.Error(M)).finally(()=>G.Close())}})},E=()=>{let $=n.value,y=i.value;$==null||$==""||y==null||y==""||z(this,null,function*(){if(yield gt.checkAndInstallApp("app-meta-qbittorrent","qBittorrent")){const G=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.qbitorrentInit.POST({configPath:$,downloadPath:y}).then(M=>{var O;if(M!=null&&M.data){if((M.data.success||0)==0){p.value=1;return}else if((O=M.data)!=null&&O.error)throw M.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(M=>A.Error(M)).finally(()=>G.Close())}})},v=()=>{let $=r.value,y=m.value;$==null||$==""||y==null||y==""||z(this,null,function*(){if(yield gt.checkAndInstallApp("app-meta-transmission","Transmission")){const G=A.Loading("\u914D\u7F6E\u4E2D...");P.Guide.transmissionInit.POST({configPath:$,downloadPath:y}).then(M=>{var O;if(M!=null&&M.data){if((M.data.success||0)==0){p.value=1;return}else if((O=M.data)!=null&&O.error)throw M.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(M=>A.Error(M)).finally(()=>G.Close())}})},C=$=>{$.preventDefault(),u.Close&&u.Close()},k=$=>{$.preventDefault(),location.reload()};return($,y)=>(a(),L(st,{Close:e.Close,type:1},{default:V(()=>[p.value==0?(a(),d("div",S5,[I5,t("ul",null,[t("li",null,[t("div",V5,[P5,t("div",M5,[T(t("input",{type:"radio",value:"Aria2","onUpdate:modelValue":y[0]||(y[0]=x=>h.value=x),name:"download",id:"Aria2"},null,512),[[at,h.value]]),T5]),t("div",L5,[T(t("input",{type:"radio",value:"qBittorrent","onUpdate:modelValue":y[1]||(y[1]=x=>h.value=x),name:"download",id:"qB"},null,512),[[at,h.value]]),z5]),t("div",N5,[T(t("input",{type:"radio",value:"Transmission","onUpdate:modelValue":y[2]||(y[2]=x=>h.value=x),name:"download",id:"Tr"},null,512),[[at,h.value]]),O5])])])]),h.value=="Aria2"?(a(),d("form",{key:0,onSubmit:it(l,["prevent"])},[t("ul",null,[t("li",null,[t("div",H5,[t("div",U5,[t("span",R5,[B($t),G5]),W5]),t("div",Z5,[B(kt,{modelValue:c.value,"onUpdate:modelValue":y[3]||(y[3]=x=>c.value=x),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:D.value.concat("/root").map(x=>({key:x+"/Configs/aria2"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",j5,[t("div",X5,[t("span",Y5,[B($t),Q5]),K5]),t("div",J5,[B(kt,{modelValue:_.value,"onUpdate:modelValue":y[4]||(y[4]=x=>_.value=x),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:b.value},null,8,["modelValue","options"])])])]),t("li",null,[t("div",t6,[t("div",e6,[t("span",u6,[B($t),s6]),n6]),T(t("input",{type:"text",class:"RPC_input",placeholder:"\u8BF7\u8F93\u5165RPC\u4EE4\u724C","onUpdate:modelValue":y[5]||(y[5]=x=>s.value=x)},null,512),[[Y,s.value,void 0,{trim:!0}]])])]),t("li",null,[t("div",o6,[a6,t("div",i6,[T(t("input",{type:"radio",value:"default",name:"BT",id:"default","onUpdate:modelValue":y[6]||(y[6]=x=>f.value=x)},null,512),[[at,f.value]]),l6]),t("div",c6,[T(t("input",{type:"radio",value:"add",name:"BT",id:"add","onUpdate:modelValue":y[7]||(y[7]=x=>f.value=x)},null,512),[[at,f.value]]),d6])])]),t("li",null,[t("div",r6,[_6,t("div",p6,[f.value=="add"?T((a(),d("textarea",{key:0,"onUpdate:modelValue":y[8]||(y[8]=x=>o.value=x),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)),[[Y,o.value,void 0,{trim:!0}]]):w("",!0)])])])])],40,q5)):w("",!0),h.value=="qBittorrent"?(a(),d("form",{key:1,onSubmit:it(E,["prevent"])},[t("ul",null,[t("li",null,[t("div",h6,[t("div",F6,[t("span",m6,[B($t),f6]),E6]),t("div",C6,[B(kt,{modelValue:n.value,"onUpdate:modelValue":y[9]||(y[9]=x=>n.value=x),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:D.value.concat("/root").map(x=>({key:x+"/Configs/qb"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",$6,[t("div",g6,[t("span",b6,[B($t),y6]),D6]),t("div",k6,[B(kt,{modelValue:i.value,"onUpdate:modelValue":y[10]||(y[10]=x=>i.value=x),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:b.value},null,8,["modelValue","options"])])])])])],40,v6)):w("",!0),h.value=="Transmission"?(a(),d("form",{key:2,onSubmit:it(v,["prevent"])},[t("ul",null,[t("li",null,[t("div",B6,[t("div",A6,[t("span",x6,[B($t),S6]),I6]),t("div",V6,[B(kt,{modelValue:r.value,"onUpdate:modelValue":y[11]||(y[11]=x=>r.value=x),modelModifiers:{trim:!0},title:"\u914D\u7F6E\u76EE\u5F55",options:D.value.concat("/root").map(x=>({key:x+"/Configs/transmission"}))},null,8,["modelValue","options"])])])]),t("li",null,[t("div",P6,[t("div",M6,[t("span",T6,[B($t),L6]),z6]),t("div",N6,[B(kt,{modelValue:m.value,"onUpdate:modelValue":y[12]||(y[12]=x=>m.value=x),modelModifiers:{trim:!0},title:"\u4E0B\u8F7D\u76EE\u5F55",options:b.value},null,8,["modelValue","options"])])])])])],40,w6)):w("",!0),t("div",O6,[h.value=="Aria2"?(a(),d("button",{key:0,class:"cbi-button cbi-button-apply",onClick:l}," \u542F\u7528 ")):w("",!0),h.value=="qBittorrent"?(a(),d("button",{key:1,class:"cbi-button cbi-button-apply",onClick:E}," \u542F\u7528 ")):w("",!0),h.value=="Transmission"?(a(),d("button",{key:2,class:"cbi-button cbi-button-apply",onClick:v}," \u542F\u7528 ")):w("",!0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:C}," \u53D6\u6D88 ")])])):p.value==1?(a(),d("div",q6,[t("h2",H6,F(h.value)+"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",1),t("div",U6,[B(Yt)]),R6,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:k}," \u786E\u5B9A ")])])):w("",!0)]),_:1},8,["Close"]))}});var W6=S(G6,[["__scopeId","data-v-f4c41bf2"]]);const Z6=e=>{const u=document.createElement("div");document.body.appendChild(u);const s=ut(W6,ht(vt({},e),{Close:()=>{o()}}));s.mount(u);const o=()=>{s.unmount(),u.remove()};return{Close:o}};const Ht=e=>(q("data-v-63fbd04d"),e=e(),H(),e),j6={class:"service-item"},X6={class:"name"},Y6=Ht(()=>t("span",null,"Aria2",-1)),Q6={class:"button"},K6={class:"info"},J6=["href"],t0=["href"],e0=Ht(()=>t("span",null,[K("\u4F7F\u7528"),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"},"\u6613\u6709\u4E91APP"),K("\uFF0C\u968F\u65F6\u968F\u5730\u8FDC\u7A0B\u4E0B\u8F7D")],-1)),u0={key:0},s0=["href"],n0={class:"service-item"},o0={class:"name"},a0=Ht(()=>t("span",null,"qBittorrent",-1)),i0={key:0,class:"button"},l0={class:"info"},c0=["href"],d0=["href"],r0={class:"service-item"},_0={class:"name"},p0=Ht(()=>t("span",null,"Transmission",-1)),v0={key:0,class:"button"},h0={class:"info"},F0=["href"],m0=I({__name:"download",setup(e){const u=g(),s=g("aria2"),o=g(window.location),c=()=>{P.Guide.DownloadPartition.List.GET().then(n=>{var r,m;let i=[];(m=(r=n==null?void 0:n.data)==null?void 0:r.result)!=null&&m.partitionList&&(i=n.data.result.partitionList),Z6({services:u.value,partitionList:i,defaultTab:s.value})})},_=()=>{P.Guide.DownloadService.Status.GET().then(n=>{var i;if((i=n==null?void 0:n.data)!=null&&i.result){const r=n.data.result;u.value=r}})},f=R(()=>{var n,i,r;if(u){let m=(n=u==null?void 0:u.aria2)==null?void 0:n.rpcToken;m&&(m=encodeURIComponent(btoa(m)));const b=encodeURIComponent(window.location.hostname);return`${window.location.origin}${(i=u==null?void 0:u.aria2)==null?void 0:i.webPath}/#!/settings/rpc/set/http/${b}/${(r=u==null?void 0:u.aria2)==null?void 0:r.rpcPort}/jsonrpc/${m}`}}),h=(n,i,r)=>z(this,null,function*(){window.open(r,"_blank")});return setTimeout(_,800),(n,i)=>(a(),L(W,{title:n.$t("\u4E0B\u8F7D\u670D\u52A1"),padding:"0 10px 8px 10px",helpLink:"https://www.linkease.com/rd/2Q28MDtf/",span:24,action:{text:n.$t("\u5FEB\u901F\u914D\u7F6E"),onClick:c}},{default:V(()=>{var r,m,b,D,p,l,E,v,C,k,$,y,x,G,M,O,nt,xt,St,It,Vt,Pt,Mt,Tt,pt,Kt,Jt,te,ee,ue,se,ne,oe,ae,ie,le,ce,de,re,_e;return[t("div",j6,[t("div",X6,[t("span",null,[Y6,t("span",null,F(n.$t("\u6682\u65E0\u4E0B\u8F7D")),1)]),t("div",Q6,[t("span",{onClick:i[0]||(i[0]=pe=>h("app-meta-aria2","Aria2","/cgi-bin/luci/admin/services/aria2"))},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)])]),t("div",K6,[t("span",null,F(n.$t("\u5F53\u524D\u72B6\u6001"))+"\uFF1A"+F(`${((m=(r=u.value)==null?void 0:r.aria2)==null?void 0:m.status)==="running"?n.$t("\u5DF2\u542F\u52A8"):n.$t("\u672A\u542F\u52A8")}`),1),((D=(b=u.value)==null?void 0:b.aria2)==null?void 0:D.status)=="running"?(a(),d(N,{key:0},[t("span",null,[K(F(n.$t("\u4E0B\u8F7D\u76EE\u5F55"))+"\uFF1A ",1),t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((l=(p=u.value)==null?void 0:p.aria2)==null?void 0:l.downloadPath)},F((v=(E=u.value)==null?void 0:E.aria2)==null?void 0:v.downloadPath),9,J6)]),t("span",null,[K(F(n.$t("\u7F51\u7EDC\u5730\u5740"))+"\uFF1A ",1),t("a",{href:`http://${o.value.hostname}${(k=(C=u.value)==null?void 0:C.aria2)==null?void 0:k.webPath}`,target:"_blank",rel:"noopener noreferrer"},F(`http://${o.value.hostname}${(y=($=u.value)==null?void 0:$.aria2)==null?void 0:y.webPath}`),9,t0)])],64)):w("",!0),t("div",null,[e0,((G=(x=u.value)==null?void 0:x.aria2)==null?void 0:G.status)==="running"?(a(),d("span",u0,[K(F(n.$t("\u8BA4\u8BC1\u5931\u8D25"))+"\uFF1F ",1),t("a",{href:f.value,target:"_blank",rel:"noopener noreferrer"}," \u70B9\u6B64\u81EA\u52A8\u586B\u5145\u5BC6\u94A5 ",8,s0)])):w("",!0)])])]),t("div",n0,[t("div",o0,[t("span",null,[a0,t("span",null,F(n.$t("\u6682\u65E0\u4E0B\u8F7D")),1)]),((O=(M=u.value)==null?void 0:M.qbittorrent)==null?void 0:O.status)==="running"?(a(),d("div",i0,[t("span",{onClick:i[1]||(i[1]=pe=>h("app-meta-qbittorrent","qBittorrent","/cgi-bin/luci/admin/nas/qBittorrent"))},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)])):w("",!0)]),t("div",l0,[t("span",null,F(`${n.$t("\u5F53\u524D\u72B6\u6001")}\uFF1A${((xt=(nt=u.value)==null?void 0:nt.qbittorrent)==null?void 0:xt.status)==="running"?n.$t("\u5DF2\u542F\u52A8"):n.$t("\u672A\u542F\u52A8")}`),1),((It=(St=u.value)==null?void 0:St.qbittorrent)==null?void 0:It.status)=="running"?(a(),d(N,{key:0},[t("span",null,[K(F(n.$t("\u4E0B\u8F7D\u76EE\u5F55"))+"\uFF1A ",1),t("a",{target:"_blank",href:"/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((Pt=(Vt=u.value)==null?void 0:Vt.qbittorrent)==null?void 0:Pt.downloadPath)},F((Tt=(Mt=u.value)==null?void 0:Mt.qbittorrent)==null?void 0:Tt.downloadPath),9,c0)]),t("span",null,[K(F(n.$t("\u7F51\u7EDC\u5730\u5740"))+"\uFF1A ",1),t("a",{href:`http://${o.value.hostname}${(Kt=(pt=u.value)==null?void 0:pt.qbittorrent)==null?void 0:Kt.webPath}`,target:"_blank",rel:"noopener noreferrer"},F(`http://${o.value.hostname}${(te=(Jt=u.value)==null?void 0:Jt.qbittorrent)==null?void 0:te.webPath}`),9,d0)])],64)):w("",!0)])]),t("div",r0,[t("div",_0,[t("span",null,[p0,t("span",null,F(n.$t("\u6682\u65E0\u4E0B\u8F7D")),1)]),((ue=(ee=u.value)==null?void 0:ee.transmission)==null?void 0:ue.status)==="running"?(a(),d("div",v0,[t("span",{onClick:i[2]||(i[2]=pe=>h("app-meta-transmission","Transmission","/cgi-bin/luci/admin/services/transmission"))},F(n.$t("\u9AD8\u7EA7\u914D\u7F6E")),1)])):w("",!0)]),t("div",h0,[t("span",null,F(`${n.$t("\u5F53\u524D\u72B6\u6001")}\uFF1A${((ne=(se=u.value)==null?void 0:se.transmission)==null?void 0:ne.status)==="running"?n.$t("\u5DF2\u542F\u52A8"):n.$t("\u672A\u542F\u52A8")}`),1),((ae=(oe=u.value)==null?void 0:oe.transmission)==null?void 0:ae.status)=="running"?(a(),d(N,{key:0},[t("span",null,F(n.$t("\u4E0B\u8F7D\u76EE\u5F55"))+"\uFF1A "+F("/cgi-bin/luci/admin/services/linkease/file/?path=/root"+((le=(ie=u.value)==null?void 0:ie.transmission)==null?void 0:le.downloadPath)),1),t("span",null,[K(F(n.$t("\u7F51\u7EDC\u5730\u5740"))+"\uFF1Ahttp ",1),t("a",{href:`http://${o.value.hostname}${(de=(ce=u.value)==null?void 0:ce.transmission)==null?void 0:de.webPath}`,target:"_blank",rel:"noopener noreferrer"},F(`http://${o.value.hostname}${(_e=(re=u.value)==null?void 0:re.transmission)==null?void 0:_e.webPath}`),9,F0)])],64)):w("",!0)])])]}),_:1},8,["title","action"]))}});var f0=S(m0,[["__scopeId","data-v-63fbd04d"]]);const E0=I({__name:"index",setup(e){return(u,s)=>(a(),L(ft,{title:u.$t("\u670D\u52A1\u72B6\u6001"),contentStyle:"flex-flow: column"},{default:V(()=>[B(ir),B(E5),B(f0)]),_:1},8,["title"]))}});var C0="/luci-static/istorex/file.png?v=055a0ac9",$0="/luci-static/istorex/user.png?v=fa675eea",g0="/luci-static/istorex/setting.png?v=bf214b33",b0="/luci-static/istorex/file-manage.png?v=3297497e",y0="/luci-static/istorex/sync.png?v=8384453e",D0="/luci-static/istorex/photo.png?v=3178eb60",k0="/luci-static/istorex/network.png?v=3314b340",w0="/luci-static/istorex/nas.png?v=902703f1";const At=e=>(q("data-v-41e0f196"),e=e(),H(),e),B0={class:"width-60 responsive"},A0={class:"card-content"},x0=At(()=>t("div",null,[t("img",{src:C0,alt:"\u5171\u4EAB\u6587\u4EF6"})],-1)),S0=At(()=>t("div",null,[t("img",{src:$0,alt:"\u5171\u4EAB\u7528\u6237"})],-1)),I0={class:"card-content"},V0=At(()=>t("div",null,[t("img",{src:g0,alt:"\u5171\u4EAB\u8BBE\u7F6E"})],-1)),P0={class:"card-content"},M0=At(()=>t("div",null,[t("img",{src:b0,alt:"\u6587\u4EF6\u7BA1\u7406"})],-1)),T0={class:"card-content"},L0=At(()=>t("div",null,[t("img",{src:y0,alt:"\u6587\u4EF6\u540C\u6B65"})],-1)),z0={class:"card-content"},N0=At(()=>t("div",null,[t("img",{src:D0,alt:"\u76F8\u518C\u5907\u4EFD"})],-1)),O0={class:"width-40 responsive"},q0={class:"card-content"},H0=["alt"],U0={class:"card-content"},R0=["alt"],G0=I({__name:"index",setup(e){const u=()=>{De.OpenGuideWindow()},s=()=>{window.open("/cgi-bin/luci/admin/services/linkease/file","_blank")},o=()=>{A.Message("\u6682\u672A\u5F00\u653E")};return(c,_)=>(a(),d("div",null,[t("div",B0,[B(ft,{title:c.$t("\u5171\u4EAB\u529F\u80FD"),height:"140px"},{default:V(()=>[B(W,{span:8,onClick:_[0]||(_[0]=f=>Z(ou).Open())},{default:V(()=>[t("div",A0,[x0,t("span",null,F(c.$t("\u5171\u4EAB\u6587\u4EF6")),1)])]),_:1}),B(W,{span:8},{default:V(()=>[t("div",{class:"card-content",onClick:_[1]||(_[1]=f=>Z(au).Open())},[S0,t("span",null,F(c.$t("\u5171\u4EAB\u7528\u6237")),1)])]),_:1}),B(W,{span:8,onClick:_[2]||(_[2]=f=>o())},{default:V(()=>[t("div",I0,[V0,t("span",null,F(c.$t("\u5171\u4EAB\u8BBE\u7F6E")),1)])]),_:1})]),_:1},8,["title"]),B(ft,{title:c.$t("\u5176\u4ED6\u529F\u80FD"),height:"140px"},{default:V(()=>[B(W,{span:8,onClick:s},{default:V(()=>[t("div",P0,[M0,t("span",null,F(c.$t("\u6587\u4EF6\u7BA1\u7406")),1)])]),_:1}),B(W,{span:8},{default:V(()=>[t("div",T0,[L0,t("span",null,F(c.$t("\u6587\u4EF6\u540C\u6B65")),1)])]),_:1}),B(W,{span:8},{default:V(()=>[t("div",z0,[N0,t("span",null,F(c.$t("\u76F8\u518C\u5907\u4EFD")),1)])]),_:1})]),_:1},8,["title"])]),t("div",O0,[B(ft,{height:"288px",title:c.$t("\u5411\u5BFC\u529F\u80FD")},{default:V(()=>[B(W,{span:12,onClick:_[3]||(_[3]=f=>Z(ot)({title:c.$t("\u7F51\u7EDC\u5411\u5BFC"),src:"/cgi-bin/luci/admin/quickstart/network"}))},{default:V(()=>[t("div",q0,[t("div",null,[t("img",{src:k0,alt:c.$t("\u7F51\u7EDC\u5411\u5BFC")},null,8,H0)]),t("span",null,F(c.$t("\u7F51\u7EDC\u5411\u5BFC")),1)])]),_:1}),B(W,{span:12,onClick:_[4]||(_[4]=f=>u())},{default:V(()=>[t("div",U0,[t("div",null,[t("img",{src:w0,alt:c.$t("NAS\u5411\u5BFC")},null,8,R0)]),t("span",null,F(c.$t("NAS\u5411\u5BFC")),1)])]),_:1})]),_:1},8,["title"])])]))}});var W0=S(G0,[["__scopeId","data-v-41e0f196"]]);const Z0=I({__name:"index",setup(e){const u=we(),s=R(()=>u.portitemStyle.portitem),o=R(()=>u.portitemStyle.show),c=R(()=>({bottom:`calc(100% - ${u.portitemStyle.top}px)`,left:`${u.portitemStyle.left}px`})),_=n=>{switch(n){case"full":return"\u5168\u53CC\u5DE5";case"half":return"\u534A\u53CC\u5DE5"}},f=n=>{u.portitemStyle.show=!0},h=n=>{u.portitemStyle.show=!1};return(n,i)=>o.value?(a(),d("div",{key:0,class:"disk-item-tooltip",style:J(c.value),onMouseenter:f,onMouseleave:h},[t("div",null,F(_(s.value.duplex)),1),t("div",null,"\u540D\u79F0\uFF1A"+F(s.value.name||"--"),1),t("div",null,"MAC\uFF1A"+F(s.value.macAddress||"--"),1),t("div",null,"\u63A5\u6536\uFF1A"+F(s.value.rx_packets||"--"),1),t("div",null,"\u53D1\u9001\uFF1A"+F(s.value.tx_packets||"--"),1)],36)):w("",!0)}});var j0=S(Z0,[["__scopeId","data-v-4955cc3f"]]);const X0={class:"next-main",style:{}},Y0={class:"content"},Q0=I({__name:"index",setup(e){return(u,s)=>(a(),d("div",X0,[B(Lu),t("div",Y0,[t("div",null,[B(Hu),B(Ro),B(wa),B(p1)]),t("div",null,[B(W0),B(D1),B(E0)])]),B(j0)]))}});var u2=S(Q0,[["__scopeId","data-v-745f7c2c"]]);export{u2 as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.6e445880.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8de52bcc.js similarity index 71% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.6e445880.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8de52bcc.js index b3907eed..2ba51f2d 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.6e445880.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8de52bcc.js @@ -1 +1 @@ -import{_ as o,r,o as t,e as n,w as s,S as a,b as c}from"./index.js?v=6248f3bd";const _={};function u(f,i){const e=r("router-view");return t(),n(a,null,{default:s(()=>[c(e)]),_:1})}var p=o(_,[["render",u]]);export{p as default}; +import{_ as o,r,o as t,e as n,w as s,S as a,b as c}from"./index.js?v=bc5d78ec";const _={};function u(f,i){const e=r("router-view");return t(),n(a,null,{default:s(()=>[c(e)]),_:1})}var p=o(_,[["render",u]]);export{p as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.2d0f4d1b.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.93c6cb9a.js similarity index 97% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.2d0f4d1b.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.93c6cb9a.js index 941c1f07..dd20e802 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.2d0f4d1b.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.93c6cb9a.js @@ -1 +1 @@ -var d=(_,i,l)=>new Promise((t,e)=>{var n=o=>{try{c(l.next(o))}catch(u){e(u)}},p=o=>{try{c(l.throw(o))}catch(u){e(u)}},c=o=>o.done?t(o.value):Promise.resolve(o.value).then(n,p);c((l=l.apply(_,i)).next())});import{d as E,s as v,j as h,v as F,o as D,c as f,a,x as b,A as B,l as y,m as A,B as C,C as w,T as x}from"./index.js?v=6248f3bd";const g=["onSubmit"],S=a("div",{class:"label-info"}," \u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B ",-1),T=a("div",{class:"label-name"},[a("span",null,"\u8D26\u53F7")],-1),V={class:"label-value"},k=a("div",{class:"label-name"},[a("span",null,"\u5BC6\u7801")],-1),q={class:"label-value"},G={class:"label-btns"},N=["disabled"],P={key:0,class:"label-msg"},j=E({__name:"index",setup(_){return d(this,null,function*(){let i,l;const t=v(""),e=h({account:"",password:""}),n=v(!1),p=v(!1),c=()=>d(this,null,function*(){n.value=!0;try{const u=yield w.Guide.Pppoe.GET(),{result:s}=u.data;s&&(e.account=s.account||"",e.password=s.password||"")}catch(u){t.value=u}finally{}n.value=!1,p.value=!0});[i,l]=F(()=>c()),yield i,l();const o=()=>d(this,null,function*(){if(e.account==""){t.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(e.password==""){t.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}n.value=!0;const u=x.Loading("\u4FDD\u5B58\u4E2D...");try{const s=yield w.Guide.Pppoe.POST({account:e.account,password:e.password});if(s.data){const{error:r,success:m}=s.data;r&&(t.value=r),(m==null||m==0)&&(t.value="\u914D\u7F6E\u5B8C\u6210")}}catch(s){t.value=s}finally{}n.value=!1,u.Close()});return(u,s)=>(D(),f("form",{class:"form-container",onSubmit:C(o,["prevent"])},[S,T,a("div",V,[b(a("input",{type:"text",placeholder:"\u5BBD\u5E26\u8D26\u53F7","onUpdate:modelValue":s[0]||(s[0]=r=>e.account=r),required:""},null,512),[[B,e.account,void 0,{trim:!0}]])]),k,a("div",q,[b(a("input",{type:"password",placeholder:"\u5BBD\u5E26\u5BC6\u7801","onUpdate:modelValue":s[1]||(s[1]=r=>e.password=r),required:""},null,512),[[B,e.password,void 0,{trim:!0}]])]),a("div",G,[a("button",{class:"sumbit",disabled:n.value},"\u4FDD\u5B58",8,N)]),t.value?(D(),f("div",P,[a("span",null,y(t.value),1)])):A("",!0)],40,g))})}});export{j as default}; +var d=(_,i,l)=>new Promise((t,e)=>{var n=o=>{try{c(l.next(o))}catch(u){e(u)}},p=o=>{try{c(l.throw(o))}catch(u){e(u)}},c=o=>o.done?t(o.value):Promise.resolve(o.value).then(n,p);c((l=l.apply(_,i)).next())});import{d as E,s as v,j as h,v as F,o as D,c as f,a,x as b,A as B,l as y,m as A,B as C,C as w,T as x}from"./index.js?v=bc5d78ec";const g=["onSubmit"],S=a("div",{class:"label-info"}," \u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B ",-1),T=a("div",{class:"label-name"},[a("span",null,"\u8D26\u53F7")],-1),V={class:"label-value"},k=a("div",{class:"label-name"},[a("span",null,"\u5BC6\u7801")],-1),q={class:"label-value"},G={class:"label-btns"},N=["disabled"],P={key:0,class:"label-msg"},j=E({__name:"index",setup(_){return d(this,null,function*(){let i,l;const t=v(""),e=h({account:"",password:""}),n=v(!1),p=v(!1),c=()=>d(this,null,function*(){n.value=!0;try{const u=yield w.Guide.Pppoe.GET(),{result:s}=u.data;s&&(e.account=s.account||"",e.password=s.password||"")}catch(u){t.value=u}finally{}n.value=!1,p.value=!0});[i,l]=F(()=>c()),yield i,l();const o=()=>d(this,null,function*(){if(e.account==""){t.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(e.password==""){t.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}n.value=!0;const u=x.Loading("\u4FDD\u5B58\u4E2D...");try{const s=yield w.Guide.Pppoe.POST({account:e.account,password:e.password});if(s.data){const{error:r,success:m}=s.data;r&&(t.value=r),(m==null||m==0)&&(t.value="\u914D\u7F6E\u5B8C\u6210")}}catch(s){t.value=s}finally{}n.value=!1,u.Close()});return(u,s)=>(D(),f("form",{class:"form-container",onSubmit:C(o,["prevent"])},[S,T,a("div",V,[b(a("input",{type:"text",placeholder:"\u5BBD\u5E26\u8D26\u53F7","onUpdate:modelValue":s[0]||(s[0]=r=>e.account=r),required:""},null,512),[[B,e.account,void 0,{trim:!0}]])]),k,a("div",q,[b(a("input",{type:"password",placeholder:"\u5BBD\u5E26\u5BC6\u7801","onUpdate:modelValue":s[1]||(s[1]=r=>e.password=r),required:""},null,512),[[B,e.password,void 0,{trim:!0}]])]),a("div",G,[a("button",{class:"sumbit",disabled:n.value},"\u4FDD\u5B58",8,N)]),t.value?(D(),f("div",P,[a("span",null,y(t.value),1)])):A("",!0)],40,g))})}});export{j as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.372b53c8.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.98c5424c.js similarity index 91% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.372b53c8.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.98c5424c.js index e43b04fb..2355f62a 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.372b53c8.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.98c5424c.js @@ -1 +1 @@ -import{d as a,r as e,o as u,e as r,w as p,b as s}from"./index.js?v=6248f3bd";const _=a({__name:"index",setup(c){const t=[{name:"index",title:"\u7F51\u7EDC\u914D\u7F6E",path:"/router/network"},{name:"pppoe",title:"\u62E8\u53F7\u8FDE\u63A5",path:"/router/network/pppoe"},{name:"dhcp",title:"DHCP\u8FDE\u63A5",path:"/router/network/dhcp"},{name:"gateway",title:"\u65C1\u8DEF\u7531\u8FDE\u63A5",path:"/router/network/gateway"},{name:"intranet",title:"\u5185\u7F51\u914D\u7F6E",path:"/router/network/intranet"},{name:"dns",title:"DNS\u914D\u7F6E",path:"/router/network/dns"}];return(i,l)=>{const o=e("router-loading"),n=e("layout-page");return u(),r(n,{menus:t},{default:p(()=>[s(o)]),_:1})}}});export{_ as default}; +import{d as a,r as e,o as u,e as r,w as p,b as s}from"./index.js?v=bc5d78ec";const _=a({__name:"index",setup(c){const t=[{name:"index",title:"\u7F51\u7EDC\u914D\u7F6E",path:"/router/network"},{name:"pppoe",title:"\u62E8\u53F7\u8FDE\u63A5",path:"/router/network/pppoe"},{name:"dhcp",title:"DHCP\u8FDE\u63A5",path:"/router/network/dhcp"},{name:"gateway",title:"\u65C1\u8DEF\u7531\u8FDE\u63A5",path:"/router/network/gateway"},{name:"intranet",title:"\u5185\u7F51\u914D\u7F6E",path:"/router/network/intranet"},{name:"dns",title:"DNS\u914D\u7F6E",path:"/router/network/dns"}];return(i,l)=>{const o=e("router-loading"),n=e("layout-page");return u(),r(n,{menus:t},{default:p(()=>[s(o)]),_:1})}}});export{_ as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a2310d96.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a2310d96.js new file mode 100644 index 00000000..9982acff --- /dev/null +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.a2310d96.js @@ -0,0 +1 @@ +import{_ as o,r as n,o as r,c as t,b as a}from"./index.js?v=bc5d78ec";const c={},s={id:"page",class:"page-container"};function _(d,i){const e=n("router-loading");return r(),t("div",s,[a(e)])}var p=o(c,[["render",_]]);export{p as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c0888f95.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b1661ee7.js similarity index 97% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c0888f95.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b1661ee7.js index d9906bdf..4f8a65fa 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c0888f95.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b1661ee7.js @@ -1 +1 @@ -import{_ as k,d as C,h,u as I,i as l,j as S,k as P,o,c,a as t,l as e,g as r,m as y,n as w,p as A,q as b}from"./index.js?v=6248f3bd";const s=u=>(A("data-v-a9949144"),u=u(),b(),u),N={id:"page",class:"page-container"},U={class:"text-container"},V={class:"text-container_item"},j=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u8054\u7F51\u72B6\u6001:")],-1)),H={class:"text-container_item_value"},q={key:0},L={key:1},$={key:2},z={key:4},G={class:"text-container_item"},J=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u8FDE\u63A5\u65B9\u5F0F:")],-1)),K={class:"text-container_item_value"},M={class:"text-container_item"},O=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5728\u7EBF\u8BBE\u5907:")],-1)),Q={class:"text-container_item_value"},R={class:"text-container_item"},T=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv4\u5730\u5740:")],-1)),W={class:"text-container_item_value"},X={key:0,class:"text-container_item"},Y=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv6\u5730\u5740:")],-1)),Z={class:"text-container_item_value"},tt={class:"text-container_item"},et=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"DNS:")],-1)),st={class:"text-container_item_value"},nt={class:"text-container"},at={class:"text-container_item"},it=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u7CFB\u7EDF\u540D\u79F0:")],-1)),ot={class:"text-container_item_value"},ct={class:"text-container_item"},_t=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u56FA\u4EF6\u7248\u672C:")],-1)),ut={class:"text-container_item_value"},lt={class:"text-container_item"},rt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5185\u6838\u7248\u672C:")],-1)),dt={class:"text-container_item_value"},vt={class:"text-container_item"},pt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5DF2\u542F\u52A8:")],-1)),mt={class:"text-container_item_value"},ht={class:"text-container_item"},xt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u7CFB\u7EDF\u65F6\u95F4:")],-1)),Ft={class:"text-container_item_value"},gt={class:"text-container"},Et={class:"text-container_item"},Bt={class:"text-container_item_title"},Dt={class:"text-container_item_value"},ft={class:"progress-container"},kt={class:"text-container_item"},Ct=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"CPU:")],-1)),It={class:"text-container_item_value"},St={class:"progress-container"},Pt=["value"],yt={class:"text-container_item"},wt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5185\u5B58:")],-1)),At={class:"text-container_item_value"},bt={class:"progress-container"},Nt=["value"],Ut=C({__name:"index",setup(u){const x=h.stampForm,F=h.stampForm,_=I(),n=l(()=>_.network),g=l(()=>_.device),i=S({cpuusage:0,temperature:0,menavailablePercentage:0,menusage:0}),d=l(()=>_.version),v=l(()=>_.time),E=a=>{switch(a){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},B=a=>{switch(a){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},D=a=>a.toUpperCase(),p=()=>{_.getSystemData().then(a=>{i.cpuusage=a.cpu.usage,i.temperature=a.cpu.temperature,i.menavailablePercentage=a.memery.availablePercentage||100,i.menusage=100-i.menavailablePercentage})};p();const f=setInterval(()=>{p()},5e3);return P(()=>{clearInterval(f)}),(a,Vt)=>{var m;return o(),c("div",N,[t("div",U,[t("div",V,[j,t("div",H,[n.value.networkInfo=="netSuccess"?(o(),c("span",q," \u5DF2\u8054\u7F51 ("+e(r(x)(n.value.uptimeStamp))+") ",1)):n.value.networkInfo=="dnsFailed"?(o(),c("span",L," DNS\u9519\u8BEF ")):n.value.networkInfo=="softSourceFailed"?(o(),c("span",$," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(o(),c("span",z," \u68C0\u6D4B\u4E2D "))])]),t("div",G,[J,t("div",K,e(D(n.value.defaultInterface||"")),1)]),t("div",M,[O,t("div",Q,e(g.value.devices.length),1)]),t("div",R,[T,t("div",W,e(n.value.ipv4addr)+"\uFF08"+e(E(n.value.proto||""))+"\uFF09 ",1)]),n.value.ipv6addr?(o(),c("div",X,[Y,t("div",Z,e(n.value.ipv6addr),1)])):y("",!0),t("div",tt,[et,t("div",st,[t("p",null,e(B(n.value.dnsProto)),1),t("p",null,e((m=n.value.dnsList)==null?void 0:m.join(", ")),1)])])]),t("div",nt,[t("div",at,[it,t("div",ot,[t("span",null,e(r(w).HostName),1)])]),t("div",ct,[_t,t("div",ut,[t("span",null,e(d.value.firmwareVersion),1)])]),t("div",lt,[rt,t("div",dt,[t("span",null,e(d.value.kernelVersion),1)])]),t("div",vt,[pt,t("div",mt,[t("span",null,e(r(F)(v.value.uptime)),1)])]),t("div",ht,[xt,t("div",Ft,[t("span",null,e(v.value.localtime),1)])])]),t("div",gt,[t("div",Et,[t("div",Bt,[t("span",null,e(a.$t("\u6E29\u5EA6"))+":",1)]),t("div",Dt,[t("div",ft,[t("span",null,e(i.temperature||"--")+"\u2103",1)])])]),t("div",kt,[Ct,t("div",It,[t("div",St,[t("progress",{value:i.cpuusage||0,max:"100"},null,8,Pt),t("span",null,e(i.cpuusage)+"%",1)])])]),t("div",yt,[wt,t("div",At,[t("div",bt,[t("progress",{value:i.menusage||0,max:"100"},null,8,Nt),t("span",null,e(i.menusage)+"% ",1)])])])])])}}});var Ht=k(Ut,[["__scopeId","data-v-a9949144"]]);export{Ht as default}; +import{_ as k,d as C,h,u as I,i as l,j as S,k as P,o,c,a as t,l as e,g as r,m as y,n as w,p as A,q as b}from"./index.js?v=bc5d78ec";const s=u=>(A("data-v-a9949144"),u=u(),b(),u),N={id:"page",class:"page-container"},U={class:"text-container"},V={class:"text-container_item"},j=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u8054\u7F51\u72B6\u6001:")],-1)),H={class:"text-container_item_value"},q={key:0},L={key:1},$={key:2},z={key:4},G={class:"text-container_item"},J=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u8FDE\u63A5\u65B9\u5F0F:")],-1)),K={class:"text-container_item_value"},M={class:"text-container_item"},O=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5728\u7EBF\u8BBE\u5907:")],-1)),Q={class:"text-container_item_value"},R={class:"text-container_item"},T=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv4\u5730\u5740:")],-1)),W={class:"text-container_item_value"},X={key:0,class:"text-container_item"},Y=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv6\u5730\u5740:")],-1)),Z={class:"text-container_item_value"},tt={class:"text-container_item"},et=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"DNS:")],-1)),st={class:"text-container_item_value"},nt={class:"text-container"},at={class:"text-container_item"},it=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u7CFB\u7EDF\u540D\u79F0:")],-1)),ot={class:"text-container_item_value"},ct={class:"text-container_item"},_t=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u56FA\u4EF6\u7248\u672C:")],-1)),ut={class:"text-container_item_value"},lt={class:"text-container_item"},rt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5185\u6838\u7248\u672C:")],-1)),dt={class:"text-container_item_value"},vt={class:"text-container_item"},pt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5DF2\u542F\u52A8:")],-1)),mt={class:"text-container_item_value"},ht={class:"text-container_item"},xt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u7CFB\u7EDF\u65F6\u95F4:")],-1)),Ft={class:"text-container_item_value"},gt={class:"text-container"},Et={class:"text-container_item"},Bt={class:"text-container_item_title"},Dt={class:"text-container_item_value"},ft={class:"progress-container"},kt={class:"text-container_item"},Ct=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"CPU:")],-1)),It={class:"text-container_item_value"},St={class:"progress-container"},Pt=["value"],yt={class:"text-container_item"},wt=s(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5185\u5B58:")],-1)),At={class:"text-container_item_value"},bt={class:"progress-container"},Nt=["value"],Ut=C({__name:"index",setup(u){const x=h.stampForm,F=h.stampForm,_=I(),n=l(()=>_.network),g=l(()=>_.device),i=S({cpuusage:0,temperature:0,menavailablePercentage:0,menusage:0}),d=l(()=>_.version),v=l(()=>_.time),E=a=>{switch(a){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},B=a=>{switch(a){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},D=a=>a.toUpperCase(),p=()=>{_.getSystemData().then(a=>{i.cpuusage=a.cpu.usage,i.temperature=a.cpu.temperature,i.menavailablePercentage=a.memery.availablePercentage||100,i.menusage=100-i.menavailablePercentage})};p();const f=setInterval(()=>{p()},5e3);return P(()=>{clearInterval(f)}),(a,Vt)=>{var m;return o(),c("div",N,[t("div",U,[t("div",V,[j,t("div",H,[n.value.networkInfo=="netSuccess"?(o(),c("span",q," \u5DF2\u8054\u7F51 ("+e(r(x)(n.value.uptimeStamp))+") ",1)):n.value.networkInfo=="dnsFailed"?(o(),c("span",L," DNS\u9519\u8BEF ")):n.value.networkInfo=="softSourceFailed"?(o(),c("span",$," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(o(),c("span",z," \u68C0\u6D4B\u4E2D "))])]),t("div",G,[J,t("div",K,e(D(n.value.defaultInterface||"")),1)]),t("div",M,[O,t("div",Q,e(g.value.devices.length),1)]),t("div",R,[T,t("div",W,e(n.value.ipv4addr)+"\uFF08"+e(E(n.value.proto||""))+"\uFF09 ",1)]),n.value.ipv6addr?(o(),c("div",X,[Y,t("div",Z,e(n.value.ipv6addr),1)])):y("",!0),t("div",tt,[et,t("div",st,[t("p",null,e(B(n.value.dnsProto)),1),t("p",null,e((m=n.value.dnsList)==null?void 0:m.join(", ")),1)])])]),t("div",nt,[t("div",at,[it,t("div",ot,[t("span",null,e(r(w).HostName),1)])]),t("div",ct,[_t,t("div",ut,[t("span",null,e(d.value.firmwareVersion),1)])]),t("div",lt,[rt,t("div",dt,[t("span",null,e(d.value.kernelVersion),1)])]),t("div",vt,[pt,t("div",mt,[t("span",null,e(r(F)(v.value.uptime)),1)])]),t("div",ht,[xt,t("div",Ft,[t("span",null,e(v.value.localtime),1)])])]),t("div",gt,[t("div",Et,[t("div",Bt,[t("span",null,e(a.$t("\u6E29\u5EA6"))+":",1)]),t("div",Dt,[t("div",ft,[t("span",null,e(i.temperature||"--")+"\u2103",1)])])]),t("div",kt,[Ct,t("div",It,[t("div",St,[t("progress",{value:i.cpuusage||0,max:"100"},null,8,Pt),t("span",null,e(i.cpuusage)+"%",1)])])]),t("div",yt,[wt,t("div",At,[t("div",bt,[t("progress",{value:i.menusage||0,max:"100"},null,8,Nt),t("span",null,e(i.menusage)+"% ",1)])])])])])}}});var Ht=k(Ut,[["__scopeId","data-v-a9949144"]]);export{Ht as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.af55284f.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b3a0ed74.js similarity index 99% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.af55284f.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b3a0ed74.js index 8aa431b9..d3696e63 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.af55284f.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.b3a0ed74.js @@ -1,4 +1,4 @@ -var JL=Object.defineProperty,QL=Object.defineProperties;var jL=Object.getOwnPropertyDescriptors;var Am=Object.getOwnPropertySymbols;var tI=Object.prototype.hasOwnProperty,eI=Object.prototype.propertyIsEnumerable;var Dm=(r,e,t)=>e in r?JL(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Mm=(r,e)=>{for(var t in e||(e={}))tI.call(e,t)&&Dm(r,t,e[t]);if(Am)for(var t of Am(e))eI.call(e,t)&&Dm(r,t,e[t]);return r},Lm=(r,e)=>QL(r,jL(e));var ra=(r,e,t)=>new Promise((a,n)=>{var i=l=>{try{s(t.next(l))}catch(u){n(u)}},o=l=>{try{s(t.throw(l))}catch(u){n(u)}},s=l=>l.done?a(l.value):Promise.resolve(l.value).then(i,o);s((t=t.apply(r,e)).next())});import{d as fn,r as rI,o as _t,c as It,E as pa,F as lr,a as N,g as df,l as Xt,$ as wd,e as zr,m as Ee,_ as hn,p as Si,q as xi,x as Uu,a0 as aI,a1 as nI,j as Gs,s as Ob,w as hg,V as vg,T as ar,C as Fr,W as cg,A as iI,a2 as Im,z as bd,a3 as Cd}from"./index.js?v=6248f3bd";var oI="/luci-static/istorex/disk.png?v=14325490",sI="/luci-static/istorex/partition.png?v=d1e1a8fb",lI="/luci-static/istorex/folder.png?v=38e4700a";const Bb=r=>(Si("data-v-8009221e"),r=r(),xi(),r),uI=["onClick"],fI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hI=Bb(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),vI=[hI],cI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dI=Bb(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),pI=[dI],gI=["src"],yI={key:1,class:"empty"},mI=fn({__name:"folder-tree",props:{currPath:{type:Object,required:!0},folders:{type:Array,required:!0},onDisk:{type:Function,required:!0},context:{type:Object,required:!0}},setup(r){const e=r,t=(a,n)=>{a.folder&&(a.folder.openChildren=!a.folder.openChildren),e.onDisk(a,n)};return(a,n)=>{const i=rI("folder-tree",!0);return r.folders.length?(_t(!0),It(lr,{key:0},pa(r.folders,(o,s)=>(_t(),It("div",{key:s,class:"folder-body"},[N("div",{class:"content",onClick:l=>t({disk:r.context.disk,mount:r.context.mount,folder:o},"folder"),style:wd(o.rootPath&&r.currPath.join().includes(o.rootPath)?"background-color:#ecf5ff;":"")},[o.openChildren?(_t(),It("svg",fI,vI)):(_t(),It("svg",cI,pI)),N("img",{src:df(lI)},null,8,gI),N("span",null,Xt(o.name),1)],12,uI),o.openChildren?(_t(),It(lr,{key:0},[o.childrens?(_t(),zr(i,{key:0,currPath:r.currPath,"on-disk":r.onDisk,folders:o.childrens,context:{disk:r.context.disk,mount:r.context.mount}},null,8,["currPath","on-disk","folders","context"])):Ee("",!0)],64)):Ee("",!0)]))),128)):(_t(),It("div",yI,"\u7A7A\u76EE\u5F55"))}}});var _I=hn(mI,[["__scopeId","data-v-8009221e"]]);const yl=r=>(Si("data-v-2ec06138"),r=r(),xi(),r),SI={class:"disk-item"},xI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wI=yl(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),bI=[wI],CI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TI=yl(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),AI=[TI],DI={class:"disk-item_icon"},MI=["src"],LI={class:"disk-item_f"},II={class:"disk-item_venderModel"},PI={class:"disk-item_used"},RI={key:0,class:"tag",style:{color:"#3a9a50",background:"rgba(97, 216, 4, 0.2)"}},EI=yl(()=>N("div",{class:"auto"},null,-1)),kI={class:"disk-item-r"},OI={class:"disk-children"},BI=["onClick"],NI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},VI=yl(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),zI=[VI],FI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GI=yl(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),HI=[GI],WI={class:"disk-item_icon"},$I=["src"],UI={class:"disk-children-item_f"},YI=["onClick"],ZI=fn({__name:"disk-item",props:{currPath:{type:Object,required:!0},disk:{type:Object,required:!0},onRefresh:{type:Function,required:!0},onDisk:{type:Function,required:!0}},setup(r){const e=r,t=(i,o)=>{o==="disk"&&i.disk&&(i.disk.openChildren=!i.disk.openChildren),o==="mount"&&i.mount&&(i.mount.openChildren=!i.mount.openChildren),e.onDisk({disk:i.disk,mount:i.mount,folder:null},o)},a=i=>{nI({step:"format",data:{path:i.path},callback:()=>{e.onRefresh()}})},n=()=>{};return(i,o)=>(_t(),It("ul",SI,[N("li",{class:"disk-info",onClick:o[0]||(o[0]=s=>t({disk:r.disk,mount:null},"disk")),style:wd(r.disk.path&&r.currPath.includes(r.disk.path)?"background-color:#ecf5ff;":"")},[r.disk.openChildren?(_t(),It("svg",xI,bI)):(_t(),It("svg",CI,AI)),N("div",DI,[N("img",{src:df(oI)},null,8,MI)]),N("div",LI,[N("div",null,[N("div",II,Xt(r.disk.venderModel),1),N("div",PI,Xt(r.disk.used)+"/"+Xt(r.disk.size),1)]),r.disk.isSystemRoot?(_t(),It("span",RI,"Root\u76D8")):Ee("",!0)]),EI,N("div",kI,Xt(r.disk.path),1)],4),Uu(N("div",OI,[(_t(!0),It(lr,null,pa(r.disk.childrens,s=>(_t(),It("div",null,[N("li",{class:"disk-children-item",onClick:l=>t({disk:r.disk,mount:s},"mount"),style:wd(s.mountPoint&&r.currPath.includes(s.mountPoint)?"background-color:#ecf5ff;":"")},[s.openChildren?(_t(),It("svg",NI,zI)):(_t(),It("svg",FI,HI)),N("div",WI,[N("img",{src:df(sI)},null,8,$I)]),N("div",UI,[N("div",null,[N("span",null,Xt(s.name)+"\u3010"+Xt(s.filesystem)+"\u3011"+Xt(s.mountPoint),1),N("div",null,Xt(r.disk.used)+"/"+Xt(r.disk.size),1)]),s.filesystem!=="No FileSystem"&&!s.mountPoint?(_t(),It("span",{key:0,onClick:n,class:"tag",style:{color:"#4b6fed",background:"#e3eaff"}}," \u9700\u8981\u6302\u8F7D ")):Ee("",!0),s.filesystem==="No FileSystem"&&!s.mountPoint?(_t(),It("span",{key:1,onClick:()=>a(s),class:"tag",style:{color:"#df493f",background:"#ffe3e2"}}," \u9700\u8981\u683C\u5F0F\u5316 ",8,YI)):Ee("",!0)])],12,BI),s.openChildren?(_t(),zr(_I,{key:0,currPath:r.currPath,context:{disk:r.disk,mount:s},folders:s.childrens?s.childrens:[],"on-disk":r.onDisk},null,8,["currPath","context","folders","on-disk"])):Ee("",!0)]))),256))],512),[[aI,r.disk.openChildren]])]))}});var Pm=hn(ZI,[["__scopeId","data-v-2ec06138"]]);const XI={class:"content"},qI={class:"header"},KI={class:"disk-list"},JI=fn({__name:"index",props:{close:Function,onOk:Function},setup(r){const e=r,t=()=>{e.close&&e.close()},a=()=>{e.onOk&&e.onOk(o.value),e.close&&e.close()},n=Gs({disks:[],raids:[]}),i=Gs([]),o=Ob(""),s=(u,f)=>ra(this,null,function*(){var c,d,p,g,y,m,_,S,w,x,b,C,T;const h={path:"",order:"date",orderBy:"asc",filter:"dir"};console.log("locationType",f),f==="mount"&&((c=u.mount)==null?void 0:c.mountPoint)&&(h.path="/local/root"+((d=u.mount)==null?void 0:d.mountPoint),o.value=(p=u.mount)==null?void 0:p.mountPoint,i[2]=""),f==="folder"&&((g=u.folder)==null?void 0:g.rootPath)&&(h.path="/local"+u.folder.rootPath,o.value=u.folder.rootPath),(y=u.disk)!=null&&y.path&&(i[0]=(m=u.disk)==null?void 0:m.path),(_=u.mount)!=null&&_.mountPoint&&(i[1]=(S=u.mount)==null?void 0:S.mountPoint),(w=u.folder)!=null&&w.rootPath&&(i[2]=(x=u.folder)==null?void 0:x.rootPath);const v=yield Fr.Linkease.File.List.POST(h);(b=v.data.result)!=null&&b.entries&&(f==="mount"&&u.mount&&(u.mount.childrens=(C=v.data.result)==null?void 0:C.entries),f==="folder"&&u.folder&&(u.folder.childrens=(T=v.data.result)==null?void 0:T.entries))}),l=()=>ra(this,null,function*(){const u=ar.Loading("\u52A0\u8F7D\u4E2D..."),f=yield Promise.all([Fr.Nas.Disk.Status.GET(),Fr.Raid.List.GET()]);u.Close();try{if(f[0]){const h=f[0];h!=null&&h.data.result&&(n.disks=(h==null?void 0:h.data.result.disks)||[])}if(f[1]){const h=f[1];h.data.result&&(n.raids=h.data.result.disks||[])}}catch(h){ar.Warning(h)}});return l(),(u,f)=>(_t(),zr(vg,{onHandleClose:t,title:"\u9009\u62E9\u4F4D\u7F6E",width:"572px"},{default:hg(()=>[N("div",XI,[N("div",qI,[N("div",null,[N("span",null,Xt(`\u76EE\u7684\u5730\uFF1A${o.value?o.value:"\u8BF7\u9009\u62E9"}`),1)]),N("div",{onClick:l},"\u5237\u65B0\u76EE\u5F55")]),N("div",KI,[(_t(!0),It(lr,null,pa(n.disks,h=>(_t(),zr(Pm,{currPath:i,disk:h,onDisk:s,onRefresh:l},null,8,["currPath","disk"]))),256)),(_t(!0),It(lr,null,pa(n.raids,h=>(_t(),zr(Pm,{currPath:i,disk:h,onDisk:s,onRefresh:l},null,8,["currPath","disk"]))),256))])]),N("div",{class:"dialog-footer"},[N("div",null,[N("button",{onClick:t},"\u53D6\u6D88"),N("button",{onClick:a},"\u786E\u5B9A")])])]),_:1}))}});var QI=hn(JI,[["__scopeId","data-v-0763aef7"]]);class jI extends cg{Open(e){this.openWindow(QI,e)}}const tP=new jI;const dg=r=>(Si("data-v-e79621ae"),r=r(),xi(),r),eP={class:"content"},rP={class:"form-container1"},aP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u9009\u62E9\u4F4D\u7F6E")],-1)),nP={class:"label-value"},iP=["value"],oP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u5171\u4EAB\u540D\u79F0 ")],-1)),sP={class:"label-value"},lP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u5171\u4EAB\u65B9\u5F0F")],-1)),uP={class:"label-value"},fP={class:"label-flex"},hP={class:"label-radio"},vP={class:"label-radio"},cP={class:"dialog-footer"},dP=fn({__name:"main-form",props:{context:{type:Object,required:!0}},emits:["onNext"],setup(r,{emit:e}){const t=r;console.log("form",t.context);const a=()=>{if(!t.context.path)return ar.Message("\u8BF7\u9009\u62E9\u4F4D\u7F6E");if(!t.context.name)return ar.Message("\u8BF7\u8F93\u5165\u5171\u4EAB\u540D\u79F0");if(!t.context.samba&&!t.context.webdav)return ar.Message("\u8BF7\u9009\u62E9\u5171\u4EAB\u65B9\u5F0F");e("onNext")};return(n,i)=>(_t(),It("div",eP,[N("form",rP,[N("div",null,[aP,N("div",nP,[N("input",{value:t.context.path,type:"text"},null,8,iP),N("span",{class:"button",onClick:i[0]||(i[0]=o=>n.$emit("openDisk",!0))},"\u6D4F\u89C8")])]),N("div",null,[oP,N("div",sP,[Uu(N("input",{"onUpdate:modelValue":i[1]||(i[1]=o=>t.context.name=o),type:"text"},null,512),[[iI,t.context.name,void 0,{trim:!0}]])])]),N("div",null,[lP,N("div",uP,[N("div",fP,[N("label",hP,[Uu(N("input",{type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=o=>t.context.samba=o)},null,512),[[Im,t.context.samba]]),bd("Samba ")]),N("label",vP,[Uu(N("input",{type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=o=>t.context.webdav=o)},null,512),[[Im,t.context.webdav]]),bd("WebDav ")])])])])]),N("div",cP,[N("div",null,[N("button",{onClick:i[4]||(i[4]=o=>n.$emit("onCancel",!1))},"\u53D6\u6D88"),N("button",{onClick:a},"\u4E0B\u4E00\u6B65")])])]))}});var pP=hn(dP,[["__scopeId","data-v-e79621ae"]]);const ml=r=>(Si("data-v-6363551b"),r=r(),xi(),r),gP=ml(()=>N("span",{class:"title"},"\u786E\u8BA4\u4FE1\u606F",-1)),yP={class:"detail"},mP=ml(()=>N("span",null,"\u5171\u4EAB\u540D\u79F0:",-1)),_P=ml(()=>N("span",null,"\u5171\u4EAB\u4F4D\u7F6E:",-1)),SP=ml(()=>N("span",null,"\u5171\u4EAB\u65B9\u5F0F:",-1)),xP=ml(()=>N("span",null,"\u5171\u4EAB\u7528\u6237:",-1)),wP={class:"dialog-footer"},bP=fn({__name:"form-confirm",props:{context:{type:Object,required:!0},mode:{type:String,required:!0}},setup(r){const e=r;return(t,a)=>(_t(),It(lr,null,[N("div",null,[N("div",null,[gP,N("div",yP,[N("div",null,[mP,N("span",null,Xt(r.context.name),1)]),N("div",null,[_P,N("span",null,Xt(r.context.path),1)]),N("div",null,[SP,N("span",null,Xt(`${r.context.samba?"Samba":""} ${r.context.webdav?"WebDav":""}`),1)]),N("div",null,[xP,(_t(!0),It(lr,null,pa(r.context.users,(n,i)=>(_t(),It("span",{key:i},Xt(`${n.userName}(${n.ro?"\u53EA\u8BFB":"\u8BFB\u5199"})${r.context.users.length-1===i?"":"\u3001"}`),1))),128))])])])]),N("div",wP,[N("div",null,[N("button",{onClick:a[0]||(a[0]=n=>t.$emit("onCancel"))},"\u4E0A\u4E00\u6B65"),N("button",{onClick:a[1]||(a[1]=n=>t.$emit("onOk"))},Xt(e.mode==="edit"?"\u7F16\u8F91":"\u521B\u5EFA"),1)])])],64))}});var CP=hn(bP,[["__scopeId","data-v-6363551b"]]);const TP=r=>(Si("data-v-26847234"),r=r(),xi(),r),AP={class:"ul-container"},DP={class:"ul-container_body"},MP={class:"page-table"},LP=TP(()=>N("thead",null,[N("tr",null,[N("th",null,"\u7528\u6237"),N("th",null,"\u8BFB\u5199"),N("th",null,"\u53EA\u8BFB"),N("th",null,"\u65E0\u6743\u9650")])],-1)),IP=["checked","onChange"],PP=["checked","onChange"],RP=["checked","onChange"],EP={class:"dialog-footer"},kP=fn({__name:"user-table",props:{context:{type:Object,required:!0}},setup(r){const e=r,t=Gs({users:e.context.users}),a=()=>ra(this,null,function*(){try{const o=yield Fr.Share.User.GET();if(o!=null&&o.data){const{result:s}=o.data;s&&(t.users=s.users.map(l=>Lm(Mm({},l),{ro:!1,rw:!0})))}}catch(o){console.log(o)}}),n=(o,s)=>{s?s==="ro"?(o.ro=!0,o.rw=!1):(o.ro=!1,o.rw=!0):(o.rw=!1,o.ro=!1)};e.context.users.length||a();function i(){Cd({callback:o=>{t.users=[...t.users,o]}})}return(o,s)=>(_t(),It(lr,null,[N("button",{class:"add-user",onClick:i},"\u65B0\u589E"),N("ul",AP,[N("div",DP,[N("table",MP,[LP,N("tbody",null,[(_t(!0),It(lr,null,pa(t.users,l=>(_t(),It("tr",null,[N("th",null,Xt(l.userName),1),N("th",null,[N("input",{type:"radio",checked:l.rw,onChange:u=>n(l,"rw")},null,40,IP)]),N("th",null,[N("input",{type:"radio",checked:l.ro,onChange:u=>n(l,"ro")},null,40,PP)]),N("th",null,[N("input",{type:"radio",checked:!l.ro&&!l.rw,onChange:u=>n(l)},null,40,RP)])]))),256))])])])]),N("div",EP,[N("div",null,[N("button",{onClick:s[0]||(s[0]=l=>o.$emit("onCancel",!1))},"\u4E0A\u4E00\u6B65"),N("button",{onClick:s[1]||(s[1]=l=>o.$emit("onOk",t.users))},"\u4E0B\u4E00\u6B65")])])],64))}});var OP=hn(kP,[["__scopeId","data-v-26847234"]]);const hh=r=>(Si("data-v-9c961df4"),r=r(),xi(),r),BP={key:0},NP={key:0,class:"no-data"},VP=hh(()=>N("span",null,"\u6682\u65F6\u8FD8\u6CA1\u6709\u4EFB\u4F55\u5171\u4EAB\u6587\u4EF6",-1)),zP={key:1,class:"list"},FP=hh(()=>N("div",{class:"img"},[N("svg",{width:"71",height:"63",viewBox:"0 0 71 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[N("rect",{width:"71",height:"63",fill:"url(#pattern0)"}),N("defs",null,[N("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[N("use",{"xlink:href":"#image0_57_1478",transform:"matrix(0.00892857 0 0 0.0100624 0 -0.00311791)"})]),N("image",{id:"image0_57_1478",width:"112",height:"100","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABkCAYAAABep7TGAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSIbQAAlJCb4JIDSAlhBZAehFshCRAKDEGgogdXVRw7WIBG7oqotgBsSN2FsXeF0RUlHWxYEPlTQrouq98b75v7vz3nzP/OXPuzL13AFA/xRWLc1ANAHJF+ZLYkADG2OQUBukZIAMToAJwgHF5eWJWdHQEgGWw/Xt5fwsgsva6g0zrn/3/tWjyBXk8AJBoiNP4ebxciA8BgFfyxJJ8AIgy3nxqvliGYQXaEhggxAtlOEOBK2U4TYH3yW3iY9kQNwNAVuVyJRkAqF2FPKOAlwE11HohdhLxhSIA1BkQ++bmTuZDnAqxDbQRQyzTZ6b9oJPxN820IU0uN2MIK+YiL+RAYZ44hzvt/0zH/y65OdJBH1awqmZKQmNlc4Z5u5M9OVyGVSHuEaVFRkGsBfFHIV9uDzFKzZSGJijsUUNeHhvmDOhC7MTnBoZDbAhxsCgnMkLJp6ULgzkQwxWCFgrzOfEQ60G8UJAXFKe02SyZHKv0hdalS9gsJX+BK5H7lfl6JM1OYCn132QKOEp9TK0oMz4JYirEFgXCxEiI1SB2zMuOC1fajC7KZEcO2kiksbL4LSCOFYhCAhT6WEG6JDhWaV+amzc4X2xzppATqcQH8jPjQxX5wZp5XHn8cC7YVYGIlTCoI8gbGzE4F74gMEgxd+y5QJQQp9T5KM4PiFWMxaninGilPW4myAmR8WYQu+YVxCnH4on5cEEq9PF0cX50vCJOvCiLGxatiAdfBiIAGwQCBpDCmgYmgywgbO2p74F3ip5gwAUSkAEEwEHJDI5IkveI4DUOFIE/IRKAvKFxAfJeASiA/NchVnF1AOny3gL5iGzwFOJcEA5y4L1UPko05C0RPIGM8B/eubDyYLw5sMr6/z0/yH5nWJCJUDLSQY8M9UFLYhAxkBhKDCba4ga4L+6NR8CrP6zOOBP3HJzHd3vCU0Ib4THhJqGdcHeSsFjyU5RjQDvUD1bmIu3HXOBWUNMND8B9oDpUxnVxA+CAu0I/LNwPenaDLFsZtywrjJ+0/zaDH56G0o7iREEpwyj+FJufR6rZqbkNqchy/WN+FLGmDeWbPdTzs3/2D9nnwzb8Z0tsIXYQO4+dxi5ix7B6wMBOYg1YC3ZchodW1xP56hr0FiuPJxvqCP/hb/DJyjKZ51Tj1O30RdGXLyiUvaMBe7J4mkSYkZnPYMEvgoDBEfEcRzCcnZxdAJB9XxSvr7cx8u8GotvynZv3BwA+JwcGBo5+58JOArDfA27/I985Gyb8dKgAcOEITyopUHC47EKAbwl1uNP0gTEwBzZwPs7AHXgDfxAEwkAUiAfJYCKMPhOucwmYCmaAuaAElIFlYDVYDzaBrWAn2AMOgHpwDJwG58BlcBXcBPfh6ukCL0EveA/6EQQhITSEjugjJoglYo84I0zEFwlCIpBYJBlJRTIQESJFZiDzkDJkBbIe2YJUI/uRI8hp5CLShtxFOpBu5A3yGcVQVVQbNUKt0JEoE2Wh4Wg8OgHNQKegReh8dAm6Fq1Cd6N16Gn0MnoTbUdfon0YwFQwXcwUc8CYGBuLwlKwdEyCzcJKsXKsCqvFGuFzvo61Yz3YJ5yI03EG7gBXcCiegPPwKfgsfDG+Ht+J1+HN+HW8A+/FvxFoBEOCPcGLwCGMJWQQphJKCOWE7YTDhLNwL3UR3hOJRF2iNdED7sVkYhZxOnExcQNxL/EUsY3YSewjkUj6JHuSDymKxCXlk0pI60i7SSdJ10hdpI9kFbIJ2ZkcTE4hi8jF5HLyLvIJ8jXyM3I/RYNiSfGiRFH4lGmUpZRtlEbKFUoXpZ+qSbWm+lDjqVnUudS11FrqWeoD6lsVFRUzFU+VGBWhyhyVtSr7VC6odKh8UtVStVNlq45XlaouUd2hekr1rupbGo1mRfOnpdDyaUto1bQztEe0j2p0NUc1jhpfbbZahVqd2jW1V+oUdUt1lvpE9SL1cvWD6lfUezQoGlYabA2uxiyNCo0jGrc1+jTpmqM0ozRzNRdr7tK8qPlci6RlpRWkxdear7VV64xWJx2jm9PZdB59Hn0b/Sy9S5uoba3N0c7SLtPeo92q3aujpeOqk6hTqFOhc1ynXRfTtdLl6OboLtU9oHtL9/Mwo2GsYYJhi4bVDrs27IPecD1/PYFeqd5evZt6n/UZ+kH62frL9ev1HxrgBnYGMQZTDTYanDXoGa493Hs4b3jp8APD7xmihnaGsYbTDbcathj2GRkbhRiJjdYZnTHqMdY19jfOMl5lfMK424Ru4msiNFllctLkBUOHwWLkMNYymhm9poamoaZS0y2mrab9ZtZmCWbFZnvNHppTzZnm6earzJvMey1MLMZYzLCosbhnSbFkWmZarrE8b/nBytoqyWqBVb3Vc2s9a451kXWN9QMbmo2fzRSbKpsbtkRbpm227Qbbq3aonZtdpl2F3RV71N7dXmi/wb5tBGGE5wjRiKoRtx1UHVgOBQ41Dh2Ouo4RjsWO9Y6vRlqMTBm5fOT5kd+c3JxynLY53R+lNSpsVPGoxlFvnO2cec4VzjdcaC7BLrNdGlxeu9q7Clw3ut5xo7uNcVvg1uT21d3DXeJe697tYeGR6lHpcZupzYxmLmZe8CR4BnjO9jzm+cnL3Svf64DXX94O3tneu7yfj7YeLRi9bXSnj5kP12eLT7svwzfVd7Nvu5+pH9evyu+xv7k/33+7/zOWLSuLtZv1KsApQBJwOOAD24s9k30qEAsMCSwNbA3SCkoIWh/0KNgsOCO4Jrg3xC1kesipUEJoeOjy0NscIw6PU83pDfMImxnWHK4aHhe+PvxxhF2EJKJxDDombMzKMQ8iLSNFkfVRIIoTtTLqYbR19JToozHEmOiYipinsaNiZ8Sej6PHTYrbFfc+PiB+afz9BJsEaUJTonri+MTqxA9JgUkrktrHjhw7c+zlZINkYXJDCiklMWV7St+4oHGrx3WNdxtfMv7WBOsJhRMuTjSYmDPx+CT1SdxJB1MJqUmpu1K/cKO4Vdy+NE5aZVovj81bw3vJ9+ev4ncLfAQrBM/SfdJXpD/P8MlYmdGd6ZdZntkjZAvXC19nhWZtyvqQHZW9I3sgJylnby45NzX3iEhLlC1qnmw8uXBym9heXCJun+I1ZfWUXkm4ZHsekjchryFfG/7It0htpL9IOwp8CyoKPk5NnHqwULNQVNgyzW7aomnPioKLfpuOT+dNb5phOmPujI6ZrJlbZiGz0mY1zTafPX9215yQOTvnUudmz/292Kl4RfG7eUnzGucbzZ8zv/OXkF9qStRKJCW3F3gv2LQQXyhc2LrIZdG6Rd9K+aWXypzKysu+LOYtvvTrqF/X/jqwJH1J61L3pRuXEZeJlt1a7rd85wrNFUUrOleOWVm3irGqdNW71ZNWXyx3Ld+0hrpGuqZ9bcTahnUW65at+7I+c/3NioCKvZWGlYsqP2zgb7i20X9j7SajTWWbPm8Wbr6zJWRLXZVVVflW4taCrU+3JW47/xvzt+rtBtvLtn/dIdrRvjN2Z3O1R3X1LsNdS2vQGmlN9+7xu6/uCdzTUOtQu2Wv7t6yfWCfdN+L/an7bx0IP9B0kHmw9pDlocrD9MOldUjdtLre+sz69obkhrYjYUeaGr0bDx91PLrjmOmxiuM6x5eeoJ6Yf2LgZNHJvlPiUz2nM053Nk1qun9m7JkbzTHNrWfDz144F3zuzHnW+ZMXfC4cu+h18cgl5qX6y+6X61rcWg7/7vb74Vb31rorHlcarnpebWwb3Xbimt+109cDr5+7wblx+WbkzbZbCbfu3B5/u/0O/87zuzl3X98ruNd/f84DwoPShxoPyx8ZPqr6w/aPve3u7cc7AjtaHsc9vt/J63z5JO/Jl675T2lPy5+ZPKt+7vz8WHdw99UX4150vRS/7O8p+VPzz8pXNq8O/eX/V0vv2N6u15LXA28Wv9V/u+Od67umvui+R+9z3/d/KP2o/3HnJ+an85+TPj/rn/qF9GXtV9uvjd/Cvz0YyB0YEHMlXPmvAAYrmp4OwJsdANCSAaDD8xl1nOL8Jy+I4swqR+A/YcUZUV7cAaiF/+8xPfDv5jYA+7bB4xfUVx8PQDQNgHhPgLq4DNXBs5r8XCkrRHgO2Bz5NS03Dfybojhz/hD3zy2QqbqCn9t/Ae5cfEE5Hk+sAAAAbGVYSWZNTQAqAAAACAAEARoABQAAAAEAAAA+ARsABQAAAAEAAABGASgAAwAAAAEAAgAAh2kABAAAAAEAAABOAAAAAAAAAJAAAAABAAAAkAAAAAEAAqACAAQAAAABAAAAcKADAAQAAAABAAAAZAAAAAAhyIn1AAAACXBIWXMAABYlAAAWJQFJUiTwAAADjUlEQVR4Ae2czWoTURTHz51JQmxJrSDFnYgi+ARufQafwGfwZQR34kZB8AncCS50I7gptVZE/OgiVPuVzMcd762Q6MKY0PxPcm7+A4G0Mznnf3+/nExmkXFN2ISbWQKZ2eQMfkaAAo2/ESiQAo0TMB6fE0iBxgkYj88JpEDjBIzH5wRSoHECxuNzAinQOAHj8TmBFGicgPH4nEAKNE7AeHxOoHGBLWR+f/JVys/Ppfz+Upr6FNlqVDvrbErn6l1pbd0R1+6N/p/qE+gEVv1XqvKiJF8cyHD3sVT91yL1MFVvo3VBBTblodrkjVYUnjS+lGLvqdSHO/GvP3cl9xwqcJG0/GBfik/PJL6JUt6SFRilVf23Un57ET5KB8k6TFpgtFbsPZHq53Y4OVZJSkxeYOMLKXYeih/uB4HpnQ+TFxjHrj75IoPtB+KPPgaHdfxXMhv0OnCZKNUH7+T4zX1xzk2I9fc+52Z9f/9+fda7Jp3r9yTfuDWh13x2zZpwPl0XWCX+kuDfDx/2jR8+nDdne5Th+FKqH+9l+OGRyipXTqAKVfHiT+M5F79RIJ4xtAMFQvHii1MgnjG0AwVC8eKLYy8jzr6yZ//56o5f5EI6TLxcmV8iqEDX6kje25S8uyYy8zXV/BapXampCvF1rtIWKjDrrK2cvGjNtdph3RsqArHnwDh1KzR5Y2MunDZ0JhArcLwiPgMRoEAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yYIHxJ/g6PzXWAjZdn3DTO9eZ7tBzHgUVmHW3xHWvhIirJdG11iVbv3FONdO9HHqXCnfhpuSXa2mOd8N9OovpEqVwVPuS5Bdvq6zEhVsvpncbWxV0y9EE+hG6HEtMOwUFGvdLgRRonIDx+JxACjROwHh8TiAFGidgPD4nkAKNEzAenxNIgcYJGI/PCaRA4wSMx+cEUqBxAsbjcwIp0DgB4/E5gRRonIDx+JxACjROwHh8TiAFGidgPD4n0LjAX3BSxpPyLY/MAAAAAElFTkSuQmCC"})])])],-1)),GP={class:"name"},HP={class:"action"},WP=["onClick"],$P=hh(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M18.9763 4.54325C19.1776 4.35138 19.4462 4.24614 19.7243 4.25011C20.0025 4.25408 20.2679 4.36696 20.4637 4.5645L26.2544 10.4051C26.3566 10.5081 26.4367 10.6309 26.4897 10.7661C26.5426 10.9012 26.5673 11.0458 26.5622 11.1908C26.5571 11.3359 26.5224 11.4783 26.4601 11.6095C26.3979 11.7406 26.3094 11.8575 26.2002 11.9531L12.2474 24.174C12.048 24.349 11.7902 24.443 11.5249 24.4375L6.35269 24.327C6.07478 24.3212 5.81023 24.2066 5.61577 24.008C5.42131 23.8094 5.31244 23.5425 5.3125 23.2645V18.0115C5.31247 17.8677 5.34165 17.7253 5.39827 17.5931C5.45489 17.4609 5.53776 17.3415 5.64187 17.2423L18.9763 4.54325ZM20.3862 21.6261L28.3496 21.7812C28.4892 21.784 28.6268 21.8141 28.7547 21.8701C28.8825 21.926 28.9981 22.0065 29.0949 22.1071C29.1916 22.2077 29.2676 22.3263 29.3185 22.4563C29.3693 22.5862 29.3941 22.7249 29.3914 22.8645C29.3887 23.004 29.3585 23.1416 29.3026 23.2695C29.2467 23.3974 29.1661 23.513 29.0656 23.6097C28.965 23.7064 28.8463 23.7824 28.7164 23.8333C28.5864 23.8842 28.4477 23.909 28.3082 23.9062L20.3448 23.7511C20.2052 23.7483 20.0676 23.7181 19.9398 23.6621C19.8119 23.6061 19.6964 23.5255 19.5997 23.4249C19.503 23.3243 19.4271 23.2056 19.3762 23.0756C19.3254 22.9456 19.3007 22.8069 19.3035 22.6674C19.3063 22.5278 19.3365 22.3902 19.3925 22.2624C19.4485 22.1346 19.5291 22.019 19.6297 21.9223C19.7304 21.8256 19.8491 21.7497 19.979 21.6989C20.109 21.6481 20.2477 21.6233 20.3872 21.6261H20.3862ZM19.6881 6.8L7.4375 18.4662V22.2243L11.1562 22.304L23.9498 11.0989L19.6881 6.8ZM28.2976 26.9386C28.5794 26.9365 28.8504 27.0464 29.0512 27.2442C29.2519 27.442 29.3659 27.7114 29.368 27.9932C29.3701 28.275 29.2602 28.546 29.0625 28.7468C28.8647 28.9475 28.5953 29.0615 28.3135 29.0636L7.446 29.2188C7.16421 29.2209 6.89312 29.1109 6.69237 28.9132C6.49161 28.7154 6.37764 28.446 6.37553 28.1642C6.37342 27.8824 6.48333 27.6113 6.6811 27.4106C6.87886 27.2098 7.14827 27.0959 7.43006 27.0938L28.2976 26.9386Z",fill:"black","fill-opacity":"0.8"})],-1)),UP=[$P],YP=["onClick"],ZP=hh(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M12.7331 30.5258C11.8785 30.5264 11.0527 30.2169 10.4091 29.6546C9.76556 29.0923 9.34796 28.3155 9.2339 27.4686L6.27084 10.719C6.24075 10.5628 6.24576 10.4019 6.28552 10.248C6.32529 10.094 6.3988 9.95078 6.50075 9.82873C6.60269 9.70667 6.7305 9.60882 6.87493 9.54227C7.01936 9.47571 7.17679 9.44212 7.3358 9.44392H26.9326C27.0917 9.44369 27.2489 9.47864 27.3929 9.54627C27.5369 9.61391 27.6642 9.71254 27.7657 9.83513C27.8688 9.9554 27.9437 10.0971 27.9851 10.25C28.0264 10.4029 28.0331 10.5631 28.0048 10.719L25.1069 27.512C24.9898 28.3532 24.5727 29.1237 23.9323 29.6815C23.2919 30.2394 22.4715 30.5469 21.6222 30.5476L12.7331 30.5258ZM8.63259 11.6101L11.3783 27.1208C11.4153 27.4559 11.5734 27.766 11.8229 27.9927C12.0723 28.2195 12.396 28.3474 12.7331 28.3524H21.5788C21.9155 28.3488 22.2391 28.2212 22.4877 27.994C22.7363 27.7668 22.8924 27.4559 22.9263 27.1208L25.672 11.5956L8.63259 11.6101Z",fill:"black","fill-opacity":"0.8"}),N("path",{d:"M14.1239 26.2153C13.8356 26.2153 13.5592 26.1008 13.3554 25.897C13.1517 25.6932 13.0372 25.4168 13.0372 25.1286C13.0372 24.8404 13.1517 24.564 13.3554 24.3602C13.5592 24.1564 13.8356 24.0419 14.1239 24.0419H19.9196C20.2078 24.0419 20.4842 24.1564 20.688 24.3602C20.8918 24.564 21.0063 24.8404 21.0063 25.1286C21.0063 25.4168 20.8918 25.6932 20.688 25.897C20.4842 26.1008 20.2078 26.2153 19.9196 26.2153H14.1239ZM6.70535 8.12542C6.41714 8.12542 6.14073 8.01093 5.93694 7.80714C5.73314 7.60334 5.61865 7.32694 5.61865 7.03873C5.61865 6.75052 5.73314 6.47411 5.93694 6.27032C6.14073 6.06652 6.41714 5.95203 6.70535 5.95203H27.2656C27.5538 5.95203 27.8303 6.06652 28.034 6.27032C28.2378 6.47411 28.3523 6.75052 28.3523 7.03873C28.3523 7.32694 28.2378 7.60334 28.034 7.80714C27.8303 8.01093 27.5538 8.12542 27.2656 8.12542H6.6981H6.70535ZM15.7539 5.64776C15.4657 5.64776 15.1893 5.53327 14.9855 5.32947C14.7817 5.12568 14.6672 4.84927 14.6672 4.56106C14.6672 4.27285 14.7817 3.99645 14.9855 3.79265C15.1893 3.58886 15.4657 3.47437 15.7539 3.47437H17.652C17.9402 3.47437 18.2166 3.58886 18.4204 3.79265C18.6242 3.99645 18.7387 4.27285 18.7387 4.56106C18.7387 4.84927 18.6242 5.12568 18.4204 5.32947C18.2166 5.53327 17.9402 5.64776 17.652 5.64776H15.7539Z",fill:"black","fill-opacity":"0.8"})],-1)),XP=[ZP],qP=fn({__name:"index",props:{close:Function},setup(r){const e=r,t=Ob(!1),n=Gs({title:"\u5171\u4EAB\u6587\u4EF6",services:[],step:0,mode:"edit",users:[],shareServiceCreateRequestParams:{name:"",path:"",webdav:!1,samba:!0,users:[]}}),i=()=>{e.close&&e.close()},o=()=>{n.step=1,n.mode="create"},s=g=>ra(this,null,function*(){confirm("\u786E\u5B9A\u5220\u9664\uFF1F")&&(yield Fr.Share.Service.DELETE(g)).data.success===0&&d()}),l=()=>{tP.Open({onOk:g=>{console.log("arr1111",g);const y=g.split("/");n.shareServiceCreateRequestParams.path=g,console.log("arr",y),n.shareServiceCreateRequestParams.name=y[y.length-1]}})},u=()=>{n.step=2,n.title="\u786E\u8BA4\u7528\u6237\u6743\u9650"},f=g=>{if(n.shareServiceCreateRequestParams.users=g,n.shareServiceCreateRequestParams.users.length===0)return ar.Message("\u8BF7\u9009\u62E9\u5171\u4EAB\u7528\u6237");n.step=3,n.title=void 0},h=()=>ra(this,null,function*(){var m,_;const g=ar.Loading("\u4FDD\u5B58\u4E2D...");n.users.forEach(S=>{(S.ro||S.rw)&&n.shareServiceCreateRequestParams.users.push(S)});let y;n.mode==="create"?y=yield Fr.Share.Service.ADD(n.shareServiceCreateRequestParams):y=yield Fr.Share.Service.UPDATE(n.shareServiceCreateRequestParams),y.data.success===0?(g.Close(),ar.Message("\u4FDD\u5B58\u6210\u529F"),c()):((m=y.data)!=null&&m.error&&ar.Message((_=y.data)==null?void 0:_.error),g.Close())}),v=()=>{n.step=n.step-1,n.title="\u5171\u4EAB\u6587\u4EF6",n.step===0&&c()},c=()=>{n.step=0,n.title="\u5171\u4EAB\u6587\u4EF6",n.shareServiceCreateRequestParams.path="",n.shareServiceCreateRequestParams.name="",n.shareServiceCreateRequestParams.samba=!1,n.shareServiceCreateRequestParams.webdav=!1,n.shareServiceCreateRequestParams.users=[],d()},d=()=>ra(this,null,function*(){try{t.value=!0;const g=ar.Loading("\u52A0\u8F7D\u4E2D..."),y=yield Fr.Share.Service.GET();if(y!=null&&y.data){const{result:m,error:_}=y.data;if(_)throw _;m&&(n.services=m.services)}g.Close(),t.value=!1}catch(g){console.log(g)}}),p=g=>{n.step=1,n.mode="edit",console.log("serviceservice",g),n.shareServiceCreateRequestParams.name=g.name,n.shareServiceCreateRequestParams.path=g.path,n.shareServiceCreateRequestParams.samba=g.samba,n.shareServiceCreateRequestParams.webdav=g.webdav,n.shareServiceCreateRequestParams.users=g.users};return d(),(g,y)=>(_t(),zr(vg,{onHandleClose:i,title:n.title,width:"572px"},{default:hg(()=>[n.step===0?(_t(),It("div",BP,[n.services.length===0&&t.value===!1?(_t(),It("div",NP,[N("div",null,[VP,N("div",{class:"btns"},[N("span",{onClick:o},"\u7ACB\u5373\u6DFB\u52A0")])])])):Ee("",!0),n.services.length!==0?(_t(),It("div",zP,[N("button",{onClick:o},"\u65B0\u589E"),(_t(!0),It(lr,null,pa(n.services,(m,_)=>(_t(),It("div",{key:_},[N("div",null,[FP,N("div",GP,[N("span",null,Xt(m.name),1),N("span",null,Xt(m.path),1),N("div",null,[N("span",null,"\u5171\u4EAB\u65B9\u5F0F: "+Xt(`${m.samba?"Samba":""} ${m.webdav?"WebDav":""}`),1),N("span",null,[bd("\u5171\u4EAB\u7528\u6237:"),(_t(!0),It(lr,null,pa(m.users.filter(S=>S.ro||S.rw),(S,w)=>(_t(),It("span",{key:w},Xt(`${S.userName}(${S.ro?"\u53EA\u8BFB":"\u8BFB\u5199"}) `),1))),128))])])]),N("div",HP,[N("span",{onClick:S=>p(m)},UP,8,WP),N("span",{onClick:S=>s({name:m.name})},XP,8,YP)])])]))),128))])):Ee("",!0)])):Ee("",!0),n.step===1?(_t(),zr(pP,{key:1,onOnNext:u,onOnCancel:v,onOpenDisk:l,context:n.shareServiceCreateRequestParams},null,8,["context"])):Ee("",!0),n.step===2?(_t(),zr(OP,{key:2,context:n.shareServiceCreateRequestParams,onOnCancel:v,onOnOk:f},null,8,["context"])):Ee("",!0),n.step===3?(_t(),zr(CP,{key:3,mode:n.mode,context:n.shareServiceCreateRequestParams,onOnCancel:v,onOnOk:h},null,8,["mode","context"])):Ee("",!0)]),_:1},8,["title"]))}});var KP=hn(qP,[["__scopeId","data-v-9c961df4"]]);class JP extends cg{Open(){this.openWindow(KP)}}const PK=new JP;const _l=r=>(Si("data-v-4a2e9fae"),r=r(),xi(),r),QP={key:0,class:"no-data"},jP=_l(()=>N("span",null,"\u6682\u65F6\u8FD8\u6CA1\u6709\u4EFB\u4F55\u5171\u4EAB\u7528\u6237",-1)),tR={class:"btns"},eR={key:1,class:"list"},rR={class:"page-table"},aR=_l(()=>N("thead",null,[N("tr",null,[N("th",null,"\u59D3\u540D"),N("th",null,"\u5BC6\u7801"),N("th",null,"\u64CD\u4F5C")])],-1)),nR=_l(()=>N("th",null,"******",-1)),iR={class:"action"},oR=["onClick"],sR=["onClick"],lR=_l(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M18.9763 4.54325C19.1776 4.35138 19.4462 4.24614 19.7243 4.25011C20.0025 4.25408 20.2679 4.36696 20.4637 4.5645L26.2544 10.4051C26.3566 10.5081 26.4367 10.6309 26.4897 10.7661C26.5426 10.9012 26.5673 11.0458 26.5622 11.1908C26.5571 11.3359 26.5224 11.4783 26.4601 11.6095C26.3979 11.7406 26.3094 11.8575 26.2002 11.9531L12.2474 24.174C12.048 24.349 11.7902 24.443 11.5249 24.4375L6.35269 24.327C6.07478 24.3212 5.81023 24.2066 5.61577 24.008C5.42131 23.8094 5.31244 23.5425 5.3125 23.2645V18.0115C5.31247 17.8677 5.34165 17.7253 5.39827 17.5931C5.45489 17.4609 5.53776 17.3415 5.64187 17.2423L18.9763 4.54325ZM20.3862 21.6261L28.3496 21.7812C28.4892 21.784 28.6268 21.8141 28.7547 21.8701C28.8825 21.926 28.9981 22.0065 29.0949 22.1071C29.1916 22.2077 29.2676 22.3263 29.3185 22.4563C29.3693 22.5862 29.3941 22.7249 29.3914 22.8645C29.3887 23.004 29.3585 23.1416 29.3026 23.2695C29.2467 23.3974 29.1661 23.513 29.0656 23.6097C28.965 23.7064 28.8463 23.7824 28.7164 23.8333C28.5864 23.8842 28.4477 23.909 28.3082 23.9062L20.3448 23.7511C20.2052 23.7483 20.0676 23.7181 19.9398 23.6621C19.8119 23.6061 19.6964 23.5255 19.5997 23.4249C19.503 23.3243 19.4271 23.2056 19.3762 23.0756C19.3254 22.9456 19.3007 22.8069 19.3035 22.6674C19.3063 22.5278 19.3365 22.3902 19.3925 22.2624C19.4485 22.1346 19.5291 22.019 19.6297 21.9223C19.7304 21.8256 19.8491 21.7497 19.979 21.6989C20.109 21.6481 20.2477 21.6233 20.3872 21.6261H20.3862ZM19.6881 6.8L7.4375 18.4662V22.2243L11.1562 22.304L23.9498 11.0989L19.6881 6.8ZM28.2976 26.9386C28.5794 26.9365 28.8504 27.0464 29.0512 27.2442C29.2519 27.442 29.3659 27.7114 29.368 27.9932C29.3701 28.275 29.2602 28.546 29.0625 28.7468C28.8647 28.9475 28.5953 29.0615 28.3135 29.0636L7.446 29.2188C7.16421 29.2209 6.89312 29.1109 6.69237 28.9132C6.49161 28.7154 6.37764 28.446 6.37553 28.1642C6.37342 27.8824 6.48333 27.6113 6.6811 27.4106C6.87886 27.2098 7.14827 27.0959 7.43006 27.0938L28.2976 26.9386Z",fill:"black","fill-opacity":"0.8"})],-1)),uR=[lR],fR=["onClick"],hR=_l(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M12.7331 30.5258C11.8785 30.5264 11.0527 30.2169 10.4091 29.6546C9.76556 29.0923 9.34796 28.3155 9.2339 27.4686L6.27084 10.719C6.24075 10.5628 6.24576 10.4019 6.28552 10.248C6.32529 10.094 6.3988 9.95078 6.50075 9.82873C6.60269 9.70667 6.7305 9.60882 6.87493 9.54227C7.01936 9.47571 7.17679 9.44212 7.3358 9.44392H26.9326C27.0917 9.44369 27.2489 9.47864 27.3929 9.54627C27.5369 9.61391 27.6642 9.71254 27.7657 9.83513C27.8688 9.9554 27.9437 10.0971 27.9851 10.25C28.0264 10.4029 28.0331 10.5631 28.0048 10.719L25.1069 27.512C24.9898 28.3532 24.5727 29.1237 23.9323 29.6815C23.2919 30.2394 22.4715 30.5469 21.6222 30.5476L12.7331 30.5258ZM8.63259 11.6101L11.3783 27.1208C11.4153 27.4559 11.5734 27.766 11.8229 27.9927C12.0723 28.2195 12.396 28.3474 12.7331 28.3524H21.5788C21.9155 28.3488 22.2391 28.2212 22.4877 27.994C22.7363 27.7668 22.8924 27.4559 22.9263 27.1208L25.672 11.5956L8.63259 11.6101Z",fill:"black","fill-opacity":"0.8"}),N("path",{d:"M14.1239 26.2153C13.8356 26.2153 13.5592 26.1008 13.3554 25.897C13.1517 25.6932 13.0372 25.4168 13.0372 25.1286C13.0372 24.8404 13.1517 24.564 13.3554 24.3602C13.5592 24.1564 13.8356 24.0419 14.1239 24.0419H19.9196C20.2078 24.0419 20.4842 24.1564 20.688 24.3602C20.8918 24.564 21.0063 24.8404 21.0063 25.1286C21.0063 25.4168 20.8918 25.6932 20.688 25.897C20.4842 26.1008 20.2078 26.2153 19.9196 26.2153H14.1239ZM6.70535 8.12542C6.41714 8.12542 6.14073 8.01093 5.93694 7.80714C5.73314 7.60334 5.61865 7.32694 5.61865 7.03873C5.61865 6.75052 5.73314 6.47411 5.93694 6.27032C6.14073 6.06652 6.41714 5.95203 6.70535 5.95203H27.2656C27.5538 5.95203 27.8303 6.06652 28.034 6.27032C28.2378 6.47411 28.3523 6.75052 28.3523 7.03873C28.3523 7.32694 28.2378 7.60334 28.034 7.80714C27.8303 8.01093 27.5538 8.12542 27.2656 8.12542H6.6981H6.70535ZM15.7539 5.64776C15.4657 5.64776 15.1893 5.53327 14.9855 5.32947C14.7817 5.12568 14.6672 4.84927 14.6672 4.56106C14.6672 4.27285 14.7817 3.99645 14.9855 3.79265C15.1893 3.58886 15.4657 3.47437 15.7539 3.47437H17.652C17.9402 3.47437 18.2166 3.58886 18.4204 3.79265C18.6242 3.99645 18.7387 4.27285 18.7387 4.56106C18.7387 4.84927 18.6242 5.12568 18.4204 5.32947C18.2166 5.53327 17.9402 5.64776 17.652 5.64776H15.7539Z",fill:"black","fill-opacity":"0.8"})],-1)),vR=[hR],cR=fn({__name:"index",props:{close:Function},setup(r){const e=r,t=Gs({loading:!1,users:[]}),a=()=>{e.close&&e.close()};function n(l=!0){Cd({callback:()=>{i()}})}const i=()=>ra(this,null,function*(){t.loading=!0;const l=ar.Loading("\u52A0\u8F7D\u4E2D...");try{const u=yield Fr.Share.User.GET();if(u!=null&&u.data){const{result:f}=u.data;f&&(t.users=f.users)}}catch(u){console.log(u)}t.loading=!1,l.Close()}),o=l=>{console.log("editUser",l),Cd({user:l,callback:()=>{i()}})},s=l=>ra(this,null,function*(){confirm("\u786E\u5B9A\u5220\u9664\uFF1F")&&(yield Fr.Share.User.DELETE(l)).data.success===0&&i()});return i(),(l,u)=>(_t(),zr(vg,{onHandleClose:a,title:"\u5171\u4EAB\u7528\u6237",width:"612px"},{default:hg(()=>[t.loading===!1&&t.users.length===0?(_t(),It("div",QP,[N("div",null,[jP,N("div",tR,[N("span",{onClick:u[0]||(u[0]=()=>n())},"\u7ACB\u5373\u6DFB\u52A0")])])])):Ee("",!0),t.loading===!1&&t.users.length!==0?(_t(),It("div",eR,[N("button",{onClick:u[1]||(u[1]=()=>n())},"\u65B0\u589E"),N("table",rR,[aR,N("tbody",null,[(_t(!0),It(lr,null,pa(t.users,f=>(_t(),It("tr",null,[N("th",null,Xt(f.userName),1),nR,N("th",iR,[N("span",{onClick:h=>df(ar).Message(f.password)},"\u67E5\u770B\u5BC6\u7801",8,oR),N("span",{onClick:h=>o(f)},uR,8,sR),N("span",{onClick:h=>s(f)},vR,8,fR)])]))),256))])])])):Ee("",!0)]),_:1}))}});var dR=hn(cR,[["__scopeId","data-v-4a2e9fae"]]);class pR extends cg{Open(){this.openWindow(dR)}}const RK=new pR;/*! ***************************************************************************** +var JL=Object.defineProperty,QL=Object.defineProperties;var jL=Object.getOwnPropertyDescriptors;var Am=Object.getOwnPropertySymbols;var tI=Object.prototype.hasOwnProperty,eI=Object.prototype.propertyIsEnumerable;var Dm=(r,e,t)=>e in r?JL(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Mm=(r,e)=>{for(var t in e||(e={}))tI.call(e,t)&&Dm(r,t,e[t]);if(Am)for(var t of Am(e))eI.call(e,t)&&Dm(r,t,e[t]);return r},Lm=(r,e)=>QL(r,jL(e));var ra=(r,e,t)=>new Promise((a,n)=>{var i=l=>{try{s(t.next(l))}catch(u){n(u)}},o=l=>{try{s(t.throw(l))}catch(u){n(u)}},s=l=>l.done?a(l.value):Promise.resolve(l.value).then(i,o);s((t=t.apply(r,e)).next())});import{d as fn,r as rI,o as _t,c as It,E as pa,F as lr,a as N,g as df,l as Xt,$ as wd,e as zr,m as Ee,_ as hn,p as Si,q as xi,x as Uu,a0 as aI,a1 as nI,j as Gs,s as Ob,w as hg,V as vg,T as ar,C as Fr,W as cg,A as iI,a2 as Im,z as bd,a3 as Cd}from"./index.js?v=bc5d78ec";var oI="/luci-static/istorex/disk.png?v=14325490",sI="/luci-static/istorex/partition.png?v=d1e1a8fb",lI="/luci-static/istorex/folder.png?v=38e4700a";const Bb=r=>(Si("data-v-8009221e"),r=r(),xi(),r),uI=["onClick"],fI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hI=Bb(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),vI=[hI],cI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dI=Bb(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),pI=[dI],gI=["src"],yI={key:1,class:"empty"},mI=fn({__name:"folder-tree",props:{currPath:{type:Object,required:!0},folders:{type:Array,required:!0},onDisk:{type:Function,required:!0},context:{type:Object,required:!0}},setup(r){const e=r,t=(a,n)=>{a.folder&&(a.folder.openChildren=!a.folder.openChildren),e.onDisk(a,n)};return(a,n)=>{const i=rI("folder-tree",!0);return r.folders.length?(_t(!0),It(lr,{key:0},pa(r.folders,(o,s)=>(_t(),It("div",{key:s,class:"folder-body"},[N("div",{class:"content",onClick:l=>t({disk:r.context.disk,mount:r.context.mount,folder:o},"folder"),style:wd(o.rootPath&&r.currPath.join().includes(o.rootPath)?"background-color:#ecf5ff;":"")},[o.openChildren?(_t(),It("svg",fI,vI)):(_t(),It("svg",cI,pI)),N("img",{src:df(lI)},null,8,gI),N("span",null,Xt(o.name),1)],12,uI),o.openChildren?(_t(),It(lr,{key:0},[o.childrens?(_t(),zr(i,{key:0,currPath:r.currPath,"on-disk":r.onDisk,folders:o.childrens,context:{disk:r.context.disk,mount:r.context.mount}},null,8,["currPath","on-disk","folders","context"])):Ee("",!0)],64)):Ee("",!0)]))),128)):(_t(),It("div",yI,"\u7A7A\u76EE\u5F55"))}}});var _I=hn(mI,[["__scopeId","data-v-8009221e"]]);const yl=r=>(Si("data-v-2ec06138"),r=r(),xi(),r),SI={class:"disk-item"},xI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wI=yl(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),bI=[wI],CI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TI=yl(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),AI=[TI],DI={class:"disk-item_icon"},MI=["src"],LI={class:"disk-item_f"},II={class:"disk-item_venderModel"},PI={class:"disk-item_used"},RI={key:0,class:"tag",style:{color:"#3a9a50",background:"rgba(97, 216, 4, 0.2)"}},EI=yl(()=>N("div",{class:"auto"},null,-1)),kI={class:"disk-item-r"},OI={class:"disk-children"},BI=["onClick"],NI={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},VI=yl(()=>N("path",{d:"M14.4 4.80005L8.00002 11.2L1.60002 4.80005",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),zI=[VI],FI={key:1,width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GI=yl(()=>N("path",{d:"M1.80005 1.59998L8.20005 7.99998L1.80005 14.4",stroke:"black","stroke-opacity":"0.83","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),HI=[GI],WI={class:"disk-item_icon"},$I=["src"],UI={class:"disk-children-item_f"},YI=["onClick"],ZI=fn({__name:"disk-item",props:{currPath:{type:Object,required:!0},disk:{type:Object,required:!0},onRefresh:{type:Function,required:!0},onDisk:{type:Function,required:!0}},setup(r){const e=r,t=(i,o)=>{o==="disk"&&i.disk&&(i.disk.openChildren=!i.disk.openChildren),o==="mount"&&i.mount&&(i.mount.openChildren=!i.mount.openChildren),e.onDisk({disk:i.disk,mount:i.mount,folder:null},o)},a=i=>{nI({step:"format",data:{path:i.path},callback:()=>{e.onRefresh()}})},n=()=>{};return(i,o)=>(_t(),It("ul",SI,[N("li",{class:"disk-info",onClick:o[0]||(o[0]=s=>t({disk:r.disk,mount:null},"disk")),style:wd(r.disk.path&&r.currPath.includes(r.disk.path)?"background-color:#ecf5ff;":"")},[r.disk.openChildren?(_t(),It("svg",xI,bI)):(_t(),It("svg",CI,AI)),N("div",DI,[N("img",{src:df(oI)},null,8,MI)]),N("div",LI,[N("div",null,[N("div",II,Xt(r.disk.venderModel),1),N("div",PI,Xt(r.disk.used)+"/"+Xt(r.disk.size),1)]),r.disk.isSystemRoot?(_t(),It("span",RI,"Root\u76D8")):Ee("",!0)]),EI,N("div",kI,Xt(r.disk.path),1)],4),Uu(N("div",OI,[(_t(!0),It(lr,null,pa(r.disk.childrens,s=>(_t(),It("div",null,[N("li",{class:"disk-children-item",onClick:l=>t({disk:r.disk,mount:s},"mount"),style:wd(s.mountPoint&&r.currPath.includes(s.mountPoint)?"background-color:#ecf5ff;":"")},[s.openChildren?(_t(),It("svg",NI,zI)):(_t(),It("svg",FI,HI)),N("div",WI,[N("img",{src:df(sI)},null,8,$I)]),N("div",UI,[N("div",null,[N("span",null,Xt(s.name)+"\u3010"+Xt(s.filesystem)+"\u3011"+Xt(s.mountPoint),1),N("div",null,Xt(r.disk.used)+"/"+Xt(r.disk.size),1)]),s.filesystem!=="No FileSystem"&&!s.mountPoint?(_t(),It("span",{key:0,onClick:n,class:"tag",style:{color:"#4b6fed",background:"#e3eaff"}}," \u9700\u8981\u6302\u8F7D ")):Ee("",!0),s.filesystem==="No FileSystem"&&!s.mountPoint?(_t(),It("span",{key:1,onClick:()=>a(s),class:"tag",style:{color:"#df493f",background:"#ffe3e2"}}," \u9700\u8981\u683C\u5F0F\u5316 ",8,YI)):Ee("",!0)])],12,BI),s.openChildren?(_t(),zr(_I,{key:0,currPath:r.currPath,context:{disk:r.disk,mount:s},folders:s.childrens?s.childrens:[],"on-disk":r.onDisk},null,8,["currPath","context","folders","on-disk"])):Ee("",!0)]))),256))],512),[[aI,r.disk.openChildren]])]))}});var Pm=hn(ZI,[["__scopeId","data-v-2ec06138"]]);const XI={class:"content"},qI={class:"header"},KI={class:"disk-list"},JI=fn({__name:"index",props:{close:Function,onOk:Function},setup(r){const e=r,t=()=>{e.close&&e.close()},a=()=>{e.onOk&&e.onOk(o.value),e.close&&e.close()},n=Gs({disks:[],raids:[]}),i=Gs([]),o=Ob(""),s=(u,f)=>ra(this,null,function*(){var c,d,p,g,y,m,_,S,w,x,b,C,T;const h={path:"",order:"date",orderBy:"asc",filter:"dir"};console.log("locationType",f),f==="mount"&&((c=u.mount)==null?void 0:c.mountPoint)&&(h.path="/local/root"+((d=u.mount)==null?void 0:d.mountPoint),o.value=(p=u.mount)==null?void 0:p.mountPoint,i[2]=""),f==="folder"&&((g=u.folder)==null?void 0:g.rootPath)&&(h.path="/local"+u.folder.rootPath,o.value=u.folder.rootPath),(y=u.disk)!=null&&y.path&&(i[0]=(m=u.disk)==null?void 0:m.path),(_=u.mount)!=null&&_.mountPoint&&(i[1]=(S=u.mount)==null?void 0:S.mountPoint),(w=u.folder)!=null&&w.rootPath&&(i[2]=(x=u.folder)==null?void 0:x.rootPath);const v=yield Fr.Linkease.File.List.POST(h);(b=v.data.result)!=null&&b.entries&&(f==="mount"&&u.mount&&(u.mount.childrens=(C=v.data.result)==null?void 0:C.entries),f==="folder"&&u.folder&&(u.folder.childrens=(T=v.data.result)==null?void 0:T.entries))}),l=()=>ra(this,null,function*(){const u=ar.Loading("\u52A0\u8F7D\u4E2D..."),f=yield Promise.all([Fr.Nas.Disk.Status.GET(),Fr.Raid.List.GET()]);u.Close();try{if(f[0]){const h=f[0];h!=null&&h.data.result&&(n.disks=(h==null?void 0:h.data.result.disks)||[])}if(f[1]){const h=f[1];h.data.result&&(n.raids=h.data.result.disks||[])}}catch(h){ar.Warning(h)}});return l(),(u,f)=>(_t(),zr(vg,{onHandleClose:t,title:"\u9009\u62E9\u4F4D\u7F6E",width:"572px"},{default:hg(()=>[N("div",XI,[N("div",qI,[N("div",null,[N("span",null,Xt(`\u76EE\u7684\u5730\uFF1A${o.value?o.value:"\u8BF7\u9009\u62E9"}`),1)]),N("div",{onClick:l},"\u5237\u65B0\u76EE\u5F55")]),N("div",KI,[(_t(!0),It(lr,null,pa(n.disks,h=>(_t(),zr(Pm,{currPath:i,disk:h,onDisk:s,onRefresh:l},null,8,["currPath","disk"]))),256)),(_t(!0),It(lr,null,pa(n.raids,h=>(_t(),zr(Pm,{currPath:i,disk:h,onDisk:s,onRefresh:l},null,8,["currPath","disk"]))),256))])]),N("div",{class:"dialog-footer"},[N("div",null,[N("button",{onClick:t},"\u53D6\u6D88"),N("button",{onClick:a},"\u786E\u5B9A")])])]),_:1}))}});var QI=hn(JI,[["__scopeId","data-v-0763aef7"]]);class jI extends cg{Open(e){this.openWindow(QI,e)}}const tP=new jI;const dg=r=>(Si("data-v-e79621ae"),r=r(),xi(),r),eP={class:"content"},rP={class:"form-container1"},aP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u9009\u62E9\u4F4D\u7F6E")],-1)),nP={class:"label-value"},iP=["value"],oP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u5171\u4EAB\u540D\u79F0 ")],-1)),sP={class:"label-value"},lP=dg(()=>N("div",{class:"label-name"},[N("span",null,"\u5171\u4EAB\u65B9\u5F0F")],-1)),uP={class:"label-value"},fP={class:"label-flex"},hP={class:"label-radio"},vP={class:"label-radio"},cP={class:"dialog-footer"},dP=fn({__name:"main-form",props:{context:{type:Object,required:!0}},emits:["onNext"],setup(r,{emit:e}){const t=r;console.log("form",t.context);const a=()=>{if(!t.context.path)return ar.Message("\u8BF7\u9009\u62E9\u4F4D\u7F6E");if(!t.context.name)return ar.Message("\u8BF7\u8F93\u5165\u5171\u4EAB\u540D\u79F0");if(!t.context.samba&&!t.context.webdav)return ar.Message("\u8BF7\u9009\u62E9\u5171\u4EAB\u65B9\u5F0F");e("onNext")};return(n,i)=>(_t(),It("div",eP,[N("form",rP,[N("div",null,[aP,N("div",nP,[N("input",{value:t.context.path,type:"text"},null,8,iP),N("span",{class:"button",onClick:i[0]||(i[0]=o=>n.$emit("openDisk",!0))},"\u6D4F\u89C8")])]),N("div",null,[oP,N("div",sP,[Uu(N("input",{"onUpdate:modelValue":i[1]||(i[1]=o=>t.context.name=o),type:"text"},null,512),[[iI,t.context.name,void 0,{trim:!0}]])])]),N("div",null,[lP,N("div",uP,[N("div",fP,[N("label",hP,[Uu(N("input",{type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=o=>t.context.samba=o)},null,512),[[Im,t.context.samba]]),bd("Samba ")]),N("label",vP,[Uu(N("input",{type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=o=>t.context.webdav=o)},null,512),[[Im,t.context.webdav]]),bd("WebDav ")])])])])]),N("div",cP,[N("div",null,[N("button",{onClick:i[4]||(i[4]=o=>n.$emit("onCancel",!1))},"\u53D6\u6D88"),N("button",{onClick:a},"\u4E0B\u4E00\u6B65")])])]))}});var pP=hn(dP,[["__scopeId","data-v-e79621ae"]]);const ml=r=>(Si("data-v-6363551b"),r=r(),xi(),r),gP=ml(()=>N("span",{class:"title"},"\u786E\u8BA4\u4FE1\u606F",-1)),yP={class:"detail"},mP=ml(()=>N("span",null,"\u5171\u4EAB\u540D\u79F0:",-1)),_P=ml(()=>N("span",null,"\u5171\u4EAB\u4F4D\u7F6E:",-1)),SP=ml(()=>N("span",null,"\u5171\u4EAB\u65B9\u5F0F:",-1)),xP=ml(()=>N("span",null,"\u5171\u4EAB\u7528\u6237:",-1)),wP={class:"dialog-footer"},bP=fn({__name:"form-confirm",props:{context:{type:Object,required:!0},mode:{type:String,required:!0}},setup(r){const e=r;return(t,a)=>(_t(),It(lr,null,[N("div",null,[N("div",null,[gP,N("div",yP,[N("div",null,[mP,N("span",null,Xt(r.context.name),1)]),N("div",null,[_P,N("span",null,Xt(r.context.path),1)]),N("div",null,[SP,N("span",null,Xt(`${r.context.samba?"Samba":""} ${r.context.webdav?"WebDav":""}`),1)]),N("div",null,[xP,(_t(!0),It(lr,null,pa(r.context.users,(n,i)=>(_t(),It("span",{key:i},Xt(`${n.userName}(${n.ro?"\u53EA\u8BFB":"\u8BFB\u5199"})${r.context.users.length-1===i?"":"\u3001"}`),1))),128))])])])]),N("div",wP,[N("div",null,[N("button",{onClick:a[0]||(a[0]=n=>t.$emit("onCancel"))},"\u4E0A\u4E00\u6B65"),N("button",{onClick:a[1]||(a[1]=n=>t.$emit("onOk"))},Xt(e.mode==="edit"?"\u7F16\u8F91":"\u521B\u5EFA"),1)])])],64))}});var CP=hn(bP,[["__scopeId","data-v-6363551b"]]);const TP=r=>(Si("data-v-26847234"),r=r(),xi(),r),AP={class:"ul-container"},DP={class:"ul-container_body"},MP={class:"page-table"},LP=TP(()=>N("thead",null,[N("tr",null,[N("th",null,"\u7528\u6237"),N("th",null,"\u8BFB\u5199"),N("th",null,"\u53EA\u8BFB"),N("th",null,"\u65E0\u6743\u9650")])],-1)),IP=["checked","onChange"],PP=["checked","onChange"],RP=["checked","onChange"],EP={class:"dialog-footer"},kP=fn({__name:"user-table",props:{context:{type:Object,required:!0}},setup(r){const e=r,t=Gs({users:e.context.users}),a=()=>ra(this,null,function*(){try{const o=yield Fr.Share.User.GET();if(o!=null&&o.data){const{result:s}=o.data;s&&(t.users=s.users.map(l=>Lm(Mm({},l),{ro:!1,rw:!0})))}}catch(o){console.log(o)}}),n=(o,s)=>{s?s==="ro"?(o.ro=!0,o.rw=!1):(o.ro=!1,o.rw=!0):(o.rw=!1,o.ro=!1)};e.context.users.length||a();function i(){Cd({callback:o=>{t.users=[...t.users,o]}})}return(o,s)=>(_t(),It(lr,null,[N("button",{class:"add-user",onClick:i},"\u65B0\u589E"),N("ul",AP,[N("div",DP,[N("table",MP,[LP,N("tbody",null,[(_t(!0),It(lr,null,pa(t.users,l=>(_t(),It("tr",null,[N("th",null,Xt(l.userName),1),N("th",null,[N("input",{type:"radio",checked:l.rw,onChange:u=>n(l,"rw")},null,40,IP)]),N("th",null,[N("input",{type:"radio",checked:l.ro,onChange:u=>n(l,"ro")},null,40,PP)]),N("th",null,[N("input",{type:"radio",checked:!l.ro&&!l.rw,onChange:u=>n(l)},null,40,RP)])]))),256))])])])]),N("div",EP,[N("div",null,[N("button",{onClick:s[0]||(s[0]=l=>o.$emit("onCancel",!1))},"\u4E0A\u4E00\u6B65"),N("button",{onClick:s[1]||(s[1]=l=>o.$emit("onOk",t.users))},"\u4E0B\u4E00\u6B65")])])],64))}});var OP=hn(kP,[["__scopeId","data-v-26847234"]]);const hh=r=>(Si("data-v-9c961df4"),r=r(),xi(),r),BP={key:0},NP={key:0,class:"no-data"},VP=hh(()=>N("span",null,"\u6682\u65F6\u8FD8\u6CA1\u6709\u4EFB\u4F55\u5171\u4EAB\u6587\u4EF6",-1)),zP={key:1,class:"list"},FP=hh(()=>N("div",{class:"img"},[N("svg",{width:"71",height:"63",viewBox:"0 0 71 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[N("rect",{width:"71",height:"63",fill:"url(#pattern0)"}),N("defs",null,[N("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[N("use",{"xlink:href":"#image0_57_1478",transform:"matrix(0.00892857 0 0 0.0100624 0 -0.00311791)"})]),N("image",{id:"image0_57_1478",width:"112",height:"100","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABkCAYAAABep7TGAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSIbQAAlJCb4JIDSAlhBZAehFshCRAKDEGgogdXVRw7WIBG7oqotgBsSN2FsXeF0RUlHWxYEPlTQrouq98b75v7vz3nzP/OXPuzL13AFA/xRWLc1ANAHJF+ZLYkADG2OQUBukZIAMToAJwgHF5eWJWdHQEgGWw/Xt5fwsgsva6g0zrn/3/tWjyBXk8AJBoiNP4ebxciA8BgFfyxJJ8AIgy3nxqvliGYQXaEhggxAtlOEOBK2U4TYH3yW3iY9kQNwNAVuVyJRkAqF2FPKOAlwE11HohdhLxhSIA1BkQ++bmTuZDnAqxDbQRQyzTZ6b9oJPxN820IU0uN2MIK+YiL+RAYZ44hzvt/0zH/y65OdJBH1awqmZKQmNlc4Z5u5M9OVyGVSHuEaVFRkGsBfFHIV9uDzFKzZSGJijsUUNeHhvmDOhC7MTnBoZDbAhxsCgnMkLJp6ULgzkQwxWCFgrzOfEQ60G8UJAXFKe02SyZHKv0hdalS9gsJX+BK5H7lfl6JM1OYCn132QKOEp9TK0oMz4JYirEFgXCxEiI1SB2zMuOC1fajC7KZEcO2kiksbL4LSCOFYhCAhT6WEG6JDhWaV+amzc4X2xzppATqcQH8jPjQxX5wZp5XHn8cC7YVYGIlTCoI8gbGzE4F74gMEgxd+y5QJQQp9T5KM4PiFWMxaninGilPW4myAmR8WYQu+YVxCnH4on5cEEq9PF0cX50vCJOvCiLGxatiAdfBiIAGwQCBpDCmgYmgywgbO2p74F3ip5gwAUSkAEEwEHJDI5IkveI4DUOFIE/IRKAvKFxAfJeASiA/NchVnF1AOny3gL5iGzwFOJcEA5y4L1UPko05C0RPIGM8B/eubDyYLw5sMr6/z0/yH5nWJCJUDLSQY8M9UFLYhAxkBhKDCba4ga4L+6NR8CrP6zOOBP3HJzHd3vCU0Ib4THhJqGdcHeSsFjyU5RjQDvUD1bmIu3HXOBWUNMND8B9oDpUxnVxA+CAu0I/LNwPenaDLFsZtywrjJ+0/zaDH56G0o7iREEpwyj+FJufR6rZqbkNqchy/WN+FLGmDeWbPdTzs3/2D9nnwzb8Z0tsIXYQO4+dxi5ix7B6wMBOYg1YC3ZchodW1xP56hr0FiuPJxvqCP/hb/DJyjKZ51Tj1O30RdGXLyiUvaMBe7J4mkSYkZnPYMEvgoDBEfEcRzCcnZxdAJB9XxSvr7cx8u8GotvynZv3BwA+JwcGBo5+58JOArDfA27/I985Gyb8dKgAcOEITyopUHC47EKAbwl1uNP0gTEwBzZwPs7AHXgDfxAEwkAUiAfJYCKMPhOucwmYCmaAuaAElIFlYDVYDzaBrWAn2AMOgHpwDJwG58BlcBXcBPfh6ukCL0EveA/6EQQhITSEjugjJoglYo84I0zEFwlCIpBYJBlJRTIQESJFZiDzkDJkBbIe2YJUI/uRI8hp5CLShtxFOpBu5A3yGcVQVVQbNUKt0JEoE2Wh4Wg8OgHNQKegReh8dAm6Fq1Cd6N16Gn0MnoTbUdfon0YwFQwXcwUc8CYGBuLwlKwdEyCzcJKsXKsCqvFGuFzvo61Yz3YJ5yI03EG7gBXcCiegPPwKfgsfDG+Ht+J1+HN+HW8A+/FvxFoBEOCPcGLwCGMJWQQphJKCOWE7YTDhLNwL3UR3hOJRF2iNdED7sVkYhZxOnExcQNxL/EUsY3YSewjkUj6JHuSDymKxCXlk0pI60i7SSdJ10hdpI9kFbIJ2ZkcTE4hi8jF5HLyLvIJ8jXyM3I/RYNiSfGiRFH4lGmUpZRtlEbKFUoXpZ+qSbWm+lDjqVnUudS11FrqWeoD6lsVFRUzFU+VGBWhyhyVtSr7VC6odKh8UtVStVNlq45XlaouUd2hekr1rupbGo1mRfOnpdDyaUto1bQztEe0j2p0NUc1jhpfbbZahVqd2jW1V+oUdUt1lvpE9SL1cvWD6lfUezQoGlYabA2uxiyNCo0jGrc1+jTpmqM0ozRzNRdr7tK8qPlci6RlpRWkxdear7VV64xWJx2jm9PZdB59Hn0b/Sy9S5uoba3N0c7SLtPeo92q3aujpeOqk6hTqFOhc1ynXRfTtdLl6OboLtU9oHtL9/Mwo2GsYYJhi4bVDrs27IPecD1/PYFeqd5evZt6n/UZ+kH62frL9ev1HxrgBnYGMQZTDTYanDXoGa493Hs4b3jp8APD7xmihnaGsYbTDbcathj2GRkbhRiJjdYZnTHqMdY19jfOMl5lfMK424Ru4msiNFllctLkBUOHwWLkMNYymhm9poamoaZS0y2mrab9ZtZmCWbFZnvNHppTzZnm6earzJvMey1MLMZYzLCosbhnSbFkWmZarrE8b/nBytoqyWqBVb3Vc2s9a451kXWN9QMbmo2fzRSbKpsbtkRbpm227Qbbq3aonZtdpl2F3RV71N7dXmi/wb5tBGGE5wjRiKoRtx1UHVgOBQ41Dh2Ouo4RjsWO9Y6vRlqMTBm5fOT5kd+c3JxynLY53R+lNSpsVPGoxlFvnO2cec4VzjdcaC7BLrNdGlxeu9q7Clw3ut5xo7uNcVvg1uT21d3DXeJe697tYeGR6lHpcZupzYxmLmZe8CR4BnjO9jzm+cnL3Svf64DXX94O3tneu7yfj7YeLRi9bXSnj5kP12eLT7svwzfVd7Nvu5+pH9evyu+xv7k/33+7/zOWLSuLtZv1KsApQBJwOOAD24s9k30qEAsMCSwNbA3SCkoIWh/0KNgsOCO4Jrg3xC1kesipUEJoeOjy0NscIw6PU83pDfMImxnWHK4aHhe+PvxxhF2EJKJxDDombMzKMQ8iLSNFkfVRIIoTtTLqYbR19JToozHEmOiYipinsaNiZ8Sej6PHTYrbFfc+PiB+afz9BJsEaUJTonri+MTqxA9JgUkrktrHjhw7c+zlZINkYXJDCiklMWV7St+4oHGrx3WNdxtfMv7WBOsJhRMuTjSYmDPx+CT1SdxJB1MJqUmpu1K/cKO4Vdy+NE5aZVovj81bw3vJ9+ev4ncLfAQrBM/SfdJXpD/P8MlYmdGd6ZdZntkjZAvXC19nhWZtyvqQHZW9I3sgJylnby45NzX3iEhLlC1qnmw8uXBym9heXCJun+I1ZfWUXkm4ZHsekjchryFfG/7It0htpL9IOwp8CyoKPk5NnHqwULNQVNgyzW7aomnPioKLfpuOT+dNb5phOmPujI6ZrJlbZiGz0mY1zTafPX9215yQOTvnUudmz/292Kl4RfG7eUnzGucbzZ8zv/OXkF9qStRKJCW3F3gv2LQQXyhc2LrIZdG6Rd9K+aWXypzKysu+LOYtvvTrqF/X/jqwJH1J61L3pRuXEZeJlt1a7rd85wrNFUUrOleOWVm3irGqdNW71ZNWXyx3Ld+0hrpGuqZ9bcTahnUW65at+7I+c/3NioCKvZWGlYsqP2zgb7i20X9j7SajTWWbPm8Wbr6zJWRLXZVVVflW4taCrU+3JW47/xvzt+rtBtvLtn/dIdrRvjN2Z3O1R3X1LsNdS2vQGmlN9+7xu6/uCdzTUOtQu2Wv7t6yfWCfdN+L/an7bx0IP9B0kHmw9pDlocrD9MOldUjdtLre+sz69obkhrYjYUeaGr0bDx91PLrjmOmxiuM6x5eeoJ6Yf2LgZNHJvlPiUz2nM053Nk1qun9m7JkbzTHNrWfDz144F3zuzHnW+ZMXfC4cu+h18cgl5qX6y+6X61rcWg7/7vb74Vb31rorHlcarnpebWwb3Xbimt+109cDr5+7wblx+WbkzbZbCbfu3B5/u/0O/87zuzl3X98ruNd/f84DwoPShxoPyx8ZPqr6w/aPve3u7cc7AjtaHsc9vt/J63z5JO/Jl675T2lPy5+ZPKt+7vz8WHdw99UX4150vRS/7O8p+VPzz8pXNq8O/eX/V0vv2N6u15LXA28Wv9V/u+Od67umvui+R+9z3/d/KP2o/3HnJ+an85+TPj/rn/qF9GXtV9uvjd/Cvz0YyB0YEHMlXPmvAAYrmp4OwJsdANCSAaDD8xl1nOL8Jy+I4swqR+A/YcUZUV7cAaiF/+8xPfDv5jYA+7bB4xfUVx8PQDQNgHhPgLq4DNXBs5r8XCkrRHgO2Bz5NS03Dfybojhz/hD3zy2QqbqCn9t/Ae5cfEE5Hk+sAAAAbGVYSWZNTQAqAAAACAAEARoABQAAAAEAAAA+ARsABQAAAAEAAABGASgAAwAAAAEAAgAAh2kABAAAAAEAAABOAAAAAAAAAJAAAAABAAAAkAAAAAEAAqACAAQAAAABAAAAcKADAAQAAAABAAAAZAAAAAAhyIn1AAAACXBIWXMAABYlAAAWJQFJUiTwAAADjUlEQVR4Ae2czWoTURTHz51JQmxJrSDFnYgi+ARufQafwGfwZQR34kZB8AncCS50I7gptVZE/OgiVPuVzMcd762Q6MKY0PxPcm7+A4G0Mznnf3+/nExmkXFN2ISbWQKZ2eQMfkaAAo2/ESiQAo0TMB6fE0iBxgkYj88JpEDjBIzH5wRSoHECxuNzAinQOAHj8TmBFGicgPH4nEAKNE7AeHxOoHGBLWR+f/JVys/Ppfz+Upr6FNlqVDvrbErn6l1pbd0R1+6N/p/qE+gEVv1XqvKiJF8cyHD3sVT91yL1MFVvo3VBBTblodrkjVYUnjS+lGLvqdSHO/GvP3cl9xwqcJG0/GBfik/PJL6JUt6SFRilVf23Un57ET5KB8k6TFpgtFbsPZHq53Y4OVZJSkxeYOMLKXYeih/uB4HpnQ+TFxjHrj75IoPtB+KPPgaHdfxXMhv0OnCZKNUH7+T4zX1xzk2I9fc+52Z9f/9+fda7Jp3r9yTfuDWh13x2zZpwPl0XWCX+kuDfDx/2jR8+nDdne5Th+FKqH+9l+OGRyipXTqAKVfHiT+M5F79RIJ4xtAMFQvHii1MgnjG0AwVC8eKLYy8jzr6yZ//56o5f5EI6TLxcmV8iqEDX6kje25S8uyYy8zXV/BapXampCvF1rtIWKjDrrK2cvGjNtdph3RsqArHnwDh1KzR5Y2MunDZ0JhArcLwiPgMRoEAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yFKhFGtSHAkFgtcpSoBZpUB8KBIHVKkuBWqRBfSgQBFarLAVqkQb1oUAQWK2yYIHxJ/g6PzXWAjZdn3DTO9eZ7tBzHgUVmHW3xHWvhIirJdG11iVbv3FONdO9HHqXCnfhpuSXa2mOd8N9OovpEqVwVPuS5Bdvq6zEhVsvpncbWxV0y9EE+hG6HEtMOwUFGvdLgRRonIDx+JxACjROwHh8TiAFGidgPD4nkAKNEzAenxNIgcYJGI/PCaRA4wSMx+cEUqBxAsbjcwIp0DgB4/E5gRRonIDx+JxACjROwHh8TiAFGidgPD4n0LjAX3BSxpPyLY/MAAAAAElFTkSuQmCC"})])])],-1)),GP={class:"name"},HP={class:"action"},WP=["onClick"],$P=hh(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M18.9763 4.54325C19.1776 4.35138 19.4462 4.24614 19.7243 4.25011C20.0025 4.25408 20.2679 4.36696 20.4637 4.5645L26.2544 10.4051C26.3566 10.5081 26.4367 10.6309 26.4897 10.7661C26.5426 10.9012 26.5673 11.0458 26.5622 11.1908C26.5571 11.3359 26.5224 11.4783 26.4601 11.6095C26.3979 11.7406 26.3094 11.8575 26.2002 11.9531L12.2474 24.174C12.048 24.349 11.7902 24.443 11.5249 24.4375L6.35269 24.327C6.07478 24.3212 5.81023 24.2066 5.61577 24.008C5.42131 23.8094 5.31244 23.5425 5.3125 23.2645V18.0115C5.31247 17.8677 5.34165 17.7253 5.39827 17.5931C5.45489 17.4609 5.53776 17.3415 5.64187 17.2423L18.9763 4.54325ZM20.3862 21.6261L28.3496 21.7812C28.4892 21.784 28.6268 21.8141 28.7547 21.8701C28.8825 21.926 28.9981 22.0065 29.0949 22.1071C29.1916 22.2077 29.2676 22.3263 29.3185 22.4563C29.3693 22.5862 29.3941 22.7249 29.3914 22.8645C29.3887 23.004 29.3585 23.1416 29.3026 23.2695C29.2467 23.3974 29.1661 23.513 29.0656 23.6097C28.965 23.7064 28.8463 23.7824 28.7164 23.8333C28.5864 23.8842 28.4477 23.909 28.3082 23.9062L20.3448 23.7511C20.2052 23.7483 20.0676 23.7181 19.9398 23.6621C19.8119 23.6061 19.6964 23.5255 19.5997 23.4249C19.503 23.3243 19.4271 23.2056 19.3762 23.0756C19.3254 22.9456 19.3007 22.8069 19.3035 22.6674C19.3063 22.5278 19.3365 22.3902 19.3925 22.2624C19.4485 22.1346 19.5291 22.019 19.6297 21.9223C19.7304 21.8256 19.8491 21.7497 19.979 21.6989C20.109 21.6481 20.2477 21.6233 20.3872 21.6261H20.3862ZM19.6881 6.8L7.4375 18.4662V22.2243L11.1562 22.304L23.9498 11.0989L19.6881 6.8ZM28.2976 26.9386C28.5794 26.9365 28.8504 27.0464 29.0512 27.2442C29.2519 27.442 29.3659 27.7114 29.368 27.9932C29.3701 28.275 29.2602 28.546 29.0625 28.7468C28.8647 28.9475 28.5953 29.0615 28.3135 29.0636L7.446 29.2188C7.16421 29.2209 6.89312 29.1109 6.69237 28.9132C6.49161 28.7154 6.37764 28.446 6.37553 28.1642C6.37342 27.8824 6.48333 27.6113 6.6811 27.4106C6.87886 27.2098 7.14827 27.0959 7.43006 27.0938L28.2976 26.9386Z",fill:"black","fill-opacity":"0.8"})],-1)),UP=[$P],YP=["onClick"],ZP=hh(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M12.7331 30.5258C11.8785 30.5264 11.0527 30.2169 10.4091 29.6546C9.76556 29.0923 9.34796 28.3155 9.2339 27.4686L6.27084 10.719C6.24075 10.5628 6.24576 10.4019 6.28552 10.248C6.32529 10.094 6.3988 9.95078 6.50075 9.82873C6.60269 9.70667 6.7305 9.60882 6.87493 9.54227C7.01936 9.47571 7.17679 9.44212 7.3358 9.44392H26.9326C27.0917 9.44369 27.2489 9.47864 27.3929 9.54627C27.5369 9.61391 27.6642 9.71254 27.7657 9.83513C27.8688 9.9554 27.9437 10.0971 27.9851 10.25C28.0264 10.4029 28.0331 10.5631 28.0048 10.719L25.1069 27.512C24.9898 28.3532 24.5727 29.1237 23.9323 29.6815C23.2919 30.2394 22.4715 30.5469 21.6222 30.5476L12.7331 30.5258ZM8.63259 11.6101L11.3783 27.1208C11.4153 27.4559 11.5734 27.766 11.8229 27.9927C12.0723 28.2195 12.396 28.3474 12.7331 28.3524H21.5788C21.9155 28.3488 22.2391 28.2212 22.4877 27.994C22.7363 27.7668 22.8924 27.4559 22.9263 27.1208L25.672 11.5956L8.63259 11.6101Z",fill:"black","fill-opacity":"0.8"}),N("path",{d:"M14.1239 26.2153C13.8356 26.2153 13.5592 26.1008 13.3554 25.897C13.1517 25.6932 13.0372 25.4168 13.0372 25.1286C13.0372 24.8404 13.1517 24.564 13.3554 24.3602C13.5592 24.1564 13.8356 24.0419 14.1239 24.0419H19.9196C20.2078 24.0419 20.4842 24.1564 20.688 24.3602C20.8918 24.564 21.0063 24.8404 21.0063 25.1286C21.0063 25.4168 20.8918 25.6932 20.688 25.897C20.4842 26.1008 20.2078 26.2153 19.9196 26.2153H14.1239ZM6.70535 8.12542C6.41714 8.12542 6.14073 8.01093 5.93694 7.80714C5.73314 7.60334 5.61865 7.32694 5.61865 7.03873C5.61865 6.75052 5.73314 6.47411 5.93694 6.27032C6.14073 6.06652 6.41714 5.95203 6.70535 5.95203H27.2656C27.5538 5.95203 27.8303 6.06652 28.034 6.27032C28.2378 6.47411 28.3523 6.75052 28.3523 7.03873C28.3523 7.32694 28.2378 7.60334 28.034 7.80714C27.8303 8.01093 27.5538 8.12542 27.2656 8.12542H6.6981H6.70535ZM15.7539 5.64776C15.4657 5.64776 15.1893 5.53327 14.9855 5.32947C14.7817 5.12568 14.6672 4.84927 14.6672 4.56106C14.6672 4.27285 14.7817 3.99645 14.9855 3.79265C15.1893 3.58886 15.4657 3.47437 15.7539 3.47437H17.652C17.9402 3.47437 18.2166 3.58886 18.4204 3.79265C18.6242 3.99645 18.7387 4.27285 18.7387 4.56106C18.7387 4.84927 18.6242 5.12568 18.4204 5.32947C18.2166 5.53327 17.9402 5.64776 17.652 5.64776H15.7539Z",fill:"black","fill-opacity":"0.8"})],-1)),XP=[ZP],qP=fn({__name:"index",props:{close:Function},setup(r){const e=r,t=Ob(!1),n=Gs({title:"\u5171\u4EAB\u6587\u4EF6",services:[],step:0,mode:"edit",users:[],shareServiceCreateRequestParams:{name:"",path:"",webdav:!1,samba:!0,users:[]}}),i=()=>{e.close&&e.close()},o=()=>{n.step=1,n.mode="create"},s=g=>ra(this,null,function*(){confirm("\u786E\u5B9A\u5220\u9664\uFF1F")&&(yield Fr.Share.Service.DELETE(g)).data.success===0&&d()}),l=()=>{tP.Open({onOk:g=>{console.log("arr1111",g);const y=g.split("/");n.shareServiceCreateRequestParams.path=g,console.log("arr",y),n.shareServiceCreateRequestParams.name=y[y.length-1]}})},u=()=>{n.step=2,n.title="\u786E\u8BA4\u7528\u6237\u6743\u9650"},f=g=>{if(n.shareServiceCreateRequestParams.users=g,n.shareServiceCreateRequestParams.users.length===0)return ar.Message("\u8BF7\u9009\u62E9\u5171\u4EAB\u7528\u6237");n.step=3,n.title=void 0},h=()=>ra(this,null,function*(){var m,_;const g=ar.Loading("\u4FDD\u5B58\u4E2D...");n.users.forEach(S=>{(S.ro||S.rw)&&n.shareServiceCreateRequestParams.users.push(S)});let y;n.mode==="create"?y=yield Fr.Share.Service.ADD(n.shareServiceCreateRequestParams):y=yield Fr.Share.Service.UPDATE(n.shareServiceCreateRequestParams),y.data.success===0?(g.Close(),ar.Message("\u4FDD\u5B58\u6210\u529F"),c()):((m=y.data)!=null&&m.error&&ar.Message((_=y.data)==null?void 0:_.error),g.Close())}),v=()=>{n.step=n.step-1,n.title="\u5171\u4EAB\u6587\u4EF6",n.step===0&&c()},c=()=>{n.step=0,n.title="\u5171\u4EAB\u6587\u4EF6",n.shareServiceCreateRequestParams.path="",n.shareServiceCreateRequestParams.name="",n.shareServiceCreateRequestParams.samba=!1,n.shareServiceCreateRequestParams.webdav=!1,n.shareServiceCreateRequestParams.users=[],d()},d=()=>ra(this,null,function*(){try{t.value=!0;const g=ar.Loading("\u52A0\u8F7D\u4E2D..."),y=yield Fr.Share.Service.GET();if(y!=null&&y.data){const{result:m,error:_}=y.data;if(_)throw _;m&&(n.services=m.services)}g.Close(),t.value=!1}catch(g){console.log(g)}}),p=g=>{n.step=1,n.mode="edit",console.log("serviceservice",g),n.shareServiceCreateRequestParams.name=g.name,n.shareServiceCreateRequestParams.path=g.path,n.shareServiceCreateRequestParams.samba=g.samba,n.shareServiceCreateRequestParams.webdav=g.webdav,n.shareServiceCreateRequestParams.users=g.users};return d(),(g,y)=>(_t(),zr(vg,{onHandleClose:i,title:n.title,width:"572px"},{default:hg(()=>[n.step===0?(_t(),It("div",BP,[n.services.length===0&&t.value===!1?(_t(),It("div",NP,[N("div",null,[VP,N("div",{class:"btns"},[N("span",{onClick:o},"\u7ACB\u5373\u6DFB\u52A0")])])])):Ee("",!0),n.services.length!==0?(_t(),It("div",zP,[N("button",{onClick:o},"\u65B0\u589E"),(_t(!0),It(lr,null,pa(n.services,(m,_)=>(_t(),It("div",{key:_},[N("div",null,[FP,N("div",GP,[N("span",null,Xt(m.name),1),N("span",null,Xt(m.path),1),N("div",null,[N("span",null,"\u5171\u4EAB\u65B9\u5F0F: "+Xt(`${m.samba?"Samba":""} ${m.webdav?"WebDav":""}`),1),N("span",null,[bd("\u5171\u4EAB\u7528\u6237:"),(_t(!0),It(lr,null,pa(m.users.filter(S=>S.ro||S.rw),(S,w)=>(_t(),It("span",{key:w},Xt(`${S.userName}(${S.ro?"\u53EA\u8BFB":"\u8BFB\u5199"}) `),1))),128))])])]),N("div",HP,[N("span",{onClick:S=>p(m)},UP,8,WP),N("span",{onClick:S=>s({name:m.name})},XP,8,YP)])])]))),128))])):Ee("",!0)])):Ee("",!0),n.step===1?(_t(),zr(pP,{key:1,onOnNext:u,onOnCancel:v,onOpenDisk:l,context:n.shareServiceCreateRequestParams},null,8,["context"])):Ee("",!0),n.step===2?(_t(),zr(OP,{key:2,context:n.shareServiceCreateRequestParams,onOnCancel:v,onOnOk:f},null,8,["context"])):Ee("",!0),n.step===3?(_t(),zr(CP,{key:3,mode:n.mode,context:n.shareServiceCreateRequestParams,onOnCancel:v,onOnOk:h},null,8,["mode","context"])):Ee("",!0)]),_:1},8,["title"]))}});var KP=hn(qP,[["__scopeId","data-v-9c961df4"]]);class JP extends cg{Open(){this.openWindow(KP)}}const PK=new JP;const _l=r=>(Si("data-v-4a2e9fae"),r=r(),xi(),r),QP={key:0,class:"no-data"},jP=_l(()=>N("span",null,"\u6682\u65F6\u8FD8\u6CA1\u6709\u4EFB\u4F55\u5171\u4EAB\u7528\u6237",-1)),tR={class:"btns"},eR={key:1,class:"list"},rR={class:"page-table"},aR=_l(()=>N("thead",null,[N("tr",null,[N("th",null,"\u59D3\u540D"),N("th",null,"\u5BC6\u7801"),N("th",null,"\u64CD\u4F5C")])],-1)),nR=_l(()=>N("th",null,"******",-1)),iR={class:"action"},oR=["onClick"],sR=["onClick"],lR=_l(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M18.9763 4.54325C19.1776 4.35138 19.4462 4.24614 19.7243 4.25011C20.0025 4.25408 20.2679 4.36696 20.4637 4.5645L26.2544 10.4051C26.3566 10.5081 26.4367 10.6309 26.4897 10.7661C26.5426 10.9012 26.5673 11.0458 26.5622 11.1908C26.5571 11.3359 26.5224 11.4783 26.4601 11.6095C26.3979 11.7406 26.3094 11.8575 26.2002 11.9531L12.2474 24.174C12.048 24.349 11.7902 24.443 11.5249 24.4375L6.35269 24.327C6.07478 24.3212 5.81023 24.2066 5.61577 24.008C5.42131 23.8094 5.31244 23.5425 5.3125 23.2645V18.0115C5.31247 17.8677 5.34165 17.7253 5.39827 17.5931C5.45489 17.4609 5.53776 17.3415 5.64187 17.2423L18.9763 4.54325ZM20.3862 21.6261L28.3496 21.7812C28.4892 21.784 28.6268 21.8141 28.7547 21.8701C28.8825 21.926 28.9981 22.0065 29.0949 22.1071C29.1916 22.2077 29.2676 22.3263 29.3185 22.4563C29.3693 22.5862 29.3941 22.7249 29.3914 22.8645C29.3887 23.004 29.3585 23.1416 29.3026 23.2695C29.2467 23.3974 29.1661 23.513 29.0656 23.6097C28.965 23.7064 28.8463 23.7824 28.7164 23.8333C28.5864 23.8842 28.4477 23.909 28.3082 23.9062L20.3448 23.7511C20.2052 23.7483 20.0676 23.7181 19.9398 23.6621C19.8119 23.6061 19.6964 23.5255 19.5997 23.4249C19.503 23.3243 19.4271 23.2056 19.3762 23.0756C19.3254 22.9456 19.3007 22.8069 19.3035 22.6674C19.3063 22.5278 19.3365 22.3902 19.3925 22.2624C19.4485 22.1346 19.5291 22.019 19.6297 21.9223C19.7304 21.8256 19.8491 21.7497 19.979 21.6989C20.109 21.6481 20.2477 21.6233 20.3872 21.6261H20.3862ZM19.6881 6.8L7.4375 18.4662V22.2243L11.1562 22.304L23.9498 11.0989L19.6881 6.8ZM28.2976 26.9386C28.5794 26.9365 28.8504 27.0464 29.0512 27.2442C29.2519 27.442 29.3659 27.7114 29.368 27.9932C29.3701 28.275 29.2602 28.546 29.0625 28.7468C28.8647 28.9475 28.5953 29.0615 28.3135 29.0636L7.446 29.2188C7.16421 29.2209 6.89312 29.1109 6.69237 28.9132C6.49161 28.7154 6.37764 28.446 6.37553 28.1642C6.37342 27.8824 6.48333 27.6113 6.6811 27.4106C6.87886 27.2098 7.14827 27.0959 7.43006 27.0938L28.2976 26.9386Z",fill:"black","fill-opacity":"0.8"})],-1)),uR=[lR],fR=["onClick"],hR=_l(()=>N("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[N("path",{d:"M12.7331 30.5258C11.8785 30.5264 11.0527 30.2169 10.4091 29.6546C9.76556 29.0923 9.34796 28.3155 9.2339 27.4686L6.27084 10.719C6.24075 10.5628 6.24576 10.4019 6.28552 10.248C6.32529 10.094 6.3988 9.95078 6.50075 9.82873C6.60269 9.70667 6.7305 9.60882 6.87493 9.54227C7.01936 9.47571 7.17679 9.44212 7.3358 9.44392H26.9326C27.0917 9.44369 27.2489 9.47864 27.3929 9.54627C27.5369 9.61391 27.6642 9.71254 27.7657 9.83513C27.8688 9.9554 27.9437 10.0971 27.9851 10.25C28.0264 10.4029 28.0331 10.5631 28.0048 10.719L25.1069 27.512C24.9898 28.3532 24.5727 29.1237 23.9323 29.6815C23.2919 30.2394 22.4715 30.5469 21.6222 30.5476L12.7331 30.5258ZM8.63259 11.6101L11.3783 27.1208C11.4153 27.4559 11.5734 27.766 11.8229 27.9927C12.0723 28.2195 12.396 28.3474 12.7331 28.3524H21.5788C21.9155 28.3488 22.2391 28.2212 22.4877 27.994C22.7363 27.7668 22.8924 27.4559 22.9263 27.1208L25.672 11.5956L8.63259 11.6101Z",fill:"black","fill-opacity":"0.8"}),N("path",{d:"M14.1239 26.2153C13.8356 26.2153 13.5592 26.1008 13.3554 25.897C13.1517 25.6932 13.0372 25.4168 13.0372 25.1286C13.0372 24.8404 13.1517 24.564 13.3554 24.3602C13.5592 24.1564 13.8356 24.0419 14.1239 24.0419H19.9196C20.2078 24.0419 20.4842 24.1564 20.688 24.3602C20.8918 24.564 21.0063 24.8404 21.0063 25.1286C21.0063 25.4168 20.8918 25.6932 20.688 25.897C20.4842 26.1008 20.2078 26.2153 19.9196 26.2153H14.1239ZM6.70535 8.12542C6.41714 8.12542 6.14073 8.01093 5.93694 7.80714C5.73314 7.60334 5.61865 7.32694 5.61865 7.03873C5.61865 6.75052 5.73314 6.47411 5.93694 6.27032C6.14073 6.06652 6.41714 5.95203 6.70535 5.95203H27.2656C27.5538 5.95203 27.8303 6.06652 28.034 6.27032C28.2378 6.47411 28.3523 6.75052 28.3523 7.03873C28.3523 7.32694 28.2378 7.60334 28.034 7.80714C27.8303 8.01093 27.5538 8.12542 27.2656 8.12542H6.6981H6.70535ZM15.7539 5.64776C15.4657 5.64776 15.1893 5.53327 14.9855 5.32947C14.7817 5.12568 14.6672 4.84927 14.6672 4.56106C14.6672 4.27285 14.7817 3.99645 14.9855 3.79265C15.1893 3.58886 15.4657 3.47437 15.7539 3.47437H17.652C17.9402 3.47437 18.2166 3.58886 18.4204 3.79265C18.6242 3.99645 18.7387 4.27285 18.7387 4.56106C18.7387 4.84927 18.6242 5.12568 18.4204 5.32947C18.2166 5.53327 17.9402 5.64776 17.652 5.64776H15.7539Z",fill:"black","fill-opacity":"0.8"})],-1)),vR=[hR],cR=fn({__name:"index",props:{close:Function},setup(r){const e=r,t=Gs({loading:!1,users:[]}),a=()=>{e.close&&e.close()};function n(l=!0){Cd({callback:()=>{i()}})}const i=()=>ra(this,null,function*(){t.loading=!0;const l=ar.Loading("\u52A0\u8F7D\u4E2D...");try{const u=yield Fr.Share.User.GET();if(u!=null&&u.data){const{result:f}=u.data;f&&(t.users=f.users)}}catch(u){console.log(u)}t.loading=!1,l.Close()}),o=l=>{console.log("editUser",l),Cd({user:l,callback:()=>{i()}})},s=l=>ra(this,null,function*(){confirm("\u786E\u5B9A\u5220\u9664\uFF1F")&&(yield Fr.Share.User.DELETE(l)).data.success===0&&i()});return i(),(l,u)=>(_t(),zr(vg,{onHandleClose:a,title:"\u5171\u4EAB\u7528\u6237",width:"612px"},{default:hg(()=>[t.loading===!1&&t.users.length===0?(_t(),It("div",QP,[N("div",null,[jP,N("div",tR,[N("span",{onClick:u[0]||(u[0]=()=>n())},"\u7ACB\u5373\u6DFB\u52A0")])])])):Ee("",!0),t.loading===!1&&t.users.length!==0?(_t(),It("div",eR,[N("button",{onClick:u[1]||(u[1]=()=>n())},"\u65B0\u589E"),N("table",rR,[aR,N("tbody",null,[(_t(!0),It(lr,null,pa(t.users,f=>(_t(),It("tr",null,[N("th",null,Xt(f.userName),1),nR,N("th",iR,[N("span",{onClick:h=>df(ar).Message(f.password)},"\u67E5\u770B\u5BC6\u7801",8,oR),N("span",{onClick:h=>o(f)},uR,8,sR),N("span",{onClick:h=>s(f)},vR,8,fR)])]))),256))])])])):Ee("",!0)]),_:1}))}});var dR=hn(cR,[["__scopeId","data-v-4a2e9fae"]]);class pR extends cg{Open(){this.openWindow(dR)}}const RK=new pR;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.9f039d39.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c40a1ac4.js similarity index 98% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.9f039d39.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c40a1ac4.js index 2dbde3b4..589ac79a 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.9f039d39.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.c40a1ac4.js @@ -1 +1 @@ -var A=(w,h,c)=>new Promise((l,t)=>{var F=i=>{try{d(c.next(i))}catch(D){t(D)}},o=i=>{try{d(c.throw(i))}catch(D){t(D)}},d=i=>i.done?l(i.value):Promise.resolve(i.value).then(F,o);d((c=c.apply(w,h)).next())});import{d as N,s as M,j as f,v as x,o as m,c as v,a,x as r,D as S,F as b,A as _,m as I,E as V,l as U,B as T,C as P,T as q}from"./index.js?v=6248f3bd";const G=["onSubmit"],L=a("div",{class:"label-info"}," \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),W=a("div",{class:"label-name"},[a("span",null,"WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1),H={class:"label-value"},j=a("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6 IP \u5730\u5740\uFF08DHCP\uFF09",-1),O=a("option",{value:"static"},"\u9759\u6001 IP \u5730\u5740",-1),z=[j,O],J=a("div",{class:"label-name"},[a("span",null,"IP\u5730\u5740")],-1),K={class:"label-value"},Q=a("div",{class:"label-name"},[a("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),R={class:"label-value"},X=a("div",{class:"label-name"},[a("span",null,"\u7F51\u5173\u5730\u5740")],-1),Y={class:"label-value"},Z=a("div",{class:"label-name"},[a("span",null,"DNS \u914D\u7F6E\u65B9\u5F0F")],-1),$={class:"label-value"},tt=a("option",{value:"auto"},"\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09",-1),at=a("option",{value:"manual"},"\u624B\u52A8\u914D\u7F6E",-1),st=[tt,at],et=a("div",{class:"label-name"},[a("span",null,"DNS\u670D\u52A1\u5668")],-1),ut={class:"label-value"},nt=["onUpdate:modelValue"],lt=a("div",{class:"label-name"},[a("span",null,"DNS\u670D\u52A1\u5668")],-1),ot={class:"label-value"},dt=a("div",{class:"label-name"}," \u5907\u7528DNS\u670D\u52A1\u5668 ",-1),it={class:"label-value"},rt={class:"label-btns"},ct=["disabled"],pt={key:2,class:"label-msg"},_t=N({__name:"index",setup(w){return A(this,null,function*(){let h,c;const l=M(""),t=f({wanProto:"dhcp",dnsProto:"auto",staticIp:"",subnetMask:"",manualDnsIp:[],gateway:""}),F=f({staticIP:""}),o=f({dnsAddr1:"",dnsAddr2:""}),d=M(!1),i=()=>A(this,null,function*(){d.value=!0;try{const u=yield Promise.all([P.Guide.ClientModel.GET(),P.Network.Status.GET()]);if(u[0]){const e=u[0],{result:s,error:n}=e.data;if(s){const{wanProto:p,dnsProto:y,staticIp:k,subnetMask:E,gateway:g,manualDnsIp:B}=s;p&&(t.wanProto=p),y&&(t.dnsProto=y),k&&(t.staticIp=k),E&&(t.subnetMask=E),g&&(t.gateway=g),B&&(t.manualDnsIp=B||[])}n&&(l.value=n)}if(u[1]){const e=u[1],{result:s,error:n}=e.data;s&&s.ipv4addr&&(F.staticIP=s.ipv4addr),n&&(l.value=n)}}catch(u){l.value=u}d.value=!1});[h,c]=x(()=>i()),yield h,c();const D=u=>{u.target.value=="static"&&((t.staticIp==null||t.staticIp=="")&&(t.staticIp=F.staticIP),(t.subnetMask==null||t.subnetMask=="")&&(t.subnetMask="255.255.255.0"))},C=()=>A(this,null,function*(){const u={};switch(t.wanProto){case"dhcp":break;case"static":u.staticIp=t.staticIp,u.subnetMask=t.subnetMask,u.gateway=t.gateway;break}switch(t.dnsProto){case"auto":break;case"manual":u.manualDnsIp=[],t.manualDnsIp!=null&&t.manualDnsIp.length>0?u.manualDnsIp=t.manualDnsIp:(u.manualDnsIp.push(o.dnsAddr1),o.dnsAddr2&&u.manualDnsIp.push(o.dnsAddr2));break}u.dnsProto=t.dnsProto,u.wanProto=t.wanProto,d.value=!0;const e=q.Loading("\u4FDD\u5B58\u4E2D...");try{const s=yield P.Guide.ClientModel.POST(u);if(s!=null&&s.data){const{success:n,error:p}=s==null?void 0:s.data;p&&(l.value=p),(n==null||n==0)&&(l.value="\u914D\u7F6E\u5B8C\u6210")}}catch(s){l.value=s}d.value=!1,e.Close()});return(u,e)=>(m(),v("form",{class:"form-container",onSubmit:T(C,["prevent"])},[L,W,a("div",H,[r(a("select",{"onUpdate:modelValue":e[0]||(e[0]=s=>t.wanProto=s),onInput:D},z,544),[[S,t.wanProto]])]),t.wanProto=="static"?(m(),v(b,{key:0},[J,a("div",K,[r(a("input",{type:"text",placeholder:"ip\u5730\u5740","onUpdate:modelValue":e[1]||(e[1]=s=>t.staticIp=s),required:""},null,512),[[_,t.staticIp,void 0,{trim:!0}]])]),Q,a("div",R,[r(a("input",{type:"text",placeholder:"\u5B50\u7F51\u63A9\u7801\u5730\u5740","onUpdate:modelValue":e[2]||(e[2]=s=>t.subnetMask=s),required:""},null,512),[[_,t.subnetMask,void 0,{trim:!0}]])]),X,a("div",Y,[r(a("input",{type:"text",placeholder:"\u7F51\u5173\u5730\u5740","onUpdate:modelValue":e[3]||(e[3]=s=>t.gateway=s),required:""},null,512),[[_,t.gateway,void 0,{trim:!0}]])])],64)):I("",!0),Z,a("div",$,[r(a("select",{"onUpdate:modelValue":e[4]||(e[4]=s=>t.dnsProto=s)},st,512),[[S,t.dnsProto]])]),t.dnsProto=="manual"?(m(),v(b,{key:1},[t.manualDnsIp!=null&&t.manualDnsIp.length>0?(m(!0),v(b,{key:0},V(t.manualDnsIp,(s,n)=>(m(),v(b,null,[et,a("div",ut,[r(a("input",{type:"text",placeholder:"DNS\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":p=>t.manualDnsIp[n]=p},null,8,nt),[[_,t.manualDnsIp[n],void 0,{trim:!0}]])])],64))),256)):(m(),v(b,{key:1},[lt,a("div",ot,[r(a("input",{type:"text",placeholder:"\u4E3BDNS\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":e[5]||(e[5]=s=>o.dnsAddr1=s),required:""},null,512),[[_,o.dnsAddr1,void 0,{trim:!0}]])]),dt,a("div",it,[r(a("input",{type:"text",placeholder:"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":e[6]||(e[6]=s=>o.dnsAddr2=s)},null,512),[[_,o.dnsAddr2,void 0,{trim:!0}]])])],64))],64)):I("",!0),a("div",rt,[a("button",{class:"sumbit",disabled:d.value},"\u4FDD\u5B58",8,ct)]),l.value?(m(),v("div",pt,[a("span",null,U(l.value),1)])):I("",!0)],40,G))})}});export{_t as default}; +var A=(w,h,c)=>new Promise((l,t)=>{var F=i=>{try{d(c.next(i))}catch(D){t(D)}},o=i=>{try{d(c.throw(i))}catch(D){t(D)}},d=i=>i.done?l(i.value):Promise.resolve(i.value).then(F,o);d((c=c.apply(w,h)).next())});import{d as N,s as M,j as f,v as x,o as m,c as v,a,x as r,D as S,F as b,A as _,m as I,E as V,l as U,B as T,C as P,T as q}from"./index.js?v=bc5d78ec";const G=["onSubmit"],L=a("div",{class:"label-info"}," \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),W=a("div",{class:"label-name"},[a("span",null,"WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1),H={class:"label-value"},j=a("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6 IP \u5730\u5740\uFF08DHCP\uFF09",-1),O=a("option",{value:"static"},"\u9759\u6001 IP \u5730\u5740",-1),z=[j,O],J=a("div",{class:"label-name"},[a("span",null,"IP\u5730\u5740")],-1),K={class:"label-value"},Q=a("div",{class:"label-name"},[a("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),R={class:"label-value"},X=a("div",{class:"label-name"},[a("span",null,"\u7F51\u5173\u5730\u5740")],-1),Y={class:"label-value"},Z=a("div",{class:"label-name"},[a("span",null,"DNS \u914D\u7F6E\u65B9\u5F0F")],-1),$={class:"label-value"},tt=a("option",{value:"auto"},"\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09",-1),at=a("option",{value:"manual"},"\u624B\u52A8\u914D\u7F6E",-1),st=[tt,at],et=a("div",{class:"label-name"},[a("span",null,"DNS\u670D\u52A1\u5668")],-1),ut={class:"label-value"},nt=["onUpdate:modelValue"],lt=a("div",{class:"label-name"},[a("span",null,"DNS\u670D\u52A1\u5668")],-1),ot={class:"label-value"},dt=a("div",{class:"label-name"}," \u5907\u7528DNS\u670D\u52A1\u5668 ",-1),it={class:"label-value"},rt={class:"label-btns"},ct=["disabled"],pt={key:2,class:"label-msg"},_t=N({__name:"index",setup(w){return A(this,null,function*(){let h,c;const l=M(""),t=f({wanProto:"dhcp",dnsProto:"auto",staticIp:"",subnetMask:"",manualDnsIp:[],gateway:""}),F=f({staticIP:""}),o=f({dnsAddr1:"",dnsAddr2:""}),d=M(!1),i=()=>A(this,null,function*(){d.value=!0;try{const u=yield Promise.all([P.Guide.ClientModel.GET(),P.Network.Status.GET()]);if(u[0]){const e=u[0],{result:s,error:n}=e.data;if(s){const{wanProto:p,dnsProto:y,staticIp:k,subnetMask:E,gateway:g,manualDnsIp:B}=s;p&&(t.wanProto=p),y&&(t.dnsProto=y),k&&(t.staticIp=k),E&&(t.subnetMask=E),g&&(t.gateway=g),B&&(t.manualDnsIp=B||[])}n&&(l.value=n)}if(u[1]){const e=u[1],{result:s,error:n}=e.data;s&&s.ipv4addr&&(F.staticIP=s.ipv4addr),n&&(l.value=n)}}catch(u){l.value=u}d.value=!1});[h,c]=x(()=>i()),yield h,c();const D=u=>{u.target.value=="static"&&((t.staticIp==null||t.staticIp=="")&&(t.staticIp=F.staticIP),(t.subnetMask==null||t.subnetMask=="")&&(t.subnetMask="255.255.255.0"))},C=()=>A(this,null,function*(){const u={};switch(t.wanProto){case"dhcp":break;case"static":u.staticIp=t.staticIp,u.subnetMask=t.subnetMask,u.gateway=t.gateway;break}switch(t.dnsProto){case"auto":break;case"manual":u.manualDnsIp=[],t.manualDnsIp!=null&&t.manualDnsIp.length>0?u.manualDnsIp=t.manualDnsIp:(u.manualDnsIp.push(o.dnsAddr1),o.dnsAddr2&&u.manualDnsIp.push(o.dnsAddr2));break}u.dnsProto=t.dnsProto,u.wanProto=t.wanProto,d.value=!0;const e=q.Loading("\u4FDD\u5B58\u4E2D...");try{const s=yield P.Guide.ClientModel.POST(u);if(s!=null&&s.data){const{success:n,error:p}=s==null?void 0:s.data;p&&(l.value=p),(n==null||n==0)&&(l.value="\u914D\u7F6E\u5B8C\u6210")}}catch(s){l.value=s}d.value=!1,e.Close()});return(u,e)=>(m(),v("form",{class:"form-container",onSubmit:T(C,["prevent"])},[L,W,a("div",H,[r(a("select",{"onUpdate:modelValue":e[0]||(e[0]=s=>t.wanProto=s),onInput:D},z,544),[[S,t.wanProto]])]),t.wanProto=="static"?(m(),v(b,{key:0},[J,a("div",K,[r(a("input",{type:"text",placeholder:"ip\u5730\u5740","onUpdate:modelValue":e[1]||(e[1]=s=>t.staticIp=s),required:""},null,512),[[_,t.staticIp,void 0,{trim:!0}]])]),Q,a("div",R,[r(a("input",{type:"text",placeholder:"\u5B50\u7F51\u63A9\u7801\u5730\u5740","onUpdate:modelValue":e[2]||(e[2]=s=>t.subnetMask=s),required:""},null,512),[[_,t.subnetMask,void 0,{trim:!0}]])]),X,a("div",Y,[r(a("input",{type:"text",placeholder:"\u7F51\u5173\u5730\u5740","onUpdate:modelValue":e[3]||(e[3]=s=>t.gateway=s),required:""},null,512),[[_,t.gateway,void 0,{trim:!0}]])])],64)):I("",!0),Z,a("div",$,[r(a("select",{"onUpdate:modelValue":e[4]||(e[4]=s=>t.dnsProto=s)},st,512),[[S,t.dnsProto]])]),t.dnsProto=="manual"?(m(),v(b,{key:1},[t.manualDnsIp!=null&&t.manualDnsIp.length>0?(m(!0),v(b,{key:0},V(t.manualDnsIp,(s,n)=>(m(),v(b,null,[et,a("div",ut,[r(a("input",{type:"text",placeholder:"DNS\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":p=>t.manualDnsIp[n]=p},null,8,nt),[[_,t.manualDnsIp[n],void 0,{trim:!0}]])])],64))),256)):(m(),v(b,{key:1},[lt,a("div",ot,[r(a("input",{type:"text",placeholder:"\u4E3BDNS\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":e[5]||(e[5]=s=>o.dnsAddr1=s),required:""},null,512),[[_,o.dnsAddr1,void 0,{trim:!0}]])]),dt,a("div",it,[r(a("input",{type:"text",placeholder:"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740","onUpdate:modelValue":e[6]||(e[6]=s=>o.dnsAddr2=s)},null,512),[[_,o.dnsAddr2,void 0,{trim:!0}]])])],64))],64)):I("",!0),a("div",rt,[a("button",{class:"sumbit",disabled:d.value},"\u4FDD\u5B58",8,ct)]),l.value?(m(),v("div",pt,[a("span",null,U(l.value),1)])):I("",!0)],40,G))})}});export{_t as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e2c9ab95.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.d2056b7d.js similarity index 89% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e2c9ab95.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.d2056b7d.js index 6c8b3725..69d063d6 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e2c9ab95.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.d2056b7d.js @@ -1 +1 @@ -import{d as u,r as e,o as r,e as s,w as i,b as c,P as t}from"./index.js?v=6248f3bd";const _=u({__name:"index",setup(l){const a=[{name:"disk",title:"\u6211\u7684\u78C1\u76D8",path:"/router/disk"},{name:"disk-raid",title:"\u78C1\u76D8\u9635\u5217",fn:()=>{t({full:!0,title:"\u78C1\u76D8\u9635\u5217",src:"/cgi-bin/luci/admin/nas/raid"})}},{name:"disk-smart",title:"S.M.A.R.T",fn:()=>{t({full:!0,title:"S.M.A.R.T",src:"/cgi-bin/luci/admin/nas/smart"})}}];return(m,d)=>{const n=e("router-loading"),o=e("layout-page");return r(),s(o,{menus:a},{default:i(()=>[c(n)]),_:1})}}});export{_ as default}; +import{d as u,r as e,o as r,e as s,w as i,b as c,P as t}from"./index.js?v=bc5d78ec";const _=u({__name:"index",setup(l){const a=[{name:"disk",title:"\u6211\u7684\u78C1\u76D8",path:"/router/disk"},{name:"disk-raid",title:"\u78C1\u76D8\u9635\u5217",fn:()=>{t({full:!0,title:"\u78C1\u76D8\u9635\u5217",src:"/cgi-bin/luci/admin/nas/raid"})}},{name:"disk-smart",title:"S.M.A.R.T",fn:()=>{t({full:!0,title:"S.M.A.R.T",src:"/cgi-bin/luci/admin/nas/smart"})}}];return(m,d)=>{const n=e("router-loading"),o=e("layout-page");return r(),s(o,{menus:a},{default:i(()=>[c(n)]),_:1})}}});export{_ as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.4dd1ba29.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e4a00bc3.js similarity index 50% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.4dd1ba29.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e4a00bc3.js index dd4a6cc3..4619a5fa 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.4dd1ba29.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e4a00bc3.js @@ -1 +1 @@ -import{_ as r}from"./index.js?v=6248f3bd";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; +import{_ as r}from"./index.js?v=bc5d78ec";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8bab5dde.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e69413a4.js similarity index 98% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8bab5dde.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e69413a4.js index c71431be..84860c6f 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.8bab5dde.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e69413a4.js @@ -1 +1 @@ -var p=(o,u,s)=>new Promise((h,c)=>{var f=r=>{try{t(s.next(r))}catch(l){c(l)}},x=r=>{try{t(s.throw(r))}catch(l){c(l)}},t=r=>r.done?h(r.value):Promise.resolve(r.value).then(f,x);t((s=s.apply(o,u)).next())});import{_ as v,d as w,j as B,v as m,k as g,o as a,c as i,a as e,F as k,E as y,z as _,l as n,p as A,q as C,C as M}from"./index.js?v=6248f3bd";const d=o=>(A("data-v-16a9b49b"),o=o(),C(),o),D={class:"page-table"},F=d(()=>e("colgroup",null,[e("col"),e("col"),e("col"),e("col"),e("col"),e("col")],-1)),E=d(()=>e("thead",null,[e("tr",null,[e("th",null," \u72B6\u6001 "),e("th",null," \u63A5\u53E3 "),e("th",null," \u7C7B\u578B "),e("th",null," mac "),e("th",null," \u63A5\u6536 "),e("th",null," \u53D1\u9001 ")])],-1)),b={class:"flex-icon"},z=d(()=>e("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"},[e("defs",null,[e("filter",{id:"A","color-interpolation-filters":"sRGB"},[e("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 "}),e("feColorMatrix",{values:"0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"}),e("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 "})]),e("path",{id:"B",d:"M80.56 75.75h3.91v22.79h-3.91z"})]),e("g",{transform:"translate(0 -286.95)"},[e("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"}),e("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"}),e("g",{transform:"matrix(.1048 0 0 .1048 -6.0999 280.7)",fill:"#fff",filter:"url(#A)",stroke:"#fff"},[e("use",{"xlink:href":"#B"}),e("use",{"xlink:href":"#B",x:"73.04"}),e("use",{"xlink:href":"#B",x:"52.17"}),e("use",{"xlink:href":"#B",x:"41.74"}),e("use",{"xlink:href":"#B",x:"31.3"}),e("use",{"xlink:href":"#B",x:"20.87"}),e("use",{"xlink:href":"#B",x:"10.43"}),e("use",{"xlink:href":"#B",x:"62.61"})]),e("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)),N=d(()=>e("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"},[e("defs",null,[e("filter",{id:"A","color-interpolation-filters":"sRGB"},[e("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 "}),e("feColorMatrix",{values:"0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"}),e("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 "})]),e("path",{id:"B",d:"M80.56 75.75h3.91v22.79h-3.91z"})]),e("g",{transform:"translate(-.03 -287.07)"},[e("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"}),e("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"}),e("g",{transform:"matrix(.1048 0 0 .1048 -6.0697 280.81)",fill:"#fff",filter:"url(#A)",stroke:"#fff"},[e("use",{"xlink:href":"#B"}),e("use",{"xlink:href":"#B",x:"73.04"}),e("use",{"xlink:href":"#B",x:"52.17"}),e("use",{"xlink:href":"#B",x:"41.74"}),e("use",{"xlink:href":"#B",x:"31.3"}),e("use",{"xlink:href":"#B",x:"20.87"}),e("use",{"xlink:href":"#B",x:"10.43"}),e("use",{"xlink:href":"#B",x:"62.61"})]),e("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)),S=w({__name:"index",setup(o){return p(this,null,function*(){let u,s;const h=B({ports:[]}),c=t=>{switch(t){case"full":return"\u5168\u53CC\u5DE5";case"half":return"\u534A\u53CC\u5DE5"}};let f=!1;const x=()=>p(this,null,function*(){try{const t=yield M.Network.PortList.GET();if(t!=null&&t.data){const{result:r}=t==null?void 0:t.data;r&&(h.ports=r.ports||[])}}catch(t){console.log(t)}setTimeout(()=>{f||x()},1e4)});return[u,s]=m(()=>x()),yield u,s(),g(()=>{f=!0}),(t,r)=>(a(),i("table",D,[F,E,e("tbody",null,[(a(!0),i(k,null,y(h.ports,l=>(a(),i("tr",null,[e("th",b,[l.linkState=="DOWN"?(a(),i(k,{key:0},[z,_("\u672A\u8FDE\u63A5 ")],64)):(a(),i(k,{key:1},[N,_(" \u5DF2\u8FDE\u63A5 ")],64))]),e("th",null,n(l.name)+"\uFF08"+n(l.interfaceNames.join(",").toLocaleUpperCase())+"\uFF09 ",1),e("th",null,n(c(l.duplex)),1),e("th",null,n(l.macAddress||"--"),1),e("th",null,n(l.rx_packets||"--"),1),e("th",null,n(l.tx_packets||"--"),1)]))),256))])]))})}});var L=v(S,[["__scopeId","data-v-16a9b49b"]]);export{L as default}; +var p=(o,u,s)=>new Promise((h,c)=>{var f=r=>{try{t(s.next(r))}catch(l){c(l)}},x=r=>{try{t(s.throw(r))}catch(l){c(l)}},t=r=>r.done?h(r.value):Promise.resolve(r.value).then(f,x);t((s=s.apply(o,u)).next())});import{_ as v,d as w,j as B,v as m,k as g,o as a,c as i,a as e,F as k,E as y,z as _,l as n,p as A,q as C,C as M}from"./index.js?v=bc5d78ec";const d=o=>(A("data-v-16a9b49b"),o=o(),C(),o),D={class:"page-table"},F=d(()=>e("colgroup",null,[e("col"),e("col"),e("col"),e("col"),e("col"),e("col")],-1)),E=d(()=>e("thead",null,[e("tr",null,[e("th",null," \u72B6\u6001 "),e("th",null," \u63A5\u53E3 "),e("th",null," \u7C7B\u578B "),e("th",null," mac "),e("th",null," \u63A5\u6536 "),e("th",null," \u53D1\u9001 ")])],-1)),b={class:"flex-icon"},z=d(()=>e("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"},[e("defs",null,[e("filter",{id:"A","color-interpolation-filters":"sRGB"},[e("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 "}),e("feColorMatrix",{values:"0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"}),e("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 "})]),e("path",{id:"B",d:"M80.56 75.75h3.91v22.79h-3.91z"})]),e("g",{transform:"translate(0 -286.95)"},[e("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"}),e("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"}),e("g",{transform:"matrix(.1048 0 0 .1048 -6.0999 280.7)",fill:"#fff",filter:"url(#A)",stroke:"#fff"},[e("use",{"xlink:href":"#B"}),e("use",{"xlink:href":"#B",x:"73.04"}),e("use",{"xlink:href":"#B",x:"52.17"}),e("use",{"xlink:href":"#B",x:"41.74"}),e("use",{"xlink:href":"#B",x:"31.3"}),e("use",{"xlink:href":"#B",x:"20.87"}),e("use",{"xlink:href":"#B",x:"10.43"}),e("use",{"xlink:href":"#B",x:"62.61"})]),e("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)),N=d(()=>e("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"},[e("defs",null,[e("filter",{id:"A","color-interpolation-filters":"sRGB"},[e("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 "}),e("feColorMatrix",{values:"0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"}),e("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 "})]),e("path",{id:"B",d:"M80.56 75.75h3.91v22.79h-3.91z"})]),e("g",{transform:"translate(-.03 -287.07)"},[e("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"}),e("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"}),e("g",{transform:"matrix(.1048 0 0 .1048 -6.0697 280.81)",fill:"#fff",filter:"url(#A)",stroke:"#fff"},[e("use",{"xlink:href":"#B"}),e("use",{"xlink:href":"#B",x:"73.04"}),e("use",{"xlink:href":"#B",x:"52.17"}),e("use",{"xlink:href":"#B",x:"41.74"}),e("use",{"xlink:href":"#B",x:"31.3"}),e("use",{"xlink:href":"#B",x:"20.87"}),e("use",{"xlink:href":"#B",x:"10.43"}),e("use",{"xlink:href":"#B",x:"62.61"})]),e("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)),S=w({__name:"index",setup(o){return p(this,null,function*(){let u,s;const h=B({ports:[]}),c=t=>{switch(t){case"full":return"\u5168\u53CC\u5DE5";case"half":return"\u534A\u53CC\u5DE5"}};let f=!1;const x=()=>p(this,null,function*(){try{const t=yield M.Network.PortList.GET();if(t!=null&&t.data){const{result:r}=t==null?void 0:t.data;r&&(h.ports=r.ports||[])}}catch(t){console.log(t)}setTimeout(()=>{f||x()},1e4)});return[u,s]=m(()=>x()),yield u,s(),g(()=>{f=!0}),(t,r)=>(a(),i("table",D,[F,E,e("tbody",null,[(a(!0),i(k,null,y(h.ports,l=>(a(),i("tr",null,[e("th",b,[l.linkState=="DOWN"?(a(),i(k,{key:0},[z,_("\u672A\u8FDE\u63A5 ")],64)):(a(),i(k,{key:1},[N,_(" \u5DF2\u8FDE\u63A5 ")],64))]),e("th",null,n(l.name)+"\uFF08"+n(l.interfaceNames.join(",").toLocaleUpperCase())+"\uFF09 ",1),e("th",null,n(c(l.duplex)),1),e("th",null,n(l.macAddress||"--"),1),e("th",null,n(l.rx_packets||"--"),1),e("th",null,n(l.tx_packets||"--"),1)]))),256))])]))})}});var L=v(S,[["__scopeId","data-v-16a9b49b"]]);export{L as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.9ca29795.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.ee4cd872.js similarity index 98% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.9ca29795.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.ee4cd872.js index 904f47ff..ab8efae2 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.9ca29795.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.ee4cd872.js @@ -1 +1 @@ -var r=(c,m,i)=>new Promise((w,t)=>{var n=l=>{try{o(i.next(l))}catch(v){t(v)}},s=l=>{try{o(i.throw(l))}catch(v){t(v)}},o=l=>l.done?w(l.value):Promise.resolve(l.value).then(n,s);o((i=i.apply(c,m)).next())});import{_ as V,d as T,u as I,s as f,j as A,v as M,o as E,c as b,a as u,x as _,y as h,z as D,A as k,m as y,l as U,B as q,p as G,q as N,C as B,T as x}from"./index.js?v=6248f3bd";const p=c=>(G("data-v-c5783954"),c=c(),N(),c),L=["onSubmit"],O=p(()=>u("p",null,[D(" \u6B22\u8FCE\u4F7F\u7528\u5FEB\u901F\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC\uFF0C\u8BF7\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB\u8054\u7F51\uFF0C\u6216\u4F7F\u7528\u5DE6\u4FA7\u83DC\u5355\u8FDB\u884C\u8054\u7F51\u914D\u7F6E "),u("br"),D(" \u6CA1\u627E\u5230\u60F3\u8981\u7684\u914D\u7F6E\uFF1F\u8BF7\u4F7F\u7528 "),u("a",{href:"/cgi-bin/luci/admin/network/network",target:"_blank"},"\u9AD8\u7EA7\u6A21\u5F0F")],-1)),j=p(()=>u("div",{class:"label-name"},[u("span",null,"\u8054\u7F51\u65B9\u5F0F")],-1)),z={class:"label-value"},R={class:"label-flex"},H={style:{display:"none"}},J={key:0,class:"ul-container"},K=p(()=>u("div",{class:"ul-container_title"},[u("span",null,"\u62E8\u53F7\u8054\u7F51\u914D\u7F6E")],-1)),Q=p(()=>u("div",{class:"label-value"},null,-1)),W=p(()=>u("div",{class:"label-name"},[u("span",null,"\u8D26\u53F7")],-1)),X={class:"label-value"},Y=p(()=>u("div",{class:"label-name"},[u("span",null,"\u5BC6\u7801")],-1)),Z={class:"label-value"},$={key:1,class:"label-btns"},uu=["disabled"],eu={key:2,class:"label-msg"},au=T({__name:"index",setup(c){return r(this,null,function*(){let m,i;const w=I(),t=f(""),n=f(!1),s=f(""),o=A({account:"",password:""}),l=A({wanProto:"dhcp",dnsProto:"auto",staticIp:"",subnetMask:"",manualDnsIp:[],gateway:""}),v=()=>r(this,null,function*(){n.value=!0;try{const d=yield B.Guide.Pppoe.GET(),{result:e}=d.data;e&&(o.account=e.account||"",o.password=e.password||"")}catch(d){s.value=d}t.value=yield w.getAsyncNetworkProto,n.value=!1});[m,i]=M(()=>v()),yield m,i();const P=()=>r(this,null,function*(){switch(t.value){case"pppoe":yield S();break;case"dhcp":yield g();break;default:s.value="\u627E\u4E0D\u5230\u4F60\u8981\u7684\u914D\u7F6E";break}}),S=()=>r(this,null,function*(){if(o.account==""){s.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(o.password==""){s.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}n.value=!0;const d=x.Loading("\u4FDD\u5B58\u4E2D...");try{const e=yield B.Guide.Pppoe.POST({account:o.account,password:o.password});if(e.data){const{error:a,success:F}=e.data;a&&(s.value=a),(F==null||F==0)&&(s.value="\u914D\u7F6E\u5B8C\u6210")}}catch(e){s.value=e}finally{}n.value=!1,d.Close()}),g=()=>r(this,null,function*(){const d={wanProto:l.wanProto,dnsProto:l.dnsProto};n.value=!0;const e=x.Loading("\u4FDD\u5B58\u4E2D...");try{const a=yield B.Guide.ClientModel.POST(d);if(a!=null&&a.data){const{success:F,error:C}=a==null?void 0:a.data;C&&(s.value=C),(F==null||F==0)&&(s.value="\u914D\u7F6E\u5B8C\u6210")}}catch(a){s.value=a}n.value=!1,e.Close()});return(d,e)=>(E(),b("form",{class:"form-container",onSubmit:q(P,["prevent"])},[O,j,u("div",z,[u("div",R,[u("label",null,[_(u("input",{type:"radio",value:"pppoe","onUpdate:modelValue":e[0]||(e[0]=a=>t.value=a)},null,512),[[h,t.value]]),D("\u8D26\u53F7\u5BC6\u7801")]),u("label",null,[_(u("input",{type:"radio",value:"dhcp","onUpdate:modelValue":e[1]||(e[1]=a=>t.value=a)},null,512),[[h,t.value]]),D("\u81EA\u52A8\u8054\u7F51")]),u("label",H,[_(u("input",{type:"radio",value:"static",hidden:"true","onUpdate:modelValue":e[2]||(e[2]=a=>t.value=a)},null,512),[[h,t.value]]),D("\u7F51\u5173\u8054\u7F51")])])]),t.value=="pppoe"?(E(),b("ul",J,[K,Q,W,u("div",X,[_(u("input",{type:"text",placeholder:"\u5BBD\u5E26\u8D26\u53F7","onUpdate:modelValue":e[3]||(e[3]=a=>o.account=a),required:""},null,512),[[k,o.account,void 0,{trim:!0}]])]),Y,u("div",Z,[_(u("input",{type:"password",placeholder:"\u5BBD\u5E26\u5BC6\u7801","onUpdate:modelValue":e[4]||(e[4]=a=>o.password=a),required:""},null,512),[[k,o.password,void 0,{trim:!0}]])])])):y("",!0),t.value=="pppoe"||t.value=="dhcp"?(E(),b("div",$,[u("button",{class:"sumbit",disabled:n.value},"\u4FDD\u5B58",8,uu)])):y("",!0),s.value?(E(),b("div",eu,[u("span",null,U(s.value),1)])):y("",!0)],40,L))})}});var ou=V(au,[["__scopeId","data-v-c5783954"]]);export{ou as default}; +var r=(c,m,i)=>new Promise((w,t)=>{var n=l=>{try{o(i.next(l))}catch(v){t(v)}},s=l=>{try{o(i.throw(l))}catch(v){t(v)}},o=l=>l.done?w(l.value):Promise.resolve(l.value).then(n,s);o((i=i.apply(c,m)).next())});import{_ as V,d as T,u as I,s as f,j as A,v as M,o as E,c as b,a as u,x as _,y as h,z as D,A as k,m as y,l as U,B as q,p as G,q as N,C as B,T as x}from"./index.js?v=bc5d78ec";const p=c=>(G("data-v-c5783954"),c=c(),N(),c),L=["onSubmit"],O=p(()=>u("p",null,[D(" \u6B22\u8FCE\u4F7F\u7528\u5FEB\u901F\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC\uFF0C\u8BF7\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB\u8054\u7F51\uFF0C\u6216\u4F7F\u7528\u5DE6\u4FA7\u83DC\u5355\u8FDB\u884C\u8054\u7F51\u914D\u7F6E "),u("br"),D(" \u6CA1\u627E\u5230\u60F3\u8981\u7684\u914D\u7F6E\uFF1F\u8BF7\u4F7F\u7528 "),u("a",{href:"/cgi-bin/luci/admin/network/network",target:"_blank"},"\u9AD8\u7EA7\u6A21\u5F0F")],-1)),j=p(()=>u("div",{class:"label-name"},[u("span",null,"\u8054\u7F51\u65B9\u5F0F")],-1)),z={class:"label-value"},R={class:"label-flex"},H={style:{display:"none"}},J={key:0,class:"ul-container"},K=p(()=>u("div",{class:"ul-container_title"},[u("span",null,"\u62E8\u53F7\u8054\u7F51\u914D\u7F6E")],-1)),Q=p(()=>u("div",{class:"label-value"},null,-1)),W=p(()=>u("div",{class:"label-name"},[u("span",null,"\u8D26\u53F7")],-1)),X={class:"label-value"},Y=p(()=>u("div",{class:"label-name"},[u("span",null,"\u5BC6\u7801")],-1)),Z={class:"label-value"},$={key:1,class:"label-btns"},uu=["disabled"],eu={key:2,class:"label-msg"},au=T({__name:"index",setup(c){return r(this,null,function*(){let m,i;const w=I(),t=f(""),n=f(!1),s=f(""),o=A({account:"",password:""}),l=A({wanProto:"dhcp",dnsProto:"auto",staticIp:"",subnetMask:"",manualDnsIp:[],gateway:""}),v=()=>r(this,null,function*(){n.value=!0;try{const d=yield B.Guide.Pppoe.GET(),{result:e}=d.data;e&&(o.account=e.account||"",o.password=e.password||"")}catch(d){s.value=d}t.value=yield w.getAsyncNetworkProto,n.value=!1});[m,i]=M(()=>v()),yield m,i();const P=()=>r(this,null,function*(){switch(t.value){case"pppoe":yield S();break;case"dhcp":yield g();break;default:s.value="\u627E\u4E0D\u5230\u4F60\u8981\u7684\u914D\u7F6E";break}}),S=()=>r(this,null,function*(){if(o.account==""){s.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(o.password==""){s.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}n.value=!0;const d=x.Loading("\u4FDD\u5B58\u4E2D...");try{const e=yield B.Guide.Pppoe.POST({account:o.account,password:o.password});if(e.data){const{error:a,success:F}=e.data;a&&(s.value=a),(F==null||F==0)&&(s.value="\u914D\u7F6E\u5B8C\u6210")}}catch(e){s.value=e}finally{}n.value=!1,d.Close()}),g=()=>r(this,null,function*(){const d={wanProto:l.wanProto,dnsProto:l.dnsProto};n.value=!0;const e=x.Loading("\u4FDD\u5B58\u4E2D...");try{const a=yield B.Guide.ClientModel.POST(d);if(a!=null&&a.data){const{success:F,error:C}=a==null?void 0:a.data;C&&(s.value=C),(F==null||F==0)&&(s.value="\u914D\u7F6E\u5B8C\u6210")}}catch(a){s.value=a}n.value=!1,e.Close()});return(d,e)=>(E(),b("form",{class:"form-container",onSubmit:q(P,["prevent"])},[O,j,u("div",z,[u("div",R,[u("label",null,[_(u("input",{type:"radio",value:"pppoe","onUpdate:modelValue":e[0]||(e[0]=a=>t.value=a)},null,512),[[h,t.value]]),D("\u8D26\u53F7\u5BC6\u7801")]),u("label",null,[_(u("input",{type:"radio",value:"dhcp","onUpdate:modelValue":e[1]||(e[1]=a=>t.value=a)},null,512),[[h,t.value]]),D("\u81EA\u52A8\u8054\u7F51")]),u("label",H,[_(u("input",{type:"radio",value:"static",hidden:"true","onUpdate:modelValue":e[2]||(e[2]=a=>t.value=a)},null,512),[[h,t.value]]),D("\u7F51\u5173\u8054\u7F51")])])]),t.value=="pppoe"?(E(),b("ul",J,[K,Q,W,u("div",X,[_(u("input",{type:"text",placeholder:"\u5BBD\u5E26\u8D26\u53F7","onUpdate:modelValue":e[3]||(e[3]=a=>o.account=a),required:""},null,512),[[k,o.account,void 0,{trim:!0}]])]),Y,u("div",Z,[_(u("input",{type:"password",placeholder:"\u5BBD\u5E26\u5BC6\u7801","onUpdate:modelValue":e[4]||(e[4]=a=>o.password=a),required:""},null,512),[[k,o.password,void 0,{trim:!0}]])])])):y("",!0),t.value=="pppoe"||t.value=="dhcp"?(E(),b("div",$,[u("button",{class:"sumbit",disabled:n.value},"\u4FDD\u5B58",8,uu)])):y("",!0),s.value?(E(),b("div",eu,[u("span",null,U(s.value),1)])):y("",!0)],40,L))})}});var ou=V(au,[["__scopeId","data-v-c5783954"]]);export{ou as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e2852863.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.eef43a4f.js similarity index 90% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e2852863.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.eef43a4f.js index 7124c0d5..9306d238 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.e2852863.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.eef43a4f.js @@ -1 +1 @@ -import{d as c,u,i as r,s as d,o as l,c as e,a as t,F as _,E as i,l as s}from"./index.js?v=6248f3bd";const h={class:"ul-container"},p={class:"ul-container_body"},m={class:"page-table"},v=t("colgroup",null,[t("col"),t("col"),t("col"),t("col")],-1),f=t("thead",null,[t("tr",null,[t("th",null,"Mac"),t("th",null,"IPv4"),t("th",null,"IPv6"),t("th")])],-1),b=t("th",null,null,-1),g=t("th",null,null,-1),E=c({__name:"index",setup(x){const o=u(),a=r(()=>o.device.devices);return d(),(y,B)=>(l(),e("main",null,[t("ul",h,[t("div",p,[t("table",m,[v,f,t("tbody",null,[(l(!0),e(_,null,i(a.value,n=>(l(),e("tr",null,[t("th",null,s(n.mac),1),t("th",null,s(n.ipv4addr),1),b,g]))),256))])])])])]))}});export{E as default}; +import{d as c,u,i as r,s as d,o as l,c as e,a as t,F as _,E as i,l as s}from"./index.js?v=bc5d78ec";const h={class:"ul-container"},p={class:"ul-container_body"},m={class:"page-table"},v=t("colgroup",null,[t("col"),t("col"),t("col"),t("col")],-1),f=t("thead",null,[t("tr",null,[t("th",null,"Mac"),t("th",null,"IPv4"),t("th",null,"IPv6"),t("th")])],-1),b=t("th",null,null,-1),g=t("th",null,null,-1),E=c({__name:"index",setup(x){const o=u(),a=r(()=>o.device.devices);return d(),(y,B)=>(l(),e("main",null,[t("ul",h,[t("div",p,[t("table",m,[v,f,t("tbody",null,[(l(!0),e(_,null,i(a.value,n=>(l(),e("tr",null,[t("th",null,s(n.mac),1),t("th",null,s(n.ipv4addr),1),b,g]))),256))])])])])]))}});export{E as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.71cadbdf.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f2850d08.js similarity index 75% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.71cadbdf.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f2850d08.js index 5145a092..ebf0b4df 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.71cadbdf.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.f2850d08.js @@ -1 +1 @@ -import{_ as u,d as l,u as p,r as t,o as e,c as i,a as m,b as o,w as a,e as s,f as v,S as f,t as x,g as y}from"./index.js?v=6248f3bd";const h={class:"body"},k=l({__name:"index",setup(C){const n=p();return(w,B)=>{const _=t("layout-header"),r=t("router-view");return e(),i("div",{id:"main",key:y(n).reloadCount},[m("div",h,[o(_),o(r,null,{default:a(({Component:c,route:d})=>[(e(),s(f,null,{default:a(()=>[(e(),s(v(c),{key:d.path}))]),_:2},1024))]),_:1}),o(x)])])}}});var S=u(k,[["__scopeId","data-v-5f4eb506"]]);export{S as default}; +import{_ as u,d as l,u as p,r as t,o as e,c as i,a as m,b as o,w as a,e as s,f as v,S as f,t as x,g as y}from"./index.js?v=bc5d78ec";const h={class:"body"},k=l({__name:"index",setup(C){const n=p();return(w,B)=>{const _=t("layout-header"),r=t("router-view");return e(),i("div",{id:"main",key:y(n).reloadCount},[m("div",h,[o(_),o(r,null,{default:a(({Component:c,route:d})=>[(e(),s(f,null,{default:a(()=>[(e(),s(v(c),{key:d.path}))]),_:2},1024))]),_:1}),o(x)])])}}});var S=u(k,[["__scopeId","data-v-5f4eb506"]]);export{S as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.1149efac.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.feed9b2f.js similarity index 99% rename from linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.1149efac.js rename to linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.feed9b2f.js index eee3583f..37f89551 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.1149efac.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/chunk.feed9b2f.js @@ -1 +1 @@ -var f=(n,u,c)=>new Promise((l,o)=>{var d=s=>{try{p(c.next(s))}catch(e){o(e)}},F=s=>{try{p(c.throw(s))}catch(e){o(e)}},p=s=>s.done?l(s.value):Promise.resolve(s.value).then(d,F);p((c=c.apply(n,u)).next())});import{d as $,M as b,s as M,r as N,o as h,c as y,a as t,b as S,_ as A,T as v,C as z,p as g,q as x,l as O,g as q,n as G,j as H,v as W,x as C,A as T,z as U,D as V,e as E,w as L,N as R,S as j}from"./index.js?v=6248f3bd";const P=n=>(g("data-v-7b2637d8"),n=n(),x(),n),J=P(()=>t("div",{class:"f"},[t("div",{class:"titleMain"},"\u4E92\u8054\u7F51"),t("div",{class:"titleSub"},"\u8054\u673A\u7C7B\u578B")],-1)),K={class:"r"},Q=P(()=>t("div",{class:"title"}," \u8BF7\u5728\u4EE5\u4E0B\u9009\u9879\u4E2D\u9009\u62E9\u7F51\u7EDC\u8FDE\u63A5\u7C7B\u578B\u3002\u82E5\u60A8\u4E0D\u77E5\u9053\u7F51\u7EDC\u8FDE\u63A5\u7C7B\u578B\uFF0C\u8BF7\u54A8\u8BE2\u60A8\u7684\u7F51\u7EDC\u670D\u52A1\u4F9B\u5E94\u5546\uFF08ISP\uFF09\u3002 ",-1)),X={class:"selector-container"},Y=P(()=>t("div",{class:"select-bar"}," \u81EA\u52A8\u8054\u7F51\uFF08\u52A8\u6001IP\uFF09 ",-1)),Z={class:"narrow-container"},tt=P(()=>t("div",{class:"select-bar"}," \u62E8\u53F7\u8054\u7F51\uFF08PPPoE\uFF09 ",-1)),et={class:"narrow-container"},st={class:"btns"},at=$({__name:"router",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(n,{emit:u}){const c=b(),l=()=>{u("update:setup","wizard")},o=()=>{u("update:setup","router-pppoe")},d=M(!1),F=()=>f(this,null,function*(){const s={wanProto:"dhcp",dnsProto:"auto"};d.value=!0;const e=v.Loading("\u4FDD\u5B58\u4E2D...");try{const a=yield z.Guide.ClientModel.POST(s);if(a!=null&&a.data){const{success:_,error:D}=a==null?void 0:a.data;if(D)throw D;(_==null||_==0)&&(yield p())}}catch(a){v.Error(`${a}`)}finally{d.value=!1,e.Close()}}),p=()=>f(this,null,function*(){const s=v.Loading("\u914D\u7F6E\u4E2D...");try{const e=yield z.Istorex.Updata.POST({model:"router"});if(e.data){const{success:a,error:_}=e.data;if(_)throw _;a===0&&c.push({path:"/router"})}}catch(e){v.Error(`${e}`)}finally{s.Close()}});return(s,e)=>{const a=N("icon-right");return h(),y("form",null,[J,t("div",K,[Q,t("div",X,[t("div",{class:"selector-container_item",onClick:e[0]||(e[0]=_=>F())},[Y,t("div",Z,[S(a)])]),t("div",{class:"selector-container_item",onClick:e[1]||(e[1]=_=>o())},[tt,t("div",et,[S(a)])])]),t("div",st,[t("button",{class:"back",type:"button",onClick:e[2]||(e[2]=_=>l())},"\u4E0A\u4E00\u6B65"),t("button",{class:"next",type:"button",onClick:e[3]||(e[3]=_=>p())}," \u4E0D\u914D\u7F6E\uFF0C\u8FDB\u5165\u4E3B\u754C\u9762 ")])])])}}});var ot=A(at,[["__scopeId","data-v-7b2637d8"]]);const ut={},nt={class:"main"};function lt(n,u){return h(),y("div",nt)}var it=A(ut,[["render",lt]]);const r=n=>(g("data-v-041c9ebc"),n=n(),x(),n),dt={id:"wizard"},rt={class:"wizard_title"},ct={class:"wizard_body"},pt={class:"wizard-item_icon"},_t={t:"1654871923674",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1414",width:"128",height:"128",style:{padding:"5px"}},ht=r(()=>t("path",{d:"M247.466667 76.8h25.6l51.2 307.2h-25.6L247.466667 76.8zM762.453333 76.8h25.6L742.4 385.706667h-25.6L762.453333 76.8z",fill:"#96CAFF","p-id":"1415"},null,-1)),vt=r(()=>t("path",{d:"M275.2 409.6H324.266667L256.938667 51.2H230.4zM230.4 25.6h26.538667a25.6 25.6 0 0 1 25.173333 20.906667l67.242667 358.4A25.6 25.6 0 0 1 324.266667 435.2h-49.066667a25.6 25.6 0 0 1-25.6-22.442667L204.8 54.357333A25.6 25.6 0 0 1 227.242667 25.6zM785.066667 51.2l-44.885334 358.4H691.2l67.242667-358.4z m0-25.6h-26.624a25.6 25.6 0 0 0-25.173334 20.906667l-67.157333 358.4A25.6 25.6 0 0 0 691.2 435.2h48.981333a25.6 25.6 0 0 0 25.6-22.442667l44.885334-358.4A25.6 25.6 0 0 0 788.138667 25.6z",fill:"#175AA7","p-id":"1416"},null,-1)),ft=r(()=>t("path",{d:"M59.733333 665.6h930.133334a8.533333 8.533333 0 0 1 8.533333 8.533333v162.133334a8.533333 8.533333 0 0 1-8.533333 8.533333H59.733333a8.533333 8.533333 0 0 1-8.533333-8.533333V674.133333a8.533333 8.533333 0 0 1 8.533333-8.533333z",fill:"#96CAFF","p-id":"1417"},null,-1)),Ft=r(()=>t("path",{d:"M460.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM716.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM588.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM844.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8z",fill:"#175AA7","p-id":"1418"},null,-1)),mt=r(()=>t("path",{d:"M153.6 844.8h68.693333l-25.6 76.8H179.2l-25.6-76.8z",fill:"#96CAFF","p-id":"1419"},null,-1)),wt=r(()=>t("path",{d:"M203.434667 844.8h8.533333l12.629333 17.493333-2.730666 8.106667h-26.965334z m-74.069334 0h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM102.4 844.8h128l-25.6 76.8h-76.8z",fill:"#175AA7","p-id":"1420"},null,-1)),zt=r(()=>t("path",{d:"M844.8 844.8h68.693333l-25.6 76.8H870.4l-25.6-76.8z",fill:"#96CAFF","p-id":"1421"},null,-1)),Dt=r(()=>t("path",{d:"M913.066667 870.4l2.730666-8.106667-12.629333-17.493333h-8.533333l-8.533334 25.6z m-92.501334-25.6h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM793.6 844.8h128l-25.6 76.8h-76.8zM204.8 768h25.6v25.6h-25.6zM281.6 768h25.6v25.6h-25.6zM128 768h25.6v25.6h-25.6zM358.4 768h25.6v25.6h-25.6zM204.8 716.8h25.6v25.6h-25.6zM281.6 716.8h25.6v25.6h-25.6zM128 716.8h25.6v25.6h-25.6zM358.4 716.8h25.6v25.6h-25.6z",fill:"#175AA7","p-id":"1422"},null,-1)),yt=r(()=>t("path",{d:"M69.12 640l176.128-249.941333A76.8 76.8 0 0 1 307.2 358.4h441.6A76.8 76.8 0 0 1 810.666667 390.058667L986.026667 640",fill:"#B3D9FF","p-id":"1423"},null,-1)),Et=r(()=>t("path",{d:"M742.4 358.4l187.050667 256.597333h57.941333L805.290667 358.4H742.4z",fill:"#96CAFF","p-id":"1424"},null,-1)),At=r(()=>t("path",{d:"M51.2 640a25.6 25.6 0 0 0-25.6 25.6v153.6a25.6 25.6 0 0 0 25.6 25.6h921.6a25.6 25.6 0 0 0 25.6-25.6V665.6a25.6 25.6 0 0 0-25.6-25.6z m0-25.6h921.6a51.2 51.2 0 0 1 51.2 51.2v153.6a51.2 51.2 0 0 1-51.2 51.2H51.2a51.2 51.2 0 0 1-51.2-51.2V665.6a51.2 51.2 0 0 1 51.2-51.2z",fill:"#175AA7","p-id":"1425"},null,-1)),$t=r(()=>t("path",{d:"M167.936 451.84L186.197333 426.666667l15.786667-21.674667A51.2 51.2 0 0 1 243.370667 384h536.149333a51.2 51.2 0 0 1 41.386667 21.077333L985.429333 640h31.232L841.642667 390.058667A76.8 76.8 0 0 0 779.52 358.4H243.370667a76.8 76.8 0 0 0-62.122667 31.658667l-34.133333 47.104L5.12 640h31.232z",fill:"#175AA7","p-id":"1426"},null,-1)),bt=[ht,vt,ft,Ft,mt,wt,zt,Dt,yt,Et,At,$t],Mt=r(()=>t("div",{class:"wizard-item_name"}," \u8DEF\u7531\u6A21\u5F0F ",-1)),Bt=r(()=>t("div",{class:"wizard-item_icon"},[t("svg",{t:"1658387243046",class:"icon",viewBox:"0 0 1137 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"40015",width:"128",height:"128"},[t("path",{d:"M0.967111 0.967111h1135.445333V244.622222H0.967111z",fill:"#5B8FD9","p-id":"40016"}),t("path",{d:"M606.037333 122.766222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#FE6D68","p-id":"40017"}),t("path",{d:"M771.015111 122.766222a47.160889 47.160889 0 1 0 94.321778 0 47.160889 47.160889 0 0 0-94.321778 0z",fill:"#F9D65D","p-id":"40018"}),t("path",{d:"M932.124444 122.766222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#68D279","p-id":"40019"}),t("path",{d:"M0.967111 370.289778h1135.445333v243.598222H0.967111z",fill:"#5B8FD9","p-id":"40020"}),t("path",{d:"M606.037333 488.106667a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#FE6D68","p-id":"40021"}),t("path",{d:"M771.015111 488.106667a47.160889 47.160889 0 1 0 94.321778 0 47.160889 47.160889 0 0 0-94.321778 0z",fill:"#F9D65D","p-id":"40022"}),t("path",{d:"M932.124444 488.106667a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#68D279","p-id":"40023"}),t("path",{d:"M0.967111 735.687111h1135.445333v243.541333H0.967111z",fill:"#5B8FD9","p-id":"40024"}),t("path",{d:"M606.037333 857.486222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#FE6D68","p-id":"40025"}),t("path",{d:"M771.015111 857.486222a47.160889 47.160889 0 1 0 94.321778 0 47.160889 47.160889 0 0 0-94.321778 0z",fill:"#F9D65D","p-id":"40026"}),t("path",{d:"M932.124444 857.486222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#68D279","p-id":"40027"})])],-1)),Ct=r(()=>t("div",{class:"wizard-item_name"}," NAS\u6A21\u5F0F ",-1)),gt=[Bt,Ct],xt=$({__name:"wizard",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(n,{emit:u}){const c=M(!1),l=b(),o=()=>f(this,null,function*(){c.value||(yield F("router"))}),d=()=>f(this,null,function*(){c.value||(yield F("next-nas"))}),F=p=>f(this,null,function*(){c.value=!0;try{const s=yield z.Istorex.Updata.POST({model:p});if(s.data){const{success:e,error:a}=s.data;if(a)throw a;e===0&&l.push({path:`/${p}`})}}catch(s){v.Error(`${s}`)}finally{c.value=!1}});return(p,s)=>(h(),y("div",dt,[t("h1",rt,O(q(G).HostName)+" \u5411\u5BFC\u6A21\u5F0F",1),t("div",ct,[t("div",{class:"wizard-item",onClick:s[0]||(s[0]=e=>o())},[t("div",pt,[(h(),y("svg",_t,bt))]),Mt]),t("div",{class:"wizard-item",onClick:s[1]||(s[1]=e=>d())},gt)])]))}});var Pt=A(xt,[["__scopeId","data-v-041c9ebc"]]);const k=n=>(g("data-v-72afa128"),n=n(),x(),n),St=k(()=>t("div",{class:"title"},[t("span",null,"PPPoE \u4E0A\u7F51"),U(" \u8F93\u5165\u7528\u6237\u8D26\u53F7\u548C\u5BC6\u7801 ")],-1)),kt={class:"form-item"},It=k(()=>t("span",{class:"name"}," \u7528\u6237\u540D ",-1)),Tt={class:"form-item"},Vt=k(()=>t("span",{class:"name"},"\u5BC6\u7801",-1)),Lt={class:"btns"},Ht=["disabled"],Ut=["disabled"],Nt=$({__name:"router-pppoe",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(c,l){return f(this,arguments,function*(n,{emit:u}){let o,d;const F=b(),p=()=>{u("update:setup","router")},s=H({account:"",password:""}),e=M(!1),a=()=>f(this,null,function*(){e.value=!0;try{const m=yield z.Guide.Pppoe.GET(),{result:i}=m.data;i&&(s.account=i.account||"",s.password=i.password||"")}catch(m){}finally{}e.value=!1});[o,d]=W(()=>a()),yield o,d();const _=()=>f(this,null,function*(){if(s.account==""){v.Warning("\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A");return}if(s.password==""){v.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}e.value=!0;const m=v.Loading("\u4FDD\u5B58\u4E2D...");try{const i=yield z.Guide.Pppoe.POST({account:s.account,password:s.password});if(i.data){const{error:w,success:I}=i.data;if(w)throw w;(I==null||I==0)&&(yield D())}}catch(i){v.Error(`${i}`)}finally{e.value=!1,m.Close()}}),D=()=>f(this,null,function*(){e.value=!0;try{const m=yield z.Istorex.Updata.POST({model:"router"});if(m.data){const{success:i,error:w}=m.data;if(w)throw w;i===0&&F.push({path:"/router"})}}catch(m){v.Error(`${m}`)}finally{e.value=!1}});return(m,i)=>(h(),y("form",null,[St,t("div",kt,[It,t("label",null,[C(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7","onUpdate:modelValue":i[0]||(i[0]=w=>s.account=w)},null,512),[[T,s.account,void 0,{trim:!0}]])])]),t("div",Tt,[Vt,t("label",null,[C(t("input",{type:"password",placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801","onUpdate:modelValue":i[1]||(i[1]=w=>s.password=w)},null,512),[[T,s.password,void 0,{trim:!0}]])])]),t("div",Lt,[t("button",{class:"back",type:"button",disabled:e.value,onClick:i[2]||(i[2]=w=>p())},"\u4E0A\u4E00\u6B65",8,Ht),t("button",{class:"next",type:"button",disabled:e.value,onClick:_},"\u4FDD\u5B58\u5E94\u7528",8,Ut)])]))})}});var Ot=A(Nt,[["__scopeId","data-v-72afa128"]]);const B=n=>(g("data-v-56e86acc"),n=n(),x(),n),qt=B(()=>t("div",{class:"title"},[t("span",null,"DHCP\u914D\u7F6E"),U(" \u81EA\u52A8\u8054\u7F51 ")],-1)),Gt={class:"form-item"},Wt=B(()=>t("span",{class:"name"}," IP\u5730\u5740 ",-1)),Rt=B(()=>t("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6",-1)),jt=[Rt],Jt={class:"form-item"},Kt=B(()=>t("span",{class:"name"}," DNS ",-1)),Qt=B(()=>t("option",{value:"auto"},"\u81EA\u52A8\u83B7\u53D6",-1)),Xt=[Qt],Yt={class:"btns"},Zt=["disabled"],t6=["disabled"],e6=$({__name:"router-dhcp",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(n,{emit:u}){const c=b(),l=()=>{u("update:setup","router")},o=M(!1),d=H({wanProto:"dhcp",dnsProto:"auto"}),F=()=>f(this,null,function*(){const s={wanProto:d.wanProto,dnsProto:d.dnsProto};o.value=!0;const e=v.Loading("\u4FDD\u5B58\u4E2D...");try{const a=yield z.Guide.ClientModel.POST(s);if(a!=null&&a.data){const{success:_,error:D}=a==null?void 0:a.data;if(D)throw D;(_==null||_==0)&&(yield p())}}catch(a){v.Error(`${a}`)}finally{o.value=!1,e.Close()}}),p=()=>f(this,null,function*(){o.value=!0;try{const s=yield z.Istorex.Updata.POST({model:"router"});if(s.data){const{success:e,error:a}=s.data;if(a)throw a;e===0&&c.push({path:"/router"})}}catch(s){v.Error(`${s}`)}finally{o.value=!1}});return(s,e)=>(h(),y("form",null,[qt,t("div",Gt,[Wt,t("label",null,[C(t("select",{"onUpdate:modelValue":e[0]||(e[0]=a=>d.wanProto=a),disabled:""},jt,512),[[V,d.wanProto]])])]),t("div",Jt,[Kt,t("label",null,[C(t("select",{"onUpdate:modelValue":e[1]||(e[1]=a=>d.dnsProto=a),disabled:""},Xt,512),[[V,d.dnsProto]])])]),t("div",Yt,[t("button",{class:"back",type:"button",disabled:o.value,onClick:e[2]||(e[2]=a=>l())},"\u4E0A\u4E00\u6B65",8,Zt),t("button",{class:"next",type:"button",disabled:o.value,onClick:F},"\u4FDD\u5B58\u5E94\u7528",8,t6)])]))}});var s6=A(e6,[["__scopeId","data-v-56e86acc"]]);const a6={id:"main"},o6=$({__name:"index",setup(n){b();const u=M("wizard");return(c,l)=>(h(),y("div",a6,[(h(),E(j,null,{default:L(()=>[S(R,{name:"slide-top"},{default:L(()=>[u.value=="nas"?(h(),E(it,{key:0,setup:u.value,"onUpdate:setup":l[0]||(l[0]=o=>u.value=o)},null,8,["setup"])):u.value=="router"?(h(),E(ot,{key:1,setup:u.value,"onUpdate:setup":l[1]||(l[1]=o=>u.value=o)},null,8,["setup"])):u.value=="router-pppoe"?(h(),E(Ot,{key:2,setup:u.value,"onUpdate:setup":l[2]||(l[2]=o=>u.value=o)},null,8,["setup"])):u.value=="router-dhcp"?(h(),E(s6,{key:3,setup:u.value,"onUpdate:setup":l[3]||(l[3]=o=>u.value=o)},null,8,["setup"])):(h(),E(Pt,{key:4,setup:u.value,"onUpdate:setup":l[4]||(l[4]=o=>u.value=o)},null,8,["setup"]))]),_:1})]),_:1}))]))}});var l6=A(o6,[["__scopeId","data-v-06e7b595"]]);export{l6 as default}; +var f=(n,u,c)=>new Promise((l,o)=>{var d=s=>{try{p(c.next(s))}catch(e){o(e)}},F=s=>{try{p(c.throw(s))}catch(e){o(e)}},p=s=>s.done?l(s.value):Promise.resolve(s.value).then(d,F);p((c=c.apply(n,u)).next())});import{d as $,M as b,s as M,r as N,o as h,c as y,a as t,b as S,_ as A,T as v,C as z,p as g,q as x,l as O,g as q,n as G,j as H,v as W,x as C,A as T,z as U,D as V,e as E,w as L,N as R,S as j}from"./index.js?v=bc5d78ec";const P=n=>(g("data-v-7b2637d8"),n=n(),x(),n),J=P(()=>t("div",{class:"f"},[t("div",{class:"titleMain"},"\u4E92\u8054\u7F51"),t("div",{class:"titleSub"},"\u8054\u673A\u7C7B\u578B")],-1)),K={class:"r"},Q=P(()=>t("div",{class:"title"}," \u8BF7\u5728\u4EE5\u4E0B\u9009\u9879\u4E2D\u9009\u62E9\u7F51\u7EDC\u8FDE\u63A5\u7C7B\u578B\u3002\u82E5\u60A8\u4E0D\u77E5\u9053\u7F51\u7EDC\u8FDE\u63A5\u7C7B\u578B\uFF0C\u8BF7\u54A8\u8BE2\u60A8\u7684\u7F51\u7EDC\u670D\u52A1\u4F9B\u5E94\u5546\uFF08ISP\uFF09\u3002 ",-1)),X={class:"selector-container"},Y=P(()=>t("div",{class:"select-bar"}," \u81EA\u52A8\u8054\u7F51\uFF08\u52A8\u6001IP\uFF09 ",-1)),Z={class:"narrow-container"},tt=P(()=>t("div",{class:"select-bar"}," \u62E8\u53F7\u8054\u7F51\uFF08PPPoE\uFF09 ",-1)),et={class:"narrow-container"},st={class:"btns"},at=$({__name:"router",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(n,{emit:u}){const c=b(),l=()=>{u("update:setup","wizard")},o=()=>{u("update:setup","router-pppoe")},d=M(!1),F=()=>f(this,null,function*(){const s={wanProto:"dhcp",dnsProto:"auto"};d.value=!0;const e=v.Loading("\u4FDD\u5B58\u4E2D...");try{const a=yield z.Guide.ClientModel.POST(s);if(a!=null&&a.data){const{success:_,error:D}=a==null?void 0:a.data;if(D)throw D;(_==null||_==0)&&(yield p())}}catch(a){v.Error(`${a}`)}finally{d.value=!1,e.Close()}}),p=()=>f(this,null,function*(){const s=v.Loading("\u914D\u7F6E\u4E2D...");try{const e=yield z.Istorex.Updata.POST({model:"router"});if(e.data){const{success:a,error:_}=e.data;if(_)throw _;a===0&&c.push({path:"/router"})}}catch(e){v.Error(`${e}`)}finally{s.Close()}});return(s,e)=>{const a=N("icon-right");return h(),y("form",null,[J,t("div",K,[Q,t("div",X,[t("div",{class:"selector-container_item",onClick:e[0]||(e[0]=_=>F())},[Y,t("div",Z,[S(a)])]),t("div",{class:"selector-container_item",onClick:e[1]||(e[1]=_=>o())},[tt,t("div",et,[S(a)])])]),t("div",st,[t("button",{class:"back",type:"button",onClick:e[2]||(e[2]=_=>l())},"\u4E0A\u4E00\u6B65"),t("button",{class:"next",type:"button",onClick:e[3]||(e[3]=_=>p())}," \u4E0D\u914D\u7F6E\uFF0C\u8FDB\u5165\u4E3B\u754C\u9762 ")])])])}}});var ot=A(at,[["__scopeId","data-v-7b2637d8"]]);const ut={},nt={class:"main"};function lt(n,u){return h(),y("div",nt)}var it=A(ut,[["render",lt]]);const r=n=>(g("data-v-041c9ebc"),n=n(),x(),n),dt={id:"wizard"},rt={class:"wizard_title"},ct={class:"wizard_body"},pt={class:"wizard-item_icon"},_t={t:"1654871923674",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1414",width:"128",height:"128",style:{padding:"5px"}},ht=r(()=>t("path",{d:"M247.466667 76.8h25.6l51.2 307.2h-25.6L247.466667 76.8zM762.453333 76.8h25.6L742.4 385.706667h-25.6L762.453333 76.8z",fill:"#96CAFF","p-id":"1415"},null,-1)),vt=r(()=>t("path",{d:"M275.2 409.6H324.266667L256.938667 51.2H230.4zM230.4 25.6h26.538667a25.6 25.6 0 0 1 25.173333 20.906667l67.242667 358.4A25.6 25.6 0 0 1 324.266667 435.2h-49.066667a25.6 25.6 0 0 1-25.6-22.442667L204.8 54.357333A25.6 25.6 0 0 1 227.242667 25.6zM785.066667 51.2l-44.885334 358.4H691.2l67.242667-358.4z m0-25.6h-26.624a25.6 25.6 0 0 0-25.173334 20.906667l-67.157333 358.4A25.6 25.6 0 0 0 691.2 435.2h48.981333a25.6 25.6 0 0 0 25.6-22.442667l44.885334-358.4A25.6 25.6 0 0 0 788.138667 25.6z",fill:"#175AA7","p-id":"1416"},null,-1)),ft=r(()=>t("path",{d:"M59.733333 665.6h930.133334a8.533333 8.533333 0 0 1 8.533333 8.533333v162.133334a8.533333 8.533333 0 0 1-8.533333 8.533333H59.733333a8.533333 8.533333 0 0 1-8.533333-8.533333V674.133333a8.533333 8.533333 0 0 1 8.533333-8.533333z",fill:"#96CAFF","p-id":"1417"},null,-1)),Ft=r(()=>t("path",{d:"M460.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM716.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM588.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM844.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8z",fill:"#175AA7","p-id":"1418"},null,-1)),mt=r(()=>t("path",{d:"M153.6 844.8h68.693333l-25.6 76.8H179.2l-25.6-76.8z",fill:"#96CAFF","p-id":"1419"},null,-1)),wt=r(()=>t("path",{d:"M203.434667 844.8h8.533333l12.629333 17.493333-2.730666 8.106667h-26.965334z m-74.069334 0h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM102.4 844.8h128l-25.6 76.8h-76.8z",fill:"#175AA7","p-id":"1420"},null,-1)),zt=r(()=>t("path",{d:"M844.8 844.8h68.693333l-25.6 76.8H870.4l-25.6-76.8z",fill:"#96CAFF","p-id":"1421"},null,-1)),Dt=r(()=>t("path",{d:"M913.066667 870.4l2.730666-8.106667-12.629333-17.493333h-8.533333l-8.533334 25.6z m-92.501334-25.6h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM793.6 844.8h128l-25.6 76.8h-76.8zM204.8 768h25.6v25.6h-25.6zM281.6 768h25.6v25.6h-25.6zM128 768h25.6v25.6h-25.6zM358.4 768h25.6v25.6h-25.6zM204.8 716.8h25.6v25.6h-25.6zM281.6 716.8h25.6v25.6h-25.6zM128 716.8h25.6v25.6h-25.6zM358.4 716.8h25.6v25.6h-25.6z",fill:"#175AA7","p-id":"1422"},null,-1)),yt=r(()=>t("path",{d:"M69.12 640l176.128-249.941333A76.8 76.8 0 0 1 307.2 358.4h441.6A76.8 76.8 0 0 1 810.666667 390.058667L986.026667 640",fill:"#B3D9FF","p-id":"1423"},null,-1)),Et=r(()=>t("path",{d:"M742.4 358.4l187.050667 256.597333h57.941333L805.290667 358.4H742.4z",fill:"#96CAFF","p-id":"1424"},null,-1)),At=r(()=>t("path",{d:"M51.2 640a25.6 25.6 0 0 0-25.6 25.6v153.6a25.6 25.6 0 0 0 25.6 25.6h921.6a25.6 25.6 0 0 0 25.6-25.6V665.6a25.6 25.6 0 0 0-25.6-25.6z m0-25.6h921.6a51.2 51.2 0 0 1 51.2 51.2v153.6a51.2 51.2 0 0 1-51.2 51.2H51.2a51.2 51.2 0 0 1-51.2-51.2V665.6a51.2 51.2 0 0 1 51.2-51.2z",fill:"#175AA7","p-id":"1425"},null,-1)),$t=r(()=>t("path",{d:"M167.936 451.84L186.197333 426.666667l15.786667-21.674667A51.2 51.2 0 0 1 243.370667 384h536.149333a51.2 51.2 0 0 1 41.386667 21.077333L985.429333 640h31.232L841.642667 390.058667A76.8 76.8 0 0 0 779.52 358.4H243.370667a76.8 76.8 0 0 0-62.122667 31.658667l-34.133333 47.104L5.12 640h31.232z",fill:"#175AA7","p-id":"1426"},null,-1)),bt=[ht,vt,ft,Ft,mt,wt,zt,Dt,yt,Et,At,$t],Mt=r(()=>t("div",{class:"wizard-item_name"}," \u8DEF\u7531\u6A21\u5F0F ",-1)),Bt=r(()=>t("div",{class:"wizard-item_icon"},[t("svg",{t:"1658387243046",class:"icon",viewBox:"0 0 1137 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"40015",width:"128",height:"128"},[t("path",{d:"M0.967111 0.967111h1135.445333V244.622222H0.967111z",fill:"#5B8FD9","p-id":"40016"}),t("path",{d:"M606.037333 122.766222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#FE6D68","p-id":"40017"}),t("path",{d:"M771.015111 122.766222a47.160889 47.160889 0 1 0 94.321778 0 47.160889 47.160889 0 0 0-94.321778 0z",fill:"#F9D65D","p-id":"40018"}),t("path",{d:"M932.124444 122.766222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#68D279","p-id":"40019"}),t("path",{d:"M0.967111 370.289778h1135.445333v243.598222H0.967111z",fill:"#5B8FD9","p-id":"40020"}),t("path",{d:"M606.037333 488.106667a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#FE6D68","p-id":"40021"}),t("path",{d:"M771.015111 488.106667a47.160889 47.160889 0 1 0 94.321778 0 47.160889 47.160889 0 0 0-94.321778 0z",fill:"#F9D65D","p-id":"40022"}),t("path",{d:"M932.124444 488.106667a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#68D279","p-id":"40023"}),t("path",{d:"M0.967111 735.687111h1135.445333v243.541333H0.967111z",fill:"#5B8FD9","p-id":"40024"}),t("path",{d:"M606.037333 857.486222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#FE6D68","p-id":"40025"}),t("path",{d:"M771.015111 857.486222a47.160889 47.160889 0 1 0 94.321778 0 47.160889 47.160889 0 0 0-94.321778 0z",fill:"#F9D65D","p-id":"40026"}),t("path",{d:"M932.124444 857.486222a47.160889 47.160889 0 1 0 94.264889 0 47.160889 47.160889 0 0 0-94.264889 0z",fill:"#68D279","p-id":"40027"})])],-1)),Ct=r(()=>t("div",{class:"wizard-item_name"}," NAS\u6A21\u5F0F ",-1)),gt=[Bt,Ct],xt=$({__name:"wizard",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(n,{emit:u}){const c=M(!1),l=b(),o=()=>f(this,null,function*(){c.value||(yield F("router"))}),d=()=>f(this,null,function*(){c.value||(yield F("next-nas"))}),F=p=>f(this,null,function*(){c.value=!0;try{const s=yield z.Istorex.Updata.POST({model:p});if(s.data){const{success:e,error:a}=s.data;if(a)throw a;e===0&&l.push({path:`/${p}`})}}catch(s){v.Error(`${s}`)}finally{c.value=!1}});return(p,s)=>(h(),y("div",dt,[t("h1",rt,O(q(G).HostName)+" \u5411\u5BFC\u6A21\u5F0F",1),t("div",ct,[t("div",{class:"wizard-item",onClick:s[0]||(s[0]=e=>o())},[t("div",pt,[(h(),y("svg",_t,bt))]),Mt]),t("div",{class:"wizard-item",onClick:s[1]||(s[1]=e=>d())},gt)])]))}});var Pt=A(xt,[["__scopeId","data-v-041c9ebc"]]);const k=n=>(g("data-v-72afa128"),n=n(),x(),n),St=k(()=>t("div",{class:"title"},[t("span",null,"PPPoE \u4E0A\u7F51"),U(" \u8F93\u5165\u7528\u6237\u8D26\u53F7\u548C\u5BC6\u7801 ")],-1)),kt={class:"form-item"},It=k(()=>t("span",{class:"name"}," \u7528\u6237\u540D ",-1)),Tt={class:"form-item"},Vt=k(()=>t("span",{class:"name"},"\u5BC6\u7801",-1)),Lt={class:"btns"},Ht=["disabled"],Ut=["disabled"],Nt=$({__name:"router-pppoe",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(c,l){return f(this,arguments,function*(n,{emit:u}){let o,d;const F=b(),p=()=>{u("update:setup","router")},s=H({account:"",password:""}),e=M(!1),a=()=>f(this,null,function*(){e.value=!0;try{const m=yield z.Guide.Pppoe.GET(),{result:i}=m.data;i&&(s.account=i.account||"",s.password=i.password||"")}catch(m){}finally{}e.value=!1});[o,d]=W(()=>a()),yield o,d();const _=()=>f(this,null,function*(){if(s.account==""){v.Warning("\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A");return}if(s.password==""){v.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}e.value=!0;const m=v.Loading("\u4FDD\u5B58\u4E2D...");try{const i=yield z.Guide.Pppoe.POST({account:s.account,password:s.password});if(i.data){const{error:w,success:I}=i.data;if(w)throw w;(I==null||I==0)&&(yield D())}}catch(i){v.Error(`${i}`)}finally{e.value=!1,m.Close()}}),D=()=>f(this,null,function*(){e.value=!0;try{const m=yield z.Istorex.Updata.POST({model:"router"});if(m.data){const{success:i,error:w}=m.data;if(w)throw w;i===0&&F.push({path:"/router"})}}catch(m){v.Error(`${m}`)}finally{e.value=!1}});return(m,i)=>(h(),y("form",null,[St,t("div",kt,[It,t("label",null,[C(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7","onUpdate:modelValue":i[0]||(i[0]=w=>s.account=w)},null,512),[[T,s.account,void 0,{trim:!0}]])])]),t("div",Tt,[Vt,t("label",null,[C(t("input",{type:"password",placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801","onUpdate:modelValue":i[1]||(i[1]=w=>s.password=w)},null,512),[[T,s.password,void 0,{trim:!0}]])])]),t("div",Lt,[t("button",{class:"back",type:"button",disabled:e.value,onClick:i[2]||(i[2]=w=>p())},"\u4E0A\u4E00\u6B65",8,Ht),t("button",{class:"next",type:"button",disabled:e.value,onClick:_},"\u4FDD\u5B58\u5E94\u7528",8,Ut)])]))})}});var Ot=A(Nt,[["__scopeId","data-v-72afa128"]]);const B=n=>(g("data-v-56e86acc"),n=n(),x(),n),qt=B(()=>t("div",{class:"title"},[t("span",null,"DHCP\u914D\u7F6E"),U(" \u81EA\u52A8\u8054\u7F51 ")],-1)),Gt={class:"form-item"},Wt=B(()=>t("span",{class:"name"}," IP\u5730\u5740 ",-1)),Rt=B(()=>t("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6",-1)),jt=[Rt],Jt={class:"form-item"},Kt=B(()=>t("span",{class:"name"}," DNS ",-1)),Qt=B(()=>t("option",{value:"auto"},"\u81EA\u52A8\u83B7\u53D6",-1)),Xt=[Qt],Yt={class:"btns"},Zt=["disabled"],t6=["disabled"],e6=$({__name:"router-dhcp",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(n,{emit:u}){const c=b(),l=()=>{u("update:setup","router")},o=M(!1),d=H({wanProto:"dhcp",dnsProto:"auto"}),F=()=>f(this,null,function*(){const s={wanProto:d.wanProto,dnsProto:d.dnsProto};o.value=!0;const e=v.Loading("\u4FDD\u5B58\u4E2D...");try{const a=yield z.Guide.ClientModel.POST(s);if(a!=null&&a.data){const{success:_,error:D}=a==null?void 0:a.data;if(D)throw D;(_==null||_==0)&&(yield p())}}catch(a){v.Error(`${a}`)}finally{o.value=!1,e.Close()}}),p=()=>f(this,null,function*(){o.value=!0;try{const s=yield z.Istorex.Updata.POST({model:"router"});if(s.data){const{success:e,error:a}=s.data;if(a)throw a;e===0&&c.push({path:"/router"})}}catch(s){v.Error(`${s}`)}finally{o.value=!1}});return(s,e)=>(h(),y("form",null,[qt,t("div",Gt,[Wt,t("label",null,[C(t("select",{"onUpdate:modelValue":e[0]||(e[0]=a=>d.wanProto=a),disabled:""},jt,512),[[V,d.wanProto]])])]),t("div",Jt,[Kt,t("label",null,[C(t("select",{"onUpdate:modelValue":e[1]||(e[1]=a=>d.dnsProto=a),disabled:""},Xt,512),[[V,d.dnsProto]])])]),t("div",Yt,[t("button",{class:"back",type:"button",disabled:o.value,onClick:e[2]||(e[2]=a=>l())},"\u4E0A\u4E00\u6B65",8,Zt),t("button",{class:"next",type:"button",disabled:o.value,onClick:F},"\u4FDD\u5B58\u5E94\u7528",8,t6)])]))}});var s6=A(e6,[["__scopeId","data-v-56e86acc"]]);const a6={id:"main"},o6=$({__name:"index",setup(n){b();const u=M("wizard");return(c,l)=>(h(),y("div",a6,[(h(),E(j,null,{default:L(()=>[S(R,{name:"slide-top"},{default:L(()=>[u.value=="nas"?(h(),E(it,{key:0,setup:u.value,"onUpdate:setup":l[0]||(l[0]=o=>u.value=o)},null,8,["setup"])):u.value=="router"?(h(),E(ot,{key:1,setup:u.value,"onUpdate:setup":l[1]||(l[1]=o=>u.value=o)},null,8,["setup"])):u.value=="router-pppoe"?(h(),E(Ot,{key:2,setup:u.value,"onUpdate:setup":l[2]||(l[2]=o=>u.value=o)},null,8,["setup"])):u.value=="router-dhcp"?(h(),E(s6,{key:3,setup:u.value,"onUpdate:setup":l[3]||(l[3]=o=>u.value=o)},null,8,["setup"])):(h(),E(Pt,{key:4,setup:u.value,"onUpdate:setup":l[4]||(l[4]=o=>u.value=o)},null,8,["setup"]))]),_:1})]),_:1}))]))}});var l6=A(o6,[["__scopeId","data-v-06e7b595"]]);export{l6 as default}; diff --git a/linkease/luci-app-istorex/htdocs/luci-static/istorex/index.js b/linkease/luci-app-istorex/htdocs/luci-static/istorex/index.js index 2adc77b1..53902725 100644 --- a/linkease/luci-app-istorex/htdocs/luci-static/istorex/index.js +++ b/linkease/luci-app-istorex/htdocs/luci-static/istorex/index.js @@ -33,4 +33,4 @@ j.version="2.29.4";d4(ze);j.fn=B;j.min=Z_;j.max=Q_;j.now=ep;j.utc=yn;j.unix=D8;j * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const xs=typeof window!="undefined";function w7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const $e=Object.assign;function Oo(e,t){const n={};for(const s in t){const r=t[s];n[s]=ln(r)?r.map(e):e(r)}return n}const Or=()=>{},ln=Array.isArray,S7=/\/$/,C7=e=>e.replace(S7,"");function Po(e,t,n="/"){let s,r={},a="",o="";const i=t.indexOf("#");let l=t.indexOf("?");return i=0&&(l=-1),l>-1&&(s=t.slice(0,l),a=t.slice(l+1,i>-1?i:t.length),r=e(a)),i>-1&&(s=s||t.slice(0,i),o=t.slice(i,t.length)),s=O7(s!=null?s:t,n),{fullPath:s+(a&&"?")+a+o,path:s,query:r,hash:o}}function T7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function uc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function F7(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Zs(t.matched[s],n.matched[r])&&i1(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function i1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!D7(e[n],t[n]))return!1;return!0}function D7(e,t){return ln(e)?cc(e,t):ln(t)?cc(t,e):e===t}function cc(e,t){return ln(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function O7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let a=n.length-1,o,i;for(o=0;o1&&a--;else break;return n.slice(0,a).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var jr;(function(e){e.pop="pop",e.push="push"})(jr||(jr={}));var Pr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pr||(Pr={}));function P7(e){if(!e)if(xs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),C7(e)}const N7=/^[^#]+#/;function I7(e,t){return e.replace(N7,"#")+t}function L7(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const fo=()=>({left:window.pageXOffset,top:window.pageYOffset});function M7(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=L7(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function dc(e,t){return(history.state?history.state.position-t:-1)+e}const pi=new Map;function A7(e,t){pi.set(e,t)}function x7(e){const t=pi.get(e);return pi.delete(e),t}let $7=()=>location.protocol+"//"+location.host;function l1(e,t){const{pathname:n,search:s,hash:r}=t,a=e.indexOf("#");if(a>-1){let i=r.includes(e.slice(a))?e.slice(a).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),uc(l,"")}return uc(n,e)+s+r}function R7(e,t,n,s){let r=[],a=[],o=null;const i=({state:p})=>{const y=l1(e,location),E=n.value,C=t.value;let F=0;if(p){if(n.value=y,t.value=p,o&&o===E){o=null;return}F=C?p.position-C.position:0}else s(y);r.forEach(g=>{g(n.value,E,{delta:F,type:jr.pop,direction:F?F>0?Pr.forward:Pr.back:Pr.unknown})})};function l(){o=n.value}function u(p){r.push(p);const y=()=>{const E=r.indexOf(p);E>-1&&r.splice(E,1)};return a.push(y),y}function c(){const{history:p}=window;!p.state||p.replaceState($e({},p.state,{scroll:fo()}),"")}function _(){for(const p of a)p();a=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:_}}function fc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?fo():null}}function B7(e){const{history:t,location:n}=window,s={value:l1(e,n)},r={value:t.state};r.value||a(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const _=e.indexOf("#"),p=_>-1?(n.host&&document.querySelector("base")?e:e.slice(_))+l:$7()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),r.value=u}catch(y){console.error(y),n[c?"replace":"assign"](p)}}function o(l,u){const c=$e({},t.state,fc(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});a(l,c,!0),s.value=l}function i(l,u){const c=$e({},r.value,t.state,{forward:l,scroll:fo()});a(c.current,c,!0);const _=$e({},fc(s.value,l,null),{position:c.position+1},u);a(l,_,!1),s.value=l}return{location:s,state:r,push:i,replace:o}}function u1(e){e=P7(e);const t=B7(e),n=R7(e,t.state,t.location,t.replace);function s(a,o=!0){o||n.pauseListeners(),history.go(a)}const r=$e({location:"",base:e,go:s,createHref:I7.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function U7(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),u1(e)}function Y7(e){return typeof e=="string"||e&&typeof e=="object"}function c1(e){return typeof e=="string"||typeof e=="symbol"}const Hn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},d1=Symbol("");var hc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(hc||(hc={}));function Qs(e,t){return $e(new Error,{type:e,[d1]:!0},t)}function wn(e,t){return e instanceof Error&&d1 in e&&(t==null||!!(e.type&t))}const _c="[^/]+?",H7={sensitive:!1,strict:!1,start:!0,end:!0},W7=/[.+*?^${}()[\]/\\]/g;function V7(e,t){const n=$e({},H7,t),s=[];let r=n.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let _=0;_t.length?t.length===1&&t[0]===40+40?1:-1:0}function G7(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const z7={type:0,value:""},K7=/[a-zA-Z0-9_]/;function q7(e){if(!e)return[[]];if(e==="/")return[[z7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${u}": ${y}`)}let n=0,s=n;const r=[];let a;function o(){a&&r.push(a),a=[]}let i=0,l,u="",c="";function _(){!u||(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;i{o(k)}:Or}function o(c){if(c1(c)){const _=s.get(c);_&&(s.delete(c),n.splice(n.indexOf(_),1),_.children.forEach(o),_.alias.forEach(o))}else{const _=n.indexOf(c);_>-1&&(n.splice(_,1),c.record.name&&s.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function i(){return n}function l(c){let _=0;for(;_=0&&(c.record.path!==n[_].record.path||!f1(c,n[_]));)_++;n.splice(_,0,c),c.record.name&&!gc(c)&&s.set(c.record.name,c)}function u(c,_){let p,y={},E,C;if("name"in c&&c.name){if(p=s.get(c.name),!p)throw Qs(1,{location:c});C=p.record.name,y=$e(mc(_.params,p.keys.filter(k=>!k.optional).map(k=>k.name)),c.params&&mc(c.params,p.keys.map(k=>k.name))),E=p.stringify(y)}else if("path"in c)E=c.path,p=n.find(k=>k.re.test(E)),p&&(y=p.parse(E),C=p.record.name);else{if(p=_.name?s.get(_.name):n.find(k=>k.re.test(_.path)),!p)throw Qs(1,{location:c,currentLocation:_});C=p.record.name,y=$e({},_.params,c.params),E=p.stringify(y)}const F=[];let g=p;for(;g;)F.unshift(g.record),g=g.parent;return{name:C,path:E,params:y,matched:F,meta:e9(F)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:i,getRecordMatcher:r}}function mc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Z7(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Q7(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Q7(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function e9(e){return e.reduce((t,n)=>$e(t,n.meta),{})}function vc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function f1(e,t){return t.children.some(n=>n===e||f1(e,n))}const h1=/#/g,t9=/&/g,n9=/\//g,s9=/=/g,r9=/\?/g,_1=/\+/g,a9=/%5B/g,o9=/%5D/g,p1=/%5E/g,i9=/%60/g,m1=/%7B/g,l9=/%7C/g,g1=/%7D/g,u9=/%20/g;function bl(e){return encodeURI(""+e).replace(l9,"|").replace(a9,"[").replace(o9,"]")}function c9(e){return bl(e).replace(m1,"{").replace(g1,"}").replace(p1,"^")}function mi(e){return bl(e).replace(_1,"%2B").replace(u9,"+").replace(h1,"%23").replace(t9,"%26").replace(i9,"`").replace(m1,"{").replace(g1,"}").replace(p1,"^")}function d9(e){return mi(e).replace(s9,"%3D")}function f9(e){return bl(e).replace(h1,"%23").replace(r9,"%3F")}function h9(e){return e==null?"":f9(e).replace(n9,"%2F")}function La(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function _9(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ra&&mi(a)):[s&&mi(s)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function p9(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ln(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const m9=Symbol(""),bc=Symbol(""),ho=Symbol(""),v1=Symbol(""),gi=Symbol("");function vr(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function jn(e,t,n,s,r){const a=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,i)=>{const l=_=>{_===!1?i(Qs(4,{from:n,to:t})):_ instanceof Error?i(_):Y7(_)?i(Qs(2,{from:t,to:_})):(a&&s.enterCallbacks[r]===a&&typeof _=="function"&&a.push(_),o())},u=e.call(s&&s.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(_=>i(_))})}function No(e,t,n,s){const r=[];for(const a of e)for(const o in a.components){let i=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(g9(i)){const u=(i.__vccOpts||i)[t];u&&r.push(jn(u,n,s,a,o))}else{let l=i();r.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const c=w7(u)?u.default:u;a.components[o]=c;const p=(c.__vccOpts||c)[t];return p&&jn(p,n,s,a,o)()}))}}return r}function g9(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ec(e){const t=ge(ho),n=ge(v1),s=be(()=>t.resolve(X(e.to))),r=be(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],_=n.matched;if(!c||!_.length)return-1;const p=_.findIndex(Zs.bind(null,c));if(p>-1)return p;const y=kc(l[u-2]);return u>1&&kc(c)===y&&_[_.length-1].path!==y?_.findIndex(Zs.bind(null,l[u-2])):p}),a=be(()=>r.value>-1&&E9(n.params,s.value.params)),o=be(()=>r.value>-1&&r.value===n.matched.length-1&&i1(n.params,s.value.params));function i(l={}){return b9(l)?t[X(e.replace)?"replace":"push"](X(e.to)).catch(Or):Promise.resolve()}return{route:s,href:be(()=>s.value.href),isActive:a,isExactActive:o,navigate:i}}const v9=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ec,setup(e,{slots:t}){const n=Tt(Ec(e)),{options:s}=ge(ho),r=be(()=>({[wc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[wc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:qr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},a)}}}),y9=v9;function b9(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function E9(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!ln(r)||r.length!==s.length||s.some((a,o)=>a!==r[o]))return!1}return!0}function kc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const wc=(e,t,n)=>e!=null?e:t!=null?t:n,k9=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ge(gi),r=be(()=>e.route||s.value),a=ge(bc,0),o=be(()=>{let u=X(a);const{matched:c}=r.value;let _;for(;(_=c[u])&&!_.components;)u++;return u}),i=be(()=>r.value.matched[o.value]);Nt(bc,be(()=>o.value+1)),Nt(m9,i),Nt(gi,r);const l=_e();return Zn(()=>[l.value,i.value,e.name],([u,c,_],[p,y,E])=>{c&&(c.instances[_]=u,y&&y!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=y.leaveGuards),c.updateGuards.size||(c.updateGuards=y.updateGuards))),u&&c&&(!y||!Zs(c,y)||!p)&&(c.enterCallbacks[_]||[]).forEach(C=>C(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,_=i.value,p=_&&_.components[c];if(!p)return Sc(n.default,{Component:p,route:u});const y=_.props[c],E=y?y===!0?u.params:typeof y=="function"?y(u):y:null,F=qr(p,$e({},E,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(_.instances[c]=null)},ref:l}));return Sc(n.default,{Component:F,route:u})||F}}});function Sc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const w9=k9;function S9(e){const t=X7(e.routes,e),n=e.parseQuery||_9,s=e.stringifyQuery||yc,r=e.history,a=vr(),o=vr(),i=vr(),l=Kc(Hn);let u=Hn;xs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Oo.bind(null,M=>""+M),_=Oo.bind(null,h9),p=Oo.bind(null,La);function y(M,z){let W,Q;return c1(M)?(W=t.getRecordMatcher(M),Q=z):Q=M,t.addRoute(Q,W)}function E(M){const z=t.getRecordMatcher(M);z&&t.removeRoute(z)}function C(){return t.getRoutes().map(M=>M.record)}function F(M){return!!t.getRecordMatcher(M)}function g(M,z){if(z=$e({},z||l.value),typeof M=="string"){const h=Po(n,M,z.path),m=t.resolve({path:h.path},z),w=r.createHref(h.fullPath);return $e(h,m,{params:p(m.params),hash:La(h.hash),redirectedFrom:void 0,href:w})}let W;if("path"in M)W=$e({},M,{path:Po(n,M.path,z.path).path});else{const h=$e({},M.params);for(const m in h)h[m]==null&&delete h[m];W=$e({},M,{params:_(h)}),z.params=_(z.params)}const Q=t.resolve(W,z),Se=M.hash||"";Q.params=c(p(Q.params));const v=T7(s,$e({},M,{hash:c9(Se),path:Q.path})),f=r.createHref(v);return $e({fullPath:v,hash:Se,query:s===yc?p9(M.query):M.query||{}},Q,{redirectedFrom:void 0,href:f})}function k(M){return typeof M=="string"?Po(n,M,l.value.path):$e({},M)}function P(M,z){if(u!==M)return Qs(8,{from:z,to:M})}function b(M){return V(M)}function D(M){return b($e(k(M),{replace:!0}))}function N(M){const z=M.matched[M.matched.length-1];if(z&&z.redirect){const{redirect:W}=z;let Q=typeof W=="function"?W(M):W;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=k(Q):{path:Q},Q.params={}),$e({query:M.query,hash:M.hash,params:"path"in Q?{}:M.params},Q)}}function V(M,z){const W=u=g(M),Q=l.value,Se=M.state,v=M.force,f=M.replace===!0,h=N(W);if(h)return V($e(k(h),{state:typeof h=="object"?$e({},Se,h.state):Se,force:v,replace:f}),z||W);const m=W;m.redirectedFrom=z;let w;return!v&&F7(s,Q,W)&&(w=Qs(16,{to:m,from:Q}),gt(Q,Q,!0,!1)),(w?Promise.resolve(w):ee(m,Q)).catch(O=>wn(O)?wn(O,2)?O:Ft(O):Ee(O,m,Q)).then(O=>{if(O){if(wn(O,2))return V($e({replace:f},k(O.to),{state:typeof O.to=="object"?$e({},Se,O.to.state):Se,force:v}),z||m)}else O=H(m,Q,!0,f,Se);return he(m,Q,O),O})}function A(M,z){const W=P(M,z);return W?Promise.reject(W):Promise.resolve()}function U(M){const z=Vt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(M):M()}function ee(M,z){let W;const[Q,Se,v]=C9(M,z);W=No(Q.reverse(),"beforeRouteLeave",M,z);for(const h of Q)h.leaveGuards.forEach(m=>{W.push(jn(m,M,z))});const f=A.bind(null,M,z);return W.push(f),Ze(W).then(()=>{W=[];for(const h of a.list())W.push(jn(h,M,z));return W.push(f),Ze(W)}).then(()=>{W=No(Se,"beforeRouteUpdate",M,z);for(const h of Se)h.updateGuards.forEach(m=>{W.push(jn(m,M,z))});return W.push(f),Ze(W)}).then(()=>{W=[];for(const h of v)if(h.beforeEnter)if(ln(h.beforeEnter))for(const m of h.beforeEnter)W.push(jn(m,M,z));else W.push(jn(h.beforeEnter,M,z));return W.push(f),Ze(W)}).then(()=>(M.matched.forEach(h=>h.enterCallbacks={}),W=No(v,"beforeRouteEnter",M,z),W.push(f),Ze(W))).then(()=>{W=[];for(const h of o.list())W.push(jn(h,M,z));return W.push(f),Ze(W)}).catch(h=>wn(h,8)?h:Promise.reject(h))}function he(M,z,W){i.list().forEach(Q=>U(()=>Q(M,z,W)))}function H(M,z,W,Q,Se){const v=P(M,z);if(v)return v;const f=z===Hn,h=xs?history.state:{};W&&(Q||f?r.replace(M.fullPath,$e({scroll:f&&h&&h.scroll},Se)):r.push(M.fullPath,Se)),l.value=M,gt(M,z,W,f),Ft()}let ie;function Ae(){ie||(ie=r.listen((M,z,W)=>{if(!cn.listening)return;const Q=g(M),Se=N(Q);if(Se){V($e(Se,{replace:!0}),Q).catch(Or);return}u=Q;const v=l.value;xs&&A7(dc(v.fullPath,W.delta),fo()),ee(Q,v).catch(f=>wn(f,12)?f:wn(f,2)?(V(f.to,Q).then(h=>{wn(h,20)&&!W.delta&&W.type===jr.pop&&r.go(-1,!1)}).catch(Or),Promise.reject()):(W.delta&&r.go(-W.delta,!1),Ee(f,Q,v))).then(f=>{f=f||H(Q,v,!1),f&&(W.delta&&!wn(f,8)?r.go(-W.delta,!1):W.type===jr.pop&&wn(f,20)&&r.go(-1,!1)),he(Q,v,f)}).catch(Or)}))}let qe=vr(),ce=vr(),we;function Ee(M,z,W){Ft(M);const Q=ce.list();return Q.length?Q.forEach(Se=>Se(M,z,W)):console.error(M),Promise.reject(M)}function pt(){return we&&l.value!==Hn?Promise.resolve():new Promise((M,z)=>{qe.add([M,z])})}function Ft(M){return we||(we=!M,Ae(),qe.list().forEach(([z,W])=>M?W(M):z()),qe.reset()),M}function gt(M,z,W,Q){const{scrollBehavior:Se}=e;if(!xs||!Se)return Promise.resolve();const v=!W&&x7(dc(M.fullPath,0))||(Q||!W)&&history.state&&history.state.scroll||null;return Li().then(()=>Se(M,z,v)).then(f=>f&&M7(f)).catch(f=>Ee(f,M,z))}const nt=M=>r.go(M);let Wt;const Vt=new Set,cn={currentRoute:l,listening:!0,addRoute:y,removeRoute:E,hasRoute:F,getRoutes:C,resolve:g,options:e,push:b,replace:D,go:nt,back:()=>nt(-1),forward:()=>nt(1),beforeEach:a.add,beforeResolve:o.add,afterEach:i.add,onError:ce.add,isReady:pt,install(M){const z=this;M.component("RouterLink",y9),M.component("RouterView",w9),M.config.globalProperties.$router=z,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>X(l)}),xs&&!Wt&&l.value===Hn&&(Wt=!0,b(r.location).catch(Se=>{}));const W={};for(const Se in Hn)Object.defineProperty(W,Se,{get:()=>l.value[Se],enumerable:!0});M.provide(ho,z),M.provide(v1,Wc(W)),M.provide(gi,l);const Q=M.unmount;Vt.add(M),M.unmount=function(){Vt.delete(M),Vt.size<1&&(u=Hn,ie&&ie(),ie=null,l.value=Hn,Wt=!1,we=!1),Q()}}};function Ze(M){return M.reduce((z,W)=>z.then(()=>U(W)),Promise.resolve())}return cn}function C9(e,t){const n=[],s=[],r=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oZs(u,i))?s.push(i):n.push(i));const l=e.matched[o];l&&(t.matched.find(u=>Zs(u,l))||r.push(l))}return[n,s,r]}function T9(){return ge(ho)}const F9={};function D9(e,t){const n=ft("router-view");return S(),Ce(n)}var O9=fe(F9,[["render",D9]]);const P9="modulepreload",Cc={},N9="/",We=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${N9}${s}`,s in Cc)return;Cc[s]=!0;const r=s.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${a}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":P9,r||(o.as="script",o.crossOrigin=""),o.href=s,document.head.appendChild(o),r)return new Promise((i,l)=>{o.addEventListener("load",i),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};var I9={name:"PageRouter",path:"/router",component:()=>We(()=>import("./chunk.71cadbdf.js"),["luci-static/istorex/chunk.71cadbdf.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageRouterHome",redirect:"/router/index"},{path:"index",name:"PageRouterIndex",component:()=>We(()=>import("./chunk.c0888f95.js"),["luci-static/istorex/chunk.c0888f95.js","luci-static/istorex/index.js"])},{path:"network",name:"PageNetwork",component:()=>We(()=>import("./chunk.372b53c8.js"),["luci-static/istorex/chunk.372b53c8.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageNetworkIndex",component:()=>We(()=>import("./chunk.9ca29795.js"),["luci-static/istorex/chunk.9ca29795.js","luci-static/istorex/index.js"])},{path:"pppoe",component:()=>We(()=>import("./chunk.2d0f4d1b.js"),["luci-static/istorex/chunk.2d0f4d1b.js","luci-static/istorex/index.js"])},{path:"dhcp",component:()=>We(()=>import("./chunk.9f039d39.js"),["luci-static/istorex/chunk.9f039d39.js","luci-static/istorex/index.js"])},{path:"gateway",component:()=>We(()=>import("./chunk.64afbfe6.js"),["luci-static/istorex/chunk.64afbfe6.js","luci-static/istorex/index.js"])},{path:"intranet",component:()=>We(()=>import("./chunk.8e0a932e.js"),["luci-static/istorex/chunk.8e0a932e.js","luci-static/istorex/index.js","luci-static/istorex/chunk.6d3585bb.js"])},{path:"dns",component:()=>We(()=>import("./chunk.f1f94373.js"),["luci-static/istorex/chunk.f1f94373.js","luci-static/istorex/index.js"])}]},{path:"setting",name:"PageSetting",component:()=>We(()=>import("./chunk.a73fc5f8.js"),["luci-static/istorex/chunk.a73fc5f8.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageSettingIndex",component:()=>We(()=>import("./chunk.4dd1ba29.js"),["luci-static/istorex/chunk.4dd1ba29.js","luci-static/istorex/index.js"])},{path:"opkg",name:"SettingOpkg",component:()=>We(()=>import("./chunk.f3da3763.js"),["luci-static/istorex/chunk.f3da3763.js","luci-static/istorex/index.js"])},{path:"sandbox",component:()=>We(()=>import("./chunk.96d54eac.js"),["luci-static/istorex/chunk.96d54eac.js","luci-static/istorex/index.js"])},{path:"remotely",component:()=>We(()=>import("./chunk.c880c05b.js"),["luci-static/istorex/chunk.c880c05b.js","luci-static/istorex/index.js"])}]},{path:"disk",component:()=>We(()=>import("./chunk.e2c9ab95.js"),["luci-static/istorex/chunk.e2c9ab95.js","luci-static/istorex/index.js"]),children:[{path:"",component:()=>We(()=>import("./chunk.e7730d0b.js"),["luci-static/istorex/chunk.e7730d0b.js","luci-static/istorex/index.js"])}]},{path:"istore",component:()=>We(()=>import("./chunk.b1c52d7d.js"),["luci-static/istorex/chunk.b1c52d7d.js","luci-static/istorex/index.js"])},{path:"device",component:()=>We(()=>import("./chunk.831a1f21.js"),["luci-static/istorex/chunk.831a1f21.js","luci-static/istorex/index.js"]),children:[{path:"list",component:()=>We(()=>import("./chunk.e2852863.js"),["luci-static/istorex/chunk.e2852863.js","luci-static/istorex/index.js"])},{path:"interface",component:()=>We(()=>import("./chunk.8bab5dde.js"),["luci-static/istorex/chunk.8bab5dde.js","luci-static/istorex/index.js"])}]},{name:"DDNSPage",path:"ddns",component:()=>We(()=>import("./chunk.d44dd332.js"),["luci-static/istorex/chunk.d44dd332.js","luci-static/istorex/index.js"])},{path:":pathMatch(.*)*",name:"notfound",redirect:"/router/index"}]},L9={name:"PageWizard",path:"/wizard",component:()=>We(()=>import("./chunk.1149efac.js"),["luci-static/istorex/chunk.1149efac.js","luci-static/istorex/index.js"])},M9={name:"PageNas",path:"/nas",component:()=>We(()=>import("./chunk.6e445880.js"),["luci-static/istorex/chunk.6e445880.js","luci-static/istorex/index.js"]),children:[{name:"PageNasIndex",path:"",component:()=>We(()=>import("./chunk.a77bd404.js"),["luci-static/istorex/chunk.a77bd404.js","luci-static/istorex/index.js","luci-static/istorex/chunk.af55284f.js"])}]},A9={name:"NextNas",path:"/next-nas",component:()=>We(()=>import("./chunk.7973a978.js"),["luci-static/istorex/chunk.7973a978.js","luci-static/istorex/index.js","luci-static/istorex/chunk.6d3585bb.js","luci-static/istorex/chunk.af55284f.js"])};const x9=S9({history:window.path_base?u1(window.path_base):U7(),routes:[{path:"/",name:"PageIndex",component:O9,beforeEnter(e,t,n){return te(this,null,function*(){switch(it.getModel()){case"nas":n({name:"NextNas"});break;case"router":n({name:"PageRouterHome"});break;default:n({name:"PageWizard"});break}})}},L9,I9,M9,A9,{path:"/:pathMatch(.*)*",name:"notfound",redirect:e=>{switch(console.log("redirec:",e),it.getModel()){case"nas":return"/next-nas";case"router":return"/router/index";default:return"/wizard"}}}]});const $9={},R9={t:"1655777339433",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2673",width:"128",height:"128"},B9=d("path",{d:"M59.733333 614.4h930.133334a8.533333 8.533333 0 0 1 8.533333 8.533333v238.933334a8.533333 8.533333 0 0 1-8.533333 8.533333H59.733333a8.533333 8.533333 0 0 1-8.533333-8.533333V622.933333a8.533333 8.533333 0 0 1 8.533333-8.533333z",fill:"#96CAFF","p-id":"2674"},null,-1),U9=d("path",{d:"M76.8 588.8l176.128-377.941333A76.8 76.8 0 0 1 315.050667 179.2H759.466667a76.8 76.8 0 0 1 62.122666 31.658667L996.266667 588.8",fill:"#B3D9FF","p-id":"2675"},null,-1),Y9=d("path",{d:"M742.4 204.8l175.274667 362.752h57.941333L805.290667 204.8H742.4z",fill:"#96CAFF","p-id":"2676"},null,-1),H9=d("path",{d:"M51.2 588.8a25.6 25.6 0 0 0-25.6 25.6v204.8a25.6 25.6 0 0 0 25.6 25.6h921.6a25.6 25.6 0 0 0 25.6-25.6V614.4a25.6 25.6 0 0 0-25.6-25.6z m0-25.6h921.6a51.2 51.2 0 0 1 51.2 51.2v204.8a51.2 51.2 0 0 1-51.2 51.2H51.2a51.2 51.2 0 0 1-51.2-51.2V614.4a51.2 51.2 0 0 1 51.2-51.2z",fill:"#175AA7","p-id":"2677"},null,-1),W9=d("path",{d:"M204.8 221.866667l-23.210667-10.837334 20.736 15.018667 1.365334-1.792z m616.533333 4.266666l20.736-15.018666L818.432 221.866667l1.194667 2.474666zM243.370667 204.8h536.149333A51.2 51.2 0 0 1 819.2 224.085333L988.501333 588.8h28.245334L841.642667 210.858667A76.8 76.8 0 0 0 779.52 179.2H243.370667a76.8 76.8 0 0 0-62.122667 31.658667L5.12 588.8h28.245333l169.898667-364.714667a51.2 51.2 0 0 1 40.106667-19.285333z m577.536 21.077333l20.736-15.018666L818.432 221.866667l1.194667 2.474666z m-619.008 0l-20.736-15.018666L204.8 221.866667l-1.109333 2.474666zM988.501333 588.8h28.245334L841.642667 210.858667A76.8 76.8 0 0 0 779.52 179.2H243.370667a76.8 76.8 0 0 0-62.122667 31.658667L5.12 588.8h28.245333l169.898667-364.714667a51.2 51.2 0 0 1 40.106667-19.285333h536.149333A51.2 51.2 0 0 1 819.2 224.085333zM883.2 768a38.4 38.4 0 1 0-38.4-38.4 38.4 38.4 0 0 0 38.4 38.4z m0 25.6a64 64 0 1 1 64-64 64 64 0 0 1-64 64z",fill:"#175AA7","p-id":"2678"},null,-1),V9=d("path",{d:"M512 492.458667c125.696 0 200.789333-67.413333 174.165333-129.877334C666.794667 316.672 592.725333 281.6 512 281.6s-154.538667 35.072-174.165333 80.981333C311.552 425.045333 386.56 492.458667 512 492.458667z m-197.376-139.946667C339.712 293.717333 425.898667 256 512 256s172.885333 37.717333 197.973333 96.512c33.621333 78.848-49.493333 165.546667-197.717333 165.546667s-231.253333-86.698667-197.632-165.546667zM842.922667 479.829333c-13.226667 0-20.309333 11.52-15.616 26.112a40.533333 40.533333 0 0 0 34.133333 27.818667c14.165333 0 20.821333-12.714667 15.018667-27.818667a40.618667 40.618667 0 0 0-34.133334-26.112M155.648 505.941333c-5.717333 15.189333 0.853333 27.818667 15.018667 27.818667a40.533333 40.533333 0 0 0 34.56-27.818667c4.693333-14.677333-2.389333-26.112-15.616-26.112a40.618667 40.618667 0 0 0-33.962667 26.112zM264.533333 260.608c-3.157333 8.533333 2.645333 15.104 13.056 15.104a25.6 25.6 0 0 0 23.722667-15.104c2.56-8.106667-3.413333-14.421333-13.312-14.421333A26.026667 26.026667 0 0 0 264.533333 260.608zM754.688 275.797333c10.410667 0 16.213333-6.912 13.056-15.104a26.026667 26.026667 0 0 0-23.381333-14.421333c-9.898667 0-15.872 6.4-13.312 14.421333a25.6 25.6 0 0 0 23.722666 15.104",fill:"#175AA7","p-id":"2679"},null,-1),j9=[B9,U9,Y9,H9,W9,V9];function G9(e,t){return S(),I("svg",R9,j9)}var z9=fe($9,[["render",G9]]);const K9={},q9={t:"1657017066197",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7436",width:"128",height:"128"},J9=d("path",{d:"M25.6 54.84032v152.79104h967.68V54.84032H25.6z m0 534.76864h967.68V436.81792H25.6v152.79104z m0 381.98272h967.68v-152.79104H25.6v152.79104z","p-id":"7437"},null,-1),X9=[J9];function Z9(e,t){return S(),I("svg",q9,X9)}var Q9=fe(K9,[["render",Z9]]);const eg={key:0,t:"1657180381358",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3686",width:"128",height:"128"},tg=d("path",{d:"M512 958.016C266.08 958.016 65.984 757.952 65.984 512 65.984 266.08 266.08 65.984 512 65.984c245.952 0 446.016 200.064 446.016 446.016C958.016 757.952 757.952 958.016 512 958.016zM512 129.984C301.344 129.984 129.984 301.344 129.984 512c0 210.624 171.36 382.016 382.016 382.016 210.624 0 382.016-171.36 382.016-382.016C894.016 301.344 722.624 129.984 512 129.984z","p-id":"3687"},null,-1),ng=d("path",{d:"M512 304m-48 0a1.5 1.5 0 1 0 96 0 1.5 1.5 0 1 0-96 0Z","p-id":"3688"},null,-1),sg=d("path",{d:"M512 768c-17.664 0-32-14.304-32-32l0-288c0-17.664 14.336-32 32-32s32 14.336 32 32l0 288C544 753.696 529.664 768 512 768z","p-id":"3689"},null,-1),rg=[tg,ng,sg],ag={key:1,t:"1657180370515",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3532",width:"128",height:"128"},og=d("path",{d:"M512 65.984C266.048 65.984 65.984 266.048 65.984 512S266.048 958.016 512 958.016 958.016 757.952 958.016 512 757.952 65.984 512 65.984zM544 736c0 17.696-14.304 32-32 32s-32-14.304-32-32l0-288c0-17.696 14.304-32 32-32s32 14.304 32 32L544 736zM512 352c-26.496 0-48-21.536-48-48C464 277.472 485.504 256 512 256s48 21.472 48 48C560 330.464 538.496 352 512 352z","p-id":"3533"},null,-1),ig=[og],lg=le({__name:"info",props:{type:{type:Number,default:0}},setup(e){return(t,n)=>e.type==0?(S(),I("svg",eg,rg)):e.type==1?(S(),I("svg",ag,ig)):me("",!0)}}),ug={},cg={width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},dg=d("path",{d:"M14.9234958,14.5525054 L10.84453,10.4679606 C11.8849284,9.46327833 12.5294813,8.07823887 12.5294813,6.55073066 C12.5294813,3.48989918 9.94358337,1 6.76474066,1 C3.58589795,1 1,3.48989918 1,6.55073066 C1,9.61156213 3.58589795,12.1014613 6.76474066,12.1014613 C8.16008242,12.1014613 9.44067838,11.621191 10.438802,10.8242646 L14.5276502,14.9188536 C14.5814545,14.9730393 14.6533765,15 14.725573,15 C14.7942009,15 14.8625542,14.9754182 14.9158095,14.9262546 C15.025065,14.8250198 15.0283592,14.6577049 14.9234958,14.5525054 Z M6.76474066,11.5728203 C3.8886841,11.5728203 1.54902292,9.32001661 1.54902292,6.55073066 C1.54902292,3.7814447 3.8886841,1.52864101 6.76474066,1.52864101 C9.64079723,1.52864101 11.9804584,3.7814447 11.9804584,6.55073066 C11.9804584,9.32001661 9.64052272,11.5728203 6.76474066,11.5728203 Z",id:"Shape",stroke:"#FFFFFF","stroke-width":"1.3"},null,-1),fg=[dg];function hg(e,t){return S(),I("svg",cg,fg)}var _g=fe(ug,[["render",hg]]);const pg={},mg={width:"12px",height:"12px",viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},gg=d("path",{d:"M10.171916,3.81818329 C10.6519813,3.81274681 11.1102149,4.01840688 11.4252438,4.38069009 C11.7402726,4.74297329 11.8803105,5.2253253 11.8081406,5.70080197 L11.0555552,10.608963 C10.9332063,11.4157454 10.2351606,12.0090843 9.42537185,12 L3.27269856,12 C2.97145497,12 2.7272488,11.7556885 2.7272488,11.454445 L2.7272488,5.4544976 C2.7272488,5.37817917 2.74326442,5.30271013 2.77426027,5.23296947 L4.95605931,0.323921631 C5.04360472,0.126944443 5.23894201,0 5.4544976,0 C6.65947193,0 7.63629663,0.976824702 7.63629663,2.18179904 L7.63629663,3.81815451 L10.171916,3.81818329 Z M3.81814832,10.9090654 L9.43153778,10.9090654 C9.70352269,10.9121048 9.93620458,10.7143252 9.97712277,10.4445109 L10.7297188,5.53628009 C10.7537339,5.3780602 10.7070546,5.2172762 10.602045,5.09651513 C10.4970353,4.97575406 10.3442908,4.9072007 10.1780925,4.90904784 L7.09084687,4.90904784 C6.78960329,4.90904784 6.54539711,4.66484166 6.54539711,4.36359808 L6.54539711,2.18179904 C6.54539711,1.69494967 6.22647822,1.2825878 5.78615711,1.14223013 L3.81814832,5.57024992 L3.81814832,10.9090654 Z M2.7272488,5.99994736 L1.63634928,5.99994736 C1.33510569,5.99994736 1.09089952,6.24415353 1.09089952,6.54539711 L1.09089952,10.3635454 C1.09089952,10.664789 1.33510569,10.9089952 1.63634928,10.9089952 L2.7272488,10.9089952 L2.7272488,5.99994736 Z M3.27269856,11.9998947 L1.63634928,11.9998947 C0.732618527,11.9998947 -1.03028697e-13,11.2672762 -1.03028697e-13,10.3635454 L-1.03028697e-13,6.54539711 C-1.03028697e-13,5.64166636 0.732618527,4.90904784 1.63634928,4.90904784 L3.27269856,4.90904784 C3.57394214,4.90904784 3.81814832,5.15325401 3.81814832,5.4544976 L3.81814832,11.454445 C3.81814832,11.7556885 3.57394214,11.9998947 3.27269856,11.9998947 Z",id:"Shape",fill:"#FFFFFF","fill-rule":"nonzero"},null,-1),vg=[gg];function yg(e,t){return S(),I("svg",mg,vg)}var bg=fe(pg,[["render",yg]]);const Eg={},kg={width:"12px",height:"12px",viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},wg=d("path",{d:"M10.171916,3.81818329 C10.6519813,3.81274681 11.1102149,4.01840688 11.4252438,4.38069009 C11.7402726,4.74297329 11.8803105,5.2253253 11.8081406,5.70080197 L11.0555552,10.608963 C10.9332063,11.4157454 10.2351606,12.0090843 9.42537185,12 L3.27269856,12 C2.97145497,12 2.7272488,11.7556885 2.7272488,11.454445 L2.7272488,5.4544976 C2.7272488,5.37817917 2.74326442,5.30271013 2.77426027,5.23296947 L4.95605931,0.323921631 C5.04360472,0.126944443 5.23894201,0 5.4544976,0 C6.65947193,0 7.63629663,0.976824702 7.63629663,2.18179904 L7.63629663,3.81815451 L10.171916,3.81818329 Z M3.27269856,11.9998947 L1.63634928,11.9998947 C0.732618527,11.9998947 0,11.2672762 0,10.3635454 L0,6.54539711 C0,5.64166636 0.732618527,4.90904784 1.63634928,4.90904784 L3.27269856,4.90904784 C3.57394214,4.90904784 3.81814832,5.15325401 3.81814832,5.4544976 L3.81814832,11.454445 C3.81814832,11.7556885 3.57394214,11.9998947 3.27269856,11.9998947 Z",id:"Shape",fill:"#FFE45A","fill-rule":"nonzero"},null,-1),Sg=[wg];function Cg(e,t){return S(),I("svg",kg,Sg)}var Tg=fe(Eg,[["render",Cg]]);const Fg={},Dg={t:"1660284166208",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1616",width:"128",height:"128"},Og=d("path",{d:"M347.008 574.378667a85.546667 85.546667 0 0 1 0-124.757334L632.490667 182.144a42.389333 42.389333 0 0 1 60.074666 2.069333c16.021333 17.237333 15.104 44.224-2.069333 60.309334L405.013333 512l285.482667 267.477333c17.173333 16.085333 18.090667 43.093333 2.069333 60.309334a42.389333 42.389333 0 0 1-60.074666 2.069333L347.008 574.378667z","p-id":"1617"},null,-1),Pg=[Og];function Ng(e,t){return S(),I("svg",Dg,Pg)}var Ig=fe(Fg,[["render",Ng]]);const Lg={},Mg={t:"1660284150684",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1462",width:"128",height:"128"},Ag=d("path",{d:"M676.992 449.621333a85.546667 85.546667 0 0 1 0 124.757334L391.509333 841.856a42.389333 42.389333 0 0 1-60.074666-2.069333 42.773333 42.773333 0 0 1 2.069333-60.309334L618.986667 512 333.504 244.522667a42.773333 42.773333 0 0 1-2.069333-60.309334 42.389333 42.389333 0 0 1 60.074666-2.069333l285.482667 267.477333z","p-id":"1463"},null,-1),xg=[Ag];function $g(e,t){return S(),I("svg",Mg,xg)}var Rg=fe(Lg,[["render",$g]]);const Bg={},Ug={t:"1660284192070",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1770",width:"128",height:"128"},Yg=d("path",{d:"M449.621333 347.008a85.546667 85.546667 0 0 1 124.757334 0l267.477333 285.482667c16.085333 17.173333 15.146667 44.053333-2.069333 60.074666a42.773333 42.773333 0 0 1-60.309334-2.069333L512 405.013333 244.522667 690.496a42.773333 42.773333 0 0 1-60.309334 2.069333 42.389333 42.389333 0 0 1-2.069333-60.074666l267.477333-285.482667z","p-id":"1771"},null,-1),Hg=[Yg];function Wg(e,t){return S(),I("svg",Ug,Hg)}var Vg=fe(Bg,[["render",Wg]]);const jg={},Gg={t:"1660284208062",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1924",width:"128",height:"128"},zg=d("path",{d:"M574.378667 676.992a85.546667 85.546667 0 0 1-124.757334 0L182.144 391.509333a42.389333 42.389333 0 0 1 2.069333-60.074666 42.773333 42.773333 0 0 1 60.309334 2.069333L512 618.986667l267.477333-285.482667a42.773333 42.773333 0 0 1 60.309334-2.069333c17.216 16 18.133333 42.901333 2.069333 60.074666L574.378667 676.992z","p-id":"1925"},null,-1),Kg=[zg];function qg(e,t){return S(),I("svg",Gg,Kg)}var Jg=fe(jg,[["render",qg]]);const Xg={},Zg={t:"1660287979761",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1495",width:"128",height:"128"},Qg=d("path",{d:"M773.214133 167.117045c-4.330056 0.2048-5.441827 0.146286-9.713368 0.760685a74.693464 74.693464 0 0 0-54.008671 36.86399 72.762493 72.762493 0 0 0-6.436569 55.64707c2.662399 9.215997 7.197255 17.876109 13.253482 25.365935 2.720914 3.335313 3.510856 4.037485 6.524341 7.109484l3.627884 3.218285c16.091424 13.37051 30.954048 27.999078 44.295302 44.061244a327.504364 327.504364 0 0 1 67.057352 134.495048 327.094764 327.094764 0 0 1-37.858732 241.429873 330.839677 330.839677 0 0 1-63.107639 76.185579 336.457047 336.457047 0 0 1-80.45712 53.365013 335.930418 335.930418 0 0 1-100.995628 29.374163 341.928131 341.928131 0 0 1-119.807966-5.997713 336.310761 336.310761 0 0 1-114.24911-49.971185 334.321276 334.321276 0 0 1-92.803631-96.051173 324.403107 324.403107 0 0 1-47.396557-127.795163 326.304821 326.304821 0 0 1 106.144884-290.201517c4.59337-4.008227 9.215997-7.899426 13.750853-11.907654 3.013485-3.071999 3.803427-3.744913 6.495084-7.080227a72.206608 72.206608 0 0 0-4.944456-96.343744 75.395636 75.395636 0 0 0-93.622831-10.503311c-6.085484 3.891199-11.468797 8.718626-16.852109 13.429025a475.633236 475.633236 0 0 0-98.8306 119.281337 470.07438 470.07438 0 0 0-31.012563 409.83394 474.521464 474.521464 0 0 0 76.214835 128.058478 481.455405 481.455405 0 0 0 257.638327 160.387611 493.86043 493.86043 0 0 0 189.849546 8.338284c58.485012-8.835655 115.185339-28.37942 166.473095-57.431755a484.498147 484.498147 0 0 0 126.800421-103.599514 473.263408 473.263408 0 0 0 72.99655-113.312882 473.087865 473.087865 0 0 0 38.590161-256.906898c-6.787655-51.785128-22.323194-102.399971-45.816673-149.211386a475.925807 475.925807 0 0 0-110.88454-143.65253c-3.832685-3.335313-7.753141-6.64137-11.644339-9.918169-3.36457-2.633142-4.154513-3.393828-7.811655-5.705141a75.775978 75.775978 0 0 0-22.206165-9.450054 91.808888 91.808888 0 0 0-14.39451-2.106514c-1.6384 0-3.218285 0-4.856685-0.058514m-186.836061 418.084452c0 19.39748-7.840912 38.005018-21.767308 51.726614a74.898264 74.898264 0 0 1-52.516556 21.416222 74.810493 74.810493 0 0 1-52.516556-21.416222 72.616208 72.616208 0 0 1-21.767309-51.726614V73.143129c0-19.426737 7.840912-38.005018 21.767309-51.755871A74.781236 74.781236 0 0 1 512.094208 0.000293c19.690052 0 38.59016 7.694626 52.516556 21.386965 13.926396 13.750853 21.767308 32.329134 21.767308 51.785128v512.029111z","p-id":"1496"},null,-1),ev=[Qg];function tv(e,t){return S(),I("svg",Zg,ev)}var nv=fe(Xg,[["render",tv]]);const sv={},rv={t:"1661742094849",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2478",width:"128",height:"128"},av=d("path",{d:"M210.304 813.696a42.666667 42.666667 0 0 1 0-60.330667L753.365333 210.304a42.666667 42.666667 0 1 1 60.330667 60.330667L270.634667 813.696a42.666667 42.666667 0 0 1-60.330667 0z","p-id":"2479"},null,-1),ov=d("path",{d:"M210.304 210.304a42.666667 42.666667 0 0 1 60.330667 0l543.061333 543.061333a42.666667 42.666667 0 1 1-60.330667 60.330667L210.304 270.634667a42.666667 42.666667 0 0 1 0-60.330667z","p-id":"2480"},null,-1),iv=[av,ov];function lv(e,t){return S(),I("svg",rv,iv)}var y1=fe(sv,[["render",lv]]);const uv={},cv=e=>(at("data-v-70156d34"),e=e(),ot(),e),dv={t:"1631799919469",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:"128",height:"128"},fv=cv(()=>d("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"},null,-1)),hv=[fv];function _v(e,t){return S(),I("svg",dv,hv)}var pv=fe(uv,[["render",_v],["__scopeId","data-v-70156d34"]]),mv={install(e){e.component("icon-disk",z9),e.component("icon-nav",Q9),e.component("icon-info",lg),e.component("icon-search",_g),e.component("icon-star-off",Tg),e.component("icon-star-on",bg),e.component("icon-left",Ig),e.component("icon-right",Rg),e.component("icon-top",Vg),e.component("icon-bottom",Jg),e.component("icon-outlogin",nv),e.component("icon-close",y1),e.component("icon-loading",pv)}};const gv={class:"toips-container"},vv=["onClick"],yv={key:1},bv=le({__name:"index",setup(e){const t=ur(),n=be(()=>t.toips);return(s,r)=>{const a=ft("router-link");return S(),I("div",gv,[(S(!0),I(ve,null,_t(n.value,o=>(S(),I("li",{class:"toips-item",onClick:i=>o.f()},[o.path?(S(),Ce(a,{key:0,to:o.path},{default:Ue(()=>[yt(J(o.info),1)]),_:2},1032,["to"])):(S(),I("span",yv,J(o.info),1))],8,vv))),256))])}}});var Ev=fe(bv,[["__scopeId","data-v-d6bd3248"]]);const kv=le({__name:"main",setup(e){const t=ur();return(n,s)=>{const r=ft("layout-header"),a=ft("router-view");return S(),I("div",{id:"main",key:X(t).reloadCount},[Ie(r),Ie(a,null,{default:Ue(({Component:o,route:i})=>[(S(),Ce(sd,null,{default:Ue(()=>[(S(),Ce(Ri(o),{key:i.path}))]),_:2},1024))]),_:1}),Ie(Ev)])}}}),wv={id:"page",class:"page-container"},Sv={class:"page-flex"},Cv={class:"page-sidebar"},Tv=["onClick"],Fv={class:"page-main"},Dv=le({__name:"page",props:{menus:{type:Array,required:!0}},setup(e){return(t,n)=>{const s=ft("router-link");return S(),I("div",wv,[d("div",Sv,[d("div",Cv,[(S(!0),I(ve,null,_t(e.menus,r=>(S(),I(ve,null,[r.path?(S(),Ce(s,{key:0,to:r.path},{default:Ue(()=>[d("span",null,J(r.title),1)]),_:2},1032,["to"])):me("",!0),r.fn?(S(),I("a",{key:1,onClick:r.fn},[d("span",null,J(r.title),1)],8,Tv)):me("",!0)],64))),256))]),d("div",Fv,[Ut(t.$slots,"default")])])])}}}),b1=window.HostName||"iStoreX",Ov=(window==null?void 0:window.istoreXVer)||"";var E1={HostName:b1};console.log("".concat(`%c OpenWrt-${b1}_iStoreX v${Ov}`),"color: #fadfa3; background: #030307; padding:5px 0;");const k1=e=>(at("data-v-ab2441f8"),e=e(),ot(),e),Pv={class:"logo"},Nv=["href"],Iv={key:0,class:"nav-item ota-upgrade",target:"_blank",href:"/cgi-bin/luci/admin/system/ota"},Lv=k1(()=>d("span",null,"\u56FA\u4EF6\u66F4\u65B0",-1)),Mv=k1(()=>d("em",null,null,-1)),Av=[Lv,Mv],xv=le({__name:"nav",setup(e){ur();const t=_e(!1),n=be(()=>[{name:"\u8DEF\u7531\u72B6\u6001",path:"/router/index"},{name:"\u7F51\u7EDC\u914D\u7F6E",path:"/router/network"},{name:"\u8FDC\u7A0BDDNS",path:"/router/ddns"},{name:"\u5B58\u50A8\u7BA1\u7406",path:"/router/disk"},{name:"\u529F\u80FD\u914D\u7F6E",path:"/router/setting"},{name:"\u5E94\u7528\u5546\u5E97",path:"/router/istore"},{name:"\u9AD8\u7EA7\u914D\u7F6E",href:"/cgi-bin/luci/admin/quickstart/"}]);return(()=>te(this,null,function*(){try{const r=yield oe.System.CheckUpdate.GET(),{result:a}=r.data;a&&(t.value=a.needUpdate)}catch(r){console.log(r)}}))(),(r,a)=>{const o=ft("router-link");return S(),I("nav",null,[d("div",Pv,J(X(E1).HostName),1),(S(!0),I(ve,null,_t(n.value,i=>(S(),I(ve,null,[i.path?(S(),Ce(o,{key:0,class:"nav-item",to:i.path},{default:Ue(()=>[d("span",null,J(i.name),1)]),_:2},1032,["to"])):me("",!0),i.href?(S(),I("a",{key:1,class:"nav-item",target:"_blank",href:i.href},[d("span",null,J(i.name),1)],8,Nv)):me("",!0)],64))),256)),t.value?(S(),I("a",Iv,Av)):me("",!0)])}}});var $v=fe(xv,[["__scopeId","data-v-ab2441f8"]]);const At=e=>(at("data-v-0003d2de"),e=e(),ot(),e),Rv={class:"tool"},Bv=At(()=>d("div",{class:"tool-item_icon"},[d("svg",{t:"1654872227326",class:"icon",viewBox:"0 0 1070 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18915",width:"128",height:"128"},[d("path",{d:"M616.56114032 913.71326004h-10.78499707c-0.00697165 0 4.88008933 1.06316208 10.78499706 0z m194.47155643-0.01045789c-28.60778047 0.01045706-31.10708332-23.73117654-31.28137207-29.83825964v-36.61809823h-142.70078101v35.18544369c0 23.05842188-11.4333522 29.67094253-20.48591711 31.27091418",fill:"#F0F0FF","p-id":"18916"}),d("path",{d:"M610.47497217 928.2489541c-5.85959326 0-12.22462327-1.32110979-15.86029011-6.17679877l-16.69339104-22.29852201h37.23508135c2.98731171-0.70412751 7.94757376-3.1650867 7.94757377-17.33825994v-49.12855499h170.58700443v50.34160629c0.54378122 15.96137778 12.92875076 16.11126617 17.20928649 16.11126617h0.12548804l0.00697165 27.88622343h-0.01742871c-21.89068588 0-44.35303958-13.4132742-45.20357007-43.38399272l-0.00697165-0.39389282v-22.67498611h-114.81455594v21.24233075c0 35.45036225-22.30549365 43.2724488-31.95412756 44.99093766v0.01045705c-2.35638611 0.42177942-5.38552688 0.81218601-8.56107065 0.81218602z",fill:"#6E6E96","p-id":"18917"}),d("path",{d:"M458.17784421 794.47525079V479.73040964c0-21.50027847 17.58923602-39.09300073 39.09648614-39.09299991h422.25320764c21.50725013 0 39.09997238 17.59272143 39.09997156 39.09299991v314.74135574",fill:"#9F9FBD","p-id":"18918"}),d("path",{d:"M958.63099579 763.19387873v44.95259398c0 21.51073636-17.59969309 39.10694403-39.09997238 39.10694321H497.27433035c-21.50376471 0-39.09648614-17.60666473-39.09648614-39.10694321V763.19387873h500.45315158z",fill:"#F0F0FF","p-id":"18919"}),d("path",{d:"M919.53102341 861.19304263H497.27433035c-29.2456777 0-53.03959826-23.79740679-53.03959826-53.05005615V749.2507666h528.33937582v58.89570612c0 29.24916311-23.79392056 53.04656992-53.0430845 53.04656991zM472.12095633 777.13699084v31.00948187c0 13.87339645 11.2834638 25.16383191 25.15337402 25.1638311H919.53102341c13.86991103 0 25.15686025-11.28694922 25.15686026-25.1638311v-31.00948187h-472.56692734z",fill:"#6E6E96","p-id":"18920"}),d("path",{d:"M472.12095633 794.47525079h-27.88622424V479.73040964c0-29.2456777 23.79392056-53.03611286 53.03959826-53.03611203h422.25320764c29.24916311 0 53.0430845 23.79043515 53.04308369 53.03611203v314.74135574h-27.88622425V479.73040964c0-13.86991103-11.2834638-25.14988861-25.15685944-25.14988779H497.27433035c-13.86991103 0-25.15337403 11.27997757-25.15337402 25.14988779v314.74484115z",fill:"#6E6E96","p-id":"18921"}),d("path",{d:"M458.17784421 744.17198816h500.44617993v11.03945938H458.17784421zM637.0540299 847.24644427h142.70078019v24.94771326h-142.70078019z",fill:"#6E6E96","p-id":"18922"}),d("path",{d:"M821.84906582 927.65637216h-241.2576686a13.94311212 13.94311212 0 0 1 0-27.88622423h241.2576686a13.94311212 13.94311212 0 0 1 0 27.88622424z",fill:"#6E6E96","p-id":"18923"}),d("path",{d:"M919.53102341 817.88922183H497.27433035c-21.50376471 0-39.09648614-17.59969309-39.09648614-39.10345779v26.0945343c0 21.50027847 17.58574978 39.09997238 39.09648614 39.09997238H919.53102341c21.50027847 0 39.10345779-17.59272143 39.10345779-39.09997238v-26.0945343c-0.00348542 21.517708-17.61015097 39.10345779-39.10345779 39.10345779z",fill:"#6E6E96","p-id":"18924"}),d("path",{d:"M512.22134677 487.62221103h396.47936426v229.11670432H512.22134677z",fill:"#A2C8F2","p-id":"18925"}),d("path",{d:"M653.79970709 714.00257971l250.40435038-226.38036868v73.11070843l-166.0798938 153.26966025z",fill:"#DEEFFF","p-id":"18926"}),d("path",{d:"M904.20405747 560.73291946l-166.0798938 153.26966025h166.0798938z",fill:"#FFFFFF","p-id":"18927"}),d("path",{d:"M908.70071103 730.68551288H512.22134677a13.94311212 13.94311212 0 0 1-13.94311212-13.94311212v-229.11670349a13.94311212 13.94311212 0 0 1 13.94311212-13.94311212h396.47936426a13.94311212 13.94311212 0 0 1 13.94311212 13.94311212v229.11670349a13.94311212 13.94311212 0 0 1-13.94311212 13.94311212z m-382.53625214-27.88622425h368.59314002v-201.23047924H526.16445889v201.23047924z",fill:"#6E6E96","p-id":"18928"}),d("path",{d:"M427.31825156 436.74379516c0 17.12911295-14.01282779 31.15588403-31.14194074 31.15588404H258.11858637c-17.1221413 0-31.14194074-14.0163132-31.14194074-31.15588404v-296.04712774c0-17.12911295 14.0163132-31.14542697 31.14194073-31.14542615H396.17631082c17.12911295 0 31.14194074 14.0163132 31.14194074 31.14542615v296.04712774z",fill:"#F0F0FF","p-id":"18929"}),d("path",{d:"M427.31825156 436.74379516c0 17.12911295-14.01282779 31.15588403-31.14194074 31.15588404H258.11858637c-17.1221413 0-31.14194074-14.0163132-31.14194074-31.15588404v-296.04712774c0-17.12911295 14.0163132-31.14542697 31.14194073-31.14542615H396.17631082c17.12911295 0 31.14194074 14.0163132 31.14194074 31.14542615v296.04712774z",fill:"#FFFFFF","p-id":"18930"}),d("path",{d:"M226.97315939 172.01289774h200.35206382v257.6896257H226.97315939z",fill:"#B4D1F2","p-id":"18931"}),d("path",{d:"M236.25578625 429.70252344l191.06246531-191.07640779v64.35791951L300.59976327 429.70252344z",fill:"#DEEFFF","p-id":"18932"}),d("path",{d:"M427.31825156 302.98403516L300.59976327 429.70252344h126.71848829z",fill:"#FFFFFF","p-id":"18933"}),d("path",{d:"M226.97315939 397.73793882h200.34509217v27.88622424H226.97315939z",fill:"#6E6E96","p-id":"18934"}),d("path",{d:"M229.07508402 216.7528585l47.87716085-57.25041835H362.81741532L230.36830723 301.32131867z",fill:"#FFFFFF","p-id":"18935"}),d("path",{d:"M404.10994128 159.50244015L233.14995816 330.45545163l-0.20217535 24.4597044 195.40923047-195.41271588z",fill:"#FFFFFF","p-id":"18936"}),d("path",{d:"M396.17631082 481.83930591H258.11858637c-30.33672637 0-45.08505286-14.75181272-45.08505286-45.09899616v-296.04712774c0-30.34021179 14.74832648-45.08853909 45.08505285-45.0885391H396.17631082c30.33672637 0 45.08505286 14.74832648 45.08505286 45.0885391v296.04712774c0 30.34718345-14.74832648 45.09899615-45.08505286 45.09899616zM258.11858637 123.49435339c-14.95050183 0-17.19882862 2.25181219-17.19882862 17.20231403v296.04712774c0 14.96095889 2.25181219 17.21277191 17.19882861 17.21277192H396.17631082c14.95050183 0 17.19882862-2.25181219 17.19882861-17.21277192v-296.04712774c0-14.95050183-2.25181219-17.20231485-17.19882861-17.20231403H258.11858637z",fill:"#6E6E96","p-id":"18937"}),d("path",{d:"M226.97315939 150.84725349h200.34509217v27.88622423H226.97315939z",fill:"#6E6E96","p-id":"18938"}),d("path",{d:"M185.52028714 757.89549622H149.7422615a13.94311212 13.94311212 0 0 1 0-27.88622425h35.77802564a13.94311212 13.94311212 0 0 1 0 27.88622425z",fill:"#6E6E96","p-id":"18939"}),d("path",{d:"M125.32787241 876.34920522v-292.89249892c0-21.09244317 10.49916357-23.86712246 23.33379831-23.86712164h378.63915215c12.83463473 0 23.33728372 2.78513635 23.33728373 23.86712164v292.89249892",fill:"#B9BCC9","p-id":"18940"}),d("path",{d:"M527.30430828 566.06964563H148.66515613c-12.83463473 0-23.33728372 2.77467929-23.33728372 23.86712246v19.04629093c0-21.09592859 10.50264898-23.87060788 23.33728371-23.87060788h378.63915216c12.83114933 0 23.34076996 2.78862259 23.34076997 23.87060788v-19.04629093c0-21.08198529-10.50962063-23.86712246-23.34076996-23.86712246z",fill:"#FFFFFF","p-id":"18941"}),d("path",{d:"M561.66710809 873.83595908h-27.88622424v-290.39319526c0-9.92401035-0.52983792-9.92401035-9.39765702-9.92401034H151.58972382c-9.39765784 0-9.39765784 0.56120993-9.39765784 9.92401034v290.39319526h-27.88622342v-290.39319526c0-25.08714458 12.545315-37.81023459 37.28388126-37.81023459H524.38322683c24.74205249 0 37.28388208 12.71960376 37.28388127 37.81023459v290.39319526z",fill:"#6E6E96","p-id":"18942"}),d("path",{d:"M559.90679016 867.71841892H393.74672363v15.99274978H276.45377896v-15.99274978H117.39772735a13.37144431 13.37144431 0 0 0-13.32961523 13.32264358v34.65211954h469.16829327v-34.64863412a13.36795889 13.36795889 0 0 0-13.32961523-13.326129z",fill:"#B9BCC9","p-id":"18943"}),d("path",{d:"M559.90679016 862.00522864H393.74672363v15.9962352H276.45377896v-15.9962352H117.39772735a13.36795889 13.36795889 0 0 0-13.32961523 13.32612983v20.953011a13.37144431 13.37144431 0 0 1 13.32961524-13.33310064h159.0560516v16.00669309h117.29294467v-16.00669309h166.15658111a13.37144431 13.37144431 0 0 1 13.326129 13.33310064v-20.953011a13.35053018 13.35053018 0 0 0-13.32264358-13.32612983z",fill:"#FFFFFF","p-id":"18944"}),d("path",{d:"M173.14577548 601.65595379h329.98814813v222.86670365H173.14577548z",fill:"#8CBDF2","p-id":"18945"}),d("path",{d:"M279.39228913 814.06183752l217.77049649-204.02607348v59.87172381l-144.43321235 144.15434967z",fill:"#DEEFFF","p-id":"18946"}),d("path",{d:"M497.16278562 669.90748785l-144.43321235 144.15434967h144.43321235z",fill:"#FFFFFF","p-id":"18947"}),d("path",{d:"M503.13392361 838.46576956H173.14577548a13.94311212 13.94311212 0 0 1-13.94311212-13.94311212v-222.86670365a13.94311212 13.94311212 0 0 1 13.94311212-13.94311212h329.98814813a13.94311212 13.94311212 0 0 1 13.94311213 13.94311212v222.86670365a13.94311212 13.94311212 0 0 1-13.94311213 13.94311212z m-316.045036-27.88622424h302.10192389v-194.9804794H187.0888876v194.9804794z",fill:"#6E6E96","p-id":"18948"}),d("path",{d:"M173.14577548 601.65595379h324.02049637v23.37562739H173.14577548zM104.07159753 899.06602042h469.17177952v16.63761867H104.07159753z",fill:"#6E6E96","p-id":"18949"}),d("path",{d:"M573.23640539 929.63977957H104.06811212a13.94311212 13.94311212 0 0 1-13.94311212-13.94311211v-34.65211955c0-15.03416079 12.23508115-27.26575571 27.27272736-27.2657557h159.0560516a13.94311212 13.94311212 0 0 1 13.94311212 13.94311212v2.04963767h89.40672044v-2.04963767a13.94311212 13.94311212 0 0 1 13.94311211-13.94311212h166.15658112c15.03764621 0 27.27272736 12.23508115 27.27272736 27.26924194v34.64863331c0.00348542 7.70008392-6.23954278 13.94311212-13.93962672 13.94311211z m-455.22518115-27.88622424h441.28206904v-20.0920243H407.68983575v2.04963767a13.94311212 13.94311212 0 0 1-13.94311212 13.94311212H276.45377896a13.94311212 13.94311212 0 0 1-13.94311212-13.94311212v-2.04963767H118.01122424v20.0920243z",fill:"#6E6E96","p-id":"18950"}),d("path",{d:"M699.94792285 373.26429193c-45.72992175-77.71193509-122.75515887-130.53541552-211.32180752-144.92470743l4.4722532-27.52370342c96.78262719 15.724345 180.93279419 73.42094228 230.88050766 158.30660879l-24.03095334 14.14180205zM138.3646825 505.03018664h-27.88622425c0-62.44422775 17.55437778-123.22573901 50.76687113-175.76338513l23.5743165 14.89821488c-30.39249875 48.0758508-46.45496338 103.7018963-46.45496338 160.86517025z",fill:"#6E6E96","p-id":"18951"})])],-1)),Uv={class:"tool-item_name"},Yv=At(()=>d("span",{class:"t"},null,-1)),Hv={class:"b"},Wv={class:"tool-item_icon"},Vv={t:"1654871923674",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1414",width:"128",height:"128",style:{padding:"5px"}},jv=At(()=>d("path",{d:"M247.466667 76.8h25.6l51.2 307.2h-25.6L247.466667 76.8zM762.453333 76.8h25.6L742.4 385.706667h-25.6L762.453333 76.8z",fill:"#96CAFF","p-id":"1415"},null,-1)),Gv=At(()=>d("path",{d:"M275.2 409.6H324.266667L256.938667 51.2H230.4zM230.4 25.6h26.538667a25.6 25.6 0 0 1 25.173333 20.906667l67.242667 358.4A25.6 25.6 0 0 1 324.266667 435.2h-49.066667a25.6 25.6 0 0 1-25.6-22.442667L204.8 54.357333A25.6 25.6 0 0 1 227.242667 25.6zM785.066667 51.2l-44.885334 358.4H691.2l67.242667-358.4z m0-25.6h-26.624a25.6 25.6 0 0 0-25.173334 20.906667l-67.157333 358.4A25.6 25.6 0 0 0 691.2 435.2h48.981333a25.6 25.6 0 0 0 25.6-22.442667l44.885334-358.4A25.6 25.6 0 0 0 788.138667 25.6z",fill:"#175AA7","p-id":"1416"},null,-1)),zv=At(()=>d("path",{d:"M59.733333 665.6h930.133334a8.533333 8.533333 0 0 1 8.533333 8.533333v162.133334a8.533333 8.533333 0 0 1-8.533333 8.533333H59.733333a8.533333 8.533333 0 0 1-8.533333-8.533333V674.133333a8.533333 8.533333 0 0 1 8.533333-8.533333z",fill:"#96CAFF","p-id":"1417"},null,-1)),Kv=At(()=>d("path",{d:"M460.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM716.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM588.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM844.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8z",fill:"#175AA7","p-id":"1418"},null,-1)),qv=At(()=>d("path",{d:"M153.6 844.8h68.693333l-25.6 76.8H179.2l-25.6-76.8z",fill:"#96CAFF","p-id":"1419"},null,-1)),Jv=At(()=>d("path",{d:"M203.434667 844.8h8.533333l12.629333 17.493333-2.730666 8.106667h-26.965334z m-74.069334 0h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM102.4 844.8h128l-25.6 76.8h-76.8z",fill:"#175AA7","p-id":"1420"},null,-1)),Xv=At(()=>d("path",{d:"M844.8 844.8h68.693333l-25.6 76.8H870.4l-25.6-76.8z",fill:"#96CAFF","p-id":"1421"},null,-1)),Zv=At(()=>d("path",{d:"M913.066667 870.4l2.730666-8.106667-12.629333-17.493333h-8.533333l-8.533334 25.6z m-92.501334-25.6h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM793.6 844.8h128l-25.6 76.8h-76.8zM204.8 768h25.6v25.6h-25.6zM281.6 768h25.6v25.6h-25.6zM128 768h25.6v25.6h-25.6zM358.4 768h25.6v25.6h-25.6zM204.8 716.8h25.6v25.6h-25.6zM281.6 716.8h25.6v25.6h-25.6zM128 716.8h25.6v25.6h-25.6zM358.4 716.8h25.6v25.6h-25.6z",fill:"#175AA7","p-id":"1422"},null,-1)),Qv=At(()=>d("path",{d:"M69.12 640l176.128-249.941333A76.8 76.8 0 0 1 307.2 358.4h441.6A76.8 76.8 0 0 1 810.666667 390.058667L986.026667 640",fill:"#B3D9FF","p-id":"1423"},null,-1)),ey=At(()=>d("path",{d:"M742.4 358.4l187.050667 256.597333h57.941333L805.290667 358.4H742.4z",fill:"#96CAFF","p-id":"1424"},null,-1)),ty=At(()=>d("path",{d:"M51.2 640a25.6 25.6 0 0 0-25.6 25.6v153.6a25.6 25.6 0 0 0 25.6 25.6h921.6a25.6 25.6 0 0 0 25.6-25.6V665.6a25.6 25.6 0 0 0-25.6-25.6z m0-25.6h921.6a51.2 51.2 0 0 1 51.2 51.2v153.6a51.2 51.2 0 0 1-51.2 51.2H51.2a51.2 51.2 0 0 1-51.2-51.2V665.6a51.2 51.2 0 0 1 51.2-51.2z",fill:"#175AA7","p-id":"1425"},null,-1)),ny=At(()=>d("path",{d:"M167.936 451.84L186.197333 426.666667l15.786667-21.674667A51.2 51.2 0 0 1 243.370667 384h536.149333a51.2 51.2 0 0 1 41.386667 21.077333L985.429333 640h31.232L841.642667 390.058667A76.8 76.8 0 0 0 779.52 358.4H243.370667a76.8 76.8 0 0 0-62.122667 31.658667l-34.133333 47.104L5.12 640h31.232z",fill:"#175AA7","p-id":"1426"},null,-1)),sy=[jv,Gv,zv,Kv,qv,Jv,Xv,Zv,Qv,ey,ty,ny],ry={class:"tool-item_name"},ay={class:"t"},oy={key:0},iy={key:1},ly={key:2},uy={key:4},cy={class:"b"},dy={class:"tool-item"},fy=w3('
',1),hy={class:"tool-item_name"},_y=["href"],py=le({__name:"tool",setup(e){const t=it.stampForm;it.stampForm;const n=it.byteToSize,s=ur(),r=be(()=>s.network),a=be(()=>s.device),o=be(()=>s.updown);return(i,l)=>{const u=ft("router-link");return S(),I("div",Rv,[Ie(u,{class:"tool-item",to:"/router/device/list",title:"\u67E5\u770B\u5F53\u524D\u8FDE\u63A5\u8BBE\u5907"},{default:Ue(()=>[Bv,d("div",Uv,[d("span",null,J(a.value.devices.length),1)])]),_:1}),d("em",null,[Yv,d("span",Hv,J(X(t)(r.value.uptimeStamp)),1)]),Ie(u,{class:"tool-item",to:"/router/device/interface",title:"\u67E5\u770B\u5F53\u524D\u63A5\u53E3"},{default:Ue(()=>{var c;return[d("div",Wv,[(S(),I("svg",Vv,sy))]),d("div",ry,[d("span",null,J(((c=r.value.defaultInterface)==null?void 0:c.toLocaleUpperCase())||"--"),1)])]}),_:1}),d("em",null,[d("span",ay,[r.value.networkInfo=="netSuccess"?(S(),I("span",oy," \u5DF2\u8054\u7F51 ")):r.value.networkInfo=="dnsFailed"?(S(),I("span",iy," DNS\u9519\u8BEF ")):r.value.networkInfo=="softSourceFailed"?(S(),I("span",ly," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(S(),I("span",uy," \u68C0\u6D4B\u4E2D "))]),d("span",cy," \u4E0A\u4F20: "+J(X(n)(o.value.up))+" \uFF5C \u4E0B\u8F7D: "+J(X(n)(o.value.download)),1)]),d("div",dy,[fy,d("div",hy,[d("a",{href:r.value.ipv4addr},[d("span",null,J(r.value.ipv4addr||"--"),1)],8,_y)])])])}}});var my=fe(py,[["__scopeId","data-v-0003d2de"]]);const gy={class:"header-desktop"},vy=le({__name:"header",setup(e){const t=_e(!1);return T9().afterEach(()=>{t.value=!1}),(s,r)=>(S(),I("header",gy,[Ie($v),Ie(my)]))}});var yy=fe(vy,[["__scopeId","data-v-5fdbc26a"]]);const by={};function Ey(e,t){const n=ft("router-view");return S(),Ce(n,{name:"default"},{default:Ue(({Component:s,route:r})=>[(S(),Ce(sd,null,{default:Ue(()=>[(S(),Ce(Ri(s),{key:r.path}))]),fallback:Ue(()=>[]),_:2},1024))]),_:1})}var ky=fe(by,[["render",Ey],["__scopeId","data-v-b888f30a"]]);const wy={};function Sy(e,t){return S(),I("section",null,[Ut(e.$slots,"default",{},void 0,!0)])}var Cy=fe(wy,[["render",Sy],["__scopeId","data-v-6a6bc058"]]);const Ty={class:"section-title"},Fy=le({__name:"section-title",props:{title:{type:String,default:""}},setup(e){return(t,n)=>(S(),I("div",Ty,[d("span",null,J(e.title),1),Ut(t.$slots,"default",{},void 0,!0)]))}});var Dy=fe(Fy,[["__scopeId","data-v-5cb5900e"]]);const Oy={},Py={class:"section-container"};function Ny(e,t){return S(),I("div",Py,[Ut(e.$slots,"default",{},void 0,!0)])}var Iy=fe(Oy,[["render",Ny],["__scopeId","data-v-790a0322"]]);const Ly={},My={class:"section-item"};function Ay(e,t){return S(),I("div",My,[Ut(e.$slots,"default",{},void 0,!0)])}var xy=fe(Ly,[["render",Ay],["__scopeId","data-v-abe9a852"]]),$y={install(e){e.component("layout-main",kv),e.component("layout-page",Dv),e.component("layout-header",yy),e.component("router-loading",ky),e.component("nas-section",Cy),e.component("nas-section-title",Dy),e.component("nas-section-container",Iy),e.component("nas-section-item",xy)}},Gs;class El{constructor(){Nl(this,Gs,void 0)}install(t){Il(this,Gs,t)}openWindow(t,n){const s=document.createElement("div"),r=Ie(t,fr(wt({},n),{close:()=>{Ta(null,s),s.remove()}}));po(this,Gs)&&(r.appContext=po(this,Gs)._context),Ta(r,s),document.body.appendChild(s)}}Gs=new WeakMap;const Ry=["onClick"],By=le({__name:"index",props:{setup:{type:String,default:"pppoe"}},setup(e){const n=_e(e.setup),s=[{name:"device-router",title:"\u8BBE\u5907\u8DEF\u7531",f:()=>{}},{name:"network-monitoring",title:"\u5E26\u5BBD\u76D1\u63A7",f:()=>{}},{name:"network-speed",title:"\u5185\u7F51\u6D4B\u901F",f:()=>{}},{name:"opkg",title:"\u8F6F\u4EF6\u6E90\u914D\u7F6E",f:()=>{}},{name:"sandbox",title:"\u6C99\u7BB1\u529F\u80FD",f:()=>{}},{name:"system-monitor",title:"\u7CFB\u7EDF\u76D1\u63A7",f:()=>{}},{name:"backup-upgrade",title:"\u5907\u4EFD\u5347\u7EA7",f:()=>{}},{name:"plugin-upgrade",title:"\u63D2\u4EF6\u5907\u4EFD",f:()=>{}},{name:"os-upgrade",title:"\u56FA\u4EF6\u66F4\u65B0",f:()=>{}}];return(r,a)=>{const o=ft("popups-container");return S(),Ce(o,{title:"\u529F\u80FD\u7BA1\u7406",transparent:""},{left:Ue(()=>[(S(),I(ve,null,_t(s,i=>d("li",{class:zt(["network-menu_item",{on:n.value==i.name}]),onClick:l=>n.value=i.name},[d("span",null,J(i.title),1)],10,Ry)),64))]),right:Ue(()=>[]),_:1})}}});const Uy={key:0,id:"app-dialog"},Yy={key:0,class:"app-dialog_bg"},Hy={key:0,class:"app-dialog_header"},Wy={class:"app-dialog_body"},Vy=le({__name:"index",props:{title:{type:String},bg:{type:Boolean,default:!0},width:{type:String},beforeClose:{type:Function}},emits:["change","update:modelValue","handleClose"],setup(e,{emit:t}){const n=e,s=_e(!1),r=()=>{n.beforeClose&&n.beforeClose()===!1||(s.value=!1,t("update:modelValue",!1),t("handleClose"))};return is(()=>{s.value=!0}),(a,o)=>(S(),Ce(ja,{name:"dialog1"},{default:Ue(()=>[s.value?(S(),I("div",Uy,[e.bg?(S(),I("div",Yy)):me("",!0),d("div",{class:"app-dialog_container",style:Ts({width:e.width})},[e.title!==void 0?(S(),I("div",Hy,[d("span",null,J(e.title),1),d("button",{class:"close",onClick:o[0]||(o[0]=i=>r())},[Ie(y1)])])):me("",!0),d("div",Wy,[Ut(a.$slots,"default",{},void 0,!0)])],4)])):me("",!0)]),_:3}))}});var kl=fe(Vy,[["__scopeId","data-v-1cf3987a"]]);const wl=e=>(at("data-v-24ffa06c"),e=e(),ot(),e),jy={class:"tools-container"},Gy=wl(()=>d("h1",null,"\u6B22\u8FCE\u4F7F\u7528iStoreOS",-1)),zy=wl(()=>d("p",null,"\u70B9\u51FB\u5F00\u59CB\u8BBE\u7F6E\uFF0C\u6211\u4EEC\u5C06\u4F1A\u5F15\u5BFC\u4F60\u5B8C\u6210iStoreOS\u7684\u4E00\u4E9B\u57FA\u7840\u914D\u7F6E\uFF0C",-1)),Ky=wl(()=>d("p",null,"\u6BD4\u5982\u6570\u636E\u76EE\u5F55\u3001\u5F71\u97F3\u548C\u8FDC\u7A0B\u4E0B\u8F7D\u914D\u7F6E\u7B49",-1)),qy={class:"btns"},Jy=le({__name:"top",setup(e){const t=ge("next");return ge("back"),(n,s)=>(S(),I("div",jy,[Gy,zy,Ky,d("div",qy,[d("button",{class:"next",onClick:s[0]||(s[0]=(...r)=>X(t)&&X(t)(...r))},"\u4E0B\u4E00\u6B65")])]))}});var Xy=fe(Jy,[["__scopeId","data-v-24ffa06c"]]);const ds=e=>(at("data-v-99d95164"),e=e(),ot(),e),Zy=["onSubmit"],Qy=ds(()=>d("div",{class:"label-name"}," \u63A5\u4E0B\u6765\u8BF7\u9009\u62E9\u4E00\u4E2A\u4E3B\u76EE\u5F55\u7A7A\u95F4\uFF08>20G && EXT4\uFF09 ",-1)),eb={class:"label-value"},tb=ds(()=>d("option",{value:""},"\u9009\u62E9\u5B58\u50A8\u7A7A\u95F4",-1)),nb=["value","disabled"],sb=ds(()=>d("div",{class:"msg"}," \u6570\u636E\u76EE\u5F55\u4E3B\u8981\u5B58\u653E\u4F60\u5728\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u914D\u7F6E\u6587\u4EF6\u3001\u7D22\u5F15\u6587\u4EF6\u3001\u7F29\u7565\u56FE\u7B49\uFF0C\u5EFA\u8BAE\u63A5\u5165\u5BB9\u91CF\u8F83\u5927\u7684\u786C\u76D8\u5206\u533A\uFF0C\u9009\u62E9\u4F5C\u4E3A\u6570\u636E\u76EE\u5F55\u3002 ",-1)),rb={class:"form-item"},ab=ds(()=>d("label",null," \u7F13\u5B58\u76EE\u5F55 ",-1)),ob={class:"label-value"},ib=ds(()=>d("label",null," \u4E0B\u8F7D\u76EE\u5F55 ",-1)),lb={class:"label-value"},ub=ds(()=>d("label",null," \u914D\u7F6E\u76EE\u5F55 ",-1)),cb={class:"label-value"},db=ds(()=>d("label",null,[yt(" docker\u76EE\u5F55 "),d("span",null,[d("div",{class:"msg"}," \uFF08\u5982\u679Cdocker\u6709\u6548\uFF0C\u5C06\u6E05\u7A7A\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0B\u7684\u6587\u4EF6\u5E76\u8FC1\u79FB\u5230\u8BE5\u76EE\u5F55\uFF09 ")])],-1)),fb={class:"label-value"},hb={class:"btns"},_b=ds(()=>d("button",{class:"next"},"\u4E0B\u4E00\u6B65",-1)),pb=le({__name:"path",setup(e){const t=ur(),n=be(()=>{var _;return((_=t==null?void 0:t.disk)==null?void 0:_.disks)||[]}),s=be(()=>{var _;return((_=t==null?void 0:t.raid)==null?void 0:_.disks)||[]}),r=be(()=>[...n.value,...s.value].filter(y=>y.childrens).map(y=>y.childrens)),a=ge("back"),o=ge("next"),i=()=>{o()},l=_=>!(_!=null&&_.mountPoint)||_.filesystem!="ext4"||Number(_.sizeInt)<21474836480,u=()=>{c.value.cachePath=c.value.path+"/Caches",c.value.plublicPath=c.value.path+"/Public",c.value.downloadPath=c.value.path+"/Public/Downloads",c.value.settingPath=c.value.path+"/Configs",c.value.dockerPath=c.value.path+"/docker"},c=ge("config");return(_,p)=>(S(),I("form",{class:"tools-container",onSubmit:ls(i,["prevent"])},[Qy,d("div",eb,[d("label",null,[Xe(d("select",{required:"","onUpdate:modelValue":p[0]||(p[0]=y=>X(c).path=y),onChange:u},[tb,(S(!0),I(ve,null,_t(r.value,y=>(S(),I(ve,null,[(S(!0),I(ve,null,_t(y,E=>(S(),I(ve,null,[E.mountPoint?(S(),I("option",{key:0,value:E.mountPoint,disabled:l(E)},J(E.mountPoint)+" ["+J(`${E.name} ${E.total}`)+"] ",9,nb)):me("",!0)],64))),256))],64))),256))],544),[[Od,X(c).path]])])]),sb,X(c).path!=""?(S(),I(ve,{key:0},[d("div",rb,[ab,d("div",ob,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[1]||(p[1]=y=>X(c).cachePath=y),required:""},null,512),[[nn,X(c).cachePath,void 0,{trim:!0}]])])]),ib,d("div",lb,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[2]||(p[2]=y=>X(c).downloadPath=y),required:""},null,512),[[nn,X(c).downloadPath,void 0,{trim:!0}]])])]),ub,d("div",cb,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[3]||(p[3]=y=>X(c).settingPath=y),required:""},null,512),[[nn,X(c).settingPath,void 0,{trim:!0}]])])]),db,d("div",fb,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[4]||(p[4]=y=>X(c).dockerPath=y),required:""},null,512),[[nn,X(c).dockerPath,void 0,{trim:!0}]])])])]),d("div",hb,[d("button",{class:"back",type:"button",onClick:p[5]||(p[5]=(...y)=>X(a)&&X(a)(...y))},"\u4E0A\u4E00\u6B65"),_b])],64)):me("",!0)],40,Zy))}});var mb=fe(pb,[["__scopeId","data-v-99d95164"]]);const gb=e=>(at("data-v-7b090953"),e=e(),ot(),e),vb={class:"tools-container"},yb=gb(()=>d("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u4E0B\u8F7D\u5DE5\u5177? ",-1)),bb={class:"form-item"},Eb=["value"],kb=["src"],wb={class:"btns"},Sb=le({__name:"download",setup(e){const t=ge("next"),n=ge("back"),s=ge("config"),r=ge("apps");be(()=>s.value);const a=Tt([{name:"aria2",title:"Aria2\u4E0B\u8F7D\u5668"},{name:"transmission",title:"Transmission\u4E0B\u8F7D\u5668"},{name:"qbittorrent",title:"qBittorrent\u4E0B\u8F7D\u5668"}]),o=i=>oe.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${i}/logo.png`);return(i,l)=>(S(),I("div",vb,[yb,(S(!0),I(ve,null,_t(a,u=>(S(),I("div",bb,[d("label",null,[Xe(d("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=c=>je(r)?r.value=c:null)},null,8,Eb),[[Wi,X(r)]]),d("img",{src:o(u.name),alt:""},null,8,kb),yt(" "+J(u.title),1)])]))),256)),d("div",wb,[d("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>X(n)&&X(n)(...u))},"\u4E0A\u4E00\u6B65"),d("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>X(t)&&X(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var Cb=fe(Sb,[["__scopeId","data-v-7b090953"]]);const Tb=e=>(at("data-v-4d855e61"),e=e(),ot(),e),Fb={class:"tools-container"},Db=Tb(()=>d("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u5F71\u97F3\u5A31\u4E50? ",-1)),Ob={class:"form-item"},Pb=["value"],Nb=["src"],Ib={class:"btns"},Lb=le({__name:"media",setup(e){const t=ge("next"),n=ge("back"),s=ge("config"),r=ge("apps");be(()=>s.value);const a=Tt([{name:"jellyfin",title:"Jellyfin\u79C1\u6709\u5F71\u9662"},{name:"emby",title:"Emby\u5F71\u9662"},{name:"plex",title:"Plex\u5F71\u9662"}]),o=i=>oe.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${i}/logo.png`);return(i,l)=>(S(),I("div",Fb,[Db,(S(!0),I(ve,null,_t(a,u=>(S(),I("div",Ob,[d("label",null,[Xe(d("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=c=>je(r)?r.value=c:null)},null,8,Pb),[[Wi,X(r)]]),d("img",{src:o(u.name),alt:""},null,8,Nb),yt(" "+J(u.title),1)])]))),256)),d("div",Ib,[d("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>X(n)&&X(n)(...u))},"\u4E0A\u4E00\u6B65"),d("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>X(t)&&X(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var Mb=fe(Lb,[["__scopeId","data-v-4d855e61"]]);const Ab=e=>(at("data-v-2b6459ac"),e=e(),ot(),e),xb={class:"tools-container"},$b=Ab(()=>d("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u591A\u5A92\u4F53\u5DE5\u5177 ",-1)),Rb={class:"form-item"},Bb=["value"],Ub=["src"],Yb={class:"btns"},Hb=le({__name:"multimedia",setup(e){const t=ge("next"),n=ge("back"),s=ge("config"),r=ge("apps");be(()=>s.value);const a=Tt([{name:"photoprism",title:"PhotoPrism\u76F8\u518C\u7BA1\u7406"},{name:"navidrome",title:"Navidrome\u97F3\u4E50"},{name:"lanraragi",title:"LANraragi\u7535\u5B50\u4E66"}]),o=i=>oe.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${i}/logo.png`);return(i,l)=>(S(),I("div",xb,[$b,(S(!0),I(ve,null,_t(a,u=>(S(),I("div",Rb,[d("label",null,[Xe(d("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=c=>je(r)?r.value=c:null)},null,8,Bb),[[Wi,X(r)]]),d("img",{src:o(u.name),alt:""},null,8,Ub),yt(" "+J(u.title),1)])]))),256)),d("div",Yb,[d("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>X(n)&&X(n)(...u))},"\u4E0A\u4E00\u6B65"),d("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>X(t)&&X(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var Wb=fe(Hb,[["__scopeId","data-v-2b6459ac"]]);const w1=e=>(at("data-v-a11bdd32"),e=e(),ot(),e),Vb={class:"nalert"},jb={key:0,class:"nalert-container"},Gb={class:"nalert-data"},zb={class:"nalert-body"},Kb=w1(()=>d("div",{class:"nalert-bodt_title"},[d("svg",{t:"1670832330919",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2696",width:"128",height:"128"},[d("path",{d:"M849.92 174.08C759.466667 83.626667 640 34.133333 512 34.133333s-247.466667 49.493333-337.92 139.946667C83.626667 264.533333 34.133333 384 34.133333 512s49.493333 247.466667 139.946667 337.92C264.533333 940.373333 384 989.866667 512 989.866667s247.466667-49.493333 337.92-139.946667C940.373333 759.466667 989.866667 640 989.866667 512s-49.493333-247.466667-139.946667-337.92zM512 218.453333c30.72 0 56.32 25.6 56.32 56.32 0 30.72-25.6 56.32-56.32 56.32s-56.32-25.6-56.32-56.32c0-30.72 25.6-56.32 56.32-56.32z m90.453333 552.96H443.733333c-18.773333 0-34.133333-15.36-34.133333-34.133333s15.36-34.133333 34.133333-34.133333h44.373334V455.68H477.866667c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h44.373333c18.773333 0 34.133333 15.36 34.133333 34.133334v281.6h44.373334c18.773333 0 34.133333 15.36 34.133333 34.133333s-13.653333 34.133333-32.426667 34.133333z",fill:"#333333","p-id":"2697"})]),d("span",null,J("\u63D0\u793A"))],-1)),qb={class:"nalert-bodt_msg"},Jb=w1(()=>d("a",null,"docker\u8981\u8FC1\u79FB\u7684\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),Xb={class:"nalert-bodt_btns"},Zb=le({__name:"app",props:{close:{type:Function,required:!0},callback:{type:Function,required:!0},bg:{type:Boolean,default:!0}},setup(e){const t=e,n=_e(!1),s=_e(1),r=()=>{t.callback(s.value)},a=()=>{t.close()};return is(()=>{setTimeout(()=>{n.value=!0},0)}),(o,i)=>(S(),I("div",Vb,[e.bg?(S(),I("div",{key:0,class:"nalert-bg",onClick:a})):me("",!0),Ie(ja,{name:"dialog-nlaert"},{default:Ue(()=>[n.value?(S(),I("div",jb,[d("div",Gb,[d("div",zb,[Kb,d("div",qb,[Jb,d("label",null,[Xe(d("input",{type:"radio",value:1,"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l)},null,512),[[es,s.value]]),yt(" \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 ")]),d("label",null,[Xe(d("input",{type:"radio",value:0,"onUpdate:modelValue":i[1]||(i[1]=l=>s.value=l)},null,512),[[es,s.value]]),yt(" \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 ")])]),d("div",Xb,[d("button",{class:"next",onClick:i[2]||(i[2]=l=>r())}," \u786E\u5B9A "),d("button",{class:"clear",onClick:i[3]||(i[3]=l=>a())}," \u53D6\u6D88 ")])])])])):me("",!0)]),_:1})]))}});var Qb=fe(Zb,[["__scopeId","data-v-a11bdd32"]]),eE=()=>new Promise((e,t)=>{const n=document.createElement("div"),s=()=>{Ta(null,n),n.remove()},a=Ie(Qb,wt({},{callback:o=>{e(o),s()},close:()=>{t(),s()}}));Ta(a,n),document.body.appendChild(n)});const Sl=e=>(at("data-v-11842e6c"),e=e(),ot(),e),tE={class:"tools-container"},nE={key:0,class:"block"},sE=Sl(()=>d("li",null," \u8FC1\u79FBdocker\u76EE\u5F55 ",-1)),rE=Sl(()=>d("li",null," \u751F\u6210\u6570\u636E\u7684\u914D\u7F6E\u76EE\u5F55 ",-1)),aE=Sl(()=>d("li",null," \u662F\u5426\u7EE7\u7EED\uFF1F ",-1)),oE={key:1,class:"block block-msg"},iE={class:"msg-li"},lE={class:"msg-item"},uE={class:"btns"},cE=["disabled"],dE=["disabled"],fE=le({__name:"install",setup(e){ge("next");const t=ge("back");ge("init");const n=ge("apps"),s=ge("config");_e(0);const r=ge("disabled"),a=_e([]),o=_e(!1),i=()=>te(this,null,function*(){if(!!window.confirm("\u60A8\u786E\u5B9A\u8981\u6267\u884C\u64CD\u4F5C\u5417?")){if(a.value=[],a.value.push("\u521D\u59CB\u5316\u914D\u7F6E..."),r.value=!0,(yield _())!==!0){r.value=!1;return}if((yield u())!==!0){r.value=!1;return}if((yield c())!==!0){r.value=!1;return}a.value.push("\u914D\u7F6E\u5B8C\u6210,\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E"),a.value.push("\u8BF7\u5173\u95ED\u7A97\u53E3"),o.value=!0}}),l=()=>{localStorage.setItem("nas_guide_init","1"),window.location.reload()},u=()=>te(this,null,function*(){let E=!1;a.value.push("\u914D\u7F6E\u76EE\u5F55...");try{const C=s.value,F={home:C.path,downloads:C.downloadPath,configs:C.settingPath,caches:C.cachePath,public:C.plublicPath},g=yield oe.Quickstart.Guide.GlobalFolders.POST(F);if(g.data){const{success:k,error:P,scope:b,detail:D}=g.data;if((k||0)==0&&(E=!0,a.value.push("\u76EE\u5F55\u914D\u7F6E\u5B8C\u6210...")),P)throw P}}catch(C){a.value.push(C)}return E}),c=()=>te(this,null,function*(){let E=!1;const C=n.value;if(a.value.push("\u5B89\u88C5\u63D2\u4EF6..."),C.length>0)try{const F={packages:C},g=yield oe.Quickstart.AutoSetup.POST(F);if(g.data){const{success:k,error:P}=g.data;if(k==0&&(a.value.push("\u5DF2\u63D0\u4EA4\u81F3\u540E\u5929\u5B89\u88C5"),E=!0),P)throw P}}catch(F){a.value.push(F)}else a.value.push("\u6CA1\u6709\u9700\u8981\u5B89\u88C5\u7684\u63D2\u4EF6,\u8DF3\u8FC7"),E=!0;return E}),_=()=>te(this,null,function*(){let E=!1;a.value.push("\u6B63\u5728\u83B7\u53D6docker\u72B6\u6001");const{dockerPath:C}=s.value;try{const F=yield oe.Quickstart.Guide.DockerStatus.GET();if(F.data){const{success:g,error:k,result:P}=F.data;if(k)throw k;if(P&&P.path===C)return a.value.push("docker\u8DEF\u5F84\u4E00\u81F4,\u8DF3\u8FC7\u8FC1\u79FB"),!0}}catch(F){return a.value.push(F),!1}a.value.push("\u6B63\u5728\u8FC1\u79FBdocker...");try{const F=yield oe.Quickstart.Guide.DockerTransfer.POST({path:C,force:!1});if(F.data){const{result:g,success:k,error:P}=F.data;if((k||0)==0)if(g!=null&&g.emptyPathWarning)try{switch(yield eE()){case 0:E=yield p(C);break;case 1:E=yield y(C);break;default:a.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),E=!0}}catch(b){a.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),E=!0}else E=!0,a.value.push("\u8FC1\u79FB\u5B8C\u6210...");if(P)throw F.data.error}}catch(F){a.value.push(F)}return E}),p=E=>te(this,null,function*(){let C=!1;try{const F=yield oe.Quickstart.Guide.DockerTransfer.POST({path:E,force:!0,overwriteDir:!0});if(F.data){const{result:g,success:k,error:P}=F.data;if((k||0)==0&&(g!=null&&g.emptyPathWarning?a.value.push("\u8FC1\u79FB\u5931\u8D25..."):(C=!0,a.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),P)throw F.data.error}}catch(F){a.value.push(F)}return C}),y=E=>te(this,null,function*(){let C=!1;try{const F=yield oe.Quickstart.Guide.DockerTransfer.POST({path:E,force:!0,overwriteDir:!1});if(F.data){const{result:g,success:k,error:P}=F.data;if((k||0)==0&&(g!=null&&g.emptyPathWarning?a.value.push("\u8FC1\u79FB\u5931\u8D25..."):(C=!0,a.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),P)throw F.data.error}}catch(F){a.value.push(F)}return C});return(E,C)=>(S(),I("div",tE,[X(r)?me("",!0):(S(),I("div",nE,[sE,rE,d("li",null," \u5B89\u88C5\u9009\u4E2D\u7684 "+J(X(n).length)+" \u4E2A\u63D2\u4EF6 ",1),aE])),a.value.length>0?(S(),I("div",oE,[(S(!0),I(ve,null,_t(a.value,F=>(S(),I("li",iE,[d("div",lE,J(F),1)]))),256))])):me("",!0),d("div",uE,[o.value?(S(),I("button",{key:1,onClick:l,class:"next"},"\u5173\u95ED")):(S(),I(ve,{key:0},[d("button",{class:"back",onClick:C[0]||(C[0]=(...F)=>X(t)&&X(t)(...F)),disabled:X(r)},"\u4E0A\u4E00\u6B65",8,cE),d("button",{class:"next",onClick:i,disabled:X(r)},"\u5B89\u88C5\u5E76\u914D\u7F6E",8,dE)],64))])]))}});var hE=fe(fE,[["__scopeId","data-v-11842e6c"]]);const _E=e=>(at("data-v-0dc4c17e"),e=e(),ot(),e),pE={class:"tools-container"},mE=_E(()=>d("div",{class:"block"},[d("p",null," \u914D\u7F6E\u5B8C\u6210 "),d("p",null,"\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E")],-1)),gE=le({__name:"success",setup(e){const t=ge("init"),n=()=>{t(),window.location.reload()};return(s,r)=>(S(),I("div",pE,[mE,d("div",{class:"btns"},[d("button",{onClick:n,class:"next"},"\u77E5\u9053\u4E86")])]))}});var vE=fe(gE,[["__scopeId","data-v-0dc4c17e"]]);const yE={class:"nas-tools_item"},bE=le({__name:"index",props:{close:Function},setup(e){const t=e,n=be(()=>[Xy,mb,Cb,Mb,Wb,hE,vE]),s=Yt(),r=()=>{if(y.value)return!1},a=()=>{var E,C,F,g;u(),t.close&&t.close(),s&&((F=(C=(E=s==null?void 0:s.appContext)==null?void 0:E.config)==null?void 0:C.globalProperties)==null?void 0:F.$close)&&((g=s.appContext.config.globalProperties)==null||g.$close())},o=_e(0),i=()=>{y.value||o.value>=n.value.length-1||o.value++},l=()=>{y.value||o.value!=0&&o.value--},u=()=>{oe.Storage.Set.POST({key:"nas_guide_init",type:"option",values:["1"]}).then(E=>{})},c=be(()=>({transform:`translateX(${o.value*-100}%)`})),_=_e({path:"",cachePath:"",downloadPath:"",settingPath:"",dockerPath:"",plublicPath:""}),p=_e([]),y=_e(!1);return Nt("next",i),Nt("back",l),Nt("init",u),Nt("config",_),Nt("apps",p),Nt("disabled",y),(E,C)=>(S(),Ce(kl,{class:"nas-dialog",title:"iStoreOS",onHandleClose:a,"before-close":r,width:"860px"},{default:Ue(()=>[d("div",{class:"nas-tools",style:Ts(c.value)},[(S(!0),I(ve,null,_t(n.value,(F,g)=>(S(),I("div",yE,[g==o.value?(S(),Ce(Ri(F),{key:0})):me("",!0)]))),256))],4)]),_:1}))}});var EE=fe(bE,[["__scopeId","data-v-c4e63fa4"]]);class kE extends El{OpenNasSettingWindow(){this.openWindow(By)}OpenGuideWindow(){this.openWindow(EE)}}const wE=new kE;const S1=e=>(at("data-v-1d33ca6f"),e=e(),ot(),e),SE={class:"app-item"},CE={class:"app-card"},TE={class:"app-item_icon"},FE=["src"],DE={class:"app-item_info"},OE={class:"app-title"},PE={class:"app-as"},NE=S1(()=>d("span",{style:{margin:"0 10px"}},"|",-1)),IE=["title"],LE={key:0,class:"app-btn"},ME={key:1,class:"app-btn"},AE=S1(()=>d("div",null,null,-1)),xE=le({__name:"app",props:{app:{type:Object,required:!0}},setup(e){const t=e,n=_e(localStorage.getItem("i18n")),s=o1(),r=it.numberFormat,a=be(()=>s.appsExpand[t.app.name]||{downloadCount:0,isStar:null,name:t.app.name,starCount:0}),o=()=>{de.Message("\u60A8\u5DF2\u70B9\u8D5E\u8FC7\u4E86")},i=()=>te(this,null,function*(){var l;try{const u=yield oe.ApiStore.star.POST({appId:t.app.name,deviceId:it.getDeviceId()});((l=u==null?void 0:u.data)==null?void 0:l.success)==0&&s.appsExpand[t.app.name]&&(s.appsExpand[t.app.name].isStar=!0)}catch(u){de.Error(`${u}`)}});return(l,u)=>{const c=ft("icon-star-off"),_=ft("icon-star-on");return S(),I("div",SE,[d("div",CE,[d("div",TE,[d("img",{src:e.app.getIcon(),alt:""},null,8,FE)]),d("div",DE,[d("div",OE,[yt(J(n.value==="en"&&e.app.title_en||e.app.title)+" ",1),d("em",null,J(e.app.version),1)]),d("div",PE,[d("span",null,J(X(r)(a.value.downloadCount))+" "+J(l.$t("\u6B21\u4E0B\u8F7D")),1),NE,d("span",null,J(X(r)(a.value.starCount))+" "+J(l.$t("\u6B21\u70B9\u8D5E")),1),a.value.isStar!=null?(S(),I(ve,{key:0},[a.value.isStar?(S(),I("a",{key:0,class:"star-btn",onClick:u[0]||(u[0]=p=>o())},[Ie(c)])):(S(),I("a",{key:1,class:"star-btn",onClick:u[1]||(u[1]=p=>i())},[Ie(_)]))],64)):me("",!0)]),d("div",{class:"app-desc",title:e.app.description},J(n.value==="en"&&e.app.description_en||e.app.description),9,IE)])]),e.app.isInstall()?(S(),I("div",LE,[e.app.isUpdate()?(S(),I("button",{key:0,class:"update",onClick:u[2]||(u[2]=p=>e.app.update())},J(l.$t("\u66F4\u65B0")),1)):me("",!0),d("button",{class:"del",onClick:u[3]||(u[3]=p=>e.app.uninstall())},J(l.$t("\u5378\u8F7D")),1),d("button",{onClick:u[4]||(u[4]=p=>e.app.openApp()),class:"open"},J(l.$t("\u6253\u5F00")),1)])):(S(),I("div",ME,[AE,d("button",{class:"install",onClick:u[5]||(u[5]=p=>e.app.install())},J(l.$t("\u5B89\u88C5")),1)]))])}}});var Io=fe(xE,[["__scopeId","data-v-1d33ca6f"]]);const $E=le({__name:"index",emits:["change"],setup(e,{emit:t}){const n=i=>{},s=i=>{i===null&&console.log("dragleave")},r=i=>{i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="link")},a=i=>{i.preventDefault(),o(i)},o=i=>{var u;const l=(u=i==null?void 0:i.dataTransfer)==null?void 0:u.files;if(l&&l.length>0){const c=[];for(let _=0;_(S(),I("div",{onDrop:a,onDragenter:n,onDragleave:s,onDragover:r},[Ut(i.$slots,"default")],32))}});const RE={key:0},BE={class:"section-title"},UE={class:"section-list"},YE={key:1},HE={class:"section-title"},WE={class:"section-list"},VE={key:2},jE={class:"section-title"},GE={class:"section-list"},zE=le({__name:"appStore",setup(e){const t=o1(),n=be(()=>t.localApps||[]),s=be(()=>t.remoteApps||[]),r=be(()=>n.value.filter(i=>i.isUpdate())),a=i=>{if(i&&i.length>0){const l=i[0];(l.name.endsWith(".run")||l.name.endsWith(".ipk"))&&o(l)}},o=i=>te(this,null,function*(){const l=new FormData;l.append(i.name,i);const u=de.Loading("\u4E0A\u4F20\u4E2D...");try{const c=yield oe.Store.upload.POST(l);if(c.data){const{stderr:_,code:p}=c.data;if(p==0&&As.istore.Open(),_)throw _}}catch(c){de.Error(`${c}`)}finally{u.Close()}});return(i,l)=>(S(),Ce($E,{onChange:a},{default:Ue(()=>[r.value.length>0?(S(),I("section",RE,[d("div",BE,J(i.$t("\u53EF\u66F4\u65B0"))+" ("+J(r.value.length)+") ",1),d("div",UE,[(S(!0),I(ve,null,_t(r.value,u=>(S(),Ce(Io,{app:u},null,8,["app"]))),256))])])):me("",!0),n.value.length>0?(S(),I("section",YE,[d("div",HE,J(i.$t("\u5DF2\u5B89\u88C5"))+" ("+J(n.value.length)+") ",1),d("div",WE,[(S(!0),I(ve,null,_t(n.value,u=>(S(),Ce(Io,{app:u},null,8,["app"]))),256))])])):me("",!0),s.value.length>0?(S(),I("section",VE,[d("div",jE,J(i.$t("\u5168\u90E8\u8F6F\u4EF6"))+" ("+J(s.value.length)+") ",1),d("div",GE,[(S(!0),I(ve,null,_t(s.value,u=>(S(),I(ve,null,[u.isInstall()?me("",!0):(S(),Ce(Io,{key:0,app:u},null,8,["app"]))],64))),256))])])):me("",!0)]),_:1}))}});var KE=fe(zE,[["__scopeId","data-v-c546f0d4"]]);const qE=le({__name:"index",props:{close:Function},setup(e){const t=e,n=()=>{t.close&&t.close()};return(s,r)=>(S(),Ce(kl,{onHandleClose:n,title:s.$t("\u5E94\u7528\u4E2D\u5FC3")},{default:Ue(()=>[Ie(KE)]),_:1},8,["title"]))}});class JE extends El{Open(){this.openWindow(qE)}}const XE=new JE,ZE={class:"tab-content"},QE={class:"item-label"},ek=d("div",{class:"item-label_key"},[d("span",null,"\u540D\u79F0")],-1),tk={class:"item-label_value"},nk={key:0,class:"item-label"},sk=d("div",{class:"item-label_key"},[d("span",null,"\u578B\u53F7")],-1),rk={class:"item-label_value"},ak={class:"item-label"},ok=d("div",{class:"item-label_key"},[d("span",null,"\u8DEF\u5F84")],-1),ik={class:"item-label_value"},lk={class:"item-label"},uk=d("div",{class:"item-label_key"},[d("span",null,"\u5BB9\u91CF")],-1),ck={class:"item-label_value"},dk={class:"item-label"},fk=d("div",{class:"item-label_key"},[d("span",null,"\u7C7B\u578B")],-1),hk={class:"item-label_value"},_k={key:1,class:"item-label"},pk=d("div",{class:"item-label_key"},[d("span",null,"\u7CFB\u7EDF\u5206\u533A")],-1),mk=d("div",{class:"item-label_value"},[d("span",null,"true")],-1),gk=[pk,mk],vk={key:2,class:"item-label"},yk=d("div",{class:"item-label_key"},[d("span",null,"docker\u5206\u533A")],-1),bk=d("div",{class:"item-label_value"},[d("span",null,"true")],-1),Ek=[yk,bk],kk={key:3,class:"item-label"},wk=d("div",{class:"item-label_key"},[d("span",null,"\u63A5\u5165\u65B9\u5F0F")],-1),Sk=d("div",{class:"item-label_value"},[d("span",null,"\u5916\u63A5")],-1),Ck=[wk,Sk],Tk={class:"item-label"},Fk=d("div",{class:"item-label_key"},[d("span",null,"\u5206\u533A\u6570\u91CF")],-1),Dk={class:"item-label_value"},Ok={key:4,class:"item-label"},Pk=d("div",{class:"item-label_key"},[d("span",null,"error")],-1),Nk={class:"item-label_value"},Ik=le({__name:"main",setup(e){const t=ge("disk");return(n,s)=>{var r;return S(),I("section",ZE,[d("div",QE,[ek,d("div",tk,[d("span",null,J(X(t).name),1)])]),X(t).venderModel?(S(),I("div",nk,[sk,d("div",rk,[d("span",null,J(X(t).venderModel),1)])])):me("",!0),d("div",ak,[ok,d("div",ik,[d("span",null,J(X(t).path),1)])]),d("div",lk,[uk,d("div",ck,[d("span",null,J(X(t).used)+"/"+J(X(t).total),1)])]),d("div",dk,[fk,d("div",hk,[d("span",null,J(X(t).partyLabelType),1)])]),X(t).isSystemRoot?(S(),I("div",_k,gk)):me("",!0),X(t).isDockerRoot?(S(),I("div",vk,Ek)):me("",!0),X(t).isExternalDisk?(S(),I("div",kk,Ck)):me("",!0),d("div",Tk,[Fk,d("div",Dk,[d("span",null,J((r=X(t).childrens)==null?void 0:r.length),1)])]),X(t).errorInfo?(S(),I("div",Ok,[Pk,d("div",Nk,[d("span",null,J(X(t).errorInfo),1)])])):me("",!0)])}}}),Lk={class:"tab-content"},Mk=d("div",{class:"label-name"},[d("span",null,"\u76EE\u6807\u5206\u533A")],-1),Ak={class:"label-value"},xk=d("option",{value:-1},"\u9009\u62E9\u8981\u6302\u8F7D\u7684\u5206\u533A",-1),$k=["value"],Rk=d("div",{class:"label-name"},[d("span",null,"\u6302\u8F7D\u70B9")],-1),Bk={class:"label-value"},Uk={class:"label-btns"},Yk=["disabled"],Hk=le({__name:"mount",props:{mountIndex:{type:Number,required:!0}},setup(e){const t=e,n=ge("disk"),s=ge("disabled"),r=Tt({index:t.mountIndex!=null?t.mountIndex:-1,mountPoint:"",item:{mountPoint:"",path:"",name:"",filesystem:"",total:"",used:"",usage:0,uuid:"",isReadOnly:!1,isSystemRoot:!1,sizeInt:""}}),a=()=>{var l;const i=n.value;r.index==-1&&(r.item=null,r.mountPoint=""),i.childrens&&(r.item=i.childrens[r.index],r.mountPoint="/mnt/data_"+((l=r==null?void 0:r.item)==null?void 0:l.name))},o=()=>te(this,null,function*(){const i=n.value,l=r.item;if(l==null||r.index==-1){de.Message("\u83B7\u53D6\u4E0D\u5230\u8981\u6302\u8F7D\u7684\u5206\u533A");return}if(l.path==null||l.path==""){de.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533A\u8DEF\u5F84");return}if(l.uuid==null||l.uuid==""){de.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533AID");return}if(r.mountPoint==""){de.Message("\u6302\u8F7D\u70B9\u4E0D\u80FD\u4E3A\u7A7A");return}const u=de.Loading("\u6302\u8F7D\u4E2D...");try{const c=yield oe.Nas.Disk.Partition.Mount.POST({path:l.path,uuid:l.uuid,mountPoint:r.mountPoint});if(c!=null&&c.data){const{result:_,error:p}=c==null?void 0:c.data;if(p)throw p;_&&(i&&i.childrens&&i.childrens[r.index]&&(i.childrens[r.index].mountPoint=_.mountPoint),de.Success("\u6302\u8F7D\u6210\u529F,\u8BF7\u5173\u95ED\u7A97\u53E3"))}}catch(c){de.Error(`${c}`)}finally{u.Close(),s.value=!1}});return r.index>=0&&a(),(i,l)=>(S(),I("section",Lk,[Mk,d("div",Ak,[Xe(d("select",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.index=u),onChange:a},[xk,(S(!0),I(ve,null,_t(X(n).childrens,(u,c)=>{var _;return S(),I(ve,null,[u.mountPoint?me("",!0):(S(),I("option",{key:0,value:c},J(u.path)+"\uFF08"+J(u.total)+"\uFF0C"+J((_=u==null?void 0:u.filesystem)==null?void 0:_.toUpperCase())+"\uFF09 ",9,$k))],64)}),256))],544),[[Od,r.index]])]),r.index!=-1?(S(),I(ve,{key:0},[Rk,d("div",Bk,[Xe(d("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=u=>r.mountPoint=u)},null,512),[[nn,r.mountPoint,void 0,{trim:!0}]])]),d("div",Uk,[d("button",{class:"mount",disabled:X(s),onClick:l[2]||(l[2]=u=>o())},"\u6302\u8F7D",8,Yk)])],64)):me("",!0)]))}}),Wk={class:"tab-content"},Vk=d("colgroup",null,[d("col"),d("col"),d("col"),d("col"),d("col")],-1),jk=d("thead",null,[d("tr",null,[d("th",null," \u540D\u79F0 "),d("th",null," \u8DEF\u5F84 "),d("th",null," \u5BB9\u91CF "),d("th",null,"\u683C\u5F0F"),d("th",null," \u72B6\u6001 "),d("th",null," \u6302\u8F7D\u70B9 ")])],-1),Gk={key:0},zk={key:1,class:"warning"},Kk={key:0},qk=["onClick"],Jk=le({__name:"partition",setup(e){const t=ge("disk"),n=ge("onMount");return(s,r)=>(S(),I("section",Wk,[d("table",null,[Vk,jk,d("tbody",null,[(S(!0),I(ve,null,_t(X(t).childrens,(a,o)=>(S(),I("tr",null,[d("th",null,[d("span",null,J(a.name),1)]),d("th",null,J(a.path),1),d("th",null,[d("span",null,J(a.used||0)+"/"+J(a.total||0),1)]),d("th",null,[a.filesystem=="ext4"?(S(),I("span",Gk,J(a.filesystem),1)):(S(),I("span",zk,J(a.filesystem),1))]),d("th",null,[d("span",null,J(a.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1)]),d("th",null,[a.mountPoint?(S(),I("span",Kk,[d("span",null,J(a.mountPoint),1)])):(S(),I("a",{key:1,onClick:i=>X(n)(o)}," \u53BB\u6302\u8F7D ",8,qk))])]))),256))])])]))}});const _o=e=>(at("data-v-7d47f8ad"),e=e(),ot(),e),Xk={class:"tab-content"},Zk=_o(()=>d("div",{class:"label-name"},[d("span",null,"\u8981\u683C\u5F0F\u5316\u7684\u76EE\u6807")],-1)),Qk={class:"label-value2"},ew={class:"disk-item"},tw=_o(()=>d("em",{class:"disk_main"},"\u5168\u76D8",-1)),nw={class:"disk-item"},sw=["value"],rw=_o(()=>d("em",null,"\u5206\u533A",-1)),aw=_o(()=>d("div",{class:"label-name"},[d("span",null,"\u683C\u5F0F\u5316\u4E3A")],-1)),ow={class:"label-value2"},iw={class:"disk-item"},lw={class:"label-btns"},uw=["disabled"],cw=le({__name:"foramt",setup(e){const t=ge("disk"),n=ge("updateDisk"),s=ge("disabled"),r=_e(-1),a=_e("ext4"),o=()=>te(this,null,function*(){const u=wt({},t.value),c=r.value;if(c==-1){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${u.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u4E00\u4E2A\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;i(u);return}if(u.childrens){const _=u.childrens[c],p=_.mountPoint||_.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${p} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${p}?`))return;l(_,c);return}}),i=u=>te(this,null,function*(){if(s.value=!0,u.name==null||u.path==""){de.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(u.path==null||u.path==""){de.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}s.value=!0;const c=de.Loading("\u521D\u59CB\u5316\u4E2D...");try{const _=yield oe.Nas.Disk.Init.POST({name:u.name,path:u.path});if(_!=null&&_.data){const{result:p,error:y}=_==null?void 0:_.data;if(y&&de.Warning(y),p){if(p.errorInfo){de.Warning(p.errorInfo);return}de.Success("\u521D\u59CB\u5316\u6210\u529F"),n(p)}}}catch(_){de.Error(_)}finally{c.Close(),s.value=!1}}),l=(u,c)=>te(this,null,function*(){if(s.value=!0,u.path==null||u.path==""){de.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}s.value=!0;const _=de.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const p=yield oe.Nas.Disk.Partition.Format.POST({path:u.path,uuid:u.uuid,mountPoint:u.mountPoint});if(p!=null&&p.data){const{result:y,error:E}=p==null?void 0:p.data;if(E&&de.Warning(E),y){de.Success("\u683C\u5F0F\u5316\u6210\u529F");const C=wt({},t.value);C.childrens&&(C.childrens[c]=y),n(C)}}}catch(p){de.Error(p)}finally{_.Close(),s.value=!1}});return(u,c)=>(S(),I("section",Xk,[Zk,d("div",Qk,[d("label",ew,[Xe(d("input",{type:"radio",value:-1,"onUpdate:modelValue":c[0]||(c[0]=_=>r.value=_)},null,512),[[es,r.value]]),tw,yt(J(X(t).path)+"\uFF08"+J(X(t).total)+"\uFF09 ",1)]),(S(!0),I(ve,null,_t(X(t).childrens,(_,p)=>{var y;return S(),I("label",nw,[Xe(d("input",{type:"radio",value:p,"onUpdate:modelValue":c[1]||(c[1]=E=>r.value=E)},null,8,sw),[[es,r.value]]),rw,yt(J(_.path)+"\uFF08"+J(_.total)+"\uFF0C"+J((y=_==null?void 0:_.filesystem)==null?void 0:y.toUpperCase())+"\uFF09 ",1)])}),256))]),aw,d("div",ow,[d("label",iw,[Xe(d("input",{type:"radio",value:"ext4","onUpdate:modelValue":c[2]||(c[2]=_=>a.value=_)},null,512),[[es,a.value]]),yt(" EXT4 ")])]),d("div",lw,[d("button",{class:"mount",disabled:X(s),onClick:c[3]||(c[3]=_=>o())},"\u683C\u5F0F\u5316",8,uw)])]))}});var dw=fe(cw,[["__scopeId","data-v-7d47f8ad"]]);const fw={class:"tabls"},hw=["disabled"],_w=["disabled"],pw=["disabled"],mw=["disabled"],gw=le({__name:"index",props:{disk:{type:Object,required:!0},close:Function},setup(e){const t=e,n=()=>{i.value&&location.reload(),t.close&&t.close()},s=_e("main"),r=_e(!1),a=_e(t.disk),o=_e(null),i=_e(!1);Nt("disk",a),Nt("updateDisk",u=>{a.value=u,i.value=!0}),Nt("disabled",r),Nt("onMount",u=>{o.value=u,s.value="mount"});const l=u=>{u=="mount"&&(o.value=null),s.value=u};return(u,c)=>(S(),Ce(kl,{onHandleClose:n,title:"Storage Manager",width:"920px"},{default:Ue(()=>[d("ul",fw,[d("button",{class:zt({on:s.value=="main"}),onClick:c[0]||(c[0]=_=>l("main")),disabled:r.value},"\u6458\u8981",10,hw),d("button",{class:zt({on:s.value=="partition"}),onClick:c[1]||(c[1]=_=>l("partition")),disabled:r.value},"\u5206\u533A",10,_w),d("button",{class:zt({on:s.value=="mount"}),onClick:c[2]||(c[2]=_=>l("mount")),disabled:r.value},"\u6302\u8F7D",10,pw),d("button",{class:zt({on:s.value=="foramt"}),onClick:c[3]||(c[3]=_=>l("foramt")),disabled:r.value},"\u683C\u5F0F\u5316",10,mw)]),s.value=="main"?(S(),Ce(Ik,{key:0})):s.value=="partition"?(S(),Ce(Jk,{key:1})):s.value=="mount"?(S(),Ce(Hk,{key:2,mountIndex:o.value},null,8,["mountIndex"])):s.value=="foramt"?(S(),Ce(dw,{key:3})):me("",!0)]),_:1}))}});var vw=fe(gw,[["__scopeId","data-v-1b963653"]]);class yw extends El{OpenDisk(t){this.openWindow(vw,t)}}const C1=new yw;C1.OpenDisk;document.title=E1.HostName;const cr=Vi(o6);cr.use(b7());k7();cr.use(mv).use($y);cr.use(x9);cr.use(a6);cr.use(wE).use(XE).use(C1);cr.mount("#app");export{Ts as $,nn as A,ls as B,oe as C,Od as D,_t as E,ve as F,w3 as G,C1 as H,o1 as I,KE as J,Cw as K,Sw as L,T9 as M,ja as N,XE as O,ic as P,wE as Q,Nt as R,sd as S,de as T,zt as U,kl as V,El as W,is as X,As as Y,Ut as Z,fe as _,d as a,ww as a0,Tw as a1,Wi as a2,Fw as a3,a6 as a4,rr as a5,Vi as a6,Dw as a7,Ow as a8,Li as a9,j as aa,Ew as ab,k3 as ac,Zn as ad,Ie as b,I as c,le as d,Ce as e,Ri as f,X as g,it as h,be as i,Tt as j,dd as k,J as l,me as m,E1 as n,S as o,at as p,ot as q,ft as r,_e as s,Ev as t,ur as u,kw as v,Ue as w,Xe as x,es as y,yt as z}; + */const xs=typeof window!="undefined";function w7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const $e=Object.assign;function Oo(e,t){const n={};for(const s in t){const r=t[s];n[s]=ln(r)?r.map(e):e(r)}return n}const Or=()=>{},ln=Array.isArray,S7=/\/$/,C7=e=>e.replace(S7,"");function Po(e,t,n="/"){let s,r={},a="",o="";const i=t.indexOf("#");let l=t.indexOf("?");return i=0&&(l=-1),l>-1&&(s=t.slice(0,l),a=t.slice(l+1,i>-1?i:t.length),r=e(a)),i>-1&&(s=s||t.slice(0,i),o=t.slice(i,t.length)),s=O7(s!=null?s:t,n),{fullPath:s+(a&&"?")+a+o,path:s,query:r,hash:o}}function T7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function uc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function F7(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Zs(t.matched[s],n.matched[r])&&i1(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function i1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!D7(e[n],t[n]))return!1;return!0}function D7(e,t){return ln(e)?cc(e,t):ln(t)?cc(t,e):e===t}function cc(e,t){return ln(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function O7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let a=n.length-1,o,i;for(o=0;o1&&a--;else break;return n.slice(0,a).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var jr;(function(e){e.pop="pop",e.push="push"})(jr||(jr={}));var Pr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pr||(Pr={}));function P7(e){if(!e)if(xs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),C7(e)}const N7=/^[^#]+#/;function I7(e,t){return e.replace(N7,"#")+t}function L7(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const fo=()=>({left:window.pageXOffset,top:window.pageYOffset});function M7(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=L7(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function dc(e,t){return(history.state?history.state.position-t:-1)+e}const pi=new Map;function A7(e,t){pi.set(e,t)}function x7(e){const t=pi.get(e);return pi.delete(e),t}let $7=()=>location.protocol+"//"+location.host;function l1(e,t){const{pathname:n,search:s,hash:r}=t,a=e.indexOf("#");if(a>-1){let i=r.includes(e.slice(a))?e.slice(a).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),uc(l,"")}return uc(n,e)+s+r}function R7(e,t,n,s){let r=[],a=[],o=null;const i=({state:p})=>{const y=l1(e,location),E=n.value,C=t.value;let F=0;if(p){if(n.value=y,t.value=p,o&&o===E){o=null;return}F=C?p.position-C.position:0}else s(y);r.forEach(g=>{g(n.value,E,{delta:F,type:jr.pop,direction:F?F>0?Pr.forward:Pr.back:Pr.unknown})})};function l(){o=n.value}function u(p){r.push(p);const y=()=>{const E=r.indexOf(p);E>-1&&r.splice(E,1)};return a.push(y),y}function c(){const{history:p}=window;!p.state||p.replaceState($e({},p.state,{scroll:fo()}),"")}function _(){for(const p of a)p();a=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:_}}function fc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?fo():null}}function B7(e){const{history:t,location:n}=window,s={value:l1(e,n)},r={value:t.state};r.value||a(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const _=e.indexOf("#"),p=_>-1?(n.host&&document.querySelector("base")?e:e.slice(_))+l:$7()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),r.value=u}catch(y){console.error(y),n[c?"replace":"assign"](p)}}function o(l,u){const c=$e({},t.state,fc(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});a(l,c,!0),s.value=l}function i(l,u){const c=$e({},r.value,t.state,{forward:l,scroll:fo()});a(c.current,c,!0);const _=$e({},fc(s.value,l,null),{position:c.position+1},u);a(l,_,!1),s.value=l}return{location:s,state:r,push:i,replace:o}}function u1(e){e=P7(e);const t=B7(e),n=R7(e,t.state,t.location,t.replace);function s(a,o=!0){o||n.pauseListeners(),history.go(a)}const r=$e({location:"",base:e,go:s,createHref:I7.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function U7(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),u1(e)}function Y7(e){return typeof e=="string"||e&&typeof e=="object"}function c1(e){return typeof e=="string"||typeof e=="symbol"}const Hn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},d1=Symbol("");var hc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(hc||(hc={}));function Qs(e,t){return $e(new Error,{type:e,[d1]:!0},t)}function wn(e,t){return e instanceof Error&&d1 in e&&(t==null||!!(e.type&t))}const _c="[^/]+?",H7={sensitive:!1,strict:!1,start:!0,end:!0},W7=/[.+*?^${}()[\]/\\]/g;function V7(e,t){const n=$e({},H7,t),s=[];let r=n.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let _=0;_t.length?t.length===1&&t[0]===40+40?1:-1:0}function G7(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const z7={type:0,value:""},K7=/[a-zA-Z0-9_]/;function q7(e){if(!e)return[[]];if(e==="/")return[[z7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${u}": ${y}`)}let n=0,s=n;const r=[];let a;function o(){a&&r.push(a),a=[]}let i=0,l,u="",c="";function _(){!u||(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;i{o(k)}:Or}function o(c){if(c1(c)){const _=s.get(c);_&&(s.delete(c),n.splice(n.indexOf(_),1),_.children.forEach(o),_.alias.forEach(o))}else{const _=n.indexOf(c);_>-1&&(n.splice(_,1),c.record.name&&s.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function i(){return n}function l(c){let _=0;for(;_=0&&(c.record.path!==n[_].record.path||!f1(c,n[_]));)_++;n.splice(_,0,c),c.record.name&&!gc(c)&&s.set(c.record.name,c)}function u(c,_){let p,y={},E,C;if("name"in c&&c.name){if(p=s.get(c.name),!p)throw Qs(1,{location:c});C=p.record.name,y=$e(mc(_.params,p.keys.filter(k=>!k.optional).map(k=>k.name)),c.params&&mc(c.params,p.keys.map(k=>k.name))),E=p.stringify(y)}else if("path"in c)E=c.path,p=n.find(k=>k.re.test(E)),p&&(y=p.parse(E),C=p.record.name);else{if(p=_.name?s.get(_.name):n.find(k=>k.re.test(_.path)),!p)throw Qs(1,{location:c,currentLocation:_});C=p.record.name,y=$e({},_.params,c.params),E=p.stringify(y)}const F=[];let g=p;for(;g;)F.unshift(g.record),g=g.parent;return{name:C,path:E,params:y,matched:F,meta:e9(F)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:i,getRecordMatcher:r}}function mc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Z7(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Q7(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Q7(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function e9(e){return e.reduce((t,n)=>$e(t,n.meta),{})}function vc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function f1(e,t){return t.children.some(n=>n===e||f1(e,n))}const h1=/#/g,t9=/&/g,n9=/\//g,s9=/=/g,r9=/\?/g,_1=/\+/g,a9=/%5B/g,o9=/%5D/g,p1=/%5E/g,i9=/%60/g,m1=/%7B/g,l9=/%7C/g,g1=/%7D/g,u9=/%20/g;function bl(e){return encodeURI(""+e).replace(l9,"|").replace(a9,"[").replace(o9,"]")}function c9(e){return bl(e).replace(m1,"{").replace(g1,"}").replace(p1,"^")}function mi(e){return bl(e).replace(_1,"%2B").replace(u9,"+").replace(h1,"%23").replace(t9,"%26").replace(i9,"`").replace(m1,"{").replace(g1,"}").replace(p1,"^")}function d9(e){return mi(e).replace(s9,"%3D")}function f9(e){return bl(e).replace(h1,"%23").replace(r9,"%3F")}function h9(e){return e==null?"":f9(e).replace(n9,"%2F")}function La(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function _9(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ra&&mi(a)):[s&&mi(s)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function p9(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ln(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const m9=Symbol(""),bc=Symbol(""),ho=Symbol(""),v1=Symbol(""),gi=Symbol("");function vr(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function jn(e,t,n,s,r){const a=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,i)=>{const l=_=>{_===!1?i(Qs(4,{from:n,to:t})):_ instanceof Error?i(_):Y7(_)?i(Qs(2,{from:t,to:_})):(a&&s.enterCallbacks[r]===a&&typeof _=="function"&&a.push(_),o())},u=e.call(s&&s.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(_=>i(_))})}function No(e,t,n,s){const r=[];for(const a of e)for(const o in a.components){let i=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(g9(i)){const u=(i.__vccOpts||i)[t];u&&r.push(jn(u,n,s,a,o))}else{let l=i();r.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const c=w7(u)?u.default:u;a.components[o]=c;const p=(c.__vccOpts||c)[t];return p&&jn(p,n,s,a,o)()}))}}return r}function g9(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ec(e){const t=ge(ho),n=ge(v1),s=be(()=>t.resolve(X(e.to))),r=be(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],_=n.matched;if(!c||!_.length)return-1;const p=_.findIndex(Zs.bind(null,c));if(p>-1)return p;const y=kc(l[u-2]);return u>1&&kc(c)===y&&_[_.length-1].path!==y?_.findIndex(Zs.bind(null,l[u-2])):p}),a=be(()=>r.value>-1&&E9(n.params,s.value.params)),o=be(()=>r.value>-1&&r.value===n.matched.length-1&&i1(n.params,s.value.params));function i(l={}){return b9(l)?t[X(e.replace)?"replace":"push"](X(e.to)).catch(Or):Promise.resolve()}return{route:s,href:be(()=>s.value.href),isActive:a,isExactActive:o,navigate:i}}const v9=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ec,setup(e,{slots:t}){const n=Tt(Ec(e)),{options:s}=ge(ho),r=be(()=>({[wc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[wc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:qr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},a)}}}),y9=v9;function b9(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function E9(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!ln(r)||r.length!==s.length||s.some((a,o)=>a!==r[o]))return!1}return!0}function kc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const wc=(e,t,n)=>e!=null?e:t!=null?t:n,k9=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ge(gi),r=be(()=>e.route||s.value),a=ge(bc,0),o=be(()=>{let u=X(a);const{matched:c}=r.value;let _;for(;(_=c[u])&&!_.components;)u++;return u}),i=be(()=>r.value.matched[o.value]);Nt(bc,be(()=>o.value+1)),Nt(m9,i),Nt(gi,r);const l=_e();return Zn(()=>[l.value,i.value,e.name],([u,c,_],[p,y,E])=>{c&&(c.instances[_]=u,y&&y!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=y.leaveGuards),c.updateGuards.size||(c.updateGuards=y.updateGuards))),u&&c&&(!y||!Zs(c,y)||!p)&&(c.enterCallbacks[_]||[]).forEach(C=>C(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,_=i.value,p=_&&_.components[c];if(!p)return Sc(n.default,{Component:p,route:u});const y=_.props[c],E=y?y===!0?u.params:typeof y=="function"?y(u):y:null,F=qr(p,$e({},E,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(_.instances[c]=null)},ref:l}));return Sc(n.default,{Component:F,route:u})||F}}});function Sc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const w9=k9;function S9(e){const t=X7(e.routes,e),n=e.parseQuery||_9,s=e.stringifyQuery||yc,r=e.history,a=vr(),o=vr(),i=vr(),l=Kc(Hn);let u=Hn;xs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Oo.bind(null,M=>""+M),_=Oo.bind(null,h9),p=Oo.bind(null,La);function y(M,z){let W,Q;return c1(M)?(W=t.getRecordMatcher(M),Q=z):Q=M,t.addRoute(Q,W)}function E(M){const z=t.getRecordMatcher(M);z&&t.removeRoute(z)}function C(){return t.getRoutes().map(M=>M.record)}function F(M){return!!t.getRecordMatcher(M)}function g(M,z){if(z=$e({},z||l.value),typeof M=="string"){const h=Po(n,M,z.path),m=t.resolve({path:h.path},z),w=r.createHref(h.fullPath);return $e(h,m,{params:p(m.params),hash:La(h.hash),redirectedFrom:void 0,href:w})}let W;if("path"in M)W=$e({},M,{path:Po(n,M.path,z.path).path});else{const h=$e({},M.params);for(const m in h)h[m]==null&&delete h[m];W=$e({},M,{params:_(h)}),z.params=_(z.params)}const Q=t.resolve(W,z),Se=M.hash||"";Q.params=c(p(Q.params));const v=T7(s,$e({},M,{hash:c9(Se),path:Q.path})),f=r.createHref(v);return $e({fullPath:v,hash:Se,query:s===yc?p9(M.query):M.query||{}},Q,{redirectedFrom:void 0,href:f})}function k(M){return typeof M=="string"?Po(n,M,l.value.path):$e({},M)}function P(M,z){if(u!==M)return Qs(8,{from:z,to:M})}function b(M){return V(M)}function D(M){return b($e(k(M),{replace:!0}))}function N(M){const z=M.matched[M.matched.length-1];if(z&&z.redirect){const{redirect:W}=z;let Q=typeof W=="function"?W(M):W;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=k(Q):{path:Q},Q.params={}),$e({query:M.query,hash:M.hash,params:"path"in Q?{}:M.params},Q)}}function V(M,z){const W=u=g(M),Q=l.value,Se=M.state,v=M.force,f=M.replace===!0,h=N(W);if(h)return V($e(k(h),{state:typeof h=="object"?$e({},Se,h.state):Se,force:v,replace:f}),z||W);const m=W;m.redirectedFrom=z;let w;return!v&&F7(s,Q,W)&&(w=Qs(16,{to:m,from:Q}),gt(Q,Q,!0,!1)),(w?Promise.resolve(w):ee(m,Q)).catch(O=>wn(O)?wn(O,2)?O:Ft(O):Ee(O,m,Q)).then(O=>{if(O){if(wn(O,2))return V($e({replace:f},k(O.to),{state:typeof O.to=="object"?$e({},Se,O.to.state):Se,force:v}),z||m)}else O=H(m,Q,!0,f,Se);return he(m,Q,O),O})}function A(M,z){const W=P(M,z);return W?Promise.reject(W):Promise.resolve()}function U(M){const z=Vt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(M):M()}function ee(M,z){let W;const[Q,Se,v]=C9(M,z);W=No(Q.reverse(),"beforeRouteLeave",M,z);for(const h of Q)h.leaveGuards.forEach(m=>{W.push(jn(m,M,z))});const f=A.bind(null,M,z);return W.push(f),Ze(W).then(()=>{W=[];for(const h of a.list())W.push(jn(h,M,z));return W.push(f),Ze(W)}).then(()=>{W=No(Se,"beforeRouteUpdate",M,z);for(const h of Se)h.updateGuards.forEach(m=>{W.push(jn(m,M,z))});return W.push(f),Ze(W)}).then(()=>{W=[];for(const h of v)if(h.beforeEnter)if(ln(h.beforeEnter))for(const m of h.beforeEnter)W.push(jn(m,M,z));else W.push(jn(h.beforeEnter,M,z));return W.push(f),Ze(W)}).then(()=>(M.matched.forEach(h=>h.enterCallbacks={}),W=No(v,"beforeRouteEnter",M,z),W.push(f),Ze(W))).then(()=>{W=[];for(const h of o.list())W.push(jn(h,M,z));return W.push(f),Ze(W)}).catch(h=>wn(h,8)?h:Promise.reject(h))}function he(M,z,W){i.list().forEach(Q=>U(()=>Q(M,z,W)))}function H(M,z,W,Q,Se){const v=P(M,z);if(v)return v;const f=z===Hn,h=xs?history.state:{};W&&(Q||f?r.replace(M.fullPath,$e({scroll:f&&h&&h.scroll},Se)):r.push(M.fullPath,Se)),l.value=M,gt(M,z,W,f),Ft()}let ie;function Ae(){ie||(ie=r.listen((M,z,W)=>{if(!cn.listening)return;const Q=g(M),Se=N(Q);if(Se){V($e(Se,{replace:!0}),Q).catch(Or);return}u=Q;const v=l.value;xs&&A7(dc(v.fullPath,W.delta),fo()),ee(Q,v).catch(f=>wn(f,12)?f:wn(f,2)?(V(f.to,Q).then(h=>{wn(h,20)&&!W.delta&&W.type===jr.pop&&r.go(-1,!1)}).catch(Or),Promise.reject()):(W.delta&&r.go(-W.delta,!1),Ee(f,Q,v))).then(f=>{f=f||H(Q,v,!1),f&&(W.delta&&!wn(f,8)?r.go(-W.delta,!1):W.type===jr.pop&&wn(f,20)&&r.go(-1,!1)),he(Q,v,f)}).catch(Or)}))}let qe=vr(),ce=vr(),we;function Ee(M,z,W){Ft(M);const Q=ce.list();return Q.length?Q.forEach(Se=>Se(M,z,W)):console.error(M),Promise.reject(M)}function pt(){return we&&l.value!==Hn?Promise.resolve():new Promise((M,z)=>{qe.add([M,z])})}function Ft(M){return we||(we=!M,Ae(),qe.list().forEach(([z,W])=>M?W(M):z()),qe.reset()),M}function gt(M,z,W,Q){const{scrollBehavior:Se}=e;if(!xs||!Se)return Promise.resolve();const v=!W&&x7(dc(M.fullPath,0))||(Q||!W)&&history.state&&history.state.scroll||null;return Li().then(()=>Se(M,z,v)).then(f=>f&&M7(f)).catch(f=>Ee(f,M,z))}const nt=M=>r.go(M);let Wt;const Vt=new Set,cn={currentRoute:l,listening:!0,addRoute:y,removeRoute:E,hasRoute:F,getRoutes:C,resolve:g,options:e,push:b,replace:D,go:nt,back:()=>nt(-1),forward:()=>nt(1),beforeEach:a.add,beforeResolve:o.add,afterEach:i.add,onError:ce.add,isReady:pt,install(M){const z=this;M.component("RouterLink",y9),M.component("RouterView",w9),M.config.globalProperties.$router=z,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>X(l)}),xs&&!Wt&&l.value===Hn&&(Wt=!0,b(r.location).catch(Se=>{}));const W={};for(const Se in Hn)Object.defineProperty(W,Se,{get:()=>l.value[Se],enumerable:!0});M.provide(ho,z),M.provide(v1,Wc(W)),M.provide(gi,l);const Q=M.unmount;Vt.add(M),M.unmount=function(){Vt.delete(M),Vt.size<1&&(u=Hn,ie&&ie(),ie=null,l.value=Hn,Wt=!1,we=!1),Q()}}};function Ze(M){return M.reduce((z,W)=>z.then(()=>U(W)),Promise.resolve())}return cn}function C9(e,t){const n=[],s=[],r=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oZs(u,i))?s.push(i):n.push(i));const l=e.matched[o];l&&(t.matched.find(u=>Zs(u,l))||r.push(l))}return[n,s,r]}function T9(){return ge(ho)}const F9={};function D9(e,t){const n=ft("router-view");return S(),Ce(n)}var O9=fe(F9,[["render",D9]]);const P9="modulepreload",Cc={},N9="/",We=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${N9}${s}`,s in Cc)return;Cc[s]=!0;const r=s.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${a}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":P9,r||(o.as="script",o.crossOrigin=""),o.href=s,document.head.appendChild(o),r)return new Promise((i,l)=>{o.addEventListener("load",i),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};var I9={name:"PageRouter",path:"/router",component:()=>We(()=>import("./chunk.f2850d08.js"),["luci-static/istorex/chunk.f2850d08.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageRouterHome",redirect:"/router/index"},{path:"index",name:"PageRouterIndex",component:()=>We(()=>import("./chunk.b1661ee7.js"),["luci-static/istorex/chunk.b1661ee7.js","luci-static/istorex/index.js"])},{path:"network",name:"PageNetwork",component:()=>We(()=>import("./chunk.98c5424c.js"),["luci-static/istorex/chunk.98c5424c.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageNetworkIndex",component:()=>We(()=>import("./chunk.ee4cd872.js"),["luci-static/istorex/chunk.ee4cd872.js","luci-static/istorex/index.js"])},{path:"pppoe",component:()=>We(()=>import("./chunk.93c6cb9a.js"),["luci-static/istorex/chunk.93c6cb9a.js","luci-static/istorex/index.js"])},{path:"dhcp",component:()=>We(()=>import("./chunk.c40a1ac4.js"),["luci-static/istorex/chunk.c40a1ac4.js","luci-static/istorex/index.js"])},{path:"gateway",component:()=>We(()=>import("./chunk.11f1e958.js"),["luci-static/istorex/chunk.11f1e958.js","luci-static/istorex/index.js"])},{path:"intranet",component:()=>We(()=>import("./chunk.12358599.js"),["luci-static/istorex/chunk.12358599.js","luci-static/istorex/index.js","luci-static/istorex/chunk.6d3585bb.js"])},{path:"dns",component:()=>We(()=>import("./chunk.6700eedc.js"),["luci-static/istorex/chunk.6700eedc.js","luci-static/istorex/index.js"])}]},{path:"setting",name:"PageSetting",component:()=>We(()=>import("./chunk.814bd89b.js"),["luci-static/istorex/chunk.814bd89b.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageSettingIndex",component:()=>We(()=>import("./chunk.7a6e650d.js"),["luci-static/istorex/chunk.7a6e650d.js","luci-static/istorex/index.js"])},{path:"opkg",name:"SettingOpkg",component:()=>We(()=>import("./chunk.283eada3.js"),["luci-static/istorex/chunk.283eada3.js","luci-static/istorex/index.js"])},{path:"sandbox",component:()=>We(()=>import("./chunk.82d0adb4.js"),["luci-static/istorex/chunk.82d0adb4.js","luci-static/istorex/index.js"])},{path:"remotely",component:()=>We(()=>import("./chunk.e4a00bc3.js"),["luci-static/istorex/chunk.e4a00bc3.js","luci-static/istorex/index.js"])}]},{path:"disk",component:()=>We(()=>import("./chunk.d2056b7d.js"),["luci-static/istorex/chunk.d2056b7d.js","luci-static/istorex/index.js"]),children:[{path:"",component:()=>We(()=>import("./chunk.437e6cf0.js"),["luci-static/istorex/chunk.437e6cf0.js","luci-static/istorex/index.js"])}]},{path:"istore",component:()=>We(()=>import("./chunk.05e5ca20.js"),["luci-static/istorex/chunk.05e5ca20.js","luci-static/istorex/index.js"])},{path:"device",component:()=>We(()=>import("./chunk.a2310d96.js"),["luci-static/istorex/chunk.a2310d96.js","luci-static/istorex/index.js"]),children:[{path:"list",component:()=>We(()=>import("./chunk.eef43a4f.js"),["luci-static/istorex/chunk.eef43a4f.js","luci-static/istorex/index.js"])},{path:"interface",component:()=>We(()=>import("./chunk.e69413a4.js"),["luci-static/istorex/chunk.e69413a4.js","luci-static/istorex/index.js"])}]},{name:"DDNSPage",path:"ddns",component:()=>We(()=>import("./chunk.574eccc8.js"),["luci-static/istorex/chunk.574eccc8.js","luci-static/istorex/index.js"])},{path:":pathMatch(.*)*",name:"notfound",redirect:"/router/index"}]},L9={name:"PageWizard",path:"/wizard",component:()=>We(()=>import("./chunk.feed9b2f.js"),["luci-static/istorex/chunk.feed9b2f.js","luci-static/istorex/index.js"])},M9={name:"PageNas",path:"/nas",component:()=>We(()=>import("./chunk.8de52bcc.js"),["luci-static/istorex/chunk.8de52bcc.js","luci-static/istorex/index.js"]),children:[{name:"PageNasIndex",path:"",component:()=>We(()=>import("./chunk.477e6e94.js"),["luci-static/istorex/chunk.477e6e94.js","luci-static/istorex/index.js","luci-static/istorex/chunk.b3a0ed74.js"])}]},A9={name:"NextNas",path:"/next-nas",component:()=>We(()=>import("./chunk.88211d90.js"),["luci-static/istorex/chunk.88211d90.js","luci-static/istorex/index.js","luci-static/istorex/chunk.6d3585bb.js","luci-static/istorex/chunk.b3a0ed74.js"])};const x9=S9({history:window.path_base?u1(window.path_base):U7(),routes:[{path:"/",name:"PageIndex",component:O9,beforeEnter(e,t,n){return te(this,null,function*(){switch(it.getModel()){case"next-nas":n({name:"NextNas"});break;case"router":n({name:"PageRouterHome"});break;default:n({name:"PageWizard"});break}})}},L9,I9,M9,A9,{path:"/:pathMatch(.*)*",name:"notfound",redirect:e=>{switch(console.log("redirec:",e),it.getModel()){case"next-nas":return"/next-nas";case"router":return"/router/index";default:return"/wizard"}}}]});const $9={},R9={t:"1655777339433",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2673",width:"128",height:"128"},B9=d("path",{d:"M59.733333 614.4h930.133334a8.533333 8.533333 0 0 1 8.533333 8.533333v238.933334a8.533333 8.533333 0 0 1-8.533333 8.533333H59.733333a8.533333 8.533333 0 0 1-8.533333-8.533333V622.933333a8.533333 8.533333 0 0 1 8.533333-8.533333z",fill:"#96CAFF","p-id":"2674"},null,-1),U9=d("path",{d:"M76.8 588.8l176.128-377.941333A76.8 76.8 0 0 1 315.050667 179.2H759.466667a76.8 76.8 0 0 1 62.122666 31.658667L996.266667 588.8",fill:"#B3D9FF","p-id":"2675"},null,-1),Y9=d("path",{d:"M742.4 204.8l175.274667 362.752h57.941333L805.290667 204.8H742.4z",fill:"#96CAFF","p-id":"2676"},null,-1),H9=d("path",{d:"M51.2 588.8a25.6 25.6 0 0 0-25.6 25.6v204.8a25.6 25.6 0 0 0 25.6 25.6h921.6a25.6 25.6 0 0 0 25.6-25.6V614.4a25.6 25.6 0 0 0-25.6-25.6z m0-25.6h921.6a51.2 51.2 0 0 1 51.2 51.2v204.8a51.2 51.2 0 0 1-51.2 51.2H51.2a51.2 51.2 0 0 1-51.2-51.2V614.4a51.2 51.2 0 0 1 51.2-51.2z",fill:"#175AA7","p-id":"2677"},null,-1),W9=d("path",{d:"M204.8 221.866667l-23.210667-10.837334 20.736 15.018667 1.365334-1.792z m616.533333 4.266666l20.736-15.018666L818.432 221.866667l1.194667 2.474666zM243.370667 204.8h536.149333A51.2 51.2 0 0 1 819.2 224.085333L988.501333 588.8h28.245334L841.642667 210.858667A76.8 76.8 0 0 0 779.52 179.2H243.370667a76.8 76.8 0 0 0-62.122667 31.658667L5.12 588.8h28.245333l169.898667-364.714667a51.2 51.2 0 0 1 40.106667-19.285333z m577.536 21.077333l20.736-15.018666L818.432 221.866667l1.194667 2.474666z m-619.008 0l-20.736-15.018666L204.8 221.866667l-1.109333 2.474666zM988.501333 588.8h28.245334L841.642667 210.858667A76.8 76.8 0 0 0 779.52 179.2H243.370667a76.8 76.8 0 0 0-62.122667 31.658667L5.12 588.8h28.245333l169.898667-364.714667a51.2 51.2 0 0 1 40.106667-19.285333h536.149333A51.2 51.2 0 0 1 819.2 224.085333zM883.2 768a38.4 38.4 0 1 0-38.4-38.4 38.4 38.4 0 0 0 38.4 38.4z m0 25.6a64 64 0 1 1 64-64 64 64 0 0 1-64 64z",fill:"#175AA7","p-id":"2678"},null,-1),V9=d("path",{d:"M512 492.458667c125.696 0 200.789333-67.413333 174.165333-129.877334C666.794667 316.672 592.725333 281.6 512 281.6s-154.538667 35.072-174.165333 80.981333C311.552 425.045333 386.56 492.458667 512 492.458667z m-197.376-139.946667C339.712 293.717333 425.898667 256 512 256s172.885333 37.717333 197.973333 96.512c33.621333 78.848-49.493333 165.546667-197.717333 165.546667s-231.253333-86.698667-197.632-165.546667zM842.922667 479.829333c-13.226667 0-20.309333 11.52-15.616 26.112a40.533333 40.533333 0 0 0 34.133333 27.818667c14.165333 0 20.821333-12.714667 15.018667-27.818667a40.618667 40.618667 0 0 0-34.133334-26.112M155.648 505.941333c-5.717333 15.189333 0.853333 27.818667 15.018667 27.818667a40.533333 40.533333 0 0 0 34.56-27.818667c4.693333-14.677333-2.389333-26.112-15.616-26.112a40.618667 40.618667 0 0 0-33.962667 26.112zM264.533333 260.608c-3.157333 8.533333 2.645333 15.104 13.056 15.104a25.6 25.6 0 0 0 23.722667-15.104c2.56-8.106667-3.413333-14.421333-13.312-14.421333A26.026667 26.026667 0 0 0 264.533333 260.608zM754.688 275.797333c10.410667 0 16.213333-6.912 13.056-15.104a26.026667 26.026667 0 0 0-23.381333-14.421333c-9.898667 0-15.872 6.4-13.312 14.421333a25.6 25.6 0 0 0 23.722666 15.104",fill:"#175AA7","p-id":"2679"},null,-1),j9=[B9,U9,Y9,H9,W9,V9];function G9(e,t){return S(),I("svg",R9,j9)}var z9=fe($9,[["render",G9]]);const K9={},q9={t:"1657017066197",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7436",width:"128",height:"128"},J9=d("path",{d:"M25.6 54.84032v152.79104h967.68V54.84032H25.6z m0 534.76864h967.68V436.81792H25.6v152.79104z m0 381.98272h967.68v-152.79104H25.6v152.79104z","p-id":"7437"},null,-1),X9=[J9];function Z9(e,t){return S(),I("svg",q9,X9)}var Q9=fe(K9,[["render",Z9]]);const eg={key:0,t:"1657180381358",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3686",width:"128",height:"128"},tg=d("path",{d:"M512 958.016C266.08 958.016 65.984 757.952 65.984 512 65.984 266.08 266.08 65.984 512 65.984c245.952 0 446.016 200.064 446.016 446.016C958.016 757.952 757.952 958.016 512 958.016zM512 129.984C301.344 129.984 129.984 301.344 129.984 512c0 210.624 171.36 382.016 382.016 382.016 210.624 0 382.016-171.36 382.016-382.016C894.016 301.344 722.624 129.984 512 129.984z","p-id":"3687"},null,-1),ng=d("path",{d:"M512 304m-48 0a1.5 1.5 0 1 0 96 0 1.5 1.5 0 1 0-96 0Z","p-id":"3688"},null,-1),sg=d("path",{d:"M512 768c-17.664 0-32-14.304-32-32l0-288c0-17.664 14.336-32 32-32s32 14.336 32 32l0 288C544 753.696 529.664 768 512 768z","p-id":"3689"},null,-1),rg=[tg,ng,sg],ag={key:1,t:"1657180370515",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3532",width:"128",height:"128"},og=d("path",{d:"M512 65.984C266.048 65.984 65.984 266.048 65.984 512S266.048 958.016 512 958.016 958.016 757.952 958.016 512 757.952 65.984 512 65.984zM544 736c0 17.696-14.304 32-32 32s-32-14.304-32-32l0-288c0-17.696 14.304-32 32-32s32 14.304 32 32L544 736zM512 352c-26.496 0-48-21.536-48-48C464 277.472 485.504 256 512 256s48 21.472 48 48C560 330.464 538.496 352 512 352z","p-id":"3533"},null,-1),ig=[og],lg=le({__name:"info",props:{type:{type:Number,default:0}},setup(e){return(t,n)=>e.type==0?(S(),I("svg",eg,rg)):e.type==1?(S(),I("svg",ag,ig)):me("",!0)}}),ug={},cg={width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},dg=d("path",{d:"M14.9234958,14.5525054 L10.84453,10.4679606 C11.8849284,9.46327833 12.5294813,8.07823887 12.5294813,6.55073066 C12.5294813,3.48989918 9.94358337,1 6.76474066,1 C3.58589795,1 1,3.48989918 1,6.55073066 C1,9.61156213 3.58589795,12.1014613 6.76474066,12.1014613 C8.16008242,12.1014613 9.44067838,11.621191 10.438802,10.8242646 L14.5276502,14.9188536 C14.5814545,14.9730393 14.6533765,15 14.725573,15 C14.7942009,15 14.8625542,14.9754182 14.9158095,14.9262546 C15.025065,14.8250198 15.0283592,14.6577049 14.9234958,14.5525054 Z M6.76474066,11.5728203 C3.8886841,11.5728203 1.54902292,9.32001661 1.54902292,6.55073066 C1.54902292,3.7814447 3.8886841,1.52864101 6.76474066,1.52864101 C9.64079723,1.52864101 11.9804584,3.7814447 11.9804584,6.55073066 C11.9804584,9.32001661 9.64052272,11.5728203 6.76474066,11.5728203 Z",id:"Shape",stroke:"#FFFFFF","stroke-width":"1.3"},null,-1),fg=[dg];function hg(e,t){return S(),I("svg",cg,fg)}var _g=fe(ug,[["render",hg]]);const pg={},mg={width:"12px",height:"12px",viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},gg=d("path",{d:"M10.171916,3.81818329 C10.6519813,3.81274681 11.1102149,4.01840688 11.4252438,4.38069009 C11.7402726,4.74297329 11.8803105,5.2253253 11.8081406,5.70080197 L11.0555552,10.608963 C10.9332063,11.4157454 10.2351606,12.0090843 9.42537185,12 L3.27269856,12 C2.97145497,12 2.7272488,11.7556885 2.7272488,11.454445 L2.7272488,5.4544976 C2.7272488,5.37817917 2.74326442,5.30271013 2.77426027,5.23296947 L4.95605931,0.323921631 C5.04360472,0.126944443 5.23894201,0 5.4544976,0 C6.65947193,0 7.63629663,0.976824702 7.63629663,2.18179904 L7.63629663,3.81815451 L10.171916,3.81818329 Z M3.81814832,10.9090654 L9.43153778,10.9090654 C9.70352269,10.9121048 9.93620458,10.7143252 9.97712277,10.4445109 L10.7297188,5.53628009 C10.7537339,5.3780602 10.7070546,5.2172762 10.602045,5.09651513 C10.4970353,4.97575406 10.3442908,4.9072007 10.1780925,4.90904784 L7.09084687,4.90904784 C6.78960329,4.90904784 6.54539711,4.66484166 6.54539711,4.36359808 L6.54539711,2.18179904 C6.54539711,1.69494967 6.22647822,1.2825878 5.78615711,1.14223013 L3.81814832,5.57024992 L3.81814832,10.9090654 Z M2.7272488,5.99994736 L1.63634928,5.99994736 C1.33510569,5.99994736 1.09089952,6.24415353 1.09089952,6.54539711 L1.09089952,10.3635454 C1.09089952,10.664789 1.33510569,10.9089952 1.63634928,10.9089952 L2.7272488,10.9089952 L2.7272488,5.99994736 Z M3.27269856,11.9998947 L1.63634928,11.9998947 C0.732618527,11.9998947 -1.03028697e-13,11.2672762 -1.03028697e-13,10.3635454 L-1.03028697e-13,6.54539711 C-1.03028697e-13,5.64166636 0.732618527,4.90904784 1.63634928,4.90904784 L3.27269856,4.90904784 C3.57394214,4.90904784 3.81814832,5.15325401 3.81814832,5.4544976 L3.81814832,11.454445 C3.81814832,11.7556885 3.57394214,11.9998947 3.27269856,11.9998947 Z",id:"Shape",fill:"#FFFFFF","fill-rule":"nonzero"},null,-1),vg=[gg];function yg(e,t){return S(),I("svg",mg,vg)}var bg=fe(pg,[["render",yg]]);const Eg={},kg={width:"12px",height:"12px",viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},wg=d("path",{d:"M10.171916,3.81818329 C10.6519813,3.81274681 11.1102149,4.01840688 11.4252438,4.38069009 C11.7402726,4.74297329 11.8803105,5.2253253 11.8081406,5.70080197 L11.0555552,10.608963 C10.9332063,11.4157454 10.2351606,12.0090843 9.42537185,12 L3.27269856,12 C2.97145497,12 2.7272488,11.7556885 2.7272488,11.454445 L2.7272488,5.4544976 C2.7272488,5.37817917 2.74326442,5.30271013 2.77426027,5.23296947 L4.95605931,0.323921631 C5.04360472,0.126944443 5.23894201,0 5.4544976,0 C6.65947193,0 7.63629663,0.976824702 7.63629663,2.18179904 L7.63629663,3.81815451 L10.171916,3.81818329 Z M3.27269856,11.9998947 L1.63634928,11.9998947 C0.732618527,11.9998947 0,11.2672762 0,10.3635454 L0,6.54539711 C0,5.64166636 0.732618527,4.90904784 1.63634928,4.90904784 L3.27269856,4.90904784 C3.57394214,4.90904784 3.81814832,5.15325401 3.81814832,5.4544976 L3.81814832,11.454445 C3.81814832,11.7556885 3.57394214,11.9998947 3.27269856,11.9998947 Z",id:"Shape",fill:"#FFE45A","fill-rule":"nonzero"},null,-1),Sg=[wg];function Cg(e,t){return S(),I("svg",kg,Sg)}var Tg=fe(Eg,[["render",Cg]]);const Fg={},Dg={t:"1660284166208",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1616",width:"128",height:"128"},Og=d("path",{d:"M347.008 574.378667a85.546667 85.546667 0 0 1 0-124.757334L632.490667 182.144a42.389333 42.389333 0 0 1 60.074666 2.069333c16.021333 17.237333 15.104 44.224-2.069333 60.309334L405.013333 512l285.482667 267.477333c17.173333 16.085333 18.090667 43.093333 2.069333 60.309334a42.389333 42.389333 0 0 1-60.074666 2.069333L347.008 574.378667z","p-id":"1617"},null,-1),Pg=[Og];function Ng(e,t){return S(),I("svg",Dg,Pg)}var Ig=fe(Fg,[["render",Ng]]);const Lg={},Mg={t:"1660284150684",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1462",width:"128",height:"128"},Ag=d("path",{d:"M676.992 449.621333a85.546667 85.546667 0 0 1 0 124.757334L391.509333 841.856a42.389333 42.389333 0 0 1-60.074666-2.069333 42.773333 42.773333 0 0 1 2.069333-60.309334L618.986667 512 333.504 244.522667a42.773333 42.773333 0 0 1-2.069333-60.309334 42.389333 42.389333 0 0 1 60.074666-2.069333l285.482667 267.477333z","p-id":"1463"},null,-1),xg=[Ag];function $g(e,t){return S(),I("svg",Mg,xg)}var Rg=fe(Lg,[["render",$g]]);const Bg={},Ug={t:"1660284192070",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1770",width:"128",height:"128"},Yg=d("path",{d:"M449.621333 347.008a85.546667 85.546667 0 0 1 124.757334 0l267.477333 285.482667c16.085333 17.173333 15.146667 44.053333-2.069333 60.074666a42.773333 42.773333 0 0 1-60.309334-2.069333L512 405.013333 244.522667 690.496a42.773333 42.773333 0 0 1-60.309334 2.069333 42.389333 42.389333 0 0 1-2.069333-60.074666l267.477333-285.482667z","p-id":"1771"},null,-1),Hg=[Yg];function Wg(e,t){return S(),I("svg",Ug,Hg)}var Vg=fe(Bg,[["render",Wg]]);const jg={},Gg={t:"1660284208062",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1924",width:"128",height:"128"},zg=d("path",{d:"M574.378667 676.992a85.546667 85.546667 0 0 1-124.757334 0L182.144 391.509333a42.389333 42.389333 0 0 1 2.069333-60.074666 42.773333 42.773333 0 0 1 60.309334 2.069333L512 618.986667l267.477333-285.482667a42.773333 42.773333 0 0 1 60.309334-2.069333c17.216 16 18.133333 42.901333 2.069333 60.074666L574.378667 676.992z","p-id":"1925"},null,-1),Kg=[zg];function qg(e,t){return S(),I("svg",Gg,Kg)}var Jg=fe(jg,[["render",qg]]);const Xg={},Zg={t:"1660287979761",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1495",width:"128",height:"128"},Qg=d("path",{d:"M773.214133 167.117045c-4.330056 0.2048-5.441827 0.146286-9.713368 0.760685a74.693464 74.693464 0 0 0-54.008671 36.86399 72.762493 72.762493 0 0 0-6.436569 55.64707c2.662399 9.215997 7.197255 17.876109 13.253482 25.365935 2.720914 3.335313 3.510856 4.037485 6.524341 7.109484l3.627884 3.218285c16.091424 13.37051 30.954048 27.999078 44.295302 44.061244a327.504364 327.504364 0 0 1 67.057352 134.495048 327.094764 327.094764 0 0 1-37.858732 241.429873 330.839677 330.839677 0 0 1-63.107639 76.185579 336.457047 336.457047 0 0 1-80.45712 53.365013 335.930418 335.930418 0 0 1-100.995628 29.374163 341.928131 341.928131 0 0 1-119.807966-5.997713 336.310761 336.310761 0 0 1-114.24911-49.971185 334.321276 334.321276 0 0 1-92.803631-96.051173 324.403107 324.403107 0 0 1-47.396557-127.795163 326.304821 326.304821 0 0 1 106.144884-290.201517c4.59337-4.008227 9.215997-7.899426 13.750853-11.907654 3.013485-3.071999 3.803427-3.744913 6.495084-7.080227a72.206608 72.206608 0 0 0-4.944456-96.343744 75.395636 75.395636 0 0 0-93.622831-10.503311c-6.085484 3.891199-11.468797 8.718626-16.852109 13.429025a475.633236 475.633236 0 0 0-98.8306 119.281337 470.07438 470.07438 0 0 0-31.012563 409.83394 474.521464 474.521464 0 0 0 76.214835 128.058478 481.455405 481.455405 0 0 0 257.638327 160.387611 493.86043 493.86043 0 0 0 189.849546 8.338284c58.485012-8.835655 115.185339-28.37942 166.473095-57.431755a484.498147 484.498147 0 0 0 126.800421-103.599514 473.263408 473.263408 0 0 0 72.99655-113.312882 473.087865 473.087865 0 0 0 38.590161-256.906898c-6.787655-51.785128-22.323194-102.399971-45.816673-149.211386a475.925807 475.925807 0 0 0-110.88454-143.65253c-3.832685-3.335313-7.753141-6.64137-11.644339-9.918169-3.36457-2.633142-4.154513-3.393828-7.811655-5.705141a75.775978 75.775978 0 0 0-22.206165-9.450054 91.808888 91.808888 0 0 0-14.39451-2.106514c-1.6384 0-3.218285 0-4.856685-0.058514m-186.836061 418.084452c0 19.39748-7.840912 38.005018-21.767308 51.726614a74.898264 74.898264 0 0 1-52.516556 21.416222 74.810493 74.810493 0 0 1-52.516556-21.416222 72.616208 72.616208 0 0 1-21.767309-51.726614V73.143129c0-19.426737 7.840912-38.005018 21.767309-51.755871A74.781236 74.781236 0 0 1 512.094208 0.000293c19.690052 0 38.59016 7.694626 52.516556 21.386965 13.926396 13.750853 21.767308 32.329134 21.767308 51.785128v512.029111z","p-id":"1496"},null,-1),ev=[Qg];function tv(e,t){return S(),I("svg",Zg,ev)}var nv=fe(Xg,[["render",tv]]);const sv={},rv={t:"1661742094849",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2478",width:"128",height:"128"},av=d("path",{d:"M210.304 813.696a42.666667 42.666667 0 0 1 0-60.330667L753.365333 210.304a42.666667 42.666667 0 1 1 60.330667 60.330667L270.634667 813.696a42.666667 42.666667 0 0 1-60.330667 0z","p-id":"2479"},null,-1),ov=d("path",{d:"M210.304 210.304a42.666667 42.666667 0 0 1 60.330667 0l543.061333 543.061333a42.666667 42.666667 0 1 1-60.330667 60.330667L210.304 270.634667a42.666667 42.666667 0 0 1 0-60.330667z","p-id":"2480"},null,-1),iv=[av,ov];function lv(e,t){return S(),I("svg",rv,iv)}var y1=fe(sv,[["render",lv]]);const uv={},cv=e=>(at("data-v-70156d34"),e=e(),ot(),e),dv={t:"1631799919469",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:"128",height:"128"},fv=cv(()=>d("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"},null,-1)),hv=[fv];function _v(e,t){return S(),I("svg",dv,hv)}var pv=fe(uv,[["render",_v],["__scopeId","data-v-70156d34"]]),mv={install(e){e.component("icon-disk",z9),e.component("icon-nav",Q9),e.component("icon-info",lg),e.component("icon-search",_g),e.component("icon-star-off",Tg),e.component("icon-star-on",bg),e.component("icon-left",Ig),e.component("icon-right",Rg),e.component("icon-top",Vg),e.component("icon-bottom",Jg),e.component("icon-outlogin",nv),e.component("icon-close",y1),e.component("icon-loading",pv)}};const gv={class:"toips-container"},vv=["onClick"],yv={key:1},bv=le({__name:"index",setup(e){const t=ur(),n=be(()=>t.toips);return(s,r)=>{const a=ft("router-link");return S(),I("div",gv,[(S(!0),I(ve,null,_t(n.value,o=>(S(),I("li",{class:"toips-item",onClick:i=>o.f()},[o.path?(S(),Ce(a,{key:0,to:o.path},{default:Ue(()=>[yt(J(o.info),1)]),_:2},1032,["to"])):(S(),I("span",yv,J(o.info),1))],8,vv))),256))])}}});var Ev=fe(bv,[["__scopeId","data-v-d6bd3248"]]);const kv=le({__name:"main",setup(e){const t=ur();return(n,s)=>{const r=ft("layout-header"),a=ft("router-view");return S(),I("div",{id:"main",key:X(t).reloadCount},[Ie(r),Ie(a,null,{default:Ue(({Component:o,route:i})=>[(S(),Ce(sd,null,{default:Ue(()=>[(S(),Ce(Ri(o),{key:i.path}))]),_:2},1024))]),_:1}),Ie(Ev)])}}}),wv={id:"page",class:"page-container"},Sv={class:"page-flex"},Cv={class:"page-sidebar"},Tv=["onClick"],Fv={class:"page-main"},Dv=le({__name:"page",props:{menus:{type:Array,required:!0}},setup(e){return(t,n)=>{const s=ft("router-link");return S(),I("div",wv,[d("div",Sv,[d("div",Cv,[(S(!0),I(ve,null,_t(e.menus,r=>(S(),I(ve,null,[r.path?(S(),Ce(s,{key:0,to:r.path},{default:Ue(()=>[d("span",null,J(r.title),1)]),_:2},1032,["to"])):me("",!0),r.fn?(S(),I("a",{key:1,onClick:r.fn},[d("span",null,J(r.title),1)],8,Tv)):me("",!0)],64))),256))]),d("div",Fv,[Ut(t.$slots,"default")])])])}}}),b1=window.HostName||"iStoreX",Ov=(window==null?void 0:window.istoreXVer)||"";var E1={HostName:b1};console.log("".concat(`%c OpenWrt-${b1}_iStoreX v${Ov}`),"color: #fadfa3; background: #030307; padding:5px 0;");const k1=e=>(at("data-v-ab2441f8"),e=e(),ot(),e),Pv={class:"logo"},Nv=["href"],Iv={key:0,class:"nav-item ota-upgrade",target:"_blank",href:"/cgi-bin/luci/admin/system/ota"},Lv=k1(()=>d("span",null,"\u56FA\u4EF6\u66F4\u65B0",-1)),Mv=k1(()=>d("em",null,null,-1)),Av=[Lv,Mv],xv=le({__name:"nav",setup(e){ur();const t=_e(!1),n=be(()=>[{name:"\u8DEF\u7531\u72B6\u6001",path:"/router/index"},{name:"\u7F51\u7EDC\u914D\u7F6E",path:"/router/network"},{name:"\u8FDC\u7A0BDDNS",path:"/router/ddns"},{name:"\u5B58\u50A8\u7BA1\u7406",path:"/router/disk"},{name:"\u529F\u80FD\u914D\u7F6E",path:"/router/setting"},{name:"\u5E94\u7528\u5546\u5E97",path:"/router/istore"},{name:"\u9AD8\u7EA7\u914D\u7F6E",href:"/cgi-bin/luci/admin/quickstart/"}]);return(()=>te(this,null,function*(){try{const r=yield oe.System.CheckUpdate.GET(),{result:a}=r.data;a&&(t.value=a.needUpdate)}catch(r){console.log(r)}}))(),(r,a)=>{const o=ft("router-link");return S(),I("nav",null,[d("div",Pv,J(X(E1).HostName),1),(S(!0),I(ve,null,_t(n.value,i=>(S(),I(ve,null,[i.path?(S(),Ce(o,{key:0,class:"nav-item",to:i.path},{default:Ue(()=>[d("span",null,J(i.name),1)]),_:2},1032,["to"])):me("",!0),i.href?(S(),I("a",{key:1,class:"nav-item",target:"_blank",href:i.href},[d("span",null,J(i.name),1)],8,Nv)):me("",!0)],64))),256)),t.value?(S(),I("a",Iv,Av)):me("",!0)])}}});var $v=fe(xv,[["__scopeId","data-v-ab2441f8"]]);const At=e=>(at("data-v-0003d2de"),e=e(),ot(),e),Rv={class:"tool"},Bv=At(()=>d("div",{class:"tool-item_icon"},[d("svg",{t:"1654872227326",class:"icon",viewBox:"0 0 1070 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18915",width:"128",height:"128"},[d("path",{d:"M616.56114032 913.71326004h-10.78499707c-0.00697165 0 4.88008933 1.06316208 10.78499706 0z m194.47155643-0.01045789c-28.60778047 0.01045706-31.10708332-23.73117654-31.28137207-29.83825964v-36.61809823h-142.70078101v35.18544369c0 23.05842188-11.4333522 29.67094253-20.48591711 31.27091418",fill:"#F0F0FF","p-id":"18916"}),d("path",{d:"M610.47497217 928.2489541c-5.85959326 0-12.22462327-1.32110979-15.86029011-6.17679877l-16.69339104-22.29852201h37.23508135c2.98731171-0.70412751 7.94757376-3.1650867 7.94757377-17.33825994v-49.12855499h170.58700443v50.34160629c0.54378122 15.96137778 12.92875076 16.11126617 17.20928649 16.11126617h0.12548804l0.00697165 27.88622343h-0.01742871c-21.89068588 0-44.35303958-13.4132742-45.20357007-43.38399272l-0.00697165-0.39389282v-22.67498611h-114.81455594v21.24233075c0 35.45036225-22.30549365 43.2724488-31.95412756 44.99093766v0.01045705c-2.35638611 0.42177942-5.38552688 0.81218601-8.56107065 0.81218602z",fill:"#6E6E96","p-id":"18917"}),d("path",{d:"M458.17784421 794.47525079V479.73040964c0-21.50027847 17.58923602-39.09300073 39.09648614-39.09299991h422.25320764c21.50725013 0 39.09997238 17.59272143 39.09997156 39.09299991v314.74135574",fill:"#9F9FBD","p-id":"18918"}),d("path",{d:"M958.63099579 763.19387873v44.95259398c0 21.51073636-17.59969309 39.10694403-39.09997238 39.10694321H497.27433035c-21.50376471 0-39.09648614-17.60666473-39.09648614-39.10694321V763.19387873h500.45315158z",fill:"#F0F0FF","p-id":"18919"}),d("path",{d:"M919.53102341 861.19304263H497.27433035c-29.2456777 0-53.03959826-23.79740679-53.03959826-53.05005615V749.2507666h528.33937582v58.89570612c0 29.24916311-23.79392056 53.04656992-53.0430845 53.04656991zM472.12095633 777.13699084v31.00948187c0 13.87339645 11.2834638 25.16383191 25.15337402 25.1638311H919.53102341c13.86991103 0 25.15686025-11.28694922 25.15686026-25.1638311v-31.00948187h-472.56692734z",fill:"#6E6E96","p-id":"18920"}),d("path",{d:"M472.12095633 794.47525079h-27.88622424V479.73040964c0-29.2456777 23.79392056-53.03611286 53.03959826-53.03611203h422.25320764c29.24916311 0 53.0430845 23.79043515 53.04308369 53.03611203v314.74135574h-27.88622425V479.73040964c0-13.86991103-11.2834638-25.14988861-25.15685944-25.14988779H497.27433035c-13.86991103 0-25.15337403 11.27997757-25.15337402 25.14988779v314.74484115z",fill:"#6E6E96","p-id":"18921"}),d("path",{d:"M458.17784421 744.17198816h500.44617993v11.03945938H458.17784421zM637.0540299 847.24644427h142.70078019v24.94771326h-142.70078019z",fill:"#6E6E96","p-id":"18922"}),d("path",{d:"M821.84906582 927.65637216h-241.2576686a13.94311212 13.94311212 0 0 1 0-27.88622423h241.2576686a13.94311212 13.94311212 0 0 1 0 27.88622424z",fill:"#6E6E96","p-id":"18923"}),d("path",{d:"M919.53102341 817.88922183H497.27433035c-21.50376471 0-39.09648614-17.59969309-39.09648614-39.10345779v26.0945343c0 21.50027847 17.58574978 39.09997238 39.09648614 39.09997238H919.53102341c21.50027847 0 39.10345779-17.59272143 39.10345779-39.09997238v-26.0945343c-0.00348542 21.517708-17.61015097 39.10345779-39.10345779 39.10345779z",fill:"#6E6E96","p-id":"18924"}),d("path",{d:"M512.22134677 487.62221103h396.47936426v229.11670432H512.22134677z",fill:"#A2C8F2","p-id":"18925"}),d("path",{d:"M653.79970709 714.00257971l250.40435038-226.38036868v73.11070843l-166.0798938 153.26966025z",fill:"#DEEFFF","p-id":"18926"}),d("path",{d:"M904.20405747 560.73291946l-166.0798938 153.26966025h166.0798938z",fill:"#FFFFFF","p-id":"18927"}),d("path",{d:"M908.70071103 730.68551288H512.22134677a13.94311212 13.94311212 0 0 1-13.94311212-13.94311212v-229.11670349a13.94311212 13.94311212 0 0 1 13.94311212-13.94311212h396.47936426a13.94311212 13.94311212 0 0 1 13.94311212 13.94311212v229.11670349a13.94311212 13.94311212 0 0 1-13.94311212 13.94311212z m-382.53625214-27.88622425h368.59314002v-201.23047924H526.16445889v201.23047924z",fill:"#6E6E96","p-id":"18928"}),d("path",{d:"M427.31825156 436.74379516c0 17.12911295-14.01282779 31.15588403-31.14194074 31.15588404H258.11858637c-17.1221413 0-31.14194074-14.0163132-31.14194074-31.15588404v-296.04712774c0-17.12911295 14.0163132-31.14542697 31.14194073-31.14542615H396.17631082c17.12911295 0 31.14194074 14.0163132 31.14194074 31.14542615v296.04712774z",fill:"#F0F0FF","p-id":"18929"}),d("path",{d:"M427.31825156 436.74379516c0 17.12911295-14.01282779 31.15588403-31.14194074 31.15588404H258.11858637c-17.1221413 0-31.14194074-14.0163132-31.14194074-31.15588404v-296.04712774c0-17.12911295 14.0163132-31.14542697 31.14194073-31.14542615H396.17631082c17.12911295 0 31.14194074 14.0163132 31.14194074 31.14542615v296.04712774z",fill:"#FFFFFF","p-id":"18930"}),d("path",{d:"M226.97315939 172.01289774h200.35206382v257.6896257H226.97315939z",fill:"#B4D1F2","p-id":"18931"}),d("path",{d:"M236.25578625 429.70252344l191.06246531-191.07640779v64.35791951L300.59976327 429.70252344z",fill:"#DEEFFF","p-id":"18932"}),d("path",{d:"M427.31825156 302.98403516L300.59976327 429.70252344h126.71848829z",fill:"#FFFFFF","p-id":"18933"}),d("path",{d:"M226.97315939 397.73793882h200.34509217v27.88622424H226.97315939z",fill:"#6E6E96","p-id":"18934"}),d("path",{d:"M229.07508402 216.7528585l47.87716085-57.25041835H362.81741532L230.36830723 301.32131867z",fill:"#FFFFFF","p-id":"18935"}),d("path",{d:"M404.10994128 159.50244015L233.14995816 330.45545163l-0.20217535 24.4597044 195.40923047-195.41271588z",fill:"#FFFFFF","p-id":"18936"}),d("path",{d:"M396.17631082 481.83930591H258.11858637c-30.33672637 0-45.08505286-14.75181272-45.08505286-45.09899616v-296.04712774c0-30.34021179 14.74832648-45.08853909 45.08505285-45.0885391H396.17631082c30.33672637 0 45.08505286 14.74832648 45.08505286 45.0885391v296.04712774c0 30.34718345-14.74832648 45.09899615-45.08505286 45.09899616zM258.11858637 123.49435339c-14.95050183 0-17.19882862 2.25181219-17.19882862 17.20231403v296.04712774c0 14.96095889 2.25181219 17.21277191 17.19882861 17.21277192H396.17631082c14.95050183 0 17.19882862-2.25181219 17.19882861-17.21277192v-296.04712774c0-14.95050183-2.25181219-17.20231485-17.19882861-17.20231403H258.11858637z",fill:"#6E6E96","p-id":"18937"}),d("path",{d:"M226.97315939 150.84725349h200.34509217v27.88622423H226.97315939z",fill:"#6E6E96","p-id":"18938"}),d("path",{d:"M185.52028714 757.89549622H149.7422615a13.94311212 13.94311212 0 0 1 0-27.88622425h35.77802564a13.94311212 13.94311212 0 0 1 0 27.88622425z",fill:"#6E6E96","p-id":"18939"}),d("path",{d:"M125.32787241 876.34920522v-292.89249892c0-21.09244317 10.49916357-23.86712246 23.33379831-23.86712164h378.63915215c12.83463473 0 23.33728372 2.78513635 23.33728373 23.86712164v292.89249892",fill:"#B9BCC9","p-id":"18940"}),d("path",{d:"M527.30430828 566.06964563H148.66515613c-12.83463473 0-23.33728372 2.77467929-23.33728372 23.86712246v19.04629093c0-21.09592859 10.50264898-23.87060788 23.33728371-23.87060788h378.63915216c12.83114933 0 23.34076996 2.78862259 23.34076997 23.87060788v-19.04629093c0-21.08198529-10.50962063-23.86712246-23.34076996-23.86712246z",fill:"#FFFFFF","p-id":"18941"}),d("path",{d:"M561.66710809 873.83595908h-27.88622424v-290.39319526c0-9.92401035-0.52983792-9.92401035-9.39765702-9.92401034H151.58972382c-9.39765784 0-9.39765784 0.56120993-9.39765784 9.92401034v290.39319526h-27.88622342v-290.39319526c0-25.08714458 12.545315-37.81023459 37.28388126-37.81023459H524.38322683c24.74205249 0 37.28388208 12.71960376 37.28388127 37.81023459v290.39319526z",fill:"#6E6E96","p-id":"18942"}),d("path",{d:"M559.90679016 867.71841892H393.74672363v15.99274978H276.45377896v-15.99274978H117.39772735a13.37144431 13.37144431 0 0 0-13.32961523 13.32264358v34.65211954h469.16829327v-34.64863412a13.36795889 13.36795889 0 0 0-13.32961523-13.326129z",fill:"#B9BCC9","p-id":"18943"}),d("path",{d:"M559.90679016 862.00522864H393.74672363v15.9962352H276.45377896v-15.9962352H117.39772735a13.36795889 13.36795889 0 0 0-13.32961523 13.32612983v20.953011a13.37144431 13.37144431 0 0 1 13.32961524-13.33310064h159.0560516v16.00669309h117.29294467v-16.00669309h166.15658111a13.37144431 13.37144431 0 0 1 13.326129 13.33310064v-20.953011a13.35053018 13.35053018 0 0 0-13.32264358-13.32612983z",fill:"#FFFFFF","p-id":"18944"}),d("path",{d:"M173.14577548 601.65595379h329.98814813v222.86670365H173.14577548z",fill:"#8CBDF2","p-id":"18945"}),d("path",{d:"M279.39228913 814.06183752l217.77049649-204.02607348v59.87172381l-144.43321235 144.15434967z",fill:"#DEEFFF","p-id":"18946"}),d("path",{d:"M497.16278562 669.90748785l-144.43321235 144.15434967h144.43321235z",fill:"#FFFFFF","p-id":"18947"}),d("path",{d:"M503.13392361 838.46576956H173.14577548a13.94311212 13.94311212 0 0 1-13.94311212-13.94311212v-222.86670365a13.94311212 13.94311212 0 0 1 13.94311212-13.94311212h329.98814813a13.94311212 13.94311212 0 0 1 13.94311213 13.94311212v222.86670365a13.94311212 13.94311212 0 0 1-13.94311213 13.94311212z m-316.045036-27.88622424h302.10192389v-194.9804794H187.0888876v194.9804794z",fill:"#6E6E96","p-id":"18948"}),d("path",{d:"M173.14577548 601.65595379h324.02049637v23.37562739H173.14577548zM104.07159753 899.06602042h469.17177952v16.63761867H104.07159753z",fill:"#6E6E96","p-id":"18949"}),d("path",{d:"M573.23640539 929.63977957H104.06811212a13.94311212 13.94311212 0 0 1-13.94311212-13.94311211v-34.65211955c0-15.03416079 12.23508115-27.26575571 27.27272736-27.2657557h159.0560516a13.94311212 13.94311212 0 0 1 13.94311212 13.94311212v2.04963767h89.40672044v-2.04963767a13.94311212 13.94311212 0 0 1 13.94311211-13.94311212h166.15658112c15.03764621 0 27.27272736 12.23508115 27.27272736 27.26924194v34.64863331c0.00348542 7.70008392-6.23954278 13.94311212-13.93962672 13.94311211z m-455.22518115-27.88622424h441.28206904v-20.0920243H407.68983575v2.04963767a13.94311212 13.94311212 0 0 1-13.94311212 13.94311212H276.45377896a13.94311212 13.94311212 0 0 1-13.94311212-13.94311212v-2.04963767H118.01122424v20.0920243z",fill:"#6E6E96","p-id":"18950"}),d("path",{d:"M699.94792285 373.26429193c-45.72992175-77.71193509-122.75515887-130.53541552-211.32180752-144.92470743l4.4722532-27.52370342c96.78262719 15.724345 180.93279419 73.42094228 230.88050766 158.30660879l-24.03095334 14.14180205zM138.3646825 505.03018664h-27.88622425c0-62.44422775 17.55437778-123.22573901 50.76687113-175.76338513l23.5743165 14.89821488c-30.39249875 48.0758508-46.45496338 103.7018963-46.45496338 160.86517025z",fill:"#6E6E96","p-id":"18951"})])],-1)),Uv={class:"tool-item_name"},Yv=At(()=>d("span",{class:"t"},null,-1)),Hv={class:"b"},Wv={class:"tool-item_icon"},Vv={t:"1654871923674",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1414",width:"128",height:"128",style:{padding:"5px"}},jv=At(()=>d("path",{d:"M247.466667 76.8h25.6l51.2 307.2h-25.6L247.466667 76.8zM762.453333 76.8h25.6L742.4 385.706667h-25.6L762.453333 76.8z",fill:"#96CAFF","p-id":"1415"},null,-1)),Gv=At(()=>d("path",{d:"M275.2 409.6H324.266667L256.938667 51.2H230.4zM230.4 25.6h26.538667a25.6 25.6 0 0 1 25.173333 20.906667l67.242667 358.4A25.6 25.6 0 0 1 324.266667 435.2h-49.066667a25.6 25.6 0 0 1-25.6-22.442667L204.8 54.357333A25.6 25.6 0 0 1 227.242667 25.6zM785.066667 51.2l-44.885334 358.4H691.2l67.242667-358.4z m0-25.6h-26.624a25.6 25.6 0 0 0-25.173334 20.906667l-67.157333 358.4A25.6 25.6 0 0 0 691.2 435.2h48.981333a25.6 25.6 0 0 0 25.6-22.442667l44.885334-358.4A25.6 25.6 0 0 0 788.138667 25.6z",fill:"#175AA7","p-id":"1416"},null,-1)),zv=At(()=>d("path",{d:"M59.733333 665.6h930.133334a8.533333 8.533333 0 0 1 8.533333 8.533333v162.133334a8.533333 8.533333 0 0 1-8.533333 8.533333H59.733333a8.533333 8.533333 0 0 1-8.533333-8.533333V674.133333a8.533333 8.533333 0 0 1 8.533333-8.533333z",fill:"#96CAFF","p-id":"1417"},null,-1)),Kv=At(()=>d("path",{d:"M460.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM716.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM588.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8zM844.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76.8h-76.8z",fill:"#175AA7","p-id":"1418"},null,-1)),qv=At(()=>d("path",{d:"M153.6 844.8h68.693333l-25.6 76.8H179.2l-25.6-76.8z",fill:"#96CAFF","p-id":"1419"},null,-1)),Jv=At(()=>d("path",{d:"M203.434667 844.8h8.533333l12.629333 17.493333-2.730666 8.106667h-26.965334z m-74.069334 0h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM102.4 844.8h128l-25.6 76.8h-76.8z",fill:"#175AA7","p-id":"1420"},null,-1)),Xv=At(()=>d("path",{d:"M844.8 844.8h68.693333l-25.6 76.8H870.4l-25.6-76.8z",fill:"#96CAFF","p-id":"1421"},null,-1)),Zv=At(()=>d("path",{d:"M913.066667 870.4l2.730666-8.106667-12.629333-17.493333h-8.533333l-8.533334 25.6z m-92.501334-25.6h-8.533333l-12.629333 17.493333 2.730666 8.106667h26.965334z m17.066667 51.2h39.936l8.533333-25.6h-57.002666zM793.6 844.8h128l-25.6 76.8h-76.8zM204.8 768h25.6v25.6h-25.6zM281.6 768h25.6v25.6h-25.6zM128 768h25.6v25.6h-25.6zM358.4 768h25.6v25.6h-25.6zM204.8 716.8h25.6v25.6h-25.6zM281.6 716.8h25.6v25.6h-25.6zM128 716.8h25.6v25.6h-25.6zM358.4 716.8h25.6v25.6h-25.6z",fill:"#175AA7","p-id":"1422"},null,-1)),Qv=At(()=>d("path",{d:"M69.12 640l176.128-249.941333A76.8 76.8 0 0 1 307.2 358.4h441.6A76.8 76.8 0 0 1 810.666667 390.058667L986.026667 640",fill:"#B3D9FF","p-id":"1423"},null,-1)),ey=At(()=>d("path",{d:"M742.4 358.4l187.050667 256.597333h57.941333L805.290667 358.4H742.4z",fill:"#96CAFF","p-id":"1424"},null,-1)),ty=At(()=>d("path",{d:"M51.2 640a25.6 25.6 0 0 0-25.6 25.6v153.6a25.6 25.6 0 0 0 25.6 25.6h921.6a25.6 25.6 0 0 0 25.6-25.6V665.6a25.6 25.6 0 0 0-25.6-25.6z m0-25.6h921.6a51.2 51.2 0 0 1 51.2 51.2v153.6a51.2 51.2 0 0 1-51.2 51.2H51.2a51.2 51.2 0 0 1-51.2-51.2V665.6a51.2 51.2 0 0 1 51.2-51.2z",fill:"#175AA7","p-id":"1425"},null,-1)),ny=At(()=>d("path",{d:"M167.936 451.84L186.197333 426.666667l15.786667-21.674667A51.2 51.2 0 0 1 243.370667 384h536.149333a51.2 51.2 0 0 1 41.386667 21.077333L985.429333 640h31.232L841.642667 390.058667A76.8 76.8 0 0 0 779.52 358.4H243.370667a76.8 76.8 0 0 0-62.122667 31.658667l-34.133333 47.104L5.12 640h31.232z",fill:"#175AA7","p-id":"1426"},null,-1)),sy=[jv,Gv,zv,Kv,qv,Jv,Xv,Zv,Qv,ey,ty,ny],ry={class:"tool-item_name"},ay={class:"t"},oy={key:0},iy={key:1},ly={key:2},uy={key:4},cy={class:"b"},dy={class:"tool-item"},fy=w3('
',1),hy={class:"tool-item_name"},_y=["href"],py=le({__name:"tool",setup(e){const t=it.stampForm;it.stampForm;const n=it.byteToSize,s=ur(),r=be(()=>s.network),a=be(()=>s.device),o=be(()=>s.updown);return(i,l)=>{const u=ft("router-link");return S(),I("div",Rv,[Ie(u,{class:"tool-item",to:"/router/device/list",title:"\u67E5\u770B\u5F53\u524D\u8FDE\u63A5\u8BBE\u5907"},{default:Ue(()=>[Bv,d("div",Uv,[d("span",null,J(a.value.devices.length),1)])]),_:1}),d("em",null,[Yv,d("span",Hv,J(X(t)(r.value.uptimeStamp)),1)]),Ie(u,{class:"tool-item",to:"/router/device/interface",title:"\u67E5\u770B\u5F53\u524D\u63A5\u53E3"},{default:Ue(()=>{var c;return[d("div",Wv,[(S(),I("svg",Vv,sy))]),d("div",ry,[d("span",null,J(((c=r.value.defaultInterface)==null?void 0:c.toLocaleUpperCase())||"--"),1)])]}),_:1}),d("em",null,[d("span",ay,[r.value.networkInfo=="netSuccess"?(S(),I("span",oy," \u5DF2\u8054\u7F51 ")):r.value.networkInfo=="dnsFailed"?(S(),I("span",iy," DNS\u9519\u8BEF ")):r.value.networkInfo=="softSourceFailed"?(S(),I("span",ly," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(S(),I("span",uy," \u68C0\u6D4B\u4E2D "))]),d("span",cy," \u4E0A\u4F20: "+J(X(n)(o.value.up))+" \uFF5C \u4E0B\u8F7D: "+J(X(n)(o.value.download)),1)]),d("div",dy,[fy,d("div",hy,[d("a",{href:r.value.ipv4addr},[d("span",null,J(r.value.ipv4addr||"--"),1)],8,_y)])])])}}});var my=fe(py,[["__scopeId","data-v-0003d2de"]]);const gy={class:"header-desktop"},vy=le({__name:"header",setup(e){const t=_e(!1);return T9().afterEach(()=>{t.value=!1}),(s,r)=>(S(),I("header",gy,[Ie($v),Ie(my)]))}});var yy=fe(vy,[["__scopeId","data-v-5fdbc26a"]]);const by={};function Ey(e,t){const n=ft("router-view");return S(),Ce(n,{name:"default"},{default:Ue(({Component:s,route:r})=>[(S(),Ce(sd,null,{default:Ue(()=>[(S(),Ce(Ri(s),{key:r.path}))]),fallback:Ue(()=>[]),_:2},1024))]),_:1})}var ky=fe(by,[["render",Ey],["__scopeId","data-v-b888f30a"]]);const wy={};function Sy(e,t){return S(),I("section",null,[Ut(e.$slots,"default",{},void 0,!0)])}var Cy=fe(wy,[["render",Sy],["__scopeId","data-v-6a6bc058"]]);const Ty={class:"section-title"},Fy=le({__name:"section-title",props:{title:{type:String,default:""}},setup(e){return(t,n)=>(S(),I("div",Ty,[d("span",null,J(e.title),1),Ut(t.$slots,"default",{},void 0,!0)]))}});var Dy=fe(Fy,[["__scopeId","data-v-5cb5900e"]]);const Oy={},Py={class:"section-container"};function Ny(e,t){return S(),I("div",Py,[Ut(e.$slots,"default",{},void 0,!0)])}var Iy=fe(Oy,[["render",Ny],["__scopeId","data-v-790a0322"]]);const Ly={},My={class:"section-item"};function Ay(e,t){return S(),I("div",My,[Ut(e.$slots,"default",{},void 0,!0)])}var xy=fe(Ly,[["render",Ay],["__scopeId","data-v-abe9a852"]]),$y={install(e){e.component("layout-main",kv),e.component("layout-page",Dv),e.component("layout-header",yy),e.component("router-loading",ky),e.component("nas-section",Cy),e.component("nas-section-title",Dy),e.component("nas-section-container",Iy),e.component("nas-section-item",xy)}},Gs;class El{constructor(){Nl(this,Gs,void 0)}install(t){Il(this,Gs,t)}openWindow(t,n){const s=document.createElement("div"),r=Ie(t,fr(wt({},n),{close:()=>{Ta(null,s),s.remove()}}));po(this,Gs)&&(r.appContext=po(this,Gs)._context),Ta(r,s),document.body.appendChild(s)}}Gs=new WeakMap;const Ry=["onClick"],By=le({__name:"index",props:{setup:{type:String,default:"pppoe"}},setup(e){const n=_e(e.setup),s=[{name:"device-router",title:"\u8BBE\u5907\u8DEF\u7531",f:()=>{}},{name:"network-monitoring",title:"\u5E26\u5BBD\u76D1\u63A7",f:()=>{}},{name:"network-speed",title:"\u5185\u7F51\u6D4B\u901F",f:()=>{}},{name:"opkg",title:"\u8F6F\u4EF6\u6E90\u914D\u7F6E",f:()=>{}},{name:"sandbox",title:"\u6C99\u7BB1\u529F\u80FD",f:()=>{}},{name:"system-monitor",title:"\u7CFB\u7EDF\u76D1\u63A7",f:()=>{}},{name:"backup-upgrade",title:"\u5907\u4EFD\u5347\u7EA7",f:()=>{}},{name:"plugin-upgrade",title:"\u63D2\u4EF6\u5907\u4EFD",f:()=>{}},{name:"os-upgrade",title:"\u56FA\u4EF6\u66F4\u65B0",f:()=>{}}];return(r,a)=>{const o=ft("popups-container");return S(),Ce(o,{title:"\u529F\u80FD\u7BA1\u7406",transparent:""},{left:Ue(()=>[(S(),I(ve,null,_t(s,i=>d("li",{class:zt(["network-menu_item",{on:n.value==i.name}]),onClick:l=>n.value=i.name},[d("span",null,J(i.title),1)],10,Ry)),64))]),right:Ue(()=>[]),_:1})}}});const Uy={key:0,id:"app-dialog"},Yy={key:0,class:"app-dialog_bg"},Hy={key:0,class:"app-dialog_header"},Wy={class:"app-dialog_body"},Vy=le({__name:"index",props:{title:{type:String},bg:{type:Boolean,default:!0},width:{type:String},beforeClose:{type:Function}},emits:["change","update:modelValue","handleClose"],setup(e,{emit:t}){const n=e,s=_e(!1),r=()=>{n.beforeClose&&n.beforeClose()===!1||(s.value=!1,t("update:modelValue",!1),t("handleClose"))};return is(()=>{s.value=!0}),(a,o)=>(S(),Ce(ja,{name:"dialog1"},{default:Ue(()=>[s.value?(S(),I("div",Uy,[e.bg?(S(),I("div",Yy)):me("",!0),d("div",{class:"app-dialog_container",style:Ts({width:e.width})},[e.title!==void 0?(S(),I("div",Hy,[d("span",null,J(e.title),1),d("button",{class:"close",onClick:o[0]||(o[0]=i=>r())},[Ie(y1)])])):me("",!0),d("div",Wy,[Ut(a.$slots,"default",{},void 0,!0)])],4)])):me("",!0)]),_:3}))}});var kl=fe(Vy,[["__scopeId","data-v-1cf3987a"]]);const wl=e=>(at("data-v-24ffa06c"),e=e(),ot(),e),jy={class:"tools-container"},Gy=wl(()=>d("h1",null,"\u6B22\u8FCE\u4F7F\u7528iStoreOS",-1)),zy=wl(()=>d("p",null,"\u70B9\u51FB\u5F00\u59CB\u8BBE\u7F6E\uFF0C\u6211\u4EEC\u5C06\u4F1A\u5F15\u5BFC\u4F60\u5B8C\u6210iStoreOS\u7684\u4E00\u4E9B\u57FA\u7840\u914D\u7F6E\uFF0C",-1)),Ky=wl(()=>d("p",null,"\u6BD4\u5982\u6570\u636E\u76EE\u5F55\u3001\u5F71\u97F3\u548C\u8FDC\u7A0B\u4E0B\u8F7D\u914D\u7F6E\u7B49",-1)),qy={class:"btns"},Jy=le({__name:"top",setup(e){const t=ge("next");return ge("back"),(n,s)=>(S(),I("div",jy,[Gy,zy,Ky,d("div",qy,[d("button",{class:"next",onClick:s[0]||(s[0]=(...r)=>X(t)&&X(t)(...r))},"\u4E0B\u4E00\u6B65")])]))}});var Xy=fe(Jy,[["__scopeId","data-v-24ffa06c"]]);const ds=e=>(at("data-v-99d95164"),e=e(),ot(),e),Zy=["onSubmit"],Qy=ds(()=>d("div",{class:"label-name"}," \u63A5\u4E0B\u6765\u8BF7\u9009\u62E9\u4E00\u4E2A\u4E3B\u76EE\u5F55\u7A7A\u95F4\uFF08>20G && EXT4\uFF09 ",-1)),eb={class:"label-value"},tb=ds(()=>d("option",{value:""},"\u9009\u62E9\u5B58\u50A8\u7A7A\u95F4",-1)),nb=["value","disabled"],sb=ds(()=>d("div",{class:"msg"}," \u6570\u636E\u76EE\u5F55\u4E3B\u8981\u5B58\u653E\u4F60\u5728\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u914D\u7F6E\u6587\u4EF6\u3001\u7D22\u5F15\u6587\u4EF6\u3001\u7F29\u7565\u56FE\u7B49\uFF0C\u5EFA\u8BAE\u63A5\u5165\u5BB9\u91CF\u8F83\u5927\u7684\u786C\u76D8\u5206\u533A\uFF0C\u9009\u62E9\u4F5C\u4E3A\u6570\u636E\u76EE\u5F55\u3002 ",-1)),rb={class:"form-item"},ab=ds(()=>d("label",null," \u7F13\u5B58\u76EE\u5F55 ",-1)),ob={class:"label-value"},ib=ds(()=>d("label",null," \u4E0B\u8F7D\u76EE\u5F55 ",-1)),lb={class:"label-value"},ub=ds(()=>d("label",null," \u914D\u7F6E\u76EE\u5F55 ",-1)),cb={class:"label-value"},db=ds(()=>d("label",null,[yt(" docker\u76EE\u5F55 "),d("span",null,[d("div",{class:"msg"}," \uFF08\u5982\u679Cdocker\u6709\u6548\uFF0C\u5C06\u6E05\u7A7A\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0B\u7684\u6587\u4EF6\u5E76\u8FC1\u79FB\u5230\u8BE5\u76EE\u5F55\uFF09 ")])],-1)),fb={class:"label-value"},hb={class:"btns"},_b=ds(()=>d("button",{class:"next"},"\u4E0B\u4E00\u6B65",-1)),pb=le({__name:"path",setup(e){const t=ur(),n=be(()=>{var _;return((_=t==null?void 0:t.disk)==null?void 0:_.disks)||[]}),s=be(()=>{var _;return((_=t==null?void 0:t.raid)==null?void 0:_.disks)||[]}),r=be(()=>[...n.value,...s.value].filter(y=>y.childrens).map(y=>y.childrens)),a=ge("back"),o=ge("next"),i=()=>{o()},l=_=>!(_!=null&&_.mountPoint)||_.filesystem!="ext4"||Number(_.sizeInt)<21474836480,u=()=>{c.value.cachePath=c.value.path+"/Caches",c.value.plublicPath=c.value.path+"/Public",c.value.downloadPath=c.value.path+"/Public/Downloads",c.value.settingPath=c.value.path+"/Configs",c.value.dockerPath=c.value.path+"/docker"},c=ge("config");return(_,p)=>(S(),I("form",{class:"tools-container",onSubmit:ls(i,["prevent"])},[Qy,d("div",eb,[d("label",null,[Xe(d("select",{required:"","onUpdate:modelValue":p[0]||(p[0]=y=>X(c).path=y),onChange:u},[tb,(S(!0),I(ve,null,_t(r.value,y=>(S(),I(ve,null,[(S(!0),I(ve,null,_t(y,E=>(S(),I(ve,null,[E.mountPoint?(S(),I("option",{key:0,value:E.mountPoint,disabled:l(E)},J(E.mountPoint)+" ["+J(`${E.name} ${E.total}`)+"] ",9,nb)):me("",!0)],64))),256))],64))),256))],544),[[Od,X(c).path]])])]),sb,X(c).path!=""?(S(),I(ve,{key:0},[d("div",rb,[ab,d("div",ob,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[1]||(p[1]=y=>X(c).cachePath=y),required:""},null,512),[[nn,X(c).cachePath,void 0,{trim:!0}]])])]),ib,d("div",lb,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[2]||(p[2]=y=>X(c).downloadPath=y),required:""},null,512),[[nn,X(c).downloadPath,void 0,{trim:!0}]])])]),ub,d("div",cb,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[3]||(p[3]=y=>X(c).settingPath=y),required:""},null,512),[[nn,X(c).settingPath,void 0,{trim:!0}]])])]),db,d("div",fb,[d("label",null,[Xe(d("input",{type:"text","onUpdate:modelValue":p[4]||(p[4]=y=>X(c).dockerPath=y),required:""},null,512),[[nn,X(c).dockerPath,void 0,{trim:!0}]])])])]),d("div",hb,[d("button",{class:"back",type:"button",onClick:p[5]||(p[5]=(...y)=>X(a)&&X(a)(...y))},"\u4E0A\u4E00\u6B65"),_b])],64)):me("",!0)],40,Zy))}});var mb=fe(pb,[["__scopeId","data-v-99d95164"]]);const gb=e=>(at("data-v-7b090953"),e=e(),ot(),e),vb={class:"tools-container"},yb=gb(()=>d("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u4E0B\u8F7D\u5DE5\u5177? ",-1)),bb={class:"form-item"},Eb=["value"],kb=["src"],wb={class:"btns"},Sb=le({__name:"download",setup(e){const t=ge("next"),n=ge("back"),s=ge("config"),r=ge("apps");be(()=>s.value);const a=Tt([{name:"aria2",title:"Aria2\u4E0B\u8F7D\u5668"},{name:"transmission",title:"Transmission\u4E0B\u8F7D\u5668"},{name:"qbittorrent",title:"qBittorrent\u4E0B\u8F7D\u5668"}]),o=i=>oe.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${i}/logo.png`);return(i,l)=>(S(),I("div",vb,[yb,(S(!0),I(ve,null,_t(a,u=>(S(),I("div",bb,[d("label",null,[Xe(d("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=c=>je(r)?r.value=c:null)},null,8,Eb),[[Wi,X(r)]]),d("img",{src:o(u.name),alt:""},null,8,kb),yt(" "+J(u.title),1)])]))),256)),d("div",wb,[d("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>X(n)&&X(n)(...u))},"\u4E0A\u4E00\u6B65"),d("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>X(t)&&X(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var Cb=fe(Sb,[["__scopeId","data-v-7b090953"]]);const Tb=e=>(at("data-v-4d855e61"),e=e(),ot(),e),Fb={class:"tools-container"},Db=Tb(()=>d("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u5F71\u97F3\u5A31\u4E50? ",-1)),Ob={class:"form-item"},Pb=["value"],Nb=["src"],Ib={class:"btns"},Lb=le({__name:"media",setup(e){const t=ge("next"),n=ge("back"),s=ge("config"),r=ge("apps");be(()=>s.value);const a=Tt([{name:"jellyfin",title:"Jellyfin\u79C1\u6709\u5F71\u9662"},{name:"emby",title:"Emby\u5F71\u9662"},{name:"plex",title:"Plex\u5F71\u9662"}]),o=i=>oe.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${i}/logo.png`);return(i,l)=>(S(),I("div",Fb,[Db,(S(!0),I(ve,null,_t(a,u=>(S(),I("div",Ob,[d("label",null,[Xe(d("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=c=>je(r)?r.value=c:null)},null,8,Pb),[[Wi,X(r)]]),d("img",{src:o(u.name),alt:""},null,8,Nb),yt(" "+J(u.title),1)])]))),256)),d("div",Ib,[d("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>X(n)&&X(n)(...u))},"\u4E0A\u4E00\u6B65"),d("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>X(t)&&X(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var Mb=fe(Lb,[["__scopeId","data-v-4d855e61"]]);const Ab=e=>(at("data-v-2b6459ac"),e=e(),ot(),e),xb={class:"tools-container"},$b=Ab(()=>d("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u591A\u5A92\u4F53\u5DE5\u5177 ",-1)),Rb={class:"form-item"},Bb=["value"],Ub=["src"],Yb={class:"btns"},Hb=le({__name:"multimedia",setup(e){const t=ge("next"),n=ge("back"),s=ge("config"),r=ge("apps");be(()=>s.value);const a=Tt([{name:"photoprism",title:"PhotoPrism\u76F8\u518C\u7BA1\u7406"},{name:"navidrome",title:"Navidrome\u97F3\u4E50"},{name:"lanraragi",title:"LANraragi\u7535\u5B50\u4E66"}]),o=i=>oe.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${i}/logo.png`);return(i,l)=>(S(),I("div",xb,[$b,(S(!0),I(ve,null,_t(a,u=>(S(),I("div",Rb,[d("label",null,[Xe(d("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=c=>je(r)?r.value=c:null)},null,8,Bb),[[Wi,X(r)]]),d("img",{src:o(u.name),alt:""},null,8,Ub),yt(" "+J(u.title),1)])]))),256)),d("div",Yb,[d("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>X(n)&&X(n)(...u))},"\u4E0A\u4E00\u6B65"),d("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>X(t)&&X(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var Wb=fe(Hb,[["__scopeId","data-v-2b6459ac"]]);const w1=e=>(at("data-v-a11bdd32"),e=e(),ot(),e),Vb={class:"nalert"},jb={key:0,class:"nalert-container"},Gb={class:"nalert-data"},zb={class:"nalert-body"},Kb=w1(()=>d("div",{class:"nalert-bodt_title"},[d("svg",{t:"1670832330919",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2696",width:"128",height:"128"},[d("path",{d:"M849.92 174.08C759.466667 83.626667 640 34.133333 512 34.133333s-247.466667 49.493333-337.92 139.946667C83.626667 264.533333 34.133333 384 34.133333 512s49.493333 247.466667 139.946667 337.92C264.533333 940.373333 384 989.866667 512 989.866667s247.466667-49.493333 337.92-139.946667C940.373333 759.466667 989.866667 640 989.866667 512s-49.493333-247.466667-139.946667-337.92zM512 218.453333c30.72 0 56.32 25.6 56.32 56.32 0 30.72-25.6 56.32-56.32 56.32s-56.32-25.6-56.32-56.32c0-30.72 25.6-56.32 56.32-56.32z m90.453333 552.96H443.733333c-18.773333 0-34.133333-15.36-34.133333-34.133333s15.36-34.133333 34.133333-34.133333h44.373334V455.68H477.866667c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h44.373333c18.773333 0 34.133333 15.36 34.133333 34.133334v281.6h44.373334c18.773333 0 34.133333 15.36 34.133333 34.133333s-13.653333 34.133333-32.426667 34.133333z",fill:"#333333","p-id":"2697"})]),d("span",null,J("\u63D0\u793A"))],-1)),qb={class:"nalert-bodt_msg"},Jb=w1(()=>d("a",null,"docker\u8981\u8FC1\u79FB\u7684\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),Xb={class:"nalert-bodt_btns"},Zb=le({__name:"app",props:{close:{type:Function,required:!0},callback:{type:Function,required:!0},bg:{type:Boolean,default:!0}},setup(e){const t=e,n=_e(!1),s=_e(1),r=()=>{t.callback(s.value)},a=()=>{t.close()};return is(()=>{setTimeout(()=>{n.value=!0},0)}),(o,i)=>(S(),I("div",Vb,[e.bg?(S(),I("div",{key:0,class:"nalert-bg",onClick:a})):me("",!0),Ie(ja,{name:"dialog-nlaert"},{default:Ue(()=>[n.value?(S(),I("div",jb,[d("div",Gb,[d("div",zb,[Kb,d("div",qb,[Jb,d("label",null,[Xe(d("input",{type:"radio",value:1,"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l)},null,512),[[es,s.value]]),yt(" \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 ")]),d("label",null,[Xe(d("input",{type:"radio",value:0,"onUpdate:modelValue":i[1]||(i[1]=l=>s.value=l)},null,512),[[es,s.value]]),yt(" \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 ")])]),d("div",Xb,[d("button",{class:"next",onClick:i[2]||(i[2]=l=>r())}," \u786E\u5B9A "),d("button",{class:"clear",onClick:i[3]||(i[3]=l=>a())}," \u53D6\u6D88 ")])])])])):me("",!0)]),_:1})]))}});var Qb=fe(Zb,[["__scopeId","data-v-a11bdd32"]]),eE=()=>new Promise((e,t)=>{const n=document.createElement("div"),s=()=>{Ta(null,n),n.remove()},a=Ie(Qb,wt({},{callback:o=>{e(o),s()},close:()=>{t(),s()}}));Ta(a,n),document.body.appendChild(n)});const Sl=e=>(at("data-v-11842e6c"),e=e(),ot(),e),tE={class:"tools-container"},nE={key:0,class:"block"},sE=Sl(()=>d("li",null," \u8FC1\u79FBdocker\u76EE\u5F55 ",-1)),rE=Sl(()=>d("li",null," \u751F\u6210\u6570\u636E\u7684\u914D\u7F6E\u76EE\u5F55 ",-1)),aE=Sl(()=>d("li",null," \u662F\u5426\u7EE7\u7EED\uFF1F ",-1)),oE={key:1,class:"block block-msg"},iE={class:"msg-li"},lE={class:"msg-item"},uE={class:"btns"},cE=["disabled"],dE=["disabled"],fE=le({__name:"install",setup(e){ge("next");const t=ge("back");ge("init");const n=ge("apps"),s=ge("config");_e(0);const r=ge("disabled"),a=_e([]),o=_e(!1),i=()=>te(this,null,function*(){if(!!window.confirm("\u60A8\u786E\u5B9A\u8981\u6267\u884C\u64CD\u4F5C\u5417?")){if(a.value=[],a.value.push("\u521D\u59CB\u5316\u914D\u7F6E..."),r.value=!0,(yield _())!==!0){r.value=!1;return}if((yield u())!==!0){r.value=!1;return}if((yield c())!==!0){r.value=!1;return}a.value.push("\u914D\u7F6E\u5B8C\u6210,\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E"),a.value.push("\u8BF7\u5173\u95ED\u7A97\u53E3"),o.value=!0}}),l=()=>{localStorage.setItem("nas_guide_init","1"),window.location.reload()},u=()=>te(this,null,function*(){let E=!1;a.value.push("\u914D\u7F6E\u76EE\u5F55...");try{const C=s.value,F={home:C.path,downloads:C.downloadPath,configs:C.settingPath,caches:C.cachePath,public:C.plublicPath},g=yield oe.Quickstart.Guide.GlobalFolders.POST(F);if(g.data){const{success:k,error:P,scope:b,detail:D}=g.data;if((k||0)==0&&(E=!0,a.value.push("\u76EE\u5F55\u914D\u7F6E\u5B8C\u6210...")),P)throw P}}catch(C){a.value.push(C)}return E}),c=()=>te(this,null,function*(){let E=!1;const C=n.value;if(a.value.push("\u5B89\u88C5\u63D2\u4EF6..."),C.length>0)try{const F={packages:C},g=yield oe.Quickstart.AutoSetup.POST(F);if(g.data){const{success:k,error:P}=g.data;if(k==0&&(a.value.push("\u5DF2\u63D0\u4EA4\u81F3\u540E\u5929\u5B89\u88C5"),E=!0),P)throw P}}catch(F){a.value.push(F)}else a.value.push("\u6CA1\u6709\u9700\u8981\u5B89\u88C5\u7684\u63D2\u4EF6,\u8DF3\u8FC7"),E=!0;return E}),_=()=>te(this,null,function*(){let E=!1;a.value.push("\u6B63\u5728\u83B7\u53D6docker\u72B6\u6001");const{dockerPath:C}=s.value;try{const F=yield oe.Quickstart.Guide.DockerStatus.GET();if(F.data){const{success:g,error:k,result:P}=F.data;if(k)throw k;if(P&&P.path===C)return a.value.push("docker\u8DEF\u5F84\u4E00\u81F4,\u8DF3\u8FC7\u8FC1\u79FB"),!0}}catch(F){return a.value.push(F),!1}a.value.push("\u6B63\u5728\u8FC1\u79FBdocker...");try{const F=yield oe.Quickstart.Guide.DockerTransfer.POST({path:C,force:!1});if(F.data){const{result:g,success:k,error:P}=F.data;if((k||0)==0)if(g!=null&&g.emptyPathWarning)try{switch(yield eE()){case 0:E=yield p(C);break;case 1:E=yield y(C);break;default:a.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),E=!0}}catch(b){a.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),E=!0}else E=!0,a.value.push("\u8FC1\u79FB\u5B8C\u6210...");if(P)throw F.data.error}}catch(F){a.value.push(F)}return E}),p=E=>te(this,null,function*(){let C=!1;try{const F=yield oe.Quickstart.Guide.DockerTransfer.POST({path:E,force:!0,overwriteDir:!0});if(F.data){const{result:g,success:k,error:P}=F.data;if((k||0)==0&&(g!=null&&g.emptyPathWarning?a.value.push("\u8FC1\u79FB\u5931\u8D25..."):(C=!0,a.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),P)throw F.data.error}}catch(F){a.value.push(F)}return C}),y=E=>te(this,null,function*(){let C=!1;try{const F=yield oe.Quickstart.Guide.DockerTransfer.POST({path:E,force:!0,overwriteDir:!1});if(F.data){const{result:g,success:k,error:P}=F.data;if((k||0)==0&&(g!=null&&g.emptyPathWarning?a.value.push("\u8FC1\u79FB\u5931\u8D25..."):(C=!0,a.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),P)throw F.data.error}}catch(F){a.value.push(F)}return C});return(E,C)=>(S(),I("div",tE,[X(r)?me("",!0):(S(),I("div",nE,[sE,rE,d("li",null," \u5B89\u88C5\u9009\u4E2D\u7684 "+J(X(n).length)+" \u4E2A\u63D2\u4EF6 ",1),aE])),a.value.length>0?(S(),I("div",oE,[(S(!0),I(ve,null,_t(a.value,F=>(S(),I("li",iE,[d("div",lE,J(F),1)]))),256))])):me("",!0),d("div",uE,[o.value?(S(),I("button",{key:1,onClick:l,class:"next"},"\u5173\u95ED")):(S(),I(ve,{key:0},[d("button",{class:"back",onClick:C[0]||(C[0]=(...F)=>X(t)&&X(t)(...F)),disabled:X(r)},"\u4E0A\u4E00\u6B65",8,cE),d("button",{class:"next",onClick:i,disabled:X(r)},"\u5B89\u88C5\u5E76\u914D\u7F6E",8,dE)],64))])]))}});var hE=fe(fE,[["__scopeId","data-v-11842e6c"]]);const _E=e=>(at("data-v-0dc4c17e"),e=e(),ot(),e),pE={class:"tools-container"},mE=_E(()=>d("div",{class:"block"},[d("p",null," \u914D\u7F6E\u5B8C\u6210 "),d("p",null,"\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E")],-1)),gE=le({__name:"success",setup(e){const t=ge("init"),n=()=>{t(),window.location.reload()};return(s,r)=>(S(),I("div",pE,[mE,d("div",{class:"btns"},[d("button",{onClick:n,class:"next"},"\u77E5\u9053\u4E86")])]))}});var vE=fe(gE,[["__scopeId","data-v-0dc4c17e"]]);const yE={class:"nas-tools_item"},bE=le({__name:"index",props:{close:Function},setup(e){const t=e,n=be(()=>[Xy,mb,Cb,Mb,Wb,hE,vE]),s=Yt(),r=()=>{if(y.value)return!1},a=()=>{var E,C,F,g;u(),t.close&&t.close(),s&&((F=(C=(E=s==null?void 0:s.appContext)==null?void 0:E.config)==null?void 0:C.globalProperties)==null?void 0:F.$close)&&((g=s.appContext.config.globalProperties)==null||g.$close())},o=_e(0),i=()=>{y.value||o.value>=n.value.length-1||o.value++},l=()=>{y.value||o.value!=0&&o.value--},u=()=>{oe.Storage.Set.POST({key:"nas_guide_init",type:"option",values:["1"]}).then(E=>{})},c=be(()=>({transform:`translateX(${o.value*-100}%)`})),_=_e({path:"",cachePath:"",downloadPath:"",settingPath:"",dockerPath:"",plublicPath:""}),p=_e([]),y=_e(!1);return Nt("next",i),Nt("back",l),Nt("init",u),Nt("config",_),Nt("apps",p),Nt("disabled",y),(E,C)=>(S(),Ce(kl,{class:"nas-dialog",title:"iStoreOS",onHandleClose:a,"before-close":r,width:"860px"},{default:Ue(()=>[d("div",{class:"nas-tools",style:Ts(c.value)},[(S(!0),I(ve,null,_t(n.value,(F,g)=>(S(),I("div",yE,[g==o.value?(S(),Ce(Ri(F),{key:0})):me("",!0)]))),256))],4)]),_:1}))}});var EE=fe(bE,[["__scopeId","data-v-c4e63fa4"]]);class kE extends El{OpenNasSettingWindow(){this.openWindow(By)}OpenGuideWindow(){this.openWindow(EE)}}const wE=new kE;const S1=e=>(at("data-v-1d33ca6f"),e=e(),ot(),e),SE={class:"app-item"},CE={class:"app-card"},TE={class:"app-item_icon"},FE=["src"],DE={class:"app-item_info"},OE={class:"app-title"},PE={class:"app-as"},NE=S1(()=>d("span",{style:{margin:"0 10px"}},"|",-1)),IE=["title"],LE={key:0,class:"app-btn"},ME={key:1,class:"app-btn"},AE=S1(()=>d("div",null,null,-1)),xE=le({__name:"app",props:{app:{type:Object,required:!0}},setup(e){const t=e,n=_e(localStorage.getItem("i18n")),s=o1(),r=it.numberFormat,a=be(()=>s.appsExpand[t.app.name]||{downloadCount:0,isStar:null,name:t.app.name,starCount:0}),o=()=>{de.Message("\u60A8\u5DF2\u70B9\u8D5E\u8FC7\u4E86")},i=()=>te(this,null,function*(){var l;try{const u=yield oe.ApiStore.star.POST({appId:t.app.name,deviceId:it.getDeviceId()});((l=u==null?void 0:u.data)==null?void 0:l.success)==0&&s.appsExpand[t.app.name]&&(s.appsExpand[t.app.name].isStar=!0)}catch(u){de.Error(`${u}`)}});return(l,u)=>{const c=ft("icon-star-off"),_=ft("icon-star-on");return S(),I("div",SE,[d("div",CE,[d("div",TE,[d("img",{src:e.app.getIcon(),alt:""},null,8,FE)]),d("div",DE,[d("div",OE,[yt(J(n.value==="en"&&e.app.title_en||e.app.title)+" ",1),d("em",null,J(e.app.version),1)]),d("div",PE,[d("span",null,J(X(r)(a.value.downloadCount))+" "+J(l.$t("\u6B21\u4E0B\u8F7D")),1),NE,d("span",null,J(X(r)(a.value.starCount))+" "+J(l.$t("\u6B21\u70B9\u8D5E")),1),a.value.isStar!=null?(S(),I(ve,{key:0},[a.value.isStar?(S(),I("a",{key:0,class:"star-btn",onClick:u[0]||(u[0]=p=>o())},[Ie(c)])):(S(),I("a",{key:1,class:"star-btn",onClick:u[1]||(u[1]=p=>i())},[Ie(_)]))],64)):me("",!0)]),d("div",{class:"app-desc",title:e.app.description},J(n.value==="en"&&e.app.description_en||e.app.description),9,IE)])]),e.app.isInstall()?(S(),I("div",LE,[e.app.isUpdate()?(S(),I("button",{key:0,class:"update",onClick:u[2]||(u[2]=p=>e.app.update())},J(l.$t("\u66F4\u65B0")),1)):me("",!0),d("button",{class:"del",onClick:u[3]||(u[3]=p=>e.app.uninstall())},J(l.$t("\u5378\u8F7D")),1),d("button",{onClick:u[4]||(u[4]=p=>e.app.openApp()),class:"open"},J(l.$t("\u6253\u5F00")),1)])):(S(),I("div",ME,[AE,d("button",{class:"install",onClick:u[5]||(u[5]=p=>e.app.install())},J(l.$t("\u5B89\u88C5")),1)]))])}}});var Io=fe(xE,[["__scopeId","data-v-1d33ca6f"]]);const $E=le({__name:"index",emits:["change"],setup(e,{emit:t}){const n=i=>{},s=i=>{i===null&&console.log("dragleave")},r=i=>{i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="link")},a=i=>{i.preventDefault(),o(i)},o=i=>{var u;const l=(u=i==null?void 0:i.dataTransfer)==null?void 0:u.files;if(l&&l.length>0){const c=[];for(let _=0;_(S(),I("div",{onDrop:a,onDragenter:n,onDragleave:s,onDragover:r},[Ut(i.$slots,"default")],32))}});const RE={key:0},BE={class:"section-title"},UE={class:"section-list"},YE={key:1},HE={class:"section-title"},WE={class:"section-list"},VE={key:2},jE={class:"section-title"},GE={class:"section-list"},zE=le({__name:"appStore",setup(e){const t=o1(),n=be(()=>t.localApps||[]),s=be(()=>t.remoteApps||[]),r=be(()=>n.value.filter(i=>i.isUpdate())),a=i=>{if(i&&i.length>0){const l=i[0];(l.name.endsWith(".run")||l.name.endsWith(".ipk"))&&o(l)}},o=i=>te(this,null,function*(){const l=new FormData;l.append(i.name,i);const u=de.Loading("\u4E0A\u4F20\u4E2D...");try{const c=yield oe.Store.upload.POST(l);if(c.data){const{stderr:_,code:p}=c.data;if(p==0&&As.istore.Open(),_)throw _}}catch(c){de.Error(`${c}`)}finally{u.Close()}});return(i,l)=>(S(),Ce($E,{onChange:a},{default:Ue(()=>[r.value.length>0?(S(),I("section",RE,[d("div",BE,J(i.$t("\u53EF\u66F4\u65B0"))+" ("+J(r.value.length)+") ",1),d("div",UE,[(S(!0),I(ve,null,_t(r.value,u=>(S(),Ce(Io,{app:u},null,8,["app"]))),256))])])):me("",!0),n.value.length>0?(S(),I("section",YE,[d("div",HE,J(i.$t("\u5DF2\u5B89\u88C5"))+" ("+J(n.value.length)+") ",1),d("div",WE,[(S(!0),I(ve,null,_t(n.value,u=>(S(),Ce(Io,{app:u},null,8,["app"]))),256))])])):me("",!0),s.value.length>0?(S(),I("section",VE,[d("div",jE,J(i.$t("\u5168\u90E8\u8F6F\u4EF6"))+" ("+J(s.value.length)+") ",1),d("div",GE,[(S(!0),I(ve,null,_t(s.value,u=>(S(),I(ve,null,[u.isInstall()?me("",!0):(S(),Ce(Io,{key:0,app:u},null,8,["app"]))],64))),256))])])):me("",!0)]),_:1}))}});var KE=fe(zE,[["__scopeId","data-v-c546f0d4"]]);const qE=le({__name:"index",props:{close:Function},setup(e){const t=e,n=()=>{t.close&&t.close()};return(s,r)=>(S(),Ce(kl,{onHandleClose:n,title:s.$t("\u5E94\u7528\u4E2D\u5FC3")},{default:Ue(()=>[Ie(KE)]),_:1},8,["title"]))}});class JE extends El{Open(){this.openWindow(qE)}}const XE=new JE,ZE={class:"tab-content"},QE={class:"item-label"},ek=d("div",{class:"item-label_key"},[d("span",null,"\u540D\u79F0")],-1),tk={class:"item-label_value"},nk={key:0,class:"item-label"},sk=d("div",{class:"item-label_key"},[d("span",null,"\u578B\u53F7")],-1),rk={class:"item-label_value"},ak={class:"item-label"},ok=d("div",{class:"item-label_key"},[d("span",null,"\u8DEF\u5F84")],-1),ik={class:"item-label_value"},lk={class:"item-label"},uk=d("div",{class:"item-label_key"},[d("span",null,"\u5BB9\u91CF")],-1),ck={class:"item-label_value"},dk={class:"item-label"},fk=d("div",{class:"item-label_key"},[d("span",null,"\u7C7B\u578B")],-1),hk={class:"item-label_value"},_k={key:1,class:"item-label"},pk=d("div",{class:"item-label_key"},[d("span",null,"\u7CFB\u7EDF\u5206\u533A")],-1),mk=d("div",{class:"item-label_value"},[d("span",null,"true")],-1),gk=[pk,mk],vk={key:2,class:"item-label"},yk=d("div",{class:"item-label_key"},[d("span",null,"docker\u5206\u533A")],-1),bk=d("div",{class:"item-label_value"},[d("span",null,"true")],-1),Ek=[yk,bk],kk={key:3,class:"item-label"},wk=d("div",{class:"item-label_key"},[d("span",null,"\u63A5\u5165\u65B9\u5F0F")],-1),Sk=d("div",{class:"item-label_value"},[d("span",null,"\u5916\u63A5")],-1),Ck=[wk,Sk],Tk={class:"item-label"},Fk=d("div",{class:"item-label_key"},[d("span",null,"\u5206\u533A\u6570\u91CF")],-1),Dk={class:"item-label_value"},Ok={key:4,class:"item-label"},Pk=d("div",{class:"item-label_key"},[d("span",null,"error")],-1),Nk={class:"item-label_value"},Ik=le({__name:"main",setup(e){const t=ge("disk");return(n,s)=>{var r;return S(),I("section",ZE,[d("div",QE,[ek,d("div",tk,[d("span",null,J(X(t).name),1)])]),X(t).venderModel?(S(),I("div",nk,[sk,d("div",rk,[d("span",null,J(X(t).venderModel),1)])])):me("",!0),d("div",ak,[ok,d("div",ik,[d("span",null,J(X(t).path),1)])]),d("div",lk,[uk,d("div",ck,[d("span",null,J(X(t).used)+"/"+J(X(t).total),1)])]),d("div",dk,[fk,d("div",hk,[d("span",null,J(X(t).partyLabelType),1)])]),X(t).isSystemRoot?(S(),I("div",_k,gk)):me("",!0),X(t).isDockerRoot?(S(),I("div",vk,Ek)):me("",!0),X(t).isExternalDisk?(S(),I("div",kk,Ck)):me("",!0),d("div",Tk,[Fk,d("div",Dk,[d("span",null,J((r=X(t).childrens)==null?void 0:r.length),1)])]),X(t).errorInfo?(S(),I("div",Ok,[Pk,d("div",Nk,[d("span",null,J(X(t).errorInfo),1)])])):me("",!0)])}}}),Lk={class:"tab-content"},Mk=d("div",{class:"label-name"},[d("span",null,"\u76EE\u6807\u5206\u533A")],-1),Ak={class:"label-value"},xk=d("option",{value:-1},"\u9009\u62E9\u8981\u6302\u8F7D\u7684\u5206\u533A",-1),$k=["value"],Rk=d("div",{class:"label-name"},[d("span",null,"\u6302\u8F7D\u70B9")],-1),Bk={class:"label-value"},Uk={class:"label-btns"},Yk=["disabled"],Hk=le({__name:"mount",props:{mountIndex:{type:Number,required:!0}},setup(e){const t=e,n=ge("disk"),s=ge("disabled"),r=Tt({index:t.mountIndex!=null?t.mountIndex:-1,mountPoint:"",item:{mountPoint:"",path:"",name:"",filesystem:"",total:"",used:"",usage:0,uuid:"",isReadOnly:!1,isSystemRoot:!1,sizeInt:""}}),a=()=>{var l;const i=n.value;r.index==-1&&(r.item=null,r.mountPoint=""),i.childrens&&(r.item=i.childrens[r.index],r.mountPoint="/mnt/data_"+((l=r==null?void 0:r.item)==null?void 0:l.name))},o=()=>te(this,null,function*(){const i=n.value,l=r.item;if(l==null||r.index==-1){de.Message("\u83B7\u53D6\u4E0D\u5230\u8981\u6302\u8F7D\u7684\u5206\u533A");return}if(l.path==null||l.path==""){de.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533A\u8DEF\u5F84");return}if(l.uuid==null||l.uuid==""){de.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533AID");return}if(r.mountPoint==""){de.Message("\u6302\u8F7D\u70B9\u4E0D\u80FD\u4E3A\u7A7A");return}const u=de.Loading("\u6302\u8F7D\u4E2D...");try{const c=yield oe.Nas.Disk.Partition.Mount.POST({path:l.path,uuid:l.uuid,mountPoint:r.mountPoint});if(c!=null&&c.data){const{result:_,error:p}=c==null?void 0:c.data;if(p)throw p;_&&(i&&i.childrens&&i.childrens[r.index]&&(i.childrens[r.index].mountPoint=_.mountPoint),de.Success("\u6302\u8F7D\u6210\u529F,\u8BF7\u5173\u95ED\u7A97\u53E3"))}}catch(c){de.Error(`${c}`)}finally{u.Close(),s.value=!1}});return r.index>=0&&a(),(i,l)=>(S(),I("section",Lk,[Mk,d("div",Ak,[Xe(d("select",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.index=u),onChange:a},[xk,(S(!0),I(ve,null,_t(X(n).childrens,(u,c)=>{var _;return S(),I(ve,null,[u.mountPoint?me("",!0):(S(),I("option",{key:0,value:c},J(u.path)+"\uFF08"+J(u.total)+"\uFF0C"+J((_=u==null?void 0:u.filesystem)==null?void 0:_.toUpperCase())+"\uFF09 ",9,$k))],64)}),256))],544),[[Od,r.index]])]),r.index!=-1?(S(),I(ve,{key:0},[Rk,d("div",Bk,[Xe(d("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=u=>r.mountPoint=u)},null,512),[[nn,r.mountPoint,void 0,{trim:!0}]])]),d("div",Uk,[d("button",{class:"mount",disabled:X(s),onClick:l[2]||(l[2]=u=>o())},"\u6302\u8F7D",8,Yk)])],64)):me("",!0)]))}}),Wk={class:"tab-content"},Vk=d("colgroup",null,[d("col"),d("col"),d("col"),d("col"),d("col")],-1),jk=d("thead",null,[d("tr",null,[d("th",null," \u540D\u79F0 "),d("th",null," \u8DEF\u5F84 "),d("th",null," \u5BB9\u91CF "),d("th",null,"\u683C\u5F0F"),d("th",null," \u72B6\u6001 "),d("th",null," \u6302\u8F7D\u70B9 ")])],-1),Gk={key:0},zk={key:1,class:"warning"},Kk={key:0},qk=["onClick"],Jk=le({__name:"partition",setup(e){const t=ge("disk"),n=ge("onMount");return(s,r)=>(S(),I("section",Wk,[d("table",null,[Vk,jk,d("tbody",null,[(S(!0),I(ve,null,_t(X(t).childrens,(a,o)=>(S(),I("tr",null,[d("th",null,[d("span",null,J(a.name),1)]),d("th",null,J(a.path),1),d("th",null,[d("span",null,J(a.used||0)+"/"+J(a.total||0),1)]),d("th",null,[a.filesystem=="ext4"?(S(),I("span",Gk,J(a.filesystem),1)):(S(),I("span",zk,J(a.filesystem),1))]),d("th",null,[d("span",null,J(a.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1)]),d("th",null,[a.mountPoint?(S(),I("span",Kk,[d("span",null,J(a.mountPoint),1)])):(S(),I("a",{key:1,onClick:i=>X(n)(o)}," \u53BB\u6302\u8F7D ",8,qk))])]))),256))])])]))}});const _o=e=>(at("data-v-7d47f8ad"),e=e(),ot(),e),Xk={class:"tab-content"},Zk=_o(()=>d("div",{class:"label-name"},[d("span",null,"\u8981\u683C\u5F0F\u5316\u7684\u76EE\u6807")],-1)),Qk={class:"label-value2"},ew={class:"disk-item"},tw=_o(()=>d("em",{class:"disk_main"},"\u5168\u76D8",-1)),nw={class:"disk-item"},sw=["value"],rw=_o(()=>d("em",null,"\u5206\u533A",-1)),aw=_o(()=>d("div",{class:"label-name"},[d("span",null,"\u683C\u5F0F\u5316\u4E3A")],-1)),ow={class:"label-value2"},iw={class:"disk-item"},lw={class:"label-btns"},uw=["disabled"],cw=le({__name:"foramt",setup(e){const t=ge("disk"),n=ge("updateDisk"),s=ge("disabled"),r=_e(-1),a=_e("ext4"),o=()=>te(this,null,function*(){const u=wt({},t.value),c=r.value;if(c==-1){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${u.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u4E00\u4E2A\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;i(u);return}if(u.childrens){const _=u.childrens[c],p=_.mountPoint||_.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${p} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${p}?`))return;l(_,c);return}}),i=u=>te(this,null,function*(){if(s.value=!0,u.name==null||u.path==""){de.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(u.path==null||u.path==""){de.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}s.value=!0;const c=de.Loading("\u521D\u59CB\u5316\u4E2D...");try{const _=yield oe.Nas.Disk.Init.POST({name:u.name,path:u.path});if(_!=null&&_.data){const{result:p,error:y}=_==null?void 0:_.data;if(y&&de.Warning(y),p){if(p.errorInfo){de.Warning(p.errorInfo);return}de.Success("\u521D\u59CB\u5316\u6210\u529F"),n(p)}}}catch(_){de.Error(_)}finally{c.Close(),s.value=!1}}),l=(u,c)=>te(this,null,function*(){if(s.value=!0,u.path==null||u.path==""){de.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}s.value=!0;const _=de.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const p=yield oe.Nas.Disk.Partition.Format.POST({path:u.path,uuid:u.uuid,mountPoint:u.mountPoint});if(p!=null&&p.data){const{result:y,error:E}=p==null?void 0:p.data;if(E&&de.Warning(E),y){de.Success("\u683C\u5F0F\u5316\u6210\u529F");const C=wt({},t.value);C.childrens&&(C.childrens[c]=y),n(C)}}}catch(p){de.Error(p)}finally{_.Close(),s.value=!1}});return(u,c)=>(S(),I("section",Xk,[Zk,d("div",Qk,[d("label",ew,[Xe(d("input",{type:"radio",value:-1,"onUpdate:modelValue":c[0]||(c[0]=_=>r.value=_)},null,512),[[es,r.value]]),tw,yt(J(X(t).path)+"\uFF08"+J(X(t).total)+"\uFF09 ",1)]),(S(!0),I(ve,null,_t(X(t).childrens,(_,p)=>{var y;return S(),I("label",nw,[Xe(d("input",{type:"radio",value:p,"onUpdate:modelValue":c[1]||(c[1]=E=>r.value=E)},null,8,sw),[[es,r.value]]),rw,yt(J(_.path)+"\uFF08"+J(_.total)+"\uFF0C"+J((y=_==null?void 0:_.filesystem)==null?void 0:y.toUpperCase())+"\uFF09 ",1)])}),256))]),aw,d("div",ow,[d("label",iw,[Xe(d("input",{type:"radio",value:"ext4","onUpdate:modelValue":c[2]||(c[2]=_=>a.value=_)},null,512),[[es,a.value]]),yt(" EXT4 ")])]),d("div",lw,[d("button",{class:"mount",disabled:X(s),onClick:c[3]||(c[3]=_=>o())},"\u683C\u5F0F\u5316",8,uw)])]))}});var dw=fe(cw,[["__scopeId","data-v-7d47f8ad"]]);const fw={class:"tabls"},hw=["disabled"],_w=["disabled"],pw=["disabled"],mw=["disabled"],gw=le({__name:"index",props:{disk:{type:Object,required:!0},close:Function},setup(e){const t=e,n=()=>{i.value&&location.reload(),t.close&&t.close()},s=_e("main"),r=_e(!1),a=_e(t.disk),o=_e(null),i=_e(!1);Nt("disk",a),Nt("updateDisk",u=>{a.value=u,i.value=!0}),Nt("disabled",r),Nt("onMount",u=>{o.value=u,s.value="mount"});const l=u=>{u=="mount"&&(o.value=null),s.value=u};return(u,c)=>(S(),Ce(kl,{onHandleClose:n,title:"Storage Manager",width:"920px"},{default:Ue(()=>[d("ul",fw,[d("button",{class:zt({on:s.value=="main"}),onClick:c[0]||(c[0]=_=>l("main")),disabled:r.value},"\u6458\u8981",10,hw),d("button",{class:zt({on:s.value=="partition"}),onClick:c[1]||(c[1]=_=>l("partition")),disabled:r.value},"\u5206\u533A",10,_w),d("button",{class:zt({on:s.value=="mount"}),onClick:c[2]||(c[2]=_=>l("mount")),disabled:r.value},"\u6302\u8F7D",10,pw),d("button",{class:zt({on:s.value=="foramt"}),onClick:c[3]||(c[3]=_=>l("foramt")),disabled:r.value},"\u683C\u5F0F\u5316",10,mw)]),s.value=="main"?(S(),Ce(Ik,{key:0})):s.value=="partition"?(S(),Ce(Jk,{key:1})):s.value=="mount"?(S(),Ce(Hk,{key:2,mountIndex:o.value},null,8,["mountIndex"])):s.value=="foramt"?(S(),Ce(dw,{key:3})):me("",!0)]),_:1}))}});var vw=fe(gw,[["__scopeId","data-v-1b963653"]]);class yw extends El{OpenDisk(t){this.openWindow(vw,t)}}const C1=new yw;C1.OpenDisk;document.title=E1.HostName;const cr=Vi(o6);cr.use(b7());k7();cr.use(mv).use($y);cr.use(x9);cr.use(a6);cr.use(wE).use(XE).use(C1);cr.mount("#app");export{Ts as $,nn as A,ls as B,oe as C,Od as D,_t as E,ve as F,w3 as G,C1 as H,o1 as I,KE as J,Cw as K,Sw as L,T9 as M,ja as N,XE as O,ic as P,wE as Q,Nt as R,sd as S,de as T,zt as U,kl as V,El as W,is as X,As as Y,Ut as Z,fe as _,d as a,ww as a0,Tw as a1,Wi as a2,Fw as a3,a6 as a4,rr as a5,Vi as a6,Dw as a7,Ow as a8,Li as a9,j as aa,Ew as ab,k3 as ac,Zn as ad,Ie as b,I as c,le as d,Ce as e,Ri as f,X as g,it as h,be as i,Tt as j,dd as k,J as l,me as m,E1 as n,S as o,at as p,ot as q,ft as r,_e as s,Ev as t,ur as u,kw as v,Ue as w,Xe as x,es as y,yt as z}; diff --git a/sing-box/Makefile b/sing-box/Makefile index 9a84df29..be924b23 100644 --- a/sing-box/Makefile +++ b/sing-box/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sing-box -PKG_VERSION:=1.7.5 +PKG_VERSION:=1.7.6 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/SagerNet/sing-box/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=467373705604cb9cbf9c8363b0cec93aeb66b8de02742d96304f91181f5fbb5e +PKG_HASH:=ef048ad69589f7d3aea3ad882befe25eaf1a1f9e04d9ffdde4b5215dcbca5363 PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE_FILES:=LICENSE