"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[2369],{2369(e,t,o){var l,i=o(9609),r=o(4084),s=o(7161),a=o(429),p=o(5125),n=o(3970),h=function(e,t,o,l){var i,r=arguments.length,s=r<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,o):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,l);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};!function(e){let t=class extends s.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[r.A,n.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return s.html`
        <label @click=${this.handleClick} class="md-label ${(0,p.classMap)(this.labelClassMap)}" for="${this.htmlFor}">
          ${this.label?s.html` <span>${this.label}</span> `:s.html` <slot></slot> `}
        </label>
      `}};h([(0,a.property)({type:String})],t.prototype,"label",void 0),h([(0,a.property)({type:String})],t.prototype,"theme",void 0),h([(0,a.property)({type:Boolean})],t.prototype,"radioLabel",void 0),h([(0,a.property)({type:Boolean})],t.prototype,"checkboxLabel",void 0),h([(0,a.property)({type:Boolean})],t.prototype,"toggleSwitchLabel",void 0),h([(0,a.property)({type:String})],t.prototype,"htmlFor",void 0),h([(0,a.property)({type:Boolean})],t.prototype,"active",void 0),h([(0,a.property)({type:Boolean})],t.prototype,"disabled",void 0),h([(0,a.property)({type:Boolean})],t.prototype,"indeterminate",void 0),h([(0,a.property)({type:Boolean})],t.prototype,"secondaryLabel",void 0),t=h([(0,i.w)("md-label")],t),e.ELEMENT=t}(l||(l={}))}}]);