class PMCRedirectOverlay { constructor() { this.$ = jQuery, this.long_term_cookie_name = "pmc_reg_rd_overlay_banner", this.short_term_cookie_name = "pmc_reg_rd_overlay_banner_sesn", this.setup_hooks(), this.maybe_display_banner() } setup_hooks = () => { this.$(".pmc-reg-rd-overlay-banner .btn-close").on("click", this.hide_banner), this.$(".pmc-reg-rd-overlay-banner").on("click", "a", this.expire_session) }; hide_banner = e => { e.preventDefault(), this.$(e.target).parent().hide() }; expire_session = () => { pmc.cookie.expire(this.short_term_cookie_name) }; should_display_banner = () => { let e = pmc.cookie.get(this.long_term_cookie_name), r = pmc.is_empty(e), t = pmc.cookie.get(this.short_term_cookie_name); return r = !pmc.is_empty(t) || r, r }; set_cookies = () => { let e = pmc.cookie.get(this.long_term_cookie_name); if (!pmc.is_empty(e)) return; let r = 30; "undefined" != typeof pmc_region_redirect_overlay && void 0 !== pmc_region_redirect_overlay.dnd_duration && 0 < parseInt(pmc_region_redirect_overlay.dnd_duration) && (r = parseInt(pmc_region_redirect_overlay.dnd_duration)), r *= 86400, pmc.cookie.set(this.long_term_cookie_name, "hide", r, "/"), pmc.cookie.set(this.short_term_cookie_name, "show") }; get_current_country = () => ("undefined" != typeof pmc_fastly_geo_data && void 0 !== pmc_fastly_geo_data.country ? pmc_fastly_geo_data.country : "").toLowerCase(); get_current_language = () => "undefined" != typeof navigator && void 0 !== navigator.language ? navigator.language.split("-")[0] : ""; has_local_site = (e = "") => { if (void 0 === e || pmc.is_empty(e)) return !1; return [...pmc_region_redirect_overlay.countries, ...pmc_region_redirect_overlay.languages].includes(e) }; maybe_display_banner = () => { let e; if (e = "language" === pmc_region_redirect_overlay.redirect_type ? this.get_current_language() : this.get_current_country(), !this.should_display_banner() || !this.has_local_site(e)) return; const r = pmc_region_redirect_overlay.overlay_html[e], t = this.$("#pmc-reg-rd-overlay-banner"); t.find(".message").html(r), t.show(), this.set_cookies() } } new PMCRedirectOverlay; ; jQuery(document).ready(function(e){jQuery("body").on("click",".closeShare",function(e){e.preventDefault(),jQuery(e.target).parents(".share-container").find(".shareMore").fadeOut(300)}),jQuery("body").on("click",".showShareMore",function(e){e.preventDefault(),jQuery(e.target).parents(".share-container").find(".shareMore").fadeIn(300),jQuery(e.target).parents(".share-container").find(".shareMore").css({"z-index":"99999"})}),jQuery(".btn-print").on("click",function(e){e.preventDefault(),e.stopPropagation(),window.print()}),jQuery("body").on("click",".btn-whatsapp",function(e){e.preventDefault(),e.stopPropagation();var n="whatsapp://send?text="+encodeURIComponent(window.location.href);window.location.href=n})});; jQuery(function(){var social_share_bar_ga={is_mobile:false,permalink:null,share_list:null,init:function(){this.permalink=window.pmc_share_bar_lob_ga_tracking.permalink;this.is_mobile=window.pmc_share_bar_lob_ga_tracking.is_mobile;this.share_list=window.pmc_share_bar_lob_ga_tracking.share_list;this.bind_ui_click()},bind_ui_click:function(){var self=this;jQuery.each(self.share_list,function(id,share_icon){jQuery("."+share_icon.class).on("click",function(e){jQuery.event.trigger({type:"pmc-social-share-bar-click",id:id,permalink:self.permalink,class:share_icon.class});if("1"===self.is_mobile){self.track_social_click(id,"click",self.permalink)}else{if(false===share_icon.popup){self.track_social_click(id,"click",self.permalink)}else{e.preventDefault();var popup_features={height:570,width:530,left:"50%",top:"28%",location:1,resizable:0,menubar:0,toolbar:0,personalbar:0,status:0};var popup_options={source_el:el=jQuery(this),title:share_icon.popup_title};if(self.open_popup(popup_options,popup_options)){self.track_social_click(id,"click",self.permalink);return false}}}});jQuery("."+share_icon.class).one("mouseover",function(e){jQuery.event.trigger({type:"pmc-social-share-bar-mouseover",id:id,permalink:self.permalink,class:share_icon.class});self.track_social_mouseover(id);return false})})},track_social_click:function(socialNetwork,action,target){if(typeof ga!="undefined"){ga("send","social",socialNetwork,action,target);if("undefined"!==typeof gtag){gtag("event",String(socialNetwork+"-"+action).substring(0,39),{eventCategory:String(socialNetwork).substring(0,99),eventAction:action,eventLabel:String(target).substring(0,99)})}var event=pmc.hooks.apply_filters("pmc_event_tracking_social_data",null,socialNetwork);if(null!==event){ga("send",{hitType:event.hitType,eventCategory:event.eventCategory,eventAction:event.eventAction,eventLabel:event.eventLabel,nonInteraction:event.nonInteraction});if("undefined"!==typeof gtag){gtag("event",String(event.eventCategory+"-"+event.eventAction).substring(0,39),{eventCategory:String(event.eventCategory).substring(0,99),eventAction:String(event.eventAction).substring(0,99),eventLabel:String(event.eventLabel).substring(0,99),eventValue:String(event.eventValue).substring(0,99),nonInteraction:String(event.nonInteraction).substring(0,99)})}}}},track_social_mouseover:function(socialNetwork){if(typeof ga!="undefined"){ga("send","event","social_bar","mouse-over",socialNetwork,1,{nonInteraction:true})}if("undefined"!==typeof gtag){gtag("event","social_bar-mouse-over",{eventAction:"mouse-over",eventCategory:"social_bar",eventLabel:socialNetwork,eventValue:1})}},open_popup:function(opts,features){var index=0,win,features_list=[],x,el=false,url=false;var screen_left,screen_top,win_left;var default_options={source_el:false,url:false,title:"Window",reuse:true};var bool_features=["menubar","toolbar","location","personalbar","status","resizable","scrollbars","dependent","dialog","minimizable"];var default_features={left:"50%",top:"25%",height:300,width:500,menubar:0,toolbar:0,location:1,personalbar:0,status:0,resizable:1,scrollbars:1,dependent:0,dialog:0,minimizable:0};opts=jQuery.extend(default_options,opts);features=jQuery.extend(default_features,features);if(opts.source_el){el=jQuery(opts.source_el);if(!el.length){el=false}}if(features.left.toString().indexOf("%")){screen_left=window.screenLeft||window.screenX;features.left=features.left.replace("%","")/100;features.left=Math.round(screen_left+jQuery(window).width()*features.left-features.width/2)}features_list.push("left="+features.left);if(features.top.toString().indexOf("%")){screen_top=window.screenTop||window.screenY;features.top=Math.round(screen_top+jQuery(window).height()*features.top.replace("%","")/100)}features_list.push("top="+features.top);features_list.push("width="+features.width);features_list.push("height="+features.height);for(x=0;x