1function C(){console.log("[loaded] modal");const o=document.querySelector(".tx-sf-banners"),t=o==null?void 0:o.firstElementChild;if(!o||!t)return;const d=`modal-${t.getAttribute("id")||"without-id"}-closed`;let n;const r=()=>{const e=o.querySelector(".banner");o.classList.add("modal"),t.classList.add("modal__background"),e.classList.add("modal__content-container"),n=document.createElement("button");const s=` 2 <svg id="icon-close" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> 3 <path fill-rule="evenodd" clip-rule="evenodd" d="M11.446 10L20 18.554L18.553 20L10 11.446L1.44601 20L0 18.554L8.553 10L0 1.446L1.44601 0L10 8.554L18.553 0L20 1.446L11.446 10Z" fill="currentColor"/> 4 </svg> 5 `;n.innerHTML=s,n.classList.add("modal__close-button"),e.appendChild(n)};function u(){const e=new Date,s=7*24*60*60*1e3;e.setTime(e.getTime()+s);let c="expires="+e.toUTCString();document.cookie=d+"=true;"+c+";path=/"}function m(){let e=d+"=";const a=decodeURIComponent(document.cookie).split(";").find(v=>v.includes(e));return a?a.trim().split("="):""}function L(){let[e,s]=m();e===""||s!=="true"?(r(),f()):i(!0),l.disconnect()}const i=e=>{o.classList.remove("modal--is-open"),o.classList.add("modal--is-closed"),e||u()},k=e=>{e.target.classList.contains("modal__background")&&i()},p=()=>{n&&n.addEventListener("click",()=>i()),t&&t.addEventListener("click",k)},f=()=>{o.classList.add("modal--is-open"),p()},l=new MutationObserver(L);l.observe(t,{childList:!0})}export{C as init}; 6//# sourceMappingURL=modal.0c51f5ab.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.