(()=>{"use strict";window.addEventListener("load",()=>{document.querySelectorAll(".wp-block-gutenkit-team").forEach(e=>{"true"===e.getAttribute("data-team-popup")&&((e,t=!0,r=!1)=>{const s=e.querySelector(".profile-title"),n=e.querySelector(".gkit-team-modal"),o=e.querySelector(".gkit-team-modal-content"),c=e.querySelector(".gkit-team-modal-close"),a=e.querySelector(".gkit-team-img img"),i=e.querySelector(".hover-area"),l=e=>{"Escape"!==e.key&&"Esc"!==e.key||(n.classList.remove("open"),o.classList.remove("open"))},d=()=>{n.classList.add("open"),o.classList.add("open"),document.addEventListener("keydown",l)},u=()=>{n.classList.remove("open"),o.classList.remove("open"),document.removeEventListener("keydown",l)};t?(s&&s.classList.add("cursor-enable"),c&&c.classList.add("cursor-enable"),document.addEventListener("keydown",l),i||(a&&a?.classList.add("cursor-enable"),!r&&a&&a?.addEventListener("click",function(e){e.preventDefault(),d()})),!r&&s&&s.addEventListener("click",function(e){e.preventDefault(),d()}),c&&c.addEventListener("click",function(e){e.preventDefault(),u()})):(s&&s.classList.remove("cursor-enable"),a&&a.classList.remove("cursor-enable"),c&&c.classList.remove("cursor-enable"),s&&s.removeEventListener("click",d,!0),a&&a.removeEventListener("click",d,!0),c&&c.removeEventListener("click",u,!0),document.removeEventListener("keydown",l,!0))})(e)})})})();