import{aW as s,aH as d,ax as n,H as v,o as f,b as c,bP as m}from"./index-CxvxTWuH.js";const y={__name:"ReCaptcha",emits:["getChildren"],setup(g,{emit:u}){const p=u,a=s(!1),o=s("");return d(async()=>{var r,e;if(console.log("点我了3...."),!o.value)try{a.value=!0,await n();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,n(()=>{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)=>(f(),v("div",null,[c("div",{class:"overlay",onClick:e[0]||(e[0]=m(()=>{},["stop"]))},e[1]||(e[1]=[c("div",{id:"verification-robot-html"},null,-1)]))]))}};export{y as _};