(()=>{"use strict";const t=window.prli.shared,e=t.bootstrap.adminUrl||"";function r(t,r){const n=new URLSearchParams;return n.set("page",t),r&&"object"==typeof r&&Object.keys(r).forEach(t=>{const e=r[t];null!=e&&""!==e&&n.set(t,String(e))}),`${e}admin.php?${n.toString()}`}function n(t){t.querySelectorAll("[data-prli-pro-handler]:not([data-prli-pro-hydrated])").forEach(t=>{const e=t.getAttribute("data-prli-pro-handler");if(!e)return;const n=function(t,e){const n=e.getAttribute("data-prli-from")||"",o=e.getAttribute("data-prli-to")||"";if("card-totalClicks"===t)return r("pretty-link-clicks",{from:n,to:o})+"#table";if("card-uniqueClicks"===t)return r("pretty-link-clicks",{from:n,to:o,unique:1})+"#table";if(0===t.indexOf("card-topLink-")){const e=t.slice(13);return e?r("pretty-link-clicks",{l:e,from:n,to:o})+"#table":null}return null}(e,t);n&&(t.classList.add("prli-pro-dashboard__clickable"),t.setAttribute("role","link"),t.setAttribute("tabindex","0"),t.setAttribute("data-prli-pro-hydrated","true"),t.addEventListener("click",e=>{const r=e.target.closest('a, button, input, label, [role="button"]');r&&r!==t||(e.preventDefault(),window.location.assign(n))}),t.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key){const r=e.target.closest("a, button, input, label");if(r&&r!==t)return;e.preventDefault(),window.location.assign(n)}}))}),t.querySelectorAll(".prli-card__pro-cue").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)})}function o(){if(!(0,t.isProInstalled)())return;const e=document.getElementById("prli-admin-root");e&&(n(e),new window.MutationObserver(()=>{n(e)}).observe(e,{childList:!0,subtree:!0}))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o()})();