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