(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[962],{3200:function(e,t,r){"use strict";r.d(t,{X:function(){return m}});var a,n=r(5893),c=r(7294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}var o=function(e){return c.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16"},e),a||(a=c.createElement("path",{fill:"#131313",d:"m14.53 5.03-8 8a.75.75 0 0 1-1.062 0l-3.5-3.5a.751.751 0 1 1 1.063-1.062L6 11.438l7.47-7.469a.751.751 0 0 1 1.062 1.063z"})))},l=r(1386),i=r.n(l);let m=(0,c.forwardRef)((e,t)=>{let{isChecked:r,onChange:a,error:c,errorMessage:s,customText:l,containerClass:m}=e;return(0,n.jsxs)("div",{className:m,children:[(0,n.jsxs)("label",{className:c?i().labelError:i().label,children:[(0,n.jsx)("input",{type:"checkbox",className:i().checkbox,checked:r,onChange:e=>a(e.target.checked),ref:t}),(0,n.jsx)("span",{className:i().checkmark,children:r&&(0,n.jsx)(o,{})}),(0,n.jsx)("span",{className:i().labelText,children:l})]}),c&&s&&(0,n.jsx)("p",{className:"error",children:s})]})});m.displayName="CustomCheckbox"},1962:function(e,t,r){"use strict";r.d(t,{t:function(){return N}});var a,n,c,s,o,l,i,m=r(5893),u=r(128),_=r(7848),h=r(7344),d=r(4171),p=r(6365),x=r(7294);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}var v=function(e){return x.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"1em",height:"1em"},e),a||(a=x.createElement("rect",{width:99,height:99,y:1,fill:"#fff",rx:49.5})),n||(n=x.createElement("rect",{width:99,height:99,x:131,y:1,fill:"#1A05CC",rx:49.5})),c||(c=x.createElement("rect",{width:99,height:99,x:262,y:1,fill:"#1A05CC",rx:49.5})),s||(s=x.createElement("path",{stroke:"#fff",d:"M393 0v100M425 15v85M457 32v68M489 47v53M521 63v37M553 70v30M585 81v19"})))};function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}var g=function(e){return x.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 586 100"},e),o||(o=x.createElement("rect",{width:99,height:99,y:1,fill:"#fff",rx:49.5})),l||(l=x.createElement("rect",{width:99,height:99,x:131,y:1,fill:"#1A05CC",rx:49.5})),i||(i=x.createElement("rect",{width:99,height:99,x:262,y:1,fill:"#1A05CC",rx:49.5})))},j=r(8304),C=r(1664),w=r.n(C),b=r(3200),y=r(1745),S=r(8750),k=r.n(S);let N=()=>{let[e,t]=(0,x.useState)(!1),[r,a]=(0,x.useState)(""),[n,c]=(0,x.useState)(""),[s,o]=(0,x.useState)(""),[l,i]=(0,x.useState)(""),{errors:f,validationError:F,validateFieldOnChange:C,validateFields:S,setValidationError:N}=(0,d.Q)(),[E,P]=(0,x.useState)(!1),[M,O]=(0,x.useState)(!1);(0,x.useEffect)(()=>{O(!0)},[]);let B=(0,p.a)("(min-width: 1280px)"),T=(0,p.a)("(max-width: 1280px)"),W=(0,p.a)("(max-width: 600px)"),z=async t=>{t.preventDefault();let l=S({name:r,email:n,message:s,isChecked:e});if(!e){N(!0);return}if(l&&e)try{(await fetch("/",{method:"POST",body:(0,j.h)({"form-name":"Contact Form",name:r,email:n,message:s})})).ok&&(a(""),c(""),o(""),i(""),N(!1),P(!0))}catch(e){console.error("An error occurred",e)}};return(0,m.jsxs)("section",{className:"".concat(k().contactForm," container"),children:[(0,m.jsxs)("div",{className:k().contactForm__inner,children:[(0,m.jsx)("div",{className:k().contactForm__tagline,children:(0,m.jsxs)("h2",{className:k().contactForm__title,children:["SHARE YOUR",B&&(0,m.jsx)("br",{}),W&&(0,m.jsx)("br",{}),(0,m.jsx)("span",{className:"border-word",children:"IDEAS"}),B&&(0,m.jsx)("br",{}),T&&(0,m.jsx)("br",{}),"TO MAKE THEM",W&&(0,m.jsx)("br",{}),B&&(0,m.jsx)("br",{}),(0,m.jsx)("span",{className:"border-word",children:"REAL"})]})}),E?(0,m.jsx)(h.Z,{}):(0,m.jsxs)("div",{className:k().contactForm__formArea,children:[(0,m.jsx)("p",{className:k().contactForm__text,children:"Feel free to reach out if you want to collaborate with us, or simply have a chat."}),(0,m.jsxs)("form",{className:k().contactForm__form,name:"Contact Form",method:"POST",id:"Contact Form","data-netlify":"true",onSubmit:z,children:[(0,m.jsx)("input",{type:"hidden",name:"form-name",value:"Contact Form"}),(0,m.jsx)("p",{hidden:!0,children:(0,m.jsxs)("label",{children:["Don't fill this out:"," ",(0,m.jsx)("input",{value:l,name:"bot_field",onChange:e=>i(e.target.value)})]})}),(0,m.jsxs)("div",{className:k().contactForm__inputsWrapper,children:[(0,m.jsx)(u.I,{value:r,onChange:e=>a(e),name:"name",type:"text",placeholder:"Name",errorMessage:f.name,required:!0,inputFontSize:"18px",placeholderFontSize:"18px",validateOnChange:C}),(0,m.jsx)(u.I,{value:n,onChange:e=>c(e),name:"email",type:"email",placeholder:"Email",errorMessage:f.email,required:!0,inputFontSize:"18px",placeholderFontSize:"18px",validateOnChange:C}),(0,m.jsx)(y.g,{required:!1,value:s,onChange:e=>o(e),name:"message",placeholder:"Message",errorMessage:f.message,textareaFontSize:"18px",placeholderFontSize:"18px",validateOnChange:C})]}),(0,m.jsx)(b.X,{isChecked:e,onChange:e=>t(e),error:F&&!e,errorMessage:"You must accept the terms to proceed.",customText:(0,m.jsxs)(m.Fragment,{children:["I consent to receive email communication from SDA in accordance with"," ",(0,m.jsx)(w(),{href:"/privacy-policy",children:(0,m.jsx)("span",{className:"".concat(k().privacyPolicyText,"  link-text"),children:"Privacy Policy."})})]})}),(0,m.jsx)(_.z,{variant:"default",size:"default",type:"submit",className:k().contactForm__btn,children:"Send Message"})]})]})]}),(0,m.jsxs)("div",{className:k().contactForm__contactBox,children:[(0,m.jsx)("div",{className:k().contactForm__svgWrapper,children:B?(0,m.jsx)(v,{}):(0,m.jsx)(g,{})}),(0,m.jsxs)("div",{className:k().contactForm__info,children:[(0,m.jsx)("p",{className:k().contactForm__text,children:"Don't like the forms? Drop us a line via email."}),(0,m.jsx)(w(),{href:"mailto:contact@sda.company",className:"".concat(k().contactForm__mail," link-text"),children:"contact@sda.company"}),(0,m.jsxs)("p",{className:k().contactForm__text,children:["...or give us a call."," ",(0,m.jsx)(w(),{href:"tel:16466634507",className:"".concat(k().contactForm__phone," link-text"),children:"+1 646 663 4507"})]})]})]})]})}},128:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var a=r(5893),n=r(8389),c=r(512),s=r(7294),o=r(2670),l=r.n(o);let i=e=>{let{value:t,onChange:r,errorMessage:o,type:i="text",placeholder:m,name:u,required:_=!1,setStarColored:h=!1,onBlur:d,onFocus:p,additionalClassNames:x="",placeholderClassName:f="",inputFontSize:v="20px",placeholderFontSize:F="20px",validateOnChange:g}=e,[j,C]=(0,s.useState)(!1),w=!o&&t;return(0,a.jsxs)("div",{className:(0,c.Z)(l().input_wrapper,x),children:[(0,a.jsxs)("div",{className:l().placeholderWrapper,children:[(0,a.jsx)("input",{value:t,onChange:e=>{let t=e.target.value;r(t),null==g||g(u,t)},onFocus:e=>{null==p||p(e),C(!0)},onBlur:e=>{null==d||d(e),C(!1)},type:i,className:(0,c.Z)(l().input,{inputError:o,valid:w}),required:_,name:u,style:{fontSize:v}}),!t&&!j&&(0,a.jsx)(n.Z,{placeholder:m,required:_,setStarColored:h,className:f,style:{fontSize:F}})]}),w&&(0,a.jsx)("div",{className:"completed",children:"Completed!"}),o&&(0,a.jsx)("div",{className:"error",children:o})]})}},8389:function(e,t,r){"use strict";var a=r(5893),n=r(2190),c=r.n(n);t.Z=e=>{let{placeholder:t,required:r,setStarColored:n,className:s,style:o}=e;return(0,a.jsxs)("span",{className:"".concat(c().customPlaceholder," ").concat(s),style:o,children:[t,r&&(0,a.jsx)("span",{className:n?c().coloredStar:"",children:" *"})]})}},1745:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var a=r(5893),n=r(8389),c=r(512),s=r(7294),o=r(9972),l=r.n(o);let i=e=>{let{value:t,onChange:r,errorMessage:o,placeholder:i,name:m,required:u=!1,setStarColored:_=!1,onBlur:h,onFocus:d,additionalClassNames:p="",placeholderClassName:x="",textareaFontSize:f="20px",placeholderFontSize:v="20px",validateOnChange:F}=e,[g,j]=(0,s.useState)(!1),C=!o&&t;return(0,a.jsxs)("div",{className:(0,c.Z)(l().textarea_wrapper,p),children:[(0,a.jsxs)("div",{className:l().placeholderWrapper,children:[(0,a.jsx)("textarea",{value:t,onChange:e=>{let t=e.target.value;r(t),null==F||F(m,t)},onFocus:e=>{null==d||d(e),j(!0)},onBlur:e=>{null==h||h(e),j(!1)},className:(0,c.Z)(l().textarea,{inputError:o,valid:C}),required:u,name:m,style:{fontSize:f}}),!t&&!g&&(0,a.jsx)(n.Z,{placeholder:i,required:u,setStarColored:_,className:x,style:{fontSize:v}})]}),C&&(0,a.jsx)("div",{className:"completed",children:"Completed!"})," ",o&&(0,a.jsx)("div",{className:"error",children:o})]})}},7344:function(e,t,r){"use strict";var a=r(5893),n=r(4529),c=r.n(n);t.Z=()=>(0,a.jsxs)("div",{className:c().successSection,children:[(0,a.jsxs)("div",{className:c().successSection__wrapper,children:[(0,a.jsx)("svg",{width:"108",height:"108",viewBox:"0 0 108 108",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M98.0818 33.9568L44.0818 87.9568C43.6115 88.4287 43.0526 88.8032 42.4372 89.0587C41.8219 89.3142 41.1621 89.4458 40.4958 89.4458C39.8295 89.4458 39.1698 89.3142 38.5544 89.0587C37.9391 88.8032 37.3802 88.4287 36.9099 87.9568L13.2849 64.3318C12.814 63.8609 12.4404 63.3018 12.1856 62.6865C11.9307 62.0713 11.7996 61.4118 11.7996 60.7458C11.7996 60.0799 11.9307 59.4204 12.1856 58.8051C12.4404 58.1899 12.814 57.6308 13.2849 57.1599C13.7558 56.689 14.3149 56.3154 14.9301 56.0606C15.5454 55.8057 16.2049 55.6745 16.8708 55.6745C17.5368 55.6745 18.1963 55.8057 18.8115 56.0606C19.4268 56.3154 19.9859 56.689 20.4568 57.1599L40.5001 77.2032L90.9183 26.7933C91.8694 25.8423 93.1593 25.308 94.5043 25.308C95.8493 25.308 97.1392 25.8423 98.0902 26.7933C99.0413 27.7444 99.5756 29.0343 99.5756 30.3793C99.5756 31.7243 99.0413 33.0142 98.0902 33.9652L98.0818 33.9568Z",fill:"#FFE01B"})}),(0,a.jsx)("h2",{className:c().successSection__title,children:"Thank You!"})]}),(0,a.jsx)("p",{className:c().successSection__text,children:"Form is successfully submitted. We`ll contact you soon!"})]})},4171:function(e,t,r){"use strict";r.d(t,{Q:function(){return n}});var a=r(7294);let n=()=>{let[e,t]=(0,a.useState)({}),[r,n]=(0,a.useState)(!1),c=(e,t,r)=>{switch(e){case"name":if(!t)return"Please enter your name";if(t.trim().length<=3)return"Enter more than 3 characters";break;case"fullname":if(!t)return"Please enter your full name";if(t.trim().split(" ").length<2)return"Fullname must contain 2 words";break;case"email":if(!t.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i))return"Please enter a valid email";break;case"telegram":if(!t)return"Please enter your username";if(!t.startsWith("@"))return"Username must start with @";break;case"linkedin":if(!t)return"Please enter your LinkedIn profile";if(!t.match(/^https?:\/\/(www\.)?linkedin\.com\/.*$/i))return"Please enter a valid link";break;case"message":if(t&&(t.length<10||t.length>500))return"Message should be between 10 and 500 characters";break;case"isChecked":if(!t)return"You must accept the terms to proceed";break;case"selectedFile":if(!t)return"Please attach your CV (PDF or DOC)";break;case"selectedOption":if("other"===r.selectedOption&&(!r.otherInputValue||r.otherInputValue.trim().length<=4))return"Please specify the source with more than 4 characters";break;default:return null}};return{errors:e,validationError:r,validateFields:e=>{let r=!0,a={};return Object.keys(e).forEach(t=>{let n=c(t,e[t],e);n&&(a[t]=n,r=!1)}),t(a),n(!r),r},validateFieldOnChange:(e,r,a)=>{let n=c(e,r,a);t(t=>({...t,[e]:n}))},setValidationError:n}}},6365:function(e,t,r){"use strict";r.d(t,{a:function(){return n}});var a=r(7294);let n=e=>{let[t,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{{let t=window.matchMedia(e);r(t.matches);let a=()=>r(t.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)}},[e]),t}},8304:function(e,t,r){"use strict";r.d(t,{h:function(){return a}});let a=e=>{let t=new FormData;return Object.keys(e).forEach(r=>{t.append(r,e[r])}),t}},1386:function(e){e.exports={label:"Checkbox_label__1mmWr",labelError:"Checkbox_labelError__xHiFo",labelText:"Checkbox_labelText__JHYmG",checkbox:"Checkbox_checkbox__o2fkP",checkmark:"Checkbox_checkmark__X1hq6"}},8750:function(e){e.exports={privacyPolicyText:"ContactForm_privacyPolicyText___FYzF",contactForm__inner:"ContactForm_contactForm__inner___ub3F",contactForm__inputsWrapper:"ContactForm_contactForm__inputsWrapper__9_6p4",contactForm__svgWrapper:"ContactForm_contactForm__svgWrapper__MJdXC",contactForm__form:"ContactForm_contactForm__form__p_lkW",contactForm__formArea:"ContactForm_contactForm__formArea__R0lwp",contactForm__info:"ContactForm_contactForm__info__qw8lt",contactForm__tagline:"ContactForm_contactForm__tagline__Aqfo5",contactForm__contactBox:"ContactForm_contactForm__contactBox__wMD5T",contactForm__textarea:"ContactForm_contactForm__textarea__FIo5a",contactForm__title:"ContactForm_contactForm__title__MayvD",contactForm__text:"ContactForm_contactForm__text__JjTnW",contactForm__mail:"ContactForm_contactForm__mail__7joBr",contactForm__btn:"ContactForm_contactForm__btn__M_Iyi",pulse:"ContactForm_pulse__tFB5Z"}},2670:function(e){e.exports={input_wrapper:"Input_input_wrapper__ETBDc",input:"Input_input__mtyWc",placeholderWrapper:"Input_placeholderWrapper__CMkgL"}},2190:function(e){e.exports={customPlaceholder:"Placeholder_customPlaceholder__GttfG",coloredStar:"Placeholder_coloredStar__5tb_e"}},9972:function(e){e.exports={textarea_wrapper:"Textarea_textarea_wrapper__vhEfn",textarea:"Textarea_textarea__Q_Ke_"}},4529:function(e){e.exports={successSection:"SuccessBanner_successSection__1EliQ",fadeInUp:"SuccessBanner_fadeInUp__7aJGM",successSection__wrapper:"SuccessBanner_successSection__wrapper__0jLHz",successSection__title:"SuccessBanner_successSection__title__gmW7t",successSection__text:"SuccessBanner_successSection__text__tfBsv"}}}]);