var t,e,o={6328(t,e,o){o.d(e,{C:()=>n,j:()=>g}),o(2369);var s=o(7704),r=o(9609),i=o(4084),l=o(2927),a=o(8899),p=o(4955),c=o(3517),d=o(8687),m=function(t,e,o,s){var r,i=arguments.length,l=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(l=(i<3?r(l):i>3?r(e,o,l):r(e,o))||l);return i>3&&l&&Object.defineProperty(e,o,l),l};const n=["left","right"],h="md-toggle-switch__accessible-description";var g;!function(t){let e=class extends((0,s.yC)(l.LitElement)){constructor(){super(...arguments),this.htmlId="",this.label="toggle",this.description=void 0,this.checked=!1,this.disabled=!1,this.small=!1,this.smaller=!1,this.alignLabel="right",this.autofocus=!1}handleClick(){this.disabled||(this.checked=!this.checked)}get toggleSwitchClassMap(){return{"md-toggle-switch--small":this.small,"md-toggle-switch--smaller":this.smaller}}switchTemplate(){return"left"===this.alignLabel?l.html`
          <slot></slot>
          <span
            class="md-toggle-switch__label__container md-toggle-switch__label__container__left"
            part="toggle-label"
          ></span>
        `:l.html`
          <span class="md-toggle-switch__label__container" part="toggle-label"></span>
          <slot></slot>
        `}render(){return l.html`
        <div
          class="md-input-container md-toggle-switch ${(0,p.classMap)(this.toggleSwitchClassMap)}"
          @click=${this.handleClick}
        >
          <input
            type="checkbox"
            role="switch"
            class="md-toggle-switch__input"
            aria-label="${this.label}"
            .id=${this.htmlId}
            ?checked=${this.checked}
            ?disabled=${this.disabled}
            ?autofocus=${this.autofocus}
            tabindex=${this.disabled?-1:0}
            aria-describedby=${(0,c.ifDefined)(this.description?h:void 0)}
          />
          <md-label .htmlFor=${this.htmlId} class="md-toggle-switch__label"> ${this.switchTemplate()} </md-label>
          ${this.description&&l.html`
            <div id=${h} class="md-toggle-switch__accessible-description">
              ${this.description}
            </div>
          `}
        </div>
      `}static get styles(){return[i.A,d.A]}};m([(0,a.property)({type:String})],e.prototype,"htmlId",void 0),m([(0,a.property)({type:String})],e.prototype,"label",void 0),m([(0,a.property)({type:String})],e.prototype,"description",void 0),m([(0,a.property)({type:Boolean})],e.prototype,"checked",void 0),m([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,a.property)({type:Boolean})],e.prototype,"small",void 0),m([(0,a.property)({type:Boolean})],e.prototype,"smaller",void 0),m([(0,a.property)({type:String})],e.prototype,"alignLabel",void 0),m([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),e=m([(0,r.w)("md-toggle-switch")],e),t.ELEMENT=e}(g||(g={}))}},s={};function r(t){var e=s[t];if(void 0!==e)return e.exports;var i=s[t]={exports:{}};return o[t](i,i.exports,r),i.exports}r.m=o,t=[],r.O=(e,o,s,i)=>{if(!o){var l=1/0;for(d=0;d<t.length;d++){for(var[o,s,i]=t[d],a=!0,p=0;p<o.length;p++)(!1&i||l>=i)&&Object.keys(r.O).every(t=>r.O[t](o[p]))?o.splice(p--,1):(a=!1,i<l&&(l=i));if(a){t.splice(d--,1);var c=s();void 0!==c&&(e=c)}}return e}i=i||0;for(var d=t.length;d>0&&t[d-1][2]>i;d--)t[d]=t[d-1];t[d]=[o,s,i]},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={3539:0},r.C=t=>{var o,s,{__webpack_esm_ids__:i,__webpack_esm_modules__:l,__webpack_esm_runtime__:a}=t,p=0;for(o in l)r.o(l,o)&&(r.m[o]=l[o]);for(a&&a(r);p<i.length;p++)s=i[p],r.o(e,s)&&e[s]&&e[s][0](),e[i[p]]=0;r.O()},r.O.j=t=>0===e[t];import*as i from"../9609.js";r.C(i);import*as l from"../4084.js";r.C(l);import*as a from"../4955.js";r.C(a);import*as p from"../3517.js";r.C(p);import*as c from"../2364.js";r.C(c);import*as d from"../9938.js";r.C(d);import*as m from"../4781.js";r.C(m);import*as n from"../5201.js";r.C(n);import*as h from"../5584.js";r.C(h);import*as g from"../8227.js";r.C(g);import*as f from"../7704.js";r.C(f);import*as y from"../2927.js";r.C(y);import*as _ from"../3970.js";r.C(_);import*as b from"../2369.js";r.C(b);import*as v from"../5757.js";r.C(v);import*as u from"../6994.js";r.C(u);import*as j from"../8687.js";r.C(j);var C=r.O(void 0,[9609,4084,4955,3517,2364,9938,4781,5201,5584,8227,7704,2927,3970,2369,5757,6994,8687],()=>r(6328));const w=(C=r.O(C)).j,k=C.C;export{w as ToggleSwitch,k as alignLabel};