PageSourceSearch

https://bdsm.com/www/guest/20260924T124310/useGoogleRecaptcha.js?20260924T124310

js bdsm.com collected 2026-09-29 16:31:02 UTC 2,655 bytes, 1 lines download raw bytes

1import{i as e}from"./rolldown-runtime.js";import{m as t,s as n}from"./useI18n.js";import{i as r}from"./vendor.js";import{n as i,t as a}from"./objectSpread2.js";import{d as o}from"./chunk-OE4NN4TA.js";var s=e(r()),c=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),l=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),u=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),d=e=>{let t=u(e);return t.charAt(0).toUpperCase()+t.slice(1)},f={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},p=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},m=(0,s.createContext)({}),h=()=>(0,s.useContext)(m);i();var g=[`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`className`,`children`,`iconNode`],_=(0,s.forwardRef)((e,t)=>{var n,r,i;let{color:l,size:u,strokeWidth:d,absoluteStrokeWidth:m,className:_=``,children:v,iconNode:y}=e,b=o(e,g),{size:x=24,strokeWidth:S=2,absoluteStrokeWidth:C=!1,color:w=`currentColor`,className:T=``}=(n=h())==null?{}:n,E=(m==null?C:m)?Number(d==null?S:d)*24/Number(u==null?x:u):d==null?S:d;return(0,s.createElement)(`svg`,a(a(a({ref:t},f),{},{width:(r=u==null?x:u)==null?f.width:r,height:(i=u==null?x:u)==null?f.height:i,stroke:l==null?w:l,strokeWidth:E,className:c(`lucide`,T,_)},!v&&!p(b)&&{"aria-hidden":`true`}),b),[...y.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(v)?v:[v]])});i();var v=[`className`],y=(e,t)=>{let n=(0,s.forwardRef)((n,r)=>{let{className:i}=n,u=o(n,v);return(0,s.createElement)(_,a({ref:r,iconNode:t,className:c(`lucide-${l(d(e))}`,`lucide-${e}`,i)},u))});return n.displayName=d(e),n},b={recaptcha_site_key:``,use_recaptcha_login:0,use_recaptcha_registration:!1},x=void 0,S=()=>{let e=(0,s.useMemo)(()=>{var e,n;return(e=(n=t.site)==null?void 0:n.captcha)==null?b:e},[t.site]),n=e=>{if(x)return;let t=document.createElement(`script`);t.src=`https://www.google.com/recaptcha/enterprise.js?render=${e}`,t.async=!0,x=t,document.body.appendChild(x)},r=()=>{x&&(document.body.removeChild(x),x=void 0)};(0,s.useEffect)(()=>{if(e.recaptcha_site_key)return n(e.recaptcha_site_key),()=>{r()}},[e.recaptcha_site_key])},C=e=>new Promise(r=>{var i;let a=(i=t.site.captcha)==null?b:i;if(e===`register`&&n(a.use_recaptcha_registration)||e===`login`&&n(a.use_recaptcha_login)){r(``);return}let o=window.grecaptcha;o.enterprise.ready(()=>{o.enterprise.execute(a.recaptcha_site_key,{action:e===`ABUSE_VERIFICATION`?`ABUSE_VERIFICATION`:`LOGIN`}).then(e=>{r(e)})})});export{S as n,y as r,C 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.