1"use strict";(self.webpackChunksvk_designsystem=self.webpackChunksvk_designsystem||[]).push([[684],{90797:function(t,e,n){function s(){return(+new Date+Math.random()).toString(36).replace(/[^a-z1-9]+/g,"")}n.d(e,{A:function(){return s}})},50684:function(t,e,n){n.r(e),n.d(e,{SvkCollapse:function(){return o}});var s=n(90797);class o extends HTMLElement{static observedAttributes=["open"];constructor(){super(),this.open=this.hasAttribute("open")??!1,this.attachShadow({mode:"open"}),this.id=(0,s.A)(),this.render()}connectedCallback(){this.domButton=this.querySelector(".svk-collapse__button"),this.domContent=this.querySelector('[slot="content"]'),this.domContent.id=`${this.id}-content`,this.domButton.setAttribute("aria-controls",`${this.id}-content`),this.domButton.setAttribute("aria-expanded",this.open),this.domButton.addEventListener("click",this.handleClick.bind(this))}handleClick(t){"true"===t.currentTarget.getAttribute("aria-expanded")?(t.currentTarget.setAttribute("aria-expanded",!1),this.removeAttribute("open")):(t.currentTarget.setAttribute("aria-expanded",!0),this.setAttribute("open",""))}attributeChangedCallback(t,e,n){"expanded"===t?(this.expanded="true"===n,this.domButton.setAttribute("aria-expanded",this.expanded)):"open"===t&&void 0!==this.domButton&&(null!==n?this.domButton.setAttribute("aria-expanded",!0):this.domButton.setAttribute("aria-expanded",!1))}render(){let t=document.createElement("template");t.innerHTML='\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t}\n\n\t\t\t\tslot[name="content"] {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\n\t\t\t\t.svk-collapse__button {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tgap: var(--space-100);\n\t\t\t\t}\n\n\t\t\t\t:host([open]) slot[name="content"] {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<slot name="header"></slot>\n\t\t\t<slot name="content"></slot>\n\t\t',this.shadowRoot.appendChild(t.content)}}window.customElements.define("svk-collapse",o)}}]);
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.