@luzmo/lucero 1.0.1-alpha.4 → 1.0.1-alpha.40

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 (236) hide show
  1. package/components/accordion/index.cjs +6 -6
  2. package/components/accordion/index.js +14 -13
  3. package/components/action-bar/index.cjs +4 -4
  4. package/components/action-bar/index.js +20 -18
  5. package/components/action-button/index.cjs +3 -3
  6. package/components/action-button/index.js +7 -6
  7. package/components/action-group/index.cjs +1 -1
  8. package/components/action-group/index.js +2 -2
  9. package/components/{action-group-DBImibFn.js → action-group-Bwt9w8Vh.js} +10 -9
  10. package/components/action-group-D917z7XF.cjs +20 -0
  11. package/components/action-menu/index.cjs +9 -9
  12. package/components/action-menu/index.js +10 -10
  13. package/components/avatar/index.cjs +3 -3
  14. package/components/avatar/index.js +7 -7
  15. package/components/base-5nDSSNeT.cjs +18 -0
  16. package/components/base-CdYjmV_8.js +96 -0
  17. package/components/button/button-base.d.ts +16 -0
  18. package/components/button/button.d.ts +38 -2
  19. package/components/button/index.cjs +2 -2
  20. package/components/button/index.js +37 -32
  21. package/components/{button-base-DbkDzb71.js → button-base-B5uul3tZ.js} +54 -39
  22. package/components/button-base-C7or8-FB.cjs +25 -0
  23. package/components/button-group/index.cjs +1 -1
  24. package/components/button-group/index.js +11 -9
  25. package/components/calendar/index.cjs +96 -1
  26. package/components/calendar/index.js +538 -6
  27. package/components/checkbox/index.cjs +4 -4
  28. package/components/checkbox/index.js +10 -8
  29. package/components/{checkbox-mixin-Do7EgtpQ.js → checkbox-mixin-DUbGDm7f.js} +9 -9
  30. package/components/{checkbox-mixin-BDN0dBtS.cjs → checkbox-mixin-DhN8CIXY.cjs} +3 -3
  31. package/components/{clear-button-DoeRUWQ3.js → clear-button-Bjp7N52G.js} +14 -13
  32. package/components/clear-button-C39c3PH0.cjs +18 -0
  33. package/components/close-button-C4zqQJRL.cjs +18 -0
  34. package/components/close-button-R-Cyxi_j.js +52 -0
  35. package/components/color-area/index.cjs +5 -5
  36. package/components/color-area/index.js +12 -11
  37. package/components/color-controller-7sNUf7SP.js +386 -0
  38. package/components/color-controller-ChN-A9Ft.cjs +18 -0
  39. package/components/color-field/color-field.d.ts +8 -0
  40. package/components/color-field/index.cjs +4 -4
  41. package/components/color-field/index.js +38 -25
  42. package/components/color-handle/index.cjs +2 -2
  43. package/components/color-handle/index.js +8 -6
  44. package/components/color-loupe/index.cjs +1 -1
  45. package/components/color-loupe/index.js +2 -2
  46. package/components/color-loupe-CIEFp7ln.cjs +56 -0
  47. package/components/{color-loupe-CmMsXbjT.js → color-loupe-CLPX6xVb.js} +6 -4
  48. package/components/color-menu/index.cjs +8 -8
  49. package/components/color-menu/index.js +46 -46
  50. package/components/color-palette/color-palette.d.ts +6 -2
  51. package/components/color-palette/index.cjs +1 -1
  52. package/components/color-palette/index.js +35 -34
  53. package/components/color-palette-group/color-palette-group.d.ts +79 -0
  54. package/components/color-palette-group/index.cjs +28 -0
  55. package/components/color-palette-group/index.d.ts +7 -0
  56. package/components/color-palette-group/index.js +206 -0
  57. package/components/color-picker/color-picker.d.ts +31 -2
  58. package/components/color-picker/index.cjs +6 -5
  59. package/components/color-picker/index.js +16 -12
  60. package/components/color-slider/index.cjs +40 -1
  61. package/components/color-slider/index.js +452 -6
  62. package/components/date-time-picker/index.cjs +16 -16
  63. package/components/date-time-picker/index.js +105 -106
  64. package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-CO-VPlqq.js} +4 -4
  65. package/components/{dependency-manger-C5HCkMMB.cjs → dependency-manger-uthev62E.cjs} +1 -1
  66. package/components/divider/index.cjs +1 -1
  67. package/components/divider/index.js +11 -9
  68. package/components/field-group/index.cjs +1 -1
  69. package/components/field-group/index.js +2 -2
  70. package/components/field-group-BYHNJmv0.cjs +23 -0
  71. package/components/{field-group-DXfBWrkO.js → field-group-CHmw159R.js} +7 -5
  72. package/components/field-label/index.cjs +1 -1
  73. package/components/field-label/index.js +2 -2
  74. package/components/{field-label-CZ2zzChK.js → field-label-Cy3xMWZ-.js} +9 -8
  75. package/components/field-label-DZoeqJJX.cjs +25 -0
  76. package/components/{focus-visible-DBlJGoEW.js → focus-visible-BvScGDCE.js} +20 -20
  77. package/components/focus-visible-D4BXb5RB.cjs +18 -0
  78. package/components/{focusable-BxtpnzWp.js → focusable-BjvsvVam.js} +3 -2
  79. package/components/focusable-CbVKgGfS.cjs +18 -0
  80. package/components/icon/index.cjs +1 -1
  81. package/components/icon/index.js +22 -20
  82. package/components/index.cjs +1 -1
  83. package/components/index.js +140 -138
  84. package/components/infield-button/index.cjs +2 -2
  85. package/components/infield-button/index.js +6 -5
  86. package/components/label/index.cjs +1 -1
  87. package/components/label/index.js +7 -5
  88. package/components/{language-resolution-8yZa5r_P.js → language-resolution-B-wjV5bb.js} +9 -8
  89. package/components/{directive-C7oCP5Bh.cjs → language-resolution-EUER43cg.cjs} +1 -5
  90. package/components/like-anchor-B2EqJPdw.cjs +32 -0
  91. package/components/{like-anchor-Bvn_vLQ8.js → like-anchor-CgqCU210.js} +23 -22
  92. package/components/{manage-help-text-DhgARkZX.cjs → manage-help-text-Bat9yGvF.cjs} +3 -3
  93. package/components/{manage-help-text-syYnjKGL.js → manage-help-text-C9sCHK3R.js} +8 -8
  94. package/components/menu/index.cjs +38 -13
  95. package/components/menu/index.js +138 -105
  96. package/components/menu/menu-item.d.ts +8 -1
  97. package/components/multi-language-field/index.cjs +2 -2
  98. package/components/multi-language-field/index.js +9 -7
  99. package/components/number-field/index.cjs +5 -5
  100. package/components/number-field/index.js +122 -85
  101. package/components/number-field/number-field.d.ts +145 -0
  102. package/components/observe-slot-presence-CNltc0C0.cjs +18 -0
  103. package/components/{observe-slot-presence-CmVi0zTc.js → observe-slot-presence-DFi6GE3H.js} +1 -1
  104. package/components/observe-slot-text-CBMHpuIK.cjs +18 -0
  105. package/components/{observe-slot-text-BPfIQQtz.js → observe-slot-text-DorVpCL4.js} +14 -15
  106. package/components/options/index.cjs +26 -58
  107. package/components/options/index.js +205 -849
  108. package/components/overlay/index.cjs +6 -6
  109. package/components/overlay/index.js +31 -32
  110. package/components/overlay-BhrVS5h7.cjs +47 -0
  111. package/components/overlay-C-No3oJQ.js +1736 -0
  112. package/components/{pending-state-CaH1si5b.cjs → pending-state-DQctFHI8.cjs} +2 -2
  113. package/components/{pending-state-DTX7ggyF.js → pending-state-Dx1u3EXA.js} +2 -2
  114. package/components/picker/index.cjs +1 -1
  115. package/components/picker/index.js +3 -3
  116. package/components/{picker-BmoXv1jt.js → picker-Cm6_didQ.js} +44 -44
  117. package/components/picker-DxYgh4LR.cjs +123 -0
  118. package/components/picker-button/index.cjs +4 -4
  119. package/components/picker-button/index.js +8 -7
  120. package/components/{platform-BiXhwqk3.cjs → platform-BJnOJJag.cjs} +1 -1
  121. package/components/{platform-BM-uMWpX.js → platform-CqwNrovd.js} +12 -12
  122. package/components/popover/index.cjs +1 -1
  123. package/components/popover/index.js +2 -2
  124. package/components/popover-lcZnODPK.cjs +30 -0
  125. package/components/{popover-DjX0aAnY.js → popover-ucIgjbQs.js} +8 -7
  126. package/components/progress-circle/index.cjs +1 -1
  127. package/components/progress-circle/index.js +2 -2
  128. package/components/{progress-circle-DXH9z8-6.js → progress-circle-D5J0ZwY0.js} +8 -7
  129. package/components/progress-circle-DgMbqrzG.cjs +33 -0
  130. package/components/radio/index.cjs +2 -2
  131. package/components/radio/index.js +12 -11
  132. package/components/search/index.cjs +6 -6
  133. package/components/search/index.js +6 -6
  134. package/components/select/index.cjs +43 -42
  135. package/components/select/index.js +142 -126
  136. package/components/select/select.d.ts +1 -1
  137. package/components/{base-BjTwmyRF.cjs → sized-mixin-DcvJLFeo.cjs} +1 -5
  138. package/components/{sized-mixin-D4ACoVUr.js → sized-mixin-cJbo3PKR.js} +5 -5
  139. package/components/slider/index.cjs +1 -1
  140. package/components/slider/index.js +48 -1101
  141. package/components/{strategies-9indNIEb.js → strategies-Bk97oVn1.js} +15 -50
  142. package/components/strategies-CNgBb6dM.cjs +18 -0
  143. package/components/{streaming-listener-CP-JE6Fa.js → streaming-listener-BlWm-XZU.js} +5 -6
  144. package/components/streaming-listener-D9Wc7skA.cjs +18 -0
  145. package/components/swatch/index.cjs +7 -7
  146. package/components/swatch/index.js +18 -17
  147. package/components/switch/index.cjs +2 -2
  148. package/components/switch/index.js +6 -5
  149. package/components/tabs/index.cjs +16 -24
  150. package/components/tabs/index.js +94 -162
  151. package/components/tags/index.cjs +4 -4
  152. package/components/tags/index.js +15 -14
  153. package/components/text-field/index.cjs +3 -3
  154. package/components/text-field/index.js +13 -11
  155. package/components/text-field/text-field.d.ts +1 -0
  156. package/components/{text-field-BIADXoLC.js → text-field-BHaLKkf1.js} +73 -99
  157. package/components/text-field-DFP7p8Rv.cjs +81 -0
  158. package/components/text-field.module-Bp4Mwuvj.js +21 -0
  159. package/components/text-field.module-eAEqjvZu.cjs +18 -0
  160. package/components/toast/index.cjs +11 -11
  161. package/components/toast/index.js +11 -9
  162. package/components/tooltip/index.cjs +4 -4
  163. package/components/tooltip/index.js +60 -36
  164. package/components/tooltip/tooltip.d.ts +12 -1
  165. package/components/unit-input/index.cjs +6 -6
  166. package/components/unit-input/index.js +12 -11
  167. package/components/utils.cjs +1 -1
  168. package/components/utils.js +6 -6
  169. package/custom-elements.json +1 -1
  170. package/index.d.ts +1 -0
  171. package/package.json +67 -1
  172. package/components/NumberFormatter-DewVDY5w.cjs +0 -18
  173. package/components/NumberFormatter-DgOUVrge.js +0 -136
  174. package/components/NumberParser-Dik4a0h-.cjs +0 -18
  175. package/components/NumberParser-ci9J5EKv.js +0 -173
  176. package/components/action-group-DJGMcRHb.cjs +0 -20
  177. package/components/async-directive-BX1T1e1_.cjs +0 -22
  178. package/components/async-directive-BfcqVjDp.js +0 -82
  179. package/components/base-CBCg3yyw.cjs +0 -40
  180. package/components/base-D76d76ww.js +0 -26
  181. package/components/base-WsynuqaS.js +0 -677
  182. package/components/button-base-XgPLmwP-.cjs +0 -25
  183. package/components/class-map-Di1D_rCm.cjs +0 -22
  184. package/components/class-map-NbVXqBU0.js +0 -51
  185. package/components/clear-button-Qi1pMA5S.cjs +0 -18
  186. package/components/close-button-BFMBEw3q.cjs +0 -18
  187. package/components/close-button-BWXdHSx3.js +0 -51
  188. package/components/color-controller-DTp1juRz.js +0 -3198
  189. package/components/color-controller-_ZwyhvaU.cjs +0 -18
  190. package/components/color-loupe-CaA_Lfkk.cjs +0 -56
  191. package/components/directive-helpers-Cm6gitnu.js +0 -62
  192. package/components/directive-helpers-DyIRTWwA.cjs +0 -22
  193. package/components/directive-oAbCiebi.js +0 -44
  194. package/components/field-group-DkGst3r5.cjs +0 -23
  195. package/components/field-label-mO1AkUgR.cjs +0 -25
  196. package/components/flow-D-0MTYCm.js +0 -527
  197. package/components/flow-DM3dNAKs.cjs +0 -30
  198. package/components/focus-visible-B0P9aY_G.cjs +0 -18
  199. package/components/focusable-EbipgXRh.cjs +0 -18
  200. package/components/if-defined-C9YGdo33.cjs +0 -22
  201. package/components/if-defined-DOaE2coe.js +0 -27
  202. package/components/index-A-yOTB_d.js +0 -1490
  203. package/components/index-BLWuwZXx.cjs +0 -113
  204. package/components/index-BwxgAdzi.cjs +0 -57
  205. package/components/index-HjQa8tew.js +0 -1174
  206. package/components/language-resolution-DJzmyzZq.cjs +0 -18
  207. package/components/like-anchor-sod1C1fR.cjs +0 -32
  208. package/components/luzmo-icons-DbwDQtuO.js +0 -229
  209. package/components/luzmo-icons-DletXGWU.cjs +0 -29
  210. package/components/mutation-controller-DH7YOCyj.js +0 -52
  211. package/components/mutation-controller-DkOMCW-c.cjs +0 -22
  212. package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
  213. package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
  214. package/components/overlay-Cig9r6uU.js +0 -2747
  215. package/components/overlay-KSKMzzkh.cjs +0 -47
  216. package/components/picker-DWsBWdPN.cjs +0 -123
  217. package/components/popover-KFfO0IYL.cjs +0 -30
  218. package/components/progress-circle-BvRJNuNo.cjs +0 -33
  219. package/components/query-BL-TJj7K.cjs +0 -22
  220. package/components/query-D_KR_GUc.js +0 -51
  221. package/components/query-assigned-elements-DjfhL1cl.js +0 -36
  222. package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
  223. package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
  224. package/components/query-assigned-nodes-C76XVPWY.js +0 -36
  225. package/components/sized-mixin-CPxE5C96.cjs +0 -18
  226. package/components/state-D8JEtYqe.cjs +0 -22
  227. package/components/state-Deh-vKYE.js +0 -29
  228. package/components/strategies-BACP6MhR.cjs +0 -18
  229. package/components/streaming-listener-B00MvALi.cjs +0 -18
  230. package/components/style-map-CeilmSgs.cjs +0 -22
  231. package/components/style-map-IgqIKvlE.js +0 -53
  232. package/components/text-field-D5d_Gt0t.cjs +0 -85
  233. package/components/text-field.module-ColtFhf_.js +0 -21
  234. package/components/text-field.module-p_VF2tC_.cjs +0 -18
  235. package/components/when-CDK1Tt5Y.js +0 -28
  236. package/components/when-CDZyJPvd.cjs +0 -22
