1"use strict";(globalThis.webpackChunk_inventis_front_end_boilerplate=globalThis.webpackChunk_inventis_front_end_boilerplate||[]).push([[157],{6157:(t,s,e)=>{function i(t,s,e){var i;return(s="symbol"==typeof(i=function(t,s){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,s||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(t)}(s,"string"))?i:String(i))in t?Object.defineProperty(t,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[s]=e,t}e.r(s),e.d(s,{default:()=>o});class n{constructor(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,"options",{useTransitions:!0,openClass:"-is-open",openingClass:"-is-opening",closingClass:"-is-closing",handleFocus:!0}),i(this,"element",void 0),i(this,"activeControl",null),i(this,"destroyController",new AbortController),this.options={...this.options,...s},this.element=t,this.setup()}setup(){this.attachEventListeners()}destroy(){this.destroyController.abort()}attachEventListeners(){document.addEventListener("click",(t=>this.onDocumentClick(t)),{signal:this.destroyController.signal}),this.options.useTransitions&&this.element.addEventListener("transitionend",(()=>this.onTransitionEnd()),{signal:this.destroyController.signal})}onDocumentClick(t){const s=t.target.closest(`[aria-controls=${this.element.id}]`);null!==s&&(t.preventDefault(),this.isOpen()||(this.activeControl=s),this.toggle())}onTransitionEnd(){this.element.classList.remove(this.options.openingClass),this.element.classList.remove(this.options.closingClass)}toggle(){this.isOpen()?this.close():this.open()}open(){this.setControlsState("true"),this.options.useTransitions?(this.element.classList.add(this.options.openingClass),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{this.element.classList.add(this.options.openClass)}))}))):this.element.classList.add(this.options.openClass)}close(){this.setControlsState("false"),null!==this.activeControl&&this.activeControl.focus(),this.options.useTransitions?(this.element.classList.add(this.options.closingClass),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{this.element.classList.remove(this.options.openClass)}))}))):this.element.classList.remove(this.options.openClass)}setControlsState(t){this.getControls().forEach((s=>s.setAttribute("aria-expanded",t.toString())))}isOpen(){return this.element.classList.contains(this.options.openClass)}getControls(){return document.querySelectorAll(`[aria-controls=${this.element.id}]`)}}const o=t=>new n(t)}}]);
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.