1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1219],{52050(e,t,n){var r='[data-module="Iframe"]',o=function(){function e(e){this.element=e,this.cwIframe=this.element.querySelector(".cw-iframe-container"),this.iframe=this.element.querySelector("iframe"),this.isManagedByConsentManager()?console.debug("Iframe: Managed by Consentmanager lazy-load, deferring to CMP"):this.isConsentActive()&&(window.__cmp("addEventListener",["consentscreen",this.consentScreenEvent(),!1],null),window.__cmp("addEventListener",["consent",this.onConsent(),!1],null))}return e.setup=function(t){void 0===t&&(t=r),Array.from(document.querySelectorAll(t)).filter(function(e){return!e.dataset.moduleInitialized}).forEach(function(t){new e(t),t.dataset.moduleInitialized="true"})},e.prototype.isManagedByConsentManager=function(){var e=this.element.querySelector("script.cmplazyload"),t=this.element.querySelector("iframe.cmplazyload"),n=this.element.querySelector(".cmplazypreviewiframe");return!!(e||t||n)},e.prototype.isConsentActive=function(){var e=!1;try{window.__cmp("consentStatus"),e=!0}catch(e){console.debug("ConsentManagerApi is Not Loaded")}return e},e.prototype.getConsentVendor=function(){var e=!1;
1try{e=window.__cmp("getCMPData").vendorConsents.c40172,console.log(window.__cmp("getCMPData").vendorConsents)}catch(e){console.log(e)}return e},e.prototype.onConsent=function(){var e=this;setTimeout(function(){e.getConsentVendor()&&e.injectEasyXDMScript()},500)},e.prototype.consentScreenEvent=function(){var e=this;new MutationObserver(function(t,n){t.forEach(function(t){t.addedNodes&&t.addedNodes.forEach(function(t){if(t.nodeType==Node.ELEMENT_NODE){var r=t.querySelector(".cmpboxbtn.cmpboxbtnyes");r&&(e.handleAcceptVendor(r),n.disconnect())}})})}).observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1})},e.prototype.handleAcceptVendor=function(e){var t=this;e.addEventListener("click",function(){return t.injectEasyXDMScript()})},e.prototype.injectEasyXDMScript=function(){var e=this,t=this.element.querySelector(".cw-iframe__easyXDM"),n=t.getAttribute("src");if(this.iframe&&this.iframe.remove(),n){var r=document.createElement("script"),o=document.createElement("script");r.src=n,this.cwIframe.appendChild(r),r.addEventListener("load",function(){o.append(t.textContent),e.cwIframe.appendChild(o)}),r.addEventListener("error",function(e){console.log("error ",e)})}else{var i=document.createElement("script");i.textContent=t.textContent,this.cwIframe.appendChild(i)}},e.prototype.init=function(){var e=this,t=window.addEventListener?"addEventListener":"attachEvent";return(0,window[t])("attachEvent"==t?"onmessage":"message",function(t){t.origin;var n=e.getHeight(t.data);if(console.log("event message data",t.data),n){var r=e.iframe.getAttribute("src").indexOf("/",10);e.iframe.getAttribute("src").substr(0,r)}},!1),this},e.prototype.getHeight=function(e){return null==e||void 0===e?null:e.includes(" ")?parseInt(e.split(" ")[1]):parseInt(e)},e}();const i=o;new o.setup(r),new o.setup,n.d(t,["default",0,i])}}]); 2//# sourceMappingURL=/dist/bdfcw/./modules/Iframe.2fc6bff3.js.e742f6dc.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.