@@ -15,71 +15,59 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { s as Q } from "../mutation-controller-DH7YOCyj.js";
19
- import { x as g, r as T, E as L, n as f, T as H, c as oo, a as W } from "../base-WsynuqaS.js";
20
- import { e as V } from "../query-D_KR_GUc.js";
21
- import { F as to } from "../focusable-BxtpnzWp.js";
22
- import { L as eo } from "../like-anchor-Bvn_vLQ8.js";
23
- import { O as io } from "../observe-slot-presence-CmVi0zTc.js";
24
- import { O as lo } from "../observe-slot-text-BPfIQQtz.js";
25
- import { r as ro } from "../random-id-ByCz1xaq.js";
26
- import { O as D, C as no, h as so, F as ao } from "../luzmo-icons-DbwDQtuO.js";
27
- import { e as q, i as co, t as K } from "../directive-oAbCiebi.js";
28
- import { f as ho } from "../async-directive-BfcqVjDp.js";
29
- import { p as uo, v as w, r as S, M, m as po } from "../directive-helpers-Cm6gitnu.js";
30
- import { e as mo } from "../base-D76d76ww.js";
31
- import { S as G } from "../sized-mixin-D4ACoVUr.js";
18
+ import { MutationController as $ } from "@lit-labs/observers/mutation-controller.js";
19
+ import { html as u, unsafeCSS as w, nothing as y } from "lit";
20
+ import { property as s, query as O, queryAll as U } from "lit/decorators.js";
21
+ import { F as L } from "../focusable-BjvsvVam.js";
22
+ import { L as F } from "../like-anchor-CgqCU210.js";
23
+ import { O as D } from "../observe-slot-presence-DFi6GE3H.js";
24
+ import { O as j } from "../observe-slot-text-DorVpCL4.js";
25
+ import { r as P } from "../random-id-ByCz1xaq.js";
26
+ import { luzmoIcon as A, luzmoCheckboxChecked as T, luzmoCheckbox as B, luzmoCheck as H } from "@luzmo/icons";
27
+ import "@lit-labs/virtualizer";
28
+ import { repeat as V } from "lit/directives/repeat.js";
29
+ import { a as S } from "../base-CdYjmV_8.js";
30
+ import { S as E } from "../sized-mixin-cJbo3PKR.js";
32
31
  import "../progress-circle/index.js";
33
- import { d as vo } from "../divider.module-DoQWQEIJ.js";
34
- const Y = () => {
32
+ import { d as K } from "../divider.module-DoQWQEIJ.js";
33
+ const _ = () => {
35
34
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
36
- const n = document.createElement("style");
37
- n.setAttribute("data-luzmo-vars", ""), n.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(n);
35
+ const a = document.createElement("style");
36
+ a.setAttribute("data-luzmo-vars", ""), a.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(a);
38
37
  }
39
38
  };
