PageSourceSearch

https://www.sergiosimonella.com/wp-content/plugins/myagileprivacy/…/my-agile-privacy-frontend.min.js?ver=3.3.7

js sergiosimonella.com collected 2026-09-24 11:50:17 UTC 114,882 bytes, 6 lines download raw bytes

1/*!
2* MyAgilePrivacy (https://www.myagileprivacy.com/)
3* plain js version
4*/
5"undefined"==typeof map_full_config&&(window.map_full_config=void 0),"undefined"==typeof map_ajax&&(window.map_ajax=void 0);var MAP_SYS={plugin_version:null,parse_config_version_number:null,js_internal_version:"3.0018",cookie_shield_version:null,js_technology:"plain",maplog:"�[40m�[97m[MyAgilePrivacy]�[0m ",map_initted:!1,map_document_load:!1,map_debug:!1,map_cookie_expire:180,map_skip_regexp:[/.*oxygen_iframe=true.*$/,/.*ct_builder=true.*$/],map_missing_cookie_shield:null,map_detectableKeys:null,map_detectedKeys:null,map_notify_title:!1,map_first_layer_branded:!1,enforce_youtube_privacy_v2:!1,in_iab_context:!1,dependencies:[],microsoft_cmode:null,clarity_cmode:null,clarity_cmp_id:"150",cmode_v2:null,cmode_v2_implementation_type:null,cmode_v2_forced_off_ga4_advanced:null,cmode_v2_js_on_error:null,starting_gconsent:[],current_gconsent:[],starting_mconsent:[],current_mconsent:[],starting_cconsent:[],current_cconsent:[],map_accept_all_button:null,map_reject_all_button:null,user_uuid:null,last_consent_modify_date:null,some_positive_consent_given:!1,early_gcmode:!1,frontend_regulation:null,geo_enabled:!1,geo_sede_strong:!1,geo_force_optout:{},geo_resolved:!1,geo_country:null,geo_native:null,geo_eff_type:"block",geo_bar_deferred:!1,send_ga4_event_on_consent_change:null,allow_js_fast_callback:null,cookie_domain:null,allow_iab_disclosure_url:!0,iab_early_init_done:!1,iab_full_init_done:!1,iab_full_init_promise:null,iab_lang:null,iab_pending_consent:null};if(function(global){function noop(){}function makeNoopLogger(){return{log:noop,info:noop,warn:noop,error:noop,debug:noop,group:noop,trace:noop,clear:noop,dir:noop,dirxml:noop,table:noop,assert:noop,count:noop,countReset:noop,time:noop,timeLog:noop,profile:noop,profileEnd:noop,timeStamp:noop,groupCollapsed:noop,groupEnd:noop}}void 0!==global.MapLogger&&global.MapLogger||(void 0===global.MAP_VERBOSE_LOG||!0!==global.MAP_VERBOSE_LOG?global.MapLogger=makeNoopLogger():global.MapLogger=global.console||makeNoopLogger())}(window),"undefined"!=typeof MAP_JSCOOKIE_SHIELD&&MAP_JSCOOKIE_SHIELD||(window.MAP_POSTFIX="",window.MAP_ACCEPTED_ALL_COOKIE_NAME="map_accepted_all_cookie_policy",window.MAP_ACCEPTED_SOMETHING_COOKIE_NAME="map_accepted_something_cookie_policy",window.MAP_CONSENT_STATUS="map_consent_status",window.MAP_MICROSOFT_CONSENT_STATUS="map_microsoft_consent_status",window.MAP_CLARITY_CONSENT_STATUS="map_clarity_consent_status",window.MAP_USER_UUID="map_user_uuid",window.MAP_LAST_CONSENT_MODIFY_DATE="map_last_c_m_date",MapLogger.debug(MAP_SYS.maplog+"MAP_POSTFIX="+MAP_POSTFIX)),window.MAP_TRANSPORT_COOKIE_NAME="map_tp",window.MAP_SVG_VIDEO="<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='48' height='48' fill='currentColor' aria-hidden='true'><path fill-rule='evenodd' d='M4 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H4zm6 3.5 6 3.5-6 3.5v-7z'/></svg>",window.MAP_SVG_MAPS="<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='48' height='48' fill='currentColor' aria-hidden='true'><path d='M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19l-6-2.11V5l6 2.11V19z'/></svg>",void 0===MAP_Cookie){if(void 0===MAP_UA_NO_COOKIE_SET)var MAP_UA_NO_COOKIE_SET=["Cookiebot","cookiebot.com","CookieHubVerify","TermlyBot"];var MAP_Cookie={_isNoSetResult:null,_isUserAgentNoCookieSet:function(){if(null!==this._isNoSetResult)return this._isNoSetResult;var userAgent=(navigator?.userAgent||"").toLowerCase();return this._isNoSetResult=MAP_UA_NO_COOKIE_SET.some(function(f){return userAgent.includes(f.toLowerCase())}),this._isNoSetResult},_cookie_cache:{},_buildDomainStr:function(domain){var effectiveDomain=domain||MAP_SYS?.cookie_domain||("undefined"!=typeof map_full_config?map_full_config?.cookie_domain:null);return effectiveDomain?"; domain="+("."===effectiveDomain.charAt(0)?effectiveDomain:"."+effectiveDomain):""},_buildSecurityStr:function(){return"; SameSite=Lax"+("https:"===window.location.protocol?"; Secure":"")}
5,set:function(name,value,days,domain=null){if(this._isUserAgentNoCookieSet())return null;try{if(days){var date=new Date;date.setTime(date.getTime()+24*days*60*60*1e3);var expires="; expires="+date.toGMTString()}else expires="";document.cookie=name+"="+(""+value).replace(/[;\r\n]/g,"")+expires+"; path=/"+this._buildDomainStr(domain)+this._buildSecurityStr(),this._cookie_cache&&delete this._cookie_cache[name]}catch(e){return MapLogger.debug(e),null}},setGMTString:function(name,value,GMTString,domain=null){if(this._isUserAgentNoCookieSet())return null;try{var expires="; expires="+GMTString;document.cookie=name+"="+(""+value).replace(/[;\r\n]/g,"")+expires+"; path=/"+this._buildDomainStr(domain)+this._buildSecurityStr(),this._cookie_cache&&delete this._cookie_cache[name]}catch(e){return MapLogger.debug(e),null}},read:function(name){if(this._cookie_cache&&name in this._cookie_cache)return this._cookie_cache[name];try{for(var nameEQ=name+"=",ca=document.cookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "==c.charAt(0);)c=c.substring(1,c.length);if(0===c.indexOf(nameEQ)){var val=c.substring(nameEQ.length,c.length);return this._cookie_cache&&(this._cookie_cache[name]=val),val}}return this._cookie_cache&&(this._cookie_cache[name]=null),null}catch(e){return MapLogger.debug(e),null}},exists:function(name){return null!==this.read(name)},delete:function(name,domain){var expirationDate=new Date;expirationDate.setTime(expirationDate.getTime()-36e5),document.cookie=name+"=; expires="+expirationDate.toUTCString()+"; path=/"+this._buildDomainStr(domain)+this._buildSecurityStr(),this._cookie_cache&&delete this._cookie_cache[name]},getCookieNameList:function(){for(var cookies=document.cookie.split(";"),return_data=[],i=0;i<cookies.length;i++){var cookie=cookies[i].trim(),separatorIndex=cookie.indexOf("=");if(-1!==separatorIndex){var name=cookie.substring(0,separatorIndex);return_data.push(name)}}return return_data}}}var MAP={set:function(args){try{if(this.initted)return void MapLogger.debug(MAP_SYS.maplog+"MAP already initted: exiting");var current_url=window.location.href;MAP_SYS.map_skip_regexp.some(function(rx){return rx.test(current_url)});if(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"calling MAP set function"),"function"!=typeof JSON.parse)return void console.error(MAP_SYS.maplog+"Error: My Agile Privacy requires JSON.parse but your browser lacks this support");"object"!=typeof args.settings?this.settings=JSON.parse(args.settings):this.settings=args.settings,this?.settings?.plugin_version&&(MAP_SYS.plugin_version=this?.settings?.plugin_version),this?.settings?.parse_config_version_number&&(MAP_SYS.parse_config_version_number=this?.settings?.parse_config_version_number),this?.settings?.map_notify_title&&(MAP_SYS.map_notify_title=this?.settings?.map_notify_title),this?.settings?.map_first_layer_branded&&(MAP_SYS.map_first_layer_branded=this?.settings?.map_first_layer_branded),"undefined"!=typeof map_full_config&&void 0!==map_full_config.frontend_regulation&&(MAP_SYS.frontend_regulation=map_full_config.frontend_regulation),"undefined"!=typeof map_full_config&&void 0!==map_full_config.send_ga4_event_on_consent_change&&(MAP_SYS.send_ga4_event_on_consent_change=map_full_config.send_ga4_event_on_consent_change),"undefined"!=typeof map_full_config&&void 0!==map_full_config.allow_js_fast_callback&&(MAP_SYS.allow_js_fast_callback=map_full_config.allow_js_fast_callback),"undefined"!=typeof map_full_config&&void 0!==map_full_config.cookie_domain&&(MAP_SYS.cookie_domain=map_full_config.cookie_domain),"undefined"!=typeof map_full_config&&void 0!==map_full_config.enforce_youtube_privacy_v2&&(MAP_SYS.enforce_youtube_privacy_v2=map_full_config.enforce_youtube_privacy_v2),"undefined"!=typeof map_full_config&&map_full_config.geo_enabled?(MAP_SYS.geo_enabled=!0,MAP_SYS.geo_sede_strong=!!map_full_config.geo_sede_strong,MAP_SYS.geo_force_optout=map_full_config.geo_force_optout&&"object"==typeof map_full_config.geo_force_optout?map_full_config.geo_force_optout:{},MapLogger.log("MAP-GEO","config copied into MAP_SYS",{geo_enabled:MAP_SYS.geo_enabled,geo_sede_strong:MAP_SYS.geo_sede_strong,geo_force_optout:MAP_SYS.geo_force_optout}),MAP.mapGeoInit()):MapLogger.log("MAP-GEO","geo disabled in config (map_full_config.geo_enabled falsy) — skipping geo init"),"undefined"!=typeof CookieShield&&CookieShield&&(MAP_SYS.cookie_shield_version=CookieShield.getVersion()),(this?.settings?.scan_mode&&"learning_mode"==this.settings.scan_mode||this?.settings?.verbose_remote_log&&this.settings.verbose_remote_log)&&(MAP_SYS.map_debug=!0),this?.settings?.cookie_reset_timestamp&&this.settings.cookie_reset_timestamp&&("undefined"!=typeof MAP_JSCOOKIE_SHIELD&&MAP_JSCOOKIE_SHIELD||(MAP_POSTFIX="_"+this.settings.cookie_reset_timestamp,MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"MAP_POSTFIX="+MAP_POSTFIX))),"undefined"!=typeof MAP_JSCOOKIE_SHIELD&&MAP_JSCOOKIE_SHIELD||(MAP_ACCEPTED_ALL_COOKIE_NAME+=MAP_POSTFIX,MAP_ACCEPTED_SOMETHING_COOKIE_NAME+=MAP_POSTFIX,MAP_CONSENT_STATUS+=MAP_POSTFIX,MAP_MICROSOFT_CONSENT_STATUS+=MAP_POSTFIX,MAP_CLARITY_CONSENT_STATUS+=MAP_POSTFIX,MAP_USER_UUID+=MAP_POSTFIX,MAP_LAST_CONSENT_MODIFY_DATE+=MAP_POSTFIX),MAP_SYS?.map_debug&&this?.settings.cookie_reset_timestamp&&this.settings.cookie_reset_timestamp&&(MapLogger.debug(MAP_SYS.maplog+"using alt_accepted_all_cookie_name="+MAP_ACCEPTED_ALL_COOKIE_NAME),MapLogger.debug(MAP_SYS.maplog+"using alt_accepted_something_cookie_name="+MAP_ACCEPTED_SOMETHING_COOKIE_NAME),MapLogger.debug(MAP_SYS.maplog+"using alt_user_uuid_cookie_name="+MAP_USER_UUID),MapLogger.debug(MAP_SYS.maplog+"using alt_last_consent_modify_date_cookie_name="+MAP_LAST_CONSENT_MODIFY_DATE)),this.blocked_friendly_name_string=null,this.blocked_content_notification_shown=!1,this.bar_open=!1,this.settings=args.settings,this.bar_elm=document.querySelector(this.settings.notify_div_id),this.showagain_elm=document.querySelector("#"+this.settings.showagain_div_id),this.settingsModal=document.querySelector("#mapSettingsPopup"),this.blocked_content_notification=document.querySelector("#map-blocked-content-notification-area"),this.blocked_content_notification&&(this.map_blocked_elems_desc=this.blocked_content_notification.querySelector(".map_blocked_elems_desc")),this.map_notification_message=this.bar_elm.querySelector(".map_notification-message"),this.accept_button=this.bar_elm.querySelector(".map-accept-button"),this.reject_button=this.bar_elm.querySelectorAll(".map-reject-button"),this.customize_button=this.bar_elm.querySelector(".map-customize-button"),this.show_consent_elems=document.querySelectorAll(".showConsent, .
5showConsentAgain"),MAP_SYS.map_accept_all_button=this.accept_button,MAP_SYS.map_reject_all_button=this.reject_button[0],MAP_SYS?.map_debug&&(MapLogger.groupCollapsed(MAP_SYS.maplog+"settings:"),MapLogger.debug(this.settings),MapLogger.groupEnd()),this.retrieveLastConsentDate(),this.retrieveLastConsentUUID(),this.loadDependencies(),this.toggleBar(),this.createInlineNotify(),this.attachEvents(),this.attachAnimations(),this.initted=!0,this.optimizeMobile();var that=this;window.addEventListener("resize",function(){that.optimizeMobile()}),document.body.addEventListener("MAP_SHIELD_CONTENT_BLOCKED",function(){that.createInlineNotify()}),this.setupIabTCF(),this.updateSomeConsentGivenStatus(),this.usabilityEvents()}catch(error){console.error(error)}},normalizeCssValue:function(value){return(value=null==value?"":value+"").replace(/\s+/g," ").trim()},createCssTestNode:function(testClassName){var el=document.createElement("div");return el.className=testClassName,el.style.position="absolute",el.style.left="-99999px",el.style.top="-99999px",el.style.width="1px",el.style.height="1px",el.style.overflow="hidden",el.style.visibility="hidden",el},isCssSignatureActive:function(testClassName,testProperty,expectedValue){try{if(!document.body)return!1;if(!testClassName||!testProperty)return!1;var el=this.createCssTestNode(testClassName);document.body.appendChild(el);var computed=window.getComputedStyle?window.getComputedStyle(el,null):null,value="";return computed?value=computed.getPropertyValue(testProperty):el.currentStyle&&(value=el.currentStyle[testProperty]),document.body.removeChild(el),(value=this.normalizeCssValue(value))===(expectedValue=this.normalizeCssValue(expectedValue))}catch(error){return console.error(error),!1}},injectCssBySignature:function(options,callback){var that=this;try{var src=(options=options||{}).src||"",signatureClass=options.signatureClass||"",signatureProperty=options.signatureProperty||"",signatureValue=options.signatureValue||"";if(!src)return;if(this.isCssSignatureActive(signatureClass,signatureProperty,signatureValue))return MAP_SYS&&MAP_SYS.map_debug&&MapLogger.debug(MAP_SYS.maplog+"css signature already active, skip load src="+src),void(callback&&callback(!0,!1));MAP_SYS&&MAP_SYS.map_debug&&MapLogger.debug(MAP_SYS.maplog+"injectCssBySignature src="+src);var link=document.createElement("link");link.rel="stylesheet",link.type="text/css",link.href=src,link.onload=function(){var activeAfter=that.isCssSignatureActive(signatureClass,signatureProperty,signatureValue);MAP_SYS&&MAP_SYS.map_debug&&MapLogger.debug(MAP_SYS.maplog+"loaded css src="+src+" signatureActive="+activeAfter),MAP_SYS.dependencies.push(src),callback&&callback(!1,!0)},link.onerror=function(){MAP_SYS&&MAP_SYS.map_debug&&MapLogger.debug(MAP_SYS.maplog+"error loading css src="+src),callback&&callback(!1,!1)},(document.head||document.getElementsByTagName("head")[0]).appendChild(link)}catch(error){console.error(error)}},getCssSignatureClassFromUrl:function(url){try{if(!url)return"";var parts=(url+"").split("#")[0].split("?")[0].split("/"),fileName=parts.length?parts[parts.length-1]:"";return"map-css-signature-"+(fileName=(fileName=fileName.replace(/\.min\.css$/i,"").replace(/\.css$/i,"")).toLowerCase().replace(/[^a-z0-9\-]+/g,"-"))}catch(error){return console.error(error),""}},injectCode:function(src=null,callback=null){try{if(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function injectCode src="+src),src){const script=document.createElement("script");script.async=!0,script.src=src,script.onload=function(){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"loaded script src="+src),callback&&callback()},(document.body||document.head).appendChild(script)}}catch(error){console.error(error)}},loadFrontendCss:function(){try{if(MAP_SYS&&MAP_SYS.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function loadFrontendCss"),"undefined"==typeof map_full_config||!map_full_config)return;if(!map_full_config.frontend_css||!map_full_config.frontend_css.length)return;for(var i=0;i<map_full_config.frontend_css.length;i++){var src=map_full_config.frontend_css[i],signatureClass=this.getCssSignatureClassFromUrl(src);signatureClass&&this.injectCssBySignature({src:src,signatureClass:signatureClass,signatureProperty:"display",signatureValue:"none"}
5,function(isActiveBeforeLoad,isLoadedNow){MAP_SYS&&MAP_SYS.map_debug&&MapLogger.debug(MAP_SYS.maplog+"css result alreadyActive="+isActiveBeforeLoad+" loadedNow="+isLoadedNow)})}}catch(error){console.error(error)}},loadDependencies:function(){var that=this;setTimeout(function(){that.loadFrontendCss()},500);try{var something_to_do=!1;MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function loadDependencies"),"undefined"!=typeof MAP_JSCOOKIE_SHIELD&&MAP_JSCOOKIE_SHIELD||"undefined"==typeof map_full_config||void 0===map_full_config?.js_shield_url||!map_full_config?.js_shield_url||(that.injectCode(map_full_config?.js_shield_url,function(){}),something_to_do=!0,MAP_SYS.dependencies.push(map_full_config?.js_shield_url)),"undefined"!=typeof map_full_config&&void 0!==map_full_config?.load_iab_tcf&&map_full_config?.load_iab_tcf&&void 0!==map_full_config?.iab_tcf_script_url&&void 0===window?.initMyAgilePrivacyIabTCF&&(that.injectCode(map_full_config?.iab_tcf_script_url,function(){}),something_to_do=!0,MAP_SYS.dependencies.push(map_full_config?.iab_tcf_script_url)),something_to_do?MAP_SYS?.map_debug&&(MapLogger.groupCollapsed(MAP_SYS.maplog+" tried to load the following dependencies:"),MapLogger.log(MAP_SYS.dependencies)):MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+" no dependencies to load."),MapLogger.groupEnd()}catch(error){console.error(error)}},getFullGoogleConsentStatus:function(){try{if(!MAP_SYS?.cmode_v2)return null;if(MAP_SYS?.current_gconsent&&"object"==typeof MAP_SYS.current_gconsent){var hasKeys=!1;for(var k in MAP_SYS.current_gconsent)if(Object.prototype.hasOwnProperty.call(MAP_SYS.current_gconsent,k)){hasKeys=!0;break}if(hasKeys)return{...MAP_SYS.current_gconsent}}if("function"==typeof this.exportGoogleConsentObjectFromCookie){var fromCookie=this.exportGoogleConsentObjectFromCookie();if(fromCookie)return fromCookie}return"undefined"!=typeof map_full_config&&map_full_config?.cmode_v2_default_consent_obj?{...map_full_config.cmode_v2_default_consent_obj}:null}catch(error){return console.error(error),null}},getClarityConsentStatus:function(key){try{return MAP_SYS?.current_cconsent[key]}catch(error){console.error(error)}},getMicrosoftConsentStatus:function(key){try{return MAP_SYS?.current_mconsent[key]}catch(error){console.error(error)}},getGoogleConsentStatus:function(key){try{return MAP_SYS?.current_gconsent[key]}catch(error){console.error(error)}},updateClarityConsent:function(key,value,updateStatusCookie=!1){try{if(MAP_SYS?.clarity_cmode){var currentCConsent={...MAP_SYS?.current_cconsent};currentCConsent[key]=value,MAP_SYS.current_cconsent=currentCConsent;var to_send_consent=Object.fromEntries(Object.entries(currentCConsent).map(([key,value])=>{var newKey=key.startsWith("clarity_")?key.slice(8):key;return[newKey=newKey.replace(/_storage/g,"_Storage"),value]}));return void 0!==window.clarity&&window.clarity("consentv2",{source:MAP_SYS.clarity_cmp_id,...to_send_consent}),updateStatusCookie&&this.saveClarityConsentStatusToCookie(MAP_SYS?.current_cconsent),this.updateLastConsentRecords(),!0}return!1}catch(error){console.error(error)}},updateMicrosoftConsent:function(key,value,updateStatusCookie=!1){try{if(MAP_SYS?.microsoft_cmode){var newConsent={};newConsent[key.startsWith("microsoft_")?key.slice(10):key]=value,void 0!==window.uetq&&window.uetq.push("consent","update",newConsent);var currentMConsent={...MAP_SYS?.current_mconsent};return currentMConsent[key]=value,MAP_SYS.current_mconsent=currentMConsent,updateStatusCookie&&this.saveMicrosoftConsentStatusToCookie(MAP_SYS?.current_mconsent),this.updateLastConsentRecords(),!0}return!1}catch(error){console.error(error)}},dispatchConsentEvents:function(eventLabel,dataKey,value){try{if(!eventLabel)return void(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"dispatchConsentEvents - Missing eventLabel"));MAP_SYS?.map_debug&&(MapLogger.debug(MAP_SYS.maplog+"dispatchConsentEvents - Event name: "+eventLabel+(value||"")),MapLogger.debug(MAP_SYS.maplog+"dispatchConsentEvents - Data key: "+dataKey),MapLogger.debug(MAP_SYS.maplog+"dispatchConsentEvents - Value: "+value),dataKey&&value&&MapLogger.debug(MAP_SYS.maplog+"dispatchConsentEvents - Payload: "+JSON.stringify({[dataKey]:value})));var eventDetail={};dataKey&&value&&(eventDetail={[dataKey]:value}),window.dispatchEvent(new CustomEvent(eventLabel+(value||""),{detail:eventDetail})),MAP_SYS?.send_ga4_event_on_consent_change&&"function"==typeof window.gtag&&window.gtag&&gtag("event",eventLabel+(value||""),eventDetail)}catch(error){console.error(error)}},updateGoogleConsentbyKeyValue:function(key,value,updateStatusCookie=!1){try{if(MAP_SYS?.cmode_v2){var newConsent;if("native"===MAP_SYS?.cmode_v2_implementation_type)(newConsent={})[key]=value,"function"==typeof gtag?gtag("consent","update",newConsent):MapLogger.warn(MAP_SYS.maplog+"consent update LOST: gtag unavailable",newConsent),this.dispatchConsentEvents("myagileprivacy_gcmode_consent_",key+"_status",value);if("gtm"===MAP_SYS?.cmode_v2_implementation_type)(newConsent={})[key]=value,void 0!==window.gTagManagerConsentListeners&&Array.isArray(window.gTagManagerConsentListeners)&&window.gTagManagerConsentListeners.length>
50?window.gTagManagerConsentListeners.forEach(callback=>{callback(newConsent)}):"function"==typeof gtag&&gtag("consent","update",newConsent),this.dispatchConsentEvents("myagileprivacy_gcmode_consent_",key+"_status",value);var currentGConsent={...MAP_SYS?.current_gconsent};return currentGConsent[key]=value,MAP_SYS.current_gconsent=currentGConsent,updateStatusCookie&&this.saveGoogleConsentStatusToCookie(MAP_SYS?.current_gconsent),this.updateLastConsentRecords(),!0}return!1}catch(error){console.error(error)}},updateGoogleConsentbyObj:function(newConsent,updateStatusCookie=!1){try{return!!MAP_SYS?.cmode_v2&&("native"===MAP_SYS?.cmode_v2_implementation_type&&("function"==typeof gtag?gtag("consent","update",newConsent):MapLogger.warn(MAP_SYS.maplog+"consent update LOST: gtag unavailable",newConsent)),"gtm"===MAP_SYS?.cmode_v2_implementation_type&&(void 0!==window.gTagManagerConsentListeners&&Array.isArray(window.gTagManagerConsentListeners)&&window.gTagManagerConsentListeners.length>0?window.gTagManagerConsentListeners.forEach(callback=>{callback(newConsent)}):"function"==typeof gtag&&gtag("consent","update",newConsent)),MAP_SYS.current_gconsent=newConsent,updateStatusCookie&&this.saveGoogleConsentStatusToCookie(MAP_SYS?.current_gconsent),this.updateLastConsentRecords(),!0)}catch(error){console.error(error)}},parseClarityConsentStatus:function(consentStatusValue){return this.parseGoogleConsentStatus(consentStatusValue)},parseMicrosoftConsentStatus:function(consentStatusValue){return this.parseGoogleConsentStatus(consentStatusValue)},parseGoogleConsentStatus:function(consentStatusValue){try{var keyValuePairs=consentStatusValue.split("|"),decodedObject={};return keyValuePairs.forEach(function(pair){var parts=pair.split(":"),key=parts[0],value="true"===parts[1]?"granted":"denied";
5decodedObject[key]=value}),decodedObject}catch(error){console.error(error)}},saveClarityConsentStatusToCookie:function(consentObject){try{var encodedString=Object.keys(consentObject).map(function(key){return key+":"+("granted"===consentObject[key])}).join("|");return MAP_Cookie.set(MAP_CLARITY_CONSENT_STATUS,encodedString,MAP_SYS.map_cookie_expire),!0}catch(error){console.error(error)}},saveMicrosoftConsentStatusToCookie:function(consentObject){try{var encodedString=Object.keys(consentObject).map(function(key){return key+":"+("granted"===consentObject[key])}).join("|");return MAP_Cookie.set(MAP_MICROSOFT_CONSENT_STATUS,encodedString,MAP_SYS.map_cookie_expire),!0}catch(error){console.error(error)}},saveGoogleConsentStatusToCookie:function(consentObject){try{var encodedString=Object.keys(consentObject).map(function(key){return key+":"+("granted"===consentObject[key])}).join("|");return MAP_Cookie.set(MAP_CONSENT_STATUS,encodedString,MAP_SYS.map_cookie_expire),!0}catch(error){console.error(error)}},exportGoogleConsentObjectFromCookie:function(){try{var cookieValue=MAP_Cookie.read(MAP_CONSENT_STATUS);return cookieValue?this.parseGoogleConsentStatus(cookieValue):null}catch(error){console.error(error)}},setFromGoogleTagManagerInitialConsent:function(gconsent){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function setFromGoogleTagManagerInitialConsent"),gconsent&&(MAP_SYS.starting_gconsent={...gconsent},MAP_SYS.current_gconsent={...gconsent},this.saveGoogleConsentStatusToCookie(gconsent),this.userPreferenceInit(!0))}catch(error){console.error(error)}},googleTagManagerConsentListener:function(callback){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function googleTagManagerConsentListener"),window.gTagManagerConsentListeners=window.gTagManagerConsentListeners||[],window.gTagManagerConsentListeners.push(callback)}catch(error){console.error(error)}},setupConsentModeV2:function(){try{if(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function setupConsentModeV2"),"undefined"==typeof map_full_config)return!1;if(MAP_SYS.cmode_v2=map_full_config?.enable_cmode_v2,MAP_SYS.cmode_v2_implementation_type=map_full_config?.cmode_v2_implementation_type,MAP_SYS.cmode_v2_forced_off_ga4_advanced=map_full_config?.cmode_v2_forced_off_ga4_advanced,MAP_SYS.cmode_v2_js_on_error=map_full_config?.cmode_v2_js_on_error,MAP_SYS.cmode_v2&&"gtm"==MAP_SYS.cmode_v2_implementation_type)if(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default value for consent mode (gtm)"),cookieValue=MAP_Cookie.read(MAP_CONSENT_STATUS)){var this_gconsent=this.parseGoogleConsentStatus(cookieValue);MAP_SYS.current_gconsent={...this_gconsent}}if(MAP_SYS.cmode_v2&&"native"==MAP_SYS.cmode_v2_implementation_type){if(void 0!==map_full_config.early_gcmode&&map_full_config.early_gcmode)"undefined"!=typeof early_starting_gconsent&&early_starting_gconsent&&(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default value for consent mode (native) via early consent"),MAP_SYS.starting_gconsent=early_starting_gconsent,MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default consent (native)"),MAP_SYS.current_gconsent={...MAP_SYS.starting_gconsent},MAP_SYS.early_gcmode=!0);else{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default value for consent mode (native)"),MAP_SYS.starting_gconsent=map_full_config?.cmode_v2_default_consent_obj,MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default consent (native)"),MAP_SYS.current_gconsent={...MAP_SYS.starting_gconsent};try{"function"==typeof gtag?gtag("consent","default",{...MAP_SYS.starting_gconsent}):MapLogger.warn(MAP_SYS.maplog+"consent default LOST: gtag unavailable",MAP_SYS.starting_gconsent)}catch(error){console.error(error)}}var cookieValue;if(cookieValue=MAP_Cookie.read(MAP_CONSENT_STATUS)){this_gconsent=this.parseGoogleConsentStatus(cookieValue);MAP_SYS.current_gconsent={...this_gconsent},MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting consent with value="+cookieValue),this.updateGoogleConsentbyObj(this_gconsent,!1)}else this.saveGoogleConsentStatusToCookie(MAP_SYS.current_gconsent)}return!0}catch(error){console.error(error)}},setupClarityConsentMode:function(){try{if(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function setupClarityConsentMode"),"undefined"==typeof map_full_config)return!1;if(MAP_SYS.clarity_cmode=map_full_config?.enable_clarity_cmode,MAP_SYS.clarity_cmode){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default value for consent mode (Clarity)"),MAP_SYS.starting_cconsent=map_full_config?.cmode_clarity_default_consent_obj;var cookieValue=MAP_Cookie.read(MAP_CLARITY_CONSENT_STATUS);if(cookieValue){var this_cconsent=this.parseClarityConsentStatus(cookieValue);MAP_SYS.current_cconsent={...this_cconsent};try{var current_cconsent_fixed=Object.fromEntries(Object.entries(this_cconsent).map(([key,value])=>{var newKey=key.startsWith("clarity_")?key.slice(8):key;return[newKey=newKey.replace(/_storage/g,"_Storage"),value]}));void 0!==window.clarity&&window.clarity("consentv2",{source:MAP_SYS.clarity_cmp_id,...current_cconsent_fixed})}catch(error){console.error(error)}}else{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default consent (Clarity)"),MAP_SYS.current_cconsent={...MAP_SYS.starting_cconsent};try{current_cconsent_fixed=Object.fromEntries(Object.entries(MAP_SYS.starting_cconsent).map(([key,value])=>{var newKey=key.startsWith("clarity_")?key.slice(8):key;return[newKey=newKey.replace(/_storage/g,"_Storage"),value]}));void 0!==window.clarity&&window.clarity("consentv2",{source:MAP_SYS.clarity_cmp_id,...current_cconsent_fixed})}catch(error){console.error(error)}this.saveClarityConsentStatusToCookie(MAP_SYS.current_cconsent)}}return!0}catch(error){console.error(error)}},setupMicrosoftConsentMode:function(){try{if(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function setupMicrosoftConsentMode"),"undefined"==typeof map_full_config)return!1;if(MAP_SYS.microsoft_cmode=map_full_config?.enable_microsoft_cmode,MAP_SYS.microsoft_cmode){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default value for consent mode (Microsoft)"),MAP_SYS.starting_mconsent=map_full_config?.cmode_microsoft_default_consent_obj;var cookieValue=MAP_Cookie.read(MAP_MICROSOFT_CONSENT_STATUS);if(cookieValue){var this_mconsent=this.parseMicrosoftConsentStatus(cookieValue);MAP_SYS.current_mconsent={...this_mconsent};try{var current_mconsent_fixed=Object.fromEntries(Object.entries(this_mconsent).map(([key,value])=>[key.startsWith("microsoft_")?key.slice(10):key,value]));void 0!==window.uetq&&window.uetq.push("consent","default",{...current_mconsent_fixed})}catch(error){console.error(error)}}else{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting default consent (Microsoft)"),MAP_SYS.current_mconsent={...MAP_SYS.starting_mconsent};try{current_mconsent_fixed=Object.fromEntries(Object.entries(MAP_SYS.starting_mconsent).map(([key,value])=>[key.startsWith("microsoft_")?key.slice(10):key,value]));void 0!==window.uetq&&window.uetq.push("consent","default",{...current_mconsent_fixed})}catch(error){console.error(error)}this.saveMicrosoftConsentStatusToCookie(MAP_SYS.current_mconsent)}}return!0}catch(error){console.error(error)}},updateLastConsentRecords:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"updateLastConsentRecords");let date=new Date,dateString=date.toISOString();if(MAP_SYS.last_consent_modify_date=date,MAP_Cookie.set(MAP_LAST_CONSENT_MODIFY_DATE,dateString,MAP_SYS.map_cookie_expire),!MAP_Cookie.exists(MAP_USER_UUID)){let uuid=this.generateUUID();
5uuid&&(MAP_SYS.user_uuid=uuid,MAP_Cookie.set(MAP_USER_UUID,uuid,MAP_SYS.map_cookie_expire))}return!0}catch(error){console.error(error)}},retrieveLastConsentDate:function(){try{if(MAP_Cookie.exists(MAP_LAST_CONSENT_MODIFY_DATE)){let dateStringFromCookie=MAP_Cookie.read(MAP_LAST_CONSENT_MODIFY_DATE),dateFromCookie=new Date(dateStringFromCookie);return MAP_SYS.last_consent_modify_date=dateFromCookie,dateFromCookie}return null}catch(error){console.error(error)}},retrieveLastConsentUUID:function(){try{if(MAP_Cookie.exists(MAP_USER_UUID)){let value=MAP_Cookie.read(MAP_USER_UUID);return MAP_SYS.user_uuid=value,value}return null}catch(error){console.error(error)}},generateUUID:function(){try{return window.crypto&&window.crypto.getRandomValues?([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,c=>(c^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(c){return(c^16*Math.random()>>c/4).toString(16)})}catch(error){console.error(error)}},toggleBar:function(){var that=this;try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function toggleBar");var geoDefer=MAP_SYS.geo_enabled&&!MAP_SYS.geo_resolved;geoDefer&&(MAP_SYS.geo_bar_deferred=!0,MapLogger.log("MAP-GEO","toggleBar: deferred show/hide until geo resolved (listeners still bound)"));var geoNoBlock=MAP_SYS.geo_enabled&&MAP_SYS.geo_resolved&&"noblock"===MAP_SYS.geo_eff_type;geoNoBlock&&"undefined"!=typeof navigator&&!0===navigator.globalPrivacyControl&&(geoNoBlock=!1,MapLogger.log("MAP-GEO","toggleBar: GPC active in no-block zone → banner shown for explicit choice")),geoDefer||(geoNoBlock||MAP_Cookie.exists(MAP_ACCEPTED_ALL_COOKIE_NAME)||MAP_Cookie.exists(MAP_ACCEPTED_SOMETHING_COOKIE_NAME)?that.hideBar():MAP_SYS.in_iab_context?(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));(async()=>{for(;"function"==typeof window.MAPIABTCF_brief_html_initted&&!window.MAPIABTCF_brief_html_initted();)await new Promise(resolve=>setTimeout(resolve,10));that.displayBar(),setTimeout(function(){var scroll_to_top=document.querySelector(".map_notification-message.map-iab-context");scroll_to_top&&scroll_to_top.scrollIntoView({behavior:"smooth"})},400)})()})():that.displayBar()),this.showagain_elm.querySelectorAll(".showConsent").forEach(function($this){"1"!==$this.getAttribute("data-map-sc-bound")&&($this.setAttribute("data-map-sc-bound","1"),$this.addEventListener("click",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered showConsent"),e.preventDefault(),e.stopImmediatePropagation(),that.dispatchConsentEvents("myagileprivacy_resurface");var that_animation=MAP.bar_elm.getAttribute("data-animation"),that_id_selector="#"+MAP.bar_elm.getAttribute("id"),animation_params={targets:that_id_selector,easing:"easeInOutQuad",duration:1e3};setTimeout(function(){MAP.showagain_elm.style.display="none",MAP.bar_elm.focus()},150),anime({targets:MAP.showagain_elm,easing:"easeInOutQuad",duration:150,opacity:0,complete:function(anim){MAP.showagain_elm.style.display="none",MAP.bar_elm.focus()}}),setTimeout(function(){try{switch(that_animation){case"slide":var y_value="0vh",x_value="0vw";MAP.bar_elm.classList.contains("map_floating_banner")&&(y_value="3vh",x_value="3vw");var $this=MAP.bar_elm;MAP.bar_elm.className.includes("mapPositionBottom")?($this.style.bottom="-100vh",animation_params.bottom=y_value):MAP.bar_elm.className.includes("mapPositionTop")?($this.style.top="-100vh",animation_params.top=y_value):MAP.bar_elm.className.includes("mapPositionCenterLeft")?($this.style.left="-100vw",animation_params.left=x_value):MAP.bar_elm.className.includes("mapPositionCenterCenter")?($this.style.top="-100%",animation_params.top="50%"):MAP.bar_elm.className.includes("mapPositionCenterRight")&&($this.style.right="-100vw",animation_params.right=x_value),MAP.bar_elm.style.display="block",anime(animation_params);break;case"fade":document.querySelector(that_id_selector).style.opacity="0",MAP.bar_elm.style.display="block",animation_params.opacity="1",animation_params.duration="500",anime(animation_params);break;case"zoom":document.querySelector(that_id_selector).style.transform="scale(0)",MAP.bar_elm.style.display="block",animation_params.scale="1",anime(animation_params);break;default:MAP.bar_elm.style.display="block"}that.bar_open=!0,that.bar_elm.focus(),that.optimizeMobile()}catch(error){console.error(error)}},100)}))}),that.bar_elm.addEventListener("triggerShowAgainDisplay",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered triggerShowAgainDisplay"),e.preventDefault(),e.stopImmediatePropagation();var that_animation=MAP.bar_elm.getAttribute("data-animation"),that_id_selector="#"+MAP.bar_elm.getAttribute("id"),animation_params={targets:that_id_selector,easing:"easeInOutQuad",duration:1e3};setTimeout(function(){MAP.showagain_elm.style.display="none"},150),anime({targets:MAP.showagain_elm,easing:"easeInOutQuad",duration:150,opacity:0,complete:function(anim){MAP.showagain_elm.style.display="none"}}
5),setTimeout(function(){try{switch(that_animation){case"slide":var y_value="0vh",x_value="0vw";MAP.bar_elm.classList.contains("map_floating_banner")&&(y_value="3vh",x_value="3vw");var element=document.querySelector(that_id_selector);MAP.bar_elm.className.includes("mapPositionBottom")?(element.style.bottom="-100vh",animation_params.bottom=y_value):MAP.bar_elm.className.includes("mapPositionTop")?(element.style.top="-100vh",animation_params.top=y_value):MAP.bar_elm.className.includes("mapPositionCenterLeft")?(element.style.left="-100vw",animation_params.left=x_value):MAP.bar_elm.className.includes("mapPositionCenterCenter")?(element.style.top="-100%",animation_params.top="50%"):MAP.bar_elm.className.includes("mapPositionCenterRight")&&(element.style.right="-100vw",animation_params.right=x_value),MAP.bar_elm.style.display="block",anime(animation_params);break;case"fade":document.querySelector(that_id_selector).style.opacity="0",MAP.bar_elm.style.display="block",animation_params.opacity="1",animation_params.duration="500",anime(animation_params);break;case"zoom":document.querySelector(that_id_selector).style.transform="scale(0)",MAP.bar_elm.style.display="block",animation_params.scale="1",anime(animation_params);break;default:MAP.bar_elm.style.display="block"}that.bar_open=!0,that.bar_elm.focus(),that.optimizeMobile()}catch(error){console.error(error)}},100)}),document.body.addEventListener("click",function(e){for(var targetElement=e.target,matchFound=!1,levelsToCheck=2;levelsToCheck>0&&targetElement;){if(targetElement.matches(".showConsentAgain")){matchFound=!0;break}targetElement=targetElement.parentElement,levelsToCheck--}if(matchFound){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered showConsentAgain"),e.preventDefault(),e.stopImmediatePropagation(),that.dispatchConsentEvents("myagileprivacy_resurface");var event=new CustomEvent("triggerShowAgainDisplay");that.bar_elm.dispatchEvent(event)}})}catch(error){console.error(error)}},createInlineNotify:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function createInlineNotify");var that=this;if("undefined"!=typeof CookieShield&&CookieShield){var detectedKeys=CookieShield.getDetectedKeys();Object.keys(detectedKeys).forEach(function(key){var api_key=detectedKeys[key],$custom_ref=document.querySelector(".map_custom_notify.map_api_key_"+api_key);$custom_ref&&($custom_ref.style.display="block",$custom_ref.classList.add("mapShowItem"))})}document.querySelectorAll(".map_blocked_content").forEach(function($this){var api_key=$this.getAttribute("data-cookie-api-key");document.querySelectorAll(".map_custom_notify.map_api_key_"+api_key).forEach(function(customRef){customRef&&(customRef.style.display="block",customRef.classList.add("mapShowItem"))})}),document.querySelectorAll(".iframe_src_blocked.map_show_inline_notify:not(._is_activated):not(.map_inline_notify_done)").forEach(function($this){var height=$this.offsetHeight,width=$this.offsetWidth,is_absolute=!1;try{is_absolute="absolute"===window.getComputedStyle($this).position}catch(e){}var api_key=$this.getAttribute("data-cookie-api-key"),the_friendly_name="",friendly_name=$this.getAttribute("data-friendly_name");friendly_name&&(the_friendly_name=friendly_name),$this.style.display="none",$this.classList.add("map_inline_notify_done");var html,kind=$this.classList.contains("map_video_block")?"video":$this.classList.contains("map_maps_block")?"maps":"";if("video"===kind)html="<div class='map_inline_notify map_inline_notify_video map_video_placeholder showConsentAgain' data-cookie-api-key='"+api_key+"'><span class='map_video_play' aria-hidden='true'></span><span class='map_inline_notify_text'>"+that.settings.blocked_content_text+"</span><span class='map_video_controls' aria-hidden='true'><span class='map_video_controls_play'></span><span class='map_video_controls_bar'><span class='map_video_controls_dot'></span></span><span class='map_video_controls_full'></span></span></div>";else if("maps"===kind){html="<div class='map_inline_notify map_inline_notify_maps map_maps_placeholder showConsentAgain' data-cookie-api-key='"+api_key+"'><span class='map_maps_pin' aria-hidden='true'></span><span class='map_inline_notify_text'>"+that.settings.blocked_content_text+"</span><span class='map_maps_controls' aria-hidden='true'><span class='map_maps_controls_zoom_in'></span><span class='map_maps_controls_zoom_out'></span></span></div>"}else html="<div class='map_inline_notify showConsentAgain' data-cookie-api-key='"+api_key+"'>"+that.settings.blocked_content_text+"<br>"+the_friendly_name+"</div>";var tempDiv=document.createElement("div");tempDiv.innerHTML=html;var $injected=tempDiv.firstChild;$this.parentNode.insertBefore($injected,$this.nextSibling),is_absolute?($injected.style.position="absolute",$injected.style.top="0",$injected.style.left="0",$injected.style.width="100%",$injected.style.height="100%"):($injected.style.width="100%",width>0&&($injected.style.maxWidth=width+"px"),width>0&&height>
50?$injected.style.aspectRatio=width+" / "+height:height>0&&($injected.style.height=height+"px")),that.settings.inline_notify_color&&($injected.style.color=that.settings.inline_notify_color),that.settings.inline_notify_background&&($injected.style.backgroundColor=that.settings.inline_notify_background)})}catch(error){console.error(error)}},setupIabTCF:function(){try{var $map_consent_extrawrapper=this.settingsModal.querySelector(".map-consent-extrawrapper");$map_consent_extrawrapper&&(MAP_SYS.in_iab_context=!0,MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function setupIabTCF"),this.bar_elm.querySelectorAll(".map-triggerGotoIABTCF").forEach(function($this){$this.addEventListener("click",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-triggerGotoIABTCF click"),e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof window.MAPIABTCF_ensureFullInit&&window.MAPIABTCF_ensureFullInit(),MAP.settingsModal.classList.add("map-show"),MAP.settingsModal.style.opacity=0,MAP.settingsModal.offsetWidth,MAP.settingsModal.style.transition="opacity 1s",MAP.settingsModal.style.opacity=1,MAP.settingsModal.classList.remove("map-blowup","map-out"),MAP.settingsModal.classList.add("map-blowup"),MAP.settingsModal.focus(),document.body.classList.add("map-modal-open"),document.querySelector(".map-settings-overlay").classList.add("map-show"),document.querySelector(".map-settings-mobile").offsetWidth||MAP.settingsModal.querySelector(".map-nav-link").click(),$map_consent_extrawrapper.querySelectorAll('.map-wrappertab-navigation li a[href="#map-privacy-iab-tcf-wrapper"]').forEach(function($_this){$_this.click()})})}),this.bar_elm.querySelectorAll(".map-triggerGotoIABTCFVendors").forEach(function($this){$this.addEventListener("click",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-triggerGotoIABTCFVendors click"),e.preventDefault(),e.stopImmediatePropagation(),MAP.settingsModal.classList.add("map-show"),MAP.settingsModal.style.opacity=0,MAP.settingsModal.offsetWidth,MAP.settingsModal.style.transition="opacity 1s",MAP.settingsModal.style.opacity=1,MAP.settingsModal.classList.remove("map-blowup","map-out"),MAP.settingsModal.classList.add("map-blowup"),document.body.classList.add("map-modal-open"),document.querySelector(".map-settings-overlay").classList.add("map-show");var mapSettingsMobile=document.querySelector(".map-settings-mobile");if(mapSettingsMobile&&0===mapSettingsMobile.offsetWidth&&0===mapSettingsMobile.offsetHeight){var firstNavLink=MAP.settingsModal.querySelector(".map-nav-link");firstNavLink&&firstNavLink.click()}$map_consent_extrawrapper.querySelectorAll('.map-wrappertab-navigation li a[href="#map-privacy-iab-tcf-wrapper"]').forEach(function($_this){$_this.click()});var _doVendorScroll=function(){try{var $vendor_list_button=document.querySelector("#map-iab-tcf-vendor-list");$vendor_list_button&&($vendor_list_button.click(),setTimeout(function(){var $vendor_list_scrollto=document.querySelector("#map-iab-tcf-vendor-list-scroll-here");$vendor_list_scrollto&&$vendor_list_scrollto.scrollIntoView({behavior:"smooth"})},200))}catch(error){console.error(error)}};"function"==typeof window.MAPIABTCF_ensureFullInit?window.MAPIABTCF_ensureFullInit().then(function(){setTimeout(_doVendorScroll,200)}):setTimeout(_doVendorScroll,200)})}),$map_consent_extrawrapper.querySelectorAll(".map-wrappertab-navigation li a").forEach(function($this){$this.addEventListener("click",function(e){e.preventDefault();var tabHref=$this.getAttribute("href"),lastIndex=tabHref.lastIndexOf("#");"map-privacy-iab-tcf-wrapper"==(tabHref=-1!==lastIndex?tabHref.substring(lastIndex)?.replace("#",""):"map-privacy-iab-tcf-wrapper")?(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_ensureFullInit?window.MAPIABTCF_ensureFullInit().then(function(){"function"==typeof window.MAPIABTCF_showCMPUI&&window.MAPIABTCF_showCMPUI()}):"function"==typeof window.MAPIABTCF_showCMPUI&&window.MAPIABTCF_showCMPUI()})():(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_hideCMPUI&&window.MAPIABTCF_hideCMPUI()})(),$map_consent_extrawrapper.querySelectorAll(".map-wrappertab-navigation li a").forEach(function($_this){$_this.classList.remove("active-wrappertab-nav")}),$this.classList.add("active-wrappertab-nav"),$map_consent_extrawrapper.querySelectorAll(".map-wrappertab").forEach(function($_this){$_this.classList.remove("map-wrappertab-active")});var activeTab=$map_consent_extrawrapper.querySelector(".map-wrappertab."+tabHref);activeTab&&activeTab.classList.add("map-wrappertab-active")})}),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));if("function"==typeof window.initMyAgilePrivacyIabTCF){var this_lang_code=null;"undefined"!=typeof map_lang_code&&(this_lang_code=map_lang_code),void 0!==map_full_config?.map_lang_code&&(this_lang_code=map_full_config?.map_lang_code),window.initMyAgilePrivacyIabTCF(this_lang_code)}})())}catch(error){console.error(error)}},returnVendorsList:function(){try{var standard_vendors=[],other_iab_and_google_vendors=[];for(const[key,value]of Object.entries(map_full_config?.cookie_api_key_remote_id_map_active||{})){let item={name:key,iabId:null};standard_vendors.push(item)}return"function"==typeof window.MAPIABTCF_getVendorsList&&(other_iab_and_google_vendors=window.MAPIABTCF_getVendorsList()),[...standard_vendors,...other_iab_and_google_vendors]}catch(error){console.error(error)}},updateSomeConsentGivenStatus:function(){try{let acceptedAll_status=MAP_Cookie.read(MAP_ACCEPTED_ALL_COOKIE_NAME);const atLeastSomeCModeV2ConsentGranted=Object.values(MAP_SYS?.current_gconsent).some(value=>"granted"===value);if("1"==acceptedAll_status)MAP_SYS.some_positive_consent_given=!0;else if(atLeastSomeCModeV2ConsentGranted)MAP_SYS.some_positive_consent_given=!0;else{let counter=0;Object.entries(map_full_config?.cookie_api_key_remote_id_map_active||{}
5).forEach(([key,value])=>{"1"==MAP_Cookie.read(value)&&counter++}),"function"==typeof window.MAPIABTCF_getSomePositiveConsentStatus&&window.MAPIABTCF_getSomePositiveConsentStatus()&&counter++,MAP_SYS.some_positive_consent_given=0!=counter}}catch(error){console.error(error)}},attachEvents:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function attachEvents");var that=this;that.settingsModal.addEventListener("click",function(e){if(e.target.matches(".map-slider")){let mapForClass=[...e.target.classList].find(cls=>cls.startsWith("map-for-"));if(!mapForClass)return;let for_attribute=mapForClass.replace("map-for-","");if(!for_attribute)return;const final_target=document.getElementById(for_attribute);final_target&&(final_target.value="1"===final_target.value?"0":"1",MAP.mapSyncSlider(final_target),final_target.dispatchEvent(new CustomEvent("map:toggle",{bubbles:!0})))}}),that.accept_button.addEventListener("click",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-accept-button click"),e.preventDefault(),e.stopImmediatePropagation();that.updateLastConsentRecords(),that.dispatchConsentEvents("myagileprivacy_cookie_accept"),that.settingsModal.querySelectorAll(".map-consent-mode-preference-checkbox").forEach(function(elem){elem.value="1",MAP.mapSyncSlider(elem);var consent_key=elem.getAttribute("data-consent-key");elem.classList.contains("map-consent-clarity")&&that.updateClarityConsent(consent_key,"granted",!0),elem.classList.contains("map-consent-microsoft")&&that.updateMicrosoftConsent(consent_key,"granted",!0),elem.classList.contains("map-consent-google")&&that.updateGoogleConsentbyKeyValue(consent_key,"granted",!0)}),that.settingsModal.querySelectorAll(".map-user-preference-checkbox").forEach(function(elem){var cookieName="map_cookie_"+elem.getAttribute("data-cookie-baseindex")+MAP_POSTFIX;MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting 1 to cookieName="+cookieName),MAP_Cookie.set(cookieName,"1",MAP_SYS.map_cookie_expire),elem.value="1",MAP.mapSyncSlider(elem)}),that.settingsModal.querySelectorAll(".map-user-iab-preference-checkbox").forEach(function(elem){elem.value="1",MAP.mapSyncSlider(elem)}),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_acceptAllConsent&&(window.MAPIABTCF_doSetUserInteraction(),window.MAPIABTCF_acceptAllConsent(!0),that.updateSomeConsentGivenStatus())})(),MAP.accept_close()}),that.reject_button.forEach(function(button){button.addEventListener("click",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-reject-button click"),e.preventDefault(),e.stopImmediatePropagation();that.updateLastConsentRecords(),that.dispatchConsentEvents("myagileprivacy_cookie_reject"),that.settingsModal.querySelectorAll(".map-consent-mode-preference-checkbox").forEach(function(elem){elem.value="0",MAP.mapSyncSlider(elem);var consent_key=elem.getAttribute("data-consent-key");elem.classList.contains("map-consent-clarity")&&that.updateClarityConsent(consent_key,"denied",!0),elem.classList.contains("map-consent-microsoft")&&that.updateMicrosoftConsent(consent_key,"denied",!0),elem.classList.contains("map-consent-google")&&that.updateGoogleConsentbyKeyValue(consent_key,"denied",!0)}),that.settingsModal.querySelectorAll(".map-user-preference-checkbox").forEach(function(elem){var cookieName="map_cookie_"+elem.getAttribute("data-cookie-baseindex")+MAP_POSTFIX;MAP_Cookie.set(cookieName,"-1",MAP_SYS.map_cookie_expire),elem.value="0",MAP.mapSyncSlider(elem)}),that.settingsModal.querySelectorAll(".map-user-iab-preference-checkbox").forEach(function(elem){elem.value="0",MAP.mapSyncSlider(elem)}),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_denyAllConsent&&(window.MAPIABTCF_doSetUserInteraction(),window.MAPIABTCF_denyAllConsent(!0),that.updateSomeConsentGivenStatus())})(),MAP.reject_close()})}),that.customize_button.addEventListener("click",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-customize-button click"),e.preventDefault(),e.stopImmediatePropagation(),MAP.settingsModal.classList.add("map-show"),MAP.settingsModal.style.opacity=0,MAP.settingsModal.offsetWidth,MAP.settingsModal.style.transition="opacity 1s",MAP.settingsModal.style.opacity=1,MAP.settingsModal.classList.remove("map-blowup","map-out"),MAP.settingsModal.classList.add("map-blowup"),document.body.classList.add("map-modal-open"),document.querySelector(".map-settings-overlay").classList.add("map-show");var mapSettingsMobile=document.querySelector(".map-settings-mobile");if(mapSettingsMobile&&0===mapSettingsMobile.offsetWidth&&0===mapSettingsMobile.offsetHeight){var firstNavLink=MAP.settingsModal.querySelector(".map-nav-link");firstNavLink&&firstNavLink.click()}var $map_consent_extrawrapper=that.settingsModal.querySelectorAll(".map-consent-extrawrapper");if($map_consent_extrawrapper&&$map_consent_extrawrapper?.length){var triggerElement=$map_consent_extrawrapper[0].querySelector('.map-wrappertab-navigation li a[href="#map-privacy-cookie-thirdypart-wrapper"]');triggerElement&&triggerElement.click()}that.dispatchConsentEvents("myagileprivacy_cookie_customize")}),document.querySelector("#mapModalClose").addEventListener("click",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered mapModalClose click"),e.preventDefault(),e.stopImmediatePropagation(),MAP.closeSettingsPopup(),MAP.hideBar()}),that.setupAccordion(),"undefined"!=typeof map_ajax&&void 0!==map_ajax.cookie_process_delayed_mode&&1===map_ajax.cookie_process_delayed_mode?(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));that.userPreferenceInit(!1)})():that.userPreferenceInit(!1)}catch(error){console.error(error)}},usabilityEvents:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function usabilityEvents");document.querySelectorAll('input[type="hidden"][id]').forEach(function(checkbox){var id=checkbox.id;id&&document.querySelectorAll(`div[data-label-for="${id}"]`).forEach(function(label){label.setAttribute("aria-checked","1"===checkbox.value?"true":"false")})}),this.settingsModal.addEventListener("map:toggle",function(e){if(e.target.matches('input[type="hidden"][id]')){var id=e.target.id;if(!id)return;document.querySelectorAll(`div[data-label-for="${id}"]`).forEach(function(label){label.setAttribute("aria-checked","1"===e.target.value?"true":"false")})}});[this.accept_button,this.reject_button,this.customize_button,this.show_consent_elems,document.querySelectorAll(".map-triggerGotoIABTCF")].forEac
5h(item=>{item&&("function"==typeof item.forEach?item.forEach(el=>{el.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.click())})}):item.addEventListener&&item.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.click())}))}),this.settingsModal.addEventListener("keydown",function(e){if((e.target.matches(".map_expandItem")||e.target.matches(".map-tab-navigation")||e.target.matches(".map-privacy-iab-button"))&&(" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),e.target.click())),e.target.matches('[role="checkbox"]')&&(" "===e.key||"Spacebar"===e.key||"Enter"===e.key)){e.preventDefault();let mapForClass=[...e.target.classList].find(cls=>cls.startsWith("map-for-"));if(!mapForClass)return;let for_attribute=mapForClass.replace("map-for-","");if(!for_attribute)return;const final_target=document.getElementById(for_attribute);final_target&&(final_target.value="1"===final_target.value?"0":"1",MAP.mapSyncSlider(final_target),final_target.dispatchEvent(new CustomEvent("map:toggle",{bubbles:!0})))}})}catch(error){console.error(error)}},attachAnimations:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function attachAnimations");if("true"==this.bar_elm.querySelector("#map-accept-button").getAttribute("data-animate"))var acceptButton=document.querySelector("#map-accept-button"),animation=acceptButton.getAttribute("data-animation-effect"),delay=1e3*parseInt(acceptButton.getAttribute("data-animation-delay"),10),repeat=parseInt(acceptButton.getAttribute("data-animation-repeat"),10),all_animation_classes=["animate__animated",animation],iteration_counter=0,animInterval=setInterval(function(){iteration_counter==repeat?clearInterval(animInterval):(acceptButton.classList.add(...all_animation_classes),setTimeout(function(){acceptButton.classList.remove(...all_animation_classes),iteration_counter++},900))},delay)}catch(error){console.error(error)}},checkBlockedContent:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function checkBlockedContent");var that=this,$map_blocked_content=document.querySelectorAll(".map_blocked_content:not(._is_activated)");if($map_blocked_content&&$map_blocked_content?.length){var blocked_friendly_name=[];if($map_blocked_content.forEach(function($this){var this_friendly_name=$this.getAttribute("data-friendly_name");this_friendly_name&&blocked_friendly_name.push(this_friendly_name)}),"undefined"!=typeof CookieShield&&CookieShield&&void 0!==CookieShield.getDetectedFriendlyNames)CookieShield.getDetectedFriendlyNames().forEach(function(v){v&&(v?.desc?blocked_friendly_name.push(v.desc):blocked_friendly_name.push(v))});var blocked_friendly_name_unique=blocked_friendly_name.filter((v,i,a)=>a.indexOf(v)===i);if(that.blocked_friendly_name_string=blocked_friendly_name_unique.join(", "),blocked_friendly_name_unique.length&&(!that.bar_open||that.settings.show_ntf_bar_on_not_yet_consent_choice)&&that.blocked_content_notification&&that.blocked_content_notification){that.blocked_friendly_name_string?that.map_blocked_elems_desc.innerHTML=that.blocked_friendly_name_string:(that.map_blocked_elems_desc.style.opacity=0,that.map_blocked_elems_desc.style.display="block",anime({targets:that.map_blocked_elems_desc,easing:"easeInOutQuad",duration:150,opacity:1,complete:function(anim){}})),that.blocked_content_notification_shown=!0;var blocked_content_notify_auto_shutdown_time=3e3;that.settings.blocked_content_notify_auto_shutdown_time&&(blocked_content_notify_auto_shutdown_time=that.settings.blocked_content_notify_auto_shutdown_time),setTimeout(function(){try{that.blocked_content_notification.style.opacity=0,that.blocked_content_notification.style.display="block",anime({targets:that.blocked_content_notification,easing:"easeInOutQuad",duration:150,opacity:1,complete:function(anim){}}),that.blocked_content_notification.classList.contains("autoShutDown")&&setTimeout(function(){setTimeout(function(){that.blocked_content_notification.style.display="none"},150),anime({targets:that.blocked_content_notification,easing:"easeInOutQuad",duration:150,opacity:0,complete:function(anim){that.blocked_content_notification.style.display="none"}})},blocked_content_notify_auto_shutdown_time)}catch(error){console.error(error)}},1e3)}}else that.blocked_content_notification&&(setTimeout(function(){that.blocked_content_notification.style.display="none"},150),anime({targets:that.blocked_content_notification,easing:"easeInOutQuad",duration:150,opacity:0,complete:function(anim){that.blocked_content_notification.style.display="none"}}));this.administratorNotices()}catch(error){console.error(error)}},displayBar:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function displayBar");var that=this,that_animation=that.bar_elm.getAttribute("data-animation"),that_id_selector="#"+that.bar_elm.getAttribute("id"),animation_params={targets:that_id_selector,easing:"easeInOutQuad",duration:1e3},y_value="0vh",x_value="0vw";that.bar_elm.classList.contains("map_floating_banner")&&(y_value="3vh",x_value="3vw");var element=document.querySelector(that_id_selector);switch(that_animation){case"slide":element.className.includes("mapPositionBottom")?(element.style.bottom="-100vh",animation_params.bottom=y_value):element.className.includes("mapPositionTop")?(element.style.top="-100vh",animation_params.top=y_value):element.className.includes("mapPositionCenterLeft")?(element.style.left="-100vw",animation_params.left=x_value):element.className.includes("mapPositionCenterCenter")?(element.style.top="-100%",animation_params.top="50%"):element.className.includes("mapPositionCenterRight")&&(element.style.right="-100vw",animation_params.right=x_value),element.style.display="block",anime(animation_params);break;case"fade":element.style.opacity="0",element.style.display="block",animation_params.opacity="1",animation_params.duration="500",anime(animation_params);break;case"zoom":element.style.transform="scale(0)",element.style.display="block",animation_params.scale="1",anime(animation_params);break;default:element.style.display="block"}setTimeout(function(){that.showagain_elm.style.display="none"},150),anime({targets:that.showagain_elm,easing:"easeInOutQuad",duration:150,opacity:0,complete:function(anim){that.showagain_elm.style.display="none"}}),that.bar_open=!0,that.bar_elm.focus(),that.optimizeMobile()}catch(error){console.error(error)}},hideBar:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function hideBar");var that=this,this_showagain_tab=Boolean(this.settings.showagain_tab);this_showagain_tab||document.querySelector(".showConsentAgain:not(.map_custom_notify):not(.map_inline_notify)")||(this_showagain_tab=!0),this_showagain_tab?(that.showagain_elm.style.opacity=0,that.showagain_elm.style.display="block",anime({targets:this.showagain_elm,easing:"easeInOutQuad",duration:150,opacity:1,complete:function(anim){}})):(setTimeout(function(){that.showagain_elm.style.display="none"},150),anime({targets:this.showagain_elm,easing:"easeInOutQuad",duration:150,opacity:0,complete:function(anim){that.showagain_elm.style.display="none"}}));var that_animation=this.bar_elm.getAttribute("data-animation"),that_id_selector="#"+this.bar_elm.getAttribute("id");setTimeout(function(){MAP.bar_elm.style.display="none"},150);var animation_params={targets:that_id_selector,easing:"easeInOutQuad",duration:700,complete:function(anim){MAP.bar_elm.style.display="none"}};switch(that_animation){case"slide":this.bar_elm.className.includes("mapPositionBottom")?animation_params.bottom="-100vh":this.bar_elm.className.includes("mapPositionTop")?animation_params.top="-100vh":this.bar_elm.className.includes("mapPositionCenterLeft")?animation_params.left="-100vw":this.bar_elm.className.includes("mapPositionCenterCenter")?animation_params.top="-100%":this.bar_elm.className.includes("mapPositionCenterRight")&&(animation_params.right="-100vw"),anime(animation_params);break;case"fade":animation_params.opacity="0",animation_params.duration="500",anime(animation_params);break;case"zoom":animation_params.scale="0",anime(animation_params);break;default:this.bar_elm.style.display="none"}this.bar_open=!1,(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_hideCMPUI&&window.MAPIABTCF_hideCMPUI()})()}catch(error){console.error(error)}},optimizeMobile:function(){var that=this,_optimize=function(relaunch){try{if(that.bar_open){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"optimizing for mobile view");
5var viewport_width=window.visualViewport?window.visualViewport.width:window.innerWidth,viewport_height=window.visualViewport?window.visualViewport.height:window.innerHeight;if(viewport_width<=450){var internal_height=Math.floor(.3*viewport_height);MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"map mobile optimizing: viewport_width="+viewport_width+", viewport_height="+viewport_height+", internal_height="+internal_height),that.map_notification_message.classList.add("extraNarrow"),that.map_notification_message.style.maxHeight=internal_height+"px",that.map_notification_message.scrollTop=0,that.map_notification_message.classList.contains("map-iab-context")||that.map_notification_message.classList.remove("map_flex")}else that.map_notification_message.classList.remove("extraNarrow"),that.map_notification_message.classList.contains("map-iab-context")||that.map_notification_message.classList.add("map_flex"),that.map_notification_message.style.maxHeight=""}that.setOverflowMaxHeight(),document.querySelectorAll(".map-modal-body img").forEach(function(img){img.style.width="unset!important",img.style.height="unset!important"}),relaunch&&setTimeout(function(){_optimize(!1)},500)}catch(error){console.error(error)}};setTimeout(function(){_optimize(!0)},1)},accept_close:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function accept_close"),MAP_Cookie.set(MAP_ACCEPTED_ALL_COOKIE_NAME,"1",MAP_SYS.map_cookie_expire),"function"==typeof window.CookieShield?.resetAcceptedAllCache&&window.CookieShield.resetAcceptedAllCache(),this.updateSomeConsentGivenStatus();var that_animation=this.bar_elm.getAttribute("data-animation"),animation_params={targets:"#"+this.bar_elm.getAttribute("id"),easing:"easeInOutQuad",duration:700,complete:function(anim){MAP.bar_elm.style.display="none"}};switch(that_animation){case"slide":this.bar_elm.className.includes("mapPositionBottom")?animation_params.bottom="-100vh":this.bar_elm.className.includes("mapPositionTop")?animation_params.top="-100vh":this.bar_elm.className.includes("mapPositionCenterLeft")?animation_params.left="-100vw":this.bar_elm.className.includes("mapPositionCenterCenter")?animation_params.top="-100%":this.bar_elm.className.includes("mapPositionCenterRight")&&(animation_params.right="-100vw"),anime(animation_params);break;case"fade":animation_params.opacity="0",animation_params.duration="500",anime(animation_params);break;case"zoom":animation_params.scale="0",anime(animation_params);break;default:this.bar_elm.style.display="none"}var this_showagain_tab=Boolean(this.settings.showagain_tab);return this_showagain_tab||document.querySelector(".showConsentAgain:not(.map_custom_notify):not(.map_inline_notify)")||(this_showagain_tab=!0),this_showagain_tab&&(this.showagain_elm.style.opacity=0,this.showagain_elm.style.display="block",anime({targets:this.showagain_elm,easing:"easeInOutQuad",duration:150,opacity:1,complete:function(anim){}})),this.tryToUnblockScripts(!0,null),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_hideCMPUI&&window.MAPIABTCF_hideCMPUI()})(),!1}catch(error){console.error(error)}},reject_close:function(){var that=this;try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function reject_close"),MAP_Cookie.set(MAP_ACCEPTED_ALL_COOKIE_NAME,"-1",MAP_SYS.map_cookie_expire),MAP_Cookie.set(MAP_ACCEPTED_SOMETHING_COOKIE_NAME,"-1",MAP_SYS.map_cookie_expire),"function"==typeof window.CookieShield?.resetAcceptedAllCache&&window.CookieShield.resetAcceptedAllCache(),that.updateSomeConsentGivenStatus();var that_animation=that.bar_elm.getAttribute("data-animation"),animation_params={targets:"#"+that.bar_elm.getAttribute("id"),easing:"easeInOutQuad",duration:700,complete:function(anim){MAP.bar_elm.style.display="none"}};switch(that_animation){case"slide":that.bar_elm.className.includes("mapPositionBottom")?animation_params.bottom="-100vh":that.bar_elm.className.includes("mapPositionTop")?animation_params.top="-100vh":that.bar_elm.className.includes("mapPositionCenterLeft")?animation_params.left="-100vw":that.bar_elm.className.includes("mapPositionCenterRight")&&(animation_params.right="-100vw"),anime(animation_params);break;case"fade":animation_params.opacity="0",animation_params.duration="500",anime(animation_params);break;case"zoom":animation_params.scale="0",anime(animation_params);break;default:that.bar_elm.style.display="none"}that.bar_open=!1;var this_showagain_tab=Boolean(that.settings.showagain_tab);return this_showagain_tab||document.querySelector(".showConsentAgain:not(.map_custom_notify):not(.map_inline_notify)")||(this_showagain_tab=!0),this_showagain_tab&&(that.showagain_elm.style.opacity=0,that.showagain_elm.style.display="block",anime({targets:that.showagain_elm,easing:"easeInOutQuad",duration:150,opacity:1,complete:function(anim){}})),that.tryToUnblockScripts(!0,null),setTimeout(function(){that.checkBlockedContent()},200),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_hideCMPUI&&window.MAPIABTCF_hideCMPUI()})(),!1}catch(error){console.error(error)}},tryToUnblockScripts:function(from_user_interaction=!1,cookieNameReference=null){try{let need_reload=!1,do_calc_need_reload=!1;from_user_interaction&&(do_calc_need_reload=!0),MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+`tryToUnblockScripts from_user_interaction=${from_user_interaction}`);var that=this,once_functions_to_execute=[];
5that.settingsModal.querySelectorAll(".map_cookie_description_wrapper").forEach(function($this){var baseIndex=$this.getAttribute("data-cookie-baseindex"),cookieName="map_cookie_"+baseIndex+MAP_POSTFIX,api_key=$this.getAttribute("data-cookie-api-key"),cookieValue=MAP_Cookie.read(cookieName);$this.classList&&do_calc_need_reload&&$this.classList.contains("map_page_reload_on_user_consent")&&cookieName==cookieNameReference&&"1"==MAP_Cookie.read(cookieName)&&(need_reload=!0),MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"debug "+api_key+" "+cookieName+" "+cookieValue);var always_on=!1,activate_anyway=!1;$this.classList.contains("_always_on")&&(always_on=!0),"google_analytics"==api_key&&"undefined"!=typeof map_full_config&&void 0!==map_full_config.cookie_api_key_not_to_block&&map_full_config?.cookie_api_key_not_to_block?.includes("google_analytics")&&(activate_anyway=!0);var accepted_all=!1;if(MAP_Cookie.exists(MAP_ACCEPTED_ALL_COOKIE_NAME)&&"1"==MAP_Cookie.read(MAP_ACCEPTED_ALL_COOKIE_NAME)&&(accepted_all=!0),"1"==cookieValue||always_on||activate_anyway||accepted_all){if(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"--\x3eactivating api_key="+api_key+" cookieName="+cookieName+" cookieValue="+cookieValue+" always_on="+always_on+" accepted_all="+accepted_all),activate_anyway?$this.classList.add("_is_activated_anyway"):$this.classList.add("_is_activated"),$this.classList.contains("_with_code")){var $the_script=document.querySelector('script.my_agile_privacy_activate._js_noscript_type_mode[data-cookie-baseindex="'+baseIndex+'"]'),$the_raw_script=document.querySelector('textarea.my_agile_privacy_activate._raw_type_mode[data-cookie-baseindex="'+baseIndex+'"]');if($the_script&&!$the_script.classList.contains("_is_activated")){$the_script.classList.add("_is_activated");var script=document.createElement("script");script.className="_is_activated",script.innerHTML=$the_script.innerHTML,MAP_SYS?.map_debug&&MapLogger.debug(script.innerHTML),document.head.appendChild(script)}if($the_raw_script&&!$the_raw_script.classList.contains("_is_activated")){$the_raw_script.classList.add("_is_activated");var the_raw_script=$the_raw_script.value;MAP_SYS?.map_debug&&MapLogger.debug(the_raw_script);var range=document.createRange();range.selectNode(document.getElementsByTagName("body")[0]);var documentFragment=range.createContextualFragment(the_raw_script);document.body.appendChild(documentFragment)}}if(api_key){document.querySelectorAll(".map_custom_notify.map_api_key_"+api_key).forEach(function($_this){if($_this){var on_unblock_remove_class=$_this.getAttribute("data-on-unblock-remove-class");if(on_unblock_remove_class)document.querySelectorAll('.my_agile_privacy_activate[data-cookie-api-key="'+api_key+'"]').forEach($thisent=>$thisent.classList.remove(on_unblock_remove_class));$_this.remove()}});var $map_src_script_blocked=document.querySelectorAll('script.my_agile_privacy_activate.autoscan_mode.map_src_script_blocked[data-cookie-api-key="'+api_key+'"]'),$map_inline_script_blocked=document.querySelectorAll('script.my_agile_privacy_activate.autoscan_mode.map_inline_script_blocked[data-cookie-api-key="'+api_key+'"]'),$iframe_src_blocked=document.querySelectorAll('iframe.my_agile_privacy_activate.autoscan_mode.iframe_src_blocked[data-cookie-api-key="'+api_key+'"]'),$css_href_blocked=document.querySelectorAll('link.my_agile_privacy_activate.autoscan_mode.css_href_blocked[data-cookie-api-key="'+api_key+'"]'),$img_src_blocked=document.querySelectorAll('img.my_agile_privacy_activate.autoscan_mode.img_src_blocked[data-cookie-api-key="'+api_key+'"]'),do_trigger_dom_content_loaded_event=!1;if($map_src_script_blocked&&$map_src_script_blocked?.length&&$map_src_script_blocked.forEach(function($_this){let old_script_type=$_this.getAttribute("type"),new_script_type="text/javascript";if(void 0!==old_script_type&&old_script_type&&"module"==old_script_type&&(new_script_type="module"),!$_this.classList.contains("_is_activated")){if($_this.classList.add("_is_activated"),$_this.classList.contains("custom_patch_apply"))$_this.className.split(" ").forEach(function(v){v&&""!=v&&v.startsWith("map_trigger_custom_patch_")&&"function"==typeof window[v]&&setTimeout(function(){window[v]()},4e3)});if($_this.classList.contains("once_custom_patch_apply"))$_this.className.split(" ").forEach(function(v){v&&""!=v&&v.startsWith("map_trigger_custom_patch_")&&"function"==typeof window[v]&&(once_functions_to_execute.includes(v)||once_functions_to_execute.push(v))});if($_this.classList.contains("mapWait"))do_trigger_dom_content_loaded_event=!0,setTimeout(function(){var script="function"==typeof document.createElementBackup?document.createElementBackup("script"):document.createElement("script");script.className="_is_activated",script.setAttribute("type",new_script_type),script=cloneNodeAttributeToAnother($_this,script);var blocked_src=$_this.getAttribute("unblocked_src");blocked_src&&(script.src=blocked_src),$_this.insertAdjacentElement("afterend",script),$_this.classList.add("_is_activated")},1e3);else{var script="function"==typeof document.createElementBackup?document.createElementBackup("script"):document.createElement("script");script.className="_is_activated",script.setAttribute("type",new_script_type),script=cloneNodeAttributeToAnother($_this,script);var blocked_src=$_this.getAttribute("unblocked_src");blocked_src&&(script.src=blocked_src),$_this.insertAdjacentElement("afterend",script)}}}),$map_inline_script_blocked&&$map_inline_script_blocked?.length&&$map_inline_script_blocked.forEach(function($_this){if(!$_this.classList.contains("_is_activated")){if($_this.classList.add("_is_activated"),$_this.classList.contains("custom_patch_apply"))$_this.className.split(" ").forEach(function(v){v&&""!=v&&v.startsWith("map_trigger_custom_patch_")&&"function"==typeof window[v]&&setTimeout(function(){window[v]()},2200)});if($_this.classList.contains("once_custom_patch_apply"))$_this.className.split(" ").forEach(function(v){v&&""!=v&&v.startsWith("map_trigger_custom_patch_")&&"function"==typeof window[v]&&(once_functions_to_execute.includes(v)||once_functions_to_execute.push(v))});if($_this.classList.contains("mapWait"))do_trigger_dom_content_loaded_event=!0,setTimeout(function(){var script=document.createElement("script");script.className="_is_activated",script.innerHTML=$_this.innerHTML,MAP_SYS?.map_debug&&MapLogger.debug(script.innerHTML),document.head.appendChild(script),$_this.classList.add("_is_activated")},1e3);else{var script=document.createElement("script");script.className="_is_activated",script.innerHTML=$_this.innerHTML,MAP_SYS?.map_debug&&MapLogger.debug(script.innerHTML),document.head.appendChild(script)}}}),$iframe_src_blocked&&$iframe_src_blocked?.length&&$iframe_src_blocked.forEach(function($_this){if(!$_this.classList.contains("_is_activated")){$_this.classList.add("_is_activated"),$_this.setAttribute("src",$_this.getAttribute("unblocked_src")),$_this.style.display="block";var $ref=document.querySelectorAll('.map_inline_notify[data-cookie-api-key="'+api_key+'"]');$ref&&$ref?.length&&$ref.forEach(function($_ref){$_ref.remove()})}}),$css_href_blocked&&$css_href_blocked?.length&&$css_href_blocked.forEach(function($_this){$_this.classList.contains("_is_activated")||($_this.classList.add("_is_activated"),$_this.setAttribute("href",$_this.getAttribute("unblocked_href")))}),$img_src_blocked&&$img_src_blocked?.length&&$img_src_blocked.forEach(function($_this){$_this.classList.contains("_is_activated")||($_this.classList.add("_is_activated"),$_this.setAttribute("src",$_this.getAttribute("unblocked_src")))}),do_trigger_dom_content_loaded_event){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggering do_trigger_dom_content_loaded_event");var count=0,timerId=setInterval(function(){document.dispatchEvent(new Event("DOMContentLoaded")),++count>=3&&clearInterval(timerId)},1100)}}}else $this.classList.remove("_is_activated")}),need_reload&&window.location.reload(),once_functions_to_execute.forEach(function(v){setTimeout(function(){window[v]()},1e3)}),setTimeout(function(){that.checkBlockedContent()},500),setTimeout(function(){var event=new Event("MAP_PRIVACY_CHANGE");document.body.dispatchEvent(event)},100)}catch(error){console.error(error)}},userPreferenceInit:function(only_init_status=!1){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"userPreferenceInit only_init_status="+only_init_status);var that=this;
5that.settingsModal.querySelectorAll(".map-user-preference-checkbox").forEach(function($this){var cookieName="map_cookie_"+$this.getAttribute("data-cookie-baseindex")+MAP_POSTFIX,cookieValue=MAP_Cookie.read(cookieName);null==cookieValue?"1"===$this.value?(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting 1 to cookieName="+cookieName),MAP_Cookie.set(cookieName,"1",MAP_SYS.map_cookie_expire)):(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting -1 to cookieName"+cookieName),MAP_Cookie.set(cookieName,"-1",MAP_SYS.map_cookie_expire)):"1"==cookieValue?(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting checked for cookieName"+cookieName),$this.value="1",MAP.mapSyncSlider($this)):(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting unchecked for cookieName"+cookieName),$this.value="0",MAP.mapSyncSlider($this))}),0==only_init_status&&that.settingsModal.querySelectorAll(".map-user-preference-checkbox").forEach(function($this){$this.addEventListener("map:toggle",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-user-preference-checkbox map:toggle"),e.stopImmediatePropagation(),that.updateLastConsentRecords();var cookieName="map_cookie_"+$this.getAttribute("data-cookie-baseindex")+MAP_POSTFIX,currentToggleElm=that.settingsModal.querySelectorAll('.map-user-preference-checkbox[data-cookie-baseindex="'+$this.getAttribute("data-cookie-baseindex")+'"]');"1"===$this.value?(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting 1 to cookieName="+cookieName),MAP_Cookie.set(cookieName,"1",MAP_SYS.map_cookie_expire),currentToggleElm.forEach(function(elm){elm.value="1",MAP.mapSyncSlider(elm)}),that.dispatchConsentEvents("myagileprivacy_single_cookie_accept")):(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"setting -1 to cookieName"+cookieName),MAP_Cookie.set(cookieName,"-1",MAP_SYS.map_cookie_expire),currentToggleElm.forEach(function(elm){elm.value="0",MAP.mapSyncSlider(elm)}),that.dispatchConsentEvents("myagileprivacy_single_cookie_reject")),MAP_Cookie.set(MAP_ACCEPTED_SOMETHING_COOKIE_NAME,"1",MAP_SYS.map_cookie_expire),MAP_Cookie.set(MAP_ACCEPTED_ALL_COOKIE_NAME,"-1",MAP_SYS.map_cookie_expire),"function"==typeof window.CookieShield?.resetAcceptedAllCache&&window.CookieShield.resetAcceptedAllCache(),that.updateSomeConsentGivenStatus(),that.tryToUnblockScripts(!0,cookieName)})}),that.settingsModal.querySelectorAll(".map-consent-mode-preference-checkbox").forEach(function(elem){var consent_key=elem.getAttribute("data-consent-key"),consentStatus=null;let consentVendor="";elem.classList.contains("map-consent-clarity")&&(consentStatus=that.getClarityConsentStatus(consent_key),consentVendor="(Clarity)"),elem.classList.contains("map-consent-microsoft")&&(consentStatus=that.getMicrosoftConsentStatus(consent_key),consentVendor="(Microsoft)"),elem.classList.contains("map-consent-google")&&(consentStatus=that.getGoogleConsentStatus(consent_key),consentVendor="(Google)"),"granted"===consentStatus?(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+`setting checked for consent_key=${consent_key} ${consentVendor}`),elem.value="1",MAP.mapSyncSlider(elem)):"denied"===consentStatus&&(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+`setting unchecked for consent_key=${consent_key} ${consentVendor}`),elem.value="0",MAP.mapSyncSlider(elem))}),0==only_init_status&&that.settingsModal.querySelectorAll(".map-consent-mode-preference-checkbox").forEach(function(elem){elem.addEventListener("map:toggle",function(e){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-consent-mode-preference-checkbox map:toggle"),e.stopImmediatePropagation();var consent_key=elem.getAttribute("data-consent-key"),currentToggleElm=that.settingsModal.querySelectorAll('.map-consent-mode-preference-checkbox[data-consent-key="'+consent_key+'"]');if("1"===elem.value){let consentVendor="";elem.classList.contains("map-consent-clarity")&&(consentVendor="(Clarity)",that.updateClarityConsent(consent_key,"granted",!0)),elem.classList.contains("map-consent-microsoft")&&(consentVendor="(Microsoft)",that.updateMicrosoftConsent(consent_key,"granted",!0)),elem.classList.contains("map-consent-google")&&(consentVendor="(Google)",that.updateGoogleConsentbyKeyValue(consent_key,"granted",!0)),MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+`setting granted to consent_key=${consent_key} ${consentVendor}`),currentToggleElm.forEach(function(elm){elm.value="1",MAP.mapSyncSlider(elm)})}else{let consentVendor="";elem.classList.contains("map-consent-clarity")&&(consentVendor="(Clarity)",that.updateClarityConsent(consent_key,"denied",!0)),elem.classList.contains("map-consent-microsoft")&&(consentVendor="(Microsoft)",that.updateMicrosoftConsent(consent_key,"denied",!0)),elem.classList.contains("map-consent-google")&&(consentVendor="(Google)",that.updateGoogleConsentbyKeyValue(consent_key,"denied",!0)),MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+`setting denied to consent_key=${consent_key} ${consentVendor}`),currentToggleElm.forEach(function(elm){elm.value="0",MAP.mapSyncSlider(elm)})}MAP_Cookie.set(MAP_ACCEPTED_SOMETHING_COOKIE_NAME,"1",MAP_SYS.map_cookie_expire),MAP_Cookie.set(MAP_ACCEPTED_ALL_COOKIE_NAME,"-1",MAP_SYS.map_cookie_expire),"function"==typeof window.CookieShield?.resetAcceptedAllCache&&window.CookieShield.resetAcceptedAllCache(),that.updateSomeConsentGivenStatus()})}),0==only_init_status&&(that.settingsModal.addEventListener("map:toggle",function(e){var $this=e.target;
5if($this.matches(".map-user-iab-preference-checkbox")){MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-user-iab-preference-checkbox map:toggle"),e.stopImmediatePropagation(),that.updateLastConsentRecords();var iab_category=$this.getAttribute("data-iab-category"),iab_key=$this.getAttribute("data-iab-key");"1"===$this.value?(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+`setting 1 to iab_category=${iab_category} , iab_key=${iab_key}`),that.dispatchConsentEvents("myagileprivacy_iab_item_accept"),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));if("function"==typeof window.MAPIABTCF_updateConsent){let updateHtml=!1;"googleVendors"===iab_category&&(updateHtml=!0),window.MAPIABTCF_doSetUserInteraction(),window.MAPIABTCF_updateConsent(iab_category,parseInt(iab_key,10),!0,!0,updateHtml),that.updateSomeConsentGivenStatus()}})()):(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+`setting 0 to iab_category=${iab_category} , iab_key=${iab_key}`),that.dispatchConsentEvents("myagileprivacy_iab_item_reject"),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));if("function"==typeof window.MAPIABTCF_updateConsent){let updateHtml=!1;"googleVendors"===iab_category&&(updateHtml=!0),window.MAPIABTCF_doSetUserInteraction(),window.MAPIABTCF_updateConsent(iab_category,parseInt(iab_key,10),!1,!0,updateHtml),that.updateSomeConsentGivenStatus()}})())}}),that.settingsModal.addEventListener("click",function(e){e.target.matches(".map-privacy-iab-tcf-accept-all-button")&&(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-privacy-iab-tcf-accept-all-button click"),e.preventDefault(),e.stopImmediatePropagation(),that.updateLastConsentRecords(),that.settingsModal.querySelectorAll(".map-user-iab-preference-checkbox ").forEach(function($_this){$_this.value="1",MAP.mapSyncSlider($_this)}),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_acceptAllConsent&&(window.MAPIABTCF_doSetUserInteraction(),window.MAPIABTCF_acceptAllConsent(!0),that.updateSomeConsentGivenStatus())})())}),that.settingsModal.addEventListener("click",function(e){e.target.matches(".map-privacy-iab-tcf-deny-all-button")&&(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map-privacy-iab-tcf-deny-all-button"),e.preventDefault(),e.stopImmediatePropagation(),that.updateLastConsentRecords(),that.settingsModal.querySelectorAll(".map-user-iab-preference-checkbox").forEach(function($elem){$elem.value="0",MAP.mapSyncSlider($elem)}),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_denyAllConsent&&(window.MAPIABTCF_doSetUserInteraction(),window.MAPIABTCF_denyAllConsent(!0),that.updateSomeConsentGivenStatus())})())})),0==only_init_status&&that.tryToUnblockScripts(!1,null)}catch(error){console.error(error)}},notice_i18n:{en:{prefix:"[MyAgilePrivacy admin-only notification]",close:"Close",detected:"The Cookie Shield has detected the following cookies so far: %s.",none:"The Cookie Shield has not detected any cookies.",off:"Cookie Shield is turned off. Enable it in order to block cookies."},it:{prefix:"[MyAgilePrivacy notifica solo per l'amministratore]",close:"Chiudi",detected:"Il Cookie Shield ha rilevato finora i seguenti cookie: %s.",none:"Il Cookie Shield non ha rilevato alcun cookie.",off:"Il Cookie Shield è disattivato. Attivalo per bloccare i cookie."},fr:{prefix:"[MyAgilePrivacy notification réservée à l'administrateur]",close:"Fermer",detected:"Le Cookie Shield a détecté jusqu'à présent les cookies suivants : %s.",none:"Le Cookie Shield n'a détecté aucun cookie.",off:"Le Cookie Shield est désactivé. Activez-le pour bloquer les cookies."},de:{prefix:"[MyAgilePrivacy Hinweis nur für Administratoren]",close:"Schließen",detected:"Der Cookie Shield hat bisher die folgenden Cookies erkannt: %s.",none:"Der Cookie Shield hat keine Cookies erkannt.",off:"Der Cookie Shield ist deaktiviert. Aktivieren Sie ihn, um Cookies zu blockieren."},es:{prefix:"[MyAgilePrivacy aviso solo para el administrador]",close:"Cerrar",detected:"El Cookie Shield ha detectado hasta ahora las siguientes cookies: %s.",none:"El Cookie Shield no ha detectado ninguna cookie.",off:"El Cookie Shield está desactivado. Actívelo para bloquear las cookies."}},noticeText:function(key){var lang=(document.documentElement.getAttribute("lang")||"en").toLowerCase().slice(0,2);return(this.notice_i18n[lang]||this.notice_i18n.en)[key]||this.notice_i18n.en[key]||""},showNotificationBar:function(message=null,success=null,slot=null){try{var body=document.querySelector("body"),bar=document.querySelector("#mapx_notification_bar");bar||((bar=document.createElement("div")).setAttribute("id","mapx_notification_bar"),bar.innerHTML="<span class='mapx_close_notification_bar'>"+this.noticeText("close")+"</span>",body.append(bar),document.addEventListener("click",function(event){event.target.matches(".mapx_close_notification_bar")&&(event.preventDefault(),bar.parentNode.removeChild(bar))},!1));var safe_message=String(message||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),final_message="<b>"+this.noticeText("prefix")+"</b> "+safe_message;1==success&&(final_message+='&nbsp;<span class="mapx_proxification_success_true">OK!</span>'),2==success&&(final_message+='&nbsp;<span class="mapx_proxification_success_false">ERROR!</span>');var line=slot?bar.querySelector('[data-map-notice="'+slot+'"]'):null;
5line||(line=document.createElement("div"),slot&&line.setAttribute("data-map-notice",slot),bar.append(line)),line.innerHTML=final_message}catch(error){console.error(error)}},administratorNotices:function(){try{if(void 0!==MAP.settings&&MAP.settings.internal_debug){if(MAP?.settings.scan_mode&&"learning_mode"==MAP.settings.scan_mode){const this_blocked_friendly_name=[];map_full_config?.cookie_api_key_remote_id_map_active&&"object"==typeof map_full_config.cookie_api_key_remote_id_map_active&&Object.entries(map_full_config?.cookie_api_key_remote_id_map_active||{}).forEach(([key,value])=>{const friendlyName=map_full_config?.cookie_api_key_friendly_name_map?.[key];friendlyName?.desc&&this_blocked_friendly_name.push(friendlyName?.desc)}),"undefined"!=typeof CookieShield&&CookieShield&&void 0!==CookieShield.getDetectedFriendlyNames&&CookieShield.getDetectedFriendlyNames().forEach(function(v){v&&this_blocked_friendly_name.push(v?.desc?v.desc:v)});const this_blocked_friendly_name_unique=this_blocked_friendly_name.filter((v,i,a)=>a.indexOf(v)===i);if(this_blocked_friendly_name_unique.length){var name_decoder=document.createElement("textarea");name_decoder.innerHTML=this_blocked_friendly_name_unique.join(", "),this.showNotificationBar(this.noticeText("detected").replace("%s",name_decoder.value),null,"admin")}else this.showNotificationBar(this.noticeText("none"),null,"admin")}MAP?.settings.scan_mode&&"turned_off"==MAP.settings.scan_mode&&this.showNotificationBar(this.noticeText("off"),null,"admin")}}catch(error){console.error(error)}},slideUp:function(target,duration=500,callback=null){try{target.style.transitionProperty="height, margin, padding",target.style.transitionDuration=duration+"ms",target.style.boxSizing="border-box",target.style.height=target.scrollHeight+"px",target.offsetHeight,target.style.overflow="hidden",target.style.height=0,target.style.paddingTop=0,target.style.paddingBottom=0,target.style.marginTop=0,target.style.marginBottom=0,window.setTimeout(()=>{try{target.style.display="none",target.style.removeProperty("height"),target.style.removeProperty("padding-top"),target.style.removeProperty("padding-bottom"),target.style.removeProperty("margin-top"),target.style.removeProperty("margin-bottom"),target.style.removeProperty("overflow"),target.style.removeProperty("transition-duration"),target.style.removeProperty("transition-property")}catch(error){console.error(error)}},duration)}catch(error){console.error(error)}},slideDown:function(target,duration=500,callback=null){try{target.style.removeProperty("display");let display=window.getComputedStyle(target).display;"none"===display&&(display="block"),target.style.display=display;let height=target.scrollHeight;target.style.overflow="hidden",target.style.height=0,target.style.paddingTop=0,target.style.paddingBottom=0,target.style.marginTop=0,target.style.marginBottom=0,target.offsetHeight,target.style.boxSizing="border-box",target.style.transitionProperty="height, margin, padding",target.style.transitionDuration=duration+"ms",target.style.height=height+"px",target.style.removeProperty("padding-top"),target.style.removeProperty("padding-bottom"),target.style.removeProperty("margin-top"),target.style.removeProperty("margin-bottom"),window.setTimeout(()=>{try{target.style.removeProperty("height"),target.style.removeProperty("overflow"),target.style.removeProperty("transition-duration"),target.style.removeProperty("transition-property")}catch(error){console.error(error)}},duration)}catch(error){console.error(error)}},setOverflowMaxHeight:function(){try{var $overflow_container=document.querySelector(".map-cookielist-overflow-container");if($overflow_container){let $map_tab_container=$overflow_container.parentNode,parentHeight=$map_tab_container.offsetHeight,cookie_list_height=0;Array.from($overflow_container?.children).forEach(child=>{var style=window.getComputedStyle(child),marginTop=parseInt(style.marginTop,10),marginBottom=parseInt(style.marginBottom,10);cookie_list_height+=child.offsetHeight+marginTop+marginBottom}),cookie_list_height+=150;let siblingsHeight=0;
5if(Array.from($map_tab_container?.children).forEach(child=>{if(child!==$overflow_container){var style=window.getComputedStyle(child),marginTop=parseInt(style.marginTop,10),marginBottom=parseInt(style.marginBottom,10);siblingsHeight+=child.offsetHeight+marginTop+marginBottom}}),parentHeight>cookie_list_height)$map_tab_container.style.height=siblingsHeight+cookie_list_height+"px";else{let maxHeight=parentHeight-siblingsHeight;$overflow_container.style.maxHeight=maxHeight+"px"}}}catch(error){console.error(error)}},setupAccordion:function(){var that=this;try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function setupAccordion"),that.setOverflowMaxHeight(),that.settingsModal.addEventListener("click",function(e){var $this=e.target;if($this.matches(".map_expandItem")){var $parent=$this.parentElement;MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"triggered map_expandItem click"),e.preventDefault(),e.stopImmediatePropagation(),MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+".map-tab-header click");var $content=$parent.nextElementSibling;$parent.classList.contains("map-tab-active")?($parent.classList.remove("map-tab-active"),that.slideUp($content,500)):($this.classList.contains("map-contextual-expansion")||(document.querySelectorAll(".map-tab-header").forEach(function($_this){$_this.classList.remove("map-tab-active")}),document.querySelectorAll(".map-tab-content").forEach(function($_this){$_this!==$content&&that.slideUp($_this,500)})),$parent.classList.add("map-tab-active"),that.slideDown($content,500))}})}catch(error){console.error(error)}},closeSettingsPopup:function(){try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"internal function closeSettingsPopup"),this.settingsModal.classList.remove("map-show"),this.settingsModal.classList.add("map-out"),document.body.classList.remove("map-modal-open"),document.querySelectorAll(".map-settings-overlay").forEach(function($_this){$_this.classList.remove("map-show")}),(async()=>{for(;!MAP_SYS.map_document_load;)await new Promise(resolve=>setTimeout(resolve,10));"function"==typeof window.MAPIABTCF_hideCMPUI&&window.MAPIABTCF_hideCMPUI()})()}catch(error){console.error(error)}},checkJsShield:function(){try{if("undefined"==typeof map_ajax||!map_ajax?.ajax_url||!MAP?.settings)return void MapLogger.error(MAP_SYS.maplog+"Error: missing map_ajax variable running checkJsShield function");if("undefined"==typeof CookieShield||"undefined"==typeof cookie_api_key_remote_id_map_active||void 0===map_full_config?.cookie_api_key_remote_id_map_active){var data={action:"map_missing_cookie_shield",detected:0};MAP_SYS.map_missing_cookie_shield=1}else{data={action:"map_missing_cookie_shield",detected:1};MAP_SYS.map_missing_cookie_shield=0}data.map_api_token=map_ajax?.api_token||"",fetch(map_ajax.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(data)}).then(response=>response.text()).then(responseText=>{MapLogger.debug(MAP_SYS.maplog,responseText)}).catch(error=>console.error("Error sending data running checkJsShield function:",error))}catch(error){console.error(error)}},checkConsentModeStatus:function(){try{if("undefined"==typeof map_ajax||!map_ajax?.ajax_url||!MAP?.settings)return void console.error(MAP_SYS.maplog+"Error: missing map_ajax variable running checkConsentModeStatus function");const googleTagRegex=/^(G-|UA-|AW-)/;let is_consent_valid=!1,has_valid_google_tag=!1,error_motivation="",error_code=null;if(MAP_SYS?.cmode_v2)if("undefined"==typeof dataLayer||null===dataLayer)error_motivation="missing dataLayer",error_code=20;else{for(let i=0;i<dataLayer.length;i++){const item=dataLayer[i];if(item&&(Array.isArray(item)||"object"==typeof item)){const firstArg=item[0],secondArg=item[1];if("consent"===firstArg&&"default"===secondArg&&(is_consent_valid=!0),"config"===firstArg&&googleTagRegex.test(secondArg)&&(has_valid_google_tag=!0),!is_consent_valid&&("config"===firstArg&&googleTagRegex.test(secondArg)||"event"===firstArg)){error_motivation=`Consent is set after Google tag ${secondArg} `,error_code=30;break}}}
5is_consent_valid||null!==error_code||"gtm"==MAP_SYS?.cmode_v2_implementation_type||(error_motivation="No consent set before Google tags",error_code=40),has_valid_google_tag||"gtm"==MAP_SYS?.cmode_v2_implementation_type||(error_motivation="A valid Google Tag seems missing",error_code=50)}else error_motivation="Consent Mode V2 not enabled",error_code=10;const result={isValid:null===error_code,reason:error_motivation,code:error_code};if(result.isValid){let the_message="The Consent Mode V2 is set up correctly.";MapLogger.log(MAP_SYS.maplog+the_message)}else{let the_message="The sending of consent is not set up correctly - "+result.reason+".";MapLogger.log(MAP_SYS.maplog+the_message)}const data={action:"map_check_consent_mode_status",map_api_token:map_ajax?.api_token||"",is_consent_valid:result.isValid?1:0,error_motivation:result.reason,error_code:result.code};(!0===MAP_SYS.cmode_v2_js_on_error&&result.isValid||!1===MAP_SYS.cmode_v2_js_on_error&&!result.isValid)&&fetch(map_ajax.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(data)}).then(response=>response.text()).then(responseText=>{MapLogger.debug(MAP_SYS.maplog,responseText)}).catch(error=>console.error("Error sending data running checkConsentModeStatus function:",error))}catch(error){console.error(error)}},sendDetectedKeys:function(){try{if("undefined"==typeof map_ajax||!map_ajax?.ajax_url||!MAP?.settings)return void console.error(MAP_SYS.maplog+"Error: missing map_ajax variable running sendDetectedKeys function");if("undefined"!=typeof CookieShield&&CookieShield){var detectableKeys=CookieShield.getDetectableKeys(),detectedKeys=CookieShield.getDetectedKeys();if(MAP_SYS.map_detectableKeys=detectableKeys,MAP_SYS.map_detectedKeys=detectedKeys,map_ajax){var detectableKeys_to_send=null;detectableKeys&&detectableKeys.length>0&&(detectableKeys_to_send=detectableKeys.join(","));var detectedKeys_to_send=null;detectedKeys&&detectedKeys.length>0&&(detectedKeys_to_send=detectedKeys.join(","));var data={action:"map_save_detected_keys",map_api_token:map_ajax?.api_token||"",detectableKeys:detectableKeys_to_send,detectedKeys:detectedKeys_to_send};fetch(map_ajax.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(data)}).then(response=>response.text()).then(responseText=>{MapLogger.groupCollapsed(MAP_SYS.maplog+"sendDetectedKeys detectableKeys="+detectableKeys_to_send+" , detectedKeys="+detectedKeys_to_send+" with response :"),MapLogger.debug(MAP_SYS.maplog,responseText),MapLogger.groupEnd()})}}}catch(error){console.error(error)}},sendDiagnosticData:function(is_probe){try{if(!("undefined"!=typeof map_ajax&&map_ajax?.api_url&&map_ajax?.api_token&&MAP?.settings))return console.error(MAP_SYS.maplog+"Error: missing map_ajax variable running sendDiagnosticData function"),Promise.reject("missing map_ajax");var detectableKeys_to_send=null,detectedKeys_to_send=null,send_detected_keys=0;if(MAP.settings&&(MAP.settings.scan_mode&&"learning_mode"==MAP.settings.scan_mode||1===map_ajax.force_js_learning_mode)&&(send_detected_keys=1,"undefined"!=typeof CookieShield&&CookieShield)){var detectableKeys=CookieShield.getDetectableKeys(),detectedKeys=CookieShield.getDetectedKeys();MAP_SYS.map_detectableKeys=detectableKeys,MAP_SYS.map_detectedKeys=detectedKeys,detectableKeys&&detectableKeys.length>0&&(detectableKeys_to_send=detectableKeys.join(",")),detectedKeys&&detectedKeys.length>0&&(detectedKeys_to_send=detectedKeys.join(","))}var cookie_shield_detected=0;"undefined"!=typeof CookieShield&&CookieShield&&void 0!==map_full_config?.cookie_api_key_remote_id_map_active?(cookie_shield_detected=1,MAP_SYS.map_missing_cookie_shield=0):MAP_SYS.map_missing_cookie_shield=1;const googleTagRegex=/^(G-|UA-|AW-)/;var is_consent_valid=!1,has_valid_google_tag=!1,error_motivation="",error_code=null;if(MAP_SYS?.cmode_v2)if("undefined"==typeof dataLayer||null===dataLayer)error_motivation="missing dataLayer",error_code=20;else{for(var i=0;i<dataLayer.length;i++){var item=dataLayer[i];if(item&&(Array.isArray(item)||"object"==typeof item)){var firstArg=item[0],secondArg=item[1];if("consent"===firstArg&&"default"===secondArg&&(is_consent_valid=!0),"config"===firstArg&&googleTagRegex.test(secondArg)&&(has_valid_google_tag=!0),!is_consent_valid&&("config"===firstArg&&googleTagRegex.test(secondArg)||"event"===firstArg)){error_motivation="Consent is set after Google tag "+secondArg,error_code=30;break}}}
5is_consent_valid||null!==error_code||"gtm"==MAP_SYS?.cmode_v2_implementation_type||(error_motivation="No consent set before Google tags",error_code=40),has_valid_google_tag||"gtm"==MAP_SYS?.cmode_v2_implementation_type||(error_motivation="A valid Google Tag seems missing",error_code=50)}else error_motivation="Consent Mode V2 not enabled",error_code=10;var consent_is_valid_int=null===error_code?1:0;consent_is_valid_int?MapLogger.log(MAP_SYS.maplog+"The Consent Mode V2 is set up correctly."):MapLogger.log(MAP_SYS.maplog+"The sending of consent is not set up correctly - "+error_motivation+".");var data={action:"map_diagnostic_data",map_api_token:map_ajax.api_token,send_detected_keys:send_detected_keys,detectableKeys:detectableKeys_to_send,detectedKeys:detectedKeys_to_send,cookie_shield_detected:cookie_shield_detected,is_consent_valid:consent_is_valid_int,error_motivation:error_motivation,error_code:null!==error_code?error_code:""};return fetch(map_ajax.api_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(data)}).then(response=>{if(!response.ok)throw new Error("HTTP error "+response.status);return response.text()}).then(responseText=>{MapLogger.groupCollapsed(MAP_SYS.maplog+"sendDiagnosticData response:"),MapLogger.debug(MAP_SYS.maplog,responseText),MapLogger.groupEnd()})}catch(error){return console.error(error),Promise.reject(error)}},debugCookieScripts:function(){try{var list=[];return document.querySelectorAll("script.my_agile_privacy_activate._js_noscript_type_mode, textarea.my_agile_privacy_activate._raw_type_mode").forEach(function($this){var cookie_name=$this.getAttribute("data-cookie-name"),cookie_api_key=$this.getAttribute("data-cookie-api-key"),code=null,mode=null;$this.classList.contains("_js_noscript_type_mode")&&(mode="js_noscript",code=$this.innerHTML),$this.classList.contains("_raw_type_mode")&&(mode="raw",code=$this.firstChild.nodeValue);var object={cookie_name:cookie_name,cookie_api_key:cookie_api_key,mode:mode,code:code};list.push(object)}),list}catch(error){console.error(error)}},getAvailableCookieList:function(){try{var list=[];return document.querySelectorAll(".map_cookie_description_wrapper").forEach(function($this){var cookie_name=$this.getAttribute("data-cookie-name"),cookie_api_key=$this.getAttribute("data-cookie-api-key");cookie_api_key?list.push(cookie_api_key):list.push(cookie_name)}),list}catch(error){console.error(error)}},getActivatedCookiesList:function(){try{var list=[];return document.querySelectorAll(".map_cookie_description_wrapper._is_activated").forEach(function($this){var cookie_name=$this.getAttribute("data-cookie-name"),cookie_api_key=$this.getAttribute("data-cookie-api-key");cookie_api_key?list.push(cookie_api_key):list.push(cookie_name)}),list}catch(error){console.error(error)}},getDisactivatedCookiesList:function(){try{var list=[];return document.querySelectorAll(".map_cookie_description_wrapper:not(._is_activated)").forEach(function($this){var cookie_name=$this.getAttribute("data-cookie-name"),cookie_api_key=$this.getAttribute("data-cookie-api-key");cookie_api_key?list.push(cookie_api_key):list.push(cookie_name)}),list}catch(error){console.error(error)}},mapSyncSlider:function(input){if(input){var slider=input.nextElementSibling;slider&&slider.classList.contains("map-slider")&&("1"===input.value?slider.classList.add("map-slider-on"):slider.classList.remove("map-slider-on"))}},mapGeoInit:function(){try{if(MapLogger.log("MAP-GEO","mapGeoInit: start"),!MAP_SYS.geo_enabled)return void MapLogger.log("MAP-GEO","mapGeoInit: geo_enabled=false → abort");var testParam=this.mapGeoTestParam();if(testParam)return MapLogger.log("MAP-GEO","mapGeoInit: test override = "+testParam+" → bypass cookie, force resolve"),void this.mapGeoResolve();var cookieVal=MAP_Cookie.read("map_geo");if(cookieVal){var parsed=null;try{parsed=JSON.parse(cookieVal)}catch(e){}if(parsed&&parsed.country&&parsed.native)return MAP_SYS.geo_country=parsed.country,MAP_SYS.geo_native=parsed.native,MAP_SYS.geo_resolved=!0,MapLogger.log("MAP-GEO","mapGeoInit: cookie present → use it",parsed),void this.mapGeoApply();MapLogger.log("MAP-GEO","mapGeoInit: cookie present but invalid → resolve via endpoint",cookieVal)}else MapLogger.log("MAP-GEO","mapGeoInit: no cookie → resolve via endpoint");this.mapGeoResolve()}catch(error){MapLogger.log("MAP-GEO","mapGeoInit: ERROR",error),console.error(error)}},mapGeoTestParam:function(){try{var m=window.location.search.match(/[?&]map_geo_test=([a-zA-Z]{2})\b/);return m?m[1].toUpperCase():""}catch(e){return""}},mapGeoFailClosed:function(){MAP_SYS.geo_country="unknown",MAP_SYS.geo_native="block",MAP_SYS.geo_eff_type="block",MAP_SYS.geo_resolved=!0,MapLogger.log("MAP-GEO","mapGeoFailClosed: geo resolution failed → block (opt-in)"),MAP_SYS.geo_bar_deferred&&(MAP_SYS.geo_bar_deferred=!1,MapLogger.log("MAP-GEO","mapGeoFailClosed: finalizing deferred banner (toggleBar → block)"),this.toggleBar())},mapGeoResolve:function(){var that=this;if(!("undefined"!=typeof map_ajax&&map_ajax&&map_ajax.advanced_api_url&&map_ajax.api_token))return MapLogger.log("MAP-GEO","mapGeoResolve: missing map_ajax config (advanced_api_url/api_token) → fail-closed (block)"),void that.mapGeoFailClosed();var test=that.mapGeoTestParam(),testQs=test?"map_geo_test="+encodeURIComponent(test):"",apiUrl=test?map_ajax.advanced_api_url+(-1===map_ajax.advanced_api_url.indexOf("?")?"?":"&")+testQs:map_ajax.advanced_api_url;MapLogger.log("MAP-GEO","mapGeoResolve: calling advanced-api.php",{url:apiUrl,test:test||"(none)"});var payload=new URLSearchParams({action:"map_resolve_geo",map_api_token:map_ajax.api_token});fetch(apiUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:payload}).then(function(resp){if(!resp.ok)throw new Error("advanced-api.php "+resp.status);return resp.json()}).then(function(data){MapLogger.log("MAP-GEO","mapGeoResolve: advanced-api.php OK",data),that.mapGeoHandleResult(data)}).catch(function(err){if(MapLogger.log("MAP-GEO","mapGeoResolve: advanced-api.php failed → fallback wp-ajax",String(err)),!map_ajax.ajax_url)return MapLogger.log("MAP-GEO","mapGeoResolve: no ajax_url → fail-closed (block)"),void that.mapGeoFailClosed();var ajaxUrl=test?map_ajax.ajax_url+(-1===map_ajax.ajax_url.indexOf("?")?"?":"&")+testQs:map_ajax.ajax_url;MapLogger.log("MAP-GEO","mapGeoResolve: calling wp-ajax",{url:ajaxUrl,test:test||"(none)"}),fetch(ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"map_advanced_resolve_geo",map_api_token:map_ajax.api_token})}).then(function(resp){return resp.json()}).then(function(data){MapLogger.log("MAP-GEO","mapGeoResolve: wp-ajax OK",data),that.mapGeoHandleResult(data)}).catch(function(err2){MapLogger.log("MAP-GEO","mapGeoResolve: wp-ajax failed → fail-closed (block)",String(err2)),that.mapGeoFailClosed()})})}
5,mapGeoHandleResult:function(data){try{if(!data||!data.country||!data.native)return MapLogger.log("MAP-GEO","mapGeoHandleResult: invalid result → fail-closed (block, no cookie)",data),void this.mapGeoFailClosed();MAP_SYS.geo_country=data.country,MAP_SYS.geo_native=data.native,MAP_SYS.geo_resolved=!0,MAP_Cookie.set("map_geo",JSON.stringify({country:data.country,native:data.native}),7),MapLogger.log("MAP-GEO","mapGeoHandleResult: cookie map_geo written",{country:data.country,native:data.native}),this.mapGeoApply()}catch(error){MapLogger.log("MAP-GEO","mapGeoHandleResult: ERROR",error),console.error(error)}},mapGeoApply:function(){try{if(!MAP_SYS.geo_resolved)return void MapLogger.log("MAP-GEO","mapGeoApply: not resolved yet → abort");if(MAP_SYS.geo_eff_type=this.mapGeoEffType(MAP_SYS.geo_country,MAP_SYS.geo_native),MapLogger.log("MAP-GEO","mapGeoApply",{country:MAP_SYS.geo_country,native:MAP_SYS.geo_native,sede_strong:MAP_SYS.geo_sede_strong,force_optout:MAP_SYS.geo_force_optout,effType:MAP_SYS.geo_eff_type}),"noblock"===MAP_SYS.geo_eff_type)if("-1"===MAP_Cookie.read(MAP_ACCEPTED_ALL_COOKIE_NAME))MapLogger.log("MAP-GEO","mapGeoApply: no-block but pre-existing opt-out (-1) → respect, no unblock");else if("undefined"!=typeof navigator&&!0===navigator.globalPrivacyControl)MapLogger.log("MAP-GEO","mapGeoApply: no-block but GPC active → respect opt-out, no unblock");else if("1"===MAP_Cookie.read(MAP_ACCEPTED_ALL_COOKIE_NAME))MapLogger.log("MAP-GEO","mapGeoApply: no-block, implicit consent already set (return visit) → no action");else{var accepted=!1;try{this.accept_button&&"function"==typeof this.accept_button.click&&(MapLogger.log("MAP-GEO","mapGeoApply: no-block → implicit accept-all (triggering Accept button flow: granular consent + gtag update + unblock)"),this.accept_button.click(),accepted=!0,MAP_SYS.geo_bar_deferred=!1)}catch(e){MapLogger.log("MAP-GEO","mapGeoApply: accept button flow failed → fallback",e)}accepted||(MAP_Cookie.set(MAP_ACCEPTED_ALL_COOKIE_NAME,"1",MAP_SYS.map_cookie_expire),this.saveGoogleConsentStatusToCookie({ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"}),this.updateGoogleConsentbyObj({ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"},!1),MapLogger.log("MAP-GEO","mapGeoApply: no-block → implicit consent set (fallback minimal), unblocking scripts"),this.tryToUnblockScripts(!0,null))}else MapLogger.log("MAP-GEO","mapGeoApply: effType=block → prior blocking stays");MAP_SYS.geo_bar_deferred&&(MAP_SYS.geo_bar_deferred=!1,MapLogger.log("MAP-GEO","mapGeoApply: finalizing deferred banner (toggleBar)"),this.toggleBar())}catch(error){MapLogger.log("MAP-GEO","mapGeoApply: ERROR",error),console.error(error)}},mapGeoEffType:function(country,native){var result;return result="block"===native?"block":MAP_SYS.geo_sede_strong?MAP_SYS.geo_force_optout&&MAP_SYS.geo_force_optout[country]?"noblock":"block":"noblock",MapLogger.log("MAP-GEO","mapGeoEffType("+country+", "+native+") → "+result+" [sede_strong="+MAP_SYS.geo_sede_strong+", forced="+!(!MAP_SYS.geo_force_optout||!MAP_SYS.geo_force_optout[country])+"]"),result}};function map_on_document_load_event(){try{if(MAP_SYS.map_document_load=!0,!MAP_SYS.map_initted&&"undefined"!=typeof map_cookiebar_settings)try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"initting"),MAP.set({settings:map_cookiebar_settings}),MAP_SYS.map_initted=!0}catch(error){console.error(error)}map_ajax&&MAP.settings&&(MAP_SYS?.allow_js_fast_callback&&!MAP_Cookie.read(MAP_TRANSPORT_COOKIE_NAME)?setTimeout(function(){MAP.sendDiagnosticData().catch(function(){MAP_Cookie.set(MAP_TRANSPORT_COOKIE_NAME,"1",7),(MAP?.settings?.scan_mode&&"learning_mode"==MAP?.settings?.scan_mode||1===map_ajax?.force_js_learning_mode)&&(MAP.sendDetectedKeys(),MAP.checkJsShield(),MAP.checkConsentModeStatus())})},500):((MAP?.settings?.scan_mode&&"learning_mode"==MAP?.settings?.scan_mode||1===map_ajax?.force_js_learning_mode)&&(MAP.sendDetectedKeys(),setTimeout(function(){MAP.checkJsShield(),MAP.checkConsentModeStatus()},800)),setTimeout(function(){MAP.sendDiagnosticData(!0).catch(function(){})},800))),MAP.administratorNotices()}catch(error){console.error(error)}}function cloneNodeAttributeToAnother($source,dest){for(var att,exclusion_list=["type","src","unblocked_src","class","data-cookie-api-key","data-friendly_name"],i=0,atts=$source.attributes,n=atts.length;i<n;i++)void 0===(att=atts[i]).nodeName||exclusion_list.includes(att.nodeName)||dest.setAttribute(att.nodeName,att.nodeValue);return dest}function internalRecreateNode(el,withChildren){try{if(withChildren)el.parentNode.replaceChild(el.cloneNode(!0),el);else{for(var newEl=el.cloneNode(!1);el.hasChildNodes();)newEl.appendChild(el.firstChild);el.parentNode.replaceChild(newEl,el)}}catch(e){console.debug(e)}}function map_trigger_custom_patch_1(){MapLogger.debug(MAP_SYS.maplog+"map_trigger_custom_patch_1");try{internalRecreateNode(document.querySelector("form.wpcf7-form"),!0)}catch(e){console.debug(e)}const c=new CustomEvent("DOMContentLoaded",{});document.dispatchEvent(c)}function map_trigger_custom_patch_2(){MapLogger.debug(MAP_SYS.maplog+"map_trigger_custom_patch_2"),document.querySelectorAll(".av_gmaps_confirm_link.av_text_confirm_link.av_text_confirm_link_visible").forEach(function(element){element.click()})}function map_trigger_custom_patch_3(){try{octorate.octobook.Widget.show()}catch(e){setTimeout(map_trigger_custom_patch_3,100),console.debug(e)}}function map_trigger_custom_patch_4(){try{setInterval(function(){document.querySelectorAll(".blockUI.blockOverlay").forEach(function(el){el.remove()})},500)}catch(e){setTimeout(map_trigger_custom_patch_4,100),console.debug(e)}}document.addEventListener("DOMContentLoaded",function(){try{"undefined"!=typeof map_cookiebar_settings&&(MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"initting"),MAP.set({settings:map_cookiebar_settings}),MAP_SYS.map_initted=!0),setTimeout(function(){if(!MAP_SYS.map_initted&&"undefined"!=typeof map_cookiebar_settings)try{MAP_SYS?.map_debug&&MapLogger.debug(MAP_SYS.maplog+"initting"),MAP.set({settings:map_cookiebar_settings}),MAP_SYS.map_initted=!0}
5catch(error){console.error(error)}},3e3),setTimeout(function(){MAP_SYS.map_document_load=!0},5e3)}catch(error){console.error(error)}}),window.addEventListener("load",function(){"function"==typeof window.map_on_document_load_event&&window.map_on_document_load_event()}),window.gTagManagerConsentListeners=window.gTagManagerConsentListeners||[],void 0!==MAP&&void 0!==MAP.setupConsentModeV2&&MAP.setupConsentModeV2(),void 0!==MAP&&void 0!==MAP.setupMicrosoftConsentMode&&MAP.setupMicrosoftConsentMode(),void 0!==MAP&&void 0!==MAP.setupClarityConsentMode&&MAP.setupClarityConsentMode(),"undefined"!=typeof map_full_config&&map_full_config?.enable_cmode_v2&&"gtm"===map_full_config?.cmode_v2_implementation_type&&function(){var _retryCount=0,_retry=function(){if(_retryCount>=5)MapLogger.warn(MAP_SYS.maplog+"GTM consent listener retry: max attempts reached");else{_retryCount++;var _listeners=window.gTagManagerConsentListeners;if(void 0!==_listeners&&0!==_listeners.length)_listeners.length>1&&MapLogger.debug(MAP_SYS.maplog+"GTM consent listener retry: "+_listeners.length+" listeners registered (bridge + GTM template?) — consent updates may appear duplicated in dataLayer"),MapLogger.debug(MAP_SYS.maplog+"GTM consent listener retry: listener already present, skipping");else{if(void 0!==MAP&&"function"==typeof MAP.googleTagManagerConsentListener){if(MAP.googleTagManagerConsentListener(function(consent){"function"==typeof gtag&&gtag("consent","update",consent)}),"function"==typeof MAP.exportGoogleConsentObjectFromCookie){var _initialConsent=MAP.exportGoogleConsentObjectFromCookie();_initialConsent&&"function"==typeof gtag&&gtag("consent","update",_initialConsent)}return void MapLogger.debug(MAP_SYS.maplog+"GTM consent listener retry: registered at attempt "+_retryCount)}setTimeout(_retry,200*Math.pow(2,_retryCount-1))}}};_retry()}(),document.addEventListener("DOMContentLoaded",function(){try{if(!0!==window.map_gtm_pre_shield_detected)return;if("undefined"==typeof map_ajax||!map_ajax||!map_ajax.api_token)return;if(!("undefined"!=typeof map_cookiebar_settings&&map_cookiebar_settings&&"learning_mode"===map_cookiebar_settings.scan_mode||1===map_ajax.force_js_learning_mode))return;if(1===map_ajax.gtm_gateway_detection_disabled)return;if(void 0===MAP_Cookie)return;if("1"===MAP_Cookie.read("map_gtm_gw_reported"))return;MAP_Cookie.set("map_gtm_gw_reported","1",.5);var body="action=map_report_gtm_gateway&map_api_token="+encodeURIComponent(map_ajax.api_token);(map_ajax.api_url?fetch(map_ajax.api_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:body}).then(function(resp){if(!resp.ok)throw new Error("api "+resp.status)}):Promise.reject()).catch(function(){map_ajax.ajax_url&&fetch(map_ajax.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:body}).catch(function(){})})}catch(e){}});
6//# sourceMappingURL=my-agile-privacy-frontend.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.