var e,t,r={4870(e,t,r){r.d(t,{$:()=>o});var o,s=r(2900),i=r(7704),n=r(9609),c=r(4084),a=r(2927),l=r(8899),p=r(4973),h=function(e,t,r,o){var s,i=arguments.length,n=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(n=(i<3?s(n):i>3?s(t,r,n):s(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n};!function(e){let t=class extends((0,i.Io)(a.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[c.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,n.w)("md-checkboxgroup")],t),e.ELEMENT=t}(o||(o={}))}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,s),i.exports}s.m=r,e=[],s.O=(t,r,o,i)=>{if(!r){var n=1/0;for(p=0;p<e.length;p++){for(var[r,o,i]=e[p],c=!0,a=0;a<r.length;a++)(!1&i||n>=i)&&Object.keys(s.O).every(e=>s.O[e](r[a]))?r.splice(a--,1):(c=!1,i<n&&(n=i));if(c){e.splice(p--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var p=e.length;p>0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[r,o,i]},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{s as __webpack_require__};t={6834:0},s.C=e=>{var r,o,{__webpack_esm_ids__:i,__webpack_esm_modules__:n,__webpack_esm_runtime__:c}=e,a=0;for(r in n)s.o(n,r)&&(s.m[r]=n[r]);for(c&&c(s);a<i.length;a++)o=i[a],s.o(t,o)&&t[o]&&t[o][0](),t[i[a]]=0;s.O()},s.O.j=e=>0===t[e];import*as i from"../9609.js";s.C(i);import*as n from"../4084.js";s.C(n);import*as c from"../2364.js";s.C(c);import*as a from"../9938.js";s.C(a);import*as l from"../5201.js";s.C(l);import*as p from"../2900.js";s.C(p);import*as h from"../2927.js";s.C(h);import*as d from"../608.js";s.C(d);import*as m from"../8899.js";s.C(m);import*as f from"../3203.js";s.C(f);import*as b from"../7162.js";s.C(b);import*as u from"../4973.js";s.C(u);import*as v from"../2942.js";s.C(v);var w=s.O(void 0,[9609,4084,2364,9938,5201,2900,2927,608,8899,3203,7162,4973,2942],()=>s(4870));const g=(w=s.O(w)).$;export{g as CheckboxGroup};