/*! For license information please see postblog-page.16965b4ad6609df0b7b8.js.LICENSE.txt */ "use strict";(self.webpackChunkblog=self.webpackChunkblog||[]).push([["postblog-page"],{"./node_modules/@magnetita/text-highlighter/text-highlighter.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});const o=".js-text-highlighter mark",r="is-highlighted",s=(e,t)=>{if("IntersectionObserver"in window){const n=new IntersectionObserver((o=>{o.forEach((o=>{o.intersectionRatio>0&&(t(),n.unobserve(e))}))}));n.observe(e)}},i={mount:()=>{const e=document.querySelectorAll(o);0!==e.length&&e.forEach((e=>{s(e,(()=>{e.classList.add(r)}))}))}}},"./src/components/adloader/adloader.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={mount:()=>{const e=document.querySelector('[data-jsmodule="adloader"]');e&&setTimeout((()=>{e.remove()}),2e3)}}},"./src/components/collapse-content/collapse-content.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});const o="js-toggle",r=({target:e})=>{const t=e.closest(`.${o}`);if(!t)return;const n=t.getAttribute("aria-controls");if(!n)return;const r=document.querySelector(`#${n}`);if(!r)return;const s="true"===t.getAttribute("aria-expanded");r.classList.toggle("is-expanded",!s),t.setAttribute("aria-expanded",String(!s));const i=t.getAttribute("data-text-expanded")||"",a=t.getAttribute("data-text-retract")||"",l=t.querySelector("span");l&&(l.innerText=s?i:a);const c=t.querySelector(".c-arrow");c&&(c.classList.toggle("u-rotate-225",!s),c.classList.toggle("c-arrow--top",!s),c.classList.remove("c-arrow--bottom")),s?r.classList.add("is-shaded"):r.classList.remove("is-shaded")},s={mount:()=>{document.addEventListener("click",r)}}},"./src/components/product-expanded/product-expandable.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});const o="js-product-expanded-expandable",r="js-product-expanded-expandable-toogle",s=({target:e})=>{const t=e.closest(`.${r}`);if(!t)return;const n=t.closest(`.${o}`);if(!n)return;const s="true"===t.getAttribute("aria-expanded");t.getAttribute("aria-controls"),n.classList.toggle("is-opened"),t.setAttribute("aria-expanded",String(!s))},i={mount:()=>{document.addEventListener("click",s)}}},"./src/components/score-sticky/score-sticky.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});let o=0;const r=e=>{e[o].classList.remove("is-visible"),o=(o+1)%e.length,setTimeout((()=>{e[o].classList.add("is-visible")}),100)},s={mount:()=>{const e=document.querySelectorAll('[data-module="sticky-text"]');e&&0!==e.length&&setInterval((()=>{r(e)}),6e3)}}},"./src/components/scroll-indicator/scroll-indicator.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});const o="js-scroll-indicator",r="js-scroll-indicator-content";let s=!1,i=0;const a=()=>{const e=document.querySelector(`.${o}`),t=document.querySelector(`.${r}`);if(!e||!t)return;if(!s||0===window.scrollY)return i=t.getBoundingClientRect().top+window.scrollY,s=!0,void(e.style.transform="scaleX(0)");const n=t.scrollHeight,l=window.scrollY-i;if(l<0)return void(e.style.transform="scaleX(0)");const c=Math.min(l/(n-window.innerHeight),1);e.style.transform=`scaleX(${c})`,requestAnimationFrame(a)},l={mount:()=>{window.addEventListener("scroll",(()=>{requestAnimationFrame(a)}))}}},"./src/components/sticky-scroll/sticky-scroll.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});const o="js-sticky-scroll",r="js-sticky-offset";class s{constructor(){this.lastScrollTop=0,this.throttledScroll=this.throttle(this.onScroll.bind(this),100),this.stickyElement=document.querySelector(`.${o}`),this.offsetElement=document.querySelector(`.${r}`)}mount(){this.stickyElement&&this.offsetElement&&document.addEventListener("scroll",this.throttledScroll)}throttle=(e,t)=>{let n=0;return(...o)=>{const r=(new Date).getTime();r-n{n.r(t),n.d(t,{default:()=>h});var o=n("./node_modules/idlize/IdleQueue.mjs"),r=n("./node_modules/quicklink/dist/quicklink.mjs"),s=n("./node_modules/@titanio/thirdparty/thirdparty.js"),i=n("./node_modules/@magnetita/text-highlighter/text-highlighter.js"),a=n("./src/components/adloader/adloader.js"),l=n("./src/components/expandable-content/expandable-content.js"),c=n("./src/components/scroll-indicator/scroll-indicator.js"),d=n("./src/components/product-expanded/product-expandable.js"),u=n("./src/components/collapse-content/collapse-content.js"),m=n("./src/components/sticky-scroll/sticky-scroll.js"),f=n("./src/components/score-sticky/score-sticky.js");const h={mount:()=>{new s.default('[data-loader="products-by-group"]',(()=>{Promise.all([n.e("vendors-node_modules_glidejs_glide_dist_glide_esm_js"),n.e("products-by-group")]).then(n.bind(n,"./src/components/products-by-group/products-by-group.js")).then((e=>{e.default.mount()}))}),{onScrolling:!0});const e=new o.IdleQueue;e.pushTask((()=>l.default.mount())),e.pushTask((()=>{f.default.mount()})),e.pushTask((()=>{window.innerWidth>="1024"&&n.e("summary").then(n.bind(n,"./src/components/summary/summary.js")).then((e=>{(new(0,e.default)).mount()}))})),e.pushTask((()=>{c.default.mount()})),e.pushTask((()=>{(new m.default).mount()})),e.pushTask((()=>{d.default.mount()})),e.pushTask((()=>a.default.mount())),e.pushTask((()=>i.default.mount())),e.pushTask((()=>{new s.default('[data-loader="collapse-content"]',(()=>{Promise.resolve().then(n.bind(n,"./src/components/collapse-content/collapse-content.js")).then((()=>{u.default.mount()}))}),{})})),e.pushTask((()=>{new s.default('[data-loader="subscribe"]',(()=>{Promise.all([n.e("vendors-node_modules_magnetita_textfield_textfield_js-node_modules_titanio_forms_forms_js"),n.e("subscribe")]).then(n.bind(n,"./node_modules/@magnetita/subscribe/subscribe.js")).then((e=>{(new(0,e.default)).mount()}))}),{})})),e.pushTask((()=>{new s.default('[data-loader="salary"]',(()=>{Promise.all([n.e("vendors-node_modules_magnetita_textfield_textfield_js-node_modules_titanio_forms_forms_js"),n.e("calculator~salary")]).then(n.bind(n,"./src/components/calculator/models/salary.js")).then((e=>{(new(0,e.default)).mount()}))}),{})})),e.pushTask((()=>{new s.default('[data-loader="termination"]',(()=>{Promise.all([n.e("vendors-node_modules_magnetita_textfield_textfield_js-node_modules_titanio_forms_forms_js"),n.e("vendors-node_modules_magnetita_tooltip_tooltip_js-node_modules_titanio_validator_src_dateVali-58dc79"),n.e("calculator~termination")]).then(n.bind(n,"./src/components/calculator/models/termination.js")).then((e=>{(new(0,e.default)).mount()}))}),{})})),e.pushTask((()=>{new s.default('[data-loader="table"]',(()=>{n.e("table").then(n.bind(n,"./node_modules/@magnetita/table/scrolling.js")).then((e=>{e.default.mount()}))}),{})})),e.pushTask((()=>{(0,r.listen)({el:document.querySelector("main"),limit:15,delay:500,throttle:50})})),e.pushTask((()=>{new s.default('[data-loader="billboard"]',(()=>{Promise.all([n.e("vendors-node_modules_magnetita_textfield_textfield_js-node_modules_titanio_forms_forms_js"),n.e("billboard")]).then(n.bind(n,"./src/components/billboard/billboard.js")).then((e=>{(new(0,e.default)).mount()}))}),{})})),e.pushTask((()=>{new s.default('[data-loader="lead-unbounce"]',(()=>{Promise.all([n.e("vendors-node_modules_magnetita_textfield_textfield_js-node_modules_titanio_forms_forms_js"),n.e("lead-unbounce")]).then(n.bind(n,"./src/components/lead-unbounce/lead-unbounce.js")).then((e=>{(new(0,e.default)).mount()}))}),{})}))}}},"./node_modules/quicklink/dist/quicklink.mjs":(e,t,n)=>{function o(e){return new Promise((function(t,n,o){(o=new XMLHttpRequest).open("GET",e,o.withCredentials=!0),o.onload=function(){200===o.status?t():n()},o.send()}))}n.r(t),n.d(t,{listen:()=>u,prefetch:()=>m,prerender:()=>f});var r,s=(r=document.createElement("link")).relList&&r.relList.supports&&r.relList.supports("prefetch")?function(e){return new Promise((function(t,n,o){(o=document.createElement("link")).rel="prefetch",o.href=e,o.onload=t,o.onerror=n,document.head.appendChild(o)}))}:o,i=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},a=new Set,l=new Set,c=!1;function d(e){if(e){if(e.saveData)return new Error("Save-Data is enabled");if(/2g/.test(e.effectiveType))return new Error("network conditions are poor")}return!0}function u(e){if(e||(e={}),window.IntersectionObserver){var t=function(e){e=e||1;var t=[],n=0;function o(){n0&&(t.shift()(),n++)}return[function(e){t.push(e)>1||o()},function(){n--,o()}]}(e.throttle||1/0),n=t[0],o=t[1],r=e.limit||1/0,s=e.origins||[location.hostname],d=e.ignores||[],u=e.delay||0,h=[],p=e.timeoutFn||i,g="function"==typeof e.hrefFn&&e.hrefFn,b=e.prerender||!1;c=e.prerenderAndPrefetch||!1;var _=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting)h.push((t=t.target).href),function(e,t){t?setTimeout(e,t):e()}((function(){-1!==h.indexOf(t.href)&&(_.unobserve(t),(c||b)&&l.size<1?f(g?g(t):t.href).catch((function(t){if(!e.onError)throw t;e.onError(t)})):a.size-1&&h.splice(s)}}))}),{threshold:e.threshold||0});return p((function(){(e.el||document).querySelectorAll("a").forEach((function(e){s.length&&!s.includes(e.hostname)||function e(t,n){return Array.isArray(n)?n.some((function(n){return e(t,n)})):(n.test||n).call(n,t.href,t)}(e,d)||_.observe(e)}))}),{timeout:e.timeout||2e3}),function(){a.clear(),_.disconnect()}}}function m(e,t,n){var r=d(navigator.connection);return r instanceof Error?Promise.reject(new Error("Cannot prefetch, "+r.message)):(l.size>0&&!c&&console.warn("[Warning] You are using both prefetching and prerendering on the same document"),Promise.all([].concat(e).map((function(e){if(!a.has(e))return a.add(e),(t?function(e){return window.fetch?fetch(e,{credentials:"include"}):o(e)}:s)(new URL(e,location.href).toString())}))))}function f(e,t){var n=d(navigator.connection);if(n instanceof Error)return Promise.reject(new Error("Cannot prerender, "+n.message));if(!HTMLScriptElement.supports("speculationrules"))return m(e),Promise.reject(new Error("This browser does not support the speculation rules API. Falling back to prefetch."));if(document.querySelector('script[type="speculationrules"]'))return Promise.reject(new Error("Speculation Rules is already defined and cannot be altered."));for(var o=0,r=[].concat(e);o0&&!c&&console.warn("[Warning] You are using both prefetching and prerendering on the same document");var i=function(e){var t=document.createElement("script");t.type="speculationrules",t.text='{"prerender":[{"source": "list","urls": ["'+Array.from(e).join('","')+'"]}]}';try{document.head.appendChild(t)}catch(e){return e}return!0}(l);return!0===i?Promise.resolve():Promise.reject(i)}}}]); //# sourceMappingURL=postblog-page.16965b4ad6609df0b7b8.js.map