1import{d as r,j as e}from"./chunk-ByrZiptr.js";import{l as f,T as m}from"./chunk-BLegyuYa.js";import"./chunk-DvfRMohc.js";/* empty css */const u=m;function E(){const[l,c]=r.useState(!1),[a,n]=r.useState("idle"),i=r.useRef(null),t=r.useRef(null);return r.useEffect(()=>{const s=()=>c(!0);return window.addEventListener("lexdin:challenge-required",s),()=>window.removeEventListener("lexdin:challenge-required",s)},[]),r.useEffect(()=>{if(!l||!u||!i.current)return;let s=!1;return f().then(o=>{s||!i.current||(t.current=o.render(i.current,{sitekey:u,callback:async x=>{n("checking");try{const d=await fetch("/api/v1/challenge",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({token:x})});if(!d.ok)throw new Error(String(d.status));n("done"),c(!1),window.dispatchEvent(new CustomEvent("lexdin:challenge-passed"))}catch{n("failed");try{window.turnstile?.reset(t.current)}catch{}}},"error-callback":()=>n("failed"),"expired-callback":()=>{try{window.turnstile?.reset(t.current)}catch{}}}))}).catch(()=>n("failed")),()=>{s=!0;try{t.current&&window.turnstile?.remove(t.current)}catch{}t.current=null}},[l]),l?e.jsx("div",{className:"fixed inset-0 z-[100] bg-lexdin-scrim/55 flex items-center justify-center p-4",dir:"rtl",children:e.jsxs("div",{className:"bg-lexdin-paper border border-lexdin-ink max-w-[420px] w-full p-8",children:[e.jsx("h2",{className:"page-title-md",children:"ר××¢ ×××"}),e.jsx("p",{className:"text-[15px] leading-[1.6] text-lexdin-mut mt-4 mb-6",children:"××× ×××ש××, × × ××שר ש××× × ×ª××× × ×××××××ת."}),e.jsx("div",{ref:i,className:"flex justify-center min-h-[70px]"}),a==="checking"&&e.jsx("p",{className:"text-[13.5px] text-lexdin-mut mt-4",children:"××××§â¦"}),a==="failed"&&e.jsx("p",{className:"text-[13.5px] text-[#8A2F2F] mt-4",children:"×××××ת × ×ש×. ×פשר ×× ×¡×ת ש××."})]})}):null}export{E as default};
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.