PageSourceSearch

https://www.imec.be/_next/static/chunks/7516.697cb8084fbe8035.js

js imec.be collected 2026-09-24 08:44:26 UTC 8,730 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7516],{38767:e=>{e.exports={select:"request_select__YtJ7U",form:"request_form___HDMP","form-row":"request_form-row__nPPZp",request:"request_request__EPYXF","request-title":"request_request-title__PUJeR","request-identification":"request_request-identification__Sbs0p","request-topic":"request_request-topic__hQqan","request-identification-title":"request_request-identification-title__M_clZ","request-topic-title":"request_request-topic-title__YFA4B","request-contact":"request_request-contact__6_Yk0","request-contact-link":"request_request-contact-link__yunuY","request-contact-link-text":"request_request-contact-link-text__TrqFW","request-contact-link-circle":"request_request-contact-link-circle__Cogh_","request-contact-link-circle-icon":"request_request-contact-link-circle-icon__Dkhez"}},49062:(e,t,r)=>{"use strict";r.d(t,{fh:()=>f,rB:()=>u,zB:()=>d});var a=r(95155),s=r(95582),i=r(12115),c=r(52089),o=r(24341),n=r.n(o);let l=(0,r(37702).D)(n()),m=["textarea","select","radio","checkbox"],u=e=>{let{warning:t}=e;return(0,a.jsx)("div",{className:l.warning(),children:(0,a.jsx)(c.A,{height:t?"auto":0,animateOpacity:!0,children:(0,a.jsx)("p",{className:l.warning.message(),children:t})})})},d=e=>{let{children:t,type:r,label:c,name:o,help:n,fixedValue:u,mod:d,component:f,onFocus:h,onBlur:_,className:x,...p}=e,[j,q]=(0,i.useState)(!1),b=f||r,g=m.indexOf(b)>-1?b:"text",[v,N]=(0,s.Mt)({name:o,type:r,...p}),y=(0,i.useRef)(void 0);(0,i.useEffect)(()=>{},[N.error]);let w="checkbox"!==r||v.value?"text"===g||"textarea"===g?{value:v.value||""}:{}:{value:"true"};u&&(w={value:u});let k={focus:j,filled:!!N.value||!!u,error:!!N.error};return(0,a.jsxs)("div",{className:l.field.with(x).mod(d).mod(g).is(k)(),children:[(0,a.jsxs)("label",{className:l.field.label.is(k)(),children:[(0,a.jsx)(f||"input",{ref:y,type:r,...p,...v,...w,onFocus:e=>{q(!0),h&&h(e)},onBlur:e=>{q(!1),_&&_(e)},className:l.field.label.field.mod({textarea:"textarea"===p.as}).is(k)(),children:t}),(0,a.jsxs)("div",{className:l.field.label.text.is(k)(),children:[c,p.required&&!p.hide_required&&(0,a.jsx)("span",{children:"\xa0*"})]})]}),N.error&&(0,a.jsx)("div",{className:l.field.error(),children:N.error}),n&&(0,a.jsx)("div",{className:l.field.help(),children:n})]})},f=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:l.row(),children:t})}},50430:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});let a=e=>{if(!e)return null;let t="\xe0\xe1\xe2\xe4\xe6\xe3\xe5āăą\xe7ćčđď\xe8\xe9\xea\xebēėęěğǵḧ\xee\xef\xedīį\xecłḿ\xf1ńǹň\xf4\xf6\xf2\xf3œ\xf8ō\xf5ṕŕř\xdfśšşșťț\xfb\xfc\xf9\xfaūǘůűųẃẍ\xff\xfdžźż\xb7/_,:;",r=RegExp(t.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,"-").replace(r,e=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnooooooooprrsssssttuuuuuuuuuwxyyzzz------".charAt(t.indexOf(e))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}},62779:e=>{e.exports={"contactform-request":"contactform_contactform-request__TLeOQ","contactform-request-title":"contactform_contactform-request-title__lrdg_","contactform-form":"contactform_contactform-form__mE_4N",form:"contactform_form__cDwL8","form-title":"contactform_form-title__qeADh","form-content":"contactform_form-content__kRFU2","form-button":"contactform_form-button__ThgHQ","form-error":"contactform_form-error__HFc5q","form-error-text":"contactform_form-error-text__XTwyY","form-mobile":"contactform_form-mobile__X3TRS"}},67516:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Contactform:()=>S});var a=r(95155),s=r(95582),i=r(49062),c=r(20063),o=r(12115),n=r(27122),l=r(94718);r(47892);var m=r(87825),u=r(37702),d=r(38767),f=r.n(d);let h=(0,u.D)(f()),_=e=>{let t=(0,m.Bd)();return(0,a.jsx)("div",{className:h.form(),children:(0,a.jsxs)("div",{className:h.form.row(),children:[(0,a.jsxs)("div",{className:h.request.identification(),children:[(0,a.jsx)("label",{className:h.request.identification.title(),htmlFor:"identification-select",children:t.request.identification}),(0,a.jsx)(x,{options:e.identifications.map(e=>e.name),name:"identification",required:!0,id:"identification-select","aria-label":t.request.identification_arialabel})]}),(0,a.jsxs)("div",{className:h.request.topic(),children:[(0,a.jsx)("label",{className:h.request.topic.title(),htmlFor:"topic-select",children:t.request.topics}),(0,a.jsx)(x,{options:e.topics.map(e=>e.name),name:"topic",required:!0,id:"topic-select","aria-label":t.request.topics_arialabel})]})]})})},x=e=>{let{name:t,options:r,...i}=e,[c,o]=(0,s.Mt)({name:t,...i});return(0,a.jsxs)("select",{...i,...c,className:h.select(),children:[(0,a.jsx)("option",{}),r.map((e,t)=>(0,a.jsx)("option",{value:e,children:e},t))]})};var p=r(97629),j=r(38050),q=r.n(j),b=r(92589),g=r(50810),v=r(50430),N=r(42215),y=r(89169),w=r(62779),k=r.n(w);let B=(0,u.D)(k()),S=e=>{let{_type:t,company_fields:r,title:i,enable_bar:m,topics:u,identifications:d,no_phone:f,recipients:h}=e,x=(0,c.useRouter)(),j=(0,c.useSearchParams)(),w=j.get("contactblock")||void 0,k=j.get("contactperson")||void 0,S=j.get("identification")||void 0,P=j.get("origin_url")||void 0,F=j.get("subject")||void 0,R=j.get("topic")||void 0,{contactformsubmit:A}=(0,g.J)(),[C,D]=(0,o.useState)(!1),[O,T]=(0,o.useState)(!1),[Y,Q]=(0,o.useState)(!1),H=(0,y.h)(e),I=async()=>{try{let e=await E();if(!e)return Q(!0),D(!1);return e}catch(e){return Q(!0),D(!1)}};return(0,o.useEffect)(()=>{(w||k||P||S||R)&&(0,b.H7)(H)}),(0,a.jsx)(l.e,{type:t,anchorID:H,className:B.contactform(),children:(0,a.jsx)(s.l1,{initialValues:{identification:S,topic:R},onSubmit:async(e,t)=>{let{setErrors:r,resetForm:a}=t;if(T(!1),Q(!1),C)return null;D(!0);let s=await I();return s?q()((0,N.nh)(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,contactblock:w,origin_url:P,contactperson:k,subject:F,recipients:(h||[]).map(e=>e.id),token:s})}).then(e=>{if(!e.ok)return e.json().then(e=>
1{"recaptcha"in e&&(Q(!0),n.Cp(e.recaptcha)),r(e)});a(),x.push(A.url)}).catch(e=>{console.error(e),T(!0)}).finally(()=>{D(!1)}):null},children:(0,a.jsxs)(s.lV,{children:[m&&(0,a.jsx)("div",{className:B.contactform.request(),children:(0,a.jsxs)(p.S.Container,{children:[(0,a.jsx)("h3",{className:B.contactform.request.title(),children:i}),(0,a.jsx)(_,{identifications:d,topics:u})]})}),(0,a.jsx)("div",{className:B.contactform.form(),children:(0,a.jsxs)(p.S.Container,{children:[!m&&(0,a.jsx)(p.S.H2,{id:(0,v.Y)(i),className:B.form.title(),mod:"blueline",children:i}),(0,a.jsx)(z,{title:i,company_fields:r,unknownError:O,recaptchaError:Y,hidePhone:f})]})})]})})})},z=e=>{let{company_fields:t,unknownError:r,recaptchaError:s,hidePhone:o}=e,n=(0,c.useSearchParams)().get("subject"),l=(0,m.Bd)();return(0,a.jsxs)("div",{className:B.form(),children:[(0,a.jsxs)("div",{className:B.form.content(),children:[(0,a.jsxs)(i.fh,{children:[(0,a.jsx)(i.zB,{mod:{50:!0},name:"firstname",required:!0,label:l.form.firstname}),(0,a.jsx)(i.zB,{mod:{50:!0},name:"lastname",required:!0,label:l.form.lastname})]}),(0,a.jsx)(i.zB,{name:"email",type:"email",required:!0,label:l.form.email}),!o&&(0,a.jsx)(i.zB,{name:"phone",type:"tel",required:!0,label:l.form.phone}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)(i.zB,{name:"company",required:!0,label:l.form.company}),(0,a.jsx)(i.zB,{name:"address",label:l.form.address}),(0,a.jsxs)(i.fh,{children:[(0,a.jsx)(i.zB,{mod:{50:!0},name:"zipcode",label:l.form.zipcode}),(0,a.jsx)(i.zB,{mod:{50:!0},name:"city",label:l.form.city})]}),(0,a.jsx)("br",{})]}),n&&(0,a.jsx)(i.zB,{name:"subject",fixedValue:n,readOnly:!0,label:l.form.subject}),(0,a.jsx)(i.zB,{as:"textarea",component:"textarea",name:"message",required:!0,label:l.form.message}),(0,a.jsx)(i.zB,{name:"mobile",className:B.form.mobile()}),(0,a.jsx)("div",{className:B.form.button(),children:(0,a.jsxs)(p.S.Button,{as:"button",type:"submit",mod:"rounded",children:[(0,a.jsx)(p.S.ButtonText,{children:l.form.submit}),(0,a.jsx)(p.S.ButtonIcon,{})]})})]}),r&&(0,a.jsx)("div",{className:B.form.error(),children:(0,a.jsx)("p",{className:B.form.error.text(),children:"Error: Something went wrong. Please try again later."})}),s&&(0,a.jsx)("div",{className:B.form.error(),children:(0,a.jsx)("p",{className:B.form.error.text(),children:"Error: Something went wrong with recaptcha validation. Please try again later."})})]})};async function E(){return"undefined"==typeof grecaptcha?null:new Promise((e,t)=>{grecaptcha.enterprise.ready(async()=>{try{let t=await grecaptcha.enterprise.execute("6LfcQI0sAAAAAOcQe6Rqw_RQ53FFgnERIjbtbbeV",{action:"contact_form"});e(t)}catch(e){console.error("Recaptcha error",e),t(e)}})})}}}]);
2//# sourceMappingURL=7516.697cb8084fbe8035.js.map

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.