1!function(e){"function"==typeof define&&define.amd?define("popup",e):e()}(function(){var m="data-modal",v="popup-content--open",E="popup-opened",h="popup-layout",t=new Event("popupLoaded"),e=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.setProperty("--scrollbar-width","".concat(e,"px")),document.addEventListener("DOMContentLoaded",function(){var f=document.querySelector("html")||document.querySelector("body"),e=document.querySelectorAll("[".concat(m,"]"));e.length&&(e.forEach(function(e){var t=e.getAttribute("".concat(m)),t=document.querySelectorAll("[".concat("data-open-modal","='").concat(t,"']")),n=e.querySelectorAll("[".concat("data-close-modal","]")),o=e.parentNode,d=document.createElement("div"),c=document.createElement("div"),a=[];function i(){e.popup.isOpened||(o.insertBefore(d,e),c.appendChild(e),f.insertBefore(c,f.firstChild),e.classList.add(v),f.classList.add(E),document.addEventListener("keydown",r),c.addEventListener("mousedown",u),c.addEventListener("touchstart",u),n.forEach(function(e){e.addEventListener("mousedown",p),e.addEventListener("touchstart",p)}),e.popup.isOpened=!0)}function s(){e.popup.isOpened&&(f.classList.remove(E),e.classList.remove(v),o.insertBefore(e,d),c.remove(),d.remove(),document.removeEventListener("keydown",r),c.removeEventListener("mousedown",u),c.addEventListener("touchstart",u),n.forEach(function(e){e.removeEventListener("mousedown",p),e.addEventListener("touchstart",p)}),a.length&&a.forEach(function(e){"function"==typeof e&&e()}),e.popup.isOpened=!1,"__vue__"in e)&&e.__vue__.closePopUp()}function r(e){"Escape"===e.key&&(e.preventDefault(),s())}function u(e){e.target.classList.contains(h)&&(e.preventDefault(),s())}function p(e){e.preventDefault(),s()}function l(e){e.preventDefault(),i()}Object.assign(e,{popup:{isOpened:!1,open:i,close:s,addCloseCallback:function(e){a.push(e)}}}),d.style.display="none",c.classList.add(h),t.length&&t.forEach(function(e){e.addEventListener("mousedown",l),e.addEventListener("touchstart",l)})}),window.dispatchEvent(t))})}); 2//# sourceMappingURL=popup.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.