1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,159057,e=>{"use strict";var t=e.i(843476),a=e.i(519455),s=e.i(793479),r=e.i(271645),l=e.i(975157);let o=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)("textarea",{className:(0,l.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base 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 md:text-sm",e),ref:s,...a}));o.displayName="Textarea";var i=e.i(572226),n=e.i(922140),c=e.i(932043),d=e.i(994814),m=e.i(653145),x=e.i(903133),h=e.i(948148),u=e.i(486965),p=e.i(364569);e.s(["default",0,()=>{let l=(0,h.useTranslations)("dashboard.contact.contact_form"),{toast:b}=(0,n.useToast)(),[g,f]=(0,r.useState)(!1),j=(0,u.useCustomerStore)(e=>e.customer),v=(0,m.useForm)({resolver:(0,d.zodResolver)(c.contactFormSchema),defaultValues:{email:"",name:"",subject:"",message:""}}),y=async e=>{try{f(!0);let t=v.formState.errors;if(Object.keys(t).length>0)return;let a=await fetch("/api/communications",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e?.email||"",name:e?.name||"",subject:e?.subject||"",message:e?.message||""})});if(200!==a.status)throw Error("Failed to send message");v.reset(),b({title:l("success.title"),description:l("success.description")})}catch{b({variant:"destructive",title:l("error.title"),description:l("error.description")})}finally{f(!1)}};return(0,t.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-8 shadow-sm",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-foreground",children:l("title")}),(0,t.jsxs)("button",{type:"button",onClick:async()=>{let{showIntercom:t}=await e.A(77715);t(j?.email,j?.id,j?.displayName)},className:"mt-3 inline-flex items-center gap-2 rounded-xl border border-emerald-200 bg-emerald-50 px-3 py-2 text-xs font-medium text-emerald-700 hover:bg-emerald-100 dark:border-emerald-800 dark:bg-emerald-950/40 dark:text-emerald-400 dark:hover:bg-emerald-950/70 transition-colors",children:[(0,t.jsx)(p.Zap,{className:"w-3 h-3 flex-shrink-0"}),(0,t.jsxs)("span",{children:[l("alert.title")," -"," ",(0,t.jsx)("span",{className:"font-semibold underline underline-offset-2",children:l("alert.action")})]})]})]}),(0,t.jsx)(x.Form,{...v,children:(0,t.jsxs)("form",{className:"space-y-5",onSubmit:v.handleSubmit(y),children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[(0,t.jsx)(x.FormField,{control:v.control,name:"name",render:({field:e})=>(0,t.jsxs)(x.FormItem,{children:[(0,t.jsx)(x.FormLabel,{className:"text-sm font-medium",children:l("name.label")}),(0,t.jsx)(x.FormControl,{children:(0,t.jsx)(s.Input,{placeholder:l("name.placeholder"),...e})}),(0,t.jsx)(x.FormMessage,{})]})}),(0,t.jsx)(x.FormField,{control:v.control,name:"email",render:({field:e})=>(0,t.jsxs)(x.FormItem,{children:[(0,t.jsx)(x.FormLabel,{className:"text-sm font-medium",children:l("email.label")}),(0,t.jsx)(x.FormControl,{children:(0,t.jsx)(s.Input,{placeholder:l("email.placeholder"),...e})}),(0,t.jsx)(x.FormMessage,{})]})})]}),(0,t.jsx)(x.FormField,{control:v.control,name:"subject",render:({field:e})=>(0,t.jsxs)(x.FormItem,{children:[(0,t.jsx)(x.FormLabel,{className:"text-sm font-medium",children:l("subject.label")}),(0,t.jsx)(x.FormControl,{children:(0,t.jsx)(s.Input,{placeholder:l("subject.placeholder"),...e})}),(0,t.jsx)(x.FormMessage,{})]})}),(0,t.jsx)(x.FormField,{control:v.control,name:"message",render:({field:e})=>(0,t.jsxs)(x.FormItem,{children:[(0,t.jsx)(x.FormLabel,{className:"text-sm font-medium",children:l("message.label")}),(0,t.jsx)(x.FormControl,{children:(0,t.jsx)(o,{placeholder:l("message.placeholder"),className:"min-h-[140px] resize-none",...e})}),(0,t.jsx)(x.FormMessage,{})]})}),(0,t.jsxs)(a.Button,{disabled:g,className:"w-full rounded-xl font-semibold",type:"submit",size:"lg",children:[g?(0,t.jsx)(i.ReloadIcon,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(i.EnvelopeOpenIcon,{className:"mr-2 h-4 w-4"}),l("submit")]})]})})]})}],159057)},195021,e=>{"use strict";var t=e.i(843476),a=e.i(605131),s=e.i(861745),r=e.i(948148),l=e.i(520133),o=e.i(486965),i=e.i(615227),n=e.i(456420);let c={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};c.node;let d=(0,n.default)(c);var m=e.i(290135),m=m,x=e.i(420865),h=e.i(768877);let u={name:"megaphone",size:24,node:[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]};u.node;let p=(0,n.default)(u);var b=e.i(720565),g=e.i(103450),f=e.i(442874);e.s(["default",0,()=>{let n=(0,r.useTranslations)("dashboard.contact.contact_quick_actions"),c=(0,o.useCustomerStore)(e=>e.customer),u=(0,s.useLocale)(),j=(0,b.usePostHog)(),v=(0,g.getPrioritizedSocialChannels)(u,"chat")[0],y=[{icon:i.MessageCircle,iconColor:"text-emerald-500",iconBg:"bg-emerald-50 dark:bg-emerald-950/40",title:n("live_chat.title"),description:n("live_chat.description"),actionLabel:n("live_chat.action"),onClick:async()=>{let{showIntercom:t}=await e.A(77715);
1t(c?.email,c?.id,c?.displayName)}},{icon:d,iconColor:"text-blue-500",iconBg:"bg-blue-50 dark:bg-blue-950/40",title:n("faq.title"),description:n("faq.description"),actionLabel:n("faq.action"),href:"/help/"},{icon:m.default,iconColor:"text-violet-500",iconBg:"bg-violet-50 dark:bg-violet-950/40",title:n("email.title"),description:n("email.description"),actionLabel:n("email.action"),href:"mailto:"+a.AppEmail},{icon:x.MapPin,iconColor:"text-orange-500",iconBg:"bg-orange-50 dark:bg-orange-950/40",title:n("office.title"),description:`${a.CompanyAddress1} ${a.CompanyAddress2}`,actionLabel:n("office.action"),href:"https://www.google.com/maps/place/"+a.CompanyAddress1+"+"+a.CompanyAddress2,external:!0},{icon:p,iconColor:"text-sky-500",iconBg:"bg-sky-50 dark:bg-sky-950/40",title:n("community.title"),description:n("community.description"),actionLabel:n("community.action",{channel:v.label}),href:v.url,external:!0,onNavigate:()=>j?.capture(f.SOCIAL_LINK_CLICK_EVENT,{channel:v.key,placement:"contact_quick_actions",url:v.url,locale:u})}],N=({channel:e})=>{let a=e.icon;return(0,t.jsxs)("div",{className:"flex items-start gap-4 p-5 rounded-2xl border border-border bg-card hover:border-emerald-500/30 hover:shadow-md hover:-translate-y-0.5 transition-all duration-200 group",children:[(0,t.jsx)("div",{className:`flex-shrink-0 w-11 h-11 rounded-xl ${e.iconBg} flex items-center justify-center`,children:(0,t.jsx)(a,{className:`w-5 h-5 ${e.iconColor}`})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"font-semibold text-foreground text-sm",children:e.title}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground leading-relaxed",children:e.description}),(0,t.jsxs)("span",{className:"mt-2 inline-flex items-center gap-1 text-xs font-semibold text-emerald-700 dark:text-emerald-400 group-hover:gap-1.5 transition-all",children:[e.actionLabel,(0,t.jsx)(h.ArrowRight,{className:"w-3 h-3"})]})]})]})};return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-foreground",children:n("title")}),(0,t.jsx)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:"Choose the best way to reach us."})]}),(0,t.jsx)("div",{className:"space-y-3",children:y.map((e,a)=>e.onClick?(0,t.jsx)("button",{type:"button",className:"w-full text-left",onClick:e.onClick,children:(0,t.jsx)(N,{channel:e})},a):(0,t.jsx)(l.Link,{href:e.href,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},onClick:e.onNavigate,className:"block",children:(0,t.jsx)(N,{channel:e})},a))})]})}],195021)}]);
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.