https://www.thefoundervoice.com/_next/static/chunks/app/(marketing)/support/page-0dd4292e69a230f1.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4610],{4935:(e,t,r)=>{"use strict";r.d(t,{SupportForm:()=>v});var n=r(95155),l=r(12115),a=r(97003),s=r(33789),i=r(67001),o=r(90235),d=r(93169),c=r(37609),u=r(27314),p=r(84336),m=r(18155),f=r(50984),h=r(92033),g=r(18720),x=r(30926);let y=(0,x.createServerReference)("40e2b294117ef4440bafe3c1b734e9934a4665655e",x.callServer,void 0,x.findSourceMapURL,"submitSupportRequest"),b=[{value:"billing",label:"Billing",description:"Plans, invoices, refunds",icon:d.A,tile:"tile-purple"},{value:"bug",label:"Something broke",description:"Errors, glitches, weirdness",icon:c.A,tile:"tile-orange"},{value:"account",label:"Account",description:"Login, profile, data",icon:u.A,tile:"tile-blue"},{value:"feature",label:"Feature request",description:"What should we build?",icon:p.A,tile:"tile-lime"},{value:"other",label:"Something else",description:"Press, partnerships, other",icon:m.A,tile:"tile-green"}];function v(e){let{defaultName:t="",defaultEmail:r="",isLoggedIn:d=!1}=e,[c,u]=(0,l.useState)(t),[p,m]=(0,l.useState)(r),[x,v]=(0,l.useState)("bug"),[w,j]=(0,l.useState)(""),[k,N]=(0,l.useState)(""),[A,S]=(0,l.useState)(null),[C,M]=(0,l.useTransition)();return A?(0,n.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-10 text-center",children:[(0,n.jsx)("div",{className:"tile-lime mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-2xl",children:(0,n.jsx)(f.A,{className:"h-7 w-7"})}),(0,n.jsx)("h2",{className:"font-display text-2xl tracking-tight",children:"Message sent"}),(0,n.jsxs)("p",{className:"mt-2 text-sm text-muted-foreground max-w-sm mx-auto",children:["We got it. A confirmation is on its way to"," ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:p}),". Expect a reply within a business day."]}),(0,n.jsxs)("p",{className:"mt-4 inline-flex items-center gap-2 rounded-full border border-border bg-muted px-3 py-1 font-data text-[11px] text-muted-foreground",children:["Ticket #",A.ticketId.slice(0,8)]}),(0,n.jsx)("div",{className:"mt-6",children:(0,n.jsx)(a.$,{variant:"outline",onClick:()=>{S(null),j(""),N("")},children:"Send another"})})]}):(0,n.jsxs)("form",{onSubmit:function(e){e.preventDefault(),M(async()=>{let e=await y({name:c,email:p,category:x,subject:w,message:k,pageUrl:window.location.href});e.success&&e.ticketId?(S({ticketId:e.ticketId}),g.toast.success("Sent.",{description:"We'll reply within a business day."})):g.toast.error("Couldn't send",{description:e.error})})},className:"rounded-2xl border border-border bg-card p-6 sm:p-8 space-y-6",children:[(0,n.jsxs)("fieldset",{className:"space-y-3",children:[(0,n.jsx)("legend",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"What's this about?"}),(0,n.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2",children:b.map(e=>{let t=e.icon,r=x===e.value;return(0,n.jsxs)("button",{type:"button",onClick:()=>v(e.value),"aria-pressed":r,className:"relative rounded-xl px-3 py-3 text-left transition-all ".concat(r?"".concat(e.tile," shadow-sm scale-[1.01]"):"border border-border bg-muted/30 text-muted-foreground hover:bg-muted/50"),children:[(0,n.jsx)(t,{className:"h-4 w-4 mb-1.5"}),(0,n.jsx)("p",{className:"text-xs font-semibold leading-tight",children:e.label}),(0,n.jsx)("p",{className:"text-[10px] mt-0.5 leading-tight ".concat(r?"opacity-80":"opacity-70"),children:e.description})]},e.value)})})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(o.J,{htmlFor:"name",children:"Name"}),(0,n.jsx)(s.p,{id:"name",name:"name",value:c,onChange:e=>u(e.target.value),placeholder:"Your name",required:!0,autoComplete:"name"})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(o.J,{htmlFor:"email",children:"Email"}),(0,n.jsx)(s.p,{id:"email",name:"email",type:"email",value:p,onChange:e=>m(e.target.value),placeholder:"[email protected]",required:!0,autoComplete:"email",readOnly:d,className:d?"bg-muted/50 cursor-not-allowed":""}),d&&(0,n.jsx)("p",{className:"font-data text-[10px] text-muted-foreground",children:"Linked to your account."})]})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(o.J,{htmlFor:"subject",children:"Subject"}),(0,n.jsx)(s.p,{id:"subject",name:"subject",value:w,onChange:e=>j(e.target.value),placeholder:"A short summary",required:!0,minLength:4,maxLength:120})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(o.J,{htmlFor:"message",children:"How can we help?"}),(0,n.jsx)(i.T,{id:"message",name:"message",rows:6,value:k,onChange:e=>N(e.target.value),placeholder:"Steps to reproduce, what you expected, what happened â the more detail the faster we can help.",required:!0,minLength:20,maxLength:5e3,className:"resize-none"}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("p",{className:"text-[11px] text-muted-foreground",children:k.length<20?"".concat(20-k.length," more characters needed"):"Looks good."}),(0,n.jsxs)("p",{className:"font-data text-[11px] text-muted-foreground",children:[k.length," / 5000"]})]})]}),(0,n.jsx)(a.$,{type:"submit",size:"lg",className:"w-full sm:w-auto",disabled:C,children:C?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Sendingâ¦"]}):"Send message"})]})}},14294:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12115);let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={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"};let s=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...p}=e;return(0,n.createElement)("svg",{ref:t,...a,width:s,height:s,stroke:r,strokeWidth:o?24*Number(i)/Number(s):i,className:l("lucide",d),...p},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:i,...o}=r;return(0,n.createElement)(s,{ref:a,iconNode:t,className:l("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),i),...o})});return r.displayName="".concat(e),r}},18155:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("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"}]])},25016:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var n=r(2821),l=r(75889);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,n.$)(t))}},27314:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},30926:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}});let n=r(41209),l=r(85153),a=r(77197)},32467:(e,t,r)=>{"use strict";r.d(t,{DX:()=>u,TL:()=>c});var n,l=r(12115),a=r(94446),s=r(95155),i=Symbol.for("react.lazy"),o=(n||(n=r.t(l,2)))[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(d(r)&&"function"==typeof o&&(r=o(r._payload)),l.isValidElement(r)){var s;let e,i,o=(s=r,(i=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(i=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),d=function(e,t){let r={...t};for(let n in t){let l=e[n],a=t[n];/^on[A-Z]/.test(n)?l&&a?r[n]=(...e)=>{let t=a(...e);return l(...e),t}:l&&(r[n]=l):"style"===n?r[n]={...l,...a}:"className"===n&&(r[n]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==l.Fragment&&(d.ref=t?(0,a.t)(t,o):o),l.cloneElement(r,d)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=l.forwardRef((e,r)=>{let{children:n,...a}=e;d(n)&&"function"==typeof o&&(n=o(n._payload));let i=l.Children.toArray(n),c=i.find(m);if(c){let e=c.props.children,n=i.map(t=>t!==c?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...a,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return(0,s.jsx)(t,{...a,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var u=c("Slot"),p=Symbol("radix.slottable");function m(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}},32894:(e,t,r)=>{"use strict";r.d(t,{b:()=>o});var n=r(12115);r(47650);var l=r(32467),a=r(95155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,l.TL)(`Primitive.${t}`),s=n.forwardRef((e,n)=>{let{asChild:l,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(l?r:t,{...s,ref:n})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),i=n.forwardRef((e,t)=>(0,a.jsx)(s.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var o=i},33789:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(95155),l=r(12115),a=r(25016);let s=l.forwardRef((e,t)=>{let{className:r,type:l,...s}=e;return(0,n.jsx)("input",{type:l,className:(0,a.cn)("flex h-9 w-full rounded-xl border border-input bg-transparent px-3 py-1 text-sm 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",r),ref:t,...s})});s.displayName="Input"},37609:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]])},45550:(e,t,r)=>{Promise.resolve().then(r.bind(r,4935)),Promise.resolve().then(r.t.bind(r,52619,23))},50984:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},67001:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(95155),l=r(12115),a=r(25016);let s=l.forwardRef((e,t)=>
1{let{className:r,...l}=e;return(0,n.jsx)("textarea",{className:(0,a.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...l})});s.displayName="Textarea"},83101:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(2821);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,s=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let a=l(t)||l(n);return s[e][a]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,o,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...l}=t;return Object.entries(l).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...d}[t]):({...i,...d})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},84336:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},90235:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var n=r(95155),l=r(12115),a=r(32894),s=r(83101),i=r(25016);let o=(0,s.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,n.jsx)(a.b,{ref:t,className:(0,i.cn)(o(),r),...l})});d.displayName=a.b.displayName},92033:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},93169:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},94446:(e,t,r)=>{"use strict";r.d(t,{s:()=>s,t:()=>a});var n=r(12115);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,n=e.map(e=>{let n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():l(e[t],null)}}}}function s(...e){return n.useCallback(a(...e),e)}},97003:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var n=r(95155),l=r(12115),a=r(32467),s=r(83101),i=r(25016);let o=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-semibold transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 active:scale-[0.98]",{variants:{variant:{default:"bg-gradient-to-br from-orange-500 to-orange-600 text-white hover:from-orange-500 hover:to-orange-500",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-card 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-9 px-4 py-2",sm:"h-8 rounded-full px-3 text-xs",lg:"h-10 rounded-full px-8",icon:"h-9 w-9 rounded-full"}},defaultVariants:{variant:"default",size:"default"}}),d=l.forwardRef((e,t)=>{let{className:r,variant:l,size:s,asChild:d=!1,...c}=e,u=d?a.DX:"button";return(0,n.jsx)(u,{suppressHydrationWarning:!0,className:(0,i.cn)(o({variant:l,size:s,className:r})),ref:t,...c})});d.displayName="Button"}},e=>{e.O(0,[4909,8720,2619,8441,1255,7358],()=>e(e.s=45550)),_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.