!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"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit/directives/repeat.js"));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","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit/directives/repeat.js"],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"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit/directives/repeat.js")):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,e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e["lit/directives/repeat.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s,r,o,l,d,n,a,c,p,h,m)=>(()=>{"use strict";var u,b={1499(e,t,i){i.r(t),i.d(t,{Card:()=>s}),i(5983),i(23),i(1821),i(6131),i(8552),i(708),i(9613);var s,r=i(9609),o=i(4084),l=i(7161),d=i(8175),n=i(2900),a=i(4242),c=i(429),p=function(e,t,i,s){var r,o=arguments.length,l=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(l=(o<3?r(l):o>3?r(t,i,l):r(t,i))||l);return o>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends l.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[o.A,a.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(e){e.code!==n.Uz.Enter&&e.code!==n.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(e,t){e.stopPropagation();const i=t.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:i},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(e,t){e.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:t.toLowerCase(),keyCode:e.code},bubbles:!0,composed:!0}))}render(){return l.html`
        <div
          class="md-card"
          id="${this.id}"
          part="card"
          tabindex="0"
          @click=${()=>this.handleCardClick()}
          @keydown=${e=>this.handleCardKeyDown(e)}
        >
          <div class="md-card-header">
            <slot name="card-header-aside">
              <md-favorite value="${"card-"+this.id}"></md-favorite>
            </slot>
            <div class="md-card-header-title">
              <slot name="card-header-title">
                <h1>${this.title}</h1>
                <h2>${this.subtitle}</h2>
              </slot>
            </div>
            <div class="md-card-header-actions">
              ${this.info?l.html`
                    <md-tooltip message="${this.info}" placement="bottom">
                      <md-button
                        ariaLabel="${this.infoAriaLabel}"
                        class="md-card-info-icon"
                        color="color-none"
                        size="size-none"
                      >
                        <md-icon slot="icon" name="info-circle-bold" size="16" iconSet="momentumDesign"></md-icon>
                      </md-button>
                    </md-tooltip>
                  `:l.nothing}
              ${this.menuOptions.length?l.html`
                    <md-menu-overlay class="md-card-menu" placement="bottom-start">
                      <md-button
                        ariaLabel="${this.menuAriaLabel}"
                        class="md-card-menu-icon"
                        color="color-none"
                        size="size-none"
                        slot="menu-trigger"
                      >
                        <md-icon slot="icon" name="more-adr-bold" size="16" iconSet="momentumDesign"></md-icon>
                      </md-button>
                      <div class="md-card-menu-list-items" style="width: 100%;">
                        <md-list>
                          ${(0,d.repeat)(this.menuOptions,(e,t)=>l.html`
                              <md-list-item
                                class="${"menu-item-"+t}"
                                slot="list-item"
                                @click=${t=>this.handleCardMenuEvent(t,e)}
                                @keydown=${t=>this.handleCardMenuKeyDown(t,e)}
                                >${e}</md-list-item
                              >
                            `)}
                        </md-list>
                      </div>
                    </md-menu-overlay>
                  `:l.nothing}
            </div>
          </div>
          <div class="md-card-content">
            <slot name="content"></slot>
          </div>
          <div class="md-card-footer">
            <slot name="footer"> </slot>
          </div>
        </div>
      `}};p([(0,c.property)({type:String})],t.prototype,"title",void 0),p([(0,c.property)({type:String})],t.prototype,"subtitle",void 0),p([(0,c.property)({type:String})],t.prototype,"id",void 0),p([(0,c.property)({type:String})],t.prototype,"info",void 0),p([(0,c.property)({type:String,attribute:"info-aria-label"})],t.prototype,"infoAriaLabel",void 0),p([(0,c.property)({type:String,attribute:"menu-aria-label"})],t.prototype,"menuAriaLabel",void 0),p([(0,c.property)({type:Array})],t.prototype,"menuOptions",void 0),t=p([(0,r.w)("md-card")],t),e.ELEMENT=t}(s||(s={}))},23(e,t,i){i(1821);var s,r=i(2900),o=i(7704),l=i(9609),d=i(4084),n=i(7161),a=i(429),c=i(5125),p=i(291),h=i(6816),m=function(e,t,i,s){var r,o=arguments.length,l=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(l=(o<3?r(l):o>3?r(t,i,l):r(t,i))||l);return o>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends((0,o.yC)(n.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite"}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[d.A,h.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(e){e.code!==r.Uz.Enter&&e.code!==r.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return n.html`
        <label
          for="favorite-checkbox"
          id="${this.id}"
          class="md-favorite ${(0,c.classMap)(this.favoriteClassMap)}"
          tabindex="0"
        >
          <input
            type="checkbox"
            aria-label=${(0,p.ifDefined)(this.label.length?this.label:void 0)}
            value=${this.value}
            ?checked=${this.checked}
            ?disabled=${this.disabled}
            aria-hidden="true"
            name="favorite-checkbox"
          />
          <md-icon
            name="${this.checked?"favorite-filled":"favorite-bold"}"
            iconSet="momentumDesign"
            size="16"
          ></md-icon>
        </label>
      `}};m([(0,a.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,a.property)({type:Boolean})],t.prototype,"checked",void 0),m([(0,a.property)({type:String})],t.prototype,"value",void 0),m([(0,a.property)({type:String})],t.prototype,"id",void 0),m([(0,a.property)({type:String})],t.prototype,"label",void 0),t=m([(0,l.w)("md-favorite")],t),e.ELEMENT=t}(s||(s={}))},6131(e,t,i){var s,r=i(2900),o=i(7704),l=i(9609),d=i(4084),n=i(7161),a=i(429),c=i(291),p=i(740),h=function(e,t,i,s){var r,o=arguments.length,l=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(l=(o<3?r(l):o>3?r(t,i,l):r(t,i))||l);return o>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends((0,o.Io)(n.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(e){super.firstUpdated(e),"none"!==this._role&&this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(e){return!e.hasAttribute("hidden")}connectedCallback(){super.connectedCallback();const e=this.getAttribute("role");this._role=e||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(e){const t=e.composedPath();return this.slotted.findIndex(e=>t.includes(e))}switchListItemOnArrowPress(e,t=1){const i=super.getAvailableSelectedIndex(e,t);-1!==i&&(this.selected=i)}setActivated(e){-1!==e&&(this.activated=e,this.selected=e,this.setSelected(e))}findSelectedListItemIndex(){return this.slotted.findIndex(e=>e.selected)}setSelected(e){const t=this.findSelectedListItemIndex();-1!==t&&t!==e&&(this.slotted[t].selected=!1),this.slotted[e]&&(this.slotted[e].selected=!0)}updated(e){super.updated(e),e.has("slotted")&&this.setActivated(this.activated),e.has("activated")&&this.setActivated(this.activated),e.has("label")&&"none"!==this._role&&this.setAttribute("aria-label",this.label)}isListItemDisabled(e){var t;const i=this.slotted[e];return null===(t=null==i?void 0:i.disabled)||void 0===t||t}handleClick(e){const t=this.findListItemIndex(e);-1!==t&&(this.isListItemDisabled(t)||(this.setActivated(t),this.notifySelectedChange()))}shouldElementHandleKey(e,t){if(e.hasAttribute("data-handles-keys")||e.closest("[data-handles-keys]"))return!0;const i=e.tagName.toLowerCase(),s=e.nodeName.toLowerCase(),o="input"===s||"textarea"===s||"select"===s,l=e.getAttribute("role"),d=e.hasAttribute("contenteditable")||"false"===e.getAttribute("aria-readonly"),n=[r.Uz.ArrowUp,r.Uz.ArrowDown,r.Uz.ArrowLeft,r.Uz.ArrowRight],a=[r.Uz.Enter,r.Uz.Space];return n.includes(t)?o||d||"textbox"===l||"combobox"===l||"listbox"===l||"menu"===l||"slider"===l||"scrollbar"===l||"tablist"===l||i.startsWith("md-")&&("md-input"===i||"md-select"===i||"md-combobox"===i):a.includes(t)?"button"===l||"link"===l||"checkbox"===l||"radio"===l||"button"===i||"a"===i||"md-button"===i||"md-checkbox"===i||"md-radio"===i||o:(t===r.Uz.Home||t===r.Uz.End)&&(o||d||"textbox"===l||"md-input"===i)}handleKeyDown(e){const t=e.composedPath()[0];if(this.shouldElementHandleKey(t,e.code))return;const{code:i}=e;switch(i){case r.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case r.Uz.Home:this.switchListItemOnArrowPress(0);break;case r.Uz.ArrowUp:case r.Uz.ArrowLeft:e.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case r.Uz.ArrowDown:case r.Uz.ArrowRight:e.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case r.Uz.Enter:case r.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[d.A,p.A]}render(){return n.html`
        <ul role=${(0,c.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
          <slot name="list-item"></slot>
        </ul>
      `}};h([(0,a.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),h([(0,a.property)({type:String})],t.prototype,"label",void 0),h([(0,a.property)({type:Number,reflect:!0})],t.prototype,"activated",void 0),h([(0,a.query)("slot[name='list-item']")],t.prototype,"listItemSlot",void 0),t=h([(0,l.w)("md-list")],t),e.ELEMENT=t}(s||(s={}))},8552(e,t,i){var s,r=i(7704),o=i(9609),l=i(4084),d=i(7161),n=i(429),a=i(5125),c=i(740),p=function(e,t,i,s){var r,o=arguments.length,l=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(l=(o<3?r(l):o>3?r(t,i,l):r(t,i))||l);return o>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",`${e}`),this.requestUpdate("disabled",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._selected=e,"option"===this.role&&this.setAttribute("aria-selected",`${e}`),this.requestUpdate("selected",t)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[l.A,c.A]}render(){return d.html`
        <div class="md-list-item ${(0,a.classMap)(this.listItemTemplateClassMap)}" part="list-item">
          <slot></slot>
        </div>
      `}};p([(0,n.property)({type:String,reflect:!0})],t.prototype,"role",void 0),p([(0,n.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),p([(0,n.property)({type:String,reflect:!0})],t.prototype,"shape",void 0),p([(0,n.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),p([(0,n.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=p([(0,o.w)("md-list-item")],t),e.ELEMENT=t}(s||(s={}))},7704(e,t,i){i.d(t,{Io:()=>o.I,UM:()=>r.U,yC:()=>s.y}),i(2364);var s=i(3203),r=(i(9938),i(5201)),o=i(4781);i(608)},2022(e){e.exports=o},554(e){e.exports=l},2962(e){e.exports=n},6538(e){e.exports=a},8250(e){e.exports=c},9371(e){e.exports=p},4863(e){e.exports=h},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=r},8175(e){e.exports=m},318(e){e.exports=s},5314(e){e.exports=d}},f={};function v(e){var t=f[e];if(void 0!==t)return t.exports;var i=f[e]={exports:{}};return b[e](i,i.exports,v),i.exports}v.m=b,u=[],v.O=(e,t,i,s)=>{if(!t){var r=1/0;for(n=0;n<u.length;n++){for(var[t,i,s]=u[n],o=!0,l=0;l<t.length;l++)(!1&s||r>=s)&&Object.keys(v.O).every(e=>v.O[e](t[l]))?t.splice(l--,1):(o=!1,s<r&&(r=s));if(o){u.splice(n--,1);var d=i();void 0!==d&&(e=d)}}return e}s=s||0;for(var n=u.length;n>0&&u[n-1][2]>s;n--)u[n]=u[n-1];u[n]=[t,i,s]},v.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return v.d(t,{a:t}),t},v.d=(e,t)=>{for(var i in t)v.o(t,i)&&!v.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},v.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={561:0,1462:0,2942:0,5323:0,6060:0,6920:0,7704:0,8180:0,8442:0};v.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[o,l,d]=i,n=0;if(o.some(t=>0!==e[t])){for(s in l)v.o(l,s)&&(v.m[s]=l[s]);if(d)var a=d(v)}for(t&&t(i);n<o.length;n++)r=o[n],v.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return v.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 y=v.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,519,2050,8441,608,6343,9146,7582,7162,708,9613,740,6816,7557,4242],()=>v(1499));return v.O(y)})());