@limetech/lime-elements 37.45.2 → 37.46.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 (196) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/component-cba208a8.js +2448 -0
  3. package/dist/cjs/component-cba208a8.js.map +1 -0
  4. package/dist/cjs/{dom-ee8ee17d.js → debounce-2e5f4b7e.js} +1 -31
  5. package/dist/cjs/debounce-2e5f4b7e.js.map +1 -0
  6. package/dist/cjs/dom-81eaa633.js +34 -0
  7. package/dist/cjs/dom-81eaa633.js.map +1 -0
  8. package/dist/cjs/lime-elements.cjs.js +1 -1
  9. package/dist/cjs/{limel-action-bar_3.cjs.entry.js → limel-action-bar_4.cjs.entry.js} +68 -1
  10. package/dist/cjs/limel-action-bar_4.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{limel-breadcrumbs_7.cjs.entry.js → limel-breadcrumbs_5.cjs.entry.js} +412 -3357
  12. package/dist/cjs/limel-breadcrumbs_5.cjs.entry.js.map +1 -0
  13. package/dist/cjs/limel-callout.cjs.entry.js +1 -1
  14. package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
  15. package/dist/cjs/limel-dynamic-label_4.cjs.entry.js +610 -0
  16. package/dist/cjs/limel-dynamic-label_4.cjs.entry.js.map +1 -0
  17. package/dist/cjs/limel-file-viewer.cjs.entry.js +1 -1
  18. package/dist/cjs/limel-file.cjs.entry.js +1 -1
  19. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-form.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-form.cjs.entry.js.map +1 -1
  22. package/dist/cjs/{limel-portal.cjs.entry.js → limel-icon_2.cjs.entry.js} +201 -1
  23. package/dist/cjs/limel-icon_2.cjs.entry.js.map +1 -0
  24. package/dist/cjs/limel-picker.cjs.entry.js +3 -2
  25. package/dist/cjs/limel-picker.cjs.entry.js.map +1 -1
  26. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +294 -16
  27. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -1
  28. package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
  29. package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
  30. package/dist/cjs/limel-text-editor.cjs.entry.js.map +1 -1
  31. package/dist/cjs/{link-helper-b7e6c8df.js → link-helper-563b01c0.js} +3 -1
  32. package/dist/cjs/link-helper-563b01c0.js.map +1 -0
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/cjs/{translations-988a3f51.js → translations-83a68e56.js} +25 -1
  35. package/dist/cjs/translations-83a68e56.js.map +1 -0
  36. package/dist/collection/collection-manifest.json +1 -0
  37. package/dist/collection/components/chip/chip.js +2 -2
  38. package/dist/collection/components/text-editor/link-menu/editor-link-menu.css +12 -0
  39. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +201 -0
  40. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js.map +1 -0
  41. package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-commands.js +72 -11
  42. package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-commands.js.map +1 -1
  43. package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-items.js +6 -0
  44. package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-items.js.map +1 -1
  45. package/dist/collection/components/text-editor/prosemirror-adapter/menu/types.js.map +1 -1
  46. package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link-plugin.js +172 -0
  47. package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link-plugin.js.map +1 -0
  48. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.css +4 -0
  49. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +53 -6
  50. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js.map +1 -1
  51. package/dist/collection/components/text-editor/text-editor.css +1 -0
  52. package/dist/collection/translations/da.js +4 -0
  53. package/dist/collection/translations/da.js.map +1 -1
  54. package/dist/collection/translations/en.js +4 -0
  55. package/dist/collection/translations/en.js.map +1 -1
  56. package/dist/collection/translations/fi.js +4 -0
  57. package/dist/collection/translations/fi.js.map +1 -1
  58. package/dist/collection/translations/nl.js +4 -0
  59. package/dist/collection/translations/nl.js.map +1 -1
  60. package/dist/collection/translations/no.js +4 -0
  61. package/dist/collection/translations/no.js.map +1 -1
  62. package/dist/collection/translations/sv.js +4 -0
  63. package/dist/collection/translations/sv.js.map +1 -1
  64. package/dist/collection/util/link-helper.js +1 -1
  65. package/dist/collection/util/link-helper.js.map +1 -1
  66. package/dist/esm/component-db286494.js +2440 -0
  67. package/dist/esm/component-db286494.js.map +1 -0
  68. package/dist/esm/{dom-ae531ebc.js → debounce-9a05c91c.js} +2 -31
  69. package/dist/esm/debounce-9a05c91c.js.map +1 -0
  70. package/dist/esm/dom-0b0170a0.js +32 -0
  71. package/dist/esm/dom-0b0170a0.js.map +1 -0
  72. package/dist/esm/lime-elements.js +1 -1
  73. package/dist/esm/{limel-action-bar_3.entry.js → limel-action-bar_4.entry.js} +68 -2
  74. package/dist/esm/limel-action-bar_4.entry.js.map +1 -0
  75. package/dist/esm/{limel-breadcrumbs_7.entry.js → limel-breadcrumbs_5.entry.js} +404 -3347
  76. package/dist/esm/limel-breadcrumbs_5.entry.js.map +1 -0
  77. package/dist/esm/limel-callout.entry.js +1 -1
  78. package/dist/esm/limel-chip_2.entry.js +2 -2
  79. package/dist/esm/limel-dynamic-label_4.entry.js +603 -0
  80. package/dist/esm/limel-dynamic-label_4.entry.js.map +1 -0
  81. package/dist/esm/limel-file-viewer.entry.js +1 -1
  82. package/dist/esm/limel-file.entry.js +1 -1
  83. package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
  84. package/dist/esm/limel-form.entry.js +1 -1
  85. package/dist/esm/limel-form.entry.js.map +1 -1
  86. package/dist/esm/{limel-portal.entry.js → limel-icon_2.entry.js} +201 -2
  87. package/dist/esm/limel-icon_2.entry.js.map +1 -0
  88. package/dist/esm/limel-picker.entry.js +2 -1
  89. package/dist/esm/limel-picker.entry.js.map +1 -1
  90. package/dist/esm/limel-prosemirror-adapter.entry.js +294 -16
  91. package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -1
  92. package/dist/esm/limel-snackbar.entry.js +1 -1
  93. package/dist/esm/limel-text-editor.entry.js +1 -1
  94. package/dist/esm/limel-text-editor.entry.js.map +1 -1
  95. package/dist/esm/{link-helper-725a9166.js → link-helper-2a16b323.js} +2 -2
  96. package/dist/esm/link-helper-2a16b323.js.map +1 -0
  97. package/dist/esm/loader.js +1 -1
  98. package/dist/esm/{translations-e73d7840.js → translations-5ae8ec7b.js} +25 -1
  99. package/dist/esm/translations-5ae8ec7b.js.map +1 -0
  100. package/dist/lime-elements/lime-elements.esm.js +1 -1
  101. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  102. package/dist/lime-elements/p-18c97232.js +2 -0
  103. package/dist/lime-elements/p-18c97232.js.map +1 -0
  104. package/dist/lime-elements/{p-5cfed8a8.entry.js → p-26a43fd9.entry.js} +5 -5
  105. package/dist/lime-elements/p-29e0e5bd.js +2 -0
  106. package/dist/lime-elements/p-29e0e5bd.js.map +1 -0
  107. package/dist/lime-elements/{p-dfc28411.entry.js → p-42b6ba6d.entry.js} +2 -2
  108. package/dist/lime-elements/{p-c8ce7cd4.entry.js → p-4bd0b7fb.entry.js} +2 -2
  109. package/dist/lime-elements/p-50b604b9.entry.js +2 -0
  110. package/dist/lime-elements/p-50b604b9.entry.js.map +1 -0
  111. package/dist/lime-elements/{p-ab13cb4a.entry.js → p-5e2604e5.entry.js} +2 -2
  112. package/dist/lime-elements/p-5e7b7b03.js +2 -0
  113. package/dist/lime-elements/p-5e7b7b03.js.map +1 -0
  114. package/dist/lime-elements/{p-516619d3.js → p-6465625e.js} +2 -2
  115. package/dist/lime-elements/p-6465625e.js.map +1 -0
  116. package/dist/lime-elements/{p-7681dae8.entry.js → p-70bfa812.entry.js} +2 -2
  117. package/dist/lime-elements/p-8d71c9e5.entry.js +2 -0
  118. package/dist/lime-elements/p-8d71c9e5.entry.js.map +1 -0
  119. package/dist/lime-elements/p-8f10b7e4.entry.js +2 -0
  120. package/dist/lime-elements/p-8f10b7e4.entry.js.map +1 -0
  121. package/dist/lime-elements/{p-e3eb403a.entry.js → p-91a8c244.entry.js} +2 -2
  122. package/dist/lime-elements/p-b8bfe44d.entry.js +2 -0
  123. package/dist/lime-elements/{p-3f4d2f62.entry.js.map → p-b8bfe44d.entry.js.map} +1 -1
  124. package/dist/lime-elements/p-bcfb5db5.entry.js +68 -0
  125. package/dist/lime-elements/p-bcfb5db5.entry.js.map +1 -0
  126. package/dist/lime-elements/p-d4d2593b.entry.js +2 -0
  127. package/dist/lime-elements/p-d4d2593b.entry.js.map +1 -0
  128. package/dist/lime-elements/p-eb9ab3d4.entry.js +2 -0
  129. package/dist/lime-elements/p-eb9ab3d4.entry.js.map +1 -0
  130. package/dist/lime-elements/p-f764b655.js +200 -0
  131. package/dist/lime-elements/p-f764b655.js.map +1 -0
  132. package/dist/lime-elements/{p-cfe4e725.entry.js → p-fe5e8f22.entry.js} +2 -2
  133. package/dist/lime-elements/{p-cfe4e725.entry.js.map → p-fe5e8f22.entry.js.map} +1 -1
  134. package/dist/types/components/file-viewer/file-viewer.d.ts +126 -0
  135. package/dist/types/components/progress-flow/progress-flow-item/progress-flow-item.d.ts +36 -0
  136. package/dist/types/components/progress-flow/progress-flow.d.ts +49 -0
  137. package/dist/types/components/text-editor/link-menu/editor-link-menu.d.ts +47 -0
  138. package/dist/types/components/text-editor/prosemirror-adapter/menu/menu-commands.d.ts +5 -2
  139. package/dist/types/components/text-editor/prosemirror-adapter/menu/types.d.ts +49 -0
  140. package/dist/types/components/text-editor/prosemirror-adapter/plugins/link-plugin.d.ts +9 -0
  141. package/dist/types/components/text-editor/prosemirror-adapter/prosemirror-adapter.d.ts +14 -3
  142. package/dist/types/components.d.ts +79 -0
  143. package/dist/types/translations/da.d.ts +4 -0
  144. package/dist/types/translations/en.d.ts +4 -0
  145. package/dist/types/translations/fi.d.ts +4 -0
  146. package/dist/types/translations/nl.d.ts +4 -0
  147. package/dist/types/translations/no.d.ts +4 -0
  148. package/dist/types/translations/sv.d.ts +4 -0
  149. package/dist/types/util/link-helper.d.ts +1 -0
  150. package/package.json +2 -2
  151. package/dist/cjs/dom-ee8ee17d.js.map +0 -1
  152. package/dist/cjs/limel-action-bar_3.cjs.entry.js.map +0 -1
  153. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js.map +0 -1
  154. package/dist/cjs/limel-dynamic-label_2.cjs.entry.js +0 -91
  155. package/dist/cjs/limel-dynamic-label_2.cjs.entry.js.map +0 -1
  156. package/dist/cjs/limel-icon.cjs.entry.js +0 -208
  157. package/dist/cjs/limel-icon.cjs.entry.js.map +0 -1
  158. package/dist/cjs/limel-portal.cjs.entry.js.map +0 -1
  159. package/dist/cjs/link-helper-b7e6c8df.js.map +0 -1
  160. package/dist/cjs/translations-988a3f51.js.map +0 -1
  161. package/dist/esm/dom-ae531ebc.js.map +0 -1
  162. package/dist/esm/limel-action-bar_3.entry.js.map +0 -1
  163. package/dist/esm/limel-breadcrumbs_7.entry.js.map +0 -1
  164. package/dist/esm/limel-dynamic-label_2.entry.js +0 -86
  165. package/dist/esm/limel-dynamic-label_2.entry.js.map +0 -1
  166. package/dist/esm/limel-icon.entry.js +0 -204
  167. package/dist/esm/limel-icon.entry.js.map +0 -1
  168. package/dist/esm/limel-portal.entry.js.map +0 -1
  169. package/dist/esm/link-helper-725a9166.js.map +0 -1
  170. package/dist/esm/translations-e73d7840.js.map +0 -1
  171. package/dist/lime-elements/p-2f453044.entry.js +0 -266
  172. package/dist/lime-elements/p-2f453044.entry.js.map +0 -1
  173. package/dist/lime-elements/p-35a4a846.entry.js +0 -2
  174. package/dist/lime-elements/p-35a4a846.entry.js.map +0 -1
  175. package/dist/lime-elements/p-3f4d2f62.entry.js +0 -2
  176. package/dist/lime-elements/p-516619d3.js.map +0 -1
  177. package/dist/lime-elements/p-5c9fbe6f.entry.js +0 -2
  178. package/dist/lime-elements/p-5c9fbe6f.entry.js.map +0 -1
  179. package/dist/lime-elements/p-714d6937.js +0 -2
  180. package/dist/lime-elements/p-714d6937.js.map +0 -1
  181. package/dist/lime-elements/p-a0fc1875.entry.js +0 -2
  182. package/dist/lime-elements/p-a0fc1875.entry.js.map +0 -1
  183. package/dist/lime-elements/p-a2d19673.entry.js +0 -2
  184. package/dist/lime-elements/p-a2d19673.entry.js.map +0 -1
  185. package/dist/lime-elements/p-c5f96fcd.entry.js +0 -2
  186. package/dist/lime-elements/p-c5f96fcd.entry.js.map +0 -1
  187. package/dist/lime-elements/p-cd6b9ff0.js +0 -2
  188. package/dist/lime-elements/p-cd6b9ff0.js.map +0 -1
  189. package/dist/lime-elements/p-f548d996.entry.js +0 -2
  190. package/dist/lime-elements/p-f548d996.entry.js.map +0 -1
  191. /package/dist/lime-elements/{p-5cfed8a8.entry.js.map → p-26a43fd9.entry.js.map} +0 -0
  192. /package/dist/lime-elements/{p-dfc28411.entry.js.map → p-42b6ba6d.entry.js.map} +0 -0
  193. /package/dist/lime-elements/{p-c8ce7cd4.entry.js.map → p-4bd0b7fb.entry.js.map} +0 -0
  194. /package/dist/lime-elements/{p-ab13cb4a.entry.js.map → p-5e2604e5.entry.js.map} +0 -0
  195. /package/dist/lime-elements/{p-7681dae8.entry.js.map → p-70bfa812.entry.js.map} +0 -0
  196. /package/dist/lime-elements/{p-e3eb403a.entry.js.map → p-91a8c244.entry.js.map} +0 -0
