!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,(e,t,i,o,r,s,d,n)=>(()=>{"use strict";var l,a={4466(e,t,i){i.r(t),i.d(t,{AccordionItem:()=>o}),i(1821);var o,r=i(7704),s=i(9609),d=i(93),n=i(4084),l=i(7161),a=i(429),c=i(291),p=i(742),u=function(e,t,i,o){var r,s=arguments.length,d=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(d=(s<3?r(d):s>3?r(t,i,d):r(t,i))||d);return s>3&&d&&Object.defineProperty(t,i,d),d};!function(e){let t=class extends((0,r.yC)(l.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[n.A,p.A]}isClickOnExpanderIcon(e){var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-accordion-expander-icon");return!!i&&e.composedPath().includes(i)}handleClickEvent(e){if(this.disabled)return;const t="dblclick"===e.type,i="click"===e.type&&this.isClickOnExpanderIcon(e);(this.doubleClickToExpand?t||i:!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 l.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,c.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,c.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>
      `}};u([(0,a.property)({type:String})],t.prototype,"label",void 0),u([(0,a.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),u([(0,a.property)({type:Boolean,attribute:"double-click-to-expand"})],t.prototype,"doubleClickToExpand",void 0),u([(0,a.property)({type:Boolean,reflect:!0})],t.prototype,"expanded",null),u([(0,a.property)({type:Number,reflect:!0})],t.prototype,"level",null),u([(0,a.query)(".md-accordion-expander")],t.prototype,"header",void 0),t=u([(0,s.w)("md-accordion-item")],t),e.ELEMENT=t}(o||(o={}))},2022(e){e.exports=s},554(e){e.exports=d},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=r},318(e){e.exports=o},5314(e){e.exports=n}},c={};function p(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return a[e](i,i.exports,p),i.exports}p.m=a,l=[],p.O=(e,t,i,o)=>{if(!t){var r=1/0;for(a=0;a<l.length;a++){for(var[t,i,o]=l[a],s=!0,d=0;d<t.length;d++)(!1&o||r>=o)&&Object.keys(p.O).every(e=>p.O[e](t[d]))?t.splice(d--,1):(s=!1,o<r&&(r=o));if(s){l.splice(a--,1);var n=i();void 0!==n&&(e=n)}}return e}o=o||0;for(var a=l.length;a>0&&l[a-1][2]>o;a--)l[a]=l[a-1];l[a]=[t,i,o]},p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var i in t)p.o(t,i)&&!p.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2330:0};p.O.j=t=>0===e[t];var t=(t,i)=>{var o,r,[s,d,n]=i,l=0;if(s.some(t=>0!==e[t])){for(o in d)p.o(d,o)&&(p.m[o]=d[o]);if(n)var a=n(p)}for(t&&t(i);l<s.length;l++)r=s[l],p.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return p.O(a)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var u=p.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5201,5584,8227,2900,7704,93,742],()=>p(4466));return p.O(u)})());