1import{I as h,Q as i,h as u,e as T,i as d,Y as c}from"./Ci-rM4WD.js";import{u as l}from"./DOtVIDiv.js";const m=()=>{const{t:n}=h(),{data:e}=i(),{loadCaptcha:p}=l(),o=u(()=>{var a,t;return(t=(a=e.value)==null?void 0:a.captcha)==null?void 0:t.isEnabled});return{captchaIsEnabled:o,getCaptchaToken:async()=>{var s,r;if(!o.value||!window.grecaptcha&&(!await p()||!window.grecaptcha))return;const a=(r=(s=e==null?void 0:e.value)==null?void 0:s.captcha)==null?void 0:r.key;return await window.grecaptcha.execute(a)||""},captchaError:a=>{const{isDesktop:t}=T();d(a),c.error(n("captcha_error_message"),{theme:c.THEME.DARK,toastId:"global-captcha-error-toast",position:t?c.POSITION.BOTTOM_RIGHT:c.POSITION.BOTTOM_CENTER,transition:c.TRANSITIONS.SLIDE,autoClose:5e3})}}};export{m as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.