@@ -7,17 +7,16 @@ const makeEnterClickable = require('./make-enter-clickable-c116ac4f.js');
7
7
  const randomString = require('./random-string-c8445652.js');
8
8
  const getIconProps = require('./get-icon-props-50be7440.js');
9
9
  const keycodes = require('./keycodes-3949f425.js');
10
- const linkHelper = require('./link-helper-b7e6c8df.js');
10
+ const linkHelper = require('./link-helper-563b01c0.js');
11
11
  const config = require('./config-e7e1a299.js');
12
12
  const component = require('./component-37425b99.js');
13
- const dom = require('./dom-ee8ee17d.js');
14
- const checkbox_template = require('./checkbox.template-f86d05d4.js');
15
- const component$1 = require('./component-b37fd9bc.js');
16
- const ponyfill = require('./ponyfill-98ca4766.js');
13
+ const debounce = require('./debounce-2e5f4b7e.js');
17
14
  const eq = require('./eq-9a943b00.js');
18
15
  const zipObject = require('./zipObject-93a471fa.js');
19
- const util = require('./util-b0f5741e.js');
20
- const component$2 = require('./component-a4eb183b.js');
16
+ const component$1 = require('./component-b37fd9bc.js');
17
+ const ponyfill = require('./ponyfill-98ca4766.js');
18
+ const component$2 = require('./component-cba208a8.js');
19
+ const component$3 = require('./component-a4eb183b.js');
21
20
  require('./component-55b926ef.js');
22
21
  require('./isObject-e28b7997.js');
23
22
  require('./toNumber-062ea29c.js');
@@ -26,6 +25,7 @@ require('./isObjectLike-3e3f0cba.js');
26
25
  require('./_assignValue-7c18d8d6.js');
27
26
  require('./_defineProperty-8f56146d.js');
28
27
  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 = dom.debounce((value) => {
493
+ this.changeEmitter = debounce.debounce((value) => {
494
494
  this.change.emit(value);
495
495
  this.changeWaiting = false;
496
496
  }, DEBOUNCE_TIMEOUT);
@@ -630,3258 +630,431 @@ const InputField = class {
630
630
  };
631
631
  InputField.style = inputFieldCss;
632
632
 
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';
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}";
708
634
 
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',
750
- };
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,
635
+ const DEFAULT_ROOT_BREADCRUMBS_ITEM = {
636
+ text: '',
637
+ icon: {
638
+ name: 'home',
639
+ },
640
+ type: 'icon-only',
783
641
  };
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) {
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) {
861
650
  return;
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: '',
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 })));
905
660
  };
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;
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 }));
1296
670
  };
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;
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);
1311
680
  };
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
- }
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 }));
1321
689
  };
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);
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));
1328
703
  };
1329
- /** Toggle use of the "activated" CSS class. */
1330
- MDCListFoundation.prototype.setUseActivatedClass = function (useActivated) {
1331
- this.useActivatedClass = useActivated;
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 }));
1332
715
  };
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;
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;
1339
732
  };
1340
- MDCListFoundation.prototype.getSelectedIndex = function () {
1341
- return this.selectedIndex;
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();
755
+ 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
+ }
1342
762
  };
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);
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();
781
+ }
782
+ else if (!this.gridLayout) {
783
+ const currentItem = this.getCurrentItem();
784
+ event.stopPropagation();
785
+ event.preventDefault();
786
+ if (isRight) {
787
+ this.goForward(currentItem);
1353
788
  }
1354
- else {
1355
- this.setSingleSelectionAtIndex(index, { forceUpdate: forceUpdate });
789
+ else if (isLeft) {
790
+ this.goBack();
1356
791
  }
792
+ }
1357
793
  };
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
- }
794
+ this.clearSearch = () => {
795
+ this.searchValue = '';
796
+ this.searchResults = null;
797
+ this.loadingSubItems = false;
1367
798
  };
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);
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];
1386
805
  };
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
- }
806
+ this.goForward = (currentItem) => {
807
+ this.handleSelect(currentItem, false);
1494
808
  };
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);
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);
1509
825
  };
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
- }
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);
1524
837
  }
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
- }
838
+ else {
839
+ element.setAttribute(key, String(value));
1541
840
  }
1542
- this.focusItemAtIndex(prevIndex);
1543
- return prevIndex;
1544
- };
1545
- MDCListFoundation.prototype.focusFirstElement = function () {
1546
- this.focusItemAtIndex(0);
1547
- return 0;
841
+ }
1548
842
  };
