var e,t,r={8637(e,t,r){r.d(t,{I:()=>o}),r(1821);var o,s=r(3876),i=r(7704),a=r(9609),n=r(7154),l=r(4084),d=r(2927),h=r(8899),p=r(4955),c=r(3517),b=r(7155),m=function(e,t,r,o){var s,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){let t=class extends((0,i.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,b.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(e){this.disableClickToggle||(0,n.o)(e.code)&&(e.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get currentLabel(){return this.checked?this.checkedLabel:this.label}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused,"md-grabber--rtl":this.isRtl}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get isRtl(){return"rtl"===getComputedStyle(this).direction}get iconName(){if(this.dragger)return"list-menu-bold";if("leading"===this.alignment||"trailing"===this.alignment){const e=this.isRtl?"arrow-right-bold":"arrow-left-bold",t=this.isRtl?"arrow-left-bold":"arrow-right-bold";return this.checked?e:t}return this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===s.vz.isMomentumV2Enabled?"10":"12"}render(){return d.html`
        <div class="md-grabber__container ${(0,p.classMap)(this.grabberContainerClassMap)}">
          <button
            class="md-grabber ${(0,p.classMap)(this.grabberClassMap)}"
            part="grabber"
            aria-expanded=${this.checked}
            ?disabled=${this.disabled}
            tabindex="0"
            aria-label=${(0,c.ifDefined)(this.currentLabel.length?this.currentLabel:void 0)}
            type="button"
            @click=${this.handleMouseDown}
            @keydown=${this.handleKeyDown}
            @mouseenter=${this.handleMouseEnter}
            @mouseleave=${this.handleMouseLeave}
            @focus=${this.handleFocus}
            @blur=${this.handleBlur}
          >
            <md-icon
              name="${this.iconName}"
              size="${this.iconSize}"
              iconSet="momentumDesign"
              aria-hidden="true"
            ></md-icon>
          </button>
        </div>
      `}};m([(0,h.property)({type:String})],t.prototype,"label",void 0),m([(0,h.property)({type:String})],t.prototype,"checkedLabel",void 0),m([(0,h.property)({type:Boolean})],t.prototype,"hovered",void 0),m([(0,h.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,h.property)({type:Boolean})],t.prototype,"checked",void 0),m([(0,h.property)({type:Boolean})],t.prototype,"visible",void 0),m([(0,h.property)({type:Boolean})],t.prototype,"focused",void 0),m([(0,h.property)({type:Boolean,attribute:"disable-click-toggle"})],t.prototype,"disableClickToggle",void 0),m([(0,h.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),m([(0,h.property)({type:Boolean})],t.prototype,"dragger",void 0),m([(0,h.property)({type:Boolean})],t.prototype,"shadow",void 0),t=m([(0,a.w)("md-grabber")],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 a=1/0;for(h=0;h<e.length;h++){for(var[r,o,i]=e[h],n=!0,l=0;l<r.length;l++)(!1&i||a>=i)&&Object.keys(s.O).every(e=>s.O[e](r[l]))?r.splice(l--,1):(n=!1,i<a&&(a=i));if(n){e.splice(h--,1);var d=o();void 0!==d&&(t=d)}}return t}i=i||0;for(var h=e.length;h>0&&e[h-1][2]>i;h--)e[h]=e[h-1];e[h]=[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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{s as __webpack_require__};t={3747:0},s.C=e=>{var r,o,{__webpack_esm_ids__:i,__webpack_esm_modules__:a,__webpack_esm_runtime__:n}=e,l=0;for(r in a)s.o(a,r)&&(s.m[r]=a[r]);for(n&&n(s);l<i.length;l++)o=i[l],s.o(t,o)&&t[o]&&t[o][0](),t[i[l]]=0;s.O()},s.O.j=e=>0===t[e];import*as i from"../9609.js";s.C(i);import*as a from"../4084.js";s.C(a);import*as n from"../4955.js";s.C(n);import*as l from"../3517.js";s.C(l);import*as d from"../1156.js";s.C(d);import*as h from"../3305.js";s.C(h);import*as p from"../4739.js";s.C(p);import*as c from"../7154.js";s.C(c);import*as b from"../9773.js";s.C(b);import*as m from"../5983.js";s.C(m);import*as g from"../7755.js";s.C(g);import*as u from"../1821.js";s.C(u);import*as f from"../2364.js";s.C(f);import*as v from"../5308.js";s.C(v);import*as y from"../9938.js";s.C(y);import*as C from"../9500.js";s.C(C);import*as j from"../4781.js";s.C(j);import*as k from"../5201.js";s.C(k);import*as w from"../5584.js";s.C(w);import*as _ from"../8227.js";s.C(_);import*as E from"../2900.js";s.C(E);import*as $ from"../7704.js";s.C($);import*as M from"../1280.js";s.C(M);import*as O from"../2599.js";s.C(O);import*as x from"../3876.js";s.C(x);import*as B from"../7155.js";s.C(B);var L=s.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,5308,9938,9500,4781,5201,5584,8227,2900,7704,1280,2599,3876,7155],()=>s(8637));const D=(L=s.O(L)).I;export{D as Grabber};