macro.adnami.io
Open in
urlscan Pro
2a02:26f0:3500:4::b818:4db9
Public Scan
URL:
https://macro.adnami.io/macro/spec/adsm.macro.6ce2297e-9742-412d-85ee-c6f83039a358.js
Submission: On October 24 via api from IT — Scanned from IT
Submission: On October 24 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/*! * (c) Copyright Adnami ApS, all rights reserved. * * Package: @adnami.io/adsm.macro.6ce2297e-9742-412d-85ee-c6f83039a358.js * Version: 1.0.4 * Date: 2024-06-04T09:08:28.662Z * */!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){const o=n(1),r=n(2),i=n(3),s=n(4),a=n(7),l={uuid:n(13).uuid,default:function(){let e=window.adsmtag=window.adsmtag||{},t=[];t.push((function(){a.run(),s.run()})),e.cmd=t.concat(e.cmd||[]),r.load(i.config.rmbRef)}};o.bootstrap(l)},function(e,t){e.exports={bootstrap:function(e){var t=window.adsmtag=window.adsmtag||{};t.macro?t.macro.uuid===e.uuid||t.mnemonics||(t.macro.uuid=e.uuid,t.macro.loaded=!0,t.macro.certifications=e.certifications||void 0,e.default()):(t.macro={},t.macro.uuid=e.uuid,t.macro.loaded=!0,t.macro.certifications=e.certifications||void 0,e.default())}}},function(e,t){e.exports={load:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.async=!0,n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)},loadDefer:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.async=!0,n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)},loadSync:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}}},function(e,t){var n,o,r={getMacroRmbRef:function(){return o},getMacroEdgeRef:function(){return n},edgeRef:n="https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",edgeRefLegacy:"https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",rmbRef:o="https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",lazyLoadEdge:"https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",boosterRef:""};e.exports={config:r}},function(e,t,n){var o=n(5),r=n(6);e.exports={run:function(){var e=window.adsmtag=window.adsmtag||{};e.mnemonics=e.mnemonics||[],-1===e.mnemonics.indexOf("css")&&(o.create(r,"adsmtag-css"),e.mnemonics.push("css"))}}},function(e,t){function n(e,t,n,o){try{"insertRule"in e?e.insertRule(t+"{"+n+"}",o):"addRule"in e&&e.addRule(t,n,o)}catch(e){}}e.exports={create:function(e,t){var o=window.document.createElement("style");o.styleSheet&&o.appendChild(window.document.createTextNode("")),(window.document.head||window.document.getElementsByTagName("head")[0]).appendChild(o);for(var r=o.sheet||o.styleSheet,i=r.cssRules||r.rules,s=0;s<e.length;s++){var a=e[s];n(r,a.selector,a.styles,i.length)}}}},function(e,t){e.exports=[{selector:".adnm-topscroll .sc-content-container",styles:"overflow:unset !important;"},{selector:".adnm-topscroll .sc-skyscraper-right>s24-ad-slot,.adnm-topscroll .sc-skyscraper-left>s24-ad-slot",styles:"position:absolute !important;"},{selector:".adnm-topscroll.adnm-topscroll-fixed .sc-skyscraper-right>s24-ad-slot,.adnm-topscroll.adnm-topscroll-fixed .sc-skyscraper-left>s24-ad-slot",styles:"position:fixed !important;top:0px !important;"},{selector:".adnm-interscroll-parent,.adnm-interscroll-parent>div",styles:"height:auto !important;max-height:unset !important;"},{selector:".adnm-interscroll-dekstop-fullscreen .sc-content-container,.adnm-html-desktop-interscroll .sc-content-container",styles:"overflow:unset !important;"},{selector:".adnm-html-desktop-interscroll .cl-filters-summary__floating-bar__fixed-context,.adnm-interscroll-dekstop-fullscreen .cl-filters-summary__floating-bar__fixed-context",styles:"z-index:100 !important;"},{selector:".adsm-skin .ListPage_wrapper__vFmTi",styles:"position:relative;"},{selector:".adnm-html-sidebar-frame-wrapper",styles:"z-index:200 !important;"}]},function(e,t,n){var o=n(8);e.exports={run:function(){var e=window.adsmtag=window.adsmtag||{};e.mnemonics=e.mnemonics||[],-1===e.mnemonics.indexOf("scripts")&&(o.run(),e.mnemonics.push("scripts"))}}},function(e,t,n){var o=n(9).functions.cloneCert;n(10);var r=n(11),i=n(12);function s(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)}function a(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)}function l(){var e=document.querySelector(".adnm-topscroll-container-wrapper, .adnm-html-topscroll-frame-wrapper"),t=document.querySelector("html.adnm-topscroll");t&&(e.getBoundingClientRect().bottom>0?t.classList.remove("adnm-topscroll-fixed"):t.classList.add("adnm-topscroll-fixed"));var n=document.querySelector(".adsm-skin-banner-parent"),o=document.querySelector("html.adsm-skin");o&&(n.getBoundingClientRect().top>0?o.classList.remove("adsm-skin-fixed"):o.classList.add("adsm-skin-fixed"))}e.exports={run:function(){window.adsm=window.adsm||{},window.adsm.certifications=window.adsm.certifications||[],window.adsm.certifications["adnami-canvas-desktop-topscroll"]={cert:{element:"body"},onDestroy:function(){a(window,"scroll",l),a(window,"resize",l),a(window,"load",l)},onLoaded:function(){},onInit:function(){s(window,"scroll",l),s(window,"resize",l),s(window,"load",l)}},window.adsm.certifications["adnami-canvas-mobile-topscroll"]=o("adnami-canvas-desktop-topscroll"),window.adsm.certifications["adnami-canvas-mobile-midscroll"]={cert:{},onDestroy:function(){r.removeParentClass(),r.removeAutoHeightParents()},onLoaded:function(e){r.autoHeightParents(e)},onInit:function(e){r.addParentClass(e,2)}},window.adsm.certifications["adnami-midscroll-mobile-sticky"]=o("adnami-canvas-mobile-midscroll"),window.adsm.certifications["adnami-midscroll-desktop"]={cert:{height:"400px"},onDestroy:function(){r.removeParentClass(),r.removeAutoHeightParents()},onLoaded:function(e){r.autoHeightParents(e)},onInit:function(e){r.addParentClass(e,3)}},window.adsm.certifications["adnami-midscroll-doublescreen-desktop"]={},window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onInit=window.adsm.certifications["adnami-midscroll-desktop"].onInit,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onLoaded=window.adsm.certifications["adnami-midscroll-desktop"].onLoaded,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onDestroy=window.adsm.certifications["adnami-midscroll-desktop"].onDestroy,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].cert={},window.adsm.certifications["adnami-canvas-desktop-fluidskin"]={cert:{element:"#__next, #root",content:".hfo-footer, .hf-base-components-wrapper",enableContentBackground:!0,contentBackgroundColor:"white"},onDestroy:function(){i.removeSideskinBannerResizeClass(),i.removeAlignSkys(),a(window,"scroll",l),a(window,"resize",l),a(window,"load",l)},onLoaded:function(e){i.initSideSkinBannerResizeGeneric(e,2),i.alignSkys(".AdSky_adSkyLeft__QBKSi, .AdSky_adSkyRight__x6zkz, .hf-sky-right__content, .hf-sky-left__content",!0,null)},onInit:function(){i.initAlignSkys(),s(window,"scroll",l),s(window,"resize",l),s(window,"load",l)}},window.adsm.certifications["adnami-canvas-seamless-skin"]=o("adnami-canvas-desktop-fluidskin"),window.adsm.certifications["adnami-canvas-sidebar"]={cert:{content:"#__next"},onDestroy:function(){},onLoaded:function(){},onInit:function(){}}}}},function(e,t){var n={addEvent:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},cloneCert:function(e){var t=JSON.parse(JSON.stringify(window.adsm.certifications[e]));return t.onInit=window.adsm.certifications[e].onInit,t.onDestroy=window.adsm.certifications[e].onDestroy,t.onLoaded=window.adsm.certifications[e].onLoaded,t}},o=function(){var e,t,n,o,r=document.getElementsByTagName("html")[0],i="10px",s="1500px",a="absolute",l="fixed";function c(){return r.getBoundingClientRect().top}function d(e,t,n){e&&(e.style.marginTop=t,e.style.position=n)}return{defineSkyWrappers:function(n,o){e=n,t=o},defineSkyArray:function(e){n=e},adjustSkys:function(){null!==document.querySelector("html.adsm-skin")||o?c()<-parseInt(s)?(d(e,i,l),d(t,i,l)):(d(e,s,a),d(t,s,a)):(d(e,i,l),d(t,i,l))},adjustSkycrapers:function(e,t){if(o)if(c()<e)for(var r=0;r<n.length;r++)d(n[r],t+"px",l);else for(r=0;r<n.length;r++)d(n[r],c()+Math.abs(e)+t+"px",l);else for(r=0;r<n.length;r++)d(n[r],t+"px",l)},enableFunctionality:function(e){o=e},overrideDefaultVals:function(e,t,n,o){i=e,s=t,a=n,l=o},getSkyArray:function(){return n}}}(),r=function(){var e,t=document.querySelector(".adnm-adwell"),n=window.setInterval((function(){var i=document.querySelector(".adnm-adwell iframe");if(o+=100,function(){return(e=t=document.querySelector(".adnm-adwell"),e?e.getBoundingClientRect().height:null)>100&&null!==document.querySelector(".adnm-adwell iframe");var e}())e=t.firstChild,clearInterval(n),t.style.maxWidth=((s=i)?s.getBoundingClientRect().width:null)+"px",r();else if(o>1e4)return clearInterval(n),!1;var s}),100),o=0;function r(){var n=document.createElement("div");t&&e&&(t.insertBefore(n,e),n.classList.add("adnm-adwell-close-button"),n.innerHTML="✖",document.querySelector(".adnm-adwell-close-button").addEventListener("click",i))}function i(){t&&(t.classList.add("adnm-adwell-gone"),t.classList.remove("adnm-adwell-full"))}return{insertCloseButton:r,addEvent:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},adwellFullHeight:function(){t&&(t.classList.add("adnm-adwell-full"),setTimeout(i,7e3))}}}();e.exports={functions:n,adnamiSkyAdjuster:o,adnamiBottomBanner:r}},function(e,t){const n="adnm-topscroll-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}let r=null;const i="adnm-topscroll-sky-selector";let s=null,a=[];function l(){if(!document.querySelector("html").classList.contains("adsm-skin"))for(let e=0;e<a.length;e++){const t=document.querySelectorAll(a[e].skySelectors),n=document.querySelector(a[e].alignSelector);if(t.length>0&&n){if(t[0].classList.contains(`${i}-${e}`)){const o=t[0].getBoundingClientRect().top,r=n.getBoundingClientRect().bottom;Math.abs(o-r-a[e].spacing)>1&&c()}if(a[e].restoreWhenUnder){n.getBoundingClientRect().bottom<0?t.forEach(t=>{t.classList.remove(`${i}-${e}`)}):t.forEach(t=>{t.classList.add(`${i}-${e}`)})}}}}function c(){if(0===a.length)return;s.innerHTML="";let e="";for(let n=0;n<a.length;n++){const o=document.querySelectorAll(a[n].skySelectors);if(0===o.length)return console.error("Could not find any skys to target");const r=document.querySelector(a[n].alignSelector);if(!r)return console.error("Could not find element to align under");o.forEach(e=>{e.classList.add(`${i}-${n}`)});const l=o[0];let c=0,d=t(c,n);s.innerHTML=e+d;const m=window.scrollY+l.getBoundingClientRect().top,u=window.scrollY+r.getBoundingClientRect().top+r.offsetHeight;c=a[n].spacing+u-m,e+=t(c,n),s.innerHTML=e}function t(e,t){return`html.adnm-topscroll:not(.adsm-skin) .${i}-${t} { margin-top: 0px !important; position: ${a[t].cssPosition} !important; top: ${e}px !important; } `}}var d;function m(){var e=window.innerHeight;if(d){var t=document.querySelector(".adnm-html-topscroll-frame-wrapper"),n=document.querySelectorAll('html.adnm-topscroll .adnm-html-topscroll-frame-wrapper div[class^="adnm-html-topscroll"]'),o=e-d.offsetHeight,r=t.getBoundingClientRect().bottom-d.getBoundingClientRect().top,i=Math.floor(r+o)-1;t&&n&&(u(t,i),n.forEach(e=>{u(e,i)}))}}function u(e,t){e&&e.style&&(e.style.maxHeight=t+"px",e.style.height=t+"px")}let f;e.exports={alignSkys:function(e,t,n=null,o=20,r="absolute"){n||(n=".adnm-html-topscroll-frame-wrapper"),a.push({skySelectors:e,restoreWhenUnder:t,alignSelector:n,spacing:o,cssPosition:r}),c()},removeAlignSkys:function(){s.parentElement.removeChild(s),a=[];for(let e=0;e<a.length;e++){document.querySelectorAll(a[e].skySelectors).forEach(t=>{t.classList.contains(`${i}-${e}`)&&t.classList.remove(`${i}-${e}`)})}window.removeEventListener("resize",c),window.removeEventListener("scroll",l)},initAlignSkys:function(){s=document.createElement("style"),document.head.appendChild(s),window.addEventListener("resize",c),window.addEventListener("scroll",l)},initAdjustHeightOfTopscroller:function(e){d=document.querySelector(e),m(),window.addEventListener("resize",m)},destroyAdjustHeightOfTopscroller:function(){window.removeEventListener("resize",m)},addParentClass:function(e,t,r=!1){if(!function(e,t){let o=null,i=e;for(;i.parent&&i.parent!==window;)i=i.parent;const s=document.querySelectorAll("iframe");for(let e=0;e<s.length;e++)if(s[e].contentWindow===i){o=s[e].parentNode;break}for(let e=0;e<t;e++)o=o.parentNode,r&&o.classList.add(n);return o.classList.contains(n)||o.classList.add(n),o}(e,t))return o(),console.error("Could not find format parent element")},removeParentClass:o,addTopscrollIdentifierClass:function(){let e=null;const t=document.querySelector("html"),n=document.querySelector(".adnm-topscroll-container-wrapper, .adnm-html-topscroll-frame-wrapper");if(t&&!e&&n){switch(n.style.height){case"80vh":e="adnm-topscroll-80";break;case"100vh":e="adnm-topscroll-100"}t.classList.add(e)}else t&&e&&(t.classList.remove(e),e=null)},addStickyMenuClass:function(){var e=document.querySelector("html.adnm-topscroll"),t="adnm-topscroll-sticky-menu",n=document.querySelector("html body"),o=document.querySelector(".adnm-html-topscroll-frame-wrapper");if(e){var r=o.offsetHeight;n.getBoundingClientRect().top>-r?e.classList.remove(t):e.classList.add(t)}},autoFixViewability:function(e,t){r=document.createElement("style"),document.head.appendChild(r),r.innerHTML=".adnm-viewability-fix { overflow: unset !important; }",function(e){let n=null,o=e;for(;o.parent&&o.parent!==window;)o=o.parent;const r=document.querySelectorAll("iframe");for(let e=0;e<r.length;e++)if(r[e].contentWindow===o){n=r[e].parentNode;break}n=n.parentNode;for(var i=getComputedStyle(n),s=0;s<t;s++)i.overflow.includes("hidden")&&"body"!==n.tagName.toLowerCase()&&n.classList.add("adnm-viewability-fix"),n=n.parentNode,i=getComputedStyle(n)}(e)},removeautoFixViewabilityClasses:function(){document.querySelectorAll(".adnm-viewability-fix").forEach(e=>{e.classList.remove("adnm-viewability-fix")}),r&&r.parentElement.removeChild(r)},addTopscrollSizeIndicatorClass:function(){const e=document.querySelector(".adnm-html-topscroll-frame-wrapper");if(e){const t=parseFloat(e.style.height)/window.innerHeight*100;if(t){f="adnm-topscroll-"+t;const e=document.querySelector("html");e&&f&&e.classList.add(f)}}},removeTopscrollSizeIndicatorClass:function(){const e=document.querySelector("html");e&&f&&(e.classList.remove(f),f="")},adunitSizeFailsafe:function(){const e=document.querySelector("iframe[id^='google_ads_iframe'][class^='adnm-']"),t=document.querySelector(".adnm-html-topscroll-frame-wrapper ");e.offsetWidth<30&&(e.style.width=t.offsetWidth+"px",e.style.marginLeft="-50vw")}}},function(e,t){const n="adnm-interscroll-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}const r="adnm-interscroll-creative-parent";let i=null,s=null;let a=null,l=null,c=[];e.exports={addParentClass:function(e,t,r=!1){if(!function(e,t){let o=null,i=e;for(;i.parent&&i.parent!==window;)i=i.parent;const s=document.querySelectorAll("iframe");for(let e=0;e<s.length;e++)if(s[e].contentWindow===i){o=s[e].parentNode;break}for(let e=0;e<t;e++)o=o.parentNode,r&&o.classList.add(n);return o.classList.contains(n)||o.classList.add(n),o}(e,t))return o(),console.error("Could not find format parent element")},removeParentClass:o,autoHeightParents:function(e){i=document.createElement("style"),document.head.appendChild(i),i.innerHTML=`.${r} { height: auto !important; max-height: unset !important; display: block !important }`,function(e){let t=null,n=e;for(;n.parent&&n.parent!==window;)n=n.parent;const o=document.querySelectorAll("iframe");for(let e=0;e<o.length;e++)if(o[e].contentWindow===n){t=o[e].parentNode;break}s=t.offsetHeight,t=t.parentNode;for(;"body"!==t.tagName.toLowerCase();)t.offsetHeight<s&&t.classList.add(r),t=t.parentNode}(e)},removeAutoHeightParents:function(){document.querySelectorAll("."+r).forEach(e=>{e.classList.remove(r)}),i&&i.parentElement.removeChild(i)},initAddSkyFading:function(){a=document.createElement("style"),document.head.appendChild(a),l=document.createElement("style"),document.head.appendChild(l)},addSkyFading:function(e){if(c.push({skySelectors:e}),document.querySelectorAll(".adnm-html-interscroll-frame-wrapper").forEach(e=>{!function(e){if("IntersectionObserver"in window&&e){new IntersectionObserver((e,t)=>{e.forEach(e=>{if(0==e.isIntersecting){if(0===c.length)return;a.innerHTML="";for(let e=0;e<c.length;e++){const t=document.querySelectorAll(c[e].skySelectors);if(0===t.length)return console.error("Could not find any skys to target");t.forEach(e=>{e.classList.remove("adnm-midscroll-sky-opacity")})}}else{if(0===c.length)return;a.innerHTML="";for(let e=0;e<c.length;e++){const t=document.querySelectorAll(c[e].skySelectors);if(0===t.length)return console.error("Could not find any skys to target");t.forEach(e=>{e.classList.add("adnm-midscroll-sky-opacity"),a.innerHTML=`${'[class*="adnm-html-interscroll"]'} .${"adnm-midscroll-sky-opacity"} {opacity: 0 !important; } `})}}})},{rootMargin:"0px",threshold:.01}).observe(e)}}(e)}),0!==c.length){l.innerHTML="";for(let e=0;e<c.length;e++){const t=document.querySelectorAll(c[e].skySelectors);if(0===t.length)return console.error("Could not find any skys to target");t.forEach(e=>{e.classList.add("adnm-midscroll-sky-transition"),l.innerHTML=`${'[class*="adnm-html-interscroll"]'} .${"adnm-midscroll-sky-transition"} { transition: opacity 0.5s ease 0s !important;} `})}}}}},function(e,t){const n="adsm-skin-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}const r="adsm-skin-banner-parent";let i=null;function s(){if(i){const e=document.querySelector(window.adsm.certifications["adnami-canvas-desktop-fluidskin"].cert.content).offsetWidth||document.querySelector(window.adsm.certifications["adnami-canvas-seamless-skin"].cert.content).offsetWidth;i.innerHTML=`.adsm-skin .${r} {min-width: unset !important; max-width: unset !important; width: ${e}px !important; margin-left: auto !important; margin-right: auto !important; height: auto !important; max-height: unset !important;`}}const a="adnm-skin-sky-selector";let l=null,c=[];function d(){for(let e=0;e<c.length;e++){const t=document.querySelectorAll(c[e].skySelectors),n=document.querySelector(c[e].alignSelector);if(t.length>0&&n){if(t[0].classList.contains(`${a}-${e}`)){const o=t[0].getBoundingClientRect().top,r=n.getBoundingClientRect().bottom;Math.abs(o-r-c[e].spacing)>1&&m()}if(c[e].restoreWhenUnder){n.getBoundingClientRect().bottom<c[e].delayRestoreWhenUnder?t.forEach(t=>{t.classList.remove(`${a}-${e}`)}):t.forEach(t=>{t.classList.add(`${a}-${e}`)})}}}}function m(){if(0===c.length)return;l.innerHTML="";let e="";for(let n=0;n<c.length;n++){const o=document.querySelectorAll(c[n].skySelectors);if(0===o.length)return console.error("Could not find any skys to target");const r=document.querySelector(c[n].alignSelector);if(!r)return console.error("Could not find element to align under");o.forEach(e=>{e.classList.add(`${a}-${n}`)});const i=o[0];let s=0,d=t(s,n);l.innerHTML=e+d;const m=window.scrollY+i.getBoundingClientRect().top,u=window.scrollY+r.getBoundingClientRect().top+r.offsetHeight;s=c[n].spacing+u-m,e+=t(s,n),l.innerHTML=e}function t(e,t){return`.adsm-skin .${a}-${t} { margin-top: 0px !important; position: ${c[t].cssPosition} !important; top: ${e}px !important; } `}}let u=[];function f(){let e=window.adsm&&window.adsm.pageSettings&&window.adsm.pageSettings.skinMaxScrollDepth||void 0;u.topOffset=null!==u.topOffset?u.topOffset:0;let t=document.querySelector("div.adsm-wallpaper"),n=t.getBoundingClientRect(),o=document.querySelector(".adnm-html-topscroll-frame-wrapper, #Topscroll, #ebbanner_topscroll"),r=document.querySelector(".adnm-html-topscroll-expand-frame-wrapper"),i=0,s=0,a=0;null!=o&&(i=o.getBoundingClientRect().height),null!=r&&(s=10,a=220);let l=window.scrollY,c=document.querySelector(".adsm-skin-banner-parent>iframe"),d=0!==u.topOffset?`calc(100vh - ${u.topOffset}px)`:"100vh";if(t.style.setProperty("height",""+d),null==e||0==e||e<=n.height)return t.style.setProperty("position","absolute","important"),void t.style.setProperty("top","0px","important");l>=e+(i-u.topOffset-80+a)?(t.style.setProperty("position","absolute"),t.style.setProperty("top",`calc(${e}px - ${u.topOffset}px - 80px + ${a}px + ${s}vh)`),c.style.setProperty("position","absolute","important"),c.style.setProperty("height",e+"px"),c.style.setProperty("top","0px")):(t.style.setProperty("position","fixed"),t.style.setProperty("top",`calc(${u.topOffset}px + ${s}vh)`),c.style.setProperty("position","fixed"),c.style.setProperty("height",n.height+"px"),c.style.setProperty("top",`calc(${u.topOffset}px + ${s}vh)`))}e.exports={initSideSkinBannerResizeGeneric:function(e,t=2){let n=null;if(!document.querySelector(window.adsm.certifications["adnami-canvas-desktop-fluidskin"].cert.content))return console.error("Could not find element to wrap around");if(i=document.createElement("style"),document.head.appendChild(i),!function(e,t){let o=null,i=e;for(;i.parent&&i.parent!==window;)i=i.parent;const s=document.querySelectorAll("iframe");for(let e=0;e<s.length;e++)if(s[e].contentWindow===i){o=s[e].parentNode;break}n=o.parentNode;for(let e=0;e<t;e++)o=o.parentNode,o.classList.add(r);return o}(e,t))return o(),console.error("Could not find format parent element");window.addEventListener?window.addEventListener("resize",s,!1):window.attachEvent("resize",s),s()},removeSideskinBannerResizeClass:function(){i&&i.parentElement.removeChild(i),document.removeEventListener("resize",s),document.querySelectorAll("."+r).forEach(e=>{e.classList.remove(r)})},addParentClass:function(e,t,o=!1){if(!function(e,t){let r=null,i=e;for(;i.parent&&i.parent!==window;)i=i.parent;const s=document.querySelectorAll("iframe");for(let e=0;e<s.length;e++)if(s[e].contentWindow===i){r=s[e].parentNode;break}for(let e=0;e<t;e++)r=r.parentNode,o&&r.classList.add(n);r.classList.contains(n)||r.classList.add(n);return r}(e,t))return console.error("Could not find format parent element")},removeParentClass:o,alignSkys:function(e,t,n=null,o=20,r="absolute",i=0){n||(n=".adsm-wallpaper"),c.push({skySelectors:e,restoreWhenUnder:t,alignSelector:n,spacing:o,cssPosition:r,delayRestoreWhenUnder:i}),m()},initWallpaperOnScroll:function(){window.addEventListener("load",f),window.addEventListener("resize",f),window.addEventListener("scroll",f)},initAlignSkys:function(){l=document.createElement("style"),document.head.appendChild(l),window.addEventListener("resize",m),window.addEventListener("scroll",d)},removeAlignSkys:function(){l.parentElement.removeChild(l),c=[];for(let e=0;e<c.length;e++){document.querySelectorAll(c[e].skySelectors).forEach(t=>{t.classList.contains(`${a}-${e}`)&&t.classList.remove(`${a}-${e}`)})}window.removeEventListener("resize",m),window.removeEventListener("scroll",d)},removeWallpaperOnScroll:function(){window.removeEventListener("load",f),window.removeEventListener("resize",f),window.removeEventListener("scroll",f)},loadSkinRealigner:function(){var e=document.querySelector(".adsm-wallpaper"),t=document.querySelector(".adsm-skin-banner-parent"),n=document.querySelector(".adnm-html-topscroll-frame-wrapper");const o=t.getBoundingClientRect().top;if(e&&!n){var r=o+window.pageYOffset;e.style.setProperty("position","absolute","important"),e.style.setProperty("top",r+"px","important")}if(e&&n){let t=n.getBoundingClientRect().bottom;skinOffset=Math.abs(t-o);r=skinOffset+t+window.pageYOffset;e.style.setProperty("position","absolute","important"),e.style.setProperty("top",r+"px","important")}},loadAlignSkinSpecial:function(){var e=document.querySelector(".adsm-skin-banner-parent").getBoundingClientRect().top,t=document.querySelector(".adsm-wallpaper").getBoundingClientRect().top,n=document.querySelector(".adsm-wallpaper");if(document.querySelector("html.adsm-skin")){n.style.top=e+"px",e=document.querySelector(".adsm-skin-banner-parent").getBoundingClientRect().top;var o=0;document.querySelector("html.adnm-topscroll")&&(o=document.querySelector(".adnm-html-topscroll-frame-wrapper").getBoundingClientRect().bottom,t=document.querySelector(".adsm-wallpaper").getBoundingClientRect().top,n.style.top=t-2*o+"px")}},adjustWallpaperOnScroll:function(e=null){u={topOffset:e},f()}}},function(e,t){e.exports={uuid:"6ce2297e-9742-412d-85ee-c6f83039a358"}}]);