@astrato-io/visualizations 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -3
  3. package/VISUALIZATION_DEFINITIONS.md +65 -12
  4. package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
  5. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
  6. package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
  7. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
  8. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
  9. package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
  10. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
  11. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
  12. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
  13. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
  14. package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
  15. package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
  16. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
  17. package/chunks/defaults-Dtk7fg3C.js +3 -0
  18. package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
  19. package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
  20. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
  21. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
  22. package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
  23. package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
  24. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
  25. package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
  26. package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  27. package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
  28. package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
  29. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
  30. package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
  31. package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
  32. package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
  33. package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
  34. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
  35. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
  36. package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
  37. package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
  38. package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
  39. package/chunks/standalone-B794g9pE.js +1012 -0
  40. package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
  41. package/chunks/standalone-BA2YXyJS.js +422 -0
  42. package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
  43. package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
  44. package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
  45. package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
  47. package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
  48. package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
  49. package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
  50. package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
  51. package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
  52. package/chunks/standalone-Cl0TSfqC.js +396 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
  54. package/chunks/standalone-DH0xTEes.js +2 -0
  55. package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
  56. package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
  57. package/chunks/standalone-DcnHjNnC.js +2 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
  59. package/chunks/standalone-DrHdGkY7.js +762 -0
  60. package/chunks/standalone-c_rROMtx.js +287 -0
  61. package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
  62. package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
  63. package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
  64. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
  65. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
  66. package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
  67. package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
  68. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
  69. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
  70. package/definitions.js +2 -2
  71. package/docs/operations/astrato-app-filter-bar.md +1 -1
  72. package/docs/operations/bar.md +1 -1
  73. package/docs/operations/combo.md +1 -1
  74. package/docs/operations/date-picker.md +1 -1
  75. package/docs/operations/distribution-gauge.md +1 -1
  76. package/docs/operations/dot.md +1 -1
  77. package/docs/operations/filter.md +1 -1
  78. package/docs/operations/gauge.md +1 -1
  79. package/docs/operations/heatMap.md +1 -1
  80. package/docs/operations/histogram.md +1 -1
  81. package/docs/operations/iframe.md +1 -1
  82. package/docs/operations/image.md +1 -1
  83. package/docs/operations/index.md +2 -2
  84. package/docs/operations/line.md +19 -1
  85. package/docs/operations/number.md +1 -1
  86. package/docs/operations/pie.md +1 -1
  87. package/docs/operations/radar.md +1 -1
  88. package/docs/operations/sankey.md +1 -1
  89. package/docs/operations/scatter.md +1 -1
  90. package/docs/operations/shape.md +1 -1
  91. package/docs/operations/simpleTextObject.md +1 -1
  92. package/docs/operations/slider.md +1 -1
  93. package/docs/operations/table.md +1 -1
  94. package/docs/operations/tree.md +1 -1
  95. package/docs/operations/treemap.md +1 -1
  96. package/docs/operations/waterfall.md +1 -1
  97. package/docs/operations/word-cloud.md +1 -1
  98. package/getters.js +2 -2
  99. package/index.js +54 -54
  100. package/metadata.js +2 -2
  101. package/operations.js +5 -5
  102. package/package.json +67 -67
  103. package/src/definitions/index.d.ts +7 -1
  104. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
  105. package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  106. package/src/types.d.ts +28 -28
  107. package/chunks/defaults-cyNhn37t.js +0 -3
  108. package/chunks/standalone-BR2JuRIC.js +0 -422
  109. package/chunks/standalone-BwJqDj2Z.js +0 -396
  110. package/chunks/standalone-CRfDOO1x.js +0 -287
  111. package/chunks/standalone-DZDGX3aa.js +0 -518
  112. package/chunks/standalone-DhfgeJIk.js +0 -1012
  113. package/chunks/standalone-KMQPsNsq.js +0 -2
  114. package/chunks/standalone-MBLSvsrY.js +0 -2
@@ -1,7 +1,7 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Da as t, Na as n, Qs as r } from "./visualization-filters-CzvFHE6M.js";
3
- import { W as i, Zt as a, ci as o, f as s, jt as c, o as l, or as u, si as d, sn as f, zr as p } from "./utils-3Igg6xmO.js";
4
- import { l as m } from "./logger-CKRjhSHQ.js";
2
+ import { $s as t, Oa as n, Pa as r } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { W as i, Zt as a, ci as o, f as s, jt as c, o as l, or as u, si as d, sn as f, zr as p } from "./utils-DganVptf.js";
4
+ import { l as m } from "./logger-DdZpR7xZ.js";
5
5
  var h = {
6
6
  OpenMediaPicker: "OPEN_MEDIA_PICKER",
7
7
  OpenMediaPickerResult: "OPEN_MEDIA_PICKER_RESULT",
@@ -15,9 +15,9 @@ g.forwardRef(function(e, t) {
15
15
  src: "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20viewBox%3D%220%200%20177%20177%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M177%2041.2427V164.357C177%20167.71%20175.668%20170.926%20173.297%20173.297C170.926%20175.668%20167.71%20177%20164.357%20177H12.6429C9.28976%20177%206.074%20175.668%203.70301%20173.297C1.33201%20170.926%200%20167.71%200%20164.357V12.6429C0%209.28976%201.33201%206.074%203.70301%203.70301C6.074%201.33201%209.28976%200%2012.6429%200L135.757%200C139.11%200%20152.289%2016.5319%20154.66%2018.9029C157.031%2021.2739%20177%2037.8896%20177%2041.2427Z%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3Cmask%20id%3D%22mask0%22%20mask-type%3D%22alpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2225%22%20y%3D%2225%22%20width%3D%22127%22%20height%3D%22127%22%3E%0A%20%20%20%20%3Crect%20x%3D%2225.2857%22%20y%3D%2225.2857%22%20width%3D%22126.429%22%20height%3D%22126.429%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3C%2Fmask%3E%0A%20%20%3Cg%20mask%3D%22url(%23mask0)%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M135.703%20147.315L126.644%20123.059L90.9439%2027.4276C90.4703%2026.1541%2089.227%2025.2857%2087.8653%2025.2857C86.4444%2025.2857%2085.201%2026.0962%2084.7274%2027.3118L61.2231%2083.9847L44.3497%2069.7441C43.3432%2068.8758%2041.8631%2068.7021%2040.679%2069.281C39.4949%2069.8599%2038.7252%2071.0756%2038.8436%2072.407L42.3367%20130.469C42.3959%20131.685%2043.1656%20132.727%2044.2905%20133.248C45.4154%20133.769%2046.7179%20133.595%2047.7244%20132.901L80.287%20108.645L130.493%20150.904C131.144%20151.425%20131.914%20151.714%20132.683%20151.714C133.335%20151.714%20133.986%20151.541%20134.578%20151.135C135.703%20150.267%20136.236%20148.704%20135.703%20147.315ZM58.5589%2090.4103L48.0796%20115.65L45.9482%2079.8167L58.5589%2090.4103ZM53.2896%20120.454L63.8873%2094.9257L75.0178%20104.304L53.2896%20120.454ZM66.5515%2088.5L87.6284%2037.616L104.324%2082.3638L80.4055%20100.136L66.5515%2088.5ZM85.6155%20104.593L106.752%2088.8474L120.369%20125.259L125.046%20137.763L85.6155%20104.593Z%22%20fill%3D%22%23BDBDBD%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M137.419%200H135.757V28.5999C135.757%2031.953%20137.089%2035.1687%20139.46%2037.5397C141.831%2039.9107%20145.047%2041.2427%20148.4%2041.2427H177V39.581L137.419%200Z%22%20fill%3D%22%23E0E0E0%22%2F%3E%0A%3C%2Fsvg%3E%0A"
16
16
  });
17
17
  });
