@limetech/lime-elements 37.68.0 → 37.69.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 (64) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-action-bar-item_2.cjs.entry.js +122 -0
  4. package/dist/cjs/limel-action-bar-item_2.cjs.entry.js.map +1 -0
  5. package/dist/cjs/{limel-action-bar_4.cjs.entry.js → limel-action-bar_2.cjs.entry.js} +1 -115
  6. package/dist/cjs/limel-action-bar_2.cjs.entry.js.map +1 -0
  7. package/dist/cjs/{limel-breadcrumbs_5.cjs.entry.js → limel-breadcrumbs_7.cjs.entry.js} +3344 -407
  8. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js.map +1 -0
  9. package/dist/cjs/limel-card.cjs.entry.js +85 -0
  10. package/dist/cjs/limel-card.cjs.entry.js.map +1 -0
  11. package/dist/cjs/limel-dynamic-label_2.cjs.entry.js +91 -0
  12. package/dist/cjs/limel-dynamic-label_2.cjs.entry.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/collection/collection-manifest.json +1 -0
  15. package/dist/collection/components/card/card.css +202 -0
  16. package/dist/collection/components/card/card.js +282 -0
  17. package/dist/collection/components/card/card.js.map +1 -0
  18. package/dist/esm/lime-elements.js +1 -1
  19. package/dist/esm/limel-action-bar-item_2.entry.js +117 -0
  20. package/dist/esm/limel-action-bar-item_2.entry.js.map +1 -0
  21. package/dist/esm/{limel-action-bar_4.entry.js → limel-action-bar_2.entry.js} +2 -114
  22. package/dist/esm/limel-action-bar_2.entry.js.map +1 -0
  23. package/dist/esm/{limel-breadcrumbs_5.entry.js → limel-breadcrumbs_7.entry.js} +3333 -398
  24. package/dist/esm/limel-breadcrumbs_7.entry.js.map +1 -0
  25. package/dist/esm/limel-card.entry.js +81 -0
  26. package/dist/esm/limel-card.entry.js.map +1 -0
  27. package/dist/esm/limel-dynamic-label_2.entry.js +86 -0
  28. package/dist/esm/limel-dynamic-label_2.entry.js.map +1 -0
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/lime-elements/lime-elements.esm.js +1 -1
  31. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  32. package/dist/lime-elements/p-18b068c9.entry.js +2 -0
  33. package/dist/lime-elements/p-18b068c9.entry.js.map +1 -0
  34. package/dist/lime-elements/p-7f9e0f52.entry.js +2 -0
  35. package/dist/lime-elements/p-7f9e0f52.entry.js.map +1 -0
  36. package/dist/lime-elements/p-97ae94e0.entry.js +266 -0
  37. package/dist/lime-elements/p-97ae94e0.entry.js.map +1 -0
  38. package/dist/lime-elements/p-9f8aa8e7.entry.js +2 -0
  39. package/dist/lime-elements/p-9f8aa8e7.entry.js.map +1 -0
  40. package/dist/lime-elements/p-a8e24972.entry.js +2 -0
  41. package/dist/lime-elements/p-a8e24972.entry.js.map +1 -0
  42. package/dist/types/components/card/card.d.ts +75 -0
  43. package/dist/types/components.d.ts +143 -4
  44. package/package.json +1 -1
  45. package/dist/cjs/component-864afce0.js +0 -2447
  46. package/dist/cjs/component-864afce0.js.map +0 -1
  47. package/dist/cjs/limel-action-bar_4.cjs.entry.js.map +0 -1
  48. package/dist/cjs/limel-breadcrumbs_5.cjs.entry.js.map +0 -1
  49. package/dist/cjs/limel-dynamic-label_4.cjs.entry.js +0 -600
  50. package/dist/cjs/limel-dynamic-label_4.cjs.entry.js.map +0 -1
  51. package/dist/esm/component-5e233629.js +0 -2439
  52. package/dist/esm/component-5e233629.js.map +0 -1
  53. package/dist/esm/limel-action-bar_4.entry.js.map +0 -1
  54. package/dist/esm/limel-breadcrumbs_5.entry.js.map +0 -1
  55. package/dist/esm/limel-dynamic-label_4.entry.js +0 -593
  56. package/dist/esm/limel-dynamic-label_4.entry.js.map +0 -1
  57. package/dist/lime-elements/p-589ba37a.entry.js +0 -2
  58. package/dist/lime-elements/p-589ba37a.entry.js.map +0 -1
  59. package/dist/lime-elements/p-b9b0853b.entry.js +0 -68
  60. package/dist/lime-elements/p-b9b0853b.entry.js.map +0 -1
  61. package/dist/lime-elements/p-bd261424.entry.js +0 -2
  62. package/dist/lime-elements/p-bd261424.entry.js.map +0 -1
  63. package/dist/lime-elements/p-d528606a.js +0 -200
  64. package/dist/lime-elements/p-d528606a.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-6156b4fd.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-6156b4fd.js';
2
2
  import { m as makeEnterClickable, r as removeEnterClickable } from './make-enter-clickable-a30589fb.js';
3
3
  import { c as createRandomString } from './random-string-812b1c35.js';
4
4
  import { g as getIconName, a as getIconColor } from './get-icon-props-0b65f85e.js';
@@ -7,11 +7,13 @@ import { g as getHref, a as getTarget } from './link-helper-0c4a5c2e.js';
7
7
  import { g as globalConfig } from './config-656a588f.js';
8
8
  import { M as MDCTextField } from './component-e6eb55fa.js';
9
9
  import { d as debounce } from './debounce-9a05c91c.js';
10
+ import { C as CheckboxTemplate } from './checkbox.template-c42b7020.js';
11
+ import { _ as __extends, a as __assign, M as MDCFoundation, m as matches, d as closest, b as MDCComponent, c as __values } from './ponyfill-9f1f6cd2.js';
10
12
  import { i as isFunction } from './eq-c1c7f528.js';
11
13
  import { z as zipObject } from './zipObject-2bb1968e.js';
12
- import { _ as __extends, a as __assign, M as MDCFoundation, b as MDCComponent, d as closest } from './ponyfill-9f1f6cd2.js';
13
- import { M as MDCMenuSurfaceFoundation, c as cssClasses$1, a as MDCListFoundation, n as numbers$1, b as MDCMenuSurface, d as MDCList } from './component-5e233629.js';
14
+ import { g as getCorrectPropertyName } from './util-f1bde91c.js';
14
15
  import { M as MDCRipple } from './component-a531729c.js';
16
+ import { i as isDescendant } from './dom-0b0170a0.js';
15
17
  import './component-b934161d.js';
16
18
  import './isObject-c74e273c.js';
17
19
  import './toNumber-a6ed64f0.js';
@@ -20,7 +22,6 @@ import './isObjectLike-38996507.js';
20
22
  import './_assignValue-fb2bf80a.js';
21
23
  import './_defineProperty-2105cb48.js';
22
24
  import './_getNative-93d6bfe9.js';
23
- import './util-f1bde91c.js';
24
25
 
25
26
  const breadcrumbsCss = "@charset \"UTF-8\";:host(limel-breadcrumbs){--limel-breadcrumbs-item-height:1.5rem;--limel-breadcrumbs-gap:0.75rem;--limel-breadcrumbs-gap:0.75rem;--limel-breadcrumbs-item-text-color:var(\n --breadcrumbs-item-text-color,\n rgb(var(--contrast-1500))\n );--limel-overflow-mask-horizontal:linear-gradient(\n to right,\n transparent 0%,\n black calc(0% + var(--limel-left-edge-fade-width, 1rem)),\n black calc(100% - var(--limel-right-edge-fade-width, 1rem)),\n transparent 100%\n );-webkit-mask-image:var(--limel-overflow-mask-horizontal);mask-image:var(--limel-overflow-mask-horizontal);padding-left:var(--limel-left-edge-fade-width, 1rem);padding-right:var(--limel-right-edge-fade-width, 1rem);--limel-left-edge-fade-width:0.5rem;--limel-right-edge-fade-width:0.5rem}ol,li,.step{all:unset}*{box-sizing:border-box}ol{padding:0.5rem;gap:var(--limel-breadcrumbs-gap)}.step{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0.25rem;max-width:var(--breadcrumbs-item-max-width, 10rem);height:var(--limel-breadcrumbs-item-height);color:var(--limel-breadcrumbs-item-text-color);border-radius:100vw;font-size:0.875rem;padding:0 0.25rem}.step:not(:has(.text)){padding:0 0.125rem}.step:not(.last):focus{outline:none}.step:not(.last):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.step:not(.last):after{content:var(--limel-breadcrumbs-divider);display:flex;align-items:center;justify-content:center;width:var(--limel-breadcrumbs-gap);position:absolute;top:0;right:calc(var(--limel-breadcrumbs-gap) * -1);bottom:0;left:auto;text-align:center}a.step{position:relative;cursor:pointer;transition:color 0.2s ease;color:var(--limel-breadcrumbs-item-text-color)}a.step:before{transition:opacity 0.2s ease, transform 0.3s ease-out;content:\"\";position:absolute;inset:auto 0 0 0;width:calc(100% - 0.5rem);margin:auto;height:0.125rem;border-radius:1rem;background-color:currentColor;opacity:0;transform:scale(0.6)}a.step:hover{color:rgb(var(--color-blue-default))}a.step:hover:before{opacity:0.3;transform:scale(1)}button.step:not(.last){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-breadcrumbs-item-text-color);background-color:transparent}button.step:not(.last):hover,button.step:not(.last):focus,button.step:not(.last):focus-visible{will-change:color, background-color, box-shadow, transform}button.step:not(.last):hover{transform:translate3d(0, 0.01rem, 0);color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}button.step:not(.last):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)}button.step:not(.last):hover,button.step:not(.last):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}limel-icon{flex-shrink:0;width:calc(var(--limel-breadcrumbs-item-height) - 0.25rem);height:calc(var(--limel-breadcrumbs-item-height) - 0.25rem)}.text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 0.25rem}.last{opacity:0.7}:host(limel-breadcrumbs){box-sizing:border-box;display:flex;width:100%;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;direction:rtl}:host(limel-breadcrumbs)::-webkit-scrollbar{display:none}ol{display:flex;flex-direction:row-reverse;justify-content:flex-end;margin-right:auto}.step{direction:ltr}";
26
27
 
@@ -635,431 +636,3258 @@ const InputField = class {
635
636
  };
636
637
  InputField.style = inputFieldCss;
637
638
 
