Вы находитесь на странице: 1из 3

/*!

* Copyright (c) 2020 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(n){if(t[n])return t[n].exports;var
a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!
0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,
{enumerable:!0,get:n})},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
n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!
0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return
e[t]}.bind(null,a));return n},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 n=window;function a(e){if(e.length>1)
{for(var t=e.substring(1).split("&"),r=[],n=0;n<t.length;+
+n)!/^utm_/.test(t[n])&&r.push(t[n]);return r.join("&")}return null}function o(e)
{return e?self.URL&&self.URL.prototype.hasOwnProperty("origin")?function(e){return
new self.URL(e)}(e):function(e){var t=document.createElement("a");return
t.href=e,t}(e):e}function i(e,t){for(var r=Object(e),n=1;n<arguments.length;n++)
{var a=arguments[n];if(a)for(var o in
a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r}var
l=null;function f(e,t){var
r,n,a=window.innerWidth/1024,o=90===Math.abs(window.orientation)?"landscape":"portr
ait";r="s"===t?.56*(n="portrait"===o?270:240):.53*(n="portrait"===o?
140:100),e.height=r*a+"px",e.width=n*a+"px"}function d(e){var
t=window.innerWidth,r=document.createElement("div"),n=r.style;return
f(n,e),r.className="mrf-
marfeelBadge",n.position="fixed",n.display="block",n.bottom="60px",n.right=0,n.zInd
ex=2147483647,n.backgroundImage="url("+function(e)
{return"https://"+window.marfeel.GardaCUtil.getMarfeelHost()
+"/statics/marfeel/garda/mrf-badge-dflt."+e+".png"}(e)+")",n.backgroundSize="100%
100%",n.webkitBorderTopLeftRadius="6px",n.webkitBorderBottomLeftRadius="6px",setInt
erval((function(){var e=window.innerWidth;t!
==e&&(t=e,f(n))}),2e3),r.addEventListener("touchend",(function(e)
{e.stopPropagation(),window.marfeel.GardaC.reloadMarfeel()})),r}function c()
{return/Android 4\.[0-
4]/gi.test(window.marfeel.GardaCUtil.navigatorUserAgent)&&!/Chrome/i.test(window.ma
rfeel.GardaCUtil.navigatorUserAgent)}var s={getDeviceType:function(){if(!l){var
e=window.marfeel.GardaCUtil.navigatorUserAgent,t=window.marfeel.GardaCUtil.windowWi
dth,r=window.marfeel.GardaCUtil.windowHeight,n=t>r?"landscape":"portrait",a="portra
it"===n&&t<=635||"landscape"===n&&r<=635;/ipad/i.test(e)?l="l":/ip(hone|od)|
android.*mobile/i.test(e)||/\bSilk\b/i.test(e)?l="s":/android (?!(1|2|3)\.)[0-9]
(?!.*mobile)/i.test(e)?l=a?"s":"l":this.isEnabled()||
(l=window.marfeel.GardaCUtil.windowInnerWidth<=480?"s":"l")}return
l},setDeviceType:function(e){l=e},userWantsMarfeel:function()
{return!/marfeelgarda=no|
fromt=yes/i.test(window.marfeel.GardaCUtil.locationSearch+";"+window.marfeel.GardaC
Util.documentCookie)},showMarfeelBadge:function(){var e=function e()
{window.removeEventListener("DOMContentLoaded",e),document.getElementsByTagName("bo
dy")
[0].appendChild(d(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.replac
e("fromt=yes","")},cleanMarfeelCookie:function()
{window.marfeel.GardaCUtil.setCookieValue("fromt","no",Number.MAX_SAFE_INTEGER),win
dow.marfeel.GardaCUtil.setCookieValue("FromMarfeelOnError","NO",Number.MAX_SAFE_INT
EGER),window.marfeel.GardaCUtil.setCookieValue("MarfeelGarda","YES",Number.MAX_SAFE
_INTEGER)},setCookieValue:function(e,t,r){var n=e+"="+t;n+=";expires="+new
Date(Date.now()
+r).toGMTString(),n+=";domain="+this.documentDomain,n+=";path=/",document.cookie=n}
,getMarfeelHost:function(){return window.mrf.host},getThemeForDevice:function()
{return
document.location.hostname.indexOf("newsone.gr")>=0&&"s"===l&&c()?"amp/":""},isEnab
led:function()
{return!/marfeelgarda=off/i.test(window.marfeel.GardaCUtil.locationSearch)},getMarf
eelCt:function(){var e=document.head.querySelector("[data-mrf-script]");return
e&&e.dataset.mrfCt?
e.dataset.mrfCt:null}},u=n.document,m=n.location;n.marfeel=n.marfeel||
{},n.mrf=n.mrf||{};var p=n.marfeel.GardaC={},g=n.marfeel.GardaCUtil={};function
h(e,t,r,n){var a=new XMLHttpRequest,o=n||{};a.timeout=o.timeout||
1e4,a.open("POST",e),a.setRequestHeader("Content-
type",o.contentType),o.withCredentials&&(a.withCredentials=!
0),a.onreadystatechange=function(){4===a.readyState&&r()},a.send(t)}function
w(e,t,r){return"v=1&tid="+e+"&cid="+t+"&t=event&ec=Error&ea=GardaC-
Sync_"+r+"&el="+g.locationHref+"&ev=0"}function v()
{return/bb10/i.test(g.navigatorUserAgent)||/(ipad|iphone|ipod).*?OS
4_3/i.test(g.navigatorUserAgent)||-1!
==g.navigatorUserAgent.indexOf("UCBrowser")||/windows
phone/i.test(g.navigatorUserAgent)||-1!==g.navigatorUserAgent.indexOf("Opera
Mini")||/Firefox|Focus/i.test(g.navigatorUserAgent)}function y(){return"https://"+
(g.getMarfeelHost()+"/"+p.getThemeForDevice()
+g.documentDomain+g.locationPathname+g.locationSearch).replace(/\/+/g,"/")}i(g,
{locationHostname:m.hostname,locationHref:m.href,locationSearch:m.search,locationPa
thname:m.pathname,navigatorUserAgent:n.navigator.userAgent,documentDomain:u.domain,
documentReferrer:u.referrer,documentCookie:u.cookie,windowWidth:n.screen.width,wind
owInnerWidth:n.innerWidth,windowHeight:n.screen.height,getMarfeelHost:s.getMarfeelH
ost,getMarfeelName:function(){return n.mrf.name||null},showBadge:function(){return!
(v()||!1===n.mrf.showBadge)},setCookieValue:s.setCookieValue,hasCookie:function(e)
{return u.cookie.indexOf(e)>=0},getMarfeelUrl:function(e){var t=o(n.mrf.transfUrl?
n.mrf.transfUrl(y()):y()),r=this.getMarfeelName(),i=s.getMarfeelCt(),l=function(e)
{for(var t="",r=0;r<e.length;++r)t+=e[r]?"&"+e[r]:"";return t.substring(1)}
(["marfeeldt=".concat(e),r&&"marfeeln=".concat(r),i&&"marfeelct=".concat(i),a(t.sea
rch)]);return t.origin+t.pathname+"?"+l},trackError:function(e,t){var
r=g.generateUUID(),n=3,a=function(){!--n&&t&&t()},o="http://www.google-
analytics.com/collect",i={contentType:"application/x-www-form-
urlencoded"},l="https://cosmos.marfeel.com/varys_errors-"+Date.now()
+"/event",f=JSON.stringify(function(e,t){return{msg:"GardaC-Sync_"+e+":
"+g.locationHref,dl:g.locationHref,dh:g.getMarfeelHost(),ua:g.navigatorUserAgent,md
t:p.getDeviceType(),cid:t,type:"gardaerror",ts:Date.now(),referrer:g.documentReferr
er}}(e,r));h(o,w("UA-27070218-1",r,e),a,i),h(o,w("UA-27070218-
13",r,e),a,i),h(l,f,a,{contentType:"application/json"})},generateUUID:function()
{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var
t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}),i(p,
{getDeviceType:s.getDeviceType,setDeviceType:s.setDeviceType,getThemeForDevice:s.ge
tThemeForDevice,isEnabled:s.isEnabled,userWantsMarfeel:s.userWantsMarfeel,cleanMarf
eelCookie:s.cleanMarfeelCookie,isExtractable:function(){var
e=u.head.querySelector('meta[name="mrf-extractable"]');return!e||"false"!
==e.getAttribute("content")},shouldShowMarfeel:function(){if(!n.mrf.ab)return!0;var
e="mrf-ab-"+n.mrf.ab;if(g.hasCookie(e+"="))return g.hasCookie(e+"=true");var
t=Math.random()<n.mrf.ab;return
g.setCookieValue(e,t,2592e6),t},reloadMarfeel:s.reloadMarfeel,redirectToMarfeel:fun
ction(){var e=g.getMarfeelUrl(this.getDeviceType()),t=new
XMLHttpRequest,r=u.createElement("iframe");if(r.id="mrf-
tenantSrcIframe",r.style.display="none",t.open("GET",e,!1),t.send(),200===t.status)
{var n=u.open();n.write(t.responseText),n.body.appendChild(r),n.write('<plaintext
id="mrf-tenantSrcWrapper"
style="display:none">'),r.contentDocument.body.appendChild(n.getElementById("mrf-
tenantSrcWrapper")),n.close()}else(t.status>=500||function(e){return
0===e.status&&e.getAllResponseHeaders()}
(t))&&g.trackError(t.status)},showMarfeelBadge:s.showMarfeelBadge,installDesktopScr
ipt:function(){var
e=g.locationPathname.split("/"),t=u.createElement("script");t.src="https://".concat
(s.getMarfeelHost(),"/").concat(g.locationHostname)+
(n.mrf.multi&&e.length>1&&e[1].length?"/"+e[1]:"")+"/main.d.js",t.async=!
0,u.head.appendChild(t)},readConfiguration:function(){var
e=u.head.querySelector("[data-mrf-script]");return!!
e&&(n.mrf.host=e.getAttribute("data-mrf-host"),n.mrf.dt=e.getAttribute("data-mrf-
dt")||3,n.mrf.multi=e.getAttribute("data-mrf-multi"),e.hasAttribute("data-mrf-
ab")&&(n.mrf.ab=e.getAttribute("data-mrf-ab")),!0)},perform:function()
{(function(e,t){if(v())return!1;var
r="l"===e&&2&t,n="s"===e&&1&t,a=g.locationSearch.indexOf("marfeelcherokee")>=0;retu
rn r||n||a})
(this.getDeviceType(),n.mrf.dt)&&this.isExtractable()&&this.shouldShowMarfeel()?
this.userWantsMarfeel()?
this.redirectToMarfeel():this.isEnabled()&&g.showBadge()&&this.showMarfeelBadge():t
his.installDesktopScript()}}),p.readConfiguration()&&p.perform()}]);

Вам также может понравиться