1import i from"woody_library_woody_component";class s extends i{#e;#i;#s;#t;#n=null;#h=null;isOpen=!1;constructor(){super()}init(t){super.init(t),this.#e=document.createElement("div"),this.#e.classList.add("woody-map-popup__dialog"),this.#e.setAttribute("role","dialog"),this.#e.setAttribute("tabindex","-1"),this.#e.setAttribute("aria-label",this.getAttribute("aria-label")||"Aper\xE7u du contenu"),this.#i=document.createElement("button"),this.#i.setAttribute("type","button"),this.#i.classList.add("woody-map-popup__close"),this.#i.setAttribute("aria-label",this.getAttribute("data-close-label")||"Fermer l\u2019aper\xE7u"),this.#i.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewbox="0 0 40 40" aria-hidden="true" focusable="false"> 2 <path d="M10,10L30,30M30,10L10,30" stroke-width="4"/> 3 </svg>`,this.#i.addEventListener("click",()=>this.close()),this.#e.appendChild(this.#i),this.#s=document.createElement("div"),this.#s.classList.add("woody-map-popup__loader"),this.#e.appendChild(this.#s),this.#t=document.createElement("div"),this.#t.classList.add("woody-map-popup__content"),this.#t.hidden=!0,this.#e.appendChild(this.#t),this.appendChild(this.#e),this.hidden=!0}clear(){this.#t.innerHTML="",this.#t.hidden=!0,this.#s.hidden=!1,this.isOpen&&this.close()}open(t=null){this.isOpen||(this.#h=document.activeElement,this.hidden=!1,this.isOpen=!0,this.#n=e=>{e.key==="Escape"&&(e.stopPropagation(),this.close())},document.addEventListener("keydown",this.#n)),this.setContent(t),this.#e.focus()}setContent(t){if(t==null||t===""){this.#s.hidden=!1,this.#t.hidden=!0;return}this.#s.hidden=!0,this.#t.hidden=!1,typeof t=="string"?this.#t.innerHTML=t:t instanceof Node&&(this.#t.innerHTML="",this.#t.appendChild(t))}close(){if(!this.isOpen)return;this.isOpen=!1,this.hidden=!0,this.#n&&(document.removeEventListener("keydown",this.#n),this.#n=null);const t=this.#h&&this.#h.isConnected?this.#h:this.previousElementSibling;this.#h=null,t&&typeof t.focus=="function"&&(t.tabIndex<0&&!t.hasAttribute("tabindex")&&t.setAttribute("tabindex","-1"),t.focus()),this.dispatchEvent(new CustomEvent("close"))}}export{s as default};
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.