18
- var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20viewBox%3D%220%200%20177%20177%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M177%2041.2427V164.357C177%20167.71%20175.668%20170.926%20173.297%20173.297C170.926%20175.668%20167.71%20177%20164.357%20177H12.6429C9.28976%20177%206.074%20175.668%203.70301%20173.297C1.33201%20170.926%200%20167.71%200%20164.357V12.6429C0%209.28976%201.33201%206.074%203.70301%203.70301C6.074%201.33201%209.28976%200%2012.6429%200L135.757%200C139.11%200%20152.289%2016.5319%20154.66%2018.9029C157.031%2021.2739%20177%2037.8896%20177%2041.2427Z%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3Cmask%20id%3D%22mask0%22%20mask-type%3D%22alpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2225%22%20y%3D%2225%22%20width%3D%22127%22%20height%3D%22127%22%3E%0A%20%20%20%20%3Crect%20x%3D%2225.2857%22%20y%3D%2225.2857%22%20width%3D%22126.429%22%20height%3D%22126.429%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3C%2Fmask%3E%0A%20%20%3Cg%20mask%3D%22url(%23mask0)%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M135.703%20147.315L126.644%20123.059L90.9439%2027.4276C90.4703%2026.1541%2089.227%2025.2857%2087.8653%2025.2857C86.4444%2025.2857%2085.201%2026.0962%2084.7274%2027.3118L61.2231%2083.9847L44.3497%2069.7441C43.3432%2068.8758%2041.8631%2068.7021%2040.679%2069.281C39.4949%2069.8599%2038.7252%2071.0756%2038.8436%2072.407L42.3367%20130.469C42.3959%20131.685%2043.1656%20132.727%2044.2905%20133.248C45.4154%20133.769%2046.7179%20133.595%2047.7244%20132.901L80.287%20108.645L130.493%20150.904C131.144%20151.425%20131.914%20151.714%20132.683%20151.714C133.335%20151.714%20133.986%20151.541%20134.578%20151.135C135.703%20150.267%20136.236%20148.704%20135.703%20147.315ZM58.5589%2090.4103L48.0796%20115.65L45.9482%2079.8167L58.5589%2090.4103ZM53.2896%20120.454L63.8873%2094.9257L75.0178%20104.304L53.2896%20120.454ZM66.5515%2088.5L87.6284%2037.616L104.324%2082.3638L80.4055%20100.136L66.5515%2088.5ZM85.6155%20104.593L106.752%2088.8474L120.369%20125.259L125.046%20137.763L85.6155%20104.593Z%22%20fill%3D%22%23BDBDBD%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M137.419%200H135.757V28.5999C135.757%2031.953%20137.089%2035.1687%20139.46%2037.5397C141.831%2039.9107%20145.047%2041.2427%20148.4%2041.2427H177V39.581L137.419%200Z%22%20fill%3D%22%23E0E0E0%22%2F%3E%0A%3C%2Fsvg%3E%0A", v = (e, t, n) => t?.imageSettings.image?.mediaItemId ? e.daedalus.mediaApi.getUrl(t?.imageSettings.image?.mediaItemId) : t?.imageSettings.image?.imageUrl ? t?.imageSettings.image?.imageUrl : t?.imageSettings.image?.imageVariable && n?.[t?.imageSettings.image?.imageVariable]?.value ? `${n?.[t?.imageSettings.image?.imageVariable]?.value}` : "", y = (e, t, r) => ({
19
- imageSrc: v(e, t, r),
20
- imageFit: t?.imageSettings.image?.imageFit ?? n.Contain,
18
+ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20viewBox%3D%220%200%20177%20177%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M177%2041.2427V164.357C177%20167.71%20175.668%20170.926%20173.297%20173.297C170.926%20175.668%20167.71%20177%20164.357%20177H12.6429C9.28976%20177%206.074%20175.668%203.70301%20173.297C1.33201%20170.926%200%20167.71%200%20164.357V12.6429C0%209.28976%201.33201%206.074%203.70301%203.70301C6.074%201.33201%209.28976%200%2012.6429%200L135.757%200C139.11%200%20152.289%2016.5319%20154.66%2018.9029C157.031%2021.2739%20177%2037.8896%20177%2041.2427Z%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3Cmask%20id%3D%22mask0%22%20mask-type%3D%22alpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2225%22%20y%3D%2225%22%20width%3D%22127%22%20height%3D%22127%22%3E%0A%20%20%20%20%3Crect%20x%3D%2225.2857%22%20y%3D%2225.2857%22%20width%3D%22126.429%22%20height%3D%22126.429%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3C%2Fmask%3E%0A%20%20%3Cg%20mask%3D%22url(%23mask0)%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M135.703%20147.315L126.644%20123.059L90.9439%2027.4276C90.4703%2026.1541%2089.227%2025.2857%2087.8653%2025.2857C86.4444%2025.2857%2085.201%2026.0962%2084.7274%2027.3118L61.2231%2083.9847L44.3497%2069.7441C43.3432%2068.8758%2041.8631%2068.7021%2040.679%2069.281C39.4949%2069.8599%2038.7252%2071.0756%2038.8436%2072.407L42.3367%20130.469C42.3959%20131.685%2043.1656%20132.727%2044.2905%20133.248C45.4154%20133.769%2046.7179%20133.595%2047.7244%20132.901L80.287%20108.645L130.493%20150.904C131.144%20151.425%20131.914%20151.714%20132.683%20151.714C133.335%20151.714%20133.986%20151.541%20134.578%20151.135C135.703%20150.267%20136.236%20148.704%20135.703%20147.315ZM58.5589%2090.4103L48.0796%20115.65L45.9482%2079.8167L58.5589%2090.4103ZM53.2896%20120.454L63.8873%2094.9257L75.0178%20104.304L53.2896%20120.454ZM66.5515%2088.5L87.6284%2037.616L104.324%2082.3638L80.4055%20100.136L66.5515%2088.5ZM85.6155%20104.593L106.752%2088.8474L120.369%20125.259L125.046%20137.763L85.6155%20104.593Z%22%20fill%3D%22%23BDBDBD%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M137.419%200H135.757V28.5999C135.757%2031.953%20137.089%2035.1687%20139.46%2037.5397C141.831%2039.9107%20145.047%2041.2427%20148.4%2041.2427H177V39.581L137.419%200Z%22%20fill%3D%22%23E0E0E0%22%2F%3E%0A%3C%2Fsvg%3E%0A", v = (e, t, n) => t?.imageSettings.image?.mediaItemId ? e.daedalus.mediaApi.getUrl(t?.imageSettings.image?.mediaItemId) : t?.imageSettings.image?.imageUrl ? t?.imageSettings.image?.imageUrl : t?.imageSettings.image?.imageVariable && n?.[t?.imageSettings.image?.imageVariable]?.value ? `${n?.[t?.imageSettings.image?.imageVariable]?.value}` : "", y = (e, t, n) => ({
19
+ imageSrc: v(e, t, n),
20
+ imageFit: t?.imageSettings.image?.imageFit ?? r.Contain,
21
21
  opacity: t?.imageSettings.opacity ?? 1,
