1import{r as e}from"./chunk-z5H_xwo0.js";import{f as t,r as n,t as r}from"./app-BmZBiEix.js";var i=n(),a=e(t(),1),o=r(),s=null;function c(){return window.turnstile?Promise.resolve(window.turnstile):s||(s=new Promise((e,t)=>{let n=document.createElement(`script`);n.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,n.async=!0,n.defer=!0,n.dataset.ursaTurnstile=`true`,n.onload=()=>{if(window.turnstile){e(window.turnstile);return}s=null,t(Error(`Turnstile did not initialize.`))},n.onerror=()=>{n.remove(),s=null,t(Error(`Turnstile could not be loaded.`))},document.head.appendChild(n)}),s)}function l(e){let t=(0,i.c)(10),{siteKey:n,onTokenChange:r,theme:s}=e,l=(0,a.useRef)(null),[u,d]=(0,a.useState)(!1),f,p;t[0]!==r||t[1]!==n||t[2]!==s?(f=()=>{let e=!1,t;return c().then(i=>{e||!l.current||(t=i.render(l.current,{sitekey:n,action:`lead_submission`,appearance:`interaction-only`,theme:s,callback:e=>r(e),"expired-callback":()=>r(``),"error-callback":()=>{r(``),d(!0)}}))}).catch(()=>{e||d(!0)}),()=>{e=!0,t&&window.turnstile&&window.turnstile.remove(t)}},p=[r,n,s],t[0]=r,t[1]=n,t[2]=s,t[3]=f,t[4]=p):(f=t[3],p=t[4]),(0,a.useEffect)(f,p);let m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,o.jsx)(`div`,{ref:l}),t[5]=m):m=t[5];let h;t[6]===u?h=t[7]:(h=u?(0,o.jsx)(`p`,{className:`mt-2 text-xs font-semibold text-red-600`,children:`Browser verification could not load. Please refresh the page or call Ursa PRO directly.`}):null,t[6]=u,t[7]=h);let g;return t[8]===h?g=t[9]:(g=(0,o.jsxs)(`div`,{children:[m,h]}),t[8]=h,t[9]=g),g}function u(e){let t=(0,i.c)(16),{config:n,honeypotValue:r,onHoneypotChange:a,onTurnstileTokenChange:s,error:c,theme:u}=e,d=u===void 0?`light`:u,f;t[0]===a?f=t[1]:(f=e=>a(e.target.value),t[0]=a,t[1]=f);let p;t[2]!==r||t[3]!==f?(p=(0,o.jsxs)(`label`,{"aria-hidden":`true`,className:`pointer-events-none absolute -left-[10000px] h-px w-px overflow-hidden`,children:[`Website`,(0,o.jsx)(`input`,{type:`text`,name:`website`,value:r,onChange:f,tabIndex:-1,autoComplete:`off`})]}),t[2]=r,t[3]=f,t[4]=p):p=t[4];let m;t[5]!==n.turnstileEnabled||t[6]!==n.turnstileSiteKey||t[7]!==s||t[8]!==d?(m=n.turnstileEnabled?n.turnstileSiteKey?(0,o.jsx)(l,{siteKey:n.turnstileSiteKey,onTokenChange:s,theme:d}):(0,o.jsx)(`p`,{className:`text-xs font-semibold text-red-600`,children:`Browser verification is temporarily unavailable. Please call Ursa PRO directly.`}):null,t[5]=n.turnstileEnabled,t[6]=n.turnstileSiteKey,t[7]=s,t[8]=d,t[9]=m):m=t[9];let h;t[10]===c?h=t[11]:(h=c?(0,o.jsx)(`p`,{className:`text-xs font-semibold text-red-600`,children:c}):null,t[10]=c,t[11]=h);let g;return t[12]!==p||t[13]!==m||t[14]!==h?(g=(0,o.jsxs)(o.Fragment,{children:[p,m,h]}),t[12]=p,t[13]=m,t[14]=h,t[15]=g):g=t[15],g}export{u as t};
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.