Files
recipe-importer/sobors-examples/sobors_2_files/passportHeader.js.download
T
2026-02-24 18:00:10 +01:00

151 lines
67 KiB
Plaintext

__passportHeaderUtil={initFramework:function(){this.add_event_funct="addEventListener";this.event_type_prefix="";!document.addEventListener&&document.attachEvent&&(this.add_event_funct="attachEvent",this.event_type_prefix="on");this.polyIndexOf();this.polyCustomEvent();this.polyGetElementsByClassName()},polyIndexOf:function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c=this.length>>>0;b=Number(b)||0;b=0>b?Math.ceil(b):Math.floor(b);for(0>b&&(b+=c);b<c;b++)if(b in this&&this[b]===
a)return b;return-1})},polyCustomEvent:function(){function a(b,c){c=c||{bubbles:!1,cancelable:!1,detail:void 0};var d=document.createEvent("CustomEvent");d.initCustomEvent(b,c.bubbles,c.cancelable,c.detail);return d}if("function"===typeof window.CustomEvent)return!1;a.prototype=window.Event.prototype;window.CustomEvent=a},polyGetElementsByClassName:function(){document.getElementsByClassName||(window.Element.prototype.getElementsByClassName=document.constructor.prototype.getElementsByClassName=function(a){if(this.querySelectorAll)return this.querySelectorAll("."+
a);var b=this.getElementsByTagName("*");a=new RegExp("(?:\\s|^)"+a+"(?:\\s|$)");var c=[],d;for(d=b.length;d--;){var e=b[d];e.className.match(a)&&c.unshift(e)}return c})},addListener:function(a,b,c){var d=c;window.addEventListener||(d=function(e){e=e||window.event;e.target=e.target||e.srcElement;c.apply(this,[e])});a[this.add_event_funct](this.event_type_prefix+b,d,!1)},dispatchEvent:function(a,b,c){c=new CustomEvent(b,{detail:c});"function"==typeof a.dispatchEvent?a.dispatchEvent(c):"function"==typeof a.fireEvent&&
a.fireEvent("on"+b,c)},replaceClass:function(a,b,c){__passportHeaderUtil.removeClass(a,b);__passportHeaderUtil.addClass(a,c)},removeClass:function(a,b){__passportHeaderUtil.hasClass(a,b)&&(a.className=(" "+a.className+" ").replace(" "+b+" "," ").replace(/^\s+|\s+$|(\s)\s+/g,"$1"))},addClass:function(a,b){__passportHeaderUtil.hasClass(a,b)||(a.className=(a.className+" "+b).replace(/^\s+|\s+$|(\s)\s+/g,"$1"))},hasClass:function(a,b){return-1<(" "+a.className+" ").indexOf(" "+b+" ")},cookie:function(a,
b,c){if("undefined"!=typeof b){c=c||{};null===b&&(b="",c.expires=-1);var d="";c.expires&&("number"==typeof c.expires||c.expires.toUTCString)&&("number"==typeof c.expires?(d=new Date,d.setTime(d.getTime()+864E5*c.expires)):d=c.expires,d="; expires="+d.toUTCString());var e=c.path?"; path="+c.path:"",f=c.domain?"; domain="+c.domain:"";c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),d,e,f,c].join("")}else{b=null;if(document.cookie&&""!=document.cookie)for(c=document.cookie.split(";"),
d=0;d<c.length;d++)if(e=c[d].replace(/^[ ]*/,""),e.substring(0,a.length+1)==a+"="){b=decodeURIComponent(e.substring(a.length+1));break}return b}},insertScript:function(a,b,c,d,e){if(b){b="__passportHeader-"+b;var f;(f=document.getElementById(b))&&f.parentNode.removeChild(f)}var g=document.createElement("script");g.type="text/javascript";g.async=!0;e&&(g.crossOrigin=e);b&&(g.id=b);g.src=a;var h=document.getElementsByTagName("head")[0];if(c&&"function"==typeof c){var k=!1;g.onload=g.onreadystatechange=
function(){k||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(k=!0,c(),g.onload=g.onreadystatechange=null,h&&g.parentNode&&h.removeChild(g))}}d&&"function"==typeof d&&(g.onerror=d);h.appendChild(g)}};__passportEvent=function(a,b){a.config.IDENT_URL&&(this.header=a,this.cuid="undefined"==typeof b?null:b,this.cookieName="ident")};__passportEvent.prototype.getCookie=function(){return __passportHeaderUtil.cookie(this.cookieName)};
__passportEvent.prototype.send=function(a,b){var c=this.getCookie();if(c){var d=1E17*Math.random();if("ot"==a){a=this.header.config.IDENT_URL+"ident/ot.js?&cemp="+encodeURIComponent(c)+"&rnd="+d;this.cuid&&(a+="&cuid="+encodeURIComponent(this.cuid));for(var e in b)a+="&"+encodeURIComponent(e)+"="+encodeURIComponent(b[e]);__passportHeaderUtil.insertScript(a)}}};__passportHeader=function(a){this.config=a;this.version="0db5ad1faad25ad06172636999a5d92b25c837fd";this.setConst();this.sites=[{id:"index",name:"Index",url:"https://index.hu"},{id:"index2",name:"Blog.hu C\u00edmlap",url:"https://cimlap.blog.hu",dropdownName:"Blog.hu C\u00edmlap"},{id:"velvet",name:"Velvet",url:"https://velvet.hu"},{id:"divany",name:"D\u00edv\u00e1ny",url:"https://divany.hu"},{id:"totalcar",name:"Totalcar",url:"https://totalcar.hu"},{id:"blog",name:"Blog",url:"https://blog.hu?icn=passport-header&ici={from}_text"},
{id:"port",name:"Port",url:"https://port.hu"},{id:"forum",name:"F\u00f3rum",url:"https://forum.index.hu",logoutUrl:"http://kilepes.blog.hu"},{id:"economx",name:"Economx",url:"https://www.economx.hu"},{id:"video",name:"Vide\u00f3",url:"https://indavideo.hu"}];this.manisHeader={manis:{header:["index","velvet","divany","totalcar","economx"],inda:["blog","index2","port","forum","video"],indaTitle:"Inda"},inda:{header:["blog","port","forum","video","economx"],inda:["index","index2","velvet","divany","totalcar"],
indaTitle:"Kiadv\u00e1nyok"}};if(this.dom=document.getElementById("passportHeader")){this.checkConfig();a=document.getElementsByTagName("script");this.debug=!1;for(var b=0;b<a.length;b++)a[b].src.match(/passportHeader-debug.js/)&&(this.debug=!0);this.init()}};__passportHeader.prototype.setConst=function(){this.konst={PROVIDER_STATUS_UNKNOWN:1,PROVIDER_STATUS_VALID:0,PROVIDER_STATUS_NOTICE:5,PROVIDER_STATUS_EXPIRED:10,PROVIDER_STATUS_INVALID:99}};
__passportHeader.prototype.checkConfig=function(){"undefined"===typeof this.config.sitelinkId&&"undefined"===typeof this.manisHeader[this.config.sitelinkId]&&(this.config.sitelinkId="inda");"undefined"===typeof this.config.gaTrackingId&&(this.config.gaTrackingId="UA-21185729-2");"undefined"==typeof this.config.s3pc&&(this.config.s3pc={enabled:!1})};
__passportHeader.prototype.init=function(){__passportHeaderUtil.initFramework();this.initAnalytics();this.noti=new __notiClient(this);this.ident=new __passportIdent(this,this.config.tid?this.config.tid:null);this.breaking=new __passportBreaking(this);this.cp=new __passportCP(this);new __passportRP(this);var a=this;this.loginError=null;this.config.s3pc.enabled&&(this.config.s3pc.supported=this.cp.supports3PC(),null===this.config.s3pc.supported&&this.cp.check3PCSupport(this.config.INDAPASS_URL+"cookiecheck",
d=>{console.log("Cookiecheck result: ",d);this.config.s3pc.supported=d;var e=document.getElementById("user-dropdown");e&&null!==d&&!this.config.loggedIn&&this.insertHtml(e,this.createLogoutDropdown(d))}));var b=function(){a.initSubscriptionButtons();a.ui.onLoad();a.checkAlertStatus()};__passportHeaderUtil.addListener(document,"DOMContentLoaded",b);__passportHeaderUtil.addListener(window,"load",b);var c=this.createHeaderHtml();this.debug?(this.insertCss(this.config.HEADER_URL+"css/fixed_header.css?version="+
this.version),this.insertCss(this.config.HEADER_URL+"css/plugins/_common.css?version="+this.version),this.insertCss(this.config.HEADER_URL+"css/plugins/bloghu.css?version="+this.version)):this.insertCss(this.config.HEADER_URL+"css/passportHeader.css?version="+this.version);this.insertHtml(this.dom,c);this.ui=new __passportHeaderUI(this);this.config.miniHeader&&__passportHeaderUtil.addClass(this.dom,"_iph_mini");"right"==this.config.miniHeader&&__passportHeaderUtil.addClass(this.dom,"_iph_mini-right");
this.isProviderExpired()&&__passportHeaderUtil.addClass(this.dom,"_iph_fb_alert");this.noti.registerUnreachableHandler(function(){a.notiUnreachable()});b()};
__passportHeader.prototype.reinit=function(a){for(var b in a)this.config[b]=a[b];this.insertHtml(this.dom,this.createHeaderHtml());this.ui=new __passportHeaderUI(this);this.config.miniHeader&&__passportHeaderUtil.addClass(this.dom,"_iph_mini");this.isProviderExpired()&&__passportHeaderUtil.addClass(this.dom,"_iph_fb_alert");this.ui.positionDropdown();this.noti.reinit()};
__passportHeader.prototype.getSiteConfig=function(a){a||(a=this.config.partner_id);for(var b=0;b<this.sites.length;b++)if(this.sites[b].id==a)return this.sites[b];return!1};
__passportHeader.prototype.createHeaderHtml=function(){var a='<div class="_iph_fixed-header fixed-header" id="_iph_fixed-header"> <div class="fixed-header-container">'+this.createRightHtml();a+=this.createMainHtml();this.config.miniHeader||(a+=this.createManisHtml(!1));a+=" </div></div>";this.config.miniHeader||(a=a+'<div class="_iph_fixed-header fixed-header-inda-dropdown-container">'+this.createIndaDropdown(),a+="</div>");a=a+'<div class="_iph_fixed-header fixed-header-dropdown-container inactive" id="_iph_fixed-header-dropdown-container"> <div class="fixed-header-dropdown-wrapper">'+
this.createNotificationDropdown();a+=this.createUserDropdown();a+=this.createTokenalertDropdown();a+=" </div></div>";this.config.miniHeader||(a=a+'<div id="fixed-header-mobil-kiadvanyok" class="_iph_fixed-header fixed-header-mobil-kiadvanyok">'+this.createManisHtml(!0),a+="</div>");return a};
__passportHeader.prototype.createMainHtml=function(){if(!this.config.mainMenu||!this.config.mainMenu.length)return"";var a='<ul class="_iph_main">';for(var b=0;b<this.config.mainMenu.length;b++){var c=this.config.mainMenu[b]["class"];a+='<li><a href="#" class="icon icon-'+c+'" id="icon-'+c+'"></a></li>'}return a+"</ul>"};
__passportHeader.prototype.createRightHtml=function(){var a='<ul class="_iph_rgt">'+this.createTokenAlertIconHtml();this.config.disableNoti||(a+=' <li><a href="#" class="icon icon-harang" id="icon-harang">',this.config.loggedIn&&(a+=' <span class="badge inactive" id="notification-badge">0</span>'),a+=" </a></li>");var b=this.config.loggedIn?"icon-user":"icon-kulcs";this.config.loggedIn&&this.config.avatar&&(b+=" _iph-icon-avatar");a=a+' <li> <a href="#" class="icon '+(b+'" id="icon-user"');
this.config.loggedIn&&this.config.avatar&&(a+=" style=\"background-image:url('"+this.config.avatar+"');background-position:center; background-size: 36px 36px\"");a=a+"></a>"+this.createHint();return a+" </li></ul>"};
__passportHeader.prototype.createManisHtml=function(a){var b=this.manisHeader[this.config.sitelinkId].header;var c='<div class="fixed-header-mobil-kiadvanyok-container"> <ul class="kiadvanyok">';for(var d=0;d<b.length;d++){var e=this.getSiteConfig(b[d]),f=this.config.from?this.config.from:this.config.partner_id,g=e.id;e?(c+='<li><a href="'+this.getCTUrl(e.url,null,f)+"\" onclick=\"return passportHeader.gaEvent('click','jshead_ct:"+f+"-"+g+'\');" data-lnk="1">',c+=e.name,c+="</a></li>"):this.debug&&
console.log("Unknown siteid "+b[d]+" in header config!")}c=c+' <li> <a id="icon-inda'+((a?"-mobile":"")+'" href="#">')+this.manisHeader[this.config.sitelinkId].indaTitle;return c+' <span class="icon-dropdown"></span> </a> </li> </ul></div>'};
__passportHeader.prototype.createTokenAlertIconHtml=function(){return this.isProviderExpired()?'<li> <a href="#" class="icon icon-fbtoken" id="icon-fbtoken"> <span class="badge inactive" id="icon-fbtoken-badge"></span> </a></li>':""};
__passportHeader.prototype.checkAlertStatus=function(){var a;this.config.providerExpired&&!this.config.providerExpired.checked&&(this.config.providerExpired.checked=!0,(a=document.location.hash.match(/^#(error|tokenrefresh)=(.*)$/))?this.showAlertResult(a[1],a[2]):this.isProviderExpired()&&__passportHeaderUtil.insertScript(this.config.HEADER_URL+"status.php?provider="+encodeURIComponent(this.config.providerExpired.name)))};
__passportHeader.prototype.setAlertStatus=function(a,b){this.isProviderExpired()&&this.config.providerExpired.name==a&&1==b&&this.config.providerExpired.status>=this.konst.PROVIDER_STATUS_EXPIRED&&this.ui.toggler(["icon-fbtoken","fbtoken-dropdown"],null)};__passportHeader.prototype.resetAlertStatus=function(){this.isProviderExpired()&&__passportHeaderUtil.insertScript(this.config.HEADER_URL+"status.php?provider="+encodeURIComponent(this.config.providerExpired.name)+"&reset=1")};
__passportHeader.prototype.showAlertResult=function(a,b){if("error"==a)__passportHeaderUtil.addClass(document.getElementById("fbtoken-dropdown"),"_iph_token_error");else{__passportHeaderUtil.addClass(document.getElementById("fbtoken-dropdown"),"_iph_token_success");this.gaEvent("sessionmeghosszabbitas","sikeresenmeghosszabbitva",null,"facebook");var c=this;window.setTimeout(function(){__passportHeaderUtil.addClass(document.getElementById("fbtoken-dropdown"),"_iph_fade_away");window.setTimeout(function(){c.ui.toggler(["fbtoken-dropdown"],
null)},500)},1E4)}this.resetAlertStatus();void 0===window.history||void 0===window.history.replaceState||window.history.state&&window.history.state.hasActive||window.history.replaceState(null,"",window.location.href.replace(/(#.*$)/,""));this.ui.toggler(["icon-fbtoken","fbtoken-dropdown"],null)};__passportHeader.prototype.isProviderExpired=function(){return this.config.providerExpired&&"Facebook"==this.config.providerExpired.name};
__passportHeader.prototype.getCTUrl=function(a,b,c,d){c&&(0<=a.indexOf("{from}")?a=a.replace("{from}",c):(d||(d="text"),b=["utm_source=fejlec_"+encodeURIComponent(c),"utm_medium="+encodeURIComponent(d),"utm_campaign=fejlec"].join("&"),b=0<=a.indexOf("?")?"&"+b:"?"+b,a=a.replace(/(#|$)/,b+"$1")));return a};
__passportHeader.prototype.providerLoginClicked=function(a){var b=a.parentNode.parentNode.getElementsByTagName("form");if(1!=b.length)return!0;a.href=a.href.replace(/autologin=[01]/,"autologin="+(b[0].autologin.checked?1:0));return!0};
__passportHeader.prototype.hasLoginError=function(){if(this.config.ignoreLoginError)return!1;if(null!==this.loginError)return this.loginError;var a=document.location.search.match(/[?&]error=(badpass|disabled)/);(this.loginError=a?a[1]:!1)&&void 0!==window.history&&void 0!==window.history.replaceState&&(a=search_orig=document.location.search,a=a.replace(/[?&]error=(badpass|disabled)/,""),"&"==a.charAt(0)?a="?"+a.substr(1):"?"==a&&(a=""),a=document.location.href.replace(document.location.pathname+search_orig,
document.location.pathname+a),history.replaceState(null,null,a));return this.loginError};
__passportHeader.prototype.createUserDropdown=function(){var a="",b=this.getSiteConfig();a+='<div class="fixed-header-dropdown user-dropdown'+(this.config.loggedIn?"":"-kijelentkezett")+'" id="user-dropdown">';if(this.config.loggedIn){var c=document.location.href;b.logoutUrl?c=b.logoutUrl:this.config.logoutUrl&&(c=this.config.logoutUrl);a+=' <ul class="_iph_std-menu">';this.config.hasFacebook?this.isProviderExpired()&&(a=a+' <li><p class="_iph_important">T\u00fal r\u00e9g l\u00e9pt\u00e9l be a Facebookoddal. Er\u0151s\u00edtsd meg, ha szeretn\u00e9l tov\u00e1bbra is \u00edgy bejelentkezve maradni! <em>(Egy klikk az eg\u00e9sz.)</em><p></li> <li class="facebook"><a href="'+
(this.config.INDAPASS_URL+"refreshprovidertoken/?url="+encodeURIComponent(document.location.href)+"\" onclick=\"passportHeader.gaEvent('sessionmeghosszabbitas', 'meghosszabbitklikk', null, 'facebook')\"><span class=\"icon icon-facebook-fff\"></span> Meger\u0151s\u00edtem</a></li>"),a+=' <li class="divider"></li>'):(a+=' <li class="facebook"><a href="'+this.config.INDAPASS_URL+"connectloginprovider/?url="+encodeURIComponent(document.location.href)+"&partner="+this.config.partner_id+'"><span class="icon icon-facebook-fff"></span> \u00d6sszek\u00f6t\u00e9s Facebookkal</a></li>',
a+=' <li class="divider"></li>');a+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL,"profil","indapass_profil")+'">Szolg\u00e1ltat\u00e1sok ('+this.config.nick+")</a></li>";a+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"profil/","profil","indapass_profil")+'">Indapass be\u00e1ll\u00edt\u00e1sok</a></li>';a+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"profil/#avatar","profil","indapass_avatar")+'">Profilk\u00e9p</a></li>';if(this.config.links&&
this.config.links.loggedIn)for(b=0;b<this.config.links.loggedIn.length;b++)a+='<li><a href="'+this.config.links.loggedIn[b].url+'">'+this.config.links.loggedIn[b].text+"</a>";a=a+' <li class="divider"></li> <li><a class="secondary" href="'+(this.getCTUrl(this.config.INDAPASS_URL+"segitseg/","segitseg","segitseg")+'" target="_blank" onclick="return passportHeader.gaEvent(\'click\',\'help\');">Seg\u00edts\u00e9g</a></li>');a+=' <li><a class="secondary" href="'+this.getCTUrl(this.config.INDAPASS_URL+
"kilepes/?redirect_to="+encodeURIComponent(c),"kilepes","kilepes")+'">Kil\u00e9p\u00e9s</a></li>';a+=" </ul>"}else a+=this.createLogoutDropdown(!this.config.s3pc.enabled||this.config.s3pc.supported||null===this.config.s3pc.supported);return a+"</div>"};
__passportHeader.prototype.createLogoutDropdown=function(a){var b=!1,c;if(c=this.hasLoginError())switch(c){case "badpass":b="Hib\u00e1s felhaszn\u00e1l\u00f3n\u00e9v vagy jelsz\u00f3!";break;case "disabled":b="A felhaszn\u00e1l\u00f3nevet m\u00e9g nem aktiv\u00e1ltad!"}c=this.config.partner_id;var d=this.getSiteConfig();d&&d.registerSlug&&(c=d.registerSlug);html="";a?(html+=' <ul class="_iph_std-menu">',html+=' <li class="facebook"><a href="'+this.config.INDAPASS_URL+"providerlogin/?url="+
encodeURIComponent(document.location.href)+"&partner="+this.config.partner_id+'&autologin=1" onclick="passportHeader.gaEvent(\'click\', \'facebooklogin\'); return passportHeader.providerLoginClicked(this);"><span class="icon icon-facebook-fff"></span> Bel\u00e9p\u00e9s Facebookkal</a></li>',html+=' <li class="divider indapass-logo"><span></span></li>',html+=' <li class="_iph_loginform">',html+=' <form action="'+this.config.LOGIN_URL+'" method="POST" accept-charset="utf-8">',
html+=' <input type="hidden" name="partner_id" value="'+this.config.partner_id+'">',html+=' <input type="hidden" name="redirect_to" value="'+document.location.href+'"/>',html+=' <input type="text" placeholder="Email c\u00edm" name="username" id="_iph_login_username" onchange="return passportHeader.gaEvent(\'active\', \'loginemailmezo\')"/>',html+=' <input type="password" placeholder="Jelsz\u00f3" name="password" onchange="return passportHeader.gaEvent(\'active\', \'loginjelszomezo\')"/>',
b&&(html+=' <p class="errormsg">'+b+"</p>"),html+=" <button type=\"submit\" onclick=\"return passportHeader.gaEvent('click', 'loginbutton')\">Bel\u00e9p\u00e9s</button>",html+=' <input id="maradjakbelepve" type="checkbox" name="autologin" value="1" checked="checked" onchange="return passportHeader.gaEvent(\'active\', \'loginremembermezo\')">',html+=' <label for="maradjakbelepve">Maradjak bel\u00e9pve</label>',html+=" </form>",html+=
" </li>",html+=' <li class="divider"></li>',html+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"regisztracio/"+c+"/?redirect_to="+encodeURIComponent(document.location.href),"regisztracio","regisztracio")+"\" onclick=\"return passportHeader.gaEvent('click', 'loginregbutton')\">Regisztr\u00e1ci\u00f3</a>",html+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"jelszoemlekezteto/?redirect_to="+encodeURIComponent(document.location.href),"jelszoemlekzteto",
"jelszoemlekezteto")+"\" onclick=\"return passportHeader.gaEvent('click', 'loginforgotpassbutton')\">Elfelejtettem a jelszavam</a>"):(html+=' <ul class="_iph_std-menu">',html+=' <li class="divider indapass-logo"><span></span></li>',html+=' <li class="_iph_loginform _iph_s3pc">',html+=' <a href="'+this.config.s3pc.loginHelperURL+'" class="_iph_btn" onclick="return passportHeader.gaEvent(\'click\', \'loginbutton\')">Bel\u00e9p\u00e9s</a>',html+=" </li>",html+=' <li class="divider"></li>',
html+=' <li><a href="'+this.getCTUrl(this.config.INDAPASS_URL+"regisztracio/"+c+"/?redirect_to="+encodeURIComponent(document.location.href),"regisztracio","regisztracio")+"\" onclick=\"return passportHeader.gaEvent('click', 'loginregbutton')\">Regisztr\u00e1ci\u00f3</a>");html+=' <li><a class="_iph_help" href="'+this.getCTUrl(this.config.INDAPASS_URL+"segitseg/","segitseg","segitseg")+'" target="_blank" onclick="return passportHeader.gaEvent(\'click\',\'help\');">Seg\u00edts\u00e9g</a></li>';
return html+=" </ul>"};
__passportHeader.prototype.createNotificationDropdown=function(){var a='<div class="fixed-header-dropdown notifications-dropdown'+(this.config.loggedIn?"":"-kijelentkezett")+'" id="notifications-dropdown">';this.config.loggedIn&&(a+=' <div id="_iph_notification-loading"> <div class="_iph_noti_dot _iph_noti_dot1"></div> <div class="_iph_noti_dot _iph_noti_dot2"></div> <div class="_iph_noti_dot _iph_noti_dot3"></div> <div class="_iph_noti_dot _iph_noti_dot4"></div> <p>bet\u00f6lt\u00e9s...</p> </div> <div id="_iph_noti_unreachable"><p>Upsz, ez tov\u00e1bb tart mint gondoltuk...</p></div> <div id="_iph_notifications-list"> </div> <div id="_iph_has-more-button"><span class="_iph_lnk">tov\u00e1bbi \u00e9rtes\u00edt\u00e9sek</span></div>');return a+
"</div>"};
__passportHeader.prototype.createTokenalertDropdown=function(){var a="";if(!this.config.loggedIn)return a;a=a+'<div class="fixed-header-dropdown fbtoken-dropdown inactive" id="fbtoken-dropdown"> <p class="_iph_fbtoken_stnd">T\u00fal r\u00e9g l\u00e9pt\u00e9l be a Facebookoddal. Er\u0151s\u00edtsd meg, ha szeretn\u00e9l tov\u00e1bbra is \u00edgy bejelentkezve maradni! <em>(Egy klikk az eg\u00e9sz.)</em></p> <p class="_iph_fbtoken_err">Valami hiba t\u00f6rt\u00e9nt a Facebookos bel\u00e9p\u00e9sed meger\u0151s\u00edt\u00e9sekor :( Pr\u00f3b\u00e1lkozz \u00fajra picit k\u00e9s\u0151bb!</p> <p class="_iph_fbtoken_succ">Sikeresen meghosszabb\u00edtottad a Facebookos bel\u00e9p\u00e9sed :)</p> <p class="_iph_fbtoken_ctrl"> <a href="'+(this.getCTUrl(this.config.INDAPASS_URL+
"profil/#setting-Facebook","profil","indapass_facebook")+"\" class=\"_iph_fbtoken_settings\" onclick=\"passportHeader.gaEvent('sessionmeghosszabbitas', 'beallitasklikk', null, 'facebook')\"></a>");a+=' <a href="'+this.config.INDAPASS_URL+"refreshprovidertoken/?url="+encodeURIComponent(document.location.href)+"\" class=\"_iph_fbtoken_fb\" onclick=\"passportHeader.gaEvent('sessionmeghosszabbitas', 'meghosszabbitklikk', null, 'facebook')\"><span>Meger\u0151s\u00edtem</span><span>\u00dajra pr\u00f3b\u00e1l</span></a>";
return a+' </p> <span id="_iph_fbtoken_close"></span></div>'};
__passportHeader.prototype.createIndaDropdown=function(){var a=this.manisHeader[this.config.sitelinkId].inda;var b='<div class="fixed-header-inda-dropdown-wrapper"> <div id="inda-dropdown" class="fixed-header-dropdown inda-dropdown"> <ul class="_iph_std-menu">';for(var c=0;c<a.length;c++){var d=this.getSiteConfig(a[c]);if(d){var e=this.config.from?this.config.from:this.config.partner_id,f=d.id;b+='<li><a href="'+this.getCTUrl(d.url,null,e)+"\" onclick=\"return passportHeader.gaEvent('click','jshead_ct:"+
e+"-"+f+"');\">";b+=void 0!==d.dropdownName?d.dropdownName:d.name;b+="</a></li>"}else this.debug&&console.log("Unknown siteid "+a[c]+" in inda dropdown config!")}return b+" </ul> </div></div>"};__passportHeader.prototype.showBadge=function(a){var b=document.getElementById("notification-badge");b&&(0<a?(b.innerHTML=a,__passportHeaderUtil.removeClass(b,"inactive")):__passportHeaderUtil.addClass(b,"inactive"))};
__passportHeader.prototype.addNotifications=function(a,b){void 0===b&&(b=!1);this.removeNoNotifications();var c="jan feb m\u00e1rc \u00e1pr m\u00e1j j\u00fan j\u00fal aug szept okt nov dec".split(" "),d=document.getElementById("_iph_notification-loading");d&&(d.style.display="none");if(d=document.getElementById("_iph_noti_unreachable"))d.style.display="none";d=document.getElementById("_iph_notifications-list");for(var e=new Date,f=new Date(e.getFullYear(),e.getMonth(),e.getDate()),g=d.firstChild,
h=0;h<a.length;h++){var k=a[h];if(!k.deleted&&k.html){var l=document.createElement("div");l.innerHTML=k.html;l.setAttribute("data-notification_id",k.id);var n=this.findFirstElementWithClassName(l,"span","_iph_pubDate");if(n&&k.received){var m=new Date(k.received);if(m.getTime()>=f.getTime())if(e.getTime()-36E5<m.getTime())n.innerHTML=Math.ceil((e.getTime()-m.getTime())/6E4)+" perce";else{var p=10<=m.getMinutes()?m.getMinutes():"0"+m.getMinutes();n.innerHTML=m.getHours()+":"+p}else n.innerHTML=c[m.getMonth()]+
". "+m.getDate()}l.className="notification";"read"==k.status&&(l.className+=" read");this.addNotificationClickAnalytics(l);this.ui.addNotificationEventListeners(l);b?d.insertBefore(l,g):d.appendChild(l)}}};
__passportHeader.prototype.addNotificationClickAnalytics=function(a){a=a.getElementsByTagName("A");for(var b=0;b<a.length;b++){var c=a[b];c.hasAttribute("data-feedid")&&(c.setAttribute("data-real-href",c.href),c.href=this.getCTUrl(c.href,null,this.config.from?this.config.from:this.config.partner_id,"noti-dropdown"))}};
__passportHeader.prototype.showNoNotifications=function(){var a=document.getElementById("_iph_notification-loading");a&&(a.style.display="none");if(a=document.getElementById("_iph_noti_unreachable"))a.style.display="none";a=document.getElementById("_iph_notifications-list");a.children.length||(a.innerHTML=this.noti.subscriptionCount?'<p id="_iph_nonoti"><span></span>Nincs friss dolog, amit mutatni tudn\u00e1nk. K\u00f6vess t\u00f6bb mindent \u00e9s lesz!':'<p id="_iph_nonoti"><span></span>M\u00e9g nem k\u00f6vetsz senkit. Kattintgass a k\u00f6vet\u00e9s gombokra \u00e9s t\u00f6bb\u00e9 nem maradsz le semmir\u0151l! <a href="http://index.hu/feliratkozas" data-lnk="1">B\u0151vebben...</a>')};
__passportHeader.prototype.setBreaking=function(a){this.breaking&&this.breaking.setBreaking(a)};__passportHeader.prototype.removeNoNotifications=function(){var a=document.getElementById("_iph_nonoti");a&&a.parentNode.removeChild(a)};__passportHeader.prototype.setLoadMoreButton=function(a){document.getElementById("_iph_has-more-button").className="_iph_"+a};
__passportHeader.prototype.notiUnreachable=function(){var a=document.getElementById("_iph_notification-loading");a&&(a.style.display="none");a=document.getElementById("_iph_notifications-list");!a.children.length&&(a=document.getElementById("_iph_noti_unreachable"))&&(a.style.display="block")};
__passportHeader.prototype.initAnalytics=function(){window.ga||(window.GoogleAnalyticsObject="ga",window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=1*new Date,__passportHeaderUtil.insertScript("//www.google-analytics.com/analytics.js"));ga("create",this.config.gaTrackingId,"auto",{name:"passportTracker"});ga("passportTracker.set","anonymizeIp",!0)};
__passportHeader.prototype.gaEvent=function(a,b,c,d){window.ga||this.initAnalytics();d||(d="noti");ga("passportTracker.send","event",d,a,b,c)};__passportHeader.prototype.initSubscriptionButtons=function(){if(document.getElementsByClassName)for(var a=document.getElementsByClassName("btn-pass"),b=0;b<a.length;b++)a[b].getAttribute("data-subscription-inicialized")||new __passportSubscription(a[b],this.noti,this.config)};
__passportHeader.prototype.findFirstElementWithClassName=function(a,b,c){a=a.getElementsByTagName(b);c=new RegExp("(^|\\s)"+c+"(\\s|$)");for(b=0;b<a.length;b++)if(c.exec(a[b].className))return a[b];return null};__passportHeader.prototype.createHint=function(){return this.config.hint?'<img src="'+this.config.hint+'" width="1" height="1"/>':""};
__passportHeader.prototype.insertCss=function(a){var b=document.createElement("link");b.type="text/css";b.href=a;b.rel="stylesheet";a=document.getElementsByTagName("link");a.length?a[a.length-1].parentNode.appendChild(b):(a=document.getElementsByTagName("head")[0])&&a.appendChild(b)};__passportHeader.prototype.insertHtml=function(a,b){a&&(a.innerHTML=b)};__passportHeaderUI=function(a){this.header=a;this.items={};this.handlerConfig();this.init();this.ignoreHistory=!1};
__passportHeaderUI.prototype.handlerConfig=function(){var a=this;this.listeners={"icon-user":function(d){a.toggleUserDropdown(d)},"icon-harang":function(d){a.header.config.loggedIn?a.toggleNotificationDropdown(d):a.toggleUserDropdown(d);return!1},"icon-inda":function(d){return a.toggler(["icon-inda","icon-inda_parent","icon-inda-mobile","icon-inda-mobile_parent","inda-dropdown"],d)},"icon-fbtoken":function(d){return a.toggler(["icon-fbtoken","fbtoken-dropdown"],d)},"icon-inda-mobile":function(d){return a.toggler("icon-inda icon-inda_parent icon-inda-mobile icon-inda-mobile_parent inda-dropdown fixed-header-mobil-kiadvanyok".split(" "),
d)},"user-dropdown":function(d){a.stopEvent(d,!0)},"notifications-dropdown":function(){},"inda-dropdown":function(d){a.stopEvent(d,!0)},"fbtoken-dropdown":function(d){a.stopEvent(d,!0)},"_iph_fixed-header-dropdown-container":function(d){return a.toggler([],d)},_iph_fbtoken_close:function(d){a.header.gaEvent("sessionmeghosszabbitas","bezarklikk",null,"facebook");a.header.resetAlertStatus();return a.toggler([],d)},"_iph_has-more-button":function(d){a.loadMoreNotifications();a.stopEvent(d);return!1}};
if(this.header.config.mainMenu&&this.header.config.mainMenu.length)for(var b=0;b<this.header.config.mainMenu.length;b++){var c=this.header.config.mainMenu[b];c.click&&(this.listeners["icon-"+c["class"]]=function(d){return"string"==typeof c.click?window[c.click](d):c.click(d)})}};
__passportHeaderUI.prototype.init=function(){var a=this,b;for(b in this.listeners){var c={};c.obj=document.getElementById(b);c.obj&&__passportHeaderUtil.addListener(c.obj,"click",this.listeners[b]);this.items[b]=c}this.setNotificationDivHeight();window.onresize=function(d){a.setNotificationDivHeight();a.positionDropdown()};__passportHeaderUtil.addListener(document,"click",function(d){"object"!==typeof a.items[d.target.id]&&(a.isUserDropdownOpen()&&a.header.gaEvent("click","fejlecloginclose"),a.isNotificationDropdownOpen()&&
a.header.gaEvent("click","localmodalclose"),a.toggler([],d))});void 0!==window.history&&__passportHeaderUtil.addListener(window,"popstate",function(d){a.ignoreHistory||a.toggler([],d);a.ignoreHistory=!1});this.header.hasLoginError()&&(this.toggleUserDropdown(),(b=document.getElementById("_iph_login_username"))&&b.focus())};__passportHeaderUI.prototype.onLoad=function(){this.positionDropdown()};
__passportHeaderUI.prototype.stopEvent=function(a,b){if(null===a)return!1;"function"==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;b||("function"==typeof a.preventDefault?a.preventDefault():a.returnValue=!1);return!1};
__passportHeaderUI.prototype.addNotificationEventListeners=function(a){for(var b=this,c=a.getElementsByClassName("unsubscribe-icon-x"),d=0;d<c.length;d++)__passportHeaderUtil.addListener(c[d],"click",function(e){b.showUnsub(this);b.header.gaEvent("click","unsubscribestep1");return b.stopEvent(e)});c=a.getElementsByClassName("unsubBtnOk");for(d=0;d<c.length;d++)__passportHeaderUtil.addListener(c[d],"click",function(e){b.doUnsub(this);return b.stopEvent(e)},!1);c=a.getElementsByClassName("unsubBtnCancel");
for(d=0;d<c.length;d++)__passportHeaderUtil.addListener(c[d],"click",function(e){b.hideUnsub(this);b.header.gaEvent("click","unsubscribecancel");return b.stopEvent(e)},!1);a=a.getElementsByTagName("A");for(d=0;d<a.length;d++)__passportHeaderUtil.addListener(a[d],"click",function(e){return b.followLink(this,e)},!1),__passportHeaderUtil.addListener(a[d],"touchstart",function(e){__passportHeaderUtil.addClass(this.parentNode,"touched")},!1)};
__passportHeaderUI.prototype.followLink=function(a,b){this.markRead(a);if(!a.href)return!0;var c=a.getAttribute("data-real-href")?a.getAttribute("data-real-href"):a.href;this.header.gaEvent("contentclick",c);if(b.ctrlKey||b.metaKey)return!0;window.setTimeout(function(){window.location=a.href},150);return this.stopEvent(b)};
__passportHeaderUI.prototype.markRead=function(a){if(a=this.findParentWithAttribute("data-notification_id",a))this.header.noti.setNotificationStatusToRead(a.getAttribute("data-notification_id")),__passportHeaderUtil.removeClass(a,"unread"),__passportHeaderUtil.addClass(a,"read")};
__passportHeaderUI.prototype.toggler=function(a,b,c){var d=!1;if(b&&b.target&&b.target.tagName&&"A"==b.target.tagName&&b.target.getAttribute("data-lnk")||b&&(b.ctrlKey||b.metaKey))return!0;for(var e in this.items)this.items[e].obj&&(-1===a.indexOf(e)?__passportHeaderUtil.replaceClass(this.items[e].obj,"active","inactive"):__passportHeaderUtil.hasClass(this.items[e].obj,"active")?__passportHeaderUtil.replaceClass(this.items[e].obj,"active","inactive"):(__passportHeaderUtil.replaceClass(this.items[e].obj,
"inactive","active"),d=!0));d?(__passportHeaderUtil.replaceClass(this.items["_iph_fixed-header-dropdown-container"].obj,"inactive","active"),void 0===window.history||void 0===window.history.pushState||window.history.state&&window.history.state.hasActive||window.history.pushState({targets:a,hasActive:!0},"",null)):(void 0!==window.history&&window.history.state&&window.history.state.hasActive&&(this.ignoreHistory=!0,window.history.go(-1)),__passportHeaderUtil.replaceClass(this.items["_iph_fixed-header-dropdown-container"].obj,
"active","inactive"));if(null!==b&&"object"===typeof b&&this.checkIsIndapassElement(b.target))return this.stopEvent(b),"function"===typeof c&&c(),!1};__passportHeaderUI.prototype.checkIsIndapassElement=function(a){return"function"==typeof a.hasAttribute&&a.hasAttribute("id")&&"passportHeader"==a.getAttribute("id")?!0:"string"===typeof a.className&&a.className.match(/_iph_brk/)||!a.parentElement||"BODY"==a.parentElement.tagName?!1:this.checkIsIndapassElement(a.parentElement)};
__passportHeaderUI.prototype.toggleNotificationDropdown=function(a){this.toggler(["icon-harang","icon-harang_parent","notifications-dropdown"],a);this.isNotificationDropdownOpen()?(this.header.gaEvent("click","localmodalopen"),this.header.noti.getNewNotifications()):this.header.gaEvent("click","localmodalclose")};
__passportHeaderUI.prototype.toggleUserDropdown=function(a){if(this.header.config.loggedIn)return this.toggler(["icon-user","icon-user_parent","user-dropdown"],a);var b;if("object"==typeof a&&(b=a.target.className.match(/icon-([\w]+)/))){b=b[1];if(this.lastTarget!=b&&__passportHeaderUtil.hasClass(this.items["icon-user"].obj,"active"))return this.lastTarget=b,this.stopEvent(a),!1;this.lastTarget=b}b=this.toggler(["icon-user","icon-user_parent","user-dropdown"],a);this.isUserDropdownOpen()?this.header.gaEvent("click",
"fejlecloginopen"):this.header.gaEvent("click","fejlecloginclose");return b};__passportHeaderUI.prototype.isNotificationDropdownOpen=function(){return __passportHeaderUtil.hasClass(this.items["notifications-dropdown"].obj,"active")};__passportHeaderUI.prototype.isUserDropdownOpen=function(){return __passportHeaderUtil.hasClass(this.items["user-dropdown"].obj,"active")};
__passportHeaderUI.prototype.loadMoreNotifications=function(){this.header.gaEvent("click","tovabbiertesitesek");this.header.setLoadMoreButton("disabled");this.header.noti.getNextNotifications()};__passportHeaderUI.prototype.getClosestParent=function(a,b){for(a=a.parentNode;"BODY"!=a.tagName&&a.tagName!=b;)a=a.parentNode;return a};__passportHeaderUI.prototype.showUnsub=function(a){__passportHeaderUtil.addClass(a.nextElementSibling,"active")};
__passportHeaderUI.prototype.doUnsub=function(a){var b=this.findParentWithAttribute("data-feedid",a);if(!b)return!1;this.header.noti.unsubscribe(b.getAttribute("data-feedid"));this.markRead(a);__passportHeaderUtil.addClass(b,"unsubscribed");a=b.getElementsByTagName("p");1>a.length||(a[0].innerHTML="Nem fogsz t\u00f6bb \u00e9rtes\u00edt\u00e9st kapni err\u0151l.")};__passportHeaderUI.prototype.hideUnsub=function(a){__passportHeaderUtil.removeClass(a.parentNode,"active")};
__passportHeaderUI.prototype.setNotificationDivHeight=function(){var a=this.getViewport();null!==this.items["notifications-dropdown"].obj&&(700<a[0]?(a=parseInt(.75*a[1])-20,this.items["notifications-dropdown"].obj.style.maxHeight=a+"px"):this.items["notifications-dropdown"].obj.style.maxHeight=null)};
__passportHeaderUI.prototype.positionDropdown=function(){if(this.items["inda-dropdown"]&&null!==this.items["inda-dropdown"].obj){var a=this.getViewport(),b=this.header.dom.className.match(/_iph_irresponsive/);this.items["inda-dropdown"].obj.style.left=700>=a[0]&&!b?null:this.items["icon-inda"].obj.offsetLeft+"px"}};
__passportHeaderUI.prototype.getViewport=function(){if("undefined"!=typeof window.innerWidth){var a=window.innerWidth;var b=window.innerHeight}else"undefined"!=typeof document.documentElement&&"undefined"!=typeof document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(a=document.documentElement.clientWidth,b=document.documentElement.clientHeight):(a=document.getElementsByTagName("body")[0].clientWidth,b=document.getElementsByTagName("body")[0].clientHeight);return[a,b]};
__passportHeaderUI.prototype.findParentWithAttribute=function(a,b){return b&&void 0!==b.hasAttribute?b.hasAttribute(a)?b:void 0!==b.parentNode&&b.parentNode?this.findParentWithAttribute(a,b.parentNode):null:null};__passportIdent=function(a,b){if("object"==typeof a){if("undefined"!==typeof __passportHeader&&a instanceof __passportHeader){if(!a.config.IDENT_URL)return;this.IDENT_URL=a.config.IDENT_URL;this.tid=b;this.standalone=!1}else{if(!a.IDENT_URL)return;this.IDENT_URL=a.IDENT_URL;this.tid=a.tid;this.standalone=!0}this.cookieName="ident";this.cookieChecked=!1;this.tid&&(this.cookie=this.checkCookie())&&this.sendHit()}};
__passportIdent.prototype.checkCookie=function(){var a;if(void 0!==this.cookie)return this.cookie;if(a=__passportHeaderUtil.cookie(this.cookieName))return a;if(this.cookieChecked)return!1;__passportHeaderUtil.insertScript(this.IDENT_URL+"management/getcookie?jsonp="+encodeURIComponent((this.standalone?"passportIdent":"passportHeader.ident")+".setCookie"));this.cookieChecked=!0;return!1};
__passportIdent.prototype.setCookie=function(a){__passportHeaderUtil.cookie(this.cookieName,a,{path:"/",expires:14});this.cookie=a;this.sendHit()};__passportIdent.prototype.sendHit=function(a){if(this.tid||a){a||(a=this.tid);if(!this.cookie&&(this.tid=a,this.cookie=this.checkCookie(),!this.cookie))return;var b=1E17*Math.random();a=this.IDENT_URL+"ident/hit.js?tid="+encodeURIComponent(a)+"&cemp="+encodeURIComponent(this.cookie)+"&rnd="+b;__passportHeaderUtil.insertScript(a)}};
"object"==typeof __passportIdentConfig&&(passportIdent=new __passportIdent(__passportIdentConfig));__notiClient=function(a,b){this.header=a;this.sessionTimeout=3600;this.sid=null;this.maxErrorDelay=120;this.unconnectedSince=null;this.maxUnconnectedPeriod=60;this.pingInterval=18E4;this.unreachable=!1;this.firstNotificationTime=this.lastNotificationTime=null;this.reregisterCount=0;this.pingTimer=null;this.subscriptionCount=0;this.inTransaction=!1;this.transactionCommands={};this.init(b)};
__notiClient.prototype.init=function(a){if(null==a)if(window.localStorage)this.storage=localStorage;else return null;else this.storage=a;this.errorDelay=5;this.createDefaultEventHandlers();if(this.header.config.loggedIn&&!this.header.config.disableNoti){var b,c;(b=this.storage.getItem("__notiClient.sid"))&&(c=b.match(/(.*):([0-9]+)/))&&c[2]>(new Date).getTime()?(this.sid=c[1],this.loadSockJS()):this.startSession()}};
__notiClient.prototype.createDefaultEventHandlers=function(){var a=this;this.onmessage=function(b){a.header.debug&&console.log("message",b)};this.eventHandlers=[];this.onaccepted=function(){};this.onclosed=function(){};this.onbeforeopen=function(){};this.onissubscribed={};this.onunreachableHandlers=[];this.loaded=!1};
__notiClient.prototype.startSession=function(){let a,b;if(null==(a=this.header.config)?0:null==(b=a.s3pc)?0:b.tokenUrl){var c=new XMLHttpRequest;c.open("GET",this.header.config.s3pc.tokenUrl,!0);c.onreadystatechange=e=>{4==c.readyState&&200==c.status&&(e=JSON.parse(e.target.response),console.log("got token",e),__passportHeaderUtil.insertScript(this.header.config.NOTI_URL+"http/get_session?token="+e,"notiDaemon"))};c.send()}else{var d=this;__passportHeaderUtil.insertScript(this.header.config.NOTI_URL+
"http/start_session?r="+Math.round(1E6*Math.random()),"notiDaemon",null,function(){d.header.debug&&console.log("Session start failed");this.parentNode.removeChild(this);d.retryLater(function(){d.startSession()})},"use-credentials")}};__notiClient.prototype.loadSockJS=function(){var a=this;__passportHeaderUtil.insertScript("https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js","sockjs",function(){a.openSocket()})};
__notiClient.prototype.openSocket=function(){this.header.debug&&console.log("opening socket with sid: "+this.sid);this.onbeforeopen();var a=this;this.sock=new SockJS(this.header.config.NOTI_URL+"ws");this.sock.onopen=function(){a.header.debug&&console.log("socket opened");a.notiRegister();a.resetErrorDelay()};this.sock.onmessage=function(b){a.onmessage(b.data);try{var c=JSON.parse(b.data);a.onNotiMessage(c)}catch(d){}};this.sock.onclose=function(){a.header.debug&&console.log("socked closed, reconnecting...");
a.retryLater(function(){a.openSocket()});a.onclosed()}};__notiClient.prototype.notiRegister=function(){this.sock&&this.sock.readyState===SockJS.OPEN&&(this.sock.send(JSON.stringify({action:"register",sid:this.sid,uid:this.header.config.uid})),this.setSID(this.sid))};
__notiClient.prototype.getNotifications=function(a,b){if(this.sock&&this.sock.readyState===SockJS.OPEN)this.sock.send(JSON.stringify({action:"get_inbox",before:a,until:b}));else if(this.header.config.loggedIn){var c=this;this.registerOnLoadHandler(function(){c.getNotifications(a,b)})}};__notiClient.prototype.getNewNotifications=function(){this.getNotifications(null,this.firstNotificationTime)};__notiClient.prototype.getNextNotifications=function(){this.getNotifications(this.lastNotificationTime)};
__notiClient.prototype.setNotificationsStatusToSeen=function(a){this.sock&&this.sock.readyState===SockJS.OPEN&&0<a&&this.sock.send(JSON.stringify({action:"notification_seen",until:a}))};__notiClient.prototype.setNotificationStatusToRead=function(a){this.loaded&&this.sock&&this.sock.readyState===SockJS.OPEN&&this.sock.send(JSON.stringify({action:"notification_read",id:a}))};
__notiClient.prototype.setNotificationStatusToReadByURL=function(a){this.sock&&this.sock.readyState===SockJS.OPEN&&this.sock.send(JSON.stringify({action:"notification_read",url:a}))};__notiClient.prototype.subscribe=function(a){if(this.sock&&this.sock.readyState===SockJS.OPEN){var b=this.feedIdToGALabel(a);b&&this.header.gaEvent("subscribe",b);this.sock.send(JSON.stringify({action:"subscribe",feed_id:a}));this.subscriptionCount++}};
__notiClient.prototype.unsubscribe=function(a){if(this.sock&&this.sock.readyState===SockJS.OPEN){var b=this.feedIdToGALabel(a);b&&this.header.gaEvent("unsubscribe",b);this.sock.send(JSON.stringify({action:"unsubscribe",feed_id:a}))}};__notiClient.prototype.feedIdToGALabel=function(a){a=a.match(/^feed:\/\/([^\/]+)(\/[^\/]+)?/);if(!a)return!1;void 0===a[2]?a[2]="/":a[2].match(/^\/[0-9]+$/)&&(a[2]="/");return a[1]+a[2]};
__notiClient.prototype.beginTransaction=function(){this.inTransaction=!0;this.transactionCommands.isSubscribed=[]};__notiClient.prototype.endTransaction=function(){this.inTransaction=!1;this.transactionCommands.isSubscribed.length&&this.isSubscribed(this.transactionCommands.isSubscribed)};
__notiClient.prototype.isSubscribed=function(a){if(this.sock&&this.sock.readyState===SockJS.OPEN)if("string"===typeof a&&(a=[a]),this.inTransaction)for(var b=0;b<a.length;b++)0>this.transactionCommands.isSubscribed.indexOf(a[b])&&this.transactionCommands.isSubscribed.push(a[b]);else this.sock.send(JSON.stringify({action:"isSubscribed",feed_ids:a}))};__notiClient.prototype.getSubscriptionCount=function(){this.sock&&this.sock.readyState===SockJS.OPEN&&this.sock.send(JSON.stringify({action:"subscriptionCount"}))};
__notiClient.prototype.onNotiMessage=function(a){if(a.action)switch(a.action){case "setNotificationCount":this.onload(a.count);this.dispatchEvent("setNotificationCount",[a.count]);this.header.showBadge(a.count);break;case "isSubscribed":this.onIsSubscribedReceived(a.feeds);break;case "restartSession":this.restartSession();break;case "reregister":var b=this;++this.reregisterCount%3?window.setTimeout(function(){b.notiRegister()},5E3):9<=this.reregisterCount?this.serverUnreachable():this.restartSession();
break;case "notifications":this.dispatchEvent("notifications",[a.notifications]);this.onNotifications(a);break;case "accepted":this.onaccepted();this.getSubscriptionCount();break;case "subscriptionCount":this.onSubscriptionCountReceived(a);break;case "pong":this.onPong()}};
__notiClient.prototype.onNotifications=function(a){var b=null!=a.request.until&&null==a.request.before;b||this.header.setLoadMoreButton(a.hasMore?"active":"hidden");if(0==a.notifications.length)this.header.showNoNotifications();else{this.header.addNotifications(a.notifications,b);if(null===this.firstNotificationTime||a.notifications[0].received>this.firstNotificationTime)this.firstNotificationTime=a.notifications[0].received;if(null===this.lastNotificationTime||a.notifications[a.notifications.length-
1].received<this.lastNotificationTime)this.lastNotificationTime=a.notifications[a.notifications.length-1].received;null==a.request.before&&this.header.ui.isNotificationDropdownOpen()&&this.setNotificationsStatusToSeen(this.firstNotificationTime)}};__notiClient.prototype.onSubscriptionCountReceived=function(a){"undefined"!=typeof a.count&&(this.subscriptionCount=a.count)};__notiClient.prototype.onIsSubscribedReceived=function(a){for(var b in a)this.dispatchIsSubscribed(b,a[b])};
__notiClient.prototype.dispatchIsSubscribed=function(a,b){if(this.onissubscribed[a])if("function"==typeof this.onissubscribed[a])this.onissubscribed[a](b);else for(var c=0;c<this.onissubscribed[a].length;c++)this.onissubscribed[a][c](b)};__notiClient.prototype.registerOnIsSubscribedHandler=function(a,b){this.onissubscribed[a]||(this.onissubscribed[a]=[]);this.onissubscribed[a].push(b)};
__notiClient.prototype.onload=function(a){this.loaded||(this.beginTransaction(),this.dispatchEvent("load",[a]),this.endTransaction(),this.loaded=!0,this.header.config.markURLRead&&this.setNotificationStatusToReadByURL(document.location.protocol+"//"+document.location.hostname+document.location.port+document.location.pathname+document.location.search))};__notiClient.prototype.registerOnLoadHandler=function(a){this.header.config.disableNoti||(this.loaded?a():this.addEventListener("load",a))};
__notiClient.prototype.addEventListener=function(a,b){this.eventHandlers[a]||(this.eventHandlers[a]=[]);this.eventHandlers[a].push(b)};__notiClient.prototype.dispatchEvent=function(a,b){var c;if(this.eventHandlers[a])for(c=0;c<this.eventHandlers[a].length;c++)this.eventHandlers[a][c].apply(null,b)};__notiClient.prototype.registerUnreachableHandler=function(a){this.header.config.loggedIn&&!this.header.config.disableNoti&&this.onunreachableHandlers.push(a)};
__notiClient.prototype.close=function(){this.sid=null;this.sock&&(this.sock.onclose=null,this.sock.close(),this.sock=null);this.storage.removeItem("__notiClient.sid")};__notiClient.prototype.restartSession=function(){this.close();var a=this;this.retryLater(function(){a.startSession()})};
__notiClient.prototype.reinit=function(){this.close();this.firstNotificationTime=this.lastNotificationTime=null;this.loaded=!1;for(var a in this.onissubscribed)this.dispatchIsSubscribed(a,!1);this.header.config.loggedIn&&!this.header.config.disableNoti&&this.startSession()};
__notiClient.prototype.retryLater=function(a){window.setTimeout(a,1E3*this.errorDelay);this.errorDelay=Math.min(2*this.errorDelay,this.maxErrorDelay);this.unconnectedSince?!this.unreachable&&(new Date).getTime()-this.unconnectedSince>1E3*this.maxUnconnectedPeriod&&this.serverUnreachable():this.unconnectedSince=(new Date).getTime()};__notiClient.prototype.serverUnreachable=function(){this.header.debug&&console.log("Server is considered unreachable");this.unreachable=!0;for(var a=0;a<this.onunreachableHandlers.length;a++)this.onunreachableHandlers[a]()};
__notiClient.prototype.resetErrorDelay=function(){this.errorDelay=1;this.unconnectedSince=null;this.unreachable=!1;this.header.debug&&console.log("Server is reachable again")};__notiClient.prototype.setSID=function(a){this.sid=a;this.storage.setItem("__notiClient.sid",a+":"+((new Date).getTime()+1E3*this.sessionTimeout));this.sock||(void 0!==window.SockJS?this.openSocket():this.loadSockJS())};
__notiClient.prototype.close=function(){this.sid=null;this.sock&&(this.sock.onclose=null,this.sock.close(),this.sock=null);this.onclosed()};__notiClient.prototype.ping=function(){if(this.sock&&!this.pingTimer){this.sock.send(JSON.stringify({action:"ping"}));var a=this;this.pingTimer=window.setTimeout(function(){a.header.debug&&console.log("no reply received on ping, closing socket");a.close();a.pingTimer=null;a.retryLater(function(){a.openSocket()})},1500)}};
__notiClient.prototype.onPong=function(){if(this.pingTimer){window.clearTimeout(this.pingTimer);this.pingTimer=null;var a=this;window.setTimeout(function(){a.ping()},this.pingInterval)}};__passportSubscription=function(a,b,c){a.getAttribute("data-subscription-inicialized")||(this.dom=a,this.noti=b,this.feed_id=a.getAttribute("data-feed-id"),this.isSubscribed=null,this.didUriCheck=!1,this.config=c,this.dom.setAttribute("data-subscription-inicialized",1),this.txtFollow="k\u00f6vet\u00e9s",this.txtUnFollow="k\u00f6vetem",this.overlayClass="",a.getAttribute("data-txt-follow")&&(this.txtFollow=a.getAttribute("data-txt-follow")),a.getAttribute("data-txt-unfollow")&&(this.txtUnFollow=a.getAttribute("data-txt-unfollow")),
a.getAttribute("data-overlay-class")&&(this.overlayClass=" "+a.getAttribute("data-overlay-class")),this.feed_id&&this.feed_id.match(/^feed:\/\/.*/)&&this.init())};
__passportSubscription.prototype.init=function(){this.dom.innerHTML='<span class="_iph_loader"><em>T\u00f6lt\u00e9s</em><span class="_iph_dot _iph_dot1"></span><span class="_iph_dot _iph_dot2"></span><span class="_iph_dot _iph_dot3"></span><span class="_iph_dot _iph_dot4"></span></span>';__passportHeaderUtil.addClass(this.dom,"_iph_loading");this.dom.setAttribute("title","Bet\u00f6lt\u00e9s...");var a=this;this.dom.addEventListener("click",function(b){a.onClick();b.preventDefault()});if(this.config.disableNoti)this.onIsSubscribed(!1);
else if(this.noti.registerOnIsSubscribedHandler(this.feed_id,function(b){a.onIsSubscribed(b)}),this.noti.registerOnLoadHandler(function(){a.noti.isSubscribed(a.feed_id)}),a.noti.registerUnreachableHandler(function(){null===a.isSubscribed&&a.showError()}),!this.config.loggedIn)this.onIsSubscribed(!1)};
__passportSubscription.prototype.onIsSubscribed=function(a){this.isSubscribed=a;__passportHeaderUtil.removeClass(this.dom,"_iph_loading");__passportHeaderUtil.removeClass(this.dom,"_iph_subscr_error");__passportHeaderUtil.removeClass(this.dom.firstChild,"_iph_loader");this.dom.removeAttribute("title");a?(__passportHeaderUtil.addClass(this.dom,"_iph_unfollow"),__passportHeaderUtil.removeClass(this.dom,"_iph_follow"),this.dom.firstChild.innerHTML=this.txtUnFollow):(__passportHeaderUtil.addClass(this.dom,
"_iph_follow"),__passportHeaderUtil.removeClass(this.dom,"_iph_unfollow"),this.dom.firstChild.innerHTML=this.txtFollow);this.checkLoginSubscription()};__passportSubscription.prototype.showError=function(){__passportHeaderUtil.removeClass(this.dom,"_iph_loading");__passportHeaderUtil.addClass(this.dom,"_iph_subscr_error");__passportHeaderUtil.removeClass(this.dom.firstChild,"_iph_loader");this.dom.firstChild.innerHTML="";this.dom.setAttribute("title","A k\u00f6vet\u00e9s jelenleg nem el\u00e9rhet\u0151.")};
__passportSubscription.prototype.onClick=function(){if(null!==this.isSubscribed)if(this.config.loggedIn){if(this.isSubscribed){this.noti.unsubscribe(this.feed_id);var a="kikovetes"}else this.noti.subscribe(this.feed_id),a="bekovetes";void 0!==window._gaq&&_gaq.push(["_trackEvent","kovetes",a,document.title])}else this.login()};
__passportSubscription.prototype.login=function(){function a(h){0==h.charCode&&27==h.keyCode&&b()}function b(){var h=g.getLoginOverlay();h.style.display="none";document.body.removeEventListener("keypress",a,!1);(d=document.getElementById("_iph_overlay_close"))&&d.removeEventListener("click",b,!1);(d=h.getElementsByClassName("_iph_overlay").item(0))&&ov.removeEventListener("click",b,!1)}var c=this.getLoginOverlay(),d,e=this.noti.header.ui.getViewport(),f=document.getElementById("_iph_overlay_login");
if(f&&(f.style.left=Math.round((e[0]-350)/2)+"px",f.style.top=Math.round((e[1]-270)/2)+"px",c.style.display="block",e=document.location.href.replace(/#.*$/,"")+"#subscribe-"+encodeURIComponent(this.feed_id),f=c.getElementsByTagName("form"),1==f.length)){f[0].redirect_to.value=e;if(f=document.getElementById("_iph_overlay_fb_button"))f.href=this.config.INDAPASS_URL+"providerlogin/?url="+encodeURIComponent(e)+"&partner="+this.config.partner_id+"&autologin=1";var g=this;document.body.addEventListener("keydown",
a,!1);(d=document.getElementById("_iph_overlay_close"))&&d.addEventListener("click",b,!1);ov=c;(d=c.getElementsByClassName("_iph_overlay").item(0))&&d.addEventListener("click",b,!1)}};
__passportSubscription.prototype.checkLoginSubscription=function(){if(!this.didUriCheck){this.didUriCheck=!0;var a=document.location.hash.match(/^#subscribe-(feed.*)$/);if(a&&decodeURIComponent(a[1])==this.feed_id){this.isSubscribed||this.noti.subscribe(this.feed_id);var b=location.href.replace(a[0],"");b==location.href&&(b=location.href.replace("#"+encodeURIComponent(a[0].substr(1)),""));void 0!==window.history&&void 0!==window.history.replaceState?history.replaceState(null,null,b):location.href=
b}}};__passportSubscription.prototype.getLoginOverlay=function(){var a=document.getElementById("_iph_login_overlay");a||(a=this.createLoginOverlay());a.className="_iph_fixed-header"+this.overlayClass;return a};
__passportSubscription.prototype.createLoginOverlay=function(){var a="",b=this.config.partner_id,c=this.noti.header.getSiteConfig();c&&c.registerSlug&&(b=c.registerSlug);this.noti.header.gaEvent("click","feliratkozasloginopen");a=a+' <div class="_iph_overlay"></div> <ul id="_iph_overlay_login" class="_iph_std-menu _iph_overlay-window"> <li id="_iph_overlay_close"></li> <li class="facebook"><a href="'+(this.config.INDAPASS_URL+"providerlogin/?url="+encodeURIComponent(document.location.href)+
"&partner="+this.config.partner_id+'&autologin=1" onclick="return passportHeader.providerLoginClicked(this);" id="_iph_overlay_fb_button"><span class="icon icon-facebook-fff"></span> Bel\u00e9p\u00e9s Facebookkal</a></li>');a=a+' <li class="divider indapass-logo"><span></span></li> <li class="_iph_loginform"> <form action="'+(this.config.LOGIN_URL+'" method="POST">');a+=' <input type="hidden" name="partner_id" value="'+this.config.partner_id+'">';a+=' <input type="hidden" name="redirect_to" value="'+
document.location.href+'"/>';a=a+' <input type="text" placeholder="Email c\u00edm" name="username"/> <input type="password" placeholder="Jelsz\u00f3" name="password"/> <button type="submit">Bel\u00e9p\u00e9s</button> <input id="_iph_overlay_maradjakbelepve" type="checkbox" name="autologin" value="1" checked="checked"> <label for="_iph_overlay_maradjakbelepve">Maradjak bel\u00e9pve</label> </form> </li> <li class="divider"></li> <li class="_iph_log_reg"><a href="'+
(this.noti.header.getCTUrl(this.config.INDAPASS_URL+"regisztracio/"+b+"/?redirect_to="+encodeURIComponent(document.location.href),"regisztracio","regisztracio")+'">Regisztr\u00e1ci\u00f3</a>');a+=' <li class="_iph_log_help"><a class="_iph_help" href="'+this.noti.header.getCTUrl(this.config.INDAPASS_URL+"segitseg/","segitseg","segitseg")+'" target="_blank" onclick="return passportHeader.gaEvent(\'click\',\'help\');">Seg\u00edts\u00e9g</a></li>';a+=" </ul>";b=document.createElement("div");
b.setAttribute("id","_iph_login_overlay");b.innerHTML=a;document.body.appendChild(b);return b};__passportBreaking=function(a){this.header=a;this.config=!1;this.init()};__passportBreaking.prototype.init=function(){if(this.header.config.breakingUrl){var a=0>this.header.config.breakingUrl.indexOf("?")?"?":"&";a+="rnd="+Math.round(1E4*Math.random());__passportHeaderUtil.insertScript(this.header.config.breakingUrl+a,"passport-breaking")}};__passportBreaking.prototype.setBreaking=function(a){if(a){this.config=[];for(var b=0;b<a.length;b++)this.checkBreaking(a[b])&&this.config.push(a[b]);this.initBreaking()}};
__passportBreaking.prototype.initBreaking=function(){if(!this.config||!this.config.length)return!1;var a=this;this.window={dom:this.createWindowDOM(),ticking:!1,active:!1,scrollY:window.scrollY,oldScrollY:window.scrollY};this.header.config.miniHeader?document.body.appendChild(this.window.dom):this.header.dom.appendChild(this.window.dom);__passportHeaderUtil.dispatchEvent(document,"breakingInitialized",{config:this.config,dom:this.window.dom});window.setTimeout(function(){__passportHeaderUtil.addClass(a.window.dom,
"_iph_brk_act")},3E3)};__passportBreaking.prototype.checkBreaking=function(a){if(!a.partner||0>a.partner.indexOf(this.header.config.partner_id))return!1;var b=__passportHeaderUtil.cookie(this.getBreakingCounterId(a.id));null===b&&(b=a.maxDisplayCount);if(0>=b)return!1;a.url==document.location.href?b=0:b--;this.setBreakingCounter(a.id,b);return a.url!=document.location.href};
__passportBreaking.prototype.setBreakingCounter=function(a,b){__passportHeaderUtil.cookie(this.getBreakingCounterId(a),b,{path:"/",expires:2});return!0};__passportBreaking.prototype.getBreakingCounterId=function(a){return"passportHeader_"+a};__passportBreaking.prototype.createWindowDOM=function(){for(var a="",b=0;b<this.config.length;b++)a+=this.createBreakingHTML(this.config[b]);b=document.createElement("div");b.className="_iph_brk";b.innerHTML=a;return b};
__passportBreaking.prototype.createBreakingHTML=function(a){if(!this.config)return null;var b="_iph_brk_itm";a.cls&&(b+=" "+a.cls);var c="";a.target&&(c=' target="'+a.target+'"');b='<a href="'+a.url+'"'+c+" onclick=\"passportHeader.breaking.breakingClick('"+a.id+"', '"+a.cls+'\');" class="'+b+'">';b+='<p><span class="_brk_msg">';a.icon&&(b+='<img src="'+a.icon+'">');b+=a.msg;b=b+'</span><span class="_iph_brk_cls" onclick="passportHeader.breaking.breakingCloseClicked(\''+(a.id+"', this.parentNode.parentNode, event)\" onmouseenter=\"__passportHeaderUtil.addClass(this.parentNode.parentNode, '_brk_hover')\" onmouseleave=\"__passportHeaderUtil.removeClass(this.parentNode.parentNode, '_brk_hover')\"></span>");
return b+"</p></a>"};__passportBreaking.prototype.breakingClick=function(a,b){this.setBreakingCounter(a,0);this.header.gaEvent("click",b.replace("_brk_",""),null,"breaking")};__passportBreaking.prototype.breakingCloseClicked=function(a,b,c){var d=b.parentNode;d.removeChild(b);this.setBreakingCounter(a,0);this.header.ui.stopEvent(c);if(!d.children.length){this.window.active=!1;this.window.dom.style.height=0;var e=this;window.setTimeout(function(){e.breakingDestruct()},1E3)}};
__passportBreaking.prototype.breakingDestruct=function(){__passportHeaderUtil.removeClass(this.window.dom,"_iph_brk_act");this.window.dom.parentNode.removeChild(this.window.dom)};__passportCP=function(a){this.text="Ezen az oldalon s\u00fctiket haszn\u00e1lunk.<br> A b\u00f6ng\u00e9sz\u00e9ssel ezt elfogadod.";this.helpUrl="https://inda.hu/sutik/";this.buttonText="meg\u00e9rtettem";this.header=a;this.config=this.getConfig();this.config.text&&(this.text=this.config.text);this.config.helpUrl&&(this.helpUrl=this.config.helpUrl);this.config.buttonText&&(this.buttonText=this.config.buttonText);if(!document.cookie||navigator.userAgent&&navigator.userAgent.match(/FBAV|FB_IAM/)||navigator.userAgent&&
navigator.userAgent.match(/indexapp/)||navigator.standalone||this.hasCookie()||this.header&&!this.config.enabled)return!1;this.add_event_funct="addEventListener";this.event_type_prefix="";!document.addEventListener&&document.attachEvent&&(this.add_event_funct="attachEvent",this.event_type_prefix="on");this.createPopup()};
__passportCP.prototype.getConfig=function(a){return this.header&&this.header.config&&this.header.config.cookiePolicy?this.header.config.cookiePolicy:"object"==typeof __passportCPConfig?__passportCPConfig:{enabled:!0}};__passportCP.prototype.hasCookie=function(){return document.cookie.match(/(?:^|.*;\s*)_iph_pcb\s*=\s*([^;]*).*$/)};
__passportCP.prototype.createPopup=function(){var a=this;this.createCss();this.el=document.createElement("div");this.el.innerHTML=this.buildPopup();this.el.setAttribute("id","_iph_cp_popup");this.header||(this.el.className="_iph_cp_standalone");document.body.appendChild(this.el);this.addListener(document.getElementById("_iph_cp_policy"),"click",function(){a.help()});this.addListener(document.getElementById("_iph_cp_accept"),"click",function(){a.accept()})};
__passportCP.prototype.buildPopup=function(){var a="<div><p>"+(this.text+' <span id="_iph_cp_policy">Tov\u00e1bbi inform\u00e1ci\u00f3k</span></p>');a=a+'<p><button id="_iph_cp_accept">'+(this.buttonText+"</button></p>");return a+"</div>"};
__passportCP.prototype.accept=function(){var a=new Date;a.setFullYear(a.getFullYear()+3);for(var b=location.hostname.split(".");2<b.length;)b.shift();document.cookie="_iph_pcb = 1 ; expires="+a.toUTCString()+"; "+(2<=b.length?"domain="+b.join("."):"")+"; path=/";if(a=document.getElementById("_iph_cp_popup"))a.parentNode.removeChild(a),this.header&&this.header.gaEvent("megertettemklikk",null,null,"cookiebar")};
__passportCP.prototype.help=function(){window.open(this.helpUrl);this.header&&this.header.gaEvent("tovabbiinformacioklikk",null,null,"cookiebar")};
__passportCP.prototype.createCss=function(){var a=document.head||document.getElementsByTagName("head")[0],b=document.createElement("style");b.type="text/css";b.styleSheet?b.styleSheet.cssText="#_iph_cp_popup { position: fixed; z-index: 10000; bottom: 0; left: 0; right: 0; height: auto; min-height: 50px; background-color: rgba(224, 224, 224, 0.94); overflow-x: auto; font-family: arial, sans-serif; font-size: 12px; color: black;}@media only screen and (max-width: 700px) { #_iph_cp_popup { border-top: 1px solid #cfcfcf; height: 160px; font-size: 14px; } #_iph_cp_popup._iph_cp_standalone { height: 108px; }}#_iph_cp_popup p { margin: 0; font-size: 12px; font-family: arial, sans-serif;}#_iph_cp_popup > div { margin: 10px auto 0 auto;}@media only screen and (min-width: 700px) { #_iph_cp_popup > div { max-width: 900px; position: relative; padding-left: 5px; margin-bottom: 10px; } #_iph_cp_popup p { line-height: 20px; margin-right: 140px; } #_iph_cp_popup p:last-child { position: absolute; margin-right: 0; right: 5px; top: 0; } #_iph_cp_popup p>br { display: none; }}@media only screen and (max-width: 700px) { #_iph_cp_popup > div { text-align: center; margin-top: 15px; min-width: 260px; } #_iph_cp_popup p:first-child { max-height: 50px; line-height: 14px; overflow-y: auto; } #_iph_cp_popup p:last-child { margin-top: 10px; }}#_iph_cp_popup button { border: 0px none; width: 122px; line-height: 20px; padding: 10px 0; font-size: 13px; cursor: pointer;}#_iph_cp_popup #_iph_cp_policy { text-decoration: underline; cursor: pointer; color: #009AD4;}#_iph_cp_popup p>a { color: #009AD4;}#_iph_cp_popup button#_iph_cp_accept { background-color: #505050; color: white; text-transform: uppercase; font-weight: bold;}":b.appendChild(document.createTextNode("#_iph_cp_popup { position: fixed; z-index: 10000; bottom: 0; left: 0; right: 0; height: auto; min-height: 50px; background-color: rgba(224, 224, 224, 0.94); overflow-x: auto; font-family: arial, sans-serif; font-size: 12px; color: black;}@media only screen and (max-width: 700px) { #_iph_cp_popup { border-top: 1px solid #cfcfcf; height: 160px; font-size: 14px; } #_iph_cp_popup._iph_cp_standalone { height: 108px; }}#_iph_cp_popup p { margin: 0; font-size: 12px; font-family: arial, sans-serif;}#_iph_cp_popup > div { margin: 10px auto 0 auto;}@media only screen and (min-width: 700px) { #_iph_cp_popup > div { max-width: 900px; position: relative; padding-left: 5px; margin-bottom: 10px; } #_iph_cp_popup p { line-height: 20px; margin-right: 140px; } #_iph_cp_popup p:last-child { position: absolute; margin-right: 0; right: 5px; top: 0; } #_iph_cp_popup p>br { display: none; }}@media only screen and (max-width: 700px) { #_iph_cp_popup > div { text-align: center; margin-top: 15px; min-width: 260px; } #_iph_cp_popup p:first-child { max-height: 50px; line-height: 14px; overflow-y: auto; } #_iph_cp_popup p:last-child { margin-top: 10px; }}#_iph_cp_popup button { border: 0px none; width: 122px; line-height: 20px; padding: 10px 0; font-size: 13px; cursor: pointer;}#_iph_cp_popup #_iph_cp_policy { text-decoration: underline; cursor: pointer; color: #009AD4;}#_iph_cp_popup p>a { color: #009AD4;}#_iph_cp_popup button#_iph_cp_accept { background-color: #505050; color: white; text-transform: uppercase; font-weight: bold;}"));
a.appendChild(b)};__passportCP.prototype.addListener=function(a,b,c){var d=c;window.addEventListener||(d=function(e){e=e||window.event;e.target=e.target||e.srcElement;c.apply(this,[e])});a[this.add_event_funct](this.event_type_prefix+b,d,!1)};__passportCP.prototype.supports3PC=function(){if(!window.localStorage)return null;var a=window.localStorage.getItem("__indapass.3pc");return null===a?null:(a=JSON.parse(a))?void 0!==a.supported?a.supported:null:null};
__passportCP.prototype.check3PCSupport=function(a,b){console.log("Checking 3rd party cookie support");if("undefined"===typeof window.fetch)return this.cookiecheckResult(!1);this.cookiecheckStep1(a,b)};
__passportCP.prototype.cookiecheckStep1=function(a,b){var c=Math.round(1E6*Math.random());fetch(a+"?challenge="+c+"&expires=2592000",{credentials:"include"}).then(d=>d.json()).then(d=>{0<d.count?this.cookiecheckResult(!0,b):d.msg&&"challenge-set"==d.msg?setTimeout(()=>this.cookiecheckStep2(a,b,c),1E3):this.cookiecheckResult(!1,b)}).catch(d=>{console.log("Cookiecheck failed",d);this.cookiecheckResult(null,b)})};
__passportCP.prototype.cookiecheckStep2=function(a,b,c){fetch(a,{credentials:"include"}).then(d=>d.json()).then(d=>{0<d.count?this.cookiecheckResult(!0,b):(console.log("Cookies not supported"),this.cookiecheckResult(!1,b))}).catch(d=>{console.log("Cookiecheck failed",d);this.cookiecheckResult(null,b)})};
__passportCP.prototype.cookiecheckResult=function(a,b){if(null===a)return b(a);var c=window.localStorage.getItem("__indapass.3pc");null!==c&&(c=JSON.parse(c));c||(c={});c.supported=a;window.localStorage.setItem("__indapass.3pc",JSON.stringify(c));b(a)};"undefined"==typeof __passportHeader&&new __passportCP;__passportRP=function(a){this.cookieName="rp_init";this.config=a.config;"undefined"!==typeof this.config.IDENT_URL&&this.checkRP()};
__passportRP.prototype.checkRP=function(){if(!this.hasCookie()){var a=document.createElement("img");a.setAttribute("border",0);a.setAttribute("width",1);a.setAttribute("height",1);var b="https:"==document.location.protocol?"https":"http";a.setAttribute("src",this.config.IDENT_URL.replace(/^http[s]?:/,"")+"management/rpFingerprint?proto="+b);document.body.appendChild(a);var c=!1,d=this;a.onload=a.onreadystatechange=function(){c||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||
(c=!0,d.setCookie())};window.setTimeout(function(){d.setCookie()},5E3)}};__passportRP.prototype.hasCookie=function(){return __passportHeaderUtil.cookie(this.cookieName)};__passportRP.prototype.setCookie=function(){return __passportHeaderUtil.cookie(this.cookieName,"1",{expires:1})};var passportHeader=new __passportHeader(__passportHeader_config);