(() => { 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 t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},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={};t.r(e),t.d(e,{DynamicEngagements:()=>i,factory:()=>r});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 o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.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={};o.r(e),o.d(e,{EventsBinder:()=>r,factory:()=>function(){for(var e=[],t=0;t ")}function m(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 f(e,t){var n;if(void 0===t&&(t=window),!e)return[];var o=[];try{o=Array.from(null==(n=t.document)?void 0:n.querySelectorAll(e))}catch(n){a("ERROR: in querySelectorAll ".concat(n.message," ").concat(e," trying with sanitized selector")),o=Array.from(null==(t=t.document)?void 0:t.querySelectorAll(e.replace(/[^a-zA-Z0-9-_:.#\s]/g,"")))}return a("last selector used ".concat(e," results ").concat(o.length)),o}var i,v=function(){return(v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n "),o=t.split(" > ");if(0===n.length||0===o.length)return 1;for(var i=Math.max(n.length,o.length);n.length").map(function(e){return e.trim()}),o=/#([\w-]+)/,i=n.filter(function(e){return o.test(e)});return i.length?(n=n[n.length-1],i=i.join(" ").trim()+" "+n,f(i,e._window)):[]},function(e,t,n){n[0],n[1];var n=n[2].split(">").map(function(e){return e.trim()}),o=n.pop(),i=n.filter(function(e){return e.match(/.\w+$/)});if(!i.length)return[];for(var a=[],r=!0;!a.length&&i.length;)r||i.shift(),a=f(i.join(" ").trim()+" "+o,e._window),r=!1;return a},function(e,t,n){for(var o=n[0],i=o.replace(/:nth-of-type\(\d+\)/gi,""),a=[];o!==i&&a.length<3;)o=o.replace(/:nth-of-type\(\d+\)/,""),a=f(o,e._window);return a}],this.locationHref=e}return e})()),"undefined"!=typeof obBundle&&(new obBundle.events.EventsBinder).execute([{conversion:{name:"Red"},metadata:{conversionId:"0014b411fb5bef8043dd8db32025661304",cssPath:"a#cta-to-flip",tagName:"A",elText:"Verificacopertura",finalUrl:"https://www.eolo.it/page/prova-gratis-eolo/?utm_source=amplify",enableGlobalConversion:"",groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > div:nth-of-type(1) > div#page > section#hero-2 > div#hero-2-txt > div:nth-of-type(1) > div > div > div > div:nth-of-type(4) > div#top-card > div > div:nth-of-type(1) > div > div:nth-of-type(2) > a#cta-to-flip","html.js > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll > div.container > div.row > div.col-xl-12 > div.hero-2-txt > div > div.flip-card > div.flip-card-inner > div.eolo-offerta-rectangle > div.hero-2-btns > div.btn > a","html.js.canvas > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll.division > div.container > div.row > div.col-xl-12 > div.hero-2-txt > div > div.flip-card.no-animation > div.flip-card-inner.no-animation > div.eolo-offerta-rectangle.eolo-offerta-rectangle--side-a > div.hero-2-btns > div.btn.btn-mini > a","html.js.canvas.no-touch > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll.division > div.container > div.row > div.col-xl-12 > div.hero-2-txt > div > div.flip-card.no-animation.pt-0 > div.flip-card-inner.no-animation > div.eolo-offerta-rectangle.eolo-offerta-rectangle--side-a.eolo-offerta-rectangle--rework > div.hero-2-btns > div.btn.btn-mini.eolo-orange-button > a"],domTrail:[{tagName:"A",elementAttributeNames:"id:cta-to-flip;href:javascript:void(0);onclick:FlipCard.flip(this);style:color:#fff;;",elementId:"cta-to-flip",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:btn btn-mini eolo-orange-button btn-orangered js-aidTarget tra-white-hover mr-15 mb-10 ;",elementId:"",elementNthChild:2},{tagName:"DIV",elementAttributeNames:"class:hero-2-btns;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:eolo-offerta-rectangle eolo-offerta-rectangle--side-a eolo-offerta-rectangle--rework text-center;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"class:flip-card-inner no-animation ;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:flip-card no-animation pt-0 pt-md-30;id:top-card;",elementId:"top-card",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"",elementId:"",elementNthChild:4},{tagName:"DIV",elementAttributeNames:"class:hero-2-txt ;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:col-xl-12;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:row;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:container ;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"id:hero-2-txt;class:bg-scroll division;",elementId:"hero-2-txt",elementNthChild:1},{tagName:"SECTION",elementAttributeNames:"id:hero-2;class:hero-section;",elementId:"hero-2",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"id:page;class:page;",elementId:"page",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:wsmenucontainer;",elementId:"",elementNthChild:1},{tagName:"BODY",elementAttributeNames:"data-new-gr-c-s-check-loaded:14.1163.0;data-gr-ext-installed:;data-new-gr-c-s-loaded:14.1163.0;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:it;class: js canvas no-touch geolocation hashchange draganddrop multiplebgs backgroundsize borderradius boxshadow textshadow opacity csstransitions fontface video audio svg inlinesvg js no-touch;style:;",elementId:"",elementNthChild:0}]},{conversion:{name:"Green"},metadata:{conversionId:"00a2b027a7b9cd277b4855075091173f0c",cssPath:"div#top-card > div > div > div > div:nth-of-type(3) > a",tagName:"A",elText:"Ti chiamiamonoi",finalUrl:"https://www.eolo.it/page/prova-gratis-eolo/?utm_source=amplify",enableGlobalConversion:"",groupAnchorElementsWithUrl:null,groupElementsWithText:null},cssSelectors:["html > body > div:nth-of-type(1) > div#page > section#hero-2 > div#hero-2-txt > div:nth-of-type(1) > div > div > div > div:nth-of-type(4) > div#top-card > div > div:nth-of-type(1) > div > div:nth-of-type(3) > a","html.js > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll > div.container > div.row > div.col-xl-12 > div.hero-2-txt > div > div.flip-card > div.flip-card-inner > div.eolo-offerta-rectangle > div.hero-2-btns > div.callMeBack > a","html.js.canvas > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll.division > div.container > div.row > div.col-xl-12 > div.hero-2-txt > div > div.flip-card.no-animation > div.flip-card-inner.no-animation > div.eolo-offerta-rectangle.eolo-offerta-rectangle--side-a > div.hero-2-btns > div.callMeBack.btn > a","html.js.canvas.no-touch > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll.division > div.container > div.row > div.col-xl-12 > div.hero-2-txt > div > div.flip-card.no-animation.pt-0 > div.flip-card-inner.no-animation > div.eolo-offerta-rectangle.eolo-offerta-rectangle--side-a.eolo-offerta-rectangle--rework > div.hero-2-btns > div.callMeBack.btn.btn-mini > a"],domTrail:[{tagName:"A",elementAttributeNames:"href:##;style:color:#fff!important;;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:callMeBack btn btn-mini btn-dimgreen tra-white-hover mb-10;",elementId:"",elementNthChild:3},{tagName:"DIV",elementAttributeNames:"class:hero-2-btns;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:eolo-offerta-rectangle eolo-offerta-rectangle--side-a eolo-offerta-rectangle--rework text-center;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"class:flip-card-inner no-animation ;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:flip-card no-animation pt-0 pt-md-30;id:top-card;",elementId:"top-card",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"",elementId:"",elementNthChild:4},{tagName:"DIV",elementAttributeNames:"class:hero-2-txt ;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:col-xl-12;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:row;",elementId:"",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:container ;",elementId:"",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"id:hero-2-txt;class:bg-scroll division;",elementId:"hero-2-txt",elementNthChild:1},{tagName:"SECTION",elementAttributeNames:"id:hero-2;class:hero-section;",elementId:"hero-2",elementNthChild:1},{tagName:"DIV",elementAttributeNames:"id:page;class:page;",elementId:"page",elementNthChild:0},{tagName:"DIV",elementAttributeNames:"class:wsmenucontainer;",elementId:"",elementNthChild:1},{tagName:"BODY",elementAttributeNames:"data-new-gr-c-s-check-loaded:14.1163.0;data-gr-ext-installed:;data-new-gr-c-s-loaded:14.1163.0;",elementId:"",elementNthChild:0},{tagName:"HTML",elementAttributeNames:"lang:it;class: js canvas no-touch geolocation hashchange draganddrop multiplebgs backgroundsize borderradius boxshadow textshadow opacity csstransitions fontface video audio svg inlinesvg js no-touch;style:;",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:()=>c,factory:()=>e});function o(){for(var t=[],e=0;e ")}function u(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;if(void 0===e&&(e=window),!t)return[];var i=[];try{i=Array.from(null==(n=e.document)?void 0:n.querySelectorAll(t))}catch(n){a("ERROR: in querySelectorAll ".concat(n.message," ").concat(t," trying with sanitized selector")),i=Array.from(null==(e=e.document)?void 0:e.querySelectorAll(t.replace(/[^a-zA-Z0-9-_:.#\s]/g,"")))}return a("last selector used ".concat(t," results ").concat(i.length)),i}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,d,e,n=document.createElement("style");function i(){window.clearTimeout(t),t=setTimeout(function(){d=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=[],d=null,document.onmousedown=function(t){d=t,i()},document.onmouseup=function(t){i()},document.onmousemove=function(t){d=t,i()},document.ontouchstart=function(t){d=t.touches[0],i()},document.ontouchend=function(t){i()},document.ontouchmove=function(t){d=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")},l.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}},l.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))}},l.prototype.setCssAttributes=function(t,m,f){return g(this,void 0,void 0,function(){var e,n,i,o,a,r,s,c,l,d,u,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)))},l.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)&&C.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},d.prototype.reset=function(){this.x=Math.random()*a.width,this.y=-this.size},d.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()},d.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())},d);function d(){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 u(){r&&(requestAnimationFrame(u),r.clearRect(0,0,a.width,a.height),c.forEach(function(t){t.update(),t.draw()}))}u()}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]}})})},l.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]}})})},l.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){}}}},l.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")},l.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()]}})})},l.prototype.mutate=function(a,r){var s;return g(this,void 0,void 0,function(){var n,i,o;return x(this,function(t){switch(t.label){case 0:return o=function(t){return 0===t.type},n=a.variations[r],this.log("we picked variant ".concat(r),n),(i=a.variations.find(o))?o(n)?(this.addMutation(n.id),[2,{status:"APPLIED"}]):[4,this.doMutate(a,n)]:(this.log("no control variant found for mutation ".concat(a.id," ").concat(a.name)),[2,{status:"ERROR"}]);case 1:if("APPLIED"===(o=t.sent()).status)this.addMutation(n.id),a.domEl=o.domEl;else if("NOT_FOUND"!==o.status&&"DUPLICATE"!==o.status){this.addMutation(i.id);{var e={app:"dresscode",error:"failed to apply",marketerID:null==(s=window.obApi)?void 0:s.marketerId,status:o.status};e=Object.assign({marketerID:null===obApi||void 0===obApi?void 0:obApi.marketerId,referrer:window.document.referrer,location:window.document.location.href},e);e=encodeURIComponent(JSON.stringify(e,null,"\t"));"undefined"==typeof Image?console.log("dump to log: ".concat(e)):(new Image).src="//tr.outbrain.com/log?msg=AmplifyWaves:".concat(encodeURIComponent(e))}}return[2,o]}})})},l.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}))},l.prototype.getMacroParam=function(t){return this.getQueryParam("".concat("obac_").concat(t))||this.getQueryParam(t)},l.prototype.execute=function(d){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=d.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(d.length," mutations, ad continuity mutations: ").concat(s.length,", regular experiments: ").concat(c.length),d),!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:270,name:"Experiment #1",finalUrl:"https://www.eolo.it/page/prova-gratis-eolo/?utm_source=amplify",status:1,modificationDate:"2024-05-07T13:15:35.000Z",creationDate:"2024-05-07T13:15:35.000Z",variations:[{id:1003,mutationId:270,content:"Prova gratis EOLO!Disdici senza costi. Sarà amore a prima connessione ️",cssAttributes:{attributes:{textContent:"Prova gratis EOLO!Disdici senza costi. Sarà amore a prima connessione ️"}},type:0,allocation:50,status:1,modificationDate:"2024-08-08T12:07:25.000Z",creationDate:"2024-05-07T13:15:35.000Z"},{id:1004,mutationId:270,content:"Prova gratis EOLO! Per una casa felice e connessa",cssAttributes:{attributes:{textContent:"Prova gratis EOLO! Per una casa felice e connessa"}},type:1,allocation:20,status:1,modificationDate:"2024-08-08T12:07:25.000Z",creationDate:"2024-05-07T13:15:35.000Z"}],cssSelectors:["html > body > div:nth-of-type(1) > div#page > section#hero-2 > div#hero-2-txt > div:nth-of-type(1) > div > div > div > h1","html.js > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll > div.container > div.row > div.col-xl-12 > div.hero-2-txt > h1.h2-xs","html.js.canvas > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll.division > div.container > div.row > div.col-xl-12 > div.hero-2-txt > h1.h2-xs.white-color","html.js.canvas.no-touch > body > div.wsmenucontainer > div.page > section.hero-section > div.bg-scroll.division > div.container > div.row > div.col-xl-12 > div.hero-2-txt > h1.h2-xs.white-color.pt-20"],domTrail:[{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40320,elementCssClasses:"h2-xs white-color pt-20 pb-20",elementAttributeNames:"class:h2-xs white-color pt-20 pb-20;",tagName:"H1",elementId:"",elementNthChild:0,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40321,elementCssClasses:"hero-2-txt ",elementAttributeNames:"class:hero-2-txt ;",tagName:"DIV",elementId:"",elementNthChild:0,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40322,elementCssClasses:"col-xl-12",elementAttributeNames:"class:col-xl-12;",tagName:"DIV",elementId:"",elementNthChild:0,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40323,elementCssClasses:"row",elementAttributeNames:"class:row;",tagName:"DIV",elementId:"",elementNthChild:0,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40324,elementCssClasses:"container ",elementAttributeNames:"class:container ;",tagName:"DIV",elementId:"",elementNthChild:1,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40325,elementCssClasses:"bg-scroll division",elementAttributeNames:"id:hero-2-txt;class:bg-scroll division;",tagName:"DIV",elementId:"hero-2-txt",elementNthChild:1,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40326,elementCssClasses:"hero-section",elementAttributeNames:"id:hero-2;class:hero-section;",tagName:"SECTION",elementId:"hero-2",elementNthChild:1,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40327,elementCssClasses:"page",elementAttributeNames:"id:page;class:page;",tagName:"DIV",elementId:"page",elementNthChild:0,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40328,elementCssClasses:"wsmenucontainer",elementAttributeNames:"class:wsmenucontainer;",tagName:"DIV",elementId:"",elementNthChild:1,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40329,elementCssClasses:"",elementAttributeNames:"data-new-gr-c-s-check-loaded:14.1171.0;data-gr-ext-installed:;data-new-gr-c-s-loaded:14.1171.0;",tagName:"BODY",elementId:"",elementNthChild:0,type:1},{entityId:270,creationDate:"Tue May 07 2024 09:15:35 GMT-0400 (Eastern Daylight Time)",domTrailId:40330,elementCssClasses:" js canvas no-touch geolocation hashchange draganddrop multiplebgs backgroundsize borderradius boxshadow textshadow opacity csstransitions fontface video audio svg inlinesvg js no-touch",elementAttributeNames:"lang:it;class: js canvas no-touch geolocation hashchange draganddrop multiplebgs backgroundsize borderradius boxshadow textshadow opacity csstransitions fontface video audio svg inlinesvg js no-touch;style:;",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]); } })()