!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/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i)=>(()=>{"use strict";var o,s={3949(e,t,r){r.r(t),r.d(t,{Radio:()=>i});var i,o=r(7704),s=r(9609),l=r(4084),a=r(7161),d=r(429),n=r(5125),p=r(291),c=r(7231),u=function(e,t,r,i){var o,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(l=(s<3?o(l):s>3?o(t,r,l):o(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l};!function(e){let t=class extends((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.label="",this.value="",this.message="",this.hideMessage=!1,this.ariaLabel="",this.autofocus=!1,this._disabled=!1,this.checked=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}get inputAriaLabel(){var e,t,r,i;const o=(null===(e=this.message)||void 0===e?void 0:e.length)?` - ${this.message}`:"";if(null===(t=this.ariaLabel)||void 0===t?void 0:t.length)return this.ariaLabel;if(null===(r=this.label)||void 0===r?void 0:r.length)return this.label+o;const s=null===(i=this.textContent)||void 0===i?void 0:i.trim();return(null==s?void 0:s.length)?s+o:o}static get styles(){return[l.A,c.A]}get helpTextClassMap(){return{"md-radio-help-text--hide":this.hideMessage}}messagesTemplate(){var e;return(null===(e=this.message)||void 0===e?void 0:e.length)?a.html`
            <div class="${(0,n.classMap)(this.helpTextClassMap)}">
              <md-help-text class="help-text-radio" newMomentum role="alert" aria-live="assertive">
                ${this.message}
              </md-help-text>
            </div>
          `:a.nothing}render(){return a.html`
        <div>
          <slot name="image"></slot>
          <div class="md-radio-wrapper" part="radio-wrapper">
            <div class="md-radio-icon"></div>
            <input
              class="md-radio-input"
              part="radio-input"
              type="radio"
              role="radio"
              aria-label=${(0,p.ifDefined)(this.inputAriaLabel)}
              aria-checked=${this.checked?"true":"false"}
              .value=${this.value}
              ?checked=${this.checked}
              ?autofocus=${this.autofocus}
              ?disabled=${this.disabled}
              tabindex="-1"
              id="radio-label"
            />
            <label
              for="radio-label"
              class="md-radio-label"
              part="radio-label"
              @click=${e=>e.preventDefault()}
            >
              <slot></slot>
            </label>
          </div>
        </div>
        ${this.messagesTemplate()}
      `}};u([(0,d.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),u([(0,d.property)({type:String})],t.prototype,"label",void 0),u([(0,d.property)({type:String})],t.prototype,"value",void 0),u([(0,d.property)({type:String})],t.prototype,"message",void 0),u([(0,d.property)({type:Boolean})],t.prototype,"hideMessage",void 0),u([(0,d.property)({type:String})],t.prototype,"ariaLabel",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"autofocus",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),u([(0,d.property)({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t=u([(0,s.w)("md-radio")],t),e.ELEMENT=t}(i||(i={}))},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r},291(e){e.exports=i}},l={};function a(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return s[e](r,r.exports,a),r.exports}a.m=s,o=[],a.O=(e,t,r,i)=>{if(!t){var s=1/0;for(p=0;p<o.length;p++){for(var[t,r,i]=o[p],l=!0,d=0;d<t.length;d++)(!1&i||s>=i)&&Object.keys(a.O).every(e=>a.O[e](t[d]))?t.splice(d--,1):(l=!1,i<s&&(s=i));if(l){o.splice(p--,1);var n=r();void 0!==n&&(e=n)}}return e}i=i||0;for(var p=o.length;p>0&&o[p-1][2]>i;p--)o[p]=o[p-1];o[p]=[t,r,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6587:0};a.O.j=t=>0===e[t];var t=(t,r)=>{var i,o,[s,l,d]=r,n=0;if(s.some(t=>0!==e[t])){for(i in l)a.o(l,i)&&(a.m[i]=l[i]);if(d)var p=d(a)}for(t&&t(r);n<s.length;n++)o=s[n],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(p)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var d=a.O(void 0,[9609,4084,2364,9938,4781,5201,5584,8227,7704,5757,7231],()=>a(3949));return a.O(d)})());