639
+ /**
640
+ * @license
641
+ * Copyright 2018 Google Inc.
642
+ *
643
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
644
+ * of this software and associated documentation files (the "Software"), to deal
645
+ * in the Software without restriction, including without limitation the rights
646
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
647
+ * copies of the Software, and to permit persons to whom the Software is
648
+ * furnished to do so, subject to the following conditions:
649
+ *
650
+ * The above copyright notice and this permission notice shall be included in
651
+ * all copies or substantial portions of the Software.
652
+ *
653
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
654
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
655
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
656
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
657
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
658
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
659
+ * THE SOFTWARE.
660
+ */
661
+ var _a, _b;
662
+ var cssClasses$2 = {
663
+ LIST_ITEM_ACTIVATED_CLASS: 'mdc-list-item--activated',
664
+ LIST_ITEM_CLASS: 'mdc-list-item',
665
+ LIST_ITEM_DISABLED_CLASS: 'mdc-list-item--disabled',
666
+ LIST_ITEM_SELECTED_CLASS: 'mdc-list-item--selected',
667
+ LIST_ITEM_TEXT_CLASS: 'mdc-list-item__text',
668
+ LIST_ITEM_PRIMARY_TEXT_CLASS: 'mdc-list-item__primary-text',
669
+ ROOT: 'mdc-list',
670
+ };
671
+ var evolutionClassNameMap = (_a = {},
672
+ _a["" + cssClasses$2.LIST_ITEM_ACTIVATED_CLASS] = 'mdc-list-item--activated',
673
+ _a["" + cssClasses$2.LIST_ITEM_CLASS] = 'mdc-list-item',
674
+ _a["" + cssClasses$2.LIST_ITEM_DISABLED_CLASS] = 'mdc-list-item--disabled',
675
+ _a["" + cssClasses$2.LIST_ITEM_SELECTED_CLASS] = 'mdc-list-item--selected',
676
+ _a["" + cssClasses$2.LIST_ITEM_PRIMARY_TEXT_CLASS] = 'mdc-list-item__primary-text',
677
+ _a["" + cssClasses$2.ROOT] = 'mdc-list',
678
+ _a);
679
+ var deprecatedClassNameMap = (_b = {},
680
+ _b["" + cssClasses$2.LIST_ITEM_ACTIVATED_CLASS] = 'mdc-deprecated-list-item--activated',
681
+ _b["" + cssClasses$2.LIST_ITEM_CLASS] = 'mdc-deprecated-list-item',
682
+ _b["" + cssClasses$2.LIST_ITEM_DISABLED_CLASS] = 'mdc-deprecated-list-item--disabled',
683
+ _b["" + cssClasses$2.LIST_ITEM_SELECTED_CLASS] = 'mdc-deprecated-list-item--selected',
684
+ _b["" + cssClasses$2.LIST_ITEM_TEXT_CLASS] = 'mdc-deprecated-list-item__text',
685
+ _b["" + cssClasses$2.LIST_ITEM_PRIMARY_TEXT_CLASS] = 'mdc-deprecated-list-item__primary-text',
686
+ _b["" + cssClasses$2.ROOT] = 'mdc-deprecated-list',
687
+ _b);
688
+ var strings$2 = {
689
+ ACTION_EVENT: 'MDCList:action',
690
+ ARIA_CHECKED: 'aria-checked',
691
+ ARIA_CHECKED_CHECKBOX_SELECTOR: '[role="checkbox"][aria-checked="true"]',
692
+ ARIA_CHECKED_RADIO_SELECTOR: '[role="radio"][aria-checked="true"]',
693
+ ARIA_CURRENT: 'aria-current',
694
+ ARIA_DISABLED: 'aria-disabled',
695
+ ARIA_ORIENTATION: 'aria-orientation',
696
+ ARIA_ORIENTATION_HORIZONTAL: 'horizontal',
697
+ ARIA_ROLE_CHECKBOX_SELECTOR: '[role="checkbox"]',
698
+ ARIA_SELECTED: 'aria-selected',
699
+ ARIA_INTERACTIVE_ROLES_SELECTOR: '[role="listbox"], [role="menu"]',
700
+ ARIA_MULTI_SELECTABLE_SELECTOR: '[aria-multiselectable="true"]',
701
+ CHECKBOX_RADIO_SELECTOR: 'input[type="checkbox"], input[type="radio"]',
702
+ CHECKBOX_SELECTOR: 'input[type="checkbox"]',
703
+ CHILD_ELEMENTS_TO_TOGGLE_TABINDEX: "\n ." + cssClasses$2.LIST_ITEM_CLASS + " button:not(:disabled),\n ." + cssClasses$2.LIST_ITEM_CLASS + " a,\n ." + deprecatedClassNameMap[cssClasses$2.LIST_ITEM_CLASS] + " button:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$2.LIST_ITEM_CLASS] + " a\n ",
704
+ DEPRECATED_SELECTOR: '.mdc-deprecated-list',
705
+ FOCUSABLE_CHILD_ELEMENTS: "\n ." + cssClasses$2.LIST_ITEM_CLASS + " button:not(:disabled),\n ." + cssClasses$2.LIST_ITEM_CLASS + " a,\n ." + cssClasses$2.LIST_ITEM_CLASS + " input[type=\"radio\"]:not(:disabled),\n ." + cssClasses$2.LIST_ITEM_CLASS + " input[type=\"checkbox\"]:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$2.LIST_ITEM_CLASS] + " button:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$2.LIST_ITEM_CLASS] + " a,\n ." + deprecatedClassNameMap[cssClasses$2.LIST_ITEM_CLASS] + " input[type=\"radio\"]:not(:disabled),\n ." + deprecatedClassNameMap[cssClasses$2.LIST_ITEM_CLASS] + " input[type=\"checkbox\"]:not(:disabled)\n ",
706
+ RADIO_SELECTOR: 'input[type="radio"]',
707
+ SELECTED_ITEM_SELECTOR: '[aria-selected="true"], [aria-current="true"]',
708
+ };
709
+ var numbers$2 = {
710
+ UNSET_INDEX: -1,
711
+ TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS: 300
712
+ };
713
+ var evolutionAttribute = 'evolution';
714
+
715
+ /**
716
+ * @license
717
+ * Copyright 2020 Google Inc.
718
+ *
719
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
720
+ * of this software and associated documentation files (the "Software"), to deal
721
+ * in the Software without restriction, including without limitation the rights
722
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
723
+ * copies of the Software, and to permit persons to whom the Software is
724
+ * furnished to do so, subject to the following conditions:
725
+ *
726
+ * The above copyright notice and this permission notice shall be included in
727
+ * all copies or substantial portions of the Software.
728
+ *
729
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
730
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
731
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
732
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
733
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
734
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
735
+ * THE SOFTWARE.
736
+ */
737
+ /**
738
+ * KEY provides normalized string values for keys.
739
+ */
740
+ var KEY = {
741
+ UNKNOWN: 'Unknown',
742
+ BACKSPACE: 'Backspace',
743
+ ENTER: 'Enter',
744
+ SPACEBAR: 'Spacebar',
745
+ PAGE_UP: 'PageUp',
746
+ PAGE_DOWN: 'PageDown',
747
+ END: 'End',
748
+ HOME: 'Home',
749
+ ARROW_LEFT: 'ArrowLeft',
750
+ ARROW_UP: 'ArrowUp',
751
+ ARROW_RIGHT: 'ArrowRight',
752
+ ARROW_DOWN: 'ArrowDown',
753
+ DELETE: 'Delete',
754
+ ESCAPE: 'Escape',
755
+ TAB: 'Tab',
756
+ };
757
+ var normalizedKeys = new Set();
758
+ // IE11 has no support for new Map with iterable so we need to initialize this
759
+ // by hand.
760
+ normalizedKeys.add(KEY.BACKSPACE);
761
+ normalizedKeys.add(KEY.ENTER);
762
+ normalizedKeys.add(KEY.SPACEBAR);
763
+ normalizedKeys.add(KEY.PAGE_UP);
764
+ normalizedKeys.add(KEY.PAGE_DOWN);
765
+ normalizedKeys.add(KEY.END);
766
+ normalizedKeys.add(KEY.HOME);
767
+ normalizedKeys.add(KEY.ARROW_LEFT);
768
+ normalizedKeys.add(KEY.ARROW_UP);
769
+ normalizedKeys.add(KEY.ARROW_RIGHT);
770
+ normalizedKeys.add(KEY.ARROW_DOWN);
771
+ normalizedKeys.add(KEY.DELETE);
772
+ normalizedKeys.add(KEY.ESCAPE);
773
+ normalizedKeys.add(KEY.TAB);
774
+ var KEY_CODE = {
775
+ BACKSPACE: 8,
776
+ ENTER: 13,
777
+ SPACEBAR: 32,
778
+ PAGE_UP: 33,
779
+ PAGE_DOWN: 34,
780
+ END: 35,
781
+ HOME: 36,
782
+ ARROW_LEFT: 37,
783
+ ARROW_UP: 38,
784
+ ARROW_RIGHT: 39,
785
+ ARROW_DOWN: 40,
786
+ DELETE: 46,
787
+ ESCAPE: 27,
788
+ TAB: 9,
789
+ };
790
+ var mappedKeyCodes = new Map();
791
+ // IE11 has no support for new Map with iterable so we need to initialize this
792
+ // by hand.
793
+ mappedKeyCodes.set(KEY_CODE.BACKSPACE, KEY.BACKSPACE);
794
+ mappedKeyCodes.set(KEY_CODE.ENTER, KEY.ENTER);
795
+ mappedKeyCodes.set(KEY_CODE.SPACEBAR, KEY.SPACEBAR);
796
+ mappedKeyCodes.set(KEY_CODE.PAGE_UP, KEY.PAGE_UP);
797
+ mappedKeyCodes.set(KEY_CODE.PAGE_DOWN, KEY.PAGE_DOWN);
798
+ mappedKeyCodes.set(KEY_CODE.END, KEY.END);
799
+ mappedKeyCodes.set(KEY_CODE.HOME, KEY.HOME);
800
+ mappedKeyCodes.set(KEY_CODE.ARROW_LEFT, KEY.ARROW_LEFT);
801
+ mappedKeyCodes.set(KEY_CODE.ARROW_UP, KEY.ARROW_UP);
802
+ mappedKeyCodes.set(KEY_CODE.ARROW_RIGHT, KEY.ARROW_RIGHT);
803
+ mappedKeyCodes.set(KEY_CODE.ARROW_DOWN, KEY.ARROW_DOWN);
804
+ mappedKeyCodes.set(KEY_CODE.DELETE, KEY.DELETE);
805
+ mappedKeyCodes.set(KEY_CODE.ESCAPE, KEY.ESCAPE);
806
+ mappedKeyCodes.set(KEY_CODE.TAB, KEY.TAB);
807
+ var navigationKeys = new Set();
808
+ // IE11 has no support for new Set with iterable so we need to initialize this
809
+ // by hand.
810
+ navigationKeys.add(KEY.PAGE_UP);
811
+ navigationKeys.add(KEY.PAGE_DOWN);
812
+ navigationKeys.add(KEY.END);
813
+ navigationKeys.add(KEY.HOME);
814
+ navigationKeys.add(KEY.ARROW_LEFT);
815
+ navigationKeys.add(KEY.ARROW_UP);
816
+ navigationKeys.add(KEY.ARROW_RIGHT);
817
+ navigationKeys.add(KEY.ARROW_DOWN);
818
+ /**
819
+ * normalizeKey returns the normalized string for a navigational action.
820
+ */
821
+ function normalizeKey(evt) {
822
+ var key = evt.key;
823
+ // If the event already has a normalized key, return it
824
+ if (normalizedKeys.has(key)) {
825
+ return key;
826
+ }
827
+ // tslint:disable-next-line:deprecation
828
+ var mappedKey = mappedKeyCodes.get(evt.keyCode);
829
+ if (mappedKey) {
830
+ return mappedKey;
831
+ }
832
+ return KEY.UNKNOWN;
833
+ }
834
+
835
+ /**
836
+ * @license
837
+ * Copyright 2020 Google Inc.
838
+ *
839
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
840
+ * of this software and associated documentation files (the "Software"), to deal
841
+ * in the Software without restriction, including without limitation the rights
842
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
843
+ * copies of the Software, and to permit persons to whom the Software is
844
+ * furnished to do so, subject to the following conditions:
845
+ *
846
+ * The above copyright notice and this permission notice shall be included in
847
+ * all copies or substantial portions of the Software.
848
+ *
849
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
850
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
851
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
852
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
853
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
854
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
855
+ * THE SOFTWARE.
856
+ */
857
+ var ELEMENTS_KEY_ALLOWED_IN = ['input', 'button', 'textarea', 'select'];
858
+ /**
859
+ * Ensures that preventDefault is only called if the containing element
860
+ * doesn't consume the event, and it will cause an unintended scroll.
861
+ *
862
+ * @param evt keyboard event to be prevented.
863
+ */
864
+ var preventDefaultEvent = function (evt) {
865
+ var target = evt.target;
866
+ if (!target) {
867
+ return;
868
+ }
869
+ var tagName = ("" + target.tagName).toLowerCase();
870
+ if (ELEMENTS_KEY_ALLOWED_IN.indexOf(tagName) === -1) {
871
+ evt.preventDefault();
872
+ }
873
+ };
874
+
875
+ /**
876
+ * @license
877
+ * Copyright 2020 Google Inc.
878
+ *
879
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
880
+ * of this software and associated documentation files (the "Software"), to deal
881
+ * in the Software without restriction, including without limitation the rights
882
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
883
+ * copies of the Software, and to permit persons to whom the Software is
884
+ * furnished to do so, subject to the following conditions:
885
+ *
886
+ * The above copyright notice and this permission notice shall be included in
887
+ * all copies or substantial portions of the Software.
888
+ *
889
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
890
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
891
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
892
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
893
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
894
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
895
+ * THE SOFTWARE.
896
+ */
897
+ /**
898
+ * Initializes a state object for typeahead. Use the same reference for calls to
899
+ * typeahead functions.
900
+ *
901
+ * @return The current state of the typeahead process. Each state reference
902
+ * represents a typeahead instance as the reference is typically mutated
903
+ * in-place.
904
+ */
905
+ function initState() {
906
+ var state = {
907
+ bufferClearTimeout: 0,
908
+ currentFirstChar: '',
909
+ sortedIndexCursor: 0,
910
+ typeaheadBuffer: '',
911
+ };
912
+ return state;
913
+ }
914
+ /**
915
+ * Initializes typeahead state by indexing the current list items by primary
916
+ * text into the sortedIndexByFirstChar data structure.
917
+ *
918
+ * @param listItemCount numer of items in the list
919
+ * @param getPrimaryTextByItemIndex function that returns the primary text at a
920
+ * given index
921
+ *
922
+ * @return Map that maps the first character of the primary text to the full
923
+ * list text and it's index
924
+ */
925
+ function initSortedIndex(listItemCount, getPrimaryTextByItemIndex) {
926
+ var sortedIndexByFirstChar = new Map();
927
+ // Aggregate item text to index mapping
928
+ for (var i = 0; i < listItemCount; i++) {
929
+ var primaryText = getPrimaryTextByItemIndex(i).trim();
930
+ if (!primaryText) {
931
+ continue;
932
+ }
933
+ var firstChar = primaryText[0].toLowerCase();
934
+ if (!sortedIndexByFirstChar.has(firstChar)) {
935
+ sortedIndexByFirstChar.set(firstChar, []);
936
+ }
937
+ sortedIndexByFirstChar.get(firstChar).push({ text: primaryText.toLowerCase(), index: i });
938
+ }
939
+ // Sort the mapping
940
+ // TODO(b/157162694): Investigate replacing forEach with Map.values()
941
+ sortedIndexByFirstChar.forEach(function (values) {
942
+ values.sort(function (first, second) {
943
+ return first.index - second.index;
944
+ });
945
+ });
946
+ return sortedIndexByFirstChar;
947
+ }
948
+ /**
949
+ * Given the next desired character from the user, it attempts to find the next
950
+ * list option matching the buffer. Wraps around if at the end of options.
951
+ *
952
+ * @param opts Options and accessors
953
+ * - nextChar - the next character to match against items
954
+ * - sortedIndexByFirstChar - output of `initSortedIndex(...)`
955
+ * - focusedItemIndex - the index of the currently focused item
956
+ * - focusItemAtIndex - function that focuses a list item at given index
957
+ * - skipFocus - whether or not to focus the matched item
958
+ * - isItemAtIndexDisabled - function that determines whether an item at a
959
+ * given index is disabled
960
+ * @param state The typeahead state instance. See `initState`.
961
+ *
962
+ * @return The index of the matched item, or -1 if no match.
963
+ */
964
+ function matchItem(opts, state) {
965
+ var nextChar = opts.nextChar, focusItemAtIndex = opts.focusItemAtIndex, sortedIndexByFirstChar = opts.sortedIndexByFirstChar, focusedItemIndex = opts.focusedItemIndex, skipFocus = opts.skipFocus, isItemAtIndexDisabled = opts.isItemAtIndexDisabled;
966
+ clearTimeout(state.bufferClearTimeout);
967
+ state.bufferClearTimeout = setTimeout(function () {
968
+ clearBuffer(state);
969
+ }, numbers$2.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS);
970
+ state.typeaheadBuffer = state.typeaheadBuffer + nextChar;
971
+ var index;
972
+ if (state.typeaheadBuffer.length === 1) {
973
+ index = matchFirstChar(sortedIndexByFirstChar, focusedItemIndex, isItemAtIndexDisabled, state);
974
+ }
975
+ else {
976
+ index = matchAllChars(sortedIndexByFirstChar, isItemAtIndexDisabled, state);
977
+ }
978
+ if (index !== -1 && !skipFocus) {
979
+ focusItemAtIndex(index);
980
+ }
981
+ return index;
982
+ }
983
+ /**
984
+ * Matches the user's single input character in the buffer to the
985
+ * next option that begins with such character. Wraps around if at
986
+ * end of options. Returns -1 if no match is found.
987
+ */
988
+ function matchFirstChar(sortedIndexByFirstChar, focusedItemIndex, isItemAtIndexDisabled, state) {
989
+ var firstChar = state.typeaheadBuffer[0];
990
+ var itemsMatchingFirstChar = sortedIndexByFirstChar.get(firstChar);
991
+ if (!itemsMatchingFirstChar) {
992
+ return -1;
993
+ }
994
+ // Has the same firstChar been recently matched?
995
+ // Also, did starting index remain the same between key presses?
996
+ // If both hold true, simply increment index.
997
+ if (firstChar === state.currentFirstChar &&
998
+ itemsMatchingFirstChar[state.sortedIndexCursor].index ===
999
+ focusedItemIndex) {
1000
+ state.sortedIndexCursor =
1001
+ (state.sortedIndexCursor + 1) % itemsMatchingFirstChar.length;
1002
+ var newIndex = itemsMatchingFirstChar[state.sortedIndexCursor].index;
1003
+ if (!isItemAtIndexDisabled(newIndex)) {
1004
+ return newIndex;
1005
+ }
1006
+ }
1007
+ // If we're here, it means one of the following happened:
1008
+ // - either firstChar or startingIndex has changed, invalidating the
1009
+ // cursor.
1010
+ // - The next item of typeahead is disabled, so we have to look further.
1011
+ state.currentFirstChar = firstChar;
1012
+ var newCursorPosition = -1;
1013
+ var cursorPosition;
1014
+ // Find the first non-disabled item as a fallback.
1015
+ for (cursorPosition = 0; cursorPosition < itemsMatchingFirstChar.length; cursorPosition++) {
1016
+ if (!isItemAtIndexDisabled(itemsMatchingFirstChar[cursorPosition].index)) {
1017
+ newCursorPosition = cursorPosition;
1018
+ break;
1019
+ }
1020
+ }
1021
+ // Advance cursor to first item matching the firstChar that is positioned
1022
+ // after starting item. Cursor is unchanged from fallback if there's no
1023
+ // such item.
1024
+ for (; cursorPosition < itemsMatchingFirstChar.length; cursorPosition++) {
1025
+ if (itemsMatchingFirstChar[cursorPosition].index > focusedItemIndex &&
1026
+ !isItemAtIndexDisabled(itemsMatchingFirstChar[cursorPosition].index)) {
1027
+ newCursorPosition = cursorPosition;
1028
+ break;
1029
+ }
1030
+ }
1031
+ if (newCursorPosition !== -1) {
1032
+ state.sortedIndexCursor = newCursorPosition;
1033
+ return itemsMatchingFirstChar[state.sortedIndexCursor].index;
1034
+ }
1035
+ return -1;
1036
+ }
1037
+ /**
1038
+ * Attempts to find the next item that matches all of the typeahead buffer.
1039
+ * Wraps around if at end of options. Returns -1 if no match is found.
1040
+ */
1041
+ function matchAllChars(sortedIndexByFirstChar, isItemAtIndexDisabled, state) {
1042
+ var firstChar = state.typeaheadBuffer[0];
1043
+ var itemsMatchingFirstChar = sortedIndexByFirstChar.get(firstChar);
1044
+ if (!itemsMatchingFirstChar) {
1045
+ return -1;
1046
+ }
1047
+ // Do nothing if text already matches
1048
+ var startingItem = itemsMatchingFirstChar[state.sortedIndexCursor];
1049
+ if (startingItem.text.lastIndexOf(state.typeaheadBuffer, 0) === 0 &&
1050
+ !isItemAtIndexDisabled(startingItem.index)) {
1051
+ return startingItem.index;
1052
+ }
1053
+ // Find next item that matches completely; if no match, we'll eventually
1054
+ // loop around to same position
1055
+ var cursorPosition = (state.sortedIndexCursor + 1) % itemsMatchingFirstChar.length;
1056
+ var nextCursorPosition = -1;
1057
+ while (cursorPosition !== state.sortedIndexCursor) {
1058
+ var currentItem = itemsMatchingFirstChar[cursorPosition];
1059
+ var matches = currentItem.text.lastIndexOf(state.typeaheadBuffer, 0) === 0;
1060
+ var isEnabled = !isItemAtIndexDisabled(currentItem.index);
1061
+ if (matches && isEnabled) {
1062
+ nextCursorPosition = cursorPosition;
1063
+ break;
1064
+ }
1065
+ cursorPosition = (cursorPosition + 1) % itemsMatchingFirstChar.length;
1066
+ }
1067
+ if (nextCursorPosition !== -1) {
1068
+ state.sortedIndexCursor = nextCursorPosition;
1069
+ return itemsMatchingFirstChar[state.sortedIndexCursor].index;
1070
+ }
1071
+ return -1;
1072
+ }
1073
+ /**
1074
+ * Whether or not the given typeahead instaance state is currently typing.
1075
+ *
1076
+ * @param state The typeahead state instance. See `initState`.
1077
+ */
1078
+ function isTypingInProgress(state) {
1079
+ return state.typeaheadBuffer.length > 0;
1080
+ }
1081
+ /**
1082
+ * Clears the typeahaed buffer so that it resets item matching to the first
1083
+ * character.
1084
+ *
1085
+ * @param state The typeahead state instance. See `initState`.
1086
+ */
1087
+ function clearBuffer(state) {
1088
+ state.typeaheadBuffer = '';
1089
+ }
1090
+ /**
1091
+ * Given a keydown event, it calculates whether or not to automatically focus a
1092
+ * list item depending on what was typed mimicing the typeahead functionality of
1093
+ * a standard <select> element that is open.
1094
+ *
1095
+ * @param opts Options and accessors
1096
+ * - event - the KeyboardEvent to handle and parse
1097
+ * - sortedIndexByFirstChar - output of `initSortedIndex(...)`
1098
+ * - focusedItemIndex - the index of the currently focused item
1099
+ * - focusItemAtIndex - function that focuses a list item at given index
1100
+ * - isItemAtFocusedIndexDisabled - whether or not the currently focused item
1101
+ * is disabled
1102
+ * - isTargetListItem - whether or not the event target is a list item
1103
+ * @param state The typeahead state instance. See `initState`.
1104
+ *
1105
+ * @returns index of the item matched by the keydown. -1 if not matched.
1106
+ */
1107
+ function handleKeydown(opts, state) {
1108
+ var event = opts.event, isTargetListItem = opts.isTargetListItem, focusedItemIndex = opts.focusedItemIndex, focusItemAtIndex = opts.focusItemAtIndex, sortedIndexByFirstChar = opts.sortedIndexByFirstChar, isItemAtIndexDisabled = opts.isItemAtIndexDisabled;
1109
+ var isArrowLeft = normalizeKey(event) === 'ArrowLeft';
1110
+ var isArrowUp = normalizeKey(event) === 'ArrowUp';
1111
+ var isArrowRight = normalizeKey(event) === 'ArrowRight';
1112
+ var isArrowDown = normalizeKey(event) === 'ArrowDown';
1113
+ var isHome = normalizeKey(event) === 'Home';
1114
+ var isEnd = normalizeKey(event) === 'End';
1115
+ var isEnter = normalizeKey(event) === 'Enter';
1116
+ var isSpace = normalizeKey(event) === 'Spacebar';
1117
+ if (event.ctrlKey || event.metaKey || isArrowLeft || isArrowUp ||
1118
+ isArrowRight || isArrowDown || isHome || isEnd || isEnter) {
1119
+ return -1;
1120
+ }
1121
+ var isCharacterKey = !isSpace && event.key.length === 1;
1122
+ if (isCharacterKey) {
1123
+ preventDefaultEvent(event);
1124
+ var matchItemOpts = {
1125
+ focusItemAtIndex: focusItemAtIndex,
1126
+ focusedItemIndex: focusedItemIndex,
1127
+ nextChar: event.key.toLowerCase(),
1128
+ sortedIndexByFirstChar: sortedIndexByFirstChar,
1129
+ skipFocus: false,
1130
+ isItemAtIndexDisabled: isItemAtIndexDisabled,
1131
+ };
1132
+ return matchItem(matchItemOpts, state);
1133
+ }
1134
+ if (!isSpace) {
1135
+ return -1;
1136
+ }
1137
+ if (isTargetListItem) {
1138
+ preventDefaultEvent(event);
1139
+ }
1140
+ var typeaheadOnListItem = isTargetListItem && isTypingInProgress(state);
1141
+ if (typeaheadOnListItem) {
1142
+ var matchItemOpts = {
1143
+ focusItemAtIndex: focusItemAtIndex,
1144
+ focusedItemIndex: focusedItemIndex,
1145
+ nextChar: ' ',
1146
+ sortedIndexByFirstChar: sortedIndexByFirstChar,
1147
+ skipFocus: false,
1148
+ isItemAtIndexDisabled: isItemAtIndexDisabled,
1149
+ };
1150
+ // space participates in typeahead matching if in rapid typing mode
1151
+ return matchItem(matchItemOpts, state);
1152
+ }
1153
+ return -1;
1154
+ }
1155
+
1156
+ /**
1157
+ * @license
1158
+ * Copyright 2018 Google Inc.
1159
+ *
1160
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1161
+ * of this software and associated documentation files (the "Software"), to deal
1162
+ * in the Software without restriction, including without limitation the rights
1163
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1164
+ * copies of the Software, and to permit persons to whom the Software is
1165
+ * furnished to do so, subject to the following conditions:
1166
+ *
1167
+ * The above copyright notice and this permission notice shall be included in
1168
+ * all copies or substantial portions of the Software.
1169
+ *
1170
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1171
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1172
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1173
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1174
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1175
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1176
+ * THE SOFTWARE.
1177
+ */
1178
+ function isNumberArray(selectedIndex) {
1179
+ return selectedIndex instanceof Array;
1180
+ }
1181
+ var MDCListFoundation = /** @class */ (function (_super) {
1182
+ __extends(MDCListFoundation, _super);
1183
+ function MDCListFoundation(adapter) {
1184
+ var _this = _super.call(this, __assign(__assign({}, MDCListFoundation.defaultAdapter), adapter)) || this;
1185
+ _this.wrapFocus = false;
1186
+ _this.isVertical = true;
1187
+ _this.isSingleSelectionList = false;
1188
+ _this.selectedIndex = numbers$2.UNSET_INDEX;
1189
+ _this.focusedItemIndex = numbers$2.UNSET_INDEX;
1190
+ _this.useActivatedClass = false;
1191
+ _this.useSelectedAttr = false;
1192
+ _this.ariaCurrentAttrValue = null;
1193
+ _this.isCheckboxList = false;
1194
+ _this.isRadioList = false;
1195
+ _this.hasTypeahead = false;
1196
+ // Transiently holds current typeahead prefix from user.
1197
+ _this.typeaheadState = initState();
1198
+ _this.sortedIndexByFirstChar = new Map();
1199
+ return _this;
1200
+ }
1201
+ Object.defineProperty(MDCListFoundation, "strings", {
1202
+ get: function () {
1203
+ return strings$2;
1204
+ },
1205
+ enumerable: false,
1206
+ configurable: true
1207
+ });
1208
+ Object.defineProperty(MDCListFoundation, "cssClasses", {
1209
+ get: function () {
1210
+ return cssClasses$2;
1211
+ },
1212
+ enumerable: false,
1213
+ configurable: true
1214
+ });
1215
+ Object.defineProperty(MDCListFoundation, "numbers", {
1216
+ get: function () {
1217
+ return numbers$2;
1218
+ },
1219
+ enumerable: false,
1220
+ configurable: true
1221
+ });
1222
+ Object.defineProperty(MDCListFoundation, "defaultAdapter", {
1223
+ get: function () {
1224
+ return {
1225
+ addClassForElementIndex: function () { return undefined; },
1226
+ focusItemAtIndex: function () { return undefined; },
1227
+ getAttributeForElementIndex: function () { return null; },
1228
+ getFocusedElementIndex: function () { return 0; },
1229
+ getListItemCount: function () { return 0; },
1230
+ hasCheckboxAtIndex: function () { return false; },
1231
+ hasRadioAtIndex: function () { return false; },
1232
+ isCheckboxCheckedAtIndex: function () { return false; },
1233
+ isFocusInsideList: function () { return false; },
1234
+ isRootFocused: function () { return false; },
1235
+ listItemAtIndexHasClass: function () { return false; },
1236
+ notifyAction: function () { return undefined; },
1237
+ removeClassForElementIndex: function () { return undefined; },
1238
+ setAttributeForElementIndex: function () { return undefined; },
1239
+ setCheckedCheckboxOrRadioAtIndex: function () { return undefined; },
1240
+ setTabIndexForListItemChildren: function () { return undefined; },
1241
+ getPrimaryTextAtIndex: function () { return ''; },
1242
+ };
1243
+ },
1244
+ enumerable: false,
1245
+ configurable: true
1246
+ });
1247
+ MDCListFoundation.prototype.layout = function () {
1248
+ if (this.adapter.getListItemCount() === 0) {
1249
+ return;
1250
+ }
1251
+ // TODO(b/172274142): consider all items when determining the list's type.
1252
+ if (this.adapter.hasCheckboxAtIndex(0)) {
1253
+ this.isCheckboxList = true;
1254
+ }
1255
+ else if (this.adapter.hasRadioAtIndex(0)) {
1256
+ this.isRadioList = true;
1257
+ }
1258
+ else {
1259
+ this.maybeInitializeSingleSelection();
1260
+ }
1261
+ if (this.hasTypeahead) {
1262
+ this.sortedIndexByFirstChar = this.typeaheadInitSortedIndex();
1263
+ }
1264
+ };
1265
+ /** Returns the index of the item that was last focused. */
1266
+ MDCListFoundation.prototype.getFocusedItemIndex = function () {
1267
+ return this.focusedItemIndex;
1268
+ };
1269
+ /** Toggles focus wrapping with keyboard navigation. */
1270
+ MDCListFoundation.prototype.setWrapFocus = function (value) {
1271
+ this.wrapFocus = value;
1272
+ };
1273
+ /**
1274
+ * Toggles orientation direction for keyboard navigation (true for vertical,
1275
+ * false for horizontal).
1276
+ */
1277
+ MDCListFoundation.prototype.setVerticalOrientation = function (value) {
1278
+ this.isVertical = value;
1279
+ };
1280
+ /** Toggles single-selection behavior. */
1281
+ MDCListFoundation.prototype.setSingleSelection = function (value) {
1282
+ this.isSingleSelectionList = value;
1283
+ if (value) {
1284
+ this.maybeInitializeSingleSelection();
1285
+ this.selectedIndex = this.getSelectedIndexFromDOM();
1286
+ }
1287
+ };
1288
+ /**
1289
+ * Automatically determines whether the list is single selection list. If so,
1290
+ * initializes the internal state to match the selected item.
1291
+ */
1292
+ MDCListFoundation.prototype.maybeInitializeSingleSelection = function () {
1293
+ var selectedItemIndex = this.getSelectedIndexFromDOM();
1294
+ if (selectedItemIndex === numbers$2.UNSET_INDEX)
1295
+ return;
1296
+ var hasActivatedClass = this.adapter.listItemAtIndexHasClass(selectedItemIndex, cssClasses$2.LIST_ITEM_ACTIVATED_CLASS);
1297
+ if (hasActivatedClass) {
1298
+ this.setUseActivatedClass(true);
1299
+ }
1300
+ this.isSingleSelectionList = true;
1301
+ this.selectedIndex = selectedItemIndex;
1302
+ };
1303
+ /** @return Index of the first selected item based on the DOM state. */
1304
+ MDCListFoundation.prototype.getSelectedIndexFromDOM = function () {
1305
+ var selectedIndex = numbers$2.UNSET_INDEX;
1306
+ var listItemsCount = this.adapter.getListItemCount();
1307
+ for (var i = 0; i < listItemsCount; i++) {
1308
+ var hasSelectedClass = this.adapter.listItemAtIndexHasClass(i, cssClasses$2.LIST_ITEM_SELECTED_CLASS);
1309
+ var hasActivatedClass = this.adapter.listItemAtIndexHasClass(i, cssClasses$2.LIST_ITEM_ACTIVATED_CLASS);
1310
+ if (!(hasSelectedClass || hasActivatedClass)) {
1311
+ continue;
1312
+ }
1313
+ selectedIndex = i;
1314
+ break;
1315
+ }
1316
+ return selectedIndex;
1317
+ };
1318
+ /**
1319
+ * Sets whether typeahead is enabled on the list.
1320
+ * @param hasTypeahead Whether typeahead is enabled.
1321
+ */
1322
+ MDCListFoundation.prototype.setHasTypeahead = function (hasTypeahead) {
1323
+ this.hasTypeahead = hasTypeahead;
1324
+ if (hasTypeahead) {
1325
+ this.sortedIndexByFirstChar = this.typeaheadInitSortedIndex();
1326
+ }
1327
+ };
1328
+ /**
1329
+ * @return Whether typeahead is currently matching a user-specified prefix.
1330
+ */
1331
+ MDCListFoundation.prototype.isTypeaheadInProgress = function () {
1332
+ return this.hasTypeahead &&
1333
+ isTypingInProgress(this.typeaheadState);
1334
+ };
1335
+ /** Toggle use of the "activated" CSS class. */
1336
+ MDCListFoundation.prototype.setUseActivatedClass = function (useActivated) {
1337
+ this.useActivatedClass = useActivated;
1338
+ };
1339
+ /**
1340
+ * Toggles use of the selected attribute (true for aria-selected, false for
1341
+ * aria-checked).
1342
+ */
1343
+ MDCListFoundation.prototype.setUseSelectedAttribute = function (useSelected) {
1344
+ this.useSelectedAttr = useSelected;
1345
+ };
1346
+ MDCListFoundation.prototype.getSelectedIndex = function () {
1347
+ return this.selectedIndex;
1348
+ };
1349
+ MDCListFoundation.prototype.setSelectedIndex = function (index, _a) {
1350
+ var _b = _a === void 0 ? {} : _a, forceUpdate = _b.forceUpdate;
1351
+ if (!this.isIndexValid(index)) {
1352
+ return;
1353
+ }
1354
+ if (this.isCheckboxList) {
1355
+ this.setCheckboxAtIndex(index);
1356
+ }
1357
+ else if (this.isRadioList) {
1358
+ this.setRadioAtIndex(index);
1359
+ }
1360
+ else {
1361
+ this.setSingleSelectionAtIndex(index, { forceUpdate: forceUpdate });
1362
+ }
1363
+ };
1364
+ /**
1365
+ * Focus in handler for the list items.
1366
+ */
1367
+ MDCListFoundation.prototype.handleFocusIn = function (listItemIndex) {
1368
+ if (listItemIndex >= 0) {
1369
+ this.focusedItemIndex = listItemIndex;
1370
+ this.adapter.setAttributeForElementIndex(listItemIndex, 'tabindex', '0');
1371
+ this.adapter.setTabIndexForListItemChildren(listItemIndex, '0');
1372
+ }
1373
+ };
1374
+ /**
1375
+ * Focus out handler for the list items.
1376
+ */
1377
+ MDCListFoundation.prototype.handleFocusOut = function (listItemIndex) {
1378
+ var _this = this;
1379
+ if (listItemIndex >= 0) {
1380
+ this.adapter.setAttributeForElementIndex(listItemIndex, 'tabindex', '-1');
1381
+ this.adapter.setTabIndexForListItemChildren(listItemIndex, '-1');
1382
+ }
1383
+ /**
1384
+ * Between Focusout & Focusin some browsers do not have focus on any
1385
+ * element. Setting a delay to wait till the focus is moved to next element.
1386
+ */
1387
+ setTimeout(function () {
1388
+ if (!_this.adapter.isFocusInsideList()) {
1389
+ _this.setTabindexToFirstSelectedOrFocusedItem();
1390
+ }
1391
+ }, 0);
1392
+ };
1393
+ /**
1394
+ * Key handler for the list.
1395
+ */
1396
+ MDCListFoundation.prototype.handleKeydown = function (event, isRootListItem, listItemIndex) {
1397
+ var _this = this;
1398
+ var isArrowLeft = normalizeKey(event) === 'ArrowLeft';
1399
+ var isArrowUp = normalizeKey(event) === 'ArrowUp';
1400
+ var isArrowRight = normalizeKey(event) === 'ArrowRight';
1401
+ var isArrowDown = normalizeKey(event) === 'ArrowDown';
1402
+ var isHome = normalizeKey(event) === 'Home';
1403
+ var isEnd = normalizeKey(event) === 'End';
1404
+ var isEnter = normalizeKey(event) === 'Enter';
1405
+ var isSpace = normalizeKey(event) === 'Spacebar';
1406
+ // Have to check both upper and lower case, because having caps lock on
1407
+ // affects the value.
1408
+ var isLetterA = event.key === 'A' || event.key === 'a';
1409
+ if (this.adapter.isRootFocused()) {
1410
+ if (isArrowUp || isEnd) {
1411
+ event.preventDefault();
1412
+ this.focusLastElement();
1413
+ }
1414
+ else if (isArrowDown || isHome) {
1415
+ event.preventDefault();
1416
+ this.focusFirstElement();
1417
+ }
1418
+ if (this.hasTypeahead) {
1419
+ var handleKeydownOpts = {
1420
+ event: event,
1421
+ focusItemAtIndex: function (index) {
1422
+ _this.focusItemAtIndex(index);
1423
+ },
1424
+ focusedItemIndex: -1,
1425
+ isTargetListItem: isRootListItem,
1426
+ sortedIndexByFirstChar: this.sortedIndexByFirstChar,
1427
+ isItemAtIndexDisabled: function (index) {
1428
+ return _this.adapter.listItemAtIndexHasClass(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS);
1429
+ },
1430
+ };
1431
+ handleKeydown(handleKeydownOpts, this.typeaheadState);
1432
+ }
1433
+ return;
1434
+ }
1435
+ var currentIndex = this.adapter.getFocusedElementIndex();
1436
+ if (currentIndex === -1) {
1437
+ currentIndex = listItemIndex;
1438
+ if (currentIndex < 0) {
1439
+ // If this event doesn't have a mdc-list-item ancestor from the
1440
+ // current list (not from a sublist), return early.
1441
+ return;
1442
+ }
1443
+ }
1444
+ if ((this.isVertical && isArrowDown) ||
1445
+ (!this.isVertical && isArrowRight)) {
1446
+ preventDefaultEvent(event);
1447
+ this.focusNextElement(currentIndex);
1448
+ }
1449
+ else if ((this.isVertical && isArrowUp) || (!this.isVertical && isArrowLeft)) {
1450
+ preventDefaultEvent(event);
1451
+ this.focusPrevElement(currentIndex);
1452
+ }
1453
+ else if (isHome) {
1454
+ preventDefaultEvent(event);
1455
+ this.focusFirstElement();
1456
+ }
1457
+ else if (isEnd) {
1458
+ preventDefaultEvent(event);
1459
+ this.focusLastElement();
1460
+ }
1461
+ else if (isLetterA && event.ctrlKey && this.isCheckboxList) {
1462
+ event.preventDefault();
1463
+ this.toggleAll(this.selectedIndex === numbers$2.UNSET_INDEX ?
1464
+ [] :
1465
+ this.selectedIndex);
1466
+ }
1467
+ else if (isEnter || isSpace) {
1468
+ if (isRootListItem) {
1469
+ // Return early if enter key is pressed on anchor element which triggers
1470
+ // synthetic MouseEvent event.
1471
+ var target = event.target;
1472
+ if (target && target.tagName === 'A' && isEnter) {
1473
+ return;
1474
+ }
1475
+ preventDefaultEvent(event);
1476
+ if (this.adapter.listItemAtIndexHasClass(currentIndex, cssClasses$2.LIST_ITEM_DISABLED_CLASS)) {
1477
+ return;
1478
+ }
1479
+ if (!this.isTypeaheadInProgress()) {
1480
+ if (this.isSelectableList()) {
1481
+ this.setSelectedIndexOnAction(currentIndex);
1482
+ }
1483
+ this.adapter.notifyAction(currentIndex);
1484
+ }
1485
+ }
1486
+ }
1487
+ if (this.hasTypeahead) {
1488
+ var handleKeydownOpts = {
1489
+ event: event,
1490
+ focusItemAtIndex: function (index) {
1491
+ _this.focusItemAtIndex(index);
1492
+ },
1493
+ focusedItemIndex: this.focusedItemIndex,
1494
+ isTargetListItem: isRootListItem,
1495
+ sortedIndexByFirstChar: this.sortedIndexByFirstChar,
1496
+ isItemAtIndexDisabled: function (index) { return _this.adapter.listItemAtIndexHasClass(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS); },
1497
+ };
1498
+ handleKeydown(handleKeydownOpts, this.typeaheadState);
1499
+ }
1500
+ };
1501
+ /**
1502
+ * Click handler for the list.
1503
+ */
1504
+ MDCListFoundation.prototype.handleClick = function (index, toggleCheckbox) {
1505
+ if (index === numbers$2.UNSET_INDEX) {
1506
+ return;
1507
+ }
1508
+ if (this.adapter.listItemAtIndexHasClass(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS)) {
1509
+ return;
1510
+ }
1511
+ if (this.isSelectableList()) {
1512
+ this.setSelectedIndexOnAction(index, toggleCheckbox);
1513
+ }
1514
+ this.adapter.notifyAction(index);
1515
+ };
1516
+ /**
1517
+ * Focuses the next element on the list.
1518
+ */
1519
+ MDCListFoundation.prototype.focusNextElement = function (index) {
1520
+ var count = this.adapter.getListItemCount();
1521
+ var nextIndex = index + 1;
1522
+ if (nextIndex >= count) {
1523
+ if (this.wrapFocus) {
1524
+ nextIndex = 0;
1525
+ }
1526
+ else {
1527
+ // Return early because last item is already focused.
1528
+ return index;
1529
+ }
1530
+ }
1531
+ this.focusItemAtIndex(nextIndex);
1532
+ return nextIndex;
1533
+ };
1534
+ /**
1535
+ * Focuses the previous element on the list.
1536
+ */
1537
+ MDCListFoundation.prototype.focusPrevElement = function (index) {
1538
+ var prevIndex = index - 1;
1539
+ if (prevIndex < 0) {
1540
+ if (this.wrapFocus) {
1541
+ prevIndex = this.adapter.getListItemCount() - 1;
1542
+ }
1543
+ else {
1544
+ // Return early because first item is already focused.
1545
+ return index;
1546
+ }
1547
+ }
1548
+ this.focusItemAtIndex(prevIndex);
1549
+ return prevIndex;
1550
+ };
1551
+ MDCListFoundation.prototype.focusFirstElement = function () {
1552
+ this.focusItemAtIndex(0);
1553
+ return 0;
1554
+ };
1555
+ MDCListFoundation.prototype.focusLastElement = function () {
1556
+ var lastIndex = this.adapter.getListItemCount() - 1;
1557
+ this.focusItemAtIndex(lastIndex);
1558
+ return lastIndex;
1559
+ };
1560
+ MDCListFoundation.prototype.focusInitialElement = function () {
1561
+ var initialIndex = this.getFirstSelectedOrFocusedItemIndex();
1562
+ this.focusItemAtIndex(initialIndex);
1563
+ return initialIndex;
1564
+ };
1565
+ /**
1566
+ * @param itemIndex Index of the list item
1567
+ * @param isEnabled Sets the list item to enabled or disabled.
1568
+ */
1569
+ MDCListFoundation.prototype.setEnabled = function (itemIndex, isEnabled) {
1570
+ if (!this.isIndexValid(itemIndex)) {
1571
+ return;
1572
+ }
1573
+ if (isEnabled) {
1574
+ this.adapter.removeClassForElementIndex(itemIndex, cssClasses$2.LIST_ITEM_DISABLED_CLASS);
1575
+ this.adapter.setAttributeForElementIndex(itemIndex, strings$2.ARIA_DISABLED, 'false');
1576
+ }
1577
+ else {
1578
+ this.adapter.addClassForElementIndex(itemIndex, cssClasses$2.LIST_ITEM_DISABLED_CLASS);
1579
+ this.adapter.setAttributeForElementIndex(itemIndex, strings$2.ARIA_DISABLED, 'true');
1580
+ }
1581
+ };
1582
+ MDCListFoundation.prototype.setSingleSelectionAtIndex = function (index, _a) {
1583
+ var _b = _a === void 0 ? {} : _a, forceUpdate = _b.forceUpdate;
1584
+ if (this.selectedIndex === index && !forceUpdate) {
1585
+ return;
1586
+ }
1587
+ var selectedClassName = cssClasses$2.LIST_ITEM_SELECTED_CLASS;
1588
+ if (this.useActivatedClass) {
1589
+ selectedClassName = cssClasses$2.LIST_ITEM_ACTIVATED_CLASS;
1590
+ }
1591
+ if (this.selectedIndex !== numbers$2.UNSET_INDEX) {
1592
+ this.adapter.removeClassForElementIndex(this.selectedIndex, selectedClassName);
1593
+ }
1594
+ this.setAriaForSingleSelectionAtIndex(index);
1595
+ this.setTabindexAtIndex(index);
1596
+ if (index !== numbers$2.UNSET_INDEX) {
1597
+ this.adapter.addClassForElementIndex(index, selectedClassName);
1598
+ }
1599
+ this.selectedIndex = index;
1600
+ };
1601
+ /**
1602
+ * Sets aria attribute for single selection at given index.
1603
+ */
1604
+ MDCListFoundation.prototype.setAriaForSingleSelectionAtIndex = function (index) {
1605
+ // Detect the presence of aria-current and get the value only during list
1606
+ // initialization when it is in unset state.
1607
+ if (this.selectedIndex === numbers$2.UNSET_INDEX) {
1608
+ this.ariaCurrentAttrValue =
1609
+ this.adapter.getAttributeForElementIndex(index, strings$2.ARIA_CURRENT);
1610
+ }
1611
+ var isAriaCurrent = this.ariaCurrentAttrValue !== null;
1612
+ var ariaAttribute = isAriaCurrent ? strings$2.ARIA_CURRENT : strings$2.ARIA_SELECTED;
1613
+ if (this.selectedIndex !== numbers$2.UNSET_INDEX) {
1614
+ this.adapter.setAttributeForElementIndex(this.selectedIndex, ariaAttribute, 'false');
1615
+ }
1616
+ if (index !== numbers$2.UNSET_INDEX) {
1617
+ var ariaAttributeValue = isAriaCurrent ? this.ariaCurrentAttrValue : 'true';
1618
+ this.adapter.setAttributeForElementIndex(index, ariaAttribute, ariaAttributeValue);
1619
+ }
1620
+ };
1621
+ /**
1622
+ * Returns the attribute to use for indicating selection status.
1623
+ */
1624
+ MDCListFoundation.prototype.getSelectionAttribute = function () {
1625
+ return this.useSelectedAttr ? strings$2.ARIA_SELECTED : strings$2.ARIA_CHECKED;
1626
+ };
1627
+ /**
1628
+ * Toggles radio at give index. Radio doesn't change the checked state if it
1629
+ * is already checked.
1630
+ */
1631
+ MDCListFoundation.prototype.setRadioAtIndex = function (index) {
1632
+ var selectionAttribute = this.getSelectionAttribute();
1633
+ this.adapter.setCheckedCheckboxOrRadioAtIndex(index, true);
1634
+ if (this.selectedIndex !== numbers$2.UNSET_INDEX) {
1635
+ this.adapter.setAttributeForElementIndex(this.selectedIndex, selectionAttribute, 'false');
1636
+ }
1637
+ this.adapter.setAttributeForElementIndex(index, selectionAttribute, 'true');
1638
+ this.selectedIndex = index;
1639
+ };
1640
+ MDCListFoundation.prototype.setCheckboxAtIndex = function (index) {
1641
+ var selectionAttribute = this.getSelectionAttribute();
1642
+ for (var i = 0; i < this.adapter.getListItemCount(); i++) {
1643
+ var isChecked = false;
1644
+ if (index.indexOf(i) >= 0) {
1645
+ isChecked = true;
1646
+ }
1647
+ this.adapter.setCheckedCheckboxOrRadioAtIndex(i, isChecked);
1648
+ this.adapter.setAttributeForElementIndex(i, selectionAttribute, isChecked ? 'true' : 'false');
1649
+ }
1650
+ this.selectedIndex = index;
1651
+ };
1652
+ MDCListFoundation.prototype.setTabindexAtIndex = function (index) {
1653
+ if (this.focusedItemIndex === numbers$2.UNSET_INDEX && index !== 0) {
1654
+ // If some list item was selected set first list item's tabindex to -1.
1655
+ // Generally, tabindex is set to 0 on first list item of list that has no
1656
+ // preselected items.
1657
+ this.adapter.setAttributeForElementIndex(0, 'tabindex', '-1');
1658
+ }
1659
+ else if (this.focusedItemIndex >= 0 && this.focusedItemIndex !== index) {
1660
+ this.adapter.setAttributeForElementIndex(this.focusedItemIndex, 'tabindex', '-1');
1661
+ }
1662
+ // Set the previous selection's tabindex to -1. We need this because
1663
+ // in selection menus that are not visible, programmatically setting an
1664
+ // option will not change focus but will change where tabindex should be 0.
1665
+ if (!(this.selectedIndex instanceof Array) &&
1666
+ this.selectedIndex !== index) {
1667
+ this.adapter.setAttributeForElementIndex(this.selectedIndex, 'tabindex', '-1');
1668
+ }
1669
+ if (index !== numbers$2.UNSET_INDEX) {
1670
+ this.adapter.setAttributeForElementIndex(index, 'tabindex', '0');
1671
+ }
1672
+ };
1673
+ /**
1674
+ * @return Return true if it is single selectin list, checkbox list or radio
1675
+ * list.
1676
+ */
1677
+ MDCListFoundation.prototype.isSelectableList = function () {
1678
+ return this.isSingleSelectionList || this.isCheckboxList ||
1679
+ this.isRadioList;
1680
+ };
1681
+ MDCListFoundation.prototype.setTabindexToFirstSelectedOrFocusedItem = function () {
1682
+ var targetIndex = this.getFirstSelectedOrFocusedItemIndex();
1683
+ this.setTabindexAtIndex(targetIndex);
1684
+ };
1685
+ MDCListFoundation.prototype.getFirstSelectedOrFocusedItemIndex = function () {
1686
+ // Action lists retain focus on the most recently focused item.
1687
+ if (!this.isSelectableList()) {
1688
+ return Math.max(this.focusedItemIndex, 0);
1689
+ }
1690
+ // Single-selection lists focus the selected item.
1691
+ if (typeof this.selectedIndex === 'number' &&
1692
+ this.selectedIndex !== numbers$2.UNSET_INDEX) {
1693
+ return this.selectedIndex;
1694
+ }
1695
+ // Multiple-selection lists focus the first selected item.
1696
+ if (isNumberArray(this.selectedIndex) && this.selectedIndex.length > 0) {
1697
+ return this.selectedIndex.reduce(function (minIndex, currentIndex) { return Math.min(minIndex, currentIndex); });
1698
+ }
1699
+ // Selection lists without a selection focus the first item.
1700
+ return 0;
1701
+ };
1702
+ MDCListFoundation.prototype.isIndexValid = function (index) {
1703
+ var _this = this;
1704
+ if (index instanceof Array) {
1705
+ if (!this.isCheckboxList) {
1706
+ throw new Error('MDCListFoundation: Array of index is only supported for checkbox based list');
1707
+ }
1708
+ if (index.length === 0) {
1709
+ return true;
1710
+ }
1711
+ else {
1712
+ return index.some(function (i) { return _this.isIndexInRange(i); });
1713
+ }
1714
+ }
1715
+ else if (typeof index === 'number') {
1716
+ if (this.isCheckboxList) {
1717
+ throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: " + index);
1718
+ }
1719
+ return this.isIndexInRange(index) ||
1720
+ this.isSingleSelectionList && index === numbers$2.UNSET_INDEX;
1721
+ }
1722
+ else {
1723
+ return false;
1724
+ }
1725
+ };
1726
+ MDCListFoundation.prototype.isIndexInRange = function (index) {
1727
+ var listSize = this.adapter.getListItemCount();
1728
+ return index >= 0 && index < listSize;
1729
+ };
1730
+ /**
1731
+ * Sets selected index on user action, toggles checkbox / radio based on
1732
+ * toggleCheckbox value. User interaction should not toggle list item(s) when
1733
+ * disabled.
1734
+ */
1735
+ MDCListFoundation.prototype.setSelectedIndexOnAction = function (index, toggleCheckbox) {
1736
+ if (toggleCheckbox === void 0) { toggleCheckbox = true; }
1737
+ if (this.isCheckboxList) {
1738
+ this.toggleCheckboxAtIndex(index, toggleCheckbox);
1739
+ }
1740
+ else {
1741
+ this.setSelectedIndex(index);
1742
+ }
1743
+ };
1744
+ MDCListFoundation.prototype.toggleCheckboxAtIndex = function (index, toggleCheckbox) {
1745
+ var selectionAttribute = this.getSelectionAttribute();
1746
+ var isChecked = this.adapter.isCheckboxCheckedAtIndex(index);
1747
+ if (toggleCheckbox) {
1748
+ isChecked = !isChecked;
1749
+ this.adapter.setCheckedCheckboxOrRadioAtIndex(index, isChecked);
1750
+ }
1751
+ this.adapter.setAttributeForElementIndex(index, selectionAttribute, isChecked ? 'true' : 'false');
1752
+ // If none of the checkbox items are selected and selectedIndex is not
1753
+ // initialized then provide a default value.
1754
+ var selectedIndexes = this.selectedIndex === numbers$2.UNSET_INDEX ?
1755
+ [] :
1756
+ this.selectedIndex.slice();
1757
+ if (isChecked) {
1758
+ selectedIndexes.push(index);
1759
+ }
1760
+ else {
1761
+ selectedIndexes = selectedIndexes.filter(function (i) { return i !== index; });
1762
+ }
1763
+ this.selectedIndex = selectedIndexes;
1764
+ };
1765
+ MDCListFoundation.prototype.focusItemAtIndex = function (index) {
1766
+ this.adapter.focusItemAtIndex(index);
1767
+ this.focusedItemIndex = index;
1768
+ };
1769
+ MDCListFoundation.prototype.toggleAll = function (currentlySelectedIndexes) {
1770
+ var count = this.adapter.getListItemCount();
1771
+ // If all items are selected, deselect everything.
1772
+ if (currentlySelectedIndexes.length === count) {
1773
+ this.setCheckboxAtIndex([]);
1774
+ }
1775
+ else {
1776
+ // Otherwise select all enabled options.
1777
+ var allIndexes = [];
1778
+ for (var i = 0; i < count; i++) {
1779
+ if (!this.adapter.listItemAtIndexHasClass(i, cssClasses$2.LIST_ITEM_DISABLED_CLASS) ||
1780
+ currentlySelectedIndexes.indexOf(i) > -1) {
1781
+ allIndexes.push(i);
1782
+ }
1783
+ }
1784
+ this.setCheckboxAtIndex(allIndexes);
1785
+ }
1786
+ };
1787
+ /**
1788
+ * Given the next desired character from the user, adds it to the typeahead
1789
+ * buffer. Then, attempts to find the next option matching the buffer. Wraps
1790
+ * around if at the end of options.
1791
+ *
1792
+ * @param nextChar The next character to add to the prefix buffer.
1793
+ * @param startingIndex The index from which to start matching. Only relevant
1794
+ * when starting a new match sequence. To start a new match sequence,
1795
+ * clear the buffer using `clearTypeaheadBuffer`, or wait for the buffer
1796
+ * to clear after a set interval defined in list foundation. Defaults to
1797
+ * the currently focused index.
1798
+ * @return The index of the matched item, or -1 if no match.
1799
+ */
1800
+ MDCListFoundation.prototype.typeaheadMatchItem = function (nextChar, startingIndex, skipFocus) {
1801
+ var _this = this;
1802
+ if (skipFocus === void 0) { skipFocus = false; }
1803
+ var opts = {
1804
+ focusItemAtIndex: function (index) {
1805
+ _this.focusItemAtIndex(index);
1806
+ },
1807
+ focusedItemIndex: startingIndex ? startingIndex : this.focusedItemIndex,
1808
+ nextChar: nextChar,
1809
+ sortedIndexByFirstChar: this.sortedIndexByFirstChar,
1810
+ skipFocus: skipFocus,
1811
+ isItemAtIndexDisabled: function (index) { return _this.adapter.listItemAtIndexHasClass(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS); }
1812
+ };
1813
+ return matchItem(opts, this.typeaheadState);
1814
+ };
1815
+ /**
1816
+ * Initializes the MDCListTextAndIndex data structure by indexing the current
1817
+ * list items by primary text.
1818
+ *
1819
+ * @return The primary texts of all the list items sorted by first character.
1820
+ */
1821
+ MDCListFoundation.prototype.typeaheadInitSortedIndex = function () {
1822
+ return initSortedIndex(this.adapter.getListItemCount(), this.adapter.getPrimaryTextAtIndex);
1823
+ };
1824
+ /**
1825
+ * Clears the typeahead buffer.
1826
+ */
1827
+ MDCListFoundation.prototype.clearTypeaheadBuffer = function () {
1828
+ clearBuffer(this.typeaheadState);
1829
+ };
1830
+ return MDCListFoundation;
1831
+ }(MDCFoundation));
1832
+
1833
+ /**
1834
+ * @license
1835
+ * Copyright 2018 Google Inc.
1836
+ *
1837
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1838
+ * of this software and associated documentation files (the "Software"), to deal
1839
+ * in the Software without restriction, including without limitation the rights
1840
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1841
+ * copies of the Software, and to permit persons to whom the Software is
1842
+ * furnished to do so, subject to the following conditions:
1843
+ *
1844
+ * The above copyright notice and this permission notice shall be included in
1845
+ * all copies or substantial portions of the Software.
1846
+ *
1847
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1848
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1849
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1850
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1851
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1852
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1853
+ * THE SOFTWARE.
1854
+ */
1855
+ var MDCList = /** @class */ (function (_super) {
1856
+ __extends(MDCList, _super);
1857
+ function MDCList() {
1858
+ return _super !== null && _super.apply(this, arguments) || this;
1859
+ }
1860
+ Object.defineProperty(MDCList.prototype, "vertical", {
1861
+ set: function (value) {
1862
+ this.foundation.setVerticalOrientation(value);
1863
+ },
1864
+ enumerable: false,
1865
+ configurable: true
1866
+ });
1867
+ Object.defineProperty(MDCList.prototype, "listElements", {
1868
+ get: function () {
1869
+ return Array.from(this.root.querySelectorAll("." + this.classNameMap[cssClasses$2.LIST_ITEM_CLASS]));
1870
+ },
1871
+ enumerable: false,
1872
+ configurable: true
1873
+ });
1874
+ Object.defineProperty(MDCList.prototype, "wrapFocus", {
1875
+ set: function (value) {
1876
+ this.foundation.setWrapFocus(value);
1877
+ },
1878
+ enumerable: false,
1879
+ configurable: true
1880
+ });
1881
+ Object.defineProperty(MDCList.prototype, "typeaheadInProgress", {
1882
+ /**
1883
+ * @return Whether typeahead is currently matching a user-specified prefix.
1884
+ */
1885
+ get: function () {
1886
+ return this.foundation.isTypeaheadInProgress();
1887
+ },
1888
+ enumerable: false,
1889
+ configurable: true
1890
+ });
1891
+ Object.defineProperty(MDCList.prototype, "hasTypeahead", {
1892
+ /**
1893
+ * Sets whether typeahead functionality is enabled on the list.
1894
+ * @param hasTypeahead Whether typeahead is enabled.
1895
+ */
1896
+ set: function (hasTypeahead) {
1897
+ this.foundation.setHasTypeahead(hasTypeahead);
1898
+ },
1899
+ enumerable: false,
1900
+ configurable: true
1901
+ });
1902
+ Object.defineProperty(MDCList.prototype, "singleSelection", {
1903
+ set: function (isSingleSelectionList) {
1904
+ this.foundation.setSingleSelection(isSingleSelectionList);
1905
+ },
1906
+ enumerable: false,
1907
+ configurable: true
1908
+ });
1909
+ Object.defineProperty(MDCList.prototype, "selectedIndex", {
1910
+ get: function () {
1911
+ return this.foundation.getSelectedIndex();
1912
+ },
1913
+ set: function (index) {
1914
+ this.foundation.setSelectedIndex(index);
1915
+ },
1916
+ enumerable: false,
1917
+ configurable: true
1918
+ });
1919
+ MDCList.attachTo = function (root) {
1920
+ return new MDCList(root);
1921
+ };
1922
+ MDCList.prototype.initialSyncWithDOM = function () {
1923
+ this.isEvolutionEnabled =
1924
+ evolutionAttribute in this.root.dataset;
1925
+ if (this.isEvolutionEnabled) {
1926
+ this.classNameMap = evolutionClassNameMap;
1927
+ }
1928
+ else if (matches(this.root, strings$2.DEPRECATED_SELECTOR)) {
1929
+ this.classNameMap = deprecatedClassNameMap;
1930
+ }
1931
+ else {
1932
+ this.classNameMap =
1933
+ Object.values(cssClasses$2)
1934
+ .reduce(function (obj, className) {
1935
+ obj[className] = className;
1936
+ return obj;
1937
+ }, {});
1938
+ }
1939
+ this.handleClick = this.handleClickEvent.bind(this);
1940
+ this.handleKeydown = this.handleKeydownEvent.bind(this);
1941
+ this.focusInEventListener = this.handleFocusInEvent.bind(this);
1942
+ this.focusOutEventListener = this.handleFocusOutEvent.bind(this);
1943
+ this.listen('keydown', this.handleKeydown);
1944
+ this.listen('click', this.handleClick);
1945
+ this.listen('focusin', this.focusInEventListener);
1946
+ this.listen('focusout', this.focusOutEventListener);
1947
+ this.layout();
1948
+ this.initializeListType();
1949
+ this.ensureFocusable();
1950
+ };
1951
+ MDCList.prototype.destroy = function () {
1952
+ this.unlisten('keydown', this.handleKeydown);
1953
+ this.unlisten('click', this.handleClick);
1954
+ this.unlisten('focusin', this.focusInEventListener);
1955
+ this.unlisten('focusout', this.focusOutEventListener);
1956
+ };
1957
+ MDCList.prototype.layout = function () {
1958
+ var direction = this.root.getAttribute(strings$2.ARIA_ORIENTATION);
1959
+ this.vertical = direction !== strings$2.ARIA_ORIENTATION_HORIZONTAL;
1960
+ var itemSelector = "." + this.classNameMap[cssClasses$2.LIST_ITEM_CLASS] + ":not([tabindex])";
1961
+ var childSelector = strings$2.FOCUSABLE_CHILD_ELEMENTS;
1962
+ // List items need to have at least tabindex=-1 to be focusable.
1963
+ var itemEls = this.root.querySelectorAll(itemSelector);
1964
+ if (itemEls.length) {
1965
+ Array.prototype.forEach.call(itemEls, function (el) {
1966
+ el.setAttribute('tabindex', '-1');
1967
+ });
1968
+ }
1969
+ // Child button/a elements are not tabbable until the list item is focused.
1970
+ var focusableChildEls = this.root.querySelectorAll(childSelector);
1971
+ if (focusableChildEls.length) {
1972
+ Array.prototype.forEach.call(focusableChildEls, function (el) {
1973
+ el.setAttribute('tabindex', '-1');
1974
+ });
1975
+ }
1976
+ if (this.isEvolutionEnabled) {
1977
+ this.foundation.setUseSelectedAttribute(true);
1978
+ }
1979
+ this.foundation.layout();
1980
+ };
1981
+ /**
1982
+ * Extracts the primary text from a list item.
1983
+ * @param item The list item element.
1984
+ * @return The primary text in the element.
1985
+ */
1986
+ MDCList.prototype.getPrimaryText = function (item) {
1987
+ var _a;
1988
+ var primaryText = item.querySelector("." + this.classNameMap[cssClasses$2.LIST_ITEM_PRIMARY_TEXT_CLASS]);
1989
+ if (this.isEvolutionEnabled || primaryText) {
1990
+ return (_a = primaryText === null || primaryText === void 0 ? void 0 : primaryText.textContent) !== null && _a !== void 0 ? _a : '';
1991
+ }
1992
+ var singleLineText = item.querySelector("." + this.classNameMap[cssClasses$2.LIST_ITEM_TEXT_CLASS]);
1993
+ return (singleLineText && singleLineText.textContent) || '';
1994
+ };
1995
+ /**
1996
+ * Initialize selectedIndex value based on pre-selected list items.
1997
+ */
1998
+ MDCList.prototype.initializeListType = function () {
1999
+ var _this = this;
2000
+ this.isInteractive =
2001
+ matches(this.root, strings$2.ARIA_INTERACTIVE_ROLES_SELECTOR);
2002
+ if (this.isEvolutionEnabled && this.isInteractive) {
2003
+ var selection = Array.from(this.root.querySelectorAll(strings$2.SELECTED_ITEM_SELECTOR), function (listItem) { return _this.listElements.indexOf(listItem); });
2004
+ if (matches(this.root, strings$2.ARIA_MULTI_SELECTABLE_SELECTOR)) {
2005
+ this.selectedIndex = selection;
2006
+ }
2007
+ else if (selection.length > 0) {
2008
+ this.selectedIndex = selection[0];
2009
+ }
2010
+ return;
2011
+ }
2012
+ var checkboxListItems = this.root.querySelectorAll(strings$2.ARIA_ROLE_CHECKBOX_SELECTOR);
2013
+ var radioSelectedListItem = this.root.querySelector(strings$2.ARIA_CHECKED_RADIO_SELECTOR);
2014
+ if (checkboxListItems.length) {
2015
+ var preselectedItems = this.root.querySelectorAll(strings$2.ARIA_CHECKED_CHECKBOX_SELECTOR);
2016
+ this.selectedIndex = Array.from(preselectedItems, function (listItem) { return _this.listElements.indexOf(listItem); });
2017
+ }
2018
+ else if (radioSelectedListItem) {
2019
+ this.selectedIndex = this.listElements.indexOf(radioSelectedListItem);
2020
+ }
2021
+ };
2022
+ /**
2023
+ * Updates the list item at itemIndex to the desired isEnabled state.
2024
+ * @param itemIndex Index of the list item
2025
+ * @param isEnabled Sets the list item to enabled or disabled.
2026
+ */
2027
+ MDCList.prototype.setEnabled = function (itemIndex, isEnabled) {
2028
+ this.foundation.setEnabled(itemIndex, isEnabled);
2029
+ };
2030
+ /**
2031
+ * Given the next desired character from the user, adds it to the typeahead
2032
+ * buffer. Then, attempts to find the next option matching the buffer. Wraps
2033
+ * around if at the end of options.
2034
+ *
2035
+ * @param nextChar The next character to add to the prefix buffer.
2036
+ * @param startingIndex The index from which to start matching. Defaults to
2037
+ * the currently focused index.
2038
+ * @return The index of the matched item.
2039
+ */
2040
+ MDCList.prototype.typeaheadMatchItem = function (nextChar, startingIndex) {
2041
+ return this.foundation.typeaheadMatchItem(nextChar, startingIndex, /** skipFocus */ true);
2042
+ };
2043
+ MDCList.prototype.getDefaultFoundation = function () {
2044
+ var _this = this;
2045
+ // DO NOT INLINE this variable. For backward compatibility, foundations take
2046
+ // a Partial<MDCFooAdapter>. To ensure we don't accidentally omit any
2047
+ // methods, we need a separate, strongly typed adapter variable.
2048
+ var adapter = {
2049
+ addClassForElementIndex: function (index, className) {
2050
+ var element = _this.listElements[index];
2051
+ if (element) {
2052
+ element.classList.add(_this.classNameMap[className]);
2053
+ }
2054
+ },
2055
+ focusItemAtIndex: function (index) {
2056
+ var element = _this.listElements[index];
2057
+ if (element) {
2058
+ element.focus();
2059
+ }
2060
+ },
2061
+ getAttributeForElementIndex: function (index, attr) {
2062
+ return _this.listElements[index].getAttribute(attr);
2063
+ },
2064
+ getFocusedElementIndex: function () {
2065
+ return _this.listElements.indexOf(document.activeElement);
2066
+ },
2067
+ getListItemCount: function () { return _this.listElements.length; },
2068
+ getPrimaryTextAtIndex: function (index) {
2069
+ return _this.getPrimaryText(_this.listElements[index]);
2070
+ },
2071
+ hasCheckboxAtIndex: function (index) {
2072
+ var listItem = _this.listElements[index];
2073
+ return !!listItem.querySelector(strings$2.CHECKBOX_SELECTOR);
2074
+ },
2075
+ hasRadioAtIndex: function (index) {
2076
+ var listItem = _this.listElements[index];
2077
+ return !!listItem.querySelector(strings$2.RADIO_SELECTOR);
2078
+ },
2079
+ isCheckboxCheckedAtIndex: function (index) {
2080
+ var listItem = _this.listElements[index];
2081
+ var toggleEl = listItem.querySelector(strings$2.CHECKBOX_SELECTOR);
2082
+ return toggleEl.checked;
2083
+ },
2084
+ isFocusInsideList: function () {
2085
+ return _this.root !== document.activeElement &&
2086
+ _this.root.contains(document.activeElement);
2087
+ },
2088
+ isRootFocused: function () { return document.activeElement === _this.root; },
2089
+ listItemAtIndexHasClass: function (index, className) {
2090
+ return _this.listElements[index].classList.contains(_this.classNameMap[className]);
2091
+ },
2092
+ notifyAction: function (index) {
2093
+ _this.emit(strings$2.ACTION_EVENT, { index: index }, /** shouldBubble */ true);
2094
+ },
2095
+ removeClassForElementIndex: function (index, className) {
2096
+ var element = _this.listElements[index];
2097
+ if (element) {
2098
+ element.classList.remove(_this.classNameMap[className]);
2099
+ }
2100
+ },
2101
+ setAttributeForElementIndex: function (index, attr, value) {
2102
+ var element = _this.listElements[index];
2103
+ if (element) {
2104
+ element.setAttribute(attr, value);
2105
+ }
2106
+ },
2107
+ setCheckedCheckboxOrRadioAtIndex: function (index, isChecked) {
2108
+ var listItem = _this.listElements[index];
2109
+ var toggleEl = listItem.querySelector(strings$2.CHECKBOX_RADIO_SELECTOR);
2110
+ toggleEl.checked = isChecked;
2111
+ var event = document.createEvent('Event');
2112
+ event.initEvent('change', true, true);
2113
+ toggleEl.dispatchEvent(event);
2114
+ },
2115
+ setTabIndexForListItemChildren: function (listItemIndex, tabIndexValue) {
2116
+ var element = _this.listElements[listItemIndex];
2117
+ var selector = strings$2.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;
2118
+ Array.prototype.forEach.call(element.querySelectorAll(selector), function (el) {
2119
+ el.setAttribute('tabindex', tabIndexValue);
2120
+ });
2121
+ },
2122
+ };
2123
+ return new MDCListFoundation(adapter);
2124
+ };
2125
+ /**
2126
+ * Ensures that at least one item is focusable if the list is interactive and
2127
+ * doesn't specify a suitable tabindex.
2128
+ */
2129
+ MDCList.prototype.ensureFocusable = function () {
2130
+ if (this.isEvolutionEnabled && this.isInteractive) {
2131
+ if (!this.root.querySelector("." + this.classNameMap[cssClasses$2.LIST_ITEM_CLASS] + "[tabindex=\"0\"]")) {
2132
+ var index = this.initialFocusIndex();
2133
+ if (index !== -1) {
2134
+ this.listElements[index].tabIndex = 0;
2135
+ }
2136
+ }
2137
+ }
2138
+ };
2139
+ MDCList.prototype.initialFocusIndex = function () {
2140
+ if (this.selectedIndex instanceof Array && this.selectedIndex.length > 0) {
2141
+ return this.selectedIndex[0];
2142
+ }
2143
+ if (typeof this.selectedIndex === 'number' &&
2144
+ this.selectedIndex !== numbers$2.UNSET_INDEX) {
2145
+ return this.selectedIndex;
2146
+ }
2147
+ var el = this.root.querySelector("." + this.classNameMap[cssClasses$2.LIST_ITEM_CLASS] + ":not(." + this.classNameMap[cssClasses$2.LIST_ITEM_DISABLED_CLASS] + ")");
2148
+ if (el === null) {
2149
+ return -1;
2150
+ }
2151
+ return this.getListItemIndex(el);
2152
+ };
2153
+ /**
2154
+ * Used to figure out which list item this event is targetting. Or returns -1
2155
+ * if there is no list item
2156
+ */
2157
+ MDCList.prototype.getListItemIndex = function (el) {
2158
+ var nearestParent = closest(el, "." + this.classNameMap[cssClasses$2.LIST_ITEM_CLASS] + ", ." + this.classNameMap[cssClasses$2.ROOT]);
2159
+ // Get the index of the element if it is a list item.
2160
+ if (nearestParent &&
2161
+ matches(nearestParent, "." + this.classNameMap[cssClasses$2.LIST_ITEM_CLASS])) {
2162
+ return this.listElements.indexOf(nearestParent);
2163
+ }
2164
+ return -1;
2165
+ };
2166
+ /**
2167
+ * Used to figure out which element was clicked before sending the event to
2168
+ * the foundation.
2169
+ */
2170
+ MDCList.prototype.handleFocusInEvent = function (evt) {
2171
+ var index = this.getListItemIndex(evt.target);
2172
+ this.foundation.handleFocusIn(index);
2173
+ };
2174
+ /**
2175
+ * Used to figure out which element was clicked before sending the event to
2176
+ * the foundation.
2177
+ */
2178
+ MDCList.prototype.handleFocusOutEvent = function (evt) {
2179
+ var index = this.getListItemIndex(evt.target);
2180
+ this.foundation.handleFocusOut(index);
2181
+ };
2182
+ /**
2183
+ * Used to figure out which element was focused when keydown event occurred
2184
+ * before sending the event to the foundation.
2185
+ */
2186
+ MDCList.prototype.handleKeydownEvent = function (evt) {
2187
+ var index = this.getListItemIndex(evt.target);
2188
+ var target = evt.target;
2189
+ this.foundation.handleKeydown(evt, target.classList.contains(this.classNameMap[cssClasses$2.LIST_ITEM_CLASS]), index);
2190
+ };
2191
+ /**
2192
+ * Used to figure out which element was clicked before sending the event to
2193
+ * the foundation.
2194
+ */
2195
+ MDCList.prototype.handleClickEvent = function (evt) {
2196
+ var index = this.getListItemIndex(evt.target);
2197
+ var target = evt.target;
2198
+ // Toggle the checkbox only if it's not the target of the event, or the
2199
+ // checkbox will have 2 change events.
2200
+ var toggleCheckbox = !matches(target, strings$2.CHECKBOX_RADIO_SELECTOR);
2201
+ this.foundation.handleClick(index, toggleCheckbox);
2202
+ };
2203
+ return MDCList;
2204
+ }(MDCComponent));
2205
+
2206
+ const RadioButtonTemplate = (props) => {
2207
+ return (h("div", { class: "mdc-form-field" },
2208
+ h("div", { class: `
2209
+ mdc-radio
2210
+ ${props.disabled ? 'mdc-radio--disabled' : ''}
2211
+ ` },
2212
+ h("input", { class: "mdc-radio__native-control", type: "radio", id: props.id, checked: props.checked, disabled: props.disabled, onChange: props.onChange }),
2213
+ h("div", { class: "mdc-radio__background" },
2214
+ h("div", { class: "mdc-radio__outer-circle" }),
2215
+ h("div", { class: "mdc-radio__inner-circle" }))),
2216
+ h("label", { class: `${props.disabled ? 'disabled' : ''}`, htmlFor: props.id }, props.label)));
2217
+ };
2218
+
2219
+ class ListRenderer {
2220
+ constructor() {
2221
+ this.defaultConfig = {
2222
+ isOpen: true,
2223
+ badgeIcons: false,
2224
+ };
2225
+ /**
2226
+ * Determine which ListItem should have the `tab-index` attribute set,
2227
+ * and return the index at which that ListItem is located in `items`.
2228
+ * Returns `undefined` if no item should have the attribute set.
2229
+ * See https://github.com/material-components/material-components-web/tree/e66a43a75fef4f9179e24856649518e15e279a04/packages/mdc-list#accessibility
2230
+ *
2231
+ * @param items - the items of the list, including any `ListSeparator`:s
2232
+ * @returns the index as per the description
2233
+ */
2234
+ this.getIndexForWhichToApplyTabIndex = (items) => {
2235
+ let result;
2236
+ for (let i = 0, max = items.length; i < max; i += 1) {
2237
+ if ('separator' in items[i]) ;
2238
+ else {
2239
+ const item = items[i];
2240
+ if (item.selected) {
2241
+ result = i;
2242
+ break;
2243
+ }
2244
+ if (result === undefined && !item.disabled) {
2245
+ result = i;
2246
+ // Do NOT break, as any later item with
2247
+ // `selected=true` should get the tab-index instead!
2248
+ }
2249
+ }
2250
+ }
2251
+ return result;
2252
+ };
2253
+ /**
2254
+ * Render a single list item
2255
+ *
2256
+ * @param item - the item to render
2257
+ * @param index - the index the item had in the `items` array
2258
+ * @returns the list item
2259
+ */
2260
+ this.renderListItem = (item, index) => {
2261
+ if ('separator' in item) {
2262
+ return (h("li", { class: "mdc-deprecated-list-divider", role: "separator" },
2263
+ this.renderTextForSeparator(item),
2264
+ h("div", { class: "limel-list-divider-line" })));
2265
+ }
2266
+ if (['radio', 'checkbox'].includes(this.config.type)) {
2267
+ return this.renderVariantListItem(this.config, item, index);
2268
+ }
2269
+ const classNames = {
2270
+ 'mdc-deprecated-list-item': true,
2271
+ 'mdc-deprecated-list-item--disabled': item.disabled,
2272
+ 'mdc-deprecated-list-item--selected': item.selected,
2273
+ 'has-primary-component': this.hasPrimaryComponent(item),
2274
+ };
2275
+ const attributes = {};
2276
+ if (index === this.applyTabIndexToItemAtIndex) {
2277
+ attributes.tabindex = '0';
2278
+ }
2279
+ return (h("li", Object.assign({ class: classNames, "aria-disabled": item.disabled ? 'true' : 'false', "aria-selected": item.selected ? 'true' : 'false', "data-index": index }, attributes),
2280
+ this.renderIcon(this.config, item),
2281
+ this.getPrimaryComponent(item),
2282
+ this.renderText(item),
2283
+ this.twoLines && this.avatarList ? this.renderDivider() : null,
2284
+ this.renderActionMenu(item.actions)));
2285
+ };
2286
+ this.renderTextForSeparator = (item) => {
2287
+ if ('text' in item) {
2288
+ return h("h2", { class: "limel-list-divider-title" }, item.text);
2289
+ }
2290
+ };
2291
+ this.hasPrimaryComponent = (item) => {
2292
+ var _a;
2293
+ return !!((_a = item === null || item === void 0 ? void 0 : item.primaryComponent) === null || _a === void 0 ? void 0 : _a.name);
2294
+ };
2295
+ /**
2296
+ * Render the text of the list item
2297
+ *
2298
+ * @param item - the list item
2299
+ * @returns the text for the list item
2300
+ */
2301
+ this.renderText = (item) => {
2302
+ if (this.isSimpleItem(item)) {
2303
+ return (h("span", { class: "mdc-deprecated-list-item__text" }, item.text));
2304
+ }
2305
+ return (h("div", { class: "mdc-deprecated-list-item__text" },
2306
+ h("div", { class: "mdc-deprecated-list-item__primary-command-text" },
2307
+ h("div", { class: "mdc-deprecated-list-item__primary-text" }, item.text)),
2308
+ h("div", { class: "mdc-deprecated-list-item__secondary-text" }, item.secondaryText)));
2309
+ };
2310
+ this.isSimpleItem = (item) => {
2311
+ return !('secondaryText' in item);
2312
+ };
2313
+ /**
2314
+ * Render an icon for a list item
2315
+ *
2316
+ * @param config - the config object, passed on from the `renderListItem` function
2317
+ * @param item - the list item
2318
+ * @returns the icon element
2319
+ */
2320
+ this.renderIcon = (config, item) => {
2321
+ const style = {};
2322
+ const name = getIconName(item.icon);
2323
+ if (!name) {
2324
+ return;
2325
+ }
2326
+ const color = getIconColor(item.icon, item.iconColor);
2327
+ if (color) {
2328
+ if (config.badgeIcons) {
2329
+ style['--icon-background-color'] = color;
2330
+ }
2331
+ else {
2332
+ style.color = color;
2333
+ }
2334
+ }
2335
+ return (h("limel-icon", { badge: config.badgeIcons, class: "mdc-deprecated-list-item__graphic", name: name, style: style, size: config.iconSize }));
2336
+ };
2337
+ this.renderDivider = () => {
2338
+ const classes = {
2339
+ 'mdc-deprecated-list-divider': true,
2340
+ 'mdc-deprecated-list-divider--inset': true,
2341
+ };
2342
+ if (this.config.iconSize) {
2343
+ classes[this.config.iconSize] = true;
2344
+ }
2345
+ return h("hr", { class: classes });
2346
+ };
2347
+ this.renderActionMenu = (actions) => {
2348
+ if (!actions || actions.length === 0) {
2349
+ return;
2350
+ }
2351
+ return (h("limel-menu", { class: "mdc-deprecated-list-item__meta", items: actions, openDirection: "left-start" },
2352
+ h("limel-icon-button", { class: "action-menu-trigger", slot: "trigger", icon: "menu_2" })));
2353
+ };
2354
+ this.renderVariantListItem = (config, item, index) => {
2355
+ let itemTemplate;
2356
+ if (config.type === 'radio') {
2357
+ itemTemplate = (h(RadioButtonTemplate, { id: `c_${index}`, checked: item.selected, disabled: item.disabled }));
2358
+ }
2359
+ else if (config.type === 'checkbox') {
2360
+ itemTemplate = (h(CheckboxTemplate, { id: `c_${index}`, checked: item.selected, disabled: item.disabled }));
2361
+ }
2362
+ const classNames = {
2363
+ 'mdc-deprecated-list-item': true,
2364
+ 'mdc-deprecated-list-item--disabled': item.disabled,
2365
+ 'mdc-deprecated-list-item__text': !item.secondaryText,
2366
+ 'has-primary-component': this.hasPrimaryComponent(item),
2367
+ };
2368
+ const attributes = {};
2369
+ if (index === this.applyTabIndexToItemAtIndex) {
2370
+ attributes.tabindex = '0';
2371
+ }
2372
+ return (h("li", Object.assign({ class: classNames, role: config.type, "aria-checked": item.selected ? 'true' : 'false', "aria-disabled": item.disabled ? 'true' : 'false', "data-index": index }, attributes), this.renderVariantListItemContent(config, item, itemTemplate)));
2373
+ };
2374
+ this.renderVariantListItemContent = (config, item, itemTemplate) => {
2375
+ if (this.hasIcons) {
2376
+ return [
2377
+ item.icon ? this.renderIcon(config, item) : null,
2378
+ this.getPrimaryComponent(item),
2379
+ this.renderText(item),
2380
+ h("div", { class: "mdc-deprecated-list-item__meta" }, itemTemplate),
2381
+ ];
2382
+ }
2383
+ return [
2384
+ h("div", { class: "mdc-deprecated-list-item__graphic" }, itemTemplate),
2385
+ this.getPrimaryComponent(item),
2386
+ this.renderText(item),
2387
+ ];
2388
+ };
2389
+ }
2390
+ render(items, config = {}) {
2391
+ items = items || [];
2392
+ this.config = Object.assign(Object.assign({}, this.defaultConfig), config);
2393
+ this.twoLines = items.some((item) => {
2394
+ return 'secondaryText' in item && !!item.secondaryText;
2395
+ });
2396
+ this.hasIcons = items.some((item) => {
2397
+ return 'icon' in item && !!item.icon;
2398
+ });
2399
+ this.avatarList = this.config.badgeIcons && this.hasIcons;
2400
+ const selectableListTypes = ['selectable', 'radio', 'checkbox'];
2401
+ let role;
2402
+ switch (this.config.type) {
2403
+ case 'checkbox':
2404
+ role = 'group';
2405
+ break;
2406
+ case 'radio':
2407
+ role = 'radiogroup';
2408
+ break;
2409
+ default:
2410
+ role = 'listbox';
2411
+ }
2412
+ this.applyTabIndexToItemAtIndex =
2413
+ this.getIndexForWhichToApplyTabIndex(items);
2414
+ const classNames = {
2415
+ 'mdc-deprecated-list': true,
2416
+ 'mdc-deprecated-list--two-line': this.twoLines,
2417
+ selectable: selectableListTypes.includes(this.config.type),
2418
+ 'mdc-deprecated-list--avatar-list': this.avatarList,
2419
+ 'list--compact': this.twoLines &&
2420
+ this.commandKey &&
2421
+ ['small', 'x-small'].includes(this.config.iconSize),
2422
+ };
2423
+ return (h("ul", { class: classNames, role: role, "aria-orientation": "vertical" }, items.map(this.renderListItem)));
2424
+ }
2425
+ getPrimaryComponent(item) {
2426
+ if (!this.hasPrimaryComponent(item)) {
2427
+ return;
2428
+ }
2429
+ const PrimaryComponent = item.primaryComponent.name;
2430
+ const props = item.primaryComponent.props;
2431
+ return h(PrimaryComponent, Object.assign({}, props));
2432
+ }
2433
+ }
2434
+
2435
+ const listCss = "@charset \"UTF-8\";:host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}:host(limel-checkbox){--mdc-checkbox-checked-color:var(--mdc-theme-primary);--mdc-checkbox-unchecked-color:var(\n --checkbox-unchecked-border-color,\n rgb(var(--contrast-900))\n );--lime-checkbox-unchecked-color:rgb(var(--contrast-300));min-height:2.5rem}limel-dynamic-label{margin-top:0.375rem;margin-left:0.25rem}.mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#575756;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #575756))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#575756;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #575756))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-touch-target-size, 40px);height:40px;height:var(--mdc-checkbox-touch-target-size, 40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#575756;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756));background-color:#575756;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756))}@keyframes mdc-checkbox-fade-in-background-8A000000FF57575600000000FF575756{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#575756;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756));background-color:#575756;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF57575600000000FF575756{0%,80%{border-color:#575756;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756));background-color:#575756;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF57575600000000FF575756}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF57575600000000FF575756}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:GrayText;border-color:var(--mdc-checkbox-disabled-color, GrayText);background-color:transparent}.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:GrayText;background-color:transparent;background-color:var(--mdc-checkbox-disabled-color, transparent)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:GrayText;color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:GrayText;border-color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color, border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((40px - 48px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((40px - 48px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:48px;width:var(--mdc-checkbox-state-layer-size, 48px);height:48px;height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}@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-checkbox{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-checkbox .mdc-checkbox__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-checkbox .mdc-checkbox__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-checkbox.mdc-ripple-upgraded--unbounded .mdc-checkbox__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-checkbox.mdc-ripple-upgraded--foreground-activation .mdc-checkbox__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-checkbox.mdc-ripple-upgraded--foreground-deactivation .mdc-checkbox__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-checkbox{z-index:0}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{z-index:-1;z-index:var(--mdc-ripple-z-index, -1)}.mdc-checkbox__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, inherit));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0;}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px;}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto;}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0;}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0;}.mdc-form-field{font-family:inherit}.mdc-form-field{display:flex;align-items:flex-start}.mdc-form-field .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate)~.mdc-checkbox__background,.mdc-form-field .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate)~.mdc-checkbox__background{background-color:var(--lime-checkbox-unchecked-color)}.mdc-form-field .mdc-checkbox.mdc-checkbox--invalid .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--lime-error-text-color)}.mdc-form-field .mdc-checkbox .mdc-checkbox__native-control:focus-visible+.mdc-checkbox__background:after{content:\"\";display:block;position:absolute;inset:-0.25rem;border-radius:0.25rem;box-shadow:var(--shadow-depth-8-focused)}.mdc-form-field .mdc-checkbox--disabled{opacity:0.5}.mdc-form-field label{cursor:pointer;line-height:normal;letter-spacing:normal;padding-top:0.75rem;padding-left:0}.mdc-form-field label.mdc-checkbox--required::after{margin-left:0.0625rem;content:\"*\"}.mdc-form-field label.mdc-checkbox--invalid{color:var(--lime-error-text-color)}:host(limel-checkbox:focus),:host(limel-checkbox:focus-visible),:host(limel-checkbox:focus-within),:host(limel-checkbox[invalid]:not([invalid=false])),:host(limel-checkbox[invalid=true]){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-checkbox){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limel-checkbox:focus) limel-helper-line,:host(limel-checkbox:focus-visible) limel-helper-line,:host(limel-checkbox:focus-within) limel-helper-line,:host(limel-checkbox:hover) limel-helper-line{will-change:grid-template-rows}:host(limel-list){display:block;isolation:isolate;--mdc-checkbox-checked-color:var(--mdc-theme-primary);--mdc-checkbox-unchecked-color:var(\n --checkbox-unchecked-border-color,\n rgb(var(--contrast-900))\n );--lime-checkbox-unchecked-color:rgb(var(--contrast-300))}:host([hidden]){display:none}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, inherit));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list-item__secondary-text{color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic{background-color:transparent}.mdc-deprecated-list-item__graphic{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader{color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__text{opacity:0.38}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__text,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__secondary-text{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item--selected,.mdc-deprecated-list-item--activated{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:0.812rem}.mdc-deprecated-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;height:48px}.mdc-deprecated-list-item:focus{outline:none}.mdc-deprecated-list-item:not(.mdc-deprecated-list-item--selected):focus::before,.mdc-deprecated-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:\"\";pointer-events:none}.mdc-deprecated-list-item.mdc-deprecated-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double transparent;border-radius:inherit;content:\"\";pointer-events:none}[dir=rtl] .mdc-deprecated-list-item,.mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-deprecated-list--icon-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px;height:56px}[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-item,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px;height:56px}[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-item,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px;height:56px}[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-deprecated-list--image-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px;height:72px}[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-item,.mdc-deprecated-list--image-list .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-deprecated-list--video-list .mdc-deprecated-list-item{padding-left:0px;padding-right:16px;height:72px}[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-item,.mdc-deprecated-list--video-list .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:0px;}.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:16px;width:20px;height:20px}[dir=rtl] .mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic,.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:16px;margin-right:0;}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;object-fit:cover;margin-left:0;margin-right:32px;width:24px;height:24px}[dir=rtl] .mdc-deprecated-list-item__graphic,.mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:32px;margin-right:0;}.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:32px;width:24px;height:24px}[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:32px;margin-right:0;}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:16px;width:40px;height:40px;border-radius:50%}[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__graphic,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:16px;margin-right:0;}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:16px;width:40px;height:40px}[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__graphic,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:16px;margin-right:0;}.mdc-deprecated-list--image-list .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:16px;width:56px;height:56px}[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-item__graphic,.mdc-deprecated-list--image-list .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:16px;margin-right:0;}.mdc-deprecated-list--video-list .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:16px;width:100px;height:56px}[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-item__graphic,.mdc-deprecated-list--video-list .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:16px;margin-right:0;}.mdc-deprecated-list .mdc-deprecated-list-item__graphic{display:inline-flex}.mdc-deprecated-list-item__meta{margin-left:auto;margin-right:0}.mdc-deprecated-list-item__meta:not(.material-icons){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, inherit));font-size:0.6875rem;font-size:var(--mdc-typography-caption-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-caption-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-deprecated-list-item[dir=rtl] .mdc-deprecated-list-item__meta,[dir=rtl] .mdc-deprecated-list-item .mdc-deprecated-list-item__meta{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-deprecated-list--video-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--image-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--video-list .mdc-deprecated-list-item__primary-text::before,.mdc-deprecated-list--image-list .mdc-deprecated-list-item__primary-text::before,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__primary-text::before,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__primary-text::before,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-deprecated-list--video-list .mdc-deprecated-list-item__primary-text::after,.mdc-deprecated-list--image-list .mdc-deprecated-list-item__primary-text::after,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__primary-text::after,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__primary-text::after,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-deprecated-list--dense .mdc-deprecated-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense .mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:24px;content:\"\";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, inherit));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:\"\";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}.mdc-deprecated-list--dense .mdc-deprecated-list-item{height:40px}.mdc-deprecated-list--two-line .mdc-deprecated-list-item__text{align-self:flex-start}.mdc-deprecated-list--two-line .mdc-deprecated-list-item{height:64px}.mdc-deprecated-list--two-line.mdc-deprecated-list--video-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--image-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--icon-list .mdc-deprecated-list-item{height:72px}.mdc-deprecated-list--two-line.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic{align-self:flex-start;margin-top:16px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense .mdc-deprecated-list-item,.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item{height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:16px;width:36px;height:36px}[dir=rtl] .mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic,.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:16px;margin-right:0;}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item{cursor:pointer}a.mdc-deprecated-list-item{color:inherit;text-decoration:none}.mdc-deprecated-list-divider{height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid}.mdc-deprecated-list-divider{border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list-divider--padded{margin-left:16px;margin-right:0;width:calc(100% - 32px)}[dir=rtl] .mdc-deprecated-list-divider--padded,.mdc-deprecated-list-divider--padded[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list-divider--inset{margin-left:72px;margin-right:0;width:calc(100% - 72px)}[dir=rtl] .mdc-deprecated-list-divider--inset,.mdc-deprecated-list-divider--inset[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list-divider--inset.mdc-deprecated-list-divider--padded{margin-left:72px;margin-right:0;width:calc(100% - 88px)}[dir=rtl] .mdc-deprecated-list-divider--inset.mdc-deprecated-list-divider--padded,.mdc-deprecated-list-divider--inset.mdc-deprecated-list-divider--padded[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading{margin-left:16px;margin-right:0;width:calc(100% - 16px)}[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading,.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:16px;margin-right:0;width:calc(100% - 32px)}[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing,.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding,.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding,.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading{margin-left:72px;margin-right:0;width:calc(100% - 72px)}[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading,.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:72px;margin-right:0;width:calc(100% - 88px)}[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing,.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding,.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding,.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading{margin-left:72px;margin-right:0;width:calc(100% - 72px)}[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:72px;margin-right:0;width:calc(100% - 88px)}[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding,.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading{margin-left:72px;margin-right:0;width:calc(100% - 72px)}[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:72px;margin-right:0;width:calc(100% - 88px)}[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl]{margin-left:0;margin-right:72px;}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading{margin-left:88px;margin-right:0;width:calc(100% - 88px)}[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading,.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading[dir=rtl]{margin-left:0;margin-right:88px;}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:88px;margin-right:0;width:calc(100% - 104px)}[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing,.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl]{margin-left:0;margin-right:88px;}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding,.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding,.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl]{margin-left:0;margin-right:16px;}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading{margin-left:116px;margin-right:0;width:calc(100% - 116px)}[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading,.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading[dir=rtl]{margin-left:0;margin-right:116px;}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:116px;margin-right:0;width:calc(100% - 132px)}[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing,.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl]{margin-left:0;margin-right:116px;}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0px;margin-right:0;width:calc(100% - 0px)}[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding,.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl]{margin-left:0;margin-right:0px;}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0px;margin-right:0;width:calc(100% - 16px)}[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding,.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl]{margin-left:0;margin-right:0px;}.mdc-deprecated-list-group .mdc-deprecated-list{padding:0}.mdc-deprecated-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, inherit));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);margin:calc((3rem - 1.5rem) / 2) 16px}.mdc-list-item__primary-text{color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-item__secondary-text{color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-list-item__overline-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{background-color:transparent}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item__end{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:0.38}.mdc-list-item--disabled .mdc-list-item__primary-text{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__secondary-text{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__overline-text{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--selected .mdc-list-item__primary-text,.mdc-list-item--activated .mdc-list-item__primary-text{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-deprecated-list-group__subheader{color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-list-divider::after{content:\"\";display:block;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:white}}.mdc-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, inherit));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:\"\";pointer-events:none}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double transparent;border-radius:inherit;content:\"\";pointer-events:none}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid transparent;border-radius:inherit;content:\"\";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, inherit));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, inherit));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:\"\";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-overline-font-family, var(--mdc-typography-font-family, inherit));font-size:0.6875rem;font-size:var(--mdc-typography-overline-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-overline-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-overline-font-weight, 500);letter-spacing:0.1666666667em;letter-spacing:var(--mdc-typography-overline-letter-spacing, 0.1666666667em);text-decoration:none;text-decoration:var(--mdc-typography-overline-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-overline-text-transform, uppercase);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:\"\";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px;}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:24px;height:24px}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px;}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px;}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px;}.mdc-list-item--with-leading-image .mdc-list-item__start{width:56px;height:56px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0;}.mdc-list-item--with-leading-video .mdc-list-item__start{width:100px;height:56px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px;}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px;}.mdc-list-item--with-leading-radio .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px;}.mdc-list-item--with-leading-switch .mdc-list-item__start{width:36px;height:20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:\"\";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:\"\";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto;}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px;}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:24px;height:24px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto;}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px;}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:\"\";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, inherit));font-size:0.6875rem;font-size:var(--mdc-typography-caption-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-caption-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto;}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px;}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto;}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px;}.mdc-list-item--with-trailing-radio .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto;}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px;}.mdc-list-item--with-trailing-switch .mdc-list-item__end{width:36px;height:20px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:\"\";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:\"\";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, inherit));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);margin:calc((3rem - 1.5rem) / 2) 16px}.mdc-list-divider{background-color:rgba(0, 0, 0, 0.12)}.mdc-list-divider{height:1px;padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px;}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto;}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px;}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0;}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--unbounded .mdc-deprecated-list-item__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-activation .mdc-deprecated-list-item__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-deprecated-list-item__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:hover .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:hover .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-deprecated-list-item__ripple::before{opacity:0.24;opacity:var(--mdc-ripple-activated-opacity, 0.24)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-deprecated-list-item__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:hover .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.32;opacity:var(--mdc-ripple-hover-opacity, 0.32)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.48;opacity:var(--mdc-ripple-focus-opacity, 0.48)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.48;opacity:var(--mdc-ripple-press-opacity, 0.48)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.48)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-list-item__ripple::before{opacity:0.24;opacity:var(--mdc-ripple-activated-opacity, 0.24)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-list-item__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:hover .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.32;opacity:var(--mdc-ripple-hover-opacity, 0.32)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.48;opacity:var(--mdc-ripple-focus-opacity, 0.48)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.48;opacity:var(--mdc-ripple-press-opacity, 0.48)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.48)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before{opacity:0.16;opacity:var(--mdc-ripple-selected-opacity, 0.16)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.24;opacity:var(--mdc-ripple-hover-opacity, 0.24)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-focus-opacity, 0.4)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-press-opacity, 0.4)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.4)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-list-item__ripple::before{opacity:0.16;opacity:var(--mdc-ripple-selected-opacity, 0.16)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-list-item__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.24;opacity:var(--mdc-ripple-hover-opacity, 0.24)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-focus-opacity, 0.4)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-press-opacity, 0.4)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.4)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-deprecated-list-item--disabled{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::before,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-deprecated-list-item__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-deprecated-list-item__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-deprecated-list-item__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::before,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::before,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::before,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::before,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::before,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,.mdc-deprecated-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-deprecated-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}:not(.mdc-list-item--disabled).mdc-list-item{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}:not(.mdc-list-item--disabled).mdc-list-item:hover .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple::before{opacity:0.24;opacity:var(--mdc-ripple-activated-opacity, 0.24)}:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}:not(.mdc-list-item--disabled).mdc-list-item--activated:hover .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.32;opacity:var(--mdc-ripple-hover-opacity, 0.32)}:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.48;opacity:var(--mdc-ripple-focus-opacity, 0.48)}:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.48;opacity:var(--mdc-ripple-press-opacity, 0.48)}:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.48)}:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple::before{opacity:0.16;opacity:var(--mdc-ripple-selected-opacity, 0.16)}:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}:not(.mdc-list-item--disabled).mdc-list-item--selected:hover .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.24;opacity:var(--mdc-ripple-hover-opacity, 0.24)}:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-focus-opacity, 0.4)}:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-press-opacity, 0.4)}:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.4)}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-list-item--disabled{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-list-item--disabled .mdc-list-item__ripple::before,.mdc-list-item--disabled .mdc-list-item__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-list-item--disabled .mdc-list-item__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-list-item--disabled .mdc-list-item__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-list-item--disabled .mdc-list-item__ripple::before,.mdc-list-item--disabled .mdc-list-item__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-list-item--disabled .mdc-list-item__ripple::before,.mdc-list-item--disabled .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-list-item--disabled .mdc-list-item__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-deprecated-list,.mdc-deprecated-list-item__secondary-text{font-family:inherit}.mdc-deprecated-list{--mdc-theme-text-icon-on-background:var(\n --icon-color,\n rgb(var(--contrast-900))\n );margin:var(--list-margin, 0.25rem);padding:0;border-radius:0.375rem}.mdc-deprecated-list .mdc-deprecated-list-divider{border-bottom-color:transparent;display:flex;align-items:center;gap:0.75rem;height:auto;padding:0 0.5rem}.mdc-deprecated-list .limel-list-divider-line{background-color:rgb(var(--contrast-400));height:0.125rem;border-radius:1rem;min-width:1rem;flex-grow:1}.mdc-deprecated-list .limel-list-divider-title{all:unset;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--contrast-900));font-size:0.8125rem}.mdc-deprecated-list .mdc-deprecated-list-item{gap:0.5rem;transition:background-color 0.2s ease;box-sizing:border-box;z-index:0;min-height:2.5rem}.mdc-deprecated-list .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):hover{background-color:rgb(var(--contrast-300));z-index:1}.mdc-deprecated-list .mdc-deprecated-list-item.mdc-deprecated-list-item--disabled{cursor:not-allowed}.mdc-deprecated-list .mdc-deprecated-list-item.mdc-deprecated-list-item--disabled limel-icon{opacity:0.38}.mdc-deprecated-list .mdc-deprecated-list-item:first-child{border-top-left-radius:0.375rem;border-top-right-radius:0.375rem}.mdc-deprecated-list .mdc-deprecated-list-item:last-child{border-bottom-right-radius:0.375rem;border-bottom-left-radius:0.375rem}.mdc-deprecated-list.selectable .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled){cursor:pointer}.mdc-deprecated-list .mdc-deprecated-list-item__meta{line-height:100%;margin-right:-0.5rem;order:var(--limel-list-meta-order, 3)}.mdc-deprecated-list .mdc-deprecated-list-item__graphic{margin-right:0}.mdc-deprecated-list.mdc-deprecated-list--avatar-list{position:relative}.mdc-deprecated-list.mdc-deprecated-list--avatar-list limel-icon.mdc-deprecated-list-item__graphic{background-color:var(--icon-background-color, rgb(var(--contrast-900)));color:var(--icon-color, rgba(var(--color-white), 0.88));margin-left:-0.25rem}.mdc-deprecated-list.mdc-deprecated-list--avatar-list hr.mdc-deprecated-list-divider{position:absolute;bottom:0}.mdc-deprecated-list.mdc-deprecated-list--avatar-list hr.mdc-deprecated-list-divider.mdc-deprecated-list-divider--inset{--icon-width:2.5rem;--icon-right-padding:0.75rem;--list-right-padding:0.75rem;right:0;width:calc(100% - var(--icon-width) - var(--icon-right-padding) - var(--list-right-padding))}.mdc-deprecated-list.mdc-deprecated-list--avatar-list hr.mdc-deprecated-list-divider.mdc-deprecated-list-divider--inset.x-small{--icon-width:1.5rem}.mdc-deprecated-list.mdc-deprecated-list--avatar-list hr.mdc-deprecated-list-divider.mdc-deprecated-list-divider--inset.small{--icon-width:2rem}.mdc-deprecated-list.mdc-deprecated-list--avatar-list hr.mdc-deprecated-list-divider.mdc-deprecated-list-divider--inset.medium{--icon-width:2.5rem}.mdc-deprecated-list.mdc-deprecated-list--avatar-list hr.mdc-deprecated-list-divider.mdc-deprecated-list-divider--inset.large{--icon-width:3rem}.mdc-deprecated-list.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item:last-child hr.mdc-deprecated-list-divider{display:none}.mdc-deprecated-list.mdc-deprecated-list--two-line .mdc-deprecated-list-item__text{padding-top:0.5rem;padding-bottom:0.5rem}.mdc-deprecated-list .mdc-deprecated-list-item__secondary-text,.mdc-deprecated-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list .mdc-deprecated-list-item__command-text{margin:0}.mdc-deprecated-list .mdc-deprecated-list-item__secondary-text:before,.mdc-deprecated-list .mdc-deprecated-list-item__secondary-text:after,.mdc-deprecated-list .mdc-deprecated-list-item__primary-text:before,.mdc-deprecated-list .mdc-deprecated-list-item__primary-text:after,.mdc-deprecated-list .mdc-deprecated-list-item__command-text:before,.mdc-deprecated-list .mdc-deprecated-list-item__command-text:after{display:none}.mdc-deprecated-list .mdc-deprecated-list-item__command-text{color:rgb(var(--contrast-800));margin-left:0.7rem}.mdc-deprecated-list .mdc-deprecated-list-item__text{align-self:center;width:100%}.mdc-deprecated-list .mdc-deprecated-list-item__primary-command-text{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline}.mdc-deprecated-list limel-icon.mdc-deprecated-list-item__graphic{display:block}.mdc-deprecated-list:not(.mdc-deprecated-list--avatar-list) limel-icon.mdc-deprecated-list-item__graphic[size=x-small]{margin-right:0}.mdc-deprecated-list:not(.mdc-deprecated-list--avatar-list) limel-icon.mdc-deprecated-list-item__graphic[size=small]{margin-right:0}.mdc-deprecated-list:not(.mdc-deprecated-list--avatar-list) limel-icon.mdc-deprecated-list-item__graphic[size=medium]{margin-right:0.25rem}.mdc-deprecated-list:not(.mdc-deprecated-list--avatar-list) limel-icon.mdc-deprecated-list-item__graphic[size=large]{margin-right:0.5rem}.mdc-deprecated-list-item.mdc-deprecated-list-item--selected:before{background-color:var(--mdc-theme-primary);opacity:0.15}:not(.mdc-deprecated-list--non-interactive)>:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:focus{outline:none}:not(.mdc-deprecated-list--non-interactive)>:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}:not(.mdc-deprecated-list--non-interactive)>:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:focus-visible{border-radius:0.375rem;z-index:1}:host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}:host(limel-checkbox){--mdc-checkbox-checked-color:var(--mdc-theme-primary);--mdc-checkbox-unchecked-color:var(\n --checkbox-unchecked-border-color,\n rgb(var(--contrast-900))\n );--lime-checkbox-unchecked-color:rgb(var(--contrast-300));min-height:2.5rem}limel-dynamic-label{margin-top:0.375rem;margin-left:0.25rem}.mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#575756;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #575756))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#575756;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #575756))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-touch-target-size, 40px);height:40px;height:var(--mdc-checkbox-touch-target-size, 40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#575756;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756));background-color:#575756;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756))}@keyframes mdc-checkbox-fade-in-background-8A000000FF57575600000000FF575756{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#575756;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756));background-color:#575756;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF57575600000000FF575756{0%,80%{border-color:#575756;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756));background-color:#575756;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #575756))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF57575600000000FF575756}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF57575600000000FF575756}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:GrayText;border-color:var(--mdc-checkbox-disabled-color, GrayText);background-color:transparent}.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:GrayText;background-color:transparent;background-color:var(--mdc-checkbox-disabled-color, transparent)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:GrayText;color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:GrayText;border-color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color, border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((40px - 48px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((40px - 48px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:48px;width:var(--mdc-checkbox-state-layer-size, 48px);height:48px;height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-checkbox .mdc-checkbox__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-checkbox .mdc-checkbox__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-checkbox.mdc-ripple-upgraded--unbounded .mdc-checkbox__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-checkbox.mdc-ripple-upgraded--foreground-activation .mdc-checkbox__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-checkbox.mdc-ripple-upgraded--foreground-deactivation .mdc-checkbox__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-checkbox{z-index:0}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{z-index:-1;z-index:var(--mdc-ripple-z-index, -1)}.mdc-checkbox__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, inherit));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0;}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px;}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto;}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0;}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0;}.mdc-form-field{font-family:inherit}.mdc-form-field{display:flex;align-items:flex-start}.mdc-form-field .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate)~.mdc-checkbox__background,.mdc-form-field .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate)~.mdc-checkbox__background{background-color:var(--lime-checkbox-unchecked-color)}.mdc-form-field .mdc-checkbox.mdc-checkbox--invalid .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--lime-error-text-color)}.mdc-form-field .mdc-checkbox .mdc-checkbox__native-control:focus-visible+.mdc-checkbox__background:after{content:\"\";display:block;position:absolute;inset:-0.25rem;border-radius:0.25rem;box-shadow:var(--shadow-depth-8-focused)}.mdc-form-field .mdc-checkbox--disabled{opacity:0.5}.mdc-form-field label{cursor:pointer;line-height:normal;letter-spacing:normal;padding-top:0.75rem;padding-left:0}.mdc-form-field label.mdc-checkbox--required::after{margin-left:0.0625rem;content:\"*\"}.mdc-form-field label.mdc-checkbox--invalid{color:var(--lime-error-text-color)}:host(limel-checkbox:focus),:host(limel-checkbox:focus-visible),:host(limel-checkbox:focus-within),:host(limel-checkbox[invalid]:not([invalid=false])),:host(limel-checkbox[invalid=true]){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-checkbox){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limel-checkbox:focus) limel-helper-line,:host(limel-checkbox:focus-visible) limel-helper-line,:host(limel-checkbox:focus-within) limel-helper-line,:host(limel-checkbox:hover) limel-helper-line{will-change:grid-template-rows}.mdc-radio{padding:calc((40px - 20px) / 2)}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54)}.mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#575756;border-color:var(--mdc-theme-secondary, #575756)}.mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#575756;border-color:var(--mdc-theme-secondary, #575756)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio .mdc-radio__background::before{background-color:#575756;background-color:var(--mdc-theme-secondary, #575756)}.mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);right:calc((40px - 40px) / 2);left:calc((40px - 40px) / 2);width:40px;height:40px}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity, transform, border-color, color}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:\"\";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:0.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-radio .mdc-radio__ripple::before,.mdc-radio .mdc-radio__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-radio .mdc-radio__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-radio .mdc-radio__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-radio.mdc-ripple-upgraded--unbounded .mdc-radio__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-radio.mdc-ripple-upgraded--foreground-activation .mdc-radio__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-radio.mdc-ripple-upgraded--foreground-deactivation .mdc-radio__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-radio .mdc-radio__ripple::before,.mdc-radio .mdc-radio__ripple::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before,.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-radio .mdc-radio__ripple::before,.mdc-radio .mdc-radio__ripple::after{background-color:#575756;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #575756))}.mdc-radio:hover .mdc-radio__ripple::before,.mdc-radio.mdc-ripple-surface--hover .mdc-radio__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__ripple::before,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-radio:not(.mdc-ripple-upgraded) .mdc-radio__ripple::after{transition:opacity 150ms linear}.mdc-radio:not(.mdc-ripple-upgraded):active .mdc-radio__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-radio.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__background::before,.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__background::before{content:none}.mdc-radio__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:inherit;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, inherit));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0;}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px;}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto;}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0;}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0;}.mdc-form-field{display:flex}.mdc-form-field .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-checkbox-unchecked-color)}:host(.has-striped-rows) .mdc-deprecated-list{border:1px solid rgb(var(--contrast-400))}:host(.has-striped-rows) .mdc-deprecated-list-item:nth-child(even),:host(.has-striped-rows.has-interactive-items) .mdc-deprecated-list-item:nth-child(even){background-color:var(--list-background-color-of-odd-interactive-items, rgb(var(--contrast-200)))}:host(.has-striped-rows) .mdc-deprecated-list-item:nth-child(odd),:host(.has-striped-rows.has-interactive-items) .mdc-deprecated-list-item:nth-child(odd){background-color:var(--list-background-color-of-even-interactive-items, rgb(var(--contrast-100)))}:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled){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(--mdc-theme-on-surface);background-color:transparent}:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):hover,:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):focus,:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):focus-visible{will-change:color, background-color, box-shadow, transform}:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):hover{transform:translate3d(0, 0.01rem, 0);color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):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) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):hover,:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(.has-interactive-items) .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):hover{z-index:1}:host{--line-height-of-secondary-text:1rem}.mdc-deprecated-list-item{height:auto !important}.mdc-deprecated-list-item .mdc-deprecated-list-item__secondary-text{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--maxLinesSecondaryText);line-height:var(--line-height-of-secondary-text)}:host(.has-grid-layout){--gap:var(--list-grid-gap, 0.75rem);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-divider{grid-column:1/-1}:host(.has-grid-layout) .mdc-deprecated-list-item{border-radius:0.25rem;background-color:rgb(var(--contrast-100))}:host(.has-grid-layout) .mdc-deprecated-list--avatar-list limel-icon{margin-right:0.25rem;margin-left:-0.5rem}:host(.static-actions-list){z-index:1;background-color:var(--mdc-theme-surface)}:host(.has-position-sticky){position:sticky;box-shadow:0 0 0.75rem 0.5rem var(--mdc-theme-surface)}: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}";
2436
+
2437
+ const { ACTION_EVENT } = strings$2;
2438
+ const List = class {
2439
+ constructor(hostRef) {
2440
+ registerInstance(this, hostRef);
2441
+ this.change = createEvent(this, "change", 7);
2442
+ this.select = createEvent(this, "select", 7);
2443
+ this.listRenderer = new ListRenderer();
2444
+ this.setup = () => {
2445
+ this.setupList();
2446
+ this.setupListeners();
2447
+ };
2448
+ this.setupList = () => {
2449
+ if (this.mdcList) {
2450
+ this.teardown();
2451
+ this.mdcList = null;
2452
+ }
2453
+ const element = this.element.shadowRoot.querySelector('.mdc-deprecated-list');
2454
+ if (!element) {
2455
+ return;
2456
+ }
2457
+ this.mdcList = new MDCList(element);
2458
+ this.mdcList.hasTypeahead = true;
2459
+ };
2460
+ this.setupListeners = () => {
2461
+ if (!this.mdcList) {
2462
+ return;
2463
+ }
2464
+ this.mdcList.unlisten(ACTION_EVENT, this.handleAction);
2465
+ this.selectable = ['selectable', 'radio', 'checkbox'].includes(this.type);
2466
+ this.multiple = this.type === 'checkbox';
2467
+ if (!this.selectable) {
2468
+ return;
2469
+ }
2470
+ this.mdcList.listen(ACTION_EVENT, this.handleAction);
2471
+ this.mdcList.singleSelection = !this.multiple;
2472
+ };
2473
+ this.teardown = () => {
2474
+ var _a, _b;
2475
+ (_a = this.mdcList) === null || _a === void 0 ? void 0 : _a.unlisten(ACTION_EVENT, this.handleAction);
2476
+ (_b = this.mdcList) === null || _b === void 0 ? void 0 : _b.destroy();
2477
+ };
2478
+ this.handleAction = (event) => {
2479
+ if (!this.multiple) {
2480
+ this.handleSingleSelect(event.detail.index);
2481
+ return;
2482
+ }
2483
+ this.handleMultiSelect(event.detail.index);
2484
+ };
2485
+ this.handleSingleSelect = (index) => {
2486
+ const listItems = this.items.filter(this.isListItem);
2487
+ if (listItems[index].disabled) {
2488
+ return;
2489
+ }
2490
+ const selectedItem = listItems.find((item) => {
2491
+ return !!item.selected;
2492
+ });
2493
+ if (selectedItem) {
2494
+ if (this.type !== 'radio') {
2495
+ this.mdcList.selectedIndex = -1;
2496
+ }
2497
+ this.change.emit(Object.assign(Object.assign({}, selectedItem), { selected: false }));
2498
+ }
2499
+ if (listItems[index] !== selectedItem) {
2500
+ this.change.emit(Object.assign(Object.assign({}, listItems[index]), { selected: true }));
2501
+ }
2502
+ };
2503
+ this.handleMultiSelect = (index) => {
2504
+ const listItems = this.items.filter(this.isListItem);
2505
+ if (listItems[index].disabled) {
2506
+ return;
2507
+ }
2508
+ const selectedItems = listItems
2509
+ .filter((item, listIndex) => {
2510
+ if (listIndex === index) {
2511
+ // This is the item that was selected or deselected,
2512
+ // so we negate its previous selection status.
2513
+ return !item.selected;
2514
+ }
2515
+ // This is an item that didn't change, so we keep its selection status.
2516
+ return item.selected;
2517
+ })
2518
+ .map((item) => {
2519
+ return Object.assign(Object.assign({}, item), { selected: true });
2520
+ });
2521
+ this.change.emit(selectedItems);
2522
+ };
2523
+ this.isListItem = (item) => {
2524
+ return !('separator' in item);
2525
+ };
2526
+ this.items = undefined;
2527
+ this.badgeIcons = undefined;
2528
+ this.iconSize = 'small';
2529
+ this.type = undefined;
2530
+ this.maxLinesSecondaryText = 3;
2531
+ }
2532
+ connectedCallback() {
2533
+ this.setup();
2534
+ }
2535
+ disconnectedCallback() {
2536
+ this.teardown();
2537
+ }
2538
+ componentDidLoad() {
2539
+ this.setup();
2540
+ this.triggerIconColorWarning();
2541
+ }
2542
+ render() {
2543
+ var _a;
2544
+ this.config = {
2545
+ badgeIcons: this.badgeIcons,
2546
+ type: this.type,
2547
+ iconSize: this.iconSize,
2548
+ };
2549
+ let maxLinesSecondaryText = +((_a = this.maxLinesSecondaryText) === null || _a === void 0 ? void 0 : _a.toFixed());
2550
+ if (this.maxLinesSecondaryText < 1) {
2551
+ maxLinesSecondaryText = 1;
2552
+ }
2553
+ const html = this.listRenderer.render(this.items, this.config);
2554
+ return (h(Host, { style: {
2555
+ '--maxLinesSecondaryText': `${maxLinesSecondaryText}`,
2556
+ } }, html));
2557
+ }
2558
+ handleType() {
2559
+ this.setupListeners();
2560
+ }
2561
+ itemsChanged() {
2562
+ if (!this.mdcList) {
2563
+ return;
2564
+ }
2565
+ setTimeout(() => {
2566
+ this.setup();
2567
+ const listItems = this.items.filter(this.isListItem);
2568
+ if (this.multiple) {
2569
+ this.mdcList.selectedIndex = listItems
2570
+ .filter((item) => item.selected)
2571
+ .map((item) => listItems.indexOf(item));
2572
+ }
2573
+ else {
2574
+ const selectedIndex = listItems.findIndex((item) => item.selected);
2575
+ if (selectedIndex === -1) {
2576
+ this.mdcList.initializeListType();
2577
+ }
2578
+ else {
2579
+ this.mdcList.selectedIndex = selectedIndex;
2580
+ }
2581
+ }
2582
+ }, 0);
2583
+ }
2584
+ triggerIconColorWarning() {
2585
+ var _a;
2586
+ if ((_a = this.items) === null || _a === void 0 ? void 0 : _a.some((item) => 'iconColor' in item)) {
2587
+ /* eslint-disable-next-line no-console */
2588
+ console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.");
2589
+ }
2590
+ }
2591
+ static get delegatesFocus() { return true; }
2592
+ get element() { return getElement(this); }
2593
+ static get watchers() { return {
2594
+ "type": ["handleType"],
2595
+ "items": ["itemsChanged"]
2596
+ }; }
2597
+ };
2598
+ List.style = listCss;
2599
+
638
2600
  const menuCss = ":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}";
