@momentum-ui/web-components 2.22.8 → 2.22.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -362,7 +362,7 @@
362
362
  .filterParams=${this.filterParams}
363
363
  .datePickerProps=${this.datePickerProps}
364
364
  ></md-datepicker-day>
365
- `}))}static get styles(){return[n.A,l.A]}render(){return a.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};d([(0,a.property)({attribute:!1})],e.prototype,"startOfWeekDay",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"filterParams",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=d([(0,o.w)("md-datepicker-week")],e),t.ELEMENT=e}(s||(s={}))},11323:(t,e,i)=>{i.d(e,{MenuOverlay:()=>o});var s,o,r=i(90195),n=i(31890),a=i(28373),l=i(66677),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),y=i(69371),b=i.n(y),v=i(4863),g=i(41488),f=i(97822),w=i(16366),C=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},x=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){t.small="260px",t.large="370px"}(s||(s={})),function(t){let e=class extends((0,a.d)(g.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.popperInstance=null,this.triggerElement=null,this.shouldWrapFocus=()=>"dialog"===this.ariaRole,this.updateActiveMenuOverlayOpened=e=>{var i;this===e.target&&(null===(i=t.ELEMENT.activeOverlay)||void 0===i||i.push(e.target))},this.updateActiveMenuOverlayClosed=e=>{var i,s;const o=t.ELEMENT.activeOverlay.indexOf(e.target);this===e.target&&-1!==o&&(t.ELEMENT.activeOverlay.splice(o,1),t.ELEMENT.activeOverlay.length>0?(null===(i=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(s=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===s||s.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)((t=>{this.disabled||(this.isOpen=t)}),100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=e=>x(this,void 0,void 0,(function*(){let i=!1;const s=e.composedPath();s.length&&(i=!!s.find((t=>t===this)),!i)||!this.overlayContainer||e.code!==r.Uz.Escape||(e.preventDefault(),(t.ELEMENT.activeOverlay.length>0?t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))})),this.handleTriggerKeyDown=t=>x(this,void 0,void 0,(function*(){switch(t.code){case r.Uz.Space:case r.Uz.Enter:t.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}})),this.handleOutsideOverlayClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(t){const e=this._isOpen;this._isOpen=t,this.handleInstance(t),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",t),this.requestUpdate("isOpen",e)}renderMaxHeight(){return this.maxHeight?`max-height: ${this.maxHeight};`:"max-height: calc(100vh - 48px);"}renderOverflowY(){return this.isDatePicker?"overflow-y: visible;":"overflow-y: auto;"}renderWidth(){return this.customWidth?`width: ${this.customWidth};`:"small"===this.size?`width: ${s.small};`:`width: ${s.large};`}getStyles(){return g.html`
365
+ `}))}static get styles(){return[n.A,l.A]}render(){return a.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};d([(0,a.property)({attribute:!1})],e.prototype,"startOfWeekDay",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"filterParams",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=d([(0,o.w)("md-datepicker-week")],e),t.ELEMENT=e}(s||(s={}))},11323:(t,e,i)=>{i.d(e,{MenuOverlay:()=>o});var s,o,r=i(90195),n=i(31890),a=i(28373),l=i(66677),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),y=i(69371),b=i.n(y),v=i(4863),g=i(41488),f=i(97822),w=i(16366),C=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},x=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){t.small="260px",t.large="370px"}(s||(s={})),function(t){let e=class extends((0,a.d)(g.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.positioningStrategy=void 0,this.popperInstance=null,this.triggerElement=null,this.shouldWrapFocus=()=>"dialog"===this.ariaRole,this.updateActiveMenuOverlayOpened=e=>{var i;this===e.target&&(null===(i=t.ELEMENT.activeOverlay)||void 0===i||i.push(e.target))},this.updateActiveMenuOverlayClosed=e=>{var i,s;const o=t.ELEMENT.activeOverlay.indexOf(e.target);this===e.target&&-1!==o&&(t.ELEMENT.activeOverlay.splice(o,1),t.ELEMENT.activeOverlay.length>0?(null===(i=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(s=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===s||s.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)((t=>{this.disabled||(this.isOpen=t)}),100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=e=>x(this,void 0,void 0,(function*(){let i=!1;const s=e.composedPath();s.length&&(i=!!s.find((t=>t===this)),!i)||!this.overlayContainer||e.code!==r.Uz.Escape||(e.preventDefault(),(t.ELEMENT.activeOverlay.length>0?t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))})),this.handleTriggerKeyDown=t=>x(this,void 0,void 0,(function*(){switch(t.code){case r.Uz.Space:case r.Uz.Enter:t.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}})),this.handleOutsideOverlayClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(t){const e=this._isOpen;this._isOpen=t,this.handleInstance(t),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",t),this.requestUpdate("isOpen",e)}renderMaxHeight(){return this.maxHeight?`max-height: ${this.maxHeight};`:"max-height: calc(100vh - 48px);"}renderOverflowY(){return this.isDatePicker?"overflow-y: visible;":"overflow-y: auto;"}renderWidth(){return this.customWidth?`width: ${this.customWidth};`:"small"===this.size?`width: ${s.small};`:`width: ${s.large};`}getStyles(){return g.html`
366
366
  <style>
367
367
  :host .md-menu-overlay .overlay-content {
368
368
  ${this.renderMaxHeight()};
@@ -370,7 +370,7 @@
370
370
  ${this.renderOverflowY()};
371
371
  }
372
372
  </style>
373
- `}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("click",this.handleOutsideOverlayClick),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?this.triggerElement.setAttribute("aria-expanded","true"):this.triggerElement.removeAttribute("aria-expanded"))}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return x(this,void 0,void 0,(function*(){e.firstUpdated.call(this,t),yield new Promise((t=>setTimeout(t,0))),this.trigger&&(this.triggerElement=this.trigger[0],this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")),this.overlayContainer&&this.isOpen&&(this.handleInstance(!0),this.overlayContainer.toggleAttribute("data-show",!0)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),t.has("isOpen")&&this.updateTriggerElementAriaExpanded()}))}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick)))}updated(t){super.updated(t),t.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),this.triggerElement&&(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true"))):(this.dispatchMenuClose(),this.triggerElement&&(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false"))))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,v.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,(function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())})),placement:this.placement,modifiers:[...v.defaultModifiers,p(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame((()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()}))}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[w.A]}render(){return g.html`
373
+ `}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("click",this.handleOutsideOverlayClick),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?this.triggerElement.setAttribute("aria-expanded","true"):this.triggerElement.removeAttribute("aria-expanded"))}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return x(this,void 0,void 0,(function*(){e.firstUpdated.call(this,t),yield new Promise((t=>setTimeout(t,0))),this.trigger&&(this.triggerElement=this.trigger[0],this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")),this.overlayContainer&&this.isOpen&&(this.handleInstance(!0),this.overlayContainer.toggleAttribute("data-show",!0)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),t.has("isOpen")&&this.updateTriggerElementAriaExpanded()}))}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick)))}updated(t){super.updated(t),t.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),this.triggerElement&&(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true"))):(this.dispatchMenuClose(),this.triggerElement&&(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false"))))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,v.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,(function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())})),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,p(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame((()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()}))}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[w.A]}render(){return g.html`
374
374
  ${this.getStyles()}
375
375
  <div class="md-menu-overlay">
376
376
  <slot name="menu-trigger"></slot>
@@ -387,7 +387,7 @@
387
387
  </div>
388
388
  </div>
389
389
  </div>
