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