PageSourceSearch

https://boltai.com/_next/static/chunks/pages/tool/title-generator-65f7091b4c1fb8d9.js

js boltai.com collected 2026-10-02 14:45:46 UTC 24,149 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6011],{30268:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tool/title-generator",function(){return r(58688)}])},36148:function(t,n,r){"use strict";r.d(n,{L:function(){return SiteIdentityJsonLd},t:function(){return AppProductJsonLd}});var a=r(85893),i=r(2962);function SiteIdentityJsonLd(){return(0,a.jsx)(i.ns,{id:"https://boltai.com/#organization",name:"BoltAI",url:"https://boltai.com/",logo:"https://boltai.com/assets/app-icon-128-new.png"})}function AppProductJsonLd(){return(0,a.jsx)(i.Gz,{name:"BoltAI",description:"BoltAI is a private AI workspace for Mac power users. Connect ChatGPT, Claude, Gemini, and local models in one native app.",applicationCategory:"ProductivityApplication",operatingSystem:"macOS",price:"79.00",priceCurrency:"USD",url:"https://boltai.com/pricing"})}},82773:function(t,n,r){"use strict";r.d(n,{X:function(){return PageLayout}});var a=r(85893),i=r(36148);function PageLayout(t){let{children:n}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.L,{}),n]})}},58688:function(t,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Home}});var a=r(85893),i=r(9008),s=r.n(i),o=r(67294),l=r(82773),c=r(99610),u=r(50364),d=r(44123);r(5682);var p=r(62212);let m=[{id:"formal",name:"\uD83D\uDC54 Formal"},{id:"casual",name:"\uD83D\uDE0A Casual"},{id:"professional",name:"\uD83D\uDCBC Professional"},{id:"friendly",name:"\uD83E\uDD17 Friendly"},{id:"persuasive",name:"\uD83D\uDCAB Persuasive"},{id:"confident",name:"\uD83D\uDCAA Confident"},{id:"empathetic",name:"\uD83D\uDC9D Empathetic"}],h=[{id:"how-to",name:"\uD83D\uDCDD How-tos"},{id:"list-based",name:"\uD83D\uDCCB Listicles"},{id:"question-based",name:"❓ Questions"},{id:"comparison",name:"⚖️ Comparisons"},{id:"other",name:"✏️ Other"}];function TitleGenerator(){let[t,n]=(0,o.useState)(""),[r,i]=(0,o.useState)("formal"),[s,l]=(0,o.useState)(h.map(t=>t.id)),[c,u]=(0,o.useState)({}),[d,g]=(0,o.useState)(!1),[f,x]=(0,o.useState)(null),[y,b]=(0,o.useState)(null);(0,o.useRef)(null);let v=(0,o.useRef)(null),handleGenerate=async()=>{try{b(null),g(!0);let n=await fetch("/api/generate-titles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({topic:t,tone:r,types:s,cfTurnstileResponse:f})}),a=await n.json();if(!n.ok)throw Error(a.error||"Failed to generate titles");u(a.titles),v.current?.reset()}catch(t){console.error("Error generating titles:",t),b(t.message)}finally{g(!1)}},handleCopy=t=>{navigator.clipboard.writeText(t);let n=document.getElementById("copy-hint");n.textContent="Copied!",setTimeout(()=>{n.textContent="Click to copy"},2e3)},handleTypeToggle=t=>{l(n=>n.includes(t)?n.filter(n=>n!==t):[...n,t])};return(0,a.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold text-gray-800",children:"Free AI Title Generator"}),(0,a.jsx)("p",{className:"text-xl text-gray-600 mt-4 mb-8",children:"Generate engaging and SEO-optimized titles for your content. Create multiple title variations that grab attention and rank well."}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("form",{onSubmit:t=>{t.preventDefault(),handleGenerate()},className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-lg font-medium text-orange-600 mb-2",children:"Your topic"}),(0,a.jsx)("textarea",{value:t,onChange:t=>n(t.target.value),className:"w-full p-4 border-2 border-gray-200 rounded-lg focus:border-orange-500 focus:ring-1 focus:ring-orange-500 resize-y min-h-[150px]",placeholder:"Enter your content topic...",maxLength:800}),(0,a.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:[t.length,"/",800," characters"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-lg font-medium text-orange-600 mb-2",children:"Writing tone"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("select",{value:r,onChange:t=>i(t.target.value),className:"w-full p-3 border-2 border-gray-200 rounded-lg focus:border-orange-500 focus:ring-1 focus:ring-orange-500 bg-white appearance-none cursor-pointer",children:m.map(t=>(0,a.jsx)("option",{value:t.id,children:t.name},t.id))}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",children:(0,a.jsx)("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-lg font-medium text-orange-600 mb-2",children:"Title types"}),(0,a.jsx)("div",{className:"space-y-3",children:h.map(t=>(0,a.jsxs)("label",{className:"flex items-center space-x-3 cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:s.includes(t.id),onChange:()=>handleTypeToggle(t.id),className:"h-5 w-5 text-orange-500 rounded border-gray-300 focus:ring-orange-500"}),(0,a.jsx)("span",{className:"text-gray-700",children:t.name})]},t.id))})]}),(0,a.jsx)(p.Nc,{ref:v,siteKey:"0x4AAAAAAA27yIntolgGgYiW",onSuccess:t=>x(t)})]})}),(0,a.jsxs)("button",{onClick:handleGenerate,disabled:d||!t.trim()||0===s.length||!f,className:`w-full md:w-auto px-6 py-3 bg-orange-500 text-white rounded-lg font-medium flex items-center justify-center space-x-2
2            ${!d&&t.trim()&&0!==s.length&&f?"hover:bg-orange-600":"opacity-50 cursor-not-allowed"}`,children:[(0,a.jsx)("span",{className:"text-xl",children:"✨"}),(0,a.jsx)("span",{children:d?"Generating...":"Generate Titles"})]}),y&&(0,a.jsx)("div",{className:"text-red-500 bg-red-50 p-4 rounded-lg",children:y}),Object.keys(c).length>0&&(0,a.jsx)("div",{className:"mt-8 space-y-8",children:s.map(t=>{let n=h.find(n=>n.id===t),r=c[t]||[];return r.length?(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold mb-4",children:n.name.split(" ")[1]}),(0,a.jsx)("div",{className:"space-y-3",children:r.map((t,n)=>(0,a.jsxs)("div",{className:"p-4 bg-white border border-gray-200 rounded-lg hover:shadow-md transition-shadow cursor-pointer group relative",onClick:()=>handleCopy(t),title:"Click to copy",children:[t,(0,a.jsx)("span",{id:"copy-hint",className:"absolute bg-white p-2 rounded-md right-0 top-0 text-sm text-orange-400 opacity-0 group-hover:opacity-100 transition-opacity",children:"Click to copy"})]},n))})]},t):null})})]})]})}var g=r(28368),f=r(43863),x=r(76878),y=r(2962);let b=[{question:"What is an AI title generator?",answer:(0,a.jsxs)(a.Fragment,{children:["An AI title generator is a tool powered by artificial intelligence that assists in creating catchy, relevant, and optimized titles for various types of content. These 
2can include articles, blog posts, videos, books, and other forms of media. By"," ",(0,a.jsx)("a",{href:"https://boltai.com/docs/chat-ui/document-analysis",children:"analyzing keywords"}),", content summaries, and sometimes even specific topics or themes, the AI generates titles that not only capture attention but are also optimized for search engines (SEO)."]})},{question:"How does an AI title generator work?",answer:(0,a.jsx)(a.Fragment,{children:"AI title generators use advanced machine learning models, trained on vast datasets, to understand language patterns, context, and user input. When you provide keywords or content descriptions, the AI processes the information, and based on semantic understanding, it generates a variety of potential titles. These titles are designed to match the tone, theme, and audience of your content."})},{question:"Can I use instant commands in an AI title generator?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes, you can use"," ",(0,a.jsx)("a",{href:"https://boltai.com/docs/ai-command/instant-command",children:"instant commands"}
2)," ","in BoltAI. By entering brief and direct instructions, the AI can quickly generate titles that align with your specified needs, saving time and making the process more efficient."]})},{question:"What are the benefits of using an AI title generator?",answer:(0,a.jsxs)(a.Fragment,{children:["• Time efficiency: An AI title generator"," ",(0,a.jsx)("a",{href:"https://boltai.com/review",children:"saves time"})," ","by offering multiple title suggestions quickly, eliminating the need for lengthy brainstorming sessions.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"• SEO optimization: The tool can generate SEO-friendly titles by suggesting relevant keywords, ensuring your content ranks well on search engines.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"• Creativity boost: When faced with writer's block or a need for fresh ideas, an AI title generator offers diverse and innovative title options.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"• Audience engagement: AI-generated titles are crafted to catch readers' attention, improving engagement and increasing click-through rates for your content."]})},{question:"Can I integrate ChatGPT with an AI title generator?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes, you can"," ",(0,a.jsx)("a",{href:"https://boltai.com/#for-students",children:"integrate ChatGPT"})," ","with BoltAI to enhance the title generation process. By making use of ChatGPT's natural language understanding, you can receive more personalized, context-aware title suggestions tailored to your content and audience."]})},{question:"Can AI title generators be customized for different content types?",answer:(0,a.jsx)(a.Fragment,{children:"Yes, AI title generators can be tailored to various content formats, including blogs, videos, books, and more. By specifying the content type and target audience, the tool can generate titles that are contextually appropriate and engaging."})},{question:"Are AI-generated titles SEO-friendly?",answer:(0,a.jsx)(a.Fragment,{children:"Most reputable AI title generators are designed with SEO in mind. They suggest titles that include high-ranking keywords, adhere to SEO best practices, and are more likely to drive organic traffic. This feature ensures that your content is more visible and accessible to users searching for similar topics."})},{question:"Are AI title generators free to use?",answer:(0,a.jsxs)(a.Fragment,{children:["Many AI title generators offer free versions with basic features, while some provide advanced functionalities through"," ",(0,a.jsx)("a",{href:"https://boltai.com/pricing",children:"subscription models"}),". It's advisable to review the pricing and features of each tool to determine the best fit for your needs."]})},{question:"Can AI title generators handle multiple languages?",answer:(0,a.jsx)(a.Fragment,{children:"Some AI title generators support multiple languages, allowing users to generate titles in various linguistic contexts. However, the availability of this feature depends on the specific tool. It's recommended to check the language capabilities of the AI title generator you intend to use."})}],v=b.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:o.Children.map(t.answer.props.children,t=>"string"==typeof t?t:t&&"object"==typeof t&&"props"in t?"br"===t.type?"\n":t.props.children||"":"").join("")}}));function Home(t){let{variant:n,utmSource:r}=t;return(0,a.jsxs)(l.X,{children:[(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:"Free AI Title Generator | BoltAI"}),(0,a.jsx)("meta",{property:"og:image",content:"https://image.social/get?url=boltai.com/tool/title-generator"}),(0,a.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"630"}),(0,a.jsx)("meta",{property:"og:url",content:"https://BoltAI.com/tool/title-generator"})]}),(0,a.jsx)(u.h,{banner:!0,utmSource:r}),(0,a.jsx)("main",{children:(0,a.jsx)(d.W,{children:(0,a.jsxs)("div",{className:"max-w-3xl mx-auto py-32",children:[(0,a.jsx)("div",{className:"mb-32",children:(0,a.jsx)(TitleGenerator,{})}),(0,a.jsxs)("div",{className:"mx-auto max-w-4xl divide-y divide-gray-900/10",children:[(0,a.jsx)("h2",{id:"faqs-title",className:"text-xl mt-16 font-medium tracking-tight text-gray-900",children:"Frequently asked questions"}),(0,a.jsx)("dl",{className:"mt-10 space-y-6 divide-y divide-gray-900/10",children:b.map(t=>(0,a.jsx)(g.p,{defaultOpen:!0,as:"div",className:"pt-6",children:n=>{let{open:r}=n;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:(0,a.jsxs)(g.p.Button,{className:"flex w-full items-start justify-between text-left text-gray-900",children:[(0,a.jsx)("span",{className:"text-base font-semibold leading-7",children:t.question}),(0,a.jsx)("span",{className:"ml-6 flex h-7 items-center",children:r?(0,a.jsx)(f.Z,{className:"h-6 w-6","aria-hidden":"true"}):(0,a.jsx)(x.Z,{className:"h-6 w-6","aria-hidden":"true"})})]})}),(0,a.jsx)(g.p.Panel,{unmount:!1,as:"dd",className:"mt-2 pr-12",children:(0,a.jsx)("div",{className:"prose text-base leading-7 text-gray-600",children:t.answer})})]})}},t.question))})]}),(0,a.jsx)(y.Mg,{mainEntity:v})]})})}),(0,a.jsx)(c.$,{})]})}},28368:function(t,n,r){"use strict";r.d(n,{p:function(){return N}});var a,i,s,o=r(67294),l=r(32984),c=r(12351),u=r(23784),d=r(19946),p=r(61363),m=r(64103),h=r(16567),g=r(14157),f=r(15466),x=r
2(73781);let y=null!=(s=o.startTransition)?s:function(t){t()};var b=((a=b||{})[a.Open=0]="Open",a[a.Closed=1]="Closed",a),v=((i=v||{})[i.ToggleDisclosure=0]="ToggleDisclosure",i[i.CloseDisclosure=1]="CloseDisclosure",i[i.SetButtonId=2]="SetButtonId",i[i.SetPanelId=3]="SetPanelId",i[i.LinkPanel=4]="LinkPanel",i[i.UnlinkPanel=5]="UnlinkPanel",i);let j={0:t=>({...t,disclosureState:(0,l.E)(t.disclosureState,{0:1,1:0})}),1:t=>1===t.disclosureState?t:{...t,disclosureState:1},4:t=>!0===t.linkedPanel?t:{...t,linkedPanel:!0},5:t=>!1===t.linkedPanel?t:{...t,linkedPanel:!1},2:(t,n)=>t.buttonId===n.buttonId?t:{...t,buttonId:n.buttonId},3:(t,n)=>t.panelId===n.panelId?t:{...t,panelId:n.panelId}},k=(0,o.createContext)(null);function M(t){let n=(0,o.useContext)(k);if(null===n){let n=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,M),n}return n}k.displayName="DisclosureContext";let E=(0,o.createContext)(null);E.displayName="DisclosureAPIContext";let I=(0,o.createContext)(null);function Y(t,n){return(0,l.E)(n.type,j,t,n)}I.displayName="DisclosurePanelContext";let C=o.Fragment,T=c.AN.RenderStrategy|c.AN.Static,N=Object.assign((0,c.yV)(function(t,n){let{defaultOpen:r=!1,...a}=t,i=(0,o.useRef)(null),s=(0,u.T)(n,(0,u.h)(t=>{i.current=t},void 0===t.as||t.as===o.Fragment)),d=(0,o.useRef)(null),p=(0,o.useRef)(null),m=(0,o.useReducer)(Y,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:p,panelRef:d,buttonId:null,panelId:null}),[{disclosureState:g,buttonId:y},b]=m,v=(0,x.z)(t=>{b({type:1});let n=(0,f.r)(i);if(!n||!y)return;let r=t?t instanceof HTMLElement?t:t.current instanceof HTMLElement?t.current:n.getElementById(y):n.getElementById(y);null==r||r.focus()}),j=(0,o.useMemo)(()=>({close:v}),[v]),I=(0,o.useMemo)(()=>({open:0===g,close:v}),[g,v]);return o.createElement(k.Provider,{value:m},o.createElement(E.Provider,{value:j},o.createElement(h.up,{value:(0,l.E)(g,{0:h.ZM.Open,1:h.ZM.Closed})},(0,c.sY)({ourProps:{ref:s},theirProps:a,slot:I,defaultTag:C,name:"Disclosure"}))))}),{Button:(0,c.yV)(function(t,n){let r=(0,d.M)(),{id:a=`headlessui-disclosure-button-${r}`,...i}=t,[s,l]=M("Disclosure.Button"),h=(0,o.useContext)(I),f=null!==h&&h===s.panelId,y=(0,o.useRef)(null),b=(0,u.T)(y,n,f?null:s.buttonRef);(0,o.useEffect)(()=>{if(!f)return l({type:2,buttonId:a}),()=>{l({type:2,buttonId:null})}},[a,l,f]);let v=(0,x.z)(t=>{var n;if(f){if(1===s.disclosureState)return;switch(t.key){case p.R.Space:case p.R.Enter:t.preventDefault(),t.stopPropagation(),l({type:0}),null==(n=s.buttonRef.current)||n.focus()}}else switch(t.key){case p.R.Space:case p.R.Enter:t.preventDefault(),t.stopPropagation(),l({type:0})}}),j=(0,x.z)(t=>{t.key===p.R.Space&&t.preventDefault()}),k=(0,x.z)(n=>{var r;(0,m.P)(n.currentTarget)||t.disabled||(f?(l({type:0}),null==(r=s.buttonRef.current)||r.focus()):l({type:0}))}),E=(0,o.useMemo)(()=>({open:0===s.disclosureState}),[s]),C=(0,g.f)(t,y),T=f?{ref:b,type:C,onKeyDown:v,onClick:k}:{ref:b,id:a,type:C,"aria-expanded":t.disabled?void 0:0===s.disclosureState,"aria-controls":s.linkedPanel?s.panelId:void 0,onKeyDown:v,onKeyUp:j,onClick:k};return(0,c.sY)({ourProps:T,theirProps:i,slot:E,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,c.yV)(function(t,n){let r=(0,d.M)(),{id:a=`headlessui-disclosure-panel-${r}`,...i}=t,[s,l]=M("Disclosure.Panel"),{close:p}=function w(t){let n=(0,o.useContext)(E);if(null===n){let n=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,w),n}return n}("Disclosure.Panel"),m=(0,u.T)(n,s.panelRef,t=>{y(()=>l({type:t?4:5}))});(0,o.useEffect)(()=>(l({type:3,panelId:a}),()=>{l({type:3,panelId:null})}),[a,l]);let g=(0,h.oJ)(),f=null!==g?(g&h.ZM.Open)===h.ZM.Open:0===s.disclosureState,x=(0,o.useMemo)(()=>({open:0===s.disclosureState,close:p}),[s,p]);return o.createElement(I.Provider,{value:s.panelId},(0,c.sY)({ourProps:{ref:m,id:a},theirProps:i,slot:x,defaultTag:"div",features:T,visible:f,name:"Disclosure.Panel"}))})})},43863:function(t,n,r){"use strict";var a=r(67294);let i=a.forwardRef(function({title:t,titleId:n,...r},i){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":n},r),t?a.createElement("title",{id:n},t):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 12H6"}))});n.Z=i},76878:function(t,n,r){"use strict";var a=r(67294);let i=a.forwardRef(function({title:t,titleId:n,...r},i){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":n},r),t?a.createElement("title",{id:n},t):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"}))});n.Z=i},44077:function(t,n,r){"use strict";var a=r(67294);let i=a.forwardRef(function({title:t,titleId:n,...r},i){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
2currentColor","aria-hidden":"true",ref:i,"aria-labelledby":n},r),t?a.createElement("title",{id:n},t):null,a.createElement("path",{fillRule:"evenodd",d:"M8.25 3.75H19.5a.75.75 0 01.75.75v11.25a.75.75 0 01-1.5 0V6.31L5.03 20.03a.75.75 0 01-1.06-1.06L17.69 5.25H8.25a.75.75 0 010-1.5z",clipRule:"evenodd"}))});n.Z=i},62212:function(t,n,r){"use strict";r.d(n,{Nc:function(){return m}});var a,i=r(67294),s=r(85893),o=(0,i.forwardRef)(({as:t="div",...n},r)=>(0,s.jsx)(t,{...n,ref:r})),l="cf-turnstile-script",c="onloadTurnstileCallback",D=t=>!!document.getElementById(t),q=({render:t="explicit",onLoadCallbackName:n=c,scriptOptions:{nonce:r="",defer:a=!0,async:i=!0,id:s="",appendTo:o,onError:u,crossOrigin:d=""}={}})=>{let p=s||l;if(D(p))return;let m=document.createElement("script");m.id=p,m.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${n}&render=${t}`,document.querySelector(`script[src="${m.src}"]`)||(m.defer=!!a,m.async=!!i,r&&(m.nonce=r),d&&(m.crossOrigin=d),u&&(m.onerror=u,delete window[n]),("body"===o?document.body:document.getElementsByTagName("head")[0]).appendChild(m))},u={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},d="unloaded",p=new Promise((t,n)=>{a={resolve:t,reject:n},"ready"===d&&t(void 0)}),me=(t=c)=>("unloaded"===d&&(d="loading",window[t]=()=>{a.resolve(),d="ready",delete window[t]}),p),m=(0,i.forwardRef)((t,n)=>{let{scriptOptions:r,options:a={},siteKey:p,onWidgetLoad:m,onSuccess:h,onExpire:g,onError:f,onBeforeInteractive:x,onAfterInteractive:y,onUnsupported:b,onTimeout:v,onLoadScript:j,id:k,style:E,as:I="div",injectScript:C=!0,...T}=t,N=a.size,A=(0,i.useCallback)(()=>typeof N>"u"?{}:"execute"===a.execution?u.invisible:"interaction-only"===a.appearance?u.interactionOnly:u[N],[a.execution,N,a.appearance]),[S,P]=(0,i.useState)(A()),R=(0,i.useRef)(null),[O,B]=(0,i.useState)(!1),L=(0,i.useRef)(),F=(0,i.useRef)(!1),z=k||"cf-turnstile",G=r?.id||l,_=function(t=l){let[n,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=()=>{D(t)&&r(!0)},n=new MutationObserver(e);return n.observe(document,{childList:!0,subtree:!0}),e(),()=>{n.disconnect()}},[t]),n}(G),W=r?.onLoadCallbackName||c,$=a.appearance||"always",Z=(0,i.useMemo)(()=>({sitekey:p,action:a.action,cData:a.cData,callback:t=>{F.current=!0,h?.(t)},"error-callback":f,"expired-callback":g,"before-interactive-callback":x,"after-interactive-callback":y,"unsupported-callback":b,theme:a.theme||"auto",language:a.language||"auto",tabindex:a.tabIndex,"response-field":a.responseField,"response-field-name":a.responseFieldName,size:function(t){if("invisible"!==t&&"interactionOnly"!==t)return t}(N),retry:a.retry||"auto","retry-interval":a.retryInterval||8e3,"refresh-expired":a.refreshExpired||"auto","refresh-timeout":a.refreshTimeout||"auto",execution:a.execution||"render",appearance:a.appearance||"always","feedback-enabled":a.feedbackEnabled||!0,"timeout-callback":v}),[a.action,a.appearance,a.cData,a.execution,a.language,a.refreshExpired,a.responseField,a.responseFieldName,a.retry,a.retryInterval,a.tabIndex,a.theme,a.feedbackEnabled,a.refreshTimeout,p,N]),J=(0,i.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,i.useEffect)(function(){C&&!O&&q({onLoadCallbackName:W,scriptOptions:{...r,id:G}})},[C,O,r,G]),(0,i.useEffect)(function(){"ready"!==d&&me(W).then(()=>B(!0)).catch(console.error)},[]),(0,i.useEffect)(function(){if(!R.current||!O)return;let t=!1;return(async()=>{if(t||!R.current)return;let n=window.turnstile.render(R.current,Z);L.current=n,L.current&&m?.(L.current)})(),()=>{t=!0,L.current&&(window.turnstile.remove(L.current),F.current=!1)}},[z,O,Z]),(0,i.useImperativeHandle)(n,()=>{let{turnstile:t}=window;return{getResponse(){if(!t?.getResponse||!L.current||!J()){console.warn("Turnstile has not been loaded");return}return t.getResponse(L.current)},getResponsePromise:async(t=3e4,n=100)=>new Promise((r,a)=>{let i,H=async()=>{if(F.current&&window.turnstile&&L.current)try{let t=window.turnstile.getResponse(L.current);return i&&clearTimeout(i),t?r(t):a(Error("No response received"))}catch(t){return i&&clearTimeout(i),console.warn("Failed to get response",t),a(Error("Failed to get response"))}i||(i=setTimeout(()=>{i&&clearTimeout(i),a(Error("Timeout"))},t)),await new Promise(t=>setTimeout(t,n)),await H()};H()}),reset(){if(!t?.reset||!L.current||!J()){console.warn("Turnstile has not been loaded");return}"execute"===a.execution&&P(u.invisible);try{F.current=!1,t.reset(L.current)}catch(t){console.warn(`Failed to reset Turnstile widget ${L}`,t)}},remove(){if(!t?.remove||!L.current||!J()){console.warn("Turnstile has not been loaded");return}P(u.invisible),F.current=!1,t.remove(L.current),L.current=null}
2,render(){if(!t?.render||!R.current||!J()||L.current){console.warn("Turnstile has not been loaded or container not found");return}let n=t.render(R.current,Z);return L.current=n,L.current&&m?.(L.current),"execute"!==a.execution&&P(N?u[N]:{}),n},execute(){if("execute"!==a.execution){console.warn('Execution mode is not set to "execute"');return}if(!t?.execute||!R.current||!L.current||!J()){console.warn("Turnstile has not been loaded or container not found");return}t.execute(R.current,Z),P(N?u[N]:{})},isExpired:()=>t?.isExpired&&L.current&&J()?t.isExpired(L.current):(console.warn("Turnstile has not been loaded"),!1)}},[L,a.execution,N,Z,R,J,O,m]),(0,i.useEffect)(()=>{_&&!O&&window.turnstile&&B(!0)},[O,_]),(0,i.useEffect)(()=>{P(A())},[a.execution,N,$]),(0,i.useEffect)(()=>{_&&"function"==typeof j&&j()},[_]),(0,s.jsx)(o,{ref:R,as:I,id:z,style:{...S,...E},...T})});m.displayName="Turnstile"}},function(t){t.O(0,[9031,2962,364,9610,9774,2888,179],function(){return t(t.s=30268)}),_N_E=t.O()}]);

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.