From 0f04f3acd4af4a581a93f6d101e8c64f4898198f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:21:18 +0800 Subject: [PATCH] update 2023-08-15 16:21:18 --- luci-app-istorex/Makefile | 2 +- .../istorex/{chunk.bcb5ce7b.js => chunk.065ea83b.js} | 2 +- .../istorex/{chunk.03d6f2b6.js => chunk.09c4e52e.js} | 2 +- .../istorex/{chunk.3c914d61.js => chunk.178b0461.js} | 2 +- .../istorex/{chunk.adc546bf.js => chunk.1d1c193d.js} | 2 +- .../htdocs/luci-static/istorex/chunk.23136adc.js | 1 - .../istorex/{chunk.d5918750.js => chunk.2559aa46.js} | 2 +- .../istorex/{chunk.51abe803.js => chunk.278424c9.js} | 2 +- .../istorex/{chunk.902c558f.js => chunk.3b5c847d.js} | 2 +- .../istorex/{chunk.d8791a1c.js => chunk.3ccf49d4.js} | 2 +- .../istorex/{chunk.33ac1cfd.js => chunk.48ed88a8.js} | 2 +- .../istorex/{chunk.4eda5585.js => chunk.594d80ed.js} | 2 +- .../istorex/{chunk.d0a0fbaa.js => chunk.6c639c38.js} | 2 +- .../istorex/{chunk.71f3cce9.js => chunk.726e078f.js} | 2 +- .../istorex/{chunk.e85bc568.js => chunk.8400c4e2.js} | 2 +- .../istorex/{chunk.15cf2303.js => chunk.8a08d904.js} | 2 +- .../htdocs/luci-static/istorex/chunk.a1f2e21d.js | 1 + .../htdocs/luci-static/istorex/chunk.aabbda32.js | 1 + .../istorex/{chunk.46689331.js => chunk.af340000.js} | 2 +- .../istorex/{chunk.449269e9.js => chunk.b710396a.js} | 2 +- .../istorex/{chunk.dda41600.js => chunk.bad44d98.js} | 2 +- .../htdocs/luci-static/istorex/chunk.c2ecd3a3.js | 1 - .../istorex/{chunk.10bc31f0.js => chunk.d2d88129.js} | 2 +- .../istorex/{chunk.adae7c07.js => chunk.df73a910.js} | 2 +- .../istorex/{chunk.f1e97b90.js => chunk.e130b576.js} | 2 +- .../istorex/{chunk.54fdad8b.js => chunk.f9667c99.js} | 2 +- .../istorex/{chunk.73347c1a.js => chunk.fc4df3ed.js} | 2 +- luci-app-istorex/htdocs/luci-static/istorex/index.js | 2 +- luci-app-nft-qos/po/lt/nft-qos.po | 8 ++++---- 29 files changed, 30 insertions(+), 30 deletions(-) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.bcb5ce7b.js => chunk.065ea83b.js} (98%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.03d6f2b6.js => chunk.09c4e52e.js} (50%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.3c914d61.js => chunk.178b0461.js} (86%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.adc546bf.js => chunk.1d1c193d.js} (75%) delete mode 100644 luci-app-istorex/htdocs/luci-static/istorex/chunk.23136adc.js rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.d5918750.js => chunk.2559aa46.js} (97%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.51abe803.js => chunk.278424c9.js} (97%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.902c558f.js => chunk.3b5c847d.js} (98%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.d8791a1c.js => chunk.3ccf49d4.js} (98%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.33ac1cfd.js => chunk.48ed88a8.js} (98%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.4eda5585.js => chunk.594d80ed.js} (91%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.d0a0fbaa.js => chunk.6c639c38.js} (88%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.71f3cce9.js => chunk.726e078f.js} (71%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.e85bc568.js => chunk.8400c4e2.js} (50%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.15cf2303.js => chunk.8a08d904.js} (99%) create mode 100644 luci-app-istorex/htdocs/luci-static/istorex/chunk.a1f2e21d.js create mode 100644 luci-app-istorex/htdocs/luci-static/istorex/chunk.aabbda32.js rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.46689331.js => chunk.af340000.js} (98%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.449269e9.js => chunk.b710396a.js} (97%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.dda41600.js => chunk.bad44d98.js} (99%) delete mode 100644 luci-app-istorex/htdocs/luci-static/istorex/chunk.c2ecd3a3.js rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.10bc31f0.js => chunk.d2d88129.js} (98%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.adae7c07.js => chunk.df73a910.js} (97%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.f1e97b90.js => chunk.e130b576.js} (89%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.54fdad8b.js => chunk.f9667c99.js} (98%) rename luci-app-istorex/htdocs/luci-static/istorex/{chunk.73347c1a.js => chunk.fc4df3ed.js} (90%) diff --git a/luci-app-istorex/Makefile b/luci-app-istorex/Makefile index 5190bd764..a30e7390a 100755 --- a/luci-app-istorex/Makefile +++ b/luci-app-istorex/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=IstoreX -PKG_VERSION:=0.5.8-2 +PKG_VERSION:=0.5.9 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/luci-app-istorex/htdocs/luci-static/istorex/chunk.bcb5ce7b.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.065ea83b.js similarity index 98% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.bcb5ce7b.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.065ea83b.js index 79bc99e2e..92b614dd9 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.bcb5ce7b.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.065ea83b.js @@ -1 +1 @@ -import{_ as k,d as C,h,u as I,i as r,j as S,k as P,o as c,c as _,a as t,g as e,l as s,m as y,n as b,p as w,q as A}from"./index.js?v=acacf0dc";const n=l=>(w("data-v-96f1bb78"),l=l(),A(),l),N={id:"page",class:"page-container"},U={class:"text-container"},V={class:"text-container_item"},j=n(()=>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},z={key:2},G={key:4},J={class:"text-container_item"},K=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u8FDE\u63A5\u65B9\u5F0F:")],-1)),M={class:"text-container_item_value"},O={class:"text-container_item"},Q=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5728\u7EBF\u8BBE\u5907:")],-1)),R={class:"text-container_item_value"},T={class:"text-container_item"},W=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv4\u5730\u5740:")],-1)),X={class:"text-container_item_value"},Y={key:0,class:"text-container_item"},Z=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv6\u5730\u5740:")],-1)),$={class:"text-container_item_value"},tt={class:"text-container_item"},et=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"DNS:")],-1)),st={class:"text-container_item_value"},nt={class:"text-container"},it={class:"text-container_item"},at=n(()=>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=n(()=>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=n(()=>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=n(()=>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=n(()=>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"},ft=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u6E29\u5EA6:")],-1)),Bt={class:"text-container_item_value"},Dt={class:"progress-container"},kt={class:"text-container_item"},Ct=n(()=>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"},bt=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5185\u5B58:")],-1)),wt={class:"text-container_item_value"},At={class:"progress-container"},Nt=["value"],Ut=C({__name:"index",setup(l){const x=h.stampForm,F=h.stampForm,u=I(),i=r(()=>u.network),g=r(()=>u.device),a=S({cpuusage:0,temperature:0,menavailablePercentage:0,menusage:0}),d=r(()=>u.version),v=r(()=>u.time),E=o=>{switch(o){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},f=o=>{switch(o){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},B=o=>o.toUpperCase(),p=()=>{u.getSystemData().then(o=>{a.cpuusage=o.cpu.usage,a.temperature=o.cpu.temperature,a.menavailablePercentage=o.memery.availablePercentage||100,a.menusage=100-a.menavailablePercentage})};p();const D=setInterval(()=>{p()},5e3);return P(()=>{clearInterval(D)}),(o,Vt)=>{var m;return c(),_("div",N,[t("div",U,[t("div",V,[j,t("div",H,[e(i).networkInfo=="netSuccess"?(c(),_("span",q," \u5DF2\u8054\u7F51 ("+s(e(x)(e(i).uptimeStamp))+") ",1)):e(i).networkInfo=="dnsFailed"?(c(),_("span",L," DNS\u9519\u8BEF ")):e(i).networkInfo=="softSourceFailed"?(c(),_("span",z," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(c(),_("span",G," \u68C0\u6D4B\u4E2D "))])]),t("div",J,[K,t("div",M,s(B(e(i).defaultInterface||"")),1)]),t("div",O,[Q,t("div",R,s(e(g).devices.length),1)]),t("div",T,[W,t("div",X,s(e(i).ipv4addr)+"\uFF08"+s(E(e(i).proto||""))+"\uFF09 ",1)]),e(i).ipv6addr?(c(),_("div",Y,[Z,t("div",$,s(e(i).ipv6addr),1)])):y("",!0),t("div",tt,[et,t("div",st,[t("p",null,s(f(e(i).dnsProto)),1),t("p",null,s((m=e(i).dnsList)==null?void 0:m.join(", ")),1)])])]),t("div",nt,[t("div",it,[at,t("div",ot,[t("span",null,s(e(b).HostName),1)])]),t("div",ct,[_t,t("div",ut,[t("span",null,s(e(d).firmwareVersion),1)])]),t("div",lt,[rt,t("div",dt,[t("span",null,s(e(d).kernelVersion),1)])]),t("div",vt,[pt,t("div",mt,[t("span",null,s(e(F)(e(v).uptime)),1)])]),t("div",ht,[xt,t("div",Ft,[t("span",null,s(e(v).localtime),1)])])]),t("div",gt,[t("div",Et,[ft,t("div",Bt,[t("div",Dt,[t("span",null,s(a.temperature||"--")+"\u2103",1)])])]),t("div",kt,[Ct,t("div",It,[t("div",St,[t("progress",{value:a.cpuusage||0,max:"100"},null,8,Pt),t("span",null,s(a.cpuusage)+"%",1)])])]),t("div",yt,[bt,t("div",wt,[t("div",At,[t("progress",{value:a.menusage||0,max:"100"},null,8,Nt),t("span",null,s(a.menusage)+"% ",1)])])])])])}}});var Ht=k(Ut,[["__scopeId","data-v-96f1bb78"]]);export{Ht as default}; +import{_ as k,d as C,h,u as I,i as r,j as S,k as P,o as c,c as _,a as t,g as e,l as s,m as y,n as b,p as w,q as A}from"./index.js?v=c677ea9f";const n=l=>(w("data-v-96f1bb78"),l=l(),A(),l),N={id:"page",class:"page-container"},U={class:"text-container"},V={class:"text-container_item"},j=n(()=>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},z={key:2},G={key:4},J={class:"text-container_item"},K=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u8FDE\u63A5\u65B9\u5F0F:")],-1)),M={class:"text-container_item_value"},O={class:"text-container_item"},Q=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5728\u7EBF\u8BBE\u5907:")],-1)),R={class:"text-container_item_value"},T={class:"text-container_item"},W=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv4\u5730\u5740:")],-1)),X={class:"text-container_item_value"},Y={key:0,class:"text-container_item"},Z=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"IPv6\u5730\u5740:")],-1)),$={class:"text-container_item_value"},tt={class:"text-container_item"},et=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"DNS:")],-1)),st={class:"text-container_item_value"},nt={class:"text-container"},it={class:"text-container_item"},at=n(()=>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=n(()=>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=n(()=>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=n(()=>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=n(()=>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"},ft=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u6E29\u5EA6:")],-1)),Bt={class:"text-container_item_value"},Dt={class:"progress-container"},kt={class:"text-container_item"},Ct=n(()=>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"},bt=n(()=>t("div",{class:"text-container_item_title"},[t("span",null,"\u5185\u5B58:")],-1)),wt={class:"text-container_item_value"},At={class:"progress-container"},Nt=["value"],Ut=C({__name:"index",setup(l){const x=h.stampForm,F=h.stampForm,u=I(),i=r(()=>u.network),g=r(()=>u.device),a=S({cpuusage:0,temperature:0,menavailablePercentage:0,menusage:0}),d=r(()=>u.version),v=r(()=>u.time),E=o=>{switch(o){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},f=o=>{switch(o){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},B=o=>o.toUpperCase(),p=()=>{u.getSystemData().then(o=>{a.cpuusage=o.cpu.usage,a.temperature=o.cpu.temperature,a.menavailablePercentage=o.memery.availablePercentage||100,a.menusage=100-a.menavailablePercentage})};p();const D=setInterval(()=>{p()},5e3);return P(()=>{clearInterval(D)}),(o,Vt)=>{var m;return c(),_("div",N,[t("div",U,[t("div",V,[j,t("div",H,[e(i).networkInfo=="netSuccess"?(c(),_("span",q," \u5DF2\u8054\u7F51 ("+s(e(x)(e(i).uptimeStamp))+") ",1)):e(i).networkInfo=="dnsFailed"?(c(),_("span",L," DNS\u9519\u8BEF ")):e(i).networkInfo=="softSourceFailed"?(c(),_("span",z," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(c(),_("span",G," \u68C0\u6D4B\u4E2D "))])]),t("div",J,[K,t("div",M,s(B(e(i).defaultInterface||"")),1)]),t("div",O,[Q,t("div",R,s(e(g).devices.length),1)]),t("div",T,[W,t("div",X,s(e(i).ipv4addr)+"\uFF08"+s(E(e(i).proto||""))+"\uFF09 ",1)]),e(i).ipv6addr?(c(),_("div",Y,[Z,t("div",$,s(e(i).ipv6addr),1)])):y("",!0),t("div",tt,[et,t("div",st,[t("p",null,s(f(e(i).dnsProto)),1),t("p",null,s((m=e(i).dnsList)==null?void 0:m.join(", ")),1)])])]),t("div",nt,[t("div",it,[at,t("div",ot,[t("span",null,s(e(b).HostName),1)])]),t("div",ct,[_t,t("div",ut,[t("span",null,s(e(d).firmwareVersion),1)])]),t("div",lt,[rt,t("div",dt,[t("span",null,s(e(d).kernelVersion),1)])]),t("div",vt,[pt,t("div",mt,[t("span",null,s(e(F)(e(v).uptime)),1)])]),t("div",ht,[xt,t("div",Ft,[t("span",null,s(e(v).localtime),1)])])]),t("div",gt,[t("div",Et,[ft,t("div",Bt,[t("div",Dt,[t("span",null,s(a.temperature||"--")+"\u2103",1)])])]),t("div",kt,[Ct,t("div",It,[t("div",St,[t("progress",{value:a.cpuusage||0,max:"100"},null,8,Pt),t("span",null,s(a.cpuusage)+"%",1)])])]),t("div",yt,[bt,t("div",wt,[t("div",At,[t("progress",{value:a.menusage||0,max:"100"},null,8,Nt),t("span",null,s(a.menusage)+"% ",1)])])])])])}}});var Ht=k(Ut,[["__scopeId","data-v-96f1bb78"]]);export{Ht as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.03d6f2b6.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.09c4e52e.js similarity index 50% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.03d6f2b6.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.09c4e52e.js index 38f96d889..4f8a64075 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.03d6f2b6.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.09c4e52e.js @@ -1 +1 @@ -import{_ as r}from"./index.js?v=acacf0dc";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; +import{_ as r}from"./index.js?v=c677ea9f";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.3c914d61.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.178b0461.js similarity index 86% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.3c914d61.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.178b0461.js index 84b7e6865..ecacf55a9 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.3c914d61.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.178b0461.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=acacf0dc";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=c677ea9f";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.adc546bf.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.1d1c193d.js similarity index 75% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.adc546bf.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.1d1c193d.js index 0ddb31917..4adbdfd4f 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.adc546bf.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.1d1c193d.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=acacf0dc";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=c677ea9f";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.23136adc.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.23136adc.js deleted file mode 100644 index b83dbd560..000000000 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.23136adc.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=acacf0dc";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.d5918750.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.2559aa46.js similarity index 97% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.d5918750.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.2559aa46.js index 60d978eb8..77dc3da2f 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.d5918750.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.2559aa46.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,A as B,x as D,y as G,B as T,C as y,T as v}from"./index.js?v=acacf0dc";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"],A={class:"label-btns"},M=["disabled"],j={key:0,class:"label-msg"},P=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",A,[r("button",{class:"sumbit",disabled:c.value},"\u4FDD\u5B58",8,M)]),n.value?(S(),m("div",j,[r("span",null,h(n.value),1)])):L("",!0)],40,C))})}});export{P 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,A as B,x as D,y as G,B as T,C as y,T as v}from"./index.js?v=c677ea9f";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"],A={class:"label-btns"},M=["disabled"],j={key:0,class:"label-msg"},P=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",A,[r("button",{class:"sumbit",disabled:c.value},"\u4FDD\u5B58",8,M)]),n.value?(S(),m("div",j,[r("span",null,h(n.value),1)])):L("",!0)],40,C))})}});export{P as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.51abe803.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.278424c9.js similarity index 97% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.51abe803.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.278424c9.js index 6ba8594e3..a2e7f4dc4 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.51abe803.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.278424c9.js @@ -1 +1 @@ -import{_ as D,d as $,i as f,r as C,o as t,c as n,a as s,b as B,l,H as S,p as g,q as I,u as F,g as a,F as k,E as h,m,e as v}from"./index.js?v=acacf0dc";const b=e=>(g("data-v-f0f8da84"),e=e(),I(),e),E={class:"disk-item"},z={class:"disk-item_contanier"},N={class:"disk-item_icon"},w={class:"disk-item_name"},O=b(()=>s("div",{class:"auto"},null,-1)),V={class:"disk-item_used"},j={key:0,class:"disk-item_info"},q={class:"label-msg.warning"},M={key:1,class:"disk-item_info"},A=b(()=>s("div",{class:"auto"},null,-1)),H=$({__name:"item",props:{disk:{type:Object,required:!0}},setup(e){const c=e;f(()=>{var o;return((o=c.disk.childrens)==null?void 0:o.length)||0}),f(()=>{var u,r;let o=0;return(r=(u=c.disk)==null?void 0:u.childrens)==null||r.forEach(i=>{if(!i.mountPoint){const _=Number(i.sizeInt),x=(1<<30)*2;_>x&&o++}}),o});const d=()=>{S.OpenDisk({disk:c.disk})};return(o,u)=>{const r=C("icon-disk");return t(),n("div",E,[s("div",z,[s("div",N,[B(r)]),s("div",w,[s("span",null,l(e.disk.name)+" \u3010"+l(e.disk.size)+"\u3011"+l(e.disk.venderModel),1)]),O,s("div",V,[s("span",null,l(e.disk.used)+" / "+l(e.disk.total),1)])]),e.disk.errorInfo?(t(),n("div",j,[s("span",q,l(e.disk.errorInfo),1)])):(t(),n("div",M,[s("span",null,l(e.disk.path),1),A,s("a",{onClick:u[0]||(u[0]=i=>d())}," \u67E5\u770B ")]))])}}});var p=D(H,[["__scopeId","data-v-f0f8da84"]]);const y=e=>(g("data-v-bf0d8af0"),e=e(),I(),e),L={key:0,class:"ul-container"},P=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u7CFB\u7EDF\u78C1\u76D8")],-1)),G={class:"ul-container_body"},J={key:1,class:"ul-container"},K=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),Q={class:"ul-container_body"},R={key:2,class:"ul-container"},T=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u672A\u8BC6\u522B\u78C1\u76D8")],-1)),U={class:"ul-container_body"},W={key:3,class:"ul-container"},X=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"raid")],-1)),Y={class:"ul-container_body"},Z=$({__name:"index",setup(e){const c=F(),d=f(()=>c.disk),o=f(()=>c.raid.disks);return(u,r)=>(t(),n("main",null,[a(d).rootDisks.length>0?(t(),n("ul",L,[P,s("div",G,[(t(!0),n(k,null,h(a(d).rootDisks,(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0),a(d).mountedDisks.length>0?(t(),n("ul",J,[K,s("div",Q,[(t(!0),n(k,null,h(a(d).mountedDisks,(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0),a(d).errorDisks.length>0?(t(),n("ul",R,[T,s("div",U,[(t(!0),n(k,null,h(a(d).errorDisks,(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0),a(o).length>0?(t(),n("ul",W,[X,s("div",Y,[(t(!0),n(k,null,h(a(o),(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0)]))}});var es=D(Z,[["__scopeId","data-v-bf0d8af0"]]);export{es as default}; +import{_ as D,d as $,i as f,r as C,o as t,c as n,a as s,b as B,l,H as S,p as g,q as I,u as F,g as a,F as k,E as h,m,e as v}from"./index.js?v=c677ea9f";const b=e=>(g("data-v-f0f8da84"),e=e(),I(),e),E={class:"disk-item"},z={class:"disk-item_contanier"},N={class:"disk-item_icon"},w={class:"disk-item_name"},O=b(()=>s("div",{class:"auto"},null,-1)),V={class:"disk-item_used"},j={key:0,class:"disk-item_info"},q={class:"label-msg.warning"},M={key:1,class:"disk-item_info"},A=b(()=>s("div",{class:"auto"},null,-1)),H=$({__name:"item",props:{disk:{type:Object,required:!0}},setup(e){const c=e;f(()=>{var o;return((o=c.disk.childrens)==null?void 0:o.length)||0}),f(()=>{var u,r;let o=0;return(r=(u=c.disk)==null?void 0:u.childrens)==null||r.forEach(i=>{if(!i.mountPoint){const _=Number(i.sizeInt),x=(1<<30)*2;_>x&&o++}}),o});const d=()=>{S.OpenDisk({disk:c.disk})};return(o,u)=>{const r=C("icon-disk");return t(),n("div",E,[s("div",z,[s("div",N,[B(r)]),s("div",w,[s("span",null,l(e.disk.name)+" \u3010"+l(e.disk.size)+"\u3011"+l(e.disk.venderModel),1)]),O,s("div",V,[s("span",null,l(e.disk.used)+" / "+l(e.disk.total),1)])]),e.disk.errorInfo?(t(),n("div",j,[s("span",q,l(e.disk.errorInfo),1)])):(t(),n("div",M,[s("span",null,l(e.disk.path),1),A,s("a",{onClick:u[0]||(u[0]=i=>d())}," \u67E5\u770B ")]))])}}});var p=D(H,[["__scopeId","data-v-f0f8da84"]]);const y=e=>(g("data-v-bf0d8af0"),e=e(),I(),e),L={key:0,class:"ul-container"},P=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u7CFB\u7EDF\u78C1\u76D8")],-1)),G={class:"ul-container_body"},J={key:1,class:"ul-container"},K=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),Q={class:"ul-container_body"},R={key:2,class:"ul-container"},T=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"\u672A\u8BC6\u522B\u78C1\u76D8")],-1)),U={class:"ul-container_body"},W={key:3,class:"ul-container"},X=y(()=>s("div",{class:"ul-container_title"},[s("span",null,"raid")],-1)),Y={class:"ul-container_body"},Z=$({__name:"index",setup(e){const c=F(),d=f(()=>c.disk),o=f(()=>c.raid.disks);return(u,r)=>(t(),n("main",null,[a(d).rootDisks.length>0?(t(),n("ul",L,[P,s("div",G,[(t(!0),n(k,null,h(a(d).rootDisks,(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0),a(d).mountedDisks.length>0?(t(),n("ul",J,[K,s("div",Q,[(t(!0),n(k,null,h(a(d).mountedDisks,(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0),a(d).errorDisks.length>0?(t(),n("ul",R,[T,s("div",U,[(t(!0),n(k,null,h(a(d).errorDisks,(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0),a(o).length>0?(t(),n("ul",W,[X,s("div",Y,[(t(!0),n(k,null,h(a(o),(i,_)=>(t(),v(p,{disk:i},null,8,["disk"]))),256))])])):m("",!0)]))}});var es=D(Z,[["__scopeId","data-v-bf0d8af0"]]);export{es as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.902c558f.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.3b5c847d.js similarity index 98% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.902c558f.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.3b5c847d.js index 3d6f84f17..b6e766b40 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.902c558f.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.3b5c847d.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,z as _,m as I,E as V,l as U,A as T,C as P,T as q}from"./index.js?v=acacf0dc";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),z=a("option",{value:"static"},"\u9759\u6001 IP \u5730\u5740",-1),O=[j,z],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},O,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,z as _,m as I,E as V,l as U,A as T,C as P,T as q}from"./index.js?v=c677ea9f";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),z=a("option",{value:"static"},"\u9759\u6001 IP \u5730\u5740",-1),O=[j,z],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},O,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/luci-app-istorex/htdocs/luci-static/istorex/chunk.d8791a1c.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.3ccf49d4.js similarity index 98% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.d8791a1c.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.3ccf49d4.js index e944def7d..543e97d14 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.d8791a1c.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.3ccf49d4.js @@ -1 +1 @@ -var r=(c,m,i)=>new Promise((h,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?h(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 w,j as A,v as M,o as E,c as b,a as u,x as F,y as f,z as k,m as y,l as U,A as q,B as D,p as G,q as N,C as B,T as x}from"./index.js?v=acacf0dc";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=D("\u8D26\u53F7\u5BC6\u7801"),J=D("\u81EA\u52A8\u8054\u7F51"),K={style:{display:"none"}},Q=D("\u7F51\u5173\u8054\u7F51"),W={key:0,class:"ul-container"},X=p(()=>u("div",{class:"ul-container_title"},[u("span",null,"\u62E8\u53F7\u8054\u7F51\u914D\u7F6E")],-1)),Y=p(()=>u("div",{class:"label-value"},null,-1)),Z=p(()=>u("div",{class:"label-name"},[u("span",null,"\u8D26\u53F7")],-1)),$={class:"label-value"},uu=p(()=>u("div",{class:"label-name"},[u("span",null,"\u5BC6\u7801")],-1)),eu={class:"label-value"},au={key:1,class:"label-btns"},tu=["disabled"],su={key:2,class:"label-msg"},ou=T({__name:"index",setup(c){return r(this,null,function*(){let m,i;const h=I(),t=w(""),n=w(!1),s=w(""),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 h.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:_}=e.data;a&&(s.value=a),(_==null||_==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:_,error:C}=a==null?void 0:a.data;C&&(s.value=C),(_==null||_==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,[F(u("input",{type:"radio",value:"pppoe","onUpdate:modelValue":e[0]||(e[0]=a=>t.value=a)},null,512),[[f,t.value]]),H]),u("label",null,[F(u("input",{type:"radio",value:"dhcp","onUpdate:modelValue":e[1]||(e[1]=a=>t.value=a)},null,512),[[f,t.value]]),J]),u("label",K,[F(u("input",{type:"radio",value:"static",hidden:"true","onUpdate:modelValue":e[2]||(e[2]=a=>t.value=a)},null,512),[[f,t.value]]),Q])])]),t.value=="pppoe"?(E(),b("ul",W,[X,Y,Z,u("div",$,[F(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}]])]),uu,u("div",eu,[F(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",au,[u("button",{class:"sumbit",disabled:n.value},"\u4FDD\u5B58",8,tu)])):y("",!0),s.value?(E(),b("div",su,[u("span",null,U(s.value),1)])):y("",!0)],40,L))})}});var du=V(ou,[["__scopeId","data-v-c5783954"]]);export{du as default}; +var r=(c,m,i)=>new Promise((h,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?h(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 w,j as A,v as M,o as E,c as b,a as u,x as F,y as f,z as k,m as y,l as U,A as q,B as D,p as G,q as N,C as B,T as x}from"./index.js?v=c677ea9f";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=D("\u8D26\u53F7\u5BC6\u7801"),J=D("\u81EA\u52A8\u8054\u7F51"),K={style:{display:"none"}},Q=D("\u7F51\u5173\u8054\u7F51"),W={key:0,class:"ul-container"},X=p(()=>u("div",{class:"ul-container_title"},[u("span",null,"\u62E8\u53F7\u8054\u7F51\u914D\u7F6E")],-1)),Y=p(()=>u("div",{class:"label-value"},null,-1)),Z=p(()=>u("div",{class:"label-name"},[u("span",null,"\u8D26\u53F7")],-1)),$={class:"label-value"},uu=p(()=>u("div",{class:"label-name"},[u("span",null,"\u5BC6\u7801")],-1)),eu={class:"label-value"},au={key:1,class:"label-btns"},tu=["disabled"],su={key:2,class:"label-msg"},ou=T({__name:"index",setup(c){return r(this,null,function*(){let m,i;const h=I(),t=w(""),n=w(!1),s=w(""),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 h.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:_}=e.data;a&&(s.value=a),(_==null||_==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:_,error:C}=a==null?void 0:a.data;C&&(s.value=C),(_==null||_==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,[F(u("input",{type:"radio",value:"pppoe","onUpdate:modelValue":e[0]||(e[0]=a=>t.value=a)},null,512),[[f,t.value]]),H]),u("label",null,[F(u("input",{type:"radio",value:"dhcp","onUpdate:modelValue":e[1]||(e[1]=a=>t.value=a)},null,512),[[f,t.value]]),J]),u("label",K,[F(u("input",{type:"radio",value:"static",hidden:"true","onUpdate:modelValue":e[2]||(e[2]=a=>t.value=a)},null,512),[[f,t.value]]),Q])])]),t.value=="pppoe"?(E(),b("ul",W,[X,Y,Z,u("div",$,[F(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}]])]),uu,u("div",eu,[F(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",au,[u("button",{class:"sumbit",disabled:n.value},"\u4FDD\u5B58",8,tu)])):y("",!0),s.value?(E(),b("div",su,[u("span",null,U(s.value),1)])):y("",!0)],40,L))})}});var du=V(ou,[["__scopeId","data-v-c5783954"]]);export{du as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.33ac1cfd.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.48ed88a8.js similarity index 98% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.33ac1cfd.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.48ed88a8.js index e78ddf403..ef9977c7c 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.33ac1cfd.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.48ed88a8.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 i,c as a,a as e,F as k,E as y,l as n,p as A,q as C,B as _,C as M}from"./index.js?v=acacf0dc";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"},N=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)),S=_("\u672A\u8FDE\u63A5 "),j=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)),z=_(" \u5DF2\u8FDE\u63A5 "),I=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)=>(i(),a("table",D,[F,E,e("tbody",null,[(i(!0),a(k,null,y(h.ports,l=>(i(),a("tr",null,[e("th",b,[l.linkState=="DOWN"?(i(),a(k,{key:0},[N,S],64)):(i(),a(k,{key:1},[j,z],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 G=v(I,[["__scopeId","data-v-16a9b49b"]]);export{G 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 i,c as a,a as e,F as k,E as y,l as n,p as A,q as C,B as _,C as M}from"./index.js?v=c677ea9f";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"},N=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)),S=_("\u672A\u8FDE\u63A5 "),j=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)),z=_(" \u5DF2\u8FDE\u63A5 "),I=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)=>(i(),a("table",D,[F,E,e("tbody",null,[(i(!0),a(k,null,y(h.ports,l=>(i(),a("tr",null,[e("th",b,[l.linkState=="DOWN"?(i(),a(k,{key:0},[N,S],64)):(i(),a(k,{key:1},[j,z],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 G=v(I,[["__scopeId","data-v-16a9b49b"]]);export{G as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.4eda5585.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.594d80ed.js similarity index 91% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.4eda5585.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.594d80ed.js index 5d4e58205..86c0d8bcc 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.4eda5585.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.594d80ed.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=acacf0dc";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=c677ea9f";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.d0a0fbaa.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.6c639c38.js similarity index 88% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.d0a0fbaa.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.6c639c38.js index f46fe152d..cbff330ca 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.d0a0fbaa.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.6c639c38.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=acacf0dc";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=c677ea9f";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.71f3cce9.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.726e078f.js similarity index 71% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.71f3cce9.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.726e078f.js index 420ec7385..b55c1f542 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.71f3cce9.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.726e078f.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=acacf0dc";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=c677ea9f";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.e85bc568.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.8400c4e2.js similarity index 50% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.e85bc568.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.8400c4e2.js index 38f96d889..4f8a64075 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.e85bc568.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.8400c4e2.js @@ -1 +1 @@ -import{_ as r}from"./index.js?v=acacf0dc";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; +import{_ as r}from"./index.js?v=c677ea9f";const e={};function n(_,c){return null}var a=r(e,[["render",n]]);export{a as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.15cf2303.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.8a08d904.js similarity index 99% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.15cf2303.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.8a08d904.js index f1eff84e4..0461b404a 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.15cf2303.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.8a08d904.js @@ -1,4 +1,4 @@ -var dn=(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{_ as Ir,d as dr,I as OM,i as ya,s as ur,r as Zt,o as mt,e as Cr,w as Ht,b as Pt,c as Et,E as vf,F as vi,a as O,l as fe,g as Ft,O as NM,C as vo,T as cf,Q as BM,p as fh,q as hh,j as xw,m as $r,R as VM,H as zM,u as Si,U as FM,k as GM,h as py,V as HM,N as ww,W as $M,B as WM,n as UM,X as YM,Y as gy}from"./index.js?v=acacf0dc";const bw=r=>(fh("data-v-37664f80"),r=r(),hh(),r),ZM=bw(()=>O("div",{class:"app-content"},[O("div",{class:"app-icon",style:{background:"none",padding:"0"}},[O("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"},[O("title",null,"\u5E94\u7528\u5546\u5E97"),O("g",{id:"\u5E94\u7528\u5546\u5E97",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("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"}),O("g",{id:"Group-4",transform:"translate(100.000000, 110.000000)"},[O("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"}),O("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"}),O("g",{id:"Group"},[O("g",{id:"Group-3"},[O("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"}),O("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"}),O("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"}),O("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"})]),O("g",{id:"Group-2",transform:"translate(0.000000, 135.000000)"},[O("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"}),O("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"}),O("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"}),O("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"})])])])])])]),O("div",{class:"app-name"}," \u5E94\u7528\u5546\u5E97 ")],-1)),XM=bw(()=>O("div",{class:"app-content"},[O("div",{class:"app-icon",style:{background:"none",padding:"0"}},[O("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"},[O("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"}),O("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"}),O("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"}),O("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"})])]),O("div",{class:"app-name"}," NAS\u5957\u4EF6 ")],-1)),qM=["onClick"],KM={class:"app-icon"},QM=["src"],JM={class:"app-name"},jM={class:"app-footer"},tD=["onClick"],eD=["onClick"],rD={class:"app-content"},aD={class:"app-icon"},nD=["src"],iD={class:"app-name"},oD=dr({__name:"index",setup(r){const e=OM(),t=ya(()=>e.localApps.filter(l=>l.name!="istorex")),a=ur(!1);(()=>dn(this,null,function*(){yield e.getApp(),setTimeout(()=>{o()},2e3)}))();const i=()=>{NM.Open()},o=()=>dn(this,null,function*(){try{if((yield vo.Quickstart.Guide.GlobalFolders.GET()).status!==200)return}catch(l){console.log(l);return}a.value=!0;try{const l=yield vo.Storage.Get.POST({key:"nas_guide_init"});if(l.data){const{success:u,error:f,result:h}=l.data;if(h&&h.key=="nas_guide_init")return}}catch(l){return}s()}),s=()=>{if(!a.value){cf.Warning("\u8BF7\u5148\u66F4\u65B0\u7CFB\u7EDF\u5230\u6700\u65B0\u7248\u672C");return}BM.OpenGuideWindow()};return(l,u)=>{const f=Zt("nas-section-title"),h=Zt("nas-section-item"),v=Zt("nas-section-container"),c=Zt("nas-section");return mt(),Cr(c,null,{default:Ht(()=>[Pt(f,{title:"Apps"}),Pt(v,{class:"section-app-container"},{default:Ht(()=>[Pt(h,{onClick:u[0]||(u[0]=d=>i())},{default:Ht(()=>[ZM]),_:1}),Pt(h,{onClick:u[1]||(u[1]=d=>s())},{default:Ht(()=>[XM]),_:1}),(mt(!0),Et(vi,null,vf(Ft(t),d=>(mt(),Et(vi,null,[d.isWebUrl()?(mt(),Cr(h,{key:0,class:"app-item",name:d.name,title:d.title},{default:Ht(()=>[O("div",{class:"app-content",onClick:p=>d.openWebUrl()},[O("div",KM,[O("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:d.getIcon()},null,8,QM)]),O("div",JM,fe(d.title),1)],8,qM),O("div",jM,[O("button",{class:"open",onClick:p=>d.openWebUrl()}," \u6253\u5F00 ",8,tD),O("button",{class:"setting",onClick:p=>d.openApp()}," \u914D\u7F6E ",8,eD)])]),_:2},1032,["name","title"])):(mt(),Cr(h,{key:1,onClick:p=>d.openApp(),name:d.name,title:d.title},{default:Ht(()=>[O("div",rD,[O("div",aD,[O("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:d.getIcon()},null,8,nD)]),O("div",iD,fe(d.title),1)])]),_:2},1032,["onClick","name","title"]))],64))),256))]),_:1})]),_:1})}}});var sD=Ir(oD,[["__scopeId","data-v-37664f80"]]);const vh=r=>(fh("data-v-69188d31"),r=r(),hh(),r),lD=vh(()=>O("div",{class:"tool-content"},[O("div",{class:"f"},[O("div",{class:"title"}," \u6587\u4EF6\u7BA1\u7406 "),O("div",{class:"desc"}," \u5728\u7EBF\u7BA1\u7406\u6587\u4EF6 "),O("div",{class:"btns"},[O("a",{href:"/cgi-bin/luci/admin/services/linkease/file",target:"_blank",class:"open",rel:"noopener noreferrer"}," \u6253\u5F00 ")])]),O("div",{class:"r"},[O("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"},[O("title",null,"\u6587\u4EF6\u7BA1\u7406"),O("g",{id:"\u6587\u4EF6\u7BA1\u7406",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("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"}),O("g",{id:"Group-5",transform:"translate(91.000000, 125.000000)"},[O("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) "}),O("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"}),O("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"}),O("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"}),O("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"}),O("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)),uD={class:"tool-content"},fD={class:"f"},hD=vh(()=>O("div",{class:"title"}," \u7F51\u7EDC\u5171\u4EAB ",-1)),vD=vh(()=>O("div",{class:"desc"}," \u7F51\u7EDC\u5171\u4EAB\u6587\u4EF6 ",-1)),cD={class:"btns"},dD=vh(()=>O("div",{class:"r"},[O("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"},[O("title",null,"\u7F51\u7EDC\u5171\u4EAB"),O("g",{id:"\u7F51\u7EDC\u5171\u4EAB",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("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"}),O("g",{id:"wangluo",transform:"translate(67.000000, 110.000000)"},[O("path",{d:"M48,150 C48,203.589837 76.5898371,253.108891 123,279.90381 C169.410161,306.69873 226.589839,306.69873 273,279.90381 C319.410163,253.108891 348,203.589837 348,150 C348,67.1572868 280.842712,0 198,0 C115.157288,0 48,67.1572868 48,150 L48,150 Z",id:"Path",fill:"#B6FFF1","fill-rule":"nonzero"}),O("path",{d:"M122.999999,279.90381 C169.410161,306.69873 226.589839,306.69873 273.000001,279.90381 C319.410163,253.108891 348,203.589837 348,149.999998 C348,107.191822 330.067617,68.5719765 301.304957,41.2425703 C287.970743,28.5728045 329,103 250,202 C171,301 99.5959597,266.391482 122.999999,279.90381 Z",id:"Path",fill:"#93E9D8","fill-rule":"nonzero"}),O("path",{d:"M162.265427,250.319116 C119.410508,228.904199 58.7244973,232.480534 98.0045838,150.311024 C111.70093,121.614173 85.8587676,107.48119 55.6665081,103 C50.713427,117.865486 48,133.765092 48,150.311024 C48,230.067585 110.236541,295.217192 188.753643,300 C190.174962,283.798775 186.557059,262.470035 162.265427,250.319116 Z",id:"Shape",fill:"#05E8EF","fill-rule":"nonzero"}),O("path",{d:"M161.48,46.5 C161.48,54.8957412 166.675726,62.6537262 175.11,66.851597 C183.544273,71.0494677 193.935727,71.0494677 202.37,66.851597 C210.804274,62.6537262 216,54.8957412 216,46.5 C216,38.1042588 210.804274,30.3462738 202.37,26.148403 C193.935727,21.9505323 183.544273,21.9505323 175.11,26.148403 C166.675726,30.3462738 161.48,38.1042588 161.48,46.5 Z",id:"Path",fill:"#49E1E6","fill-rule":"nonzero"}),O("circle",{id:"Oval",fill:"#B0E5DA",cx:"225.5",cy:"149.5",r:"7.5"}),O("circle",{id:"Oval",fill:"#05E8EF",cx:"273",cy:"85",r:"18"}),O("path",{d:"M385.734476,117.610358 C383.020237,98.0604192 360.143074,84.0345253 319.601813,77 L319.515647,77 C322.316053,82.1787916 324.814876,87.5302096 327.012118,93.054254 C353.594433,98.9667078 370.052203,108.633785 371.603197,119.595561 C373.326524,131.852035 356.696421,147.690506 327.098284,161.975339 C294.26891,177.856967 249.246999,190.37238 200.347603,197.234279 C151.448207,204.096178 104.746053,204.44143 68.8146902,198.22688 C36.4592308,192.616523 16.0808922,181.956843 14.4006486,169.743527 C13.1512368,160.723798 21.8540368,149.762022 38.3979734,138.88656 C38.3118071,138.75709 38.1825576,138.670777 38.0963912,138.584464 C38.4841397,132.585697 39.2596368,126.7164 40.336716,120.976572 C11.686409,137.117139 -2.14328798,154.552404 0.269369442,171.771887 C2.98360905,191.321825 25.8607714,205.347719 66.4020328,212.382244 C84.2384645,215.446363 104.530637,217 126.33072,217 C150.241878,217 176.005613,215.144266 202.329429,211.475956 C252.650569,204.398274 299.137308,191.451295 333.30226,174.922318 C370.310702,156.969174 388.448716,137.160296 385.734476,117.610358 Z",id:"Path",fill:"#148AD8","fill-rule":"nonzero",transform:"translate(193.000000, 147.000000) scale(-1, 1) translate(-193.000000, -147.000000) "})])])])],-1)),pD=dr({__name:"index",setup(r){const e=()=>{cf.Message("\u6682\u672A\u5F00\u653E")};return(t,a)=>{const n=Zt("nas-section-item"),i=Zt("nas-section-container"),o=Zt("nas-section");return mt(),Cr(o,null,{default:Ht(()=>[Pt(i,{class:"section-setting-container"},{default:Ht(()=>[Pt(n,null,{default:Ht(()=>[lD]),_:1}),Pt(n,null,{default:Ht(()=>[O("div",uD,[O("div",fD,[hD,vD,O("div",cD,[O("a",{class:"open",onClick:a[0]||(a[0]=s=>e())}," \u6253\u5F00 ")])]),dD])]),_:1})]),_:1})]),_:1})}}});var gD=Ir(pD,[["__scopeId","data-v-69188d31"]]);const yD={class:"disk-content"},mD={class:"name"},_D={class:"info"},SD={class:"icon"},xD={class:"card"},wD={key:0,class:"status main"},bD={key:0},TD={key:1},CD={key:2},AD={key:3},MD=["value"],DD=dr({__name:"disk",props:{type:{type:String},disk:{type:Object,required:!0}},setup(r){const e=r,t=xw(e.disk),a=ya(()=>t.errorInfo?"error":t.childrens==null||t.childrens.length==0||t.childrens.length==1&&t.childrens[0].filesystem=="No FileSystem"?"load":t.childrens.filter(i=>i.mountPoint).length==0?"unmounted":"success"),n=()=>{e.type!="raid"&&zM.OpenDisk({disk:e.disk})};return(i,o)=>{const s=Zt("icon-disk"),l=Zt("nas-section-item");return mt(),Cr(l,{onClick:o[0]||(o[0]=u=>n())},{default:Ht(()=>[O("div",yD,[O("div",mD,fe(r.type=="raid"?"raid: ":"")+" "+fe(t.name),1),O("div",_D,[O("div",SD,[Pt(s)]),O("div",xD,[t.isSystemRoot?(mt(),Et("div",wD," \u7CFB\u7EDF ")):$r("",!0),O("div",{class:VM(["status",Ft(a)])},[Ft(a)=="error"?(mt(),Et("span",bD,"\u9519\u8BEF")):Ft(a)=="success"?(mt(),Et("span",TD,"\u6B63\u5E38")):Ft(a)=="load"?(mt(),Et("span",CD,"\u672A\u683C\u5F0F\u5316")):Ft(a)=="unmounted"?(mt(),Et("span",AD,"\u672A\u6302\u8F7D")):$r("",!0)],2),O("li",null,"Used: "+fe(t.used),1),O("li",null,"Total: "+fe(t.size||t.total),1)])]),O("progress",{value:t.usage||0,max:"100"},null,8,MD)])]),_:1})}}});var yy=Ir(DD,[["__scopeId","data-v-1880f8c7"]]);const LD=dr({__name:"index",setup(r){const e=Si(),t=ya(()=>e.disk),a=ya(()=>e.raid.disks);return(n,i)=>{const o=Zt("nas-section-title"),s=Zt("nas-section-container"),l=Zt("nas-section");return mt(),Cr(l,null,{default:Ht(()=>[Pt(o,{title:"Storage"}),Pt(s,{class:"section-disk-container"},{default:Ht(()=>[(mt(!0),Et(vi,null,vf(Ft(t).disks,u=>(mt(),Cr(yy,{disk:u},null,8,["disk"]))),256)),(mt(!0),Et(vi,null,vf(Ft(a),u=>(mt(),Cr(yy,{disk:u,type:"raid"},null,8,["disk"]))),256))]),_:1})]),_:1})}}});var ID=Ir(LD,[["__scopeId","data-v-32ba2e94"]]);/*! ***************************************************************************** +var dn=(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{_ as Ir,d as dr,I as OM,i as ya,s as ur,r as Zt,o as mt,e as Cr,w as Ht,b as Pt,c as Et,E as vf,F as vi,a as O,l as fe,g as Ft,O as NM,C as vo,T as cf,Q as BM,p as fh,q as hh,j as xw,m as $r,R as VM,H as zM,u as Si,U as FM,k as GM,h as py,V as HM,N as ww,W as $M,B as WM,n as UM,X as YM,Y as gy}from"./index.js?v=c677ea9f";const bw=r=>(fh("data-v-37664f80"),r=r(),hh(),r),ZM=bw(()=>O("div",{class:"app-content"},[O("div",{class:"app-icon",style:{background:"none",padding:"0"}},[O("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"},[O("title",null,"\u5E94\u7528\u5546\u5E97"),O("g",{id:"\u5E94\u7528\u5546\u5E97",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("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"}),O("g",{id:"Group-4",transform:"translate(100.000000, 110.000000)"},[O("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"}),O("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"}),O("g",{id:"Group"},[O("g",{id:"Group-3"},[O("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"}),O("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"}),O("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"}),O("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"})]),O("g",{id:"Group-2",transform:"translate(0.000000, 135.000000)"},[O("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"}),O("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"}),O("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"}),O("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"})])])])])])]),O("div",{class:"app-name"}," \u5E94\u7528\u5546\u5E97 ")],-1)),XM=bw(()=>O("div",{class:"app-content"},[O("div",{class:"app-icon",style:{background:"none",padding:"0"}},[O("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"},[O("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"}),O("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"}),O("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"}),O("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"})])]),O("div",{class:"app-name"}," NAS\u5957\u4EF6 ")],-1)),qM=["onClick"],KM={class:"app-icon"},QM=["src"],JM={class:"app-name"},jM={class:"app-footer"},tD=["onClick"],eD=["onClick"],rD={class:"app-content"},aD={class:"app-icon"},nD=["src"],iD={class:"app-name"},oD=dr({__name:"index",setup(r){const e=OM(),t=ya(()=>e.localApps.filter(l=>l.name!="istorex")),a=ur(!1);(()=>dn(this,null,function*(){yield e.getApp(),setTimeout(()=>{o()},2e3)}))();const i=()=>{NM.Open()},o=()=>dn(this,null,function*(){try{if((yield vo.Quickstart.Guide.GlobalFolders.GET()).status!==200)return}catch(l){console.log(l);return}a.value=!0;try{const l=yield vo.Storage.Get.POST({key:"nas_guide_init"});if(l.data){const{success:u,error:f,result:h}=l.data;if(h&&h.key=="nas_guide_init")return}}catch(l){return}s()}),s=()=>{if(!a.value){cf.Warning("\u8BF7\u5148\u66F4\u65B0\u7CFB\u7EDF\u5230\u6700\u65B0\u7248\u672C");return}BM.OpenGuideWindow()};return(l,u)=>{const f=Zt("nas-section-title"),h=Zt("nas-section-item"),v=Zt("nas-section-container"),c=Zt("nas-section");return mt(),Cr(c,null,{default:Ht(()=>[Pt(f,{title:"Apps"}),Pt(v,{class:"section-app-container"},{default:Ht(()=>[Pt(h,{onClick:u[0]||(u[0]=d=>i())},{default:Ht(()=>[ZM]),_:1}),Pt(h,{onClick:u[1]||(u[1]=d=>s())},{default:Ht(()=>[XM]),_:1}),(mt(!0),Et(vi,null,vf(Ft(t),d=>(mt(),Et(vi,null,[d.isWebUrl()?(mt(),Cr(h,{key:0,class:"app-item",name:d.name,title:d.title},{default:Ht(()=>[O("div",{class:"app-content",onClick:p=>d.openWebUrl()},[O("div",KM,[O("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:d.getIcon()},null,8,QM)]),O("div",JM,fe(d.title),1)],8,qM),O("div",jM,[O("button",{class:"open",onClick:p=>d.openWebUrl()}," \u6253\u5F00 ",8,tD),O("button",{class:"setting",onClick:p=>d.openApp()}," \u914D\u7F6E ",8,eD)])]),_:2},1032,["name","title"])):(mt(),Cr(h,{key:1,onClick:p=>d.openApp(),name:d.name,title:d.title},{default:Ht(()=>[O("div",rD,[O("div",aD,[O("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:d.getIcon()},null,8,nD)]),O("div",iD,fe(d.title),1)])]),_:2},1032,["onClick","name","title"]))],64))),256))]),_:1})]),_:1})}}});var sD=Ir(oD,[["__scopeId","data-v-37664f80"]]);const vh=r=>(fh("data-v-69188d31"),r=r(),hh(),r),lD=vh(()=>O("div",{class:"tool-content"},[O("div",{class:"f"},[O("div",{class:"title"}," \u6587\u4EF6\u7BA1\u7406 "),O("div",{class:"desc"}," \u5728\u7EBF\u7BA1\u7406\u6587\u4EF6 "),O("div",{class:"btns"},[O("a",{href:"/cgi-bin/luci/admin/services/linkease/file",target:"_blank",class:"open",rel:"noopener noreferrer"}," \u6253\u5F00 ")])]),O("div",{class:"r"},[O("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"},[O("title",null,"\u6587\u4EF6\u7BA1\u7406"),O("g",{id:"\u6587\u4EF6\u7BA1\u7406",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("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"}),O("g",{id:"Group-5",transform:"translate(91.000000, 125.000000)"},[O("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) "}),O("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"}),O("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"}),O("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"}),O("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"}),O("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)),uD={class:"tool-content"},fD={class:"f"},hD=vh(()=>O("div",{class:"title"}," \u7F51\u7EDC\u5171\u4EAB ",-1)),vD=vh(()=>O("div",{class:"desc"}," \u7F51\u7EDC\u5171\u4EAB\u6587\u4EF6 ",-1)),cD={class:"btns"},dD=vh(()=>O("div",{class:"r"},[O("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"},[O("title",null,"\u7F51\u7EDC\u5171\u4EAB"),O("g",{id:"\u7F51\u7EDC\u5171\u4EAB",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("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"}),O("g",{id:"wangluo",transform:"translate(67.000000, 110.000000)"},[O("path",{d:"M48,150 C48,203.589837 76.5898371,253.108891 123,279.90381 C169.410161,306.69873 226.589839,306.69873 273,279.90381 C319.410163,253.108891 348,203.589837 348,150 C348,67.1572868 280.842712,0 198,0 C115.157288,0 48,67.1572868 48,150 L48,150 Z",id:"Path",fill:"#B6FFF1","fill-rule":"nonzero"}),O("path",{d:"M122.999999,279.90381 C169.410161,306.69873 226.589839,306.69873 273.000001,279.90381 C319.410163,253.108891 348,203.589837 348,149.999998 C348,107.191822 330.067617,68.5719765 301.304957,41.2425703 C287.970743,28.5728045 329,103 250,202 C171,301 99.5959597,266.391482 122.999999,279.90381 Z",id:"Path",fill:"#93E9D8","fill-rule":"nonzero"}),O("path",{d:"M162.265427,250.319116 C119.410508,228.904199 58.7244973,232.480534 98.0045838,150.311024 C111.70093,121.614173 85.8587676,107.48119 55.6665081,103 C50.713427,117.865486 48,133.765092 48,150.311024 C48,230.067585 110.236541,295.217192 188.753643,300 C190.174962,283.798775 186.557059,262.470035 162.265427,250.319116 Z",id:"Shape",fill:"#05E8EF","fill-rule":"nonzero"}),O("path",{d:"M161.48,46.5 C161.48,54.8957412 166.675726,62.6537262 175.11,66.851597 C183.544273,71.0494677 193.935727,71.0494677 202.37,66.851597 C210.804274,62.6537262 216,54.8957412 216,46.5 C216,38.1042588 210.804274,30.3462738 202.37,26.148403 C193.935727,21.9505323 183.544273,21.9505323 175.11,26.148403 C166.675726,30.3462738 161.48,38.1042588 161.48,46.5 Z",id:"Path",fill:"#49E1E6","fill-rule":"nonzero"}),O("circle",{id:"Oval",fill:"#B0E5DA",cx:"225.5",cy:"149.5",r:"7.5"}),O("circle",{id:"Oval",fill:"#05E8EF",cx:"273",cy:"85",r:"18"}),O("path",{d:"M385.734476,117.610358 C383.020237,98.0604192 360.143074,84.0345253 319.601813,77 L319.515647,77 C322.316053,82.1787916 324.814876,87.5302096 327.012118,93.054254 C353.594433,98.9667078 370.052203,108.633785 371.603197,119.595561 C373.326524,131.852035 356.696421,147.690506 327.098284,161.975339 C294.26891,177.856967 249.246999,190.37238 200.347603,197.234279 C151.448207,204.096178 104.746053,204.44143 68.8146902,198.22688 C36.4592308,192.616523 16.0808922,181.956843 14.4006486,169.743527 C13.1512368,160.723798 21.8540368,149.762022 38.3979734,138.88656 C38.3118071,138.75709 38.1825576,138.670777 38.0963912,138.584464 C38.4841397,132.585697 39.2596368,126.7164 40.336716,120.976572 C11.686409,137.117139 -2.14328798,154.552404 0.269369442,171.771887 C2.98360905,191.321825 25.8607714,205.347719 66.4020328,212.382244 C84.2384645,215.446363 104.530637,217 126.33072,217 C150.241878,217 176.005613,215.144266 202.329429,211.475956 C252.650569,204.398274 299.137308,191.451295 333.30226,174.922318 C370.310702,156.969174 388.448716,137.160296 385.734476,117.610358 Z",id:"Path",fill:"#148AD8","fill-rule":"nonzero",transform:"translate(193.000000, 147.000000) scale(-1, 1) translate(-193.000000, -147.000000) "})])])])],-1)),pD=dr({__name:"index",setup(r){const e=()=>{cf.Message("\u6682\u672A\u5F00\u653E")};return(t,a)=>{const n=Zt("nas-section-item"),i=Zt("nas-section-container"),o=Zt("nas-section");return mt(),Cr(o,null,{default:Ht(()=>[Pt(i,{class:"section-setting-container"},{default:Ht(()=>[Pt(n,null,{default:Ht(()=>[lD]),_:1}),Pt(n,null,{default:Ht(()=>[O("div",uD,[O("div",fD,[hD,vD,O("div",cD,[O("a",{class:"open",onClick:a[0]||(a[0]=s=>e())}," \u6253\u5F00 ")])]),dD])]),_:1})]),_:1})]),_:1})}}});var gD=Ir(pD,[["__scopeId","data-v-69188d31"]]);const yD={class:"disk-content"},mD={class:"name"},_D={class:"info"},SD={class:"icon"},xD={class:"card"},wD={key:0,class:"status main"},bD={key:0},TD={key:1},CD={key:2},AD={key:3},MD=["value"],DD=dr({__name:"disk",props:{type:{type:String},disk:{type:Object,required:!0}},setup(r){const e=r,t=xw(e.disk),a=ya(()=>t.errorInfo?"error":t.childrens==null||t.childrens.length==0||t.childrens.length==1&&t.childrens[0].filesystem=="No FileSystem"?"load":t.childrens.filter(i=>i.mountPoint).length==0?"unmounted":"success"),n=()=>{e.type!="raid"&&zM.OpenDisk({disk:e.disk})};return(i,o)=>{const s=Zt("icon-disk"),l=Zt("nas-section-item");return mt(),Cr(l,{onClick:o[0]||(o[0]=u=>n())},{default:Ht(()=>[O("div",yD,[O("div",mD,fe(r.type=="raid"?"raid: ":"")+" "+fe(t.name),1),O("div",_D,[O("div",SD,[Pt(s)]),O("div",xD,[t.isSystemRoot?(mt(),Et("div",wD," \u7CFB\u7EDF ")):$r("",!0),O("div",{class:VM(["status",Ft(a)])},[Ft(a)=="error"?(mt(),Et("span",bD,"\u9519\u8BEF")):Ft(a)=="success"?(mt(),Et("span",TD,"\u6B63\u5E38")):Ft(a)=="load"?(mt(),Et("span",CD,"\u672A\u683C\u5F0F\u5316")):Ft(a)=="unmounted"?(mt(),Et("span",AD,"\u672A\u6302\u8F7D")):$r("",!0)],2),O("li",null,"Used: "+fe(t.used),1),O("li",null,"Total: "+fe(t.size||t.total),1)])]),O("progress",{value:t.usage||0,max:"100"},null,8,MD)])]),_:1})}}});var yy=Ir(DD,[["__scopeId","data-v-1880f8c7"]]);const LD=dr({__name:"index",setup(r){const e=Si(),t=ya(()=>e.disk),a=ya(()=>e.raid.disks);return(n,i)=>{const o=Zt("nas-section-title"),s=Zt("nas-section-container"),l=Zt("nas-section");return mt(),Cr(l,null,{default:Ht(()=>[Pt(o,{title:"Storage"}),Pt(s,{class:"section-disk-container"},{default:Ht(()=>[(mt(!0),Et(vi,null,vf(Ft(t).disks,u=>(mt(),Cr(yy,{disk:u},null,8,["disk"]))),256)),(mt(!0),Et(vi,null,vf(Ft(a),u=>(mt(),Cr(yy,{disk:u,type:"raid"},null,8,["disk"]))),256))]),_:1})]),_:1})}}});var ID=Ir(LD,[["__scopeId","data-v-32ba2e94"]]);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.a1f2e21d.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.a1f2e21d.js new file mode 100644 index 000000000..643aed281 --- /dev/null +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.a1f2e21d.js @@ -0,0 +1 @@ +var U=Object.defineProperty;var V=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var z=(c,l,i)=>l in c?U(c,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[l]=i,L=(c,l)=>{for(var i in l||(l={}))H.call(l,i)&&z(c,i,l[i]);if(V)for(var i of V(l))J.call(l,i)&&z(c,i,l[i]);return c};var k=(c,l,i)=>new Promise((d,u)=>{var m=w=>{try{y(i.next(w))}catch(v){u(v)}},P=w=>{try{y(i.throw(w))}catch(v){u(v)}},y=w=>w.done?d(w.value):Promise.resolve(w.value).then(m,P);y((i=i.apply(c,l)).next())});import{d as K,s as S,j as Q,v as W,o as D,c as $,a as p,x,z as C,F as O,y as j,m as A,l as X,A as Y,B as q,C as T,T as F}from"./index.js?v=c677ea9f";var Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},G={exports:{}};(function(c){(function(l){const i="(0?\\d+|0x[a-f0-9]+)",d={fourOctet:new RegExp(`^${i}\\.${i}\\.${i}\\.${i}$`,"i"),threeOctet:new RegExp(`^${i}\\.${i}\\.${i}$`,"i"),twoOctet:new RegExp(`^${i}\\.${i}$`,"i"),longValue:new RegExp(`^${i}$`,"i")},u=new RegExp("^0[0-7]+$","i"),m=new RegExp("^0x[a-f0-9]+$","i"),P="%[0-9a-z]{1,}",y="(?:[0-9a-f]+::?)+",w={zoneIndex:new RegExp(P,"i"),native:new RegExp(`^(::)?(${y})?([0-9a-f]+)?(::)?(${P})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${i}\\.${i}\\.${i}\\.${i}(${P})?)$`,"i"),transitional:new RegExp(`^((?:${y})|(?:::)(?:${y})?)${i}\\.${i}\\.${i}\\.${i}(${P})?$`,"i")};function v(t,e){if(t.indexOf("::")!==t.lastIndexOf("::"))return null;let r=0,n=-1,o=(t.match(w.zoneIndex)||[])[0],s,h;for(o&&(o=o.substring(1),t=t.replace(/%.+$/,""));(n=t.indexOf(":",n+1))>=0;)r++;if(t.substr(0,2)==="::"&&r--,t.substr(-2,2)==="::"&&r--,r>e)return null;for(h=e-r,s=":";h--;)s+="0:";return t=t.replace("::",s),t[0]===":"&&(t=t.slice(1)),t[t.length-1]===":"&&(t=t.slice(0,-1)),e=function(){const _=t.split(":"),B=[];for(let R=0;R<_.length;R++)B.push(parseInt(_[R],16));return B}(),{parts:e,zoneId:o}}function f(t,e,r,n){if(t.length!==e.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let o=0,s;for(;n>0;){if(s=r-n,s<0&&(s=0),t[o]>>s!==e[o]>>s)return!1;n-=r,o+=1}return!0}function I(t){if(m.test(t))return parseInt(t,16);if(t[0]==="0"&&!isNaN(parseInt(t[1],10))){if(u.test(t))return parseInt(t,8);throw new Error(`ipaddr: cannot parse ${t} as octal`)}return parseInt(t,10)}function g(t,e){for(;t.length=0;o-=1)if(s=this.octets[o],s in n){if(h=n[s],r&&h!==0)return null;h!==8&&(r=!0),e+=h}else return null;return 32-e},t.prototype.range=function(){return a.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){return this.octets.slice(0)},t.prototype.toIPv4MappedAddress=function(){return a.IPv6.parse(`::ffff:${this.toString()}`)},t.prototype.toNormalizedString=function(){return this.toString()},t.prototype.toString=function(){return this.octets.join(".")},t}(),a.IPv4.broadcastAddressFromCIDR=function(t){try{const e=this.parseCIDR(t),r=e[0].toByteArray(),n=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[];let s=0;for(;s<4;)o.push(parseInt(r[s],10)|parseInt(n[s],10)^255),s++;return new this(o)}catch(e){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},a.IPv4.isIPv4=function(t){return this.parser(t)!==null},a.IPv4.isValid=function(t){try{return new this(this.parser(t)),!0}catch(e){return!1}},a.IPv4.isValidFourPartDecimal=function(t){return!!(a.IPv4.isValid(t)&&t.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},a.IPv4.networkAddressFromCIDR=function(t){let e,r,n,o,s;try{for(e=this.parseCIDR(t),n=e[0].toByteArray(),s=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[],r=0;r<4;)o.push(parseInt(n[r],10)&parseInt(s[r],10)),r++;return new this(o)}catch(h){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},a.IPv4.parse=function(t){const e=this.parser(t);if(e===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(e)},a.IPv4.parseCIDR=function(t){let e;if(e=t.match(/^(.+)\/(\d+)$/)){const r=parseInt(e[2]);if(r>=0&&r<=32){const n=[this.parse(e[1]),r];return Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},a.IPv4.parser=function(t){let e,r,n;if(e=t.match(d.fourOctet))return function(){const o=e.slice(1,6),s=[];for(let h=0;h4294967295||n<0)throw new Error("ipaddr: address outside defined range");return function(){const o=[];let s;for(s=0;s<=24;s+=8)o.push(n>>s&255);return o}().reverse()}else return(e=t.match(d.twoOctet))?function(){const o=e.slice(1,4),s=[];if(n=I(o[1]),n>16777215||n<0)throw new Error("ipaddr: address outside defined range");return s.push(I(o[0])),s.push(n>>16&255),s.push(n>>8&255),s.push(n&255),s}():(e=t.match(d.threeOctet))?function(){const o=e.slice(1,5),s=[];if(n=I(o[2]),n>65535||n<0)throw new Error("ipaddr: address outside defined range");return s.push(I(o[0])),s.push(I(o[1])),s.push(n>>8&255),s.push(n&255),s}():null},a.IPv4.subnetMaskFromPrefixLength=function(t){if(t=parseInt(t),t<0||t>32)throw new Error("ipaddr: invalid IPv4 prefix length");const e=[0,0,0,0];let r=0;const n=Math.floor(t/8);for(;r=0;h-=1)if(o=this.parts[h],o in n){if(s=n[o],r&&s!==0)return null;s!==16&&(r=!0),e+=s}else return null;return 128-e},t.prototype.range=function(){return a.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){let e;const r=[],n=this.parts;for(let o=0;o>8),r.push(e&255);return r},t.prototype.toFixedLengthString=function(){const e=function(){const n=[];for(let o=0;o>8,r&255,n>>8,n&255])},t.prototype.toNormalizedString=function(){const e=function(){const n=[];for(let o=0;oo&&(n=s.index,o=s[0].length);return o<0?r:`${r.substring(0,n)}::${r.substring(n+o)}`},t.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},t}(),a.IPv6.broadcastAddressFromCIDR=function(t){try{const e=this.parseCIDR(t),r=e[0].toByteArray(),n=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[];let s=0;for(;s<16;)o.push(parseInt(r[s],10)|parseInt(n[s],10)^255),s++;return new this(o)}catch(e){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},a.IPv6.isIPv6=function(t){return this.parser(t)!==null},a.IPv6.isValid=function(t){if(typeof t=="string"&&t.indexOf(":")===-1)return!1;try{const e=this.parser(t);return new this(e.parts,e.zoneId),!0}catch(e){return!1}},a.IPv6.networkAddressFromCIDR=function(t){let e,r,n,o,s;try{for(e=this.parseCIDR(t),n=e[0].toByteArray(),s=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[],r=0;r<16;)o.push(parseInt(n[r],10)&parseInt(s[r],10)),r++;return new this(o)}catch(h){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${h})`)}},a.IPv6.parse=function(t){const e=this.parser(t);if(e.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(e.parts,e.zoneId)},a.IPv6.parseCIDR=function(t){let e,r,n;if((r=t.match(/^(.+)\/(\d+)$/))&&(e=parseInt(r[2]),e>=0&&e<=128))return n=[this.parse(r[1]),e],Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},a.IPv6.parser=function(t){let e,r,n,o,s,h;if(n=t.match(w.deprecatedTransitional))return this.parser(`::ffff:${n[1]}`);if(w.native.test(t))return v(t,8);if((n=t.match(w.transitional))&&(h=n[6]||"",e=v(n[1].slice(0,-1)+h,6),e.parts)){for(s=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])],r=0;r128)throw new Error("ipaddr: invalid IPv6 prefix length");const e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let r=0;const n=Math.floor(t/8);for(;rM.isValid(c),b=c=>{const l=M.IPv4.parse(c).toByteArray();return l[0]<<24|l[1]<<16|l[2]<<8|l[3]},N=c=>M.fromByteArray([c>>24&255,c>>16&255,c>>8&255,c&255]).toString(),et=c=>{if(!M.IPv4.isIPv4(c))return!1;let l=0,i=b(c);for(let d=31;d>=0&&(i&1<{let u=b(c)&b(l),m=b(i),P=b(d),w=~b(l);return mu+1&&P{let i=b(l),d=b(c)&i,u=~i,m;return u>=105?(m=d|u-5,d=d|100):u>=3?(m=d|u-1,d=d|2):(d=d|1,m=d),[N(d),N(m)]};var E={isValidMask:et,isValidIP:tt,isValidMaskRange:nt,calcMaskRange:rt};const st=["onSubmit"],ot=p("div",{class:"label-name"},[p("span",null,"\u5185\u7F51\u5730\u5740")],-1),it={class:"label-value"},at=p("div",{class:"label-name"},[p("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),lt={class:"label-value"},ut=p("div",{class:"label-name"},[p("span",null,"DHCP\u670D\u52A1")],-1),dt={class:"label-value"},ct={class:"label-flex"},pt=q("\u4FDD\u6301DHCP"),ft=q("\u4FEE\u6539DHCP"),ht=p("div",{class:"label-name"},[p("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1),vt={class:"label-value"},It=p("div",{class:"label-name"},[p("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1),wt={class:"label-value"},mt={class:"label-btns"},Pt=["disabled"],yt={key:2,class:"label-msg"},xt=K({__name:"index",setup(c){return k(this,null,function*(){let l,i;const d=S(""),u=Q({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""}),m=S(!1),P=S(!1),y=()=>k(this,null,function*(){m.value=!0;const v=yield T.Guide.GetLan.GET();if(v.data){const{result:f}=v.data;f&&(u.lanIp=f.lanIp,u.netMask=f.netMask,P.value=f.enableDhcp||!1,u.dhcpStart=f.dhcpStart,u.dhcpEnd=f.dhcpEnd,f.lanIp,location.hostname)}m.value=!1});[l,i]=W(()=>y()),yield l,i();const w=()=>k(this,null,function*(){const v=L({},u);if(!E.isValidIP(v.lanIp)){F.Error("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!E.isValidMask(v.netMask)){F.Error("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(v.enableDhcp&&!E.isValidIP(v.dhcpStart)||!E.isValidIP(v.dhcpEnd)||!E.isValidMaskRange(v.lanIp,v.netMask,v.dhcpStart,v.dhcpEnd)){F.Error("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const f=F.Loading("\u6B63\u5728\u914D\u7F6E,\u8BF7\u7A0D\u7B49\u2026");let I=!1;try{const g=yield T.Guide.LanIp.POST(v);if(g.data){const{result:a,success:t,error:e}=g.data;if(e){d.value=e;return}(t||0)==0&&(I=!0)}}catch(g){d.value=g}finally{f.Close()}I&&(d.value=`\u66F4\u65B0\u6210\u529F,\u8BF7\u8FDB\u5165 ${v.lanIp} \u8DEF\u7531\u5668\u5730\u5740`)});return(v,f)=>(D(),$("form",{class:"form-container",onSubmit:Y(w,["prevent"])},[ot,p("div",it,[x(p("input",{type:"text",placeholder:"192.168.100.1","onUpdate:modelValue":f[0]||(f[0]=I=>u.lanIp=I),required:""},null,512),[[C,u.lanIp,void 0,{trim:!0}]])]),at,p("div",lt,[x(p("input",{type:"text",placeholder:"255.255.255.0","onUpdate:modelValue":f[1]||(f[1]=I=>u.netMask=I),required:""},null,512),[[C,u.netMask,void 0,{trim:!0}]])]),P.value?(D(),$(O,{key:0},[ut,p("div",dt,[p("div",ct,[p("label",null,[x(p("input",{type:"radio",value:!1,"onUpdate:modelValue":f[2]||(f[2]=I=>u.enableDhcp=I)},null,512),[[j,u.enableDhcp]]),pt]),p("label",null,[x(p("input",{type:"radio",value:!0,"onUpdate:modelValue":f[3]||(f[3]=I=>u.enableDhcp=I)},null,512),[[j,u.enableDhcp]]),ft])])])],64)):A("",!0),u.enableDhcp?(D(),$(O,{key:1},[ht,p("div",vt,[x(p("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":f[4]||(f[4]=I=>u.dhcpStart=I),required:""},null,512),[[C,u.dhcpStart,void 0,{trim:!0}]])]),It,p("div",wt,[x(p("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":f[5]||(f[5]=I=>u.dhcpEnd=I),required:""},null,512),[[C,u.dhcpEnd,void 0,{trim:!0}]])])],64)):A("",!0),p("div",mt,[p("button",{class:"sumbit",disabled:m.value},"\u4FDD\u5B58",8,Pt)]),d.value?(D(),$("div",yt,[p("span",null,X(d.value),1)])):A("",!0)],40,st))})}});export{xt as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.aabbda32.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.aabbda32.js new file mode 100644 index 000000000..d8c3524a8 --- /dev/null +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.aabbda32.js @@ -0,0 +1 @@ +import{_ as o,r as n,o as r,c as t,b as a}from"./index.js?v=c677ea9f";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.46689331.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.af340000.js similarity index 98% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.46689331.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.af340000.js index 65452c75c..11c6a8451 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.46689331.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.af340000.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 A,m as D,l as p,A as T,p as G,q as U,C as y,T as B}from"./index.js?v=acacf0dc";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([y.Nas.SandboxDisks.GET(),y.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 y.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,A(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,A(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,A(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 A,m as D,l as p,A as T,p as G,q as U,C as y,T as B}from"./index.js?v=c677ea9f";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([y.Nas.SandboxDisks.GET(),y.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 y.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,A(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,A(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,A(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/luci-app-istorex/htdocs/luci-static/istorex/chunk.449269e9.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.b710396a.js similarity index 97% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.449269e9.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.b710396a.js index a1b23556d..4a7a9adc9 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.449269e9.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.b710396a.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,z as w,l as y,m as A,A as C,C as B,T as x}from"./index.js?v=acacf0dc";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 B.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 B.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),[[w,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),[[w,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,z as w,l as y,m as A,A as C,C as B,T as x}from"./index.js?v=c677ea9f";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 B.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 B.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),[[w,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),[[w,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/luci-app-istorex/htdocs/luci-static/istorex/chunk.dda41600.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.bad44d98.js similarity index 99% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.dda41600.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.bad44d98.js index efb29938f..72bab2d74 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.dda41600.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.bad44d98.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{_ as A,d as $,M as b,s as M,r as N,o as h,c as y,a as t,b as S,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,z as T,B as U,D as V,e as E,w as L,N as R,S as j}from"./index.js?v=acacf0dc";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-093b8b30"),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("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-093b8b30"]]);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{_ as A,d as $,M as b,s as M,r as N,o as h,c as y,a as t,b as S,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,z as T,B as U,D as V,e as E,w as L,N as R,S as j}from"./index.js?v=c677ea9f";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-093b8b30"),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("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-093b8b30"]]);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/luci-app-istorex/htdocs/luci-static/istorex/chunk.c2ecd3a3.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.c2ecd3a3.js deleted file mode 100644 index 314206577..000000000 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.c2ecd3a3.js +++ /dev/null @@ -1 +0,0 @@ -var G=Object.defineProperty;var _=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var B=(p,l,i)=>l in p?G(p,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[l]=i,V=(p,l)=>{for(var i in l||(l={}))U.call(l,i)&&B(p,i,l[i]);if(_)for(var i of _(l))H.call(l,i)&&B(p,i,l[i]);return p};var E=(p,l,i)=>new Promise((d,u)=>{var w=c=>{try{y(i.next(c))}catch(f){u(f)}},P=c=>{try{y(i.throw(c))}catch(f){u(f)}},y=c=>c.done?d(c.value):Promise.resolve(c.value).then(w,P);y((i=i.apply(p,l)).next())});import{d as J,s as z,j as K,v as Q,o as C,c as M,a as h,x as g,z as k,y as L,F as W,m as O,l as X,A as Y,B as N,C as j,T as $}from"./index.js?v=acacf0dc";var Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},q={exports:{}};(function(p){(function(l){const i="(0?\\d+|0x[a-f0-9]+)",d={fourOctet:new RegExp(`^${i}\\.${i}\\.${i}\\.${i}$`,"i"),threeOctet:new RegExp(`^${i}\\.${i}\\.${i}$`,"i"),twoOctet:new RegExp(`^${i}\\.${i}$`,"i"),longValue:new RegExp(`^${i}$`,"i")},u=new RegExp("^0[0-7]+$","i"),w=new RegExp("^0x[a-f0-9]+$","i"),P="%[0-9a-z]{1,}",y="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(P,"i"),native:new RegExp(`^(::)?(${y})?([0-9a-f]+)?(::)?(${P})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${i}\\.${i}\\.${i}\\.${i}(${P})?)$`,"i"),transitional:new RegExp(`^((?:${y})|(?:::)(?:${y})?)${i}\\.${i}\\.${i}\\.${i}(${P})?$`,"i")};function f(t,e){if(t.indexOf("::")!==t.lastIndexOf("::"))return null;let r=0,n=-1,o=(t.match(c.zoneIndex)||[])[0],s,I;for(o&&(o=o.substring(1),t=t.replace(/%.+$/,""));(n=t.indexOf(":",n+1))>=0;)r++;if(t.substr(0,2)==="::"&&r--,t.substr(-2,2)==="::"&&r--,r>e)return null;for(I=e-r,s=":";I--;)s+="0:";return t=t.replace("::",s),t[0]===":"&&(t=t.slice(1)),t[t.length-1]===":"&&(t=t.slice(0,-1)),e=function(){const S=t.split(":"),A=[];for(let F=0;F0;){if(s=r-n,s<0&&(s=0),t[o]>>s!==e[o]>>s)return!1;n-=r,o+=1}return!0}function m(t){if(w.test(t))return parseInt(t,16);if(t[0]==="0"&&!isNaN(parseInt(t[1],10))){if(u.test(t))return parseInt(t,8);throw new Error(`ipaddr: cannot parse ${t} as octal`)}return parseInt(t,10)}function R(t,e){for(;t.length=0;o-=1)if(s=this.octets[o],s in n){if(I=n[s],r&&I!==0)return null;I!==8&&(r=!0),e+=I}else return null;return 32-e},t.prototype.range=function(){return a.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){return this.octets.slice(0)},t.prototype.toIPv4MappedAddress=function(){return a.IPv6.parse(`::ffff:${this.toString()}`)},t.prototype.toNormalizedString=function(){return this.toString()},t.prototype.toString=function(){return this.octets.join(".")},t}(),a.IPv4.broadcastAddressFromCIDR=function(t){try{const e=this.parseCIDR(t),r=e[0].toByteArray(),n=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[];let s=0;for(;s<4;)o.push(parseInt(r[s],10)|parseInt(n[s],10)^255),s++;return new this(o)}catch(e){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},a.IPv4.isIPv4=function(t){return this.parser(t)!==null},a.IPv4.isValid=function(t){try{return new this(this.parser(t)),!0}catch(e){return!1}},a.IPv4.isValidFourPartDecimal=function(t){return!!(a.IPv4.isValid(t)&&t.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},a.IPv4.networkAddressFromCIDR=function(t){let e,r,n,o,s;try{for(e=this.parseCIDR(t),n=e[0].toByteArray(),s=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[],r=0;r<4;)o.push(parseInt(n[r],10)&parseInt(s[r],10)),r++;return new this(o)}catch(I){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},a.IPv4.parse=function(t){const e=this.parser(t);if(e===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(e)},a.IPv4.parseCIDR=function(t){let e;if(e=t.match(/^(.+)\/(\d+)$/)){const r=parseInt(e[2]);if(r>=0&&r<=32){const n=[this.parse(e[1]),r];return Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},a.IPv4.parser=function(t){let e,r,n;if(e=t.match(d.fourOctet))return function(){const o=e.slice(1,6),s=[];for(let I=0;I4294967295||n<0)throw new Error("ipaddr: address outside defined range");return function(){const o=[];let s;for(s=0;s<=24;s+=8)o.push(n>>s&255);return o}().reverse()}else return(e=t.match(d.twoOctet))?function(){const o=e.slice(1,4),s=[];if(n=m(o[1]),n>16777215||n<0)throw new Error("ipaddr: address outside defined range");return s.push(m(o[0])),s.push(n>>16&255),s.push(n>>8&255),s.push(n&255),s}():(e=t.match(d.threeOctet))?function(){const o=e.slice(1,5),s=[];if(n=m(o[2]),n>65535||n<0)throw new Error("ipaddr: address outside defined range");return s.push(m(o[0])),s.push(m(o[1])),s.push(n>>8&255),s.push(n&255),s}():null},a.IPv4.subnetMaskFromPrefixLength=function(t){if(t=parseInt(t),t<0||t>32)throw new Error("ipaddr: invalid IPv4 prefix length");const e=[0,0,0,0];let r=0;const n=Math.floor(t/8);for(;r=0;I-=1)if(o=this.parts[I],o in n){if(s=n[o],r&&s!==0)return null;s!==16&&(r=!0),e+=s}else return null;return 128-e},t.prototype.range=function(){return a.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){let e;const r=[],n=this.parts;for(let o=0;o>8),r.push(e&255);return r},t.prototype.toFixedLengthString=function(){const e=function(){const n=[];for(let o=0;o>8,r&255,n>>8,n&255])},t.prototype.toNormalizedString=function(){const e=function(){const n=[];for(let o=0;oo&&(n=s.index,o=s[0].length);return o<0?r:`${r.substring(0,n)}::${r.substring(n+o)}`},t.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},t}(),a.IPv6.broadcastAddressFromCIDR=function(t){try{const e=this.parseCIDR(t),r=e[0].toByteArray(),n=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[];let s=0;for(;s<16;)o.push(parseInt(r[s],10)|parseInt(n[s],10)^255),s++;return new this(o)}catch(e){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},a.IPv6.isIPv6=function(t){return this.parser(t)!==null},a.IPv6.isValid=function(t){if(typeof t=="string"&&t.indexOf(":")===-1)return!1;try{const e=this.parser(t);return new this(e.parts,e.zoneId),!0}catch(e){return!1}},a.IPv6.networkAddressFromCIDR=function(t){let e,r,n,o,s;try{for(e=this.parseCIDR(t),n=e[0].toByteArray(),s=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),o=[],r=0;r<16;)o.push(parseInt(n[r],10)&parseInt(s[r],10)),r++;return new this(o)}catch(I){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${I})`)}},a.IPv6.parse=function(t){const e=this.parser(t);if(e.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(e.parts,e.zoneId)},a.IPv6.parseCIDR=function(t){let e,r,n;if((r=t.match(/^(.+)\/(\d+)$/))&&(e=parseInt(r[2]),e>=0&&e<=128))return n=[this.parse(r[1]),e],Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},a.IPv6.parser=function(t){let e,r,n,o,s,I;if(n=t.match(c.deprecatedTransitional))return this.parser(`::ffff:${n[1]}`);if(c.native.test(t))return f(t,8);if((n=t.match(c.transitional))&&(I=n[6]||"",e=f(n[1].slice(0,-1)+I,6),e.parts)){for(s=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])],r=0;r128)throw new Error("ipaddr: invalid IPv6 prefix length");const e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let r=0;const n=Math.floor(t/8);for(;rD.isValid(p),b=p=>{const l=D.IPv4.parse(p).toByteArray();return l[0]<<24|l[1]<<16|l[2]<<8|l[3]},T=p=>D.fromByteArray([p>>24&255,p>>16&255,p>>8&255,p&255]).toString(),et=p=>{if(!D.IPv4.isIPv4(p))return!1;let l=0,i=b(p);for(let d=31;d>=0&&(i&1<{let u=b(p)&b(l),w=b(i),P=b(d),c=~b(l);return wu+1&&P{let i=b(l),d=b(p)&i,u=~i,w;return u>=105?(w=d|u-5,d=d|100):u>=3?(w=d|u-1,d=d|2):(d=d|1,w=d),[T(d),T(w)]};var x={isValidMask:et,isValidIP:tt,isValidMaskRange:nt,calcMaskRange:rt};const st=["onSubmit"],ot=h("div",{class:"label-name"},[h("span",null,"\u5185\u7F51\u5730\u5740")],-1),it={class:"label-value"},at=h("div",{class:"label-name"},[h("span",null,"\u5B50\u7F51\u63A9\u7801")],-1),ut={class:"label-value"},lt=h("div",{class:"label-name"},[h("span",null,"\u4FEE\u6539DHCP\u670D\u52A1")],-1),dt={class:"label-value"},ct={class:"label-flex"},pt=N("\u5173\u95ED"),ft=N("\u542F\u7528"),ht=h("div",{class:"label-name"},[h("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1),It={class:"label-value"},vt=h("div",{class:"label-name"},[h("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1),wt={class:"label-value"},mt={class:"label-btns"},Pt=["disabled"],yt={key:1,class:"label-msg"},xt=J({__name:"index",setup(p){return E(this,null,function*(){let l,i;const d=z(""),u=K({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""}),w=z(!1),P=()=>E(this,null,function*(){w.value=!0;const c=yield j.Guide.GetLan.GET();if(c.data){const{result:f}=c.data;f&&(u.lanIp=f.lanIp,u.netMask=f.netMask,u.enableDhcp=f.enableDhcp||!1,u.dhcpStart=f.dhcpStart,u.dhcpEnd=f.dhcpEnd,f.lanIp,location.hostname)}w.value=!1});[l,i]=Q(()=>P()),yield l,i();const y=()=>E(this,null,function*(){const c=V({},u);if(!x.isValidIP(c.lanIp)){$.Error("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!x.isValidMask(c.netMask)){$.Error("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if(c.enableDhcp&&!x.isValidIP(c.dhcpStart)||!x.isValidIP(c.dhcpEnd)||!x.isValidMaskRange(c.lanIp,c.netMask,c.dhcpStart,c.dhcpEnd)){$.Error("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const f=$.Loading("\u6B63\u5728\u914D\u7F6E,\u8BF7\u7A0D\u7B49\u2026");let v=!1;try{const m=yield j.Guide.LanIp.POST(c);if(m.data){const{result:R,success:a,error:t}=m.data;if(t){d.value=t;return}if((a||0)==0){v=!0;return}}}catch(m){d.value=m}v&&(d.value=`\u66F4\u65B0\u6210\u529F,\u8BF7\u8FDB\u5165 ${c.lanIp} \u8DEF\u7531\u5668\u5730\u5740`),f.Close()});return(c,f)=>(C(),M("form",{class:"form-container",onSubmit:Y(y,["prevent"])},[ot,h("div",it,[g(h("input",{type:"text",placeholder:"192.168.100.1","onUpdate:modelValue":f[0]||(f[0]=v=>u.lanIp=v),required:""},null,512),[[k,u.lanIp,void 0,{trim:!0}]])]),at,h("div",ut,[g(h("input",{type:"text",placeholder:"255.255.255.0","onUpdate:modelValue":f[1]||(f[1]=v=>u.netMask=v),required:""},null,512),[[k,u.netMask,void 0,{trim:!0}]])]),lt,h("div",dt,[h("div",ct,[h("label",null,[g(h("input",{type:"radio",value:!1,"onUpdate:modelValue":f[2]||(f[2]=v=>u.enableDhcp=v)},null,512),[[L,u.enableDhcp]]),pt]),h("label",null,[g(h("input",{type:"radio",value:!0,"onUpdate:modelValue":f[3]||(f[3]=v=>u.enableDhcp=v)},null,512),[[L,u.enableDhcp]]),ft])])]),u.enableDhcp?(C(),M(W,{key:0},[ht,h("div",It,[g(h("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":f[4]||(f[4]=v=>u.dhcpStart=v),required:""},null,512),[[k,u.dhcpStart,void 0,{trim:!0}]])]),vt,h("div",wt,[g(h("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":f[5]||(f[5]=v=>u.dhcpEnd=v),required:""},null,512),[[k,u.dhcpEnd,void 0,{trim:!0}]])])],64)):O("",!0),h("div",mt,[h("button",{class:"sumbit",disabled:w.value},"\u4FDD\u5B58",8,Pt)]),d.value?(C(),M("div",yt,[h("span",null,X(d.value),1)])):O("",!0)],40,st))})}});export{xt as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.10bc31f0.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.d2d88129.js similarity index 98% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.10bc31f0.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.d2d88129.js index 80f2dbe41..0096a666b 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.10bc31f0.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.d2d88129.js @@ -1 +1 @@ -var C=Object.defineProperty;var F=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var v=(l,t,u)=>t in l?C(l,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[t]=u,b=(l,t)=>{for(var u in t||(t={}))f.call(t,u)&&v(l,u,t[u]);if(F)for(var u of F(t))A.call(t,u)&&v(l,u,t[u]);return l};var E=(l,t,u)=>new Promise((r,d)=>{var c=n=>{try{a(u.next(n))}catch(o){d(o)}},s=n=>{try{a(u.throw(n))}catch(o){d(o)}},a=n=>n.done?r(n.value):Promise.resolve(n.value).then(c,s);a((u=u.apply(l,t)).next())});import{d as y,s as m,j as x,o as D,c as _,a as e,x as i,z as p,y as B,l as V,m as g,A as I,G as w,B as h,T as S,C as k}from"./index.js?v=acacf0dc";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=h("\u5173\u95ED"),J=h("\u542F\u7528"),K={class:"label-btns"},Q=["disabled"],W={key:0,class:"label-msg"},Z=y({__name:"index",setup(l){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),s=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}s.Close()});return(c,s)=>(D(),_("form",{class:"form-container",onSubmit:I(d,["prevent"])},[N,e("div",P,[i(e("input",{type:"text",placeholder:"ip\u5730\u5740","onUpdate:modelValue":s[0]||(s[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":s[1]||(s[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":s[2]||(s[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":s[3]||(s[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":s[4]||(s[4]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),O]),e("label",null,[i(e("input",{type:"radio",value:!0,"onUpdate:modelValue":s[5]||(s[5]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),J])])]),e("div",K,[e("button",{class:"sumbit",disabled:r.value},"\u4FDD\u5B58",8,Q)]),t.value?(D(),_("div",W,[e("span",null,V(t.value),1)])):g("",!0)],40,M))}});export{Z as default}; +var C=Object.defineProperty;var F=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var v=(l,t,u)=>t in l?C(l,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[t]=u,b=(l,t)=>{for(var u in t||(t={}))f.call(t,u)&&v(l,u,t[u]);if(F)for(var u of F(t))A.call(t,u)&&v(l,u,t[u]);return l};var E=(l,t,u)=>new Promise((r,d)=>{var c=n=>{try{a(u.next(n))}catch(o){d(o)}},s=n=>{try{a(u.throw(n))}catch(o){d(o)}},a=n=>n.done?r(n.value):Promise.resolve(n.value).then(c,s);a((u=u.apply(l,t)).next())});import{d as y,s as m,j as x,o as D,c as _,a as e,x as i,z as p,y as B,l as V,m as g,A as I,G as w,B as h,T as S,C as k}from"./index.js?v=c677ea9f";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=h("\u5173\u95ED"),J=h("\u542F\u7528"),K={class:"label-btns"},Q=["disabled"],W={key:0,class:"label-msg"},Z=y({__name:"index",setup(l){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),s=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}s.Close()});return(c,s)=>(D(),_("form",{class:"form-container",onSubmit:I(d,["prevent"])},[N,e("div",P,[i(e("input",{type:"text",placeholder:"ip\u5730\u5740","onUpdate:modelValue":s[0]||(s[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":s[1]||(s[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":s[2]||(s[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":s[3]||(s[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":s[4]||(s[4]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),O]),e("label",null,[i(e("input",{type:"radio",value:!0,"onUpdate:modelValue":s[5]||(s[5]=a=>u.enableDhcp=a)},null,512),[[B,u.enableDhcp]]),J])])]),e("div",K,[e("button",{class:"sumbit",disabled:r.value},"\u4FDD\u5B58",8,Q)]),t.value?(D(),_("div",W,[e("span",null,V(t.value),1)])):g("",!0)],40,M))}});export{Z as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.adae7c07.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.df73a910.js similarity index 97% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.adae7c07.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.df73a910.js index 88f977329..494657961 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.adae7c07.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.df73a910.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 x,z as I,m as g,l as B,A as k,C as y,T as w}from"./index.js?v=acacf0dc";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"},z={class:"label-btns"},L=["disabled"],O={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(x,{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",z,[n("button",{class:"sumbit",disabled:i.value},"\u4FDD\u5B58",8,L)]),l.value?(p(),D("div",O,[n("span",null,B(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 x,z as I,m as g,l as B,A as k,C as y,T as w}from"./index.js?v=c677ea9f";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"},z={class:"label-btns"},L=["disabled"],O={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(x,{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",z,[n("button",{class:"sumbit",disabled:i.value},"\u4FDD\u5B58",8,L)]),l.value?(p(),D("div",O,[n("span",null,B(l.value),1)])):g("",!0)],40,C))})}});export{K as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.f1e97b90.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.e130b576.js similarity index 89% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.f1e97b90.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.e130b576.js index 20d44a1dd..0e80253dd 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.f1e97b90.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.e130b576.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=acacf0dc";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=c677ea9f";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/luci-app-istorex/htdocs/luci-static/istorex/chunk.54fdad8b.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.f9667c99.js similarity index 98% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.54fdad8b.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.f9667c99.js index aaa3a8989..fb0402efa 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.54fdad8b.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.f9667c99.js @@ -1 +1 @@ -var v=(r,D,l)=>new Promise((n,d)=>{var h=i=>{try{_(l.next(i))}catch(c){d(c)}},k=i=>{try{_(l.throw(i))}catch(c){d(c)}},_=i=>i.done?n(i.value):Promise.resolve(i.value).then(h,k);_((l=l.apply(r,D)).next())});import{_ as y,d as E,j as x,v as A,i as f,o as a,c as u,a as e,g as o,l as p,F as S,K as B,L as b,p as N,q as w,C as $}from"./index.js?v=acacf0dc";const F=r=>(N("data-v-613b66e3"),r=r(),w(),r),I={id:"page",class:"page-container"},P=F(()=>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)),T={class:"text-container"},O={class:"text-container_item"},q=F(()=>e("div",{class:"text-container_item_title"},[e("span",null,"DDNSTO\uFF1A")],-1)),G={class:"text-container_item_flex"},j={class:"text-container_item_block"},K=["href"],L={key:0,class:"domain"},V={key:1,class:"domain"},z={class:"text-container_item"},H=F(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv4\uFF1A")],-1)),J={class:"text-container_item_flex"},M={class:"text-container_item_block"},Q=["href"],R={key:1,class:"domain"},U={class:"text-container_item"},W=F(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv6\uFF1A")],-1)),X={class:"text-container_item_flex"},Y={class:"text-container_item_block"},Z=["href"],tt={key:1,class:"domain"},et=E({__name:"index",setup(r){return v(this,null,function*(){let D,l;x({ipv4:"",ipv6:""});const n=x({ddnstoDomain:"",ipv4Domain:"",ipv6Domain:""}),d=x({install:!0,error:null}),h=()=>v(this,null,function*(){yield Promise.all([k()])}),k=()=>v(this,null,function*(){try{const t=yield $.Guide.Ddns.GET(),{result:s,error:m}=t.data;if(m)throw m;s&&(n.ddnstoDomain=s.ddnstoDomain,n.ipv4Domain=s.ipv4Domain,n.ipv6Domain=s.ipv6Domain)}catch(t){console.log(t)}});[D,l]=A(()=>h()),yield D,l();const _=f(()=>n.ddnstoDomain),i=f(()=>{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}}),c=f(()=>{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}}),g=()=>{B({domain:_.value,callback:t=>{}})},C=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)=>(a(),u("div",I,[P,e("div",T,[e("div",O,[q,e("div",G,[e("div",j,[d.install?(a(),u("a",{key:0,href:o(_),target:"_blank",class:"domain"},p(o(_)),9,K)):(a(),u(S,{key:1},[d.error?(a(),u("a",L,p(d.error),1)):(a(),u("a",V,"\u672A\u5B89\u88C5"))],64)),e("a",{class:"setting",onClick:s[0]||(s[0]=m=>g())},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",z,[H,e("div",J,[e("div",M,[o(i).ok?(a(),u("a",{key:0,href:o(i).url,target:"_blank",class:"domain"},p(o(i).title),9,Q)):(a(),u("a",R,p(o(i).title),1)),e("a",{class:"setting",onClick:s[1]||(s[1]=m=>C("ipv4"))},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",U,[W,e("div",X,[e("div",Y,[o(c).ok?(a(),u("a",{key:0,href:o(c).url,target:"_blank",class:"domain"},p(o(c).title),9,Z)):(a(),u("a",tt,p(o(c).title),1)),e("a",{class:"setting",onClick:s[2]||(s[2]=m=>C("ipv6"))},"\u5FEB\u901F\u914D\u7F6E")])])])])]))})}});var nt=y(et,[["__scopeId","data-v-613b66e3"]]);export{nt as default}; +var v=(r,D,l)=>new Promise((n,d)=>{var h=i=>{try{_(l.next(i))}catch(c){d(c)}},k=i=>{try{_(l.throw(i))}catch(c){d(c)}},_=i=>i.done?n(i.value):Promise.resolve(i.value).then(h,k);_((l=l.apply(r,D)).next())});import{_ as y,d as E,j as x,v as A,i as f,o as a,c as u,a as e,g as o,l as p,F as S,K as B,L as b,p as N,q as w,C as $}from"./index.js?v=c677ea9f";const F=r=>(N("data-v-613b66e3"),r=r(),w(),r),I={id:"page",class:"page-container"},P=F(()=>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)),T={class:"text-container"},O={class:"text-container_item"},q=F(()=>e("div",{class:"text-container_item_title"},[e("span",null,"DDNSTO\uFF1A")],-1)),G={class:"text-container_item_flex"},j={class:"text-container_item_block"},K=["href"],L={key:0,class:"domain"},V={key:1,class:"domain"},z={class:"text-container_item"},H=F(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv4\uFF1A")],-1)),J={class:"text-container_item_flex"},M={class:"text-container_item_block"},Q=["href"],R={key:1,class:"domain"},U={class:"text-container_item"},W=F(()=>e("div",{class:"text-container_item_title"},[e("span",null,"myddns_ipv6\uFF1A")],-1)),X={class:"text-container_item_flex"},Y={class:"text-container_item_block"},Z=["href"],tt={key:1,class:"domain"},et=E({__name:"index",setup(r){return v(this,null,function*(){let D,l;x({ipv4:"",ipv6:""});const n=x({ddnstoDomain:"",ipv4Domain:"",ipv6Domain:""}),d=x({install:!0,error:null}),h=()=>v(this,null,function*(){yield Promise.all([k()])}),k=()=>v(this,null,function*(){try{const t=yield $.Guide.Ddns.GET(),{result:s,error:m}=t.data;if(m)throw m;s&&(n.ddnstoDomain=s.ddnstoDomain,n.ipv4Domain=s.ipv4Domain,n.ipv6Domain=s.ipv6Domain)}catch(t){console.log(t)}});[D,l]=A(()=>h()),yield D,l();const _=f(()=>n.ddnstoDomain),i=f(()=>{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}}),c=f(()=>{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}}),g=()=>{B({domain:_.value,callback:t=>{}})},C=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)=>(a(),u("div",I,[P,e("div",T,[e("div",O,[q,e("div",G,[e("div",j,[d.install?(a(),u("a",{key:0,href:o(_),target:"_blank",class:"domain"},p(o(_)),9,K)):(a(),u(S,{key:1},[d.error?(a(),u("a",L,p(d.error),1)):(a(),u("a",V,"\u672A\u5B89\u88C5"))],64)),e("a",{class:"setting",onClick:s[0]||(s[0]=m=>g())},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",z,[H,e("div",J,[e("div",M,[o(i).ok?(a(),u("a",{key:0,href:o(i).url,target:"_blank",class:"domain"},p(o(i).title),9,Q)):(a(),u("a",R,p(o(i).title),1)),e("a",{class:"setting",onClick:s[1]||(s[1]=m=>C("ipv4"))},"\u5FEB\u901F\u914D\u7F6E")])])]),e("div",U,[W,e("div",X,[e("div",Y,[o(c).ok?(a(),u("a",{key:0,href:o(c).url,target:"_blank",class:"domain"},p(o(c).title),9,Z)):(a(),u("a",tt,p(o(c).title),1)),e("a",{class:"setting",onClick:s[2]||(s[2]=m=>C("ipv6"))},"\u5FEB\u901F\u914D\u7F6E")])])])])]))})}});var nt=y(et,[["__scopeId","data-v-613b66e3"]]);export{nt as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/chunk.73347c1a.js b/luci-app-istorex/htdocs/luci-static/istorex/chunk.fc4df3ed.js similarity index 90% rename from luci-app-istorex/htdocs/luci-static/istorex/chunk.73347c1a.js rename to luci-app-istorex/htdocs/luci-static/istorex/chunk.fc4df3ed.js index 554a7a1a1..29c383831 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/chunk.73347c1a.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/chunk.fc4df3ed.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,g as h,l as s}from"./index.js?v=acacf0dc";const p={class:"ul-container"},m={class:"ul-container_body"},v={class:"page-table"},f=t("colgroup",null,[t("col"),t("col"),t("col"),t("col")],-1),g=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),x=t("th",null,null,-1),F=c({__name:"index",setup(y){const o=u(),a=r(()=>o.device.devices);return d(),(B,k)=>(l(),e("main",null,[t("ul",p,[t("div",m,[t("table",v,[f,g,t("tbody",null,[(l(!0),e(_,null,i(h(a),n=>(l(),e("tr",null,[t("th",null,s(n.mac),1),t("th",null,s(n.ipv4addr),1),b,x]))),256))])])])])]))}});export{F 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,g as h,l as s}from"./index.js?v=c677ea9f";const p={class:"ul-container"},m={class:"ul-container_body"},v={class:"page-table"},f=t("colgroup",null,[t("col"),t("col"),t("col"),t("col")],-1),g=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),x=t("th",null,null,-1),F=c({__name:"index",setup(y){const o=u(),a=r(()=>o.device.devices);return d(),(B,k)=>(l(),e("main",null,[t("ul",p,[t("div",m,[t("table",v,[f,g,t("tbody",null,[(l(!0),e(_,null,i(h(a),n=>(l(),e("tr",null,[t("th",null,s(n.mac),1),t("th",null,s(n.ipv4addr),1),b,x]))),256))])])])])]))}});export{F as default}; diff --git a/luci-app-istorex/htdocs/luci-static/istorex/index.js b/luci-app-istorex/htdocs/luci-static/istorex/index.js index 2d27bb156..1407c7456 100644 --- a/luci-app-istorex/htdocs/luci-static/istorex/index.js +++ b/luci-app-istorex/htdocs/luci-static/istorex/index.js @@ -15,4 +15,4 @@ R.version="2.29.4";U3(Le);R.fn=O;R.min=T0;R.max=O0;R.now=$0;R.utc=Qt;R.unix=oh;R * vue-router v4.1.5 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const ds=typeof window!="undefined";function E5(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Te=Object.assign;function Io(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ht(r)?r.map(e):e(r)}return n}const Xs=()=>{},Ht=Array.isArray,S5=/\/$/,F5=e=>e.replace(S5,"");function Ro(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),r=e(o)),a>-1&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=T5(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function C5(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _l(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function D5(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ss(t.matched[s],n.matched[r])&&Hc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x5(e[n],t[n]))return!1;return!0}function x5(e,t){return Ht(e)?ml(e,t):Ht(t)?ml(t,e):e===t}function ml(e,t){return Ht(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function T5(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var fr;(function(e){e.pop="pop",e.push="push"})(fr||(fr={}));var er;(function(e){e.back="back",e.forward="forward",e.unknown=""})(er||(er={}));function O5(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),F5(e)}const $5=/^[^#]+#/;function M5(e,t){return e.replace($5,"#")+t}function P5(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 bo=()=>({left:window.pageXOffset,top:window.pageYOffset});function A5(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=P5(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 gl(e,t){return(history.state?history.state.position-t:-1)+e}const fi=new Map;function I5(e,t){fi.set(e,t)}function R5(e){const t=fi.get(e);return fi.delete(e),t}let B5=()=>location.protocol+"//"+location.host;function Uc(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let a=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),_l(l,"")}return _l(n,e)+s+r}function N5(e,t,n,s){let r=[],o=[],i=null;const a=({state:h})=>{const g=Uc(e,location),v=n.value,S=t.value;let b=0;if(h){if(n.value=g,t.value=h,i&&i===v){i=null;return}b=S?h.position-S.position:0}else s(g);r.forEach(F=>{F(n.value,v,{delta:b,type:fr.pop,direction:b?b>0?er.forward:er.back:er.unknown})})};function l(){i=n.value}function u(h){r.push(h);const g=()=>{const v=r.indexOf(h);v>-1&&r.splice(v,1)};return o.push(g),g}function d(){const{history:h}=window;!h.state||h.replaceState(Te({},h.state,{scroll:bo()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:u,destroy:f}}function vl(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?bo():null}}function L5(e){const{history:t,location:n}=window,s={value:Uc(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:B5()+e+l;try{t[d?"replaceState":"pushState"](u,"",h),r.value=u}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function i(l,u){const d=Te({},t.state,vl(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});o(l,d,!0),s.value=l}function a(l,u){const d=Te({},r.value,t.state,{forward:l,scroll:bo()});o(d.current,d,!0);const f=Te({},vl(s.value,l,null),{position:d.position+1},u);o(l,f,!1),s.value=l}return{location:s,state:r,push:a,replace:i}}function zc(e){e=O5(e);const t=L5(e),n=N5(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Te({location:"",base:e,go:s,createHref:M5.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 Y5(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),zc(e)}function H5(e){return typeof e=="string"||e&&typeof e=="object"}function Wc(e){return typeof e=="string"||typeof e=="symbol"}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Vc=Symbol("");var yl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(yl||(yl={}));function Fs(e,t){return Te(new Error,{type:e,[Vc]:!0},t)}function nn(e,t){return e instanceof Error&&Vc in e&&(t==null||!!(e.type&t))}const wl="[^/]+?",U5={sensitive:!1,strict:!1,start:!0,end:!0},z5=/[.+*?^${}()[\]/\\]/g;function W5(e,t){const n=Te({},U5,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function j5(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const G5={type:0,value:""},q5=/[a-zA-Z0-9_]/;function K5(e){if(!e)return[[]];if(e==="/")return[[G5]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,l,u="",d="";function f(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a{i(k)}:Xs}function i(d){if(Wc(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){let f=0;for(;f=0&&(d.record.path!==n[f].record.path||!jc(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!El(d)&&s.set(d.record.name,d)}function u(d,f){let h,g={},v,S;if("name"in d&&d.name){if(h=s.get(d.name),!h)throw Fs(1,{location:d});S=h.record.name,g=Te(kl(f.params,h.keys.filter(k=>!k.optional).map(k=>k.name)),d.params&&kl(d.params,h.keys.map(k=>k.name))),v=h.stringify(g)}else if("path"in d)v=d.path,h=n.find(k=>k.re.test(v)),h&&(g=h.parse(v),S=h.record.name);else{if(h=f.name?s.get(f.name):n.find(k=>k.re.test(f.path)),!h)throw Fs(1,{location:d,currentLocation:f});S=h.record.name,g=Te({},f.params,d.params),v=h.stringify(g)}const b=[];let F=h;for(;F;)b.unshift(F.record),F=F.parent;return{name:S,path:v,params:g,matched:b,meta:e7(b)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:r}}function kl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Q5(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:X5(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 X5(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=="boolean"?n:n[s];return t}function El(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function e7(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function Sl(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function jc(e,t){return t.children.some(n=>n===e||jc(e,n))}const Gc=/#/g,t7=/&/g,n7=/\//g,s7=/=/g,r7=/\?/g,qc=/\+/g,o7=/%5B/g,i7=/%5D/g,Kc=/%5E/g,a7=/%60/g,Jc=/%7B/g,l7=/%7C/g,Zc=/%7D/g,u7=/%20/g;function ua(e){return encodeURI(""+e).replace(l7,"|").replace(o7,"[").replace(i7,"]")}function c7(e){return ua(e).replace(Jc,"{").replace(Zc,"}").replace(Kc,"^")}function hi(e){return ua(e).replace(qc,"%2B").replace(u7,"+").replace(Gc,"%23").replace(t7,"%26").replace(a7,"`").replace(Jc,"{").replace(Zc,"}").replace(Kc,"^")}function d7(e){return hi(e).replace(s7,"%3D")}function f7(e){return ua(e).replace(Gc,"%23").replace(r7,"%3F")}function h7(e){return e==null?"":f7(e).replace(n7,"%2F")}function Gr(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function p7(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&hi(o)):[s&&hi(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function _7(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ht(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const m7=Symbol(""),Cl=Symbol(""),ko=Symbol(""),Qc=Symbol(""),pi=Symbol("");function Hs(){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,reset:n}}function kn(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(Fs(4,{from:n,to:t})):f instanceof Error?a(f):H5(f)?a(Fs(2,{from:t,to:f})):(o&&s.enterCallbacks[r]===o&&typeof f=="function"&&o.push(f),i())},u=e.call(s&&s.instances[r],t,n,l);let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(f=>a(f))})}function Bo(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(g7(a)){const u=(a.__vccOpts||a)[t];u&&r.push(kn(u,n,s,o,i))}else{let l=a();r.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=E5(u)?u.default:u;o.components[i]=d;const h=(d.__vccOpts||d)[t];return h&&kn(h,n,s,o,i)()}))}}return r}function g7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dl(e){const t=ae(ko),n=ae(Qc),s=be(()=>t.resolve(x(e.to))),r=be(()=>{const{matched:l}=s.value,{length:u}=l,d=l[u-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(Ss.bind(null,d));if(h>-1)return h;const g=xl(l[u-2]);return u>1&&xl(d)===g&&f[f.length-1].path!==g?f.findIndex(Ss.bind(null,l[u-2])):h}),o=be(()=>r.value>-1&&b7(n.params,s.value.params)),i=be(()=>r.value>-1&&r.value===n.matched.length-1&&Hc(n.params,s.value.params));function a(l={}){return w7(l)?t[x(e.replace)?"replace":"push"](x(e.to)).catch(Xs):Promise.resolve()}return{route:s,href:be(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}const v7=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:Dl,setup(e,{slots:t}){const n=_t(Dl(e)),{options:s}=ae(ko),r=be(()=>({[Tl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Tl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Bi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),y7=v7;function w7(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 b7(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(!Ht(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function xl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tl=(e,t,n)=>e!=null?e:t!=null?t:n,k7=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ae(pi),r=be(()=>e.route||s.value),o=ae(Cl,0),i=be(()=>{let u=x(o);const{matched:d}=r.value;let f;for(;(f=d[u])&&!f.components;)u++;return u}),a=be(()=>r.value.matched[i.value]);ht(Cl,be(()=>i.value+1)),ht(m7,a),ht(pi,r);const l=ke();return js(()=>[l.value,a.value,e.name],([u,d,f],[h,g,v])=>{d&&(d.instances[f]=u,g&&g!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),u&&d&&(!g||!Ss(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(S=>S(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,f=a.value,h=f&&f.components[d];if(!h)return Ol(n.default,{Component:h,route:u});const g=f.props[d],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=Bi(h,Te({},v,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(f.instances[d]=null)},ref:l}));return Ol(n.default,{Component:b,route:u})||b}}});function Ol(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const E7=k7;function S7(e){const t=Z5(e.routes,e),n=e.parseQuery||p7,s=e.stringifyQuery||Fl,r=e.history,o=Hs(),i=Hs(),a=Hs(),l=Q1(yn);let u=yn;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Io.bind(null,E=>""+E),f=Io.bind(null,h7),h=Io.bind(null,Gr);function g(E,z){let I,G;return Wc(E)?(I=t.getRecordMatcher(E),G=z):G=E,t.addRoute(G,I)}function v(E){const z=t.getRecordMatcher(E);z&&t.removeRoute(z)}function S(){return t.getRoutes().map(E=>E.record)}function b(E){return!!t.getRecordMatcher(E)}function F(E,z){if(z=Te({},z||l.value),typeof E=="string"){const re=Ro(n,E,z.path),p=t.resolve({path:re.path},z),_=r.createHref(re.fullPath);return Te(re,p,{params:h(p.params),hash:Gr(re.hash),redirectedFrom:void 0,href:_})}let I;if("path"in E)I=Te({},E,{path:Ro(n,E.path,z.path).path});else{const re=Te({},E.params);for(const p in re)re[p]==null&&delete re[p];I=Te({},E,{params:f(E.params)}),z.params=f(z.params)}const G=t.resolve(I,z),xe=E.hash||"";G.params=d(h(G.params));const Be=C5(s,Te({},E,{hash:c7(xe),path:G.path})),pe=r.createHref(Be);return Te({fullPath:Be,hash:xe,query:s===Fl?_7(E.query):E.query||{}},G,{redirectedFrom:void 0,href:pe})}function k(E){return typeof E=="string"?Ro(n,E,l.value.path):Te({},E)}function $(E,z){if(u!==E)return Fs(8,{from:z,to:E})}function V(E){return ee(E)}function j(E){return V(Te(k(E),{replace:!0}))}function fe(E){const z=E.matched[E.matched.length-1];if(z&&z.redirect){const{redirect:I}=z;let G=typeof I=="function"?I(E):I;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=k(G):{path:G},G.params={}),Te({query:E.query,hash:E.hash,params:"path"in G?{}:E.params},G)}}function ee(E,z){const I=u=F(E),G=l.value,xe=E.state,Be=E.force,pe=E.replace===!0,re=fe(I);if(re)return ee(Te(k(re),{state:typeof re=="object"?Te({},xe,re.state):xe,force:Be,replace:pe}),z||I);const p=I;p.redirectedFrom=z;let _;return!Be&&D5(s,G,I)&&(_=Fs(16,{to:p,from:G}),ns(G,G,!0,!1)),(_?Promise.resolve(_):te(p,G)).catch(y=>nn(y)?nn(y,2)?y:gt(y):Re(y,p,G)).then(y=>{if(y){if(nn(y,2))return ee(Te({replace:pe},k(y.to),{state:typeof y.to=="object"?Te({},xe,y.to.state):xe,force:Be}),z||p)}else y=me(p,G,!0,pe,xe);return he(p,G,y),y})}function B(E,z){const I=$(E,z);return I?Promise.reject(I):Promise.resolve()}function te(E,z){let I;const[G,xe,Be]=F7(E,z);I=Bo(G.reverse(),"beforeRouteLeave",E,z);for(const re of G)re.leaveGuards.forEach(p=>{I.push(kn(p,E,z))});const pe=B.bind(null,E,z);return I.push(pe),is(I).then(()=>{I=[];for(const re of o.list())I.push(kn(re,E,z));return I.push(pe),is(I)}).then(()=>{I=Bo(xe,"beforeRouteUpdate",E,z);for(const re of xe)re.updateGuards.forEach(p=>{I.push(kn(p,E,z))});return I.push(pe),is(I)}).then(()=>{I=[];for(const re of E.matched)if(re.beforeEnter&&!z.matched.includes(re))if(Ht(re.beforeEnter))for(const p of re.beforeEnter)I.push(kn(p,E,z));else I.push(kn(re.beforeEnter,E,z));return I.push(pe),is(I)}).then(()=>(E.matched.forEach(re=>re.enterCallbacks={}),I=Bo(Be,"beforeRouteEnter",E,z),I.push(pe),is(I))).then(()=>{I=[];for(const re of i.list())I.push(kn(re,E,z));return I.push(pe),is(I)}).catch(re=>nn(re,8)?re:Promise.reject(re))}function he(E,z,I){for(const G of a.list())G(E,z,I)}function me(E,z,I,G,xe){const Be=$(E,z);if(Be)return Be;const pe=z===yn,re=ds?history.state:{};I&&(G||pe?r.replace(E.fullPath,Te({scroll:pe&&re&&re.scroll},xe)):r.push(E.fullPath,xe)),l.value=E,ns(E,z,I,pe),gt()}let Y;function De(){Y||(Y=r.listen((E,z,I)=>{if(!Is.listening)return;const G=F(E),xe=fe(G);if(xe){ee(Te(xe,{replace:!0}),G).catch(Xs);return}u=G;const Be=l.value;ds&&I5(gl(Be.fullPath,I.delta),bo()),te(G,Be).catch(pe=>nn(pe,12)?pe:nn(pe,2)?(ee(pe.to,G).then(re=>{nn(re,20)&&!I.delta&&I.type===fr.pop&&r.go(-1,!1)}).catch(Xs),Promise.reject()):(I.delta&&r.go(-I.delta,!1),Re(pe,G,Be))).then(pe=>{pe=pe||me(G,Be,!1),pe&&(I.delta&&!nn(pe,8)?r.go(-I.delta,!1):I.type===fr.pop&&nn(pe,20)&&r.go(-1,!1)),he(G,Be,pe)}).catch(Xs)}))}let Ie=Hs(),Ve=Hs(),je;function Re(E,z,I){gt(E);const G=Ve.list();return G.length?G.forEach(xe=>xe(E,z,I)):console.error(E),Promise.reject(E)}function $e(){return je&&l.value!==yn?Promise.resolve():new Promise((E,z)=>{Ie.add([E,z])})}function gt(E){return je||(je=!E,De(),Ie.list().forEach(([z,I])=>E?I(E):z()),Ie.reset()),E}function ns(E,z,I,G){const{scrollBehavior:xe}=e;if(!ds||!xe)return Promise.resolve();const Be=!I&&R5(gl(E.fullPath,0))||(G||!I)&&history.state&&history.state.scroll||null;return Ti().then(()=>xe(E,z,Be)).then(pe=>pe&&A5(pe)).catch(pe=>Re(pe,E,z))}const en=E=>r.go(E);let zt;const Ct=new Set,Is={currentRoute:l,listening:!0,addRoute:g,removeRoute:v,hasRoute:b,getRoutes:S,resolve:F,options:e,push:V,replace:j,go:en,back:()=>en(-1),forward:()=>en(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:Ve.add,isReady:$e,install(E){const z=this;E.component("RouterLink",y7),E.component("RouterView",E7),E.config.globalProperties.$router=z,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>x(l)}),ds&&!zt&&l.value===yn&&(zt=!0,V(r.location).catch(xe=>{}));const I={};for(const xe in yn)I[xe]=be(()=>l.value[xe]);E.provide(ko,z),E.provide(Qc,_t(I)),E.provide(pi,l);const G=E.unmount;Ct.add(E),E.unmount=function(){Ct.delete(E),Ct.size<1&&(u=yn,Y&&Y(),Y=null,l.value=yn,zt=!1,je=!1),G()}}};return Is}function is(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function F7(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iSs(u,a))?s.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>Ss(u,l))||r.push(l))}return[n,s,r]}function C7(){return ae(ko)}const D7={};function x7(e,t){const n=it("router-view");return m(),ve(n)}var T7=X(D7,[["render",x7]]);const O7="modulepreload",$l={},$7="/",He=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${$7}${s}`,s in $l)return;$l[s]=!0;const r=s.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${o}`))return;const i=document.createElement("link");if(i.rel=r?"stylesheet":O7,r||(i.as="script",i.crossOrigin=""),i.href=s,document.head.appendChild(i),r)return new Promise((a,l)=>{i.addEventListener("load",a),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};var M7={name:"PageRouter",path:"/router",component:()=>He(()=>import("./chunk.adc546bf.js"),["luci-static/istorex/chunk.adc546bf.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageRouterHome",redirect:"/router/index"},{path:"index",name:"PageRouterIndex",component:()=>He(()=>import("./chunk.bcb5ce7b.js"),["luci-static/istorex/chunk.bcb5ce7b.js","luci-static/istorex/index.js"])},{path:"network",name:"PageNetwork",component:()=>He(()=>import("./chunk.4eda5585.js"),["luci-static/istorex/chunk.4eda5585.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageNetworkIndex",component:()=>He(()=>import("./chunk.d8791a1c.js"),["luci-static/istorex/chunk.d8791a1c.js","luci-static/istorex/index.js"])},{path:"pppoe",component:()=>He(()=>import("./chunk.449269e9.js"),["luci-static/istorex/chunk.449269e9.js","luci-static/istorex/index.js"])},{path:"dhcp",component:()=>He(()=>import("./chunk.902c558f.js"),["luci-static/istorex/chunk.902c558f.js","luci-static/istorex/index.js"])},{path:"gateway",component:()=>He(()=>import("./chunk.10bc31f0.js"),["luci-static/istorex/chunk.10bc31f0.js","luci-static/istorex/index.js"])},{path:"intranet",component:()=>He(()=>import("./chunk.c2ecd3a3.js"),["luci-static/istorex/chunk.c2ecd3a3.js","luci-static/istorex/index.js"])},{path:"dns",component:()=>He(()=>import("./chunk.adae7c07.js"),["luci-static/istorex/chunk.adae7c07.js","luci-static/istorex/index.js"])}]},{path:"setting",name:"PageSetting",component:()=>He(()=>import("./chunk.3c914d61.js"),["luci-static/istorex/chunk.3c914d61.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageSettingIndex",component:()=>He(()=>import("./chunk.e85bc568.js"),["luci-static/istorex/chunk.e85bc568.js","luci-static/istorex/index.js"])},{path:"opkg",name:"SettingOpkg",component:()=>He(()=>import("./chunk.d5918750.js"),["luci-static/istorex/chunk.d5918750.js","luci-static/istorex/index.js"])},{path:"sandbox",component:()=>He(()=>import("./chunk.46689331.js"),["luci-static/istorex/chunk.46689331.js","luci-static/istorex/index.js"])},{path:"remotely",component:()=>He(()=>import("./chunk.03d6f2b6.js"),["luci-static/istorex/chunk.03d6f2b6.js","luci-static/istorex/index.js"])}]},{path:"disk",component:()=>He(()=>import("./chunk.f1e97b90.js"),["luci-static/istorex/chunk.f1e97b90.js","luci-static/istorex/index.js"]),children:[{path:"",component:()=>He(()=>import("./chunk.51abe803.js"),["luci-static/istorex/chunk.51abe803.js","luci-static/istorex/index.js"])}]},{path:"istore",component:()=>He(()=>import("./chunk.d0a0fbaa.js"),["luci-static/istorex/chunk.d0a0fbaa.js","luci-static/istorex/index.js"])},{path:"device",component:()=>He(()=>import("./chunk.23136adc.js"),["luci-static/istorex/chunk.23136adc.js","luci-static/istorex/index.js"]),children:[{path:"list",component:()=>He(()=>import("./chunk.73347c1a.js"),["luci-static/istorex/chunk.73347c1a.js","luci-static/istorex/index.js"])},{path:"interface",component:()=>He(()=>import("./chunk.33ac1cfd.js"),["luci-static/istorex/chunk.33ac1cfd.js","luci-static/istorex/index.js"])}]},{name:"DDNSPage",path:"ddns",component:()=>He(()=>import("./chunk.54fdad8b.js"),["luci-static/istorex/chunk.54fdad8b.js","luci-static/istorex/index.js"])},{path:":pathMatch(.*)*",name:"notfound",redirect:"/router/index"}]},P7={name:"PageWizard",path:"/wizard",component:()=>He(()=>import("./chunk.dda41600.js"),["luci-static/istorex/chunk.dda41600.js","luci-static/istorex/index.js"])},A7={name:"PageNas",path:"/nas",component:()=>He(()=>import("./chunk.71f3cce9.js"),["luci-static/istorex/chunk.71f3cce9.js","luci-static/istorex/index.js"]),children:[{name:"PageNasIndex",path:"",component:()=>He(()=>import("./chunk.15cf2303.js"),["luci-static/istorex/chunk.15cf2303.js","luci-static/istorex/index.js"])}]};const I7=S7({history:window.path_base?zc(window.path_base):Y5(),routes:[{path:"/",name:"PageIndex",component:T7,beforeEnter(e,t,n){return q(this,null,function*(){switch(Je.getModel()){case"nas":n({name:"PageNasIndex"});break;case"router":n({name:"PageRouterHome"});break;default:n({name:"PageWizard"});break}})}},P7,M7,A7,{path:"/:pathMatch(.*)*",name:"notfound",redirect:e=>{switch(console.log("redirec:",e),Je.getModel()){case"nas":return"/nas";case"router":return"/router/index";default:return"/wizard"}}}]});const R7={},B7={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"},N7=c("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),L7=c("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),Y7=c("path",{d:"M742.4 204.8l175.274667 362.752h57.941333L805.290667 204.8H742.4z",fill:"#96CAFF","p-id":"2676"},null,-1),H7=c("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),U7=c("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),z7=c("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),W7=[N7,L7,Y7,H7,U7,z7];function V7(e,t){return m(),w("svg",B7,W7)}var j7=X(R7,[["render",V7]]);const G7={},q7={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"},K7=c("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),J7=[K7];function Z7(e,t){return m(),w("svg",q7,J7)}var Q7=X(G7,[["render",Z7]]);const X7={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"},e8=c("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),t8=c("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),n8=c("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),s8=[e8,t8,n8],r8={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"},o8=c("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),i8=[o8],a8=le({__name:"info",props:{type:{type:Number,default:0}},setup(e){return(t,n)=>e.type==0?(m(),w("svg",X7,s8)):e.type==1?(m(),w("svg",r8,i8)):de("",!0)}}),l8={},u8={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"},c8=c("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),d8=[c8];function f8(e,t){return m(),w("svg",u8,d8)}var h8=X(l8,[["render",f8]]);const p8={},_8={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"},m8=c("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),g8=[m8];function v8(e,t){return m(),w("svg",_8,g8)}var y8=X(p8,[["render",v8]]);const w8={},b8={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"},k8=c("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),E8=[k8];function S8(e,t){return m(),w("svg",b8,E8)}var F8=X(w8,[["render",S8]]);const C8={},D8={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"},x8=c("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),T8=[x8];function O8(e,t){return m(),w("svg",D8,T8)}var $8=X(C8,[["render",O8]]);const M8={},P8={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"},A8=c("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),I8=[A8];function R8(e,t){return m(),w("svg",P8,I8)}var B8=X(M8,[["render",R8]]);const N8={},L8={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"},Y8=c("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),H8=[Y8];function U8(e,t){return m(),w("svg",L8,H8)}var z8=X(N8,[["render",U8]]);const W8={},V8={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"},j8=c("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),G8=[j8];function q8(e,t){return m(),w("svg",V8,G8)}var K8=X(W8,[["render",q8]]);const J8={},Z8={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"},Q8=c("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),X8=[Q8];function ep(e,t){return m(),w("svg",Z8,X8)}var tp=X(J8,[["render",ep]]);const np={},sp={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"},rp=c("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),op=c("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),ip=[rp,op];function ap(e,t){return m(),w("svg",sp,ip)}var Xc=X(np,[["render",ap]]);const lp={},up=e=>(et("data-v-70156d34"),e=e(),tt(),e),cp={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"},dp=up(()=>c("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)),fp=[dp];function hp(e,t){return m(),w("svg",cp,fp)}var pp=X(lp,[["render",hp],["__scopeId","data-v-70156d34"]]),_p={install(e){e.component("icon-disk",j7),e.component("icon-nav",Q7),e.component("icon-info",a8),e.component("icon-search",h8),e.component("icon-star-off",F8),e.component("icon-star-on",y8),e.component("icon-left",$8),e.component("icon-right",B8),e.component("icon-top",z8),e.component("icon-bottom",K8),e.component("icon-outlogin",tp),e.component("icon-close",Xc),e.component("icon-loading",pp)}};const mp={class:"toips-container"},gp=["onClick"],vp={key:1},yp=le({__name:"index",setup(e){const t=As(),n=be(()=>t.toips);return(s,r)=>{const o=it("router-link");return m(),w("div",mp,[(m(!0),w(ce,null,nt(x(n),i=>(m(),w("li",{class:"toips-item",onClick:a=>i.f()},[i.path?(m(),ve(o,{key:0,to:i.path},{default:We(()=>[at(U(i.info),1)]),_:2},1032,["to"])):(m(),w("span",vp,U(i.info),1))],8,gp))),256))])}}});var wp=X(yp,[["__scopeId","data-v-d6bd3248"]]);const bp=le({__name:"main",setup(e){const t=As();return(n,s)=>{const r=it("layout-header"),o=it("router-view");return m(),w("div",{id:"main",key:x(t).reloadCount},[Ce(r),Ce(o,null,{default:We(({Component:i,route:a})=>[(m(),ve(lu,null,{default:We(()=>[(m(),ve(Pi(i),{key:a.path}))]),_:2},1024))]),_:1}),Ce(wp)])}}}),kp={id:"page",class:"page-container"},Ep={class:"page-flex"},Sp={class:"page-sidebar"},Fp=["onClick"],Cp={class:"page-main"},Dp=le({__name:"page",props:{menus:{type:Array,required:!0}},setup(e){return(t,n)=>{const s=it("router-link");return m(),w("div",kp,[c("div",Ep,[c("div",Sp,[(m(!0),w(ce,null,nt(e.menus,r=>(m(),w(ce,null,[r.path?(m(),ve(s,{key:0,to:r.path},{default:We(()=>[c("span",null,U(r.title),1)]),_:2},1032,["to"])):de("",!0),r.fn?(m(),w("a",{key:1,onClick:r.fn},[c("span",null,U(r.title),1)],8,Fp)):de("",!0)],64))),256))]),c("div",Cp,[Et(t.$slots,"default")])])])}}}),e1=window.HostName||"iStoreX",xp=(window==null?void 0:window.istoreXVer)||"";var t1={HostName:e1};console.log("".concat(`%c OpenWrt-${e1}_iStoreX v${xp}`),"color: #fadfa3; background: #030307; padding:5px 0;");const n1=e=>(et("data-v-ab2441f8"),e=e(),tt(),e),Tp={class:"logo"},Op=["href"],$p={key:0,class:"nav-item ota-upgrade",target:"_blank",href:"/cgi-bin/luci/admin/system/ota"},Mp=n1(()=>c("span",null,"\u56FA\u4EF6\u66F4\u65B0",-1)),Pp=n1(()=>c("em",null,null,-1)),Ap=[Mp,Pp],Ip=le({__name:"nav",setup(e){As();const t=ke(!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(()=>q(this,null,function*(){try{const r=yield ie.System.CheckUpdate.GET(),{result:o}=r.data;o&&(t.value=o.needUpdate)}catch(r){console.log(r)}}))(),(r,o)=>{const i=it("router-link");return m(),w("nav",null,[c("div",Tp,U(x(t1).HostName),1),(m(!0),w(ce,null,nt(x(n),a=>(m(),w(ce,null,[a.path?(m(),ve(i,{key:0,class:"nav-item",to:a.path},{default:We(()=>[c("span",null,U(a.name),1)]),_:2},1032,["to"])):de("",!0),a.href?(m(),w("a",{key:1,class:"nav-item",target:"_blank",href:a.href},[c("span",null,U(a.name),1)],8,Op)):de("",!0)],64))),256)),t.value?(m(),w("a",$p,Ap)):de("",!0)])}}});var Rp=X(Ip,[["__scopeId","data-v-ab2441f8"]]);const mt=e=>(et("data-v-0003d2de"),e=e(),tt(),e),Bp={class:"tool"},Np=mt(()=>c("div",{class:"tool-item_icon"},[c("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"},[c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("path",{d:"M458.17784421 744.17198816h500.44617993v11.03945938H458.17784421zM637.0540299 847.24644427h142.70078019v24.94771326h-142.70078019z",fill:"#6E6E96","p-id":"18922"}),c("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"}),c("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"}),c("path",{d:"M512.22134677 487.62221103h396.47936426v229.11670432H512.22134677z",fill:"#A2C8F2","p-id":"18925"}),c("path",{d:"M653.79970709 714.00257971l250.40435038-226.38036868v73.11070843l-166.0798938 153.26966025z",fill:"#DEEFFF","p-id":"18926"}),c("path",{d:"M904.20405747 560.73291946l-166.0798938 153.26966025h166.0798938z",fill:"#FFFFFF","p-id":"18927"}),c("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"}),c("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"}),c("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"}),c("path",{d:"M226.97315939 172.01289774h200.35206382v257.6896257H226.97315939z",fill:"#B4D1F2","p-id":"18931"}),c("path",{d:"M236.25578625 429.70252344l191.06246531-191.07640779v64.35791951L300.59976327 429.70252344z",fill:"#DEEFFF","p-id":"18932"}),c("path",{d:"M427.31825156 302.98403516L300.59976327 429.70252344h126.71848829z",fill:"#FFFFFF","p-id":"18933"}),c("path",{d:"M226.97315939 397.73793882h200.34509217v27.88622424H226.97315939z",fill:"#6E6E96","p-id":"18934"}),c("path",{d:"M229.07508402 216.7528585l47.87716085-57.25041835H362.81741532L230.36830723 301.32131867z",fill:"#FFFFFF","p-id":"18935"}),c("path",{d:"M404.10994128 159.50244015L233.14995816 330.45545163l-0.20217535 24.4597044 195.40923047-195.41271588z",fill:"#FFFFFF","p-id":"18936"}),c("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"}),c("path",{d:"M226.97315939 150.84725349h200.34509217v27.88622423H226.97315939z",fill:"#6E6E96","p-id":"18938"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("path",{d:"M173.14577548 601.65595379h329.98814813v222.86670365H173.14577548z",fill:"#8CBDF2","p-id":"18945"}),c("path",{d:"M279.39228913 814.06183752l217.77049649-204.02607348v59.87172381l-144.43321235 144.15434967z",fill:"#DEEFFF","p-id":"18946"}),c("path",{d:"M497.16278562 669.90748785l-144.43321235 144.15434967h144.43321235z",fill:"#FFFFFF","p-id":"18947"}),c("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"}),c("path",{d:"M173.14577548 601.65595379h324.02049637v23.37562739H173.14577548zM104.07159753 899.06602042h469.17177952v16.63761867H104.07159753z",fill:"#6E6E96","p-id":"18949"}),c("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"}),c("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)),Lp={class:"tool-item_name"},Yp=mt(()=>c("span",{class:"t"},null,-1)),Hp={class:"b"},Up={class:"tool-item_icon"},zp={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"}},Wp=mt(()=>c("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)),Vp=mt(()=>c("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)),jp=mt(()=>c("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)),Gp=mt(()=>c("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)),qp=mt(()=>c("path",{d:"M153.6 844.8h68.693333l-25.6 76.8H179.2l-25.6-76.8z",fill:"#96CAFF","p-id":"1419"},null,-1)),Kp=mt(()=>c("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)),Jp=mt(()=>c("path",{d:"M844.8 844.8h68.693333l-25.6 76.8H870.4l-25.6-76.8z",fill:"#96CAFF","p-id":"1421"},null,-1)),Zp=mt(()=>c("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)),Qp=mt(()=>c("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)),Xp=mt(()=>c("path",{d:"M742.4 358.4l187.050667 256.597333h57.941333L805.290667 358.4H742.4z",fill:"#96CAFF","p-id":"1424"},null,-1)),e_=mt(()=>c("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_=mt(()=>c("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)),n_=[Wp,Vp,jp,Gp,qp,Kp,Jp,Zp,Qp,Xp,e_,t_],s_={class:"tool-item_name"},r_={class:"t"},o_={key:0},i_={key:1},a_={key:2},l_={key:4},u_={class:"b"},c_={class:"tool-item"},d_=ef('
',1),f_={class:"tool-item_name"},h_=["href"],p_=le({__name:"tool",setup(e){const t=Je.stampForm;Je.stampForm;const n=Je.byteToSize,s=As(),r=be(()=>s.network),o=be(()=>s.device),i=be(()=>s.updown);return(a,l)=>{const u=it("router-link");return m(),w("div",Bp,[Ce(u,{class:"tool-item",to:"/router/device/list",title:"\u67E5\u770B\u5F53\u524D\u8FDE\u63A5\u8BBE\u5907"},{default:We(()=>[Np,c("div",Lp,[c("span",null,U(x(o).devices.length),1)])]),_:1}),c("em",null,[Yp,c("span",Hp,U(x(t)(x(r).uptimeStamp)),1)]),Ce(u,{class:"tool-item",to:"/router/device/interface",title:"\u67E5\u770B\u5F53\u524D\u63A5\u53E3"},{default:We(()=>{var d;return[c("div",Up,[(m(),w("svg",zp,n_))]),c("div",s_,[c("span",null,U(((d=x(r).defaultInterface)==null?void 0:d.toLocaleUpperCase())||"--"),1)])]}),_:1}),c("em",null,[c("span",r_,[x(r).networkInfo=="netSuccess"?(m(),w("span",o_," \u5DF2\u8054\u7F51 ")):x(r).networkInfo=="dnsFailed"?(m(),w("span",i_," DNS\u9519\u8BEF ")):x(r).networkInfo=="softSourceFailed"?(m(),w("span",a_," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(m(),w("span",l_," \u68C0\u6D4B\u4E2D "))]),c("span",u_," \u4E0A\u4F20: "+U(x(n)(x(i).up))+" \uFF5C \u4E0B\u8F7D: "+U(x(n)(x(i).download)),1)]),c("div",c_,[d_,c("div",f_,[c("a",{href:x(r).ipv4addr},[c("span",null,U(x(r).ipv4addr||"--"),1)],8,h_)])])])}}});var __=X(p_,[["__scopeId","data-v-0003d2de"]]);const m_={class:"header-desktop"},g_=le({__name:"header",setup(e){const t=ke(!1);return C7().afterEach(()=>{t.value=!1}),(s,r)=>(m(),w("header",m_,[Ce(Rp),Ce(__)]))}});var v_=X(g_,[["__scopeId","data-v-5fdbc26a"]]);const y_={};function w_(e,t){const n=it("router-view");return m(),ve(n,{name:"default"},{default:We(({Component:s,route:r})=>[(m(),ve(lu,null,{default:We(()=>[(m(),ve(Pi(s),{key:r.path}))]),fallback:We(()=>[]),_:2},1024))]),_:1})}var b_=X(y_,[["render",w_],["__scopeId","data-v-b888f30a"]]);const k_={};function E_(e,t){return m(),w("section",null,[Et(e.$slots,"default",{},void 0,!0)])}var S_=X(k_,[["render",E_],["__scopeId","data-v-6a6bc058"]]);const F_={class:"section-title"},C_=le({__name:"section-title",props:{title:{type:String,default:""}},setup(e){return(t,n)=>(m(),w("div",F_,[c("span",null,U(e.title),1),Et(t.$slots,"default",{},void 0,!0)]))}});var D_=X(C_,[["__scopeId","data-v-5cb5900e"]]);const x_={},T_={class:"section-container"};function O_(e,t){return m(),w("div",T_,[Et(e.$slots,"default",{},void 0,!0)])}var $_=X(x_,[["render",O_],["__scopeId","data-v-790a0322"]]);const M_={},P_={class:"section-item"};function A_(e,t){return m(),w("div",P_,[Et(e.$slots,"default",{},void 0,!0)])}var I_=X(M_,[["render",A_],["__scopeId","data-v-abe9a852"]]),R_={install(e){e.component("layout-main",bp),e.component("layout-page",Dp),e.component("layout-header",v_),e.component("router-loading",b_),e.component("nas-section",S_),e.component("nas-section-title",D_),e.component("nas-section-container",$_),e.component("nas-section-item",I_)}},ys;class ca{constructor(){wa(this,ys,void 0)}install(t){ba(this,ys,t)}openWindow(t,n){const s=document.createElement("div"),r=Ce(t,So(yt({},n),{close:()=>{Yr(null,s),s.remove()}}));Fo(this,ys)&&(r.appContext=Fo(this,ys)._context),Yr(r,s),document.body.appendChild(s)}}ys=new WeakMap;const B_=["onClick"],N_=le({__name:"index",props:{setup:{type:String,default:"pppoe"}},setup(e){const n=ke(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,o)=>{const i=it("popups-container");return m(),ve(i,{title:"\u529F\u80FD\u7BA1\u7406",transparent:""},{left:We(()=>[(m(),w(ce,null,nt(s,a=>c("li",{class:Kt(["network-menu_item",{on:n.value==a.name}]),onClick:l=>n.value=a.name},[c("span",null,U(a.title),1)],10,B_)),64))]),right:We(()=>[]),_:1})}}});const L_={key:0,id:"app-dialog"},Y_={key:0,class:"app-dialog_bg"},H_={class:"app-dialog_header"},U_={class:"app-dialog_body"},z_=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=ke(!1),r=()=>{n.beforeClose&&n.beforeClose()===!1||(s.value=!1,t("update:modelValue",!1),t("handleClose"))};return Qn(()=>{s.value=!0}),(o,i)=>(m(),ve(oo,{name:"dialog1"},{default:We(()=>[s.value?(m(),w("div",L_,[e.bg?(m(),w("div",Y_)):de("",!0),c("div",{class:"app-dialog_container",style:Cs({width:e.width})},[c("div",H_,[c("span",null,U(e.title),1),c("button",{class:"close",onClick:i[0]||(i[0]=a=>r())},[Ce(Xc)])]),c("div",U_,[Et(o.$slots,"default",{},void 0,!0)])],4)])):de("",!0)]),_:3}))}});var da=X(z_,[["__scopeId","data-v-3f4de4bc"]]);const fa=e=>(et("data-v-24ffa06c"),e=e(),tt(),e),W_={class:"tools-container"},V_=fa(()=>c("h1",null,"\u6B22\u8FCE\u4F7F\u7528iStoreOS",-1)),j_=fa(()=>c("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)),G_=fa(()=>c("p",null,"\u6BD4\u5982\u6570\u636E\u76EE\u5F55\u3001\u5F71\u97F3\u548C\u8FDC\u7A0B\u4E0B\u8F7D\u914D\u7F6E\u7B49",-1)),q_={class:"btns"},K_=le({__name:"top",setup(e){const t=ae("next");return ae("back"),(n,s)=>(m(),w("div",W_,[V_,j_,G_,c("div",q_,[c("button",{class:"next",onClick:s[0]||(s[0]=(...r)=>x(t)&&x(t)(...r))},"\u4E0B\u4E00\u6B65")])]))}});var J_=X(K_,[["__scopeId","data-v-24ffa06c"]]);const Nn=e=>(et("data-v-99d95164"),e=e(),tt(),e),Z_=["onSubmit"],Q_=Nn(()=>c("div",{class:"label-name"}," \u63A5\u4E0B\u6765\u8BF7\u9009\u62E9\u4E00\u4E2A\u4E3B\u76EE\u5F55\u7A7A\u95F4\uFF08>20G && EXT4\uFF09 ",-1)),X_={class:"label-value"},e9=Nn(()=>c("option",{value:""},"\u9009\u62E9\u5B58\u50A8\u7A7A\u95F4",-1)),t9=["value","disabled"],n9=Nn(()=>c("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)),s9={class:"form-item"},r9=Nn(()=>c("label",null," \u7F13\u5B58\u76EE\u5F55 ",-1)),o9={class:"label-value"},i9=Nn(()=>c("label",null," \u4E0B\u8F7D\u76EE\u5F55 ",-1)),a9={class:"label-value"},l9=Nn(()=>c("label",null," \u914D\u7F6E\u76EE\u5F55 ",-1)),u9={class:"label-value"},c9=Nn(()=>c("label",null,[at(" docker\u76EE\u5F55 "),c("span",null,[c("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)),d9={class:"label-value"},f9={class:"btns"},h9=Nn(()=>c("button",{class:"next"},"\u4E0B\u4E00\u6B65",-1)),p9=le({__name:"path",setup(e){const t=As(),n=be(()=>{var f;return((f=t==null?void 0:t.disk)==null?void 0:f.disks)||[]}),s=be(()=>{var f;return((f=t==null?void 0:t.raid)==null?void 0:f.disks)||[]}),r=be(()=>[...n.value,...s.value].filter(g=>g.childrens).map(g=>g.childrens)),o=ae("back"),i=ae("next"),a=()=>{i()},l=f=>!(f!=null&&f.mountPoint)||f.filesystem!="ext4"||Number(f.sizeInt)<21474836480,u=()=>{d.value.cachePath=d.value.path+"/Caches",d.value.plublicPath=d.value.path+"/Public",d.value.downloadPath=d.value.path+"/Public/Downloads",d.value.settingPath=d.value.path+"/Configs",d.value.dockerPath=d.value.path+"/docker"},d=ae("config");return(f,h)=>(m(),w("form",{class:"tools-container",onSubmit:Xn(a,["prevent"])},[Q_,c("div",X_,[c("label",null,[Ke(c("select",{required:"","onUpdate:modelValue":h[0]||(h[0]=g=>x(d).path=g),onChange:u},[e9,(m(!0),w(ce,null,nt(x(r),g=>(m(),w(ce,null,[(m(!0),w(ce,null,nt(g,v=>(m(),w(ce,null,[v.mountPoint?(m(),w("option",{key:0,value:v.mountPoint,disabled:l(v)},U(v.mountPoint)+" ["+U(`${v.name} ${v.total}`)+"] ",9,t9)):de("",!0)],64))),256))],64))),256))],544),[[Iu,x(d).path]])])]),n9,x(d).path!=""?(m(),w(ce,{key:0},[c("div",s9,[r9,c("div",o9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[1]||(h[1]=g=>x(d).cachePath=g),required:""},null,512),[[En,x(d).cachePath,void 0,{trim:!0}]])])]),i9,c("div",a9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[2]||(h[2]=g=>x(d).downloadPath=g),required:""},null,512),[[En,x(d).downloadPath,void 0,{trim:!0}]])])]),l9,c("div",u9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[3]||(h[3]=g=>x(d).settingPath=g),required:""},null,512),[[En,x(d).settingPath,void 0,{trim:!0}]])])]),c9,c("div",d9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[4]||(h[4]=g=>x(d).dockerPath=g),required:""},null,512),[[En,x(d).dockerPath,void 0,{trim:!0}]])])])]),c("div",f9,[c("button",{class:"back",type:"button",onClick:h[5]||(h[5]=(...g)=>x(o)&&x(o)(...g))},"\u4E0A\u4E00\u6B65"),h9])],64)):de("",!0)],40,Z_))}});var _9=X(p9,[["__scopeId","data-v-99d95164"]]);const m9=e=>(et("data-v-7b090953"),e=e(),tt(),e),g9={class:"tools-container"},v9=m9(()=>c("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u4E0B\u8F7D\u5DE5\u5177? ",-1)),y9={class:"form-item"},w9=["value"],b9=["src"],k9={class:"btns"},E9=le({__name:"download",setup(e){const t=ae("next"),n=ae("back"),s=ae("config"),r=ae("apps");be(()=>s.value);const o=_t([{name:"aria2",title:"Aria2\u4E0B\u8F7D\u5668"},{name:"transmission",title:"Transmission\u4E0B\u8F7D\u5668"},{name:"qbittorrent",title:"qBittorrent\u4E0B\u8F7D\u5668"}]),i=a=>ie.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${a}/logo.png`);return(a,l)=>(m(),w("div",g9,[v9,(m(!0),w(ce,null,nt(o,u=>(m(),w("div",y9,[c("label",null,[Ke(c("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=d=>ze(r)?r.value=d:null)},null,8,w9),[[Ni,x(r)]]),c("img",{src:i(u.name),alt:""},null,8,b9),at(" "+U(u.title),1)])]))),256)),c("div",k9,[c("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>x(n)&&x(n)(...u))},"\u4E0A\u4E00\u6B65"),c("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>x(t)&&x(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var S9=X(E9,[["__scopeId","data-v-7b090953"]]);const F9=e=>(et("data-v-4d855e61"),e=e(),tt(),e),C9={class:"tools-container"},D9=F9(()=>c("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u5F71\u97F3\u5A31\u4E50? ",-1)),x9={class:"form-item"},T9=["value"],O9=["src"],$9={class:"btns"},M9=le({__name:"media",setup(e){const t=ae("next"),n=ae("back"),s=ae("config"),r=ae("apps");be(()=>s.value);const o=_t([{name:"jellyfin",title:"Jellyfin\u79C1\u6709\u5F71\u9662"},{name:"emby",title:"Emby\u5F71\u9662"},{name:"plex",title:"Plex\u5F71\u9662"}]),i=a=>ie.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${a}/logo.png`);return(a,l)=>(m(),w("div",C9,[D9,(m(!0),w(ce,null,nt(o,u=>(m(),w("div",x9,[c("label",null,[Ke(c("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=d=>ze(r)?r.value=d:null)},null,8,T9),[[Ni,x(r)]]),c("img",{src:i(u.name),alt:""},null,8,O9),at(" "+U(u.title),1)])]))),256)),c("div",$9,[c("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>x(n)&&x(n)(...u))},"\u4E0A\u4E00\u6B65"),c("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>x(t)&&x(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var P9=X(M9,[["__scopeId","data-v-4d855e61"]]);const A9=e=>(et("data-v-2b6459ac"),e=e(),tt(),e),I9={class:"tools-container"},R9=A9(()=>c("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u591A\u5A92\u4F53\u5DE5\u5177 ",-1)),B9={class:"form-item"},N9=["value"],L9=["src"],Y9={class:"btns"},H9=le({__name:"multimedia",setup(e){const t=ae("next"),n=ae("back"),s=ae("config"),r=ae("apps");be(()=>s.value);const o=_t([{name:"photoprism",title:"PhotoPrism\u76F8\u518C\u7BA1\u7406"},{name:"navidrome",title:"Navidrome\u97F3\u4E50"},{name:"lanraragi",title:"LANraragi\u7535\u5B50\u4E66"}]),i=a=>ie.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${a}/logo.png`);return(a,l)=>(m(),w("div",I9,[R9,(m(!0),w(ce,null,nt(o,u=>(m(),w("div",B9,[c("label",null,[Ke(c("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=d=>ze(r)?r.value=d:null)},null,8,N9),[[Ni,x(r)]]),c("img",{src:i(u.name),alt:""},null,8,L9),at(" "+U(u.title),1)])]))),256)),c("div",Y9,[c("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>x(n)&&x(n)(...u))},"\u4E0A\u4E00\u6B65"),c("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>x(t)&&x(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var U9=X(H9,[["__scopeId","data-v-2b6459ac"]]);const s1=e=>(et("data-v-a11bdd32"),e=e(),tt(),e),z9={class:"nalert"},W9={key:0,class:"nalert-container"},V9={class:"nalert-data"},j9={class:"nalert-body"},G9=s1(()=>c("div",{class:"nalert-bodt_title"},[c("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"},[c("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"})]),c("span",null,U("\u63D0\u793A"))],-1)),q9={class:"nalert-bodt_msg"},K9=s1(()=>c("a",null,"docker\u8981\u8FC1\u79FB\u7684\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),J9=at(" \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 "),Z9=at(" \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 "),Q9={class:"nalert-bodt_btns"},X9=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=ke(!1),s=ke(1),r=()=>{t.callback(s.value)},o=()=>{t.close()};return Qn(()=>{setTimeout(()=>{n.value=!0},0)}),(i,a)=>(m(),w("div",z9,[e.bg?(m(),w("div",{key:0,class:"nalert-bg",onClick:o})):de("",!0),Ce(oo,{name:"dialog-nlaert"},{default:We(()=>[n.value?(m(),w("div",W9,[c("div",V9,[c("div",j9,[G9,c("div",q9,[K9,c("label",null,[Ke(c("input",{type:"radio",value:1,"onUpdate:modelValue":a[0]||(a[0]=l=>s.value=l)},null,512),[[On,s.value]]),J9]),c("label",null,[Ke(c("input",{type:"radio",value:0,"onUpdate:modelValue":a[1]||(a[1]=l=>s.value=l)},null,512),[[On,s.value]]),Z9])]),c("div",Q9,[c("button",{class:"next",onClick:a[2]||(a[2]=l=>r())}," \u786E\u5B9A "),c("button",{class:"clear",onClick:a[3]||(a[3]=l=>o())}," \u53D6\u6D88 ")])])])])):de("",!0)]),_:1})]))}});var em=X(X9,[["__scopeId","data-v-a11bdd32"]]),tm=()=>new Promise((e,t)=>{const n=document.createElement("div"),s=()=>{Yr(null,n),n.remove()},o=Ce(em,yt({},{callback:i=>{e(i),s()},close:()=>{t(),s()}}));Yr(o,n),document.body.appendChild(n)});const ha=e=>(et("data-v-11842e6c"),e=e(),tt(),e),nm={class:"tools-container"},sm={key:0,class:"block"},rm=ha(()=>c("li",null," \u8FC1\u79FBdocker\u76EE\u5F55 ",-1)),om=ha(()=>c("li",null," \u751F\u6210\u6570\u636E\u7684\u914D\u7F6E\u76EE\u5F55 ",-1)),im=ha(()=>c("li",null," \u662F\u5426\u7EE7\u7EED\uFF1F ",-1)),am={key:1,class:"block block-msg"},lm={class:"msg-li"},um={class:"msg-item"},cm={class:"btns"},dm=["disabled"],fm=["disabled"],hm=le({__name:"install",setup(e){ae("next");const t=ae("back");ae("init");const n=ae("apps"),s=ae("config");ke(0);const r=ae("disabled"),o=ke([]),i=ke(!1),a=()=>q(this,null,function*(){if(!!window.confirm("\u60A8\u786E\u5B9A\u8981\u6267\u884C\u64CD\u4F5C\u5417?")){if(o.value=[],o.value.push("\u521D\u59CB\u5316\u914D\u7F6E..."),r.value=!0,(yield f())!==!0){r.value=!1;return}if((yield u())!==!0){r.value=!1;return}if((yield d())!==!0){r.value=!1;return}o.value.push("\u914D\u7F6E\u5B8C\u6210,\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E"),o.value.push("\u8BF7\u5173\u95ED\u7A97\u53E3"),i.value=!0}}),l=()=>{localStorage.setItem("nas_guide_init","1"),window.location.reload()},u=()=>q(this,null,function*(){let v=!1;o.value.push("\u914D\u7F6E\u76EE\u5F55...");try{const S=s.value,b={home:S.path,downloads:S.downloadPath,configs:S.settingPath,caches:S.cachePath,public:S.plublicPath},F=yield ie.Quickstart.Guide.GlobalFolders.POST(b);if(F.data){const{success:k,error:$,scope:V,detail:j}=F.data;if((k||0)==0&&(v=!0,o.value.push("\u76EE\u5F55\u914D\u7F6E\u5B8C\u6210...")),$)throw $}}catch(S){o.value.push(S)}return v}),d=()=>q(this,null,function*(){let v=!1;const S=n.value;if(o.value.push("\u5B89\u88C5\u63D2\u4EF6..."),S.length>0)try{const b={packages:S},F=yield ie.Quickstart.AutoSetup.POST(b);if(F.data){const{success:k,error:$}=F.data;if(k==0&&(o.value.push("\u5DF2\u63D0\u4EA4\u81F3\u540E\u5929\u5B89\u88C5"),v=!0),$)throw $}}catch(b){o.value.push(b)}else o.value.push("\u6CA1\u6709\u9700\u8981\u5B89\u88C5\u7684\u63D2\u4EF6,\u8DF3\u8FC7"),v=!0;return v}),f=()=>q(this,null,function*(){let v=!1;o.value.push("\u6B63\u5728\u83B7\u53D6docker\u72B6\u6001");const{dockerPath:S}=s.value;try{const b=yield ie.Quickstart.Guide.DockerStatus.GET();if(b.data){const{success:F,error:k,result:$}=b.data;if(k)throw k;if($&&$.path===S)return o.value.push("docker\u8DEF\u5F84\u4E00\u81F4,\u8DF3\u8FC7\u8FC1\u79FB"),!0}}catch(b){return o.value.push(b),!1}o.value.push("\u6B63\u5728\u8FC1\u79FBdocker...");try{const b=yield ie.Quickstart.Guide.DockerTransfer.POST({path:S,force:!1});if(b.data){const{result:F,success:k,error:$}=b.data;if((k||0)==0)if(F!=null&&F.emptyPathWarning)try{switch(yield tm()){case 0:v=yield h(S);break;case 1:v=yield g(S);break;default:o.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),v=!0}}catch(V){o.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),v=!0}else v=!0,o.value.push("\u8FC1\u79FB\u5B8C\u6210...");if($)throw b.data.error}}catch(b){o.value.push(b)}return v}),h=v=>q(this,null,function*(){let S=!1;try{const b=yield ie.Quickstart.Guide.DockerTransfer.POST({path:v,force:!0,overwriteDir:!0});if(b.data){const{result:F,success:k,error:$}=b.data;if((k||0)==0&&(F!=null&&F.emptyPathWarning?o.value.push("\u8FC1\u79FB\u5931\u8D25..."):(S=!0,o.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),$)throw b.data.error}}catch(b){o.value.push(b)}return S}),g=v=>q(this,null,function*(){let S=!1;try{const b=yield ie.Quickstart.Guide.DockerTransfer.POST({path:v,force:!0,overwriteDir:!1});if(b.data){const{result:F,success:k,error:$}=b.data;if((k||0)==0&&(F!=null&&F.emptyPathWarning?o.value.push("\u8FC1\u79FB\u5931\u8D25..."):(S=!0,o.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),$)throw b.data.error}}catch(b){o.value.push(b)}return S});return(v,S)=>(m(),w("div",nm,[x(r)?de("",!0):(m(),w("div",sm,[rm,om,c("li",null," \u5B89\u88C5\u9009\u4E2D\u7684 "+U(x(n).length)+" \u4E2A\u63D2\u4EF6 ",1),im])),o.value.length>0?(m(),w("div",am,[(m(!0),w(ce,null,nt(o.value,b=>(m(),w("li",lm,[c("div",um,U(b),1)]))),256))])):de("",!0),c("div",cm,[i.value?(m(),w("button",{key:1,onClick:l,class:"next"},"\u5173\u95ED")):(m(),w(ce,{key:0},[c("button",{class:"back",onClick:S[0]||(S[0]=(...b)=>x(t)&&x(t)(...b)),disabled:x(r)},"\u4E0A\u4E00\u6B65",8,dm),c("button",{class:"next",onClick:a,disabled:x(r)},"\u5B89\u88C5\u5E76\u914D\u7F6E",8,fm)],64))])]))}});var pm=X(hm,[["__scopeId","data-v-11842e6c"]]);const _m=e=>(et("data-v-0dc4c17e"),e=e(),tt(),e),mm={class:"tools-container"},gm=_m(()=>c("div",{class:"block"},[c("p",null," \u914D\u7F6E\u5B8C\u6210 "),c("p",null,"\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E")],-1)),vm=le({__name:"success",setup(e){const t=ae("init"),n=()=>{t(),window.location.reload()};return(s,r)=>(m(),w("div",mm,[gm,c("div",{class:"btns"},[c("button",{onClick:n,class:"next"},"\u77E5\u9053\u4E86")])]))}});var ym=X(vm,[["__scopeId","data-v-0dc4c17e"]]);const wm={class:"nas-tools_item"},bm=le({__name:"index",props:{close:Function},setup(e){const t=e,n=be(()=>[J_,_9,S9,P9,U9,pm,ym]),s=Rn(),r=()=>{if(g.value)return!1},o=()=>{var v,S,b,F;u(),t.close&&t.close(),s&&((b=(S=(v=s==null?void 0:s.appContext)==null?void 0:v.config)==null?void 0:S.globalProperties)==null?void 0:b.$close)&&((F=s.appContext.config.globalProperties)==null||F.$close())},i=ke(0),a=()=>{g.value||i.value>=n.value.length-1||i.value++},l=()=>{g.value||i.value!=0&&i.value--},u=()=>{ie.Storage.Set.POST({key:"nas_guide_init",type:"option",values:["1"]}).then(v=>{})},d=be(()=>({transform:`translateX(${i.value*-100}%)`})),f=ke({path:"",cachePath:"",downloadPath:"",settingPath:"",dockerPath:"",plublicPath:""}),h=ke([]),g=ke(!1);return ht("next",a),ht("back",l),ht("init",u),ht("config",f),ht("apps",h),ht("disabled",g),(v,S)=>(m(),ve(da,{class:"nas-dialog",title:"iStoreOS",onHandleClose:o,"before-close":r,width:"860px"},{default:We(()=>[c("div",{class:"nas-tools",style:Cs(x(d))},[(m(!0),w(ce,null,nt(x(n),(b,F)=>(m(),w("div",wm,[F==i.value?(m(),ve(Pi(b),{key:0})):de("",!0)]))),256))],4)]),_:1}))}});var km=X(bm,[["__scopeId","data-v-c4e63fa4"]]);class Em extends ca{OpenNasSettingWindow(){this.openWindow(N_)}OpenGuideWindow(){this.openWindow(km)}}const Sm=new Em;const r1=e=>(et("data-v-109bceb3"),e=e(),tt(),e),Fm={class:"app-item"},Cm={class:"app-card"},Dm={class:"app-item_icon"},xm=["src"],Tm={class:"app-item_info"},Om={class:"app-title"},$m={class:"app-as"},Mm=r1(()=>c("span",{style:{margin:"0 10px"}},"|",-1)),Pm=["title"],Am={key:0,class:"app-btn"},Im={key:1,class:"app-btn"},Rm=r1(()=>c("div",null,null,-1)),Bm=le({__name:"app",props:{app:{type:Object,required:!0}},setup(e){const t=e,n=Yc(),s=Je.numberFormat,r=be(()=>n.appsExpand[t.app.name]||{downloadCount:0,isStar:null,name:t.app.name,starCount:0}),o=()=>{oe.Message("\u60A8\u5DF2\u70B9\u8D5E\u8FC7\u4E86")},i=()=>q(this,null,function*(){var a;try{const l=yield ie.ApiStore.star.POST({appId:t.app.name,deviceId:Je.getDeviceId()});((a=l==null?void 0:l.data)==null?void 0:a.success)==0&&n.appsExpand[t.app.name]&&(n.appsExpand[t.app.name].isStar=!0)}catch(l){oe.Error(`${l}`)}});return(a,l)=>{const u=it("icon-star-off"),d=it("icon-star-on");return m(),w("div",Fm,[c("div",Cm,[c("div",Dm,[c("img",{src:e.app.getIcon(),alt:""},null,8,xm)]),c("div",Tm,[c("div",Om,[at(U(e.app.title)+" ",1),c("em",null,U(e.app.version),1)]),c("div",$m,[c("span",null,U(x(s)(x(r).downloadCount))+" \u6B21\u4E0B\u8F7D ",1),Mm,c("span",null,U(x(s)(x(r).starCount))+" \u6B21\u70B9\u8D5E ",1),x(r).isStar!=null?(m(),w(ce,{key:0},[x(r).isStar?(m(),w("a",{key:0,class:"star-btn",onClick:l[0]||(l[0]=f=>o())},[Ce(u)])):(m(),w("a",{key:1,class:"star-btn",onClick:l[1]||(l[1]=f=>i())},[Ce(d)]))],64)):de("",!0)]),c("div",{class:"app-desc",title:e.app.description},U(e.app.description),9,Pm)])]),e.app.isInstall()?(m(),w("div",Am,[e.app.isUpdate()?(m(),w("button",{key:0,class:"update",onClick:l[2]||(l[2]=f=>e.app.update())}," \u66F4\u65B0 ")):de("",!0),c("button",{class:"del",onClick:l[3]||(l[3]=f=>e.app.uninstall())},"\u5378\u8F7D"),c("button",{onClick:l[4]||(l[4]=f=>e.app.openApp()),class:"open"},"\u6253\u5F00")])):(m(),w("div",Im,[Rm,c("button",{class:"install",onClick:l[5]||(l[5]=f=>e.app.install())}," \u5B89\u88C5")]))])}}});var No=X(Bm,[["__scopeId","data-v-109bceb3"]]);const Nm=le({__name:"index",emits:["change"],setup(e,{emit:t}){const n=a=>{},s=a=>{a===null&&console.log("dragleave")},r=a=>{a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="link")},o=a=>{a.preventDefault(),i(a)},i=a=>{var u;const l=(u=a==null?void 0:a.dataTransfer)==null?void 0:u.files;if(l&&l.length>0){const d=[];for(let f=0;f(m(),w("div",{onDrop:o,onDragenter:n,onDragleave:s,onDragover:r},[Et(a.$slots,"default")],32))}});const Lm={key:0},Ym={class:"section-title"},Hm={class:"section-list"},Um={key:1},zm={class:"section-title"},Wm={class:"section-list"},Vm={key:2},jm={class:"section-title"},Gm={class:"section-list"},qm=le({__name:"appStore",setup(e){const t=Yc(),n=be(()=>t.localApps||[]),s=be(()=>t.remoteApps||[]),r=be(()=>n.value.filter(a=>a.isUpdate())),o=a=>{if(a&&a.length>0){const l=a[0];(l.name.endsWith(".run")||l.name.endsWith(".ipk"))&&i(l)}},i=a=>q(this,null,function*(){const l=new FormData;l.append(a.name,a);const u=oe.Loading("\u4E0A\u4F20\u4E2D...");try{const d=yield ie.Store.upload.POST(l);if(d.data){const{stderr:f,code:h}=d.data;if(h==0&&cs.istore.Open(),f)throw f}}catch(d){oe.Error(`${d}`)}finally{u.Close()}});return(a,l)=>(m(),ve(Nm,{onChange:o},{default:We(()=>[x(r).length>0?(m(),w("section",Lm,[c("div",Ym," \u53EF\u66F4\u65B0 ("+U(x(r).length)+") ",1),c("div",Hm,[(m(!0),w(ce,null,nt(x(r),u=>(m(),ve(No,{app:u},null,8,["app"]))),256))])])):de("",!0),x(n).length>0?(m(),w("section",Um,[c("div",zm," \u5DF2\u5B89\u88C5 ("+U(x(n).length)+") ",1),c("div",Wm,[(m(!0),w(ce,null,nt(x(n),u=>(m(),ve(No,{app:u},null,8,["app"]))),256))])])):de("",!0),x(s).length>0?(m(),w("section",Vm,[c("div",jm," \u5168\u90E8\u8F6F\u4EF6 ("+U(x(s).length)+") ",1),c("div",Gm,[(m(!0),w(ce,null,nt(x(s),u=>(m(),w(ce,null,[u.isInstall()?de("",!0):(m(),ve(No,{key:0,app:u},null,8,["app"]))],64))),256))])])):de("",!0)]),_:1}))}});var Km=X(qm,[["__scopeId","data-v-636cf49b"]]);const Jm=le({__name:"index",props:{close:Function},setup(e){const t=e,n=()=>{t.close&&t.close()};return(s,r)=>(m(),ve(da,{onHandleClose:n,title:"\u5E94\u7528\u4E2D\u5FC3"},{default:We(()=>[Ce(Km)]),_:1}))}});class Zm extends ca{Open(){this.openWindow(Jm)}}const Qm=new Zm,Xm={class:"tab-content"},eg={class:"item-label"},tg=c("div",{class:"item-label_key"},[c("span",null,"\u540D\u79F0")],-1),ng={class:"item-label_value"},sg={key:0,class:"item-label"},rg=c("div",{class:"item-label_key"},[c("span",null,"\u578B\u53F7")],-1),og={class:"item-label_value"},ig={class:"item-label"},ag=c("div",{class:"item-label_key"},[c("span",null,"\u8DEF\u5F84")],-1),lg={class:"item-label_value"},ug={class:"item-label"},cg=c("div",{class:"item-label_key"},[c("span",null,"\u5BB9\u91CF")],-1),dg={class:"item-label_value"},fg={class:"item-label"},hg=c("div",{class:"item-label_key"},[c("span",null,"\u7C7B\u578B")],-1),pg={class:"item-label_value"},_g={key:1,class:"item-label"},mg=c("div",{class:"item-label_key"},[c("span",null,"\u7CFB\u7EDF\u5206\u533A")],-1),gg=c("div",{class:"item-label_value"},[c("span",null,"true")],-1),vg=[mg,gg],yg={key:2,class:"item-label"},wg=c("div",{class:"item-label_key"},[c("span",null,"docker\u5206\u533A")],-1),bg=c("div",{class:"item-label_value"},[c("span",null,"true")],-1),kg=[wg,bg],Eg={key:3,class:"item-label"},Sg=c("div",{class:"item-label_key"},[c("span",null,"\u63A5\u5165\u65B9\u5F0F")],-1),Fg=c("div",{class:"item-label_value"},[c("span",null,"\u5916\u63A5")],-1),Cg=[Sg,Fg],Dg={class:"item-label"},xg=c("div",{class:"item-label_key"},[c("span",null,"\u5206\u533A\u6570\u91CF")],-1),Tg={class:"item-label_value"},Og={key:4,class:"item-label"},$g=c("div",{class:"item-label_key"},[c("span",null,"error")],-1),Mg={class:"item-label_value"},Pg=le({__name:"main",setup(e){const t=ae("disk");return(n,s)=>{var r;return m(),w("section",Xm,[c("div",eg,[tg,c("div",ng,[c("span",null,U(x(t).name),1)])]),x(t).venderModel?(m(),w("div",sg,[rg,c("div",og,[c("span",null,U(x(t).venderModel),1)])])):de("",!0),c("div",ig,[ag,c("div",lg,[c("span",null,U(x(t).path),1)])]),c("div",ug,[cg,c("div",dg,[c("span",null,U(x(t).used)+"/"+U(x(t).total),1)])]),c("div",fg,[hg,c("div",pg,[c("span",null,U(x(t).partyLabelType),1)])]),x(t).isSystemRoot?(m(),w("div",_g,vg)):de("",!0),x(t).isDockerRoot?(m(),w("div",yg,kg)):de("",!0),x(t).isExternalDisk?(m(),w("div",Eg,Cg)):de("",!0),c("div",Dg,[xg,c("div",Tg,[c("span",null,U((r=x(t).childrens)==null?void 0:r.length),1)])]),x(t).errorInfo?(m(),w("div",Og,[$g,c("div",Mg,[c("span",null,U(x(t).errorInfo),1)])])):de("",!0)])}}}),Ag={class:"tab-content"},Ig=c("div",{class:"label-name"},[c("span",null,"\u76EE\u6807\u5206\u533A")],-1),Rg={class:"label-value"},Bg=c("option",{value:-1},"\u9009\u62E9\u8981\u6302\u8F7D\u7684\u5206\u533A",-1),Ng=["value"],Lg=c("div",{class:"label-name"},[c("span",null,"\u6302\u8F7D\u70B9")],-1),Yg={class:"label-value"},Hg={class:"label-btns"},Ug=["disabled"],zg=le({__name:"mount",props:{mountIndex:{type:Number,required:!0}},setup(e){const t=e,n=ae("disk"),s=ae("disabled"),r=_t({index:t.mountIndex!=null?t.mountIndex:-1,mountPoint:"",item:{mountPoint:"",path:"",name:"",filesystem:"",total:"",used:"",usage:0,uuid:"",isReadOnly:!1,isSystemRoot:!1,sizeInt:""}}),o=()=>{var l;const a=n.value;r.index==-1&&(r.item=null,r.mountPoint=""),a.childrens&&(r.item=a.childrens[r.index],r.mountPoint="/mnt/data_"+((l=r==null?void 0:r.item)==null?void 0:l.name))},i=()=>q(this,null,function*(){const a=n.value,l=r.item;if(l==null||r.index==-1){oe.Message("\u83B7\u53D6\u4E0D\u5230\u8981\u6302\u8F7D\u7684\u5206\u533A");return}if(l.path==null||l.path==""){oe.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533A\u8DEF\u5F84");return}if(l.uuid==null||l.uuid==""){oe.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533AID");return}if(r.mountPoint==""){oe.Message("\u6302\u8F7D\u70B9\u4E0D\u80FD\u4E3A\u7A7A");return}const u=oe.Loading("\u6302\u8F7D\u4E2D...");try{const d=yield ie.Nas.Disk.Partition.Mount.POST({path:l.path,uuid:l.uuid,mountPoint:r.mountPoint});if(d!=null&&d.data){const{result:f,error:h}=d==null?void 0:d.data;if(h)throw h;f&&(a&&a.childrens&&a.childrens[r.index]&&(a.childrens[r.index].mountPoint=f.mountPoint),oe.Success("\u6302\u8F7D\u6210\u529F,\u8BF7\u5173\u95ED\u7A97\u53E3"))}}catch(d){oe.Error(`${d}`)}finally{u.Close(),s.value=!1}});return r.index>=0&&o(),(a,l)=>(m(),w("section",Ag,[Ig,c("div",Rg,[Ke(c("select",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.index=u),onChange:o},[Bg,(m(!0),w(ce,null,nt(x(n).childrens,(u,d)=>{var f;return m(),w(ce,null,[u.mountPoint?de("",!0):(m(),w("option",{key:0,value:d},U(u.path)+"\uFF08"+U(u.total)+"\uFF0C"+U((f=u==null?void 0:u.filesystem)==null?void 0:f.toUpperCase())+"\uFF09 ",9,Ng))],64)}),256))],544),[[Iu,r.index]])]),r.index!=-1?(m(),w(ce,{key:0},[Lg,c("div",Yg,[Ke(c("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=u=>r.mountPoint=u)},null,512),[[En,r.mountPoint,void 0,{trim:!0}]])]),c("div",Hg,[c("button",{class:"mount",disabled:x(s),onClick:l[2]||(l[2]=u=>i())},"\u6302\u8F7D",8,Ug)])],64)):de("",!0)]))}}),Wg={class:"tab-content"},Vg=c("colgroup",null,[c("col"),c("col"),c("col"),c("col"),c("col")],-1),jg=c("thead",null,[c("tr",null,[c("th",null," \u540D\u79F0 "),c("th",null," \u8DEF\u5F84 "),c("th",null," \u5BB9\u91CF "),c("th",null,"\u683C\u5F0F"),c("th",null," \u72B6\u6001 "),c("th",null," \u6302\u8F7D\u70B9 ")])],-1),Gg={key:0},qg={key:1,class:"warning"},Kg={key:0},Jg=["onClick"],Zg=le({__name:"partition",setup(e){const t=ae("disk"),n=ae("onMount");return(s,r)=>(m(),w("section",Wg,[c("table",null,[Vg,jg,c("tbody",null,[(m(!0),w(ce,null,nt(x(t).childrens,(o,i)=>(m(),w("tr",null,[c("th",null,[c("span",null,U(o.name),1)]),c("th",null,U(o.path),1),c("th",null,[c("span",null,U(o.used||0)+"/"+U(o.total||0),1)]),c("th",null,[o.filesystem=="ext4"?(m(),w("span",Gg,U(o.filesystem),1)):(m(),w("span",qg,U(o.filesystem),1))]),c("th",null,[c("span",null,U(o.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1)]),c("th",null,[o.mountPoint?(m(),w("span",Kg,[c("span",null,U(o.mountPoint),1)])):(m(),w("a",{key:1,onClick:a=>x(n)(i)}," \u53BB\u6302\u8F7D ",8,Jg))])]))),256))])])]))}});const Eo=e=>(et("data-v-7d47f8ad"),e=e(),tt(),e),Qg={class:"tab-content"},Xg=Eo(()=>c("div",{class:"label-name"},[c("span",null,"\u8981\u683C\u5F0F\u5316\u7684\u76EE\u6807")],-1)),ev={class:"label-value2"},tv={class:"disk-item"},nv=Eo(()=>c("em",{class:"disk_main"},"\u5168\u76D8",-1)),sv={class:"disk-item"},rv=["value"],ov=Eo(()=>c("em",null,"\u5206\u533A",-1)),iv=Eo(()=>c("div",{class:"label-name"},[c("span",null,"\u683C\u5F0F\u5316\u4E3A")],-1)),av={class:"label-value2"},lv={class:"disk-item"},uv=at(" EXT4 "),cv={class:"label-btns"},dv=["disabled"],fv=le({__name:"foramt",setup(e){const t=ae("disk"),n=ae("updateDisk"),s=ae("disabled"),r=ke(-1),o=ke("ext4"),i=()=>q(this,null,function*(){const u=yt({},t.value),d=r.value;if(d==-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;a(u);return}if(u.childrens){const f=u.childrens[d],h=f.mountPoint||f.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${h} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${h}?`))return;l(f,d);return}}),a=u=>q(this,null,function*(){if(s.value=!0,u.name==null||u.path==""){oe.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(u.path==null||u.path==""){oe.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}s.value=!0;const d=oe.Loading("\u521D\u59CB\u5316\u4E2D...");try{const f=yield ie.Nas.Disk.Init.POST({name:u.name,path:u.path});if(f!=null&&f.data){const{result:h,error:g}=f==null?void 0:f.data;if(g&&oe.Warning(g),h){if(h.errorInfo){oe.Warning(h.errorInfo);return}oe.Success("\u521D\u59CB\u5316\u6210\u529F"),n(h)}}}catch(f){oe.Error(f)}finally{d.Close(),s.value=!1}}),l=(u,d)=>q(this,null,function*(){if(s.value=!0,u.path==null||u.path==""){oe.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}s.value=!0;const f=oe.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const h=yield ie.Nas.Disk.Partition.Format.POST({path:u.path,uuid:u.uuid,mountPoint:u.mountPoint});if(h!=null&&h.data){const{result:g,error:v}=h==null?void 0:h.data;if(v&&oe.Warning(v),g){oe.Success("\u683C\u5F0F\u5316\u6210\u529F");const S=yt({},t.value);S.childrens&&(S.childrens[d]=g),n(S)}}}catch(h){oe.Error(h)}finally{f.Close(),s.value=!1}});return(u,d)=>(m(),w("section",Qg,[Xg,c("div",ev,[c("label",tv,[Ke(c("input",{type:"radio",value:-1,"onUpdate:modelValue":d[0]||(d[0]=f=>r.value=f)},null,512),[[On,r.value]]),nv,at(U(x(t).path)+"\uFF08"+U(x(t).total)+"\uFF09 ",1)]),(m(!0),w(ce,null,nt(x(t).childrens,(f,h)=>{var g;return m(),w("label",sv,[Ke(c("input",{type:"radio",value:h,"onUpdate:modelValue":d[1]||(d[1]=v=>r.value=v)},null,8,rv),[[On,r.value]]),ov,at(U(f.path)+"\uFF08"+U(f.total)+"\uFF0C"+U((g=f==null?void 0:f.filesystem)==null?void 0:g.toUpperCase())+"\uFF09 ",1)])}),256))]),iv,c("div",av,[c("label",lv,[Ke(c("input",{type:"radio",value:"ext4","onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f)},null,512),[[On,o.value]]),uv])]),c("div",cv,[c("button",{class:"mount",disabled:x(s),onClick:d[3]||(d[3]=f=>i())},"\u683C\u5F0F\u5316",8,dv)])]))}});var hv=X(fv,[["__scopeId","data-v-7d47f8ad"]]);const pv={class:"tabls"},_v=["disabled"],mv=["disabled"],gv=["disabled"],vv=["disabled"],yv=le({__name:"index",props:{disk:{type:Object,required:!0},close:Function},setup(e){const t=e,n=()=>{a.value&&location.reload(),t.close&&t.close()},s=ke("main"),r=ke(!1),o=ke(t.disk),i=ke(null),a=ke(!1);ht("disk",o),ht("updateDisk",u=>{o.value=u,a.value=!0}),ht("disabled",r),ht("onMount",u=>{i.value=u,s.value="mount"});const l=u=>{u=="mount"&&(i.value=null),s.value=u};return(u,d)=>(m(),ve(da,{onHandleClose:n,title:"Storage Manager",width:"920px"},{default:We(()=>[c("ul",pv,[c("button",{class:Kt({on:s.value=="main"}),onClick:d[0]||(d[0]=f=>l("main")),disabled:r.value},"\u6458\u8981",10,_v),c("button",{class:Kt({on:s.value=="partition"}),onClick:d[1]||(d[1]=f=>l("partition")),disabled:r.value},"\u5206\u533A",10,mv),c("button",{class:Kt({on:s.value=="mount"}),onClick:d[2]||(d[2]=f=>l("mount")),disabled:r.value},"\u6302\u8F7D",10,gv),c("button",{class:Kt({on:s.value=="foramt"}),onClick:d[3]||(d[3]=f=>l("foramt")),disabled:r.value},"\u683C\u5F0F\u5316",10,vv)]),s.value=="main"?(m(),ve(Pg,{key:0})):s.value=="partition"?(m(),ve(Zg,{key:1})):s.value=="mount"?(m(),ve(zg,{key:2,mountIndex:i.value},null,8,["mountIndex"])):s.value=="foramt"?(m(),ve(hv,{key:3})):de("",!0)]),_:1}))}});var wv=X(yv,[["__scopeId","data-v-1b963653"]]);class bv extends ca{OpenDisk(t){this.openWindow(wv,t)}}const o1=new bv;o1.OpenDisk;document.title=t1.HostName;const yr=Li(zf);yr.use(b5());k5();yr.use(_p).use(R_);yr.use(I7);yr.use(Sm).use(Qm).use(o1);yr.mount("#app");export{Xn as A,at as B,ie as C,Iu as D,nt as E,ce as F,ef as G,o1 as H,Yc as I,Km as J,Fv as K,Sv as L,C7 as M,oo as N,Qm as O,hl as P,Sm as Q,Kt as R,lu as S,oe as T,Qn as U,$s as V,cs as W,Et as X,Cs as Y,X as _,c as a,Ce as b,w as c,le as d,ve as e,Pi as f,x as g,Je as h,be as i,_t as j,_u as k,U as l,de as m,t1 as n,m as o,et as p,tt as q,it as r,ke as s,wp as t,As as u,Ev as v,We as w,Ke as x,On as y,En as z}; + */const ds=typeof window!="undefined";function E5(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Te=Object.assign;function Io(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ht(r)?r.map(e):e(r)}return n}const Xs=()=>{},Ht=Array.isArray,S5=/\/$/,F5=e=>e.replace(S5,"");function Ro(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),r=e(o)),a>-1&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=T5(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function C5(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _l(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function D5(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ss(t.matched[s],n.matched[r])&&Hc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x5(e[n],t[n]))return!1;return!0}function x5(e,t){return Ht(e)?ml(e,t):Ht(t)?ml(t,e):e===t}function ml(e,t){return Ht(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function T5(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var fr;(function(e){e.pop="pop",e.push="push"})(fr||(fr={}));var er;(function(e){e.back="back",e.forward="forward",e.unknown=""})(er||(er={}));function O5(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),F5(e)}const $5=/^[^#]+#/;function M5(e,t){return e.replace($5,"#")+t}function P5(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 bo=()=>({left:window.pageXOffset,top:window.pageYOffset});function A5(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=P5(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 gl(e,t){return(history.state?history.state.position-t:-1)+e}const fi=new Map;function I5(e,t){fi.set(e,t)}function R5(e){const t=fi.get(e);return fi.delete(e),t}let B5=()=>location.protocol+"//"+location.host;function Uc(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let a=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),_l(l,"")}return _l(n,e)+s+r}function N5(e,t,n,s){let r=[],o=[],i=null;const a=({state:h})=>{const g=Uc(e,location),v=n.value,S=t.value;let b=0;if(h){if(n.value=g,t.value=h,i&&i===v){i=null;return}b=S?h.position-S.position:0}else s(g);r.forEach(F=>{F(n.value,v,{delta:b,type:fr.pop,direction:b?b>0?er.forward:er.back:er.unknown})})};function l(){i=n.value}function u(h){r.push(h);const g=()=>{const v=r.indexOf(h);v>-1&&r.splice(v,1)};return o.push(g),g}function d(){const{history:h}=window;!h.state||h.replaceState(Te({},h.state,{scroll:bo()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:u,destroy:f}}function vl(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?bo():null}}function L5(e){const{history:t,location:n}=window,s={value:Uc(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:B5()+e+l;try{t[d?"replaceState":"pushState"](u,"",h),r.value=u}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function i(l,u){const d=Te({},t.state,vl(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});o(l,d,!0),s.value=l}function a(l,u){const d=Te({},r.value,t.state,{forward:l,scroll:bo()});o(d.current,d,!0);const f=Te({},vl(s.value,l,null),{position:d.position+1},u);o(l,f,!1),s.value=l}return{location:s,state:r,push:a,replace:i}}function zc(e){e=O5(e);const t=L5(e),n=N5(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Te({location:"",base:e,go:s,createHref:M5.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 Y5(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),zc(e)}function H5(e){return typeof e=="string"||e&&typeof e=="object"}function Wc(e){return typeof e=="string"||typeof e=="symbol"}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Vc=Symbol("");var yl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(yl||(yl={}));function Fs(e,t){return Te(new Error,{type:e,[Vc]:!0},t)}function nn(e,t){return e instanceof Error&&Vc in e&&(t==null||!!(e.type&t))}const wl="[^/]+?",U5={sensitive:!1,strict:!1,start:!0,end:!0},z5=/[.+*?^${}()[\]/\\]/g;function W5(e,t){const n=Te({},U5,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function j5(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const G5={type:0,value:""},q5=/[a-zA-Z0-9_]/;function K5(e){if(!e)return[[]];if(e==="/")return[[G5]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,l,u="",d="";function f(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a{i(k)}:Xs}function i(d){if(Wc(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){let f=0;for(;f=0&&(d.record.path!==n[f].record.path||!jc(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!El(d)&&s.set(d.record.name,d)}function u(d,f){let h,g={},v,S;if("name"in d&&d.name){if(h=s.get(d.name),!h)throw Fs(1,{location:d});S=h.record.name,g=Te(kl(f.params,h.keys.filter(k=>!k.optional).map(k=>k.name)),d.params&&kl(d.params,h.keys.map(k=>k.name))),v=h.stringify(g)}else if("path"in d)v=d.path,h=n.find(k=>k.re.test(v)),h&&(g=h.parse(v),S=h.record.name);else{if(h=f.name?s.get(f.name):n.find(k=>k.re.test(f.path)),!h)throw Fs(1,{location:d,currentLocation:f});S=h.record.name,g=Te({},f.params,d.params),v=h.stringify(g)}const b=[];let F=h;for(;F;)b.unshift(F.record),F=F.parent;return{name:S,path:v,params:g,matched:b,meta:e7(b)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:r}}function kl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Q5(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:X5(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 X5(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=="boolean"?n:n[s];return t}function El(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function e7(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function Sl(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function jc(e,t){return t.children.some(n=>n===e||jc(e,n))}const Gc=/#/g,t7=/&/g,n7=/\//g,s7=/=/g,r7=/\?/g,qc=/\+/g,o7=/%5B/g,i7=/%5D/g,Kc=/%5E/g,a7=/%60/g,Jc=/%7B/g,l7=/%7C/g,Zc=/%7D/g,u7=/%20/g;function ua(e){return encodeURI(""+e).replace(l7,"|").replace(o7,"[").replace(i7,"]")}function c7(e){return ua(e).replace(Jc,"{").replace(Zc,"}").replace(Kc,"^")}function hi(e){return ua(e).replace(qc,"%2B").replace(u7,"+").replace(Gc,"%23").replace(t7,"%26").replace(a7,"`").replace(Jc,"{").replace(Zc,"}").replace(Kc,"^")}function d7(e){return hi(e).replace(s7,"%3D")}function f7(e){return ua(e).replace(Gc,"%23").replace(r7,"%3F")}function h7(e){return e==null?"":f7(e).replace(n7,"%2F")}function Gr(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function p7(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&hi(o)):[s&&hi(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function _7(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ht(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const m7=Symbol(""),Cl=Symbol(""),ko=Symbol(""),Qc=Symbol(""),pi=Symbol("");function Hs(){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,reset:n}}function kn(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(Fs(4,{from:n,to:t})):f instanceof Error?a(f):H5(f)?a(Fs(2,{from:t,to:f})):(o&&s.enterCallbacks[r]===o&&typeof f=="function"&&o.push(f),i())},u=e.call(s&&s.instances[r],t,n,l);let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(f=>a(f))})}function Bo(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(g7(a)){const u=(a.__vccOpts||a)[t];u&&r.push(kn(u,n,s,o,i))}else{let l=a();r.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=E5(u)?u.default:u;o.components[i]=d;const h=(d.__vccOpts||d)[t];return h&&kn(h,n,s,o,i)()}))}}return r}function g7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dl(e){const t=ae(ko),n=ae(Qc),s=be(()=>t.resolve(x(e.to))),r=be(()=>{const{matched:l}=s.value,{length:u}=l,d=l[u-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(Ss.bind(null,d));if(h>-1)return h;const g=xl(l[u-2]);return u>1&&xl(d)===g&&f[f.length-1].path!==g?f.findIndex(Ss.bind(null,l[u-2])):h}),o=be(()=>r.value>-1&&b7(n.params,s.value.params)),i=be(()=>r.value>-1&&r.value===n.matched.length-1&&Hc(n.params,s.value.params));function a(l={}){return w7(l)?t[x(e.replace)?"replace":"push"](x(e.to)).catch(Xs):Promise.resolve()}return{route:s,href:be(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}const v7=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:Dl,setup(e,{slots:t}){const n=_t(Dl(e)),{options:s}=ae(ko),r=be(()=>({[Tl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Tl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Bi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),y7=v7;function w7(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 b7(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(!Ht(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function xl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tl=(e,t,n)=>e!=null?e:t!=null?t:n,k7=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ae(pi),r=be(()=>e.route||s.value),o=ae(Cl,0),i=be(()=>{let u=x(o);const{matched:d}=r.value;let f;for(;(f=d[u])&&!f.components;)u++;return u}),a=be(()=>r.value.matched[i.value]);ht(Cl,be(()=>i.value+1)),ht(m7,a),ht(pi,r);const l=ke();return js(()=>[l.value,a.value,e.name],([u,d,f],[h,g,v])=>{d&&(d.instances[f]=u,g&&g!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),u&&d&&(!g||!Ss(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(S=>S(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,f=a.value,h=f&&f.components[d];if(!h)return Ol(n.default,{Component:h,route:u});const g=f.props[d],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=Bi(h,Te({},v,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(f.instances[d]=null)},ref:l}));return Ol(n.default,{Component:b,route:u})||b}}});function Ol(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const E7=k7;function S7(e){const t=Z5(e.routes,e),n=e.parseQuery||p7,s=e.stringifyQuery||Fl,r=e.history,o=Hs(),i=Hs(),a=Hs(),l=Q1(yn);let u=yn;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Io.bind(null,E=>""+E),f=Io.bind(null,h7),h=Io.bind(null,Gr);function g(E,z){let I,G;return Wc(E)?(I=t.getRecordMatcher(E),G=z):G=E,t.addRoute(G,I)}function v(E){const z=t.getRecordMatcher(E);z&&t.removeRoute(z)}function S(){return t.getRoutes().map(E=>E.record)}function b(E){return!!t.getRecordMatcher(E)}function F(E,z){if(z=Te({},z||l.value),typeof E=="string"){const re=Ro(n,E,z.path),p=t.resolve({path:re.path},z),_=r.createHref(re.fullPath);return Te(re,p,{params:h(p.params),hash:Gr(re.hash),redirectedFrom:void 0,href:_})}let I;if("path"in E)I=Te({},E,{path:Ro(n,E.path,z.path).path});else{const re=Te({},E.params);for(const p in re)re[p]==null&&delete re[p];I=Te({},E,{params:f(E.params)}),z.params=f(z.params)}const G=t.resolve(I,z),xe=E.hash||"";G.params=d(h(G.params));const Be=C5(s,Te({},E,{hash:c7(xe),path:G.path})),pe=r.createHref(Be);return Te({fullPath:Be,hash:xe,query:s===Fl?_7(E.query):E.query||{}},G,{redirectedFrom:void 0,href:pe})}function k(E){return typeof E=="string"?Ro(n,E,l.value.path):Te({},E)}function $(E,z){if(u!==E)return Fs(8,{from:z,to:E})}function V(E){return ee(E)}function j(E){return V(Te(k(E),{replace:!0}))}function fe(E){const z=E.matched[E.matched.length-1];if(z&&z.redirect){const{redirect:I}=z;let G=typeof I=="function"?I(E):I;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=k(G):{path:G},G.params={}),Te({query:E.query,hash:E.hash,params:"path"in G?{}:E.params},G)}}function ee(E,z){const I=u=F(E),G=l.value,xe=E.state,Be=E.force,pe=E.replace===!0,re=fe(I);if(re)return ee(Te(k(re),{state:typeof re=="object"?Te({},xe,re.state):xe,force:Be,replace:pe}),z||I);const p=I;p.redirectedFrom=z;let _;return!Be&&D5(s,G,I)&&(_=Fs(16,{to:p,from:G}),ns(G,G,!0,!1)),(_?Promise.resolve(_):te(p,G)).catch(y=>nn(y)?nn(y,2)?y:gt(y):Re(y,p,G)).then(y=>{if(y){if(nn(y,2))return ee(Te({replace:pe},k(y.to),{state:typeof y.to=="object"?Te({},xe,y.to.state):xe,force:Be}),z||p)}else y=me(p,G,!0,pe,xe);return he(p,G,y),y})}function B(E,z){const I=$(E,z);return I?Promise.reject(I):Promise.resolve()}function te(E,z){let I;const[G,xe,Be]=F7(E,z);I=Bo(G.reverse(),"beforeRouteLeave",E,z);for(const re of G)re.leaveGuards.forEach(p=>{I.push(kn(p,E,z))});const pe=B.bind(null,E,z);return I.push(pe),is(I).then(()=>{I=[];for(const re of o.list())I.push(kn(re,E,z));return I.push(pe),is(I)}).then(()=>{I=Bo(xe,"beforeRouteUpdate",E,z);for(const re of xe)re.updateGuards.forEach(p=>{I.push(kn(p,E,z))});return I.push(pe),is(I)}).then(()=>{I=[];for(const re of E.matched)if(re.beforeEnter&&!z.matched.includes(re))if(Ht(re.beforeEnter))for(const p of re.beforeEnter)I.push(kn(p,E,z));else I.push(kn(re.beforeEnter,E,z));return I.push(pe),is(I)}).then(()=>(E.matched.forEach(re=>re.enterCallbacks={}),I=Bo(Be,"beforeRouteEnter",E,z),I.push(pe),is(I))).then(()=>{I=[];for(const re of i.list())I.push(kn(re,E,z));return I.push(pe),is(I)}).catch(re=>nn(re,8)?re:Promise.reject(re))}function he(E,z,I){for(const G of a.list())G(E,z,I)}function me(E,z,I,G,xe){const Be=$(E,z);if(Be)return Be;const pe=z===yn,re=ds?history.state:{};I&&(G||pe?r.replace(E.fullPath,Te({scroll:pe&&re&&re.scroll},xe)):r.push(E.fullPath,xe)),l.value=E,ns(E,z,I,pe),gt()}let Y;function De(){Y||(Y=r.listen((E,z,I)=>{if(!Is.listening)return;const G=F(E),xe=fe(G);if(xe){ee(Te(xe,{replace:!0}),G).catch(Xs);return}u=G;const Be=l.value;ds&&I5(gl(Be.fullPath,I.delta),bo()),te(G,Be).catch(pe=>nn(pe,12)?pe:nn(pe,2)?(ee(pe.to,G).then(re=>{nn(re,20)&&!I.delta&&I.type===fr.pop&&r.go(-1,!1)}).catch(Xs),Promise.reject()):(I.delta&&r.go(-I.delta,!1),Re(pe,G,Be))).then(pe=>{pe=pe||me(G,Be,!1),pe&&(I.delta&&!nn(pe,8)?r.go(-I.delta,!1):I.type===fr.pop&&nn(pe,20)&&r.go(-1,!1)),he(G,Be,pe)}).catch(Xs)}))}let Ie=Hs(),Ve=Hs(),je;function Re(E,z,I){gt(E);const G=Ve.list();return G.length?G.forEach(xe=>xe(E,z,I)):console.error(E),Promise.reject(E)}function $e(){return je&&l.value!==yn?Promise.resolve():new Promise((E,z)=>{Ie.add([E,z])})}function gt(E){return je||(je=!E,De(),Ie.list().forEach(([z,I])=>E?I(E):z()),Ie.reset()),E}function ns(E,z,I,G){const{scrollBehavior:xe}=e;if(!ds||!xe)return Promise.resolve();const Be=!I&&R5(gl(E.fullPath,0))||(G||!I)&&history.state&&history.state.scroll||null;return Ti().then(()=>xe(E,z,Be)).then(pe=>pe&&A5(pe)).catch(pe=>Re(pe,E,z))}const en=E=>r.go(E);let zt;const Ct=new Set,Is={currentRoute:l,listening:!0,addRoute:g,removeRoute:v,hasRoute:b,getRoutes:S,resolve:F,options:e,push:V,replace:j,go:en,back:()=>en(-1),forward:()=>en(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:Ve.add,isReady:$e,install(E){const z=this;E.component("RouterLink",y7),E.component("RouterView",E7),E.config.globalProperties.$router=z,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>x(l)}),ds&&!zt&&l.value===yn&&(zt=!0,V(r.location).catch(xe=>{}));const I={};for(const xe in yn)I[xe]=be(()=>l.value[xe]);E.provide(ko,z),E.provide(Qc,_t(I)),E.provide(pi,l);const G=E.unmount;Ct.add(E),E.unmount=function(){Ct.delete(E),Ct.size<1&&(u=yn,Y&&Y(),Y=null,l.value=yn,zt=!1,je=!1),G()}}};return Is}function is(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function F7(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iSs(u,a))?s.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>Ss(u,l))||r.push(l))}return[n,s,r]}function C7(){return ae(ko)}const D7={};function x7(e,t){const n=it("router-view");return m(),ve(n)}var T7=X(D7,[["render",x7]]);const O7="modulepreload",$l={},$7="/",He=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${$7}${s}`,s in $l)return;$l[s]=!0;const r=s.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${o}`))return;const i=document.createElement("link");if(i.rel=r?"stylesheet":O7,r||(i.as="script",i.crossOrigin=""),i.href=s,document.head.appendChild(i),r)return new Promise((a,l)=>{i.addEventListener("load",a),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};var M7={name:"PageRouter",path:"/router",component:()=>He(()=>import("./chunk.1d1c193d.js"),["luci-static/istorex/chunk.1d1c193d.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageRouterHome",redirect:"/router/index"},{path:"index",name:"PageRouterIndex",component:()=>He(()=>import("./chunk.065ea83b.js"),["luci-static/istorex/chunk.065ea83b.js","luci-static/istorex/index.js"])},{path:"network",name:"PageNetwork",component:()=>He(()=>import("./chunk.594d80ed.js"),["luci-static/istorex/chunk.594d80ed.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageNetworkIndex",component:()=>He(()=>import("./chunk.3ccf49d4.js"),["luci-static/istorex/chunk.3ccf49d4.js","luci-static/istorex/index.js"])},{path:"pppoe",component:()=>He(()=>import("./chunk.b710396a.js"),["luci-static/istorex/chunk.b710396a.js","luci-static/istorex/index.js"])},{path:"dhcp",component:()=>He(()=>import("./chunk.3b5c847d.js"),["luci-static/istorex/chunk.3b5c847d.js","luci-static/istorex/index.js"])},{path:"gateway",component:()=>He(()=>import("./chunk.d2d88129.js"),["luci-static/istorex/chunk.d2d88129.js","luci-static/istorex/index.js"])},{path:"intranet",component:()=>He(()=>import("./chunk.a1f2e21d.js"),["luci-static/istorex/chunk.a1f2e21d.js","luci-static/istorex/index.js"])},{path:"dns",component:()=>He(()=>import("./chunk.df73a910.js"),["luci-static/istorex/chunk.df73a910.js","luci-static/istorex/index.js"])}]},{path:"setting",name:"PageSetting",component:()=>He(()=>import("./chunk.178b0461.js"),["luci-static/istorex/chunk.178b0461.js","luci-static/istorex/index.js"]),children:[{path:"",name:"PageSettingIndex",component:()=>He(()=>import("./chunk.8400c4e2.js"),["luci-static/istorex/chunk.8400c4e2.js","luci-static/istorex/index.js"])},{path:"opkg",name:"SettingOpkg",component:()=>He(()=>import("./chunk.2559aa46.js"),["luci-static/istorex/chunk.2559aa46.js","luci-static/istorex/index.js"])},{path:"sandbox",component:()=>He(()=>import("./chunk.af340000.js"),["luci-static/istorex/chunk.af340000.js","luci-static/istorex/index.js"])},{path:"remotely",component:()=>He(()=>import("./chunk.09c4e52e.js"),["luci-static/istorex/chunk.09c4e52e.js","luci-static/istorex/index.js"])}]},{path:"disk",component:()=>He(()=>import("./chunk.e130b576.js"),["luci-static/istorex/chunk.e130b576.js","luci-static/istorex/index.js"]),children:[{path:"",component:()=>He(()=>import("./chunk.278424c9.js"),["luci-static/istorex/chunk.278424c9.js","luci-static/istorex/index.js"])}]},{path:"istore",component:()=>He(()=>import("./chunk.6c639c38.js"),["luci-static/istorex/chunk.6c639c38.js","luci-static/istorex/index.js"])},{path:"device",component:()=>He(()=>import("./chunk.aabbda32.js"),["luci-static/istorex/chunk.aabbda32.js","luci-static/istorex/index.js"]),children:[{path:"list",component:()=>He(()=>import("./chunk.fc4df3ed.js"),["luci-static/istorex/chunk.fc4df3ed.js","luci-static/istorex/index.js"])},{path:"interface",component:()=>He(()=>import("./chunk.48ed88a8.js"),["luci-static/istorex/chunk.48ed88a8.js","luci-static/istorex/index.js"])}]},{name:"DDNSPage",path:"ddns",component:()=>He(()=>import("./chunk.f9667c99.js"),["luci-static/istorex/chunk.f9667c99.js","luci-static/istorex/index.js"])},{path:":pathMatch(.*)*",name:"notfound",redirect:"/router/index"}]},P7={name:"PageWizard",path:"/wizard",component:()=>He(()=>import("./chunk.bad44d98.js"),["luci-static/istorex/chunk.bad44d98.js","luci-static/istorex/index.js"])},A7={name:"PageNas",path:"/nas",component:()=>He(()=>import("./chunk.726e078f.js"),["luci-static/istorex/chunk.726e078f.js","luci-static/istorex/index.js"]),children:[{name:"PageNasIndex",path:"",component:()=>He(()=>import("./chunk.8a08d904.js"),["luci-static/istorex/chunk.8a08d904.js","luci-static/istorex/index.js"])}]};const I7=S7({history:window.path_base?zc(window.path_base):Y5(),routes:[{path:"/",name:"PageIndex",component:T7,beforeEnter(e,t,n){return q(this,null,function*(){switch(Je.getModel()){case"nas":n({name:"PageNasIndex"});break;case"router":n({name:"PageRouterHome"});break;default:n({name:"PageWizard"});break}})}},P7,M7,A7,{path:"/:pathMatch(.*)*",name:"notfound",redirect:e=>{switch(console.log("redirec:",e),Je.getModel()){case"nas":return"/nas";case"router":return"/router/index";default:return"/wizard"}}}]});const R7={},B7={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"},N7=c("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),L7=c("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),Y7=c("path",{d:"M742.4 204.8l175.274667 362.752h57.941333L805.290667 204.8H742.4z",fill:"#96CAFF","p-id":"2676"},null,-1),H7=c("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),U7=c("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),z7=c("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),W7=[N7,L7,Y7,H7,U7,z7];function V7(e,t){return m(),w("svg",B7,W7)}var j7=X(R7,[["render",V7]]);const G7={},q7={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"},K7=c("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),J7=[K7];function Z7(e,t){return m(),w("svg",q7,J7)}var Q7=X(G7,[["render",Z7]]);const X7={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"},e8=c("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),t8=c("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),n8=c("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),s8=[e8,t8,n8],r8={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"},o8=c("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),i8=[o8],a8=le({__name:"info",props:{type:{type:Number,default:0}},setup(e){return(t,n)=>e.type==0?(m(),w("svg",X7,s8)):e.type==1?(m(),w("svg",r8,i8)):de("",!0)}}),l8={},u8={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"},c8=c("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),d8=[c8];function f8(e,t){return m(),w("svg",u8,d8)}var h8=X(l8,[["render",f8]]);const p8={},_8={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"},m8=c("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),g8=[m8];function v8(e,t){return m(),w("svg",_8,g8)}var y8=X(p8,[["render",v8]]);const w8={},b8={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"},k8=c("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),E8=[k8];function S8(e,t){return m(),w("svg",b8,E8)}var F8=X(w8,[["render",S8]]);const C8={},D8={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"},x8=c("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),T8=[x8];function O8(e,t){return m(),w("svg",D8,T8)}var $8=X(C8,[["render",O8]]);const M8={},P8={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"},A8=c("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),I8=[A8];function R8(e,t){return m(),w("svg",P8,I8)}var B8=X(M8,[["render",R8]]);const N8={},L8={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"},Y8=c("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),H8=[Y8];function U8(e,t){return m(),w("svg",L8,H8)}var z8=X(N8,[["render",U8]]);const W8={},V8={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"},j8=c("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),G8=[j8];function q8(e,t){return m(),w("svg",V8,G8)}var K8=X(W8,[["render",q8]]);const J8={},Z8={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"},Q8=c("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),X8=[Q8];function ep(e,t){return m(),w("svg",Z8,X8)}var tp=X(J8,[["render",ep]]);const np={},sp={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"},rp=c("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),op=c("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),ip=[rp,op];function ap(e,t){return m(),w("svg",sp,ip)}var Xc=X(np,[["render",ap]]);const lp={},up=e=>(et("data-v-70156d34"),e=e(),tt(),e),cp={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"},dp=up(()=>c("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)),fp=[dp];function hp(e,t){return m(),w("svg",cp,fp)}var pp=X(lp,[["render",hp],["__scopeId","data-v-70156d34"]]),_p={install(e){e.component("icon-disk",j7),e.component("icon-nav",Q7),e.component("icon-info",a8),e.component("icon-search",h8),e.component("icon-star-off",F8),e.component("icon-star-on",y8),e.component("icon-left",$8),e.component("icon-right",B8),e.component("icon-top",z8),e.component("icon-bottom",K8),e.component("icon-outlogin",tp),e.component("icon-close",Xc),e.component("icon-loading",pp)}};const mp={class:"toips-container"},gp=["onClick"],vp={key:1},yp=le({__name:"index",setup(e){const t=As(),n=be(()=>t.toips);return(s,r)=>{const o=it("router-link");return m(),w("div",mp,[(m(!0),w(ce,null,nt(x(n),i=>(m(),w("li",{class:"toips-item",onClick:a=>i.f()},[i.path?(m(),ve(o,{key:0,to:i.path},{default:We(()=>[at(U(i.info),1)]),_:2},1032,["to"])):(m(),w("span",vp,U(i.info),1))],8,gp))),256))])}}});var wp=X(yp,[["__scopeId","data-v-d6bd3248"]]);const bp=le({__name:"main",setup(e){const t=As();return(n,s)=>{const r=it("layout-header"),o=it("router-view");return m(),w("div",{id:"main",key:x(t).reloadCount},[Ce(r),Ce(o,null,{default:We(({Component:i,route:a})=>[(m(),ve(lu,null,{default:We(()=>[(m(),ve(Pi(i),{key:a.path}))]),_:2},1024))]),_:1}),Ce(wp)])}}}),kp={id:"page",class:"page-container"},Ep={class:"page-flex"},Sp={class:"page-sidebar"},Fp=["onClick"],Cp={class:"page-main"},Dp=le({__name:"page",props:{menus:{type:Array,required:!0}},setup(e){return(t,n)=>{const s=it("router-link");return m(),w("div",kp,[c("div",Ep,[c("div",Sp,[(m(!0),w(ce,null,nt(e.menus,r=>(m(),w(ce,null,[r.path?(m(),ve(s,{key:0,to:r.path},{default:We(()=>[c("span",null,U(r.title),1)]),_:2},1032,["to"])):de("",!0),r.fn?(m(),w("a",{key:1,onClick:r.fn},[c("span",null,U(r.title),1)],8,Fp)):de("",!0)],64))),256))]),c("div",Cp,[Et(t.$slots,"default")])])])}}}),e1=window.HostName||"iStoreX",xp=(window==null?void 0:window.istoreXVer)||"";var t1={HostName:e1};console.log("".concat(`%c OpenWrt-${e1}_iStoreX v${xp}`),"color: #fadfa3; background: #030307; padding:5px 0;");const n1=e=>(et("data-v-ab2441f8"),e=e(),tt(),e),Tp={class:"logo"},Op=["href"],$p={key:0,class:"nav-item ota-upgrade",target:"_blank",href:"/cgi-bin/luci/admin/system/ota"},Mp=n1(()=>c("span",null,"\u56FA\u4EF6\u66F4\u65B0",-1)),Pp=n1(()=>c("em",null,null,-1)),Ap=[Mp,Pp],Ip=le({__name:"nav",setup(e){As();const t=ke(!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(()=>q(this,null,function*(){try{const r=yield ie.System.CheckUpdate.GET(),{result:o}=r.data;o&&(t.value=o.needUpdate)}catch(r){console.log(r)}}))(),(r,o)=>{const i=it("router-link");return m(),w("nav",null,[c("div",Tp,U(x(t1).HostName),1),(m(!0),w(ce,null,nt(x(n),a=>(m(),w(ce,null,[a.path?(m(),ve(i,{key:0,class:"nav-item",to:a.path},{default:We(()=>[c("span",null,U(a.name),1)]),_:2},1032,["to"])):de("",!0),a.href?(m(),w("a",{key:1,class:"nav-item",target:"_blank",href:a.href},[c("span",null,U(a.name),1)],8,Op)):de("",!0)],64))),256)),t.value?(m(),w("a",$p,Ap)):de("",!0)])}}});var Rp=X(Ip,[["__scopeId","data-v-ab2441f8"]]);const mt=e=>(et("data-v-0003d2de"),e=e(),tt(),e),Bp={class:"tool"},Np=mt(()=>c("div",{class:"tool-item_icon"},[c("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"},[c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("path",{d:"M458.17784421 744.17198816h500.44617993v11.03945938H458.17784421zM637.0540299 847.24644427h142.70078019v24.94771326h-142.70078019z",fill:"#6E6E96","p-id":"18922"}),c("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"}),c("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"}),c("path",{d:"M512.22134677 487.62221103h396.47936426v229.11670432H512.22134677z",fill:"#A2C8F2","p-id":"18925"}),c("path",{d:"M653.79970709 714.00257971l250.40435038-226.38036868v73.11070843l-166.0798938 153.26966025z",fill:"#DEEFFF","p-id":"18926"}),c("path",{d:"M904.20405747 560.73291946l-166.0798938 153.26966025h166.0798938z",fill:"#FFFFFF","p-id":"18927"}),c("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"}),c("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"}),c("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"}),c("path",{d:"M226.97315939 172.01289774h200.35206382v257.6896257H226.97315939z",fill:"#B4D1F2","p-id":"18931"}),c("path",{d:"M236.25578625 429.70252344l191.06246531-191.07640779v64.35791951L300.59976327 429.70252344z",fill:"#DEEFFF","p-id":"18932"}),c("path",{d:"M427.31825156 302.98403516L300.59976327 429.70252344h126.71848829z",fill:"#FFFFFF","p-id":"18933"}),c("path",{d:"M226.97315939 397.73793882h200.34509217v27.88622424H226.97315939z",fill:"#6E6E96","p-id":"18934"}),c("path",{d:"M229.07508402 216.7528585l47.87716085-57.25041835H362.81741532L230.36830723 301.32131867z",fill:"#FFFFFF","p-id":"18935"}),c("path",{d:"M404.10994128 159.50244015L233.14995816 330.45545163l-0.20217535 24.4597044 195.40923047-195.41271588z",fill:"#FFFFFF","p-id":"18936"}),c("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"}),c("path",{d:"M226.97315939 150.84725349h200.34509217v27.88622423H226.97315939z",fill:"#6E6E96","p-id":"18938"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("path",{d:"M173.14577548 601.65595379h329.98814813v222.86670365H173.14577548z",fill:"#8CBDF2","p-id":"18945"}),c("path",{d:"M279.39228913 814.06183752l217.77049649-204.02607348v59.87172381l-144.43321235 144.15434967z",fill:"#DEEFFF","p-id":"18946"}),c("path",{d:"M497.16278562 669.90748785l-144.43321235 144.15434967h144.43321235z",fill:"#FFFFFF","p-id":"18947"}),c("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"}),c("path",{d:"M173.14577548 601.65595379h324.02049637v23.37562739H173.14577548zM104.07159753 899.06602042h469.17177952v16.63761867H104.07159753z",fill:"#6E6E96","p-id":"18949"}),c("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"}),c("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)),Lp={class:"tool-item_name"},Yp=mt(()=>c("span",{class:"t"},null,-1)),Hp={class:"b"},Up={class:"tool-item_icon"},zp={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"}},Wp=mt(()=>c("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)),Vp=mt(()=>c("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)),jp=mt(()=>c("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)),Gp=mt(()=>c("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)),qp=mt(()=>c("path",{d:"M153.6 844.8h68.693333l-25.6 76.8H179.2l-25.6-76.8z",fill:"#96CAFF","p-id":"1419"},null,-1)),Kp=mt(()=>c("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)),Jp=mt(()=>c("path",{d:"M844.8 844.8h68.693333l-25.6 76.8H870.4l-25.6-76.8z",fill:"#96CAFF","p-id":"1421"},null,-1)),Zp=mt(()=>c("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)),Qp=mt(()=>c("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)),Xp=mt(()=>c("path",{d:"M742.4 358.4l187.050667 256.597333h57.941333L805.290667 358.4H742.4z",fill:"#96CAFF","p-id":"1424"},null,-1)),e_=mt(()=>c("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_=mt(()=>c("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)),n_=[Wp,Vp,jp,Gp,qp,Kp,Jp,Zp,Qp,Xp,e_,t_],s_={class:"tool-item_name"},r_={class:"t"},o_={key:0},i_={key:1},a_={key:2},l_={key:4},u_={class:"b"},c_={class:"tool-item"},d_=ef('
',1),f_={class:"tool-item_name"},h_=["href"],p_=le({__name:"tool",setup(e){const t=Je.stampForm;Je.stampForm;const n=Je.byteToSize,s=As(),r=be(()=>s.network),o=be(()=>s.device),i=be(()=>s.updown);return(a,l)=>{const u=it("router-link");return m(),w("div",Bp,[Ce(u,{class:"tool-item",to:"/router/device/list",title:"\u67E5\u770B\u5F53\u524D\u8FDE\u63A5\u8BBE\u5907"},{default:We(()=>[Np,c("div",Lp,[c("span",null,U(x(o).devices.length),1)])]),_:1}),c("em",null,[Yp,c("span",Hp,U(x(t)(x(r).uptimeStamp)),1)]),Ce(u,{class:"tool-item",to:"/router/device/interface",title:"\u67E5\u770B\u5F53\u524D\u63A5\u53E3"},{default:We(()=>{var d;return[c("div",Up,[(m(),w("svg",zp,n_))]),c("div",s_,[c("span",null,U(((d=x(r).defaultInterface)==null?void 0:d.toLocaleUpperCase())||"--"),1)])]}),_:1}),c("em",null,[c("span",r_,[x(r).networkInfo=="netSuccess"?(m(),w("span",o_," \u5DF2\u8054\u7F51 ")):x(r).networkInfo=="dnsFailed"?(m(),w("span",i_," DNS\u9519\u8BEF ")):x(r).networkInfo=="softSourceFailed"?(m(),w("span",a_," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(m(),w("span",l_," \u68C0\u6D4B\u4E2D "))]),c("span",u_," \u4E0A\u4F20: "+U(x(n)(x(i).up))+" \uFF5C \u4E0B\u8F7D: "+U(x(n)(x(i).download)),1)]),c("div",c_,[d_,c("div",f_,[c("a",{href:x(r).ipv4addr},[c("span",null,U(x(r).ipv4addr||"--"),1)],8,h_)])])])}}});var __=X(p_,[["__scopeId","data-v-0003d2de"]]);const m_={class:"header-desktop"},g_=le({__name:"header",setup(e){const t=ke(!1);return C7().afterEach(()=>{t.value=!1}),(s,r)=>(m(),w("header",m_,[Ce(Rp),Ce(__)]))}});var v_=X(g_,[["__scopeId","data-v-5fdbc26a"]]);const y_={};function w_(e,t){const n=it("router-view");return m(),ve(n,{name:"default"},{default:We(({Component:s,route:r})=>[(m(),ve(lu,null,{default:We(()=>[(m(),ve(Pi(s),{key:r.path}))]),fallback:We(()=>[]),_:2},1024))]),_:1})}var b_=X(y_,[["render",w_],["__scopeId","data-v-b888f30a"]]);const k_={};function E_(e,t){return m(),w("section",null,[Et(e.$slots,"default",{},void 0,!0)])}var S_=X(k_,[["render",E_],["__scopeId","data-v-6a6bc058"]]);const F_={class:"section-title"},C_=le({__name:"section-title",props:{title:{type:String,default:""}},setup(e){return(t,n)=>(m(),w("div",F_,[c("span",null,U(e.title),1),Et(t.$slots,"default",{},void 0,!0)]))}});var D_=X(C_,[["__scopeId","data-v-5cb5900e"]]);const x_={},T_={class:"section-container"};function O_(e,t){return m(),w("div",T_,[Et(e.$slots,"default",{},void 0,!0)])}var $_=X(x_,[["render",O_],["__scopeId","data-v-790a0322"]]);const M_={},P_={class:"section-item"};function A_(e,t){return m(),w("div",P_,[Et(e.$slots,"default",{},void 0,!0)])}var I_=X(M_,[["render",A_],["__scopeId","data-v-abe9a852"]]),R_={install(e){e.component("layout-main",bp),e.component("layout-page",Dp),e.component("layout-header",v_),e.component("router-loading",b_),e.component("nas-section",S_),e.component("nas-section-title",D_),e.component("nas-section-container",$_),e.component("nas-section-item",I_)}},ys;class ca{constructor(){wa(this,ys,void 0)}install(t){ba(this,ys,t)}openWindow(t,n){const s=document.createElement("div"),r=Ce(t,So(yt({},n),{close:()=>{Yr(null,s),s.remove()}}));Fo(this,ys)&&(r.appContext=Fo(this,ys)._context),Yr(r,s),document.body.appendChild(s)}}ys=new WeakMap;const B_=["onClick"],N_=le({__name:"index",props:{setup:{type:String,default:"pppoe"}},setup(e){const n=ke(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,o)=>{const i=it("popups-container");return m(),ve(i,{title:"\u529F\u80FD\u7BA1\u7406",transparent:""},{left:We(()=>[(m(),w(ce,null,nt(s,a=>c("li",{class:Kt(["network-menu_item",{on:n.value==a.name}]),onClick:l=>n.value=a.name},[c("span",null,U(a.title),1)],10,B_)),64))]),right:We(()=>[]),_:1})}}});const L_={key:0,id:"app-dialog"},Y_={key:0,class:"app-dialog_bg"},H_={class:"app-dialog_header"},U_={class:"app-dialog_body"},z_=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=ke(!1),r=()=>{n.beforeClose&&n.beforeClose()===!1||(s.value=!1,t("update:modelValue",!1),t("handleClose"))};return Qn(()=>{s.value=!0}),(o,i)=>(m(),ve(oo,{name:"dialog1"},{default:We(()=>[s.value?(m(),w("div",L_,[e.bg?(m(),w("div",Y_)):de("",!0),c("div",{class:"app-dialog_container",style:Cs({width:e.width})},[c("div",H_,[c("span",null,U(e.title),1),c("button",{class:"close",onClick:i[0]||(i[0]=a=>r())},[Ce(Xc)])]),c("div",U_,[Et(o.$slots,"default",{},void 0,!0)])],4)])):de("",!0)]),_:3}))}});var da=X(z_,[["__scopeId","data-v-3f4de4bc"]]);const fa=e=>(et("data-v-24ffa06c"),e=e(),tt(),e),W_={class:"tools-container"},V_=fa(()=>c("h1",null,"\u6B22\u8FCE\u4F7F\u7528iStoreOS",-1)),j_=fa(()=>c("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)),G_=fa(()=>c("p",null,"\u6BD4\u5982\u6570\u636E\u76EE\u5F55\u3001\u5F71\u97F3\u548C\u8FDC\u7A0B\u4E0B\u8F7D\u914D\u7F6E\u7B49",-1)),q_={class:"btns"},K_=le({__name:"top",setup(e){const t=ae("next");return ae("back"),(n,s)=>(m(),w("div",W_,[V_,j_,G_,c("div",q_,[c("button",{class:"next",onClick:s[0]||(s[0]=(...r)=>x(t)&&x(t)(...r))},"\u4E0B\u4E00\u6B65")])]))}});var J_=X(K_,[["__scopeId","data-v-24ffa06c"]]);const Nn=e=>(et("data-v-99d95164"),e=e(),tt(),e),Z_=["onSubmit"],Q_=Nn(()=>c("div",{class:"label-name"}," \u63A5\u4E0B\u6765\u8BF7\u9009\u62E9\u4E00\u4E2A\u4E3B\u76EE\u5F55\u7A7A\u95F4\uFF08>20G && EXT4\uFF09 ",-1)),X_={class:"label-value"},e9=Nn(()=>c("option",{value:""},"\u9009\u62E9\u5B58\u50A8\u7A7A\u95F4",-1)),t9=["value","disabled"],n9=Nn(()=>c("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)),s9={class:"form-item"},r9=Nn(()=>c("label",null," \u7F13\u5B58\u76EE\u5F55 ",-1)),o9={class:"label-value"},i9=Nn(()=>c("label",null," \u4E0B\u8F7D\u76EE\u5F55 ",-1)),a9={class:"label-value"},l9=Nn(()=>c("label",null," \u914D\u7F6E\u76EE\u5F55 ",-1)),u9={class:"label-value"},c9=Nn(()=>c("label",null,[at(" docker\u76EE\u5F55 "),c("span",null,[c("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)),d9={class:"label-value"},f9={class:"btns"},h9=Nn(()=>c("button",{class:"next"},"\u4E0B\u4E00\u6B65",-1)),p9=le({__name:"path",setup(e){const t=As(),n=be(()=>{var f;return((f=t==null?void 0:t.disk)==null?void 0:f.disks)||[]}),s=be(()=>{var f;return((f=t==null?void 0:t.raid)==null?void 0:f.disks)||[]}),r=be(()=>[...n.value,...s.value].filter(g=>g.childrens).map(g=>g.childrens)),o=ae("back"),i=ae("next"),a=()=>{i()},l=f=>!(f!=null&&f.mountPoint)||f.filesystem!="ext4"||Number(f.sizeInt)<21474836480,u=()=>{d.value.cachePath=d.value.path+"/Caches",d.value.plublicPath=d.value.path+"/Public",d.value.downloadPath=d.value.path+"/Public/Downloads",d.value.settingPath=d.value.path+"/Configs",d.value.dockerPath=d.value.path+"/docker"},d=ae("config");return(f,h)=>(m(),w("form",{class:"tools-container",onSubmit:Xn(a,["prevent"])},[Q_,c("div",X_,[c("label",null,[Ke(c("select",{required:"","onUpdate:modelValue":h[0]||(h[0]=g=>x(d).path=g),onChange:u},[e9,(m(!0),w(ce,null,nt(x(r),g=>(m(),w(ce,null,[(m(!0),w(ce,null,nt(g,v=>(m(),w(ce,null,[v.mountPoint?(m(),w("option",{key:0,value:v.mountPoint,disabled:l(v)},U(v.mountPoint)+" ["+U(`${v.name} ${v.total}`)+"] ",9,t9)):de("",!0)],64))),256))],64))),256))],544),[[Iu,x(d).path]])])]),n9,x(d).path!=""?(m(),w(ce,{key:0},[c("div",s9,[r9,c("div",o9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[1]||(h[1]=g=>x(d).cachePath=g),required:""},null,512),[[En,x(d).cachePath,void 0,{trim:!0}]])])]),i9,c("div",a9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[2]||(h[2]=g=>x(d).downloadPath=g),required:""},null,512),[[En,x(d).downloadPath,void 0,{trim:!0}]])])]),l9,c("div",u9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[3]||(h[3]=g=>x(d).settingPath=g),required:""},null,512),[[En,x(d).settingPath,void 0,{trim:!0}]])])]),c9,c("div",d9,[c("label",null,[Ke(c("input",{type:"text","onUpdate:modelValue":h[4]||(h[4]=g=>x(d).dockerPath=g),required:""},null,512),[[En,x(d).dockerPath,void 0,{trim:!0}]])])])]),c("div",f9,[c("button",{class:"back",type:"button",onClick:h[5]||(h[5]=(...g)=>x(o)&&x(o)(...g))},"\u4E0A\u4E00\u6B65"),h9])],64)):de("",!0)],40,Z_))}});var _9=X(p9,[["__scopeId","data-v-99d95164"]]);const m9=e=>(et("data-v-7b090953"),e=e(),tt(),e),g9={class:"tools-container"},v9=m9(()=>c("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u4E0B\u8F7D\u5DE5\u5177? ",-1)),y9={class:"form-item"},w9=["value"],b9=["src"],k9={class:"btns"},E9=le({__name:"download",setup(e){const t=ae("next"),n=ae("back"),s=ae("config"),r=ae("apps");be(()=>s.value);const o=_t([{name:"aria2",title:"Aria2\u4E0B\u8F7D\u5668"},{name:"transmission",title:"Transmission\u4E0B\u8F7D\u5668"},{name:"qbittorrent",title:"qBittorrent\u4E0B\u8F7D\u5668"}]),i=a=>ie.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${a}/logo.png`);return(a,l)=>(m(),w("div",g9,[v9,(m(!0),w(ce,null,nt(o,u=>(m(),w("div",y9,[c("label",null,[Ke(c("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=d=>ze(r)?r.value=d:null)},null,8,w9),[[Ni,x(r)]]),c("img",{src:i(u.name),alt:""},null,8,b9),at(" "+U(u.title),1)])]))),256)),c("div",k9,[c("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>x(n)&&x(n)(...u))},"\u4E0A\u4E00\u6B65"),c("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>x(t)&&x(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var S9=X(E9,[["__scopeId","data-v-7b090953"]]);const F9=e=>(et("data-v-4d855e61"),e=e(),tt(),e),C9={class:"tools-container"},D9=F9(()=>c("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u5F71\u97F3\u5A31\u4E50? ",-1)),x9={class:"form-item"},T9=["value"],O9=["src"],$9={class:"btns"},M9=le({__name:"media",setup(e){const t=ae("next"),n=ae("back"),s=ae("config"),r=ae("apps");be(()=>s.value);const o=_t([{name:"jellyfin",title:"Jellyfin\u79C1\u6709\u5F71\u9662"},{name:"emby",title:"Emby\u5F71\u9662"},{name:"plex",title:"Plex\u5F71\u9662"}]),i=a=>ie.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${a}/logo.png`);return(a,l)=>(m(),w("div",C9,[D9,(m(!0),w(ce,null,nt(o,u=>(m(),w("div",x9,[c("label",null,[Ke(c("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=d=>ze(r)?r.value=d:null)},null,8,T9),[[Ni,x(r)]]),c("img",{src:i(u.name),alt:""},null,8,O9),at(" "+U(u.title),1)])]))),256)),c("div",$9,[c("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>x(n)&&x(n)(...u))},"\u4E0A\u4E00\u6B65"),c("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>x(t)&&x(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var P9=X(M9,[["__scopeId","data-v-4d855e61"]]);const A9=e=>(et("data-v-2b6459ac"),e=e(),tt(),e),I9={class:"tools-container"},R9=A9(()=>c("div",{class:"label-name"}," \u9009\u62E9\u8981\u5B89\u88C5\u7684\u591A\u5A92\u4F53\u5DE5\u5177 ",-1)),B9={class:"form-item"},N9=["value"],L9=["src"],Y9={class:"btns"},H9=le({__name:"multimedia",setup(e){const t=ae("next"),n=ae("back"),s=ae("config"),r=ae("apps");be(()=>s.value);const o=_t([{name:"photoprism",title:"PhotoPrism\u76F8\u518C\u7BA1\u7406"},{name:"navidrome",title:"Navidrome\u97F3\u4E50"},{name:"lanraragi",title:"LANraragi\u7535\u5B50\u4E66"}]),i=a=>ie.ApiStore.getStoreAppIcon(`/static-icon/openwrt-app-meta/app-meta-${a}/logo.png`);return(a,l)=>(m(),w("div",I9,[R9,(m(!0),w(ce,null,nt(o,u=>(m(),w("div",B9,[c("label",null,[Ke(c("input",{type:"checkbox",value:u.name,"onUpdate:modelValue":l[0]||(l[0]=d=>ze(r)?r.value=d:null)},null,8,N9),[[Ni,x(r)]]),c("img",{src:i(u.name),alt:""},null,8,L9),at(" "+U(u.title),1)])]))),256)),c("div",Y9,[c("button",{type:"button",class:"back",onClick:l[1]||(l[1]=(...u)=>x(n)&&x(n)(...u))},"\u4E0A\u4E00\u6B65"),c("button",{class:"next",type:"button",onClick:l[2]||(l[2]=(...u)=>x(t)&&x(t)(...u))},"\u4E0B\u4E00\u6B65")])]))}});var U9=X(H9,[["__scopeId","data-v-2b6459ac"]]);const s1=e=>(et("data-v-a11bdd32"),e=e(),tt(),e),z9={class:"nalert"},W9={key:0,class:"nalert-container"},V9={class:"nalert-data"},j9={class:"nalert-body"},G9=s1(()=>c("div",{class:"nalert-bodt_title"},[c("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"},[c("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"})]),c("span",null,U("\u63D0\u793A"))],-1)),q9={class:"nalert-bodt_msg"},K9=s1(()=>c("a",null,"docker\u8981\u8FC1\u79FB\u7684\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),J9=at(" \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 "),Z9=at(" \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 "),Q9={class:"nalert-bodt_btns"},X9=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=ke(!1),s=ke(1),r=()=>{t.callback(s.value)},o=()=>{t.close()};return Qn(()=>{setTimeout(()=>{n.value=!0},0)}),(i,a)=>(m(),w("div",z9,[e.bg?(m(),w("div",{key:0,class:"nalert-bg",onClick:o})):de("",!0),Ce(oo,{name:"dialog-nlaert"},{default:We(()=>[n.value?(m(),w("div",W9,[c("div",V9,[c("div",j9,[G9,c("div",q9,[K9,c("label",null,[Ke(c("input",{type:"radio",value:1,"onUpdate:modelValue":a[0]||(a[0]=l=>s.value=l)},null,512),[[On,s.value]]),J9]),c("label",null,[Ke(c("input",{type:"radio",value:0,"onUpdate:modelValue":a[1]||(a[1]=l=>s.value=l)},null,512),[[On,s.value]]),Z9])]),c("div",Q9,[c("button",{class:"next",onClick:a[2]||(a[2]=l=>r())}," \u786E\u5B9A "),c("button",{class:"clear",onClick:a[3]||(a[3]=l=>o())}," \u53D6\u6D88 ")])])])])):de("",!0)]),_:1})]))}});var em=X(X9,[["__scopeId","data-v-a11bdd32"]]),tm=()=>new Promise((e,t)=>{const n=document.createElement("div"),s=()=>{Yr(null,n),n.remove()},o=Ce(em,yt({},{callback:i=>{e(i),s()},close:()=>{t(),s()}}));Yr(o,n),document.body.appendChild(n)});const ha=e=>(et("data-v-11842e6c"),e=e(),tt(),e),nm={class:"tools-container"},sm={key:0,class:"block"},rm=ha(()=>c("li",null," \u8FC1\u79FBdocker\u76EE\u5F55 ",-1)),om=ha(()=>c("li",null," \u751F\u6210\u6570\u636E\u7684\u914D\u7F6E\u76EE\u5F55 ",-1)),im=ha(()=>c("li",null," \u662F\u5426\u7EE7\u7EED\uFF1F ",-1)),am={key:1,class:"block block-msg"},lm={class:"msg-li"},um={class:"msg-item"},cm={class:"btns"},dm=["disabled"],fm=["disabled"],hm=le({__name:"install",setup(e){ae("next");const t=ae("back");ae("init");const n=ae("apps"),s=ae("config");ke(0);const r=ae("disabled"),o=ke([]),i=ke(!1),a=()=>q(this,null,function*(){if(!!window.confirm("\u60A8\u786E\u5B9A\u8981\u6267\u884C\u64CD\u4F5C\u5417?")){if(o.value=[],o.value.push("\u521D\u59CB\u5316\u914D\u7F6E..."),r.value=!0,(yield f())!==!0){r.value=!1;return}if((yield u())!==!0){r.value=!1;return}if((yield d())!==!0){r.value=!1;return}o.value.push("\u914D\u7F6E\u5B8C\u6210,\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E"),o.value.push("\u8BF7\u5173\u95ED\u7A97\u53E3"),i.value=!0}}),l=()=>{localStorage.setItem("nas_guide_init","1"),window.location.reload()},u=()=>q(this,null,function*(){let v=!1;o.value.push("\u914D\u7F6E\u76EE\u5F55...");try{const S=s.value,b={home:S.path,downloads:S.downloadPath,configs:S.settingPath,caches:S.cachePath,public:S.plublicPath},F=yield ie.Quickstart.Guide.GlobalFolders.POST(b);if(F.data){const{success:k,error:$,scope:V,detail:j}=F.data;if((k||0)==0&&(v=!0,o.value.push("\u76EE\u5F55\u914D\u7F6E\u5B8C\u6210...")),$)throw $}}catch(S){o.value.push(S)}return v}),d=()=>q(this,null,function*(){let v=!1;const S=n.value;if(o.value.push("\u5B89\u88C5\u63D2\u4EF6..."),S.length>0)try{const b={packages:S},F=yield ie.Quickstart.AutoSetup.POST(b);if(F.data){const{success:k,error:$}=F.data;if(k==0&&(o.value.push("\u5DF2\u63D0\u4EA4\u81F3\u540E\u5929\u5B89\u88C5"),v=!0),$)throw $}}catch(b){o.value.push(b)}else o.value.push("\u6CA1\u6709\u9700\u8981\u5B89\u88C5\u7684\u63D2\u4EF6,\u8DF3\u8FC7"),v=!0;return v}),f=()=>q(this,null,function*(){let v=!1;o.value.push("\u6B63\u5728\u83B7\u53D6docker\u72B6\u6001");const{dockerPath:S}=s.value;try{const b=yield ie.Quickstart.Guide.DockerStatus.GET();if(b.data){const{success:F,error:k,result:$}=b.data;if(k)throw k;if($&&$.path===S)return o.value.push("docker\u8DEF\u5F84\u4E00\u81F4,\u8DF3\u8FC7\u8FC1\u79FB"),!0}}catch(b){return o.value.push(b),!1}o.value.push("\u6B63\u5728\u8FC1\u79FBdocker...");try{const b=yield ie.Quickstart.Guide.DockerTransfer.POST({path:S,force:!1});if(b.data){const{result:F,success:k,error:$}=b.data;if((k||0)==0)if(F!=null&&F.emptyPathWarning)try{switch(yield tm()){case 0:v=yield h(S);break;case 1:v=yield g(S);break;default:o.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),v=!0}}catch(V){o.value.push("\u8DF3\u8FC7\u8FC1\u79FBdocker"),v=!0}else v=!0,o.value.push("\u8FC1\u79FB\u5B8C\u6210...");if($)throw b.data.error}}catch(b){o.value.push(b)}return v}),h=v=>q(this,null,function*(){let S=!1;try{const b=yield ie.Quickstart.Guide.DockerTransfer.POST({path:v,force:!0,overwriteDir:!0});if(b.data){const{result:F,success:k,error:$}=b.data;if((k||0)==0&&(F!=null&&F.emptyPathWarning?o.value.push("\u8FC1\u79FB\u5931\u8D25..."):(S=!0,o.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),$)throw b.data.error}}catch(b){o.value.push(b)}return S}),g=v=>q(this,null,function*(){let S=!1;try{const b=yield ie.Quickstart.Guide.DockerTransfer.POST({path:v,force:!0,overwriteDir:!1});if(b.data){const{result:F,success:k,error:$}=b.data;if((k||0)==0&&(F!=null&&F.emptyPathWarning?o.value.push("\u8FC1\u79FB\u5931\u8D25..."):(S=!0,o.value.push("\u8FC1\u79FB\u5B8C\u6210..."))),$)throw b.data.error}}catch(b){o.value.push(b)}return S});return(v,S)=>(m(),w("div",nm,[x(r)?de("",!0):(m(),w("div",sm,[rm,om,c("li",null," \u5B89\u88C5\u9009\u4E2D\u7684 "+U(x(n).length)+" \u4E2A\u63D2\u4EF6 ",1),im])),o.value.length>0?(m(),w("div",am,[(m(!0),w(ce,null,nt(o.value,b=>(m(),w("li",lm,[c("div",um,U(b),1)]))),256))])):de("",!0),c("div",cm,[i.value?(m(),w("button",{key:1,onClick:l,class:"next"},"\u5173\u95ED")):(m(),w(ce,{key:0},[c("button",{class:"back",onClick:S[0]||(S[0]=(...b)=>x(t)&&x(t)(...b)),disabled:x(r)},"\u4E0A\u4E00\u6B65",8,dm),c("button",{class:"next",onClick:a,disabled:x(r)},"\u5B89\u88C5\u5E76\u914D\u7F6E",8,fm)],64))])]))}});var pm=X(hm,[["__scopeId","data-v-11842e6c"]]);const _m=e=>(et("data-v-0dc4c17e"),e=e(),tt(),e),mm={class:"tools-container"},gm=_m(()=>c("div",{class:"block"},[c("p",null," \u914D\u7F6E\u5B8C\u6210 "),c("p",null,"\u7CFB\u7EDF\u4F1A\u5728\u540E\u53F0\u6267\u884C\u8F6F\u4EF6\u7684\u5B89\u88C5\u548C\u914D\u7F6E")],-1)),vm=le({__name:"success",setup(e){const t=ae("init"),n=()=>{t(),window.location.reload()};return(s,r)=>(m(),w("div",mm,[gm,c("div",{class:"btns"},[c("button",{onClick:n,class:"next"},"\u77E5\u9053\u4E86")])]))}});var ym=X(vm,[["__scopeId","data-v-0dc4c17e"]]);const wm={class:"nas-tools_item"},bm=le({__name:"index",props:{close:Function},setup(e){const t=e,n=be(()=>[J_,_9,S9,P9,U9,pm,ym]),s=Rn(),r=()=>{if(g.value)return!1},o=()=>{var v,S,b,F;u(),t.close&&t.close(),s&&((b=(S=(v=s==null?void 0:s.appContext)==null?void 0:v.config)==null?void 0:S.globalProperties)==null?void 0:b.$close)&&((F=s.appContext.config.globalProperties)==null||F.$close())},i=ke(0),a=()=>{g.value||i.value>=n.value.length-1||i.value++},l=()=>{g.value||i.value!=0&&i.value--},u=()=>{ie.Storage.Set.POST({key:"nas_guide_init",type:"option",values:["1"]}).then(v=>{})},d=be(()=>({transform:`translateX(${i.value*-100}%)`})),f=ke({path:"",cachePath:"",downloadPath:"",settingPath:"",dockerPath:"",plublicPath:""}),h=ke([]),g=ke(!1);return ht("next",a),ht("back",l),ht("init",u),ht("config",f),ht("apps",h),ht("disabled",g),(v,S)=>(m(),ve(da,{class:"nas-dialog",title:"iStoreOS",onHandleClose:o,"before-close":r,width:"860px"},{default:We(()=>[c("div",{class:"nas-tools",style:Cs(x(d))},[(m(!0),w(ce,null,nt(x(n),(b,F)=>(m(),w("div",wm,[F==i.value?(m(),ve(Pi(b),{key:0})):de("",!0)]))),256))],4)]),_:1}))}});var km=X(bm,[["__scopeId","data-v-c4e63fa4"]]);class Em extends ca{OpenNasSettingWindow(){this.openWindow(N_)}OpenGuideWindow(){this.openWindow(km)}}const Sm=new Em;const r1=e=>(et("data-v-109bceb3"),e=e(),tt(),e),Fm={class:"app-item"},Cm={class:"app-card"},Dm={class:"app-item_icon"},xm=["src"],Tm={class:"app-item_info"},Om={class:"app-title"},$m={class:"app-as"},Mm=r1(()=>c("span",{style:{margin:"0 10px"}},"|",-1)),Pm=["title"],Am={key:0,class:"app-btn"},Im={key:1,class:"app-btn"},Rm=r1(()=>c("div",null,null,-1)),Bm=le({__name:"app",props:{app:{type:Object,required:!0}},setup(e){const t=e,n=Yc(),s=Je.numberFormat,r=be(()=>n.appsExpand[t.app.name]||{downloadCount:0,isStar:null,name:t.app.name,starCount:0}),o=()=>{oe.Message("\u60A8\u5DF2\u70B9\u8D5E\u8FC7\u4E86")},i=()=>q(this,null,function*(){var a;try{const l=yield ie.ApiStore.star.POST({appId:t.app.name,deviceId:Je.getDeviceId()});((a=l==null?void 0:l.data)==null?void 0:a.success)==0&&n.appsExpand[t.app.name]&&(n.appsExpand[t.app.name].isStar=!0)}catch(l){oe.Error(`${l}`)}});return(a,l)=>{const u=it("icon-star-off"),d=it("icon-star-on");return m(),w("div",Fm,[c("div",Cm,[c("div",Dm,[c("img",{src:e.app.getIcon(),alt:""},null,8,xm)]),c("div",Tm,[c("div",Om,[at(U(e.app.title)+" ",1),c("em",null,U(e.app.version),1)]),c("div",$m,[c("span",null,U(x(s)(x(r).downloadCount))+" \u6B21\u4E0B\u8F7D ",1),Mm,c("span",null,U(x(s)(x(r).starCount))+" \u6B21\u70B9\u8D5E ",1),x(r).isStar!=null?(m(),w(ce,{key:0},[x(r).isStar?(m(),w("a",{key:0,class:"star-btn",onClick:l[0]||(l[0]=f=>o())},[Ce(u)])):(m(),w("a",{key:1,class:"star-btn",onClick:l[1]||(l[1]=f=>i())},[Ce(d)]))],64)):de("",!0)]),c("div",{class:"app-desc",title:e.app.description},U(e.app.description),9,Pm)])]),e.app.isInstall()?(m(),w("div",Am,[e.app.isUpdate()?(m(),w("button",{key:0,class:"update",onClick:l[2]||(l[2]=f=>e.app.update())}," \u66F4\u65B0 ")):de("",!0),c("button",{class:"del",onClick:l[3]||(l[3]=f=>e.app.uninstall())},"\u5378\u8F7D"),c("button",{onClick:l[4]||(l[4]=f=>e.app.openApp()),class:"open"},"\u6253\u5F00")])):(m(),w("div",Im,[Rm,c("button",{class:"install",onClick:l[5]||(l[5]=f=>e.app.install())}," \u5B89\u88C5")]))])}}});var No=X(Bm,[["__scopeId","data-v-109bceb3"]]);const Nm=le({__name:"index",emits:["change"],setup(e,{emit:t}){const n=a=>{},s=a=>{a===null&&console.log("dragleave")},r=a=>{a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="link")},o=a=>{a.preventDefault(),i(a)},i=a=>{var u;const l=(u=a==null?void 0:a.dataTransfer)==null?void 0:u.files;if(l&&l.length>0){const d=[];for(let f=0;f(m(),w("div",{onDrop:o,onDragenter:n,onDragleave:s,onDragover:r},[Et(a.$slots,"default")],32))}});const Lm={key:0},Ym={class:"section-title"},Hm={class:"section-list"},Um={key:1},zm={class:"section-title"},Wm={class:"section-list"},Vm={key:2},jm={class:"section-title"},Gm={class:"section-list"},qm=le({__name:"appStore",setup(e){const t=Yc(),n=be(()=>t.localApps||[]),s=be(()=>t.remoteApps||[]),r=be(()=>n.value.filter(a=>a.isUpdate())),o=a=>{if(a&&a.length>0){const l=a[0];(l.name.endsWith(".run")||l.name.endsWith(".ipk"))&&i(l)}},i=a=>q(this,null,function*(){const l=new FormData;l.append(a.name,a);const u=oe.Loading("\u4E0A\u4F20\u4E2D...");try{const d=yield ie.Store.upload.POST(l);if(d.data){const{stderr:f,code:h}=d.data;if(h==0&&cs.istore.Open(),f)throw f}}catch(d){oe.Error(`${d}`)}finally{u.Close()}});return(a,l)=>(m(),ve(Nm,{onChange:o},{default:We(()=>[x(r).length>0?(m(),w("section",Lm,[c("div",Ym," \u53EF\u66F4\u65B0 ("+U(x(r).length)+") ",1),c("div",Hm,[(m(!0),w(ce,null,nt(x(r),u=>(m(),ve(No,{app:u},null,8,["app"]))),256))])])):de("",!0),x(n).length>0?(m(),w("section",Um,[c("div",zm," \u5DF2\u5B89\u88C5 ("+U(x(n).length)+") ",1),c("div",Wm,[(m(!0),w(ce,null,nt(x(n),u=>(m(),ve(No,{app:u},null,8,["app"]))),256))])])):de("",!0),x(s).length>0?(m(),w("section",Vm,[c("div",jm," \u5168\u90E8\u8F6F\u4EF6 ("+U(x(s).length)+") ",1),c("div",Gm,[(m(!0),w(ce,null,nt(x(s),u=>(m(),w(ce,null,[u.isInstall()?de("",!0):(m(),ve(No,{key:0,app:u},null,8,["app"]))],64))),256))])])):de("",!0)]),_:1}))}});var Km=X(qm,[["__scopeId","data-v-636cf49b"]]);const Jm=le({__name:"index",props:{close:Function},setup(e){const t=e,n=()=>{t.close&&t.close()};return(s,r)=>(m(),ve(da,{onHandleClose:n,title:"\u5E94\u7528\u4E2D\u5FC3"},{default:We(()=>[Ce(Km)]),_:1}))}});class Zm extends ca{Open(){this.openWindow(Jm)}}const Qm=new Zm,Xm={class:"tab-content"},eg={class:"item-label"},tg=c("div",{class:"item-label_key"},[c("span",null,"\u540D\u79F0")],-1),ng={class:"item-label_value"},sg={key:0,class:"item-label"},rg=c("div",{class:"item-label_key"},[c("span",null,"\u578B\u53F7")],-1),og={class:"item-label_value"},ig={class:"item-label"},ag=c("div",{class:"item-label_key"},[c("span",null,"\u8DEF\u5F84")],-1),lg={class:"item-label_value"},ug={class:"item-label"},cg=c("div",{class:"item-label_key"},[c("span",null,"\u5BB9\u91CF")],-1),dg={class:"item-label_value"},fg={class:"item-label"},hg=c("div",{class:"item-label_key"},[c("span",null,"\u7C7B\u578B")],-1),pg={class:"item-label_value"},_g={key:1,class:"item-label"},mg=c("div",{class:"item-label_key"},[c("span",null,"\u7CFB\u7EDF\u5206\u533A")],-1),gg=c("div",{class:"item-label_value"},[c("span",null,"true")],-1),vg=[mg,gg],yg={key:2,class:"item-label"},wg=c("div",{class:"item-label_key"},[c("span",null,"docker\u5206\u533A")],-1),bg=c("div",{class:"item-label_value"},[c("span",null,"true")],-1),kg=[wg,bg],Eg={key:3,class:"item-label"},Sg=c("div",{class:"item-label_key"},[c("span",null,"\u63A5\u5165\u65B9\u5F0F")],-1),Fg=c("div",{class:"item-label_value"},[c("span",null,"\u5916\u63A5")],-1),Cg=[Sg,Fg],Dg={class:"item-label"},xg=c("div",{class:"item-label_key"},[c("span",null,"\u5206\u533A\u6570\u91CF")],-1),Tg={class:"item-label_value"},Og={key:4,class:"item-label"},$g=c("div",{class:"item-label_key"},[c("span",null,"error")],-1),Mg={class:"item-label_value"},Pg=le({__name:"main",setup(e){const t=ae("disk");return(n,s)=>{var r;return m(),w("section",Xm,[c("div",eg,[tg,c("div",ng,[c("span",null,U(x(t).name),1)])]),x(t).venderModel?(m(),w("div",sg,[rg,c("div",og,[c("span",null,U(x(t).venderModel),1)])])):de("",!0),c("div",ig,[ag,c("div",lg,[c("span",null,U(x(t).path),1)])]),c("div",ug,[cg,c("div",dg,[c("span",null,U(x(t).used)+"/"+U(x(t).total),1)])]),c("div",fg,[hg,c("div",pg,[c("span",null,U(x(t).partyLabelType),1)])]),x(t).isSystemRoot?(m(),w("div",_g,vg)):de("",!0),x(t).isDockerRoot?(m(),w("div",yg,kg)):de("",!0),x(t).isExternalDisk?(m(),w("div",Eg,Cg)):de("",!0),c("div",Dg,[xg,c("div",Tg,[c("span",null,U((r=x(t).childrens)==null?void 0:r.length),1)])]),x(t).errorInfo?(m(),w("div",Og,[$g,c("div",Mg,[c("span",null,U(x(t).errorInfo),1)])])):de("",!0)])}}}),Ag={class:"tab-content"},Ig=c("div",{class:"label-name"},[c("span",null,"\u76EE\u6807\u5206\u533A")],-1),Rg={class:"label-value"},Bg=c("option",{value:-1},"\u9009\u62E9\u8981\u6302\u8F7D\u7684\u5206\u533A",-1),Ng=["value"],Lg=c("div",{class:"label-name"},[c("span",null,"\u6302\u8F7D\u70B9")],-1),Yg={class:"label-value"},Hg={class:"label-btns"},Ug=["disabled"],zg=le({__name:"mount",props:{mountIndex:{type:Number,required:!0}},setup(e){const t=e,n=ae("disk"),s=ae("disabled"),r=_t({index:t.mountIndex!=null?t.mountIndex:-1,mountPoint:"",item:{mountPoint:"",path:"",name:"",filesystem:"",total:"",used:"",usage:0,uuid:"",isReadOnly:!1,isSystemRoot:!1,sizeInt:""}}),o=()=>{var l;const a=n.value;r.index==-1&&(r.item=null,r.mountPoint=""),a.childrens&&(r.item=a.childrens[r.index],r.mountPoint="/mnt/data_"+((l=r==null?void 0:r.item)==null?void 0:l.name))},i=()=>q(this,null,function*(){const a=n.value,l=r.item;if(l==null||r.index==-1){oe.Message("\u83B7\u53D6\u4E0D\u5230\u8981\u6302\u8F7D\u7684\u5206\u533A");return}if(l.path==null||l.path==""){oe.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533A\u8DEF\u5F84");return}if(l.uuid==null||l.uuid==""){oe.Message("\u83B7\u53D6\u4E0D\u5230\u6302\u8F7D\u7684\u5206\u533AID");return}if(r.mountPoint==""){oe.Message("\u6302\u8F7D\u70B9\u4E0D\u80FD\u4E3A\u7A7A");return}const u=oe.Loading("\u6302\u8F7D\u4E2D...");try{const d=yield ie.Nas.Disk.Partition.Mount.POST({path:l.path,uuid:l.uuid,mountPoint:r.mountPoint});if(d!=null&&d.data){const{result:f,error:h}=d==null?void 0:d.data;if(h)throw h;f&&(a&&a.childrens&&a.childrens[r.index]&&(a.childrens[r.index].mountPoint=f.mountPoint),oe.Success("\u6302\u8F7D\u6210\u529F,\u8BF7\u5173\u95ED\u7A97\u53E3"))}}catch(d){oe.Error(`${d}`)}finally{u.Close(),s.value=!1}});return r.index>=0&&o(),(a,l)=>(m(),w("section",Ag,[Ig,c("div",Rg,[Ke(c("select",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.index=u),onChange:o},[Bg,(m(!0),w(ce,null,nt(x(n).childrens,(u,d)=>{var f;return m(),w(ce,null,[u.mountPoint?de("",!0):(m(),w("option",{key:0,value:d},U(u.path)+"\uFF08"+U(u.total)+"\uFF0C"+U((f=u==null?void 0:u.filesystem)==null?void 0:f.toUpperCase())+"\uFF09 ",9,Ng))],64)}),256))],544),[[Iu,r.index]])]),r.index!=-1?(m(),w(ce,{key:0},[Lg,c("div",Yg,[Ke(c("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=u=>r.mountPoint=u)},null,512),[[En,r.mountPoint,void 0,{trim:!0}]])]),c("div",Hg,[c("button",{class:"mount",disabled:x(s),onClick:l[2]||(l[2]=u=>i())},"\u6302\u8F7D",8,Ug)])],64)):de("",!0)]))}}),Wg={class:"tab-content"},Vg=c("colgroup",null,[c("col"),c("col"),c("col"),c("col"),c("col")],-1),jg=c("thead",null,[c("tr",null,[c("th",null," \u540D\u79F0 "),c("th",null," \u8DEF\u5F84 "),c("th",null," \u5BB9\u91CF "),c("th",null,"\u683C\u5F0F"),c("th",null," \u72B6\u6001 "),c("th",null," \u6302\u8F7D\u70B9 ")])],-1),Gg={key:0},qg={key:1,class:"warning"},Kg={key:0},Jg=["onClick"],Zg=le({__name:"partition",setup(e){const t=ae("disk"),n=ae("onMount");return(s,r)=>(m(),w("section",Wg,[c("table",null,[Vg,jg,c("tbody",null,[(m(!0),w(ce,null,nt(x(t).childrens,(o,i)=>(m(),w("tr",null,[c("th",null,[c("span",null,U(o.name),1)]),c("th",null,U(o.path),1),c("th",null,[c("span",null,U(o.used||0)+"/"+U(o.total||0),1)]),c("th",null,[o.filesystem=="ext4"?(m(),w("span",Gg,U(o.filesystem),1)):(m(),w("span",qg,U(o.filesystem),1))]),c("th",null,[c("span",null,U(o.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1)]),c("th",null,[o.mountPoint?(m(),w("span",Kg,[c("span",null,U(o.mountPoint),1)])):(m(),w("a",{key:1,onClick:a=>x(n)(i)}," \u53BB\u6302\u8F7D ",8,Jg))])]))),256))])])]))}});const Eo=e=>(et("data-v-7d47f8ad"),e=e(),tt(),e),Qg={class:"tab-content"},Xg=Eo(()=>c("div",{class:"label-name"},[c("span",null,"\u8981\u683C\u5F0F\u5316\u7684\u76EE\u6807")],-1)),ev={class:"label-value2"},tv={class:"disk-item"},nv=Eo(()=>c("em",{class:"disk_main"},"\u5168\u76D8",-1)),sv={class:"disk-item"},rv=["value"],ov=Eo(()=>c("em",null,"\u5206\u533A",-1)),iv=Eo(()=>c("div",{class:"label-name"},[c("span",null,"\u683C\u5F0F\u5316\u4E3A")],-1)),av={class:"label-value2"},lv={class:"disk-item"},uv=at(" EXT4 "),cv={class:"label-btns"},dv=["disabled"],fv=le({__name:"foramt",setup(e){const t=ae("disk"),n=ae("updateDisk"),s=ae("disabled"),r=ke(-1),o=ke("ext4"),i=()=>q(this,null,function*(){const u=yt({},t.value),d=r.value;if(d==-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;a(u);return}if(u.childrens){const f=u.childrens[d],h=f.mountPoint||f.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${h} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${h}?`))return;l(f,d);return}}),a=u=>q(this,null,function*(){if(s.value=!0,u.name==null||u.path==""){oe.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(u.path==null||u.path==""){oe.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}s.value=!0;const d=oe.Loading("\u521D\u59CB\u5316\u4E2D...");try{const f=yield ie.Nas.Disk.Init.POST({name:u.name,path:u.path});if(f!=null&&f.data){const{result:h,error:g}=f==null?void 0:f.data;if(g&&oe.Warning(g),h){if(h.errorInfo){oe.Warning(h.errorInfo);return}oe.Success("\u521D\u59CB\u5316\u6210\u529F"),n(h)}}}catch(f){oe.Error(f)}finally{d.Close(),s.value=!1}}),l=(u,d)=>q(this,null,function*(){if(s.value=!0,u.path==null||u.path==""){oe.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}s.value=!0;const f=oe.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const h=yield ie.Nas.Disk.Partition.Format.POST({path:u.path,uuid:u.uuid,mountPoint:u.mountPoint});if(h!=null&&h.data){const{result:g,error:v}=h==null?void 0:h.data;if(v&&oe.Warning(v),g){oe.Success("\u683C\u5F0F\u5316\u6210\u529F");const S=yt({},t.value);S.childrens&&(S.childrens[d]=g),n(S)}}}catch(h){oe.Error(h)}finally{f.Close(),s.value=!1}});return(u,d)=>(m(),w("section",Qg,[Xg,c("div",ev,[c("label",tv,[Ke(c("input",{type:"radio",value:-1,"onUpdate:modelValue":d[0]||(d[0]=f=>r.value=f)},null,512),[[On,r.value]]),nv,at(U(x(t).path)+"\uFF08"+U(x(t).total)+"\uFF09 ",1)]),(m(!0),w(ce,null,nt(x(t).childrens,(f,h)=>{var g;return m(),w("label",sv,[Ke(c("input",{type:"radio",value:h,"onUpdate:modelValue":d[1]||(d[1]=v=>r.value=v)},null,8,rv),[[On,r.value]]),ov,at(U(f.path)+"\uFF08"+U(f.total)+"\uFF0C"+U((g=f==null?void 0:f.filesystem)==null?void 0:g.toUpperCase())+"\uFF09 ",1)])}),256))]),iv,c("div",av,[c("label",lv,[Ke(c("input",{type:"radio",value:"ext4","onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f)},null,512),[[On,o.value]]),uv])]),c("div",cv,[c("button",{class:"mount",disabled:x(s),onClick:d[3]||(d[3]=f=>i())},"\u683C\u5F0F\u5316",8,dv)])]))}});var hv=X(fv,[["__scopeId","data-v-7d47f8ad"]]);const pv={class:"tabls"},_v=["disabled"],mv=["disabled"],gv=["disabled"],vv=["disabled"],yv=le({__name:"index",props:{disk:{type:Object,required:!0},close:Function},setup(e){const t=e,n=()=>{a.value&&location.reload(),t.close&&t.close()},s=ke("main"),r=ke(!1),o=ke(t.disk),i=ke(null),a=ke(!1);ht("disk",o),ht("updateDisk",u=>{o.value=u,a.value=!0}),ht("disabled",r),ht("onMount",u=>{i.value=u,s.value="mount"});const l=u=>{u=="mount"&&(i.value=null),s.value=u};return(u,d)=>(m(),ve(da,{onHandleClose:n,title:"Storage Manager",width:"920px"},{default:We(()=>[c("ul",pv,[c("button",{class:Kt({on:s.value=="main"}),onClick:d[0]||(d[0]=f=>l("main")),disabled:r.value},"\u6458\u8981",10,_v),c("button",{class:Kt({on:s.value=="partition"}),onClick:d[1]||(d[1]=f=>l("partition")),disabled:r.value},"\u5206\u533A",10,mv),c("button",{class:Kt({on:s.value=="mount"}),onClick:d[2]||(d[2]=f=>l("mount")),disabled:r.value},"\u6302\u8F7D",10,gv),c("button",{class:Kt({on:s.value=="foramt"}),onClick:d[3]||(d[3]=f=>l("foramt")),disabled:r.value},"\u683C\u5F0F\u5316",10,vv)]),s.value=="main"?(m(),ve(Pg,{key:0})):s.value=="partition"?(m(),ve(Zg,{key:1})):s.value=="mount"?(m(),ve(zg,{key:2,mountIndex:i.value},null,8,["mountIndex"])):s.value=="foramt"?(m(),ve(hv,{key:3})):de("",!0)]),_:1}))}});var wv=X(yv,[["__scopeId","data-v-1b963653"]]);class bv extends ca{OpenDisk(t){this.openWindow(wv,t)}}const o1=new bv;o1.OpenDisk;document.title=t1.HostName;const yr=Li(zf);yr.use(b5());k5();yr.use(_p).use(R_);yr.use(I7);yr.use(Sm).use(Qm).use(o1);yr.mount("#app");export{Xn as A,at as B,ie as C,Iu as D,nt as E,ce as F,ef as G,o1 as H,Yc as I,Km as J,Fv as K,Sv as L,C7 as M,oo as N,Qm as O,hl as P,Sm as Q,Kt as R,lu as S,oe as T,Qn as U,$s as V,cs as W,Et as X,Cs as Y,X as _,c as a,Ce as b,w as c,le as d,ve as e,Pi as f,x as g,Je as h,be as i,_t as j,_u as k,U as l,de as m,t1 as n,m as o,et as p,tt as q,it as r,ke as s,wp as t,As as u,Ev as v,We as w,Ke as x,On as y,En as z}; diff --git a/luci-app-nft-qos/po/lt/nft-qos.po b/luci-app-nft-qos/po/lt/nft-qos.po index 13bb3af92..be4b109cc 100644 --- a/luci-app-nft-qos/po/lt/nft-qos.po +++ b/luci-app-nft-qos/po/lt/nft-qos.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"PO-Revision-Date: 2023-07-31 23:06+0000\n" +"PO-Revision-Date: 2023-08-14 00:51+0000\n" "Last-Translator: Džiugas J \n" "Language-Team: Lithuanian \n" @@ -22,11 +22,11 @@ msgstr "" #: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 #: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 msgid "Collecting data..." -msgstr "" +msgstr "Renkama informacija (data)..." #: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:225 msgid "Comment" -msgstr "" +msgstr "Komentuoti" #: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:50 msgid "Default Download Rate" @@ -142,7 +142,7 @@ msgstr "" #: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:244 msgid "MAC Address" -msgstr "" +msgstr "„MAC“ adresas" #: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 msgid "MB"