1549
- MDCListFoundation.prototype.focusLastElement = function () {
1550
- var lastIndex = this.adapter.getListItemCount() - 1;
1551
- this.focusItemAtIndex(lastIndex);
1552
- return lastIndex;
843
+ this.onClose = () => {
844
+ this.cancel.emit();
845
+ this.open = false;
846
+ this.currentSubMenu = null;
1553
847
  };
1554
- MDCListFoundation.prototype.focusInitialElement = function () {
1555
- var initialIndex = this.getFirstSelectedOrFocusedItemIndex();
1556
- this.focusItemAtIndex(initialIndex);
1557
- return initialIndex;
848
+ this.onTriggerClick = (event) => {
849
+ event.stopPropagation();
850
+ if (this.disabled) {
851
+ return;
852
+ }
853
+ this.open = !this.open;
1558
854
  };
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
- static get delegatesFocus() { return true; }
2586
- get element() { return index.getElement(this); }
2587
- static get watchers() { return {
2588
- "type": ["handleType"],
2589
- "items": ["itemsChanged"]
2590
- }; }
2591
- };
2592
- List.style = listCss;
2593
-
2594
- 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}";
2595
-
2596
- const DEFAULT_ROOT_BREADCRUMBS_ITEM = {
2597
- text: '',
2598
- icon: {
2599
- name: 'home',
2600
- },
2601
- type: 'icon-only',
2602
- };
2603
- const Menu = class {
2604
- constructor(hostRef) {
2605
- index.registerInstance(this, hostRef);
2606
- this.cancel = index.createEvent(this, "cancel", 7);
2607
- this.select = index.createEvent(this, "select", 7);
2608
- this.navigateMenu = index.createEvent(this, "navigateMenu", 7);
2609
- this.renderLoader = () => {
2610
- if (!this.loadingSubItems && !this.loading) {
2611
- return;
2612
- }
2613
- const cssProperties = this.getCssProperties();
2614
- return (index.h("div", { style: {
2615
- width: cssProperties['--menu-surface-width'],
2616
- display: 'flex',
2617
- 'align-items': 'center',
2618
- 'justify-content': 'center',
2619
- padding: '0.5rem 0',
2620
- } }, index.h("limel-spinner", { size: "mini", limeBranded: false })));
2621
- };
2622
- this.renderBreadcrumb = () => {
2623
- const breadcrumbsItems = this.getBreadcrumbsItems();
2624
- if (!breadcrumbsItems.length) {
2625
- return;
2626
- }
2627
- return (index.h("limel-breadcrumbs", { style: {
2628
- 'border-bottom': 'solid 1px rgb(var(--contrast-500))',
2629
- 'flex-shrink': '0',
2630
- }, onSelect: this.handleBreadcrumbsSelect, items: breadcrumbsItems }));
2631
- };
2632
- this.handleBreadcrumbsSelect = (event) => {
2633
- if (!event.detail.menuItem) {
2634
- this.currentSubMenu = null;
2635
- this.clearSearch();
2636
- this.navigateMenu.emit(null);
2637
- this.setFocus();
2638
- return;
2639
- }
2640
- this.handleSelect(event.detail.menuItem);
2641
- };
2642
- this.renderSearchField = () => {
2643
- if (!this.searcher) {
2644
- return;
2645
- }
2646
- return (index.h("limel-input-field", { tabindex: "0", ref: this.setSearchElement, type: "search", leadingIcon: "search", style: {
2647
- padding: '0.25rem',
2648
- 'box-sizing': 'border-box',
2649
- }, value: this.searchValue, onChange: this.handleTextInput, onKeyDown: this.handleInputKeyDown }));
2650
- };
2651
- this.renderEmptyMessage = () => {
2652
- var _a;
2653
- if (this.loading ||
2654
- this.loadingSubItems ||
2655
- !this.emptyResultMessage ||
2656
- !Array.isArray(this.searchResults) ||
2657
- ((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.length)) {
2658
- return null;
2659
- }
2660
- return (index.h("p", { style: {
2661
- padding: '0 1rem',
2662
- 'text-align': 'center',
2663
- } }, this.emptyResultMessage));
2664
- };
2665
- this.renderMenuList = () => {
2666
- let items = this.visibleItems;
2667
- if (this.loadingSubItems || this.loading) {
2668
- items = [];
2669
- }
2670
- return (index.h("limel-menu-list", { style: {
2671
- 'overflow-y': 'auto',
2672
- 'flex-grow': '1',
2673
- }, class: {
2674
- 'has-grid-layout has-interactive-items': this.gridLayout,
2675
- }, items: items, type: "menu", badgeIcons: this.badgeIcons, onSelect: this.onSelect, ref: this.setListElement, onKeyDown: this.handleMenuKeyDown }));
2676
- };
2677
- this.handleTextInput = async (event) => {
2678
- event.stopPropagation();
2679
- const query = event.detail;
2680
- this.searchValue = query;
2681
- if (query === '') {
2682
- this.searchResults = null;
2683
- this.loadingSubItems = false;
2684
- return;
2685
- }
2686
- this.loadingSubItems = true;
2687
- const result = await this.searcher(query);
2688
- if (this.searchValue !== query) {
2689
- return;
2690
- }
2691
- this.searchResults = result;
2692
- this.loadingSubItems = false;
2693
- };
2694
- // Key handler for the input search field
2695
- // Will change focus to the first/last item in the dropdown
2696
- // list to enable selection with the keyboard
2697
- this.handleInputKeyDown = (event) => {
2698
- const isForwardTab = (event.key === keycodes.TAB || event.keyCode === keycodes.TAB_KEY_CODE) &&
2699
- !event.altKey &&
2700
- !event.metaKey &&
2701
- !event.shiftKey;
2702
- const isUp = event.key === keycodes.ARROW_UP || event.keyCode === keycodes.ARROW_UP_KEY_CODE;
2703
- const isDown = event.key === keycodes.ARROW_DOWN || event.keyCode === keycodes.ARROW_DOWN_KEY_CODE;
2704
- if (!isForwardTab && !isUp && !isDown) {
2705
- return;
2706
- }
2707
- if (!this.list) {
2708
- return;
2709
- }
2710
- event.stopPropagation();
2711
- event.preventDefault();
2712
- if (isForwardTab || isDown) {
2713
- const listItems = this.list.shadowRoot.querySelectorAll('.mdc-deprecated-list-item');
2714
- const listElement = listItems[0];
2715
- listElement === null || listElement === void 0 ? void 0 : listElement.focus();
2716
- return;
2717
- }
2718
- if (isUp) {
2719
- const listItems = this.list.shadowRoot.querySelectorAll('.mdc-deprecated-list-item');
2720
- const listElement = listItems[listItems.length - 1];
2721
- listElement === null || listElement === void 0 ? void 0 : listElement.focus();
2722
- }
2723
- };
2724
- // Key handler for the menu list
2725
- // Will change focus to the search field if using shift+tab
2726
- // And can go forward/back with righ/left arrow keys
2727
- this.handleMenuKeyDown = (event) => {
2728
- var _a;
2729
- const isBackwardTab = (event.key === keycodes.TAB || event.keyCode === keycodes.TAB_KEY_CODE) &&
2730
- !event.altKey &&
2731
- !event.metaKey &&
2732
- event.shiftKey;
2733
- const isLeft = event.key === keycodes.ARROW_LEFT || event.keyCode === keycodes.ARROW_LEFT_KEY_CODE;
2734
- const isRight = event.key === keycodes.ARROW_RIGHT || event.keyCode === keycodes.ARROW_RIGHT_KEY_CODE;
2735
- if (!isBackwardTab && !isLeft && !isRight) {
2736
- return;
2737
- }
2738
- if (isBackwardTab) {
2739
- event.stopPropagation();
2740
- event.preventDefault();
2741
- (_a = this.searchInput) === null || _a === void 0 ? void 0 : _a.focus();
2742
- }
2743
- else if (!this.gridLayout) {
2744
- const currentItem = this.getCurrentItem();
2745
- event.stopPropagation();
2746
- event.preventDefault();
2747
- if (isRight) {
2748
- this.goForward(currentItem);
2749
- }
2750
- else if (isLeft) {
2751
- this.goBack();
2752
- }
2753
- }
2754
- };
2755
- this.clearSearch = () => {
2756
- this.searchValue = '';
2757
- this.searchResults = null;
2758
- this.loadingSubItems = false;
2759
- };
2760
- this.getCurrentItem = () => {
2761
- var _a, _b, _c;
2762
- 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"]');
2763
- const attrIndex = (_c = activeItem === null || activeItem === void 0 ? void 0 : activeItem.attributes) === null || _c === void 0 ? void 0 : _c.getNamedItem('data-index');
2764
- const dataIndex = parseInt((attrIndex === null || attrIndex === void 0 ? void 0 : attrIndex.value) || '0', 10);
2765
- return this.visibleItems[dataIndex];
2766
- };
2767
- this.goForward = (currentItem) => {
2768
- this.handleSelect(currentItem, false);
2769
- };
2770
- this.goBack = () => {
2771
- if (!this.currentSubMenu) {
2772
- // Already in the root of the menu
2773
- return;
2774
- }
2775
- const parent = this.currentSubMenu.parentItem;
2776
- if (!parent) {
2777
- // If only one step down, go to the root of the menu.
2778
- // No need to load a sub-menu.
2779
- this.currentSubMenu = null;
2780
- this.clearSearch();
2781
- this.navigateMenu.emit(null);
2782
- this.setFocus();
2783
- return;
2784
- }
2785
- this.handleSelect(parent);
2786
- };
2787
- this.setTriggerAttributes = (element) => {
2788
- const attributes = {
2789
- 'aria-haspopup': true,
2790
- 'aria-expanded': this.open,
2791
- 'aria-controls': this.portalId,
2792
- disabled: this.disabled,
2793
- role: 'button',
2794
- };
2795
- for (const [key, value] of Object.entries(attributes)) {
2796
- if (!value) {
2797
- element.removeAttribute(key);
2798
- }
2799
- else {
2800
- element.setAttribute(key, String(value));
2801
- }
2802
- }
2803
- };
2804
- this.onClose = () => {
2805
- this.cancel.emit();
2806
- this.open = false;
2807
- this.currentSubMenu = null;
2808
- };
2809
- this.onTriggerClick = (event) => {
2810
- event.stopPropagation();
2811
- if (this.disabled) {
2812
- return;
2813
- }
2814
- this.open = !this.open;
2815
- };
2816
- this.handleSelect = async (menuItem, selectOnEmptyChildren = true) => {
2817
- if (Array.isArray(menuItem === null || menuItem === void 0 ? void 0 : menuItem.items) && menuItem.items.length > 0) {
2818
- this.selectedMenuItem = menuItem;
2819
- this.clearSearch();
2820
- this.currentSubMenu = menuItem;
2821
- this.navigateMenu.emit(menuItem);
2822
- this.setFocus();
2823
- return;
2824
- }
2825
- else if (eq.isFunction(menuItem === null || menuItem === void 0 ? void 0 : menuItem.items)) {
2826
- const menuLoader = menuItem.items;
2827
- this.selectedMenuItem = menuItem;
2828
- this.loadingSubItems = true;
2829
- const subItems = await menuLoader(menuItem);
2830
- if (this.selectedMenuItem !== menuItem) {
2831
- return;
2832
- }
2833
- menuItem.items = subItems;
2834
- this.loadingSubItems = false;
2835
- if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
2836
- this.currentSubMenu = menuItem;
2837
- this.clearSearch();
2838
- this.navigateMenu.emit(menuItem);
2839
- this.setFocus();
2840
- return;
2841
- }
2842
- }
2843
- if (!selectOnEmptyChildren) {
2844
- return;
2845
- }
2846
- this.selectedMenuItem = menuItem;
2847
- this.loadingSubItems = false;
2848
- this.select.emit(menuItem);
2849
- this.open = false;
2850
- this.currentSubMenu = null;
2851
- this.setFocus();
2852
- };
2853
- this.onSelect = (event) => {
2854
- event.stopPropagation();
2855
- this.handleSelect(event.detail);
2856
- };
2857
- this.setListElement = (element) => {
2858
- this.list = element;
2859
- };
2860
- this.setFocus = () => {
2861
- setTimeout(() => {
2862
- if (this.searchInput && this.searcher) {
2863
- const observer = new IntersectionObserver(() => {
2864
- observer.unobserve(this.searchInput);
2865
- if (this.searchInput === window.document.activeElement) {
2866
- return;
2867
- }
2868
- this.searchInput.focus();
2869
- });
2870
- observer.observe(this.searchInput);
2871
- }
2872
- else if (this.list) {
2873
- const observer = new IntersectionObserver(() => {
2874
- observer.unobserve(this.list);
2875
- this.focusMenuItem();
2876
- });
2877
- observer.observe(this.list);
2878
- }
2879
- }, 0);
2880
- };
2881
- this.setSearchElement = (element) => {
2882
- this.searchInput = element;
2883
- };
2884
- this.focusMenuItem = () => {
2885
- var _a;
2886
- if (!this.list) {
2887
- return;
2888
- }
2889
- const activeElement = this.list.shadowRoot.activeElement;
2890
- activeElement === null || activeElement === void 0 ? void 0 : activeElement.blur();
2891
- const menuItems = this.visibleItems.filter(this.isMenuItem);
2892
- const selectedIndex = Math.max(menuItems.findIndex((item) => item.selected), 0);
2893
- const menuElements = Array.from(this.list.shadowRoot.querySelectorAll('[role="menuitem"]'));
2894
- (_a = menuElements[selectedIndex]) === null || _a === void 0 ? void 0 : _a.focus();
2895
- };
2896
- this.renderNotificationBadge = () => {
2897
- if (this.items.some(this.hasNotificationBadge)) {
2898
- return index.h("limel-badge", null);
2899
- }
2900
- };
2901
- this.hasNotificationBadge = (item) => this.isMenuItem(item) && item.badge !== undefined;
2902
- this.setTriggerRef = (elm) => {
2903
- this.triggerElement = elm;
2904
- };
2905
- this.items = [];
2906
- this.disabled = false;
2907
- this.openDirection = 'bottom-start';
2908
- this.surfaceWidth = 'inherit-from-items';
2909
- this.open = false;
2910
- this.badgeIcons = false;
2911
- this.gridLayout = false;
2912
- this.loading = false;
2913
- this.currentSubMenu = undefined;
2914
- this.rootItem = DEFAULT_ROOT_BREADCRUMBS_ITEM;
2915
- this.searcher = undefined;
2916
- this.emptyResultMessage = undefined;
2917
- this.loadingSubItems = undefined;
2918
- this.searchValue = undefined;
2919
- this.searchResults = undefined;
2920
- this.portalId = randomString.createRandomString();
2921
- }
2922
- componentDidRender() {
2923
- const slotElement = this.host.shadowRoot.querySelector('slot');
2924
- slotElement.assignedElements().forEach(this.setTriggerAttributes);
2925
- }
2926
- render() {
2927
- const cssProperties = this.getCssProperties();
2928
- const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
2929
- const menuSurfaceWidth = this.getMenuSurfaceWidth(cssProperties['--menu-surface-width']);
2930
- 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: {
2931
- 'has-grid-layout': this.gridLayout,
2932
- } }, this.renderSearchField(), this.renderBreadcrumb(), this.renderLoader(), this.renderEmptyMessage(), this.renderMenuList()))));
2933
- }
2934
- itemsWatcher() {
2935
- this.clearSearch();
2936
- this.setFocus();
2937
- }
2938
- openWatcher(newValue) {
2939
- if (newValue) {
2940
- this.setFocus();
2941
- }
2942
- else {
2943
- this.clearSearch();
2944
- }
2945
- }
2946
- getBreadcrumbsItems() {
2947
- const breadCrumbItems = [];
2948
- let currentItem = this.currentSubMenu;
2949
- while (currentItem) {
2950
- breadCrumbItems.push({
2951
- text: currentItem.text,
2952
- icon: currentItem.icon,
2953
- menuItem: currentItem,
2954
- });
2955
- currentItem = currentItem.parentItem;
2956
- }
2957
- if (breadCrumbItems.length ||
2958
- this.rootItem !== DEFAULT_ROOT_BREADCRUMBS_ITEM) {
2959
- breadCrumbItems.push(this.rootItem);
2960
- }
2961
- return breadCrumbItems.reverse();
2962
- }
2963
- getCssProperties() {
2964
- const propertyNames = [
2965
- '--menu-surface-width',
2966
- '--list-grid-item-max-width',
2967
- '--list-grid-item-min-width',
2968
- '--list-grid-gap',
2969
- '--notification-badge-background-color',
2970
- '--notification-badge-text-color',
2971
- ];
2972
- const style = getComputedStyle(this.host);
2973
- const values = propertyNames.map((property) => {
2974
- return style.getPropertyValue(property);
2975
- });
2976
- return zipObject.zipObject(propertyNames, values);
2977
- }
2978
- isMenuItem(item) {
2979
- return !('separator' in item);
2980
- }
2981
- getMenuSurfaceWidth(customWidth) {
2982
- var _a, _b, _c, _d;
2983
- if (customWidth) {
2984
- return customWidth;
2985
- }
2986
- if (this.surfaceWidth === 'inherit-from-trigger') {
2987
- const assignedTriggers = (_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.assignedElements();
2988
- if (!(assignedTriggers === null || assignedTriggers === void 0 ? void 0 : assignedTriggers.length) ||
2989
- !((_b = assignedTriggers[0]) === null || _b === void 0 ? void 0 : _b.clientWidth)) {
2990
- return '';
2991
- }
2992
- return `${assignedTriggers[0].clientWidth}px`;
2993
- }
2994
- else if (this.surfaceWidth === 'inherit-from-menu') {
2995
- if (!((_c = this.host) === null || _c === void 0 ? void 0 : _c.clientWidth)) {
2996
- return '';
2997
- }
2998
- return `${(_d = this.host) === null || _d === void 0 ? void 0 : _d.clientWidth}px`;
2999
- }
3000
- return '';
3001
- }
3002
- get visibleItems() {
3003
- var _a;
3004
- if (Array.isArray(this.searchResults) && this.searchValue) {
3005
- return this.searchResults;
3006
- }
3007
- else if (Array.isArray((_a = this.currentSubMenu) === null || _a === void 0 ? void 0 : _a.items)) {
3008
- return this.currentSubMenu.items.map((item) => (Object.assign(Object.assign({}, item), { parentItem: this.currentSubMenu })));
3009
- }
3010
- return this.items;
3011
- }
3012
- get host() { return index.getElement(this); }
3013
- static get watchers() { return {
3014
- "items": ["itemsWatcher"],
3015
- "open": ["openWatcher"]
3016
- }; }
3017
- };
3018
- Menu.style = menuCss;
3019
-
3020
- /**
3021
- * @license
3022
- * Copyright 2018 Google Inc.
3023
- *
3024
- * Permission is hereby granted, free of charge, to any person obtaining a copy
3025
- * of this software and associated documentation files (the "Software"), to deal
3026
- * in the Software without restriction, including without limitation the rights
3027
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3028
- * copies of the Software, and to permit persons to whom the Software is
3029
- * furnished to do so, subject to the following conditions:
3030
- *
3031
- * The above copyright notice and this permission notice shall be included in
3032
- * all copies or substantial portions of the Software.
3033
- *
3034
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3035
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3036
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3037
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3038
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3039
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3040
- * THE SOFTWARE.
3041
- */
3042
- var cssClasses$1 = {
3043
- ANCHOR: 'mdc-menu-surface--anchor',
3044
- ANIMATING_CLOSED: 'mdc-menu-surface--animating-closed',
3045
- ANIMATING_OPEN: 'mdc-menu-surface--animating-open',
3046
- FIXED: 'mdc-menu-surface--fixed',
3047
- IS_OPEN_BELOW: 'mdc-menu-surface--is-open-below',
3048
- OPEN: 'mdc-menu-surface--open',
3049
- ROOT: 'mdc-menu-surface',
3050
- };
3051
- // tslint:disable:object-literal-sort-keys
3052
- var strings$1 = {
3053
- CLOSED_EVENT: 'MDCMenuSurface:closed',
3054
- CLOSING_EVENT: 'MDCMenuSurface:closing',
3055
- OPENED_EVENT: 'MDCMenuSurface:opened',
3056
- FOCUSABLE_ELEMENTS: [
3057
- 'button:not(:disabled)',
3058
- '[href]:not([aria-disabled="true"])',
3059
- 'input:not(:disabled)',
3060
- 'select:not(:disabled)',
3061
- 'textarea:not(:disabled)',
3062
- '[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])',
3063
- ].join(', '),
3064
- };
3065
- // tslint:enable:object-literal-sort-keys
3066
- var numbers$1 = {
3067
- /** Total duration of menu-surface open animation. */
3068
- TRANSITION_OPEN_DURATION: 120,
3069
- /** Total duration of menu-surface close animation. */
3070
- TRANSITION_CLOSE_DURATION: 75,
3071
- /**
3072
- * Margin left to the edge of the viewport when menu-surface is at maximum
3073
- * possible height. Also used as a viewport margin.
3074
- */
3075
- MARGIN_TO_EDGE: 32,
3076
- /**
3077
- * Ratio of anchor width to menu-surface width for switching from corner
3078
- * positioning to center positioning.
3079
- */
3080
- ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: 0.67,
3081
- /**
3082
- * Amount of time to wait before restoring focus when closing the menu
3083
- * surface. This is important because if a touch event triggered the menu
3084
- * close, and the subsequent mouse event occurs after focus is restored, then
3085
- * the restored focus would be lost.
3086
- */
3087
- TOUCH_EVENT_WAIT_MS: 30,
3088
- };
3089
- /**
3090
- * Enum for bits in the {@see Corner) bitmap.
3091
- */
3092
- var CornerBit;
3093
- (function (CornerBit) {
3094
- CornerBit[CornerBit["BOTTOM"] = 1] = "BOTTOM";
3095
- CornerBit[CornerBit["CENTER"] = 2] = "CENTER";
3096
- CornerBit[CornerBit["RIGHT"] = 4] = "RIGHT";
3097
- CornerBit[CornerBit["FLIP_RTL"] = 8] = "FLIP_RTL";
3098
- })(CornerBit || (CornerBit = {}));
3099
- /**
3100
- * Enum for representing an element corner for positioning the menu-surface.
3101
- *
3102
- * The START constants map to LEFT if element directionality is left
3103
- * to right and RIGHT if the directionality is right to left.
3104
- * Likewise END maps to RIGHT or LEFT depending on the directionality.
3105
- */
3106
- var Corner;
3107
- (function (Corner) {
3108
- Corner[Corner["TOP_LEFT"] = 0] = "TOP_LEFT";
3109
- Corner[Corner["TOP_RIGHT"] = 4] = "TOP_RIGHT";
3110
- Corner[Corner["BOTTOM_LEFT"] = 1] = "BOTTOM_LEFT";
3111
- Corner[Corner["BOTTOM_RIGHT"] = 5] = "BOTTOM_RIGHT";
3112
- Corner[Corner["TOP_START"] = 8] = "TOP_START";
3113
- Corner[Corner["TOP_END"] = 12] = "TOP_END";
3114
- Corner[Corner["BOTTOM_START"] = 9] = "BOTTOM_START";
3115
- Corner[Corner["BOTTOM_END"] = 13] = "BOTTOM_END";
3116
- })(Corner || (Corner = {}));
3117
-
3118
- /**
3119
- * @license
3120
- * Copyright 2018 Google Inc.
3121
- *
3122
- * Permission is hereby granted, free of charge, to any person obtaining a copy
3123
- * of this software and associated documentation files (the "Software"), to deal
3124
- * in the Software without restriction, including without limitation the rights
3125
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3126
- * copies of the Software, and to permit persons to whom the Software is
3127
- * furnished to do so, subject to the following conditions:
3128
- *
3129
- * The above copyright notice and this permission notice shall be included in
3130
- * all copies or substantial portions of the Software.
3131
- *
3132
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3133
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3134
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3135
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3136
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3137
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3138
- * THE SOFTWARE.
3139
- */
3140
- var MDCMenuSurfaceFoundation = /** @class */ (function (_super) {
3141
- component$1.__extends(MDCMenuSurfaceFoundation, _super);
3142
- function MDCMenuSurfaceFoundation(adapter) {
3143
- var _this = _super.call(this, component$1.__assign(component$1.__assign({}, MDCMenuSurfaceFoundation.defaultAdapter), adapter)) || this;
3144
- _this.isSurfaceOpen = false;
3145
- _this.isQuickOpen = false;
3146
- _this.isHoistedElement = false;
3147
- _this.isFixedPosition = false;
3148
- _this.isHorizontallyCenteredOnViewport = false;
3149
- _this.maxHeight = 0;
3150
- _this.openAnimationEndTimerId = 0;
3151
- _this.closeAnimationEndTimerId = 0;
3152
- _this.animationRequestId = 0;
3153
- _this.anchorCorner = Corner.TOP_START;
3154
- /**
3155
- * Corner of the menu surface to which menu surface is attached to anchor.
3156
- *
3157
- * Anchor corner --->+----------+
3158
- * | ANCHOR |
3159
- * +----------+
3160
- * Origin corner --->+--------------+
3161
- * | |
3162
- * | |
3163
- * | MENU SURFACE |
3164
- * | |
3165
- * | |
3166
- * +--------------+
3167
- */
3168
- _this.originCorner = Corner.TOP_START;
3169
- _this.anchorMargin = { top: 0, right: 0, bottom: 0, left: 0 };
3170
- _this.position = { x: 0, y: 0 };
3171
- return _this;
3172
- }
3173
- Object.defineProperty(MDCMenuSurfaceFoundation, "cssClasses", {
3174
- get: function () {
3175
- return cssClasses$1;
3176
- },
3177
- enumerable: false,
3178
- configurable: true
3179
- });
3180
- Object.defineProperty(MDCMenuSurfaceFoundation, "strings", {
3181
- get: function () {
3182
- return strings$1;
3183
- },
3184
- enumerable: false,
3185
- configurable: true
3186
- });
3187
- Object.defineProperty(MDCMenuSurfaceFoundation, "numbers", {
3188
- get: function () {
3189
- return numbers$1;
3190
- },
3191
- enumerable: false,
3192
- configurable: true
3193
- });
3194
- Object.defineProperty(MDCMenuSurfaceFoundation, "Corner", {
3195
- get: function () {
3196
- return Corner;
3197
- },
3198
- enumerable: false,
3199
- configurable: true
3200
- });
3201
- Object.defineProperty(MDCMenuSurfaceFoundation, "defaultAdapter", {
3202
- /**
3203
- * @see {@link MDCMenuSurfaceAdapter} for typing information on parameters and return types.
3204
- */
3205
- get: function () {
3206
- // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
3207
- return {
3208
- addClass: function () { return undefined; },
3209
- removeClass: function () { return undefined; },
3210
- hasClass: function () { return false; },
3211
- hasAnchor: function () { return false; },
3212
- isElementInContainer: function () { return false; },
3213
- isFocused: function () { return false; },
3214
- isRtl: function () { return false; },
3215
- getInnerDimensions: function () { return ({ height: 0, width: 0 }); },
3216
- getAnchorDimensions: function () { return null; },
3217
- getWindowDimensions: function () { return ({ height: 0, width: 0 }); },
3218
- getBodyDimensions: function () { return ({ height: 0, width: 0 }); },
3219
- getWindowScroll: function () { return ({ x: 0, y: 0 }); },
3220
- setPosition: function () { return undefined; },
3221
- setMaxHeight: function () { return undefined; },
3222
- setTransformOrigin: function () { return undefined; },
3223
- saveFocus: function () { return undefined; },
3224
- restoreFocus: function () { return undefined; },
3225
- notifyClose: function () { return undefined; },
3226
- notifyOpen: function () { return undefined; },
3227
- notifyClosing: function () { return undefined; },
3228
- };
3229
- // tslint:enable:object-literal-sort-keys
3230
- },
3231
- enumerable: false,
3232
- configurable: true
3233
- });
3234
- MDCMenuSurfaceFoundation.prototype.init = function () {
3235
- var _a = MDCMenuSurfaceFoundation.cssClasses, ROOT = _a.ROOT, OPEN = _a.OPEN;
3236
- if (!this.adapter.hasClass(ROOT)) {
3237
- throw new Error(ROOT + " class required in root element.");
3238
- }
3239
- if (this.adapter.hasClass(OPEN)) {
3240
- this.isSurfaceOpen = true;
3241
- }
3242
- };
3243
- MDCMenuSurfaceFoundation.prototype.destroy = function () {
3244
- clearTimeout(this.openAnimationEndTimerId);
3245
- clearTimeout(this.closeAnimationEndTimerId);
3246
- // Cancel any currently running animations.
3247
- cancelAnimationFrame(this.animationRequestId);
3248
- };
3249
- /**
3250
- * @param corner Default anchor corner alignment of top-left menu surface
3251
- * corner.
3252
- */
3253
- MDCMenuSurfaceFoundation.prototype.setAnchorCorner = function (corner) {
3254
- this.anchorCorner = corner;
3255
- };
3256
- /**
3257
- * Flip menu corner horizontally.
3258
- */
3259
- MDCMenuSurfaceFoundation.prototype.flipCornerHorizontally = function () {
3260
- this.originCorner = this.originCorner ^ CornerBit.RIGHT;
3261
- };
3262
- /**
3263
- * @param margin Set of margin values from anchor.
3264
- */
3265
- MDCMenuSurfaceFoundation.prototype.setAnchorMargin = function (margin) {
3266
- this.anchorMargin.top = margin.top || 0;
3267
- this.anchorMargin.right = margin.right || 0;
3268
- this.anchorMargin.bottom = margin.bottom || 0;
3269
- this.anchorMargin.left = margin.left || 0;
3270
- };
3271
- /** Used to indicate if the menu-surface is hoisted to the body. */
3272
- MDCMenuSurfaceFoundation.prototype.setIsHoisted = function (isHoisted) {
3273
- this.isHoistedElement = isHoisted;
3274
- };
3275
- /**
3276
- * Used to set the menu-surface calculations based on a fixed position menu.
3277
- */
3278
- MDCMenuSurfaceFoundation.prototype.setFixedPosition = function (isFixedPosition) {
3279
- this.isFixedPosition = isFixedPosition;
3280
- };
3281
- /**
3282
- * @return Returns true if menu is in fixed (`position: fixed`) position.
3283
- */
3284
- MDCMenuSurfaceFoundation.prototype.isFixed = function () {
3285
- return this.isFixedPosition;
3286
- };
3287
- /** Sets the menu-surface position on the page. */
3288
- MDCMenuSurfaceFoundation.prototype.setAbsolutePosition = function (x, y) {
3289
- this.position.x = this.isFinite(x) ? x : 0;
3290
- this.position.y = this.isFinite(y) ? y : 0;
3291
- };
3292
- /** Sets whether menu-surface should be horizontally centered to viewport. */
3293
- MDCMenuSurfaceFoundation.prototype.setIsHorizontallyCenteredOnViewport = function (isCentered) {
3294
- this.isHorizontallyCenteredOnViewport = isCentered;
3295
- };
3296
- MDCMenuSurfaceFoundation.prototype.setQuickOpen = function (quickOpen) {
3297
- this.isQuickOpen = quickOpen;
3298
- };
3299
- /**
3300
- * Sets maximum menu-surface height on open.
3301
- * @param maxHeight The desired max-height. Set to 0 (default) to
3302
- * automatically calculate max height based on available viewport space.
3303
- */
3304
- MDCMenuSurfaceFoundation.prototype.setMaxHeight = function (maxHeight) {
3305
- this.maxHeight = maxHeight;
3306
- };
3307
- MDCMenuSurfaceFoundation.prototype.isOpen = function () {
3308
- return this.isSurfaceOpen;
3309
- };
3310
- /**
3311
- * Open the menu surface.
3312
- */
3313
- MDCMenuSurfaceFoundation.prototype.open = function () {
3314
- var _this = this;
3315
- if (this.isSurfaceOpen) {
3316
- return;
3317
- }
3318
- this.adapter.saveFocus();
3319
- if (this.isQuickOpen) {
3320
- this.isSurfaceOpen = true;
3321
- this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3322
- this.dimensions = this.adapter.getInnerDimensions();
3323
- this.autoposition();
3324
- this.adapter.notifyOpen();
3325
- }
3326
- else {
3327
- this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_OPEN);
3328
- this.animationRequestId = requestAnimationFrame(function () {
3329
- _this.dimensions = _this.adapter.getInnerDimensions();
3330
- _this.autoposition();
3331
- _this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3332
- _this.openAnimationEndTimerId = setTimeout(function () {
3333
- _this.openAnimationEndTimerId = 0;
3334
- _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_OPEN);
3335
- _this.adapter.notifyOpen();
3336
- }, numbers$1.TRANSITION_OPEN_DURATION);
3337
- });
3338
- this.isSurfaceOpen = true;
3339
- }
3340
- };
3341
- /**
3342
- * Closes the menu surface.
3343
- */
3344
- MDCMenuSurfaceFoundation.prototype.close = function (skipRestoreFocus) {
3345
- var _this = this;
3346
- if (skipRestoreFocus === void 0) { skipRestoreFocus = false; }
3347
- if (!this.isSurfaceOpen) {
3348
- return;
3349
- }
3350
- this.adapter.notifyClosing();
3351
- if (this.isQuickOpen) {
3352
- this.isSurfaceOpen = false;
3353
- if (!skipRestoreFocus) {
3354
- this.maybeRestoreFocus();
3355
- }
3356
- this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3357
- this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW);
3358
- this.adapter.notifyClose();
3359
- return;
3360
- }
3361
- this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_CLOSED);
3362
- requestAnimationFrame(function () {
3363
- _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.OPEN);
3364
- _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW);
3365
- _this.closeAnimationEndTimerId = setTimeout(function () {
3366
- _this.closeAnimationEndTimerId = 0;
3367
- _this.adapter.removeClass(MDCMenuSurfaceFoundation.cssClasses.ANIMATING_CLOSED);
3368
- _this.adapter.notifyClose();
3369
- }, numbers$1.TRANSITION_CLOSE_DURATION);
3370
- });
3371
- this.isSurfaceOpen = false;
3372
- if (!skipRestoreFocus) {
3373
- this.maybeRestoreFocus();
3374
- }
3375
- };
3376
- /** Handle clicks and close if not within menu-surface element. */
3377
- MDCMenuSurfaceFoundation.prototype.handleBodyClick = function (evt) {
3378
- var el = evt.target;
3379
- if (this.adapter.isElementInContainer(el)) {
3380
- return;
3381
- }
3382
- this.close();
3383
- };
3384
- /** Handle keys that close the surface. */
3385
- MDCMenuSurfaceFoundation.prototype.handleKeydown = function (evt) {
3386
- var keyCode = evt.keyCode, key = evt.key;
3387
- var isEscape = key === 'Escape' || keyCode === 27;
3388
- if (isEscape) {
3389
- this.close();
3390
- }
3391
- };
3392
- MDCMenuSurfaceFoundation.prototype.autoposition = function () {
3393
- var _a;
3394
- // Compute measurements for autoposition methods reuse.
3395
- this.measurements = this.getAutoLayoutmeasurements();
3396
- var corner = this.getoriginCorner();
3397
- var maxMenuSurfaceHeight = this.getMenuSurfaceMaxHeight(corner);
3398
- var verticalAlignment = this.hasBit(corner, CornerBit.BOTTOM) ? 'bottom' : 'top';
3399
- var horizontalAlignment = this.hasBit(corner, CornerBit.RIGHT) ? 'right' : 'left';
3400
- var horizontalOffset = this.getHorizontalOriginOffset(corner);
3401
- var verticalOffset = this.getVerticalOriginOffset(corner);
3402
- var _b = this.measurements, anchorSize = _b.anchorSize, surfaceSize = _b.surfaceSize;
3403
- var position = (_a = {},
3404
- _a[horizontalAlignment] = horizontalOffset,
3405
- _a[verticalAlignment] = verticalOffset,
3406
- _a);
3407
- // Center align when anchor width is comparable or greater than menu
3408
- // surface, otherwise keep corner.
3409
- if (anchorSize.width / surfaceSize.width >
3410
- numbers$1.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO) {
3411
- horizontalAlignment = 'center';
3412
- }
3413
- // If the menu-surface has been hoisted to the body, it's no longer relative
3414
- // to the anchor element
3415
- if (this.isHoistedElement || this.isFixedPosition) {
3416
- this.adjustPositionForHoistedElement(position);
3417
- }
3418
- this.adapter.setTransformOrigin(horizontalAlignment + " " + verticalAlignment);
3419
- this.adapter.setPosition(position);
3420
- this.adapter.setMaxHeight(maxMenuSurfaceHeight ? maxMenuSurfaceHeight + 'px' : '');
3421
- // If it is opened from the top then add is-open-below class
3422
- if (!this.hasBit(corner, CornerBit.BOTTOM)) {
3423
- this.adapter.addClass(MDCMenuSurfaceFoundation.cssClasses.IS_OPEN_BELOW);
3424
- }
3425
- };
3426
- /**
3427
- * @return Measurements used to position menu surface popup.
3428
- */
3429
- MDCMenuSurfaceFoundation.prototype.getAutoLayoutmeasurements = function () {
3430
- var anchorRect = this.adapter.getAnchorDimensions();
3431
- var bodySize = this.adapter.getBodyDimensions();
3432
- var viewportSize = this.adapter.getWindowDimensions();
3433
- var windowScroll = this.adapter.getWindowScroll();
3434
- if (!anchorRect) {
3435
- // tslint:disable:object-literal-sort-keys Positional properties are more readable when they're grouped together
3436
- anchorRect = {
3437
- top: this.position.y,
3438
- right: this.position.x,
3439
- bottom: this.position.y,
3440
- left: this.position.x,
3441
- width: 0,
3442
- height: 0,
3443
- };
3444
- // tslint:enable:object-literal-sort-keys
3445
- }
3446
- return {
3447
- anchorSize: anchorRect,
3448
- bodySize: bodySize,
3449
- surfaceSize: this.dimensions,
3450
- viewportDistance: {
3451
- // tslint:disable:object-literal-sort-keys Positional properties are more readable when they're grouped together
3452
- top: anchorRect.top,
3453
- right: viewportSize.width - anchorRect.right,
3454
- bottom: viewportSize.height - anchorRect.bottom,
3455
- left: anchorRect.left,
3456
- // tslint:enable:object-literal-sort-keys
3457
- },
3458
- viewportSize: viewportSize,
3459
- windowScroll: windowScroll,
3460
- };
3461
- };
3462
- /**
3463
- * Computes the corner of the anchor from which to animate and position the
3464
- * menu surface.
3465
- *
3466
- * Only LEFT or RIGHT bit is used to position the menu surface ignoring RTL
3467
- * context. E.g., menu surface will be positioned from right side on TOP_END.
3468
- */
3469
- MDCMenuSurfaceFoundation.prototype.getoriginCorner = function () {
3470
- var corner = this.originCorner;
3471
- var _a = this.measurements, viewportDistance = _a.viewportDistance, anchorSize = _a.anchorSize, surfaceSize = _a.surfaceSize;
3472
- var MARGIN_TO_EDGE = MDCMenuSurfaceFoundation.numbers.MARGIN_TO_EDGE;
3473
- var isAnchoredToBottom = this.hasBit(this.anchorCorner, CornerBit.BOTTOM);
3474
- var availableTop;
3475
- var availableBottom;
3476
- if (isAnchoredToBottom) {
3477
- availableTop =
3478
- viewportDistance.top - MARGIN_TO_EDGE + this.anchorMargin.bottom;
3479
- availableBottom =
3480
- viewportDistance.bottom - MARGIN_TO_EDGE - this.anchorMargin.bottom;
3481
- }
3482
- else {
3483
- availableTop =
3484
- viewportDistance.top - MARGIN_TO_EDGE + this.anchorMargin.top;
3485
- availableBottom = viewportDistance.bottom - MARGIN_TO_EDGE +
3486
- anchorSize.height - this.anchorMargin.top;
3487
- }
3488
- var isAvailableBottom = availableBottom - surfaceSize.height > 0;
3489
- if (!isAvailableBottom && availableTop > availableBottom) {
3490
- // Attach bottom side of surface to the anchor.
3491
- corner = this.setBit(corner, CornerBit.BOTTOM);
3492
- }
3493
- var isRtl = this.adapter.isRtl();
3494
- var isFlipRtl = this.hasBit(this.anchorCorner, CornerBit.FLIP_RTL);
3495
- var hasRightBit = this.hasBit(this.anchorCorner, CornerBit.RIGHT) ||
3496
- this.hasBit(corner, CornerBit.RIGHT);
3497
- // Whether surface attached to right side of anchor element.
3498
- var isAnchoredToRight = false;
3499
- // Anchored to start
3500
- if (isRtl && isFlipRtl) {
3501
- isAnchoredToRight = !hasRightBit;
3502
- }
3503
- else {
3504
- // Anchored to right
3505
- isAnchoredToRight = hasRightBit;
3506
- }
3507
- var availableLeft;
3508
- var availableRight;
3509
- if (isAnchoredToRight) {
3510
- availableLeft =
3511
- viewportDistance.left + anchorSize.width + this.anchorMargin.right;
3512
- availableRight = viewportDistance.right - this.anchorMargin.right;
3513
- }
3514
- else {
3515
- availableLeft = viewportDistance.left + this.anchorMargin.left;
3516
- availableRight =
3517
- viewportDistance.right + anchorSize.width - this.anchorMargin.left;
3518
- }
3519
- var isAvailableLeft = availableLeft - surfaceSize.width > 0;
3520
- var isAvailableRight = availableRight - surfaceSize.width > 0;
3521
- var isOriginCornerAlignedToEnd = this.hasBit(corner, CornerBit.FLIP_RTL) &&
3522
- this.hasBit(corner, CornerBit.RIGHT);
3523
- if (isAvailableRight && isOriginCornerAlignedToEnd && isRtl ||
3524
- !isAvailableLeft && isOriginCornerAlignedToEnd) {
3525
- // Attach left side of surface to the anchor.
3526
- corner = this.unsetBit(corner, CornerBit.RIGHT);
3527
- }
3528
- else if (isAvailableLeft && isAnchoredToRight && isRtl ||
3529
- (isAvailableLeft && !isAnchoredToRight && hasRightBit) ||
3530
- (!isAvailableRight && availableLeft >= availableRight)) {
3531
- // Attach right side of surface to the anchor.
3532
- corner = this.setBit(corner, CornerBit.RIGHT);
3533
- }
3534
- return corner;
3535
- };
3536
- /**
3537
- * @param corner Origin corner of the menu surface.
3538
- * @return Maximum height of the menu surface, based on available space. 0
3539
- * indicates should not be set.
3540
- */
3541
- MDCMenuSurfaceFoundation.prototype.getMenuSurfaceMaxHeight = function (corner) {
3542
- if (this.maxHeight > 0) {
3543
- return this.maxHeight;
3544
- }
3545
- var viewportDistance = this.measurements.viewportDistance;
3546
- var maxHeight = 0;
3547
- var isBottomAligned = this.hasBit(corner, CornerBit.BOTTOM);
3548
- var isBottomAnchored = this.hasBit(this.anchorCorner, CornerBit.BOTTOM);
3549
- var MARGIN_TO_EDGE = MDCMenuSurfaceFoundation.numbers.MARGIN_TO_EDGE;
3550
- // When maximum height is not specified, it is handled from CSS.
3551
- if (isBottomAligned) {
3552
- maxHeight = viewportDistance.top + this.anchorMargin.top - MARGIN_TO_EDGE;
3553
- if (!isBottomAnchored) {
3554
- maxHeight += this.measurements.anchorSize.height;
3555
- }
3556
- }
3557
- else {
3558
- maxHeight = viewportDistance.bottom - this.anchorMargin.bottom +
3559
- this.measurements.anchorSize.height - MARGIN_TO_EDGE;
3560
- if (isBottomAnchored) {
3561
- maxHeight -= this.measurements.anchorSize.height;
3562
- }
3563
- }
3564
- return maxHeight;
3565
- };
3566
- /**
3567
- * @param corner Origin corner of the menu surface.
3568
- * @return Horizontal offset of menu surface origin corner from corresponding
3569
- * anchor corner.
3570
- */
3571
- MDCMenuSurfaceFoundation.prototype.getHorizontalOriginOffset = function (corner) {
3572
- var anchorSize = this.measurements.anchorSize;
3573
- // isRightAligned corresponds to using the 'right' property on the surface.
3574
- var isRightAligned = this.hasBit(corner, CornerBit.RIGHT);
3575
- var avoidHorizontalOverlap = this.hasBit(this.anchorCorner, CornerBit.RIGHT);
3576
- if (isRightAligned) {
3577
- var rightOffset = avoidHorizontalOverlap ?
3578
- anchorSize.width - this.anchorMargin.left :
3579
- this.anchorMargin.right;
3580
- // For hoisted or fixed elements, adjust the offset by the difference
3581
- // between viewport width and body width so when we calculate the right
3582
- // value (`adjustPositionForHoistedElement`) based on the element
3583
- // position, the right property is correct.
3584
- if (this.isHoistedElement || this.isFixedPosition) {
3585
- return rightOffset -
3586
- (this.measurements.viewportSize.width -
3587
- this.measurements.bodySize.width);
3588
- }
3589
- return rightOffset;
3590
- }
3591
- return avoidHorizontalOverlap ? anchorSize.width - this.anchorMargin.right :
3592
- this.anchorMargin.left;
3593
- };
3594
- /**
3595
- * @param corner Origin corner of the menu surface.
3596
- * @return Vertical offset of menu surface origin corner from corresponding
3597
- * anchor corner.
3598
- */
3599
- MDCMenuSurfaceFoundation.prototype.getVerticalOriginOffset = function (corner) {
3600
- var anchorSize = this.measurements.anchorSize;
3601
- var isBottomAligned = this.hasBit(corner, CornerBit.BOTTOM);
3602
- var avoidVerticalOverlap = this.hasBit(this.anchorCorner, CornerBit.BOTTOM);
3603
- var y = 0;
3604
- if (isBottomAligned) {
3605
- y = avoidVerticalOverlap ? anchorSize.height - this.anchorMargin.top :
3606
- -this.anchorMargin.bottom;
3607
- }
3608
- else {
3609
- y = avoidVerticalOverlap ?
3610
- (anchorSize.height + this.anchorMargin.bottom) :
3611
- this.anchorMargin.top;
3612
- }
3613
- return y;
3614
- };
3615
- /**
3616
- * Calculates the offsets for positioning the menu-surface when the
3617
- * menu-surface has been hoisted to the body.
3618
- */
3619
- MDCMenuSurfaceFoundation.prototype.adjustPositionForHoistedElement = function (position) {
3620
- var e_1, _a;
3621
- var _b = this.measurements, windowScroll = _b.windowScroll, viewportDistance = _b.viewportDistance, surfaceSize = _b.surfaceSize, viewportSize = _b.viewportSize;
3622
- var props = Object.keys(position);
3623
- try {
3624
- for (var props_1 = component$1.__values(props), props_1_1 = props_1.next(); !props_1_1.done; props_1_1 = props_1.next()) {
3625
- var prop = props_1_1.value;
3626
- var value = position[prop] || 0;
3627
- if (this.isHorizontallyCenteredOnViewport &&
3628
- (prop === 'left' || prop === 'right')) {
3629
- position[prop] = (viewportSize.width - surfaceSize.width) / 2;
3630
- continue;
3631
- }
3632
- // Hoisted surfaces need to have the anchor elements location on the page
3633
- // added to the position properties for proper alignment on the body.
3634
- value += viewportDistance[prop];
3635
- // Surfaces that are absolutely positioned need to have additional
3636
- // calculations for scroll and bottom positioning.
3637
- if (!this.isFixedPosition) {
3638
- if (prop === 'top') {
3639
- value += windowScroll.y;
3640
- }
3641
- else if (prop === 'bottom') {
3642
- value -= windowScroll.y;
3643
- }
3644
- else if (prop === 'left') {
3645
- value += windowScroll.x;
3646
- }
3647
- else { // prop === 'right'
3648
- value -= windowScroll.x;
3649
- }
3650
- }
3651
- position[prop] = value;
3652
- }
3653
- }
3654
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3655
- finally {
3656
- try {
3657
- if (props_1_1 && !props_1_1.done && (_a = props_1.return)) _a.call(props_1);
3658
- }
3659
- finally { if (e_1) throw e_1.error; }
3660
- }
3661
- };
3662
- /**
3663
- * The last focused element when the menu surface was opened should regain
3664
- * focus, if the user is focused on or within the menu surface when it is
3665
- * closed.
3666
- */
3667
- MDCMenuSurfaceFoundation.prototype.maybeRestoreFocus = function () {
3668
- var _this = this;
3669
- var isRootFocused = this.adapter.isFocused();
3670
- var childHasFocus = document.activeElement &&
3671
- this.adapter.isElementInContainer(document.activeElement);
3672
- if (isRootFocused || childHasFocus) {
3673
- // Wait before restoring focus when closing the menu surface. This is
3674
- // important because if a touch event triggered the menu close, and the
3675
- // subsequent mouse event occurs after focus is restored, then the
3676
- // restored focus would be lost.
3677
- setTimeout(function () {
3678
- _this.adapter.restoreFocus();
3679
- }, numbers$1.TOUCH_EVENT_WAIT_MS);
3680
- }
3681
- };
3682
- MDCMenuSurfaceFoundation.prototype.hasBit = function (corner, bit) {
3683
- return Boolean(corner & bit); // tslint:disable-line:no-bitwise
3684
- };
3685
- MDCMenuSurfaceFoundation.prototype.setBit = function (corner, bit) {
3686
- return corner | bit; // tslint:disable-line:no-bitwise
3687
- };
3688
- MDCMenuSurfaceFoundation.prototype.unsetBit = function (corner, bit) {
3689
- return corner ^ bit;
3690
- };
3691
- /**
3692
- * isFinite that doesn't force conversion to number type.
3693
- * Equivalent to Number.isFinite in ES2015, which is not supported in IE.
3694
- */
3695
- MDCMenuSurfaceFoundation.prototype.isFinite = function (num) {
3696
- return typeof num === 'number' && isFinite(num);
3697
- };
3698
- return MDCMenuSurfaceFoundation;
3699
- }(component$1.MDCFoundation));
3700
-
3701
- /**
3702
- * @license
3703
- * Copyright 2018 Google Inc.
3704
- *
3705
- * Permission is hereby granted, free of charge, to any person obtaining a copy
3706
- * of this software and associated documentation files (the "Software"), to deal
3707
- * in the Software without restriction, including without limitation the rights
3708
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3709
- * copies of the Software, and to permit persons to whom the Software is
3710
- * furnished to do so, subject to the following conditions:
3711
- *
3712
- * The above copyright notice and this permission notice shall be included in
3713
- * all copies or substantial portions of the Software.
3714
- *
3715
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3716
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3717
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3718
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3719
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3720
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3721
- * THE SOFTWARE.
3722
- */
3723
- var MDCMenuSurface = /** @class */ (function (_super) {
3724
- component$1.__extends(MDCMenuSurface, _super);
3725
- function MDCMenuSurface() {
3726
- return _super !== null && _super.apply(this, arguments) || this;
3727
- }
3728
- MDCMenuSurface.attachTo = function (root) {
3729
- return new MDCMenuSurface(root);
3730
- };
3731
- MDCMenuSurface.prototype.initialSyncWithDOM = function () {
3732
- var _this = this;
3733
- var parentEl = this.root.parentElement;
3734
- this.anchorElement = parentEl && parentEl.classList.contains(cssClasses$1.ANCHOR) ? parentEl : null;
3735
- if (this.root.classList.contains(cssClasses$1.FIXED)) {
3736
- this.setFixedPosition(true);
3737
- }
3738
- this.handleKeydown = function (event) {
3739
- _this.foundation.handleKeydown(event);
3740
- };
3741
- this.handleBodyClick = function (event) {
3742
- _this.foundation.handleBodyClick(event);
3743
- };
3744
- // capture so that no race between handleBodyClick and quickOpen when
3745
- // menusurface opened on button click which registers this listener
3746
- this.registerBodyClickListener = function () {
3747
- document.body.addEventListener('click', _this.handleBodyClick, { capture: true });
3748
- };
3749
- this.deregisterBodyClickListener = function () {
3750
- document.body.removeEventListener('click', _this.handleBodyClick, { capture: true });
3751
- };
3752
- this.listen('keydown', this.handleKeydown);
3753
- this.listen(strings$1.OPENED_EVENT, this.registerBodyClickListener);
3754
- this.listen(strings$1.CLOSED_EVENT, this.deregisterBodyClickListener);
3755
- };
3756
- MDCMenuSurface.prototype.destroy = function () {
3757
- this.unlisten('keydown', this.handleKeydown);
3758
- this.unlisten(strings$1.OPENED_EVENT, this.registerBodyClickListener);
3759
- this.unlisten(strings$1.CLOSED_EVENT, this.deregisterBodyClickListener);
3760
- _super.prototype.destroy.call(this);
3761
- };
3762
- MDCMenuSurface.prototype.isOpen = function () {
3763
- return this.foundation.isOpen();
3764
- };
3765
- MDCMenuSurface.prototype.open = function () {
3766
- this.foundation.open();
3767
- };
3768
- MDCMenuSurface.prototype.close = function (skipRestoreFocus) {
3769
- if (skipRestoreFocus === void 0) { skipRestoreFocus = false; }
3770
- this.foundation.close(skipRestoreFocus);
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;
871
+ }
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;
880
+ }
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();
3771
891
  };
