(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2048],{14375:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.flat(1/0).filter(Boolean).join(" ")},a=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:i}=t,c=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],s=null==i?void 0:i[e];if(null===t)return null;let a=n(t)||n(s);return o[e][a]}),l=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),d=null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...l}[t]):({...i,...l})[t]===r})?[...e,r,n]:e},[]);return s(e,c,d,null==r?void 0:r.class,null==r?void 0:r.className)}},21644:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(3546),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=(e,t)=>{let r=(0,n.forwardRef)(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:c,className:l="",children:d,...u},f)=>(0,n.createElement)("svg",{ref:f,...s,width:o,height:o,stroke:r,strokeWidth:c?24*Number(i)/Number(o):i,className:["lucide",`lucide-${a(e)}`,l].join(" "),...u},[...t.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(d)?d:[d]]));return r.displayName=`${e}`,r}},67960:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]])},83048:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("BookOpenText",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}],["path",{d:"M6 8h2",key:"30oboj"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M16 12h2",key:"7q9ll5"}]])},94855:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},94240:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},63057:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},40327:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]])},71371:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("Layers2",[["path",{d:"m16.02 12 5.48 3.13a1 1 0 0 1 0 1.74L13 21.74a2 2 0 0 1-2 0l-8.5-4.87a1 1 0 0 1 0-1.74L7.98 12",key:"1cuww1"}],["path",{d:"M13 13.74a2 2 0 0 1-2 0L2.5 8.87a1 1 0 0 1 0-1.74L11 2.26a2 2 0 0 1 2 0l8.5 4.87a1 1 0 0 1 0 1.74Z",key:"pdlvxu"}]])},70418:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},93170:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},12303:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]])},63410:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.Z)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]])},57424:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(21644);/**
 * @license lucide-react v0.365.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.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"}]])},83024:function(e,t,r){Promise.resolve().then(r.bind(r,26756))},26756:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return w}});var n=r(36164),s=r(3546),a=r(70652),o=r.n(a),i=r(11978),c=r(31458),l=r(81565),d=r(84381),u=r(5493),f=r(23782),h=r(43240),m=r(11634),p=r(98150),x=r(82394);let v=(0,h.BX)("\n  mutation passwordReset($input: PasswordResetInput!) {\n    passwordReset(input: $input)\n  }\n"),y=f.Ry({password1:f.Z_(),password2:f.Z_(),code:f.Z_().optional()});function g(e){let{className:t,code:r,onSuccess:s,...a}=e,o=(0,u.cI)({resolver:(0,d.F)(y),defaultValues:{code:r}});(0,i.useRouter)();let{isSubmitting:f}=o.formState,h=(0,m.D)(v,{form:o});return(0,n.jsx)(p.l0,{...o,children:(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsxs)("form",{className:"grid gap-4",onSubmit:o.handleSubmit(e=>{var t;return h({input:{...e,code:null!==(t=e.code)&&void 0!==t?t:""}}).then(e=>{var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.passwordReset)&&(null==s||s())})}),children:[(0,n.jsx)(p.Wi,{control:o.control,name:"password1",render:e=>{let{field:t}=e;return(0,n.jsxs)(p.xJ,{children:[(0,n.jsx)(p.lX,{children:"New Password"}),(0,n.jsx)(p.NI,{children:(0,n.jsx)(x.I,{type:"password",...t})}),(0,n.jsx)(p.zG,{})]})}}),(0,n.jsx)(p.Wi,{control:o.control,name:"password2",render:e=>{let{field:t}=e;return(0,n.jsxs)(p.xJ,{children:[(0,n.jsx)(p.lX,{children:"Confirm New Password"}),(0,n.jsx)(p.NI,{children:(0,n.jsx)(x.I,{type:"password",...t})}),(0,n.jsx)(p.zG,{})]})}}),(0,n.jsx)(p.Wi,{control:o.control,name:"code",render:e=>{let{field:t}=e;return(0,n.jsx)(p.xJ,{className:"hidden",children:(0,n.jsx)(p.NI,{children:(0,n.jsx)(x.I,{type:"hidden",...t})})})}}),(0,n.jsxs)(c.z,{type:"submit",className:"mt-2",disabled:f,children:[f&&(0,n.jsx)(l.IconSpinner,{className:"mr-2 h-4 w-4 animate-spin"}),"Reset password"]})]}),(0,n.jsx)(p.zG,{className:"text-center"})]})})}function w(){let[e,t]=s.useState(!1),r=(0,i.useSearchParams)(),a=r.get("code")||void 0;return e?(0,n.jsx)("div",{className:"w-[350px] space-y-6",children:(0,n.jsxs)("div",{className:"flex flex-col space-y-2 text-center",children:[(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(l.IconCheckCircled,{className:"h-12 w-12 text-successful-foreground"})}),(0,n.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:"Set a new password"}),(0,n.jsx)("p",{className:"pb-4 text-sm text-muted-foreground",children:"Your password has been changed."}),(0,n.jsx)(o(),{replace:!0,href:"/auth/signin",className:(0,c.d)(),children:"Go to Sign In"})]})}):(0,n.jsxs)("div",{className:"w-[350px] space-y-6",children:[(0,n.jsxs)("div",{className:"flex flex-col space-y-2 text-center",children:[(0,n.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:"Set a new password"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Please enter a new password for your account."})]}),(0,n.jsx)(g,{code:a,onSuccess:()=>t(!0)})]})}},31458:function(e,t,r){"use strict";r.d(t,{d:function(){return c},z:function(){return l}});var n=r(36164),s=r(3546),a=r(74047),o=r(14375),i=r(74248);let c=(0,o.j)("inline-flex items-center justify-center rounded-md text-sm font-medium shadow ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-md hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90","hover-destructive":"shadow-none hover:bg-destructive/90 hover:text-destructive-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"shadow-none hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 shadow-none hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-8 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-8 w-8 p-0"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,asChild:l=!1,...d}=e,u=l?a.g7:"button";return(0,n.jsx)(u,{className:(0,i.cn)(c({variant:s,size:o,className:r})),ref:t,...d})});l.displayName="Button"},98150:function(e,t,r){"use strict";r.d(t,{NI:function(){return x},Wi:function(){return u},l0:function(){return l},lX:function(){return p},pf:function(){return v},xJ:function(){return m},zG:function(){return y}});var n=r(36164),s=r(3546),a=r(74047),o=r(5493),i=r(74248),c=r(5266);let l=o.RV,d=s.createContext({}),u=e=>{let{...t}=e;return(0,n.jsx)(d.Provider,{value:{name:t.name},children:(0,n.jsx)(o.Qr,{...t})})},f=()=>{let e=s.useContext(d),t=s.useContext(h),{getFieldState:r,formState:n}=(0,o.Gc)(),a=e.name||"root",i=r(a,n);if(!n)throw Error("useFormField should be used within <Form>");let{id:c}=t;return{id:c,name:a,formItemId:"".concat(c,"-form-item"),formDescriptionId:"".concat(c,"-form-item-description"),formMessageId:"".concat(c,"-form-item-message"),...i}},h=s.createContext({}),m=s.forwardRef((e,t)=>{let{className:r,...a}=e,o=s.useId();return(0,n.jsx)(h.Provider,{value:{id:o},children:(0,n.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",r),...a})})});m.displayName="FormItem";let p=s.forwardRef((e,t)=>{let{className:r,required:s,...a}=e,{error:o,formItemId:l}=f();return(0,n.jsx)(c._,{ref:t,className:(0,i.cn)(o&&"text-destructive",s&&'after:ml-0.5 after:text-destructive after:content-["*"]',r),htmlFor:l,...a})});p.displayName="FormLabel";let x=s.forwardRef((e,t)=>{let{...r}=e,{error:s,formItemId:o,formDescriptionId:i,formMessageId:c}=f();return(0,n.jsx)(a.g7,{ref:t,id:o,"aria-describedby":s?"".concat(i," ").concat(c):"".concat(i),"aria-invalid":!!s,...r})});x.displayName="FormControl";let v=s.forwardRef((e,t)=>{let{className:r,...s}=e,{formDescriptionId:a}=f();return(0,n.jsx)("div",{ref:t,id:a,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});v.displayName="FormDescription";let y=s.forwardRef((e,t)=>{let{className:r,children:s,...a}=e,{error:o,formMessageId:c}=f(),l=o?String(null==o?void 0:o.message):s;return l?(0,n.jsx)("p",{ref:t,id:c,className:(0,i.cn)("text-sm font-medium text-destructive",r),...a,children:l}):null});y.displayName="FormMessage"},82394:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var n=r(36164),s=r(3546),a=r(74248);let o=s.forwardRef((e,t)=>{let{className:r,type:s,...o}=e;return(0,n.jsx)("input",{type:s,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});o.displayName="Input"},5266:function(e,t,r){"use strict";r.d(t,{_:function(){return l}});var n=r(36164),s=r(3546),a=r(90893),o=r(14375),i=r(74248);let c=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.f,{ref:t,className:(0,i.cn)(c(),r),...s})});l.displayName=a.f.displayName},70652:function(e,t,r){e.exports=r(54007)}},function(e){e.O(0,[7998,5498,6312,4007,240,9736,1565,3396,3375,5289,1744],function(){return e(e.s=83024)}),_N_E=e.O()}]);