(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var r=e.n(t),n=window.eb_frontend,o=n.getDataAttribute,a=n.sanitizeTarget,i=n.sanitize,l=n.sanitizeAttribute;r()(function(){document.querySelectorAll('.eb-infobox-wrapper[data-clickable="true"]').forEach(function(e){var t=o(e,"href","url"),r=a(o(e,"target"));e.style.cursor="pointer",e.addEventListener("click",function(e){if(!e.target.closest("a")){e.preventDefault();var n=i(t,"url");"_blank"===a(r)?window.open(n,"_blank","noopener,noreferrer"):window.location.href=n}}),e.setAttribute("tabindex",l("0")),e.setAttribute("role",l("button")),e.setAttribute("aria-label",l("Clickable infobox")),e.addEventListener("keydown",function(e){if("Enter"===e.key||" "===e.key){if(document.activeElement.closest("a"))return;e.preventDefault();var n=i(t,"url");"_blank"===a(r)?window.open(n,"_blank","noopener,noreferrer"):window.location.href=n}})})})})();