3772
- Object.defineProperty(MDCMenuSurface.prototype, "quickOpen", {
3773
- set: function (quickOpen) {
3774
- this.foundation.setQuickOpen(quickOpen);
3775
- },
3776
- enumerable: false,
3777
- configurable: true
3778
- });
3779
- /** Sets the foundation to use page offsets for an positioning when the menu is hoisted to the body. */
3780
- MDCMenuSurface.prototype.setIsHoisted = function (isHoisted) {
3781
- this.foundation.setIsHoisted(isHoisted);
892
+ this.onSelect = (event) => {
893
+ event.stopPropagation();
894
+ this.handleSelect(event.detail);
3782
895
  };
3783
- /** Sets the element that the menu-surface is anchored to. */
3784
- MDCMenuSurface.prototype.setMenuSurfaceAnchorElement = function (element) {
3785
- this.anchorElement = element;
896
+ this.setListElement = (element) => {
897
+ this.list = element;
3786
898
  };
3787
- /** Sets the menu-surface to position: fixed. */
3788
- MDCMenuSurface.prototype.setFixedPosition = function (isFixed) {
3789
- if (isFixed) {
3790
- this.root.classList.add(cssClasses$1.FIXED);
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);
3791
910
  }
3792
- else {
3793
- this.root.classList.remove(cssClasses$1.FIXED);
911
+ else if (this.list) {
912
+ const observer = new IntersectionObserver(() => {
913
+ observer.unobserve(this.list);
914
+ this.focusMenuItem();
915
+ });
916
+ observer.observe(this.list);
3794
917
  }
3795
- this.foundation.setFixedPosition(isFixed);
918
+ }, 0);
3796
919
  };
