@limetech/lime-elements 37.40.1 → 37.41.1

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