1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,991918,e=>{"use strict";let t,n,r;var i=e.i(271645),a=e.i(820783),l=e.i(843476),o=Symbol.for("react.lazy"),s=i[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===o&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=((r=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(d(n)&&"function"==typeof s&&(n=s(n._payload)),i.isValidElement(n)){var l;let e,o,s=(l=n,(o=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(o=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),d=function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(d.ref=t?(0,a.composeRefs)(t,s):s),i.cloneElement(n,d)}return i.Children.count(n)>1?i.Children.only(null):null})).displayName="Slot.SlotClone",t=r,(n=i.forwardRef((e,n)=>{let{children:r,...a}=e;d(r)&&"function"==typeof s&&(r=s(r._payload));let o=i.Children.toArray(r),c=o.find(f);if(c){let e=c.props.children,r=o.map(t=>t!==c?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,l.jsx)(t,{...a,ref:n,children:r})})).displayName="Slot.Slot",n),u=Symbol("radix.slottable");function f(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}e.s(["Slot",0,c])},909856,e=>{"use strict";var t=e.i(843476),n=e.i(551360);e.s(["SexyBoarder",0,function({children:e,className:r,offset:i=10}){return(0,t.jsxs)("div",{className:(0,n.cn)("relative flex overflow-hidden rounded-md p-[2px]",r),children:[(0,t.jsx)("div",{className:"relative z-10 w-full",children:e}),(0,t.jsx)("div",{style:{bottom:`-${i}px`,left:`-${i}px`,right:`-${i}px`,top:`-${i}px`},className:"absolute m-auto aspect-square animate-spin-slow rounded-full bg-gradient-to-r from-[#5ED4FF] via-[#D13C5F] to-[#F98324]"})]})}])},519455,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(225913),i=e.i(551360),a=e.i(991918),l=e.i(909856);let o=(0,r.cva)("w-fit inline-flex items-center justify-center whitespace-nowrap text-sm rounded-md font-alt font-medium transition-colors disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-zinc-900 text-zinc-300 hover:bg-zinc-800",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",orange:"bg-orange-500 hover:bg-orange-400",sexy:"transition-all bg-black hover:bg-opacity-0"},size:{default:"h-10 px-4",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),s=n.forwardRef(({className:e,variant:n,size:r,asChild:l=!1,...s},c)=>{let u=l?a.Slot:"button";return(0,t.jsx)(d,{variant:n,className:(0,i.cn)("w-fit",e),children:(0,t.jsx)(u,{className:(0,i.cn)(o({variant:n,size:r,className:e})),ref:c,...s})})});function d({variant:e,className:n,children:r}){return"sexy"===e?(0,t.jsx)(l.SexyBoarder,{className:n,children:r}):(0,t.jsx)(t.Fragment,{children:r})}s.displayName="Button",e.s(["Button",0,s])},794909,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return d}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(555682),l=e.r(908927),o=e.r(605500),s=a._(e.r(1948));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qual
1ities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=o.Image},657688,(e,t,n)=>{t.exports=e.r(794909)},793479,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(551360);let i=n.forwardRef(({className:e,type:n,...i},a)=>(0,t.jsx)("input",{type:n,className:(0,r.cn)("flex h-9 w-full rounded-md bg-black px-3 py-1 text-sm transition-colors placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...i}));i.displayName="Input",e.s(["Input",0,i])},443844,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(657688),i=e.i(522016),a=e.i(369620),l=e.i(519455),o=e.i(981140),s=e.i(30030),d=e.i(369340),c=e.i(934620),u=e.i(820783),f=e.i(248425),p=e.i(296626),m=e.i(610772),g="Collapsible",[x,b]=(0,s.createContextScope)(g),[h,y]=x(g),v=n.forwardRef((e,r)=>{let{__scopeCollapsible:i,open:a,defaultOpen:l,disabled:o,onOpenChange:s,...c}=e,[u,p]=(0,d.useControllableState)({prop:a,defaultProp:l??!1,onChange:s,caller:g});return(0,t.jsx)(h,{scope:i,disabled:o,contentId:(0,m.useId)(),open:u,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),children:(0,t.jsx)(f.Primitive.div,{"data-state":R(u),"data-disabled":o?"":void 0,...c,ref:r})})});v.displayName=g;var j="CollapsibleTrigger",w=n.forwardRef((e,n)=>{let{__scopeCollapsible:r,...i}=e,a=y(j,r);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":R(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...i,ref:n,onClick:(0,o.composeEventHandlers)(e.onClick,a.onOpenToggle)})});w.displayName=j;var N="CollapsibleContent",C=n.forwardRef((e,n)=>{let{forceMount:r,...i}=e,a=y(N,e.__scopeCollapsible);return(0,t.jsx)(p.Presence,{present:r||a.open,children:({present:e})=>(0,t.jsx)(S,{...i,ref:n,present:e})})});C.displayName=N;var S=n.forwardRef((e,r)=>{let{__scopeCollapsible:i,present:a,children:l,...o}=e,s=y(N,i),[d,p]=n.useState(a),m=n.useRef(null),g=(0,u.useComposedRefs)(r,m),x=n.useRef(0),b=x.current,h=n.useRef(0),v=h.current,j=s.open||d,w=n.useRef(j),C=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.useLayoutEffect)(()=>{let e=m.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();x.current=t.height,h.current=t.width,w.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),p(a)}},[s.open,a]),(0,t.jsx)(f.Primitive.div,{"data-state":R(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!j,...o,ref:g,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:j&&l})});function R(e){return e?"open":"closed"}var k=e.i(793479),P=e.i(922140);let z={login:"Login to xtales.ai",signup:"Join xtales.ai and start generating banners for free"};e.s(["AuthUI",0,function({mode:e,signInWithOAuth:o,signInWithEmail:s}){let[d,c]=(0,n.useState)(!1),[u,f]=(0,n.useState)(!1);async function p(e){e.preventDefault(),c(!0);let t=e.target,n=t.email.value,r=await s(n);r?.error?(0,P.toast)({variant:"destructive",description:"An error occurred while authenticating. Please try again."}):(0,P.toast)({description:`To continue, click the link in the email sent to: ${n}`}),t.reset(),c(!1)}async function m(e){c(!0);let t=await o(e);t?.error&&((0,P.toast)({variant:"destructive",description:"An error occurred while authenticating. Please try again."}),c(!1))}return(0,t.jsxs)("section",{className:"mt-16 flex w-full flex-col gap-16 rounded-lg bg-black p-10 px-4 text-center",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(r.default,{src:"/logo.png",width:80,height:80,alt:"",className:"m-auto"}),(0,t.jsx)("h1",{className:"text-lg",children:z[e]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("button",{className:"flex items-center justify-center gap-2 rounded-md bg-cyan-500 py-4 font-medium text-black transition-all hover:bg-cyan-400 disabled:bg-neutral-700",onClick:()=>m("google"),disabled:d,children:[(0,t.jsx)(a.IoLogoGoogle,{size:20}),"Continue with Google"]}),(0,t.jsxs)("button",{className:"flex items-center justify-center gap-2 rounded-md bg-fuchsia-500 py-4 font-medium text-black transition-all hover:bg-fuchsia-400 disabled:bg-neutral-700",onClick:()=>m("github"),disabled:d,children:[(0,t.jsx)(a.IoLogoGithub,{size:20}),"Continue with GitHub"]}),(0,t.jsxs)(v,{open:u,onOpenChange:f,children:[(0,t.jsx)(w,{asChild:!0,children:(0,t.jsx)("button",{className:"text-neutral6 flex w-full items-center justify-center gap-2 rounded-md bg-zinc-900 py-4 font-medium transition-all hover:bg-zinc-800 disabled:bg-neutral-700 disabled:text-black",disabled:d,children:"Continue with Email"})}),(0,t.jsx)(C,{children:(0,t.jsx)("div",{className:"mt-[-2px] w-full rounded-b-md bg-zinc-900 p-8",children:(0,t.jsxs)("form",{onSubmit:p,children:[(0,t.jsx)(k.Input,{type:"email",name:"email",placeholder:"Enter your email","aria-label":"Enter your email",autoFocus:!0}),(0,t.jsxs)("div",{className:"mt-4 flex justify-end gap-2",children:[(0,t.jsx)(l.Button,{type:"button",onClick:()=>f(!1),children:"Cancel"}),(0,t.jsx)(l.Button,{variant:"secondary",type:"submit",children:"Submit"})]})]})})})]})]}),"signup"===e&&(0,t.jsxs)("span",{className:"text-neutral5 m-auto max-w-sm text-sm",children:["By clicking continue, you agree to our"," ",(0,t.jsx)(i.default,{href:"/terms",className:"underline",children:"Terms of Service"})," ","and"," ",(0,t.jsx)(i.default,{href:"/privacy",className:"underline",children:"Privacy Policy"}),"."]})]})}],443844)}]);
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.