/*! * Copyright (c) 2023 by Marfeel Solutions (http://www.marfeel.com) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Marfeel Solutions S.L and its suppliers, * if any. The intellectual and technical concepts contained * herein are proprietary to Marfeel Solutions S.L and its * suppliers and are protected by trade secret or copyright law. * Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained * from Marfeel Solutions SL. * */!function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);var a=null;function n(e,t){var r,a,n=window.innerWidth/1024,o=90===Math.abs(window.orientation)?"landscape":"portrait";r="s"===t?.56*(a="portrait"===o?270:240):.53*(a="portrait"===o?140:100),e.height=r*n+"px",e.width=a*n+"px"}function o(e){var t=window.innerWidth,r=document.createElement("div"),a=r.style;return n(a,e),r.className="mrf-marfeelBadge",a.position="fixed",a.display="block",a.bottom="60px",a.right=0,a.zIndex=2147483647,a.backgroundImage="url("+function(e){return"https://"+window.marfeel.GardaCUtil.getMarfeelHost()+"/statics/marfeel/garda/mrf-badge-dflt."+e+".png"}(e)+")",a.backgroundSize="100% 100%",a.webkitBorderTopLeftRadius="6px",a.webkitBorderBottomLeftRadius="6px",setInterval((function(){var e=window.innerWidth;t!==e&&(t=e,n(a))}),2e3),r.addEventListener("touchend",(function(e){e.stopPropagation(),window.marfeel.GardaC.reloadMarfeel()})),r}function i(){return/Android 4\.[0-4]/gi.test(window.marfeel.GardaCUtil.navigatorUserAgent)&&!/Chrome/i.test(window.marfeel.GardaCUtil.navigatorUserAgent)}var d,l={getDeviceType:function(){if(!a){var e=window.marfeel.GardaCUtil.navigatorUserAgent,t=window.marfeel.GardaCUtil.windowWidth,r=window.marfeel.GardaCUtil.windowHeight,n=t>r?"landscape":"portrait",o="portrait"===n&&t<=635||"landscape"===n&&r<=635;/ipad/i.test(e)?a="l":/ip(hone|od)|android.*(mobile|mini)/i.test(e)||/\bSilk\b/i.test(e)?a="s":/android (?!(1|2|3)\.)[0-9](?!.*mobile)/i.test(e)?a=o?"s":"l":this.isEnabled()||(a=window.marfeel.GardaCUtil.windowInnerWidth<=480?"s":"l")}return a},setDeviceType:function(e){a=e},userWantsMarfeel:function(){return!/marfeelgarda=no|fromt=yes/i.test(window.marfeel.GardaCUtil.locationSearch+";"+window.marfeel.GardaCUtil.documentCookie)},showMarfeelBadge:function(){var e=function e(){window.removeEventListener("DOMContentLoaded",e),document.getElementsByTagName("body")[0].appendChild(o(window.marfeel.GardaC.getDeviceType()))};"interactive"===document.readyState||"complete"===document.readyState?e.call(this):window.addEventListener("DOMContentLoaded",e)},reloadMarfeel:function(){this.cleanMarfeelCookie(),document.location.search=document.location.search.replace("fromt=yes","")},cleanMarfeelCookie:function(){window.marfeel.GardaCUtil.setCookieValue("fromt","no",Number.MAX_SAFE_INTEGER),window.marfeel.GardaCUtil.setCookieValue("FromMarfeelOnError","NO",Number.MAX_SAFE_INTEGER),window.marfeel.GardaCUtil.setCookieValue("MarfeelGarda","YES",Number.MAX_SAFE_INTEGER)},setCookieValue:function(e,t,r){var a=e+"="+t;a+=";expires="+new Date(Date.now()+r).toGMTString(),a+=";domain="+this.documentDomain,a+=";path=/",document.cookie=a},getMarfeelHost:function(){return window.mrf.host},getThemeForDevice:function(){return document.location.hostname.indexOf("newsone.gr")>=0&&"s"===a&&i()?"amp/":""},isEnabled:function(){return!/marfeelgarda=off/i.test(window.marfeel.GardaCUtil.locationSearch)},getMarfeelCt:function(){var e=document.head.querySelector("[data-mrf-script]");return e&&e.dataset.mrfCt?e.dataset.mrfCt:null}},f=window,c=document;f.marfeel=f.marfeel||{},f.mrf=f.mrf||{},f.mrf.host="bc.marfeelcache.com",d=f.marfeel.GardaC={getDeviceType:l.getDeviceType,userWantsMarfeel:l.userWantsMarfeel,showMarfeelBadge:l.showMarfeelBadge,reloadMarfeel:l.reloadMarfeel,cleanMarfeelCookie:l.cleanMarfeelCookie,isEnabled:l.isEnabled,perform:function(){"s"!==window.marfeel.GardaC.getDeviceType()||window.marfeel.GardaC.userWantsMarfeel()||window.marfeel.GardaC.showMarfeelBadge()}},f.marfeel.GardaCUtil={locationHref:location.href,locationSearch:location.search,locationPathname:location.pathname,navigatorUserAgent:f.navigator.userAgent,documentDomain:c.domain,documentReferrer:c.referrer,documentCookie:c.cookie,windowWidth:f.screen.width,windowInnerWidth:f.innerWidth,windowHeight:f.screen.height,getMarfeelHost:l.getMarfeelHost,setCookieValue:l.setCookieValue},d.perform()}]);