@momentum-ui/web-components 3.2.9 → 3.2.11
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.
- package/dist/2245.js +12 -11
- package/dist/2273.js +10 -7
- package/dist/3639.js +2 -3
- package/dist/378.js +18 -0
- package/dist/5057.js +1 -1
- package/dist/6005.js +1 -1
- package/dist/8663.js +5 -1
- package/dist/9189.js +3 -3
- package/dist/953.js +3 -5
- package/dist/comp/md-advance-list-entry.js +1 -1
- package/dist/comp/md-avatar-entry.js +5 -4
- package/dist/comp/md-avatar.js +1 -1
- package/dist/comp/md-chat-message-entry.js +1 -1
- package/dist/comp/md-chat-message.js +1 -1
- package/dist/comp/md-combobox-entry.js +24 -21
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-datepicker-calendar-entry.js +4 -6
- package/dist/comp/md-datepicker-day-entry.js +2 -3
- package/dist/comp/md-datepicker-entry.js +7 -3
- package/dist/comp/md-dropdown-entry.js +32 -23
- package/dist/comp/md-floating-modal-entry.js +24 -13
- package/dist/comp/md-grabber-entry.js +12 -8
- package/dist/comp/md-input-entry.js +14 -14
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +1 -1
- package/dist/comp/md-tabs-entry.js +16 -16
- package/dist/comp/md-task-item-entry.js +1 -1
- package/dist/comp/md-task-item.js +1 -1
- package/dist/esm/2245.js +5 -4
- package/dist/esm/2273.js +36 -33
- package/dist/esm/3639.js +2 -3
- package/dist/esm/378.js +18 -0
- package/dist/esm/4626.js +12 -11
- package/dist/esm/4654.js +10 -7
- package/dist/esm/5057.js +1 -1
- package/dist/esm/6005.js +1 -1
- package/dist/esm/6020.js +2 -3
- package/dist/esm/837.js +6 -8
- package/dist/esm/8663.js +5 -1
- package/dist/esm/9189.js +5 -5
- package/dist/esm/953.js +3 -5
- package/dist/esm/comp/md-advance-list-entry.js +3 -3
- package/dist/esm/comp/md-avatar-entry.js +1 -1
- package/dist/esm/comp/md-avatar.js +1 -1
- package/dist/esm/comp/md-chat-message-entry.js +1 -1
- package/dist/esm/comp/md-chat-message.js +1 -1
- package/dist/esm/comp/md-date-range-picker-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-entry.js +13 -9
- package/dist/esm/comp/md-dropdown-entry.js +36 -27
- package/dist/esm/comp/md-floating-modal-entry.js +24 -13
- package/dist/esm/comp/md-grabber-entry.js +10 -6
- package/dist/esm/comp/md-input-entry.js +4 -4
- package/dist/esm/comp/md-meeting-alert-entry.js +1 -1
- package/dist/esm/comp/md-meeting-alert.js +1 -1
- package/dist/esm/comp/md-tabs-entry.js +15 -15
- package/dist/esm/comp/md-task-item-entry.js +1 -1
- package/dist/esm/comp/md-task-item.js +1 -1
- package/dist/esm/index-entry.js +63 -39
- package/dist/esm/index.js +1 -1
- package/dist/index-entry.js +229 -204
- package/dist/index.js +1 -1
- package/dist/types/components/avatar/Avatar.constants.d.ts +2 -1
- package/dist/types/components/avatar/Avatar.d.ts +3 -0
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/date-range-picker/DateRangePicker.d.ts +1 -0
- package/dist/types/components/datepicker/DatePicker.d.ts +6 -0
- package/dist/types/components/dropdown/Dropdown.d.ts +1 -0
- package/dist/types/components/floating-modal/FloatingModal.d.ts +10 -1
- package/dist/types/components/grabber/Grabber.d.ts +1 -0
- package/dist/types/components/input/Input.d.ts +1 -0
- package/dist/types/components/tabs/Tabs.d.ts +1 -0
- package/package.json +1 -1
- package/dist/4621.js +0 -18
- package/dist/esm/4621.js +0 -18
package/dist/esm/index-entry.js
CHANGED
|
@@ -74,7 +74,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
74
74
|
height: ${this.containerHeight};
|
|
75
75
|
}
|
|
76
76
|
</style>
|
|
77
|
-
`}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>t&&t.id&&!this.disabledItems.includes(t.id)).map(t=>t.id)),t.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&requestAnimationFrame(()=>this.updateSelectedState()),t.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange())}setCheckboxAttributes(t,e){var i,o,s,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(s=e.querySelector("md-checkbox"))||void 0===s||s.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,o;const s=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,s),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),o=t.composedPath(),s=i.find(t=>o.includes(t));if(s)return(null==s?void 0:s.hasAttribute("disabled"))||"true"===(null==s?void 0:s.getAttribute("aria-disabled"))?0:s}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value&&this.value.length>0&&this.value[0]?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
|
|
77
|
+
`}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>t&&t.id&&!this.disabledItems.includes(t.id)).map(t=>t.id)),t.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&requestAnimationFrame(()=>this.updateSelectedState()),t.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange()),t.has("activeId")&&this.isUserNavigated&&requestAnimationFrame(()=>this.updateSelectedState())}setCheckboxAttributes(t,e){var i,o,s,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(s=e.querySelector("md-checkbox"))||void 0===s||s.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,o;const s=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,s),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),this.isUserNavigated&&e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),o=t.composedPath(),s=i.find(t=>o.includes(t));if(s)return(null==s?void 0:s.hasAttribute("disabled"))||"true"===(null==s?void 0:s.getAttribute("aria-disabled"))?0:s}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value&&this.value.length>0&&this.value[0]?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
|
|
78
78
|
${this.getStyles()}
|
|
79
79
|
<div
|
|
80
80
|
class="md-advance-list-wrapper virtual-scroll"
|
|
@@ -370,7 +370,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
370
370
|
</div>
|
|
371
371
|
</div>
|
|
372
372
|
</div>
|
|
373
|
-
`}};h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:Object})],e.prototype,"labelMap",void 0),h([(0,n.state)()],e.prototype,"events",void 0),h([(0,n.state)()],e.prototype,"audio",void 0),h([(0,n.state)()],e.prototype,"volumeElement",void 0),h([(0,n.state)()],e.prototype,"isPlaying",void 0),h([(0,n.state)()],e.prototype,"isMuted",void 0),h([(0,n.state)()],e.prototype,"duration",void 0),h([(0,n.state)()],e.prototype,"volume",void 0),h([(0,n.state)()],e.prototype,"currentTime",void 0),h([(0,n.state)()],e.prototype,"showSpeedPopup",void 0),h([(0,n.state)()],e.prototype,"playbackSpeed",void 0),h([(0,n.state)()],e.prototype,"volumeExpanded",void 0),h([(0,n.state)()],e.prototype,"bufferedRange",void 0),h([(0,n.state)()],e.prototype,"selectedPlaybackSpeed",void 0),h([(0,n.state)()],e.prototype,"currentlySelectingPlaybackSpeed",void 0),e=h([(0,s.w)("md-audio-player")],e),t.ELEMENT=e}(u||(u={}))},9124(t,e,i){i.d(e,{X:()=>o});var o,s=i(9609),r=i(4084),a=i(2927),n=i(8899),l=i(4955),d=i(6325),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){let e=class extends a.LitElement{constructor(){super(...arguments),this.size=0}static get styles(){return[r.A,d.A]}get avatarClassMap(){return{[`md-composite-avatar--${this.size}`]:!!this.size}}render(){return a.html`
|
|
373
|
+
`}};h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:Object})],e.prototype,"labelMap",void 0),h([(0,n.state)()],e.prototype,"events",void 0),h([(0,n.state)()],e.prototype,"audio",void 0),h([(0,n.state)()],e.prototype,"volumeElement",void 0),h([(0,n.state)()],e.prototype,"isPlaying",void 0),h([(0,n.state)()],e.prototype,"isMuted",void 0),h([(0,n.state)()],e.prototype,"duration",void 0),h([(0,n.state)()],e.prototype,"volume",void 0),h([(0,n.state)()],e.prototype,"currentTime",void 0),h([(0,n.state)()],e.prototype,"showSpeedPopup",void 0),h([(0,n.state)()],e.prototype,"playbackSpeed",void 0),h([(0,n.state)()],e.prototype,"volumeExpanded",void 0),h([(0,n.state)()],e.prototype,"bufferedRange",void 0),h([(0,n.state)()],e.prototype,"selectedPlaybackSpeed",void 0),h([(0,n.state)()],e.prototype,"currentlySelectingPlaybackSpeed",void 0),e=h([(0,s.w)("md-audio-player")],e),t.ELEMENT=e}(u||(u={}))},4470(t,e,i){i.d(e,{mS:()=>s,uW:()=>o});const o=["bot","group","self","typing",""],s={active:"Available",meeting:"In a meeting",schedule:"Scheduled",call:"On a call",dnd:"Do not disturb",presenting:"Presenting","quiet-hours":"Quiet hours",away:"Away",idle:"Idle",inactive:"Inactive","away-calling":"Away",ooo:"Out of office",busy:"Busy","on-mobile":"On mobile","on-device":"On device","on-hold":"On hold",engaged:"Engaged",rona:"Unavailable",wrapup:"Wrap up"}},9124(t,e,i){i.d(e,{X:()=>o});var o,s=i(9609),r=i(4084),a=i(2927),n=i(8899),l=i(4955),d=i(6325),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){let e=class extends a.LitElement{constructor(){super(...arguments),this.size=0}static get styles(){return[r.A,d.A]}get avatarClassMap(){return{[`md-composite-avatar--${this.size}`]:!!this.size}}render(){return a.html`
|
|
374
374
|
<div class="md-composite-avatar ${(0,l.classMap)(this.avatarClassMap)}">
|
|
375
375
|
<slot></slot>
|
|
376
376
|
</div>
|
|
@@ -824,7 +824,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
824
824
|
<slot></slot>
|
|
825
825
|
</div>
|
|
826
826
|
</div>
|
|
827
|
-
`}};c([(0,d.property)({type:String})],e.prototype,"message",void 0),c([(0,d.property)({type:String})],e.prototype,"actionname",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"hidebutton",void 0),c([(0,d.property)({type:String})],e.prototype,"placement",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,d.property)({type:String})],e.prototype,"color",void 0),c([(0,d.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),c([(0,d.query)(".md-coachmark__reference")],e.prototype,"reference",void 0),e=c([(0,r.w)("md-coachmark")],e),t.ELEMENT=e}(o||(o={}))},6243(t,e,i){i.d(e,{U:()=>h});var o=i(9609),s=i(878),r=i(8899),a=i(9642),n=i(8663),l=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 d=" - ";var h;!function(t){let e=class extends n.l.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.maxRangeLength=void 0,this.originalFilterDate=void 0,this.updateValue=()=>{if(this.startDate&&this.endDate){const t=t=>this.useISOFormat?t:a.DateTime.fromISO(t).toLocaleString(a.DateTime.DATE_SHORT,{locale:this.locale}),e=t(this.startDate),i=t(this.endDate);this.value=`${e}${d}${i}`}},this.isValueValid=()=>{var t,e;if(!this.validateDate)return!0;const i=null!==(e=null===(t=this.value)||void 0===t?void 0:t.split(d))&&void 0!==e?e:[];return 2===i.length&&this.validateDateString(i[0])&&this.validateDateString(i[1])},this.getDefaultAriaLabel=()=>{if(this.startDate&&this.endDate){const t=a.DateTime.fromISO(this.startDate),e=a.DateTime.fromISO(this.endDate);if(t.isValid&&e.isValid)return`Choose Date Range, currently selected range is ${t.toLocaleString(a.DateTime.DATE_FULL)} to ${e.toLocaleString(a.DateTime.DATE_FULL)}`}return"Choose Date Range"}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-pre-selection-change",this.handleDateSelection),this.updateValue(),this.maxRangeLength&&(this.originalFilterDate=this.filterDate,this.updateFilterDate())}updateFilterDate(){this.maxRangeLength&&(this.filterDate=this.createCombinedFilter())}createCombinedFilter(){return t=>{if(this.originalFilterDate&&this.originalFilterDate(t))return!0;const e="string"==typeof t?a.DateTime.fromISO(t):t;if(!this.maxRangeLength||!this.startDate||this.endDate)return!1;const i=a.DateTime.fromISO(this.startDate),o=i.plus({days:this.maxRangeLength-1}).startOf("day"),s=i.minus({days:this.maxRangeLength-1}).startOf("day"),r=e.startOf("day");return r>o||r<s}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-pre-selection-change",this.handleDateSelection)}updated(t){super.updated(t)
|
|
827
|
+
`}};c([(0,d.property)({type:String})],e.prototype,"message",void 0),c([(0,d.property)({type:String})],e.prototype,"actionname",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"hidebutton",void 0),c([(0,d.property)({type:String})],e.prototype,"placement",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,d.property)({type:String})],e.prototype,"color",void 0),c([(0,d.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),c([(0,d.query)(".md-coachmark__reference")],e.prototype,"reference",void 0),e=c([(0,r.w)("md-coachmark")],e),t.ELEMENT=e}(o||(o={}))},6243(t,e,i){i.d(e,{U:()=>h});var o=i(9609),s=i(878),r=i(8899),a=i(9642),n=i(8663),l=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 d=" - ";var h;!function(t){let e=class extends n.l.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.maxRangeLength=void 0,this.originalFilterDate=void 0,this.updateValue=()=>{if(this.startDate&&this.endDate){const t=t=>this.useISOFormat?t:a.DateTime.fromISO(t).toLocaleString(a.DateTime.DATE_SHORT,{locale:this.locale}),e=t(this.startDate),i=t(this.endDate);this.value=`${e}${d}${i}`}},this.isValueValid=()=>{var t,e;if(!this.validateDate)return!0;const i=null!==(e=null===(t=this.value)||void 0===t?void 0:t.split(d))&&void 0!==e?e:[];return 2===i.length&&this.validateDateString(i[0])&&this.validateDateString(i[1])},this.getDefaultAriaLabel=()=>{if(this.startDate&&this.endDate){const t=a.DateTime.fromISO(this.startDate),e=a.DateTime.fromISO(this.endDate);if(t.isValid&&e.isValid)return`Choose Date Range, currently selected range is ${t.toLocaleString(a.DateTime.DATE_FULL)} to ${e.toLocaleString(a.DateTime.DATE_FULL)}`}return"Choose Date Range"}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-pre-selection-change",this.handleDateSelection),this.parseInitialValue(),this.updateValue(),this.maxRangeLength&&(this.originalFilterDate=this.filterDate,this.updateFilterDate())}parseInitialValue(){if(this.value&&!this.startDate&&!this.endDate&&this.useISOFormat){const t=this.value.split(d);if(2===t.length){const e=a.DateTime.fromISO(t[0].trim()),i=a.DateTime.fromISO(t[1].trim());e.isValid&&i.isValid&&(this.startDate=e.toSQLDate(),this.endDate=i.toSQLDate(),this.focusedDate=e,this.selectedDate=e)}}}updateFilterDate(){this.maxRangeLength&&(this.filterDate=this.createCombinedFilter())}createCombinedFilter(){return t=>{if(this.originalFilterDate&&this.originalFilterDate(t))return!0;const e="string"==typeof t?a.DateTime.fromISO(t):t;if(!this.maxRangeLength||!this.startDate||this.endDate)return!1;const i=a.DateTime.fromISO(this.startDate),o=i.plus({days:this.maxRangeLength-1}).startOf("day"),s=i.minus({days:this.maxRangeLength-1}).startOf("day"),r=e.startOf("day");return r>o||r<s}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-pre-selection-change",this.handleDateSelection)}updated(t){var e;if(t.has("value")&&(null===(e=this.value)||void 0===e?void 0:e.includes(d))){const e=new Map(t);e.delete("value"),super.updated(e)}else super.updated(t);!t.has("startDate")&&!t.has("endDate")||t.has("focusedDate")||this.updateValue()}getPlaceHolderString(){if(this.placeholder)return this.placeholder;if(this.useISOFormat)return`YYYY-MM-DD${d}YYYY-MM-DD`;const t=(0,s.gq)(this.locale).toUpperCase();return`${t}${d}${t}`}setSelected(){}dateToSqlTranslate(t){return t.toSQLDate()}onApplyClick(){this.emitDateRange(),this.updateValue(),this.shouldCloseOnSelect&&this.setOpen(!1)}handleDateSelection(t){var e;const i=t.detail.data;i&&(this.selectedDate=i,this.focusedDate=i,this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(i),this.endDate=void 0):i<a.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(i)):this.endDate=this.dateToSqlTranslate(i):this.startDate=this.dateToSqlTranslate(i),this.updateFilterDate(),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)||(this.emitDateRange(),this.updateValue()))}emitDateRange(){if(!this.startDate||!this.endDate)return;const t=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(t)}};l([(0,r.property)({type:String,attribute:"start-date",reflect:!0})],e.prototype,"startDate",void 0),l([(0,r.property)({type:String,attribute:"end-date",reflect:!0})],e.prototype,"endDate",void 0),l([(0,r.property)({type:Number,attribute:"max-range-length"})],e.prototype,"maxRangeLength",void 0),e=l([(0,o.w)("md-date-range-picker")],e),t.ELEMENT=e}(h||(h={}))},9597(t,e,i){i.d(e,{K:()=>o}),i(9189),i(708);var o,s=i(9609),r=i(878),a=i(4084),n=i(2927),l=i(8899),d=i(3517),h=i(9642),p=i(2900),c=i(6843),u=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.weekStartDays=["Sunday","Monday"];let e=class extends n.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=p.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.disableDateValidation=!1,this.locale=void 0,this.placeholder=void 0,this.useISOFormat=!0,this.disabled=!1,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.compactInput=void 0,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,r.tB)(),this.handleDateChange=t=>{var e,i;this.selectedDateObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=t=>{var e,i,o;this.selectedTimeObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(o=this.controlButtons)||void 0===o?void 0:o.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=t=>{var e;this.value=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value},this.parseValueForVisuals=t=>{t&&(this.dateValue=t.split("T")[0],this.timeValue=t.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=h.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=h.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(t,e)=>{t&&(this.value=e?`${t}T${e}`:t)}}firstUpdated(t){var e;if(super.firstUpdated(t),!this.value&&this.showDefaultNowDate){const t=null===(e=this.selectedDateObject)||void 0===e?void 0:e.toISODate();this.combineDateAndTimeValues(t,this.timeValue)}}updated(t){var e;super.updated(t),t.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&(t.has("dateValue")||t.has("timeValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&t.has("locale")&&(this.fullDateTime=h.DateTime.fromISO(this.value,{locale:this.locale}))}get placeholderValue(){return this.placeholder?this.placeholder:"YYYY-MM-DDTHH:MM:SS-HH:MM"}static get styles(){return[a.A,c.A]}get displayValue(){if(!this.useISOFormat&&this.fullDateTime&&this.fullDateTime.isValid)return this.fullDateTime.toLocaleString(h.DateTime.DATETIME_MED,{locale:this.locale})}render(){var t;return n.html`
|
|
828
828
|
<md-datepicker
|
|
829
829
|
includes-time
|
|
830
830
|
?disabled=${this.disabled}
|
|
@@ -873,7 +873,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
873
873
|
<slot></slot>
|
|
874
874
|
${this.extended?n.html` <slot name="extended"></slot> `:n.nothing}
|
|
875
875
|
</div>
|
|
876
|
-
`}};p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"extended",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),e=p([(0,r.w)("md-draggable-item")],e),t.ELEMENT=e}(o||(o={}))},621(t,e,i){i.d(e,{m:()=>o}),i(1821);var o,s=i(2900),r=i(7704),a=i(2050),n=i(4084),l=i(2927),d=i(8899),h=i(4955),p=i(3517),c=i(2577),u=i(1156),m=i(5057),b=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},v=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.dropdownRenderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new e,this.lastMaxHeight="",this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.expanded&&this.collapse())},this.onKeyDown=t=>{switch(t.code){case s.Uz.Tab:this.expanded&&(t.stopPropagation(),this.collapse());break;case s.Uz.Space:case s.Uz.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case s.Uz.ArrowDown:this.expanded?this.focusNext():this.expand();break;case s.Uz.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case s.Uz.Home:this.expanded?this.focusFirst():this.expand();break;case s.Uz.End:this.expanded?this.focusLast():this.expand();break;case s.Uz.Escape||s.Uz.Backspace:this.expanded&&(t.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,a.sg)(t=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),requestAnimationFrame(()=>{this.input.focus()})},250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){super.firstUpdated(t),t.forEach((t,e)=>{if("defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}}),this.searchable&&this.setInitialValue()}updated(t){super.updated(t),t.forEach((t,e)=>{if("options"===e&&this.updateRenderOptions(),"selectedKey"===e){const t=this.dropdownRenderOptions.findIndex(t=>t.key===this.selectedKey);-1!==t&&(this.focusToIndex(t),this.searchable&&this.setInitialValue())}if("expanded"===e&&this.updateListDOM(),"focusedIndex"===e&&this.updateListDOM(),"defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}})}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var t;if(this.options.length){const e=this.dropdownRenderOptions.find(t=>t.key===this.selectedKey),i=null==e?void 0:e.option;i&&(this.setInputValue(this.getOptionValue(i)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(this.getOptionValue(i)),this.requestUpdate())}}getOptionValue(t){return this.isOptionObject(t)&&!this.optionValue?Object.values(t)[0]:this.isOptionObject(t)?t[this.optionValue]:t}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}isOptionObject(t){return"object"==typeof t&&null!==t}updateRenderOptions(){const t=[];this.focusReset();const e=this.options.reduce((e,i)=>{const{key:o,value:s}=this.getOptionKeyValuePair(i);return-1!==t.indexOf(o)?console.error(`Dropdown already have option key: "${o}". Ignoring `):o?(t.push(o),e.push({key:o,value:s,option:i})):console.error(`Dropdown key is not defined: "${o}". (value: "${s}"). Ignoring `),e},[]);this.allowUnselected&&e.unshift({key:"",value:this.title}),this.dropdownRenderOptions=e}updateListDOM(){return v(this,void 0,void 0,function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))})}resizeDropdownList(){return v(this,void 0,void 0,function*(){yield new Promise(t=>requestAnimationFrame(()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const t=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}px`;this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}else{const t="auto";this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}t()}))})}handleFocusIn(t){var e;this.disabled&&this.readOnly||null===(e=super.handleFocusIn)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[n.A,m.A]}get filteredOptions(){const t=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!t.trim())return this.dropdownRenderOptions;const e=this.dropdownRenderOptions.filter(e=>e.value.toLowerCase().includes(t.toLowerCase()));return 0===e.length?[{key:"no-result",value:"No Result",disabled:!0}]:e}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(t){this.expanded=t}updateOnNextFrame(t){requestAnimationFrame(t)}setInputValue(t=""){this.input.value=t}shouldChangeButton(){const t=this.input&&this.input.value.length>0;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-dropdown-input"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-dropdown-input");setTimeout(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus()}}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var t;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus()}),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){this.expanded=!0;const t=-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";document.dispatchEvent(new CustomEvent("on-widget-update")),this.label.setAttribute("aria-activedescendant",t),this.optionsList&&this.optionsList.focus(),-1===this.focusedIndex&&this.focusNext()}collapse(){this.expanded=!1,this.searchable||this.label.setAttribute("aria-activedescendant","")}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const t=this.dropdownRenderOptions[this.focusedIndex],e=t.key;e!==this.selectedKey&&(this.selectedKey=e,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:t.option?t.option:t.key}})))}}onLabelClick(){this.label.focus(),this.toggle()}focusFirst(){this.dropdownRenderOptions.length&&(this.focusedIndex=0)}focusLast(){this.dropdownRenderOptions.length&&(this.focusedIndex=this.dropdownRenderOptions.length-1)}focusNext(){this.dropdownRenderOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.dropdownRenderOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.dropdownRenderOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(t){this.dropdownRenderOptions.length&&t>=0&&t<=this.dropdownRenderOptions.length-1&&(this.focusedIndex=t)}focusToIndexWithOption(t){const e=this.dropdownRenderOptions.findIndex(e=>e.key===t.key);this.dropdownRenderOptions.length&&e>=0&&e<=this.dropdownRenderOptions.length-1&&(this.focusedIndex=e)}focusReset(){this.focusedIndex=-1}scrollToIndex(t){return v(this,void 0,void 0,function*(){yield new Promise(e=>{requestAnimationFrame(()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&t>=0&&this.optionsListItems.length>t){let e=0;const{top:i,bottom:o}=this.optionsList.getBoundingClientRect(),s=this.optionsListItems[t],r=this.optionsListItems[t+1]||s,a=this.optionsListItems[t-1]||s,n=r.getBoundingClientRect(),l=a.getBoundingClientRect();n.bottom>o?e=n.bottom-o+2:l.top<i&&(e=l.top-i-2),this.optionsList.scrollTop+=e}e()})})})}getOptionKeyValuePair(t){if("string"==typeof t)return{key:t.trim(),value:t};if(t&&"object"==typeof t){const e=Object.keys(t),i=Object.values(t);if(e.length){if(1===e.length||!this.optionId)return{key:e[0],value:i[0]};if(this.optionId)return{key:t[this.optionId],value:t[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const t=this.dropdownRenderOptions.find(t=>t.key===this.selectedKey);if(t)return t.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}helpTextTemplate(){return this.helpText?l.html`
|
|
876
|
+
`}};p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"extended",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),e=p([(0,r.w)("md-draggable-item")],e),t.ELEMENT=e}(o||(o={}))},621(t,e,i){i.d(e,{m:()=>o}),i(1821);var o,s=i(2900),r=i(7704),a=i(2050),n=i(4084),l=i(2927),d=i(8899),h=i(4955),p=i(3517),c=i(2577),u=i(1156),m=i(5057),b=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},v=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.dropdownRenderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new e,this.lastMaxHeight="",this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.expanded&&this.collapse())},this.onKeyDown=t=>{var e;if(!this.disabled&&!this.readOnly)switch(t.code){case s.Uz.Tab:this.expanded&&(t.stopPropagation(),this.collapse());break;case s.Uz.Space:case s.Uz.Enter:{const i=t.composedPath()[0];if(null===(e=i.closest)||void 0===e?void 0:e.call(i,".md-dropdown-button"))break;t.preventDefault(),this.expanded?(this.select(),this.collapse()):this.expand();break}case s.Uz.ArrowDown:t.preventDefault(),this.expanded?this.focusNext():this.expand();break;case s.Uz.ArrowUp:t.preventDefault(),this.expanded?this.focusPrev():this.expand();break;case s.Uz.Home:t.preventDefault(),this.expanded?this.focusFirst():this.expand();break;case s.Uz.End:t.preventDefault(),this.expanded?this.focusLast():this.expand();break;case s.Uz.Escape:case s.Uz.Backspace:this.expanded&&(t.preventDefault(),t.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,a.sg)(t=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),requestAnimationFrame(()=>{this.input.focus()})},250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){super.firstUpdated(t),t.forEach((t,e)=>{if("defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}}),this.searchable&&this.setInitialValue()}updated(t){super.updated(t),t.forEach((t,e)=>{if("options"===e&&this.updateRenderOptions(),"selectedKey"===e&&this.dropdownRenderOptions.some(t=>t.key===this.selectedKey)){const t=this.filteredOptions.findIndex(t=>t.key===this.selectedKey);-1!==t&&this.focusToIndex(t),this.searchable&&this.setInitialValue()}if("expanded"===e&&(this.updateListDOM(),this.updateActiveDescendant()),"focusedIndex"===e&&(this.updateListDOM(),this.updateActiveDescendant()),"defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}})}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var t;if(this.options.length){const e=this.dropdownRenderOptions.find(t=>t.key===this.selectedKey),i=null==e?void 0:e.option;if(i){const e=this.getOptionValue(i);this.inputValue=e,this.setInputValue(e),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(e)}}}getOptionValue(t){return this.isOptionObject(t)&&!this.optionValue?Object.values(t)[0]:this.isOptionObject(t)?t[this.optionValue]:t}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}isOptionObject(t){return"object"==typeof t&&null!==t}updateRenderOptions(){const t=[];this.focusReset();const e=this.options.reduce((e,i)=>{const{key:o,value:s}=this.getOptionKeyValuePair(i);return-1!==t.indexOf(o)?console.error(`Dropdown already have option key: "${o}". Ignoring `):o?(t.push(o),e.push({key:o,value:s,option:i})):console.error(`Dropdown key is not defined: "${o}". (value: "${s}"). Ignoring `),e},[]);this.allowUnselected&&e.unshift({key:"",value:this.title}),this.dropdownRenderOptions=e}updateActiveDescendant(){const t=this.searchable?this.input:this.label;if(t){const e=this.expanded&&-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";t.setAttribute("aria-activedescendant",e)}}updateListDOM(){return v(this,void 0,void 0,function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))})}resizeDropdownList(){return v(this,void 0,void 0,function*(){yield new Promise(t=>requestAnimationFrame(()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const t=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}px`;this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}else{const t="auto";this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}t()}))})}handleFocusIn(t){var e;this.disabled||null===(e=super.handleFocusIn)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[n.A,m.A]}get filteredOptions(){const t=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!t.trim())return this.dropdownRenderOptions;const e=this.dropdownRenderOptions.filter(e=>e.value.toLowerCase().includes(t.toLowerCase()));return 0===e.length?[{key:"no-result",value:"No Result",disabled:!0}]:e}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(t){this.expanded=t}updateOnNextFrame(t){requestAnimationFrame(t)}setInputValue(t=""){this.input.value=t}shouldChangeButton(){const t=this.input&&this.input.value.length>0;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-dropdown-input"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-dropdown-input");setTimeout(()=>{t.focus()},10)}}this.expanded?this.collapse():(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.expand()),this.input.focus()}}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var t;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus()}),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){if(this.expanded=!0,document.dispatchEvent(new CustomEvent("on-widget-update")),!this.searchable&&this.label&&this.label.focus(),-1===this.focusedIndex)if(this.selectedKey){const t=this.filteredOptions.findIndex(t=>t.key===this.selectedKey);-1!==t?this.focusedIndex=t:this.focusNext()}else this.focusNext()}collapse(){if(this.expanded=!1,this.searchable&&this.selectedKey){const t=this.dropdownRenderOptions.find(t=>t.key===this.selectedKey);if(null==t?void 0:t.option){const e=this.getOptionValue(t.option);this.inputValue=e,this.setInputValue(e)}}}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const t=this.filteredOptions[this.focusedIndex];if(!t||"no-result"===t.key)return;const e=t.key;e!==this.selectedKey&&(this.selectedKey=e,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:"option"in t&&t.option||t.key}})))}}onLabelClick(){this.label.focus(),this.readOnly||this.toggle()}focusFirst(){this.filteredOptions.length&&(this.focusedIndex=0)}focusLast(){this.filteredOptions.length&&(this.focusedIndex=this.filteredOptions.length-1)}focusNext(){this.filteredOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.filteredOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.filteredOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(t){this.filteredOptions.length&&t>=0&&t<=this.filteredOptions.length-1&&(this.focusedIndex=t)}focusToIndexWithOption(t){const e=this.filteredOptions.findIndex(e=>e.key===t.key);this.filteredOptions.length&&e>=0&&e<=this.filteredOptions.length-1&&(this.focusedIndex=e)}focusReset(){this.focusedIndex=-1}scrollToIndex(t){return v(this,void 0,void 0,function*(){yield new Promise(e=>{requestAnimationFrame(()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&t>=0&&this.optionsListItems.length>t){let e=0;const{top:i,bottom:o}=this.optionsList.getBoundingClientRect(),s=this.optionsListItems[t],r=this.optionsListItems[t+1]||s,a=this.optionsListItems[t-1]||s,n=r.getBoundingClientRect(),l=a.getBoundingClientRect();n.bottom>o?e=n.bottom-o+2:l.top<i&&(e=l.top-i-2),this.optionsList.scrollTop+=e}e()})})})}getOptionKeyValuePair(t){if("string"==typeof t)return{key:t.trim(),value:t};if(t&&"object"==typeof t){const e=Object.keys(t),i=Object.values(t);if(e.length){if(1===e.length||!this.optionId)return{key:e[0],value:i[0]};if(this.optionId)return{key:t[this.optionId],value:t[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const t=this.dropdownRenderOptions.find(t=>t.key===this.selectedKey);if(t)return t.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}helpTextTemplate(){return this.helpText?l.html`
|
|
877
877
|
<md-help-text
|
|
878
878
|
class="help-text ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
879
879
|
.message=${this.helpText}
|
|
@@ -896,6 +896,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
896
896
|
name="${this.leftIcon}"
|
|
897
897
|
size="16"
|
|
898
898
|
iconSet="momentumDesign"
|
|
899
|
+
aria-hidden="true"
|
|
899
900
|
@click=${this.toggleVisualListBox}
|
|
900
901
|
></md-icon>
|
|
901
902
|
`}clearButtonTemplate(){return l.html`
|
|
@@ -914,6 +915,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
914
915
|
name="cancel-bold"
|
|
915
916
|
size="16"
|
|
916
917
|
iconSet="momentumDesign"
|
|
918
|
+
aria-hidden="true"
|
|
917
919
|
style="height: ${this.clearIconHeight};"
|
|
918
920
|
></md-icon>
|
|
919
921
|
</button>
|
|
@@ -930,7 +932,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
930
932
|
?disabled=${this.disabled}
|
|
931
933
|
@click=${this.toggleVisualListBox}
|
|
932
934
|
>
|
|
933
|
-
<md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
935
|
+
<md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign" aria-hidden="true"></md-icon>
|
|
934
936
|
</button>
|
|
935
937
|
`}render(){return l.html`
|
|
936
938
|
<div class="md-dropdown ${(0,h.classMap)(this.dropDownClassMap)}" part="dropdown">
|
|
@@ -942,15 +944,14 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
942
944
|
type="text"
|
|
943
945
|
role="combobox"
|
|
944
946
|
aria-autocomplete="both"
|
|
945
|
-
aria-label=${this.title}
|
|
947
|
+
aria-label=${(0,p.ifDefined)(this.inputValue?void 0:this.title)}
|
|
946
948
|
part="dropdown-input"
|
|
947
949
|
aria-expanded=${this.expanded}
|
|
948
|
-
placeholder=${this.placeholder}
|
|
950
|
+
placeholder=${this.inputValue?"":this.placeholder}
|
|
949
951
|
aria-controls="md-dropdown-list"
|
|
950
952
|
?readonly=${this.readOnly}
|
|
951
953
|
?disabled=${this.disabled}
|
|
952
954
|
?autofocus=${this.autofocus}
|
|
953
|
-
title=${this.title}
|
|
954
955
|
tabindex="0"
|
|
955
956
|
.value=${this.inputValue}
|
|
956
957
|
@click=${this.toggleVisualListBox}
|
|
@@ -962,22 +963,23 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
962
963
|
<label
|
|
963
964
|
class="md-dropdown-label ${(0,h.classMap)({"md-new-dropdown-label":this.newMomentum})}"
|
|
964
965
|
aria-expanded="${this.expanded}"
|
|
965
|
-
aria-label="${this.
|
|
966
|
+
aria-label="${this.labelTitle}"
|
|
966
967
|
aria-controls="md-dropdown-list"
|
|
967
968
|
aria-haspopup="listbox"
|
|
968
969
|
?disabled=${this.disabled}
|
|
969
970
|
@click=${this.onLabelClick}
|
|
970
971
|
part="dropdown-header"
|
|
971
972
|
role="combobox"
|
|
972
|
-
tabindex="0"
|
|
973
|
+
tabindex="${this.newMomentum&&this.disabled?-1:0}"
|
|
973
974
|
>
|
|
974
|
-
${this.leftIcon?l.html`<span class="md-dropdown-label--left-icon">${this.iconTemplate()}</span>`:l.nothing}
|
|
975
|
+
${this.leftIcon?l.html`<span class="md-dropdown-label--left-icon" aria-hidden="true">${this.iconTemplate()}</span>`:l.nothing}
|
|
975
976
|
<span
|
|
976
977
|
class="md-dropdown-label--text ${(0,h.classMap)({"md-new-dropdown-label--text":this.newMomentum})}"
|
|
978
|
+
aria-hidden="true"
|
|
977
979
|
>
|
|
978
980
|
${this.labelTitle}</span
|
|
979
981
|
>
|
|
980
|
-
<span class="md-dropdown-label--icon">
|
|
982
|
+
<span class="md-dropdown-label--icon" aria-hidden="true">
|
|
981
983
|
<md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
982
984
|
</span>
|
|
983
985
|
</label>
|
|
@@ -989,14 +991,14 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
989
991
|
aria-label="${this.labelTitle}"
|
|
990
992
|
aria-hidden="${!this.expanded}"
|
|
991
993
|
part="dropdown-options"
|
|
992
|
-
tabindex=${(0,p.ifDefined)(
|
|
994
|
+
tabindex=${(0,p.ifDefined)(this.newMomentum||-1===this.customTabIndex?void 0:this.customTabIndex)}
|
|
993
995
|
>
|
|
994
996
|
${this.filteredOptions.map((t,e)=>l.html`
|
|
995
997
|
<li
|
|
996
998
|
id="combo-${e}"
|
|
997
999
|
class="md-dropdown-option"
|
|
998
1000
|
role="option"
|
|
999
|
-
tabindex=${(0,p.ifDefined)(
|
|
1001
|
+
tabindex=${(0,p.ifDefined)(this.newMomentum||-1===this.customTabIndex?void 0:this.customTabIndex)}
|
|
1000
1002
|
aria-label="${t.value}"
|
|
1001
1003
|
label="${t.value}"
|
|
1002
1004
|
aria-selected="${t.key===this.selectedKey}"
|
|
@@ -1008,6 +1010,13 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1008
1010
|
<span class="select-label" part="label">
|
|
1009
1011
|
<span>${t.value}</span>
|
|
1010
1012
|
</span>
|
|
1013
|
+
${this.newMomentum&&t.key===this.selectedKey?l.html`<md-icon
|
|
1014
|
+
class="md-dropdown-option--icon"
|
|
1015
|
+
name="check-bold"
|
|
1016
|
+
size="16"
|
|
1017
|
+
iconSet="momentumDesign"
|
|
1018
|
+
aria-hidden="true"
|
|
1019
|
+
></md-icon>`:l.nothing}
|
|
1011
1020
|
</li>
|
|
1012
1021
|
`)}
|
|
1013
1022
|
</ul>
|
|
@@ -1042,24 +1051,35 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1042
1051
|
.innerText=${this.content}
|
|
1043
1052
|
></div>
|
|
1044
1053
|
${this.messagesTemplate()}
|
|
1045
|
-
`}};u([(0,d.property)({type:String})],i.prototype,"alignment",void 0),u([(0,d.property)({type:Boolean})],i.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],i.prototype,"isEditing",void 0),u([(0,d.property)({type:String,attribute:"max-lines",reflect:!0})],i.prototype,"maxLines",void 0),u([(0,d.property)({type:String,reflect:!0})],i.prototype,"content",void 0),u([(0,d.property)({type:Object})],i.prototype,"message",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"alert",void 0),u([(0,d.property)({type:Boolean})],i.prototype,"hideMessage",void 0),u([(0,d.property)({type:String})],i.prototype,"pattern",void 0),u([(0,d.property)({type:String})],i.prototype,"type",void 0),u([(0,d.property)({type:String})],i.prototype,"ariaLabel",void 0),u([(0,d.property)({type:String,attribute:"aria-described-by"})],i.prototype,"ariaDescribedBy",void 0),u([(0,d.query)(".md-editable-textfield")],i.prototype,"editableField",void 0),i=u([(0,r.w)("md-editable-field")],i),e.ELEMENT=i}(s||(s={}))},4262(t,e,i){i.d(e,{o:()=>o}),i(5983),i(1821);var o,s=i(
|
|
1046
|
-
${this.show?
|
|
1054
|
+
`}};u([(0,d.property)({type:String})],i.prototype,"alignment",void 0),u([(0,d.property)({type:Boolean})],i.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],i.prototype,"isEditing",void 0),u([(0,d.property)({type:String,attribute:"max-lines",reflect:!0})],i.prototype,"maxLines",void 0),u([(0,d.property)({type:String,reflect:!0})],i.prototype,"content",void 0),u([(0,d.property)({type:Object})],i.prototype,"message",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"alert",void 0),u([(0,d.property)({type:Boolean})],i.prototype,"hideMessage",void 0),u([(0,d.property)({type:String})],i.prototype,"pattern",void 0),u([(0,d.property)({type:String})],i.prototype,"type",void 0),u([(0,d.property)({type:String})],i.prototype,"ariaLabel",void 0),u([(0,d.property)({type:String,attribute:"aria-described-by"})],i.prototype,"ariaDescribedBy",void 0),u([(0,d.query)(".md-editable-textfield")],i.prototype,"editableField",void 0),i=u([(0,r.w)("md-editable-field")],i),e.ELEMENT=i}(s||(s={}))},4262(t,e,i){i.d(e,{o:()=>o}),i(5983),i(1821);var o,s=i(2900),r=i(7704),a=i(9609),n=i(4084),l=(i(4358),i(1660),i(4886),i(5109)),d=(i(6014),i(2927)),h=i(8899),p=i(3517),c=(i(5958),i(7262)),u=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((0,r.yC)((0,r.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.centered=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.moveAriaLabel="Move Modal",this.maximizable=!0,this.resizable=!0,this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.previouslyFocusedElement=null,this.applyInitialPosition=!0,this.handleModalKeyDown=t=>{this.show&&t.code===s.Uz.Escape&&(t.preventDefault(),t.stopPropagation(),this.handleClose(t))},this.resizeMoveListener=t=>{const{target:e}=t;let i=parseFloat(e.getAttribute("data-x"))||0,o=parseFloat(e.getAttribute("data-y"))||0;e.style.setProperty("width",`${t.rect.width}px`,"important"),e.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:s,initialY:r}=this.getInitialPosition();i+=t.deltaRect.left+s,o+=t.deltaRect.top+r,this.setTargetPosition(e,i,o),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.position)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:o}=this.getTransformValues(t);this.setTargetPosition(e,i,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()},this.MOVE_STEP=10,this.handleMoveKeyDown=t=>{if(!this.container)return;const{code:e}=t;let i=0,o=0;switch(e){case"ArrowUp":o=-this.MOVE_STEP;break;case"ArrowDown":o=this.MOVE_STEP;break;case"ArrowLeft":i=-this.MOVE_STEP;break;case"ArrowRight":i=this.MOVE_STEP;break;default:return}t.preventDefault(),t.stopPropagation();const s=parseFloat(this.container.getAttribute("data-x")||"0")+i,r=parseFloat(this.container.getAttribute("data-y")||"0")+o;this.setTargetPosition(this.container,s,r),this.containerTransform=`translate(${s}px, ${r}px)`,this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:`${s}`,y:`${r}`}}}))}}static get styles(){return[n.A,c.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.capturePreviouslyFocusedElement(),this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.focusModalOnOpen()):(this.cleanContainerStyles(),this.destroyInteractInstance(),this.restoreFocusAfterClose())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&!0===t.get("minimize")&&!1===this.minimize&&this.show&&this.focusModalOnOpen()}getDeepActiveElementFromDocument(){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}capturePreviouslyFocusedElement(){var t;const e=this.getDeepActiveElementFromDocument();e&&e!==document.body?(null===(t=this.shadowRoot)||void 0===t?void 0:t.contains(e))||this.contains(e)||(this.previouslyFocusedElement=e):this.previouslyFocusedElement=null}focusModalOnOpen(){requestAnimationFrame(()=>{var t;if(!this.show||!this.container)return;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-floating__header md-button.md-floating__header-button");e?e.focus():(this.container.setAttribute("tabindex","-1"),this.container.focus())})}restoreFocusAfterClose(){const t=this.previouslyFocusedElement;this.previouslyFocusedElement=null,t&&t.isConnected&&requestAnimationFrame(()=>{t.isConnected&&t.focus()})}isNewPositionNotSame(){var t,e,i,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.position)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(o=this.position)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(e=this.position)||void 0===e?void 0:e.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,o=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())});var t,e,i,o})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&((0,l.default)(this.container).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}}),this.resizable&&(0,l.default)(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l.default.modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l.default.modifiers.restrictSize({max:"parent"})]})]:void 0}))})}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:e,dx:i,dy:o}=t,{initialX:s,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+s,y:(parseFloat(e.getAttribute("data-y"))||0)+o+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&l.default.isSet(this.container)&&(0,l.default)(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
|
|
1055
|
+
${this.show?d.html`
|
|
1047
1056
|
<div
|
|
1048
1057
|
class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
|
|
1049
1058
|
part="floating"
|
|
1050
1059
|
role="dialog"
|
|
1051
|
-
aria-label=${(0,
|
|
1060
|
+
aria-label=${(0,p.ifDefined)(this.label||void 0)}
|
|
1052
1061
|
aria-modal="true"
|
|
1053
|
-
|
|
1062
|
+
@keydown=${this.handleModalKeyDown}
|
|
1063
|
+
style=${(0,p.ifDefined)(this.containerRect?this.centered?`\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ${this.full?"width: 100% !important; height: 100% !important;":""}\n `:`width: ${this.full?"100% !important":`${this.containerRect.width}px !important`};\n height: ${this.full?"100% !important":`${this.containerRect.height}px !important`};\n top: ${this.full?"0 !important":""};\n left: ${this.full?"0 !important":""};\n bottom: ${this.full?"0 !important":""};\n right: ${this.full?"0 !important":""};\n ${this.full?"transform: none !important":""};\n ${this.full?"":`transform: ${this.position?`translate(${this.position.x}px, ${this.position.y}px)`:this.containerTransform} !important`};`:void 0)}
|
|
1054
1064
|
>
|
|
1055
1065
|
<div class="md-floating__header">
|
|
1056
1066
|
<div class="md-floating__header-text">
|
|
1057
|
-
${this.heading?
|
|
1067
|
+
${this.heading?d.html` ${this.heading} `:d.html`
|
|
1058
1068
|
${!this.minimize&&this.headerSlot}
|
|
1059
1069
|
<slot name="header"></slot>
|
|
1060
1070
|
`}
|
|
1061
1071
|
</div>
|
|
1062
|
-
${this.
|
|
1072
|
+
${this.full?d.nothing:d.html` <md-button
|
|
1073
|
+
color="color-none"
|
|
1074
|
+
size="20"
|
|
1075
|
+
class="md-floating__move md-floating__header-button"
|
|
1076
|
+
ariaLabel="${this.moveAriaLabel}"
|
|
1077
|
+
circle
|
|
1078
|
+
@keydown=${this.handleMoveKeyDown}
|
|
1079
|
+
>
|
|
1080
|
+
<md-icon name="drag-bold" size="16" iconSet="momentumDesign" aria-hidden="true"></md-icon>
|
|
1081
|
+
</md-button>`}
|
|
1082
|
+
${this.minimizable?d.html` <md-button
|
|
1063
1083
|
color="color-none"
|
|
1064
1084
|
size="20"
|
|
1065
1085
|
class="md-floating__minimize md-floating__header-button"
|
|
@@ -1068,8 +1088,8 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1068
1088
|
@click=${this.handleMinimize}
|
|
1069
1089
|
>
|
|
1070
1090
|
<md-icon name="minus-bold" size="16" iconSet="momentumDesign" ariaHidden="true"></md-icon>
|
|
1071
|
-
</md-button>`:
|
|
1072
|
-
${!this.minimize&&this.maximizable?
|
|
1091
|
+
</md-button>`:d.nothing}
|
|
1092
|
+
${!this.minimize&&this.maximizable?d.html` <md-button
|
|
1073
1093
|
color="color-none"
|
|
1074
1094
|
size="20"
|
|
1075
1095
|
class="md-floating__resize md-floating__header-button"
|
|
@@ -1099,7 +1119,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1099
1119
|
<slot></slot>
|
|
1100
1120
|
</div>
|
|
1101
1121
|
</div>
|
|
1102
|
-
${this.minimizable?
|
|
1122
|
+
${this.minimizable?d.html` <div class="md-floating-min-parent" part="minimize-floating" tabindex="-1">
|
|
1103
1123
|
<md-floating-modal-minimized
|
|
1104
1124
|
class="float-modal-min"
|
|
1105
1125
|
part="floating-minimized"
|
|
@@ -1114,9 +1134,9 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1114
1134
|
>
|
|
1115
1135
|
${this.minimize&&this.headerSlot}
|
|
1116
1136
|
</md-floating-modal-minimized>
|
|
1117
|
-
</div>`:
|
|
1118
|
-
`:
|
|
1119
|
-
`}};
|
|
1137
|
+
</div>`:d.nothing}
|
|
1138
|
+
`:d.nothing}
|
|
1139
|
+
`}};u([(0,h.property)({type:String})],e.prototype,"heading",void 0),u([(0,h.property)({type:String})],e.prototype,"label",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],e.prototype,"aspectRatio",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"centered"})],e.prototype,"centered",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],e.prototype,"fixed",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],e.prototype,"full",void 0),u([(0,h.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),u([(0,h.property)({type:String,attribute:"resize-aria-label"})],e.prototype,"resizeAriaLabel",void 0),u([(0,h.property)({type:String,attribute:"maximize-aria-label"})],e.prototype,"maximizeScreenLabel",void 0),u([(0,h.property)({type:String,attribute:"minimize-aria-label"})],e.prototype,"minimizeAriaLabel",void 0),u([(0,h.property)({type:String,attribute:"move-aria-label"})],e.prototype,"moveAriaLabel",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"maximizable",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"resizable",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),u([(0,h.property)({type:Object})],e.prototype,"position",void 0),u([(0,h.property)({type:Object})],e.prototype,"minPosition",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"minimizable",void 0),u([(0,h.property)({type:Object})],e.prototype,"containerRect",void 0),u([(0,h.state)()],e.prototype,"dragOccured",void 0),u([(0,h.query)(".md-floating")],e.prototype,"container",void 0),u([(0,h.query)(".md-floating__body")],e.prototype,"body",void 0),u([(0,h.query)(".md-floating__header")],e.prototype,"header",void 0),u([(0,h.query)(".md-floating-min-parent")],e.prototype,"minimizedHeader",void 0),u([(0,h.query)('slot[name="header"]')],e.prototype,"headerSlot",void 0),e=u([(0,a.w)("md-floating-modal")],e),t.ELEMENT=e}(o||(o={}))},9147(t,e,i){i.d(e,{l:()=>o});var o,s=i(7704),r=i(2927),a=i(8899),n=i(3517),l=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((0,s.TS)(r.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return r.html`
|
|
1120
1140
|
<form
|
|
1121
1141
|
class="md-form"
|
|
1122
1142
|
role="form"
|
|
@@ -1134,17 +1154,16 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1134
1154
|
>
|
|
1135
1155
|
<slot></slot>
|
|
1136
1156
|
</form>
|
|
1137
|
-
`}};l([(0,a.property)({type:String})],e.prototype,"rel",void 0),l([(0,a.property)({type:String})],e.prototype,"name",void 0),l([(0,a.property)({type:String})],e.prototype,"action",void 0),l([(0,a.property)({type:String})],e.prototype,"label",void 0),l([(0,a.property)({type:String})],e.prototype,"method",void 0),l([(0,a.property)({type:String})],e.prototype,"target",void 0),l([(0,a.property)({type:String})],e.prototype,"enctype",void 0),l([(0,a.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),l([(0,a.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),l([(0,a.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),l([(0,a.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),l([(0,a.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),l([(0,a.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),l([(0,a.query)(".md-form")],e.prototype,"form",void 0),e=l([(0,s.wW)("md-form")],e),t.ELEMENT=e}(o||(o={}))},8637(t,e,i){i.d(e,{I:()=>o}),i(1821);var o,s=i(3876),r=i(7704),a=i(9609),n=i(7154),l=i(4084),d=i(2927),h=i(8899),p=i(4955),c=i(3517),u=i(7155),m=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((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,u.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(t){this.disableClickToggle||(0,n.o)(t.code)&&(t.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused,"md-grabber--rtl":this.isRtl}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get isRtl(){return"rtl"===getComputedStyle(this).direction}get iconName(){if(this.dragger)return"list-menu-bold";if("leading"===this.alignment||"trailing"===this.alignment){const t=this.isRtl?"arrow-right-bold":"arrow-left-bold",e=this.isRtl?"arrow-left-bold":"arrow-right-bold";return this.checked?t:e}return this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===s.vz.isMomentumV2Enabled?"10":"12"}render(){return d.html`
|
|
1157
|
+
`}};l([(0,a.property)({type:String})],e.prototype,"rel",void 0),l([(0,a.property)({type:String})],e.prototype,"name",void 0),l([(0,a.property)({type:String})],e.prototype,"action",void 0),l([(0,a.property)({type:String})],e.prototype,"label",void 0),l([(0,a.property)({type:String})],e.prototype,"method",void 0),l([(0,a.property)({type:String})],e.prototype,"target",void 0),l([(0,a.property)({type:String})],e.prototype,"enctype",void 0),l([(0,a.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),l([(0,a.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),l([(0,a.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),l([(0,a.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),l([(0,a.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),l([(0,a.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),l([(0,a.query)(".md-form")],e.prototype,"form",void 0),e=l([(0,s.wW)("md-form")],e),t.ELEMENT=e}(o||(o={}))},8637(t,e,i){i.d(e,{I:()=>o}),i(1821);var o,s=i(3876),r=i(7704),a=i(9609),n=i(7154),l=i(4084),d=i(2927),h=i(8899),p=i(4955),c=i(3517),u=i(7155),m=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((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,u.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(t){this.disableClickToggle||(0,n.o)(t.code)&&(t.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get currentLabel(){return this.checked?this.checkedLabel:this.label}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused,"md-grabber--rtl":this.isRtl}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get isRtl(){return"rtl"===getComputedStyle(this).direction}get iconName(){if(this.dragger)return"list-menu-bold";if("leading"===this.alignment||"trailing"===this.alignment){const t=this.isRtl?"arrow-right-bold":"arrow-left-bold",e=this.isRtl?"arrow-left-bold":"arrow-right-bold";return this.checked?t:e}return this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===s.vz.isMomentumV2Enabled?"10":"12"}render(){return d.html`
|
|
1138
1158
|
<div class="md-grabber__container ${(0,p.classMap)(this.grabberContainerClassMap)}">
|
|
1139
1159
|
<button
|
|
1140
1160
|
class="md-grabber ${(0,p.classMap)(this.grabberClassMap)}"
|
|
1141
1161
|
part="grabber"
|
|
1142
|
-
aria-
|
|
1162
|
+
aria-expanded=${this.checked}
|
|
1143
1163
|
?disabled=${this.disabled}
|
|
1144
1164
|
tabindex="0"
|
|
1145
|
-
aria-label=${(0,c.ifDefined)(this.
|
|
1165
|
+
aria-label=${(0,c.ifDefined)(this.currentLabel.length?this.currentLabel:void 0)}
|
|
1146
1166
|
type="button"
|
|
1147
|
-
role="button"
|
|
1148
1167
|
@click=${this.handleMouseDown}
|
|
1149
1168
|
@keydown=${this.handleKeyDown}
|
|
1150
1169
|
@mouseenter=${this.handleMouseEnter}
|
|
@@ -1152,7 +1171,12 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1152
1171
|
@focus=${this.handleFocus}
|
|
1153
1172
|
@blur=${this.handleBlur}
|
|
1154
1173
|
>
|
|
1155
|
-
<md-icon
|
|
1174
|
+
<md-icon
|
|
1175
|
+
name="${this.iconName}"
|
|
1176
|
+
size="${this.iconSize}"
|
|
1177
|
+
iconSet="momentumDesign"
|
|
1178
|
+
aria-hidden="true"
|
|
1179
|
+
></md-icon>
|
|
1156
1180
|
</button>
|
|
1157
1181
|
</div>
|
|
1158
1182
|
`}};m([(0,h.property)({type:String})],e.prototype,"label",void 0),m([(0,h.property)({type:String})],e.prototype,"checkedLabel",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"hovered",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"checked",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"visible",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"focused",void 0),m([(0,h.property)({type:Boolean,attribute:"disable-click-toggle"})],e.prototype,"disableClickToggle",void 0),m([(0,h.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"dragger",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"shadow",void 0),e=m([(0,a.w)("md-grabber")],e),t.ELEMENT=e}(o||(o={}))},1821(t,e,i){i.d(e,{In:()=>o}),i(5983);var o,s=i(9609),r=i(4084),a=i(9500),n=i(3496),l=i(2927),d=i(8899),h=i(4955),p=i(3517),c=i(1156),u=i(7955),m=i(9837),b=i(7253),v=i(1722),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};!function(t){var e;let i=e=class extends l.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this.abortController=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`);break;case"name-changed":console.warn(`[@momentum-ui/web-component] Icon: The name changed to '${e[0]}' before the SVG icon '${e[1]}' finished loading; skipping outdated result.`)}}}renewSignal(){var t;return null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=new AbortController,this.abortController.signal}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=null}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,s=function*(){var e,i,o,s;if(this.isSvgAlreadyLoaded(t))return;const r=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"),a=this.renewSignal(),n=yield(0,v.Jp)(this.computedSvgPath,t,"svg",a);if(!n)return;const l=null===(i=this.svgIcon)||void 0===i?void 0:i.getAttribute("class");r===l?(this.svgIcon=n,null===(o=this.svgIcon)||void 0===o||o.setAttribute("class",`icon ${t}`),null===(s=this.svgIcon)||void 0===s||s.setAttribute("part","icon"),this.setSvgIconAttributes()):this.consoleHandler("name-changed",[null!=l?l:"",t])},new((o=void 0)||(o=Promise))(function(t,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(a,n)}l((s=s.apply(e,i||[])).next())});var e,i,o,s}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:b.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:(0,n.default)(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":a.default.includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[r.A,m.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return l.html`
|
|
@@ -1196,7 +1220,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1196
1220
|
@change=${t=>this.handleFile(t)}
|
|
1197
1221
|
/>
|
|
1198
1222
|
</div>
|
|
1199
|
-
`}};p([(0,l.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),p([(0,l.property)({type:String})],e.prototype,"getLocalization",void 0),p([(0,l.query)("input[type='file']")],e.prototype,"input",void 0),p([(0,l.state)()],e.prototype,"acceptTypes",void 0),p([(0,l.state)()],e.prototype,"fileName",void 0),e=p([(0,s.wW)("md-input-file")],e),t.ELEMENT=e}(o||(o={}))},9189(t,e,i){i.d(e,{pd:()=>o}),i(7906),i(1821),i(2369),i(9773);var o,s=i(2900),r=i(9609),a=i(3203),n=i(4084),l=(i(9500),i(2927)),d=i(8899),h=i(4955),p=i(3517),c=i(2577),u=i(1156),m=i(9336),b=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){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="
|
|
1223
|
+
`}};p([(0,l.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),p([(0,l.property)({type:String})],e.prototype,"getLocalization",void 0),p([(0,l.query)("input[type='file']")],e.prototype,"input",void 0),p([(0,l.state)()],e.prototype,"acceptTypes",void 0),p([(0,l.state)()],e.prototype,"fileName",void 0),e=p([(0,s.wW)("md-input-file")],e),t.ELEMENT=e}(o||(o={}))},9189(t,e,i){i.d(e,{pd:()=>o}),i(7906),i(1821),i(2369),i(9773);var o,s=i(2900),r=i(9609),a=i(3203),n=i(4084),l=(i(9500),i(2927)),d=i(8899),h=i(4955),p=i(3517),c=i(2577),u=i(1156),m=i(9336),b=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){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.ariaRole=void 0,this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.disableUserTextInput=!1,this.autocomplete=void 0,this.showDropdown=!1,this.dropdownExpanded=!1,this.dropdownAriaLabel="Show options",this.maxSuggestedLength=void 0,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){var t;null===(t=this.input)||void 0===t||t.select()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){var e;this.value=t.target.value,null===(e=this.control)||void 0===e||e.setValue(this.value),this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){var e;null===(e=this.control)||void 0===e||e.markAsTouched(),this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==s.Uz.Space&&e!==s.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}handleDropdownClick(t){t.preventDefault(),this.dropdownExpanded=!this.dropdownExpanded,this.dispatchEvent(new CustomEvent("input-dropdown-click",{bubbles:!0,composed:!0,detail:{srcEvent:t,expanded:this.dropdownExpanded}}))}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disable-user-text-input":this.disableUserTextInput,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:void 0}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!!this.showDropdown||!this.compact&&this.hasRightSlotContent}get effectiveAriaLabel(){return this.ariaLabel||this.label||void 0}inputTemplate(){var t;return this.multiline?l.html`
|
|
1200
1224
|
<textarea
|
|
1201
1225
|
part="input"
|
|
1202
1226
|
class="md-input ${(0,h.classMap)(this.inputTemplateClassMap)}"
|
|
@@ -1210,7 +1234,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1210
1234
|
aria-describedby=${this.ariaDescribedBy}
|
|
1211
1235
|
?required=${this.required}
|
|
1212
1236
|
?autofocus=${this.autofocus}
|
|
1213
|
-
aria-label=${this.
|
|
1237
|
+
aria-label=${(0,p.ifDefined)(this.effectiveAriaLabel)}
|
|
1214
1238
|
aria-invalid=${this.ariaInvalid}
|
|
1215
1239
|
aria-errormessage="${this.htmlId}-message"
|
|
1216
1240
|
aria-disabled=${(0,p.ifDefined)(this.disabled||void 0)}
|
|
@@ -1237,7 +1261,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1237
1261
|
aria-describedby=${this.ariaDescribedBy}
|
|
1238
1262
|
aria-controls=${this.ariaControls}
|
|
1239
1263
|
aria-expanded=${(0,p.ifDefined)(null!==(t=this.ariaExpandedValue)&&void 0!==t?t:void 0)}
|
|
1240
|
-
aria-label=${this.
|
|
1264
|
+
aria-label=${(0,p.ifDefined)(this.effectiveAriaLabel)}
|
|
1241
1265
|
aria-invalid=${this.ariaInvalid}
|
|
1242
1266
|
aria-errormessage=${`${this.htmlId}-message`}
|
|
1243
1267
|
aria-disabled=${(0,p.ifDefined)(this.disabled||void 0)}
|
|
@@ -1948,7 +1972,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
1948
1972
|
@click=${t=>this.handleClick(t)}
|
|
1949
1973
|
@keydown=${t=>this.handleKeydown(t)}
|
|
1950
1974
|
></button>
|
|
1951
|
-
`}};c([(0,d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,d.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),c([(0,d.property)({type:String,attribute:"closable"})],e.prototype,"closable",void 0),c([(0,d.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),c([(0,d.property)({type:Boolean,attribute:"cross-visible"})],e.prototype,"isCrossVisible",void 0),c([(0,d.property)({type:String,attribute:"role",reflect:!0})],e.prototype,"role",void 0),c([(0,d.property)({type:String,reflect:!0})],e.prototype,"type",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"newMomentum",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"onlyIcon",void 0),c([(0,d.property)({type:String})],e.prototype,"variant",void 0),c([(0,d.property)({type:Boolean,attribute:"visible-tab",reflect:!0})],e.prototype,"visibleTab",void 0),c([(0,d.property)({type:Number})],e.prototype,"size",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"vertical",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"viewportHidden",void 0),e=c([(0,r.w)("md-tab")],e),t.ELEMENT=e}(m||(m={}))},6056(t,e,i){i.d(e,{K:()=>o});var o,s=i(7704),r=i(9609),a=i(4084),n=i(2927),l=i(8899),d=i(3272),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){let e=class extends((0,s.yC)(n.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[a.A,d.A]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel")}firstUpdated(t){super.firstUpdated(t),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return n.html` <slot></slot> `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),h([(0,l.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),h([(0,l.property)({type:String,attribute:"focusable-panel"})],e.prototype,"focusablePanel",void 0),e=h([(0,r.w)("md-tab-panel")],e),t.ELEMENT=e}(o||(o={}))},8543(t,e,i){i.d(e,{t:()=>I}),i(1821),i(708),i(9613);var o=i(2900),s=i(7704),r=i(2050),a=i(93),n=i(4084),l=i(2927),d=i(8899),h=i(4955),p=i(3517),c=i(2577),u=i(1156),m=i(7638),b=i(6933),v=i(7103),y=i(3272),g=i(120),f=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},w=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};const C="tab-more",E="more-menu-copy-",T="visibleToVisible",x="visibleToHidden",$="hiddenToVisible",S="hiddenToHidden",k="previous",A="next",L="fromMoreTabs";var I;!function(t){let e=class extends((0,s.UM)((0,s.Io)((0,s.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.size=28,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabPanelHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame(()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5})},this.handleOnDragEnd=t=>w(this,void 0,void 0,function*(){var e,i,o,s,r,a,n,l,d,h;t.stopPropagation();const p=t.oldIndex,c=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],b=this.getDragDirection(t);if(void 0!==p&&void 0!==c){switch(b){case x:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const o=u[p],s=m.slice(-1)[0],r=c===this.tabsFilteredAsHiddenList.length?c-1:c;m.splice(r,0,o),m.pop();const a=u.filter(e=>e.id!==this.getNormalizedTabId(t.item.id));a.push(s),this.tabsFilteredAsVisibleList=[...a],this.tabsFilteredAsHiddenList=[...m];break}case T:{const t=u[p];u.splice(p,1),u.splice(c,0,t),this.tabsFilteredAsVisibleList=u,c===this.tabsFilteredAsVisibleList.length-1&&(null===(s=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[this.visibleTabsContainerElement.children.length-1])||void 0===s||s.remove());const e=this.visibleTabsContainerElement.children[p],i=this.visibleTabsContainerElement.children[c];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(a=this.visibleTabsContainerElement)||void 0===a||a.insertBefore(e,i);break}case $:{null===(l=null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[p],i=u.slice(-1)[0];m.splice(p,1),m.splice(0,0,i);const o=c===this.tabsFilteredAsVisibleList.length?c-1:c;u.splice(o,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case S:{const t=m[p];m.splice(p,1),m.splice(c,0,t),this.tabsFilteredAsHiddenList=m,c===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex(t=>t.selected);this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map(t=>t.name),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;if(-1===t)return;const i=this._selectedIndex;this._selectedIndex=t,i!==t&&(null===(e=this.tabs)||void 0===e?void 0:e.length)&&this.updateSelectedTab(t)}get isRtl(){return"rtl"===getComputedStyle(this).direction}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(E,"")}static get styles(){return[n.A,y.A]}ensureTabsUpdateComplete(t){return w(this,void 0,void 0,function*(){const e=t.map(t=>void 0!==t.updateComplete?t.updateComplete:null).filter(t=>null!==t);e.length&&(yield Promise.all(e))})}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map(t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+g.y:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e}):this.tabs.map(t=>t.closable?t.offsetWidth+g.y:t.offsetWidth)}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map(t=>t.offsetHeight)}manageOverflow(){return w(this,void 0,void 0,function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach(t=>{var e,i,o,s,r,a;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(o=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===o?void 0:o.length)){const e=null===(r=null===(s=null==t?void 0:t.querySelector("slot"))||void 0===s?void 0:s.assignedNodes({flatten:!0})[0])||void 0===r?void 0:r.cloneNode(!0);e&&(e.classList.add("tab-content"),null===(a=null==t?void 0:t.children[0])||void 0===a||a.appendChild(e))}});const o=i.length;if(this.tabsListElement&&o){const s=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),a=i.reduce((t,e,i)=>t+r[i],0);if(a){yield this.setupMoreTab();let t=!0;s<a&&(t=!1);const e=[];let n=0;i.forEach((i,a)=>{n+=r[a];const l=!t&&n+(a<o-1?this.moreTabMenuOffsetWidth:0)>s;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[a]})}),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find(t=>t.isTabInViewportHidden),this.tabsFilteredAsVisibleList=i.filter((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsFilteredAsHiddenList=i.filter((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})}}this.updateIsMoreTabMenuSelected();const s=this.tabsFilteredAsHiddenList.find(t=>!t.disabled);this.updateHiddenIdPositiveTabIndex(s)}})}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find(t=>t.selected)}updateAriaControlsElements(){this.visibleTabsContainerElement&&this.visibleTabsContainerElement.querySelectorAll("md-tab").forEach(t=>{const e=this.getNormalizedTabId(t.id),i=this.tabPanelHash[e];i&&"ariaControlsElements"in t&&(t.ariaControlsElements=[i])}),this.hiddenTabsContainerElement&&this.hiddenTabsContainerElement.querySelectorAll("md-tab").forEach(t=>{const e=this.getNormalizedTabId(t.id),i=this.tabPanelHash[e];i&&"ariaControlsElements"in t&&(t.ariaControlsElements=[i])})}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,o;const s=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(o=e.getAttribute("name"))&&void 0!==o?o:"";return this.tabsOrderPrefsArray.indexOf(s)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return w(this,void 0,void 0,function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction,o=this.selectedIndex<0?0:this.selectedIndex;t.forEach((t,s)=>{const r=(0,a.O)("tabs"),n="tab_"+r,l="tab_panel_"+r;t.setAttribute("id",n),t.setAttribute("aria-controls",l),t.selected=o===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,t.size=this.newMomentum?this.size:void 0,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const d=e[s];d?(d.setAttribute("id",l),d.setAttribute("aria-labelledby",n),d.selected=o===s,t.disabled&&(d.hidden=!0,d.selected=!1)):t.disabled=!0});let s=o;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce((t,e)=>(t[e.id]=e,t),{}),this.tabsIdxHash=this.tabs.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabPanelHash=this.tabs.reduce((t,i,o)=>(e[o]&&(t[i.id]=e[o]),t),{})})}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?x:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?T:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?$:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?S:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t,e=!0){const i=this.tabsHash[this.getNormalizedTabId(t)];if(i&&!i.disabled){const t=this.tabsIdxHash[i.id];-1!==t&&this.updateSelectedTab(t,e);{const t=this.tabsCopyHash[this.getCopyTabId(i)];t&&e&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(i)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const o=this.tabsHash[this.getNormalizedTabId(t)];if(o&&!o.disabled&&("auto"===o.closable||"custom"===o.closable)){const o=this.tabsFilteredAsVisibleList.findIndex(e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter(e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t)),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(o)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex(t=>t.id===this.tabsFilteredAsVisibleList[i].id);this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find(e=>e.id===t.id)}updateSelectedTab(t,e=!0){const{tabs:i,panels:o}=this,s=this.tabs.findIndex(t=>t.hasAttribute("selected"));if(i&&o&&(this.setSelectedAttribute((0,r.Qx)(i,s),(0,r.Qx)(o,s),!1),this.setSelectedAttribute((0,r.Qx)(i,t),(0,r.Qx)(o,t),!0)),t>=0&&t<i.length){this.dispatchSelectedChangedEvent(t);const o=this.currentTabsLayout.findIndex(e=>e.id===i[t].id);this.changeSelectedTabIdx(o,e)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id;let o=e.findIndex(t=>t.id===i);-1===o&&(o=t);const s=[];e.forEach(t=>{s.push(t.name)}),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:o,tabsOrder:s},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t,e=!0){this.requestUpdate(),this.selected=t,this.updateComplete.then(()=>{var i,o;if(t<this.tabsFilteredAsVisibleList.length){if(e){const t=null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[this.selected];null==t||t.focus()}}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,i=null===(o=this.hiddenTabsContainerElement)||void 0===o?void 0:o.children[t];e&&this.moveFocusToTab(i);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}}),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,o;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const s=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<s;e++)if((null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,o,s;const r=this.getCurrentIndex(t),a=this.slotItem.assignedElements();let n=0;if(this.scrollArrow){e===k?n=0===r?a.length-1:r-1:e===A&&(n=r===a.length-1?0:r+1),this.moveFocusToTab(a[n]);const t=a[n],o=t.getBoundingClientRect(),s=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return s&&(o.left>=s.left&&o.right<=s.right&&o.top>=s.top&&o.bottom<=s.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,v.setTimeout)(()=>this.moveFocusToTab(a[n]),0)}const l=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children,d=null!==(s=null==l?void 0:l.length)&&void 0!==s?s:0;l&&0!==d&&(e===k?n=0===r?d-1:r-1:e===A?n=r===d-1?0:r+1:e===L&&(n=this.selected>=d?0:this.selected),this.moveFocusToTab(l[n]))}moveFocusToTab(t){(0,v.setTimeout)(()=>null==t?void 0:t.focus(),0)}handleOverlayClose(){(0,v.setTimeout)(()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)},0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,s,r,a,n,l;const d=t.target;if(t.target!=this&&!this.tabs.find(t=>t.id===(null==d?void 0:d.id)))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const p=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,p);const c=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&p===C,b=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(p)],v=!this.isMoreTabMenuVisible||b&&this.tabsVisibleIdxHash[b.id]>-1,y=!!this.isMoreTabMenuVisible&&b&&this.tabsHiddenIdxHash[b.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(c){case o.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,L));break;case o.Uz.End:m||(v?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(s=this.tabsFilteredAsVisibleList)||void 0===s?void 0:s.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(a=this.tabsFilteredAsHiddenList)||void 0===a?void 0:a.length)-1])));break;case o.Uz.Home:v?(t.preventDefault(),this.moveFocusToTab(null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case o.Uz.ArrowLeft:m||(v||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?A:k));break;case o.Uz.ArrowRight:m||(v||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?k:A));break;case o.Uz.ArrowUp:if(m);else if(v&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(y){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case o.Uz.ArrowDown:if(m);else if(v&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(y){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case o.Uz.Enter:case o.Uz.NumpadEnter:case o.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter(t=>!t.disabled),e=t.length?t.find(t=>t.selected)||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(b&&!b.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(b.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map(t=>t.name)}setupMoreTab(){return w(this,void 0,void 0,function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))})}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=b.default.create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=b.default.create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id,!1)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return w(this,void 0,void 0,function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()})}willUpdate(t){var e,i;if(null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("selectedIndex")&&(this.selected=this.selectedIndex),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(i=this.tabsCopyHiddenListElements)||void 0===i?void 0:i.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce((t,e)=>(t[e.id]=e,t),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce((t,e)=>t+e,0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}}updated(t){super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex,!1),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged(),(this.visibleTabsContainerElement||this.hiddenTabsContainerElement)&&requestAnimationFrame(()=>this.updateAriaControlsElements())}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,v.setTimeout)(()=>this.updateArrowsVisibility(),300)}get moreMenuButtonTemplate(){return l.html`
|
|
1975
|
+
`}};c([(0,d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,d.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),c([(0,d.property)({type:String,attribute:"closable"})],e.prototype,"closable",void 0),c([(0,d.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),c([(0,d.property)({type:Boolean,attribute:"cross-visible"})],e.prototype,"isCrossVisible",void 0),c([(0,d.property)({type:String,attribute:"role",reflect:!0})],e.prototype,"role",void 0),c([(0,d.property)({type:String,reflect:!0})],e.prototype,"type",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"newMomentum",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"onlyIcon",void 0),c([(0,d.property)({type:String})],e.prototype,"variant",void 0),c([(0,d.property)({type:Boolean,attribute:"visible-tab",reflect:!0})],e.prototype,"visibleTab",void 0),c([(0,d.property)({type:Number})],e.prototype,"size",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"vertical",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"viewportHidden",void 0),e=c([(0,r.w)("md-tab")],e),t.ELEMENT=e}(m||(m={}))},6056(t,e,i){i.d(e,{K:()=>o});var o,s=i(7704),r=i(9609),a=i(4084),n=i(2927),l=i(8899),d=i(3272),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){let e=class extends((0,s.yC)(n.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[a.A,d.A]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel")}firstUpdated(t){super.firstUpdated(t),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return n.html` <slot></slot> `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),h([(0,l.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),h([(0,l.property)({type:String,attribute:"focusable-panel"})],e.prototype,"focusablePanel",void 0),e=h([(0,r.w)("md-tab-panel")],e),t.ELEMENT=e}(o||(o={}))},8543(t,e,i){i.d(e,{t:()=>I}),i(1821),i(708),i(9613);var o=i(2900),s=i(7704),r=i(2050),a=i(93),n=i(4084),l=i(2927),d=i(8899),h=i(4955),p=i(3517),c=i(2577),u=i(1156),m=i(7638),b=i(6933),v=i(7103),y=i(3272),g=i(120),f=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},w=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((o=o.apply(t,e||[])).next())})};const C="tab-more",E="more-menu-copy-",T="visibleToVisible",x="visibleToHidden",$="hiddenToVisible",S="hiddenToHidden",k="previous",A="next",L="fromMoreTabs";var I;!function(t){let e=class extends((0,s.UM)((0,s.Io)((0,s.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.size=28,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabPanelHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame(()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5})},this.handleOnDragEnd=t=>w(this,void 0,void 0,function*(){var e,i,o,s,r,a,n,l,d,h;t.stopPropagation();const p=t.oldIndex,c=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],b=this.getDragDirection(t);if(void 0!==p&&void 0!==c){switch(b){case x:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const o=u[p],s=m.slice(-1)[0],r=c===this.tabsFilteredAsHiddenList.length?c-1:c;m.splice(r,0,o),m.pop();const a=u.filter(e=>e.id!==this.getNormalizedTabId(t.item.id));a.push(s),this.tabsFilteredAsVisibleList=[...a],this.tabsFilteredAsHiddenList=[...m];break}case T:{const t=u[p];u.splice(p,1),u.splice(c,0,t),this.tabsFilteredAsVisibleList=u,c===this.tabsFilteredAsVisibleList.length-1&&(null===(s=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[this.visibleTabsContainerElement.children.length-1])||void 0===s||s.remove());const e=this.visibleTabsContainerElement.children[p],i=this.visibleTabsContainerElement.children[c];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(a=this.visibleTabsContainerElement)||void 0===a||a.insertBefore(e,i);break}case $:{null===(l=null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[p],i=u.slice(-1)[0];m.splice(p,1),m.splice(0,0,i);const o=c===this.tabsFilteredAsVisibleList.length?c-1:c;u.splice(o,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case S:{const t=m[p];m.splice(p,1),m.splice(c,0,t),this.tabsFilteredAsHiddenList=m,c===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex(t=>t.selected);this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map(t=>t.name),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;if(-1===t)return;const i=this._selectedIndex;this._selectedIndex=t,i!==t&&(null===(e=this.tabs)||void 0===e?void 0:e.length)&&this.updateSelectedTab(t)}get isRtl(){return"rtl"===getComputedStyle(this).direction}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(E))?`${E}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(E,"")}static get styles(){return[n.A,y.A]}ensureTabsUpdateComplete(t){return w(this,void 0,void 0,function*(){const e=t.map(t=>void 0!==t.updateComplete?t.updateComplete:null).filter(t=>null!==t);e.length&&(yield Promise.all(e))})}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map(t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+g.y:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e}):this.tabs.map(t=>t.closable?t.offsetWidth+g.y:t.offsetWidth)}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map(t=>t.offsetHeight)}manageOverflow(){return w(this,void 0,void 0,function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach(t=>{var e,i,o,s,r,a;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(o=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===o?void 0:o.length)){const e=null===(r=null===(s=null==t?void 0:t.querySelector("slot"))||void 0===s?void 0:s.assignedNodes({flatten:!0})[0])||void 0===r?void 0:r.cloneNode(!0);e&&(e.classList.add("tab-content"),null===(a=null==t?void 0:t.children[0])||void 0===a||a.appendChild(e))}});const o=i.length;if(this.tabsListElement&&o){const s=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),a=i.reduce((t,e,i)=>t+r[i],0);if(a){yield this.setupMoreTab();let t=!0;s<a&&(t=!1);const e=[];let n=0;i.forEach((i,a)=>{n+=r[a];const l=!t&&n+(a<o-1?this.moreTabMenuOffsetWidth:0)>s;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[a]})}),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find(t=>t.isTabInViewportHidden),this.tabsFilteredAsVisibleList=i.filter((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsFilteredAsHiddenList=i.filter((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})}}this.updateIsMoreTabMenuSelected(),this.updateHiddenIdPositiveTabIndex(this.getHiddenTabFocusTarget())}})}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find(t=>t.selected)}updateAriaControlsElements(){this.visibleTabsContainerElement&&this.visibleTabsContainerElement.querySelectorAll("md-tab").forEach(t=>{const e=this.getNormalizedTabId(t.id),i=this.tabPanelHash[e];i&&"ariaControlsElements"in t&&(t.ariaControlsElements=[i])}),this.hiddenTabsContainerElement&&this.hiddenTabsContainerElement.querySelectorAll("md-tab").forEach(t=>{const e=this.getNormalizedTabId(t.id),i=this.tabPanelHash[e];i&&"ariaControlsElements"in t&&(t.ariaControlsElements=[i])})}getHiddenTabFocusTarget(t){return t&&!t.disabled&&this.isTabInMoreMenu(t)?t:this.tabsFilteredAsHiddenList.find(t=>t.selected&&!t.disabled)||this.tabsFilteredAsHiddenList.find(t=>!t.disabled)}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,o;const s=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(o=e.getAttribute("name"))&&void 0!==o?o:"";return this.tabsOrderPrefsArray.indexOf(s)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return w(this,void 0,void 0,function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction,o=this.selectedIndex<0?0:this.selectedIndex;t.forEach((t,s)=>{const r=(0,a.O)("tabs"),n="tab_"+r,l="tab_panel_"+r;t.setAttribute("id",n),t.setAttribute("aria-controls",l),t.selected=o===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,t.size=this.newMomentum?this.size:void 0,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const d=e[s];d?(d.setAttribute("id",l),d.setAttribute("aria-labelledby",n),d.selected=o===s,t.disabled&&(d.hidden=!0,d.selected=!1)):t.disabled=!0});let s=o;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce((t,e)=>(t[e.id]=e,t),{}),this.tabsIdxHash=this.tabs.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabPanelHash=this.tabs.reduce((t,i,o)=>(e[o]&&(t[i.id]=e[o]),t),{})})}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?x:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?T:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?$:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?S:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t,e=!0){const i=this.tabsHash[this.getNormalizedTabId(t)];if(i&&!i.disabled){const t=this.tabsIdxHash[i.id];-1!==t&&this.updateSelectedTab(t,e);{const t=this.tabsCopyHash[this.getCopyTabId(i)];t&&e&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(this.getHiddenTabFocusTarget(i))}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const o=this.tabsHash[this.getNormalizedTabId(t)];if(o&&!o.disabled&&("auto"===o.closable||"custom"===o.closable)){const o=this.tabsFilteredAsVisibleList.findIndex(e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter(e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t)),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(o)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex(t=>t.id===this.tabsFilteredAsVisibleList[i].id);this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find(e=>e.id===t.id)}updateSelectedTab(t,e=!0){const{tabs:i,panels:o}=this,s=this.tabs.findIndex(t=>t.hasAttribute("selected"));if(i&&o&&(this.setSelectedAttribute((0,r.Qx)(i,s),(0,r.Qx)(o,s),!1),this.setSelectedAttribute((0,r.Qx)(i,t),(0,r.Qx)(o,t),!0)),t>=0&&t<i.length){this.dispatchSelectedChangedEvent(t);const o=this.currentTabsLayout.findIndex(e=>e.id===i[t].id);this.changeSelectedTabIdx(o,e)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id;let o=e.findIndex(t=>t.id===i);-1===o&&(o=t);const s=[];e.forEach(t=>{s.push(t.name)}),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:o,tabsOrder:s},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t,e=!0){this.requestUpdate(),this.selected=t,this.updateComplete.then(()=>{var i,o;if(t<this.tabsFilteredAsVisibleList.length){if(e){const t=null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[this.selected];null==t||t.focus()}}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,i=null===(o=this.hiddenTabsContainerElement)||void 0===o?void 0:o.children[t];e&&this.moveFocusToTab(i)}const s=t-this.tabsFilteredAsVisibleList.length,r=this.tabsFilteredAsHiddenList[s];this.updateHiddenIdPositiveTabIndex(this.getHiddenTabFocusTarget(r))}),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,o;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const s=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<s;e++)if((null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,o,s;const r=this.getCurrentIndex(t),a=this.slotItem.assignedElements();let n=0;if(this.scrollArrow){e===k?n=0===r?a.length-1:r-1:e===A&&(n=r===a.length-1?0:r+1),this.moveFocusToTab(a[n]);const t=a[n],o=t.getBoundingClientRect(),s=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return s&&(o.left>=s.left&&o.right<=s.right&&o.top>=s.top&&o.bottom<=s.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,v.setTimeout)(()=>this.moveFocusToTab(a[n]),0)}const l=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children,d=null!==(s=null==l?void 0:l.length)&&void 0!==s?s:0;l&&0!==d&&(e===k?n=0===r?d-1:r-1:e===A?n=r===d-1?0:r+1:e===L&&(n=this.selected>=d?0:this.selected),this.moveFocusToTab(l[n]))}moveFocusToTab(t){(0,v.setTimeout)(()=>null==t?void 0:t.focus(),0)}handleOverlayClose(){(0,v.setTimeout)(()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)},0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,s,r,a,n,l,d,h;const p=t.target;if(t.target!=this&&!this.tabs.find(t=>t.id===(null==p?void 0:p.id)))return!1;let c;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?c=t.composedPath()[0].id:t.originalTarget&&(c=t.originalTarget.id),!c)return;const u=this.getNormalizedTabId(c);this.dispatchKeydownEvent(t,u);const m=t.code,{shiftKey:b}=t,v=!!this.isMoreTabMenuVisible&&u===C,y=v&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(u)],g=!this.isMoreTabMenuVisible||y&&this.tabsVisibleIdxHash[y.id]>-1,f=!!this.isMoreTabMenuVisible&&y&&this.tabsHiddenIdxHash[y.id]>-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1;switch(m){case o.Uz.Tab:v&&!this.isMoreTabMenuOpen&&b&&(t.preventDefault(),this.moveFocusToAdjacentTab(c,L));break;case o.Uz.End:v||(g?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(s=this.tabsFilteredAsVisibleList)||void 0===s?void 0:s.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(a=this.tabsFilteredAsHiddenList)||void 0===a?void 0:a.length)-1])));break;case o.Uz.Home:g?(t.preventDefault(),this.moveFocusToTab(null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case o.Uz.ArrowLeft:v||(g||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(c,this.isRtl?A:k));break;case o.Uz.ArrowRight:v||(g||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(c,this.isRtl?k:A));break;case o.Uz.ArrowUp:if(v);else if(g&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?w:this.selected-1);else if(f&&y){t.preventDefault(),t.stopPropagation();const e=this.tabsHiddenIdxHash[y.id],i=this.tabsFilteredAsHiddenList.length,o=(e-1+i)%i,s=this.tabsFilteredAsHiddenList[o];this.updateHiddenIdPositiveTabIndex(s),this.moveFocusToTab(null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[o])}break;case o.Uz.ArrowDown:if(v);else if(g&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===w?0:this.selected+1);else if(f&&y){t.preventDefault(),t.stopPropagation();const e=(this.tabsHiddenIdxHash[y.id]+1)%this.tabsFilteredAsHiddenList.length,i=this.tabsFilteredAsHiddenList[e];this.updateHiddenIdPositiveTabIndex(i),this.moveFocusToTab(null===(h=this.hiddenTabsContainerElement)||void 0===h?void 0:h.children[e])}break;case o.Uz.Enter:case o.Uz.NumpadEnter:case o.Uz.Space:if(v)this.updateHiddenIdPositiveTabIndex(this.getHiddenTabFocusTarget());else if(y&&!y.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(y.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e),f&&this.handleOverlayClose())}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map(t=>t.name)}setupMoreTab(){return w(this,void 0,void 0,function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))})}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=b.default.create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=b.default.create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id,!1)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return w(this,void 0,void 0,function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()})}willUpdate(t){var e,i;if(null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("selectedIndex")&&(this.selected=this.selectedIndex),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(i=this.tabsCopyHiddenListElements)||void 0===i?void 0:i.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce((t,e)=>(t[e.id]=e,t),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce((t,e)=>t+e,0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}}updated(t){super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex,!1),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged(),this.isMoreTabMenuVisible&&this.moreTabMenuElement&&(this.moreTabMenuElement.tabIndex=0),(this.visibleTabsContainerElement||this.hiddenTabsContainerElement)&&requestAnimationFrame(()=>this.updateAriaControlsElements())}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,v.setTimeout)(()=>this.updateArrowsVisibility(),300)}get moreMenuButtonTemplate(){return l.html`
|
|
1952
1976
|
<md-tab
|
|
1953
1977
|
slot="menu-trigger"
|
|
1954
1978
|
id="${C}"
|
|
@@ -2245,7 +2269,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
2245
2269
|
<slot @slotchange=${this.handleSlotChanged}></slot>
|
|
2246
2270
|
</div>
|
|
2247
2271
|
</div>
|
|
2248
|
-
`}static get styles(){return[l.A,c.A]}};u([(0,h.property)({type:String})],e.prototype,"message",void 0),u([(0,h.property)({type:String,reflect:!0})],e.prototype,"placement",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"opened",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"slot-to-tooltip"})],e.prototype,"slotToTooltip",void 0),u([(0,h.query)(".md-tooltip__popper")],e.prototype,"popper",void 0),u([(0,h.query)(".md-tooltip__reference")],e.prototype,"reference",void 0),e=u([(0,a.w)("md-tooltip")],e),t.ELEMENT=e}(o||(o={}))},2900(t,e,i){var o,s,r,a;i.d(e,{R5:()=>s,Uz:()=>o,iw:()=>a}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(o||(o={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(s||(s={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(a||(a={}))},
|
|
2272
|
+
`}static get styles(){return[l.A,c.A]}};u([(0,h.property)({type:String})],e.prototype,"message",void 0),u([(0,h.property)({type:String,reflect:!0})],e.prototype,"placement",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"opened",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"slot-to-tooltip"})],e.prototype,"slotToTooltip",void 0),u([(0,h.query)(".md-tooltip__popper")],e.prototype,"popper",void 0),u([(0,h.query)(".md-tooltip__reference")],e.prototype,"reference",void 0),e=u([(0,a.w)("md-tooltip")],e),t.ELEMENT=e}(o||(o={}))},2900(t,e,i){var o,s,r,a;i.d(e,{R5:()=>s,Uz:()=>o,iw:()=>a}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(o||(o={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(s||(s={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(a||(a={}))},371(t,e,i){i.d(e,{nD:()=>o.n,As:()=>s.A,uo:()=>r.uo,Lj:()=>a.L,Fc:()=>l.F,ZT:()=>n.ZT,Fu:()=>mt,Y$:()=>d.Y$,eu:()=>h.e,uW:()=>p.uW,Ex:()=>u.E,Qp:()=>x.Q,$n:()=>S.$n,e2:()=>$.e,Zp:()=>L.Z,pI:()=>k.p,h$:()=>A.h,cM:()=>I.c,Sc:()=>M.S,$Q:()=>D.$,vu:()=>O.v,iU:()=>_.i,xw:()=>R.x,BY:()=>F,a3:()=>N.a,Xz:()=>c.X,YQ:()=>V.Y,lr:()=>q.l,$5:()=>K.$,XE:()=>W.X,j_:()=>Y.j,xx:()=>G.x,Ur:()=>U.U,K7:()=>H.K,sx:()=>X.s,T_:()=>Z.T,ms:()=>Q.m,I:()=>J.I,NG:()=>tt.N,Uz:()=>rt,gQ:()=>at.g,oH:()=>nt.o,lV:()=>bt.l,Yp:()=>dt,MJ:()=>ht,gE:()=>pt,IJ:()=>vt.I,$9:()=>yt.$,In:()=>f.In,pd:()=>ft.pd,bT:()=>gt.b,JU:()=>wt.J,N_:()=>Ct.N_,B8:()=>Lt.B,ck:()=>It.c,Eu:()=>$t,Pj:()=>kt,Rh:()=>Mt.R,A1:()=>Dt.A,DE:()=>Rt.W,Dr:()=>_t.D,W1:()=>Ot.W1,aF:()=>Pt.aF,vd:()=>T,dK:()=>Bt.d,LR:()=>zt.L,AM:()=>Ft.A,IE:()=>Ft.I,Cq:()=>jt.C,z2:()=>Nt.z,pO:()=>Vt.s,z6:()=>Ut.z,EA:()=>qt,Ap:()=>Wt.A,y$:()=>Yt.y,oz:()=>Zt.o,Kp:()=>Qt.K,XI:()=>Xt.X,v1:()=>Gt.v,tU:()=>Jt.t,L2:()=>te.L,Sx:()=>ee.Sx,ew:()=>re.N_,AG:()=>ie.AG,jF:()=>oe.j,m_:()=>et.m_,k0:()=>ct,Ou:()=>se.O,IB:()=>re.IB,vz:()=>re.vz});var o=i(3701),s=i(4466),r=i(2160),a=i(2170),n=i(9144),l=i(5925),d=i(3764),h=i(2245),p=i(4470),c=i(9124),u=i(7901),m=i(7704),b=i(2927),v=i(8899),y=i(4955),g=i(3517),f=i(1821),w=i(4958);const C=b.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var E=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};let T=class extends b.LitElement{constructor(){super(...arguments),this.variant=w.zY.VARIANT,this.maxCounter=w.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[C]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>w.zY.MAX_COUNTER_LIMIT||e>w.zY.MAX_COUNTER_LIMIT?`${w.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return b.html`
|
|
2249
2273
|
<md-icon
|
|
2250
2274
|
class="md-notification-badge-icon ${(0,y.classMap)({"md-notification-badge-overlay":this.overlay,[`md-notification-badge-icon__${e}`]:!0})}"
|
|
2251
2275
|
iconSet="momentumDesign"
|
|
@@ -2258,7 +2282,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
2258
2282
|
<div class="md-notification-badge-text ${(0,y.classMap)({"md-notification-badge-overlay":this.overlay})}">
|
|
2259
2283
|
${this.getCounterText(this.maxCounter,this.counter)}
|
|
2260
2284
|
</div>
|
|
2261
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(w.M_).includes(this.variant)&&(this.variant=w.zY.VARIANT);const{iconName:t,type:e,variant:i}=this;switch(e){case w.ZE.ICON:return this.getBadgeIcon(t||"",i);case w.ZE.COUNTER:return this.getBadgeCounterText();case w.ZE.SUCCESS:return this.getBadgeIcon(w.UZ.SUCCESS_ICON_NAME,w.su.SUCCESS);case w.ZE.WARNING:return this.getBadgeIcon(w.UZ.WARNING_ICON_NAME,w.su.WARNING);case w.ZE.ERROR:return this.getBadgeIcon(w.UZ.ERROR_ICON_NAME,w.su.ERROR);case w.ZE.DOT:default:return this.type=w.ZE.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};E([(0,v.property)({type:String,reflect:!0})],T.prototype,"type",void 0),E([(0,v.property)({type:String,reflect:!0})],T.prototype,"variant",void 0),E([(0,v.property)({type:Number})],T.prototype,"counter",void 0),E([(0,v.property)({type:Number,attribute:"max-counter",reflect:!0})],T.prototype,"maxCounter",void 0),E([(0,v.property)({type:Boolean})],T.prototype,"overlay",void 0),E([(0,v.property)({type:String,attribute:"icon-name"})],T.prototype,"iconName",void 0),E([(0,v.property)({type:String,attribute:"aria-label"})],T.prototype,"ariaLabel",void 0),T=E([(0,m.wW)("md-notification-badge")],T);var x=i(3445),$=i(2890),S=i(5983),k=i(7224),A=i(7540),L=i(1499),I=i(5558),M=i(8381),D=i(4870),O=i(2583),R=i(7744),_=i(1869),P=i(4084),B=i(6579);const z=b.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var j
|
|
2285
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(w.M_).includes(this.variant)&&(this.variant=w.zY.VARIANT);const{iconName:t,type:e,variant:i}=this;switch(e){case w.ZE.ICON:return this.getBadgeIcon(t||"",i);case w.ZE.COUNTER:return this.getBadgeCounterText();case w.ZE.SUCCESS:return this.getBadgeIcon(w.UZ.SUCCESS_ICON_NAME,w.su.SUCCESS);case w.ZE.WARNING:return this.getBadgeIcon(w.UZ.WARNING_ICON_NAME,w.su.WARNING);case w.ZE.ERROR:return this.getBadgeIcon(w.UZ.ERROR_ICON_NAME,w.su.ERROR);case w.ZE.DOT:default:return this.type=w.ZE.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};E([(0,v.property)({type:String,reflect:!0})],T.prototype,"type",void 0),E([(0,v.property)({type:String,reflect:!0})],T.prototype,"variant",void 0),E([(0,v.property)({type:Number})],T.prototype,"counter",void 0),E([(0,v.property)({type:Number,attribute:"max-counter",reflect:!0})],T.prototype,"maxCounter",void 0),E([(0,v.property)({type:Boolean})],T.prototype,"overlay",void 0),E([(0,v.property)({type:String,attribute:"icon-name"})],T.prototype,"iconName",void 0),E([(0,v.property)({type:String,attribute:"aria-label"})],T.prototype,"ariaLabel",void 0),T=E([(0,m.wW)("md-notification-badge")],T);var x=i(3445),$=i(2890),S=i(5983),k=i(7224),A=i(7540),L=i(1499),I=i(5558),M=i(8381),D=i(4870),O=i(2583),R=i(7744),_=i(1869),P=i(4084),B=i(6579);const z=b.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var F,j=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 b.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[P.A,z]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find(t=>"CODE"===t.tagName);if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find(t=>t);if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),B.default.highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,i=void 0,s=function*(){try{const{default:e}=yield import(`highlight.js/lib/languages/${t}`);B.default.registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((o=void 0)||(o=Promise))(function(t,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(a,n)}l((s=s.apply(e,i||[])).next())});var e,i,o,s}getAllAcceptTypes(){const t=B.default.listLanguages();return t.length?t.map(t=>B.default.getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return b.html`
|
|
2262
2286
|
<div class="md-code-editor" part="code-editor">
|
|
2263
2287
|
<div class="md-code-editor-header">
|
|
2264
2288
|
<div class="md-code-editor-name">
|
|
@@ -2291,7 +2315,7 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
2291
2315
|
</pre>
|
|
2292
2316
|
</div>
|
|
2293
2317
|
</div>
|
|
2294
|
-
`}};
|
|
2318
|
+
`}};j([(0,v.property)({type:String})],e.prototype,"copyLocalization",void 0),j([(0,v.property)({type:String})],e.prototype,"copiedLocalization",void 0),j([(0,v.property)({type:String})],e.prototype,"method",void 0),j([(0,v.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),j([(0,v.property)({type:String})],e.prototype,"url",void 0),j([(0,v.query)("input[type='file']")],e.prototype,"input",void 0),j([(0,v.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),j([(0,v.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),j([(0,v.state)()],e.prototype,"disableCopyButton",void 0),j([(0,v.state)()],e.prototype,"acceptTypes",void 0),j([(0,v.state)()],e.prototype,"copied",void 0),j([(0,v.queryAssignedNodes)({slot:"code-block"})],e.prototype,"slotNodes",void 0),j([(0,v.queryAssignedNodes)({slot:"code-url"})],e.prototype,"slotUrl",void 0),e=j([(0,m.wW)("md-code-editor")],e),t.ELEMENT=e}(F||(F={}));var N=i(2273),V=i(6709),U=i(6243),H=i(9597),q=i(8663),K=i(837),W=i(3639),Y=i(8371),G=i(801),X=i(8306),Z=i(5730),Q=i(621),J=i(9503),tt=i(23),et=i(9613),it=i(9609);const ot=b.css`:host{display:inline-flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var st=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};let rt=class extends b.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[ot]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return b.html`
|
|
2295
2319
|
<md-tooltip
|
|
2296
2320
|
message="${(0,g.ifDefined)(this.closeButtonAriaLabel)}"
|
|
2297
2321
|
?disabled=${!this.closeButtonAriaLabel}
|
|
@@ -2374,4 +2398,4 @@ import"@lit-labs/virtualizer";import{default as t}from"dompurify";import{AsYouTy
|
|
|
2374
2398
|
@click=${this.stopEventPropagation}
|
|
2375
2399
|
@keyup=${this.stopEventPropagation}
|
|
2376
2400
|
@keydown=${this.stopEventPropagation}
|
|
2377
|
-
></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,Tt.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Et.Uz.ArrowRight||t===Et.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,Tt.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!==Et.Uz.ArrowRight||this.expanded?t.key===Et.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}};St([(0,v.property)({type:String,reflect:!0})],e.prototype,"label",void 0),St([(0,v.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),St([(0,v.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),St([(0,v.property)({type:Boolean})],e.prototype,"expandable",void 0),St([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),St([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),St([(0,v.property)({type:String})],e.prototype,"variant",void 0),St([(0,v.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),St([(0,v.query)(".header")],e.prototype,"header",void 0),e=St([(0,it.w)("md-list-item-v2")],e),t.ELEMENT=e}($t||($t={}));var kt,At=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 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 $t.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Et.Uz.ArrowDown:return(e+1)%i;case Et.Uz.ArrowUp:return(e-1+i)%i;case Et.Uz.Home:return 0;case Et.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 xt}};At([(0,v.property)({type:String})],e.prototype,"gap",void 0),At([(0,v.property)({type:String})],e.prototype,"orientation",void 0),At([(0,v.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=At([(0,it.w)("md-list-v2")],e),t.ELEMENT=e}(kt||(kt={}));var Lt=i(6131),It=i(8552),Mt=i(1161),Dt=i(7030),Ot=i(708),Rt=i(4085),_t=i(5410),Pt=i(329),Bt=i(8751),zt=i(2455),jt=i(405),Ft=i(3477),Nt=i(2708),Vt=i(3949),Ut=i(8358);const Ht=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 qt,Kt=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 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[Ht]}};Kt([(0,v.property)({type:String})],e.prototype,"width",void 0),Kt([(0,v.property)({type:String})],e.prototype,"height",void 0),Kt([(0,v.property)({reflect:!0})],e.prototype,"variant",void 0),Kt([(0,v.property)({reflect:!0})],e.prototype,"animation",void 0),e=Kt([(0,it.w)("md-skeleton")],e),t.ELEMENT=e}(qt||(qt={}));var Wt=i(3773),Yt=i(9773),Gt=i(7936),Xt=i(3273),Zt=i(120),Qt=i(6056),Jt=i(8543),te=i(1479),ee=i(9114),ie=i(2218),oe=i(6328),se=i(7253),re=i(3876)},3876(t,e,i){i.d(e,{IB:()=>a,N_:()=>s,vz:()=>r});var o=i(4980);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)}},4098(t,e,i){var o,s;t.exports=(o={arrow:()=>n.arrow,autoUpdate:()=>n.autoUpdate,computePosition:()=>n.computePosition,flip:()=>n.flip,offset:()=>n.offset,shift:()=>n.shift,size:()=>n.size},s={},i.d(s,o),s)},4358(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},1660(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},4886(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},5109(t,e,i){var o,s;t.exports=(o={default:()=>p.default},s={},i.d(s,o),s)},6014(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},9500(t,e,i){var o,s;t.exports=(o={default:()=>u.default},s={},i.d(s,o),s)},3496(t,e,i){var o,s;t.exports=(o={default:()=>m.default},s={},i.d(s,o),s)},9644(t,e,i){var o,s;t.exports=(o={default:()=>b.default},s={},i.d(s,o),s)},9324(t,e,i){var o,s;t.exports=(o={default:()=>v.default},s={},i.d(s,o),s)},9520(t,e,i){var o,s;t.exports=(o={default:()=>y.default},s={},i.d(s,o),s)},6521(t,e,i){var o,s;t.exports=(o={default:()=>g.default},s={},i.d(s,o),s)},9709(t,e,i){var o,s;t.exports=(o={createPopper:()=>f.createPopper,defaultModifiers:()=>f.defaultModifiers},s={},i.d(s,o),s)},526(t,e,i){var o,s;t.exports=(o={customArray:()=>w.customArray},s={},i.d(s,o),s)},457(t,e,i){var o,s;t.exports=(o={findFlagUrlByIso2Code:()=>C.findFlagUrlByIso2Code},s={},i.d(s,o),s)},6579(t,e,i){var o,s;t.exports=(o={default:()=>E.default},s={},i.d(s,o),s)},2927(t,e,i){var o,s;t.exports=(o={LitElement:()=>T.LitElement,css:()=>T.css,html:()=>T.html,nothing:()=>T.nothing},s={},i.d(s,o),s)},8899(t,e,i){var o,s;t.exports=(o={property:()=>x.property,query:()=>x.query,queryAll:()=>x.queryAll,queryAssignedNodes:()=>x.queryAssignedNodes,state:()=>x.state},s={},i.d(s,o),s)},4955(t,e,i){var o,s;t.exports=(o={classMap:()=>$.classMap},s={},i.d(s,o),s)},3517(t,e,i){var o,s;t.exports=(o={ifDefined:()=>S.ifDefined},s={},i.d(s,o),s)},2577(t,e,i){var o,s;t.exports=(o={repeat:()=>k.repeat},s={},i.d(s,o),s)},1156(t,e,i){var o,s;t.exports=(o={styleMap:()=>A.styleMap},s={},i.d(s,o),s)},7638(t,e,i){var o,s;t.exports=(o={unsafeHTML:()=>L.unsafeHTML},s={},i.d(s,o),s)},1666(t,e,i){var o,s;t.exports=(o={until:()=>I.until},s={},i.d(s,o),s)},9642(t,e,i){var o,s;t.exports=(o={DateTime:()=>M.DateTime,Duration:()=>M.Duration},s={},i.d(s,o),s)},4980(t,e,i){var o,s;t.exports=(o={action:()=>D.action,computed:()=>D.computed,makeObservable:()=>D.makeObservable,observable:()=>D.observable},s={},i.d(s,o),s)},6897(t,e,i){var o,s;t.exports=(o={default:()=>O.default},s={},i.d(s,o),s)},6933(t,e,i){var o,s;t.exports=(o={default:()=>R.default},s={},i.d(s,o),s)}},z={};function j(t){var e=z[t];if(void 0!==e)return e.exports;var i=z[t]={exports:{}};return B[t].call(i.exports,i,i.exports,j),i.exports}j.m=B,_=[],j.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<_.length;l++){for(var[e,i,o]=_[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(j.O).every(t=>j.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){_.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=_.length;l>0&&_[l-1][2]>o;l--)_[l]=_[l-1];_[l]=[e,i,o]},j.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return j.d(e,{a:e}),e},j.d=(t,e)=>{for(var i in e)j.o(e,i)&&!j.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),j.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{j as __webpack_require__};P={502:0,519:0,555:0,561:0,708:0,1037:0,1266:0,1459:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,1821:0,2050:0,2105:0,2139:0,2169:0,2330:0,2434:0,2779:0,2781:0,2900:0,2909:0,2942:0,3079:0,3413:0,3539:0,3747:0,3876:0,3938:0,3943: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,7927:0,8111:0,8115:0,8138:0,8180:0,8220:0,8334:0,8442:0,8510:0,8654:0,9189:0,9237:0,9613:0,9669:0},j.C=t=>{var e,i,{__webpack_esm_ids__:o,__webpack_esm_modules__:s,__webpack_esm_runtime__:r}=t,a=0;for(e in s)j.o(s,e)&&(j.m[e]=s[e]);for(r&&r(j);a<o.length;a++)i=o[a],j.o(P,i)&&P[i]&&P[i][0](),P[o[a]]=0;j.O()},j.O.j=t=>0===P[t];import*as F from"./7103.js";j.C(F);import*as N from"./9609.js";j.C(N);import*as V from"./4084.js";j.C(V);import*as U from"./3305.js";j.C(U);import*as H from"./4739.js";j.C(H);import*as q from"./9488.js";j.C(q);import*as K from"./2364.js";j.C(K);import*as W from"./8441.js";j.C(W);import*as Y from"./2797.js";j.C(Y);import*as G from"./4700.js";j.C(G);import*as X from"./3970.js";j.C(X);import*as Z from"./9336.js";j.C(Z);import*as Q from"./9146.js";j.C(Q);import*as J from"./6343.js";j.C(J);import*as tt from"./3842.js";j.C(tt);import*as et from"./7162.js";j.C(et);import*as it from"./7582.js";j.C(it);import*as ot from"./6325.js";j.C(ot);import*as st from"./4449.js";j.C(st);import*as rt from"./1392.js";j.C(rt);import*as at from"./2492.js";j.C(at);import*as nt from"./4047.js";j.C(nt);import*as lt from"./1618.js";j.C(lt);import*as dt from"./3331.js";j.C(dt);import*as ht from"./3272.js";j.C(ht);import*as pt from"./740.js";j.C(pt);import*as ct from"./93.js";j.C(ct);import*as ut from"./3543.js";j.C(ut);import*as mt from"./878.js";j.C(mt);import*as bt from"./7231.js";j.C(bt);import*as vt from"./5846.js";j.C(vt);import*as yt from"./742.js";j.C(yt);import*as gt from"./4973.js";j.C(gt);import*as ft from"./476.js";j.C(ft);import*as wt from"./6631.js";j.C(wt);import*as Ct from"./8373.js";j.C(Ct);import*as Et from"./7262.js";j.C(Et);import*as Tt from"./6816.js";j.C(Tt);import*as xt from"./3051.js";j.C(xt);import*as $t from"./9431.js";j.C($t);import*as St from"./6573.js";j.C(St);import*as kt from"./2273.js";j.C(kt);import*as At from"./405.js";j.C(At);import*as Lt from"./8663.js";j.C(Lt);import*as It from"./9558.js";j.C(It);import*as Mt from"./2245.js";j.C(Mt);import*as Dt from"./861.js";j.C(Dt);import*as Ot from"./5958.js";j.C(Ot);import*as Rt from"./6005.js";j.C(Rt);import*as _t from"./837.js";j.C(_t);import*as Pt from"./8687.js";j.C(Pt);import*as Bt from"./8881.js";j.C(Bt);import*as zt from"./6131.js";j.C(zt);import*as jt from"./5057.js";j.C(jt);import*as Ft from"./6020.js";j.C(Ft);import*as Nt from"./6709.js";j.C(Nt);import*as Vt from"./7901.js";j.C(Vt);import*as Ut from"./1816.js";j.C(Ut);import*as Ht from"./887.js";j.C(Ht);import*as qt from"./2708.js";j.C(qt);import*as Kt from"./4839.js";j.C(Kt);import*as Wt from"./5410.js";j.C(Wt);import*as Yt from"./1161.js";j.C(Yt);import*as Gt from"./226.js";j.C(Gt);import*as Xt from"./23.js";j.C(Xt);import*as Zt from"./4750.js";j.C(Zt);import*as Qt from"./2154.js";j.C(Qt);import*as Jt from"./9404.js";j.C(Jt);import*as te from"./2297.js";j.C(te);import*as ee from"./7155.js";j.C(ee);import*as ie from"./8552.js";j.C(ie);import*as oe from"./3477.js";j.C(oe);import*as se from"./2670.js";j.C(se);import*as re from"./513.js";j.C(re);import*as ae from"./5525.js";j.C(ae);import*as ne from"./752.js";j.C(ne);import*as le from"./3182.js";j.C(le);import*as de from"./9940.js";j.C(de);import*as he from"./4242.js";j.C(he);import*as pe from"./1928.js";j.C(pe);import*as ce from"./9956.js";j.C(ce);import*as ue from"./2927.js";j.C(ue);import*as me from"./3013.js";j.C(me);import*as be from"./9316.js";j.C(be);import*as ve from"./6429.js";j.C(ve);import*as ye from"./7911.js";j.C(ye);import*as ge from"./2991.js";j.C(ge);import*as fe from"./9485.js";j.C(fe);import*as we from"./6843.js";j.C(we);import*as Ce from"./3241.js";j.C(Ce);var Ee=j.O(void 0,[7103,9609,4084,3305,4739,9488,2364,8441,2797,4700,3970,9336,9146,6343,3842,7162,7582,6325,4449,1392,2492,4047,1618,3331,3272,740,93,3543,878,7231,5846,742,4973,476,6631,8373,7262,6816,3051,9431,6573,2273,405,8663,9558,2245,861,5958,6005,837,8687,8881,6131,5057,6020,6709,7901,1816,887,2708,4839,5410,1161,226,23,4750,2154,9404,2297,7155,8552,3477,2670,513,5525,752,3182,9940,4242,1928,9956,2927,3013,9316,6429,7911,2991,9485,6843,3241],()=>j(7495));const Te=(Ee=j.O(Ee)).nD,xe=Ee.As,$e=Ee.uo,Se=Ee.Lj,ke=Ee.Fc,Ae=Ee.ZT,Le=Ee.Fu,Ie=Ee.Y$,Me=Ee.eu,De=Ee.uW,Oe=Ee.Ex,Re=Ee.Qp,_e=Ee.$n,Pe=Ee.e2,Be=Ee.Zp,ze=Ee.pI,je=Ee.h$,Fe=Ee.cM,Ne=Ee.Sc,Ve=Ee.$Q,Ue=Ee.vu,He=Ee.iU,qe=Ee.xw,Ke=Ee.BY,We=Ee.a3,Ye=Ee.Xz,Ge=Ee.YQ,Xe=Ee.lr,Ze=Ee.$5,Qe=Ee.XE,Je=Ee.j_,ti=Ee.xx,ei=Ee.Ur,ii=Ee.K7,oi=Ee.sx,si=Ee.T_,ri=Ee.ms,ai=Ee.I,ni=Ee.NG,li=Ee.Uz,di=Ee.gQ,hi=Ee.oH,pi=Ee.lV,ci=Ee.Yp,ui=Ee.MJ,mi=Ee.gE,bi=Ee.IJ,vi=Ee.$9,yi=Ee.In,gi=Ee.pd,fi=Ee.bT,wi=Ee.JU,Ci=Ee.N_,Ei=Ee.B8,Ti=Ee.ck,xi=Ee.Eu,$i=Ee.Pj,Si=Ee.Rh,ki=Ee.A1,Ai=Ee.DE,Li=Ee.Dr,Ii=Ee.W1,Mi=Ee.aF,Di=Ee.vd,Oi=Ee.dK,Ri=Ee.LR,_i=Ee.AM,Pi=Ee.IE,Bi=Ee.Cq,zi=Ee.z2,ji=Ee.pO,Fi=Ee.z6,Ni=Ee.EA,Vi=Ee.Ap,Ui=Ee.y$,Hi=Ee.oz,qi=Ee.Kp,Ki=Ee.XI,Wi=Ee.v1,Yi=Ee.tU,Gi=Ee.L2,Xi=Ee.Sx,Zi=Ee.ew,Qi=Ee.AG,Ji=Ee.jF,to=Ee.m_,eo=Ee.k0,io=Ee.Ou,oo=Ee.IB,so=Ee.vz;export{Te as Accordion,xe as AccordionItem,$e as ActivityButton,Se as AdvanceList,ke as Alert,Ae as AlertBanner,Le as ArrayValidators,Ie as AudioPlayer,Me as Avatar,De as AvatarType,Oe as Badge,Re as Breadcrumb,_e as Button,Pe as ButtonGroup,Be as Card,ze as CardAi,je as CardV2,Fe as ChatMessage,Ne as Checkbox,Ve as CheckboxGroup,Ue as Chip,He as Coachmark,qe as CoachmarkPopover,Ke as CodeEditor,We as ComboBox,Ye as CompositeAvatar,Ge as CountryCodePicker,Xe as DatePicker,Ze as DatePickerCalendar,Qe as DatePickerDay,Je as DatePickerMonth,ti as DatePickerWeek,ei as DateRangePicker,ii as DateTimePicker,oi as Draggable,si as DraggableItem,ri as Dropdown,ai as EditableTextfield,ni as Favorite,li as FloatingButtonBar,di as FloatingMinimizedModal,hi as FloatingModal,pi as Form,ci as FormArray,ui as FormControl,mi as FormGroup,bi as Grabber,vi as HelpText,yi as Icon,gi as Input,fi as InputFile,wi as Label,Ci as Link,Ei as List,Ti as ListItem,xi as ListItemV2,$i as ListV2,Si as Loading,ki as MeetingAlert,Ai as Menu,Li as MenuItem,Ii as MenuOverlay,Mi as Modal,Di as NotificationBadge,Oi as Pagination,Ri as PhoneInput,_i as Popover,Pi as PopoverController,Bi as Presence,zi as ProgressBar,ji as Radio,Fi as RadioGroup,Ni as Skeleton,Vi as Slider,Ui as Spinner,Hi as Tab,qi as TabPanel,Ki as Table,Wi as TableAdvanced,Yi as Tabs,Gi as TaskItem,Xi as Theme,Zi as ThemeManager,Qi as TimePicker,Ji as ToggleSwitch,to as Tooltip,eo as Validators,io as iconUrlManager,oo as registerThemeManagerGlobally,so as themeManager};
|
|
2401
|
+
></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,Tt.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Et.Uz.ArrowRight||t===Et.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,Tt.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!==Et.Uz.ArrowRight||this.expanded?t.key===Et.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}};St([(0,v.property)({type:String,reflect:!0})],e.prototype,"label",void 0),St([(0,v.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),St([(0,v.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),St([(0,v.property)({type:Boolean})],e.prototype,"expandable",void 0),St([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),St([(0,v.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),St([(0,v.property)({type:String})],e.prototype,"variant",void 0),St([(0,v.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),St([(0,v.query)(".header")],e.prototype,"header",void 0),e=St([(0,it.w)("md-list-item-v2")],e),t.ELEMENT=e}($t||($t={}));var kt,At=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 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 $t.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Et.Uz.ArrowDown:return(e+1)%i;case Et.Uz.ArrowUp:return(e-1+i)%i;case Et.Uz.Home:return 0;case Et.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 xt}};At([(0,v.property)({type:String})],e.prototype,"gap",void 0),At([(0,v.property)({type:String})],e.prototype,"orientation",void 0),At([(0,v.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=At([(0,it.w)("md-list-v2")],e),t.ELEMENT=e}(kt||(kt={}));var Lt=i(6131),It=i(8552),Mt=i(1161),Dt=i(7030),Ot=i(708),Rt=i(4085),_t=i(5410),Pt=i(329),Bt=i(8751),zt=i(2455),Ft=i(405),jt=i(3477),Nt=i(2708),Vt=i(3949),Ut=i(8358);const Ht=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 qt,Kt=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 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[Ht]}};Kt([(0,v.property)({type:String})],e.prototype,"width",void 0),Kt([(0,v.property)({type:String})],e.prototype,"height",void 0),Kt([(0,v.property)({reflect:!0})],e.prototype,"variant",void 0),Kt([(0,v.property)({reflect:!0})],e.prototype,"animation",void 0),e=Kt([(0,it.w)("md-skeleton")],e),t.ELEMENT=e}(qt||(qt={}));var Wt=i(3773),Yt=i(9773),Gt=i(7936),Xt=i(3273),Zt=i(120),Qt=i(6056),Jt=i(8543),te=i(1479),ee=i(9114),ie=i(2218),oe=i(6328),se=i(7253),re=i(3876)},3876(t,e,i){i.d(e,{IB:()=>a,N_:()=>s,vz:()=>r});var o=i(4980);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)}},4098(t,e,i){var o,s;t.exports=(o={arrow:()=>n.arrow,autoUpdate:()=>n.autoUpdate,computePosition:()=>n.computePosition,flip:()=>n.flip,offset:()=>n.offset,shift:()=>n.shift,size:()=>n.size},s={},i.d(s,o),s)},4358(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},1660(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},4886(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},5109(t,e,i){var o,s;t.exports=(o={default:()=>p.default},s={},i.d(s,o),s)},6014(t,e,i){var o;t.exports=(o={},i.d(o,{}),o)},9500(t,e,i){var o,s;t.exports=(o={default:()=>u.default},s={},i.d(s,o),s)},3496(t,e,i){var o,s;t.exports=(o={default:()=>m.default},s={},i.d(s,o),s)},9644(t,e,i){var o,s;t.exports=(o={default:()=>b.default},s={},i.d(s,o),s)},9324(t,e,i){var o,s;t.exports=(o={default:()=>v.default},s={},i.d(s,o),s)},9520(t,e,i){var o,s;t.exports=(o={default:()=>y.default},s={},i.d(s,o),s)},6521(t,e,i){var o,s;t.exports=(o={default:()=>g.default},s={},i.d(s,o),s)},9709(t,e,i){var o,s;t.exports=(o={createPopper:()=>f.createPopper,defaultModifiers:()=>f.defaultModifiers},s={},i.d(s,o),s)},526(t,e,i){var o,s;t.exports=(o={customArray:()=>w.customArray},s={},i.d(s,o),s)},457(t,e,i){var o,s;t.exports=(o={findFlagUrlByIso2Code:()=>C.findFlagUrlByIso2Code},s={},i.d(s,o),s)},6579(t,e,i){var o,s;t.exports=(o={default:()=>E.default},s={},i.d(s,o),s)},2927(t,e,i){var o,s;t.exports=(o={LitElement:()=>T.LitElement,css:()=>T.css,html:()=>T.html,nothing:()=>T.nothing},s={},i.d(s,o),s)},8899(t,e,i){var o,s;t.exports=(o={property:()=>x.property,query:()=>x.query,queryAll:()=>x.queryAll,queryAssignedNodes:()=>x.queryAssignedNodes,state:()=>x.state},s={},i.d(s,o),s)},4955(t,e,i){var o,s;t.exports=(o={classMap:()=>$.classMap},s={},i.d(s,o),s)},3517(t,e,i){var o,s;t.exports=(o={ifDefined:()=>S.ifDefined},s={},i.d(s,o),s)},2577(t,e,i){var o,s;t.exports=(o={repeat:()=>k.repeat},s={},i.d(s,o),s)},1156(t,e,i){var o,s;t.exports=(o={styleMap:()=>A.styleMap},s={},i.d(s,o),s)},7638(t,e,i){var o,s;t.exports=(o={unsafeHTML:()=>L.unsafeHTML},s={},i.d(s,o),s)},1666(t,e,i){var o,s;t.exports=(o={until:()=>I.until},s={},i.d(s,o),s)},9642(t,e,i){var o,s;t.exports=(o={DateTime:()=>M.DateTime,Duration:()=>M.Duration},s={},i.d(s,o),s)},4980(t,e,i){var o,s;t.exports=(o={action:()=>D.action,computed:()=>D.computed,makeObservable:()=>D.makeObservable,observable:()=>D.observable},s={},i.d(s,o),s)},6897(t,e,i){var o,s;t.exports=(o={default:()=>O.default},s={},i.d(s,o),s)},6933(t,e,i){var o,s;t.exports=(o={default:()=>R.default},s={},i.d(s,o),s)}},z={};function F(t){var e=z[t];if(void 0!==e)return e.exports;var i=z[t]={exports:{}};return B[t].call(i.exports,i,i.exports,F),i.exports}F.m=B,_=[],F.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<_.length;l++){for(var[e,i,o]=_[l],r=!0,a=0;a<e.length;a++)(!1&o||s>=o)&&Object.keys(F.O).every(t=>F.O[t](e[a]))?e.splice(a--,1):(r=!1,o<s&&(s=o));if(r){_.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}o=o||0;for(var l=_.length;l>0&&_[l-1][2]>o;l--)_[l]=_[l-1];_[l]=[e,i,o]},F.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return F.d(e,{a:e}),e},F.d=(t,e)=>{for(var i in e)F.o(e,i)&&!F.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},F.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),F.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{F as __webpack_require__};P={502:0,519:0,555:0,561:0,708:0,1037:0,1266:0,1459:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,1821:0,2050:0,2105:0,2139:0,2169:0,2330:0,2434:0,2779:0,2781:0,2900:0,2909:0,2942:0,3079:0,3413:0,3539:0,3747:0,3876:0,3938:0,3943: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,7927:0,8111:0,8115:0,8138:0,8180:0,8220:0,8334:0,8442:0,8510:0,8654:0,9189:0,9237:0,9613:0,9669:0},F.C=t=>{var e,i,{__webpack_esm_ids__:o,__webpack_esm_modules__:s,__webpack_esm_runtime__:r}=t,a=0;for(e in s)F.o(s,e)&&(F.m[e]=s[e]);for(r&&r(F);a<o.length;a++)i=o[a],F.o(P,i)&&P[i]&&P[i][0](),P[o[a]]=0;F.O()},F.O.j=t=>0===P[t];import*as j from"./7103.js";F.C(j);import*as N from"./9609.js";F.C(N);import*as V from"./4084.js";F.C(V);import*as U from"./3305.js";F.C(U);import*as H from"./4739.js";F.C(H);import*as q from"./9488.js";F.C(q);import*as K from"./2364.js";F.C(K);import*as W from"./8441.js";F.C(W);import*as Y from"./2797.js";F.C(Y);import*as G from"./4700.js";F.C(G);import*as X from"./3970.js";F.C(X);import*as Z from"./9336.js";F.C(Z);import*as Q from"./9146.js";F.C(Q);import*as J from"./6343.js";F.C(J);import*as tt from"./3842.js";F.C(tt);import*as et from"./7162.js";F.C(et);import*as it from"./7582.js";F.C(it);import*as ot from"./6325.js";F.C(ot);import*as st from"./4449.js";F.C(st);import*as rt from"./1392.js";F.C(rt);import*as at from"./2492.js";F.C(at);import*as nt from"./4047.js";F.C(nt);import*as lt from"./1618.js";F.C(lt);import*as dt from"./3331.js";F.C(dt);import*as ht from"./3272.js";F.C(ht);import*as pt from"./740.js";F.C(pt);import*as ct from"./93.js";F.C(ct);import*as ut from"./3543.js";F.C(ut);import*as mt from"./878.js";F.C(mt);import*as bt from"./7231.js";F.C(bt);import*as vt from"./5846.js";F.C(vt);import*as yt from"./742.js";F.C(yt);import*as gt from"./4973.js";F.C(gt);import*as ft from"./476.js";F.C(ft);import*as wt from"./6631.js";F.C(wt);import*as Ct from"./8373.js";F.C(Ct);import*as Et from"./7262.js";F.C(Et);import*as Tt from"./6816.js";F.C(Tt);import*as xt from"./3051.js";F.C(xt);import*as $t from"./9431.js";F.C($t);import*as St from"./6573.js";F.C(St);import*as kt from"./2273.js";F.C(kt);import*as At from"./405.js";F.C(At);import*as Lt from"./8663.js";F.C(Lt);import*as It from"./9558.js";F.C(It);import*as Mt from"./2245.js";F.C(Mt);import*as Dt from"./861.js";F.C(Dt);import*as Ot from"./5958.js";F.C(Ot);import*as Rt from"./837.js";F.C(Rt);import*as _t from"./5057.js";F.C(_t);import*as Pt from"./6005.js";F.C(Pt);import*as Bt from"./8687.js";F.C(Bt);import*as zt from"./8881.js";F.C(zt);import*as Ft from"./6131.js";F.C(Ft);import*as jt from"./6020.js";F.C(jt);import*as Nt from"./6709.js";F.C(Nt);import*as Vt from"./7901.js";F.C(Vt);import*as Ut from"./1816.js";F.C(Ut);import*as Ht from"./887.js";F.C(Ht);import*as qt from"./2708.js";F.C(qt);import*as Kt from"./4839.js";F.C(Kt);import*as Wt from"./5410.js";F.C(Wt);import*as Yt from"./1161.js";F.C(Yt);import*as Gt from"./226.js";F.C(Gt);import*as Xt from"./23.js";F.C(Xt);import*as Zt from"./4750.js";F.C(Zt);import*as Qt from"./2154.js";F.C(Qt);import*as Jt from"./9404.js";F.C(Jt);import*as te from"./2297.js";F.C(te);import*as ee from"./7155.js";F.C(ee);import*as ie from"./8552.js";F.C(ie);import*as oe from"./3477.js";F.C(oe);import*as se from"./2670.js";F.C(se);import*as re from"./513.js";F.C(re);import*as ae from"./5525.js";F.C(ae);import*as ne from"./752.js";F.C(ne);import*as le from"./3182.js";F.C(le);import*as de from"./9940.js";F.C(de);import*as he from"./4242.js";F.C(he);import*as pe from"./1928.js";F.C(pe);import*as ce from"./9956.js";F.C(ce);import*as ue from"./2927.js";F.C(ue);import*as me from"./3013.js";F.C(me);import*as be from"./9316.js";F.C(be);import*as ve from"./6429.js";F.C(ve);import*as ye from"./7911.js";F.C(ye);import*as ge from"./2991.js";F.C(ge);import*as fe from"./9485.js";F.C(fe);import*as we from"./6843.js";F.C(we);import*as Ce from"./3241.js";F.C(Ce);var Ee=F.O(void 0,[7103,9609,4084,3305,4739,9488,2364,8441,2797,4700,3970,9336,9146,6343,3842,7162,7582,6325,4449,1392,2492,4047,1618,3331,3272,740,93,3543,878,7231,5846,742,4973,476,6631,8373,7262,6816,3051,9431,6573,2273,405,8663,9558,2245,861,5958,837,5057,6005,8687,8881,6131,6020,6709,7901,1816,887,2708,4839,5410,1161,226,23,4750,2154,9404,2297,7155,8552,3477,2670,513,5525,752,3182,9940,4242,1928,9956,2927,3013,9316,6429,7911,2991,9485,6843,3241],()=>F(371));const Te=(Ee=F.O(Ee)).nD,xe=Ee.As,$e=Ee.uo,Se=Ee.Lj,ke=Ee.Fc,Ae=Ee.ZT,Le=Ee.Fu,Ie=Ee.Y$,Me=Ee.eu,De=Ee.uW,Oe=Ee.Ex,Re=Ee.Qp,_e=Ee.$n,Pe=Ee.e2,Be=Ee.Zp,ze=Ee.pI,Fe=Ee.h$,je=Ee.cM,Ne=Ee.Sc,Ve=Ee.$Q,Ue=Ee.vu,He=Ee.iU,qe=Ee.xw,Ke=Ee.BY,We=Ee.a3,Ye=Ee.Xz,Ge=Ee.YQ,Xe=Ee.lr,Ze=Ee.$5,Qe=Ee.XE,Je=Ee.j_,ti=Ee.xx,ei=Ee.Ur,ii=Ee.K7,oi=Ee.sx,si=Ee.T_,ri=Ee.ms,ai=Ee.I,ni=Ee.NG,li=Ee.Uz,di=Ee.gQ,hi=Ee.oH,pi=Ee.lV,ci=Ee.Yp,ui=Ee.MJ,mi=Ee.gE,bi=Ee.IJ,vi=Ee.$9,yi=Ee.In,gi=Ee.pd,fi=Ee.bT,wi=Ee.JU,Ci=Ee.N_,Ei=Ee.B8,Ti=Ee.ck,xi=Ee.Eu,$i=Ee.Pj,Si=Ee.Rh,ki=Ee.A1,Ai=Ee.DE,Li=Ee.Dr,Ii=Ee.W1,Mi=Ee.aF,Di=Ee.vd,Oi=Ee.dK,Ri=Ee.LR,_i=Ee.AM,Pi=Ee.IE,Bi=Ee.Cq,zi=Ee.z2,Fi=Ee.pO,ji=Ee.z6,Ni=Ee.EA,Vi=Ee.Ap,Ui=Ee.y$,Hi=Ee.oz,qi=Ee.Kp,Ki=Ee.XI,Wi=Ee.v1,Yi=Ee.tU,Gi=Ee.L2,Xi=Ee.Sx,Zi=Ee.ew,Qi=Ee.AG,Ji=Ee.jF,to=Ee.m_,eo=Ee.k0,io=Ee.Ou,oo=Ee.IB,so=Ee.vz;export{Te as Accordion,xe as AccordionItem,$e as ActivityButton,Se as AdvanceList,ke as Alert,Ae as AlertBanner,Le as ArrayValidators,Ie as AudioPlayer,Me as Avatar,De as AvatarType,Oe as Badge,Re as Breadcrumb,_e as Button,Pe as ButtonGroup,Be as Card,ze as CardAi,Fe as CardV2,je as ChatMessage,Ne as Checkbox,Ve as CheckboxGroup,Ue as Chip,He as Coachmark,qe as CoachmarkPopover,Ke as CodeEditor,We as ComboBox,Ye as CompositeAvatar,Ge as CountryCodePicker,Xe as DatePicker,Ze as DatePickerCalendar,Qe as DatePickerDay,Je as DatePickerMonth,ti as DatePickerWeek,ei as DateRangePicker,ii as DateTimePicker,oi as Draggable,si as DraggableItem,ri as Dropdown,ai as EditableTextfield,ni as Favorite,li as FloatingButtonBar,di as FloatingMinimizedModal,hi as FloatingModal,pi as Form,ci as FormArray,ui as FormControl,mi as FormGroup,bi as Grabber,vi as HelpText,yi as Icon,gi as Input,fi as InputFile,wi as Label,Ci as Link,Ei as List,Ti as ListItem,xi as ListItemV2,$i as ListV2,Si as Loading,ki as MeetingAlert,Ai as Menu,Li as MenuItem,Ii as MenuOverlay,Mi as Modal,Di as NotificationBadge,Oi as Pagination,Ri as PhoneInput,_i as Popover,Pi as PopoverController,Bi as Presence,zi as ProgressBar,Fi as Radio,ji as RadioGroup,Ni as Skeleton,Vi as Slider,Ui as Spinner,Hi as Tab,qi as TabPanel,Ki as Table,Wi as TableAdvanced,Yi as Tabs,Gi as TaskItem,Xi as Theme,Zi as ThemeManager,Qi as TimePicker,Ji as ToggleSwitch,to as Tooltip,eo as Validators,io as iconUrlManager,oo as registerThemeManagerGlobally,so as themeManager};
|