12 |
- (()=>{"use strict";function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var a,n;return a=t,(n=[{key:"dispatch",value:function(e,t){var a=new CustomEvent(e,{detail:t});window.dispatchEvent(a)}},{key:"handle",value:function(e,t){var a=t;return a="function"!=typeof a?function(t){console.log("There is no handle for the event "+e)}:function(e){t(e.detail)},window.addEventListener(e,a)}}])&&e(a.prototype,n),Object.defineProperty(a,"prototype",{writable:!1}),t}();!function(e,a){e((function(){(new t).handle("ProcessMediaMotiveAdTile",n)}));var n=function(){e("[data-mm-ad-tile]").each((function(){if(!this.getAttribute("data-init")){this.id||(this.id="elm"+Math.round(Math.random()*(new Date).getTime()));var e="True"===this.getAttribute("data-krux-required"),t=a.KruxSasHelper?{sasTags:"/"+a.KruxSasHelper().getSasTags(),gaTags:a.KruxSasHelper().getGaTags()}:(console&&console.warn("KruxSasHelper not loaded"),{sasTags:"",gaTags:""}),n=this.getAttribute("data-media-motive-url");e&&(n+=t.sasTags),n+=t.gaTags;var i=this;a.postscribe(this,"<script src='"+n+"'><\/script>",{done:function(){i.style.background="none"}}),this.setAttribute("data-init",!0)}}))}}(jQuery,window)})();
- //# sourceMappingURL=mm-assets-d07116ba1fcd076e623b.js.map
|