w2g.publisherConfigCallback(conf = { slots: [{ SlotId: "w2g-slot1-sg", label: true, delay: true, slotsPadding: { top: 30, bottom: 5 }, Handle: { selector: "body > div.deals-carousel-wrapper > h2", insert: { type: "before" }, }, AdUnitName: "/21695112458/Eskytravel_it/sg_bill_top", Sizes: [[970, 250], [970, 90], [750, 300], [750, 200], [728, 90], [336, 280], [300, 250], [320, 100]], PBSize: w2g.bidders, Mapping: [ [[990, 0], [[970, 250], [970, 90], [750, 300], [750, 200], [728, 90]]], [[758, 0], [728, 90]], [[340, 0], [[336, 280], [300, 250]]], [[0, 0], [300, 250]] ] }, { SlotId: "w2g-slot2-sg", label: true, type : { name : 'lazy', px : 150 }, slotsPadding: { top: 30, bottom: 15 }, Handle: { selector: "#smart-carousel", insert: { type: "after" }, }, AdUnitName: "/21695112458/Eskytravel_it/sg_bill_bottom", Sizes: [[970, 90], [728, 90], [336, 280], [300, 250], [320, 100]], PBSize: w2g.bidders, Mapping: [ [[990, 0], [[970, 90], [728, 90]]], [[758, 0], [728, 90]], [[340, 0], [[336, 280], [300, 250]]], [[0, 0], [300, 250]] ] },{ SlotId: "w2g-footer", label: true, type: { name: 'lazy', px: 150 }, slotsPadding: { top: 5, bottom: 15 }, Handle: { selector: "body > footer > div.social-media-wrapper > div", insert: {type: "after"} }, AdUnitName: "/21695112458/Eskytravel_it/bottom_footer", Sizes: [[970, 90], [750,100], [728, 90], [336, 280], [300, 250]], PBSize: w2g.bidders, Mapping: [ [[990, 0], [[970, 90], [750, 100], [728, 90]]], [[758, 0], [728, 90]], [[340, 0], [[336, 280], [300, 250]]], [[0, 0], [300, 250]] ] } ], prebid: { ver: '4.21.2', timeout: 1500, USD: 3.83, EUR: 4.28, bidderSettings: { teads: { bidCpmAdjustment: function (e) { return e * conf.prebid.CHF } }, amx: { bidCpmAdjustment: function (e) { return e * conf.prebid.USD } }, ix: { bidCpmAdjustment: function (e) { return e * conf.prebid.USD } }, adagio: { bidCpmAdjustment: function(e) { return e * conf.prebid.USD } }, }, customConfigObject: { buckets: [{ precision: 2, min: 0, max: 4, increment: .01 }, { precision: 2, min: 4, max: 8, increment: .01 }, { precision: 2, min: 8, max: 12, increment: .01 }, { precision: 2, min: 12, max: 20, increment: .1 }, { precision: 2, min: 20, max: 50, increment: .2 }, { precision: 2, min: 50, max: 100, increment: .5 }] } } }); !function(){var t={466:function(t){"use strict";t.exports={prebidObject:"pbjs",maxUnfilled:"2"}},337:function(){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=o(e);n;)n=o(e=n.ownerDocument);return e}(),e=[],n=null,i=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){i=t&&n?u(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,i=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var i=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=n.setInterval(i,this.POLL_INTERVAL):(d(n,"resize",i,!0),d(e,"scroll",i,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(i)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),a(t,"resize",i,!0)),a(e,"scroll",i,!0),s&&s.disconnect()}));var l=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=l){var c=o(e);c&&this._monitorIntersections(c.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var i=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=i;){var r=o(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=i){var d=o(e);d&&this._unmonitorIntersections(d.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e=0&&p>=0&&{top:a,bottom:c,left:h,right:f,width:m,height:p}||null),!v)break;b=b&&g(b)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!f(this.root))e=l(this.root);else{var n=f(this.root)?this.root:t,i=n.documentElement,o=n.body;e={top:0,left:0,right:i.clientWidth||o.clientWidth,width:i.clientWidth||o.clientWidth,bottom:i.clientHeight||o.clientHeight,height:i.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var o=0;o{const{config:t}=n.g.reloadAds,e=t.leaveIframe&&"true"===t.leaveIframe,i={},o=((t,e)=>{let n=!1,i=window,o=i.location.href;return function(r){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"log";if(window.self!==window.top)try{i=window.top,o=i.location.href}catch(t){}if(o.indexOf("#")>0){const i=o.split("#");(i[1].indexOf(e)>=0||i[1].indexOf("w2g_debug_all")>=0)&&(n=!0),i[1].indexOf("w2g_products")>=0&&console.log("%c %s %c","background:#EE7D0B;color:#FFFFFF;font-weight:bold;padding:1px 2px;",`WTG product: ${t}`,"color:#555;padding:2px")}if(n&&console)switch(d){case"time":case"timeEnd":console[d](r);break;default:console[d]("%c %s %c %s ","background:#3b88c3;color:#FFFFFF;font-weight:bold;padding:1px 2px;",t,"color:#555;padding:2px",r,s)}}})("Smart Reload","w2g_reload_debug"),r=[];let s,d=!1,a=window,l=document;const c={init(){let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&window.self!==window.top)try{a=window.top,l=a.document}catch(t){return void o("Can't leave iframe. Exit script.")}a.googletag=a.googletag||{cmd:[]},a[t.prebidObject]=a[t.prebidObject]||{},a[t.prebidObject].que=a[t.prebidObject].que||[],a.wtgAllConfigAdunitsReload||(a.wtgAllConfigAdunitsReload=r),this.setCurrentUrl(a.location.href),this.overrideConfig(n),this.removeAdUnitsFromConfig(),this.addAdUnitsToArr(),this.setGoogleSlotRenderEndedListener(),o("Config: ",t)},startReload(){if(t.adUnits&&t.adUnits.length>0){for(let e=0;e{i[t].reloadTimeoutHandler&&clearTimeout(i[t].reloadTimeoutHandler),i[t].isImpression=!1,i[t].isReloadTimeout=!1,i[t].unfilledCount=0}))},setUrlChangeListener(){d||new MutationObserver((()=>{const t=a.location.href;t!==s&&(s=t,c.resetAdUnitObjectForSPA())})).observe(document,{subtree:!0,childList:!0})},debounce(t,e){let n;return function(){for(var i=arguments.length,o=new Array(i),r=0;r{clearTimeout(n),t(...o)}),e)}},throttle(t,e){let n=!1;return()=>{n||(t.call(),n=!0,setTimeout((()=>{n=!1}),e))}},setEventListenersReload(){if(t.events){const e=500;t.events.forEach((t=>{a.addEventListener(t,this.throttle((()=>{o("event detected",`${t} timestamp:${Date.now()}`),Object.keys(i).forEach((t=>{c.reloadBid(t,!0)}))}),e))}))}},setGoogleImpressionViewableListener(){const t=this.getAdUnitsData();a.googletag.cmd.push((function(){a.googletag.pubads().addEventListener("impressionViewable",(function(e){const n=e.slot.getAdUnitPath();if(t[n]){const e=t[n].reloadTime;o("impressionViewable",n),i[n].isImpression=!0,i[n].reloadTimeoutHandler=setTimeout((()=>{i[n].isReloadTimeout=!0,c.reloadBid(n)}),e)}}))}))},setGoogleSlotRenderEndedListener(){const e=this.getAdUnitsData();a.googletag.cmd.push((function(){a.googletag.pubads().addEventListener("slotRenderEnded",(function(n){const r=n.slot.getAdUnitPath();if(e[r]){o("slotRenderEnded",r),d||c.startReload();const e=n.slot.getResponseInformation();if(t.advertiserId){o("checking AdvertiserId ...");let t=0;e&&e.advertiserId&&(t=e.advertiserId),c.checkAdvertiserId(t,r),o("google advertiserId: ",t)}if(t.campaignId){o("checking CampaignId (DFP OrderID) ...");let t=0;e&&e.campaignId&&(t=e.campaignId),c.checkCampaignId(t,r),o("google campaignId (DFP OrderID): ",t)}if(n.isEmpty||1===n.size[0]&&!n.slot.getTargeting("hb_size")[0]?(i[r].unfilledCount+=1,o("Unfilled:",`${r} count:${i[r].unfilledCount}`,"warn")):i[r].unfilledCount=0,i[r].reloadTimeoutHandler&&clearTimeout(i[r].reloadTimeoutHandler),i[r].isImpression=!1,i[r].isReloadTimeout=!1,!i[r].intersectionState){const t=n.slot.getSlotId().getDomId();c.observe(r,t)}}}))}))},observerCustomEventListener(){const t=this.getAdUnitsData();a.addEventListener("wtgReloadObserverChange",(e=>{const n=e.detail;t[n]&&(o("wtgObserverChange",e.detail),c.reloadBid(e.detail))}))},observe(t,e){const n=l.getElementById(e);n?new IntersectionObserver((e=>{e.forEach((e=>{i[t].intersectionState=e;const n=new CustomEvent("wtgReloadObserverChange",{detail:t});a.dispatchEvent(n)}))})).observe(n):o("Can not set observer, element not found in DOM.",`Element id: ${e}`,"warn")},visibilityChangeListener(){a.addEventListener("visibilitychange",(()=>{"visible"===l.visibilityState&&Object.keys(i).forEach((t=>{c.reloadBid(t)}))}))},reloadBid(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];void 0!==i[e]&&(t.events&&t.events.length>0&&!n||"visible"===l.visibilityState&&(i[e].unfilledCount>t.maxUnfilled-1||i[e].isValidAdvertiserId&&i[e].isValidCampaignId&&i[e].isImpression&&i[e].isReloadTimeout&&i[e].intersectionState.isIntersecting&&(i[e].isImpression=!1,i[e].isReloadTimeout=!1,a.googletag.pubads().getSlots().forEach((t=>{t.getAdUnitPath()===e&&t.setTargeting("adReload",!0)})),a[t.prebidObject].que.push((function(){o("requestBids reload",e),a[t.prebidObject].requestBids({timeout:1e3,adUnitCodes:[e],bidsBackHandler(){a[t.prebidObject].setTargetingForGPTAsync([e]);for(let t=0;t0&&void 0!==arguments[0]&&arguments[0];if(e&&(o("Config object detected"),!t.adUnits&&e.slots)){t.adUnits=[];for(let n=0;n0)for(let e=0;e-1===t.removeAdUnits.indexOf(e.name)))):o("Can not remove AdUnits. There is no config.adUnits object",!1,"warn")),a.wtgAllConfigAdunitsReload&&(t.adUnits?(o("remove adUnits from config (configs duplicates)"),t.adUnits=t.adUnits.filter((t=>-1===a.wtgAllConfigAdunitsReload.indexOf(t.name)))):o("Can not remove AdUnits (configs duplicates). There is no config.adUnits object",!1,"warn"))},checkAdvertiserId(e,n){t.advertiserId.allowed&&(-1===t.advertiserId.allowed.map((t=>Number(t))).indexOf(e)?(i[n].isValidAdvertiserId=!1,o("wrong AdvertiserId (not find in allowed ids)")):o("AdvertiserId is OK (find in allowed ids)")),t.advertiserId.notAllowed&&(t.advertiserId.notAllowed.map((t=>Number(t))).indexOf(e)>-1?(i[n].isValidAdvertiserId=!1,o("wrong AdvertiserId (find in notAllowed ids)")):o("AdvertiserId is OK (not find in notAllowed ids)"))},checkCampaignId(e,n){t.campaignId.allowed&&(-1===t.campaignId.allowed.map((t=>Number(t))).indexOf(e)?(i[n].isValidCampaignId=!1,o("wrong CampaignId (DFP OrderID) (not find in allowed ids)")):o("CampaignId (DFP OrderID) is OK (find in allowed ids)")),t.campaignId.notAllowed&&(t.campaignId.notAllowed.map((t=>Number(t))).indexOf(e)>-1?(i[n].isValidCampaignId=!1,o("wrong CampaignId (DFP OrderID) (find in notAllowed ids)")):o("CampaignId (DFP OrderID) is OK (not find in notAllowed ids)"))},setCurrentUrl(t){s=t}};return c},e=n(466),i=n.n(e);const o="undefined"!=typeof conf&&conf;(async()=>{if((new class{constructor(){this.self=this,this.details={browser:!1,node:!1,jsdom:!1},this.run()}run(){const{browser:t,node:e,jsdom:n}=this.checkEnv();return this.details={browser:t,node:e,jsdom:n}}checkEnv(){return{browser:this.isBrowser(),node:this.isNode(),jsdom:this.isJsDOM()}}isBrowser(){return"undefined"!=typeof window&&void 0!==window.document}isNode(){return"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}isJsDOM(){return"undefined"!=typeof window&&"nodejs"===window.name||"undefined"!=typeof navigator&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"))}isBrowserEnabled(){const{browser:t,node:e,jsdom:n}=this.details;return t&&!e&&!n}showDecisions(){return console.dir(this.details)}}).isBrowserEnabled()){if(!i())throw new Error("config error");n.g.reloadAds={},n.g.reloadAds.config=i(),t().init(o)}})(i())}()}();