@momentum-ui/web-components 2.22.3 → 2.22.5

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.
@@ -1,4 +1,4 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-virtualizer","lit-html/directives/class-map.js","lit-html/directives/until.js","lit-html/directives/repeat","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit-html/directives/if-defined.js","highlight.js/lib/core","luxon","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","country-codes-list","country-flags-svg","libphonenumber-js","lit-html/directives/repeat.js","lit-html/directives/template-content","papaparse","lit-html/directives/unsafe-html","@popperjs/core/lib"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib")):e(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["lit-virtualizer"],t["lit-html/directives/class-map.js"],t["lit-html/directives/until.js"],t["lit-html/directives/repeat"],t["@popperjs/core/lib/modifiers/arrow"],t["@popperjs/core/lib/modifiers/flip"],t["@popperjs/core/lib/modifiers/offset"],t["@popperjs/core/lib/modifiers/preventOverflow"],t["@popperjs/core/lib/popper-lite"],t["lit-html/directives/if-defined.js"],t["highlight.js/lib/core"],t.luxon,t.sortablejs,t.dompurify,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["country-codes-list"],t["country-flags-svg"],t["libphonenumber-js"],t["lit-html/directives/repeat.js"],t["lit-html/directives/template-content"],t.papaparse,t["lit-html/directives/unsafe-html"],t["@popperjs/core/lib"]);for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(self,((t,e,i,s,o,r,n,a,l,d,h,c,p,u,m,y,b,v,g,f,w,C,x,S,$,E,T,k,A,I,L,O,M,P,D)=>(()=>{"use strict";var R,_,B,F,z,V={860:t=>{t.exports=I},1072:(t,e,i)=>{i.d(e,{Theme:()=>s});var s,o=i(77251),r=i(31890),n=i(4893),a=i(4863),l=i(41488),d=i(19130),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 l.LitElement{constructor(){super(...arguments),this.darkTheme=!1,this.lumos=!1,this.activeTheme=d.dW,this.placement="bottom",this.popperInstance=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip()}}setTheme(){return"momentum"===this.theme?this.darkTheme?d.Pm:d.f3:"lumos"===this.theme?this.darkTheme?d.Lu:d.dW:"momentumV2"===this.theme?this.darkTheme?d.Pm:d.f3:this.lumos?this.darkTheme?d.Lu:d.dW:this.darkTheme?d.Pm:d.f3}getStyleElement(){return document.createElement("style")}applyStyle(){const t=this.shadowRoot;if("adoptedStyleSheets"in document){const e=new CSSStyleSheet;e.replaceSync(this.activeTheme),t.adoptedStyleSheets=[e]}else{const e=this.getStyleElement();e.textContent=this.activeTheme.cssText,t.appendChild(e)}}removeChildFromVirtualPopper(){for(;this.virtualWrapper.firstElementChild;)this.virtualWrapper.firstElementChild.remove()}setInitStyleToVirtualReference(){const{style:t}=this.virtualReference;t.top="0",t.bottom="0",t.left="0",t.right="0",t.width="0",t.height="0",t.zIndex="-1"}setStyleToVirtualReference(t){const{style:e}=this.virtualReference,{top:i,bottom:s,left:o,right:r,width:n,height:a}=t;e.position="fixed",e.top=`${i}px`,e.bottom=`${s}px`,e.left=`${o}px`,e.right=`${r}px`,e.width=`${n}px`,e.height=`${a}px`,e.zIndex="-1"}setVirtualReferencePosition(t){const e=t.getBoundingClientRect();this.setStyleToVirtualReference(e)}initVirtualElements(t,e,i){const s=t.cloneNode(!0);this.virtualWrapper.hasChildNodes()&&this.removeChildFromVirtualPopper(),this.virtualWrapper.append(s),i&&this.setVirtualSlotContent(i),this.setVirtualReferencePosition(e)}setVirtualSlotContent(t){if(this.virtualTooltipContent){for(;this.virtualTooltipContent.firstElementChild;)this.virtualTooltipContent.firstElementChild.remove();t.forEach((t=>this.virtualTooltipContent.append(t)))}}updated(t){super.updated(t),(t.has("lumos")||t.has("darkTheme")||t.has("theme"))&&this.dispatchEvent(new CustomEvent("theme-changed",{composed:!0,bubbles:!0,detail:{darkTheme:this.darkTheme,lumos:this.lumos,theme:this.theme}})),this.activeTheme=this.setTheme(),this.applyStyle()}handleVirtualTooltipCreate(t){t.stopPropagation();const{popper:e,placement:i,reference:s,slotContent:o}=t.detail;this.placement=i,this.initVirtualElements(e,s,o),this.showVirtualTooltip()}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip()}handleVirtualTooltipChangeMessage(t){const{popper:e,reference:i}=t.detail;if(this.virtualReference!==i)return;const s=e.querySelector(".md-tooltip__content"),o=this.virtualWrapper.querySelector(".md-tooltip__content");if(s&&o){const t=s.textContent,e=o.textContent;t&&e&&(o.textContent=t)}}handleVirtualTooltipSlotChange(t){const{slotContent:e}=t.detail;e&&this.setVirtualSlotContent(e)}destroyPopperInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}createPopperInstance(t){if(this.virtualPopper){const e=8,i=4;this.popperInstance=(0,n.createPopper)(this.virtualReference,this.virtualPopper,{placement:t,modifiers:[...a.defaultModifiers,n.flip,n.offset,n.arrow,{name:"offset",options:{offset:({placement:t})=>{const s=e+i;return t.startsWith("left")||t.startsWith("right")||t.startsWith("top")||t.startsWith("bottom")?[0,s]:[8,8]}}},...this.virtualArrow?[{name:"arrow",options:{element:this.virtualArrow,padding:e}}]:[]]})}}get virtualPopper(){return this.shadowRoot.querySelector(".md-tooltip__popper")}get virtualArrow(){return this.shadowRoot.querySelector(".md-tooltip__arrow")}get virtualTooltipContent(){return this.shadowRoot.querySelector(".md-tooltip__content")}showVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!0),this.createPopperInstance(this.placement))}hideVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!1),this.destroyPopperInstance(),this.setInitStyleToVirtualReference())}setupEvents(){this.addEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.addEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.addEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.addEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.addEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}teardownEvents(){this.removeEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.removeEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.removeEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.removeEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.removeEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,s=void 0,r=function*(){e.firstUpdated.call(this,t),yield new Promise((t=>setTimeout(t,0))),this.setupEvents()},new((o=void 0)||(o=Promise))((function(t,e){function n(t){try{l(r.next(t))}catch(t){e(t)}}function a(t){try{l(r.throw(t))}catch(t){e(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(i,s||[])).next())}));var i,s,o,r}static get styles(){return[d.dW]}render(){return l.html`
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-virtualizer","lit-html/directives/class-map.js","lit-html/directives/until.js","lit-html/directives/repeat","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit-html/directives/if-defined.js","highlight.js/lib/core","luxon","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","country-codes-list","country-flags-svg","libphonenumber-js","lit-html/directives/repeat.js","lit-html/directives/template-content","papaparse","lit-html/directives/unsafe-html","@popperjs/core/lib"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib")):e(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["lit-virtualizer"],t["lit-html/directives/class-map.js"],t["lit-html/directives/until.js"],t["lit-html/directives/repeat"],t["@popperjs/core/lib/modifiers/arrow"],t["@popperjs/core/lib/modifiers/flip"],t["@popperjs/core/lib/modifiers/offset"],t["@popperjs/core/lib/modifiers/preventOverflow"],t["@popperjs/core/lib/popper-lite"],t["lit-html/directives/if-defined.js"],t["highlight.js/lib/core"],t.luxon,t.sortablejs,t.dompurify,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["country-codes-list"],t["country-flags-svg"],t["libphonenumber-js"],t["lit-html/directives/repeat.js"],t["lit-html/directives/template-content"],t.papaparse,t["lit-html/directives/unsafe-html"],t["@popperjs/core/lib"]);for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(self,((t,e,i,s,o,r,n,a,l,d,h,p,c,u,m,y,b,v,g,f,w,C,x,S,$,E,T,k,A,I,L,O,M,P,D)=>(()=>{"use strict";var R,_,B,F,z,V={860:t=>{t.exports=I},1072:(t,e,i)=>{i.d(e,{Theme:()=>s});var s,o=i(77251),r=i(31890),n=i(4893),a=i(4863),l=i(41488),d=i(19130),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 l.LitElement{constructor(){super(...arguments),this.darkTheme=!1,this.lumos=!1,this.activeTheme=d.dW,this.placement="bottom",this.popperInstance=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip()}}setTheme(){return"momentum"===this.theme?this.darkTheme?d.Pm:d.f3:"lumos"===this.theme?this.darkTheme?d.Lu:d.dW:"momentumV2"===this.theme?this.darkTheme?d.Pm:d.f3:this.lumos?this.darkTheme?d.Lu:d.dW:this.darkTheme?d.Pm:d.f3}getStyleElement(){return document.createElement("style")}applyStyle(){const t=this.shadowRoot;if("adoptedStyleSheets"in document){const e=new CSSStyleSheet;e.replaceSync(this.activeTheme),t.adoptedStyleSheets=[e]}else{const e=this.getStyleElement();e.textContent=this.activeTheme.cssText,t.appendChild(e)}}removeChildFromVirtualPopper(){for(;this.virtualWrapper.firstElementChild;)this.virtualWrapper.firstElementChild.remove()}setInitStyleToVirtualReference(){const{style:t}=this.virtualReference;t.top="0",t.bottom="0",t.left="0",t.right="0",t.width="0",t.height="0",t.zIndex="-1"}setStyleToVirtualReference(t){const{style:e}=this.virtualReference,{top:i,bottom:s,left:o,right:r,width:n,height:a}=t;e.position="fixed",e.top=`${i}px`,e.bottom=`${s}px`,e.left=`${o}px`,e.right=`${r}px`,e.width=`${n}px`,e.height=`${a}px`,e.zIndex="-1"}setVirtualReferencePosition(t){const e=t.getBoundingClientRect();this.setStyleToVirtualReference(e)}initVirtualElements(t,e,i){const s=t.cloneNode(!0);this.virtualWrapper.hasChildNodes()&&this.removeChildFromVirtualPopper(),this.virtualWrapper.append(s),i&&this.setVirtualSlotContent(i),this.setVirtualReferencePosition(e)}setVirtualSlotContent(t){if(this.virtualTooltipContent){for(;this.virtualTooltipContent.firstElementChild;)this.virtualTooltipContent.firstElementChild.remove();t.forEach((t=>this.virtualTooltipContent.append(t)))}}updated(t){super.updated(t),(t.has("lumos")||t.has("darkTheme")||t.has("theme"))&&this.dispatchEvent(new CustomEvent("theme-changed",{composed:!0,bubbles:!0,detail:{darkTheme:this.darkTheme,lumos:this.lumos,theme:this.theme}})),this.activeTheme=this.setTheme(),this.applyStyle()}handleVirtualTooltipCreate(t){t.stopPropagation();const{popper:e,placement:i,reference:s,slotContent:o}=t.detail;this.placement=i,this.initVirtualElements(e,s,o),this.showVirtualTooltip()}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip()}handleVirtualTooltipChangeMessage(t){const{popper:e,reference:i}=t.detail;if(this.virtualReference!==i)return;const s=e.querySelector(".md-tooltip__content"),o=this.virtualWrapper.querySelector(".md-tooltip__content");if(s&&o){const t=s.textContent,e=o.textContent;t&&e&&(o.textContent=t)}}handleVirtualTooltipSlotChange(t){const{slotContent:e}=t.detail;e&&this.setVirtualSlotContent(e)}destroyPopperInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}createPopperInstance(t){if(this.virtualPopper){const e=8,i=4;this.popperInstance=(0,n.createPopper)(this.virtualReference,this.virtualPopper,{placement:t,modifiers:[...a.defaultModifiers,n.flip,n.offset,n.arrow,{name:"offset",options:{offset:({placement:t})=>{const s=e+i;return t.startsWith("left")||t.startsWith("right")||t.startsWith("top")||t.startsWith("bottom")?[0,s]:[8,8]}}},...this.virtualArrow?[{name:"arrow",options:{element:this.virtualArrow,padding:e}}]:[]]})}}get virtualPopper(){return this.shadowRoot.querySelector(".md-tooltip__popper")}get virtualArrow(){return this.shadowRoot.querySelector(".md-tooltip__arrow")}get virtualTooltipContent(){return this.shadowRoot.querySelector(".md-tooltip__content")}showVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!0),this.createPopperInstance(this.placement))}hideVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!1),this.destroyPopperInstance(),this.setInitStyleToVirtualReference())}setupEvents(){this.addEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.addEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.addEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.addEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.addEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}teardownEvents(){this.removeEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.removeEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.removeEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.removeEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.removeEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,s=void 0,r=function*(){e.firstUpdated.call(this,t),yield new Promise((t=>setTimeout(t,0))),this.setupEvents()},new((o=void 0)||(o=Promise))((function(t,e){function n(t){try{l(r.next(t))}catch(t){e(t)}}function a(t){try{l(r.throw(t))}catch(t){e(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(i,s||[])).next())}));var i,s,o,r}static get styles(){return[d.dW]}render(){return l.html`
2
2
  <div class="theme-wrapper" part="theme-wrapper">
3
3
  <style>
4
4
  ${o.A} .theme-wrapper {
@@ -26,7 +26,7 @@
26
26
  <label part="checkbox-label" class="checkbox-label">
27
27
  <slot></slot>
28
28
  </label>
29
- `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,l.property)({type:String})],e.prototype,"label",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,l.query)(".checkbox-input")],e.prototype,"input",void 0),e=h([(0,a.w)("md-checkbox")],e),t.ELEMENT=e}(s||(s={}))},4863:t=>{t.exports=b},4893:t=>{t.exports=D},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>s}),i(20109),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(40333),c=i(23968),p=i(97822),u=i(22818),m=i(8229),y=i(86635),b=i(97103),v=i(46795),g=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},f=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){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))}),0),this.handleGroupFilter=t=>{const e=t.filter((t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName}));return this.searchItem=!0,this.groupExpandedList=e.map((t=>{if("string"!=typeof t)return t.groupName})),t.filter((e=>"string"==typeof e||"true"!==e.isLabel||!!t.find((t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))))},this.notifyInputValueChanged=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}),250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e;const i=this._focusedIndex;if(this.checkForVirtualScroll()){let i;i=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const s=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find((t=>0!==t.offsetHeight&&t.id===i)):"";this.lists&&[...this.lists].forEach((t=>{t.toggleAttribute("focused",!1)})),s&&(null==s||s.toggleAttribute("focused",!0))}else if(this.lists){const e=this.lists[i];e&&e.toggleAttribute("focused",!1);const s=this.lists[t];s&&s.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",i)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const s=this.labels[t];s&&(s.toggleAttribute("focused",!0),s.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex((e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t))):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach((t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)}));else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),s=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of s){const s=i.getAttribute("aria-label"),o=i.getAttribute("display-value"),r=i.getAttribute("slot");s&&o&&e.push({[this.optionId]:s,[this.optionValue]:o,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map((t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}})):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex((e=>e&&e[this.optionId]===t[this.optionId])):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach((i=>{e.includes(i)&&(t=i.id)})),this.filteredOptions.findIndex((e=>this.getOptionId(e)===t))}return[...this.lists].findIndex((t=>e.includes(t)))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map((t=>this.getOptionId(t))),e=[...this.lists].filter((t=>"selectAll"!==t.id));null==e||e.forEach((e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))}))}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach((t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))})))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter((e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase())));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame((()=>{var t;let e=0,i=0,s=0;const o=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter((t=>0!==t.offsetHeight)):[...this.lists];e=t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0),s=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0):t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+o}px`),this.virtualizer&&(this.virtualizer.style.height=`${s+o}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+o}px`,this.listBox.style.maxHeight=`${e.clientHeight+o}px`)}}))}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach(((t,e)=>this.unCheckedOption(e))),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach(((t,e)=>this.checkOption(e)))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:s,bottom:o}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],n=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),a=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==n?void 0:n.bottom)>o?i=n.bottom-o+2:(null==a?void 0:a.top)<s&&(i=a.top-s-2),this.updateOnNextFrame((()=>{this.listBox.scrollTop+=i}))}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach((t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])}))}unselectedAllMultiTag(){this.selected&&this.selected.forEach((t=>t.removeAttribute("selected"))),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return f(this,void 0,void 0,(function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}))}handleSelectAll(){return f(this,void 0,void 0,(function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})}))}handleInputKeyUp(t){switch(t.code){case o.Uz.Escape:break;case o.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case o.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame((()=>{this.input.focus()})),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}selectedChange(t){var e;const{event:i}=t.detail;let s=this.findOptionIndex(i);if(-1!==s){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?s+1:s,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(s-=1);const t=this.getFocusedItem(s);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach(((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")}))}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame((()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))})),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0]))),this.updateOnNextFrame((()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++})),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case o.Uz.Backspace:this.focusedIndex=-1;break;case o.Uz.Tab:case o.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())})),this.setVisualListbox(!1),t.code===o.Uz.Tab&&this.isMulti)return;break;case o.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)}));break;case o.Uz.ArrowLeft:case o.Uz.ArrowRight:t.stopPropagation();break;case o.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case o.Uz.Home:this.setInputSelectionRange(0,0);break;case o.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case o.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(o.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case o.Uz.Tab:this.handleGroupFocus();break;case o.Uz.Enter:case o.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()})));break;case o.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))}));break;case o.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-combobox-listbox");(0,b.setTimeout)((()=>{t.focus()}),10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===e)),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,v.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0)))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0)))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
29
+ `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,l.property)({type:String})],e.prototype,"label",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,l.query)(".checkbox-input")],e.prototype,"input",void 0),e=h([(0,a.w)("md-checkbox")],e),t.ELEMENT=e}(s||(s={}))},4863:t=>{t.exports=b},4893:t=>{t.exports=D},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>s}),i(20109),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(40333),p=i(23968),c=i(97822),u=i(22818),m=i(8229),y=i(86635),b=i(97103),v=i(46795),g=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},f=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){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))}),0),this.handleGroupFilter=t=>{const e=t.filter((t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName}));return this.searchItem=!0,this.groupExpandedList=e.map((t=>{if("string"!=typeof t)return t.groupName})),t.filter((e=>"string"==typeof e||"true"!==e.isLabel||!!t.find((t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))))},this.notifyInputValueChanged=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}),250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e;const i=this._focusedIndex;if(this.checkForVirtualScroll()){let i;i=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const s=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find((t=>0!==t.offsetHeight&&t.id===i)):"";this.lists&&[...this.lists].forEach((t=>{t.toggleAttribute("focused",!1)})),s&&(null==s||s.toggleAttribute("focused",!0))}else if(this.lists){const e=this.lists[i];e&&e.toggleAttribute("focused",!1);const s=this.lists[t];s&&s.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",i)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const s=this.labels[t];s&&(s.toggleAttribute("focused",!0),s.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex((e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t))):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach((t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)}));else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),s=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of s){const s=i.getAttribute("aria-label"),o=i.getAttribute("display-value"),r=i.getAttribute("slot");s&&o&&e.push({[this.optionId]:s,[this.optionValue]:o,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map((t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}})):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex((e=>e&&e[this.optionId]===t[this.optionId])):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach((i=>{e.includes(i)&&(t=i.id)})),this.filteredOptions.findIndex((e=>this.getOptionId(e)===t))}return[...this.lists].findIndex((t=>e.includes(t)))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map((t=>this.getOptionId(t))),e=[...this.lists].filter((t=>"selectAll"!==t.id));null==e||e.forEach((e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))}))}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach((t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))})))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter((e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase())));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame((()=>{var t;let e=0,i=0,s=0;const o=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter((t=>0!==t.offsetHeight)):[...this.lists];e=t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0),s=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0):t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+o}px`),this.virtualizer&&(this.virtualizer.style.height=`${s+o}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+o}px`,this.listBox.style.maxHeight=`${e.clientHeight+o}px`)}}))}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach(((t,e)=>this.unCheckedOption(e))),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach(((t,e)=>this.checkOption(e)))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:s,bottom:o}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],n=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),a=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==n?void 0:n.bottom)>o?i=n.bottom-o+2:(null==a?void 0:a.top)<s&&(i=a.top-s-2),this.updateOnNextFrame((()=>{this.listBox.scrollTop+=i}))}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach((t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])}))}unselectedAllMultiTag(){this.selected&&this.selected.forEach((t=>t.removeAttribute("selected"))),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return f(this,void 0,void 0,(function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}))}handleSelectAll(){return f(this,void 0,void 0,(function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})}))}handleInputKeyUp(t){switch(t.code){case o.Uz.Escape:break;case o.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case o.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame((()=>{this.input.focus()})),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}selectedChange(t){var e;const{event:i}=t.detail;let s=this.findOptionIndex(i);if(-1!==s){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?s+1:s,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(s-=1);const t=this.getFocusedItem(s);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach(((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")}))}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame((()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))})),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0]))),this.updateOnNextFrame((()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++})),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case o.Uz.Backspace:this.focusedIndex=-1;break;case o.Uz.Tab:case o.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())})),this.setVisualListbox(!1),t.code===o.Uz.Tab&&this.isMulti)return;break;case o.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)}));break;case o.Uz.ArrowLeft:case o.Uz.ArrowRight:t.stopPropagation();break;case o.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case o.Uz.Home:this.setInputSelectionRange(0,0);break;case o.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case o.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(o.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case o.Uz.Tab:this.handleGroupFocus();break;case o.Uz.Enter:case o.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()})));break;case o.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))}));break;case o.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-combobox-listbox");(0,b.setTimeout)((()=>{t.focus()}),10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===e)),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,v.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0)))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0)))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
30
30
  <md-icon
31
31
  name=${t}
32
32
  class=${e}
@@ -70,10 +70,10 @@
70
70
  class="md-combobox-button arrow-down"
71
71
  part="combobox-button-arrow"
72
72
  aria-expanded=${this.expanded}