390
- `}};e.activeOverlay=[],C([(0,g.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),C([(0,g.property)({type:String})],e.prototype,"size",void 0),C([(0,g.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),C([(0,g.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),C([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),C([(0,g.property)({type:Boolean})],e.prototype,"disabled",void 0),C([(0,g.property)({type:String})],e.prototype,"placement",void 0),C([(0,g.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaRole",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaLabel",void 0),C([(0,g.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),C([(0,g.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),C([(0,g.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),C([(0,g.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),C([(0,g.query)(".overlay-arrow")],e.prototype,"arrow",void 0),C([(0,g.queryAssignedNodes)("menu-trigger",!0)],e.prototype,"trigger",void 0),e=C([(0,n.w)("md-menu-overlay")],e),t.ELEMENT=e}(o||(o={}))},12176:(t,e,i)=>{i.d(e,{Spinner:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(8229),l=i(46325),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=56,this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}get spinnerStyleMap(){return{width:`${this.size}px`,height:`${this.size}px`}}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");if(!e)return;let i=null;const s=t=>{if(!this.isAnimating)return;i||(i=t);const o=t-i,r=o/1e3*360;e.style.transform=`rotate(${r}deg)`,o>=1e3&&(i=t),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");e&&(e.style.transform="")}render(){return n.html` <i class="md-spinner" part="spinner" style=${(0,a.styleMap)(this.spinnerStyleMap)}></i> `}};d([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=d([(0,o.w)("md-spinner")],e),t.ELEMENT=e}(s||(s={}))},13060:t=>{t.exports=k},16643:(t,e,i)=>{i.d(e,{TAB_CROSS_WIDTH:()=>p,Tab:()=>u});var s=i(90195),o=i(3001),r=i(31890),n=i(26283),a=i(26272),l=i(41488),d=i(23968),h=i(30076),c=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const p=22;var u;!function(t){let e=class extends((0,o.yC)(l.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.ariaLabel="",this.closable="",this.name="",this.isCrossVisible=!1,this.role="tab",this.type="line",this.newMomentum=!1,this.onlyIcon=!1,this.variant="ghost",this.visibleTab=!1,this._disabled=!1,this._selected=0===this.tabIndex,this.vertical=!1,this.viewportHidden=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t?this.tabDisabled():this.tabEnabled(),this.requestUpdate("disabled",e)}tabDisabled(){-1!==this.tabIndex&&(this.tabIndex=-1),this.setAttribute("aria-disabled","true")}tabEnabled(){-1===this.tabIndex&&this.selected&&(this.tabIndex=0),this.removeAttribute("aria-disabled")}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,t?(this.setAttribute("aria-selected","true"),this.notifySelectedTab()):this.removeAttribute("aria-selected"),this.requestUpdate("selected",e)}static get styles(){return[a.A,h.A]}handleClick(t){t.preventDefault(),this.id&&this.dispatchEvent(new CustomEvent("tab-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeydown(t){if((0,n.o)(t.code)){if(this.disabled)return void t.preventDefault();this.handleClick(t)}}handleCrossKeydown(t){t.stopPropagation(),t.code===s.Uz.Enter&&this.handleCrossEventDispatch()}handleCrossClick(t){t.preventDefault(),!0!==this.disabled&&this.handleCrossEventDispatch()}handleCrossEventDispatch(){this.id&&("auto"===this.closable?this.dispatchEvent(new CustomEvent("tab-cross-click",{detail:{id:this.id},bubbles:!0,composed:!0})):"custom"===this.closable&&this.dispatchEvent(new CustomEvent("tab-close-click",{detail:{id:this.id,name:this.name},bubbles:!0,composed:!0})))}notifySelectedTab(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}update(t){super.update(t),t.has("disabled")&&this.disabled&&(this.selected=!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}firstUpdated(t){super.firstUpdated(t)}renderCrossButton(){return l.html`
390
+ `}};e.activeOverlay=[],C([(0,g.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),C([(0,g.property)({type:String})],e.prototype,"size",void 0),C([(0,g.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),C([(0,g.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),C([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),C([(0,g.property)({type:Boolean})],e.prototype,"disabled",void 0),C([(0,g.property)({type:String})],e.prototype,"placement",void 0),C([(0,g.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaRole",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaLabel",void 0),C([(0,g.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),C([(0,g.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),C([(0,g.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),C([(0,g.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),C([(0,g.query)(".overlay-arrow")],e.prototype,"arrow",void 0),C([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),C([(0,g.queryAssignedNodes)("menu-trigger",!0)],e.prototype,"trigger",void 0),e=C([(0,n.w)("md-menu-overlay")],e),t.ELEMENT=e}(o||(o={}))},12176:(t,e,i)=>{i.d(e,{Spinner:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(8229),l=i(46325),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=56,this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}get spinnerStyleMap(){return{width:`${this.size}px`,height:`${this.size}px`}}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");if(!e)return;let i=null;const s=t=>{if(!this.isAnimating)return;i||(i=t);const o=t-i,r=o/1e3*360;e.style.transform=`rotate(${r}deg)`,o>=1e3&&(i=t),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");e&&(e.style.transform="")}render(){return n.html` <i class="md-spinner" part="spinner" style=${(0,a.styleMap)(this.spinnerStyleMap)}></i> `}};d([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=d([(0,o.w)("md-spinner")],e),t.ELEMENT=e}(s||(s={}))},13060:t=>{t.exports=k},16643:(t,e,i)=>{i.d(e,{TAB_CROSS_WIDTH:()=>p,Tab:()=>u});var s=i(90195),o=i(3001),r=i(31890),n=i(26283),a=i(26272),l=i(41488),d=i(23968),h=i(30076),c=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const p=22;var u;!function(t){let e=class extends((0,o.yC)(l.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.ariaLabel="",this.closable="",this.name="",this.isCrossVisible=!1,this.role="tab",this.type="line",this.newMomentum=!1,this.onlyIcon=!1,this.variant="ghost",this.visibleTab=!1,this._disabled=!1,this._selected=0===this.tabIndex,this.vertical=!1,this.viewportHidden=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t?this.tabDisabled():this.tabEnabled(),this.requestUpdate("disabled",e)}tabDisabled(){-1!==this.tabIndex&&(this.tabIndex=-1),this.setAttribute("aria-disabled","true")}tabEnabled(){-1===this.tabIndex&&this.selected&&(this.tabIndex=0),this.removeAttribute("aria-disabled")}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,t?(this.setAttribute("aria-selected","true"),this.notifySelectedTab()):this.removeAttribute("aria-selected"),this.requestUpdate("selected",e)}static get styles(){return[a.A,h.A]}handleClick(t){t.preventDefault(),this.id&&this.dispatchEvent(new CustomEvent("tab-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeydown(t){if((0,n.o)(t.code)){if(this.disabled)return void t.preventDefault();this.handleClick(t)}}handleCrossKeydown(t){t.stopPropagation(),t.code===s.Uz.Enter&&this.handleCrossEventDispatch()}handleCrossClick(t){t.preventDefault(),!0!==this.disabled&&this.handleCrossEventDispatch()}handleCrossEventDispatch(){this.id&&("auto"===this.closable?this.dispatchEvent(new CustomEvent("tab-cross-click",{detail:{id:this.id},bubbles:!0,composed:!0})):"custom"===this.closable&&this.dispatchEvent(new CustomEvent("tab-close-click",{detail:{id:this.id,name:this.name},bubbles:!0,composed:!0})))}notifySelectedTab(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}update(t){super.update(t),t.has("disabled")&&this.disabled&&(this.selected=!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}firstUpdated(t){super.firstUpdated(t)}renderCrossButton(){return l.html`
391
391
  <md-button
392
392
  variant="ghost"
393
393
  size="size-none"
@@ -966,6 +966,7 @@
966
966
  ?show-close=${!this.hideCloseButton}
967
967
  interactive
968
968
  trigger="manual"
969
+ inverted
969
970
  placement=${this.placement}
970
971
  @popover-open-changed="${t=>{t.detail.isOpen||this.notifyCoachClose()}}"
971
972
  >
@@ -1382,7 +1383,7 @@
1382
1383
  ${d().sanitize(this.content)}
1383
1384
  </div>
1384
1385
  ${this.messagesTemplate()}
