1if(typeof window.jentisApp>"u"||!window.jentisApp.initialized)if(window.jentis=window.jentis||{},window.jentis.config=window.jentis.config||{},window.jentis.config.account="dariadeh.live",window.jentis.config.trackdomain="https://s74a20.dariadeh.com",window.jentis.config.filehash="mg56fe",window.jentis.config.loadcss=!1,window.jentis.userCustomizable=window.jentis.userCustomizable||{},window.jentisApp=window.jentisApp||{},window.jentisApp.initialized=window.jentisApp.initialized||!1,window.jentis.config.frontend=window.jentis.config.frontend||{},typeof window.jentis.config.frontend.version>"u"&&(window.jentis.config.frontend.version=window.jentis.config.frontend.project!==void 0?"1":"3"),window.jentis.config.frontend.project="dariadeh",window.jentis.config.frontend.env="live",window.jentis.config.jtm=window.jentis.config.jtm||{},window.jentis.config.jtm.timestamp=1785240885,window.jentis.template=window.jentis.template||{},window.jentis.template.parseUrlParams=function(){var e={},t,n=/\+/g,r=/([^&=]+)=?([^&]*)/g,a=function(s){try{return window.decodeURIComponent(s.replace(n," "))}catch{return s}},o=window.location.search.substring(1);try{for(;t=r.exec(o);)e[a(t[1])]=a(t[2])}catch{}return e},window.jentis.template.getPreviewValue=function(){var e=window.jentis.template.parseUrlParams();if(typeof e.jts_preview<"u"){var t=e.jts_preview;return typeof window.jentis.config.jtm.timestamp<"u"&&(t+="/"+window.jentis.config.jtm.timestamp),t}return!1},window.jentis.template.getSessionStorageValue=function(e){try{if(window.sessionStorage&&typeof window.sessionStorage.getItem=="function")return window.sessionStorage.getItem(e)}catch{}return!1},window.jentis.template.sCDNVers=window.jentis.template.getPreviewValue()||window.jentis.template.getSessionStorageValue("jts_preview_version")||!1,window.jentis.config.frontend.vers=window.jentis.template.sCDNVers||"_",window.jentis.config.frontend.cdnhost=window.jentis.template.sCDNVers?window.jentis.config.trackdomain+"/get/"+window.jentis.config.frontend.env+"/web/"+window.jentis.config.frontend.vers+"/":window.jentis.config.trackdomain+"/",window.jentis.template.shouldLoadPreviewScript=window.jentis.template.sCDNVers&&!window.jentis.config.previewLoaded,window.jentis.template.shouldLoadPreviewScript)window.jentis.config.previewLoaded=!0,(function(){var e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.async=!0,t.src=window.jentis.config.frontend.cdnhost+window.jentis.config.filehash+".js",e.parentNode.insertBefore(t,e)})();else try{window.jentisApp.reprocessingCache_activate_reset=function(){typeof window.jentis.tracker<"u"&&typeof window.jentis.tracker.setUserCustomization<"u"&&window.jentis.tracker.setUserCustomization("reprocessCacheReset",!0),window.jentis.userCustomizable.reprocessCacheReset=!0},window.jentisApp.reprocessingCache_deactivate_reset=function(){typeof window.jentis.tracker<"u"&&typeof window.jentis.tracker.setUserCustomization<"u"&&window.jentis.tracker.setUserCustomization("reprocessCacheReset",!1),window.jentis.userCustomizable.reprocessCacheReset=!1},window.jentisApp.reset={},window.jentisApp.reset.user=function(){window.jentis.tracker.resetUser()},window.jentisApp.reset.session=function(){window.jentis.tracker.resetSession()},window.jentisApp.reset.consent=function(){window.jentis.consent.engine.resetConsent()},window.jentisApp.reset.cachedEvents=function(){window.jentis.tracker.resetCachedTrackingData()},window.jentisApp.getEnrichmentData=function(e,t,n,r){if(typeof e!="string")return console.error("getEnrichmentData(): enrichmentPluginId must be of type string! Received:",typeof e),!1;if(typeof t!="object"||t===null)return console.error("getEnrichmentData(): arguments must be of type JSON (object)! Received:",typeof t),!1;if(Object.prototype.toString.call(n)!=="[object Array]")return console.error("getEnrichmentData(): variables must be of type array! Received:",Object.prototype.toString.call(n)),!1;if(typeof r!="function")return console.error("getEnrichmentData(): callback must be a function! Received:",typeof r),!1;var a={};a[e]={arguments:t,variables:n};var o=function(s){typeof s<"u"&&typeof s.response<"u"?r(s.response):r("")};window.jentis.tracker.sendHTTPStream({endpoint:"/enrichment",data:JSON.stringify(a),callback:o,method:"POST",contentType:"application/json",withCredentials:!0})},window.jentisApp.initialized=!0,window.jentisApp.disableWebStorages=function(){typeof window.jentis<"u"&&typeof window.jentis.helper<"u"&&(window.jentis.helper.bIsLocalStorageAvailable=!1,window.jentis.helper.bIsSessionStorageAvailable=!1)},window.jentisApp.optOutSyntheticUsers=function(){typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.setNewVendorConsentsIgnoreConsentMode=="function"&&window.jentis.consent.engine.setNewVendorConsentsIgnoreConsentMode({jentis_predictor_collector:!1})},window.jentis.config.jtm.version=1,window.jentis.config.jtm.maximumStorageLifetime=33696e6,window.jentis.config.jtm.hybridTracking=!1,window.jentis.config.jtm.accountconstants={currency:"EUR","META_Conversion_API-fb_pixel_id":"123","META_Conversion_API-fb_bpiitracking":!1,"META_Conversion_API-fb_eventname_prefix":"","META_Conversion_API-fb_bautomaticdataextraction":!1,"Google_Ads_-gtag_path":"","Google_Ads_-adwords_id":"17957361661","Google_Ads_-adwords_label":""},window.jentis.config.jtm.plugins={},window.jentis.config.jtm.template_variables={},window.jentis.config.jtm.variables={fb_click_id:{scope:"EVENT",value:(function(){var e=!1,t=window.jentis.helper.fGetUrlParams();if(typeof t.fbclid<"u"&&(e="fb.1."+Date.now()+"."+t.fbclid),e===!1){if(typeof this.readCookie<"u")var n=this.readCookie("jts-fbc");else var n=window.jentis.helper.readCookie("jts-fbc");n!==null&&(e=n)}if(e===!1&&typeof window.jentis.cache<"u"&&typeof window.jentis.cache["jts-fbc"]<"u"&&(e=window.jentis.cache["jts-fbc"]),e===!1&&typeof window.jentis.migration<"u"&&typeof window.jentis.migration.fbc<"u"&&(e=window.jentis.migration.fbc),e===!1){if(typeof this.readCookie<"u")var n=this.readCookie("_fbc");else var n=window.jentis.helper.readCookie("_fbc");n!==null&&(e=n)}
1if(e){var r={name:"jts-fbc",exdays:7776e3,value:e};typeof this.setServerCookie<"u"?this.setServerCookie(r):window.jentis.helper.setServerCookie(r);var a={name:"_fbc",exdays:90,value:e};typeof this.setCookie<"u"?this.setCookie(a):window.jentis.helper.setCookie(a),window.jentis=window.jentis||{},window.jentis.cache=window.jentis.cache||{},window.jentis.cache["jts-fbc"]=e}else e="";return e}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},fb_browser_id:{scope:"EVENT",value:(function(){var e=!1;if(typeof this.readCookie<"u")var t=this.readCookie("jts-fbp");else var t=window.jentis.helper.readCookie("jts-fbp");if(t!==null&&(e=t),e===!1&&typeof window.jentis.cache<"u"&&typeof window.jentis.cache["jts-fbp"]<"u"&&(e=window.jentis.cache["jts-fbp"]),e===!1&&typeof window.jentis.migration<"u"&&typeof window.jentis.migration.fbp<"u"&&(e=window.jentis.migration.fbp),e===!1){if(typeof this.readCookie<"u")var n=this.readCookie("_fbp");else var n=window.jentis.helper.readCookie("_fbp");n!==null&&(e=n)}if(e===!1&&(e="fb.1."+Date.now()+"."+(Math.floor(Math.random()*9e9)+1e9)),e===!1)throw new Error("Error in fb_browser_id");window.jentis=window.jentis||{},window.jentis.cache=window.jentis.cache||{},window.jentis.cache["jts-fbp"]=e;var r={name:"jts-fbp",exdays:2160*60*60,value:e};typeof this.setServerCookie<"u"?this.setServerCookie(r):window.jentis.helper.setServerCookie(r);var a={name:"_fbp",exdays:2160*60*60,value:e};return typeof this.setCookie<"u"?this.setCookie(a):window.jentis.helper.setCookie(a),e}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},addtocart_sumbrutto:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"product"),t="addtocart",n=0,r=0,a=0,o=0,s=100;if(typeof e<"u")for(var d=0;d<e.length;d++)typeof e[d].type<"u"&&e[d].type===t&&(n=typeof e[d].brutto<"u"?e[d].brutto:0,r=typeof e[d].quantity<"u"?e[d].quantity:1,a=typeof e[d].discount<"u"?e[d].discount:0,o+=Math.round(n*r*s)/s-a);return o}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},fb_event_id:{scope:"EVENT",value:(function(){var e=new Date().getTime(),t=Math.round(Math.random()*1e5),n=Math.round(Math.random()*1e5);return""+t+e+n}),triggerRelated:!0,dependencies:[],vendorids:["facebook"]},product_id:{scope:"EVENT",value:(function(){var e="id",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},product_price:{scope:"EVENT",value:(function(){var e="brutto",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},product_quantity:{scope:"EVENT",value:(function(){var e="quantity",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},navigator_useragent:{scope:"SESSION",value:(function(){return window.navigator.userAgent}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},window_location_href:{scope:"EVENT",value:(function(){return window.location.href}),triggerRelated:!1,dependencies:[],vendorids:["facebook","adwords","google_analytics_4_server-side"]},product_type:{scope:"EVENT",value:(function(){var e="type",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},jtspushedcommands:{scope:"EVENT",value:(function(){return window.jentis.tracker.getDatalayer(!1)}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},checkout_brutto:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"checkout");return e.length>0&&(e=e[e.length-1],typeof e.brutto<"u")?e.brutto:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},checkout_itemscount:{scope:"EVENT",value:(function(){for(var e=window.jentis.tracker.getDatalayer(!0,"product"),t=0,n="checkout",r=0;r<e.length;r++)typeof e[r].type<"u"&&e[r].type===n&&typeof e[r].quantity<"u"&&(t+=e[r].quantity);return t||""}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},checkout_step:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"checkout");return e.length>0&&(e=e[e.length-1],typeof e.step<"u"&&e.step!==null)?e.step:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},event_tool:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"event");return e.length>0&&(e=e[e.length-1],typeof e<"u"&&typeof e.tool<"u")?e.tool:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},event_em:{scope:"EVENT",value:(function(){let e=window.jentis.tracker.getDatalayer(!0,"event");return e.length>0&&(e=e[e.length-1],typeof e<"u"&&typeof e.em<"u")?e.em:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},order_brutto:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"order");return e.length>0&&(e=e[e.length-1],typeof e.brutto<"u")?e.brutto:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook","adwords","google_analytics_4_server-side"]},order_id:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"order");return e.length>0&&(e=e[e.length-1],e.orderid!=="undefined")?e.orderid:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},search_countresults:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"search");return e.length>0&&(e=e[e.length-1],typeof e.countresults<"u")?e.countresults:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},search_term:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"search");return e.length>0&&typeof e[0].term<"u"?e[0].term:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook","google_analytics_4_server-side"]},search_type:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"search");return e.length>0&&e[0].type?e[0].type:""}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},user_doc_id:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.readDocumentID("user");return e===null&&(e=window.jentis.tracker.createDocumentID("user")),e}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]},breadcrumbs:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"pageview");return e.length>0&&(e=e[e.length-1],typeof e.breadcrumb<"u")?e.breadcrumb:[]}),triggerRelated:!1,dependencies:[],vendorids:["facebook"]}
1,read_gcl_gb_cookie:{scope:"EVENT",value:(function(){var e="_gcl_gb",t=this.readCookie(e);return t}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},read_gcl_ag_cookie:{scope:"EVENT",value:(function(){var e="_gcl_ag",t=this.readCookie(e);return t}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},read__gcl_aw_cookie:{scope:"EVENT",value:(function(){var e="_gcl_aw",t=this.readCookie(e);return t}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},get_consent_status_of_ad_storage:{scope:"EVENT",value:(function(){var e=null,t="";return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getConsentOfGCT=="function"&&(e=window.jentis.consent.engine.getConsentOfGCT("ad_storage"),e===!0?t="granted":e===!1&&(t="denied")),t}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},get_consent_status_of_ad_user_data:{scope:"EVENT",value:(function(){var e=null,t="";return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getConsentOfGCT=="function"&&(e=window.jentis.consent.engine.getConsentOfGCT("ad_user_data"),e===!0?t="granted":e===!1&&(t="denied")),t}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},event_id:{scope:"EVENT",value:(function(){var e=new Date().getTime(),t=Math.round(Math.random()*1e5),n=Math.round(Math.random()*1e5);return""+t+e+n}),triggerRelated:!0,dependencies:[],vendorids:["adwords"]},get_consent_status_of_analytics_storage:{scope:"EVENT",value:(function(){var e=null,t="";return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getConsentOfGCT=="function"&&(e=window.jentis.consent.engine.getConsentOfGCT("analytics_storage"),e===!0?t="granted":e===!1&&(t="denied")),t}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},get_consent_status_of_ad_personalization:{scope:"EVENT",value:(function(){var e=null,t="";return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getConsentOfGCT=="function"&&(e=window.jentis.consent.engine.getConsentOfGCT("ad_personalization"),e===!0?t="granted":e===!1&&(t="denied")),t}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},document_ref:{scope:"EVENT",value:(function(){return document.referrer}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},window_screen_height:{scope:"SESSION",value:(function(){return window.screen.height}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},window_screen_width:{scope:"SESSION",value:(function(){return window.screen.width}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},floodlight_gcl_au:{scope:"EVENT",value:(function(){if(typeof this.readCookie<"u")var e=this.readCookie("_gcl_au");else var e=window.jentis.helper.readCookie("_gcl_au");if(e!==null){var t=e.split(".");if(t.length>2)return t[t.length-2]+"."+t[t.length-1]}return null}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},document_title:{scope:"EVENT",value:(function(){return document.title}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},window_viewport_height:{scope:"SESSION",value:(function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_viewport_width:{scope:"SESSION",value:(function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_screen_colordepth:{scope:"SESSION",value:(function(){return window.screen.colorDepth}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},timezone_offset_minutes:{scope:"SESSION",value:(function(){return new Date().getTimezoneOffset()}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_history_length:{scope:"SESSION",value:(function(){return window.history.length}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},navigator_javaenabled:{scope:"SESSION",value:(function(){return window.navigator.javaEnabled()?"1":"0"}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},get_vendors_of_ad_user_data:{scope:"EVENT",value:(function(){var e=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(e=window.jentis.consent.engine.getVendorsOfGCT("ad_user_data")),e}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},window_navigator_mimetypes_len:{scope:"SESSION",value:(function(){return typeof window.navigator.mimeTypes<"u"&&typeof window.navigator.mimeTypes.length<"u"?window.navigator.mimeTypes.length:""}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_navigator_plugins_length:{scope:"SESSION",value:(function(){return typeof window.navigator.plugins<"u"&&typeof window.navigator.plugins.length<"u"?window.navigator.plugins.length:""}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},get_vendors_of_ad_storage:{scope:"EVENT",value:(function(){var e=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(e=window.jentis.consent.engine.getVendorsOfGCT("ad_storage")),e}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},get_vendors_of_analytics_storage:{scope:"EVENT",value:(function(){var e=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(e=window.jentis.consent.engine.getVendorsOfGCT("analytics_storage")),e}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},get_vendors_of_ad_personalization:{scope:"EVENT",value:(function(){var e=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(e=window.jentis.consent.engine.getVendorsOfGCT("ad_personalization")),e}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},navigator_user_agent_model:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["model"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]=a.model,e.callback(a.model)});else return"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"])}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},navigator_user_agent_wow64:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["wow64"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){var o=a.wow64?"1":"0";window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]=o,e.callback(o)});else return"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"])}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},navigator_user_agent_mobile:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["mobile"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){var o=a.mobile?"1":"0";window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]=o,e.callback(o)});else return typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.mobile<"u"?window.navigator.userAgentData.mobile?"1":"0":"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"])}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},navigator_user_agent_bitness:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["bitness"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]=a.bitness,e.callback(a.bitness)});else return"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"])}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},navigator_user_agent_architecture:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["architecture"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]=a.architecture,e.callback(a.architecture)});else return"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"])}),triggerRelated:!1,dependencies:[],vendorids:["adwords","google_analytics_4_server-side"]},checkout_coupon:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"checkout");return e.length>0&&(e=e[e.length-1],typeof e.coupon<"u")?e.coupon:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_language:{scope:"SESSION",value:(function(){return window.navigator.language}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_name:{scope:"EVENT",value:(function(){var e="name",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");
1if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_brand:{scope:"EVENT",value:(function(){var e="brand",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_position:{scope:"EVENT",value:(function(){var e="position",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_coupon:{scope:"EVENT",value:(function(){var e="coupon",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_location_id:{scope:"EVENT",value:(function(){var e="locationid",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_variant:{scope:"EVENT",value:(function(){var e="variant",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r].customvars<"u"&&typeof n[r].customvars[e]<"u"?t.push(n[r].customvars[e]):typeof n[r]<"u"&&typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_category_1st:{scope:"EVENT",value:(function(){var e="group",t=0,n=[],r=window.jentis.tracker.getDatalayer(!0,"product");if(typeof r<"u")for(var a=0;a<r.length;a++)typeof r[a][e]=="object"&&r[a][e].length>0&&typeof r[a][e][t]<"u"?n.push(r[a][e][t]):n.push("");return n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_discount_raw:{scope:"EVENT",value:(function(){var e="discount",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_category_2nd:{scope:"EVENT",value:(function(){var e="group",t=1,n=[],r=window.jentis.tracker.getDatalayer(!0,"product");if(typeof r<"u")for(var a=0;a<r.length;a++)typeof r[a][e]=="object"&&r[a][e].length>0&&typeof r[a][e][t]<"u"?n.push(r[a][e][t]):n.push("");return n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_category_3rd:{scope:"EVENT",value:(function(){var e="group",t=2,n=[],r=window.jentis.tracker.getDatalayer(!0,"product");if(typeof r<"u")for(var a=0;a<r.length;a++)typeof r[a][e]=="object"&&r[a][e].length>0&&typeof r[a][e][t]<"u"?n.push(r[a][e][t]):n.push("");return n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_category_4th:{scope:"EVENT",value:(function(){var e="group",t=3,n=[],r=window.jentis.tracker.getDatalayer(!0,"product");if(typeof r<"u")for(var a=0;a<r.length;a++)typeof r[a][e]=="object"&&r[a][e].length>0&&typeof r[a][e][t]<"u"?n.push(r[a][e][t]):n.push("");return n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_category_5th:{scope:"EVENT",value:(function(){var e="group",t=4,n=[],r=window.jentis.tracker.getDatalayer(!0,"product");if(typeof r<"u")for(var a=0;a<r.length;a++)typeof r[a][e]=="object"&&r[a][e].length>0&&typeof r[a][e][t]<"u"?n.push(r[a][e][t]):n.push("");return n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},product_affiliation:{scope:"EVENT",value:(function(){var e="affiliation",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},page_load_happened:{scope:"EVENT",value:(function(e){var t=!1;return typeof window.jentis.cache>"u"&&(window.jentis.cache={}),typeof window.jentis.cache["jentis.core.jtm.plugin.variable.page_load_happened"]>"u"&&(window.jentis.cache["jentis.core.jtm.plugin.variable.page_load_happened"]=!0,t=!0),typeof e.stateContext<"u"&&typeof e.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED<"u"&&e.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED===!0&&delete window.jentis.cache["jentis.core.jtm.plugin.variable.page_load_happened"],t}),triggerRelated:!0,dependencies:[],vendorids:["google_analytics_4_server-side"]},high_resolution_timestamp:{scope:"EVENT",value:(function(){var e="";return typeof window.performance<"u"&&typeof window.performance.now=="function"&&(e=Math.floor(window.performance.now())),e}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},iframe_state:{scope:"EVENT",value:(function(){if(window.top==window)return"0";if(typeof window.location<"u"&&typeof window.location.ancestorOrigins<"u"){var e=window.location.ancestorOrigins;if(e)return e[e.length-1]==window.location.origin?"1":"2"}var t=function(n){try{var r=!!n;
1if(n.location.href!=null){try{return n.foo,!0}catch{}r=!1}return r}catch{return!1}};return t(window.top)?1:2}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},checkout_paytype:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"checkout");return e.length>0&&(e=e[e.length-1],typeof e.paytype<"u"&&e.paytype!==null)?e.paytype:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},"random_number_per_page-load":{scope:"EVENT",value:(function(){return typeof window.jentis.cache>"u"&&(window.jentis.cache={}),typeof window.jentis.cache["jentis.core.jtm.plugin.variable.random_number_per_page-load"]>"u"&&(window.jentis.cache["jentis.core.jtm.plugin.variable.random_number_per_page-load"]=Math.floor(Math.random()*2147483647)),window.jentis.cache["jentis.core.jtm.plugin.variable.random_number_per_page-load"]}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},active_time_on_page:{scope:"EVENT",value:(function(e){var t=function(){var r=function(){return new Date(Date.now()).getTime()},a=function(d,f,c){d.addEventListener&&d.addEventListener(f,c,!1)},o=function(d){var f=0,c=0;return{start(){f=r()},stop(){c=this.get()},get(){var l=0;return d.isTimerActive()&&(l=r()-f),l+c}}},s=function(){this.timer=void 0,this.totalTime=0,this.isActive=!1,this.isVisible=!1,this.isFocused=!1};return s.prototype.init=function(){var d=this;if(!this.timer){this.isFocused=window.document.hasFocus(),this.isVisible=!window.document.hidden,this.isActive=!0;var f=function(c,l,u){a(c,l,function(_){d.timer.stop(),u(_),d.isTimerActive()&&d.timer.start()})};f(window,"focus",function(){d.isFocused=!0}),f(window,"blur",function(){d.isFocused=!1}),f(window,"pageshow",function(){d.isActive=!0}),f(window,"pagehide",function(){d.isActive=!1}),f(window.document,"visibilitychange",function(){d.isVisible=!window.document.hidden}),this.startTimer(),this.totalTime=0}},s.prototype.startTimer=function(){this.totalTime+=this.getTimeElapsed(),this.timer=new o(this),this.isTimerActive()&&this.timer.start()},s.prototype.resetTimer=function(){this.startTimer(),this.totalTime=0},s.prototype.isTimerActive=function(){return this.isFocused&&this.isVisible&&this.isActive},s.prototype.getTotalTime=function(){return this.totalTime+this.getTimeElapsed()},s.prototype.getTimeElapsed=function(){return this.timer?this.timer.get():0},new s};typeof window.jentis.cache>"u"&&(window.jentis.cache={}),typeof window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"]>"u"&&(window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"]=t(),window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"].init());var n=window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"].getTotalTime();return typeof e.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED<"u"&&e.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED===!0&&window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"].resetTimer(),window.jentis.tracker.log("[J-TRACKER] Total Active Time spent on page: "+n+" ms"),n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_id:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_id<"u"?decodeURIComponent(e.utm_id):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_platform:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["platform"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]=a.platform,e.callback(a.platform)});else return typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.platform<"u"?window.navigator.userAgentData.platform:"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_creative_format:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_creative_format<"u"?decodeURIComponent(e.utm_creative_format):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_marketing_tactic:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_marketing_tactic<"u"?decodeURIComponent(e.utm_marketing_tactic):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_source_platform:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_source_platform<"u"?decodeURIComponent(e.utm_source_platform):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_term:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_term<"u"?decodeURIComponent(e.utm_term):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_full_version_list:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["fullVersionList"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){var o="";typeof a<"u"&&typeof a.fullVersionList<"u"&&typeof a.fullVersionList.map=="function"&&(o=a.fullVersionList.map(function(s){return encodeURIComponent(s.brand||"")+";"+encodeURIComponent(s.version||"")}).join("|")),window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]=o,e.callback(o)});else return"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_medium:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_medium<"u"?decodeURIComponent(e.utm_medium):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_source:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_source<"u"?decodeURIComponent(e.utm_source):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_content:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_content<"u"?decodeURIComponent(e.utm_content):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_campaign:{scope:"EVENT",value:(function(){try{var e={},t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){e[r]=a});return typeof e.utm_campaign<"u"?decodeURIComponent(e.utm_campaign):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_platform_version:{scope:"SESSION",value:(function(e){window.jentis.cache=window.jentis.cache||{};var t=["platformVersion"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(t).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]=a.platformVersion,e.callback(a.platformVersion)});else return"";else e.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},shipping_tier:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"checkout");return e.length>0&&(e=e[e.length-1],typeof e.shipping_tier<"u"&&e.shipping_tier!==null)?e.shipping_tier:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},addtowishlist_sumbrutto:{scope:"EVENT",value:(function(){for(var e=window.jentis.tracker.getDatalayer(!0,"product"),t=0,n=0;n<e.length;n++)typeof e[n].type<"u"&&e[n].type==="addtowishlist"&&typeof e[n].brutto<"u"&&typeof e[n].quantity<"u"&&(t+=e[n].brutto*e[n].quantity);return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},order_tax:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"order");return e.length>0&&(e=e[e.length-1],typeof e.tax<"u")?e.tax:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},order_coupon:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"order"),t=[];if(e.length>0&&(e=e[e.length-1],typeof e.coupon<"u"&&t.push(e.coupon),t.length===0&&typeof e.vouchers<"u"))for(var n=e.vouchers,r
1=0;r<n.length;r++)typeof n[r].code<"u"&&n[r].code!==""&&t.push(n[r].code);return t.join(",")}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},order_shipping:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"order");return e.length>0&&(e=e[e.length-1],typeof e.shipping<"u")?e.shipping:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},productlistclick_id:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"productlistclick");return e.length>0&&(e=e[e.length-1],typeof e.id<"u")?e.id:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},productlistclick_name:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"productlistclick");return e.length>0&&(e=e[e.length-1],typeof e.name<"u")?e.name:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_position_arraylist:{scope:"EVENT",value:(function(){var e="position",t=[],n=window.jentis.tracker.getDatalayer(!0,"promotion");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},productlist_id_of_product:{scope:"EVENT",value:(function(){var e="productlist_id",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},productlist_name_of_product:{scope:"EVENT",value:(function(){var e="productlist_name",t=[],n=window.jentis.tracker.getDatalayer(!0,"product");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotionclick_id:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionclick");return e.length>0&&(e=e[e.length-1],typeof e.id<"u")?e.id:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotionclick_creative:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionclick");return e.length>0&&(e=e[e.length-1],typeof e.creative<"u")?e.creative:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_click_creative_slot:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionclick");return e.length>0&&(e=e[e.length-1],typeof e.creativeslot<"u")?e.creativeslot:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotionclick_name:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionclick");return e.length>0&&(e=e[e.length-1],typeof e.name<"u")?e.name:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_type:{scope:"EVENT",value:(function(){var e="type",t=[],n=window.jentis.tracker.getDatalayer(!0,"promotion");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},cartview_brutto:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"cartview");return e.length>0&&(e=e[e.length-1],typeof e.brutto<"u")?e.brutto:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},productview_brutto:{scope:"EVENT",value:(function(){var e="productview",t="brutto",n=0,r=window.jentis.tracker.getDatalayer(!0,"product");if(typeof r<"u"){for(var a=0;a<r.length;a++)if(typeof r[a].type<"u"&&r[a].type===e&&typeof r[a][t]<"u"){n=r[a][t];break}}return n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},productlist_id:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"productlist");return e.length>0&&(e=e[e.length-1],typeof e.id<"u")?e.id:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},productlist_name:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"productlist");return e.length>
10&&(e=e[e.length-1],typeof e.name<"u")?e.name:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_id_arraylist:{scope:"EVENT",value:(function(){var e="id",t=[],n=window.jentis.tracker.getDatalayer(!0,"promotion");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_creative_arraylist:{scope:"EVENT",value:(function(){var e="creative",t=[],n=window.jentis.tracker.getDatalayer(!0,"promotion");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_creative_slot_arraylist:{scope:"EVENT",value:(function(){var e="creativeslot",t=[],n=window.jentis.tracker.getDatalayer(!0,"promotion");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_name_arraylist:{scope:"EVENT",value:(function(){var e="name",t=[],n=window.jentis.tracker.getDatalayer(!0,"promotion");if(typeof n<"u")for(var r=0;r<n.length;r++)typeof n[r][e]<"u"?t.push(n[r][e]):t.push("");return t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_id:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionimpression");return e.length>0&&(e=e[e.length-1],typeof e.id<"u")?e.id:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_creative:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionimpression");return e.length>0&&(e=e[e.length-1],typeof e.creative<"u")?e.creative:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_creative_slot:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionimpression");return e.length>0&&(e=e[e.length-1],typeof e.creativeslot<"u")?e.creativeslot:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},promotion_name:{scope:"EVENT",value:(function(){var e=window.jentis.tracker.getDatalayer(!0,"promotionimpression");return e.length>0&&(e=e[e.length-1],typeof e.name<"u")?e.name:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},currency:{scope:"ACCOUNT",value:"EUR"},"META_Conversion_API-fb_pixel_id":{tracker:"2",scope:"ACCOUNT",value:"123"},"META_Conversion_API-fb_bpiitracking":{tracker:"2",scope:"ACCOUNT",value:!1},"META_Conversion_API-fb_eventname_prefix":{tracker:"2",scope:"ACCOUNT",value:""},"META_Conversion_API-fb_bautomaticdataextraction":{tracker:"2",scope:"ACCOUNT",value:!1},"Google_Ads_-gtag_path":{tracker:"3",scope:"ACCOUNT",value:""},"Google_Ads_-adwords_id":{tracker:"3",scope:"ACCOUNT",value:"17957361661"},"Google_Ads_-adwords_label":{tracker:"3",scope:"ACCOUNT",value:""}},window.jentis.config.jtm.pluginIDtoVendorID={facebook:{2:"facebook"},adwords:{3:"adwords"},"google_analytics_4_server-side":{4:"google_analytics_4_server-side"}},window.jentis.config.jtm.states={jts_push_submit:function(e){var t=_jts.push,n=!1,r=!1,a=["event","addtocart","removefromcart","addtowishlist","removefromwishlist","productlistclick","promotionclick","promotionimpression"],o=function(c){var l=window.jentis.tracker.getDatalayer(!0,c),u={};if(l.length>0&&(l=l[l.length-1],Object.keys(l).length>0))for(var _ in l)_!=="track"&&(u[_]=l[_]);Object.keys(u).length>0&&(u.track="promotion",u.type=c,window.jentis.tracker.log("[J-TRACKER] "+c+" push transformed."),t(u))},s=function(c,l){if(l){for(var u=0;u<c.length;u++)if(c[u]===l)return!0}return!1},d=function(){for(var c={stateCallback:function(){window._jtsDataLayerContext=[]}},l=0;l<arguments.length;l++){var u=arguments[l];window._jtsDataLayerContext=window._jtsDataLayerContext||[],window._jtsDataLayerContext.push(u),(typeof n>"u"||typeof n<"u"&&n===!0)&&t(u),r&&(c.requestType="sendBeacon"),typeof u.track<"u"?(s(a,u.track)&&(r=!0),u.track==="submit"||u.track==="event"?(r=!1,e(c)):(u.track==="promotionimpression"||u.track==="promotionclick")&&o(u.track)):typeof u=="boolean"&&u===!0&&(r=!1,e(c))}};if(typeof _jts=="object")for(var f=0;f<_jts.length;f++)d(_jts[f]);n=!0,_jts.push=d},page_transition_event:function(e){var t={userAgentString:navigator.userAgent,objState:{requestType:"sendBeacon"}},n=function(o){e(t.objState)};typeof window.jentis.cache>"u"&&(window.jentis.cache={});var r=/^((?!chrome|android).)*safari/i.test(t.userAgentString);t.userAgentString.indexOf("Firefox")>-1||r?window.addEventListener("pagehide",n):(t.objState.stateCallback=function(){window.removeEventListener("beforeunload",n)},window.addEventListener("beforeunload",n));var a=(function(o){var s=o,d=1,f=window._jts.push,c=!1,l={contextualStateInformation:{$JTS_VIRTUAL_PAGEVIEW_DETECTED:!0}},u=function(){for(var p=0;p<arguments.length;p++){var g=arguments[p];
1if(typeof g.track<"u"&&typeof g.track=="string"){var h=g.track.toLowerCase();(h==="pageview"||h==="virtualpageview")&&(d>1&&s(l),d+=1)}(typeof c>"u"||typeof c<"u"&&c===!0)&&f(g)}};if(typeof window._jts=="object")for(var _=0;_<_jts.length;_++)u(_jts[_]);c=!0,window._jts.push=u})(e)}},window.jentis.config.jtm.selectorActions={},window.jentis.config.jtm.trigger={addtocart:{excludeTrigger:[],condition:[[{value:"addtocart",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","META_Conversion_API-api_version","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","addtocart_sumbrutto","currency","fb_event_id","product_id","product_price","product_quantity","navigator_useragent","window_location_href","product_type","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","navigator_language","product_name","product_brand","product_position","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:["40"],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},fbclid_detection_trigger:{excludeTrigger:[],condition:[[{value:"pageview",operator:"co",variable:"jtspushedcommands"},{value:"[?&]fbclid=([^&]+)",operator:"reg",variable:"window_location_href"}]],variables:["jtspushedcommands","window_location_href","META_Conversion_API-fb_pixel_id","fb_click_id","fb_browser_id","fb_event_id"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands","window_location_href"],hasServerSideTag:!0,state:"jts_push_submit"},initiatecheckout:{excludeTrigger:[],condition:[[{value:"checkout",operator:"co",variable:"jtspushedcommands"},{value:"1",operator:"eq",variable:"checkout_step"}]],variables:["jtspushedcommands","checkout_step","META_Conversion_API-api_version","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","checkout_brutto","currency","fb_event_id","product_id","product_price","product_quantity","navigator_useragent","checkout_itemscount","window_location_href","product_type","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","checkout_coupon","get_vendors_of_ad_user_data","navigator_language","product_name","product_brand","product_position","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:["41"],codeblocks:[],conditionVariables:["jtspushedcommands","checkout_step"],hasServerSideTag:!0,state:"jts_push_submit"},fb_triggerpiiemail:{excludeTrigger:[],condition:[[{value:"event",operator:"co",variable:"jtspushedcommands"},{value:"fb",operator:"co",variable:"event_tool"}
1,{value:"^(?!\\s*$).+",operator:"reg",variable:"event_em"}]],variables:["jtspushedcommands","event_tool","event_em","META_Conversion_API-api_version","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","currency","fb_event_id","product_id","product_price","product_quantity","navigator_useragent","window_location_href","product_type"],tags:["42"],codeblocks:[],conditionVariables:["jtspushedcommands","event_tool","event_em"],hasServerSideTag:!0,state:"jts_push_submit"},pageview_without_exclude:{excludeTrigger:[],condition:[[{value:"pageview",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","META_Conversion_API-api_version","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","currency","fb_event_id","product_id","product_price","product_quantity","navigator_useragent","window_location_href","product_type","read_gcl_gb_cookie","read_gcl_ag_cookie","read__gcl_aw_cookie","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","navigator_language","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:["43","51"],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},order:{excludeTrigger:[],condition:[[{value:"order",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","META_Conversion_API-api_version","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","order_brutto","currency","order_id","fb_event_id","product_id","product_price","product_quantity","navigator_useragent","window_location_href","product_type","Google_Ads_-adwords_label","Google_Ads_-adwords_id","event_id","document_ref","window_screen_height","window_screen_width","floodlight_gcl_au","document_title","window_viewport_height","window_viewport_width","window_screen_colordepth","timezone_offset_minutes","read_gcl_gb_cookie","read_gcl_ag_cookie","read__gcl_aw_cookie","window_history_length","navigator_javaenabled","get_vendors_of_ad_user_data","window_navigator_mimetypes_len","window_navigator_plugins_length","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","get_vendors_of_ad_personalization","navigator_user_agent_model","navigator_user_agent_wow64","navigator_user_agent_mobile","navigator_user_agent_bitness","navigator_user_agent_architecture","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","order_tax","order_coupon","navigator_language","product_name","product_brand","product_position","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","order_shipping","page_load_happened","high_resolution_timestamp","iframe_state","random_number_per_page-load","active_time_on_page","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:["44","49"],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},search:{excludeTrigger:[],condition:[[{value:"search",operator:"co",variable:"jtspushedcommands"},{value:"",operator:"eq",variable:"search_type"}]],variables:["jtspushedcommands","search_type","META_Conversion_API-api_ver
1sion","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","search_countresults","currency","fb_event_id","product_id","search_term","product_price","product_quantity","navigator_useragent","window_location_href","product_type","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","navigator_language","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:["45"],codeblocks:[],conditionVariables:["jtspushedcommands","search_type"],hasServerSideTag:!0,state:"jts_push_submit"},productview:{excludeTrigger:[],condition:[[{value:"productview",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","META_Conversion_API-api_version","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","currency","fb_event_id","product_id","product_price","product_quantity","navigator_useragent","window_location_href","product_type","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","navigator_language","product_name","product_brand","product_position","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","productview_brutto","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:["46"],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},productlist:{excludeTrigger:["productlistclick"],condition:[[{value:"productlist",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","META_Conversion_API-api_version","META_Conversion_API-fb_pixel_id","META_Conversion_API-fb_access_token","META_Conversion_API-fb_test_event_code","META_Conversion_API-fb_eventname_prefix","fb_click_id","fb_browser_id","currency","fb_event_id","product_id","product_price","product_quantity","navigator_useragent","window_location_href","product_type","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","navigator_language","product_name","product_brand","product_position","product_coupon","product_location_id","productlist_id_of_product","product_variant","product_category_1st","product_discount_raw","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","productlist_name_of_product","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","productlist_id","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","productlist_name","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:["47"],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},productlistclick:{excludeTrigger:[],condition:[[{value:"productlistclick",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","product_id","product_name","product_brand","product_position","product_price","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_quantity","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","productlistclick_id","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","productlistclick_name","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","product_type"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},addpaymentinfo:{excludeTrigger:[],condition:[[{value:"2",operator:"eq",variable:"checkout_step"},{value:"checkout",operator:"co",variable:"jtspushedcommands"}]],variables:["checkout_step","jtspushedcommands","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","checkout_coupon","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","product_id","product_name","product_brand","product_position","product_price","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_quantity","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","checkout_paytype","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","checkout_brutto","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","product_type"],tags:[],codeblocks:[],conditionVariables:["checkout_step","jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},addshippinginfo:{excludeTrigger:[],condition:[[{value:"3",operator:"eq",variable:"checkout_step"}]],variables:["checkout_step","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","checkout_coupon","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","product_id","product_name","product_brand","product_position","product_price","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_quantity","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","shipping_tier","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","checkout_brutto","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","product_type"],tags:[],codeblocks:[],conditionVariables:["checkout_step"],hasServerSideTag:!0,state:"jts_push_submit"},addtowishlist:{excludeTrigger:[],condition:[[{value:"addtowishlist",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","product_id","product_name","product_brand","product_position","product_price","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_quantity","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","addtowishlist_sumbrutto","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","product_type"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},removefromcart:{excludeTrigger:[],condition:[[{value:"removefromcart",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","product_id","product_name","product_brand","product_position","product_price","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_quantity","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","product_type"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},promotionclick:{excludeTrigger:[],condition:[[{value:"promotionclick",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","document_ref","page_load_happened","product_id","product_name","product_brand","promotion_position_arraylist","product_price","product_coupon","product_location_id","productlist_id_of_product","product_variant","product_category_1st","product_discount_raw","product_quantity","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","productlist_name_of_product","high_resolution_timestamp","iframe_state","promotionclick_id","promotionclick_creative","promotion_click_creative_slot","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","promotionclick_name","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","promotion_type"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},user_engagement:{excludeTrigger:[],condition:[[{variable:"",operator:"j-true",value:""}],[{variable:"",operator:"j-true",value:""}]],variables:["active_time_on_page","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:[],codeblocks:[],conditionVariables:["active_time_on_page","active_time_on_page"],hasServerSideTag:!0,state:"page_transition_event"},cartview:{excludeTrigger:[],condition:[[{value:"cartview",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data",
1"currency","navigator_language","window_location_href","product_id","product_name","product_brand","product_position","product_price","product_coupon","product_location_id","product_variant","product_category_1st","product_discount_raw","product_quantity","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","cartview_brutto","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","product_type"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},promotionimpression:{excludeTrigger:[],condition:[[{value:"promotionimpression",operator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","dariadeh_GA4-debugview_mode","dariadeh_GA4-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","document_ref","page_load_happened","product_id","product_name","product_brand","promotion_position_arraylist","product_price","product_coupon","product_location_id","promotion_id_arraylist","promotion_creative_arraylist","promotion_creative_slot_arraylist","productlist_id_of_product","product_variant","product_category_1st","product_discount_raw","product_quantity","promotion_name_arraylist","product_category_2nd","product_category_3rd","product_category_4th","product_category_5th","product_affiliation","productlist_name_of_product","high_resolution_timestamp","iframe_state","promotion_id","promotion_creative","promotion_creative_slot","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","promotion_name","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","promotion_type"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"}},window.jentis.config.jtm.functions={},window.jentis.config.jtm.frontendLibs={facebook:{lib:function(e){this.jtsTracker=e.jtsTracker,this.oGateConfig=e.config,this.currency="",typeof e.accountvars<"u"&&typeof e.accountvars.currency<"u"&&(this.currency=e.accountvars.currency),this.getUserID=function(){var t=this.jtsTracker.readDocumentID("user");return t===null&&(t=this.jtsTracker.createDocumentID("user")),t},this.trackFrontendInitEvent=function(t){var n=t.fb_external_id;if(n!==!1){var r="https://www.facebook.com/tr/?";r+="id="+t.fb_pixel_id,r+="&ev=JentisInitial",r+="&dl="+encodeURIComponent(document.location.href),r+="&rl="+encodeURIComponent(document.referrer),r+="&if=false",r+="&ts="+Date.now(),r+="&sw="+(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth),r+="&sh="+(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight),r+="&v=2.9.39",r+="&external_id="+this.sha256(n),r+="&r=stable&ec=0&o=30&it="+Date.now()+"&coo=false&tm=1&rqm=GET&partner_agent=pljentis-1.2";var a=this.jtsTracker.getValueOfFrontendVariable("fb_browser_id");r+="&fbp="+a;var o=this.jtsTracker.getValueOfFrontendVariable("fb_click_id");o!==""&&typeof o<"u"&&(r+="&fbc="+o);var s=new Image;s.src=r}},this.bLibraryLoaded=!1,this.init=function(){this.bLibraryLoaded===!1&&(this.loadLibrary(),this.bLibraryLoaded=!0)},this.loadLibrary=function(){(function(t,n,r,a,o,s,d){t.fbq||(o=t.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},t._fbq||(t._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],s=n.createElement(r),s.async=!0,s.src=a,d=n.getElementsByTagName(r)[0],d.parentNode.insertBefore(s,d))})(window,document,"script","//connect.facebook.net/en_US/fbevents.js"),typeof fbq<"u"&&(fbq.disablePushState=!0)},this.sendPixel=function(t,n,r){var a=n.oUserData,o=n.guilist;typeof t.parameters>"u"&&(t.parameters={});var s=this.oGateConfig.fb_bautomaticdataextraction;typeof s<"u"&&s!==null&&s===!1&&fbq("set","autoConfig",!1,n.fb_pixel_id);var d={};for(var f in a)typeof a[f]<"u"&&a[f]!==null&&a[f]!==""&&(d[f]=a[f]);fbq("init",n.fb_pixel_id,d),typeof n.fb_eventname_prefix=="string"&&(t.event=n.fb_eventname_prefix+t.event),t.eventid={eventID:n.fb_event_id},t.parameters.currency=n.fe_currency||this.currency,typeof n.value<"u"&&n.value!==""&&(t.parameters.value=n.value),typeof n.predicted_ltv<"u"&&n.predicted_ltv!==""&&(t.parameters.predicted_ltv=n.predicted_ltv),typeof n.content_category<"u"&&n.content_category!==""&&(t.parameters.content_category=n.content_category),typeof n.content_name<"u"&&n.content_name!==""&&(t.parameters.content_name=n.content_name),typeof n.content_type<"u"&&n.content_type!==""&&(t.parameters.content_type=n.content_type);var c=typeof n.product_ids=="object"?n.product_ids:[],l=this.getContents(n.product_ids,n.product_quantity,n.product_brutto,n.delivery_category,n.product_data);t.parameters.content_ids=c,t.parameters.contents=l;var u={};if(typeof t.parameters<"u"&&(u=t.parameters),u.jentis="true",typeof o<"u"&&o!==null&&Object.keys(o).length>0){var _="",p="";for(var g in o)_=o[g].customparameter,p=o[g].customparametervalue,u[_]=p}if(typeof n.custom_product_data_outside_array<"u"&&n.custom_product_data_outside_array!==null&&typeof n.custom_product_data_outside_array.productcustomdataparametersoutsidearray<"u"&&n.custom_product_data_outside_array.productcustomdataparametersoutsidearray!==null&&Object.keys(n.custom_product_data_outside_array.productcustomdataparametersoutsidearray).length>0){var _="",p="";for(var g in n.custom_product_data_outside_array.productcustomdataparametersoutsidearray)_=n.custom_product_data_outside_array.productcustomdataparametersoutsidearray[g].customparameter,p=n.custom_product_data_outside_array.productcustomdataparametersoutsidearray[g].customparametervalue,u[_]=p}var h={};typeof t.eventid<"u"&&(h=t.eventid),fbq(r,n.fb_pixel_id,t.event,u,h),this.init()},this.trackCompleteRegistration=function(t){var n="";typeof t.fb_eventname<"u"&&t.fb_eventname!==null&&(n=t.fb_eventname);var r={event:n,parameters:{}};typeof t.status<"u"&&(r.parameters.status=t.status),this.sendPixel(r,t,"trackSingle")},this.trackInitiateCheckout=function(t){var n="";typeof t.fb_eventname<"u"&&t.fb_eventname!==null&&(n=t.fb_eventname);var r={event:n,parameters:{}};typeof t.num_items<"u"&&(r.parameters.num_items=t.num_items),this.sendPixel(r,t,"trackSingle")},this.trackSimpleEvent=function(t){var n="";typeof t.fb_eventname<"u"&&t.fb_eventname!==null&&(n=t.fb_eventname),this.sendPixel({event:n},t,"trackSingleCustom")},this.trackPageView=function(t){var n="";typeof t.fb_eventname<"u"&&t.fb_eventname!==null&&(n=t.fb_eventname),typeof this.oGateConfig.fb_bpiitracking<"u"&&this.oGateConfig.fb_bpiitracking!==null&&this.oGateConfig.fb_bpiitracking===!0&&(document.readyState=="loading"?(function(a){document.addEventListener("DOMContentLoaded",function(){a.initPIIListener(a)})})(this):this.initPIIListener(this));var r={event:n,parameters:{}};typeof t.breadcrumbs=="object"&&Object.prototype.toString.call(t.breadcrumbs)==="[object Array]"&&t.breadcrumbs.length>0?r.parameters.breadcrumbs=t.breadcrumbs.join("|"):typeof t.breadcrumbs=="string"&&t.breadcrumbs.length>0&&(r.parameters.breadcrumbs=t.breadcrumbs),this.sendPixel(r,t,"trackSingle")},this.trackPurchase=function(t){var n="";typeof t.fb_eventname<"u"&&t.fb_eventname!==null&&(n=t.fb_eventname);var r={event:n,parameters:{}};typeof t.order_id<"u"&&(r.parameters.order_id=t.order_id),typeof t.order_delivery_category=="string"&&t.order_delivery_category.length>0&&(r.parameters.delivery_category=t.order_delivery_category),this.sendPixel(r,t,"trackSingle")},this.trackSearch=function(t){var n="";typeof t.fb_eventname<"u"&&t.fb_eventname!==null&&(n=t.fb_eventname);var r={event:n,parameters:{}};typeof t.search_string<"u"&&(r.parameters.search_string=t.search_string),this.sendPixel(r,t,"trackSingle")},this.initPIIListener=function(t){for(var n="^(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[�-\b\v\f�-�!#-[]-\x7F]|\\[�- \v\f�-\x7F])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?.)+[a-zA-Z]{2,}|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:[�-\b\v\f�-�!-ZS-\x7F]+)\\])$",r=new RegExp(n),a=document.querySelectorAll("input"),o=0;o<a.length;o++)a[o].addEventListener("blur",function(){r.test(this.value)&&_jts.push({track:"event",tool:"fb",em:t.sha256(this.value)})})},this.sha256=function(t){function n(w){for(var v="",j=void 0,V,D=0;D<w.length;
1D++)j=w.charCodeAt(D),V=D+1<w.length?w.charCodeAt(D+1):0,j>=55296&&j<=56319&&V>=56320&&V<=57343&&(j=65536+((j&1023)<<10)+(V&1023),D++),j<=127?v+=String.fromCharCode(j):j<=2047?v+=String.fromCharCode(192|j>>>6&31,128|j&63):j<=65535?v+=String.fromCharCode(224|j>>>12&15,128|j>>>6&63,128|j&63):j<=2097151&&(v+=String.fromCharCode(240|j>>>18&7,128|j>>>12&63,128|j>>>6&63,128|j&63));return v}function r(w,v){return v>>>w|v<<32-w}function a(w,v,j){return w&v^~w&j}function o(w,v,j){return w&v^w&j^v&j}function s(w){return r(2,w)^r(13,w)^r(22,w)}function d(w){return r(6,w)^r(11,w)^r(25,w)}function f(w){return r(7,w)^r(18,w)^w>>>3}function c(w){return r(17,w)^r(19,w)^w>>>10}function l(w,v){return w[v&15]+=c(w[v+14&15])+w[v+9&15]+f(w[v+1&15])}var u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],_=new Array(8),p=new Array(2),g=new Array(64),h=new Array(16),T="0123456789abcdef";function b(w,v){var j=(w&65535)+(v&65535);return w=(w>>16)+(v>>16)+(j>>16),w<<16|j&65535}function k(){p[0]=p[1]=0,_[0]=1779033703,_[1]=3144134277,_[2]=1013904242,_[3]=2773480762,_[4]=1359893119,_[5]=2600822924,_[6]=528734635,_[7]=1541459225}function y(){var w=void 0,v=void 0,j=void 0,V=void 0,D=void 0,M=void 0,P=void 0,F=void 0,I=void 0,x=void 0;j=_[0],V=_[1],D=_[2],M=_[3],P=_[4],F=_[5],I=_[6],x=_[7];for(var R=0;R<16;R++)h[R]=g[(R<<2)+3]|g[(R<<2)+2]<<8|g[(R<<2)+1]<<16|g[R<<2]<<24;for(var R=0;R<64;R++)w=x+d(P)+a(P,F,I)+u[R],R<16?w+=h[R]:w+=l(h,R),v=s(j)+o(j,V,D),x=I,I=F,F=P,P=b(M,w),M=D,D=V,V=j,j=b(w,v);_[0]+=j,_[1]+=V,_[2]+=D,_[3]+=M,_[4]+=P,_[5]+=F,_[6]+=I,_[7]+=x}function m(w,v){var j=void 0,V,D=0;V=p[0]>>3&63;var M=v&63;for((p[0]+=v<<3)<v<<3&&p[1]++,p[1]+=v>>29,j=0;j+63<v;j+=64){for(var P=V;P<64;P++)g[P]=w.charCodeAt(D++);y(),V=0}for(var P=0;P<M;P++)g[P]=w.charCodeAt(D++)}function E(){var w=p[0]>>3&63;if(g[w++]=128,w<=56)for(var v=w;v<56;v++)g[v]=0;else{for(var v=w;v<64;v++)g[v]=0;y();for(var w=0;w<56;w++)g[w]=0}g[56]=p[1]>>>24&255,g[57]=p[1]>>>16&255,g[58]=p[1]>>>8&255,g[59]=p[1]&255,g[60]=p[0]>>>24&255,g[61]=p[0]>>>16&255,g[62]=p[0]>>>8&255,g[63]=p[0]&255,y()}function S(){for(var w="",v=0;v<8;v++)for(var j=28;j>=0;j-=4)w+=T.charAt(_[v]>>>j&15);return w}function C(w){for(var v=0,j=0;j<8;j++)for(var V=28;V>=0;V-=4)w[v++]=T.charCodeAt(_[j]>>>V&15)}function L(w,v){if(k(),m(w,w.length),E(),v)C(v);else return S()}function O(w){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,j=arguments[2];if(w==null)return null;var V=w;return v&&(V=n(w)),L(V,j)}return L(t,void 0)},this.getContents=function(t,n,r,a,o){var s=[];if(typeof t=="object"&&Object.prototype.toString.call(t)==="[object Array]")for(var d=0;d<t.length;d++){var f={};if(typeof t[d]<"u"&&(f.id=t[d].toString()),typeof n=="object"&&Object.prototype.toString.call(n)==="[object Array]"&&typeof n[d]<"u"?f.quantity=n[d].toString():typeof n=="string"&&n.length>0&&(f.quantity=n),typeof r=="object"&&Object.prototype.toString.call(r)==="[object Array]"&&typeof r[d]<"u"?f.item_price=r[d].toString():typeof r=="string"&&r.length>0&&(f.item_price=r),typeof a=="object"&&Object.prototype.toString.call(a)==="[object Array]"&&typeof a[d]<"u"?f.delivery_category=a[d].toString():typeof a=="string"&&a.length>0&&(f.delivery_category=a),typeof o<"u")for(var c in o)typeof o[c].customparametervalue=="object"&&Object.prototype.toString.call(o[c].customparametervalue)==="[object Array]"&&typeof o[c].customparametervalue[d]<"u"?f[o[c].customparameter]=o[c].customparametervalue[d].toString():typeof o[c].customparametervalue=="string"&&o[c].customparametervalue.length>0&&(f[o[c].customparameter]=o[c].customparametervalue.toString());s.push(f)}else if(typeof t=="string"&&t.length===0)throw new TypeError("Product-ID must be of type array!");return s},this.init()},tracker:{2:{fb_pixel_id:"123",fb_bpiitracking:!1,fb_eventname_prefix:"",fb_bautomaticdataextraction:!1}}},adwords:{lib:function(e){this.config=e.config,this.defaultConsentFound=!1,this.bLibraryInitialized=!1,this._mutateObjectWithGuilist=function(t,n){var r="",a="",o={};for(var s in t)r=t[s].propid,a=t[s].propval,n[r]=a;return n},this._maxIteration=function(t){var n=[];for(var r in t)n.push(t[r].length);var a=n.reduce(function(o,s){return Math.max(o,s)});return a},this._checkDefaultConsentSet=function(){for(var t=!1,n=0;n<window.dataLayer.length;n++)if(Object.prototype.toString.call(window.dataLayer[n])==="[object Arguments]"){var r=Array.prototype.slice.call(window.dataLayer[n])||[];if(typeof r[0]<"u"&&r[0]==="consent"&&typeof r[1]<"u"&&r[1]==="default"&&typeof r[2]<"u"&&Object.keys(r[2]).length>0){t=!0;break}}return t},this._updateConsentType=function(t){var n=t.google_consent_mode,r=t.tag_id,a={};for(var o in n)if(n[o]!==""&&n[o]!==null){var s=n[o];typeof window.jentis.tracker.replacePlaceholderForTagId<"u"&&(s=window.jentis.tracker.replacePlaceholderForTagId(r,o,t.scopeOfTheState,t.tagPlaceholder)),n[o]===s?a[o]=n[o]:a[o]=s}Object.keys(a).length>0&&window.gtag("consent","update",a)},this.executeConsentStatus=function(t){(typeof window.dataLayer>"u"||typeof window.gtag>"u")&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)}),this.defaultConsentFound||(this._checkDefaultConsentSet()||window.gtag("consent","default",{ad_storage:"denied",analytics_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"}),this.defaultConsentFound=!0),this._updateConsentType(t)},this.setUserData=function(t){(typeof window.dataLayer>"u"||typeof window.gtag>"u")&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)});var n={};if(typeof t.enhanced_conversion<"u"&&Object.keys(t.enhanced_conversion).length>0){var r=Object.keys(t.enhanced_conversion);for(i=0;i<r.length;i++)if(strIterArg=r[i],strIterArg==="address"){var a={};for(var o in t.enhanced_conversion.address)typeof t.enhanced_conversion.address[o]<"u"&&t.enhanced_conversion.address[o]!==""&&t.enhanced_conversion.address[o]!==null&&(a[o]=t.enhanced_conversion.address[o]);Object.keys(a).length>0&&(n[strIterArg]=a)}else typeof t.enhanced_conversion[strIterArg]<"u"&&t.enhanced_conversion[strIterArg]!==""&&t.enhanced_conversion[strIterArg]!==null&&(n[strIterArg]=t.enhanced_conversion[strIterArg])}typeof t.user_data<"u"&&Object.keys(t.user_data).length>0&&(n=this._mutateObjectWithGuilist(t.user_data,n)),Object.keys(n).length>0&&window.gtag("set","user_data",n)},this.init=function(t){if(!this.bLibraryInitialized){var n=t.adwords_id||"",r=t.gtag_path||"https://www.googletagmanager.com/gtag/js",a=new URL(r);t.gtag_path||a.searchParams.set("id","AW-"+n);var o=document.createElement("script");o.src=a.href,document.getElementsByTagName("head")[0].appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)};var s={};if(t.gtag_path&&(s.transport_url=t.gtag_path),typeof t.user_id<"u"&&t.user_id!==!1&&t.user_id!==null)try{t.user_id.toString().length>0&&(s.user_id=t.user_id)}catch{}window.gtag("js",new Date),window.gtag("config","AW-"+n,s),this.bLibraryInitialized=!0}},this.createEventObject=function(t){var n="",r={};if(typeof t.event_properties<"u"&&Object.keys(t.event_properties).length>0){var a=Object.keys(t.event_properties);for(c=0;c<a.length;c++)n=a[c],typeof t.event_properties[n]<"u"&&t.event_properties[n]!==""&&t.event_properties[n]!==null&&(r[n]=t.event_properties[n])}if(typeof t.guilist<"u"&&Object.keys(t.guilist).length>0&&(r=this._mutateObjectWithGuilist(t.guilist,r)),typeof t.products<"u"&&typeof t.products=="object"&&Object.keys(t.products).length>0){r.items=[];var o={},s=0;for(var d in t.products)Object.prototype.toString.call(t.products[d])==="[object Array]"&&(s=Math.max(s,t.products[d].length));for(var d in t.products)if(Object.prototype.toString.call(t.products[d])==="[object Array]")o[d]=t.products[d];else if(typeof t.products[d]=="string"&&t.products[d]!==""){for(var f=[],c=0;c<s;c++)f.push(t.products[d]);o[d]=f}else if(t.products[d]!==""&&t.products[d]!==null&&typeof t.products[d]<"u"){for(var f=[],c=0;c<s;c++)f.push(t.products[d]);o[d]=f}for(var l=this._maxIteration(o),c=0;c<l;c++){var u={};for(var d in o)typeof o[d][c]<"u"&&o[d][c]!==""&&(u[d]=o[d][c]);r.items.push(u)}}
1var _=t.adwords_id?"AW-"+t.adwords_id:"";t.conversion_label?r.send_to=_+"/"+t.conversion_label:r.send_to=_;var p=t.event_name||"";this.submitEvent(p,r)},this.submitEvent=function(t,n){window.gtag&&window.gtag("event",t,n)}},tracker:{3:{gtag_path:"",adwords_id:"17957361661",adwords_label:""}}}},window.jentis.config.jtm.frontendTags={40:{func:function(e){this.trackSimpleEvent({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"{{addtocart_sumbrutto}}",country:"",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdataparameters_product:{}},event_name:"AddToCart",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:"addtocart"},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:"addtocart"}},essential_mode_enabled:!1},41:{func:function(e){this.trackInitiateCheckout({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,num_items:e.placeholder.checkout_itemsCount,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"{{checkout_brutto}}",country:"",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdataparameters_product:{}},event_name:"InitiateCheckout",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",checkout_itemsCount:"{{checkout_itemscount}}",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:"checkout"},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:"checkout"}},essential_mode_enabled:!1},42:{func:function(e){this.trackSimpleEvent({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"",country:"",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdataparameters_product:{}},event_name:"J-PII-Email",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:""},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:""}},essential_mode_enabled:!1},43:{func:function(e){this.trackPageView({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,breadcrumbs:e.placeholder.breadcrumbs,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"",country:"",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdataparameters_product:{}},event_name:"PageView",breadcrumbs:"{{breadcrumbs}}",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:""},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:""}},essential_mode_enabled:!1},44:{func:function(e){this.trackPurchase({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,value:e.placeholder.value,order_id:e.placeholder.order_id,order_delivery_category:e.placeholder.order_delivery_category,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"{{order_brutto}}",country:"",order_id:"{{order_id}}",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdataparameters_product:{}},event_name:"Purchase",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},order_delivery_category:"",custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:"order"},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:"order"}},essential_mode_enabled:!1},45:{func:function(e){this.trackSearch({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,search_string:e.placeholder.search_term,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"{{search_countresults}}",country:"",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdataparameters_product:{}},event_name:"Search",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",search_term:"{{search_term}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:"search"},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:"search"}},essential_mode_enabled:!1},46:{func:function(e){this.trackSimpleEvent({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"",country:"",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdataparameters_product:{}},event_name:"ViewContent",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:"productview"},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:""}},essential_mode_enabled:!1},47:{func:function(e){this.trackSimpleEvent({fb_pixel_id:e.placeholder.fb_pixel_id,fb_event_id:e.placeholder.fb_event_id,fb_eventname:e.placeholder.event_name,value:e.placeholder.value,content_name:e.placeholder.content_name,content_category:e.placeholder.content_category,content_type:e.placeholder.content_type,fb_eventname_prefix:e.placeholder.fb_eventname_prefix,guilist:e.placeholder.customdataparameters,product_data:e.placeholder.products.customdataparameters_product,product_ids:e.placeholder.products.product_id,product_quantity:e.placeholder.products.product_quantity,product_brutto:e.placeholder.products.product_brutto,delivery_category:e.placeholder.products.delivery_category,fe_currency:e.placeholder.fe_currency,predicted_ltv:e.placeholder.predicted_ltv,custom_product_data_outside_array:e.placeholder.custom_product_data_outside_array,oUserData:{external_id:e.placeholder.fb_external_id,country:e.placeholder.country,em:e.placeholder.em,fn:e.placeholder.fn,ln:e.placeholder.ln,ph:e.placeholder.ph,ge:e.placeholder.ge,db:e.placeholder.db,ct:e.placeholder.ct,st:e.placeholder.st,zp:e.placeholder.zp}})},pluginID:"facebook",vendorID:"facebook",trackerID:"2",placeholder:{ct:"",db:"",em:"",fn:"",ge:"",ln:"",ph:"",st:"",zp:"",value:"",country:"",products:{product_id:"{{product_id}}",product_brutto:"{{product_price}}",product_quantity:"{{product_quantity}}",delivery_category:"",customdatapar
1ameters_product:{}},event_name:"ViewContent",fb_event_id:"{{fb_event_id}}",fb_pixel_id:"{{META_Conversion_API-fb_pixel_id}}",fe_currency:"{{currency}}",content_name:"",content_type:"product",predicted_ltv:"",fb_external_id:"{{user_doc_id}}",content_category:"",fb_eventname_prefix:"{{META_Conversion_API-fb_eventname_prefix}}",customdataparameters:{},custom_product_data_outside_array:{productcustomdataparametersoutsidearray:{}}},arraylist:{products:{variable:"product_type",operator:"eq",value:"productlist"},custom_product_data_outside_array:{variable:"product_type",operator:"eq",value:"productlist"}},essential_mode_enabled:!1},49:{func:function(e){this.executeConsentStatus({google_consent_mode:{ad_storage:e.placeholder.ad_storage,analytics_storage:e.placeholder.analytics_storage,ad_user_data:e.placeholder.ad_user_data,ad_personalization:e.placeholder.ad_personalization},tag_id:typeof e.tagId<"u"?e.tagId:"",scopeOfTheState:e.scopeOfTheState||{},tagPlaceholder:e.placeholder||{}}),this.setUserData({enhanced_conversion:{email:e.placeholder.enhanced_email,sha256_email_address:e.placeholder.enhanced_sha256_email_address,phone_number:e.placeholder.enhanced_phonenumber,sha256_phone_number:e.placeholder.enhanced_sha256_phone_number,address:{first_name:e.placeholder.enhanced_firstname,sha256_first_name:e.placeholder.enhanced_sha256_first_name,last_name:e.placeholder.enhanced_lastname,sha256_last_name:e.placeholder.enhanced_sha256_last_name,street:e.placeholder.enhanced_street,city:e.placeholder.enhanced_city,region:e.placeholder.enhanced_region,postal_code:e.placeholder.enhanced_postalcode,country:e.placeholder.enhanced_country}},user_data:e.placeholder.user_data}),this.init({adwords_id:e.placeholder.adwords_id,user_id:e.placeholder.user_id,gtag_path:e.placeholder.gtag_path}),this.createEventObject({event_properties:{value:e.placeholder.conversion_value*1,currency:e.placeholder.currency,transaction_id:e.placeholder.transaction_id,user_id:e.placeholder.user_id,new_customer:e.placeholder.new_customer,customer_lifetime_value:e.placeholder.customer_lifetime_value,google_business_vertical:e.placeholder.google_business_vertical,aw_remarketing_only:e.placeholder.aw_remarketing_only==="true"||e.placeholder.aw_remarketing_only===!0?!0:e.placeholder.aw_remarketing_only,aw_merchant_id:e.placeholder.aw_merchant_id,aw_feed_country:e.placeholder.aw_feed_country,aw_feed_language:e.placeholder.aw_feed_language,aw_feed_label:e.placeholder.aw_feed_label},adwords_id:e.placeholder.adwords_id,guilist:e.placeholder.customparameter,event_name:e.placeholder.event_name,conversion_label:e.placeholder.conversion_label})},pluginID:"adwords",vendorID:"adwords",trackerID:"3",placeholder:{user_id:"",currency:"{{currency}}",gtag_path:"{{Google_Ads_-gtag_path}}",ad_storage:"{{get_consent_status_of_ad_storage}}",adwords_id:"{{Google_Ads_-adwords_id}}",event_name:"conversion",ad_user_data:"{{get_consent_status_of_ad_user_data}}",new_customer:"",aw_feed_label:"",enhanced_city:"",aw_merchant_id:"",enhanced_email:"",transaction_id:"{{event_id}}",aw_feed_country:"",customparameter:{},enhanced_region:"",enhanced_street:"",aw_feed_language:"",conversion_label:"{{Google_Ads_-adwords_label}}",conversion_value:"{{order_brutto}}",enhanced_country:"",analytics_storage:"{{get_consent_status_of_analytics_storage}}",enhanced_lastname:"",ad_personalization:"{{get_consent_status_of_ad_personalization}}",enhanced_firstname:"",aw_remarketing_only:"",enhanced_postalcode:"",enhanced_phonenumber:"",customer_lifetime_value:"",google_business_vertical:"",enhanced_sha256_last_name:"",enhanced_sha256_first_name:"",enhanced_sha256_phone_number:"",enhanced_sha256_email_address:""},arraylist:{},essential_mode_enabled:!0},51:{func:function(e){this.executeConsentStatus({google_consent_mode:{ad_storage:e.placeholder.ad_storage,analytics_storage:e.placeholder.analytics_storage,ad_user_data:e.placeholder.ad_user_data,ad_personalization:e.placeholder.ad_personalization},tag_id:typeof e.tagId<"u"?e.tagId:"",scopeOfTheState:e.scopeOfTheState||{},tagPlaceholder:e.placeholder||{}}),this.init({adwords_id:e.placeholder.adwords_id,user_id:e.placeholder.user_id,gtag_path:e.placeholder.gtag_path})},pluginID:"adwords",vendorID:"adwords",trackerID:"3",placeholder:{user_id:"",gtag_path:"{{Google_Ads_-gtag_path}}",ad_storage:"{{get_consent_status_of_ad_storage}}",adwords_id:"{{Google_Ads_-adwords_id}}",ad_user_data:"{{get_consent_status_of_ad_user_data}}",analytics_storage:"{{get_consent_status_of_analytics_storage}}",ad_personalization:"{{get_consent_status_of_ad_personalization}}"},arraylist:{},essential_mode_enabled:!0}},window.jentis.config.jtm.enrichment={},window.jentis.config.jtm.codeblocks={},window.jentis.config.jtm.syntheticUsers={urlCampaignNames:[],previewEnabled:!1},window.jentis.config.jtm.mainDomain={setCookieOnMainDomain:!0,domain:"dariadeh.com"},window.jentis.config.jtm.cookieExtender={enabled:!1,url:"https://dariadeh.com/s74a20"},window.jentis.config.jtm.dataLayerAdapters={},window.jentis=window.jentis||{},window.jentis.helper=new(function(){var e=this;this.aEventCache={},this.oServerCookies={},this.bMinimalConsentGiven=!1,this.oClientCookiesCache={},this._cacheTrackingMonitorRequests={},this._cacheEventIdToStateName={},this.isSendingToMonitorActive=!1,this.bIsLocalStorageAvailable,this.bIsSessionStorageAvailable,this.EventEmitter=function(){this.events={},this.cache={}},this.EventEmitter.prototype.on=function(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n),this.cache[t]&&this.cache[t].forEach(function(r){n.apply(null,[r])})},this.EventEmitter.prototype.emit=function(t){var n=Array.prototype.slice.call(arguments,1
1);this.cache[t]||(this.cache[t]=[]),n.length>0&&(n=n[0]),this.cache[t].push(n),this.events[t]&&this.events[t].forEach(function(r){r.apply(null,[n])})},this.eventHandler=new this.EventEmitter,this.init=function(){this.listenForJentisTrackerJSInitEvent()},this.listenForJentisTrackerJSInitEvent=function(){this.addEventListener("jentis.tracker.init",function(){window.jentis.tracker.getPreviewVersion()!==!1&&(window.jentis.helper.isSendingToMonitorActive=!0,window.jentis.helper._startListeningForTrackingMonitorStreams())},!0)},this.sendErrorToLogSystem=function(t,n){},this.checkLocalStorage=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch{return!1}},this.checkSessionStorage=function(){var t="test";try{return sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch{return!1}},this.addEventListener=function(t,n,r=!1){if(r)this.eventHandler.on(t,n);else if(typeof this.aEventCache[t]<"u")for(var a=0;a<this.aEventCache[t].length;a++)n({detail:this.aEventCache[t][a]})},this.setEvent=function(t,n,r,a=!1){var o=t+"."+n;if(typeof r>"u")var r=null;if(a?this.eventHandler.emit(o,{detail:r}):(typeof this.aEventCache[o]>"u"&&(this.aEventCache[o]=[]),this.aEventCache[o].push(r)),typeof window.CustomEvent=="function")var s=new CustomEvent(o,{detail:r});else{var s=document.createEvent("CustomEvent");s.initCustomEvent(o,!0,!1,r)}document.dispatchEvent(s)},this.getHostname=function(t){var n=t.match(/^https?:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return n&&n[1]||""},this.getJSCookieDomain=function(t,n){var r=this.getHostname(t),a=r.split(".")[0],o=this.getHostname(n),s=o.split(".")[0];if(a===s){var d=n.split(".");return d[0]="",d.join(".")}return"."+o},this.getTrackingDomain=function(t,n){return typeof window.jentis.config.jtm.mainDomain<"u"&&typeof window.jentis.config.jtm.mainDomain.setCookieOnMainDomain<"u"&&window.jentis.config.jtm.mainDomain.setCookieOnMainDomain===!0&&typeof window.jentis.config.jtm.mainDomain.domain<"u"?"."+window.jentis.config.jtm.mainDomain.domain:this.getJSCookieDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain)},this.setServerCookie=function(t){typeof t.name<"u"&&typeof t.value<"u"&&typeof t.exdays<"u"&&(this.oServerCookies[t.name]=t)},this.getServerCookies=function(){if(this.bMinimalConsentGiven===!0){var t=[];for(var n in this.oServerCookies){var r=this.oServerCookies[n];typeof r.vendorids<"u"?window.jentis.helper._isMinimumOneConsentGivenOfList(r.vendorids)===!0&&(t.push(r),delete this.oServerCookies[n]):(t.push(r),delete this.oServerCookies[n])}return t}return[]},this.readCookie=function(t){var n=this.parseCookiesToJson();return typeof n[t]<"u"&&(n[t].length>1&&typeof window.jentis.config.jtm.mainDomain<"u"&&typeof window.jentis.config.jtm.mainDomain.setCookieOnMainDomain<"u"&&window.jentis.config.jtm.mainDomain.setCookieOnMainDomain===!0&&typeof window.jentis.config.jtm.mainDomain.domain<"u"&&(this._deleteCookieFromDomain(t,this.getJSCookieDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain)),n=this.parseCookiesToJson()),typeof n[t]<"u"&&n[t].length>0)?n[t][0]:null},this._deleteCookieFromDomain=function(t,n){document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; Domain=${n}`},this.setCookie=function(t){if(this.bMinimalConsentGiven===!1)typeof t.name<"u"&&(this.oClientCookiesCache[t.name]=t);else if(typeof t.vendorids>"u"||typeof t.vendorids<"u"&&window.jentis.helper._isMinimumOneConsentGivenOfList(t.vendorids)===!0){var n=new Date;if(t.exdays!==null&&typeof t.exdays=="object"){var r=((typeof t.exdays.h<"u"?t.exdays.h:0)*60*60+(typeof t.exdays.m<"u"?t.exdays.m:0)*60+(typeof t.exdays.s<"u"?t.exdays.s:0))*1e3;r>window.jentis.config.jtm.maximumStorageLifetime&&(r=window.jentis.config.jtm.maximumStorageLifetime);var a=n.getTime()+r;n.setTime(a)}else{var r=t.exdays*24*60*60*1e3;r>window.jentis.config.jtm.maximumStorageLifetime&&(r=window.jentis.config.jtm.maximumStorageLifetime);var a=n.getTime()+r;n.setTime(a)}var o=this.getJSCookieDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain),s=encodeURIComponent(t.value)+"; path=/; domain="+o+(t.exdays==null?"":"; expires="+n.toUTCString())+(typeof t.sameSite<"u"?"; SameSite="+t.sameSite:"")+(typeof t.bSecure<"u"&&t.bSecure===!0?"; Secure":"");typeof window.jentisApp<"u"&&typeof window.jentisApp.cookieSettingMethod=="function"?window.jentisApp.cookieSettingMethod(t.name+"="+s):document.cookie=t.name+"="+s}else typeof t.name<"u"&&(this.oClientCookiesCache[t.name]=t)},this.setLocalStorageItem=function(t,n,r){if(typeof window.jentis.helper.bIsLocalStorageAvailable>"u"&&(window.jentis.helper.bIsLocalStorageAvailable=this.checkLocalStorage()),!window.jentis.helper.bIsLocalStorageAvailable)return!1;try{var a=new Date;r?r>window.jentis.config.jtm.maximumStorageLifetime&&(r=window.jentis.config.jtm.maximumStorageLifetime):r=window.jentis.config.jtm.maximumStorageLifetime;var o={value:n,ttl:r,expiry:a.getTime()+r};return window.localStorage.setItem(t,JSON.stringify(o)),!0}catch{return this.log("J-DCP :","LocalStorage quota exceeded."),!1}},this.getLocalStorageItem=function(t){if(typeof window.jentis.helper.bIsLocalStorageAvailable>"u"&&(window.jentis.helper.bIsLocalStorageAvailable=this.checkLocalStorage()),!!window.jentis.helper.bIsLocalStorageAvailable)try{var n=window.localStorage.getItem(t);if(!n)return null;var r="",a=new Date;try{r=JSON.parse(n),typeof r.expiry>"u"&&typeof r.ttl>"u"&&(r={value:r,ttl:window.jentis.config.jtm.maximumStorageLifetime,expiry:a.getTime()+window.jentis.config.jtm.maximumStorageLifetime})}catch{r={value:n,ttl:window.jentis.config.jtm.maximumStorageLifetime,expiry:a.getTime()+window.jentis.config.jtm.maximumStorageLifetime}}return a.getTime()>r.expiry?(window.localStorage.removeItem(t),null):(window.jentis.helper.setLocalStorageItem(t,r.value,r.ttl),r.value)}catch{this.log("J-DCP :","LocalStorage quota exceeded.");return}},this.setSessionStorageItem=function(t,n){if(typeof window.jentis.helper.bIsSessionStorageAvailable>"u"&&(window.jentis.helper.bIsSessionStorageAvailable=this.checkSessionStorage()),!!window.jentis.helper.bIsSessionStorageAvailable)try{window.sessionStorage.setItem(t,n)}catch{this.log("J-DCP :","SessionStorage quota exceeded.");return}}
1,this.getSessionStorageItem=function(t){if(typeof window.jentis.helper.bIsSessionStorageAvailable>"u"&&(window.jentis.helper.bIsSessionStorageAvailable=this.checkSessionStorage()),!!window.jentis.helper.bIsSessionStorageAvailable){var n=window.sessionStorage.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}}},this.enableClientCookies=function(){this.bMinimalConsentGiven=!0;for(var t in this.oClientCookiesCache){var n=this.oClientCookiesCache[t];typeof n.vendorids<"u"?window.jentis.helper._isMinimumOneConsentGivenOfList(n.vendorids)===!0&&(this.setCookie(n),delete this.oClientCookiesCache[t]):(this.setCookie(n),delete this.oClientCookiesCache[t])}},this.disableClientCookies=function(){this.bMinimalConsentGiven=!1},this._isMinimumOneConsentGivenOfList=function(t){for(var n=!1,r=0;r<t.length;r++)if(window.jentis.consent.engine.getVendorConsent(t[r])===!0||window.jentis.consent.engine.getVendorConsent(t[r])==="ncm"){n=!0;break}return n},this.parseCookiesToJson=function(){var t={},n=document.cookie.split("; ");return n.forEach(function(r){var a="",o="";try{var s=r.split(/=(.+)/);a=decodeURIComponent(s[0]),o=decodeURIComponent(s[1]||""),t[a]?t[a].push(o):t[a]=[o]}catch{}}),t},this.fGetUrlParams=function(){var t={},n,r=/\+/g,a=/([^&=]+)=?([^&]*)/g,o=function(d){try{return window.decodeURIComponent(d.replace(r," "))}catch{return d}},s=window.location.search.substring(1);try{for(;n=a.exec(s);)t[o(n[1])]=o(n[2])}catch{}return t},this.cloneObject=function(t){if(Object.prototype.toString.call(t)==="[object Array]"){for(var n=[],r=0;r<t.length;r++)n[r]=this.cloneObject(t[r]);return n}else if(t!==null&&typeof t=="object"){var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=this.cloneObject(t[a]));return n}else return t},this.log=function(t,n){window.jentis.tracker.bLogMode===!0&&(typeof n>"u"?typeof t=="object"?(console.log("%o",t),this.sendLogToMonitor(JSON.stringify(t))):(console.log(t),this.sendLogToMonitor(t)):typeof n=="object"?(console.log(t+": %o",n),this.sendLogToMonitor(t+": "+JSON.stringify(n))):(console.log(t+": "+n),this.sendLogToMonitor(t+": "+n)))},this.logError=function(t,n,r){var a=" - Error Report",o="";typeof t<"u"&&t!==""&&(a=t+a,o="["+t+"]: "),typeof n<"u"&&n!==""&&(o+=n),console.group(a),console.log(o),typeof r<"u"&&console.error(r),console.groupEnd(),this.sendErrorToMonitor(t,n,r)},this.sendLogToMonitor=function(t,n){var r=this._getTemplateJSONForMonitorTag();r.name=t,r.source="frontend",r.type="info",n&&(r._id=n),this._pushTagIntoMonitorCache(r,"")},this.sendFrontendTagToMonitor=function(t){var n=t.frontendTag,r=t.stateName,a=t.stateEventId,o=this._getTemplateJSONForMonitorTag();o._id=n.id,o.tool_id=n.tool_id,o.vendor_id=n.vendor_id,o.source="frontend",o.type="tag",o.trigger=n.trigger,o.http.query_string_parameters=n.placeholders,o.variables.frontend=n.frontendVariables,o.variables.constant=n.constantVariables,o.variables.enrichment=n.enrichmentVariables,o.functions=n.transformationFunctions;var s=this._cacheTrackingMonitorRequests,d=s&&s[a],f=!1;if(d)for(var c=0;c<d.length;c++){var l=d[c];if(!(typeof l._id>"u"||l._id!==o._id)){typeof l.triggers>"u"?(l.triggers=[l.trigger,o.trigger],delete l.trigger):l.triggers.push(o.trigger),f=!0;break}}f||this._pushTagIntoMonitorCache(o,r,a)},this.sendErrorToMonitor=function(t,n,r){var a=this._getTemplateJSONForMonitorTag();a.name="",typeof n<"u"&&n!==""&&(a.name=n,typeof t<"u"&&t!==""&&(a.name="["+t+"]: "+n)),a.source="frontend",a.type="error",a.error={},typeof r<"u"&&typeof r.message<"u"?(a.error.message=r.message,a.name===""&&(a.name=r.message,typeof t<"u"&&t!==""&&(a.name="["+t+"]: "+r.message))):a.error.message="",typeof r<"u"&&typeof r.stack<"u"?a.error.stack=r.stack:a.error.stack="",this._pushTagIntoMonitorCache(a,"")},this._getTemplateJSONForMonitor=function(){return{debugid:window.jentis.config.frontend.debug,consent:window.jentis.consent.engine.getAllConsents(),docs:{},state:"",tags:[]}},this._getTemplateJSONForMonitorTag=function(){return{_id:"",name:"",source:"",type:"",timestamp:Date.now(),trigger:{id:"",executed:!0,conditions:[],excludeTriggers:[]},http:{general:{requestUrl:"",requestMethod:"",requestStatus:200,remoteAddress:""},payload:{},request_headers:{},query_string_parameters:{},response:{status:200,statusText:"",data:"",success:!0,headers:{}}},variables:{frontend:{},backend:{},constant:{},enrichment:{}},functions:{}}}
1,this._pushTagIntoMonitorCache=function(t,n,r){typeof r>"u"&&(r=""),typeof this._cacheTrackingMonitorRequests[r]>"u"&&(this._cacheTrackingMonitorRequests[r]=[]),this._cacheTrackingMonitorRequests[r].push(t),typeof this._cacheEventIdToStateName[r]>"u"&&(this._cacheEventIdToStateName[r]=n)},this.prepareMonitorRequestData=function(t){var n=window.jentis.helper._getTemplateJSONForMonitor(),r=t.frontendTags||{},a=t.stateName||"",o=t.stateEventIdToSend||"";return n.tags=r,n.state=a,n.eventDocumentId=o,n},this._fireMonitorRequest=function(t,n){n?this.monitorPayloadChunker.resolveMonitorChunks(t):window.jentis.tracker.sendHTTPStream({endpoint:"/monitor",data:JSON.stringify(t),method:"POST",contentType:"application/json",withCredentials:!1})},this.monitorCacheDispatcher=function(t,n){if(t)this.sendCachedMonitorRequest({stateEventIdToSend:t,requestMethod:n});else{var r=[];window.jentis.helper._mergeArrayWithoutDuplicates(r,Object.keys(window.jentis.helper._cacheEventIdToStateName));for(var a=0;a<r.length;a++)this.sendCachedMonitorRequest({stateEventIdToSend:r[a],requestMethod:n})}},this.sendCachedMonitorRequest=function(t){var n=t.stateEventIdToSend,r=!!(t.requestMethod&&t.requestMethod==="sendBeacon");if(typeof window.jentis.helper._cacheTrackingMonitorRequests[n]<"u"&&window.jentis.helper._cacheTrackingMonitorRequests[n].length>0){var a={frontendTags:window.jentis.helper._cacheTrackingMonitorRequests[n],stateName:window.jentis.helper._cacheEventIdToStateName[n],stateEventIdToSend:n},o=window.jentis.helper.prepareMonitorRequestData(a);window.jentis.helper._fireMonitorRequest(o,r),window.jentis.helper._cacheTrackingMonitorRequests[n]=[],delete window.jentis.helper._cacheEventIdToStateName[n]}},this._startListeningForTrackingMonitorStreams=function(){if(window.jentis.helper.isSendingToMonitorActive===!0)var t=window.setInterval(function(){window.jentis.helper.monitorPayloadChunker.retryUnsentMonitorChunksFromLocalStorage(),window.jentis.helper.monitorCacheDispatcher()},3e3)},this._mergeArrayWithoutDuplicates=function(t,n){for(var r=0;r<n.length;r++)t.indexOf(n[r])===-1&&t.push(n[r]);return t},this.monitorPayloadChunker={endpoint:"/monitor",maxPayloadSize:65536,localStorageKey:"jts_cached_monitorlogs",localStorageLifetimeMs:3e5,_getByteLength:function(t){return new Blob([t]).size},_isTagExecuted:function(t){return t.trigger&&t.trigger.executed===!0},_chunkTags:function(t,n){for(var r=e.monitorPayloadChunker,a=65536,o=[],s={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:[]},d=JSON.stringify(s),f=r._getByteLength(d)-2,c=[],l=f+2,u=0;u<t.length;u++){var _=JSON.stringify(t[u]),p=r._getByteLength(_)+(c.length?1:0);if(p+f+2>a){var g={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:[t[u]]};o.push(g),r.saveChunkToLocalStorage(g);continue}if(l+p>a){var h={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:c};o.push(h),c=[t[u]],l=f+2+r._getByteLength(_)}else c.push(t[u]),l+=p}if(c.length){var T={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:c};o.push(T)}return o},_mergeTagsByEventDocumentId:function(t){for(var n=t,r={},a=0;a<n.length;a++){var o=n[a],s=o.eventDocumentId;if(r[s])r[s].tags=r[s].tags.concat(o.tags);else{var d={};for(var f in o)o.hasOwnProperty(f)&&(f==="tags"?d.tags=o.tags.slice():d[f]=o[f]);r[s]=d}}var c=[];for(var l in r)r.hasOwnProperty(l)&&c.push(r[l]);return c},saveChunkToLocalStorage:function(t){var n=e.monitorPayloadChunker,r=[],a=e.getLocalStorageItem(n.localStorageKey);a&&(r=JSON.parse(a)),r.push(t),e.setLocalStorageItem(n.localStorageKey,JSON.stringify(r),n.localStorageLifetimeMs)},chunkPayloadObject:function(t){for(var n=e.monitorPayloadChunker,r=t.tags||[],a=[],o={consent:t.consent,debugid:t.debugid,docs:t.docs,eventDocumentId:t.eventDocumentId,state:t.state,tags:[]},s=0;s<r.length;s++)n._isTagExecuted(r[s])?a.push(r[s]):o.tags.push(r[s]);var d=n._chunkTags(a,t);return{executed:d,notExecuted:o.tags.length>0?[o]:[]}},sendChunk:function(t){var n=e.monitorPayloadChunker,r=JSON.stringify(t),a=window.jentis.tracker.sendBeaconStream({endpoint:n.endpoint,data:r});return a},resolveMonitorChunks:function(t){for(var n=e.monitorPayloadChunker,r=n.chunkPayloadObject(t)||{executed:[],notExecuted:[]},a=!0,o=0;o<r.executed.length;o++)if(a=n.sendChunk(r.executed[o]),!a){for(var s=o;s<r.executed.length;s++)n.saveChunkToLocalStorage(r.executed[s]);break}for(var o=0;o<r.notExecuted.length;o++)n.saveChunkToLocalStorage(r.notExecuted[o])}
1,retryUnsentMonitorChunksFromLocalStorage:function(){var t=e.monitorPayloadChunker,n=[],r=e.getLocalStorageItem(t.localStorageKey);if(r&&(n=t._mergeTagsByEventDocumentId(JSON.parse(r))),n.length!==0){for(var a=0;a<n.length;a++){var o=n[a];window.jentis.tracker.sendHTTPStream({endpoint:t.endpoint,data:JSON.stringify(o),method:"POST",contentType:"application/json",withCredentials:!1})}window.localStorage.removeItem(t.localStorageKey)}}}}),window.jentis.helper.init(),window.jentis=window.jentis||{},window.jentis.consent=window.jentis.consent||{},window.jentis.consent.config={bridge:{vendorsDefault:{consentMode:0,vendorCategory:""}},vendors:{"google_analytics_4_server-side":{vendorCategory:"statistic",consentMode:0,googleConsentMode:{ad_storage:!1,analytics_storage:!0,ad_user_data:!1,ad_personalization:!1}},facebook:{vendorCategory:"marketing",consentMode:0},adwords:{vendorCategory:"marketing",consentMode:0,googleConsentMode:{ad_storage:!0,analytics_storage:!1,ad_user_data:!0,ad_personalization:!0}},cstm_google_ads_1:{vendorCategory:"",consentMode:0,googleConsentMode:{ad_storage:!0,analytics_storage:!0,ad_user_data:!0,ad_personalization:!0}}}},window.jentis=window.jentis||{},window.jentis.consent=window.jentis.consent||{},window.jentis.consent.engine=new function(){this.init=function(){this.v="2",this.setV2MappingMigration(),this.setFallbackConfiguration(),this.aEventCache={},this.bNewVendorConsent=!1,this.sConsentId=!1,this.bUserConsent=!1,this.iLastUpdate=!1,this.bSend=!1,this.aStorage={},this.vendorsConsentModeFromStorage={},this.aInitStorage={},this.bStartTrack=null,this.consentData={},this.optedOutVendors=[],this.bIframe=window.self!==window.top,this.readStorage(),this.init_eventlistener(),this.init_consentStatus();var e=this.checkifBarShow();this.startJentisTracking(e)},this.setV2MappingMigration=function(){typeof window.jentis.consent.v2mapper<"u"?this.vendorV2Migration=window.jentis.consent.v2mapper:this.vendorV2Migration={adformDMP:"adformdmp",ga:"googleanalytics",fb:"facebook",partnerizeservertoserver:"partnerize",googleoptimize:"googleopt",cjaffiliate:"cj-affiliate",scrolltracker:"scrolltracker"}},this.setFallbackConfiguration=function(){typeof window.jentis.consent.config<"u"?(Object.keys(window.jentis.consent.config.vendors).length===0&&(window.jentis.consent.config.vendors={"*":{category:{id:"fallback"},vendor:{id:"*",name:"",street:"",zip:"",country:{iso:"-",name:""}},purpose:{id:"other",name:"Other"},justification:{id:"other",name:"other"},consentMode:1,description:""}}),this.oLocalConfData=window.jentis.consent.config):(console.log("jentis.consent.engine config not found - fallback config"),this.oLocalConfData={timeoutBarShow:-1,backward:{},bModeStartInitTrackOnNoConsentMode:!0,template:{},vendors:{"*":{category:{id:"fallback"},vendor:{id:"*",name:"",street:"",zip:"",country:{iso:"-",name:""}},purpose:{id:"other",name:"Other"},justification:{id:"other",name:"other"},consentMode:1,description:""}}})},this.startJentisTracking=function(e){var t=!1;for(var n in this.oLocalConfData.vendors){var r=this.oLocalConfData.vendors[n];if(r.consentMode===0||r.consentMode===2){if(typeof this.sConsentId<"u"&&this.sConsentId!==!1&&e===!1&&(this.aStorage[n]===!0||this.aStorage[n]==="ncm")){t=!0;break}}else if(r.consentMode===1){if(typeof this.sConsentId<"u"&&this.sConsentId!==!1&&this.aStorage[n]===!1)continue;t=!0;break}}t===!0&&this.bStartTrack!==!0?window.jentis.helper.setEvent("jentis.consent.engine","minimal-consent-given",null,!0):t===!1&&window.jentis.helper.setEvent("jentis.consent.engine","no-consent-given",null,!0),this.bStartTrack=t},this.init_consentStatus=function(){if(this.sConsentId===!1)var e={};else var e=this.aStorage;this.bNewVendorConsent=!1,this.bWriteStorage=!1;var t=!1;for(var n in this.oLocalConfData.vendors){var r=this.oLocalConfData.vendors[n];typeof e[n]>"u"?r.consentMode===0||r.consentMode===2?this.bNewVendorConsent=!0:r.consentMode===1&&(e[n]=!0,t=!0,window.jentisApp.delayInitForConsent||(this.bWriteStorage=!0),window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0):typeof this.vendorsConsentModeFromStorage[n]<"u"?this.vendorsConsentModeFromStorage[n]!==r.consentMode&&(r.consentMode===0||r.consentMode===2?this.bNewVe
1ndorConsent=!0:r.consentMode===1&&(e[n]=!0,t=!0),this.bWriteStorage=!0):r.consentMode===1&&(e[n]=!0,t=!0,this.bWriteStorage=!0)}Object.keys(e).length>1&&typeof e["*"]<"u"&&(delete e["*"],this.bWriteStorage=!0),this.aInitStorage=this.copyObject(e);var a=!1,o=!1;this.bSend===!1&&this.sConsentId!==!1&&(a=!0,o=!0),this.bSend===!1&&t===!0&&this.oLocalConfData.bModeStartInitTrackOnNoConsentMode===!0&&(a=!0,o=!1),this.bSend===!0&&this.sConsentId!==!1&&this.bNewVendorConsent===!0&&(a=!0,o=!0),this.bWriteStorage?this.writeStorage(e,a,!0,!1,o):a&&this.writeStorage(e,a,!1,!1,o),window.jentis.helper.setEvent("jentis.consent.engine","init",null,!0)},this.checkifBarShow=function(){return Object.keys(this.aStorage).length===0||this.sConsentId===!1||this.bUserConsent===!1||this.bNewVendorConsent===!0||this.iLastUpdate===!1||typeof this.oLocalConfData.timeoutBarShow<"u"&&this.oLocalConfData.timeoutBarShow!==!1&&this.iLastUpdate+this.oLocalConfData.timeoutBarShow<Date.now()?(window.jentis.helper.setEvent("jentis.consent.engine","show-bar",null,!0),!0):!1},this.readStorage=function(){var e=window.jentis.helper.readCookie("jts_cmp")||!1,t=null;if(e?(t=JSON.parse(e),window.jentis.helper.setCookie({name:"jts_cmp",value:"",exdays:-1,sameSite:"Strict"})):t=window.jentis.helper.getLocalStorageItem("jentis.consent.data")||null,t){if(this.sConsentId=t.consentid,this.iLastUpdate=t.lastupdate,this.aStorage=t.vendors,this.bUserConsent=t.userconsent,this.consentData=t.data,typeof t.vendorsJustification<"u")for(var a in t.vendorsJustification)typeof t.vendorsJustification[a]<"u"&&t.vendorsJustification[a]!=="consent"?this.vendorsConsentModeFromStorage[a]=1:this.vendorsConsentModeFromStorage[a]=-1;typeof t.vendorsConsentMode<"u"&&(this.vendorsConsentModeFromStorage=t.vendorsConsentMode),typeof this.aStorage>"u"&&typeof this.oLocalConfData.backward<"u"&&typeof this.oLocalConfData.backward.vendorduplicate<"u"&&(this.aStorage=t[this.oLocalConfData.backward.vendorduplicate]);var o=!1;for(var s in this.aStorage){var d=this.vendorV2Migration[s];typeof d<"u"&&(this.aStorage[d]=this.aStorage[s],delete this.aStorage[s],o=!0)}o&&(t.vendors=this.aStorage,typeof this.aStorage>"u"&&typeof this.oLocalConfData.backward<"u"&&typeof this.oLocalConfData.backward.vendorduplicate<"u"&&(t[this.oLocalConfData.backward.vendorduplicate]=this.aStorage),this.store2LocalStorage(t));for(var n in this.aStorage)t.vendorsConsentMode[n]===1&&typeof this.aStorage[n]<"u"&&this.aStorage[n]===!1&&this.optedOutVendors.push(n);this.aInitStorage=this.copyObject(t.vendors),typeof t.send<"u"?this.bSend=t.send:this.bSend=!1}else{this.sConsentId=!1,this.iLastUpdate=!1,this.bSend=!1,this.aStorage={};for(var n in this.oLocalConfData.vendors){var r=this.oLocalConfData.vendors[n];r.consentMode===1?this.aStorage[n]=!0:this.aStorage[n]=!1}this.aInitStorage={}}},this.getTemplateConfig=function(){return typeof this.oLocalConfData<"u"?this.oLocalConfData:!1},this.getVendorConsent=function(e){return this.aStorage[e]},this.getAllConsents=function(){return this.aStorage},this.getConsentId=function(){return this.sConsentId},this.getVendorFullData=function(){var e={};for(var t in this.oLocalConfData.vendors)e[t]=this.oLocalConfData.vendors[t],e[t].status=this.aStorage[t];return e},this.getLastUpdateTime=function(){return this.iLastUpdate},this.getVendorsOfGCT=function(e){var t=e,n=[];if(typeof window.jentis.consent.config<"u"&&typeof window.jentis.consent.config.vendors<"u"&&Object.keys(window.jentis.consent.config.vendors).length>0){var r=window.jentis.consent.config.vendors;for(var a in r)typeof r[a].googleConsentMode<"u"&&typeof r[a].googleConsentMode[t]<"u"&&r[a].googleConsentMode[t]===!0&&n.push(a)}return n},this.getConsentOfGCT=function(e){var t=this.getVendorsOfGCT(e);if(t.length>0){for(var n=!1,r=0;r<t.length;r++){var a=this.getVendorConsent(t[r]);if(a===!0){n=!0;break}}return n}return null},this.setNewVendorConsentsIgnoreConsentMode=function(e){this.recognizeDisabledVendorOptedOutPattern(e),this.setNewVendorConsents(e,!0)},this.setNewVendorConsents=function(e,t){var n=!1;typeof t>"u"&&(t=!1);for(var r in e)if(this.aStorage[r]=e[r],!t){this.aStorage[r]===!1&&typeof this.oLocalConfData.vendors[r]<"u"&&typeof this.oLocalConfData.vendors[r].consentMode<"u"&&this.oLocalConfData.vendors[r].consentMode===2&&(this.aStorage[r]="ncm",window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0);var a=this.optedOutVendors.indexOf(r);typeof this.oLocalConfData.vendors[r]<"u"&&typeof this.oLocalConfData.vendors[r].consentMode<"u"&&this.oLocalConfData.vendors[r].consentMode===1&&(this.aStorage[r]!==!0?a<0&&(this.aStorage[r]=!0):a>-1&&this.optedOutVendors.splice(a,1))}for(var o in this.aStorage)window.jentisApp&&window.jentisApp.delayInitForConsent&&this.aStorage[o]!=="undefined"&&this.aStorage[o]!==!1&&(window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0,n=!0);if(n){var s=window.jentis.helper.getLocalStorageItem("jentis.consent.data");s||(s=JSON.parse(window.jentis.helper.readCookie("jts_cmp"))),s&&typeof s.vendors<"u"&&(this.aInitStorage=s.vendors),this.sConsentId=s&&s.consentid?s.consentid:this.sConsentId}return this.writeStorage(this.aStorage,!0)},this.OptOut=function(){var e={};for(var t in this.oLocalConfData.vendors)e[t]=!1;return this.writeStorage(e,!0)},this.DenyAll=function(){var e={};for(var t in this.oLocalConfData.vendors){var n=this.oLocalConfData.vendors[t];n.consentMode===0?e[t]=!1:n.consentMode===2?e[t]="ncm":n.consentMode===1&&(this.optedOutVendors.indexOf(t)!==-1?e[t]=!1:e[t]=!0)}return this.setNewVendorConsents(e)},this.AcceptAll=function(){var e={};for(var t in this.oLocalConfData.vendors)e[t]=!0;return this.setNewVendorConsents(e)},this.userShowSettings=function(){window.jentis.helper.setEvent("jentis.consent.engine","user-show-settings",null,!0)},this.addEventListener=function(e,t){window.jentis.helper.addEventListener(e,t,!0)},this.init_eventlistener=function(){(function(e){document.addEventListener("jentis.consent.engine.setNewVendorConsents",function(t){e.setNewVendorConsents(t.details.vendors),window.jentis.helper.setEvent("jentis.consent.engine","external-NewVendorData",null,!0)},!1)})(this),(function(e){document.addEventListener("jentis.consent.engine.DenyAll",function(t){e.alldeny(),window.jentis.helper.setEvent("jentis.consent.engine","external-DenyAll",null,!0)},!1)})(this),(function(e){document.addEventListener("jentis.consent.engine.AcceptAll",function(t){e.allagree(),window.jentis.helper.setEvent("jentis.consent.engine","external-AcceptAll",null,!0)},!1)})(this)},this.checkStorageChange=function(e){var t=[],n={},r=!1,a=!1;for(var o in e)(typeof this.aInitStorage[o]>"u"||this.aInitStorage[o]===!1)&&e[o]===!0||typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]==="ncm"&&e[o]===!0||(typeof this.aInitStorage[o]>"u"||this.aInitStorage[o]===!1)&&e[o]==="ncm"?(t.push(o),n[o]=e[o],r=!0,a=!0):(typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]===!0&&e[o]===!1||typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]===!0&&e[o]==="ncm"||typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]==="ncm"&&e[o]===!1||typeof this.aInitStorage[o]>"u"&&e[o]===!1)&&(r=!0,n[o]=e[o],a=!0);return t.length>0&&window.jentis.helper.setEvent("jentis.consent.engine","vendor-ad
1d",t,!0),r===!0&&window.jentis.helper.setEvent("jentis.consent.engine","vendor-change",e,!0),this.aInitStorage=this.copyObject(e),[n,a]},this.writeStorage=function(e,t,n,r,a){typeof a>"u"&&(a=!0),this.bUserConsent=a,this.sConsentId===!1&&t===!0&&(this.sConsentId=this.uuidv4()),typeof t>"u"&&(t=!0),typeof r>"u"&&(r=!0),(typeof n>"u"||n===!0)&&(this.iLastUpdate=Date.now());var o={consentid:this.sConsentId,lastupdate:this.iLastUpdate,vendors:e,vendorsConsentMode:this.getConsentModePerVendor(),send:t,userconsent:a,data:this.consentData};typeof this.oLocalConfData.backward<"u"&&typeof this.oLocalConfData.backward.vendorduplicate<"u"&&(o[this.oLocalConfData.backward.vendorduplicate]=e),this.store2LocalStorage(o),this.aStorage=e;var s=this.checkStorageChange(e),d=s[0],f=s[1];return o.vendorsChanged=d,t===!0&&f===!0&&(window.jentis.helper.setEvent("jentis.consent.engine","send-consent-data",o,!0),this.bSend=!0),r===!0&&this.startJentisTracking(!1),this.sConsentId},this.store2LocalStorage=function(e){var t=window.jentis.helper.setLocalStorageItem("jentis.consent.data",e);t||window.jentis.helper.setCookie({name:"jts_cmp",value:JSON.stringify(e),exdays:365,sameSite:"Strict"})},this.getConsentModePerVendor=function(){var e={};for(var t in this.oLocalConfData.vendors)typeof this.oLocalConfData.vendors[t].consentMode<"u"&&this.oLocalConfData.vendors[t].consentMode!==null&&(e[t]=this.oLocalConfData.vendors[t].consentMode);return e},this.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e=="x"?t:t&3|8;return n.toString(16)})},this.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},this.setConsentData=function(e){typeof e<"u"&&Object.prototype.toString.call(e)==="[object Object]"?this.consentData=e:window.jentis.helper.logError("J-Consent Engine","setConsentData > Passed Parameter is not a JSON!")},this.getConsentData=function(){return this.consentData},this.recognizeDisabledVendorOptedOutPattern=function(e){for(var t in e)if(typeof this.oLocalConfData.vendors[t]<"u"&&typeof this.oLocalConfData.vendors[t].consentMode<"u"&&this.oLocalConfData.vendors[t].consentMode===1&&e[t]===!1)this.optedOutVendors.push(t);else{var n=this.optedOutVendors.indexOf(t);n>-1&&this.optedOutVendors.splice(n,1)}},this.addEventListener=function(e,t){window.jentis.helper.addEventListener(e,t,!0)},this.resetConsent=function(){this.aStorage={},this.store2LocalStorage(null),window.jentis.tracker.log("J-Consent Engine","Consent has been reset."),window.jentis.tracker.resetCachedTrackingData()}},window.jentis.consent.engine.init(),window.jentis=window.jentis||{},window.jentis.vendor=window.jentis.vendor||{},window.jentis.vendor.cmp_bridge_shopify=new function(){var e=this;this.init=function(){this.consentEngineReady=!1,this.cmpReady=!1,this.templateConfig=window.jentis.consent.engine.getTemplateConfig(),this.bridgeConfig=this.templateConfig.bridge,this.vendorConfig=this.templateConfig.vendors,this.activeShopifyTrackingGroups={},this.listenConsentEngine(),this.listenCMP()},this.listenConsentEngine=function(){var t=window.document;typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&(t=window.jentis.consent.engine),(function(n,r){r.addEventListener("jentis.consent.engine.init",function(a){n.consentEngineReady=!0,n.startTracking()})})(this,t)},this.listenCMP=function(){if(window.jentis.shopifyApp&&window.jentis.shopifyApp.customerPrivacy&&window.jentis.shopifyApp.customerPrivacy.addObserver)this.cmpReady=!0,window.jentis.shopifyApp.customerPrivacy.addObserver(this.restructureCMPInfo);else if(typeof window.Shopify<"u"&&typeof window.Shopify.customerPrivacy<"u"){this.cmpReady=!0;var t={customerPrivacy:{}};document.addEventListener("visitorConsentCollected",function(n){t.customerPrivacy=n.detail||{},window.jentis.vendor.cmp_bridge_shopify.restructureCMPInfo(t)}),t.customerPrivacy.preferencesAllowed=window.Shopify.customerPrivacy.preferencesProcessingAllowed(),t.customerPrivacy.analyticsAllowed=window.Shopify.customerPrivacy.analyticsProcessingAllowed(),t.customerPrivacy.marketingAllowed=window.Shopify.customerPrivacy.marketingAllowed(),t.customerPrivacy.saleOfDataAllowed=window.Shopify.customerPrivacy.saleOfDataAllowed(),this.restructureCMPInfo(t)}},this.restructureCMPInfo=function(t){typeof t<"u"&&typeof t.customerPrivacy<"u"&&(e.activeShopifyTrackingGroups=t.customerPrivacy),e.startTracking()},this.getVendorValue=function(t,n,r){return typeof t[n]<"u"&&typeof t[n][r]<"u"?t[n][r]:t.NOTCONFIGUREDVENDOR[r]},this.startTracking=function(){if(this.consentEngineReady&&this.cmpReady){var t=window.jentis.consent.engine.getVendorFullData(),n={};for(var r in t){var a=t[r],o=!1;if(a.consentMode===0||a.consentMode===2){var s=this.getVendorValue(this.vendorConfig,r,"vendorCategory");s=s.toLowerCase(),typeof this.activeShopifyTrackingGroups<"u"&&(s==="statistic"?typeof this.activeShopifyTrackingGroups.analyticsProcessingAllowed<"u"?o=this.activeShopifyTrackingGroups.analyticsProcessingAllowed:typeof this.activeShopifyTrackingGroups.analyticsAllowed<"u"&&(o=this.activeShopifyTrackingGroups.analyticsAllowed):s==="marketing"?typeof this.activeShopifyTrackingGroups.marketingAllowed<"u"&&(o=this.activeShopifyTrackingGroups.marketingAllowed):s==="preferences"&&(typeof this.activeShopifyTrackingGroups.preferencesProcessingAllowed<"u"?o=this.activeShopifyTrackingGroups.preferencesProcessingAllowed:typeof this.activeShopifyTrackingGroups.preferencesAllowed<"u"&&(o=this.activeShopifyTrackingGroups.preferencesAllowed)))}n[r]=o}Object.keys(n).length>0&&jentis.consent.engine.setNewVendorConsents(n)}},this.init()},window._jtsDataLayerContext=window._jtsDataLayerContext||[],window.jentis.tracker=new function(){this.sStoragePrefix="jentis_raw_controller_documentids",this.sPreviewStorageKey="jts_preview_version",this.sAutomationIdKey="jts_automation_id",this.sPreviewVersion=!1,this.sAutomationId=!1,this.oCache={},this.trackingConsentGiven=!1,this.trackOnlyConditionVariables=!1,this.oConsentListenerEngine=document,this.jtm={},this.jtm.state={},this.jtm.frontendLib={},this.hybridTracking={},this.hybridTracking.enabled=!1,this.datareceiver={},this.private={},this.cookieExtenderEnabled=!1,this.isNew={user:!0,session:!0},typeof window.jentis.config.jtm<"u"&&typeof window.jentis.config.jtm.cookieExtender<"u"&&typeof window.jentis.config.jtm.cookieExtender.enabled<"u"&&(this.cookieExtenderEnabled=window.jentis.config.jtm.cookieExtender.enabled),this.datareceiver.sendHTTPStream=function(e){try{if(typeof e.client_request_type>"u"||typeof e.client_request_type<"u"&&e.client_request_type==="iframe"){var t=window.document.createElement("iframe");t.height="0",t.width="0",t.style.display="none",t.style.visibility="hidden";var n=window.document.body&&window.document.body.lastChild||window.document.body||window.document.head;n.parentNode.insertBefore(t,n),t.src=e.stream}else if(typeof e.client_request_type<"u"&&e.client_request_type==="image"){var r=new Image;r.src=e.stream}}catch{window.jentis.tracker.log("J-DCP","[datareceiver.sendHTTPStream] [WARNING] datareceiver.sendHTTPStream - Error")}},this.pageChangeInit=function(){window.jentis.tracker.userCustomizable.reprocessCacheReset===!0&&(window.jentis.tracker.jtsFrontendTagCache=[],window.jentis.tracker.jtsFrontendTriggerCache=[],window.jentis.tracker.jtsEventCache=[])},this.init=function(){this.setUserCustomizationVariables(),this.createJentisTrackerNamespace(),this.createJentisCachingNamespace(),this.registerOnPageChangeEventsForPageInitializationTasks(),this.checkLogMode(),this.checkDebug(),this.checkAutomationId(),this.checkPreview()===!0&&(this.sPreviewVersion&&window.jentis.helper.monitorPayloadChunker.retryUnse
1ntMonitorChunksFromLocalStorage(),this.initRawdata(),this.triggerJSEventForPropagatingUserID(),this.loadCSSFileIfNecessary(),this.listenOnJSEventsFromCMP(),this.createListenerForPushCommands(),this.executePlugins(),this.createListenerForTriggersRelatedToJSEvents(),this.createListenerForStates(),window.jentis.helper.setEvent("jentis.tracker","init",null,!0))},this.createJentisTrackerNamespace=function(){window._jts=window._jts||[],window._jts.opush=window._jts.push,window.jentis.state=window.jentis.state||{},window.jentis.state.jentisdatalayersend=[],window.jentis.tracker.tracks=window.jentis.state.jentisdatalayersend},this.createJentisCachingNamespace=function(){this.jtsEventCache=[],this.jtsFrontendTagCache=[],this.jtsFrontendTriggerCache=[],this.jtsFrontendScopeOfTheStateCache={}},this.registerOnPageChangeEventsForPageInitializationTasks=function(){try{var e=history.pushState;history.pushState=function(){e.apply(history,arguments),window.jentis.tracker.pageChangeInit()}}catch{window.jentis.tracker.log("J-DCP","[WARNING] pushState not working in this browser!")}try{var t=history.replaceState;history.replaceState=function(){t.apply(history,arguments),window.jentis.tracker.pageChangeInit()}}catch{window.jentis.tracker.log("J-DCP","[WARNING] replaceState not working in this browser!")}window.addEventListener("popstate",function(n){n.state?typeof n.target<"u"&&typeof n.target.document<"u"&&typeof n.target.document.location<"u"&&typeof n.target.document.location.pathname<"u"&&window.jentis.tracker.pageChangeInit():n.state===null&&window.jentis.tracker.pageChangeInit()},!1)},this.triggerJSEventForPropagatingUserID=function(){var e=this.readDocumentID("user");e!==null&&window.jentis.helper.setEvent("jentis.tracker","jentis-userid",e,!0)},this.createListenerForPushCommands=function(){if(window.jentis.tracker.bLogMode===!0&&typeof window._jts=="object")for(var e=0;e<window._jts.length;e++)window.jentis.tracker.log("J-DCP : [JENTIS DL] - [AD01] Received _jts.push() - Command: "+window._jts[e].track+" | Tracking "+(window.jentis.config.trackingConsentGiven===!0?"allowed":"NOT allowed"),window._jts[e],!1,"AD01");window._jts.push=function(){for(var t=0;t<arguments.length;t++){var n=arguments[t];window.jentis.tracker.log("J-DCP : [JENTIS DL] - [AD01] Received _jts.push() - Command: "+n.track+" | Tracking "+(window.jentis.config.trackingConsentGiven===!0?"allowed":"NOT allowed"),n,!1,"AD01"),window._jts.opush(n)}}},this.createListenerForTriggersRelatedToJSEvents=function(){document.readyState=="loading"?document.addEventListener("DOMContentLoaded",window.jentis.tracker.startSelectorTracking):window.jentis.tracker.startSelectorTracking()},this.createListenerForStates=function(){for(var e in window.jentis.config.jtm.states)(function(t){window.jentis.config.jtm.states[t](function(){for(var n,r={},a="XMLHttpRequest",o=0;o<arguments.length;o++)typeof arguments[o]=="object"?window.jentis.tracker.isCorrectStateObjectFormat(arguments[o])?(typeof arguments[o].stateCallback<"u"&&(n=arguments[o].stateCallback),typeof arguments[o].contextualStateInformation<"u"&&(r=arguments[o].contextualStateInformation),typeof arguments[o].requestType<"u"&&(a=arguments[o].requestType)):Object.keys(r).length===0&&(r=arguments[o]):typeof arguments[o]=="function"&&(n=arguments[o]);window.jentis.tracker.executeState(t,window,r,a),typeof n=="function"&&n()})})(e)},this.isCorrectStateObjectFormat=function(e){var t=!1;return Object.keys(e).length>0&&(typeof e.stateCallback<"u"||typeof e.contextualStateInformation<"u"||typeof e.requestType<"u")&&(t=!0),t},this.loadCSSFileIfNecessary=function(){if(typeof window.jentis.config<"u"&&typeof window.jentis.config.loadcss<"u"&&typeof window.jentis.config.frontend.cdnhost<"u"&&window.jentis.config.loadcss===!0){var e=window.jentis.config.frontend.vers!=="_",t=e||window.jentis.config.frontend.env==="live"?"":"?env="+window.jentis.config.frontend.env,n=document.createElement("link");n.rel="stylesheet",n.id="jentis-styles",n.href=window.jentis.config.frontend.cdnhost+window.jentis.config.filehash+".css"+t,n.type="text/css",n.media="all",document.getElementsByTagName("head")[0].appendChild(n)}},this.listenOnJSEventsFromCMP=function(){(function(e){window.jentis.helper.addEventListener("jentis.consent.engine.init",function(){var t=window.jentis.consent.engine.getVendorFullData();if(typeof t["*"]<"u")window.jentis.tracker.log("J-DCP","[CONSENT] - [AC02] No CMP connection is defined and Consent Engine deactivated by user",!1,"AC02");else{var n="";typeof window.jentis.consent.config.bridge_name<"u"&&(n=window.jentis.consent.config.bridge_name),window.jentis.tracker.log("J-DCP","[CONSENT] - [AC01] CMP connection is defined, awaiting information: "+n,!1,"AC01")}},!0),window.jentis.helper.addEventListener("jentis.consent.engine.no-consent-given",function(){window.jentis.consent.engine.bUserConsent===!0?(window.jentis.tracker.log("J-DCP","[CONSENT] - User declined consent"),typeof window.jentis.config.jtm.syntheticUsers<"u"&&typeof window.jentis.config.jtm.syntheticUsers.previewEnabled<"u"&&window.jentis.config.jtm.syntheticUsers.previewEnabled===!0?(e.trackOnlyConditionVariables=!0,window.jentis.helper.enableClientCookies(),window.jentis.tracker.log("J-DCP : [SYNTHETIC USERS] - Tracking ONLY condition variables mode ACTIVATED."),e.startTracking()):(window.jentis.helper.disableClientCookies(),e.denyTracking())):(window.jentis.tracker.log("J-DCP","[CONSENT] - No positive consent given"),window.jentis.helper.disableClientCookies(),e.denyTracking())},!0),window.jentis.helper.addEventListener("jentis.consent.engine.send-consent-data",function(t){if(window.jentis.tracker.log("J-DCP : [CONSENT] - [AC04] Consent information received based on new or updated decision of user: ",window.jentis.consent.engine.getAllConsents(),!1,"AC04"),t.detail!==null){var n={track:"consent"};for(var r in t.detail)n[r]=t.detail[r];var a=void 0;if(typeof t.detail<"u"&&typeof t.detail.vendorsChanged<"u"&&Object.keys(t.detail.vendorsChanged).length>0){a={};for(var o in t.detail.vendors)typeof t.detail.vendorsChanged[o]<"u"&&(t.detail.vendorsChanged[o]===!0||t.detail.vendorsChanged[o]==="ncm")?a[o]=t.detail.vendorsChanged[o]:a[o]=!1}window.jentis.tracker.trackConsent(n),window.jentis.config.trackingConsentGiven===!0&&typeof a<"u"&&(window.jentis.tracker.trackOnlyConditionVariables=!1,window.jentis.helper.enableClientCookies(),window.jentis.tracker.trackCachedEvents(a),window.jentis.tracker.trackCachedFrontend(a))}},!0),window.jentis.helper.addEventListener("jentis.consent.engine.minimal-consent-given",function(){window.jentis.tracker.log("J-DCP : [CONSENT] - [AC03] Consent information received - data from storage used:",window.jentis.consent.engine.getAllConsents(),!1,"AC03"),e.trackOnlyConditionVariables=!1,window.jentis.helper.enableClientCookies(),e.startTracking()},!0)})(this)},this.executeState=function(e,t,n,r){window.jentis.tracker.log("J-DCP","[STATE] - [AS01] State executed: "+e,!1,"AS01");var a=window.jentis.tracker.createScopeOfTheStateObject(e,t,n,r);window.jentis.tracker.trackSynchronCase(a),window.jentis.tracker.buildEnrichmentJSONFromVariables(a.cacheForEnrichmentScope.enrichmentVariables,a),window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:a,variablesSortedByTrigger:a._cacheForHTTPVariables.httpVariables,callback:function(o){window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(a,!0),a,!0,o,function(s){if(window.jentis.config.trackingConsentGiven===!0){for(var d in s.triggerVariableExecutedForBackend)if(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:d,scopeOfTheState:a,variables:s.triggerVariableExecutedForBackend[d],cacheEnrichmentVariables:!0}),a.trigger[d].dependencies.length>0){var f=a.trigger[d];if(a.trigger[d]=window.jentis.tracker.allTriggerConditionsFulfilled({scopeOfTheState:a,over
1writeTrigger:f.trigger,triggerName:d,cacheEnrichmentVariables:!0}),a.trigger[d].backendFulfilled===!0){var c=window.jentis.tracker.collectVariablesFromTriggerIncludingExcludeTriggers(d);c.length>0&&(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:d,scopeOfTheState:a,variables:c,cacheEnrichmentVariables:!0}),window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+d+" in scope Server-Side",!1,"AS02"),a.bIsThereDataToSendToBackend=!0)}}}window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:a,variablesSortedByTrigger:a._cacheForHTTPVariables.httpVariables,callback:function(l){window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(a,!0),a,!0,l,function(u){(a.bIsThereDataToSendToBackend===!0||window.jentis.tracker.getPreviewVersion())&&(a.httpvarsSortedPerTrigger=u.triggerVariableCacheForBackend,window.jentis.tracker.sendDocumentsToJENTIS({scopeOfTheState:a})),window.jentis.tracker.trackAsyncCase(a,"async-variables",a._cacheForHTTPVariables),a.cacheForEnrichmentScope.enrichmentVariables.length>0&&(function(_){window.jentis.tracker.log("J-DCP","[ENRICHMENT][FRONTEND] Started for: "+_.cacheForEnrichmentScope.enrichmentVariables),window.jentis.tracker.getEnrichmentOfVariables(_,function(p){if(typeof p<"u"&&typeof p.response=="string"){var g={};try{g=JSON.parse(p.response),window.jentis.tracker.log("J-DCP : [ENRICHMENT][FRONTEND] Received: ",g)}catch{window.jentis.tracker.logError("[ENRICHMENT][FRONTEND] Error: "+p.response)}typeof g<"u"&&(window.jentis.tracker.mergeEnrichedVariablesToScope(_,g),window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(_,!1),_,!1,u,function(){window.jentis.tracker.trackAsyncCase(_,"enrichment-variables",_.cacheForEnrichmentScope)}))}})})(a)})}})})}})},this.private.getArrayOfAllBlockedDependencies=function(e,t){var n=[];for(var r in e.blockedVariablesDueToReferenceMissing)for(var a=0;a<e.blockedVariablesDueToReferenceMissing[r].dependencies.length;a++)typeof t<"u"&&t===!0?window.jentis.tracker.isVariableOfTypeEnrichment(e.blockedVariablesDueToReferenceMissing[r].dependencies[a])===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(n,[e.blockedVariablesDueToReferenceMissing[r].dependencies[a]]):window.jentis.tracker.mergeArrayWithoutDuplicates(n,[e.blockedVariablesDueToReferenceMissing[r].dependencies[a]]);return n},this.evaluateDependendVariables=function(e,t,n,r,a){var o=0,s=r,d=[];e.length>0?window.jentis.tracker.evaluateDependendVariable({scopeOfTheState:t,blockedVariableName:e[o],cacheEnrichmentVariables:n,masterKeys:e,masterIndex:o,masterCallback:a,xReturnObject:s,callback:window.jentis.tracker.private.callback_evaluateDependendVariable,endlessLoopChain:d}):a(s)},this.private.callback_evaluateDependendVariable=function(e){var t=e.scopeOfTheState,n=e.masterIndex,r=e.masterKeys,a=e.masterCallback,o=e.cacheEnrichmentVariables,s=e.xReturnObject,d=e.endlessLoopChain;n++,n===r.length?a(s):window.jentis.tracker.evaluateDependendVariable({scopeOfTheState:t,blockedVariableName:r[n],cacheEnrichmentVariables:o,masterKeys:r,masterIndex:n,masterCallback:a,xReturnObject:s,callback:window.jentis.tracker.private.callback_evaluateDependendVariable,endlessLoopChain:d})},this.evaluateDependendVariable=function(e){var t=e.scopeOfTheState,n=e.blockedVariableName,r=e.cacheEnrichmentVariables,a=e.masterKeys,o=e.masterIndex,s=e.masterCallback,d=e.callback,f=e.xReturnObject,c=e.endlessLoopChain,l=[];typeof t.blockedVariablesDueToReferenceMissing[n]<"u"&&typeof t.blockedVariablesDueToReferenceMissing[n].dependencies<"u"&&(l=t.blockedVariablesDueToReferenceMissing[n].dependencies);for(var u=!0,_=0;_<l.length;_++){var p=l[_];if(r===!0&&window.jentis.tracker.isVariableOfTypeEnrichment(p)===!0){u=!1;continue}if(typeof t.blockedVariablesDueToReferenceMissing[p]<"u"&&t.blockedVariablesDueToReferenceMissing[p].dependencies.length>0){u=!1;continue}if(typeof t._variables[p]>"u"){u=!1;continue}t.blockedVariablesDueToReferenceMissing[n].dependencies.splice(_,1),_-=1}if(u===!0){var g=a.indexOf(n);a.splice(g,1),g<=o&&(o-=1),c.indexOf(n)>-1?d({scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:f,endlessLoopChain:c}):c.push(n);var h=[];if(typeof t.blockedVariablesDueToReferenceMissing[n]<"u"&&typeof t.blockedVariablesDueToReferenceMissing[n].triggers<"u"&&(h=t.blockedVariablesDueToReferenceMissing[n].triggers),h.length>0)if(window.jentis.tracker.isVariableTriggerRelated(n)===!0){for(var T=0;T<h.length;trigger++){var b=window.jentis.tracker.getValueOfVariable({variableName:n,triggerName:h[T].triggerName,scopeOfTheState:t});window.jentis.tracker.log("J-DCP : [DEPENDENCY-CHECKER][EVALUATE] Variable: "+n+" | Value: "+b+" | Trigger: "+h[T].triggerName)}
1d({scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:f,endlessLoopChain:c})}else{var k=h[0].triggerName;if(typeof t._cacheForHTTPVariables.httpVariables[h[0].triggerName]<"u"&&t._cacheForHTTPVariables.httpVariables[h[0].triggerName].indexOf(n)>-1){var y={};y[k]=[n],window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:t,variablesSortedByTrigger:y,callback:function(m){window.jentis.tracker.mergeJsonWithOnePropertyArray(f.triggerVariableCacheForBackend,m.triggerVariableCacheForBackend),window.jentis.tracker.mergeJsonWithOnePropertyArray(f.triggerVariableExecutedForBackend,m.triggerVariableExecutedForBackend),m.consent!==!1?window.jentis.tracker.private.callback_afterDependendVariableEvaluated({variableName:n,scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,callback:d,xReturnObject:f,endlessLoopChain:c}):d({scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:f,endlessLoopChain:c})}})}else{var b=window.jentis.tracker.getValueOfVariable({variableName:n,triggerName:h[0].triggerName,scopeOfTheState:t});window.jentis.tracker.private.callback_afterDependendVariableEvaluated({variableName:n,scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,callback:d,xReturnObject:f,endlessLoopChain:c})}}else window.jentis.tracker.isConsentGivenForVariable(n)?window.jentis.tracker.private.callback_afterDependendVariableEvaluated({variableName:n,scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,callback:d,xReturnObject:f,endlessLoopChain:c}):d({scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:f,endlessLoopChain:c})}else d({scopeOfTheState:t,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:f,endlessLoopChain:c})},this.mergeJsonWithOnePropertyArray=function(e,t){this.mergeJsonWithOnePropertyArray=function(n,r){if(typeof n>"u")n=r;else for(var a in r)typeof n[a]>"u"&&(n[a]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(n[a],r[a])}},this.private.callback_afterDependendVariableEvaluated=function(e){var t=e.variableName,n=e.scopeOfTheState,r=e.cacheEnrichmentVariables,a=e.masterKeys,o=e.masterIndex,s=e.masterCallback,d=e.callback,f=e.xReturnObject,c=e.endlessLoopChain;if(window.jentis.tracker.log("J-DCP : [DEPENDENCY-CHECKER][EVALUATE] Variable: "+t+" | Value: "+n._variables[t]),typeof n._cacheForHTTPVariables.referenceCache[t]<"u"){var l=[];for(var u in n._cacheForHTTPVariables.referenceCache[t])l.push(u);window.jentis.tracker.evaluateDependendVariables(l,n,r,{triggerVariableExecutedForBackend:{},triggerVariableCacheForBackend:{}},function(){delete n._cacheForHTTPVariables.referenceCache[t],d({scopeOfTheState:n,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:f,endlessLoopChain:c})})}else d({scopeOfTheState:n,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:f,endlessLoopChain:c})},this.createScopeOfTheStateObject=function(e,t,n,r){var a={};return a.stateEventID=this.createDocumentID("event"),a.primaryKey=window.jentis.tracker.getNewTrackId(),a.bIsThereDataToSendToBackend=!1,a.bIsThereAFrontendTriggerBecauseOfConsentMissing=!1,a.timestamp=Date.now(),a.state=e,a.element=t,a.contextualStateInformation=n,a.requestType=r,a.oVars={USER:{},SESSION:{},EVENT:{},CONSENT:{}},a._variables={},a._cacheForHTTPVariables={tags:{},backend:{},httpVariables:{},triggers:{},referenceCache:{}},a.cacheForEnrichmentScope={triggers:{},tags:{},enrichmentVariables:[],referenceCache:{}},a.trigger={},a.tagsWaitingBecauseOfExcludeTrigger={},a.triggerWaitingForConsent=[],a.blockedVariablesDueToReferenceMissing={},a},this.mergeEnrichedVariablesToScope=function(e,t){for(var n in t)for(var r in t[n])e._variables[r]=t[n][r]},this.trackSynchronCase=function(e){for(var t in window.jentis.config.jtm.trigger)if(window.jentis.config.jtm.trigger[t].state===e.state||typeof window.jentis.config.jtm.trigger[t].state>"u"&&t===e.state){if(e.trigger[t]=window.jentis.tracker.allTriggerConditionsFulfilled({scopeOfTheState:e,triggerName:t,cacheEnrichmentVariables:!0,cacheHTTPVariables:!0}),e.trigger[t].dependencies.length>0&&(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:t,scopeOfTheState:e,variables:e.trigger[t].dependencies,cacheEnrichmentVariables:!0}),window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+t+" in scope Server-Side, because of dependency",!1,"AS02")),e.trigger[t].backendFulfilled===!0){var n=window.jentis.tracker.collectVariablesFromTriggerIncludingExcludeTriggers(t);n.length>0&&(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:t,scopeOfTheState:e,variables:n,cacheEnrichmentVariables:!0}),window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+t+" in scope Server-Side",!1,"AS02"),e.bIsThereDataToSendToBacken
1d=!0)}if(typeof window.jentis.config.jtm.trigger[t].tags<"u"&&window.jentis.config.jtm.trigger[t].tags.length>0||typeof window.jentis.config.jtm.trigger[t].codeblocks<"u"&&window.jentis.config.jtm.trigger[t].codeblocks.length>0)if(e.trigger[t].frontendFulfilled===!0||e.trigger[t].frontendFulfilled===!1&&(e.trigger[t].dependencies.length>0||e.trigger[t].enrichmentVariables.length>0||e.trigger[t].httpVariables.length>0))e.trigger[t].frontendFulfilled===!1&&e.trigger[t].enrichmentVariables.length>0&&(window.jentis.tracker.mergeArrayWithoutDuplicates(e.cacheForEnrichmentScope.enrichmentVariables,e.trigger[t].enrichmentVariables),e.cacheForEnrichmentScope.triggers[t]=e.trigger[t].trigger),e.trigger[t].frontendFulfilled===!1&&(e.trigger[t].dependencies.length>0||e.trigger[t].httpVariables.length>0)&&(e._cacheForHTTPVariables.triggers[t]=e.trigger[t].trigger),window.jentis.config.jtm.trigger[t].codeblocks.length>0&&(e.trigger[t].frontendFulfilled===!0&&typeof e._cacheForHTTPVariables.httpVariables[t]<"u"&&e._cacheForHTTPVariables.httpVariables[t].length>0?e._cacheForHTTPVariables.triggers[t]=e.trigger[t].trigger:e.trigger[t].frontendFulfilled===!0&&(e.trigger[t].dependencies.length>0||e.trigger[t].trigger.excludeTrigger.length===0)&&(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+t+" in scope Client-Side",!1,"AS02"),window.jentis.tracker.executeCodeblocks({triggerName:t,scopeOfTheState:e}))),window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:e,triggerName:t,cacheHTTPVariables:!0,cacheEnrichmentVariables:!0});else for(var r=0;r<e.trigger[t].trigger.tags.length;r++)window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:e,frontendTag:window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[e.trigger[t].trigger.tags[r]]),frontendTagID:e.trigger[t].trigger.tags[r],triggerName:t})}window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(e)},this.trackAsyncCase=function(e,t,n){var r=!1;t==="async-variables"&&(r=!0);for(var a in n.triggers){var o=n.triggers[a];if(o.trigger=a,e.trigger[a]=window.jentis.tracker.allTriggerConditionsFulfilled({triggerName:a,overwriteTrigger:o,scopeOfTheState:e,cacheEnrichmentVariables:r}),e.trigger[a].frontendFulfilled===!1)if(e.trigger[a].frontendHTTPConditionIncludedWithoutConsent.length===0&&e.trigger[a].enrichmentConditionIncludedInReferences.length===0)for(var s=0;s<e.trigger[a].trigger.tags.length;s++)t==="async-variables"&&typeof n.tags[e.trigger[a].trigger.tags[s]]>"u"&&typeof e.cacheForEnrichmentScope.tags[e.trigger[a].trigger.tags[s]]<"u"&&(n.tags[e.trigger[a].trigger.tags[s]]=e.cacheForEnrichmentScope.tags[e.trigger[a].trigger.tags[s]]),window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:e,frontendTag:n.tags[e.trigger[a].trigger.tags[s]],frontendTagID:e.trigger[a].trigger.tags[s],triggerName:a}),delete e._cacheForHTTPVariables.tags[e.trigger[a].trigger.tags[s]],delete e.cacheForEnrichmentScope.triggers[a],delete e.cacheForEnrichmentScope.tags[e.trigger[a].trigger.tags[s]];else if(t==="async-variables"&&window.jentis.tracker.hasAConnectedTagToASpecificTriggerEnrichmentVariables(e,o.tags)===!0){e.cacheForEnrichmentScope.triggers[a]=o;for(var d=0;d<o.tags.length;d++)typeof n.tags[o.tags[d]]<"u"&&(e.cacheForEnrichmentScope.tags[o.tags[d]]=n.tags[o.tags[d]],delete n.tags[o.tags[d]])}else{var f=window.jentis.tracker.extractFrontendTagsConnectedToATriggerFromCache(e,o.tags,n);window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(e,a,f)}else e.trigger[a].trigger.excludeTrigger.length===0&&(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+o.trigger+" in scope Client-Side",!1,"AS02"),typeof e.trigger[a].trigger.codeblocks<"u"&&e.trigger[a].trigger.codeblocks.length>0&&window.jentis.tracker.executeCodeblocks({triggerName:a,scopeOfTheState:e}))}window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:e,overwriteTags:n.tags,cacheEnrichmentVariables:r}),window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(e),e.bIsThereAFrontendTriggerBecauseOfConsentMissing===!0&&(window.jentis.tracker.jtsFrontendScopeOfTheStateCache[e.primaryKey]=e)},this.hasAConnectedTagToASpecificTriggerEnrichmentVariables=function(e,t){for(var n=0;n<t.length;n++)if(typeof e.cacheForEnrichmentScope.tags[t[n]]<"u")return!0;return!1},this.extractFrontendTagsConnectedToATriggerFromCache=function(e,t,n){for(var r={},a=0;a<t.length;a++)typeof n.tags[t[a]]<"u"&&(r[t[a]]=n.tags[t[a]]);return r},this.executeCodeblocks=function(e){var t=e.scopeOfTheState,n=e.triggerName,r=t.trigger[n].trigger.codeblocks,a=e.funcCallback;typeof a>"u"&&(a=function(){});var o={accountvars:window.jentis.config.jtm.accountconstants,stateContext:t.contextualStateInformation,callback:a},s={triggername:n,setCookie:function(c){typeof c=="object"?window.jentis.helper.setCookie(c):window.jentis.tracker.logError("J-DCP","[setCookie] Argument must be of type object")},readCookie:function(c){return typeof c=="string"?window.jentis.helper.readCookie(c):(window.jentis.tracker.logError("J-DCP","[readCookie] Argument must be of type string"),null)},setLocalStorageItem:function(c,l,u){return window.jentis.helper.setLocalStorageItem(c,l,u)},getLocalStorageItem:function(c){return window.jentis.helper.getLocalStorageItem(c)},getFrontendVariable:(function(l,u){return function(_){var p=window.jentis.tracker.getValueOfVariable({variableName:_,triggerName:u,scopeOfTheState:l});return typeof p>"u"&&(typeof l._cacheForHTTPVariables.referenceCache[_]>"u"&&(l._cacheForHTTPVariables.referenceCache[_]={}),typeof l._cacheForHTTPVariables.referenceCache[_].codeblock>"u"&&(l._cacheForHTTPVariables.referenceCache[_].codeblock={},l._cacheForHTTPVariables.referenceCache[_].codeblock.triggerName=[]),l._cacheForHTTPVariables.referenceCache[_].codeblock.triggerName.indexOf(u)===-1&&l._cacheForHTTPVariables.referenceCache[_].codeblock.triggerName.push(u)),p}})(t,n)};if(typeof r<"u")for(var d=window.jentis.tracker.orderCodeblocks(r),f=0;f<d.length;f++){if(window.jentis.tracker.log("J-DCP","[CODEBLOCK] - [AS03] Codeblock executed: "+d[f].id,!1,"AS03"),typeof d[f].js=="function")try{d[f].js.apply(s,[o])}catch(c){window.jentis.tracker.logError("J-DCP: [CODEBLOCK] - [AS03]
1Error occurred while executing codeblock: "+d[f],c)}typeof d[f].css<"u"&&d[f].css.trim().length>0&&window.jentis.tracker.addElementToDOM("style",d[f].css)}t.trigger[n].trigger.codeblocks=[]},this.checkAndResolveFrontendTagsForScope=function(e){var t=typeof e.cacheHTTPVariables<"u"?e.cacheHTTPVariables:!1,n=typeof e.cacheEnrichmentVariables<"u"?e.cacheEnrichmentVariables:!1,r=typeof e.triggerName<"u"?e.triggerName:void 0,a=typeof e.overwriteTags<"u"?e.overwriteTags:void 0,o=typeof e.pushToCacheDirectly<"u"?e.pushToCacheDirectly:!1,s=typeof e.replayFromCache<"u"?e.replayFromCache:!1,d=window.jentis.tracker.resolveFrontendTagsRelatedToTrigger({scopeOfTheState:e.scopeOfTheState,cacheEnrichmentVariables:n,cacheHTTPVariables:t,triggerName:r,overwriteTags:a});window.jentis.tracker.decideWhatToDoWithFrontendTags({scopeOfTheState:e.scopeOfTheState,frontendTags:d,triggerName:r,cacheHTTPVariables:t,pushToCacheDirectly:o,replayFromCache:s})},this.addTriggerToWaitingCacheUntilConsentIsGiven=function(e,t,n,r){if(typeof r>"u"||typeof r<"u"&&r===!1){e.bIsThereAFrontendTriggerBecauseOfConsentMissing=!0;var a=window.jentis.tracker.getIndexOfJtsFrontendTriggerCacheEntry(e,t);if(e.triggerWaitingForConsent.indexOf(t)>-1&&a>-1)for(var o in n)window.jentis.tracker.jtsFrontendTriggerCache[a].tags[o]=n[o];else e.triggerWaitingForConsent.push(t),window.jentis.tracker.jtsFrontendTriggerCache.push({timestamp:e.timestamp,primaryKey:e.primaryKey,triggerName:t,tags:n,httpVariables:e.trigger[t].frontendHTTPConditionIncludedWithoutConsent})}else window.jentis.tracker.jtsFrontendTriggerCache.push({timestamp:e.timestamp,primaryKey:e.primaryKey,triggerName:t,tags:n,httpVariables:e.trigger[t].frontendHTTPConditionIncludedWithoutConsent})},this.getIndexOfJtsFrontendTriggerCacheEntry=function(e,t){for(var n=0;n<window.jentis.tracker.jtsFrontendTriggerCache.length;n++){var r=window.jentis.tracker.jtsFrontendTriggerCache[n];if(r.primaryKey===e.primaryKey&&r.triggerName===t)return n}return-1},this.decideWhatToDoWithFrontendTags=function(e){for(var t=e.scopeOfTheState,n=e.frontendTags,r=e.triggerName,a=typeof e.cacheHTTPVariables<"u"?e.cacheHTTPVariables:!1,o=t.state,s=t.element,d=typeof e.pushToCacheDirectly<"u"?e.pushToCacheDirectly:!1,f=0;f<n.length;f++){var c=n[f],l=r;if(typeof r>"u"&&(l=c.tag.trigger),typeof c.enrichmentVariables>"u"&&(c.enrichmentVariables=[]),c.enrichmentVariables.length>0||typeof t.trigger<"u"&&typeof t.trigger[l]<"u"&&typeof t.trigger[l].enrichmentVariables<"u"&&t.trigger[l].enrichmentVariables.length>0)window.jentis.tracker.mergeArrayWithoutDuplicates(t.cacheForEnrichmentScope.enrichmentVariables,c.enrichmentVariables),t.cacheForEnrichmentScope.tags[c.tag.tagID]=c.tag;else{var u=c.tag;if(u.httpVariables.length>0&&a===!0||typeof t.trigger<"u"&&typeof t.trigger[l]<"u"&&typeof t.trigger[l].httpVariables<"u"&&t.trigger[l].httpVariables.length>0){t._cacheForHTTPVariables.tags[c.tag.tagID]=c.tag;continue}if(typeof u.blockedVariables<"u"&&u.blockedVariables.length>0){a===!0?t._cacheForHTTPVariables.tags[c.tag.tagID]=c.tag:t.cacheForEnrichmentScope.tags[c.tag.tagID]=c.tag;continue}if(typeof t.triggerWaitingForConsent<"u"&&t.triggerWaitingForConsent.indexOf(l)>-1)continue;if(t.trigger[l].frontendFulfilled===!0&&t.trigger[l].trigger.excludeTrigger.length>0){typeof t.tagsWaitingBecauseOfExcludeTrigger[l]>"u"&&(t.tagsWaitingBecauseOfExcludeTrigger[l]=[]),t.tagsWaitingBecauseOfExcludeTrigger[l].push(c);continue}if(t.trigger[l].frontendFulfilled===!1){t._cacheForHTTPVariables.tags[c.tag.tagID]=c.tag;continue}var _=window.jentis.tracker.isEssentialModeFrontendTag(u),p=window.jentis.tracker.isTrackingAllowedForClientSideTag(u)===!0;p===!0&&d===!1?(window.jentis.tracker.sendFrontendTag(t,u),_===!0&&window.jentis.tracker.pushFrontendTagToCache(t,u,l,o,s,!0)):window.jentis.tracker.pushFrontendTagToCache(t,u,l,o,s)}}},this.isTrackingAllowedForClientSideTag=function(e){return window.jentis.config.trackingConsentGiven===!0&&(window.jentis.tracker.isConsentGiven(e.vendorID)===!0||window.jentis.tracker.isConsentGiven(e.vendorID)==="ncm"&&window.jentis.tracker.isEssentialModeFrontendTag(e)===!0)},this.isVendorEssentialConsentMode=function(e){if(typeof e>"u")return!1;var t=window.jentis.consent.engine.getVendorFullData();return typeof t[e]<"u"&&t[e].consentMode===2},this.isEssentialModeFrontendTag=function(e){return e.essential_mode_enabled===!0&&window.jentis.tracker.isVen
1dorEssentialConsentMode(e.vendorID)===!0},this.shouldReplayNormalCachedFrontendTag=function(e,t){if(typeof t>"u")return!0;var n=e.vendorID;return typeof t[n]<"u"?t[n]===!0||t[n]==="ncm":!1},this.shouldReplayCachedFrontendTag=function(e,t){return window.jentis.tracker.isEssentialModeFrontendTag(e.tag)===!0?!0:window.jentis.tracker.shouldReplayNormalCachedFrontendTag(e.tag,t)},this.pushFrontendTagToCache=function(e,t,n,r,a,o){var s={state:r,tag:t,element:a,trigger:{},timestamp:e.timestamp,_variables:e._variables,triggerForMonitor:e.triggerForMonitor,stateEventID:e.stateEventID};s.trigger[n]=e.trigger[n],window.jentis.tracker.jtsFrontendTagCache.push(s),o!==!0&&window.jentis.tracker.sendFrontendTagToMonitor(e,t)},this.startAsynchronousHTTPVariableEvaluation=function(e){var t=e.scopeOfTheState;t._variables=t._variables||{},t._cacheForHTTPVariables=t._cacheForHTTPVariables||{},t._cacheForHTTPVariables.httpVariables=t._cacheForHTTPVariables.httpVariables||{},t._cacheForHTTPVariables.referenceCache=t._cacheForHTTPVariables.referenceCache||{};var n=e.variablesSortedByTrigger,r=e.callback,a={};a.executedVariable={},a.triggerVariableExecutedForBackend={},a.triggerVariableCacheForBackend={};var o={},s=!1,d="",f=!1;for(var c in n)for(var l=0;l<n[c].length;l++){d=n[c][l],f=window.jentis.tracker.isConsentGivenForVariable(d);var u=d;if(typeof t.blockedVariablesDueToReferenceMissing[u]>"u"){if(typeof window.jentis.config.jtm.variables[u].dependencies<"u"&&window.jentis.config.jtm.variables[u].dependencies.length>0){for(var _=0;_<window.jentis.config.jtm.variables[u].dependencies.length;_++){var p=window.jentis.config.jtm.variables[u].dependencies[_];t._cacheForHTTPVariables.httpVariables[c].indexOf(p)>-1&&(typeof t._cacheForHTTPVariables.referenceCache[p]>"u"&&(t._cacheForHTTPVariables.referenceCache[p]={}),typeof t._cacheForHTTPVariables.referenceCache[p][u]>"u"&&(t._cacheForHTTPVariables.referenceCache[p][u]={},t._cacheForHTTPVariables.referenceCache[p][u].triggerName=[]),t._cacheForHTTPVariables.referenceCache[p][u].triggerName.indexOf(c)===-1&&t._cacheForHTTPVariables.referenceCache[p][u].triggerName.push(c))}typeof t.blockedVariablesDueToReferenceMissing[u]>"u"&&(t.blockedVariablesDueToReferenceMissing[u]={},t.blockedVariablesDueToReferenceMissing[u].dependencies=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[u].dependencies),t.blockedVariablesDueToReferenceMissing[u].triggers=[]),t.blockedVariablesDueToReferenceMissing[u].triggers.push({triggerName:c});continue}}else if(t.blockedVariablesDueToReferenceMissing[u].dependencies.length>0)continue;f||typeof window.jentis.config.jtm.variables[d]<"u"&&typeof window.jentis.config.jtm.variables[d].vendorids<"u"&&window.jentis.config.jtm.variables[d].vendorids.indexOf("*")>-1?(s=!0,typeof o[c]>"u"&&(o[c]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(o[c],[d])):typeof t._cacheForHTTPVariables<"u"&&typeof t._cacheForHTTPVariables.backend<"u"&&typeof t._cacheForHTTPVariables.backend[c]<"u"&&t._cacheForHTTPVariables.backend[c].indexOf(d)>-1&&(typeof a.triggerVariableCacheForBackend[c]>"u"&&(a.triggerVariableCacheForBackend[c]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(a.triggerVariableCacheForBackend[c],[d]))}if((window.jentis.config.trackingConsentGiven===!0||s===!0)&&Object.keys(o).length>0)for(var c in o)for(var g=window.jentis.tracker.cloneObject(o[c]),h=0;h<g.length;h++)window.jentis.tracker.getValueOfVariable({variableName:g[h],triggerName:c,scopeOfTheState:t,funcSendHTTPRequest:function(b,k){b.callback=k,window.jentis.tracker.sendHTTPStream(b)},funcCallback:(function(k,y,m,E,S){return function(C){typeof y.executedVariable[m]>"u"&&(y.executedVariable[m]={}),typeof y.triggerVariableExecutedForBackend[m]>"u"&&(y.triggerVariableExecutedForBackend[m]=[]),typeof y.executedVariable[m][E]>"u"&&(window.jentis.tracker.log("J-DCP","[VARIABLE] - Callback executed for variable: "+E+" | Value: "+C+" | Trigger: "+m),y.executedVariable[m][E]=!0,window.jentis.tracker.saveVariableToScope(k,m,E,C),o[m].splice(o[m].indexOf(E),1),window.jentis.tracker.mergeArrayWithoutDuplicates(y.triggerVariableExecutedForBackend[m],[E]),Object.keys(o[m]).length===0&&(
1delete o[m],delete k._cacheForHTTPVariables.httpVariables[m],Object.keys(o).length===0&&S({triggerVariableExecutedForBackend:y.triggerVariableExecutedForBackend,triggerVariableCacheForBackend:y.triggerVariableCacheForBackend,scopeOfTheState:k,consent:!0})))}})(t,a,c,g[h],r)});else r({triggerVariableCacheForBackend:a.triggerVariableCacheForBackend,scopeOfTheState:t,consent:!1})},this.addEnrichmentInformationToVariableScope=function(e,t){typeof t.oVars[e.toUpperCase()].enrichment<"u"&&Object.keys(t.oVars[e.toUpperCase()].enrichment).length>0&&(t.oVars[e.toUpperCase()].enrichment=window.jentis.tracker.buildEnrichmentJSONFromVariables(t.oVars[e.toUpperCase()].enrichment,t))},this.getEnrichmentOfVariables=function(e,t){this.sendHTTPStream({endpoint:"/enrichment",data:JSON.stringify(window.jentis.tracker.buildEnrichmentJSONFromVariables(e.cacheForEnrichmentScope.enrichmentVariables,e)),callback:t,method:"POST",contentType:"application/json",withCredentials:!0})},this.buildEnrichmentJSONFromVariables=function(e,t){for(var n={},r=0;r<e.length;r++)if(typeof window.jentis.config.jtm.variables[e[r]]<"u"&&typeof window.jentis.config.jtm.variables[e[r]].pluginID<"u"){var a=window.jentis.config.jtm.variables[e[r]].pluginID;if(typeof n[a]>"u"&&(n[a]={},n[a].arguments={},n[a].variables=[],typeof window.jentis.config.jtm.enrichment.plugins<"u"&&typeof window.jentis.config.jtm.enrichment.plugins[a]<"u"&&typeof window.jentis.config.jtm.enrichment.plugins[a].arguments<"u"))for(var o in window.jentis.config.jtm.enrichment.plugins[a].arguments)n[a].arguments[o]=window.jentis.tracker.getValueOfVariable({state:void 0,variableName:window.jentis.config.jtm.enrichment.plugins[a].arguments[o],scopeOfTheState:t});n[a].variables.indexOf(e[r])===-1&&n[a].variables.push(e[r])}return n},this.trackCachedEvents=function(e,n){var n=typeof n<"u"?n:0;typeof window.jentis.tracker.jtsEventCache[n]<"u"&&window.jentis.tracker.sendDocumentsToJENTIS({scopeOfTheState:window.jentis.tracker.jtsEventCache[n].scopeOfTheState,consent:e,disableCaching:!0,callback:(function(r,a){return function(){a+=1,window.jentis.tracker.trackCachedEvents(r,a)}})(e,n)})},this.trackCachedFrontend=function(e){window.jentis.tracker.evaluateCachedFrontendTriggers(function(t){for(var n=[];window.jentis.tracker.jtsFrontendTagCache.length;)n.push(window.jentis.tracker.jtsFrontendTagCache.shift());n=n.sort(function(r,a){return r.timestamp>a.timestamp?1:-1}),window.jentis.tracker.trackCachedFrontendTags(n,0,t,e)})},this.evaluateCachedFrontendTriggers=function(e){if(window.jentis.tracker.jtsFrontendTriggerCache.length===0)e(!1);else{for(var t=[];window.jentis.tracker.jtsFrontendTriggerCache.length;)t.push(window.jentis.tracker.jtsFrontendTriggerCache.shift());t=t.sort(function(c,l){return c.timestamp>l.timestamp?1:-1});for(var n=t.length,r=[],a=!1;t.length;){var o=t.shift(),s=o.triggerName,d={};if(d[s]=o.httpVariables,typeof window.jentis.tracker.jtsFrontendScopeOfTheStateCache[o.primaryKey]<"u"){var f=window.jentis.tracker.jtsFrontendScopeOfTheStateCache[o.primaryKey];window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:f,variablesSortedByTrigger:d,callback:(function(l,u,_,p){return function(g){var h=g.scopeOfTheState,T=p.triggerName,b=p.tags;window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(h,!0),h,!0,g,function(k){if(k.consent===!0){var y=window.jentis.tracker.allTriggerConditionsFulfilled({overwriteTrigger:h.trigger[T].trigger,scopeOfTheState:h});h.trigger[T]=y,y.frontendFulfilled===!0&&y.trigger.excludeTrigger.length===0?(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+T+" in scope Client-Side",!1,"AS02"),h.triggerWaitingForConsent.indexOf(T)>-1&&h.triggerWaitingForConsent.splice(h.triggerWaitingForConsent.indexOf(T),1),window.jentis.tracker.executeCodeblocks({triggerName:T,scopeOfTheState:h}),window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:h,overwriteTags:b,cacheHTTPVariables:!0,pushToCacheDirectly:!0}),window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(h,h.triggerWaitingForConsent),a=!0):y.frontendFulfilled===!1?(h.triggerWaitingForConsent.indexOf(T)>-1&&h.triggerWaitingForConsent.splice(h.triggerWaitingForConsent.indexOf(T),1),window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(h,h.triggerWaitingForConsent),a=!0):window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(h,T,b,!0)}else window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(h,T,b,!0);h.triggerWaitingForConsent.length===0?delete window.jentis.tracker.jtsFrontendScopeOfTheStateCache[h.primaryKey]:window.jentis.tracker.jtsFrontendScopeOfTheStateCache[h.primaryKey]=h,l.push({}),l.length===u&&_(a)})}})(r,n,e,o)})}}}},this.trackCachedFrontendTags=function(e,a,n,r){var a=typeof a<"u"?a:0;if(typeof e[a]<"u"){var o=e[a];if(typeof o<"u"){if(window.jentis.tracker.shouldReplayCachedFrontendTag(o,r)===!1){window.jentis.tracker.jtsFrontendTagCache.push(o),window.jentis.tracker.trackCachedFrontendTags(e,a+=1,n,r);return}if(window.jentis.tracker.isTrackingAllowedForClientSideTag(o.tag)===!0&&o.tag.httpVariables.length>0){var s={};s[o.tag.trigger]=o.tag.httpVariables;var d={};d[o.tag.tagID]=o.tag;var f={element:o.element,state:o.state,overwriteTags:d,timestamp:o.timestamp,_variables:o._variables,trigger:o.trigger,triggerForMonitor:o.triggerForMonitor,stateEventID:o.stateEventID,blockedVariablesDueToReferenceMissing:{},_cacheForHTTPVariables:{}};f._cacheForHTTPVariables.httpVariables={},f._cacheForHTTPVariables.httpVariables[o.tag.trigger]=o.tag.httpVariables,window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:f,variablesSortedByTrigger:s,callback:(function(c,l,u,_){return function(p){var g=p.scopeOfTheState;window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(g,!0),g,!1,p,function(h){window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:g,overwriteTags:g.overwriteTags,replayFromCac
1he:!0}),window.jentis.tracker.trackCachedFrontendTags(c,l+=1,u,_)})}})(e,a,n,r)})}else window.jentis.tracker.decideWhatToDoWithFrontendTags({scopeOfTheState:{element:o.element,state:o.state,timestamp:o.timestamp,_variables:o._variables,trigger:o.trigger,triggerForMonitor:o.triggerForMonitor,stateEventID:o.stateEventID,blockedVariablesDueToReferenceMissing:{}},frontendTags:[o],replayFromCache:!0}),window.jentis.tracker.trackCachedFrontendTags(e,a+=1,n,r)}else window.jentis.tracker.trackCachedFrontendTags(e,a+=1,n,r)}else n===!0&&window.jentis.tracker.trackCachedFrontend(r)},this.executePlugins=function(){if(typeof window.jentis.config.jtm.plugins<"u"){for(var e in window.jentis.config.jtm.plugins)if(typeof window.jentis.config.jtm.plugins[e]<"u"){var t=window.jentis.config.jtm.plugins[e];t.func.apply({pluginID:t.pluginID,config:t.config,jtsTracker:window.jentis.tracker},[])}}},this.startSelectorTracking=function(){for(var e in window.jentis.config.jtm.selectorActions)typeof window.jentis.config.jtm.selectorActions[e].selector<"u"&&typeof window.jentis.config.jtm.selectorActions[e].action<"u"&&(function(t){document.addEventListener(window.jentis.config.jtm.selectorActions[t].action,function(n){var r=!!n.target.closest(window.jentis.config.jtm.selectorActions[t].selector);r&&window.jentis.tracker.executeState(t,n.target,{},"sendBeacon")})})(e)},this.sendFrontendTag=function(e,t){try{if(e.executedFrontendTags=e.executedFrontendTags||[],e.executedFrontendTags.indexOf(t.tagID)<0){var n=window.jentis.tracker.getFrontendTrackerLibrary(t.pluginID,t.trackerID),r=window.jentis.config.jtm.pluginIDtoVendorID[t.pluginID][t.trackerID];t.func.apply(n,[{placeholder:t.placeholder,tagId:t.tagID,consent:window.jentis.tracker.isConsentGiven(r),scopeOfTheState:e}
1]),e.executedFrontendTags.push(t.tagID),window.jentis.tracker.log("J-DCP : [STATE] [TRIGGER] [TAG] - [AS04] Client-Side Tag Executed > Tool: "+t.pluginID+" | Tag-ID: "+t.tagID+" | Trigger: "+t.trigger,t.placeholder,!0,"AS04")}else t.notEvaluated=!0;window.jentis.tracker.sendFrontendTagToMonitor(e,t)}catch(a){window.jentis.helper.sendErrorToLogSystem(a.stack,"J-Tracker>sendFrontendTag - Tag:"+t.tagID+" | Tracker: "+t.trackerID+" - "+a.message),window.jentis.tracker.logError("Function from Frontend-Lib throws error!",a)}},this.sendNotExecutedTagToMonitor=function(e){var t=e.scopeOfTheState,n=e.frontendTag,r=e.frontendTagID,a=e.triggerName;n.tagID=r,n.trigger=a,window.jentis.tracker.sendFrontendTagToMonitor(t,n)},this.sendFrontendTagToMonitor=function(e,t){var n={};if(n.tool_id=t.pluginID,n.id=t.tagID,n.vendor_id=t.vendorID,n.trigger={},n.trigger.id=t.trigger,e.trigger[t.trigger].frontendFulfilled===!0&&e.trigger[t.trigger].trigger.excludeTrigger.length>0||typeof t.notEvaluated<"u"&&t.notEvaluated===!0?n.trigger.executed=!1:n.trigger.executed=e.trigger[t.trigger].frontendFulfilled,typeof e.triggerForMonitor<"u"&&typeof e.triggerForMonitor[t.trigger]<"u"&&typeof e.triggerForMonitor[t.trigger].condition<"u"?n.trigger.conditions=e.triggerForMonitor[t.trigger].condition:n.trigger.conditions=e.trigger[t.trigger].trigger.condition,n.trigger.excludetriggers=[],typeof window.jentis.config.jtm.trigger[t.trigger]<"u"&&typeof window.jentis.config.jtm.trigger[t.trigger].excludeTrigger<"u"&&window.jentis.config.jtm.trigger[t.trigger].excludeTrigger.length>0)for(var r=0;r<window.jentis.config.jtm.trigger[t.trigger].excludeTrigger.length;r++){var a=window.jentis.config.jtm.trigger[t.trigger].excludeTrigger[r],o={};if(o.id=a,typeof e.triggerForMonitor[window.jentis.config.jtm.trigger[t.trigger].excludeTrigger[r]]<"u")o.executed=e.triggerForMonitor[a].frontendFulfilled,o.conditions=e.triggerForMonitor[a].condition;else{o.executed=!1,o.conditions=window.jentis.tracker.cloneObject(window.jentis.config.jtm.trigger[a].condition);for(var s=0;s<o.conditions.length;s++)for(var d=0;d<o.conditions[s].length;d++)o.conditions[s][d].variablevalue="- CONDITION NOT EVALUATED -",o.conditions[s][d].executed=!1}n.trigger.excludetriggers.push(o)}n.placeholders=t.placeholder;var f=window.jentis.tracker.getEvaluatedVariablesPerType(e._variables);n.frontendVariables=f.frontend,n.constantVariables=f.constant,n.enrichmentVariables=f.enrichment,n.transformationFunctions=t.monitorForFunctions;var c={frontendTag:n,stateName:e.state,stateEventId:e.stateEventID};window.jentis.helper.sendFrontendTagToMonitor(c)},this.getEvaluatedVariablesPerType=function(e){var t={frontend:{},constant:{},enrichment:{}};for(var n in e)typeof window.jentis.config.jtm.accountconstants[n]<"u"?t.constant[n]=e[n]:window.jentis.tracker.isVariableOfTypeEnrichment(n)===!0?t.enrichment[n]=e[n]:t.frontend[n]=e[n];return t},this.replacePlaceholdersToValues=function(e){var t=e.placeholder,n=e.triggerName,r=e.scopeOfTheState,a=e.frontendTag,o=e.aIndexesWhereArraylistConditionFulfilled,s=typeof e.cacheEnrichmentVariables<"u"?e.cacheEnrichmentVariables:!1,d=e.forceReevaluation||!1,f={},c=0,l=[],u=[],_=[],p=0,g=t.match(/\{\{(.*?)\}\}/ig);if(g!==null)for(var h=0;h<g.length;h++){var T=g[h].replace(/\{\{|\}\}/ig,"");if(window.jentis.tracker.isVariableOfTypeEnrichment(T)===!0&&s===!0){l.push(T);continue}for(var b=window.jentis.tracker.getValueOfVariable({variableName:T,triggerName:n,scopeOfTheState:r,forceReevaluation:d}),k=window.jentis.tracker.private.getAllVariableDependencies(T),y=0;y<k.length;y++){var m=k[y],E=window.jentis.tracker.getScopeOfVariable(m);if(E!==!1){var S=window.jentis.tracker.getValueOfVariable({variableName:m,triggerName:n,scopeOfTheState:r,cacheEnrichmentVariables:s});typeof S>"u"&&u.push(m)}}if(typeof b<"u"){if(p++,typeof r.blockedVariablesDueToReferenceMissing[T]<"u"&&r.blockedVariablesDueToReferenceMissing[T].dependencies.length>0){_.push(T);continue}typeof b=="object"&&Object.prototype.toString.call(b)!=="[object Array]"?t=t.replace(g[h],b):typeof b=="object"&&Object.prototype.toString.call(b)==="[object Array]"?(f[g[h]]=b,c<b.length&&(c=b.length)):g.length===1&&t.length-g[h].length===0?t=b:t=t.replace(g[h],b)}else u.push(T)}else g=[];if(p===g.length&&t.length>0){var C=Object.keys(f);if(C.length>0){var L=[],O=[];typeof o<"u"&&(c=o.length);for(var w=0;w<c;w++){var v=t,j=w;typeof o<"u"&&(j=o[w]);for(var m in f)typeof f[m][j]<"u"?Object.keys(f).length>1?v=v.replace(m,f[m][j]):v.length===m.length?v=f[m][j]:v=v.replace(m,f[m][j]):v=v.replace(m,"");L.push(window.jentis.tracker.executeTransformationFunctions(v,!0,a,w===0?O:void 0))}t=L;for(var V=0;V<O.length;V++){var D=O[V];if(typeof window.jentis.config.jtm.functions[D]<"u"){let P;var M={};M.input=t;try{t=window.jentis.config.jtm.functions[D](t),M.success=!0}catch(F){P=F.message,M.success=!1,M.error=P,window.jentis.tracker.logError("Function throws error on execution!",F)}M.output=t,M.logs=[],a.monitorForFunctions[D].push(M)}}}else t=window.jentis.tracker.executeTransformationFunctions(t,!0,a)}return{placeholder:t,enrichmentVariables:l,httpVariables:u,blockedVariables:_}},this.executeTransformationFunctions=function(e,t,n,r){typeof t>"u"&&(t=!0);let a=[],o=0,s=0,d=!1;for(let _=0;_<e.length;_++)e[_]==="("?(o===0&&(s=_),o++):e[_]===","?o>0&&(d=!0):e[_]===")"&&(o--,o===0&&d===!0&&(a.push(e.substr(s,_-s+1)),d=!1));for(let _=0;_<a.length;_++){var f=a[_],c=f.substring(1,f.indexOf(",")),l=f.substring(f.indexOf(",")+1,f.length-1);l=this.executeTransformationFunctions(l,!1,n,r),typeof l=="string"?e={stream
1:e,value:l}:e={stream:e,value:l.stream};let p;if(typeof window.jentis.config.jtm.functions[c]<"u"){let g;if(typeof n.monitorForFunctions>"u"&&(n.monitorForFunctions={}),typeof n.monitorForFunctions[c]>"u"&&(n.monitorForFunctions[c]=[]),window.jentis.config.jtm.functions[c].length===1){var u={};u.input=e.value;try{p=window.jentis.config.jtm.functions[c](e.value),u.success=!0}catch(h){g=h.message,p="",u.success=!1,u.error=g,window.jentis.tracker.logError("Function throws error on execution!",h)}u.output=p,u.logs=[],n.monitorForFunctions[c].push(u)}else typeof r<"u"&&r.push(c),p=e.value}typeof p<"u"&&(e.stream=e.stream.replace(f,p)),t===!0&&(e=e.stream)}return e},this.getFrontendTrackerLibrary=function(e,t){if(typeof window.jentis.tracker.jtm.frontendLib[t]<"u")return window.jentis.tracker.jtm.frontendLib[t];if(typeof window.jentis.config.jtm.frontendLibs[e]<"u"&&typeof window.jentis.config.jtm.frontendLibs[e].lib<"u"){var n={};typeof window.jentis.config.jtm.frontendLibs[e].tracker<"u"&&typeof window.jentis.config.jtm.frontendLibs[e].tracker[t]<"u"&&(n=window.jentis.config.jtm.frontendLibs[e].tracker[t]);var r=window.jentis.config.jtm.pluginIDtoVendorID[e][t],a=new window.jentis.config.jtm.frontendLibs[e].lib({pluginID:e,trackerID:t,jtsTracker:window.jentis.tracker,config:n,accountvars:window.jentis.config.jtm.accountconstants,consent:window.jentis.tracker.isConsentGiven(r)});return window.jentis.tracker.jtm.frontendLib[t]=a,window.jentis.tracker.jtm.frontendLib[t]}throw"window.jentis.config.jtm.frontendLibs: "+e+" NOT FOUND!"},this.sendDocumentsToJENTIS=function(e){window.jentis.config.trackingConsentGiven===!0?window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:e.scopeOfTheState,variablesSortedByTrigger:e.scopeOfTheState.httpvarsSortedPerTrigger,callback:(function(t,n){return function(r){window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(e.scopeOfTheState,!0),e.scopeOfTheState,!0,r,function(a){for(var o in a.triggerVariableExecutedForBackend)window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:o,scopeOfTheState:a.scopeOfTheState,variables:a.triggerVariableExecutedForBackend[o]});a.scopeOfTheState.httpvarsSortedPerTrigger=a.triggerVariableCacheForBackend;var s=[];window.jentis.tracker.addEnrichmentInformationToVariableScope("USER",a.scopeOfTheState),window.jentis.tracker.addEnrichmentInformationToVariableScope("SESSION",a.scopeOfTheState),window.jentis.tracker.addEnrichmentInformationToVariableScope("EVENT",a.scopeOfTheState);var d={USER:{},SESSION:{},EVENT:{}};if(window.jentis.tracker.trackOnlyConditionVariables===!0){var f=[];for(o in a.scopeOfTheState.trigger)a.scopeOfTheState.trigger[o].trigger.hasServerSideTag===!0&&window.jentis.tracker.mergeArrayWithoutDuplicates(f,a.scopeOfTheState.trigger[o].trigger.conditionVariables);for(variableScope in a.scopeOfTheState.oVars)if(typeof a.scopeOfTheState.oVars[variableScope].property<"u"&&Object.keys(a.scopeOfTheState.oVars[variableScope].property).length>0)for(variable in a.scopeOfTheState.oVars[variableScope].property)f.indexOf(variable)!==-1&&(d[variableScope].property=typeof d[variableScope].property<"u"?d[variableScope].property:{},d[variableScope].property[variable]=a.scopeOfTheState.oVars[variableScope].property[variable])}else d.USER=a.scopeOfTheState.oVars.USER,d.SESSION=a.scopeOfTheState.oVars.SESSION,d.EVENT=a.scopeOfTheState.oVars.EVENT;s.push(window.jentis.tracker.trackUserDocument(d.USER)),s.push(window.jentis.tracker.trackSessionDocument(d.SESSION)),s.push(window.jentis.tracker.trackEventDocument(a.scopeOfTheState,d.EVENT,n));var c={collectGeneratedDocuments:s,timestampOfStateExecution:a.scopeOfTheState.timestamp,state:a.scopeOfTheState.state,requestType:a.scopeOfTheState.requestType,oneVendorHasAtLeastNotFalse:void 0,stateEventID:a.scopeOfTheState.stateEventID};window.jentis.tracker.sendDocumentsToDatareceiver(c),typeof window.jentis.tracker.oCache[window.jentis.tracker.sStoragePrefix]<"u"&&(typeof window.jentis.tracker.oCache[window.jentis.tracker.sStoragePrefix].user<"u"&&(window.jentis.tracker.isNew.user=!1),typeof window.jentis.tracker.oCache[window.jentis.tracker.sStoragePrefix].session<"u"&&(window.jentis.tracker.isNew.session=!1)),typeof t<"u"&&t()})}})(e.callback,e.consent)}):window.jentis.tracker.log("J-DCP","[STATE] - Tracking not allowed, because no consent is given. State: "+e.scopeOfTheState.state),(typeof e.disableCaching>"u"||typeof e.disableCaching<"u"&&e.disableCaching===!1)&&window.jentis.tracker.jtsEventCache.push({scopeOfTheState:e.scopeOfTheState})},this.trackUserDocument=function(e){typeof e>"u"&&(e={}),typeof e.property>"u"&&(e.property={});var t={},n=this.readDocumentID("user");return this.isNew.user===!0?(t._id=n===null?this.createDocumentID("user"):n,t.action="new",window.jentis.helper.setEvent("jentis.tracker","jentis-userid",t._id,!0)):(t._id=n,t.action="upd"),t.account=window.jentis.config.account,t.documentType="user",t.property=e.property,t.system={},typeof e.enrichment<"u"&&Object.keys(e.enrichment).length>0&&(t.system.enrichment=e.enrichment),t.aggr={},t.parent={},t}
1,this.trackSessionDocument=function(e){typeof e>"u"&&(e={}),typeof e.property>"u"&&(e.property={});var t={},n=this.readDocumentID("session"),r=window.jentis.tracker.getPreviewVersion();if(typeof r=="string"?e.property.jts_version=r:e.property.jts_version="_",typeof window.jentis.config.frontend.debug<"u"&&window.jentis.config.frontend.debug!==null&&(e.property.jts_debug=window.jentis.config.frontend.debug),this.isNew.user===!0||this.isNew.user===!1&&this.isNew.session===!0)t._id=n===null?this.createDocumentID("session"):n,t.action="new";else{var a=this.readDocumentID("session");a===null&&(a=n,this.updateDocumentID("session",n)),t._id=a,t.action="upd"}t.account=window.jentis.config.account,t.documentType="session",t.property=e.property,t.system={};var o=window.jentis.tracker.getAutomationId();return o&&(t.system.jts_automation_id=o),typeof e.enrichment<"u"&&Object.keys(e.enrichment).length>0&&(t.system.enrichment=e.enrichment),t.aggr={},t.parent={user:this.readDocumentID("user")},typeof window.navigator<"u"&&window.navigator.userAgent!=="undefined"&&(t.system["navigator-userAgent"]=window.navigator.userAgent),window.jentis.helper.setCookie({name:"jctr_sid",value:t._id,exdays:{m:30},sameSite:"Lax",bSecure:!0}),t},this.trackEventDocument=function(e,t,n){var r={_id:e.stateEventID,documentType:"event",action:"new",parent:{user:this.readDocumentID("user"),session:this.readDocumentID("session")},account:window.jentis.config.account,aggr:{},pluginid:e.state,system:{href:window.location.href},property:t.property};return typeof t.enrichment<"u"&&Object.keys(t.enrichment).length>0&&(r.system.enrichment=t.enrichment),r.system.consent=typeof n<"u"?n:window.jentis.consent.engine.getAllConsents(),r.system.consentStatus=window.jentis.tracker.getConsentStatus(),r},this.trackConsentDocument=function(e){var t={_id:this.createDocumentID("consent"),documentType:"consent",action:"new",parent:{user:this.readDocumentID("user")},account:window.jentis.config.account,aggr:{},property:e};return t},this.trackConsent=function(e){var t=[];t.push(this.trackUserDocument()),t.push(this.trackConsentDocument(e));var n=!1;for(vendors in e.vendors)if(e.vendors[vendors]!==!1){n=!0;break}var r={collectGeneratedDocuments:t,timestampOfStateExecution:Date.now(),state:"JENTIS Consent Data",requestType:!1,oneVendorHasAtLeastNotFalse:n};this.sendDocumentsToDatareceiver(r),typeof this.oCache[this.sStoragePrefix]<"u"&&typeof this.oCache[this.sStoragePrefix].user<"u"&&(this.isNew.user=!1)},this.getValueOfVariable=function(e){var t=e.scopeOfTheState,n=typeof e.state<"u"?e.state:t.state,r=e.variableName,a=e.triggerName,o=typeof e.cacheEnrichmentVariables<"u"?e.cacheEnrichmentVariables:!1,s=typeof e.funcSendHTTPRequest<"u"?e.funcSendHTTPRequest:function(h,T){},d=e.funcCallback,f=e.forceReevaluation||!1;try{if(typeof window.jentis.config.jtm.variables[r]<"u"){if(f!==!0&&window.jentis.tracker.isVariableTriggerRelated(r)===!0&&typeof a<"u"&&typeof t._variables._jts_sys_trigger<"u"&&typeof t._variables._jts_sys_trigger[a]<"u"&&typeof t._variables._jts_sys_trigger[a][r]<"u")if(typeof d<"u")d(t._variables._jts_sys_trigger[a][r]);else return t._variables._jts_sys_trigger[a][r];else if(f!==!0&&typeof t._variables[r]<"u")if(typeof d<"u")d(t._variables[r]);else return t._variables[r];else if(typeof window.jentis.config.jtm.variables[r].scope<"u"&&window.jentis.config.jtm.variables[r].scope!==null&&window.jentis.config.jtm.variables[r].scope.toLowerCase()==="account"&&typeof window.jentis.config.jtm.variables[r].value<"u")return window.jentis.config.jtm.variables[r].value;if(window.jentis.tracker.isVariableOfTypeEnrichment(r)===!0){if(o===!1)return typeof t._variables[r]<"u"?t._variables[r]:(window.jentis.tracker.logError("getValueOfVariable(): "+r+" <> Value not found after successful enrichment! | State: "+(typeof n>"u"?"Selector Action":n)),"");var c=window.jentis.tracker.getScopeOfVariable(r);c!==!1?(typeof t.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment>"u"&&(t.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment=[]),t.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment.indexOf(r)===-1&&t.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment.push(r)):window.jentis.tracker.logError("getValueOfVariable(): "+r+" <> Scope not found for ENRICHMENT! | State: "+(typeof n>"u"?"Selector Action":n))}var l=window.jentis.tracker.evaluateFrontendVariable({variableName:r,triggerName:a,scopeOfTheState:t,funcSendHTTPRequest:s,funcCallback:d});if(typeof l>"u"){var u=[];
1if(typeof window.jentis.config.jtm.variables[r].template>"u"?(typeof t._cacheForHTTPVariables.httpVariables[a]>"u"&&(t._cacheForHTTPVariables.httpVariables[a]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(t._cacheForHTTPVariables.httpVariables[a],[r]),typeof window.jentis.config.jtm.variables[r]<"u"&&typeof window.jentis.config.jtm.variables[r].dependencies<"u"&&(u=window.jentis.config.jtm.variables[r].dependencies)):u=t.templateVariables[r].dependencies,u.length>0)for(var _=0;_<u.length;_++){var p=u[_],g=r;typeof t._cacheForHTTPVariables.referenceCache[p]>"u"&&(t._cacheForHTTPVariables.referenceCache[p]={}),typeof t._cacheForHTTPVariables.referenceCache[p][g]>"u"&&(t._cacheForHTTPVariables.referenceCache[p][g]={},t._cacheForHTTPVariables.referenceCache[p][g].triggerName=[]),t._cacheForHTTPVariables.referenceCache[p][g].triggerName.indexOf(a)===-1&&t._cacheForHTTPVariables.referenceCache[p][g].triggerName.push(a),typeof t.blockedVariablesDueToReferenceMissing[g]>"u"&&(t.blockedVariablesDueToReferenceMissing[g]={},t.blockedVariablesDueToReferenceMissing[g].dependencies=window.jentis.tracker.cloneObject(u),t.blockedVariablesDueToReferenceMissing[g].triggers=[]),t.blockedVariablesDueToReferenceMissing[g].triggers.push({triggerName:a})}}else(typeof t.blockedVariablesDueToReferenceMissing[r]>"u"||typeof t.blockedVariablesDueToReferenceMissing[r]<"u"&&t.blockedVariablesDueToReferenceMissing[r].dependencies.length===0)&&window.jentis.tracker.saveVariableToScope(t,a,r,l);return l}return""}catch(h){return window.jentis.helper.sendErrorToLogSystem(h.stack,"J-Tracker>getValueOfVariable - Var:"+r+" | State: "+(typeof n>"u"?"Selector Action":n)+" | "+h.message),window.jentis.tracker.logError("getValueOfVariable(): "+r+" | State: "+(typeof n>"u"?"Selector Action":n),h),""}},this.evaluateFrontendVariable=function(e){var t=e.scopeOfTheState,n=e.variableName,r=t.element,a=t.state,o=e.triggerName,s=e.funcSendHTTPRequest,d=!1,f=function(){};typeof e.funcCallback=="function"&&(f=e.funcCallback,d=!0);var c="",l={element:r,accountvars:window.jentis.config.jtm.accountconstants,stateContext:t.contextualStateInformation,callback:f},u={variableid:n,triggername:o,sendHTTPRequest:s,setCookie:function(b){typeof b=="object"?(b.vendorids=window.jentis.config.jtm.variables[this.variableid].vendorids,window.jentis.helper.setCookie(b)):window.jentis.tracker.log("J-DCP","[setCookie] Argument must be of type object")},readCookie:function(b){return typeof b=="string"?window.jentis.helper.readCookie(b):(window.jentis.tracker.log("J-DCP","[readCookie] Argument must be of type string"),null)},setServerCookie:function(b){typeof b=="object"?(b.vendorids=window.jentis.config.jtm.variables[this.variableid].vendorids,window.jentis.helper.setServerCookie(b)):window.jentis.tracker.log("J-DCP","[setServerCookie] Argument must be of type object")},setLocalStorageItem:function(b,k,y){return window.jentis.helper.setLocalStorageItem(b,k,y)},getLocalStorageItem:function(b){return window.jentis.helper.getLocalStorageItem(b)},getFrontendVariable:(function(k,y,m){return function(E){var S=window.jentis.tracker.getValueOfVariable({variableName:E,triggerName:y,scopeOfTheState:k});return typeof S>"u"&&(typeof k._cacheForHTTPVariables.referenceCache[E]>"u"&&(k._cacheForHTTPVariables.referenceCache[E]={}),typeof k._cacheForHTTPVariables.referenceCache[E][m]>"u"&&(k._cacheForHTTPVariables.referenceCache[E][m]={},k._cacheForHTTPVariables.referenceCache[E][m].triggerName=[]),k._cacheForHTTPVariables.referenceCache[E][m].triggerName.indexOf(y)===-1&&k._cacheForHTTPVariables.referenceCache[E][m].triggerName.push(y),typeof k.blockedVariablesDueToReferenceMissing[m]>"u"&&(k.blockedVariablesDueToReferenceMissing[m]={},k.blockedVariablesDueToReferenceMissing[m].dependencies=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[m].dependencies),k.blockedVariablesDueToReferenceMissing[m].triggers=[]),k.blockedVariablesDueToReferenceMissing[m].triggers.push({triggerName:y})),S}})(t,o,n)};if(typeof window.jentis.config.jtm.variables[n].template<"u")if(typeof window.jentis.config.jtm.variables[n].placeholder<"u"&&typeof window.jentis.config.jtm.template_variables<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[n].template]<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[n].template].value=="function"){typeof t.templateVariables>"u"&&(t.templateVariables={}),typeof t.templateVariables[n]>"u"&&(t.templateVariables[n]={},t.templateVariables[n].dependencies=[],t.templateVariables[n].evaluateFirst=window.jentis.config.jtm.variables[n].evaluateFirst||[],t.templateVariables[n].placeholder=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[n].placeholder));var _=!1,p=[];if(typeof t.templateVariables[n].evaluateFirst<"u"&&t.templateVariables[n].evaluateFirst.length>0)for(var g=0;g<t.templateVariables[n].evaluateFirst.length;g++){var h=t.templateVariables[n].evaluateFirst[g];if(typeof t.templateVariables[n].placeholder[h]<"u"){var T=window.jentis.tracker.getValueOfVariable({variableName:t.templateVariables[n].placeholder[h],triggerName:o,scopeOfTheState:t,funcSendHTTPRequest:s});p.push(t.templateVariables[n].placeholder[h]),typeof T<"u"?t.templateVariables[n].placeholder[h]=T:_=!0}}_?(c=void 0,t.templateVariables[n].dependencies=p):(l.placeholder=t.templateVariables[n].placeholder,c=window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[n].template].value.apply(u,[l]),d===!0&&window.setTimeout(function(){l.callback("")},2e3))}else window.jentis.tracker.logError("getValueOfVariable(): "+n+" <> Template not found! | State: "+(typeof a>"u"?"Selector Action":a),{});else typeof window.jentis.config.jtm.variables[n].value=="string"?c=window.jentis.config.jtm.variables[n].value:typeof window.jentis.config.jtm.variables[n].value=="function"&&(c=window.jentis.config.jtm.variables[n].value.apply(u,[l]),d===!0&&window.setTimeout(function(){l.callback("")},2e3));return c},this.saveVariableToScope=function(e,t,n,r){this.saveVariableToScope_variables(e,t,n,r),window.jentis.tracker.isVariableOfTypeEnrichment(n)===!1&&this.saveVariableToScope_oVars(e,t,n,r)},this.saveVariableToScope_oVars=function(e,t,n,r){var a=window.jentis.tracker.getScopeOfVariable(n);typeof e.oVars>"u"&&(e.oVars={}),typeof e.oVars>"u"&&(e.oVars={}),typeof e.oVars[a]>"u"&&(e.oVars[a]={}),typeof e.oVars[a].property>"u"&&(e.oVars[a].property={}),window.jentis.tracker.isVariableTriggerRelated(n)===!0?(typeof e.oVars[a].property._jts_sys_trigger>"u"&&(e.oVars[a].property._jts_sys_trigger={}),typeof e.oVars[a].property._jts_sys_trigger[t]>"u"&&(e.oVars[a].property._jts_sys_trigger[t]={}),e.oVars[a].property._jts_sys_trigger[t][n]=r):e.oVars[a].property[n]=r},this.saveVariableToScope_variables=function(e,t,n,r){window.jentis.tracker.isVariableTriggerRelated(n)===!0?(typeof e._variables._jts_sys_trigger>"u"&&(e._variables._jts_sys_trigger={}),typeof t<"u"&&(typeof e._variables._jts_sys_trigger[t]>"u"&&(e._variables._jts_sys_trigger[t]={}),e._variables._jts_sys_trigger[t][n]=r)):(typeof e._variables>"u"&&(e._variables={}),e._variables[n]=r)},this.getValueTypeToMatch=function(e){try{return typeof e=="object"?JSON.stringify(e):typeof e>"u"?"undefined":e.toString()}catch(t){return window.jentis.tracker.logError("getValueTypeToMatch(): "+e+" - Problem",t),""}},this.isVariableTriggerRelated=function(e){if(typeof window.jentis.config.jtm.variables[e]<"u"){if(typeof window.jentis.config.jtm.variables[e].template<"u"){if(typeof window.jentis.config.jtm.template_variables<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[e].template]<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[e].template].triggerRelated<"u")return window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[e].template].triggerRelated}else if(typeof window.jentis.config.jtm.variables[e].triggerRelated<"u")return window.jentis.config.jtm.variables[e].triggerRelated}return!1}
1,this.getScopeOfVariable=function(e){if(typeof window.jentis.config.jtm.variables[e]<"u"){if(typeof window.jentis.config.jtm.variables[e].template<"u")return typeof window.jentis.config.jtm.template_variables<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[e].template]<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[e].template].scope<"u"?window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[e].template].scope:(window.jentis.tracker.logError("getScopeOfVariable(): "+e+" <> Scope not found!",{}),!1);if(typeof window.jentis.config.jtm.variables[e].scope<"u")return window.jentis.config.jtm.variables[e].scope}return!1},this.isVariableOfTypeEnrichment=function(e){return typeof window.jentis.config.jtm.variables[e]<"u"&&typeof window.jentis.config.jtm.variables[e].source<"u"&&window.jentis.config.jtm.variables[e].source==="ENRICHMENT"},this.mergeArrayWithoutDuplicates=function(e,t){for(var n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},this.checkOperatorMatch=function(e,t,n){let r=this.getValueTypeToMatch(e),a=this.getValueTypeToMatch(n);switch(t){case"eq":return this._equal(r,a);case"neq":return!this._equal(r,a);case"co":return this._contains(r,a);case"nco":return!this._contains(r,a);case"bw":return this._startsWith(r,a);case"nbw":return!this._startsWith(r,a);case"ew":return this._endsWith(r,a);case"new":return!this._endsWith(r,a);case"reg":return this._matchesRegex(n,r);case"nreg":return!this._matchesRegex(n,r);case"bg":return this._bigger(r,a);case"bgeq":return this._biggerEqual(r,a);case"lo":return this._lower(r,a);case"loeq":return this._lowerEqual(r,a);case"j-true":return!0;default:return!1}},this._equal=function(e,t){return e===t},this._contains=function(e,t){return e.toLowerCase().indexOf(t.toLowerCase())>-1},this._startsWith=function(e,t){return!!e.toLowerCase().startsWith(t.toLowerCase())},this._endsWith=function(e,t){return!!e.toLowerCase().endsWith(t.toLowerCase())},this._matchesRegex=function(e,t){var n=this.parseRegExpString(e);return!!n.test(t)},this._bigger=function(e,t){return parseFloat(e)>parseFloat(t)},this._biggerEqual=function(e,t){return parseFloat(e)>=parseFloat(t)},this._lower=function(e,t){return parseFloat(e)<parseFloat(t)},this._lowerEqual=function(e,t){return parseFloat(e)<=parseFloat(t)},this.resolveTriggerVariablesForBackend=function(e){for(var t=e.scopeOfTheState,n=e.triggerName,r=e.variables,a=typeof e.cacheEnrichmentVariables<"u"?e.cacheEnrichmentVariables:!1,o=0;o<r.length;o++){var s=r[o],d=window.jentis.tracker.getScopeOfVariable(s);if(d!==!1){var f=window.jentis.tracker.getValueOfVariable({variableName:s,triggerName:n,scopeOfTheState:t,cacheEnrichmentVariables:a});typeof f>"u"&&(typeof t._cacheForHTTPVariables.backend[n]>"u"&&(t._cacheForHTTPVariables.backend[n]=[]),t._cacheForHTTPVariables.backend[n].push(s))}}},this.collectVariablesFromTriggerIncludingExcludeTriggers=function(e,r){var n=[],r=r||[];return r.indexOf(e)>-1||(r.push(e),typeof window.jentis.config.jtm.trigger[e]<"u"&&typeof window.jentis.config.jtm.trigger[e].variables<"u"&&window.jentis.tracker.mergeArrayWithoutDuplicates(n,window.jentis.config.jtm.trigger[e].variables)),n},this.resolveFrontendTagsRelatedToTrigger=function(e){var t=e.scopeOfTheState,n=typeof e.triggerName<"u"?e.triggerName:"",r=e.overwriteTags,a=typeof e.cacheEnrichmentVariables<"u"?e.cacheEnrichmentVariables:!1,o=typeof e.cacheHTTPVariables<"u"?e.cacheHTTPVariables:!1,s=[],d=[],f=!1;if(typeof r>"u"){for(var c=0;c<window.jentis.config.jtm.trigger[n].tags.length;c++)if(typeof window.jentis.config.jtm.trigger[n].tags[c]<"u"&&typeof window.jentis.config.jtm.frontendTags[window.jentis.config.jtm.trigger[n].tags[c]]<"u"){var l=window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[window.jentis.config.jtm.trigger[n].tags[c]]);l.tagID=window.jentis.config.jtm.trigger[n].tags[c],l.trigger=n,d.push(l)}}else typeof r=="object"&&Object.prototype.toString.call(r)!=="[object Array]"&&(r=window.jentis.tracker.getArrayFromObject(r)),d=r,f=!0;for(var c=0;c<d.length;c++){var u={},l=d[c];f===!0&&(n=l.trigger),u.enrichmentVariables=[],u.tag=l,u.tag.httpVariables=[],u.tag.blockedVariables=[];for(var _ in l.placeholder)this.replacePlaceholder({frontendTag:l,placeholderName:_,trigger:n,frontendTagResult:u,scopeOfTheState:t,cacheEnrichmentVariables:a});s.push(u)}return s},this.replacePlaceholderForTagId=function(e,t,n,r){var a=window.jentis.config.jtm.frontendTags[e];if(typeof a>"u")return window.jentis.tracker.logError("[TAG][FRONTEND] Error: Tag with ID: "+e+" not found!"),"";var o=this.replacePlaceholder({frontendTag:window.jentis.tracker.cloneObject(a),placeholderName:t,scopeOfTheState:n,forceReevaluation:!0});return typeof r<"u"&&typeof r[t]<"u"&&(r[t]=o),this.log("J-DCP : [STATE] [TRIGGER] [TAG] - [AS04] - [RE-EVALUATE PLACEHOLDER] Placeholder-Key: "+t+"| New-Value: [ "+o+" ] for Client-Side Tag > Tool: "+a.pluginID+" | Tag-ID: "+e,!0,"AS04"),o},this.replacePlaceholder=function(e){var t=e.frontendTag,n=e.placeholderName,r=!0,a=e.trigger||void 0,o=e.scopeOfTheState||this.createScopeOfTheStateObject(),s=e.cacheEnrichmentVariables||!1,d="",f=e.forceReevaluation||!1;if(typeof e.frontendTagResult<"u"){var c=e.frontendTagResult;r=!1}if(typeof t.arraylist<"u"&&typeof t.arraylist[n]<"u"){var l=window.jentis.tracker.replacePlaceholdersFromArraylist({arraylist:t.placeholder[
1n],arraylistcondition:t.arraylist[n],triggerName:a,scopeOfTheState:o,frontendTag:t,cacheEnrichmentVariables:s});l.enrichmentVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(c.enrichmentVariables,l.enrichmentVariables),l.httpVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(c.tag.httpVariables,l.httpVariables),d=t.arraylist[n]}else if(typeof t.placeholder[n]=="object"){for(var u in t.placeholder[n])for(var _ in t.placeholder[n][u])if(typeof t.placeholder[n][u][_]=="string"){var l=window.jentis.tracker.replacePlaceholdersToValues({placeholder:t.placeholder[n][u][_],triggerName:a,scopeOfTheState:o,frontendTag:t,cacheEnrichmentVariables:s});t.placeholder[n][u][_]=l.placeholder,l.enrichmentVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(c.enrichmentVariables,l.enrichmentVariables),l.httpVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(c.tag.httpVariables,l.httpVariables),l.blockedVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(c.tag.blockedVariables,l.blockedVariables)}d=t.placeholder[n]}else if(typeof t.placeholder[n]=="string"){var l=window.jentis.tracker.replacePlaceholdersToValues({placeholder:t.placeholder[n],triggerName:a,scopeOfTheState:o,frontendTag:t,cacheEnrichmentVariables:s,forceReevaluation:f});t.placeholder[n]=l.placeholder,l.enrichmentVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(c.enrichmentVariables,l.enrichmentVariables),l.httpVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(c.tag.httpVariables,l.httpVariables),d=l.placeholder}return d},this.replacePlaceholdersFromArraylist=function(e){var t=e.arraylist,n=e.arraylistcondition,r=e.scopeOfTheState,a=e.triggerName,o=e.frontendTag,s=typeof e.cacheEnrichmentVariables<"u"?e.cacheEnrichmentVariables:!1,d=[],f=[],c=[];if(s===!0&&window.jentis.tracker.isVariableOfTypeEnrichment(n.variable)===!0)d.push(n.variable);else if(typeof n.realizedValue>"u"&&(n.realizedValue=window.jentis.tracker.getValueOfVariable({variableName:n.variable,triggerName:a,scopeOfTheState:r})),typeof n.realizedValue=="object"&&Object.prototype.toString.call(n.realizedValue)==="[object Array]")for(var l=0;l<n.realizedValue.length;l++)window.jentis.tracker.checkOperatorMatch(n.realizedValue[l],n.operator,n.value)===!0&&c.push(l);for(var u in t)if(typeof t[u]=="object"&&Object.prototype.toString.call(t[u])!=="[object Array]"){for(var l in t[u])for(var _ in t[u][l])if(typeof t[u][l][_]=="string"){var p=window.jentis.tracker.replacePlaceholdersToValues({placeholder:t[u][l][_],triggerName:a,scopeOfTheState:r,frontendTag:o,aIndexesWhereArraylistConditionFulfilled:c,cacheEnrichmentVariables:s});typeof p.placeholder=="object"&&Object.prototype.toString.call(p.placeholder)==="[object Array]"?t[u][l][_]=p.placeholder:s===!1?t[u][l][_]=[p.placeholder]:t[u][l][_]=p.placeholder,p.enrichmentVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(d,p.enrichmentVariables),p.httpVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(f,p.httpVariables)}}else if(typeof t[u]=="string"){var p=window.jentis.tracker.replacePlaceholdersToValues({placeholder:t[u],triggerName:a,scopeOfTheState:r,frontendTag:o,aIndexesWhereArraylistConditionFulfilled:c,cacheEnrichmentVariables:s});p.enrichmentVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(d,p.enrichmentVariables),p.httpVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(f,p.httpVariables),t[u]=p.placeholder}return{enrichmentVariables:d,httpVariables:f}},this.allTriggerConditionsFulfilled=function(e){var t=e.scopeOfTheState,n=e.triggerName,r=e.overwriteTrigger,a=typeof e.cacheEnrichmentVariables<"u"?e.cacheEnrichmentVariables:!1,o=typeof e.cacheHTTPVariables<"u"?e.cacheHTTPVariables:!1;if(typeof r<"u")var s=r;else{var s=this.cloneObject(window.jentis.config.jtm.trigger[n]);s.trigger=n}var d=s.condition,f=[],c=[],l=!1,u=[],_=[],p=[];if(typeof t.triggerForMonitor>"u"&&(t.triggerForMonitor={}),typeof t.triggerForMonitor[s.trigger]>"u"&&(t.triggerForMonitor[s.trigger]={}),typeof t.triggerForMonitor[s.trigger].condition>"u"){t.triggerForMonitor[s.trigger].condition=[];for(var g=0;g<d.length;g++)t.triggerForMonitor[s.trigger].condition.push([])}if(d.length===0)return t.triggerForMonitor[s.trigger].frontendFulFilled=!0,{backendFulfilled:!0,frontendFulfilled:!0,enrichmentVariables:[],httpVariables:c,frontendHTTPConditionIncludedWithoutConsent:u,enrichmentConditionIncludedInReferences:_,depen
1dencies:p,trigger:s};for(var g=0;g<d.length;g++){if(d[g].length===0)return t.triggerForMonitor[s.trigger].frontendFulFilled=!0,{backendFulfilled:!0,frontendFulfilled:!0,enrichmentVariables:[],httpVariables:c,frontendHTTPConditionIncludedWithoutConsent:u,enrichmentConditionIncludedInReferences:_,dependencies:p,trigger:s};for(var h=0,T=0,b=0;b<d[g].length;b++){var k=d[g][b];if(this.isVariableOfTypeEnrichment(k.variable)===!0&&a===!0)f.push(k.variable),h+=1,d[g].length-h-T===0&&(l=!0);else{var y=k.variable,m=this.getValueOfVariable({variableName:y,triggerName:s.trigger,scopeOfTheState:t});if(o===!0&&typeof t._cacheForHTTPVariables.httpVariables[s.trigger]<"u"&&t._cacheForHTTPVariables.httpVariables[s.trigger].indexOf(y)>-1||typeof window.jentis.config.jtm.variables[y]<"u"&&typeof window.jentis.config.jtm.variables[y].template<"u"&&typeof m>"u"){window.jentis.tracker.mergeArrayWithoutDuplicates(c,[y]),T+=1;for(var E=0;E<window.jentis.config.jtm.variables[y].dependencies.length;E++){var S=y,C=window.jentis.config.jtm.variables[y].dependencies[E];typeof t._cacheForHTTPVariables.referenceCache[C]>"u"&&(t._cacheForHTTPVariables.referenceCache[C]={}),typeof t._cacheForHTTPVariables.referenceCache[C][S]>"u"&&(t._cacheForHTTPVariables.referenceCache[C][S]={},t._cacheForHTTPVariables.referenceCache[C][S].triggerName=[]),t._cacheForHTTPVariables.referenceCache[C][S].triggerName.indexOf(s.trigger)===-1&&t._cacheForHTTPVariables.referenceCache[C][S].triggerName.push(s.trigger),typeof t.blockedVariablesDueToReferenceMissing[S]>"u"&&(t.blockedVariablesDueToReferenceMissing[S]={},t.blockedVariablesDueToReferenceMissing[S].dependencies=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[S].dependencies),t.blockedVariablesDueToReferenceMissing[S].triggers=[]),t.blockedVariablesDueToReferenceMissing[S].triggers.push({triggerName:s.trigger})}d[g].length-h-T===0&&(l=!0)}else if(window.jentis.tracker.isVariableFromTypeHTTP(y,s.trigger,t)===!0&&window.jentis.tracker.isConsentGivenForVariable(y)===!1)window.jentis.tracker.mergeArrayWithoutDuplicates(u,[y]);else if(typeof t.blockedVariablesDueToReferenceMissing[y]>"u"||typeof t.blockedVariablesDueToReferenceMissing[y]<"u"&&t.blockedVariablesDueToReferenceMissing[y].dependencies.length===0){if(typeof k.alreadyNegativeEvaluated<"u"&&k.alreadyNegativeEvaluated===!1||typeof k.alreadyNegativeEvaluated>"u"&&this.checkOperatorMatch(m,k.operator,k.value)){var L=window.jentis.tracker.cloneObject(k);if(L.variablevalue=m,L.executed=!0,t.triggerForMonitor[s.trigger].condition[g].push(L),d[g].splice(b,1),b-=1,d[g].length===0)return t.triggerForMonitor[s.trigger].frontendFulFilled=!0,{backendFulfilled:!0,frontendFulfilled:!0,enrichmentVariables:[],httpVariables:c,frontendHTTPConditionIncludedWithoutConsent:u,enrichmentConditionIncludedInReferences:_,dependencies:p,trigger:s}}else if(typeof k.alreadyNegativeEvaluated>"u"){var L=window.jentis.tracker.cloneObject(k);L.variablevalue=m,L.executed=!1,t.triggerForMonitor[s.trigger].condition[g].push(L),k.alreadyNegativeEvaluated=!0}}else if(typeof t.blockedVariablesDueToReferenceMissing[y]<"u"){for(var O=window.jentis.tracker.private.getAllVariableDependencies(y),E=0;E<O.length;E++)window.jentis.tracker.isVariableFromTypeHTTP(O[E],s.trigger,t)===!0&&window.jentis.tracker.isConsentGivenForVariable(O[E])===!1?window.jentis.tracker.mergeArrayWithoutDuplicates(u,[O[E]]):window.jentis.tracker.isVariableOfTypeEnrichment(O[E])===!0&&(window.jentis.tracker.mergeArrayWithoutDuplicates(f,[O[E]]),window.jentis.tracker.mergeArrayWithoutDuplicates(_,[O[E]]));window.jentis.tracker.mergeArrayWithoutDuplicates(p,O)}}}}if(f.length===0&&c.length===0&&u.length===0)for(var w in t.trigger){var v=t.trigger[w].trigger.excludeTrigger.indexOf(s.trigger);v>-1&&t.trigger[w].trigger.excludeTrigger.splice(v,1)}return t.triggerForMonitor[s.trigger].frontendFulFilled=!1,{backendFulfilled:l,frontendFulfilled:!1,enrichmentVariables:f,httpVariables:c,frontendHTTPConditionIncludedWithoutConsent:u,enrichmentConditionIncludedInReferences:_,dependencies:p,trigger:s}},this.private.getAllVariableDependencies=function(e,t,n){if(typeof t>"u"&&(t=[]),typeof n>"u"&&(n=[]),n.indexOf(e)>-1)return t;if(typeof window.jentis.config.jtm.variables[e]<"u"&&typeof window.jentis.config.jtm.variables[e].dependencies<"u"&&window.jentis.config.jtm.variables[e].dependencies.length>0){window.jentis.tracker.mergeArrayWithoutDuplicates(t,window.jentis.config.jtm.variables[e].dependencies);for(var r=0;r<window.jentis.config.jtm.variables[e].dependencies.length;r++)window.jentis.tracker.mergeArrayWithoutDuplicates(t,window.jentis.tracker.private.getAllVariableDependencies(window.jentis.config.jtm.variables[e].dependencies[r],t,n))}return t},this.executeFrontendTagsWhichWereBlockedByExcludeTriggers=function(e,t){var n=e.trigger;typeof t<"u"&&(n=window.jentis.tracker.getObjectFromArray(t));for(var r in n){for(var a=!1,o=0;o<e.trigger[r].trigger.excludeTrigger.length;o++){var s=e.trigger[r].trigger.excludeTrigger[o];if(typeof e.trigger[s]<"u")if(e.trigger[s].frontendFulfilled===!1)e.trigger[s].enrichmentVariables.length===0&&e.trigger[s].httpVariables.length===0&&(e.triggerWaitingForConsent.indexOf(s)===-1?(e.trigger[r].trigger.excludeTrigger.splice(o,1),o-=1):a=!0);else{if(typeof e.tagsWaitingBecauseOfExcludeTrigger[r]<"u"){for(var d=0;d<e.tagsWaitingBecauseOfExcludeTrigger[r].length;d++){var f=e.tagsWaitingBecauseOfExcludeTrigger[r][d].tag;window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:e,frontendTag:window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[f.tagID]),frontendTagID:f.tagID,triggerName:r})}delete e.tagsWaitingBecauseOfExcludeTrigger[r]}else if(typeof t<"u"&&e.triggerWaitingForConsent.indexOf(r)>-1)for(var c=0;c<window.jentis.tracker.jtsFrontendTriggerCache.length;c++){var l=window.jentis.tracker.jtsFrontendTriggerCache[c];if(l.primaryKey===e.primaryKey&&l.triggerName===r){for(var u in l.tags){var f=l.tags[u];window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:e,frontendTag:window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[f.tagID]),frontendTagID:f.tagID,triggerName:r})}window.jentis.tracker.jtsFrontendTriggerCache.splice(c,1),e.triggerWaitingForConsent.splice(e.triggerWaitingForConsent.indexOf(r),1)}}break}if(a===!0){var _={};if(typeof e.tagsWaitingBecauseOfExcludeTrigger[r]<"u")for(var p=0;p<e.tagsWaitingBecauseOfExcludeTrigger[r].length;p++)_[e.tagsWaitingBecauseOfExcludeTrigger[r][p].tag.tagID]=e.tagsWaitingBecauseOfExcludeTrigger[r][p].tag;window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(e,r,_),delete e.tagsWaitingBecauseOfExcludeTrigger[r]}}e.trigger[r].frontendFulfilled===!0&&e.trigger[r].trigger.excludeTrigger.length===0&&(e.trigger[r].trigger.codeblocks.length>0&&typeof e._cacheForHTTPVariables.httpVariables[r]>"u"&&window.jentis.tracker.executeCodeblocks({triggerName:r,scopeOfTheState:e}),typeof e.tagsWaitingBecauseOfExcludeTrigger[r]<"u"&&a===!1&&(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+r+" in scope Client-Side after checking exclude-triggers",!1,"AS02"),window.jentis.tracker.decideWhatToDoWithFrontendTags({scopeOfTheState:e,frontendTags:e.tagsWaitingBecauseOfExcludeTrigger[r],triggerName:r}),delete e.tagsWaitingBecauseOfExcludeTrigger[r]))}},this.startTracking=function(){window.jentis.config.trackingConsentGiven=!0,window.jentis.tracker.trackCachedEvents(),window.jentis.tracker.trackCachedFrontend()},this.denyTracking=function(){window.jentis.config.trackingConsentGiven=!1},this.isConsentGivenForVariable=function(e){if(typeof window.jentis.config.jtm.variables[e].vendorids<"u")for(var t=0;t<window.jentis.config.jtm.variables[e].vendorids.length;t++){var n=window.jentis.config.jtm.variables[e].vendorids[t];if(n==="*"||window.jentis.consent.engine.getVendorConsent(n)===!0||window.jentis.consent.engine.getVendorConsent(n)==="ncm")return!0}return!1},this.isVariableFromTypeHTTP=function(e,t,n){return typeof n._cacheForHTTPVariables<"u"&&typeof n._cacheForHTTPVariables.httpVariables<"u"&&typeof n._cacheForHTTPVariables.httpVariables[t]<"u"&&n._cacheForHTTPVariables.httpVariables[t].indexOf(e)>-1},this.isConsentGiven=function(e){if(typeof e<"u"){var t=window.jentis.consent.engine.getAllConsents();if(typeof t["*"]>"u"){if(typeof t[e]<"u")return t[e]}else return!0}return!1},this.checkLogMode=function(){var e;if(e=window.jentis.helper.getSessionStorageItem("jts_log"),e||(e=window.jentis.helper.readCookie("jts_log")),e)this.bLogMode=!0;else{var t=new RegExp("jts_log=([^&#]*)");if(t.test(document.location.search)){var n=window.jentis.helper.setSessionStorageItem("jts_log",1);n||window.jentis.helper.setCookie({name:"jts_log",value:"1",exdays:365,sameSite:"Str
1ict"}),this.bLogMode=!0}}},this.checkDebug=function(){var e=this.fGetUrlParams(),t="jts_debug";if(typeof e.jts_debug<"u"){var n=e.jts_debug;window.jentis.config.frontend.debug=n;var r=window.jentis.helper.setSessionStorageItem(t,n);r||window.jentis.helper.setCookie({name:t,value:n,exdays:null,sameSite:"Strict"})}else{window.jentis.config.frontend.debug=null;var r=window.jentis.config.frontend.debug=window.jentis.helper.getSessionStorageItem(t);r||(window.jentis.config.frontend.debug=window.jentis.helper.readCookie(t))}},this.getPreviewVersion=function(){if(window.jentis.tracker.sPreviewVersion===!1){var e="",e=window.jentis.helper.getSessionStorageItem(window.jentis.tracker.sPreviewStorageKey);if(e||(e=window.jentis.helper.readCookie(window.jentis.tracker.sPreviewStorageKey)),typeof e=="string"){var t=e.split("/");t.length>0&&(window.jentis.tracker.sPreviewVersion=t[0])}}return window.jentis.tracker.sPreviewVersion},this.getPreviewStorage=function(){var e=window.jentis.helper.getSessionStorageItem(window.jentis.tracker.sPreviewStorageKey);return e||(e=window.jentis.helper.readCookie(window.jentis.tracker.sPreviewStorageKey)),e},this.checkAutomationId=function(){var e=this.fGetUrlParams(),t=window.jentis.tracker.sAutomationIdKey;if(typeof e[t]<"u"){var n=e[t];window.jentis.tracker.sAutomationId=n;var r=window.jentis.helper.setSessionStorageItem(t,n);r||window.jentis.helper.setCookie({name:t,value:n,exdays:null,sameSite:"Strict"})}},this.getAutomationId=function(){if(window.jentis.tracker.sAutomationId===!1){var e="";e=window.jentis.helper.getSessionStorageItem(window.jentis.tracker.sAutomationIdKey),e||(e=window.jentis.helper.readCookie(window.jentis.tracker.sAutomationIdKey)),typeof e=="string"&&(window.jentis.tracker.sAutomationId=e)}return window.jentis.tracker.sAutomationId},this.checkPreview=function(){var e=this.fGetUrlParams(),t=window.jentis.tracker.sPreviewStorageKey;if(typeof e.jts_preview<"u"){var n=e.jts_preview;typeof window.jentis.config.jtm.timestamp<"u"&&(n+="/"+window.jentis.config.jtm.timestamp),window.jentis.tracker.sPreviewVersion=e.jts_preview;var r=window.jentis.helper.setSessionStorageItem(t,n);r||window.jentis.helper.setCookie({name:t,value:n,exdays:null,sameSite:"Strict"});var a="";for(var o in e)o==="jts_preview"||o==="jts_storage"||o==="jts_debug"||o==="jts_log"||(a!=""&&(a+="&"),a+=o+"="+encodeURIComponent(e[o]));return window.location.href=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+a,!1}else{var s=window.jentis.tracker.getPreviewStorage();if(typeof s=="string"&&typeof window.jentis.config.jtm.timestamp<"u"){var d=s.split("/");if(window.jentis.config.jtm.timestamp.toString()!==d[1]){var n=d[0]+"/"+window.jentis.config.jtm.timestamp,r=window.jentis.helper.setSessionStorageItem(t,n);return r||window.jentis.helper.setCookie({name:t,value:n,exdays:null,sameSite:"Strict"}),window.location.reload(),!1}}}return!0},this.log=function(e,t,n,r){this.bLogMode===!0&&(typeof t>"u"?typeof e=="object"?(console.log("%o",e),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(JSON.stringify(e),r)):(console.log(e),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(e,r)):typeof t=="object"?(console.log(e+" : %o",t),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(e+": "+JSON.stringify(t),r)):(console.log(e+" : "+t),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(e+": "+t,r)))},this.isLogAllowedToSendToMonitor=function(e){return typeof e>"u"||typeof e<"u"&&e===!1},this.logError=function(e,t){window.jentis.helper.logError("J-DCP",e,t)},this.initRawdata=function(){var e=this.sStoragePrefix;if(!(typeof this.oCache[e]<"u")){this.oCache[e]={};var t=null,n=window.jentis.helper.readCookie("jts-rw");t=n?JSON.parse(decodeURIComponent(n)):null;var r=t&&typeof t.u<"u"?t.u:null,a=window.jentis.helper.readCookie("jctr_sid")||null,o={};o[e]={user:{_id:r}},a&&(o[e].session={_id:a},this.isNew.session=!1);var s=!o[e].user._id;if(s){var d=window.jentis.helper.getLocalStorageItem("jentis.core.tracker.rawdata-controller");if(d||(d=this.readCookie("jentis.core.tracker.rawdata-controller")),d){try{this.oCache=d,typeof this.oCache[e]<"u"&&typeof this.oCache[e]["jentis.core.tracker.rawdata"]<"u"&&(this.oCache[e]=this.oCache[e]["jentis.core.tracker.rawdata"])}catch(l){window.jentis.helper.logError(l.stack,"J-Tracker>initRawdata - "+l.message),console.error(l)}var f=typeof this.oCache[e].user<"u"?this.oCache[e].user:null,c=typeof this.oCache[e].session<"u"?this.oCache[e].session:null;f&&(this.isNew.user=!1),c&&(this.isNew.session=!1),c&&(!f||typeof f._id>"u"||f._id==="")&&(delete this.oCache[e].session,this.isNew.session=!0)}}else this.oCache=o,this.isNew.user=!1;typeof window.jentisApp<"u"&&typeof window.jentisApp.userId<"u"&&(this.oCache[e]=this.oCache[e]||{},this.oCache[e].user=this.oCache[e].user||{},this.oCache[e].user._id=window.jentisApp.userId,this.isNew.user=!1)}},this.readDocumentID=function(e){return typeof this.oCache[this.sStoragePrefix]<"u"&&typeof this.oCache[this.sStoragePrefix][e]<"u"?this.oCache[this.sStoragePrefix][e]._id:null},this.updateDocumentID=function(e,t){typeof this.oCache[this.sStoragePrefix]>"u"&&(this.oCache[this.sStoragePrefix]={}),typeof this.oCache[this.sStoragePrefix][e]>"u"&&(this.oCache[this.sStoragePrefix][e]={_id:t})},this.createDocumentID=function(e){typeof this.oCache[this.sStoragePrefix]>"u"&&(this.oCache[this.sStoragePrefix]={});var t=this.getNewTrackId();return this.oCache[this.sStoragePrefix][e]={_id:t},(e==="session"||e==="user")&&(this.isNew[e]=!0),t},this.deleteDocumentID=function(e){typeof this.oCache[this.sStoragePrefix]<"u"&&typeof this.oCache[this.sStoragePrefix][e]<"u"&&delete this.oCache[this.sStoragePrefix][e],(e==="session"||e==="user")&&(this.isNew[e]=!0)},this.sendDocumentsToDatareceiver=function(e){var t=e.collectGeneratedDocuments,n=e.timestampOfStateExecution||Date.now(),r=e.state,a=e.requestType,o=e.oneVendorHasAtLeastNotFalse,s=typeof e.stateEventID<"u"?e.stateEventID:null;if(typeof o>"u"&&(o=!0),t.length>0){window.jentis.tracker.log("J-DCP : SEND-DATA | State: "+r,t,!0);var d={},f=this.getTrackingDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain);d.client={clientTimestamp:n,domain:f};try{if(o===!0){var c=window.jentis.helper.setLocalStorageItem("jentis.core.tracker.rawdata-controller",this.oCache);c||this.setCookie({name:"jentis.core.tracker.rawdata-controller",value:this.oCache,sameSite:"Lax",bSecure:!0})}}catch{window.jentis.tracker.log("J-DCP","No Storage available")}var l={};l.u=window.jentis.tracker.readDocumentID("user");var u=[],_={};if(o===!0){var p={name:"jts-rw",value:encodeURIComponent(JSON.stringify(l)),exdays:63072e3};p.exdays*1e3>window.jentis.config.jtm.maximumStorageLifetime&&(p.exdays=Math.round(window.jentis.config.jtm.maximumStorageLifetime/1e3)),u.push(p);for(var g=window.jentis.helper.getServerCookies(),h=g.length-1;h>=0;h--){var T=g[h];typeof T.name<"u"&&typeof _[T.name]>"u"&&(T.exdays*1e3>window.jentis.config.jtm.maximumStorageLifetime&&(T.exdays=Math.round(window.jentis.config.jtm.maximumStorageLifetime/1e3)),u.push(g[h]),_[T.name]=!0)}}var b={key:"setcookie",data:u};d.cmd={},d.data=t,d.requestType=typeof a<"u"&&a?a:"XMLHttpRequest";for(var k=[],y=null,m=0;m<u.length;m++)y=this.readCookie(u[m].name),(y===null||y&&y!==u[m].value)&&k.push(u[m]);if(typeof window.jentisApp<"u"&&typeof window.jentisApp.cookieSettingMethod=="function")for(let C=0;C<u.length;C++){var E=u[C];typeof E.name<"u"&&E.name==="jts-rw"&&(E.value=decodeURIComponent(E.value)),E.sameSite="Lax",E.bSecure=!0,window.jentis.helper.setCookie(E)}if(!this.cookieExtenderEnabled)d.cmd=b;else if(k.length>0||this.isNew.session){var S=this.cloneObject(d);S.cmd=b,S.cmd.key="setcookie-itp-proxy",S.data=[],this.sendHTTPStream({url:window.jentis.config.jtm.cookieExtender.url,endpoint:"",data:JSON.stringify(S),method:"POST",contentType:"application/json",withCredentials:!0})}a==="sendBeacon"?this.sendBeaconStream({endpoint:"",data:JSON.stringify(d)}):this.sendHTTPStream({endpoint:"",data:JSON.stringify(d),callback:this.processCommandsFromDataReceiver,method:"POST",contentType:"application/json",withCredentials:!0}),window.jentis.helper.isSendingToMonitorActive===!0&&window.jentis.helper.monitorCacheDispatcher(s,a)}},this.startHybridTrackingSynchronisation=function(){window.jentis.tracker.sendHTTPStream({endpoint:"/commands",data:JSON.stringify({userId:window.jentis.tracker.readDocumentID("user")}),callback:window.jentis.tracker.processCommandsFromDataReceiver,method:"POST",contentType:"application/json",withCredentials:!0}),window.setTimeout(window.jentis.tracker.startHybridTrackingSynchronisation,window.jentis.tracker.hybridTracking.timeout)},this.processCommandsFromDataReceiver=function(e){if(typeof e.response=="string")try{var t=JSON.parse(e.response);if(typeof t.requestIntervalSeconds<"u"&&(window.jentis.tracker.hybridTracking.timeout=t.requestIntervalSeconds*1e3),typeof window.jentis.tracker.hybridTracking.timeout<"u"&&typeof window.jentis.config.jtm.hybridTracking<"u"&&window.jentis.config.jtm.hybridTracking===!0&&window.jentis.tracker.hybridTracking.enabled===!1&&(window.jentis.tracker.hybridTracking.enabled=!0,window.jentis.tracker.startHybridTrackingSynchronisation()),typeof t.commands<"u")for(var n=0;n<t.commands.length;n++)try{var r=Object.keys(t.commands[n]),a=window.jentis.tracker.accessDynamiclyVariable(r[0],window);typeof a=="function"&&(window.jentis.tracker.log("J-DCP","Hybrid-Tracking Received",!0),a.apply(window,[t.commands[n][r[0]]]))}catch{window.jentis.tracker.log("J-DCP","Warning: Command Returned throwed and Error! | Command: "+r[0])}}catch{window.jentis.tracker.log("J-DCP","Warning: processCommandsFromDataReceiver - JSON Invalid!",!0)}},this.sendHTTPStream=function(e){var t=e.callback,n=e.data,r=e.endpoint,a=typeof e.method<"u"?e.method:"GET",o=typeof e.url<"u"?e.url:window.jentis.config.trackdomain,s=typeof e.contentType<"u"?e.contentType:"application/json",d=typeof e.withCredentials<"u"?e.withCredentials:!1,f=typeof r<"u"?r:"",c=new XMLHttpRequest,l=n;c.open(a,o+f,!0),c.withCredentials=d,c.setRequestHeader("Content-type",s);var u=this;c.onreadystatechange=function(){c.readyState==4&&(c.status==200?typeof t=="function"&&t.apply(u,[c]):(window.jentis.tracker.log("J-DCP","[HTTP-Request] - Status: "+c.status,!0),typeof t=="function"&&t.apply(u,[c])))},c.send(l)},this.sendBeaconStream=function(e){var t=e.data,n=e.endpoint,r=typeof e.url<"u"?e.url:window.jentis.config.trackdomain,a=typeof n<"u"?n:"";if(typeof navigator<"u"&&typeof navigator.sendBeacon<"u"){var o=navigator.sendBeacon(r+a,t);return o}},this.getConsentStatus=function(){var e=window.jentis.consent.engine.getVendorFullData(),t={};for(var n in e)t[n]={},typeof e[n].category<"u"&&(t[n].category=e[n].category),typeof e[n].justification<"u"&&(t[n].justification=e[n].justification),typeof e[n].no_consent_mode<"u"&&(t[n].no_consent_mode=e[n].no_consent_mode),typeof e[n].status<"u"&&(t[n].status=e[n].status),typeof e[n].group<"u"&&(t[n].group=e[n].group),typeof e[n].initialTracking<"u"&&(t[n].initialTracking=e[n].initialTracking),typeof e[n].deniable<"u"&&(t[n].deniable=e[n].deniable);return t},this.getArrayFromObject=function(e){var t=[];for(var n in e)t.push(e[n]);return t},this.getObjectFromArray=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]="";return t},this.getNow=function(){return new Date().getTime()},this.getNewTrackId=function(){var e=this.getNow(),t=Math.round(Math.random()*1e5),n=Math.round(Math.random()*1e5);return""+t+e+n},this.accessDynamiclyVariable=function(e,t){return e.split(".").reduce(function(n,r){return n?n[r]:null},t||self)},this.getDatalayer=function(e,t){var n=[];typeof e>"u"&&(e=!0);for(var r=0;r<window._jtsDataLayerContext.length;r++)typeof window._jtsDataLayerContext[r].track<"u"&&(typeof t<"u"?window._jtsDataLayerContext[r].track===t&&(e===!0?n.push(window._jtsDataLayerContext[r]):n.push(window._jtsDataLayerContext[r].track)):e===!0?n.push(window._jtsDataLayerContext[r]):n.push(window._jtsDataLayerContext[r].track));return n},this.resetDatalayer=function(){var e=_jts.push,t=_jts.opush;_jts=[],_jts.push=e,_jts.opush=t},this.orderCodeblocks=function(e){var t=[],n=[],r=[],a=[];if(typeof window.jentis.config.jtm.codeblocks<"u"&&Object.keys(window.jentis.config.jtm.codeblocks).length>0)for(var o=0;o<e.length;o++)window.jentis.config.jtm.codeblocks[e[o]].id=e[o],typeof window.jentis.config.jtm.codeblocks[e[o]].order<"u"?t.push(window.jentis.config.jtm.codeblocks[e[o]]):n.push(window.jentis.config.jtm.codeblocks[e[o]]);var s=function(d,f){return d.order-f.order};return t.length>0&&(r=t.sort(s)),a.concat(r,n)},this.addElementToDOM=function(e,t){var n=document.createElement(e);n.innerHTML=t;var r=window.document.body||window.document.head;r.appendChild(n)},this.parseRegExpString=function(e){try{var t=e.match(/(\/?)(.+)\1(.*)/i),n=t[2],r=t[3],a=new RegExp(n,r);return a}catch{try{return new RegExp(e)}catch{return window.jentis.tracker.logError("Error: Invalid regular expression format used as trigger condition."),new RegExp(/(?!)/)}}},this.getValueOfFrontendVariable=function(e){return this.getValueOfVariable({variableName:e,triggerName:void 0,scopeOfTheState:window.jentis.tracker.createScopeOfTheStateObject()})},this.addEventListener=function(e,t){window.jentis.helper.addEventListener(e,t,!0)},this.readCookie=function(e){return window.jentis.helper.readCookie(e)},this.setCookie=function(e){window.jentis.helper.setCookie(e)},this.setServerCookie=function(e){window.jentis.helper.setServerCookie(e)},this.fGetUrlParams=function(){return window.jentis.helper.fGetUrlParams()},this.cloneObject=function(e){return window.jentis.helper.cloneObject(e)},this.getTrackingDomain=function(e,t){return window.jentis.helper.getTrackingDomain(e,t)},this.setUserCustomizationVariables=function(){this.userCustomizable={},this.userCustomizable.reprocessCacheReset=!0,typeof window.jentis.userCustomizable<"u"&&typeof window.jentis.userCustomizable.reprocessCacheReset<"u"&&(this.userCustomizable.reprocessCacheReset=window.jentis.userCustomizable.reprocessCacheReset)},this.setUserCustomization=function(e,t){e==="reprocessCacheReset"&&(this.userCustomizable.reprocessCacheReset=t)},this.resetUser=function(){window.jentis.helper.setCookie({name:"jts-rw",exdays:-1}),this.deleteDocumentID("user");var e=window.jentis.helper.setLocalStorageItem("jentis.core.tracker.rawdata-controller",this.oCache);e||window.jentis.helper.setCookie({name:"jentis.core.tracker.rawdata-controller",value:this.oCache,sameSite:"Lax",bSecure:!0}),window.jentis.tracker.log("J-DCP","User has been reset."),this.resetSession(),window.jentis.consent.engine.resetConsent()},this.resetSession=function(){window.jentis.helper.setCookie({name:"jctr_sid",exdays:-1}),this.deleteDocumentID("session");var e=window.jentis.helper.setLocalStorageItem("jentis.core.tracker.rawdata-controller",this.oCache);e||window.jentis.helper.setCookie({name:"jentis.core.tracker.rawdata-controller",value:this.oCache,sameSite:"Lax",bSecure:!0}),window.jentis.tracker.log("J-DCP","Session has been reset."),this.resetCachedTrackingData()},this.resetCachedTrackingData=function(){window.jentis.tracker.log("J-DCP","Cached Tracking-Data has been reset."),this.createJentisCachingNamespace()}},window.jentisApp.delayInitForConsent?window.jentis.helper.addEventListener("jentis.consent.engine.minimal-consent-given",function(){window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0,window.jentis.tracker.init()},!0):window.jentis.tracker.init(),window.jentis.tracker.log("J-DCP","[INIT] - [AI01] Initialization finished: "+window.jentis.config.filehash,!1,"AI01")}catch(e){window.jentis.helper.sendErrorToLogSystem(e.stack,e.message),console.error(e)}
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.