1"use strict";(self.webpackChunk_griddo_cx=self.webpackChunk_griddo_cx||[]).push([[6788],{79736:function(e,t,r){r.r(t);var a=r(18134),o=r(81816),i=r(32356),n=r(70278),l=r(58379),s=r(52296),m=r(12374),c=r(81428),d=r(26322),p=r(76964),u=r(52343),f=(r(21598),r(63366)),x=r(71914),h=r(60218),g=r(37447),y=r(82086);const{Module:b}=g.A,E=u.default.label.withConfig({displayName:"EntrepreneurForm__CheckBoxLabel",componentId:"sc-116br8w-0"})(["transition:0.3s ease;position:absolute;left:0;width:24px;height:24px;background-color:",";border:1px solid ",";font-family:PT Serif;font-size:15px;"],e=>e.theme.colors.ui01,e=>e.error?e.theme.colors.error:e.theme.colors.ui05),w=u.default.input.withConfig({displayName:"EntrepreneurForm__CheckBox",componentId:"sc-116br8w-1"})(["cursor:pointer;opacity:0;z-index:1;min-width:24px;min-height:24px;margin-right:",";&:hover ~ ",'{&::after{content:"";display:block;width:10px;height:10px;margin:6px;}}','{&::after{content:"";display:block;width:10px;height:10px;margin:6px;box-shadow:1px 3px 3px 1px rgba(0,0,0,0.1);background:white;}}&:focus + ',"{border:1px solid red;}",""],e=>e.theme.spacing.xxs,E,E,E,e=>e.checked&&(0,u.css)(["&:checked + ","{transition:background 0.15s ease;background-color:",';border:0;&::after{content:"";border-left:1px solid ',";border-bottom:1px solid ",";transform:rotate(-45deg);display:block;height:5px;width:10px;margin:calc(((24px - 10px) / 2));}}"],E,e.theme.colors.interactive01,e.theme.colors.textOnInteractive01,e.theme.colors.textOnInteractive01)),k=(0,u.default)(n.Box).withConfig({displayName:"EntrepreneurForm__InputContainer",componentId:"sc-116br8w-2"})(["position:relative;flex:1;"]),v=(0,u.default)(n.Box).withConfig({displayName:"EntrepreneurForm__StyledInput",componentId:"sc-116br8w-3"})(["position:relative;width:100%;background-color:transparent;border:none;border-bottom:1px solid ",";outline:transparent;transition:0.3s ease;&:focus{border-bottom:1px solid ",";}"],e=>e.error?e.theme.colors.error:e.theme.colors.ui04,e=>e.theme.colors.focusLine),C=(0,u.default)(n.Text).withConfig({displayName:"EntrepreneurForm__StyledLabel",componentId:"sc-116br8w-4"})(["position:absolute;left:3px;top:",";transition:0.2s ease;"],e=>e.active?"20px":"50px"),N=u.default.textarea.withConfig({displayName:"EntrepreneurForm__StyledTextArea",componentId:"sc-116br8w-5"})(["position:relative;width:100%;background-color:transparent;border:none;border-bottom:1px solid ",";outline:transparent;transition:0.3s ease;margin-top:",";&:focus{border-bottom:1px solid ",";}::placeholder{font-size:13px;line-height:20px;color:",";font-style:italic;font-weight:400;font-family:PT Serif,serif;}"],e=>e.error?e.theme.colors.error:e.theme.colors.ui04,e=>e.m?e.theme.spacing.s:e.theme.spacing.m,e=>e.theme.colors.focusLine,e=>e.theme.colors.text04),T=(0,u.default)(n.Box).withConfig({displayName:"EntrepreneurForm__FileInput",componentId:"sc-116br8w-6"})(["display:none;::-webkit-file-upload-button{visibility:hidden;}"]),S=(0,u.default)(n.Text).withConfig({displayName:"EntrepreneurForm__ErrorMessage",componentId:"sc-116br8w-7"})(["padding-top:5px;"]),F=(0,u.default)(n.Inline).withConfig({displayName:"EntrepreneurForm__LegalConditionContainer",componentId:"sc-116br8w-8"})(["display:inline;"]),I=(0,u.default)(o.wp).withConfig({displayName:"EntrepreneurForm__LegalContidionsLink",componentId:"sc-116br8w-9"})(["cursor:pointer;transition:0.2s ease;display:inline-flex;&:hover{color:",";}"],e=>e.theme.colors.link01Hover),_=d.forwardRef(({type:e,id:t,name:r,errors:a,errorMessage:o,labelText:i,minWidth:n,ml:l},s)=>{const{0:p,1:u}=(0,d.useState)(!1);return d.createElement(k,{minWidth:n,ml:l},d.createElement(C,{as:"label",htmlFor:r,textStyle:p?"tinym":"subtitle03",color:p?"text02":"text04",active:p},i),d.createElement(v,{pt:p?{default:"m",m:"l"}:{default:"s",m:"m"},height:{default:"80px",m:"85px"},as:"input",type:e,id:t,name:r,errors:a,error:a,ref:s,onClick:()=>u(!0),onFocus:()=>u(!0),onBlur:e=>e.target.value?u(!0):u(!1),"data-testid":"input"}),d.createElement(m.N,null,a&&d.createElement(c.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0}
1,transition:{duration:.4},"data-testid":"formError"},d.createElement(S,{as:"div",color:"error",textStyle:"tinyxl"},o))))}),M=d.forwardRef(({type:e,name:t,errors:r,errorMessage:a,labelText:o,minWidth:s,ml:p,setValue:u,isMobile:x},h)=>{const{getNestedTranslation:g}=(0,i.s9)(),{0:y,1:b}=(0,d.useState)(g("forms.noFileSelected","No file selected")),E=d.useCallback(async e=>{var t,r;null!==(t=e.target.files)&&void 0!==t&&t[0]&&(b(null===(r=e.target.files)||void 0===r?void 0:r[0].name),u("image",e.target.files[0]))},[]);return d.createElement(d.Fragment,null,d.createElement(n.Flex,{minWidth:s,ml:p,alignItems:"center",mt:"xl",flexDirection:x?"column":"row"},d.createElement(f.A,{as:"div",fluid:{default:!0,s:!1},onClick:e=>(e=>{var t;e.preventDefault(),e.stopPropagation(),null==h||null===(t=h.current)||void 0===t||t.click()})(e),appearance:"secondary",rightIcon:d.createElement(l.A,{name:"attach",size:"24px","aria-hidden":!0})},g("forms.image.label","Attach your logo")),d.createElement(n.Text,{color:"text01",textStyle:"tinym",ml:"xs",mt:x&&"xxs"},"Max. 2MB - ",y),d.createElement(T,{height:{default:"80px",m:"85px"},as:"input",type:e,name:t,labelText:o,errors:r,error:r,ref:h,onChange:e=>E(e),"data-testid":"fileInput"})),d.createElement(m.N,null,r&&d.createElement(c.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4},"data-testid":"formError"},d.createElement(S,{as:"div",color:"error",textStyle:"tinyxl"},a))))});t.default=e=>{var t,r,o;const{subtitle:u,detail:k,heroSection:v,title01:C,title02:T,legalConditions:A,sectors:W,emailTo:L}=e,{register:q,handleSubmit:B,errors:P,setValue:z}=(0,p.mN)(),{0:D,1:O}=(0,d.useState)({conditions:!1,data:!1,information:!1}),{0:R,1:V}=(0,d.useState)(!1),{0:j,1:$}=(0,d.useState)((0,a.A)(W.split(";"))[0]||""),[Y,Z]=d.useState(!1),{publicApiUrl:U}=(0,i.ZN)(),{getNestedTranslation:H}=(0,i.s9)(),G=(0,i.kI)("s"),J=d.useRef(null);return d.createElement(h.A,null,d.createElement(n.Box,{bg:"ui02"},null==v?void 0:v.modules.map((e,t)=>d.createElement(g.B,Object.assign({},e,{key:t,bg:"ui02"})))),d.createElement(b,{flexDirection:{default:"column",l:"row"},my:{default:"xl",xl:"xxxl"},alignItems:"center"},(u||k)&&d.createElement(n.VStack,{gap:"s",mb:{default:"m",m:"l"}},u&&d.createElement(n.Text,{color:"text01",textStyle:"bodyLead",as:"div"},d.createElement(y.A,{allowAllTypes:!0,source:u})),k&&d.createElement(n.Text,{color:"text01",textStyle:"body",as:"div"},d.createElement(y.A,{source:k,allowAllTypes:!0}))),R?d.createElement(c.P.div,{initial:{y:-20,opacity:0},animate:{y:0,opacity:1},exit:{y:-20,opacity:0},transition:{duration:.7},"data-testid":"sentMessage"},d.createElement(n.Flex,{p:{default:"s",m:"m"},my:{default:"m",m:"l"},bg:"ui01",display:"flex"},d.createElement(n.Box,{mr:{default:"xs"}},d.createElement(l.A,{name:"radioCheck2",alt:"radio check",size:"32px",fill:"success","aria-hidden":!0})),d.createElement(n.Box,null,d.createElement(n.Box,null,d.createElement(n.Text,{color:"text01",textStyle:"headings"},H("forms.send.success.prefix","thank you"))),d.createElement(n.Box,null,d.createElement(n.Text,{color:"text04",textStyle:"subtitle02"},H("forms.send.success.suffix","the information has been sent correctly")))))):d.createElement(n.VStack,{as:"form",alignItems:{default:"flex-start",s:"flex-start"},onSubmit:B(async e=>{const t=e.image&&await(r=e.image,new Promise((e,t)=>{const a=new FileReader;a.readAsDataURL(r),a.onload=()=>e(a.result),a.onerror=e=>t(e)}));var r;const a={Name:e.name,"Last name":e.lastName,Program:e.program,Intake:e.intake,Email:e.email,Sector:j,Company:e.company,City:e.city,Country:e.country,Web:e.web,Description:e.description,"Accept legal conditions":D.conditions?"Yes":"No","Consent to data being published in the Foundation's website":D.data?"Yes":"No","Consent being informed about IE Foundation activities":D.information?"Yes":"No",subject:`New entrepreneur form - ${e.name} ${e.lastName}`,to:L,attachments:e.image&&[{content:t,contentType:e.image.type,filename:e.image.name}]};(0,s.B2)(`${U}/form`,a).then(e=>{null!=e&&200===e.status&&V(!0)}).catch(e=>{console.log(e)})})},C&&d.createElement(n.Text,{crop:!0,color:"text01",textStyle:"headingm"},C),d.createElement(n.Flex,{width:{default:"100%",m:"75%",l:"50%"},flexWrap:"wrap"},d.createElement(_,{type:"text",id:"firstName",name:"firstName",autocomplete:"given-name",errors:!!P.firstName&&P.firstName,ref:q({required:!0}),labelText:H("forms.firstName.label","First Name*"),errorMessage:H("forms.firstName.error","Enter a name"),minWidth:{default:"100%",s:"40%"},ml:{default:"0"}}),d.createElement(_,{type:"text",id:"lastName",name:"lastName",autocomplete:"family-name",errors:!!P.lastName&&P.lastName,ref:q({required:!0}),labelText:H("forms.lastName.label","Last Name*"),errorMessage:H("forms.lastName.error","Enter last name"),minWidth:{default:"100%",s:"40%"},ml:{default:"0",s:"64px"}}),d.createElement(_,{type:"text",id:"program",name:"program",errors:!!P.program&&P.program,ref:q({required:!0}),labelText:H("forms.program.label","Program*"),errorMessage:H("forms.program.error","Enter a program"),minWidth:{default:"100%",m:"40%"},ml:{default:"0"}}),d.createElement(_,{type:"text",id:"intake",name:"intake",errors:!!P.intake&&P.intake,ref:q({required:!0}),labelText:H("forms.intake.label","Intake*"),errorMessage:H("forms.intake.error","Enter a intake"),minWidth:{default:"100%",m:"40%"},ml:{default:"0",m:"64px"}}),d.createElement(_,{type:"email",id:"email",name:"email",autocomplete:"email",errors:!!P.email&&P.email,ref:q({required:!0,pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}),labelText:H("forms.email.label","Email*"),errorMessage:H("forms.email.error","Enter a valid email"),minWidth:{default:"100%",s:"40%"},ml:{default:"0"}})),T&&d.createElement(n.Text,{crop:!0,color:"text01",textStyle:"headingm",mt:{default:"l",m:"xl"}},T),d.createElement(n.Flex,{width:{default:"100%",m:"75%",l:"50%"},flexWrap:"wrap",mb:{default:"l",m:"xl"}},d.createElement(_,{type:"text",id:"company",name:"company",autocomplete:"organization",errors:!!P.company&&P.company,ref:q({required:!0}),labelText:H("forms.company.label","Company Name*"),errorMessage:H("forms.company.error","Enter a company"),minWidth:{default:"100%",s:"40%"},ml:{default:"0"}}),d.createElement(_,{type:"text",id:"city",name:"city",autocomplete:"street-address",errors:!!P.city&&P.city,ref:q({required:!0}),labelText:H("forms.city.label","City*"),errorMessage:H("forms.city.error","Enter a city"),minWidth:{default:"100%",s:"40%"},ml:{default:"0",s:"64px"}}),d.createElement(_,{type:"text",id:"country",name:"country",autocomplete:"country-name",errors:!!P.country&&P.country,ref:q({required:!0}),labelText:H("forms.country.label","Country*"),errorMessage:H("forms.country.error","Enter a country"),minWidth:{default:"100%",s:"40%"},ml:{default:"0"}}),d.createElement(x.A,{ml:{default:"0",s:"64px"},mt:{default:"s"},width:{default:"100%",s:"40%"},height:{default:"100%"},label:"Sector",header:j||(0,a.A)(W.split(";"))[0]||"",toggle:()=>Z(!Y),open:Y,options:W?(0,a.A)(W.split(";")):[],onClick:e=>{$(e),Z(!1)}}),d.createElement(_,{type:"text",id:"web",name:"web",autocomplete:"url",errors:!!P.web&&P.web,ref:q({}),labelText:H("forms.web.label","Web"),errorMessage:H("forms.web.error","Enter a web"),minWidth:{default:"100%"},ml:{default:"0"}}),d.createElement(N,{placeholder:H("forms.description.label","Short description (Max. 200 characters)*"),id:"description",name:"description",errors:!!P.description&&P.description,ref:q({required:!0,maxLength:200}),errorMessage:"required"===(null===(t=P.description)||void 0===t?void 0:t.type)?H("forms.description.error","Enter a description"):"maxLength"===(null===(r=P.description)||void 0===r?void 0:r.type)&&H("forms.description.errorLength","Max. 200 characters"),m:G,pt:{default:"s",m:"m"},height:{default:"80px",m:"85px"}}),P.description&&d.createElement(m.N,null,d.createElement(c.P.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4}},d.createElement(S,{as:"div",color:"error",textStyle:"tinyxl"},"required"===(null===(o=P.description)||void 0===o?void 0:o.type)?H("forms.description.error","Enter a description"):H("forms.description.errorLength","Max. 200 characters")))),d.createElement(M,Object.assign({type:"file",errors:!!P.image&&P.image,labelText:H("forms.image.label","image"),errorMessage:H("forms.image.error","enter image"),minWidth:{default:"100%"},ml:{default:"0"},name:"image",ref:J},q("image",{validate:e=>!e||e&&(null==e?void 0:e.size)<2e6}),{setValue:z,isMobile:G}))),d.createElement(n.Flex,{position:"relative",height:"100%",width:"100%"},d.createElement(w,{type:"checkbox",name:"acceptConditions",onChange:()=>O({...D,conditions:!D.conditions}),checked:D.conditions,ref:q({required:!0}),"data-testid":"checkConditions"}),d.createElement(E,{htmlFor:"acceptConditions",error:P.acceptConditions}),d.createElement(F,null,d.createElement(n.Text,{textStyle:"body"},H("forms.legalConditions.prefix","I accept the")+" "),d.createElement(I,Object.assign({},A,{color:"link01"}),d.createElement(n.Text,{textStyle:"body"},H("forms.legalConditions.linkText","Legal conditions"))))),P.acceptConditions&&d.createElement(m.N,null,d.createElement(c.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4}},d.createElement(S,{as:"div",color:"error",textStyle:"tinyxl"},H("forms.legalConditions.error","Legal conditions must be accepted")))),d.createElement(n.Flex,{position:"relative",height:"100%",width:"100%",pt:{default:"s",m:"m"}},d.createElement(w,{type:"checkbox",name:"acceptData",onChange:()=>O({...D,data:!D.data}),checked:D.data,ref:q({required:!1}),"data-testid":"checkData"}),d.createElement(E,{htmlFor:"acceptData"}),d.createElement(n.Text,{textStyle:"body"},H("forms.dataConditions.prefix","I consent, as a contributor, to my data being published in the Foundation's website."),"Â ")),d.createElement(n.Flex,{position:"relative",height:"100%",width:"100%",pt:{default:"s",m:"m"},pb:{default:"s",m:"l"}},d.createElement(w,{type:"checkbox",name:"acceptInformation",onChange:()=>O({...D,information:!D.information}),checked:D.information,ref:q({required:!1}),"data-testid":"checkInformation"}),d.createElement(E,{htmlFor:"acceptInformation"}),d.createElement(n.Text,{textStyle:"body"},H("forms.informationConditions.prefix","The IE Foundation organizes activities which may be of your interest. Please, mark the box if you are interested in being informed about this.")),"Â "),d.createElement(f.A,{as:"div",type:"submit",fluid:{default:!0,s:!1}},H("forms.send.label","send")))))}}}]);
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.