1import"./chunk-6KHOHYTW.js";var e=class{constructor(t){this.element=t,this.parentElement=this.element.parentNode,this._init()}_init(){this._addStatusContainer(),this._loadingListener()}_addStatusContainer(){this.statusContainer=document.createElement("div"),this.statusContainer.textContent="",this.statusContainer.ariaLive="polite",this.statusContainer.classList.add("sr-only"),this.parentElement.parentNode.insertBefore(this.statusContainer,this.parentElement)}_loadingListener(){this.parentElement.addEventListener("lcl-button:loading:start",t=>{this._startLoading(t.detail||{})}),this.parentElement.addEventListener("lcl-button:loading:stop",t=>{this._stopLoading(t.detail||{})})}_startLoading({statusText:t="Laddar"}){this.parentElement.classList.add("button--loading"),this.statusContainer.textContent=t}_stopLoading({statusText:t="Klar"}){this.parentElement.classList.remove("button--loading"),this.statusContainer.textContent=t,setTimeout(()=>{this.statusContainer.textContent=""},1e3)}};export{e as default}; 2//# sourceMappingURL=button-module-YRPPJECO.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.