!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i,o,s,l,a)=>(()=>{"use strict";var n,d={8637(e,t,r){r.r(t),r.d(t,{Grabber:()=>i}),r(1821);var i,o=r(3876),s=r(7704),l=r(9609),a=r(7154),n=r(4084),d=r(7161),c=r(429),h=r(5125),u=r(291),p=r(7155),b=function(e,t,r,i){var o,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(l=(s<3?o(l):s>3?o(t,r,l):o(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l};!function(e){let t=class extends((0,s.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[n.A,p.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,a.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===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
        <div class="md-grabber__container ${(0,h.classMap)(this.grabberContainerClassMap)}">
          <button
            class="md-grabber ${(0,h.classMap)(this.grabberClassMap)}"
            part="grabber"
            aria-expanded=${this.checked}
            ?disabled=${this.disabled}
            tabindex="0"
            aria-label=${(0,u.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>
      `}};b([(0,c.property)({type:String})],t.prototype,"label",void 0),b([(0,c.property)({type:String})],t.prototype,"checkedLabel",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"hovered",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"disabled",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"checked",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"visible",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"focused",void 0),b([(0,c.property)({type:Boolean,attribute:"disable-click-toggle"})],t.prototype,"disableClickToggle",void 0),b([(0,c.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"dragger",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"shadow",void 0),t=b([(0,l.w)("md-grabber")],t),e.ELEMENT=t}(i||(i={}))},2022(e){e.exports=s},554(e){e.exports=l},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r},291(e){e.exports=o},318(e){e.exports=i},5314(e){e.exports=a}},c={};function h(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return d[e](r,r.exports,h),r.exports}h.m=d,n=[],h.O=(e,t,r,i)=>{if(!t){var o=1/0;for(d=0;d<n.length;d++){for(var[t,r,i]=n[d],s=!0,l=0;l<t.length;l++)(!1&i||o>=i)&&Object.keys(h.O).every(e=>h.O[e](t[l]))?t.splice(l--,1):(s=!1,i<o&&(o=i));if(s){n.splice(d--,1);var a=r();void 0!==a&&(e=a)}}return e}i=i||0;for(var d=n.length;d>0&&n[d-1][2]>i;d--)n[d]=n[d-1];n[d]=[t,r,i]},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var r in t)h.o(t,r)&&!h.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3747:0};h.O.j=t=>0===e[t];var t=(t,r)=>{var i,o,[s,l,a]=r,n=0;if(s.some(t=>0!==e[t])){for(i in l)h.o(l,i)&&(h.m[i]=l[i]);if(a)var d=a(h)}for(t&&t(r);n<s.length;n++)o=s[n],h.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return h.O(d)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var u=h.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5201,5584,8227,2900,7704,3876,7155],()=>h(8637));return h.O(u)})());