@limetech/lime-elements 38.38.1-dev.2 → 38.39.0

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +5 -5
  2. package/dist/cjs/config-e7e1a299.js.map +1 -1
  3. package/dist/cjs/image-resize-99e16554.js +310 -0
  4. package/dist/cjs/image-resize-99e16554.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +13 -0
  6. package/dist/cjs/index.cjs.js.map +1 -1
  7. package/dist/cjs/layout-8550b993.js +20 -0
  8. package/dist/cjs/layout-8550b993.js.map +1 -0
  9. package/dist/cjs/lime-elements.cjs.js +1 -1
  10. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +2 -1
  11. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js.map +1 -1
  12. package/dist/cjs/limel-profile-picture.cjs.entry.js +2 -306
  13. package/dist/cjs/limel-profile-picture.cjs.entry.js.map +1 -1
  14. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +44 -89
  15. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -1
  16. package/dist/cjs/limel-table.cjs.entry.js +2 -16
  17. package/dist/cjs/limel-table.cjs.entry.js.map +1 -1
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/types-cc3c7cea.js +54 -0
  20. package/dist/cjs/types-cc3c7cea.js.map +1 -0
  21. package/dist/collection/components/chart/chart.css +87 -0
  22. package/dist/collection/components/dock/dock.css +93 -0
  23. package/dist/collection/components/file-viewer/file-viewer.css +93 -0
  24. package/dist/collection/components/input-field/input-field.css +93 -0
  25. package/dist/collection/components/list/list.css +12 -0
  26. package/dist/collection/components/menu/menu.js +19 -1
  27. package/dist/collection/components/menu/menu.js.map +1 -1
  28. package/dist/collection/components/menu-list/menu-list.css +12 -0
  29. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +6 -0
  30. package/dist/collection/components/select/select.css +6 -0
  31. package/dist/collection/components/slider/slider.css +6 -0
  32. package/dist/collection/components/table/layout.js +1 -1
  33. package/dist/collection/components/table/layout.js.map +1 -1
  34. package/dist/collection/components/table/table.js +2 -2
  35. package/dist/collection/components/table/table.js.map +1 -1
  36. package/dist/collection/components/text-editor/prosemirror-adapter/menu/types.js.map +1 -1
  37. package/dist/collection/components/text-editor/types.js.map +1 -1
  38. package/dist/collection/global/config.js.map +1 -1
  39. package/dist/collection/index.js.map +1 -1
  40. package/dist/collection/interface.js +11 -0
  41. package/dist/collection/interface.js.map +1 -1
  42. package/dist/esm/config-656a588f.js.map +1 -1
  43. package/dist/esm/image-resize-1ea8337d.js +308 -0
  44. package/dist/esm/image-resize-1ea8337d.js.map +1 -0
  45. package/dist/esm/index.js +5 -0
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/layout-5da21bb6.js +18 -0
  48. package/dist/esm/layout-5da21bb6.js.map +1 -0
  49. package/dist/esm/lime-elements.js +1 -1
  50. package/dist/esm/limel-breadcrumbs_7.entry.js +2 -1
  51. package/dist/esm/limel-breadcrumbs_7.entry.js.map +1 -1
  52. package/dist/esm/limel-profile-picture.entry.js +1 -305
  53. package/dist/esm/limel-profile-picture.entry.js.map +1 -1
  54. package/dist/esm/limel-prosemirror-adapter.entry.js +1 -46
  55. package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -1
  56. package/dist/esm/limel-table.entry.js +2 -16
  57. package/dist/esm/limel-table.entry.js.map +1 -1
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/esm/types-7dea7a78.js +49 -0
  60. package/dist/esm/types-7dea7a78.js.map +1 -0
  61. package/dist/lime-elements/index.esm.js +1 -1
  62. package/dist/lime-elements/index.esm.js.map +1 -1
  63. package/dist/lime-elements/lime-elements.esm.js +1 -1
  64. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  65. package/dist/lime-elements/{p-56c9bb65.entry.js → p-19a9b96b.entry.js} +2 -2
  66. package/dist/lime-elements/p-19a9b96b.entry.js.map +1 -0
  67. package/dist/lime-elements/p-2bd3f381.entry.js +2 -0
  68. package/dist/lime-elements/p-2bd3f381.entry.js.map +1 -0
  69. package/dist/lime-elements/p-2c35fb9d.js.map +1 -1
  70. package/dist/lime-elements/p-9f223e57.js +2 -0
  71. package/dist/lime-elements/p-9f223e57.js.map +1 -0
  72. package/dist/lime-elements/p-b11e7718.entry.js +2 -0
  73. package/dist/lime-elements/p-b11e7718.entry.js.map +1 -0
  74. package/dist/lime-elements/p-d4bc7848.js +2 -0
  75. package/dist/lime-elements/p-d4bc7848.js.map +1 -0
  76. package/dist/lime-elements/p-e3c87b69.entry.js +2 -0
  77. package/dist/lime-elements/p-e3c87b69.entry.js.map +1 -0
  78. package/dist/lime-elements/p-ed67677d.js +2 -0
  79. package/dist/lime-elements/p-ed67677d.js.map +1 -0
  80. package/dist/types/components/form/help/help.d.ts +1 -1
  81. package/dist/types/components/menu/menu.d.ts +4 -0
  82. package/dist/types/components/table/layout.d.ts +1 -1
  83. package/dist/types/components/text-editor/types.d.ts +0 -8
  84. package/dist/types/components.d.ts +8 -0
  85. package/dist/types/global/config.d.ts +1 -8
  86. package/dist/types/index.d.ts +3 -0
  87. package/dist/types/interface.d.ts +13 -2
  88. package/package.json +2 -5
  89. package/dist/lime-elements/p-354c2d16.entry.js +0 -2
  90. package/dist/lime-elements/p-354c2d16.entry.js.map +0 -1
  91. package/dist/lime-elements/p-56c9bb65.entry.js.map +0 -1
  92. package/dist/lime-elements/p-9e225545.entry.js +0 -2
  93. package/dist/lime-elements/p-9e225545.entry.js.map +0 -1
  94. package/dist/lime-elements/p-f6d8811f.entry.js +0 -2
  95. package/dist/lime-elements/p-f6d8811f.entry.js.map +0 -1
