@devgateway/dvz-ui-react 1.3.5 → 1.5.0

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 (310) hide show
  1. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
  2. package/dist/cjs/_virtual/_nodeUtil.js +1 -0
  3. package/dist/cjs/_virtual/isBuffer.js +1 -0
  4. package/dist/cjs/_virtual/isEqual.js +1 -0
  5. package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
  6. package/dist/cjs/embeddable/body/index.js +1 -1
  7. package/dist/cjs/embeddable/chart/Bar.js +1 -1
  8. package/dist/cjs/embeddable/chart/Line.js +1 -1
  9. package/dist/cjs/embeddable/chart/colors/ColorProvider.js +1 -1
  10. package/dist/cjs/embeddable/chart/colors/ManualColors.js +1 -1
  11. package/dist/cjs/embeddable/chart/colors/SystemColors.js +1 -1
  12. package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
  13. package/dist/cjs/embeddable/chart/data/Line.js +1 -1
  14. package/dist/cjs/embeddable/chart/data/Utils.js +1 -1
  15. package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
  16. package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
  17. package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
  18. package/dist/cjs/embeddable/data/DataContext.js +1 -1
  19. package/dist/cjs/embeddable/featuredtabs/index.js +1 -1
  20. package/dist/cjs/embeddable/filter/index.js +1 -1
  21. package/dist/cjs/embeddable/filtered-posts/NoData.js +11 -0
  22. package/dist/cjs/embeddable/filtered-posts/index.js +1 -0
  23. package/dist/cjs/embeddable/index.js +1 -1
  24. package/dist/cjs/embeddable/inlinelist/index.js +1 -1
  25. package/dist/cjs/embeddable/map/MapDataFrame.js +1 -1
  26. package/dist/cjs/embeddable/map/index.js +2 -2
  27. package/dist/cjs/embeddable/map/map.js +4 -4
  28. package/dist/cjs/embeddable/new-time-line/index.js +1 -1
  29. package/dist/cjs/embeddable/new-time-line/timeline.js +1 -1
  30. package/dist/cjs/embeddable/posts-filter/PostsFilterDropdown.js +1 -0
  31. package/dist/cjs/embeddable/posts-filter/index.js +1 -0
  32. package/dist/cjs/embeddable/posts-filters-reset-button/index.js +1 -0
  33. package/dist/cjs/embeddable/posts-pagination/index.js +1 -0
  34. package/dist/cjs/embeddable/postscarousel/index.js +1 -1
  35. package/dist/cjs/embeddable/reducers/data-api.js +1 -1
  36. package/dist/cjs/embeddable/reducers/data.js +1 -1
  37. package/dist/cjs/embeddable/showcase/index.js +1 -1
  38. package/dist/cjs/embeddable/time-line/desktop.js +1 -1
  39. package/dist/cjs/embeddable/time-line/mobile.js +1 -1
  40. package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
  41. package/dist/cjs/layout/ClassicHeader.js +1 -1
  42. package/dist/cjs/layout/CustomSemanticSearch.js +1 -1
  43. package/dist/cjs/layout/Header.js +3 -3
  44. package/dist/cjs/layout/Layout.js +1 -1
  45. package/dist/cjs/layout/SearchControl.js +1 -1
  46. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js +1 -0
  47. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +1 -0
  48. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +1 -0
  49. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +1 -0
  50. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +1 -0
  51. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js +1 -0
  52. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js +1 -0
  53. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js +1 -0
  54. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js +1 -0
  55. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +1 -0
  56. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js +1 -0
  57. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js +1 -0
  58. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js +1 -0
  59. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js +1 -0
  60. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js +1 -0
  61. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js +1 -0
  62. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +1 -0
  63. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js +1 -0
  64. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +1 -0
  65. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js +1 -0
  66. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js +1 -0
  67. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js +1 -0
  68. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +1 -0
  69. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js +1 -0
  70. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js +1 -0
  71. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js +1 -0
  72. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js +1 -0
  73. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js +1 -0
  74. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +1 -0
  75. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js +1 -0
  76. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js +1 -0
  77. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js +1 -0
  78. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +1 -0
  79. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js +1 -0
  80. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +1 -0
  81. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +1 -0
  82. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +1 -0
  83. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js +1 -0
  84. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js +1 -0
  85. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +1 -0
  86. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +1 -0
  87. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +1 -0
  88. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +1 -0
  89. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +1 -0
  90. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +1 -0
  91. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +1 -0
  92. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +1 -0
  93. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +1 -0
  94. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js +1 -0
  95. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +1 -0
  96. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +1 -0
  97. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +1 -0
  98. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +1 -0
  99. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +1 -0
  100. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +1 -0
  101. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +1 -0
  102. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +1 -0
  103. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +1 -0
  104. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +1 -0
  105. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js +1 -0
  106. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +1 -0
  107. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js +1 -0
  108. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js +1 -0
  109. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +1 -0
  110. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js +1 -0
  111. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +1 -0
  112. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js +1 -0
  113. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js +1 -0
  114. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js +1 -0
  115. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js +1 -0
  116. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js +1 -0
  117. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js +1 -0
  118. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js +1 -0
  119. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js +1 -0
  120. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +1 -0
  121. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +1 -0
  122. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js +1 -0
  123. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +1 -0
  124. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js +1 -0
  125. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js +1 -0
  126. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js +1 -0
  127. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +1 -0
  128. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js +1 -0
  129. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +1 -0
  130. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +1 -0
  131. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js +1 -0
  132. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js +1 -0
  133. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js +1 -0
  134. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js +1 -0
  135. package/dist/cjs/node_modules/.pnpm/pure-react-carousel@1.32.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/pure-react-carousel/dist/react-carousel.es.css +1 -0
  136. package/dist/cjs/styles.css +1 -1
  137. package/dist/cjs/translations/am.json.js +1 -0
  138. package/dist/cjs/utils/data.js +1 -1
  139. package/dist/esm/_virtual/_commonjsHelpers.js +8 -0
  140. package/dist/esm/_virtual/_nodeUtil.js +4 -0
  141. package/dist/esm/_virtual/isBuffer.js +4 -0
  142. package/dist/esm/_virtual/isEqual.js +7 -0
  143. package/dist/esm/embeddable/big-number-trend/index.js +36 -36
  144. package/dist/esm/embeddable/body/index.js +141 -95
  145. package/dist/esm/embeddable/chart/Bar.js +390 -382
  146. package/dist/esm/embeddable/chart/Line.js +101 -102
  147. package/dist/esm/embeddable/chart/colors/ColorProvider.js +42 -39
  148. package/dist/esm/embeddable/chart/colors/ManualColors.js +40 -29
  149. package/dist/esm/embeddable/chart/colors/SystemColors.js +28 -17
  150. package/dist/esm/embeddable/chart/data/Bar.js +112 -114
  151. package/dist/esm/embeddable/chart/data/Line.js +126 -126
  152. package/dist/esm/embeddable/chart/data/Utils.js +32 -26
  153. package/dist/esm/embeddable/d3Map/BaseLayer.js +3 -8
  154. package/dist/esm/embeddable/d3Map/DataLayer.js +2 -9
  155. package/dist/esm/embeddable/d3Map/FlowLayer.js +12 -15
  156. package/dist/esm/embeddable/data/DataContext.js +1 -0
  157. package/dist/esm/embeddable/featuredtabs/index.js +128 -124
  158. package/dist/esm/embeddable/filter/index.js +207 -206
  159. package/dist/esm/embeddable/filtered-posts/NoData.js +31 -0
  160. package/dist/esm/embeddable/filtered-posts/index.js +123 -0
  161. package/dist/esm/embeddable/index.js +34 -31
  162. package/dist/esm/embeddable/inlinelist/index.js +82 -70
  163. package/dist/esm/embeddable/map/MapDataFrame.js +17 -14
  164. package/dist/esm/embeddable/map/index.js +180 -169
  165. package/dist/esm/embeddable/map/map.js +520 -437
  166. package/dist/esm/embeddable/new-time-line/index.js +9 -8
  167. package/dist/esm/embeddable/new-time-line/timeline.js +3 -2
  168. package/dist/esm/embeddable/posts-filter/PostsFilterDropdown.js +190 -0
  169. package/dist/esm/embeddable/posts-filter/index.js +215 -0
  170. package/dist/esm/embeddable/posts-filters-reset-button/index.js +33 -0
  171. package/dist/esm/embeddable/posts-pagination/index.js +69 -0
  172. package/dist/esm/embeddable/postscarousel/index.js +12 -11
  173. package/dist/esm/embeddable/reducers/data-api.js +40 -25
  174. package/dist/esm/embeddable/reducers/data.js +180 -99
  175. package/dist/esm/embeddable/showcase/index.js +1 -1
  176. package/dist/esm/embeddable/time-line/desktop.js +3 -2
  177. package/dist/esm/embeddable/time-line/mobile.js +140 -162
  178. package/dist/esm/embeddable/vertical-featuredtabs/index.js +177 -168
  179. package/dist/esm/layout/ClassicHeader.js +62 -62
  180. package/dist/esm/layout/CustomSemanticSearch.js +40 -102
  181. package/dist/esm/layout/Header.js +152 -144
  182. package/dist/esm/layout/Layout.js +4 -3
  183. package/dist/esm/layout/SearchControl.js +130 -113
  184. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js +12 -0
  185. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +22 -0
  186. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +22 -0
  187. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +12 -0
  188. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +22 -0
  189. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js +12 -0
  190. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js +12 -0
  191. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js +18 -0
  192. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js +20 -0
  193. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +11 -0
  194. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js +11 -0
  195. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js +12 -0
  196. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js +16 -0
  197. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js +26 -0
  198. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js +14 -0
  199. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js +15 -0
  200. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +17 -0
  201. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js +16 -0
  202. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +16 -0
  203. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js +15 -0
  204. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js +15 -0
  205. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js +38 -0
  206. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +22 -0
  207. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js +17 -0
  208. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js +20 -0
  209. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js +14 -0
  210. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js +14 -0
  211. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js +12 -0
  212. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +11 -0
  213. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js +46 -0
  214. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js +51 -0
  215. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js +42 -0
  216. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +11 -0
  217. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js +16 -0
  218. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +15 -0
  219. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +16 -0
  220. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +21 -0
  221. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js +16 -0
  222. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js +33 -0
  223. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +12 -0
  224. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +14 -0
  225. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +13 -0
  226. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +19 -0
  227. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +15 -0
  228. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +15 -0
  229. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +14 -0
  230. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +13 -0
  231. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +17 -0
  232. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js +14 -0
  233. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +12 -0
  234. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +18 -0
  235. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +15 -0
  236. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +14 -0
  237. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +15 -0
  238. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +20 -0
  239. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +15 -0
  240. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +14 -0
  241. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +14 -0
  242. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +15 -0
  243. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js +15 -0
  244. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +11 -0
  245. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js +11 -0
  246. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js +19 -0
  247. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +13 -0
  248. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js +14 -0
  249. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +11 -0
  250. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js +13 -0
  251. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js +12 -0
  252. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js +15 -0
  253. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js +14 -0
  254. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js +13 -0
  255. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js +12 -0
  256. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js +12 -0
  257. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js +23 -0
  258. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +23 -0
  259. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +12 -0
  260. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js +16 -0
  261. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +10 -0
  262. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js +15 -0
  263. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js +14 -0
  264. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js +14 -0
  265. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +18 -0
  266. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js +13 -0
  267. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +13 -0
  268. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +12 -0
  269. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js +13 -0
  270. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js +16 -0
  271. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js +12 -0
  272. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js +12 -0
  273. package/dist/esm/node_modules/.pnpm/pure-react-carousel@1.32.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/pure-react-carousel/dist/react-carousel.es.css +1 -0
  274. package/dist/esm/styles.css +1 -1
  275. package/dist/esm/translations/am.json.js +46 -0
  276. package/dist/esm/utils/data.js +4 -9
  277. package/dist/types/dvz-ui/src/countries.d.ts +7 -0
  278. package/dist/types/dvz-ui/src/embeddable/chart/colors/ManualColors.d.ts +1 -1
  279. package/dist/types/dvz-ui/src/embeddable/chart/colors/SystemColors.d.ts +1 -1
  280. package/dist/types/dvz-ui/src/embeddable/data/DataContext.d.ts +1 -0
  281. package/dist/types/dvz-ui/src/embeddable/featuredtabs/index.d.ts +1 -0
  282. package/dist/types/dvz-ui/src/embeddable/filtered-posts/NoData.d.ts +7 -0
  283. package/dist/types/dvz-ui/src/embeddable/filtered-posts/index.d.ts +21 -0
  284. package/dist/types/dvz-ui/src/embeddable/inlinelist/index.d.ts +2 -0
  285. package/dist/types/dvz-ui/src/embeddable/map/MapDataFrame.d.ts +1 -6
  286. package/dist/types/dvz-ui/src/embeddable/map/map.d.ts +1 -0
  287. package/dist/types/dvz-ui/src/embeddable/posts-filter/PostsFilterDropdown.d.ts +21 -0
  288. package/dist/types/dvz-ui/src/embeddable/posts-filter/index.d.ts +25 -0
  289. package/dist/types/dvz-ui/src/embeddable/posts-filters-reset-button/index.d.ts +3 -0
  290. package/dist/types/dvz-ui/src/embeddable/posts-pagination/index.d.ts +10 -0
  291. package/dist/types/dvz-ui/src/embeddable/reducers/data-api.d.ts +11 -0
  292. package/dist/types/dvz-ui/src/embeddable/reducers/post-reducer.d.ts +158 -0
  293. package/dist/types/dvz-ui/src/embeddable/vertical-featuredtabs/index.d.ts +1 -0
  294. package/dist/types/dvz-ui/src/layout/Header.d.ts +2 -2
  295. package/dist/types/dvz-ui/src/translations/am.json.d.ts +39 -0
  296. package/package.json +3 -3
  297. package/dist/cjs/embeddable/posts-with-filters/DropDownFilter.js +0 -1
  298. package/dist/cjs/embeddable/posts-with-filters/Post.js +0 -1
  299. package/dist/cjs/embeddable/posts-with-filters/index.js +0 -1
  300. package/dist/esm/embeddable/posts-with-filters/DropDownFilter.js +0 -25
  301. package/dist/esm/embeddable/posts-with-filters/Post.js +0 -51
  302. package/dist/esm/embeddable/posts-with-filters/index.js +0 -206
  303. package/dist/types/dvz-ui/src/embeddable/posts-with-filters/DropDownFilter.d.ts +0 -4
  304. package/dist/types/dvz-ui/src/embeddable/posts-with-filters/Post.d.ts +0 -5
  305. package/dist/types/dvz-ui/src/embeddable/posts-with-filters/index.d.ts +0 -21
  306. /package/dist/cjs/{utils/countries.js → countries.js} +0 -0
  307. /package/dist/cjs/embeddable/{posts-with-filters → filtered-posts}/utils.js +0 -0
  308. /package/dist/esm/{utils/countries.js → countries.js} +0 -0
  309. /package/dist/esm/embeddable/{posts-with-filters → filtered-posts}/utils.js +0 -0
  310. /package/dist/types/dvz-ui/src/embeddable/{posts-with-filters → filtered-posts}/utils.d.ts +0 -0
