1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5634],{5634:function(e,a,s){s.d(a,{Z:function(){return Z}});var r=s(14924),n=s(26042),t=s(69396),l=s(85893),i=s(59417),o=s(67814),c=s(96486),d=s(67294),m=s(19201),u=s(21580),x=s(14317),g=s(86454),h=s(89885),f=s(72685),b=s(35739),p=s(90114),v=s(61784),N=s(62461),j=u.Ryn({name:u.Z_8().check(x.gG()).min(1,"Name is required").min(2,"Name must be at least 2 characters"),email:u.Dom("Please enter a valid email address").check(x.gG()).min(1,"Email is required"),contact:u.Z_8().check(x.gG()).min(1,"Phone number is required").regex(/^[+]?[0-9\s\-()]{10,15}$/,"Please enter a valid phone number (10-15 digits)"),message:u.Z_8().check(x.gG()).min(1,"Message is required")});function y(e,a){var s=j.shape[e];if(!s)return"";var r=s.safeParse(a);return r.success?"":r.error.issues[0].message}function C(e){var a=e.icon,s=e.text,r=e.iconColor,n=void 0===r?"text-primary":r,t=e.iconBgColor,i=void 0===t?"bg-secondary":t,c=e.textColor,d=void 0===c?"text-muted-foreground":c;return(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:(0,N.cn)("flex items-center justify-center w-10 h-10 rounded-full shrink-0",i),children:(0,l.jsx)(o.G,{icon:a,className:(0,N.cn)("text-sm",n)})}),(0,l.jsx)("span",{className:(0,N.cn)("text-sm",d),children:s})]})}function w(e){var a=e.id,s=e.label,r=e.error,n=e.className,t=e.labelClassName,i=e.children;return(0,l.jsxs)("div",{className:(0,N.cn)("flex flex-col gap-2",n),children:[(0,l.jsx)("label",{htmlFor:a,className:(0,N.cn)(t),children:s}),i,r&&(0,l.jsx)("p",{className:"text-xs text-red-500 mb-0",children:r})]})}var k=(0,l.jsxs)(l.Fragment,{children:["Get in ",(0,l.jsx)("span",{className:"text-muted-foreground/60",children:"\u2014"}),(0,l.jsx)("br",{}),"touch with us"]}),_=(0,l.jsxs)(l.Fragment,{children:["Send message",(0,l.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-primary-foreground/20",children:(0,l.jsx)(o.G,{icon:i.eFW,className:"text-xs"})})]});function Z(e){var a=e.sectionClassName,s=void 0===a?"bg-background":a,o=e.containerClassName,u=void 0===o?"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-[0.85fr_1.15fr] gap-10 lg:gap-16 items-center":o,x=e.leftColumnClassName,j=void 0===x?"flex flex-col":x,Z=e.rightColumnClassName,E=void 0===Z?"bg-muted dark:bg-card rounded-[28px] p-6 md:p-10 dark:ring-1 dark:ring-inset dark:ring-white/10":Z,B=e.titleClassName,P=void 0===B?"text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[-0.03em] leading-[1.05] text-foreground mb-5":B,S=e.subtextClassName,G=void 0===S?"text-muted-foreground text-sm md:text-base leading-relaxed max-w-md mb-0":S,I=e.inputClassName,D=void 0===I?"h-12 rounded-xl border-border dark:border-white/10 bg-background dark:bg-white/[0.06] px-4 placeholder:text-muted-foreground/60 focus-visible:border-primary":I,q=e.labelClassName,F=void 0===q?"text-xs font-medium text-muted-foreground":q,T=e.buttonClassName,z=void 0===T?"h-12 rounded-full bg-primary pl-6 pr-2 text-sm font-medium":T,W=e.title,A=void 0===W?k:W,L=e.subtext,M=void 0===L?"We're here to help. Whether you have a question about our courses, need help with your account, or want to share feedback, our team is ready to assist you.":L,H=e.formTitle,R=void 0===H?"":H,U=e.formSubtext,X=void 0===U?"":U,Y=e.iconColor,$=void 0===Y?"text-primary":Y,O=e.iconBgColor,V=void 0===O?"bg-secondary":O,J=e.infoItemTextColor,K=void 0===J?"text-muted-foreground":J,Q=e.accentColor,ee=void 0===Q?"text-primary":Q,ae=e.infoContainerClassName,se=void 0===ae?"flex flex-col gap-3 empty:hidden mt-8":ae,re=e.submitLabel,ne=void 0===re?_:re,te=function(e){var a=e.target,s=a.name,l=a.value;if("contact"===s){var i=l.replace(/[^0-9\s+()-]/g,"");de((0,t.Z)((0,n.Z)({},ce),(0,r.Z)({},s,i)))}else de((0,t.Z)((0,n.Z)({},ce),(0,r.Z)({},s,l)));he[s]&&fe((0,t.Z)((0,n.Z)({},he),(0,r.Z)({},s,"")))},le=function(e){var a=e.target,s=a.name,l=y(s,a.value);fe((0,t.Z)((0,n.Z)({},he),(0,r.Z)({},s,l)))},ie=(0,d.useContext)(h.Z).appConfig,oe=(0,d.useState)({}),ce=oe[0],de=oe[1],me=(0,d.useState)(!1),ue=me[0],xe=me[1],ge=(0,d.useState)({}),he=ge[0],fe=ge[1],be=(0,d.useState)(!1),pe=be[0],ve=be[1];return(0,d.useEffect)((function(){(0,c.isEmpty)(ie.web_enableDisclaimer)||xe(!1)}),[ie.web_enableDisclaimer]),(0,l.jsx)("section",{className:(0,N.cn)("w-full py-12 lg:py-24 px-4",s),children:(0,l.jsxs)("div",{className:(0,N.cn)(u),children:[(0,l.jsxs)("div",{className:(0,N.cn)(j),children:[(0,l.jsxs)("section",{children:[(0,l.jsx)("h3",{className:(0,N.cn)(P),children:A}),M&&(0,l.jsx)("p",{className:(0,N.cn)(G),children:M})]}),(0,l.jsxs)("section",{className:(0,N.cn)(se),children:[ie.web_clientemail&&(0,l.jsx)(C,{icon:i.FU$,text:ie.web_clientemail,iconColor:$,iconBgColor:V,textColor:K}
1),ie.web_clientphone&&(0,l.jsx)(C,{icon:i.j1w,text:ie.web_clientphone,iconColor:$,iconBgColor:V,textColor:K}),!(0,c.isEmpty)(ie.web_contactImage)&&(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:ie.web_contactImage,alt:"Contact Us",width:600,height:600})})]})]}),(0,l.jsxs)("div",{className:(0,N.cn)(E),children:[R&&(0,l.jsx)("h3",{className:"text-2xl font-bold text-foreground mb-1",children:R}),X&&(0,l.jsx)("p",{className:"text-sm text-muted-foreground mb-6",children:X}),(0,l.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[(0,l.jsx)(w,{id:"contact-name",label:"Name",error:he.name,labelClassName:F,children:(0,l.jsx)(f.I,{id:"contact-name",type:"text",name:"name",value:ce.name||"",placeholder:"Enter your name",onChange:te,onBlur:le,className:(0,N.cn)(D,he.name?"border-red-500":"")})}),(0,l.jsx)(w,{id:"contact-phone",label:"Phone number",error:he.contact,labelClassName:F,children:(0,l.jsx)(f.I,{id:"contact-phone",type:"tel",name:"contact",value:ce.contact||"",placeholder:"Enter your phone number",onChange:te,onBlur:le,className:(0,N.cn)(D,he.contact?"border-red-500":"")})})]}),(0,l.jsx)(w,{id:"contact-email",label:"Email",error:he.email,labelClassName:F,children:(0,l.jsx)(f.I,{id:"contact-email",type:"email",name:"email",value:ce.email||"",placeholder:"Enter your email address",onChange:te,onBlur:le,className:(0,N.cn)(D,he.email?"border-red-500":"")})}),(0,l.jsxs)(w,{id:"contact-message",label:"How can we help you?",labelClassName:F,children:[(0,l.jsx)(v.g,{id:"contact-message",name:"message",rows:5,maxLength:120,value:ce.message||"",placeholder:"Your message...",onChange:te,onBlur:le,className:(0,N.cn)("resize-none min-h-[140px] rounded-2xl border-border dark:border-white/10 bg-background dark:bg-white/[0.06] p-4 placeholder:text-muted-foreground/60 focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-primary",he.message?"border-red-500":"")}),(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[he.message?(0,l.jsx)("p",{className:"text-xs text-red-500 mb-0",children:he.message}):(0,l.jsx)("span",{}),(0,l.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(ce.message||"").length,"/120"]})]})]}),!(0,c.isEmpty)(ie.web_enableDisclaimer)&&(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(p.X,{id:"disclaimer",checked:ue,onCheckedChange:function(e){return xe(e)}}),(0,l.jsx)("div",{className:"text-sm",dangerouslySetInnerHTML:{__html:ie.web_enableDisclaimer}})]}),(0,l.jsx)("div",{className:"flex justify-end",children:(0,l.jsx)(b.z,{className:(0,N.cn)(z),onClick:function(){!function(){var e={};return["name","email","contact","message"].forEach((function(a){var s=y(a,ce[a]);s&&(e[a]=s)})),fe(e),0===Object.keys(e).length}()?m.A.error("Please fix the errors before submitting"):(ce.toemail=ie.web_clientemail,ve(!0),(0,g.fX)(ce).then((function(){de({name:"",email:"",message:"",contact:""}),fe({}),m.A.info("Your details have been submitted")})).catch((function(){m.A.error("Error occurred please try again later")})).finally((function(){ve(!1)})))},disabled:pe||!(0,c.isEmpty)(ie.web_enableDisclaimer)&&!ue,size:"lg",children:pe?(0,l.jsxs)("span",{className:"flex items-center gap-2",children:[(0,l.jsxs)("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",fill:"none",children:[(0,l.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,l.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending..."]}):ne})}),(0,l.jsxs)("p",{className:"text-xs text-muted-foreground text-center mb-0",children:["By contacting us, you agree to our"," ",(0,l.jsx)("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:(0,N.cn)("font-medium",ee),children:"Terms of service"})," ","and"," ",(0,l.jsx)("a",{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:(0,N.cn)("font-medium",ee),children:"Privacy Policy"})]})]})]})]})})}},61784:function(e,a,s){s.d(a,{g:function(){return o}});var r=s(26042),n=s(99534),t=s(85893),l=s(67294),i=s(62461),o=l.forwardRef((function(e,a){var s=e.className,l=(0,n.Z)(e,["className"]);return(0,t.jsx)("textarea",(0,r.Z)({className:(0,i.cn)("flex min-h-[80px] w-full rounded-lg border border-input bg-background px-3 py-2 text-base text-foreground ring-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 md:text-sm",s),ref:a},l))}));o.displayName="Textarea"}}]);
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.