"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[7906],{7906(e,t,s){var r,i=s(9609),n=s(4084),o=s(7161),a=s(429),p=s(5125),c=s(2797),l=function(e,t,s,r){var i,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(n<3?i(o):n>3?i(t,s,o):i(t,s))||o);return n>3&&o&&Object.defineProperty(t,s,o),o};!function(e){let t=class extends o.LitElement{constructor(){super(...arguments),this.message="",this.messageType=void 0,this.id="",this.ariaLive="off"}get inputMessageClassMap(){return{[`md-${this.messageType}`]:!!this.messageType}}static get styles(){return[n.A,c.A]}getIconName(){switch(this.messageType){case"success":return"check-circle-badge-filled";case"error":return"error-legacy-badge-filled";case"warning":return"warning-badge-filled";case"priority":return"info-badge-filled";default:return""}}render(){return o.html`
        <div
          class="md-input__message ${(0,p.classMap)(this.inputMessageClassMap)}"
          id=${this.id}
          aria-live=${this.ariaLive}
          role="alert"
        >
          ${this.messageType?o.html`<md-icon name="${this.getIconName()}" size="14" iconSet="momentumDesign"></md-icon>`:o.nothing}
          <slot>${this.message}</slot>
        </div>
      `}};l([(0,a.property)({type:String})],t.prototype,"message",void 0),l([(0,a.property)({type:String})],t.prototype,"messageType",void 0),l([(0,a.property)({type:String})],t.prototype,"id",void 0),l([(0,a.property)({type:String})],t.prototype,"ariaLive",void 0),t=l([(0,i.w)("md-help-text")],t),e.ELEMENT=t}(r||(r={}))}}]);