var e,t,o={4466(e,t,o){o.d(t,{A:()=>i}),o(1821);var i,r=o(7704),s=o(9609),d=o(93),a=o(4084),n=o(2927),l=o(8899),p=o(3517),c=o(742),m=function(e,t,o,i){var r,s=arguments.length,d=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(d=(s<3?r(d):s>3?r(t,o,d):r(t,o))||d);return s>3&&d&&Object.defineProperty(t,o,d),d};!function(e){let t=class extends((0,r.yC)(n.LitElement)){constructor(){super(...arguments),this._expanded=!1,this._level=3,this.uniqueId=(0,d.O)("accordion-item"),this.label="",this.disabled=!1,this.doubleClickToExpand=!1}get expanded(){return this._expanded}set expanded(e){const t=this._expanded;this._expanded=e,e?(this.notifyAccordionFocus(),this.notifyExpandedHeader()):this.notifyCollapsedHeader(),this.requestUpdate("expanded",t)}get level(){return this._level}set level(e){const t=this.level;e<1||e>6?(console.warn("Please set appropriate section heading level"),this._level=3):this._level=e,this.requestUpdate("level",t)}notifyExpandedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-expanded",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyCollapsedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-collapsed",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyAccordionFocus(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}firstUpdated(e){super.firstUpdated(e),this.setAttribute("id",this.uniqueId)}static get styles(){return[a.A,c.A]}isClickOnExpanderIcon(e){var t;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-accordion-expander-icon");return!!o&&e.composedPath().includes(o)}handleClickEvent(e){if(this.disabled)return;const t="dblclick"===e.type,o="click"===e.type&&this.isClickOnExpanderIcon(e);(this.doubleClickToExpand?t||o:!t)&&this.dispatchEvent(new CustomEvent("accordion-item-click",{detail:{srcEvent:e},composed:!0,bubbles:!0}))}handleKeyDown(e){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-keydown",{detail:{srcEvent:e},bubbles:!0,composed:!0}))}render(){return n.html`
        <div class="md-accordion-item">
          <div role="heading" aria-level=${this.level} class="md-accordion-header" part="accordion-header">
            <button
              type="button"
              aria-expanded=${this.expanded}
              class="md-accordion-expander"
              aria-label=${(0,p.ifDefined)(this.label||void 0)}
              aria-controls="panel-${this.uniqueId}"
              aria-disabled=${this.disabled}
              ?disabled=${this.disabled}
              id="header-${this.uniqueId}"
              part="accordion-button"
              tabindex=${(0,p.ifDefined)(this.disabled?-1:void 0)}
              @click=${this.handleClickEvent}
              @dblclick=${this.handleClickEvent}
              @keydown=${this.handleKeyDown}
            >
              <slot name="header-content">
                <span class="md-accordion-expander-label">${this.label}</span>
              </slot>
              <md-icon
                class="md-accordion-expander-icon"
                iconSet=${"momentumDesign"}
                size="14"
                name="arrow-down-bold"
              ></md-icon>
            </button>
          </div>
          <div
            role="region"
            id="panel-${this.uniqueId}"
            aria-labelledby="header-${this.uniqueId}"
            class="md-accordion-panel"
            part="accordion-panel"
          >
            <slot></slot>
          </div>
        </div>
      `}};m([(0,l.property)({type:String})],t.prototype,"label",void 0),m([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),m([(0,l.property)({type:Boolean,attribute:"double-click-to-expand"})],t.prototype,"doubleClickToExpand",void 0),m([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"expanded",null),m([(0,l.property)({type:Number,reflect:!0})],t.prototype,"level",null),m([(0,l.query)(".md-accordion-expander")],t.prototype,"header",void 0),t=m([(0,s.w)("md-accordion-item")],t),e.ELEMENT=t}(i||(i={}))}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var s=i[e]={exports:{}};return o[e](s,s.exports,r),s.exports}r.m=o,e=[],r.O=(t,o,i,s)=>{if(!o){var d=1/0;for(p=0;p<e.length;p++){for(var[o,i,s]=e[p],a=!0,n=0;n<o.length;n++)(!1&s||d>=s)&&Object.keys(r.O).every(e=>r.O[e](o[n]))?o.splice(n--,1):(a=!1,s<d&&(d=s));if(a){e.splice(p--,1);var l=i();void 0!==l&&(t=l)}}return t}s=s||0;for(var p=e.length;p>0&&e[p-1][2]>s;p--)e[p]=e[p-1];e[p]=[o,i,s]},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{r as __webpack_require__};t={2330:0},r.C=e=>{var o,i,{__webpack_esm_ids__:s,__webpack_esm_modules__:d,__webpack_esm_runtime__:a}=e,n=0;for(o in d)r.o(d,o)&&(r.m[o]=d[o]);for(a&&a(r);n<s.length;n++)i=s[n],r.o(t,i)&&t[i]&&t[i][0](),t[s[n]]=0;r.O()},r.O.j=e=>0===t[e];import*as s from"../9609.js";r.C(s);import*as d from"../4084.js";r.C(d);import*as a from"../4955.js";r.C(a);import*as n from"../3517.js";r.C(n);import*as l from"../1156.js";r.C(l);import*as p from"../3305.js";r.C(p);import*as c from"../4739.js";r.C(c);import*as m from"../7154.js";r.C(m);import*as h from"../9773.js";r.C(h);import*as u from"../5983.js";r.C(u);import*as f from"../7755.js";r.C(f);import*as v from"../1821.js";r.C(v);import*as b from"../2364.js";r.C(b);import*as y from"../4980.js";r.C(y);import*as C from"../5308.js";r.C(C);import*as j from"../9938.js";r.C(j);import*as x from"../9500.js";r.C(x);import*as E from"../4781.js";r.C(E);import*as _ from"../5201.js";r.C(_);import*as k from"../5584.js";r.C(k);import*as w from"../8227.js";r.C(w);import*as O from"../2900.js";r.C(O);import*as g from"../7704.js";r.C(g);import*as $ from"../1280.js";r.C($);import*as q from"../93.js";r.C(q);import*as I from"../742.js";r.C(I);var A=r.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,4980,5308,9938,9500,4781,5201,5584,8227,2900,7704,1280,93,742],()=>r(4466));const D=(A=r.O(A)).A;export{D as AccordionItem};