73
- aria-label=${(0,p.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
73
+ aria-label=${(0,c.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
74
74
  aria-controls="md-combobox-listbox"
75
75
  tabindex="-1"
76
- aria-hidden=${(0,p.ifDefined)("true"===this.popupChevronAriaHidden?"true":void 0)}
76
+ aria-hidden=${(0,c.ifDefined)("true"===this.popupChevronAriaHidden?"true":void 0)}
77
77
  ?disabled=${this.disabled}
78
78
  ?readonly=${this.readOnly}
79
79
  @click=${this.toggleVisualListBox}
@@ -85,7 +85,7 @@
85
85
  type="button"
86
86
  class="md-combobox-button"
87
87
  part="combobox-button-arrow"
88
- aria-label=${(0,p.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
88
+ aria-label=${(0,c.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
89
89
  aria-controls="md-combobox-listbox"
90
90
  tabindex="-1"
91
91
  aria-hidden=${"true"===this.popupChevronAriaHidden?"true":"false"}
@@ -101,10 +101,10 @@
101
101
  <div
102
102
  id="selectAll"
103
103
  part="combobox-option"
104
- class="md-combobox-option ${(0,c.classMap)(this.listItemOptionMap)}"
104
+ class="md-combobox-option ${(0,p.classMap)(this.listItemOptionMap)}"
105
105
  @click=${this.handleSelectAll}
106
106
  aria-label="${this.selectAllTextLocalization}${t}"
107
- aria-checked=${(0,p.ifDefined)(this.isSelectAllChecked?"true":void 0)}
107
+ aria-checked=${(0,c.ifDefined)(this.isSelectAllChecked?"true":void 0)}
108
108
  role="checkbox"
109
109
  >
110
110
  <span class="select-option" aria-hidden="true">
@@ -115,7 +115,7 @@
115
115
  </div>
116
116
  `}getSelctedCount(){return 0===this.selectedOptions.length?h.nothing:this.isSelectAllSelected()?d.html` <span class="selected-count">${this.allTextLocalization}</span> `:d.html`
117
117
  <span class="selected-count">${this.selectedOptions.length} ${this.selectedTextLocalization}</span>
118
- `}checkForVirtualScroll(){return this.useVirtualScroll&&!this.isOptGroup}rangeChanged(){this.updateFocusedIndex(this.focusedIndex),this.checkSelectedOptions(),this.resizeListbox()}getCustomErrorContent(){const t=this.querySelector("[slot]")||this.shadowRoot.querySelector("[slot]");return document.createRange().createContextualFragment(`${null==t?void 0:t.outerHTML}`)}getCustomContent(t){const e=this.getCustomContentName(t);if(this.isOptGroup){const t=[...this.querySelectorAll("[slot]")].find((t=>t.slot===e));return t?document.createRange().createContextualFragment(`${t.outerHTML}`):d.html``}return d.html` <slot name=${(0,p.ifDefined)(e)}></slot> `}renderGroupLabelHeader(t,e){return d.html`
118
+ `}checkForVirtualScroll(){return this.useVirtualScroll&&!this.isOptGroup}rangeChanged(){this.updateFocusedIndex(this.focusedIndex),this.checkSelectedOptions(),this.resizeListbox()}getCustomErrorContent(){const t=this.querySelector("[slot]")||this.shadowRoot.querySelector("[slot]");return document.createRange().createContextualFragment(`${null==t?void 0:t.outerHTML}`)}getCustomContent(t){const e=this.getCustomContentName(t);if(this.isOptGroup){const t=[...this.querySelectorAll("[slot]")].find((t=>t.slot===e));return t?document.createRange().createContextualFragment(`${t.outerHTML}`):d.html``}return d.html` <slot name=${(0,c.ifDefined)(e)}></slot> `}renderGroupLabelHeader(t,e){return d.html`
119
119
  <div
120
120
  part="group-label"
121
121
  class="group-label"
@@ -142,7 +142,7 @@
142
142
  aria-label="${this.isCustomContent?this.getOptionId(t):this.getOptionValue(t)}${o}"
143
143
  tabindex="-1"
144
144
  @click=${this.handleListClick}
145
- aria-checked=${(0,p.ifDefined)(this.isMulti?this.isOptionChecked.call(this,t):void 0)}
145
+ aria-checked=${(0,c.ifDefined)(this.isMulti?this.isOptionChecked.call(this,t):void 0)}
146
146
  >
147
147
  ${this.isMulti?d.html`
148
148
  <span class="select-option" aria-hidden="true">
@@ -155,7 +155,7 @@
155
155
  </div>
156
156
  `}inputTitle(){return this.isMulti?this.selectedOptions.length>0?`${this.selectedOptions.length} ${this.selectedTextLocalization}`:this.placeholder:this.selectedOptions.length>0?this.getOptionValue(this.selectedOptions[0]):this.placeholder}helpTextTemplate(){return this.helpText?d.html`
157
157
  <md-help-text
158
- class="help-text ${(0,c.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
158
+ class="help-text ${(0,p.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
159
159
  .message=${this.helpText}
160
160
  style=${(0,m.styleMap)({width:"100%"})}
161
161
  ></md-help-text>
@@ -171,13 +171,13 @@
171
171
  `))}
172
172
  </div>
173
173
  `:h.nothing}get newArrowButtonTemplate(){return d.html`<div class="md-combobox-right-arrow">${this.arrowButtonTemplate()}</div>`}get renderNewMomentumArrow(){return d.html` ${this.isDropdownArrow?this.arrowButtonTemplate():this.newArrowButtonTemplate} `}get renderTrailingInputControls(){const t=this.shouldChangeButton();return this.newMomentum?t&&this.isDropdownArrow?d.html`${this.clearButtonTemplate()}`:t?d.html`${this.clearButtonTemplate()} ${this.renderNewMomentumArrow}`:this.renderNewMomentumArrow:this.compact?d.html`${h.nothing}`:d.html`${t?this.clearButtonTemplate():this.arrowButtonTemplate()}`}render(){return d.html`
174
- <div part="combobox" class="md-combobox md-combobox-list ${(0,c.classMap)(this.comboBoxTemplateClassMap)}">
175
- <div part="group" class="group ${(0,c.classMap)(this.listItemOptionMap)}">
174
+ <div part="combobox" class="md-combobox md-combobox-list ${(0,p.classMap)(this.comboBoxTemplateClassMap)}">
175
+ <div part="group" class="group ${(0,p.classMap)(this.listItemOptionMap)}">
176
176
  ${this.searchable?this.searchIconTemplate():this.showFilterIcon?this.filterIconTemplate():h.nothing}
177
177
  <div class="md-combobox__multiwrap" part="multiwrap">
178
178
  ${this.isMulti?this.isMulti&&!this.showSelectedCount?(0,u.repeat)(this.selectedOptions,(t=>this.selectedOptionTemplate(t))):this.getSelctedCount():h.nothing}
179
179
  <input
180
- id=${(0,p.ifDefined)(this.comboboxId||void 0)}
180
+ id=${(0,c.ifDefined)(this.comboboxId||void 0)}
181
181
  class="md-combobox-listbox"
182
182
  type="text"
183
183
  role="combobox"
@@ -190,7 +190,7 @@
190
190
  ?readonly=${this.allowSelectAll||this.readOnly}
191
191
  ?disabled=${this.disabled}
192
192
  ?autofocus=${this.autofocus}
193
- title=${(0,p.ifDefined)(this.inputTitle())}
193
+ title=${(0,c.ifDefined)(this.inputTitle())}
194
194
  .value=${this.inputValue}
195
195
  @click=${this.toggleVisualListBox}
196
196
  @input=${this.handleInput}
@@ -216,7 +216,7 @@
216
216
  part="combobox-options"
217
217
  aria-label=${this.ariaLabel||this.label}
218
218
  style=${this.addStyle()}
219
- role=${(0,p.ifDefined)(this.checkForVirtualScroll()?void 0:"list")}
219
+ role=${(0,c.ifDefined)(this.checkForVirtualScroll()?void 0:"list")}
220
220
  >
221
221
  ${this.isMulti&&this.allowSelectAll&&this.expanded?this.getSelectAllOption():h.nothing}
222
222
  ${this.checkForVirtualScroll()?0!==this.options.length&&this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).length>0?d.html`
@@ -238,7 +238,7 @@
238
238
  `}
239
239
  </div>
240
240
  ${this.invalid?d.html`
241
- <div part="message" class="md-combobox-error ${(0,c.classMap)({"md-new-combobox-error":this.newMomentum})}">
241
+ <div part="message" class="md-combobox-error ${(0,p.classMap)({"md-new-combobox-error":this.newMomentum})}">
242
242
  <md-help-text .message=${this.invalidText} messageType="error"></md-help-text>
243
243
  </div>
244
244
  `:h.nothing}
@@ -251,7 +251,7 @@
251
251
  >
252
252
  ${this.label?n.html` <span>${this.label}</span> `:n.html` <slot></slot> `}
253
253
  </label>
254
- `}};d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"theme",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"radioLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"checkboxLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"toggleSwitchLabel",void 0),d([(0,n.property)({type:String})],e.prototype,"htmlFor",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"active",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"indeterminate",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"secondaryLabel",void 0),e=d([(0,o.w)("md-label")],e),t.ELEMENT=e}(s||(s={}))},6779:(t,e,i)=>{i.d(e,{AccordionItem:()=>s}),i(61200);var s,o=i(3001),r=i(31890),n=i(59164),a=i(26272),l=i(41488),d=i(97822),h=i(33866),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};!function(t){let e=class extends((0,o.yC)(l.LitElement)){constructor(){super(...arguments),this._expanded=!1,this._level=3,this.uniqueId=(0,n.O)("accordion-item"),this.label="",this.disabled=!1}get expanded(){return this._expanded}set expanded(t){const e=this._expanded;this._expanded=t,t?(this.notifyAccordionFocus(),this.notifyExpandedHeader()):this.notifyCollapsedHeader(),this.requestUpdate("expanded",e)}get level(){return this._level}set level(t){const e=this.level;t<1||t>6?(console.warn("Please set appropriate section heading level"),this._level=3):this._level=t,this.requestUpdate("level",e)}notifyExpandedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-expanded",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyCollapsedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-collapsed",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyAccordionFocus(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}firstUpdated(t){super.firstUpdated(t),this.setAttribute("id",this.uniqueId)}static get styles(){return[a.A,h.A]}handleMouseDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-click",{detail:{srcEvent:t},composed:!0,bubbles:!0}))}handleKeyDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-keydown",{detail:{srcEvent:t},bubbles:!0,composed:!0}))}render(){return l.html`
254
+ `}};d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"theme",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"radioLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"checkboxLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"toggleSwitchLabel",void 0),d([(0,n.property)({type:String})],e.prototype,"htmlFor",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"active",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"indeterminate",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"secondaryLabel",void 0),e=d([(0,o.w)("md-label")],e),t.ELEMENT=e}(s||(s={}))},6779:(t,e,i)=>{i.d(e,{AccordionItem:()=>s}),i(61200);var s,o=i(3001),r=i(31890),n=i(59164),a=i(26272),l=i(41488),d=i(97822),h=i(33866),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};!function(t){let e=class extends((0,o.yC)(l.LitElement)){constructor(){super(...arguments),this._expanded=!1,this._level=3,this.uniqueId=(0,n.O)("accordion-item"),this.label="",this.disabled=!1}get expanded(){return this._expanded}set expanded(t){const e=this._expanded;this._expanded=t,t?(this.notifyAccordionFocus(),this.notifyExpandedHeader()):this.notifyCollapsedHeader(),this.requestUpdate("expanded",e)}get level(){return this._level}set level(t){const e=this.level;t<1||t>6?(console.warn("Please set appropriate section heading level"),this._level=3):this._level=t,this.requestUpdate("level",e)}notifyExpandedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-expanded",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyCollapsedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-collapsed",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyAccordionFocus(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}firstUpdated(t){super.firstUpdated(t),this.setAttribute("id",this.uniqueId)}static get styles(){return[a.A,h.A]}handleMouseDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-click",{detail:{srcEvent:t},composed:!0,bubbles:!0}))}handleKeyDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-keydown",{detail:{srcEvent:t},bubbles:!0,composed:!0}))}render(){return l.html`
255
255
  <div class="md-accordion-item">
256
256
  <div role="heading" aria-level=${this.level} class="md-accordion-header" part="accordion-header">
257
257
  <button
@@ -288,7 +288,7 @@
288
288
  <slot></slot>
289
289
  </div>
290
290
  </div>
291
- `}};c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",null),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"level",null),c([(0,l.query)(".md-accordion-expander")],e.prototype,"header",void 0),e=c([(0,r.w)("md-accordion-item")],e),t.ELEMENT=e}(s||(s={}))},6963:t=>{t.exports=L},8229:t=>{t.exports=e},10654:(t,e,i)=>{i.d(e,{Card:()=>s}),i(96798),i(99850),i(61200),i(68490),i(66245),i(11323),i(83192);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(22818),d=i(90195),h=i(70630),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};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[r.A,h.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(t){t.code!==d.Uz.Enter&&t.code!==d.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(t,e){t.stopPropagation();const i=e.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:i},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(t,e){t.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:e.toLowerCase(),keyCode:t.code},bubbles:!0,composed:!0}))}render(){return n.html`
291
+ `}};p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",null),p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"level",null),p([(0,l.query)(".md-accordion-expander")],e.prototype,"header",void 0),e=p([(0,r.w)("md-accordion-item")],e),t.ELEMENT=e}(s||(s={}))},6963:t=>{t.exports=L},8229:t=>{t.exports=e},10654:(t,e,i)=>{i.d(e,{Card:()=>s}),i(96798),i(99850),i(61200),i(68490),i(66245),i(11323),i(83192);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(22818),d=i(90195),h=i(70630),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};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[r.A,h.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(t){t.code!==d.Uz.Enter&&t.code!==d.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(t,e){t.stopPropagation();const i=e.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:i},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(t,e){t.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:e.toLowerCase(),keyCode:t.code},bubbles:!0,composed:!0}))}render(){return n.html`
292
292
  <div
293
293
  class="md-card"
294
294
  id="${this.id}"
@@ -355,14 +355,14 @@
355
355
  <slot name="footer"> </slot>
356
356
  </div>
357
357
  </div>
358
- `}};c([(0,n.property)({type:String})],e.prototype,"title",void 0),c([(0,n.property)({type:String})],e.prototype,"subtitle",void 0),c([(0,n.property)({type:String})],e.prototype,"id",void 0),c([(0,n.property)({type:String})],e.prototype,"info",void 0),c([(0,n.property)({type:String,attribute:"info-aria-label"})],e.prototype,"infoAriaLabel",void 0),c([(0,n.property)({type:String,attribute:"menu-aria-label"})],e.prototype,"menuAriaLabel",void 0),c([(0,n.property)({type:Array})],e.prototype,"menuOptions",void 0),e=c([(0,o.w)("md-card")],e),t.ELEMENT=e}(s||(s={}))},10984:(t,e,i)=>{i.d(e,{DatePickerWeek:()=>s}),i(16754);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),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 a.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,r.tB)(),this.viewAnchorMonth=(0,r.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map((t=>{const e=(0,r.fi)(this.startOfWeekDay,t);return a.html`
358
+ `}};p([(0,n.property)({type:String})],e.prototype,"title",void 0),p([(0,n.property)({type:String})],e.prototype,"subtitle",void 0),p([(0,n.property)({type:String})],e.prototype,"id",void 0),p([(0,n.property)({type:String})],e.prototype,"info",void 0),p([(0,n.property)({type:String,attribute:"info-aria-label"})],e.prototype,"infoAriaLabel",void 0),p([(0,n.property)({type:String,attribute:"menu-aria-label"})],e.prototype,"menuAriaLabel",void 0),p([(0,n.property)({type:Array})],e.prototype,"menuOptions",void 0),e=p([(0,o.w)("md-card")],e),t.ELEMENT=e}(s||(s={}))},10984:(t,e,i)=>{i.d(e,{DatePickerWeek:()=>s}),i(16754);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),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 a.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,r.tB)(),this.viewAnchorMonth=(0,r.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map((t=>{const e=(0,r.fi)(this.startOfWeekDay,t);return a.html`
359
359
  <md-datepicker-day
360
360
  .viewAnchorMonth=${this.viewAnchorMonth}
361
361
  .day=${e}
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),p=i(84157),c=i.n(p),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`
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,modifiers:[...v.defaultModifiers,c(),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.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:()=>c,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),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};const c=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"
@@ -416,7 +416,7 @@
416
416
  @click=${t=>this.handleClick(t)}
417
417
  @keydown=${t=>this.handleKeydown(t)}
418
418
  ></button>
419
- `}};c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),c([(0,l.property)({type:String,attribute:"closable"})],e.prototype,"closable",void 0),c([(0,l.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),c([(0,l.property)({type:Boolean,attribute:"cross-visible"})],e.prototype,"isCrossVisible",void 0),c([(0,l.property)({type:String,attribute:"role",reflect:!0})],e.prototype,"role",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"type",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"onlyIcon",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.property)({type:Boolean,attribute:"visible-tab",reflect:!0})],e.prototype,"visibleTab",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"vertical",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"viewportHidden",void 0),e=c([(0,r.w)("md-tab")],e),t.ELEMENT=e}(u||(u={}))},16754:(t,e,i)=>{i.d(e,{DatePickerDay:()=>s}),i(96798);var s,o=i(31890),r=i(81625),n=i(66677),a=i(26272),l=i(41488),d=i(23968),h=i(97822),c=i(14974),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};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.focused=!1,this.selected=!1,this.disabled=!1,this.day=(0,r.tB)(),this.viewAnchorMonth=void 0,this.filterParams=void 0,this.datePickerProps=void 0,this.isOutsideMonth=!1,this.isToday=!1,this.parentRangePicker=null,this.dateIsInRange=!1,this.handleClick=t=>{this.dispatchEvent(new CustomEvent("day-select",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))},this.isDateInRange=()=>{var t;const e=this.parentRangePicker,i=null==e?void 0:e.startDate,s=null==e?void 0:e.endDate;if(!i||!s)return!1;const o=(null===(t=this.day)||void 0===t?void 0:t.isValid)?this.day.toSQLDate():null;if(!o)return!1;const r=o>i&&o<s,n=o===i,a=o===s;return!this.isPrimarySelection()&&(r||n||a)},this.handleKeyDown=t=>{this.dispatchEvent(new CustomEvent("day-key-event",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))}}connectedCallback(){super.connectedCallback(),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.parentRangePicker=(0,n.QZ)("md-date-range-picker",this)}updated(t){var e,i;super.updated(t),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.focused&&this.button&&(null===(i=null===(e=this.button.shadowRoot)||void 0===e?void 0:e.querySelector("button"))||void 0===i||i.focus()),this.parentRangePicker&&(this.dateIsInRange=this.isDateInRange())}isPrimarySelection(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)&&void 0===this.parentRangePicker.endDate}isLeadingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.firstElementChild)}isEndingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.lastElementChild)}isStartDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)===this.day.toSQLDate()&&!this.isPrimarySelection()}isEndDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.endDate)===this.day.toSQLDate()}get getDayClassMap(){return{"md-datepicker__day--selected":this.selected,"md-datepicker__day--focus":this.focused,"md-datepicker__day--today":this.isToday,"md-datepicker__day--outside-month":this.isOutsideMonth,"md-datepicker__day--in-range":this.dateIsInRange,"md-datepicker__day--week-first":this.isLeadingRangeEdge(),"md-datepicker__day--week-last":this.isEndingRangeEdge(),"md-datepicker__day--start-date":this.isStartDate(),"md-datepicker__day--end-date":this.isEndDate()}}static get styles(){return[a.A,c.A]}render(){var t;const e=(0,r.WV)(this.day,(null===(t=this.datePickerProps)||void 0===t?void 0:t.locale)||"en").toFormat("D, dd MMMM yyyy");return l.html`
419
+ `}};p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),p([(0,l.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),p([(0,l.property)({type:String,attribute:"closable"})],e.prototype,"closable",void 0),p([(0,l.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),p([(0,l.property)({type:Boolean,attribute:"cross-visible"})],e.prototype,"isCrossVisible",void 0),p([(0,l.property)({type:String,attribute:"role",reflect:!0})],e.prototype,"role",void 0),p([(0,l.property)({type:String,reflect:!0})],e.prototype,"type",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"onlyIcon",void 0),p([(0,l.property)({type:String})],e.prototype,"variant",void 0),p([(0,l.property)({type:Boolean,attribute:"visible-tab",reflect:!0})],e.prototype,"visibleTab",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"vertical",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"viewportHidden",void 0),e=p([(0,r.w)("md-tab")],e),t.ELEMENT=e}(u||(u={}))},16754:(t,e,i)=>{i.d(e,{DatePickerDay:()=>s}),i(96798);var s,o=i(31890),r=i(81625),n=i(66677),a=i(26272),l=i(41488),d=i(23968),h=i(97822),p=i(14974),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};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.focused=!1,this.selected=!1,this.disabled=!1,this.day=(0,r.tB)(),this.viewAnchorMonth=void 0,this.filterParams=void 0,this.datePickerProps=void 0,this.isOutsideMonth=!1,this.isToday=!1,this.parentRangePicker=null,this.dateIsInRange=!1,this.handleClick=t=>{this.dispatchEvent(new CustomEvent("day-select",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))},this.isDateInRange=()=>{var t;const e=this.parentRangePicker,i=null==e?void 0:e.startDate,s=null==e?void 0:e.endDate;if(!i||!s)return!1;const o=(null===(t=this.day)||void 0===t?void 0:t.isValid)?this.day.toSQLDate():null;if(!o)return!1;const r=o>i&&o<s,n=o===i,a=o===s;return!this.isPrimarySelection()&&(r||n||a)},this.handleKeyDown=t=>{this.dispatchEvent(new CustomEvent("day-key-event",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))}}connectedCallback(){super.connectedCallback(),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.parentRangePicker=(0,n.QZ)("md-date-range-picker",this)}updated(t){var e,i;super.updated(t),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.focused&&this.button&&(null===(i=null===(e=this.button.shadowRoot)||void 0===e?void 0:e.querySelector("button"))||void 0===i||i.focus()),this.parentRangePicker&&(this.dateIsInRange=this.isDateInRange())}isPrimarySelection(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)&&void 0===this.parentRangePicker.endDate}isLeadingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.firstElementChild)}isEndingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.lastElementChild)}isStartDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)===this.day.toSQLDate()&&!this.isPrimarySelection()}isEndDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.endDate)===this.day.toSQLDate()}get getDayClassMap(){return{"md-datepicker__day--selected":this.selected,"md-datepicker__day--focus":this.focused,"md-datepicker__day--today":this.isToday,"md-datepicker__day--outside-month":this.isOutsideMonth,"md-datepicker__day--in-range":this.dateIsInRange,"md-datepicker__day--week-first":this.isLeadingRangeEdge(),"md-datepicker__day--week-last":this.isEndingRangeEdge(),"md-datepicker__day--start-date":this.isStartDate(),"md-datepicker__day--end-date":this.isEndDate()}}static get styles(){return[a.A,p.A]}render(){var t;const e=(0,r.WV)(this.day,(null===(t=this.datePickerProps)||void 0===t?void 0:t.locale)||"en").toFormat("D, dd MMMM yyyy");return l.html`
420
420
  <md-button
421
421
  circle
422
422
  size=${32}
@@ -432,7 +432,7 @@
432
432
  >
433
433
  ${this.day&&(0,r.pp)(this.day)}
434
434
  </md-button>
435
- `}};p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"focused",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"day",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),p([(0,l.internalProperty)()],e.prototype,"isOutsideMonth",void 0),p([(0,l.internalProperty)()],e.prototype,"isToday",void 0),p([(0,l.internalProperty)()],e.prototype,"parentRangePicker",void 0),p([(0,l.internalProperty)()],e.prototype,"dateIsInRange",void 0),p([(0,l.query)("md-button")],e.prototype,"button",void 0),e=p([(0,o.w)("md-datepicker-day")],e),t.ELEMENT=e}(s||(s={}))},17518:t=>{t.exports=d},17814:(t,e,i)=>{i.d(e,{DatePickerMonth:()=>s}),i(10984);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),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 a.LitElement{constructor(){super(...arguments),this.day=(0,r.tB)(),this.filterParams=void 0,this.datePickerProps=void 0,this.renderWeeks=()=>{var t;let e=(0,r.mK)((0,r.Mw)(this.day),null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);const i=[],s=(0,r.tj)(this.day);do{i.push(a.html`
435
+ `}};c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"focused",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"day",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),c([(0,l.internalProperty)()],e.prototype,"isOutsideMonth",void 0),c([(0,l.internalProperty)()],e.prototype,"isToday",void 0),c([(0,l.internalProperty)()],e.prototype,"parentRangePicker",void 0),c([(0,l.internalProperty)()],e.prototype,"dateIsInRange",void 0),c([(0,l.query)("md-button")],e.prototype,"button",void 0),e=c([(0,o.w)("md-datepicker-day")],e),t.ELEMENT=e}(s||(s={}))},17518:t=>{t.exports=d},17814:(t,e,i)=>{i.d(e,{DatePickerMonth:()=>s}),i(10984);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),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 a.LitElement{constructor(){super(...arguments),this.day=(0,r.tB)(),this.filterParams=void 0,this.datePickerProps=void 0,this.renderWeeks=()=>{var t;let e=(0,r.mK)((0,r.Mw)(this.day),null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);const i=[],s=(0,r.tj)(this.day);do{i.push(a.html`
436
436
  <md-datepicker-week
437
437
  .viewAnchorMonth=${s}
438
438
  .startOfWeekDay=${e}
@@ -474,7 +474,7 @@
474
474
  >
475
475
  <slot></slot>
476
476
  </a>
477
- `}})()} `}};h([(0,n.property)({type:String,attribute:!1})],e.prototype,"color",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaRole",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:String,attribute:"inline-style"})],e.prototype,"inlineStyle",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inverted",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.property)({type:String})],e.prototype,"tag",void 0),h([(0,n.property)({type:String})],e.prototype,"target",void 0),h([(0,n.property)({type:String})],e.prototype,"size",void 0),h([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),e=h([(0,o.w)("md-link")],e),t.ELEMENT=e}(s||(s={}))},19239:t=>{t.exports=P},19479:(t,e,i)=>{i.d(e,{AlertBanner:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(35467),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};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.type="",this.message="",this.closable=!1,this.show=!1,this.closeAriaLabel="Close Banner",this.showBannerTypeIcon=!1,this.showRefreshButton=!1,this.alignment="center"}connectedCallback(){super.connectedCallback(),this.requestUpdate("show")}onHide(){this.show=!this.show,this.dispatchEvent(new CustomEvent("alertBanner-hide")),this.requestUpdate("show")}handleKeyDown(t){const{code:e}=t;(0,r.o)(e)&&this.onHide()}get isLeadingAlignment(){return"leading"===this.alignment}static get styles(){return[n.A,h.A]}getIconForType(){switch(this.type){case"error":return"error-legacy-badge-filled";case"warning":return"warning-filled";case"success":return"check-circle-badge-filled";default:return"info-badge-filled"}}get alertBannerClassMap(){return{"md-alert-banner":!0,[`md-alert-banner--${this.type}`]:this.type,[`md-alert-banner--${this.alignment}`]:this.isLeadingAlignment,closable:this.closable}}get alertBannerTextClassMap(){return{"md-alert-banner__text":!0,leading:this.isLeadingAlignment}}get alertBannerRightClassMap(){return{trailing:this.isLeadingAlignment}}get closeButtonTemplate(){return a.html`
477
+ `}})()} `}};h([(0,n.property)({type:String,attribute:!1})],e.prototype,"color",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaRole",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:String,attribute:"inline-style"})],e.prototype,"inlineStyle",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inverted",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.property)({type:String})],e.prototype,"tag",void 0),h([(0,n.property)({type:String})],e.prototype,"target",void 0),h([(0,n.property)({type:String})],e.prototype,"size",void 0),h([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),e=h([(0,o.w)("md-link")],e),t.ELEMENT=e}(s||(s={}))},19239:t=>{t.exports=P},19479:(t,e,i)=>{i.d(e,{AlertBanner:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(35467),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};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.type="",this.message="",this.closable=!1,this.show=!1,this.closeAriaLabel="Close Banner",this.showBannerTypeIcon=!1,this.showRefreshButton=!1,this.alignment="center"}connectedCallback(){super.connectedCallback(),this.requestUpdate("show")}onHide(){this.show=!this.show,this.dispatchEvent(new CustomEvent("alertBanner-hide")),this.requestUpdate("show")}handleKeyDown(t){const{code:e}=t;(0,r.o)(e)&&this.onHide()}get isLeadingAlignment(){return"leading"===this.alignment}static get styles(){return[n.A,h.A]}getIconForType(){switch(this.type){case"error":return"error-legacy-badge-filled";case"warning":return"warning-filled";case"success":return"check-circle-badge-filled";default:return"info-badge-filled"}}get alertBannerClassMap(){return{"md-alert-banner":!0,[`md-alert-banner--${this.type}`]:this.type,[`md-alert-banner--${this.alignment}`]:this.isLeadingAlignment,closable:this.closable}}get alertBannerTextClassMap(){return{"md-alert-banner__text":!0,leading:this.isLeadingAlignment}}get alertBannerRightClassMap(){return{trailing:this.isLeadingAlignment}}get closeButtonTemplate(){return a.html`
478
478
  <div class="close-div">
479
479
  <md-button
480
480
  class="md-alert-banner__close"
@@ -509,7 +509,7 @@
509
509
  ${t}
510
510
  </div>
511
511
  `:null}
512
- `}};c([(0,a.property)({type:String})],e.prototype,"type",void 0),c([(0,a.property)({type:String})],e.prototype,"message",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"closable",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,a.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"showBannerTypeIcon",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"showRefreshButton",void 0),c([(0,a.property)({type:String})],e.prototype,"alignment",void 0),e=c([(0,o.w)("md-alert-banner")],e),t.ELEMENT=e}(s||(s={}))},20109:(t,e,i)=>{i.d(e,{HelpText:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(24977),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.message="",this.messageType=void 0,this.id="",this.ariaLive="off"}get inputMessageClassMap(){return{[`md-${this.messageType}`]:!!this.messageType}}static get styles(){return[r.A,l.A]}getIconName(){switch(this.messageType){case"success":return"check-circle-badge-filled";case"error":return"error-legacy-badge-filled";case"warning":return"warning-badge-filled";case"priority":return"info-badge-filled";default:return""}}render(){return n.html`
512
+ `}};p([(0,a.property)({type:String})],e.prototype,"type",void 0),p([(0,a.property)({type:String})],e.prototype,"message",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"closable",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"show",void 0),p([(0,a.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"showBannerTypeIcon",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"showRefreshButton",void 0),p([(0,a.property)({type:String})],e.prototype,"alignment",void 0),e=p([(0,o.w)("md-alert-banner")],e),t.ELEMENT=e}(s||(s={}))},20109:(t,e,i)=>{i.d(e,{HelpText:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(24977),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.message="",this.messageType=void 0,this.id="",this.ariaLive="off"}get inputMessageClassMap(){return{[`md-${this.messageType}`]:!!this.messageType}}static get styles(){return[r.A,l.A]}getIconName(){switch(this.messageType){case"success":return"check-circle-badge-filled";case"error":return"error-legacy-badge-filled";case"warning":return"warning-badge-filled";case"priority":return"info-badge-filled";default:return""}}render(){return n.html`
513
513
  <div
514
514
  class="md-input__message ${(0,a.classMap)(this.inputMessageClassMap)}"
515
515
  id=${this.id}
@@ -519,7 +519,7 @@
519
519
  <md-icon name="${this.getIconName()}" size="14" iconSet="momentumDesign"></md-icon>
520
520
  <slot>${this.message}</slot>
521
521
  </div>
522
- `}};d([(0,n.property)({type:String})],e.prototype,"message",void 0),d([(0,n.property)({type:String})],e.prototype,"messageType",void 0),d([(0,n.property)({type:String})],e.prototype,"id",void 0),d([(0,n.property)({type:String})],e.prototype,"ariaLive",void 0),e=d([(0,o.w)("md-help-text")],e),t.ELEMENT=e}(s||(s={}))},20331:(t,e,i)=>{i.d(e,{ToggleSwitch:()=>p}),i(6396);var s=i(3001),o=i(26272),r=i(31890),n=i(41488),a=i(23968),l=i(20779),d=i(97822),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};const c="md-toggle-switch__accessible-description";var p;!function(t){let e=class extends((0,s.yC)(n.LitElement)){constructor(){super(...arguments),this.htmlId="",this.label="toggle",this.description=void 0,this.checked=!1,this.disabled=!1,this.small=!1,this.smaller=!1,this.alignLabel="right",this.autofocus=!1}handleClick(){this.disabled||(this.checked=!this.checked)}get toggleSwitchClassMap(){return{"md-toggle-switch--small":this.small,"md-toggle-switch--smaller":this.smaller}}switchTemplate(){return"left"===this.alignLabel?n.html`
522
+ `}};d([(0,n.property)({type:String})],e.prototype,"message",void 0),d([(0,n.property)({type:String})],e.prototype,"messageType",void 0),d([(0,n.property)({type:String})],e.prototype,"id",void 0),d([(0,n.property)({type:String})],e.prototype,"ariaLive",void 0),e=d([(0,o.w)("md-help-text")],e),t.ELEMENT=e}(s||(s={}))},20331:(t,e,i)=>{i.d(e,{ToggleSwitch:()=>c}),i(6396);var s=i(3001),o=i(26272),r=i(31890),n=i(41488),a=i(23968),l=i(20779),d=i(97822),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};const p="md-toggle-switch__accessible-description";var c;!function(t){let e=class extends((0,s.yC)(n.LitElement)){constructor(){super(...arguments),this.htmlId="",this.label="toggle",this.description=void 0,this.checked=!1,this.disabled=!1,this.small=!1,this.smaller=!1,this.alignLabel="right",this.autofocus=!1}handleClick(){this.disabled||(this.checked=!this.checked)}get toggleSwitchClassMap(){return{"md-toggle-switch--small":this.small,"md-toggle-switch--smaller":this.smaller}}switchTemplate(){return"left"===this.alignLabel?n.html`
523
523
  <slot></slot>
524
524
  <span
525
525
  class="md-toggle-switch__label__container md-toggle-switch__label__container__left"
@@ -543,16 +543,16 @@
543
543
  ?disabled=${this.disabled}
544
544
  ?autofocus=${this.autofocus}
545
545
  tabindex=${this.disabled?-1:0}
546
- aria-describedby=${(0,d.ifDefined)(this.description?c:void 0)}
546
+ aria-describedby=${(0,d.ifDefined)(this.description?p:void 0)}
547
547
  />
548
548
  <md-label .htmlFor=${this.htmlId} class="md-toggle-switch__label"> ${this.switchTemplate()} </md-label>
549
549
  ${this.description&&n.html`
550
- <div id=${c} class="md-toggle-switch__accessible-description">
550
+ <div id=${p} class="md-toggle-switch__accessible-description">
551
551
  ${this.description}
552
552
  </div>
553
553
  `}
554
554
  </div>
555
- `}static get styles(){return[o.A,l.A]}};h([(0,n.property)({type:String})],e.prototype,"htmlId",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"description",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"checked",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"smaller",void 0),h([(0,n.property)({type:String})],e.prototype,"alignLabel",void 0),h([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),e=h([(0,r.w)("md-toggle-switch")],e),t.ELEMENT=e}(p||(p={}))},20727:t=>{t.exports=E},22818:t=>{t.exports=c},22962:t=>{t.exports=p},23026:(t,e,i)=>{i.d(e,{Pagination:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(4392),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._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const e=this._currentPage;this._currentPage=t,this.notifyPageChange(e,t),this.requestUpdate("currentPage",e)}static get styles(){return[r.A,l.A]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,e){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:e}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,e,i]=[this.currentPage-1,this.currentPage,this.currentPage+1];let s=[];if(e<=this.visiblePage-1)return s=[...Array(this.visiblePage)].map(((t,e)=>1+e)),s.push("..."),s.push(this.totalPage),s;if(this.totalPage-e<=this.visiblePage-2){s=[],s.push(1),s.push("...");const t=[...Array(this.visiblePage)].map(((t,e)=>this.totalPage-this.visiblePage+1+e));return s.concat(t)}return[1,"...",t,e,i,"...",this.totalPage]}return[...Array(this.totalPage)].map(((t,e)=>1+e))}pagesTemplate(t){return this.computePageList(t).map((t=>"..."===t?n.html` <li class="page-ellipsis">${t}</li> `:n.html`
555
+ `}static get styles(){return[o.A,l.A]}};h([(0,n.property)({type:String})],e.prototype,"htmlId",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"description",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"checked",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"smaller",void 0),h([(0,n.property)({type:String})],e.prototype,"alignLabel",void 0),h([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),e=h([(0,r.w)("md-toggle-switch")],e),t.ELEMENT=e}(c||(c={}))},20727:t=>{t.exports=E},22818:t=>{t.exports=p},22962:t=>{t.exports=c},23026:(t,e,i)=>{i.d(e,{Pagination:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(4392),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._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const e=this._currentPage;this._currentPage=t,this.notifyPageChange(e,t),this.requestUpdate("currentPage",e)}static get styles(){return[r.A,l.A]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,e){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:e}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,e,i]=[this.currentPage-1,this.currentPage,this.currentPage+1];let s=[];if(e<=this.visiblePage-1)return s=[...Array(this.visiblePage)].map(((t,e)=>1+e)),s.push("..."),s.push(this.totalPage),s;if(this.totalPage-e<=this.visiblePage-2){s=[],s.push(1),s.push("...");const t=[...Array(this.visiblePage)].map(((t,e)=>this.totalPage-this.visiblePage+1+e));return s.concat(t)}return[1,"...",t,e,i,"...",this.totalPage]}return[...Array(this.totalPage)].map(((t,e)=>1+e))}pagesTemplate(t){return this.computePageList(t).map((t=>"..."===t?n.html` <li class="page-ellipsis">${t}</li> `:n.html`
556
556
  <li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}>
557
557
  ${t}
558
558
  </li>
@@ -629,7 +629,7 @@
629
629
  </md-button>
