import*as e from"lit";import*as t from"lit/decorators.js";var r,o,s={2927(t,r,o){var s,i;t.exports=(s={LitElement:()=>e.LitElement,css:()=>e.css,html:()=>e.html},i={},o.d(i,s),i)},4870(e,t,r){r.d(t,{$:()=>o});var o,s=r(2900),i=r(7704),c=r(9609),n=r(4084),a=r(2927),l=r(8899),p=r(4973),h=function(e,t,r,o){var s,i=arguments.length,c=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,o);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(c=(i<3?s(c):i>3?s(t,r,c):s(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c};!function(e){let t=class extends((0,i.Io)(a.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[n.A,p.A]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(e,t=1){const r=super.getAvailableSelectedIndex(e,t);-1!==r&&(this.selected=r)}handleKeyDown(e){const{code:t}=e;switch(t){case s.Uz.ArrowUp:case s.Uz.ArrowLeft:e.stopPropagation(),0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case s.Uz.ArrowDown:case s.Uz.ArrowRight:e.stopPropagation(),this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return a.html`
        <div role="group" aria-labelledby="id-group-label">
          <slot name="checkbox"></slot>
        </div>
      `}};h([(0,l.property)({type:String,attribute:"group-label"})],t.prototype,"label",void 0),h([(0,l.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),h([(0,l.query)("slot[name='checkbox']")],t.prototype,"checkboxSlot",void 0),t=h([(0,c.w)("md-checkboxgroup")],t),e.ELEMENT=t}(o||(o={}))},8899(e,r,o){var s,i;e.exports=(s={property:()=>t.property,query:()=>t.query},i={},o.d(i,s),i)}},i={};function c(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,c),r.exports}c.m=s,r=[],c.O=(e,t,o,s)=>{if(!t){var i=1/0;for(p=0;p<r.length;p++){for(var[t,o,s]=r[p],n=!0,a=0;a<t.length;a++)(!1&s||i>=s)&&Object.keys(c.O).every(e=>c.O[e](t[a]))?t.splice(a--,1):(n=!1,s<i&&(i=s));if(n){r.splice(p--,1);var l=o();void 0!==l&&(e=l)}}return e}s=s||0;for(var p=r.length;p>0&&r[p-1][2]>s;p--)r[p]=r[p-1];r[p]=[t,o,s]},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{c as __webpack_require__};o={6834:0},c.C=e=>{var t,r,{__webpack_esm_ids__:s,__webpack_esm_modules__:i,__webpack_esm_runtime__:n}=e,a=0;for(t in i)c.o(i,t)&&(c.m[t]=i[t]);for(n&&n(c);a<s.length;a++)r=s[a],c.o(o,r)&&o[r]&&o[r][0](),o[s[a]]=0;c.O()},c.O.j=e=>0===o[e];import*as n from"../9609.js";c.C(n);import*as a from"../4084.js";c.C(a);import*as l from"../2364.js";c.C(l);import*as p from"../9938.js";c.C(p);import*as h from"../5201.js";c.C(h);import*as d from"../2900.js";c.C(d);import*as m from"../608.js";c.C(m);import*as f from"../3203.js";c.C(f);import*as b from"../7162.js";c.C(b);import*as u from"../4973.js";c.C(u);import*as v from"../2942.js";c.C(v);var y=c.O(void 0,[9609,4084,2364,9938,5201,2900,608,3203,7162,4973,2942],()=>c(4870));const w=(y=c.O(y)).$;export{w as CheckboxGroup};