@momentum-ui/web-components 3.2.15 → 3.2.17

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.
@@ -542,20 +542,18 @@ import*as t from"luxon";var e,i,s={3701(t,e,i){i.d(e,{n:()=>s});var s,o=i(2900),
542
542
  ${this.renderHeader()}
543
543
  <div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
544
544
  </div>
545
- `}};c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),c([(0,l.property)({type:String})],e.prototype,"cardText",void 0),c([(0,l.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.state)()],e.prototype,"copyChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsUpChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,a.w)("md-card-ai")],e),t.ELEMENT=e}(o||(o={}))},4882(t,e,i){i.d(e,{v:()=>u}),i(5983),i(2583),i(1821);var s,o=i(9609),a=i(4084),r=i(2927),n=i(8899),l=i(4955),d=i(7137),h=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.CRITICAL="critical",t.MEDIUM="medium"}(s||(s={}));const c={[s.CRITICAL]:{icon:"flag-filled",color:"negative"},[s.MEDIUM]:{icon:"warning-filled",color:"warning"}},p={dismiss:"Dismiss",justNow:"Just now",minutesAgo:t=>`${t} ${1===t?"min":"mins"} ago`,hoursAgo:t=>`${t} ${1===t?"hour":"hours"} ago`,daysAgo:t=>`${t} ${1===t?"day":"days"} ago`};var u;!function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.severity="",this.category="",this.timestamp="",this.title="",this.queueName="",this.details=[],this.insight="",this.primaryActionLabel="Click",this.primaryActionDropdown=!1,this.detailsHeading="",this.showDismiss=!1,this.expanded=!1,this.relativeTime=""}static get styles(){return[a.A,d.A]}get normalizedSeverity(){var t;const e=(null!==(t=this.severity)&&void 0!==t?t:"").toLowerCase();return Object.values(s).includes(e)?e:void 0}get severityIcon(){return this.normalizedSeverity?c[this.normalizedSeverity].icon:"info-circle-filled"}get severityColor(){return this.normalizedSeverity?c[this.normalizedSeverity].color:"neutral"}get hasInsight(){var t;return(null!==(t=this.insight)&&void 0!==t?t:"").trim().length>0}get detailRows(){return Array.isArray(this.details)?this.details:[]}updateRelativeTime(){this.timestamp&&(this.relativeTime=this.formatRelativeTime(this.timestamp))}startTimer(){this.stopTimer(),this.timestamp&&(this.updateRelativeTime(),this.timerInterval=setInterval(()=>this.updateRelativeTime(),6e4))}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=void 0)}willUpdate(t){t.has("timestamp")&&this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.stopTimer()}formatRelativeTime(t){const e=this.constructor.locale,i=Date.now(),s="number"==typeof t?t:new Date(t).getTime();if(isNaN(s))return"";const o=i-s;if(o<0)return e.justNow;const a=Math.floor(o/6e4);if(a<1)return e.justNow;if(a<60)return e.minutesAgo(a);const r=Math.floor(a/60);if(r<24)return e.hoursAgo(r);const n=Math.floor(r/24);return e.daysAgo(n)}handlePrimaryAction(){this.dispatchEvent(new CustomEvent("primary-action-clicked",{bubbles:!0,composed:!0}))}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss-clicked",{bubbles:!0,composed:!0}))}renderTimestamp(){return this.relativeTime?r.html`<span class="md-card-alert-timestamp">${this.relativeTime}</span>`:r.nothing}renderHeader(){return this.severity||this.category||this.timestamp?r.html`
545
+ `}};c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),c([(0,l.property)({type:String})],e.prototype,"cardText",void 0),c([(0,l.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.state)()],e.prototype,"copyChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsUpChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,a.w)("md-card-ai")],e),t.ELEMENT=e}(o||(o={}))},4882(t,e,i){i.d(e,{v:()=>u}),i(5983),i(2583),i(1821);var s,o=i(9609),a=i(4084),r=i(2927),n=i(8899),l=i(4955),d=i(7137),h=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.CRITICAL="critical",t.MEDIUM="medium"}(s||(s={}));const c={[s.CRITICAL]:{icon:"flag-filled",color:"negative"},[s.MEDIUM]:{icon:"warning-filled",color:"warning"}},p={dismiss:"Dismiss",justNow:"Just now",minutesAgo:t=>`${t} ${1===t?"min":"mins"} ago`,hoursAgo:t=>`${t} ${1===t?"hour":"hours"} ago`,daysAgo:t=>`${t} ${1===t?"day":"days"} ago`};var u;!function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.severity="",this.category="",this.secondaryChip="",this.timestamp="",this.title="",this.queueName="",this.details=[],this.insight="",this.primaryActionLabel="Click",this.primaryActionDropdown=!1,this.detailsHeading="",this.showDismiss=!1,this.expanded=!1,this.relativeTime=""}static get styles(){return[a.A,d.A]}get normalizedSeverity(){var t;const e=(null!==(t=this.severity)&&void 0!==t?t:"").toLowerCase();return Object.values(s).includes(e)?e:void 0}get severityIcon(){return this.normalizedSeverity?c[this.normalizedSeverity].icon:"plus-circle-filled"}get severityColor(){return this.normalizedSeverity?c[this.normalizedSeverity].color:"neutral"}get hasInsight(){var t;return(null!==(t=this.insight)&&void 0!==t?t:"").trim().length>0}get detailRows(){return Array.isArray(this.details)?this.details:[]}get resolvedLocale(){return t=this.constructor.locale,Object.assign(Object.assign(Object.assign({},p),t),{dismiss:null!==(e=null==t?void 0:t.dismiss)&&void 0!==e?e:p.dismiss});var t,e}updateRelativeTime(){this.timestamp&&(this.relativeTime=this.formatRelativeTime(this.timestamp))}startTimer(){this.stopTimer(),this.timestamp&&(this.updateRelativeTime(),this.timerInterval=setInterval(()=>this.updateRelativeTime(),6e4))}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=void 0)}willUpdate(t){t.has("timestamp")&&this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.stopTimer()}formatRelativeTime(t){const e=this.resolvedLocale,i=Date.now(),s="number"==typeof t?t:new Date(t).getTime();if(isNaN(s))return"";const o=i-s;if(o<0)return e.justNow;const a=Math.floor(o/6e4);if(a<1)return e.justNow;if(a<60)return e.minutesAgo(a);const r=Math.floor(a/60);if(r<24)return e.hoursAgo(r);const n=Math.floor(r/24);return e.daysAgo(n)}handlePrimaryAction(){this.dispatchEvent(new CustomEvent("primary-action-clicked",{bubbles:!0,composed:!0}))}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss-clicked",{bubbles:!0,composed:!0}))}renderTimestamp(){return this.relativeTime?r.html`<span class="md-card-alert-timestamp">${this.relativeTime}</span>`:r.nothing}renderHeader(){return this.severity||this.category||this.timestamp?r.html`
546
546
  <div class="md-card-alert-header">
547
547
  <div class="md-card-alert-chips">
548
- ${this.severity?r.html`
549
- <md-chip color=${this.severityColor} small>
550
- <md-icon
551
- name=${this.severityIcon}
552
- size="14"
553
- iconSet="momentumDesign"
554
- slot="custom-left-content"
555
- ></md-icon>
556
- </md-chip>
557
- `:r.nothing}
558
- ${this.category?r.html`<md-chip value=${this.category} color="neutral" small></md-chip>`:r.nothing}
548
+ <md-chip color=${this.severityColor} value=${this.category} small>
549
+ <md-icon
550
+ name=${this.severityIcon}
551
+ size="14"
552
+ iconSet="momentumDesign"
553
+ slot="custom-left-content"
554
+ ></md-icon>
555
+ </md-chip>
556
+ ${this.secondaryChip?r.html`<md-chip color="confidence-cobalt" value=${this.secondaryChip} small></md-chip>`:r.nothing}
559
557
  </div>
560
558
  ${this.renderTimestamp()}
561
559
  </div>
@@ -592,11 +590,11 @@ import*as t from"luxon";var e,i,s={3701(t,e,i){i.d(e,{n:()=>s});var s,o=i(2900),
592
590
  <md-icon name="sparkle-filled" iconSet="momentumDesign" class="md-card-alert-insight-icon"></md-icon>
593
591
  <span class="md-card-alert-insight-text">${this.insight}</span>
594
592
  </div>
595
- `:r.nothing}renderActions(){return r.html`
593
+ `:r.nothing}renderActions(){const t=this.resolvedLocale.dismiss;return r.html`
596
594
  <div class="md-card-alert-actions">
597
595
  <md-button
598
596
  size="32"
599
- variant="primary"
597
+ variant="secondary"
600
598
  class="md-card-alert-primary-action"
601
599
  ariaLabel=${this.primaryActionLabel}
602
600
  @click=${this.handlePrimaryAction}
@@ -612,25 +610,24 @@ import*as t from"luxon";var e,i,s={3701(t,e,i){i.d(e,{n:()=>s});var s,o=i(2900),
612
610
  <md-button
613
611
  size="32"
614
612
  variant="secondary"
615
- outline
616
613
  class="md-card-alert-dismiss"
617
- ariaLabel=${this.constructor.locale.dismiss}
614
+ ariaLabel=${t}
618
615
  @click=${this.handleDismiss}
619
616
  >
620
- <span slot="text">${this.constructor.locale.dismiss}</span>
617
+ <span slot="text">${t}</span>
621
618
  </md-button>
622
619
  `:r.nothing}
623
620
  </div>
624
621
  `}render(){return r.html`
625
622
  <div
626
- class=${(0,l.classMap)({"md-card-alert":!0,"md-card-alert--no-insight":!this.hasInsight})}
623
+ class=${(0,l.classMap)({"md-card-alert":!0,"md-card-alert--no-insight":!this.hasInsight,"md-card-alert--expanded":this.expanded})}
627
624
  part="card"
628
625
  tabindex="0"
629
626
  >
630
627
  ${this.renderHeader()} ${this.renderTitleSection()} ${this.renderDetails()} ${this.renderInsight()}
631
628
  ${this.renderActions()}
632
629
  </div>
633
- `}};e.locale=Object.assign({},p),h([(0,n.property)({type:String})],e.prototype,"severity",void 0),h([(0,n.property)({type:String})],e.prototype,"category",void 0),h([(0,n.property)({type:String})],e.prototype,"timestamp",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"queueName",void 0),h([(0,n.property)({type:Array})],e.prototype,"details",void 0),h([(0,n.property)({type:String})],e.prototype,"insight",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryActionLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"primaryActionDropdown",void 0),h([(0,n.property)({type:String})],e.prototype,"detailsHeading",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showDismiss",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"expanded",void 0),h([(0,n.state)()],e.prototype,"relativeTime",void 0),e=h([(0,o.w)("md-card-alert")],e),t.ELEMENT=e}(u||(u={}))},7540(t,e,i){i.d(e,{h:()=>u}),i(5983),i(1821),i(9613);var s=i(9609),o=i(4084),a=i(2927),r=i(8899),n=i(4955),l=i(9642),d=i(513),h=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const c="hh:mm:ss";var p,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(p||(p={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.state=p.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[o.A,d.A]}get isCardActive(){return this.state===p.ACTIVE}willUpdate(t){super.willUpdate(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?p.DEFAULT:p.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===p.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return a.html`
630
+ `}};e.locale=Object.assign({},p),h([(0,n.property)({type:String})],e.prototype,"severity",void 0),h([(0,n.property)({type:String})],e.prototype,"category",void 0),h([(0,n.property)({type:String})],e.prototype,"secondaryChip",void 0),h([(0,n.property)({type:String})],e.prototype,"timestamp",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"queueName",void 0),h([(0,n.property)({type:Array})],e.prototype,"details",void 0),h([(0,n.property)({type:String})],e.prototype,"insight",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryActionLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"primaryActionDropdown",void 0),h([(0,n.property)({type:String})],e.prototype,"detailsHeading",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showDismiss",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"expanded",void 0),h([(0,n.state)()],e.prototype,"relativeTime",void 0),e=h([(0,o.w)("md-card-alert")],e),t.ELEMENT=e}(u||(u={}))},7540(t,e,i){i.d(e,{h:()=>u}),i(5983),i(1821),i(9613);var s=i(9609),o=i(4084),a=i(2927),r=i(8899),n=i(4955),l=i(9642),d=i(513),h=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const c="hh:mm:ss";var p,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(p||(p={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.state=p.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[o.A,d.A]}get isCardActive(){return this.state===p.ACTIVE}willUpdate(t){super.willUpdate(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?p.DEFAULT:p.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===p.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return a.html`
634
631
  <div class="md-card-v2-header-title">
635
632
  <h3>${this.header}</h3>
636
633
  ${this.info?a.html`
@@ -1774,7 +1771,7 @@ import*as t from"luxon";var e,i,s={3701(t,e,i){i.d(e,{n:()=>s});var s,o=i(2900),
1774
1771
  ></span>
1775
1772
  ${this.step?this.ticksTemplate():l.nothing} ${this.hideValue?l.nothing:this.displayValueTemplate()}
1776
1773
  </div>
1777
- `}};m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,d.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,d.property)({type:Number})],e.prototype,"text",void 0),m([(0,d.property)({type:String})],e.prototype,"label",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,d.state)()],e.prototype,"dragging",void 0),e=m([(0,r.w)("md-slider")],e),t.ELEMENT=e}(s||(s={}))},7936(t,e,i){i.d(e,{v:()=>y}),i(5983),i(1821),i(708);var s=i(9609),o=i(9938),a=i(4084),r=i(2927),n=i(8899),l=i(4955),d=i(3517),h=i(7638),c=i(6897),p=i(4841),u=i(597),m=i(9125),b=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const v=document.createElement("img");var y;v.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,o.d)(r.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 a=t.x;this.eX=t.x;let r=-1,n=-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(r!=t&&0!=t){r=t;const i=r-a;n=p-i,l=u+i,e.width=n+"px",d.width=l+"px",this.updCols()}},b=t=>this.eX=t.x,y=()=>{this.isResizing=!1,s.removeEventListener("drag",m),s.removeEventListener("dragend",y),document.removeEventListener("dragover",b)};s.addEventListener("drag",m),s.addEventListener("dragend",y),document.addEventListener("dragover",b)}}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,a,r;const n=t.filters||(null===(o=null===(s=this.tableConfig.default)||void 0===s?void 0:s.col)||void 0===o?void 0:o.filters),l=n?"forString"==n?m.d.optionsString:"forNumber"==n?m.d.optionsNumber:n.length?n:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(r=null===(a=this.tableConfig.default)||void 0===a?void 0:a.col)||void 0===r?void 0:r.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.default.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 a=e.text.indexOf(o);if(-1!=a){const r=t[o],n=this.querySelector(`#${r.templateName}`);if(null==n){console.warn(`cellTemplates["${o}"]: Missing '${r.templateName}' template.`);continue}let l=e.text.replace(o,"");r.contentCb&&(l=r.contentCb({col:s,row:i,content:l,insertIndex:a})),this.ROWS[i][s]={text:l,template:{template:n,templateCb:r.templateCb,insertIndex:"replace"==r.contentUse?-1:a}};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,a=e.index;t.group=s,e.group=i,t.index=a,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 r.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return r.html`
1774
+ `}};m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,d.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,d.property)({type:Number})],e.prototype,"text",void 0),m([(0,d.property)({type:String})],e.prototype,"label",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,d.state)()],e.prototype,"dragging",void 0),e=m([(0,r.w)("md-slider")],e),t.ELEMENT=e}(s||(s={}))},7936(t,e,i){i.d(e,{v:()=>y}),i(5983),i(1821),i(708);var s=i(9609),o=i(9938),a=i(4084),r=i(2927),n=i(8899),l=i(4955),d=i(3517),h=i(7638),c=i(6897),p=i(4841),u=i(597),m=i(9125),b=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const v=document.createElement("img");var y;v.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,o.d)(r.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 a=t.x;this.eX=t.x;let r=-1,n=-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(r!=t&&0!=t){r=t;const i=r-a;n=p-i,l=u+i,e.width=n+"px",d.width=l+"px",this.updCols()}},b=t=>this.eX=t.x,y=()=>{this.isResizing=!1,s.removeEventListener("drag",m),s.removeEventListener("dragend",y),document.removeEventListener("dragover",b)};s.addEventListener("drag",m),s.addEventListener("dragend",y),document.addEventListener("dragover",b)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("data")&&void 0!==t.get("data")&&(this.error="")}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,a,r;const n=t.filters||(null===(o=null===(s=this.tableConfig.default)||void 0===s?void 0:s.col)||void 0===o?void 0:o.filters),l=n?"forString"==n?m.d.optionsString:"forNumber"==n?m.d.optionsNumber:n.length?n:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(r=null===(a=this.tableConfig.default)||void 0===a?void 0:a.col)||void 0===r?void 0:r.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.default.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 a=e.text.indexOf(o);if(-1!=a){const r=t[o],n=this.querySelector(`#${r.templateName}`);if(null==n){console.warn(`cellTemplates["${o}"]: Missing '${r.templateName}' template.`);continue}let l=e.text.replace(o,"");r.contentCb&&(l=r.contentCb({col:s,row:i,content:l,insertIndex:a})),this.ROWS[i][s]={text:l,template:{template:n,templateCb:r.templateCb,insertIndex:"replace"==r.contentUse?-1:a}};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,a=e.index;t.group=s,e.group=i,t.index=a,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 r.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return r.html`
1778
1775
  <div class="md-table-advanced">
1779
1776
  <slot></slot>
1780
1777
  <table class=${e} summary=${(0,d.ifDefined)(null==t?void 0:t.summary)}>
@@ -2436,4 +2433,4 @@ import*as t from"luxon";var e,i,s={3701(t,e,i){i.d(e,{n:()=>s});var s,o=i(2900),
2436
2433
  @click=${this.stopEventPropagation}
2437
2434
  @keyup=${this.stopEventPropagation}
2438
2435
  @keydown=${this.stopEventPropagation}
2439
- ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,$t.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Tt.Uz.ArrowRight||t===Tt.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,$t.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==Tt.Uz.ArrowRight||this.expanded?t.key===Tt.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return xt}};kt([(0,v.property)({type:String,reflect:!0})],e.prototype,"label",void 0),kt([(0,v.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),kt([(0,v.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),kt([(0,v.property)({type:Boolean})],e.prototype,"expandable",void 0),kt([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),kt([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),kt([(0,v.property)({type:String})],e.prototype,"variant",void 0),kt([(0,v.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),kt([(0,v.query)(".header")],e.prototype,"header",void 0),e=kt([(0,st.w)("md-list-item-v2")],e),t.ELEMENT=e}(St||(St={}));var At,Lt=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};!function(t){let e=class extends b.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return b.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof St.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Tt.Uz.ArrowDown:return(e+1)%i;case Tt.Uz.ArrowUp:return(e-1+i)%i;case Tt.Uz.Home:return 0;case Tt.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),s=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==s&&(null===(e=this.listItems[s])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(s))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const s=t===i?"0":"-1";e.setAttribute("tabindex",s)})}static get styles(){return xt}};Lt([(0,v.property)({type:String})],e.prototype,"gap",void 0),Lt([(0,v.property)({type:String})],e.prototype,"orientation",void 0),Lt([(0,v.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=Lt([(0,st.w)("md-list-v2")],e),t.ELEMENT=e}(At||(At={}));var It=i(6131),Dt=i(8552),Mt=i(1161),Ot=i(7030),Rt=i(708),_t=i(4085),Pt=i(5410),Bt=i(329),zt=i(8751),Ft=i(5566),jt=i(405),Nt=i(3477),Vt=i(2708),Ut=i(3949),Ht=i(8358);const qt=b.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Kt,Wt=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};!function(t){let e=class extends b.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,b.html`<slot></slot>`}static get styles(){return[qt]}};Wt([(0,v.property)({type:String})],e.prototype,"width",void 0),Wt([(0,v.property)({type:String})],e.prototype,"height",void 0),Wt([(0,v.property)({reflect:!0})],e.prototype,"variant",void 0),Wt([(0,v.property)({reflect:!0})],e.prototype,"animation",void 0),e=Wt([(0,st.w)("md-skeleton")],e),t.ELEMENT=e}(Kt||(Kt={}));var Yt=i(3773),Gt=i(9773),Xt=i(7936),Zt=i(3273),Qt=i(120),Jt=i(6056),te=i(8543),ee=i(1479),ie=i(1853),se=i(2218),oe=i(6328),ae=i(7253),re=i(3876)},3876(t,e,i){i.d(e,{IB:()=>r,N_:()=>o,vz:()=>a});var s=i(4980);class o{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.backgroundMode="DEFAULT",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,s.makeObservable)(this,{isDarkMode:s.observable,themeName:s.observable,backgroundMode:s.observable,isVisualRebrandEnabled:s.observable,isMomentumAvatarEnabled:s.observable,isMomentumV2Enabled:s.computed,setDarkMode:s.action,setThemeName:s.action,setBackgroundMode: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.backgroundMode&&(this.backgroundMode=t.backgroundMode),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}setBackgroundMode(t){this.backgroundMode=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const a=new o;function r(t="MomentumUIThemeManager",e=a){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},7704(t,e,i){i.d(e,{Io:()=>r.I,TS:()=>n.T,UM:()=>a.U,dY:()=>o.d,wW:()=>l.w,yC:()=>s.y}),i(2364);var s=i(3203),o=i(9938),a=i(5201),r=i(4781),n=i(608),l=i(9609)},2050(t,e,i){i.d(e,{QZ:()=>a,Qx:()=>r,XI:()=>l,dw:()=>d,qi:()=>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(),a=e.toLowerCase();let r=0,n=o.indexOf(a,r);for(;n>-1;)r=n+i,s.push([n,r]),n=o.indexOf(a,n+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 a=0;return s.forEach(([e,i])=>{a!==e&&o.push({range:[e,i],matching:!1,text:t.slice(a,e)}),o.push({range:[e,i],matching:!0,text:t.slice(e,i)}),a=i}),a!==t.length&&o.push({range:[a],matching:!1,text:t.slice(a)}),o};function o(t,e,i){let s;return function(...o){const a=this,r=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||t.apply(a,o)},e),r&&t.apply(a,o)}}function a(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 r(t,e){return e>=0&&e<t.length?t[e]:void 0}function n(t,e=document){var i;const s=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(s)return s;const o=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of o){const i=n(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},7154(t,e,i){i.d(e,{o:()=>a,q:()=>r});var s=i(2900);const o=[s.Uz.ArrowDown,s.Uz.ArrowUp,s.Uz.ArrowLeft,s.Uz.ArrowRight,s.Uz.Home,s.Uz.End];function a(t){return t===s.Uz.Enter||t===s.Uz.Space||t===s.Uz.NumpadEnter}function r(t){return o.includes(t)}},9642(e,i,s){var o,a;e.exports=(o={DateTime:()=>t.DateTime,Duration:()=>t.Duration},a={},s.d(a,o),a)}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return s[t].call(i.exports,i,i.exports,a),i.exports}a.m=s,e=[],a.O=(t,i,s,o)=>{if(!i){var r=1/0;for(h=0;h<e.length;h++){for(var[i,s,o]=e[h],n=!0,l=0;l<i.length;l++)(!1&o||r>=o)&&Object.keys(a.O).every(t=>a.O[t](i[l]))?i.splice(l--,1):(n=!1,o<r&&(r=o));if(n){e.splice(h--,1);var d=s();void 0!==d&&(t=d)}}return t}o=o||0;for(var h=e.length;h>0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[i,s,o]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{a as __webpack_require__};i={519:0,561:0,708:0,1037:0,1521:0,1682:0,1788:0,1807:0,1821:0,2050:0,2105:0,2139:0,2330:0,2434:0,2779:0,2781:0,2900:0,2909:0,2942:0,3079:0,3539:0,3747:0,3876:0,3938:0,3943:0,4139:0,4259:0,4431:0,4908:0,4958:0,4971:0,5156:0,5310:0,5323:0,5757:0,5983:0,6029:0,6085:0,6132:0,6220:0,6433:0,6587:0,6724:0,6812:0,6834:0,7145:0,7154:0,7219:0,7455:0,7684:0,7704:0,7711:0,7927:0,8138:0,8180:0,8220:0,8334:0,8654:0,9189:0,9613:0,9642:0,9669:0},a.C=t=>{var e,s,{__webpack_esm_ids__:o,__webpack_esm_modules__:r,__webpack_esm_runtime__:n}=t,l=0;for(e in r)a.o(r,e)&&(a.m[e]=r[e]);for(n&&n(a);l<o.length;l++)s=o[l],a.o(i,s)&&i[s]&&i[s][0](),i[o[l]]=0;a.O()},a.O.j=t=>0===i[t];import*as r from"./7103.js";a.C(r);import*as n from"./9609.js";a.C(n);import*as l from"./4084.js";a.C(l);import*as d from"./4955.js";a.C(d);import*as h from"./3517.js";a.C(h);import*as c from"./1156.js";a.C(c);import*as p from"./3305.js";a.C(p);import*as u from"./4739.js";a.C(u);import*as m from"./7755.js";a.C(m);import*as b from"./2364.js";a.C(b);import*as v from"./5308.js";a.C(v);import*as y from"./2577.js";a.C(y);import*as g from"./8441.js";a.C(g);import*as f from"./2797.js";a.C(f);import*as w from"./4700.js";a.C(w);import*as C from"./3970.js";a.C(C);import*as E from"./6343.js";a.C(E);import*as T from"./9336.js";a.C(T);import*as $ from"./6525.js";a.C($);import*as x from"./7582.js";a.C(x);import*as S from"./3842.js";a.C(S);import*as k from"./7162.js";a.C(k);import*as A from"./7119.js";a.C(A);import*as L from"./6325.js";a.C(L);import*as I from"./4449.js";a.C(I);import*as D from"./1392.js";a.C(D);import*as M from"./2599.js";a.C(M);import*as O from"./477.js";a.C(O);import*as R from"./4047.js";a.C(R);import*as _ from"./3365.js";a.C(_);import*as P from"./3331.js";a.C(P);import*as B from"./3272.js";a.C(B);import*as z from"./740.js";a.C(z);import*as F from"./6631.js";a.C(F);import*as j from"./93.js";a.C(j);import*as N from"./9558.js";a.C(N);import*as V from"./3543.js";a.C(V);import*as U from"./878.js";a.C(U);import*as H from"./7231.js";a.C(H);import*as q from"./5846.js";a.C(q);import*as K from"./742.js";a.C(K);import*as W from"./4973.js";a.C(W);import*as Y from"./476.js";a.C(Y);import*as G from"./2458.js";a.C(G);import*as X from"./3648.js";a.C(X);import*as Z from"./6816.js";a.C(Z);import*as Q from"./5432.js";a.C(Q);import*as J from"./9431.js";a.C(J);import*as tt from"./6933.js";a.C(tt);import*as et from"./6897.js";a.C(et);import*as it from"./7638.js";a.C(it);import*as st from"./8235.js";a.C(st);import*as ot from"./2273.js";a.C(ot);import*as at from"./405.js";a.C(at);import*as rt from"./8663.js";a.C(rt);import*as nt from"./2245.js";a.C(nt);import*as lt from"./861.js";a.C(lt);import*as dt from"./2583.js";a.C(dt);import*as ht from"./5958.js";a.C(ht);import*as ct from"./837.js";a.C(ct);import*as pt from"./5057.js";a.C(pt);import*as ut from"./6005.js";a.C(ut);import*as mt from"./8687.js";a.C(mt);import*as bt from"./3155.js";a.C(bt);import*as vt from"./6131.js";a.C(vt);import*as yt from"./6020.js";a.C(yt);import*as gt from"./6709.js";a.C(gt);import*as ft from"./7901.js";a.C(ft);import*as wt from"./1816.js";a.C(wt);import*as Ct from"./887.js";a.C(Ct);import*as Et from"./327.js";a.C(Et);import*as Tt from"./4839.js";a.C(Tt);import*as $t from"./5410.js";a.C($t);import*as xt from"./1161.js";a.C(xt);import*as St from"./226.js";a.C(St);import*as kt from"./23.js";a.C(kt);import*as At from"./4750.js";a.C(At);import*as Lt from"./2154.js";a.C(Lt);import*as It from"./9404.js";a.C(It);import*as Dt from"./2297.js";a.C(Dt);import*as Mt from"./7155.js";a.C(Mt);import*as Ot from"./7137.js";a.C(Ot);import*as Rt from"./8552.js";a.C(Rt);import*as _t from"./3477.js";a.C(_t);import*as Pt from"./2670.js";a.C(Pt);import*as Bt from"./513.js";a.C(Bt);import*as zt from"./5525.js";a.C(zt);import*as Ft from"./752.js";a.C(Ft);import*as jt from"./3182.js";a.C(jt);import*as Nt from"./9940.js";a.C(Nt);import*as Vt from"./4242.js";a.C(Vt);import*as Ut from"./1928.js";a.C(Ut);import*as Ht from"./4060.js";a.C(Ht);import*as qt from"./2451.js";a.C(qt);import*as Kt from"./1982.js";a.C(Kt);import*as Wt from"./9316.js";a.C(Wt);import*as Yt from"./7838.js";a.C(Yt);import*as Gt from"./7911.js";a.C(Gt);import*as Xt from"./2991.js";a.C(Xt);import*as Zt from"./9485.js";a.C(Zt);import*as Qt from"./6843.js";a.C(Qt);import*as Jt from"./3051.js";a.C(Jt);var te=a.O(void 0,[7103,9609,4084,4955,3517,1156,3305,4739,7755,2364,5308,2577,8441,2797,4700,3970,6343,9336,6525,7582,3842,7162,7119,6325,4449,1392,2599,477,4047,3365,3331,3272,740,6631,93,9558,3543,878,7231,5846,742,4973,476,2458,3648,6816,5432,9431,6933,6897,7638,8235,2273,405,8663,2245,861,2583,5958,837,5057,6005,8687,3155,6131,6020,6709,7901,1816,887,327,4839,5410,1161,226,23,4750,2154,9404,2297,7155,7137,8552,3477,2670,513,5525,752,3182,9940,4242,1928,4060,2451,1982,9316,7838,7911,2991,9485,6843,3051],()=>a(371));const ee=(te=a.O(te)).nD,ie=te.As,se=te.uo,oe=te.Lj,ae=te.Fc,re=te.ZT,ne=te.Fu,le=te.Y$,de=te.eu,he=te.uW,ce=te.Ex,pe=te.Qp,ue=te.$n,me=te.e2,be=te.Zp,ve=te.pI,ye=te.vg,ge=te.h$,fe=te.cM,we=te.Sc,Ce=te.$Q,Ee=te.vu,Te=te.iU,$e=te.xw,xe=te.BY,Se=te.a3,ke=te.Xz,Ae=te.YQ,Le=te.lr,Ie=te.$5,De=te.XE,Me=te.j_,Oe=te.xx,Re=te.Ur,_e=te.K7,Pe=te.sx,Be=te.T_,ze=te.ms,Fe=te.I,je=te.NG,Ne=te.Uz,Ve=te.gQ,Ue=te.oH,He=te.lV,qe=te.Yp,Ke=te.MJ,We=te.gE,Ye=te.IJ,Ge=te.$9,Xe=te.In,Ze=te.pd,Qe=te.bT,Je=te.JU,ti=te.N_,ei=te.B8,ii=te.ck,si=te.Eu,oi=te.Pj,ai=te.Rh,ri=te.A1,ni=te.DE,li=te.Dr,di=te.W1,hi=te.aF,ci=te.vd,pi=te.dK,ui=te.LR,mi=te.AM,bi=te.IE,vi=te.Cq,yi=te.z2,gi=te.pO,fi=te.z6,wi=te.EA,Ci=te.Ap,Ei=te.y$,Ti=te.oz,$i=te.Kp,xi=te.XI,Si=te.v1,ki=te.tU,Ai=te.L2,Li=te.Sx,Ii=te.ew,Di=te.AG,Mi=te.jF,Oi=te.m_,Ri=te.k0,_i=te.Ou,Pi=te.IB,Bi=te.vz;export{ee as Accordion,ie as AccordionItem,se as ActivityButton,oe as AdvanceList,ae as Alert,re as AlertBanner,ne as ArrayValidators,le as AudioPlayer,de as Avatar,he as AvatarType,ce as Badge,pe as Breadcrumb,ue as Button,me as ButtonGroup,be as Card,ve as CardAi,ye as CardAlert,ge as CardV2,fe as ChatMessage,we as Checkbox,Ce as CheckboxGroup,Ee as Chip,Te as Coachmark,$e as CoachmarkPopover,xe as CodeEditor,Se as ComboBox,ke as CompositeAvatar,Ae as CountryCodePicker,Le as DatePicker,Ie as DatePickerCalendar,De as DatePickerDay,Me as DatePickerMonth,Oe as DatePickerWeek,Re as DateRangePicker,_e as DateTimePicker,Pe as Draggable,Be as DraggableItem,ze as Dropdown,Fe as EditableTextfield,je as Favorite,Ne as FloatingButtonBar,Ve as FloatingMinimizedModal,Ue as FloatingModal,He as Form,qe as FormArray,Ke as FormControl,We as FormGroup,Ye as Grabber,Ge as HelpText,Xe as Icon,Ze as Input,Qe as InputFile,Je as Label,ti as Link,ei as List,ii as ListItem,si as ListItemV2,oi as ListV2,ai as Loading,ri as MeetingAlert,ni as Menu,li as MenuItem,di as MenuOverlay,hi as Modal,ci as NotificationBadge,pi as Pagination,ui as PhoneInput,mi as Popover,bi as PopoverController,vi as Presence,yi as ProgressBar,gi as Radio,fi as RadioGroup,wi as Skeleton,Ci as Slider,Ei as Spinner,Ti as Tab,$i as TabPanel,xi as Table,Si as TableAdvanced,ki as Tabs,Ai as TaskItem,Li as Theme,Ii as ThemeManager,Di as TimePicker,Mi as ToggleSwitch,Oi as Tooltip,Ri as Validators,_i as iconUrlManager,Pi as registerThemeManagerGlobally,Bi as themeManager};
2436
+ ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,$t.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Tt.Uz.ArrowRight||t===Tt.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,$t.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==Tt.Uz.ArrowRight||this.expanded?t.key===Tt.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return xt}};kt([(0,v.property)({type:String,reflect:!0})],e.prototype,"label",void 0),kt([(0,v.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),kt([(0,v.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),kt([(0,v.property)({type:Boolean})],e.prototype,"expandable",void 0),kt([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),kt([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),kt([(0,v.property)({type:String})],e.prototype,"variant",void 0),kt([(0,v.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),kt([(0,v.query)(".header")],e.prototype,"header",void 0),e=kt([(0,st.w)("md-list-item-v2")],e),t.ELEMENT=e}(St||(St={}));var At,Lt=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};!function(t){let e=class extends b.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return b.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof St.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Tt.Uz.ArrowDown:return(e+1)%i;case Tt.Uz.ArrowUp:return(e-1+i)%i;case Tt.Uz.Home:return 0;case Tt.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),s=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==s&&(null===(e=this.listItems[s])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(s))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const s=t===i?"0":"-1";e.setAttribute("tabindex",s)})}static get styles(){return xt}};Lt([(0,v.property)({type:String})],e.prototype,"gap",void 0),Lt([(0,v.property)({type:String})],e.prototype,"orientation",void 0),Lt([(0,v.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=Lt([(0,st.w)("md-list-v2")],e),t.ELEMENT=e}(At||(At={}));var It=i(6131),Dt=i(8552),Mt=i(1161),Ot=i(7030),Rt=i(708),_t=i(4085),Pt=i(5410),Bt=i(329),zt=i(8751),Ft=i(5566),jt=i(405),Nt=i(3477),Vt=i(2708),Ut=i(3949),Ht=i(8358);const qt=b.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Kt,Wt=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};!function(t){let e=class extends b.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,b.html`<slot></slot>`}static get styles(){return[qt]}};Wt([(0,v.property)({type:String})],e.prototype,"width",void 0),Wt([(0,v.property)({type:String})],e.prototype,"height",void 0),Wt([(0,v.property)({reflect:!0})],e.prototype,"variant",void 0),Wt([(0,v.property)({reflect:!0})],e.prototype,"animation",void 0),e=Wt([(0,st.w)("md-skeleton")],e),t.ELEMENT=e}(Kt||(Kt={}));var Yt=i(3773),Gt=i(9773),Xt=i(7936),Zt=i(3273),Qt=i(120),Jt=i(6056),te=i(8543),ee=i(1479),ie=i(1853),se=i(2218),oe=i(6328),ae=i(7253),re=i(3876)},3876(t,e,i){i.d(e,{IB:()=>r,N_:()=>o,vz:()=>a});var s=i(4980);class o{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.backgroundMode="DEFAULT",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,s.makeObservable)(this,{isDarkMode:s.observable,themeName:s.observable,backgroundMode:s.observable,isVisualRebrandEnabled:s.observable,isMomentumAvatarEnabled:s.observable,isMomentumV2Enabled:s.computed,setDarkMode:s.action,setThemeName:s.action,setBackgroundMode: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.backgroundMode&&(this.backgroundMode=t.backgroundMode),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}setBackgroundMode(t){this.backgroundMode=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const a=new o;function r(t="MomentumUIThemeManager",e=a){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},7704(t,e,i){i.d(e,{Io:()=>r.I,TS:()=>n.T,UM:()=>a.U,dY:()=>o.d,wW:()=>l.w,yC:()=>s.y}),i(2364);var s=i(3203),o=i(9938),a=i(5201),r=i(4781),n=i(608),l=i(9609)},2050(t,e,i){i.d(e,{QZ:()=>a,Qx:()=>r,XI:()=>l,dw:()=>d,qi:()=>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(),a=e.toLowerCase();let r=0,n=o.indexOf(a,r);for(;n>-1;)r=n+i,s.push([n,r]),n=o.indexOf(a,n+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 a=0;return s.forEach(([e,i])=>{a!==e&&o.push({range:[e,i],matching:!1,text:t.slice(a,e)}),o.push({range:[e,i],matching:!0,text:t.slice(e,i)}),a=i}),a!==t.length&&o.push({range:[a],matching:!1,text:t.slice(a)}),o};function o(t,e,i){let s;return function(...o){const a=this,r=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||t.apply(a,o)},e),r&&t.apply(a,o)}}function a(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 r(t,e){return e>=0&&e<t.length?t[e]:void 0}function n(t,e=document){var i;const s=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(s)return s;const o=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of o){const i=n(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},7154(t,e,i){i.d(e,{o:()=>a,q:()=>r});var s=i(2900);const o=[s.Uz.ArrowDown,s.Uz.ArrowUp,s.Uz.ArrowLeft,s.Uz.ArrowRight,s.Uz.Home,s.Uz.End];function a(t){return t===s.Uz.Enter||t===s.Uz.Space||t===s.Uz.NumpadEnter}function r(t){return o.includes(t)}},9642(e,i,s){var o,a;e.exports=(o={DateTime:()=>t.DateTime,Duration:()=>t.Duration},a={},s.d(a,o),a)}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return s[t].call(i.exports,i,i.exports,a),i.exports}a.m=s,e=[],a.O=(t,i,s,o)=>{if(!i){var r=1/0;for(h=0;h<e.length;h++){for(var[i,s,o]=e[h],n=!0,l=0;l<i.length;l++)(!1&o||r>=o)&&Object.keys(a.O).every(t=>a.O[t](i[l]))?i.splice(l--,1):(n=!1,o<r&&(r=o));if(n){e.splice(h--,1);var d=s();void 0!==d&&(t=d)}}return t}o=o||0;for(var h=e.length;h>0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[i,s,o]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{a as __webpack_require__};i={519:0,561:0,708:0,1037:0,1521:0,1682:0,1788:0,1807:0,1821:0,2050:0,2105:0,2139:0,2330:0,2434:0,2779:0,2781:0,2900:0,2909:0,2942:0,3079:0,3539:0,3747:0,3876:0,3938:0,3943:0,4139:0,4259:0,4431:0,4908:0,4958:0,4971:0,5156:0,5310:0,5323:0,5757:0,5983:0,6029:0,6085:0,6132:0,6220:0,6433:0,6587:0,6724:0,6812:0,6834:0,7145:0,7154:0,7219:0,7455:0,7684:0,7704:0,7711:0,7927:0,8138:0,8180:0,8220:0,8334:0,8654:0,9189:0,9613:0,9642:0,9669:0},a.C=t=>{var e,s,{__webpack_esm_ids__:o,__webpack_esm_modules__:r,__webpack_esm_runtime__:n}=t,l=0;for(e in r)a.o(r,e)&&(a.m[e]=r[e]);for(n&&n(a);l<o.length;l++)s=o[l],a.o(i,s)&&i[s]&&i[s][0](),i[o[l]]=0;a.O()},a.O.j=t=>0===i[t];import*as r from"./7103.js";a.C(r);import*as n from"./9609.js";a.C(n);import*as l from"./4084.js";a.C(l);import*as d from"./4955.js";a.C(d);import*as h from"./3517.js";a.C(h);import*as c from"./1156.js";a.C(c);import*as p from"./3305.js";a.C(p);import*as u from"./4739.js";a.C(u);import*as m from"./7755.js";a.C(m);import*as b from"./2364.js";a.C(b);import*as v from"./5308.js";a.C(v);import*as y from"./2577.js";a.C(y);import*as g from"./8441.js";a.C(g);import*as f from"./2797.js";a.C(f);import*as w from"./4700.js";a.C(w);import*as C from"./3970.js";a.C(C);import*as E from"./6343.js";a.C(E);import*as T from"./9336.js";a.C(T);import*as $ from"./6525.js";a.C($);import*as x from"./7582.js";a.C(x);import*as S from"./3842.js";a.C(S);import*as k from"./7162.js";a.C(k);import*as A from"./7119.js";a.C(A);import*as L from"./6325.js";a.C(L);import*as I from"./4449.js";a.C(I);import*as D from"./1392.js";a.C(D);import*as M from"./2599.js";a.C(M);import*as O from"./477.js";a.C(O);import*as R from"./4047.js";a.C(R);import*as _ from"./3365.js";a.C(_);import*as P from"./3331.js";a.C(P);import*as B from"./3272.js";a.C(B);import*as z from"./740.js";a.C(z);import*as F from"./6631.js";a.C(F);import*as j from"./93.js";a.C(j);import*as N from"./9558.js";a.C(N);import*as V from"./3543.js";a.C(V);import*as U from"./878.js";a.C(U);import*as H from"./7231.js";a.C(H);import*as q from"./5846.js";a.C(q);import*as K from"./742.js";a.C(K);import*as W from"./4973.js";a.C(W);import*as Y from"./476.js";a.C(Y);import*as G from"./2458.js";a.C(G);import*as X from"./3648.js";a.C(X);import*as Z from"./6816.js";a.C(Z);import*as Q from"./5432.js";a.C(Q);import*as J from"./9431.js";a.C(J);import*as tt from"./6933.js";a.C(tt);import*as et from"./6897.js";a.C(et);import*as it from"./7638.js";a.C(it);import*as st from"./8235.js";a.C(st);import*as ot from"./2273.js";a.C(ot);import*as at from"./405.js";a.C(at);import*as rt from"./8663.js";a.C(rt);import*as nt from"./2245.js";a.C(nt);import*as lt from"./861.js";a.C(lt);import*as dt from"./2583.js";a.C(dt);import*as ht from"./5958.js";a.C(ht);import*as ct from"./837.js";a.C(ct);import*as pt from"./5057.js";a.C(pt);import*as ut from"./6005.js";a.C(ut);import*as mt from"./8687.js";a.C(mt);import*as bt from"./3155.js";a.C(bt);import*as vt from"./6131.js";a.C(vt);import*as yt from"./6020.js";a.C(yt);import*as gt from"./6709.js";a.C(gt);import*as ft from"./7901.js";a.C(ft);import*as wt from"./1816.js";a.C(wt);import*as Ct from"./887.js";a.C(Ct);import*as Et from"./327.js";a.C(Et);import*as Tt from"./4839.js";a.C(Tt);import*as $t from"./5410.js";a.C($t);import*as xt from"./1161.js";a.C(xt);import*as St from"./226.js";a.C(St);import*as kt from"./23.js";a.C(kt);import*as At from"./4750.js";a.C(At);import*as Lt from"./7137.js";a.C(Lt);import*as It from"./2154.js";a.C(It);import*as Dt from"./9404.js";a.C(Dt);import*as Mt from"./2297.js";a.C(Mt);import*as Ot from"./7155.js";a.C(Ot);import*as Rt from"./8552.js";a.C(Rt);import*as _t from"./3477.js";a.C(_t);import*as Pt from"./2670.js";a.C(Pt);import*as Bt from"./513.js";a.C(Bt);import*as zt from"./5525.js";a.C(zt);import*as Ft from"./752.js";a.C(Ft);import*as jt from"./3182.js";a.C(jt);import*as Nt from"./9940.js";a.C(Nt);import*as Vt from"./4242.js";a.C(Vt);import*as Ut from"./1928.js";a.C(Ut);import*as Ht from"./4060.js";a.C(Ht);import*as qt from"./2451.js";a.C(qt);import*as Kt from"./1982.js";a.C(Kt);import*as Wt from"./9316.js";a.C(Wt);import*as Yt from"./7838.js";a.C(Yt);import*as Gt from"./7911.js";a.C(Gt);import*as Xt from"./2991.js";a.C(Xt);import*as Zt from"./9485.js";a.C(Zt);import*as Qt from"./6843.js";a.C(Qt);import*as Jt from"./3051.js";a.C(Jt);var te=a.O(void 0,[7103,9609,4084,4955,3517,1156,3305,4739,7755,2364,5308,2577,8441,2797,4700,3970,6343,9336,6525,7582,3842,7162,7119,6325,4449,1392,2599,477,4047,3365,3331,3272,740,6631,93,9558,3543,878,7231,5846,742,4973,476,2458,3648,6816,5432,9431,6933,6897,7638,8235,2273,405,8663,2245,861,2583,5958,837,5057,6005,8687,3155,6131,6020,6709,7901,1816,887,327,4839,5410,1161,226,23,4750,7137,2154,9404,2297,7155,8552,3477,2670,513,5525,752,3182,9940,4242,1928,4060,2451,1982,9316,7838,7911,2991,9485,6843,3051],()=>a(371));const ee=(te=a.O(te)).nD,ie=te.As,se=te.uo,oe=te.Lj,ae=te.Fc,re=te.ZT,ne=te.Fu,le=te.Y$,de=te.eu,he=te.uW,ce=te.Ex,pe=te.Qp,ue=te.$n,me=te.e2,be=te.Zp,ve=te.pI,ye=te.vg,ge=te.h$,fe=te.cM,we=te.Sc,Ce=te.$Q,Ee=te.vu,Te=te.iU,$e=te.xw,xe=te.BY,Se=te.a3,ke=te.Xz,Ae=te.YQ,Le=te.lr,Ie=te.$5,De=te.XE,Me=te.j_,Oe=te.xx,Re=te.Ur,_e=te.K7,Pe=te.sx,Be=te.T_,ze=te.ms,Fe=te.I,je=te.NG,Ne=te.Uz,Ve=te.gQ,Ue=te.oH,He=te.lV,qe=te.Yp,Ke=te.MJ,We=te.gE,Ye=te.IJ,Ge=te.$9,Xe=te.In,Ze=te.pd,Qe=te.bT,Je=te.JU,ti=te.N_,ei=te.B8,ii=te.ck,si=te.Eu,oi=te.Pj,ai=te.Rh,ri=te.A1,ni=te.DE,li=te.Dr,di=te.W1,hi=te.aF,ci=te.vd,pi=te.dK,ui=te.LR,mi=te.AM,bi=te.IE,vi=te.Cq,yi=te.z2,gi=te.pO,fi=te.z6,wi=te.EA,Ci=te.Ap,Ei=te.y$,Ti=te.oz,$i=te.Kp,xi=te.XI,Si=te.v1,ki=te.tU,Ai=te.L2,Li=te.Sx,Ii=te.ew,Di=te.AG,Mi=te.jF,Oi=te.m_,Ri=te.k0,_i=te.Ou,Pi=te.IB,Bi=te.vz;export{ee as Accordion,ie as AccordionItem,se as ActivityButton,oe as AdvanceList,ae as Alert,re as AlertBanner,ne as ArrayValidators,le as AudioPlayer,de as Avatar,he as AvatarType,ce as Badge,pe as Breadcrumb,ue as Button,me as ButtonGroup,be as Card,ve as CardAi,ye as CardAlert,ge as CardV2,fe as ChatMessage,we as Checkbox,Ce as CheckboxGroup,Ee as Chip,Te as Coachmark,$e as CoachmarkPopover,xe as CodeEditor,Se as ComboBox,ke as CompositeAvatar,Ae as CountryCodePicker,Le as DatePicker,Ie as DatePickerCalendar,De as DatePickerDay,Me as DatePickerMonth,Oe as DatePickerWeek,Re as DateRangePicker,_e as DateTimePicker,Pe as Draggable,Be as DraggableItem,ze as Dropdown,Fe as EditableTextfield,je as Favorite,Ne as FloatingButtonBar,Ve as FloatingMinimizedModal,Ue as FloatingModal,He as Form,qe as FormArray,Ke as FormControl,We as FormGroup,Ye as Grabber,Ge as HelpText,Xe as Icon,Ze as Input,Qe as InputFile,Je as Label,ti as Link,ei as List,ii as ListItem,si as ListItemV2,oi as ListV2,ai as Loading,ri as MeetingAlert,ni as Menu,li as MenuItem,di as MenuOverlay,hi as Modal,ci as NotificationBadge,pi as Pagination,ui as PhoneInput,mi as Popover,bi as PopoverController,vi as Presence,yi as ProgressBar,gi as Radio,fi as RadioGroup,wi as Skeleton,Ci as Slider,Ei as Spinner,Ti as Tab,$i as TabPanel,xi as Table,Si as TableAdvanced,ki as Tabs,Ai as TaskItem,Li as Theme,Ii as ThemeManager,Di as TimePicker,Mi as ToggleSwitch,Oi as Tooltip,Ri as Validators,_i as iconUrlManager,Pi as registerThemeManagerGlobally,Bi as themeManager};
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"./7103.js";import"./9609.js";import"./4084.js";import"./4955.js";import"./3517.js";import"./1156.js";import"./3305.js";import"./4739.js";import"./7755.js";import"./2364.js";import"./5308.js";import"./2577.js";import"./8441.js";import"./2797.js";import"./4700.js";import"./3970.js";import"./6343.js";import"./9336.js";import"./6525.js";import"./7582.js";import"./3842.js";import"./7162.js";import"./7119.js";import"./6325.js";import"./4449.js";import"./1392.js";import"./2599.js";import"./477.js";import"./4047.js";import"./3365.js";import"./3331.js";import"./3272.js";import"./740.js";import"./6631.js";import"./93.js";import"./9558.js";import"./3543.js";import"./878.js";import"./7231.js";import"./5846.js";import"./742.js";import"./4973.js";import"./476.js";import"./2458.js";import"./3648.js";import"./6816.js";import"./5432.js";import"./9431.js";import"./6933.js";import"./6897.js";import"./7638.js";import"./8235.js";import"./2273.js";import"./405.js";import"./8663.js";import"./2245.js";import"./861.js";import"./2583.js";import"./5958.js";import"./837.js";import"./5057.js";import"./6005.js";import"./8687.js";import"./3155.js";import"./6131.js";import"./6020.js";import"./6709.js";import"./7901.js";import"./1816.js";import"./887.js";import"./327.js";import"./4839.js";import"./5410.js";import"./1161.js";import"./226.js";import"./23.js";import"./4750.js";import"./2154.js";import"./9404.js";import"./2297.js";import"./7155.js";import"./7137.js";import"./8552.js";import"./3477.js";import"./2670.js";import"./513.js";import"./5525.js";import"./752.js";import"./3182.js";import"./9940.js";import"./4242.js";import"./1928.js";import"./4060.js";import"./2451.js";import"./1982.js";import"./9316.js";import"./7838.js";import"./7911.js";import"./2991.js";import"./9485.js";import"./6843.js";import"./3051.js";export*from"./index-entry.js";
1
+ import"./7103.js";import"./9609.js";import"./4084.js";import"./4955.js";import"./3517.js";import"./1156.js";import"./3305.js";import"./4739.js";import"./7755.js";import"./2364.js";import"./5308.js";import"./2577.js";import"./8441.js";import"./2797.js";import"./4700.js";import"./3970.js";import"./6343.js";import"./9336.js";import"./6525.js";import"./7582.js";import"./3842.js";import"./7162.js";import"./7119.js";import"./6325.js";import"./4449.js";import"./1392.js";import"./2599.js";import"./477.js";import"./4047.js";import"./3365.js";import"./3331.js";import"./3272.js";import"./740.js";import"./6631.js";import"./93.js";import"./9558.js";import"./3543.js";import"./878.js";import"./7231.js";import"./5846.js";import"./742.js";import"./4973.js";import"./476.js";import"./2458.js";import"./3648.js";import"./6816.js";import"./5432.js";import"./9431.js";import"./6933.js";import"./6897.js";import"./7638.js";import"./8235.js";import"./2273.js";import"./405.js";import"./8663.js";import"./2245.js";import"./861.js";import"./2583.js";import"./5958.js";import"./837.js";import"./5057.js";import"./6005.js";import"./8687.js";import"./3155.js";import"./6131.js";import"./6020.js";import"./6709.js";import"./7901.js";import"./1816.js";import"./887.js";import"./327.js";import"./4839.js";import"./5410.js";import"./1161.js";import"./226.js";import"./23.js";import"./4750.js";import"./7137.js";import"./2154.js";import"./9404.js";import"./2297.js";import"./7155.js";import"./8552.js";import"./3477.js";import"./2670.js";import"./513.js";import"./5525.js";import"./752.js";import"./3182.js";import"./9940.js";import"./4242.js";import"./1928.js";import"./4060.js";import"./2451.js";import"./1982.js";import"./9316.js";import"./7838.js";import"./7911.js";import"./2991.js";import"./9485.js";import"./6843.js";import"./3051.js";export*from"./index-entry.js";
@@ -638,20 +638,18 @@
638
638
  ${this.renderHeader()}
639
639
  <div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
640
640
  </div>
641
- `}};c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),c([(0,l.property)({type:String})],e.prototype,"cardText",void 0),c([(0,l.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.state)()],e.prototype,"copyChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsUpChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(s||(s={}))},4882(t,e,i){i.d(e,{CardAlert:()=>u}),i(5983),i(2583),i(1821);var o,s=i(9609),r=i(4084),a=i(7161),n=i(429),l=i(5125),d=i(7137),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.CRITICAL="critical",t.MEDIUM="medium"}(o||(o={}));const c={[o.CRITICAL]:{icon:"flag-filled",color:"negative"},[o.MEDIUM]:{icon:"warning-filled",color:"warning"}},p={dismiss:"Dismiss",justNow:"Just now",minutesAgo:t=>`${t} ${1===t?"min":"mins"} ago`,hoursAgo:t=>`${t} ${1===t?"hour":"hours"} ago`,daysAgo:t=>`${t} ${1===t?"day":"days"} ago`};var u;!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.severity="",this.category="",this.timestamp="",this.title="",this.queueName="",this.details=[],this.insight="",this.primaryActionLabel="Click",this.primaryActionDropdown=!1,this.detailsHeading="",this.showDismiss=!1,this.expanded=!1,this.relativeTime=""}static get styles(){return[r.A,d.A]}get normalizedSeverity(){var t;const e=(null!==(t=this.severity)&&void 0!==t?t:"").toLowerCase();return Object.values(o).includes(e)?e:void 0}get severityIcon(){return this.normalizedSeverity?c[this.normalizedSeverity].icon:"info-circle-filled"}get severityColor(){return this.normalizedSeverity?c[this.normalizedSeverity].color:"neutral"}get hasInsight(){var t;return(null!==(t=this.insight)&&void 0!==t?t:"").trim().length>0}get detailRows(){return Array.isArray(this.details)?this.details:[]}updateRelativeTime(){this.timestamp&&(this.relativeTime=this.formatRelativeTime(this.timestamp))}startTimer(){this.stopTimer(),this.timestamp&&(this.updateRelativeTime(),this.timerInterval=setInterval(()=>this.updateRelativeTime(),6e4))}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=void 0)}willUpdate(t){t.has("timestamp")&&this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.stopTimer()}formatRelativeTime(t){const e=this.constructor.locale,i=Date.now(),o="number"==typeof t?t:new Date(t).getTime();if(isNaN(o))return"";const s=i-o;if(s<0)return e.justNow;const r=Math.floor(s/6e4);if(r<1)return e.justNow;if(r<60)return e.minutesAgo(r);const a=Math.floor(r/60);if(a<24)return e.hoursAgo(a);const n=Math.floor(a/24);return e.daysAgo(n)}handlePrimaryAction(){this.dispatchEvent(new CustomEvent("primary-action-clicked",{bubbles:!0,composed:!0}))}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss-clicked",{bubbles:!0,composed:!0}))}renderTimestamp(){return this.relativeTime?a.html`<span class="md-card-alert-timestamp">${this.relativeTime}</span>`:a.nothing}renderHeader(){return this.severity||this.category||this.timestamp?a.html`
641
+ `}};c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),c([(0,l.property)({type:String})],e.prototype,"cardText",void 0),c([(0,l.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.state)()],e.prototype,"copyChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsUpChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(s||(s={}))},4882(t,e,i){i.d(e,{CardAlert:()=>u}),i(5983),i(2583),i(1821);var o,s=i(9609),r=i(4084),a=i(7161),n=i(429),l=i(5125),d=i(7137),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.CRITICAL="critical",t.MEDIUM="medium"}(o||(o={}));const c={[o.CRITICAL]:{icon:"flag-filled",color:"negative"},[o.MEDIUM]:{icon:"warning-filled",color:"warning"}},p={dismiss:"Dismiss",justNow:"Just now",minutesAgo:t=>`${t} ${1===t?"min":"mins"} ago`,hoursAgo:t=>`${t} ${1===t?"hour":"hours"} ago`,daysAgo:t=>`${t} ${1===t?"day":"days"} ago`};var u;!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.severity="",this.category="",this.secondaryChip="",this.timestamp="",this.title="",this.queueName="",this.details=[],this.insight="",this.primaryActionLabel="Click",this.primaryActionDropdown=!1,this.detailsHeading="",this.showDismiss=!1,this.expanded=!1,this.relativeTime=""}static get styles(){return[r.A,d.A]}get normalizedSeverity(){var t;const e=(null!==(t=this.severity)&&void 0!==t?t:"").toLowerCase();return Object.values(o).includes(e)?e:void 0}get severityIcon(){return this.normalizedSeverity?c[this.normalizedSeverity].icon:"plus-circle-filled"}get severityColor(){return this.normalizedSeverity?c[this.normalizedSeverity].color:"neutral"}get hasInsight(){var t;return(null!==(t=this.insight)&&void 0!==t?t:"").trim().length>0}get detailRows(){return Array.isArray(this.details)?this.details:[]}get resolvedLocale(){return t=this.constructor.locale,Object.assign(Object.assign(Object.assign({},p),t),{dismiss:null!==(e=null==t?void 0:t.dismiss)&&void 0!==e?e:p.dismiss});var t,e}updateRelativeTime(){this.timestamp&&(this.relativeTime=this.formatRelativeTime(this.timestamp))}startTimer(){this.stopTimer(),this.timestamp&&(this.updateRelativeTime(),this.timerInterval=setInterval(()=>this.updateRelativeTime(),6e4))}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=void 0)}willUpdate(t){t.has("timestamp")&&this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.stopTimer()}formatRelativeTime(t){const e=this.resolvedLocale,i=Date.now(),o="number"==typeof t?t:new Date(t).getTime();if(isNaN(o))return"";const s=i-o;if(s<0)return e.justNow;const r=Math.floor(s/6e4);if(r<1)return e.justNow;if(r<60)return e.minutesAgo(r);const a=Math.floor(r/60);if(a<24)return e.hoursAgo(a);const n=Math.floor(a/24);return e.daysAgo(n)}handlePrimaryAction(){this.dispatchEvent(new CustomEvent("primary-action-clicked",{bubbles:!0,composed:!0}))}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss-clicked",{bubbles:!0,composed:!0}))}renderTimestamp(){return this.relativeTime?a.html`<span class="md-card-alert-timestamp">${this.relativeTime}</span>`:a.nothing}renderHeader(){return this.severity||this.category||this.timestamp?a.html`
642
642
  <div class="md-card-alert-header">
643
643
  <div class="md-card-alert-chips">
644
- ${this.severity?a.html`
645
- <md-chip color=${this.severityColor} small>
646
- <md-icon
647
- name=${this.severityIcon}
648
- size="14"
649
- iconSet="momentumDesign"
650
- slot="custom-left-content"
651
- ></md-icon>
652
- </md-chip>
653
- `:a.nothing}
654
- ${this.category?a.html`<md-chip value=${this.category} color="neutral" small></md-chip>`:a.nothing}
644
+ <md-chip color=${this.severityColor} value=${this.category} small>
645
+ <md-icon
646
+ name=${this.severityIcon}
647
+ size="14"
648
+ iconSet="momentumDesign"
649
+ slot="custom-left-content"
650
+ ></md-icon>
651
+ </md-chip>
652
+ ${this.secondaryChip?a.html`<md-chip color="confidence-cobalt" value=${this.secondaryChip} small></md-chip>`:a.nothing}
655
653
  </div>
656
654
  ${this.renderTimestamp()}
657
655
  </div>
@@ -688,11 +686,11 @@
688
686
  <md-icon name="sparkle-filled" iconSet="momentumDesign" class="md-card-alert-insight-icon"></md-icon>
689
687
  <span class="md-card-alert-insight-text">${this.insight}</span>
690
688
  </div>
691
- `:a.nothing}renderActions(){return a.html`
689
+ `:a.nothing}renderActions(){const t=this.resolvedLocale.dismiss;return a.html`
692
690
  <div class="md-card-alert-actions">
693
691
  <md-button
694
692
  size="32"
695
- variant="primary"
693
+ variant="secondary"
696
694
  class="md-card-alert-primary-action"
697
695
  ariaLabel=${this.primaryActionLabel}
698
696
  @click=${this.handlePrimaryAction}
@@ -708,25 +706,24 @@
708
706
  <md-button
709
707
  size="32"
710
708
  variant="secondary"
711
- outline
712
709
  class="md-card-alert-dismiss"
713
- ariaLabel=${this.constructor.locale.dismiss}
710
+ ariaLabel=${t}
714
711
  @click=${this.handleDismiss}
715
712
  >
716
- <span slot="text">${this.constructor.locale.dismiss}</span>
713
+ <span slot="text">${t}</span>
717
714
  </md-button>
718
715
  `:a.nothing}
