PageSourceSearch

https://xn--90aae3anv.xn--p1ai/wp-content/plugins/my-calendar/js/m…cessible-modal-window-aria.min.js?ver=3.8.5

js xn--90aae3anv.xn--p1ai collected 2026-09-24 22:13:02 UTC 6,498 bytes, 1 lines download raw bytes

1"use strict";!function(t){var e="mc-modal",a="data-modal-background-click",d="data-modal-prefix-class",n="data-modal-text",i="data-modal-content-id",o="data-modal-describedby-id",l="data-modal-title",r="data-modal-focus-toid",s="data-modal-close-text",c="mc-modal-close",u="mc-modal-close",m="data-content-back-id",b="data-focus-back",f="mc-modal-content",g="modal-title",A="mc-modal-page",v="mc-modal",p="mc-modal-overlay",y="Close modal",E="data-background-click",h="mc-no-scroll",C=function(e){return t.getElementById(e)},k=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},x=function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)};function L(t){t.parentNode.removeChild(t)}var I=function(t,e){for(var a=!1,d=t.parentNode;d&&!1===a;)!0===x(d,e)?a=!0:d=d.parentNode;return!0===a?d.getAttribute("id"):""},B=function(t){if(""!==t.modalFocusBackId){var e=C(t.modalFocusBackId).closest(".mc-events");e&&e.insertAdjacentElement("beforeEnd",t.modalContent.firstChild)}L(t.modal),L(t.overlay)},j=function(L){var j=arguments.length<=1||void 0===arguments[1]||arguments[1];(function(){var a=arguments.length<=0||void 0===arguments[0]?t:arguments[0];return[].slice.call(a.querySelectorAll("."+e))})(L).forEach(function(e){var a=Math.random().toString(32).slice(2,12),d=C(A),n=t.querySelector("body");if(e.setAttribute("id","label_modal_"+a),e.setAttribute("aria-haspopup","dialog"),null===d||0===d.length){var i=t.createElement("DIV");i.setAttribute("id",A),function(t,e){for("string"==typeof e&&(e=document.createElement(e)),t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(n,i),d=i}}),j&&["click","keydown"].forEach(function(L){t.body.addEventListener(L,function(j){var T,D,w,M,S,_,q,N=I(j.target,e);if((!0===x(j.target,e)||""!==N)&&"click"===L){var P=t.querySelector("body"),F=""!==N?C(N):j.target,H=!0===F.hasAttribute(d)?F.getAttribute(d)+"-":"",O=!0===F.hasAttribute(n)?F.getAttribute(n):"",R=!0===F.hasAttribute(i)?F.getAttribute(i):"",V=!0===F.hasAttribute(o)?F.getAttribute(o):"",$=!0===F.hasAttribute(l)?F.getAttribute(l):"",K=!0===F.hasAttribute(s)?F.getAttribute(s):y,W=!0===F.hasAttribute(a)?F.getAttribute(a):"",z=!0===F.hasAttribute(r)?F.getAttribute(r):"",G=C(A);P.insertAdjacentHTML("beforeEnd",(M=p,S=(w={text:K,backgroundEnabled:W,prefixClass:H}).text||y,_=w.prefixClass+"modal-overlay",q="disabled"===w.backgroundEnabled?"disabled":"enabled",'<span\n                    id="'+M+'"\n                    class="'+_+'"\n                    '+E+'="'+q+'"\n                    title="'+S+'"\n                    >\n                    <span class="invisible">'+S+"</span>\n                  </span>")),P.insertAdjacentElement("beforeEnd",function(t){var e=document.createElement("dialog"),a=document.createElement("div"),d=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");n.setAttribute("id",f),i.classList.add("mc-modal-title-container");var o=v,l=t.modalPrefixClass+"modal",r=t.modalPrefixClass+"modal__wrapper",s=t.modalPrefixClass+"modal-close",A='<span class="'+t.modalPrefixClass+'modal-close__text">\n                                          '+t.modalCloseText+"\n                                         </span>",p=t.modalPrefixClass+"modal__content",y=t.modalPrefixClass+"modal-title",E=""!==t.modalTitle?'<h1 id="'+g+'" class="'+y+'">\n                                          '+t.modalTitle+"\n                                         </h1>":"",h='<button type="button" class="'+u+" "+s+'" id="'+c+'" '+m+'="'+t.modalContentId+'" '+b+'="'+t.modalFocusBackId+'"><span class="dashicons dashicons-no" aria-hidden="true"></span>\n                               '+A+"\n                              </button>",k=t.modalText;if(""===k&&t.modalContentId){var x=C(t.modalContentId);if(!x.classList.contains("calendar-events")&&x){var L,I=x.querySelector(".mc-event");I&&(L=I.getAttribute("class")),L&&e.setAttribute("class",L)}x&&n.insertAdjacentElement("beforeEnd",x)}else n.insertAdjacentHTML("beforeEnd",k);return e.setAttribute("id",o),e.classList.add(l),e.setAttribute("role","dialog"),e.setAttribute("aria-describedby",t.modalDescribedById+" open"),e.setAttribute("aria-labelledby",g),a.setAttribute("role","document"),a.classList.add(r),i.insertAdjacentHTML("afterBegin",E),i.insertAdjacentHTML("afterBegin",h),d.classList.add(p),d.insertAdjacentElement("afterbegin",i),d.insertAdjacentElement("beforeEnd",n),a.insertAdjacentElement("afterBegin",d),e.insertAdjacentElement("afterBegin",a),e}({modalText:O,modalPrefixClass:H,backgroundEnabled:R,modalTitle:$,modalCloseText:K,modalCloseTitle:K,modalContentId:R,modalDe
1scribedById:V,modalFocusBackId:F.getAttribute("id")})),G.setAttribute("inert",""),D=h,(T=P).classList?T.classList.add(D):T.className+=" "+D;var J=C(c);if(""!==z){var Q=C(z);Q?Q.focus():J.focus()}else J.focus();j.preventDefault()}var U=I(j.target,u);if((j.target.getAttribute("id")===c||""!==U||j.target.getAttribute("id")===p||!0===x(j.target,u))&&"click"===L){P=t.querySelector("body"),G=C(A);var X=C(v),Y=C(f)?C(f):"",Z=C(p),tt=(at=C(c)).getAttribute(b),et=at.getAttribute(m);W=Z.getAttribute(E);if(j.target.getAttribute("id")!==p||"disabled"!==W)if(B({modal:X,modalContent:Y,overlay:Z,modalFocusBackId:tt,contentBackId:et,backgroundEnabled:W,fromId:j.target.getAttribute("id")}),G.removeAttribute("inert"),k(P,h),tt)(dt=C(tt))&&dt.focus()}if(C(v)&&"keydown"===L){P=t.querySelector("body"),G=C(A),X=C(v),Y=C(f)?C(f):"",Z=C(p),tt=(at=C(c)).getAttribute(b),et=at.getAttribute(m);var at,dt,nt=[].slice.call(X.querySelectorAll("a[href], area[href], input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]"));function it(t){return t.checkVisibility()}if(nt=nt.filter(it),27===j.keyCode)if(B({modal:X,modalContent:Y,overlay:Z,modalFocusBackId:tt,contentBackId:et}),G.removeAttribute("inert"),k(P,h),tt)(dt=C(tt))&&dt.focus();"Tab"===j.key&&nt.indexOf(j.target)>=0&&(j.shiftKey?j.target===nt[0]&&(nt.at(-1).focus(),j.preventDefault()):j.target===nt.at(-1)&&(nt[0].focus(),j.preventDefault())),9===j.keyCode&&-1===nt.indexOf(j.target)&&(j.preventDefault(),nt[0].focus())}},!0)})};document.addEventListener("DOMContentLoaded",function t(){j(),document.removeEventListener("DOMContentLoaded",t)}),window.accessibleModalWindowAria=j}(document);

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.