1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96892,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],96892)},929272,e=>{"use strict";let t=(0,e.i(456420).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["Square",0,t],929272)},881149,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["GradientSpinner",0,function({className:e}){return(0,t.jsxs)("span",{"aria-hidden":!0,className:(0,r.cn)("relative inline-block size-4 shrink-0 overflow-hidden rounded-full","bg-[linear-gradient(135deg,#ffd6cf_0%,#fbecac_45%,#cfedd4_100%)]",e),children:[(0,t.jsx)("span",{className:"absolute -inset-1 animate-liquid-slow bg-[radial-gradient(circle_at_35%_35%,#c7ddf9_0%,transparent_62%)]"}),(0,t.jsx)("span",{className:"absolute -inset-1 animate-liquid-fast bg-[radial-gradient(circle_at_62%_58%,#ebd0f4_0%,transparent_60%)]"})]})},"GradientSweep",0,function({className:e,onDone:a}){return(0,t.jsx)("div",{"aria-hidden":!0,className:(0,r.cn)("pointer-events-none absolute inset-0 overflow-hidden",e),children:(0,t.jsx)("div",{onAnimationEnd:a,className:"animate-gradient-sweep absolute inset-y-0 left-0 w-full"})})}])},765982,446181,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(96892),s=e.i(632781),n=e.i(929272),i=e.i(975157),o=e.i(519455),l=e.i(881149);function c({text:e,className:a}){let[s,n]=(0,r.useState)({cur:e,prev:null,gen:0});return(0,r.useEffect)(()=>{n(t=>e===t.cur?t:{cur:e,prev:t.cur,gen:t.gen+1})},[e]),(0,t.jsxs)("span",{"aria-hidden":!0,className:(0,i.cn)("pointer-events-none absolute grid grid-cols-[100%] select-none text-start text-content-tertiary",a),children:[null!==s.prev&&(0,t.jsx)("span",{className:"animate-placeholder-out truncate [grid-area:1/1] motion-reduce:hidden",children:s.prev},`out-${s.gen}`),(0,t.jsx)("span",{className:(0,i.cn)("truncate [grid-area:1/1]",s.gen>0&&"animate-placeholder-in motion-reduce:animate-none"),children:s.cur},`in-${s.gen}`)]})}e.s(["RotatingPlaceholder",0,c],446181),2e3.toLocaleString(),e.s(["PromptInput",0,function({value:e,onChange:d,onSubmit:u,placeholder:f,disabled:m,loading:p,onStop:h,autoFocus:x,focusSignal:g,size:b="lg",submitAriaLabel:v="Send",className:w}){let S="lg"===b,[y,j]=r.useState(!1),_=r.useRef(0),N=r.useRef(null);return r.useEffect(()=>{x&&(N.current?.focus(),j(!0))},[x]),r.useEffect(()=>{g&&(N.current?.focus(),j(!0))},[g]),r.useLayoutEffect(()=>{let t=N.current;if(t){if(!e){t.style.height="";return}t.style.height="0px",t.style.height=`${t.scrollHeight}px`}},[e]),(0,t.jsxs)("div",{className:(0,i.cn)("relative",w),children:[(0,t.jsx)("textarea",{ref:N,value:e,onChange:e=>d(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),u())},onPointerDown:()=>{_.current=Date.now()},onFocus:()=>{Date.now()-_.current<150&&j(!0)},rows:1,maxLength:2e3,disabled:m,placeholder:f,className:(0,i.cn)("block w-full resize-none bg-surface-page text-base outline-none transition-shadow placeholder:text-transparent disabled:opacity-60 md:text-sm",!e&&"overflow-hidden",S?"h-15 max-h-48 rounded-[30px] py-[18px] pl-6 pr-16 shadow-card focus-visible:shadow-lift md:h-14 md:rounded-[28px]":"h-12 max-h-40 rounded-[24px] py-3 pl-4 pr-12 ring ring-border-subtle shadow-card focus-visible:shadow-lift md:h-11 md:rounded-[22px]")}),!e&&f&&(0,t.jsx)(c,{text:f,className:(0,i.cn)("inset-0 text-base md:text-sm",S?"py-[18px] pl-6 pr-16":"py-3 pl-4 pr-12")}),y&&(0,t.jsx)(l.GradientSweep,{className:S?"rounded-[30px] md:rounded-[28px]":"rounded-[24px] md:rounded-[22px]",onDone:()=>j(!1)}),(0,t.jsx)(o.Button,{size:S?"icon":"icon-sm","aria-label":p&&h?"Stop":v,onClick:p&&h?h:u,disabled:(!p||!h)&&(m||p||!e.trim()),className:(0,i.cn)("absolute",S?"bottom-2.5 right-2.5 size-10 md:bottom-2 md:right-2":"bottom-2 right-2 md:bottom-1.5 md:right-1.5"),children:p&&h?(0,t.jsx)(n.Square,{className:(0,i.cn)(S?"size-3.5":"size-3","fill-current"),strokeWidth:0}):p?(0,t.jsx)(s.Loader2,{className:(0,i.cn)(S?"size-5":"size-4","animate-spin")}):(0,t.jsx)(a.ArrowUp,{className:S?"size-5":"size-4"})})]})}],765982)},870402,e=>{"use strict";var t=e.i(271645);function r(e){try{return window.sessionStorage.getItem(e)??""}catch{return""}}function a(e,t){try{t?window.sessionStorage.setItem(e,t):window.sessionStorage.removeItem(e)}catch{}}e.s(["DESCRIBE_FORM_DRAFT_KEY",0,"nf-describe-form-draft","loadSessionDraft",0,r,"saveSessionDraft",0,a,"useSessionDraft",0,function(e){let[s,n]=(0,t.useState)("");return(0,t.useEffect)(()=>{let t=r(e);t&&n(e=>e||t)},[e]),[s,function(t){n(t),a(e,t)}]}])},461966,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(271645),s=e.i(618566),n=e.i(846696),i=e.i(519455),o=e.i(765982),l=e.i(238967),c=e.i(95187);let d=(0,c.createServerReference)("401c867679d7f8bbbbd5d8dad373fe3f8d96b639cc",c.callServer,void 0,c.findSourceMapURL,"generateFormAction");var u=e.i(870402);let f=["A job application form to hire a software engineer","An RSVP form for a wedding","A feedback survey to improve my coffee shop","A lead form to book demos for my SaaS","A signup form to grow a weekly newsletter"],m=["Contact form","Customer feedback survey","Event RSVP","Job application","Newsletter signup","Bug report"];function p(e){(0,u.saveSessionDraft)(u.DESCRIBE_FORM_DRAFT_KEY,e)}e.s(["PromptHero",0,function({isAuthed:e,suggestions:c=!0}){let h=(0,s.useRouter)(),x=(0,l.useAuthed)(),g=e??x??!1,[b,v]=(0,a.useState)(""),[w,S]=(0,a.useState)(0),[y,j]=(0,a.useTransition)();function _(e=b){let t=e.trim();t&&!y&&(p(""),g?j(async()=>{let e=await d(t);e?.error&&(p(t),n.toast.error(e.error))}):h.push("/auth/register?prompt="+encodeURIComponent(t)))}return(0,a.useEffect)(()=>{let e=(0,u.loadSessionDraft)(u.DESCRIBE_FORM_DRAFT_KEY);e&&v(t=>t||e)},[]),(0,a.useEffect)(()=>
1{if(b)return;let e=setInterval(()=>{S(e=>(e+1)%f.length)},5e3);return()=>clearInterval(e)},[b]),(0,t.jsxs)("div",{className:"relative mx-auto w-full max-w-2xl",children:[(0,t.jsx)(o.PromptInput,{size:"lg",value:b,onChange:function(e){v(e),p(e)},onSubmit:()=>_(),placeholder:`e.g. ${f[w]}`,disabled:y,loading:y,submitAriaLabel:"Build form"}),c&&(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap justify-center gap-2",children:[m.map(e=>(0,t.jsx)(i.Button,{type:"button",variant:"white",size:"sm",onClick:()=>_(e),disabled:y,className:"px-3.5 text-xs",children:e},e)),(0,t.jsx)(i.Button,{asChild:!0,variant:"white",size:"sm",className:"px-3.5 text-xs",children:(0,t.jsx)(r.default,{href:"/templates",children:"See all templates"})})]})]})}],461966)},31026,e=>{e.v(t=>Promise.all(["static/chunks/1yv07b9clkx5e.js"].map(t=>e.l(t))).then(()=>t(208146)))}]);
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.