@@ -1,132 +1,132 @@
1
- import { jsx as s, jsxs as p, Fragment as ye } from "react/jsx-runtime";
2
- import { useState as _, useEffect as At, Fragment as Te } from "react";
3
- import St from "./Tooltip.js";
4
- import { ResponsiveBar as jt } from "@nivo/bar";
5
- import { injectIntl as Rt } from "react-intl";
6
- import { useTheme as Pt } from "@nivo/theming";
7
- import { line as _e } from "d3-shape";
8
- import Ae from "./LineLayer.js";
9
- import Se from "papaparse";
10
- import Yt from "../../layout/FlexWrapDetector.js";
11
- import xe from "../../utils/deviceType.js";
12
- const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q = "_Color", Ct = ({
13
- editing: y,
14
- legends: Y,
15
- marginLeft: Re,
16
- marginTop: pe,
17
- marginRight: Pe,
18
- marginBottom: be,
19
- options: o,
1
+ import { jsx as c, jsxs as p, Fragment as pe } from "react/jsx-runtime";
2
+ import { useState as S, useEffect as Ht, Fragment as He } from "react";
3
+ import Wt from "./Tooltip.js";
4
+ import { ResponsiveBar as Tt } from "@nivo/bar";
5
+ import { injectIntl as _t } from "react-intl";
6
+ import { useTheme as St } from "@nivo/theming";
7
+ import { line as We } from "d3-shape";
8
+ import Te from "./LineLayer.js";
9
+ import be from "papaparse";
10
+ import At from "../../layout/FlexWrapDetector.js";
11
+ import ge from "../../utils/deviceType.js";
12
+ const jt = "middle", Pt = "top", J = "#66676d", _e = "#dddddd", Rt = "none", U = "_Color", Yt = ({
13
+ editing: x,
14
+ legends: R,
15
+ marginLeft: Se,
16
+ marginTop: q,
17
+ marginRight: Ae,
18
+ marginBottom: Q,
19
+ options: u,
20
20
  intl: g,
21
21
  format: b,
22
- colors: V,
23
- groupMode: M,
24
- height: Ye,
22
+ colors: $,
23
+ groupMode: F,
24
+ height: je,
25
25
  showLegends: G,
26
- legendPosition: w,
27
- tickRotation: B,
26
+ legendPosition: D,
27
+ tickRotation: E,
28
28
  offsetText: ee,
29
29
  tickColor: te,
30
- layout: f,
30
+ layout: o,
31
31
  reverse: H,
32
- offsetY: Ke,
33
- csvLineLayerData: ge,
32
+ offsetY: Pe,
33
+ csvLineLayerData: ve,
34
34
  tooltip: ae,
35
- lineLayerEnabled: ve,
36
- overlays: K,
37
- maxValue: A,
38
- valueScale: Xe,
35
+ lineLayerEnabled: ne,
36
+ overlays: W,
37
+ maxValue: re,
38
+ valueScale: Re,
39
39
  colorGenerator: v,
40
40
  legendLabel: Ne,
41
- overrideTickColor: Ze,
42
- fixedMinValue: ne,
43
- fixedMaxValue: S,
44
- barPadding: Ce,
41
+ overrideTickColor: Ye,
42
+ fixedMinValue: le,
43
+ fixedMaxValue: se,
44
+ barPadding: Ke,
45
45
  barLabelPosition: Ie,
46
- barInnerPadding: Je,
47
- tooltipEnabled: Ue,
48
- xLabelColor: D,
49
- barLabelColor: X,
50
- legendCheckBack: N,
51
- legendLabelBack: le,
52
- legendLabelColor: re,
53
- highlightXAxisLine: qe,
54
- showTickLine: j,
55
- showRightAxis: Qe,
56
- offsetRight: Ge,
46
+ barInnerPadding: Xe,
47
+ tooltipEnabled: Ce,
48
+ xLabelColor: w,
49
+ barLabelColor: Y,
50
+ legendCheckBack: I,
51
+ legendLabelBack: ie,
52
+ legendLabelColor: ce,
53
+ highlightXAxisLine: Ze,
54
+ showTickLine: A,
55
+ showRightAxis: Je,
56
+ offsetRight: Ue,
57
57
  offsetBottom: Le,
58
- confidenceIntervals: ie,
59
- showGroupTotal: et,
58
+ confidenceIntervals: de,
59
+ showGroupTotal: qe,
60
60
  groupTotalLabel: ke,
61
- groupTotalFormat: we,
62
- groupTotalMeasure: De,
61
+ groupTotalFormat: De,
62
+ groupTotalMeasure: we,
63
63
  groupTotalOffset: z,
64
- groupTotalFixedPosition: Z,
65
- tooltipEnableMarkdown: tt,
66
- xAxisTickValues: at,
67
- yAxisTickValues: nt,
68
- mobileCustomization: lt,
69
- minMaxClamp: rt,
70
- reverseLegend: it,
71
- enableGridY: st,
72
- enableGridX: ct,
73
- customAxisFormat: F,
74
- previewMode: $,
75
- showLegendsInColumns: dt = !1,
76
- numberOfLegendColumns: ht = 4
64
+ groupTotalFixedPosition: K,
65
+ tooltipEnableMarkdown: Qe,
66
+ xAxisTickValues: Ge,
67
+ yAxisTickValues: et,
68
+ mobileCustomization: tt,
69
+ minMaxClamp: Kt,
70
+ reverseLegend: at,
71
+ enableGridY: nt,
72
+ enableGridX: rt,
73
+ customAxisFormat: M,
74
+ previewMode: B,
75
+ showLegendsInColumns: lt = !1,
76
+ numberOfLegendColumns: st = 4
77
77
  }) => {
78
- var We;
79
- const mt = ["mobile", "tablet", "midTablet"].includes(
80
- xe()
81
- ), C = ["tablet", "midTablet"].includes(xe()), J = xe() === "mobile", se = 30, ce = 15, h = JSON.parse(decodeURIComponent(lt)), Fe = mt && ((h == null ? void 0 : h.showCustomization) ?? !1), W = Fe && $ !== "Desktop", T = !y && Fe, de = () => X === "null" || X === null || !X ? "#000000" : X, [I, ot] = _([]), { colorBy: R } = V, Oe = {};
82
- K.forEach((e, t) => {
78
+ var $e;
79
+ const it = ["mobile", "tablet", "midTablet"].includes(
80
+ ge()
81
+ ), X = ["tablet", "midTablet"].includes(ge()), C = ge() === "mobile", he = 30, me = 15, m = JSON.parse(decodeURIComponent(tt)), Me = it && ((m == null ? void 0 : m.showCustomization) ?? !1), T = Me && B !== "Desktop", _ = !x && Me, ue = () => Y === "null" || Y === null || !Y ? "#000000" : Y, [L, ct] = S([]), { colorBy: j } = $, Oe = {};
82
+ W.forEach((e, t) => {
83
83
  Oe[t] = !0;
84
84
  });
85
- const [L, ut] = _(Oe), [Me, ft] = _(50), [yt, xt] = _(pe), [Jt, Be] = _(0), [ze, pt] = _(be), P = ((e, t, c, n, r) => {
86
- let i = [];
87
- return e.data && (i = t.colorBy === "index" ? e.data.map((l) => {
88
- let a, m = !0;
89
- return c.indexOf(l[e.indexBy]) > -1 ? (m = !1, a = n) : a = l[Q] ? l[Q] : r.getColor(l.id, l), {
90
- enabled: m,
85
+ const [N, dt] = S(Oe), [Fe, ht] = S(50), [Xt, mt] = S(q), [Ct, Ee] = S(0), [ut, ft] = S(Q), P = ((e, t, i, n, l) => {
86
+ let s = [];
87
+ return e.data && (s = t.colorBy === "index" ? e.data.map((r) => {
88
+ let a, h = !0;
89
+ return i.indexOf(r[e.indexBy]) > -1 ? (h = !1, a = n) : a = r[U] ? r[U] : l.getColor(r.id, r), {
90
+ enabled: h,
91
91
  color: a,
92
- id: l[e.indexBy],
93
- label: l[e.indexBy]
92
+ id: r[e.indexBy],
93
+ label: r[e.indexBy]
94
94
  };
95
- }) : e.keys.map((l) => {
96
- let a, m = !0;
97
- return c.indexOf(l) > -1 ? (m = !1, a = n) : a = r.getColorByKey(l), {
98
- enabled: m,
95
+ }) : e.keys.map((r) => {
96
+ let a, h = !0;
97
+ return i.indexOf(r) > -1 ? (h = !1, a = n) : a = l.getColorByKey(r), {
98
+ enabled: h,
99
99
  color: a,
100
- id: l,
101
- label: l
100
+ id: r,
101
+ label: r
102
102
  };
103
- })), i;
103
+ })), s;
104
104
  })(
105
- o,
106
- V,
107
- I,
108
- Zt,
105
+ u,
106
+ $,
107
+ L,
108
+ Rt,
109
109
  v
110
- ), $e = () => (it && P.reverse(), /* @__PURE__ */ p(ye, { children: [
110
+ ), ze = () => (at && P.reverse(), /* @__PURE__ */ p(pe, { children: [
111
111
  G && P.map((e) => /* @__PURE__ */ p(
112
112
  "div",
113
113
  {
114
114
  className: `legend item ${e.enabled ? "" : "ignore"}`,
115
- onClick: () => Ft(e.id),
115
+ onClick: () => Lt(e.id),
116
116
  children: [
117
- N && /* @__PURE__ */ s(
117
+ I && /* @__PURE__ */ c(
118
118
  "input",
119
119
  {
120
120
  className: e.enabled ? "" : "ignore",
121
121
  type: "checkbox",
122
122
  checked: e.enabled,
123
123
  style: {
124
- backgroundColor: N ? R === "values" ? te : e.color : "none",
124
+ backgroundColor: I ? j === "values" ? te : e.color : "none",
125
125
  color: "#000"
126
126
  }
127
127
  }
128
128
  ),
129
- !N && /* @__PURE__ */ s(
129
+ !I && /* @__PURE__ */ c(
130
130
  "input",
131
131
  {
132
132
  type: "checkbox",
@@ -136,31 +136,31 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
136
136
  }
137
137
  }
138
138
  ),
139
- N && /* @__PURE__ */ s(
139
+ I && /* @__PURE__ */ c(
140
140
  "span",
141
141
  {
142
142
  className: "checkmark-with-bg",
143
143
  style: { backgroundColor: e.color }
144
144
  }
145
145
  ),
146
- !N && /* @__PURE__ */ s("span", { className: "checkmark" }),
147
- le && /* @__PURE__ */ s(
146
+ !I && /* @__PURE__ */ c("span", { className: "checkmark" }),
147
+ ie && /* @__PURE__ */ c(
148
148
  "label",
149
149
  {
150
150
  className: e.enabled ? "" : "ignore",
151
151
  style: {
152
- backgroundColor: R === "values" ? te : e.color,
153
- color: re
152
+ backgroundColor: j === "values" ? te : e.color,
153
+ color: ce
154
154
  },
155
155
  children: e.label
156
156
  }
157
157
  ),
158
- !le && /* @__PURE__ */ s(
158
+ !ie && /* @__PURE__ */ c(
159
159
  "label",
160
160
  {
161
161
  className: e.enabled ? "" : "ignore",
162
162
  style: {
163
- color: re
163
+ color: ce
164
164
  },
165
165
  children: e.label
166
166
  }
@@ -168,8 +168,8 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
168
168
  ]
169
169
  }
170
170
  )),
171
- R === "values" && /* @__PURE__ */ p("div", { className: "legend item", children: [
172
- /* @__PURE__ */ s(
171
+ j === "values" && /* @__PURE__ */ p("div", { className: "legend item", children: [
172
+ /* @__PURE__ */ c(
173
173
  "label",
174
174
  {
175
175
  className: "range min",
@@ -181,7 +181,7 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
181
181
  }
182
182
  }
183
183
  ),
184
- /* @__PURE__ */ s("label", { children: g.formatNumber(
184
+ /* @__PURE__ */ c("label", { children: g.formatNumber(
185
185
  b.style === "percent" ? v.minValue / 100 : v.minValue,
186
186
  {
187
187
  ...b,
@@ -189,8 +189,8 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
189
189
  }
190
190
  ) })
191
191
  ] }),
192
- R === "values" && /* @__PURE__ */ p("div", { className: "legend item", children: [
193
- /* @__PURE__ */ s(
192
+ j === "values" && /* @__PURE__ */ p("div", { className: "legend item", children: [
193
+ /* @__PURE__ */ c(
194
194
  "label",
195
195
  {
196
196
  className: "range max",
@@ -203,7 +203,7 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
203
203
  children: " "
204
204
  }
205
205
  ),
206
- /* @__PURE__ */ s("label", { children: g.formatNumber(
206
+ /* @__PURE__ */ c("label", { children: g.formatNumber(
207
207
  b.style === "percent" ? v.maxValue / 100 : v.maxValue,
208
208
  {
209
209
  ...b,
@@ -211,90 +211,90 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
211
211
  }
212
212
  ) })
213
213
  ] }),
214
- G && ve && K.map((e, t) => /* @__PURE__ */ p("div", { className: "legend item", onClick: () => Ot(t), children: [
215
- /* @__PURE__ */ s(
214
+ G && ne && W.map((e, t) => /* @__PURE__ */ p("div", { className: "legend item", onClick: () => kt(t), children: [
215
+ /* @__PURE__ */ c(
216
216
  "input",
217
217
  {
218
- className: N && L[t] ? "" : "ignore",
218
+ className: I && N[t] ? "" : "ignore",
219
219
  type: "checkbox",
220
- checked: L[t],
220
+ checked: N[t],
221
221
  style: {
222
- backgroundColor: L[t] && N === !0 ? e.lineColor : "none",
222
+ backgroundColor: N[t] && I === !0 ? e.lineColor : "none",
223
223
  color: "#000"
224
224
  }
225
225
  }
226
226
  ),
227
- /* @__PURE__ */ s(
227
+ /* @__PURE__ */ c(
228
228
  "span",
229
229
  {
230
- className: N ? "checkmark-with-bg" : "checkmark",
230
+ className: I ? "checkmark-with-bg" : "checkmark",
231
231
  style: {
232
- backgroundColor: L[t] && N === !0 ? e.lineColor : "none"
232
+ backgroundColor: N[t] && I === !0 ? e.lineColor : "none"
233
233
  }
234
234
  }
235
235
  ),
236
- /* @__PURE__ */ s(
236
+ /* @__PURE__ */ c(
237
237
  "label",
238
238
  {
239
- className: L[t] ? "" : "ignore",
239
+ className: N[t] ? "" : "ignore",
240
240
  style: {
241
- backgroundColor: L[t] && le === !0 ? e.lineColor : "none",
242
- color: re
241
+ backgroundColor: N[t] && ie === !0 ? e.lineColor : "none",
242
+ color: ce
243
243
  },
244
244
  children: e.title
245
245
  }
246
246
  )
247
247
  ] }))
248
248
  ] }));
249
- At(() => {
249
+ Ht(() => {
250
250
  (() => {
251
- const c = 5 * Math.max(P.length - 5, 0);
252
- ft(c);
251
+ const i = 5 * Math.max(P.length - 5, 0);
252
+ ht(i);
253
253
  })();
254
254
  }, [P]);
255
- const bt = {
256
- bottom: `-${Me}px`
257
- }, gt = {
258
- bottom: `-${Me}px`,
255
+ const ot = {
256
+ bottom: `-${Fe}px`
257
+ }, xt = {
258
+ bottom: `-${Fe}px`,
259
259
  gap: "0px"
260
260
  // top: "0px",
261
- }, vt = (e) => he(e, "1 0", je, "Y"), Nt = (e) => he(e, "4 4", q, "X"), It = (e) => he(e, "1 0", je, "X"), Lt = (e) => {
262
- const t = P.find((c) => c.id === e.value);
261
+ }, yt = (e) => fe(e, "1 0", _e, "Y"), pt = (e) => fe(e, "4 4", J, "X"), bt = (e) => fe(e, "1 0", _e, "X"), gt = (e) => {
262
+ const t = P.find((i) => i.id === e.value);
263
263
  return t ? t.color : "#FFFFFF";
264
- }, kt = (e) => {
265
- const { yScale: t, bars: c } = e;
266
- return /* @__PURE__ */ s(Te, { children: c.filter((n) => n.data.value != null).map((n) => {
267
- let r = n.data.indexValue;
268
- o.dimensionsMetadata && o.dimensionsMetadata.size > 1 && (r = n.data.id);
269
- const i = ie.filter(
270
- (l) => l.serieLabel == r
264
+ }, vt = (e) => {
265
+ const { yScale: t, bars: i } = e;
266
+ return /* @__PURE__ */ c(He, { children: i.filter((n) => n.data.value != null).map((n) => {
267
+ let l = n.data.indexValue;
268
+ u.dimensionsMetadata && u.dimensionsMetadata.size > 1 && (l = n.data.id);
269
+ const s = de.filter(
270
+ (r) => r.serieLabel == l
271
271
  )[0];
272
- if (i && i.low && i.high) {
273
- const l = t(parseFloat(i.low)), a = t(parseFloat(i.high));
272
+ if (s && s.low && s.high) {
273
+ const r = t(parseFloat(s.low)), a = t(parseFloat(s.high));
274
274
  return /* @__PURE__ */ p("g", { children: [
275
- /* @__PURE__ */ s(
275
+ /* @__PURE__ */ c(
276
276
  "line",
277
277
  {
278
- y1: l,
278
+ y1: r,
279
279
  y2: a,
280
280
  x1: n.x + n.width / 2,
281
281
  x2: n.x + n.width / 2,
282
282
  strokeWidth: 1,
283
- stroke: q
283
+ stroke: J
284
284
  }
285
285
  ),
286
- /* @__PURE__ */ s(
286
+ /* @__PURE__ */ c(
287
287
  "line",
288
288
  {
289
- y1: l,
290
- y2: l,
289
+ y1: r,
290
+ y2: r,
291
291
  x1: n.x + n.width / 2 - 3,
292
292
  x2: n.x + n.width / 2 + 3,
293
293
  strokeWidth: 1,
294
- stroke: q
294
+ stroke: J
295
295
  }
296
296
  ),
297
- /* @__PURE__ */ s(
297
+ /* @__PURE__ */ c(
298
298
  "line",
299
299
  {
300
300
  y1: a,
@@ -302,43 +302,43 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
302
302
  x1: n.x + n.width / 2 - 3,
303
303
  x2: n.x + n.width / 2 + 3,
304
304
  strokeWidth: 1,
305
- stroke: q
305
+ stroke: J
306
306
  }
307
307
  )
308
308
  ] });
309
309
  }
310
310
  }) });
311
- }, he = (e, t, c, n) => {
312
- const { yScale: r, innerWidth: i, innerHeight: l } = e;
313
- let a, m;
314
- return n == "X" ? (a = [0, i], m = _e().x((u, E) => E === 0 ? -10 : u).y(() => r(0))) : (a = [0, l], m = _e().x(() => 0).y((u) => u)), /* @__PURE__ */ s(Te, { children: /* @__PURE__ */ s(
311
+ }, fe = (e, t, i, n) => {
312
+ const { yScale: l, innerWidth: s, innerHeight: r } = e;
313
+ let a, h;
314
+ return n == "X" ? (a = [0, s], h = We().x((f, V) => V === 0 ? -10 : f).y(() => l(0))) : (a = [0, r], h = We().x(() => 0).y((f) => f)), /* @__PURE__ */ c(He, { children: /* @__PURE__ */ c(
315
315
  "path",
316
316
  {
317
- d: m(a),
317
+ d: h(a),
318
318
  fill: "none",
319
- stroke: c,
319
+ stroke: i,
320
320
  style: { pointerEvents: "none", strokeDasharray: t }
321
321
  }
322
322
  ) });
323
- }, O = (e, t) => I ? (V.colorBy === "index" || V.colorBy === "id" || V.colorBy === "values") && !t ? e.filter((c) => I.indexOf(c[o.indexBy]) === -1) : e ? e.filter((c) => I.indexOf(c) === -1) : [] : e, wt = (e) => {
324
- const t = Pt();
323
+ }, O = (e, t) => L ? ($.colorBy === "index" || $.colorBy === "id" || $.colorBy === "values") && !t ? e.filter((i) => L.indexOf(i[u.indexBy]) === -1) : e ? e.filter((i) => L.indexOf(i) === -1) : [] : e, Nt = (e) => {
324
+ const t = St();
325
325
  if (!e.value) return "";
326
- const c = Object.assign({}, e);
327
- (T || W) && fe.includes(String(c.value)) && (c.value = "");
326
+ const i = Object.assign({}, e);
327
+ (_ || T) && ye.includes(String(i.value)) && (i.value = "");
328
328
  let n;
329
- Ze ? n = te : n = Lt(e);
330
- let r = [], i = "";
331
- if (W || T) {
332
- const a = String(c.value).split(" ");
333
- let m = 25;
334
- y && $ === "Mobile" || J && !y ? m = (h == null ? void 0 : h.mobileMaxTickLength) ?? 25 : y && $ === "Tablet" || C && !y ? m = (h == null ? void 0 : h.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !y && (m = 15), a.forEach((u) => {
335
- i.length + String(u).length <= m ? i += (i ? " " : "") + u : (r.push(i), i = u);
336
- }), i && r.push(i);
329
+ Ye ? n = te : n = gt(e);
330
+ let l = [], s = "";
331
+ if (T || _) {
332
+ const a = String(i.value).split(" ");
333
+ let h = 25;
334
+ x && B === "Mobile" || C && !x ? h = (m == null ? void 0 : m.mobileMaxTickLength) ?? 25 : x && B === "Tablet" || X && !x ? h = (m == null ? void 0 : m.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !x && (h = 15), a.forEach((f) => {
335
+ s.length + String(f).length <= h ? s += (s ? " " : "") + f : (l.push(s), s = f);
336
+ }), s && l.push(s);
337
337
  } else
338
- r = [c.value];
339
- let l = 12;
340
- return J ? l = (h == null ? void 0 : h.mobileYAxisLineHeight) ?? 12 : C && (l = (h == null ? void 0 : h.tabletYAxisLineHeight) ?? 12), B > 0 && B < 180 ? /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
341
- j && /* @__PURE__ */ s(
338
+ l = [i.value];
339
+ let r = 12;
340
+ return C ? r = (m == null ? void 0 : m.mobileYAxisLineHeight) ?? 12 : X && (r = (m == null ? void 0 : m.tabletYAxisLineHeight) ?? 12), E > 0 && E < 180 ? /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
341
+ A && /* @__PURE__ */ c(
342
342
  "line",
343
343
  {
344
344
  stroke: n,
@@ -347,25 +347,25 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
347
347
  y2: -12
348
348
  }
349
349
  ),
350
- /* @__PURE__ */ s("g", { transform: `translate(0, ${e.y + ee})`, children: r.map((a, m) => /* @__PURE__ */ s(
350
+ /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ee})`, children: l.map((a, h) => /* @__PURE__ */ c(
351
351
  "text",
352
352
  {
353
- transform: `rotate(${B})`,
353
+ transform: `rotate(${E})`,
354
354
  textAnchor: "start",
355
- y: typeof e.value == "number" ? 0 : m * l,
355
+ y: typeof e.value == "number" ? 0 : h * r,
356
356
  dominantBaseline: "middle",
357
357
  style: {
358
358
  ...t.axis.ticks.text,
359
- fill: D === "null" ? "black" : D,
359
+ fill: w === "null" ? "black" : w,
360
360
  fontSize: "12px",
361
- fontFamily: "Roboto"
361
+ fontFamily: "sans-serif"
362
362
  },
363
363
  children: a
364
364
  },
365
365
  a
366
366
  )) })
367
- ] }) : B > 180 && B < 360 ? /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
368
- j && /* @__PURE__ */ s(
367
+ ] }) : E > 180 && E < 360 ? /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
368
+ A && /* @__PURE__ */ c(
369
369
  "line",
370
370
  {
371
371
  stroke: n,
@@ -374,25 +374,25 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
374
374
  y2: -12
375
375
  }
376
376
  ),
377
- /* @__PURE__ */ s("g", { transform: `translate(0, ${e.y + ee})`, children: r.map((a, m) => /* @__PURE__ */ s(
377
+ /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ee})`, children: l.map((a, h) => /* @__PURE__ */ c(
378
378
  "text",
379
379
  {
380
- transform: `rotate(${B})`,
380
+ transform: `rotate(${E})`,
381
381
  textAnchor: "end",
382
- y: typeof e.value == "number" ? 0 : m * l,
382
+ y: typeof e.value == "number" ? 0 : h * r,
383
383
  dominantBaseline: "middle",
384
384
  style: {
385
385
  ...t.axis.ticks.text,
386
- fill: D === "null" ? "black" : D,
386
+ fill: w === "null" ? "black" : w,
387
387
  fontSize: "12px",
388
- fontFamily: "Roboto"
388
+ fontFamily: "sans-serif"
389
389
  },
390
390
  children: a
391
391
  },
392
- m
392
+ h
393
393
  )) })
394
394
  ] }) : /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
395
- j && /* @__PURE__ */ s(
395
+ A && /* @__PURE__ */ c(
396
396
  "line",
397
397
  {
398
398
  stroke: n,
@@ -401,30 +401,30 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
401
401
  y2: -12
402
402
  }
403
403
  ),
404
- /* @__PURE__ */ s("g", { transform: `translate(0, ${e.y + ee})`, children: r.map((a, m) => /* @__PURE__ */ s(
404
+ /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ee})`, children: l.map((a, h) => /* @__PURE__ */ c(
405
405
  "text",
406
406
  {
407
- transform: `rotate(${B})`,
407
+ transform: `rotate(${E})`,
408
408
  textAnchor: "middle",
409
- y: typeof e.value == "number" ? 0 : m * l,
409
+ y: typeof e.value == "number" ? 0 : h * r,
410
410
  dominantBaseline: "middle",
411
411
  style: {
412
412
  ...t.axis.ticks.text,
413
- fill: D === "null" ? "black" : D,
413
+ fill: w === "null" ? "black" : w,
414
414
  fontSize: "12px",
415
- fontFamily: "Roboto"
415
+ fontFamily: "sans-serif"
416
416
  },
417
417
  children: a
418
418
  },
419
- m
419
+ h
420
420
  )) })
421
421
  ] });
422
- }, Dt = (e) => {
423
- if (!e.value || (W || T) && fe.includes(String(e.value)))
422
+ }, It = (e) => {
423
+ if (!e.value || (T || _) && ye.includes(String(e.value)))
424
424
  return "";
425
425
  let t = e.value;
426
- if (f === "vertical") {
427
- const a = F || b;
426
+ if (o === "vertical") {
427
+ const a = M || b;
428
428
  t = g.formatNumber(
429
429
  a.style === "percent" ? t / 100 : t,
430
430
  {
@@ -432,234 +432,242 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
432
432
  }
433
433
  );
434
434
  }
435
- let c = 25;
436
- y && $ === "Mobile" || J && !y ? c = (h == null ? void 0 : h.mobileMaxTickLength) ?? 25 : y && $ === "Tablet" || C && !y ? c = (h == null ? void 0 : h.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !y && (c = 15);
437
- const n = typeof t == "string" ? t.split(" ") : [t], r = [];
438
- let i = "";
435
+ let i = 25;
436
+ x && B === "Mobile" || C && !x ? i = (m == null ? void 0 : m.mobileMaxTickLength) ?? 25 : x && B === "Tablet" || X && !x ? i = (m == null ? void 0 : m.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !x && (i = 15);
437
+ const n = typeof t == "string" ? t.split(" ") : [t], l = [];
438
+ let s = "";
439
439
  n.forEach((a) => {
440
- i.length + String(a).length <= c ? i += (i ? " " : "") + a : (r.push(i), i = a);
441
- }), i && r.push(i);
442
- let l = 12;
443
- return y && $ === "Mobile" || J && !y ? l = (h == null ? void 0 : h.mobileYAxisLineHeight) ?? 12 : (y && $ === "Tablet" || C && !y) && (l = (h == null ? void 0 : h.tabletYAxisLineHeight) ?? 12), /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y})`, children: [
444
- /* @__PURE__ */ s("line", { x1: -5, x2: 0, y1: 0, y2: 0, stroke: "#000", strokeWidth: 1 }),
445
- r.map((a, m) => /* @__PURE__ */ s(
440
+ s.length + String(a).length <= i ? s += (s ? " " : "") + a : (l.push(s), s = a);
441
+ }), s && l.push(s);
442
+ let r = 12;
443
+ return x && B === "Mobile" || C && !x ? r = (m == null ? void 0 : m.mobileYAxisLineHeight) ?? 12 : (x && B === "Tablet" || X && !x) && (r = (m == null ? void 0 : m.tabletYAxisLineHeight) ?? 12), /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y})`, children: [
444
+ /* @__PURE__ */ c("line", { x1: -5, x2: 0, y1: 0, y2: 0, stroke: "#000", strokeWidth: 1 }),
445
+ l.map((a, h) => /* @__PURE__ */ c(
446
446
  "text",
447
447
  {
448
448
  x: -10,
449
- y: typeof t == "number" ? 0 : m * l,
449
+ y: typeof t == "number" ? 0 : h * r,
450
450
  textAnchor: "end",
451
451
  dominantBaseline: "middle",
452
452
  style: {
453
- fill: D === "null" ? "black" : D,
453
+ fill: w === "null" ? "black" : w,
454
454
  fontSize: "12px",
455
- fontFamily: "Roboto"
455
+ fontFamily: "sans-serif"
456
456
  },
457
457
  children: a
458
458
  },
459
459
  a
460
460
  ))
461
461
  ] });
462
- }, Ft = (e) => {
463
- const t = I.slice();
462
+ }, Lt = (e) => {
463
+ const t = L.slice();
464
464
  if (t.indexOf(e) > -1) {
465
- const c = t.indexOf(e);
466
- t.splice(c, 1);
465
+ const i = t.indexOf(e);
466
+ t.splice(i, 1);
467
467
  } else
468
468
  t.push(e);
469
- ot(t);
470
- }, Ot = (e) => {
471
- const t = Object.assign({}, L);
472
- t[e] = !t[e], ut(t);
473
- }, Mt = ({ bars: e }) => /* @__PURE__ */ s("g", { children: e.map((t) => {
474
- const { width: c, height: n, y: r, x: i, data: l } = t;
475
- if (f === "horizontal" && n <= ce || f === "vertical" && c <= se)
469
+ ct(t);
470
+ }, kt = (e) => {
471
+ const t = Object.assign({}, N);
472
+ t[e] = !t[e], dt(t);
473
+ }, Dt = ({ bars: e }) => /* @__PURE__ */ c("g", { children: e.map((t) => {
474
+ const { width: i, height: n, y: l, x: s, data: r } = t;
475
+ if (o === "horizontal" && n <= me || o === "vertical" && i <= he)
476
476
  return;
477
- const a = l.value ? g.formatNumber(
478
- b.style === "percent" ? l.value / 100 : l.value,
477
+ const a = r.value ? g.formatNumber(
478
+ b.style === "percent" ? r.value / 100 : r.value,
479
479
  b
480
- ) : "", m = a.length;
481
- let u, E;
482
- if (f === "vertical" && c >= se || f === "horizontal" && n >= ce)
483
- return f === "vertical" ? (u = r - 6, E = i + c / 2 - m * 3.5) : (u = r + n / 2 + 4, E = i + c + 5), /* @__PURE__ */ s(
480
+ ) : "", h = a.length;
481
+ let f, V;
482
+ if (o === "vertical" && i >= he || o === "horizontal" && n >= me)
483
+ return o === "vertical" ? (f = l - 6, V = s + i / 2 - h * 3.5) : (f = l + n / 2 + 4, V = s + i + 5), /* @__PURE__ */ c(
484
484
  "text",
485
485
  {
486
- y: u,
487
- x: E,
488
- style: { fill: de() },
486
+ y: f,
487
+ x: V,
488
+ style: { fill: ue() },
489
489
  children: `${a}`
490
490
  }
491
491
  );
492
- }) }), Bt = (e) => {
493
- const t = o.data.filter((n) => I.indexOf(n[o.indexBy]) == -1).map((n) => n[o.indexBy]), { bars: c } = e;
494
- return /* @__PURE__ */ s("g", { children: t.filter(
495
- (n) => c.filter((r) => r.data.indexValue == n).length > 0
492
+ }) }), wt = (e) => {
493
+ const t = u.data.filter((n) => L.indexOf(n[u.indexBy]) == -1).map((n) => n[u.indexBy]), { bars: i } = e;
494
+ return /* @__PURE__ */ c("g", { children: t.filter(
495
+ (n) => i.filter((l) => l.data.indexValue == n).length > 0
496
496
  ).map((n) => {
497
- var U;
498
- const r = c.filter((d) => d.data.indexValue == n);
499
- let i = "right", l = 0, a = 0;
500
- if (f == "horizontal")
501
- M === "stacked" ? (Z ? l = e.innerWidth - 20 : (l = r.map((d) => d.width).reduce((d, x) => d + x), H && (l = e.innerWidth - l)), a = e.yScale(n) + r[0].height / 2) : (Z ? l = e.innerWidth : (l = r.map((d) => d.width).reduce((d, x) => d > x ? d : x), H && (l = e.innerWidth - l)), a = e.yScale(n) + r.map((d) => d.height).reduce((d, x) => d + x) / 2), l = l + parseInt(z) + 5;
502
- else if (i = "middle", M === "stacked")
503
- l = e.xScale(n) + r[0].width / 2, Z ? a = a - parseInt(z) : H ? a = parseInt(z) + r.map((d) => d.height).reduce((d, x) => d + x) + 14 : a = e.innerHeight - parseInt(z) - r.map((d) => d.height).reduce((d, x) => d + x) - 5;
504
- else if (l = e.xScale(n) + r.map((d) => d.width).reduce((d, x) => d + x) / 2, H && (a = e.innerHeight), Z)
497
+ var Z;
498
+ const l = i.filter((d) => d.data.indexValue == n);
499
+ let s = "right", r = 0, a = 0;
500
+ if (o == "horizontal")
501
+ F === "stacked" ? (K ? r = e.innerWidth - 20 : (r = l.map((d) => d.width).reduce((d, y) => d + y), H && (r = e.innerWidth - r)), a = e.yScale(n) + l[0].height / 2) : (K ? r = e.innerWidth : (r = l.map((d) => d.width).reduce((d, y) => d > y ? d : y), H && (r = e.innerWidth - r)), a = e.yScale(n) + l.map((d) => d.height).reduce((d, y) => d + y) / 2), r = r + parseInt(z) + 5;
502
+ else if (s = "middle", F === "stacked")
503
+ r = e.xScale(n) + l[0].width / 2, K ? a = a - parseInt(z) : H ? a = parseInt(z) + l.map((d) => d.height).reduce((d, y) => d + y) + 14 : a = e.innerHeight - parseInt(z) - l.map((d) => d.height).reduce((d, y) => d + y) - 5;
504
+ else if (r = e.xScale(n) + l.map((d) => d.width).reduce((d, y) => d + y) / 2, H && (a = e.innerHeight), K)
505
505
  a = a - parseInt(z);
506
506
  else {
507
- if (r.length % 2 == 1) {
508
- const d = Math.floor(r.length / 2);
509
- a = r[d].height;
507
+ if (l.length % 2 == 1) {
508
+ const d = Math.floor(l.length / 2);
509
+ a = l[d].height;
510
510
  } else {
511
- const d = r.length / 2;
511
+ const d = l.length / 2;
512
512
  a = Math.max(
513
- r[d].height,
514
- r[d - 1].height
513
+ l[d].height,
514
+ l[d - 1].height
515
515
  );
516
516
  }
517
517
  H ? a = a + 14 + parseInt(z) : a = e.innerHeight - a - parseInt(z) - 5;
518
518
  }
519
- const m = o.data.filter(
520
- (d) => d[o.indexBy] === n
519
+ const h = u.data.filter(
520
+ (d) => d[u.indexBy] === n
521
521
  )[0];
522
- let u = m.parent_variables ? m.parent_variables[De] : m[De];
523
- const E = R !== "index" ? (U = I == null ? void 0 : I.map((d) => m[d])) == null ? void 0 : U.reduce((d, x) => d + x, 0) : 0;
524
- return u -= E, /* @__PURE__ */ s("text", { y: a, x: l, style: { fill: de() }, children: /* @__PURE__ */ p("tspan", { textAnchor: i, children: [
522
+ let f = h.parent_variables ? h.parent_variables[we] : h[we];
523
+ const V = j !== "index" ? (Z = L == null ? void 0 : L.map((d) => h[d])) == null ? void 0 : Z.reduce((d, y) => d + y, 0) : 0;
524
+ return f -= V, /* @__PURE__ */ c("text", { y: a, x: r, style: { fill: ue() }, children: /* @__PURE__ */ p("tspan", { textAnchor: s, children: [
525
525
  ke ? ke + " " : "",
526
526
  g.formatNumber(
527
- we.style === "percent" ? u / 100 : u,
528
- we
527
+ De.style === "percent" ? f / 100 : f,
528
+ De
529
529
  )
530
530
  ] }) });
531
531
  }) });
532
- }, zt = {
533
- top: yt,
534
- right: Pe,
535
- bottom: ze,
536
- left: Re
532
+ }, Mt = {
533
+ top: q,
534
+ right: Ae,
535
+ bottom: Q,
536
+ left: Se
537
537
  };
538
- let me, oe = 0, Ee = 0;
539
- ge && (me = Se.parse(ge, {
538
+ let oe;
539
+ ve && (oe = be.parse(ve, {
540
540
  header: !1,
541
541
  dynamicTyping: !0
542
- }), oe = Math.max(...me.data.map((e) => e[1])), Ee = Math.min(...me.data.map((e) => e[1])));
543
- const Ve = (() => {
542
+ }), Math.max(...oe.data.map((e) => e[1])), Math.min(...oe.data.map((e) => e[1])));
543
+ const Be = () => {
544
544
  const e = [];
545
- if (ie && (ie.forEach((t) => {
545
+ if (de && de.forEach((t) => {
546
546
  t.low && e.push(parseFloat(t.low)), t.high && e.push(parseFloat(t.high));
547
- }), o.data)) {
548
- const t = O(o.data, !1), c = O(o.keys, !0);
547
+ }), u.data) {
548
+ const t = O(u.data, !1), i = O(u.keys, !0);
549
549
  t.forEach((n) => {
550
- c.forEach((r) => {
551
- n[r] && e.push(n[r]);
550
+ i.forEach((l) => {
551
+ n[l] && e.push(n[l]);
552
552
  });
553
553
  });
554
554
  }
555
- return e;
556
- })(), $t = Math.max(...Ve), Et = Math.min(...Ve), Vt = () => {
557
- const e = O(o.data, !1), t = O(o.keys, !0);
558
- if (M === "stacked" && A !== "fixed" || A === "fixed" && S === null || // @ts-ignore
559
- S === "") {
560
- let c = t.length > 0 ? t : o.keys;
561
- return Math.max(
562
- Math.max(
563
- ...e.map((n) => c.map((r) => n[r] ? n[r] : 0)).map(
564
- (n) => n.reduce((r, i) => Math.max(r + i, r + 0))
565
- )
566
- ),
567
- oe
568
- ) * 1.1;
555
+ return ne && W && W.forEach((t, i) => {
556
+ if (N[i] !== !1)
557
+ if (t.app === "csv" && t.csvLineLayerData) {
558
+ const n = be.parse(t.csvLineLayerData, {
559
+ header: !1,
560
+ dynamicTyping: !0
561
+ });
562
+ n.data && n.data.filter((l) => l[1] !== null && typeof l[1] == "number").forEach((l) => e.push(l[1]));
563
+ } else t.measure[0] && u.data && u.data.forEach((n) => {
564
+ var s;
565
+ const l = (s = n.variables) == null ? void 0 : s[t.measure[0]];
566
+ l !== null && typeof l == "number" && e.push(l);
567
+ });
568
+ }), e;
569
+ }, Ot = () => {
570
+ const e = Be(), t = e.length > 0 ? Math.max(...e) : 0;
571
+ if (re === "fixed" && se !== null && se !== "")
572
+ return Number(se);
573
+ if (F === "stacked" && re !== "fixed") {
574
+ const i = O(u.data, !1), n = O(u.keys, !0);
575
+ let l = n.length > 0 ? n : u.keys;
576
+ const s = Math.max(
577
+ ...i.map((r) => l.map((a) => r[a] ? r[a] : 0)).map(
578
+ (r) => r.length > 0 ? r.reduce((a, h) => a + h, 0) : 0
579
+ )
580
+ );
581
+ return Math.max(s, t) * 1.1;
569
582
  }
570
- return A === "fixed" && S !== null && // @ts-ignore
571
- S !== "" ? S : Math.max(oe, $t) * 1.05;
572
- }, Ht = () => {
573
- const e = Math.min(Ee, Et);
574
- return A === "fixed" && ne !== null && // @ts-ignore
575
- ne !== "" ? ne : e > 0 ? e * 0.9 : e * 1.1;
576
- }, Wt = Vt(), Tt = Ht(), k = ["grid", "axes", "bars"];
577
- et && k.push(Bt), k.push(vt), k.push(It), ve && K && K.forEach((e, t) => {
578
- if (L[t] == !0 || L[t] == null) {
579
- const { csvLineLayerData: c, lineColor: n, tooltip: r } = e;
583
+ return t * 1.05;
584
+ }, Ft = () => {
585
+ const e = Be(), t = e.length > 0 ? Math.min(...e) : 0;
586
+ return re === "fixed" && le !== null && String(le) !== "" ? Number(le) : t > 0 ? t * 0.9 : t * 1.1;
587
+ }, Et = Number(Ot()), zt = Number(Ft()), Bt = Math.min(0, zt), Vt = Math.max(0, Et), k = ["grid", "axes", "bars"];
588
+ qe && k.push(wt), k.push(yt), k.push(bt), ne && W && W.forEach((e, t) => {
589
+ if (N[t] == !0 || N[t] == null) {
590
+ const { csvLineLayerData: i, lineColor: n, tooltip: l } = e;
580
591
  if (e.app == "csv") {
581
- const i = Se.parse(c, {
592
+ const s = be.parse(i, {
582
593
  header: !1,
583
594
  dynamicTyping: !0
584
595
  });
585
- if (i.data && i.data.filter((l) => l[1] !== null).length > 0) {
586
- i.data = i.data.filter((a) => a[1] !== null);
587
- const l = Ae(
588
- i,
596
+ if (s.data && s.data.filter((r) => r[1] !== null).length > 0) {
597
+ s.data = s.data.filter((a) => a[1] !== null);
598
+ const r = Te(
599
+ s,
589
600
  n,
590
- f,
591
- M,
592
- O(o.keys, !0),
593
- r,
601
+ o,
602
+ F,
603
+ O(u.keys, !0),
604
+ l,
594
605
  e.title,
595
606
  ""
596
607
  );
597
- k.push(l);
608
+ k.push(r);
598
609
  }
599
610
  } else if (e.measure[0]) {
600
- const i = {}, l = o.data.map((u) => [
601
- u[o.indexBy],
602
- u.variables[e.measure[0]]
603
- ]), a = o.metadata.measures ? o.metadata.measures.filter((u) => u.value == e.measure[0]) : [];
604
- i.data = l;
605
- const m = Ae(
606
- i,
611
+ const s = {}, r = u.data.map((f) => [
612
+ f[u.indexBy],
613
+ f.variables[e.measure[0]]
614
+ ]), a = u.metadata.measures ? u.metadata.measures.filter((f) => f.value == e.measure[0]) : [];
615
+ s.data = r;
616
+ const h = Te(
617
+ s,
607
618
  n,
608
- f,
609
- M,
610
- O(o.keys, !0),
611
- r,
619
+ o,
620
+ F,
621
+ O(u.keys, !0),
622
+ l,
612
623
  e.title,
613
624
  a.length > 0 ? a[0].label : ""
614
625
  );
615
- k.push(m);
626
+ k.push(h);
616
627
  }
617
628
  }
618
- }), Ie === Xt && k.push(Mt), qe && k.push(Nt), k.push(kt);
619
- let ue = parseInt(nt);
620
- const He = () => /* @__PURE__ */ s(ye, { children: G && Ne && /* @__PURE__ */ s("div", { className: "legend item", children: /* @__PURE__ */ s("label", { className: "legend-title", children: Ne }) }) }), fe = [];
621
- if (T || W) {
622
- ue = Number.parseInt(h.yAxisTickValues);
623
- const e = new Map(Object.entries(((We = h == null ? void 0 : h.labels) == null ? void 0 : We.xAxis) ?? {}));
624
- for (const [t, c] of e)
625
- c || fe.push(t);
629
+ }), Ie === Pt && k.push(Dt), Ze && k.push(pt), k.push(vt);
630
+ let xe = parseInt(et);
631
+ const Ve = () => /* @__PURE__ */ c(pe, { children: G && Ne && /* @__PURE__ */ c("div", { className: "legend item", children: /* @__PURE__ */ c("label", { className: "legend-title", children: Ne }) }) }), ye = [];
632
+ if (_ || T) {
633
+ xe = Number.parseInt(m.yAxisTickValues);
634
+ const e = new Map(Object.entries((($e = m == null ? void 0 : m.labels) == null ? void 0 : $e.xAxis) ?? {}));
635
+ for (const [t, i] of e)
636
+ i || ye.push(t);
626
637
  }
627
- let _t = parseInt(Ye + "") - ze;
628
- return /* @__PURE__ */ s("div", { style: { height: _t + "px" }, className: "bar-chart", children: (o == null ? void 0 : o.data) && o.data.length > 0 && /* @__PURE__ */ p(ye, { children: [
629
- /* @__PURE__ */ s(
630
- jt,
638
+ let $t = parseInt(je + "") - ut;
639
+ return /* @__PURE__ */ c("div", { style: { height: $t + "px" }, className: "bar-chart", children: (u == null ? void 0 : u.data) && u.data.length > 0 && /* @__PURE__ */ p(pe, { children: [
640
+ /* @__PURE__ */ c(
641
+ Tt,
631
642
  {
632
- colorBy: V.colorBy,
643
+ colorBy: $.colorBy,
633
644
  animate: !0,
634
- enableLabel: Ie == Kt,
635
- ...o,
636
- maxValue: Wt,
637
- minValue: Tt,
638
- keys: O(o.keys, !0),
639
- data: O(o.data, !1),
640
- groupMode: M || "grouped",
641
- margin: zt,
642
- innerPadding: Je,
643
- valueScale: {
644
- type: Xe,
645
- clamp: A === "fixed" && rt
646
- },
647
- colors: (e) => e && e.data[Q] ? e.data[Q] : v.getColor(e.id, e.data),
645
+ enableLabel: Ie == jt,
646
+ ...u,
647
+ maxValue: Vt,
648
+ minValue: Bt,
649
+ keys: O(u.keys, !0),
650
+ data: O(u.data, !1),
651
+ groupMode: F || "grouped",
652
+ margin: Mt,
653
+ innerPadding: Xe,
654
+ valueScale: { type: Re, clamp: !0 },
655
+ colors: (e) => e && e.data[U] ? e.data[U] : v.getColor(e.id, e.data),
648
656
  borderColor: "#000",
649
657
  reverse: H,
650
658
  axisTop: null,
651
- axisRight: Qe ? {
652
- tickSize: f == "horizontal" && j || f === "vertical" ? 5 : 0,
659
+ axisRight: Je ? {
660
+ tickSize: o == "horizontal" && A || o === "vertical" ? 5 : 0,
653
661
  tickPadding: 5,
654
662
  tickRotation: 0,
655
- tickValues: ue,
656
- legend: Y.right,
663
+ tickValues: xe,
664
+ legend: R.right,
657
665
  legendPosition: "middle",
658
- legendOffset: parseInt(Ge),
666
+ legendOffset: parseInt(Ue),
659
667
  format: (e) => {
660
668
  if (!e) return "";
661
- if (f == "vertical") {
662
- const t = F || b;
669
+ if (o == "vertical") {
670
+ const t = M || b;
663
671
  return g.formatNumber(
664
672
  t.style === "percent" ? e / 100 : e,
665
673
  {
@@ -670,17 +678,17 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
670
678
  return e;
671
679
  }
672
680
  } : null,
673
- axisBottom: (W || T) && (h == null ? void 0 : h.xAxisDisabled) === !0 ? null : f === "horizontal" ? {
674
- legend: Y.bottom,
681
+ axisBottom: (T || _) && (m == null ? void 0 : m.xAxisDisabled) === !0 ? null : o === "horizontal" ? {
682
+ legend: R.bottom,
675
683
  legendPosition: "middle",
676
684
  legendOffset: parseInt(Le),
677
685
  tickPadding: 5,
678
686
  tickRotation: 0,
679
- tickValues: parseInt(at),
687
+ tickValues: parseInt(Ge),
680
688
  format: (e) => {
681
689
  if (!e) return "";
682
- if (f == "horizontal") {
683
- const t = F || b;
690
+ if (o == "horizontal") {
691
+ const t = M || b;
684
692
  return g.formatNumber(
685
693
  t.style === "percent" ? e / 100 : e,
686
694
  {
@@ -691,24 +699,24 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
691
699
  return e;
692
700
  }
693
701
  } : {
694
- legend: Y.bottom,
702
+ legend: R.bottom,
695
703
  legendPosition: "middle",
696
704
  legendOffset: parseInt(Le),
697
- renderTick: wt
705
+ renderTick: Nt
698
706
  },
699
707
  axisLeft: {
700
- tickSize: f === "horizontal" && j || f === "vertical" ? 5 : 0,
708
+ tickSize: o === "horizontal" && A || o === "vertical" ? 5 : 0,
701
709
  tickPadding: 5,
702
710
  tickRotation: 0,
703
- tickValues: ue,
704
- legend: Y.left,
711
+ tickValues: xe,
712
+ legend: R.left,
705
713
  legendPosition: "middle",
706
- legendOffset: Number.parseInt(Ke),
707
- ...W || T ? { renderTick: Dt } : {
714
+ legendOffset: Number.parseInt(Pe),
715
+ ...T || _ ? { renderTick: It } : {
708
716
  format: (e) => {
709
717
  if (!e) return "";
710
- if (f === "vertical") {
711
- const t = F || b;
718
+ if (o === "vertical") {
719
+ const t = M || b;
712
720
  return g.formatNumber(
713
721
  t.style === "percent" ? e / 100 : e,
714
722
  {
@@ -720,13 +728,13 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
720
728
  }
721
729
  }
722
730
  },
723
- enableGridY: st,
724
- enableGridX: ct,
725
- layout: f,
726
- labelSkipWidth: se,
727
- labelSkipHeight: ce,
728
- padding: Ce,
729
- labelTextColor: de(),
731
+ enableGridY: nt,
732
+ enableGridX: rt,
733
+ layout: o,
734
+ labelSkipWidth: he,
735
+ labelSkipHeight: me,
736
+ padding: Ke,
737
+ labelTextColor: ue(),
730
738
  label: (e) => g.formatNumber(
731
739
  b.style === "percent" && e.value ? e.value / 100 : e.value,
732
740
  b
@@ -738,14 +746,14 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
738
746
  },
739
747
  motionStiffness: 130,
740
748
  motionDamping: 15,
741
- tooltip: (e) => Ue && ae && ae.trim().length > 0 ? /* @__PURE__ */ s(
742
- St,
749
+ tooltip: (e) => Ce && ae && ae.trim().length > 0 ? /* @__PURE__ */ c(
750
+ Wt,
743
751
  {
744
752
  intl: g,
745
753
  format: b,
746
754
  d: e,
747
755
  tooltip: ae,
748
- tooltipEnableMarkdown: tt
756
+ tooltipEnableMarkdown: Qe
749
757
  }
750
758
  ) : null,
751
759
  theme: {
@@ -765,40 +773,40 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
765
773
  }
766
774
  }
767
775
  ),
768
- (w === "top" || w === "bottom") && /* @__PURE__ */ s(
776
+ (D === "top" || D === "bottom") && /* @__PURE__ */ c(
769
777
  "div",
770
778
  {
771
- className: `legends container has-standard-12-font-size ${w}`,
779
+ className: `legends container has-standard-12-font-size ${D}`,
772
780
  children: /* @__PURE__ */ p("div", { className: "legend-sections", children: [
773
- /* @__PURE__ */ s("div", { className: "title-section", children: He() }),
774
- /* @__PURE__ */ s(
775
- Yt,
781
+ /* @__PURE__ */ c("div", { className: "title-section", children: Ve() }),
782
+ /* @__PURE__ */ c(
783
+ At,
776
784
  {
777
785
  onWrapChange: (e) => {
778
- w === "top" ? (xt(pe + e / 2 * 40), Be(e)) : (pt(be + e / 2 * 25), Be(e));
786
+ D === "top" ? (mt(q + e / 2 * 40), Ee(e)) : (ft(Q + e / 2 * 25), Ee(e));
779
787
  },
780
788
  className: "legends container has-standard-12-font-size items-section",
781
- useColumns: dt,
782
- numberOfLegendColumns: ht,
783
- children: $e()
789
+ useColumns: lt,
790
+ numberOfLegendColumns: st,
791
+ children: ze()
784
792
  }
785
793
  )
786
794
  ] })
787
795
  }
788
796
  ),
789
- (w === "right" || w === "left") && /* @__PURE__ */ p(
797
+ (D === "right" || D === "left") && /* @__PURE__ */ p(
790
798
  "div",
791
799
  {
792
- className: `legends container has-standard-12-font-size ${w}`,
793
- style: w === "right" ? bt : gt,
800
+ className: `legends container has-standard-12-font-size ${D}`,
801
+ style: D === "right" ? ot : xt,
794
802
  children: [
795
- He(),
796
- $e()
803
+ Ve(),
804
+ ze()
797
805
  ]
798
806
  }
799
807
  )
800
808
  ] }) });
801
- }, da = Rt(Ct);
809
+ }, sa = _t(Yt);
802
810
  export {
803
- da as default
811
+ sa as default
804
812
  };