630
630
  `}
631
631
  </nav>
632
- `}};d([(0,n.property)({type:Boolean,attribute:"dots"})],e.prototype,"hasDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],e.prototype,"onlyDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],e.prototype,"noNavigation",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"total-page"})],e.prototype,"totalPage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"visible-page"})],e.prototype,"visiblePage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"current-page"})],e.prototype,"currentPage",null),e=d([(0,o.w)("md-pagination")],e),t.ELEMENT=e}(s||(s={}))},23184:(t,e,i)=>{i.d(e,{Dropdown:()=>s}),i(61200);var s,o=i(90195),r=i(3001),n=i(66677),a=i(26272),l=i(41488),d=i(40333),h=i(17518),c=i(97822),p=i(22818),u=i(8229),m=i(70573),y=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},b=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){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.renderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new e,this.lastMaxHeight="",this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||this.expanded&&this.collapse())},this.onKeyDown=t=>{switch(t.code){case o.Uz.Tab:this.expanded&&(t.stopPropagation(),this.collapse());break;case o.Uz.Space:case o.Uz.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case o.Uz.ArrowDown:this.expanded?this.focusNext():this.expand();break;case o.Uz.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case o.Uz.Home:this.expanded?this.focusFirst():this.expand();break;case o.Uz.End:this.expanded?this.focusLast():this.expand();break;case o.Uz.Escape||o.Uz.Backspace:this.expanded&&(t.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,n.sg)((t=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),requestAnimationFrame((()=>{this.input.focus()}))}),250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){super.firstUpdated(t),t.forEach(((t,e)=>{if("defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}})),this.searchable&&this.setInitialValue()}updated(t){super.updated(t),t.forEach(((t,e)=>{if("options"===e&&this.updateRenderOptions(),"selectedKey"===e){const t=this.renderOptions.findIndex((t=>t.key===this.selectedKey));-1!==t&&(this.focusToIndex(t),this.searchable&&this.setInitialValue())}if("expanded"===e&&this.updateListDOM(),"focusedIndex"===e&&this.updateListDOM(),"defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}}))}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var t;if(this.options.length){const e=this.renderOptions.find((t=>t.key===this.selectedKey)),i=null==e?void 0:e.option;i&&(this.setInputValue(this.getOptionValue(i)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(this.getOptionValue(i)),this.requestUpdate())}}getOptionValue(t){return this.isOptionObject(t)&&!this.optionValue?Object.values(t)[0]:this.isOptionObject(t)?t[this.optionValue]:t}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}isOptionObject(t){return"object"==typeof t&&null!==t}updateRenderOptions(){const t=[];this.focusReset();const e=this.options.reduce(((e,i)=>{const{key:s,value:o}=this.getOptionKeyValuePair(i);return-1!==t.indexOf(s)?console.error(`Dropdown already have option key: "${s}". Ignoring `):s?(t.push(s),e.push({key:s,value:o,option:i})):console.error(`Dropdown key is not defined: "${s}". (value: "${o}"). Ignoring `),e}),[]);this.allowUnselected&&e.unshift({key:"",value:this.title}),this.renderOptions=e}updateListDOM(){return b(this,void 0,void 0,(function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))}))}resizeDropdownList(){return b(this,void 0,void 0,(function*(){yield new Promise((t=>requestAnimationFrame((()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const t=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)}px`;this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}else{const t="auto";this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}t()}))))}))}handleFocusIn(t){var e;this.disabled&&this.readOnly||null===(e=super.handleFocusIn)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[a.A,m.A]}get filteredOptions(){const t=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!t.trim())return this.renderOptions;const e=this.renderOptions.filter((e=>e.value.toLowerCase().includes(t.toLowerCase())));return 0===e.length?[{key:"no-result",value:"No Result",disabled:!0}]:e}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(t){this.expanded=t}updateOnNextFrame(t){requestAnimationFrame(t)}setInputValue(t=""){this.input.value=t}shouldChangeButton(){const t=this.input&&this.input.value.length>0;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-dropdown-input"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-dropdown-input");setTimeout((()=>{t.focus()}),10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus()}}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var t;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame((()=>{this.input.focus()})),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){this.expanded=!0;const t=-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";document.dispatchEvent(new CustomEvent("on-widget-update")),this.label.setAttribute("aria-activedescendant",t),this.optionsList&&this.optionsList.focus(),-1===this.focusedIndex&&this.focusNext()}collapse(){this.expanded=!1,this.searchable||this.label.setAttribute("aria-activedescendant","")}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const t=this.renderOptions[this.focusedIndex],e=t.key;e!==this.selectedKey&&(this.selectedKey=e,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:t.option?t.option:t.key}})))}}onLabelClick(){this.label.focus(),this.toggle()}focusFirst(){this.renderOptions.length&&(this.focusedIndex=0)}focusLast(){this.renderOptions.length&&(this.focusedIndex=this.renderOptions.length-1)}focusNext(){this.renderOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.renderOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.renderOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(t){this.renderOptions.length&&t>=0&&t<=this.renderOptions.length-1&&(this.focusedIndex=t)}focusToIndexWithOption(t){const e=this.renderOptions.findIndex((e=>e.key===t.key));this.renderOptions.length&&e>=0&&e<=this.renderOptions.length-1&&(this.focusedIndex=e)}focusReset(){this.focusedIndex=-1}scrollToIndex(t){return b(this,void 0,void 0,(function*(){yield new Promise((e=>{requestAnimationFrame((()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&t>=0&&this.optionsListItems.length>t){let e=0;const{top:i,bottom:s}=this.optionsList.getBoundingClientRect(),o=this.optionsListItems[t],r=this.optionsListItems[t+1]||o,n=this.optionsListItems[t-1]||o,a=r.getBoundingClientRect(),l=n.getBoundingClientRect();a.bottom>s?e=a.bottom-s+2:l.top<i&&(e=l.top-i-2),this.optionsList.scrollTop+=e}e()}))}))}))}getOptionKeyValuePair(t){if("string"==typeof t)return{key:t.trim(),value:t};if(t&&"object"==typeof t){const e=Object.keys(t),i=Object.values(t);if(e.length){if(1===e.length||!this.optionId)return{key:e[0],value:i[0]};if(this.optionId)return{key:t[this.optionId],value:t[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const t=this.renderOptions.find((t=>t.key===this.selectedKey));if(t)return t.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}helpTextTemplate(){return this.helpText?d.html`
632
+ `}};d([(0,n.property)({type:Boolean,attribute:"dots"})],e.prototype,"hasDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],e.prototype,"onlyDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],e.prototype,"noNavigation",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"total-page"})],e.prototype,"totalPage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"visible-page"})],e.prototype,"visiblePage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"current-page"})],e.prototype,"currentPage",null),e=d([(0,o.w)("md-pagination")],e),t.ELEMENT=e}(s||(s={}))},23184:(t,e,i)=>{i.d(e,{Dropdown:()=>s}),i(61200);var s,o=i(90195),r=i(3001),n=i(66677),a=i(26272),l=i(41488),d=i(40333),h=i(17518),p=i(97822),c=i(22818),u=i(8229),m=i(70573),y=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},b=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){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.renderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new e,this.lastMaxHeight="",this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||this.expanded&&this.collapse())},this.onKeyDown=t=>{switch(t.code){case o.Uz.Tab:this.expanded&&(t.stopPropagation(),this.collapse());break;case o.Uz.Space:case o.Uz.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case o.Uz.ArrowDown:this.expanded?this.focusNext():this.expand();break;case o.Uz.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case o.Uz.Home:this.expanded?this.focusFirst():this.expand();break;case o.Uz.End:this.expanded?this.focusLast():this.expand();break;case o.Uz.Escape||o.Uz.Backspace:this.expanded&&(t.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,n.sg)((t=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),requestAnimationFrame((()=>{this.input.focus()}))}),250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){super.firstUpdated(t),t.forEach(((t,e)=>{if("defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}})),this.searchable&&this.setInitialValue()}updated(t){super.updated(t),t.forEach(((t,e)=>{if("options"===e&&this.updateRenderOptions(),"selectedKey"===e){const t=this.renderOptions.findIndex((t=>t.key===this.selectedKey));-1!==t&&(this.focusToIndex(t),this.searchable&&this.setInitialValue())}if("expanded"===e&&this.updateListDOM(),"focusedIndex"===e&&this.updateListDOM(),"defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}}))}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var t;if(this.options.length){const e=this.renderOptions.find((t=>t.key===this.selectedKey)),i=null==e?void 0:e.option;i&&(this.setInputValue(this.getOptionValue(i)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(this.getOptionValue(i)),this.requestUpdate())}}getOptionValue(t){return this.isOptionObject(t)&&!this.optionValue?Object.values(t)[0]:this.isOptionObject(t)?t[this.optionValue]:t}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}isOptionObject(t){return"object"==typeof t&&null!==t}updateRenderOptions(){const t=[];this.focusReset();const e=this.options.reduce(((e,i)=>{const{key:s,value:o}=this.getOptionKeyValuePair(i);return-1!==t.indexOf(s)?console.error(`Dropdown already have option key: "${s}". Ignoring `):s?(t.push(s),e.push({key:s,value:o,option:i})):console.error(`Dropdown key is not defined: "${s}". (value: "${o}"). Ignoring `),e}),[]);this.allowUnselected&&e.unshift({key:"",value:this.title}),this.renderOptions=e}updateListDOM(){return b(this,void 0,void 0,(function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))}))}resizeDropdownList(){return b(this,void 0,void 0,(function*(){yield new Promise((t=>requestAnimationFrame((()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const t=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)}px`;this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}else{const t="auto";this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}t()}))))}))}handleFocusIn(t){var e;this.disabled&&this.readOnly||null===(e=super.handleFocusIn)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[a.A,m.A]}get filteredOptions(){const t=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!t.trim())return this.renderOptions;const e=this.renderOptions.filter((e=>e.value.toLowerCase().includes(t.toLowerCase())));return 0===e.length?[{key:"no-result",value:"No Result",disabled:!0}]:e}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(t){this.expanded=t}updateOnNextFrame(t){requestAnimationFrame(t)}setInputValue(t=""){this.input.value=t}shouldChangeButton(){const t=this.input&&this.input.value.length>0;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-dropdown-input"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-dropdown-input");setTimeout((()=>{t.focus()}),10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus()}}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var t;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame((()=>{this.input.focus()})),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){this.expanded=!0;const t=-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";document.dispatchEvent(new CustomEvent("on-widget-update")),this.label.setAttribute("aria-activedescendant",t),this.optionsList&&this.optionsList.focus(),-1===this.focusedIndex&&this.focusNext()}collapse(){this.expanded=!1,this.searchable||this.label.setAttribute("aria-activedescendant","")}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const t=this.renderOptions[this.focusedIndex],e=t.key;e!==this.selectedKey&&(this.selectedKey=e,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:t.option?t.option:t.key}})))}}onLabelClick(){this.label.focus(),this.toggle()}focusFirst(){this.renderOptions.length&&(this.focusedIndex=0)}focusLast(){this.renderOptions.length&&(this.focusedIndex=this.renderOptions.length-1)}focusNext(){this.renderOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.renderOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.renderOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(t){this.renderOptions.length&&t>=0&&t<=this.renderOptions.length-1&&(this.focusedIndex=t)}focusToIndexWithOption(t){const e=this.renderOptions.findIndex((e=>e.key===t.key));this.renderOptions.length&&e>=0&&e<=this.renderOptions.length-1&&(this.focusedIndex=e)}focusReset(){this.focusedIndex=-1}scrollToIndex(t){return b(this,void 0,void 0,(function*(){yield new Promise((e=>{requestAnimationFrame((()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&t>=0&&this.optionsListItems.length>t){let e=0;const{top:i,bottom:s}=this.optionsList.getBoundingClientRect(),o=this.optionsListItems[t],r=this.optionsListItems[t+1]||o,n=this.optionsListItems[t-1]||o,a=r.getBoundingClientRect(),l=n.getBoundingClientRect();a.bottom>s?e=a.bottom-s+2:l.top<i&&(e=l.top-i-2),this.optionsList.scrollTop+=e}e()}))}))}))}getOptionKeyValuePair(t){if("string"==typeof t)return{key:t.trim(),value:t};if(t&&"object"==typeof t){const e=Object.keys(t),i=Object.values(t);if(e.length){if(1===e.length||!this.optionId)return{key:e[0],value:i[0]};if(this.optionId)return{key:t[this.optionId],value:t[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const t=this.renderOptions.find((t=>t.key===this.selectedKey));if(t)return t.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}helpTextTemplate(){return this.helpText?d.html`
633
633
  <md-help-text
634
634
  class="help-text ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
635
635
  .message=${this.helpText}
@@ -637,7 +637,7 @@
637
637
  ></md-help-text>
638
638
  `:d.nothing}messagesTemplate(){return this.messages&&this.messages.length?d.html`
639
639
  <div id="${this.htmlId}-message" part="message" class="md-dropbox__messages">
640
- ${(0,p.repeat)(this.messages,((t,e)=>d.html`
640
+ ${(0,c.repeat)(this.messages,((t,e)=>d.html`
641
641
  <md-help-text
642
642
  .message=${t}
643
643
  .id=${this.messageArr[e].id||""}
@@ -678,10 +678,10 @@
678
678
  type="button"
679
679
  class="md-dropdown-button arrow-down"
680
680
  aria-expanded=${this.expanded}
681
- aria-label=${(0,c.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
681
+ aria-label=${(0,p.ifDefined)("true"===this.popupChevronAriaHidden?void 0:this.arrowAriaLabel)}
682
682
  aria-controls="md-dropdown-input"
683
683
  tabindex="-1"
684
- aria-hidden=${(0,c.ifDefined)("true"===this.popupChevronAriaHidden?"true":void 0)}
684
+ aria-hidden=${(0,p.ifDefined)("true"===this.popupChevronAriaHidden?"true":void 0)}
685
685
  ?readonly=${this.readOnly}
686
686
  ?disabled=${this.disabled}
687
687
  @click=${this.toggleVisualListBox}
@@ -745,14 +745,14 @@
745
745
  aria-label="${this.labelTitle}"
746
746
  aria-hidden="${!this.expanded}"
747
747
  part="dropdown-options"
748
- tabindex=${(0,c.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
748
+ tabindex=${(0,p.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
749
749
  >
750
750
  ${this.filteredOptions.map(((t,e)=>d.html`
751
751
  <li
752
752
  id="combo-${e}"
753
753
  class="md-dropdown-option"
754
754
  role="option"
755
- tabindex=${(0,c.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
755
+ tabindex=${(0,p.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
756
756
  aria-label="${t.value}"
757
757
  label="${t.value}"
758
758
  aria-selected="${t.key===this.selectedKey}"
@@ -769,7 +769,7 @@
769
769
  </ul>
770
770
  </div>
771
771
  ${this.messagesTemplate()} ${this.helpTextTemplate()}
772
- `}};y([(0,l.property)({type:String,attribute:"title"})],i.prototype,"title",void 0),y([(0,l.property)({type:Array})],i.prototype,"options",void 0),y([(0,l.property)({type:String,attribute:"option-id"})],i.prototype,"optionId",void 0),y([(0,l.property)({type:String,attribute:"option-value"})],i.prototype,"optionValue",void 0),y([(0,l.property)({type:Object})],i.prototype,"defaultOption",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),y([(0,l.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],i.prototype,"customTabIndex",void 0),y([(0,l.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],i.prototype,"allowUnselected",void 0),y([(0,l.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),y([(0,l.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String,attribute:"left-icon",reflect:!0})],i.prototype,"leftIcon",void 0),y([(0,l.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),y([(0,l.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"pill",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),y([(0,l.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),y([(0,l.internalProperty)()],i.prototype,"ariaLabelForDropdown",void 0),y([(0,l.internalProperty)()],i.prototype,"renderOptions",void 0),y([(0,l.internalProperty)()],i.prototype,"selectedKey",void 0),y([(0,l.internalProperty)()],i.prototype,"expanded",void 0),y([(0,l.internalProperty)()],i.prototype,"focusedIndex",void 0),y([(0,l.query)("label")],i.prototype,"label",void 0),y([(0,l.query)(".md-dropdown-input")],i.prototype,"input",void 0),y([(0,l.query)("ul.md-dropdown-list")],i.prototype,"optionsList",void 0),y([(0,l.queryAll)("li.md-dropdown-option")],i.prototype,"optionsListItems",void 0),i=y([(0,r.wW)("md-dropdown")],i),t.ELEMENT=i}(s||(s={}))},23779:(t,e,i)=>{i.d(e,{AudioPlayer:()=>u}),i(96798),i(61200),i(83192);var s=i(90195),o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(92984),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};const c=[{value:.25,label:"0.25"},{value:.5,label:"0.50"},{value:.75,label:"0.75"},{value:1,label:"Normal"},{value:1.25,label:"1.25"},{value:1.5,label:"1.50"},{value:1.75,label:"1.75"},{value:2,label:"2"}],p={playBtn:{ariaLabel:"Play",tooltipText:"Play"},pauseBtn:{ariaLabel:"Pause",tooltipText:"Pause"},duration:{ariaLabel:"Duration:",tooltipText:"Duration"},timeline:{ariaLabel:"Audio Seekbar",tooltipText:"Audio Seekbar"},volumeBtn:{ariaLabel:"Mute / Unmute Audio",tooltipText:"Mute / Unmute"},volumeSlider:{ariaLabel:"Volume level",tooltipText:"Volume level"},playbackSpeedBtn:{ariaLabel:"Playback speed",tooltipText:"Playback speed"}};var u;!function(t){let e=class extends n.LitElement{constructor(){super(),this.src="",this.events=[],this.isPlaying=!1,this.isMuted=!1,this.duration=0,this.volume=100,this.currentTime=0,this.showSpeedPopup=!1,this.playbackSpeed=1,this.volumeExpanded=!1,this.bufferedRange=0,this.selectedPlaybackSpeed=this.playbackSpeed,this.currentlySelectingPlaybackSpeed=!1,this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>"speed-btn"===t.id)),e||(this.showSpeedPopup=!1))},this.handleKeyDown=t=>{const{code:e}=t;switch(e){case s.Uz.ArrowLeft:this.volumeExpanded?this.setVolumeKeydown(this.volume-.01):this.setTimeKeydown(this.currentTime-1);break;case s.Uz.ArrowRight:this.volumeExpanded?this.setVolumeKeydown(this.volume+.01):this.setTimeKeydown(this.currentTime+1);break;case s.Uz.ArrowUp:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=c.findIndex((t=>t.value===this.selectedPlaybackSpeed)),i=Math.max(0,e-1);this.selectedPlaybackSpeed=c[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case s.Uz.ArrowDown:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=c.findIndex((t=>t.value===this.selectedPlaybackSpeed)),i=Math.min(c.length-1,e+1);this.selectedPlaybackSpeed=c[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case s.Uz.Enter:this.showSpeedPopup&&(this.setPlaybackSpeed(this.selectedPlaybackSpeed),t.preventDefault())}},this.audio=new Audio,this.setAudioEventListeners(),this.labelMap=p}firstUpdated(t){super.firstUpdated(t),t.has("src")&&(this.audio.src=this.src)}updated(t){super.updated(t),t.has("src")&&(this.audio.src=this.src)}connectedCallback(){super.connectedCallback(),this.requestUpdate("src"),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.handleKeyDown),this.audio.pause(),this.isPlaying=!1}setAudioEventListeners(){this.audio.onloadeddata=()=>{this.duration=this.audio.duration,this.audio.volume=.75},this.audio.onerror=()=>{this.audio.src&&this.dispatchEvent(new CustomEvent("playback-error",{composed:!0,bubbles:!0}))},this.audio.onended=()=>{this.audio.currentTime=0,this.isPlaying=!1},this.audio.ontimeupdate=()=>{this.currentTime=this.audio.currentTime},this.audio.onvolumechange=()=>{this.volume=this.audio.volume},this.audio.onprogress=()=>{this.audio.buffered.length>0&&(this.bufferedRange=this.audio.buffered.end(this.audio.buffered.length-1))}}togglePlay(){this.isPlaying=!this.isPlaying,this.isPlaying?(this.audio.play(),this.dispatchEvent(new CustomEvent("play-clicked",{composed:!0,bubbles:!0}))):this.audio.pause()}toTimecode(t){const e=Math.floor(t);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}setTime(t){const e=this.getBarPercentage(t,"timeline"),i=Math.floor(e*this.duration);this.audio.currentTime=i}setVolumeElement(t){this.volumeElement="volume"===t.target.className?t.target:t.target.parentElement}handleVolumeChange(t){let e=!1;this.setVolumeElement(t),this.setVolume(t);const i=t=>{e||(e=!0),this.volumeExpanded?this.setVolume(t):o()},s=()=>{o()},o=()=>{e=!1,window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",s)};window.addEventListener("mousemove",i),window.addEventListener("mouseup",s),t.preventDefault()}getVolumeFromSlider(t){if(null===this.volumeElement)return 0;const e=this.volumeElement.getBoundingClientRect(),i=t.clientX-e.x;return Math.max(0,Math.min(1,i/e.width))}setVolume(t){const e=this.getVolumeFromSlider(t);this.audio.volume=e}getBarPercentage(t,e){const i=(t.target.className===e?t.target:t.target.parentElement).getBoundingClientRect();return(t.clientX-i.x)/i.width}toggleSoundMute(){this.isMuted=!this.isMuted,this.audio.muted=this.isMuted}toggleSpeedPopup(){this.showSpeedPopup=!this.showSpeedPopup}setTimeKeydown(t){t>this.duration?(this.currentTime=this.duration,this.audio.currentTime=this.duration):t<0?(this.currentTime=0,this.audio.currentTime=0):(this.currentTime=t,this.audio.currentTime=t)}setVolumeKeydown(t){t>1?(this.volume=1,this.audio.volume=1):t<0?(this.isMuted||this.toggleSoundMute(),this.volume=0,this.audio.volume=0):(this.isMuted&&this.toggleSoundMute(),this.volume=t,this.audio.volume=t)}get popupClassMap(){return{"popup-open":this.showSpeedPopup}}setPlaybackSpeed(t){this.playbackSpeed=t,this.selectedPlaybackSpeed=t,this.audio.playbackRate=this.playbackSpeed,this.showSpeedPopup=!1}toggleVolumeExpand(t){this.volumeExpanded=t}static get styles(){return[r.A,d.A]}render(){return n.html`
772
+ `}};y([(0,l.property)({type:String,attribute:"title"})],i.prototype,"title",void 0),y([(0,l.property)({type:Array})],i.prototype,"options",void 0),y([(0,l.property)({type:String,attribute:"option-id"})],i.prototype,"optionId",void 0),y([(0,l.property)({type:String,attribute:"option-value"})],i.prototype,"optionValue",void 0),y([(0,l.property)({type:Object})],i.prototype,"defaultOption",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),y([(0,l.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],i.prototype,"customTabIndex",void 0),y([(0,l.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],i.prototype,"allowUnselected",void 0),y([(0,l.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),y([(0,l.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String,attribute:"left-icon",reflect:!0})],i.prototype,"leftIcon",void 0),y([(0,l.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),y([(0,l.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"pill",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),y([(0,l.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),y([(0,l.internalProperty)()],i.prototype,"ariaLabelForDropdown",void 0),y([(0,l.internalProperty)()],i.prototype,"renderOptions",void 0),y([(0,l.internalProperty)()],i.prototype,"selectedKey",void 0),y([(0,l.internalProperty)()],i.prototype,"expanded",void 0),y([(0,l.internalProperty)()],i.prototype,"focusedIndex",void 0),y([(0,l.query)("label")],i.prototype,"label",void 0),y([(0,l.query)(".md-dropdown-input")],i.prototype,"input",void 0),y([(0,l.query)("ul.md-dropdown-list")],i.prototype,"optionsList",void 0),y([(0,l.queryAll)("li.md-dropdown-option")],i.prototype,"optionsListItems",void 0),i=y([(0,r.wW)("md-dropdown")],i),t.ELEMENT=i}(s||(s={}))},23779:(t,e,i)=>{i.d(e,{AudioPlayer:()=>u}),i(96798),i(61200),i(83192);var s=i(90195),o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(92984),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};const p=[{value:.25,label:"0.25"},{value:.5,label:"0.50"},{value:.75,label:"0.75"},{value:1,label:"Normal"},{value:1.25,label:"1.25"},{value:1.5,label:"1.50"},{value:1.75,label:"1.75"},{value:2,label:"2"}],c={playBtn:{ariaLabel:"Play",tooltipText:"Play"},pauseBtn:{ariaLabel:"Pause",tooltipText:"Pause"},duration:{ariaLabel:"Duration:",tooltipText:"Duration"},timeline:{ariaLabel:"Audio Seekbar",tooltipText:"Audio Seekbar"},volumeBtn:{ariaLabel:"Mute / Unmute Audio",tooltipText:"Mute / Unmute"},volumeSlider:{ariaLabel:"Volume level",tooltipText:"Volume level"},playbackSpeedBtn:{ariaLabel:"Playback speed",tooltipText:"Playback speed"}};var u;!function(t){let e=class extends n.LitElement{constructor(){super(),this.src="",this.events=[],this.isPlaying=!1,this.isMuted=!1,this.duration=0,this.volume=100,this.currentTime=0,this.showSpeedPopup=!1,this.playbackSpeed=1,this.volumeExpanded=!1,this.bufferedRange=0,this.selectedPlaybackSpeed=this.playbackSpeed,this.currentlySelectingPlaybackSpeed=!1,this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>"speed-btn"===t.id)),e||(this.showSpeedPopup=!1))},this.handleKeyDown=t=>{const{code:e}=t;switch(e){case s.Uz.ArrowLeft:this.volumeExpanded?this.setVolumeKeydown(this.volume-.01):this.setTimeKeydown(this.currentTime-1);break;case s.Uz.ArrowRight:this.volumeExpanded?this.setVolumeKeydown(this.volume+.01):this.setTimeKeydown(this.currentTime+1);break;case s.Uz.ArrowUp:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=p.findIndex((t=>t.value===this.selectedPlaybackSpeed)),i=Math.max(0,e-1);this.selectedPlaybackSpeed=p[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case s.Uz.ArrowDown:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=p.findIndex((t=>t.value===this.selectedPlaybackSpeed)),i=Math.min(p.length-1,e+1);this.selectedPlaybackSpeed=p[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case s.Uz.Enter:this.showSpeedPopup&&(this.setPlaybackSpeed(this.selectedPlaybackSpeed),t.preventDefault())}},this.audio=new Audio,this.setAudioEventListeners(),this.labelMap=c}firstUpdated(t){super.firstUpdated(t),t.has("src")&&(this.audio.src=this.src)}updated(t){super.updated(t),t.has("src")&&(this.audio.src=this.src)}connectedCallback(){super.connectedCallback(),this.requestUpdate("src"),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.handleKeyDown),this.audio.pause(),this.isPlaying=!1}setAudioEventListeners(){this.audio.onloadeddata=()=>{this.duration=this.audio.duration,this.audio.volume=.75},this.audio.onerror=()=>{this.audio.src&&this.dispatchEvent(new CustomEvent("playback-error",{composed:!0,bubbles:!0}))},this.audio.onended=()=>{this.audio.currentTime=0,this.isPlaying=!1},this.audio.ontimeupdate=()=>{this.currentTime=this.audio.currentTime},this.audio.onvolumechange=()=>{this.volume=this.audio.volume},this.audio.onprogress=()=>{this.audio.buffered.length>0&&(this.bufferedRange=this.audio.buffered.end(this.audio.buffered.length-1))}}togglePlay(){this.isPlaying=!this.isPlaying,this.isPlaying?(this.audio.play(),this.dispatchEvent(new CustomEvent("play-clicked",{composed:!0,bubbles:!0}))):this.audio.pause()}toTimecode(t){const e=Math.floor(t);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}setTime(t){const e=this.getBarPercentage(t,"timeline"),i=Math.floor(e*this.duration);this.audio.currentTime=i}setVolumeElement(t){this.volumeElement="volume"===t.target.className?t.target:t.target.parentElement}handleVolumeChange(t){let e=!1;this.setVolumeElement(t),this.setVolume(t);const i=t=>{e||(e=!0),this.volumeExpanded?this.setVolume(t):o()},s=()=>{o()},o=()=>{e=!1,window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",s)};window.addEventListener("mousemove",i),window.addEventListener("mouseup",s),t.preventDefault()}getVolumeFromSlider(t){if(null===this.volumeElement)return 0;const e=this.volumeElement.getBoundingClientRect(),i=t.clientX-e.x;return Math.max(0,Math.min(1,i/e.width))}setVolume(t){const e=this.getVolumeFromSlider(t);this.audio.volume=e}getBarPercentage(t,e){const i=(t.target.className===e?t.target:t.target.parentElement).getBoundingClientRect();return(t.clientX-i.x)/i.width}toggleSoundMute(){this.isMuted=!this.isMuted,this.audio.muted=this.isMuted}toggleSpeedPopup(){this.showSpeedPopup=!this.showSpeedPopup}setTimeKeydown(t){t>this.duration?(this.currentTime=this.duration,this.audio.currentTime=this.duration):t<0?(this.currentTime=0,this.audio.currentTime=0):(this.currentTime=t,this.audio.currentTime=t)}setVolumeKeydown(t){t>1?(this.volume=1,this.audio.volume=1):t<0?(this.isMuted||this.toggleSoundMute(),this.volume=0,this.audio.volume=0):(this.isMuted&&this.toggleSoundMute(),this.volume=t,this.audio.volume=t)}get popupClassMap(){return{"popup-open":this.showSpeedPopup}}setPlaybackSpeed(t){this.playbackSpeed=t,this.selectedPlaybackSpeed=t,this.audio.playbackRate=this.playbackSpeed,this.showSpeedPopup=!1}toggleVolumeExpand(t){this.volumeExpanded=t}static get styles(){return[r.A,d.A]}render(){return n.html`
773
773
  <div class="md-audio-player">
774
774
  <div class="inner-container">
775
775
  <div class="play-container">
@@ -844,7 +844,7 @@
844
844
  </md-tooltip>
845
845
  <div class="speed-popup ${(0,l.classMap)(this.popupClassMap)}">
846
846
  <ul id="speed-popup-menu">
847
- ${c.map((t=>{const e=this.selectedPlaybackSpeed==t.value&&!this.currentlySelectingPlaybackSpeed;return n.html`
847
+ ${p.map((t=>{const e=this.selectedPlaybackSpeed==t.value&&!this.currentlySelectingPlaybackSpeed;return n.html`
848
848
  <li
849
849
  class=${e?"speed-popup-selected-speed":""}
850
850
  @click="${()=>this.setPlaybackSpeed(t.value)}"
@@ -866,7 +866,7 @@
866
866
  </div>
867
867
  </div>
868
868
  </div>
869
- `}};h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:Object})],e.prototype,"labelMap",void 0),h([(0,n.internalProperty)()],e.prototype,"events",void 0),h([(0,n.internalProperty)()],e.prototype,"audio",void 0),h([(0,n.internalProperty)()],e.prototype,"volumeElement",void 0),h([(0,n.internalProperty)()],e.prototype,"isPlaying",void 0),h([(0,n.internalProperty)()],e.prototype,"isMuted",void 0),h([(0,n.internalProperty)()],e.prototype,"duration",void 0),h([(0,n.internalProperty)()],e.prototype,"volume",void 0),h([(0,n.internalProperty)()],e.prototype,"currentTime",void 0),h([(0,n.internalProperty)()],e.prototype,"showSpeedPopup",void 0),h([(0,n.internalProperty)()],e.prototype,"playbackSpeed",void 0),h([(0,n.internalProperty)()],e.prototype,"volumeExpanded",void 0),h([(0,n.internalProperty)()],e.prototype,"bufferedRange",void 0),h([(0,n.internalProperty)()],e.prototype,"selectedPlaybackSpeed",void 0),h([(0,n.internalProperty)()],e.prototype,"currentlySelectingPlaybackSpeed",void 0),e=h([(0,o.w)("md-audio-player")],e),t.ELEMENT=e}(u||(u={}))},23968:t=>{t.exports=s},24627:(t,e,i)=>{i.d(e,{DraggableItem:()=>s});var s,o=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(6979),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};!function(t){let e=class extends((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.extended=!1,this.editable=!1}static get styles(){return[n.A,h.A]}get draggableItemClassMap(){return{extended:this.extended,default:!this.extended,disabled:this.disabled}}render(){return a.html`
869
+ `}};h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:Object})],e.prototype,"labelMap",void 0),h([(0,n.internalProperty)()],e.prototype,"events",void 0),h([(0,n.internalProperty)()],e.prototype,"audio",void 0),h([(0,n.internalProperty)()],e.prototype,"volumeElement",void 0),h([(0,n.internalProperty)()],e.prototype,"isPlaying",void 0),h([(0,n.internalProperty)()],e.prototype,"isMuted",void 0),h([(0,n.internalProperty)()],e.prototype,"duration",void 0),h([(0,n.internalProperty)()],e.prototype,"volume",void 0),h([(0,n.internalProperty)()],e.prototype,"currentTime",void 0),h([(0,n.internalProperty)()],e.prototype,"showSpeedPopup",void 0),h([(0,n.internalProperty)()],e.prototype,"playbackSpeed",void 0),h([(0,n.internalProperty)()],e.prototype,"volumeExpanded",void 0),h([(0,n.internalProperty)()],e.prototype,"bufferedRange",void 0),h([(0,n.internalProperty)()],e.prototype,"selectedPlaybackSpeed",void 0),h([(0,n.internalProperty)()],e.prototype,"currentlySelectingPlaybackSpeed",void 0),e=h([(0,o.w)("md-audio-player")],e),t.ELEMENT=e}(u||(u={}))},23968:t=>{t.exports=s},24627:(t,e,i)=>{i.d(e,{DraggableItem:()=>s});var s,o=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(6979),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};!function(t){let e=class extends((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.extended=!1,this.editable=!1}static get styles(){return[n.A,h.A]}get draggableItemClassMap(){return{extended:this.extended,default:!this.extended,disabled:this.disabled}}render(){return a.html`
870
870
  <div
871
871
  class="md-draggable-item ${(0,d.classMap)(this.draggableItemClassMap)}"
872
872
  part="draggable-item"
@@ -876,12 +876,12 @@
876
876
  <slot></slot>
877
877
  ${this.extended?a.html` <slot name="extended"></slot> `:l.nothing}
878
878
  </div>
879
- `}};c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"extended",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),e=c([(0,r.w)("md-draggable-item")],e),t.ELEMENT=e}(s||(s={}))},25428:(t,e,i)=>{i.d(e,{Slider:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(40333),h=i(97822),c=i(22818),p=i(8229),u=i(61869),m=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,r.yC)(l.LitElement)){constructor(){super(...arguments),this._disabled=!1,this._now=0,this.min=0,this.max=100,this.hideValue=!1,this.text=0,this.label="slider",this.step=0,this.dragging=!1}get now(){return this._now}set now(t){const e=this._now;t<this.min||t>this.max?console.warn("Please select correct value"):(this._now=Math.round(t),this.requestUpdate("now",e))}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get pointerPosition(){const t=this.max-this.min;return(this.now-this.min)/t*100}calculateHandlePosition(t){const{width:e,left:i}=this.getBoundingClientRect(),{clientX:s}=t,o=(s-i)/e;return this.min+(this.max-this.min)*o}moveSliderTo(t){this.disabled||(t>this.max?this.now=this.max:t<this.min?this.now=this.min:this.now=t)}trackMouseEvent(){if(!this.currentMouseEvent||!this.dragging)return;const t=this.calculateHandlePosition(this.currentMouseEvent),e=this.now;this.moveSliderTo(t),this.notifyChanging(e,this.now),requestAnimationFrame((()=>{this.trackMouseEvent()}))}ticksTemplate(){const{min:t,max:e,step:i}=this,s=Math.round((e-t)/i),o=new Array(s+1).fill(0,0,s+1).map(((e,s)=>t+s*i)).filter((i=>i>=t&&i<=e));return l.html`
880
- <div class="md-slider__hashlabel">${(0,c.repeat)(o,(t=>l.html` <div class="tick">${t}</div> `))}</div>
879
+ `}};p([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"extended",void 0),p([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),e=p([(0,r.w)("md-draggable-item")],e),t.ELEMENT=e}(s||(s={}))},25428:(t,e,i)=>{i.d(e,{Slider:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(40333),h=i(97822),p=i(22818),c=i(8229),u=i(61869),m=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,r.yC)(l.LitElement)){constructor(){super(...arguments),this._disabled=!1,this._now=0,this.min=0,this.max=100,this.hideValue=!1,this.text=0,this.label="slider",this.step=0,this.dragging=!1}get now(){return this._now}set now(t){const e=this._now;t<this.min||t>this.max?console.warn("Please select correct value"):(this._now=Math.round(t),this.requestUpdate("now",e))}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get pointerPosition(){const t=this.max-this.min;return(this.now-this.min)/t*100}calculateHandlePosition(t){const{width:e,left:i}=this.getBoundingClientRect(),{clientX:s}=t,o=(s-i)/e;return this.min+(this.max-this.min)*o}moveSliderTo(t){this.disabled||(t>this.max?this.now=this.max:t<this.min?this.now=this.min:this.now=t)}trackMouseEvent(){if(!this.currentMouseEvent||!this.dragging)return;const t=this.calculateHandlePosition(this.currentMouseEvent),e=this.now;this.moveSliderTo(t),this.notifyChanging(e,this.now),requestAnimationFrame((()=>{this.trackMouseEvent()}))}ticksTemplate(){const{min:t,max:e,step:i}=this,s=Math.round((e-t)/i),o=new Array(s+1).fill(0,0,s+1).map(((e,s)=>t+s*i)).filter((i=>i>=t&&i<=e));return l.html`
880
+ <div class="md-slider__hashlabel">${(0,p.repeat)(o,(t=>l.html` <div class="tick">${t}</div> `))}</div>
881
881
  `}displayValueTemplate(){return l.html` <span class="md-slider__value"> ${this.now} </span> `}notifyChanges(){this.dispatchEvent(new CustomEvent("slider-change",{bubbles:!0,composed:!0,detail:{value:this.now}}))}notifyChanging(t,e){t!==e&&this.dispatchEvent(new CustomEvent("slider-changing",{bubbles:!0,composed:!0,detail:{oldValue:t,newValue:e}}))}handleMouseDown(t){if(t.preventDefault(),this.disabled)return;const e=t=>{this.currentMouseEvent=t},i=t=>{this.focus(),this.currentMouseEvent=t,document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",i),requestAnimationFrame((()=>{this.dragging=!1,this.notifyChanges()}))};document.addEventListener("mousemove",e),document.addEventListener("mouseup",i),this.focus(),this.dragging=!0,this.currentMouseEvent=t,requestAnimationFrame((()=>{this.trackMouseEvent()}))}handleKeyDown(t){const{code:e}=t,i=this.now;switch(e){case o.Uz.ArrowLeft:case o.Uz.ArrowDown:this.moveSliderTo(this.now-1);break;case o.Uz.ArrowRight:case o.Uz.ArrowUp:this.moveSliderTo(this.now+1);break;case o.Uz.Home:this.moveSliderTo(this.min);break;case o.Uz.End:this.moveSliderTo(this.max)}this.notifyChanging(i,this.now);const s=()=>{document.removeEventListener("keyup",s),this.notifyChanges()};document.addEventListener("keyup",s)}get sliderPointerStyleMap(){return{left:`${this.pointerPosition}%`}}get sliderSelectionStyleMap(){return{right:`calc(100% - ${this.pointerPosition}%)`}}static get styles(){return[a.A,u.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("tabindex",this.disabled?"-1":"0")}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mousedown",this.handleMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mousedown",this.handleMouseDown)}render(){return l.html`
882
882
  <div class="md-slider">
883
883
  <span class="md-slider__bar"></span>
884
- <span class="md-slider__selection" style=${(0,p.styleMap)(this.sliderSelectionStyleMap)}></span>
884
+ <span class="md-slider__selection" style=${(0,c.styleMap)(this.sliderSelectionStyleMap)}></span>
885
885
  <span
886
886
  class="md-slider__pointer"
887
887
  role="slider"
@@ -890,11 +890,11 @@
890
890
  aria-valuemax=${this.max}
891
891
  aria-valuenow=${this.now}
892
892
  aria-label=${(0,h.ifDefined)(this.label)}
893
- style=${(0,p.styleMap)(this.sliderPointerStyleMap)}
893
+ style=${(0,c.styleMap)(this.sliderPointerStyleMap)}
894
894
  ></span>
895
895
  ${this.step?this.ticksTemplate():d.nothing} ${this.hideValue?d.nothing:this.displayValueTemplate()}
896
896
  </div>
897
- `}};m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,l.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,l.property)({type:Number})],e.prototype,"text",void 0),m([(0,l.property)({type:String})],e.prototype,"label",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,l.internalProperty)()],e.prototype,"dragging",void 0),e=m([(0,n.w)("md-slider")],e),t.ELEMENT=e}(s||(s={}))},28187:t=>{t.exports=M},28307:(t,e,i)=>{i.d(e,{AdvanceList:()=>s});var s,o=i(90195),r=i(31890),n=i(32972),a=i(26272),l=i(41488),d=i(86635),h=i(61705),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};!function(t){t.prefixId="item-";let e=class extends((0,n.y)(l.LitElement)){constructor(){super(...arguments),this.items=[],this.isLoading=!1,this.isMulti=!1,this.groupOnMultiSelect=!1,this.value=[],this.ariaRoleList="listbox",this.ariaRoleListItem="option",this.ariaLabelList="",this.isError=!1,this.containerHeight="292px",this.lastSelectedIdByOrder="",this.selectAllItems=!1,this.focusReset=!1,this.disabledItems=[],this.totalRecords=0,this.isNonSelectable=!1,this.scrollIndex=-1,this.activeId="",this.selectedItemsIds=[],this.isUserNavigated=!1,this.handleKeyDown=e=>{var i;const{ArrowDown:s,ArrowUp:r,Tab:n,Space:a,Enter:l}=o.Uz,{code:d}=e,h=d===s,c=d===r,p=d===n,u=d===a,m=d===l;if(h||c){if(e.preventDefault(),this.isUserNavigated=!0,""===this.activeId&&this.value.length>0&&""!==this.value[0])return void(this.activeId=this.value[0]);if(""===this.activeId&&!c&&this.items.length>0)return void(this.activeId=this.items[0].id);const t=this.items.findIndex((t=>t.id===this.activeId));h?t<this.items.length-1&&!this.isNextElemenentStatusIndicator(t)&&(this.scrollIndex=t+1,this.activeId=this.items[this.scrollIndex].id):t>0&&(this.scrollIndex=t-1,this.activeId=this.items[this.scrollIndex].id)}else if(p)""===this.activeId&&this.value.length>0&&(this.activeId=this.value[0]);else if((u||m)&&(e.preventDefault(),this.activeId)){const e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`#${t.prefixId}${this.activeId}`);e&&("true"===e.getAttribute("aria-disabled")||e.hasAttribute("disabled")||this.updateItemSelection(e))}},this.handleRangeChange=t=>{const{last:e}=t;this.updateSelectedState(),this.items.length<this.totalRecords&&e>=this.items.length-1&&!this.isLoading&&!this.isError&&this.dispatchEvent(new CustomEvent("load-more",{bubbles:!0,composed:!0})),this.isUserNavigated=!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick)}static get styles(){return[a.A,h.A]}getStyles(){return l.html`
897
+ `}};m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,l.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,l.property)({type:Number})],e.prototype,"text",void 0),m([(0,l.property)({type:String})],e.prototype,"label",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,l.internalProperty)()],e.prototype,"dragging",void 0),e=m([(0,n.w)("md-slider")],e),t.ELEMENT=e}(s||(s={}))},28187:t=>{t.exports=M},28307:(t,e,i)=>{i.d(e,{AdvanceList:()=>s});var s,o=i(90195),r=i(31890),n=i(32972),a=i(26272),l=i(41488),d=i(86635),h=i(61705),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};!function(t){t.prefixId="item-";let e=class extends((0,n.y)(l.LitElement)){constructor(){super(...arguments),this.items=[],this.isLoading=!1,this.isMulti=!1,this.groupOnMultiSelect=!1,this.value=[],this.ariaRoleList="listbox",this.ariaRoleListItem="option",this.ariaLabelList="",this.isError=!1,this.containerHeight="292px",this.lastSelectedIdByOrder="",this.selectAllItems=!1,this.focusReset=!1,this.disabledItems=[],this.totalRecords=0,this.isNonSelectable=!1,this.scrollIndex=-1,this.activeId="",this.selectedItemsIds=[],this.isUserNavigated=!1,this.handleKeyDown=e=>{var i;const{ArrowDown:s,ArrowUp:r,Tab:n,Space:a,Enter:l}=o.Uz,{code:d}=e,h=d===s,p=d===r,c=d===n,u=d===a,m=d===l;if(h||p){if(e.preventDefault(),this.isUserNavigated=!0,""===this.activeId&&this.value.length>0&&""!==this.value[0])return void(this.activeId=this.value[0]);if(""===this.activeId&&!p&&this.items.length>0)return void(this.activeId=this.items[0].id);const t=this.items.findIndex((t=>t.id===this.activeId));h?t<this.items.length-1&&!this.isNextElemenentStatusIndicator(t)&&(this.scrollIndex=t+1,this.activeId=this.items[this.scrollIndex].id):t>0&&(this.scrollIndex=t-1,this.activeId=this.items[this.scrollIndex].id)}else if(c)""===this.activeId&&this.value.length>0&&(this.activeId=this.value[0]);else if((u||m)&&(e.preventDefault(),this.activeId)){const e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`#${t.prefixId}${this.activeId}`);e&&("true"===e.getAttribute("aria-disabled")||e.hasAttribute("disabled")||this.updateItemSelection(e))}},this.handleRangeChange=t=>{const{last:e}=t;this.updateSelectedState(),this.items.length<this.totalRecords&&e>=this.items.length-1&&!this.isLoading&&!this.isError&&this.dispatchEvent(new CustomEvent("load-more",{bubbles:!0,composed:!0})),this.isUserNavigated=!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick)}static get styles(){return[a.A,h.A]}getStyles(){return l.html`
898
898
  <style>
899
899
  :host .virtual-scroll {
900
900
  height: ${this.containerHeight};
@@ -928,7 +928,7 @@
928
928
  >
929
929
  ${(0,d.scroll)({items:this.items,renderItem:(t,e)=>this.renderItem(t,e||0),useShadowDOM:!0,scrollToIndex:this.isUserNavigated?{index:this.scrollIndex,position:0===this.scrollIndex?"start":"center"}:void 0})}
930
930
  </div>
931
- `}};c([(0,l.property)({type:Array})],e.prototype,"items",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"isLoading",void 0),c([(0,l.property)({type:Boolean,attribute:"is-multi"})],e.prototype,"isMulti",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"groupOnMultiSelect",void 0),c([(0,l.property)({type:Array})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"ariaRoleList",void 0),c([(0,l.property)({type:String})],e.prototype,"ariaRoleListItem",void 0),c([(0,l.property)({type:String})],e.prototype,"ariaLabelList",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"isError",void 0),c([(0,l.property)({type:String})],e.prototype,"containerHeight",void 0),c([(0,l.property)({type:String})],e.prototype,"lastSelectedIdByOrder",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"selectAllItems",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"focusReset",void 0),c([(0,l.property)({type:Array})],e.prototype,"disabledItems",void 0),c([(0,l.property)({type:Number})],e.prototype,"totalRecords",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"isNonSelectable",void 0),c([(0,l.queryAll)("div.default-wrapper")],e.prototype,"lists",void 0),c([(0,l.query)(".virtual-scroll")],e.prototype,"listContainer",void 0),c([(0,l.internalProperty)()],e.prototype,"scrollIndex",void 0),c([(0,l.internalProperty)()],e.prototype,"activeId",void 0),c([(0,l.internalProperty)()],e.prototype,"selectedItemsIds",void 0),c([(0,l.internalProperty)()],e.prototype,"isUserNavigated",void 0),e=c([(0,r.w)("md-advance-list")],e),t.ELEMENT=e}(s||(s={}))},29895:(t,e,i)=>{i.d(e,{CoachmarkPopover:()=>s}),i(96798),i(61200),i(71128);var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(40587),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.placement="bottom",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,l.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return n.html`
931
+ `}};p([(0,l.property)({type:Array})],e.prototype,"items",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isLoading",void 0),p([(0,l.property)({type:Boolean,attribute:"is-multi"})],e.prototype,"isMulti",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"groupOnMultiSelect",void 0),p([(0,l.property)({type:Array})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaRoleList",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaRoleListItem",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaLabelList",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isError",void 0),p([(0,l.property)({type:String})],e.prototype,"containerHeight",void 0),p([(0,l.property)({type:String})],e.prototype,"lastSelectedIdByOrder",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"selectAllItems",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"focusReset",void 0),p([(0,l.property)({type:Array})],e.prototype,"disabledItems",void 0),p([(0,l.property)({type:Number})],e.prototype,"totalRecords",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isNonSelectable",void 0),p([(0,l.queryAll)("div.default-wrapper")],e.prototype,"lists",void 0),p([(0,l.query)(".virtual-scroll")],e.prototype,"listContainer",void 0),p([(0,l.internalProperty)()],e.prototype,"scrollIndex",void 0),p([(0,l.internalProperty)()],e.prototype,"activeId",void 0),p([(0,l.internalProperty)()],e.prototype,"selectedItemsIds",void 0),p([(0,l.internalProperty)()],e.prototype,"isUserNavigated",void 0),e=p([(0,r.w)("md-advance-list")],e),t.ELEMENT=e}(s||(s={}))},29895:(t,e,i)=>{i.d(e,{CoachmarkPopover:()=>s}),i(96798),i(61200),i(71128);var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(40587),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.placement="bottom",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,l.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return n.html`
932
932
  <div class="md-coachmark__content">
933
933
  ${this.message?this.message:n.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
934
934
  </div>
@@ -978,7 +978,7 @@
978
978
  <div class="radio-group-container" part="radio-group-container">
979
979
  <slot name="radio"></slot>
980
980
  </div>
981
- `}};h([(0,l.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"checked",void 0),h([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),h([(0,l.query)("slot[name='radio']")],e.prototype,"radioSlot",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=h([(0,n.w)("md-radiogroup")],e),t.ELEMENT=e}(s||(s={}))},32252:(t,e,i)=>{i.d(e,{Modal:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(37719),n=i(3001),a=i(31890),l=i(26272),d=i(41488),h=i(40333),c=i(23968),p=i(97822),u=i(48521),m=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,n.dY)(d.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.alignment=void 0,this.animating=!1,this.handleCloseOutside=t=>{t.code===o.Uz.Escape&&(t.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[l.A,u.A]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(t){super.update(t),t.has("show")&&(this.show?this.modalFadeIn():!0===t.get("show")&&this.modalFadeOut())}get computedAlignment(){return void 0===this.alignment?r.themeManager.isMomentumV2Enabled?"leading":"center":this.alignment}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.setInitialFocus()}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.show&&(this.show=!0)}transitionPromise(t){return new Promise((e=>{const i=()=>{t.removeEventListener("transitionend",i),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame((()=>{e()}))},s=()=>{t.removeEventListener("transitioncancel",s),this.deactivateFocusTrap(),this.modalFadeOut(),e()};t.addEventListener("transitionend",i),t.addEventListener("transitioncancel",s),setTimeout((()=>{this.animating=!0}),13)}))}modalFadeIn(){return t=this,e=void 0,s=function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())},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}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return d.html`
981
+ `}};h([(0,l.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"checked",void 0),h([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),h([(0,l.query)("slot[name='radio']")],e.prototype,"radioSlot",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=h([(0,n.w)("md-radiogroup")],e),t.ELEMENT=e}(s||(s={}))},32252:(t,e,i)=>{i.d(e,{Modal:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(37719),n=i(3001),a=i(31890),l=i(26272),d=i(41488),h=i(40333),p=i(23968),c=i(97822),u=i(48521),m=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,n.dY)(d.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.alignment=void 0,this.animating=!1,this.handleCloseOutside=t=>{t.code===o.Uz.Escape&&(t.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[l.A,u.A]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(t){super.update(t),t.has("show")&&(this.show?this.modalFadeIn():!0===t.get("show")&&this.modalFadeOut())}get computedAlignment(){return void 0===this.alignment?r.themeManager.isMomentumV2Enabled?"leading":"center":this.alignment}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.setInitialFocus()}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.show&&(this.show=!0)}transitionPromise(t){return new Promise((e=>{const i=()=>{t.removeEventListener("transitionend",i),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame((()=>{e()}))},s=()=>{t.removeEventListener("transitioncancel",s),this.deactivateFocusTrap(),this.modalFadeOut(),e()};t.addEventListener("transitionend",i),t.addEventListener("transitioncancel",s),setTimeout((()=>{this.animating=!0}),13)}))}modalFadeIn(){return t=this,e=void 0,s=function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())},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}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return d.html`
982
982
  ${this.showCloseButton?d.html`
983
983
  <md-button
984
984
  variant="ghost"
@@ -1027,16 +1027,16 @@
1027
1027
  </div>
1028
1028
  `}get modalBackDropClassMap(){return{in:this.show&&this.animating}}get modalContainerClassMap(){return{in:this.show,[`md-modal--${this.size}`]:!!this.size,[`md-modal--${this.computedAlignment}`]:!!this.computedAlignment}}render(){return d.html`
1029
1029
  ${this.show?d.html`
1030
- <div part="modal-backdrop" class="md-modal__backdrop fade ${(0,c.classMap)(this.modalBackDropClassMap)}">
1030
+ <div part="modal-backdrop" class="md-modal__backdrop fade ${(0,p.classMap)(this.modalBackDropClassMap)}">
1031
1031
  ${this.backdropClickExit?d.html` <div class="md-modal_overlay" @click="${this.handleCloseBackdrop}"></div> `:h.nothing}
1032
1032
 
1033
1033
  <div
1034
1034
  part="modal-container"
1035
1035
  role="dialog"
1036
1036
  id="${this.htmlId}"
1037
- class="md-modal ${(0,c.classMap)(this.modalContainerClassMap)}"
1038
- aria-label="${(0,p.ifDefined)(this.headerLabel||this.ariaLabel||void 0)}"
1039
- aria-describedby=${(0,p.ifDefined)(this.ariaDescription||void 0)}
1037
+ class="md-modal ${(0,p.classMap)(this.modalContainerClassMap)}"
1038
+ aria-label="${(0,c.ifDefined)(this.headerLabel||this.ariaLabel||void 0)}"
1039
+ aria-describedby=${(0,c.ifDefined)(this.ariaDescription||void 0)}
1040
1040
  >
1041
1041
  <div part="modal-content" class="md-modal__content">
1042
1042
  <div class="md-modal__flex-container" part="modal-flex-container">
@@ -1054,7 +1054,7 @@
1054
1054
  <div class="md-accordion" part="accordion">
1055
1055
  <slot name="accordion-item"></slot>
1056
1056
  </div>
1057
- `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),h([(0,l.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=h([(0,n.w)("md-accordion")],e),t.ELEMENT=e}(s||(s={}))},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>o,themeManager:()=>r});var s=i(85314);class o{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,s.makeObservable)(this,{isDarkMode:s.observable,themeName:s.observable,isVisualRebrandEnabled:s.observable,isMomentumAvatarEnabled:s.observable,isMomentumV2Enabled:s.computed,setDarkMode:s.action,setThemeName:s.action,setVisualRebrandEnabled:s.action,setMomentumAvatar:s.action,update:s.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new o},37782:t=>{t.exports=h},38028:(t,e,i)=>{i.d(e,{Avatar:()=>s}),i(80528),i(61200),i(69788);var s,o=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),c=i(8229),p=i(37782),u=i(22887),m=i(3553),y=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 a.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[n.A,m.A]}isPresenceType(t){return u.eO.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E0)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}updated(t){super.updated(t);const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:i}=(0,u.E0)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}t.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const t=this.title.trim().split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get iconSize(){return(this.size/2).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?a.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?a.html`
1057
+ `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),h([(0,l.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=h([(0,n.w)("md-accordion")],e),t.ELEMENT=e}(s||(s={}))},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>o,themeManager:()=>r});var s=i(85314);class o{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,s.makeObservable)(this,{isDarkMode:s.observable,themeName:s.observable,isVisualRebrandEnabled:s.observable,isMomentumAvatarEnabled:s.observable,isMomentumV2Enabled:s.computed,setDarkMode:s.action,setThemeName:s.action,setVisualRebrandEnabled:s.action,setMomentumAvatar:s.action,update:s.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new o},37782:t=>{t.exports=h},38028:(t,e,i)=>{i.d(e,{Avatar:()=>s}),i(80528),i(61200),i(69788);var s,o=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),p=i(8229),c=i(37782),u=i(22887),m=i(3553),y=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 a.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[n.A,m.A]}isPresenceType(t){return u.eO.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E0)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}updated(t){super.updated(t);const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:i}=(0,u.E0)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}t.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const t=this.title.trim().split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get iconSize(){return 24===this.size?"16":28===this.size?"18":32===this.size?"20":36===this.size?"22":40===this.size?"24":48===this.size?"28":56===this.size?"32":64===this.size?"36":72===this.size?"40":Math.round(this.size/1.7).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?a.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?a.html`
1058
1058
  <span class="md-avatar__letter ${(0,d.classMap)(this.avatarLetterClassMap)}">
1059
1059
  ${this.pretifyTitle}
1060
1060
  <slot></slot>
@@ -1069,7 +1069,7 @@
1069
1069
  ></md-icon>
1070
1070
  </span>
1071
1071
  `}get avatarImage(){return a.html`
1072
- ${(0,p.until)(this.loadImage().then((t=>(this.handleImageLoad(),a.html` ${t} `))).catch((()=>this.handleImageError())),a.html` ${this.iconName?this.avatarIcon:this.title?a.html` ${this.avatarLetter} `:l.nothing} `)}
1072
+ ${(0,c.until)(this.loadImage().then((t=>(this.handleImageLoad(),a.html` ${t} `))).catch((()=>this.handleImageError())),a.html` ${this.iconName?this.avatarIcon:this.title?a.html` ${this.avatarLetter} `:l.nothing} `)}
1073
1073
  `}loadImage(){return t=this,e=void 0,s=function*(){return new Promise(((t,e)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>t(i),i.onerror=t=>e(t),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)}))},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}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(t){if(!this.clickable)return;const{code:e}=t;(0,r.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.clickable&&(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}getBrandOrDesignIconSet(t){return new Set(["webex-app-icon-color-container","social-fbmessenger-color","apple-business-chat-color","social-line-color","social-viber-color","social-x","social-whatsapp-color","social-wechat-color"]).has(t)?"momentumBrandVisuals":"momentumDesign"}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:l.nothing}renderPresence(){return this.newMomentum&&(this.presenceType||this.type)&&"self"!==this.type&&this.presenceIcon?a.html`
1074
1074
  <md-presence
1075
1075
  class="avatar-presence"
@@ -1107,14 +1107,14 @@
1107
1107
  aria-label=${(0,h.ifDefined)(this.label)}
1108
1108
  >
1109
1109
  ${"self"===this.type?a.html`
1110
- <span class="md-avatar__self" style=${(0,c.styleMap)(this.avatarStyleMap)}>
1110
+ <span class="md-avatar__self" style=${(0,p.styleMap)(this.avatarStyleMap)}>
1111
1111
  <md-icon .name=${this.chatIconName} .iconSet=${"momentumDesign"} .size=${this.chatIconSize}></md-icon>
1112
1112
  </span>
1113
1113
  `:this.renderAvatarContent()}
1114
1114
  ${this.hasNotification?a.html` <span class="md-avatar__notification-badge"></span> `:l.nothing}
1115
1115
  ${this.renderPresence()}
1116
1116
  </div>
1117
- `}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,a.property)({type:String})],e.prototype,"state",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,o.w)("md-avatar")],e),t.ELEMENT=e}(s||(s={}))},40333:t=>{t.exports=i},40428:(t,e,i)=>{i.d(e,{Table:()=>s}),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(17518),d=i(28187),h=i.n(d),c=i(43604),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};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach(((t,e)=>{this.warning.forEach((i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach(((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))}))})),this.errors.forEach((i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach(((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))}))}))}))}sortTab(t,e){const i=t.target,s=Array.from(this.csvData),o=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(s.sort((function(t,e){const i=t[o].toLowerCase(),s=e[o].toLowerCase();return i>s?1:i<s?-1:0})),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(s.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=s,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,c.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:n.html`
1117
+ `}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,a.property)({type:String})],e.prototype,"state",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,o.w)("md-avatar")],e),t.ELEMENT=e}(s||(s={}))},40333:t=>{t.exports=i},40428:(t,e,i)=>{i.d(e,{Table:()=>s}),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(17518),d=i(28187),h=i.n(d),p=i(43604),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};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach(((t,e)=>{this.warning.forEach((i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach(((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))}))})),this.errors.forEach((i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach(((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))}))}))}))}sortTab(t,e){const i=t.target,s=Array.from(this.csvData),o=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(s.sort((function(t,e){const i=t[o].toLowerCase(),s=e[o].toLowerCase();return i>s?1:i<s?-1:0})),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(s.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=s,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,p.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:n.html`
1118
1118
  <md-icon
1119
1119
  name=${this.sort.sortting?"sort-descending-bold":"sort-ascending-bold"}
1120
1120
  iconSet="momentumDesign"
@@ -1156,11 +1156,11 @@
1156
1156
  </table>
1157
1157
  `:n.html` <p>${this.nodata}</p> `}
1158
1158
  </div>
1159
- `}};p([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),p([(0,n.property)({type:String})],e.prototype,"nodata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),p([(0,n.property)({type:String})],e.prototype,"label",void 0),p([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),p([(0,n.property)({type:String})],e.prototype,"format",void 0),p([(0,n.property)({type:Array})],e.prototype,"warning",void 0),p([(0,n.property)({type:Array})],e.prototype,"errors",void 0),p([(0,n.internalProperty)()],e.prototype,"sort",void 0),p([(0,n.internalProperty)()],e.prototype,"csvData",void 0),p([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=p([(0,o.w)("md-table")],e),t.ELEMENT=e}(s||(s={}))},41488:e=>{e.exports=t},41891:t=>{t.exports=w},45001:t=>{t.exports=g},45629:(t,e,i)=>{i.d(e,{ButtonGroup:()=>s});var s,o=i(90195),r=i(3001),n=i(26272),a=i(41488),l=i(71250),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((0,r.TS)((0,r.yC)(a.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[n.A,l.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach((t=>t.tabIndex=-1))}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,i;const s=this.findSelectedBtnIndex();-1!==s&&s!==t&&(null===(e=this.slotted[s])||void 0===e||e.toggleAttribute("selected",!1)),null===(i=this.slotted[t])||void 0===i||i.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}findSelectedBtnIndex(){return this.slotted.findIndex((t=>t.hasAttribute("selected")))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const i=this.getAvailableSelectedIndex(t,e);-1!==i&&(this.active=i,this.setSelected(i),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const i=this.slotted.length;for(let s=0,o=t;s<i;s+=1,o+=e){o<0?o=i-1:o>=i&&(o=0);const t=this.slotted[o];if(this.isFocusable(t))return o}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.Enter:case o.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case o.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case o.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return a.html`
1159
+ `}};c([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),c([(0,n.property)({type:String})],e.prototype,"nodata",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),c([(0,n.property)({type:String})],e.prototype,"label",void 0),c([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),c([(0,n.property)({type:String})],e.prototype,"format",void 0),c([(0,n.property)({type:Array})],e.prototype,"warning",void 0),c([(0,n.property)({type:Array})],e.prototype,"errors",void 0),c([(0,n.internalProperty)()],e.prototype,"sort",void 0),c([(0,n.internalProperty)()],e.prototype,"csvData",void 0),c([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=c([(0,o.w)("md-table")],e),t.ELEMENT=e}(s||(s={}))},41488:e=>{e.exports=t},41891:t=>{t.exports=w},45001:t=>{t.exports=g},45629:(t,e,i)=>{i.d(e,{ButtonGroup:()=>s});var s,o=i(90195),r=i(3001),n=i(26272),a=i(41488),l=i(71250),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((0,r.TS)((0,r.yC)(a.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[n.A,l.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach((t=>t.tabIndex=-1))}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,i;const s=this.findSelectedBtnIndex();-1!==s&&s!==t&&(null===(e=this.slotted[s])||void 0===e||e.toggleAttribute("selected",!1)),null===(i=this.slotted[t])||void 0===i||i.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}findSelectedBtnIndex(){return this.slotted.findIndex((t=>t.hasAttribute("selected")))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const i=this.getAvailableSelectedIndex(t,e);-1!==i&&(this.active=i,this.setSelected(i),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const i=this.slotted.length;for(let s=0,o=t;s<i;s+=1,o+=e){o<0?o=i-1:o>=i&&(o=0);const t=this.slotted[o];if(this.isFocusable(t))return o}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.Enter:case o.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case o.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case o.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return a.html`
1160
1160
  <div role="group" class="md-button-group" part="button-group">
1161
1161
  <slot name="button"></slot>
1162
1162
  </div>
1163
- `}};d([(0,a.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),d([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),d([(0,a.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),d([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=d([(0,r.wW)("md-button-group")],e),t.ELEMENT=e}(s||(s={}))},46312:(t,e,i)=>{i.d(e,{Coachmark:()=>s}),i(96798);var s,o=i(3001),r=i(31890),n=i(66677),a=i(26272),l=i(41488),d=i(23968),h=i(82043),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};!function(t){let e=class extends((0,o.dY)(l.LitElement)){constructor(){super(...arguments),this.message="",this.actionname="Next",this.hidebutton=!1,this.placement="auto",this.show=!1,this.color="default",this.slotContent=null}connectedCallback(){super.connectedCallback()}notifyCoachCreate(){this.dispatchEvent(new CustomEvent("coach-create",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}coachAction(){this.dispatchEvent(new CustomEvent("coach-action",{bubbles:!0,composed:!0,detail:{popper:this.popper}}))}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}update(t){var e;super.update(t),t.has("show")&&this.show&&(this.setFocusableElements(),(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus())}get coachWrapClassMap(){return{"md-coachmark--active":!!this.show}}get coachClassMap(){return{[`md-coachmark__popper--${this.placement}`]:!!this.placement,[`md-coachmark__popper--${this.color}`]:!!this.color}}static get styles(){return[a.A,h.A]}coachmarkContentTemplate(){return l.html`
1163
+ `}};d([(0,a.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),d([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),d([(0,a.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),d([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=d([(0,r.wW)("md-button-group")],e),t.ELEMENT=e}(s||(s={}))},46312:(t,e,i)=>{i.d(e,{Coachmark:()=>s}),i(96798);var s,o=i(3001),r=i(31890),n=i(66677),a=i(26272),l=i(41488),d=i(23968),h=i(82043),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};!function(t){let e=class extends((0,o.dY)(l.LitElement)){constructor(){super(...arguments),this.message="",this.actionname="Next",this.hidebutton=!1,this.placement="auto",this.show=!1,this.color="default",this.slotContent=null}connectedCallback(){super.connectedCallback()}notifyCoachCreate(){this.dispatchEvent(new CustomEvent("coach-create",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}coachAction(){this.dispatchEvent(new CustomEvent("coach-action",{bubbles:!0,composed:!0,detail:{popper:this.popper}}))}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}update(t){var e;super.update(t),t.has("show")&&this.show&&(this.setFocusableElements(),(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus())}get coachWrapClassMap(){return{"md-coachmark--active":!!this.show}}get coachClassMap(){return{[`md-coachmark__popper--${this.placement}`]:!!this.placement,[`md-coachmark__popper--${this.color}`]:!!this.color}}static get styles(){return[a.A,h.A]}coachmarkContentTemplate(){return l.html`
1164
1164
  <div class="md-coachmark__content">
1165
1165
  ${this.message?this.message:l.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
1166
1166
  <div class="md-coachmark__action">
@@ -1181,7 +1181,7 @@
1181
1181
  <slot></slot>
1182
1182
  </div>
1183
1183
  </div>
1184
- `}};c([(0,l.property)({type:String})],e.prototype,"message",void 0),c([(0,l.property)({type:String})],e.prototype,"actionname",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"hidebutton",void 0),c([(0,l.property)({type:String})],e.prototype,"placement",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,l.property)({type:String})],e.prototype,"color",void 0),c([(0,l.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),c([(0,l.query)(".md-coachmark__reference")],e.prototype,"reference",void 0),e=c([(0,r.w)("md-coachmark")],e),t.ELEMENT=e}(s||(s={}))},49256:(t,e,i)=>{i.d(e,{TimePicker:()=>g}),i(4928),i(96408);var s=i(90195),o=i(31890),r=i(81625),n=i(74548),a=i(26272),l=i(41488),d=i(40333),h=i(23968),c=i(97822),p=i(65796),u=i(17875),m=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 y=[s.R5.HOUR,s.R5.MINUTE,s.R5.SECOND,s.R5.AM_PM],b=[s.R5.HOUR,s.R5.MINUTE,s.R5.SECOND],v={[s.R5.HOUR]:"HH",[s.R5.MINUTE]:"MM",[s.R5.SECOND]:"SS",[s.R5.AM_PM]:"AM"};var g;!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.twoDigitAutoTab=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=s.R5.SECOND,this.locale="en-US",this.value="00:00:00-08:00",this.finalTwentyFourFormat=!1,this.timeObject=(0,r.tB)(),this.tabNext=!1,this.timeValue={[s.R5.HOUR]:"12",[s.R5.MINUTE]:"00",[s.R5.SECOND]:"00",[s.R5.AM_PM]:"AM"},this.timeValidity={[s.R5.HOUR]:!0,[s.R5.MINUTE]:!0,[s.R5.SECOND]:!0,[s.R5.AM_PM]:!0},this.addLeadingZeros=t=>{if(t){if(0===t.length)return"00";if(1===t.length)return`0${t}`}return t},this.formatAndValidate=(t,e)=>{if(t&&(this.updateValidity(t,e),this.timeValidity[e]))return this.addLeadingZeros(t)},this.getLocaleTimeFormat=t=>{const e=t.toFormat("tt"),[,i]=e.split(" ");return!i},this.updateTimeValues=()=>{let t;t=this.finalTwentyFourFormat?this.timeObject.toFormat("HH:mm:ss"):this.timeObject.toFormat("tt");const[e,i]=t.split(" "),o=e.split(":");b.forEach((t=>{const e=this.formatAndValidate(o.shift(),t);e&&(t===s.R5.HOUR&&i&&(this.timeValue[s.R5.AM_PM]=i),this.timeValue[t]=e)}))},this.updateValidity=(t,e)=>{let i=!0;const o=e=>{null===t.match(e)&&(i=!1)};switch(e){case s.R5.HOUR:this.finalTwentyFourFormat?o(new RegExp(n.b.twentyFourHourString)):o(new RegExp(n.b.hourString));break;case s.R5.MINUTE:case s.R5.SECOND:o(new RegExp(n.b.minuteSecondString));break;case s.R5.AM_PM:o(new RegExp(n.b.amPmString))}this.timeValidity[e]=i},this.to12HourFormat=(t,e)=>{if(!this.finalTwentyFourFormat&&this.timeValidity[s.R5.HOUR]&&this.timeValidity[s.R5.AM_PM]){let i=Number(e);return"PM"===t?i=12+i%12:i%=12,i}},this.isEntireTimeValid=()=>Object.values(this.timeValidity).every((t=>t)),this.updateTimeUnit=t=>{var e,i,o;this.updateValidity(this.timeValue[t],t),this.timeObject&&this.timeValidity[t]&&(t!==s.R5.AM_PM?this.timeObject=null===(e=this.timeObject)||void 0===e?void 0:e.set({[t]:this.timeValue[t]}):this.timeObject=null===(i=this.timeObject)||void 0===i?void 0:i.set({hour:this.to12HourFormat(this.timeValue[s.R5.AM_PM],this.timeValue[s.R5.HOUR])}),this.isEntireTimeValid()&&(this.timeObject=null===(o=this.timeObject)||void 0===o?void 0:o.set({hour:this.to12HourFormat(this.timeValue[s.R5.AM_PM],this.timeValue[s.R5.HOUR])}),this.value=this.timeObject.toISOTime({suppressMilliseconds:!0})||this.value,this.dispatchEvent(new CustomEvent("time-selection-change",{bubbles:!0,composed:!0,detail:{time:this.value,data:this.timeObject}}))))},this.formatTimeUnit=t=>{if(1===this.timeValue[t].length)"0"!==this.timeValue[t]&&(this.timeValue[t]="0"+this.timeValue[t]);else if(this.timeValue[t].length>2&&"0"===this.timeValue[t][0]){const e=this.timeValue[t].substring(1);RegExp(n.b.noPrecedingZerosString).test(e)&&(this.timeValue[t]=e)}this.requestUpdate()},this.messageType=t=>t?"":"error",this.generateTimeBox=t=>{const e=(i=this.finalTwentyFourFormat,{[s.R5.HOUR]:{type:"number",min:i?0:1,max:i?23:12},[s.R5.MINUTE]:{type:"number",min:0,max:59},[s.R5.SECOND]:{type:"number",min:0,max:59},[s.R5.AM_PM]:{type:"text",min:void 0,max:void 0}})[t];var i;return l.html`
1184
+ `}};p([(0,l.property)({type:String})],e.prototype,"message",void 0),p([(0,l.property)({type:String})],e.prototype,"actionname",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"hidebutton",void 0),p([(0,l.property)({type:String})],e.prototype,"placement",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"show",void 0),p([(0,l.property)({type:String})],e.prototype,"color",void 0),p([(0,l.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),p([(0,l.query)(".md-coachmark__reference")],e.prototype,"reference",void 0),e=p([(0,r.w)("md-coachmark")],e),t.ELEMENT=e}(s||(s={}))},49256:(t,e,i)=>{i.d(e,{TimePicker:()=>g}),i(4928),i(96408);var s=i(90195),o=i(31890),r=i(81625),n=i(74548),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(97822),c=i(65796),u=i(17875),m=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 y=[s.R5.HOUR,s.R5.MINUTE,s.R5.SECOND,s.R5.AM_PM],b=[s.R5.HOUR,s.R5.MINUTE,s.R5.SECOND],v={[s.R5.HOUR]:"HH",[s.R5.MINUTE]:"MM",[s.R5.SECOND]:"SS",[s.R5.AM_PM]:"AM"};var g;!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.twoDigitAutoTab=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=s.R5.SECOND,this.locale="en-US",this.value="00:00:00-08:00",this.finalTwentyFourFormat=!1,this.timeObject=(0,r.tB)(),this.tabNext=!1,this.timeValue={[s.R5.HOUR]:"12",[s.R5.MINUTE]:"00",[s.R5.SECOND]:"00",[s.R5.AM_PM]:"AM"},this.timeValidity={[s.R5.HOUR]:!0,[s.R5.MINUTE]:!0,[s.R5.SECOND]:!0,[s.R5.AM_PM]:!0},this.addLeadingZeros=t=>{if(t){if(0===t.length)return"00";if(1===t.length)return`0${t}`}return t},this.formatAndValidate=(t,e)=>{if(t&&(this.updateValidity(t,e),this.timeValidity[e]))return this.addLeadingZeros(t)},this.getLocaleTimeFormat=t=>{const e=t.toFormat("tt"),[,i]=e.split(" ");return!i},this.updateTimeValues=()=>{let t;t=this.finalTwentyFourFormat?this.timeObject.toFormat("HH:mm:ss"):this.timeObject.toFormat("tt");const[e,i]=t.split(" "),o=e.split(":");b.forEach((t=>{const e=this.formatAndValidate(o.shift(),t);e&&(t===s.R5.HOUR&&i&&(this.timeValue[s.R5.AM_PM]=i),this.timeValue[t]=e)}))},this.updateValidity=(t,e)=>{let i=!0;const o=e=>{null===t.match(e)&&(i=!1)};switch(e){case s.R5.HOUR:this.finalTwentyFourFormat?o(new RegExp(n.b.twentyFourHourString)):o(new RegExp(n.b.hourString));break;case s.R5.MINUTE:case s.R5.SECOND:o(new RegExp(n.b.minuteSecondString));break;case s.R5.AM_PM:o(new RegExp(n.b.amPmString))}this.timeValidity[e]=i},this.to12HourFormat=(t,e)=>{if(!this.finalTwentyFourFormat&&this.timeValidity[s.R5.HOUR]&&this.timeValidity[s.R5.AM_PM]){let i=Number(e);return"PM"===t?i=12+i%12:i%=12,i}},this.isEntireTimeValid=()=>Object.values(this.timeValidity).every((t=>t)),this.updateTimeUnit=t=>{var e,i,o;this.updateValidity(this.timeValue[t],t),this.timeObject&&this.timeValidity[t]&&(t!==s.R5.AM_PM?this.timeObject=null===(e=this.timeObject)||void 0===e?void 0:e.set({[t]:this.timeValue[t]}):this.timeObject=null===(i=this.timeObject)||void 0===i?void 0:i.set({hour:this.to12HourFormat(this.timeValue[s.R5.AM_PM],this.timeValue[s.R5.HOUR])}),this.isEntireTimeValid()&&(this.timeObject=null===(o=this.timeObject)||void 0===o?void 0:o.set({hour:this.to12HourFormat(this.timeValue[s.R5.AM_PM],this.timeValue[s.R5.HOUR])}),this.value=this.timeObject.toISOTime({suppressMilliseconds:!0})||this.value,this.dispatchEvent(new CustomEvent("time-selection-change",{bubbles:!0,composed:!0,detail:{time:this.value,data:this.timeObject}}))))},this.formatTimeUnit=t=>{if(1===this.timeValue[t].length)"0"!==this.timeValue[t]&&(this.timeValue[t]="0"+this.timeValue[t]);else if(this.timeValue[t].length>2&&"0"===this.timeValue[t][0]){const e=this.timeValue[t].substring(1);RegExp(n.b.noPrecedingZerosString).test(e)&&(this.timeValue[t]=e)}this.requestUpdate()},this.messageType=t=>t?"":"error",this.generateTimeBox=t=>{const e=(i=this.finalTwentyFourFormat,{[s.R5.HOUR]:{type:"number",min:i?0:1,max:i?23:12},[s.R5.MINUTE]:{type:"number",min:0,max:59},[s.R5.SECOND]:{type:"number",min:0,max:59},[s.R5.AM_PM]:{type:"text",min:void 0,max:void 0}})[t];var i;return l.html`
1185
1185
  ${t===s.R5.MINUTE||t===s.R5.SECOND?l.html` <span class="colon-separator">:</span> `:d.nothing}
1186
1186
  <md-input
1187
1187
  newMomentum
@@ -1190,8 +1190,8 @@
1190
1190
  id="time-${y.findIndex((e=>e===t))+1}"
1191
1191
  value="${this.timeValue[t]}"
1192
1192
  type="${e.type}"
1193
- min=${(0,c.ifDefined)(e.min)}
1194
- max=${(0,c.ifDefined)(e.max)}
1193
+ min=${(0,p.ifDefined)(e.min)}
1194
+ max=${(0,p.ifDefined)(e.max)}
1195
1195
  maxLength=${2}
1196
1196
  placeholder="${v[t]}"
1197
1197
  @input-change="${e=>this.handleTimeChange(e,t)}"
@@ -1216,7 +1216,7 @@
1216
1216
  @change-selected="${t=>this.handleTimeChange(t,s.R5.AM_PM)}"
1217
1217
  >
1218
1218
  </md-combobox>
1219
- `}}get timePickerClassMap(){return{"twenty-four-hour-format":this.finalTwentyFourFormat}}updated(t){if(super.updated(t),this.value&&(t.has("value")||t.has("locale")||t.has("twentyFourHourFormat"))){this.timeObject=p.DateTime.fromISO(this.value,{locale:this.locale});const t=this.getLocaleTimeFormat(this.timeObject);this.finalTwentyFourFormat=this.twentyFourHourFormat||t,this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.updateTimeValues()}}handleTimeChange(t,e){var i,o,r;this.timeValue[e]=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.value,this.requestUpdate(),this.formatTimeUnit(e);const n=this.timeValue[e];if(this.twoDigitAutoTab&&this.tabNext&&(e!==s.R5.AM_PM&&2===n.length&&"0"!==n[0]||"00"===n)){t.preventDefault();const e=null==t?void 0:t.target,i=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("md-input, md-combobox");if(i){const t=Array.prototype.findIndex.call(i,(t=>null==e?void 0:e.isEqualNode(t))),s=(t+1)%i.length;if(t<i.length-1){const t=null===(r=i[s].shadowRoot)||void 0===r?void 0:r.querySelector("input");null==t||t.focus()}}}else e===s.R5.AM_PM&&this.updateTimeUnit(e);t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-change`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`,isValid:this.timeValidity[e]}}))}handleTimeKeyDown(t,e){var i;const o=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.srcEvent;if(!o)return void console.warn("srcEvent is undefined");const{key:r}=o;r===s.Uz.ArrowDown||r===s.Uz.ArrowUp?this.tabNext=!1:this.tabNext=!0,this.timeValidity[e]=!0,this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-keydown`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`}}))}handleTimeBlur(t,e){"0"===this.timeValue[e]&&(this.timeValue[e]="00"),this.updateTimeUnit(e),this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-blur`,{bubbles:!0,composed:!0,detail:{srcEvent:t,time:this.value,isValid:this.timeValidity[e]}}))}static get styles(){return[a.A,u.A]}render(){return l.html`
1219
+ `}}get timePickerClassMap(){return{"twenty-four-hour-format":this.finalTwentyFourFormat}}updated(t){if(super.updated(t),this.value&&(t.has("value")||t.has("locale")||t.has("twentyFourHourFormat"))){this.timeObject=c.DateTime.fromISO(this.value,{locale:this.locale});const t=this.getLocaleTimeFormat(this.timeObject);this.finalTwentyFourFormat=this.twentyFourHourFormat||t,this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.updateTimeValues()}}handleTimeChange(t,e){var i,o,r;this.timeValue[e]=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.value,this.requestUpdate(),this.formatTimeUnit(e);const n=this.timeValue[e];if(this.twoDigitAutoTab&&this.tabNext&&(e!==s.R5.AM_PM&&2===n.length&&"0"!==n[0]||"00"===n)){t.preventDefault();const e=null==t?void 0:t.target,i=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("md-input, md-combobox");if(i){const t=Array.prototype.findIndex.call(i,(t=>null==e?void 0:e.isEqualNode(t))),s=(t+1)%i.length;if(t<i.length-1){const t=null===(r=i[s].shadowRoot)||void 0===r?void 0:r.querySelector("input");null==t||t.focus()}}}else e===s.R5.AM_PM&&this.updateTimeUnit(e);t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-change`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`,isValid:this.timeValidity[e]}}))}handleTimeKeyDown(t,e){var i;const o=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.srcEvent;if(!o)return void console.warn("srcEvent is undefined");const{key:r}=o;r===s.Uz.ArrowDown||r===s.Uz.ArrowUp?this.tabNext=!1:this.tabNext=!0,this.timeValidity[e]=!0,this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-keydown`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`}}))}handleTimeBlur(t,e){"0"===this.timeValue[e]&&(this.timeValue[e]="00"),this.updateTimeUnit(e),this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-blur`,{bubbles:!0,composed:!0,detail:{srcEvent:t,time:this.value,isValid:this.timeValidity[e]}}))}static get styles(){return[a.A,u.A]}render(){return l.html`
1220
1220
  <div class="md-timepicker ${(0,h.classMap)(this.timePickerClassMap)}">
1221
1221
  <div class="time-inputs-wrapper">
1222
1222
  ${this.generateTimeBox(s.R5.HOUR)}
@@ -1225,7 +1225,7 @@
1225
1225
  ${this.finalTwentyFourFormat?d.nothing:this.generateAmPmComboBox()}
1226
1226
  </div>
1227
1227
  </div>
1228
- `}};m([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,l.property)({type:String})],e.prototype,"locale",void 0),m([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,l.internalProperty)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,l.internalProperty)()],e.prototype,"timeObject",void 0),m([(0,l.internalProperty)()],e.prototype,"tabNext",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValue",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValidity",void 0),e=m([(0,o.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>L}),i(61200),i(11323),i(83192);var s=i(90195),o=i(3001),r=i(66677),n=i(59164),a=i(26272),l=i(41488),d=i(40333),h=i(23968),c=i(22818),p=i(8229),u=i(19239),m=i(41891),y=i.n(m),b=i(97103),v=i(30076),g=i(16643),f=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},w=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())}))};const C="tab-more",x="more-menu-copy-",S="visibleToVisible",$="visibleToHidden",E="hiddenToVisible",T="hiddenToHidden",k="previous",A="next",I="fromMoreTabs";var L;!function(t){let e=class extends((0,o.UM)((0,o.Io)((0,o.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame((()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5}))},this.handleOnDragEnd=t=>w(this,void 0,void 0,(function*(){var e,i,s,o,r,n,a,l,d,h;t.stopPropagation();const c=t.oldIndex,p=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],y=this.getDragDirection(t);if(void 0!==c&&void 0!==p){switch(y){case $:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const s=u[c],o=m.slice(-1)[0],r=p===this.tabsFilteredAsHiddenList.length?p-1:p;m.splice(r,0,s),m.pop();const n=u.filter((e=>e.id!==this.getNormalizedTabId(t.item.id)));n.push(o),this.tabsFilteredAsVisibleList=[...n],this.tabsFilteredAsHiddenList=[...m];break}case S:{const t=u[c];u.splice(c,1),u.splice(p,0,t),this.tabsFilteredAsVisibleList=u,p===this.tabsFilteredAsVisibleList.length-1&&(null===(o=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[this.visibleTabsContainerElement.children.length-1])||void 0===o||o.remove());const e=this.visibleTabsContainerElement.children[c],i=this.visibleTabsContainerElement.children[p];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(n=this.visibleTabsContainerElement)||void 0===n||n.insertBefore(e,i);break}case E:{null===(l=null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[c],i=u.slice(-1)[0];m.splice(c,1),m.splice(0,0,i);const s=p===this.tabsFilteredAsVisibleList.length?p-1:p;u.splice(s,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case T:{const t=m[c];m.splice(c,1),m.splice(p,0,t),this.tabsFilteredAsHiddenList=m,p===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex((t=>t.selected));this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map((t=>t.name)),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}}))}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._selectedIndex=t}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(x))?`${x}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(x))?`${x}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(x,"")}static get styles(){return[a.A,v.A]}ensureTabsUpdateComplete(t){return w(this,void 0,void 0,(function*(){const e=t.map((t=>void 0!==t.updateComplete?t.updateComplete:null)).filter((t=>null!==t));e.length&&(yield Promise.all(e))}))}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map((t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e})):this.tabs.map((t=>t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth))}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map((t=>t.offsetHeight))}manageOverflow(){return w(this,void 0,void 0,(function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach((t=>{var e,i,s,o,r;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(s=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===s?void 0:s.length)){const e=null===(o=null==t?void 0:t.querySelector("slot"))||void 0===o?void 0:o.assignedNodes({flatten:!0})[0].cloneNode(!0);e&&(e.classList.add("tab-content"),null===(r=null==t?void 0:t.children[0])||void 0===r||r.appendChild(e))}}));const s=i.length;if(this.tabsListElement&&s){const o=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),n=i.reduce(((t,e,i)=>t+r[i]),0);if(n){yield this.setupMoreTab();let t=!0;o<n&&(t=!1);const e=[];let a=0;i.forEach(((i,n)=>{a+=r[n];const l=!t&&a+(n<s-1?this.moreTabMenuOffsetWidth:0)>o;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[n]})})),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach(((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden)),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find((t=>t.isTabInViewportHidden)),this.tabsFilteredAsVisibleList=i.filter(((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsFilteredAsHiddenList=i.filter(((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}}this.updateIsMoreTabMenuSelected();const o=this.tabsFilteredAsHiddenList.find((t=>!t.disabled));this.updateHiddenIdPositiveTabIndex(o)}}))}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find((t=>t.selected))}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,s;const o=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(s=e.getAttribute("name"))&&void 0!==s?s:"";return this.tabsOrderPrefsArray.indexOf(o)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return w(this,void 0,void 0,(function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction;t.forEach(((t,s)=>{const o=(0,n.O)("tabs"),r="tab_"+o,a="tab_panel_"+o;t.setAttribute("id",r),t.setAttribute("aria-controls",a),t.selected=this.selected===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const l=e[s];l?(l.setAttribute("id",a),l.setAttribute("aria-labelledby",r),l.selected=this.selected===s,t.disabled&&(l.hidden=!0,l.selected=!1)):t.disabled=!0}));let s=this.selected;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce(((t,e)=>(t[e.id]=e,t)),{}),this.tabsIdxHash=this.tabs.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}))}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?$:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?S:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?E:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?T:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t){const e=this.tabsHash[this.getNormalizedTabId(t)];if(e&&!e.disabled){const t=this.tabsIdxHash[e.id];-1!==t&&this.updateSelectedTab(t);{const t=this.tabsCopyHash[this.getCopyTabId(e)];t&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(e)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const s=this.tabsHash[this.getNormalizedTabId(t)];if(s&&!s.disabled&&("auto"===s.closable||"custom"===s.closable)){const s=this.tabsFilteredAsVisibleList.findIndex((e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t)));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter((e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t))),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(s)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex((t=>t.id===this.tabsFilteredAsVisibleList[i].id));this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find((e=>e.id===t.id))}updateSelectedTab(t){const{tabs:e,panels:i}=this,s=this.tabs.findIndex((t=>t.hasAttribute("selected")));if(e&&i&&(this.setSelectedAttribute((0,r.Qx)(e,s),(0,r.Qx)(i,s),!1),this.setSelectedAttribute((0,r.Qx)(e,t),(0,r.Qx)(i,t),!0)),t>=0){this.dispatchSelectedChangedEvent(t);const i=this.currentTabsLayout.findIndex((i=>i.id===e[t].id));this.changeSelectedTabIdx(i)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id,s=e.findIndex((t=>t.id===i)),o=[];e.forEach((t=>{o.push(t.name)})),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:s,tabsOrder:o},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t){this.requestUpdate(),this.selected=t,this.updateComplete.then((()=>{var e,i;if(t<this.tabsFilteredAsVisibleList.length){const t=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children[this.selected];null==t||t.focus()}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,e=null===(i=this.hiddenTabsContainerElement)||void 0===i?void 0:i.children[t];this.moveFocusToTab(e);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}})),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,s;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const o=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<o;e++)if((null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,s,o;const r=this.getCurrentIndex(t),n=this.slotItem.assignedElements();let a=0;if(this.scrollArrow){e===k?a=0===r?n.length-1:r-1:e===A&&(a=r===n.length-1?0:r+1),this.moveFocusToTab(n[a]);const t=n[a],s=t.getBoundingClientRect(),o=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return o&&(s.left>=o.left&&s.right<=o.right&&s.top>=o.top&&s.bottom<=o.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,b.setTimeout)((()=>this.moveFocusToTab(n[a])),0)}const l=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children,d=null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0;l&&0!==d&&(e===k?a=0===r?d-1:r-1:e===A?a=r===d-1?0:r+1:e===I&&(a=this.selected>=d?0:this.selected),this.moveFocusToTab(l[a]))}moveFocusToTab(t){(0,b.setTimeout)((()=>null==t?void 0:t.focus()),0)}handleOverlayClose(){(0,b.setTimeout)((()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)}),0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,o,r,n,a,l;const d=t.target;if(t.target!=this&&!this.tabs.find((t=>t.id===(null==d?void 0:d.id))))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const c=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,c);const p=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&c===C,y=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(c)],b=!this.isMoreTabMenuVisible||y&&this.tabsVisibleIdxHash[y.id]>-1,v=!!this.isMoreTabMenuVisible&&y&&this.tabsHiddenIdxHash[y.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(p){case s.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,I));break;case s.Uz.End:m||(b?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(o=this.tabsFilteredAsVisibleList)||void 0===o?void 0:o.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(n=this.tabsFilteredAsHiddenList)||void 0===n?void 0:n.length)-1])));break;case s.Uz.Home:b?(t.preventDefault(),this.moveFocusToTab(null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case s.Uz.ArrowLeft:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,k));break;case s.Uz.ArrowRight:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,A));break;case s.Uz.ArrowUp:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(v){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case s.Uz.ArrowDown:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(v){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case s.Uz.Enter:case s.Uz.NumpadEnter:case s.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter((t=>!t.disabled)),e=t.length?t.find((t=>t.selected))||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(y&&!y.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(y.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map((t=>t.name))}setupMoreTab(){return w(this,void 0,void 0,(function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))}))}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=y().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=y().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow(),this.requestUpdate()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return w(this,void 0,void 0,(function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()}))}updated(t){var e;if(super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(e=this.tabsCopyHiddenListElements)||void 0===e?void 0:e.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce(((t,e)=>(t[e.id]=e,t)),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce(((t,e)=>t+e),0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,b.setTimeout)((()=>this.updateArrowsVisibility()),300)}get moreMenuButtonTemplate(){return l.html`
1228
+ `}};m([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,l.property)({type:String})],e.prototype,"locale",void 0),m([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,l.internalProperty)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,l.internalProperty)()],e.prototype,"timeObject",void 0),m([(0,l.internalProperty)()],e.prototype,"tabNext",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValue",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValidity",void 0),e=m([(0,o.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>L}),i(61200),i(11323),i(83192);var s=i(90195),o=i(3001),r=i(66677),n=i(59164),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(22818),c=i(8229),u=i(19239),m=i(41891),y=i.n(m),b=i(97103),v=i(30076),g=i(16643),f=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},w=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())}))};const C="tab-more",x="more-menu-copy-",S="visibleToVisible",$="visibleToHidden",E="hiddenToVisible",T="hiddenToHidden",k="previous",A="next",I="fromMoreTabs";var L;!function(t){let e=class extends((0,o.UM)((0,o.Io)((0,o.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame((()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5}))},this.handleOnDragEnd=t=>w(this,void 0,void 0,(function*(){var e,i,s,o,r,n,a,l,d,h;t.stopPropagation();const p=t.oldIndex,c=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],y=this.getDragDirection(t);if(void 0!==p&&void 0!==c){switch(y){case $:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const s=u[p],o=m.slice(-1)[0],r=c===this.tabsFilteredAsHiddenList.length?c-1:c;m.splice(r,0,s),m.pop();const n=u.filter((e=>e.id!==this.getNormalizedTabId(t.item.id)));n.push(o),this.tabsFilteredAsVisibleList=[...n],this.tabsFilteredAsHiddenList=[...m];break}case S:{const t=u[p];u.splice(p,1),u.splice(c,0,t),this.tabsFilteredAsVisibleList=u,c===this.tabsFilteredAsVisibleList.length-1&&(null===(o=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[this.visibleTabsContainerElement.children.length-1])||void 0===o||o.remove());const e=this.visibleTabsContainerElement.children[p],i=this.visibleTabsContainerElement.children[c];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(n=this.visibleTabsContainerElement)||void 0===n||n.insertBefore(e,i);break}case E:{null===(l=null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[p],i=u.slice(-1)[0];m.splice(p,1),m.splice(0,0,i);const s=c===this.tabsFilteredAsVisibleList.length?c-1:c;u.splice(s,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case T:{const t=m[p];m.splice(p,1),m.splice(c,0,t),this.tabsFilteredAsHiddenList=m,c===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex((t=>t.selected));this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map((t=>t.name)),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}}))}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._selectedIndex=t}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(x))?`${x}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(x))?`${x}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(x,"")}static get styles(){return[a.A,v.A]}ensureTabsUpdateComplete(t){return w(this,void 0,void 0,(function*(){const e=t.map((t=>void 0!==t.updateComplete?t.updateComplete:null)).filter((t=>null!==t));e.length&&(yield Promise.all(e))}))}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map((t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e})):this.tabs.map((t=>t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth))}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map((t=>t.offsetHeight))}manageOverflow(){return w(this,void 0,void 0,(function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach((t=>{var e,i,s,o,r;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(s=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===s?void 0:s.length)){const e=null===(o=null==t?void 0:t.querySelector("slot"))||void 0===o?void 0:o.assignedNodes({flatten:!0})[0].cloneNode(!0);e&&(e.classList.add("tab-content"),null===(r=null==t?void 0:t.children[0])||void 0===r||r.appendChild(e))}}));const s=i.length;if(this.tabsListElement&&s){const o=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),n=i.reduce(((t,e,i)=>t+r[i]),0);if(n){yield this.setupMoreTab();let t=!0;o<n&&(t=!1);const e=[];let a=0;i.forEach(((i,n)=>{a+=r[n];const l=!t&&a+(n<s-1?this.moreTabMenuOffsetWidth:0)>o;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[n]})})),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach(((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden)),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find((t=>t.isTabInViewportHidden)),this.tabsFilteredAsVisibleList=i.filter(((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsFilteredAsHiddenList=i.filter(((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}}this.updateIsMoreTabMenuSelected();const o=this.tabsFilteredAsHiddenList.find((t=>!t.disabled));this.updateHiddenIdPositiveTabIndex(o)}}))}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find((t=>t.selected))}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,s;const o=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(s=e.getAttribute("name"))&&void 0!==s?s:"";return this.tabsOrderPrefsArray.indexOf(o)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return w(this,void 0,void 0,(function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction;t.forEach(((t,s)=>{const o=(0,n.O)("tabs"),r="tab_"+o,a="tab_panel_"+o;t.setAttribute("id",r),t.setAttribute("aria-controls",a),t.selected=this.selected===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const l=e[s];l?(l.setAttribute("id",a),l.setAttribute("aria-labelledby",r),l.selected=this.selected===s,t.disabled&&(l.hidden=!0,l.selected=!1)):t.disabled=!0}));let s=this.selected;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce(((t,e)=>(t[e.id]=e,t)),{}),this.tabsIdxHash=this.tabs.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}))}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?$:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?S:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?E:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?T:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t){const e=this.tabsHash[this.getNormalizedTabId(t)];if(e&&!e.disabled){const t=this.tabsIdxHash[e.id];-1!==t&&this.updateSelectedTab(t);{const t=this.tabsCopyHash[this.getCopyTabId(e)];t&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(e)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const s=this.tabsHash[this.getNormalizedTabId(t)];if(s&&!s.disabled&&("auto"===s.closable||"custom"===s.closable)){const s=this.tabsFilteredAsVisibleList.findIndex((e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t)));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter((e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t))),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(s)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex((t=>t.id===this.tabsFilteredAsVisibleList[i].id));this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find((e=>e.id===t.id))}updateSelectedTab(t){const{tabs:e,panels:i}=this,s=this.tabs.findIndex((t=>t.hasAttribute("selected")));if(e&&i&&(this.setSelectedAttribute((0,r.Qx)(e,s),(0,r.Qx)(i,s),!1),this.setSelectedAttribute((0,r.Qx)(e,t),(0,r.Qx)(i,t),!0)),t>=0){this.dispatchSelectedChangedEvent(t);const i=this.currentTabsLayout.findIndex((i=>i.id===e[t].id));this.changeSelectedTabIdx(i)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id,s=e.findIndex((t=>t.id===i)),o=[];e.forEach((t=>{o.push(t.name)})),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:s,tabsOrder:o},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t){this.requestUpdate(),this.selected=t,this.updateComplete.then((()=>{var e,i;if(t<this.tabsFilteredAsVisibleList.length){const t=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children[this.selected];null==t||t.focus()}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,e=null===(i=this.hiddenTabsContainerElement)||void 0===i?void 0:i.children[t];this.moveFocusToTab(e);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}})),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,s;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const o=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<o;e++)if((null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,s,o;const r=this.getCurrentIndex(t),n=this.slotItem.assignedElements();let a=0;if(this.scrollArrow){e===k?a=0===r?n.length-1:r-1:e===A&&(a=r===n.length-1?0:r+1),this.moveFocusToTab(n[a]);const t=n[a],s=t.getBoundingClientRect(),o=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return o&&(s.left>=o.left&&s.right<=o.right&&s.top>=o.top&&s.bottom<=o.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,b.setTimeout)((()=>this.moveFocusToTab(n[a])),0)}const l=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children,d=null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0;l&&0!==d&&(e===k?a=0===r?d-1:r-1:e===A?a=r===d-1?0:r+1:e===I&&(a=this.selected>=d?0:this.selected),this.moveFocusToTab(l[a]))}moveFocusToTab(t){(0,b.setTimeout)((()=>null==t?void 0:t.focus()),0)}handleOverlayClose(){(0,b.setTimeout)((()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)}),0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,o,r,n,a,l;const d=t.target;if(t.target!=this&&!this.tabs.find((t=>t.id===(null==d?void 0:d.id))))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const p=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,p);const c=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&p===C,y=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(p)],b=!this.isMoreTabMenuVisible||y&&this.tabsVisibleIdxHash[y.id]>-1,v=!!this.isMoreTabMenuVisible&&y&&this.tabsHiddenIdxHash[y.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(c){case s.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,I));break;case s.Uz.End:m||(b?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(o=this.tabsFilteredAsVisibleList)||void 0===o?void 0:o.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(n=this.tabsFilteredAsHiddenList)||void 0===n?void 0:n.length)-1])));break;case s.Uz.Home:b?(t.preventDefault(),this.moveFocusToTab(null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case s.Uz.ArrowLeft:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,k));break;case s.Uz.ArrowRight:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,A));break;case s.Uz.ArrowUp:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(v){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case s.Uz.ArrowDown:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(v){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case s.Uz.Enter:case s.Uz.NumpadEnter:case s.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter((t=>!t.disabled)),e=t.length?t.find((t=>t.selected))||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(y&&!y.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(y.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map((t=>t.name))}setupMoreTab(){return w(this,void 0,void 0,(function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))}))}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=y().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=y().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow(),this.requestUpdate()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return w(this,void 0,void 0,(function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()}))}updated(t){var e;if(super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(e=this.tabsCopyHiddenListElements)||void 0===e?void 0:e.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce(((t,e)=>(t[e.id]=e,t)),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce(((t,e)=>t+e),0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,b.setTimeout)((()=>this.updateArrowsVisibility()),300)}get moreMenuButtonTemplate(){return l.html`
1229
1229
  <md-tab
1230
1230
  slot="menu-trigger"
1231
1231
  id="${C}"
@@ -1251,7 +1251,7 @@
1251
1251
  ></md-icon>
1252
1252
  </md-tab>
1253
1253
  `}get moreMenuListTemplate(){return l.html`
1254
- ${(0,c.repeat)(this.tabsFilteredAsHiddenList,(()=>(0,n.O)("menuitem_tabs")),(t=>l.html`
1254
+ ${(0,p.repeat)(this.tabsFilteredAsHiddenList,(()=>(0,n.O)("menuitem_tabs")),(t=>l.html`
1255
1255
  <md-tab
1256
1256
  slot="draggable-item"
1257
1257
  ?disabled=${t.disabled}
@@ -1285,7 +1285,7 @@
1285
1285
  id="tabs-more-list"
1286
1286
  part="tabs-more-list"
1287
1287
  class="md-tab__list md-menu-overlay__more_list"
1288
- style="${(0,p.styleMap)(this.isMoreTabMenuScrollable&&this.moreTabMenuMaxHeight?{"overflow-y":"auto",height:this.moreTabMenuMaxHeight,"max-height":this.moreTabMenuMaxHeight}:{})}"
1288
+ style="${(0,c.styleMap)(this.isMoreTabMenuScrollable&&this.moreTabMenuMaxHeight?{"overflow-y":"auto",height:this.moreTabMenuMaxHeight,"max-height":this.moreTabMenuMaxHeight}:{})}"
1289
1289
  >
1290
1290
  ${this.moreMenuListTemplate}
1291
1291
  </div>
@@ -1308,7 +1308,7 @@
1308
1308
  id="visible-tabs-list"
1309
1309
  class="visible-tabs-container ${(0,h.classMap)({"md-tab__justified":this.justified&&!this.isMoreTabMenuVisible,"md-tab__hug":this.hugTabs,"visible-new-tabs":this.newMomentum})}"
1310
1310
  >
1311
- ${(0,c.repeat)(this.tabsFilteredAsVisibleList,((t,e)=>`${t.id}-${e}`),(t=>l.html`
1311
+ ${(0,p.repeat)(this.tabsFilteredAsVisibleList,((t,e)=>`${t.id}-${e}`),(t=>l.html`
1312
1312
  <md-tab
1313
1313
  .closable="${t.closable}"
1314
1314
  .disabled="${t.disabled}"
@@ -1352,7 +1352,7 @@
1352
1352
  >
1353
1353
  <slot name="panel"></slot>
1354
1354
  </div>
1355
- `}};f([(0,l.property)({type:Boolean})],e.prototype,"justified",void 0),f([(0,l.property)({type:Boolean,attribute:"hug-tabs"})],e.prototype,"hugTabs",void 0),f([(0,l.property)({type:String})],e.prototype,"overflowLabel",void 0),f([(0,l.property)({type:Boolean,attribute:"draggable"})],e.prototype,"draggable",void 0),f([(0,l.property)({type:String,reflect:!0})],e.prototype,"direction",void 0),f([(0,l.property)({type:Number,attribute:"more-items-scroll-limit"})],e.prototype,"moreItemsScrollLimit",void 0),f([(0,l.property)({type:Number,reflect:!0,attribute:"selected-index"})],e.prototype,"selectedIndex",null),f([(0,l.property)({type:Number})],e.prototype,"animation",void 0),f([(0,l.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),f([(0,l.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),f([(0,l.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),f([(0,l.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),f([(0,l.property)({type:String,attribute:"tabs-id"})],e.prototype,"tabsId",void 0),f([(0,l.property)({type:Boolean,attribute:"persist-selection"})],e.prototype,"persistSelection",void 0),f([(0,l.property)({type:String,attribute:"comp-unique-id"})],e.prototype,"compUniqueId",void 0),f([(0,l.property)({type:String})],e.prototype,"type",void 0),f([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),f([(0,l.property)({type:String})],e.prototype,"variant",void 0),f([(0,l.property)({type:Boolean,attribute:"scroll-arrow"})],e.prototype,"scrollArrow",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuVisible",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuMeasured",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuOpen",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuSelected",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuScrollable",void 0),f([(0,l.internalProperty)()],e.prototype,"moreTabMenuOffsetWidth",void 0),f([(0,l.internalProperty)()],e.prototype,"moreTabMenuMaxHeight",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsViewportDataList",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsFilteredAsVisibleList",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsFilteredAsHiddenList",void 0),f([(0,l.internalProperty)()],e.prototype,"noTabsVisible",void 0),f([(0,l.internalProperty)()],e.prototype,"defaultTabsOrderArray",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsOrderPrefsArray",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabTruncated",void 0),f([(0,l.internalProperty)()],e.prototype,"showLeftArrow",void 0),f([(0,l.internalProperty)()],e.prototype,"showRightArrow",void 0),f([(0,l.query)("slot[name='tab']")],e.prototype,"tabSlotElement",void 0),f([(0,l.query)("slot[name='panel']")],e.prototype,"panelSlotElement",void 0),f([(0,l.query)(".md-tab__list[part='tabs-list']")],e.prototype,"tabsListElement",void 0),f([(0,l.query)(".md-tabs__settings[part='md-tabs__settings']")],e.prototype,"tabsSettingsElement",void 0),f([(0,l.query)(".md-menu-overlay__more_tab")],e.prototype,"moreTabMenuElement",void 0),f([(0,l.query)("md-menu-overlay")],e.prototype,"menuOverlayElement",void 0),f([(0,l.query)(".md-tab__list[part='tabs-more-list']")],e.prototype,"tabsMoreListElement",void 0),f([(0,l.queryAll)(".md-menu-overlay__more_list md-tab")],e.prototype,"tabsCopyHiddenListElements",void 0),f([(0,l.query)("#visible-tabs-list")],e.prototype,"visibleTabsContainerElement",void 0),f([(0,l.query)("#tabs-more-list")],e.prototype,"hiddenTabsContainerElement",void 0),e=f([(0,o.wW)("md-tabs")],e),t.ELEMENT=e}(L||(L={}))},50565:(t,e,i)=>{i.d(e,{EditableTextfield:()=>s});var s,o=i(96408),r=i(31890),n=i(74548),a=i(26272),l=i(31347),d=i.n(l),h=i(41488),c=i(40333),p=i(23968),u=i(97822),m=i(18728),y=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 h.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.messageController=new o.Input.MessageController,this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=t=>{let e=!0;const i=i=>{null===t.match(i)&&(e=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(t&&this.type)switch(this.type){case"integer":i(new RegExp(n.b.integerString));break;case"decimal":i(new RegExp(n.b.decimalString))}return e},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=t=>{var e;const{key:i,code:s}=t;if(["Tab","Meta","Shift","Delete","Backspace","Arrow"].some((t=>s.includes(t))))return;("integer"===this.type&&i.includes(".")||("integer"===this.type||"decimal"===this.type)&&s.match("Space"))&&t.preventDefault();const o=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())+i;if(this.type)if(isNaN(Number(o)))t.preventDefault();else{if("integer"!==this.type||Number.isInteger(Number(o)))return;t.preventDefault()}},this.handleBlur=()=>{var t,e;this.isEditing=!1,this.maxLines.length>0&&(null===(t=this.editableField)||void 0===t||t.scrollTo(0,0)),this.content=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())||"",this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(t){super.firstUpdated(t),this.innerText&&this.innerText.length>0?this.content=this.innerText.trim():this.innerText=d().sanitize(this.content)}updated(t){super.updated(t),t.has("content")&&this.editableField&&(this.editableField.innerText=d().sanitize(this.content))}setRange(){var t;if(this.editableField){const e=document.createRange(),i=window.getSelection(),s=null===(t=this.editableField.childNodes[0].nodeValue)||void 0===t?void 0:t.length;if(e.setStart(this.editableField.childNodes[0],s||0),e.collapse(!0),!i||0!==i.toString().length)return;i.removeAllRanges(),i.addRange(e),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){var t;(this.type||this.pattern)&&((null===(t=this.checkValidity)||void 0===t?void 0:t.call(this,this.content))||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[a.A,m.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var t,e,i;return this.alert?h.html`
1355
+ `}};f([(0,l.property)({type:Boolean})],e.prototype,"justified",void 0),f([(0,l.property)({type:Boolean,attribute:"hug-tabs"})],e.prototype,"hugTabs",void 0),f([(0,l.property)({type:String})],e.prototype,"overflowLabel",void 0),f([(0,l.property)({type:Boolean,attribute:"draggable"})],e.prototype,"draggable",void 0),f([(0,l.property)({type:String,reflect:!0})],e.prototype,"direction",void 0),f([(0,l.property)({type:Number,attribute:"more-items-scroll-limit"})],e.prototype,"moreItemsScrollLimit",void 0),f([(0,l.property)({type:Number,reflect:!0,attribute:"selected-index"})],e.prototype,"selectedIndex",null),f([(0,l.property)({type:Number})],e.prototype,"animation",void 0),f([(0,l.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),f([(0,l.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),f([(0,l.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),f([(0,l.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),f([(0,l.property)({type:String,attribute:"tabs-id"})],e.prototype,"tabsId",void 0),f([(0,l.property)({type:Boolean,attribute:"persist-selection"})],e.prototype,"persistSelection",void 0),f([(0,l.property)({type:String,attribute:"comp-unique-id"})],e.prototype,"compUniqueId",void 0),f([(0,l.property)({type:String})],e.prototype,"type",void 0),f([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),f([(0,l.property)({type:String})],e.prototype,"variant",void 0),f([(0,l.property)({type:Boolean,attribute:"scroll-arrow"})],e.prototype,"scrollArrow",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuVisible",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuMeasured",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuOpen",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuSelected",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuScrollable",void 0),f([(0,l.internalProperty)()],e.prototype,"moreTabMenuOffsetWidth",void 0),f([(0,l.internalProperty)()],e.prototype,"moreTabMenuMaxHeight",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsViewportDataList",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsFilteredAsVisibleList",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsFilteredAsHiddenList",void 0),f([(0,l.internalProperty)()],e.prototype,"noTabsVisible",void 0),f([(0,l.internalProperty)()],e.prototype,"defaultTabsOrderArray",void 0),f([(0,l.internalProperty)()],e.prototype,"tabsOrderPrefsArray",void 0),f([(0,l.internalProperty)()],e.prototype,"isMoreTabTruncated",void 0),f([(0,l.internalProperty)()],e.prototype,"showLeftArrow",void 0),f([(0,l.internalProperty)()],e.prototype,"showRightArrow",void 0),f([(0,l.query)("slot[name='tab']")],e.prototype,"tabSlotElement",void 0),f([(0,l.query)("slot[name='panel']")],e.prototype,"panelSlotElement",void 0),f([(0,l.query)(".md-tab__list[part='tabs-list']")],e.prototype,"tabsListElement",void 0),f([(0,l.query)(".md-tabs__settings[part='md-tabs__settings']")],e.prototype,"tabsSettingsElement",void 0),f([(0,l.query)(".md-menu-overlay__more_tab")],e.prototype,"moreTabMenuElement",void 0),f([(0,l.query)("md-menu-overlay")],e.prototype,"menuOverlayElement",void 0),f([(0,l.query)(".md-tab__list[part='tabs-more-list']")],e.prototype,"tabsMoreListElement",void 0),f([(0,l.queryAll)(".md-menu-overlay__more_list md-tab")],e.prototype,"tabsCopyHiddenListElements",void 0),f([(0,l.query)("#visible-tabs-list")],e.prototype,"visibleTabsContainerElement",void 0),f([(0,l.query)("#tabs-more-list")],e.prototype,"hiddenTabsContainerElement",void 0),e=f([(0,o.wW)("md-tabs")],e),t.ELEMENT=e}(L||(L={}))},50565:(t,e,i)=>{i.d(e,{EditableTextfield:()=>s});var s,o=i(96408),r=i(31890),n=i(74548),a=i(26272),l=i(31347),d=i.n(l),h=i(41488),p=i(40333),c=i(23968),u=i(97822),m=i(18728),y=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 h.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.messageController=new o.Input.MessageController,this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=t=>{let e=!0;const i=i=>{null===t.match(i)&&(e=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(t&&this.type)switch(this.type){case"integer":i(new RegExp(n.b.integerString));break;case"decimal":i(new RegExp(n.b.decimalString))}return e},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=t=>{var e;const{key:i,code:s}=t;if(["Tab","Meta","Shift","Delete","Backspace","Arrow"].some((t=>s.includes(t))))return;("integer"===this.type&&i.includes(".")||("integer"===this.type||"decimal"===this.type)&&s.match("Space"))&&t.preventDefault();const o=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())+i;if(this.type)if(isNaN(Number(o)))t.preventDefault();else{if("integer"!==this.type||Number.isInteger(Number(o)))return;t.preventDefault()}},this.handleBlur=()=>{var t,e;this.isEditing=!1,this.maxLines.length>0&&(null===(t=this.editableField)||void 0===t||t.scrollTo(0,0)),this.content=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())||"",this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(t){super.firstUpdated(t),this.innerText&&this.innerText.length>0?this.content=this.innerText.trim():this.innerText=d().sanitize(this.content)}updated(t){super.updated(t),t.has("content")&&this.editableField&&(this.editableField.innerText=d().sanitize(this.content))}setRange(){var t;if(this.editableField){const e=document.createRange(),i=window.getSelection(),s=null===(t=this.editableField.childNodes[0].nodeValue)||void 0===t?void 0:t.length;if(e.setStart(this.editableField.childNodes[0],s||0),e.collapse(!0),!i||0!==i.toString().length)return;i.removeAllRanges(),i.addRange(e),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){var t;(this.type||this.pattern)&&((null===(t=this.checkValidity)||void 0===t?void 0:t.call(this,this.content))||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[a.A,m.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var t,e,i;return this.alert?h.html`
1356
1356
  <div class="md-editable-textfield__messages" style="display: ${this.hideMessage?"none":"block"}">
1357
1357
  <md-help-text
1358
1358
  id="alert-message"
@@ -1364,10 +1364,10 @@
1364
1364
  ${null===(i=this.message)||void 0===i?void 0:i.message}
1365
1365
  </md-help-text>
1366
1366
  </div>
1367
- `:c.nothing}render(){var t;const e={[`md-editable-textfield--${this.alignment}`]:this.alignment,"md-editable-textfield--disabled":this.disabled,[`md-editable-textfield--${null===(t=this.message)||void 0===t?void 0:t.type}`]:this.alert&&!!this.message,"md-editable-textfield--textoverflow":this.maxLines.length>0&&!this.isEditing};return h.html`
1367
+ `:p.nothing}render(){var t;const e={[`md-editable-textfield--${this.alignment}`]:this.alignment,"md-editable-textfield--disabled":this.disabled,[`md-editable-textfield--${null===(t=this.message)||void 0===t?void 0:t.type}`]:this.alert&&!!this.message,"md-editable-textfield--textoverflow":this.maxLines.length>0&&!this.isEditing};return h.html`
1368
1368
  <div
1369
1369
  style="${this.overflowStyles}"
1370
- class="md-editable-textfield ${(0,p.classMap)(e)}"
1370
+ class="md-editable-textfield ${(0,c.classMap)(e)}"
1371
1371
  role=${(0,u.ifDefined)(this.disabled?void 0:"textbox")}
1372
1372
  tabindex=${this.disabled?"-1":"0"}
1373
1373
  ?contenteditable=${this.isEditing}
@@ -1381,7 +1381,7 @@
1381
1381
  ${d().sanitize(this.content)}
1382
1382
  </div>
1383
1383
  ${this.messagesTemplate()}
1384
- `}};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`
1384
+ `}};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),p=i(45213),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},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,p.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`
1385
1385
  <div class="md-input-file">
1386
1386
  <label for="file-input">
1387
1387
  <md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
@@ -1397,7 +1397,7 @@
1397
1397
  @change=${t=>this.handleFile(t)}
1398
1398
  />
1399
1399
  </div>
1400
- `}};p([(0,l.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),p([(0,l.property)({type:String})],e.prototype,"getLocalization",void 0),p([(0,l.query)("input[type='file']")],e.prototype,"input",void 0),p([(0,l.internalProperty)()],e.prototype,"acceptTypes",void 0),p([(0,l.internalProperty)()],e.prototype,"fileName",void 0),e=p([(0,o.wW)("md-input-file")],e),t.ELEMENT=e}(s||(s={}))},55294:(t,e,i)=>{i.d(e,{CheckboxGroup:()=>s});var s,o=i(90195),r=i(3001),n=i(26272),a=i(31890),l=i(41488),d=i(18841),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((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[n.A,d.A]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.ArrowUp:case o.Uz.ArrowLeft:0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return l.html`
1400
+ `}};c([(0,l.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),c([(0,l.property)({type:String})],e.prototype,"getLocalization",void 0),c([(0,l.query)("input[type='file']")],e.prototype,"input",void 0),c([(0,l.internalProperty)()],e.prototype,"acceptTypes",void 0),c([(0,l.internalProperty)()],e.prototype,"fileName",void 0),e=c([(0,o.wW)("md-input-file")],e),t.ELEMENT=e}(s||(s={}))},55294:(t,e,i)=>{i.d(e,{CheckboxGroup:()=>s});var s,o=i(90195),r=i(3001),n=i(26272),a=i(31890),l=i(41488),d=i(18841),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((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[n.A,d.A]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.ArrowUp:case o.Uz.ArrowLeft:0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return l.html`
1401
1401
  <div role="group" aria-labelledby="id-group-label">
1402
1402
  <slot name="checkbox"></slot>
1403
1403
  </div>
@@ -1421,8 +1421,8 @@
1421
1421
  </span>
1422
1422
  </div>
1423
1423
  </span>
1424
- `}};d([(0,n.property)({type:Boolean})],e.prototype,"dynamic",void 0),d([(0,n.property)({type:String})],e.prototype,"color",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"displayFormat",void 0),d([(0,n.property)({type:String})],e.prototype,"type",void 0),d([(0,n.property)({type:Number})],e.prototype,"min",void 0),d([(0,n.property)({type:Number})],e.prototype,"max",void 0),d([(0,n.property)({type:Number})],e.prototype,"value",void 0),d([(0,n.property)({type:Number})],e.prototype,"adjustedValue",void 0),d([(0,n.property)({type:Number})],e.prototype,"valueFraction",void 0),d([(0,n.property)({type:String})],e.prototype,"meterWidth",void 0),e=d([(0,o.w)("md-progress-bar")],e),t.ELEMENT=e}(s||(s={}))},58871:(t,e,i)=>{i.d(e,{FloatingMinimizedModal:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=(i(58088),i(57346),i(69e3),i(20727)),h=i.n(d),c=(i(3288),i(41488)),p=i(40333),u=i(97822),m=i(67330),y=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,r.yC)(c.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||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[l.A,m.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}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.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.minPosition)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}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-minimize-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.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&&h()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[h().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})}))}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleMinimize(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}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&&h().isSet(this.container)&&h()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}render(){return c.html`
1425
- ${this.show?c.html`
1424
+ `}};d([(0,n.property)({type:Boolean})],e.prototype,"dynamic",void 0),d([(0,n.property)({type:String})],e.prototype,"color",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"displayFormat",void 0),d([(0,n.property)({type:String})],e.prototype,"type",void 0),d([(0,n.property)({type:Number})],e.prototype,"min",void 0),d([(0,n.property)({type:Number})],e.prototype,"max",void 0),d([(0,n.property)({type:Number})],e.prototype,"value",void 0),d([(0,n.property)({type:Number})],e.prototype,"adjustedValue",void 0),d([(0,n.property)({type:Number})],e.prototype,"valueFraction",void 0),d([(0,n.property)({type:String})],e.prototype,"meterWidth",void 0),e=d([(0,o.w)("md-progress-bar")],e),t.ELEMENT=e}(s||(s={}))},58871:(t,e,i)=>{i.d(e,{FloatingMinimizedModal:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=(i(58088),i(57346),i(69e3),i(20727)),h=i.n(d),p=(i(3288),i(41488)),c=i(40333),u=i(97822),m=i(67330),y=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,r.yC)(p.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||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[l.A,m.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}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.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.minPosition)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}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-minimize-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.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&&h()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[h().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})}))}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleMinimize(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}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&&h().isSet(this.container)&&h()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,a.sg)((()=>this.setInteractInstance()),250))}render(){return p.html`
1425
+ ${this.show?p.html`
1426
1426
  <div
1427
1427
  class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
1428
1428
  @click=${this.handleMinimize}
@@ -1436,7 +1436,7 @@
1436
1436
  >
1437
1437
  <div tabindex="-1" class="md-floating__header ${this.minimize?"md-floating__header-minimize":""}">
1438
1438
  <div class="md-floating__header-text">
1439
- ${this.heading?c.html` ${this.heading} `:c.html` <slot></slot> `}
1439
+ ${this.heading?p.html` ${this.heading} `:p.html` <slot></slot> `}
1440
1440
  </div>
1441
1441
  <md-button
1442
1442
  color="color-none"
@@ -1449,8 +1449,8 @@
1449
1449
  </md-button>
1450
1450
  </div>
1451
1451
  </div>
1452
- `:p.nothing}
1453
- `}};y([(0,c.property)({type:String})],e.prototype,"heading",void 0),y([(0,c.property)({type:String})],e.prototype,"label",void 0),y([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),y([(0,c.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),y([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),y([(0,c.property)({type:Object})],e.prototype,"minPosition",void 0),y([(0,c.query)(".md-floating")],e.prototype,"container",void 0),y([(0,c.query)(".md-floating__header")],e.prototype,"header",void 0),y([(0,c.internalProperty)()],e.prototype,"dragOccured",void 0),y([(0,c.internalProperty)()],e.prototype,"containerTransform",void 0),e=y([(0,n.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(s||(s={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>s}),i(58287),i(83192);var s,o=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),c=i(49618),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};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:l.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:l.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:l.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?a.html`
1452
+ `:c.nothing}
1453
+ `}};y([(0,p.property)({type:String})],e.prototype,"heading",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),y([(0,p.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),y([(0,p.property)({type:Object})],e.prototype,"minPosition",void 0),y([(0,p.query)(".md-floating")],e.prototype,"container",void 0),y([(0,p.query)(".md-floating__header")],e.prototype,"header",void 0),y([(0,p.internalProperty)()],e.prototype,"dragOccured",void 0),y([(0,p.internalProperty)()],e.prototype,"containerTransform",void 0),e=y([(0,n.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(s||(s={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>s}),i(58287),i(83192);var s,o=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),p=i(49618),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};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:l.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:l.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:l.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?a.html`
1454
1454
  <style>
1455
1455
  :host .md-chip {
1456
1456
  ${this.renderBgColor()};
@@ -1458,7 +1458,7 @@
1458
1458
  ${this.renderHeight()};
1459
1459
  }
1460
1460
  </style>
1461
- `:l.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}truncStringPortion(t,e=this.PRE_TRUNC_CHARS,i=this.POST_TRUNC_CHARS,s=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH){let o="";o+=t.substring(0,e),o+=".".repeat(s),o+=t.substring(t.length-i,t.length),this.renderedText=o,this.textOverflow=!0}else this.renderedText=this.value}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case o.Uz.Space:case o.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[n.A,c.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?a.html`
1461
+ `:l.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}truncStringPortion(t,e=this.PRE_TRUNC_CHARS,i=this.POST_TRUNC_CHARS,s=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH){let o="";o+=t.substring(0,e),o+=".".repeat(s),o+=t.substring(t.length-i,t.length),this.renderedText=o,this.textOverflow=!0}else this.renderedText=this.value}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case o.Uz.Space:case o.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[n.A,p.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?a.html`
1462
1462
  <md-progress-bar
1463
1463
  class="md-chip--loading"
1464
1464
  type="determinate"
@@ -1500,11 +1500,11 @@
1500
1500
  <slot name="custom-right-content" part="chip-right"> </slot>
1501
1501
  </span>
1502
1502
  </md-tooltip>
1503
- `}};p([(0,a.property)({type:String})],e.prototype,"color",void 0),p([(0,a.property)({type:String})],e.prototype,"bgColor",void 0),p([(0,a.property)({type:String})],e.prototype,"textColor",void 0),p([(0,a.property)({type:String})],e.prototype,"height",void 0),p([(0,a.property)({type:String})],e.prototype,"icon",void 0),p([(0,a.property)({type:String})],e.prototype,"iconColor",void 0),p([(0,a.property)({type:String})],e.prototype,"iconSize",void 0),p([(0,a.property)({type:String})],e.prototype,"role",void 0),p([(0,a.property)({type:String,reflect:!0})],e.prototype,"id",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"small",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"readonly",void 0),p([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,a.property)({type:Number})],e.prototype,"determinateProgress",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),p([(0,a.property)({type:String})],e.prototype,"tooltipText",void 0),p([(0,a.property)({type:String})],e.prototype,"tooltipPlacement",void 0),p([(0,a.property)({type:String})],e.prototype,"iconSet",void 0),p([(0,a.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),p([(0,a.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),p([(0,a.internalProperty)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),p([(0,a.internalProperty)()],e.prototype,"renderedText",void 0),e=p([(0,r.w)("md-chip")],e),t.ELEMENT=e}(s||(s={}))},60554:t=>{t.exports=n},61200:(t,e,i)=>{i.d(e,{Icon:()=>s}),i(96798);var s,o=i(31890),r=i(26272),n=i(32022),a=i.n(n),l=i(60554),d=i.n(l),h=i(41488),c=i(40333),p=i(23968),u=i(97822),m=i(8229),y=i(57955),b=i(66873),v=i(81786),g=i(9223),f=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){var e;let i=e=class extends h.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,o=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const s="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,g.Jp)(this.computedSvgPath,t,"svg"):yield(0,g.D6)(t);s&&(this.svgIcon=s,null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(i=this.svgIcon)||void 0===i||i.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate())},new((s=void 0)||(s=Promise))((function(t,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s((function(t){t(i)}))).then(n,a)}l((o=o.apply(e,i||[])).next())}));var e,i,s,o}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:v.O.svgIconUrl}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:d()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):a().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[r.A,b.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
1503
+ `}};c([(0,a.property)({type:String})],e.prototype,"color",void 0),c([(0,a.property)({type:String})],e.prototype,"bgColor",void 0),c([(0,a.property)({type:String})],e.prototype,"textColor",void 0),c([(0,a.property)({type:String})],e.prototype,"height",void 0),c([(0,a.property)({type:String})],e.prototype,"icon",void 0),c([(0,a.property)({type:String})],e.prototype,"iconColor",void 0),c([(0,a.property)({type:String})],e.prototype,"iconSize",void 0),c([(0,a.property)({type:String})],e.prototype,"role",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"id",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"readonly",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:Number})],e.prototype,"determinateProgress",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),c([(0,a.property)({type:String})],e.prototype,"tooltipText",void 0),c([(0,a.property)({type:String})],e.prototype,"tooltipPlacement",void 0),c([(0,a.property)({type:String})],e.prototype,"iconSet",void 0),c([(0,a.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),c([(0,a.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),c([(0,a.internalProperty)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),c([(0,a.internalProperty)()],e.prototype,"renderedText",void 0),e=c([(0,r.w)("md-chip")],e),t.ELEMENT=e}(s||(s={}))},60554:t=>{t.exports=n},61200:(t,e,i)=>{i.d(e,{Icon:()=>s}),i(96798);var s,o=i(31890),r=i(26272),n=i(32022),a=i.n(n),l=i(60554),d=i.n(l),h=i(41488),p=i(40333),c=i(23968),u=i(97822),m=i(8229),y=i(57955),b=i(66873),v=i(81786),g=i(9223),f=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){var e;let i=e=class extends h.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,o=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const s="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,g.Jp)(this.computedSvgPath,t,"svg"):yield(0,g.D6)(t);s&&(this.svgIcon=s,null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(i=this.svgIcon)||void 0===i||i.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate())},new((s=void 0)||(s=Promise))((function(t,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s((function(t){t(i)}))).then(n,a)}l((o=o.apply(e,i||[])).next())}));var e,i,s,o}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:v.O.svgIconUrl}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:d()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):a().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[r.A,b.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
1504
1504
  <i
1505
1505
  part="icon"
1506
1506
  id=${this.id}
1507
- class="md-icon icon ${(0,p.classMap)(this.iconClassMap)}"
1507
+ class="md-icon icon ${(0,c.classMap)(this.iconClassMap)}"
1508
1508
  style=${(0,m.styleMap)(this.iconStyleMap)}
1509
1509
  role="img"
1510
1510
  aria-label=${this.ariaLabel}
@@ -1523,9 +1523,9 @@
1523
1523
  aria-hidden=${(0,u.ifDefined)(null!==(t=this.ariaHidden)&&void 0!==t?t:void 0)}
1524
1524
  @click=${t=>this.handleIconClick(t)}
1525
1525
  >
1526
- ${this.svgIcon?this.svgIcon:c.nothing}
1526
+ ${this.svgIcon?this.svgIcon:p.nothing}
1527
1527
  </div>
1528
- `}};i.designLookup=new Map(Object.entries(y)),f([(0,h.property)({type:String})],i.prototype,"color",void 0),f([(0,h.property)({type:String})],i.prototype,"description",void 0),f([(0,h.property)({type:String})],i.prototype,"name",void 0),f([(0,h.property)({type:String})],i.prototype,"id",void 0),f([(0,h.property)({type:String})],i.prototype,"size",void 0),f([(0,h.property)({type:String})],i.prototype,"title",void 0),f([(0,h.property)({type:String})],i.prototype,"ariaHidden",void 0),f([(0,h.property)({type:String})],i.prototype,"type",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"isActive",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),f([(0,h.property)({type:String})],i.prototype,"iconSet",void 0),f([(0,h.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),f([(0,h.internalProperty)()],i.prototype,"svgIcon",void 0),f([(0,h.property)({type:String})],i.prototype,"ariaLabel",null),i=e=f([(0,o.w)("md-icon")],i),t.ELEMENT=i}(s||(s={}))},61997:(t,e,i)=>{i.d(e,{MeetingAlert:()=>s}),i(38028),i(96798),i(61200);var s,o=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(48064),h=i(56338),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};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=t=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:t}}))},this._onClose=t=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:t}}))},this.handleSnooze=t=>{this.onSnooze?this.onSnooze(t):this._onSnooze(t),t.stopPropagation()},this.handleClose=t=>{this._onClose(t),t.stopPropagation()},this.handleKeyDown=t=>{if(t.code===o.Uz.Escape&&this.handleClose(t),t.code===o.Uz.Enter||t.code===o.Uz.Space){switch(t.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(t);break;case"snooze":this.handleSnooze(t)}t.preventDefault()}this.onKeyDown&&this.onKeyDown(t)}}getStyles(){return a.html`
1528
+ `}};i.designLookup=new Map(Object.entries(y)),f([(0,h.property)({type:String})],i.prototype,"color",void 0),f([(0,h.property)({type:String})],i.prototype,"description",void 0),f([(0,h.property)({type:String})],i.prototype,"name",void 0),f([(0,h.property)({type:String})],i.prototype,"id",void 0),f([(0,h.property)({type:String})],i.prototype,"size",void 0),f([(0,h.property)({type:String})],i.prototype,"title",void 0),f([(0,h.property)({type:String})],i.prototype,"ariaHidden",void 0),f([(0,h.property)({type:String})],i.prototype,"type",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"isActive",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),f([(0,h.property)({type:String})],i.prototype,"iconSet",void 0),f([(0,h.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),f([(0,h.internalProperty)()],i.prototype,"svgIcon",void 0),f([(0,h.property)({type:String})],i.prototype,"ariaLabel",null),i=e=f([(0,o.w)("md-icon")],i),t.ELEMENT=i}(s||(s={}))},61997:(t,e,i)=>{i.d(e,{MeetingAlert:()=>s}),i(38028),i(96798),i(61200);var s,o=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(48064),h=i(56338),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};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=t=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:t}}))},this._onClose=t=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:t}}))},this.handleSnooze=t=>{this.onSnooze?this.onSnooze(t):this._onSnooze(t),t.stopPropagation()},this.handleClose=t=>{this._onClose(t),t.stopPropagation()},this.handleKeyDown=t=>{if(t.code===o.Uz.Escape&&this.handleClose(t),t.code===o.Uz.Enter||t.code===o.Uz.Space){switch(t.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(t);break;case"snooze":this.handleSnooze(t)}t.preventDefault()}this.onKeyDown&&this.onKeyDown(t)}}getStyles(){return a.html`
1529
1529
  <style>
1530
1530
  ::slotted(img) {
1531
1531
  display: inline-block;
@@ -1537,9 +1537,9 @@
1537
1537
  }
1538
1538
  ${this.userStyles}
1539
1539
  </style>
1540
- `}static get styles(){return[n.A,h.A]}render(){const{attendees:t,message:e,onSnooze:i,role:s,src:o,status:r,title:n,closeAriaLabel:h,show:c,snoozeAriaLabel:p}=this;return a.html`
1540
+ `}static get styles(){return[n.A,h.A]}render(){const{attendees:t,message:e,onSnooze:i,role:s,src:o,status:r,title:n,closeAriaLabel:h,show:p,snoozeAriaLabel:c}=this;return a.html`
1541
1541
  ${this.getStyles()}
1542
- ${c?a.html`
1542
+ ${p?a.html`
1543
1543
  <div
1544
1544
  aria-label="Meeting Alert"
1545
1545
  class=${"md-alert md-alert--meeting"}
@@ -1556,7 +1556,7 @@
1556
1556
  <div class="md-alert__button">
1557
1557
  <md-button
1558
1558
  variant="secondary"
1559
- aria-label=${p}
1559
+ aria-label=${c}
1560
1560
  circle
1561
1561
  @click=${t=>{this.handleSnooze(t)}}
1562
1562
  .size=${40}
@@ -1579,7 +1579,7 @@
1579
1579
  </slot>
1580
1580
  </div>
1581
1581
  `:l.nothing}
1582
- `}};c([(0,a.property)({type:Array})],e.prototype,"attendees",void 0),c([(0,a.property)({type:String})],e.prototype,"closeAriaLabel",void 0),c([(0,a.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),c([(0,a.property)({attribute:!1})],e.prototype,"onSnooze",void 0),c([(0,a.property)({type:String})],e.prototype,"message",void 0),c([(0,a.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),c([(0,a.property)({type:String})],e.prototype,"role",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,a.property)({type:String})],e.prototype,"src",void 0),c([(0,a.property)({type:String})],e.prototype,"status",void 0),c([(0,a.property)({type:String})],e.prototype,"userStyles",void 0),c([(0,a.property)({type:String})],e.prototype,"title",void 0),e=c([(0,r.w)("md-meeting-alert")],e),t.ELEMENT=e}(s||(s={}))},63208:(t,e,i)=>{i.d(e,{DatePickerCalendar:()=>s}),i(17814),i(61200);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),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 a.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.datePickerProps=void 0,this.shortDay=!1,this.viewAnchorDate=(0,r.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.PS)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.SL)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.renderMonthName=()=>a.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,r.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return a.html`
1582
+ `}};p([(0,a.property)({type:Array})],e.prototype,"attendees",void 0),p([(0,a.property)({type:String})],e.prototype,"closeAriaLabel",void 0),p([(0,a.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),p([(0,a.property)({attribute:!1})],e.prototype,"onSnooze",void 0),p([(0,a.property)({type:String})],e.prototype,"message",void 0),p([(0,a.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),p([(0,a.property)({type:String})],e.prototype,"role",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"show",void 0),p([(0,a.property)({type:String})],e.prototype,"src",void 0),p([(0,a.property)({type:String})],e.prototype,"status",void 0),p([(0,a.property)({type:String})],e.prototype,"userStyles",void 0),p([(0,a.property)({type:String})],e.prototype,"title",void 0),e=p([(0,r.w)("md-meeting-alert")],e),t.ELEMENT=e}(s||(s={}))},63208:(t,e,i)=>{i.d(e,{DatePickerCalendar:()=>s}),i(17814),i(61200);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),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 a.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.datePickerProps=void 0,this.shortDay=!1,this.viewAnchorDate=(0,r.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.PS)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.SL)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.renderMonthName=()=>a.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,r.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return a.html`
1583
1583
  <md-button
1584
1584
  variant="ghost"
1585
1585
  circle
@@ -1625,7 +1625,7 @@
1625
1625
  </div>
1626
1626
  `}connectedCallback(){var t,e,i;super.connectedCallback(),this.viewAnchorDate=(null===(t=this.datePickerProps)||void 0===t?void 0:t.focused)||(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected)||(0,r.tB)(),this.localeMonth=(0,r.WV)(this.viewAnchorDate,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en").toFormat(this.monthFormat)}updated(t){var e,i,s;super.updated(t),t.has("datePickerProps")&&(null===(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected.invalidReason)&&(this.viewAnchorDate=this.datePickerProps.selected||(0,r.tB)()),this.localeMonth=(0,r.WV)(this.viewAnchorDate,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en").toFormat(this.monthFormat)),t.has("viewAnchorDate")&&(this.localeMonth=(0,r.WV)(this.viewAnchorDate,(null===(s=this.datePickerProps)||void 0===s?void 0:s.locale)||"en").toFormat(this.monthFormat))}getWeekDayName(t,e){return this.shortDay?(0,r.XY)(t,e):(0,r.DY)(t,e)}static get styles(){return[n.A,l.A]}render(){return a.html`
1627
1627
  <div class="md-datepicker__calendar" id="Datepicker-Calendar">${this.viewAnchorDate&&this.renderMonth()}</div>
1628
- `}};d([(0,a.property)({attribute:!1})],e.prototype,"monthFormat",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"filterParams",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"handleMonthChange",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),d([(0,a.property)({type:Boolean,reflect:!0,attribute:"short-day"})],e.prototype,"shortDay",void 0),d([(0,a.internalProperty)()],e.prototype,"viewAnchorDate",void 0),d([(0,a.internalProperty)()],e.prototype,"localeMonth",void 0),e=d([(0,o.w)("md-datepicker-calendar")],e),t.ELEMENT=e}(s||(s={}))},63704:(t,e,i)=>{i.d(e,{Badge:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(92019),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};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.color="",this.bgColor="",this.textColor="",this.height="",this.width="",this.outlined=!1,this.compact=!1,this.circle=!1,this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:a.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:a.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:a.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:a.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?n.html`
1628
+ `}};d([(0,a.property)({attribute:!1})],e.prototype,"monthFormat",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"filterParams",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"handleMonthChange",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),d([(0,a.property)({type:Boolean,reflect:!0,attribute:"short-day"})],e.prototype,"shortDay",void 0),d([(0,a.internalProperty)()],e.prototype,"viewAnchorDate",void 0),d([(0,a.internalProperty)()],e.prototype,"localeMonth",void 0),e=d([(0,o.w)("md-datepicker-calendar")],e),t.ELEMENT=e}(s||(s={}))},63704:(t,e,i)=>{i.d(e,{Badge:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(92019),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};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.color="",this.bgColor="",this.textColor="",this.height="",this.width="",this.outlined=!1,this.compact=!1,this.circle=!1,this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:a.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:a.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:a.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:a.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?n.html`
1629
1629
  <style>
1630
1630
  :host .md-badge {
1631
1631
  ${this.renderBgColor()};
@@ -1657,7 +1657,7 @@
1657
1657
  `)():a.nothing}
1658
1658
  <slot></slot>
1659
1659
  </span>
1660
- `}};c([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,n.property)({type:String})],e.prototype,"color",void 0),c([(0,n.property)({type:String})],e.prototype,"bgColor",void 0),c([(0,n.property)({type:String})],e.prototype,"textColor",void 0),c([(0,n.property)({type:String})],e.prototype,"height",void 0),c([(0,n.property)({type:String})],e.prototype,"width",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"outlined",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"compact",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"circle",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"split",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,n.property)({type:String})],e.prototype,"tabIndexing",void 0),c([(0,n.property)({type:String})],e.prototype,"ariaHiddenSplits",void 0),e=c([(0,o.w)("md-badge")],e),t.ELEMENT=e}(s||(s={}))},64311:(t,e,i)=>{i.d(e,{CardAi:()=>o}),i(96798),i(61200);var s,o,r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(18227),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};!function(t){t.USER_QUERY="user_query",t.RESPONSE="response"}(s||(s={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=s.RESPONSE,this.copyChecked=!1,this.thumbsUpChecked=!1,this.thumbsDownChecked=!1}static get styles(){return[n.A,h.A]}thumbsUpToggled(){this.thumbsDownChecked=!1,this.thumbsUpChecked=!this.thumbsUpChecked,this.dispatchEvent(new CustomEvent("thumbs-up-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}thumbsDownToggled(){this.thumbsUpChecked=!1,this.thumbsDownChecked=!this.thumbsDownChecked,this.dispatchEvent(new CustomEvent("thumbs-down-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}summariseMoreToggled(){this.dispatchEvent(new CustomEvent("summarise-more-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}copyToggled(){navigator.clipboard.writeText(this.cardText),this.copyChecked=!0,setTimeout((()=>{this.copyChecked=!1}),2e3)}get bottomBorderRadiusClass(){return this.timestamp?"with-bottom-border-radius":"no-bottom-border-radius"}get cardTextClassMap(){return{"md-card-ai-card-body-user-query":this.variant===s.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===s.RESPONSE}}renderHeader(){return this.variant===s.RESPONSE&&""!==this.title?a.html`
1660
+ `}};p([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),p([(0,n.property)({type:String})],e.prototype,"color",void 0),p([(0,n.property)({type:String})],e.prototype,"bgColor",void 0),p([(0,n.property)({type:String})],e.prototype,"textColor",void 0),p([(0,n.property)({type:String})],e.prototype,"height",void 0),p([(0,n.property)({type:String})],e.prototype,"width",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"outlined",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"compact",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"circle",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"split",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,n.property)({type:String})],e.prototype,"tabIndexing",void 0),p([(0,n.property)({type:String})],e.prototype,"ariaHiddenSplits",void 0),e=p([(0,o.w)("md-badge")],e),t.ELEMENT=e}(s||(s={}))},64311:(t,e,i)=>{i.d(e,{CardAi:()=>o}),i(96798),i(61200);var s,o,r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(18227),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};!function(t){t.USER_QUERY="user_query",t.RESPONSE="response"}(s||(s={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=s.RESPONSE,this.copyChecked=!1,this.thumbsUpChecked=!1,this.thumbsDownChecked=!1}static get styles(){return[n.A,h.A]}thumbsUpToggled(){this.thumbsDownChecked=!1,this.thumbsUpChecked=!this.thumbsUpChecked,this.dispatchEvent(new CustomEvent("thumbs-up-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}thumbsDownToggled(){this.thumbsUpChecked=!1,this.thumbsDownChecked=!this.thumbsDownChecked,this.dispatchEvent(new CustomEvent("thumbs-down-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}summariseMoreToggled(){this.dispatchEvent(new CustomEvent("summarise-more-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}copyToggled(){navigator.clipboard.writeText(this.cardText),this.copyChecked=!0,setTimeout((()=>{this.copyChecked=!1}),2e3)}get bottomBorderRadiusClass(){return this.timestamp?"with-bottom-border-radius":"no-bottom-border-radius"}get cardTextClassMap(){return{"md-card-ai-card-body-user-query":this.variant===s.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===s.RESPONSE}}renderHeader(){return this.variant===s.RESPONSE&&""!==this.title?a.html`
1661
1661
  <div class="md-card-ai-header">
1662
1662
  <slot name="card-header-aside">
1663
1663
  <md-icon name="cisco-ai-assistant-color" iconSet="momentumBrandVisuals"></md-icon>
@@ -1733,15 +1733,15 @@
1733
1733
  ${this.renderHeader()}
1734
1734
  <div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
1735
1735
  </div>
1736
- `}};c([(0,a.property)({type:String})],e.prototype,"id",void 0),c([(0,a.property)({type:String})],e.prototype,"title",void 0),c([(0,a.property)({type:String})],e.prototype,"cardText",void 0),c([(0,a.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,a.property)({type:String})],e.prototype,"variant",void 0),c([(0,a.internalProperty)()],e.prototype,"copyChecked",void 0),c([(0,a.internalProperty)()],e.prototype,"thumbsUpChecked",void 0),c([(0,a.internalProperty)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(o||(o={}))},65796:t=>{t.exports=f},65875:t=>{t.exports=A},66245:(t,e,i)=>{i.d(e,{ListItem:()=>s});var s,o=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(23968),d=i(21392),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((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,this.requestUpdate("selected",e)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[n.A,d.A]}render(){return a.html`
1736
+ `}};p([(0,a.property)({type:String})],e.prototype,"id",void 0),p([(0,a.property)({type:String})],e.prototype,"title",void 0),p([(0,a.property)({type:String})],e.prototype,"cardText",void 0),p([(0,a.property)({type:String})],e.prototype,"timestamp",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),p([(0,a.property)({type:String})],e.prototype,"variant",void 0),p([(0,a.internalProperty)()],e.prototype,"copyChecked",void 0),p([(0,a.internalProperty)()],e.prototype,"thumbsUpChecked",void 0),p([(0,a.internalProperty)()],e.prototype,"thumbsDownChecked",void 0),e=p([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(o||(o={}))},65796:t=>{t.exports=f},65875:t=>{t.exports=A},66245:(t,e,i)=>{i.d(e,{ListItem:()=>s});var s,o=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(23968),d=i(21392),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((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,this.requestUpdate("selected",e)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[n.A,d.A]}render(){return a.html`
1737
1737
  <li class="md-list-item ${(0,l.classMap)(this.listItemTemplateClassMap)}" part="list-item">
1738
1738
  <slot></slot>
1739
1739
  </li>
1740
- `}};h([(0,a.property)({type:String,reflect:!0})],e.prototype,"role",void 0),h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=h([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(s||(s={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>n,sg:()=>o,ws:()=>s});const s=(t,e)=>{const i=[];[e].forEach((e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const s=[],o=t.toLowerCase(),r=e.toLowerCase();let n=0,a=o.indexOf(r,n);for(;a>-1;)n=a+i,s.push([a,n]),a=o.indexOf(r,a+1);return s})(t,e))}));const s=(([...t])=>{if(!t.length)return[];t.sort(((t,e)=>t[0]!==e[0]?t[0]-e[0]:t[1]-e[1]));const e=[];let i=t[0][0],s=t[0][1];return t.shift(),t.forEach((([t,o])=>{t>=s?(e.push([i,s]),i=t,s=o):o>s&&(s=o)})),e.push([i,s]),e})(i),o=[];let r=0;return s.forEach((([e,i])=>{r!==e&&o.push({range:[e,i],matching:!1,text:t.slice(r,e)}),o.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i})),r!==t.length&&o.push({range:[r],matching:!1,text:t.slice(r)}),o};function o(t,e,i){let s;return function(...o){const r=this,n=i&&!s;clearTimeout(s),s=setTimeout((function(){s=null,i||t.apply(r,o)}),e),n&&t.apply(r,o)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const s=i.closest(t);return null!=s?s:e(i.getRootNode().host)}(e)}function n(t,e){return e>=0&&e<t.length?t[e]:void 0}},68250:t=>{t.exports=m},68490:(t,e,i)=>{i.d(e,{List:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(97822),h=i(21392),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};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback(),this._role=this.getAttribute("role")||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}switchListItemOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}setActivated(t){-1!==t&&(this.activated=t,this.selected=t,this.setSelected(t))}findSelectedListItemIndex(){return this.slotted.findIndex((t=>t.selected))}setSelected(t){const e=this.findSelectedListItemIndex();-1!==e&&e!==t&&(this.slotted[e].selected=!1),this.slotted[t]&&(this.slotted[t].selected=!0)}updated(t){super.updated(t),t.has("slotted")&&this.setActivated(this.activated),t.has("activated")&&this.setActivated(this.activated),t.has("label")&&this.setAttribute("aria-label",this.label)}isListItemDisabled(t){var e;const i=this.slotted[t];return null===(e=null==i?void 0:i.disabled)||void 0===e||e}handleClick(t){const e=this.findListItemIndex(t);-1!==e&&(this.isListItemDisabled(e)||(this.setActivated(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case o.Uz.Home:this.switchListItemOnArrowPress(0);break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:t.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:t.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[a.A,h.A]}render(){return l.html`
1740
+ `}};h([(0,a.property)({type:String,reflect:!0})],e.prototype,"role",void 0),h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=h([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(s||(s={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>n,sg:()=>o,ws:()=>s});const s=(t,e)=>{const i=[];[e].forEach((e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const s=[],o=t.toLowerCase(),r=e.toLowerCase();let n=0,a=o.indexOf(r,n);for(;a>-1;)n=a+i,s.push([a,n]),a=o.indexOf(r,a+1);return s})(t,e))}));const s=(([...t])=>{if(!t.length)return[];t.sort(((t,e)=>t[0]!==e[0]?t[0]-e[0]:t[1]-e[1]));const e=[];let i=t[0][0],s=t[0][1];return t.shift(),t.forEach((([t,o])=>{t>=s?(e.push([i,s]),i=t,s=o):o>s&&(s=o)})),e.push([i,s]),e})(i),o=[];let r=0;return s.forEach((([e,i])=>{r!==e&&o.push({range:[e,i],matching:!1,text:t.slice(r,e)}),o.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i})),r!==t.length&&o.push({range:[r],matching:!1,text:t.slice(r)}),o};function o(t,e,i){let s;return function(...o){const r=this,n=i&&!s;clearTimeout(s),s=setTimeout((function(){s=null,i||t.apply(r,o)}),e),n&&t.apply(r,o)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const s=i.closest(t);return null!=s?s:e(i.getRootNode().host)}(e)}function n(t,e){return e>=0&&e<t.length?t[e]:void 0}},68250:t=>{t.exports=m},68490:(t,e,i)=>{i.d(e,{List:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(97822),h=i(21392),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};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback(),this._role=this.getAttribute("role")||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}switchListItemOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}setActivated(t){-1!==t&&(this.activated=t,this.selected=t,this.setSelected(t))}findSelectedListItemIndex(){return this.slotted.findIndex((t=>t.selected))}setSelected(t){const e=this.findSelectedListItemIndex();-1!==e&&e!==t&&(this.slotted[e].selected=!1),this.slotted[t]&&(this.slotted[t].selected=!0)}updated(t){super.updated(t),t.has("slotted")&&this.setActivated(this.activated),t.has("activated")&&this.setActivated(this.activated),t.has("label")&&this.setAttribute("aria-label",this.label)}isListItemDisabled(t){var e;const i=this.slotted[t];return null===(e=null==i?void 0:i.disabled)||void 0===e||e}handleClick(t){const e=this.findListItemIndex(t);-1!==e&&(this.isListItemDisabled(e)||(this.setActivated(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case o.Uz.Home:this.switchListItemOnArrowPress(0);break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:t.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:t.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[a.A,h.A]}render(){return l.html`
1741
1741
  <ul role=${(0,d.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
1742
1742
  <slot name="list-item"></slot>
1743
1743
  </ul>
1744
- `}};c([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"activated",void 0),c([(0,l.query)("slot[name='list-item']")],e.prototype,"listItemSlot",void 0),e=c([(0,n.w)("md-list")],e),t.ELEMENT=e}(s||(s={}))},69e3:t=>{t.exports=$},69112:(t,e,i)=>{i.d(e,{Grabber:()=>s}),i(61200);var s,o=i(37719),r=i(3001),n=i(31890),a=i(26283),l=i(26272),d=i(41488),h=i(23968),c=i(97822),p=i(42215),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,r.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,p.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(t){this.disableClickToggle||(0,a.o)(t.code)&&(t.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get iconName(){return this.dragger?"list-menu-bold":"leading"===this.alignment||"trailing"===this.alignment?this.checked?"arrow-left-bold":"arrow-right-bold":this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
1744
+ `}};p([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"activated",void 0),p([(0,l.query)("slot[name='list-item']")],e.prototype,"listItemSlot",void 0),e=p([(0,n.w)("md-list")],e),t.ELEMENT=e}(s||(s={}))},69e3:t=>{t.exports=$},69112:(t,e,i)=>{i.d(e,{Grabber:()=>s}),i(61200);var s,o=i(37719),r=i(3001),n=i(31890),a=i(26283),l=i(26272),d=i(41488),h=i(23968),p=i(97822),c=i(42215),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,r.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,c.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(t){this.disableClickToggle||(0,a.o)(t.code)&&(t.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get iconName(){return this.dragger?"list-menu-bold":"leading"===this.alignment||"trailing"===this.alignment?this.checked?"arrow-left-bold":"arrow-right-bold":this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
1745
1745
  <div class="md-grabber__container ${(0,h.classMap)(this.grabberContainerClassMap)}">
1746
1746
  <button
1747
1747
  class="md-grabber ${(0,h.classMap)(this.grabberClassMap)}"
@@ -1749,7 +1749,7 @@
1749
1749
  aria-pressed=${this.checked}
1750
1750
  ?disabled=${this.disabled}
1751
1751
  tabindex="0"
1752
- aria-label=${(0,c.ifDefined)(this.label.length?this.label:void 0)}
1752
+ aria-label=${(0,p.ifDefined)(this.label.length?this.label:void 0)}
1753
1753
  type="button"
1754
1754
  role="button"
1755
1755
  @click="${()=>this.handleMouseDown()}"
@@ -1762,13 +1762,13 @@
1762
1762
  <md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
1763
1763
  </button>
1764
1764
  </div>
1765
- `}};u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:String})],e.prototype,"checkedLabel",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"hovered",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"visible",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"focused",void 0),u([(0,d.property)({type:Boolean,attribute:"disable-click-toggle"})],e.prototype,"disableClickToggle",void 0),u([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"dragger",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"shadow",void 0),e=u([(0,n.w)("md-grabber")],e),t.ELEMENT=e}(s||(s={}))},69371:t=>{t.exports=y},69494:(t,e,i)=>{i.d(e,{DateRangePicker:()=>s});var s,o=i(31890),r=i(81625),n=i(41488),a=i(65796),l=i(38654),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 l.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{this.startDate&&this.endDate&&(this.value=`${(0,r.az)(this.startDate)} - ${(0,r.az)(this.endDate)}`)},this.handleDateSelection=t=>{var e;const i=t.detail.data;i&&(this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(i),this.endDate=void 0):i<a.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(i)):this.endDate=this.dateToSqlTranslate(i):this.startDate=this.dateToSqlTranslate(i),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)||(this.emitDateRange(),this.updateValue()))}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-pre-selection-change",this.handleDateSelection),this.updateValue()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-pre-selection-change",this.handleDateSelection)}setSelected(){}dateToSqlTranslate(t){return t.toSQLDate()}onApplyClick(){this.emitDateRange(),this.updateValue(),this.shouldCloseOnSelect&&this.setOpen(!1)}emitDateRange(){if(!this.startDate||!this.endDate)return;const t=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(t)}};d([(0,n.property)({type:String,attribute:"start-date",reflect:!0})],e.prototype,"startDate",void 0),d([(0,n.property)({type:String,attribute:"end-date",reflect:!0})],e.prototype,"endDate",void 0),e=d([(0,o.w)("md-date-range-picker")],e),t.ELEMENT=e}(s||(s={}))},69788:(t,e,i)=>{i.d(e,{Loading:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(76700),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="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}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.querySelectorAll(".md-loading__icon");if(!e)return;let i=null;const s=1400,o=t=>{if(!this.isAnimating)return;i||(i=t);const r=(t-i)%s;e.forEach(((t,e)=>{const i=(r-200*e+s)%s;let o=0,n=.1;if(i<280){const t=.1+i/280*.9;o=t,n=t}else if(i<1400){const t=Math.min((i-280)/1120*2,1);o=Math.max(1-.9*t,.9),n=Math.max(1-.9*t,.2)}t.style.transform=`scale(${o})`,t.style.opacity=`${n}`})),this.animationFrameId=requestAnimationFrame(o)};this.animationFrameId=requestAnimationFrame(o)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".md-loading__icon");e&&e.forEach((t=>{t.style.transform="scale(0, 0)",t.style.opacity="0.1"}))}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return n.html`
1765
+ `}};u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:String})],e.prototype,"checkedLabel",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"hovered",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"visible",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"focused",void 0),u([(0,d.property)({type:Boolean,attribute:"disable-click-toggle"})],e.prototype,"disableClickToggle",void 0),u([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"dragger",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"shadow",void 0),e=u([(0,n.w)("md-grabber")],e),t.ELEMENT=e}(s||(s={}))},69371:t=>{t.exports=y},69494:(t,e,i)=>{i.d(e,{DateRangePicker:()=>s});var s,o=i(31890),r=i(81625),n=i(41488),a=i(65796),l=i(38654),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 l.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{this.startDate&&this.endDate&&(this.value=`${(0,r.az)(this.startDate)} - ${(0,r.az)(this.endDate)}`)},this.handleDateSelection=t=>{var e;const i=t.detail.data;i&&(this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(i),this.endDate=void 0):i<a.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(i)):this.endDate=this.dateToSqlTranslate(i):this.startDate=this.dateToSqlTranslate(i),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)||(this.emitDateRange(),this.updateValue()))}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-pre-selection-change",this.handleDateSelection),this.updateValue()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-pre-selection-change",this.handleDateSelection)}updated(t){super.updated(t),(t.has("startDate")||t.has("endDate"))&&this.updateValue()}setSelected(){}dateToSqlTranslate(t){return t.toSQLDate()}onApplyClick(){this.emitDateRange(),this.updateValue(),this.shouldCloseOnSelect&&this.setOpen(!1)}emitDateRange(){if(!this.startDate||!this.endDate)return;const t=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(t)}};d([(0,n.property)({type:String,attribute:"start-date",reflect:!0})],e.prototype,"startDate",void 0),d([(0,n.property)({type:String,attribute:"end-date",reflect:!0})],e.prototype,"endDate",void 0),e=d([(0,o.w)("md-date-range-picker")],e),t.ELEMENT=e}(s||(s={}))},69788:(t,e,i)=>{i.d(e,{Loading:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(76700),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="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}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.querySelectorAll(".md-loading__icon");if(!e)return;let i=null;const s=1400,o=t=>{if(!this.isAnimating)return;i||(i=t);const r=(t-i)%s;e.forEach(((t,e)=>{const i=(r-200*e+s)%s;let o=0,n=.1;if(i<280){const t=.1+i/280*.9;o=t,n=t}else if(i<1400){const t=Math.min((i-280)/1120*2,1);o=Math.max(1-.9*t,.9),n=Math.max(1-.9*t,.2)}t.style.transform=`scale(${o})`,t.style.opacity=`${n}`})),this.animationFrameId=requestAnimationFrame(o)};this.animationFrameId=requestAnimationFrame(o)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".md-loading__icon");e&&e.forEach((t=>{t.style.transform="scale(0, 0)",t.style.opacity="0.1"}))}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return n.html`
1766
1766
  <div class="md-loading ${(0,a.classMap)(this.loadingClassMap)}">
1767
1767
  <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1768
1768
  <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1769
1769
  <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1770
1770
  </div>
1771
- `}};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`
1771
+ `}};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),p=i(84157),c=i.n(p),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,c(),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`
1772
1772
  <div class="md-popover">
1773
1773
  <slot name="triggerElement" aria-expanded=${this.isOpen}></slot>
1774
1774
  <div
@@ -1793,15 +1793,15 @@
1793
1793
  </div>
1794
1794
  </div>
1795
1795
  </div>
1796
- `}};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.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).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}).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}})}))}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`
1796
+ `}};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),p=i(97822),c=(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.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,c.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).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}).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}})}))}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`
1797
1797
  ${this.show?d.html`
1798
1798
  <div
1799
1799
  class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
1800
1800
  part="floating"
1801
1801
  role="dialog"
1802
- aria-label=${(0,c.ifDefined)(this.label||void 0)}
1802
+ aria-label=${(0,p.ifDefined)(this.label||void 0)}
1803
1803
  aria-modal="true"
1804
- style=${(0,c.ifDefined)(this.containerRect?`width: ${this.full?"100% !important":`${this.containerRect.width}px !important`};\n height: ${this.full?"100% !important":`${this.containerRect.height}px !important`};\n top: ${this.full?"0 !important":""};\n left: ${this.full?"0 !important":""};\n bottom: ${this.full?"0 !important":""};\n right: ${this.full?"0 !important":""};\n ${this.full?"transform: none !important":""};\n ${this.full?"":`transform: ${this.position?`translate(${this.position.x}px, ${this.position.y}px)`:this.containerTransform} !important`};`:void 0)}
1804
+ style=${(0,p.ifDefined)(this.containerRect?`width: ${this.full?"100% !important":`${this.containerRect.width}px !important`};\n height: ${this.full?"100% !important":`${this.containerRect.height}px !important`};\n top: ${this.full?"0 !important":""};\n left: ${this.full?"0 !important":""};\n bottom: ${this.full?"0 !important":""};\n right: ${this.full?"0 !important":""};\n ${this.full?"transform: none !important":""};\n ${this.full?"":`transform: ${this.position?`translate(${this.position.x}px, ${this.position.y}px)`:this.containerTransform} !important`};`:void 0)}
1805
1805
  >
1806
1806
  <div class="md-floating__header">
1807
1807
  <div class="md-floating__header-text">
@@ -1982,7 +1982,7 @@
1982
1982
  </div>
1983
1983
  ${this.primaryButton||this.secondaryButton||this.link?this.renderNewAlertDefaultFooter():this.renderSlottedFooter()}
1984
1984
  </div>
1985
- `}get alertRender(){return this.newMomentum?this.newRender():this.legacyRender()}render(){return n.html` ${this.show?this.alertRender:a.nothing} `}};h([(0,n.property)({type:Boolean})],e.prototype,"closable",void 0),h([(0,n.property)({type:String})],e.prototype,"message",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"internalClose",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"btnlabel",void 0),h([(0,n.property)({type:String})],e.prototype,"type",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonVariant",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonColor",void 0),h([(0,n.property)()],e.prototype,"primaryButtonClickFunction",void 0),h([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),h([(0,n.property)()],e.prototype,"secondaryButtonClickFunction",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"link",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showMore",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.query)('slot[name="alert-footer"]')],e.prototype,"alertFooterSlot",void 0),h([(0,n.internalProperty)()],e.prototype,"hasFooterSlotContent",void 0),e=h([(0,o.w)("md-alert")],e),t.ELEMENT=e}(s||(s={}))},77935:(t,e,i)=>{i.d(e,{TableAdvanced:()=>g}),i(96798),i(61200),i(11323);var s=i(31890),o=i(28373),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(3527),c=i(28187),p=i.n(c),u=i(87421),m=i(56076),y=i(21796),b=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 v=document.createElement("img");var g;v.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,o.d)(n.LitElement)){constructor(){super(...arguments),this.isRowFocusable="true",this.error="",this.COLS=[],this.ROWS=[],this.updCols=()=>this.requestUpdate("COLS"),this.updRows=()=>this.requestUpdate("ROWS"),this.dragRow=-1,this.dropRow=-1,this.drops=[],this.dragRowElem=null,this.dragCol=-1,this.dropCol=-1,this.isResizing=!1,this.isSelectable=!1,this.selected={},this.expandedRowIdx={},this.dragover=t=>t.preventDefault(),this.eX=0,this.onResize=(t,e)=>{var i;if(-1!=this.dragCol||-1!=this.dragRow)return;this.isResizing=!0;const s=t.target;null===(i=t.dataTransfer)||void 0===i||i.setDragImage(v,0,0);const o=this.COLS.map((t=>this.shadowRoot.querySelector(`th.col-index-${t.index}`)));this.COLS.forEach(((t,e)=>t.width=o[e].offsetWidth+"px")),this.updCols();const r=t.x;this.eX=t.x;let n=-1,a=-1,l=-1;const d=this.COLS[e.index-1],h=o[e.index],c=o[e.index-1],p=h.offsetWidth,u=c.offsetWidth,m=()=>{const t=this.eX;if(n!=t&&0!=t){n=t;const i=n-r;a=p-i,l=u+i,e.width=a+"px",d.width=l+"px",this.updCols()}},y=t=>this.eX=t.x,b=()=>{this.isResizing=!1,s.removeEventListener("drag",m),s.removeEventListener("dragend",b),document.removeEventListener("dragover",y)};s.addEventListener("drag",m),s.addEventListener("dragend",b),document.addEventListener("dragover",y)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}update(t){super.update(t),t.has("data")&&(this.updateTableData(),this.updateDataInTable())}updateTableData(){if("string"==typeof this.data)try{this.tableData=JSON.parse(this.data)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the config json")}else this.tableData=Object.assign({},this.data)}updateTableConfig(){if("string"==typeof this.config)try{this.tableConfig=JSON.parse(this.config)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the data json")}else this.tableConfig=Object.assign({},this.config)}populateColumns(){var t;let e=0;const i=(t,i)=>{var s,o,r,n;const a=t.filters||(null===(o=null===(s=this.tableConfig.default)||void 0===s?void 0:s.col)||void 0===o?void 0:o.filters),l=a?"forString"==a?y.d.optionsString:"forNumber"==a?y.d.optionsNumber:a.length?a:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(n=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===n?void 0:n.sorter),isCollapsable:this.tableConfig.cols.collapse==t.id,filter:l?{list:l,selectedIndex:0,input:"",active:!1,menuVisible:!1}:void 0})};this.tableConfig.cols.define.forEach((t=>{"children"in t?t.children.forEach((e=>i(e,{name:t.groupName,length:t.children.length}))):i(t)})),this.isSelectable=!!this.tableConfig.rows&&"none"!=(null===(t=this.tableConfig.rows)||void 0===t?void 0:t.selectable)}populateData(){const t=this.COLS.length;if("csv"in this.tableData){const t=p().parse(this.tableData.csv,{skipEmptyLines:!0,transform:t=>t.trim()});if(t.errors)return void(this.error="PARSE ERROR:\n"+JSON.stringify(t.errors,null,2));{const e=t.data;this.ROWS=e.map((t=>t.map((t=>({text:t})))))}}else if("list2d"in this.tableData)this.ROWS=this.tableData.list2d.map((t=>t.map((t=>({text:t})))));else{for(;this.tableData.list.length>t;)this.ROWS.push(this.tableData.list.splice(0,t).map((t=>({text:t}))));0!=this.tableData.list.length&&this.ROWS.push(this.tableData.list.map((t=>({text:t}))))}0!=this.ROWS.length||(this.error="DATA ERROR: Data is empty")}validateData(){const t=this.COLS.length;this.ROWS.reduce(((t,e)=>t+e.length),0)%t==0?this.ROWS.forEach(((e,i)=>{const s=e.length;s!=t&&(this.error=`DATA ERROR: Total number of cols (=${t}) and data[${i}] length (=${s}) mismatch`)})):this.error=this.error="DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values."}populateTemplate(){const t=this.tableConfig.cellTemplates,e=Object.keys(t||{});t&&e.length&&this.ROWS.forEach(((e,i)=>{e.forEach(((e,s)=>{for(const o in t){const r=e.text.indexOf(o);if(-1!=r){const n=t[o],a=this.querySelector(`#${n.templateName}`);if(null==a){console.warn(`cellTemplates["${o}"]: Missing '${n.templateName}' template.`);continue}let l=e.text.replace(o,"");n.contentCb&&(l=n.contentCb({col:s,row:i,content:l,insertIndex:r})),this.ROWS[i][s]={text:l,template:{template:a,templateCb:n.templateCb,insertIndex:"replace"==n.contentUse?-1:r}};break}}}))}))}setDefaultFilterAndSort(){var t,e;const i=null===(t=this.tableConfig.default)||void 0===t?void 0:t.sort;if(i){const t=this.COLS.find((t=>t.options.id==i.colId));t?this.sort(t,i.order):console.warn(`Cant find ${i.colId} col - for sorting`)}const s=null===(e=this.tableConfig.default)||void 0===e?void 0:e.filter;if(s){const t=this.COLS.find((t=>t.options.id==s.colId));t?t.filter?(t.filter.selectedIndex=s.selectedIndex,t.filter.input=s.input,this.updCols(),this.filter(t)):console.warn(`Cant find filters on ${s.colId} col`):console.warn(`Cant find ${s.colId} col - for filtering`)}}populateTable(){this.populateColumns(),this.populateData(),this.validateData(),this.setDefaultFilterAndSort(),this.populateTemplate()}updateDataInTable(){this.populateData(),this.validateData(),this.populateTemplate()}onDropRow(){this.dragRow!=this.dropRow&&this.drops.push([this.dragRow,this.dropRow]),this.dragRow=-1,this.dropRow=-1,this.dragRowElem&&(this.dragRowElem.setAttribute("draggable","false"),this.dragRowElem=null)}onDropCol(){if(this.dragCol!=this.dropCol){const t=this.COLS[this.dragCol],e=this.COLS[this.dropCol],i=t.group,s=e.group,o=t.index,r=e.index;t.group=s,e.group=i,t.index=r,e.index=o,this.COLS[this.dragCol]=e,this.COLS[this.dropCol]=t,this.ROWS.forEach((t=>{const e=t[this.dragCol],i=t[this.dropCol];t[this.dragCol]=i,t[this.dropCol]=e})),this.updCols(),this.updRows()}this.dragCol=-1,this.dropCol=-1}sort(t,e){t.sorter&&(this.clearSelection(),this.drops=[],this.COLS.forEach((i=>{i.options.id==t.options.id?i.sort=e||("default"==i.sort?"ascending":"ascending"==i.sort?"descending":"default"):i.sort="default"})),this.updCols(),this.requestUpdate(),this["md-table-advanced-change"].emit({type:"sort",order:t.sort}))}filter(t){if(!t.filter)return;this.clearSelection(),this.drops=[];const e=t.filter.input.trim(),i=t.filter.list[t.filter.selectedIndex];t.filter.active=!!e,this.requestUpdate(),e?this["md-table-advanced-change"].emit({type:"filter-on",filter:i,input:e}):this["md-table-advanced-change"].emit({type:"filter-off",filter:t.filter.list[t.filter.selectedIndex]})}selectRow(t){var e;const i=t.row.idx,s=Object.prototype.hasOwnProperty.call(this.selected,i);"multiple"==(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)?(t.metaKey?s?delete this.selected[i]:this.selected[i]=!0:t.shiftKey||(this.selected={[i]:!0}),this["md-table-advanced-change"].emit({type:"multi-select",rows:Object.keys(this.selected).map((t=>+t))})):s?this.clearSelection():(this.selected={[i]:!0},this["md-table-advanced-change"].emit({type:"select",index:i})),this.requestUpdate("selected")}clearSelection(){this.selected={},this.requestUpdate("selected")}collapseToggle(t,e){t.stopPropagation(),this.expandedRowIdx[e]?(delete this.expandedRowIdx[e],this["md-table-advanced-change"].emit({type:"collapse",row:e})):(this.expandedRowIdx[e]=!0,this["md-table-advanced-change"].emit({type:"expand",row:e})),this.clearSelection(),this.requestUpdate()}render(){if(this.error)return n.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return n.html`
1985
+ `}get alertRender(){return this.newMomentum?this.newRender():this.legacyRender()}render(){return n.html` ${this.show?this.alertRender:a.nothing} `}};h([(0,n.property)({type:Boolean})],e.prototype,"closable",void 0),h([(0,n.property)({type:String})],e.prototype,"message",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"internalClose",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"btnlabel",void 0),h([(0,n.property)({type:String})],e.prototype,"type",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonVariant",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonColor",void 0),h([(0,n.property)()],e.prototype,"primaryButtonClickFunction",void 0),h([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),h([(0,n.property)()],e.prototype,"secondaryButtonClickFunction",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"link",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showMore",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.query)('slot[name="alert-footer"]')],e.prototype,"alertFooterSlot",void 0),h([(0,n.internalProperty)()],e.prototype,"hasFooterSlotContent",void 0),e=h([(0,o.w)("md-alert")],e),t.ELEMENT=e}(s||(s={}))},77935:(t,e,i)=>{i.d(e,{TableAdvanced:()=>g}),i(96798),i(61200),i(11323);var s=i(31890),o=i(28373),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(3527),p=i(28187),c=i.n(p),u=i(87421),m=i(56076),y=i(21796),b=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 v=document.createElement("img");var g;v.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,o.d)(n.LitElement)){constructor(){super(...arguments),this.isRowFocusable="true",this.error="",this.COLS=[],this.ROWS=[],this.updCols=()=>this.requestUpdate("COLS"),this.updRows=()=>this.requestUpdate("ROWS"),this.dragRow=-1,this.dropRow=-1,this.drops=[],this.dragRowElem=null,this.dragCol=-1,this.dropCol=-1,this.isResizing=!1,this.isSelectable=!1,this.selected={},this.expandedRowIdx={},this.dragover=t=>t.preventDefault(),this.eX=0,this.onResize=(t,e)=>{var i;if(-1!=this.dragCol||-1!=this.dragRow)return;this.isResizing=!0;const s=t.target;null===(i=t.dataTransfer)||void 0===i||i.setDragImage(v,0,0);const o=this.COLS.map((t=>this.shadowRoot.querySelector(`th.col-index-${t.index}`)));this.COLS.forEach(((t,e)=>t.width=o[e].offsetWidth+"px")),this.updCols();const r=t.x;this.eX=t.x;let n=-1,a=-1,l=-1;const d=this.COLS[e.index-1],h=o[e.index],p=o[e.index-1],c=h.offsetWidth,u=p.offsetWidth,m=()=>{const t=this.eX;if(n!=t&&0!=t){n=t;const i=n-r;a=c-i,l=u+i,e.width=a+"px",d.width=l+"px",this.updCols()}},y=t=>this.eX=t.x,b=()=>{this.isResizing=!1,s.removeEventListener("drag",m),s.removeEventListener("dragend",b),document.removeEventListener("dragover",y)};s.addEventListener("drag",m),s.addEventListener("dragend",b),document.addEventListener("dragover",y)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}update(t){super.update(t),t.has("data")&&(this.updateTableData(),this.updateDataInTable())}updateTableData(){if("string"==typeof this.data)try{this.tableData=JSON.parse(this.data)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the config json")}else this.tableData=Object.assign({},this.data)}updateTableConfig(){if("string"==typeof this.config)try{this.tableConfig=JSON.parse(this.config)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the data json")}else this.tableConfig=Object.assign({},this.config)}populateColumns(){var t;let e=0;const i=(t,i)=>{var s,o,r,n;const a=t.filters||(null===(o=null===(s=this.tableConfig.default)||void 0===s?void 0:s.col)||void 0===o?void 0:o.filters),l=a?"forString"==a?y.d.optionsString:"forNumber"==a?y.d.optionsNumber:a.length?a:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(n=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===n?void 0:n.sorter),isCollapsable:this.tableConfig.cols.collapse==t.id,filter:l?{list:l,selectedIndex:0,input:"",active:!1,menuVisible:!1}:void 0})};this.tableConfig.cols.define.forEach((t=>{"children"in t?t.children.forEach((e=>i(e,{name:t.groupName,length:t.children.length}))):i(t)})),this.isSelectable=!!this.tableConfig.rows&&"none"!=(null===(t=this.tableConfig.rows)||void 0===t?void 0:t.selectable)}populateData(){const t=this.COLS.length;if("csv"in this.tableData){const t=c().parse(this.tableData.csv,{skipEmptyLines:!0,transform:t=>t.trim()});if(t.errors)return void(this.error="PARSE ERROR:\n"+JSON.stringify(t.errors,null,2));{const e=t.data;this.ROWS=e.map((t=>t.map((t=>({text:t})))))}}else if("list2d"in this.tableData)this.ROWS=this.tableData.list2d.map((t=>t.map((t=>({text:t})))));else{for(;this.tableData.list.length>t;)this.ROWS.push(this.tableData.list.splice(0,t).map((t=>({text:t}))));0!=this.tableData.list.length&&this.ROWS.push(this.tableData.list.map((t=>({text:t}))))}0!=this.ROWS.length||(this.error="DATA ERROR: Data is empty")}validateData(){const t=this.COLS.length;this.ROWS.reduce(((t,e)=>t+e.length),0)%t==0?this.ROWS.forEach(((e,i)=>{const s=e.length;s!=t&&(this.error=`DATA ERROR: Total number of cols (=${t}) and data[${i}] length (=${s}) mismatch`)})):this.error=this.error="DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values."}populateTemplate(){const t=this.tableConfig.cellTemplates,e=Object.keys(t||{});t&&e.length&&this.ROWS.forEach(((e,i)=>{e.forEach(((e,s)=>{for(const o in t){const r=e.text.indexOf(o);if(-1!=r){const n=t[o],a=this.querySelector(`#${n.templateName}`);if(null==a){console.warn(`cellTemplates["${o}"]: Missing '${n.templateName}' template.`);continue}let l=e.text.replace(o,"");n.contentCb&&(l=n.contentCb({col:s,row:i,content:l,insertIndex:r})),this.ROWS[i][s]={text:l,template:{template:a,templateCb:n.templateCb,insertIndex:"replace"==n.contentUse?-1:r}};break}}}))}))}setDefaultFilterAndSort(){var t,e;const i=null===(t=this.tableConfig.default)||void 0===t?void 0:t.sort;if(i){const t=this.COLS.find((t=>t.options.id==i.colId));t?this.sort(t,i.order):console.warn(`Cant find ${i.colId} col - for sorting`)}const s=null===(e=this.tableConfig.default)||void 0===e?void 0:e.filter;if(s){const t=this.COLS.find((t=>t.options.id==s.colId));t?t.filter?(t.filter.selectedIndex=s.selectedIndex,t.filter.input=s.input,this.updCols(),this.filter(t)):console.warn(`Cant find filters on ${s.colId} col`):console.warn(`Cant find ${s.colId} col - for filtering`)}}populateTable(){this.populateColumns(),this.populateData(),this.validateData(),this.setDefaultFilterAndSort(),this.populateTemplate()}updateDataInTable(){this.populateData(),this.validateData(),this.populateTemplate()}onDropRow(){this.dragRow!=this.dropRow&&this.drops.push([this.dragRow,this.dropRow]),this.dragRow=-1,this.dropRow=-1,this.dragRowElem&&(this.dragRowElem.setAttribute("draggable","false"),this.dragRowElem=null)}onDropCol(){if(this.dragCol!=this.dropCol){const t=this.COLS[this.dragCol],e=this.COLS[this.dropCol],i=t.group,s=e.group,o=t.index,r=e.index;t.group=s,e.group=i,t.index=r,e.index=o,this.COLS[this.dragCol]=e,this.COLS[this.dropCol]=t,this.ROWS.forEach((t=>{const e=t[this.dragCol],i=t[this.dropCol];t[this.dragCol]=i,t[this.dropCol]=e})),this.updCols(),this.updRows()}this.dragCol=-1,this.dropCol=-1}sort(t,e){t.sorter&&(this.clearSelection(),this.drops=[],this.COLS.forEach((i=>{i.options.id==t.options.id?i.sort=e||("default"==i.sort?"ascending":"ascending"==i.sort?"descending":"default"):i.sort="default"})),this.updCols(),this.requestUpdate(),this["md-table-advanced-change"].emit({type:"sort",order:t.sort}))}filter(t){if(!t.filter)return;this.clearSelection(),this.drops=[];const e=t.filter.input.trim(),i=t.filter.list[t.filter.selectedIndex];t.filter.active=!!e,this.requestUpdate(),e?this["md-table-advanced-change"].emit({type:"filter-on",filter:i,input:e}):this["md-table-advanced-change"].emit({type:"filter-off",filter:t.filter.list[t.filter.selectedIndex]})}selectRow(t){var e;const i=t.row.idx,s=Object.prototype.hasOwnProperty.call(this.selected,i);"multiple"==(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)?(t.metaKey?s?delete this.selected[i]:this.selected[i]=!0:t.shiftKey||(this.selected={[i]:!0}),this["md-table-advanced-change"].emit({type:"multi-select",rows:Object.keys(this.selected).map((t=>+t))})):s?this.clearSelection():(this.selected={[i]:!0},this["md-table-advanced-change"].emit({type:"select",index:i})),this.requestUpdate("selected")}clearSelection(){this.selected={},this.requestUpdate("selected")}collapseToggle(t,e){t.stopPropagation(),this.expandedRowIdx[e]?(delete this.expandedRowIdx[e],this["md-table-advanced-change"].emit({type:"collapse",row:e})):(this.expandedRowIdx[e]=!0,this["md-table-advanced-change"].emit({type:"expand",row:e})),this.clearSelection(),this.requestUpdate()}render(){if(this.error)return n.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return n.html`
1986
1986
  <div class="md-table-advanced">
1987
1987
  <slot></slot>
1988
1988
  <table class=${e} summary=${(0,d.ifDefined)(null==t?void 0:t.summary)}>
@@ -2111,14 +2111,14 @@
2111
2111
  `:n.html` ${(0,h.templateContent)(d.template)} `,-1!=d.insertIndex&&(l=n.html`
2112
2112
  ${d.insertIndex>0?i.text.substring(0,d.insertIndex):a.nothing} ${l}
2113
2113
  ${d.insertIndex<i.text.length-1?i.text.substring(d.insertIndex):a.nothing}
2114
- `));const c=(null===(o=this.tableConfig.rows)||void 0===o?void 0:o.isDraggable)&&"child"!=t.collapse,p=c&&-1!=this.dragRow&&this.dragRow!=t.idxDrag,u=c&&0==s,y=n.html`
2114
+ `));const p=(null===(o=this.tableConfig.rows)||void 0===o?void 0:o.isDraggable)&&"child"!=t.collapse,c=p&&-1!=this.dragRow&&this.dragRow!=t.idxDrag,u=p&&0==s,y=n.html`
2115
2115
  <div
2116
2116
  class="inner-cell"
2117
2117
  draggable="false"
2118
2118
  @dragstart=${()=>{this.isResizing||-1!=this.dragCol||(this.dragRow=t.idxDrag)}}
2119
2119
  @dragend=${()=>this.onDropRow()}
2120
2120
  >
2121
- ${p?n.html`
2121
+ ${c?n.html`
2122
2122
  <div
2123
2123
  class="drag-area top"
2124
2124
  @dragenter=${()=>{if(0==this.dragRow){const e=t.idxDrag-1;this.dropRow=e>=0?e:0}else this.dropRow=t.idxDrag}}
@@ -2149,11 +2149,11 @@
2149
2149
  </div>
2150
2150
  `;return r.options.isHeader?n.html` <th part="cell-ishead" scope="row" title="${i.text}">${y}</th> `:n.html` <td part=${0===s?"first-cell":"cell"} title="${i.text}">${y}</td> `}))}
2151
2151
  </tr>
2152
- `}static get styles(){return[r.A,u.A]}};b([(0,n.property)({attribute:"config"})],e.prototype,"config",void 0),b([(0,n.property)({attribute:"data"})],e.prototype,"data",void 0),b([(0,n.property)({type:String})],e.prototype,"isRowFocusable",void 0),b([(0,m.Wj)()],e.prototype,"md-table-advanced-change",void 0),b([(0,n.internalProperty)()],e.prototype,"tableConfig",void 0),b([(0,n.internalProperty)()],e.prototype,"tableData",void 0),b([(0,n.internalProperty)()],e.prototype,"error",void 0),b([(0,n.internalProperty)()],e.prototype,"COLS",void 0),b([(0,n.internalProperty)()],e.prototype,"ROWS",void 0),b([(0,n.internalProperty)()],e.prototype,"dragRow",void 0),b([(0,n.internalProperty)()],e.prototype,"dropRow",void 0),b([(0,n.internalProperty)()],e.prototype,"drops",void 0),b([(0,n.internalProperty)()],e.prototype,"dragCol",void 0),b([(0,n.internalProperty)()],e.prototype,"dropCol",void 0),b([(0,n.queryAll)("tr[tabindex]")],e.prototype,"tableRaws",void 0),b([(0,m.sg)(500)],e.prototype,"filter",null),e=b([(0,s.w)("md-table-advanced")],e),t.ELEMENT=e}(g||(g={}))},80072:(t,e,i)=>{i.d(e,{Draggable:()=>s});var s,o=i(41488),r=i(41891),n=i.n(r),a=i(26272),l=i(6979),d=i(66677),h=i(3001),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};!function(t){let e=class extends((0,h.TS)(o.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=(0,d.sg)((t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)}),100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[a.A,l.A]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=n().create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return o.html`
2152
+ `}static get styles(){return[r.A,u.A]}};b([(0,n.property)({attribute:"config"})],e.prototype,"config",void 0),b([(0,n.property)({attribute:"data"})],e.prototype,"data",void 0),b([(0,n.property)({type:String})],e.prototype,"isRowFocusable",void 0),b([(0,m.Wj)()],e.prototype,"md-table-advanced-change",void 0),b([(0,n.internalProperty)()],e.prototype,"tableConfig",void 0),b([(0,n.internalProperty)()],e.prototype,"tableData",void 0),b([(0,n.internalProperty)()],e.prototype,"error",void 0),b([(0,n.internalProperty)()],e.prototype,"COLS",void 0),b([(0,n.internalProperty)()],e.prototype,"ROWS",void 0),b([(0,n.internalProperty)()],e.prototype,"dragRow",void 0),b([(0,n.internalProperty)()],e.prototype,"dropRow",void 0),b([(0,n.internalProperty)()],e.prototype,"drops",void 0),b([(0,n.internalProperty)()],e.prototype,"dragCol",void 0),b([(0,n.internalProperty)()],e.prototype,"dropCol",void 0),b([(0,n.queryAll)("tr[tabindex]")],e.prototype,"tableRaws",void 0),b([(0,m.sg)(500)],e.prototype,"filter",null),e=b([(0,s.w)("md-table-advanced")],e),t.ELEMENT=e}(g||(g={}))},80072:(t,e,i)=>{i.d(e,{Draggable:()=>s});var s,o=i(41488),r=i(41891),n=i.n(r),a=i(26272),l=i(6979),d=i(66677),h=i(3001),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};!function(t){let e=class extends((0,h.TS)(o.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=(0,d.sg)((t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)}),100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[a.A,l.A]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=n().create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return o.html`
2153
2153
  <div class="md-draggable" part="draggable" aria-disabled=${this.disabled}>
2154
2154
  <slot name="draggable-item"></slot>
2155
2155
  </div>
2156
- `}};c([(0,o.property)({type:Number})],e.prototype,"delay",void 0),c([(0,o.property)({type:Number})],e.prototype,"animation",void 0),c([(0,o.property)({type:String})],e.prototype,"handle",void 0),c([(0,o.property)({type:String})],e.prototype,"filter",void 0),c([(0,o.property)({type:String})],e.prototype,"easing",void 0),c([(0,o.property)({type:String})],e.prototype,"direction",void 0),c([(0,o.property)({type:Object})],e.prototype,"group",void 0),c([(0,o.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),c([(0,o.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),c([(0,o.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),c([(0,o.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),c([(0,o.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),c([(0,o.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),c([(0,o.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),c([(0,o.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),c([(0,o.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),c([(0,o.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,o.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),c([(0,o.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=c([(0,h.wW)("md-draggable")],e),t.ELEMENT=e}(s||(s={}))},81144:(t,e,i)=>{i.d(e,{Radio:()=>s});var s,o=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(97822),d=i(76067),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((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.label="",this.value="",this.ariaLabel="",this.autofocus=!1,this._disabled=!1,this._checked=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,this.setAttribute("aria-checked",`${t}`),this.requestUpdate("checked",e)}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","radio"),this.label&&this.setAttribute("aria-label",this.label)}static get styles(){return[n.A,d.A]}render(){return a.html`
2156
+ `}};p([(0,o.property)({type:Number})],e.prototype,"delay",void 0),p([(0,o.property)({type:Number})],e.prototype,"animation",void 0),p([(0,o.property)({type:String})],e.prototype,"handle",void 0),p([(0,o.property)({type:String})],e.prototype,"filter",void 0),p([(0,o.property)({type:String})],e.prototype,"easing",void 0),p([(0,o.property)({type:String})],e.prototype,"direction",void 0),p([(0,o.property)({type:Object})],e.prototype,"group",void 0),p([(0,o.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),p([(0,o.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),p([(0,o.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),p([(0,o.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),p([(0,o.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),p([(0,o.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),p([(0,o.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),p([(0,o.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),p([(0,o.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),p([(0,o.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,o.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),p([(0,o.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=p([(0,h.wW)("md-draggable")],e),t.ELEMENT=e}(s||(s={}))},81144:(t,e,i)=>{i.d(e,{Radio:()=>s});var s,o=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(97822),d=i(76067),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((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.label="",this.value="",this.ariaLabel="",this.autofocus=!1,this._disabled=!1,this._checked=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,this.setAttribute("aria-checked",`${t}`),this.requestUpdate("checked",e)}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","radio"),this.label&&this.setAttribute("aria-label",this.label)}static get styles(){return[n.A,d.A]}render(){return a.html`
2157
2157
  <div class="md-radio-wrapper" part="radio-wrapper">
2158
2158
  <input
2159
2159
  class="md-radio-input"
@@ -2169,7 +2169,7 @@
2169
2169
  />
2170
2170
  <label for="radio-label" class="md-radio-label" part="radio-label"><slot></slot></label>
2171
2171
  </div>
2172
- `}};h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String})],e.prototype,"label",void 0),h([(0,a.property)({type:String})],e.prototype,"value",void 0),h([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,attribute:!1})],e.prototype,"checked",null),e=h([(0,r.w)("md-radio")],e),t.ELEMENT=e}(s||(s={}))},83192:(t,e,i)=>{i.d(e,{Tooltip:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(23968),h=i(77251),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};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.message="",this.placement="auto",this.disabled=!1,this.opened=!1,this.slotContent=null,this._keyDownListener=t=>{this.handleKeyDown(t)},this._wheelListener=t=>{this.opened&&this.notifyTooltipDestroy()}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._keyDownListener),window.addEventListener("wheel",this._wheelListener,{passive:!0})}disconnectedCallback(){this.notifyTooltipDisconnected(),super.disconnectedCallback(),document.removeEventListener("keydown",this._keyDownListener),window.removeEventListener("wheel",this._wheelListener)}handleFocusIn(t){super.handleFocusIn&&super.handleFocusIn(t),this.notifyTooltipCreate()}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(t),this.notifyTooltipDestroy()}openTooltip(){this.dispatchEvent(new CustomEvent("tooltip-create",{bubbles:!0,composed:!0,detail:Object.assign({placement:this.placement,reference:this.reference,popper:this.popper},!this.message&&{slotContent:this.slotContent})}))}notifyTooltipDisconnected(){document.dispatchEvent(new CustomEvent("tooltip-disconnected",{bubbles:!0,composed:!0,detail:{}}))}closeTooltip(){this.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeMessage(){this.dispatchEvent(new CustomEvent("tooltip-message",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeSlotContent(t){this.dispatchEvent(new CustomEvent("tooltip-slot",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper,slotContent:t}}))}notifyTooltipCreate(){this.disabled||(this.opened=!0)}notifyTooltipDestroy(){this.disabled||(this.opened=!1)}handleKeyDown(t){t.code===o.Uz.Escape&&this.notifyTooltipDestroy()}handleSlotContentChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent&&this.changeSlotContent(t),this.slotContent=t)}}updated(t){super.updated(t),t.has("opened")&&(this.opened?this.openTooltip():this.closeTooltip()),t.has("message")&&this.changeMessage()}get tooltipClassMap(){return{"md-tooltip--disabled":this.disabled}}render(){return l.html`
2172
+ `}};h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String})],e.prototype,"label",void 0),h([(0,a.property)({type:String})],e.prototype,"value",void 0),h([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,attribute:!1})],e.prototype,"checked",null),e=h([(0,r.w)("md-radio")],e),t.ELEMENT=e}(s||(s={}))},83192:(t,e,i)=>{i.d(e,{Tooltip:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(23968),h=i(77251),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};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.message="",this.placement="auto",this.disabled=!1,this.opened=!1,this.slotContent=null,this._keyDownListener=t=>{this.handleKeyDown(t)},this._wheelListener=t=>{this.opened&&this.notifyTooltipDestroy()}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._keyDownListener),window.addEventListener("wheel",this._wheelListener,{passive:!0})}disconnectedCallback(){this.notifyTooltipDisconnected(),super.disconnectedCallback(),document.removeEventListener("keydown",this._keyDownListener),window.removeEventListener("wheel",this._wheelListener)}handleFocusIn(t){super.handleFocusIn&&super.handleFocusIn(t),this.notifyTooltipCreate()}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(t),this.notifyTooltipDestroy()}openTooltip(){this.dispatchEvent(new CustomEvent("tooltip-create",{bubbles:!0,composed:!0,detail:Object.assign({placement:this.placement,reference:this.reference,popper:this.popper},!this.message&&{slotContent:this.slotContent})}))}notifyTooltipDisconnected(){document.dispatchEvent(new CustomEvent("tooltip-disconnected",{bubbles:!0,composed:!0,detail:{}}))}closeTooltip(){this.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeMessage(){this.dispatchEvent(new CustomEvent("tooltip-message",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeSlotContent(t){this.dispatchEvent(new CustomEvent("tooltip-slot",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper,slotContent:t}}))}notifyTooltipCreate(){this.disabled||(this.opened=!0)}notifyTooltipDestroy(){this.disabled||(this.opened=!1)}handleKeyDown(t){t.code===o.Uz.Escape&&this.notifyTooltipDestroy()}handleSlotContentChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent&&this.changeSlotContent(t),this.slotContent=t)}}updated(t){super.updated(t),t.has("opened")&&(this.opened?this.openTooltip():this.closeTooltip()),t.has("message")&&this.changeMessage()}get tooltipClassMap(){return{"md-tooltip--disabled":this.disabled}}render(){return l.html`
2173
2173
  <div class="md-tooltip ${(0,d.classMap)(this.tooltipClassMap)}">
2174
2174
  <div class="md-tooltip__popper" role="tooltip" part="tooltip-popper">
2175
2175
  <div id="md-tooltip__content" class="md-tooltip__content" part="tooltip-content">
@@ -2191,13 +2191,13 @@
2191
2191
  <slot></slot>
2192
2192
  </div>
2193
2193
  </div>
2194
- `}static get styles(){return[a.A,h.A]}};c([(0,l.property)({type:String})],e.prototype,"message",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"placement",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"opened",void 0),c([(0,l.query)(".md-tooltip__popper")],e.prototype,"popper",void 0),c([(0,l.query)(".md-tooltip__reference")],e.prototype,"reference",void 0),e=c([(0,n.w)("md-tooltip")],e),t.ELEMENT=e}(s||(s={}))},84032:(t,e,i)=>{i.d(e,{Menu:()=>s});var s,o=i(90195),r=i(31890),n=i(84624),a=i(68387),l=i(59164),d=i(26272),h=i(41488),c=i(23968),p=i(48171),u=i(49719),m=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},y=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,a.T)((0,n.I)(h.LitElement))){constructor(){super(...arguments),this.justified=!1,this.direction="horizontal",this.items=[],this.itemsHash={},this.itemsIdxHash={}}getNormalizedItemId(t){return t.replace("more-menu-item-","")}static get styles(){return[d.A,u.A]}get slotItem(){return this.menuSlotElement}linkMenuItems(){return y(this,void 0,void 0,(function*(){const{items:t}=this;t.forEach(((t,e)=>{const i=(0,l.O)("menu");t.setAttribute("id",i),t.setAttribute("aria-controls",i),t.selected=this.selected===e})),this.itemsHash=this.items.reduce(((t,e)=>(t[e.id]=e,t)),{}),this.itemsIdxHash=this.items.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}))}setupMenuItems(){if(this.menuSlotElement){const t=this.menuSlotElement.assignedElements({flatten:!0});this.getChildrenFromTree({children:t},this.items)}}getChildrenFromTree(t,e){t.children.forEach((t=>{t instanceof p.MenuItem.ELEMENT&&e.push(t),this.getChildrenFromTree({children:Array.from(t.children)},e)}))}updateSelectedItem(t){const e=this.slotted.findIndex((t=>t.hasAttribute("selected")));e!==t&&(this.items&&[e,t].forEach((t=>{const e=this.items[t];null==e||e.toggleAttribute("selected")})),this.dispatchEvent(new CustomEvent("selected-menu-item",{detail:{value:t},composed:!0,bubbles:!0})),this.changeSelectedItemIdx(t))}changeSelectedItemIdx(t){this.selected=t}handleItemClick(t){const{id:e}=t.detail,i=this.itemsHash[this.getNormalizedItemId(e)];if(i&&!i.disabled){const t=this.itemsIdxHash[i.id];-1!==t&&this.updateSelectedItem(t)}}handleItemKeydown(t){const{key:e,id:i}=t.detail;switch(e){case o.Uz.End:this.changeSelectedItemIdx(this.items.length-1);break;case o.Uz.Home:this.changeSelectedItemIdx(0);break;case o.Uz.ArrowLeft:case o.Uz.ArrowUp:0===this.selected?this.changeSelectedItemIdx(this.items.length-1):this.changeSelectedItemIdx(this.selected-1);break;case o.Uz.ArrowRight:case o.Uz.ArrowDown:this.selected===this.items.length-1?this.changeSelectedItemIdx(0):this.changeSelectedItemIdx(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:const t=this.slotted.findIndex((t=>t.id===i&&!t.disabled));-1!==t&&this.updateSelectedItem(t)}}connectedCallback(){super.connectedCallback(),this.addEventListener("menu-item-click",this.handleItemClick),this.addEventListener("menu-item-keydown",this.handleItemKeydown)}updated(t){const e=Object.create(null,{updated:{get:()=>super.updated}});return y(this,void 0,void 0,(function*(){e.updated.call(this,t),t.has("slotted")&&(this.setupMenuItems(),this.linkMenuItems())}))}disconnectedCallback(){super.connectedCallback(),this.removeEventListener("menu-item-click",this.handleItemClick),this.removeEventListener("menu-item-keydown",this.handleItemKeydown)}get menuClassMap(){return{[`md-menu--${this.direction}`]:this.direction,justified:this.justified}}render(){return h.html`
2195
- <nav class="md-menu ${(0,c.classMap)(this.menuClassMap)}">
2194
+ `}static get styles(){return[a.A,h.A]}};p([(0,l.property)({type:String})],e.prototype,"message",void 0),p([(0,l.property)({type:String,reflect:!0})],e.prototype,"placement",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"opened",void 0),p([(0,l.query)(".md-tooltip__popper")],e.prototype,"popper",void 0),p([(0,l.query)(".md-tooltip__reference")],e.prototype,"reference",void 0),e=p([(0,n.w)("md-tooltip")],e),t.ELEMENT=e}(s||(s={}))},84032:(t,e,i)=>{i.d(e,{Menu:()=>s});var s,o=i(90195),r=i(31890),n=i(84624),a=i(68387),l=i(59164),d=i(26272),h=i(41488),p=i(23968),c=i(48171),u=i(49719),m=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},y=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,a.T)((0,n.I)(h.LitElement))){constructor(){super(...arguments),this.justified=!1,this.direction="horizontal",this.items=[],this.itemsHash={},this.itemsIdxHash={}}getNormalizedItemId(t){return t.replace("more-menu-item-","")}static get styles(){return[d.A,u.A]}get slotItem(){return this.menuSlotElement}linkMenuItems(){return y(this,void 0,void 0,(function*(){const{items:t}=this;t.forEach(((t,e)=>{const i=(0,l.O)("menu");t.setAttribute("id",i),t.setAttribute("aria-controls",i),t.selected=this.selected===e})),this.itemsHash=this.items.reduce(((t,e)=>(t[e.id]=e,t)),{}),this.itemsIdxHash=this.items.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}))}setupMenuItems(){if(this.menuSlotElement){const t=this.menuSlotElement.assignedElements({flatten:!0});this.getChildrenFromTree({children:t},this.items)}}getChildrenFromTree(t,e){t.children.forEach((t=>{t instanceof c.MenuItem.ELEMENT&&e.push(t),this.getChildrenFromTree({children:Array.from(t.children)},e)}))}updateSelectedItem(t){const e=this.slotted.findIndex((t=>t.hasAttribute("selected")));e!==t&&(this.items&&[e,t].forEach((t=>{const e=this.items[t];null==e||e.toggleAttribute("selected")})),this.dispatchEvent(new CustomEvent("selected-menu-item",{detail:{value:t},composed:!0,bubbles:!0})),this.changeSelectedItemIdx(t))}changeSelectedItemIdx(t){this.selected=t}handleItemClick(t){const{id:e}=t.detail,i=this.itemsHash[this.getNormalizedItemId(e)];if(i&&!i.disabled){const t=this.itemsIdxHash[i.id];-1!==t&&this.updateSelectedItem(t)}}handleItemKeydown(t){const{key:e,id:i}=t.detail;switch(e){case o.Uz.End:this.changeSelectedItemIdx(this.items.length-1);break;case o.Uz.Home:this.changeSelectedItemIdx(0);break;case o.Uz.ArrowLeft:case o.Uz.ArrowUp:0===this.selected?this.changeSelectedItemIdx(this.items.length-1):this.changeSelectedItemIdx(this.selected-1);break;case o.Uz.ArrowRight:case o.Uz.ArrowDown:this.selected===this.items.length-1?this.changeSelectedItemIdx(0):this.changeSelectedItemIdx(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:const t=this.slotted.findIndex((t=>t.id===i&&!t.disabled));-1!==t&&this.updateSelectedItem(t)}}connectedCallback(){super.connectedCallback(),this.addEventListener("menu-item-click",this.handleItemClick),this.addEventListener("menu-item-keydown",this.handleItemKeydown)}updated(t){const e=Object.create(null,{updated:{get:()=>super.updated}});return y(this,void 0,void 0,(function*(){e.updated.call(this,t),t.has("slotted")&&(this.setupMenuItems(),this.linkMenuItems())}))}disconnectedCallback(){super.connectedCallback(),this.removeEventListener("menu-item-click",this.handleItemClick),this.removeEventListener("menu-item-keydown",this.handleItemKeydown)}get menuClassMap(){return{[`md-menu--${this.direction}`]:this.direction,justified:this.justified}}render(){return h.html`
2195
+ <nav class="md-menu ${(0,p.classMap)(this.menuClassMap)}">
2196
2196
  <ul class="md-menu-list">
2197
2197
  <slot></slot>
2198
2198
  </ul>
2199
2199
  </nav>
2200
- `}};m([(0,h.property)({type:Boolean})],e.prototype,"justified",void 0),m([(0,h.property)({type:String})],e.prototype,"direction",void 0),m([(0,h.query)("slot")],e.prototype,"menuSlotElement",void 0),m([(0,h.query)("md-menu-overlay")],e.prototype,"menuSubElement",void 0),e=m([(0,r.w)("md-menu")],e),t.ELEMENT=e}(s||(s={}))},84157:t=>{t.exports=u},84205:(t,e,i)=>{i.d(e,{PhoneInput:()=>s}),i(4928),i(96408);var s,o=i(31890),r=i(26272),n=i(13060),a=i(65875),l=i(860),d=i(41488),h=i(40333),c=i(23968),p=i(6963),u=i(77833),m=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 d.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.clearIconHeight="auto",this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.codeList=[],this.formattedValue="",this.isValid=!0}connectedCallback(){super.connectedCallback(),this.codeList=(0,n.customArray)({name:"{countryNameEn}",value:"{countryCallingCode}",code:"{countryCode}"}),""===this.id&&(this.id=`md-phone-input-${Math.random().toString(36).substring(2,6)}`),this.validateInput(this.value)}getCountryFlag(t){return d.html`
2200
+ `}};m([(0,h.property)({type:Boolean})],e.prototype,"justified",void 0),m([(0,h.property)({type:String})],e.prototype,"direction",void 0),m([(0,h.query)("slot")],e.prototype,"menuSlotElement",void 0),m([(0,h.query)("md-menu-overlay")],e.prototype,"menuSubElement",void 0),e=m([(0,r.w)("md-menu")],e),t.ELEMENT=e}(s||(s={}))},84157:t=>{t.exports=u},84205:(t,e,i)=>{i.d(e,{PhoneInput:()=>s}),i(4928),i(96408);var s,o=i(31890),r=i(26272),n=i(13060),a=i(65875),l=i(860),d=i(41488),h=i(40333),p=i(23968),c=i(6963),u=i(77833),m=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 d.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.clearIconHeight="auto",this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.codeList=[],this.formattedValue="",this.isValid=!0}connectedCallback(){super.connectedCallback(),this.codeList=(0,n.customArray)({name:"{countryNameEn}",value:"{countryCallingCode}",code:"{countryCode}"}),""===this.id&&(this.id=`md-phone-input-${Math.random().toString(36).substring(2,6)}`),this.validateInput(this.value)}getCountryFlag(t){return d.html`
2201
2201
  <span class="flag-svg-wrapper">
2202
2202
  <img src="${(0,a.findFlagUrlByIso2Code)(t)}" />
2203
2203
  </span>
@@ -2230,7 +2230,7 @@
2230
2230
  ${this.showFlags?this.getModStyle():h.nothing}
2231
2231
  <div class="md-phone-input__container">
2232
2232
  ${this.showFlags?d.html`
2233
- <span class="flag-box ${(0,c.classMap)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
2233
+ <span class="flag-box ${(0,p.classMap)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
2234
2234
  `:h.nothing}
2235
2235
  <md-combobox
2236
2236
  part="combobox"
@@ -2246,7 +2246,7 @@
2246
2246
  is-dropdown-arrow
2247
2247
  .clearAriaLabel="${this.clearCountryCodeAriaLabel}"
2248
2248
  >
2249
- ${(0,p.repeat)(this.codeList,(t=>t.name),((t,e)=>this.countryCodeOptionTemplate(t,e)))}
2249
+ ${(0,c.repeat)(this.codeList,(t=>t.name),((t,e)=>this.countryCodeOptionTemplate(t,e)))}
2250
2250
  </md-combobox>
2251
2251
  <md-input
2252
2252
  part="md-input"
@@ -2267,7 +2267,7 @@
2267
2267
  .messageArr="${!this.isValid||this.showErrorMessage?[{type:"error",id:this.id,ariaLive:"polite",message:this.errorMessage}]:[]}"
2268
2268
  ></md-input>
2269
2269
  </div>
2270
- `}};m([(0,d.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),m([(0,d.property)({type:String})],e.prototype,"numberPlaceholder",void 0),m([(0,d.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),m([(0,d.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"pill",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,d.property)({type:String})],e.prototype,"value",void 0),m([(0,d.property)({type:String})],e.prototype,"errorMessage",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"showErrorMessage",void 0),m([(0,d.property)({type:String,attribute:"clear-icon-height"})],e.prototype,"clearIconHeight",void 0),m([(0,d.property)({type:String})],e.prototype,"countryCodeAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"dialNumberAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"clearAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"clearCountryCodeAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"id",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"newMomentum",void 0),m([(0,d.internalProperty)()],e.prototype,"countryCode",void 0),m([(0,d.internalProperty)()],e.prototype,"codeList",void 0),m([(0,d.internalProperty)()],e.prototype,"formattedValue",void 0),m([(0,d.internalProperty)()],e.prototype,"isValid",void 0),m([(0,d.query)("md-combobox")],e.prototype,"combobox",void 0),e=m([(0,o.w)("md-phone-input")],e),t.ELEMENT=e}(s||(s={}))},85314:t=>{t.exports=a},85416:(t,e,i)=>{i.d(e,{DateTimePicker:()=>s}),i(96408),i(11323);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(97822),d=i(65796),h=i(90195),c=i(33663),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};!function(t){t.weekStartDays=["Sunday","Monday"];let e=class extends a.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=h.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.locale="en-US",this.disabled=!1,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,r.tB)(),this.firstCycle=!0,this.handleDateChange=t=>{var e,i;this.selectedDateObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=t=>{var e,i,s;this.selectedTimeObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(s=this.controlButtons)||void 0===s?void 0:s.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=t=>{var e;this.value=(0,r.az)(null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value)},this.parseValueForVisuals=t=>{t&&(this.dateValue=t.split("T")[0],this.timeValue=t.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=d.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(t,e)=>{t&&(this.value=e?(0,r.az)(`${t}T${e}`):(0,r.az)(t))}}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,s=void 0,r=function*(){var i;if(e.firstUpdated.call(this,t),!this.value){const t=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate();this.combineDateAndTimeValues(t,this.timeValue)}yield this.updateComplete,this.addEventListeners()},new((o=void 0)||(o=Promise))((function(t,e){function n(t){try{l(r.next(t))}catch(t){e(t)}}function a(t){try{l(r.throw(t))}catch(t){e(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(i,s||[])).next())}));var i,s,o,r}addEventListeners(){this.datePicker&&(this.datePicker.addEventListener("date-selection-change",this.handleDateChange),this.datePicker.addEventListener("date-input-change",this.handleDateTimeInputChange)),this.timePicker&&this.timePicker.addEventListener("time-selection-change",this.handleTimeChange)}updated(t){var e;super.updated(t),t.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.firstCycle?this.firstCycle=!1:this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&(t.has("timeValue")||t.has("dateValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&t.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}disconnectedCallback(){this.datePicker&&(this.datePicker.removeEventListener("date-selection-change",this.handleDateChange),this.datePicker.removeEventListener("date-input-change",this.handleDateTimeInputChange)),this.timePicker&&this.timePicker.removeEventListener("time-selection-change",this.handleTimeChange)}static get styles(){return[n.A,c.A]}render(){var t;return a.html`
2270
+ `}};m([(0,d.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),m([(0,d.property)({type:String})],e.prototype,"numberPlaceholder",void 0),m([(0,d.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),m([(0,d.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"pill",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,d.property)({type:String})],e.prototype,"value",void 0),m([(0,d.property)({type:String})],e.prototype,"errorMessage",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"showErrorMessage",void 0),m([(0,d.property)({type:String,attribute:"clear-icon-height"})],e.prototype,"clearIconHeight",void 0),m([(0,d.property)({type:String})],e.prototype,"countryCodeAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"dialNumberAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"clearAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"clearCountryCodeAriaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"id",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"newMomentum",void 0),m([(0,d.internalProperty)()],e.prototype,"countryCode",void 0),m([(0,d.internalProperty)()],e.prototype,"codeList",void 0),m([(0,d.internalProperty)()],e.prototype,"formattedValue",void 0),m([(0,d.internalProperty)()],e.prototype,"isValid",void 0),m([(0,d.query)("md-combobox")],e.prototype,"combobox",void 0),e=m([(0,o.w)("md-phone-input")],e),t.ELEMENT=e}(s||(s={}))},85314:t=>{t.exports=a},85416:(t,e,i)=>{i.d(e,{DateTimePicker:()=>s}),i(96408),i(11323);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(97822),d=i(65796),h=i(90195),p=i(33663),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};!function(t){t.weekStartDays=["Sunday","Monday"];let e=class extends a.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=h.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.locale="en-US",this.disabled=!1,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,r.tB)(),this.firstCycle=!0,this.handleDateChange=t=>{var e,i;this.selectedDateObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=t=>{var e,i,s;this.selectedTimeObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(s=this.controlButtons)||void 0===s?void 0:s.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=t=>{var e;this.value=(0,r.az)(null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value)},this.parseValueForVisuals=t=>{t&&(this.dateValue=t.split("T")[0],this.timeValue=t.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=d.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(t,e)=>{t&&(this.value=e?(0,r.az)(`${t}T${e}`):(0,r.az)(t))}}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,s=void 0,r=function*(){var i;if(e.firstUpdated.call(this,t),!this.value){const t=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate();this.combineDateAndTimeValues(t,this.timeValue)}yield this.updateComplete,this.addEventListeners()},new((o=void 0)||(o=Promise))((function(t,e){function n(t){try{l(r.next(t))}catch(t){e(t)}}function a(t){try{l(r.throw(t))}catch(t){e(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(i,s||[])).next())}));var i,s,o,r}addEventListeners(){this.datePicker&&(this.datePicker.addEventListener("date-selection-change",this.handleDateChange),this.datePicker.addEventListener("date-input-change",this.handleDateTimeInputChange)),this.timePicker&&this.timePicker.addEventListener("time-selection-change",this.handleTimeChange)}updated(t){var e;super.updated(t),t.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.firstCycle?this.firstCycle=!1:this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&(t.has("timeValue")||t.has("dateValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&t.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}disconnectedCallback(){this.datePicker&&(this.datePicker.removeEventListener("date-selection-change",this.handleDateChange),this.datePicker.removeEventListener("date-input-change",this.handleDateTimeInputChange)),this.timePicker&&this.timePicker.removeEventListener("time-selection-change",this.handleTimeChange)}static get styles(){return[n.A,p.A]}render(){var t;return a.html`
2271
2271
  <md-datepicker
2272
2272
  includes-time
2273
2273
  ?disabled=${this.disabled}
@@ -2292,7 +2292,7 @@
2292
2292
  </div>
2293
2293
  </md-datepicker>
2294
2294
  </div>
2295
- `}};p([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),p([(0,a.property)({type:String})],e.prototype,"minDate",void 0),p([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),p([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),p([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),p([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),p([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),p([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),p([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),p([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),p([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),p([(0,a.property)({type:String})],e.prototype,"locale",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),p([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),p([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),p([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=p([(0,o.w)("md-date-time-picker")],e),t.ELEMENT=e}(s||(s={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>s}),i(63704),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(50182),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.mediaType="call",this.status="",this.popovertitle="",this.queue="",this.accepted=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.renderTaskType=()=>{switch(this.mediaType.toLowerCase()){case"telephony":return n.html`
2295
+ `}};c([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),c([(0,a.property)({type:String})],e.prototype,"minDate",void 0),c([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),c([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),c([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),c([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),c([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),c([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),c([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),c([(0,a.property)({type:String})],e.prototype,"locale",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),c([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),c([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),c([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=c([(0,o.w)("md-date-time-picker")],e),t.ELEMENT=e}(s||(s={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(50182),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.mediaType="call",this.status="",this.popovertitle="",this.queue="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.renderTaskType=()=>{switch(this.mediaType.toLowerCase()){case"telephony":return n.html`
2296
2296
  <md-badge color="green" circle>
2297
2297
  <md-icon name="handset-filled" size="20" iconSet="momentumDesign"></md-icon>
2298
2298
  </md-badge>
@@ -2316,6 +2316,13 @@
2316
2316
  <md-badge color="green" circle>
2317
2317
  <md-icon name="icon-icon-campaign_18"></md-icon>
2318
2318
  </md-badge>
2319
+ `;case"outbound-campaign":return n.html`
2320
+ <md-avatar
2321
+ title="Channel Campaign"
2322
+ type="channel-campaign"
2323
+ avatar-style="default"
2324
+ state=${this.selected?"active":"rest"}
2325
+ ></md-avatar>
2319
2326
  `;case"chat":return n.html`
2320
2327
  <md-badge color="blue" circle>
2321
2328
  <md-icon name="chat-filled" size="20" iconSet="momentumDesign"></md-icon>
@@ -2336,7 +2343,7 @@
2336
2343
  <md-badge bgColor="#25D366" circle>
2337
2344
  <md-icon name="whatsApp_16" iconSet="momentumUI" color="white-100"></md-icon>
2338
2345
  </md-badge>
2339
- `;default:return n.html` <slot name="task-type"></slot> `}},this.renderStatus=()=>{switch(this.status){case"consulting":return n.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"play":return n.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"hold":return n.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"conference":return n.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"transfered":return n.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"courtesy_callback":return n.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"campaign":return n.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return n.html` <slot name="task-status"></slot> `}}}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}renderChatCount(){return this.quantity>0?this.quantity>99?n.html` <span class="new-chat-quantity">99+</span> `:n.html` <span class="new-chat-quantity">${this.quantity}</span> `:a.nothing}getAriaLabel(){var t;if(this.customAriaLabel)return this.customAriaLabel;let e=this.queue;if(!e){const i=this.querySelector('[slot="queue"]');if(i){e=(null===(t=i.textContent)||void 0===t?void 0:t.trim())||i.innerText.trim();const s=e.match(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/);if(s){const[,t=0,i,o]=s.map(Number);(new Date).setHours(t,i,o),e=e.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${i} minutes ${o} seconds`)}}}return`${this.mediaType} ${this.status} ${this.title} ${e} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,d.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}render(){return n.html`
2346
+ `;default:return n.html` <slot name="task-type"></slot> `}},this.renderStatus=()=>{switch(this.status){case"consulting":return n.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"play":return n.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"hold":return n.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"conference":return n.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"transfered":return n.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"courtesy_callback":return n.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"campaign":return n.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return n.html` <slot name="task-status"></slot> `}}}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}renderChatCount(){return this.quantity<=0?a.nothing:this.quantity>99?n.html` <span class="new-chat-quantity">99+</span> `:n.html` <span class="new-chat-quantity">${this.quantity}</span> `}getAriaLabel(){var t,e;if(this.customAriaLabel)return this.customAriaLabel;let i=this.queue;if(!i){const s=this.querySelector('[slot="queue"]');if(s){i=null!==(e=null===(t=s.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:s.innerText.trim();const o=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(i);if(o){const[,t=0,e,s]=o.map(Number);(new Date).setHours(t,e,s),i=i.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${s} seconds`)}}}return`${this.mediaType} ${this.status} ${this.title} ${i} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,d.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}render(){return n.html`
2340
2347
  <div
2341
2348
  part="task-item-container"
2342
2349
  class="md-taskitem ${(0,l.classMap)({selected:this.selected})}"
@@ -2353,7 +2360,8 @@
2353
2360
  <div class="md-taskitem__content" part="task-item-content">
2354
2361
  ${this.popovertitle?n.html` <span class="md-taskitem__content_popover_title">${this.popovertitle}</span> `:a.nothing}
2355
2362
  ${this.title?n.html`
2356
- <span class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle})}"
2363
+ <span
2364
+ class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
2357
2365
  >${this.title}</span
2358
2366
  >
2359
2367
  `:a.nothing}
@@ -2373,7 +2381,7 @@
2373
2381
  ${this.renderChatCount()}
2374
2382
  </div>
2375
2383
  </div>
2376
- `}};h([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),h([(0,n.property)({type:String})],e.prototype,"queue",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),h([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),h([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),h([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),h([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),h([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),h([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),e=h([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var s,o,r,n;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>o}),i(96798),i(61200),i(83192);var s,o,r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(52759),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};!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(s||(s={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.state=s.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.expandable=!1}connectedCallback(){super.connectedCallback()}static get styles(){return[n.A,h.A]}get isActive(){return this.state===s.ACTIVE}expandCardToggled(){var t;this.state=this.isActive?s.DEFAULT:s.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isActive},bubbles:!0,composed:!0}))}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===s.INACTIVE}}get footerClassMap(){return{"md-card-v2-footer":!0,hidden:!this.expandable}}renderHeader(){return a.html`
2384
+ `}};h([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),h([(0,n.property)({type:String})],e.prototype,"queue",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"displayOnlyTitle",void 0),h([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),h([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),h([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),h([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),h([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),h([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),e=h([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var s,o,r,n;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>o}),i(96798),i(61200),i(83192);var s,o,r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(52759),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};!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(s||(s={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.state=s.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.expandable=!1}connectedCallback(){super.connectedCallback()}static get styles(){return[n.A,h.A]}get isActive(){return this.state===s.ACTIVE}expandCardToggled(){var t;this.state=this.isActive?s.DEFAULT:s.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isActive},bubbles:!0,composed:!0}))}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===s.INACTIVE}}get footerClassMap(){return{"md-card-v2-footer":!0,hidden:!this.expandable}}renderHeader(){return a.html`
2377
2385
  <div class="md-card-v2-header-title">
2378
2386
  <h3>${this.header}</h3>
2379
2387
  ${this.info?a.html`
@@ -2404,7 +2412,7 @@
2404
2412
  </div>
2405
2413
  ${this.renderFooter()}
2406
2414
  </div>
2407
- `}};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`
2415
+ `}};p([(0,a.property)({type:String})],e.prototype,"state",void 0),p([(0,a.property)({type:String})],e.prototype,"identifier",void 0),p([(0,a.property)({type:String})],e.prototype,"header",void 0),p([(0,a.property)({type:String})],e.prototype,"info",void 0),p([(0,a.property)({type:String})],e.prototype,"data",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"expandable",void 0),e=p([(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`
2408
2416
  <nav aria-label="${(0,a.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
2409
2417
  <ul @click=${t=>this.handleClick(t)}>
2410
2418
  ${(0,l.repeat)(this.navCrumbs,(t=>t.link),(t=>n.html`
@@ -2453,7 +2461,7 @@
2453
2461
  </div>
2454
2462
  </div>
2455
2463
  </div>
2456
- `}};d([(0,n.property)({type:String})],e.prototype,"title",void 0),d([(0,n.property)({type:String})],e.prototype,"src",void 0),d([(0,n.property)({type:String})],e.prototype,"time",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"status",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=d([(0,o.w)("md-chat-message")],e),t.ELEMENT=e}(s||(s={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>s}),i(20109),i(61200),i(6396),i(12176);var s,o=i(90195),r=i(31890),n=i(32972),a=i(26272),l=(i(32022),i(41488)),d=i(40333),h=i(23968),c=i(97822),p=i(22818),u=i(8229),m=i(21572),y=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){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,n.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){this.value=t.target.value,this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==o.Uz.Space&&e!==o.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:"undefined"}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
2464
+ `}};d([(0,n.property)({type:String})],e.prototype,"title",void 0),d([(0,n.property)({type:String})],e.prototype,"src",void 0),d([(0,n.property)({type:String})],e.prototype,"time",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"status",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=d([(0,o.w)("md-chat-message")],e),t.ELEMENT=e}(s||(s={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>s}),i(20109),i(61200),i(6396),i(12176);var s,o=i(90195),r=i(31890),n=i(32972),a=i(26272),l=(i(32022),i(41488)),d=i(40333),h=i(23968),p=i(97822),c=i(22818),u=i(8229),m=i(21572),y=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){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,n.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){this.value=t.target.value,this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==o.Uz.Space&&e!==o.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:"undefined"}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
2457
2465
  <textarea
2458
2466
  part="input"
2459
2467
  class="md-input ${(0,h.classMap)(this.inputTemplateClassMap)}"
@@ -2470,11 +2478,11 @@
2470
2478
  aria-label=${this.ariaLabel}
2471
2479
  aria-invalid=${this.ariaInvalid}
2472
2480
  aria-errormessage="${this.htmlId}-message"
2473
- aria-disabled=${(0,c.ifDefined)(this.disabled||void 0)}
2481
+ aria-disabled=${(0,p.ifDefined)(this.disabled||void 0)}
2474
2482
  id=${this.htmlId}
2475
2483
  placeholder=${this.placeholder}
2476
2484
  ?readonly=${this.readOnly}
2477
- maxlength=${(0,c.ifDefined)(this.maxLength)}
2485
+ maxlength=${(0,p.ifDefined)(this.maxLength)}
2478
2486
  ></textarea>
2479
2487
  `:l.html`
2480
2488
  <input
@@ -2492,18 +2500,18 @@
2492
2500
  .value=${this.value}
2493
2501
  aria-describedby=${this.ariaDescribedBy}
2494
2502
  aria-controls=${this.ariaControls}
2495
- aria-expanded=${(0,c.ifDefined)(null!==(t=this.ariaExpandedValue)&&void 0!==t?t:void 0)}
2503
+ aria-expanded=${(0,p.ifDefined)(null!==(t=this.ariaExpandedValue)&&void 0!==t?t:void 0)}
2496
2504
  aria-label=${this.ariaLabel}
2497
2505
  aria-invalid=${this.ariaInvalid}
2498
2506
  aria-errormessage=${`${this.htmlId}-message`}
2499
- aria-disabled=${(0,c.ifDefined)(this.disabled||void 0)}
2507
+ aria-disabled=${(0,p.ifDefined)(this.disabled||void 0)}
2500
2508
  id=${this.htmlId}
2501
2509
  role=${this.role}
2502
2510
  placeholder=${this.placeholder}
2503
2511
  ?readonly=${this.readOnly||this.disabled}
2504
- min=${(0,c.ifDefined)(this.min)}
2505
- max=${(0,c.ifDefined)(this.max)}
2506
- maxlength=${(0,c.ifDefined)(this.maxLength)}
2512
+ min=${(0,p.ifDefined)(this.min)}
2513
+ max=${(0,p.ifDefined)(this.max)}
2514
+ maxlength=${(0,p.ifDefined)(this.maxLength)}
2507
2515
  />
2508
2516
  `}inputLeftTemplate(){return this.searchable?l.html`
2509
2517
  <div class="md-input__before">
@@ -2552,7 +2560,7 @@
2552
2560
  ></md-help-text>
2553
2561
  `:d.nothing}messagesTemplate(){return!this.hideMessage&&this.messages&&this.messages.length?l.html`
2554
2562
  <div id="${this.htmlId}-message" part="message" class="md-input__messages">
2555
- ${(0,p.repeat)(this.messages,((t,e)=>{var i,s;return l.html`
2563
+ ${(0,c.repeat)(this.messages,((t,e)=>{var i,s;return l.html`
2556
2564
  <md-help-text
2557
2565
  .message=${t}
2558
2566
  .id=${null!==(i=this.messageArr[e].id)&&void 0!==i?i:""}
@@ -2576,14 +2584,14 @@
2576
2584
  </div>
2577
2585
  ${this.messagesTemplate()} ${this.secondaryLabelTemplate()} ${this.helpTextTemplate()}
2578
2586
  </div>
2579
- `}};y([(0,l.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,l.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,l.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,l.property)({type:String})],i.prototype,"id",void 0),y([(0,l.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,l.property)({type:String})],i.prototype,"label",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String})],i.prototype,"role",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,l.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,l.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,l.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,l.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,l.property)({type:String})],i.prototype,"shape",void 0),y([(0,l.property)({type:String})],i.prototype,"type",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.query)(".md-input")],i.prototype,"input",void 0),y([(0,l.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,l.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,l.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(s||(s={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>s});var s,o=i(73940),r=(i(12176),i(31890)),n=i(26283),a=i(26272),l=i(41488),d=i(40333),h=i(23968),c=i(97822),p=i(11740),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 l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:d.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
2587
+ `}};y([(0,l.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,l.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,l.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,l.property)({type:String})],i.prototype,"id",void 0),y([(0,l.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,l.property)({type:String})],i.prototype,"label",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String})],i.prototype,"role",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,l.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,l.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,l.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,l.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,l.property)({type:String})],i.prototype,"shape",void 0),y([(0,l.property)({type:String})],i.prototype,"type",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.query)(".md-input")],i.prototype,"input",void 0),y([(0,l.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,l.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,l.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(s||(s={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>s});var s,o=i(73940),r=(i(12176),i(31890)),n=i(26283),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(97822),c=i(11740),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 l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:d.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
2580
2588
  <style>
2581
2589
  :host .md-button--${this.size} {
2582
2590
  ${this.renderWidth()};
2583
2591
  ${this.renderMaxWidth()};
2584
2592
  }
2585
2593
  </style>
2586
- `},this.iconTemplate=()=>this.loading?l.html` <md-spinner size="16"></md-spinner> `:l.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?d.nothing:l.html` <slot name="text"></slot> `}get active(){return this._active}set active(t){const e=this._active;this._active=t,this.requestUpdate("active",e)}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}handleKeyDown(t){if(this.disabled)return;const{code:e}=t;(0,n.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.disabled||(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}static get styles(){return[a.A,p.A,o.A]}get buttonClassMap(){return{"md-button--circle":this.circle,"md-button--rounded":this.rounded,"md-button--none":this.hasRemoveStyle,"md-button--outline":this.outline,active:this.active&&!this.disabled,disabled:this.disabled&&!this.active,isActive:this.isActive,[`md-button--${this.size}`]:!this.hasRemoveStyle,[`md-button--${this.color}`]:!this.hasRemoveStyle&&!!this.color,[`md-activity__${this.activityType}`]:!!this.activityType,"md-activity":!!this.activityType,"md-button--icon":this.iconActive,"md-button--onlyicon":this.hasIcon&&!this.slottedText,"md-button--placeholder-text":!0===this.isPlaceholderText}}get slottedText(){var t;return null===(t=this.querySelector("[slot=text]"))||void 0===t?void 0:t.textContent}get hasIcon(){return null!==this.querySelector("[slot=icon]")||this.loading}childrenTemplate(){return l.html`
2594
+ `},this.iconTemplate=()=>this.loading?l.html` <md-spinner size="16"></md-spinner> `:l.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?d.nothing:l.html` <slot name="text"></slot> `}get active(){return this._active}set active(t){const e=this._active;this._active=t,this.requestUpdate("active",e)}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}handleKeyDown(t){if(this.disabled)return;const{code:e}=t;(0,n.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.disabled||(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}static get styles(){return[a.A,c.A,o.A]}get buttonClassMap(){return{"md-button--circle":this.circle,"md-button--rounded":this.rounded,"md-button--none":this.hasRemoveStyle,"md-button--outline":this.outline,active:this.active&&!this.disabled,disabled:this.disabled&&!this.active,isActive:this.isActive,[`md-button--${this.size}`]:!this.hasRemoveStyle,[`md-button--${this.color}`]:!this.hasRemoveStyle&&!!this.color,[`md-activity__${this.activityType}`]:!!this.activityType,"md-activity":!!this.activityType,"md-button--icon":this.iconActive,"md-button--onlyicon":this.hasIcon&&!this.slottedText,"md-button--placeholder-text":!0===this.isPlaceholderText}}get slottedText(){var t;return null===(t=this.querySelector("[slot=text]"))||void 0===t?void 0:t.textContent}get hasIcon(){return null!==this.querySelector("[slot=icon]")||this.loading}childrenTemplate(){return l.html`
2587
2595
  <span part="button-children" class="md-button__children">
2588
2596
  ${this.iconTemplate()} ${this.textTemplate()}
2589
2597
  <slot></slot>
@@ -2595,16 +2603,16 @@
2595
2603
  class="md-button ${(0,h.classMap)(this.buttonClassMap)}"
2596
2604
  @click=${t=>this.handleClick(t)}
2597
2605
  @keydown=${t=>this.handleKeyDown(t)}
2598
- tabindex=${(0,c.ifDefined)(this.tabIndex||void 0)}
2599
- aria-label=${(0,c.ifDefined)(this.ariaLabel||void 0)}
2600
- aria-labelledby=${(0,c.ifDefined)(this.ariaLabelledBy||void 0)}
2601
- aria-live=${(0,c.ifDefined)(this.ariaLive||void 0)}
2602
- aria-expanded=${(0,c.ifDefined)(this.computedAriaExpand)}
2603
- aria-haspopup=${(0,c.ifDefined)("false"===this.ariaHaspopup?void 0:this.ariaHaspopup)}
2604
- aria-pressed=${(0,c.ifDefined)(this.ariaPressed||void 0)}
2605
- aria-disabled=${(0,c.ifDefined)(this.disabled||this.loading||void 0)}
2606
+ tabindex=${(0,p.ifDefined)(this.tabIndex||void 0)}
2607
+ aria-label=${(0,p.ifDefined)(this.ariaLabel||void 0)}
2608
+ aria-labelledby=${(0,p.ifDefined)(this.ariaLabelledBy||void 0)}
2609
+ aria-live=${(0,p.ifDefined)(this.ariaLive||void 0)}
2610
+ aria-expanded=${(0,p.ifDefined)(this.computedAriaExpand)}
2611
+ aria-haspopup=${(0,p.ifDefined)("false"===this.ariaHaspopup?void 0:this.ariaHaspopup)}
2612
+ aria-pressed=${(0,p.ifDefined)(this.ariaPressed||void 0)}
2613
+ aria-disabled=${(0,p.ifDefined)(this.disabled||this.loading||void 0)}
2606
2614
  type=${this.type}
2607
- role=${(0,c.ifDefined)("button"===this.role?void 0:this.role)}
2615
+ role=${(0,p.ifDefined)("button"===this.role?void 0:this.role)}
2608
2616
  >
2609
2617
  ${this.childrenTemplate()}
2610
2618
  </button>
@@ -2616,15 +2624,15 @@
2616
2624
  @click=${t=>this.handleClick(t)}
2617
2625
  @keydown=${t=>this.handleKeyDown(t)}
2618
2626
  role=${this.role}
2619
- tabindex=${(0,c.ifDefined)(this.tabIndex||void 0)}
2627
+ tabindex=${(0,p.ifDefined)(this.tabIndex||void 0)}
2620
2628
  aria-pressed=${"true"===this.ariaPressed}
2621
- aria-label=${(0,c.ifDefined)(this.ariaLabel||void 0)}
2622
- aria-labelledby=${(0,c.ifDefined)(this.ariaLabelledBy||void 0)}
2623
- aria-live=${(0,c.ifDefined)(this.ariaLive||void 0)}
2629
+ aria-label=${(0,p.ifDefined)(this.ariaLabel||void 0)}
2630
+ aria-labelledby=${(0,p.ifDefined)(this.ariaLabelledBy||void 0)}
2631
+ aria-live=${(0,p.ifDefined)(this.ariaLive||void 0)}
2624
2632
  type=${this.type}
2625
2633
  alt=${this.label}
2626
2634
  value=${this.value}
2627
- aria-disabled=${(0,c.ifDefined)(this.disabled||this.loading||void 0)}
2635
+ aria-disabled=${(0,p.ifDefined)(this.disabled||this.loading||void 0)}
2628
2636
  />
2629
2637
  `:"a"===t?l.html`
2630
2638
  <a
@@ -2634,12 +2642,12 @@
2634
2642
  @click=${t=>this.handleClick(t)}
2635
2643
  @keydown=${t=>this.handleKeyDown(t)}
2636
2644
  role=${this.role}
2637
- tabindex=${(0,c.ifDefined)(this.tabIndex||void 0)}
2645
+ tabindex=${(0,p.ifDefined)(this.tabIndex||void 0)}
2638
2646
  aria-pressed=${"true"===this.ariaPressed?"true":"false"}
2639
- aria-label=${(0,c.ifDefined)(this.ariaLabel||void 0)}
2640
- aria-labelledby=${(0,c.ifDefined)(this.ariaLabelledBy||void 0)}
2641
- aria-live=${(0,c.ifDefined)(this.ariaLive||void 0)}
2642
- aria-disabled=${(0,c.ifDefined)(this.disabled||this.loading||void 0)}
2647
+ aria-label=${(0,p.ifDefined)(this.ariaLabel||void 0)}
2648
+ aria-labelledby=${(0,p.ifDefined)(this.ariaLabelledBy||void 0)}
2649
+ aria-live=${(0,p.ifDefined)(this.ariaLive||void 0)}
2650
+ aria-disabled=${(0,p.ifDefined)(this.disabled||this.loading||void 0)}
2643
2651
  href=${this.href}
2644
2652
  >
2645
2653
  ${this.childrenTemplate()}
@@ -2670,7 +2678,7 @@
2670
2678
  >
2671
2679
  <slot></slot>
2672
2680
  </form>
2673
- `}};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","channel-chat","channel-sms-inbound","channel-sms-outbound","channel-email-inbound","channel-email-outbound","channel-call","channel-social","channel-callback","channel-headset","channel-campaign","channel-emoji","channel-webex","channel-fb-messenger","channel-apple-chat","channel-line","channel-twitter-x","channel-viber","channel-whats-app","channel-we-chat","channel-spam","channel-custom",""];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`
2681
+ `}};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:()=>c,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:()=>p.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:()=>pt.Pagination,PhoneInput:()=>ct.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),p=i(61200);const c=["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`
2674
2682
  <div class="md-code-editor" part="code-editor">
2675
2683
  <div class="md-code-editor-header">
2676
2684
  <div class="md-code-editor-name">
@@ -2703,7 +2711,7 @@
2703
2711
  </pre>
2704
2712
  </div>
2705
2713
  </div>
2706
- `}};D([(0,O.property)({type:String})],e.prototype,"copyLocalization",void 0),D([(0,O.property)({type:String})],e.prototype,"copiedLocalization",void 0),D([(0,O.property)({type:String})],e.prototype,"method",void 0),D([(0,O.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),D([(0,O.property)({type:String})],e.prototype,"url",void 0),D([(0,O.query)("input[type='file']")],e.prototype,"input",void 0),D([(0,O.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),D([(0,O.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),D([(0,O.internalProperty)()],e.prototype,"disableCopyButton",void 0),D([(0,O.internalProperty)()],e.prototype,"acceptTypes",void 0),D([(0,O.internalProperty)()],e.prototype,"copied",void 0),D([(0,O.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),D([(0,O.queryAssignedNodes)("code-url")],e.prototype,"slotUrl",void 0),e=D([(0,k.wW)("md-code-editor")],e),t.ELEMENT=e}(P||(P={}));var R=i(4928),_=i(69494),B=i(85416),F=i(38654),z=i(63208),V=i(16754),j=i(17814),N=i(10984),U=i(80072),q=i(24627),H=i(23184),K=i(50565),W=i(99850),G=i(58871),Y=i(73093),X=i(97866),Q=i(69112),Z=i(20109),J=i(52619),tt=i(96408),et=i(6396),it=i(19026),st=i(68490),ot=i(66245),rt=i(69788),nt=i(61997),at=i(11323),lt=i(84032),dt=i(48171),ht=i(32252),ct=i(23026),pt=i(84205),ut=i(71128),mt=i(58287),yt=i(81144),bt=i(32217),vt=i(25428),gt=i(12176),ft=i(77935),wt=i(40428),Ct=i(16643),xt=i(97737),St=i(50226),$t=i(86610),Et=i(1072),Tt=i(49256),kt=i(20331),At=i(83192),It=i(81786),Lt=i(37719)},99850:(t,e,i)=>{i.d(e,{Favorite:()=>s}),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(23968),h=i(97822),c=i(27092),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};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite",this.customId=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[a.A,c.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return l.html`
2714
+ `}};D([(0,O.property)({type:String})],e.prototype,"copyLocalization",void 0),D([(0,O.property)({type:String})],e.prototype,"copiedLocalization",void 0),D([(0,O.property)({type:String})],e.prototype,"method",void 0),D([(0,O.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),D([(0,O.property)({type:String})],e.prototype,"url",void 0),D([(0,O.query)("input[type='file']")],e.prototype,"input",void 0),D([(0,O.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),D([(0,O.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),D([(0,O.internalProperty)()],e.prototype,"disableCopyButton",void 0),D([(0,O.internalProperty)()],e.prototype,"acceptTypes",void 0),D([(0,O.internalProperty)()],e.prototype,"copied",void 0),D([(0,O.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),D([(0,O.queryAssignedNodes)("code-url")],e.prototype,"slotUrl",void 0),e=D([(0,k.wW)("md-code-editor")],e),t.ELEMENT=e}(P||(P={}));var R=i(4928),_=i(69494),B=i(85416),F=i(38654),z=i(63208),V=i(16754),j=i(17814),N=i(10984),U=i(80072),q=i(24627),H=i(23184),K=i(50565),W=i(99850),G=i(58871),Y=i(73093),X=i(97866),Q=i(69112),Z=i(20109),J=i(52619),tt=i(96408),et=i(6396),it=i(19026),st=i(68490),ot=i(66245),rt=i(69788),nt=i(61997),at=i(11323),lt=i(84032),dt=i(48171),ht=i(32252),pt=i(23026),ct=i(84205),ut=i(71128),mt=i(58287),yt=i(81144),bt=i(32217),vt=i(25428),gt=i(12176),ft=i(77935),wt=i(40428),Ct=i(16643),xt=i(97737),St=i(50226),$t=i(86610),Et=i(1072),Tt=i(49256),kt=i(20331),At=i(83192),It=i(81786),Lt=i(37719)},99850:(t,e,i)=>{i.d(e,{Favorite:()=>s}),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(23968),h=i(97822),p=i(27092),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};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite",this.customId=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[a.A,p.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return l.html`
2707
2715
  <label
2708
2716
  for="favorite-checkbox"
2709
2717
  id="${this.id}"
@@ -2725,4 +2733,4 @@
2725
2733
  size="16"
2726
2734
  ></md-icon>
2727
2735
  </label>
2728
- `}};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,4548,6700,6795,76,528,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,2798,182,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)})()));
2736
+ `}};c([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),c([(0,l.property)({type:String})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=c([(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,2798,182,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)})()));