40
- Y();
41
- /**
42
- * @license
43
- * Copyright 2017 Google LLC
44
- * SPDX-License-Identifier: BSD-3-Clause
45
- */
46
- let fo;
47
- function go(n) {
48
- return (o, t) => mo(o, t, { get() {
49
- return (this.renderRoot ?? fo ?? (fo = document.createDocumentFragment())).querySelectorAll(n);
50
- } });
51
- }
52
- const bo = '#icon{grid-area:iconArea;align-self:start;height:var(--luzmo-option-icon-container-height, var(--option-icon-container-height));display:flex;align-items:center;justify-content:center;color:var(--highcontrast-option-color-default, var(--luzmo-option-label-icon-color-default, var(--option-label-icon-color-default)))}::slotted([slot=icon]){fill:var(--highcontrast-option-color-default, var(--luzmo-option-label-icon-color-default, var(--option-label-icon-color-default)));margin-inline-end:var(--luzmo-option-label-text-to-visual, var(--option-label-text-to-visual));block-size:var(--luzmo-option-icon-size, var(--option-icon-height));inline-size:var(--luzmo-option-icon-width, var(--option-icon-height));font-size:var(--luzmo-option-icon-size, var(--option-icon-height));text-align:center;--luzmo-icon-vertical-align: 0}:host{cursor:pointer;box-sizing:border-box;background-color:var(--highcontrast-option-background-color-default, var(--luzmo-option-background-color-default, var(--option-background-color-default)));line-height:var(--luzmo-option-label-line-height, var(--option-label-line-height));min-block-size:var(--luzmo-option-min-height, var(--option-min-height));padding-block-start:var(--luzmo-option-top-edge-to-text, var(--option-top-edge-to-text));padding-block-end:var(--luzmo-option-bottom-edge-to-text, var(--option-bottom-edge-to-text));padding-inline:var(--luzmo-option-label-inline-edge-to-content, var(--option-label-inline-edge-to-content));grid-template:". . headingIconArea sectionHeadingArea . ." "selectedArea checkArea iconArea labelArea valueArea actionsArea" 1fr ". . . descriptionArea . ." ". . . . . ."/auto auto auto 1fr auto auto;justify-content:start;margin:0;-webkit-text-decoration:none;text-decoration:none;display:grid;outline:none;align-items:center;position:relative;flex-shrink:0}:host:focus-visible{outline:none}#label{grid-area:submenuItemLabelArea}.checkmark,.checkbox{opacity:1;grid-area:checkArea;align-self:start;display:block}.checkmark{font-size:var(--luzmo-option-checkmark-size, var(--option-checkmark-size));fill:var(--highcontrast-options-checkmark-icon-color-default, var(--luzmo-options-checkmark-icon-color-default, var(--options-checkmark-icon-color-default)));color:var(--highcontrast-options-checkmark-icon-color-default, var(--luzmo-options-checkmark-icon-color-default, var(--options-checkmark-icon-color-default)));margin-block-start:calc(var(--luzmo-option-top-to-checkmark, var(--option-top-to-checkmark)) - var(--luzmo-option-top-edge-to-text, var(--option-top-edge-to-text)));margin-inline-end:var(--luzmo-option-text-to-control, var(--option-label-text-to-control))}.checkbox{font-size:var(--luzmo-option-checkbox-size, var(--option-checkbox-size));fill:var(--highcontrast-options-checkbox-icon-color-default, var(--luzmo-options-checkbox-icon-color-default, var(--options-checkbox-icon-color-default)));color:var(--highcontrast-options-checkbox-icon-color-default, var(--luzmo-options-checkbox-icon-color-default, var(--options-checkbox-icon-color-default)));margin-block-start:calc(var(--luzmo-option-top-to-checkbox, var(--option-top-to-checkbox)) - var(--luzmo-option-top-edge-to-text, var(--option-top-edge-to-text)));margin-inline-end:var(--luzmo-option-text-to-control, var(--option-label-text-to-control))}::slotted([slot=value]){grid-area:submenuItemValueArea}:host([focused]){background-color:var(--highcontrast-option-background-color-focus, var(--luzmo-option-background-color-key-focus, var(--option-background-color-key-focus)));outline:none}:host([focused])>#label,:host(:focus)>#label{color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-content-color-focus, var(--option-label-content-color-focus)))}:host([focused])>[name=description]::slotted(*),:host(:focus)>[name=description]::slotted(*){color:var(--highcontrast-option-color-focus, var(--luzmo-option-description-color-focus, var(--option-description-color-focus)))}:host([focused])>::slotted([slot=value]),:host(:focus)>::slotted([slot=value]){color:var(--highcontrast-option-color-focus, var(--luzmo-option-value-color-focus, var(--option-value-color-focus)))}:host([focused])>.icon:not(.checkmark,.checkbox),:host(:focus)>.icon:not(.checkmark,.checkbox){fill:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-focus, var(--option-label-icon-color-focus)));color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-focus, var(--option-label-icon-color-focus)))}:host([focused])>.checkmark,:host(:focus)>.checkmark{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-focus, var(--options-checkmark-icon-color-focus)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-focus, var(--options-checkmark-icon-color-focus)))}:host([focused])>.checkbox,:host(:focus)>.checkbox{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-focus, var(--options-checkbox-icon-color-focus)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-focus, var(--options-checkbox-icon-color-focus)))}:host:dir(rtl),:host([dir=rtl]){--option-focus-indicator-direction-scalar: -1}:host(:is(:active,[active])){background-color:var(--highcontrast-option-background-color-focus, var(--luzmo-option-background-color-down, var(--option-background-color-down)))}:host(:is(:active,[active]))>#label{color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-content-color-down, var(--option-label-content-color-down)))}:host(:is(:active,[active]))>[name=description]::slotted(*){color:var(--highcontrast-option-color-focus, var(--luzmo-option-description-color-down, var(--option-description-color-down)))}:host(:is(:active,[active]))>::slotted([slot=value]){color:var(--highcontrast-option-color-focus, var(--luzmo-option-value-color-down, var(--option-value-color-down)))}:host(:is(:active,[active]))>.icon:not(.checkmark,.checkbox){fill:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-down, var(--option-label-icon-color-down)));color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-down, var(--option-label-icon-color-down)))}:host(:is(:active,[active]))>.checkmark{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-down, var(--options-checkmark-icon-color-down)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-down, var(--options-checkmark-icon-color-down)))}:host(:is(:active,[active]))>.checkbox{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-down, var(--options-checkbox-icon-color-down)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-down, var(--options-checkbox-icon-color-down)))}:host([disabled]),:host([aria-disabled=true]){background-color:initial}:host([disabled]) #label,:host([disabled]) ::slotted([slot=value]),:host([aria-disabled=true]) #label,:host([aria-disabled=true]) ::slotted([slot=value]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-content-color-disabled, var(--option-label-content-color-disabled)))}:host([disabled]) [name=description]::slotted(*),:host([aria-disabled=true]) [name=description]::slotted(*){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-description-color-disabled, var(--option-description-color-disabled)))}:host([disabled]) ::slotted([slot=icon]),:host([aria-disabled=true]) ::slotted([slot=icon]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)));fill:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)))}:host([focused]){box-shadow:inset calc(var(--luzmo-option-focus-indicator-width, var(--option-focus-indicator-width)) * 1) 0 0 0 var(--highcontrast-option-focus-indicator-color, var(--luzmo-option-focus-indicator-color, var(--option-focus-indicator-color)));box-shadow:inset calc(var(--luzmo-option-focus-indicator-width, var(--option-focus-indicator-width)) * var(--option-focus-indicator-direction-scalar, 1)) 0 0 0 var(--highcontrast-option-focus-indicator-color, var(--luzmo-option-focus-indicator-color, var(--option-focus-indicator-color)))}#label{font-size:var(--luzmo-option-label-font-size, var(--option-label-font-size));color:var(--highcontrast-option-color-default, var(--luzmo-option-label-content-color-default, var(--option-label-content-color-default)));-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;grid-area:labelArea}:host([variant=highlight][selected]){background-color:var(--luzmo-option-highlight-selected-label-background-color, var(--option-highlight-selected-label-background-color))}:host([variant=highlight][selected]) #label{color:var(--luzmo-option-highlight-selected-label-content-color, var(--option-highlight-selected-label-content-color))}:host([variant=highlight][selected]):hover #label{color:var(--luzmo-option-highlight-selected-label-content-color-hover, var(--option-highlight-selected-label-content-color-hover))}:host([variant=highlight][selected]):active #label{color:var(--luzmo-option-highlight-selected-label-content-color-down, var(--option-highlight-selected-label-content-color-down))}:host([variant=highlight][selected]):focus #label{color:var(--luzmo-option-highlight-selected-label-content-color-focus, var(--option-highlight-selected-label-content-color-focus))}:host([variant=highlight][selected]) ::slotted([slot=icon]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-highlight-selected-label-content-color, var(--option-highlight-selected-label-content-color)));fill:var(--highcontrast-option-color-disabled, var(--luzmo-option-highlight-selected-label-content-color, var(--option-highlight-selected-label-content-color)))}::slotted([slot=value]){color:var(--highcontrast-option-color-default, var(--luzmo-option-value-color-default, var(--option-value-color-default)));font-size:var(--luzmo-option-label-font-size, var(--option-label-font-size));grid-area:valueArea;justify-self:end}[name=description]::slotted(*){color:var(--highcontrast-option-color-default, var(--luzmo-option-description-color-default, var(--option-description-color-default)));font-size:var(--luzmo-option-description-font-size, var(--option-description-font-size));-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;line-height:var(--luzmo-option-description-line-height, var(--option-description-line-height));grid-area:descriptionArea;margin-block-start:var(--luzmo-option-label-to-description-spacing, var(--option-label-to-description-spacing))}:host([no-wrap]) #label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (hover: hover){:host(:hover){background-color:var(--highcontrast-option-background-color-focus, var(--luzmo-option-background-color-hover, var(--option-background-color-hover)))}:host(:hover)>#label{color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-content-color-hover, var(--option-label-content-color-hover)))}:host([variant=highlight][selected]:hover)>#label{color:var(--luzmo-option-highlight-selected-label-content-color-hover, var(--option-highlight-selected-label-content-color-hover))}:host(:hover)>[name=description]::slotted(*){color:var(--highcontrast-option-color-focus, var(--luzmo-option-description-color-hover, var(--option-description-color-hover)))}:host(:hover)>::slotted([slot=value]){color:var(--highcontrast-option-color-focus, var(--luzmo-option-value-color-hover, var(--option-value-color-hover)))}:host(:hover)>.icon:not(.checkmark,.checkbox){fill:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-hover, var(--option-label-icon-color-hover)));color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-hover, var(--option-label-icon-color-hover)))}:host([variant=highlight][selected]:hover)>.icon:not(.checkmark,.checkbox){fill:var(--luzmo-option-highlight-selected-label-icon-color-hover, var(--option-highlight-selected-label-icon-color-hover))}:host(:hover)>.checkmark{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-hover, var(--options-checkmark-icon-color-hover)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-hover, var(--options-checkmark-icon-color-hover)))}:host(:hover)>.checkbox{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-hover, var(--options-checkbox-icon-color-hover)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-hover, var(--options-checkbox-icon-color-hover)))}:host([disabled]:hover),:host([aria-disabled=true]:hover){cursor:default;background-color:initial}:host([disabled]:hover) #label,:host([disabled]:hover) ::slotted([slot=value]),:host([aria-disabled=true]:hover) #label,:host([aria-disabled=true]:hover) ::slotted([slot=value]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-content-color-disabled, var(--option-label-content-color-disabled)))}:host([disabled]:hover) [name=description]::slotted(*),:host([aria-disabled=true]:hover) [name=description]::slotted(*){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-description-color-disabled, var(--option-description-color-disabled)))}:host([disabled]:hover) ::slotted([slot=icon]),:host([aria-disabled=true]:hover) ::slotted([slot=icon]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)));fill:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)))}}:host([emphasized]){--options-checkmark-icon-color-default: var(--luzmo-primary);--options-checkmark-icon-color-hover: var(--luzmo-primary-hover);--options-checkmark-icon-color-down: var(--luzmo-primary-down);--options-checkmark-icon-color-focus: var(--luzmo-primary-focus);--options-checkbox-icon-color-default: var(--luzmo-primary);--options-checkbox-icon-color-hover: var(--luzmo-primary-hover);--options-checkbox-icon-color-down: var(--luzmo-primary-down);--options-checkbox-icon-color-focus: var(--luzmo-primary-focus)}:host{text-align:initial;font-family:var(--luzmo-option-font-family, var(--luzmo-font-family))}:host([hidden]){display:none}:host([disabled]){pointer-events:none}:host([disabled]) [name=value]::slotted(*){color:var(--luzmo-option-label-icon-color-disabled, var(--luzmo-disabled-color))}#button{position:absolute;top:0;right:0;bottom:0;left:0}.icon-container>svg{vertical-align:top}:host([dir=ltr]) [icon-only]::slotted(:last-of-type){margin-right:auto}:host([dir=rtl]) [icon-only]::slotted(:last-of-type){margin-left:auto}@media (forced-colors: active){:host{forced-color-adjust:none}}:host([no-wrap]) #label{display:block}';
53
- var zo = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, _ = (n, o, t, e) => {
54
- for (var i = e > 1 ? void 0 : e ? _o(o, t) : o, l = n.length - 1, s; l >= 0; l--)
55
- (s = n[l]) && (i = (e ? s(o, t, i) : s(i)) || i);
56
- return e && i && zo(o, t, i), i;
39
+ _();
40
+ const q = '#icon{grid-area:iconArea;align-self:start;height:var(--luzmo-option-icon-container-height, var(--option-icon-container-height));display:flex;align-items:center;justify-content:center;color:var(--highcontrast-option-color-default, var(--luzmo-option-label-icon-color-default, var(--option-label-icon-color-default)))}::slotted([slot=icon]){fill:var(--highcontrast-option-color-default, var(--luzmo-option-label-icon-color-default, var(--option-label-icon-color-default)));margin-inline-end:var(--luzmo-option-label-text-to-visual, var(--option-label-text-to-visual));block-size:var(--luzmo-option-icon-size, var(--option-icon-height));inline-size:var(--luzmo-option-icon-width, var(--option-icon-width));font-size:var(--luzmo-option-icon-size, var(--option-icon-height));text-align:center;--luzmo-icon-vertical-align: 0;display:flex;align-items:center;justify-content:center}:host{cursor:pointer;box-sizing:border-box;background-color:var(--highcontrast-option-background-color-default, var(--luzmo-option-background-color-default, var(--option-background-color-default)));line-height:var(--luzmo-option-label-line-height, var(--option-label-line-height));min-block-size:var(--luzmo-option-min-height, var(--option-min-height));padding-block-start:var(--luzmo-option-top-edge-to-text, var(--option-top-edge-to-text));padding-block-end:var(--luzmo-option-bottom-edge-to-text, var(--option-bottom-edge-to-text));padding-inline:var(--luzmo-option-label-inline-edge-to-content, var(--option-label-inline-edge-to-content));grid-template:". . headingIconArea sectionHeadingArea . ." "selectedArea checkArea iconArea labelArea valueArea actionsArea" 1fr ". . . descriptionArea . ." ". . . . . ."/auto auto auto 1fr auto auto;justify-content:start;margin:0;-webkit-text-decoration:none;text-decoration:none;display:grid;outline:none;align-items:center;position:relative;flex-shrink:0}:host:focus-visible{outline:none}#label{grid-area:submenuItemLabelArea}.checkmark,.checkbox{opacity:1;grid-area:checkArea;align-self:start;display:block}.checkmark{font-size:var(--luzmo-option-checkmark-size, var(--option-checkmark-size));fill:var(--highcontrast-options-checkmark-icon-color-default, var(--luzmo-options-checkmark-icon-color-default, var(--options-checkmark-icon-color-default)));color:var(--highcontrast-options-checkmark-icon-color-default, var(--luzmo-options-checkmark-icon-color-default, var(--options-checkmark-icon-color-default)));margin-block-start:calc(var(--luzmo-option-top-to-checkmark, var(--option-top-to-checkmark)) - var(--luzmo-option-top-edge-to-text, var(--option-top-edge-to-text)));margin-inline-end:var(--luzmo-option-text-to-control, var(--option-label-text-to-control))}.checkbox{font-size:var(--luzmo-option-checkbox-size, var(--option-checkbox-size));fill:var(--highcontrast-options-checkbox-icon-color-default, var(--luzmo-options-checkbox-icon-color-default, var(--options-checkbox-icon-color-default)));color:var(--highcontrast-options-checkbox-icon-color-default, var(--luzmo-options-checkbox-icon-color-default, var(--options-checkbox-icon-color-default)));margin-block-start:calc(var(--luzmo-option-top-to-checkbox, var(--option-top-to-checkbox)) - var(--luzmo-option-top-edge-to-text, var(--option-top-edge-to-text)));margin-inline-end:var(--luzmo-option-text-to-control, var(--option-label-text-to-control))}::slotted([slot=value]){grid-area:submenuItemValueArea}:host([focused]){background-color:var(--highcontrast-option-background-color-focus, var(--luzmo-option-background-color-key-focus, var(--option-background-color-key-focus)));outline:none}:host([focused])>#label,:host(:focus)>#label{color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-content-color-focus, var(--option-label-content-color-focus)))}:host([focused])>[name=description]::slotted(*),:host(:focus)>[name=description]::slotted(*){color:var(--highcontrast-option-color-focus, var(--luzmo-option-description-color-focus, var(--option-description-color-focus)))}:host([focused])>::slotted([slot=value]),:host(:focus)>::slotted([slot=value]){color:var(--highcontrast-option-color-focus, var(--luzmo-option-value-color-focus, var(--option-value-color-focus)))}:host([focused])>.icon:not(.checkmark,.checkbox),:host(:focus)>.icon:not(.checkmark,.checkbox){fill:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-focus, var(--option-label-icon-color-focus)));color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-focus, var(--option-label-icon-color-focus)))}:host([focused])>.checkmark,:host(:focus)>.checkmark{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-focus, var(--options-checkmark-icon-color-focus)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-focus, var(--options-checkmark-icon-color-focus)))}:host([focused])>.checkbox,:host(:focus)>.checkbox{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-focus, var(--options-checkbox-icon-color-focus)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-focus, var(--options-checkbox-icon-color-focus)))}:host:dir(rtl),:host([dir=rtl]){--option-focus-indicator-direction-scalar: -1}:host(:is(:active,[active])){background-color:var(--highcontrast-option-background-color-focus, var(--luzmo-option-background-color-down, var(--option-background-color-down)))}:host(:is(:active,[active]))>#label{color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-content-color-down, var(--option-label-content-color-down)))}:host(:is(:active,[active]))>[name=description]::slotted(*){color:var(--highcontrast-option-color-focus, var(--luzmo-option-description-color-down, var(--option-description-color-down)))}:host(:is(:active,[active]))>::slotted([slot=value]){color:var(--highcontrast-option-color-focus, var(--luzmo-option-value-color-down, var(--option-value-color-down)))}:host(:is(:active,[active]))>.icon:not(.checkmark,.checkbox){fill:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-down, var(--option-label-icon-color-down)));color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-down, var(--option-label-icon-color-down)))}:host(:is(:active,[active]))>.checkmark{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-down, var(--options-checkmark-icon-color-down)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-down, var(--options-checkmark-icon-color-down)))}:host(:is(:active,[active]))>.checkbox{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-down, var(--options-checkbox-icon-color-down)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-down, var(--options-checkbox-icon-color-down)))}:host([disabled]),:host([aria-disabled=true]){background-color:initial}:host([disabled]) #label,:host([disabled]) ::slotted([slot=value]),:host([aria-disabled=true]) #label,:host([aria-disabled=true]) ::slotted([slot=value]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-content-color-disabled, var(--option-label-content-color-disabled)))}:host([disabled]) [name=description]::slotted(*),:host([aria-disabled=true]) [name=description]::slotted(*){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-description-color-disabled, var(--option-description-color-disabled)))}:host([disabled]) ::slotted([slot=icon]),:host([aria-disabled=true]) ::slotted([slot=icon]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)));fill:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)))}:host([focused]){box-shadow:inset calc(var(--luzmo-option-focus-indicator-width, var(--option-focus-indicator-width)) * 1) 0 0 0 var(--highcontrast-option-focus-indicator-color, var(--luzmo-option-focus-indicator-color, var(--option-focus-indicator-color)));box-shadow:inset calc(var(--luzmo-option-focus-indicator-width, var(--option-focus-indicator-width)) * var(--option-focus-indicator-direction-scalar, 1)) 0 0 0 var(--highcontrast-option-focus-indicator-color, var(--luzmo-option-focus-indicator-color, var(--option-focus-indicator-color)))}#label{font-size:var(--luzmo-option-label-font-size, var(--option-label-font-size));color:var(--highcontrast-option-color-default, var(--luzmo-option-label-content-color-default, var(--option-label-content-color-default)));-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;grid-area:labelArea}:host([variant=highlight][selected]){background-color:var(--luzmo-option-highlight-selected-label-background-color, var(--option-highlight-selected-label-background-color))}:host([variant=highlight][selected]) #label{color:var(--luzmo-option-highlight-selected-label-content-color, var(--option-highlight-selected-label-content-color))}:host([variant=highlight][selected]):hover #label{color:var(--luzmo-option-highlight-selected-label-content-color-hover, var(--option-highlight-selected-label-content-color-hover))}:host([variant=highlight][selected]):active #label{color:var(--luzmo-option-highlight-selected-label-content-color-down, var(--option-highlight-selected-label-content-color-down))}:host([variant=highlight][selected]):focus #label{color:var(--luzmo-option-highlight-selected-label-content-color-focus, var(--option-highlight-selected-label-content-color-focus))}:host([variant=highlight][selected]) ::slotted([slot=icon]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-highlight-selected-label-content-color, var(--option-highlight-selected-label-content-color)));fill:var(--highcontrast-option-color-disabled, var(--luzmo-option-highlight-selected-label-content-color, var(--option-highlight-selected-label-content-color)))}::slotted([slot=value]){color:var(--highcontrast-option-color-default, var(--luzmo-option-value-color-default, var(--option-value-color-default)));font-size:var(--luzmo-option-label-font-size, var(--option-label-font-size));grid-area:valueArea;justify-self:end}[name=description]::slotted(*){color:var(--highcontrast-option-color-default, var(--luzmo-option-description-color-default, var(--option-description-color-default)));font-size:var(--luzmo-option-description-font-size, var(--option-description-font-size));-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;line-height:var(--luzmo-option-description-line-height, var(--option-description-line-height));grid-area:descriptionArea;margin-block-start:var(--luzmo-option-label-to-description-spacing, var(--option-label-to-description-spacing))}:host([no-wrap]) #label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (hover: hover){:host(:hover){background-color:var(--highcontrast-option-background-color-focus, var(--luzmo-option-background-color-hover, var(--option-background-color-hover)))}:host(:hover)>#label{color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-content-color-hover, var(--option-label-content-color-hover)))}:host([variant=highlight][selected]:hover)>#label{color:var(--luzmo-option-highlight-selected-label-content-color-hover, var(--option-highlight-selected-label-content-color-hover))}:host(:hover)>[name=description]::slotted(*){color:var(--highcontrast-option-color-focus, var(--luzmo-option-description-color-hover, var(--option-description-color-hover)))}:host(:hover)>::slotted([slot=value]){color:var(--highcontrast-option-color-focus, var(--luzmo-option-value-color-hover, var(--option-value-color-hover)))}:host(:hover)>.icon:not(.checkmark,.checkbox){fill:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-hover, var(--option-label-icon-color-hover)));color:var(--highcontrast-option-color-focus, var(--luzmo-option-label-icon-color-hover, var(--option-label-icon-color-hover)))}:host([variant=highlight][selected]:hover)>.icon:not(.checkmark,.checkbox){fill:var(--luzmo-option-highlight-selected-label-icon-color-hover, var(--option-highlight-selected-label-icon-color-hover))}:host(:hover)>.checkmark{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-hover, var(--options-checkmark-icon-color-hover)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkmark-icon-color-hover, var(--options-checkmark-icon-color-hover)))}:host(:hover)>.checkbox{fill:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-hover, var(--options-checkbox-icon-color-hover)));color:var(--highcontrast-option-color-focus, var(--luzmo-options-checkbox-icon-color-hover, var(--options-checkbox-icon-color-hover)))}:host([disabled]:hover),:host([aria-disabled=true]:hover){cursor:default;background-color:initial}:host([disabled]:hover) #label,:host([disabled]:hover) ::slotted([slot=value]),:host([aria-disabled=true]:hover) #label,:host([aria-disabled=true]:hover) ::slotted([slot=value]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-content-color-disabled, var(--option-label-content-color-disabled)))}:host([disabled]:hover) [name=description]::slotted(*),:host([aria-disabled=true]:hover) [name=description]::slotted(*){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-description-color-disabled, var(--option-description-color-disabled)))}:host([disabled]:hover) ::slotted([slot=icon]),:host([aria-disabled=true]:hover) ::slotted([slot=icon]){color:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)));fill:var(--highcontrast-option-color-disabled, var(--luzmo-option-label-icon-color-disabled, var(--option-label-icon-color-disabled)))}}:host([emphasized]){--options-checkmark-icon-color-default: var(--luzmo-primary);--options-checkmark-icon-color-hover: var(--luzmo-primary-hover);--options-checkmark-icon-color-down: var(--luzmo-primary-down);--options-checkmark-icon-color-focus: var(--luzmo-primary-focus);--options-checkbox-icon-color-default: var(--luzmo-primary);--options-checkbox-icon-color-hover: var(--luzmo-primary-hover);--options-checkbox-icon-color-down: var(--luzmo-primary-down);--options-checkbox-icon-color-focus: var(--luzmo-primary-focus)}:host{text-align:initial;font-family:var(--luzmo-option-font-family, var(--luzmo-font-family))}:host([hidden]){display:none}:host([disabled]){pointer-events:none}:host([disabled]) [name=value]::slotted(*){color:var(--luzmo-option-label-icon-color-disabled, var(--luzmo-disabled-color))}#button{position:absolute;top:0;right:0;bottom:0;left:0}.icon-container>svg{vertical-align:top}:host([dir=ltr]) [icon-only]::slotted(:last-of-type){margin-right:auto}:host([dir=rtl]) [icon-only]::slotted(:last-of-type){margin-left:auto}@media (forced-colors: active){:host{forced-color-adjust:none}}:host([no-wrap]) #label{display:block}';
41
+ var N = Object.defineProperty, W = Object.getOwnPropertyDescriptor, m = (a, o, t, i) => {
42
+ for (var l = i > 1 ? void 0 : i ? W(o, t) : o, n = a.length - 1, r; n >= 0; n--)
43
+ (r = a[n]) && (l = (i ? r(o, t, l) : r(l)) || l);
44
+ return i && l && N(o, t, l), l;
57
45
  };
58
- const yo = (n) => g`
59
- <span class="icon-container icon checkmark ${n.join(" ")}">
60
- ${D(ao)}
46
+ const M = (a) => u`
47
+ <span class="icon-container icon checkmark ${a.join(" ")}">
48
+ ${A(H)}
61
49
  </span>
62
- `, ko = (n) => g`
63
- <span class="icon-container icon checkbox ${n.join(" ")}">
64
- ${D(so)}
50
+ `, R = (a) => u`
51
+ <span class="icon-container icon checkbox ${a.join(" ")}">
52
+ ${A(B)}
65
53
  </span>
66
- `, xo = (n) => g`
67
- <span class="icon-container icon checkbox ${n.join(" ")}">
68
- ${D(no)}
54
+ `, G = (a) => u`
55
+ <span class="icon-container icon checkbox ${a.join(" ")}">
56
+ ${A(T)}
69
57
  </span>
70
58
  `;
71
- class b extends eo(
72
- lo(io(to, '[slot="icon"]'))
59
+ class p extends F(
60
+ j(D(L, '[slot="icon"]'))
73
61
  ) {
74
62
  constructor() {
75
63
  super(), this.active = !1, this.focused = !1, this.selected = !1, this.emphasized = !1, this.variant = "checkmarks", this._value = "", this.noWrap = !1, this.renderCheckIcon = (o, t) => {
76
- const e = t ? ["check-icon--with-adjacent-icon"] : [];
77
- return this.variant === "checkboxes" ? o ? xo(e) : ko(e) : o && this.variant !== "highlight" ? yo(e) : g``;
64
+ const i = t ? ["check-icon--with-adjacent-icon"] : [];
65
+ return this.variant === "checkboxes" ? o ? G(i) : R(i) : o && this.variant !== "highlight" ? M(i) : u``;
78
66
  }, this.proxyFocus = () => {
79
67
  this.focus();
80
68
  }, this.willDispatchUpdate = !1, this.addEventListener("click", this.handleClickCapture, {
81
69
  capture: !0
82
- }), new Q(this, {
70
+ }), new $(this, {
83
71
  config: {
84
72
  characterData: !0,
85
73
  childList: !0,
@@ -91,7 +79,7 @@ class b extends eo(
91
79
  });
92
80
  }
93
81
  static get styles() {
94
- return [T(bo)];
82
+ return [w(q)];
95
83
  }
96
84
  get value() {
97
85
  return this._value || this.itemText;
@@ -122,10 +110,10 @@ class b extends eo(
122
110
  };
123
111
  if (this._itemChildren)
124
112
  return this._itemChildren;
125
- const o = this.iconSlot.assignedElements().map((e) => {
126
- const i = e.cloneNode(!0);
127
- return i.removeAttribute("slot"), i.classList.toggle("icon"), i;
128
- }), t = this.contentSlot.assignedNodes().map((e) => e.cloneNode(!0));
113
+ const o = this.iconSlot.assignedElements().map((i) => {
114
+ const l = i.cloneNode(!0);
115
+ return l.removeAttribute("slot"), l.classList.toggle("icon"), l;
116
+ }), t = this.contentSlot.assignedNodes().map((i) => i.cloneNode(!0));
129
117
  return this._itemChildren = { icon: o, content: t }, this._itemChildren;
130
118
  }
131
119
  click() {
@@ -143,7 +131,7 @@ class b extends eo(
143
131
  this._itemChildren = void 0, this.triggerUpdate();
144
132
  }
145
133
  render() {
146
- return g`
134
+ return u`
147
135
  ${this.renderCheckIcon(this.selected, this.hasIcon)}
148
136
  <div id="icon">
149
137
  <slot name="icon"></slot>
@@ -157,13 +145,13 @@ class b extends eo(
157
145
  id: "button",
158
146
  ariaHidden: !0,
159
147
  className: "button anchor hidden"
160
- }) : L}
148
+ }) : y}
161
149
  `;
162
150
  }
