1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5748],{55748:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n=r(75038),l=r(42477),s=r(17912),a=r(76430),o=r(90937);let i=({selligentId:e,selligentFormName:t,useCache:r=!1})=>{let[i,d]=(0,a.useState)({body:"",head:""}),[c,h]=(0,a.useState)(!0),{locale:u}=(0,s.useRouter)(),m=(0,a.useRef)(null),p=(0,a.useRef)(null),{profile:f,isLoadingProfile:g}=(0,l.A)(u),y=null;return y=new Event("selligent-updated"),(0,a.useEffect)(()=>{y&&document.dispatchEvent(y)},[i.body]),(0,a.useEffect)(()=>{if(!c&&i.head){p.current&&(p.current.innerHTML="");let e=i.head.trim();if(void 0!==String.prototype.matchAll)[...e.matchAll(/<script>([\s\S]+?)<\/script>/g)].forEach(e=>{let t=document.createElement("script");t.textContent=e[1].trim(),p?.current?.appendChild(t)}),[...e.matchAll(/<style>([^<]+)<\/style>/g)].forEach(e=>{let t=document.createElement("style");t.textContent=e[1].trim(),p?.current?.appendChild(t)});else{let t,r,n=/<script>([\s\S]+?)<\/script>/g;for(;t=n.exec(e);){let e=document.createElement("script");e.textContent=t[1].trim(),p?.current?.appendChild(e)}let l=/<style>([^<]+)<\/style>/g;for(;r=l.exec(e);){let e=document.createElement("style");e.textContent=r[1].trim(),p?.current?.appendChild(e)}}}},[c,i.head]),(0,a.useEffect)(()=>{let e=m.current;if(!e)return;let r=e=>{e.preventDefault(),(0,o.kz)(t);let r=new FormData(e.target);fetch(e.target?.action,{method:"POST",redirect:"manual",body:r}).then(e=>{"opaqueredirect"===e.type?window.location.href=e.url:e.text().then(e=>{let t=JSON.parse(e);d({body:t.Body.replace(/\/optiext\/optiextension.dll/g,"/renderers/json.ashx"),head:t.Head})})})},n=e=>{e.target&&"A"==e.target.nodeName&&(e.preventDefault(),e.target?.target!=="_blank"&&(window.location.href=e.target.href.replace("https://houseofhr.slgnt.eu/renderers/json.ashx",window.location.origin+window.location.pathname)))};return e.addEventListener("submit",r),e.addEventListener("click",n),()=>{e.removeEventListener("submit",r),e.removeEventListener("click",n)}},[i.body,t]),(0,a.useEffect)(()=>{if(!g)if(h(!0),e&&r&&sessionStorage.getItem(`selligent-${e}-${u}`)){let t=JSON.parse(sessionStorage.getItem(`selligent-${e}-${u}`));d({body:t.Body.replace(/\/optiext\/optiextension.dll/g,"/renderers/json.ashx"),head:t.Head}),h(!1)}else{let n=new URLSearchParams(window.location.search),l=n.get("ID");["ID","id","MAIL_HASH","mail_hash"].forEach(e=>n.delete(e));let s=new Set(["fbclid","gclid","dclid","msclkid","wbraid","gbraid","twclid"]);for(let e of Array.from(n.keys()))s.has(e.toLowerCase())&&n.delete(e);let a="eng";"nl"===u?a="nld":"fr"===u?a="fra":"pl"===u?a="pol":"pt"===u?a="por":"ro"===u&&(a="ron"),fetch(`https://houseofhr.slgnt.eu/renderers/json.ashx?ID=${l&&"B2C_Communicatievoorkeuren"===t?l:e}&MAIL_HASH=${f?f.selligentKey:""}&SG_LANG=${a}${Array.from(n.values()).length>0?"&"+n.toString():""}`,{method:"POST",redirect:"manual"}).then(t=>{"opaqueredirect"===t.type?window.location.href=t.url:t.text().then(t=>{r&&sessionStorage.setItem(`selligent-${e}-${u}`,t);let n=JSON.parse(t);d({body:n.Body.replace(/\/optiext\/optiextension.dll/g,"/renderers/json.ashx"),head:n.Head})})}).then(()=>{h(!1)})}},[g,u]),(0,n.jsx)("div",{className:"selligent-content-rendering mt-4 md:mt-0",ref:m,children:!c&&!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"selligent-embed-body",dangerouslySetInnerHTML:{__html:i.body}}),(0,n.jsx)("div",{className:"selligent-embed-head",ref:p})]})})}}}]);
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.