PageSourceSearch

https://ayo.so/_next/static/chunks/pages/reset-9902c51410fb445c.js

js ayo.so collected 2026-10-03 21:35:30 UTC 14,081 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8711],{48715:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset",function(){return r(4677)}])},32479:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(52676),o=r(62255),s=r(18520);function l(){let{toggleSidebar:e,openMobile:t}=(0,o.Ap)();return(0,n.jsxs)("button",{onClick:function(){e()},className:(0,s.cn)("w-6 h-5 relative flex flex-col p-2 mt-1 items-center justify-center z-50 select-none"),children:[(0,n.jsx)("div",{className:(0,s.cn)("w-6 rounded h-0.5 duration-200 absolute top-0 bg-foreground",t?"rotate-45 mt-1.5":"")}),(0,n.jsx)("div",{className:(0,s.cn)("w-6 h-0.5 rounded duration-200 absolute top-0 bg-foreground",t?"-rotate-45 mt-1.5":"mt-1.5")}),(0,n.jsx)("div",{className:(0,s.cn)("w-6 h-0.5 mt-3 rounded duration-100 absolute top-0 bg-foreground",t?"opacity-0":"")})]})}},14343:(e,t,r)=>{"use strict";r.d(t,{b:()=>x});var n=r(52676),o=r(32479),s=r(42673),l=r(62255),a=r(31858),i=r(70388),c=r(90268),d=r.n(c);function u(){return(0,n.jsxs)(l.DD,{children:[(0,n.jsx)(l.$l,{className:"p-4",children:(0,n.jsx)(s.T,{})}),(0,n.jsx)(l.TZ,{children:(0,n.jsx)(l.w3,{children:(0,n.jsxs)(l.Hz,{children:[(0,n.jsx)(l.nO,{children:"Information"}),(0,n.jsxs)(l.Ks,{children:[(0,n.jsx)(l.LO,{children:(0,n.jsx)(l.bb,{asChild:!0,children:(0,n.jsxs)(d(),{href:"/pricing",children:[(0,n.jsx)(a.Z,{className:"mr-2 h-4 w-4"}),"Pricing"]})})}),(0,n.jsx)(l.LO,{children:(0,n.jsx)(l.bb,{asChild:!0,children:(0,n.jsxs)(d(),{href:"/help",children:[(0,n.jsx)(i.Z,{className:"mr-2 h-4 w-4"}),"Help"]})})})]})]})})}),(0,n.jsx)(l.ZW,{className:"p-4",children:(0,n.jsx)(d(),{className:"w-full bg-gradient-to-b duration-100 from-[#867FFF] to-indigo-600 active:scale-[98%] text-white font-extrabold py-4 px-6 rounded-2xl text-center",href:"/pricing",children:"Try Free"})})]})}var f=r(75271),p=r(72622);function x(e){let{children:t}=e,[r,s]=(0,f.useState)(!1);return(0,n.jsxs)(l.Hn,{open:p.tq&&r,onOpenChange:s,children:[(0,n.jsx)(u,{}),(0,n.jsx)(l.kV,{children:(0,n.jsxs)("main",{className:"flex flex-1 flex-col",children:[t,(0,n.jsx)("div",{className:"absolute top-4 right-4 lg:hidden z-50 pointer-events-auto",children:(0,n.jsx)(o.N,{})})]})})]})}x.hideFooter=!0},91963:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(52676),o=r(88146);let s=e=>{let{maxLength:t,value:r}=e;return r||(r=""),(0,n.jsxs)("div",{className:(0,o.A)(r.length>t?"text-red-600":"text-zinc-600","text-xs select-none"),children:[r.length,"/",t]})};var l=r(75271),a=r(28533);let i=e=>{let{className:t,errorClassName:r,errorText:i,name:c,placeholder:d,rules:u,title:f,titleClassName:p,type:x,leftContent:h,rightContent:m,hideRightContent:g,register:j,onChange:v,initialChars:b,disableCounter:y,textAreaHeight:w,...N}=e,C=(0,o.A)("block w-full rounded bg-black text-zinc-400 placeholder-zinc-500",N.disabled?"bg-gray-200 dark:bg-black dark:opacity-40":"","textarea"==N.inputType?"resize-none":"","textarea"===N.inputType?w||"overflow-auto":"",h?"rounded-l-none border-l-0":"",N.fontSize||"",N.textSize||"",N.noBorder?"border-0 border-transparent focus:border-transparent focus:ring-0 focus:outline-none":"border-zinc-700 border focus:ring-0 focus:outline-none",N.extraClasses||""),[k,D]=(0,l.useState)(null!=b?b:""),{watch:R}=(0,a.Gc)(),_="function"==typeof j?j(c,u):null,O=R(c);return(0,l.useEffect)(()=>{D(O)},[O]),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"flex flex-row items-center justify-between",children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{className:"block text-sm text-left text-zinc-400 ".concat(p),htmlFor:"input",children:f}),u&&u.maxLength&&!N.disabled&&!y?(0,n.jsx)(s,{maxLength:u.maxLength,value:k}):null]}):null}),(0,n.jsxs)("div",{className:"relative flex mt-1 shadow",children:[h?(0,n.jsx)("div",{className:"inline-flex items-center px-2 text-sm border rounded focus-none border-zinc-700 bg-opacity-50 text-zinc-500",children:h}):null,"textarea"==N.inputType?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("textarea",{..._,...N,placeholder:d,className:C,onChange:v||(null==_?void 0:_.onChange)})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("input",{..._,...N,placeholder:d,onChange:v||(null==_?void 0:_.onCh
1ange),type:x||"text",className:C})}),m&&!g?(0,n.jsx)("span",{className:"inline-flex text-sm items-center px-2 ml-0.5 focus-none bg-gray-800 bg-opacity-50 text-neutral-500 rounded",children:m}):null]}),N.noError?null:(0,n.jsx)("p",{className:"text-xs text-left m-0 mt-1 text-red-600 ".concat(r),children:i||""})]})}},88146:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}r.d(t,{A:()=>n})},70388:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(42490).Z)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},96383:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(42490).Z)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},31858:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(42490).Z)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},63638:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(0,r(42490).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4677:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(52676),o=r(14343),s=r(91963),l=r(46473),a=r.n(l),i=r(75271),c=r(28533),d=r(89416),u=r(88146),f=r(9362),p=r(3059);function x(){let e=(0,c.cI)(),{register:t,reset:r,handleSubmit:l,formState:{errors:x}}=e,[h,m]=(0,i.useState)(!1),g=async e=>{let{username:t}=e;try{m(!0),await f.wv.post("/auth/forgot-password",{usernameOrEmail:t}),r({username:""}),d.ZP.success("Reset password email sent")}catch(e){d.ZP.error("Could not find user")}m(!1)},j=async e=>{let{username:t}=e;await g({username:t})};return(0,n.jsxs)(o.b,{children:[(0,n.jsx)(a(),{children:(0,n.jsx)("title",{children:"Forgot Password"})}),(0,n.jsx)("div",{className:"flex items-center p-4 py-8 m-auto sm:p-8",children:(0,n.jsx)(c.RV,{...e,children:(0,n.jsxs)("form",{onSubmit:l(j),className:"py-4 mx-auto w-96",children:[(0,n.jsx)("p",{className:"my-6 text-4xl font-black text-center text-indigo-100",children:"Password Reset"}),(0,n.jsx)(s.W,{errorClassName:"mb-4",errorText:(0,p.Jb)(x.username),register:t,autoCapitalize:"none",name:"username",title:"Username or Email"}),(0,n.jsx)("button",{className:(0,u.A)("h-captcha w-full my-5 inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-500 text-base font-medium text-white hover:bg-indigo-600 transition-all focus:outline-none"),type:"submit",children:h?"Loading...":"Send Reset Email"}),(0,n.jsx)("div",{className:"text-sm text-center text-indigo-500",children:(0,n.jsx)("p",{onClick:()=>{window.location.assign("/register")},className:"inline-block text-center cursor-pointer hover:opacity-70",children:"Sign up for an account"})})]})})})]})}},99466:(e,t,r)=>{"use strict";r.d(t,{Dx:()=>er,VY:()=>et,aV:()=>ee,dk:()=>en,fC:()=>J,h_:()=>Q,x8:()=>eo,xz:()=>Y});var n=r(75271),o=r(95061),s=r(62271),l=r(42478),a=r(8921),i=r(30710),c=r(60130),d=r(33230),u=r(87824),f=r(54408),p=r(56515),x=r(67369),h=r(23833),m=r(19800),g=r(75802),j=r(52676),v="Dialog",[b,y]=(0,l.b)(v),[w,N]=b(v),C=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=n.useRef(null),u=n.useRef(null),[f=!1,p]=(0,i.T)({prop:o,defaultProp:s,onChange:l});return(0,j.jsx)(w,{scope:t,triggerRef:d,contentRef:u,contentId:(0,a.M)(),titleId:(0,a.M)(),descriptionId:(0,a.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:c,children:r})};C.displayName=v;var k="DialogTrigger",D=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=N(k,r),a=(0,s.e)(t,l.triggerRef);return(0,j.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":B(l.open),...n,ref:a,onClick:(0,o.M)(e.onClick,l.onOpenToggle)})});D.displayName=k;var R="DialogPortal",[_,O]=b(R,{forceMount:void 0}),F=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:s}=e,l=N(R,t);return(0,j.jsx)(_,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,j.jsx)(f.z,{present:r||l.open,children:(0,j.jsx)(u.h,{asChild:!0,container:s,children:e})}))})};F.displayName=R;var E="DialogOverlay",z=n.forwardRef((e,t)=>
1{let r=O(E,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=N(E,e.__scopeDialog);return s.modal?(0,j.jsx)(f.z,{present:n||s.open,children:(0,j.jsx)(I,{...o,ref:t})}):null});z.displayName=E;var I=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=N(E,r);return(0,j.jsx)(h.Z,{as:g.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,j.jsx)(p.WV.div,{"data-state":B(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),M="DialogContent",A=n.forwardRef((e,t)=>{let r=O(M,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=N(M,e.__scopeDialog);return(0,j.jsx)(f.z,{present:n||s.open,children:s.modal?(0,j.jsx)(P,{...o,ref:t}):(0,j.jsx)(T,{...o,ref:t})})});A.displayName=M;var P=n.forwardRef((e,t)=>{let r=N(M,e.__scopeDialog),l=n.useRef(null),a=(0,s.e)(t,r.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,m.Ry)(e)},[]),(0,j.jsx)(Z,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),T=n.forwardRef((e,t)=>{let r=N(M,e.__scopeDialog),o=n.useRef(!1),s=n.useRef(!1);return(0,j.jsx)(Z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(s.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),Z=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:a,...i}=e,u=N(M,r),f=n.useRef(null),p=(0,s.e)(t,f);return(0,x.EW)(),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,j.jsx)(c.XB,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":B(u.open),...i,ref:p,onDismiss:()=>u.onOpenChange(!1)})}),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(U,{titleId:u.titleId}),(0,j.jsx)(G,{contentRef:f,descriptionId:u.descriptionId})]})]})}),W="DialogTitle",S=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=N(W,r);return(0,j.jsx)(p.WV.h2,{id:o.titleId,...n,ref:t})});S.displayName=W;var V="DialogDescription",L=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=N(V,r);return(0,j.jsx)(p.WV.p,{id:o.descriptionId,...n,ref:t})});L.displayName=V;var H="DialogClose",$=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,s=N(H,r);return(0,j.jsx)(p.WV.button,{type:"button",...n,ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))})});function B(e){return e?"open":"closed"}$.displayName=H;var q="DialogTitleWarning",[X,K]=(0,l.k)(q,{contentName:M,titleName:W,docsSlug:"dialog"}),U=({titleId:e})=>{let t=K(q),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 n.useEffect(()=>{e&&!document.getElementById(e)&&console.error(r)},[r,e]),null},G=({contentRef:e,descriptionId:t})=>{let r=K("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(o)},[o,e,t]),null},J=C,Y=D,Q=F,ee=z,et=A,er=S,en=L,eo=$},25821:(e,t,r)=>{"use strict";r.d(t,{f:()=>c});var n=r(75271),o=r(56515),s=r(52676),l="horizontal",a=["horizontal","vertical"],i=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=l,...i}=e,c=a.includes(n)?n:l;return(0,s.jsx)(o.WV.div,{"data-orientation":c,...r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var c=i},2808:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);
5else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n},s=(e,t)=>r=>{var s;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:l,defaultVariants:a}=t,i=Object.keys(l).map(e=>{let t=null==r?void 0:r[e],o=null==a?void 0:a[e];if(null===t)return null;let s=n(t)||n(o);return l[e][s]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,i,null==t?void 0:null===(s=t.compoundVariants)||void 0===s?void 0:s.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...c}[t]):({...a,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},e=>{var t=t=>e(e.s=t);e.O(0,[1130,2356,4886,8533,2622,15,2888,9774,179],()=>t(48715)),_N_E=e.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.