719
716
  </div>
720
717
  `}render(){return a.html`
721
718
  <div
722
- class=${(0,l.classMap)({"md-card-alert":!0,"md-card-alert--no-insight":!this.hasInsight})}
719
+ class=${(0,l.classMap)({"md-card-alert":!0,"md-card-alert--no-insight":!this.hasInsight,"md-card-alert--expanded":this.expanded})}
723
720
  part="card"
724
721
  tabindex="0"
725
722
  >
726
723
  ${this.renderHeader()} ${this.renderTitleSection()} ${this.renderDetails()} ${this.renderInsight()}
727
724
  ${this.renderActions()}
728
725
  </div>
729
- `}};e.locale=Object.assign({},p),h([(0,n.property)({type:String})],e.prototype,"severity",void 0),h([(0,n.property)({type:String})],e.prototype,"category",void 0),h([(0,n.property)({type:String})],e.prototype,"timestamp",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"queueName",void 0),h([(0,n.property)({type:Array})],e.prototype,"details",void 0),h([(0,n.property)({type:String})],e.prototype,"insight",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryActionLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"primaryActionDropdown",void 0),h([(0,n.property)({type:String})],e.prototype,"detailsHeading",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showDismiss",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"expanded",void 0),h([(0,n.state)()],e.prototype,"relativeTime",void 0),e=h([(0,s.w)("md-card-alert")],e),t.ELEMENT=e}(u||(u={}))},7540(t,e,i){i.d(e,{CardV2:()=>u}),i(5983),i(1821),i(9613);var o=i(9609),s=i(4084),r=i(7161),a=i(429),n=i(5125),l=i(5796),d=i(513),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const c="hh:mm:ss";var p,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(p||(p={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=p.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[s.A,d.A]}get isCardActive(){return this.state===p.ACTIVE}willUpdate(t){super.willUpdate(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?p.DEFAULT:p.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===p.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
726
+ `}};e.locale=Object.assign({},p),h([(0,n.property)({type:String})],e.prototype,"severity",void 0),h([(0,n.property)({type:String})],e.prototype,"category",void 0),h([(0,n.property)({type:String})],e.prototype,"secondaryChip",void 0),h([(0,n.property)({type:String})],e.prototype,"timestamp",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"queueName",void 0),h([(0,n.property)({type:Array})],e.prototype,"details",void 0),h([(0,n.property)({type:String})],e.prototype,"insight",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryActionLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"primaryActionDropdown",void 0),h([(0,n.property)({type:String})],e.prototype,"detailsHeading",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showDismiss",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"expanded",void 0),h([(0,n.state)()],e.prototype,"relativeTime",void 0),e=h([(0,s.w)("md-card-alert")],e),t.ELEMENT=e}(u||(u={}))},7540(t,e,i){i.d(e,{CardV2:()=>u}),i(5983),i(1821),i(9613);var o=i(9609),s=i(4084),r=i(7161),a=i(429),n=i(5125),l=i(5796),d=i(513),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const c="hh:mm:ss";var p,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(p||(p={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=p.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[s.A,d.A]}get isCardActive(){return this.state===p.ACTIVE}willUpdate(t){super.willUpdate(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?p.DEFAULT:p.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===p.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
730
727
  <div class="md-card-v2-header-title">
731
728
  <h3>${this.header}</h3>
732
729
  ${this.info?r.html`
@@ -2419,7 +2416,7 @@
2419
2416
  part="spinner"
2420
2417
  style=${(0,d.styleMap)(this.spinnerStyleMap)}
2421
2418
  ></i>
2422
- `}};c([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=c([(0,s.w)("md-spinner")],e),t.ELEMENT=e}(o||(o={}))},7936(t,e,i){i.d(e,{TableAdvanced:()=>g}),i(5983),i(1821),i(708);var o=i(9609),s=i(9938),r=i(4084),a=i(7161),n=i(429),l=i(5125),d=i(291),h=i(6968),c=i(8187),p=i.n(c),u=i(4841),m=i(597),v=i(9125),y=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const b=document.createElement("img");var g;b.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,s.d)(a.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 o=t.target;null===(i=t.dataTransfer)||void 0===i||i.setDragImage(b,0,0);const s=this.COLS.map(t=>this.shadowRoot.querySelector(`th.col-index-${t.index}`));this.COLS.forEach((t,e)=>t.width=s[e].offsetWidth+"px"),this.updCols();const r=t.x;this.eX=t.x;let a=-1,n=-1,l=-1;const d=this.COLS[e.index-1],h=s[e.index],c=s[e.index-1],p=h.offsetWidth,u=c.offsetWidth,m=()=>{const t=this.eX;if(a!=t&&0!=t){a=t;const i=a-r;n=p-i,l=u+i,e.width=n+"px",d.width=l+"px",this.updCols()}},v=t=>this.eX=t.x,y=()=>{this.isResizing=!1,o.removeEventListener("drag",m),o.removeEventListener("dragend",y),document.removeEventListener("dragover",v)};o.addEventListener("drag",m),o.addEventListener("dragend",y),document.addEventListener("dragover",v)}}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 o,s,r,a;const n=t.filters||(null===(s=null===(o=this.tableConfig.default)||void 0===o?void 0:o.col)||void 0===s?void 0:s.filters),l=n?"forString"==n?v.d.optionsString:"forNumber"==n?v.d.optionsNumber:n.length?n:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(a=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===a?void 0:a.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 o=e.length;o!=t&&(this.error=`DATA ERROR: Total number of cols (=${t}) and data[${i}] length (=${o}) 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,o)=>{for(const s in t){const r=e.text.indexOf(s);if(-1!=r){const a=t[s],n=this.querySelector(`#${a.templateName}`);if(null==n){console.warn(`cellTemplates["${s}"]: Missing '${a.templateName}' template.`);continue}let l=e.text.replace(s,"");a.contentCb&&(l=a.contentCb({col:o,row:i,content:l,insertIndex:r})),this.ROWS[i][o]={text:l,template:{template:n,templateCb:a.templateCb,insertIndex:"replace"==a.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 o=null===(e=this.tableConfig.default)||void 0===e?void 0:e.filter;if(o){const t=this.COLS.find(t=>t.options.id==o.colId);t?t.filter?(t.filter.selectedIndex=o.selectedIndex,t.filter.input=o.input,this.updCols(),this.filter(t)):console.warn(`Cant find filters on ${o.colId} col`):console.warn(`Cant find ${o.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,o=e.group,s=t.index,r=e.index;t.group=o,e.group=i,t.index=r,e.index=s,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,o=Object.prototype.hasOwnProperty.call(this.selected,i);"multiple"==(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)?(t.metaKey?o?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)})):o?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 a.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return a.html`
2419
+ `}};c([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=c([(0,s.w)("md-spinner")],e),t.ELEMENT=e}(o||(o={}))},7936(t,e,i){i.d(e,{TableAdvanced:()=>g}),i(5983),i(1821),i(708);var o=i(9609),s=i(9938),r=i(4084),a=i(7161),n=i(429),l=i(5125),d=i(291),h=i(6968),c=i(8187),p=i.n(c),u=i(4841),m=i(597),v=i(9125),y=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const b=document.createElement("img");var g;b.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,s.d)(a.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 o=t.target;null===(i=t.dataTransfer)||void 0===i||i.setDragImage(b,0,0);const s=this.COLS.map(t=>this.shadowRoot.querySelector(`th.col-index-${t.index}`));this.COLS.forEach((t,e)=>t.width=s[e].offsetWidth+"px"),this.updCols();const r=t.x;this.eX=t.x;let a=-1,n=-1,l=-1;const d=this.COLS[e.index-1],h=s[e.index],c=s[e.index-1],p=h.offsetWidth,u=c.offsetWidth,m=()=>{const t=this.eX;if(a!=t&&0!=t){a=t;const i=a-r;n=p-i,l=u+i,e.width=n+"px",d.width=l+"px",this.updCols()}},v=t=>this.eX=t.x,y=()=>{this.isResizing=!1,o.removeEventListener("drag",m),o.removeEventListener("dragend",y),document.removeEventListener("dragover",v)};o.addEventListener("drag",m),o.addEventListener("dragend",y),document.addEventListener("dragover",v)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("data")&&void 0!==t.get("data")&&(this.error="")}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 o,s,r,a;const n=t.filters||(null===(s=null===(o=this.tableConfig.default)||void 0===o?void 0:o.col)||void 0===s?void 0:s.filters),l=n?"forString"==n?v.d.optionsString:"forNumber"==n?v.d.optionsNumber:n.length?n:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(a=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===a?void 0:a.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 o=e.length;o!=t&&(this.error=`DATA ERROR: Total number of cols (=${t}) and data[${i}] length (=${o}) 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,o)=>{for(const s in t){const r=e.text.indexOf(s);if(-1!=r){const a=t[s],n=this.querySelector(`#${a.templateName}`);if(null==n){console.warn(`cellTemplates["${s}"]: Missing '${a.templateName}' template.`);continue}let l=e.text.replace(s,"");a.contentCb&&(l=a.contentCb({col:o,row:i,content:l,insertIndex:r})),this.ROWS[i][o]={text:l,template:{template:n,templateCb:a.templateCb,insertIndex:"replace"==a.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 o=null===(e=this.tableConfig.default)||void 0===e?void 0:e.filter;if(o){const t=this.COLS.find(t=>t.options.id==o.colId);t?t.filter?(t.filter.selectedIndex=o.selectedIndex,t.filter.input=o.input,this.updCols(),this.filter(t)):console.warn(`Cant find filters on ${o.colId} col`):console.warn(`Cant find ${o.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,o=e.group,s=t.index,r=e.index;t.group=o,e.group=i,t.index=r,e.index=s,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,o=Object.prototype.hasOwnProperty.call(this.selected,i);"multiple"==(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)?(t.metaKey?o?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)})):o?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 a.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return a.html`
2423
2420
  <div class="md-table-advanced">
2424
2421
  <slot></slot>
2425
2422
  <table class=${e} summary=${(0,d.ifDefined)(null==t?void 0:t.summary)}>
@@ -3081,4 +3078,4 @@
3081
3078
  @click=${this.stopEventPropagation}
3082
3079
  @keyup=${this.stopEventPropagation}
3083
3080
  @keydown=${this.stopEventPropagation}
3084
- ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,$t.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===St.Uz.ArrowRight||t===St.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,$t.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==St.Uz.ArrowRight||this.expanded?t.key===St.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return Tt}};At([(0,y.property)({type:String,reflect:!0})],e.prototype,"label",void 0),At([(0,y.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),At([(0,y.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),At([(0,y.property)({type:Boolean})],e.prototype,"expandable",void 0),At([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),At([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),At([(0,y.property)({type:String})],e.prototype,"variant",void 0),At([(0,y.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),At([(0,y.query)(".header")],e.prototype,"header",void 0),e=At([(0,st.w)("md-list-item-v2")],e),t.ELEMENT=e}(kt||(kt={}));var It,Lt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return v.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof kt.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case St.Uz.ArrowDown:return(e+1)%i;case St.Uz.ArrowUp:return(e-1+i)%i;case St.Uz.Home:return 0;case St.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return Tt}};Lt([(0,y.property)({type:String})],e.prototype,"gap",void 0),Lt([(0,y.property)({type:String})],e.prototype,"orientation",void 0),Lt([(0,y.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=Lt([(0,st.w)("md-list-v2")],e),t.ELEMENT=e}(It||(It={}));var Ot=i(6131),Mt=i(8552),Dt=i(1161),Pt=i(7030),Rt=i(708),_t=i(4085),Bt=i(5410),zt=i(329),Ft=i(8751),Vt=i(5566),Nt=i(405),jt=i(3477),Ut=i(2708),qt=i(3949),Ht=i(8358);const Wt=v.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Kt,Gt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,v.html`<slot></slot>`}static get styles(){return[Wt]}};Gt([(0,y.property)({type:String})],e.prototype,"width",void 0),Gt([(0,y.property)({type:String})],e.prototype,"height",void 0),Gt([(0,y.property)({reflect:!0})],e.prototype,"variant",void 0),Gt([(0,y.property)({reflect:!0})],e.prototype,"animation",void 0),e=Gt([(0,st.w)("md-skeleton")],e),t.ELEMENT=e}(Kt||(Kt={}));var Yt=i(3773),Xt=i(9773),Zt=i(7936),Qt=i(3273),Jt=i(120),te=i(6056),ee=i(8543),ie=i(1479),oe=i(1853),se=i(2218),re=i(6328),ae=i(7253),ne=i(3876)},3876(t,e,i){i.d(e,{ThemeManager:()=>s,registerThemeManagerGlobally:()=>a,themeManager:()=>r});var o=i(5314);class s{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.backgroundMode="DEFAULT",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,o.makeObservable)(this,{isDarkMode:o.observable,themeName:o.observable,backgroundMode:o.observable,isVisualRebrandEnabled:o.observable,isMomentumAvatarEnabled:o.observable,isMomentumV2Enabled:o.computed,setDarkMode:o.action,setThemeName:o.action,setBackgroundMode:o.action,setVisualRebrandEnabled:o.action,setMomentumAvatar:o.action,update:o.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.backgroundMode&&(this.backgroundMode=t.backgroundMode),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}setBackgroundMode(t){this.backgroundMode=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new s;function a(t="MomentumUIThemeManager",e=r){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},7704(t,e,i){i.d(e,{Io:()=>a.I,TS:()=>n.T,UM:()=>r.U,dY:()=>s.d,wW:()=>l.w,yC:()=>o.y}),i(2364);var o=i(3203),s=i(9938),r=i(5201),a=i(4781),n=i(608),l=i(9609)},2050(t,e,i){i.d(e,{QZ:()=>r,Qx:()=>a,XI:()=>l,dw:()=>d,qi:()=>n,sg:()=>s,ws:()=>o});const o=(t,e)=>{const i=[];[e].forEach(e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const o=[],s=t.toLowerCase(),r=e.toLowerCase();let a=0,n=s.indexOf(r,a);for(;n>-1;)a=n+i,o.push([n,a]),n=s.indexOf(r,n+1);return o})(t,e))});const o=(([...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],o=t[0][1];return t.shift(),t.forEach(([t,s])=>{t>=o?(e.push([i,o]),i=t,o=s):s>o&&(o=s)}),e.push([i,o]),e})(i),s=[];let r=0;return o.forEach(([e,i])=>{r!==e&&s.push({range:[e,i],matching:!1,text:t.slice(r,e)}),s.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i}),r!==t.length&&s.push({range:[r],matching:!1,text:t.slice(r)}),s};function s(t,e,i){let o;return function(...s){const r=this,a=i&&!o;clearTimeout(o),o=setTimeout(function(){o=null,i||t.apply(r,s)},e),a&&t.apply(r,s)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const o=i.closest(t);return null!=o?o:e(i.getRootNode().host)}(e)}function a(t,e){return e>=0&&e<t.length?t[e]:void 0}function n(t,e=document){var i;const o=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(o)return o;const s=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of s){const i=n(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},7154(t,e,i){i.d(e,{o:()=>r,q:()=>a});var o=i(2900);const s=[o.Uz.ArrowDown,o.Uz.ArrowUp,o.Uz.ArrowLeft,o.Uz.ArrowRight,o.Uz.Home,o.Uz.End];function r(t){return t===o.Uz.Enter||t===o.Uz.Space||t===o.Uz.NumpadEnter}function a(t){return s.includes(t)}},5784(t){t.exports=b},8088(t){t.exports=E},7346(t){t.exports=S},9e3(t){t.exports=$},727(t){t.exports=T},3288(t){t.exports=k},3048(t){t.exports=l},2022(t){t.exports=r},554(t){t.exports=a},4893(t){t.exports=O},2962(t){t.exports=p},6538(t){t.exports=u},8250(t){t.exports=m},9371(t){t.exports=v},4863(t){t.exports=y},3060(t){t.exports=f},5875(t){t.exports=w},1347(t){t.exports=C},5001(t){t.exports=g},860(t){t.exports=A},7161(e){e.exports=t},429(t){t.exports=e},5125(t){t.exports=i},291(t){t.exports=s},8175(t){t.exports=h},318(t){t.exports=o},6968(t){t.exports=I},9756(t){t.exports=d},5796(t){t.exports=c},5314(t){t.exports=n},8187(t){t.exports=L},1891(t){t.exports=x}},P={};function R(t){var e=P[t];if(void 0!==e)return e.exports;var i=P[t]={exports:{}};return D[t].call(i.exports,i,i.exports,R),i.exports}R.m=D,M=[],R.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<M.length;l++){for(var[e,i,o]=M[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(R.O).every(t=>R.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){M.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=M.length;l>0&&M[l-1][2]>o;l--)M[l]=M[l-1];M[l]=[e,i,o]},R.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return R.d(e,{a:e}),e},R.d=(t,e)=>{for(var i in e)R.o(e,i)&&!R.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},R.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),R.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),R.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={378:0,445:0,502:0,519:0,555:0,561:0,708:0,762:0,801:0,953:0,1037:0,1266:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,1821:0,2050:0,2105:0,2139:0,2169:0,2245:0,2273:0,2330:0,2369:0,2434:0,2708:0,2779:0,2781:0,2900:0,2909:0,2942:0,3079:0,3413:0,3539:0,3639:0,3747:0,3876:0,3938:0,3943:0,4131:0,4139:0,4259:0,4431:0,4545:0,4908:0,4928:0,4958:0,4971:0,5156:0,5310:0,5323:0,5369:0,5517:0,5757:0,5983:0,6029:0,6060:0,6085:0,6132:0,6220:0,6433:0,6494:0,6587:0,6724:0,6753:0,6812:0,6834:0,6920:0,7145:0,7154:0,7219:0,7455:0,7684:0,7704:0,7711:0,7906:0,7927:0,8111:0,8115:0,8138:0,8180:0,8220:0,8334:0,8339:0,8371:0,8442:0,8510:0,8619:0,8654:0,8894:0,9189:0,9237:0,9613:0,9669:0,9773:0};R.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(o in a)R.o(a,o)&&(R.m[o]=a[o]);if(n)var d=n(R)}for(e&&e(i);l<r.length;l++)s=r[l],R.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return R.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 _=R.O(void 0,[7103,9609,4084,3305,4739,9488,2364,8441,2797,4700,3970,6343,9336,9146,7582,3842,7162,6325,4449,1392,2492,4047,1618,3331,3272,740,6631,93,9558,3543,878,7231,5846,742,4973,476,8373,7262,6816,3051,9431,6573,8663,861,5057,6005,8687,8881,1816,887,4839,5410,226,9404,2297,7155,7137,2670,513,9940,4242,1928,9956,2927,3013,9316,6429,7911,2991,9485,6843,3241],()=>R(371));return R.O(_)})());
3081
+ ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,$t.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===St.Uz.ArrowRight||t===St.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,$t.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==St.Uz.ArrowRight||this.expanded?t.key===St.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return Tt}};At([(0,y.property)({type:String,reflect:!0})],e.prototype,"label",void 0),At([(0,y.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),At([(0,y.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),At([(0,y.property)({type:Boolean})],e.prototype,"expandable",void 0),At([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),At([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),At([(0,y.property)({type:String})],e.prototype,"variant",void 0),At([(0,y.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),At([(0,y.query)(".header")],e.prototype,"header",void 0),e=At([(0,st.w)("md-list-item-v2")],e),t.ELEMENT=e}(kt||(kt={}));var It,Lt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return v.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof kt.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case St.Uz.ArrowDown:return(e+1)%i;case St.Uz.ArrowUp:return(e-1+i)%i;case St.Uz.Home:return 0;case St.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return Tt}};Lt([(0,y.property)({type:String})],e.prototype,"gap",void 0),Lt([(0,y.property)({type:String})],e.prototype,"orientation",void 0),Lt([(0,y.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=Lt([(0,st.w)("md-list-v2")],e),t.ELEMENT=e}(It||(It={}));var Ot=i(6131),Mt=i(8552),Dt=i(1161),Pt=i(7030),Rt=i(708),_t=i(4085),Bt=i(5410),zt=i(329),Ft=i(8751),Vt=i(5566),Nt=i(405),jt=i(3477),Ut=i(2708),qt=i(3949),Ht=i(8358);const Wt=v.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Kt,Gt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends v.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,v.html`<slot></slot>`}static get styles(){return[Wt]}};Gt([(0,y.property)({type:String})],e.prototype,"width",void 0),Gt([(0,y.property)({type:String})],e.prototype,"height",void 0),Gt([(0,y.property)({reflect:!0})],e.prototype,"variant",void 0),Gt([(0,y.property)({reflect:!0})],e.prototype,"animation",void 0),e=Gt([(0,st.w)("md-skeleton")],e),t.ELEMENT=e}(Kt||(Kt={}));var Yt=i(3773),Xt=i(9773),Zt=i(7936),Qt=i(3273),Jt=i(120),te=i(6056),ee=i(8543),ie=i(1479),oe=i(1853),se=i(2218),re=i(6328),ae=i(7253),ne=i(3876)},3876(t,e,i){i.d(e,{ThemeManager:()=>s,registerThemeManagerGlobally:()=>a,themeManager:()=>r});var o=i(5314);class s{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.backgroundMode="DEFAULT",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,o.makeObservable)(this,{isDarkMode:o.observable,themeName:o.observable,backgroundMode:o.observable,isVisualRebrandEnabled:o.observable,isMomentumAvatarEnabled:o.observable,isMomentumV2Enabled:o.computed,setDarkMode:o.action,setThemeName:o.action,setBackgroundMode:o.action,setVisualRebrandEnabled:o.action,setMomentumAvatar:o.action,update:o.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.backgroundMode&&(this.backgroundMode=t.backgroundMode),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}setBackgroundMode(t){this.backgroundMode=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new s;function a(t="MomentumUIThemeManager",e=r){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},7704(t,e,i){i.d(e,{Io:()=>a.I,TS:()=>n.T,UM:()=>r.U,dY:()=>s.d,wW:()=>l.w,yC:()=>o.y}),i(2364);var o=i(3203),s=i(9938),r=i(5201),a=i(4781),n=i(608),l=i(9609)},2050(t,e,i){i.d(e,{QZ:()=>r,Qx:()=>a,XI:()=>l,dw:()=>d,qi:()=>n,sg:()=>s,ws:()=>o});const o=(t,e)=>{const i=[];[e].forEach(e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const o=[],s=t.toLowerCase(),r=e.toLowerCase();let a=0,n=s.indexOf(r,a);for(;n>-1;)a=n+i,o.push([n,a]),n=s.indexOf(r,n+1);return o})(t,e))});const o=(([...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],o=t[0][1];return t.shift(),t.forEach(([t,s])=>{t>=o?(e.push([i,o]),i=t,o=s):s>o&&(o=s)}),e.push([i,o]),e})(i),s=[];let r=0;return o.forEach(([e,i])=>{r!==e&&s.push({range:[e,i],matching:!1,text:t.slice(r,e)}),s.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i}),r!==t.length&&s.push({range:[r],matching:!1,text:t.slice(r)}),s};function s(t,e,i){let o;return function(...s){const r=this,a=i&&!o;clearTimeout(o),o=setTimeout(function(){o=null,i||t.apply(r,s)},e),a&&t.apply(r,s)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const o=i.closest(t);return null!=o?o:e(i.getRootNode().host)}(e)}function a(t,e){return e>=0&&e<t.length?t[e]:void 0}function n(t,e=document){var i;const o=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(o)return o;const s=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of s){const i=n(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},7154(t,e,i){i.d(e,{o:()=>r,q:()=>a});var o=i(2900);const s=[o.Uz.ArrowDown,o.Uz.ArrowUp,o.Uz.ArrowLeft,o.Uz.ArrowRight,o.Uz.Home,o.Uz.End];function r(t){return t===o.Uz.Enter||t===o.Uz.Space||t===o.Uz.NumpadEnter}function a(t){return s.includes(t)}},5784(t){t.exports=b},8088(t){t.exports=E},7346(t){t.exports=S},9e3(t){t.exports=$},727(t){t.exports=T},3288(t){t.exports=k},3048(t){t.exports=l},2022(t){t.exports=r},554(t){t.exports=a},4893(t){t.exports=O},2962(t){t.exports=p},6538(t){t.exports=u},8250(t){t.exports=m},9371(t){t.exports=v},4863(t){t.exports=y},3060(t){t.exports=f},5875(t){t.exports=w},1347(t){t.exports=C},5001(t){t.exports=g},860(t){t.exports=A},7161(e){e.exports=t},429(t){t.exports=e},5125(t){t.exports=i},291(t){t.exports=s},8175(t){t.exports=h},318(t){t.exports=o},6968(t){t.exports=I},9756(t){t.exports=d},5796(t){t.exports=c},5314(t){t.exports=n},8187(t){t.exports=L},1891(t){t.exports=x}},P={};function R(t){var e=P[t];if(void 0!==e)return e.exports;var i=P[t]={exports:{}};return D[t].call(i.exports,i,i.exports,R),i.exports}R.m=D,M=[],R.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<M.length;l++){for(var[e,i,o]=M[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(R.O).every(t=>R.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){M.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=M.length;l>0&&M[l-1][2]>o;l--)M[l]=M[l-1];M[l]=[e,i,o]},R.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return R.d(e,{a:e}),e},R.d=(t,e)=>{for(var i in e)R.o(e,i)&&!R.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},R.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),R.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),R.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={378:0,445:0,502:0,519:0,555:0,561:0,708:0,762:0,801:0,953:0,1037:0,1266:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,1821:0,2050:0,2105:0,2139:0,2169:0,2245:0,2273:0,2330:0,2369:0,2434:0,2708:0,2779:0,2781:0,2900:0,2909:0,2942:0,3079:0,3413:0,3539:0,3639:0,3747:0,3876:0,3938:0,3943:0,4131:0,4139:0,4259:0,4431:0,4545:0,4908:0,4928:0,4958:0,4971:0,5156:0,5310:0,5323:0,5369:0,5517:0,5757:0,5983:0,6029:0,6060:0,6085:0,6132:0,6220:0,6433:0,6494:0,6587:0,6724:0,6753:0,6812:0,6834:0,6920:0,7145:0,7154:0,7219:0,7455:0,7684:0,7704:0,7711:0,7906:0,7927:0,8111:0,8115:0,8138:0,8180:0,8220:0,8334:0,8339:0,8371:0,8442:0,8510:0,8619:0,8654:0,8894:0,9189:0,9237:0,9613:0,9669:0,9773:0};R.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(o in a)R.o(a,o)&&(R.m[o]=a[o]);if(n)var d=n(R)}for(e&&e(i);l<r.length;l++)s=r[l],R.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return R.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 _=R.O(void 0,[7103,9609,4084,3305,4739,9488,2364,8441,2797,4700,3970,6343,9336,9146,7582,3842,7162,6325,4449,1392,2492,4047,1618,3331,3272,740,6631,93,9558,3543,878,7231,5846,742,4973,476,8373,7262,6816,3051,9431,6573,8663,861,5057,6005,8687,8881,1816,887,4839,5410,226,7137,9404,2297,7155,2670,513,9940,4242,1928,9956,2927,3013,9316,6429,7911,2991,9485,6843,3241],()=>R(371));return R.O(_)})());
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- require("./7103"),require("./9609"),require("./4084"),require("./3305"),require("./4739"),require("./9488"),require("./2364"),require("./8441"),require("./2797"),require("./4700"),require("./3970"),require("./6343"),require("./9336"),require("./9146"),require("./7582"),require("./3842"),require("./7162"),require("./6325"),require("./4449"),require("./1392"),require("./2492"),require("./4047"),require("./1618"),require("./3331"),require("./3272"),require("./740"),require("./6631"),require("./93"),require("./9558"),require("./3543"),require("./878"),require("./7231"),require("./5846"),require("./742"),require("./4973"),require("./476"),require("./8373"),require("./7262"),require("./6816"),require("./3051"),require("./9431"),require("./6573"),require("./8663"),require("./861"),require("./5057"),require("./6005"),require("./8687"),require("./8881"),require("./1816"),require("./887"),require("./4839"),require("./5410"),require("./226"),require("./9404"),require("./2297"),require("./7155"),require("./7137"),require("./2670"),require("./513"),require("./9940"),require("./4242"),require("./1928"),require("./9956"),require("./2927"),require("./3013"),require("./9316"),require("./6429"),require("./7911"),require("./2991"),require("./9485"),require("./6843"),require("./3241"),module.exports=require("./index-entry");
1
+ require("./7103"),require("./9609"),require("./4084"),require("./3305"),require("./4739"),require("./9488"),require("./2364"),require("./8441"),require("./2797"),require("./4700"),require("./3970"),require("./6343"),require("./9336"),require("./9146"),require("./7582"),require("./3842"),require("./7162"),require("./6325"),require("./4449"),require("./1392"),require("./2492"),require("./4047"),require("./1618"),require("./3331"),require("./3272"),require("./740"),require("./6631"),require("./93"),require("./9558"),require("./3543"),require("./878"),require("./7231"),require("./5846"),require("./742"),require("./4973"),require("./476"),require("./8373"),require("./7262"),require("./6816"),require("./3051"),require("./9431"),require("./6573"),require("./8663"),require("./861"),require("./5057"),require("./6005"),require("./8687"),require("./8881"),require("./1816"),require("./887"),require("./4839"),require("./5410"),require("./226"),require("./7137"),require("./9404"),require("./2297"),require("./7155"),require("./2670"),require("./513"),require("./9940"),require("./4242"),require("./1928"),require("./9956"),require("./2927"),require("./3013"),require("./9316"),require("./6429"),require("./7911"),require("./2991"),require("./9485"),require("./6843"),require("./3241"),module.exports=require("./index-entry");
@@ -10,7 +10,7 @@ export declare class EditableFieldTemplateSandbox extends LitElement {
10
10
  disconnectedCallback(): void;
11
11
  setErrorMessage: () => void;
12
12
  resetErrorMessage: () => void;
13
- renderErrorMessage(): import("lit-html").TemplateResult<1> | typeof nothing;
13
+ renderErrorMessage(): typeof nothing | import("lit-html").TemplateResult<1>;
14
14
  render(): import("lit-html").TemplateResult<1>;
15
15
  }