639
2601
 
640
- const DEFAULT_ROOT_BREADCRUMBS_ITEM = {
641
- text: '',
642
- icon: {
643
- name: 'home',
644
- },
645
- type: 'icon-only',
2602
+ const DEFAULT_ROOT_BREADCRUMBS_ITEM = {
2603
+ text: '',
2604
+ icon: {
2605
+ name: 'home',
2606
+ },
2607
+ type: 'icon-only',
2608
+ };
2609
+ const Menu = class {
2610
+ constructor(hostRef) {
2611
+ registerInstance(this, hostRef);
2612
+ this.cancel = createEvent(this, "cancel", 7);
2613
+ this.select = createEvent(this, "select", 7);
2614
+ this.navigateMenu = createEvent(this, "navigateMenu", 7);
2615
+ this.renderLoader = () => {
2616
+ if (!this.loadingSubItems && !this.loading) {
2617
+ return;
2618
+ }
2619
+ const cssProperties = this.getCssProperties();
2620
+ return (h("div", { style: {
2621
+ width: cssProperties['--menu-surface-width'],
2622
+ display: 'flex',
2623
+ 'align-items': 'center',
2624
+ 'justify-content': 'center',
2625
+ padding: '0.5rem 0',
2626
+ } }, h("limel-spinner", { size: "mini", limeBranded: false })));
2627
+ };
2628
+ this.renderBreadcrumb = () => {
2629
+ const breadcrumbsItems = this.getBreadcrumbsItems();
2630
+ if (!breadcrumbsItems.length) {
2631
+ return;
2632
+ }
2633
+ return (h("limel-breadcrumbs", { style: {
2634
+ 'border-bottom': 'solid 1px rgb(var(--contrast-500))',
2635
+ 'flex-shrink': '0',
2636
+ }, onSelect: this.handleBreadcrumbsSelect, items: breadcrumbsItems }));
2637
+ };
2638
+ this.handleBreadcrumbsSelect = (event) => {
2639
+ if (!event.detail.menuItem) {
2640
+ this.currentSubMenu = null;
2641
+ this.clearSearch();
2642
+ this.navigateMenu.emit(null);
2643
+ this.setFocus();
2644
+ return;
2645
+ }
2646
+ this.handleSelect(event.detail.menuItem);
2647
+ };
2648
+ this.renderSearchField = () => {
2649
+ if (!this.searcher) {
2650
+ return;
2651
+ }
2652
+ return (h("limel-input-field", { tabindex: "0", ref: this.setSearchElement, type: "search", leadingIcon: "search", style: {
2653
+ padding: '0.25rem',
2654
+ 'box-sizing': 'border-box',
2655
+ }, value: this.searchValue, onChange: this.handleTextInput, onKeyDown: this.handleInputKeyDown }));
2656
+ };
2657
+ this.renderEmptyMessage = () => {
2658
+ var _a;
2659
+ if (this.loading ||
2660
+ this.loadingSubItems ||
2661
+ !this.emptyResultMessage ||
2662
+ !Array.isArray(this.searchResults) ||
2663
+ ((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.length)) {
2664
+ return null;
2665
+ }
2666
+ return (h("p", { style: {
2667
+ padding: '0 1rem',
2668
+ 'text-align': 'center',
2669
+ } }, this.emptyResultMessage));
2670
+ };
2671
+ this.renderMenuList = () => {
2672
+ let items = this.visibleItems;
2673
+ if (this.loadingSubItems || this.loading) {
2674
+ items = [];
2675
+ }
2676
+ return (h("limel-menu-list", { style: {
2677
+ 'overflow-y': 'auto',
2678
+ 'flex-grow': '1',
2679
+ }, class: {
2680
+ 'has-grid-layout has-interactive-items': this.gridLayout,
2681
+ }, items: items, type: "menu", badgeIcons: this.badgeIcons, onSelect: this.onSelect, ref: this.setListElement, onKeyDown: this.handleMenuKeyDown }));
2682
+ };
2683
+ this.handleTextInput = async (event) => {
2684
+ event.stopPropagation();
2685
+ const query = event.detail;
2686
+ this.searchValue = query;
2687
+ if (query === '') {
2688
+ this.searchResults = null;
2689
+ this.loadingSubItems = false;
2690
+ return;
2691
+ }
2692
+ this.loadingSubItems = true;
2693
+ const result = await this.searcher(query);
2694
+ if (this.searchValue !== query) {
2695
+ return;
2696
+ }
2697
+ this.searchResults = result;
2698
+ this.loadingSubItems = false;
2699
+ };
2700
+ // Key handler for the input search field
2701
+ // Will change focus to the first/last item in the dropdown
2702
+ // list to enable selection with the keyboard
2703
+ this.handleInputKeyDown = (event) => {
2704
+ const isForwardTab = (event.key === TAB || event.keyCode === TAB_KEY_CODE) &&
2705
+ !event.altKey &&
2706
+ !event.metaKey &&
2707
+ !event.shiftKey;
2708
+ const isUp = event.key === ARROW_UP || event.keyCode === ARROW_UP_KEY_CODE;
2709
+ const isDown = event.key === ARROW_DOWN || event.keyCode === ARROW_DOWN_KEY_CODE;
2710
+ if (!isForwardTab && !isUp && !isDown) {
2711
+ return;
2712
+ }
2713
+ if (!this.list) {
2714
+ return;
2715
+ }
2716
+ event.stopPropagation();
2717
+ event.preventDefault();
2718
+ if (isForwardTab || isDown) {
2719
+ const listItems = this.list.shadowRoot.querySelectorAll('.mdc-deprecated-list-item');
2720
+ const listElement = listItems[0];
2721
+ listElement === null || listElement === void 0 ? void 0 : listElement.focus();
2722
+ return;
2723
+ }
2724
+ if (isUp) {
2725
+ const listItems = this.list.shadowRoot.querySelectorAll('.mdc-deprecated-list-item');
2726
+ const listElement = listItems[listItems.length - 1];
2727
+ listElement === null || listElement === void 0 ? void 0 : listElement.focus();
2728
+ }
2729
+ };
2730
+ // Key handler for the menu list
2731
+ // Will change focus to the search field if using shift+tab
2732
+ // And can go forward/back with righ/left arrow keys
2733
+ this.handleMenuKeyDown = (event) => {
2734
+ var _a;
2735
+ const isBackwardTab = (event.key === TAB || event.keyCode === TAB_KEY_CODE) &&
2736
+ !event.altKey &&
2737
+ !event.metaKey &&
2738
+ event.shiftKey;
2739
+ const isLeft = event.key === ARROW_LEFT || event.keyCode === ARROW_LEFT_KEY_CODE;
2740
+ const isRight = event.key === ARROW_RIGHT || event.keyCode === ARROW_RIGHT_KEY_CODE;
2741
+ if (!isBackwardTab && !isLeft && !isRight) {
2742
+ return;
2743
+ }
2744
+ if (isBackwardTab) {
2745
+ event.stopPropagation();
2746
+ event.preventDefault();
2747
+ (_a = this.searchInput) === null || _a === void 0 ? void 0 : _a.focus();
2748
+ }
2749
+ else if (!this.gridLayout) {
2750
+ const currentItem = this.getCurrentItem();
2751
+ event.stopPropagation();
2752
+ event.preventDefault();
2753
+ if (isRight) {
2754
+ this.goForward(currentItem);
2755
+ }
2756
+ else if (isLeft) {
2757
+ this.goBack();
2758
+ }
2759
+ }
2760
+ };
2761
+ this.clearSearch = () => {
2762
+ this.searchValue = '';
2763
+ this.searchResults = null;
2764
+ this.loadingSubItems = false;
2765
+ };
2766
+ this.getCurrentItem = () => {
2767
+ var _a, _b, _c;
2768
+ const activeItem = (_b = (_a = this.list) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('[role="menuitem"][tabindex="0"]');
2769
+ const attrIndex = (_c = activeItem === null || activeItem === void 0 ? void 0 : activeItem.attributes) === null || _c === void 0 ? void 0 : _c.getNamedItem('data-index');
2770
+ const dataIndex = parseInt((attrIndex === null || attrIndex === void 0 ? void 0 : attrIndex.value) || '0', 10);
2771
+ return this.visibleItems[dataIndex];
2772
+ };
2773
+ this.goForward = (currentItem) => {
2774
+ this.handleSelect(currentItem, false);
2775
+ };
2776
+ this.goBack = () => {
2777
+ if (!this.currentSubMenu) {
2778
+ // Already in the root of the menu
2779
+ return;
2780
+ }
2781
+ const parent = this.currentSubMenu.parentItem;
2782
+ if (!parent) {
2783
+ // If only one step down, go to the root of the menu.
2784
+ // No need to load a sub-menu.
2785
+ this.currentSubMenu = null;
2786
+ this.clearSearch();
2787
+ this.navigateMenu.emit(null);
2788
+ this.setFocus();
2789
+ return;
2790
+ }
2791
+ this.handleSelect(parent);
2792
+ };
2793
+ this.setTriggerAttributes = (element) => {
2794
+ const attributes = {
2795
+ 'aria-haspopup': true,
2796
+ 'aria-expanded': this.open,
2797
+ 'aria-controls': this.portalId,
2798
+ disabled: this.disabled,
2799
+ role: 'button',
2800
+ };
2801
+ for (const [key, value] of Object.entries(attributes)) {
2802
+ if (!value) {
2803
+ element.removeAttribute(key);
2804
+ }
2805
+ else {
2806
+ element.setAttribute(key, String(value));
2807
+ }
2808
+ }
2809
+ };
2810
+ this.onClose = () => {
2811
+ this.cancel.emit();
2812
+ this.open = false;
2813
+ this.currentSubMenu = null;
2814
+ };
2815
+ this.onTriggerClick = (event) => {
2816
+ event.stopPropagation();
2817
+ if (this.disabled) {
2818
+ return;
2819
+ }
2820
+ this.open = !this.open;
2821
+ };
2822
+ this.handleSelect = async (menuItem, selectOnEmptyChildren = true) => {
2823
+ if (Array.isArray(menuItem === null || menuItem === void 0 ? void 0 : menuItem.items) && menuItem.items.length > 0) {
2824
+ this.selectedMenuItem = menuItem;
2825
+ this.clearSearch();
2826
+ this.currentSubMenu = menuItem;
2827
+ this.navigateMenu.emit(menuItem);
2828
+ this.setFocus();
2829
+ return;
2830
+ }
2831
+ else if (isFunction(menuItem === null || menuItem === void 0 ? void 0 : menuItem.items)) {
2832
+ const menuLoader = menuItem.items;
2833
+ this.selectedMenuItem = menuItem;
2834
+ this.loadingSubItems = true;
2835
+ const subItems = await menuLoader(menuItem);
2836
+ if (this.selectedMenuItem !== menuItem) {
2837
+ return;
2838
+ }
2839
+ menuItem.items = subItems;
2840
+ this.loadingSubItems = false;
2841
+ if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
2842
+ this.currentSubMenu = menuItem;
2843
+ this.clearSearch();
2844
+ this.navigateMenu.emit(menuItem);
2845
+ this.setFocus();
2846
+ return;
2847
+ }
2848
+ }
2849
+ if (!selectOnEmptyChildren) {
2850
+ return;
2851
+ }
2852
+ this.selectedMenuItem = menuItem;
2853
+ this.loadingSubItems = false;
2854
+ this.select.emit(menuItem);
2855
+ this.open = false;
2856
+ this.currentSubMenu = null;
2857
+ this.setFocus();
2858
+ };
2859
+ this.onSelect = (event) => {
2860
+ event.stopPropagation();
2861
+ this.handleSelect(event.detail);
2862
+ };
2863
+ this.setListElement = (element) => {
2864
+ this.list = element;
2865
+ };
2866
+ this.setFocus = () => {
2867
+ setTimeout(() => {
2868
+ if (this.searchInput && this.searcher) {
2869
+ const observer = new IntersectionObserver(() => {
2870
+ observer.unobserve(this.searchInput);
2871
+ if (this.searchInput === window.document.activeElement) {
2872
+ return;
2873
+ }
2874
+ this.searchInput.focus();
2875
+ });
2876
+ observer.observe(this.searchInput);
2877
+ }
2878
+ else if (this.list) {
2879
+ const observer = new IntersectionObserver(() => {
2880
+ observer.unobserve(this.list);
2881
+ this.focusMenuItem();
2882
+ });
2883
+ observer.observe(this.list);
2884
+ }
2885
+ }, 0);
2886
+ };
2887
+ this.setSearchElement = (element) => {
2888
+ this.searchInput = element;
2889
+ };
2890
+ this.focusMenuItem = () => {
2891
+ var _a;
2892
+ if (!this.list) {
2893
+ return;
2894
+ }
2895
+ const activeElement = this.list.shadowRoot.activeElement;
2896
+ activeElement === null || activeElement === void 0 ? void 0 : activeElement.blur();
2897
+ const menuItems = this.visibleItems.filter(this.isMenuItem);
2898
+ const selectedIndex = Math.max(menuItems.findIndex((item) => item.selected), 0);
2899
+ const menuElements = Array.from(this.list.shadowRoot.querySelectorAll('[role="menuitem"]'));
2900
+ (_a = menuElements[selectedIndex]) === null || _a === void 0 ? void 0 : _a.focus();
2901
+ };
2902
+ this.renderNotificationBadge = () => {
2903
+ if (this.items.some(this.hasNotificationBadge)) {
2904
+ return h("limel-badge", null);
2905
+ }
2906
+ };
2907
+ this.hasNotificationBadge = (item) => this.isMenuItem(item) && item.badge !== undefined;
2908
+ this.setTriggerRef = (elm) => {
2909
+ this.triggerElement = elm;
2910
+ };
2911
+ this.items = [];
2912
+ this.disabled = false;
2913
+ this.openDirection = 'bottom-start';
2914
+ this.surfaceWidth = 'inherit-from-items';
2915
+ this.open = false;
2916
+ this.badgeIcons = false;
2917
+ this.gridLayout = false;
2918
+ this.loading = false;
2919
+ this.currentSubMenu = undefined;
2920
+ this.rootItem = DEFAULT_ROOT_BREADCRUMBS_ITEM;
2921
+ this.searcher = undefined;
2922
+ this.emptyResultMessage = undefined;
2923
+ this.loadingSubItems = undefined;
2924
+ this.searchValue = undefined;
2925
+ this.searchResults = undefined;
2926
+ this.portalId = createRandomString();
2927
+ }
2928
+ componentDidRender() {
2929
+ const slotElement = this.host.shadowRoot.querySelector('slot');
2930
+ slotElement.assignedElements().forEach(this.setTriggerAttributes);
2931
+ }
2932
+ render() {
2933
+ const cssProperties = this.getCssProperties();
2934
+ const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
2935
+ const menuSurfaceWidth = this.getMenuSurfaceWidth(cssProperties['--menu-surface-width']);
2936
+ return (h("div", { class: "mdc-menu-surface--anchor", onClick: this.onTriggerClick }, h("slot", { ref: this.setTriggerRef, name: "trigger" }), this.renderNotificationBadge(), h("limel-portal", { visible: this.open, containerId: this.portalId, openDirection: this.openDirection, position: "absolute", containerStyle: { 'z-index': dropdownZIndex } }, h("limel-menu-surface", { open: this.open, onDismiss: this.onClose, style: Object.assign(Object.assign({}, cssProperties), { '--mdc-menu-min-width': menuSurfaceWidth, '--limel-menu-surface-display': 'flex', '--limel-menu-surface-flex-direction': 'column' }), class: {
2937
+ 'has-grid-layout': this.gridLayout,
2938
+ } }, this.renderSearchField(), this.renderBreadcrumb(), this.renderLoader(), this.renderEmptyMessage(), this.renderMenuList()))));
2939
+ }
2940
+ itemsWatcher() {
2941
+ this.clearSearch();
2942
+ this.setFocus();
2943
+ }
2944
+ openWatcher(newValue) {
2945
+ if (newValue) {
2946
+ this.setFocus();
2947
+ }
2948
+ else {
2949
+ this.clearSearch();
2950
+ }
2951
+ }
2952
+ getBreadcrumbsItems() {
2953
+ const breadCrumbItems = [];
2954
+ let currentItem = this.currentSubMenu;
2955
+ while (currentItem) {
2956
+ breadCrumbItems.push({
2957
+ text: currentItem.text,
2958
+ icon: currentItem.icon,
2959
+ menuItem: currentItem,
2960
+ });
2961
+ currentItem = currentItem.parentItem;
2962
+ }
2963
+ if (breadCrumbItems.length ||
2964
+ this.rootItem !== DEFAULT_ROOT_BREADCRUMBS_ITEM) {
2965
+ breadCrumbItems.push(this.rootItem);
2966
+ }
2967
+ return breadCrumbItems.reverse();
2968
+ }
2969
+ getCssProperties() {
2970
+ const propertyNames = [
2971
+ '--menu-surface-width',
2972
+ '--list-grid-item-max-width',
2973
+ '--list-grid-item-min-width',
2974
+ '--list-grid-gap',
2975
+ '--notification-badge-background-color',
2976
+ '--notification-badge-text-color',
2977
+ ];
2978
+ const style = getComputedStyle(this.host);
2979
+ const values = propertyNames.map((property) => {
2980
+ return style.getPropertyValue(property);
2981
+ });
2982
+ return zipObject(propertyNames, values);
2983
+ }
2984
+ isMenuItem(item) {
2985
+ return !('separator' in item);
2986
+ }
2987
+ getMenuSurfaceWidth(customWidth) {
2988
+ var _a, _b, _c, _d;
2989
+ if (customWidth) {
2990
+ return customWidth;
2991
+ }
2992
+ if (this.surfaceWidth === 'inherit-from-trigger') {
2993
+ const assignedTriggers = (_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.assignedElements();
2994
+ if (!(assignedTriggers === null || assignedTriggers === void 0 ? void 0 : assignedTriggers.length) ||
2995
+ !((_b = assignedTriggers[0]) === null || _b === void 0 ? void 0 : _b.clientWidth)) {
2996
+ return '';
2997
+ }
2998
+ return `${assignedTriggers[0].clientWidth}px`;
2999
+ }
3000
+ else if (this.surfaceWidth === 'inherit-from-menu') {
3001
+ if (!((_c = this.host) === null || _c === void 0 ? void 0 : _c.clientWidth)) {
3002
+ return '';
3003
+ }
3004
+ return `${(_d = this.host) === null || _d === void 0 ? void 0 : _d.clientWidth}px`;
3005
+ }
3006
+ return '';
3007
+ }
3008
+ get visibleItems() {
3009
+ var _a;
3010
+ if (Array.isArray(this.searchResults) && this.searchValue) {
3011
+ return this.searchResults;
3012
+ }
3013
+ else if (Array.isArray((_a = this.currentSubMenu) === null || _a === void 0 ? void 0 : _a.items)) {
3014
+ return this.currentSubMenu.items.map((item) => (Object.assign(Object.assign({}, item), { parentItem: this.currentSubMenu })));
3015
+ }
3016
+ return this.items;
3017
+ }
3018
+ get host() { return getElement(this); }
3019
+ static get watchers() { return {
3020
+ "items": ["itemsWatcher"],
3021
+ "open": ["openWatcher"]
3022
+ }; }
3023
+ };
3024
+ Menu.style = menuCss;
3025
+
3026
+ /**
3027
+ * @license
3028
+ * Copyright 2018 Google Inc.
3029
+ *
3030
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3031
+ * of this software and associated documentation files (the "Software"), to deal
3032
+ * in the Software without restriction, including without limitation the rights
3033
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3034
+ * copies of the Software, and to permit persons to whom the Software is
3035
+ * furnished to do so, subject to the following conditions:
3036
+ *
3037
+ * The above copyright notice and this permission notice shall be included in
3038
+ * all copies or substantial portions of the Software.
3039
+ *
3040
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3041
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3042
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3043
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3044
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3045
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3046
+ * THE SOFTWARE.
3047
+ */
3048
+ var cssClasses$1 = {
3049
+ ANCHOR: 'mdc-menu-surface--anchor',
3050
+ ANIMATING_CLOSED: 'mdc-menu-surface--animating-closed',
3051
+ ANIMATING_OPEN: 'mdc-menu-surface--animating-open',
3052
+ FIXED: 'mdc-menu-surface--fixed',
3053
+ IS_OPEN_BELOW: 'mdc-menu-surface--is-open-below',
3054
+ OPEN: 'mdc-menu-surface--open',
3055
+ ROOT: 'mdc-menu-surface',
646
3056
  };
647
- const Menu = class {
648
- constructor(hostRef) {
649
- registerInstance(this, hostRef);
650
- this.cancel = createEvent(this, "cancel", 7);
651
- this.select = createEvent(this, "select", 7);
652
- this.navigateMenu = createEvent(this, "navigateMenu", 7);
653
- this.renderLoader = () => {
654
- if (!this.loadingSubItems && !this.loading) {
655
- return;
656
- }
657
- const cssProperties = this.getCssProperties();
658
- return (h("div", { style: {
659
- width: cssProperties['--menu-surface-width'],
660
- display: 'flex',
661
- 'align-items': 'center',
662
- 'justify-content': 'center',
663
- padding: '0.5rem 0',
664
- } }, h("limel-spinner", { size: "mini", limeBranded: false })));
3057
+ // tslint:disable:object-literal-sort-keys
3058
+ var strings$1 = {
3059
+ CLOSED_EVENT: 'MDCMenuSurface:closed',
3060
+ CLOSING_EVENT: 'MDCMenuSurface:closing',
3061
+ OPENED_EVENT: 'MDCMenuSurface:opened',
3062
+ FOCUSABLE_ELEMENTS: [
3063
+ 'button:not(:disabled)',
3064
+ '[href]:not([aria-disabled="true"])',
3065
+ 'input:not(:disabled)',
3066
+ 'select:not(:disabled)',
3067
+ 'textarea:not(:disabled)',
3068
+ '[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])',
3069
+ ].join(', '),
3070
+ };
3071
+ // tslint:enable:object-literal-sort-keys
3072
+ var numbers$1 = {
3073
+ /** Total duration of menu-surface open animation. */
3074
+ TRANSITION_OPEN_DURATION: 120,
3075
+ /** Total duration of menu-surface close animation. */
3076
+ TRANSITION_CLOSE_DURATION: 75,
3077
+ /**
3078
+ * Margin left to the edge of the viewport when menu-surface is at maximum
3079
+ * possible height. Also used as a viewport margin.
3080
+ */
3081
+ MARGIN_TO_EDGE: 32,
3082
+ /**
3083
+ * Ratio of anchor width to menu-surface width for switching from corner
3084
+ * positioning to center positioning.
3085
+ */
3086
+ ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: 0.67,
3087
+ /**
3088
+ * Amount of time to wait before restoring focus when closing the menu
3089
+ * surface. This is important because if a touch event triggered the menu
3090
+ * close, and the subsequent mouse event occurs after focus is restored, then
3091
+ * the restored focus would be lost.
3092
+ */
3093
+ TOUCH_EVENT_WAIT_MS: 30,
3094
+ };
3095
+ /**
3096
+ * Enum for bits in the {@see Corner) bitmap.
3097
+ */
3098
+ var CornerBit;
3099
+ (function (CornerBit) {
3100
+ CornerBit[CornerBit["BOTTOM"] = 1] = "BOTTOM";
3101
+ CornerBit[CornerBit["CENTER"] = 2] = "CENTER";
3102
+ CornerBit[CornerBit["RIGHT"] = 4] = "RIGHT";
3103
+ CornerBit[CornerBit["FLIP_RTL"] = 8] = "FLIP_RTL";
3104
+ })(CornerBit || (CornerBit = {}));
3105
+ /**
3106
+ * Enum for representing an element corner for positioning the menu-surface.
3107
+ *
3108
+ * The START constants map to LEFT if element directionality is left
3109
+ * to right and RIGHT if the directionality is right to left.
3110
+ * Likewise END maps to RIGHT or LEFT depending on the directionality.
3111
+ */
3112
+ var Corner;
3113
+ (function (Corner) {
3114
+ Corner[Corner["TOP_LEFT"] = 0] = "TOP_LEFT";
3115
+ Corner[Corner["TOP_RIGHT"] = 4] = "TOP_RIGHT";
3116
+ Corner[Corner["BOTTOM_LEFT"] = 1] = "BOTTOM_LEFT";
3117
+ Corner[Corner["BOTTOM_RIGHT"] = 5] = "BOTTOM_RIGHT";
3118
+ Corner[Corner["TOP_START"] = 8] = "TOP_START";
3119
+ Corner[Corner["TOP_END"] = 12] = "TOP_END";
3120
+ Corner[Corner["BOTTOM_START"] = 9] = "BOTTOM_START";
3121
+ Corner[Corner["BOTTOM_END"] = 13] = "BOTTOM_END";
3122
+ })(Corner || (Corner = {}));
3123
+
3124
+ /**
3125
+ * @license
3126
+ * Copyright 2018 Google Inc.
3127
+ *
3128
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3129
+ * of this software and associated documentation files (the "Software"), to deal
3130
+ * in the Software without restriction, including without limitation the rights
3131
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3132
+ * copies of the Software, and to permit persons to whom the Software is
3133
+ * furnished to do so, subject to the following conditions:
3134
+ *
3135
+ * The above copyright notice and this permission notice shall be included in
3136
+ * all copies or substantial portions of the Software.
3137
+ *
3138
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3139
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3140
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3141
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3142
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3143
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3144
+ * THE SOFTWARE.
3145
+ */
3146
+ var MDCMenuSurfaceFoundation = /** @class */ (function (_super) {
3147
+ __extends(MDCMenuSurfaceFoundation, _super);
3148
+ function MDCMenuSurfaceFoundation(adapter) {
3149
+ var _this = _super.call(this, __assign(__assign({}, MDCMenuSurfaceFoundation.defaultAdapter), adapter)) || this;
3150
+ _this.isSurfaceOpen = false;
3151
+ _this.isQuickOpen = false;
3152
+ _this.isHoistedElement = false;
3153
+ _this.isFixedPosition = false;
3154
+ _this.isHorizontallyCenteredOnViewport = false;
3155
+ _this.maxHeight = 0;
3156
+ _this.openAnimationEndTimerId = 0;
3157
+ _this.closeAnimationEndTimerId = 0;
3158
+ _this.animationRequestId = 0;
3159
+ _this.anchorCorner = Corner.TOP_START;
3160
+ /**
3161
+ * Corner of the menu surface to which menu surface is attached to anchor.
3162
+ *
3163
+ * Anchor corner --->+----------+
3164
+ * | ANCHOR |
3165
+ * +----------+
3166
+ * Origin corner --->+--------------+
3167
+ * | |
3168
+ * | |
3169
+ * | MENU SURFACE |
3170
+ * | |
3171
+ * | |
3172
+ * +--------------+
3173
+ */
3174
+ _this.originCorner = Corner.TOP_START;
3175
+ _this.anchorMargin = { top: 0, right: 0, bottom: 0, left: 0 };
3176
+ _this.position = { x: 0, y: 0 };
3177
+ return _this;
3178
+ }
3179
+ Object.defineProperty(MDCMenuSurfaceFoundation, "cssClasses", {
3180
+ get: function () {
3181
+ return cssClasses$1;
3182
+ },
3183
+ enumerable: false,
3184
+ configurable: true
3185
+ });
3186
+ Object.defineProperty(MDCMenuSurfaceFoundation, "strings", {
3187
+ get: function () {
3188
+ return strings$1;
3189
+ },
3190
+ enumerable: false,
3191
+ configurable: true
3192
+ });
3193
+ Object.defineProperty(MDCMenuSurfaceFoundation, "numbers", {
3194
+ get: function () {
3195
+ return numbers$1;
3196
+ },
3197
+ enumerable: false,
3198
+ configurable: true
3199
+ });
3200
+ Object.defineProperty(MDCMenuSurfaceFoundation, "Corner", {
3201
+ get: function () {
3202
+ return Corner;
3203
+ },
3204
+ enumerable: false,
3205
+ configurable: true
3206
+ });
3207
+ Object.defineProperty(MDCMenuSurfaceFoundation, "defaultAdapter", {
3208
+ /**
3209
+ * @see {@link MDCMenuSurfaceAdapter} for typing information on parameters and return types.
3210
+ */
3211
+ get: function () {
3212
+ // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
3213
+ return {
3214
+ addClass: function () { return undefined; },
3215
+ removeClass: function () { return undefined; },
3216
+ hasClass: function () { return false; },
3217
+ hasAnchor: function () { return false; },
3218
+ isElementInContainer: function () { return false; },
3219
+ isFocused: function () { return false; },
3220
+ isRtl: function () { return false; },
3221
+ getInnerDimensions: function () { return ({ height: 0, width: 0 }); },
3222
+ getAnchorDimensions: function () { return null; },
3223
+ getWindowDimensions: function () { return ({ height: 0, width: 0 }); },
3224
+ getBodyDimensions: function () { return ({ height: 0, width: 0 }); },
3225
+ getWindowScroll: function () { return ({ x: 0, y: 0 }); },
3226
+ setPosition: function () { return undefined; },
3227
+ setMaxHeight: function () { return undefined; },
3228
+ setTransformOrigin: function () { return undefined; },
3229
+ saveFocus: function () { return undefined; },
3230
+ restoreFocus: function () { return undefined; },
3231
+ notifyClose: function () { return undefined; },
3232
+ notifyOpen: function () { return undefined; },
3233
+ notifyClosing: function () { return undefined; },
3234
+ };
3235
+ // tslint:enable:object-literal-sort-keys
3236
+ },
3237
+ enumerable: false,
3238
+ configurable: true
3239
+ });
3240
+ MDCMenuSurfaceFoundation.prototype.init = function () {
3241
+ var _a = MDCMenuSurfaceFoundation.cssClasses, ROOT = _a.ROOT, OPEN = _a.OPEN;
3242
+ if (!this.adapter.hasClass(ROOT)) {
3243
+ throw new Error(ROOT + " class required in root element.");
3244
+ }
3245
+ if (this.adapter.hasClass(OPEN)) {
3246
+ this.isSurfaceOpen = true;
3247
+ }
665
3248
  };
666
- this.renderBreadcrumb = () => {
667
- const breadcrumbsItems = this.getBreadcrumbsItems();
668
- if (!breadcrumbsItems.length) {
669
- return;
670
- }
671
- return (h("limel-breadcrumbs", { style: {
672
- 'border-bottom': 'solid 1px rgb(var(--contrast-500))',
673
- 'flex-shrink': '0',
674
- }, onSelect: this.handleBreadcrumbsSelect, items: breadcrumbsItems }));
3249
+ MDCMenuSurfaceFoundation.prototype.destroy = function () {
3250
+ clearTimeout(this.openAnimationEndTimerId);
3251
+ clearTimeout(this.closeAnimationEndTimerId);
3252
+ // Cancel any currently running animations.
3253
+ cancelAnimationFrame(this.animationRequestId);
675
3254
  };
676
- this.handleBreadcrumbsSelect = (event) => {
677
- if (!event.detail.menuItem) {
678
- this.currentSubMenu = null;
679
- this.clearSearch();
680
- this.navigateMenu.emit(null);
681
- this.setFocus();
682
- return;
683
- }
684
- this.handleSelect(event.detail.menuItem);
3255
+ /**
3256
+ * @param corner Default anchor corner alignment of top-left menu surface
3257
+ * corner.
3258
+ */
3259
+ MDCMenuSurfaceFoundation.prototype.setAnchorCorner = function (corner) {
3260
+ this.anchorCorner = corner;
685
3261
  };
686
- this.renderSearchField = () => {
687
- if (!this.searcher) {
688
- return;
689
- }
690
- return (h("limel-input-field", { tabindex: "0", ref: this.setSearchElement, type: "search", leadingIcon: "search", style: {
691
- padding: '0.25rem',
692
- 'box-sizing': 'border-box',
693
- }, value: this.searchValue, onChange: this.handleTextInput, onKeyDown: this.handleInputKeyDown }));
3262
+ /**
3263
+ * Flip menu corner horizontally.
3264
+ */
3265
+ MDCMenuSurfaceFoundation.prototype.flipCornerHorizontally = function () {
3266
+ this.originCorner = this.originCorner ^ CornerBit.RIGHT;
694
3267
  };
695
- this.renderEmptyMessage = () => {
696
- var _a;
697
- if (this.loading ||
698
- this.loadingSubItems ||
699
- !this.emptyResultMessage ||
700
- !Array.isArray(this.searchResults) ||
701
- ((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.length)) {
702
- return null;
703
- }
704
- return (h("p", { style: {
705
- padding: '0 1rem',
706
- 'text-align': 'center',
707
- } }, this.emptyResultMessage));
3268
+ /**
3269
+ * @param margin Set of margin values from anchor.
3270
+ */
3271
+ MDCMenuSurfaceFoundation.prototype.setAnchorMargin = function (margin) {
3272
+ this.anchorMargin.top = margin.top || 0;
3273
+ this.anchorMargin.right = margin.right || 0;
3274
+ this.anchorMargin.bottom = margin.bottom || 0;
3275
+ this.anchorMargin.left = margin.left || 0;
708
3276
  };
709
- this.renderMenuList = () => {
710
- let items = this.visibleItems;
711
- if (this.loadingSubItems || this.loading) {
712
- items = [];
713
- }
714
- return (h("limel-menu-list", { style: {
715
- 'overflow-y': 'auto',
716
- 'flex-grow': '1',
717
- }, class: {
718
- 'has-grid-layout has-interactive-items': this.gridLayout,
719
- }, items: items, type: "menu", badgeIcons: this.badgeIcons, onSelect: this.onSelect, ref: this.setListElement, onKeyDown: this.handleMenuKeyDown }));
3277
+ /** Used to indicate if the menu-surface is hoisted to the body. */
3278
+ MDCMenuSurfaceFoundation.prototype.setIsHoisted = function (isHoisted) {
3279
+ this.isHoistedElement = isHoisted;
3280
+ };
3281
+ /**
3282
+ * Used to set the menu-surface calculations based on a fixed position menu.
3283
+ */
3284
+ MDCMenuSurfaceFoundation.prototype.setFixedPosition = function (isFixedPosition) {
3285
+ this.isFixedPosition = isFixedPosition;
3286
+ };
3287
+ /**
3288
+ * @return Returns true if menu is in fixed (`position: fixed`) position.
3289
+ */
3290
+ MDCMenuSurfaceFoundation.prototype.isFixed = function () {
3291
+ return this.isFixedPosition;
720
3292
  };
721
- this.handleTextInput = async (event) => {
722
- event.stopPropagation();
723
- const query = event.detail;
724
- this.searchValue = query;
725
- if (query === '') {
726
- this.searchResults = null;
727
- this.loadingSubItems = false;
728
- return;
729
- }
730
- this.loadingSubItems = true;
731
- const result = await this.searcher(query);
732
- if (this.searchValue !== query) {
733
- return;
734
- }
735
- this.searchResults = result;
736
- this.loadingSubItems = false;
3293
+ /** Sets the menu-surface position on the page. */
3294
+ MDCMenuSurfaceFoundation.prototype.setAbsolutePosition = function (x, y) {
3295
+ this.position.x = this.isFinite(x) ? x : 0;
3296
+ this.position.y = this.isFinite(y) ? y : 0;
737
3297
  };
738
- // Key handler for the input search field
739
- // Will change focus to the first/last item in the dropdown
740
- // list to enable selection with the keyboard
741
- this.handleInputKeyDown = (event) => {
742
- const isForwardTab = (event.key === TAB || event.keyCode === TAB_KEY_CODE) &&
743
- !event.altKey &&
744
- !event.metaKey &&
745
- !event.shiftKey;
746
- const isUp = event.key === ARROW_UP || event.keyCode === ARROW_UP_KEY_CODE;
747
- const isDown = event.key === ARROW_DOWN || event.keyCode === ARROW_DOWN_KEY_CODE;
748
- if (!isForwardTab && !isUp && !isDown) {
749
- return;
750
- }
751
- if (!this.list) {
752
- return;
753
- }
754
- event.stopPropagation();
755
- event.preventDefault();
756
- if (isForwardTab || isDown) {
757
- const listItems = this.list.shadowRoot.querySelectorAll('.mdc-deprecated-list-item');
758
- const listElement = listItems[0];
759
- listElement === null || listElement === void 0 ? void 0 : listElement.focus();
760
- return;
761
- }
762
- if (isUp) {
763
- const listItems = this.list.shadowRoot.querySelectorAll('.mdc-deprecated-list-item');
764
- const listElement = listItems[listItems.length - 1];
765
- listElement === null || listElement === void 0 ? void 0 : listElement.focus();
766
- }
3298
+ /** Sets whether menu-surface should be horizontally centered to viewport. */
3299
+ MDCMenuSurfaceFoundation.prototype.setIsHorizontallyCenteredOnViewport = function (isCentered) {
3300
+ this.isHorizontallyCenteredOnViewport = isCentered;
767
3301
  };
768
- // Key handler for the menu list
769
- // Will change focus to the search field if using shift+tab
770
- // And can go forward/back with righ/left arrow keys
771
- this.handleMenuKeyDown = (event) => {
772
- var _a;
773
- const isBackwardTab = (event.key === TAB || event.keyCode === TAB_KEY_CODE) &&
774
- !event.altKey &&
775
- !event.metaKey &&
776
- event.shiftKey;
777
- const isLeft = event.key === ARROW_LEFT || event.keyCode === ARROW_LEFT_KEY_CODE;
778
- const isRight = event.key === ARROW_RIGHT || event.keyCode === ARROW_RIGHT_KEY_CODE;
779
- if (!isBackwardTab && !isLeft && !isRight) {
780
- return;
781
- }
782
- if (isBackwardTab) {
783
- event.stopPropagation();
784
- event.preventDefault();
785
- (_a = this.searchInput) === null || _a === void 0 ? void 0 : _a.focus();
786
- }
787
- else if (!this.gridLayout) {
788
- const currentItem = this.getCurrentItem();
789
- event.stopPropagation();
790
- event.preventDefault();
791
- if (isRight) {
792
- this.goForward(currentItem);
3302
+ MDCMenuSurfaceFoundation.prototype.setQuickOpen = function (quickOpen) {
3303
+ this.isQuickOpen = quickOpen;
3304
+ };
3305
+ /**
3306
+ * Sets maximum menu-surface height on open.
3307
+ * @param maxHeight The desired max-height. Set to 0 (default) to
3308
+ * automatically calculate max height based on available viewport space.
3309
+ */
3310
+ MDCMenuSurfaceFoundation.prototype.setMaxHeight = function (maxHeight) {
3311
+ this.maxHeight = maxHeight;
3312
+ };
3313
+ MDCMenuSurfaceFoundation.prototype.isOpen = function () {
3314
+ return this.isSurfaceOpen;
3315
+ };
3316
+ /**
3317
+ * Open the menu surface.
3318
+ */
3319
+ MDCMenuSurfaceFoundation.prototype.open = function () {
3320
+ var _this = this;
3321
+ if (this.isSurfaceOpen) {
3322
+ return;
793
3323
  }
794
- else if (isLeft) {
795
- this.goBack();
3324
+ this.adapter.saveFocus();
3325
+ if (this.isQuickOpen) {
3326
+ this.isSurfaceOpen = true;
3327
+ this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3328
+ this.dimensions = this.adapter.getInnerDimensions();
3329
+ this.autoposition();
3330
+ this.adapter.notifyOpen();
3331
+ }
3332
+ else {
3333
+ this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_OPEN);
3334
+ this.animationRequestId = requestAnimationFrame(function () {
3335
+ _this.dimensions = _this.adapter.getInnerDimensions();
3336
+ _this.autoposition();
3337
+ _this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3338
+ _this.openAnimationEndTimerId = setTimeout(function () {
3339
+ _this.openAnimationEndTimerId = 0;
3340
+ _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_OPEN);
3341
+ _this.adapter.notifyOpen();
3342
+ }, numbers$1.TRANSITION_OPEN_DURATION);
3343
+ });
3344
+ this.isSurfaceOpen = true;
796
3345
  }
797
- }
798
3346
  };
799
- this.clearSearch = () => {
800
- this.searchValue = '';
801
- this.searchResults = null;
802
- this.loadingSubItems = false;
3347
+ /**
3348
+ * Closes the menu surface.
3349
+ */
3350
+ MDCMenuSurfaceFoundation.prototype.close = function (skipRestoreFocus) {
3351
+ var _this = this;
3352
+ if (skipRestoreFocus === void 0) { skipRestoreFocus = false; }
3353
+ if (!this.isSurfaceOpen) {
3354
+ return;
3355
+ }
3356
+ this.adapter.notifyClosing();
3357
+ if (this.isQuickOpen) {
3358
+ this.isSurfaceOpen = false;
3359
+ if (!skipRestoreFocus) {
3360
+ this.maybeRestoreFocus();
3361
+ }
3362
+ this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3363
+ this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW);
3364
+ this.adapter.notifyClose();
3365
+ return;
3366
+ }
3367
+ this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_CLOSED);
3368
+ requestAnimationFrame(function () {
3369
+ _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3370
+ _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW);
3371
+ _this.closeAnimationEndTimerId = setTimeout(function () {
3372
+ _this.closeAnimationEndTimerId = 0;
3373
+ _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_CLOSED);
3374
+ _this.adapter.notifyClose();
3375
+ }, numbers$1.TRANSITION_CLOSE_DURATION);
3376
+ });
3377
+ this.isSurfaceOpen = false;
3378
+ if (!skipRestoreFocus) {
3379
+ this.maybeRestoreFocus();
3380
+ }
803
3381
  };
804
- this.getCurrentItem = () => {
805
- var _a, _b, _c;
806
- const activeItem = (_b = (_a = this.list) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('[role="menuitem"][tabindex="0"]');
807
- const attrIndex = (_c = activeItem === null || activeItem === void 0 ? void 0 : activeItem.attributes) === null || _c === void 0 ? void 0 : _c.getNamedItem('data-index');
808
- const dataIndex = parseInt((attrIndex === null || attrIndex === void 0 ? void 0 : attrIndex.value) || '0', 10);
809
- return this.visibleItems[dataIndex];
3382
+ /** Handle clicks and close if not within menu-surface element. */
3383
+ MDCMenuSurfaceFoundation.prototype.handleBodyClick = function (evt) {
3384
+ var el = evt.target;
3385
+ if (this.adapter.isElementInContainer(el)) {
3386
+ return;
3387
+ }
3388
+ this.close();
810
3389
  };
811
- this.goForward = (currentItem) => {
812
- this.handleSelect(currentItem, false);
3390
+ /** Handle keys that close the surface. */
3391
+ MDCMenuSurfaceFoundation.prototype.handleKeydown = function (evt) {
3392
+ var keyCode = evt.keyCode, key = evt.key;
3393
+ var isEscape = key === 'Escape' || keyCode === 27;
3394
+ if (isEscape) {
3395
+ this.close();
3396
+ }
813
3397
  };
814
- this.goBack = () => {
815
- if (!this.currentSubMenu) {
816
- // Already in the root of the menu
817
- return;
818
- }
819
- const parent = this.currentSubMenu.parentItem;
820
- if (!parent) {
821
- // If only one step down, go to the root of the menu.
822
- // No need to load a sub-menu.
823
- this.currentSubMenu = null;
824
- this.clearSearch();
825
- this.navigateMenu.emit(null);
826
- this.setFocus();
827
- return;
828
- }
829
- this.handleSelect(parent);
3398
+ MDCMenuSurfaceFoundation.prototype.autoposition = function () {
3399
+ var _a;
3400
+ // Compute measurements for autoposition methods reuse.
3401
+ this.measurements = this.getAutoLayoutmeasurements();
3402
+ var corner = this.getoriginCorner();
3403
+ var maxMenuSurfaceHeight = this.getMenuSurfaceMaxHeight(corner);
3404
+ var verticalAlignment = this.hasBit(corner, CornerBit.BOTTOM) ? 'bottom' : 'top';
3405
+ var horizontalAlignment = this.hasBit(corner, CornerBit.RIGHT) ? 'right' : 'left';
3406
+ var horizontalOffset = this.getHorizontalOriginOffset(corner);
3407
+ var verticalOffset = this.getVerticalOriginOffset(corner);
3408
+ var _b = this.measurements, anchorSize = _b.anchorSize, surfaceSize = _b.surfaceSize;
3409
+ var position = (_a = {},
3410
+ _a[horizontalAlignment] = horizontalOffset,
3411
+ _a[verticalAlignment] = verticalOffset,
3412
+ _a);
3413
+ // Center align when anchor width is comparable or greater than menu
3414
+ // surface, otherwise keep corner.
3415
+ if (anchorSize.width / surfaceSize.width >
3416
+ numbers$1.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO) {
3417
+ horizontalAlignment = 'center';
3418
+ }
3419
+ // If the menu-surface has been hoisted to the body, it's no longer relative
3420
+ // to the anchor element
3421
+ if (this.isHoistedElement || this.isFixedPosition) {
3422
+ this.adjustPositionForHoistedElement(position);
3423
+ }
3424
+ this.adapter.setTransformOrigin(horizontalAlignment + " " + verticalAlignment);
3425
+ this.adapter.setPosition(position);
3426
+ this.adapter.setMaxHeight(maxMenuSurfaceHeight ? maxMenuSurfaceHeight + 'px' : '');
3427
+ // If it is opened from the top then add is-open-below class
3428
+ if (!this.hasBit(corner, CornerBit.BOTTOM)) {
3429
+ this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW);
3430
+ }
830
3431
  };
831
- this.setTriggerAttributes = (element) => {
832
- const attributes = {
833
- 'aria-haspopup': true,
834
- 'aria-expanded': this.open,
835
- 'aria-controls': this.portalId,
836
- disabled: this.disabled,
837
- role: 'button',
838
- };
839
- for (const [key, value] of Object.entries(attributes)) {
840
- if (!value) {
841
- element.removeAttribute(key);
3432
+ /**
3433
+ * @return Measurements used to position menu surface popup.
3434
+ */
3435
+ MDCMenuSurfaceFoundation.prototype.getAutoLayoutmeasurements = function () {
3436
+ var anchorRect = this.adapter.getAnchorDimensions();
3437
+ var bodySize = this.adapter.getBodyDimensions();
3438
+ var viewportSize = this.adapter.getWindowDimensions();
3439
+ var windowScroll = this.adapter.getWindowScroll();
3440
+ if (!anchorRect) {
3441
+ // tslint:disable:object-literal-sort-keys Positional properties are more readable when they're grouped together
3442
+ anchorRect = {
3443
+ top: this.position.y,
3444
+ right: this.position.x,
3445
+ bottom: this.position.y,
3446
+ left: this.position.x,
3447
+ width: 0,
3448
+ height: 0,
3449
+ };
3450
+ // tslint:enable:object-literal-sort-keys
3451
+ }
3452
+ return {
3453
+ anchorSize: anchorRect,
3454
+ bodySize: bodySize,
3455
+ surfaceSize: this.dimensions,
3456
+ viewportDistance: {
3457
+ // tslint:disable:object-literal-sort-keys Positional properties are more readable when they're grouped together
3458
+ top: anchorRect.top,
3459
+ right: viewportSize.width - anchorRect.right,
3460
+ bottom: viewportSize.height - anchorRect.bottom,
3461
+ left: anchorRect.left,
3462
+ // tslint:enable:object-literal-sort-keys
3463
+ },
3464
+ viewportSize: viewportSize,
3465
+ windowScroll: windowScroll,
3466
+ };
3467
+ };
3468
+ /**
3469
+ * Computes the corner of the anchor from which to animate and position the
3470
+ * menu surface.
3471
+ *
3472
+ * Only LEFT or RIGHT bit is used to position the menu surface ignoring RTL
3473
+ * context. E.g., menu surface will be positioned from right side on TOP_END.
3474
+ */
3475
+ MDCMenuSurfaceFoundation.prototype.getoriginCorner = function () {
3476
+ var corner = this.originCorner;
3477
+ var _a = this.measurements, viewportDistance = _a.viewportDistance, anchorSize = _a.anchorSize, surfaceSize = _a.surfaceSize;
3478
+ var MARGIN_TO_EDGE = MDCMenuSurfaceFoundation.numbers.MARGIN_TO_EDGE;
3479
+ var isAnchoredToBottom = this.hasBit(this.anchorCorner, CornerBit.BOTTOM);
3480
+ var availableTop;
3481
+ var availableBottom;
3482
+ if (isAnchoredToBottom) {
3483
+ availableTop =
3484
+ viewportDistance.top - MARGIN_TO_EDGE + this.anchorMargin.bottom;
3485
+ availableBottom =
3486
+ viewportDistance.bottom - MARGIN_TO_EDGE - this.anchorMargin.bottom;
842
3487
  }
843
3488
  else {
844
- element.setAttribute(key, String(value));
3489
+ availableTop =
3490
+ viewportDistance.top - MARGIN_TO_EDGE + this.anchorMargin.top;
3491
+ availableBottom = viewportDistance.bottom - MARGIN_TO_EDGE +
3492
+ anchorSize.height - this.anchorMargin.top;
845
3493
  }
846
- }
3494
+ var isAvailableBottom = availableBottom - surfaceSize.height > 0;
3495
+ if (!isAvailableBottom && availableTop > availableBottom) {
3496
+ // Attach bottom side of surface to the anchor.
3497
+ corner = this.setBit(corner, CornerBit.BOTTOM);
3498
+ }
3499
+ var isRtl = this.adapter.isRtl();
3500
+ var isFlipRtl = this.hasBit(this.anchorCorner, CornerBit.FLIP_RTL);
3501
+ var hasRightBit = this.hasBit(this.anchorCorner, CornerBit.RIGHT) ||
3502
+ this.hasBit(corner, CornerBit.RIGHT);
3503
+ // Whether surface attached to right side of anchor element.
3504
+ var isAnchoredToRight = false;
3505
+ // Anchored to start
3506
+ if (isRtl && isFlipRtl) {
3507
+ isAnchoredToRight = !hasRightBit;
3508
+ }
3509
+ else {
3510
+ // Anchored to right
3511
+ isAnchoredToRight = hasRightBit;
3512
+ }
3513
+ var availableLeft;
3514
+ var availableRight;
3515
+ if (isAnchoredToRight) {
3516
+ availableLeft =
3517
+ viewportDistance.left + anchorSize.width + this.anchorMargin.right;
3518
+ availableRight = viewportDistance.right - this.anchorMargin.right;
3519
+ }
3520
+ else {
3521
+ availableLeft = viewportDistance.left + this.anchorMargin.left;
3522
+ availableRight =
3523
+ viewportDistance.right + anchorSize.width - this.anchorMargin.left;
3524
+ }
3525
+ var isAvailableLeft = availableLeft - surfaceSize.width > 0;
3526
+ var isAvailableRight = availableRight - surfaceSize.width > 0;
3527
+ var isOriginCornerAlignedToEnd = this.hasBit(corner, CornerBit.FLIP_RTL) &&
3528
+ this.hasBit(corner, CornerBit.RIGHT);
3529
+ if (isAvailableRight && isOriginCornerAlignedToEnd && isRtl ||
3530
+ !isAvailableLeft && isOriginCornerAlignedToEnd) {
3531
+ // Attach left side of surface to the anchor.
3532
+ corner = this.unsetBit(corner, CornerBit.RIGHT);
3533
+ }
3534
+ else if (isAvailableLeft && isAnchoredToRight && isRtl ||
3535
+ (isAvailableLeft && !isAnchoredToRight && hasRightBit) ||
3536
+ (!isAvailableRight && availableLeft >= availableRight)) {
3537
+ // Attach right side of surface to the anchor.
3538
+ corner = this.setBit(corner, CornerBit.RIGHT);
3539
+ }
3540
+ return corner;
847
3541
  };
848
- this.onClose = () => {
849
- this.cancel.emit();
850
- this.open = false;
851
- this.currentSubMenu = null;
3542
+ /**
3543
+ * @param corner Origin corner of the menu surface.
3544
+ * @return Maximum height of the menu surface, based on available space. 0
3545
+ * indicates should not be set.
3546
+ */
3547
+ MDCMenuSurfaceFoundation.prototype.getMenuSurfaceMaxHeight = function (corner) {
3548
+ if (this.maxHeight > 0) {
3549
+ return this.maxHeight;
3550
+ }
3551
+ var viewportDistance = this.measurements.viewportDistance;
3552
+ var maxHeight = 0;
3553
+ var isBottomAligned = this.hasBit(corner, CornerBit.BOTTOM);
3554
+ var isBottomAnchored = this.hasBit(this.anchorCorner, CornerBit.BOTTOM);
3555
+ var MARGIN_TO_EDGE = MDCMenuSurfaceFoundation.numbers.MARGIN_TO_EDGE;
3556
+ // When maximum height is not specified, it is handled from CSS.
3557
+ if (isBottomAligned) {
3558
+ maxHeight = viewportDistance.top + this.anchorMargin.top - MARGIN_TO_EDGE;
3559
+ if (!isBottomAnchored) {
3560
+ maxHeight += this.measurements.anchorSize.height;
3561
+ }
3562
+ }
3563
+ else {
3564
+ maxHeight = viewportDistance.bottom - this.anchorMargin.bottom +
3565
+ this.measurements.anchorSize.height - MARGIN_TO_EDGE;
3566
+ if (isBottomAnchored) {
3567
+ maxHeight -= this.measurements.anchorSize.height;
3568
+ }
3569
+ }
3570
+ return maxHeight;
852
3571
  };
853
- this.onTriggerClick = (event) => {
854
- event.stopPropagation();
855
- if (this.disabled) {
856
- return;
857
- }
858
- this.open = !this.open;
3572
+ /**
3573
+ * @param corner Origin corner of the menu surface.
3574
+ * @return Horizontal offset of menu surface origin corner from corresponding
3575
+ * anchor corner.
3576
+ */
3577
+ MDCMenuSurfaceFoundation.prototype.getHorizontalOriginOffset = function (corner) {
3578
+ var anchorSize = this.measurements.anchorSize;
3579
+ // isRightAligned corresponds to using the 'right' property on the surface.
3580
+ var isRightAligned = this.hasBit(corner, CornerBit.RIGHT);
3581
+ var avoidHorizontalOverlap = this.hasBit(this.anchorCorner, CornerBit.RIGHT);
3582
+ if (isRightAligned) {
3583
+ var rightOffset = avoidHorizontalOverlap ?
3584
+ anchorSize.width - this.anchorMargin.left :
3585
+ this.anchorMargin.right;
3586
+ // For hoisted or fixed elements, adjust the offset by the difference
3587
+ // between viewport width and body width so when we calculate the right
3588
+ // value (`adjustPositionForHoistedElement`) based on the element
3589
+ // position, the right property is correct.
3590
+ if (this.isHoistedElement || this.isFixedPosition) {
3591
+ return rightOffset -
3592
+ (this.measurements.viewportSize.width -
3593
+ this.measurements.bodySize.width);
3594
+ }
3595
+ return rightOffset;
3596
+ }
3597
+ return avoidHorizontalOverlap ? anchorSize.width - this.anchorMargin.right :
3598
+ this.anchorMargin.left;
859
3599
  };
860
- this.handleSelect = async (menuItem, selectOnEmptyChildren = true) => {
861
- if (Array.isArray(menuItem === null || menuItem === void 0 ? void 0 : menuItem.items) && menuItem.items.length > 0) {
862
- this.selectedMenuItem = menuItem;
863
- this.clearSearch();
864
- this.currentSubMenu = menuItem;
865
- this.navigateMenu.emit(menuItem);
866
- this.setFocus();
867
- return;
868
- }
869
- else if (isFunction(menuItem === null || menuItem === void 0 ? void 0 : menuItem.items)) {
870
- const menuLoader = menuItem.items;
871
- this.selectedMenuItem = menuItem;
872
- this.loadingSubItems = true;
873
- const subItems = await menuLoader(menuItem);
874
- if (this.selectedMenuItem !== menuItem) {
875
- return;
3600
+ /**
3601
+ * @param corner Origin corner of the menu surface.
3602
+ * @return Vertical offset of menu surface origin corner from corresponding
3603
+ * anchor corner.
3604
+ */
3605
+ MDCMenuSurfaceFoundation.prototype.getVerticalOriginOffset = function (corner) {
3606
+ var anchorSize = this.measurements.anchorSize;
3607
+ var isBottomAligned = this.hasBit(corner, CornerBit.BOTTOM);
3608
+ var avoidVerticalOverlap = this.hasBit(this.anchorCorner, CornerBit.BOTTOM);
3609
+ var y = 0;
3610
+ if (isBottomAligned) {
3611
+ y = avoidVerticalOverlap ? anchorSize.height - this.anchorMargin.top :
3612
+ -this.anchorMargin.bottom;
876
3613
  }
877
- menuItem.items = subItems;
878
- this.loadingSubItems = false;
879
- if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
880
- this.currentSubMenu = menuItem;
881
- this.clearSearch();
882
- this.navigateMenu.emit(menuItem);
883
- this.setFocus();
884
- return;
3614
+ else {
3615
+ y = avoidVerticalOverlap ?
3616
+ (anchorSize.height + this.anchorMargin.bottom) :
3617
+ this.anchorMargin.top;
3618
+ }
3619
+ return y;
3620
+ };
3621
+ /**
3622
+ * Calculates the offsets for positioning the menu-surface when the
3623
+ * menu-surface has been hoisted to the body.
3624
+ */
3625
+ MDCMenuSurfaceFoundation.prototype.adjustPositionForHoistedElement = function (position) {
3626
+ var e_1, _a;
3627
+ var _b = this.measurements, windowScroll = _b.windowScroll, viewportDistance = _b.viewportDistance, surfaceSize = _b.surfaceSize, viewportSize = _b.viewportSize;
3628
+ var props = Object.keys(position);
3629
+ try {
3630
+ for (var props_1 = __values(props), props_1_1 = props_1.next(); !props_1_1.done; props_1_1 = props_1.next()) {
3631
+ var prop = props_1_1.value;
3632
+ var value = position[prop] || 0;
3633
+ if (this.isHorizontallyCenteredOnViewport &&
3634
+ (prop === 'left' || prop === 'right')) {
3635
+ position[prop] = (viewportSize.width - surfaceSize.width) / 2;
3636
+ continue;
3637
+ }
3638
+ // Hoisted surfaces need to have the anchor elements location on the page
3639
+ // added to the position properties for proper alignment on the body.
3640
+ value += viewportDistance[prop];
3641
+ // Surfaces that are absolutely positioned need to have additional
3642
+ // calculations for scroll and bottom positioning.
3643
+ if (!this.isFixedPosition) {
3644
+ if (prop === 'top') {
3645
+ value += windowScroll.y;
3646
+ }
3647
+ else if (prop === 'bottom') {
3648
+ value -= windowScroll.y;
3649
+ }
3650
+ else if (prop === 'left') {
3651
+ value += windowScroll.x;
3652
+ }
3653
+ else { // prop === 'right'
3654
+ value -= windowScroll.x;
3655
+ }
3656
+ }
3657
+ position[prop] = value;
3658
+ }
3659
+ }
3660
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3661
+ finally {
3662
+ try {
3663
+ if (props_1_1 && !props_1_1.done && (_a = props_1.return)) _a.call(props_1);
3664
+ }
3665
+ finally { if (e_1) throw e_1.error; }
3666
+ }
3667
+ };
3668
+ /**
3669
+ * The last focused element when the menu surface was opened should regain
3670
+ * focus, if the user is focused on or within the menu surface when it is
3671
+ * closed.
3672
+ */
3673
+ MDCMenuSurfaceFoundation.prototype.maybeRestoreFocus = function () {
3674
+ var _this = this;
3675
+ var isRootFocused = this.adapter.isFocused();
3676
+ var childHasFocus = document.activeElement &&
3677
+ this.adapter.isElementInContainer(document.activeElement);
3678
+ if (isRootFocused || childHasFocus) {
3679
+ // Wait before restoring focus when closing the menu surface. This is
3680
+ // important because if a touch event triggered the menu close, and the
3681
+ // subsequent mouse event occurs after focus is restored, then the
3682
+ // restored focus would be lost.
3683
+ setTimeout(function () {
3684
+ _this.adapter.restoreFocus();
3685
+ }, numbers$1.TOUCH_EVENT_WAIT_MS);
3686
+ }
3687
+ };
3688
+ MDCMenuSurfaceFoundation.prototype.hasBit = function (corner, bit) {
3689
+ return Boolean(corner & bit); // tslint:disable-line:no-bitwise
3690
+ };
3691
+ MDCMenuSurfaceFoundation.prototype.setBit = function (corner, bit) {
3692
+ return corner | bit; // tslint:disable-line:no-bitwise
3693
+ };
3694
+ MDCMenuSurfaceFoundation.prototype.unsetBit = function (corner, bit) {
3695
+ return corner ^ bit;
3696
+ };
3697
+ /**
3698
+ * isFinite that doesn't force conversion to number type.
3699
+ * Equivalent to Number.isFinite in ES2015, which is not supported in IE.
3700
+ */
3701
+ MDCMenuSurfaceFoundation.prototype.isFinite = function (num) {
3702
+ return typeof num === 'number' && isFinite(num);
3703
+ };
3704
+ return MDCMenuSurfaceFoundation;
3705
+ }(MDCFoundation));
3706
+
3707
+ /**
3708
+ * @license
3709
+ * Copyright 2018 Google Inc.
3710
+ *
3711
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3712
+ * of this software and associated documentation files (the "Software"), to deal
3713
+ * in the Software without restriction, including without limitation the rights
3714
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3715
+ * copies of the Software, and to permit persons to whom the Software is
3716
+ * furnished to do so, subject to the following conditions:
3717
+ *
3718
+ * The above copyright notice and this permission notice shall be included in
3719
+ * all copies or substantial portions of the Software.
3720
+ *
3721
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3722
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3723
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3724
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3725
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3726
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3727
+ * THE SOFTWARE.
3728
+ */
3729
+ var MDCMenuSurface = /** @class */ (function (_super) {
3730
+ __extends(MDCMenuSurface, _super);
3731
+ function MDCMenuSurface() {
3732
+ return _super !== null && _super.apply(this, arguments) || this;
3733
+ }
3734
+ MDCMenuSurface.attachTo = function (root) {
3735
+ return new MDCMenuSurface(root);
3736
+ };
3737
+ MDCMenuSurface.prototype.initialSyncWithDOM = function () {
3738
+ var _this = this;
3739
+ var parentEl = this.root.parentElement;
3740
+ this.anchorElement = parentEl && parentEl.classList.contains(cssClasses$1.ANCHOR) ? parentEl : null;
3741
+ if (this.root.classList.contains(cssClasses$1.FIXED)) {
3742
+ this.setFixedPosition(true);
885
3743
  }
886
- }
887
- if (!selectOnEmptyChildren) {
888
- return;
889
- }
890
- this.selectedMenuItem = menuItem;
891
- this.loadingSubItems = false;
892
- this.select.emit(menuItem);
893
- this.open = false;
894
- this.currentSubMenu = null;
895
- this.setFocus();
3744
+ this.handleKeydown = function (event) {
3745
+ _this.foundation.handleKeydown(event);
3746
+ };
3747
+ this.handleBodyClick = function (event) {
3748
+ _this.foundation.handleBodyClick(event);
3749
+ };
3750
+ // capture so that no race between handleBodyClick and quickOpen when
3751
+ // menusurface opened on button click which registers this listener
3752
+ this.registerBodyClickListener = function () {
3753
+ document.body.addEventListener('click', _this.handleBodyClick, { capture: true });
3754
+ };
3755
+ this.deregisterBodyClickListener = function () {
3756
+ document.body.removeEventListener('click', _this.handleBodyClick, { capture: true });
3757
+ };
3758
+ this.listen('keydown', this.handleKeydown);
3759
+ this.listen(strings$1.OPENED_EVENT, this.registerBodyClickListener);
3760
+ this.listen(strings$1.CLOSED_EVENT, this.deregisterBodyClickListener);
896
3761
  };
897
- this.onSelect = (event) => {
898
- event.stopPropagation();
899
- this.handleSelect(event.detail);
3762
+ MDCMenuSurface.prototype.destroy = function () {
3763
+ this.unlisten('keydown', this.handleKeydown);
3764
+ this.unlisten(strings$1.OPENED_EVENT, this.registerBodyClickListener);
3765
+ this.unlisten(strings$1.CLOSED_EVENT, this.deregisterBodyClickListener);
3766
+ _super.prototype.destroy.call(this);
900
3767
  };
901
- this.setListElement = (element) => {
902
- this.list = element;
3768
+ MDCMenuSurface.prototype.isOpen = function () {
3769
+ return this.foundation.isOpen();
903
3770
  };
904
- this.setFocus = () => {
905
- setTimeout(() => {
906
- if (this.searchInput && this.searcher) {
907
- const observer = new IntersectionObserver(() => {
908
- observer.unobserve(this.searchInput);
909
- if (this.searchInput === window.document.activeElement) {
910
- return;
911
- }
912
- this.searchInput.focus();
913
- });
914
- observer.observe(this.searchInput);
3771
+ MDCMenuSurface.prototype.open = function () {
3772
+ this.foundation.open();
3773
+ };
3774
+ MDCMenuSurface.prototype.close = function (skipRestoreFocus) {
3775
+ if (skipRestoreFocus === void 0) { skipRestoreFocus = false; }
3776
+ this.foundation.close(skipRestoreFocus);
3777
+ };
3778
+ Object.defineProperty(MDCMenuSurface.prototype, "quickOpen", {
3779
+ set: function (quickOpen) {
3780
+ this.foundation.setQuickOpen(quickOpen);
3781
+ },
3782
+ enumerable: false,
3783
+ configurable: true
3784
+ });
3785
+ /** Sets the foundation to use page offsets for an positioning when the menu is hoisted to the body. */
3786
+ MDCMenuSurface.prototype.setIsHoisted = function (isHoisted) {
3787
+ this.foundation.setIsHoisted(isHoisted);
3788
+ };
3789
+ /** Sets the element that the menu-surface is anchored to. */
3790
+ MDCMenuSurface.prototype.setMenuSurfaceAnchorElement = function (element) {
3791
+ this.anchorElement = element;
3792
+ };
3793
+ /** Sets the menu-surface to position: fixed. */
3794
+ MDCMenuSurface.prototype.setFixedPosition = function (isFixed) {
3795
+ if (isFixed) {
3796
+ this.root.classList.add(cssClasses$1.FIXED);
915
3797
  }
916
- else if (this.list) {
917
- const observer = new IntersectionObserver(() => {
918
- observer.unobserve(this.list);
919
- this.focusMenuItem();
920
- });
921
- observer.observe(this.list);
3798
+ else {
3799
+ this.root.classList.remove(cssClasses$1.FIXED);
922
3800
  }
923
- }, 0);
3801
+ this.foundation.setFixedPosition(isFixed);
924
3802
  };
925
- this.setSearchElement = (element) => {
926
- this.searchInput = element;
3803
+ /** Sets the absolute x/y position to position based on. Requires the menu to be hoisted. */
3804
+ MDCMenuSurface.prototype.setAbsolutePosition = function (x, y) {
3805
+ this.foundation.setAbsolutePosition(x, y);
3806
+ this.setIsHoisted(true);
927
3807
  };
928
- this.focusMenuItem = () => {
929
- var _a;
930
- if (!this.list) {
931
- return;
932
- }
933
- const activeElement = this.list.shadowRoot.activeElement;
934
- activeElement === null || activeElement === void 0 ? void 0 : activeElement.blur();
935
- const menuItems = this.visibleItems.filter(this.isMenuItem);
936
- const selectedIndex = Math.max(menuItems.findIndex((item) => item.selected), 0);
937
- const menuElements = Array.from(this.list.shadowRoot.querySelectorAll('[role="menuitem"]'));
938
- (_a = menuElements[selectedIndex]) === null || _a === void 0 ? void 0 : _a.focus();
3808
+ /**
3809
+ * @param corner Default anchor corner alignment of top-left surface corner.
3810
+ */
3811
+ MDCMenuSurface.prototype.setAnchorCorner = function (corner) {
3812
+ this.foundation.setAnchorCorner(corner);
939
3813
  };
940
- this.renderNotificationBadge = () => {
941
- if (this.items.some(this.hasNotificationBadge)) {
942
- return h("limel-badge", null);
943
- }
3814
+ MDCMenuSurface.prototype.setAnchorMargin = function (margin) {
3815
+ this.foundation.setAnchorMargin(margin);
944
3816
  };
945
- this.hasNotificationBadge = (item) => this.isMenuItem(item) && item.badge !== undefined;
946
- this.setTriggerRef = (elm) => {
947
- this.triggerElement = elm;
3817
+ MDCMenuSurface.prototype.getDefaultFoundation = function () {
3818
+ var _this = this;
3819
+ // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>.
3820
+ // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.
3821
+ // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
3822
+ var adapter = {
3823
+ addClass: function (className) { return _this.root.classList.add(className); },
3824
+ removeClass: function (className) { return _this.root.classList.remove(className); },
3825
+ hasClass: function (className) { return _this.root.classList.contains(className); },
3826
+ hasAnchor: function () { return !!_this.anchorElement; },
3827
+ notifyClose: function () {
3828
+ return _this.emit(MDCMenuSurfaceFoundation.strings.CLOSED_EVENT, {});
3829
+ },
3830
+ notifyClosing: function () {
3831
+ _this.emit(MDCMenuSurfaceFoundation.strings.CLOSING_EVENT, {});
3832
+ },
3833
+ notifyOpen: function () {
3834
+ return _this.emit(MDCMenuSurfaceFoundation.strings.OPENED_EVENT, {});
3835
+ },
3836
+ isElementInContainer: function (el) { return _this.root.contains(el); },
3837
+ isRtl: function () {
3838
+ return getComputedStyle(_this.root).getPropertyValue('direction') === 'rtl';
3839
+ },
3840
+ setTransformOrigin: function (origin) {
3841
+ var propertyName = getCorrectPropertyName(window, 'transform') + "-origin";
3842
+ _this.root.style.setProperty(propertyName, origin);
3843
+ },
3844
+ isFocused: function () { return document.activeElement === _this.root; },
3845
+ saveFocus: function () {
3846
+ _this.previousFocus =
3847
+ document.activeElement;
3848
+ },
3849
+ restoreFocus: function () {
3850
+ if (_this.root.contains(document.activeElement)) {
3851
+ if (_this.previousFocus && _this.previousFocus.focus) {
3852
+ _this.previousFocus.focus();
3853
+ }
3854
+ }
3855
+ },
3856
+ getInnerDimensions: function () {
3857
+ return {
3858
+ width: _this.root.offsetWidth,
3859
+ height: _this.root.offsetHeight
3860
+ };
3861
+ },
3862
+ getAnchorDimensions: function () { return _this.anchorElement ?
3863
+ _this.anchorElement.getBoundingClientRect() :
3864
+ null; },
3865
+ getWindowDimensions: function () {
3866
+ return { width: window.innerWidth, height: window.innerHeight };
3867
+ },
3868
+ getBodyDimensions: function () {
3869
+ return { width: document.body.clientWidth, height: document.body.clientHeight };
3870
+ },
3871
+ getWindowScroll: function () {
3872
+ return { x: window.pageXOffset, y: window.pageYOffset };
3873
+ },
3874
+ setPosition: function (position) {
3875
+ var rootHTML = _this.root;
3876
+ rootHTML.style.left = 'left' in position ? position.left + "px" : '';
3877
+ rootHTML.style.right = 'right' in position ? position.right + "px" : '';
3878
+ rootHTML.style.top = 'top' in position ? position.top + "px" : '';
3879
+ rootHTML.style.bottom =
3880
+ 'bottom' in position ? position.bottom + "px" : '';
3881
+ },
3882
+ setMaxHeight: function (height) {
3883
+ _this.root.style.maxHeight = height;
3884
+ },
3885
+ };
3886
+ // tslint:enable:object-literal-sort-keys
3887
+ return new MDCMenuSurfaceFoundation(adapter);
948
3888
  };
949
- this.items = [];
950
- this.disabled = false;
951
- this.openDirection = 'bottom-start';
952
- this.surfaceWidth = 'inherit-from-items';
953
- this.open = false;
954
- this.badgeIcons = false;
955
- this.gridLayout = false;
956
- this.loading = false;
957
- this.currentSubMenu = undefined;
958
- this.rootItem = DEFAULT_ROOT_BREADCRUMBS_ITEM;
959
- this.searcher = undefined;
960
- this.emptyResultMessage = undefined;
961
- this.loadingSubItems = undefined;
962
- this.searchValue = undefined;
963
- this.searchResults = undefined;
964
- this.portalId = createRandomString();
965
- }
966
- componentDidRender() {
967
- const slotElement = this.host.shadowRoot.querySelector('slot');
968
- slotElement.assignedElements().forEach(this.setTriggerAttributes);
969
- }
970
- render() {
971
- const cssProperties = this.getCssProperties();
972
- const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
973
- const menuSurfaceWidth = this.getMenuSurfaceWidth(cssProperties['--menu-surface-width']);
974
- return (h("div", { class: "mdc-menu-surface--anchor", onClick: this.onTriggerClick }, h("slot", { ref: this.setTriggerRef, name: "trigger" }), this.renderNotificationBadge(), h("limel-portal", { visible: this.open, containerId: this.portalId, openDirection: this.openDirection, position: "absolute", containerStyle: { 'z-index': dropdownZIndex } }, h("limel-menu-surface", { open: this.open, onDismiss: this.onClose, style: Object.assign(Object.assign({}, cssProperties), { '--mdc-menu-min-width': menuSurfaceWidth, '--limel-menu-surface-display': 'flex', '--limel-menu-surface-flex-direction': 'column' }), class: {
975
- 'has-grid-layout': this.gridLayout,
976
- } }, this.renderSearchField(), this.renderBreadcrumb(), this.renderLoader(), this.renderEmptyMessage(), this.renderMenuList()))));
977
- }
978
- itemsWatcher() {
979
- this.clearSearch();
980
- this.setFocus();
981
- }
982
- openWatcher(newValue) {
983
- if (newValue) {
984
- this.setFocus();
985
- }
986
- else {
987
- this.clearSearch();
988
- }
989
- }
990
- getBreadcrumbsItems() {
991
- const breadCrumbItems = [];
992
- let currentItem = this.currentSubMenu;
993
- while (currentItem) {
994
- breadCrumbItems.push({
995
- text: currentItem.text,
996
- icon: currentItem.icon,
997
- menuItem: currentItem,
998
- });
999
- currentItem = currentItem.parentItem;
1000
- }
1001
- if (breadCrumbItems.length ||
1002
- this.rootItem !== DEFAULT_ROOT_BREADCRUMBS_ITEM) {
1003
- breadCrumbItems.push(this.rootItem);
1004
- }
1005
- return breadCrumbItems.reverse();
1006
- }
1007
- getCssProperties() {
1008
- const propertyNames = [
1009
- '--menu-surface-width',
1010
- '--list-grid-item-max-width',
1011
- '--list-grid-item-min-width',
1012
- '--list-grid-gap',
1013
- '--notification-badge-background-color',
1014
- '--notification-badge-text-color',
1015
- ];
1016
- const style = getComputedStyle(this.host);
1017
- const values = propertyNames.map((property) => {
1018
- return style.getPropertyValue(property);
1019
- });
1020
- return zipObject(propertyNames, values);
1021
- }
1022
- isMenuItem(item) {
1023
- return !('separator' in item);
1024
- }
1025
- getMenuSurfaceWidth(customWidth) {
1026
- var _a, _b, _c, _d;
1027
- if (customWidth) {
1028
- return customWidth;
1029
- }
1030
- if (this.surfaceWidth === 'inherit-from-trigger') {
1031
- const assignedTriggers = (_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.assignedElements();
1032
- if (!(assignedTriggers === null || assignedTriggers === void 0 ? void 0 : assignedTriggers.length) ||
1033
- !((_b = assignedTriggers[0]) === null || _b === void 0 ? void 0 : _b.clientWidth)) {
1034
- return '';
1035
- }
1036
- return `${assignedTriggers[0].clientWidth}px`;
1037
- }
1038
- else if (this.surfaceWidth === 'inherit-from-menu') {
1039
- if (!((_c = this.host) === null || _c === void 0 ? void 0 : _c.clientWidth)) {
1040
- return '';
1041
- }
1042
- return `${(_d = this.host) === null || _d === void 0 ? void 0 : _d.clientWidth}px`;
1043
- }
1044
- return '';
1045
- }
1046
- get visibleItems() {
1047
- var _a;
1048
- if (Array.isArray(this.searchResults) && this.searchValue) {
1049
- return this.searchResults;
1050
- }
1051
- else if (Array.isArray((_a = this.currentSubMenu) === null || _a === void 0 ? void 0 : _a.items)) {
1052
- return this.currentSubMenu.items.map((item) => (Object.assign(Object.assign({}, item), { parentItem: this.currentSubMenu })));
1053
- }
1054
- return this.items;
1055
- }
1056
- get host() { return getElement(this); }
1057
- static get watchers() { return {
1058
- "items": ["itemsWatcher"],
1059
- "open": ["openWatcher"]
1060
- }; }
1061
- };
1062
- Menu.style = menuCss;
3889
+ return MDCMenuSurface;
3890
+ }(MDCComponent));
1063
3891
 
1064
3892
  /**
1065
3893
  * @license
@@ -1272,11 +4100,11 @@ var MDCMenuFoundation = /** @class */ (function (_super) {
1272
4100
  MDCMenuFoundation.prototype.setEnabled = function (index, isEnabled) {
1273
4101
  this.validatedIndex(index);
1274
4102
  if (isEnabled) {
1275
- this.adapter.removeClassFromElementAtIndex(index, cssClasses$1.LIST_ITEM_DISABLED_CLASS);
4103
+ this.adapter.removeClassFromElementAtIndex(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS);
1276
4104
  this.adapter.addAttributeToElementAtIndex(index, strings.ARIA_DISABLED_ATTR, 'false');
1277
4105
  }
1278
4106
  else {
1279
- this.adapter.addClassToElementAtIndex(index, cssClasses$1.LIST_ITEM_DISABLED_CLASS);
4107
+ this.adapter.addClassToElementAtIndex(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS);
1280
4108
  this.adapter.addAttributeToElementAtIndex(index, strings.ARIA_DISABLED_ATTR, 'true');
1281
4109
  }
1282
4110
  };
@@ -1472,7 +4300,7 @@ var MDCMenu = /** @class */ (function (_super) {
1472
4300
  * radio lists, and an array of numbers for checkbox lists.
1473
4301
  */
1474
4302
  get: function () {
1475
- return this.list ? this.list.selectedIndex : numbers$1.UNSET_INDEX;
4303
+ return this.list ? this.list.selectedIndex : numbers$2.UNSET_INDEX;
1476
4304
  },
1477
4305
  /**
1478
4306
  * Sets the selected index of the list. Only applicable to select menus.
@@ -1908,6 +4736,113 @@ const MenuList = class {
1908
4736
  };
1909
4737
  MenuList.style = menuListCss;
1910
4738
 
4739
+ const menuSurfaceCss = ":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:var(\n --menu-surface-width,\n min(calc(100vw - 2rem), 20rem)\n );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}";
4740
+
4741
+ const MenuSurface = class {
4742
+ constructor(hostRef) {
4743
+ registerInstance(this, hostRef);
4744
+ this.dismiss = createEvent(this, "dismiss", 7);
4745
+ this.setup = () => {
4746
+ const menuElement = this.host.shadowRoot.querySelector('.mdc-menu-surface');
4747
+ if (!menuElement) {
4748
+ return;
4749
+ }
4750
+ this.menuSurface = new MDCMenuSurface(menuElement);
4751
+ this.menuSurface.setAnchorCorner(Corner.TOP_START);
4752
+ document.addEventListener('mousedown', this.handleDocumentClick, {
4753
+ capture: true,
4754
+ });
4755
+ this.host.addEventListener('keydown', this.handleKeyDown);
4756
+ };
4757
+ this.teardown = () => {
4758
+ var _a;
4759
+ (_a = this.menuSurface) === null || _a === void 0 ? void 0 : _a.destroy();
4760
+ document.removeEventListener('mousedown', this.handleDocumentClick, {
4761
+ capture: true,
4762
+ });
4763
+ this.host.removeEventListener('keydown', this.handleKeyDown);
4764
+ };
4765
+ this.handleDocumentClick = (event) => {
4766
+ const elementPath = event.composedPath ? event.composedPath() : [];
4767
+ if (!this.open) {
4768
+ return;
4769
+ }
4770
+ if (isDescendant(event.target, this.host)) {
4771
+ return;
4772
+ }
4773
+ if (this.allowClicksElement) {
4774
+ const clickedInAllowedElement = elementPath.includes(this.allowClicksElement);
4775
+ if (clickedInAllowedElement) {
4776
+ return;
4777
+ }
4778
+ }
4779
+ this.dismiss.emit();
4780
+ this.preventClickEventPropagation();
4781
+ };
4782
+ this.preventClickEventPropagation = () => {
4783
+ // When the menu surface is open, we want to stop the `click` event from propagating
4784
+ // when clicking outside the surface itself. This is to prevent any dialog that might
4785
+ // be open from closing, etc. However, when dragging a scrollbar no `click` event is emitted,
4786
+ // only mousedown and mouseup. So we listen for `mousedown` and attach a one-time listener
4787
+ // for `click`, so we can capture and "kill" it.
4788
+ document.addEventListener('click', this.stopEvent, {
4789
+ capture: true,
4790
+ once: true,
4791
+ });
4792
+ // We also capture and "kill" the next `mouseup` event.
4793
+ document.addEventListener('mouseup', this.stopEvent, {
4794
+ capture: true,
4795
+ once: true,
4796
+ });
4797
+ // If the user dragged the scrollbar, no `click` event happens. So when we get the
4798
+ // `mouseup` event, remove the handler for `click` if it's still there.
4799
+ // Otherwise, we would catch the next click even though the menu is no longer open.
4800
+ document.addEventListener('mouseup', () => {
4801
+ document.removeEventListener('click', this.stopEvent, {
4802
+ capture: true,
4803
+ });
4804
+ }, {
4805
+ once: true,
4806
+ });
4807
+ };
4808
+ this.stopEvent = (event) => {
4809
+ event.stopPropagation();
4810
+ event.preventDefault();
4811
+ };
4812
+ this.handleKeyDown = (event) => {
4813
+ const isEscape = event.key === ESCAPE || event.keyCode === ESCAPE_KEY_CODE;
4814
+ const isTab = event.key === TAB || event.keyCode === TAB_KEY_CODE;
4815
+ if (this.open && (isEscape || isTab)) {
4816
+ event.stopPropagation();
4817
+ this.dismiss.emit();
4818
+ }
4819
+ };
4820
+ this.open = false;
4821
+ this.allowClicksElement = undefined;
4822
+ }
4823
+ connectedCallback() {
4824
+ this.setup();
4825
+ }
4826
+ disconnectedCallback() {
4827
+ this.teardown();
4828
+ }
4829
+ componentDidLoad() {
4830
+ this.setup();
4831
+ }
4832
+ render() {
4833
+ const classList = {
4834
+ 'mdc-menu': true,
4835
+ 'mdc-menu-surface': true,
4836
+ 'mdc-menu-surface--open': this.open,
4837
+ 'mdc-elevation-transition': true,
4838
+ 'mdc-elevation--z4': true,
4839
+ };
4840
+ return (h("div", { class: classList, tabindex: "-1" }, h("slot", null)));
4841
+ }
4842
+ get host() { return getElement(this); }
4843
+ };
4844
+ MenuSurface.style = menuSurfaceCss;
4845
+
1911
4846
  const spinnerCss = ":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}: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}";
1912
4847
 
1913
4848
  const Spinner = class {
@@ -1930,6 +4865,6 @@ const Spinner = class {
1930
4865
  };
1931
4866
  Spinner.style = spinnerCss;
1932
4867
 
1933
- export { Breadcrumbs as limel_breadcrumbs, InputField as limel_input_field, Menu as limel_menu, MenuList as limel_menu_list, Spinner as limel_spinner };
4868
+ export { Breadcrumbs as limel_breadcrumbs, InputField as limel_input_field, List as limel_list, Menu as limel_menu, MenuList as limel_menu_list, MenuSurface as limel_menu_surface, Spinner as limel_spinner };
1934
4869
 
1935
- //# sourceMappingURL=limel-breadcrumbs_5.entry.js.map
4870
+ //# sourceMappingURL=limel-breadcrumbs_7.entry.js.map