1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[890977],{4474:(e,t,a)=>{"use strict";a.d(t,{$:()=>d,r:()=>o});var s=a(695155),r=a(212115),i=a(342442),n=a(99873),l=a(91337);let o=(0,n.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium 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 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef(({className:e,variant:t,size:a,asChild:r=!1,...n},d)=>{let c=r?i.DX:"button";return(0,s.jsx)(c,{className:(0,l.cn)(o({variant:t,size:a,className:e})),ref:d,...n})});d.displayName="Button"},39540:(e,t,a)=>{"use strict";a.d(t,{T:()=>n});var s=a(695155),r=a(212115),i=a(91337);let n=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)("textarea",{className:(0,i.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background 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",e),ref:a,...t}));n.displayName="Textarea"},91337:(e,t,a)=>{"use strict";a.d(t,{D:()=>n,cn:()=>i});var s=a(476910),r=a(975806);function i(...e){return(0,r.Q)((0,s.$)(e))}function n(e,t,a){let s=e=>{let t=e.replace("#","");return{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16)}},r=s(e),i=s(t),n=Math.round(r.r+(i.r-r.r)*a),l=Math.round(r.g+(i.g-r.g)*a),o=Math.round(r.b+(i.b-r.b)*a),d=e=>{let t=e.toString(16);return 1===t.length?"0"+t:t};return`#${d(n)}${d(l)}${d(o)}`}},626518:(e,t,a)=>{"use strict";a.d(t,{TR:()=>g,bq:()=>f,eb:()=>b,gC:()=>x,l6:()=>c,mi:()=>y,s3:()=>u,yv:()=>m});var s=a(695155),r=a(212115),i=a(859049),n=a(966088),l=a(909921),o=a(94514),d=a(91337);let c=i.bL,u=i.YJ,m=i.WT,f=r.forwardRef(({className:e,children:t,...a},r)=>(0,s.jsxs)(i.l9,{ref:r,className:(0,d.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,(0,s.jsx)(i.In,{asChild:!0,children:(0,s.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]}));f.displayName=i.l9.displayName;let p=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(i.PP,{ref:a,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,s.jsx)(l.A,{className:"h-4 w-4"})}));p.displayName=i.PP.displayName;let h=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(i.wn,{ref:a,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,s.jsx)(n.A,{className:"h-4 w-4"})}));h.displayName=i.wn.displayName;let x=r.forwardRef(({className:e,children:t,position:a="popper",container:r,...n},l)=>(0,s.jsx)(i.ZL,{container:r,children:(0,s.jsxs)(i.UC,{ref:l,className:(0,d.cn)("relative z-[100] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[(0,s.jsx)(p,{}),(0,s.jsx)(i.LM,{className:(0,d.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,s.jsx)(h,{})]})}));x.displayName=i.UC.displayName;let g=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(i.JU,{ref:a,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));g.displayName=i.JU.displayName;let b=r.forwardRef(({className:e,children:t,...a},r)=>(0,s.jsxs)(i.q7,{ref:r,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(o.A,{className:"h-4 w-4"})})}),(0,s.jsx)(i.p4,{children:t})]}));b.displayName=i.q7.displayName;let y=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(i.wv,{ref:a,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",e),...t}));y.displayName=i.wv.displayName},713408:(e,t,a)=>{Promise.resolve().then(a.bind(a,738365)),Promise.resolve().then(a.bind(a,781901))},738365:(e,t,a)=>{"use strict";a.d(t,{ContactForm:()=>x});var s=a(695155),r=a(212115),i=a(980642),n=a(88086),l=a(412651),o=a(506296),d=a(356204),c=a(4474),u=a(839658),m=a(779792),f=a(39540),p=a(626518);let h=[{value:"general",label:"General Question"},{value:"support",label:"Account & Billing"},{value:"feedback",label:"Feedback"},{value:"partnership",label:"Partnership"},{value:"other",label:"Other"}];function x(){let[e,t]=(0,r.useState)(""),[a,x]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[y,v]=(0,r.useState)(""),[j,w]=(0,r.useState)(""),[N,k]=(0,r.useState)("idle"),[C,S]=(0,r.useState)(null),P=async t=>{if(t.preventDefault(),S(null),!e.trim()||!a.trim()||!g||!y.trim())return void S("Please fill in all the fields.");k("submitting");try{let t=await fetch("/api/v1/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,email:a,topic:g,message:y,website:j})});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Something went wrong. Please try again.")}k("success")}catch(e){k("idle"),S(e instanceof Error?e.message:"Something went wrong. Please try again.")}};return(0,s.jsx)(i.N,{mode:"wait",children:"success"===N?(0,s.jsxs)(n.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4},className:"flex flex-col items-center justify-center text-center py-16 px-6",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-14 h-14 roun
1ded-full bg-green-100 dark:bg-green-900/30 mb-5",children:(0,s.jsx)(l.A,{className:"w-7 h-7 text-green-600 dark:text-green-400"})}),(0,s.jsx)("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Message sent"}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-400 max-w-sm leading-relaxed",children:"Thanks for reaching out. We usually reply within 1 to 2 business days at the email you provided."}),(0,s.jsx)(c.$,{variant:"outline",className:"mt-8",onClick:()=>{t(""),x(""),b(""),v(""),k("idle")},children:"Send another message"})]},"success"):(0,s.jsxs)(n.P.form,{initial:!1,exit:{opacity:0,y:-8},transition:{duration:.25},onSubmit:P,className:"space-y-6",noValidate:!0,children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(m.J,{htmlFor:"contact-name",children:"Name"}),(0,s.jsx)(u.p,{id:"contact-name",value:e,onChange:e=>t(e.target.value),placeholder:"Your name",maxLength:100,autoComplete:"name",required:!0})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(m.J,{htmlFor:"contact-email",children:"Email"}),(0,s.jsx)(u.p,{id:"contact-email",type:"email",value:a,onChange:e=>x(e.target.value),placeholder:"[email protected]",maxLength:254,autoComplete:"email",required:!0})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(m.J,{htmlFor:"contact-topic",children:"Topic"}),(0,s.jsxs)(p.l6,{value:g,onValueChange:b,children:[(0,s.jsx)(p.bq,{id:"contact-topic",children:(0,s.jsx)(p.yv,{placeholder:"What is this about?"})}),(0,s.jsx)(p.gC,{children:h.map(e=>(0,s.jsx)(p.eb,{value:e.value,children:e.label},e.value))})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(m.J,{htmlFor:"contact-message",children:"Message"}),(0,s.jsxs)("span",{className:"text-xs text-muted-foreground tabular-nums",children:[y.length,"/",5e3]})]}),(0,s.jsx)(f.T,{id:"contact-message",value:y,onChange:e=>v(e.target.value),placeholder:"Tell us how we can help...",maxLength:5e3,rows:6,required:!0})]}),(0,s.jsxs)("div",{className:"absolute w-px h-px overflow-hidden -m-px","aria-hidden":"true",children:[(0,s.jsx)("label",{htmlFor:"contact-website",children:"Website"}),(0,s.jsx)("input",{id:"contact-website",type:"text",value:j,onChange:e=>w(e.target.value),tabIndex:-1,autoComplete:"off"})]}),C&&(0,s.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:C}),(0,s.jsx)(c.$,{type:"submit",className:"w-full",size:"lg",disabled:"submitting"===N,children:"submitting"===N?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{className:"w-4 h-4 mr-2"}),"Send message"]})})]},"form")})}},779792:(e,t,a)=>{"use strict";a.d(t,{J:()=>d});var s=a(695155),r=a(212115),i=a(91760),n=a(99873),l=a(91337);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(i.b,{ref:a,className:(0,l.cn)(o(),e),...t}));d.displayName=i.b.displayName},839658:(e,t,a)=>{"use strict";a.d(t,{p:()=>n});var s=a(695155),r=a(212115),i=a(91337);let n=r.forwardRef(({className:e,type:t,...a},r)=>(0,s.jsx)("input",{type:t,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-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",e),ref:r,...a}));n.displayName="Input"}},e=>{e.O(0,[110536,909683,859049,609079,575139,781901,88086,260078,628441,793794,377358],()=>e(e.s=713408)),_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.