@luzmo/analytics-components-kit 1.0.1-alpha.4 → 1.0.1-alpha.6

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 (372) hide show
  1. package/components/async-directive-DWRUSKKF-C2JoUGYR.cjs +56 -0
  2. package/components/async-directive-DWRUSKKF-CNTJHpgh.js +152 -0
  3. package/components/base-BjTwmyRF.cjs +24 -0
  4. package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
  5. package/components/base-D76d76ww-gf0ESLsU.js +45 -0
  6. package/components/base-D76d76ww.js +28 -0
  7. package/{lib/button-base-CtfPWS-P.js → components/button-base-B7v4eeRh-B4fczZlv.js} +55 -36
  8. package/components/button-base-B7v4eeRh-CjngVDsD.cjs +43 -0
  9. package/components/checkbox-mixin-BFGTmw17-BR4ufh0S.js +88 -0
  10. package/components/checkbox-mixin-BFGTmw17-lIHmn1jk.cjs +45 -0
  11. package/components/directive-helpers-nlQRAaQt-CQ_hWlbQ.cjs +80 -0
  12. package/components/directive-helpers-nlQRAaQt-arNFWD5u.js +115 -0
  13. package/components/display-settings/display-settings.d.ts +70 -0
  14. package/components/display-settings/index.cjs +105 -0
  15. package/components/display-settings/index.d.ts +7 -0
  16. package/components/display-settings/index.js +238 -0
  17. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  18. package/components/display-settings-binning/index.cjs +51 -0
  19. package/components/display-settings-binning/index.d.ts +7 -0
  20. package/components/display-settings-binning/index.js +136 -0
  21. package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
  22. package/{lib/en-GB-BqYHIX1v.cjs → components/display-settings-datetime/index.cjs} +1 -1
  23. package/components/display-settings-datetime/index.d.ts +7 -0
  24. package/{lib/draggable-data-item → components/display-settings-datetime}/index.js +2 -2
  25. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
  26. package/components/display-settings-grand-totals/index.cjs +41 -0
  27. package/components/display-settings-grand-totals/index.d.ts +7 -0
  28. package/components/display-settings-grand-totals/index.js +115 -0
  29. package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
  30. package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
  31. package/components/display-settings-numeric/index.cjs +146 -0
  32. package/components/display-settings-numeric/index.d.ts +7 -0
  33. package/{lib/index-CM80_HQw.js → components/display-settings-numeric/index.js} +116 -106
  34. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
  35. package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
  36. package/components/display-settings-period-over-period/index.cjs +103 -0
  37. package/components/display-settings-period-over-period/index.d.ts +7 -0
  38. package/{lib/index-DJp_9h0l.js → components/display-settings-period-over-period/index.js} +113 -132
  39. package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
  40. package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
  41. package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
  42. package/components/draggable-data-item/index.cjs +55 -0
  43. package/components/draggable-data-item/index.d.ts +7 -0
  44. package/components/draggable-data-item/index.js +140 -0
  45. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
  46. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
  47. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
  48. package/components/draggable-data-item-level/index.cjs +36 -0
  49. package/components/draggable-data-item-level/index.d.ts +7 -0
  50. package/{lib/index-DrIA0eFE.js → components/draggable-data-item-level/index.js} +143 -242
  51. package/components/droppable-slot/droppable-slot.d.ts +49 -0
  52. package/components/droppable-slot/index.cjs +69 -0
  53. package/components/droppable-slot/index.d.ts +7 -0
  54. package/components/droppable-slot/index.js +255 -0
  55. package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
  56. package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
  57. package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
  58. package/components/edit-item/edit-item.d.ts +50 -0
  59. package/components/edit-item/index.cjs +85 -0
  60. package/components/edit-item/index.d.ts +7 -0
  61. package/components/edit-item/index.js +333 -0
  62. package/components/edit-option/edit-option.d.ts +22 -0
  63. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  64. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  65. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  66. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  67. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  68. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  69. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  70. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  71. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  72. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  73. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  74. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  75. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  76. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  77. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  78. package/components/edit-option/index.cjs +176 -0
  79. package/components/edit-option/index.d.ts +7 -0
  80. package/components/edit-option/index.js +507 -0
  81. package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
  82. package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
  83. package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
  84. package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
  85. package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
  86. package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
  87. package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
  88. package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
  89. package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
  90. package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
  91. package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
  92. package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
  93. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  94. package/components/edit-option-action-button-group/index.cjs +44 -0
  95. package/components/edit-option-action-button-group/index.d.ts +7 -0
  96. package/components/edit-option-action-button-group/index.js +144 -0
  97. package/components/edit-option-base/edit-option-base.d.ts +22 -0
  98. package/components/edit-option-base-Ck3NFAli.cjs +53 -0
  99. package/components/edit-option-base-w3UBiCoU.js +120 -0
  100. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
  101. package/components/edit-option-color-picker/index.cjs +472 -0
  102. package/components/edit-option-color-picker/index.d.ts +7 -0
  103. package/components/edit-option-color-picker/index.js +2553 -0
  104. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
  105. package/components/edit-option-multi-language-field/index.cjs +31 -0
  106. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  107. package/components/edit-option-multi-language-field/index.js +102 -0
  108. package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
  109. package/components/edit-option-number-field/index.cjs +32 -0
  110. package/components/edit-option-number-field/index.d.ts +7 -0
  111. package/components/edit-option-number-field/index.js +115 -0
  112. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  113. package/components/edit-option-picker/index.cjs +35 -0
  114. package/components/edit-option-picker/index.d.ts +7 -0
  115. package/components/edit-option-picker/index.js +106 -0
  116. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
  117. package/components/edit-option-positions-number-field/index.cjs +42 -0
  118. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  119. package/components/edit-option-positions-number-field/index.js +170 -0
  120. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  121. package/components/edit-option-radio-button-group/index.cjs +36 -0
  122. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  123. package/components/edit-option-radio-button-group/index.js +113 -0
  124. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  125. package/components/edit-option-slider/index.cjs +48 -0
  126. package/components/edit-option-slider/index.d.ts +7 -0
  127. package/components/edit-option-slider/index.js +1253 -0
  128. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  129. package/components/edit-option-switch/index.cjs +50 -0
  130. package/components/edit-option-switch/index.d.ts +7 -0
  131. package/components/edit-option-switch/index.js +171 -0
  132. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  133. package/components/edit-option-text-field/index.cjs +31 -0
  134. package/components/edit-option-text-field/index.d.ts +7 -0
  135. package/components/edit-option-text-field/index.js +100 -0
  136. package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
  137. package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
  138. package/{lib/droppable-slot/index.cjs → components/en-BvtH5B9A.cjs} +1 -1
  139. package/{lib/index-D_KYpfBM.js → components/en-CN4CDOzo.js} +2 -3
  140. package/{lib/en-GB-CYx--4nh.js → components/en-GB-BMvD7axC.js} +1 -1
  141. package/{lib/index-0314DjEl.cjs → components/en-GB-DrOGXwdM.cjs} +1 -1
  142. package/{lib/draggable-data-item/index.cjs → components/en-US-BvtH5B9A.cjs} +1 -1
  143. package/components/en-US-CN4CDOzo.js +23 -0
  144. package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
  145. package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
  146. package/{lib/get-css-variable-BHHQ0SnL.js → components/get-css-variable-Bhbr-Kr1.js} +379 -410
  147. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  148. package/components/if-defined-BSAr_4u4-CNmaFBUP.cjs +60 -0
  149. package/components/if-defined-BSAr_4u4-CVDyXUmc.js +95 -0
  150. package/components/if-defined-_S7apvH1.js +29 -0
  151. package/components/if-defined-aQZR75uI.cjs +24 -0
  152. package/components/index-B0ZqIWfU.cjs +39 -0
  153. package/components/index-BEi8DTwW.cjs +36 -0
  154. package/components/index-Bti4K2L2.cjs +67 -0
  155. package/components/index-BuW8doNV.js +299 -0
  156. package/components/index-BxFGd_xp.cjs +36 -0
  157. package/components/index-ByfMhxDr.cjs +36 -0
  158. package/{lib/progress-circle/index.js → components/index-C44nA7Wn.js} +53 -20
  159. package/components/index-CHLcEawI.js +77 -0
  160. package/components/index-CKbGBBId.cjs +54 -0
  161. package/components/index-CMvLpPKD-CgGXdNKs.js +935 -0
  162. package/components/index-CMvLpPKD-DoxJRhRP.cjs +95 -0
  163. package/components/index-CQjWiSIp.cjs +202 -0
  164. package/components/index-C_Cxv6xn.js +164 -0
  165. package/components/index-C_xCeCrL.cjs +185 -0
  166. package/components/index-CdHFj3ra.cjs +59 -0
  167. package/components/index-Ci0Pe5UA.js +317 -0
  168. package/components/index-DC2Pby0z.cjs +95 -0
  169. package/components/index-DDleIdd8.cjs +192 -0
  170. package/components/index-DLrQ4hc5.cjs +42 -0
  171. package/components/index-DMbzEC_s.js +104 -0
  172. package/{lib/index-B9h2L_hV.js → components/index-DUlH3hbL.js} +1233 -1110
  173. package/{lib/en-CIeY2T5K.js → components/index-DeyQ1JGg.js} +439 -447
  174. package/components/index-DiSrnT1e.js +77 -0
  175. package/{lib/picker/index.js → components/index-Dkom_Qy5.js} +22 -6
  176. package/components/index-DxXcY78P.cjs +36 -0
  177. package/components/index-EkTLplXl.cjs +95 -0
  178. package/{lib/droppable-slot/index.js → components/index-FSUV_4nO.js} +18 -4
  179. package/components/index-Pmv-d4iw.js +744 -0
  180. package/{lib/index-CBCm4_7S.js → components/index-aLxc3xA_.js} +400 -459
  181. package/{lib/index-Bd4cKS9O.js → components/index-dJXOanPE.js} +67 -47
  182. package/components/index-f8GtjOLn.cjs +57 -0
  183. package/components/index-fbS4OrPM.js +145 -0
  184. package/components/index.cjs +20 -0
  185. package/components/index.js +74 -0
  186. package/components/language-resolution-8yZa5r_P-CLZhU076.js +161 -0
  187. package/components/language-resolution-8yZa5r_P-CpbzT4ej.cjs +52 -0
  188. package/components/localize-B6AsX_Zv.js +52 -0
  189. package/components/localize-DbobqcKs.cjs +20 -0
  190. package/components/observe-slot-text-ggb4kKgY-DqsddtTd.cjs +86 -0
  191. package/components/observe-slot-text-ggb4kKgY-yUxhPbbJ.js +221 -0
  192. package/{lib/popover-Bwnkg-5-.js → components/popover-DlkzrLpl-DFIvgCjc.js} +25 -6
  193. package/components/popover-DlkzrLpl-TYw7ejnD.cjs +48 -0
  194. package/components/property-CXJD1jOW.js +1480 -0
  195. package/components/property-ChsOQ1Yj.cjs +112 -0
  196. package/components/query-D5qWDopr.cjs +24 -0
  197. package/components/query-Ddbd72Um.js +39 -0
  198. package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
  199. package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
  200. package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
  201. package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
  202. package/components/sized-mixin-BxMraZLS-Dc6r-Wg4.js +82 -0
  203. package/components/sized-mixin-BxMraZLS-w9I35lP7.cjs +36 -0
  204. package/components/slot-menu/index.cjs +55 -0
  205. package/components/slot-menu/index.d.ts +7 -0
  206. package/components/slot-menu/index.js +188 -0
  207. package/components/slot-menu/slot-menu.d.ts +66 -0
  208. package/components/slot-menu-list/index.cjs +39 -0
  209. package/components/slot-menu-list/index.d.ts +7 -0
  210. package/components/slot-menu-list/index.js +351 -0
  211. package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
  212. package/components/state-DLrsMPet.cjs +24 -0
  213. package/components/state-DwFtyqCc.js +31 -0
  214. package/components/task-CgK9ztaw.cjs +24 -0
  215. package/components/task-DYLITx7R.js +120 -0
  216. package/components/text-field-CvKSS59x-BzSqtt2_.js +412 -0
  217. package/components/text-field-CvKSS59x-D0MM0fDH.cjs +131 -0
  218. package/components/utils.cjs +20 -0
  219. package/components/utils.js +20 -0
  220. package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
  221. package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
  222. package/custom-elements.json +3562 -884
  223. package/index.d.ts +23 -0
  224. package/package.json +132 -17
  225. package/utils/formatter/calculate-duration.d.ts +2 -0
  226. package/utils/formatter/decompose-numeric-format.d.ts +11 -0
  227. package/utils/formatter/default-local-formats.d.ts +20 -0
  228. package/utils/formatter/formats/cs.d.ts +20 -0
  229. package/utils/formatter/formats/da.d.ts +20 -0
  230. package/utils/formatter/formats/de.d.ts +21 -0
  231. package/utils/formatter/formats/en-GB.d.ts +21 -0
  232. package/utils/formatter/formats/en-US.d.ts +1 -0
  233. package/utils/formatter/formats/en.d.ts +1 -0
  234. package/utils/formatter/formats/es.d.ts +54 -0
  235. package/utils/formatter/formats/fi.d.ts +20 -0
  236. package/utils/formatter/formats/fr.d.ts +54 -0
  237. package/utils/formatter/formats/he.d.ts +20 -0
  238. package/utils/formatter/formats/hu.d.ts +20 -0
  239. package/utils/formatter/formats/it.d.ts +54 -0
  240. package/utils/formatter/formats/ja.d.ts +20 -0
  241. package/utils/formatter/formats/ko.d.ts +20 -0
  242. package/utils/formatter/formats/mk.d.ts +20 -0
  243. package/utils/formatter/formats/nl.d.ts +21 -0
  244. package/utils/formatter/formats/no.d.ts +21 -0
  245. package/utils/formatter/formats/pl.d.ts +20 -0
  246. package/utils/formatter/formats/pt.d.ts +20 -0
  247. package/utils/formatter/formats/ru.d.ts +20 -0
  248. package/utils/formatter/formats/sv.d.ts +20 -0
  249. package/utils/formatter/formats/tr.d.ts +21 -0
  250. package/utils/formatter/formats/zh-CN.d.ts +20 -0
  251. package/utils/formatter/formats/zh-TW.d.ts +20 -0
  252. package/utils/formatter/formatter.d.ts +9 -0
  253. package/utils/formatter/localize.d.ts +3 -0
  254. package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  255. package/utils/get-css-variable.d.ts +1 -0
  256. package/utils/index.d.ts +1 -0
  257. package/utils/time/formats.const.d.ts +8 -0
  258. package/utils/time/periods.const.d.ts +29 -0
  259. package/utils/types/column.types.d.ts +56 -0
  260. package/utils/types/type-check.d.ts +7 -0
  261. package/lib/async-directive-CPjMHOPu.cjs +0 -24
  262. package/lib/async-directive-SCUUQ3Mh.js +0 -114
  263. package/lib/button-base-B4PdJFVe.cjs +0 -27
  264. package/lib/directive-helpers-BSB0tfc9.cjs +0 -32
  265. package/lib/directive-helpers-eY1rHtyn.js +0 -154
  266. package/lib/divider.module-BW8qaMVq.js +0 -211
  267. package/lib/divider.module-DEy88Ieh.cjs +0 -20
  268. package/lib/en-BDBzmAXX.cjs +0 -202
  269. package/lib/get-css-variable-D439CdH9.cjs +0 -24
  270. package/lib/if-defined-BbzmSG-O.js +0 -757
  271. package/lib/if-defined-V7yEJWI3.cjs +0 -54
  272. package/lib/index-BDXFsKUM.cjs +0 -146
  273. package/lib/index-BmAD29P2.js +0 -106
  274. package/lib/index-Bo1DpZ-1.cjs +0 -58
  275. package/lib/index-C4ePDYEC.cjs +0 -41
  276. package/lib/index-C9xEN5Ji.js +0 -82
  277. package/lib/index-CcF-9wyF.cjs +0 -71
  278. package/lib/index-CfEm5P0J.cjs +0 -196
  279. package/lib/index-CrWoFMZ3.cjs +0 -22
  280. package/lib/index-CtEJZdT0.js +0 -1627
  281. package/lib/index-CvX-HLY1.cjs +0 -322
  282. package/lib/index-D37RwuEH.js +0 -1584
  283. package/lib/index-D5puKlcm.cjs +0 -96
  284. package/lib/index-DGz6jCKo.cjs +0 -26
  285. package/lib/index-DSbgZduE.js +0 -501
  286. package/lib/index-DdtjeKYI.js +0 -928
  287. package/lib/index-Dj7PF4Q9.cjs +0 -63
  288. package/lib/index-Dq3HAOaM.js +0 -127
  289. package/lib/index-jt6FL_uE.cjs +0 -20
  290. package/lib/index-kJR406YZ.cjs +0 -112
  291. package/lib/index-v8ZTprPO.cjs +0 -51
  292. package/lib/index.cjs +0 -875
  293. package/lib/index.js +0 -6411
  294. package/lib/observe-slot-text-DOYmGOZe.js +0 -181
  295. package/lib/observe-slot-text-oJ0a2KY9.cjs +0 -42
  296. package/lib/picker/index.cjs +0 -20
  297. package/lib/popover-CQGN8nbX.cjs +0 -32
  298. package/lib/progress-circle/index.cjs +0 -35
  299. /package/{lib → components}/area-chart-slots.config-BLxiYX05.cjs +0 -0
  300. /package/{lib → components}/area-chart-slots.config-C0c2ZzBh.js +0 -0
  301. /package/{lib → components}/bar-chart-slots.config-GSSL7XVA.js +0 -0
  302. /package/{lib → components}/bar-chart-slots.config-Jx1PveTM.cjs +0 -0
  303. /package/{lib → components}/bar-chart.config-B57geUzJ.cjs +0 -0
  304. /package/{lib → components}/bar-chart.config-CQ6HAvs2.js +0 -0
  305. /package/{lib → components}/bar-chart.en-BqYbiHO3.cjs +0 -0
  306. /package/{lib → components}/bar-chart.en-FwT00qdU.js +0 -0
  307. /package/{lib → components}/bar-chart.fr-DGx9smEh.cjs +0 -0
  308. /package/{lib → components}/bar-chart.fr-DbxKiM0j.js +0 -0
  309. /package/{lib → components}/bar-chart.nl-BYzVExsz.cjs +0 -0
  310. /package/{lib → components}/bar-chart.nl-ahX1ARpH.js +0 -0
  311. /package/{lib → components}/column-chart.config-B57geUzJ.cjs +0 -0
  312. /package/{lib → components}/column-chart.config-C9hP0kX7.js +0 -0
  313. /package/{lib → components}/cs-DVZ0Tapy.js +0 -0
  314. /package/{lib → components}/cs-I9E81keK.cjs +0 -0
  315. /package/{lib → components}/da-DHy05oSR.js +0 -0
  316. /package/{lib → components}/da-QkdvupDg.cjs +0 -0
  317. /package/{lib → components}/de-Dn5mUzha.cjs +0 -0
  318. /package/{lib → components}/de-iM39JlAt.js +0 -0
  319. /package/{lib → components}/decompose-numeric-format-B3rVVHpO.cjs +0 -0
  320. /package/{lib → components}/decompose-numeric-format-BuZcjH2k.js +0 -0
  321. /package/{lib → components}/donut-chart-slots.config-BEwhfq27.js +0 -0
  322. /package/{lib → components}/donut-chart-slots.config-DIp-24lO.cjs +0 -0
  323. /package/{lib → components}/donut-chart.config-3DhKiSSM.js +0 -0
  324. /package/{lib → components}/donut-chart.config-DLWJUlHx.cjs +0 -0
  325. /package/{lib → components}/donut-chart.en-Blb9oSdU.cjs +0 -0
  326. /package/{lib → components}/donut-chart.en-CzjT4-XN.js +0 -0
  327. /package/{lib → components}/donut-chart.fr-BeTVa2wh.cjs +0 -0
  328. /package/{lib → components}/donut-chart.fr-DftPrKbG.js +0 -0
  329. /package/{lib → components}/donut-chart.nl-D9YGbOce.cjs +0 -0
  330. /package/{lib → components}/donut-chart.nl-NMatXfhK.js +0 -0
  331. /package/{lib → components}/es-CwyPlN5d.cjs +0 -0
  332. /package/{lib → components}/es-KhTq4jX8.js +0 -0
  333. /package/{lib → components}/fi-Dh_ebgpe.js +0 -0
  334. /package/{lib → components}/fi-rijeZE5V.cjs +0 -0
  335. /package/{lib → components}/fr-BcgE-6S_.cjs +0 -0
  336. /package/{lib → components}/fr-CU727YF1.js +0 -0
  337. /package/{lib → components}/he-Au3xg6lR.js +0 -0
  338. /package/{lib → components}/he-O6Ih8Bqh.cjs +0 -0
  339. /package/{lib → components}/hu-BnZ8y3xQ.cjs +0 -0
  340. /package/{lib → components}/hu-DNJ-P_MW.js +0 -0
  341. /package/{lib → components}/imageobject.config-B7ld9bj3.cjs +0 -0
  342. /package/{lib → components}/imageobject.config-DZLp9Elq.js +0 -0
  343. /package/{lib → components}/it-Bh5U73z6.js +0 -0
  344. /package/{lib → components}/it-PshtLMkq.cjs +0 -0
  345. /package/{lib → components}/ja-CCcHUL61.js +0 -0
  346. /package/{lib → components}/ja-KIS2HdaG.cjs +0 -0
  347. /package/{lib → components}/ko--l4qmjLV.cjs +0 -0
  348. /package/{lib → components}/ko-DhapsZMM.js +0 -0
  349. /package/{lib → components}/line-chart.config-BZcvfO2c.cjs +0 -0
  350. /package/{lib → components}/line-chart.config-CIVN6uLI.js +0 -0
  351. /package/{lib → components}/mk-B9HPSuKa.js +0 -0
  352. /package/{lib → components}/mk-DZlj-edb.cjs +0 -0
  353. /package/{lib → components}/nl-BKlDqOXb.cjs +0 -0
  354. /package/{lib → components}/nl-BwSt5Bf4.js +0 -0
  355. /package/{lib → components}/no-D-DofYnx.js +0 -0
  356. /package/{lib → components}/no-D_SzxhTu.cjs +0 -0
  357. /package/{lib → components}/pl-D_L_0Boq.js +0 -0
  358. /package/{lib → components}/pl-PIK23rK_.cjs +0 -0
  359. /package/{lib → components}/pt-B0BBS5VB.js +0 -0
  360. /package/{lib → components}/pt-Dqlu4MS5.cjs +0 -0
  361. /package/{lib → components}/ru-Vo-m3O_2.js +0 -0
  362. /package/{lib → components}/ru-zyNDTB04.cjs +0 -0
  363. /package/{lib → components}/sv-1DPTltNQ.cjs +0 -0
  364. /package/{lib → components}/sv-CiozMaev.js +0 -0
  365. /package/{lib → components}/textobject.config-C8opcGG4.js +0 -0
  366. /package/{lib → components}/textobject.config-DbAajFz8.cjs +0 -0
  367. /package/{lib → components}/tr-BkmWvOG2.cjs +0 -0
  368. /package/{lib → components}/tr-D_D4i5iv.js +0 -0
  369. /package/{lib → components}/zh-CN-DTZ4OmdP.cjs +0 -0
  370. /package/{lib → components}/zh-CN-wsl7eFSd.js +0 -0
  371. /package/{lib → components}/zh-TW-DTZ4OmdP.cjs +0 -0
  372. /package/{lib → components}/zh-TW-wsl7eFSd.js +0 -0