3797
- /** Sets the absolute x/y position to position based on. Requires the menu to be hoisted. */
3798
- MDCMenuSurface.prototype.setAbsolutePosition = function (x, y) {
3799
- this.foundation.setAbsolutePosition(x, y);
3800
- this.setIsHoisted(true);
920
+ this.setSearchElement = (element) => {
921
+ this.searchInput = element;
3801
922
  };
3802
- /**
3803
- * @param corner Default anchor corner alignment of top-left surface corner.
3804
- */
3805
- MDCMenuSurface.prototype.setAnchorCorner = function (corner) {
3806
- this.foundation.setAnchorCorner(corner);
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();
3807
934
  };
3808
- MDCMenuSurface.prototype.setAnchorMargin = function (margin) {
3809
- this.foundation.setAnchorMargin(margin);
935
+ this.renderNotificationBadge = () => {
936
+ if (this.items.some(this.hasNotificationBadge)) {
937
+ return index.h("limel-badge", null);
938
+ }
3810
939
  };
3811
- MDCMenuSurface.prototype.getDefaultFoundation = function () {
3812
- var _this = this;
3813
- // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>.
3814
- // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.
3815
- // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
3816
- var adapter = {
3817
- addClass: function (className) { return _this.root.classList.add(className); },
3818
- removeClass: function (className) { return _this.root.classList.remove(className); },
3819
- hasClass: function (className) { return _this.root.classList.contains(className); },
3820
- hasAnchor: function () { return !!_this.anchorElement; },
3821
- notifyClose: function () {
3822
- return _this.emit(MDCMenuSurfaceFoundation.strings.CLOSED_EVENT, {});
3823
- },
3824
- notifyClosing: function () {
3825
- _this.emit(MDCMenuSurfaceFoundation.strings.CLOSING_EVENT, {});
3826
- },
3827
- notifyOpen: function () {
3828
- return _this.emit(MDCMenuSurfaceFoundation.strings.OPENED_EVENT, {});
3829
- },
3830
- isElementInContainer: function (el) { return _this.root.contains(el); },
3831
- isRtl: function () {
3832
- return getComputedStyle(_this.root).getPropertyValue('direction') === 'rtl';
3833
- },
3834
- setTransformOrigin: function (origin) {
3835
- var propertyName = util.getCorrectPropertyName(window, 'transform') + "-origin";
3836
- _this.root.style.setProperty(propertyName, origin);
3837
- },
3838
- isFocused: function () { return document.activeElement === _this.root; },
3839
- saveFocus: function () {
3840
- _this.previousFocus =
3841
- document.activeElement;
3842
- },
3843
- restoreFocus: function () {
3844
- if (_this.root.contains(document.activeElement)) {
3845
- if (_this.previousFocus && _this.previousFocus.focus) {
3846
- _this.previousFocus.focus();
3847
- }
3848
- }
3849
- },
3850
- getInnerDimensions: function () {
3851
- return {
3852
- width: _this.root.offsetWidth,
3853
- height: _this.root.offsetHeight
3854
- };
3855
- },
3856
- getAnchorDimensions: function () { return _this.anchorElement ?
3857
- _this.anchorElement.getBoundingClientRect() :
3858
- null; },
3859
- getWindowDimensions: function () {
3860
- return { width: window.innerWidth, height: window.innerHeight };
3861
- },
3862
- getBodyDimensions: function () {
3863
- return { width: document.body.clientWidth, height: document.body.clientHeight };
3864
- },
3865
- getWindowScroll: function () {
3866
- return { x: window.pageXOffset, y: window.pageYOffset };
3867
- },
3868
- setPosition: function (position) {
3869
- var rootHTML = _this.root;
3870
- rootHTML.style.left = 'left' in position ? position.left + "px" : '';
3871
- rootHTML.style.right = 'right' in position ? position.right + "px" : '';
3872
- rootHTML.style.top = 'top' in position ? position.top + "px" : '';
3873
- rootHTML.style.bottom =
3874
- 'bottom' in position ? position.bottom + "px" : '';
3875
- },
3876
- setMaxHeight: function (height) {
3877
- _this.root.style.maxHeight = height;
3878
- },
3879
- };
3880
- // tslint:enable:object-literal-sort-keys
3881
- return new MDCMenuSurfaceFoundation(adapter);
940
+ this.hasNotificationBadge = (item) => this.isMenuItem(item) && item.badge !== undefined;
941
+ this.setTriggerRef = (elm) => {
942
+ this.triggerElement = elm;
3882
943
  };
3883
- return MDCMenuSurface;
3884
- }(component$1.MDCComponent));
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;
3885
1058
 
3886
1059
  /**
3887
1060
  * @license
@@ -4038,7 +1211,7 @@ var MDCMenuFoundation = /** @class */ (function (_super) {
4038
1211
  _this.adapter.isSelectableItemAtIndex(recomputedIndex)) {
4039
1212
  _this.setSelectedIndex(recomputedIndex);
4040
1213
  }
4041
- }, MDCMenuSurfaceFoundation.numbers.TRANSITION_CLOSE_DURATION);
1214
+ }, component$2.MDCMenuSurfaceFoundation.numbers.TRANSITION_CLOSE_DURATION);
4042
1215
  };
