1"use strict";(self.webpackChunksecuritas=self.webpackChunksecuritas||[]).push([[263],{147(e,t,o){o.d(t,{GatedDownloadBlock:()=>r});var s=o(8044);class r extends s.e{static className="js-gated-download-block";handled=!1;constructor(e,t){super(e,t),this.init()}init(){const e=this.rootElement.closest(".gated-download-block__wrapper");if(!e)return;const t=e.querySelector(".download__link"),o=e.querySelector(".intro"),s=e.querySelector(".newsletter-form"),r=e.querySelector(".gated-download-success");if(!this.rootElement||!t||!r)return;if(!this.rootElement.dataset.downloadUrl)return;const n=this.rootElement.querySelector(".EPiServerForms");this.waitForEpiforms(()=>{const e=window.$$epiforms;e(n||".EPiServerForms").on("formsSubmitted",e=>{this.handled||n&&e?.currentTarget!==n||!0===e?.isSuccess&&(this.handled=!0,o&&(o.style.display="none"),s&&(s.style.display="none"),r.hidden=!1)})})}waitForEpiforms(e){const t=()=>{if(window.$$epiforms)return e();setTimeout(t,100)};t()}}},8044(e,t,o){o.d(t,{e:()=>s});class s{rootElement;index;dataset;constructor(e,t){this.rootElement=e,this.index=t,this.dataset=e.dataset}getRootElement(){return this.rootElement}init(){}destroy(){}}}}]); 2//# sourceMappingURL=gated-download-block.a0e077f7.chunk.min.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.