16
16
  export declare const editableField: import("lit-html").TemplateResult<1>;
@@ -78,7 +78,7 @@ export declare namespace Avatar {
78
78
  private get chatIconSize();
79
79
  private get presenceSize();
80
80
  private get iconSize();
81
- get renderIsTyping(): import("lit-html").TemplateResult<1> | typeof nothing;
81
+ get renderIsTyping(): typeof nothing | import("lit-html").TemplateResult<1>;
82
82
  private get avatarLetter();
83
83
  private get avatarIcon();
84
84
  private get avatarImage();
@@ -88,8 +88,8 @@ export declare namespace Avatar {
88
88
  handleKeyDown(event: KeyboardEvent): void;
89
89
  handleClick(event: MouseEvent): void;
90
90
  private getBrandOrDesignIconSet;
91
- get avatarContent(): import("lit-html").TemplateResult<1> | typeof nothing;
92
- renderPresence(): import("lit-html").TemplateResult<1> | typeof nothing;
91
+ get avatarContent(): typeof nothing | import("lit-html").TemplateResult<1>;
92
+ renderPresence(): typeof nothing | import("lit-html").TemplateResult<1>;
93
93
  private renderAvatarContent;
94
94
  render(): import("lit-html").TemplateResult<1>;
95
95
  }
@@ -31,7 +31,7 @@ export declare namespace Badge {
31
31
  renderTextColor: () => string | typeof nothing;
32
32
  renderHeight: () => string | typeof nothing;
33
33
  renderWidth: () => string | typeof nothing;
34
- getStyles: () => import("lit-html").TemplateResult<1> | typeof nothing;
34
+ getStyles: () => typeof nothing | import("lit-html").TemplateResult<1>;
35
35
  static get styles(): import("lit").CSSResult[];
36
36
  private get computedAriaHiddenSplits();
37
37
  private get computedTabIndex();
@@ -129,10 +129,10 @@ export declare namespace Button {
129
129
  get slottedText(): string | undefined;
130
130
  get hasIcon(): boolean;
131
131
  iconTemplate: () => import("lit-html").TemplateResult<1>;
132
- textTemplate: () => import("lit-html").TemplateResult<1> | typeof nothing;
132
+ textTemplate: () => typeof nothing | import("lit-html").TemplateResult<1>;
133
133
  childrenTemplate(): import("lit-html").TemplateResult<1>;
134
134
  get computedAriaExpand(): "true" | "false" | undefined;
135
- buttonTemplate(tag: Button.Tag): import("lit-html").TemplateResult<1> | typeof nothing;
135
+ buttonTemplate(tag: Button.Tag): typeof nothing | import("lit-html").TemplateResult<1>;
136
136
  get buttonContainerClassMap(): {
137
137
  "md-button__container": boolean;
138
138
  "md-button__container--small": boolean;
@@ -14,7 +14,7 @@ export declare enum CardAlertSeverity {
14
14
  MEDIUM = "medium"
15
15
  }
16
16
  export interface CardAlertLocale {
17
- dismiss: string;
17
+ dismiss?: string;
18
18
  justNow: string;
19
19
  minutesAgo: (n: number) => string;
20
20
  hoursAgo: (n: number) => string;
@@ -30,6 +30,7 @@ export declare namespace CardAlert {
30
30
  static readonly locale: CardAlertLocale;
31
31
  severity: CardAlertSeverity | "";
32
32
  category: string;
33
+ secondaryChip: string;
33
34
  timestamp: string;
34
35
  title: string;
35
36
  queueName: string;
@@ -48,6 +49,7 @@ export declare namespace CardAlert {
48
49
  private get severityColor();
49
50
  private get hasInsight();
50
51
  private get detailRows();
52
+ private get resolvedLocale();
51
53
  private updateRelativeTime;
52
54
  private startTimer;
53
55
  private stopTimer;