function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function trackMatomoEvent(n,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null,r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return isNull(_paq)?!1:n===null||n===""?!1:(r===null&&(r=_clickSpamTracking.timer),i===null&&(i=_clickSpamTracking.name),location.href.indexOf("localhost")>-1&&console.log("trackMatomoEvent",n,t,i),_clickSpamTracking.timer=r,_clickSpamTracking.trigger.category.push(n),_clickSpamTracking.trigger.action.push(t),_clickSpamTracking.trigger.name.push(i),_clickSpamTracking.trigger.hash.push(n+t+i),_clickSpamTracking&&!_clickSpamTracking.isActive&&_clickSpamTracking.clickcounter!==0&&_clickSpamTracking.startChecking(_clickSpamTracking),_clickSpamTracking&&_clickSpamTracking.clickcounter===0&&_clickSpamTracking.isSpam===null&&!_clickSpamTracking.isActive&&(_paq.push(["trackEvent",n,t,i]),_clickSpamTracking.flagFirstClick=!0),_clickSpamTracking.clickcounter=_clickSpamTracking.clickcounter+1,!0)}function getCategory(n){"use strict";return $("#HitlistControl").length>0?"Trefferlisten-Klick":$("#dokument").length>0?"Dokumentansicht":n}function trackDetailSuche(){"use strict";$("a#DetailSearchLink i").hasClass("pfeilrotate")||trackMatomoEvent(getCategory("Header-Klicks"),"Einzeilige Suche","Detailsuche Dialog öffnen")}function trackSuggest(n,t){"use strict";trackMatomoEvent("Suchvorschlag",n,t)}function matomoTrackingAmbiguityDialogShow(){"use strict";return trackMatomoEvent("Mehrdeutigkeitsdialog","Mehrdeutigkeitsdialog Anzeigen")}function matomoTrackingAmbiugityfullText(){"use strict";var n=$("#ambiguityFullText").val();return trackMatomoEvent("Mehrdeutigkeitsdialog","Auswahl des phrasierten Vorschlags",n)}function matomoTrackingAmbigutyVariants(n){"use strict";var t=n.value,i=$("#ambiguityVariants").val();return trackMatomoEvent("Mehrdeutigkeitsdialog","Auswahl einer anderen Variante",i+" > "+t)}function matomoTrackingAmbiguityNoMatch(){"use strict";var n=$("#ambiguityNoMatch").val();return trackMatomoEvent("Mehrdeutigkeitsdialog","Keine Variante",n)}var _createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),_paq=_paq||[],ClickSpamObject=function(){function n(){_classCallCheck(this,n);this.clickcounter=0;this.trigger={category:[],action:[],name:[],hash:[]};this.isActive=!1;this.isSpam=null;this.treshold=4;this.timer=1e3;this.finished=!1;this.flagFirstClick=!1}return _createClass(n,[{key:"startChecking",value:function(){var n=this,t=new Promise(function(t){n.isActive||(n.clickcounter=0,n.isActive=!0,n.finished=!1,setTimeout(function(){t()},n.timer))});t.finally(function(){n.stopChecking()})}},{key:"stopChecking",value:function(){var n=this,t=new Promise(function(t){var i=n.clickcounter;n.isSpam=!1;i>0&&(n.isSpam=i>=n.treshold?!0:!1);t()});t.finally(function(){var i,t;if(n.isSpam!==null&&!n.isSpam&&(n.flagFirstClick||_paq.push(["trackEvent",n.trigger.category[0],n.trigger.action[0],n.trigger.name[0]]),i=n.trigger.hash.length-1,n.trigger.hash[i]!=n.trigger.hash[i-1]&&n.trigger.hash[i]!=n.trigger.hash[i-2]))for(t=1;t<n.trigger.category.length;t++)_paq.push(["trackEvent",n.trigger.category[t],n.trigger.action[t],n.trigger.name[t]]);n.finished=!0;n.isActive=!1;n.flagFirstClick=!1;n.trigger.category=[];n.trigger.action=[];n.trigger.name=[];n.trigger.category=[];n.trigger.action=[];n.trigger.name=[];n.trigger.hash=[]})}}]),n}(),_clickSpamTracking=new ClickSpamObject;window.addEventListener("beck-chat-matomo-tracking",function(n){trackMatomoEvent(n.detail.category,n.detail.action,n.detail.name)});$(document).on("click","#logo_grafik",function(){"use strict";trackMatomoEvent(getCategory("Header-Klicks"),"Home","Logo")});$(document).on("click",".headercontent a",function(){"use strict";var n="";n=$(this).parent().hasClass("aktenAuswahlItem")?"Klick in der Aktenauswahlliste":this.title;trackMatomoEvent(getCategory("Header-Klicks"),"Rote Leiste",n)});$(document).on("click",".bo_kasten.mvcWidget a",function(){"use strict";$(this).closest(".bo_kasten").find("[title='Portale']").length>0&&trackMatomoEvent("beck-online-Startseite","Portale",this.innerHTML);$(this).closest(".bo_kasten").find("[title='Inhaltsübersicht']").length>0&&trackMatomoEvent("beck-online-Startseite","Inhaltsübersicht",this.innerHTML)});$(document).on("click","#linknavigation a",function(){"use strict";var n=$(this).parents("ul").prev("a").html(),t=n&&n.length>0?n+"/":"";trackMatomoEvent(getCategory("Header-Klicks"),"Angebotsleiste",t+this.innerHTML)});$(document).on("click",".detailsearch_right input, .detailsearch_right a",function(){"use strict";var n=$(this).parent().find("span:not(.show-on-small)").text(),t=n.split("<");trackMatomoEvent(getCategory("Header-Klicks"),"Einzeilige Suche","Filter-CheckBox: "+t[0])});$(document).on("click","input.markall",function(){"use strict";trackMatomoEvent(getCategory("Header-Klicks"),"Alle Dokumente "+(this.checked?"markiert":"abgewählt"))});$(document).on("click","#trefferliste input[type='checkbox'][name^='mark_']",function(){"use strict";trackMatomoEvent(getCategory("Header-Klicks"),"Dokument "+(this.checked?"markiert":"abgewählt"),"",300)});$(document).on("click",".ui-tooltip a",function(){"use strict";trackMatomoEvent("Tooltip","Dokumentenaufruf")});$(document).on("click","[id^='drucken-treffer_']",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Dokument drucken")});$(document).on("click","#FacettenControl .bo_kasten a[href]",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Facette")});$(document).on("click","#FacettenControl .bo_kasten .entries-zeitraum>li>a[href]",function(n){"use strict";var i=$(n.currentTarget),t=i.clone().children().remove().end().text();t.length&&trackMatomoEvent("Trefferlisten-Klick","Zeitraumfacette",t)});$(document).on("click","#keywordcloud a[href]",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Schlagwortwolke")});$(document).on("click","#topParagraphs a[href], #topParagraphs input",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Top-Feature")});$(document).on("click","#trefferliste .treffer-data a[href]",function(n){"use strict";var t=$(n.currentTarget),r=t.attr("href"),i;r.length&&(i=t.attr("linkCategory-data"),trackMatomoEvent("Trefferlisten-Klick","Dokumentanzeige",i))});$(document).on("click","#btsearch1",function(){"use strict";trackMatomoEvent(getCategory("Suche"),"Suche")});$(document).on("click","#DetailSearchLink",function(){"use strict";var n=getCategory("Suche");trackMatomoEvent(n,"Detailsuche")});$(document).on("click","#hitlistfilter a[href]",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Filter löschen")});$(document).on("click","#toolleiste a",function(){"use strict";var n=getCategory(null),t;n!==null&&(t=$(this).attr("title"),trackMatomoEvent(n,"Toolleiste",t))});$(document).on("click","a.alldocteaser",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Kontexte umschalten","",1500)});$(document).on("click","#trefferliste a[id^='ctxlink_']",function(){"use strict";var n=8,t=this.id.substring(n),i=$("#context_"+t).is(":hidden");trackMatomoEvent("Trefferlisten-Klick","Kontext zum Treffer "+(i?"ausblenden":"einblenden"))});$(document).on("click",".hitlistSortOption a, .hitlistSortOption input",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Sortierung")});$(document).on("click","div.hitlistPaging ul.paging li a[href]",function(){"use strict";trackMatomoEvent("Trefferlisten-Klick","Paging")});$(document).on("click","div.hitlistSearchArea div.searchfilter input, div.hitlistSearchArea div.searchfilter a",function(){"use strict";var n="";n=$(this).is("a")?$(this).find("span").not(".show-on-small").text():$(this).parent().find("span").not(".show-on-small").text();n=n.substring(n.lastIndexOf(">")+1);trackMatomoEvent("Trefferlisten-Klick","Filter",n)});$(document).on("click","div.conversion-formats a.document-manager-conversion-link",function(){"use strict";var t=getCategory(null),i,n;t!==null&&(i=$("input#isnoteindoc").prop("checked"),n=$(this).data("format"),i&&(n+=" mit Fußnoten"),trackMatomoEvent(t,"Dokumentmanager",n))});$(document).on("click","#frmBenachrichtigung_bei_Urteil",function(n){"use strict";var t=$(n.currentTarget),i=t.attr("data-linkcategory");trackMatomoEvent("trackEvent","Verweiszettel-klick",i)});$(document).on("click","div#toccontent a",function(){"use strict";trackMatomoEvent("Dokumentansicht","TOC-Klick")});$(document).on("click","div#doktoc > h1",function(){"use strict";trackMatomoEvent("Dokumentansicht","TOC-Banner-Klick")});$(document).on("click","button.scrollToTop",function(){"use strict";trackMatomoEvent("Dokumentansicht","Zum Seitenanfang")});$(document).on("click","div#dokument div#zitStandard",function(){"use strict";trackMatomoEvent("Dokumentansicht","Zitiervorschlag","Kurz")});$(document).on("click","div#dokument div#zitMitAuflage",function(){"use strict";trackMatomoEvent("Dokumentansicht","Zitiervorschlag","Lang")});$(document).on("click","div#document-manager-document-links-permalink button[type=submit]",function(){"use strict";trackMatomoEvent("Dokumentansicht","Dokumentmanager","Dokument archivieren")});$(document).on("click","div.AddbuttonsContainer button[name='documentLinkType']",function(n){"use strict";var r=getCategory(null),t,i;r!==null&&(t="",i=$(n.currentTarget).val(),i==="BcidLink"?t="(aktuelle Fassung)":i==="Permalink"?t="(Archivversion)":i==="HitlistLinks"&&(t="(markierte Dokumente)"),t!=="")&&trackMatomoEvent(r,"Dokumentmanager","Dokument zu einer Akte speichern "+t)});$(document).on("click","p.document-manager-add-to-file-success a, div.aktenverwaltung-link a",function(){"use strict";var n=getCategory(null);n!==null&&trackMatomoEvent(n,"Dokumentmanager","Zur Aktenverwaltung")});$(document).on("click","div.doc-link-container a[href='#']",function(){"use strict";trackMatomoEvent("Dokumentansicht","Dokumentmanager","Link zum Dokument")});$(document).on("click","div.archive-doku a[href*='/Permalink/']",function(){"use strict";trackMatomoEvent("Dokumentansicht","Dokumentmanager","Link zur Archivversion")});$(document).on("click","div#anmerkzettel-top button#btannotationsave",function(){"use strict";trackMatomoEvent("Dokumentansicht","Anmerkungen","Anmerkung speichern")});$(document).on("click","div#anmerkzettel-top a#btannotationclear",function(){"use strict";trackMatomoEvent("Dokumentansicht","Anmerkungen","Anmerkung löschen")});$(document).on("click","div#anmerkzettel-top a#annotationlist",function(){"use strict";trackMatomoEvent("Dokumentansicht","Anmerkungen","Anmerkungsliste")});$(document).on("click","img#source-of-information-icon",function(){"use strict";trackMatomoEvent("Dokumentansicht","Markierten Text Dialog öffnen")});$(document).on("click","a#source-of-information-print-icon",function(){"use strict";trackMatomoEvent("Dokumentansicht","Markierten Text Dialog drucken")});$(document).on("click","#gesetzanzeigeform #submit",function(){"use strict";var n=$("#GesetzAnzeigeDialog_Selection input[type=radio]:checked ~label").text();trackMatomoEvent("Dokumentansicht","Anzeigeoptionen zur Norm",n)});$(document).on("click","#periodOfValidityList li > a",function(){"use strict";trackMatomoEvent("Dokumentansicht","Fassungsvergleich","Link zu Fassung")});$(document).on("click","#compareWrapper a#showAllVersionsButton",function(){"use strict";trackMatomoEvent("Dokumentansicht","Fassungsvergleich","Alle Fassungen anzeigen")});$(document).on("click","#compareWrapper input#versionCompareButton",function(){"use strict";trackMatomoEvent("Dokumentansicht","Fassungsvergleich","Ausgewählte Fassungen vergleichen")});$(document).on("click","div.nav a#next",function(){"use strict";trackMatomoEvent("Dokumentansicht","Seitennavigation","Zum Nachfolgedokument wechseln")});$(document).on("click","div.nav a#prev",function(){"use strict";trackMatomoEvent("Dokumentansicht","Seitennavigation","Zum Vorgängerdokument wechseln")});$(document).on("click","#viewAnsicht .header.row",function(){"use strict";$("#viewAnsicht .content").hasClass("hidden")&&trackMatomoEvent("Dokumentansicht","Ansichtbox","Ansichtbox öffnen")});$(document).on("click","#viewAnsicht div.ansichtoption:not(#ansichtoptionabschnitt) div.ansichtoption-label input",function(){"use strict";var n=$(this).siblings("label").text().trim();n!==""&&trackMatomoEvent("Dokumentansicht","Ansichtbox",n)});$(document).on("click","#viewAnsicht #ansichtoptionabschnitt #typeabschnittbutton",function(){"use strict";var n=$(this).parents("#ansichtoptionabschnitt").find("label[for='typeabschnitt']").text().trim();n!==""&&trackMatomoEvent("Dokumentansicht","Ansichtbox",n)});$(document).on("click","#viewAnsicht #ansichtoptionrandnummer #typeabschnittbutton",function(){"use strict";var n=$(this).parents("#ansichtoptionrandnummer").find("label[for='ansichtbox_selection_SelectedBorderNumbersInDoc']").text().trim();n!==""&&trackMatomoEvent("Dokumentansicht","Ansichtbox",n)});$(document).on("click","#viewAnsicht div.ansichtoption a[onclick^='toggle']",function(){"use strict";var t=$(this).parents("div.ansichtoption"),n;t.has("i.icon-toggle-on").length>0||(n=t.find("div.ansichtoption-label").text().trim(),n!=="")&&trackMatomoEvent("Dokumentansicht","Ansichtbox",n)});$(document).on("click","#viewAnsicht div.ansichtoption > a",function(){"use strict";$(this).children(".fa-circle-question").length!==0&&trackMatomoEvent("Dokumentansicht","Ansichtbox","Hilfe")});$(document).on("click","input#print-dialog-submit",function(){"use strict";var i=getCategory(null),t,n;i!==null&&(t=$("#printManager_selection input[name='printdialogmode']:checked ~label").text(),t!==null)&&(n=$("#printmanager_options input[type=checkbox]:checked ~label").map(function(){return $(this).text()}).get().join(", "),n!==""&&(n=" ("+n+")"),trackMatomoEvent(i,"Druckmanager",t+n))});$(document).on("click","div.printcontainer button#Print",function(){"use strict";var i=getCategory(null),t,n;i!==null&&(t=$(".radioButtonContainer input[name='printdialogmode']:checked ~label, #viewAnsicht input[name='ansichttype']:checked ~label, #viewAnsicht input[name='ansichttype']:checked ~div.zweizeile-label label").text(),t!==null)&&(n=$("#printexportManagerForm div.moreOptionsContainer div.active_checkbox a").has("i.icon-toggle-on").map(function(){return $(this).text().trim()}).get().join(", "),n!==""&&(n=" ("+n+")"),trackMatomoEvent(i,"Druckmanager",t+n))});$(document).on("click","#viewAkte .header.row",function(){"use strict";var n=getCategory(null);n!==null&&$("#viewAkte .content").hasClass("hidden")&&trackMatomoEvent(n,"Toolleiste","Dokumentmanager öffnen")});$(document).on("click","#viewTeilen .header.row",function(){"use strict";$("#viewTeilen .content").hasClass("hidden")&&trackMatomoEvent("Dokumentansicht","Toolleiste","Dokument teilen")});$(document).on("click","div#edokbuyform ul.documentview_modules a",function(){"use strict";trackMatomoEvent("Einzeldokumentbezug","Module")});$(document).on("click","a#dtlAdetail",function(){"use strict";var n=$(this).text().indexOf("öffnen")>0?"Detailebene öffnen":"Detailebene schließen";trackMatomoEvent("BeckRS",n)});$(document).on("click","#bo_center a[href*='/Arbeitshilfe']",function(){"use strict";trackMatomoEvent("Arbeitshilfen/Berechnungen",$(this).text())});document.addEventListener("DOMContentLoaded",function(){var n=document.querySelectorAll("[data-matomocategory][data-matomoaction]");Array.from(n).forEach(function(n){n.addEventListener("click",function(n){var t;for(n.stopPropagation(),t=n.target;t.getAttribute("data-matomocategory")===null&&t.tagName.toLowerCase()!=="body";)t=t.parentNode;var i=t.getAttribute("data-matomocategory"),r=t.getAttribute("data-matomoaction"),u=t.getAttribute("data-matomoname");trackMatomoEvent(i,r,u)})})})