1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[907],{1707:(e,t,n)=>{n.d(t,{default:()=>i});var s=n(2499),o=n(2122);class i extends o.A{constructor(e){super(e,e.getAttribute("data-js-module")),this.initializedBefore||(e.parentElement!==document.body&&document.body.appendChild(e),this.getElements([{id:"close",selector:"close"},{id:"content",selector:"content"}]),this.focusedElementBeforeOpen=document.activeElement,this.toggle=document.querySelector(`[data-js-dialog-toggle="${e.id}"]`),this.bindEvents())}get focusableElements(){return Array.from(this.elements.self.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]:not([hidden])'))}get firstFocusableElement(){return this.focusableElements[0]}get lastFocusableElement(){return this.focusableElements.slice(-1)[0]}handleBackwardTab(e){document.activeElement===this.firstFocusableElement&&(e.preventDefault(),this.lastFocusableElement.focus())}handleForwardTab(e){document.activeElement===this.lastFocusableElement&&(e.preventDefault(),this.firstFocusableElement.focus())}openDialog(){(0,s.mh)(this.elements.self),this.focusedElementBeforeOpen=document.activeElement,this.elements.self.showModal(),this.firstFocusableElement.focus()}closeDialog(){this.elements.self.close(),this.focusedElementBeforeOpen.focus(),(0,s.fY)(this.elements.self)}bindEvents(){this.elements.self.addEventListener("click",(e=>{e.target===this.elements.self&&this.closeDialog()})),this.toggle&&this.toggle.addEventListener("click",this.openDialog.bind(this)),this.elements.close.addEventListener("click",this.closeDialog.bind(this)),this.elements.self.addEventListener("keydown",(e=>{switch(e.key){case"Tab":if(1===this.focusableElements.length){e.preventDefault();break}e.shiftKey?this.handleBackwardTab(e):this.handleForwardTab(e);break;case"Escape":this.closeDialog()}}))}}},2122:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(9812);const o=class{constructor(e,t){this.id=t,this.elements={self:e},this.setInitialized()}setInitialized(){this.elements.self&&this.elements.self.setAttribute("data-js-module-initialized",!0)}setUnInitialized(){this.elements.self&&this.elements.self.removeAttribute("data-js-module-initialized")}getElements(e){const t=e.map((e=>({...e,selector:`${this.id}__${e.selector}`}))),n=(0,s.A)("[data-js-element]",this.elements.self);for(let e=0;e<n.length;e+=1){const s=n[e],o=t.filter((e=>s.getAttribute("data-js-element")===e.selector)),[i]=o;i&&(void 0===this.elements[i.id]?this.elements[i.id]=s:(void 0===this.elements[i.id].push&&(this.elements[i.id]=[this.elements[i.id]]),this.elements[i.id].push(s)))}Object.values(this.elements).forEach((e=>{e.asList=(e=>void 0===e.push?[e]:e)(e)}))}}},2499:(e,t,n)=>{n.d(t,{fY:()=>f,mh:()=>m});var s=!1;if("undefined"!=typeof window){var o={get passive(){s=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),l=[],a=!1,d=-1,r=void 0,c=void 0,u=function(e){return l.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},h=function(e){var t=e||window.event;return!!u(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},m=function(e,t){if(e){if(!l.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};l=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(l),[n]),i?(e.ontouchstart=function(e){1===e.targetTouches.length&&(d=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-d;!u(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?h(e):e.stopPropagation())}(t,e)},a||(document.addEventListener("touchmove",h,s?{passive:!1}:void 0),a=!0)):function(e){if(void 0===c){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(c=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===r&&(r=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},f=function(e){e?(l=l.filter((function(t){return t.targetElement!==e})),i?(e.ontouchstart=null,e.ontouchmove=null,a&&0===l.length&&(document.removeEventListener("touchmove",h,s?{passive:!1}:void 0),a=!1)):l.length||(void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==r&&(document.body.style.overflow=r,r=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}
1,9812:(e,t,n)=>{n.d(t,{A:()=>s});const s=(e,t=window.document)=>[].slice.call(t.querySelectorAll(e))}}]); 2//# sourceMappingURL=f2c46b960a259822fdbf.dialog.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.