22
22
  saturation: t?.imageSettings.saturation ?? 1,
23
23
  blur: t?.imageSettings.blur ?? 0,
@@ -42,10 +42,10 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
42
42
  addGalleryButton: {
43
43
  ...d.normal14,
44
44
  padding: "10px 20px",
45
- background: t.white,
45
+ background: n.white,
46
46
  borderRadius: 4,
47
- border: `1px solid ${t.grey3}`,
48
- color: t.secondaryPurple,
47
+ border: `1px solid ${n.grey3}`,
48
+ color: n.secondaryPurple,
49
49
  cursor: "pointer",
50
50
  display: "flex",
51
51
  justifyContent: "center",
@@ -81,10 +81,10 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
81
81
  "&.none": { objectFit: "none" }
82
82
  }
83
83
  }), S = p(), C = (e) => f({
84
- contain: e === n.Contain,
85
- cover: e === n.Cover,
86
- fill: e === n.Fill,
87
- none: e === n.None
84
+ contain: e === r.Contain,
85
+ cover: e === r.Cover,
86
+ fill: e === r.Fill,
87
+ none: e === r.None
88
88
  }), w = ({ imageSrc: e, imageFit: t, opacity: n, saturation: r, blur: i, shadow: a, onLoadCallback: o }) => {
89
89
  let s = x(), c = a ? "drop-shadow(0px 3px 6px rgba(0,0,0,0.25))" : "";
90
90
  return /* @__PURE__ */ (0, S.jsx)("div", {
@@ -109,25 +109,25 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
109
109
  })
110
110
  });
