PageSourceSearch

https://www.ladianasiena.it/wp-content/plugins/my-calendar/js/moda…cessible-modal-window-aria.min.js?ver=3.8.6

js ladianasiena.it collected 2026-09-24 11:36:38 UTC 6,404 bytes, 1 lines download raw bytes

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