@@ -0,0 +1,472 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";var vo=Object.getPrototypeOf;var xo=Reflect.get;var G=(t,o,e)=>xo(vo(t),e,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../property-ChsOQ1Yj.cjs"),no=require("../directive-helpers-nlQRAaQt-CQ_hWlbQ.cjs"),d=require("../if-defined-BSAr_4u4-CNmaFBUP.cjs"),j=require("../sized-mixin-BxMraZLS-w9I35lP7.cjs"),B=require("@luzmo/icons"),Q=require("../async-directive-DWRUSKKF-C2JoUGYR.cjs"),L=require("../language-resolution-8yZa5r_P-CpbzT4ej.cjs"),yo=require("../text-field-CvKSS59x-D0MM0fDH.cjs"),Z=require("../index-DDleIdd8.cjs");require("../index-DxXcY78P.cjs");require("../index-BEi8DTwW.cjs");const J=require("../when-CDK1Tt5Y-BN3qcTK0.cjs"),wo=require("../observe-slot-text-ggb4kKgY-DqsddtTd.cjs"),ko=require("../roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs");require("../index-BxFGd_xp.cjs");const Co=require("../query-D5qWDopr.cjs"),So=require("../edit-option-base-Ck3NFAli.cjs");/*! * Lucero - The design system for Luzmo.
21
+ *
22
+ * Copyright © 2025 Luzmo
23
+ * All rights reserved.
24
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
25
+ * This license allows users with a current active Luzmo account to use Lucero.
26
+ * This license terminates automatically if a user no longer has an active Luzmo account.
27
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ * SOFTWARE.
36
+ * */const $o=':host{inline-size:var(--luzmo-color-loupe-width, 48px);block-size:var(--luzmo-color-loupe-height, 64px);transform:translateY(var(--luzmo-color-loupe-animation-distance, 8px));opacity:0;transform-origin:bottom;pointer-events:none;filter:drop-shadow(var(--luzmo-color-loupe-drop-shadow-x, 0) var(--luzmo-color-loupe-drop-shadow-y, 2px) var(--luzmo-color-loupe-drop-shadow-blur, 8px) var(--luzmo-color-loupe-drop-shadow-color, rgba(0, 0, 0, .25)));transition:transform .1s ease-in-out,opacity .125s ease-in-out;position:absolute;inset-block-end:calc(var(--luzmo-color-handle-size, 16px) - var(--luzmo-color-handle-outer-border-width, 1px) + var(--luzmo-color-loupe-offset, 12px));inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2)}:host:dir(rtl),:host([dir=rtl]){inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.luzmo-color-loupe-inner-border{fill:var(--luzmo-picked-color);stroke:var(--luzmo-color-loupe-inner-border-color, rgba(0, 0, 0, .1));stroke-width:var(--luzmo-color-loupe-inner-border-width, 1px)}.luzmo-color-loupe-outer-border{fill:none;stroke:var(--luzmo-color-loupe-outer-border-color, white);stroke-width:calc(var(--luzmo-color-loupe-outer-border-width, 2px) + 2px);transform:translate(calc((var(--luzmo-color-loupe-outer-border-width, 2px) + 2px) / 2))}.luzmo-color-loupe-checkerboard-pattern{fill:var(--luzmo-color-loupe-checkerboard-dark-color, rgb(230, 230, 230))}.luzmo-color-loupe-checkerboard-background{fill:var(--luzmo-color-loupe-checkerboard-light-color, rgb(255, 255, 255))}.luzmo-color-loupe-checkerboard-fill{fill:var(--luzmo-color-loupe-checkerboard-fill, url(#checkerboard-primary))}@media (forced-colors: active){:host{--highcontrast-colorloupe-outer-border-color: CanvasText}}svg{width:inherit;height:inherit}.loupe-clipped{clip-path:path("M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ")}.opacity-checkerboard{position:absolute;top:2px;left:2px;block-size:100%;inline-size:100%}.opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2)}';var Ro=Object.defineProperty,co=(t,o,e,r)=>{for(var l=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=a(o,e,l)||l);return l&&Ro(o,e,l),l};const uo=class extends s.kt{constructor(){super(...arguments),this.open=!1,this.color="rgba(255, 0, 0, 0.5)"}render(){return s.Ht`
37
+ <div class="opacity-checkerboard loupe-clipped"></div>
38
+ <div class="luzmo-color-loupe-inner-border loupe-clipped"></div>
39
+ <div class="luzmo-color-loupe-outer-border loupe-clipped"></div>
40
+ <svg
41
+ aria-hidden="true"
42
+ class="luzmo-color-loupe is-open"
43
+ overflow="visible"
44
+ style="--luzmo-picked-color: ${this.color}; position: absolute;"
45
+ >
46
+ <defs>
47
+ <path
48
+ id="loupe-path"
49
+ d="M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ"
50
+ transform="translate(2, 2)"
51
+ />
52
+ <mask id="loupe-mask">
53
+ <rect x="0" y="0" height="100" width="100" fill="white" />
54
+ <use xlink:href="#path" fill="black" />
55
+ </mask>
56
+ </defs>
57
+
58
+ <g class="luzmo-color-loupe-loupe">
59
+ <g>
60
+ <use
61
+ xlink:href="#loupe-path"
62
+ mask="url(#loupe-mask)"
63
+ transform="translate(2, 2)"
64
+ class="luzmo-color-loupe-inner-border"
65
+ />
66
+ <use
67
+ xlink:href="#loupe-path"
68
+ mask="url(#loupe-mask)"
69
+ class="luzmo-color-loupe-outer-border"
70
+ />
71
+ </g>
72
+ </g>
73
+ </svg>
74
+ `}};uo.styles=s.ht($o);let ho=uo;co([s.Rt({type:Boolean,reflect:!0})],ho.prototype,"open");co([s.Rt({type:String})],ho.prototype,"color");/*! * Lucero - The design system for Luzmo.
75
+ *
76
+ * Copyright © 2025 Luzmo
77
+ * All rights reserved.
78
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
79
+ * This license allows users with a current active Luzmo account to use Lucero.
80
+ * This license terminates automatically if a user no longer has an active Luzmo account.
81
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
82
+ *
83
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
84
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
86
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
87
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
88
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
89
+ * SOFTWARE.
90
+ * */const _o=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const t=document.createElement("style");t.setAttribute("data-luzmo-vars",""),t.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-color-disabled);--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-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #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(t)}};_o();const Eo=':host{touch-action:none;transition:inline-size var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),block-size var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),border-width var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),margin-inline var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),margin-block var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out)}:host{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2);background-position:50%}:host(:focus){outline:none}:host{z-index:1;box-sizing:border-box;inline-size:var(--luzmo-color-handle-size, 16px);block-size:var(--luzmo-color-handle-size, 16px);margin-inline:calc(var(--luzmo-color-handle-size, 16px) / 2 * -1);margin-block:calc(var(--luzmo-color-handle-size, 16px) / 2 * -1);border-width:var(--luzmo-color-handle-border-width, 2px);border-color:var(--luzmo-color-handle-border-color, rgb(255, 255, 255));box-shadow:0 0 0 var(--luzmo-color-handle-outer-border-width, 1px) var(--luzmo-color-handle-outer-border-color, rgba(0, 0, 0, .42));transition:all var(--luzmo-color-handle-animation-duration, 0) var(--luzmo-color-handle-animation-easing, ease-in-out);border-style:solid}:host,:host:after{border-radius:100%;display:block;position:absolute}:host:after{content:"";inset-inline:calc(50% - var(--luzmo-color-handle-hitarea-size, 24px) / 2);inset-block:calc(50% - var(--luzmo-color-handle-hitarea-size, 24px) / 2);inline-size:var(--luzmo-color-handle-hitarea-size, 24px);block-size:var(--luzmo-color-handle-hitarea-size, 24px);border-radius:var(--luzmo-color-handle-hitarea-border-radius, 100%)}:host([focused]),:host(:focus-visible){inline-size:var(--luzmo-color-handle-focused-size, 32px);block-size:var(--luzmo-color-handle-focused-size, 32px);margin-inline:calc(var(--luzmo-color-handle-size, 16px) * -1);margin-block:calc(var(--luzmo-color-handle-size, 16px) * -1);outline:none}:host([disabled]){pointer-events:none;border-color:var(--highcontrast-color-handle-border-color-disabled, var(--luzmo-color-handle-border-color-disabled, var(--luzmo-font-color-disabled)));background:var(--highcontrast-color-handle-fill-color-disabled, var(--luzmo-color-handle-fill-color-disabled, var(--luzmo-font-color-disabled)));box-shadow:none}:host([disabled]) .inner{display:none}.inner{inline-size:100%;block-size:100%;box-shadow:inset 0 0 0 var(--luzmo-color-handle-inner-border-width, var(--luzmo-border-width)) var(--luzmo-color-handle-inner-border-color, rgba(0, 0, 0, .42));background-color:var(--luzmo-picked-color);border-radius:100%}@media (forced-colors: active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-color-handle-border-color-disabled: GrayText;--highcontrast-color-handle-fill-color-disabled: Canvas}}';var Ao=Object.defineProperty,K=(t,o,e,r)=>{for(var l=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=a(o,e,l)||l);return l&&Ao(o,e,l),l};const mo=class extends s.kt{constructor(){super(...arguments),this.disabled=!1,this.focused=!1,this.open=!1,this.color="rgba(255, 0, 0, 0.5)"}handlePointerdown(o){o.pointerType==="touch"&&(this.open=!0),this.setPointerCapture(o.pointerId)}handlePointerup(o){this.open=!1,this.releasePointerCapture(o.pointerId)}render(){return s.Ht`
91
+ <div class="inner" style="background-color: ${this.color}"></div>
92
+ <luzmo-color-loupe
93
+ color=${this.color}
94
+ ?open=${this.open&&!this.disabled}
95
+ ></luzmo-color-loupe>
96
+ `}firstUpdated(o){super.firstUpdated(o),this.addEventListener("pointerdown",this.handlePointerdown),this.addEventListener("pointerup",this.handlePointerup),this.addEventListener("pointercancel",this.handlePointerup)}};mo.styles=s.ht(Eo);let D=mo;K([s.Rt({type:Boolean,reflect:!0})],D.prototype,"disabled");K([s.Rt({type:Boolean,reflect:!0})],D.prototype,"focused");K([s.Rt({type:Boolean,reflect:!0})],D.prototype,"open");K([s.Rt({type:String})],D.prototype,"color");customElements.get("luzmo-color-handle")||customElements.define("luzmo-color-handle",D);const Mo=Object.freeze(Object.defineProperty({__proto__:null,LuzmoColorHandle:D},Symbol.toStringTag,{value:"Module"}));/*! * Lucero - The design system for Luzmo.
97
+ *
98
+ * Copyright © 2025 Luzmo
99
+ * All rights reserved.
100
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
101
+ * This license allows users with a current active Luzmo account to use Lucero.
102
+ * This license terminates automatically if a user no longer has an active Luzmo account.
103
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
104
+ *
105
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
106
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
107
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
108
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
109
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
110
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
111
+ * SOFTWARE.
112
+ * */function p(t,o){Ho(t)&&(t="100%");const e=Po(t);return t=o===360?t:Math.min(o,Math.max(0,parseFloat(t))),e&&(t=parseInt(String(t*o),10)/100),Math.abs(t-o)<1e-6?1:(o===360?t=(t<0?t%o+o:t%o)/parseFloat(String(o)):t=t%o/parseFloat(String(o)),t)}function I(t){return Math.min(1,Math.max(0,t))}function Ho(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Po(t){return typeof t=="string"&&t.indexOf("%")!==-1}function po(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function U(t){return Number(t)<=1?`${Number(t)*100}%`:t}function F(t){return t.length===1?"0"+t:String(t)}function Fo(t,o,e){return{r:p(t,255)*255,g:p(o,255)*255,b:p(e,255)*255}}function oo(t,o,e){t=p(t,255),o=p(o,255),e=p(e,255);const r=Math.max(t,o,e),l=Math.min(t,o,e);let i=0,a=0;const n=(r+l)/2;if(r===l)a=0,i=0;else{const c=r-l;switch(a=n>.5?c/(2-r-l):c/(r+l),r){case t:i=(o-e)/c+(o<e?6:0);break;case o:i=(e-t)/c+2;break;case e:i=(t-o)/c+4;break}i/=6}return{h:i,s:a,l:n}}function X(t,o,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+(o-t)*(6*e):e<1/2?o:e<2/3?t+(o-t)*(2/3-e)*6:t}function To(t,o,e){let r,l,i;if(t=p(t,360),o=p(o,100),e=p(e,100),o===0)l=e,i=e,r=e;else{const a=e<.5?e*(1+o):e+o-e*o,n=2*e-a;r=X(n,a,t+1/3),l=X(n,a,t),i=X(n,a,t-1/3)}return{r:r*255,g:l*255,b:i*255}}function eo(t,o,e){t=p(t,255),o=p(o,255),e=p(e,255);const r=Math.max(t,o,e),l=Math.min(t,o,e);let i=0;const a=r,n=r-l,c=r===0?0:n/r;if(r===l)i=0;else{switch(r){case t:i=(o-e)/n+(o<e?6:0);break;case o:i=(e-t)/n+2;break;case e:i=(t-o)/n+4;break}i/=6}return{h:i,s:c,v:a}}function Bo(t,o,e){t=p(t,360)*6,o=p(o,100),e=p(e,100);const r=Math.floor(t),l=t-r,i=e*(1-o),a=e*(1-l*o),n=e*(1-(1-l)*o),c=r%6,m=[e,a,i,i,n,e][c],b=[n,e,e,a,i,i][c],P=[i,i,n,e,e,a][c];return{r:m*255,g:b*255,b:P*255}}function to(t,o,e,r){const l=[F(Math.round(t).toString(16)),F(Math.round(o).toString(16)),F(Math.round(e).toString(16))];return r&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function Do(t,o,e,r,l){const i=[F(Math.round(t).toString(16)),F(Math.round(o).toString(16)),F(Math.round(e).toString(16)),F(Io(r))];return l&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function qo(t,o,e,r){const l=t/100,i=o/100,a=e/100,n=r/100,c=255*(1-l)*(1-n),m=255*(1-i)*(1-n),b=255*(1-a)*(1-n);return{r:c,g:m,b}}function ro(t,o,e){let r=1-t/255,l=1-o/255,i=1-e/255,a=Math.min(r,l,i);return a===1?(r=0,l=0,i=0):(r=(r-a)/(1-a)*100,l=(l-a)/(1-a)*100,i=(i-a)/(1-a)*100),a*=100,{c:Math.round(r),m:Math.round(l),y:Math.round(i),k:Math.round(a)}}function Io(t){return Math.round(parseFloat(t)*255).toString(16)}function lo(t){return x(t)/255}function x(t){return parseInt(t,16)}function Uo(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}const W={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function No(t){let o={r:0,g:0,b:0},e=1,r=null,l=null,i=null,a=!1,n=!1;return typeof t=="string"&&(t=jo(t)),typeof t=="object"&&(v(t.r)&&v(t.g)&&v(t.b)?(o=Fo(t.r,t.g,t.b),a=!0,n=String(t.r).substr(-1)==="%"?"prgb":"rgb"):v(t.h)&&v(t.s)&&v(t.v)?(r=U(t.s),l=U(t.v),o=Bo(t.h,r,l),a=!0,n="hsv"):v(t.h)&&v(t.s)&&v(t.l)?(r=U(t.s),i=U(t.l),o=To(t.h,r,i),a=!0,n="hsl"):v(t.c)&&v(t.m)&&v(t.y)&&v(t.k)&&(o=qo(t.c,t.m,t.y,t.k),a=!0,n="cmyk"),Object.prototype.hasOwnProperty.call(t,"a")&&(e=t.a)),e=po(e),{ok:a,format:t.format||n,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:e}}const Oo="[-\\+]?\\d+%?",Lo="[-\\+]?\\d*\\.\\d+%?",M="(?:"+Lo+")|(?:"+Oo+")",Y="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",N="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",k={CSS_UNIT:new RegExp(M),rgb:new RegExp("rgb"+Y),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+Y),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+Y),hsva:new RegExp("hsva"+N),cmyk:new RegExp("cmyk"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function jo(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;let o=!1;if(W[t])t=W[t],o=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let e=k.rgb.exec(t);return e?{r:e[1],g:e[2],b:e[3]}:(e=k.rgba.exec(t),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=k.hsl.exec(t),e?{h:e[1],s:e[2],l:e[3]}:(e=k.hsla.exec(t),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=k.hsv.exec(t),e?{h:e[1],s:e[2],v:e[3]}:(e=k.hsva.exec(t),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=k.cmyk.exec(t),e?{c:e[1],m:e[2],y:e[3],k:e[4]}:(e=k.hex8.exec(t),e?{r:x(e[1]),g:x(e[2]),b:x(e[3]),a:lo(e[4]),format:o?"name":"hex8"}:(e=k.hex6.exec(t),e?{r:x(e[1]),g:x(e[2]),b:x(e[3]),format:o?"name":"hex"}:(e=k.hex4.exec(t),e?{r:x(e[1]+e[1]),g:x(e[2]+e[2]),b:x(e[3]+e[3]),a:lo(e[4]+e[4]),format:o?"name":"hex8"}:(e=k.hex3.exec(t),e?{r:x(e[1]+e[1]),g:x(e[2]+e[2]),b:x(e[3]+e[3]),format:o?"name":"hex"}:!1))))))))))}function v(t){return typeof t=="number"?!Number.isNaN(t):k.CSS_UNIT.test(t)}let h=class u{constructor(o="",e={}){if(o instanceof u)return o;typeof o=="number"&&(o=Uo(o)),this.originalInput=o;const r=No(o);this.originalInput=o,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=e.format??r.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const o=this.toRgb();return(o.r*299+o.g*587+o.b*114)/1e3}getLuminance(){const o=this.toRgb();let e,r,l;const i=o.r/255,a=o.g/255,n=o.b/255;return i<=.03928?e=i/12.92:e=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),.2126*e+.7152*r+.0722*l}getAlpha(){return this.a}setAlpha(o){return this.a=po(o),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:o}=this.toHsl();return o===0}toHsv(){const o=eo(this.r,this.g,this.b);return{h:o.h*360,s:o.s,v:o.v,a:this.a}}toHsvString(){const o=eo(this.r,this.g,this.b),e=Math.round(o.h*360),r=Math.round(o.s*100),l=Math.round(o.v*100);return this.a===1?`hsv(${e}, ${r}%, ${l}%)`:`hsva(${e}, ${r}%, ${l}%, ${this.roundA})`}toHsl(){const o=oo(this.r,this.g,this.b);return{h:o.h*360,s:o.s,l:o.l,a:this.a}}toHslString(){const o=oo(this.r,this.g,this.b),e=Math.round(o.h*360),r=Math.round(o.s*100),l=Math.round(o.l*100);return this.a===1?`hsl(${e}, ${r}%, ${l}%)`:`hsla(${e}, ${r}%, ${l}%, ${this.roundA})`}toHex(o=!1){return to(this.r,this.g,this.b,o)}toHexString(o=!1){return"#"+this.toHex(o)}toHex8(o=!1){return Do(this.r,this.g,this.b,this.a,o)}toHex8String(o=!1){return"#"+this.toHex8(o)}toHexShortString(o=!1){return this.a===1?this.toHexString(o):this.toHex8String(o)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const o=Math.round(this.r),e=Math.round(this.g),r=Math.round(this.b);return this.a===1?`rgb(${o}, ${e}, ${r})`:`rgba(${o}, ${e}, ${r}, ${this.roundA})`}toPercentageRgb(){const o=e=>`${Math.round(p(e,255)*100)}%`;return{r:o(this.r),g:o(this.g),b:o(this.b),a:this.a}}toPercentageRgbString(){const o=e=>Math.round(p(e,255)*100);return this.a===1?`rgb(${o(this.r)}%, ${o(this.g)}%, ${o(this.b)}%)`:`rgba(${o(this.r)}%, ${o(this.g)}%, ${o(this.b)}%, ${this.roundA})`}toCmyk(){return{...ro(this.r,this.g,this.b)}}toCmykString(){const{c:o,m:e,y:r,k:l}=ro(this.r,this.g,this.b);return`cmyk(${o}, ${e}, ${r}, ${l})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const o="#"+to(this.r,this.g,this.b,!1);for(const[e,r]of Object.entries(W))if(o===r)return e;return!1}toString(o){const e=!!o;o=o??this.format;let r=!1;const l=this.a<1&&this.a>=0;return!e&&l&&(o.startsWith("hex")||o==="name")?o==="name"&&this.a===0?this.toName():this.toRgbString():(o==="rgb"&&(r=this.toRgbString()),o==="prgb"&&(r=this.toPercentageRgbString()),(o==="hex"||o==="hex6")&&(r=this.toHexString()),o==="hex3"&&(r=this.toHexString(!0)),o==="hex4"&&(r=this.toHex8String(!0)),o==="hex8"&&(r=this.toHex8String()),o==="name"&&(r=this.toName()),o==="hsl"&&(r=this.toHslString()),o==="hsv"&&(r=this.toHsvString()),o==="cmyk"&&(r=this.toCmykString()),r||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new u(this.toString())}lighten(o=10){const e=this.toHsl();return e.l+=o/100,e.l=I(e.l),new u(e)}brighten(o=10){const e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(o/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(o/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(o/100)))),new u(e)}darken(o=10){const e=this.toHsl();return e.l-=o/100,e.l=I(e.l),new u(e)}tint(o=10){return this.mix("white",o)}shade(o=10){return this.mix("black",o)}desaturate(o=10){const e=this.toHsl();return e.s-=o/100,e.s=I(e.s),new u(e)}saturate(o=10){const e=this.toHsl();return e.s+=o/100,e.s=I(e.s),new u(e)}greyscale(){return this.desaturate(100)}spin(o){const e=this.toHsl(),r=(e.h+o)%360;return e.h=r<0?360+r:r,new u(e)}mix(o,e=50){const r=this.toRgb(),l=new u(o).toRgb(),i=e/100,a={r:(l.r-r.r)*i+r.r,g:(l.g-r.g)*i+r.g,b:(l.b-r.b)*i+r.b,a:(l.a-r.a)*i+r.a};return new u(a)}analogous(o=6,e=30){const r=this.toHsl(),l=360/e,i=[this];for(r.h=(r.h-(l*o>>1)+720)%360;--o;)r.h=(r.h+l)%360,i.push(new u(r));return i}complement(){const o=this.toHsl();return o.h=(o.h+180)%360,new u(o)}monochromatic(o=6){const e=this.toHsv(),{h:r}=e,{s:l}=e;let{v:i}=e;const a=[],n=1/o;for(;o--;)a.push(new u({h:r,s:l,v:i})),i=(i+n)%1;return a}splitcomplement(){const o=this.toHsl(),{h:e}=o;return[this,new u({h:(e+72)%360,s:o.s,l:o.l}),new u({h:(e+216)%360,s:o.s,l:o.l})]}onBackground(o){const e=this.toRgb(),r=new u(o).toRgb(),l=e.a+r.a*(1-e.a);return new u({r:(e.r*e.a+r.r*r.a*(1-e.a))/l,g:(e.g*e.a+r.g*r.a*(1-e.a))/l,b:(e.b*e.a+r.b*r.a*(1-e.a))/l,a:l})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(o){const e=this.toHsl(),{h:r}=e,l=[this],i=360/o;for(let a=1;a<o;a++)l.push(new u({h:(r+a*i)%360,s:e.s,l:e.l}));return l}equals(o){const e=new u(o);return this.format==="cmyk"||e.format==="cmyk"?this.toCmykString()===e.toCmykString():this.toRgbString()===e.toRgbString()}};/*! * Lucero - The design system for Luzmo.
113
+ *
114
+ * Copyright © 2025 Luzmo
115
+ * All rights reserved.
116
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
117
+ * This license allows users with a current active Luzmo account to use Lucero.
118
+ * This license terminates automatically if a user no longer has an active Luzmo account.
119
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
120
+ *
121
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
122
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
123
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
124
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
125
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
126
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
127
+ * SOFTWARE.
128
+ * */const io=/^hs[v|l]a?\s?\((\d{1,3}\.?\d*?),?\s?(\d{1,3})/,ao=/(^hs[v|l]a?\s?\()\d{1,3}\.?\d*?(,?\s?)\d{1,3}/,so=/(^hs[v|l]a?\()\d{1,3}/,O=(t,o)=>o?t.toHexString():t.toHex();let go=class{constructor(o,{applyColorToState:e,extractColorFromState:r,maintains:l}){this.maintains="hue",this._hue=0,this._opacity=1,this.getColorProcesses={rgb:(i,a)=>a?i.toRgbString():i.toRgb(),prgb:(i,a)=>a?i.toPercentageRgbString():i.toPercentageRgb(),hex8:(i,a)=>a?i.toHex8String():i.toHex8(),name:i=>i.toName()||i.toRgbString(),hsl:(i,a)=>{if(this.maintains==="hue"){if(a)return i.toHslString().replace(so,`$1${this.hue}`);const{s:b,l:P,a:V}=i.toHsl();return{h:this.hue,s:b,l:P,a:V}}if(a)return i.toHslString().replace(ao,`$1${this.hue}$2${this.saturation}`);const{s:n,l:c,a:m}=i.toHsl();return{h:this.hue,s:n,l:c,a:m}},hsv:(i,a)=>{if(this.maintains==="hue"){if(a)return i.toHsvString().replace(so,`$1${this.hue}`);const{s:b,v:P,a:V}=i.toHsv();return{h:this.hue,s:b,v:P,a:V}}if(a)return i.toHsvString().replace(ao,`$1${this.hue}$2${this.saturation}`);const{s:n,v:c,a:m}=i.toHsv();return{h:this.hue,s:n,v:c,a:m}},hex:O,hex3:O,hex4:O,hex6:O},this._color=new h({h:0,s:1,v:1}),this._previousColor=new h({h:0,s:1,v:1}),this._format={format:"",isString:!1},this.host=o,this.applyColorToState=e,this.extractColorFromState=r,this.maintains=l||this.maintains}setColorProcess(o,e,r,l){this.maintains==="hue"?this.setColorMaintainHue(o,e,r,l):this.maintains==="saturation"&&this.setColorMaintainSaturation(o,e,r,l)}setColorMaintainHue(o,e,r,l){const{h:i,s:a,v:n,a:c}=this._color.toHsv();let m;if(l&&r.startsWith("hs")){const b=io.exec(e);if(b!==null){const[,P]=b;m=Number(P)}}else if(!l&&r.startsWith("hs")){const b=o.originalInput;m=Object.values(b)[0]}this.hue=m||i,this.opacity=c??1,this.applyColorToState({h:i,s:a,v:n,a:c})}setColorMaintainSaturation(o,e,r,l){const{a:i}=this._color.toHsv();if(l&&r.startsWith("hs")){const a=io.exec(e);if(a!==null){const[,n,c]=a;this.hue=Number(n),this.saturation=Number(c)}}else if(!l&&r.startsWith("hs")){const a=o.originalInput,n=Object.values(a);this.hue=n[0],this.saturation=n[1]}else{const{h:a}=o.toHsv();this.hue=a}this.opacity=i??1,this.applyColorToState(o.toHsv())}applyColorFromState(){this._color=new h(this.extractColorFromState(this))}get hue(){return this._hue}set hue(o){const e=Math.min(360,Math.max(0,o));if(e===this.hue)return;const r=this.hue,{s:l,v:i,a}=this._color.toHsv();this._color=new h({h:e,s:l,v:i,a}),this._hue=e,this.host.requestUpdate("hue",r)}get opacity(){return this._opacity}set opacity(o){const e=Math.min(1,Math.max(0,o));if(e===this.opacity)return;const r=this.opacity,{h:l,s:i,v:a}=this._color.toHsv();this._color=new h({h:l,s:i,v:a,a:e}),this._opacity=e,this.host.requestUpdate("opacity",r)}get value(){return this.color}get color(){return this.getColorProcesses[this._format.format||"hex"](this._color,this._format.isString)}set color(o){if(o===this.color)return;const e=this._color;this._color=new h(o);const r=this._color.format;let l=typeof o=="string"||o instanceof String;r.startsWith("hex")&&(l=o.startsWith("#")),this._format={format:r,isString:l},this.setColorProcess(this._color,o,r,l),this.host.requestUpdate("color",e)}getColor(o){const e={hsl:"toHsl"};return this._color[e[o]]()}setColor(o){this._color=o;const e=typeof this._color.originalInput=="string"||this._color.originalInput instanceof String;this.setColorProcess(this._color,o,this._color.format,e)}getHslString(){return this._color.toHslString()}savePreviousColor(){this._previousColor=this._color.clone()}restorePreviousColor(){this.setColor(this._previousColor)}};/*! * Lucero - The design system for Luzmo.
129
+ *
130
+ * Copyright © 2025 Luzmo
131
+ * All rights reserved.
132
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
133
+ * This license allows users with a current active Luzmo account to use Lucero.
134
+ * This license terminates automatically if a user no longer has an active Luzmo account.
135
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
136
+ *
137
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
138
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
139
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
140
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
141
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
142
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
143
+ * SOFTWARE.
144
+ * */const Ko=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const t=document.createElement("style");t.setAttribute("data-luzmo-vars",""),t.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-color-disabled);--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-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #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(t)}};Ko();const Vo="@media (forced-colors: active){:host{--highcontrast-color-area-border-color-disabled: GrayText;--highcontrast-color-area-border-color: Canvas;--highcontrast-color-area-fill-color-disabled: Canvas}.gradient,:host([disabled]){forced-color-adjust:none}}:host{cursor:default;-webkit-user-select:none;user-select:none;min-inline-size:var(--luzmo-color-area-min-width, 64px);min-block-size:var(--luzmo-color-area-min-height, 64px);inline-size:var(--luzmo-color-area-width, 192px);block-size:var(--luzmo-color-area-height, 192px);box-sizing:border-box;border-radius:var(--luzmo-color-area-border-radius, var(--luzmo-border-radius-s));border:var(--luzmo-color-area-border-width, var(--luzmo-border-width)) solid var(--highcontrast-color-area-border-color, var(--luzmo-color-area-border-color, var(--luzmo-border-color)));display:inline-block;position:relative}:host([focused]){z-index:1}:host([disabled]){pointer-events:none;background:var(--highcontrast-color-area-fill-color-disabled, var(--luzmo-color-area-disabled-background-color, var(--luzmo-dimmed-color)));border:var(--luzmo-color-area-border-width, var(--luzmo-border-width)) solid var(--highcontrast-color-area-border-color-disabled)}:host([disabled]) .gradient{display:none}.handle{transform:translate(calc(var(--luzmo-color-area-width, 192px) - var(--luzmo-border-width)));inset-block-start:0}.handle:dir(rtl),:host([dir=rtl]) .handle{inset-inline-end:0}.gradient{inline-size:100%;block-size:100%;border-radius:var(--luzmo-color-area-border-radius, var(--luzmo-border-radius-s))}.slider{opacity:0;inline-size:100%;block-size:100%;z-index:0;pointer-events:none;margin:0;position:absolute;inset-block-start:0;inset-inline-start:0}:host{touch-action:none}:host:before{pointer-events:none}.gradient{overflow:hidden}.handle{transform:translate(var(--luzmo-color-area-default-width))}::slotted(*){width:100%;height:100%}:host([dir=rtl]) .gradient{transform:scaleX(-1)}.slider[orient=vertical]{-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical}.slider:focus{z-index:1}.fieldset{border:0;margin:0;padding:0}";var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,z=(t,o,e,r)=>{for(var l=r>1?void 0:r?Yo(o,e):o,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=(r?a(o,e,l):a(l))||l);return r&&l&&Xo(o,e,l),l};class g extends s.kt{constructor(){super(...arguments),this.disabled=!1,this.focused=!1,this.labelX="saturation",this.labelY="luminosity",this.isLTR=!0,this.languageResolver=new L.l(this),this.colorController=new go(this,{extractColorFromState:()=>({h:this.hue,s:this.x,v:this.y}),applyColorToState:({s:o,v:e})=>{this._x=o,this._y=e,this.requestUpdate()}}),this.activeAxis="x",this._x=1,this._y=1,this.step=.01,this.altered=0,this.activeKeys=new Set,this._valueChanged=!1,this._pointerDown=!1}static get styles(){return[s.ht(Vo)]}get hue(){return this.colorController.hue}set hue(o){this.colorController.hue=o}get value(){return this.colorController.color}get color(){return this.colorController.color}set color(o){this.colorController.color=o}get x(){return this._x}set x(o){if(o===this.x)return;const e=this.x;this._x=o,this.inputX&&(this.inputX.value=o.toString(),this._x=this.inputX.valueAsNumber),this.requestUpdate("x",e),this.colorController.applyColorFromState()}get y(){return this._y}set y(o){if(o===this.y)return;const e=this.y;this._y=o,this.inputY&&(this.inputY.value=o.toString(),this._y=this.inputY.valueAsNumber),this.requestUpdate("y",e),this.colorController.applyColorFromState()}focus(o={}){super.focus(o),this.forwardFocus()}forwardFocus(){this.activeAxis==="x"?this.inputX.focus():this.inputY.focus()}handleFocus(){this.focused=!0,this._valueChanged=!1}handleBlur(){this._pointerDown||(this.altered=0,this.focused=!1,this._valueChanged=!1)}handleKeydown(o){const{code:e}=o;this.focused=!0,this.altered=[o.shiftKey,o.ctrlKey,o.altKey].filter(r=>!!r).length,(e.search("Arrow")===0||e.search("Page")===0||e.search("Home")===0||e.search("End")===0)&&(o.preventDefault(),this.activeKeys.add(e),this.handleKeypress())}handleKeypress(){let o=0,e=0;const r=Math.max(this.step,this.altered*5*this.step);this.activeKeys.forEach(l=>{switch(l){case"ArrowUp":{e=r;break}case"ArrowDown":{e=r*-1;break}case"ArrowLeft":{o=this.step*(this.isLTR?-1:1);break}case"ArrowRight":{o=this.step*(this.isLTR?1:-1);break}case"PageUp":{e=r*10;break}case"PageDown":{e=r*-10;break}case"Home":{o=r*(this.isLTR?-10:10);break}case"End":{o=r*(this.isLTR?10:-10);break}}}),o!==0?(this.activeAxis="x",this.inputX.focus()):e!==0&&(this.activeAxis="y",this.inputY.focus()),this.x=Math.min(1,Math.max(this.x+o,0)),this.y=Math.min(1,Math.max(this.y+e,0)),this.colorController.savePreviousColor(),this.colorController.applyColorFromState(),(o!==0||e!==0)&&(this._valueChanged=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,cancelable:!0}))||this.colorController.restorePreviousColor())}handleKeyup(o){o.preventDefault();const{code:e}=o;this.activeKeys.delete(e)}handleInput(o){const{valueAsNumber:e,name:r}=o.target;this[r]=e,this.colorController.applyColorFromState()}handleChange(o){this.handleInput(o),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,cancelable:!0}))}handlePointerdown(o){if(o.button!==0){o.preventDefault();return}this._pointerDown=!0,this.colorController.savePreviousColor(),this.boundingClientRect=this.getBoundingClientRect(),o.target.setPointerCapture(o.pointerId),o.pointerType==="mouse"&&(this.focused=!0)}handlePointermove(o){const[e,r]=this.calculateHandlePosition(o);this._valueChanged=!1,this.x=e,this.y=1-r,this.colorController.applyColorFromState(),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))}handlePointerup(o){o.preventDefault(),this._pointerDown=!1,o.target.releasePointerCapture(o.pointerId);const e=this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,cancelable:!0}));this.inputX.focus(),o.pointerType==="mouse"&&(this.focused=!1),e||this.colorController.restorePreviousColor()}calculateHandlePosition(o){if(!this.boundingClientRect)return[this.x,this.y];const e=this.boundingClientRect,r=e.left,l=e.top,i=o.clientX,a=o.clientY,n=e.width,c=e.height,m=Math.max(0,Math.min(1,(i-r)/n)),b=Math.max(0,Math.min(1,(a-l)/c));return[this.isLTR?m:1-m,b]}handleAreaPointerdown(o){o.button===0&&(o.stopPropagation(),o.preventDefault(),this.handle.dispatchEvent(new PointerEvent("pointerdown",o)),this.handlePointermove(o))}render(){const{width:o=0,height:e=0}=this.boundingClientRect||{},r=Q.w()||Q.a(),l="Color Picker",i=d.m(r?void 0:"2d slider"),a=this.labelX,n=this.labelY,c=new Intl.NumberFormat(this.languageResolver.language,{style:"percent",unitDisplay:"narrow"}).format(this.x),m=new Intl.NumberFormat(this.languageResolver.language,{style:"percent",unitDisplay:"narrow"}).format(this.y),b=`linear-gradient(to top, black 0%, hsla(${this.hue}, 100%, 0.01%, 0) 100%),linear-gradient(to right, white 0%, hsla(${this.hue}, 100%, 0.01%, 0) 100%), hsl(${this.hue}, 100%, 50%);`;return s.Ht`
145
+ <div
146
+ @pointerdown=${this.handleAreaPointerdown}
147
+ class="gradient"
148
+ style="background: ${b}"
149
+ >
150
+ <slot name="gradient"></slot>
151
+ </div>
152
+
153
+ <luzmo-color-handle
154
+ tabindex=${d.m(this.focused?void 0:"0")}
155
+ @focus=${this.forwardFocus}
156
+ ?focused=${this.focused}
157
+ class="handle"
158
+ color=${this.colorController.getHslString()}
159
+ ?disabled=${this.disabled}
160
+ style=${`transform: translate(${(this.isLTR?this.x:1-this.x)*o}px, ${e-this.y*e}px);`}
161
+ ${L.u({start:["pointerdown",this.handlePointerdown],streamInside:["pointermove",this.handlePointermove],end:[["pointerup","pointercancel","pointerleave"],this.handlePointerup]})}
162
+ ></luzmo-color-handle>
163
+
164
+ <fieldset
165
+ class="fieldset"
166
+ aria-label=${d.m(r?l:void 0)}
167
+ >
168
+ <div role="presentation">
169
+ <input
170
+ type="range"
171
+ class="slider"
172
+ name="x"
173
+ aria-label=${r?a:`${a} ${l}`}
174
+ aria-roledescription=${i}
175
+ aria-orientation="horizontal"
176
+ aria-valuetext=${r?c:`${c}, ${a}${this._valueChanged?"":`, ${m}, ${n}`}`}
177
+ min="0"
178
+ max="1"
179
+ step=${this.step}
180
+ tabindex="-1"
181
+ .value=${String(this.x)}
182
+ @input=${this.handleInput}
183
+ @change=${this.handleChange}
184
+ />
185
+ </div>
186
+ <div role="presentation">
187
+ <input
188
+ type="range"
189
+ class="slider"
190
+ name="y"
191
+ aria-label=${r?n:`${n} ${l}`}
192
+ aria-roledescription=${i}
193
+ aria-orientation="vertical"
194
+ aria-valuetext=${r?m:`${m}, ${n}${this._valueChanged?"":`, ${c}, ${a}`}`}
195
+ orient="vertical"
196
+ min="0"
197
+ max="1"
198
+ step=${this.step}
199
+ tabindex="-1"
200
+ .value=${String(this.y)}
201
+ @input=${this.handleInput}
202
+ @change=${this.handleChange}
203
+ />
204
+ </div>
205
+ </fieldset>
206
+ `}firstUpdated(o){super.firstUpdated(o),this.boundingClientRect=this.getBoundingClientRect(),this.addEventListener("focus",this.handleFocus),this.addEventListener("blur",this.handleBlur),this.addEventListener("keyup",this.handleKeyup),this.addEventListener("keydown",this.handleKeydown)}updated(o){if(super.updated(o),this.x!==this.inputX.valueAsNumber&&(this._x=this.inputX.valueAsNumber),this.y!==this.inputY.valueAsNumber&&(this._y=this.inputY.valueAsNumber),o.has("focused")&&this.focused){const e=this.inputX.parentElement,r=this.inputY.parentElement;if(!e.shadowRoot&&!r.shadowRoot){e.attachShadow({mode:"open"}),r.attachShadow({mode:"open"});const l='<div tabindex="-1"><slot></slot></div>';e.shadowRoot.innerHTML=l,r.shadowRoot.innerHTML=l}}}connectedCallback(){var o;super.connectedCallback(),!this.observer&&window.ResizeObserver&&(this.observer=new window.ResizeObserver(e=>{for(const r of e)this.boundingClientRect=r.contentRect;this.requestUpdate()})),(o=this.observer)==null||o.observe(this)}disconnectedCallback(){var o;(o=this.observer)==null||o.unobserve(this),super.disconnectedCallback()}}z([s.Rt({type:String,reflect:!0})],g.prototype,"dir",2);z([s.Rt({type:Boolean,reflect:!0})],g.prototype,"disabled",2);z([s.Rt({type:Boolean,reflect:!0})],g.prototype,"focused",2);z([s.Rt({type:String,attribute:"label-x"})],g.prototype,"labelX",2);z([s.Rt({type:String,attribute:"label-y"})],g.prototype,"labelY",2);z([s.Rt({type:Boolean,attribute:"is-ltr"})],g.prototype,"isLTR",2);z([d.d(".handle")],g.prototype,"handle",2);z([s.Rt({type:Number})],g.prototype,"hue",1);z([s.Rt({type:String})],g.prototype,"value",1);z([s.Rt({type:String})],g.prototype,"color",1);z([s.Rt({attribute:!1})],g.prototype,"activeAxis",2);z([s.Rt({type:Number})],g.prototype,"x",1);z([s.Rt({type:Number})],g.prototype,"y",1);z([s.Rt({type:Number})],g.prototype,"step",2);z([d.d('[name="x"]')],g.prototype,"inputX",2);z([d.d('[name="y"]')],g.prototype,"inputY",2);customElements.get("luzmo-color-area")||customElements.define("luzmo-color-area",g);/*! * Lucero - The design system for Luzmo.
207
+ *
208
+ * Copyright © 2025 Luzmo
209
+ * All rights reserved.
210
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
211
+ * This license allows users with a current active Luzmo account to use Lucero.
212
+ * This license terminates automatically if a user no longer has an active Luzmo account.
213
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
214
+ *
215
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
216
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
217
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
218
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
219
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
220
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
221
+ * SOFTWARE.
222
+ * */const Wo=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const t=document.createElement("style");t.setAttribute("data-luzmo-vars",""),t.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-color-disabled);--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-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #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(t)}};Wo();var Zo=Object.defineProperty,Go=(t,o,e,r)=>{for(var l=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=a(o,e,l)||l);return l&&Zo(o,e,l),l};let bo=class extends yo.i{constructor(){super(...arguments),this.viewColor=!1,this._value="",this.cachedColor=null,this.cachedTinyColor=null}static get styles(){return[...super.styles]}set value(o){if(o===this.value)return;const e=this._value;this._value=o,this.requestUpdate("value",e)}get value(){return this._value}getColorValue(){if(!this.value)return"";if(!this.cachedColor||this.cachedColor!==this.value){const o=new h(this.value);this.cachedColor=o.isValid?o.toRgbString():""}return this.cachedColor}renderColorHandle(){return this.viewColor?s.Ht`
223
+ <luzmo-color-handle
224
+ size="m"
225
+ color=${this.getColorValue()}
226
+ ></luzmo-color-handle>
227
+ `:s.Ht``}render(){return this.viewColor&&Promise.resolve().then(()=>Mo),s.Ht` ${super.render()} ${this.renderColorHandle()} `}checkValidity(){let o=super.checkValidity();return this.value&&((!this.cachedTinyColor||this.cachedTinyColor.originalInput!==this.value)&&(this.cachedTinyColor=new h(this.value)),this.valid=o=this.cachedTinyColor.isValid,this.invalid=!o),o}};Go([s.Rt({type:Boolean,attribute:"view-color"})],bo.prototype,"viewColor");customElements.get("luzmo-color-field")||customElements.define("luzmo-color-field",bo);/*! * Lucero - The design system for Luzmo.
228
+ *
229
+ * Copyright © 2025 Luzmo
230
+ * All rights reserved.
231
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
232
+ * This license allows users with a current active Luzmo account to use Lucero.
233
+ * This license terminates automatically if a user no longer has an active Luzmo account.
234
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
235
+ *
236
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
237
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
238
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
239
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
240
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
241
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
242
+ * SOFTWARE.
243
+ * */const Qo=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const t=document.createElement("style");t.setAttribute("data-luzmo-vars",""),t.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-color-disabled);--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-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #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(t)}};Qo();const Jo='.opacity-checkerboard{position:absolute;block-size:100%;inline-size:100%;background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2)}:host{--luzmo-color-slider-gradient-fallback: rgb(255 0 0) 0%, rgb(255 255 0) 17%, rgb(0 255 0) 33%, rgb(0 255 255) 50%, rgb(0 0 255) 67%, rgb(255 0 255) 83%, rgb(255 0 0) 100%;touch-action:none}:host([vertical]) .handle{inset-block-start:unset;inset-block-end:0}:host([vertical]) .slider{-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical}:host(:focus){outline:none}.gradient{overflow:hidden}::slotted(*){width:100%;height:100%}@media (forced-colors: active){:host{--highcontrast-color-slider-border-color: CanvasText;--highcontrast-color-slider-border-color-disabled: GrayText;--highcontrast-color-slider-background-color-disabled: Canvas;forced-color-adjust:none}}:host{--luzmo-color-handle-hitarea-border-radius: var( --luzmo-color-slider-handle-hitarea-border-radius, 0px );min-inline-size:var(--luzmo-color-slider-minimum-length, 80px);inline-size:var(--luzmo-color-slider-length, 192px);block-size:var(--luzmo-color-slider-control-track-width, 24px);-webkit-user-select:none;user-select:none;cursor:default;display:block;position:relative}:host([focused]){z-index:2}:host([disabled]){pointer-events:none}:host([disabled]) .gradient{display:none}:host([vertical]){min-block-size:var(--luzmo-color-slider-vertical-minimum-height, var(--luzmo-color-slider-minimum-length, 80px));block-size:var(--luzmo-color-slider-vertical-height, var(--luzmo-color-slider-length, 192px));min-inline-size:0;inline-size:var(--luzmo-color-slider-vertical-control-track-width, var(--luzmo-color-slider-control-track-height, 24px));display:inline-block}:host([vertical]) .handle{inset-inline-start:50%}.handle{inset-block-start:50%;inset-inline-start:0}.checkerboard{--luzmo-color-slider-border-color-local: var( --highcontrast-color-slider-border-color, var(--luzmo-color-slider-border-color, var(--luzmo-border-color)) )}.checkerboard:before{content:"";z-index:1;box-shadow:inset 0 0 0 var(--luzmo-color-slider-border-width, var(--luzmo-border-width)) var(--luzmo-color-slider-border-color-local);border-radius:var(--luzmo-color-slider-border-rounding, var(--luzmo-border-radius-s));position:absolute;top:0;right:0;bottom:0;left:0}:host([disabled]) .checkerboard{--luzmo-color-slider-border-color-local: var( --highcontrast-color-slider-border-color-disabled, var(--luzmo-color-slider-border-color-disabled, var(--luzmo-dimmed-color)) );background:var(--highcontrast-color-slider-background-color-disabled, var(--luzmo-color-slider-background-color-disabled, var(--luzmo-dimmed-color)))}.checkerboard,.gradient{inline-size:100%;block-size:100%;border-radius:var(--luzmo-color-slider-border-rounding, var(--luzmo-border-radius-s))}.gradient:dir(rtl),:host([dir=rtl]) .gradient{transform:scaleX(-1)}.slider{opacity:0;inline-size:100%;block-size:100%;z-index:0;pointer-events:none;margin:0;position:absolute;inset-block-start:0;inset-inline-start:0}';var oe=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,w=(t,o,e,r)=>{for(var l=r>1?void 0:r?ee(o,e):o,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=(r?a(o,e,l):a(l))||l);return r&&l&&oe(o,e,l),l};let f=class extends s.r{constructor(){super(...arguments),this.disabled=!1,this.focused=!1,this.label="hue",this.vertical=!1,this.languageResolver=new L.l(this),this.colorController=new go(this,{applyColorToState:()=>{if(this.mode==="opacity"){const o=new h(this.colorController.color);this.sliderHandlePosition=100*o.getAlpha()}else this.sliderHandlePosition=100*(this.colorController.hue/360)},extractColorFromState:o=>this.mode==="opacity"?{...o.getColor("hsl"),a:this.value}:{...o.getColor("hsl"),h:this.value},maintains:"saturation"}),this.sliderHandlePosition=0,this.step=1,this.isLTR=!0,this._altered=0,this._pointerDown=!1}static get styles(){return[s.ht(Jo)]}get value(){return this.mode==="opacity"?this.colorController.opacity:this.colorController.hue}set value(o){this.mode==="opacity"?this.colorController.opacity=o:this.colorController.hue=o}get color(){return this.colorController.color}set color(o){this.colorController.color=o}get altered(){return this._altered}set altered(o){this._altered=o,this.step=Math.max(1,this.altered*10)}get focusElement(){return this.input}handleKeydown(o){const{key:e}=o;this.focused=!0,this.altered=[o.shiftKey,o.ctrlKey,o.altKey].filter(i=>!!i).length;let r=0;switch(e){case"ArrowUp":{r=this.step;break}case"ArrowDown":{r=-this.step;break}case"ArrowLeft":{r=this.step*(this.isLTR?-1:1);break}case"ArrowRight":{r=this.step*(this.isLTR?1:-1);break}default:return}o.preventDefault();const l=100/(this.mode==="opacity"?100:360);this.sliderHandlePosition=Math.min(100,Math.max(0,this.sliderHandlePosition+r*l)),this.value=this.mode==="opacity"?Math.min(1,Math.max(0,this.value+r/100)):Math.min(360,Math.max(0,this.value+r)),this.colorController.applyColorFromState(),r!==0&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleInput(o){const{valueAsNumber:e}=o.target;this.value=e,this.sliderHandlePosition=100*(this.mode==="opacity"?this.value:this.value/360),this.colorController.applyColorFromState()}handleChange(o){this.handleInput(o),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}focus(o={}){super.focus(o),this.forwardFocus()}forwardFocus(){this.input.focus()}handleFocus(){this.focused=!0}handleBlur(){this._pointerDown||(this.altered=0,this.focused=!1)}handlePointerdown(o){if(o.button!==0){o.preventDefault();return}this._pointerDown=!0,this.colorController.savePreviousColor(),this.boundingClientRect=this.getBoundingClientRect(),o.target.setPointerCapture(o.pointerId),o.pointerType==="mouse"&&(this.focused=!0)}handlePointermove(o){this.sliderHandlePosition=this.calculateHandlePosition(o),this.value=(this.mode==="opacity"?1:360)*(this.sliderHandlePosition/100),this.colorController.applyColorFromState(),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))}handlePointerup(o){this._pointerDown=!1,o.target.releasePointerCapture(o.pointerId),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,cancelable:!0}))||this.colorController.restorePreviousColor(),this.focus(),o.pointerType==="mouse"&&(this.focused=!1)}calculateHandlePosition(o){if(!this.boundingClientRect)return this.sliderHandlePosition;const e=this.boundingClientRect,r=this.vertical?e.top:e.left,l=this.vertical?o.clientY:o.clientX,i=this.vertical?e.height:e.width,a=Math.max(0,Math.min(1,(l-r)/i));return this.vertical||!this.isLTR?100-100*a:100*a}handleGradientPointerdown(o){o.button===0&&(o.stopPropagation(),o.preventDefault(),this.handle.dispatchEvent(new PointerEvent("pointerdown",o)),this.handlePointermove(o))}get handlePositionStyles(){return`${this.vertical?"inset-block-end":"inset-inline-start"}: ${this.sliderHandlePosition}%`}get getColorSliderStyle(){const o=this.vertical?"top":"right";if(this.mode==="opacity"){const e=new h(this.colorController.color).setAlpha(1).toRgbString();return{background:`linear-gradient(to ${o}, transparent, ${e})`}}return{background:`linear-gradient(to ${o}, var(--luzmo-color-slider-gradient, var(--luzmo-color-slider-gradient-fallback)))`}}render(){return s.Ht`
244
+ <div
245
+ class="opacity-checkerboard checkerboard"
246
+ role="presentation"
247
+ @pointerdown=${this.handleGradientPointerdown}
248
+ >
249
+ <div
250
+ class="gradient"
251
+ role="presentation"
252
+ style=${Z.p(this.getColorSliderStyle)}
253
+ >
254
+ <slot name="gradient"></slot>
255
+ </div>
256
+ </div>
257
+ <luzmo-color-handle
258
+ tabindex=${d.m(this.focused?void 0:"0")}
259
+ @focus=${this.forwardFocus}
260
+ ?focused=${this.focused}
261
+ class="handle"
262
+ color=${this.mode==="opacity"?this.color:"hsl("+this.value+", 100%, 50%)"}
263
+ ?disabled=${this.disabled}
264
+ style=${this.handlePositionStyles}
265
+ ${L.u({start:["pointerdown",this.handlePointerdown],streamInside:["pointermove",this.handlePointermove],end:[["pointerup","pointercancel","pointerleave"],this.handlePointerup]})}
266
+ ></luzmo-color-handle>
267
+ <input
268
+ type="range"
269
+ class="slider"
270
+ min="0"
271
+ max=${this.mode==="opacity"?"100":"360"}
272
+ aria-orientation=${d.m(this.vertical?"vertical":void 0)}
273
+ orient=${d.m(this.vertical?"vertical":void 0)}
274
+ step=${this.step}
275
+ aria-label=${this.label}
276
+ .value=${String(this.mode==="opacity"?this.value*100:this.value)}
277
+ aria-valuetext=${`${new Intl.NumberFormat(this.languageResolver.language,{maximumFractionDigits:0,minimumIntegerDigits:1,style:"unit",unit:this.mode==="opacity"?"percent":"degree",unitDisplay:"narrow"}).format(this.mode==="opacity"?this.value*100:this.value)}`}
278
+ @input=${this.handleInput}
279
+ @change=${this.handleChange}
280
+ @keydown=${this.handleKeydown}
281
+ />
282
+ `}firstUpdated(o){super.firstUpdated(o),this.boundingClientRect=this.getBoundingClientRect(),this.addEventListener("focus",this.handleFocus),this.addEventListener("blur",this.handleBlur)}updated(o){o.has("mode")&&(this.handle.style.insetInlineStart="",this.handle.style.insetBlockEnd="",this.mode==="opacity"&&(this.colorController.color=new h(this.colorController.color).toRgbString(),this.handle.style.insetInlineStart=100*this.colorController.opacity+"%"))}};w([s.Rt({type:String,reflect:!0})],f.prototype,"dir",2);w([s.Rt({type:String,reflect:!0})],f.prototype,"mode",2);w([s.Rt({type:Boolean,reflect:!0})],f.prototype,"disabled",2);w([s.Rt({type:Boolean,reflect:!0})],f.prototype,"focused",2);w([d.d(".handle")],f.prototype,"handle",2);w([s.Rt({type:String})],f.prototype,"label",2);w([s.Rt({type:Boolean,reflect:!0})],f.prototype,"vertical",2);w([s.Rt({type:Number})],f.prototype,"value",1);w([s.Rt({type:Number,reflect:!0})],f.prototype,"sliderHandlePosition",2);w([s.Rt({type:String})],f.prototype,"color",1);w([s.Rt({type:Number})],f.prototype,"step",2);w([s.Rt({type:Boolean,attribute:"is-ltr"})],f.prototype,"isLTR",2);w([d.d("input")],f.prototype,"input",2);customElements.get("luzmo-color-slider")||customElements.define("luzmo-color-slider",f);/*! * Lucero - The design system for Luzmo.
283
+ *
284
+ * Copyright © 2025 Luzmo
285
+ * All rights reserved.
286
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
287
+ * This license allows users with a current active Luzmo account to use Lucero.
288
+ * This license terminates automatically if a user no longer has an active Luzmo account.
289
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
290
+ *
291
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
292
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
293
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
294
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
295
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
296
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
297
+ * SOFTWARE.
298
+ * */const te=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const t=document.createElement("style");t.setAttribute("data-luzmo-vars",""),t.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-color-disabled);--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-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #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(t)}};te();const re='@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-color-negative);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';var le=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,$=(t,o,e,r)=>{for(var l=r>1?void 0:r?ie(o,e):o,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=(r?a(o,e,l):a(l))||l);return r&&l&&le(o,e,l),l};let C=class extends j.m(s.r,{validSizes:["xxs","xs","s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.color="",this.label="",this.mixedValue=!1,this.nothing=!1,this.role="button",this.selected=!1,this.readonly=!1,this.renderDisabled=()=>s.Ht`
299
+ <svg
300
+ xmlns="http://www.w3.org/2000/svg"
301
+ class="disabled-icon"
302
+ viewBox="0 0 20 20"
303
+ >
304
+ <path
305
+ d="M9.889,1a8.889,8.889,0,1,0,8.889,8.889A8.889,8.889,0,0,0,9.889,1Zm6.667,8.889a6.635,6.635,0,0,1-1.233,3.863l-9.3-9.3A6.667,6.667,0,0,1,16.556,9.889Zm-13.333,0A6.636,6.636,0,0,1,4.455,6.026l9.3,9.3A6.667,6.667,0,0,1,3.222,9.889Z"
306
+ stroke="none"
307
+ fill="var(--swatch-disabled-icon-color)"
308
+ />
309
+ <path
310
+ d="M 9.888889312744141 1 C 4.979689598083496 1 1 4.979689598083496 1 9.888889312744141 C 1 14.7980899810791 4.979689598083496 18.77777862548828 9.888889312744141 18.77777862548828 C 14.7980899810791 18.77777862548828 18.77777862548828 14.7980899810791 18.77777862548828 9.888889312744141 C 18.77777862548828 4.979689598083496 14.7980899810791 1 9.888889312744141 1 M 15.32277870178223 13.75166893005371 L 6.02610969543457 4.454998970031738 C 8.059318542480469 3.009572982788086 10.72937774658203 2.820217132568359 12.9462194442749 3.964249610900879 C 15.16304969787598 5.10828971862793 16.55568885803223 7.394259452819824 16.5555591583252 9.888889312744141 C 16.55776977539062 11.27357959747314 16.126708984375 12.62425994873047 15.32277870178223 13.75166893005371 M 9.888258934020996 16.55648612976074 C 8.843273162841797 16.55648612976074 7.794573783874512 16.31111145019531 6.831318855285645 15.8139591217041 C 4.614439010620117 14.66977882385254 3.221879959106445 12.38361930847168 3.222219467163086 9.888889312744141 C 3.220088958740234 8.504219055175781 3.651140213012695 7.153559684753418 4.454998970031738 6.02610969543457 L 13.75166893005371 15.32333946228027 C 12.60186290740967 16.14075088500977 11.24825286865234 16.55648612976074 9.888258934020996 16.55648612976074 M 9.888889312744141 0 C 15.34163951873779 0 19.77777862548828 4.436139106750488 19.77777862548828 9.888889312744141 C 19.77777862548828 15.34163951873779 15.34163951873779 19.77777862548828 9.888889312744141 19.77777862548828 C 4.436139106750488 19.77777862548828 0 15.34163951873779 0 9.888889312744141 C 0 4.436139106750488 4.436139106750488 0 9.888889312744141 0 Z M 15.10232830047607 12.11699867248535 C 15.40205764770508 11.41858959197998 15.55679702758789 10.66494941711426 15.5555591583252 9.89048957824707 C 15.5556697845459 7.759209632873535 14.38009929656982 5.829549789428711 12.48761940002441 4.852889060974121 C 11.68764972686768 4.440059661865234 10.78924942016602 4.22184944152832 9.889529228210449 4.22184944152832 C 9.114802360534668 4.22184944152832 8.360831260681152 4.377038955688477 7.661839485168457 4.676509857177734 L 15.10232830047607 12.11699867248535 Z M 12.11597919464111 15.10181331634521 L 4.675475120544434 7.660861015319824 C 4.375750541687012 8.359296798706055 4.221027374267578 9.112875938415527 4.222219467163086 9.887349128723145 C 4.221929550170898 12.01874923706055 5.397418975830078 13.94855880737305 7.289958953857422 14.92533874511719 C 8.08997917175293 15.3382396697998 8.988459587097168 15.55648994445801 9.888258934020996 15.55648994445801 C 10.66298007965088 15.55648994445801 11.41698551177979 15.40128421783447 12.11597919464111 15.10181331634521 Z"
311
+ stroke="none"
312
+ fill="var(--swatch-disabled-icon-stroke-color)"
313
+ />
314
+ </svg>
315
+ `,this.renderMixedValue=()=>B.luzmoIcon(B.luzmoDash)}static get styles(){return[s.ht(re)]}get value(){return this._value||this.color||this.label}set value(o){if(o===this._value)return;const e=this.value;this._value=o,this.requestUpdate("value",e)}get focusElement(){return this}toggle(o){this.readonly||(this.selected=o??!this.selected)}handleClick(){this.disabled||this.mixedValue||(this.toggle(),this.dispatchEvent(new Event("change",{cancelable:!0,bubbles:!0}))||this.toggle())}handleKeydown(o){const{code:e}=o;switch(e){case"Space":{o.preventDefault(),this.addEventListener("keyup",this.handleKeyup);break}}}handleKeypress(o){const{code:e}=o;switch(e){case"Enter":case"NumpadEnter":{this.click();break}}}handleKeyup(o){const{code:e}=o;switch(e){case"Space":{this.removeEventListener("keyup",this.handleKeyup),this.click();break}}}render(){return s.Ht`
316
+ <div
317
+ class="opacity-checkerboard fill"
318
+ style=${d.m(this.color?`--picked-color: ${this.color}`:void 0)}
319
+ >
320
+ <slot name="image"></slot>
321
+ ${J.o(this.disabled,this.renderDisabled)}
322
+ ${J.o(this.mixedValue,this.renderMixedValue)}
323
+ </div>
324
+ `}willUpdate(o){var e;if(this.getAttribute("role")||this.setAttribute("role","button"),(o.has("selected")||o.has("role"))&&!this.readonly){const r=this.role==="button"?"aria-pressed":"aria-checked",l=this.role==="button"?"aria-checked":"aria-pressed";o.has("role")&&this.removeAttribute(l),this.setAttribute(r,this.selected?"true":"false")}(o.has("label")||o.has("color")||o.has("mixedValue"))&&(this.label!==this.color&&(e=this.label)!=null&&e.length?this.setAttribute("aria-label",this.label):this.color?this.setAttribute("aria-label",this.color):this.mixedValue?this.setAttribute("aria-label","Mixed"):this.removeAttribute("aria-label"))}firstUpdated(o){super.firstUpdated(o),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keypress",this.handleKeypress),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}};$([s.Rt({reflect:!0})],C.prototype,"border",2);$([s.Rt()],C.prototype,"color",2);$([s.Rt()],C.prototype,"label",2);$([s.Rt({type:Boolean,reflect:!0,attribute:"mixed-value"})],C.prototype,"mixedValue",2);$([s.Rt({type:Boolean,reflect:!0})],C.prototype,"nothing",2);$([s.Rt({reflect:!0})],C.prototype,"role",2);$([s.Rt({reflect:!0})],C.prototype,"rounding",2);$([s.Rt({type:Boolean,reflect:!0})],C.prototype,"selected",2);$([s.Rt({type:Boolean,reflect:!0})],C.prototype,"readonly",2);$([s.Rt({reflect:!0})],C.prototype,"shape",2);$([s.Rt()],C.prototype,"value",1);const ae=":host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular, var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact, var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious, var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact: 2px;--swatch-group-spacing-regular: 4px;--swatch-group-spacing-spacious: 8px}";var se=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,T=(t,o,e,r)=>{for(var l=r>1?void 0:r?ne(o,e):o,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=(r?a(o,e,l):a(l))||l);return r&&l&&se(o,e,l),l};class H extends j.m(s.kt,{validSizes:["xs","s","m","l"],noDefaultSize:!0}){constructor(){super(),this._selected=[],this.selectedSet=new Set,this.rovingTabindexController=new ko.m(this,{focusInIndex:o=>{let e=-1;const r=o.findIndex((l,i)=>(!o[e]&&!l.disabled&&(e=i),l.selected&&!l.disabled));return o[r]?r:e},elements:()=>this.swatches,isFocusableElement:o=>!o.disabled}),this.manageChange=async()=>{const o=new Set;this.selectedSet=new Set(this.selected),await Promise.all(this.swatches.map(e=>e.updateComplete)),this.swatches.forEach(e=>{o.add(e.value),e.selected&&this.selectedSet.add(e.value)}),this.selectedSet.forEach(e=>{o.has(e)||this.selectedSet.delete(e)}),this._selected=[...this.selectedSet],this.rovingTabindexController.clearElementCache()},new wo.a(this,{config:{attributes:!0,childList:!0,subtree:!0},callback:()=>{this.manageChange()}})}static get styles(){return[s.ht(ae)]}get selected(){return this._selected}set selected(o){if(o===this.selected)return;const e=this.selected;this._selected=o,this.requestUpdate("selected",e)}focus(o){this.rovingTabindexController.focus(o)}handleChange(o){o.stopPropagation();const e=this.selected;if(!this.selects){o.preventDefault();return}if(this.selects==="single"){const{target:r}=o;if(r.tabIndex=0,r.selected=!0,this.selectedSet.has(r.value))return;this.selectedSet.clear(),this.selectedSet.add(r.value),this.rovingTabindexController.elements.forEach(l=>{l!==r&&(l.selected=!1)})}else if(this.selects==="multiple"){const{target:r}=o;r.selected?this.selectedSet.add(r.value):this.selectedSet.delete(r.value)}this._selected=[...this.selectedSet],this.dispatchEvent(new Event("change",{cancelable:!0,bubbles:!0}))||(this._selected=e,o.preventDefault())}getPassthroughSwatchActions(o){const e={};o.has("selects")&&(this.selects||o.get("selects")!==void 0)&&(e.selects=this.selects),o.has("border")&&(this.border||o.get("border")!==void 0)&&(e.border=this.border),o.has("rounding")&&(this.rounding||o.get("rounding")!==void 0)&&(e.rounding=this.rounding),o.has("size")&&(this.size!=="m"||o.get("size")!==void 0)&&(e.size=this.size),o.has("shape")&&(this.shape||o.get("shape")!==void 0)&&(e.shape=this.shape);const r=[];return Object.keys(e).length>0&&r.push(l=>{"border"in e&&(l.border=e.border),"rounding"in e&&(l.rounding=e.rounding),"shape"in e&&(l.shape=e.shape),"size"in e&&(l.size=e.size)}),r}getSelectionSwatchActions(o){const e=[];if(!o.has("selects"))return e;this.selects?this.setAttribute("role",this.selects==="single"?"radiogroup":"group"):this.removeAttribute("role");const r={single:"radio",multiple:"checkbox"},l=this.selects?r[this.selects]:"button";return e.push(i=>{i.setAttribute("role",l)}),e}render(){return s.Ht`
325
+ <slot
326
+ @change=${this.handleChange}
327
+ @slotchange=${this.manageChange}
328
+ ></slot>
329
+ `}willUpdate(o){const e=[...this.getPassthroughSwatchActions(o),...this.getSelectionSwatchActions(o)];let r=new Set(this.selected);const l=new Set;o.has("selected")&&e.push(a=>{l.add(a.value),a.selected=!!(r.has(a.value)||!this.hasUpdated&&a.selected)});const i=()=>{r=new Set(this.selected),this.swatches.forEach(a=>{e.forEach(n=>{n(a)})}),o.has("selected")&&(this._selected=[...r.values()].filter(a=>l.has(a)))};this.hasUpdated?i():this.renderRoot.addEventListener("slotchange",()=>{requestAnimationFrame(i)},{once:!0})}}T([s.Rt({reflect:!0})],H.prototype,"border",2);T([s.Rt({reflect:!0})],H.prototype,"density",2);T([s.Rt({reflect:!0})],H.prototype,"rounding",2);T([s.Rt({type:Array})],H.prototype,"selected",1);T([s.Rt()],H.prototype,"selects",2);T([s.Rt({reflect:!0})],H.prototype,"shape",2);T([Z.d({flatten:!0})],H.prototype,"swatches",2);customElements.get("luzmo-swatch")||customElements.define("luzmo-swatch",C);customElements.get("luzmo-swatch-group")||customElements.define("luzmo-swatch-group",H);/*! * Lucero - The design system for Luzmo.
330
+ *
331
+ * Copyright © 2025 Luzmo
332
+ * All rights reserved.
333
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
334
+ * This license allows users with a current active Luzmo account to use Lucero.
335
+ * This license terminates automatically if a user no longer has an active Luzmo account.
336
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
337
+ *
338
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
339
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
340
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
341
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
342
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
343
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
344
+ * SOFTWARE.
345
+ * */const ce=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const t=document.createElement("style");t.setAttribute("data-luzmo-vars",""),t.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-color-disabled);--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-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #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(t)}};ce();const ue='@charset "UTF-8";:host{width:var(--luzmo-color-menu-width, var(--color-menu-width))}.hue-opacity-text-swatches-container{display:flex;gap:var(--luzmo-color-menu-color-controls-vertical-gap, var(--color-menu-color-controls-vertical-gap));flex-direction:column;padding:var(--luzmo-color-menu-hue-opacity-text-swatches-vertical-padding, var(--color-menu-hue-opacity-text-swatches-vertical-padding)) var(--luzmo-color-menu-hue-opacity-text-swatches-horizontal-padding, var(--color-menu-hue-opacity-text-swatches-horizontal-padding))}.swatch-sliders-container{display:flex;gap:var(--luzmo-color-menu-swatch-to-sliders-space, var(--color-menu-swatch-to-sliders-space))}.swatch-example-container{display:flex;align-items:center}.field-container{display:flex;align-items:center;gap:var(--luzmo-color-menu-format-field-to-format-space, var(--color-menu-format-field-to-format-space))}.format-container{text-transform:uppercase;position:relative;background:none;border:none;outline:none;height:var(--luzmo-color-menu-format-height, var(--color-menu-format-height));cursor:pointer;font-size:var(--luzmo-color-menu-format-font-size, var(--color-menu-format-font-size));display:flex;align-items:center;color:var(--luzmo-color-menu-format-font-color, var(--color-menu-format-font-color));gap:var(--luzmo-color-menu-format-name-to-icon, var(--color-menu-format-name-to-icon-space));padding:0 var(--luzmo-color-menu-format-horizontal-padding, var(--color-menu-format-horizontal-padding))}.format-container:hover{color:var(--luzmo-color-menu-format-font-color-hover, var(--color-menu-format-font-color-hover))}.format-container:focus-visible{outline:none}.format-container:focus-visible:after{content:"";width:100%;height:100%;position:absolute;box-sizing:border-box;left:0;top:0;border:var(--luzmo-color-menu-format-indicator-width, var(--luzmo-indicator-width)) solid var(--luzmo-color-menu-format-indicator-color, var(--luzmo-indicator-color));border-radius:var(--luzmo-color-menu-format-label-indicator-border-radius, var(--luzmo-border-radius-s))}.format-container:focus-visible,.format-container:active{color:var(--luzmo-color-menu-format-font-color-down, var(--color-menu-format-font-color-down))}.format-container .format-label{-webkit-user-select:none;user-select:none}.format-container .angle-icon{display:flex;align-items:center;height:calc(var(--color-menu-format-font-size) / 1.5)}.slider-container{display:flex;flex-direction:column;justify-content:center;gap:var(--luzmo-color-menu-slider-gap, var(--color-menu-slider-gap))}luzmo-color-area{width:100%;height:var(--luzmo-color-menu-height, var(--color-menu-height))}luzmo-color-slider{width:100%}luzmo-divider{margin:var(--luzmo-spacing-5) à}.swatches-container{display:grid;grid-template-columns:repeat(6,1fr);gap:var(--luzmo-color-menu-swatches-gap, var(--color-menu-swatches-gap))}.swatches-container luzmo-swatch{cursor:pointer}.swatches-container .swatch-choice{display:flex;align-items:center;justify-content:center}:host{--luzmo-text-field-icon-size-valid: 0px;--luzmo-text-field-icon-spacing-inline-end-valid: 1px;--luzmo-text-field-text-align: center}:host{--color-menu-width: 290px;--luzmo-text-field-width: 220px;--luzmo-color-slider-control-track-width: 8px;--color-menu-height: 140px;--color-menu-hue-opacity-text-swatches-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--color-menu-hue-opacity-text-swatches-vertical-padding: var( --luzmo-spacing-5 );--color-menu-color-controls-vertical-gap: var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space: var(--luzmo-spacing-5);--color-menu-slider-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--color-menu-format-height: var(--luzmo-component-height);--color-menu-format-font-size: var(--luzmo-font-size-s);--color-menu-format-name-to-icon-space: var(--luzmo-spacing-2);--color-menu-format-field-to-format-space: var(--luzmo-spacing-2);--color-menu-format-horizontal-padding: var(--luzmo-spacing-3);--color-menu-format-font-color: var(--luzmo-font-color);--color-menu-format-font-color-hover: var(--luzmo-font-color-hover);--color-menu-format-font-color-down: var(--luzmo-font-color-down);--color-menu-swatches-gap: var(--luzmo-spacing-4)}:host .swatches-container{--luzmo-swatch-size: 22px}:host([size=s]){--color-menu-width: 260px;--luzmo-text-field-width: 200px;--luzmo-color-slider-control-track-width: 8px;--color-menu-hue-opacity-text-swatches-horizontal-padding: var( --luzmo-spacing-5 );--color-menu-hue-opacity-text-swatches-vertical-padding: var( --luzmo-spacing-4 );--color-menu-color-controls-vertical-gap: var(--luzmo-spacing-4);--color-menu-swatch-to-sliders-space: var(--luzmo-spacing-4);--color-menu-slider-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--color-menu-format-height: var(--luzmo-component-height-s);--color-menu-format-font-size: var(--luzmo-font-size-xs);--color-menu-format-name-to-icon-space: var(--luzmo-spacing-2);--color-menu-format-field-to-format-space: var(--luzmo-spacing-2);--color-menu-format-horizontal-padding: var(--luzmo-spacing-2);--color-menu-swatches-gap: var(--luzmo-spacing-3)}:host([size=s]) .swatches-container{--luzmo-swatch-size: 20px}:host([size=l]){--color-menu-width: 350px;--luzmo-text-field-width: 240px;--luzmo-color-slider-control-track-width: 16px;--color-menu-hue-opacity-text-swatches-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--color-menu-hue-opacity-text-swatches-vertical-padding: var( --luzmo-spacing-5 );--color-menu-color-controls-vertical-gap: var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space: var(--luzmo-spacing-5);--color-menu-slider-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--color-menu-format-height: var(--luzmo-component-height-l);--color-menu-format-font-size: var(--luzmo-font-size);--color-menu-format-name-to-icon-space: var(--luzmo-spacing-3);--color-menu-format-field-to-format-space: var(--luzmo-spacing-2);--color-menu-format-horizontal-padding: var(--luzmo-spacing-4);--color-menu-swatches-gap: var(--luzmo-spacing-4)}:host([size=l]) .swatches-container{--luzmo-swatch-size: 24px}:host([size=l]) .swatch-example-container{--luzmo-swatch-size: 56px}:host([size=xl]){--color-menu-width: 380px;--luzmo-text-field-width: 280px;--luzmo-color-slider-control-track-width: 16px;--color-menu-hue-opacity-text-swatches-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--color-menu-hue-opacity-text-swatches-vertical-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--color-menu-color-controls-vertical-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--color-menu-swatch-to-sliders-space: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--color-menu-slider-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--color-menu-format-height: var(--luzmo-component-height-xl);--color-menu-format-font-size: var(--luzmo-font-size-l);--color-menu-format-name-to-icon-space: var(--luzmo-spacing-3);--color-menu-format-field-to-format-space: var(--luzmo-spacing-3);--color-menu-format-horizontal-padding: var(--luzmo-spacing-4);--color-menu-swatches-gap: var(--luzmo-spacing-4)}:host([size=xl]) .swatches-container{--luzmo-swatch-size: 26px}:host([size=xl]) .swatch-example-container{--luzmo-swatch-size: 64px}';var he=Object.defineProperty,E=(t,o,e,r)=>{for(var l=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=a(o,e,l)||l);return l&&he(o,e,l),l};const zo=class extends j.m(s.kt){constructor(){super(...arguments),this.color="rgb(255, 0, 0)",this.noAlphaChannel=!1,this._alpha=1,this._rgbColor="rgb(255, 0, 0)",this._rgbaColor="rgb(255, 0, 0, 1)",this._previousColor="rgb(255, 0, 0)"}setColor(o){var e;const r=new h((e=o==null?void 0:o.target)==null?void 0:e.color);this._format=r.format==="name"?"rgb":r.format,this._rgbaColor=r.toRgbString(),this._alpha=this.noAlphaChannel?1:r.getAlpha(),this._rgbColor=r.setAlpha(1).toRgbString(),this.hueSliderElement.color=this._rgbColor,this.areaElement.color=this._rgbColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this.colorFieldElement.value=this.formatTextField(r),this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent("change",{detail:this.color}))}handleAreaChange(o){o.stopPropagation(),o.preventDefault(),this._rgbColor=this.areaElement.color;const e=new h(this._rgbColor);this._rgbaColor=e.setAlpha(this._alpha).toRgbString(),this.colorFieldElement.value=this._rgbaColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.colorFieldElement.value=this.formatTextField(e),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent("change",{detail:this.color}))}handleHueSliderChange(o){o.stopPropagation(),o.preventDefault();const e=new h(this._rgbColor).toHsl();e.h=this.hueSliderElement.value;const r=new h(e);this._rgbColor=r.toRgbString(),this._rgbaColor=r.setAlpha(this._alpha).toRgbString(),this.areaElement.color=this._rgbColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.colorFieldElement.value=this.formatTextField(r),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent("change",{detail:this.color}))}handleOpacitySliderChange(o){o.stopPropagation(),o.preventDefault(),this._alpha=this.opacitySliderElement.sliderHandlePosition/100;const e=new h(this._rgbColor).setAlpha(this._alpha);this._rgbaColor=e.toRgbString(),this.colorFieldElement.value=this.formatTextField(e),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent("change",{detail:this.color}))}handleFieldChange(o){if(o.stopPropagation(),o.preventDefault(),this.colorFieldElement.checkValidity()){const e=new h(this.colorFieldElement.value);this._format=e.format,this._rgbaColor=e.toRgbString(),this._alpha=e.getAlpha(),this._rgbColor=e.setAlpha(1).toRgbString(),this.noAlphaChannel&&(this._rgbaColor=this._rgbColor,this._alpha=1),this.hueSliderElement.color=this._rgbColor,this.areaElement.color=this._rgbColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent("change",{detail:this.color}))}}formatTextField(o){return this._format==="hsl"?o.toHslString():this._format==="hex"?this.noAlphaChannel?o.toHexString():o.toHex8String():(this._format==="name"&&(this._format="rgb"),o.toRgbString())}cycleFormat(){const o=["rgb","hsl","hex"];this._format=o[(o.indexOf(this._format)+1)%o.length];const e=new h(this.color),r=this.formatTextField(e);this.colorFieldElement.value=r}updated(o){if(o.has("color")&&this.color!==this._previousColor){this._previousColor=this.color;const e=new h(this.color);this._alpha=e.getAlpha(),this._rgbColor=e.setAlpha(1).toRgbString(),this._rgbaColor=e.setAlpha(this._alpha).toRgbString(),this.areaElement.color=this._rgbColor,this.hueSliderElement.color=this._rgbColor,this.colorFieldElement.value=this._rgbaColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this._format="rgb"}o.has("noAlphaChannel")&&!this.noAlphaChannel&&(this.opacitySliderElement.color=this._rgbaColor)}renderOpacitySlider(){return s.Ht`
346
+ <luzmo-color-slider
347
+ id="luzmo-opacity-slider"
348
+ mode="opacity"
349
+ @input=${this.handleOpacitySliderChange}
350
+ >
351
+ </luzmo-color-slider>
352
+ `}render(){var o;return s.Ht`
353
+ <div>
354
+ <luzmo-color-area
355
+ .size=${this.size}
356
+ @input=${this.handleAreaChange}
357
+ ></luzmo-color-area>
358
+ <div class="hue-opacity-text-swatches-container">
359
+ <div class="swatch-sliders-container">
360
+ <div class="swatch-example-container">
361
+ <luzmo-swatch
362
+ rounding="full"
363
+ .size=${this.noAlphaChannel&&["s","m"].includes(this.size)?"s":"l"}
364
+ readonly
365
+ ></luzmo-swatch>
366
+ </div>
367
+ <div class="slider-container" style="flex-grow: 1;">
368
+ <luzmo-color-slider
369
+ id="luzmo-hue-slider"
370
+ @input=${this.handleHueSliderChange}
371
+ >
372
+ </luzmo-color-slider>
373
+ ${this.noAlphaChannel?"":this.renderOpacitySlider()}
374
+ </div>
375
+ </div>
376
+ <div class="field-container">
377
+ <luzmo-color-field
378
+ .size=${this.size}
379
+ @input=${this.handleFieldChange}
380
+ >
381
+ </luzmo-color-field>
382
+ <button
383
+ class="format-container"
384
+ aria-label="Color format"
385
+ @click=${this.cycleFormat}
386
+ tabindex="0"
387
+ >
388
+ <div class="format-label">${this._format}</div>
389
+ <div class="change-format-icon">
390
+ <div class="angle-icon">${B.luzmoIcon(B.luzmoAngleUp)}</div>
391
+ <div class="angle-icon">${B.luzmoIcon(B.luzmoAngleDown)}</div>
392
+ </div>
393
+ </button>
394
+ </div>
395
+ ${((o=this.swatches)==null?void 0:o.length)>0?s.Ht`
396
+ <luzmo-divider></luzmo-divider>
397
+ <div class="swatches-container">
398
+ ${this.swatches.map(e=>s.Ht`
399
+ <div class="swatch-choice">
400
+ <luzmo-swatch
401
+ @click=${this.setColor}
402
+ .color=${e}
403
+ .size=${this.size}
404
+ readonly
405
+ >
406
+ </luzmo-swatch>
407
+ </div>
408
+ `)}
409
+ </div>
410
+ `:""}
411
+ </div>
412
+ </div>
413
+ `}};zo.styles=s.ht(ue);let _=zo;E([s.Rt({type:String,reflect:!0})],_.prototype,"color");E([s.Rt({type:Boolean,reflect:!0,attribute:"no-alpha-channel"})],_.prototype,"noAlphaChannel");E([s.Rt({type:Array,reflect:!0})],_.prototype,"swatches");E([d.d("luzmo-color-area")],_.prototype,"areaElement");E([d.d("#luzmo-hue-slider")],_.prototype,"hueSliderElement");E([d.d("#luzmo-opacity-slider")],_.prototype,"opacitySliderElement");E([d.d("luzmo-color-field")],_.prototype,"colorFieldElement");E([d.d("luzmo-swatch")],_.prototype,"swatchElement");E([no.n()],_.prototype,"_format");customElements.get("luzmo-color-menu")||customElements.define("luzmo-color-menu",_);/*! * Lucero - The design system for Luzmo.
414
+ *
415
+ * Copyright © 2025 Luzmo
416
+ * All rights reserved.
417
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
418
+ * This license allows users with a current active Luzmo account to use Lucero.
419
+ * This license terminates automatically if a user no longer has an active Luzmo account.
420
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
421
+ *
422
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
423
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
424
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
425
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
426
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
427
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
428
+ * SOFTWARE.
429
+ * */const de=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const t=document.createElement("style");t.setAttribute("data-luzmo-vars",""),t.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-color-disabled);--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-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #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(t)}};de();const me="luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host{--luzmo-popover-content-area-spacing-vertical: 0;--color-picker-popover-horizontal-gap: var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-5)}";var pe=Object.defineProperty,R=(t,o,e,r)=>{for(var l=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=a(o,e,l)||l);return l&&pe(o,e,l),l};const fo=class extends j.m(s.kt){constructor(){super(...arguments),this.color="rgb(255, 0, 0)",this.open=!1,this.disabled=!1,this.placement="left-start",this.rounding="full",this.swatches=[],this.noAlphaChannel=!1,this._renderMenu=!1}overlayCloseEvent(){this.open=!1}overlayOpenEvent(){this.open=!0}handleColorChange(){this.color=this.menuElement.color,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}firstUpdated(){this.overlayElement.addEventListener("slottable-request",o=>{this._renderMenu=o.data!==Z.a})}updated(o){o.has("open")&&this.open===!0&&(this._renderMenu=!0)}renderColorMenu(){return s.Ht`
430
+ <luzmo-color-menu
431
+ .size=${this.size}
432
+ .color=${this.color}
433
+ .noAlphaChannel=${this.noAlphaChannel}
434
+ .swatches=${this.swatches}
435
+ @change=${this.handleColorChange}
436
+ ></luzmo-color-menu>
437
+ `}render(){return s.Ht`
438
+ <luzmo-swatch
439
+ id="trigger"
440
+ .shape=${this.shape}
441
+ .rounding=${this.rounding}
442
+ .size=${this.size}
443
+ .color=${this.color}
444
+ .selected=${this.open&&!this.disabled}
445
+ ?disabled=${this.disabled}
446
+ @luzmo-closed=${this.overlayCloseEvent}
447
+ @luzmo-opened=${this.overlayOpenEvent}
448
+ ></luzmo-swatch>
449
+ <luzmo-overlay
450
+ trigger=${this.disabled?"":"trigger@click"}
451
+ type="auto"
452
+ .placement=${this.placement}
453
+ type="page"
454
+ >
455
+ <luzmo-popover style="position:relative">
456
+ ${this._renderMenu?this.renderColorMenu():s.Ht``}
457
+ </luzmo-popover>
458
+ </luzmo-overlay>
459
+ `}};fo.styles=s.ht(me);let S=fo;R([s.Rt({type:String,reflect:!0})],S.prototype,"color");R([s.Rt({type:Boolean,reflect:!0})],S.prototype,"open");R([s.Rt({type:Boolean,reflect:!0})],S.prototype,"disabled");R([s.Rt({type:String,reflect:!0})],S.prototype,"placement");R([s.Rt({type:String,reflect:!0})],S.prototype,"rounding");R([s.Rt({type:String,reflect:!0})],S.prototype,"shape");R([s.Rt({type:Array,reflect:!0})],S.prototype,"swatches");R([s.Rt({type:Boolean,reflect:!0,attribute:"no-alpha-channel"})],S.prototype,"noAlphaChannel");R([d.d("luzmo-color-menu")],S.prototype,"menuElement");R([d.d("luzmo-overlay")],S.prototype,"overlayElement");R([no.n()],S.prototype,"_renderMenu");customElements.get("luzmo-color-picker")||customElements.define("luzmo-color-picker",S);var ge=Object.defineProperty,A=(t,o,e,r)=>{for(var l=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(l=a(o,e,l)||l);return l&&ge(o,e,l),l};const q=class q extends So.LuzmoEditOptionBase{constructor(){super(...arguments),this.value="transparent",this.disabled=!1,this.noAlphaChannel=!1,this.swatches=[],this.rounding="full",this.shape="circle",this.placement="left-start",this.debounce=50}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.colorPicker.color}}))},this.debounce??200)}renderController(){return s.x`
460
+ <luzmo-color-picker
461
+ .color=${this.value}
462
+ .size=${this.size}
463
+ .rounding=${this.rounding}
464
+ .shape=${this.shape}
465
+ .swatches=${this.swatches}
466
+ .placement=${this.placement}
467
+ .noAlphaChannel=${this.noAlphaChannel}
468
+ ?disabled=${this.disabled}
469
+ @change=${this._handleEvent}
470
+ >
471
+ </luzmo-color-picker>
472
+ `}};q.styles=[G(q,q,"styles")];let y=q;A([s.n({type:String,reflect:!0})],y.prototype,"value");A([s.n({type:Boolean,reflect:!0})],y.prototype,"disabled");A([s.n({type:Boolean,reflect:!0})],y.prototype,"noAlphaChannel");A([s.n({type:Array,reflect:!0})],y.prototype,"swatches");A([s.n({type:String,reflect:!0})],y.prototype,"rounding");A([s.n({type:String,reflect:!0})],y.prototype,"shape");A([s.n()],y.prototype,"placement");A([s.n({type:Number,reflect:!0})],y.prototype,"debounce");A([Co.e("luzmo-color-picker")],y.prototype,"colorPicker");customElements.get("luzmo-edit-option-color-picker")||customElements.define("luzmo-edit-option-color-picker",y);exports.LuzmoEditOptionColorPicker=y;