"use strict";const dashboardLinksHandlers=()=>{const d=window.localStorage.getItem("lastViewedBusinessEntity"),n="__account_uuid__",s="__business_entity_uuid__";let e=document.querySelectorAll(".dashboard-link"),t,l=null,i=null;e&&(d&&(t=JSON.parse(d),l=t.accountUuid,i=t.businessEntityUuid),e.forEach(e=>{let t=e.dataset.loc;var a=e.dataset.params;t&&(t=t.replaceAll("*","/"),d?t.includes(n)?t=(t=t.replace("&account_uuid="+l,"")).replace(n,l):t.includes(s)&&(t=(t=t.replace("__business_entity_uuid__"+i,"")).replace(s,i)):t="login",t.includes("login")?e.removeAttribute("data-params"):a&&(t+="?"+a),e.addEventListener("click",e=>{e.preventDefault(),window.location.href="/d/"+t}),e.setAttribute("dashboad-handler",""))}))};"complete"===document.readyState?dashboardLinksHandlers():window.addEventListener("load",dashboardLinksHandlers);