(() => { var bundles = [['dynamicEngagements', () => { var define = true; !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.obBundle=n():(e.obBundle=e.obBundle||{},e.obBundle.dynamicEngagement=n())}(self,()=>(()=>{"use strict";var o={d:(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},e={};o.r(e),o.d(e,{DynamicEngagements:()=>r,factory:()=>a});function n(){for(var e=[],n=0;n { var define = true; !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.obBundle=t():(e.obBundle=e.obBundle||{},e.obBundle.events=t())}(self,()=>(()=>{"use strict";var a={d:(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},e={};a.r(e),a.d(e,{EventsBinder:()=>o,factory:()=>function(){for(var e=[],t=0;t ")}function c(e){if(e)return e.id||(e.attribs?e.attribs.id:void 0)}function u(e){if(e)return e.className||(e.attribs?e.attribs.class:void 0)}function b(e,t){var n;void 0===t&&(t=window);var a,i,o=[];try{o=Array.from(null==(n=t.document)?void 0:n.querySelectorAll(e))}catch(e){t=e,void 0===a&&(a="codeless"),void 0===i&&(i=2),Math.floor(100*Math.random())<=i&&g({app:a,message:t.message,extra:{name:t.name,line:t.lineNumber||t.line,script:t.fileName||t.sourceURL||t.script,stack:t.stackTrace||t.stack}})}return l("last selector used ".concat(e," results ").concat(o.length)),o}var i,f=function(){return(f=Object.assign||function(e){for(var t,n=1,a=arguments.length;n "),a=t.split(" > ");if(0===n.length||0===a.length)return 1;for(var i=Math.max(n.length,a.length);n.length").map(function(e){return e.trim()}),a=/#([\w-]+)/,i=n.filter(function(e){return a.test(e)});return i.length?(n=n[n.length-1],i=i.join(" ").trim()+" "+n,b(i,e._window)):[]},function(e,t,n){n[0],n[1];var n=n[2].split(">").map(function(e){return e.trim()}),a=n.pop(),i=n.filter(function(e){return e.match(/.\w+$/)});if(!i.length)return[];for(var o=[],l=!0;!o.length&&i.length;)l||i.shift(),o=b(i.join(" ").trim()+" "+a,e._window),l=!1;return o},function(e,t,n){for(var a=n[0],i=a.replace(/:nth-of-type\(\d+\)/gi,""),o=[];a!==i&&o.length<3;)a=a.replace(/:nth-of-type\(\d+\)/,""),o=b(a,e._window);return o}],this.locationHref=e}return e})()),"undefined"!=typeof obBundle&&(new obBundle.events.EventsBinder).execute([{conversion:{name:"Checkout Laureen Ast"},metadata:{conversionId:"001df038d5673feb7ac700efbfa316482c",cssPath:"main#main > section:nth-of-type(7) > div > div:nth-of-type(2) > ul > li:nth-of-type(2) > a",tagName:"A",elText:"Laureen Astruc, Head Of B2C Digital Prod",finalUrl:"https://www.outbrain.com/publishers/smartlogic/",enableGlobalConversion:null,groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > section:nth-of-type(7) > div > div:nth-of-type(2) > ul > li:nth-of-type(2) > a","html > body.fixed > main > section.success-stories > div > div > ul > li > a","html > body.fixed > main > section.success-stories > div > div > ul > li > a","html > body.fixed > main > section.success-stories > div > div > ul > li > a"],domTrail:[{tagName:"A",elementAttributeNames:"href:https://www.outbrain.com/case-studies/euronews-increases-rpm-by-34-with-outbrain-smartlogic/;target:_blank;",elementId:"",elementNthChild:0},{tagName:"LI",elementAttributeNames:"data-carousel-item:data-carousel-item;",elementId:"",elementNthChild:2},{tagName:"UL",elementAttributeNames:"",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"data-carousel-items-container:data-carousel-items-container;",elementId:"",elementNthChild:2},{tagName:"DIV",elementAttributeNames:"data-carousel:data-carousel;data-show-arrows:1;",elementId:"",elementNthChild:0},{tagName:"SECTION",elementAttributeNames:"class:success-stories;",elementId:"",elementNthChild:7},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"class:fixed;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Checkout Start Now"},metadata:{conversionId:"00df60dc3b8d3bc1a929e26b0f6cc503d5",cssPath:"main#main > header > div > div > div > a",tagName:"A",elText:"Start Now",finalUrl:"https://www.outbrain.com/",enableGlobalConversion:"/",groupAnchorElementsWithUrl:null,groupElementsWithText:"Start Now"},cssSelectors:["html > body > main#main > header > div > div > div:nth-of-type(1) > a","html > body.fixed > main > header.hero > div.container > div.hero__inner > div.hero__content > a.button","html > body.fixed > main > header.hero > div.container > div.hero__inner > div.hero__content > a.button.rayen","html > body.fixed > main > header.hero > div.container > div.hero__inner > div.hero__content > a.button.rayen"],domTrail:[{tagName:"A",elementAttributeNames:"class:button rayen;href:https://my.outbrain.com/amplify/funnel/?utm_source=my.outbrain.com%2F;target:_blank;rel:noopener noreferrer;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:hero__content;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"class:hero__inner;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:container;",elementId:"",elementNthChild:0},{tagName:"HEADER",elementAttributeNames:"class:hero;",elementId:"",elementNthChild:0},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"class:fixed;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Checkout 513"},metadata:{conversionId:"00f82d81ff44fee8529ffac32e824d6a78",cssPath:"main#main > article > div > div > div > picture > img",tagName:"IMG",elText:"",finalUrl:"https://www.outbrain.com/",enableGlobalConversion:"",groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > article > div > div > div > picture > img","html > body > main > article.featured-quote > div.container > div.featured-quote__inner > div.featured-quote__visuals > picture > img","html > body > main > article.featured-quote > div.container > div.featured-quote__inner > div.featured-quote__visuals > picture > img","html > body > main > article.featured-quote > div.container > div.featured-quote__inner > div.featured-quote__visuals > picture > img"],domTrail:[{tagName:"IMG",elementAttributeNames:"src:/images/pages/home-new/featured-post/dk-lg.png;loading:lazy;alt:David Kostman, Co-CEO of Outbrain;",elementId:"",elementNthChild:0},{tagName:"PICTURE",elementAttributeNames:"",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:featured-quote__visuals;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:featured-quote__inner;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:container;",elementId:"",elementNthChild:0},{tagName:"ARTICLE",elementAttributeNames:"class:featured-quote;",elementId:"",elementNthChild:0},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Registration Start N"},metadata:{conversionId:"007027ccf37b7ec6d410869b07d939a5b1",cssPath:"main#main > div > div > a",tagName:"A",elText:"Start Now",finalUrl:"https://www.outbrain.com/advertisers/",enableGlobalConversion:"",groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > div:nth-of-type(1) > div:nth-of-type(1) > a","html > body > main > div.hero-amplify > div.hero-top-section > a.button","html > body > main > div.hero-amplify > div.hero-top-section > a.button.rayen","html > body > main > div.hero-amplify > div.hero-top-section > a.button.rayen"],domTrail:[{tagName:"A",elementAttributeNames:"class:button rayen;href:https://my.outbrain.com/amplify/funnel/?utm_source=my.outbrain.com%2F;target:_blank;aria-label:Start now and open an account with Outbrain;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:hero-top-section;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"class:hero-amplify;data-hero:data-hero;",elementId:"",elementNthChild:1},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Registration 925"},metadata:{conversionId:"00922698d47986b292276f99f2430f178a",cssPath:"div#brands-panel > ul > li:nth-of-type(4) > img",tagName:"IMG",elText:"",finalUrl:"https://www.outbrain.com/",enableGlobalConversion:"",groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > section:nth-of-type(2) > div > div > div:nth-of-type(2) > div#brands-panel > ul > li:nth-of-type(4) > img","html > body > main > section.partners > div.container > div.partners__inner > div.tab-panels > div > ul.logos-grid > li.logos-grid__item > img","html > body > main > section.partners > div.container > div.partners__inner > div.tab-panels > div > ul.logos-grid > li.logos-grid__item > img","html > body > main > section.partners > div.container > div.partners__inner > div.tab-panels > div > ul.logos-grid > li.logos-grid__item > img"],domTrail:[{tagName:"IMG",elementAttributeNames:"src:/images/pages/home-new/partners/brands/logo-brand-4.png;alt:;loading:lazy;",elementId:"",elementNthChild:0},{tagName:"LI",elementAttributeNames:"class:logos-grid__item;",elementId:"",elementNthChild:4},{tagName:"UL",elementAttributeNames:"class:logos-grid;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"id:brands-panel;aria-labelledby:tab-2;",elementId:"brands-panel",elementNthChild:2},{tagName:"DIV",elementAttributeNames:"class:tab-panels;",elementId:"",elementNthChild:2},{tagName:"DIV",elementAttributeNames:"class:partners__inner;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:container;",elementId:"",elementNthChild:0},{tagName:"SECTION",elementAttributeNames:"class:partners;",elementId:"",elementNthChild:2},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Lead Get in Touch"},metadata:{conversionId:"00dd0f777e84a25d9f1626c46b71272edd",cssPath:"main#main > section:nth-of-type(8) > div > div:nth-of-type(2) > a",tagName:"A",elText:"Get in Touch",finalUrl:"https://www.outbrain.com/publishers/smartlogic/",enableGlobalConversion:null,groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > section:nth-of-type(8) > div > div:nth-of-type(2) > a","html > body.fixed > main > section.partnering > div.wrapper > div.right-content > a.button","html > body.fixed > main > section.partnering > div.wrapper > div.right-content > a.button.rayen","html > body.fixed > main > section.partnering > div.wrapper > div.right-content > a.button.rayen"],domTrail:[{tagName:"A",elementAttributeNames:"class:button rayen;href:https://www.outbrain.com/contact/?who=publisher&;target:_blank;rel:noopener;aria-label:Get in touch;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:right-content;",elementId:"",elementNthChild:2},{tagName:"DIV",elementAttributeNames:"class:wrapper;",elementId:"",elementNthChild:0},{tagName:"SECTION",elementAttributeNames:"class:partnering;",elementId:"",elementNthChild:8},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"class:fixed;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Lead Start Now 123"},metadata:{conversionId:"004515fb52cd81f39ddf126e2f38c87fff",cssPath:"html > body > header:nth-of-type(2) > div > div > a",tagName:"A",elText:"Start Now",finalUrl:"https://www.outbrain.com/resources/outbrain-ads/grow-your-business-with-open-web-advertising-ads/",enableGlobalConversion:null,groupAnchorElementsWithUrl:null,groupElementsWithText:"Start Now"},cssSelectors:["html > body > header:nth-of-type(2) > div > div:nth-of-type(1) > a","html.no-js > body.ob-ads-template > header.hero-ob-ads > div.container > div.hero-ob-ads__content > a.button","html.no-js.no-svg > body.ob-ads-template.ob-ads-template-single-ob-ads > header.hero-ob-ads > div.container > div.hero-ob-ads__content > a.button","html.no-js.no-svg > body.ob-ads-template.ob-ads-template-single-ob-ads.ob-ads-template-single-ob-ads-php > header.hero-ob-ads > div.container > div.hero-ob-ads__content > a.button"],domTrail:[{tagName:"A",elementAttributeNames:"href:https://my.outbrain.com/amplify/funnel/?utm_source=my.outbrain.com%2F;class:button;target:_blank;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:hero-ob-ads__content;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"class:container;",elementId:"",elementNthChild:0},{tagName:"HEADER",elementAttributeNames:"class:hero-ob-ads;",elementId:"",elementNthChild:2},{tagName:"BODY",elementAttributeNames:"class:ob-ads-template ob-ads-template-single-ob-ads ob-ads-template-single-ob-ads-php single single-ob-ads postid-3346;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en-US;class:no-js no-svg;",elementId:"",elementNthChild:0}]},{conversion:{name:"Lead See how Lets22"},metadata:{conversionId:"002c00984d4bcb9248ae522ff874001b25",cssPath:"main#main > div > div > div > a",tagName:"A",elText:"See how - Let's Talk",finalUrl:"https://www.outbrain.com/advertisers/",enableGlobalConversion:"/",groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > a","html > body > main > div.hero-amplify > div.hero-top-section > div.desktop-only > a.button","html > body > main > div.hero-amplify > div.hero-top-section > div.desktop-only > a.button.rayen","html > body > main > div.hero-amplify > div.hero-top-section > div.desktop-only > a.button.rayen"],domTrail:[{tagName:"A",elementAttributeNames:"class:button rayen;href:https://www.outbrain.com/contact/?who=advertiser&;data-link-click-category:Button;data-link-click-action:Advertisers-CTA-main;target:_blank;aria-label:Contact us and request a call with our experts.;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:desktop-only;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"class:hero-top-section;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"class:hero-amplify;data-hero:data-hero;",elementId:"",elementNthChild:1},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Content View Crea123"},metadata:{conversionId:"0034fb8b4efe5e751b93a8009fe1ec3222",cssPath:"main#main > section:nth-of-type(6) > div > a",tagName:"A",elText:"Create My Campaign",finalUrl:"https://www.outbrain.com/advertisers/",enableGlobalConversion:null,groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > section:nth-of-type(6) > div:nth-of-type(1) > a","html > body.fixed > main > section.block-amplify-cta > div.desktop-only > a.button","html > body.fixed > main > section.block-amplify-cta > div.desktop-only > a.button.rayen","html > body.fixed > main > section.block-amplify-cta > div.desktop-only > a.button.rayen"],domTrail:[{tagName:"A",elementAttributeNames:"class:button rayen;href:https://my.outbrain.com/amplify/funnel/?utm_source=my.outbrain.com%2F;aria-label:Create your account;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:desktop-only;",elementId:"",elementNthChild:1},{tagName:"SECTION",elementAttributeNames:"class:block-amplify-cta;",elementId:"",elementNthChild:6},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"class:fixed;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]},{conversion:{name:"Add to Cart Start 77"},metadata:{conversionId:"0054e95ef2264a5eab74d0a288c0f47652",cssPath:"div#article-container > div > div:nth-of-type(2) > div > a",tagName:"A",elText:"Start Now",finalUrl:"https://www.outbrain.com/blog/affiliate-marketing/",enableGlobalConversion:"",groupAnchorElementsWithUrl:"https://my.outbrain.com/amplify/funnel/",groupElementsWithText:null},cssSelectors:["html > body > div#article-container > div > div:nth-of-type(2) > div > a","html.no-js > body.post-template-default > div.container > div.article > div.article-banners > div.article-banners__banner > a.btn","html.no-js.no-svg > body.post-template-default.single > div.container > div.article > div.article-banners > div.article-banners__banner.article-banners__banner--actionbox > a.btn.btn--primary","html.no-js.no-svg > body.post-template-default.single.single-post > div.container > div.article > div.article-banners > div.article-banners__banner.article-banners__banner--actionbox > a.btn.btn--primary.btn--sm"],domTrail:[{tagName:"A",elementAttributeNames:"href:https://my.outbrain.com/amplify/funnel/;class:btn btn--primary btn--sm article-banners__button;target:_blank;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:article-banners__banner article-banners__banner--actionbox;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:article-banners;",elementId:"",elementNthChild:2},{tagName:"DIV",elementAttributeNames:"class:article;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:container;id:article-container;",elementId:"article-container",elementNthChild:1},{tagName:"BODY",elementAttributeNames:"class:post-template-default single single-post postid-39832 single-format-standard;style:;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en-US;class:no-js no-svg;style:scroll-behavior: smooth;;",elementId:"",elementNthChild:0}]},{conversion:{name:"Other Test Your Ad"},metadata:{conversionId:"008defba9bf3193ac4ab2267280cc9004c",cssPath:"main#main > section:nth-of-type(3) > section > div > div:nth-of-type(2) > a",tagName:"A",elText:"Test Your Ad",finalUrl:"https://www.outbrain.com/advertisers/",enableGlobalConversion:"",groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > main#main > section:nth-of-type(3) > section > div > div:nth-of-type(2) > a","html > body.fixed > main > section.block-statistics > section.block-carousel > div.triple-carousel > div.desktop-only > a.button","html > body.fixed > main > section.block-statistics > section.block-carousel > div.triple-carousel > div.desktop-only > a.button.rayen","html > body.fixed > main > section.block-statistics > section.block-carousel > div.triple-carousel > div.desktop-only > a.button.rayen"],domTrail:[{tagName:"A",elementAttributeNames:"class:button rayen;href:/try-outbrain-demo/;target:_blank;rel:noopener;aria-label:Try Outbrain Demo;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:desktop-only;",elementId:"",elementNthChild:2},{tagName:"DIV",elementAttributeNames:"class:triple-carousel;",elementId:"",elementNthChild:0},{tagName:"SECTION",elementAttributeNames:"class:block-carousel;",elementId:"",elementNthChild:0},{tagName:"SECTION",elementAttributeNames:"class:block-statistics;",elementId:"",elementNthChild:3},{tagName:"MAIN",elementAttributeNames:"id:main;",elementId:"main",elementNthChild:0},{tagName:"BODY",elementAttributeNames:"class:fixed;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",elementId:"",elementNthChild:0}]}]); }],['mutations', () => { var define = true; !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.obBundle=e():(t.obBundle=t.obBundle||{},t.obBundle.dresscode=e())}(self,()=>(()=>{"use strict";var i={d:(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},t={};i.r(t),i.d(t,{DressCode:()=>l,factory:()=>e});function o(){for(var t=[],e=0;e ")}function d(t){if(t)return t.id||(t.attribs?t.attribs.id:void 0)}function m(t){if(t)return t.className||(t.attribs?t.attribs.class:void 0)}function f(t,e){var n;void 0===e&&(e=window);var i,o,a=[];try{a=Array.from(null==(n=e.document)?void 0:n.querySelectorAll(t))}catch(t){e=t,void 0===i&&(i="codeless"),void 0===o&&(o=2),Math.floor(100*Math.random())<=o&&c({app:i,message:e.message,extra:{name:e.name,line:e.lineNumber||e.line,script:e.fileName||e.sourceURL||e.script,stack:e.stackTrace||e.stack}})}return r("last selector used ".concat(t," results ").concat(a.length)),a}function p(t){try{var e=new URL(t).hostname,n=e.split(".").reverse();return 2<=n.length?n[1]+"."+n[0]:e}catch(e){return console.error("Invalid URL:",t),""}}function b(s){var c,t,l,u,e,n=document.createElement("style");function i(){window.clearTimeout(t),t=setTimeout(function(){u=null},2e3)}document.head.appendChild(n),n.innerHTML="@keyframes heartfade {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n }\n .heart {\n z-index: 999;\n animation: heartfade 6s linear;\n position: absolute;\n }",c=document.createElement("DIV"),document.body.prepend(c),l=[],u=null,document.onmousedown=function(t){u=t,i()},document.onmouseup=function(t){i()},document.onmousemove=function(t){u=t,i()},document.ontouchstart=function(t){u=t.touches[0],i()},document.ontouchend=function(t){i()},document.ontouchmove=function(t){u=t.touches[0],i()},e=Date.now(),setInterval(function(){var t=Date.now(),i=t-e;e=t,l.forEach(function(t,e){var n=t.heart,t=t.heartEl;n.time-=i,0s[0]&&e[1] "),i=e.split(" > ");if(0===n.length||0===i.length)return 1;for(var o=Math.max(n.length,i.length);n.length=i)return this.log("(sticky)Randomly selected variation idx ".concat(a," random: ").concat(i,", i: ").concat(a),t[a]),a;throw new Error("weightedRandomSelection: should never get here")},u.prototype.getPinnedMutationAndVariation=function(){var t=null==(t=null==(t=new URL(this._window.location.href).searchParams.get("ob-var"))?void 0:t.trim())?void 0:t.toLocaleLowerCase();if(null!=t&&0!=t.length)return 1==(t=t.split(",")).length?"control"==t[0].trim().toLocaleLowerCase()?{mIdx:void 0,vIdx:0}:{mIdx:void 0,vIdx:isNaN(parseInt(t[0]))?void 0:parseInt(t[0])}:2<=t.length?{mIdx:isNaN(parseInt(t[0]))?void 0:parseInt(t[0]),vIdx:isNaN(parseInt(t[1]))?void 0:parseInt(t[1])}:{mIdx:void 0,vIdx:void 0}},u.prototype.setImageSource=function(n,i){var t=new Image;t.src=i,t.onload=function(){var t,e;"img"===n.tagName.toLowerCase()?(t=n.parentElement,e=[],t&&"picture"===t.tagName.toLowerCase()&&(e=Array.from(t.querySelectorAll("source"))),n.style.transition="opacity 0.5s ease-in-out",n.style.opacity=0,setTimeout(function(){n.src=i,e.forEach(function(t){return t.srcset=i}),n.srcset&&(n.srcset=i),n.style.opacity=1},500)):"div"===n.tagName.toLowerCase()&&(n.style.transition="opacity 0.5s ease-in-out",n.style.opacity=0,setTimeout(function(){n.style.setProperty("background-image","url(".concat(i,")"),"important"),n.style.opacity=1},500))},t.onerror=function(){console.error("Failed to load image: ".concat(i))}},u.prototype.setCssAttributes=function(t,m,f){return g(this,void 0,void 0,function(){var e,n,i,o,a,r,s,c,l,u,d,h;return x(this,function(t){if(!(m instanceof window.Element))return[2,!1];if(f){if(e=f.attributes,n=f.css,e)for(i=0,o=Object.entries(e);io||i.top>a)&&(t.contains(e(i.left+(i.right-i.left)/2,i.top))||t.contains(e(i.left,i.top))||t.contains(e(i.right,i.top))||t.contains(e(i.right,i.bottom))||t.contains(e(i.left,i.bottom)))},u.prototype.doMutate=function(y,v){var w;return g(this,void 0,void 0,function(){var h,m,f,p,g;return x(this,function(t){switch(t.label){case 0:return t.trys.push([0,9,,10]),(h=this.similarityCalculator.extractWithSimilarity(this.boundElements,y.domTrail,y.cssSelectors,{name:y.name,id:"".concat(y.id)}))?(m=h.el,-1!==this.boundElements.indexOf(m)?[2,{method:h.method,domEl:m,status:"DUPLICATE"}]:(f=(null==(w=null==(w=v.cssAttributes.attributes)?void 0:w.textContent)?void 0:w.trim().toLocaleLowerCase())||"",p=function(){var t=f.match(/^(.+):(.+)$/);if(t){t[0];var e=t[1],t=t[2];if(S.includes(e)&&A.includes(t))return[e,t]}return[]}(),g=p[0],p=p[1],g&&"flow"===p?(b(g),[3,8]):[3,1])):[2,{status:"NOT_FOUND"}];case 1:return"soccer ball"!=f?[3,2]:(I(m,f),[3,8]);case 2:return["valentines heart","slot machine"].includes(f)?(this.log("adding ".concat(f," icon")),I(m,f),[3,8]):[3,3];case 3:return"pumpkins fall"!=f&&"pumpkins flow"!==f?[3,4]:(b("pumpkin"),[3,8]);case 4:if("xmas snow"!==f)return[3,5];else{this.log("XMS XMS XMS - adding a xmas snow");{function e(){if(r)for(var t=window.innerWidth,e=window.innerHeight,n=(a.width=t*s,a.height=e*s,a.style.width="".concat(t,"px"),a.style.height="".concat(e,"px"),r.scale(s,s),c.length=0,Math.floor(t*e/2e3)),i=0;ia.height+this.size},u.prototype.reset=function(){this.x=Math.random()*a.width,this.y=-this.size},u.prototype.update=function(){this.windAngle+=this.windSpeed,this.wind=.5*Math.cos(this.windAngle),this.x+=this.wind,this.y+=this.velocity,this.isOutsideCanvas()&&this.reset()},u.prototype.draw=function(){r&&(r.beginPath(),r.arc(this.x,this.y,this.size,0,2*Math.PI),r.fillStyle=this.fill,r.shadowColor="rgba(0, 0, 0, 0.3)",r.shadowBlur=2,r.fill(),r.closePath())},u);function u(){this.x=Math.random()*a.width,this.y=Math.random()*a.height,this.size=2*Math.random()+1,this.velocity=.35*this.size;var t=Math.min(this.size/3+.3,1);this.fill="rgba(255, 255, 255, ".concat(t,")"),this.windSpeed=.1*(Math.random()-.5),this.windAngle=Math.random()*Math.PI*2,this.wind=0}window.addEventListener("resize",e),e();function d(){r&&(requestAnimationFrame(d),r.clearRect(0,0,a.width,a.height),c.forEach(function(t){t.update(),t.draw()}))}d()}return[3,8]}case 5:return[4,this.resolveCssAttributes(y,m,v.cssAttributes)];case 6:return p=t.sent(),[4,this.setCssAttributes(y,m,p)];case 7:if(!t.sent())return[2,{domEl:m,status:"ERROR"}];t.label=8;case 8:return this.boundElements.push(m),[2,{status:"APPLIED",method:h.method,domEl:m}];case 9:return g=t.sent(),this.log("error while trying to mutate",g),[2,{status:"ERROR"}];case 10:return[2]}})})},u.prototype.resolveCssAttributes=function(i,o,a){var r;return g(this,void 0,void 0,function(){var e,n;return x(this,function(t){switch(t.label){case 0:return"ac-image"!==i.name?[3,4]:(e=this.getMacroParam("ad_id"))?[4,fetch("https://my.outbrain.com/mtGetImageExternalUrlFromAdID/handler?adId=".concat(e,"&width=").concat(o.offsetWidth,"&height=").concat(o.offsetHeight))]:[2,a];case 1:return(e=t.sent()).ok?[4,e.json()]:[3,3];case 2:n=t.sent().cachedImageUrl,null!=(r=a.attributes)&&r.src?a.attributes.src=n:null!=(r=a.css)&&r.backgroundImage&&(a.css.backgroundImage=n),t.label=3;case 3:case 4:return[2,a]}})})},u.prototype.loadVariationIdFromStorage=function(t){var e=this._window.document.cookie.split(";").find(function(t){return t.trim().startsWith("dicbo_id")});if(e){e=e.split("=")[1];if(e){e=decodeURIComponent(e);try{var n=JSON.parse(e);if(null!=n.variations){var i=n.variations;if(this.log("we have vars in cookies",JSON.stringify(i)),null!=i&&0!=i.length){var o=i.split(",").filter(function(t){return!isNaN(parseInt(t))}).map(function(t){return parseInt(t)});if(0==o.length)this.log("could not find any variation id in cookies [".concat(o,"]"));else{var a,r=t.map(function(t){return t.variations.map(function(t){return t.id})}).flat(),s=o.filter(function(t){return r.includes(t)});if(this.log("we have ".concat(s.length," relevant variations in cookies"),s),0!=s.length)return a=s[Math.floor(Math.random()*s.length)],this.log("we picked variationId ".concat(a," from cookies")),a}}}}catch(t){}}}},u.prototype.getMutationAndVariationFromStorage=function(t){var e,n=this.loadVariationIdFromStorage(t);if(null!=n)return e=t.findIndex(function(t){return-1!=t.variations.findIndex(function(t){return t.id==n})}),t=t[e].variations.findIndex(function(t){return t.id==n}),this.log("found variation id ".concat(t," part of ").concat(e," in cookies, will use it")),{mIdx:e,vIdx:t};this.log("could not find variation id in cookies, will randomize")},u.prototype.selectAndMutate=function(o){return g(this,void 0,void 0,function(){var e,n,i;return x(this,function(t){switch(t.label){case 0:return(i=this.getPinnedMutationAndVariation())?(e=null==i.mIdx?Math.floor(Math.random()*o.length):Math.min(i.mIdx,o.length-1),n=null==i.vIdx?Math.floor(Math.random()*o[e].variations.length):Math.min(i.vIdx,o[e].variations.length-1),this.log("we have pinned mutation ".concat(e," and variant ").concat(n))):(i=this.getMutationAndVariationFromStorage(o))?(e=i.mIdx,n=i.vIdx):(e=Math.floor(Math.random()*o.length),n=this.weightedRandomSelection(o[e].variations),this.log("nothing in cookies, let's random mutataionId: ".concat(e," and variant ").concat(n))),[4,this.mutate(o[e],n)];case 1:return[2,t.sent()]}})})},u.prototype.mutate=function(o,a){var r;return g(this,void 0,void 0,function(){var e,n,i;return x(this,function(t){switch(t.label){case 0:return i=function(t){return 0===t.type},e=o.variations[a],this.log("we picked variant ".concat(a),e),(n=o.variations.find(i))?i(e)?(this.addMutation(e.id),[2,{status:"APPLIED"}]):[4,this.doMutate(o,e)]:(this.log("no control variant found for mutation ".concat(o.id," ").concat(o.name)),[2,{status:"ERROR"}]);case 1:return"APPLIED"===(i=t.sent()).status?(this.addMutation(e.id),o.domEl=i.domEl):"NOT_FOUND"!==i.status&&"DUPLICATE"!==i.status&&(this.addMutation(n.id),c({app:"dresscode",error:"failed to apply",marketerID:null==(r=window.obApi)?void 0:r.marketerId,status:i.status})),[2,i]}})})},u.prototype.addMutation=function(t){void 0!==window.obApi&&(null!==obApi&&void 0!==obApi&&obApi.addVariation(t),null!==obApi&&void 0!==obApi&&obApi("track","OB_MUTATION_IMPRESSION"),this.log("firing OB_MUTATION_IMPRESSION with",{variationId:t}))},u.prototype.getMacroParam=function(t){return this.getQueryParam("".concat("obac_").concat(t))||this.getQueryParam(t)},u.prototype.execute=function(u){return g(this,void 0,void 0,function(){var a,e,o,r,s,c,n,i,l=this;return x(this,function(t){switch(t.label){case 0:if(e=!(a=[]),o=function(t){return["ac-image","ac-header"].includes(t.name)},r=u.filter(function(t){return!(1!==t.status&&!l.isDraft)&&(o(t)?!!t.campaignId&&t.campaignId===l.getMacroParam("campaign_id")&&p(window.location.href)!==p(document.referrer):(e=l._window.location.href,t=t.finalUrl,!(!e||!t)&&(t=new URL(t.toLowerCase()),e=new URL(e.toLowerCase()),t.pathname=t.pathname.replace(/\/+$/,""),e.pathname=e.pathname.replace(/\/+$/,""),t.hash="",e.hash="",t.origin===e.origin)&&t.pathname===e.pathname&&(""===t.search&&""===e.search||(t=new URLSearchParams(t.search),n=new URLSearchParams(e.search),i=!0,t.forEach(function(t,e){(!n.has(e)||t&&n.get(e)!==t)&&(i=!1)}),i))));var e,n,i}),i=r.reduce(function(t,e){return o(e)?[y(y([],t[0],!0),[e],!1),t[1]]:[t[0],y(y([],t[1],!0),[e],!1)]},[[],[]]),s=i[0],c=i[1],this.log("handling ".concat(u.length," mutations, ad continuity mutations: ").concat(s.length,", regular experiments: ").concat(c.length),u),!r||0==(null==r?void 0:r.length))return[2,[]];n=function(){return g(l,void 0,void 0,function(){var e,n,i,o;return x(this,function(t){switch(t.label){case 0:if(this.log("only live(or draft) ".concat(r.length," mutations are relevant for url ").concat(this._window.location.href),r),a.find(function(t){return"APPLIED"===t.status}))return[2];if(!this._window.document)throw"document does not exist";if(this._window)return this.log("doc state is ".concat(this._window.document.readyState," trying to apply mutations")),c.length?[4,this.selectAndMutate(c)]:[3,2];throw"window does not exist";case 1:o=t.sent(),a.push(o),t.label=2;case 2:e=0,n=s,t.label=3;case 3:return e").map(function(t){return t.trim()}),i=/#([\w-]+)/,o=n.filter(function(t){return i.test(t)});return o.length?(n=n[n.length-1],o=o.join(" ").trim()+" "+n,f(o,t._window)):[]},function(t,e,n){n[0],n[1];var n=n[2].split(">").map(function(t){return t.trim()}),i=n.pop(),o=n.filter(function(t){return t.match(/.\w+$/)});if(!o.length)return[];for(var a=[],r=!0;!a.length&&o.length;)r||o.shift(),a=f(o.join(" ").trim()+" "+i,t._window),r=!1;return a},function(t,e,n){for(var i=n[0],o=i.replace(/:nth-of-type\(\d+\)/gi,""),a=[];i!==o&&a.length<3;)i=i.replace(/:nth-of-type\(\d+\)/,""),a=f(i,t._window);return a}],this.locationHref=t}return t})()),"undefined"!=typeof obBundle&&(new obBundle.dresscode.DressCode).execute([{id:294,name:"Experiment #1",finalUrl:"https://www.outbrain.com/",status:1,modificationDate:"2024-06-03T07:24:40.000Z",creationDate:"2024-06-03T07:24:41.000Z",variations:[{id:1086,mutationId:294,content:"Start Now",cssAttributes:{attributes:{textContent:"Start Now"}},type:0,allocation:50,status:1,modificationDate:"2024-08-08T12:07:25.000Z",creationDate:"2024-06-03T07:24:41.000Z"},{id:1087,mutationId:294,content:"Get Results Today",cssAttributes:{attributes:{textContent:"Get Results Today"}},type:1,allocation:20,status:1,modificationDate:"2024-08-08T12:07:25.000Z",creationDate:"2024-06-03T07:24:41.000Z"},{id:1088,mutationId:294,content:"Unlock Better ROI",cssAttributes:{attributes:{textContent:"Unlock Better ROI"}},type:1,allocation:20,status:1,modificationDate:"2024-08-08T12:07:25.000Z",creationDate:"2024-06-03T07:24:41.000Z"},{id:1089,mutationId:294,content:"Boost Your Business",cssAttributes:{attributes:{textContent:"Boost Your Business"}},type:1,allocation:20,status:1,modificationDate:"2024-08-08T12:07:25.000Z",creationDate:"2024-06-03T07:24:41.000Z"},{id:1090,mutationId:294,content:"Activate Success",cssAttributes:{attributes:{textContent:"Activate Success"}},type:1,allocation:20,status:1,modificationDate:"2024-08-08T12:07:25.000Z",creationDate:"2024-06-03T07:24:41.000Z"}],cssSelectors:["html > body > main#main > header > div > div > div:nth-of-type(1) > a","html > body > main > header.hero > div.container > div.hero__inner > div.hero__content > a.button","html > body > main > header.hero > div.container > div.hero__inner > div.hero__content > a.button.rayen","html > body > main > header.hero > div.container > div.hero__inner > div.hero__content > a.button.rayen"],domTrail:[{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:44994,elementCssClasses:"button rayen",elementAttributeNames:"class:button rayen;href:https://my.outbrain.com/amplify/funnel/?utm_source=my.outbrain.com%2F;target:_blank;rel:noopener noreferrer;",tagName:"A",elementId:"",elementNthChild:0,type:1},{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:44995,elementCssClasses:"hero__content",elementAttributeNames:"class:hero__content;",tagName:"DIV",elementId:"",elementNthChild:1,type:1},{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:44996,elementCssClasses:"hero__inner",elementAttributeNames:"class:hero__inner;",tagName:"DIV",elementId:"",elementNthChild:0,type:1},{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:44997,elementCssClasses:"container",elementAttributeNames:"class:container;",tagName:"DIV",elementId:"",elementNthChild:0,type:1},{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:44998,elementCssClasses:"hero",elementAttributeNames:"class:hero;",tagName:"HEADER",elementId:"",elementNthChild:0,type:1},{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:44999,elementCssClasses:"",elementAttributeNames:"id:main;",tagName:"MAIN",elementId:"main",elementNthChild:0,type:1},{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:45e3,elementCssClasses:"",elementAttributeNames:"",tagName:"BODY",elementId:"",elementNthChild:0,type:1},{entityId:294,creationDate:"Mon Jun 03 2024 03:24:40 GMT-0400 (Eastern Daylight Time)",domTrailId:45001,elementCssClasses:"",elementAttributeNames:"lang:en;dir:ltr;prefix:og: http://ogp.me/ns#;",tagName:"HTML",elementId:"",elementNthChild:0,type:1}]}]); }]]; for (var i = 0; i < bundles.length; i++) { var bundle = bundles[i]; bundle[1].call(window, bundle[2]); } })()