2 lines
189 KiB
JavaScript
2 lines
189 KiB
JavaScript
var xe=Object.defineProperty,Se=Object.defineProperties;var Ie=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Pe=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var Zt=(e,s,u)=>s in e?xe(e,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[s]=u,X=(e,s)=>{for(var u in s||(s={}))Pe.call(s,u)&&Zt(e,u,s[u]);if(ce)for(var u of ce(s))Te.call(s,u)&&Zt(e,u,s[u]);return e},lt=(e,s)=>Se(e,Ie(s));var Me=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var xt=(e,s,u)=>(Zt(e,typeof s!="symbol"?s+"":s,u),u);var P=(e,s,u)=>new Promise((n,i)=>{var c=m=>{try{l(u.next(m))}catch(p){i(p)}},h=m=>{try{l(u.throw(m))}catch(p){i(p)}},l=m=>m.done?n(m.value):Promise.resolve(m.value).then(c,h);l((u=u.apply(e,s)).next())});import{r as dt,o,c as a,a as x,b as t,d as O,e as j,t as B,n as _t,f as he,u as T,g as wt,h as W,w as z,i as Le,j as g,k as qt,l as me,m as D,p as ze,q as Ne,s as Oe,v as Ve,x as qe,y as Ge,z as Ue,A as Pt,B as st,T as at,C as V,D as q,E as Q,F as M,G as pt,H as R,I as ot,J as U,K as Ft,L as Kt,M as vt,N as We,O as Ct,P as Gt,Q as He,R as je,S as Re}from"./vendor.js?v=20737669";var Cd=Me(Jt=>{const Ze=function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&n(h)}).observe(document,{childList:!0,subtree:!0});function u(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerpolicy&&(c.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?c.credentials="include":i.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(i){if(i.ep)return;i.ep=!0;const c=u(i);fetch(i.href,c)}};Ze();var S=(e,s)=>{const u=e.__vccOpts||e;for(const[n,i]of s)u[n]=i;return u};const Je={},Ke={id:"main"};function Xe(e,s){const u=dt("router-view");return o(),a("div",Ke,[x(u)])}var Qe=S(Je,[["render",Xe],["__scopeId","data-v-f62bd0aa"]]);const Ye={},ts={t:"1640593669834",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"54870",width:"128",height:"128"},es=t("path",{d:"M148.7872 57.4464h177.152c64.9216 0 118.0672 53.1456 118.0672 118.0672v295.2192H148.7872C83.8656 470.7328 30.72 417.5872 30.72 352.5632v-177.152C30.72 110.592 83.8656 57.4464 148.7872 57.4464z m0 531.3536h295.2192v295.2192c0 64.9216-53.1456 118.0672-118.0672 118.0672h-177.152C83.8656 1001.984 30.72 948.9408 30.72 883.9168v-177.152C30.72 641.9456 83.8656 588.8 148.7872 588.8z m0 0M768.7168 559.2064L562.0736 346.7264c-23.6544-17.7152-35.4304-53.1456-35.4304-82.6368s11.776-59.0848 35.4304-82.6368L686.08 57.4464C733.2864 10.24 810.0864 10.24 851.3536 57.4464l124.0064 124.0064c23.6544 23.6544 35.4304 53.1456 35.4304 82.6368s-11.776 59.0848-35.4304 82.6368L768.7168 559.2064z m0-478.208c-17.7152 0-29.4912 5.9392-41.3696 17.7152l-123.904 124.0064c-11.776 11.776-17.7152 23.6544-17.7152 41.3696s5.9392 29.4912 17.7152 41.3696l165.2736 165.2736 165.2736-165.2736c11.776-11.776 17.7152-23.6544 17.7152-41.3696s-5.9392-29.4912-17.7152-41.3696L809.984 98.7136c-11.776-11.776-23.552-17.7152-41.2672-17.7152z m0 0","p-id":"54871"},null,-1),ss=t("path",{d:"M562.0736 588.8h295.2192c64.9216 0 118.0672 53.1456 118.0672 118.0672v177.152c0 64.9216-53.1456 118.0672-118.0672 118.0672h-177.152c-64.9216 0-118.0672-53.1456-118.0672-118.0672V588.8z m0 0","p-id":"54872"},null,-1),us=[es,ss];function ns(e,s){return o(),a("svg",ts,us)}var os=S(Ye,[["render",ns]]);const as={},is={t:"1640598743438",class:"icon",viewBox:"0 0 1036 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"65341",width:"128",height:"128"},ls=t("path",{d:"M984.177778 432.355556l-45.511111 0c-22.755556 0-45.511111-17.066667-51.2-39.822222l-28.444444-68.266667C847.644444 312.888889 853.333333 284.444444 870.4 267.377778l34.133333-34.133333c17.066667-17.066667 17.066667-39.822222 0-56.888889l-56.888889-56.888889c-17.066667-17.066667-39.822222-17.066667-56.888889 0l-34.133333 34.133333C739.555556 170.666667 711.111111 176.355556 694.044444 164.977778L625.777778 136.533333c-22.755556-5.688889-39.822222-28.444444-39.822222-51.2L585.955556 39.822222c0-22.755556-17.066667-39.822222-39.822222-39.822222L472.177778 0C449.422222 0 432.355556 17.066667 432.355556 39.822222l0 45.511111c0 22.755556-17.066667 45.511111-39.822222 51.2L329.955556 164.977778C312.888889 176.355556 284.444444 170.666667 267.377778 153.6L233.244444 119.466667c-17.066667-17.066667-39.822222-17.066667-56.888889 0l-56.888889 56.888889c-17.066667 17.066667-17.066667 39.822222 0 56.888889l34.133333 34.133333C170.666667 284.444444 176.355556 312.888889 164.977778 329.955556L136.533333 398.222222C130.844444 415.288889 108.088889 432.355556 85.333333 432.355556l-45.511111 0C17.066667 432.355556 0 449.422222 0 472.177778l0 79.644444c0 22.755556 17.066667 39.822222 39.822222 39.822222l45.511111 0c22.755556 0 45.511111 17.066667 51.2 39.822222l28.444444 68.266667C176.355556 711.111111 170.666667 739.555556 153.6 756.622222l-34.133333 34.133333c-17.066667 17.066667-17.066667 39.822222 0 56.888889l56.888889 56.888889c17.066667 17.066667 39.822222 17.066667 56.888889 0l34.133333-34.133333C284.444444 853.333333 312.888889 847.644444 329.955556 859.022222L398.222222 887.466667c22.755556 5.688889 39.822222 28.444444 39.822222 51.2l0 45.511111c0 22.755556 17.066667 39.822222 39.822222 39.822222l79.644444 0c22.755556 0 39.822222-17.066667 39.822222-39.822222l0-45.511111c0-22.755556 17.066667-45.511111 39.822222-51.2l68.266667-28.444444c17.066667-11.377778 45.511111-5.688889 62.577778 11.377778l34.133333 34.133333c17.066667 17.066667 39.822222 17.066667 56.888889 0l56.888889-56.888889c17.066667-17.066667 17.066667-39.822222 0-56.888889l-34.133333-34.133333c-17.066667-17.066667-17.066667-45.511111-11.377778-62.577778l28.444444-68.266667c5.688889-22.755556 28.444444-39.822222 51.2-39.822222l45.511111 0c22.755556 0 39.822222-17.066667 39.822222-39.822222L1035.377778 472.177778C1024 449.422222 1006.933333 432.355556 984.177778 432.355556L984.177778 432.355556zM711.111111 512c0 108.088889-91.022222 199.111111-199.111111 199.111111-108.088889 0-199.111111-85.333333-199.111111-199.111111 0-108.088889 85.333333-199.111111 199.111111-199.111111C620.088889 312.888889 711.111111 403.911111 711.111111 512L711.111111 512zM711.111111 512","p-id":"65342"},null,-1),cs=[ls];function ds(e,s){return o(),a("svg",is,cs)}var rs=S(as,[["render",ds]]);const _s={},ps={t:"1640599890701",class:"icon",viewBox:"0 0 1565 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"76947",width:"128",height:"128"},vs=t("path",{d:"M1206.477959 299.331595c-27.357038 0-53.867311 3.354494-79.465683 9.151581C1078.518669 130.792698 916.428217 0 723.365689 0 492.068443 0 304.575027 187.493416 304.575027 418.790662c0 16.055976 1.074741 31.786273 2.865975 47.386299-9.184149-0.911901-18.400865-1.40042-27.812989-1.40042C125.191018 464.743973 0 589.934991 0 744.371987c0 154.469563 125.191018 279.628013 279.595446 279.628013 59.990077 0 221.233764 0 394.527575 0l0-302.295274L496.986197 721.704726l285.457668-339.031868 285.457668 339.031868-177.136823 0 0 302.295274c139.748871 0 262.204185 0 315.71325 0 197.947713 0 358.40977-168.34349 358.40977-366.291203S1404.425673 299.331595 1206.477959 299.331595z","p-id":"76948"},null,-1),hs=[vs];function ms(e,s){return o(),a("svg",ps,hs)}var bs=S(_s,[["render",ms]]);const fs={},Fs={t:"1640599792937",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"68605",width:"128",height:"128"},$s=t("path",{d:"M512 825.6c-211.2 0-377.6-57.6-377.6-128l0 0L134.4 896l0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0 0-204.8 0 0C889.6 768 723.2 825.6 512 825.6L512 825.6z","p-id":"68606"},null,-1),ks=t("path",{d:"M512 544c-211.2 0-377.6-57.6-377.6-128l0 0 0 204.8 0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0L889.6 416l0 0C889.6 486.4 723.2 544 512 544L512 544z","p-id":"68607"},null,-1),Cs=t("path",{d:"M889.6 128 889.6 128c0-70.4-166.4-128-377.6-128C300.8 0 134.4 57.6 134.4 128l0 0 0 0 0 204.8 0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0L889.6 128 889.6 128 889.6 128zM512 217.6c-153.6 0-281.6-44.8-281.6-96 0-51.2 128-96 281.6-96 153.6 0 281.6 44.8 281.6 96C793.6 179.2 665.6 217.6 512 217.6L512 217.6z","p-id":"68608"},null,-1),Es=[$s,ks,Cs];function ys(e,s){return o(),a("svg",Fs,Es)}var gs=S(fs,[["render",ys]]);const Ds={},ws={t:"1640575557247",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4211",width:"128",height:"128"},Bs=t("path",{d:"M560 800l-10.464-416h-75.072L464 800h96z m-14.144-493.984c9.44-9.312 14.144-20.672 14.144-34.016 0-13.6-4.704-24.992-14.144-34.208A46.784 46.784 0 0 0 512 224c-13.12 0-24.448 4.608-33.856 13.792A45.856 45.856 0 0 0 464 272c0 13.344 4.704 24.704 14.144 34.016 9.408 9.312 20.704 13.984 33.856 13.984 13.12 0 24.448-4.672 33.856-13.984zM512 32C246.912 32 32 246.912 32 512c0 265.088 214.912 480 480 480 265.088 0 480-214.912 480-480 0-265.088-214.912-480-480-480z m0 64c229.76 0 416 186.24 416 416s-186.24 416-416 416S96 741.76 96 512 282.24 96 512 96z","p-id":"4212"},null,-1),As=[Bs];function xs(e,s){return o(),a("svg",ws,As)}var Ss=S(Ds,[["render",xs]]);const Is={},Ps={t:"1640681742480",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"80687",width:"128",height:"128"},Ts=t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"80688"},null,-1),Ms=t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"80689"},null,-1),Ls=t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"80690"},null,-1),zs=t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"80691"},null,-1),Ns=t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"80692"},null,-1),Os=t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"80693"},null,-1),Vs=t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"80694"},null,-1),qs=t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"80695"},null,-1),Gs=t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"80696"},null,-1),Us=t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"80697"},null,-1),Ws=t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80698"},null,-1),Hs=t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"80699"},null,-1),js=t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80700"},null,-1),Rs=t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"80701"},null,-1),Zs=t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80702"},null,-1),Js=t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"80703"},null,-1),Ks=t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"80704"},null,-1),Xs=t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"80705"},null,-1),Qs=t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"80706"},null,-1),Ys=[Ts,Ms,Ls,zs,Ns,Os,Vs,qs,Gs,Us,Ws,Hs,js,Rs,Zs,Js,Ks,Xs,Qs];function t1(e,s){return o(),a("svg",Ps,Ys)}var e1=S(Is,[["render",t1]]);const s1={},u1={t:"1640775712185",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2996",width:"128",height:"128"},n1=t("path",{d:"M894.185422 128.023792 129.814578 445.743994 445.99982 577.744353 571.860343 893.929596Z","p-id":"2997"},null,-1),o1=[n1];function a1(e,s){return o(),a("svg",u1,o1)}var i1=S(s1,[["render",a1]]);const l1={class:"progress"},c1=O({props:{value:{type:Number,required:!0},text:{type:String}},setup(e){const s=e,u=j(()=>s.value>=80?"#e45e5e":s.value>=70?"#ff9800":s.value>=60?"#297ff3":s.value>0?"#53c31b":"");return(n,i)=>(o(),a("div",l1,[t("div",{class:_t(["progress-value",`${e.value>50}`]),style:he({width:`${e.value}%`,backgroundColor:T(u)})},[t("span",null,B(e.text),1)],6),wt(n.$slots,"default",{},void 0,!0)]))}});var be=S(c1,[["__scopeId","data-v-6dc4f66c"]]);const d1={},r1={t:"1641369474206",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7685",width:"128",height:"128"},_1=t("path",{d:"M757.76 637.44l-218.88 245.76c-14.72 16.64-40.32 16.64-54.4 0L265.6 637.44C244.48 613.76 261.12 576 293.12 576l437.76 0C762.24 576 779.52 613.76 757.76 637.44z","p-id":"7686"},null,-1),p1=[_1];function v1(e,s){return o(),a("svg",r1,p1)}var h1=S(d1,[["render",v1]]);const m1={},b1={t:"1641369492518",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7831",width:"128",height:"128"},f1=t("path",{d:"M758.4 385.92 539.52 140.16c-14.72-16.64-40.32-16.64-54.4 0L266.24 385.92C244.48 409.6 261.76 448 293.12 448l437.76 0C762.88 448 779.52 409.6 758.4 385.92z","p-id":"7832"},null,-1),F1=[f1];function $1(e,s){return o(),a("svg",b1,F1)}var k1=S(m1,[["render",$1]]);const C1={};function E1(e,s){return o(),a("article",null,[wt(e.$slots,"default",{},void 0,!0)])}var y1=S(C1,[["render",E1],["__scopeId","data-v-995510fc"]]);const g1={class:"cover"},D1={class:"thumbnail"},w1=O({emits:["click"],setup(e,{emit:s}){const u=()=>{s("click")};return(n,i)=>(o(),W(y1,null,{default:z(()=>[t("a",{onClick:u},[t("div",g1,[t("div",D1,[wt(n.$slots,"default",{},void 0,!0)])])])]),_:3}))}});var B1=S(w1,[["__scopeId","data-v-782f97c0"]]);const A1=(e,s)=>P(Jt,null,function*(){return new Promise((u,n)=>P(Jt,null,function*(){try{const i=yield fetch(e,s);if(Math.floor(i.status/100)!=2)throw i.status+" "+i.statusText;const c=X({},i);c.data=yield i.json(),u(c)}catch(i){n(i)}}))});class Xt{constructor(s){xt(this,"config",{baseURL:"",headers:{}});xt(this,"useRequest",s=>s);xt(this,"useResponse",s=>s);xt(this,"useError",s=>s);s.baseURL&&(this.config.baseURL=s.baseURL),s.headers&&(this.config.headers=s.headers)}static create(s){return new Xt(s)}Do(s,u){return P(this,null,function*(){return new Promise((n,i)=>P(this,null,function*(){try{const c=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});s=`${c.baseURL||""}${s}`,u.headers==null&&(u.headers={}),c.headers&&(u.headers=X({},c.headers));const l=yield fetch(s,u),m=X({},l);m.data=yield l.json(),n(this.useResponse(m))}catch(c){this.useError(c),i(c)}}))})}TEXT(s,u){return P(this,null,function*(){return new Promise((n,i)=>P(this,null,function*(){try{const c=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});s=`${c.baseURL||""}${s}`,u.headers==null&&(u.headers={}),c.headers&&(u.headers=X({},c.headers));const l=yield fetch(s,u),m=X({},l);m.data=yield l.text(),n(m)}catch(c){this.useError(c),i(c)}}))})}interceptors(){const s=this;return{requset:{use(u){s.useRequest=u}},response:{use(u,n){s.useResponse=u,n&&(s.useError=n)}}}}}const fe=Xt.create({});fe.interceptors().requset.use(e=>e);fe.interceptors().response.use(e=>(e.data&&e.data.success==null&&e.data.success==0,e));const x1="/cgi-bin/luci/istore";let de=!1;const N=(e,s)=>(e.indexOf("//")==-1&&(e=`${x1}${e}`),A1(e,s).then(u=>(u!=null&&u.data&&u.data.success==-1001&&u.data.error=="Forbidden"&&(de||(de=!0,alert("\u767B\u5F55\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),location.reload())),u))),S1={Statistics:{GET(){return N("/network/statistics/",{method:"GET"})}},Status:{GET(){return N("/network/status/",{method:"GET"})}},Device:{List:{GET(){return N("/network/device/list/",{method:"GET"})}}},Homebox:{Enable:{POST(){return N("/network/homebox/enable/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}}},I1={Version:{GET(){return N("/system/version/",{method:"GET"})}},Time:{GET(){return N("/system/time/",{method:"GET"})}},CPU:{Status:{GET(){return N("/system/cpu/status/",{method:"GET"})}},Temperature:{GET(){return N("/system/cpu/temperature/",{method:"GET"})}}},Memery:{Status:{GET(){return N("/system/memery/status/",{method:"GET"})}}},CheckUpdate:{GET(){return N("/system/check-update/",{method:"GET"})}}},P1={Disk:{Status:{GET(){return N("/nas/disk/status/",{method:"GET"})}},Erase:{POST(e){return N("/nas/disk/erase",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Init:{POST:e=>N("/nas/disk/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},InitRest:{POST:e=>N("/nas/disk/initrest/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},Partition:{Format:{POST:e=>N("/nas/disk/partition/format",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},Mount:{POST:e=>N("/nas/disk/partition/mount",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Service:{Status:{GET(){return N("/nas/service/status/",{method:"GET"})}}},Samba:{Create:{POST(e){return N("/nas/samba/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Webdav:{Create:{POST(e){return N("/nas/webdav/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Status:{GET(){return N("/nas/webdav/status/",{method:"GET"})}}},Linkease:{Enable:{POST(){return N("/nas/linkease/enable",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}}},T1={Check:{POST(e){return N("/app/check/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Install:{POST(e){return N("/app/install/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},M1={Pppoe:{GET(){return N("/guide/pppoe/",{method:"GET"})},POST(e){return N("/guide/pppoe/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DnsConfig:{GET(){return N("/guide/dns-config/",{method:"GET"})},POST(e){return N("/guide/dns-config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DhcpClient:{POST(e){return N("/guide/dhcp-client/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},ClientModel:{GET(){return N("/guide/client-mode/",{method:"GET"})},POST(e){return N("/guide/client-mode/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GatewayRouter:{POST(e){return N("/guide/gateway-router/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DockerStatus:{GET(){return N("/guide/docker/status/",{method:"GET"})}},DockerPartitionList:{GET(){return N("/guide/docker/partition/list/",{method:"GET"})}},DockerTransfer:{POST(e){return N("/guide/docker/transfer/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DownloadService:{Status:{GET(){return N("/guide/download-service/status/",{method:"GET"})}}},DownloadpPartition:{List:{GET(){return N("/guide/download/partition/list/",{method:"GET"})}}},Aria2Init:{POST(e){return N("/guide/aria2/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},qbitorrentInit:{POST(e){return N("/guide/qbittorrent/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},transmissionInit:{POST(e){return N("/guide/transmission/init/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GetLan:{GET(){return N("/guide/lan/",{method:"GET"})}},LanIp:{POST(e){return N("/guide/lan/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}};var L1=Object.freeze(Object.defineProperty({__proto__:null,Network:S1,System:I1,Nas:P1,App:T1,Guide:M1},Symbol.toStringTag,{value:"Module"})),A=X({},L1);const z1=e=>{},N1=()=>new Date().getTime(),O1=e=>{if(e<1e3)return`${e} B`;let u=1e3,n=0;for(let h=e/1e3;h>=1e3;h/=1e3)u*=1e3,n++;let i=[" KB"," MB"," GB"," TB"," PB"," EB"];return(e/100/(u/100)).toFixed(1)+i[n]},V1=e=>{if(e<1024)return""+e+"KB";let u=1024,n=0;for(let c=e/1024;c>=1024;c/=1024)u*=1024,n++;let i=["M","G","T","P","E"];return(e/100/(u/100)).toFixed(2)+i[n]},q1=e=>{if(e==null)return 0;if(e<1e4)return e;let u=parseInt(`${e/1e4}`),n=e%1e4;return`${u}\u4E07${n}`},G1=e=>{if(e)try{var s=new Date(e),u=s.getHours(),n=s.getMinutes(),i=s.getSeconds();return u<10&&(u=`0${u}`),n<10&&(n=`0${n}`),i<10&&(i=`0${i}`),`${u}:${n}:${i}`}catch(c){}return""},U1=e=>{if(e){let s=Math.floor(e/86400),u=Math.floor(e%86400/3600),n=Math.floor(e%86400%3600/60),i=Math.floor(e%86400%3600%60);return s+"\u5929"+u+"\u5C0F\u65F6"+(n>10?n:"0"+n)+"\u5206"+(i>10?i:"0"+i)+"\u79D2"}},W1=e=>/^\d+\.\d+\.\d+\.\d+$/.test(e);var H1=Object.freeze(Object.defineProperty({__proto__:null,formatDate:z1,UnixDate:N1,byteToSize:O1,numberToSize:V1,numberToSum:q1,dateForm:G1,stampForm:U1,checkIsIP:W1},Symbol.toStringTag,{value:"Module"})),It=X({},H1);const j1={class:"flow"},R1={class:"flow-data"},Z1={key:0},J1={key:1},K1=O({setup(e){Le([ze,Ne,Oe,Ve,qe,Ge]);const s=g(),u=C=>{var y;const _=(y=s.value)==null?void 0:y[C];return!_||_.startTime==0?"":m(_.startTime*1e3)+"-"+m(_.endTime*1e3)},n=j(()=>{var _;let C=[];return(_=s.value)==null||_.forEach(y=>{C.push({value:y.uploadSpeed})}),C}),i=j(()=>{var _;let C=[];return(_=s.value)==null||_.forEach(y=>{C.push({value:y.downloadSpeed})}),C}),c=j(()=>{var _;let C="";if(s.value){let y=((_=s.value)==null?void 0:_.length)||0;if(y>0){let $=s.value[y-1];C=p($.uploadSpeed)+"/s"}}return C}),h=j(()=>{var _;let C="";if(s.value){let y=((_=s.value)==null?void 0:_.length)||0;if(y>0){let $=s.value[y-1];C=p($.downloadSpeed)+"/s"}}return C});j(()=>{var _;let C=[];return(_=s.value)==null||_.forEach(y=>{C.push({value:y.downloadSpeed+y.uploadSpeed})}),C});const l=()=>P(this,null,function*(){var C;try{const _=yield A.Network.Statistics.GET();if(_.data&&(C=_.data.result)!=null&&C.items){const y=_.data.result.slots||10;if(_.data.result.items.length<y){let $=_.data.result.items;for(;$.length<y;)$=[{downloadSpeed:0,endTime:0,startTime:0,uploadSpeed:0}].concat($);s.value=$}else _.data.result.items.length>y?s.value=_.data.result.items.slice(y-_.data.result.items.length):s.value=_.data.result.items}}catch(_){console.log(_)}}),m=It.dateForm,p=It.byteToSize,k=g();let w=null;const v=C=>(w=Ue(C,"dark"),w.setOption({animation:!1,backgroundColor:"transparent",tooltip:{trigger:"axis",formatter:_=>{if(Array.isArray(_)){let y="";_.length>0&&(y=u(_[0].axisValue));for(let $=0;$<_.length;$++)y=`${y}<br>${_[$].seriesName}: ${p(_[$].value)}/s`;return y.toString()}else{const y=_;return`${u(y.axisValue)}<br>${y.seriesName}: ${p(y.value)}/s`}}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{color:["#999"]},show:!1},name:"",show:!1,nameGap:0,nameTextStyle:{height:0,lineHeight:0,padding:0}},title:{text:"\u6D41\u91CF\u7EDF\u8BA1",textStyle:{fontSize:12},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e5,interval:1e4,axisLabel:{formatter:function(_,y){return`${p(_)}/s`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:"\u4E0B\u8F7D",data:i.value,type:"line",smooth:!0,areaStyle:{}},{name:"\u4E0A\u4F20",data:n.value,type:"line",smooth:!0,areaStyle:{}}],legend:{padding:0,align:"right",top:"10px",selected:{\u4E0A\u4F20:!0,\u4E0B\u8F7D:!0}},grid:{left:"2%",right:"2%",bottom:"2%",top:"10%",containLabel:!0}}),w);return qt(()=>P(this,null,function*(){if(yield l(),k.value){const C=v(k.value);C.appendData;const _=k.value;C.resize({width:_.clientWidth,height:_.clientHeight}),window.addEventListener("resize",()=>{C.resize({width:_.clientWidth,height:_.clientHeight})}),setInterval(()=>P(this,null,function*(){yield l(),C.setOption({series:[{name:"\u4E0B\u8F7D",data:i.value,type:"line",areaStyle:{},smooth:!0},{name:"\u4E0A\u4F20",data:n.value,type:"line",areaStyle:{},smooth:!0}]})}),5e3)}})),me(()=>{w!=null&&w.dispose()}),(C,_)=>(o(),a("div",j1,[t("div",{ref_key:"el",ref:k,class:"echart"},null,512),t("div",R1,[T(c)?(o(),a("span",Z1,"\u4E0A\u4F20: "+B(T(c)),1)):D("",!0),T(h)?(o(),a("span",J1,"\u4E0B\u8F7D: "+B(T(h)),1)):D("",!0)])]))}});var X1=S(K1,[["__scopeId","data-v-1422b5ac"]]);Pt("app",{});Pt("guide",{});const Fe=Pt("nas",{state:()=>({webdav:{}})}),$e=Pt("network",{state:()=>({status:{},statistics:{},deviceList:{}}),getters:{},actions:{requestNetworkStatus(){A.Network.Status.GET().then(e=>{if(e!=null&&e.data){const{result:s}=e==null?void 0:e.data;s&&(this.status=s,this.status.internetConnected===null&&(this.status.internetConnected=!1))}})},requestNetworkStatistics(){return P(this,null,function*(){try{const e=yield A.Network.Statistics.GET();e!=null&&e.data&&e.data.result&&(this.statistics=e.data.result)}catch(e){console.log(e)}})},requestDeviceList(){A.Network.Device.List.GET().then(e=>{if(e!=null&&e.data){const{result:s}=e==null?void 0:e.data;s&&(this.deviceList=s)}})},incrTime(){this.status.uptimeStamp&&this.status.uptimeStamp++}}}),Qt=Pt("system",{state:()=>({version:{},time:{},cpuStatus:{},cpuTemperature:{},meneryStatus:{},checkUpdate:{}}),getters:{},actions:{incrTime(){var e;(e=this.time)!=null&&e.uptime&&this.time.uptime++},requestVersion(){A.System.Version.GET().then(e=>{var s;(s=e==null?void 0:e.data)!=null&&s.result&&(this.version=e.data.result)})},requestTime(){A.System.Time.GET().then(e=>{var s;(s=e==null?void 0:e.data)!=null&&s.result&&(this.time=e.data.result)})},requestCpuStatus(){A.System.CPU.Status.GET().then(e=>{e!=null&&e.data.result&&(this.cpuStatus=e==null?void 0:e.data.result)})},requestCpuTemperature(){A.System.CPU.Temperature.GET().then(e=>{e!=null&&e.data.result&&(this.cpuTemperature=e==null?void 0:e.data.result)})},requestMeneryStatus(){A.System.Memery.Status.GET().then(e=>{e!=null&&e.data.result&&(this.meneryStatus=e==null?void 0:e.data.result)})},requestCheckUpdate(){A.System.CheckUpdate.GET().then(e=>{var s;(s=e==null?void 0:e.data)!=null&&s.result&&(this.checkUpdate=e.data.result)})}}}),Q1=()=>{const e=$e(),s=Qt();e.requestNetworkStatus(),e.requestDeviceList(),s.requestVersion(),s.requestTime(),s.requestCpuStatus(),s.requestCpuTemperature(),s.requestMeneryStatus(),s.requestCheckUpdate(),setInterval(()=>{s.requestCpuStatus(),s.requestCpuTemperature(),s.requestMeneryStatus(),e.requestNetworkStatus()},3e3),setInterval(()=>{e.incrTime(),s.incrTime()},1e3)},Y1={},tu={t:"1649668202191",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2338","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"28px",height:"28px"},eu=t("path",{d:"M288 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z","p-id":"2339",fill:"#666"},null,-1),su=t("path",{d:"M512 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z","p-id":"2340",fill:"#666"},null,-1),uu=t("path",{d:"M736 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z","p-id":"2341",fill:"#666"},null,-1),nu=[eu,su,uu];function ou(e,s){return o(),a("svg",tu,nu)}var Et=S(Y1,[["render",ou]]);let Ot=0;const au={props:{type:String,message:String|Function,Close:Function,countdown:Number},data(){return{show:!1,remain:0}},mounted(){if(setTimeout(()=>{this.show=!0},0),this.countdown){this.remain=this.countdown;const e=()=>{this.show&&this.remain>0&&(this.remain=this.remain-1,Ot=setTimeout(e,1e3))};Ot=setTimeout(e,1e3)}},computed:{Message(){return this.message+(this.countdown?" "+this.remain+"s":"")}},methods:{Stop(){this.type!="loading"&&(this.show=!1,Ot!=0&&clearTimeout(Ot),this.Close())}}},Ut=e=>(V("data-v-2d103395"),e=e(),q(),e),iu={key:0,class:"loading icon"},lu=Ut(()=>t("svg",{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"},[t("path",{d:"M522.695111 1.991111c-26.339556 0.170667-47.416889 21.475556-47.672889 48.753778-0.284444 26.453333-0.056889 52.963556-0.056889 79.445333 0 27.249778-0.369778 54.528 0.113778 81.777778 0.483556 27.050667 22.016 47.132444 49.351111 46.904889a47.786667 47.786667 0 0 0 47.729778-47.445333c0.284444-53.76 0.284444-107.52-0.028444-161.251556-0.170667-27.676444-21.902222-48.355556-49.436445-48.184889m-195.896889 88.092445c-8.334222-14.222222-21.646222-21.276444-38.314666-21.333334-35.128889 0-56.576 36.949333-38.968889 68.152889a11616.995556 11616.995556 0 0 0 78.961777 137.614222 44.942222 44.942222 0 0 0 61.838223 16.896c21.304889-12.202667 29.667556-38.968889 17.379555-60.871111-26.453333-47.104-53.560889-93.866667-80.896-140.458666m-228.693333 234.524444c44.316444 25.799111 88.746667 51.342222 133.176889 76.970667 6.712889 3.896889 13.681778 6.912 21.703111 6.428444 20.138667 0.142222 35.953778-11.946667 41.301333-31.573333 5.006222-18.261333-2.673778-36.721778-20.224-46.990222-44.629333-26.026667-89.372444-51.882667-134.115555-77.710223-22.528-12.999111-47.815111-7.025778-59.818667 13.909334-12.231111 21.248-4.977778 45.624889 17.948444 58.965333m34.161778 235.975111c26.396444 0 52.821333 0.199111 79.217778-0.085333 23.409778-0.256 39.139556-16.412444 38.798222-39.139556-0.341333-21.617778-16.924444-37.347556-39.594666-37.376-51.655111-0.056889-103.310222-0.056889-154.965334 0.028445-24.177778 0.056889-40.704 15.985778-40.561778 38.684444 0.142222 22.186667 16.583111 37.745778 40.192 37.859556 25.656889 0.142222 51.285333 0.028444 76.913778 0m151.722667 100.238222a34.247111 34.247111 0 0 0-46.876445-12.942222 13764.778667 13764.778667 0 0 0-139.008 80.583111c-11.093333 6.485333-16.327111 16.867556-16.497777 25.372444 0.085333 30.549333 27.249778 47.957333 50.403555 35.072 47.160889-26.197333 93.724444-53.475556 140.145778-80.924444 17.180444-10.154667 21.504-30.378667 11.832889-47.160889m91.875555 101.660444c-14.250667-4.067556-27.619556 1.422222-35.84 15.644445a24375.466667 24375.466667 0 0 0-77.312 134.485333c-10.012444 17.550222-5.859556 35.669333 9.784889 45.027556 16.014222 9.557333 34.247111 4.039111 44.714667-13.994667 25.543111-44.088889 50.915556-88.263111 76.373333-132.352 3.299556-5.745778 5.688889-11.690667 5.745778-14.933333 0-17.834667-9.272889-29.866667-23.466667-33.877334m147.456 44.288c-16.384 0.085333-27.306667 11.918222-27.448888 30.151111-0.142222 25.372444-0.028444 50.716444-0.028445 76.060445h-0.085333c0 26.112-0.113778 52.252444 0.056889 78.364444 0.113778 18.261333 11.064889 30.065778 27.448889 30.208 16.952889 0.142222 28.046222-11.832889 28.103111-30.748444 0.113778-51.086222 0.142222-102.172444 0.056889-153.258667 0-18.773333-11.207111-30.862222-28.103112-30.776889m177.208889-26.112c-7.509333-12.8-21.902222-16.014222-33.792-8.874666a23.722667 23.722667 0 0 0-8.533333 32.995555c26.282667 46.279111 52.906667 92.330667 79.644444 138.353778 4.494222 7.765333 11.633778 11.946667 20.906667 11.804444 18.545778-0.142222 30.520889-19.342222 21.219556-35.868444-26.026667-46.392889-52.650667-92.444444-79.473778-138.410667m239.957333-41.187555c-45.283556-26.254222-90.595556-52.48-135.964444-78.648889-4.693333-2.702222-9.728-4.323556-15.36-2.958222-9.102222 2.247111-14.933333 8.049778-16.497778 17.095111-1.877333 10.894222 3.84 18.204444 12.885333 23.438222 29.809778 17.180444 59.562667 34.417778 89.344 51.598222 15.217778 8.789333 30.236444 17.976889 45.738667 26.225778 14.677333 7.793778 31.061333-2.048 31.061333-18.033778-0.056889-8.448-4.096-14.592-11.207111-18.716444m48.867556-234.638222c-24.888889-0.085333-49.749333 0-74.609778 0v-0.085334c-25.258667 0-50.517333-0.056889-75.776 0.028445-13.425778 0.056889-20.963556 6.343111-21.162667 17.294222-0.199111 11.150222 7.082667 17.521778 20.679111 17.550222 50.488889 0.113778 100.977778 0.142222 151.495112 0.085333 13.368889 0 21.191111-6.485333 21.390222-17.152 0.227556-10.808889-8.106667-17.664-22.016-17.720888m-187.960889-127.146667c45.084444-26.026667 90.140444-52.110222 135.168-78.222222 4.864-2.844444 8.248889-6.855111 8.135111-12.942223-0.142222-11.036444-11.207111-17.436444-21.504-11.548444-45.511111 26.055111-90.851556 52.394667-136.135111 78.819556-7.68 4.494222-10.524444 11.52-5.575111 19.569777 4.835556 7.850667 12.088889 8.817778 19.911111 4.323556m-122.311111-115.114667c5.205333-0.256 8.220444-3.413333 10.609778-7.651555 4.920889-8.647111 10.040889-17.208889 14.990222-25.827556 20.48-35.555556 40.931556-71.025778 61.297778-106.609778 5.091556-8.874667 3.015111-16.668444-4.778667-18.517333-7.68-1.848889-10.894222 3.697778-14.051556 9.159111l-68.778666 119.495111c-2.844444 4.977778-6.030222 9.870222-8.305778 15.104-3.128889 7.196444 1.678222 14.648889 9.045333 14.848","p-id":"3454"})],-1)),cu=[lu],du={key:1,class:"success icon"},ru=Ut(()=>t("svg",{t:"1632451272305",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2204",width:"128",height:"128"},[t("path",{d:"M1001.305115 275.874141 431.461709 845.718571c-28.221762 28.221762-73.977875 28.221762-102.20066 0L22.661116 539.116591c-28.222785-28.221762-28.222785-73.979922 0-102.20066 28.221762-28.221762 73.977875-28.221762 102.20066 0l255.500115 255.502162 518.743588-518.743588c28.221762-28.221762 73.977875-28.221762 102.199637 0C1029.5279 201.89422 1029.5279 247.65238 1001.305115 275.874141z","p-id":"2205"})],-1)),_u=[ru],pu={key:2,class:"error icon"},vu=Ut(()=>t("svg",{t:"1632451325789",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2204",width:"128",height:"128"},[t("path",{d:"M823.04 840.32 524.16 540.16l296.32-294.4c12.8-12.8 12.8-33.28 0-45.44-12.8-12.8-33.28-12.8-46.08 0L478.08 494.08 184.96 200.32c-12.8-12.8-33.28-12.8-45.44 0s-12.8 33.28 0 45.44l292.48 293.76-302.72 300.8c-12.8 12.8-12.8 33.28 0 45.44 12.8 12.8 33.28 12.8 46.08 0l302.72-300.16 299.52 300.16c12.8 12.8 33.28 12.8 45.44 0C835.2 873.6 835.2 853.12 823.04 840.32z","p-id":"2205"})],-1)),hu=[vu],mu={key:3,class:"warning icon"},bu=Ut(()=>t("svg",{t:"1632451401172",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1638",width:"128",height:"128"},[t("path",{d:"M512 1021.45211835a60.32985613 60.32985613 0 1 1 60.32985613-60.32985611 60.32985613 60.32985613 0 0 1-60.32985613 60.32985611z m86.85823451-924.97400238L572.32985613 719.80283775a60.32985613 60.32985613 0 0 1-120.65971226 0l-26.52837838-623.32472178c-0.16758294-2.22885301-0.28489098-4.49122263-0.284891-6.78710881a87.14312551 87.14312551 0 0 1 174.28625102 0c0 2.2958862-0.11730806 4.5582558-0.284891 6.78710881z","p-id":"1639"})],-1)),fu=[bu];function Fu(e,s,u,n,i,c){return o(),W(at,{name:"el-fade-in-linear"},{default:z(()=>[i.show?(o(),a("div",{key:0,class:"toast",onClick:s[1]||(s[1]=h=>c.Stop())},[u.type=="loading"?(o(),a("div",iu,cu)):u.type=="success"?(o(),a("div",du,_u)):u.type=="error"?(o(),a("div",pu,hu)):u.type=="warning"?(o(),a("div",mu,fu)):D("",!0),t("div",{class:"message",onClick:s[0]||(s[0]=st(()=>{},["stop"]))},B(c.Message),1)])):D("",!0)]),_:1})}var $u=S(au,[["render",Fu],["__scopeId","data-v-2d103395"]]);const St=new Map,gt=e=>{const s=Q($u,lt(X({},e),{Close:()=>{n()}})),u=document.createElement("div");document.body.append(u),s.mount(u);const n=()=>{u.remove(),St.get(s._uid)&&St.delete(s._uid)};return e.type=="loading"&&St.set(s._uid,{Close:n}),(e==null?void 0:e.duration)==0||((e==null?void 0:e.duration)>0?setTimeout(()=>{n()},e==null?void 0:e.duration):setTimeout(()=>{n()},3e3)),{Close:n}},r=e=>gt(e);r.Loading=(e,s)=>gt({type:"loading",message:e||"\u52A0\u8F7D\u4E2D...",duration:0,countdown:s||0});r.Success=e=>gt({type:"success",message:e});r.Error=e=>gt({type:"error",message:e});r.Warning=e=>gt({type:"warning",message:e});r.Message=e=>gt({message:e});r.Message=e=>gt({message:e});r.Clear=()=>{St.forEach((e,s)=>{e.Close(),St.delete(s)})};const ku={},Cu={t:"1640746738262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1216",width:"128",height:"128"},Eu=t("path",{d:"M511.232 438.8352L112.9984 40.6016A51.2 51.2 0 0 0 40.6016 112.9984L438.784 511.232 40.6016 909.4656a51.2 51.2 0 1 0 72.3968 72.448l398.2336-398.2848 398.2336 398.2848a51.2 51.2 0 1 0 72.448-72.448l-398.2848-398.2336 398.2848-398.2336A51.2 51.2 0 0 0 909.4656 40.6016L511.232 438.784z","p-id":"1217"},null,-1),yu=[Eu];function gu(e,s){return o(),a("svg",Cu,yu)}var Du=S(ku,[["render",gu]]);const wu=e=>(V("data-v-5e2a990f"),e=e(),q(),e),Bu={id:"actioner"},Au={key:0,class:"action-container"},xu={class:"action-container_header"},Su=wu(()=>t("div",null,null,-1)),Iu={class:"title"},Pu={class:"action-container_body"},Tu=O({props:{Close:{type:Function},type:{type:Number},title:String},setup(e){const s=e,u=g(!1);qt(()=>{u.value=!0,document.body.setAttribute("lock-scroll","true")}),me(()=>{document.body.removeAttribute("lock-scroll")});const n=()=>{s.Close&&(u.value=!1,setTimeout(()=>{s.Close&&s.Close()},300))};return(i,c)=>(o(),a("div",Bu,[t("div",{class:"bg",onClick:n}),e.type!=null?(o(),W(at,{key:0,name:"dialog"},{default:z(()=>[u.value?wt(i.$slots,"default",{key:0},void 0,!0):D("",!0)]),_:3})):(o(),W(at,{key:1,name:"dialog"},{default:z(()=>[u.value?(o(),a("div",Au,[t("div",xu,[Su,t("div",Iu,B(e.title),1),t("button",{class:"close",title:"\u5173\u95ED",onClick:n},[x(Du)])]),t("div",Pu,[wt(i.$slots,"default",{},void 0,!0)])])):D("",!0)]),_:3}))]))}});var Mu=S(Tu,[["__scopeId","data-v-5e2a990f"]]);const it=O({props:{Close:{type:Function},type:{type:Number},title:String},setup(e){return(s,u)=>(o(),W(Mu,{Close:e.Close,type:e.type,title:e.title},{default:z(()=>[t("div",null,[wt(s.$slots,"default")])]),_:3},8,["Close","type","title"]))}}),ht=e=>(V("data-v-1229e356"),e=e(),q(),e),Lu=["onSubmit"],zu=ht(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),Nu={class:"actioner-dns_body"},Ou={class:"label-item"},Vu=ht(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u9009\u9879")],-1)),qu={class:"label-item_value"},Gu=ht(()=>t("option",{value:"auto"},"\u4F7F\u7528\u8FD0\u8425\u5546\u63D0\u4F9B\u7684DNS",-1)),Uu=ht(()=>t("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1)),Wu=[Gu,Uu],Hu={class:"label-item"},ju=ht(()=>t("div",{class:"label-item_key"},"DNS\u670D\u52A1\u5668\u5730\u5740",-1)),Ru={class:"label-item_value"},Zu=["onUpdate:modelValue"],Ju={class:"label-item"},Ku=ht(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1)),Xu={class:"label-item_value"},Qu={class:"label-item"},Yu=ht(()=>t("div",{class:"label-item_key"},"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740",-1)),tn={class:"label-item_value"},en={key:1,class:"label-message"},sn={class:"actioner-dns_footer"},un=["disabled"],nn={key:1,class:"actioner-dns"},on=ht(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),an=ht(()=>t("div",{class:"actioner-dns_body"},[t("div",{class:"config-message"},"DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")],-1)),ln=O({props:{Close:{type:Function,required:!0}},setup(e){const s=e,u=g(0),n=g({interfaceName:"",dnsProto:"auto",manualDnsIp:[]}),i=g(""),c=g(""),h=g(""),l=g(!1);(()=>P(this,null,function*(){var v;l.value=!0;try{const C=yield A.Guide.DnsConfig.GET();(v=C==null?void 0:C.data)!=null&&v.result&&(n.value=C.data.result)}catch(C){h.value=C}l.value=!1}))();const p=()=>P(this,null,function*(){h.value="";let v={};switch(n.value.dnsProto){case"auto":break;case"manual":v.manualDnsIp=[],n.value.manualDnsIp!=null&&n.value.manualDnsIp.length>0?v.manualDnsIp=n.value.manualDnsIp:(v.manualDnsIp.push(i.value),c.value&&v.manualDnsIp.push(c.value));break}v.dnsProto=n.value.dnsProto,v.interfaceName=n.value.interfaceName;const C=r.Loading("\u914D\u7F6E\u4E2D...");try{const _=yield A.Guide.DnsConfig.POST(v);if(_!=null&&_.data){const{success:y,error:$}=_==null?void 0:_.data;$&&(h.value=$),(y==null||y==0)&&(r.Success("\u914D\u7F6E\u6210\u529F"),u.value=1)}}catch(_){h.value=_}C.Close()}),k=v=>{v.preventDefault(),s.Close&&s.Close()},w=v=>{location.reload()};return(v,C)=>(o(),W(it,{Close:e.Close,type:1},{default:z(()=>[u.value==0?(o(),a("form",{key:0,class:"actioner-dns",onSubmit:st(p,["prevent"])},[zu,t("div",Nu,[t("div",Ou,[Vu,t("div",qu,[M(t("select",{"onUpdate:modelValue":C[0]||(C[0]=_=>n.value.dnsProto=_)},Wu,512),[[pt,n.value.dnsProto]])])]),n.value.dnsProto=="manual"?(o(),a(R,{key:0},[n.value.manualDnsIp!=null&&n.value.manualDnsIp.length>0?(o(!0),a(R,{key:0},ot(n.value.manualDnsIp,(_,y)=>(o(),a("div",Hu,[ju,t("div",Ru,[M(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740","onUpdate:modelValue":$=>n.value.manualDnsIp[y]=$},null,8,Zu),[[U,n.value.manualDnsIp[y],void 0,{trim:!0}]])])]))),256)):(o(),a(R,{key:1},[t("div",Ju,[Ku,t("div",Xu,[M(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740",required:"","onUpdate:modelValue":C[1]||(C[1]=_=>i.value=_)},null,512),[[U,i.value,void 0,{trim:!0}]])])]),t("div",Qu,[Yu,t("div",tn,[M(t("input",{type:"text",placeholder:"\u5907\u7528DNS\u5730\u5740","onUpdate:modelValue":C[2]||(C[2]=_=>c.value=_)},null,512),[[U,c.value,void 0,{trim:!0}]])])])],64))],64)):D("",!0),h.value?(o(),a("div",en,B(h.value),1)):D("",!0)]),t("div",sn,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:k},"\u53D6\u6D88"),t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:l.value},"\u786E\u8BA4",8,un)])],40,Lu)):u.value==1?(o(),a("div",nn,[on,an,t("div",{class:"actioner-dns_footer"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:w},"\u5B8C\u6210")])])):D("",!0)]),_:1},8,["Close"]))}});var cn=S(ln,[["__scopeId","data-v-1229e356"]]);const ke=()=>{const e=document.createElement("div");document.body.appendChild(e);const s=Q(cn,{Close:()=>{u()}});s.mount(e);const u=()=>{s.unmount(),e.remove()};return{Close:u}},Wt=e=>(V("data-v-383ce5d2"),e=e(),q(),e),dn={class:"action"},rn={class:"action-body"},_n=Wt(()=>t("div",{class:"icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),pn=Wt(()=>t("h2",{class:"title"},"\u670D\u52A1\u5DF2\u542F\u52A8",-1)),vn={class:"info"},hn=Wt(()=>t("span",null,"\u524D\u5F80",-1)),mn=["href"],bn=Wt(()=>t("span",null,"\u8FDB\u884C\u6D4B\u901F",-1)),fn=O({props:{port:Number,Close:Function},setup(e){const s=e,u=j(()=>`http://${location.hostname}:${s.port}`),n=()=>{s.Close&&(s.Close(),location.reload())};return(i,c)=>(o(),W(it,{type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[t("div",dn,[t("div",rn,[_n,pn,t("div",vn,[hn,t("a",{href:T(u),target:"_blank",rel:"noopener noreferrer"},B(T(u)),9,mn),bn]),t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:n},"\u5173\u95ED")])])])]),_:1})]),_:1}))}});var Fn=S(fn,[["__scopeId","data-v-383ce5d2"]]),re=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(Fn,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const ct=e=>(V("data-v-c22a80b6"),e=e(),q(),e),$n={class:"app-container_status-label"},kn={class:"app-container_status-label_item"},Cn={class:"app-container_status-container",style:{height:"100%"}},En={key:0,class:"app-container_status-container_body"},yn=ct(()=>t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128"},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063"})],-1)),gn=ct(()=>t("span",{class:"container_success"},"\u5DF2\u8FDE\u63A5\u4E92\u8054\u7F51",-1)),Dn={class:"container_time"},wn={key:1,class:"app-container_status-container_body"},Bn=ct(()=>t("svg",{t:"1642063200324",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5898",width:"128",height:"128"},[t("path",{d:"M549.044706 512l166.189176-166.249412a26.383059 26.383059 0 0 0 0-36.98447 26.383059 26.383059 0 0 0-37.044706 0L512 475.015529l-166.249412-166.249411a26.383059 26.383059 0 0 0-36.98447 0 26.383059 26.383059 0 0 0 0 37.044706L475.015529 512l-166.249411 166.249412a26.383059 26.383059 0 0 0 0 36.98447 26.383059 26.383059 0 0 0 37.044706 0L512 548.984471l166.249412 166.249411a26.383059 26.383059 0 0 0 36.98447 0 26.383059 26.383059 0 0 0 0-37.044706L548.984471 512zM512 1024a512 512 0 1 1 0-1024 512 512 0 0 1 0 1024z",fill:"#E84335","p-id":"5899"})],-1)),An=ct(()=>t("span",{class:"container_failure"},"DNS\u9519\u8BEF",-1)),xn={key:2,class:"app-container_status-container_body"},Sn=ct(()=>t("svg",{t:"1642063200324",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5898",width:"128",height:"128"},[t("path",{d:"M549.044706 512l166.189176-166.249412a26.383059 26.383059 0 0 0 0-36.98447 26.383059 26.383059 0 0 0-37.044706 0L512 475.015529l-166.249412-166.249411a26.383059 26.383059 0 0 0-36.98447 0 26.383059 26.383059 0 0 0 0 37.044706L475.015529 512l-166.249411 166.249412a26.383059 26.383059 0 0 0 0 36.98447 26.383059 26.383059 0 0 0 37.044706 0L512 548.984471l166.249412 166.249411a26.383059 26.383059 0 0 0 36.98447 0 26.383059 26.383059 0 0 0 0-37.044706L548.984471 512zM512 1024a512 512 0 1 1 0-1024 512 512 0 0 1 0 1024z",fill:"#E84335","p-id":"5899"})],-1)),In=ct(()=>t("span",{class:"container_failure"},"\u672A\u8FDE\u63A5\u4E92\u8054\u7F51",-1)),Pn=[Sn,In],Tn={key:3,class:"app-container_status-container_body"},Mn=ct(()=>t("svg",{width:"128px",height:"128px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_alert",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"14",height:"14"}),t("path",{d:"M7,0.875 C3.61757813,0.875 0.875,3.61757813 0.875,7 C0.875,10.3824219 3.61757813,13.125 7,13.125 C10.3824219,13.125 13.125,10.3824219 13.125,7 C13.125,3.61757813 10.3824219,0.875 7,0.875 Z M6.5625,4.046875 C6.5625,3.98671875 6.61171875,3.9375 6.671875,3.9375 L7.328125,3.9375 C7.38828125,3.9375 7.4375,3.98671875 7.4375,4.046875 L7.4375,7.765625 C7.4375,7.82578125 7.38828125,7.875 7.328125,7.875 L6.671875,7.875 C6.61171875,7.875 6.5625,7.82578125 6.5625,7.765625 L6.5625,4.046875 Z M7,10.0625 C6.63769531,10.0625 6.34375,9.76855469 6.34375,9.40625 C6.34375,9.04394531 6.63769531,8.75 7,8.75 C7.36230469,8.75 7.65625,9.04394531 7.65625,9.40625 C7.65625,9.76855469 7.36230469,10.0625 7,10.0625 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])])],-1)),Ln=ct(()=>t("span",{class:"container_failure colors"},"\u68C0\u6D4B\u4E2D",-1)),zn=[Mn,Ln],Nn={class:"app-container_status-label_item"},On={class:"app-container_status-container",style:{height:"100%"}},Vn={class:"more_icon",title:"\u67E5\u770B\u8BBE\u5907\u4FE1\u606F"},qn={class:"DeviceBlock"},Gn=ct(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/status/routes"},"\u8BBE\u5907\u8DEF\u7531")],-1)),Un={class:"app-container_status-container_body"},Wn=ct(()=>t("svg",{t:"1642045422383",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18766",width:"128",height:"128"},[t("path",{d:"M663.716 890.757a60.723 60.723 0 0 0 60.805 60.723h235.54a60.703 60.703 0 0 0 60.744-60.723V782.05h-357.09v108.708zM842.3 829.85c20.603 0 37.376 16.773 37.376 37.458a37.396 37.396 0 0 1-74.813 0c0-20.685 16.773-37.458 37.437-37.458z m178.504-576.226a60.703 60.703 0 0 0-60.744-60.764h-235.54a60.744 60.744 0 0 0-60.805 60.764v503.214h357.09V253.624z m-49.07 159.253a11.612 11.612 0 0 1-11.674 11.571h-235.54a11.633 11.633 0 0 1-11.653-11.571v-38.994c0-6.39 5.243-11.592 11.653-11.592h235.54c6.41 0 11.674 5.161 11.674 11.592v38.994z m0-115.2a11.674 11.674 0 0 1-11.674 11.612h-235.54a11.674 11.674 0 0 1-11.653-11.612v-38.974a11.674 11.674 0 0 1 11.653-11.653h235.54c6.41 0 11.674 5.243 11.674 11.653v38.974z",fill:"#1296db","p-id":"18767"}),t("path",{d:"M626.012 875.07h-76.185V763.473h76.185V660.582H62.3V150.323h856.494v13.169h58.553c1.27 0 2.457 0.287 3.747 0.368v-7.516a72.335 72.335 0 0 0-72.376-72.376H72.376A72.376 72.376 0 0 0 0 156.344v534.774a72.356 72.356 0 0 0 72.376 72.335h368.927V875.05H298.537a38.216 38.216 0 0 0 0 76.41h344.474a71.844 71.844 0 0 1-16.999-46.12v-30.27z",fill:"#1296db","p-id":"18768"})],-1)),Hn={class:"container_content"},jn=ct(()=>t("em",null,null,-1)),Rn={class:"app-container_status-container"},Zn={class:"more_icon",title:"\u67E5\u770B\u8BBE\u5907\u4FE1\u606F"},Jn={class:"DeviceBlock"},Kn={class:"app-container_title"},Xn={class:"app-container_status-label_block"},Qn={class:"app-container_status-label_block"},Yn={class:"app-container_title"},to={class:"app-container_status-label_block"},eo=O({props:{homebox:{type:Object}},setup(e){const s=()=>{ke()},u=$e(),n=j(()=>u.status),i=j(()=>u.deviceList),c=g(!1),h=g(!1),l=g(!1),m=$=>{switch($){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},p=$=>{switch($){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},k=It.stampForm,w=()=>{c.value=!c.value},v=()=>{l.value=!l.value},C=()=>{v(),w(),(()=>P(this,null,function*(){h.value=!0;let d=r.Loading("");try{const b=yield A.App.Check.POST({name:"app-meta-nlbwmon"});if(d.Close(),b!=null&&b.data){const{result:f,error:F}=b.data;if(F&&r.Warning(F),f){if(f.status=="installed")location.href="/cgi-bin/luci/admin/services/nlbw";else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5\u5E26\u5BBD\u76D1\u63A7\u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){d=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const E=yield y("app-meta-nlbwmon");d.Close(),E?(r.Success("\u5B89\u88C5\u6210\u529F"),location.href="/cgi-bin/luci/admin/services/nlbw"):r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(b){r.Error(b)}d.Close(),h.value=!1}))()},_=()=>{v(),(()=>P(this,null,function*(){var b,f,F,E;h.value=!0;let d=r.Loading("");try{const I=yield A.App.Check.POST({name:"app-meta-homebox"});if(d.Close(),I!=null&&I.data){const{result:K,error:Z}=I.data;if(Z&&r.Warning(Z),K){if(K.status=="installed"){const G=yield A.Network.Homebox.Enable.POST();(f=(b=G==null?void 0:G.data)==null?void 0:b.result)!=null&&f.port?re({port:G.data.result.port,setup:0}):r.Warning("\u542F\u52A8\u5931\u8D25")}else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5Homebox\u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){d=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const G=yield y("app-meta-homebox");if(d.Close(),G){r.Success("\u5B89\u88C5\u6210\u529F");const L=yield A.Network.Homebox.Enable.POST();(E=(F=L==null?void 0:L.data)==null?void 0:F.result)!=null&&E.port?re({port:L.data.result.port,setup:0}):r.Warning("\u542F\u52A8\u5931\u8D25")}else r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(I){r.Error(I)}d.Close(),h.value=!1}))()},y=$=>P(this,null,function*(){return A.App.Install.POST({name:$}).then(()=>{}),new Promise((d,b)=>P(this,null,function*(){let f=0;const F=setInterval(()=>P(this,null,function*(){if(f>20){clearInterval(F),b(!1);return}const E=yield A.App.Check.POST({name:$});if(E!=null&&E.data){const{result:I}=E.data;if((I==null?void 0:I.status)=="installed"){clearInterval(F),d(!0);return}}f++}),3e3)}))});return($,d)=>{var b,f;return o(),a(R,null,[t("div",$n,[t("div",kn,[t("div",Cn,[T(n)!=null?(o(),a(R,{key:0},[T(n).networkInfo=="netSuccess"?(o(),a("div",En,[yn,gn,t("span",Dn,B(T(k)(T(n).uptimeStamp)),1)])):T(n).networkInfo=="dnsFailed"?(o(),a("div",wn,[Bn,An,t("button",{onClick:s,class:"cbi-button cbi-button-apply"},"DNS\u914D\u7F6E")])):T(n).networkInfo=="netFailed"?(o(),a("div",xn,Pn)):(o(),a("div",Tn,zn))],64)):D("",!0)])]),t("div",Nn,[t("div",On,[t("span",Vn,[x(Et,{onClick:w})]),M(t("div",qn,[t("div",{class:"menu_background",onClick:w}),t("ul",null,[Gn,t("li",null,[t("a",{onClick:C},"\u5E26\u5BBD\u76D1\u63A7")])])],512),[[Ft,c.value]]),t("div",Un,[Wn,t("span",Hn,B(((f=(b=T(i))==null?void 0:b.devices)==null?void 0:f.length)||0)+"\u8BBE\u5907",1)])])])]),jn,t("div",Rn,[t("span",Zn,[x(Et,{onClick:v})]),M(t("div",Jn,[t("div",{class:"menu_background",onClick:v}),t("ul",null,[t("li",null,[t("a",{onClick:_},"\u5185\u7F51\u6D4B\u901F")])])],512),[[Ft,l.value]]),t("div",Kn,[t("span",null,"IP\u5730\u5740\uFF08"+B(T(n).defaultInterface)+"\uFF09",1)]),t("div",Xn,[t("span",null," IPv4\uFF1A "+B(T(n).ipv4addr)+" \uFF08"+B(m(T(n).proto||""))+"\uFF09 ",1)]),t("div",Qn,[t("span",null,"IPv6\uFF1A"+B(T(n).ipv6addr),1)]),t("div",Yn,[t("span",null,"DNS\uFF08"+B(p(T(n).dnsProto))+"\uFF09",1)]),(o(!0),a(R,null,ot(T(n).dnsList,F=>(o(),a("div",to,[t("span",null,B(F),1)]))),256))])],64)}}});var so=S(eo,[["__scopeId","data-v-c22a80b6"]]);const uo={class:"network-container"},no={class:"network-container_flow"},oo={class:"network-container_flow-container"},ao={class:"network-container_status"},io=O({setup(e){return(s,u)=>(o(),a("div",uo,[t("div",no,[t("div",oo,[x(X1,{style:{height:"360px"}})])]),t("div",ao,[x(so)])]))}});var lo=S(io,[["__scopeId","data-v-24616a36"]]);const co={},ro={width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_o=t("g",{id:"icon_alert",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"14",height:"14"}),t("path",{d:"M7,0.875 C3.61757813,0.875 0.875,3.61757813 0.875,7 C0.875,10.3824219 3.61757813,13.125 7,13.125 C10.3824219,13.125 13.125,10.3824219 13.125,7 C13.125,3.61757813 10.3824219,0.875 7,0.875 Z M6.5625,4.046875 C6.5625,3.98671875 6.61171875,3.9375 6.671875,3.9375 L7.328125,3.9375 C7.38828125,3.9375 7.4375,3.98671875 7.4375,4.046875 L7.4375,7.765625 C7.4375,7.82578125 7.38828125,7.875 7.328125,7.875 L6.671875,7.875 C6.61171875,7.875 6.5625,7.82578125 6.5625,7.765625 L6.5625,4.046875 Z M7,10.0625 C6.63769531,10.0625 6.34375,9.76855469 6.34375,9.40625 C6.34375,9.04394531 6.63769531,8.75 7,8.75 C7.36230469,8.75 7.65625,9.04394531 7.65625,9.40625 C7.65625,9.76855469 7.36230469,10.0625 7,10.0625 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])],-1),po=[_o];function vo(e,s){return o(),a("svg",ro,po)}var yt=S(co,[["render",vo]]);const ho={},mo={width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},bo=Kt('<title>\u5206\u533A\u4FE1\u606F</title><g id="icon_info" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group"><circle id="Oval" stroke="#333333" cx="9" cy="9" r="8.5"></circle><circle id="Oval" fill="#333333" cx="5" cy="9" r="1"></circle><circle id="Oval" fill="#333333" cx="9" cy="9" r="1"></circle><circle id="Oval" fill="#333333" cx="13" cy="9" r="1"></circle></g></g>',2),fo=[bo];function Fo(e,s){return o(),a("svg",mo,fo)}var _e=S(ho,[["render",Fo]]);const $o={},ko={width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Co=Kt('<title>\u5168\u76D8\u683C\u5F0F\u5316</title><g id="icon_disk-formatting" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-15" stroke="#333333"><circle id="Oval" cx="9" cy="9" r="8.5"></circle><g id="Group-16" transform="translate(4.000000, 4.500000)" stroke-linejoin="round"><polygon id="Rectangle" points="0.911080155 0 9.08891985 0 10 6 -8.8817842e-16 6"></polygon><rect id="Rectangle" transform="translate(5.000000, 7.500000) scale(1, -1) translate(-5.000000, -7.500000) " x="0" y="6" width="10" height="3"></rect></g></g></g>',2),Eo=[Co];function yo(e,s){return o(),a("svg",ko,Eo)}var go=S($o,[["render",yo]]);const $t=e=>(V("data-v-247e8eaf"),e=e(),q(),e),Do=["onSubmit"],wo=$t(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u786C\u76D8\u914D\u7F6E")],-1)),Bo={class:"action-body"},Ao={class:"disk-info"},xo=$t(()=>t("div",{class:"disk-info_icon"},[t("svg",{t:"1642589762094",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11301",width:"128",height:"128"},[t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"11302"}),t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"11303"}),t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"11304"}),t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"11305"}),t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"11306"}),t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"11307"}),t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"11308"}),t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"11309"}),t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"11310"}),t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"11311"}),t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11312"}),t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11313"}),t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11314"}),t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11315"}),t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11316"}),t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"11317"}),t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"11318"}),t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"11319"}),t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"11320"})])],-1)),So={key:0,class:"disk-info_mount-name"},Io={key:1,class:"disk-info_mount-name"},Po={key:0,class:"label-item"},To=$t(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),Mo={class:"label-item_path"},Lo={class:"label-item"},zo=$t(()=>t("div",{class:"label-item_key"},[t("span",null,"\u683C\u5F0F\u5316\u9009\u9879")],-1)),No={class:"label-item_value"},Oo=["disabled"],Vo={key:0,value:""},qo=$t(()=>t("option",{value:"format"},"\u683C\u5F0F\u5316",-1)),Go={key:1,value:"default"},Uo={class:"label-item_value"},Wo={key:0,class:"msg"},Ho={key:1,class:"msg"},jo={class:"action-footer"},Ro=$t(()=>t("div",{class:"auto"},null,-1)),Zo=["disabled"],Jo=["disabled"],Ko={key:1,class:"action result"},Xo={class:"action-body"},Qo=$t(()=>t("div",{class:"action-body_icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),Yo=$t(()=>t("div",{class:"action-body_msg"},"\u683C\u5F0F\u5316\u6210\u529F",-1)),ta={key:0,class:"action-body_info"},ea={key:1,class:"action-body_info"},sa=vt(" \u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A "),ua={class:"btns"},na=O({props:{action:String,disk:{type:Object},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const s=e,u=()=>{s.Close&&s.Close()},n=d=>{d.preventDefault(),s.Cancel&&s.Cancel(),u()},i=d=>{s.Next&&s.Next(d),u()},c=g(!1),h=g(0),l=d=>{h.value=d},m=g(s.action=="nas"?"":"format"),p=g(),k=g(),w=()=>{switch(m.value){case"format":C();return;case"default":v();return;default:r.Warning("\u8BF7\u9009\u62E9\u9009\u7EBF");return}},v=()=>{let d="";const b=s.mount;if(b!=null&&b.mountPoint!=null&&(d=b.mountPoint),d!=""){i(d);return}r.Warning("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84")},C=()=>{const d=s.disk,b=s.mount;if(b){const f=b.mountPoint||b.path;if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${f} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${f}?`))return;y(b);return}if(d){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${d.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;_(d);return}r.Error("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E")},_=d=>P(this,null,function*(){if(d.name==null||d.path==""){r.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(d.path==null||d.path==""){r.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}c.value=!0;const b=r.Loading("\u521D\u59CB\u5316\u4E2D...");try{const f=yield A.Nas.Disk.Init.POST({name:d.name,path:d.path});if(f!=null&&f.data){const{result:F,error:E}=f==null?void 0:f.data;E&&r.Warning(E),F&&(F.errorInfo?r.Warning(F.errorInfo):(r.Success("\u521D\u59CB\u5316\u6210\u529F"),F.childrens&&F.childrens.length>0&&(k.value=F.childrens[0]),p.value=F,l(1)))}}catch(f){r.Error(f)}b.Close(),c.value=!1}),y=d=>P(this,null,function*(){if(d.path==null||d.path==""){r.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}c.value=!0;const b=r.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const f=yield A.Nas.Disk.Partition.Format.POST({path:d.path,uuid:d.uuid,mountPoint:d.mountPoint});if(f!=null&&f.data){const{result:F,error:E}=f==null?void 0:f.data;E&&r.Warning(E),F&&(r.Success("\u683C\u5F0F\u5316\u6210\u529F"),k.value=F,l(1))}}catch(f){r.Error(f)}b.Close(),c.value=!1}),$=()=>{if(k.value&&k.value.mountPoint){i(k.value.mountPoint);return}r.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")};return(d,b)=>(o(),W(it,{type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>{var f;return[h.value==0?(o(),a("form",{key:0,class:"action format",onSubmit:st(w,["prevent"])},[wo,t("div",Bo,[t("div",Ao,[xo,e.mount?(o(),a("div",So,[t("span",null,"\u3010"+B(e.mount.total)+"\u3011",1),t("span",null,B(e.mount.mountPoint||e.mount.path),1)])):e.disk?(o(),a("div",Io,[t("span",null,"\u3010"+B(e.disk.size)+"\u3011",1),t("span",null,B(e.disk.venderModel),1)])):D("",!0)]),e.mount?(o(),a("div",Po,[To,t("div",Mo,B(e.mount.mountPoint||e.mount.path)+"\uFF08"+B(e.mount.total)+"\uFF09",1)])):D("",!0),t("div",Lo,[zo,t("div",No,[M(t("select",{"onUpdate:modelValue":b[0]||(b[0]=F=>m.value=F),required:"",disabled:e.action=="disk"},[e.mount!=null?(o(),a("option",Vo,"\u8BF7\u9009\u62E9\u9009\u9879")):D("",!0),qo,e.mount!=null?(o(),a("option",Go,"\u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF")):D("",!0)],8,Oo),[[pt,m.value]])]),t("div",Uo,[m.value=="format"?(o(),a("p",Wo,"\u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u4F20\u8F93\u901F\u5EA6\u66F4\u5FEB")):m.value=="default"?(o(),a("p",Ho)):D("",!0)])])]),t("div",jo,[Ro,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:n,type:"button",disabled:c.value},"\u8FD4\u56DE",8,Zo),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:c.value},"\u4E0B\u4E00\u6B65",8,Jo)])],40,Do)):h.value==1?(o(),a("div",Ko,[t("div",Xo,[Qo,Yo,p.value?(o(),a("div",ta,[vt(" \u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8 "+B(p.value.venderModel)+" \u5E76\u6302\u8F7D\u5230 ",1),t("a",null,B((f=k.value)==null?void 0:f.mountPoint),1)])):D("",!0),k.value?(o(),a("div",ea,[sa,t("a",null,B(k.value.mountPoint),1)])):D("",!0),t("div",ua,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:$},B(e.action=="nas"?"\u4E0B\u4E00\u6B65":"\u5B8C\u6210"),1)])])])):D("",!0)]}),_:1})]),_:1}))}});var oa=S(na,[["__scopeId","data-v-247e8eaf"]]),Yt=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(oa,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const Dt=e=>(V("data-v-5647ba78"),e=e(),q(),e),aa=Dt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"})],-1)),ia={class:"action-body"},la={class:"disk-info"},ca=Dt(()=>t("div",{class:"disk-info_icon"},[t("svg",{t:"1642589762094",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11301",width:"128",height:"128"},[t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"11302"}),t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"11303"}),t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"11304"}),t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"11305"}),t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"11306"}),t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"11307"}),t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"11308"}),t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"11309"}),t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"11310"}),t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"11311"}),t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11312"}),t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11313"}),t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11314"}),t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11315"}),t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11316"}),t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"11317"}),t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"11318"}),t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"11319"}),t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"11320"})])],-1)),da={key:0,class:"disk-info_mount-name"},ra={key:1,class:"disk-info_mount-name"},_a={key:0,class:"label-item"},pa=Dt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u76EE\u6807\u5206\u533A")],-1)),va={class:"label-item_path"},ha={class:"label-item"},ma=Dt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u6302\u8F7D\u70B9")],-1)),ba={class:"label-item_value"},fa=["value"],Fa={class:"action-footer"},$a=Dt(()=>t("div",{class:"auto"},null,-1)),ka=["disabled"],Ca=["disabled"],Ea={key:1,class:"action result"},ya={class:"action-body"},ga=Dt(()=>t("div",{class:"action-body_icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),Da=Dt(()=>t("div",{class:"action-body_msg"},"\u6302\u8F7D\u6210\u529F",-1)),wa={key:0,class:"action-body_info"},Ba={class:"btns"},Aa=O({props:{action:String,disk:{type:Object},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const s=e,u=()=>{s.Close&&s.Close()},n=v=>{v.preventDefault(),s.Cancel&&s.Cancel(),u()},i=v=>{s.Next&&s.Next(v),u()},c=g(!1),h=g(0),l=g("/mnt/data_"+s.mount.name),m=v=>{h.value=v};g(s.mount?"":"format"),g();const p=g(),k=()=>P(this,null,function*(){const v=s.mount;if(v==null){r.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A");return}if(v.path==null||v.path==""){r.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}if(v.uuid==null||v.uuid==""){r.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID");return}c.value=!0;const C=r.Loading("\u6302\u8F7D\u4E2D...");try{const _=yield A.Nas.Disk.Partition.Mount.POST({path:v.path,uuid:v.uuid,mountPoint:l.value});if(_!=null&&_.data){const{result:y,error:$}=_==null?void 0:_.data;$&&r.Warning($),y&&(r.Success("\u6302\u8F7D\u6210\u529F"),p.value=y,m(1))}}catch(_){r.Error(_)}C.Close(),c.value=!1}),w=()=>{if(p.value&&p.value.mountPoint){i(p.value.mountPoint);return}r.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")};return(v,C)=>(o(),W(it,{type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[h.value==0?(o(),a("form",{key:0,class:"action format",onSubmit:C[0]||(C[0]=st((..._)=>v.onSumbit&&v.onSumbit(..._),["prevent"]))},[aa,t("div",ia,[t("div",la,[ca,e.mount?(o(),a("div",da,[t("span",null,"\u3010"+B(e.mount.total)+"\u3011",1),t("span",null,B(e.mount.mountPoint),1)])):e.disk?(o(),a("div",ra,[t("span",null,"\u3010"+B(e.disk.size)+"\u3011",1),t("span",null,B(e.disk.venderModel),1)])):D("",!0)]),e.mount?(o(),a("div",_a,[pa,t("div",va,B(e.mount.path)+"\uFF08"+B(e.mount.total)+"\uFF0C"+B(e.mount.filesystem.toUpperCase())+"\uFF09",1)])):D("",!0),t("div",ha,[ma,t("div",ba,[t("input",{type:"text",value:l.value},null,8,fa)])])]),t("div",Fa,[$a,t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:c.value,onClick:k},"\u786E\u5B9A",8,ka),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:n,type:"button",disabled:c.value},"\u8FD4\u56DE",8,Ca)])],32)):h.value==1?(o(),a("div",Ea,[t("div",ya,[ga,Da,p.value?(o(),a("div",wa,[vt(" \u5DF2\u6210\u529F\u5C06\u5206\u533A "+B(p.value.path)+" \u6302\u8F7D\u5230 ",1),t("a",null,B(p.value.mountPoint),1)])):D("",!0),t("div",Ba,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",type:"button",onClick:w},B(e.action=="nas"?"\u5B8C\u6210":"\u4E0B\u4E00\u6B65"),1)])])])):D("",!0)]),_:1})]),_:1}))}});var xa=S(Aa,[["__scopeId","data-v-5647ba78"]]),Ce=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(xa,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const Ee=e=>(V("data-v-c8d0dd60"),e=e(),q(),e),Sa={class:"disk-content"},Ia={class:"disk-item"},Pa={class:"disk-item_name"},Ta={class:"disk_value"},Ma={key:0,class:"disk-item_value"},La={class:"value-data"},za={key:1,class:"disk-item_value"},Na={key:0,class:"disk_status"},Oa={class:"disk_status_item"},Va={key:0,class:"tooltip-trigger disk_tip"},qa=Ee(()=>t("div",{class:"tooltip-text tooltip-top"},[t("div",{class:"disk_dir_tip"},"\u5F53\u524D\u78C1\u76D8\u4E3A\u53EA\u8BFB\u72B6\u6001\uFF0C\u53EF\u80FD\u5BFC\u81F4\u65E0\u6CD5\u5199\u5165\u6570\u636E")],-1)),Ga={class:"disk_status_item"},Ua={key:0,class:"tooltip-trigger disk_tip"},Wa=Ee(()=>t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u5F53\u524D\u78C1\u76D8\u786C\u76D8\u683C\u5F0F\u4E3ANTFS\uFF0C\u53EF\u80FD\u5BFC\u81F4\u786C\u76D8\u51FA\u73B0\u517C\u5BB9\u6027\u95EE\u9898\uFF0C\u5EFA\u8BAE\u683C\u5F0F\u5316\u6210EXT4\u6587\u4EF6\u7CFB\u7EDF")],-1)),Ha=O({props:{part:{type:Object,required:!0},disk:{type:Object,required:!0}},setup(e){const s=e,u=j(()=>s.part.filesystem=="No FileSystem"),n=j(()=>u.value||!s.disk.isSystemRoot&&(s.part.isReadOnly||s.part.filesystem=="ntfs")&&s.part.mountPoint),i=function(m){Yt({action:"disk",disk:s.disk,mount:s.part,Cancel:()=>{},Next:p=>{location.reload()}})},c=()=>{Ce({action:"nas",disk:s.disk,mount:s.part,Cancel:()=>{},Next:()=>{location.reload()}})},h=()=>P(this,null,function*(){const m=r.Loading("\u5904\u7406\u4E2D...");try{const p=yield A.Nas.Disk.InitRest.POST({name:s.disk.name,path:s.disk.path});if(p!=null&&p.data){const{result:k,error:w}=p==null?void 0:p.data;w&&r.Warning(w),k&&(r.Success("\u6302\u8F7D\u6210\u529F"),location.reload())}}catch(p){r.Error(p)}m.Close()}),l=j(()=>s.part.filesystem=="Free Space");return(m,p)=>{var w;const k=dt("progress-item");return o(),a("div",Sa,[t("li",Ia,[t("div",Pa,[t("span",null,B(e.part.mountPoint||(T(l)?"-":(T(u)?"\u672A\u683C\u5F0F\u5316\uFF08":"\u672A\u6302\u8F7D\uFF08")+e.part.name+"\uFF09")),1)]),t("div",Ta,[e.part.mountPoint||T(l)?(o(),a("div",Ma,[t("div",La,[x(k,{value:T(l)?0:e.part.usage,text:T(l)?"\u672A\u5206\u533A\uFF08"+e.part.total+"\uFF09":e.part.used+"/"+e.part.total,style:{backgroundColor:"#767676"}},null,8,["value","text"])])])):T(u)?D("",!0):(o(),a("div",za,[t("div",{class:"value-data",onClick:c},"\u624B\u52A8\u6302\u8F7D")])),T(l)?(o(),a("button",{key:2,class:"cbi-button cbi-button-apply",onClick:h},"\u5206\u533A\u5E76\u683C\u5F0F\u5316")):T(n)?(o(),a("button",{key:3,class:"cbi-button cbi-button-apply",onClick:i},"\u683C\u5F0F\u5316\u5206\u533A")):D("",!0)])]),e.part.mountPoint?(o(),a("li",Na,[t("div",Oa,[t("div",null,"\u78C1\u76D8\u8BFB\u5199\u72B6\u6001\uFF1A"+B(e.part.isReadOnly?"\u53EA\u8BFB":"\u8BFB\u5199"),1),!e.part.isSystemRoot&&e.part.isReadOnly?(o(),a("div",Va,[x(yt),qa])):D("",!0)]),t("div",Ga,[t("div",null,"\u78C1\u76D8\u683C\u5F0F\uFF1A"+B((w=e.part.filesystem)==null?void 0:w.toUpperCase()),1),e.part.filesystem=="ntfs"?(o(),a("div",Ua,[x(yt),Wa])):D("",!0)])])):D("",!0)])}}});var ja=S(Ha,[["__scopeId","data-v-c8d0dd60"]]);const te=e=>(V("data-v-48366d0b"),e=e(),q(),e),Ra={key:0,class:"action"},Za=te(()=>t("h2",{class:"title"},"\u5206\u533A\u4FE1\u606F",-1)),Ja=te(()=>t("div",{class:"app-container_info"},[t("span",null,"\u6302\u8F7D\u70B9"),t("span",null,"\u5BB9\u91CF")],-1)),Ka={class:"app-container_body"},Xa=te(()=>t("div",{class:"auto"},null,-1)),Qa=O({props:{disk:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const s=e,u=g(0),n=()=>{s.Close&&s.Close()},i=c=>{c.preventDefault(),s.Cancel&&s.Cancel(),n()};return(c,h)=>(o(),W(it,{Close:e.Close,type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[u.value==0?(o(),a("div",Ra,[Za,t("ul",null,[t("li",null,[Ja,t("div",Ka,[(o(!0),a(R,null,ot(e.disk.childrens,(l,m)=>(o(),W(ja,{key:m,part:l,disk:e.disk},null,8,["part","disk"]))),128))])])]),t("div",{class:"action-footer"},[Xa,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:i,type:"button"},"\u8FD4\u56DE")])])):D("",!0)]),_:1})]),_:1},8,["Close"]))}});var Ya=S(Qa,[["__scopeId","data-v-48366d0b"]]),t2=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(Ya,lt(X({},e),{Close:()=>{n()}}));u.component("progress-item",be),u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const ee=e=>(V("data-v-063b4c54"),e=e(),q(),e),e2={key:0,class:"disk-item error"},s2={class:"disk-item_name"},u2={class:"disk-item_value"},n2={class:"value-data"},o2={class:"error"},a2={key:1,class:"disk-item"},i2={class:"disk-item_name"},l2={class:"disk_value"},c2={class:"disk-item_value"},d2={class:"value-data"},r2=ee(()=>t("div",{class:"disk-item-tooltip"},[t("span",null,"\u4EC5\u7EDF\u8BA1\u5DF2\u6302\u8F7D\u5206\u533A")],-1)),_2={class:"disk_icon"},p2={key:0,class:"tooltip-trigger"},v2={class:"disk_tip"},h2=ee(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u60A8\u7684\u7CFB\u7EDF\u7A7A\u95F4\u5DF2\u4E0D\u8DB3\uFF0C\u68C0\u6D4B\u5230\u60A8\u7684Docker\u6839\u76EE\u5F55\u4F4D\u4E8E\u7CFB\u7EDF\u6839\u76EE\u5F55\u4E0A\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C\uFF0C\u5EFA\u8BAE\u4F7F\u7528Docker\u8FC1\u79FB\u5411\u5BFC\u5C06Docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\u4E0A\u3002")])],-1)),m2={key:1,class:"tooltip-trigger"},b2={class:"disk_tip"},f2=ee(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"disk_dir_tip"},"\u5206\u533A\u5B58\u5728\u5F02\u5E38\uFF0C\u70B9\u51FB\u5206\u533A\u5217\u8868\u67E5\u770B\u9519\u8BEF")])],-1)),F2={key:2,class:"disk-item load"},$2={class:"disk-item_name"},k2={class:"disk_value"},C2={class:"disk-item_value"},E2={class:"value-data"},y2={key:3,class:"disk-item load"},g2={class:"disk-item_name"},D2={class:"disk_value"},w2={key:0,class:"disk-item_value"},B2={class:"value-data"},A2={key:1,class:"disk-item_value"},x2={class:"value-data"},S2={class:"disk_icon"},I2=O({props:{disk:{type:Object,required:!0}},setup(e){const s=e,u=j(()=>s.disk.errorInfo?"error":s.disk.childrens==null||s.disk.childrens.length==0||s.disk.childrens.length==1&&s.disk.childrens[0].filesystem=="No FileSystem"?"load":s.disk.childrens.filter(h=>h.mountPoint).length==0?"unmounted":"success"),n=()=>{Yt({action:"disk",disk:s.disk,Cancel:()=>{},Next:()=>{location.reload()}})},i=()=>{t2({action:"disk",disk:s.disk,Cancel:()=>{},Next:()=>{location.reload()}})},c=()=>{Ce({action:"nas",disk:s.disk,mount:s.disk.childrens[0],Cancel:()=>{},Next:()=>{location.reload()}})};return(h,l)=>{var p,k,w,v,C;const m=dt("progress-item");return T(u)=="error"?(o(),a("li",e2,[t("div",s2,[t("span",null,B(e.disk.venderModel),1)]),t("div",u2,[t("div",n2,[t("span",o2,B(e.disk.errorInfo),1)])])])):T(u)=="success"?(o(),a("li",a2,[t("div",i2,[t("span",null,"\u3010"+B(e.disk.size)+"\u3011",1),t("span",null,B(e.disk.venderModel),1)]),t("div",l2,[t("div",c2,[t("div",d2,[x(m,{value:e.disk.usage,text:`${e.disk.used}/${e.disk.total}`,style:{backgroundColor:"#767676"}},null,8,["value","text"])]),r2]),t("div",_2,[e.disk.isDockerRoot&&e.disk.isSystemRoot&&e.disk.usage>=90?(o(),a("span",p2,[t("span",v2,[x(yt)]),h2])):D("",!0),!e.disk.isSystemRoot&&(((p=e.disk.childrens)==null?void 0:p.filter(_=>_.isReadOnly||_.filesystem=="ntfs").length)||0)>0?(o(),a("span",m2,[t("span",b2,[x(yt)]),f2])):D("",!0),!e.disk.isSystemRoot&&(((k=e.disk.childrens)==null?void 0:k.filter(_=>_.isReadOnly||_.filesystem=="ntfs").length)||0)>0?(o(),a("span",{key:2,class:"disk_infoicon",onClick:l[0]||(l[0]=_=>n())},[x(go)])):D("",!0),t("span",{class:"disk_infoicon",onClick:l[1]||(l[1]=_=>i())},[x(_e)])])])])):T(u)=="load"?(o(),a("li",F2,[t("div",$2,[t("span",null,B(e.disk.venderModel),1)]),t("div",k2,[t("div",C2,[t("div",E2,[t("button",{onClick:l[2]||(l[2]=_=>n())},"\u683C\u5F0F\u5316\u5E76\u6302\u8F7D")])])])])):T(u)=="unmounted"?(o(),a("li",y2,[t("div",g2,[t("span",null,B(e.disk.venderModel),1)]),t("div",D2,[((w=e.disk.childrens)==null?void 0:w.length)==1?(o(),a("div",w2,[t("div",B2,[t("button",{onClick:l[3]||(l[3]=_=>c())},"\u624B\u52A8\u6302\u8F7D")])])):D("",!0),(((v=e.disk.childrens)==null?void 0:v.length)||0)>1?(o(),a("div",A2,[t("div",x2,[t("button",{onClick:l[4]||(l[4]=_=>i())},"\u624B\u52A8\u6302\u8F7D")])])):D("",!0),t("div",S2,[(((C=e.disk.childrens)==null?void 0:C.length)||0)>1?(o(),a("span",{key:0,class:"disk_infoicon",onClick:l[5]||(l[5]=_=>i())},[x(_e)])):D("",!0)])])])):D("",!0)}}});var pe=S(I2,[["__scopeId","data-v-063b4c54"]]);const Tt=e=>(V("data-v-687f4bb9"),e=e(),q(),e),P2={class:"app-container"},T2={class:"app-container_title"},M2=Tt(()=>t("span",{class:"disk_info"},"\u78C1\u76D8\u4FE1\u606F",-1)),L2={class:"more_icon",title:"\u67E5\u770B\u78C1\u76D8\u7BA1\u7406\u4FE1\u606F"},z2={class:"DeviceBlock"},N2=Tt(()=>t("ul",null,[t("li",null,[t("a",{href:"/cgi-bin/luci/admin/system/diskman"},"\u78C1\u76D8\u7BA1\u7406")]),t("li",null,[t("a",{href:"/cgi-bin/luci/admin/system/mounts"},"\u6302\u8F7D\u70B9")])],-1)),O2={key:0},V2=Tt(()=>t("div",{class:"disk_loading_icon"},[t("div",{class:"loading icon"},[t("svg",{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"},[t("path",{d:"M522.695111 1.991111c-26.339556 0.170667-47.416889 21.475556-47.672889 48.753778-0.284444 26.453333-0.056889 52.963556-0.056889 79.445333 0 27.249778-0.369778 54.528 0.113778 81.777778 0.483556 27.050667 22.016 47.132444 49.351111 46.904889a47.786667 47.786667 0 0 0 47.729778-47.445333c0.284444-53.76 0.284444-107.52-0.028444-161.251556-0.170667-27.676444-21.902222-48.355556-49.436445-48.184889m-195.896889 88.092445c-8.334222-14.222222-21.646222-21.276444-38.314666-21.333334-35.128889 0-56.576 36.949333-38.968889 68.152889a11616.995556 11616.995556 0 0 0 78.961777 137.614222 44.942222 44.942222 0 0 0 61.838223 16.896c21.304889-12.202667 29.667556-38.968889 17.379555-60.871111-26.453333-47.104-53.560889-93.866667-80.896-140.458666m-228.693333 234.524444c44.316444 25.799111 88.746667 51.342222 133.176889 76.970667 6.712889 3.896889 13.681778 6.912 21.703111 6.428444 20.138667 0.142222 35.953778-11.946667 41.301333-31.573333 5.006222-18.261333-2.673778-36.721778-20.224-46.990222-44.629333-26.026667-89.372444-51.882667-134.115555-77.710223-22.528-12.999111-47.815111-7.025778-59.818667 13.909334-12.231111 21.248-4.977778 45.624889 17.948444 58.965333m34.161778 235.975111c26.396444 0 52.821333 0.199111 79.217778-0.085333 23.409778-0.256 39.139556-16.412444 38.798222-39.139556-0.341333-21.617778-16.924444-37.347556-39.594666-37.376-51.655111-0.056889-103.310222-0.056889-154.965334 0.028445-24.177778 0.056889-40.704 15.985778-40.561778 38.684444 0.142222 22.186667 16.583111 37.745778 40.192 37.859556 25.656889 0.142222 51.285333 0.028444 76.913778 0m151.722667 100.238222a34.247111 34.247111 0 0 0-46.876445-12.942222 13764.778667 13764.778667 0 0 0-139.008 80.583111c-11.093333 6.485333-16.327111 16.867556-16.497777 25.372444 0.085333 30.549333 27.249778 47.957333 50.403555 35.072 47.160889-26.197333 93.724444-53.475556 140.145778-80.924444 17.180444-10.154667 21.504-30.378667 11.832889-47.160889m91.875555 101.660444c-14.250667-4.067556-27.619556 1.422222-35.84 15.644445a24375.466667 24375.466667 0 0 0-77.312 134.485333c-10.012444 17.550222-5.859556 35.669333 9.784889 45.027556 16.014222 9.557333 34.247111 4.039111 44.714667-13.994667 25.543111-44.088889 50.915556-88.263111 76.373333-132.352 3.299556-5.745778 5.688889-11.690667 5.745778-14.933333 0-17.834667-9.272889-29.866667-23.466667-33.877334m147.456 44.288c-16.384 0.085333-27.306667 11.918222-27.448888 30.151111-0.142222 25.372444-0.028444 50.716444-0.028445 76.060445h-0.085333c0 26.112-0.113778 52.252444 0.056889 78.364444 0.113778 18.261333 11.064889 30.065778 27.448889 30.208 16.952889 0.142222 28.046222-11.832889 28.103111-30.748444 0.113778-51.086222 0.142222-102.172444 0.056889-153.258667 0-18.773333-11.207111-30.862222-28.103112-30.776889m177.208889-26.112c-7.509333-12.8-21.902222-16.014222-33.792-8.874666a23.722667 23.722667 0 0 0-8.533333 32.995555c26.282667 46.279111 52.906667 92.330667 79.644444 138.353778 4.494222 7.765333 11.633778 11.946667 20.906667 11.804444 18.545778-0.142222 30.520889-19.342222 21.219556-35.868444-26.026667-46.392889-52.650667-92.444444-79.473778-138.410667m239.957333-41.187555c-45.283556-26.254222-90.595556-52.48-135.964444-78.648889-4.693333-2.702222-9.728-4.323556-15.36-2.958222-9.102222 2.247111-14.933333 8.049778-16.497778 17.095111-1.877333 10.894222 3.84 18.204444 12.885333 23.438222 29.809778 17.180444 59.562667 34.417778 89.344 51.598222 15.217778 8.789333 30.236444 17.976889 45.738667 26.225778 14.677333 7.793778 31.061333-2.048 31.061333-18.033778-0.056889-8.448-4.096-14.592-11.207111-18.716444m48.867556-234.638222c-24.888889-0.085333-49.749333 0-74.609778 0v-0.085334c-25.258667 0-50.517333-0.056889-75.776 0.028445-13.425778 0.056889-20.963556 6.343111-21.162667 17.294222-0.199111 11.150222 7.082667 17.521778 20.679111 17.550222 50.488889 0.113778 100.977778 0.142222 151.495112 0.085333 13.368889 0 21.191111-6.485333 21.390222-17.152 0.227556-10.808889-8.106667-17.664-22.016-17.720888m-187.960889-127.146667c45.084444-26.026667 90.140444-52.110222 135.168-78.222222 4.864-2.844444 8.248889-6.855111 8.135111-12.942223-0.142222-11.036444-11.207111-17.436444-21.504-11.548444-45.511111 26.055111-90.851556 52.394667-136.135111 78.819556-7.68 4.494222-10.524444 11.52-5.575111 19.569777 4.835556 7.850667 12.088889 8.817778 19.911111 4.323556m-122.311111-115.114667c5.205333-0.256 8.220444-3.413333 10.609778-7.651555 4.920889-8.647111 10.040889-17.208889 14.990222-25.827556 20.48-35.555556 40.931556-71.025778 61.297778-106.609778 5.091556-8.874667 3.015111-16.668444-4.778667-18.517333-7.68-1.848889-10.894222 3.697778-14.051556 9.159111l-68.778666 119.495111c-2.844444 4.977778-6.030222 9.870222-8.305778 15.104-3.128889 7.196444 1.678222 14.648889 9.045333 14.848","p-id":"3454"})])]),t("span",{class:"disk_loading_info"},"\u6B63\u5728\u83B7\u53D6\u78C1\u76D8\u4FE1\u606F...")],-1)),q2=[V2],G2={key:1},U2=Tt(()=>t("div",{class:"app-container_info"},[t("span",null,"\u7CFB\u7EDF\u6839\u76EE\u5F55")],-1)),W2={class:"app-container_body"},H2={key:2},j2=Tt(()=>t("div",{class:"app-container_info"},[t("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),R2={class:"app-container_body"},Z2=O({setup(e){const s=g(!1),u=g();(()=>{A.Nas.Disk.Status.GET().then(c=>{var h;if((h=c==null?void 0:c.data)!=null&&h.result){const l=c.data.result;u.value=l.disks}})})();const i=()=>{s.value=!s.value};return(c,h)=>{var l,m;return o(),a("div",P2,[t("ul",null,[t("li",null,[t("div",T2,[M2,t("span",L2,[x(Et,{onClick:i})]),M(t("div",z2,[t("div",{class:"menu_background",onClick:i}),N2],512),[[Ft,s.value]])])]),u.value?D("",!0):(o(),a("li",O2,q2)),u.value?(o(),a("li",G2,[U2,t("div",W2,[(o(!0),a(R,null,ot((l=u.value)==null?void 0:l.filter(p=>p.isSystemRoot),(p,k)=>(o(),W(pe,{key:k,disk:p},null,8,["disk"]))),128))])])):D("",!0),u.value?(o(),a("li",H2,[j2,t("div",R2,[(o(!0),a(R,null,ot((m=u.value)==null?void 0:m.filter(p=>!p.isSystemRoot),(p,k)=>(o(),W(pe,{key:k,disk:p},null,8,["disk"]))),128))])])):D("",!0)])])}}});var J2=S(Z2,[["__scopeId","data-v-687f4bb9"]]);const ye=e=>(V("data-v-c98f7488"),e=e(),q(),e),K2={class:"app-container_samba"},X2={key:0,class:"sambas-item"},Q2=ye(()=>t("div",{class:"sambas-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),Y2={class:"sambas-item_value"},t6=ye(()=>t("li",{class:"sambas-item"},[t("div",{class:"sambas-item_name tit"},[t("span",null,"\u5730\u5740")]),t("div",{class:"sambas-item_value tit"},[t("span",null,"\u76EE\u5F55")])],-1)),e6={class:"samba-item"},s6={class:"samba-item_name"},u6=["title"],n6=O({props:{sambas:{type:Array}},setup(e){const s=window.location.hostname;return(u,n)=>{var i;return o(),a("ul",K2,[e.sambas?(o(),a("li",X2,[Q2,t("div",Y2,[t("span",null,B((i=e.sambas)!=null&&i.length?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"),1)])])):D("",!0),t6,(o(!0),a(R,null,ot(e.sambas,c=>(o(),a("li",e6,[t("div",s6,[t("span",null,"smb://"+B(T(s))+"/"+B(c.shareName),1)]),t("div",{class:"samba-item_value",title:c.path},[t("span",null,B(c.path),1)],8,u6)]))),256))])}}});var o6=S(n6,[["__scopeId","data-v-c98f7488"]]);const Ht=e=>(V("data-v-7e6f57b6"),e=e(),q(),e),a6={class:"webdav-item"},i6=Ht(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),l6={class:"webdav-item_value"},c6={key:0,class:"webdav-item"},d6=Ht(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u6302\u8F7D\u8DEF\u5F84:")],-1)),r6={class:"webdav-item_value"},_6={key:1,class:"webdav-item"},p6=Ht(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u670D\u52A1\u8DEF\u5F84:")],-1)),v6={class:"webdav-item_value"},h6=["href"],m6={key:2,class:"webdav-item"},b6=Ht(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u8D26\u53F7:")],-1)),f6={class:"webdav-item_value"},F6=O({props:{webdav:{type:Object}},setup(e){const s=e,u=j(()=>{var n;return`http://${location.hostname}:${(n=s.webdav)==null?void 0:n.port}`});return(n,i)=>{var c,h,l,m,p,k;return o(),a(R,null,[t("li",a6,[i6,t("div",l6,[t("span",null,B((c=e.webdav)!=null&&c.path?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"),1)])]),(h=e.webdav)!=null&&h.path?(o(),a("li",c6,[d6,t("div",r6,[t("span",null,B((l=e.webdav)==null?void 0:l.path),1)])])):D("",!0),(m=e.webdav)!=null&&m.port?(o(),a("li",_6,[p6,t("div",v6,[t("a",{href:T(u),target:"_blank",rel:"noopener noreferrer"},B(T(u)),9,h6)])])):D("",!0),(p=e.webdav)!=null&&p.username?(o(),a("li",m6,[b6,t("div",f6,[t("span",null,B((k=e.webdav)==null?void 0:k.username),1)])])):D("",!0)],64)}}});var $6=S(F6,[["__scopeId","data-v-7e6f57b6"]]);const se=e=>(V("data-v-6e660f68"),e=e(),q(),e),k6={class:"disk-item"},C6=se(()=>t("div",{class:"disk-item_icon"},[t("svg",{t:"1642563338465",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2216",width:"128",height:"128"},[t("path",{d:"M998.4 711.68l-119.467-512c-6.826-42.667-42.666-75.093-87.04-76.8H232.107c-44.374 1.707-80.214 35.84-87.04 78.507L25.6 711.68c-5.12 13.653-6.827 29.013-6.827 42.667 0 76.8 63.147 139.946 141.654 139.946H865.28c78.507 0 141.653-63.146 141.653-139.946 0-13.654-3.413-29.014-8.533-42.667zM394.24 366.933c1.707-51.2 56.32-92.16 124.587-92.16S640 315.733 640 365.227c44.373-1.707 81.92 23.893 83.627 58.026s-34.134 63.147-78.507 64.854h-6.827l-245.76 1.706c-44.373 0-80.213-27.306-80.213-59.733 0-35.84 37.547-63.147 81.92-63.147z m471.04 459.094H160.427c-39.254 0-69.974-30.72-69.974-69.974s32.427-69.973 69.974-69.973H865.28c39.253 0 69.973 30.72 69.973 69.973 1.707 37.547-30.72 69.974-69.973 69.974z m-35.84-92.16c-11.947 0-22.187 8.533-23.893 20.48 0 11.946 8.533 22.186 20.48 23.893h3.413c11.947 0 22.187-10.24 22.187-22.187 0-13.653-8.534-22.186-22.187-22.186z m-46.08 22.186c0-25.6 20.48-46.08 46.08-46.08s46.08 20.48 46.08 46.08-20.48 46.08-46.08 46.08-46.08-20.48-46.08-46.08z","p-id":"2217"})])],-1)),E6={class:"disk-item_f"},y6={class:"disk-item_venderModel"},g6={class:"disk-item_used"},D6=se(()=>t("div",{class:"auto"},null,-1)),w6={class:"disk-item-r"},B6={class:"disk-children"},A6=["onClick"],x6=se(()=>t("div",{class:"disk-item_icon"},[t("svg",{t:"1642563581459",class:"icon",viewBox:"0 0 1228 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7132",width:"128",height:"128"},[t("path",{d:"M525.2096 145.3568c1.9968-45.568-35.6864-99.1232-57.4976-99.1232H57.4976C15.872 79.9232 17.8176 145.408 17.8176 145.408h507.392z",fill:"#ECC049","p-id":"7133"}),t("path",{d:"M21.8112 143.36L19.8144 825.1392c0 75.3152 75.3152 152.576 150.6304 152.576h887.9104c75.264 0 150.6304-75.264 150.6304-152.576V297.984c0-75.264-75.3152-152.576-150.6304-152.576h-434.0224L21.8112 143.36z",fill:"#FFD658","p-id":"7134"})])],-1)),S6={key:0},I6={key:1},P6=O({props:{disk:{type:Object,required:!0},currDisk:{type:Object},currMountPoint:{type:Object},onDisk:{type:Function,required:!0}},setup(e){var i,c;const s=e,u=g(!1);s.currDisk!=null&&((i=s.currDisk)==null?void 0:i.venderModel)==((c=s.disk)==null?void 0:c.venderModel)&&(u.value=!0);const n=h=>{u.value=!u.value,s.onDisk(h,null)};return(h,l)=>{var m;return o(),a("ul",k6,[t("li",{class:_t(["disk-info",{on:e.disk.venderModel==((m=e.currDisk)==null?void 0:m.venderModel),nopoint:e.disk.childrens==null||e.disk.childrens.length==0}]),onClick:l[0]||(l[0]=p=>n(e.disk))},[C6,t("div",E6,[t("div",y6,B(e.disk.venderModel),1),t("div",g6,B(e.disk.used)+"/"+B(e.disk.size),1)]),D6,t("div",w6,B(e.disk.path),1)],2),M(t("div",B6,[(o(!0),a(R,null,ot(e.disk.childrens,p=>{var k,w;return o(),a("li",{class:_t(["disk-children_item",{on:p.uuid==((k=e.currMountPoint)==null?void 0:k.uuid)&&p.path==((w=e.currMountPoint)==null?void 0:w.path)}]),onClick:v=>e.onDisk(e.disk,p)},[x6,p.mountPoint?(o(),a("span",S6," \u3010"+B(p.filesystem)+"\u3011 "+B(p.mountPoint)+" \uFF08"+B(p.used)+"/"+B(p.total)+"\uFF09 ["+B(p.uuid)+"] ",1)):(o(),a("span",I6," \u3010"+B(p.filesystem)+"\u3011 "+B(p.mountPoint||p.path||"\u672A\u6302\u8F7D\u78C1\u76D8")+" ["+B(p.uuid)+"] ",1))],10,A6)}),256))],512),[[Ft,u.value]])])}}});var T6=S(P6,[["__scopeId","data-v-6e660f68"]]);const ue=e=>(V("data-v-0220be6f"),e=e(),q(),e),M6={class:"action list"},L6=ue(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u8BF7\u9009\u62E9\u4E00\u4E2A\u786C\u76D8\u6216\u5206\u533A")],-1)),z6={class:"action-body"},N6={class:"disk-list"},O6=ue(()=>t("div",{class:"action-msg"},[t("span",null,[vt(" \u60F3\u8981\u66F4\u7CBE\u786E\u7684\u914D\u7F6E\uFF1F\u8BF7\u524D\u5F80 "),t("a",{href:"/cgi-bin/luci/admin/system/diskman"},"\u9AD8\u7EA7\u8BBE\u7F6E")])],-1)),V6=ue(()=>t("div",{class:"auto"},null,-1)),q6=O({props:{Cancel:{type:Function},Next:{type:Function},Close:{type:Function}},setup(e){const s=e,u=g(!0),n=g();(()=>{A.Nas.Disk.Status.GET().then(v=>{v!=null&&v.data.result&&(n.value=v==null?void 0:v.data.result.disks)})})();const c=g(),h=g(),l=(v,C)=>{c.value=v,h.value=C},m=()=>{s.Close&&s.Close()},p=()=>{s.Cancel&&s.Cancel(),m()},k=v=>{s.Next&&s.Next(v),m()},w=()=>{if(c.value==null){r.Warning("\u8BF7\u9009\u62E9\u76EE\u6807\u786C\u76D8");return}if(c.value.childrens!=null&&c.value.childrens.length>0&&h.value==null){r.Warning("\u8BF7\u9009\u62E9\u786C\u76D8\u5206\u533A");return}if(h.value!=null&&(h.value.mountPoint==null||h.value.mountPoint=="")){r.Warning("\u8BE5\u5206\u533A\u5C1A\u672A\u6302\u8F7D\uFF0C\u8BF7\u5148\u53BB\u6302\u8F7D");return}u.value=!1,Yt({action:"nas",disk:c.value,mount:h.value,Cancel:()=>{u.value=!0},Next:v=>{k(v)}})};return(v,C)=>u.value?(o(),W(it,{key:0,type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[t("div",M6,[L6,t("div",z6,[t("div",N6,[(o(!0),a(R,null,ot(n.value,_=>(o(),W(T6,{disk:_,onDisk:l,currDisk:c.value,currMountPoint:h.value},null,8,["disk","currDisk","currMountPoint"]))),256))])]),O6,t("div",{class:"action-footer"},[V6,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:p,type:"button"},"\u8FD4\u56DE"),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:w,type:"button"},"\u4E0B\u4E00\u6B65")])])]),_:1})]),_:1})):D("",!0)}});var G6=S(q6,[["__scopeId","data-v-0220be6f"]]),U6=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(G6,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const jt=e=>(V("data-v-2794e6e0"),e=e(),q(),e),W6={class:"action"},H6={class:"action-body"},j6=jt(()=>t("div",{class:"icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),R6=jt(()=>t("h2",{class:"title"},"\u670D\u52A1\u5DF2\u542F\u52A8",-1)),Z6={class:"info"},J6=jt(()=>t("span",null,"\u524D\u5F80",-1)),K6=["href"],X6=jt(()=>t("span",null,"\u914D\u7F6E",-1)),Q6=O({props:{Close:Function},setup(e){const s=e,u=g(""),n=j(()=>`http://${location.hostname}:${u.value}`);(()=>{A.Nas.Linkease.Enable.POST().then(h=>{var l,m;(l=h==null?void 0:h.data)!=null&&l.result&&(u.value=((m=h.data.result)==null?void 0:m.port)||"")})})();const c=()=>{s.Close&&s.Close(),location.reload()};return(h,l)=>(o(),W(it,{type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[t("div",W6,[t("div",H6,[j6,R6,t("div",Z6,[J6,t("a",{href:T(n),target:"_blank",rel:"noopener noreferrer"},B(T(n)),9,K6),X6]),t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:c},"\u5173\u95ED")])])])]),_:1})]),_:1}))}});var Y6=S(Q6,[["__scopeId","data-v-2794e6e0"]]),ti=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(Y6,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const Mt=e=>(V("data-v-e84f8f4c"),e=e(),q(),e),ei=["onSubmit"],si=Mt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Webdav\u5171\u4EAB\u914D\u7F6E")],-1)),ui={class:"action-body"},ni={class:"label-item"},oi=Mt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),ai={class:"label-item_value"},ii=["value"],li={class:"label-item"},ci=Mt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),di={class:"label-item_value"},ri={class:"label-item"},_i=Mt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),pi={class:"label-item_value"},vi={class:"action-footer"},hi=Mt(()=>t("div",{class:"auto"},null,-1)),mi=["disabled"],bi=["disabled"],fi=O({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const s=e,u=m=>{m.preventDefault(),s.Close&&s.Close()},n=g(!1),i=g({username:"root",password:"",rootPath:s.rootPath});(()=>P(this,null,function*(){const m=r.Loading("\u52A0\u8F7D\u4E2D...");n.value=!0;try{const p=yield A.Nas.Webdav.Status.GET();if(p!=null&&p.data){const{result:k,error:w}=p.data;if(w){r.Warning(w);return}k&&(k.username&&(i.value.username=k.username),k.password&&(i.value.password=k.password))}}catch(p){r.Error(p)}n.value=!1,m.Close()}))();const h=()=>{const m=i.value;if(m.rootPath==""){r.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.username==""){r.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(m.password==""){r.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}l(m)},l=m=>P(this,null,function*(){n.value=!0;const p=r.Loading("\u521B\u5EFA\u4E2D...");try{const k=yield A.Nas.Webdav.Create.POST(m);if(k!=null&&k.data){const{error:w,result:v}=k.data;w&&r.Warning(w),v&&(r.Success("\u521B\u5EFA\u6210\u529F"),setTimeout(()=>{location.reload()},1e3))}}catch(k){r.Error(k)}p.Close(),n.value=!1});return(m,p)=>(o(),W(it,{type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[t("form",{class:"action",onSubmit:st(h,["prevent"])},[si,t("div",ui,[t("div",ni,[oi,t("div",ai,[t("input",{type:"text",value:i.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,ii)])]),t("div",li,[ci,t("div",di,[M(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":p[0]||(p[0]=k=>i.value.username=k)},null,512),[[U,i.value.username,void 0,{trim:!0}]])])]),t("div",ri,[_i,t("div",pi,[M(t("input",{type:"password","onUpdate:modelValue":p[1]||(p[1]=k=>i.value.password=k)},null,512),[[U,i.value.password,void 0,{trim:!0}]])])])]),t("div",vi,[hi,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:u,disabled:n.value},"\u5173\u95ED",8,mi),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:n.value},"\u521B\u5EFA",8,bi)])],40,ei)]),_:1})]),_:1}))}});var Fi=S(fi,[["__scopeId","data-v-e84f8f4c"]]),$i=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(Fi,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const kt=e=>(V("data-v-f2956624"),e=e(),q(),e),ki=["onSubmit"],Ci=kt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Samba\u5171\u4EAB\u914D\u7F6E")],-1)),Ei={class:"action-body"},yi={class:"label-item"},gi=kt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),Di={class:"label-item_value"},wi=["value"],Bi={class:"label-item"},Ai=kt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5171\u4EAB\u540D\uFF08\u5EFA\u8BAE\u4F7F\u7528\u82F1\u6587\u5B57\u6BCD\uFF09")],-1)),xi={class:"label-item_value"},Si={class:"label-item"},Ii=kt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),Pi={class:"label-item_value"},Ti={class:"label-item"},Mi=kt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),Li={class:"label-item_value"},zi={class:"samba-item"},Ni={class:"samba-item_allow"},Oi=kt(()=>t("label",{for:"allow",class:"samba-allow"},"\u5141\u8BB8\u65E7\u534F\u8BAE\u4E0E\u8EAB\u4EFD\u9A8C\u8BC1(\u4E0D\u5B89\u5168)",-1)),Vi={class:"samba-item_tips"},qi={class:"tooltip-trigger"},Gi={class:"samba_tip"},Ui=kt(()=>t("span",{class:"samba_dir_tip"},"\u517C\u5BB9\u4E00\u4E9B\u7535\u89C6\u6216\u8005\u7535\u89C6\u76D2\u5B50",-1)),Wi={class:"action-footer"},Hi=kt(()=>t("div",{class:"auto"},null,-1)),ji=["disabled"],Ri=["disabled"],Zi=O({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const s=e,u=l=>{l.preventDefault(),s.Close&&s.Close()},n=g(!1),i=g({shareName:"",username:"",password:"",rootPath:s.rootPath,allowLegacy:!1}),c=()=>{const l=i.value;if(l.rootPath==""){r.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(l.shareName==""){r.Warning("\u5171\u4EAB\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A");return}if(l.username==""){r.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(l.password==""){r.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}h(l)},h=l=>P(this,null,function*(){n.value=!0;const m=r.Loading("\u521B\u5EFA\u4E2D...");try{const p=yield A.Nas.Samba.Create.POST(l);if(p!=null&&p.data){const{error:k,result:w}=p.data;k&&r.Warning(k),w&&(r.Success("\u521B\u5EFA\u6210\u529F"),setTimeout(()=>{location.reload()},1e3))}}catch(p){r.Error(p)}m.Close(),n.value=!1});return(l,m)=>(o(),W(it,{type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[t("form",{class:"action",onSubmit:st(c,["prevent"])},[Ci,t("div",Ei,[t("div",yi,[gi,t("div",Di,[t("input",{type:"text",value:i.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,wi)])]),t("div",Bi,[Ai,t("div",xi,[M(t("input",{type:"text","onUpdate:modelValue":m[0]||(m[0]=p=>i.value.shareName=p),required:"",placeholder:"\u5171\u4EAB\u540D\u79F0"},null,512),[[U,i.value.shareName,void 0,{trim:!0}]])])]),t("div",Si,[Ii,t("div",Pi,[M(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":m[1]||(m[1]=p=>i.value.username=p)},null,512),[[U,i.value.username,void 0,{trim:!0}]])])]),t("div",Ti,[Mi,t("div",Li,[M(t("input",{type:"password","onUpdate:modelValue":m[2]||(m[2]=p=>i.value.password=p)},null,512),[[U,i.value.password,void 0,{trim:!0}]])])]),t("div",zi,[t("div",Ni,[M(t("input",{type:"checkbox",id:"allow","onUpdate:modelValue":m[3]||(m[3]=p=>i.value.allowLegacy=p)},null,512),[[We,i.value.allowLegacy]]),Oi]),t("div",Vi,[t("span",qi,[t("span",Gi,[x(yt)]),Ui])])])]),t("div",Wi,[Hi,t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:u,disabled:n.value},"\u5173\u95ED",8,ji),t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:n.value},"\u521B\u5EFA",8,Ri)])],40,ki)]),_:1})]),_:1}))}});var Ji=S(Zi,[["__scopeId","data-v-f2956624"]]),Ki=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(Ji,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const Lt=e=>(V("data-v-3336c5ea"),e=e(),q(),e),Xi={key:0,class:"action"},Qi=Lt(()=>t("h2",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528 NAS \u914D\u7F6E\u5411\u5BFC",-1)),Yi=Lt(()=>t("h3",{class:"desc"},"\u8BF7\u9009\u62E9\u9700\u8981\u6DFB\u52A0\u7684NAS\u670D\u52A1",-1)),t0=Lt(()=>t("option",{value:"linkease"},"\u8DE8\u8BBE\u5907\u5171\u4EAB\uFF08\u6613\u6709\u4E91\uFF09",-1)),e0=Lt(()=>t("option",{value:"samba"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Samba\uFF09",-1)),s0=Lt(()=>t("option",{value:"webdav"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Webdav\uFF09",-1)),u0=[t0,e0,s0],n0={class:"btns"},o0=["disabled"],a0=O({props:{setup:Number,Close:{type:Function,required:!0}},setup(e){const s=e,u=g(!0),n=g("linkease"),i=g(!1),c=g(s.setup||0),h=()=>{s.Close&&s.Close()},l=()=>P(this,null,function*(){switch(n.value){case"webdav":yield m();break;case"samba":yield k();break;case"linkease":yield p();break}}),m=()=>P(this,null,function*(){i.value=!0;const $=r.Loading("\u914D\u7F6E\u4E2D...");try{const d=yield A.App.Check.POST({name:"gowebdav"});if($.Close(),d!=null&&d.data){const{result:b,error:f}=d.data;if(f&&r.Warning(f),b){if(b.status=="installed"){v();return}if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 GoWebdav \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){const F=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D..."),E=yield w("app-meta-gowebdav");F.Close(),E?v():r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(d){r.Error(d)}$.Close(),i.value=!1}),p=()=>P(this,null,function*(){i.value=!0;const $=r.Loading("\u914D\u7F6E\u4E2D...");try{const d=yield A.App.Check.POST({name:"linkease"});if($.Close(),d!=null&&d.data){const{result:b,error:f}=d.data;if(f&&r.Warning(f),b){if(b.status=="installed"){C();return}if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 \u6613\u6709\u4E91 \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){const F=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D..."),E=yield w("app-meta-linkease");F.Close(),E?C():r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(d){r.Error(d)}$.Close(),i.value=!1}),k=()=>P(this,null,function*(){i.value=!0;const $=r.Loading("\u914D\u7F6E\u4E2D...");v(),$.Close(),i.value=!1}),w=$=>P(this,null,function*(){return A.App.Install.POST({name:$}).then(()=>{}),new Promise((d,b)=>P(this,null,function*(){let f=0;const F=setInterval(()=>P(this,null,function*(){if(f>10){clearInterval(F),b(!1);return}const E=yield A.App.Check.POST({name:$});if(E!=null&&E.data){const{result:I}=E.data;if((I==null?void 0:I.status)=="installed"){clearInterval(F),d(!0);return}}f++}),3e3)}))}),v=()=>{i.value=!1,u.value=!1,U6({Cancel:()=>{u.value=!0},Next:$=>{switch(n.value){case"webdav":_($);break;case"samba":y($);break}}})},C=()=>{ti({}),h()},_=$=>{$i({rootPath:$}),h()},y=$=>{Ki({rootPath:$}),h()};return($,d)=>u.value?(o(),W(it,{key:0,Close:e.Close,type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[c.value==0?(o(),a("div",Xi,[Qi,Yi,t("form",null,[t("label",null,[M(t("select",{"onUpdate:modelValue":d[0]||(d[0]=b=>n.value=b)},u0,512),[[pt,n.value]])])]),t("div",n0,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:l,type:"button",disabled:i.value},"\u4E0B\u4E00\u6B65",8,o0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:h,type:"button"},"\u53D6\u6D88")])])):D("",!0)]),_:1})]),_:1},8,["Close"])):D("",!0)}});var i0=S(a0,[["__scopeId","data-v-3336c5ea"]]),ge=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(i0,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}};const ne=e=>(V("data-v-1e2aa147"),e=e(),q(),e),l0={class:"app-container_linkease"},c0={class:"linkease-item"},d0=ne(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),r0={class:"linkease-item_value"},_0={key:0,class:"configure"},p0={key:0,class:"linkease-item"},v0=ne(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u670D\u52A1\u5730\u5740:")],-1)),h0={class:"linkease-item_value"},m0=["href"],b0=ne(()=>t("div",null,[t("a",{href:" https://app.linkease.com/",target:"_blank"},"\u4E0B\u8F7D\u6613\u6709\u4E91\u5BA2\u6237\u7AEF\uFF0C\u968F\u65F6\u968F\u5730\u76F8\u518C\u5907\u4EFD\u3001\u8FDC\u7A0B\u8BBF\u95EE")],-1)),f0=O({props:{linkease:{type:Object}},setup(e){const s=e,u=j(()=>{var i;return`http://${location.hostname}:${(i=s.linkease)==null?void 0:i.port}`}),n=()=>{ge({setup:0})};return(i,c)=>{var h,l,m;return o(),a("ul",l0,[t("li",c0,[d0,t("div",r0,[(h=e.linkease)!=null&&h.enabel?(o(),a("span",_0,"\u5DF2\u914D\u7F6E")):(o(),a("span",{key:1,class:"configure enabel",onClick:c[0]||(c[0]=p=>n())},"\u672A\u914D\u7F6E"))])]),(l=e.linkease)!=null&&l.enabel?(o(),a(R,{key:0},[(m=e.linkease)!=null&&m.port?(o(),a("li",p0,[v0,t("div",h0,[t("a",{href:T(u),target:"_blank",rel:"noopener noreferrer"},B(T(u)),9,m0)])])):D("",!0)],64)):D("",!0),b0])}}});var F0=S(f0,[["__scopeId","data-v-1e2aa147"]]);const De=e=>(V("data-v-05120991"),e=e(),q(),e),$0={class:"app-container"},k0={class:"app-container_title"},C0=De(()=>t("span",null,"\u5B58\u50A8\u670D\u52A1",-1)),E0={class:"more_icon",title:"\u67E5\u770B\u5B58\u50A8\u670D\u52A1\u4FE1\u606F"},y0={class:"DeviceBlock"},g0=De(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/services/samba4"},"SAMBA\u9AD8\u7EA7\u914D\u7F6E")],-1)),D0={class:"app-container_body"},w0={class:"app-container_nas-menu"},B0=O({setup(e){const s=g(!1),u=g("linkease"),n=g(),i=Fe();(()=>{A.Nas.Service.Status.GET().then(k=>{var w;if((w=k==null?void 0:k.data)!=null&&w.result){const v=k.data.result;n.value=v,v.webdav&&(i.webdav=v.webdav)}})})();const h=()=>{ge({setup:0})},l=()=>{s.value=!s.value},m=()=>{l(),(()=>P(this,null,function*(){let w=r.Loading("");try{const v=yield A.App.Check.POST({name:"app-meta-gowebdav"});if(w.Close(),v!=null&&v.data){const{result:C,error:_}=v.data;if(_&&r.Warning(_),C){if(C.status=="installed")location.href="/cgi-bin/luci/admin/nas/gowebdav";else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5GoWebDAV\u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){w=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const y=yield p("app-meta-gowebdav");w.Close(),y?(r.Success("\u5B89\u88C5\u6210\u529F"),location.href="/cgi-bin/luci/admin/nas/gowebdav"):r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(v){r.Error(v)}w.Close()}))()},p=k=>P(this,null,function*(){return A.App.Install.POST({name:k}).then(()=>{}),new Promise((w,v)=>P(this,null,function*(){let C=0;const _=setInterval(()=>P(this,null,function*(){if(C>20){clearInterval(_),v(!1);return}const y=yield A.App.Check.POST({name:k});if(y!=null&&y.data){const{result:$}=y.data;if(($==null?void 0:$.status)=="installed"){clearInterval(_),w(!0);return}}C++}),3e3)}))});return(k,w)=>{var v,C,_;return o(),a("div",$0,[t("div",k0,[t("span",null,[C0,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:h},"\u5FEB\u901F\u914D\u7F6E")]),t("span",E0,[x(Et,{onClick:l})]),M(t("div",y0,[t("div",{class:"menu_background",onClick:l}),t("ul",null,[g0,t("li",null,[t("a",{onClick:m},"WebDAV\u9AD8\u7EA7\u914D\u7F6E")])])],512),[[Ft,s.value]])]),t("div",D0,[t("ul",w0,[t("button",{onClick:w[0]||(w[0]=y=>u.value="linkease"),class:_t({on:u.value=="linkease"})},"\u6613\u6709\u4E91",2),t("button",{onClick:w[1]||(w[1]=y=>u.value="samba"),class:_t({on:u.value=="samba"})},"SAMBA",2),t("button",{onClick:w[2]||(w[2]=y=>u.value="webdav"),class:_t({on:u.value=="webdav"})},"WEBDAV",2)]),u.value=="samba"?(o(),W(o6,{key:0,sambas:(v=n.value)==null?void 0:v.sambas},null,8,["sambas"])):u.value=="webdav"?(o(),W($6,{key:1,webdav:(C=n.value)==null?void 0:C.webdav},null,8,["webdav"])):u.value=="linkease"?(o(),W(F0,{key:2,linkease:(_=n.value)==null?void 0:_.linkease},null,8,["linkease"])):D("",!0)])])}}});var A0=S(B0,[["__scopeId","data-v-05120991"]]);const oe=e=>(V("data-v-be22d5be"),e=e(),q(),e),x0={class:"app-container_docker"},S0={class:"docker-item"},I0=oe(()=>t("div",{class:"docker-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),P0={key:0,class:"docker-item_value"},T0=oe(()=>t("span",{class:"configure"},"\u672A\u5B89\u88C5",-1)),M0=[T0],L0={key:1,class:"docker-item_value"},z0={key:0,class:"configure"},N0={key:1,class:"configure enabel"},O0={key:0,class:"docker-item"},V0=oe(()=>t("div",{class:"docker-item_name"},[t("span",null,"Docker\u6839\u76EE\u5F55\uFF1A")],-1)),q0={class:"docker-item_value"},G0={class:"configure enabel"},U0={key:0},W0={class:"tooltip-trigger"},H0={class:"docker_tip"},j0={class:"tooltip-text tooltip-top"},R0={class:"docker_dir_tip"},Z0=O({props:{docker:{type:Object}},setup(e){return(s,u)=>{var n,i,c,h,l;return o(),a("ul",x0,[t("li",S0,[I0,((n=e.docker)==null?void 0:n.status)=="not installed"?(o(),a("div",P0,M0)):(o(),a("div",L0,[((i=e.docker)==null?void 0:i.status)=="running"?(o(),a("span",z0,"\u5DF2\u542F\u52A8")):(o(),a("span",N0,"\u672A\u542F\u52A8"))]))]),((c=e.docker)==null?void 0:c.status)=="running"?(o(),a("li",O0,[V0,t("div",q0,[t("span",G0,B((h=e.docker)==null?void 0:h.path),1),(l=e.docker)!=null&&l.errorInfo?(o(),a("span",U0,[t("span",W0,[t("span",H0,[x(yt)]),t("div",null,[t("div",j0,[t("span",R0,B(e.docker.errorInfo),1)])])])])):D("",!0)])])):D("",!0)])}}});var J0=S(Z0,[["__scopeId","data-v-be22d5be"]]);const K0={},X0={width:"82px",height:"82px",viewBox:"0 0 82 82",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Q0=Kt('<title>icon_finished</title><g id="icon_finished" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="circle" transform="translate(2.000000, 2.000000)"><circle id="Oval" stroke="#553AFE" stroke-width="4" cx="39" cy="39" r="39"></circle><circle id="Oval" fill="#553AFE" cx="39.028463" cy="39.028463" r="35.028463"></circle><path d="M41.0148619,52.8014169 C39.924327,53.7754409 39.8138203,55.4674462 40.7680384,56.5806164 C41.7222564,57.6937867 43.3798562,57.8065871 44.4703911,56.8325631 L54.9654709,47.4587599 C56.1301083,46.4185505 56.1643255,44.5807064 55.0392485,43.4960788 L31.4253189,20.7311283 C30.3718273,19.7155123 28.7112257,19.7639428 27.7162614,20.8393009 C26.7212971,21.914659 26.7687429,23.6097284 27.8222345,24.6253444 L49.3379698,45.3675358 L41.0148619,52.8014169 Z" id="Shape" fill="#FFFFFF" fill-rule="nonzero" transform="translate(41.430740, 38.747628) rotate(-270.000000) translate(-41.430740, -38.747628) "></path></g></g>',2),Y0=[Q0];function tl(e,s){return o(),a("svg",X0,Y0)}var we=S(K0,[["render",tl]]);const el={},sl={width:"128px",height:"128px",viewBox:"0 0 128 128",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},ul=t("g",{id:"icon_yellow",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"128",height:"128"}),t("path",{d:"M64,8 C33.075,8 8,33.075 8,64 C8,94.925 33.075,120 64,120 C94.925,120 120,94.925 120,64 C120,33.075 94.925,8 64,8 Z M60,37 C60,36.45 60.45,36 61,36 L67,36 C67.55,36 68,36.45 68,37 L68,71 C68,71.55 67.55,72 67,72 L61,72 C60.45,72 60,71.55 60,71 L60,37 Z M64,92 C60.6875,92 58,89.3125 58,86 C58,82.6875 60.6875,80 64,80 C67.3125,80 70,82.6875 70,86 C70,89.3125 67.3125,92 64,92 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])],-1),nl=[ul];function ol(e,s){return o(),a("svg",sl,nl)}var al=S(el,[["render",ol]]);const Y=e=>(V("data-v-27a11f23"),e=e(),q(),e),il={key:0,class:"action"},ll=Y(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),cl=Y(()=>t("p",{class:"desc"},"\u5F53\u7CFB\u7EDF\u6839\u76EE\u5F55\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u5C06docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\uFF0C\u4EE5\u4FDD\u8BC1\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C:",-1)),dl={key:1,class:"action"},rl=Y(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),_l=Y(()=>t("p",{class:"desc"},"\u5F53\u7CFB\u7EDF\u6839\u76EE\u5F55\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u5C06docker\u6839\u76EE\u5F55\u8FC1\u79FB\u5230\u5916\u7F6E\u786C\u76D8\uFF0C\u4EE5\u4FDD\u8BC1\u7CFB\u7EDF\u7684\u6B63\u5E38\u8FD0\u884C:",-1)),pl={class:"roots"},vl=Y(()=>t("span",{class:"roots_tit"},"Docker\u6839\u76EE\u5F55\uFF1A",-1)),hl={class:"root"},ml={class:"move"},bl=Y(()=>t("span",{class:"roots_tit"},"\u8FC1\u79FB\u5230\uFF1A",-1)),fl={key:0},Fl=["onSubmit"],$l={class:"select-editable"},kl=Y(()=>t("option",{selected:"selected",value:null},"\u8BF7\u9009\u62E9\u8FC1\u79FB\u5730\u5740",-1)),Cl=["value"],El=Y(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),yl={key:1,class:"tips"},gl={class:"tips_content"},Dl=Y(()=>t("span",{class:"tip"},"\u68C0\u6D4B\u5230\u60A8\u8FD8\u6CA1\u6709\u6302\u8F7D\u5916\u7F6E\u786C\u76D8\uFF0C\u9700\u8981\u60A8\u63A5\u4E0A\u786C\u76D8\u5E76\u683C\u5F0F\u5316\u6216\u624B\u52A8\u6302\u8F7D\u786C\u76D8\u540E\uFF0C\u518D\u6267\u884CDocker\u8FC1\u79FB\u5411\u5BFC\uFF0C\u5C06Docker\u8FC1\u79FB\u5230\u76EE\u6807\u786C\u76D8\u3002",-1)),wl={key:0,class:"btns"},Bl={key:1,class:"btns"},Al={key:2,class:"action"},xl=Y(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Sl={class:"finished"},Il=Y(()=>t("p",{class:"successed"},"\u8FC1\u79FB\u6210\u529F\uFF01",-1)),Pl={key:3,class:"action"},Tl=Y(()=>t("h2",{class:"title"},"Docker\u8FC1\u79FB\u5411\u5BFC",-1)),Ml={class:"finished"},Ll=Y(()=>t("p",{class:"successed"},"\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0D\u4E3A\u7A7A",-1)),zl={class:"docker_moves"},Nl={class:"moves change"},Ol=Y(()=>t("label",{for:"move"},"\u66F4\u6362\u76EE\u5F55\uFF08\u4E0D\u8986\u76D6\u76EE\u6807\u8DEF\u5F84\uFF0C\u4EC5\u5C06docker\u76EE\u5F55\u4FEE\u6539\u4E3A\u76EE\u6807\u8DEF\u5F84\uFF09",-1)),Vl={class:"moves"},ql=Y(()=>t("label",{for:"cover"},"\u8986\u76D6\u8FC1\u79FB\uFF08\u8986\u76D6\u76EE\u6807\u8DEF\u5F84\uFF0C\u7EE7\u7EED\u8FC1\u79FB\u4F1A\u6E05\u7A7A\u8BE5\u76EE\u6807\u8DEF\u5F84\u4E0B\u7684\u6587\u4EF6\uFF09",-1)),Gl={class:"btns"},Ul=O({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const s=e,u=g(),n=g(),i=g(0),c=g("null"),h=g(""),l=g(),m=g(!1),p=g("");(()=>{A.Nas.Disk.Status.GET().then(d=>{d!=null&&d.data.result&&(l.value=d==null?void 0:d.data.result)}),A.Guide.DockerStatus.GET().then(d=>{var b;if((b=d==null?void 0:d.data)!=null&&b.result){const f=d.data.result;u.value=f}}),A.Guide.DockerPartitionList.GET().then(d=>{var b;if((b=d==null?void 0:d.data)!=null&&b.result){const f=d.data.result;n.value=f}})})();const w=d=>{let b=c.value;if(b=="useInput"&&(b=h.value),b==null||b=="null"||b=="")return;const f=r.Loading("\u6B63\u5728\u8FC1\u79FB\u4E2D...");A.Guide.DockerTransfer.POST({path:b,force:d,overwriteDir:!!p.value}).then(F=>{var E;if(F!=null&&F.data){if((F.data.success||0)==0){if((E=F.data.result)!=null&&E.emptyPathWarning){m.value=!0,i.value=2;return}i.value=1;return}else if(F.data.error)throw F.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(F=>{r.Error(F)}).finally(()=>f.Close())},v=()=>{m.value=!1,w(!1)},C=d=>{d.preventDefault(),s.Close&&s.Close()},_=d=>{d.preventDefault(),location.reload()},y=d=>{d.preventDefault(),i.value=0},$=d=>{d.preventDefault(),w(!0)};return(d,b)=>(o(),W(it,{Close:e.Close,type:1},{default:z(()=>{var f,F,E,I,K,Z;return[t("div",null,[i.value==-1?(o(),a("div",il,[ll,cl,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:C},"\u53D6\u6D88")])])):i.value==0?(o(),a("div",dl,[rl,_l,t("div",pl,[vl,t("span",hl,B((f=u.value)==null?void 0:f.path),1)]),t("div",ml,[bl,(E=(F=n.value)==null?void 0:F.partitionList)!=null&&E.length?(o(),a("div",fl,[t("form",{onSubmit:st(v,["prevent"])},[t("label",null,[t("div",$l,[M(t("select",{"onUpdate:modelValue":b[0]||(b[0]=G=>c.value=G)},[kl,(o(!0),a(R,null,ot((I=n.value)==null?void 0:I.partitionList,(G,L)=>(o(),a("option",{value:G,key:L},B(G),9,Cl))),128)),El],512),[[pt,c.value,void 0,{trim:!0}]]),c.value=="useInput"?M((o(),a("input",{key:0,type:"text","onUpdate:modelValue":b[1]||(b[1]=G=>h.value=G),required:"",placeholder:"\u8BF7\u8F93\u5165\u8FC1\u79FB\u5730\u5740"},null,512)),[[U,h.value,void 0,{trim:!0}]]):D("",!0)])])],40,Fl)])):n.value?(o(),a("div",yl,[t("div",gl,[x(yt),Dl])])):D("",!0)]),(Z=(K=n.value)==null?void 0:K.partitionList)!=null&&Z.length?(o(),a("div",wl,[t("button",{class:"cbi-button cbi-button-apply",onClick:v},"\u786E\u5B9A"),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:C},"\u53D6\u6D88")])):(o(),a("div",Bl,[t("button",{class:"cbi-button cbi-button-apply",onClick:C},"\u786E\u5B9A")]))])):i.value==1?(o(),a("div",Al,[xl,t("div",Sl,[x(we)]),Il,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:_},"\u786E\u5B9A")])])):i.value==2?(o(),a("div",Pl,[Tl,t("div",Ml,[x(al)]),Ll,t("div",zl,[t("div",Nl,[M(t("input",{type:"radio",id:"move",name:"moves","onUpdate:modelValue":b[2]||(b[2]=G=>p.value=G),value:""},null,512),[[Ct,p.value]]),Ol]),t("div",Vl,[M(t("input",{type:"radio",id:"cover",name:"moves","onUpdate:modelValue":b[3]||(b[3]=G=>p.value=G),value:"true"},null,512),[[Ct,p.value]]),ql])]),t("div",Gl,[m.value?(o(),a("button",{key:0,class:"cbi-button cbi-button-apply",onClick:$},"\u786E\u5B9A")):D("",!0),t("button",{class:"cbi-button cbi-button-apply",onClick:y},"\u8FD4\u56DE"),m.value?D("",!0):(o(),a("button",{key:1,class:"cbi-button cbi-button-remove app-btn app-back",type:"button",onClick:_},"\u53D6\u6D88"))])])):D("",!0)])]}),_:1},8,["Close"]))}});var Wl=S(Ul,[["__scopeId","data-v-27a11f23"]]);const Hl=()=>{const e=document.createElement("div");document.body.appendChild(e);const s=Q(Wl,{Close:()=>{u()}});s.mount(e);const u=()=>{s.unmount(),e.remove()};return{Close:u}},Be=e=>(V("data-v-0ea99f40"),e=e(),q(),e),jl={class:"app-container"},Rl={class:"app-container_title"},Zl=Be(()=>t("span",null,"Docker",-1)),Jl={key:0,class:"more_icon",title:"\u67E5\u770BDocker\u4FE1\u606F"},Kl={class:"DeviceBlock"},Xl=Be(()=>t("ul",null,[t("li",null,[t("a",{href:"/cgi-bin/luci/admin/docker/overview"},"Docker\u9AD8\u7EA7\u914D\u7F6E")])],-1)),Ql=O({setup(e){const s=g(),u=g(!1),n=()=>{u.value=!u.value},i=()=>{Hl()};return(()=>{A.Guide.DockerStatus.GET().then(h=>{var l;if((l=h==null?void 0:h.data)!=null&&l.result){const m=h.data.result;s.value=m}})})(),(h,l)=>{var m,p;return o(),a("div",jl,[t("div",Rl,[t("span",null,[Zl,((m=s.value)==null?void 0:m.status)!="not installed"?(o(),a("button",{key:0,class:"cbi-button cbi-button-apply",onClick:i},"\u5FEB\u901F\u914D\u7F6E")):D("",!0)]),((p=s.value)==null?void 0:p.status)==="running"?(o(),a("span",Jl,[x(Et,{onClick:n})])):D("",!0),M(t("div",Kl,[t("div",{class:"menu_background",onClick:n}),Xl],512),[[Ft,u.value]])]),t("div",null,[x(J0,{docker:s.value},null,8,["docker"])])])}}});var Yl=S(Ql,[["__scopeId","data-v-0ea99f40"]]);const Rt=e=>(V("data-v-7a8f8220"),e=e(),q(),e),t5={class:"app-container_aria2"},e5={class:"aria2-item"},s5=Rt(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),u5={class:"aria2-item_value"},n5={key:0,class:"configure"},o5={key:1,class:"configure enabel"},a5={class:"aria2-item"},i5=Rt(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u4E0B\u8F7D\u5730\u5740:")],-1)),l5={class:"aria2-item_value"},c5={class:"aria2-item"},d5=Rt(()=>t("div",{class:"aria2-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),r5={class:"aria2-item_value"},_5=["href"],p5=Rt(()=>t("div",null,[t("a",{href:"https://doc.linkease.com/zh/guide/linkease_app/tutorial.html#%E8%BF%9C%E7%A8%8B%E4%B8%8B%E8%BD%BD",target:"_blank"},"\u4F7F\u7528\u6613\u6709\u4E91APP\uFF0C\u968F\u65F6\u968F\u5730\u8FDC\u7A0B\u4E0B\u8F7D")],-1)),v5=O({props:{aria2:{type:Object}},setup(e){const s=e,u=j(()=>{var n;return`http://${location.host}${(n=s.aria2)==null?void 0:n.webPath}`});return(n,i)=>{var c,h,l;return o(),a("ul",t5,[t("li",e5,[s5,t("div",u5,[((c=e.aria2)==null?void 0:c.status)=="running"?(o(),a("span",n5,"\u5DF2\u542F\u52A8")):(o(),a("span",o5,"\u672A\u542F\u52A8"))])]),((h=e.aria2)==null?void 0:h.status)=="running"?(o(),a(R,{key:0},[t("li",a5,[i5,t("div",l5,[t("span",null,B((l=e.aria2)==null?void 0:l.downloadPath),1)])]),t("li",c5,[d5,t("div",r5,[t("a",{href:T(u),target:"_blank",rel:"noopener noreferrer"},B(T(u)),9,_5)])])],64)):D("",!0),p5])}}});var h5=S(v5,[["__scopeId","data-v-7a8f8220"]]);const ae=e=>(V("data-v-4d4723c0"),e=e(),q(),e),m5={class:"app-container_qbittorrent"},b5={class:"qbittorrent-item"},f5=ae(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),F5={class:"qbittorrent-item_value"},$5={key:0,class:"configure"},k5={key:1,class:"configure enabel"},C5={class:"qbittorrent-item"},E5=ae(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u4E0B\u8F7D\u5730\u5740:")],-1)),y5={class:"qbittorrent-item_value"},g5={class:"qbittorrent-item"},D5=ae(()=>t("div",{class:"qbittorrent-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),w5={class:"qbittorrent-item_value"},B5=["href"],A5=O({props:{qbittorrent:{type:Object}},setup(e){const s=e,u=j(()=>{var n;return`http://${location.host}${(n=s.qbittorrent)==null?void 0:n.webPath}`});return(n,i)=>{var c,h,l;return o(),a("ul",m5,[t("li",b5,[f5,t("div",F5,[((c=e.qbittorrent)==null?void 0:c.status)=="running"?(o(),a("span",$5,"\u5DF2\u542F\u52A8")):(o(),a("span",k5,"\u672A\u542F\u52A8"))])]),((h=e.qbittorrent)==null?void 0:h.status)=="running"?(o(),a(R,{key:0},[t("li",C5,[E5,t("div",y5,[t("span",null,B((l=e.qbittorrent)==null?void 0:l.downloadPath),1)])]),t("li",g5,[D5,t("div",w5,[t("a",{href:T(u),target:"_blank",rel:"noopener noreferrer"},B(T(u)),9,B5)])])],64)):D("",!0)])}}});var x5=S(A5,[["__scopeId","data-v-4d4723c0"]]);const ie=e=>(V("data-v-ea121c94"),e=e(),q(),e),S5={class:"app-container_transmission"},I5={class:"transmission-item"},P5=ie(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),T5={class:"transmission-item_value"},M5={key:0,class:"configure"},L5={key:1,class:"configure enabel"},z5={class:"transmission-item"},N5=ie(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u4E0B\u8F7D\u5730\u5740:")],-1)),O5={class:"transmission-item_value"},V5={class:"transmission-item"},q5=ie(()=>t("div",{class:"transmission-item_name"},[t("span",null,"\u7F51\u7EDC\u5730\u5740:")],-1)),G5={class:"transmission-item_value"},U5=["href"],W5=O({props:{transmission:{type:Object}},setup(e){const s=e,u=j(()=>{var n;return`http://${location.host}${(n=s.transmission)==null?void 0:n.webPath}`});return(n,i)=>{var c,h,l;return o(),a("ul",S5,[t("li",I5,[P5,t("div",T5,[((c=e.transmission)==null?void 0:c.status)=="running"?(o(),a("span",M5,"\u5DF2\u542F\u52A8")):(o(),a("span",L5,"\u672A\u542F\u52A8"))])]),((h=e.transmission)==null?void 0:h.status)=="running"?(o(),a(R,{key:0},[t("li",z5,[N5,t("div",O5,[t("span",null,B((l=e.transmission)==null?void 0:l.downloadPath),1)])]),t("li",V5,[q5,t("div",G5,[t("a",{href:T(u),target:"_blank",rel:"noopener noreferrer"},B(T(u)),9,U5)])])],64)):D("",!0)])}}});var H5=S(W5,[["__scopeId","data-v-ea121c94"]]);const j5={},R5={width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Z5=t("path",{d:"M7,0.875 C3.61757813,0.875 0.875,3.61757813 0.875,7 C0.875,10.3824219 3.61757813,13.125 7,13.125 C10.3824219,13.125 13.125,10.3824219 13.125,7 C13.125,3.61757813 10.3824219,0.875 7,0.875 Z M6.5625,4.046875 C6.5625,3.98671875 6.61171875,3.9375 6.671875,3.9375 L7.328125,3.9375 C7.38828125,3.9375 7.4375,3.98671875 7.4375,4.046875 L7.4375,7.765625 C7.4375,7.82578125 7.38828125,7.875 7.328125,7.875 L6.671875,7.875 C6.61171875,7.875 6.5625,7.82578125 6.5625,7.765625 L6.5625,4.046875 Z M7,10.0625 C6.63769531,10.0625 6.34375,9.76855469 6.34375,9.40625 C6.34375,9.04394531 6.63769531,8.75 7,8.75 C7.36230469,8.75 7.65625,9.04394531 7.65625,9.40625 C7.65625,9.76855469 7.36230469,10.0625 7,10.0625 Z",id:"\u5F62\u72B6","fill-opacity":"0.65"},null,-1),J5=[Z5];function K5(e,s){return o(),a("svg",R5,J5)}var Vt=S(j5,[["render",K5]]);const J=e=>(V("data-v-57f9e96a"),e=e(),q(),e),X5={key:0,class:"action"},Q5=J(()=>t("h2",{class:"title"},"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",-1)),Y5={class:"load_service"},t4=J(()=>t("span",null,"\u4E0B\u8F7D\u670D\u52A1\uFF1A",-1)),e4={class:"load_radios"},s4=J(()=>t("label",{for:"Aria2"},"Aria2",-1)),u4={class:"load_radios"},n4=J(()=>t("label",{for:"qB"},"qBittorrent",-1)),o4={class:"load_radios"},a4=J(()=>t("label",{for:"Ts"},"Transmission",-1)),i4={key:0},l4={class:"load"},c4={class:"left"},d4={class:"tooltip-trigger"},r4=J(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1Amnt/sda1/download")])],-1)),_4=J(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),p4=["onSubmit"],v4={class:"select-editable"},h4=J(()=>t("option",{selected:"true",value:null},"\u8BF7\u9009\u62E9\u4E0B\u8F7D\u76EE\u5F55",-1)),m4=["value"],b4=J(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),f4={class:"RPC"},F4={class:"left"},$4={class:"tooltip-trigger"},k4=J(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-bottom"},[t("span",{class:"dowload_rpc_tip"},"\u7528\u4E8E\u8FDC\u7A0B\u8BBF\u95EE\u7684\u4EE4\u724C\u3002")])],-1)),C4=J(()=>t("span",null,"RPC \u4EE4\u724C\uFF1A",-1)),E4={class:"Tracker"},y4=J(()=>t("span",null,"\u9644\u52A0\u7684 BT Tracker\uFF1A",-1)),g4=J(()=>t("label",{for:"default"},"\u9ED8\u8BA4",-1)),D4=J(()=>t("label",{for:"add"},"\u81EA\u5DF1\u6DFB\u52A0",-1)),w4={key:1},B4={class:"load"},A4={class:"left"},x4={class:"tooltip-trigger"},S4=J(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1Amnt/sda1/download")])],-1)),I4=J(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),P4=["onSubmit"],T4={class:"select-editable"},M4=J(()=>t("option",{selected:"true",value:null},"\u8BF7\u9009\u62E9\u4E0B\u8F7D\u76EE\u5F55",-1)),L4=["value"],z4=J(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),N4={key:2},O4={class:"load"},V4={class:"left"},q4={class:"tooltip-trigger"},G4=J(()=>t("div",null,[t("div",{class:"tooltip-text tooltip-top"},[t("span",{class:"dowload_dir_tip"},"\u7528\u4E8E\u653E\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u7684\u76EE\u5F55\u3002\u4F8B\u5982\uFF1Amnt/sda1/download")])],-1)),U4=J(()=>t("span",null,"\u4E0B\u8F7D\u76EE\u5F55\uFF1A",-1)),W4=["onSubmit"],H4={class:"select-editable"},j4=J(()=>t("option",{selected:"true",value:null},"\u8BF7\u9009\u62E9\u4E0B\u8F7D\u76EE\u5F55",-1)),R4=["value"],Z4=J(()=>t("option",{value:"useInput"},"- -\u81EA\u5B9A\u4E49- -",-1)),J4={class:"btns"},K4={key:1,class:"action"},X4={class:"title"},Q4={class:"finished"},Y4=J(()=>t("p",{class:"successed"},"\u914D\u7F6E\u6210\u529F\uFF01",-1)),t3=O({props:{services:{type:Object,required:!0},partitionList:{type:Array,required:!0},defaultTab:{type:String,required:!1},Close:Function},setup(e){const s=e,u=g(""),n=g(""),i=g("null"),c=g(""),h=g("default"),l=g("Aria2"),m=g("null"),p=g(""),k=g("null"),w=g(""),v=g(0);qt(()=>{var K,Z,G,L,H,mt,le;switch(s.defaultTab){case"aria2":l.value="Aria2";break;case"qbittorrent":l.value="qBittorrent";break;case"transmission":l.value="transmission";break}const f=((K=s.services.aria2)==null?void 0:K.downloadPath)||((Z=s.services.qbittorrent)==null?void 0:Z.downloadPath)||((G=s.services.transmission)==null?void 0:G.downloadPath);f&&(s.partitionList.find(At=>At==f)?i.value=f:(c.value=f,i.value="useInput"));const F=(L=s.services.aria2)==null?void 0:L.rpcToken;F&&(u.value=F);const E=((H=s.services.qbittorrent)==null?void 0:H.downloadPath)||f||((mt=s.services.transmission)==null?void 0:mt.downloadPath);E&&(s.partitionList.find(At=>At==E)?m.value=E:(p.value=E,m.value="useInput"));const I=((le=s.services.transmission)==null?void 0:le.downloadPath)||f||E;I&&(s.partitionList.find(At=>At==I)?k.value=I:(w.value=I,k.value="useInput"))});const C=()=>{let f=i.value;if(f=="useInput"&&(f=c.value),f==null||f=="null"||f=="")return;(()=>P(this,null,function*(){let E=r.Loading("\u68C0\u67E5\u4E2D...");try{const I=yield A.App.Check.POST({name:"app-meta-aria2"});if(E.Close(),I!=null&&I.data){const{result:K,error:Z}=I.data;if(Z&&r.Warning(Z),K){const G=()=>{E=r.Loading("\u914D\u7F6E\u4E2D..."),A.Guide.Aria2Init.POST({downloadPath:f,rpcToken:u.value,btTracker:h.value=="add"?n.value:""}).then(L=>{var H;if(L!=null&&L.data){if((L.data.success||0)==0){v.value=1;return}else if((H=L.data)!=null&&H.error)throw L.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(L=>r.Error(L)).finally(()=>E.Close())};if(K.status=="installed")G();else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 Aria2 \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){E=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const L=yield $("app-meta-aria2");E.Close(),L?G():r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(I){E.Close(),r.Error(I)}}))()},_=()=>{let f=m.value;if(f=="useInput"&&(f=p.value),f==null||f=="null"||f=="")return;(()=>P(this,null,function*(){let E=r.Loading("\u68C0\u67E5\u4E2D...");try{const I=yield A.App.Check.POST({name:"app-meta-qbittorrent"});if(E.Close(),I!=null&&I.data){const{result:K,error:Z}=I.data;if(Z&&r.Warning(Z),K){if(K.status=="installed"){const G=A.Guide.qbitorrentInit.POST({downloadPath:f}).then(L=>{var H;if(L!=null&&L.data){if((L.data.success||0)==0){v.value=1;return}else if((H=L.data)!=null&&H.error)throw L.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(L=>r.Error(L)).finally(()=>E.Close())}else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 qBittorrent \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){E=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const G=yield $("app-meta-qbittorrent");if(E.Close(),G){r.Success("\u5B89\u88C5\u6210\u529F");const L=A.Guide.qbitorrentInit.POST({downloadPath:f}).then(H=>{var mt;if(H!=null&&H.data){if((H.data.success||0)==0){v.value=1;return}else if((mt=H.data)!=null&&mt.error)throw H.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(H=>r.Error(H)).finally(()=>E.Close())}else r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(I){r.Error(I)}}))()},y=()=>{let f=k.value;if(f=="useInput"&&(f=w.value),f==null||f=="null"||f=="")return;(()=>P(this,null,function*(){let E=r.Loading("\u914D\u7F6E\u4E2D...");try{const I=yield A.App.Check.POST({name:"app-meta-transmission"});if(E.Close(),I!=null&&I.data){const{result:K,error:Z}=I.data;if(Z&&r.Warning(Z),K){if(K.status=="installed"){const G=A.Guide.transmissionInit.POST({downloadPath:f}).then(L=>{var H;if(L!=null&&L.data){if((L.data.success||0)==0){v.value=1;return}else if((H=L.data)!=null&&H.error)throw L.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(L=>r.Error(L)).finally(()=>E.Close())}else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 Transmission \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){E=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const G=yield $("app-meta-transmission");if(E.Close(),G){r.Success("\u5B89\u88C5\u6210\u529F");const L=A.Guide.transmissionInit.POST({downloadPath:f}).then(H=>{var mt;if(H!=null&&H.data){if((H.data.success||0)==0){v.value=1;return}else if((mt=H.data)!=null&&mt.error)throw H.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).catch(H=>r.Error(H)).finally(()=>E.Close())}else r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(I){r.Error(I)}E.Close()}))()},$=f=>P(this,null,function*(){return A.App.Install.POST({name:f}).then(()=>{}),new Promise((F,E)=>P(this,null,function*(){let I=0;const K=setInterval(()=>P(this,null,function*(){if(I>20){clearInterval(K),E(!1);return}const Z=yield A.App.Check.POST({name:f});if(Z!=null&&Z.data){const{result:G}=Z.data;if((G==null?void 0:G.status)=="installed"){clearInterval(K),F(!0);return}}I++}),3e3)}))}),d=f=>{f.preventDefault(),s.Close&&s.Close()},b=f=>{f.preventDefault(),location.reload()};return(f,F)=>(o(),W(it,{Close:e.Close,type:1},{default:z(()=>[x(at,{name:"rotate",mode:"out-in"},{default:z(()=>[v.value==0?(o(),a("div",X5,[Q5,t("ul",null,[t("li",null,[t("div",Y5,[t4,t("div",e4,[M(t("input",{type:"radio",value:"Aria2","onUpdate:modelValue":F[0]||(F[0]=E=>l.value=E),name:"download",id:"Aria2"},null,512),[[Ct,l.value]]),s4]),t("div",u4,[M(t("input",{type:"radio",value:"qBittorrent","onUpdate:modelValue":F[1]||(F[1]=E=>l.value=E),name:"download",id:"qB"},null,512),[[Ct,l.value]]),n4]),t("div",o4,[M(t("input",{type:"radio",value:"transmission","onUpdate:modelValue":F[2]||(F[2]=E=>l.value=E),name:"download",id:"Ts"},null,512),[[Ct,l.value]]),a4])])])]),l.value=="Aria2"?(o(),a("ul",i4,[t("li",null,[t("div",l4,[t("div",c4,[t("span",d4,[x(Vt),r4]),_4]),t("form",{onSubmit:st(C,["prevent"])},[t("label",null,[t("div",v4,[M(t("select",{"onUpdate:modelValue":F[3]||(F[3]=E=>i.value=E),autocomplete:"off"},[h4,(o(!0),a(R,null,ot(e.partitionList,(E,I)=>(o(),a("option",{value:E,key:I},B(E),9,m4))),128)),b4],512),[[pt,i.value,void 0,{trim:!0}]]),i.value=="useInput"?M((o(),a("input",{key:0,type:"text","onUpdate:modelValue":F[4]||(F[4]=E=>c.value=E),required:"",placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8F7D\u76EE\u5F55"},null,512)),[[U,c.value,void 0,{trim:!0}]]):D("",!0)])])],40,p4)])]),t("li",null,[t("div",f4,[t("div",F4,[t("span",$4,[x(Vt),k4]),C4]),M(t("input",{type:"text",class:"RPC_input",placeholder:"\u8BF7\u8F93\u5165RPC\u4EE4\u724C","onUpdate:modelValue":F[5]||(F[5]=E=>u.value=E)},null,512),[[U,u.value,void 0,{trim:!0}]])])]),t("li",null,[t("div",E4,[y4,M(t("input",{type:"radio",value:"default",name:"BT",id:"default","onUpdate:modelValue":F[6]||(F[6]=E=>h.value=E)},null,512),[[Ct,h.value]]),g4,M(t("input",{type:"radio",value:"add",name:"BT",id:"add","onUpdate:modelValue":F[7]||(F[7]=E=>h.value=E)},null,512),[[Ct,h.value]]),D4])]),t("li",null,[h.value=="add"?M((o(),a("textarea",{key:0,class:"Tracker_input","onUpdate:modelValue":F[8]||(F[8]=E=>n.value=E),rows:"4",placeholder:"\u8BF7\u8F93\u5165bt\u670D\u52A1\u5668\u5730\u5740"},null,512)),[[U,n.value,void 0,{trim:!0}]]):D("",!0)])])):D("",!0),l.value=="qBittorrent"?(o(),a("ul",w4,[t("li",null,[t("div",B4,[t("div",A4,[t("span",x4,[x(Vt),S4]),I4]),t("form",{onSubmit:st(_,["prevent"])},[t("label",null,[t("div",T4,[M(t("select",{"onUpdate:modelValue":F[9]||(F[9]=E=>m.value=E),autocomplete:"off"},[M4,(o(!0),a(R,null,ot(e.partitionList,(E,I)=>(o(),a("option",{value:E,key:I},B(E),9,L4))),128)),z4],512),[[pt,m.value,void 0,{trim:!0}]]),m.value=="useInput"?M((o(),a("input",{key:0,type:"text","onUpdate:modelValue":F[10]||(F[10]=E=>p.value=E),required:"",placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8F7D\u76EE\u5F55"},null,512)),[[U,p.value,void 0,{trim:!0}]]):D("",!0)])])],40,P4)])])])):D("",!0),l.value=="transmission"?(o(),a("ul",N4,[t("li",null,[t("div",O4,[t("div",V4,[t("span",q4,[x(Vt),G4]),U4]),t("form",{onSubmit:st(y,["prevent"])},[t("label",null,[t("div",H4,[M(t("select",{"onUpdate:modelValue":F[11]||(F[11]=E=>k.value=E),autocomplete:"off"},[j4,(o(!0),a(R,null,ot(e.partitionList,(E,I)=>(o(),a("option",{value:E,key:I},B(E),9,R4))),128)),Z4],512),[[pt,k.value,void 0,{trim:!0}]]),k.value=="useInput"?M((o(),a("input",{key:0,type:"text","onUpdate:modelValue":F[12]||(F[12]=E=>w.value=E),required:"",placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8F7D\u76EE\u5F55"},null,512)),[[U,w.value,void 0,{trim:!0}]]):D("",!0)])])],40,W4)])])])):D("",!0),t("div",J4,[l.value=="Aria2"?(o(),a("button",{key:0,class:"cbi-button cbi-button-apply",onClick:C},"\u542F\u7528")):D("",!0),l.value=="qBittorrent"?(o(),a("button",{key:1,class:"cbi-button cbi-button-apply",onClick:_},"\u542F\u7528")):D("",!0),l.value=="transmission"?(o(),a("button",{key:2,class:"cbi-button cbi-button-apply",onClick:y},"\u542F\u7528")):D("",!0),t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:d},"\u53D6\u6D88")])])):v.value==1?(o(),a("div",K4,[t("h2",X4,B(l.value)+"\u4E0B\u8F7D\u670D\u52A1\u914D\u7F6E\u5411\u5BFC",1),t("div",Q4,[x(we)]),Y4,t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-apply",onClick:b},"\u786E\u5B9A")])])):D("",!0)]),_:1})]),_:1},8,["Close"]))}});var e3=S(t3,[["__scopeId","data-v-57f9e96a"]]);const s3=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=Q(e3,lt(X({},e),{Close:()=>{n()}}));u.mount(s);const n=()=>{u.unmount(),s.remove()};return{Close:n}},u3=e=>(V("data-v-2c5ee5b5"),e=e(),q(),e),n3={class:"app-container"},o3={class:"app-container_title"},a3=u3(()=>t("span",null,"\u4E0B\u8F7D\u670D\u52A1",-1)),i3=["disabled"],l3={class:"more_icon",title:"\u67E5\u770B\u9AD8\u7EA7\u914D\u7F6E"},c3={class:"DeviceBlock"},d3={class:"app-container_body"},r3={class:"app-container_nas-menu"},_3=O({setup(e){g(!1);const s=g("aria2"),u=g();Fe(),(()=>{A.Guide.DownloadService.Status.GET().then(v=>{var C;if((C=v==null?void 0:v.data)!=null&&C.result){const _=v.data.result;u.value=_}})})();const i=g(!1),c=g(!1),h=()=>{c.value=!c.value},l=()=>{A.Guide.DownloadpPartition.List.GET().then(v=>{var _,y;let C=[];(y=(_=v==null?void 0:v.data)==null?void 0:_.result)!=null&&y.partitionList&&(C=v.data.result.partitionList),s3({services:u.value,partitionList:C,defaultTab:s.value})})},m=()=>{h(),(()=>P(this,null,function*(){let C=r.Loading("");try{const _=yield A.App.Check.POST({name:"app-meta-aria2"});if(C.Close(),_!=null&&_.data){const{result:y,error:$}=_.data;if($&&r.Warning($),y){if(y.status=="installed")location.href="/cgi-bin/luci/admin/services/aria2";else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 Aria2 \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const d=yield w("app-meta-aria2");C.Close(),d?(r.Success("\u5B89\u88C5\u6210\u529F"),location.href="/cgi-bin/luci/admin/services/aria2"):r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(_){r.Error(_)}C.Close()}))()},p=()=>{h(),(()=>P(this,null,function*(){let C=r.Loading("");try{const _=yield A.App.Check.POST({name:"app-meta-qbittorrent"});if(C.Close(),_!=null&&_.data){const{result:y,error:$}=_.data;if($&&r.Warning($),y){if(y.status=="installed")location.href="/cgi-bin/luci/admin/nas/qBittorrent";else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 qBittorrent \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const d=yield w("app-meta-qbittorrent");C.Close(),d?r.Success("\u5B89\u88C5\u6210\u529F"):r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(_){r.Error(_)}C.Close()}))()},k=()=>{h(),(()=>P(this,null,function*(){let C=r.Loading("");try{const _=yield A.App.Check.POST({name:"app-meta-transmission"});if(C.Close(),_!=null&&_.data){const{result:y,error:$}=_.data;if($&&r.Warning($),y){if(y.status=="installed")location.href="/cgi-bin/luci/admin/services/transmission";else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 Transmission \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const d=yield w("app-meta-transmission");C.Close(),d?r.Success("\u5B89\u88C5\u6210\u529F"):r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(_){r.Error(_)}C.Close()}))()},w=v=>P(this,null,function*(){return A.App.Install.POST({name:v}).then(()=>{}),new Promise((C,_)=>P(this,null,function*(){let y=0;const $=setInterval(()=>P(this,null,function*(){if(y>20){clearInterval($),_(!1);return}const d=yield A.App.Check.POST({name:v});if(d!=null&&d.data){const{result:b}=d.data;if((b==null?void 0:b.status)=="installed"){clearInterval($),C(!0);return}}y++}),3e3)}))});return(v,C)=>{var _,y,$;return o(),a("div",n3,[t("div",o3,[t("span",null,[a3,u.value?(o(),a("button",{key:0,class:"cbi-button cbi-button-apply",onClick:l,disabled:i.value},"\u5FEB\u901F\u914D\u7F6E",8,i3)):D("",!0)]),t("span",l3,[x(Et,{onClick:h})]),M(t("div",c3,[t("div",{class:"menu_background",onClick:h}),t("ul",null,[t("li",null,[t("a",{onClick:m},"Aria2\u9AD8\u7EA7\u914D\u7F6E")]),t("li",null,[t("a",{onClick:p},"qBittorrent\u9AD8\u7EA7\u914D\u7F6E")]),t("li",null,[t("a",{onClick:k},"Transmission\u9AD8\u7EA7\u914D\u7F6E")])])],512),[[Ft,c.value]])]),t("div",d3,[t("ul",r3,[t("button",{onClick:C[0]||(C[0]=d=>s.value="aria2"),class:_t({on:s.value=="aria2"})},"Aria2",2),t("button",{onClick:C[1]||(C[1]=d=>s.value="qbittorrent"),class:_t({on:s.value=="qbittorrent"})},"qBittorrent",2),t("button",{onClick:C[2]||(C[2]=d=>s.value="transmission"),class:_t({on:s.value=="transmission"})},"Transmission",2)]),s.value=="aria2"?(o(),W(h5,{key:0,aria2:(_=u.value)==null?void 0:_.aria2},null,8,["aria2"])):s.value=="qbittorrent"?(o(),W(x5,{key:1,qbittorrent:(y=u.value)==null?void 0:y.qbittorrent},null,8,["qbittorrent"])):s.value=="transmission"?(o(),W(H5,{key:2,transmission:($=u.value)==null?void 0:$.transmission},null,8,["transmission"])):D("",!0)])])}}});var p3=S(_3,[["__scopeId","data-v-2c5ee5b5"]]);const v3={class:"nas-container"},h3={class:"nas-container_f"},m3={class:"nas-container_r"},b3={class:"nas-container_f g"},f3={class:"nas-container_r g"},F3=O({setup(e){return(s,u)=>(o(),a("div",v3,[t("div",h3,[x(J2)]),t("div",m3,[x(A0)]),t("div",b3,[x(Yl)]),t("div",f3,[x(p3)])]))}});var $3=S(F3,[["__scopeId","data-v-36fe2bee"]]);const rt=e=>(V("data-v-69698367"),e=e(),q(),e),k3={class:"app-container"},C3={class:"app-container_title"},E3=rt(()=>t("span",null,"\u7CFB\u7EDF\u4FE1\u606F",-1)),y3={class:"more_icon",title:"\u67E5\u770B\u7CFB\u7EDF\u4FE1\u606F"},g3={class:"DeviceBlock"},D3=rt(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/system/flash"},"\u5907\u4EFD\u5347\u7EA7")],-1)),w3=rt(()=>t("li",null,[t("a",{href:"/cgi-bin/luci/admin/store/pages/maintance"},"\u63D2\u4EF6\u5907\u4EFD")],-1)),B3={class:"item-label"},A3=rt(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u6E29\u5EA6")],-1)),x3={class:"item-label_value"},S3={class:"item-label"},I3=rt(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u4F7F\u7528\u7387")],-1)),P3={class:"item-label_value"},T3={class:"item-label"},M3=rt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u5B58\u4F7F\u7528\u7387")],-1)),L3={class:"item-label_value"},z3={class:"item-label"},N3=rt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u56FA\u4EF6\u7248\u672C")],-1)),O3={class:"item-label_value"},V3={class:"item-label"},q3=rt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u6838\u7248\u672C")],-1)),G3={class:"item-label_value"},U3={class:"item-label"},W3=rt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5DF2\u542F\u52A8")],-1)),H3={class:"item-label_value"},j3={class:"item-label"},R3=rt(()=>t("div",{class:"item-label_key"},[t("span",null,"\u7CFB\u7EDF\u65F6\u95F4")],-1)),Z3={class:"item-label_value"},J3=O({setup(e){const s=Qt(),u=j(()=>s.version),n=j(()=>s.time),i=j(()=>s.cpuStatus),c=j(()=>s.cpuTemperature),h=j(()=>s.meneryStatus),l=g(!1),m=j(()=>{var y;return((y=i==null?void 0:i.value)==null?void 0:y.usage)||0}),p=j(()=>{var y;return((y=c.value)==null?void 0:y.temperature)||0}),k=j(()=>{var $;const y=(($=h.value)==null?void 0:$.availablePercentage)||100;return 100-y}),w=It.stampForm;qt(()=>{});const v=()=>{l.value=!l.value},C=()=>{v(),(()=>P(this,null,function*(){let $=r.Loading("");try{const d=yield A.App.Check.POST({name:"app-meta-netdata"});if($.Close(),d!=null&&d.data){const{result:b,error:f}=d.data;if(f&&r.Warning(f),b){if(b.status=="installed")location.href="/cgi-bin/luci/admin/status/netdata";else if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5NetData\u5B9E\u65F6\u76D1\u63A7\u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){$=r.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D...");const F=yield _("app-meta-netdata");$.Close(),F?(r.Success("\u5B89\u88C5\u6210\u529F"),location.href="/cgi-bin/luci/admin/status/netdata"):r.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(d){r.Error(d)}$.Close()}))()},_=y=>P(this,null,function*(){return A.App.Install.POST({name:y}).then(()=>{}),new Promise(($,d)=>P(this,null,function*(){let b=0;const f=setInterval(()=>P(this,null,function*(){if(b>20){clearInterval(f),d(!1);return}const F=yield A.App.Check.POST({name:y});if(F!=null&&F.data){const{result:E}=F.data;if((E==null?void 0:E.status)=="installed"){clearInterval(f),$(!0);return}}b++}),3e3)}))});return(y,$)=>{var b,f,F,E;const d=dt("progress-item");return o(),a("div",k3,[t("div",C3,[E3,t("span",y3,[x(Et,{onClick:v})]),M(t("div",g3,[t("div",{class:"menu_background",onClick:v}),t("ul",null,[t("li",null,[t("a",{onClick:C},"\u7CFB\u7EDF\u76D1\u63A7")]),D3,w3])],512),[[Ft,l.value]])]),t("div",B3,[A3,t("div",x3,[x(d,{value:T(p)/1.5,text:`${T(p)}\u2103`},null,8,["value","text"])])]),t("div",S3,[I3,t("div",P3,[x(d,{value:T(m),text:`${T(m)}%`},null,8,["value","text"])])]),t("div",T3,[M3,t("div",L3,[x(d,{value:T(k),text:`${T(k)}%`},null,8,["value","text"])])]),t("div",z3,[N3,t("div",O3,[t("span",null,B((b=T(u))==null?void 0:b.firmwareVersion),1)])]),t("div",V3,[q3,t("div",G3,[t("span",null,B((f=T(u))==null?void 0:f.kernelVersion),1)])]),t("div",U3,[W3,t("div",H3,[t("span",null,B(T(w)((F=T(n))==null?void 0:F.uptime)),1)])]),t("div",j3,[R3,t("div",Z3,[t("span",null,B((E=T(n))==null?void 0:E.localtime),1)])])])}}});var K3=S(J3,[["__scopeId","data-v-69698367"]]);const X3={},Q3={t:"1649907260906",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2793","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"40",height:"40"},Y3=t("path",{d:"M764.904497 251.418146 259.086289 251.418146c-143.076626 0-259.065314 115.989711-259.065314 259.065314 0 143.077649 115.988688 259.063267 259.065314 259.063267l505.818207 0c143.074579 0 259.063267-115.985618 259.063267-259.063267C1023.967764 367.407857 907.980099 251.418146 764.904497 251.418146zM764.904497 747.164974c-130.507356 0-236.682537-106.175181-236.682537-236.682537S634.397141 273.798876 764.904497 273.798876s236.683561 106.176205 236.683561 236.683561S895.411853 747.164974 764.904497 747.164974z","p-id":"2794",fill:"#52C41A"},null,-1),t8=[Y3];function e8(e,s){return o(),a("svg",Q3,t8)}var s8=S(X3,[["render",e8]]);const u8={},n8={t:"1649902779464",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2617","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"40",height:"40"},o8=t("path",{d:"M309.794 819.848h404.239c169.953 0 307.726-137.774 307.726-307.727s-137.774-307.726-307.726-307.726h-404.239c-169.952 0-307.726 137.773-307.726 307.726s137.774 307.727 307.726 307.727zM309.445 233.5c154.23 0 279.268 125.031 279.268 279.268s-125.039 279.268-279.268 279.268c-154.24 0-279.269-125.033-279.269-279.268 0-154.238 125.030-279.268 279.269-279.268z",fill:"#bbb","p-id":"2618","data-spm-anchor-id":"a313x.7781069.0.i0",class:"selected"},null,-1),a8=[o8];function i8(e,s){return o(),a("svg",n8,a8)}var l8=S(u8,[["render",i8]]);const c8=e=>Gt.isValid(e),ft=e=>{const s=Gt.IPv4.parse(e).toByteArray();return s[0]<<24|s[1]<<16|s[2]<<8|s[3]},ve=e=>Gt.fromByteArray([e>>24&255,e>>16&255,e>>8&255,e&255]).toString(),d8=e=>{if(!Gt.IPv4.isIPv4(e))return!1;let s=0,u=ft(e);for(let n=31;n>=0&&(u&1<<n)!=0;n--)s=s+(1<<n);return(~s&u)==0},r8=(e,s,u,n)=>{let i=ft(e)&ft(s),c=ft(u),h=ft(n),m=~ft(s);return c<h&&c>i+1&&h<i+m},_8=(e,s)=>{let u=ft(s),n=ft(e)&u,i=~u,c;return i>=105?(c=n|i-5,n=n|100):i>=3?(c=n|i-1,n=n|2):(n=n|1,c=n),[ve(n),ve(c)]};var bt={isValidMask:d8,isValidIP:c8,isValidMaskRange:r8,calcMaskRange:_8};const ut=e=>(V("data-v-763517b4"),e=e(),q(),e),p8=["onSubmit"],v8=ut(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u5185\u7F51\u914D\u7F6E")],-1)),h8={class:"actioner-dns_body"},m8={class:"label-item"},b8=ut(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5730\u5740")],-1)),f8={class:"label-item_value"},F8={class:"label-item"},$8=ut(()=>t("div",{class:"label-item_key"},[t("span",null,"IPv4\u5B50\u7F51\u63A9\u7801")],-1)),k8={class:"label-item_value"},C8={class:"mobie_icon"},E8={key:1,class:"dhcp_info"},y8={key:2,class:"dhcp_info"},g8={class:"label-item"},D8=ut(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u8D77\u59CB\u5730\u5740")],-1)),w8={class:"label-item_value"},B8={class:"label-item"},A8=ut(()=>t("div",{class:"label-item_key"},[t("span",null,"IP\u6C60\u7ED3\u675F\u5730\u5740")],-1)),x8={class:"label-item_value"},S8={class:"actioner-dns_footer"},I8=["disabled"],P8={key:1,class:"actioner-dns"},T8=ut(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"\u66F4\u6362\u914D\u7F6E")],-1)),M8={class:"actioner-dns_body"},L8={key:0,class:"setting_status"},z8=ut(()=>t("div",{class:"success_icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128"},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063"})])],-1)),N8=ut(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u6210\u529F",-1)),O8=["href"],V8={key:1,class:"setting_status"},q8=ut(()=>t("div",{class:"success_icon"},[t("svg",{t:"1642063200324",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5898",width:"128",height:"128"},[t("path",{d:"M549.044706 512l166.189176-166.249412a26.383059 26.383059 0 0 0 0-36.98447 26.383059 26.383059 0 0 0-37.044706 0L512 475.015529l-166.249412-166.249411a26.383059 26.383059 0 0 0-36.98447 0 26.383059 26.383059 0 0 0 0 37.044706L475.015529 512l-166.249411 166.249412a26.383059 26.383059 0 0 0 0 36.98447 26.383059 26.383059 0 0 0 37.044706 0L512 548.984471l166.249412 166.249411a26.383059 26.383059 0 0 0 36.98447 0 26.383059 26.383059 0 0 0 0-37.044706L548.984471 512zM512 1024a512 512 0 1 1 0-1024 512 512 0 0 1 0 1024z",fill:"#E84335","p-id":"5899"})])],-1)),G8=ut(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u5931\u8D25",-1)),U8=ut(()=>t("p",null,"\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E",-1)),W8={key:2,class:"setting_status"},H8=ut(()=>t("div",{class:"success_icon"},[t("svg",{width:"128px",height:"128px",viewBox:"0 0 128 128",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t("g",{id:"icon_yellow",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t("g",{id:"Icon/Warning"},[t("rect",{id:"\u77E9\u5F62",fill:"#000000","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"128",height:"128"}),t("path",{d:"M64,8 C33.075,8 8,33.075 8,64 C8,94.925 33.075,120 64,120 C94.925,120 120,94.925 120,64 C120,33.075 94.925,8 64,8 Z M60,37 C60,36.45 60.45,36 61,36 L67,36 C67.55,36 68,36.45 68,37 L68,71 C68,71.55 67.55,72 67,72 L61,72 C60.45,72 60,71.55 60,71 L60,37 Z M64,92 C60.6875,92 58,89.3125 58,86 C58,82.6875 60.6875,80 64,80 C67.3125,80 70,82.6875 70,86 C70,89.3125 67.3125,92 64,92 Z",id:"\u5F62\u72B6",fill:"#FAAD14"})])])])],-1)),j8=ut(()=>t("div",{class:"config-message"},"\u914D\u7F6E\u8D85\u65F6",-1)),R8=ut(()=>t("p",null,"\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u914D\u7F6E",-1)),Z8=O({props:{Close:{type:Function,required:!0}},setup(e){const s=e,u=g(0),n=g({lanIp:"",netMask:"255.255.255.0",enableDhcp:!1,dhcpStart:"",dhcpEnd:""});g("");const i=g(!1);g(!0),g(!1);const c=g(""),h=g(2),l=g("timeout"),m=()=>{n.value.enableDhcp=!1},p=()=>{n.value.enableDhcp=!0};let k=!0;(()=>{A.Guide.GetLan.GET().then($=>{$.data.result&&($.data.result.enableDhcp=$.data.result.enableDhcp||!1,n.value=$.data.result,$.data.result.lanIp!==location.hostname&&(k=!1))})})();const v=()=>{const $=n.value;if(!bt.isValidIP($.lanIp)){r.Error("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!bt.isValidMask($.netMask)){r.Error("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}const d=bt.calcMaskRange($.lanIp,$.netMask);$.dhcpStart=d[0],$.dhcpEnd=d[1],n.value=$},C=()=>{const $=n.value;if(!bt.isValidIP($.lanIp)){r.Error("IPv4\u5730\u5740\u683C\u5F0F\u9519\u8BEF");return}if(!bt.isValidMask($.netMask)){r.Error("IPv4\u5B50\u7F51\u63A9\u7801\u683C\u5F0F\u9519\u8BEF");return}if($.enableDhcp&&!bt.isValidIP($.dhcpStart)||!bt.isValidIP($.dhcpEnd)||!bt.isValidMaskRange($.lanIp,$.netMask,$.dhcpStart,$.dhcpEnd)){r.Error("DHCP\u7684IP\u6C60\u683C\u5F0F\u9519\u8BEF\u6216\u8D85\u51FA\u5B50\u7F51\u8303\u56F4");return}const d=r.Loading("\u6B63\u5728\u914D\u7F6E\u2026\u8BF7\u7A0D\u7B49",30);A.Guide.LanIp.POST($).then(b=>{var f;if(b!=null&&b.data){if((b.data.success||0)==0)return;if((f=b.data)!=null&&f.error)throw b.data.error}throw"\u672A\u77E5\u9519\u8BEF"}).then(()=>new Promise((b,f)=>{const F=new Date().getTime()+3e4,E=k?location.protocol+"//"+$.lanIp+(location.port?":"+location.port:""):location.origin,I=E+"/luci-static/resources/icons/loading.gif",K=()=>{new Date().getTime()>F?(l.value="timeout",u.value=1,b()):window.setTimeout(G,2e3)},Z=()=>{c.value=E+location.pathname,l.value="success",u.value=1,b(),window.setTimeout(()=>{h.value=1},1e3),window.setTimeout(()=>{location.href=c.value},2e3)},G=()=>{console.log("check online ",I);const L=new Image;L.onload=Z,L.onerror=K,L.src=I};window.setTimeout(G,5e3)})).catch(b=>{l.value="fail",u.value=1,r.Error(b)}).finally(()=>d.Close())},_=$=>{$.preventDefault(),s.Close&&s.Close()},y=$=>{location.reload()};return($,d)=>(o(),W(it,{Close:e.Close,type:1},{default:z(()=>[u.value==0?(o(),a("form",{key:0,class:"actioner-dns",onSubmit:st(C,["prevent"])},[v8,t("div",h8,[t("div",m8,[b8,t("div",f8,[M(t("input",{type:"text",placeholder:"192.168.100.1","onUpdate:modelValue":d[0]||(d[0]=b=>n.value.lanIp=b),onChange:v},null,544),[[U,n.value.lanIp,void 0,{trim:!0}]])])]),t("div",F8,[$8,t("div",k8,[M(t("input",{type:"text",placeholder:"255.255.255.0","onUpdate:modelValue":d[1]||(d[1]=b=>n.value.netMask=b),onChange:v},null,544),[[U,n.value.netMask,void 0,{trim:!0}]])])]),t("div",C8,[n.value.enableDhcp?(o(),a("span",{key:0,onClick:m},[x(s8)])):D("",!0),t("span",null,[n.value.enableDhcp?D("",!0):(o(),W(l8,{key:0,onClick:p}))]),n.value.enableDhcp?(o(),a("span",E8,"\u4FEE\u6539DHCP\u670D\u52A1")):(o(),a("span",y8,"\u4FDD\u6301DHCP\u670D\u52A1\u8BBE\u7F6E"))]),n.value.enableDhcp?(o(),a(R,{key:0},[t("div",g8,[D8,t("div",w8,[M(t("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":d[2]||(d[2]=b=>n.value.dhcpStart=b)},null,512),[[U,n.value.dhcpStart,void 0,{trim:!0}]])])]),t("div",B8,[A8,t("div",x8,[M(t("input",{type:"text",placeholder:"192.168.100.100","onUpdate:modelValue":d[3]||(d[3]=b=>n.value.dhcpEnd=b)},null,512),[[U,n.value.dhcpEnd,void 0,{trim:!0}]])])])],64)):D("",!0)]),t("div",S8,[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:_},"\u53D6\u6D88"),t("button",{class:"cbi-button cbi-button-apply app-btn",disabled:i.value},"\u786E\u8BA4",8,I8)])],40,p8)):u.value==1?(o(),a("div",P8,[T8,t("div",M8,[l.value=="success"?(o(),a("div",L8,[z8,N8,t("a",{href:c.value,class:"NewAdress"},B(h.value)+"s\u540E \u8DF3\u8F6C\u65B0\u5730\u5740",9,O8)])):l.value=="fail"?(o(),a("div",V8,[q8,G8,U8,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:y},"\u6211\u77E5\u9053\u4E86")])):l.value=="timeout"?(o(),a("div",W8,[H8,j8,R8,t("button",{class:"cbi-button cbi-button-apply app-btn",onClick:y},"\u6211\u77E5\u9053\u4E86")])):D("",!0)])])):D("",!0)]),_:1},8,["Close"]))}});var J8=S(Z8,[["__scopeId","data-v-763517b4"]]);const K8=()=>{const e=document.createElement("div");document.body.appendChild(e);const s=Q(J8,{Close:()=>{u()}});s.mount(e);const u=()=>{s.unmount(),e.remove()};return{Close:u}},X8=e=>(V("data-v-0523c006"),e=e(),q(),e),Q8={class:"nav-container"},Y8=["onClick"],tc={key:0,class:"cbi-button cbi-button-apply app-btn cover-buttob app-update-button",onclick:"window.location.href='/cgi-bin/luci/admin/system/ota'"},ec=vt(" \u56FA\u4EF6\u66F4\u65B0 "),sc=X8(()=>t("i",null,null,-1)),uc=[ec,sc],nc=O({setup(e){const s=Qt(),u=j(()=>s.checkUpdate.needUpdate),n=()=>{ke()},i=()=>{K8()},c=()=>{window.open(`http://${window.location.hostname}:7681/`,"_blank")};return(h,l)=>{const m=dt("router-link");return o(),a("div",Q8,[x(m,{to:"/network",custom:""},{default:z(({navigate:p})=>[t("button",{class:"cbi-button cbi-button-apply app-btn cover-buttob",onClick:p},"\u7F51\u7EDC\u5411\u5BFC",8,Y8)]),_:1}),t("button",{class:"cbi-button cbi-button-apply app-btn cover-buttob",onClick:i},"\u5185\u7F51\u914D\u7F6E"),t("button",{class:"cbi-button cbi-button-apply app-btn cover-buttob",onClick:n},"DNS\u914D\u7F6E"),t("button",{class:"cbi-button cbi-button-negative app-btn cover-buttob app-btn-ttyd",onClick:c},"\u7EC8\u7AEF"),T(u)?(o(),a("button",tc,uc)):D("",!0)])}}});var oc=S(nc,[["__scopeId","data-v-0523c006"]]);const zt=e=>(V("data-v-3899e190"),e=e(),q(),e),ac={id:"page"},ic=zt(()=>t("em",null,null,-1)),lc=zt(()=>t("em",null,null,-1)),cc=zt(()=>t("em",null,null,-1)),dc=zt(()=>t("em",null,null,-1)),rc=zt(()=>t("em",null,null,-1)),_c=O({setup(e){return Q1(),(s,u)=>(o(),a("div",ac,[ic,x(lo),lc,x(oc),cc,x($3),dc,x(K3),rc]))}});var pc=S(_c,[["__scopeId","data-v-3899e190"]]);const vc={};function hc(e,s){const u=dt("router-view");return o(),W(u)}var mc=S(vc,[["render",hc]]);const bc={},Bt=e=>(V("data-v-4a6c9ae9"),e=e(),q(),e),fc={id:"page"},Fc=Bt(()=>t("h2",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC",-1)),$c=Bt(()=>t("h3",{class:"desc"},"\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB",-1)),kc={class:"network-containers"},Cc={class:"network-container_item"},Ec=Bt(()=>t("div",{class:"cover"},[t("div",{class:"thumbnail"},[t("span",null,"\u5BBD\u5E26\u62E8\u53F7\u8FDE\u63A5")])],-1)),yc={class:"network-container_item"},gc=Bt(()=>t("div",{class:"cover"},[t("div",{class:"thumbnail"},[t("span",null,"\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668")])],-1)),Dc={class:"network-container_item"},wc=Bt(()=>t("div",{class:"cover"},[t("div",{class:"thumbnail"},[t("span",null,"\u914D\u7F6E\u4E3A\u65C1\u8DEF\u7531")])],-1)),Bc=Bt(()=>t("div",{class:"info"},[vt(" \u6CA1\u627E\u5230\u60F3\u8981\u7684\u914D\u7F6E\uFF1F\u8BF7\u4F7F\u7528 "),t("a",{href:"/cgi-bin/luci/admin/network/network"},"\u9AD8\u7EA7\u6A21\u5F0F")],-1));function Ac(e,s){const u=dt("router-link");return o(),a("div",fc,[Fc,$c,t("div",kc,[t("div",Cc,[x(u,{to:"/network/pppoe"},{default:z(()=>[Ec]),_:1})]),t("div",yc,[x(u,{to:"/network/dhcp"},{default:z(()=>[gc]),_:1})]),t("div",Dc,[x(u,{to:"/network/gateway"},{default:z(()=>[wc]),_:1})])]),Bc])}var xc=S(bc,[["render",Ac],["__scopeId","data-v-4a6c9ae9"]]);const Nt=e=>(V("data-v-5d5cc6be"),e=e(),q(),e),Sc={key:0,id:"page"},Ic=Nt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u5BBD\u5E26\u8D26\u53F7",-1)),Pc=Nt(()=>t("h3",{class:"desc"},"\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B",-1)),Tc=["onSubmit"],Mc=Nt(()=>t("div",{class:"label-key"},[t("span",null,"\u5BBD\u5E26\u8D26\u53F7")],-1)),Lc=["disabled"],zc=Nt(()=>t("div",{class:"label-key"},[t("span",null,"\u5BC6\u7801")],-1)),Nc=["disabled"],Oc={key:0,class:"msg"},Vc={class:"btns"},qc=["disabled"],Gc=["onClick"],Uc={key:1,id:"page"},Wc=Nt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),Hc={class:"btns"},jc=["onClick"],Rc=["onClick"],Zc=O({setup(e){const s=g(0),u=g({account:"",password:""}),n=g(""),i=g(!1);(()=>P(this,null,function*(){var l;i.value=!0;try{const m=yield A.Guide.Pppoe.GET();(l=m==null?void 0:m.data)!=null&&l.result&&(u.value=m.data.result)}catch(m){n.value=m}i.value=!1}))();const h=()=>P(this,null,function*(){const l=u.value.account||"",m=u.value.password||"";if(l==""){n.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(m==""){n.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}i.value=!0;const p=r.Loading("\u914D\u7F6E\u4E2D...");try{const k=yield A.Guide.Pppoe.POST({account:l,password:m});if(k!=null&&k.data){const{error:w,success:v}=k.data;w&&(n.value=w),(v==null||v==0)&&(r.Success("\u914D\u7F6E\u6210\u529F"),s.value=1)}}catch(k){n.value=k}i.value=!1,p.Close()});return(l,m)=>{const p=dt("router-link");return s.value==0?(o(),a("div",Sc,[Ic,Pc,t("form",{onSubmit:st(h,["prevent"])},[t("label",null,[Mc,M(t("input",{type:"text","onUpdate:modelValue":m[0]||(m[0]=k=>u.value.account=k),placeholder:"\u5BBD\u5E26\u8D26\u53F7",required:"",disabled:i.value},null,8,Lc),[[U,u.value.account,void 0,{trim:!0}]])]),t("label",null,[zc,M(t("input",{type:"password","onUpdate:modelValue":m[1]||(m[1]=k=>u.value.password=k),placeholder:"\u5BBD\u5E26\u5BC6\u7801",required:"",disabled:i.value},null,8,Nc),[[U,u.value.password,void 0,{trim:!0}]])]),n.value?(o(),a("div",Oc,B(n.value),1)):D("",!0),t("div",Vc,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:i.value},"\u4FDD\u5B58\u914D\u7F6E",8,qc),x(p,{to:"/network",custom:""},{default:z(({navigate:k})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:k},"\u8FD4\u56DE",8,Gc)]),_:1})])],40,Tc)])):s.value==1?(o(),a("div",Uc,[Wc,t("div",Hc,[x(p,{to:"/",custom:""},{default:z(({navigate:k})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:k},"\u8FDB\u5165\u63A7\u5236\u53F0",8,jc)]),_:1}),x(p,{to:"/network",custom:""},{default:z(({navigate:k})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:k},"\u8FD4\u56DE",8,Rc)]),_:1})])])):D("",!0)}}});var Jc=S(Zc,[["__scopeId","data-v-5d5cc6be"]]);const tt=e=>(V("data-v-1e424f74"),e=e(),q(),e),Kc={key:0,id:"page"},Xc=tt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u4E92\u8054\u7F51",-1)),Qc=tt(()=>t("h3",{class:"desc"},"\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u4E0A\u7EA7\u8DEF\u7531\u5C40\u57DF\u7F51\uFF08 LAN \uFF09\u63A5\u53E3",-1)),Yc=["onSubmit"],t7=tt(()=>t("div",{class:"label-key"},[t("span",null,"WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),e7=tt(()=>t("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6IP\u5730\u5740\uFF08DHCP\uFF09",-1)),s7=tt(()=>t("option",{value:"static"},"\u9759\u6001IP\u5730\u5740",-1)),u7=[e7,s7],n7=tt(()=>t("div",{class:"label-key"},[t("span",null,"IP\u5730\u5740")],-1)),o7=["disabled"],a7={key:0,class:"msg"},i7=tt(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),l7=["disabled"],c7={key:1,class:"msg"},d7=tt(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740")],-1)),r7=["disabled"],_7=tt(()=>t("div",{class:"label-key"},[t("span",null,"DNS \u914D\u7F6E\u65B9\u5F0F")],-1)),p7=tt(()=>t("option",{value:"auto"},"\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09",-1)),v7=tt(()=>t("option",{value:"manual"},"\u624B\u5DE5\u914D\u7F6E",-1)),h7=[p7,v7],m7=tt(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),b7=["onUpdate:modelValue","disabled"],f7=tt(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),F7=["disabled"],$7=tt(()=>t("div",{class:"label-key"},"\u5907\u7528DNS\u670D\u52A1\u5668",-1)),k7=["disabled"],C7={key:2,class:"msgs"},E7={class:"btns"},y7=["disabled"],g7=["onClick"],D7={key:1,id:"page"},w7=tt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),B7={class:"btns"},A7=["onClick"],x7=["onClick"],S7=O({setup(e){const s=g(0),u=g({}),n=g(""),i=g(""),c=g(""),h=g(""),l=g(!1),m=g(""),p=g(""),k=It.checkIsIP;(()=>P(this,null,function*(){var d,b;l.value=!0;try{const f=yield Promise.all([A.Guide.ClientModel.GET(),A.Network.Status.GET()]);if(f[0]){const F=f[0];(d=F==null?void 0:F.data)!=null&&d.result&&(u.value=F.data.result)}if(f[1]){const F=f[1];if((b=F==null?void 0:F.data)!=null&&b.result){const E=F.data.result;E.ipv4addr&&(n.value=E.ipv4addr)}}}catch(f){i.value=f}l.value=!1}))();const v=d=>{d.target.value=="static"&&((u.value.staticIp==null||u.value.staticIp=="")&&(u.value.staticIp=n.value),(u.value.subnetMask==null||u.value.subnetMask=="")&&(u.value.subnetMask="255.255.255.0"))},C=d=>{d.target.value=="manual"},_=d=>{const b=d.target;if(b.value==""){m.value="";return}k(b.value)?m.value="":m.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684IP\u5730\u5740"},y=d=>{const b=d.target;if(b.value==""){p.value="";return}k(b.value)?p.value="":p.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u5730\u5740"},$=()=>P(this,null,function*(){const d={};switch(u.value.wanProto){case"dhcp":break;case"static":d.staticIp=u.value.staticIp,d.subnetMask=u.value.subnetMask,d.gateway=u.value.gateway;break}switch(u.value.dnsProto){case"auto":break;case"manual":d.manualDnsIp=[],u.value.manualDnsIp!=null&&u.value.manualDnsIp.length>0?d.manualDnsIp=u.value.manualDnsIp:(d.manualDnsIp.push(c.value),h.value&&d.manualDnsIp.push(h.value));break}d.dnsProto=u.value.dnsProto,d.wanProto=u.value.wanProto;const b=r.Loading("\u914D\u7F6E\u4E2D....");l.value=!0;try{const f=yield A.Guide.ClientModel.POST(d);if(f!=null&&f.data){const{success:F,error:E}=f==null?void 0:f.data;E&&(i.value=E),(F==null||F==0)&&(r.Success("\u914D\u7F6E\u6210\u529F"),s.value=1)}}catch(f){i.value=f}l.value=!1,b.Close()});return(d,b)=>{const f=dt("router-link");return s.value==0?(o(),a("div",Kc,[Xc,Qc,t("form",{onSubmit:st($,["prevent"])},[t("label",null,[t7,M(t("select",{"onUpdate:modelValue":b[0]||(b[0]=F=>u.value.wanProto=F),onInput:v},u7,544),[[pt,u.value.wanProto]])]),u.value.wanProto=="static"?(o(),a(R,{key:0},[t("label",null,[n7,M(t("input",{type:"text","onUpdate:modelValue":b[1]||(b[1]=F=>u.value.staticIp=F),placeholder:"\u9759\u6001IP\u5730\u5740",required:"",disabled:l.value,onInput:_},null,40,o7),[[U,u.value.staticIp,void 0,{trim:!0}]])]),m.value?(o(),a("p",a7,B(m.value),1)):D("",!0),t("label",null,[i7,M(t("input",{type:"text","onUpdate:modelValue":b[2]||(b[2]=F=>u.value.subnetMask=F),placeholder:"\u5B50\u7F51\u63A9\u7801",required:"",disabled:l.value,onInput:y},null,40,l7),[[U,u.value.subnetMask,void 0,{trim:!0}]])]),p.value?(o(),a("p",c7,B(p.value),1)):D("",!0),t("label",null,[d7,M(t("input",{type:"text","onUpdate:modelValue":b[3]||(b[3]=F=>u.value.gateway=F),placeholder:"\u7F51\u5173\u5730\u5740",required:"",disabled:l.value},null,8,r7),[[U,u.value.gateway,void 0,{trim:!0}]])])],64)):D("",!0),t("label",null,[_7,M(t("select",{"onUpdate:modelValue":b[4]||(b[4]=F=>u.value.dnsProto=F),onInput:C},h7,544),[[pt,u.value.dnsProto]])]),u.value.dnsProto=="manual"?(o(),a(R,{key:1},[u.value.manualDnsIp!=null&&u.value.manualDnsIp.length>0?(o(!0),a(R,{key:0},ot(u.value.manualDnsIp,(F,E)=>(o(),a("label",null,[m7,M(t("input",{type:"text","onUpdate:modelValue":I=>u.value.manualDnsIp[E]=I,placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:l.value},null,8,b7),[[U,u.value.manualDnsIp[E],void 0,{trim:!0}]])]))),256)):(o(),a(R,{key:1},[t("label",null,[f7,M(t("input",{type:"text","onUpdate:modelValue":b[5]||(b[5]=F=>c.value=F),placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:l.value},null,8,F7),[[U,c.value,void 0,{trim:!0}]])]),t("label",null,[$7,M(t("input",{type:"text","onUpdate:modelValue":b[6]||(b[6]=F=>h.value=F),placeholder:"\u5907\u7528DNS\u670D\u52A1\u5668",disabled:l.value},null,8,k7),[[U,h.value,void 0,{trim:!0}]])])],64))],64)):D("",!0),i.value?(o(),a("div",C7,B(i.value),1)):D("",!0),t("div",E7,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:l.value},"\u4FDD\u5B58\u914D\u7F6E",8,y7),x(f,{to:"/network",custom:""},{default:z(({navigate:F})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:F},"\u8FD4\u56DE",8,g7)]),_:1})])],40,Yc)])):s.value==1?(o(),a("div",D7,[w7,t("div",B7,[x(f,{to:"/",custom:""},{default:z(({navigate:F})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:F},"\u8FDB\u5165\u63A7\u5236\u53F0",8,A7)]),_:1}),x(f,{to:"/network",custom:""},{default:z(({navigate:F})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:F},"\u8FD4\u56DE",8,x7)]),_:1})])])):D("",!0)}}});var I7=S(S7,[["__scopeId","data-v-1e424f74"]]);const et=e=>(V("data-v-2b425787"),e=e(),q(),e),P7={key:0,id:"page"},T7=et(()=>t("h2",{class:"title"},"\u65C1\u8DEF\u7531\u914D\u7F6E\u524D\u7684\u51C6\u5907\u5DE5\u4F5C",-1)),M7=et(()=>t("code",null,[vt(" \u65C1\u8DEF\u7531\u6A21\u5F0F\uFF0C\u4E5F\u53EB\u5355\u81C2\u8DEF\u7531\u6A21\u5F0F\u3002 "),t("br"),vt("\u60A8\u53EF\u4EE5\u7528\u4E0A\u4E00\u7EA7\u8DEF\u7531\u62E8\u53F7\uFF0C\u7136\u540E\u7531ARS2\u6765\u5B9E\u73B0\u4E00\u4E9B\u9AD8\u7EA7\u529F\u80FD\u3002 ")],-1)),L7=et(()=>t("h3",{class:"desc"},"\u8BF7\u60A8\u83B7\u5F97\u4E3B\u8DEF\u7531\u5668\u7684IP\u5730\u5740\uFF08\u4F8B\u5982 192.168.2.1 \uFF09\uFF0C\u8BB0\u5F55\u4EE5\u5907\u4F7F\u7528",-1)),z7=et(()=>t("div",{class:"info"},[vt(" \u4F60\u53EF\u4EE5\u67E5\u770B\u6211\u4EEC\u7684 "),t("a",{target:"_blank",href:"https://doc.linkease.com/zh/guide/easepi/common.html#%E6%97%81%E8%B7%AF%E7%94%B1%E6%A8%A1%E5%BC%8F"},"\u914D\u7F6E\u6559\u7A0B")],-1)),N7={class:"btns"},O7=["disabled"],V7=["onClick"],q7={key:1,id:"page"},G7=et(()=>t("h2",{class:"title"},"\u914D\u7F6E\u65C1\u8DEF\u7531\u7F51\u7EDC",-1)),U7=et(()=>t("h3",{class:"desc"},"\u73B0\u5728\uFF0C\u8BF7\u4F60\u914D\u7F6E\u65C1\u8DEF\u7531\u4FE1\u606F",-1)),W7=["onSubmit"],H7=et(()=>t("div",{class:"label-key"},[t("span",null,"LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),j7={class:"label-value"},R7=et(()=>t("option",null,"\u65C1\u8DEF\u7531\u6A21\u5F0F\u4EC5\u652F\u6301\u9759\u6001IP\u5730\u5740",-1)),Z7=[R7],J7=et(()=>t("div",{class:"label-key"},[t("span",null,"IP \u5730\u5740\uFF08\u8BF7\u548C\u4E0A\u4E00\u6B65\u8BB0\u5F55\u7684\u4E3B\u8DEF\u7531\u5730\u5740\u5728\u540C\u4E00\u7F51\u6BB5\uFF09")],-1)),K7=["disabled"],X7=et(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),Q7=["disabled"],Y7=et(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740")],-1)),td=["disabled"],ed=et(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),sd=["disabled"],ud={key:0,class:"msgs"},nd={class:"chose_dhcp"},od={class:"chose_dhcp_icon"},ad=et(()=>t("svg",{t:"1649907260906",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2793","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"40",height:"40"},[t("path",{d:"M764.904497 251.418146 259.086289 251.418146c-143.076626 0-259.065314 115.989711-259.065314 259.065314 0 143.077649 115.988688 259.063267 259.065314 259.063267l505.818207 0c143.074579 0 259.063267-115.985618 259.063267-259.063267C1023.967764 367.407857 907.980099 251.418146 764.904497 251.418146zM764.904497 747.164974c-130.507356 0-236.682537-106.175181-236.682537-236.682537S634.397141 273.798876 764.904497 273.798876s236.683561 106.176205 236.683561 236.683561S895.411853 747.164974 764.904497 747.164974z","p-id":"2794",fill:"#52C41A"})],-1)),id=[ad],ld=et(()=>t("svg",{t:"1649907515643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2971","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"40",height:"40"},[t("path",{d:"M764.867148 249.793136 259.0735 249.793136c-143.070486 0-259.052011 115.984594-259.052011 259.052011 0 143.07151 115.982548 259.050987 259.052011 259.050987l505.793648 0c143.067416 0 259.050987-115.979478 259.050987-259.050987C1023.917112 365.778754 907.933541 249.793136 764.867148 249.793136zM259.0735 745.516428c-130.501216 0-236.671281-106.172111-236.671281-236.671281 0-130.501216 106.170065-236.671281 236.671281-236.671281S495.744781 378.344954 495.744781 508.84617C495.744781 639.34534 389.574716 745.516428 259.0735 745.516428z","p-id":"2972",fill:"#999"})],-1)),cd=[ld],dd={key:0,class:"dhcp_info"},rd={class:"btns"},_d=["disabled"],pd=["onClick"],vd={key:2,id:"page"},hd=et(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),md={class:"btns"},bd=["onClick"],fd=["onClick"],Fd=O({setup(e){const s=g(0),u=g(!1),n=g(""),i=g({subnetMask:"255.255.255.0",staticDnsIp:"223.5.5.5",staticLanIp:"",gateway:"",enableDhcp:!0}),c=()=>{i.value.enableDhcp=!1},h=()=>{i.value.enableDhcp=!0},l=p=>{s.value=p},m=()=>P(this,null,function*(){const p=i.value,k=r.Loading("\u914D\u7F6E\u4E2D...");try{const w=yield A.Guide.GatewayRouter.POST(p);if(w!=null&&w.data){const{success:v,error:C}=w==null?void 0:w.data;C&&(n.value=C),(v==null||v==0)&&(r.Success("\u914D\u7F6E\u6210\u529F"),s.value=2)}}catch(w){n.value=w}k.Close()});return(p,k)=>{const w=dt("router-link");return s.value==0?(o(),a("div",P7,[T7,M7,L7,z7,t("div",N7,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:u.value,onClick:k[0]||(k[0]=v=>l(1))},"\u4E0B\u4E00\u6B65",8,O7),x(w,{to:"/network",custom:""},{default:z(({navigate:v})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:v},"\u8FD4\u56DE",8,V7)]),_:1})])])):s.value==1?(o(),a("div",q7,[G7,U7,t("form",{onSubmit:st(m,["prevent"])},[t("label",null,[H7,t("div",j7,[t("select",{disabled:"",style:he({backgroundColor:"rgba(215, 215, 215, 1)",color:"#333"})},Z7,4)])]),t("label",null,[J7,M(t("input",{type:"text","onUpdate:modelValue":k[1]||(k[1]=v=>i.value.staticLanIp=v),placeholder:"IP\u5730\u5740",required:"",disabled:u.value},null,8,K7),[[U,i.value.staticLanIp,void 0,{trim:!0}]])]),t("label",null,[X7,M(t("input",{type:"text","onUpdate:modelValue":k[2]||(k[2]=v=>i.value.subnetMask=v),placeholder:"\u5B50\u7F51\u63A9\u7801",required:"",disabled:u.value},null,8,Q7),[[U,i.value.subnetMask,void 0,{trim:!0}]])]),t("label",null,[Y7,M(t("input",{type:"text","onUpdate:modelValue":k[3]||(k[3]=v=>i.value.gateway=v),placeholder:"\u7F51\u5173\u5730\u5740",required:"",disabled:u.value},null,8,td),[[U,i.value.gateway,void 0,{trim:!0}]])]),t("label",null,[ed,M(t("input",{type:"text","onUpdate:modelValue":k[4]||(k[4]=v=>i.value.staticDnsIp=v),placeholder:"223.5.5.5",required:"",disabled:u.value},null,8,sd),[[U,i.value.staticDnsIp,void 0,{trim:!0}]])]),n.value?(o(),a("div",ud,B(n.value),1)):D("",!0),t("div",nd,[t("div",od,[i.value.enableDhcp?(o(),a("span",{key:0,class:"mobie_open",onClick:c},id)):D("",!0),i.value.enableDhcp?D("",!0):(o(),a("span",{key:1,class:"mobie_close",onClick:h},cd))]),i.value.enableDhcp?(o(),a("span",dd,"\u662F\u5426\u63D0\u4F9B DHCP\uFF08\u5982\u679C\u662F\u63D0\u4F9B DHCP\uFF0C\u5219\u9700\u8981\u5173\u95ED\u4E3B\u8DEF\u7531 DHCP\uFF09")):D("",!0)]),t("div",rd,[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",disabled:u.value},"\u4FDD\u5B58\u914D\u7F6E",8,_d),x(w,{to:"/network",custom:""},{default:z(({navigate:v})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:v},"\u8FD4\u56DE",8,pd)]),_:1})])],40,W7)])):s.value==2?(o(),a("div",vd,[hd,t("div",md,[x(w,{to:"/",custom:""},{default:z(({navigate:v})=>[t("button",{class:"cbi-button cbi-button-apply app-btn app-next",onClick:v},"\u8FDB\u5165\u63A7\u5236\u53F0",8,bd)]),_:1}),x(w,{to:"/network",custom:""},{default:z(({navigate:v})=>[t("button",{class:"cbi-button cbi-button-remove app-btn app-back",onClick:v},"\u8FD4\u56DE",8,fd)]),_:1})])])):D("",!0)}}});var $d=S(Fd,[["__scopeId","data-v-2b425787"]]);const kd=()=>window.vue_base||"/cgi-bin/luci/admin/quickstart/pages",Ae=He({history:je(kd()),routes:[{name:"IndexPage",path:"/",meta:{title:"\u63A7\u5236\u53F0"},component:pc},{name:"NetworkPage",path:"/network",meta:{title:"\u7F51\u7EDC\u8BBE\u7F6E\u5411\u5BFC"},component:mc,children:[{path:"",component:xc},{path:"pppoe",component:Jc},{path:"dhcp",component:I7},{path:"gateway",component:$d}]}]});Ae.beforeEach((e,s)=>(e.meta.title,!0));const nt=Q(Qe);nt.component("svg-menu",os);nt.component("svg-system",rs);nt.component("svg-download",bs);nt.component("svg-store",gs);nt.component("svg-info",Ss);nt.component("svg-disk",e1);nt.component("svg-nav",i1);nt.component("progress-item",be);nt.component("svg-view-show",h1);nt.component("svg-view-hidden",k1);nt.component("article-item",B1);nt.use(Ae);nt.use(Re());nt.mount("#app")});export default Cd();
|