PageSourceSearch

https://www.ailabtools.com/ai-editor/_next/static/chunks/5382.1c681533fa6d038a.js

js ailabtools.com collected 2026-10-04 00:14:03 UTC 11,043 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5382],{95382:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var a=r(823798),n=r(216663),o=r(651648),l=r(87601),i=r(590184),s=r(287339),d=r(274982);let c=()=>{let{showVerifyEmailModal:e,setShowVerifyEmailModal:t}=(0,l.u)(e=>({showVerifyEmailModal:e.showVerifyEmailModal,setShowVerifyEmailModal:e.setShowVerifyEmailModal}),d.x),{t:r}=(0,i.Bd)();return(0,a.jsx)(o.A.Root,{open:e,onOpenChange:t,children:(0,a.jsxs)(o.A.Portal,{children:[(0,a.jsx)(o.A.Overlay,{}),(0,a.jsxs)(o.A.Content,{onEscapeKeyDown:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),className:"!max-w-[400px] rounded-xl overflow-y-auto",children:[(0,a.jsx)("div",{className:"absolute top-0 inset-x-0 h-32 bg-gradient-to-b from-primary-200/80 to-transparent"}),(0,a.jsxs)("div",{className:"relative flex flex-col items-center gap-6 pt-6 px-6 pb-8 text-center",children:[(0,a.jsx)("div",{className:"p-4 bg-primary-50 text-primary-500 rounded-full",children:(0,a.jsx)(s.maD,{className:"text-3xl"})}),(0,a.jsx)(o.A.Title,{className:"!border-none !p-0 font-medium",children:r("modal.verifyEmail.title")}),(0,a.jsx)(o.A.Description,{className:"!p-0 text-sm text-gray-500",children:r("modal.verifyEmail.desc")}),(0,a.jsx)("div",{className:"w-full flex flex-col gap-2 text-sm",children:(0,a.jsx)(n.jn,{type:"button",onClick:()=>t(!1),children:r("modal.understood")})})]})]})]})})}},216663:(e,t,r)=>{r.d(t,{CJ:()=>y,Hv:()=>m,jn:()=>u,tA:()=>p,tU:()=>f});var a=r(823798),n=r(46001),o=r.n(n),l=r(621462),i=r(590184),s=r(287339);let d=e=>e&&(0,a.jsx)("span",{className:"flex items-center justify-center",children:e}),c=(e,t,r)=>(t&&(r.onClick&&(r.onClick=null),r.href&&(r.href="#",r.onClick=e=>e.preventDefault())),"button"===e)?{disabled:t,...r}:t?{"aria-disabled":!0,tabIndex:-1,...r}:r,u=(0,l.forwardRef)((e,t)=>{let{as:r="button",icon:n,className:l,children:i,disabled:s=!1,...u}=e;return(0,a.jsxs)(r,{ref:t,className:o()("inline-flex items-center justify-center gap-2 px-4 py-2 bg-primary-500 text-white rounded-lg shadow-lg",s?"opacity-60 cursor-not-allowed":"transition duration-200 ease-out hover:-translate-y-0.5 active:translate-y-0 hover:shadow-lg active:shadow-inner hover:bg-primary-500/95 active:bg-primary-600",l),...c(r,s,u),children:[d(n),i]})});u.displayName="PrimaryButton";let p=(0,l.forwardRef)((e,t)=>{let{as:r="button",icon:n,className:l,children:i,disabled:s=!1,...u}=e;return(0,a.jsxs)(r,{ref:t,className:o()("inline-flex items-center justify-center gap-2 px-4 py-2 bg-white border border-primary-500 text-primary-500 rounded-lg shadow-lg",s?"opacity-60 cursor-not-allowed":"transition ease-out duration-200 hover:-translate-y-0.5 active:translate-y-0 hover:shadow-lg active:shadow-inner hover:bg-primary-50 active:bg-primary-100 hover:border-primary-500/95 active:border-primary-600 hover:text-primary-500/95 active:text-primary-600",l),...c(r,s,u),children:[d(n),i]})});p.displayName="SecondaryButton";let f=(0,l.forwardRef)((e,t)=>{let{as:r="button",icon:n,className:l,children:i,disabled:s=!1,...u}=e;return(0,a.jsxs)(r,{ref:t,className:o()("inline-flex items-center justify-center gap-2 px-4 py-2 bg-gradient-to-r from-primary-500 to-violet-500 text-white rounded-lg shadow-lg",s?"opacity-60 cursor-not-allowed":"transition duration-200 ease-out hover:-translate-y-0.5 active:translate-y-0 hover:shadow-xl active:shadow-inner hover:from-primary-600 hover:to-violet-600",l),...c(r,s,u),children:[d(n),i]})});f.displayName="GradientPrimaryButton";let m=(0,l.forwardRef)((e,t)=>{let{as:r="button",icon:n,className:l,children:i,disabled:s=!1,...u}=e;return(0,a.jsxs)(r,{ref:t,className:o()("inline-flex items-center justify-center gap-2 px-4 py-2 bg-white rounded-lg shadow-lg border border-gray-200",s?"opacity-60 cursor-not-allowed":"transition duration-200 ease-out hover:-translate-y-0.5 active:translate-y-0 hover:shadow-xl hover:bg-gray-50 hover:border-slate-300",l),...c(r,s,u),children:[d(n),i]})});m.displayName="GradientSecondaryButton";let y=e=>{let{disabled:t,onClick:r}=e,{t:n}=(0,i.Bd)();return(0,a.jsx)(u,{className:"w-full",icon:(0,a.jsx)(s.EG0,{}),type:"button",disabled:t,onClick:r,children:(0,a.jsx)("span",{children:n("common.generate")})})}},302808:(e,t,r)=>{r.d(t,{UC:()=>er,VY:()=>en,ZL:()=>ee,bL:()=>Q,bm:()=>eo,hE:()=>ea,hJ:()=>et,l9:()=>X});var a=r(621462),n=r(604180),o=r(543938),l=r(411170),i=r(943797),s=r(544077),d=r(952269),c=r(871965),u=r(746953),p=r(427745),f=r(532198),m=r(735691),y=r(70814),x=r(860644),h=r(762582),g=r(823798),v="Dialog",[b,w]=(0,l.A)(v),[j,N]=b(v),C=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:l,modal:d=!0}=e,c=a.useRef(null),u=a.useRef(null),[p,f]=(0,s.i)({prop:n,defaultProp:o??!1,onChange:l,caller:v});return(0,g.jsx)(j,{scope:t,triggerRef:c,contentRef:u,contentId:(0,i.B)(),titleId:(0,i.B)(),descriptionId:(0,i.B)(),open:p,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(e=>!e),[f]),modal:d,children:r})};C.displayName=v;var D="DialogTrigger",R=a.forwardRef((e,t)=>
1{let{__scopeDialog:r,...a}=e,l=N(D,r),i=(0,o.s)(t,l.triggerRef);return(0,g.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":J(l.open),...a,ref:i,onClick:(0,n.mK)(e.onClick,l.onOpenToggle)})});R.displayName=D;var E="DialogPortal",[I,O]=b(E,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,l=N(E,t);return(0,g.jsx)(I,{scope:t,forceMount:r,children:a.Children.map(n,e=>(0,g.jsx)(p.C,{present:r||l.open,children:(0,g.jsx)(u.Z,{asChild:!0,container:o,children:e})}))})};A.displayName=E;var _="DialogOverlay",k=a.forwardRef((e,t)=>{let r=O(_,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,o=N(_,e.__scopeDialog);return o.modal?(0,g.jsx)(p.C,{present:a||o.open,children:(0,g.jsx)(B,{...n,ref:t})}):null});k.displayName=_;var F=(0,h.TL)("DialogOverlay.RemoveScroll"),B=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=N(_,r);return(0,g.jsx)(y.A,{as:F,allowPinchZoom:!0,shards:[n.contentRef],children:(0,g.jsx)(f.sG.div,{"data-state":J(n.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),P="DialogContent",M=a.forwardRef((e,t)=>{let r=O(P,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,o=N(P,e.__scopeDialog);return(0,g.jsx)(p.C,{present:a||o.open,children:o.modal?(0,g.jsx)(V,{...n,ref:t}):(0,g.jsx)(G,{...n,ref:t})})});M.displayName=P;var V=a.forwardRef((e,t)=>{let r=N(P,e.__scopeDialog),l=a.useRef(null),i=(0,o.s)(t,r.contentRef,l);return a.useEffect(()=>{let e=l.current;if(e)return(0,x.Eq)(e)},[]),(0,g.jsx)(K,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,n.mK)(e.onFocusOutside,e=>e.preventDefault())})}),G=a.forwardRef((e,t)=>{let r=N(P,e.__scopeDialog),n=a.useRef(!1),o=a.useRef(!1);return(0,g.jsx)(K,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),K=a.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:l,onCloseAutoFocus:i,...s}=e,u=N(P,r),p=a.useRef(null),f=(0,o.s)(t,p);return(0,m.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:l,onUnmountAutoFocus:i,children:(0,g.jsx)(d.qW,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":J(u.open),...s,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(H,{titleId:u.titleId}),(0,g.jsx)(z,{contentRef:p,descriptionId:u.descriptionId})]})]})}),S="DialogTitle",T=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=N(S,r);return(0,g.jsx)(f.sG.h2,{id:n.titleId,...a,ref:t})});T.displayName=S;var L="DialogDescription",U=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=N(L,r);return(0,g.jsx)(f.sG.p,{id:n.descriptionId,...a,ref:t})});U.displayName=L;var $="DialogClose",q=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=N($,r);return(0,g.jsx)(f.sG.button,{type:"button",...a,ref:t,onClick:(0,n.mK)(e.onClick,()=>o.onOpenChange(!1))})});function J(e){return e?"open":"closed"}q.displayName=$;var W="DialogTitleWarning",[Z,Y]=(0,l.q)(W,{contentName:P,titleName:S,docsSlug:"dialog"}),H=({titleId:e})=>{let t=Y(W),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},z=({contentRef:e,descriptionId:t})=>{let r=Y("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return a.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null}
5,Q=C,X=R,ee=A,et=k,er=M,ea=T,en=U,eo=q},651648:(e,t,r)=>{r.d(t,{A:()=>v});var a=r(823798),n=r(302808),o=r(46001),l=r.n(o),i=r(621462),s=r(590184),d=r(287339);let c=n.bL,u=n.l9,p=n.ZL,f=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e;return(0,a.jsx)(n.hJ,{ref:t,className:l()("fixed inset-0 bg-black/50",r),...o})});f.displayName=n.hJ.displayName;let m=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e;return(0,a.jsx)(n.UC,{ref:t,className:l()("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 max-w-[90vw] lg:max-w-[50vw] min-w-[90vw] lg:min-w-96 max-h-[85dvh] overflow-hidden bg-white rounded-lg outline-none",r),...o})});m.displayName=n.UC.displayName;let y=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e;return(0,a.jsx)(n.hE,{ref:t,className:l()("flex justify-between gap-2 px-6 py-4 text-lg border-b border-gray-200",r),...o})});y.displayName=n.hE.displayName;let x=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e;return(0,a.jsx)(n.VY,{ref:t,className:l()("px-6 py-4",r),...o})});x.displayName=n.VY.displayName;let h=n.bm,g=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e,{t:l}=(0,s.Bd)();return(0,a.jsx)(n.bm,{asChild:!0,ref:t,className:r,...o,children:(0,a.jsx)("div",{children:(0,a.jsx)("button",{type:"button","aria-label":l("common.close"),className:"text-xl group outline-none",children:(0,a.jsx)(d.V2x,{"aria-hidden":"true",className:"transition duration-200 group-hover:text-primary-500"})})})})});g.displayName=n.bm.displayName;let v={Root:c,Trigger:u,Portal:p,Overlay:f,Content:m,Title:y,Description:x,Close:h,FaXmarkClose:g}}}]);

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.