import{aI as d,ax as s,o as v,H as f,b as n,bR as m,aY as c}from"./index-CUCRxCBw.js";const y={__name:"ReCaptcha",emits:["getChildren"],setup(g,{emit:u}){const p=u,a=c(!1),o=c("");return d(async()=>{var r,e;if(console.log("点我了3...."),!o.value)try{a.value=!0,await s();const l=(e=(r=window.grecaptcha)==null?void 0:r.enterprise)==null?void 0:e.render("verification-robot-html",{sitekey:"6LcxproZAAAAALgCnpCMwyiiKTFyTm-jN4yL9iyy",callback:t=>{o.value=t,a.value=!1,p("getChildren",t)},"error-callback":()=>{a.value=!1,console.log("机器人验证失败,请稍后再试!")},"expired-callback":()=>{o.value="",a.value=!0,s(()=>{var t,i;return(i=(t=window.grecaptcha)==null?void 0:t.enterprise)==null?void 0:i.reset(l)})}})}catch{a.value=!1,console.log("机器人验证失败,请稍后再试!")}}),(r,e)=>(v(),f("div",null,[n("div",{class:"overlay",onClick:e[0]||(e[0]=m(()=>{},["stop"]))},[...e[1]||(e[1]=[n("div",{id:"verification-robot-html"},null,-1)])])]))}};export{y as _};