PageSourceSearch

https://fast-transcriber.com/_next/static/chunks/4031.2da42f2f82fa56e2.js

js fast-transcriber.com collected 2026-10-09 22:36:55 UTC 3,042 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4031],{94031:(e,t,r)=>{let i,n;r.d(t,{requestTranscriptionVerification:()=>c});var a=r(95155),o=r(12115),l=r(12669);function s({challenge:e,finish:t}){let r=(0,o.useRef)(null),n=(0,o.useRef)(null),[l,c]=(0,o.useState)(null),[d,u]=(0,o.useState)(!1),[f,m]=(0,o.useState)(0);return(0,o.useEffect)(()=>{r.current?.showModal()},[]),(0,o.useEffect)(()=>{let r,a=!1;return(window.turnstile?Promise.resolve(window.turnstile):(!i&&(i=new Promise((e,t)=>{let r=document.createElement("script");r.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",r.async=!0;let n=window.setTimeout(()=>a(),15e3);function a(){clearTimeout(n),r.remove(),i=void 0,t(Error("Could not load verification. Please check your connection and try again."))}r.onerror=a,r.onload=()=>{clearTimeout(n),window.turnstile?e(window.turnstile):a()},document.head.appendChild(r)})),i)).then(i=>{!a&&n.current&&(r=i.render(n.current,{sitekey:e.siteKey,action:"free_transcription",cData:e.cData,theme:"auto",size:"flexible",callback:async e=>{if(!a){u(!0);try{let r=await fetch("/api/transcription-verification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})});if(!r.ok){let e=await r.json().catch(()=>null);throw Error(e?.error||"Verification failed. Please try again.")}a||t(!0)}catch(e){a||(u(!1),c(e instanceof Error?e.message:"Please try again."))}}},"error-callback":()=>{a||c("Verification could not finish. Please try again.")},"expired-callback":()=>{a||c("Verification expired. Please try again.")}}))}).catch(e=>{a||c(e.message)}),()=>{a=!0,void 0!==r&&window.turnstile?.remove(r)}},[f,e,t]),(0,a.jsxs)("dialog",{ref:r,"aria-labelledby":"transcription-verification-title",onCancel:e=>{e.preventDefault(),t(!1)},className:"fixed inset-0 m-auto w-[calc(100%_-_2rem)] max-w-sm rounded-2xl border border-border bg-background p-6 text-foreground shadow-xl backdrop:bg-black/50",children:[(0,a.jsx)("h2",{id:"transcription-verification-title",className:"text-lg font-semibold",children:"Quick verification"}),(0,a.jsx)("p",{className:"mt-2 mb-5 text-sm text-muted-foreground",children:"Please verify to continue your free transcription. No sign-in is needed."}),(0,a.jsx)("div",{ref:n}),(0,a.jsx)("p",{role:l?"alert":"status",className:"mt-3 text-sm",children:l||(d?"Checking verification…":"")}),(0,a.jsxs)("div",{className:"mt-5 flex justify-end gap-3",children:[(0,a.jsx)("button",{type:"button",className:"rounded-lg border border-border px-4 py-2 text-sm",onClick:()=>t(!1),children:"Cancel"}),l&&(0,a.jsx)("button",{type:"button",className:"rounded-lg bg-primary px-4 py-2 text-sm text-primary-foreground",onClick:()=>{c(null),u(!1),m(e=>e+1)},children:"Try again"})]})]})}function c(e){return n||(n=new Promise(t=>{let r=document.createElement("div");document.body.appendChild(r);let i=(0,l.createRoot)(r),o=!1;i.render((0,a.jsx)(s,{challenge:e,finish:e=>{o||(o=!0,queueMicrotask(()=>{i.unmount(),r.remove(),n=void 0,t(e)}))}}))}))}}}]);

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.