(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5271],{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,l=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]}),c=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,...c}[t]):({...i,...c})[t]===r})?[...e,r,n]:e},[]);return s(e,l,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:l,className:c="",children:d,...u},m)=>(0,n.createElement)("svg",{ref:m,...s,width:o,height:o,stroke:r,strokeWidth:l?24*Number(i)/Number(o):i,className:["lucide",`lucide-${a(e)}`,c].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"}]])},4107:function(e,t,r){Promise.resolve().then(r.bind(r,4047))},4047:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S}});var n=r(36164),s=r(11978),a=r(3546),o=r(74248),i=r(31458),l=r(84381),c=r(5493),d=r(23782),u=r(21808),m=r(43240),f=r(91302),h=r(11634),p=r(98150),x=r(81565),v=r(82394),y=r(4302);let g=(0,m.BX)("\n  mutation register(\n    $name: String!\n    $email: String!\n    $password1: String!\n    $password2: String!\n    $invitationCode: String\n  ) {\n    register(\n      name: $name\n      email: $email\n      password1: $password1\n      password2: $password2\n      invitationCode: $invitationCode\n    ) {\n      accessToken\n      refreshToken\n    }\n  }\n"),j=d.Ry({name:d.Z_(),email:d.Z_().email("Invalid email address"),password1:d.Z_(),password2:d.Z_(),invitationCode:d.Z_().optional()});function b(e){var t,r;let{className:d,invitationCode:m,onSuccess:b,buttonClass:w,...N}=e,[S,_]=a.useState(!1),[k,C]=a.useState(!1),I=(0,c.cI)({resolver:(0,l.F)(j),defaultValues:{invitationCode:m}}),{password1:A}=I.watch(),[M]=(0,y.Y0)(A),E=(0,s.useRouter)(),Z=(0,f.zq)(),{isSubmitting:T}=I.formState,R=(0,h.D)(g,{async onCompleted(e){await Z(null==e?void 0:e.register)&&(b?b():E.replace("/"))},form:I}),L=()=>{if(0===M.length)return _(!1);C(!0)};return(0,n.jsx)(p.l0,{...I,children:(0,n.jsxs)("div",{className:(0,o.cn)("grid gap-2",d),...N,children:[(0,n.jsxs)("form",{className:"grid gap-4",onSubmit:I.handleSubmit(R),children:[(0,n.jsx)(p.Wi,{control:I.control,name:"name",render:e=>{let{field:t}=e;return(0,n.jsxs)(p.xJ,{children:[(0,n.jsx)(p.lX,{children:"Name"}),(0,n.jsx)(p.NI,{children:(0,n.jsx)(v.I,{...t,value:t.value})}),(0,n.jsx)(p.zG,{})]})}}),(0,n.jsx)(p.Wi,{control:I.control,name:"email",render:e=>{let{field:r}=e;return(0,n.jsxs)(p.xJ,{children:[(0,n.jsx)(p.lX,{children:"Email"}),(0,n.jsx)(p.NI,{children:(0,n.jsx)(v.I,{placeholder:"e.g. ".concat(u.o0),type:"email",autoCapitalize:"none",autoComplete:"email",autoCorrect:"off",...r,value:null!==(t=r.value)&&void 0!==t?t:""})}),(0,n.jsx)(p.zG,{})]})}}),(0,n.jsxs)("div",{children:[(0,n.jsx)(p.Wi,{control:I.control,name:"password1",render:e=>{let{field:t}=e;return(0,n.jsxs)(p.xJ,{children:[(0,n.jsx)(p.lX,{children:"Password"}),(0,n.jsx)(p.NI,{children:(0,n.jsx)(v.I,{type:"password",...t,onFocus:()=>_(!0),onBlur:L})})]})}}),(0,n.jsx)(y.Lu,{password:A||"",showPasswordSchema:S,passworErrors:M,showPasswordError:k})]}),(0,n.jsx)(p.Wi,{control:I.control,name:"password2",render:e=>{let{field:t}=e;return(0,n.jsxs)(p.xJ,{children:[(0,n.jsx)(p.lX,{children:"Confirm Password"}),(0,n.jsx)(p.NI,{children:(0,n.jsx)(v.I,{type:"password",...t,value:null!==(r=t.value)&&void 0!==r?r:""})}),(0,n.jsx)(p.zG,{})]})}}),(0,n.jsx)(p.Wi,{control:I.control,name:"invitationCode",render:e=>{let{field:t}=e;return(0,n.jsx)(p.xJ,{className:"hidden",children:(0,n.jsx)(p.NI,{children:(0,n.jsx)(v.I,{type:"hidden",...t})})})}}),(0,n.jsxs)(i.z,{type:"submit",className:(0,o.cn)("mt-2",w),disabled:T,children:[T&&(0,n.jsx)(x.IconSpinner,{className:"mr-2 h-4 w-4 animate-spin"}),"Register"]})]}),(0,n.jsx)(p.zG,{className:"text-center"})]})})}function w(e){let{step:t,currentStep:r,children:s}=e;return(0,n.jsx)("div",{id:"step-".concat(t),className:(0,o.cn)("border-l border-foreground py-8 pl-12 pr-2",{"step-mask":t!==r,remote:Math.abs(r-t)>1}),children:s})}function N(){let e=(0,s.useRouter)(),[t,r]=(0,a.useState)(1),o=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var e;1!==t&&(null===(e=document.getElementById("step-".concat(t)))||void 0===e||e.scrollIntoView({behavior:"smooth"}))},[t]),(0,n.jsxs)("div",{className:"admin-register-wrap h-screen w-[600px] overflow-hidden",children:[(0,n.jsxs)(w,{step:1,currentStep:t,children:[(0,n.jsx)("h2",{className:"text-3xl font-semibold tracking-tight first:mt-0",children:"Welcome!"}),(0,n.jsx)("p",{className:"mt-2 leading-7 text-muted-foreground",children:"Your tabby server is live and ready to use. This step by step guide will help you set up your admin account."}),(0,n.jsx)("p",{className:"leading-7 text-muted-foreground",children:"Admin account is the highest level of access in your server. Once created, you can invite other members to join your server."}),(0,n.jsx)(i.z,{className:"mt-5 w-48",onClick:()=>r(2),children:"Start"})]}),(0,n.jsxs)(w,{step:2,currentStep:t,children:[(0,n.jsx)("h3",{className:"text-2xl font-semibold tracking-tight",children:"Create Admin Account"}),(0,n.jsx)("p",{className:"mb-3 leading-7 text-muted-foreground",children:"Please store your password in a safe place. We do not store your password and cannot recover it for you."}),(0,n.jsx)(b,{onSuccess:()=>{var e;r(3),null===(e=o.current)||void 0===e||e.focus()},buttonClass:"self-start w-48"})]}),(0,n.jsxs)(w,{step:3,currentStep:t,children:[(0,n.jsx)("h3",{className:"text-2xl font-semibold tracking-tight",children:"Congratulations!"}),(0,n.jsx)("p",{className:"leading-7 text-muted-foreground",children:"You have successfully created an admin account."}),(0,n.jsx)("p",{className:"mb-3 leading-7 text-muted-foreground",children:"To start, navigate to the dashboard and invite other members to join your server."}),(0,n.jsx)(i.z,{className:"mt-5 w-48 focus-visible:ring-0",onClick:()=>e.replace("/"),ref:o,children:"Go to dashboard"})]})]})}function S(){let e=(0,s.useSearchParams)(),t=e.get("invitationCode")||void 0,r=e.get("isAdmin")||!1;return r?(0,n.jsx)(N,{}):t?(0,n.jsx)(_,{title:"Create an account",description:"Fill form below to create your account",show:!0}):(0,n.jsx)(_,{title:"No invitation code",description:"Please contact your Tabby admin for an invitation code to register"})}function _(e){let{title:t,description:r,show:a}=e,o=(0,s.useSearchParams)(),i=o.get("invitationCode")||void 0;return(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:t}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:r})]}),a&&(0,n.jsx)(b,{invitationCode:i})]})}r(5499)},4302:function(e,t,r){"use strict";r.d(t,{Lu:function(){return m},Y0:function(){return u}});var n,s,a=r(36164),o=r(3546),i=r(74630),l=r(23782),c=r(74248);(n=s||(s={})).LOWERCASE_MSISSING="lowercase_missing",n.UPPERCASE_MSISSING="uppercase_missing",n.NUMBER_MISSING="number_missing",n.SPECIAL_CHAR_MISSING="special_char_missing",n.AT_LEAST_EIGHT_CHAR="at_least_eight_char",n.AT_MOST_TWENTY_CHAT="at_most_twenty_char";let d=l.Z_().refine(e=>/[a-z]/.test(e),{params:{errorCode:s.LOWERCASE_MSISSING}}).refine(e=>/[A-Z]/.test(e),{params:{errorCode:s.UPPERCASE_MSISSING}}).refine(e=>/\d/.test(e),{params:{errorCode:s.NUMBER_MISSING}}).refine(e=>/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(e),{params:{errorCode:s.SPECIAL_CHAR_MISSING}}).refine(e=>e.length>=8,{params:{errorCode:s.AT_LEAST_EIGHT_CHAR}}).refine(e=>e.length<=20,{params:{errorCode:s.AT_MOST_TWENTY_CHAT}}),u=e=>{let[t,r]=o.useState([]);return o.useEffect(()=>{if(!(0,i.Z)(e))try{d.parse(e),r([])}catch(e){e instanceof l.jm&&r(e.issues.map(e=>e.params.errorCode))}},[e]),[t,r]};function m(e){let{password:t,showPasswordSchema:r,passworErrors:n,showPasswordError:o}=e;function i(e){let{errorCode:r,text:s}=e;return(0,a.jsx)("li",{className:(0,c.cn)("py-0.5",{"text-green-600 dark:text-green-500":t.length>0&&!n.includes(r),"text-red-600 dark:text-red-500":o&&t.length>0&&n.includes(r)}),children:s})}return(0,a.jsxs)("div",{className:(0,c.cn)("relative text-sm transition-all",{"h-0 opacity-0 -z-10":!r,"mt-4 h-40 opacity-100":r}),children:[(0,a.jsx)("p",{className:"mb-0.5 text-xs text-muted-foreground",children:"Set up a strong password with"}),(0,a.jsxs)("ul",{className:"list-disc pl-4",children:[(0,a.jsx)(i,{errorCode:s.AT_LEAST_EIGHT_CHAR,text:"At least 8 characters long"}),(0,a.jsx)(i,{errorCode:s.AT_MOST_TWENTY_CHAT,text:"No more than 20 characters long"}),(0,a.jsx)(i,{errorCode:s.LOWERCASE_MSISSING,text:"At least one lowercase character"}),(0,a.jsx)(i,{errorCode:s.UPPERCASE_MSISSING,text:"At least one uppercase character"}),(0,a.jsx)(i,{errorCode:s.NUMBER_MISSING,text:"At least one numeric character"}),(0,a.jsx)(i,{errorCode:s.SPECIAL_CHAR_MISSING,text:"At least one special character , such as @#$%^&{}"})]})]})}},31458:function(e,t,r){"use strict";r.d(t,{d:function(){return l},z:function(){return c}});var n=r(36164),s=r(3546),a=r(74047),o=r(14375),i=r(74248);let l=(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"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,asChild:c=!1,...d}=e,u=c?a.g7:"button";return(0,n.jsx)(u,{className:(0,i.cn)(l({variant:s,size:o,className:r})),ref:t,...d})});c.displayName="Button"},98150:function(e,t,r){"use strict";r.d(t,{NI:function(){return x},Wi:function(){return u},l0:function(){return c},lX:function(){return p},pf:function(){return v},xJ:function(){return h},zG:function(){return y}});var n=r(36164),s=r(3546),a=r(74047),o=r(5493),i=r(74248),l=r(5266);let c=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})})},m=()=>{let e=s.useContext(d),t=s.useContext(f),{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:l}=t;return{id:l,name:a,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message"),...i}},f=s.createContext({}),h=s.forwardRef((e,t)=>{let{className:r,...a}=e,o=s.useId();return(0,n.jsx)(f.Provider,{value:{id:o},children:(0,n.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",r),...a})})});h.displayName="FormItem";let p=s.forwardRef((e,t)=>{let{className:r,required:s,...a}=e,{error:o,formItemId:c}=m();return(0,n.jsx)(l._,{ref:t,className:(0,i.cn)(o&&"text-destructive",s&&'after:ml-0.5 after:text-destructive after:content-["*"]',r),htmlFor:c,...a})});p.displayName="FormLabel";let x=s.forwardRef((e,t)=>{let{...r}=e,{error:s,formItemId:o,formDescriptionId:i,formMessageId:l}=m();return(0,n.jsx)(a.g7,{ref:t,id:o,"aria-describedby":s?"".concat(i," ").concat(l):"".concat(i),"aria-invalid":!!s,...r})});x.displayName="FormControl";let v=s.forwardRef((e,t)=>{let{className:r,...s}=e,{formDescriptionId:a}=m();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:l}=m(),c=o?String(null==o?void 0:o.message):s;return c?(0,n.jsx)("p",{ref:t,id:l,className:(0,i.cn)("text-sm font-medium text-destructive",r),...a,children:c}):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 c}});var n=r(36164),s=r(3546),a=r(90893),o=r(14375),i=r(74248);let l=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.f,{ref:t,className:(0,i.cn)(l(),r),...s})});c.displayName=a.f.displayName},21808:function(e,t,r){"use strict";r.d(t,{$6:function(){return a},L8:function(){return s},o0:function(){return n}});let n="name@yourcompany.com",s=20,a={DEMO_AUTO_LOGIN:"_tabby_demo_autologin",SEARCH_INITIAL_MSG:"_tabby_search_initial_msg",SEARCH_LATEST_MSG:"_tabby_search_latest_msg"}},5499:function(){}},function(e){e.O(0,[7998,5498,6312,240,9736,1565,3396,3375,5289,1744],function(){return e(e.s=4107)}),_N_E=e.O()}]);