import{az as i,d as p,r as d,c,e as f,f as m,h as s,i as n,g as u,t as E,u as r,E as g,R as v,S as x,_ as h}from"./index.0308b213.js";import{c as b}from"./browser.d69bddfa.js";import{v as w}from"./vue-qr.b9282eb1.js";const A=()=>i.request({url:"addon/agent.web.index/cover"}),C=e=>(v("data-v-be46ce3f"),e=e(),x(),e),I={class:"entrance__wrap"},k=C(()=>u("div",{class:"title"},"\u7535\u8111\u7AEF\u4EE3\u7406\u5165\u53E3",-1)),y=p({setup(e){let t=d("");(()=>{A().then(a=>{t.value=a.url})})();const _=()=>{b.write(t.value).then(()=>{g({message:"\u590D\u5236\u5730\u5740\u6210\u529F",type:"success"})})};return(a,F)=>{const o=c("el-form-item"),l=c("el-form");return f(),m("div",I,[k,s(l,{"label-width":"120px"},{default:n(()=>[s(o,{label:"\u76F4\u63A5URL"},{default:n(()=>[u("text",{class:"entrance__link",onClick:_},E(r(t)),1)]),_:1}),s(o,{label:"\u8BBF\u95EE\u4E8C\u7EF4\u7801"},{default:n(()=>[s(w,{text:r(t),size:200},null,8,["text"])]),_:1})]),_:1})])}}});const D=h(y,[["__scopeId","data-v-be46ce3f"]]);export{D as default};