1385
- `}};y([(0,h.property)({type:String})],e.prototype,"alignment",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"isEditing",void 0),y([(0,h.property)({type:String,attribute:"max-lines",reflect:!0})],e.prototype,"maxLines",void 0),y([(0,h.property)({type:String,reflect:!0})],e.prototype,"content",void 0),y([(0,h.property)({type:Object})],e.prototype,"message",void 0),y([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"alert",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"hideMessage",void 0),y([(0,h.property)({type:String})],e.prototype,"pattern",void 0),y([(0,h.property)({type:String})],e.prototype,"type",void 0),y([(0,h.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,h.property)({type:String,attribute:"aria-described-by"})],e.prototype,"ariaDescribedBy",void 0),y([(0,h.query)(".md-editable-textfield")],e.prototype,"editableField",void 0),e=y([(0,r.w)("md-editable-field")],e),t.ELEMENT=e}(s||(s={}))},52619:(t,e,i)=>{i.d(e,{InputFile:()=>s}),i(96798);var s,o=i(3001),r=i(26272),n=i(45001),a=i.n(n),l=i(41488),d=i(40333),h=i(97822),c=i(45213),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},u=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.A,c.A]}triggerFileLoad(t){t.preventDefault(),this.input.click()}handleFile(t){return u(this,void 0,void 0,(function*(){t.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const t of e){this.fileName=t.name;try{yield this.readFile(t)}catch(t){console.error("Error reading file",t)}}}))}readFile(t){return new Promise(((e,i)=>{const s=new FileReader;s.onload=t=>{e(t.target.result)},s.onerror=t=>i(t),s.readAsText(t)}))}importLanguage(t){return u(this,void 0,void 0,(function*(){try{const{default:e}=yield i(32908)(`./${t}`);a().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}}))}getAllAcceptTypes(){const t=a().listLanguages();return t.length?t.map((t=>a().getLanguage(`${t}`).aliases)).map((t=>t.map((t=>`.${t}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return l.html`
1386
+ `}};y([(0,h.property)({type:String})],e.prototype,"alignment",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"isEditing",void 0),y([(0,h.property)({type:String,attribute:"max-lines",reflect:!0})],e.prototype,"maxLines",void 0),y([(0,h.property)({type:String,reflect:!0})],e.prototype,"content",void 0),y([(0,h.property)({type:Object})],e.prototype,"message",void 0),y([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"alert",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"hideMessage",void 0),y([(0,h.property)({type:String})],e.prototype,"pattern",void 0),y([(0,h.property)({type:String})],e.prototype,"type",void 0),y([(0,h.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,h.property)({type:String,attribute:"aria-described-by"})],e.prototype,"ariaDescribedBy",void 0),y([(0,h.query)(".md-editable-textfield")],e.prototype,"editableField",void 0),e=y([(0,r.w)("md-editable-field")],e),t.ELEMENT=e}(s||(s={}))},52619:(t,e,i)=>{i.d(e,{InputFile:()=>s}),i(96798);var s,o=i(3001),r=i(26272),n=i(45001),a=i.n(n),l=i(41488),d=i(40333),h=i(97822),c=i(45213),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},u=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.A,c.A]}triggerFileLoad(t){t.preventDefault(),this.input.click()}handleFile(t){return u(this,void 0,void 0,(function*(){t.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const t of e){this.fileName=t.name;try{yield this.readFile(t)}catch(t){console.error("Error reading file",t)}}}))}readFile(t){return new Promise(((e,i)=>{const s=new FileReader;s.onload=t=>{e(t.target.result)},s.onerror=t=>i(t),s.readAsText(t)}))}importLanguage(t){return u(this,void 0,void 0,(function*(){try{const{default:e}=yield i(29599)(`./${t}`);a().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}}))}getAllAcceptTypes(){const t=a().listLanguages();return t.length?t.map((t=>a().getLanguage(`${t}`).aliases)).map((t=>t.map((t=>`.${t}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return l.html`
1386
1387
  <div class="md-input-file">
1387
1388
  <label for="file-input">
1388
1389
  <md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
@@ -1779,32 +1780,32 @@
1779
1780
  <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1780
1781
  <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1781
1782
  </div>
1782
- `}};d([(0,n.property)({type:String})],e.prototype,"size",void 0),e=d([(0,o.w)("md-loading")],e),t.ELEMENT=e}(s||(s={}))},71128:(t,e,i)=>{i.d(e,{Popover:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(31890),n=i(28373),a=i(66677),l=i(26283),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),y=i(69371),b=i.n(y),v=i(4863),g=i(41488),f=i(40333),w=i(73679),C=i(35211),x=i(50325),S=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},$=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){let e=class extends((0,n.d)(g.LitElement)){constructor(){super(...arguments),this.placement="bottom",this.isOpen=!1,this.showArrow=!0,this.showClose=!1,this.interactive=!1,this.shouldWrapFocus=()=>this.interactive,this.role="dialog",this.ariaLabel=null,this.offsetDistance=5,this.trigger="click",this.triggerElement=null,this.popperInstance=null,this.isMouseOver=!1,this.onOutsideOverlayClick=t=>{var e;if(null===(e=this.trigger)||void 0===e?void 0:e.includes("manual"))return;let i=!1;const s=t.composedPath();s.length&&(i=!!s.find((t=>t===this)),i||(this.isOpen=!1))},this.onWindowBlurEvent=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("manual"))||this.isOpen&&(this.isOpen=!1)},this.onOutsideOverlayKeydown=t=>$(this,void 0,void 0,(function*(){this.isOpen&&t.code===o.Uz.Escape&&(t.preventDefault(),this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onTriggerElementClicked=()=>{this.toggleOverlay()},this.onTriggerElementKeydown=t=>$(this,void 0,void 0,(function*(){(0,l.o)(t.code)&&(t.preventDefault(),this.toggleOverlay()),t.code===o.Uz.Escape&&this.isOpen&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onFocusInTrigger=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&(this.isOpen=!0)},this.onFocusOutTrigger=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&!this.isMouseOver&&(this.isOpen=!1)},this.onMouseEnteredTriggerOrPopup=t=>{var e;this.isMouseOver=!0,(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&this.setIsOpenDebounced(!0)},this.onMouseLeaveTriggerOrPopup=t=>{var e;this.isMouseOver=!1,(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&!this.shouldStayOpenOnTriggerFocus()&&this.setIsOpenDebounced(!1)},this.setIsOpenDebounced=(0,a.sg)((t=>{this.isOpen=t}),100)}static get styles(){return[x.A]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){var t,e,i,s,o;super.disconnectedCallback(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.triggerElement&&((null===(t=this.trigger)||void 0===t?void 0:t.includes("click"))&&(this.triggerElement.removeEventListener("click",this.onTriggerElementClicked),this.triggerElement.removeEventListener("keydown",this.onTriggerElementKeydown)),(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&(this.triggerElement.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(s=this.popoverContainer)||void 0===s||s.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(o=this.trigger)||void 0===o?void 0:o.includes("focus"))&&(this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.onFocusOutTrigger)))}setupTriggerEvents(){var t,e,i,s,o;this.triggerElement&&((null===(t=this.trigger)||void 0===t?void 0:t.includes("click"))&&(this.triggerElement.addEventListener("click",this.onTriggerElementClicked.bind(this)),this.triggerElement.addEventListener("keydown",this.onTriggerElementKeydown.bind(this))),(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&(this.triggerElement.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(s=this.popoverContainer)||void 0===s||s.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(o=this.trigger)||void 0===o?void 0:o.includes("focus"))&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.triggerElement.addEventListener("focusout",this.onFocusOutTrigger)))}handleTriggerElementSlotChange(){const t=this.triggerSlot.assignedElements({flatten:!0});this.triggerElement=t.length>0?t[0]:null}onContentSlotChanged(){}shouldStayOpenOnTriggerFocus(){var t;return!!(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&this.getRootNode().activeElement===this.triggerElement}firstUpdated(t){var e;super.firstUpdated(t),this.handleTriggerElementSlotChange(),this.setupTriggerEvents(),this.popoverContainer&&this.isOpen&&(this.createInstance(),null===(e=this.popoverContainer)||void 0===e||e.setAttribute("data-show",""))}focusInsideOverlay(){var t,e;this.focusableElements&&(this.focusableElements.length>1?null===(t=this.setInitialFocus)||void 0===t||t.call(this,1):this.focusableElements.length&&(null===(e=this.setInitialFocus)||void 0===e||e.call(this)))}focusOnTrigger(){return $(this,void 0,void 0,(function*(){requestAnimationFrame((()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()}))}))}toggleOverlay(){var t;(null===(t=this.triggerElement)||void 0===t?void 0:t.hasAttribute("disabled"))||(this.isOpen=!this.isOpen)}handleCreatePopperFirstUpdate(){return $(this,void 0,void 0,(function*(){var t;this.isOpen&&this.interactive&&(null===(t=this.setFocusableElements)||void 0===t||t.call(this),yield this.updateComplete,this.focusInsideOverlay())}))}createInstance(){this.triggerElement?this.popperInstance=(0,v.createPopper)(this.triggerElement,this.popoverContainer,{onFirstUpdate:()=>{this.isOpen&&this.handleCreatePopperFirstUpdate()},placement:this.placement,modifiers:[...v.defaultModifiers,p(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left"===t||"right"===t?[e.height+e.y+this.offsetDistance,C.KC]:[0,this.showArrow?C.KC+this.offsetDistance:this.offsetDistance]}},{name:"arrow",options:{element:this.popoverArrow,padding:C.KC}},{name:"computeStyles",options:{adaptive:!0}}]}):console.warn("No trigger element not creating popper instance")}destroyInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}updated(t){if(super.updated(t),t.has("isOpen")){const e=t.get("isOpen");this.isOpenUpdated(e,this.isOpen)}}isOpenUpdated(t,e){var i,s,o,r,n,a;t!==e&&(e?(this.createInstance(),this.dispatchPopoverIsOpenChanged(e),window.addEventListener("blur",this.onWindowBlurEvent),document.addEventListener("click",this.onOutsideOverlayClick),document.addEventListener("keydown",this.onOutsideOverlayKeydown),this.interactive&&(null===(i=this.activateFocusTrap)||void 0===i||i.call(this)),null===(s=this.triggerElement)||void 0===s||s.setAttribute("aria-expanded","true"),null===(o=this.popoverContainer)||void 0===o||o.setAttribute("data-show","")):(this.destroyInstance(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.dispatchPopoverIsOpenChanged(e),null===(r=this.deactivateFocusTrap)||void 0===r||r.call(this),null===(n=this.triggerElement)||void 0===n||n.removeAttribute("aria-expanded"),null===(a=this.popoverContainer)||void 0===a||a.removeAttribute("data-show")))}dispatchPopoverIsOpenChanged(t){this.dispatchEvent(new CustomEvent("popover-open-changed",{detail:{isOpen:t},composed:!0,bubbles:!0}))}render(){var t;return g.html`
1783
- <div class="md-popover">
1783
+ `}};d([(0,n.property)({type:String})],e.prototype,"size",void 0),e=d([(0,o.w)("md-loading")],e),t.ELEMENT=e}(s||(s={}))},71128:(t,e,i)=>{i.d(e,{Popover:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(31890),n=i(28373),a=i(66677),l=i(26283),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),y=i(69371),b=i.n(y),v=i(4863),g=i(41488),f=i(40333),w=i(23968),C=i(73679),x=i(35211),S=i(50325),$=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},E=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){let e=class extends((0,n.d)(g.LitElement)){constructor(){super(...arguments),this.placement="bottom",this.positioningStrategy=void 0,this.isOpen=!1,this.showArrow=!0,this.showClose=!1,this.interactive=!1,this.shouldWrapFocus=()=>this.interactive,this.role="dialog",this.ariaLabel=null,this.offsetDistance=5,this.trigger="click",this.inverted=!1,this.triggerElement=null,this.popperInstance=null,this.isMouseOver=!1,this.onOutsideOverlayClick=t=>{var e;if(null===(e=this.trigger)||void 0===e?void 0:e.includes("manual"))return;let i=!1;const s=t.composedPath();s.length&&(i=!!s.find((t=>t===this)),i||(this.isOpen=!1))},this.onWindowBlurEvent=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("manual"))||this.isOpen&&(this.isOpen=!1)},this.onOutsideOverlayKeydown=t=>E(this,void 0,void 0,(function*(){this.isOpen&&t.code===o.Uz.Escape&&(t.preventDefault(),this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onTriggerElementClicked=()=>{this.toggleOverlay()},this.onTriggerElementKeydown=t=>E(this,void 0,void 0,(function*(){(0,l.o)(t.code)&&(t.preventDefault(),this.toggleOverlay()),t.code===o.Uz.Escape&&this.isOpen&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onFocusInTrigger=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&(this.isOpen=!0)},this.onFocusOutTrigger=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&!this.isMouseOver&&(this.isOpen=!1)},this.onMouseEnteredTriggerOrPopup=t=>{var e;this.isMouseOver=!0,(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&this.setIsOpenDebounced(!0)},this.onMouseLeaveTriggerOrPopup=t=>{var e;this.isMouseOver=!1,(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&!this.shouldStayOpenOnTriggerFocus()&&this.setIsOpenDebounced(!1)},this.setIsOpenDebounced=(0,a.sg)((t=>{this.isOpen=t}),100)}static get styles(){return[S.A]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){var t,e,i,s,o;super.disconnectedCallback(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.triggerElement&&((null===(t=this.trigger)||void 0===t?void 0:t.includes("click"))&&(this.triggerElement.removeEventListener("click",this.onTriggerElementClicked),this.triggerElement.removeEventListener("keydown",this.onTriggerElementKeydown)),(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&(this.triggerElement.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(s=this.popoverContainer)||void 0===s||s.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(o=this.trigger)||void 0===o?void 0:o.includes("focus"))&&(this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.onFocusOutTrigger)))}setupTriggerEvents(){var t,e,i,s,o;this.triggerElement&&((null===(t=this.trigger)||void 0===t?void 0:t.includes("click"))&&(this.triggerElement.addEventListener("click",this.onTriggerElementClicked.bind(this)),this.triggerElement.addEventListener("keydown",this.onTriggerElementKeydown.bind(this))),(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&(this.triggerElement.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(s=this.popoverContainer)||void 0===s||s.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(o=this.trigger)||void 0===o?void 0:o.includes("focus"))&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.triggerElement.addEventListener("focusout",this.onFocusOutTrigger)))}handleTriggerElementSlotChange(){const t=this.triggerSlot.assignedElements({flatten:!0});this.triggerElement=t.length>0?t[0]:null}onContentSlotChanged(){}shouldStayOpenOnTriggerFocus(){var t;return!!(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&this.getRootNode().activeElement===this.triggerElement}firstUpdated(t){var e;super.firstUpdated(t),this.handleTriggerElementSlotChange(),this.setupTriggerEvents(),this.popoverContainer&&this.isOpen&&(this.createInstance(),null===(e=this.popoverContainer)||void 0===e||e.setAttribute("data-show",""))}focusInsideOverlay(){var t,e;this.focusableElements&&(this.focusableElements.length>1?null===(t=this.setInitialFocus)||void 0===t||t.call(this,1):this.focusableElements.length&&(null===(e=this.setInitialFocus)||void 0===e||e.call(this)))}focusOnTrigger(){return E(this,void 0,void 0,(function*(){requestAnimationFrame((()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()}))}))}toggleOverlay(){var t;(null===(t=this.triggerElement)||void 0===t?void 0:t.hasAttribute("disabled"))||(this.isOpen=!this.isOpen)}handleCreatePopperFirstUpdate(){return E(this,void 0,void 0,(function*(){var t;this.isOpen&&this.interactive&&(null===(t=this.setFocusableElements)||void 0===t||t.call(this),yield this.updateComplete,this.focusInsideOverlay())}))}createInstance(){this.triggerElement?this.popperInstance=(0,v.createPopper)(this.triggerElement,this.popoverContainer,{onFirstUpdate:()=>{this.isOpen&&this.handleCreatePopperFirstUpdate()},placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,p(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left"===t||"right"===t?[e.height+e.y+this.offsetDistance,x.KC]:[0,this.showArrow?x.KC+this.offsetDistance:this.offsetDistance]}},{name:"arrow",options:{element:this.popoverArrow,padding:x.KC}},{name:"computeStyles",options:{adaptive:!1}}]}):console.warn("No trigger element not creating popper instance")}destroyInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}updated(t){if(super.updated(t),t.has("isOpen")){const e=t.get("isOpen");this.isOpenUpdated(e,this.isOpen)}}isOpenUpdated(t,e){var i,s,o,r,n,a;t!==e&&(e?(this.createInstance(),this.dispatchPopoverIsOpenChanged(e),window.addEventListener("blur",this.onWindowBlurEvent),document.addEventListener("click",this.onOutsideOverlayClick),document.addEventListener("keydown",this.onOutsideOverlayKeydown),this.interactive&&(null===(i=this.activateFocusTrap)||void 0===i||i.call(this)),null===(s=this.triggerElement)||void 0===s||s.setAttribute("aria-expanded","true"),null===(o=this.popoverContainer)||void 0===o||o.setAttribute("data-show","")):(this.destroyInstance(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.dispatchPopoverIsOpenChanged(e),null===(r=this.deactivateFocusTrap)||void 0===r||r.call(this),null===(n=this.triggerElement)||void 0===n||n.removeAttribute("aria-expanded"),null===(a=this.popoverContainer)||void 0===a||a.removeAttribute("data-show")))}dispatchPopoverIsOpenChanged(t){this.dispatchEvent(new CustomEvent("popover-open-changed",{detail:{isOpen:t},composed:!0,bubbles:!0}))}get popoverClassMap(){return{"md-popover":!0,inverted:this.inverted}}get renderPopoverTemplate(){var t;return g.html` <div
1784
+ part="popover"
1785
+ class="popover-container"
1786
+ role=${this.role}
1787
+ aria-modal=${(0,C.ifDefined)(this.interactive?"true":void 0)}
1788
+ aria-label=${(0,C.ifDefined)(null!==(t=this.ariaLabel)&&void 0!==t?t:void 0)}
1789
+ >
1790
+ ${this.showClose?g.html`<md-button
1791
+ class="cancel-icon-button"
1792
+ size="20"
1793
+ hasRemoveStyle
1794
+ circle
1795
+ @button-click=${()=>this.isOpen=!1}
1796
+ >
1797
+ <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
1798
+ </md-button>`:f.nothing}
1799
+ ${this.showArrow?g.html`<div id="arrow" class="popover-arrow"></div>`:f.nothing}
1800
+ <div class="popover-content" part="popover-content">
1801
+ <slot @slotchange=${this.onContentSlotChanged}></slot>
1802
+ </div>
1803
+ </div>`}render(){return g.html`
1804
+ <div class=${(0,w.classMap)(this.popoverClassMap)}>
1784
1805
  <slot name="triggerElement" aria-expanded=${this.isOpen}></slot>
1785
- <div
1786
- part="popover"
1787
- class="popover-container"
1788
- role=${this.role}
1789
- aria-modal=${(0,w.ifDefined)(this.interactive?"true":void 0)}
1790
- aria-label=${(0,w.ifDefined)(null!==(t=this.ariaLabel)&&void 0!==t?t:void 0)}
1791
- >
1792
- ${this.showClose?g.html`<md-button
1793
- class="cancel-icon-button"
1794
- size="20"
1795
- hasRemoveStyle
1796
- circle
1797
- @button-click=${()=>this.isOpen=!1}
1798
- >
1799
- <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
1800
- </md-button>`:f.nothing}
1801
- ${this.showArrow?g.html`<div id="arrow" class="popover-arrow"></div>`:f.nothing}
1802
- <div class="popover-content" part="popover-content">
1803
- <slot @slotchange=${this.onContentSlotChanged}></slot>
1804
- </div>
1805
- </div>
1806
+ ${this.renderPopoverTemplate}
1806
1807
  </div>
1807
- `}};S([(0,g.property)({type:String})],e.prototype,"placement",void 0),S([(0,g.property)({type:Boolean,attribute:"is-open"})],e.prototype,"isOpen",void 0),S([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),S([(0,g.property)({type:Boolean,attribute:"show-close"})],e.prototype,"showClose",void 0),S([(0,g.property)({type:Boolean})],e.prototype,"interactive",void 0),S([(0,g.property)({type:String,attribute:"role"})],e.prototype,"role",void 0),S([(0,g.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),S([(0,g.property)({type:Number,attribute:"offset-distance"})],e.prototype,"offsetDistance",void 0),S([(0,g.query)('slot[name="triggerElement"]')],e.prototype,"triggerSlot",void 0),S([(0,g.query)(".popover-container")],e.prototype,"popoverContainer",void 0),S([(0,g.query)(".popover-arrow")],e.prototype,"popoverArrow",void 0),S([(0,g.property)({type:String})],e.prototype,"trigger",void 0),S([(0,g.internalProperty)()],e.prototype,"isMouseOver",void 0),e=S([(0,r.w)("md-popover")],e),t.ELEMENT=e}(s||(s={}))},73093:(t,e,i)=>{i.d(e,{FloatingModal:()=>s}),i(96798),i(61200);var s,o=i(3001),r=i(31890),n=i(26272),a=(i(58088),i(57346),i(69e3),i(20727)),l=i.n(a),d=(i(3288),i(41488)),h=i(40333),c=i(97822),p=(i(58871),i(67330)),u=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,o.yC)((0,o.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.maximizable=!0,this.resizable=!0,this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:e}=t;let i=parseFloat(e.getAttribute("data-x"))||0,s=parseFloat(e.getAttribute("data-y"))||0;e.style.setProperty("width",`${t.rect.width}px`,"important"),e.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:o,initialY:r}=this.getInitialPosition();i+=t.deltaRect.left+o,s+=t.deltaRect.top+r,this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.position)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:s}=this.getTransformValues(t);this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[n.A,p.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,e,i,s;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.position)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.position)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(e=this.position)||void 0===e?void 0:e.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame((()=>{return t=this,e=void 0,s=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}));var t,e,i,s}))}setInteractInstance(){requestAnimationFrame((()=>{this.container&&(l()(this.container).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}}),this.resizable&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l().modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l().modifiers.restrictSize({max:"parent"})]})]:void 0}))}))}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:e,dx:i,dy:s}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+s+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&l().isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
1808
+ `}};$([(0,g.property)({type:String})],e.prototype,"placement",void 0),$([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),$([(0,g.property)({type:Boolean,attribute:"is-open"})],e.prototype,"isOpen",void 0),$([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),$([(0,g.property)({type:Boolean,attribute:"show-close"})],e.prototype,"showClose",void 0),$([(0,g.property)({type:Boolean})],e.prototype,"interactive",void 0),$([(0,g.property)({type:String,attribute:"role"})],e.prototype,"role",void 0),$([(0,g.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),$([(0,g.property)({type:Number,attribute:"offset-distance"})],e.prototype,"offsetDistance",void 0),$([(0,g.query)('slot[name="triggerElement"]')],e.prototype,"triggerSlot",void 0),$([(0,g.query)(".popover-container")],e.prototype,"popoverContainer",void 0),$([(0,g.query)(".popover-arrow")],e.prototype,"popoverArrow",void 0),$([(0,g.property)({type:String})],e.prototype,"trigger",void 0),$([(0,g.property)({type:Boolean})],e.prototype,"inverted",void 0),$([(0,g.internalProperty)()],e.prototype,"isMouseOver",void 0),e=$([(0,r.w)("md-popover")],e),t.ELEMENT=e}(s||(s={}))},73093:(t,e,i)=>{i.d(e,{FloatingModal:()=>s}),i(96798),i(61200);var s,o=i(3001),r=i(31890),n=i(26272),a=(i(58088),i(57346),i(69e3),i(20727)),l=i.n(a),d=(i(3288),i(41488)),h=i(40333),c=i(97822),p=(i(58871),i(67330)),u=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,o.yC)((0,o.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.maximizable=!0,this.resizable=!0,this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:e}=t;let i=parseFloat(e.getAttribute("data-x"))||0,s=parseFloat(e.getAttribute("data-y"))||0;e.style.setProperty("width",`${t.rect.width}px`,"important"),e.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:o,initialY:r}=this.getInitialPosition();i+=t.deltaRect.left+o,s+=t.deltaRect.top+r,this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.position)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:s}=this.getTransformValues(t);this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[n.A,p.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,e,i,s;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.position)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.position)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(e=this.position)||void 0===e?void 0:e.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame((()=>{return t=this,e=void 0,s=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}));var t,e,i,s}))}setInteractInstance(){requestAnimationFrame((()=>{this.container&&(l()(this.container).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}}),this.resizable&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l().modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l().modifiers.restrictSize({max:"parent"})]})]:void 0}))}))}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:e,dx:i,dy:s}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+s+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&l().isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
1808
1809
  ${this.show?d.html`
1809
1810
  <div
1810
1811
  class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
@@ -2424,7 +2425,7 @@
2424
2425
  <md-icon
2425
2426
  slot="icon"
2426
2427
  iconSet="momentumDesign"
2427
- name=${this.isActive?"arrow-circle-down-bold":"arrow-circle-up-bold"}
2428
+ name=${this.isActive?"arrow-circle-up-bold":"arrow-circle-down-bold"}
2428
2429
  size="18"
2429
2430
  >
2430
2431
  </md-icon>
@@ -2438,7 +2439,7 @@
2438
2439
  </div>
2439
2440
  ${this.renderFooter()}
2440
2441
  </div>
2441
- `}};c([(0,a.property)({type:String})],e.prototype,"state",void 0),c([(0,a.property)({type:String})],e.prototype,"identifier",void 0),c([(0,a.property)({type:String})],e.prototype,"header",void 0),c([(0,a.property)({type:String})],e.prototype,"info",void 0),c([(0,a.property)({type:String})],e.prototype,"data",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"expandable",void 0),e=c([(0,r.w)("md-card-v2")],e),t.ELEMENT=e}(o||(o={}))},92992:(t,e,i)=>{i.d(e,{Breadcrumb:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(97822),l=i(22818),d=i(46441),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[r.A,d.A]}setLastAnchorCurrent(){var t;(null===(t=this.anchors)||void 0===t?void 0:t.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(t){super.firstUpdated(t),this.setLastAnchorCurrent()}update(t){super.update(t),t.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(t){var e;const i=t.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const t=Array.from(this.anchors).indexOf(i);-1!==t&&(this.navCrumbs=[...this.navCrumbs.splice(0,t+1)])}}render(){return n.html`
2442
+ `}};c([(0,a.property)({type:String})],e.prototype,"state",void 0),c([(0,a.property)({type:String})],e.prototype,"identifier",void 0),c([(0,a.property)({type:String})],e.prototype,"header",void 0),c([(0,a.property)({type:String})],e.prototype,"info",void 0),c([(0,a.property)({type:String})],e.prototype,"data",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"expandable",void 0),e=c([(0,r.w)("md-card-v2")],e),t.ELEMENT=e}(o||(o={}))},92992:(t,e,i)=>{i.d(e,{Breadcrumb:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(97822),l=i(22818),d=i(46441),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[r.A,d.A]}setLastAnchorCurrent(){var t;(null===(t=this.anchors)||void 0===t?void 0:t.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(t){super.firstUpdated(t),this.setLastAnchorCurrent()}update(t){super.update(t),t.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(t){var e;const i=t.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const t=Array.from(this.anchors).indexOf(i);-1!==t&&(this.navCrumbs=[...this.navCrumbs.splice(0,t+1)])}}render(){return n.html`
2442
2443
  <nav aria-label="${(0,a.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
2443
2444
  <ul @click=${t=>this.handleClick(t)}>
2444
2445
  ${(0,l.repeat)(this.navCrumbs,(t=>t.link),(t=>n.html`
@@ -2704,7 +2705,7 @@
2704
2705
  >
2705
2706
  <slot></slot>
2706
2707
  </form>
2707
- `}};a([(0,r.property)({type:String})],e.prototype,"rel",void 0),a([(0,r.property)({type:String})],e.prototype,"name",void 0),a([(0,r.property)({type:String})],e.prototype,"action",void 0),a([(0,r.property)({type:String})],e.prototype,"label",void 0),a([(0,r.property)({type:String})],e.prototype,"method",void 0),a([(0,r.property)({type:String})],e.prototype,"target",void 0),a([(0,r.property)({type:String})],e.prototype,"enctype",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([(0,r.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([(0,r.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([(0,r.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([(0,r.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([(0,r.query)(".md-form")],e.prototype,"form",void 0),e=a([(0,o.wW)("md-form")],e),t.ELEMENT=e}(s||(s={}))},99687:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>s.Accordion,AccordionItem:()=>o.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>m.Badge,Breadcrumb:()=>y.Breadcrumb,Button:()=>v.Button,ButtonGroup:()=>b.ButtonGroup,Card:()=>w.Card,CardAi:()=>g.CardAi,CardV2:()=>f.CardV2,ChatMessage:()=>C.ChatMessage,Checkbox:()=>x.Checkbox,CheckboxGroup:()=>S.CheckboxGroup,Chip:()=>$.Chip,Coachmark:()=>T.Coachmark,CoachmarkPopover:()=>E.CoachmarkPopover,CodeEditor:()=>P,ComboBox:()=>R.ComboBox,CompositeAvatar:()=>u.CompositeAvatar,DatePicker:()=>F.DatePicker,DatePickerCalendar:()=>z.DatePickerCalendar,DatePickerDay:()=>V.DatePickerDay,DatePickerMonth:()=>j.DatePickerMonth,DatePickerWeek:()=>N.DatePickerWeek,DateRangePicker:()=>_.DateRangePicker,DateTimePicker:()=>B.DateTimePicker,Draggable:()=>U.Draggable,DraggableItem:()=>q.DraggableItem,Dropdown:()=>H.Dropdown,EditableTextfield:()=>K.EditableTextfield,Favorite:()=>W.Favorite,FloatingMinimizedModal:()=>G.FloatingMinimizedModal,FloatingModal:()=>Y.FloatingModal,Form:()=>X.Form,Grabber:()=>Q.Grabber,HelpText:()=>Z.HelpText,Icon:()=>c.Icon,Input:()=>tt.Input,InputFile:()=>J.InputFile,Label:()=>et.Label,Link:()=>it.Link,List:()=>st.List,ListItem:()=>ot.ListItem,Loading:()=>rt.Loading,MeetingAlert:()=>nt.MeetingAlert,Menu:()=>lt.Menu,MenuItem:()=>dt.MenuItem,MenuOverlay:()=>at.MenuOverlay,Modal:()=>ht.Modal,Pagination:()=>ct.Pagination,PhoneInput:()=>pt.PhoneInput,Popover:()=>ut.Popover,ProgressBar:()=>mt.ProgressBar,Radio:()=>yt.Radio,RadioGroup:()=>bt.RadioGroup,Slider:()=>vt.Slider,Spinner:()=>gt.Spinner,Tab:()=>Ct.Tab,TabPanel:()=>xt.TabPanel,Table:()=>wt.Table,TableAdvanced:()=>ft.TableAdvanced,Tabs:()=>St.Tabs,TaskItem:()=>$t.TaskItem,Theme:()=>Et.Theme,ThemeManager:()=>Lt.ThemeManager,TimePicker:()=>Tt.TimePicker,ToggleSwitch:()=>kt.ToggleSwitch,Tooltip:()=>At.Tooltip,iconUrlManager:()=>It.O,themeManager:()=>Lt.themeManager});var s=i(33328),o=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028),c=i(61200);const p=["bot","group","self","typing",""];var u=i(2207),m=i(63704),y=i(92992),b=i(45629),v=i(96798),g=i(64311),f=i(90827),w=i(10654),C=i(95281),x=i(3664),S=i(55294),$=i(60046),E=i(29895),T=i(46312),k=i(3001),A=i(26272),I=i(45001),L=i.n(I),O=i(41488);const M=O.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var P,D=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends O.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[A.A,M]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find((t=>"CODE"===t.tagName));if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find((t=>t));if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),L().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,s=void 0,r=function*(){try{const{default:e}=yield i(32908)(`./${t}`);L().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((o=void 0)||(o=Promise))((function(t,i){function n(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o((function(t){t(i)}))).then(n,a)}l((r=r.apply(e,s||[])).next())}));var e,s,o,r}getAllAcceptTypes(){const t=L().listLanguages();return t.length?t.map((t=>L().getLanguage(`${t}`).aliases)).map((t=>t.map((t=>`.${t}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return O.html`
2708
+ `}};a([(0,r.property)({type:String})],e.prototype,"rel",void 0),a([(0,r.property)({type:String})],e.prototype,"name",void 0),a([(0,r.property)({type:String})],e.prototype,"action",void 0),a([(0,r.property)({type:String})],e.prototype,"label",void 0),a([(0,r.property)({type:String})],e.prototype,"method",void 0),a([(0,r.property)({type:String})],e.prototype,"target",void 0),a([(0,r.property)({type:String})],e.prototype,"enctype",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([(0,r.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([(0,r.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([(0,r.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([(0,r.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([(0,r.query)(".md-form")],e.prototype,"form",void 0),e=a([(0,o.wW)("md-form")],e),t.ELEMENT=e}(s||(s={}))},99687:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>s.Accordion,AccordionItem:()=>o.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>m.Badge,Breadcrumb:()=>y.Breadcrumb,Button:()=>v.Button,ButtonGroup:()=>b.ButtonGroup,Card:()=>w.Card,CardAi:()=>g.CardAi,CardV2:()=>f.CardV2,ChatMessage:()=>C.ChatMessage,Checkbox:()=>x.Checkbox,CheckboxGroup:()=>S.CheckboxGroup,Chip:()=>$.Chip,Coachmark:()=>T.Coachmark,CoachmarkPopover:()=>E.CoachmarkPopover,CodeEditor:()=>P,ComboBox:()=>R.ComboBox,CompositeAvatar:()=>u.CompositeAvatar,DatePicker:()=>F.DatePicker,DatePickerCalendar:()=>z.DatePickerCalendar,DatePickerDay:()=>V.DatePickerDay,DatePickerMonth:()=>j.DatePickerMonth,DatePickerWeek:()=>N.DatePickerWeek,DateRangePicker:()=>_.DateRangePicker,DateTimePicker:()=>B.DateTimePicker,Draggable:()=>U.Draggable,DraggableItem:()=>q.DraggableItem,Dropdown:()=>H.Dropdown,EditableTextfield:()=>K.EditableTextfield,Favorite:()=>W.Favorite,FloatingMinimizedModal:()=>G.FloatingMinimizedModal,FloatingModal:()=>Y.FloatingModal,Form:()=>X.Form,Grabber:()=>Q.Grabber,HelpText:()=>Z.HelpText,Icon:()=>c.Icon,Input:()=>tt.Input,InputFile:()=>J.InputFile,Label:()=>et.Label,Link:()=>it.Link,List:()=>st.List,ListItem:()=>ot.ListItem,Loading:()=>rt.Loading,MeetingAlert:()=>nt.MeetingAlert,Menu:()=>lt.Menu,MenuItem:()=>dt.MenuItem,MenuOverlay:()=>at.MenuOverlay,Modal:()=>ht.Modal,Pagination:()=>ct.Pagination,PhoneInput:()=>pt.PhoneInput,Popover:()=>ut.Popover,ProgressBar:()=>mt.ProgressBar,Radio:()=>yt.Radio,RadioGroup:()=>bt.RadioGroup,Slider:()=>vt.Slider,Spinner:()=>gt.Spinner,Tab:()=>Ct.Tab,TabPanel:()=>xt.TabPanel,Table:()=>wt.Table,TableAdvanced:()=>ft.TableAdvanced,Tabs:()=>St.Tabs,TaskItem:()=>$t.TaskItem,Theme:()=>Et.Theme,ThemeManager:()=>Lt.ThemeManager,TimePicker:()=>Tt.TimePicker,ToggleSwitch:()=>kt.ToggleSwitch,Tooltip:()=>At.Tooltip,iconUrlManager:()=>It.O,themeManager:()=>Lt.themeManager});var s=i(33328),o=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028),c=i(61200);const p=["bot","group","self","typing",""];var u=i(2207),m=i(63704),y=i(92992),b=i(45629),v=i(96798),g=i(64311),f=i(90827),w=i(10654),C=i(95281),x=i(3664),S=i(55294),$=i(60046),E=i(29895),T=i(46312),k=i(3001),A=i(26272),I=i(45001),L=i.n(I),O=i(41488);const M=O.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var P,D=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends O.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[A.A,M]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find((t=>"CODE"===t.tagName));if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find((t=>t));if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),L().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,s=void 0,r=function*(){try{const{default:e}=yield i(29599)(`./${t}`);L().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((o=void 0)||(o=Promise))((function(t,i){function n(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o((function(t){t(i)}))).then(n,a)}l((r=r.apply(e,s||[])).next())}));var e,s,o,r}getAllAcceptTypes(){const t=L().listLanguages();return t.length?t.map((t=>L().getLanguage(`${t}`).aliases)).map((t=>t.map((t=>`.${t}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return O.html`
2708
2709
  <div class="md-code-editor" part="code-editor">
2709
2710
  <div class="md-code-editor-header">
2710
2711
  <div class="md-code-editor-name">
@@ -2759,4 +2760,4 @@
2759
2760
  size="16"
2760
2761
  ></md-icon>
2761
2762
  </label>
2762
- `}};p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),p([(0,l.property)({type:String})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"id",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=p([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(s||(s={}))}},j={};function N(t){var e=j[t];if(void 0!==e)return e.exports;var i=j[t]={exports:{}};return V[t].call(i.exports,i,i.exports,N),i.exports}N.m=V,R=[],N.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<R.length;l++){for(var[e,i,s]=R[l],r=!0,n=0;n<e.length;n++)(!1&s||o>=s)&&Object.keys(N.O).every((t=>N.O[t](e[n])))?e.splice(n--,1):(r=!1,s<o&&(o=s));if(r){R.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var l=R.length;l>0&&R[l-1][2]>s;l--)R[l]=R[l-1];R[l]=[e,i,s]},N.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return N.d(e,{a:e}),e},B=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,N.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);N.r(i);var s={};_=_||[null,B({}),B([]),B(B)];for(var o=2&e&&t;"object"==typeof o&&!~_.indexOf(o);o=B(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>t[e]));return s.default=()=>t,N.d(i,s),i},N.d=(t,e)=>{for(var i in e)N.o(e,i)&&!N.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},N.f={},N.e=t=>Promise.all(Object.keys(N.f).reduce(((e,i)=>(N.f[i](t,e),e)),[])),N.u=t=>"chunks/md-"+t+".js",N.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),N.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},z="@momentum-ui/web-components:",N.l=(t,e,i,s)=>{if(F[t])F[t].push(e);else{var o,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==z+i){o=l;break}}o||(r=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,N.nc&&o.setAttribute("nonce",N.nc),o.setAttribute("data-webpack",z+i),o.src=t),F[t]=[e];var d=(e,i)=>{o.onerror=o.onload=null,clearTimeout(h);var s=F[t];if(delete F[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(i))),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),r&&document.head.appendChild(o)}},N.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},N.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2576:0,2779:0,2909:0,3001:0,3079:0,3192:0,3413:0,3539:0,3747:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6652:0,6677:0,6724:0,6754:0,6798:0,6834:0,6920:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0,9788:0};N.f.j=(e,i)=>{var s=N.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var o=new Promise(((i,o)=>s=t[e]=[i,o]));i.push(s[2]=o);var r=N.p+N.u(e),n=new Error;N.l(r,(i=>{if(N.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var o=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",n.name="ChunkLoadError",n.type=o,n.request=r,s[1](n)}}),"chunk-"+e,e)}},N.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,n,a]=i,l=0;if(r.some((e=>0!==t[e]))){for(s in n)N.o(n,s)&&(N.m[s]=n[s]);if(a)var d=a(N)}for(e&&e(i);l<r.length;l++)o=r[l],N.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return N.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var U=N.O(void 0,[4367,7103,1890,6272,6325,6283,9217,5830,8889,8210,3135,1598,4977,1572,6366,7251,4974,2243,3553,6700,528,4548,6795,76,1392,9164,2019,1625,3625,6067,8841,4663,3112,3866,1107,7330,7092,9719,6979,9130,6273,9618,8521,4400,779,573,5801,2043,8171,182,2798,2984,7919,1869,2215,5467,4392,630,3604,7833,8728,8227,1250,1705,7997,7875,6400,587,6441,8868,3663],(()=>N(99687)));return N.O(U)})()));
2763
+ `}};p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),p([(0,l.property)({type:String})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"id",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=p([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(s||(s={}))}},j={};function N(t){var e=j[t];if(void 0!==e)return e.exports;var i=j[t]={exports:{}};return V[t].call(i.exports,i,i.exports,N),i.exports}N.m=V,R=[],N.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<R.length;l++){for(var[e,i,s]=R[l],r=!0,n=0;n<e.length;n++)(!1&s||o>=s)&&Object.keys(N.O).every((t=>N.O[t](e[n])))?e.splice(n--,1):(r=!1,s<o&&(o=s));if(r){R.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var l=R.length;l>0&&R[l-1][2]>s;l--)R[l]=R[l-1];R[l]=[e,i,s]},N.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return N.d(e,{a:e}),e},B=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,N.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);N.r(i);var s={};_=_||[null,B({}),B([]),B(B)];for(var o=2&e&&t;"object"==typeof o&&!~_.indexOf(o);o=B(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>t[e]));return s.default=()=>t,N.d(i,s),i},N.d=(t,e)=>{for(var i in e)N.o(e,i)&&!N.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},N.f={},N.e=t=>Promise.all(Object.keys(N.f).reduce(((e,i)=>(N.f[i](t,e),e)),[])),N.u=t=>"chunks/md-"+t+".js",N.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),N.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},z="@momentum-ui/web-components:",N.l=(t,e,i,s)=>{if(F[t])F[t].push(e);else{var o,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==z+i){o=l;break}}o||(r=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,N.nc&&o.setAttribute("nonce",N.nc),o.setAttribute("data-webpack",z+i),o.src=t),F[t]=[e];var d=(e,i)=>{o.onerror=o.onload=null,clearTimeout(h);var s=F[t];if(delete F[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(i))),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),r&&document.head.appendChild(o)}},N.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},N.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2576:0,2779:0,2909:0,3001:0,3079:0,3192:0,3413:0,3539:0,3747:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6652:0,6677:0,6724:0,6754:0,6798:0,6834:0,6920:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0,9788:0};N.f.j=(e,i)=>{var s=N.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var o=new Promise(((i,o)=>s=t[e]=[i,o]));i.push(s[2]=o);var r=N.p+N.u(e),n=new Error;N.l(r,(i=>{if(N.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var o=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",n.name="ChunkLoadError",n.type=o,n.request=r,s[1](n)}}),"chunk-"+e,e)}},N.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,n,a]=i,l=0;if(r.some((e=>0!==t[e]))){for(s in n)N.o(n,s)&&(N.m[s]=n[s]);if(a)var d=a(N)}for(e&&e(i);l<r.length;l++)o=r[l],N.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return N.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var U=N.O(void 0,[4367,7103,1890,6272,6325,6283,9217,5830,8889,8210,3135,1598,4977,1572,6366,7251,4974,2243,3553,6700,528,4548,6795,76,1392,9164,2019,1625,3625,6067,8841,4663,3112,3866,1107,7330,7092,9719,6979,9130,6273,9618,8521,4400,779,573,5801,2043,8171,182,2798,2984,7919,1869,2215,5467,4392,630,3604,7833,8728,8227,1250,1705,7997,7875,6400,587,6441,6015,3663],(()=>N(99687)));return N.O(U)})()));
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- require("./4367"),require("./7103"),require("./1890"),require("./6272"),require("./6325"),require("./6283"),require("./9217"),require("./5830"),require("./8889"),require("./8210"),require("./3135"),require("./1598"),require("./4977"),require("./1572"),require("./6366"),require("./7251"),require("./4974"),require("./2243"),require("./3553"),require("./6700"),require("./528"),require("./4548"),require("./6795"),require("./76"),require("./1392"),require("./9164"),require("./2019"),require("./1625"),require("./3625"),require("./6067"),require("./8841"),require("./4663"),require("./3112"),require("./3866"),require("./1107"),require("./7330"),require("./7092"),require("./9719"),require("./6979"),require("./9130"),require("./6273"),require("./9618"),require("./8521"),require("./4400"),require("./779"),require("./573"),require("./5801"),require("./2043"),require("./8171"),require("./182"),require("./2798"),require("./2984"),require("./7919"),require("./1869"),require("./2215"),require("./5467"),require("./4392"),require("./630"),require("./3604"),require("./7833"),require("./8728"),require("./8227"),require("./1250"),require("./1705"),require("./7997"),require("./7875"),require("./6400"),require("./587"),require("./6441"),require("./8868"),require("./3663"),module.exports=require("./index-entry");
1
+ require("./4367"),require("./7103"),require("./1890"),require("./6272"),require("./6325"),require("./6283"),require("./9217"),require("./5830"),require("./8889"),require("./8210"),require("./3135"),require("./1598"),require("./4977"),require("./1572"),require("./6366"),require("./7251"),require("./4974"),require("./2243"),require("./3553"),require("./6700"),require("./528"),require("./4548"),require("./6795"),require("./76"),require("./1392"),require("./9164"),require("./2019"),require("./1625"),require("./3625"),require("./6067"),require("./8841"),require("./4663"),require("./3112"),require("./3866"),require("./1107"),require("./7330"),require("./7092"),require("./9719"),require("./6979"),require("./9130"),require("./6273"),require("./9618"),require("./8521"),require("./4400"),require("./779"),require("./573"),require("./5801"),require("./2043"),require("./8171"),require("./182"),require("./2798"),require("./2984"),require("./7919"),require("./1869"),require("./2215"),require("./5467"),require("./4392"),require("./630"),require("./3604"),require("./7833"),require("./8728"),require("./8227"),require("./1250"),require("./1705"),require("./7997"),require("./7875"),require("./6400"),require("./587"),require("./6441"),require("./6015"),require("./3663"),module.exports=require("./index-entry");
@@ -81,7 +81,7 @@ export declare namespace Grabber {
81
81
  visible: boolean;
82
82
  };
83
83
  private get grabberContainerClassMap();
84
- get iconName(): "arrow-up-bold" | "arrow-down-bold" | "list-menu-bold" | "arrow-left-bold" | "arrow-right-bold";
84
+ get iconName(): "arrow-up-bold" | "arrow-down-bold" | "arrow-left-bold" | "arrow-right-bold" | "list-menu-bold";
85
85
  get iconSize(): "10" | "12";
86
86
  render(): import("lit-element").TemplateResult;
87
87
  }
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
+ import { StrategyType } from "@/components/popover/Popover.types";
8
9
  import { LitElement, PropertyValues } from "lit-element";
9
10
  export declare enum OverlaySizes {
10
11
  small = "260px",
@@ -37,6 +38,7 @@ export declare namespace MenuOverlay {
37
38
  keepOpenOnWindowBlur: boolean;
38
39
  overlayContainer: HTMLDivElement;
39
40
  arrow: HTMLDivElement;
41
+ positioningStrategy?: StrategyType;
40
42
  trigger?: NodeListOf<HTMLElement>;
41
43
  private popperInstance;
42
44
  private triggerElement;
@@ -8,7 +8,7 @@
8
8
  import "@/components/button/Button";
9
9
  import "@/components/icon/Icon";
10
10
  import { LitElement, PropertyValues } from "lit-element";
11
- import { PlacementType, PopoverRoleType } from "./Popover.types";
11
+ import { PlacementType, PopoverRoleType, StrategyType } from "./Popover.types";
12
12
  export declare namespace Popover {
13
13
  const ELEMENT_base: typeof LitElement & import("@/mixins/FocusTrapMixin").AnyConstructor<import("@/mixins/FocusTrapMixin").FocusTrapClass & import("@/mixins/FocusTrapMixin").FocusTrapInterface & import("../../mixins/FocusMixin").FocusClass>;
14
14
  /**
@@ -24,6 +24,19 @@ export declare namespace Popover {
24
24
  * @type {PlacementType}
25
25
  */
26
26
  placement: PlacementType;
27
+ /**
28
+ * The positioning strategy for the popover.
29
+ *
30
+ * This property specifies how the popover is positioned relative to the trigger element.
31
+ * It accepts two values:
32
+ * - `"absolute"`: The popover is positioned relative to the nearest positioned ancestor.
33
+ * - `"fixed"`: The popover is positioned relative to the viewport, allowing it to escape parent containers with `overflow: hidden` or `overflow: auto`.
34
+ *
35
+ * By default, the positioning strategy is `"absolute"`. Use `"fixed"` if the popover needs to escape parent boundaries.
36
+ *
37
+ * @type {StrategyType}
38
+ */
39
+ positioningStrategy?: StrategyType;
27
40
  /**
28
41
  * Indicates whether the popover is open.
29
42
  *
@@ -124,6 +137,14 @@ export declare namespace Popover {
124
137
  * @type {string}
125
138
  */
126
139
  trigger?: string;
140
+ /**
141
+ * Indicates whether the popover should use an inverted color scheme.
142
+ *
143
+ * When set to `true`, the popover will invert its background color and text color.
144
+ *
145
+ * @type {boolean}
146
+ */
147
+ inverted: boolean;
127
148
  /**
128
149
  * The trigger element for the popover.
129
150
  *
@@ -173,6 +194,8 @@ export declare namespace Popover {
173
194
  protected updated(changedProperties: PropertyValues): void;
174
195
  private isOpenUpdated;
175
196
  private dispatchPopoverIsOpenChanged;
197
+ private get popoverClassMap();
198
+ private get renderPopoverTemplate();
176
199
  render(): import("lit-element").TemplateResult;
177
200
  }
178
201
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.22.8",
3
+ "version": "2.22.9",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",
package/dist/8868.js DELETED
@@ -1 +0,0 @@
1
- (self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[8868],{32908:(s,j,e)=>{var a={"./1c":[32402,2402],"./1c.js":[32402,2402],"./abnf":[52701,2701],"./abnf.js":[52701,2701],"./accesslog":[35076,5076],"./accesslog.js":[35076,5076],"./actionscript":[49115,9115],"./actionscript.js":[49115,9115],"./ada":[99428,9428],"./ada.js":[99428,9428],"./angelscript":[57246,7246],"./angelscript.js":[57246,7246],"./apache":[29980,9980],"./apache.js":[29980,9980],"./applescript":[42731,2731],"./applescript.js":[42731,2731],"./arcade":[18206,8206],"./arcade.js":[18206,8206],"./arduino":[27220,7220],"./arduino.js":[27220,7220],"./armasm":[79139,9139],"./armasm.js":[79139,9139],"./asciidoc":[49405,9405],"./asciidoc.js":[49405,9405],"./aspectj":[36478,6478],"./aspectj.js":[36478,6478],"./autohotkey":[62923,2923],"./autohotkey.js":[62923,2923],"./autoit":[77556,7556],"./autoit.js":[77556,7556],"./avrasm":[13732,3732],"./avrasm.js":[13732,3732],"./awk":[19277,9277],"./awk.js":[19277,9277],"./axapta":[77909,7909],"./axapta.js":[77909,7909],"./bash":[35344,5344],"./bash.js":[35344,5344],"./basic":[6722,6722],"./basic.js":[6722,6722],"./bnf":[75610,5610],"./bnf.js":[75610,5610],"./brainfuck":[25439,5439],"./brainfuck.js":[25439,5439],"./c":[39497,9497],"./c-like":[97053,7053],"./c-like.js":[97053,7053],"./c.js":[39497,9497],"./cal":[67040,7040],"./cal.js":[67040,7040],"./capnproto":[60436,436],"./capnproto.js":[60436,436],"./ceylon":[3838,3838],"./ceylon.js":[3838,3838],"./clean":[78333,8333],"./clean.js":[78333,8333],"./clojure":[80364,364],"./clojure-repl":[5892,5892],"./clojure-repl.js":[5892,5892],"./clojure.js":[80364,364],"./cmake":[56427,6427],"./cmake.js":[56427,6427],"./coffeescript":[64125,4125],"./coffeescript.js":[64125,4125],"./coq":[39081,9081],"./coq.js":[39081,9081],"./cos":[30279,279],"./cos.js":[30279,279],"./cpp":[29721,9721],"./cpp.js":[29721,9721],"./crmsh":[67015,7015],"./crmsh.js":[67015,7015],"./crystal":[33270,3270],"./crystal.js":[33270,3270],"./csharp":[88425,8425],"./csharp.js":[88425,8425],"./csp":[82086,2086],"./csp.js":[82086,2086],"./css":[53315,3315],"./css.js":[53315,3315],"./d":[91036,1036],"./d.js":[91036,1036],"./dart":[81192,8811],"./dart.js":[81192,8811],"./delphi":[61870,1870],"./delphi.js":[61870,1870],"./diff":[6033,6033],"./diff.js":[6033,6033],"./django":[35133,5133],"./django.js":[35133,5133],"./dns":[49927,9927],"./dns.js":[49927,9927],"./dockerfile":[26756,6756],"./dockerfile.js":[26756,6756],"./dos":[55754,5754],"./dos.js":[55754,5754],"./dsconfig":[91533,1533],"./dsconfig.js":[91533,1533],"./dts":[39129,9129],"./dts.js":[39129,9129],"./dust":[14058,4058],"./dust.js":[14058,4058],"./ebnf":[44177,4177],"./ebnf.js":[44177,4177],"./elixir":[81297,1297],"./elixir.js":[81297,1297],"./elm":[42292,2292],"./elm.js":[42292,2292],"./erb":[84663,7044],"./erb.js":[84663,7044],"./erlang":[945,945],"./erlang-repl":[81983,1983],"./erlang-repl.js":[81983,1983],"./erlang.js":[945,945],"./excel":[58451,8451],"./excel.js":[58451,8451],"./fix":[7003,7003],"./fix.js":[7003,7003],"./flix":[24701,4701],"./flix.js":[24701,4701],"./fortran":[30258,258],"./fortran.js":[30258,258],"./fsharp":[94108,4108],"./fsharp.js":[94108,4108],"./gams":[48126,8126],"./gams.js":[48126,8126],"./gauss":[25117,5117],"./gauss.js":[25117,5117],"./gcode":[19156,9156],"./gcode.js":[19156,9156],"./gherkin":[13666,3666],"./gherkin.js":[13666,3666],"./glsl":[19614,9614],"./glsl.js":[19614,9614],"./gml":[2904,2904],"./gml.js":[2904,2904],"./go":[22183,4564],"./go.js":[22183,4564],"./golo":[14205,4205],"./golo.js":[14205,4205],"./gradle":[29789,9789],"./gradle.js":[29789,9789],"./groovy":[72896,2896],"./groovy.js":[72896,2896],"./haml":[57292,7292],"./haml.js":[57292,7292],"./handlebars":[18514,8514],"./handlebars.js":[18514,8514],"./haskell":[34904,4904],"./haskell.js":[34904,4904],"./haxe":[58670,8670],"./haxe.js":[58670,8670],"./hsp":[51679,1679],"./hsp.js":[51679,1679],"./htmlbars":[22329,2329],"./htmlbars.js":[22329,2329],"./http":[73402,3402],"./http.js":[73402,3402],"./hy":[45617,5617],"./hy.js":[45617,5617],"./inform7":[12962,2962],"./inform7.js":[12962,2962],"./ini":[40634,634],"./ini.js":[40634,634],"./irpf90":[76414,6414],"./irpf90.js":[76414,6414],"./isbl":[1012,1012],"./isbl.js":[1012,1012],"./java":[59405,1786],"./java.js":[59405,1786],"./javascript":[95089,5089],"./javascript.js":[95089,5089],"./jboss-cli":[39040,9040],"./jboss-cli.js":[39040,9040],"./json":[65772,5772],"./json.js":[65772,5772],"./julia":[27601,7601],"./julia-repl":[3231,3231],"./julia-repl.js":[3231,3231],"./julia.js":[27601,7601],"./kotlin":[99559,9559],"./kotlin.js":[99559,9559],"./lasso":[31942,1942],"./lasso.js":[31942,1942],"./latex":[8100,8100],"./latex.js":[8100,8100],"./ldif":[86685,6685],"./ldif.js":[86685,6685],"./leaf":[98186,8186],"./leaf.js":[98186,8186],"./less":[52539,2539],"./less.js":[52539,2539],"./lisp":[51077,3458],"./lisp.js":[51077,3458],"./livecodeserver":[75814,5814],"./livecodeserver.js":[75814,5814],"./livescript":[3035,3035],"./livescript.js":[3035,3035],"./llvm":[33543,3543],"./llvm.js":[33543,3543],"./lsl":[3399,3399],"./lsl.js":[3399,3399],"./lua":[32670,2670],"./lua.js":[32670,2670],"./makefile":[59934,9934],"./makefile.js":[59934,9934],"./markdown":[96503,6503],"./markdown.js":[96503,6503],"./mathematica":[55672,5672],"./mathematica.js":[55672,5672],"./matlab":[56023,6023],"./matlab.js":[56023,6023],"./maxima":[29433,9433],"./maxima.js":[29433,9433],"./mel":[68254,8254],"./mel.js":[68254,8254],"./mercury":[48557,8557],"./mercury.js":[48557,8557],"./mipsasm":[24714,4714],"./mipsasm.js":[24714,4714],"./mizar":[69407,9407],"./mizar.js":[69407,9407],"./mojolicious":[90593,593],"./mojolicious.js":[90593,593],"./monkey":[29387,9387],"./monkey.js":[29387,9387],"./moonscript":[75468,5468],"./moonscript.js":[75468,5468],"./n1ql":[52962,581],"./n1ql.js":[52962,581],"./nginx":[4896,4896],"./nginx.js":[4896,4896],"./nim":[63712,3712],"./nim.js":[63712,3712],"./nix":[34659,4659],"./nix.js":[34659,4659],"./node-repl":[26122,6122],"./node-repl.js":[26122,6122],"./nsis":[64561,4561],"./nsis.js":[64561,4561],"./objectivec":[96494,4113],"./objectivec.js":[96494,4113],"./ocaml":[60108,108],"./ocaml.js":[60108,108],"./openscad":[89689,9689],"./openscad.js":[89689,9689],"./oxygene":[78327,8327],"./oxygene.js":[78327,8327],"./parser3":[52052,2052],"./parser3.js":[52052,2052],"./perl":[36891,6891],"./perl.js":[36891,6891],"./pf":[9412,9412],"./pf.js":[9412,9412],"./pgsql":[80431,431],"./pgsql.js":[80431,431],"./php":[34608,4608],"./php-template":[85579,5579],"./php-template.js":[85579,5579],"./php.js":[34608,4608],"./plaintext":[7939,7939],"./plaintext.js":[7939,7939],"./pony":[39350,9350],"./pony.js":[39350,9350],"./powershell":[26571,6571],"./powershell.js":[26571,6571],"./processing":[50181,181],"./processing.js":[50181,181],"./profile":[46269,6269],"./profile.js":[46269,6269],"./prolog":[3105,3105],"./prolog.js":[3105,3105],"./properties":[79975,9975],"./properties.js":[79975,9975],"./protobuf":[25093,5093],"./protobuf.js":[25093,5093],"./puppet":[69104,9104],"./puppet.js":[69104,9104],"./purebasic":[94412,4412],"./purebasic.js":[94412,4412],"./python":[87192,7192],"./python-repl":[90736,736],"./python-repl.js":[90736,736],"./python.js":[87192,7192],"./q":[23255,3255],"./q.js":[23255,3255],"./qml":[55506,5506],"./qml.js":[55506,5506],"./r":[22698,2698],"./r.js":[22698,2698],"./reasonml":[15331,5331],"./reasonml.js":[15331,5331],"./rib":[24745,4745],"./rib.js":[24745,4745],"./roboconf":[75812,5812],"./roboconf.js":[75812,5812],"./routeros":[53557,3557],"./routeros.js":[53557,3557],"./rsl":[53409,3409],"./rsl.js":[53409,3409],"./ruby":[82978,2978],"./ruby.js":[82978,2978],"./ruleslanguage":[78385,8385],"./ruleslanguage.js":[78385,8385],"./rust":[39688,9688],"./rust.js":[39688,9688],"./sas":[7005,7005],"./sas.js":[7005,7005],"./scala":[43618,3618],"./scala.js":[43618,3618],"./scheme":[36617,6617],"./scheme.js":[36617,6617],"./scilab":[92970,2970],"./scilab.js":[92970,2970],"./scss":[3206,3206],"./scss.js":[3206,3206],"./shell":[77918,7918],"./shell.js":[77918,7918],"./smali":[91180,1180],"./smali.js":[91180,1180],"./smalltalk":[72241,2241],"./smalltalk.js":[72241,2241],"./sml":[4460,4460],"./sml.js":[4460,4460],"./sqf":[7186,7186],"./sqf.js":[7186,7186],"./sql":[76384,6384],"./sql.js":[76384,6384],"./sql_more":[30414,414],"./sql_more.js":[30414,414],"./stan":[24490,4490],"./stan.js":[24490,4490],"./stata":[81497,1497],"./stata.js":[81497,1497],"./step21":[36809,6809],"./step21.js":[36809,6809],"./stylus":[62224,2224],"./stylus.js":[62224,2224],"./subunit":[95976,5976],"./subunit.js":[95976,5976],"./swift":[94635,4635],"./swift.js":[94635,4635],"./taggerscript":[98199,8199],"./taggerscript.js":[98199,8199],"./tap":[58713,8713],"./tap.js":[58713,8713],"./tcl":[41519,1519],"./tcl.js":[41519,1519],"./thrift":[45449,5449],"./thrift.js":[45449,5449],"./tp":[88454,8454],"./tp.js":[88454,8454],"./twig":[23195,3195],"./twig.js":[23195,3195],"./typescript":[62825,2825],"./typescript.js":[62825,2825],"./vala":[55320,5320],"./vala.js":[55320,5320],"./vbnet":[50959,959],"./vbnet.js":[50959,959],"./vbscript":[27274,4893],"./vbscript-html":[88103,8103],"./vbscript-html.js":[88103,8103],"./vbscript.js":[27274,4893],"./verilog":[57522,7522],"./verilog.js":[57522,7522],"./vhdl":[37492,7492],"./vhdl.js":[37492,7492],"./vim":[1192,1192],"./vim.js":[1192,1192],"./x86asm":[53447,3447],"./x86asm.js":[53447,3447],"./xl":[15790,5790],"./xl.js":[15790,5790],"./xml":[17285,7285],"./xml.js":[17285,7285],"./xquery":[78130,8130],"./xquery.js":[78130,8130],"./yaml":[17533,7533],"./yaml.js":[17533,7533],"./zephir":[57204,7204],"./zephir.js":[57204,7204]};function l(s){if(!e.o(a,s))return Promise.resolve().then((()=>{var j=new Error("Cannot find module '"+s+"'");throw j.code="MODULE_NOT_FOUND",j}));var j=a[s],l=j[0];return e.e(j[1]).then((()=>e.t(l,23)))}l.keys=()=>Object.keys(a),l.id=32908,s.exports=l},45213:(s,j,e)=>{"use strict";e.d(j,{A:()=>a});const a=e(41488).css`:host(md-input-file) md-button{margin:.25rem}:host(md-input-file) input[type=file]{display:none}`}}]);