@luzmo/analytics-components-kit 1.0.1-alpha.40 → 1.0.1-alpha.42

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 (204) hide show
  1. package/components/{area-chart-slots.config-P7xa-pHi.js → area-chart-slots.config-DoytjTpw.js} +1 -1
  2. package/components/{area-chart-slots.config-CIfDfftd.cjs → area-chart-slots.config-Dx_ysVZK.cjs} +1 -1
  3. package/components/{bar-chart-slots.config-MQAjNXqV.js → bar-chart-slots.config-Dn0IV43j.js} +1 -1
  4. package/components/{bar-chart-slots.config-DszaQhMd.cjs → bar-chart-slots.config-c_9ABPOI.cjs} +1 -1
  5. package/components/{box-plot-slots.config-BRhnF2FE.js → box-plot-slots.config-FI5Id-7p.js} +1 -1
  6. package/components/box-plot-slots.config-K-1CiWO-.cjs +20 -0
  7. package/components/{calculate-data-item-icon-DlyGQVBA.js → calculate-data-item-icon-BFpVWXnR.js} +61 -43
  8. package/components/{calculate-data-item-icon-Bygfq3KO.cjs → calculate-data-item-icon-C_3QUGmB.cjs} +1 -1
  9. package/components/choropleth-map-slots.config-CFERs0ca.cjs +20 -0
  10. package/components/{choropleth-map-slots.config-B-uJTj4q.js → choropleth-map-slots.config-DStOyVgQ.js} +7 -2
  11. package/components/{sunburst-chart-slots.config-C-_ganmv.cjs → circle-pack-chart-slots.config-B18aqdH1.cjs} +1 -1
  12. package/components/{circle-pack-chart-slots.config-xwVdRiwS.js → circle-pack-chart-slots.config-lV4uNMcp.js} +1 -1
  13. package/components/{column-chart-slots.config-C7MhpoR8.cjs → column-chart-slots.config-C0nGjkmv.cjs} +1 -1
  14. package/components/{column-chart-slots.config-DAdAk17k.js → column-chart-slots.config-epF0y5yo.js} +1 -1
  15. package/components/{combination-chart-slots.config-crMO01EO.cjs → combination-chart-slots.config-CY07Q5Hw.cjs} +1 -1
  16. package/components/{combination-chart-slots.config-CqKLFKCZ.js → combination-chart-slots.config-DRKSJyCC.js} +1 -1
  17. package/components/{date-filter-slots.config-Cb1LcT9W.cjs → date-filter-slots.config-CrA5ijD3.cjs} +1 -1
  18. package/components/{date-filter-slots.config-CxB8IF5B.js → date-filter-slots.config-DIjChKTZ.js} +2 -2
  19. package/components/display-settings/display-settings.d.ts +1 -0
  20. package/components/display-settings/index.cjs +3 -3
  21. package/components/display-settings/index.js +3 -2
  22. package/components/display-settings-binning/index.cjs +1 -1
  23. package/components/display-settings-binning/index.js +1 -1
  24. package/components/display-settings-datetime/index.cjs +1 -1
  25. package/components/display-settings-datetime/index.js +2 -2
  26. package/components/display-settings-grand-totals/index.cjs +1 -1
  27. package/components/display-settings-grand-totals/index.js +1 -1
  28. package/components/display-settings-numeric/index.cjs +3 -3
  29. package/components/display-settings-numeric/index.js +56 -51
  30. package/components/display-settings-period-over-period/index.cjs +8 -8
  31. package/components/display-settings-period-over-period/index.js +84 -73
  32. package/components/{donut-chart-slots.config-BEwhfq27.js → donut-chart-slots.config-CHLEBSDg.js} +1 -1
  33. package/components/{donut-chart-slots.config-DIp-24lO.cjs → donut-chart-slots.config-DBowIZNO.cjs} +1 -1
  34. package/components/draggable-data-item/draggable-data-item.d.ts +2 -0
  35. package/components/draggable-data-item/index.cjs +6 -5
  36. package/components/draggable-data-item/index.js +20 -16
  37. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +3 -0
  38. package/components/draggable-data-item-level/index.cjs +12 -7
  39. package/components/draggable-data-item-level/index.js +79 -60
  40. package/components/{dropdown-filter-slots.config-I2n4b_6V.cjs → dropdown-filter-slots.config-0wn6pMvi.cjs} +1 -1
  41. package/components/{dropdown-filter-slots.config-B8J6ftCh.js → dropdown-filter-slots.config-D2J9Z5aQ.js} +1 -1
  42. package/components/droppable-slot/droppable-slot.d.ts +1 -1
  43. package/components/droppable-slot/index.cjs +6 -6
  44. package/components/droppable-slot/index.js +73 -66
  45. package/components/edit-option-action-button-group/index.cjs +1 -1
  46. package/components/edit-option-action-button-group/index.js +2 -2
  47. package/components/{edit-option-base-Cw2iO2Av.js → edit-option-base-BQc4gXup.js} +1 -1
  48. package/components/{edit-option-base-B7owFMOO.cjs → edit-option-base-ByphLI4J.cjs} +1 -1
  49. package/components/edit-option-color-picker/index.cjs +1 -1
  50. package/components/edit-option-color-picker/index.js +3 -3
  51. package/components/edit-option-multi-language-field/index.cjs +1 -1
  52. package/components/edit-option-multi-language-field/index.js +1 -1
  53. package/components/edit-option-number-field/index.cjs +1 -1
  54. package/components/edit-option-number-field/index.js +1 -1
  55. package/components/edit-option-picker/index.cjs +1 -1
  56. package/components/edit-option-picker/index.js +3 -3
  57. package/components/edit-option-position-picker/index.cjs +1 -1
  58. package/components/edit-option-position-picker/index.js +1 -1
  59. package/components/edit-option-positions-number-field/index.cjs +2 -2
  60. package/components/edit-option-positions-number-field/index.js +2 -2
  61. package/components/edit-option-radio-button-group/index.cjs +1 -1
  62. package/components/edit-option-radio-button-group/index.js +1 -1
  63. package/components/edit-option-slider/index.cjs +1 -1
  64. package/components/edit-option-slider/index.js +1 -1
  65. package/components/edit-option-switch/index.cjs +1 -1
  66. package/components/edit-option-switch/index.js +1 -1
  67. package/components/edit-option-text-field/index.cjs +1 -1
  68. package/components/edit-option-text-field/index.js +1 -1
  69. package/components/{evolution-number-slots.config-BI-sFIug.cjs → evolution-number-slots.config-CNNVp6vR.cjs} +1 -1
  70. package/components/{evolution-number-slots.config-CW21b2ua.js → evolution-number-slots.config-CSDEf5Lv.js} +1 -1
  71. package/components/filter-data-item-picker/index.cjs +1 -1
  72. package/components/filter-data-item-picker/index.js +3 -3
  73. package/components/filter-expression-picker/index.cjs +1 -1
  74. package/components/filter-expression-picker/index.js +1 -1
  75. package/components/filter-item/index.cjs +1 -1
  76. package/components/filter-item/index.js +1 -1
  77. package/components/filter-value-picker/index.cjs +1 -1
  78. package/components/filter-value-picker/index.js +1 -1
  79. package/components/filter-value-picker-datetime/index.cjs +1 -1
  80. package/components/filter-value-picker-datetime/index.js +3 -3
  81. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  82. package/components/filter-value-picker-hierarchy/index.js +1 -1
  83. package/components/filter-value-picker-numeric/index.cjs +1 -1
  84. package/components/filter-value-picker-numeric/index.js +1 -1
  85. package/components/{funnel-chart-slots.config-BBhMS2qi.js → funnel-chart-slots.config-B-72sm5j.js} +6 -1
  86. package/components/{box-plot-slots.config-DZxyy3sS.cjs → funnel-chart-slots.config-GKBCY9xN.cjs} +1 -1
  87. package/components/grid/index.cjs +1 -1
  88. package/components/grid/index.js +3 -3
  89. package/components/{marker-map-slots.config-cdD8XTmI.js → heat-map-slots.config-CAj40INL.js} +1 -1
  90. package/components/{heat-map-slots.config-CSxSsQwX.cjs → heat-map-slots.config-D7cSAVdX.cjs} +1 -1
  91. package/components/{hexbin-map-slots.config-cdD8XTmI.js → hexbin-map-slots.config-CAj40INL.js} +1 -1
  92. package/components/{hexbin-map-slots.config-CSxSsQwX.cjs → hexbin-map-slots.config-D7cSAVdX.cjs} +1 -1
  93. package/components/{index-UWOCtc0Y.js → index-8fxgV8-A.js} +2 -2
  94. package/components/{index-BIrO4_kD.cjs → index-B_rfLdXx.cjs} +1 -1
  95. package/components/{index-Ciad94jH.js → index-Bdy8Bz-n.js} +3 -3
  96. package/components/{index-BEAYzHcY.js → index-Bg5PqKqt.js} +32 -32
  97. package/components/{index-Jmmy73Aq.js → index-BmshD32H.js} +34 -34
  98. package/components/{index-sCesmw8l.js → index-CDpuEf8W.js} +4 -4
  99. package/components/{index-CT2vEcpn.cjs → index-CHFwXYcm.cjs} +2 -2
  100. package/components/{index-B_dW2-QA.cjs → index-CNA9joKT.cjs} +1 -1
  101. package/components/{index-CcDZIqpD.cjs → index-CUvucmA0.cjs} +1 -1
  102. package/components/{index-CAJRL5rT.cjs → index-CYeQkVeJ.cjs} +5 -5
  103. package/components/{utils-B1rr30GZ.js → index-CgnTl6Sc.js} +11 -13
  104. package/components/{index-BNwJ9moR.js → index-ChDwMQlU.js} +3 -3
  105. package/components/{index-CzRmB9z3.cjs → index-DM96Q1fX.cjs} +1 -1
  106. package/components/{index-Boxjo5I0.js → index-DUF6bALI.js} +7 -7
  107. package/components/{index-CaVIv7B9.cjs → index-EXO-Hsj2.cjs} +1 -1
  108. package/components/{utils-CvCeHVBQ.cjs → index-Vdyb9z2D.cjs} +1 -1
  109. package/components/index.cjs +1 -1
  110. package/components/index.js +18 -16
  111. package/components/item-slots-configs.cjs +1 -1
  112. package/components/item-slots-configs.js +32 -32
  113. package/components/{line-chart-slots.config-P7xa-pHi.js → line-chart-slots.config-DoytjTpw.js} +1 -1
  114. package/components/{line-chart-slots.config-CIfDfftd.cjs → line-chart-slots.config-Dx_ysVZK.cjs} +1 -1
  115. package/components/{luzmo-icons-DEoJcvoL.js → luzmo-icons-B2K7AcCF.js} +183 -141
  116. package/components/luzmo-icons-CP__dRRM.cjs +31 -0
  117. package/components/{heat-map-slots.config-cdD8XTmI.js → marker-map-slots.config-CAj40INL.js} +1 -1
  118. package/components/{marker-map-slots.config-CSxSsQwX.cjs → marker-map-slots.config-D7cSAVdX.cjs} +1 -1
  119. package/components/{parallel-coordinates-plot-slots.config-BRXA5nUl.cjs → parallel-coordinates-plot-slots.config--fk40ZDu.cjs} +1 -1
  120. package/components/{parallel-coordinates-plot-slots.config-CQW2CJW6.js → parallel-coordinates-plot-slots.config-BjRcJdWM.js} +7 -2
  121. package/components/{pending-state-DTX7ggyF-D1SvcIIz.js → pending-state-DTX7ggyF-BQdsLMT1.js} +2 -2
  122. package/components/{pending-state-DTX7ggyF-DZzxjogp.cjs → pending-state-DTX7ggyF-CoV2RbDq.cjs} +1 -1
  123. package/components/{pivot-table-slots.config-DzGWM3Ez.cjs → pivot-table-slots.config-45V_Gdm7.cjs} +1 -1
  124. package/components/{pivot-table-slots.config-BH5fOJre.js → pivot-table-slots.config-CGU7IyDG.js} +3 -3
  125. package/components/{pyramid-chart-slots.config-DeWrVApy.cjs → pyramid-chart-slots.config-D5F0WX2d.cjs} +1 -1
  126. package/components/{pyramid-chart-slots.config-Cm9bQsXT.js → pyramid-chart-slots.config-lfxmIAy_.js} +1 -1
  127. package/components/radar-chart-slots.config-BEigR_Ml.cjs +20 -0
  128. package/components/{radar-chart-slots.config-Dpmytmc3.js → radar-chart-slots.config-CuQvda0y.js} +6 -1
  129. package/components/{regular-table-slots.config-ChrvnRDb.cjs → regular-table-slots.config-RLnMgOXn.cjs} +1 -1
  130. package/components/{regular-table-slots.config-EUS-V9lL.js → regular-table-slots.config-eQ8HccjY.js} +1 -1
  131. package/components/{route-map-slots.config-DYCcaQZi.js → route-map-slots.config-B9dcwOXi.js} +7 -2
  132. package/components/{route-map-slots.config-BfbIWCr0.cjs → route-map-slots.config-DsVJBR3D.cjs} +1 -1
  133. package/components/{sankey-diagram-slots.config-B7Q-ZfUP.cjs → sankey-diagram-slots.config-CiyYElLX.cjs} +1 -1
  134. package/components/{sankey-diagram-slots.config-BSTBEZDe.js → sankey-diagram-slots.config-DmqnP_mH.js} +1 -1
  135. package/components/{scatter-plot-slots.config-wlX_PVu8.cjs → scatter-plot-slots.config-47cB5_RC.cjs} +1 -1
  136. package/components/{scatter-plot-slots.config-BuWYqDWK.js → scatter-plot-slots.config-DjURFO07.js} +1 -1
  137. package/components/{search-filter-slots.config-DmiVXOva.js → search-filter-slots.config-CCEWnbiJ.js} +2 -2
  138. package/components/{search-filter-slots.config-DOlr8VaD.cjs → search-filter-slots.config-DeHkvc2Q.cjs} +1 -1
  139. package/components/{slicer-filter-slots.config-CHQ0ZXga.js → slicer-filter-slots.config-AOwwW5Ut.js} +2 -2
  140. package/components/{slicer-filter-slots.config-Dyte3aGp.cjs → slicer-filter-slots.config-V7hURjKI.cjs} +1 -1
  141. package/components/{slider-filter-slots.config-Cr5oXbok.cjs → slider-filter-slots.config-B--K9cpP.cjs} +1 -1
  142. package/components/{slider-filter-slots.config-BN3K1rnl.js → slider-filter-slots.config-D7cv_Ky4.js} +7 -2
  143. package/components/slot-contents-picker/index.cjs +145 -0
  144. package/components/slot-contents-picker/index.d.ts +7 -0
  145. package/components/slot-contents-picker/index.js +461 -0
  146. package/components/slot-contents-picker/slot-contents-picker.d.ts +112 -0
  147. package/components/slot-menu/index.cjs +13 -11
  148. package/components/slot-menu/index.js +33 -24
  149. package/components/slot-menu/slot-menu.d.ts +13 -0
  150. package/components/slot-menu-list/index.cjs +2 -2
  151. package/components/slot-menu-list/index.js +1 -1
  152. package/components/{spike-map-slots.config-Drga6_j0.cjs → spike-map-slots.config-BM5-Dlub.cjs} +1 -1
  153. package/components/{spike-map-slots.config-CuqpgkvN.js → spike-map-slots.config-Bq0WfdI4.js} +1 -1
  154. package/components/{strip-plot-slots.config-Co8ghEv8.js → strip-plot-slots.config-B1OLcL4K.js} +1 -1
  155. package/components/{strip-plot-slots.config-JvkKY5Ga.cjs → strip-plot-slots.config-DDUlLO8K.cjs} +1 -1
  156. package/components/{circle-pack-chart-slots.config-C-_ganmv.cjs → sunburst-chart-slots.config-B18aqdH1.cjs} +1 -1
  157. package/components/{sunburst-chart-slots.config-xwVdRiwS.js → sunburst-chart-slots.config-lV4uNMcp.js} +1 -1
  158. package/components/{symbol-map-slots.config-C5CKaVED.js → symbol-map-slots.config-DT5lvWh_.js} +7 -2
  159. package/components/{choropleth-map-slots.config-PNwSR0XY.cjs → symbol-map-slots.config-Dm_FRGHA.cjs} +1 -1
  160. package/components/utils.cjs +1 -1
  161. package/components/utils.js +34 -34
  162. package/components/{venn-diagram-slots.config-DPmj71cR.js → venn-diagram-slots.config-BPxkBFb6.js} +2 -2
  163. package/components/{venn-diagram-slots.config-CpOPbUjs.cjs → venn-diagram-slots.config-GytlZGbF.cjs} +1 -1
  164. package/custom-elements.json +463 -10
  165. package/index.d.ts +1 -0
  166. package/item-definitions/area-chart/area-chart-slots.config.d.ts +3 -3
  167. package/item-definitions/bar-chart/bar-chart-slots.config.d.ts +2 -2
  168. package/item-definitions/box-plot/box-plot-slots.config.d.ts +2 -2
  169. package/item-definitions/choropleth-map/choropleth-map-slots.config.d.ts +3 -3
  170. package/item-definitions/circle-pack-chart/circle-pack-chart-slots.config.d.ts +2 -2
  171. package/item-definitions/column-chart/column-chart-slots.config.d.ts +2 -2
  172. package/item-definitions/combination-chart/combination-chart-slots.config.d.ts +2 -2
  173. package/item-definitions/date-filter/date-filter-slots.config.d.ts +2 -2
  174. package/item-definitions/donut-chart/donut-chart-slots.config.d.ts +2 -2
  175. package/item-definitions/dropdown-filter/dropdown-filter-slots.config.d.ts +1 -1
  176. package/item-definitions/evolution-number/evolution-number-slots.config.d.ts +2 -2
  177. package/item-definitions/funnel-chart/funnel-chart-slots.config.d.ts +2 -2
  178. package/item-definitions/heat-map/heat-map-slots.config.d.ts +2 -2
  179. package/item-definitions/hexbin-map/hexbin-map-slots.config.d.ts +2 -2
  180. package/item-definitions/line-chart/line-chart-slots.config.d.ts +3 -3
  181. package/item-definitions/marker-map/marker-map-slots.config.d.ts +2 -2
  182. package/item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-slots.config.d.ts +4 -4
  183. package/item-definitions/pivot-table/pivot-table-slots.config.d.ts +2 -2
  184. package/item-definitions/pyramid-chart/pyramid-chart-slots.config.d.ts +3 -3
  185. package/item-definitions/radar-chart/radar-chart-slots.config.d.ts +3 -3
  186. package/item-definitions/regular-table/regular-table-slots.config.d.ts +1 -1
  187. package/item-definitions/route-map/route-map-slots.config.d.ts +3 -3
  188. package/item-definitions/sankey-diagram/sankey-diagram-slots.config.d.ts +3 -3
  189. package/item-definitions/scatter-plot/scatter-plot-slots.config.d.ts +4 -4
  190. package/item-definitions/search-filter/search-filter-slots.config.d.ts +2 -2
  191. package/item-definitions/slicer-filter/slicer-filter-slots.config.d.ts +2 -2
  192. package/item-definitions/slider-filter/slider-filter-slots.config.d.ts +2 -2
  193. package/item-definitions/spike-map/spike-map-slots.config.d.ts +3 -3
  194. package/item-definitions/strip-plot/strip-plot-slots.config.d.ts +2 -2
  195. package/item-definitions/sunburst-chart/sunburst-chart-slots.config.d.ts +2 -2
  196. package/item-definitions/symbol-map/symbol-map-slots.config.d.ts +3 -3
  197. package/item-definitions/venn-diagram/venn-diagram-slots.config.d.ts +2 -2
  198. package/package.json +6 -1
  199. package/utils/data-item-types/calculate-data-item-icon.d.ts +1 -0
  200. package/components/funnel-chart-slots.config-WrokHS7f.cjs +0 -20
  201. package/components/luzmo-icons-DAsjNJNI.cjs +0 -31
  202. package/components/radar-chart-slots.config-Dxx5fKnS.cjs +0 -20
  203. package/components/symbol-map-slots.config-DtW-3xkd.cjs +0 -20
  204. package/utils/themes/utils.d.ts +0 -1
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var m=Object.getPrototypeOf;var g=Reflect.get;var u=(o,r,t)=>g(m(o),t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../base-D76d76ww-tT6yr8eb.cjs"),z=require("../focusable-BxtpnzWp-CkK9AeMt.cjs"),f=require("../checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs"),a=require("../property-BCb4Kybn.cjs"),p=require("../edit-option-base-B7owFMOO.cjs");/*! * Lucero - The design system for Luzmo.
20
+ "use strict";var m=Object.getPrototypeOf;var g=Reflect.get;var u=(o,r,t)=>g(m(o),t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../base-D76d76ww-tT6yr8eb.cjs"),z=require("../focusable-BxtpnzWp-CkK9AeMt.cjs"),f=require("../checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs"),a=require("../property-BCb4Kybn.cjs"),p=require("../edit-option-base-ByphLI4J.cjs");/*! * Lucero - The design system for Luzmo.
21
21
  *
22
22
  * Copyright © 2025 Luzmo
23
23
  * All rights reserved.
@@ -24,7 +24,7 @@ import { m as p, a as u, R as x, z as m } from "../base-D76d76ww-BGkuhs54.js";
24
24
  import { r as k } from "../focusable-BxtpnzWp-DJQkL8Zv.js";
25
25
  import { k as y } from "../checkbox-mixin-Do7EgtpQ-hne79zc-.js";
26
26
  import { r as B, x as H, n as s } from "../property-Dn4zSyxu.js";
27
- import { L as T } from "../edit-option-base-Cw2iO2Av.js";
27
+ import { L as T } from "../edit-option-base-BQc4gXup.js";
28
28
  const f = () => {
29
29
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
30
30
  const o = document.createElement("style");
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var p=Object.getPrototypeOf;var c=Reflect.get;var d=(n,t,i)=>c(p(n),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-cHKqEi5-.cjs");const l=require("../property-BCb4Kybn.cjs"),h=require("../query-D5qWDopr.cjs"),v=require("../edit-option-base-B7owFMOO.cjs");var f=Object.defineProperty,o=(n,t,i,m)=>{for(var r=void 0,u=n.length-1,a;u>=0;u--)(a=n[u])&&(r=a(t,i,r)||r);return r&&f(t,i,r),r};const s=class s extends v.LuzmoEditOptionBase{constructor(){super(...arguments),this.invalid=!1,this.readonly=!1,this.debounce=200,this._previousValue=""}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var i;const t=((i=this.textFieldElement)==null?void 0:i.value)??"";this._previousValue!==t&&(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:t}})),this._previousValue=t)},this.debounce??200)}renderController(){return l.x`
20
+ "use strict";var p=Object.getPrototypeOf;var c=Reflect.get;var d=(n,t,i)=>c(p(n),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-cHKqEi5-.cjs");const l=require("../property-BCb4Kybn.cjs"),h=require("../query-D5qWDopr.cjs"),v=require("../edit-option-base-ByphLI4J.cjs");var f=Object.defineProperty,o=(n,t,i,m)=>{for(var r=void 0,u=n.length-1,a;u>=0;u--)(a=n[u])&&(r=a(t,i,r)||r);return r&&f(t,i,r),r};const s=class s extends v.LuzmoEditOptionBase{constructor(){super(...arguments),this.invalid=!1,this.readonly=!1,this.debounce=200,this._previousValue=""}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var i;const t=((i=this.textFieldElement)==null?void 0:i.value)??"";this._previousValue!==t&&(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:t}})),this._previousValue=t)},this.debounce??200)}renderController(){return l.x`
21
21
  <luzmo-text-field
22
22
  .value=${this.value??""}
23
23
  .disabled=${this.disabled}
@@ -23,7 +23,7 @@ var s = (e, l, r) => d(a(e), r, l);
23
23
  import "../index-DE3d0E0P.js";
24
24
  import { x as f, n as m } from "../property-Dn4zSyxu.js";
25
25
  import { e as p } from "../query-Ddbd72Um.js";
26
- import { L as b } from "../edit-option-base-Cw2iO2Av.js";
26
+ import { L as b } from "../edit-option-base-BQc4gXup.js";
27
27
  const z = () => {
28
28
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
29
  const e = document.createElement("style");
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"measure",rotate:!1,type:"numeric",label:"Measure",isRequired:!0,canAcceptFormula:!0},{name:"evolution",rotate:!1,type:"categorical",label:"Evolution",acceptableColumnTypes:["datetime"]}];exports.default=e;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"measure",rotate:!1,type:"numeric",label:"Measure",isRequired:!0,canAcceptFormula:!0},{name:"evolution",rotate:!1,type:"categorical",label:"Evolution",acceptableDataItemTypes:["datetime","array[datetime]"]}];exports.default=e;
@@ -31,7 +31,7 @@ const e = [
31
31
  rotate: !1,
32
32
  type: "categorical",
33
33
  label: "Evolution",
34
- acceptableColumnTypes: ["datetime"]
34
+ acceptableDataItemTypes: ["datetime", "array[datetime]"]
35
35
  }
36
36
  ];
37
37
  export {
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CT2vEcpn.cjs");require("../index-CaVIv7B9.cjs");const e=require("../property-BCb4Kybn.cjs"),d=require("../set-locale-Cam8nRIW.cjs"),p=require("../localized-decorator-SOrjcPab.cjs"),I=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const g=require("../calculate-data-item-icon-Bygfq3KO.cjs"),y=require("../localize-r7ALOUy_.cjs"),D=":host{--var: blue}:host{font-family:var(--luzmo-font-family)}";var z=Object.defineProperty,b=Object.getOwnPropertyDescriptor,c=(h,a,i,l)=>{for(var t=l>1?void 0:l?b(a,i):a,o=h.length-1,s;o>=0;o--)(s=h[o])&&(t=(l?s(a,i,t):s(t))||t);return l&&t&&z(a,i,t),t};exports.LuzmoFilterDataItemPicker=class extends I.m(I.It,{validSizes:Object.values(I.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.hasLabel=!1,this.icons="only-menu",this.allowEmpty=!1,this.placeholder="",this.dataItemId="",this.loading=!1,this.invalid=!1,this.datasetsDataItems=[]}static get styles(){return[e.r(D)]}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("data-item-selected",{bubbles:!0,composed:!0,cancelable:!0,detail:{dataItem:this._dataItemSelected}}))}setDataItem(a){const i=a==null?void 0:a.detail;for(const l of this.datasetsDataItems){const t=l.columns,o=l.formulas,s=t.find(u=>u.id===i),n=u=>{this._dataItemSelected=u,this.dataItemId=i,this._sendChangeEvent()};if(s){n(s);break}const r=o.find(u=>u.id===i);if(r){n(r);break}}}_findDataItemInDatasetsDataItems(a){for(const i of this.datasetsDataItems){const l=i.columns,t=i.formulas,o=l==null?void 0:l.find(n=>n.id===a);if(o){this._dataItemSelected=o,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(o.type??"")&&(this._dataItemSelected.lowestLevel=o.lowestLevel);break}const s=t==null?void 0:t.find(n=>n.id===a);if(s){this._dataItemSelected=s,this._dataItemSelected.isFormula=!0,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(s.type??"")&&(this._dataItemSelected.lowestLevel=s.lowestLevel);break}}}willUpdate(a){var o,s,n;const i=a.has("language"),l=a.has("dataItemId"),t=a.has("datasetsDataItems");if(i&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language),(l||t)&&(this._findDataItemInDatasetsDataItems(this.dataItemId),!this._dataItemSelected&&!this.allowEmpty&&!this.loading)){for(const r of this.datasetsDataItems)if(((o=r==null?void 0:r.columns)==null?void 0:o.length)>0){this._dataItemSelected=r.columns[0];break}else if(((s=r==null?void 0:r.formulas)==null?void 0:s.length)>0){this._dataItemSelected=r.formulas[0];break}this.dataItemId=(n=this._dataItemSelected)==null?void 0:n.id,this._sendChangeEvent()}}render(){let a=e.x``;for(const t of this.datasetsDataItems??[]){const o=(t==null?void 0:t.columns)??[],s=(t==null?void 0:t.formulas)??[],n=m=>{const f=e.x`
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CHFwXYcm.cjs");require("../index-EXO-Hsj2.cjs");const e=require("../property-BCb4Kybn.cjs"),d=require("../set-locale-Cam8nRIW.cjs"),p=require("../localized-decorator-SOrjcPab.cjs"),I=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const g=require("../calculate-data-item-icon-C_3QUGmB.cjs"),y=require("../localize-r7ALOUy_.cjs"),D=":host{--var: blue}:host{font-family:var(--luzmo-font-family)}";var z=Object.defineProperty,b=Object.getOwnPropertyDescriptor,c=(h,a,i,l)=>{for(var t=l>1?void 0:l?b(a,i):a,o=h.length-1,s;o>=0;o--)(s=h[o])&&(t=(l?s(a,i,t):s(t))||t);return l&&t&&z(a,i,t),t};exports.LuzmoFilterDataItemPicker=class extends I.m(I.It,{validSizes:Object.values(I.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.hasLabel=!1,this.icons="only-menu",this.allowEmpty=!1,this.placeholder="",this.dataItemId="",this.loading=!1,this.invalid=!1,this.datasetsDataItems=[]}static get styles(){return[e.r(D)]}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("data-item-selected",{bubbles:!0,composed:!0,cancelable:!0,detail:{dataItem:this._dataItemSelected}}))}setDataItem(a){const i=a==null?void 0:a.detail;for(const l of this.datasetsDataItems){const t=l.columns,o=l.formulas,s=t.find(u=>u.id===i),n=u=>{this._dataItemSelected=u,this.dataItemId=i,this._sendChangeEvent()};if(s){n(s);break}const r=o.find(u=>u.id===i);if(r){n(r);break}}}_findDataItemInDatasetsDataItems(a){for(const i of this.datasetsDataItems){const l=i.columns,t=i.formulas,o=l==null?void 0:l.find(n=>n.id===a);if(o){this._dataItemSelected=o,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(o.type??"")&&(this._dataItemSelected.lowestLevel=o.lowestLevel);break}const s=t==null?void 0:t.find(n=>n.id===a);if(s){this._dataItemSelected=s,this._dataItemSelected.isFormula=!0,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(s.type??"")&&(this._dataItemSelected.lowestLevel=s.lowestLevel);break}}}willUpdate(a){var o,s,n;const i=a.has("language"),l=a.has("dataItemId"),t=a.has("datasetsDataItems");if(i&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language),(l||t)&&(this._findDataItemInDatasetsDataItems(this.dataItemId),!this._dataItemSelected&&!this.allowEmpty&&!this.loading)){for(const r of this.datasetsDataItems)if(((o=r==null?void 0:r.columns)==null?void 0:o.length)>0){this._dataItemSelected=r.columns[0];break}else if(((s=r==null?void 0:r.formulas)==null?void 0:s.length)>0){this._dataItemSelected=r.formulas[0];break}this.dataItemId=(n=this._dataItemSelected)==null?void 0:n.id,this._sendChangeEvent()}}render(){let a=e.x``;for(const t of this.datasetsDataItems??[]){const o=(t==null?void 0:t.columns)??[],s=(t==null?void 0:t.formulas)??[],n=m=>{const f=e.x`
21
21
  <luzmo-icon
22
22
  slot="icon"
23
23
  .size=${this.size}
@@ -19,14 +19,14 @@
19
19
  * */
20
20
  import "../index-CsDgk_sj.js";
21
21
  import "../index-BC1LV3vH.js";
22
- import "../index-Ciad94jH.js";
23
- import "../index-sCesmw8l.js";
22
+ import "../index-Bdy8Bz-n.js";
23
+ import "../index-CDpuEf8W.js";
24
24
  import { r as g, x as f, n as u } from "../property-Dn4zSyxu.js";
25
25
  import { g as b, t as y, s as I, m as z } from "../set-locale-DbEAMqUs.js";
26
26
  import { l as v } from "../localized-decorator-DNr1P1m0.js";
27
27
  import { m as x, b as S, I as w } from "../base-D76d76ww-BGkuhs54.js";
28
28
  import "../focusable-BxtpnzWp-DJQkL8Zv.js";
29
- import { c as _ } from "../calculate-data-item-icon-DlyGQVBA.js";
29
+ import { c as _ } from "../calculate-data-item-icon-BFpVWXnR.js";
30
30
  import { l as D } from "../localize-BX7q0S0M.js";
31
31
  const p = () => {
32
32
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-CzRmB9z3.cjs");Object.defineProperty(exports,"LuzmoFilterExpressionPicker",{enumerable:!0,get:()=>e.LuzmoFilterExpressionPicker});
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DM96Q1fX.cjs");Object.defineProperty(exports,"LuzmoFilterExpressionPicker",{enumerable:!0,get:()=>e.LuzmoFilterExpressionPicker});
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { L as u } from "../index-UWOCtc0Y.js";
20
+ import { L as u } from "../index-8fxgV8-A.js";
21
21
  const l = () => {
22
22
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
23
23
  const o = document.createElement("style");
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../property-BCb4Kybn.cjs"),U=require("../localized-decorator-SOrjcPab.cjs"),k=require("../set-locale-Cam8nRIW.cjs"),v=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const P=require("../index-TQG9Xdxu.cjs"),y=require("../state-BxZEcclm.cjs"),K=require("../index-CzRmB9z3.cjs");require("../filter-data-item-picker/index.cjs");require("../filter-value-picker/index.cjs");const j=":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-item-gap, var(--filter-item-gap))}:host{--filter-item-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-item-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-item-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-item-gap: var(--luzmo-spacing-4)}";var V=Object.defineProperty,A=Object.getOwnPropertyDescriptor,l=(T,t,e,i)=>{for(var s=i>1?void 0:i?A(t,e):t,r=T.length-1,a;r>=0;r--)(a=T[r])&&(s=(i?a(t,e,s):a(s))||s);return i&&s&&V(t,e,s),s};exports.LuzmoFilterItem=class extends v.m(v.It,{validSizes:Object.values(v.d$1)}){constructor(){super(...arguments),this.apiUrl="https://api.luzmo.com",this.language="en",this.contentLanguage="en",this.filter={},this._loading=!1,this._datasetsDataItems=[]}static get styles(){return[u.r(j)]}connectedCallback(){super.connectedCallback();const t={};this.apiUrl&&(t.apiUrl=this.apiUrl),this.cacheTime&&(t.staleTime=this.cacheTime,t.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(t.authKey=this.authKey,t.authToken=this.authToken),P.dataBroker.configure(t)}async _fetchDatasetDataItems(){if(!this.datasetIds||this.datasetIds.length===0){this._error="Missing dataset ids to fetch columns & formulas";return}this._loading=!0,this._error=null;try{const t=await P.dataBroker.fetchDatasetsWithColumnsAndFormulas(this.datasetIds);for(const e of t)for(const i of[...e.columns,...e.formulas])i.datasetId=e.id;this._datasetsDataItems=t}catch(t){console.error("Error fetching dataset columns & formulas:",t),this._error=t instanceof Error?t.message:"Unknown error",this._datasetsDataItems=[]}finally{this._loading=!1}}willUpdate(t){var a,o,p,h,c,d,n,f,I,_,z,x,b,F,L;const e=t.has("filter"),i=t.has("language"),s=t.has("datasetIds"),r=t.has("_datasetsDataItems");if(i&&this.language!==k.getLocale()&&([...k.targetLocales].includes(this.language??"en")||this.language==="en")&&k.setLocale(this.language),e||s||r&&((p=(o=(a=this.filter)==null?void 0:a.parameters)==null?void 0:o[0])!=null&&p.columnId)&&((d=(c=(h=this.filter)==null?void 0:h.parameters)==null?void 0:c[0])!=null&&d.datasetId||(I=(f=(n=this.filter)==null?void 0:n.parameters)==null?void 0:f[0])!=null&&I.formulaId)){const g=this._datasetsDataItems.find(m=>{var $,D;return m.id===((D=($=this.filter.parameters)==null?void 0:$[0])==null?void 0:D.datasetId)});if(g){for(const m of[...g.columns||[],...(g==null?void 0:g.formulas)||[]])if(m.id===((z=(_=this.filter.parameters)==null?void 0:_[0])==null?void 0:z.columnId)||m.id===((b=(x=this.filter.parameters)==null?void 0:x[0])==null?void 0:b.formulaId)){this._type=m.type,this._subType=m.subtype,this._isFormula=m.id===((L=(F=this.filter.parameters)==null?void 0:F[0])==null?void 0:L.formulaId);break}}}s&&this._fetchDatasetDataItems()}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{filter:this.filter}}))}setFilterDataItem(t){var a,o,p,h,c,d,n,f,I,_,z,x,b,F,L,g,m,$,D,w,E,S,q,C,O;const e=this._type,i=((p=(o=(a=this.filter)==null?void 0:a.parameters)==null?void 0:o[0])==null?void 0:p.columnId)||((d=(c=(h=this.filter)==null?void 0:h.parameters)==null?void 0:c[0])==null?void 0:d.formulaId),s=(f=(n=t.detail)==null?void 0:n.dataItem)==null?void 0:f.id;this._type=(_=(I=t.detail)==null?void 0:I.dataItem)==null?void 0:_.type,this._subType=(x=(z=t.detail)==null?void 0:z.dataItem)==null?void 0:x.subtype,this._isFormula=(F=(b=t.detail)==null?void 0:b.dataItem)==null?void 0:F.isFormula;const r=K.getValidExpressions(this._type,this._subType,this._isFormula);this.filter=structuredClone(this.filter??{}),r!=null&&r.includes((L=this.filter)==null?void 0:L.expression)||(this.filter.expression=(g=r==null?void 0:r[0])==null?void 0:g.expression),this.filter.parameters=((m=this.filter)==null?void 0:m.parameters)??[],this.filter.parameters[0]={datasetId:(D=($=t.detail)==null?void 0:$.dataItem)==null?void 0:D.datasetId},this._isFormula?this.filter.parameters[0].formulaId=(E=(w=t.detail)==null?void 0:w.dataItem)==null?void 0:E.id:this.filter.parameters[0].columnId=(q=(S=t.detail)==null?void 0:S.dataItem)==null?void 0:q.id,(O=(C=t.detail)==null?void 0:C.dataItem)!=null&&O.lowestLevel,e!==this._type?this._type==="hierarchy"?(this.filter.expression="? like ?",this.filter.parameters[1]=""):this._type==="numeric"?(this.filter.expression="? > ?",this.filter.parameters[1]=0):this._type==="datetime"?(this.filter.expression="? < ?",this.filter.parameters[1]=new Date().toISOString()):(this.filter.expression="? is not null",this.filter.parameters=[this.filter.parameters[0]]):i!==s&&this._type==="hierarchy"&&(this.filter.parameters[1]=["? in ?","? not in ?"].includes(this.filter.expression)?[]:""),this._sendChangeEvent()}setFilterExpression(t){var s,r,a,o,p,h,c,d;const e=structuredClone(this.filter??{}),i=e.expression;if(e.expression=(s=t.detail)==null?void 0:s.expression,i!==e.expression){if(["? is null","? is not null"].includes(e.expression))e.parameters=[e.parameters[0]];else if(this._type==="datetime")if(["YTD","QTD","MTD","WTD"].includes(e.expression)){const n=(r=t==null?void 0:t.detail)==null?void 0:r.unit;n&&(e.parameters[1]={unit:typeof n=="number"?n:1})}else if(["last_completed","next_full","to_date"].includes(e.expression)){const n=(o=(a=e==null?void 0:e.parameters)==null?void 0:a[1])==null?void 0:o.unit;e.parameters[1]={unit:typeof n=="number"?n:1}}else if(["last_now","last_available","next_now"].includes(e.expression)){const n=(h=(p=e==null?void 0:e.parameters)==null?void 0:p[1])==null?void 0:h.unit,f=(d=(c=e==null?void 0:e.parameters)==null?void 0:c[1])==null?void 0:d.quantity;e.parameters[1]={unit:typeof n=="number"?n:1,quantity:typeof f=="number"?f:1}}else e.parameters[1]=new Date().toISOString();else this._type==="hierarchy"?["? in ?","? not in ?"].includes(e.expression)?["? = ?","? != ?"].includes(i)?e.parameters[1]=e.parameters[1]?[e.parameters[1]]:[]:e.parameters[1]=[]:["? = ?","? != ?"].includes(e.expression)?["? in ?","? not in ?"].includes(i)?e.parameters[1]=Array.isArray(e.parameters[1])&&e.parameters[1][0]?e.parameters[1][0]:"":e.parameters[1]="":e.parameters[1]=["? in ?","? not in ?"].includes(i)?"":e.parameters[1]??"":this._type==="numeric"&&(["? in ?","? not in ?"].includes(e.expression)&&["? in ?","? not in ?"].includes(i)?e.parameters[1]=e.parameters[1]??[]:["? in ?","? not in ?"].includes(e.expression)?e.parameters[1]=[]:e.parameters[1]=["? in ?","? not in ?"].includes(i)?0:e.parameters[1]??0);this.filter=e,this._sendChangeEvent()}}setFilterValue(t){var e;this.filter.parameters[1]=(e=t==null?void 0:t.detail)==null?void 0:e.value,this._sendChangeEvent()}renderDataItemPicker(){var t,e,i,s,r,a;return u.x`<luzmo-filter-data-item-picker
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../property-BCb4Kybn.cjs"),U=require("../localized-decorator-SOrjcPab.cjs"),k=require("../set-locale-Cam8nRIW.cjs"),v=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const P=require("../index-TQG9Xdxu.cjs"),y=require("../state-BxZEcclm.cjs"),K=require("../index-DM96Q1fX.cjs");require("../filter-data-item-picker/index.cjs");require("../filter-value-picker/index.cjs");const j=":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-item-gap, var(--filter-item-gap))}:host{--filter-item-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-item-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-item-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-item-gap: var(--luzmo-spacing-4)}";var V=Object.defineProperty,A=Object.getOwnPropertyDescriptor,l=(T,t,e,i)=>{for(var s=i>1?void 0:i?A(t,e):t,r=T.length-1,a;r>=0;r--)(a=T[r])&&(s=(i?a(t,e,s):a(s))||s);return i&&s&&V(t,e,s),s};exports.LuzmoFilterItem=class extends v.m(v.It,{validSizes:Object.values(v.d$1)}){constructor(){super(...arguments),this.apiUrl="https://api.luzmo.com",this.language="en",this.contentLanguage="en",this.filter={},this._loading=!1,this._datasetsDataItems=[]}static get styles(){return[u.r(j)]}connectedCallback(){super.connectedCallback();const t={};this.apiUrl&&(t.apiUrl=this.apiUrl),this.cacheTime&&(t.staleTime=this.cacheTime,t.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(t.authKey=this.authKey,t.authToken=this.authToken),P.dataBroker.configure(t)}async _fetchDatasetDataItems(){if(!this.datasetIds||this.datasetIds.length===0){this._error="Missing dataset ids to fetch columns & formulas";return}this._loading=!0,this._error=null;try{const t=await P.dataBroker.fetchDatasetsWithColumnsAndFormulas(this.datasetIds);for(const e of t)for(const i of[...e.columns,...e.formulas])i.datasetId=e.id;this._datasetsDataItems=t}catch(t){console.error("Error fetching dataset columns & formulas:",t),this._error=t instanceof Error?t.message:"Unknown error",this._datasetsDataItems=[]}finally{this._loading=!1}}willUpdate(t){var a,o,p,h,c,d,n,f,I,_,z,x,b,F,L;const e=t.has("filter"),i=t.has("language"),s=t.has("datasetIds"),r=t.has("_datasetsDataItems");if(i&&this.language!==k.getLocale()&&([...k.targetLocales].includes(this.language??"en")||this.language==="en")&&k.setLocale(this.language),e||s||r&&((p=(o=(a=this.filter)==null?void 0:a.parameters)==null?void 0:o[0])!=null&&p.columnId)&&((d=(c=(h=this.filter)==null?void 0:h.parameters)==null?void 0:c[0])!=null&&d.datasetId||(I=(f=(n=this.filter)==null?void 0:n.parameters)==null?void 0:f[0])!=null&&I.formulaId)){const g=this._datasetsDataItems.find(m=>{var $,D;return m.id===((D=($=this.filter.parameters)==null?void 0:$[0])==null?void 0:D.datasetId)});if(g){for(const m of[...g.columns||[],...(g==null?void 0:g.formulas)||[]])if(m.id===((z=(_=this.filter.parameters)==null?void 0:_[0])==null?void 0:z.columnId)||m.id===((b=(x=this.filter.parameters)==null?void 0:x[0])==null?void 0:b.formulaId)){this._type=m.type,this._subType=m.subtype,this._isFormula=m.id===((L=(F=this.filter.parameters)==null?void 0:F[0])==null?void 0:L.formulaId);break}}}s&&this._fetchDatasetDataItems()}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{filter:this.filter}}))}setFilterDataItem(t){var a,o,p,h,c,d,n,f,I,_,z,x,b,F,L,g,m,$,D,w,E,S,q,C,O;const e=this._type,i=((p=(o=(a=this.filter)==null?void 0:a.parameters)==null?void 0:o[0])==null?void 0:p.columnId)||((d=(c=(h=this.filter)==null?void 0:h.parameters)==null?void 0:c[0])==null?void 0:d.formulaId),s=(f=(n=t.detail)==null?void 0:n.dataItem)==null?void 0:f.id;this._type=(_=(I=t.detail)==null?void 0:I.dataItem)==null?void 0:_.type,this._subType=(x=(z=t.detail)==null?void 0:z.dataItem)==null?void 0:x.subtype,this._isFormula=(F=(b=t.detail)==null?void 0:b.dataItem)==null?void 0:F.isFormula;const r=K.getValidExpressions(this._type,this._subType,this._isFormula);this.filter=structuredClone(this.filter??{}),r!=null&&r.includes((L=this.filter)==null?void 0:L.expression)||(this.filter.expression=(g=r==null?void 0:r[0])==null?void 0:g.expression),this.filter.parameters=((m=this.filter)==null?void 0:m.parameters)??[],this.filter.parameters[0]={datasetId:(D=($=t.detail)==null?void 0:$.dataItem)==null?void 0:D.datasetId},this._isFormula?this.filter.parameters[0].formulaId=(E=(w=t.detail)==null?void 0:w.dataItem)==null?void 0:E.id:this.filter.parameters[0].columnId=(q=(S=t.detail)==null?void 0:S.dataItem)==null?void 0:q.id,(O=(C=t.detail)==null?void 0:C.dataItem)!=null&&O.lowestLevel,e!==this._type?this._type==="hierarchy"?(this.filter.expression="? like ?",this.filter.parameters[1]=""):this._type==="numeric"?(this.filter.expression="? > ?",this.filter.parameters[1]=0):this._type==="datetime"?(this.filter.expression="? < ?",this.filter.parameters[1]=new Date().toISOString()):(this.filter.expression="? is not null",this.filter.parameters=[this.filter.parameters[0]]):i!==s&&this._type==="hierarchy"&&(this.filter.parameters[1]=["? in ?","? not in ?"].includes(this.filter.expression)?[]:""),this._sendChangeEvent()}setFilterExpression(t){var s,r,a,o,p,h,c,d;const e=structuredClone(this.filter??{}),i=e.expression;if(e.expression=(s=t.detail)==null?void 0:s.expression,i!==e.expression){if(["? is null","? is not null"].includes(e.expression))e.parameters=[e.parameters[0]];else if(this._type==="datetime")if(["YTD","QTD","MTD","WTD"].includes(e.expression)){const n=(r=t==null?void 0:t.detail)==null?void 0:r.unit;n&&(e.parameters[1]={unit:typeof n=="number"?n:1})}else if(["last_completed","next_full","to_date"].includes(e.expression)){const n=(o=(a=e==null?void 0:e.parameters)==null?void 0:a[1])==null?void 0:o.unit;e.parameters[1]={unit:typeof n=="number"?n:1}}else if(["last_now","last_available","next_now"].includes(e.expression)){const n=(h=(p=e==null?void 0:e.parameters)==null?void 0:p[1])==null?void 0:h.unit,f=(d=(c=e==null?void 0:e.parameters)==null?void 0:c[1])==null?void 0:d.quantity;e.parameters[1]={unit:typeof n=="number"?n:1,quantity:typeof f=="number"?f:1}}else e.parameters[1]=new Date().toISOString();else this._type==="hierarchy"?["? in ?","? not in ?"].includes(e.expression)?["? = ?","? != ?"].includes(i)?e.parameters[1]=e.parameters[1]?[e.parameters[1]]:[]:e.parameters[1]=[]:["? = ?","? != ?"].includes(e.expression)?["? in ?","? not in ?"].includes(i)?e.parameters[1]=Array.isArray(e.parameters[1])&&e.parameters[1][0]?e.parameters[1][0]:"":e.parameters[1]="":e.parameters[1]=["? in ?","? not in ?"].includes(i)?"":e.parameters[1]??"":this._type==="numeric"&&(["? in ?","? not in ?"].includes(e.expression)&&["? in ?","? not in ?"].includes(i)?e.parameters[1]=e.parameters[1]??[]:["? in ?","? not in ?"].includes(e.expression)?e.parameters[1]=[]:e.parameters[1]=["? in ?","? not in ?"].includes(i)?0:e.parameters[1]??0);this.filter=e,this._sendChangeEvent()}}setFilterValue(t){var e;this.filter.parameters[1]=(e=t==null?void 0:t.detail)==null?void 0:e.value,this._sendChangeEvent()}renderDataItemPicker(){var t,e,i,s,r,a;return u.x`<luzmo-filter-data-item-picker
21
21
  .language=${this.language}
