"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./tslib.es6-CHeFCc6E.js"),t=require("./query-assigned-elements-8EurZY45.js"),p=require("./mwc-radio.css-BWiWreTh.js"),m=require("./property-DYTC_2-m.js"),u=require("./query-Dv2F3m_t.js"),g=require("./class-map-DTzB8z-1.js"),f=require("./if-defined-CZCqOAYs.js"),_=require("./mwc-list-item.css-Bib8TVz5.js"),h=require("./list-item-qiQvSXie.js");/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */let n=class extends p.RadioBase{};n.styles=[p.styles];n=c.__decorate([t.e("mwc-radio")],n);/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class l extends _.ListItemBase{constructor(){super(...arguments),this.left=!1,this.graphic="control",this._changeFromClick=!1}render(){const s={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},e=this.renderText(),o=this.graphic&&this.graphic!=="control"&&!this.left?this.renderGraphic():t.x``,i=this.hasMeta&&this.left?this.renderMeta():t.x``,a=this.renderRipple();return t.x`
      ${a}
      ${o}
      ${this.left?"":e}
      <mwc-radio
          global
          class=${g.o(s)}
          tabindex=${this.tabindex}
          name=${f.l(this.group===null?void 0:this.group)}
          .checked=${this.selected}
          ?disabled=${this.disabled}
          @checked=${this.onChange}>
      </mwc-radio>
      ${this.left?e:""}
      ${i}`}onClick(){this._changeFromClick=!0,super.onClick()}async onChange(s){const e=s.target;this.selected===e.checked||(this._skipPropRequest=!0,this.selected=e.checked,await this.updateComplete,this._skipPropRequest=!1,this._changeFromClick||this.fireRequestSelected(this.selected,"interaction")),this._changeFromClick=!1}}c.__decorate([u.i("slot")],l.prototype,"slotElement",void 0);c.__decorate([u.i("mwc-radio")],l.prototype,"radioElement",void 0);c.__decorate([m.n({type:Boolean})],l.prototype,"left",void 0);c.__decorate([m.n({type:String,reflect:!0})],l.prototype,"graphic",void 0);var v=Object.getOwnPropertyDescriptor,y=(r,s,e,o)=>{for(var i=o>1?void 0:o?v(s,e):s,a=r.length-1,d;a>=0;a--)(d=r[a])&&(i=d(i)||i);return i};exports.CovalentRadioListItem=class extends l{};exports.CovalentRadioListItem.styles=[_.styles,h.styles,t.i`
      ${t.r(h.covalentStyles)}
    `];exports.CovalentRadioListItem=y([t.e("cv-radio-list-item")],exports.CovalentRadioListItem);const C=exports.CovalentRadioListItem;exports.default=C;
