1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2920],{86247:(e,a,r)=>{Promise.resolve().then(r.bind(r,94122))},94122:(e,a,r)=>{"use strict";r.r(a),r.d(a,{ContactUsForm:()=>u});var s=r(13514);let t=e=>{let{className:a,fill:r="#C3C3C3",stroke:t="white",strokeWidth:o=2}=e;return(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[(0,s.jsx)("g",{clipPath:"url(#clip0_1235_8366)",children:(0,s.jsx)("path",{d:"M5.43191 13.9163L13.9172 5.431M13.9172 5.431L6.46537 5.05025M13.9172 5.431L14.2979 12.8828",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_1235_8366",children:(0,s.jsx)("rect",{width:"14",height:"14",fill:r,transform:"translate(0.101562 10) rotate(-45)"})})})]})};var o=r(66443),l=r(87302),n=r(15138),i=r(58899);let c=i.Ikc({name:i.YjP().min(2,"Name must be at least 2 characters").max(100,"Name is too long"),email:i.YjP().email("Please enter a valid email address"),country:i.YjP().min(1,"Please select a country"),reason:i.k5n(["general","feature","feedback","partnership","support","other"]),otherReason:i.YjP().optional(),message:i.YjP().min(75,"Message must be at least 75 characters").max(1250,"Message cannot exceed 1250 characters")}),d=c.refine(e=>"other"!==e.reason||e.otherReason&&e.otherReason.trim().length>=2,{message:"Please specify your reason (at least 2 characters)",path:["otherReason"]}),h=[{label:"General inquiry",value:"general"},{label:"Feature recommendation",value:"feature"},{label:"Feedback",value:"feedback"},{label:"Partnership / Business",value:"partnership"},{label:"Technical support",value:"support"},{label:"Other",value:"other"}],u=()=>{let[e,a]=(0,n.useState)({name:"",email:"",country:"",reason:"general",otherReason:"",message:""}),[r,i]=(0,n.useState)({}),[u,m]=(0,n.useState)({}),[g,p]=(0,n.useState)(!1),[x,b]=(0,n.useState)("idle"),f=(e,r)=>{a(a=>({...a,[e]:r,..."reason"===e&&"other"!==r?{otherReason:""}:{}})),u[e]&&v(e,r)},y=a=>{m(e=>({...e,[a]:!0})),v(a,e[a])},v=(e,a)=>{let r=c.pick({[e]:!0}).safeParse({[e]:a});if(r.success)i(a=>({...a,[e]:void 0}));else{var s;let a=(null==(s=r.error.flatten().fieldErrors[e])?void 0:s[0])||"Invalid field";i(r=>({...r,[e]:a}))}},F=async r=>{if(r.preventDefault(),(()=>{let a=d.safeParse(e);if(!a.success){let r={};return Object.entries(a.error.flatten().fieldErrors).forEach(e=>{let[a,s]=e;s&&s[0]&&(r[a]=s[0])}),"other"===e.reason&&(!e.otherReason||e.otherReason.trim().length<2)&&(r.otherReason="Please specify your reason (at least 2 characters)"),i(r),m({name:!0,email:!0,country:!0,reason:!0,otherReason:!0,message:!0}),!1}return i({}),!0})()){p(!0);try{(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok?(b("success"),a({name:"",email:"",country:"",reason:"general",otherReason:"",message:""}),m({}),i({})):b("error")}catch(e){b("error"),console.error("Form submission error:",e)}finally{p(!1)}}},w=e=>u[e]?r[e]:void 0,j="other"===e.reason;return(0,s.jsx)("div",{className:"bg-[#FFFFFF0D] rounded-[10px] p-4 py-10 lg:py-8 lg:p-8 lg:mt-0 mt-12 border border-[#C3C3C31A]",style:{boxShadow:"0 1px 2px 0 rgba(255, 255, 255, 0.08) inset"},children:(0,s.jsxs)("form",{onSubmit:F,className:"flex flex-col gap-6",children:[(0,s.jsx)(l.pd,{placeholder:"Name",type:"text",className:"w-full h-11 border-[0.5px] !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14]",label:"Name",value:e.name,onChange:e=>f("name",e.target.value),error:w("name"),maxLength:100}),(0,s.jsx)(l.pd,{placeholder:"[email protected]",type:"email",className:"w-full h-11 border-[0.5px] !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14]",label:"Email Address",value:e.email,onChange:e=>f("email",e.target.value),error:w("email"),maxLength:100}),(0,s.jsxs)("div",{onBlur:()=>{y("country")},tabIndex:0,children:[(0,s.jsx)(l.kF,{label:"Where are you contacting us from?",countryValue:e.country,onCountryChange:e=>f("country",e),className:"w-full"}),u.country&&r.country&&(0,s.jsx)("p",{className:"text-red-400 text-xs mt-1 ml-1",children:r.country})]}),(0,s.jsx)(l.ms,{label:"Reason for reaching out",options:h,placeholder:"Reason for reaching out",className:"".concat("w-full bg-[#A3A3A30D] h-11 rounded-[8px] border-[#FFFFFF14] border-[0.5px] !shadow-none flex items-center justify-between"," ").concat(u.reason&&r.reason?"border-red-500":""),value:e.reason,onChange:e=>{f("reason",e),y("reason")}}),u.reason&&r.reason&&(0,s.jsx)("p",{className:"text-red-400 text-xs mt-1 ml-1",children:r.reason}),(0,s.jsx)("div",{className:"overflow-hidden transition-all duration-300 ease-in-out ".concat(j?"block":"hidden "),children:(0,s.jsx)(l.pd,{placeholder:"Please specify your reason",type:"text",className:"w-full h-11 border-[0.5px] !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14]",label:"Please specify",value:e.otherReason||"",onChange:e=>f("otherReason",e.target.value),error:w("otherReason"),maxLength:100})}
1),(0,s.jsx)(l.fs,{placeholder:"Tell us how we can help...",className:u.message&&r.message?"border-red-500":"",label:"Leave a message",value:e.message,maxLength:1250,onChange:e=>f("message",e.target.value),error:w("message")}),"success"===x&&(0,s.jsx)("div",{className:"bg-green-500/20 border border-green-500/50 text-green-400 px-4 py-3 rounded-lg text-sm",children:"Message sent successfully! We'll get back to you soon."}),"error"===x&&(0,s.jsx)("div",{className:"bg-red-500/20 border border-red-500/50 text-red-400 px-4 py-3 rounded-lg text-sm",children:"Something went wrong. Please try again."}),(0,s.jsxs)(o.$,{type:"submit",disabled:g,className:"w-full mt-3 flex items-center gap-1 justify-center text-white text-base font-normal leading-[175%] bg-[#72B13A] rounded-lg px-5 py-2.5 disabled:opacity-50 disabled:cursor-not-allowed",style:"green",children:[g?"Sending...":"Send Message",!g&&(0,s.jsx)(t,{className:"w-4 h-4 mt-[3px]",fill:"white",stroke:"white",strokeWidth:2})]})]})})}}},e=>{e.O(0,[5893,4940,1512,7001,8916,8117,3638,9047,9696,7241,7571,356,2452,6547,8963,6059,6523,7445,6956,5010,50,7358],()=>e(e.s=86247)),_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.