22
22
  .contentLanguage=${this.contentLanguage}
23
23
  .size=${this.size}
@@ -24,7 +24,7 @@ import { m as M, b as Z, I as B } from "../base-D76d76ww-BGkuhs54.js";
24
24
  import "../focusable-BxtpnzWp-DJQkL8Zv.js";
25
25
  import { d as O } from "../index-D9yzIoGv.js";
26
26
  import { r as b } from "../state-vVJlsarL.js";
27
- import { g as H } from "../index-UWOCtc0Y.js";
27
+ import { g as H } from "../index-8fxgV8-A.js";
28
28
  import "../filter-data-item-picker/index.js";
29
29
  import "../filter-value-picker/index.js";
30
30
  const P = () => {
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CaVIv7B9.cjs");const t=require("../property-BCb4Kybn.cjs"),c=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const h=require("../set-locale-Cam8nRIW.cjs");require("../filter-value-picker-datetime/index.cjs");require("../filter-value-picker-hierarchy/index.cjs");require("../filter-value-picker-numeric/index.cjs");const g=":host{--var: red}:host{--var: blue}";var p=Object.defineProperty,a=(n,e,i,l)=>{for(var u=void 0,s=n.length-1,o;s>=0;s--)(o=n[s])&&(u=o(e,i,u)||u);return u&&p(e,i,u),u};class r extends c.m(c.It,{validSizes:Object.values(c.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._expressionsWithoutValuePicker=new Set(["? is null","? is not null","to_date"])}static get styles(){return[t.r(g)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){var i;e.stopPropagation(),this._sendChangeEvent((i=e==null?void 0:e.detail)==null?void 0:i.value)}renderNumericValuePicker(){return t.x`<luzmo-filter-value-picker-numeric
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-EXO-Hsj2.cjs");const t=require("../property-BCb4Kybn.cjs"),c=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const h=require("../set-locale-Cam8nRIW.cjs");require("../filter-value-picker-datetime/index.cjs");require("../filter-value-picker-hierarchy/index.cjs");require("../filter-value-picker-numeric/index.cjs");const g=":host{--var: red}:host{--var: blue}";var p=Object.defineProperty,a=(n,e,i,l)=>{for(var u=void 0,s=n.length-1,o;s>=0;s--)(o=n[s])&&(u=o(e,i,u)||u);return u&&p(e,i,u),u};class r extends c.m(c.It,{validSizes:Object.values(c.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._expressionsWithoutValuePicker=new Set(["? is null","? is not null","to_date"])}static get styles(){return[t.r(g)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){var i;e.stopPropagation(),this._sendChangeEvent((i=e==null?void 0:e.detail)==null?void 0:i.value)}renderNumericValuePicker(){return t.x`<luzmo-filter-value-picker-numeric
21
21
  .apiUrl=${this.apiUrl}
22
22
  .authKey=${this.authKey}
23
23
  .authToken=${this.authToken}
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import "../index-sCesmw8l.js";
20
+ import "../index-CDpuEf8W.js";
21
21
  import { r as g, x as a, n as t } from "../property-Dn4zSyxu.js";
22
22
  import { m as h, b as z, I as d } from "../base-D76d76ww-BGkuhs54.js";
23
23
  import "../focusable-BxtpnzWp-DJQkL8Zv.js";
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("../index-CBOAQ3-E.cjs"),c=require("../base-D76d76ww-tT6yr8eb.cjs"),Me=require("../pending-state-DTX7ggyF-DZzxjogp.cjs"),E=require("../if-defined-DOaE2coe-Cvlu5s9n.cjs");require("../index-C2PPSv8E.cjs");require("../index-DSQyBS9Z.cjs");const te=require("../luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs"),S=require("../directive-helpers-Cm6gitnu-BeggOiwf.cjs"),gt=require("../index-CcDZIqpD.cjs"),Ie=require("../when-CDK1Tt5Y-BN3qcTK0.cjs"),bt=require("../focusable-BxtpnzWp-CkK9AeMt.cjs"),ft=require("../observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs"),zt=require("../button-base-DbkDzb71-CY6MJGqE.cjs");require("../index-BoXbQm2o.cjs");const Fe=require("../text-field-BIADXoLC-B8w9TVmS.cjs");require("../index-CaVIv7B9.cjs");require("../index-cHKqEi5-.cjs");const T=require("../property-BCb4Kybn.cjs"),me=require("../set-locale-Cam8nRIW.cjs"),ae=require("../periods.const-CfXsouLz.cjs");/*! * Lucero - The design system for Luzmo.
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("../index-CBOAQ3-E.cjs"),c=require("../base-D76d76ww-tT6yr8eb.cjs"),Me=require("../pending-state-DTX7ggyF-CoV2RbDq.cjs"),E=require("../if-defined-DOaE2coe-Cvlu5s9n.cjs");require("../index-C2PPSv8E.cjs");require("../index-DSQyBS9Z.cjs");const te=require("../luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs"),S=require("../directive-helpers-Cm6gitnu-BeggOiwf.cjs"),gt=require("../index-CUvucmA0.cjs"),Ie=require("../when-CDK1Tt5Y-BN3qcTK0.cjs"),bt=require("../focusable-BxtpnzWp-CkK9AeMt.cjs"),ft=require("../observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs"),zt=require("../button-base-DbkDzb71-CY6MJGqE.cjs");require("../index-BoXbQm2o.cjs");const Fe=require("../text-field-BIADXoLC-B8w9TVmS.cjs");require("../index-EXO-Hsj2.cjs");require("../index-cHKqEi5-.cjs");const T=require("../property-BCb4Kybn.cjs"),me=require("../set-locale-Cam8nRIW.cjs"),ae=require("../periods.const-CfXsouLz.cjs");/*! * Lucero - The design system for Luzmo.
21
21
  *
22
22
  * Copyright © 2025 Luzmo
23
23
  * All rights reserved.
@@ -19,20 +19,20 @@
19
19
  * */
20
20
  import { d as le, C as xt } from "../index-Desl7GJ0.js";
21
21
  import { m as de, I as He, a as se, R as k, z as g, b as Re, d as qe } from "../base-D76d76ww-BGkuhs54.js";
22
- import { a as _e } from "../pending-state-DTX7ggyF-D1SvcIIz.js";
22
+ import { a as _e } from "../pending-state-DTX7ggyF-BQdsLMT1.js";
23
23
  import { m as H, d as Ye } from "../if-defined-DOaE2coe-CNT45Xcl.js";
24
24
  import "../index-rQxtPaJl.js";
25
25
  import "../index-BC1LV3vH.js";
26
26
  import { t as wt, z as Dt, s as Mt, u as $t, p as _t } from "../luzmo-icons-DbwDQtuO-QG0fLECn.js";
27
27
  import { n as S } from "../directive-helpers-Cm6gitnu-CeYtlPO9.js";
28
- import { p as St } from "../index-Boxjo5I0.js";
28
+ import { p as St } from "../index-DUF6bALI.js";
29
29
  import { o as Le } from "../when-CDK1Tt5Y-C6ViXC43.js";
30
30
  import { r as Ct } from "../focusable-BxtpnzWp-DJQkL8Zv.js";
31
31
  import { b as Tt } from "../observe-slot-presence-CmVi0zTc-DCFuXW7v.js";
32
32
  import { a as Pt } from "../button-base-DbkDzb71-R8oqSqlY.js";
33
33
  import "../index-CTVNGPeT.js";
34
34
  import { u as Vt, e as It } from "../text-field-BIADXoLC-B9oE05VF.js";
35
- import "../index-sCesmw8l.js";
35
+ import "../index-CDpuEf8W.js";
36
36
  import "../index-DE3d0E0P.js";
37
37
  import { r as Ft, x as G, n as ce } from "../property-Dn4zSyxu.js";
38
38
  import { g as qt, t as Lt, s as Et } from "../set-locale-DbEAMqUs.js";
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-B_dW2-QA.cjs");require("../index-cHKqEi5-.cjs");const u=require("../property-BCb4Kybn.cjs"),_=require("../set-locale-Cam8nRIW.cjs"),$=require("../localized-decorator-SOrjcPab.cjs"),L=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const z=require("../index-TQG9Xdxu.cjs"),k=require("../localize-r7ALOUy_.cjs"),y=require("../state-BxZEcclm.cjs"),T=".missing-value{opacity:.4}:host{--var: blue}";var x=Object.defineProperty,F=Object.getOwnPropertyDescriptor,h=(b,e,r,t)=>{for(var i=t>1?void 0:t?F(e,r):e,l=b.length-1,n;l>=0;l--)(n=b[l])&&(i=(t?n(e,r,i):n(i))||i);return t&&i&&x(e,r,i),i};const H=5e3;exports.LuzmoFilterValuePickerHierarchy=class extends L.m(L.It,{validSizes:Object.values(L.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._hierarchyValues=[],this._retrieving=!0,this._search="",this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[u.r(T)]}connectedCallback(){super.connectedCallback();const e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),z.dataBroker.configure(e)}willUpdate(e){var t,i,l,n,m,d,o,f,g,p,s,a,c,V;if(e.has("language")&&this.language!==_.getLocale()&&([..._.targetLocales].includes(this.language??"en")||this.language==="en")&&_.setLocale(this.language),e.has("filter")&&this.filter){const v=(t=e.get("filter"))==null?void 0:t.expression,P=((n=(l=(i=e.get("filter"))==null?void 0:i.parameters)==null?void 0:l[0])==null?void 0:n.columnId)||((o=(d=(m=e.get("filter"))==null?void 0:m.parameters)==null?void 0:d[0])==null?void 0:o.formulaId),S=((p=(g=(f=this.filter)==null?void 0:f.parameters)==null?void 0:g[0])==null?void 0:p.columnId)||((c=(a=(s=this.filter)==null?void 0:s.parameters)==null?void 0:a[0])==null?void 0:c.formulaId);P!==S&&(["? in ?","? not in ?","? = ?","? != ?"].includes((V=this.filter)==null?void 0:V.expression)||!["? in ?","? not in ?","? = ?","? != ?"].includes(v))&&(this._hierarchyValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchHierarchyValues(e=0){var g,p;if(this._allValuesRetrieved){this._retrieving=!1;return}if(!((p=(g=this.filter)==null?void 0:g.parameters)!=null&&p[0])){this._retrieving=!1,this._error="Missing column parameters";return}const r=this.filter.parameters[0],t=r.columnId,i=r.formulaId,l=r.datasetId;if(!t&&!i){this._retrieving=!1,this._error="Missing column id or formula id";return}else if(!l){this._retrieving=!1,this._error="Missing dataset id";return}this._retrieving=!0,this._error=null;const n={expression:"? like ?",parameters:[{column_id:t,formula_id:i,dataset_id:l},this._search]},m={dimensions:[{column_id:t,formula_id:i,dataset_id:l}],where:[],order:[{column_id:t,formula_id:i,dataset_id:l,order:"asc"}],limit:{by:H,offset:e}};this._search&&this._allValuesRetrieved&&m.where.push(n);const d=new AbortController,o=new Promise((s,a)=>{z.dataBroker.fetchData(m).then(s).catch(a),d.signal.addEventListener("abort",()=>{console.warn("Request aborted"),a({status:"aborted"})})}),f={promise:o,abortController:d};this._runningQueries.push(f);try{const s=await o,a=s&&Array.isArray(s.data)?s.data.map(c=>c[0]):[];this._search||(this._allValuesRetrieved=a.length<H),this._hierarchyValues=e>0?[...this._hierarchyValues,...a]:a}catch(s){if((s==null?void 0:s.status)==="aborted")return;this._error=s instanceof Error?s.message:"Unknown error",this._hierarchyValues=[]}finally{this._runningQueries=this._runningQueries.filter(s=>s.promise!==o),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setHierarchy(e){var t,i,l,n,m,d,o,f;let r;["? in ?","? not in ?"].includes((t=this.filter)==null?void 0:t.expression)?r=(i=e==null?void 0:e.detail)==null?void 0:i.value:["? = ?","? != ?"].includes((l=this.filter)==null?void 0:l.expression)?r=(m=(n=e==null?void 0:e.detail)==null?void 0:n.value)==null?void 0:m[0]:r=(d=e==null?void 0:e.target)==null?void 0:d.value,this._value!==r&&(this._value=r,this.filter={...this.filter,parameters:[{...(f=(o=this.filter)==null?void 0:o.parameters)==null?void 0:f[0]},this._value]},this._sendChangeEvent())}onScrolled(e){var r;!this._retrieving&&!this._allValuesRetrieved&&((r=e==null?void 0:e.detail)==null?void 0:r.last)===this._hierarchyValues.length-1&&this._fetchHierarchyValues(this._hierarchyValues.length)}renderTextField(){var e,r;return u.x`<luzmo-text-field
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CNA9joKT.cjs");require("../index-cHKqEi5-.cjs");const u=require("../property-BCb4Kybn.cjs"),_=require("../set-locale-Cam8nRIW.cjs"),$=require("../localized-decorator-SOrjcPab.cjs"),L=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const z=require("../index-TQG9Xdxu.cjs"),k=require("../localize-r7ALOUy_.cjs"),y=require("../state-BxZEcclm.cjs"),T=".missing-value{opacity:.4}:host{--var: blue}";var x=Object.defineProperty,F=Object.getOwnPropertyDescriptor,h=(b,e,r,t)=>{for(var i=t>1?void 0:t?F(e,r):e,l=b.length-1,n;l>=0;l--)(n=b[l])&&(i=(t?n(e,r,i):n(i))||i);return t&&i&&x(e,r,i),i};const H=5e3;exports.LuzmoFilterValuePickerHierarchy=class extends L.m(L.It,{validSizes:Object.values(L.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._hierarchyValues=[],this._retrieving=!0,this._search="",this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[u.r(T)]}connectedCallback(){super.connectedCallback();const e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),z.dataBroker.configure(e)}willUpdate(e){var t,i,l,n,m,d,o,f,g,p,s,a,c,V;if(e.has("language")&&this.language!==_.getLocale()&&([..._.targetLocales].includes(this.language??"en")||this.language==="en")&&_.setLocale(this.language),e.has("filter")&&this.filter){const v=(t=e.get("filter"))==null?void 0:t.expression,P=((n=(l=(i=e.get("filter"))==null?void 0:i.parameters)==null?void 0:l[0])==null?void 0:n.columnId)||((o=(d=(m=e.get("filter"))==null?void 0:m.parameters)==null?void 0:d[0])==null?void 0:o.formulaId),S=((p=(g=(f=this.filter)==null?void 0:f.parameters)==null?void 0:g[0])==null?void 0:p.columnId)||((c=(a=(s=this.filter)==null?void 0:s.parameters)==null?void 0:a[0])==null?void 0:c.formulaId);P!==S&&(["? in ?","? not in ?","? = ?","? != ?"].includes((V=this.filter)==null?void 0:V.expression)||!["? in ?","? not in ?","? = ?","? != ?"].includes(v))&&(this._hierarchyValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchHierarchyValues(e=0){var g,p;if(this._allValuesRetrieved){this._retrieving=!1;return}if(!((p=(g=this.filter)==null?void 0:g.parameters)!=null&&p[0])){this._retrieving=!1,this._error="Missing column parameters";return}const r=this.filter.parameters[0],t=r.columnId,i=r.formulaId,l=r.datasetId;if(!t&&!i){this._retrieving=!1,this._error="Missing column id or formula id";return}else if(!l){this._retrieving=!1,this._error="Missing dataset id";return}this._retrieving=!0,this._error=null;const n={expression:"? like ?",parameters:[{column_id:t,formula_id:i,dataset_id:l},this._search]},m={dimensions:[{column_id:t,formula_id:i,dataset_id:l}],where:[],order:[{column_id:t,formula_id:i,dataset_id:l,order:"asc"}],limit:{by:H,offset:e}};this._search&&this._allValuesRetrieved&&m.where.push(n);const d=new AbortController,o=new Promise((s,a)=>{z.dataBroker.fetchData(m).then(s).catch(a),d.signal.addEventListener("abort",()=>{console.warn("Request aborted"),a({status:"aborted"})})}),f={promise:o,abortController:d};this._runningQueries.push(f);try{const s=await o,a=s&&Array.isArray(s.data)?s.data.map(c=>c[0]):[];this._search||(this._allValuesRetrieved=a.length<H),this._hierarchyValues=e>0?[...this._hierarchyValues,...a]:a}catch(s){if((s==null?void 0:s.status)==="aborted")return;this._error=s instanceof Error?s.message:"Unknown error",this._hierarchyValues=[]}finally{this._runningQueries=this._runningQueries.filter(s=>s.promise!==o),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setHierarchy(e){var t,i,l,n,m,d,o,f;let r;["? in ?","? not in ?"].includes((t=this.filter)==null?void 0:t.expression)?r=(i=e==null?void 0:e.detail)==null?void 0:i.value:["? = ?","? != ?"].includes((l=this.filter)==null?void 0:l.expression)?r=(m=(n=e==null?void 0:e.detail)==null?void 0:n.value)==null?void 0:m[0]:r=(d=e==null?void 0:e.target)==null?void 0:d.value,this._value!==r&&(this._value=r,this.filter={...this.filter,parameters:[{...(f=(o=this.filter)==null?void 0:o.parameters)==null?void 0:f[0]},this._value]},this._sendChangeEvent())}onScrolled(e){var r;!this._retrieving&&!this._allValuesRetrieved&&((r=e==null?void 0:e.detail)==null?void 0:r.last)===this._hierarchyValues.length-1&&this._fetchHierarchyValues(this._hierarchyValues.length)}renderTextField(){var e,r;return u.x`<luzmo-text-field
21
21
  .size=${this.size}
22
22
  @change=${this.setHierarchy}
23
23
  @input=${this.setHierarchy}
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import "../index-BNwJ9moR.js";
20
+ import "../index-ChDwMQlU.js";
21
21
  import "../index-DE3d0E0P.js";
22
22
  import { r as T, x as y, n as z } from "../property-Dn4zSyxu.js";
23
23
  import { g as C, t as I, s as E, m as b } from "../set-locale-DbEAMqUs.js";
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CBOAQ3-E.cjs");require("../index-B_dW2-QA.cjs");const c=require("../property-BCb4Kybn.cjs"),d=require("../set-locale-Cam8nRIW.cjs"),F=require("../localized-decorator-SOrjcPab.cjs"),v=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const z=require("../index-TQG9Xdxu.cjs"),b=require("../state-BxZEcclm.cjs"),T=".missing-value{opacity:.4}:host{--var: blue}";var I=Object.defineProperty,w=Object.getOwnPropertyDescriptor,n=(V,e,t,r)=>{for(var i=r>1?void 0:r?w(e,t):e,s=V.length-1,a;s>=0;s--)(a=V[s])&&(i=(r?a(e,t,i):a(i))||i);return r&&i&&I(e,t,i),i};const k=5e3;exports.LuzmoFilterValuePickerNumeric=class extends v.m(v.It,{validSizes:Object.values(v.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._numericValues=[],this._retrieving=!0,this._search="",this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[c.r(T)]}connectedCallback(){super.connectedCallback();const e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),z.dataBroker.configure(e)}willUpdate(e){var i,s,a,u,m,o,_,p,f,l,h,g,L,y;const t=e.has("filter");if(e.has("language")&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language),t&&this.filter){const N=(i=e.get("filter"))==null?void 0:i.expression,S=(s=this.filter)==null?void 0:s.expression,P=((m=(u=(a=e.get("filter"))==null?void 0:a.parameters)==null?void 0:u[0])==null?void 0:m.columnId)||((p=(_=(o=e.get("filter"))==null?void 0:o.parameters)==null?void 0:_[0])==null?void 0:p.formulaId),$=((h=(l=(f=this.filter)==null?void 0:f.parameters)==null?void 0:l[0])==null?void 0:h.columnId)||((y=(L=(g=this.filter)==null?void 0:g.parameters)==null?void 0:L[0])==null?void 0:y.formulaId);(P!==$||!["? in ?","? not in ?"].includes(N))&&["? in ?","? not in ?"].includes(S)&&(this._numericValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchNumericValues(e=0){var p,f;if(this._allValuesRetrieved){this._retrieving=!1;return}if(!((f=(p=this.filter)==null?void 0:p.parameters)!=null&&f[0])){this._retrieving=!1,this._error="Missing column parameters";return}const t=this.filter.parameters[0],r=t.columnId,i=t.formulaId,s=t.datasetId;if(!r&&!i){this._retrieving=!1,this._error="Missing column id or formula id";return}else if(!s){this._retrieving=!1,this._error="Missing dataset id";return}this._retrieving=!0,this._error=null;const a={expression:"? like ?",parameters:[{dataset_id:s,expression:`CAST({${s}:${r??i}},hierarchy)`},this._search]},u={dimensions:[{column_id:r,formula_id:i,dataset_id:s}],where:[],order:[{column_id:r,formula_id:i,dataset_id:s,order:"asc"}],limit:{by:k,offset:e}};this._search&&!this._allValuesRetrieved&&u.where.push(a);const m=new AbortController,o=new Promise((l,h)=>{z.dataBroker.fetchData(u).then(l).catch(h),m.signal.addEventListener("abort",()=>{console.warn("Request aborted"),h({status:"aborted"})})}),_={promise:o,abortController:m};this._runningQueries.push(_);try{const l=await o,h=l&&Array.isArray(l.data)?l.data.map(g=>g[0]):[];this._search||(this._allValuesRetrieved=h.length<k),this._numericValues=e>0?[...this._numericValues,...h]:h}catch(l){if((l==null?void 0:l.status)==="aborted")return;this._error=l instanceof Error?l.message:"Unknown error",this._numericValues=[]}finally{this._runningQueries=this._runningQueries.filter(l=>l.promise!==o),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setValue(e){var r,i,s,a,u;const t=["? in ?","? not in ?"].includes((r=this.filter)==null?void 0:r.expression)?(i=e==null?void 0:e.detail)==null?void 0:i.value:(s=e==null?void 0:e.target)==null?void 0:s.value;this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...(u=(a=this.filter)==null?void 0:a.parameters)==null?void 0:u[0]},t]},this._sendChangeEvent())}selectValue(e){var i,s,a;const r=(((i=e.detail)==null?void 0:i.value)??"").map(u=>Number.parseFloat(u));this.filter={...this.filter,parameters:[{...(a=(s=this.filter)==null?void 0:s.parameters)==null?void 0:a[0]},r]},this._value=r,this._sendChangeEvent()}onScrolled(e){var t;!this._retrieving&&!this._allValuesRetrieved&&((t=e==null?void 0:e.detail)==null?void 0:t.last)===this._numericValues.length-1&&this._fetchNumericValues(this._numericValues.length)}renderNumberField(){var e,t;return c.x`<luzmo-number-field
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CBOAQ3-E.cjs");require("../index-CNA9joKT.cjs");const c=require("../property-BCb4Kybn.cjs"),d=require("../set-locale-Cam8nRIW.cjs"),F=require("../localized-decorator-SOrjcPab.cjs"),v=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const z=require("../index-TQG9Xdxu.cjs"),b=require("../state-BxZEcclm.cjs"),T=".missing-value{opacity:.4}:host{--var: blue}";var I=Object.defineProperty,w=Object.getOwnPropertyDescriptor,n=(V,e,t,r)=>{for(var i=r>1?void 0:r?w(e,t):e,s=V.length-1,a;s>=0;s--)(a=V[s])&&(i=(r?a(e,t,i):a(i))||i);return r&&i&&I(e,t,i),i};const k=5e3;exports.LuzmoFilterValuePickerNumeric=class extends v.m(v.It,{validSizes:Object.values(v.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._numericValues=[],this._retrieving=!0,this._search="",this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[c.r(T)]}connectedCallback(){super.connectedCallback();const e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),z.dataBroker.configure(e)}willUpdate(e){var i,s,a,u,m,o,_,p,f,l,h,g,L,y;const t=e.has("filter");if(e.has("language")&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language),t&&this.filter){const N=(i=e.get("filter"))==null?void 0:i.expression,S=(s=this.filter)==null?void 0:s.expression,P=((m=(u=(a=e.get("filter"))==null?void 0:a.parameters)==null?void 0:u[0])==null?void 0:m.columnId)||((p=(_=(o=e.get("filter"))==null?void 0:o.parameters)==null?void 0:_[0])==null?void 0:p.formulaId),$=((h=(l=(f=this.filter)==null?void 0:f.parameters)==null?void 0:l[0])==null?void 0:h.columnId)||((y=(L=(g=this.filter)==null?void 0:g.parameters)==null?void 0:L[0])==null?void 0:y.formulaId);(P!==$||!["? in ?","? not in ?"].includes(N))&&["? in ?","? not in ?"].includes(S)&&(this._numericValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchNumericValues(e=0){var p,f;if(this._allValuesRetrieved){this._retrieving=!1;return}if(!((f=(p=this.filter)==null?void 0:p.parameters)!=null&&f[0])){this._retrieving=!1,this._error="Missing column parameters";return}const t=this.filter.parameters[0],r=t.columnId,i=t.formulaId,s=t.datasetId;if(!r&&!i){this._retrieving=!1,this._error="Missing column id or formula id";return}else if(!s){this._retrieving=!1,this._error="Missing dataset id";return}this._retrieving=!0,this._error=null;const a={expression:"? like ?",parameters:[{dataset_id:s,expression:`CAST({${s}:${r??i}},hierarchy)`},this._search]},u={dimensions:[{column_id:r,formula_id:i,dataset_id:s}],where:[],order:[{column_id:r,formula_id:i,dataset_id:s,order:"asc"}],limit:{by:k,offset:e}};this._search&&!this._allValuesRetrieved&&u.where.push(a);const m=new AbortController,o=new Promise((l,h)=>{z.dataBroker.fetchData(u).then(l).catch(h),m.signal.addEventListener("abort",()=>{console.warn("Request aborted"),h({status:"aborted"})})}),_={promise:o,abortController:m};this._runningQueries.push(_);try{const l=await o,h=l&&Array.isArray(l.data)?l.data.map(g=>g[0]):[];this._search||(this._allValuesRetrieved=h.length<k),this._numericValues=e>0?[...this._numericValues,...h]:h}catch(l){if((l==null?void 0:l.status)==="aborted")return;this._error=l instanceof Error?l.message:"Unknown error",this._numericValues=[]}finally{this._runningQueries=this._runningQueries.filter(l=>l.promise!==o),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setValue(e){var r,i,s,a,u;const t=["? in ?","? not in ?"].includes((r=this.filter)==null?void 0:r.expression)?(i=e==null?void 0:e.detail)==null?void 0:i.value:(s=e==null?void 0:e.target)==null?void 0:s.value;this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...(u=(a=this.filter)==null?void 0:a.parameters)==null?void 0:u[0]},t]},this._sendChangeEvent())}selectValue(e){var i,s,a;const r=(((i=e.detail)==null?void 0:i.value)??"").map(u=>Number.parseFloat(u));this.filter={...this.filter,parameters:[{...(a=(s=this.filter)==null?void 0:s.parameters)==null?void 0:a[0]},r]},this._value=r,this._sendChangeEvent()}onScrolled(e){var t;!this._retrieving&&!this._allValuesRetrieved&&((t=e==null?void 0:e.detail)==null?void 0:t.last)===this._numericValues.length-1&&this._fetchNumericValues(this._numericValues.length)}renderNumberField(){var e,t;return c.x`<luzmo-number-field
21
21
  .size=${this.size}
22
22
  @change=${this.setValue}
23
23
  @input=${this.setValue}
@@ -18,7 +18,7 @@
18
18
  * SOFTWARE.
19
19
  * */
20
20
  import "../index-Desl7GJ0.js";
21
- import "../index-BNwJ9moR.js";
21
+ import "../index-ChDwMQlU.js";
22
22
  import { r as I, x as y, n as d } from "../property-Dn4zSyxu.js";
23
23
  import { g as T, t as E, s as N, m as z } from "../set-locale-DbEAMqUs.js";
24
24
  import { l as R } from "../localized-decorator-DNr1P1m0.js";
@@ -23,7 +23,12 @@ const e = [
23
23
  rotate: !1,
24
24
  label: "Measure",
25
25
  type: "numeric",
26
- acceptableColumnTypes: ["hierarchy", "numeric"],
26
+ acceptableDataItemTypes: [
27
+ "hierarchy",
28
+ "numeric",
29
+ "array[hierarchy]",
30
+ "array[numeric]"
31
+ ],
27
32
  canAcceptFormula: !0
28
33
  },
29
34
  {
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"measure",rotate:!1,label:"Measure",options:{isAggregationDisabled:!0},acceptableColumnTypes:["numeric"],type:"numeric",isRequired:!0,canAcceptFormula:!0},{name:"category",rotate:!1,label:"Category",options:{areDatetimeOptionsEnabled:!0},type:"categorical",isRequired:!0}];exports.default=e;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"measure",rotate:!1,label:"Measure",type:"numeric",acceptableDataItemTypes:["hierarchy","numeric","array[hierarchy]","array[numeric]"],canAcceptFormula:!0},{name:"category",rotate:!1,label:"Category",type:"categorical",options:{areDatetimeOptionsEnabled:!0},isRequired:!0}];exports.default=e;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var In=Object.defineProperty;var Tn=(s,e,t)=>e in s?In(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var ii=(s,e,t)=>Tn(s,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../property-BCb4Kybn.cjs"),st=require("../state-BxZEcclm.cjs"),qt=require("../query-D5qWDopr.cjs"),Me=require("../luzmo-icons-DAsjNJNI.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-DSQyBS9Z.cjs");const kr=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const Nn=require("../query-all-CR2wWKRD.cjs"),Hn=require("../item-list.cjs"),si=require("../utils-CvCeHVBQ.cjs"),ge=require("../set-locale-Cam8nRIW.cjs"),On=require("../localized-decorator-SOrjcPab.cjs");require("../index-CAJRL5rT.cjs");const vi=Math.min,je=Math.max,It=Math.round,xt=Math.floor,ye=s=>({x:s,y:s}),Pn={left:"right",right:"left",bottom:"top",top:"bottom"},$n={start:"end",end:"start"};function Ti(s,e){return typeof s=="function"?s(e):s}function Je(s){return s.split("-")[0]}function jt(s){return s.split("-")[1]}function Bn(s){return s==="x"?"y":"x"}function Rr(s){return s==="y"?"height":"width"}function Oe(s){return["top","bottom"].includes(Je(s))?"y":"x"}function Sr(s){return Bn(Oe(s))}function Wn(s,e,t){t===void 0&&(t=!1);const i=jt(s),r=Sr(s),n=Rr(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Tt(o)),[o,Tt(o)]}function Gn(s){const e=Tt(s);return[wi(s),e,wi(e)]}function wi(s){return s.replace(/start|end/g,e=>$n[e])}function Fn(s,e,t){const i=["left","right"],r=["right","left"],n=["top","bottom"],o=["bottom","top"];switch(s){case"top":case"bottom":return t?e?r:i:e?i:r;case"left":case"right":return e?n:o;default:return[]}}function Un(s,e,t,i){const r=jt(s);let n=Fn(Je(s),t==="start",i);return r&&(n=n.map(o=>o+"-"+r),e&&(n=n.concat(n.map(wi)))),n}function Tt(s){return s.replace(/left|right|bottom|top/g,e=>Pn[e])}function qn(s){return{top:0,right:0,bottom:0,left:0,...s}}function jn(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Nt(s){const{x:e,y:t,width:i,height:r}=s;return{width:i,height:r,top:t,left:e,right:e+i,bottom:t+r,x:e,y:t}}function Ji(s,e,t){let{reference:i,floating:r}=s;const n=Oe(e),o=Sr(e),a=Rr(o),l=Je(e),d=n==="y",c=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let g;switch(l){case"top":g={x:c,y:i.y-r.height};break;case"bottom":g={x:c,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-r.width,y:h};break;default:g={x:i.x,y:i.y}}switch(jt(e)){case"start":g[o]-=u*(t&&d?-1:1);break;case"end":g[o]+=u*(t&&d?-1:1);break}return g}const Vn=async(s,e,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:o}=t,a=n.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:s,floating:e,strategy:r}),{x:c,y:h}=Ji(d,i,l),u=i,g={},m=0;for(let b=0;b<a.length;b++){const{name:y,fn:w}=a[b],{x:_,y:x,data:R,reset:A}=await w({x:c,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:g,rects:d,platform:o,elements:{reference:s,floating:e}});c=_??c,h=x??h,g={...g,[y]:{...g[y],...R}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(u=A.placement),A.rects&&(d=A.rects===!0?await o.getElementRects({reference:s,floating:e,strategy:r}):A.rects),{x:c,y:h}=Ji(d,u,l)),b=-1)}return{x:c,y:h,placement:u,strategy:r,middlewareData:g}};async function Yn(s,e){var t;e===void 0&&(e={});const{x:i,y:r,platform:n,rects:o,elements:a,strategy:l}=s,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:g=0}=Ti(e,s),m=jn(g),y=a[u?h==="floating"?"reference":"floating":h],w=Nt(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement(y)))==null||t?y:y.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),_=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),R=await(n.isElement==null?void 0:n.isElement(x))?await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1}:{x:1,y:1},A=Nt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:x,strategy:l}):_);return{top:(w.top-A.top+m.top)/R.y,bottom:(A.bottom-w.bottom+m.bottom)/R.y,left:(w.left-A.left+m.left)/R.x,right:(A.right-w.right+m.right)/R.x}}const Xn=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(e){var t,i;const{placement:r,middlewareData:n,rects:o,initialPlacement:a,platform:l,elements:d}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...y}=Ti(s,e);if((t=n.arrow)!=null&&t.alignmentOffset)return{};const w=Je(r),_=Oe(a),x=Je(a)===a,R=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!b?[Tt(a)]:Gn(a)),j=m!=="none";!u&&j&&A.push(...Un(a,b,m,R));const W=[a,...A],H=await Yn(e,y),G=[];let O=((i=n.flip)==null?void 0:i.overflows)||[];if(c&&G.push(H[w]),h){const I=Wn(r,o,R);G.push(H[I[0]],H[I[1]])}if(O=[...O,{placement:r,overflows:G}],!G.every(I=>I<=0)){var ue,$;const I=(((ue=n.flip)==null?void 0:ue.index)||0)+1,me=W[I];if(me&&(!(h==="alignment"?_!==Oe(me):!1)||O.every(Z=>Z.overflows[0]>0&&Oe(Z.placement)===_)))return{data:{index:I,overflows:O},reset:{placement:me}};let V=($=O.filter(fe=>fe.overflows[0]<=0).sort((fe,Z)=>fe.overflows[1]-Z.overflows[1])[0])==null?void 0:$.placement;if(!V)switch(g){case"bestFit":{var oe;const fe=(oe=O.filter(Z=>{if(j){const ae=Oe(Z.placement);return ae===_||ae==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(ae=>ae>0).reduce((ae,Ie)=>ae+Ie,0)]).sort((Z,ae)=>Z[1]-ae[1])[0])==null?void 0:oe[0];fe&&(V=fe);break}case"initialPlacement":V=a;break}if(r!==V)return{reset:{placement:V}}}return{}}}};async function Kn(s,e){const{placement:t,platform:i,elements:r}=s,n=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Je(t),a=jt(t),l=Oe(t)==="y",d=["left","top"].includes(o)?-1:1,c=n&&l?-1:1,h=Ti(e,s);let{mainAxis:u,crossAxis:g,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*c,y:u*d}:{x:u*d,y:g*c}}const Jn=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(e){var t,i;const{x:r,y:n,placement:o,middlewareData:a}=e,l=await Kn(e,s);return o===((t=a.offset)==null?void 0:t.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:o}}}}};function Vt(){return typeof window<"u"}function rt(s){return Ar(s)?(s.nodeName||"").toLowerCase():"#document"}function ie(s){var e;return(s==null||(e=s.ownerDocument)==null?void 0:e.defaultView)||window}function we(s){var e;return(e=(Ar(s)?s.ownerDocument:s.document)||window.document)==null?void 0:e.documentElement}function Ar(s){return Vt()?s instanceof Node||s instanceof ie(s).Node:!1}function de(s){return Vt()?s instanceof Element||s instanceof ie(s).Element:!1}function ve(s){return Vt()?s instanceof HTMLElement||s instanceof ie(s).HTMLElement:!1}function Zi(s){return!Vt()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof ie(s).ShadowRoot}function bt(s){const{overflow:e,overflowX:t,overflowY:i,display:r}=ce(s);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function Zn(s){return["table","td","th"].includes(rt(s))}function Yt(s){return[":popover-open",":modal"].some(e=>{try{return s.matches(e)}catch{return!1}})}function Ni(s){const e=Hi(),t=de(s)?ce(s):s;return["transform","translate","scale","rotate","perspective"].some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function Qn(s){let e=Re(s);for(;ve(e)&&!Ze(e);){if(Ni(e))return e;if(Yt(e))return null;e=Re(e)}return null}function Hi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(s){return["html","body","#document"].includes(rt(s))}function ce(s){return ie(s).getComputedStyle(s)}function Xt(s){return de(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Re(s){if(rt(s)==="html")return s;const e=s.assignedSlot||s.parentNode||Zi(s)&&s.host||we(s);return Zi(e)?e.host:e}function Cr(s){const e=Re(s);return Ze(e)?s.ownerDocument?s.ownerDocument.body:s.body:ve(e)&&bt(e)?e:Cr(e)}function ht(s,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Cr(s),n=r===((i=s.ownerDocument)==null?void 0:i.body),o=ie(r);if(n){const a=_i(o);return e.concat(o,o.visualViewport||[],bt(r)?r:[],a&&t?ht(a):[])}return e.concat(r,ht(r,[],t))}function _i(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Dr(s){const e=ce(s);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=ve(s),n=r?s.offsetWidth:t,o=r?s.offsetHeight:i,a=It(t)!==n||It(i)!==o;return a&&(t=n,i=o),{width:t,height:i,$:a}}function Oi(s){return de(s)?s:s.contextElement}function Ve(s){const e=Oi(s);if(!ve(e))return ye(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:n}=Dr(e);let o=(n?It(t.width):t.width)/i,a=(n?It(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eo=ye(0);function Lr(s){const e=ie(s);return!Hi()||!e.visualViewport?eo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function to(s,e,t){return e===void 0&&(e=!1),!t||e&&t!==ie(s)?!1:e}function $e(s,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=s.getBoundingClientRect(),n=Oi(s);let o=ye(1);e&&(i?de(i)&&(o=Ve(i)):o=Ve(s));const a=to(n,t,i)?Lr(n):ye(0);let l=(r.left+a.x)/o.x,d=(r.top+a.y)/o.y,c=r.width/o.x,h=r.height/o.y;if(n){const u=ie(n),g=i&&de(i)?ie(i):i;let m=u,b=_i(m);for(;b&&i&&g!==m;){const y=Ve(b),w=b.getBoundingClientRect(),_=ce(b),x=w.left+(b.clientLeft+parseFloat(_.paddingLeft))*y.x,R=w.top+(b.clientTop+parseFloat(_.paddingTop))*y.y;l*=y.x,d*=y.y,c*=y.x,h*=y.y,l+=x,d+=R,m=ie(b),b=_i(m)}}return Nt({width:c,height:h,x:l,y:d})}function Pi(s,e){const t=Xt(s).scrollLeft;return e?e.left+t:$e(we(s)).left+t}function Ir(s,e,t){t===void 0&&(t=!1);const i=s.getBoundingClientRect(),r=i.left+e.scrollLeft-(t?0:Pi(s,i)),n=i.top+e.scrollTop;return{x:r,y:n}}function io(s){let{elements:e,rect:t,offsetParent:i,strategy:r}=s;const n=r==="fixed",o=we(i),a=e?Yt(e.floating):!1;if(i===o||a&&n)return t;let l={scrollLeft:0,scrollTop:0},d=ye(1);const c=ye(0),h=ve(i);if((h||!h&&!n)&&((rt(i)!=="body"||bt(o))&&(l=Xt(i)),ve(i))){const g=$e(i);d=Ve(i),c.x=g.x+i.clientLeft,c.y=g.y+i.clientTop}const u=o&&!h&&!n?Ir(o,l,!0):ye(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:t.y*d.y-l.scrollTop*d.y+c.y+u.y}}function so(s){return Array.from(s.getClientRects())}function ro(s){const e=we(s),t=Xt(s),i=s.ownerDocument.body,r=je(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=je(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-t.scrollLeft+Pi(s);const a=-t.scrollTop;return ce(i).direction==="rtl"&&(o+=je(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:a}}function no(s,e){const t=ie(s),i=we(s),r=t.visualViewport;let n=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){n=r.width,o=r.height;const d=Hi();(!d||d&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:o,x:a,y:l}}function oo(s,e){const t=$e(s,!0,e==="fixed"),i=t.top+s.clientTop,r=t.left+s.clientLeft,n=ve(s)?Ve(s):ye(1),o=s.clientWidth*n.x,a=s.clientHeight*n.y,l=r*n.x,d=i*n.y;return{width:o,height:a,x:l,y:d}}function Qi(s,e,t){let i;if(e==="viewport")i=no(s,t);else if(e==="document")i=ro(we(s));else if(de(e))i=oo(e,t);else{const r=Lr(s);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Nt(i)}function Tr(s,e){const t=Re(s);return t===e||!de(t)||Ze(t)?!1:ce(t).position==="fixed"||Tr(t,e)}function ao(s,e){const t=e.get(s);if(t)return t;let i=ht(s,[],!1).filter(a=>de(a)&&rt(a)!=="body"),r=null;const n=ce(s).position==="fixed";let o=n?Re(s):s;for(;de(o)&&!Ze(o);){const a=ce(o),l=Ni(o);!l&&a.position==="fixed"&&(r=null),(n?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||bt(o)&&!l&&Tr(s,o))?i=i.filter(c=>c!==o):r=a,o=Re(o)}return e.set(s,i),i}function lo(s){let{element:e,boundary:t,rootBoundary:i,strategy:r}=s;const o=[...t==="clippingAncestors"?Yt(e)?[]:ao(e,this._c):[].concat(t),i],a=o[0],l=o.reduce((d,c)=>{const h=Qi(e,c,r);return d.top=je(h.top,d.top),d.right=vi(h.right,d.right),d.bottom=vi(h.bottom,d.bottom),d.left=je(h.left,d.left),d},Qi(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function co(s){const{width:e,height:t}=Dr(s);return{width:e,height:t}}function ho(s,e,t){const i=ve(e),r=we(e),n=t==="fixed",o=$e(s,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=ye(0);function d(){l.x=Pi(r)}if(i||!i&&!n)if((rt(e)!=="body"||bt(r))&&(a=Xt(e)),i){const g=$e(e,!0,n,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&d();n&&!i&&r&&d();const c=r&&!i&&!n?Ir(r,a):ye(0),h=o.left+a.scrollLeft-l.x-c.x,u=o.top+a.scrollTop-l.y-c.y;return{x:h,y:u,width:o.width,height:o.height}}function ri(s){return ce(s).position==="static"}function es(s,e){if(!ve(s)||ce(s).position==="fixed")return null;if(e)return e(s);let t=s.offsetParent;return we(s)===t&&(t=t.ownerDocument.body),t}function Nr(s,e){const t=ie(s);if(Yt(s))return t;if(!ve(s)){let r=Re(s);for(;r&&!Ze(r);){if(de(r)&&!ri(r))return r;r=Re(r)}return t}let i=es(s,e);for(;i&&Zn(i)&&ri(i);)i=es(i,e);return i&&Ze(i)&&ri(i)&&!Ni(i)?t:i||Qn(s)||t}const uo=async function(s){const e=this.getOffsetParent||Nr,t=this.getDimensions,i=await t(s.floating);return{reference:ho(s.reference,await e(s.floating),s.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mo(s){return ce(s).direction==="rtl"}const fo={convertOffsetParentRelativeRectToViewportRelativeRect:io,getDocumentElement:we,getClippingRect:lo,getOffsetParent:Nr,getElementRects:uo,getClientRects:so,getDimensions:co,getScale:Ve,isElement:de,isRTL:mo};function Hr(s,e){return s.x===e.x&&s.y===e.y&&s.width===e.width&&s.height===e.height}function go(s,e){let t=null,i;const r=we(s);function n(){var a;clearTimeout(i),(a=t)==null||a.disconnect(),t=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();const d=s.getBoundingClientRect(),{left:c,top:h,width:u,height:g}=d;if(a||e(),!u||!g)return;const m=xt(h),b=xt(r.clientWidth-(c+u)),y=xt(r.clientHeight-(h+g)),w=xt(c),x={rootMargin:-m+"px "+-b+"px "+-y+"px "+-w+"px",threshold:je(0,vi(1,l))||1};let R=!0;function A(j){const W=j[0].intersectionRatio;if(W!==l){if(!R)return o();W?o(!1,W):i=setTimeout(()=>{o(!1,1e-7)},1e3)}W===1&&!Hr(d,s.getBoundingClientRect())&&o(),R=!1}try{t=new IntersectionObserver(A,{...x,root:r.ownerDocument})}catch{t=new IntersectionObserver(A,x)}t.observe(s)}return o(!0),n}function ts(s,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=Oi(s),c=r||n?[...d?ht(d):[],...ht(e)]:[];c.forEach(w=>{r&&w.addEventListener("scroll",t,{passive:!0}),n&&w.addEventListener("resize",t)});const h=d&&a?go(d,t):null;let u=-1,g=null;o&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===d&&g&&(g.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),t()}),d&&!l&&g.observe(d),g.observe(e));let m,b=l?$e(s):null;l&&y();function y(){const w=$e(s);b&&!Hr(b,w)&&t(),b=w,m=requestAnimationFrame(y)}return t(),()=>{var w;c.forEach(_=>{r&&_.removeEventListener("scroll",t),n&&_.removeEventListener("resize",t)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const is=Jn,ss=Xn,rs=(s,e,t)=>{const i=new Map,r={platform:fo,...t},n={...r.platform,_c:i};return Vn(s,e,{...r,platform:n})},$i=(s,e)=>{let t="The dashboard component encountered an error";typeof(e==null?void 0:e.dashboardId)=="string"&&(t+=` for dashboard with id ${e.dashboardId}`),typeof(e==null?void 0:e.dashboardSlug)=="string"&&(t+=` for dashboard with slug ${e.dashboardSlug}`),typeof(e==null?void 0:e.container)=="string"&&(t+=` in container ${e.container}`),s&&(t+=`:
20
+ "use strict";var In=Object.defineProperty;var Tn=(s,e,t)=>e in s?In(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var ii=(s,e,t)=>Tn(s,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../property-BCb4Kybn.cjs"),st=require("../state-BxZEcclm.cjs"),qt=require("../query-D5qWDopr.cjs"),Me=require("../luzmo-icons-CP__dRRM.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-DSQyBS9Z.cjs");const kr=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const Nn=require("../query-all-CR2wWKRD.cjs"),Hn=require("../item-list.cjs"),si=require("../index-Vdyb9z2D.cjs"),ge=require("../set-locale-Cam8nRIW.cjs"),On=require("../localized-decorator-SOrjcPab.cjs");require("../index-CYeQkVeJ.cjs");const vi=Math.min,je=Math.max,It=Math.round,xt=Math.floor,ye=s=>({x:s,y:s}),Pn={left:"right",right:"left",bottom:"top",top:"bottom"},$n={start:"end",end:"start"};function Ti(s,e){return typeof s=="function"?s(e):s}function Je(s){return s.split("-")[0]}function jt(s){return s.split("-")[1]}function Bn(s){return s==="x"?"y":"x"}function Rr(s){return s==="y"?"height":"width"}function Oe(s){return["top","bottom"].includes(Je(s))?"y":"x"}function Sr(s){return Bn(Oe(s))}function Wn(s,e,t){t===void 0&&(t=!1);const i=jt(s),r=Sr(s),n=Rr(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Tt(o)),[o,Tt(o)]}function Gn(s){const e=Tt(s);return[wi(s),e,wi(e)]}function wi(s){return s.replace(/start|end/g,e=>$n[e])}function Fn(s,e,t){const i=["left","right"],r=["right","left"],n=["top","bottom"],o=["bottom","top"];switch(s){case"top":case"bottom":return t?e?r:i:e?i:r;case"left":case"right":return e?n:o;default:return[]}}function Un(s,e,t,i){const r=jt(s);let n=Fn(Je(s),t==="start",i);return r&&(n=n.map(o=>o+"-"+r),e&&(n=n.concat(n.map(wi)))),n}function Tt(s){return s.replace(/left|right|bottom|top/g,e=>Pn[e])}function qn(s){return{top:0,right:0,bottom:0,left:0,...s}}function jn(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Nt(s){const{x:e,y:t,width:i,height:r}=s;return{width:i,height:r,top:t,left:e,right:e+i,bottom:t+r,x:e,y:t}}function Ji(s,e,t){let{reference:i,floating:r}=s;const n=Oe(e),o=Sr(e),a=Rr(o),l=Je(e),d=n==="y",c=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let g;switch(l){case"top":g={x:c,y:i.y-r.height};break;case"bottom":g={x:c,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-r.width,y:h};break;default:g={x:i.x,y:i.y}}switch(jt(e)){case"start":g[o]-=u*(t&&d?-1:1);break;case"end":g[o]+=u*(t&&d?-1:1);break}return g}const Vn=async(s,e,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:o}=t,a=n.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:s,floating:e,strategy:r}),{x:c,y:h}=Ji(d,i,l),u=i,g={},m=0;for(let b=0;b<a.length;b++){const{name:y,fn:w}=a[b],{x:_,y:x,data:R,reset:A}=await w({x:c,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:g,rects:d,platform:o,elements:{reference:s,floating:e}});c=_??c,h=x??h,g={...g,[y]:{...g[y],...R}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(u=A.placement),A.rects&&(d=A.rects===!0?await o.getElementRects({reference:s,floating:e,strategy:r}):A.rects),{x:c,y:h}=Ji(d,u,l)),b=-1)}return{x:c,y:h,placement:u,strategy:r,middlewareData:g}};async function Yn(s,e){var t;e===void 0&&(e={});const{x:i,y:r,platform:n,rects:o,elements:a,strategy:l}=s,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:g=0}=Ti(e,s),m=jn(g),y=a[u?h==="floating"?"reference":"floating":h],w=Nt(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement(y)))==null||t?y:y.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),_=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),R=await(n.isElement==null?void 0:n.isElement(x))?await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1}:{x:1,y:1},A=Nt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:x,strategy:l}):_);return{top:(w.top-A.top+m.top)/R.y,bottom:(A.bottom-w.bottom+m.bottom)/R.y,left:(w.left-A.left+m.left)/R.x,right:(A.right-w.right+m.right)/R.x}}const Xn=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(e){var t,i;const{placement:r,middlewareData:n,rects:o,initialPlacement:a,platform:l,elements:d}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...y}=Ti(s,e);if((t=n.arrow)!=null&&t.alignmentOffset)return{};const w=Je(r),_=Oe(a),x=Je(a)===a,R=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!b?[Tt(a)]:Gn(a)),j=m!=="none";!u&&j&&A.push(...Un(a,b,m,R));const W=[a,...A],H=await Yn(e,y),G=[];let O=((i=n.flip)==null?void 0:i.overflows)||[];if(c&&G.push(H[w]),h){const I=Wn(r,o,R);G.push(H[I[0]],H[I[1]])}if(O=[...O,{placement:r,overflows:G}],!G.every(I=>I<=0)){var ue,$;const I=(((ue=n.flip)==null?void 0:ue.index)||0)+1,me=W[I];if(me&&(!(h==="alignment"?_!==Oe(me):!1)||O.every(Z=>Z.overflows[0]>0&&Oe(Z.placement)===_)))return{data:{index:I,overflows:O},reset:{placement:me}};let V=($=O.filter(fe=>fe.overflows[0]<=0).sort((fe,Z)=>fe.overflows[1]-Z.overflows[1])[0])==null?void 0:$.placement;if(!V)switch(g){case"bestFit":{var oe;const fe=(oe=O.filter(Z=>{if(j){const ae=Oe(Z.placement);return ae===_||ae==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(ae=>ae>0).reduce((ae,Ie)=>ae+Ie,0)]).sort((Z,ae)=>Z[1]-ae[1])[0])==null?void 0:oe[0];fe&&(V=fe);break}case"initialPlacement":V=a;break}if(r!==V)return{reset:{placement:V}}}return{}}}};async function Kn(s,e){const{placement:t,platform:i,elements:r}=s,n=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Je(t),a=jt(t),l=Oe(t)==="y",d=["left","top"].includes(o)?-1:1,c=n&&l?-1:1,h=Ti(e,s);let{mainAxis:u,crossAxis:g,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*c,y:u*d}:{x:u*d,y:g*c}}const Jn=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(e){var t,i;const{x:r,y:n,placement:o,middlewareData:a}=e,l=await Kn(e,s);return o===((t=a.offset)==null?void 0:t.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:o}}}}};function Vt(){return typeof window<"u"}function rt(s){return Ar(s)?(s.nodeName||"").toLowerCase():"#document"}function ie(s){var e;return(s==null||(e=s.ownerDocument)==null?void 0:e.defaultView)||window}function we(s){var e;return(e=(Ar(s)?s.ownerDocument:s.document)||window.document)==null?void 0:e.documentElement}function Ar(s){return Vt()?s instanceof Node||s instanceof ie(s).Node:!1}function de(s){return Vt()?s instanceof Element||s instanceof ie(s).Element:!1}function ve(s){return Vt()?s instanceof HTMLElement||s instanceof ie(s).HTMLElement:!1}function Zi(s){return!Vt()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof ie(s).ShadowRoot}function bt(s){const{overflow:e,overflowX:t,overflowY:i,display:r}=ce(s);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function Zn(s){return["table","td","th"].includes(rt(s))}function Yt(s){return[":popover-open",":modal"].some(e=>{try{return s.matches(e)}catch{return!1}})}function Ni(s){const e=Hi(),t=de(s)?ce(s):s;return["transform","translate","scale","rotate","perspective"].some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function Qn(s){let e=Re(s);for(;ve(e)&&!Ze(e);){if(Ni(e))return e;if(Yt(e))return null;e=Re(e)}return null}function Hi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(s){return["html","body","#document"].includes(rt(s))}function ce(s){return ie(s).getComputedStyle(s)}function Xt(s){return de(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Re(s){if(rt(s)==="html")return s;const e=s.assignedSlot||s.parentNode||Zi(s)&&s.host||we(s);return Zi(e)?e.host:e}function Cr(s){const e=Re(s);return Ze(e)?s.ownerDocument?s.ownerDocument.body:s.body:ve(e)&&bt(e)?e:Cr(e)}function ht(s,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Cr(s),n=r===((i=s.ownerDocument)==null?void 0:i.body),o=ie(r);if(n){const a=_i(o);return e.concat(o,o.visualViewport||[],bt(r)?r:[],a&&t?ht(a):[])}return e.concat(r,ht(r,[],t))}function _i(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Dr(s){const e=ce(s);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=ve(s),n=r?s.offsetWidth:t,o=r?s.offsetHeight:i,a=It(t)!==n||It(i)!==o;return a&&(t=n,i=o),{width:t,height:i,$:a}}function Oi(s){return de(s)?s:s.contextElement}function Ve(s){const e=Oi(s);if(!ve(e))return ye(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:n}=Dr(e);let o=(n?It(t.width):t.width)/i,a=(n?It(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eo=ye(0);function Lr(s){const e=ie(s);return!Hi()||!e.visualViewport?eo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function to(s,e,t){return e===void 0&&(e=!1),!t||e&&t!==ie(s)?!1:e}function $e(s,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=s.getBoundingClientRect(),n=Oi(s);let o=ye(1);e&&(i?de(i)&&(o=Ve(i)):o=Ve(s));const a=to(n,t,i)?Lr(n):ye(0);let l=(r.left+a.x)/o.x,d=(r.top+a.y)/o.y,c=r.width/o.x,h=r.height/o.y;if(n){const u=ie(n),g=i&&de(i)?ie(i):i;let m=u,b=_i(m);for(;b&&i&&g!==m;){const y=Ve(b),w=b.getBoundingClientRect(),_=ce(b),x=w.left+(b.clientLeft+parseFloat(_.paddingLeft))*y.x,R=w.top+(b.clientTop+parseFloat(_.paddingTop))*y.y;l*=y.x,d*=y.y,c*=y.x,h*=y.y,l+=x,d+=R,m=ie(b),b=_i(m)}}return Nt({width:c,height:h,x:l,y:d})}function Pi(s,e){const t=Xt(s).scrollLeft;return e?e.left+t:$e(we(s)).left+t}function Ir(s,e,t){t===void 0&&(t=!1);const i=s.getBoundingClientRect(),r=i.left+e.scrollLeft-(t?0:Pi(s,i)),n=i.top+e.scrollTop;return{x:r,y:n}}function io(s){let{elements:e,rect:t,offsetParent:i,strategy:r}=s;const n=r==="fixed",o=we(i),a=e?Yt(e.floating):!1;if(i===o||a&&n)return t;let l={scrollLeft:0,scrollTop:0},d=ye(1);const c=ye(0),h=ve(i);if((h||!h&&!n)&&((rt(i)!=="body"||bt(o))&&(l=Xt(i)),ve(i))){const g=$e(i);d=Ve(i),c.x=g.x+i.clientLeft,c.y=g.y+i.clientTop}const u=o&&!h&&!n?Ir(o,l,!0):ye(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:t.y*d.y-l.scrollTop*d.y+c.y+u.y}}function so(s){return Array.from(s.getClientRects())}function ro(s){const e=we(s),t=Xt(s),i=s.ownerDocument.body,r=je(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=je(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-t.scrollLeft+Pi(s);const a=-t.scrollTop;return ce(i).direction==="rtl"&&(o+=je(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:a}}function no(s,e){const t=ie(s),i=we(s),r=t.visualViewport;let n=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){n=r.width,o=r.height;const d=Hi();(!d||d&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:o,x:a,y:l}}function oo(s,e){const t=$e(s,!0,e==="fixed"),i=t.top+s.clientTop,r=t.left+s.clientLeft,n=ve(s)?Ve(s):ye(1),o=s.clientWidth*n.x,a=s.clientHeight*n.y,l=r*n.x,d=i*n.y;return{width:o,height:a,x:l,y:d}}function Qi(s,e,t){let i;if(e==="viewport")i=no(s,t);else if(e==="document")i=ro(we(s));else if(de(e))i=oo(e,t);else{const r=Lr(s);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Nt(i)}function Tr(s,e){const t=Re(s);return t===e||!de(t)||Ze(t)?!1:ce(t).position==="fixed"||Tr(t,e)}function ao(s,e){const t=e.get(s);if(t)return t;let i=ht(s,[],!1).filter(a=>de(a)&&rt(a)!=="body"),r=null;const n=ce(s).position==="fixed";let o=n?Re(s):s;for(;de(o)&&!Ze(o);){const a=ce(o),l=Ni(o);!l&&a.position==="fixed"&&(r=null),(n?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||bt(o)&&!l&&Tr(s,o))?i=i.filter(c=>c!==o):r=a,o=Re(o)}return e.set(s,i),i}function lo(s){let{element:e,boundary:t,rootBoundary:i,strategy:r}=s;const o=[...t==="clippingAncestors"?Yt(e)?[]:ao(e,this._c):[].concat(t),i],a=o[0],l=o.reduce((d,c)=>{const h=Qi(e,c,r);return d.top=je(h.top,d.top),d.right=vi(h.right,d.right),d.bottom=vi(h.bottom,d.bottom),d.left=je(h.left,d.left),d},Qi(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function co(s){const{width:e,height:t}=Dr(s);return{width:e,height:t}}function ho(s,e,t){const i=ve(e),r=we(e),n=t==="fixed",o=$e(s,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=ye(0);function d(){l.x=Pi(r)}if(i||!i&&!n)if((rt(e)!=="body"||bt(r))&&(a=Xt(e)),i){const g=$e(e,!0,n,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&d();n&&!i&&r&&d();const c=r&&!i&&!n?Ir(r,a):ye(0),h=o.left+a.scrollLeft-l.x-c.x,u=o.top+a.scrollTop-l.y-c.y;return{x:h,y:u,width:o.width,height:o.height}}function ri(s){return ce(s).position==="static"}function es(s,e){if(!ve(s)||ce(s).position==="fixed")return null;if(e)return e(s);let t=s.offsetParent;return we(s)===t&&(t=t.ownerDocument.body),t}function Nr(s,e){const t=ie(s);if(Yt(s))return t;if(!ve(s)){let r=Re(s);for(;r&&!Ze(r);){if(de(r)&&!ri(r))return r;r=Re(r)}return t}let i=es(s,e);for(;i&&Zn(i)&&ri(i);)i=es(i,e);return i&&Ze(i)&&ri(i)&&!Ni(i)?t:i||Qn(s)||t}const uo=async function(s){const e=this.getOffsetParent||Nr,t=this.getDimensions,i=await t(s.floating);return{reference:ho(s.reference,await e(s.floating),s.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mo(s){return ce(s).direction==="rtl"}const fo={convertOffsetParentRelativeRectToViewportRelativeRect:io,getDocumentElement:we,getClippingRect:lo,getOffsetParent:Nr,getElementRects:uo,getClientRects:so,getDimensions:co,getScale:Ve,isElement:de,isRTL:mo};function Hr(s,e){return s.x===e.x&&s.y===e.y&&s.width===e.width&&s.height===e.height}function go(s,e){let t=null,i;const r=we(s);function n(){var a;clearTimeout(i),(a=t)==null||a.disconnect(),t=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();const d=s.getBoundingClientRect(),{left:c,top:h,width:u,height:g}=d;if(a||e(),!u||!g)return;const m=xt(h),b=xt(r.clientWidth-(c+u)),y=xt(r.clientHeight-(h+g)),w=xt(c),x={rootMargin:-m+"px "+-b+"px "+-y+"px "+-w+"px",threshold:je(0,vi(1,l))||1};let R=!0;function A(j){const W=j[0].intersectionRatio;if(W!==l){if(!R)return o();W?o(!1,W):i=setTimeout(()=>{o(!1,1e-7)},1e3)}W===1&&!Hr(d,s.getBoundingClientRect())&&o(),R=!1}try{t=new IntersectionObserver(A,{...x,root:r.ownerDocument})}catch{t=new IntersectionObserver(A,x)}t.observe(s)}return o(!0),n}function ts(s,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=Oi(s),c=r||n?[...d?ht(d):[],...ht(e)]:[];c.forEach(w=>{r&&w.addEventListener("scroll",t,{passive:!0}),n&&w.addEventListener("resize",t)});const h=d&&a?go(d,t):null;let u=-1,g=null;o&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===d&&g&&(g.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),t()}),d&&!l&&g.observe(d),g.observe(e));let m,b=l?$e(s):null;l&&y();function y(){const w=$e(s);b&&!Hr(b,w)&&t(),b=w,m=requestAnimationFrame(y)}return t(),()=>{var w;c.forEach(_=>{r&&_.removeEventListener("scroll",t),n&&_.removeEventListener("resize",t)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const is=Jn,ss=Xn,rs=(s,e,t)=>{const i=new Map,r={platform:fo,...t},n={...r.platform,_c:i};return Vn(s,e,{...r,platform:n})},$i=(s,e)=>{let t="The dashboard component encountered an error";typeof(e==null?void 0:e.dashboardId)=="string"&&(t+=` for dashboard with id ${e.dashboardId}`),typeof(e==null?void 0:e.dashboardSlug)=="string"&&(t+=` for dashboard with slug ${e.dashboardSlug}`),typeof(e==null?void 0:e.container)=="string"&&(t+=` in container ${e.container}`),s&&(t+=`:
21
21
  ${s}`,console.warn(t))},po=s=>{let e=!1,t="";const r=(document.body||document.documentElement).style,n={svg:!!("createElementNS"in document&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),flexbox:r.webkitFlexWrap===""||r.flexWrap==="",postMessage:!!window.postMessage},o=["svg","flexbox","postMessage"];for(const c of o)n[c]||(e=!0,s.browserNotSupported=s.browserNotSupported||[],s.browserNotSupported.push(c),t+=`Your browser does not support: ${c}
22
22
  `);const a=window.navigator.userAgent,l=a.includes("MSIE"),d=a.includes("Trident/");(l||d)&&(e=!0,t="IE is not supported."),e&&$i(t)},ne={appServer:"https://app.luzmo.com/",apiHost:"https://api.luzmo.com/",dashboardId:null,dashboardSlug:null,container:null,key:null,token:null,language:"auto",editorLanguage:"auto",qeVersion:null,editMode:null,screenMode:null,switchScreenModeOnResize:!0,itemId:null,theme:"",mainColor:"",accentColor:"",itemDimensions:{width:"auto",height:"auto"},loaderBackground:"#f9f9f9",loaderFontColor:"#5a5a5a",loaderSpinnerColor:"rgba(255, 165, 0, 0.7)",loaderSpinnerBackground:"rgba(169, 169, 169, 0.14)",timezoneId:null,contextId:null},Or=[{mode:"mobile",width:[150,767]},{mode:"tablet",width:[768,1199]},{mode:"desktop",width:[1200,1599]},{mode:"largeScreen",width:[1600,9999]},{mode:"fixed",width:[]}],ns={initializing:{en:"Initializing...",nl:"Laden...",fr:"Chargement...",de:"Initialisiere...",es:"Inicializando..."}},lt=s=>s?s.endsWith("/")?s:`${s}/`:"",Ee=s=>s?s.endsWith("/")?s.slice(0,-1):s:"",bo=(s,e,t,i)=>{var a;const r=(l,d)=>{var b;const c=l.users.find(y=>y.id===d.id),h=c&&c.userAccessRight?{flagRead:c.userAccessRight.flagRead,flagUse:c.userAccessRight.flagUse,flagModify:c.userAccessRight.flagModify,flagOwn:c.userAccessRight.flagOwn}:{flagRead:!1,flagUse:!1,flagModify:!1,flagOwn:!1},g=l.groups.filter(y=>d.userGroups.includes(y.id)||y.public===!0).map(y=>{if(y.groupAccessRight)return y.groupAccessRight});for(const y of g)!h.flagRead&&y.flagRead&&(h.flagRead=y.flagRead),!h.flagUse&&y.flagUse&&(h.flagUse=y.flagUse),!h.flagModify&&y.flagModify&&(h.flagModify=y.flagModify),!h.flagOwn&&y.flagOwn&&(h.flagOwn=y.flagOwn);const m=((b=l.integrations)==null?void 0:b.length)>0?l.integrations.map(y=>{if(y.integrationAccessRight)return y.integrationAccessRight}):[];for(const y of m)!h.flagRead&&y.flagRead&&(h.flagRead=y.flagRead),!h.flagUse&&y.flagUse&&(h.flagUse=y.flagUse),!h.flagModify&&y.flagModify&&(h.flagModify=y.flagModify);return h},n=(l,d)=>{if(l==null)return"";if(typeof l!="object"||Object.keys(l).length===0)return typeof l=="object"&&Object.keys(l).length===0?"":l;let c;return c=d&&l[d]?l[d]:l[Object.keys(l)[0]],c==null&&(c=""),c},o=[];for(const l of s){const d={accessibleBy:[],accessRights:r(l,t),id:l.id,modifiedAt:l.modified_at,name:n(l.name,i.language),slug:null,tags:l.tags.map(m=>m.tag).sort((m,b)=>m.localeCompare(b))},c=l.integrations.find(m=>m.id===e);(a=c==null?void 0:c.integrationAccessRight)!=null&&a.slug&&(d.slug=c.integrationAccessRight.slug);const h=l.users.map(m=>({model:"User",id:m.id,name:n(m.name,t.locale_id)})),u=l.groups.map(m=>({model:"Group",id:m.id,name:n(m.name,t.locale_id)||{}})),g=l.integrations.map(m=>({model:"Integration",id:m.id,name:n(m.name,t.locale_id)||{}}));d.accessibleBy=[...h,...u,...g],o.push(d)}return o},yo="0.0.0-unknown-luzmo",vo=s=>{const e=/^(%20|\s)*(javascript|data)/im,t=/[^\u0020-\u007E]/gim,i=/^([^:]+):/gm,r=new Set([".","/"]),n=d=>r.has(d[0]);if(!s)return"about:blank";const o=s.replaceAll(t,"").trim();if(n(o))return o;const a=o.match(i);if(!a)return o;const l=a[0];return e.test(l)?"about:blank":o},os=s=>JSON.parse(JSON.stringify(s)),wo=s=>s&&typeof s=="object",xi=(s,e)=>(Object.entries(e).forEach(([t,i])=>{t in s?s[t]===void 0?s[t]=i:s[t]=wo(i)?xi(s[t],i):s[t]:s[t]=i}),s),We=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g,function(s){const e=Math.random()*16|0;return(s=="x"?e:e&3|8).toString(16)}),as=s=>{const e=[],{appServer:t,language:i,editorLanguage:r,qeVersion:n,loaderBackground:o,loaderSpinnerColor:a,loaderSpinnerBackground:l,loaderFontColor:d,screenMode:c,key:h,token:u,timezoneId:g,itemEmbedding:m,itemDimensions:b,dashboardId:y,dashboardSlug:w,itemId:_,theme:x,mainColor:R,accentColor:A,editMode:j}=s.params;i&&i!=="auto"&&e.push(`language=${i}`),r&&r!=="auto"&&e.push(`editorLanguage=${r}`),n&&e.push(`qe_version=${n}`),o&&e.push(`ldrbg=${o}`),d&&e.push(`ldrftclr=${d}`),a&&e.push(`ldrspclr=${a}`),l&&e.push(`ldrspbg=${l}`),x&&e.push(`theme=${x}`),R&&e.push(`mainColor=${R}`),A&&e.push(`accentColor=${A}`),c&&c!=="auto"&&e.push("screenMode=&{screenMode}"),g&&e.push("timezoneId="+g),m&&b&&b.width&&e.push("width="+b.width),m&&b&&b.height&&e.push("height="+b.height),j&&e.push("editMode="+j);const W=h&&u?"#"+h+":"+u:"";e.push("version="+(s.libVersion||yo));const H=m?`${t}i/${y||w}/${_}?${encodeURIComponent(e.join("&"))}${W}`:`${t}i/${y||w}?${encodeURIComponent(e.join("&"))}${W}`;return vo(H)},ls=s=>{let e;(s.params.error||s.browserNotSupported.length>0)&&(s.params.error=!0,s.browserNotSupported&&(e="Browser is not supported."));const t=ns.initializing[s.params.language]||ns.initializing.en;return s.browserNotSupported||s.params.error?{loadingMsg:t,errorMsg:e}:{loadingMsg:t,errorMsg:""}};function Te(s,e,t){s.promises[e]&&(s.promises[e].resolve(t),delete s.promises[e])}function Et(s,e,t){s.promises[e]&&(s.promises[e].reject(t),delete s.promises[e])}function Pr(s){const e={};return s.params.loaderBackground&&!s.iframeLoaded&&(e.background=s.params.loaderBackground),e}function _o(s){var r;const e=((r=s.params.itemDimensions)==null?void 0:r.height)||ne.itemDimensions.height,t=s.params.itemEmbedding&&e!=="auto";return{display:s.iframeLoaded?"none":"",height:`${t?e:s.minHeight}px`}}function xo(s){var t,i;const e=s.params.loaderBackground||ne.loaderBackground;if(s.params.itemEmbedding){s.loaderSize=24,s.borderWidth=4,s.minHeight=200;const r=((t=s.params.itemDimensions)==null?void 0:t.width)||ne.itemDimensions.width,n=((i=s.params.itemDimensions)==null?void 0:i.height)||ne.itemDimensions.height,o=r!=="auto",a=n!=="auto";return{background:e,width:o?`${r}px`:"100%",height:`${a?n:"200"}px`,"min-height":a?"":"200px"}}return{background:e}}function Eo(s){const{loaderSpinnerColor:e,loaderSpinnerBackground:t}=ne,i=cs(s.borderWidth,s.params.loaderSpinnerColor||e),r=cs(s.borderWidth,s.params.loaderSpinnerBackground||t),n=`${s.loaderSize}px`;return{"border-top":i,"border-right":i,"border-bottom":r,"border-left":r,width:n,height:n}}function zo(s){var n;const e=((n=s.params.itemDimensions)==null?void 0:n.height)||ne.itemDimensions.height,t=s.params.itemEmbedding&&e!=="auto",i=o=>`${(o-s.loaderSize-32)/2}px`;return{padding:`${s.params.itemId?i(t?Number.parseInt(`${e}`,10):s.minHeight):"128px"} 16px`}}function ds(s){var r,n;const e=((r=s.params.itemDimensions)==null?void 0:r.height)||ne.itemDimensions.height,t=((n=s.params.itemDimensions)==null?void 0:n.width)||ne.itemDimensions.width;s.params.itemEmbedding&&e!=="auto"?s.iframeHeight=`${e}px`:s.params.itemEmbedding?s.iframeHeight="200px":["editFull","editLimited"].includes(s.params.editMode)?s.iframeHeight="100%":s.iframeHeight="400px",s.iframeWidth=s.params.itemEmbedding&&t!=="auto"?`${t}px`:"100%";const i={height:s.iframeHeight,width:s.iframeWidth};return s.iframeLoaded?i.opacity=1:s.error?(i.opacity=1,i.width="100%",i.height="400px"):i.opacity=0,i}function cs(s,e){return`${s}px solid ${e}`}const Mo=(s,e)=>{s!=null&&s.contentWindow&&s.contentWindow.location.replace(e)},hs=(s,e,t)=>{const i=We();return e!=null&&e.contentWindow?(e.contentWindow.postMessage({action:"exportDashboard",format:t||"png",_version:s.libVersion,requestId:i},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n},setTimeout(()=>{if(s.promises[i]){const o="exportDashboard request timed out.";s.promises[i].reject(new Error(o)),delete s.promises[i]}},12e5)})):Promise.reject(new Error("Cannot retrieve contentWindow."))},ko=async s=>{if(await s.updateComplete,(s.currentAuthKey??s.authKey)&&(s.currentAuthToken??s.authToken)){const e=new Promise((t,i)=>{(()=>{try{window.fetch(`${lt(s.params.apiHost)}0.1.0/authorization`,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({action:"get",version:"0.1.0",key:s.currentAuthKey??s.authKey,token:s.currentAuthToken??s.authToken,find:{where:{id:s.authKey},attributes:["id","integration_id"],include:[{model:"User",attributes:["id","name","locale_id"],include:[{model:"Group"}]}]}})}).then(n=>n.json()).then(n=>{!n||!n.rows||n.rows.length===0||!n.rows[0].user?i("Authorization failed, please check authKey and authToken. If the problem persists, please contact support@luzmo.com."):(n.rows[0].user.userGroups=n.rows[0].user.groups.map(o=>o.id),delete n.rows[0].user.groups,t({integrationId:n.rows[0].integration_id,user:n.rows[0].user}))})}catch(r){i(r)}})()});return new Promise((t,i)=>void(()=>{try{e.then(r=>{window.fetch(`${lt(s.params.apiHost)}0.1.0/securable`,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({action:"get",version:"0.1.0",key:s.currentAuthKey??s.authKey,token:s.currentAuthToken??s.authToken,find:{where:{type:"dashboard",is_variant:!1},attributes:["id","name","modified_at"],order:[["modified_at","desc"]],include:[{model:"Tag",attributes:["tag"]},{model:"User",attributes:["id","name"]},{model:"Group",attributes:["id","name","public"]},{model:"Integration",attributes:["id","name"]}]}})}).then(o=>o.json()).then(o=>{const a=o.rows.length>0?bo(o.rows,r.integrationId,r.user,s):[];t(a)})}).catch(r=>{i(r)})}catch(r){i(r)}})())}throw new Error("No authKey or authToken found in the luzmo-dashboard component.")},Ro=(s,e,t)=>{if(e!=null&&e.contentWindow){const i=We();return e.contentWindow.postMessage({action:"getData",id:t,_version:s.libVersion,requestId:i},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n},setTimeout(()=>{if(s.promises[i]){const o="getData request timed out.";s.promises[i].reject(new Error(o)),delete s.promises[i]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))},So=(s,e)=>{if(e!=null&&e.contentWindow){const t=We();return e.contentWindow.postMessage({action:"getFilters",_version:s.libVersion,requestId:t},"*"),new Promise((i,r)=>{s.promises[t]={resolve:i,reject:r},setTimeout(()=>{if(s.promises[t]){const n="getFilters request timed out.";s.promises[t].reject(new Error(n)),delete s.promises[t]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))},us=(s,e,t)=>e?(e.contentWindow.postMessage({action:"refreshData",id:t??null,_version:s.libVersion},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow.")),Ao=(s,e)=>e?(e.contentWindow.postMessage({action:"reloadDashboard",_version:s.libVersion},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow.")),Co=(s,e,t,i)=>e?(e.contentWindow.postMessage({action:"setAuthorization",key:t,token:i,_version:s.libVersion},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow.")),Do=(s,e,t)=>{if(e&&e.contentWindow){const i=We();return s.params.editMode===t?Promise.reject(new Error("editMode parameter is currently already set to "+t)):t!=="editFull"&&t!=="editLimited"&&t!=="view"?Promise.reject(new Error("The editMode parameter must be one of the following values: 'editFull', 'editLimited' or 'view'.")):(e.contentWindow.postMessage({action:"setEditMode",editMode:t,_version:s.libVersion,requestId:i},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n}}))}return Promise.reject(new Error("Cannot retrieve contentWindow."))},Lo=(s,e,t,i)=>{if(e){const r=We();return e.contentWindow.postMessage({action:"setSelectedData",itemId:t,filters:i,_version:s.libVersion,requestId:r},"*"),new Promise((n,o)=>{s.promises[r]={resolve:n,reject:o},setTimeout(()=>{if(s.promises[r]){const a="setSelectedData request timed out.";s.promises[r].reject(new Error(a)),delete s.promises[r]}},2e3)})}return Promise.reject()},Io=(s,e,t)=>{if(e){const i=We();return e.contentWindow.postMessage({action:"setPreview",preview:t,requestId:i,_version:s.libVersion},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n},setTimeout(()=>{if(s.promises[i]){const o="setPreview request timed out.";s.promises[i].reject(new Error(o)),delete s.promises[i]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))},dt=s=>{var l,d,c,h,u,g,m,b;if(!s.dimensions){s.params.error=!0,$i("Got no valid dimensions.",s.params);return}const e=Object.keys(s.dimensions),t=[];let i,r=0,n=0;if(!s.params.switchScreenModeOnResize&&s.currentScreenMode&&(s.params.screenMode=s.currentScreenMode),s.dimensions&&(e==null?void 0:e[0])==="fixed")i="fixed",r=s.dimensions.fixed[0],n=s.dimensions.fixed[1];else{const y=["mobile","tablet","desktop","largeScreen"];if(s.params.itemEmbedding){const[w]=e;let _=os(w);for(const x of y){const R=e.find(A=>A===x);R?_=os(R):s.dimensions[x]=s.dimensions[_]}}for(const w of e)if(y.includes(w)){const _=Or.find(x=>x.mode===w);t.push({..._,height:s.dimensions[w][1]||50})}if(t.map(w=>w.mode).includes(s.params.screenMode)||(s.params.screenMode="auto"),s.params.screenMode==="auto"){t.sort((w,_)=>y.indexOf(w.mode)-y.indexOf(_.mode));for(const w of t){const[_,x]=w.width;s.params.itemEmbedding&&s.params.itemDimensions&&s.params.itemDimensions.width!=="auto"&&s.params.itemDimensions.height==="auto"?_<s.params.itemDimensions.width&&(i=w.mode,r=Number.parseInt(s.params.itemDimensions.width,10),n=s.dimensions[i][1]):_<s.containerWidth&&(i=w.mode,s.params.itemEmbedding?(r=(l=s.params.itemDimensions)!=null&&l.width&&((d=s.params.itemDimensions)==null?void 0:d.width)!=="auto"?Number.parseInt(s.params.itemDimensions.width,10):Math.min(s.containerWidth,x),n=(c=s.params.itemDimensions)!=null&&c.height&&((h=s.params.itemDimensions)==null?void 0:h.height)!=="auto"?Number.parseInt(s.params.itemDimensions.height,10):s.dimensions[i][1],s.params.itemDimensions&&s.params.itemDimensions.width!=="auto"&&s.params.itemDimensions.height==="auto"&&(r=Number.parseInt(s.params.itemDimensions.width,10),n=s.dimensions[i][1])):(r=Math.max(Math.min(x,s.containerWidth),_),n=w.height))}}else{const{height:w,width:[_,x]}=t.find(R=>R.mode===s.params.screenMode);i=s.params.screenMode,r=Math.max(Math.min(x,s.containerWidth),_),n=w,s.params.itemEmbedding&&((u=s.params.itemDimensions)!=null&&u.width&&((g=s.params.itemDimensions)==null?void 0:g.width)!=="auto"&&(r=Number.parseInt(s.params.itemDimensions.width,10)),(m=s.params.itemDimensions)!=null&&m.height&&((b=s.params.itemDimensions)==null?void 0:b.height)!=="auto"&&(n=Number.parseInt(s.params.itemDimensions.height,10)))}if(!i&&t.length>0){const[w]=t;i=w.mode,r=w.width[0],n=w.height}}s.currentScreenMode=i;const o={height:n===0?"100%":`${String(n)}px`,width:r===0?"100%":`${String(r)}px`,opacity:1};["editFull","editLimited"].includes(s.params.editMode)?(o.height="100%",o.width="100%"):s.params.itemEmbedding&&s.params.itemDimensions?(o.height=s.params.itemDimensions.height==="auto"?o.height:`${String(s.params.itemDimensions.height).replace("px","")}px`,o.width=s.params.itemDimensions.width==="auto"?o.width:`${String(s.params.itemDimensions.width).replace("px","")}px`):(o.height=n===0?"100%":`${String(n)}px`,o.width=r===0?"100%":`${String(r)}px`),s.currentScreenMode=i,s.iframeStyle=o},ms=s=>{const e=Object.keys(ne),t=[],i=["appServer","language","apiHost"],r=["key","token","screenMode","timezoneId","itemId","container","loaderBackground","loaderFontColor","loaderSpinnerColor","loaderSpinnerBackground"],n=["itemDimensions"],o=["mobile","tablet","desktop","largeScreen","fixed","auto"];for(const a of e)s.params[a]===null&&delete s.params[a];s.params=xi(s.params,ne),(!s.params.dashboardId||typeof s.params.dashboardId!="string")&&(!s.params.dashboardSlug||typeof s.params.dashboardSlug!="string")&&(delete s.params.dashboardId,delete s.params.dashboardSlug);for(const a of i)typeof s.params[a]!="string"&&(delete s.params[a],t.push(`${a} needs to be of type string.`));for(const a of r)typeof s.params[a]!="string"&&s.params[a]!==null&&s.params[a]!==void 0&&(delete s.params[a],t.push(`${a} needs to be of type string or empty.`));if(s.params.screenMode&&!o.includes(s.params.screenMode)){const a=o.map(l=>`"${l}"`).join(", ");t.push(`"screenMode" needs should be one of these types: ${a}`),s.params.screenMode="auto"}s.params.itemId&&(s.params.itemEmbedding=!0);for(const a of n)typeof s.params[a]!="object"&&s.params[a]!==null&&(delete s.params[a],t.push(`${a} needs to be of type object or empty.`));if(typeof s.params.switchScreenModeOnResize!="boolean"&&(t.push("switchScreenModeOnResize needs to be of type boolean."),s.params.switchScreenModeOnResize=!0),s.params.itemDimensions){const a=["width","height"];for(const l of a)!["string","number"].includes(typeof s.params.itemDimensions[l])&&s.params.itemDimensions[l]!==null&&t.push(`itemDimensions ${l} needs to be of type string, number or empty.`)}s.params=xi(s.params,ne),s.params.screenMode&&s.params.screenMode!=="auto"&&(s.params.switchScreenModeOnResize=!1),s.params.itemDimensions.width!=="auto"&&(s.params.itemDimensions.width=Number.parseInt(`${s.params.itemDimensions.width}`.replace("px",""),10)||"auto"),s.params.itemDimensions.height!=="auto"&&(s.params.itemDimensions.height=Number.parseInt(`${s.params.itemDimensions.height}`.replace("px",""),10)||"auto"),s.params.itemEmbedding=!!s.params.itemId,(s.params.error||t.length>0)&&$i(t.join(`
23
23
  `),s.params)},ni={type:"type",slots:"slots",options:"options",appServer:"app-server",apiHost:"api-host",authKey:"auth-key",authToken:"auth-token",contextId:"context-id",canFilter:"can-filter",filters:"filters",dashboardId:"dashboard-id",itemId:"item-id",dashboardContentsVersion:"dashboard-contents-version",libVersion:"lib-version"},Ei="luzmo-embed-container",ot={},To=async(s,e)=>{const t=typeof s=="function"?await s():s,i=document.createElement("script");i.type="text/javascript",i.addEventListener("load",e),i.src=t,document.querySelectorAll("head")[0].append(i)},fs=s=>({});async function No(s){const e=ot[s];if(e.inited)return e.lib;if(e.format==="var")return new Promise(t=>{const i=()=>{e.inited||(e.lib=window[s],e.lib.init(fs(e.from)),e.inited=!0),t(e.lib)};return To(e.url,i)});if(["esm","systemjs"].includes(e.format))return new Promise((t,i)=>{(typeof e.url=="function"?e.url:()=>Promise.resolve(e.url))().then(n=>{import(n).then(o=>{if(!e.inited){const a=fs(e.from);o.init(a),e.lib=o,e.lib.init(a),e.inited=!0}t(e.lib)}).catch(i)})})}function Ho(s,e){if(!(s!=null&&s.default)&&e){const t=Object.create(null);return t.default=s,t.__esModule=!0,t}return s}async function Oo(s,e){return No(s).then(t=>t.get(e).then(i=>i()))}async function Se(s,e="DashboardApp"){const t=s+e;if(ot[t])return ot[t].module;let i=`${Ee(s)}/remoteEntry.mjs`;if(!s.startsWith("http://localhost"))switch(e){case"DashboardApp":case"VizItemApp":{i=`${Ee(s)}/dashboard-app/remoteEntry.mjs`;break}case"IQApp":{i=`${Ee(s)}/iq-components/remoteEntry.mjs`;break}}ot[t]={url:i,format:"esm",from:"vite",module:void 0};const r=await Oo(t,`./${e}`),n=Ho(r,!0);return ot[t].module=n,n}/**
@@ -23,7 +23,7 @@ var oi = (i, e, t) => $o(i, typeof e != "symbol" ? e + "" : e, t);
23
23
  import { T as Wo, i as Vt, a as yt, x as D, n as y, r as _i, B as es } from "../property-Dn4zSyxu.js";
24
24
  import { r as rt } from "../state-vVJlsarL.js";
25
25
  import { e as Yt } from "../query-Ddbd72Um.js";
26
- import { c as Fo, ab as Uo, ac as Go, a6 as jo, a4 as qo, ad as Vo, ae as Yo, af as Xo, a7 as Ko } from "../luzmo-icons-DEoJcvoL.js";
26
+ import { i as Fo, ac as Uo, ah as Go, aa as jo, a8 as qo, ai as Vo, aj as Yo, ak as Xo, ad as Ko } from "../luzmo-icons-B2K7AcCF.js";
27
27
  import "../index-rQxtPaJl.js";
28
28
  import "../index-BHJH1eGn.js";
29
29
  import "../index-BC1LV3vH.js";
@@ -31,10 +31,10 @@ import { I as Dr } from "../base-D76d76ww-BGkuhs54.js";
31
31
  import "../focusable-BxtpnzWp-DJQkL8Zv.js";
32
32
  import { r as Jo } from "../query-all-Ddzx2fEK.js";
33
33
  import { itemTypes as Zo } from "../item-list.js";
34
- import { s as Qo, g as ts } from "../utils-B1rr30GZ.js";
34
+ import { s as Qo, g as ts } from "../index-CgnTl6Sc.js";
35
35
  import { m as Ie, g as en, t as tn, s as sn } from "../set-locale-DbEAMqUs.js";
36
36
  import { l as rn } from "../localized-decorator-DNr1P1m0.js";
37
- import "../index-Jmmy73Aq.js";
37
+ import "../index-BmshD32H.js";
38
38
  const Bo = () => {
39
39
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
40
40
  const i = document.createElement("style");
@@ -24,7 +24,7 @@ const e = [
24
24
  label: "Geography",
25
25
  type: "categorical",
26
26
  isRequired: !0,
27
- acceptableColumnTypes: ["spatial"]
27
+ acceptableDataItemTypes: ["spatial"]
28
28
  },
29
29
  {
30
30
  name: "measure",
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"geo",rotate:!1,label:"Geography",type:"categorical",isRequired:!0,acceptableColumnTypes:["spatial"]},{name:"measure",rotate:!1,label:"Measure",type:"numeric",canAcceptFormula:!0}];exports.default=e;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"geo",rotate:!1,label:"Geography",type:"categorical",isRequired:!0,acceptableDataItemTypes:["spatial"]},{name:"measure",rotate:!1,label:"Measure",type:"numeric",canAcceptFormula:!0}];exports.default=e;
@@ -24,7 +24,7 @@ const e = [
24
24
  label: "Geography",
25
25
  type: "categorical",
26
26
  isRequired: !0,
27
- acceptableColumnTypes: ["spatial"]
27
+ acceptableDataItemTypes: ["spatial"]
28
28
  },
29
29
  {
30
30
  name: "measure",
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"geo",rotate:!1,label:"Geography",type:"categorical",isRequired:!0,acceptableColumnTypes:["spatial"]},{name:"measure",rotate:!1,label:"Measure",type:"numeric",canAcceptFormula:!0}];exports.default=e;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{name:"geo",rotate:!1,label:"Geography",type:"categorical",isRequired:!0,acceptableDataItemTypes:["spatial"]},{name:"measure",rotate:!1,label:"Measure",type:"numeric",canAcceptFormula:!0}];exports.default=e;
@@ -18,8 +18,8 @@
18
18
  * SOFTWARE.
19
19
  * */
20
20
  import "./index-CsDgk_sj.js";
21
- import "./index-Ciad94jH.js";
22
- import "./index-BNwJ9moR.js";
21
+ import "./index-Bdy8Bz-n.js";
22
+ import "./index-ChDwMQlU.js";
23
23
  import { r as v, x as _, n as d } from "./property-Dn4zSyxu.js";
24
24
  import { m as e, g as q, t as E, s as D } from "./set-locale-DbEAMqUs.js";
25
25
  import { l as $ } from "./localized-decorator-DNr1P1m0.js";