163
151
  handlePointerdown() {
164
152
  }
165
153
  firstUpdated(o) {
166
- super.firstUpdated(o), this.setAttribute("tabindex", "-1"), this.addEventListener("pointerdown", this.handlePointerdown), this.hasAttribute("id") || (this.id = `luzmo-option-${ro()}`);
154
+ super.firstUpdated(o), this.setAttribute("tabindex", "-1"), this.addEventListener("pointerdown", this.handlePointerdown), this.hasAttribute("id") || (this.id = `luzmo-option-${P()}`);
167
155
  }
168
156
  updateAriaSelected() {
169
157
  const o = this.getAttribute("role");
@@ -185,32 +173,32 @@ class b extends eo(
185
173
  this.isConnected && (this.willDispatchUpdate = !1);
186
174
  }
187
175
  }
188
- _([
189
- f({ type: Boolean, reflect: !0 })
190
- ], b.prototype, "active", 2);
191
- _([
192
- f({ type: Boolean, reflect: !0 })
193
- ], b.prototype, "focused", 2);
194
- _([
195
- f({ type: Boolean, reflect: !0 })
196
- ], b.prototype, "selected", 2);
197
- _([
198
- f({ type: Boolean, reflect: !0 })
199
- ], b.prototype, "emphasized", 2);
200
- _([
201
- f({ type: String, reflect: !0 })
202
- ], b.prototype, "variant", 2);
203
- _([
204
- f({ type: String })
205
- ], b.prototype, "value", 1);
206
- _([
207
- V("slot:not([name])")
208
- ], b.prototype, "contentSlot", 2);
209
- _([
210
- V('slot[name="icon"]')
211
- ], b.prototype, "iconSlot", 2);
212
- _([
213
- f({
176
+ m([
177
+ s({ type: Boolean, reflect: !0 })
178
+ ], p.prototype, "active", 2);
179
+ m([
180
+ s({ type: Boolean, reflect: !0 })
181
+ ], p.prototype, "focused", 2);
182
+ m([
183
+ s({ type: Boolean, reflect: !0 })
184
+ ], p.prototype, "selected", 2);
185
+ m([
186
+ s({ type: Boolean, reflect: !0 })
187
+ ], p.prototype, "emphasized", 2);
188
+ m([
189
+ s({ type: String, reflect: !0 })
190
+ ], p.prototype, "variant", 2);
191
+ m([
192
+ s({ type: String })
193
+ ], p.prototype, "value", 1);
194
+ m([
195
+ O("slot:not([name])")
196
+ ], p.prototype, "contentSlot", 2);
197
+ m([
198
+ O('slot[name="icon"]')
199
+ ], p.prototype, "iconSlot", 2);
200
+ m([
201
+ s({
214
202
  type: Boolean,
215
203
  reflect: !0,
216
204
  attribute: "no-wrap",
@@ -218,664 +206,32 @@ _([
218
206
  return !1;
219
207
  }
220
208
  })
221
- ], b.prototype, "noWrap", 2);
222
- _([
223
- V(".anchor")
224
- ], b.prototype, "anchorElement", 2);
225
- function O(n, o, t, e) {
226
- var i = arguments.length, l = i < 3 ? o : e === null ? e = Object.getOwnPropertyDescriptor(o, t) : e, s;
227
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") l = Reflect.decorate(n, o, t, e);
228
- else for (var r = n.length - 1; r >= 0; r--) (s = n[r]) && (l = (i < 3 ? s(l) : i > 3 ? s(o, t, l) : s(o, t)) || l);
229
- return i > 3 && l && Object.defineProperty(o, t, l), l;
230
- }
231
- /**
232
- * @license
233
- * Copyright 2017 Google LLC
234
- * SPDX-License-Identifier: BSD-3-Clause
235
- */
236
- const P = (n, o, t) => {
237
- const e = /* @__PURE__ */ new Map();
238
- for (let i = o; i <= t; i++) e.set(n[i], i);
239
- return e;
240
- }, Z = q(class extends co {
241
- constructor(n) {
242
- if (super(n), n.type !== K.CHILD) throw Error("repeat() can only be used in text expressions");
243
- }
244
- dt(n, o, t) {
245
- let e;
246
- t === void 0 ? t = o : o !== void 0 && (e = o);
247
- const i = [], l = [];
248
- let s = 0;
249
- for (const r of n) i[s] = e ? e(r, s) : s, l[s] = t(r, s), s++;
250
- return { values: l, keys: i };
251
- }
252
- render(n, o, t) {
253
- return this.dt(n, o, t).values;
254
- }
255
- update(n, [o, t, e]) {
256
- const i = uo(n), { values: l, keys: s } = this.dt(o, t, e);
257
- if (!Array.isArray(i)) return this.ut = s, l;
258
- const r = this.ut ?? (this.ut = []), a = [];
259
- let c, m, u = 0, d = i.length - 1, h = 0, p = l.length - 1;
260
- for (; u <= d && h <= p; ) if (i[u] === null) u++;
261
- else if (i[d] === null) d--;
262
- else if (r[u] === s[h]) a[h] = w(i[u], l[h]), u++, h++;
263
- else if (r[d] === s[p]) a[p] = w(i[d], l[p]), d--, p--;
264
- else if (r[u] === s[p]) a[p] = w(i[u], l[p]), S(n, a[p + 1], i[u]), u++, p--;
265
- else if (r[d] === s[h]) a[h] = w(i[d], l[h]), S(n, i[u], i[d]), d--, h++;
266
- else if (c === void 0 && (c = P(s, h, p), m = P(r, u, d)), c.has(r[u])) if (c.has(r[d])) {
267
- const v = m.get(s[h]), k = v !== void 0 ? i[v] : null;
268
- if (k === null) {
269
- const x = S(n, i[u]);
270
- w(x, l[h]), a[h] = x;
271
- } else a[h] = w(k, l[h]), S(n, i[u], k), i[v] = null;
272
- h++;
273
- } else M(i[d]), d--;
274
- else M(i[u]), u++;
275
- for (; h <= p; ) {
276
- const v = S(n, a[p + 1]);
277
- w(v, l[h]), a[h++] = v;
278
- }
279
- for (; u <= d; ) {
280
- const v = i[u++];
281
- v !== null && M(v);
282
- }
283
- return this.ut = s, po(n, a), H;
284
- }
285
- });
286
- /**
287
- * @license
288
- * Copyright 2021 Google LLC
289
- * SPDX-License-Identifier: BSD-3-Clause
290
- */
291
- class R extends Event {
292
- constructor(o) {
293
- super(R.eventName, { bubbles: !1 }), this.first = o.first, this.last = o.last;
294
- }
295
- }
296
- R.eventName = "rangeChanged";
297
- class $ extends Event {
298
- constructor(o) {
299
- super($.eventName, { bubbles: !1 }), this.first = o.first, this.last = o.last;
300
- }
301
- }
302
- $.eventName = "visibilityChanged";
303
- class F extends Event {
304
- constructor() {
305
- super(F.eventName, { bubbles: !1 });
306
- }
307
- }
308
- F.eventName = "unpinned";
309
- /**
310
- * @license
311
- * Copyright 2021 Google LLC
312
- * SPDX-License-Identifier: BSD-3-Clause
313
- */
314
- class wo {
315
- constructor(o) {
316
- this._element = null;
317
- const t = o ?? window;
318
- this._node = t, o && (this._element = o);
319
- }
320
- get element() {
321
- return this._element || document.scrollingElement || document.documentElement;
322
- }
323
- get scrollTop() {
324
- return this.element.scrollTop || window.scrollY;
325
- }
326
- get scrollLeft() {
327
- return this.element.scrollLeft || window.scrollX;
328
- }
329
- get scrollHeight() {
330
- return this.element.scrollHeight;
331
- }
332
- get scrollWidth() {
333
- return this.element.scrollWidth;
334
- }
335
- get viewportHeight() {
336
- return this._element ? this._element.getBoundingClientRect().height : window.innerHeight;
337
- }
338
- get viewportWidth() {
339
- return this._element ? this._element.getBoundingClientRect().width : window.innerWidth;
340
- }
341
- get maxScrollTop() {
342
- return this.scrollHeight - this.viewportHeight;
343
- }
344
- get maxScrollLeft() {
345
- return this.scrollWidth - this.viewportWidth;
346
- }
347
- }
348
- class Co extends wo {
349
- constructor(o, t) {
350
- super(t), this._clients = /* @__PURE__ */ new Set(), this._retarget = null, this._end = null, this.__destination = null, this.correctingScrollError = !1, this._checkForArrival = this._checkForArrival.bind(this), this._updateManagedScrollTo = this._updateManagedScrollTo.bind(this), this.scrollTo = this.scrollTo.bind(this), this.scrollBy = this.scrollBy.bind(this);
351
- const e = this._node;
352
- this._originalScrollTo = e.scrollTo, this._originalScrollBy = e.scrollBy, this._originalScroll = e.scroll, this._attach(o);
353
- }
354
- get _destination() {
355
- return this.__destination;
356
- }
357
- get scrolling() {
358
- return this._destination !== null;
359
- }
360
- scrollTo(o, t) {
361
- const e = typeof o == "number" && typeof t == "number" ? { left: o, top: t } : o;
362
- this._scrollTo(e);
363
- }
364
- scrollBy(o, t) {
365
- const e = typeof o == "number" && typeof t == "number" ? { left: o, top: t } : o;
366
- e.top !== void 0 && (e.top += this.scrollTop), e.left !== void 0 && (e.left += this.scrollLeft), this._scrollTo(e);
367
- }
368
- _nativeScrollTo(o) {
369
- this._originalScrollTo.bind(this._element || window)(o);
370
- }
371
- _scrollTo(o, t = null, e = null) {
372
- this._end !== null && this._end(), o.behavior === "smooth" ? (this._setDestination(o), this._retarget = t, this._end = e) : this._resetScrollState(), this._nativeScrollTo(o);
373
- }
374
- _setDestination(o) {
375
- let { top: t, left: e } = o;
376
- return t = t === void 0 ? void 0 : Math.max(0, Math.min(t, this.maxScrollTop)), e = e === void 0 ? void 0 : Math.max(0, Math.min(e, this.maxScrollLeft)), this._destination !== null && e === this._destination.left && t === this._destination.top ? !1 : (this.__destination = { top: t, left: e, behavior: "smooth" }, !0);
377
- }
378
- _resetScrollState() {
379
- this.__destination = null, this._retarget = null, this._end = null;
380
- }
381
- _updateManagedScrollTo(o) {
382
- this._destination && this._setDestination(o) && this._nativeScrollTo(this._destination);
383
- }
384
- managedScrollTo(o, t, e) {
385
- return this._scrollTo(o, t, e), this._updateManagedScrollTo;
386
- }
387
- correctScrollError(o) {
388
- this.correctingScrollError = !0, requestAnimationFrame(() => requestAnimationFrame(() => this.correctingScrollError = !1)), this._nativeScrollTo(o), this._retarget && this._setDestination(this._retarget()), this._destination && this._nativeScrollTo(this._destination);
389
- }
390
- _checkForArrival() {
391
- if (this._destination !== null) {
392
- const { scrollTop: o, scrollLeft: t } = this;
393
- let { top: e, left: i } = this._destination;
394
- e = Math.min(e || 0, this.maxScrollTop), i = Math.min(i || 0, this.maxScrollLeft);
395
- const l = Math.abs(e - o), s = Math.abs(i - t);
396
- l < 1 && s < 1 && (this._end && this._end(), this._resetScrollState());
397
- }
398
- }
399
- detach(o) {
400
- return this._clients.delete(o), this._clients.size === 0 && (this._node.scrollTo = this._originalScrollTo, this._node.scrollBy = this._originalScrollBy, this._node.scroll = this._originalScroll, this._node.removeEventListener("scroll", this._checkForArrival)), null;
401
- }
402
- _attach(o) {
403
- this._clients.add(o), this._clients.size === 1 && (this._node.scrollTo = this.scrollTo, this._node.scrollBy = this.scrollBy, this._node.scroll = this.scrollTo, this._node.addEventListener("scroll", this._checkForArrival));
404
- }
405
- }
406
- /**
407
- * @license
408
- * Copyright 2021 Google LLC
409
- * SPDX-License-Identifier: BSD-3-Clause
410
- */
411
- let j = typeof window < "u" ? window.ResizeObserver : void 0;
412
- const B = Symbol("virtualizerRef"), I = "virtualizer-sizer";
413
- let U;
414
- class Eo {
415
- constructor(o) {
416
- if (this._benchmarkStart = null, this._layout = null, this._clippingAncestors = [], this._scrollSize = null, this._scrollError = null, this._childrenPos = null, this._childMeasurements = null, this._toBeMeasured = /* @__PURE__ */ new Map(), this._rangeChanged = !0, this._itemsChanged = !0, this._visibilityChanged = !0, this._scrollerController = null, this._isScroller = !1, this._sizer = null, this._hostElementRO = null, this._childrenRO = null, this._mutationObserver = null, this._scrollEventListeners = [], this._scrollEventListenerOptions = {
417
- passive: !0
418
- }, this._loadListener = this._childLoaded.bind(this), this._scrollIntoViewTarget = null, this._updateScrollIntoViewCoordinates = null, this._items = [], this._first = -1, this._last = -1, this._firstVisible = -1, this._lastVisible = -1, this._scheduled = /* @__PURE__ */ new WeakSet(), this._measureCallback = null, this._measureChildOverride = null, this._layoutCompletePromise = null, this._layoutCompleteResolver = null, this._layoutCompleteRejecter = null, this._pendingLayoutComplete = null, this._layoutInitialized = null, this._connected = !1, !o)
419
- throw new Error("Virtualizer constructor requires a configuration object");
420
- if (o.hostElement)
421
- this._init(o);
422
- else
423
- throw new Error('Virtualizer configuration requires the "hostElement" property');
424
- }
425
- set items(o) {
426
- Array.isArray(o) && o !== this._items && (this._itemsChanged = !0, this._items = o, this._schedule(this._updateLayout));
427
- }
428
- _init(o) {
429
- this._isScroller = !!o.scroller, this._initHostElement(o);
430
- const t = o.layout || {};
431
- this._layoutInitialized = this._initLayout(t);
432
- }
433
- _initObservers() {
434
- this._mutationObserver = new MutationObserver(this._finishDOMUpdate.bind(this)), this._hostElementRO = new j(() => this._hostElementSizeChanged()), this._childrenRO = new j(this._childrenSizeChanged.bind(this));
435
- }
436
- _initHostElement(o) {
437
- const t = this._hostElement = o.hostElement;
438
- this._applyVirtualizerStyles(), t[B] = this;
439
- }
440
- connected() {
441
- this._initObservers();
442
- const o = this._isScroller;
443
- this._clippingAncestors = Io(this._hostElement, o), this._scrollerController = new Co(this, this._clippingAncestors[0]), this._schedule(this._updateLayout), this._observeAndListen(), this._connected = !0;
444
- }
445
- _observeAndListen() {
446
- this._mutationObserver.observe(this._hostElement, { childList: !0 }), this._hostElementRO.observe(this._hostElement), this._scrollEventListeners.push(window), window.addEventListener("scroll", this, this._scrollEventListenerOptions), this._clippingAncestors.forEach((o) => {
447
- o.addEventListener("scroll", this, this._scrollEventListenerOptions), this._scrollEventListeners.push(o), this._hostElementRO.observe(o);
448
- }), this._hostElementRO.observe(this._scrollerController.element), this._children.forEach((o) => this._childrenRO.observe(o)), this._scrollEventListeners.forEach((o) => o.addEventListener("scroll", this, this._scrollEventListenerOptions));
449
- }
450
- disconnected() {
451
- var o, t, e, i;
452
- this._scrollEventListeners.forEach((l) => l.removeEventListener("scroll", this, this._scrollEventListenerOptions)), this._scrollEventListeners = [], this._clippingAncestors = [], (o = this._scrollerController) == null || o.detach(this), this._scrollerController = null, (t = this._mutationObserver) == null || t.disconnect(), this._mutationObserver = null, (e = this._hostElementRO) == null || e.disconnect(), this._hostElementRO = null, (i = this._childrenRO) == null || i.disconnect(), this._childrenRO = null, this._rejectLayoutCompletePromise("disconnected"), this._connected = !1;
453
- }
454
- _applyVirtualizerStyles() {
455
- const t = this._hostElement.style;
456
- t.display = t.display || "block", t.position = t.position || "relative", t.contain = t.contain || "size layout", this._isScroller && (t.overflow = t.overflow || "auto", t.minHeight = t.minHeight || "150px");
457
- }
458
- _getSizer() {
459
- const o = this._hostElement;
460
- if (!this._sizer) {
461
- let t = o.querySelector(`[${I}]`);
462
- t || (t = document.createElement("div"), t.setAttribute(I, ""), o.appendChild(t)), Object.assign(t.style, {
463
- position: "absolute",
464
- margin: "-2px 0 0 0",
465
- padding: 0,
466
- visibility: "hidden",
467
- fontSize: "2px"
468
- }), t.textContent = "&nbsp;", t.setAttribute(I, ""), this._sizer = t;
469
- }
470
- return this._sizer;
471
- }
472
- async updateLayoutConfig(o) {
473
- await this._layoutInitialized;
474
- const t = o.type || // The new config is compatible with the current layout,
475
- // so we update the config and return true to indicate
476
- // a successful update
477
- U;
478
- if (typeof t == "function" && this._layout instanceof t) {
479
- const e = { ...o };
480
- return delete e.type, this._layout.config = e, !0;
481
- }
482
- return !1;
483
- }
484
- async _initLayout(o) {
485
- let t, e;
486
- if (typeof o.type == "function") {
487
- e = o.type;
488
- const i = { ...o };
489
- delete i.type, t = i;
490
- } else
491
- t = o;
492
- e === void 0 && (U = e = (await import("../flow-D-0MTYCm.js")).FlowLayout), this._layout = new e((i) => this._handleLayoutMessage(i), t), this._layout.measureChildren && typeof this._layout.updateItemSizes == "function" && (typeof this._layout.measureChildren == "function" && (this._measureChildOverride = this._layout.measureChildren), this._measureCallback = this._layout.updateItemSizes.bind(this._layout)), this._layout.listenForChildLoadEvents && this._hostElement.addEventListener("load", this._loadListener, !0), this._schedule(this._updateLayout);
493
- }
494
- // TODO (graynorton): Rework benchmarking so that it has no API and
495
- // instead is always on except in production builds
496
- startBenchmarking() {
497
- this._benchmarkStart === null && (this._benchmarkStart = window.performance.now());
498
- }
499
- stopBenchmarking() {
500
- if (this._benchmarkStart !== null) {
501
- const o = window.performance.now(), t = o - this._benchmarkStart, i = performance.getEntriesByName("uv-virtualizing", "measure").filter((l) => l.startTime >= this._benchmarkStart && l.startTime < o).reduce((l, s) => l + s.duration, 0);
502
- return this._benchmarkStart = null, { timeElapsed: t, virtualizationTime: i };
503
- }
504
- return null;
505
- }
506
- _measureChildren() {
507
- const o = {}, t = this._children, e = this._measureChildOverride || this._measureChild;
508
- for (let i = 0; i < t.length; i++) {
509
- const l = t[i], s = this._first + i;
510
- (this._itemsChanged || this._toBeMeasured.has(l)) && (o[s] = e.call(this, l, this._items[s]));
511
- }
512
- this._childMeasurements = o, this._schedule(this._updateLayout), this._toBeMeasured.clear();
513
- }
514
- /**
515
- * Returns the width, height, and margins of the given child.
516
- */
517
- _measureChild(o) {
518
- const { width: t, height: e } = o.getBoundingClientRect();
519
- return Object.assign({ width: t, height: e }, So(o));
520
- }
521
- async _schedule(o) {
522
- this._scheduled.has(o) || (this._scheduled.add(o), await Promise.resolve(), this._scheduled.delete(o), o.call(this));
523
- }
524
- async _updateDOM(o) {
525
- this._scrollSize = o.scrollSize, this._adjustRange(o.range), this._childrenPos = o.childPositions, this._scrollError = o.scrollError || null;
526
- const { _rangeChanged: t, _itemsChanged: e } = this;
527
- this._visibilityChanged && (this._notifyVisibility(), this._visibilityChanged = !1), (t || e) && (this._notifyRange(), this._rangeChanged = !1), this._finishDOMUpdate();
528
- }
529
- _finishDOMUpdate() {
530
- this._connected && (this._children.forEach((o) => this._childrenRO.observe(o)), this._checkScrollIntoViewTarget(this._childrenPos), this._positionChildren(this._childrenPos), this._sizeHostElement(this._scrollSize), this._correctScrollError(), this._benchmarkStart && "mark" in window.performance && window.performance.mark("uv-end"));
531
- }
532
- _updateLayout() {
533
- this._layout && this._connected && (this._layout.items = this._items, this._updateView(), this._childMeasurements !== null && (this._measureCallback && this._measureCallback(this._childMeasurements), this._childMeasurements = null), this._layout.reflowIfNeeded(), this._benchmarkStart && "mark" in window.performance && window.performance.mark("uv-end"));
534
- }
535
- _handleScrollEvent() {
536
- var o;
537
- if (this._benchmarkStart && "mark" in window.performance) {
538
- try {
539
- window.performance.measure("uv-virtualizing", "uv-start", "uv-end");
540
- } catch (t) {
541
- console.warn("Error measuring performance data: ", t);
542
- }
543
- window.performance.mark("uv-start");
544
- }
545
- this._scrollerController.correctingScrollError === !1 && ((o = this._layout) == null || o.unpin()), this._schedule(this._updateLayout);
546
- }
547
- handleEvent(o) {
548
- switch (o.type) {
549
- case "scroll":
550
- (o.currentTarget === window || this._clippingAncestors.includes(o.currentTarget)) && this._handleScrollEvent();
551
- break;
552
- default:
553
- console.warn("event not handled", o);
554
- }
555
- }
556
- _handleLayoutMessage(o) {
557
- o.type === "stateChanged" ? this._updateDOM(o) : o.type === "visibilityChanged" ? (this._firstVisible = o.firstVisible, this._lastVisible = o.lastVisible, this._notifyVisibility()) : o.type === "unpinned" && this._hostElement.dispatchEvent(new F());
558
- }
559
- get _children() {
560
- const o = [];
561
- let t = this._hostElement.firstElementChild;
562
- for (; t; )
563
- t.hasAttribute(I) || o.push(t), t = t.nextElementSibling;
564
- return o;
565
- }
566
- _updateView() {
567
- var i;
568
- const o = this._hostElement, t = (i = this._scrollerController) == null ? void 0 : i.element, e = this._layout;
569
- if (o && t && e) {
570
- let l, s, r, a;
571
- const c = o.getBoundingClientRect();
572
- l = 0, s = 0, r = window.innerHeight, a = window.innerWidth;
573
- const m = this._clippingAncestors.map((C) => C.getBoundingClientRect());
574
- m.unshift(c);
575
- for (const C of m)
576
- l = Math.max(l, C.top), s = Math.max(s, C.left), r = Math.min(r, C.bottom), a = Math.min(a, C.right);
577
- const u = t.getBoundingClientRect(), d = {
578
- left: c.left - u.left,
579
- top: c.top - u.top
580
- }, h = {
581
- width: t.scrollWidth,
582
- height: t.scrollHeight
583
- }, p = l - c.top + o.scrollTop, v = s - c.left + o.scrollLeft, k = Math.max(0, r - l), x = Math.max(0, a - s);
584
- e.viewportSize = { width: x, height: k }, e.viewportScroll = { top: p, left: v }, e.totalScrollSize = h, e.offsetWithinScroller = d;
585
- }
586
- }
587
- /**
588
- * Styles the host element so that its size reflects the
589
- * total size of all items.
590
- */
591
- _sizeHostElement(o) {
592
- const e = o && o.width !== null ? Math.min(82e5, o.width) : 0, i = o && o.height !== null ? Math.min(82e5, o.height) : 0;
593
- if (this._isScroller)
594
- this._getSizer().style.transform = `translate(${e}px, ${i}px)`;
595
- else {
596
- const l = this._hostElement.style;
597
- l.minWidth = e ? `${e}px` : "100%", l.minHeight = i ? `${i}px` : "100%";
598
- }
599
- }
600
- /**
601
- * Sets the top and left transform style of the children from the values in
602
- * pos.
603
- */
604
- _positionChildren(o) {
605
- o && o.forEach(({ top: t, left: e, width: i, height: l, xOffset: s, yOffset: r }, a) => {
606
- const c = this._children[a - this._first];
607
- c && (c.style.position = "absolute", c.style.boxSizing = "border-box", c.style.transform = `translate(${e}px, ${t}px)`, i !== void 0 && (c.style.width = i + "px"), l !== void 0 && (c.style.height = l + "px"), c.style.left = s === void 0 ? null : s + "px", c.style.top = r === void 0 ? null : r + "px");
608
- });
609
- }
610
- async _adjustRange(o) {
611
- const { _first: t, _last: e, _firstVisible: i, _lastVisible: l } = this;
612
- this._first = o.first, this._last = o.last, this._firstVisible = o.firstVisible, this._lastVisible = o.lastVisible, this._rangeChanged = this._rangeChanged || this._first !== t || this._last !== e, this._visibilityChanged = this._visibilityChanged || this._firstVisible !== i || this._lastVisible !== l;
613
- }
614
- _correctScrollError() {
615
- if (this._scrollError) {
616
- const { scrollTop: o, scrollLeft: t } = this._scrollerController, { top: e, left: i } = this._scrollError;
617
- this._scrollError = null, this._scrollerController.correctScrollError({
618
- top: o - e,
619
- left: t - i
620
- });
621
- }
622
- }
623
- element(o) {
624
- var t;
625
- return o === 1 / 0 && (o = this._items.length - 1), ((t = this._items) == null ? void 0 : t[o]) === void 0 ? void 0 : {
626
- scrollIntoView: (e = {}) => this._scrollElementIntoView({ ...e, index: o })
627
- };
628
- }
629
- _scrollElementIntoView(o) {
630
- if (o.index >= this._first && o.index <= this._last)
631
- this._children[o.index - this._first].scrollIntoView(o);
632
- else if (o.index = Math.min(o.index, this._items.length - 1), o.behavior === "smooth") {
633
- const t = this._layout.getScrollIntoViewCoordinates(o), { behavior: e } = o;
634
- this._updateScrollIntoViewCoordinates = this._scrollerController.managedScrollTo(Object.assign(t, { behavior: e }), () => this._layout.getScrollIntoViewCoordinates(o), () => this._scrollIntoViewTarget = null), this._scrollIntoViewTarget = o;
635
- } else
636
- this._layout.pin = o;
637
- }
638
- /**
639
- * If we are smoothly scrolling to an element and the target element
640
- * is in the DOM, we update our target coordinates as needed
641
- */
642
- _checkScrollIntoViewTarget(o) {
643
- const { index: t } = this._scrollIntoViewTarget || {};
644
- t && (o != null && o.has(t)) && this._updateScrollIntoViewCoordinates(this._layout.getScrollIntoViewCoordinates(this._scrollIntoViewTarget));
645
- }
646
- /**
647
- * Emits a rangechange event with the current first, last, firstVisible, and
648
- * lastVisible.
649
- */
650
- _notifyRange() {
651
- this._hostElement.dispatchEvent(new R({ first: this._first, last: this._last }));
652
- }
653
- _notifyVisibility() {
654
- this._hostElement.dispatchEvent(new $({
655
- first: this._firstVisible,
656
- last: this._lastVisible
657
- }));
658
- }
659
- get layoutComplete() {
660
- return this._layoutCompletePromise || (this._layoutCompletePromise = new Promise((o, t) => {
661
- this._layoutCompleteResolver = o, this._layoutCompleteRejecter = t;
662
- })), this._layoutCompletePromise;
663
- }
664
- _rejectLayoutCompletePromise(o) {
665
- this._layoutCompleteRejecter !== null && this._layoutCompleteRejecter(o), this._resetLayoutCompleteState();
666
- }
667
- _scheduleLayoutComplete() {
668
- this._layoutCompletePromise && this._pendingLayoutComplete === null && (this._pendingLayoutComplete = requestAnimationFrame(() => requestAnimationFrame(() => this._resolveLayoutCompletePromise())));
669
- }
670
- _resolveLayoutCompletePromise() {
671
- this._layoutCompleteResolver !== null && this._layoutCompleteResolver(), this._resetLayoutCompleteState();
672
- }
673
- _resetLayoutCompleteState() {
674
- this._layoutCompletePromise = null, this._layoutCompleteResolver = null, this._layoutCompleteRejecter = null, this._pendingLayoutComplete = null;
675
- }
676
- /**
677
- * Render and update the view at the next opportunity with the given
678
- * hostElement size.
679
- */
680
- _hostElementSizeChanged() {
681
- this._schedule(this._updateLayout);
682
- }
683
- // TODO (graynorton): Rethink how this works. Probably child loading is too specific
684
- // to have dedicated support for; might want some more generic lifecycle hooks for
685
- // layouts to use. Possibly handle measurement this way, too, or maybe that remains
686
- // a first-class feature?
687
- _childLoaded() {
688
- }
689
- // This is the callback for the ResizeObserver that watches the
690
- // virtualizer's children. We land here at the end of every virtualizer
691
- // update cycle that results in changes to physical items, and we also
692
- // end up here if one or more children change size independently of
693
- // the virtualizer update cycle.
694
- _childrenSizeChanged(o) {
695
- var t;
696
- if ((t = this._layout) != null && t.measureChildren) {
697
- for (const e of o)
698
- this._toBeMeasured.set(e.target, e.contentRect);
699
- this._measureChildren();
700
- }
701
- this._scheduleLayoutComplete(), this._itemsChanged = !1, this._rangeChanged = !1;
702
- }
703
- }
704
- function So(n) {
705
- const o = window.getComputedStyle(n);
706
- return {
707
- marginTop: A(o.marginTop),
708
- marginRight: A(o.marginRight),
709
- marginBottom: A(o.marginBottom),
710
- marginLeft: A(o.marginLeft)
711
- };
712
- }
713
- function A(n) {
714
- const o = n ? parseFloat(n) : NaN;
715
- return Number.isNaN(o) ? 0 : o;
716
- }
717
- function N(n) {
718
- if (n.assignedSlot !== null)
719
- return n.assignedSlot;
720
- if (n.parentElement !== null)
721
- return n.parentElement;
722
- const o = n.parentNode;
723
- return o && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE && o.host || null;
724
- }
725
- function Oo(n, o = !1) {
726
- const t = [];
727
- let e = o ? n : N(n);
728
- for (; e !== null; )
729
- t.push(e), e = N(e);
730
- return t;
731
- }
732
- function Io(n, o = !1) {
733
- let t = !1;
734
- return Oo(n, o).filter((e) => {
735
- if (t)
736
- return !1;
737
- const i = getComputedStyle(e);
738
- return t = i.position === "fixed", i.overflow !== "visible";
739
- });
740
- }
741
- /**
742
- * @license
743
- * Copyright 2021 Google LLC
744
- * SPDX-License-Identifier: BSD-3-Clause
745
- */
746
- const J = (n) => n, X = (n, o) => g`${o}: ${JSON.stringify(n, null, 2)}`;
747
- class Ao extends ho {
748
- constructor(o) {
749
- if (super(o), this._virtualizer = null, this._first = 0, this._last = -1, this._renderItem = (t, e) => X(t, e + this._first), this._keyFunction = (t, e) => J(t, e + this._first), this._items = [], o.type !== K.CHILD)
750
- throw new Error("The virtualize directive can only be used in child expressions");
751
- }
752
- render(o) {
753
- o && this._setFunctions(o);
754
- const t = [];
755
- if (this._first >= 0 && this._last >= this._first)
756
- for (let e = this._first; e <= this._last; e++)
757
- t.push(this._items[e]);
758
- return Z(t, this._keyFunction, this._renderItem);
759
- }
760
- update(o, [t]) {
761
- this._setFunctions(t);
762
- const e = this._items !== t.items;
763
- return this._items = t.items || [], this._virtualizer ? this._updateVirtualizerConfig(o, t) : this._initialize(o, t), e ? H : this.render();
764
- }
765
- async _updateVirtualizerConfig(o, t) {
766
- if (!await this._virtualizer.updateLayoutConfig(t.layout || {})) {
767
- const i = o.parentNode;
768
- this._makeVirtualizer(i, t);
769
- }
770
- this._virtualizer.items = this._items;
771
- }
772
- _setFunctions(o) {
773
- const { renderItem: t, keyFunction: e } = o;
774
- t && (this._renderItem = (i, l) => t(i, l + this._first)), e && (this._keyFunction = (i, l) => e(i, l + this._first));
775
- }
776
- _makeVirtualizer(o, t) {
777
- this._virtualizer && this._virtualizer.disconnected();
778
- const { layout: e, scroller: i, items: l } = t;
779
- this._virtualizer = new Eo({ hostElement: o, layout: e, scroller: i }), this._virtualizer.items = l, this._virtualizer.connected();
780
- }
781
- _initialize(o, t) {
782
- const e = o.parentNode;
783
- e && e.nodeType === 1 && (e.addEventListener("rangeChanged", (i) => {
784
- this._first = i.first, this._last = i.last, this.setValue(this.render());
785
- }), this._makeVirtualizer(e, t));
786
- }
787
- disconnected() {
788
- var o;
789
- (o = this._virtualizer) == null || o.disconnected();
790
- }
791
- reconnected() {
792
- var o;
793
- (o = this._virtualizer) == null || o.connected();
794
- }
795
- }
796
- const Lo = q(Ao);
797
- /**
798
- * @license
799
- * Copyright 2021 Google LLC
800
- * SPDX-License-Identifier: BSD-3-Clause
801
- */
802
- class E extends oo {
803
- constructor() {
804
- super(...arguments), this.items = [], this.renderItem = X, this.keyFunction = J, this.layout = {}, this.scroller = !1;
805
- }
806
- createRenderRoot() {
807
- return this;
808
- }
809
- render() {
810
- const { items: o, renderItem: t, keyFunction: e, layout: i, scroller: l } = this;
811
- return g`${Lo({
812
- items: o,
813
- renderItem: t,
814
- keyFunction: e,
815
- layout: i,
816
- scroller: l
817
- })}`;
818
- }
819
- element(o) {
820
- var t;
821
- return (t = this[B]) == null ? void 0 : t.element(o);
822
- }
823
- get layoutComplete() {
824
- var o;
825
- return (o = this[B]) == null ? void 0 : o.layoutComplete;
826
- }
827
- /**
828
- * This scrollToIndex() shim is here to provide backwards compatibility with other 0.x versions of
829
- * lit-virtualizer. It is deprecated and will likely be removed in the 1.0.0 release.
830
- */
831
- scrollToIndex(o, t = "start") {
832
- var e;
833
- (e = this.element(o)) == null || e.scrollIntoView({ block: t });
834
- }
835
- }
836
- O([
837
- f({ attribute: !1 })
838
- ], E.prototype, "items", void 0);
839
- O([
840
- f()
841
- ], E.prototype, "renderItem", void 0);
842
- O([
843
- f()
844
- ], E.prototype, "keyFunction", void 0);
845
- O([
846
- f({ attribute: !1 })
847
- ], E.prototype, "layout", void 0);
848
- O([
849
- f({ reflect: !0, type: Boolean })
850
- ], E.prototype, "scroller", void 0);
851
- /**
852
- * @license
853
- * Copyright 2021 Google LLC
854
- * SPDX-License-Identifier: BSD-3-Clause
855
- */
856
- customElements.define("lit-virtualizer", E);
857
- const To = ":host{--options-divider-thickness: var( --divider-thickness-medium, var(--luzmo-border-width) );inline-size:auto;margin-block:var(--luzmo-options-section-divider-margin-block, max(0px, (var(--option-section-divider-height) - var(--options-divider-thickness)) / 2));margin-inline:var(--luzmo-option-label-inline-edge-to-content, var(--option-label-inline-edge-to-content));overflow:visible}:host{display:block;flex-shrink:0}";
858
- class Vo extends G(W, {
209
+ ], p.prototype, "noWrap", 2);
210
+ m([
211
+ O(".anchor")
212
+ ], p.prototype, "anchorElement", 2);
213
+ const Z = ":host{--options-divider-thickness: var( --divider-thickness-medium, var(--luzmo-border-width) );inline-size:auto;margin-block:var(--luzmo-options-section-divider-margin-block, max(0px, (var(--option-section-divider-height) - var(--options-divider-thickness)) / 2));margin-inline:var(--luzmo-option-label-inline-edge-to-content, var(--option-label-inline-edge-to-content));overflow:visible}:host{display:block;flex-shrink:0}";
214
+ class J extends E(S, {
859
215
  validSizes: ["s", "m", "l"]
860
216
  }) {
861
217
  static get styles() {
862
- return [T(vo), T(To)];
218
+ return [w(K), w(Z)];
863
219
  }
864
220
  firstUpdated(o) {
865
221
  super.firstUpdated(o), this.setAttribute("role", "separator");
866
222
  }
867
223
  }
868
- const Ro = ":host{--option-top-to-action: var(--luzmo-spacing-1);--option-top-to-checkbox: var(--luzmo-spacing-1);--option-label-line-height: var(--luzmo-line-height);--option-label-line-height-cjk: 1.5;--option-label-to-description-spacing: 1px;--option-focus-indicator-width: var(--luzmo-indicator-width);--option-focus-indicator-color: var(--luzmo-indicator-color);--option-label-to-value-area-min-spacing: var(--luzmo-spacing-3);--option-label-content-color-default: var(--luzmo-font-color);--option-label-content-color-hover: var(--luzmo-font-color-hover);--option-label-content-color-down: var(--luzmo-font-color-down);--option-label-content-color-focus: var(--luzmo-font-color-focus);--option-label-icon-color-default: var(--luzmo-font-color);--option-label-icon-color-hover: var(--luzmo-font-color-hover);--option-label-icon-color-down: var(--luzmo-font-color-down);--option-label-icon-color-focus: var(--luzmo-font-color-focus);--option-highlight-selected-label-background-color: var(--luzmo-primary);--option-highlight-selected-label-content-color: var( --luzmo-primary-inverse-color );--option-highlight-selected-label-content-color-hover: var( --luzmo-primary-inverse-color );--option-highlight-selected-label-content-color-down: var( --luzmo-primary-inverse-color );--option-highlight-selected-label-content-color-focus: var( --luzmo-primary-inverse-color );--option-label-content-color-disabled: var(--luzmo-font-color-disabled);--option-label-icon-color-disabled: var(--luzmo-font-color-disabled);--option-description-line-height: var(--luzmo-line-height);--option-description-line-height-cjk: 1.5;--option-description-color-default: var(--luzmo-font-color);--option-description-color-hover: var(--luzmo-font-color-hover);--option-description-color-down: var(--luzmo-font-color-down);--option-description-color-focus: var(--luzmo-font-color-focus);--option-description-color-disabled: var(--luzmo-disabled-color);--options-section-header-line-height: var(--luzmo-line-height);--options-section-header-line-height-cjk: 1.5;--options-section-header-font-weight: bold;--options-section-header-color: var(--luzmo-font-color-hard);--options-collapsible-icon-color: var(--luzmo-font-color-hard);--options-checkmark-icon-color-default: var(--luzmo-font-color);--options-checkmark-icon-color-hover: var(--luzmo-font-color-hover);--options-checkmark-icon-color-down: var(--luzmo-font-color-down);--options-checkmark-icon-color-focus: var(--luzmo-font-color-focus);--options-checkbox-icon-color-default: var(--luzmo-font-color);--options-checkbox-icon-color-hover: var(--luzmo-font-color-hover);--options-checkbox-icon-color-down: var(--luzmo-font-color-down);--options-checkbox-icon-color-focus: var(--luzmo-font-color-focus);--options-drillin-icon-color-default: var(--luzmo-font-color);--options-drillin-icon-color-hover: var(--luzmo-font-color-hover);--options-drillin-icon-color-down: var(--luzmo-font-color-down);--options-drillin-icon-color-focus: var(--luzmo-font-color-focus);--option-value-color-default: var(--luzmo-font-color);--option-value-color-hover: var(--luzmo-font-color-hover);--option-value-color-down: var(--luzmo-font-color-down);--option-value-color-focus: var(--luzmo-font-color-focus);--option-collapsible-no-icon-suboption-padding-x-start: 28px;--option-background-color-selected: var(--luzmo-background-color);--option-background-color-default: var(--luzmo-background-color);--option-background-color-hover: var(--luzmo-background-color-hover);--option-background-color-down: var(--luzmo-background-color-down);--option-background-color-key-focus: var(--luzmo-background-color-focus)}:host{--option-min-height: var(--luzmo-component-height);--option-icon-container-height: 18px;--options-pending-height: var(--option-min-height);--progress-circle-size: calc( var(--options-pending-height) - var(--option-top-edge-to-text) - var( --option-bottom-edge-to-text ) );--option-icon-height: var(--luzmo-font-size-l);--option-icon-width: var(--luzmo-font-size-l);--option-label-font-size: var(--luzmo-font-size);--option-label-text-to-visual: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-label-text-to-control: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-label-inline-edge-to-content: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--pending-inline-edge-to-content: var(--option-label-inline-edge-to-content);--option-top-edge-to-text: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--option-bottom-edge-to-text: var(--luzmo-spacing-3);--option-description-font-size: var(--luzmo-font-size-xs);--options-section-header-font-size: var(--luzmo-font-size);--options-section-header-min-width: var(--luzmo-component-height);--option-selectable-edge-to-text-not-selected: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-checkmark-size: var(--luzmo-font-size-xs);--option-checkbox-size: var(--luzmo-font-size-xs);--option-top-to-checkmark: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-top-to-checkbox: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) )}:host([size=s]){--option-min-height: var(--luzmo-component-height-s);--option-icon-container-height: 17px;--option-icon-height: var(--luzmo-font-size);--option-icon-width: var(--luzmo-font-size);--option-label-font-size: var(--luzmo-font-size-s);--option-label-text-to-visual: var(--luzmo-spacing-3);--option-label-text-to-control: var(--luzmo-spacing-3);--option-label-inline-edge-to-content: var(--luzmo-spacing-3);--option-top-edge-to-text: calc( var(--luzmo-spacing-1) + var(--luzmo-spacing-2) );--option-bottom-edge-to-text: var(--luzmo-spacing-2);--option-description-font-size: var(--luzmo-font-size-xs);--options-section-header-font-size: var(--luzmo-font-size-s);--options-section-header-min-width: var(--luzmo-component-height-s);--option-selectable-edge-to-text-not-selected: var(--luzmo-spacing-3);--option-checkmark-size: var(--luzmo-font-size-xs);--option-checkbox-size: var(--luzmo-font-size-xs);--option-top-to-checkmark: var(--luzmo-spacing-3);--option-top-to-checkbox: var(--luzmo-spacing-3)}:host([size=l]){--option-min-height: var(--luzmo-component-height-l);--option-icon-container-height: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--option-icon-height: var(--luzmo-font-size-l);--option-icon-width: var(--luzmo-font-size-l);--option-label-font-size: var(--luzmo-font-size-l);--option-label-text-to-visual: var(--luzmo-spacing-4);--option-label-text-to-control: var(--luzmo-spacing-4);--option-label-inline-edge-to-content: var(--luzmo-spacing-4);--option-top-edge-to-text: var(--luzmo-spacing-4);--option-bottom-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-description-font-size: var(--luzmo-font-size-s);--options-section-header-font-size: var(--luzmo-font-size-l);--options-section-header-min-width: var(--luzmo-component-height-l);--option-selectable-edge-to-text-not-selected: var(--luzmo-spacing-4);--option-checkmark-size: var(--luzmo-font-size-s);--option-checkbox-size: var(--luzmo-font-size-s);--option-top-to-checkmark: var(--luzmo-spacing-4);--option-top-to-checkbox: var(--luzmo-spacing-4)}:host([size=xl]){--option-min-height: var(--luzmo-component-height-xl);--option-icon-container-height: 26px;--option-icon-height: var(--luzmo-font-size-xl);--option-icon-width: var(--luzmo-font-size-xl);--option-label-font-size: var(--luzmo-font-size-xl);--option-label-text-to-visual: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-label-text-to-control: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-label-inline-edge-to-content: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-top-edge-to-text: var(--luzmo-spacing-4);--option-bottom-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-description-font-size: var(--luzmo-font-size);--options-section-header-font-size: var(--luzmo-font-size-xl);--options-section-header-min-width: var(--luzmo-component-height-xl);--option-selectable-edge-to-text-not-selected: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-checkmark-size: var(--luzmo-font-size);--option-checkbox-size: var(--luzmo-font-size);--option-top-to-checkmark: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-top-to-checkbox: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) )}@media (forced-colors: active){:host{--highcontrast-option-background-color-default: ButtonFace;--highcontrast-option-color-default: ButtonText;--highcontrast-option-background-color-focus: Highlight;--highcontrast-option-color-focus: HighlightText;--highcontrast-options-checkmark-icon-color-default: Highlight;--highcontrast-options-checkbox-icon-color-default: Highlight;--highcontrast-option-color-disabled: GrayText;--highcontrast-option-focus-indicator-color: Highlight;--highcontrast-option-selected-background-color: Highlight;--highcontrast-option-selected-color: HighlightText}@supports (color: SelectedItem){:host{--highcontrast-option-selected-background-color: SelectedItem;--highcontrast-option-selected-color: SelectedItemText}}}:host{inline-size:auto;inline-size:var(--luzmo-options-inline-size, auto);box-sizing:border-box;margin:0;padding:0;list-style-type:none;display:inline-block;overflow:auto}:host:lang(ja),:host:lang(ko),:host:lang(zh){--option-label-line-height: var( --luzmo-option-label-line-height-cjk, var(--option-label-line-height-cjk) );--option-description-line-height: var( --luzmo-option-description-line-height-cjk, var(--option-description-line-height-cjk) );--options-section-header-line-height: var( --luzmo-options-section-header-line-height-cjk, var(--options-section-header-line-height-cjk) )}luzmo-option{width:100%}#pending{display:flex;flex-shrink:0;align-items:center;height:var(--options-pending-height);padding-inline:var(--pending-inline-edge-to-content)}:host{display:inline-flex;flex-direction:column;width:100%}:host(:focus){outline:none}::slotted(*){flex-shrink:0}";
869
- var $o = Object.defineProperty, y = (n, o, t, e) => {
870
- for (var i = void 0, l = n.length - 1, s; l >= 0; l--)
871
- (s = n[l]) && (i = s(o, t, i) || i);
872
- return i && $o(o, t, i), i;
224
+ const Q = ":host{--option-top-to-action: var(--luzmo-spacing-1);--option-top-to-checkbox: var(--luzmo-spacing-1);--option-label-line-height: var(--luzmo-line-height);--option-label-line-height-cjk: 1.5;--option-label-to-description-spacing: 1px;--option-focus-indicator-width: var(--luzmo-indicator-width);--option-focus-indicator-color: var(--luzmo-indicator-color);--option-label-to-value-area-min-spacing: var(--luzmo-spacing-3);--option-label-content-color-default: var(--luzmo-font-color);--option-label-content-color-hover: var(--luzmo-font-color-hover);--option-label-content-color-down: var(--luzmo-font-color-down);--option-label-content-color-focus: var(--luzmo-font-color-focus);--option-label-icon-color-default: var(--luzmo-font-color);--option-label-icon-color-hover: var(--luzmo-font-color-hover);--option-label-icon-color-down: var(--luzmo-font-color-down);--option-label-icon-color-focus: var(--luzmo-font-color-focus);--option-highlight-selected-label-background-color: var(--luzmo-primary);--option-highlight-selected-label-content-color: var( --luzmo-primary-inverse-color );--option-highlight-selected-label-content-color-hover: var( --luzmo-primary-inverse-color );--option-highlight-selected-label-content-color-down: var( --luzmo-primary-inverse-color );--option-highlight-selected-label-content-color-focus: var( --luzmo-primary-inverse-color );--option-label-content-color-disabled: var(--luzmo-font-color-disabled);--option-label-icon-color-disabled: var(--luzmo-font-color-disabled);--option-description-line-height: var(--luzmo-line-height);--option-description-line-height-cjk: 1.5;--option-description-color-default: var(--luzmo-font-color);--option-description-color-hover: var(--luzmo-font-color-hover);--option-description-color-down: var(--luzmo-font-color-down);--option-description-color-focus: var(--luzmo-font-color-focus);--option-description-color-disabled: var(--luzmo-disabled-color);--options-section-header-line-height: var(--luzmo-line-height);--options-section-header-line-height-cjk: 1.5;--options-section-header-font-weight: bold;--options-section-header-color: var(--luzmo-font-color-down);--options-collapsible-icon-color: var(--luzmo-font-color-down);--options-checkmark-icon-color-default: var(--luzmo-font-color);--options-checkmark-icon-color-hover: var(--luzmo-font-color-hover);--options-checkmark-icon-color-down: var(--luzmo-font-color-down);--options-checkmark-icon-color-focus: var(--luzmo-font-color-focus);--options-checkbox-icon-color-default: var(--luzmo-font-color);--options-checkbox-icon-color-hover: var(--luzmo-font-color-hover);--options-checkbox-icon-color-down: var(--luzmo-font-color-down);--options-checkbox-icon-color-focus: var(--luzmo-font-color-focus);--options-drillin-icon-color-default: var(--luzmo-font-color);--options-drillin-icon-color-hover: var(--luzmo-font-color-hover);--options-drillin-icon-color-down: var(--luzmo-font-color-down);--options-drillin-icon-color-focus: var(--luzmo-font-color-focus);--option-value-color-default: var(--luzmo-font-color);--option-value-color-hover: var(--luzmo-font-color-hover);--option-value-color-down: var(--luzmo-font-color-down);--option-value-color-focus: var(--luzmo-font-color-focus);--option-collapsible-no-icon-suboption-padding-x-start: 28px;--option-background-color-selected: var(--luzmo-background-color);--option-background-color-default: var(--luzmo-background-color);--option-background-color-hover: var(--luzmo-background-color-hover);--option-background-color-down: var(--luzmo-background-color-down);--option-background-color-key-focus: var(--luzmo-background-color-focus)}:host{--option-min-height: var(--luzmo-component-height);--option-icon-container-height: 18px;--options-pending-height: var(--option-min-height);--progress-circle-size: calc( var(--options-pending-height) - var(--option-top-edge-to-text) - var( --option-bottom-edge-to-text ) );--option-icon-height: var(--luzmo-font-size);--option-icon-width: var(--luzmo-font-size);--option-label-font-size: var(--luzmo-font-size);--option-label-text-to-visual: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-label-text-to-control: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-label-inline-edge-to-content: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--pending-inline-edge-to-content: var(--option-label-inline-edge-to-content);--option-top-edge-to-text: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--option-bottom-edge-to-text: var(--luzmo-spacing-3);--option-description-font-size: var(--luzmo-font-size-xs);--options-section-header-font-size: var(--luzmo-font-size);--options-section-header-min-width: var(--luzmo-component-height);--option-selectable-edge-to-text-not-selected: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-checkmark-size: var(--luzmo-font-size-xs);--option-checkbox-size: var(--luzmo-font-size-xs);--option-top-to-checkmark: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-top-to-checkbox: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) )}:host([size=s]){--option-min-height: var(--luzmo-component-height-s);--option-icon-container-height: 17px;--option-icon-height: var(--luzmo-font-size-s);--option-icon-width: var(--luzmo-font-size-s);--option-label-font-size: var(--luzmo-font-size-s);--option-label-text-to-visual: var(--luzmo-spacing-3);--option-label-text-to-control: var(--luzmo-spacing-3);--option-label-inline-edge-to-content: var(--luzmo-spacing-3);--option-top-edge-to-text: calc( var(--luzmo-spacing-1) + var(--luzmo-spacing-2) );--option-bottom-edge-to-text: var(--luzmo-spacing-2);--option-description-font-size: var(--luzmo-font-size-xs);--options-section-header-font-size: var(--luzmo-font-size-s);--options-section-header-min-width: var(--luzmo-component-height-s);--option-selectable-edge-to-text-not-selected: var(--luzmo-spacing-3);--option-checkmark-size: var(--luzmo-font-size-xs);--option-checkbox-size: var(--luzmo-font-size-xs);--option-top-to-checkmark: var(--luzmo-spacing-3);--option-top-to-checkbox: var(--luzmo-spacing-3)}:host([size=l]){--option-min-height: var(--luzmo-component-height-l);--option-icon-container-height: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--option-icon-height: var(--luzmo-font-size-l);--option-icon-width: var(--luzmo-font-size-l);--option-label-font-size: var(--luzmo-font-size-l);--option-label-text-to-visual: var(--luzmo-spacing-4);--option-label-text-to-control: var(--luzmo-spacing-4);--option-label-inline-edge-to-content: var(--luzmo-spacing-4);--option-top-edge-to-text: var(--luzmo-spacing-4);--option-bottom-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-description-font-size: var(--luzmo-font-size-s);--options-section-header-font-size: var(--luzmo-font-size-l);--options-section-header-min-width: var(--luzmo-component-height-l);--option-selectable-edge-to-text-not-selected: var(--luzmo-spacing-4);--option-checkmark-size: var(--luzmo-font-size-s);--option-checkbox-size: var(--luzmo-font-size-s);--option-top-to-checkmark: var(--luzmo-spacing-4);--option-top-to-checkbox: var(--luzmo-spacing-4)}:host([size=xl]){--option-min-height: var(--luzmo-component-height-xl);--option-icon-container-height: 26px;--option-icon-height: var(--luzmo-font-size-xl);--option-icon-width: var(--luzmo-font-size-xl);--option-label-font-size: var(--luzmo-font-size-xl);--option-label-text-to-visual: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-label-text-to-control: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-label-inline-edge-to-content: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-top-edge-to-text: var(--luzmo-spacing-4);--option-bottom-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--option-description-font-size: var(--luzmo-font-size);--options-section-header-font-size: var(--luzmo-font-size-xl);--options-section-header-min-width: var(--luzmo-component-height-xl);--option-selectable-edge-to-text-not-selected: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-checkmark-size: var(--luzmo-font-size);--option-checkbox-size: var(--luzmo-font-size);--option-top-to-checkmark: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--option-top-to-checkbox: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) )}@media (forced-colors: active){:host{--highcontrast-option-background-color-default: ButtonFace;--highcontrast-option-color-default: ButtonText;--highcontrast-option-background-color-focus: Highlight;--highcontrast-option-color-focus: HighlightText;--highcontrast-options-checkmark-icon-color-default: Highlight;--highcontrast-options-checkbox-icon-color-default: Highlight;--highcontrast-option-color-disabled: GrayText;--highcontrast-option-focus-indicator-color: Highlight;--highcontrast-option-selected-background-color: Highlight;--highcontrast-option-selected-color: HighlightText}@supports (color: SelectedItem){:host{--highcontrast-option-selected-background-color: SelectedItem;--highcontrast-option-selected-color: SelectedItemText}}}:host{inline-size:auto;inline-size:var(--luzmo-options-inline-size, auto);box-sizing:border-box;margin:0;padding:0;list-style-type:none;display:inline-block;overflow:auto}:host:lang(ja),:host:lang(ko),:host:lang(zh){--option-label-line-height: var( --luzmo-option-label-line-height-cjk, var(--option-label-line-height-cjk) );--option-description-line-height: var( --luzmo-option-description-line-height-cjk, var(--option-description-line-height-cjk) );--options-section-header-line-height: var( --luzmo-options-section-header-line-height-cjk, var(--options-section-header-line-height-cjk) )}luzmo-option{width:100%}#pending{display:flex;flex-shrink:0;align-items:center;height:var(--options-pending-height);padding-inline:var(--pending-inline-edge-to-content)}:host{display:inline-flex;flex-direction:column;width:100%}:host(:focus){outline:none}::slotted(*){flex-shrink:0}";
225
+ var X = Object.defineProperty, g = (a, o, t, i) => {
226
+ for (var l = void 0, n = a.length - 1, r; n >= 0; n--)
227
+ (r = a[n]) && (l = r(o, t, l) || l);
228
+ return l && X(o, t, l), l;
873
229
  };
874
- const Fo = 25;
875
- function Mo(n, o) {
876
- return !!o && (n === o || n.contains(o));
230
+ const Y = 25;
231
+ function oo(a, o) {
232
+ return !!o && (a === o || a.contains(o));
877
233
  }
878
- class z extends G(W, {
234
+ class v extends E(S, {
879
235
  noDefaultSize: !0
880
236
  }) {
881
237
  constructor() {
@@ -885,26 +241,26 @@ class z extends G(W, {
885
241
  * @internal
886
242
  */
887
243
  static get styles() {
888
- return [T(Ro)];
244
+ return [w(Q)];
889
245
  }
890
246
  /**
891
247
  * @internal
892
248
  */
893
249
  get _virtualizeActive() {
894
- return this.options.length > Fo;
250
+ return this.options.length > Y;
895
251
  }
896
252
  firstUpdated(o) {
897
253
  super.firstUpdated(o), this.hasAttribute("tabindex") || (this.tabIndex = 0);
898
254
  const t = [
899
- new Promise((e) => requestAnimationFrame(() => e(!0)))
255
+ new Promise((i) => requestAnimationFrame(() => i(!0)))
900
256
  ];
901
- [...this.children].forEach((e) => {
902
- e.localName === "luzmo-option" && t.push(e.updateComplete);
257
+ [...this.children].forEach((i) => {
258
+ i.localName === "luzmo-option" && t.push(i.updateComplete);
903
259
  }), this.optionElementsUpdated = Promise.all(t);
904
260
  }
905
261
  willUpdate(o) {
906
- var e;
907
- o.has("selects") && this.selects === "single" && ((e = this.value) == null ? void 0 : e.length) > 1 && (this.value = this.value.slice(0, 1));
262
+ var i;
263
+ o.has("selects") && this.selects === "single" && ((i = this.value) == null ? void 0 : i.length) > 1 && (this.value = this.value.slice(0, 1));
908
264
  }
909
265
  updated(o) {
910
266
  super.updated(o), o.has("label") && (this.label || o.get("label") !== void 0) && (this.label ? this.setAttribute("aria-label", this.label) : this.removeAttribute("aria-label"));
@@ -931,7 +287,7 @@ class z extends G(W, {
931
287
  }
932
288
  // when the focus is lost in the options menu, we need to remove the focus from the item, stop listening to keyboard events and clean up the aria-activedescendant
933
289
  handleBlur(o) {
934
- Mo(this, o.relatedTarget) || (this.stopListeningToKeyboard(), this._removeFocusedPropertyOnOptions(), this.removeAttribute("aria-activedescendant"));
290
+ oo(this, o.relatedTarget) || (this.stopListeningToKeyboard(), this._removeFocusedPropertyOnOptions(), this.removeAttribute("aria-activedescendant"));
935
291
  }
936
292
  startListeningToKeyboard() {
937
293
  this.addEventListener("keydown", this.handleKeydown);
@@ -940,70 +296,70 @@ class z extends G(W, {
940
296
  this.removeEventListener("keydown", this.handleKeydown);
941
297
  }
942
298
  handleKeydown(o) {
943
- var l;
299
+ var n;
944
300
  if (o.defaultPrevented)
945
301
  return;
946
- const t = this.focusedOptionIndex, e = [...this.visibleOptionElements].find(
947
- (s) => {
948
- var r, a, c, m;
949
- return ((r = s.value) == null ? void 0 : r.toString()) === ((m = (c = (a = this.options) == null ? void 0 : a[t]) == null ? void 0 : c.value) == null ? void 0 : m.toString());
302
+ const t = this.focusedOptionIndex, i = [...this.visibleOptionElements].find(
303
+ (r) => {
304
+ var e, h, d, c;
305
+ return ((e = r.value) == null ? void 0 : e.toString()) === ((c = (d = (h = this.options) == null ? void 0 : h[t]) == null ? void 0 : d.value) == null ? void 0 : c.toString());
950
306
  }
951
- ), { key: i } = o;
952
- if (i === "Tab") {
307
+ ), { key: l } = o;
308
+ if (l === "Tab") {
953
309
  this.prepareToCleanUp();
954
310
  return;
955
311
  }
956
- if (i === " " || i === "Enter") {
957
- o.preventDefault(), e && this.toggleOption(o, (l = this.options) == null ? void 0 : l[t]);
312
+ if (l === " " || l === "Enter") {
313
+ o.preventDefault(), i && this.toggleOption(o, (n = this.options) == null ? void 0 : n[t]);
958
314
  return;
959
315
  }
960
- if (i === "ArrowDown" || i === "ArrowUp") {
961
- o.preventDefault(), this.navigateWithinOptions(o, e);
316
+ if (l === "ArrowDown" || l === "ArrowUp") {
317
+ o.preventDefault(), this.navigateWithinOptions(o, i);
962
318
  return;
963
319
  }
964
320
  }
965
321
  navigateWithinOptions(o, t) {
966
- const { key: e } = o, i = e === "ArrowDown" ? 1 : -1;
322
+ const { key: i } = o, l = i === "ArrowDown" ? 1 : -1;
967
323
  o.preventDefault(), o.stopPropagation();
968
- const l = this.focusOptionByOffset(
969
- i,
324
+ const n = this.focusOptionByOffset(
325
+ l,
970
326
  t,
971
327
  !0
972
328
  );
973
- l !== t && (this._virtualizeActive || l == null || l.scrollIntoView({ block: "nearest" }));
329
+ n !== t && (this._virtualizeActive || n == null || n.scrollIntoView({ block: "nearest" }));
974
330
  }
975
- focusOptionByOffset(o, t, e) {
976
- var u;
977
- const i = o || 1;
331
+ focusOptionByOffset(o, t, i) {
332
+ var x;
333
+ const l = o || 1;
978
334
  t && (t.focused = !1);
979
- const l = this.focusedOptionIndex;
335
+ const n = this.focusedOptionIndex;
980
336
  this.focusedOptionIndex = this.options.length > 0 ? (this.options.length + this.focusedOptionIndex + o) % this.options.length : 0;
981
- let s = this.options[this.focusedOptionIndex], r = this.options.length;
982
- for (; (s != null && s.disabled || s != null && s.divider) && r; )
983
- r -= 1, this.focusedOptionIndex = (this.options.length + this.focusedOptionIndex + i) % this.options.length, s = this.options[this.focusedOptionIndex];
984
- const a = l < this.focusedOptionIndex && o === -1, c = l > this.focusedOptionIndex && o === 1;
985
- (a || c) && (this.focusedOptionIndex = l, this.dispatchEvent(
986
- new Event(`luzmo-exceeded-${a ? "top" : "bottom"}`, {
337
+ let r = this.options[this.focusedOptionIndex], e = this.options.length;
338
+ for (; (r != null && r.disabled || r != null && r.divider) && e; )
339
+ e -= 1, this.focusedOptionIndex = (this.options.length + this.focusedOptionIndex + l) % this.options.length, r = this.options[this.focusedOptionIndex];
340
+ const h = n < this.focusedOptionIndex && o === -1, d = n > this.focusedOptionIndex && o === 1;
341
+ (h || d) && (this.focusedOptionIndex = n, this.dispatchEvent(
342
+ new Event(`luzmo-exceeded-${h ? "top" : "bottom"}`, {
987
343
  bubbles: !0,
988
344
  composed: !0,
989
345
  cancelable: !0
990
346
  })
991
347
  ));
992
- let m;
993
- return e && this._virtualizeActive && (m = [...this.visibleOptionElements].find(
994
- (d) => {
995
- var h, p, v;
996
- return ((h = d.value) == null ? void 0 : h.toString()) === ((v = (p = this.options[this.focusedOptionIndex]) == null ? void 0 : p.value) == null ? void 0 : v.toString());
348
+ let c;
349
+ return i && this._virtualizeActive && (c = [...this.visibleOptionElements].find(
350
+ (b) => {
351
+ var z, k, f;
352
+ return ((z = b.value) == null ? void 0 : z.toString()) === ((f = (k = this.options[this.focusedOptionIndex]) == null ? void 0 : k.value) == null ? void 0 : f.toString());
997
353
  }
998
- ), m || (this.focusedOptionIndex = this._firstVisibleIndex)), this._virtualizeActive && e && ((u = this.virtualizer.element(this.focusedOptionIndex)) == null || u.scrollIntoView({
354
+ ), c || (this.focusedOptionIndex = this._firstVisibleIndex)), this._virtualizeActive && i && ((x = this.virtualizer.element(this.focusedOptionIndex)) == null || x.scrollIntoView({
999
355
  behavior: "smooth",
1000
356
  block: "nearest"
1001
- })), m = m ?? [...this.visibleOptionElements].find(
1002
- (d) => {
1003
- var h, p, v, k, x;
1004
- return (d.value === null ? null : (h = d.value) == null ? void 0 : h.toString()) === (((p = this.options[this.focusedOptionIndex]) == null ? void 0 : p.value) === null ? (v = this.options[this.focusedOptionIndex]) == null ? void 0 : v.value : (x = (k = this.options[this.focusedOptionIndex]) == null ? void 0 : k.value) == null ? void 0 : x.toString());
357
+ })), c = c ?? [...this.visibleOptionElements].find(
358
+ (b) => {
359
+ var z, k, f, I, C;
360
+ return (b.value === null ? null : (z = b.value) == null ? void 0 : z.toString()) === (((k = this.options[this.focusedOptionIndex]) == null ? void 0 : k.value) === null ? (f = this.options[this.focusedOptionIndex]) == null ? void 0 : f.value : (C = (I = this.options[this.focusedOptionIndex]) == null ? void 0 : I.value) == null ? void 0 : C.toString());
1005
361
  }
1006
- ), s != null && s.disabled || this.setFocusedAndActiveDescendant(m), m;
362
+ ), r != null && r.disabled || this.setFocusedAndActiveDescendant(c), c;
1007
363
  }
1008
364
  updateSelectedItemIndex() {
1009
365
  this.focusedOptionIndex = this._virtualizeActive ? this._firstVisibleIndex : 0;
@@ -1033,21 +389,21 @@ class z extends G(W, {
1033
389
  );
1034
390
  }
1035
391
  async toggleOption(o, t) {
1036
- var s;
1037
- const e = o instanceof KeyboardEvent, i = this.options.findIndex(
1038
- (r) => (r == null ? void 0 : r.value) === (t == null ? void 0 : t.value)
392
+ var r;
393
+ const i = o instanceof KeyboardEvent, l = this.options.findIndex(
394
+ (e) => (e == null ? void 0 : e.value) === (t == null ? void 0 : t.value)
1039
395
  );
1040
- this.focusedOptionIndex = i, this.visibleOptionElements.forEach((r) => {
1041
- var a, c;
1042
- if (e) {
1043
- const m = ((r == null ? void 0 : r.value) === null ? null : (a = r.value) == null ? void 0 : a.toString()) === ((t == null ? void 0 : t.value) === null ? null : (c = t == null ? void 0 : t.value) == null ? void 0 : c.toString());
1044
- r.focused = m, m && this.setFocusedAndActiveDescendant(r);
396
+ this.focusedOptionIndex = l, this.visibleOptionElements.forEach((e) => {
397
+ var h, d;
398
+ if (i) {
399
+ const c = ((e == null ? void 0 : e.value) === null ? null : (h = e.value) == null ? void 0 : h.toString()) === ((t == null ? void 0 : t.value) === null ? null : (d = t == null ? void 0 : t.value) == null ? void 0 : d.toString());
400
+ e.focused = c, c && this.setFocusedAndActiveDescendant(e);
1045
401
  } else
1046
- r.focused = !1;
402
+ e.focused = !1;
1047
403
  });
1048
- const l = Array.isArray(this.value) && ((s = this.value) == null ? void 0 : s.includes((t == null ? void 0 : t.value) ?? null));
1049
- this.selects === "single" ? (this.value = [t == null ? void 0 : t.value], this._selectedOptions = [t]) : (this.value = l ? this.value.filter((r) => r !== (t == null ? void 0 : t.value)) : [...this.value ?? [], t == null ? void 0 : t.value], this._selectedOptions = l ? this._selectedOptions.filter(
1050
- (r) => r.value !== t.value
404
+ const n = Array.isArray(this.value) && ((r = this.value) == null ? void 0 : r.includes((t == null ? void 0 : t.value) ?? null));
405
+ this.selects === "single" ? (this.value = [t == null ? void 0 : t.value], this._selectedOptions = [t]) : (this.value = n ? this.value.filter((e) => e !== (t == null ? void 0 : t.value)) : [...this.value ?? [], t == null ? void 0 : t.value], this._selectedOptions = n ? this._selectedOptions.filter(
406
+ (e) => e.value !== t.value
1051
407
  ) : [...this._selectedOptions, t]), await this.updateComplete, this.dispatchEvent(
1052
408
  new CustomEvent("change", {
1053
409
  bubbles: !0,
@@ -1063,40 +419,40 @@ class z extends G(W, {
1063
419
  this.toggleOption(t, o);
1064
420
  }
1065
421
  render() {
1066
- const o = (r) => g`<luzmo-icon
422
+ const o = (e) => u`<luzmo-icon
1067
423
  slot="icon"
1068
- .icon=${r}
424
+ .icon=${e}
1069
425
  .size=${this.size}
1070
- ></luzmo-icon>`, t = (r) => g`<span slot="description">${r}</span>`, e = (r) => g`<luzmo-icon
426
+ ></luzmo-icon>`, t = (e) => u`<span slot="description">${e}</span>`, i = (e) => u`<luzmo-icon
1071
427
  slot="icon"
1072
- .src=${r}
428
+ .src=${e}
1073
429
  .size=${this.size}
1074
- ></luzmo-icon>`, i = (r) => {
1075
- var v;
1076
- const a = r == null ? void 0 : r.value, c = r == null ? void 0 : r.label, m = r == null ? void 0 : r.description, u = r == null ? void 0 : r.icon, d = r == null ? void 0 : r.imgSrc, h = r == null ? void 0 : r.divider, p = typeof r == "string" || r == null ? void 0 : r.disabled;
1077
- return h ? g`<luzmo-options-divider></luzmo-options-divider>` : g`<luzmo-option
1078
- .value=${a}
430
+ ></luzmo-icon>`, l = (e) => {
431
+ var f;
432
+ const h = e == null ? void 0 : e.value, d = e == null ? void 0 : e.label, c = e == null ? void 0 : e.description, x = e == null ? void 0 : e.icon, b = e == null ? void 0 : e.imgSrc, z = e == null ? void 0 : e.divider, k = typeof e == "string" || e == null ? void 0 : e.disabled;
433
+ return z ? u`<luzmo-options-divider></luzmo-options-divider>` : u`<luzmo-option
434
+ .value=${h}
1079
435
  .size=${this.size}
1080
436
  .variant=${this.variant}
1081
437
  ?emphasized=${this.emphasized}
1082
438
  ?no-wrap=${this.noWrap}
1083
- ?disabled=${p}
1084
- .selected=${Array.isArray(this.value) ? (v = this.value) == null ? void 0 : v.includes(a) : !1}
439
+ ?disabled=${k}
440
+ .selected=${Array.isArray(this.value) ? (f = this.value) == null ? void 0 : f.includes(h) : !1}
1085
441
  .role=${this.selects === "single" ? "option" : "optioncheckbox"}
1086
- @click=${this.handleOptionClick.bind(this, r)}
442
+ @click=${this.handleOptionClick.bind(this, e)}
1087
443
  >
1088
- ${u ? o(u) : d ? e(d) : L}
1089
- ${c} ${m ? t(m) : L}
444
+ ${x ? o(x) : b ? i(b) : y}
445
+ ${d} ${c ? t(c) : y}
1090
446
  </luzmo-option>`;
1091
- }, l = this._virtualizeActive ? g`<lit-virtualizer
447
+ }, n = this._virtualizeActive ? u`<lit-virtualizer
1092
448
  .items=${this.options}
1093
- .renderItem=${i}
449
+ .renderItem=${l}
1094
450
  @rangeChanged=${this.rangeChange}
1095
451
  @visibilityChanged=${this.visibilityChanged}
1096
- ></lit-virtualizer>` : Z(this.options, i), s = this.pending ? g`<div id="pending">
452
+ ></lit-virtualizer>` : V(this.options, l), r = this.pending ? u`<div id="pending">
1097
453
  <luzmo-progress-circle indeterminate></luzmo-progress-circle>
1098
- </div>` : L;
1099
- return g`${l} ${s}`;
454
+ </div>` : y;
455
+ return u`${n} ${r}`;
1100
456
  }
1101
457
  connectedCallback() {
1102
458
  super.connectedCallback(), this.setAttribute("role", "listbox"), this.updateComplete.then(() => this.updateItemFocus());
@@ -1119,59 +475,59 @@ class z extends G(W, {
1119
475
  if (this.visibleOptionElements.length === 0)
1120
476
  return;
1121
477
  const o = this.focusedOptionIndex, t = [...this.visibleOptionElements].find(
1122
- (e) => {
1123
- var i, l, s, r, a, c;
1124
- return (e.value === null ? null : (i = e.value) == null ? void 0 : i.toString()) === (((s = (l = this.options) == null ? void 0 : l[o]) == null ? void 0 : s.value) === null ? null : (c = (a = (r = this.options) == null ? void 0 : r[o]) == null ? void 0 : a.value) == null ? void 0 : c.toString());
478
+ (i) => {
479
+ var l, n, r, e, h, d;
480
+ return (i.value === null ? null : (l = i.value) == null ? void 0 : l.toString()) === (((r = (n = this.options) == null ? void 0 : n[o]) == null ? void 0 : r.value) === null ? null : (d = (h = (e = this.options) == null ? void 0 : e[o]) == null ? void 0 : h.value) == null ? void 0 : d.toString());
1125
481
  }
1126
482
  );
1127
483
  this.setFocusedAndActiveDescendant(t);
1128
484
  }
1129
485
  setFocusedAndActiveDescendant(o) {
1130
- var e, i;
486
+ var i, l;
1131
487
  if (!o)
1132
488
  return;
1133
- const t = this.hasVisibleFocusInTree() || !!((e = this.visibleOptionElements) != null && e.some && ((i = this.visibleOptionElements) != null && i.some(
1134
- (l) => l.hasVisibleFocusInTree()
489
+ const t = this.hasVisibleFocusInTree() || !!((i = this.visibleOptionElements) != null && i.some && ((l = this.visibleOptionElements) != null && l.some(
490
+ (n) => n.hasVisibleFocusInTree()
1135
491
  )));
1136
492
  o.focused = t, t && this.setAttribute("aria-activedescendant", o.id);
1137
493
  }
1138
494
  }
1139
- y([
1140
- f({ type: String, reflect: !0 })
1141
- ], z.prototype, "label");
1142
- y([
1143
- f({ type: String, reflect: !0 })
1144
- ], z.prototype, "variant");
1145
- y([
1146
- f({ type: String, reflect: !0 })
1147
- ], z.prototype, "selects");
1148
- y([
1149
- f({ type: Boolean, reflect: !0 })
1150
- ], z.prototype, "emphasized");
1151
- y([
1152
- f({ type: Boolean, reflect: !0 })
1153
- ], z.prototype, "pending");
1154
- y([
1155
- f({ type: Array })
1156
- ], z.prototype, "options");
1157
- y([
1158
- f({ type: Boolean, reflect: !0, attribute: "no-wrap" })
1159
- ], z.prototype, "noWrap");
1160
- y([
1161
- f({ type: Array })
1162
- ], z.prototype, "value");
1163
- y([
1164
- V("lit-virtualizer")
1165
- ], z.prototype, "virtualizer");
1166
- y([
1167
- go("luzmo-option")
1168
- ], z.prototype, "visibleOptionElements");
1169
- customElements.get("luzmo-options") || customElements.define("luzmo-options", z);
1170
- customElements.get("luzmo-options-divider") || customElements.define("luzmo-options-divider", Vo);
1171
- customElements.get("luzmo-option") || customElements.define("luzmo-option", b);
495
+ g([
496
+ s({ type: String, reflect: !0 })
497
+ ], v.prototype, "label");
498
+ g([
499
+ s({ type: String, reflect: !0 })
500
+ ], v.prototype, "variant");
501
+ g([
502
+ s({ type: String, reflect: !0 })
503
+ ], v.prototype, "selects");
504
+ g([
505
+ s({ type: Boolean, reflect: !0 })
506
+ ], v.prototype, "emphasized");
507
+ g([
508
+ s({ type: Boolean, reflect: !0 })
509
+ ], v.prototype, "pending");
510
+ g([
511
+ s({ type: Array })
512
+ ], v.prototype, "options");
513
+ g([
514
+ s({ type: Boolean, reflect: !0, attribute: "no-wrap" })
515
+ ], v.prototype, "noWrap");
516
+ g([
517
+ s({ type: Array })
518
+ ], v.prototype, "value");
519
+ g([
520
+ O("lit-virtualizer")
521
+ ], v.prototype, "virtualizer");
522
+ g([
523
+ U("luzmo-option")
524
+ ], v.prototype, "visibleOptionElements");
525
+ customElements.get("luzmo-options") || customElements.define("luzmo-options", v);
526
+ customElements.get("luzmo-options-divider") || customElements.define("luzmo-options-divider", J);
527
+ customElements.get("luzmo-option") || customElements.define("luzmo-option", p);
1172
528
  export {
1173
- b as LuzmoOption,
1174
- z as LuzmoOptions,
1175
- Vo as LuzmoOptionsDivider,
1176
- Fo as VIRTUALIZE_AS_OF_NUM_ITEMS
529
+ p as LuzmoOption,
530
+ v as LuzmoOptions,
531
+ J as LuzmoOptionsDivider,
532
+ Y as VIRTUALIZE_AS_OF_NUM_ITEMS
1177
533
  };