111
111
  }, T = c(({ vSpec: e }) => {
112
- let n = a(), i = b(), { variablesDict: o } = l(), c = e && r(e) ? y(n, e, o) : null, d = s();
112
+ let r = a(), i = b(), { variablesDict: o } = l(), c = e && t(e) ? y(r, e, o) : null, d = s();
113
113
  return (0, g.useEffect)(() => {
114
- !c?.imageSrc && n.daedalus.objectCapabilities.editable && d();
114
+ !c?.imageSrc && r.daedalus.objectCapabilities.editable && d();
115
115
  }, [e, c?.imageSrc]), c?.imageSrc ? /* @__PURE__ */ (0, S.jsx)("div", {
116
116
  className: i.singleImageContainer,
117
117
  children: /* @__PURE__ */ (0, S.jsx)(w, {
118
118
  ...c,
119
119
  onLoadCallback: d
120
120
  })
121
- }) : n.daedalus.objectCapabilities.editable ? /* @__PURE__ */ (0, S.jsx)("div", {
121
+ }) : r.daedalus.objectCapabilities.editable ? /* @__PURE__ */ (0, S.jsx)("div", {
122
122
  className: i.previewImageContainer,
123
123
  children: /* @__PURE__ */ (0, S.jsxs)("button", {
124
124
  "data-testid": "open-media-gallery-button",
125
125
  className: i.addGalleryButton,
126
126
  onClick: () => {
127
- n.emitEvent(m.SET_PROPERTY_PANEL_OBJECT_TAB, "ITEM"), n.emitEvent(h.OpenMediaPicker);
127
+ r.emitEvent(m.SET_PROPERTY_PANEL_OBJECT_TAB, "ITEM"), r.emitEvent(h.OpenMediaPicker);
128
128
  },
129
129
  children: [/* @__PURE__ */ (0, S.jsx)(u, {
130
- fill: t.mainDarkNavy,
130
+ fill: n.mainDarkNavy,
131
131
  size: 16,
132
132
  className: i.buttonIcon
133
133
  }), "Add from the Gallery"]
@@ -1,8 +1,8 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Cs as n, Dc as r, Ma as i, Oc as a, Oo as o, hc as s, wc as c } from "./visualization-filters-CzvFHE6M.js";
3
- import { Br as l, Gr as u, Hr as d, Kr as f, Ur as p, Vr as m, Wr as h, Zt as g, _, ci as v, cn as y, f as b, kn as x, on as S, ri as C, sn as w, zr as T } from "./utils-3Igg6xmO.js";
4
- import { s as E } from "./logger-CKRjhSHQ.js";
5
- import { t as ee } from "./FieldTypeIcon-D_MzsdfY.js";
2
+ import { Na as n, Oc as r, Tc as i, gc as a, kc as o, ko as s, ws as c } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { Br as l, Gr as u, Hr as d, Kr as f, Ur as p, Vr as m, Wr as h, Zt as g, _, ci as v, cn as y, f as b, kn as x, on as S, ri as C, sn as w, zr as T } from "./utils-DganVptf.js";
4
+ import { s as E } from "./logger-DdZpR7xZ.js";
5
+ import { t as ee } from "./FieldTypeIcon-DrMoGpHJ.js";
6
6
  import { n as D, t as te } from "./typeof-DCq3QgvY.js";
7
7
  var O = /* @__PURE__ */ e(v()), k = T();
8
8
  function A({ label: e }) {
@@ -1768,19 +1768,19 @@ var K = E(), q = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ge = (
1768
1768
  }, xt = (e, t) => ({
1769
1769
  ...Z(e),
1770
1770
  values: t
1771
- }), Q = (e) => Array.isArray(e.values) ? e.values : [], $ = (e) => `${typeof e}:${typeof e == "object" && e ? JSON.stringify(e) : String(e)}`, St = (e) => Array.isArray(e.data) ? e.data.map((e) => e[0]) : Object.values(e.data).map((e) => e[0]), Ct = (e, t, r) => {
1772
- let i = [K.FilterOperator.Contains, K.FilterOperator.NotContains].includes(t.operator), a = [K.FilterOperator.Like, K.FilterOperator.NotLike].includes(t.operator);
1773
- if (!(!i && !a)) return {
1771
+ }), Q = (e) => Array.isArray(e.values) ? e.values : [], $ = (e) => `${typeof e}:${typeof e == "object" && e ? JSON.stringify(e) : String(e)}`, St = (e) => Array.isArray(e.data) ? e.data.map((e) => e[0]) : Object.values(e.data).map((e) => e[0]), Ct = (e, t, n) => {
1772
+ let r = [K.FilterOperator.Contains, K.FilterOperator.NotContains].includes(t.operator), i = [K.FilterOperator.Like, K.FilterOperator.NotLike].includes(t.operator);
1773
+ if (!(!r && !i)) return {
1774
1774
  dimensions: [{ fieldKey: e }],
1775
1775
  measures: [],
1776
- filters: [n({
1776
+ filters: [c({
1777
1777
  fieldKey: e,
1778
- operator: i ? K.FilterOperator.Contains : K.FilterOperator.Like,
1778
+ operator: r ? K.FilterOperator.Contains : K.FilterOperator.Like,
1779
1779
  values: [String(Q(t)[0] ?? "").trim()],
1780
1780
  dateLevel: t.dateLevel,
1781
1781
  datePart: t.datePart
1782
1782
  })],
1783
- limit: r
1783
+ limit: n
1784
1784
  };
1785
1785
  }, wt = (e) => e === K.FieldType.DATE ? "date" : e === K.FieldType.TIME ? "time" : "datetime-local", Tt = (e) => e.dynamicDateCalcRange ? "preset" : e.dynamicDateRange ? "relative" : e.dynamicDateCalc ? "dynamic-calc" : e.dynamicDate ? "dynamic" : [K.FilterOperator.Equals, K.FilterOperator.NotEquals].includes(e.operator) ? "single" : "fixed", Et = (e, t) => {
1786
1786
  let n = Z(e), r = [K.FilterOperator.NotEquals, K.FilterOperator.NotBetween].includes(e.operator), i = [
@@ -1875,10 +1875,10 @@ function Dt({ filter: e, disabledControls: t, update: n }) {
1875
1875
  }
1876
1876
  var Ot = Object.values(K.DynamicDateCalcRangeType).map((e) => ({
1877
1877
  value: e,
1878
- label: i[e] ?? e
1878
+ label: n[e] ?? e
1879
1879
  })), kt = Object.values(K.DynamicDateCalcType).map((e) => ({
1880
1880
  value: e,
1881
- label: i[e] ?? e
1881
+ label: n[e] ?? e
1882
1882
  })), At = [
1883
1883
  {
1884
1884
  value: "list",
@@ -2256,12 +2256,12 @@ function It({ field: e, filter: t, timeZone: n, disabledControls: r, update: i }
2256
2256
  });
2257
2257
  }
2258
2258
  function Lt({ field: e, filter: t, editor: n, showAdvancedOperators: r }) {
2259
- let i = (0, O.useId)(), { update: a, valuesSelected: s, isSingleSelect: c, disabledControls: l, valueList: u } = n, { values: d, availableValues: f, availableSelectedValues: p, searchQuery: m, hasConnectedFilters: h, showAllValues: g, setShowAllValues: _, sortDirection: v, toggleSortDirection: y, isRefreshingValues: b, isLoadingMore: S, loadMoreError: C, canLoadMore: w, loadMore: T, valueListRef: E, nextPageRef: ee } = u, D = /* @__PURE__ */ (0, k.jsx)(Mt, {
2259
+ let i = (0, O.useId)(), { update: a, valuesSelected: o, isSingleSelect: c, disabledControls: l, valueList: u } = n, { values: d, availableValues: f, availableSelectedValues: p, searchQuery: m, hasConnectedFilters: h, showAllValues: g, setShowAllValues: _, sortDirection: v, toggleSortDirection: y, isRefreshingValues: b, isLoadingMore: S, loadMoreError: C, canLoadMore: w, loadMore: T, valueListRef: E, nextPageRef: ee } = u, D = /* @__PURE__ */ (0, k.jsx)(Mt, {
2260
2260
  field: e,
2261
2261
  filter: t,
2262
2262
  editor: n
2263
2263
  }), te = (e) => {
2264
- let n = Q(t), r = $(e), i = s.has(r) ? n.filter((e) => $(e) !== r) : [...n, e];
2264
+ let n = Q(t), r = $(e), i = o.has(r) ? n.filter((e) => $(e) !== r) : [...n, e];
2265
2265
  a(xt(t, c ? [e] : i));
2266
2266
  }, N = () => {
2267
2267
  let e = new Set(d.map($)), n = Q(t).filter((t) => !e.has($(t)));
@@ -2271,7 +2271,7 @@ function Lt({ field: e, filter: t, editor: n, showAdvancedOperators: r }) {
2271
2271
  a(xt(t, Q(t).filter((t) => !e.has($(t)))));
2272
2272
  }, F = () => {
2273
2273
  let e = new Set(d.map($)), n = Q(t).filter((t) => !e.has($(t)));
2274
- n.push(...d.filter((e) => !s.has($(e)))), a(xt(t, n));
2274
+ n.push(...d.filter((e) => !o.has($(e)))), a(xt(t, n));
2275
2275
  }, I = () => a(xt(t, f)), L = Q(t), R = m ? d : [...new Map([...d, ...L].map((e) => [$(e), e])).values()], z = new Set([...f, ...p].map($));
2276
2276
  return /* @__PURE__ */ (0, k.jsxs)("div", {
2277
2277
  className: "astrato-app-filter-bar__list-editor",
@@ -2292,10 +2292,10 @@ function Lt({ field: e, filter: t, editor: n, showAdvancedOperators: r }) {
2292
2292
  "data-variant": "ghost",
2293
2293
  "data-icon-only": "true",
2294
2294
  disabled: l,
2295
- "aria-label": v === o.Asc ? "Sort descending" : "Sort ascending",
2296
- title: v === o.Asc ? "Sorted ascending. Switch to descending." : "Sorted descending. Switch to ascending.",
2295
+ "aria-label": v === s.Asc ? "Sort descending" : "Sort ascending",
2296
+ title: v === s.Asc ? "Sorted ascending. Switch to descending." : "Sorted descending. Switch to ascending.",
2297
2297
  onClick: y,
2298
- children: /* @__PURE__ */ (0, k.jsx)(x, { name: v === o.Asc ? "sortAsc" : "sortDesc" })
2298
+ children: /* @__PURE__ */ (0, k.jsx)(x, { name: v === s.Asc ? "sortAsc" : "sortDesc" })
2299
2299
  }),
2300
2300
  /* @__PURE__ */ (0, k.jsx)(j, {
2301
2301
  "data-variant": "ghost",
@@ -2350,12 +2350,12 @@ function Lt({ field: e, filter: t, editor: n, showAdvancedOperators: r }) {
2350
2350
  let t = $(e);
2351
2351
  return /* @__PURE__ */ (0, k.jsxs)("label", {
2352
2352
  className: "astrato-app-filter-bar__value",
2353
- "data-selected": s.has(t),
2353
+ "data-selected": o.has(t),
2354
2354
  "data-excluded": h && !z.has(t),
2355
2355
  children: [/* @__PURE__ */ (0, k.jsx)(M, {
2356
2356
  type: c ? "radio" : "checkbox",
2357
2357
  name: c ? i : void 0,
2358
- checked: s.has(t),
2358
+ checked: o.has(t),
2359
2359
  disabled: l || b,
2360
2360
  onChange: () => te(e)
2361
2361
  }), /* @__PURE__ */ (0, k.jsx)("span", { children: e == null ? "Null" : typeof e == "object" ? "value" in e ? String(e.value) : JSON.stringify(e) : String(e) })]
@@ -2394,13 +2394,13 @@ var Rt = (e, t) => {
2394
2394
  }, zt = async (e, t, n, r) => {
2395
2395
  let i = Jt(qt(r));
2396
2396
  if (!i.length) return [];
2397
- let { connectedFilters: a, associativeListFilter: s } = Rt(e, t.key), c = Ut(t.key, 0, i.length, o.Asc, [...a, {
2397
+ let { connectedFilters: a, associativeListFilter: o } = Rt(e, t.key), c = Ut(t.key, 0, i.length, s.Asc, [...a, {
2398
2398
  fieldKey: t.key,
2399
2399
  ...n.dateLevel ? { dateLevel: n.dateLevel } : {},
2400
2400
  ...n.datePart ? { datePart: n.datePart } : {},
2401
2401
  operator: K.FilterOperator.InList,
2402
2402
  values: i
2403
- }], n.dateLevel, n.datePart, s);
2403
+ }], n.dateLevel, n.datePart, o);
2404
2404
  return Kt((await e.query(c)).data);
2405
2405
  }, Bt = async (e, t, n, r) => {
2406
2406
  let { searchQuery: i = null, sortDirection: a, offset: o, limit: s } = r, c = r.availableOffset ?? 0, { connectedFilters: l, associativeListFilter: u } = Rt(e, t.key), d = l.length > 0 || !!u, f = i ? [Wt(t, i)] : [], p = Ut(t.key, o, s, a, f, n.dateLevel, n.datePart), m = Kt((await e.query(p)).data), h = [], g = [], _ = !1;
@@ -2458,7 +2458,7 @@ var Rt = (e, t) => {
2458
2458
  K.FieldType.REAL
2459
2459
  ].includes(e), Kt = (e) => Array.isArray(e) ? e.map((e) => e[0]) : Object.values(e).map((e) => e[0]), qt = (e) => Array.isArray(e) ? e.filter((e) => e === null || typeof e == "string" || typeof e == "number" || typeof e == "boolean") : [], Jt = (e) => [...new Set(e)], Yt = (e, t) => e === t || JSON.stringify(e) === JSON.stringify(t);
2460
2460
  function Xt({ field: e, filter: t, services: n, editorMode: r, disabledControls: i, onError: a }) {
2461
- let [s, c] = (0, O.useState)(""), [l, u] = (0, O.useState)(""), [d, f] = (0, O.useState)([]), [p, m] = (0, O.useState)([]), [h, g] = (0, O.useState)([]), [_, v] = (0, O.useState)(!1), [y, b] = (0, O.useState)(!1), [x, S] = (0, O.useState)(!1), [C, w] = (0, O.useState)(!1), [T, E] = (0, O.useState)(0), [ee, D] = (0, O.useState)(!0), [te, k] = (0, O.useState)(!1), [A, j] = (0, O.useState)(null), [M, N] = (0, O.useState)(o.Asc), [, ne] = (0, O.useState)(0), [P, F] = (0, O.useState)(null), I = (0, O.useRef)(/* @__PURE__ */ new Map()), L = (0, O.useRef)(0), R = (0, O.useRef)(null), z = (0, O.useRef)(null), re = (0, O.useRef)(null), ie = (0, O.useRef)({
2461
+ let [o, c] = (0, O.useState)(""), [l, u] = (0, O.useState)(""), [d, f] = (0, O.useState)([]), [p, m] = (0, O.useState)([]), [h, g] = (0, O.useState)([]), [_, v] = (0, O.useState)(!1), [y, b] = (0, O.useState)(!1), [x, S] = (0, O.useState)(!1), [C, w] = (0, O.useState)(!1), [T, E] = (0, O.useState)(0), [ee, D] = (0, O.useState)(!0), [te, k] = (0, O.useState)(!1), [A, j] = (0, O.useState)(null), [M, N] = (0, O.useState)(s.Asc), [, ne] = (0, O.useState)(0), [P, F] = (0, O.useState)(null), I = (0, O.useRef)(/* @__PURE__ */ new Map()), L = (0, O.useRef)(0), R = (0, O.useRef)(null), z = (0, O.useRef)(null), re = (0, O.useRef)(null), ie = (0, O.useRef)({
2462
2462
  field: e,
2463
2463
  filter: t,
2464
2464
  searchQuery: l,
@@ -2481,11 +2481,11 @@ function Xt({ field: e, filter: t, services: n, editorMode: r, disabledControls:
2481
2481
  M,
2482
2482
  C,
2483
2483
  Rt(n, e.key)
2484
- ]), ae = JSON.stringify(Q(t)), V = ee || s !== l, H = x && !C ? y : _;
2484
+ ]), ae = JSON.stringify(Q(t)), V = ee || o !== l, H = x && !C ? y : _;
2485
2485
  (0, O.useEffect)(() => {
2486
- let e = setTimeout(() => u(s), 300);
2486
+ let e = setTimeout(() => u(o), 300);
2487
2487
  return () => clearTimeout(e);
2488
- }, [s]), (0, O.useEffect)(() => n.subscribe(() => ne((e) => e + 1)), [n]), (0, O.useEffect)(() => {
2488
+ }, [o]), (0, O.useEffect)(() => n.subscribe(() => ne((e) => e + 1)), [n]), (0, O.useEffect)(() => {
2489
2489
  if (r !== "list") return;
2490
2490
  let { field: e, filter: t, searchQuery: i, sortDirection: o, showAllValues: s } = ie.current, c = ++L.current;
2491
2491
  return R.current = null, D(!0), k(!1), j(null), a(null), F(null), I.current.clear(), Bt(n, e, t, {
@@ -2590,7 +2590,7 @@ function Xt({ field: e, filter: t, services: n, editorMode: r, disabledControls:
2590
2590
  V,
2591
2591
  U
2592
2592
  ]), {
2593
- searchInput: s,
2593
+ searchInput: o,
2594
2594
  searchQuery: l,
2595
2595
  setSearchInput: c,
2596
2596
  resetSearch: () => {
@@ -2603,7 +2603,7 @@ function Xt({ field: e, filter: t, services: n, editorMode: r, disabledControls:
2603
2603
  showAllValues: C,
2604
2604
  setShowAllValues: w,
2605
2605
  sortDirection: M,
2606
- toggleSortDirection: () => N((e) => e === o.Asc ? o.Desc : o.Asc),
2606
+ toggleSortDirection: () => N((e) => e === s.Asc ? s.Desc : s.Asc),
2607
2607
  isRefreshingValues: V,
2608
2608
  isLoadingMore: te,
2609
2609
  loadMoreError: A,
@@ -3388,10 +3388,10 @@ var mn = "grouped-dimension-level-changed", hn = (e, t, n) => e.flatMap((e, n) =
3388
3388
  let t = () => {
3389
3389
  let t = e.engine;
3390
3390
  if (!t) return [];
3391
- let n = C(null, t), i = new Map(n.filter(a).map((e) => [e.key, e])), o = /* @__PURE__ */ new Map();
3391
+ let n = C(null, t), a = new Map(n.filter(o).map((e) => [e.key, e])), s = /* @__PURE__ */ new Map();
3392
3392
  for (let e of n) {
3393
- if (a(e)) {
3394
- o.set(e.key, {
3393
+ if (o(e)) {
3394
+ s.set(e.key, {
3395
3395
  key: e.key,
3396
3396
  name: e.name,
3397
3397
  view: e.view,
@@ -3400,11 +3400,11 @@ var mn = "grouped-dimension-level-changed", hn = (e, t, n) => e.flatMap((e, n) =
3400
3400
  continue;
3401
3401
  }
3402
3402
  if (!r(e) || !e.dimension?.fieldKey) continue;
3403
- let t = e.dimension.fieldKey, n = i.get(t);
3404
- if (!o.has(t)) {
3405
- let r = n?.dataType ?? c(e);
3403
+ let t = e.dimension.fieldKey, n = a.get(t);
3404
+ if (!s.has(t)) {
3405
+ let r = n?.dataType ?? i(e);
3406
3406
  if (!r) continue;
3407
- o.set(t, {
3407
+ s.set(t, {
3408
3408
  key: t,
3409
3409
  name: e.name,
3410
3410
  view: n?.view ?? e.dimension.view,
@@ -3412,7 +3412,7 @@ var mn = "grouped-dimension-level-changed", hn = (e, t, n) => e.flatMap((e, n) =
3412
3412
  });
3413
3413
  }
3414
3414
  }
3415
- return [...o.values()];
3415
+ return [...s.values()];
3416
3416
  }, n = () => {
3417
3417
  let t = e.selection.getActiveSelection(K.FilterType.ALL);
3418
3418
  if (typeof t != "object" || !t) return {
@@ -3424,27 +3424,27 @@ var mn = "grouped-dimension-level-changed", hn = (e, t, n) => e.flatMap((e, n) =
3424
3424
  applied: Array.isArray(n.applied) ? n.applied : [],
3425
3425
  pending: Array.isArray(n.pending) ? n.pending : []
3426
3426
  };
3427
- }, i = () => qe(n()), o = (e) => {
3427
+ }, a = () => qe(n()), s = (e) => {
3428
3428
  let n = t().find((t) => t.key === e);
3429
3429
  return n?.view ? {
3430
3430
  name: n.name,
3431
3431
  view: n.view,
3432
3432
  fieldKey: e
3433
3433
  } : void 0;
3434
- }, s = (e) => {
3434
+ }, c = (e) => {
3435
3435
  let n = t().find((t) => t.key === e);
3436
3436
  return {
3437
3437
  fieldKey: e,
3438
3438
  name: n?.name ?? "",
3439
3439
  view: n?.view ?? ""
3440
3440
  };
3441
- }, l = (t) => e.selection.isFieldLocked(s(t)), u = (t) => e.selection.getSingleSelectedFields().some((e) => J(e) === t), d = (t, n) => {
3441
+ }, l = (t) => e.selection.isFieldLocked(c(t)), u = (t) => e.selection.getSingleSelectedFields().some((e) => J(e) === t), d = (t, n) => {
3442
3442
  e.selection.setNewSelectionState(t, n);
3443
3443
  }, f = /* @__PURE__ */ new Set(), p = [], m = /* @__PURE__ */ new Map(), h = () => f.forEach((e) => e()), g = () => {
3444
- let n = t(), r = new Map(n.map((e) => [e.key, e])), a = i(), o = /* @__PURE__ */ new Set([
3444
+ let n = t(), r = new Map(n.map((e) => [e.key, e])), i = a(), o = /* @__PURE__ */ new Set([
3445
3445
  ...n.map((e) => e.key),
3446
- ...a.applied.map((e) => J(e)).filter((e) => !!e),
3447
- ...a.pending.map((e) => J(e)).filter((e) => !!e)
3446
+ ...i.applied.map((e) => J(e)).filter((e) => !!e),
3447
+ ...i.pending.map((e) => J(e)).filter((e) => !!e)
3448
3448
  ]);
3449
3449
  for (let t of o) {
3450
3450
  if (m.has(t)) continue;
@@ -3544,7 +3544,7 @@ var mn = "grouped-dimension-level-changed", hn = (e, t, n) => e.flatMap((e, n) =
3544
3544
  };
3545
3545
  return {
3546
3546
  getFields: t,
3547
- getSelection: i,
3547
+ getSelection: a,
3548
3548
  subscribe: v,
3549
3549
  select: y,
3550
3550
  remove: b,
@@ -3567,14 +3567,14 @@ var mn = "grouped-dimension-level-changed", hn = (e, t, n) => e.flatMap((e, n) =
3567
3567
  isSingleSelect: (t) => e.selection.getSingleSelectedFields().some((e) => J(e) === t),
3568
3568
  canLock: e.selection.canLock === !0,
3569
3569
  toggleLock: (t) => {
3570
- e.selection.toggleFieldLocked(s(t));
3570
+ e.selection.toggleFieldLocked(c(t));
3571
3571
  },
3572
3572
  query: async (t) => {
3573
3573
  if (!e.engine) throw Error("Cannot query filter values without an engine");
3574
3574
  return await e.engine.getData(t);
3575
3575
  },
3576
3576
  areFieldsConnected: (t, n) => {
3577
- let r = o(t), i = o(n);
3577
+ let r = s(t), i = s(n);
3578
3578
  return r && i ? e.engine?.areFieldsConnected(r, i) ?? !1 : !1;
3579
3579
  },
3580
3580
  get supportsAssociativeFiltering() {
@@ -4341,11 +4341,11 @@ function kn() {
4341
4341
  return /* @__PURE__ */ (0, k.jsx)(An, {});
4342
4342
  }
4343
4343
  function An({ isExpanded: e = !1 }) {
4344
- let t = g(), n = _()((e) => e.vSpec), r = b(), i = (0, O.useMemo)(() => _n(t), [t]), [a, o] = (0, O.useState)({
4344
+ let t = g(), n = _()((e) => e.vSpec), r = b(), i = (0, O.useMemo)(() => _n(t), [t]), [o, s] = (0, O.useState)({
4345
4345
  applied: [],
4346
4346
  pending: []
4347
4347
  }), [c, l] = (0, O.useState)(0), [u, d] = (0, O.useState)(), [f, p] = (0, O.useState)(), [m, h] = (0, O.useState)(), [v, y] = (0, O.useState)(), S = (0, O.useRef)(void 0), [C, T] = (0, O.useState)(""), E = (0, O.useId)(), D = (0, O.useId)(), [te, A] = (0, O.useState)(!1), M = n?.appFilterBarSettings ?? {}, P = () => {
4348
- o(i.getSelection()), l((e) => e + 1);
4348
+ s(i.getSelection()), l((e) => e + 1);
4349
4349
  }, F = (e) => {
4350
4350
  try {
4351
4351
  e(), P(), d(void 0);
@@ -4362,16 +4362,16 @@ function An({ isExpanded: e = !1 }) {
4362
4362
  }
4363
4363
  return () => e?.();
4364
4364
  }, [i]), (0, O.useEffect)(() => {
4365
- !e && n?.type === s.AppFilterBar && r();
4365
+ !e && n?.type === a.AppFilterBar && r();
4366
4366
  }, [
4367
4367
  n,
4368
4368
  r,
4369
4369
  e
4370
4370
  ]), (0, O.useEffect)(() => {
4371
4371
  if (!m) return;
4372
- let e = On(a, m), t = JSON.stringify(e);
4372
+ let e = On(o, m), t = JSON.stringify(e);
4373
4373
  t !== S.current && (S.current = t, e ? h(structuredClone(e)) : (h(void 0), p(void 0)));
4374
- }, [a, m]);
4374
+ }, [o, m]);
4375
4375
  let L = (0, O.useMemo)(() => i.getFields(), [i, c]), R = (0, O.useMemo)(() => M.showChartBreakdown === !0 ? i.getDimensionGroups().filter((e) => e.fields.length > 1) : [], [
4376
4376
  i,
4377
4377
  c,
@@ -4395,11 +4395,11 @@ function An({ isExpanded: e = !1 }) {
4395
4395
  V,
4396
4396
  H
4397
4397
  ]);
4398
- let oe = ie.filter((e) => `${e.name} ${e.view ?? ""}`.toLocaleLowerCase().includes(C.toLocaleLowerCase().trim())), W = Ye(a), se = e ? "vertical" : M.orientation ?? "horizontal", { barRef: ce, overflow: le } = pn(!e && M.overflow === "button" ? "button" : se === "vertical" ? "wrap" : M.overflow ?? "wrap", !!n);
4398
+ let oe = ie.filter((e) => `${e.name} ${e.view ?? ""}`.toLocaleLowerCase().includes(C.toLocaleLowerCase().trim())), W = Ye(o), se = e ? "vertical" : M.orientation ?? "horizontal", { barRef: ce, overflow: le } = pn(!e && M.overflow === "button" ? "button" : se === "vertical" ? "wrap" : M.overflow ?? "wrap", !!n);
4399
4399
  (0, O.useEffect)(() => {
4400
4400
  le !== "button" && A(!1), p(void 0), h(void 0);
4401
4401
  }, [le]);
4402
- let { chipsRef: ue, visibleCount: de } = fn(le === "collapse", JSON.stringify(W), W.length), fe = W.length - de, pe = W.slice(de).some((e) => e.pending), G = a.pending.length > 0, me = G && a.pending.every(Qe) && (!m || Qe(m)), he = a.applied.length > 0 || G, ge = () => {
4402
+ let { chipsRef: ue, visibleCount: de } = fn(le === "collapse", JSON.stringify(W), W.length), fe = W.length - de, pe = W.slice(de).some((e) => e.pending), G = o.pending.length > 0, me = G && o.pending.every(Qe) && (!m || Qe(m)), he = o.applied.length > 0 || G, ge = () => {
4403
4403
  p(void 0), h(void 0), S.current = void 0;
4404
4404
  }, _e = () => F(() => {
4405
4405
  i.cancel(), ge();
@@ -4410,14 +4410,14 @@ function An({ isExpanded: e = !1 }) {
4410
4410
  name: e.fieldKey,
4411
4411
  dataType: K.FieldType.STRING
4412
4412
  }, be = (e, t, n = !1) => {
4413
- S.current = JSON.stringify(On(a, e)), h(structuredClone(e)), p({
4413
+ S.current = JSON.stringify(On(o, e)), h(structuredClone(e)), p({
4414
4414
  kind: "filter",
4415
4415
  anchor: t,
4416
4416
  fromOverflow: n
4417
4417
  });
4418
4418
  }, xe = (e) => {
4419
4419
  if (!f) return;
4420
- let t = a.pending.find((t) => t.fieldKey === e.key && !("associativeListFilter" in t)) ?? a.applied.find((t) => t.fieldKey === e.key && !("associativeListFilter" in t));
4420
+ let t = o.pending.find((t) => t.fieldKey === e.key && !("associativeListFilter" in t)) ?? o.applied.find((t) => t.fieldKey === e.key && !("associativeListFilter" in t));
4421
4421
  be(t ?? ft(e), f.anchor);
4422
4422
  }, Se = (e) => {
4423
4423
  h(e);