PageSourceSearch

https://www.imechyperspectral.com/_next/static/chunks/5259.4ce2f62cf5717666.js

js imechyperspectral.com collected 2026-09-30 22:42:41 UTC 10,063 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5259],{15259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Eloqua:()=>T});var r=n(95155),i=n(12115);let a=e=>e instanceof HTMLIFrameElement,o=e=>{"complete"===window.document.readyState?e():window.addEventListener("load",e,{once:!0})};async function c(e){try{var t;return(null==(t=e.contentDocument)?void 0:t.URL)==="about:blank"?new Promise(t=>{e.addEventListener("load",()=>t(null!==e.contentDocument),{once:!0})}):null!==e.contentDocument}catch(e){return!1}}let l=e=>{try{let t=new URL(e.src).origin;if("about:blank"!==t)return t}catch(e){}return null},s=e=>{let{height:t,width:n}=e.getBoundingClientRect();return{height:Math.ceil(t),width:Math.ceil(n)}},u=(e,t)=>e?t?e.querySelector(t):e.documentElement:null,d=(e,t)=>{e&&(t.bodyPadding&&(e.body.style.padding=t.bodyPadding),t.bodyMargin&&(e.body.style.margin=t.bodyMargin))},m=e=>e<=100?100:e<=120?1e3:1e4,f=function(){let e=null;return()=>{if(!e){let t=e=>{let{target:t}=e,n=g.find(e=>{let{iframe:n}=e;return n.contentDocument===t.ownerDocument});n&&p(n)};e=new ResizeObserver(e=>e.forEach(t))}return e}}(),g=[],b=async(e,t)=>{if(!("u">typeof window))return[];let n={offsetSize:0,checkOrigin:!0,enableLegacyLibSupport:!1,...(e=>(Object.keys(e).forEach(t=>{void 0===e[t]&&delete e[t]}),e))(null!=e?e:{})},r=function(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)).filter(a):e?a(e)?[e]:[]:Array.from(document.getElementsByTagName("iframe"))}(t),i=function(e,t){if(Array.isArray(e.checkOrigin))return e.checkOrigin;if(!e.checkOrigin)return[];let n=[];for(let e of t){let t=l(e);t&&n.push(t)}return n}(n,r);return Promise.all(r.map(async e=>{let t={iframe:e,settings:n,interactionState:{isHovered:!1},initContext:{isInitialized:!1,retryAttempts:0}},{unsubscribe:r,resize:a}=await h(t,i);return g.push(t),{unsubscribe:()=>{r(),g=g.filter(t=>t.iframe!==e)},resize:a}}))};async function h(e,t){let{unsubscribe:n,resize:r}=await c(e.iframe)?function(e){let{iframe:t,settings:n}=e,{targetElementSelector:r}=n,i=0,a=()=>{let e=u(t.contentDocument,r);if(!t.contentDocument||!e)return setTimeout(a,m(++i));d(t.contentDocument,n),f().observe(e)};return((e,t)=>{var n,r;let i=(null==(n=e.contentWindow)?void 0:n.document.readyState)==="complete";return"about:blank"!==e.src&&(null==(r=e.contentWindow)?void 0:r.location.href)!=="about:blank"&&i?t():e.addEventListener("load",t,{once:!0})})(t,a),{unsubscribe:()=>{let e=u(t.contentDocument,r);e&&f().unobserve(e)},resize:()=>p(e)}}(e):function(e,t){let{iframe:n,initContext:r,settings:{checkOrigin:i,enableLegacyLibSupport:a,targetElementSelector:o,bodyPadding:c,bodyMargin:l}}=e,s=r=>{let o="null"===r.origin,c=!i||o||t.includes(r.origin);if(!(n.contentWindow!==r.source||!c)){var l;if((null==(l=r.data)?void 0:l.type)==="iframe-resized"){let{height:t}=r.data;t&&y({newHeight:t,registeredElement:e});return}if(a){let t=function(e){if("string"!=typeof e.data||!e.data.startsWith("[iFrameSizer]")||!e.data.endsWith("mutationObserver")&&!e.data.endsWith("resizeObserver"))return null;let[t,n]=e.data.split(":"),r=+n;return r>0?r:null}(r);null!==t&&y({newHeight:t,registeredElement:e});return}}};window.addEventListener("message",s);let u=a?"[iFrameSizer]ID:0:false:false:32:true:true::auto:::0:false:child:auto:true:::true:::false":{type:"iframe-child-init",targetElementSelector:o,bodyPadding:c,bodyMargin:l},d=()=>{var e;(e=()=>{var e;return null==(e=n.contentWindow)?void 0:e.postMessage(u,"*")})(),n.addEventListener("load",e,{once:!0}),r.retryAttempts++,r.retryTimeoutId=window.setTimeout(d,m(r.retryAttempts))};return d(),{unsubscribe:()=>window.removeEventListener("message",s),resize:()=>{var e;null==(e=n.contentWindow)||e.postMessage({type:"iframe-get-child-dimensions"},"*")}}}(e,t),i=function(e){let{iframe:t,interactionState:n,settings:r}=e;if(!r.onBeforeIframeResize&&!r.onIframeResize)return()=>{};let i=()=>{n.isHovered=!0},a=()=>{n.isHovered=!1};return t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",a),()=>{t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",a)}}(e);return{unsubscribe:()=>{n(),i()},resize:r}}function p(e){let{iframe:t,settings:n}=e,r=u(t.contentDocument,n.targetElementSelector);if(!r)return;let{height:i}=s(r);i&&y({newHeight:i,registeredElement:e})}function y(e){var t;let{registeredElement:n,newHeight:r}=e,{iframe:i,settings:a,interactionState:o,initContext:c}=n;if(c.isInitialized||(c.isInitialized=!0,clearTimeout(c.retryTimeoutId)),(null==(t=a.onBeforeIframeResize)?void 0:t.call(a,{iframe:i,interactionState:{...o},settings:{...a},observedHeight:r}))===!1)return;let l=i.getBoundingClientRect(),s=r+a.offsetSize;if(i.style.height="".concat(s,"px"),!a.onIframeResize)return;let u={iframe:i,settings:{...a},interactionState:{...o},previousRenderState:{rect:l},nextRenderState:{rect:i.getBoundingClientRect()}};a.onIframeResize(u)}let v=function(){let e=null;return()=>(e||(e=new ResizeObserver(e=>{e[0].target&&S(e[0].target)})),e)}(),w=!1,E;"u">typeof window&&(()=>{try{return window.self!==window.top}catch(e){return!0}})()&&window.addEventListener("message",e=>{var t,n;return(null==(t=e.data)?void 0:t.type)==="iframe-child-init"?o(()=>(function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{targetElementSelector:r,bodyPadding:i,bodyMargin:a}=t.data,o=u(document,r);
1if(w||window.parent!==t.source)return;if(!o)return setTimeout(()=>e(t,n+1),m(n));d(document,{bodyMargin:a,bodyPadding:i}),E=r;let c=v();c.disconnect(),c.observe(o),w=!0})(e)):(null==(n=e.data)?void 0:n.type)==="iframe-get-child-dimensions"?o(()=>(function(e){let t=u(document,E);w&&window.parent===e.source&&t&&S(t)})(e)):void 0});let S=e=>{let{width:t,height:n}=s(e);window.parent.postMessage({type:"iframe-resized",width:t,height:n},"*")},z=(0,i.forwardRef)((e,t)=>{let n=(0,i.useRef)(null),a=(0,i.useRef)([]),{settings:o,iframeAttributes:c}=function(e){let{offsetSize:t,enableLegacyLibSupport:n,checkOrigin:r,onIframeResize:i,onBeforeIframeResize:a,targetElementSelector:o,bodyMargin:c,bodyPadding:l,...s}=e;return{iframeAttributes:s,settings:{offsetSize:t,enableLegacyLibSupport:n,checkOrigin:r,onIframeResize:i,onBeforeIframeResize:a,targetElementSelector:o,bodyMargin:c,bodyPadding:l}}}(e);(0,i.useEffect)(()=>{let e=!1;if(n.current)return b(o,n.current).then(t=>{e?t.forEach(e=>{e.unsubscribe()}):a.current=t}),()=>{var t;e=!0,null==(t=a.current)||t.forEach(e=>{e.unsubscribe()}),a.current=[]}},[o]);let l=(0,i.useCallback)(e=>{n.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]);return(0,r.jsx)("iframe",{...c,ref:l})});z.displayName="IframeResizer";var L=n(94718),_=n(23183),I=n(97629),R=n(31655),C=n.n(R),O=n(37702),M=n(92589),k=n(89169),N=n(20063),j=n(87825),x=n(95704);let q=(0,O.D)(C()),T=e=>{let t=(0,j.Bd)(),n=(0,N.useSearchParams)(),a=(0,k.h)(e),{_type:o,title:c,id:l,url:s,arialabel:u,is_contact_form:d,blocks:m,persons:f}=e,g=n.get("contactblock"),b=n.get("origin_url"),h=n.get("utm_source"),p=n.get("utm_campaign"),y=n.get("utm_medium"),v=n.get("contactperson"),w={utm_source:h,utm_campaign:p,utm_medium:y},E=s,S={};g&&(S.contactblock=g),b&&(S.origin_url=b),v&&(S.contactperson=v),h&&(S.utm_source=h),p&&(S.utm_campaign=p),y&&(S.utm_medium=y),S.pageURL=b,d&&(m["b".concat(g)]&&(S.contactName=m["b".concat(g)].name,S.contactEmail=m["b".concat(g)].email),f["p".concat(v)]&&(S.contactName=f["p".concat(v)].name,S.contactEmail=f["p".concat(v)].email)),Object.keys(w).forEac
1h(e=>{let t=w[e];t&&(S[e]=t)});let R=Object.keys(S).filter(e=>S[e]).map(e=>"".concat(e,"=").concat(encodeURIComponent(S[e]))).join("&");E+=E.includes("?")?"&".concat(R):"?".concat(R);let C=u||t.eloqua.iframe_arialabel;return((0,i.useEffect)(()=>{(g||v||b)&&(0,M.H7)(a)}),x.env.NEXT_PUBLIC_COMMUNICATIONS_URL&&E.startsWith(x.env.NEXT_PUBLIC_COMMUNICATIONS_URL))?(E=E.replace(x.env.NEXT_PUBLIC_COMMUNICATIONS_URL,"/iframe"),(0,r.jsx)(L.e,{type:o,anchorID:a,className:q.eloqua(),children:(0,r.jsxs)(I.S.Container,{children:[c&&(0,r.jsx)(I.S.H2,{className:q.eloqua.title(),mod:"blueline",children:c}),(0,r.jsx)("div",{className:q.eloqua.formcontainer(),children:(0,r.jsx)(z,{frameBorder:0,src:E,style:{width:"100%"}})})]})})):(0,r.jsx)(L.e,{type:o,anchorID:a,className:q.eloqua(),children:(0,r.jsxs)(I.S.Container,{children:[c&&(0,r.jsx)(I.S.H2,{className:q.eloqua.title(),mod:"blueline",children:c}),(0,r.jsx)(_.A,{className:q.eloqua.formcontainer(),html:'<iframe\n              id="form'.concat(l,'"\n              class="eloqua-form"\n			  aria-label="').concat(C,'"\n              allowfullscreen=""\n              frameborder="0"\n              marginheight="0px"\n              marginwidth="0px"\n              name="Test iframe height"\n              scrolling="no"\n              src="').concat(E,'";\n              style="border:0px #ffffff none;" width="100%"\n          ></iframe>\n          <script\n            src="https://images.communication.imec-int.com/Web/InteruniversitairMicroElectronicaCentrum/%7Bd9cbc1b6-0dd5-40bf-972a-fee75c86ed41%7D_embed.js"\n            type="application/javascript"\n          ><\/script>')})]})})}},23183:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(12115);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=["html","dangerouslySetInnerHTML"];let o=function(e){var t=e.html,n=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,a),o=(0,r.useRef)(null);return(0,r.useEffect)(function(){if(!t||!o.current)throw Error("html prop cant't be null");var e=document.createRange().createContextualFragment(t);o.current.innerHTML="",o.current.appendChild(e)},[t,o]),r.createElement("div",i({},n,{ref:o}))}},31655:e=>{e.exports={"eloqua-title":"eloqua_eloqua-title__uaNCz","eloqua-formcontainer":"eloqua_eloqua-formcontainer__r9VjX","eloqua-form":"eloqua_eloqua-form__LpECz"}}}]);
2//# sourceMappingURL=5259.4ce2f62cf5717666.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.