import{a as F,u as w,b as v}from"./index.0d71219c.js";import{d as x,aX as A,b as B,c as n,e as D,f as V,h as t,i as u,u as l,g,m as k,N as y,b4 as C,E as i,R as I,S as N,_ as S}from"./index.0308b213.js";const T=s=>(I("data-v-511f8efb"),s=s(),N(),s),L={class:"setting-form"},M={class:"operation-btn"},U=k("\u66F4\u65B0"),P=T(()=>g("iframe",{src:"https://www.seafox.cc/updatelogs",width:"100%",height:"800px"},null,-1)),R=x({setup(s){const r=A.get("uniacid"),_=window.location.protocol+"//"+window.location.host,e=B({id:"",uniacid:r,web_path:"",version:"",domain:_}),p=()=>{F({uniacid:r,domain:_}).then(a=>{console.log("res",a),e.id=a.id,e.version=a.version,e.web_path=a.web_path})};p();const h=()=>{y.confirm("\u662F\u5426\u786E\u8BA4\u66F4\u65B0\u540E\u7AEF\u4EE3\u7801\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{const a=C.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});w(e).then(o=>{console.log("res",o),o.data?(i.success("\u83B7\u53D6\u6210\u529F"),e.version=o.data,v(e).then(c=>{p()})):i.error("\u83B7\u53D6\u5931\u8D25"),a.close()})}).catch(()=>{i.info("\u5DF2\u53D6\u6D88")})};return(a,o)=>{const c=n("el-input"),m=n("el-form-item"),b=n("el-form"),E=n("el-button"),f=n("el-card");return D(),V("div",L,[t(f,{shadow:"always",style:{"margin-top":"20px"}},{default:u(()=>[t(b,{"label-width":"200px"},{default:u(()=>[t(m,{label:"\u7F51\u7AD9\u76EE\u5F55\u6587\u4EF6(\u7528\u4E8E\u81EA\u52A8\u66FF\u6362)"},{default:u(()=>[t(c,{modelValue:l(e).web_path,"onUpdate:modelValue":o[0]||(o[0]=d=>l(e).web_path=d),placeholder:"\u7F51\u7AD9\u76EE\u5F55\u6587\u4EF6(\u7528\u4E8E\u81EA\u52A8\u66FF\u6362)",disabled:""},null,8,["modelValue"])]),_:1}),t(m,{label:"\u7248\u672C\u53F7"},{default:u(()=>[t(c,{modelValue:l(e).version,"onUpdate:modelValue":o[1]||(o[1]=d=>l(e).version=d),placeholder:"\u7248\u672C\u53F7",disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),g("div",M,[t(E,{type:"primary",onClick:h},{default:u(()=>[U]),_:1})])]),_:1}),t(f,null,{default:u(()=>[P]),_:1})])}}});const q=S(R,[["__scopeId","data-v-511f8efb"]]);export{q as default};