4043
1216
  MDCMenuFoundation.prototype.handleMenuSurfaceOpened = function () {
4044
1217
  switch (this.defaultFocusState) {
@@ -4094,11 +1267,11 @@ var MDCMenuFoundation = /** @class */ (function (_super) {
4094
1267
  MDCMenuFoundation.prototype.setEnabled = function (index, isEnabled) {
4095
1268
  this.validatedIndex(index);
4096
1269
  if (isEnabled) {
4097
- this.adapter.removeClassFromElementAtIndex(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS);
1270
+ this.adapter.removeClassFromElementAtIndex(index, component$2.cssClasses.LIST_ITEM_DISABLED_CLASS);
4098
1271
  this.adapter.addAttributeToElementAtIndex(index, strings.ARIA_DISABLED_ATTR, 'false');
4099
1272
  }
4100
1273
  else {
4101
- this.adapter.addClassToElementAtIndex(index, cssClasses$2.LIST_ITEM_DISABLED_CLASS);
1274
+ this.adapter.addClassToElementAtIndex(index, component$2.cssClasses.LIST_ITEM_DISABLED_CLASS);
4102
1275
  this.adapter.addAttributeToElementAtIndex(index, strings.ARIA_DISABLED_ATTR, 'true');
4103
1276
  }
4104
1277
  };
@@ -4143,8 +1316,8 @@ var MDCMenu = /** @class */ (function (_super) {
4143
1316
  return new MDCMenu(root);
4144
1317
  };
4145
1318
  MDCMenu.prototype.initialize = function (menuSurfaceFactory, listFactory) {
4146
- if (menuSurfaceFactory === void 0) { menuSurfaceFactory = function (el) { return new MDCMenuSurface(el); }; }
4147
- if (listFactory === void 0) { listFactory = function (el) { return new MDCList(el); }; }
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); }; }
4148
1321
  this.menuSurfaceFactory = menuSurfaceFactory;
4149
1322
  this.listFactory = listFactory;
4150
1323
  };
@@ -4168,18 +1341,18 @@ var MDCMenu = /** @class */ (function (_super) {
4168
1341
  this.handleMenuSurfaceOpened = function () {
4169
1342
  _this.foundation.handleMenuSurfaceOpened();
4170
1343
  };
4171
- this.menuSurface.listen(MDCMenuSurfaceFoundation.strings.OPENED_EVENT, this.handleMenuSurfaceOpened);
1344
+ this.menuSurface.listen(component$2.MDCMenuSurfaceFoundation.strings.OPENED_EVENT, this.handleMenuSurfaceOpened);
4172
1345
  this.listen('keydown', this.handleKeydown);
4173
- this.listen(MDCListFoundation.strings.ACTION_EVENT, this.handleItemAction);
1346
+ this.listen(component$2.MDCListFoundation.strings.ACTION_EVENT, this.handleItemAction);
4174
1347
  };
4175
1348
  MDCMenu.prototype.destroy = function () {
4176
1349
  if (this.list) {
4177
1350
  this.list.destroy();
4178
1351
  }
4179
1352
  this.menuSurface.destroy();
4180
- this.menuSurface.unlisten(MDCMenuSurfaceFoundation.strings.OPENED_EVENT, this.handleMenuSurfaceOpened);
1353
+ this.menuSurface.unlisten(component$2.MDCMenuSurfaceFoundation.strings.OPENED_EVENT, this.handleMenuSurfaceOpened);
4181
1354
  this.unlisten('keydown', this.handleKeydown);
4182
- this.unlisten(MDCListFoundation.strings.ACTION_EVENT, this.handleItemAction);
1355
+ this.unlisten(component$2.MDCListFoundation.strings.ACTION_EVENT, this.handleItemAction);
4183
1356
  _super.prototype.destroy.call(this);
4184
1357
  };
4185
1358
  Object.defineProperty(MDCMenu.prototype, "open", {
@@ -4294,7 +1467,7 @@ var MDCMenu = /** @class */ (function (_super) {
4294
1467
  * radio lists, and an array of numbers for checkbox lists.
4295
1468
  */
4296
1469
  get: function () {
4297
- return this.list ? this.list.selectedIndex : numbers$2.UNSET_INDEX;
1470
+ return this.list ? this.list.selectedIndex : component$2.numbers.UNSET_INDEX;
4298
1471
  },
4299
1472
  /**
4300
1473
  * Sets the selected index of the list. Only applicable to select menus.
@@ -4646,7 +1819,7 @@ const MenuList = class {
4646
1819
  this.mdcMenu = new MDCMenu(element);
4647
1820
  this.mdcMenu.hasTypeahead = true;
4648
1821
  this.mdcMenu.wrapFocus = true;
4649
- this.mdcMenu.items.forEach((item) => new component$2.MDCRipple(item));
1822
+ this.mdcMenu.items.forEach((item) => new component$3.MDCRipple(item));
4650
1823
  };
4651
1824
  this.setupListeners = () => {
4652
1825
  if (!this.mdcMenu) {
@@ -4730,122 +1903,6 @@ const MenuList = class {
4730
1903
  };
4731
1904
  MenuList.style = menuListCss;
4732
1905
 
4733
- 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}";
4734
-
4735
- const MenuSurface = class {
4736
- constructor(hostRef) {
4737
- index.registerInstance(this, hostRef);
4738
- this.dismiss = index.createEvent(this, "dismiss", 7);
4739
- this.setup = () => {
4740
- const menuElement = this.host.shadowRoot.querySelector('.mdc-menu-surface');
4741
- if (!menuElement) {
4742
- return;
4743
- }
4744
- this.menuSurface = new MDCMenuSurface(menuElement);
4745
- this.menuSurface.setAnchorCorner(Corner.TOP_START);
4746
- document.addEventListener('mousedown', this.handleDocumentClick, {
4747
- capture: true,
4748
- });
4749
- this.host.addEventListener('keydown', this.handleKeyDown);
4750
- window.addEventListener('resize', this.handleResize, {
4751
- passive: true,
4752
- });
4753
- };
4754
- this.teardown = () => {
4755
- var _a;
4756
- (_a = this.menuSurface) === null || _a === void 0 ? void 0 : _a.destroy();
4757
- document.removeEventListener('mousedown', this.handleDocumentClick, {
4758
- capture: true,
4759
- });
4760
- this.host.removeEventListener('keydown', this.handleKeyDown);
4761
- window.removeEventListener('resize', this.handleResize);
4762
- };
4763
- this.handleDocumentClick = (event) => {
4764
- const elementPath = event.composedPath ? event.composedPath() : [];
4765
- if (!this.open) {
4766
- return;
4767
- }
4768
- if (dom.isDescendant(event.target, this.host)) {
4769
- return;
4770
- }
4771
- if (this.allowClicksElement) {
4772
- const clickedInAllowedElement = elementPath.includes(this.allowClicksElement);
4773
- if (clickedInAllowedElement) {
4774
- return;
4775
- }
4776
- }
4777
- this.dismiss.emit();
4778
- this.preventClickEventPropagation();
4779
- };
4780
- this.handleResize = () => {
4781
- if (this.open) {
4782
- this.dismiss.emit();
4783
- }
4784
- };
4785
- this.preventClickEventPropagation = () => {
4786
- // When the menu surface is open, we want to stop the `click` event from propagating
4787
- // when clicking outside the surface itself. This is to prevent any dialog that might
4788
- // be open from closing, etc. However, when dragging a scrollbar no `click` event is emitted,
4789
- // only mousedown and mouseup. So we listen for `mousedown` and attach a one-time listener
4790
- // for `click`, so we can capture and "kill" it.
4791
- document.addEventListener('click', this.stopEvent, {
4792
- capture: true,
4793
- once: true,
4794
- });
4795
- // We also capture and "kill" the next `mouseup` event.
4796
- document.addEventListener('mouseup', this.stopEvent, {
4797
- capture: true,
4798
- once: true,
4799
- });
4800
- // If the user dragged the scrollbar, no `click` event happens. So when we get the
4801
- // `mouseup` event, remove the handler for `click` if it's still there.
4802
- // Otherwise, we would catch the next click even though the menu is no longer open.
4803
- document.addEventListener('mouseup', () => {
4804
- document.removeEventListener('click', this.stopEvent, {
4805
- capture: true,
4806
- });
4807
- }, {
4808
- once: true,
4809
- });
4810
- };
4811
- this.stopEvent = (event) => {
4812
- event.stopPropagation();
4813
- event.preventDefault();
4814
- };
4815
- this.handleKeyDown = (event) => {
4816
- const isEscape = event.key === keycodes.ESCAPE || event.keyCode === keycodes.ESCAPE_KEY_CODE;
4817
- const isTab = event.key === keycodes.TAB || event.keyCode === keycodes.TAB_KEY_CODE;
4818
- if (this.open && (isEscape || isTab)) {
4819
- event.stopPropagation();
4820
- this.dismiss.emit();
4821
- }
4822
- };
4823
- this.open = false;
4824
- this.allowClicksElement = undefined;
4825
- }
4826
- connectedCallback() {
4827
- this.setup();
4828
- }
4829
- disconnectedCallback() {
4830
- this.teardown();
4831
- }
4832
- componentDidLoad() {
4833
- this.setup();
4834
- }
4835
- render() {
4836
- const classList = {
4837
- 'mdc-menu': true,
4838
- 'mdc-menu-surface': true,
4839
- 'mdc-menu-surface--open': this.open,
4840
- 'mdc-elevation-transition': true,
4841
- 'mdc-elevation--z4': true,
4842
- };
4843
- return (index.h("div", { class: classList, tabindex: "-1" }, index.h("slot", null)));
4844
- }
4845
- get host() { return index.getElement(this); }
4846
- };
4847
- MenuSurface.style = menuSurfaceCss;
4848
-
4849
1906
  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}";
4850
1907
 
4851
1908
  const Spinner = class {
@@ -4870,10 +1927,8 @@ Spinner.style = spinnerCss;
4870
1927
 
4871
1928
  exports.limel_breadcrumbs = Breadcrumbs;
4872
1929
  exports.limel_input_field = InputField;
4873
- exports.limel_list = List;
4874
1930
  exports.limel_menu = Menu;
4875
1931
  exports.limel_menu_list = MenuList;
4876
- exports.limel_menu_surface = MenuSurface;
4877
1932
  exports.limel_spinner = Spinner;
4878
1933
 
4879
- //# sourceMappingURL=limel-breadcrumbs_7.cjs.entry.js.map
1934
+ //# sourceMappingURL=limel-breadcrumbs_5.cjs.entry.js.map