@@ -130,7 +130,7 @@ import{r as t,c as e,h as i,g as r,H as n}from"./p-bdfa539c.js";import{m as l,r
130
130
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
131
131
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
132
132
  * THE SOFTWARE.
133
- */var ut=function(t){E(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[W.LIST_ITEM_CLASS]))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:false,configurable:true});e.attachTo=function(t){return new e(t)};e.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=V in this.root.dataset;if(this.isEvolutionEnabled){this.classNameMap=H}else if(A(this.root,K.DEPRECATED_SELECTOR)){this.classNameMap=G}else{this.classNameMap=Object.values(W).reduce((function(t,e){t[e]=e;return t}),{})}this.handleClick=this.handleClickEvent.bind(this);this.handleKeydown=this.handleKeydownEvent.bind(this);this.focusInEventListener=this.handleFocusInEvent.bind(this);this.focusOutEventListener=this.handleFocusOutEvent.bind(this);this.listen("keydown",this.handleKeydown);this.listen("click",this.handleClick);this.listen("focusin",this.focusInEventListener);this.listen("focusout",this.focusOutEventListener);this.layout();this.initializeListType();this.ensureFocusable()};e.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown);this.unlisten("click",this.handleClick);this.unlisten("focusin",this.focusInEventListener);this.unlisten("focusout",this.focusOutEventListener)};e.prototype.layout=function(){var t=this.root.getAttribute(K.ARIA_ORIENTATION);this.vertical=t!==K.ARIA_ORIENTATION_HORIZONTAL;var e="."+this.classNameMap[W.LIST_ITEM_CLASS]+":not([tabindex])";var i=K.FOCUSABLE_CHILD_ELEMENTS;var r=this.root.querySelectorAll(e);if(r.length){Array.prototype.forEach.call(r,(function(t){t.setAttribute("tabindex","-1")}))}var n=this.root.querySelectorAll(i);if(n.length){Array.prototype.forEach.call(n,(function(t){t.setAttribute("tabindex","-1")}))}if(this.isEvolutionEnabled){this.foundation.setUseSelectedAttribute(true)}this.foundation.layout()};e.prototype.getPrimaryText=function(t){var e;var i=t.querySelector("."+this.classNameMap[W.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||i){return(e=i===null||i===void 0?void 0:i.textContent)!==null&&e!==void 0?e:""}var r=t.querySelector("."+this.classNameMap[W.LIST_ITEM_TEXT_CLASS]);return r&&r.textContent||""};e.prototype.initializeListType=function(){var t=this;this.isInteractive=A(this.root,K.ARIA_INTERACTIVE_ROLES_SELECTOR);if(this.isEvolutionEnabled&&this.isInteractive){var e=Array.from(this.root.querySelectorAll(K.SELECTED_ITEM_SELECTOR),(function(e){return t.listElements.indexOf(e)}));if(A(this.root,K.ARIA_MULTI_SELECTABLE_SELECTOR)){this.selectedIndex=e}else if(e.length>0){this.selectedIndex=e[0]}return}var i=this.root.querySelectorAll(K.ARIA_ROLE_CHECKBOX_SELECTOR);var r=this.root.querySelector(K.ARIA_CHECKED_RADIO_SELECTOR);if(i.length){var n=this.root.querySelectorAll(K.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(n,(function(e){return t.listElements.indexOf(e)}))}else if(r){this.selectedIndex=this.listElements.indexOf(r)}};e.prototype.setEnabled=function(t,e){this.foundation.setEnabled(t,e)};e.prototype.typeaheadMatchItem=function(t,e){return this.foundation.typeaheadMatchItem(t,e,true)};e.prototype.getDefaultFoundation=function(){var t=this;var e={addClassForElementIndex:function(e,i){var r=t.listElements[e];if(r){r.classList.add(t.classNameMap[i])}},focusItemAtIndex:function(e){var i=t.listElements[e];if(i){i.focus()}},getAttributeForElementIndex:function(e,i){return t.listElements[e].getAttribute(i)},getFocusedElementIndex:function(){return t.listElements.indexOf(document.activeElement)},getListItemCount:function(){return t.listElements.length},getPrimaryTextAtIndex:function(e){return t.getPrimaryText(t.listElements[e])},hasCheckboxAtIndex:function(e){var i=t.listElements[e];return!!i.querySelector(K.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(e){var i=t.listElements[e];return!!i.querySelector(K.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(e){var i=t.listElements[e];var r=i.querySelector(K.CHECKBOX_SELECTOR);return r.checked},isFocusInsideList:function(){return t.root!==document.activeElement&&t.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===t.root},listItemAtIndexHasClass:function(e,i){return t.listElements[e].classList.contains(t.classNameMap[i])},notifyAction:function(e){t.emit(K.ACTION_EVENT,{index:e},true)},removeClassForElementIndex:function(e,i){var r=t.listElements[e];if(r){r.classList.remove(t.classNameMap[i])}},setAttributeForElementIndex:function(e,i,r){var n=t.listElements[e];if(n){n.setAttribute(i,r)}},setCheckedCheckboxOrRadioAtIndex:function(e,i){var r=t.listElements[e];var n=r.querySelector(K.CHECKBOX_RADIO_SELECTOR);n.checked=i;var l=document.createEvent("Event");l.initEvent("change",true,true);n.dispatchEvent(l)},setTabIndexForListItemChildren:function(e,i){var r=t.listElements[e];var n=K.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(r.querySelectorAll(n),(function(t){t.setAttribute("tabindex",i)}))}};return new ht(e)};e.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive){if(!this.root.querySelector("."+this.classNameMap[W.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();if(t!==-1){this.listElements[t].tabIndex=0}}}};e.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0){return this.selectedIndex[0]}if(typeof this.selectedIndex==="number"&&this.selectedIndex!==$.UNSET_INDEX){return this.selectedIndex}var t=this.root.querySelector("."+this.classNameMap[W.LIST_ITEM_CLASS]+":not(."+this.classNameMap[W.LIST_ITEM_DISABLED_CLASS]+")");if(t===null){return-1}return this.getListItemIndex(t)};e.prototype.getListItemIndex=function(t){var e=C(t,"."+this.classNameMap[W.LIST_ITEM_CLASS]+", ."+this.classNameMap[W.ROOT]);if(e&&A(e,"."+this.classNameMap[W.LIST_ITEM_CLASS])){return this.listElements.indexOf(e)}return-1};e.prototype.handleFocusInEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusIn(e)};e.prototype.handleFocusOutEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusOut(e)};e.prototype.handleKeydownEvent=function(t){var e=this.getListItemIndex(t.target);var i=t.target;this.foundation.handleKeydown(t,i.classList.contains(this.classNameMap[W.LIST_ITEM_CLASS]),e)};e.prototype.handleClickEvent=function(t){var e=this.getListItemIndex(t.target);var i=t.target;var r=!A(i,K.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(e,r)};return e}(O);class xt{constructor(){this.defaultConfig={isOpen:true,badgeIcons:false};this.getAriaOrientation=t=>{if(t==="listbox"||t==="radiogroup"){return"vertical"}else{return null}};this.getIndexForWhichToApplyTabIndex=t=>{let e;for(let i=0,r=t.length;i<r;i+=1){if("separator"in t[i]);else{const r=t[i];if(r.disabled){continue}if(r.selected){e=i;break}if(e===undefined){e=i}}}return e};this.renderListItem=(t,e)=>{var r;if("separator"in t){return i("li",{class:"mdc-deprecated-list-divider",role:"separator",key:`sep-${e}`},this.renderTextForSeparator(t),i("div",{class:"limel-list-divider-line"}))}const n={};if(e===this.applyTabIndexToItemAtIndex){n.tabindex="0"}let l;if(this.config.type==="radio"||this.config.type==="checkbox"){l=this.config.type}else if(this.config.type==="selectable"){l="option"}else{l="listitem"}const d=(r=t.id)!==null&&r!==void 0?r:`item-${e}`;const o={"mdc-deprecated-list-item":true,"mdc-deprecated-list-item--disabled":!!t.disabled};return i("limel-list-item",Object.assign({key:d,class:o},n,{"data-index":e,type:l,text:t.text,secondaryText:t.secondaryText,icon:t.icon,image:t.image,primaryComponent:t.primaryComponent,badgeIcon:this.config.badgeIcons,iconSize:this.config.iconSize,selected:t.selected,disabled:t.disabled,actions:t.actions}))};this.renderTextForSeparator=t=>{if("text"in t){return i("h2",{class:"limel-list-divider-title"},t.text)}}}render(t,e={}){t=t||[];this.config=Object.assign(Object.assign({},this.defaultConfig),e);let r;switch(this.config.type){case"checkbox":{r="group";break}case"radio":{r="radiogroup";break}default:{r="listbox"}}this.applyTabIndexToItemAtIndex=this.getIndexForWhichToApplyTabIndex(t);return i("ul",{class:"mdc-deprecated-list",role:r,"aria-orientation":this.getAriaOrientation(r)},t.map(this.renderListItem))}}const pt='@charset "UTF-8";:host(limel-list){display:block;isolation:isolate}:host([hidden]){display:none}ul{--mdc-theme-text-icon-on-background:var(\n --icon-color,\n rgb(var(--contrast-900))\n );margin:var(--list-margin, 0.25rem);border-radius:0.5rem;padding:0;list-style:none}.mdc-deprecated-list-divider{border-bottom-color:transparent;display:flex;align-items:center;gap:0.75rem;height:auto;padding:0 0.5rem}.limel-list-divider-line{background-color:rgb(var(--contrast-400));height:0.125rem;border-radius:1rem;min-width:1rem;flex-grow:1}.limel-list-divider-title{all:unset;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--contrast-900));font-size:var(--limel-theme-default-small-font-size)}:host(.has-striped-rows) .mdc-deprecated-list{border:1px solid rgb(var(--contrast-400))}:host(.has-striped-rows) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(even),:host(.has-striped-rows.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(even){background-color:var(--list-background-color-of-odd-interactive-items, rgb(var(--contrast-200)))}:host(.has-striped-rows) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(odd),:host(.has-striped-rows.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(odd){background-color:var(--list-background-color-of-even-interactive-items, rgb(var(--contrast-100)))}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus-visible{will-change:color, background-color, box-shadow, transform}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover{box-shadow:var(--button-shadow-hovered)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(.has-grid-layout){--gap:var(--list-grid-gap, 0.5rem);padding:var(--gap);}:host(.has-grid-layout) .mdc-deprecated-list{display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, max(var(--list-grid-item-max-width, 10rem) - var(--gap), var(--list-grid-item-min-width, 7.5rem))), 1fr));max-width:var(--list-grid-max-width, 100%)}:host(.has-grid-layout) .mdc-deprecated-list limel-list-item{border-radius:0.5rem !important}:host(.has-grid-layout) .mdc-deprecated-list-divider{grid-column:1/-1}:host(.static-actions-list){z-index:1;background-color:var(--limel-theme-surface-background-color)}:host(.has-position-sticky){position:sticky;box-shadow:0 0 0.75rem 0.5rem var(--limel-theme-surface-background-color)}:host(.has-position-sticky.is-on-top){top:0}:host(.has-position-sticky.is-at-bottom){bottom:0}:host(.is-on-top){border-bottom:1px solid rgb(var(--contrast-400));margin-bottom:0.5rem;padding-bottom:0.25rem}:host(.is-at-bottom){border-top:1px solid rgb(var(--contrast-400));margin-top:0.5rem;padding-top:0.25rem}';const{ACTION_EVENT:bt}=K;const gt=class{constructor(i){t(this,i);this.change=e(this,"change",7);this.select=e(this,"select",7);this.interact=e(this,"interact",7);this.listRenderer=new xt;this.setup=()=>{this.setupList();this.setupListeners()};this.setupList=()=>{if(this.mdcList){this.teardown();this.mdcList=null}const t=this.element.shadowRoot.querySelector(".mdc-deprecated-list");if(!t){return}this.mdcList=new ut(t);this.mdcList.hasTypeahead=true};this.setupListeners=()=>{if(!this.mdcList){return}this.mdcList.unlisten(bt,this.handleAction);this.selectable=["selectable","radio","checkbox"].includes(this.type);this.multiple=this.type==="checkbox";if(!this.selectable){return}this.mdcList.listen(bt,this.handleAction);this.mdcList.singleSelection=!this.multiple};this.teardown=()=>{var t,e;(t=this.mdcList)===null||t===void 0?void 0:t.unlisten(bt,this.handleAction);(e=this.mdcList)===null||e===void 0?void 0:e.destroy()};this.handleAction=t=>{if(!this.multiple){this.handleSingleSelect(t.detail.index);return}this.handleMultiSelect(t.detail.index)};this.handleSingleSelect=t=>{const e=this.items.filter(this.isListItem);if(e[t].disabled){return}const i=e.find((t=>!!t.selected));let r;if(i){if(this.type!=="radio"){this.mdcList.selectedIndex=-1}r=Object.assign(Object.assign({},i),{selected:false});this.change.emit(r)}if(e[t]!==i){r=Object.assign(Object.assign({},e[t]),{selected:true});this.change.emit(r)}this.interact.emit(r)};this.handleMultiSelect=t=>{const e=this.items.filter(this.isListItem);if(e[t].disabled){return}const i=e.filter(((e,i)=>{if(i===t){return!e.selected}return e.selected})).map((t=>Object.assign(Object.assign({},t),{selected:true})));this.change.emit(i);this.interact.emit(Object.assign({},i[t]))};this.isListItem=t=>!("separator"in t);this.items=undefined;this.badgeIcons=undefined;this.iconSize="small";this.type=undefined;this.maxLinesSecondaryText=3}connectedCallback(){this.setup()}disconnectedCallback(){this.teardown()}componentDidLoad(){this.setup();this.triggerIconColorWarning()}render(){var t;this.config={badgeIcons:this.badgeIcons,type:this.type,iconSize:this.iconSize};let e=+((t=this.maxLinesSecondaryText)===null||t===void 0?void 0:t.toFixed());if(this.maxLinesSecondaryText<1){e=1}const r=this.listRenderer.render(this.items,this.config);return i(n,{style:{"--maxLinesSecondaryText":`${e}`}},r)}handleType(){this.setupListeners()}itemsChanged(){if(!this.mdcList){return}setTimeout((()=>{this.setup();const t=this.items.filter(this.isListItem);if(this.multiple){this.mdcList.selectedIndex=t.filter((t=>t.selected)).map((e=>t.indexOf(e)))}else{const e=t.findIndex((t=>t.selected));if(e===-1){this.mdcList.initializeListType()}else{this.mdcList.selectedIndex=e}}}),0)}triggerIconColorWarning(){var t;if((t=this.items)===null||t===void 0?void 0:t.some((t=>"iconColor"in t))){console.warn("The `iconColor` prop is deprecated, has no visual effect anymore, and will soon be removed! Use the new `Icon` interface, and instead of `iconColor: 'color-name'` write `icon: { name: 'icon-name', color: 'color-name' }`.")}}static get delegatesFocus(){return true}get element(){return r(this)}static get watchers(){return{type:["handleType"],items:["itemsChanged"]}}};gt.style=pt;const vt=":host(limel-menu){isolation:isolate;position:relative;display:inline-block;--badge-background-color:var(\n --notification-badge-background-color,\n rgb(var(--color-red-default))\n );--badge-text-color:var(\n --notification-badge-text-color,\n rgb(var(--color-white))\n )}:host([hidden]){display:none}.menu__trigger{border-color:transparent;border-width:1px;border-style:solid;background:none;color:rgb(var(--contrast-800));height:2.25rem}.menu__trigger-enabled:hover{border-color:rgb(var(--contrast-800));color:rgb(var(--contrast-1100))}.mdc-menu-surface--anchor{position:relative}limel-badge{position:absolute;top:-0.25rem;right:-0.25rem}";const _t={text:"",icon:{name:"home"},type:"icon-only"};const yt=class{constructor(r){t(this,r);this.cancel=e(this,"cancel",7);this.select=e(this,"select",7);this.navigateMenu=e(this,"navigateMenu",7);this.renderLoader=()=>{if(!this.loadingSubItems&&!this.loading){return}const t=this.getCssProperties();return i("div",{style:{width:t["--menu-surface-width"],display:"flex","align-items":"center","justify-content":"center",padding:"0.5rem 0"}},i("limel-spinner",{size:"mini",limeBranded:false}))};this.renderBreadcrumb=()=>{const t=this.getBreadcrumbsItems();if(t.length===0){return}return i("limel-breadcrumbs",{ref:this.setBreadcrumbsElement,style:{"border-bottom":"solid 1px rgb(var(--contrast-500))","flex-shrink":"0"},onSelect:this.handleBreadcrumbsSelect,onKeyDown:this.handleBreadcrumbsKeyDown,items:t})};this.handleBreadcrumbsSelect=t=>{if(!t.detail.menuItem){this.currentSubMenu=null;this.clearSearch();this.navigateMenu.emit(null);this.setFocus();return}this.handleSelect(t.detail.menuItem)};this.renderSearchField=()=>{if(!this.searcher){return}return i("limel-input-field",{tabindex:"0",ref:this.setSearchElement,type:"search",leadingIcon:"search",style:{padding:"0.25rem","box-sizing":"border-box"},value:this.searchValue,onChange:this.handleTextInput,onKeyDown:this.handleInputKeyDown})};this.renderEmptyMessage=()=>{var t;if(this.loading||this.loadingSubItems||!this.emptyResultMessage||!Array.isArray(this.searchResults)||((t=this.searchResults)===null||t===void 0?void 0:t.length)){return null}return i("p",{style:{padding:"0 1rem","text-align":"center"}},this.emptyResultMessage)};this.renderMenuList=()=>{let t=this.visibleItems;if(this.loadingSubItems||this.loading){t=[]}return i("limel-menu-list",{style:{"overflow-y":"auto","flex-grow":"1"},class:{"has-grid-layout has-interactive-items":this.gridLayout},items:t,badgeIcons:this.badgeIcons,onSelect:this.onSelect,ref:this.setListElement,onKeyDown:this.handleMenuKeyDown})};this.handleTextInput=async t=>{t.stopPropagation();const e=t.detail;this.searchValue=e;if(e===""){this.searchResults=null;this.loadingSubItems=false;return}this.loadingSubItems=true;const i=await this.searcher(e);if(this.searchValue!==e){return}this.searchResults=i;this.loadingSubItems=false};this.handleInputKeyDown=t=>{const e=t.key===c&&!t.altKey&&!t.metaKey&&!t.shiftKey;const i=t.key===f;const r=t.key===m;if(!e&&!i&&!r){return}t.stopPropagation();t.preventDefault();if(e||r){if(this.focusBreadcrumbs()){return}this.focusFirstListItem();return}if(i){this.focusLastListItem()}};this.handleListKeyDownCapture=t=>{const e=t.key===f;const i=t.key===m;if(!e&&!i){return}if(e&&this.isFirstListItemFocused()){if(this.focusBreadcrumbs()){t.stopPropagation();t.preventDefault();return}if(this.searchInput){t.stopPropagation();t.preventDefault();this.searchInput.focus()}return}if(i&&this.isLastListItemFocused()&&this.searchInput){t.stopPropagation();t.preventDefault();this.searchInput.focus()}};this.handleMenuKeyDown=t=>{var e;const i=t.key===c&&!t.altKey&&!t.metaKey&&t.shiftKey;const r=t.key===p;const n=t.key===b;if(!i&&!r&&!n){return}if(i){t.stopPropagation();t.preventDefault();(e=this.searchInput)===null||e===void 0?void 0:e.focus();return}if(!this.gridLayout&&(r||n)){const e=this.getCurrentItem();t.stopPropagation();t.preventDefault();if(n){this.goForward(e)}else if(r){this.goBack()}}};this.handleBreadcrumbsKeyDown=t=>{var e;const i=t.key===f;const r=t.key===m;if(!i&&!r){return}t.stopPropagation();t.preventDefault();if(i){(e=this.searchInput)===null||e===void 0?void 0:e.focus();return}if(r){this.focusFirstListItem()}};this.clearSearch=()=>{this.searchValue="";this.searchResults=null;this.loadingSubItems=false};this.getCurrentItem=()=>{var t,e,i,r,n,l;let d=(i=(e=(t=this.list)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.activeElement)!==null&&i!==void 0?i:null;if(d&&d.getAttribute("role")!=="menuitem"){d=d.closest('[role="menuitem"]')}if(!d){d=(n=(r=this.list)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.querySelector('[role="menuitem"][tabindex="0"]')}const o=Number.parseInt((l=d===null||d===void 0?void 0:d.dataset.index)!==null&&l!==void 0?l:"0",10);const a=this.visibleItems[o];return a!==null&&a!==void 0?a:this.visibleItems[0]};this.goForward=t=>{this.handleSelect(t,false)};this.goBack=()=>{if(!this.currentSubMenu){return}const t=this.currentSubMenu.parentItem;if(!t){this.currentSubMenu=null;this.clearSearch();this.navigateMenu.emit(null);this.setFocus();return}this.handleSelect(t)};this.setTriggerAttributes=t=>{const e={"aria-haspopup":true,"aria-expanded":this.open,"aria-controls":this.portalId,disabled:this.disabled,role:"button"};for(const[i,r]of Object.entries(e)){if(r){t.setAttribute(i,String(r))}else{t.removeAttribute(i)}}};this.onClose=()=>{this.cancel.emit();this.open=false;this.currentSubMenu=null};this.onTriggerClick=t=>{t.stopPropagation();if(this.disabled){return}this.open=!this.open};this.handleSelect=async(t,e=true)=>{if(Array.isArray(t===null||t===void 0?void 0:t.items)&&t.items.length>0){this.selectedMenuItem=t;this.clearSearch();this.currentSubMenu=t;this.navigateMenu.emit(t);this.setFocus();return}else if(S(t===null||t===void 0?void 0:t.items)){const e=t.items;this.selectedMenuItem=t;this.loadingSubItems=true;const i=await e(t);if(this.selectedMenuItem!==t){return}t.items=i;this.loadingSubItems=false;if(i===null||i===void 0?void 0:i.length){this.currentSubMenu=t;this.clearSearch();this.navigateMenu.emit(t);this.setFocus();return}}if(!e){return}this.selectedMenuItem=t;this.loadingSubItems=false;this.select.emit(t);this.open=false;this.currentSubMenu=null;this.setFocus()};this.onSelect=t=>{t.stopPropagation();this.handleSelect(t.detail)};this.setListElement=t=>{if(this.list){this.list.removeEventListener("keydown",this.handleListKeyDownCapture,true)}this.list=t;if(this.list){this.list.addEventListener("keydown",this.handleListKeyDownCapture,true)}};this.setFocus=()=>{setTimeout((()=>{if(this.searchInput&&this.searcher){const t=new IntersectionObserver((()=>{t.unobserve(this.searchInput);if(this.searchInput===window.document.activeElement){return}this.searchInput.focus()}));t.observe(this.searchInput)}else if(this.list){const t=new IntersectionObserver((()=>{t.unobserve(this.list);this.focusMenuItem()}));t.observe(this.list)}}),0)};this.setSearchElement=t=>{this.searchInput=t};this.setBreadcrumbsElement=t=>{this.breadcrumbs=t};this.focusBreadcrumbs=()=>{var t;if(!this.breadcrumbs){return false}const e=(t=this.breadcrumbs.shadowRoot)===null||t===void 0?void 0:t.querySelector("button, a");if(e){e.focus();return true}return false};this.focusFirstListItem=()=>{const t=this.getListItems();const e=t===null||t===void 0?void 0:t[0];e===null||e===void 0?void 0:e.focus()};this.focusLastListItem=()=>{const t=this.getListItems();const e=t===null||t===void 0?void 0:t.at(-1);e===null||e===void 0?void 0:e.focus()};this.isFirstListItemFocused=()=>{var t;const e=this.getListItems();if(!e){return false}const i=e[0];const r=(t=this.list.shadowRoot)===null||t===void 0?void 0:t.activeElement;return i===r};this.isLastListItemFocused=()=>{var t;const e=this.getListItems();if(!e){return false}const i=e.at(-1);const r=(t=this.list.shadowRoot)===null||t===void 0?void 0:t.activeElement;return i===r};this.getListItems=()=>{var t;if(!this.list){return null}const e=(t=this.list.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".mdc-deprecated-list-item");if(!(e===null||e===void 0?void 0:e.length)){return null}return[...e]};this.focusMenuItem=()=>{var t;if(!this.list){return}const e=this.list.shadowRoot.activeElement;e===null||e===void 0?void 0:e.blur();const i=this.visibleItems.filter(this.isMenuItem);const r=Math.max(i.findIndex((t=>t.selected)),0);const n=[...this.list.shadowRoot.querySelectorAll('[role="menuitem"]')];(t=n[r])===null||t===void 0?void 0:t.focus()};this.renderNotificationBadge=()=>{if(this.items.some(this.hasNotificationBadge)){return i("limel-badge",null)}};this.hasNotificationBadge=t=>this.isMenuItem(t)&&t.badge!==undefined;this.setTriggerRef=t=>{this.triggerElement=t};this.items=[];this.disabled=false;this.openDirection="bottom-start";this.surfaceWidth="inherit-from-items";this.open=false;this.badgeIcons=false;this.gridLayout=false;this.loading=false;this.currentSubMenu=undefined;this.rootItem=_t;this.searcher=undefined;this.emptyResultMessage=undefined;this.loadingSubItems=undefined;this.searchValue=undefined;this.searchResults=undefined;this.portalId=o()}componentDidRender(){const t=this.host.shadowRoot.querySelector("slot");t.assignedElements().forEach(this.setTriggerAttributes)}render(){const t=this.getCssProperties();const e=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");const r=this.getMenuSurfaceWidth(t["--menu-surface-width"]);return i("div",{class:"mdc-menu-surface--anchor",onClick:this.onTriggerClick},i("slot",{ref:this.setTriggerRef,name:"trigger"}),this.renderNotificationBadge(),i("limel-portal",{visible:this.open,containerId:this.portalId,openDirection:this.openDirection,position:"absolute",containerStyle:{"z-index":e}},i("limel-menu-surface",{open:this.open,onDismiss:this.onClose,style:Object.assign(Object.assign({},t),{"--menu-surface-width":r,"--limel-menu-surface-display":"flex","--limel-menu-surface-flex-direction":"column"}),class:{"has-grid-layout":this.gridLayout}},this.renderSearchField(),this.renderBreadcrumb(),this.renderLoader(),this.renderEmptyMessage(),this.renderMenuList())))}itemsWatcher(){this.clearSearch();this.setFocus()}openWatcher(t){const e=t;if(e){this.setFocus()}else{this.clearSearch()}}getBreadcrumbsItems(){const t=[];let e=this.currentSubMenu;while(e){t.push({text:e.text,icon:e.icon,menuItem:e});e=e.parentItem}if(t.length>0||this.rootItem!==_t){t.push(this.rootItem)}return t.reverse()}getCssProperties(){const t=["--menu-surface-width","--list-grid-item-max-width","--list-grid-item-min-width","--list-grid-gap","--notification-badge-background-color","--notification-badge-text-color"];const e=getComputedStyle(this.host);const i=t.map((t=>e.getPropertyValue(t)));return R(t,i)}isMenuItem(t){return!("separator"in t)}getMenuSurfaceWidth(t){var e,i,r,n;if(t){return t}if(this.surfaceWidth==="inherit-from-trigger"){const t=(e=this.triggerElement)===null||e===void 0?void 0:e.assignedElements();if(!(t===null||t===void 0?void 0:t.length)||!((i=t[0])===null||i===void 0?void 0:i.clientWidth)){return""}return`${t[0].clientWidth}px`}else if(this.surfaceWidth==="inherit-from-menu"){if(!((r=this.host)===null||r===void 0?void 0:r.clientWidth)){return""}return`${(n=this.host)===null||n===void 0?void 0:n.clientWidth}px`}return""}get visibleItems(){var t;if(Array.isArray(this.searchResults)&&this.searchValue){return this.searchResults}else if(Array.isArray((t=this.currentSubMenu)===null||t===void 0?void 0:t.items)){return this.currentSubMenu.items.map((t=>Object.assign(Object.assign({},t),{parentItem:this.currentSubMenu})))}return this.items}get host(){return r(this)}static get watchers(){return{items:["itemsWatcher"],open:["openWatcher"]}}};yt.style=vt;
133
+ */var ut=function(t){E(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[W.LIST_ITEM_CLASS]))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:false,configurable:true});e.attachTo=function(t){return new e(t)};e.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=V in this.root.dataset;if(this.isEvolutionEnabled){this.classNameMap=H}else if(A(this.root,K.DEPRECATED_SELECTOR)){this.classNameMap=G}else{this.classNameMap=Object.values(W).reduce((function(t,e){t[e]=e;return t}),{})}this.handleClick=this.handleClickEvent.bind(this);this.handleKeydown=this.handleKeydownEvent.bind(this);this.focusInEventListener=this.handleFocusInEvent.bind(this);this.focusOutEventListener=this.handleFocusOutEvent.bind(this);this.listen("keydown",this.handleKeydown);this.listen("click",this.handleClick);this.listen("focusin",this.focusInEventListener);this.listen("focusout",this.focusOutEventListener);this.layout();this.initializeListType();this.ensureFocusable()};e.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown);this.unlisten("click",this.handleClick);this.unlisten("focusin",this.focusInEventListener);this.unlisten("focusout",this.focusOutEventListener)};e.prototype.layout=function(){var t=this.root.getAttribute(K.ARIA_ORIENTATION);this.vertical=t!==K.ARIA_ORIENTATION_HORIZONTAL;var e="."+this.classNameMap[W.LIST_ITEM_CLASS]+":not([tabindex])";var i=K.FOCUSABLE_CHILD_ELEMENTS;var r=this.root.querySelectorAll(e);if(r.length){Array.prototype.forEach.call(r,(function(t){t.setAttribute("tabindex","-1")}))}var n=this.root.querySelectorAll(i);if(n.length){Array.prototype.forEach.call(n,(function(t){t.setAttribute("tabindex","-1")}))}if(this.isEvolutionEnabled){this.foundation.setUseSelectedAttribute(true)}this.foundation.layout()};e.prototype.getPrimaryText=function(t){var e;var i=t.querySelector("."+this.classNameMap[W.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||i){return(e=i===null||i===void 0?void 0:i.textContent)!==null&&e!==void 0?e:""}var r=t.querySelector("."+this.classNameMap[W.LIST_ITEM_TEXT_CLASS]);return r&&r.textContent||""};e.prototype.initializeListType=function(){var t=this;this.isInteractive=A(this.root,K.ARIA_INTERACTIVE_ROLES_SELECTOR);if(this.isEvolutionEnabled&&this.isInteractive){var e=Array.from(this.root.querySelectorAll(K.SELECTED_ITEM_SELECTOR),(function(e){return t.listElements.indexOf(e)}));if(A(this.root,K.ARIA_MULTI_SELECTABLE_SELECTOR)){this.selectedIndex=e}else if(e.length>0){this.selectedIndex=e[0]}return}var i=this.root.querySelectorAll(K.ARIA_ROLE_CHECKBOX_SELECTOR);var r=this.root.querySelector(K.ARIA_CHECKED_RADIO_SELECTOR);if(i.length){var n=this.root.querySelectorAll(K.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(n,(function(e){return t.listElements.indexOf(e)}))}else if(r){this.selectedIndex=this.listElements.indexOf(r)}};e.prototype.setEnabled=function(t,e){this.foundation.setEnabled(t,e)};e.prototype.typeaheadMatchItem=function(t,e){return this.foundation.typeaheadMatchItem(t,e,true)};e.prototype.getDefaultFoundation=function(){var t=this;var e={addClassForElementIndex:function(e,i){var r=t.listElements[e];if(r){r.classList.add(t.classNameMap[i])}},focusItemAtIndex:function(e){var i=t.listElements[e];if(i){i.focus()}},getAttributeForElementIndex:function(e,i){return t.listElements[e].getAttribute(i)},getFocusedElementIndex:function(){return t.listElements.indexOf(document.activeElement)},getListItemCount:function(){return t.listElements.length},getPrimaryTextAtIndex:function(e){return t.getPrimaryText(t.listElements[e])},hasCheckboxAtIndex:function(e){var i=t.listElements[e];return!!i.querySelector(K.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(e){var i=t.listElements[e];return!!i.querySelector(K.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(e){var i=t.listElements[e];var r=i.querySelector(K.CHECKBOX_SELECTOR);return r.checked},isFocusInsideList:function(){return t.root!==document.activeElement&&t.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===t.root},listItemAtIndexHasClass:function(e,i){return t.listElements[e].classList.contains(t.classNameMap[i])},notifyAction:function(e){t.emit(K.ACTION_EVENT,{index:e},true)},removeClassForElementIndex:function(e,i){var r=t.listElements[e];if(r){r.classList.remove(t.classNameMap[i])}},setAttributeForElementIndex:function(e,i,r){var n=t.listElements[e];if(n){n.setAttribute(i,r)}},setCheckedCheckboxOrRadioAtIndex:function(e,i){var r=t.listElements[e];var n=r.querySelector(K.CHECKBOX_RADIO_SELECTOR);n.checked=i;var l=document.createEvent("Event");l.initEvent("change",true,true);n.dispatchEvent(l)},setTabIndexForListItemChildren:function(e,i){var r=t.listElements[e];var n=K.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(r.querySelectorAll(n),(function(t){t.setAttribute("tabindex",i)}))}};return new ht(e)};e.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive){if(!this.root.querySelector("."+this.classNameMap[W.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();if(t!==-1){this.listElements[t].tabIndex=0}}}};e.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0){return this.selectedIndex[0]}if(typeof this.selectedIndex==="number"&&this.selectedIndex!==$.UNSET_INDEX){return this.selectedIndex}var t=this.root.querySelector("."+this.classNameMap[W.LIST_ITEM_CLASS]+":not(."+this.classNameMap[W.LIST_ITEM_DISABLED_CLASS]+")");if(t===null){return-1}return this.getListItemIndex(t)};e.prototype.getListItemIndex=function(t){var e=C(t,"."+this.classNameMap[W.LIST_ITEM_CLASS]+", ."+this.classNameMap[W.ROOT]);if(e&&A(e,"."+this.classNameMap[W.LIST_ITEM_CLASS])){return this.listElements.indexOf(e)}return-1};e.prototype.handleFocusInEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusIn(e)};e.prototype.handleFocusOutEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusOut(e)};e.prototype.handleKeydownEvent=function(t){var e=this.getListItemIndex(t.target);var i=t.target;this.foundation.handleKeydown(t,i.classList.contains(this.classNameMap[W.LIST_ITEM_CLASS]),e)};e.prototype.handleClickEvent=function(t){var e=this.getListItemIndex(t.target);var i=t.target;var r=!A(i,K.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(e,r)};return e}(O);class xt{constructor(){this.defaultConfig={isOpen:true,badgeIcons:false};this.getAriaOrientation=t=>{if(t==="listbox"||t==="radiogroup"){return"vertical"}else{return null}};this.getIndexForWhichToApplyTabIndex=t=>{let e;for(let i=0,r=t.length;i<r;i+=1){if("separator"in t[i]);else{const r=t[i];if(r.disabled){continue}if(r.selected){e=i;break}if(e===undefined){e=i}}}return e};this.renderListItem=(t,e)=>{var r;if("separator"in t){return i("li",{class:"mdc-deprecated-list-divider",role:"separator",key:`sep-${e}`},this.renderTextForSeparator(t),i("div",{class:"limel-list-divider-line"}))}const n={};if(e===this.applyTabIndexToItemAtIndex){n.tabindex="0"}let l;if(this.config.type==="radio"||this.config.type==="checkbox"){l=this.config.type}else if(this.config.type==="selectable"){l="option"}else{l="listitem"}const d=(r=t.id)!==null&&r!==void 0?r:`item-${e}`;const o={"mdc-deprecated-list-item":true,"mdc-deprecated-list-item--disabled":!!t.disabled};return i("limel-list-item",Object.assign({key:d,class:o},n,{"data-index":e,type:l,text:t.text,secondaryText:t.secondaryText,icon:t.icon,image:t.image,primaryComponent:t.primaryComponent,badgeIcon:this.config.badgeIcons,iconSize:this.config.iconSize,selected:t.selected,disabled:t.disabled,actions:t.actions}))};this.renderTextForSeparator=t=>{if("text"in t){return i("h2",{class:"limel-list-divider-title"},t.text)}}}render(t,e={}){t=t||[];this.config=Object.assign(Object.assign({},this.defaultConfig),e);let r;switch(this.config.type){case"checkbox":{r="group";break}case"radio":{r="radiogroup";break}default:{r="listbox"}}this.applyTabIndexToItemAtIndex=this.getIndexForWhichToApplyTabIndex(t);return i("ul",{class:"mdc-deprecated-list",role:r,"aria-orientation":this.getAriaOrientation(r)},t.map(this.renderListItem))}}const pt='@charset "UTF-8";:host(limel-list){display:block;isolation:isolate}:host([hidden]){display:none}ul{--mdc-theme-text-icon-on-background:var(\n --icon-color,\n rgb(var(--contrast-900))\n );margin:var(--list-margin, 0.25rem);border-radius:0.5rem;padding:0;list-style:none}.mdc-deprecated-list-divider{border-bottom-color:transparent;display:flex;align-items:center;gap:0.75rem;height:auto;padding:0 0.5rem}.limel-list-divider-line{background-color:rgb(var(--contrast-400));height:0.125rem;border-radius:1rem;min-width:1rem;flex-grow:1}.limel-list-divider-title{all:unset;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--contrast-900));font-size:var(--limel-theme-default-small-font-size)}:host(.has-striped-rows) .mdc-deprecated-list{border:1px solid rgb(var(--contrast-400))}:host(.has-striped-rows) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(even),:host(.has-striped-rows.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(even){background-color:var(--list-background-color-of-odd-interactive-items, rgb(var(--contrast-200)))}:host(.has-striped-rows) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(odd),:host(.has-striped-rows.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(odd){background-color:var(--list-background-color-of-even-interactive-items, rgb(var(--contrast-100)))}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus-visible{will-change:color, background-color, box-shadow, transform}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover{box-shadow:var(--button-shadow-hovered)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(.has-grid-layout){--gap:var(--list-grid-gap, 0.5rem);padding:var(--gap);}:host(.has-grid-layout) .mdc-deprecated-list{display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, max(var(--list-grid-item-max-width, 10rem) - var(--gap), var(--list-grid-item-min-width, 7.5rem))), 1fr));max-width:var(--list-grid-max-width, 100%)}:host(.has-grid-layout) .mdc-deprecated-list limel-list-item{border-radius:0.5rem !important}:host(.has-grid-layout) .mdc-deprecated-list-divider{grid-column:1/-1}:host(.static-actions-list){z-index:1;background-color:var(--limel-theme-surface-background-color)}:host(.has-position-sticky){position:sticky;box-shadow:0 0 0.75rem 0.5rem var(--limel-theme-surface-background-color)}:host(.has-position-sticky.is-on-top){top:0}:host(.has-position-sticky.is-at-bottom){bottom:0}:host(.is-on-top){border-bottom:1px solid rgb(var(--contrast-400));margin-bottom:0.5rem;padding-bottom:0.25rem}:host(.is-at-bottom){border-top:1px solid rgb(var(--contrast-400));margin-top:0.5rem;padding-top:0.25rem}';const{ACTION_EVENT:bt}=K;const gt=class{constructor(i){t(this,i);this.change=e(this,"change",7);this.select=e(this,"select",7);this.interact=e(this,"interact",7);this.listRenderer=new xt;this.setup=()=>{this.setupList();this.setupListeners()};this.setupList=()=>{if(this.mdcList){this.teardown();this.mdcList=null}const t=this.element.shadowRoot.querySelector(".mdc-deprecated-list");if(!t){return}this.mdcList=new ut(t);this.mdcList.hasTypeahead=true};this.setupListeners=()=>{if(!this.mdcList){return}this.mdcList.unlisten(bt,this.handleAction);this.selectable=["selectable","radio","checkbox"].includes(this.type);this.multiple=this.type==="checkbox";if(!this.selectable){return}this.mdcList.listen(bt,this.handleAction);this.mdcList.singleSelection=!this.multiple};this.teardown=()=>{var t,e;(t=this.mdcList)===null||t===void 0?void 0:t.unlisten(bt,this.handleAction);(e=this.mdcList)===null||e===void 0?void 0:e.destroy()};this.handleAction=t=>{if(!this.multiple){this.handleSingleSelect(t.detail.index);return}this.handleMultiSelect(t.detail.index)};this.handleSingleSelect=t=>{const e=this.items.filter(this.isListItem);if(e[t].disabled){return}const i=e.find((t=>!!t.selected));let r;if(i){if(this.type!=="radio"){this.mdcList.selectedIndex=-1}r=Object.assign(Object.assign({},i),{selected:false});this.change.emit(r)}if(e[t]!==i){r=Object.assign(Object.assign({},e[t]),{selected:true});this.change.emit(r)}this.interact.emit(r)};this.handleMultiSelect=t=>{const e=this.items.filter(this.isListItem);if(e[t].disabled){return}const i=e.filter(((e,i)=>{if(i===t){return!e.selected}return e.selected})).map((t=>Object.assign(Object.assign({},t),{selected:true})));this.change.emit(i);this.interact.emit(Object.assign({},i[t]))};this.isListItem=t=>!("separator"in t);this.items=undefined;this.badgeIcons=undefined;this.iconSize="small";this.type=undefined;this.maxLinesSecondaryText=3}connectedCallback(){this.setup()}disconnectedCallback(){this.teardown()}componentDidLoad(){this.setup();this.triggerIconColorWarning()}render(){var t;this.config={badgeIcons:this.badgeIcons,type:this.type,iconSize:this.iconSize};let e=+((t=this.maxLinesSecondaryText)===null||t===void 0?void 0:t.toFixed());if(this.maxLinesSecondaryText<1){e=1}const r=this.listRenderer.render(this.items,this.config);return i(n,{style:{"--maxLinesSecondaryText":`${e}`}},r)}handleType(){this.setupListeners()}itemsChanged(){if(!this.mdcList){return}setTimeout((()=>{this.setup();const t=this.items.filter(this.isListItem);if(this.multiple){this.mdcList.selectedIndex=t.filter((t=>t.selected)).map((e=>t.indexOf(e)))}else{const e=t.findIndex((t=>t.selected));if(e===-1){this.mdcList.initializeListType()}else{this.mdcList.selectedIndex=e}}}),0)}triggerIconColorWarning(){var t;if((t=this.items)===null||t===void 0?void 0:t.some((t=>"iconColor"in t))){console.warn("The `iconColor` prop is deprecated, has no visual effect anymore, and will soon be removed! Use the new `Icon` interface, and instead of `iconColor: 'color-name'` write `icon: { name: 'icon-name', color: 'color-name' }`.")}}static get delegatesFocus(){return true}get element(){return r(this)}static get watchers(){return{type:["handleType"],items:["itemsChanged"]}}};gt.style=pt;const vt=":host(limel-menu){isolation:isolate;position:relative;display:inline-block;--badge-background-color:var(\n --notification-badge-background-color,\n rgb(var(--color-red-default))\n );--badge-text-color:var(\n --notification-badge-text-color,\n rgb(var(--color-white))\n )}:host([hidden]){display:none}.menu__trigger{border-color:transparent;border-width:1px;border-style:solid;background:none;color:rgb(var(--contrast-800));height:2.25rem}.menu__trigger-enabled:hover{border-color:rgb(var(--contrast-800));color:rgb(var(--contrast-1100))}.mdc-menu-surface--anchor{position:relative}limel-badge{position:absolute;top:-0.25rem;right:-0.25rem}";const _t={text:"",icon:{name:"home"},type:"icon-only"};const yt=class{constructor(r){t(this,r);this.cancel=e(this,"cancel",7);this.select=e(this,"select",7);this.navigateMenu=e(this,"navigateMenu",7);this.renderLoader=()=>{if(!this.loadingSubItems&&!this.loading){return}const t=this.getCssProperties();return i("div",{style:{width:t["--menu-surface-width"],display:"flex","align-items":"center","justify-content":"center",padding:"0.5rem 0"}},i("limel-spinner",{size:"mini",limeBranded:false}))};this.renderBreadcrumb=()=>{const t=this.getBreadcrumbsItems();if(t.length===0){return}return i("limel-breadcrumbs",{ref:this.setBreadcrumbsElement,style:{"border-bottom":"solid 1px rgb(var(--contrast-500))","flex-shrink":"0"},onSelect:this.handleBreadcrumbsSelect,onKeyDown:this.handleBreadcrumbsKeyDown,items:t})};this.handleBreadcrumbsSelect=t=>{if(!t.detail.menuItem){this.currentSubMenu=null;this.clearSearch();this.navigateMenu.emit(null);this.setFocus();return}this.handleSelect(t.detail.menuItem)};this.renderSearchField=()=>{if(!this.searcher){return}return i("limel-input-field",{tabindex:"0",ref:this.setSearchElement,placeholder:this.searchPlaceholder,type:"search",leadingIcon:"search",style:{padding:"0.25rem","box-sizing":"border-box"},value:this.searchValue,onChange:this.handleTextInput,onKeyDown:this.handleInputKeyDown})};this.renderEmptyMessage=()=>{var t;if(this.loading||this.loadingSubItems||!this.emptyResultMessage||!Array.isArray(this.searchResults)||((t=this.searchResults)===null||t===void 0?void 0:t.length)){return null}return i("p",{style:{padding:"0 1rem","text-align":"center"}},this.emptyResultMessage)};this.renderMenuList=()=>{let t=this.visibleItems;if(this.loadingSubItems||this.loading){t=[]}return i("limel-menu-list",{style:{"overflow-y":"auto","flex-grow":"1"},class:{"has-grid-layout has-interactive-items":this.gridLayout},items:t,badgeIcons:this.badgeIcons,onSelect:this.onSelect,ref:this.setListElement,onKeyDown:this.handleMenuKeyDown})};this.handleTextInput=async t=>{t.stopPropagation();const e=t.detail;this.searchValue=e;if(e===""){this.searchResults=null;this.loadingSubItems=false;return}this.loadingSubItems=true;const i=await this.searcher(e);if(this.searchValue!==e){return}this.searchResults=i;this.loadingSubItems=false};this.handleInputKeyDown=t=>{const e=t.key===c&&!t.altKey&&!t.metaKey&&!t.shiftKey;const i=t.key===f;const r=t.key===m;if(!e&&!i&&!r){return}t.stopPropagation();t.preventDefault();if(e||r){if(this.focusBreadcrumbs()){return}this.focusFirstListItem();return}if(i){this.focusLastListItem()}};this.handleListKeyDownCapture=t=>{const e=t.key===f;const i=t.key===m;if(!e&&!i){return}if(e&&this.isFirstListItemFocused()){if(this.focusBreadcrumbs()){t.stopPropagation();t.preventDefault();return}if(this.searchInput){t.stopPropagation();t.preventDefault();this.searchInput.focus()}return}if(i&&this.isLastListItemFocused()&&this.searchInput){t.stopPropagation();t.preventDefault();this.searchInput.focus()}};this.handleMenuKeyDown=t=>{var e;const i=t.key===c&&!t.altKey&&!t.metaKey&&t.shiftKey;const r=t.key===p;const n=t.key===b;if(!i&&!r&&!n){return}if(i){t.stopPropagation();t.preventDefault();(e=this.searchInput)===null||e===void 0?void 0:e.focus();return}if(!this.gridLayout&&(r||n)){const e=this.getCurrentItem();t.stopPropagation();t.preventDefault();if(n){this.goForward(e)}else if(r){this.goBack()}}};this.handleBreadcrumbsKeyDown=t=>{var e;const i=t.key===f;const r=t.key===m;if(!i&&!r){return}t.stopPropagation();t.preventDefault();if(i){(e=this.searchInput)===null||e===void 0?void 0:e.focus();return}if(r){this.focusFirstListItem()}};this.clearSearch=()=>{this.searchValue="";this.searchResults=null;this.loadingSubItems=false};this.getCurrentItem=()=>{var t,e,i,r,n,l;let d=(i=(e=(t=this.list)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.activeElement)!==null&&i!==void 0?i:null;if(d&&d.getAttribute("role")!=="menuitem"){d=d.closest('[role="menuitem"]')}if(!d){d=(n=(r=this.list)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.querySelector('[role="menuitem"][tabindex="0"]')}const o=Number.parseInt((l=d===null||d===void 0?void 0:d.dataset.index)!==null&&l!==void 0?l:"0",10);const a=this.visibleItems[o];return a!==null&&a!==void 0?a:this.visibleItems[0]};this.goForward=t=>{this.handleSelect(t,false)};this.goBack=()=>{if(!this.currentSubMenu){return}const t=this.currentSubMenu.parentItem;if(!t){this.currentSubMenu=null;this.clearSearch();this.navigateMenu.emit(null);this.setFocus();return}this.handleSelect(t)};this.setTriggerAttributes=t=>{const e={"aria-haspopup":true,"aria-expanded":this.open,"aria-controls":this.portalId,disabled:this.disabled,role:"button"};for(const[i,r]of Object.entries(e)){if(r){t.setAttribute(i,String(r))}else{t.removeAttribute(i)}}};this.onClose=()=>{this.cancel.emit();this.open=false;this.currentSubMenu=null};this.onTriggerClick=t=>{t.stopPropagation();if(this.disabled){return}this.open=!this.open};this.handleSelect=async(t,e=true)=>{if(Array.isArray(t===null||t===void 0?void 0:t.items)&&t.items.length>0){this.selectedMenuItem=t;this.clearSearch();this.currentSubMenu=t;this.navigateMenu.emit(t);this.setFocus();return}else if(S(t===null||t===void 0?void 0:t.items)){const e=t.items;this.selectedMenuItem=t;this.loadingSubItems=true;const i=await e(t);if(this.selectedMenuItem!==t){return}t.items=i;this.loadingSubItems=false;if(i===null||i===void 0?void 0:i.length){this.currentSubMenu=t;this.clearSearch();this.navigateMenu.emit(t);this.setFocus();return}}if(!e){return}this.selectedMenuItem=t;this.loadingSubItems=false;this.select.emit(t);this.open=false;this.currentSubMenu=null;this.setFocus()};this.onSelect=t=>{t.stopPropagation();this.handleSelect(t.detail)};this.setListElement=t=>{if(this.list){this.list.removeEventListener("keydown",this.handleListKeyDownCapture,true)}this.list=t;if(this.list){this.list.addEventListener("keydown",this.handleListKeyDownCapture,true)}};this.setFocus=()=>{setTimeout((()=>{if(this.searchInput&&this.searcher){const t=new IntersectionObserver((()=>{t.unobserve(this.searchInput);if(this.searchInput===window.document.activeElement){return}this.searchInput.focus()}));t.observe(this.searchInput)}else if(this.list){const t=new IntersectionObserver((()=>{t.unobserve(this.list);this.focusMenuItem()}));t.observe(this.list)}}),0)};this.setSearchElement=t=>{this.searchInput=t};this.setBreadcrumbsElement=t=>{this.breadcrumbs=t};this.focusBreadcrumbs=()=>{var t;if(!this.breadcrumbs){return false}const e=(t=this.breadcrumbs.shadowRoot)===null||t===void 0?void 0:t.querySelector("button, a");if(e){e.focus();return true}return false};this.focusFirstListItem=()=>{const t=this.getListItems();const e=t===null||t===void 0?void 0:t[0];e===null||e===void 0?void 0:e.focus()};this.focusLastListItem=()=>{const t=this.getListItems();const e=t===null||t===void 0?void 0:t.at(-1);e===null||e===void 0?void 0:e.focus()};this.isFirstListItemFocused=()=>{var t;const e=this.getListItems();if(!e){return false}const i=e[0];const r=(t=this.list.shadowRoot)===null||t===void 0?void 0:t.activeElement;return i===r};this.isLastListItemFocused=()=>{var t;const e=this.getListItems();if(!e){return false}const i=e.at(-1);const r=(t=this.list.shadowRoot)===null||t===void 0?void 0:t.activeElement;return i===r};this.getListItems=()=>{var t;if(!this.list){return null}const e=(t=this.list.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".mdc-deprecated-list-item");if(!(e===null||e===void 0?void 0:e.length)){return null}return[...e]};this.focusMenuItem=()=>{var t;if(!this.list){return}const e=this.list.shadowRoot.activeElement;e===null||e===void 0?void 0:e.blur();const i=this.visibleItems.filter(this.isMenuItem);const r=Math.max(i.findIndex((t=>t.selected)),0);const n=[...this.list.shadowRoot.querySelectorAll('[role="menuitem"]')];(t=n[r])===null||t===void 0?void 0:t.focus()};this.renderNotificationBadge=()=>{if(this.items.some(this.hasNotificationBadge)){return i("limel-badge",null)}};this.hasNotificationBadge=t=>this.isMenuItem(t)&&t.badge!==undefined;this.setTriggerRef=t=>{this.triggerElement=t};this.items=[];this.disabled=false;this.openDirection="bottom-start";this.surfaceWidth="inherit-from-items";this.open=false;this.badgeIcons=false;this.gridLayout=false;this.loading=false;this.currentSubMenu=undefined;this.rootItem=_t;this.searcher=undefined;this.searchPlaceholder=undefined;this.emptyResultMessage=undefined;this.loadingSubItems=undefined;this.searchValue=undefined;this.searchResults=undefined;this.portalId=o()}componentDidRender(){const t=this.host.shadowRoot.querySelector("slot");t.assignedElements().forEach(this.setTriggerAttributes)}render(){const t=this.getCssProperties();const e=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");const r=this.getMenuSurfaceWidth(t["--menu-surface-width"]);return i("div",{class:"mdc-menu-surface--anchor",onClick:this.onTriggerClick},i("slot",{ref:this.setTriggerRef,name:"trigger"}),this.renderNotificationBadge(),i("limel-portal",{visible:this.open,containerId:this.portalId,openDirection:this.openDirection,position:"absolute",containerStyle:{"z-index":e}},i("limel-menu-surface",{open:this.open,onDismiss:this.onClose,style:Object.assign(Object.assign({},t),{"--menu-surface-width":r,"--limel-menu-surface-display":"flex","--limel-menu-surface-flex-direction":"column"}),class:{"has-grid-layout":this.gridLayout}},this.renderSearchField(),this.renderBreadcrumb(),this.renderLoader(),this.renderEmptyMessage(),this.renderMenuList())))}itemsWatcher(){this.clearSearch();this.setFocus()}openWatcher(t){const e=t;if(e){this.setFocus()}else{this.clearSearch()}}getBreadcrumbsItems(){const t=[];let e=this.currentSubMenu;while(e){t.push({text:e.text,icon:e.icon,menuItem:e});e=e.parentItem}if(t.length>0||this.rootItem!==_t){t.push(this.rootItem)}return t.reverse()}getCssProperties(){const t=["--menu-surface-width","--list-grid-item-max-width","--list-grid-item-min-width","--list-grid-gap","--notification-badge-background-color","--notification-badge-text-color"];const e=getComputedStyle(this.host);const i=t.map((t=>e.getPropertyValue(t)));return R(t,i)}isMenuItem(t){return!("separator"in t)}getMenuSurfaceWidth(t){var e,i,r,n;if(t){return t}if(this.surfaceWidth==="inherit-from-trigger"){const t=(e=this.triggerElement)===null||e===void 0?void 0:e.assignedElements();if(!(t===null||t===void 0?void 0:t.length)||!((i=t[0])===null||i===void 0?void 0:i.clientWidth)){return""}return`${t[0].clientWidth}px`}else if(this.surfaceWidth==="inherit-from-menu"){if(!((r=this.host)===null||r===void 0?void 0:r.clientWidth)){return""}return`${(n=this.host)===null||n===void 0?void 0:n.clientWidth}px`}return""}get visibleItems(){var t;if(Array.isArray(this.searchResults)&&this.searchValue){return this.searchResults}else if(Array.isArray((t=this.currentSubMenu)===null||t===void 0?void 0:t.items)){return this.currentSubMenu.items.map((t=>Object.assign(Object.assign({},t),{parentItem:this.currentSubMenu})))}return this.items}get host(){return r(this)}static get watchers(){return{items:["itemsWatcher"],open:["openWatcher"]}}};yt.style=vt;
134
134
  /**
135
135
  * @license
136
136
  * Copyright 2018 Google Inc.
@@ -263,4 +263,4 @@ import{r as t,c as e,h as i,g as r,H as n}from"./p-bdfa539c.js";import{m as l,r
263
263
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
264
264
  * THE SOFTWARE.
265
265
  */var Dt=function(t){E(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.attachTo=function(t){return new e(t)};e.prototype.initialize=function(t,e){if(t===void 0){t=function(t){return new Ct(t)}}if(e===void 0){e=function(t){return new ut(t)}}this.menuSurfaceFactory=t;this.listFactory=e};e.prototype.initialSyncWithDOM=function(){var t=this;this.menuSurface=this.menuSurfaceFactory(this.root);var e=this.root.querySelector(zt.LIST_SELECTOR);if(e){this.list=this.listFactory(e);this.list.wrapFocus=true}else{this.list=null}this.handleKeydown=function(e){t.foundation.handleKeydown(e)};this.handleItemAction=function(e){t.foundation.handleItemAction(t.items[e.detail.index])};this.handleMenuSurfaceOpened=function(){t.foundation.handleMenuSurfaceOpened()};this.menuSurface.listen(At.strings.OPENED_EVENT,this.handleMenuSurfaceOpened);this.listen("keydown",this.handleKeydown);this.listen(ht.strings.ACTION_EVENT,this.handleItemAction)};e.prototype.destroy=function(){if(this.list){this.list.destroy()}this.menuSurface.destroy();this.menuSurface.unlisten(At.strings.OPENED_EVENT,this.handleMenuSurfaceOpened);this.unlisten("keydown",this.handleKeydown);this.unlisten(ht.strings.ACTION_EVENT,this.handleItemAction);t.prototype.destroy.call(this)};Object.defineProperty(e.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(t){if(t){this.menuSurface.open()}else{this.menuSurface.close()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapFocus",{get:function(){return this.list?this.list.wrapFocus:false},set:function(t){if(this.list){this.list.wrapFocus=t}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hasTypeahead",{set:function(t){if(this.list){this.list.hasTypeahead=t}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typeaheadInProgress",{get:function(){return this.list?this.list.typeaheadInProgress:false},enumerable:false,configurable:true});e.prototype.typeaheadMatchItem=function(t,e){if(this.list){return this.list.typeaheadMatchItem(t,e)}return-1};e.prototype.layout=function(){if(this.list){this.list.layout()}};Object.defineProperty(e.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"singleSelection",{set:function(t){if(this.list){this.list.singleSelection=t}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:$.UNSET_INDEX},set:function(t){if(this.list){this.list.selectedIndex=t}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"quickOpen",{set:function(t){this.menuSurface.quickOpen=t},enumerable:false,configurable:true});e.prototype.setDefaultFocusState=function(t){this.foundation.setDefaultFocusState(t)};e.prototype.setAnchorCorner=function(t){this.menuSurface.setAnchorCorner(t)};e.prototype.setAnchorMargin=function(t){this.menuSurface.setAnchorMargin(t)};e.prototype.setSelectedIndex=function(t){this.foundation.setSelectedIndex(t)};e.prototype.setEnabled=function(t,e){this.foundation.setEnabled(t,e)};e.prototype.getOptionByIndex=function(t){var e=this.items;if(t<e.length){return this.items[t]}else{return null}};e.prototype.getPrimaryTextAtIndex=function(t){var e=this.getOptionByIndex(t);if(e&&this.list){return this.list.getPrimaryText(e)||""}return""};e.prototype.setFixedPosition=function(t){this.menuSurface.setFixedPosition(t)};e.prototype.setIsHoisted=function(t){this.menuSurface.setIsHoisted(t)};e.prototype.setAbsolutePosition=function(t,e){this.menuSurface.setAbsolutePosition(t,e)};e.prototype.setAnchorElement=function(t){this.menuSurface.anchorElement=t};e.prototype.getDefaultFoundation=function(){var t=this;var e={addClassToElementAtIndex:function(e,i){var r=t.items;r[e].classList.add(i)},removeClassFromElementAtIndex:function(e,i){var r=t.items;r[e].classList.remove(i)},addAttributeToElementAtIndex:function(e,i,r){var n=t.items;n[e].setAttribute(i,r)},removeAttributeFromElementAtIndex:function(e,i){var r=t.items;r[e].removeAttribute(i)},getAttributeFromElementAtIndex:function(e,i){var r=t.items;return r[e].getAttribute(i)},elementContainsClass:function(t,e){return t.classList.contains(e)},closeSurface:function(e){t.menuSurface.close(e)},getElementIndex:function(e){return t.items.indexOf(e)},notifySelected:function(e){t.emit(zt.SELECTED_EVENT,{index:e.index,item:t.items[e.index]})},getMenuItemCount:function(){return t.items.length},focusItemAtIndex:function(e){t.items[e].focus()},focusListRoot:function(){t.root.querySelector(zt.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(e){return!!C(t.items[e],"."+Ot.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(e){var i=C(t.items[e],"."+Ot.MENU_SELECTION_GROUP);var r=i.querySelector("."+Ot.MENU_SELECTED_LIST_ITEM);return r?t.items.indexOf(r):-1}};return new Lt(e)};return e}(O);class jt{constructor(){this.defaultConfig={isOpen:true,badgeIcons:false};this.getIndexForWhichToApplyTabIndex=t=>{let e;for(let i=0,r=t.length;i<r;i+=1){if("separator"in t[i]);else{const r=t[i];if(r.disabled){continue}if(r.selected){e=i;break}if(e===undefined){e=i}}}return e};this.renderMenuItem=(t,e)=>{var r;if("separator"in t){return i("li",{class:"mdc-deprecated-list-divider",role:"separator",key:`sep-${e}`},this.renderTextForSeparator(t),i("div",{class:"limel-list-divider-line"}))}const n={};if(e===this.applyTabIndexToItemAtIndex){n.tabindex="0"}const l=this.hasSubItems(t);const d=l||t.badge!==undefined||!!("commandText"in t)&&!!t.commandText;const o=d?{name:"limel-menu-item-meta",props:{commandText:t.commandText,badge:t.badge,showChevron:l}}:undefined;const a=(r=t.id)!==null&&r!==void 0?r:`item-${e}`;const s={"mdc-deprecated-list-item":true,"mdc-deprecated-list-item--disabled":!!t.disabled};return i("limel-list-item",Object.assign({key:a,class:s,"data-index":e},n,{"aria-haspopup":l?"menu":undefined,"aria-expanded":l?"false":undefined,type:"menuitem",text:t.text,secondaryText:t.secondaryText,icon:t.icon,primaryComponent:o,badgeIcon:this.config.badgeIcons,selected:t.selected,disabled:t.disabled}))};this.renderTextForSeparator=t=>{if("text"in t){return i("h2",{class:"limel-list-divider-title"},t.text)}};this.hasSubItems=t=>Array.isArray(t.items)&&t.items.length>0||S(t.items)}render(t,e={}){t=t||[];this.config=Object.assign(Object.assign({},this.defaultConfig),e);this.applyTabIndexToItemAtIndex=this.getIndexForWhichToApplyTabIndex(t);return i("ul",{class:"mdc-deprecated-list",role:"menu","aria-orientation":"vertical",style:{"--maxLinesSecondaryText":"2"}},t.map(this.renderMenuItem))}}const Nt='@charset "UTF-8";:host(limel-list){display:block;isolation:isolate}:host([hidden]){display:none}ul{--mdc-theme-text-icon-on-background:var(\n --icon-color,\n rgb(var(--contrast-900))\n );margin:var(--list-margin, 0.25rem);border-radius:0.5rem;padding:0;list-style:none}.mdc-deprecated-list-divider{border-bottom-color:transparent;display:flex;align-items:center;gap:0.75rem;height:auto;padding:0 0.5rem}.limel-list-divider-line{background-color:rgb(var(--contrast-400));height:0.125rem;border-radius:1rem;min-width:1rem;flex-grow:1}.limel-list-divider-title{all:unset;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--contrast-900));font-size:var(--limel-theme-default-small-font-size)}:host(.has-striped-rows) .mdc-deprecated-list{border:1px solid rgb(var(--contrast-400))}:host(.has-striped-rows) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(even),:host(.has-striped-rows.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(even){background-color:var(--list-background-color-of-odd-interactive-items, rgb(var(--contrast-200)))}:host(.has-striped-rows) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(odd),:host(.has-striped-rows.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):not(:hover):nth-child(odd){background-color:var(--list-background-color-of-even-interactive-items, rgb(var(--contrast-100)))}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus-visible{will-change:color, background-color, box-shadow, transform}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover{box-shadow:var(--button-shadow-hovered)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):hover,:host(.has-interactive-items) limel-list-item:not([disabled]):not([disabled=true]):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(.has-grid-layout){--gap:var(--list-grid-gap, 0.5rem);padding:var(--gap);}:host(.has-grid-layout) .mdc-deprecated-list{display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, max(var(--list-grid-item-max-width, 10rem) - var(--gap), var(--list-grid-item-min-width, 7.5rem))), 1fr));max-width:var(--list-grid-max-width, 100%)}:host(.has-grid-layout) .mdc-deprecated-list limel-list-item{border-radius:0.5rem !important}:host(.has-grid-layout) .mdc-deprecated-list-divider{grid-column:1/-1}:host(.static-actions-list){z-index:1;background-color:var(--limel-theme-surface-background-color)}:host(.has-position-sticky){position:sticky;box-shadow:0 0 0.75rem 0.5rem var(--limel-theme-surface-background-color)}:host(.has-position-sticky.is-on-top){top:0}:host(.has-position-sticky.is-at-bottom){bottom:0}:host(.is-on-top){border-bottom:1px solid rgb(var(--contrast-400));margin-bottom:0.5rem;padding-bottom:0.25rem}:host(.is-at-bottom){border-top:1px solid rgb(var(--contrast-400));margin-top:0.5rem;padding-top:0.25rem}:host(limel-menu-list){display:block;--badge-background-color:var(\n --notification-badge-background-color,\n rgb(var(--color-red-default))\n );--badge-text-color:var(\n --notification-badge-text-color,\n rgb(var(--color-white))\n )}.mdc-menu{max-height:70vh}.mdc-deprecated-list{margin:0.25rem}';const{SELECTED_EVENT:Ft}=zt;const Mt=class{constructor(i){t(this,i);this.select=e(this,"select",7);this.interact=e(this,"interact",7);this.MenuListRenderer=new jt;this.setup=()=>{this.setupMenu();this.setupListeners()};this.setupMenu=()=>{if(this.mdcMenu){this.teardown();this.mdcMenu=null}const t=this.element.shadowRoot.querySelector(".mdc-menu");if(!t){return}this.mdcMenu=new Dt(t);this.mdcMenu.hasTypeahead=true;this.mdcMenu.wrapFocus=true;for(const t of this.mdcMenu.items)new D(t)};this.setupListeners=()=>{if(!this.mdcMenu){return}this.mdcMenu.unlisten(Ft,this.handleMenuSelect);this.mdcMenu.listen(Ft,this.handleMenuSelect)};this.teardown=()=>{var t,e;(t=this.mdcMenu)===null||t===void 0?void 0:t.unlisten(Ft,this.handleMenuSelect);(e=this.mdcMenu)===null||e===void 0?void 0:e.destroy()};this.handleMenuSelect=t=>{this.handleSingleSelect(t.detail.index)};this.handleSingleSelect=t=>{const e=this.items.filter(this.isMenuItem);if(e[t].disabled){return}const i=e.find((t=>!!t.selected));let r;if(i){r=Object.assign(Object.assign({},i),{selected:false});this.select.emit(r)}if(e[t]!==i){r=Object.assign(Object.assign({},e[t]),{selected:false});this.select.emit(r)}this.interact.emit(r)};this.isMenuItem=t=>!("separator"in t);this.items=undefined;this.badgeIcons=undefined;this.iconSize="small"}connectedCallback(){this.setup()}disconnectedCallback(){this.teardown()}componentDidLoad(){this.setup();this.triggerIconColorWarning()}render(){this.config={badgeIcons:this.badgeIcons,iconSize:this.iconSize};const t=this.MenuListRenderer.render(this.items,this.config);return i("div",{class:"mdc-menu mdc-menu-surface"},t)}itemsChanged(){setTimeout((()=>{this.setup()}),0)}triggerIconColorWarning(){var t;if((t=this.items)===null||t===void 0?void 0:t.some((t=>"iconColor"in t))){console.warn("The `iconColor` prop is deprecated, has no visual effect anymore, and will soon be removed! Use the new `Icon` interface, and instead of `iconColor: 'color-name'` write `icon: { name: 'icon-name', color: 'color-name' }`.")}}static get delegatesFocus(){return true}get element(){return r(this)}static get watchers(){return{items:["itemsChanged"]}}};Mt.style=Nt;const Bt=":host(limel-menu-surface){display:block;max-height:inherit}.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform, opacity;z-index:8;transition:opacity 0.03s linear, transform 0.12s cubic-bezier(0, 0, 0.2, 1), height 250ms cubic-bezier(0, 0, 0.2, 1);box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);color:#000;color:var(--mdc-theme-on-surface, #000);border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity 0.075s linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left;}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-menu{min-width:112px;min-width:var(--mdc-menu-min-width, 112px)}.mdc-menu .mdc-deprecated-list-item__meta{color:rgba(0, 0, 0, 0.87)}.mdc-menu .mdc-deprecated-list-item__graphic{color:rgba(0, 0, 0, 0.87)}.mdc-menu .mdc-deprecated-list{color:rgba(0, 0, 0, 0.87)}.mdc-menu .mdc-deprecated-list,.mdc-menu .mdc-list{position:relative}.mdc-menu .mdc-deprecated-list .mdc-elevation-overlay,.mdc-menu .mdc-list .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-menu .mdc-deprecated-list-divider{margin:8px 0}.mdc-menu .mdc-deprecated-list-item{user-select:none}.mdc-menu .mdc-deprecated-list-item--disabled{cursor:auto}.mdc-menu a.mdc-deprecated-list-item .mdc-deprecated-list-item__text,.mdc-menu a.mdc-deprecated-list-item .mdc-deprecated-list-item__graphic{pointer-events:none}.mdc-menu__selection-group{padding:0;fill:currentColor}.mdc-menu__selection-group .mdc-deprecated-list-item{padding-left:56px;padding-right:16px}[dir=rtl] .mdc-menu__selection-group .mdc-deprecated-list-item,.mdc-menu__selection-group .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:56px;}.mdc-menu__selection-group .mdc-menu__selection-group-icon{left:16px;right:initial;display:none;position:absolute;top:50%;transform:translateY(-50%)}[dir=rtl] .mdc-menu__selection-group .mdc-menu__selection-group-icon,.mdc-menu__selection-group .mdc-menu__selection-group-icon[dir=rtl]{left:initial;right:16px;}.mdc-menu-item--selected .mdc-menu__selection-group-icon{display:inline}.mdc-menu-surface{opacity:1;display:var(--limel-menu-surface-display, block);flex-direction:var(--limel-menu-surface-flex-direction, row);max-height:inherit;position:relative;--mdc-menu-max-width:calc(\n 100vw - 2rem\n );width:var(--menu-surface-width, auto);background-color:var(--lime-elevated-surface-background-color)}:host(limel-menu-surface.has-grid-layout) .mdc-menu-surface{width:var(--menu-surface-width, min(100vw - 2rem, 40rem));max-width:unset}";const Pt=class{constructor(i){t(this,i);this.dismiss=e(this,"dismiss",7);this.setup=()=>{const t=this.host.shadowRoot.querySelector(".mdc-menu-surface");if(!t){return}this.menuSurface=new Ct(t);this.menuSurface.setAnchorCorner(Tt.TOP_START);document.addEventListener("mousedown",this.handleDocumentClick,{capture:true});this.host.addEventListener("keydown",this.handleKeyDown)};this.teardown=()=>{var t;(t=this.menuSurface)===null||t===void 0?void 0:t.destroy();document.removeEventListener("mousedown",this.handleDocumentClick,{capture:true});this.host.removeEventListener("keydown",this.handleKeyDown)};this.handleDocumentClick=t=>{const e=t.composedPath?t.composedPath():[];if(!this.open){return}if(j(t.target,this.host)){return}if(this.allowClicksElement){const t=e.includes(this.allowClicksElement);if(t){return}}this.dismiss.emit();this.preventClickEventPropagation()};this.preventClickEventPropagation=()=>{document.addEventListener("click",this.stopEvent,{capture:true,once:true});document.addEventListener("mouseup",this.stopEvent,{capture:true,once:true});document.addEventListener("mouseup",(()=>{document.removeEventListener("click",this.stopEvent,{capture:true})}),{once:true})};this.stopEvent=t=>{t.stopPropagation();t.preventDefault()};this.handleKeyDown=t=>{const e=t.key===h;const i=t.key===c;if(this.open&&(e||i)){t.stopPropagation();this.dismiss.emit()}};this.open=false;this.allowClicksElement=undefined}connectedCallback(){this.setup()}disconnectedCallback(){this.teardown()}componentDidLoad(){this.setup()}render(){const t={"mdc-menu":true,"mdc-menu-surface":true,"mdc-menu-surface--open":this.open,"mdc-elevation-transition":true,"mdc-elevation--z4":true};return i("div",{class:t,tabindex:"-1"},i("slot",null))}get host(){return r(this)}};Pt.style=Bt;const Yt=":host(limel-spinner){display:block}@keyframes spin{50%{transform:rotate(180deg)}100%{transform:rotate(720deg)}}@keyframes fade-in-the-spinner{0%{transform:scale(0.7);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-colored-circles{5%{stroke-dashoffset:0}10%,100%{stroke-dashoffset:63}}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem;transform:translate3d(0, 0, 0);animation:fade-in-the-spinner 0.5s ease forwards}:host([size=x-small]){height:2rem;width:2rem}:host([size=small]){height:2.125rem;width:2.125rem}:host([size=medium]){height:2.75rem;width:2.75rem}:host([size=large]){height:4rem;width:4rem}.spinner{animation:spin 1s linear infinite;transform-origin:center}.color{animation:animate-colored-circles 10s linear infinite;fill:none;stroke-dasharray:63;stroke-dashoffset:63;stroke-linecap:round;stroke-width:4}.color.thick{stroke-width:10}.color:nth-child(1){stroke:var(--spinner-color-1, rgb(var(--lime-brand-color-lime-green)))}.color:nth-child(2){stroke:var(--spinner-color-2, rgb(var(--lime-brand-color-ocean-teal)));animation-delay:1s}.color:nth-child(3){stroke:var(--spinner-color-3, rgb(var(--lime-brand-color-aqua)));animation-delay:2s}.color:nth-child(4){stroke:var(--spinner-color-4, rgb(var(--lime-brand-color-bubble-gum)));animation-delay:3s}.color:nth-child(5){stroke:var(--spinner-color-5, rgb(var(--lime-brand-color-sunny-orange)));animation-delay:4s}.color:nth-child(6){stroke:var(--spinner-color-6, rgb(var(--lime-brand-color-lime-green)));animation-delay:5s}.color:nth-child(7){stroke:var(--spinner-color-7, rgb(var(--lime-brand-color-ocean-teal)));animation-delay:6s}.color:nth-child(8){stroke:var(--spinner-color-8, rgb(var(--lime-brand-color-aqua)));animation-delay:7s}.color:nth-child(9){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-bubble-gum)));animation-delay:8s}.color:nth-child(10){stroke:var(--spinner-color-10, rgb(var(--contrast-700)));animation-delay:9s}.outline{stroke:rgba(var(--lime-brand-color-light-grey), 0.3);fill:none;stroke-linecap:round;stroke-width:4}.outline.thick{stroke-width:10}";const Xt=class{constructor(e){t(this,e);this.size="mini";this.limeBranded=false}render(){return[i("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},this.renderSpinner())]}renderSpinner(){if(!this.limeBranded){return i("g",null,i("circle",{class:"outline",cx:"12",cy:"12",r:"10"}),i("g",{class:"spinner"},i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"}),i("circle",{class:"color",cx:"12",cy:"12",r:"10"})))}return i("g",null,i("g",{"clip-path":"url(#mask)"},i("circle",{class:"outline thick",cx:"12",cy:"12",r:"12"}),i("g",{class:"spinner"},i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),i("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}))),i("clipPath",{id:"mask"},i("path",{d:"M2.166 11.248C2.166 5.04 7.058 0 13.083 0 19.108 0 24 5.04 24 11.248c0 3.229-1.307 6.548-4.533 9.306-3.908 3.343-9.15 3.8-17.254 3.249-2.405-.164-2.753-.588-1.51-1.533C4.61 19.3 2.165 17.025 2.165 11.248zm3.124 9.834c5.563.227 9.416-.246 12.397-2.76 2.432-2.05 3.482-4.56 3.51-7.074.05-4.613-3.636-8.36-8.114-8.36-4.478 0-8.114 3.746-8.114 8.36 0 2.793.607 4.737.726 6.345.092 1.252.03 2.388-.405 3.49z"})))}};Xt.style=Yt;export{F as limel_breadcrumbs,Y as limel_input_field,gt as limel_list,yt as limel_menu,Mt as limel_menu_list,Pt as limel_menu_surface,Xt as limel_spinner};
266
- //# sourceMappingURL=p-56c9bb65.entry.js.map
266
+ //# sourceMappingURL=p-19a9b96b.entry.js.map