1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5501],{3864:(e,r,t)=>{Promise.resolve().then(t.bind(t,24461)),Promise.resolve().then(t.bind(t,33678)),Promise.resolve().then(t.bind(t,93691)),Promise.resolve().then(t.bind(t,58558))},4509:(e,r,t)=>{"use strict";t.d(r,{C5:()=>v,MJ:()=>g,Rr:()=>p,eI:()=>x,lR:()=>h,lV:()=>d,zB:()=>m});var a=t(95155),s=t(12115),i=t(32467),n=t(22544),o=t(25016),l=t(90235);let d=n.Op,c=s.createContext(null),m=e=>{let{...r}=e;return(0,a.jsx)(c.Provider,{value:{name:r.name},children:(0,a.jsx)(n.xI,{...r})})},u=()=>{let e=s.useContext(c),r=s.useContext(f),{getFieldState:t,formState:a}=(0,n.xW)();if(!e)throw Error("useFormField should be used within <FormField>");if(!r)throw Error("useFormField should be used within <FormItem>");let i=t(e.name,a),{id:o}=r;return{id:o,name:e.name,formItemId:"".concat(o,"-form-item"),formDescriptionId:"".concat(o,"-form-item-description"),formMessageId:"".concat(o,"-form-item-message"),...i}},f=s.createContext(null),x=s.forwardRef((e,r)=>{let{className:t,...i}=e,n=s.useId();return(0,a.jsx)(f.Provider,{value:{id:n},children:(0,a.jsx)("div",{ref:r,className:(0,o.cn)("space-y-2",t),...i})})});x.displayName="FormItem";let h=s.forwardRef((e,r)=>{let{className:t,...s}=e,{error:i,formItemId:n}=u();return(0,a.jsx)(l.J,{ref:r,className:(0,o.cn)(i&&"text-destructive",t),htmlFor:n,...s})});h.displayName="FormLabel";let g=s.forwardRef((e,r)=>{let{...t}=e,{error:s,formItemId:n,formDescriptionId:o,formMessageId:l}=u();return(0,a.jsx)(i.DX,{ref:r,id:n,"aria-describedby":s?"".concat(o," ").concat(l):"".concat(o),"aria-invalid":!!s,...t})});g.displayName="FormControl";let p=s.forwardRef((e,r)=>{let{className:t,...s}=e,{formDescriptionId:i}=u();return(0,a.jsx)("p",{ref:r,id:i,className:(0,o.cn)("text-[0.8rem] text-muted-foreground",t),...s})});p.displayName="FormDescription";let v=s.forwardRef((e,r)=>{var t;let{className:s,children:i,...n}=e,{error:l,formMessageId:d}=u(),c=l?String(null!=(t=null==l?void 0:l.message)?t:""):i;return c?(0,a.jsx)("p",{ref:r,id:d,className:(0,o.cn)("text-[0.8rem] font-medium text-destructive",s),...n,children:c}):null});v.displayName="FormMessage"},11312:(e,r,t)=>{"use strict";t.d(r,{E9:()=>n,X5:()=>s,oW:()=>o,zK:()=>i});var a=t(98734);let s=a.Ik({email:a.Yj().min(1,"Email is required").email("Invalid email address"),password:a.Yj().min(1,"Password is required").min(8,"Password must be at least 8 characters")}),i=a.Ik({firstName:a.Yj().min(1,"First name is required"),lastName:a.Yj().min(1,"Last name is required"),email:a.Yj().min(1,"Email is required").email("Invalid email address"),password:a.Yj().min(1,"Password is required").min(8,"Password must be at least 8 characters"),confirmPassword:a.Yj().min(1,"Please confirm your password")}).refine(e=>e.password===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]}),n=a.Ik({email:a.Yj().min(1,"Email is required").email("Invalid email address")}),o=a.Ik({password:a.Yj().min(8,"Password must be at least 8 characters"),confirmPassword:a.Yj().min(1,"Please confirm your password")}).refine(e=>e.password===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]}),l={deviceId:a.Yj().min(1,"deviceId is required"),deviceName:a.Yj().optional(),pushToken:a.Yj().optional(),pushPlatform:a.k5(["ios","android"]).optional()};a.Ik({email:a.Yj().min(1).email(),password:a.Yj().min(1),...l}),a.Ik({refreshToken:a.Yj().min(1,"refreshToken is required")}),a.Ik({idToken:a.Yj().min(1,"idToken is required"),...l})},24461:(e,r,t)=>{"use strict";t.d(r,{LoginForm:()=>k});var a=t(95155),s=t(12115),i=t(52619),n=t.n(i),o=t(15239),l=t(20063),d=t(58347),c=t(22544),m=t(66942),u=t(95604),f=t(70532),x=t(57828),h=t(35299),g=t(25016),p=t(54664),v=t(76689),b=t(32559),j=t(97003),w=t(33789),y=t(4509),N=t(11312);function k(e){let{className:r,tenantBranding:t,...i}=e,k=(0,u.useTranslations)("auth.loginPage"),I=(0,u.useTranslations)("auth.legal"),P=(0,l.useRouter)(),R=(0,l.useSearchParams)(),{locale:S}=(0,l.useParams)(),[D,F]=s.useState(!1),M=R.get("callbackUrl")||"/dashboard";s.useEffect(()=>{if("google"===R.get("trigger")){let e=window.location.pathname;window.history.replaceState({},"",e),console.log("Auto-triggering Google Sign-In with callback:",M),(0,d.Jv)("google",{callbackUrl:M,redirect:!0})}},[R]);let C=(0,c.mN)({resolver:(0,m.u)(N.X5),defaultValues:{email:"",password:""}});async function z(e){let r=await (0,d.Jv)("credentials",{email:e.email,password:e.password,redirect:!1});if(null==r?void 0:r.error)return void C.setError("root",{message:"Invalid email or password"});P.push(M),P.refresh()}async function T(){let e="confychair.org",r=window.location.host;if(r!==e&&r!=="www.".concat(e)){let t=window.location.protocol,a="/dashboard"!==M?M:"".concat(t,"//").concat(r,"/dashboard");window.location.href="".concat(t,"//www.").concat(e,"/login?trigger=google&callbackUrl=").concat(encodeURIComponent(a));return}await (0,d.Jv)("google",{callbackUrl:M})}return(0,a.jsxs)("div",{className:(0,g.cn)("w-full",r),...i,children:[(0,a.jsxs)("div",{className:"grid overflow-hidden rounded-2xl shadow-2xl md:grid-cols-[1fr_400px]",children:[(0,a.jsxs)("div",{className:"relative hidden flex-col justify-between bg-sidebar p-10 md:flex text-sidebar-foreground",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(hsl(var(--sidebar-foreground)/0.07)_1px,transparent_1px)] bg-[size:20px_20px]"}),(0,a.jsx)("div",{className:"absolute -left-24 -top-24 size-96 rounded-full bg-primary/15 blur-[120px]"}),(0,a.jsx)("div",{className:"absolute -bottom-16 -right-16 size-64 rounded-full bg-primary/[0.08] blur-[80px]"}),(0,a.jsx)("div",{className:"relative mb-12",children:t?(0,a.jsx)("div",{className:"flex flex-col gap-4",children:t.darkLogoUrl?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.default,{src:t.logoUrl,alt:t.name,width:240,height:80,className:"h-16 w-auto object-contain dark:hidden"}),(0,a.jsx)(o.default,{src:t.darkLogoUrl,alt:t.name,width:240,height:80,className:"h-16 w-auto object-contain hidden dark:block"})]}):t.logoUrl?(0,a.jsx)(o.default,{src:t.logoUrl,alt:t.name,width:240,height:80,className:"h-16 w-auto object-contain"}):(0,a.jsx)("span",{className:"text-2xl font-bold tracking-tight",children:t.name})}
1):(0,a.jsx)(v.LogoWithText,{size:28,className:"text-sidebar-foreground"})}),(0,a.jsx)("div",{className:"relative flex flex-1 flex-col justify-center gap-6",children:t?(0,a.jsxs)("div",{className:"space-y-4",children:[t.logoUrl&&(0,a.jsx)("h1",{className:"text-3xl font-bold tracking-tight",children:t.name}),t.tagline&&(0,a.jsx)("p",{className:"text-2xl font-medium leading-tight opacity-90",children:t.tagline})]}):(0,a.jsx)("p",{className:"text-3xl font-semibold leading-snug text-sidebar-foreground",children:k.rich("panel.tagline",{accent:e=>(0,a.jsx)("span",{className:"text-primary",children:e})})})}),t&&(0,a.jsxs)("div",{className:"relative z-10 flex flex-col gap-3 mt-auto pt-8",children:[(0,a.jsx)("p",{className:"text-[10px] uppercase tracking-wider font-semibold text-sidebar-foreground/40",children:"Powered by ConfyChair"}),t.footerLinks&&t.footerLinks.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:t.footerLinks.map(e=>(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-sidebar-foreground/60 hover:text-sidebar-foreground transition-colors underline-offset-4 hover:underline",children:e.label},e.url))})]})]}),(0,a.jsx)("div",{className:"flex flex-col justify-center bg-background px-8 py-10",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-sm",children:[(0,a.jsx)("div",{className:"mb-6 flex flex-col items-center gap-2 md:hidden",children:t?t.darkLogoUrl?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.default,{src:t.logoUrl,alt:t.name,width:160,height:48,className:"h-12 w-auto object-contain dark:hidden"}),(0,a.jsx)(o.default,{src:t.darkLogoUrl,alt:t.name,width:160,height:48,className:"h-12 w-auto object-contain hidden dark:block"})]}):t.logoUrl?(0,a.jsx)(o.default,{src:t.logoUrl,alt:t.name,width:160,height:48,className:"h-12 w-auto object-contain"}):(0,a.jsx)("span",{className:"text-xl font-bold tracking-tight",children:t.name}):(0,a.jsx)(v.LogoWithText,{size:24})}),(0,a.jsx)(y.lV,{...C,children:(0,a.jsxs)("form",{onSubmit:C.handleSubmit(z),className:"flex flex-col gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:k("heading")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:k("subheading")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(y.zB,{control:C.control,name:"email",render:e=>{let{field:r}=e;return(0,a.jsxs)(y.eI,{children:[(0,a.jsx)(y.lR,{children:k("emailLabel")}),(0,a.jsx)(y.MJ,{children:(0,a.jsx)(w.p,{type:"email",placeholder:k("emailPlaceholder"),autoComplete:"email",...r})}),(0,a.jsx)(y.C5,{})]})}}),(0,a.jsx)(y.zB,{control:C.control,name:"password",render:e=>{let{field:r}=e;return(0,a.jsxs)(y.eI,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(y.lR,{children:k("passwordLabel")}),(0,a.jsx)(n(),{href:"/".concat(S,"/forgot-password"),className:"text-xs text-muted-foreground underline-offset-2 hover:underline",children:k("forgotPassword")})]}),(0,a.jsx)(y.MJ,{children:(0,a.jsx)(w.p,{type:D?"text":"password",autoComplete:"current-password",suffix:D?(0,a.jsx)(f.A,{className:"size-4",onClick:()=>F(!1)}):(0,a.jsx)(x.A,{className:"size-4",onClick:()=>F(!0)}),...r})}),(0,a.jsx)(y.C5,{})]})}})]}),C.formState.errors.root&&(0,a.jsx)(b.Fc,{variant:"destructive",children:(0,a.jsx)(b.TN,{children:k("errorInvalidCredentials")})}),(0,a.jsxs)(j.$,{type:"submit",className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/80",disabled:C.formState.isSubmitting,children:[C.formState.isSubmitting&&(0,a.jsx)(h.A,{"data-icon":"inline-start",className:"animate-spin","aria-hidden":"true"}),C.formState.isSubmitting?k("submitting"):k("submit")]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)(p.Separator,{})}),(0,a.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,a.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:k("orContinueWith")})})]}),(0,a.jsxs)(j.$,{type:"button",variant:"outline",className:"w-full",onClick:T,children:[(0,a.jsxs)("svg",{className:"mr-2 size-4",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.18 1-.78 1.85-1.63 2.53v2.1h2.63c1.54-1.42 2.43-3.5 2.43-6.09z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-2.63-2.1c-.73.5-1.66.81-2.65.81-2.86 0-5.29-1.93-6.16-4.53H2.18v2.13C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M5.84 14.52c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V8.21H2.18C1.43 9.71 1 11.39 1 12.5s.43 2.79 1.18 4.29l3.66-2.27z",fill:"#FBBC05"}),(0,a.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.27c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),"Google"]}),(0,a.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:[k("noAccount")," ",(0,a.jsx)(n(),{href:R.toString()?"/register?".concat(R.toString()):"/register",className:"font-medium text-foreground underline underline-offset-4",children:k("createOne")})]})]})})]})})]}),(0,a.jsxs)("p",{className:"mt-4 text-center text-xs text-muted-foreground",children:[I("loginPrefix")," ",(0,a.jsx)("a",{href:"#",className:"underline underline-offset-4 hover:text-primary",children:I("termsOfService")})," ",I("and")," ",(0,a.jsx)("a",{href:"#",className:"underline underline-offset-4 hover:text-primary",children:I("privacyPolicy")}),"."]})]})}},25016:(e,r,t)=>{"use strict";t.d(r,{cn:()=>n,nD:()=>o,vv:()=>l,z3:()=>d});var a=t(2821),s=t(75889),i=t(34726);function n(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,s.QP)((0,a.$)(r))}function o(e){var r,t,a,s;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"New Author";if(!e)return i;let n=[null==(r=e.salutation)?void 0:r.trim(),null==(t=e.firstName)?void 0:t.trim(),null==(a=e.lastName)?void 0:a.trim()].filter(
1Boolean).join(" ");if(!n&&!e.suffix)return i;let o=null==(s=e.suffix)?void 0:s.trim();return o?"".concat(n,", ").concat(o):n}function l(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"IDR",t=(0,i.e_)(r);return new Intl.NumberFormat("id-ID",{style:"currency",currency:r,minimumFractionDigits:0,maximumFractionDigits:t}).format(Number(e))}function d(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!e||e<0)return"0 B";let t=["B","KB","MB","GB","TB"],a=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return"".concat(parseFloat((e/Math.pow(1024,a)).toFixed(r))," ").concat(t[a])}},32559:(e,r,t)=>{"use strict";t.d(r,{Fc:()=>l,TN:()=>d});var a=t(95155),s=t(12115),i=t(83101),n=t(25016);let o=(0,i.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=s.forwardRef((e,r)=>{let{className:t,variant:s,...i}=e;return(0,a.jsx)("div",{ref:r,role:"alert",className:(0,n.cn)(o({variant:s}),t),...i})});l.displayName="Alert",s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)("h5",{ref:r,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",t),...s})}).displayName="AlertTitle";let d=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:r,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",t),...s})});d.displayName="AlertDescription"},33678:(e,r,t)=>{"use strict";t.d(r,{BrandingProvider:()=>i});var a=t(95155),s=t(91959);function i(e){let{brandingColor:r}=e;if(!r)return null;let t=r.split(" "),i=(0,s.w5)(r),n=t.length>=3&&parseInt(t[2].replace("%",""))>65,o=n?"0 0% 10%":r,l="\n :root {\n --primary: ".concat(r,";\n --primary-foreground: ").concat(i,";\n --ring: ").concat(r,";\n --sidebar-primary: ").concat(r,";\n --sidebar-primary-foreground: ").concat(i,";\n --sidebar-accent: ").concat(r," / 0.1;\n --sidebar-accent-foreground: ").concat(o,";\n }\n .dark {\n --primary: ").concat(r,";\n --primary-foreground: ").concat(i,";\n --ring: ").concat(r,";\n --sidebar-primary: ").concat(r,";\n --sidebar-primary-foreground: ").concat(i,";\n --sidebar-accent: ").concat(r," / 0.1;\n --sidebar-accent-foreground: ").concat(n?"0 0% 98%":r,";\n }\n ");return(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:l}})}},33789:(e,r,t)=>{"use strict";t.d(r,{p:()=>n});var a=t(95155),s=t(12115),i=t(25016);let n=s.forwardRef((e,r)=>{let{className:t,type:s,suffix:n,...o}=e;return(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",n&&"pr-10",t),ref:r,...o}),n&&(0,a.jsx)("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground cursor-pointer select-none",children:n})]})});n.displayName="Input"},34726:(e,r,t)=>{"use strict";t.d(r,{DW:()=>l,Pi:()=>s,Qn:()=>n,e_:()=>o,fz:()=>i});let a={IDR:{code:"IDR",symbol:"Rp",label:"IDR (Rp)",decimals:0,minGateway:2e4,rateToIDR:1},USD:{code:"USD",symbol:"$",label:"USD ($)",decimals:2,minGateway:1.5,rateToIDR:16e3},MYR:{code:"MYR",symbol:"RM",label:"MYR (RM)",decimals:2,minGateway:5,rateToIDR:3800},THB:{code:"THB",symbol:"฿",label:"THB (฿)",decimals:2,minGateway:40,rateToIDR:470},SGD:{code:"SGD",symbol:"S$",label:"SGD (S$)",decimals:2,minGateway:2,rateToIDR:12e3},PHP:{code:"PHP",symbol:"â±",label:"PHP (â±)",decimals:2,minGateway:60,rateToID
1R:280},VND:{code:"VND",symbol:"â«",label:"VND (â«)",decimals:0,minGateway:25e3,rateToIDR:.65}},s=Object.values(a);function i(e){var r;let t=(null!=e?e:"IDR").toUpperCase();return null!=(r=a[t])?r:{code:t,symbol:t,label:t,decimals:2,minGateway:0,rateToIDR:1}}function n(e){return i(e).symbol}function o(e){return i(e).decimals}Object.keys(a);let l=Object.fromEntries(s.map(e=>[e.code,e.minGateway]))},47321:(e,r,t)=>{"use strict";t.d(r,{b:()=>c});var a=t(12115);t(47650);var s=t(32467),i=t(95155),n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let t=(0,s.TL)(`Primitive.${r}`),n=a.forwardRef((e,a)=>{let{asChild:s,...n}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(s?t:r,{...n,ref:a})});return n.displayName=`Primitive.${r}`,{...e,[r]:n}},{}),o="horizontal",l=["horizontal","vertical"],d=a.forwardRef((e,r)=>{var t;let{decorative:a,orientation:s=o,...d}=e,c=(t=s,l.includes(t))?s:o;return(0,i.jsx)(n.div,{"data-orientation":c,...a?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...d,ref:r})});d.displayName="Separator";var c=d},54664:(e,r,t)=>{"use strict";t.r(r),t.d(r,{Separator:()=>o});var a=t(95155),s=t(12115),i=t(47321),n=t(25016);let o=s.forwardRef((e,r)=>{let{className:t,orientation:s="horizontal",decorative:o=!0,...l}=e;return(0,a.jsx)(i.b,{ref:r,decorative:o,orientation:s,className:(0,n.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",t),...l})});o.displayName=i.b.displayName},57828:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});let a=(0,t(19904).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},70532:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});let a=(0,t(19904).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},76689:(e,r,t)=>{"use strict";t.d(r,{LogoWithText:()=>n,g:()=>i});var a=t(95155),s=t(25016);function i(e){let{size:r=32,className:t,inverted:i=!1,...n}=e;return(0,a.jsx)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,s.cn)(!i&&"text-primary",t),...n,children:(0,a.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L17.65 6.35z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})}function n(e){let{size:r=28,className:t,inverted:n=!1}=e;return(0,a.jsxs)("div",{className:(0,s.cn)("flex items-center gap-2",t),children:[(0,a.jsx)(i,{size:r,inverted:n}),(0,a.jsx)("span",{className:"text-xl font-bold tracking-tight",children:"ConfyChair"})]})}},90235:(e,r,t)=>{"use strict";t.d(r,{J:()=>d});var a=t(95155),s=t(12115),i=t(32894),n=t(83101),o=t(25016);let l=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)(i.b,{ref:r,className:(0,o.cn)(l(),t),...s})});d.displayName=i.b.displayName},91959:(e,r,t)=>{"use strict";function a(e){let r=parseInt(e.slice(1,3),16)/255,t=parseInt(e.slice(3,5),16)/255,a=parseInt(e.slice(5,7),16)/255,s=Math.max(r,t,a),i=Math.min(r,t,a),n=0,o=0,l=(s+i)/2;if(s!==i){let e=s-i;o=l>.5?e/(2-s-i):e/(s+i),n=s===r?((t-a)/e+6*(t<a))/6:s===t?((a-r)/e+2)/6:((r-t)/e+4)/6}return"".concat(Math.round(360*n)," ").concat(Math.round(100*o),"% ").concat(Math.round(100*l),"%")}function s(e){if(!e)return"0 0% 100%";let r=e.split(" ");return r.length<3?"0 0% 100%":parseInt(r[2].replace("%",""))>65?"0 0% 0%":"0 0% 100%"}function i(e){let r=e.trim().split(/[\s,]+/),t=parseFloat(r[0])/360,a=parseFloat(r[1])/100,s=parseFloat(r[2])/100,i=s<.5?s*(1+a):s+a-s*a,n=2*s-i,o=e=>(e<0&&(e+=1),e>1&&(e-=1),e<1/6)?n+(i-n)*6*e:e<.5?i:e<2/3?n+(i-n)*(2/3-e)*6:n,l=e=>Math.round(255*e).toString(16).padStart(2,"0");return"#".concat(l(o(t+1/3))).concat(l(o(t))).concat(l(o(t-1/3)))}t.d(r,{Sf:()=>i,g8:()=>a,w5:()=>s})},97003:(e,r,t)=>{"use strict";t.d(r,{$:()=>d,r:()=>l});var a=t(95155),s=t(12115),i=t(32467),n=t(83101),o=t(25016);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",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"}}),d=s.forwardRef((e,r)=>{let{className:t,variant:s,size:n,asChild:d=!1,...c}=e,m=d?i.DX:"button";return(0,a.jsx)(m,{className:(0,o.cn)(l({variant:s,size:n,className:t})),ref:r,...c})});d.displayName="Button"}},e=>{e.O(0,[2361,2619,5604,8734,1727,7620,8347,6983,8441,1255,7358],()=>e(e.s=3864)),_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.