2023-12-14 09:14:48 +08:00
|
|
|
var f=(n,u,c)=>new Promise((l,o)=>{var d=s=>{try{p(c.next(s))}catch(e){o(e)}},F=s=>{try{p(c.throw(s))}catch(e){o(e)}},p=s=>s.done?l(s.value):Promise.resolve(s.value).then(d,F);p((c=c.apply(n,u)).next())});import{d as $,M as b,s as M,r as N,o as h,c as y,a as t,b as S,_ as A,T as v,C as z,p as g,q as x,l as O,g as q,n as G,j as H,v as W,x as C,A as T,z as U,D as V,e as E,w as L,N as R,S as j}from"./index.js?v=6248f3bd";const P=n=>(g("data-v-7b2637d8"),n=n(),x(),n),J=P(()=>t("div",{class:"f"},[t("div",{class:"titleMain"},"\u4E92\u8054\u7F51"),t("div",{class:"titleSub"},"\u8054\u673A\u7C7B\u578B")],-1)),K={class:"r"},Q=P(()=>t("div",{class:"title"}," \u8BF7\u5728\u4EE5\u4E0B\u9009\u9879\u4E2D\u9009\u62E9\u7F51\u7EDC\u8FDE\u63A5\u7C7B\u578B\u3002\u82E5\u60A8\u4E0D\u77E5\u9053\u7F51\u7EDC\u8FDE\u63A5\u7C7B\u578B\uFF0C\u8BF7\u54A8\u8BE2\u60A8\u7684\u7F51\u7EDC\u670D\u52A1\u4F9B\u5E94\u5546\uFF08ISP\uFF09\u3002 ",-1)),X={class:"selector-container"},Y=P(()=>t("div",{class:"select-bar"}," \u81EA\u52A8\u8054\u7F51\uFF08\u52A8\u6001IP\uFF09 ",-1)),Z={class:"narrow-container"},tt=P(()=>t("div",{class:"select-bar"}," \u62E8\u53F7\u8054\u7F51\uFF08PPPoE\uFF09 ",-1)),et={class:"narrow-container"},st={class:"btns"},at=$({__name:"router",props:{setup:{type:String,required:!0}},emits:["update:setup"],setup(n,{emit:u}){const c=b(),l=()=>{u("update:setup","wizard")},o=()=>{u("update:setup","router-pppoe")},d=M(!1),F=()=>f(this,null,function*(){const s={wanProto:"dhcp",dnsProto:"auto"};d.value=!0;const e=v.Loading("\u4FDD\u5B58\u4E2D...");try{const a=yield z.Guide.ClientModel.POST(s);if(a!=null&&a.data){const{success:_,error:D}=a==null?void 0:a.data;if(D)throw D;(_==null||_==0)&&(yield p())}}catch(a){v.Error(`${a}`)}finally{d.value=!1,e.Close()}}),p=()=>f(this,null,function*(){const s=v.Loading("\u914D\u7F6E\u4E2D...");try{const e=yield z.Istorex.Updata.POST({model:"router"});if(e.data){const{success:a,error:_}=e.data;if(_)throw _;a===0&&c.push({path:"/router"})}}catch(e){v.Error(`${e}`)}finally{s.Close()}});return(s,e)=>{const a=N("icon-right");return h(),y("form",null,[J,t("div",K,[Q,t("div",X,[t("div",{class:"selector-container_item",onClick:e[0]||(e[0]=_=>F())},[Y,t("div",Z,[S(a)])]),t("div",{class:"selector-container_item",onClick:e[1]||(e[1]=_=>o())},[tt,t("div",et,[S(a)])])]),t("div",st,[t("button",{class:"back",type:"button",onClick:e[2]||(e[2]=_=>l())},"\u4E0A\u4E00\u6B65"),t("button",{class:"next",type:"button",onClick:e[3]||(e[3]=_=>p())}," \u4E0D\u914D\u7F6E\uFF0C\u8FDB\u5165\u4E3B\u754C\u9762 ")])])])}}});var ot=A(at,[["__scopeId","data-v-7b2637d8"]]);const ut={},nt={class:"main"};function lt(n,u){return h(),y("div",nt)}var it=A(ut,[["render",lt]]);const r=n=>(g("data-v-041c9ebc"),n=n(),x(),n),dt={id:"wizard"},rt={class:"wizard_title"},ct={class:"wizard_body"},pt={class:"wizard-item_icon"},_t={t:"1654871923674",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1414",width:"128",height:"128",style:{padding:"5px"}},ht=r(()=>t("path",{d:"M247.466667 76.8h25.6l51.2 307.2h-25.6L247.466667 76.8zM762.453333 76.8h25.6L742.4 385.706667h-25.6L762.453333 76.8z",fill:"#96CAFF","p-id":"1415"},null,-1)),vt=r(()=>t("path",{d:"M275.2 409.6H324.266667L256.938667 51.2H230.4zM230.4 25.6h26.538667a25.6 25.6 0 0 1 25.173333 20.906667l67.242667 358.4A25.6 25.6 0 0 1 324.266667 435.2h-49.066667a25.6 25.6 0 0 1-25.6-22.442667L204.8 54.357333A25.6 25.6 0 0 1 227.242667 25.6zM785.066667 51.2l-44.885334 358.4H691.2l67.242667-358.4z m0-25.6h-26.624a25.6 25.6 0 0 0-25.173334 20.906667l-67.157333 358.4A25.6 25.6 0 0 0 691.2 435.2h48.981333a25.6 25.6 0 0 0 25.6-22.442667l44.885334-358.4A25.6 25.6 0 0 0 788.138667 25.6z",fill:"#175AA7","p-id":"1416"},null,-1)),ft=r(()=>t("path",{d:"M59.733333 665.6h930.133334a8.533333 8.533333 0 0 1 8.533333 8.533333v162.133334a8.533333 8.533333 0 0 1-8.533333 8.533333H59.733333a8.533333 8.533333 0 0 1-8.533333-8.533333V674.133333a8.533333 8.533333 0 0 1 8.533333-8.533333z",fill:"#96CAFF","p-id":"1417"},null,-1)),Ft=r(()=>t("path",{d:"M460.8 768h25.6v-25.6h-25.6z m-25.6-51.2h76.8v76
|