@watermarkinsights/ripple 5.30.0-alpha.4 → 5.30.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 (277) hide show
  1. package/dist/cjs/{app-globals-33a95391.js → app-globals-f310dc82.js} +1 -1
  2. package/dist/cjs/{chartFunctions-fea69eeb.js → chartFunctions-351edf56.js} +1 -1
  3. package/dist/cjs/{functions-ac930ffe.js → functions-05cd64e3.js} +9 -9
  4. package/dist/cjs/{intl-d174fb3c.js → intl-140f6bea.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/priv-calendar.cjs.entry.js +9 -9
  7. package/dist/cjs/priv-chart-popover-old.cjs.entry.js +1 -1
  8. package/dist/cjs/priv-chart-popover_2.cjs.entry.js +1 -1
  9. package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
  10. package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
  11. package/dist/cjs/priv-option-list.cjs.entry.js +3 -3
  12. package/dist/cjs/ripple.cjs.js +2 -2
  13. package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -5
  14. package/dist/cjs/wm-button.cjs.entry.js +18 -8
  15. package/dist/cjs/wm-chart-bar.cjs.entry.js +3 -3
  16. package/dist/cjs/wm-chart-column.cjs.entry.js +3 -3
  17. package/dist/cjs/wm-chart.cjs.entry.js +3 -3
  18. package/dist/cjs/wm-date-range.cjs.entry.js +7 -7
  19. package/dist/cjs/wm-datepicker.cjs.entry.js +7 -7
  20. package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
  21. package/dist/cjs/wm-file.cjs.entry.js +2 -2
  22. package/dist/cjs/wm-flyout.cjs.entry.js +3 -3
  23. package/dist/cjs/wm-input.cjs.entry.js +3 -3
  24. package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
  25. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +6 -6
  26. package/dist/cjs/wm-modal_3.cjs.entry.js +6 -6
  27. package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
  28. package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/wm-nested-select.cjs.entry.js +5 -5
  30. package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
  31. package/dist/cjs/wm-option_2.cjs.entry.js +7 -7
  32. package/dist/cjs/wm-pagination.cjs.entry.js +3 -3
  33. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
  34. package/dist/cjs/wm-search.cjs.entry.js +5 -5
  35. package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
  36. package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
  37. package/dist/cjs/wm-tag-input.cjs.entry.js +24 -17
  38. package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
  39. package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
  40. package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
  41. package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
  42. package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
  43. package/dist/collection/components/datepickers/datepicker.css +0 -31
  44. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +8 -8
  45. package/dist/collection/components/datepickers/wm-date-range.js +6 -6
  46. package/dist/collection/components/datepickers/wm-datepicker.js +6 -6
  47. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
  48. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
  49. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
  50. package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
  51. package/dist/collection/components/selects/wm-select/wm-select.js +4 -4
  52. package/dist/collection/components/wm-action-menu/wm-action-menu.js +3 -3
  53. package/dist/collection/components/wm-button/wm-button.js +51 -7
  54. package/dist/collection/components/wm-file/wm-file.js +1 -1
  55. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
  56. package/dist/collection/components/wm-flyout/wm-flyout.js +1 -1
  57. package/dist/collection/components/wm-input/wm-input.js +1 -1
  58. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -31
  59. package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
  60. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  61. package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
  62. package/dist/collection/components/wm-modal/wm-modal.js +2 -2
  63. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
  64. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
  65. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
  66. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
  67. package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
  68. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
  69. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -31
  70. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
  71. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
  72. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -31
  73. package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
  74. package/dist/collection/components/wm-search/wm-search.css +0 -36
  75. package/dist/collection/components/wm-search/wm-search.js +2 -2
  76. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -31
  77. package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
  78. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
  79. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +3 -3
  80. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  81. package/dist/collection/components/wm-tag-input/wm-tag-input.css +4 -2
  82. package/dist/collection/components/wm-tag-input/wm-tag-input.js +24 -15
  83. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  84. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -31
  85. package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
  86. package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
  87. package/dist/collection/components/wm-uploader/wm-uploader.css +0 -31
  88. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  89. package/dist/collection/dev/button.js +12 -0
  90. package/dist/esm/{app-globals-672c8a7d.js → app-globals-0d90343d.js} +1 -1
  91. package/dist/esm/{chartFunctions-bae65d16.js → chartFunctions-295d929a.js} +1 -1
  92. package/dist/esm/{functions-cc58fbd9.js → functions-438e60c4.js} +9 -9
  93. package/dist/esm/{intl-9c28b1b5.js → intl-25f6dfb9.js} +1 -1
  94. package/dist/esm/loader.js +2 -2
  95. package/dist/esm/polyfills/core-js.js +0 -0
  96. package/dist/esm/polyfills/dom.js +0 -0
  97. package/dist/esm/polyfills/es5-html-element.js +0 -0
  98. package/dist/esm/polyfills/index.js +0 -0
  99. package/dist/esm/polyfills/system.js +0 -0
  100. package/dist/esm/priv-calendar.entry.js +9 -9
  101. package/dist/esm/priv-chart-popover-old.entry.js +1 -1
  102. package/dist/esm/priv-chart-popover_2.entry.js +1 -1
  103. package/dist/esm/priv-navigator-button.entry.js +1 -1
  104. package/dist/esm/priv-navigator-item.entry.js +1 -1
  105. package/dist/esm/priv-option-list.entry.js +3 -3
  106. package/dist/esm/ripple.js +2 -2
  107. package/dist/esm/wm-action-menu_2.entry.js +5 -5
  108. package/dist/esm/wm-button.entry.js +18 -8
  109. package/dist/esm/wm-chart-bar.entry.js +3 -3
  110. package/dist/esm/wm-chart-column.entry.js +3 -3
  111. package/dist/esm/wm-chart.entry.js +3 -3
  112. package/dist/esm/wm-date-range.entry.js +7 -7
  113. package/dist/esm/wm-datepicker.entry.js +7 -7
  114. package/dist/esm/wm-file-list.entry.js +1 -1
  115. package/dist/esm/wm-file.entry.js +2 -2
  116. package/dist/esm/wm-flyout.entry.js +3 -3
  117. package/dist/esm/wm-input.entry.js +3 -3
  118. package/dist/esm/wm-line-chart.entry.js +3 -3
  119. package/dist/esm/wm-modal-pss_3.entry.js +6 -6
  120. package/dist/esm/wm-modal_3.entry.js +6 -6
  121. package/dist/esm/wm-navigation_3.entry.js +6 -6
  122. package/dist/esm/wm-navigator.entry.js +1 -1
  123. package/dist/esm/wm-nested-select.entry.js +5 -5
  124. package/dist/esm/wm-optgroup.entry.js +2 -2
  125. package/dist/esm/wm-option_2.entry.js +7 -7
  126. package/dist/esm/wm-pagination.entry.js +3 -3
  127. package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
  128. package/dist/esm/wm-search.entry.js +5 -5
  129. package/dist/esm/wm-snackbar.entry.js +4 -4
  130. package/dist/esm/wm-tab-item_3.entry.js +7 -7
  131. package/dist/esm/wm-tag-input.entry.js +25 -18
  132. package/dist/esm/wm-tag-option.entry.js +1 -1
  133. package/dist/esm/wm-textarea.entry.js +3 -3
  134. package/dist/esm/wm-timepicker.entry.js +3 -3
  135. package/dist/esm/wm-toggletip.entry.js +4 -4
  136. package/dist/esm/wm-uploader.entry.js +4 -4
  137. package/dist/esm-es5/app-globals-0d90343d.js +1 -0
  138. package/dist/esm-es5/{chartFunctions-bae65d16.js → chartFunctions-295d929a.js} +1 -1
  139. package/dist/esm-es5/functions-438e60c4.js +1 -0
  140. package/dist/esm-es5/{intl-9c28b1b5.js → intl-25f6dfb9.js} +1 -1
  141. package/dist/esm-es5/loader.js +1 -1
  142. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  143. package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -1
  144. package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -1
  145. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  146. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  147. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  148. package/dist/esm-es5/ripple.js +1 -1
  149. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  150. package/dist/esm-es5/wm-button.entry.js +1 -1
  151. package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
  152. package/dist/esm-es5/wm-chart-column.entry.js +1 -1
  153. package/dist/esm-es5/wm-chart.entry.js +1 -1
  154. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  155. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  156. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  157. package/dist/esm-es5/wm-file.entry.js +1 -1
  158. package/dist/esm-es5/wm-flyout.entry.js +1 -1
  159. package/dist/esm-es5/wm-input.entry.js +1 -1
  160. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  161. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  162. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  163. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  164. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  165. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  166. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  167. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  168. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  169. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  170. package/dist/esm-es5/wm-search.entry.js +1 -1
  171. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  172. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  173. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  174. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  175. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  176. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  177. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  178. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  179. package/dist/ripple/{p-4eb982c6.system.entry.js → p-02c8bf15.system.entry.js} +1 -1
  180. package/dist/ripple/{p-e9a8f44c.entry.js → p-05dae6a0.entry.js} +1 -1
  181. package/dist/ripple/p-065b0134.entry.js +1 -0
  182. package/dist/ripple/{p-16634457.system.entry.js → p-09a44b14.system.entry.js} +1 -1
  183. package/dist/ripple/{p-88aa2b90.entry.js → p-09d5381c.entry.js} +1 -1
  184. package/dist/ripple/{p-67d8977e.system.entry.js → p-0db033c3.system.entry.js} +1 -1
  185. package/dist/ripple/{p-97ef6cea.system.entry.js → p-0feaaae9.system.entry.js} +1 -1
  186. package/dist/ripple/{p-b7a1fda2.system.entry.js → p-10aea5ee.system.entry.js} +1 -1
  187. package/dist/ripple/{p-c17b8d20.entry.js → p-131d57c3.entry.js} +1 -1
  188. package/dist/ripple/p-178ba906.js +1 -0
  189. package/dist/ripple/p-1f051611.system.js +1 -0
  190. package/dist/ripple/{p-904fa178.entry.js → p-1f79c42d.entry.js} +1 -1
  191. package/dist/ripple/{p-62481831.system.entry.js → p-1fc894ac.system.entry.js} +1 -1
  192. package/dist/ripple/p-210773eb.entry.js +1 -0
  193. package/dist/ripple/{p-76c95756.entry.js → p-227b0af9.entry.js} +1 -1
  194. package/dist/ripple/{p-3a08cf7c.system.entry.js → p-28b8a12e.system.entry.js} +1 -1
  195. package/dist/ripple/{p-f609118b.entry.js → p-2a03f658.entry.js} +1 -1
  196. package/dist/ripple/p-2f297bf8.js +1 -0
  197. package/dist/ripple/{p-d022520e.system.entry.js → p-332a3e3d.system.entry.js} +1 -1
  198. package/dist/ripple/{p-880a9ff7.entry.js → p-39bac42a.entry.js} +1 -1
  199. package/dist/ripple/{p-57f49361.entry.js → p-3bd8537c.entry.js} +1 -1
  200. package/dist/ripple/{p-a4bf0458.entry.js → p-3f69041f.entry.js} +1 -1
  201. package/dist/ripple/{p-e0ee2cea.system.entry.js → p-40e8071c.system.entry.js} +1 -1
  202. package/dist/ripple/{p-3617a99d.system.entry.js → p-444feb7d.system.entry.js} +1 -1
  203. package/dist/ripple/{p-f9fd5721.entry.js → p-4533241f.entry.js} +1 -1
  204. package/dist/ripple/{p-1a5be7f7.entry.js → p-463be5be.entry.js} +1 -1
  205. package/dist/ripple/{p-f674eef4.system.entry.js → p-4e7ae2c5.system.entry.js} +1 -1
  206. package/dist/ripple/{p-4ac7f6fc.entry.js → p-4f53544d.entry.js} +1 -1
  207. package/dist/ripple/{p-c5f150f4.system.entry.js → p-503330c1.system.entry.js} +1 -1
  208. package/dist/ripple/{p-b0f024ba.entry.js → p-5173359e.entry.js} +1 -1
  209. package/dist/ripple/{p-7d7623c3.js → p-5afc108c.js} +1 -1
  210. package/dist/ripple/{p-3c41157e.system.entry.js → p-5f092b39.system.entry.js} +1 -1
  211. package/dist/ripple/{p-62cfe06e.entry.js → p-6479b06b.entry.js} +1 -1
  212. package/dist/ripple/{p-474310b4.entry.js → p-680f5703.entry.js} +1 -1
  213. package/dist/ripple/p-6a7b26a1.system.js +1 -0
  214. package/dist/ripple/{p-8a6e13d9.entry.js → p-6de83c6f.entry.js} +1 -1
  215. package/dist/ripple/{p-a42960e1.system.entry.js → p-6f2d3297.system.entry.js} +1 -1
  216. package/dist/ripple/{p-a5d0d757.entry.js → p-709d1765.entry.js} +1 -1
  217. package/dist/ripple/{p-2970732e.system.entry.js → p-7ca0bb68.system.entry.js} +1 -1
  218. package/dist/ripple/{p-300cabee.entry.js → p-84e04896.entry.js} +1 -1
  219. package/dist/ripple/{p-628fd7bc.system.entry.js → p-86148143.system.entry.js} +1 -1
  220. package/dist/ripple/{p-c1419735.entry.js → p-8e6e868a.entry.js} +1 -1
  221. package/dist/ripple/{p-19ff9af0.entry.js → p-928b3e5e.entry.js} +1 -1
  222. package/dist/ripple/{p-1d64a21b.system.js → p-956cb6a9.system.js} +1 -1
  223. package/dist/ripple/{p-25f3270d.entry.js → p-9a5d11cb.entry.js} +1 -1
  224. package/dist/ripple/{p-72b7a4fa.system.entry.js → p-9d345fc7.system.entry.js} +1 -1
  225. package/dist/ripple/{p-d587a3da.system.entry.js → p-a0aba3e0.system.entry.js} +1 -1
  226. package/dist/ripple/{p-2936c3cb.system.entry.js → p-a3dd5204.system.entry.js} +1 -1
  227. package/dist/ripple/{p-ab3789d4.system.entry.js → p-a5a165c6.system.entry.js} +1 -1
  228. package/dist/ripple/{p-94c1096c.system.entry.js → p-a6aef87d.system.entry.js} +1 -1
  229. package/dist/ripple/{p-aadbb9f7.system.entry.js → p-a6ef995c.system.entry.js} +1 -1
  230. package/dist/ripple/{p-3dc29683.system.entry.js → p-a7e637a5.system.entry.js} +1 -1
  231. package/dist/ripple/{p-599dd379.system.entry.js → p-aafced54.system.entry.js} +1 -1
  232. package/dist/ripple/{p-58ccc222.system.entry.js → p-b11abb0d.system.entry.js} +1 -1
  233. package/dist/ripple/{p-f4260538.system.entry.js → p-b1924539.system.entry.js} +1 -1
  234. package/dist/ripple/{p-e5edae54.system.entry.js → p-b654743f.system.entry.js} +1 -1
  235. package/dist/ripple/{p-2ac68f77.system.entry.js → p-b974a535.system.entry.js} +1 -1
  236. package/dist/ripple/p-bb9f54cf.system.entry.js +1 -0
  237. package/dist/ripple/{p-6698e57e.entry.js → p-bd37dd6f.entry.js} +1 -1
  238. package/dist/ripple/{p-55555920.entry.js → p-bdb10d37.entry.js} +1 -1
  239. package/dist/ripple/{p-0431bb7a.entry.js → p-bf3eef42.entry.js} +1 -1
  240. package/dist/ripple/{p-3de3b34d.js → p-bff5c1d5.js} +1 -1
  241. package/dist/ripple/{p-4c813bbc.system.entry.js → p-c04d0eeb.system.entry.js} +1 -1
  242. package/dist/ripple/{p-5a64ca98.entry.js → p-c1abc58e.entry.js} +1 -1
  243. package/dist/ripple/{p-6ff3f70a.entry.js → p-cc028323.entry.js} +1 -1
  244. package/dist/ripple/{p-e180c6ff.entry.js → p-d05b7cd3.entry.js} +1 -1
  245. package/dist/ripple/p-d55bd2b9.entry.js +1 -0
  246. package/dist/ripple/{p-e28ac2de.entry.js → p-dab54a9d.entry.js} +1 -1
  247. package/dist/ripple/{p-84802e9c.system.entry.js → p-dbdae848.system.entry.js} +1 -1
  248. package/dist/ripple/{p-274592b5.system.entry.js → p-df9d5b14.system.entry.js} +1 -1
  249. package/dist/ripple/{p-4e8ac9fd.system.entry.js → p-e0c0e8b0.system.entry.js} +1 -1
  250. package/dist/ripple/{p-050aeacd.entry.js → p-e1a6ee77.entry.js} +1 -1
  251. package/dist/ripple/{p-7c3dec23.system.js → p-e6704efd.system.js} +1 -1
  252. package/dist/ripple/{p-c39e9f51.system.entry.js → p-e78f9572.system.entry.js} +1 -1
  253. package/dist/ripple/{p-e2d01adf.entry.js → p-ee26ba53.entry.js} +1 -1
  254. package/dist/ripple/{p-f04cecce.system.entry.js → p-ee729037.system.entry.js} +1 -1
  255. package/dist/ripple/{p-d3f7034f.entry.js → p-f51404f5.entry.js} +1 -1
  256. package/dist/ripple/p-f7fc6350.system.js +1 -0
  257. package/dist/ripple/{p-78d02ad6.entry.js → p-f94af31c.entry.js} +1 -1
  258. package/dist/ripple/p-fb6aee09.entry.js +1 -0
  259. package/dist/ripple/{p-f1fe253f.system.entry.js → p-ff6fd274.system.entry.js} +1 -1
  260. package/dist/ripple/ripple.esm.js +1 -1
  261. package/dist/ripple/ripple.js +1 -1
  262. package/dist/types/components/wm-button/wm-button.d.ts +13 -0
  263. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +3 -2
  264. package/dist/types/components.d.ts +16 -0
  265. package/package.json +2 -2
  266. package/dist/esm-es5/app-globals-672c8a7d.js +0 -1
  267. package/dist/esm-es5/functions-cc58fbd9.js +0 -1
  268. package/dist/ripple/p-1a6b35e8.system.js +0 -1
  269. package/dist/ripple/p-2818d018.system.js +0 -1
  270. package/dist/ripple/p-356cc61e.entry.js +0 -1
  271. package/dist/ripple/p-36431bb7.entry.js +0 -1
  272. package/dist/ripple/p-392a9242.system.js +0 -1
  273. package/dist/ripple/p-6946c33b.js +0 -1
  274. package/dist/ripple/p-82913757.entry.js +0 -1
  275. package/dist/ripple/p-98d96bca.js +0 -1
  276. package/dist/ripple/p-cdeb3766.entry.js +0 -1
  277. package/dist/ripple/p-d66b977f.system.entry.js +0 -1
@@ -1 +1 @@
1
- import{h as t}from"./p-83c3db60.js";import{i as s,c as e,e as i,f as n}from"./p-6946c33b.js";const a="#ff5f4e",r="#19a1a9",o="#088000",h="#2e1b46",c="#8b86ca",u="#575195",d="#6b6b6b",l={doughnut:{size:155,colors:[o,d],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[c,h,d],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[u,r,h,a,d],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[o,d],padding:0,category:"stackedBar"},bar2:{size:400,colors:[d,c,u,h,r,a],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",r,"#8e4129",a],padding:0,category:"stackedBar"},bar4:{size:400,colors:[a,r,u],padding:0,category:"stackedBar"},bar5:{size:400,colors:[d,c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[c],padding:0,category:"simpleBar"},bar7:{size:400,colors:[u,r,a,d],padding:0,category:"simpleBar"}};function f(t){return"percentage"===t||"amount"===t?"show-values":""}const p=s.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"}),g=s.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function b(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function m(t,s,e){return e?Math.round(100*t/s):Math.round(1e4*t/s)/100}function v(t,s){return 360*t/s}function x(t){return parseFloat((Math.floor(100*t)/100).toFixed(2))}function w(t,s,e,i){var n=x(t+t*s*Math.cos(Math.PI*e/180)),a=x(t+t*s*Math.sin(Math.PI*e/180));return void 0!==i?{x1:n,y1:a,x2:x(t+t*s*Math.cos(Math.PI*i/180)),y2:x(t+t*s*Math.sin(Math.PI*i/180))}:{x:n,y:a}}function $(t,s,e,i,n){var a=x(n/2*t);return`A ${a}, ${a} 0 ${s} ${x(e)}, ${x(i)}`}function M(t){return Math.round(t/function(t){return function(t){let s=80*(t-300)/600+70;return s<70?70:s>150?150:s}(t)}(t))}function k(t,s){const e=t/s,i=10**Math.floor(Math.log10(e)),n=e/i;let a;return a=n>5?10*i:n>3?5*i:n>2?3*i:n>1.5?2*i:n>1?1.5*i:i,a}function y(t){if(this.popoverEl&&this.popoverEl.open&&"Enter"===t.key){const t=this.popoverEl.querySelector("button");t&&t.click()}}function z(t,s){this.popoverEl&&!this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),s.coords={x:t.clientX,y:t.clientY},B(this.popoverEl,s),H(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function A(t,s){this.popoverEl&&this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),this.focusedSliceId=s.id,s.coords=n(t.target),s.coords.x=s.coords.x+30,s.coords.y=s.coords.y+30,B(this.popoverEl,s),H(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function C(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this.isTabbing=!0,D.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.isTabbing=!0,I.call(this);break;case"Tab":S.call(this);break;case"Escape":this.popoverEl.open=!1,this.userIsNavigating=!1}}function B(t,s){t.open=!1,s.title&&s.text&&(t.sliceDetails=Object.assign({},s),window.setTimeout((()=>t.open=!0),30))}function I(){const t=e(document.activeElement),s=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;F.call(this,s)}function D(){if(this.sliceEls){const t=e(document.activeElement);let s=this.sliceEls.indexOf(t);-1===s?s=0:0===s?s=this.sliceEls.length-1:s-=1,F.call(this,s)}}function F(t){this.sliceEls&&this.el&&(this.userIsNavigating=!0,this.componentWrapperEl.tabIndex=-1,this.el.focusable=!1,this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.sliceEls[t].tabIndex=0,this.sliceEls[t].focusable=!0,this.sliceEls[t].focus(),this.focusedSliceId=this.sliceEls[t].id,window.setTimeout((()=>{this.popoverEl&&(this.popoverEl.open=!0)}),10))}function S(){this.focusedSliceId=void 0,this.sliceEls&&this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.userIsNavigating=!1,window.setTimeout((()=>{this.componentWrapperEl.tabIndex=0,this.el.focusable=!0,this.popoverEl&&(this.popoverEl.open=!1)}),100)}async function j(t){this.slicesDetails=[];let s=0;const e=Array.from(this.el.children);this.total=e.reduce(((t,s)=>t+parseInt(s.getAttribute("amount")||"0")),0);let i=[...l[t].colors];"bar2"===this.chartType&&(e.length<=5&&i.splice(1,1),e.length<=4&&i.splice(2,1)),"bar3"===t&&2===e.length&&(i=[i[1],i[3]]),"doughnut2"===t&&e.length<5&&(i.splice(2,1),e.length<4&&i.shift()),"bar5"!==t||this.notStartedColor||i.shift();let n=0;e.forEach(((e,a)=>{const r=e.getAttribute("amount");if(null==r)return;const o=parseInt(r||"0"),h=m(o,this.total,!0);let c=a;"bar6"===t&&(c=0);const u={amount:o,visualAmount:o,perc:h,legend:e.getAttribute("legend"),color:i[c]||d,offset:s,id:`${this.uid}-${n+1}`,title:e.getAttribute("popover-title"),text:e.getAttribute("popover-text"),buttonText:e.getAttribute("popover-button-text"),sliceRef:e,inSmallCluster:!1,index:n};s+=o,this.slicesDetails.push(u),n++}))}function K(t,s,e){const i=v(s,this.total)-90,n=t/this.total*360;let a=i+n;const r=n>180?"1 1":"0 1",o=n>180?"1 0":"0 0",h=this.chartDetails.size/2,c=this.chartDetails.thickness,u="doughnut"===e?2.25:3;360===n&&(a-=.01);const d=w(h,1,i+1.5,a),l=w(h,c,i+u,a);return`M ${d.x1}, ${d.y1} `+$(1,r,d.x2,d.y2,this.chartDetails.size)+` L ${l.x2}, ${l.y2} `+$(c,o,l.x1,l.y1,this.chartDetails.size)+" z"}function N(){const e=s.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return t("div",{id:"chart-instructions"},e)}function T(s){const e=this.chartDetails.size+this.chartDetails.padding,i="doughnut"===s;let n=i?this.slicesDetails:function(t,s){let e=[...t].sort(((t,s)=>t.amount===s.amount?0:t.amount>s.amount?-1:1)),i=0;return e.filter((t=>t.amount>0)).forEach(((t,n)=>{const a=e[n===e.length-1?0:n+1],r=m(e[0===n?e.length-1:n-1].amount,s,!0),o=m(a.amount,s,!0),h=0===t.perc?8:5;t.inSmallCluster=t.perc<4&&(r<h||o<h),t.offset=i,i+=t.amount})),e}(this.slicesDetails,this.total);n=function(t,s,e){const i=s.map((t=>v(t.amount,e)));if(i.some((t=>0!==t&&t<7))){const t=i.map((t=>0==t?t:Math.max(t,7))),n=t.reduce(((t,s)=>t+(s>7&&0!==s?s:0)),0),a=360-t.reduce(((t,s)=>t+(s>7&&0!==s?0:s)),0),r=(n-a)/a,o=t.map((t=>t>7?t-r*t:0==t?0:7));let h=0;s=s.map(((t,s)=>{const i=o[s]/360*e,n=h;return h+=i,Object.assign(Object.assign({},t),{visualAmount:i,offset:n})}))}return s}(0,n,this.total);const a=n[0].amount;let r=m(a,this.total,!0);return 0===r&&a>0?r="<1%":100===r&&a<this.total?r=">99%":r+="%",t("div",{class:"chart-wrapper doughnut-wrapper"},t("svg",{width:e+"px",height:e+"px",id:`graphic-${this.uid}`,class:"doughnut-svg"},t("defs",null,t("filter",{id:"wmHoverDropShadow"},t("feGaussianBlur",{stdDeviation:"3"}),t("feOffset",{result:"offsetblur"}),t("feFlood",{"flood-color":"#333"}),t("feComposite",{operator:"in",in2:"offsetblur"}),t("feMerge",null,t("feMergeNode",null),t("feMergeNode",{in:"SourceGraphic"})))),n.map((t=>W.call(this,t,s))),q.call(this),i?t("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},r):t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`,"text-anchor":"middle","dominant-baseline":"middle"},n.map((t=>t.amount>0&&!t.inSmallCluster?E.call(this,t):"")))))}function H(t,s){t.forEach((t=>{t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==s.index?t.classList.add("faded"):t.classList.remove("faded")}))}function O(t){t.forEach((t=>{t.classList.remove("faded")}))}function W(s,e){const i=m(s.amount,this.total,!0)+"%";return!isNaN(s.amount)&&t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("path",{id:s.id,class:"segment doughnut-segment",fill:s.visualAmount?s.color:"transparent",d:K.call(this,s.visualAmount,s.offset,e),onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),role:"img","aria-label":`${s.legend}, ${i}`,"data-segmentindex":s.index}))}function q(){return this.isTabbing?t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("use",{tabindex:-1,id:"kfbg1",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfstroke",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfbg2",xlinkHref:`#${this.focusedSliceId}`})):""}function E(s){const e=v(s.offset+s.visualAmount/2,this.total);let i,{x:n,y:a}=w(this.chartDetails.size/2,1.4,e-90);return i=0===s.perc&&s.amount>0?"<1%":100===s.perc&&s.amount<this.total?">99%":s.perc+"%",t("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":s.index},i)}function G(s){const e="bar"===s,i=this.el.shadowRoot.querySelectorAll(".value");return i.length>0&&requestAnimationFrame((()=>{let t=[],s=!1;i.forEach((e=>{e.classList.remove("hidden");const i=parseInt(e.dataset.value);if(t.length>0&&0!=i){const n=e.getBoundingClientRect().left-4;t.forEach((t=>{const a=parseInt(t.dataset.value);t.getBoundingClientRect().right>n&&((i<a?e:t).classList.add("hidden"),s=!0)}))}!e.classList.contains("hidden")&&i>0&&t.push(e)})),(this.isBar||this.isDoughnut)&&this.showHiddenValuesMessage(s)})),t("div",{class:"chart-wrapper bar-wrapper"},e?t("div",{class:"single-perc"},m(this.slicesDetails[0].amount,this.total,!0)+"%"):"","bar3"===this.chartType&&this.drawAxis(),t("div",{class:`inner-stacked-bar-wrapper ${f(this.valueFormat)}`},e?"":t("div",{class:`values ${this.valueFormat}`},this.slicesDetails.map((t=>this.renderBarText(t,5)))),t("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((t=>L.call(this,t,5)))),e?P.call(this):""),"bar3"===this.chartType?t("div",{class:"bar3-axis-label","aria-hidden":"true"},t("span",null,"0%"),t("span",null,"100%")):"")}function L(s,e){const i=m(s.amount,this.total,!1),n=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper"),a=i/100*(n?n.offsetWidth:this.el.offsetWidth)>=e,r=a||0==s.amount?`${i}%`:`${e}px`;let o="";return"percentage"==this.valueFormat?o=`${m(s.amount,this.total,!0)} %`:"amount"==this.valueFormat&&(o=s.amount.toString()),t("div",{class:`segment stacked-bar-segment ${0===m(s.amount,this.total,!1)?"zero":""} ${a?"":"fixed-width"}`,style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("span",{class:"sr-only"},`${s.legend} ${o}`))}function R(s){const e=this.slicesDetails.map((t=>t.amount)).reduce(((t,s)=>t>s?t:s)),n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);let a=M(this.el.getBoundingClientRect().width-n-48),r=k(e,a);const o=Math.floor((a*r-e)/r);a-=o,this.el.style.setProperty("--backgroundSize",100/a+"%"),this.el.style.setProperty("--labelWidth",this.labelWidth),"bar7"!==s||this.showBarLegend||this.el.style.setProperty("--labelWidth","0px");const h=[];this.slicesDetails.forEach((i=>{i.legend&&h.push(function(s,e,i){return t("label",{class:`label${"bar7"!==i||e?"":" hidden"}`},s)}(i.legend,this.showBarLegend,s)),h.push(U.call(this,i,r,a,e))}));const c=[];for(let s=1;s<=a;s++){const e=b(i(s,r));c.push(t("div",{class:"tick"},t("span",null,e)))}const u="bar6"===s&&this.showGrid&&this.el.getBoundingClientRect().width>300;return t("div",{class:"chart-wrapper simple-bar-wrapper"},t("div",{class:`chart ${f(this.valueFormat)}`},u&&t("div",{class:"gridlines"}),t("div",{class:"rows"},h)),u&&t("div",{class:"x-axis","aria-hidden":"true"},t("div",{class:"zero"},t("span",null,"0")),c))}function U(s,e,i,n){const a=m(s.amount,"bar6"===this.currentChartType?e*i:n,!1),r=a?a+"%":"1px",o=b(s.amount);let h="amount"===this.valueFormat?o:"";return"bar6"===this.currentChartType&&"percentage"===this.valueFormat?h=s.amount+"%":"bar7"===this.currentChartType&&"percentage"===this.valueFormat&&(h=(0===this.total?"0":m(s.amount,this.total,!0))+"%"),t("div",{class:"bar segment",style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("div",{class:"value"},h))}function V(s){if(this.showLegend){const e=this.slicesDetails.reduce(((t,s)=>!!s.inSmallCluster||t),!1);return this.isDoughnut&&this.showHiddenValuesMessage(e),t("div",{class:"legend-wrapper"},t("div",{class:`legend ${s} ${"bar"===this.mode?"--top":"--bottom"}`,"aria-hidden":"true"},this.slicesDetails.map((t=>{const s="amount"==this.printModeFormat?`${t.amount}/${this.total}`:`${m(t.amount,this.total,!0)}%`;if(t.amount||t.legend)return J.call(this,{key:t.legend,color:t.color},s,t)}))),this.isDoughnut&&!this.printMode&&Q())}}function J(s,e="",i=null){const n=t=>{i&&(i.coords={x:t.clientX,y:t.clientY},B(this.popoverEl,i),H(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),i))};return t("div",{class:"legend-item",onClick:t=>n(t),"data-segmentindex":i?i.index:null},t("div",{class:"legend-color",style:{backgroundColor:s.color}}),t("div",{class:"legend-text"},s.key,e&&t("span",{class:"print-value "+(this.printMode?"force-visible":"")},": ",e)))}function P(){if(this.completionMessage)return t("div",{class:"completion-message"},this.completionMessage)}function Q(){return t("div",{class:"hidden-values-warning hidden"},p,t("br",null),g)}function X(t,s,e,i=0){switch(e){case"amount":return t.toFixed(i);case"percentage":const e=t/s*100;return t>0&&e<1?"<1%":e>99&&t!==s?">99%":`${Math.round(e).toFixed(0)}%`;default:return""}}function Y(t,s=[1,1.5,2,2.5,3,5,10]){const e=t/Math.pow(10,Math.floor(Math.log10(t)));return s.some((t=>Math.abs(e-t)<1e-4))}function Z(t){if(0===t||!Number.isFinite(t))return 0;let s=Math.abs(t);for(let t=0;t<=15;t++){const e=Math.round(s),i=1e-9;if(Math.abs(s-e)<i)return t;s*=10}return 2}function _(t){if(0===t||!Number.isFinite(t))return 0;const s=Math.abs(t);let e=s;return s>=1e6?e=s/1e6:s>=1e3&&(e=s/1e3),Math.max(Z(s),Z(e))}function tt(t,s){const e=void 0!==s;if(t>=1e6){const i=t/1e6;return e?`${i.toFixed(s)}M`:`${i.toFixed(t%1e6==0?0:1)}M`}if(t>=1e3){const i=t/1e3;return e?`${i.toFixed(s)}K`:`${i.toFixed(t%1e3==0?0:1)}K`}return e?t.toFixed(s):t.toString()}function st(t,s){for(let e=t;e>=1;e--){const t=s/e;if(Y(t))return{numIntervals:e,interval:t}}return{numIntervals:1,interval:s}}function et(t){if(t<=0)return 0;const s=[1,1.5,2,2.5,3,5,10],e=Math.pow(10,Math.floor(Math.log10(t))),i=t/e;for(const t of s)if(t>=i)return t*e;return 10*e}function it(t){const s=new Set,e=[];return t.forEach((t=>{t.forEach((t=>{s.has(t.barLegend)||(s.add(t.barLegend),e.push(t))}))})),e}function nt(t){const s=new Map;return t.forEach((t=>{var e;let i=null!==(e=t.groupName)&&void 0!==e?e:null;s.has(i)||s.set(i,[]),s.get(i).push(t)})),s}function at(t){const s=[...t],e=[];s.forEach((t=>{t.groupName&&!e.includes(t.groupName)&&e.push(t.groupName)}));const i=s.filter((t=>t.groupName===e[0])).map((t=>t.barLegend));return s.sort(((t,s)=>{const n=e.indexOf(t.groupName||""),a=e.indexOf(s.groupName||"");return n!==a?n-a:i.indexOf(t.barLegend)-i.indexOf(s.barLegend)}))}export{l as a,R as b,G as c,T as d,N as e,V as f,j as g,C as h,Q as i,S as j,m as k,P as l,J as m,et as n,it as o,X as p,nt as q,O as r,at as s,st as t,tt as u,M as v,_ as w,k as x}
1
+ import{h as t}from"./p-83c3db60.js";import{i as s,c as e,e as i,f as n}from"./p-178ba906.js";const a="#ff5f4e",r="#19a1a9",o="#088000",h="#2e1b46",c="#8b86ca",u="#575195",d="#6b6b6b",l={doughnut:{size:155,colors:[o,d],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[c,h,d],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[u,r,h,a,d],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[o,d],padding:0,category:"stackedBar"},bar2:{size:400,colors:[d,c,u,h,r,a],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",r,"#8e4129",a],padding:0,category:"stackedBar"},bar4:{size:400,colors:[a,r,u],padding:0,category:"stackedBar"},bar5:{size:400,colors:[d,c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[c],padding:0,category:"simpleBar"},bar7:{size:400,colors:[u,r,a,d],padding:0,category:"simpleBar"}};function f(t){return"percentage"===t||"amount"===t?"show-values":""}const p=s.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"}),g=s.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function b(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function m(t,s,e){return e?Math.round(100*t/s):Math.round(1e4*t/s)/100}function v(t,s){return 360*t/s}function x(t){return parseFloat((Math.floor(100*t)/100).toFixed(2))}function w(t,s,e,i){var n=x(t+t*s*Math.cos(Math.PI*e/180)),a=x(t+t*s*Math.sin(Math.PI*e/180));return void 0!==i?{x1:n,y1:a,x2:x(t+t*s*Math.cos(Math.PI*i/180)),y2:x(t+t*s*Math.sin(Math.PI*i/180))}:{x:n,y:a}}function $(t,s,e,i,n){var a=x(n/2*t);return`A ${a}, ${a} 0 ${s} ${x(e)}, ${x(i)}`}function M(t){return Math.round(t/function(t){return function(t){let s=80*(t-300)/600+70;return s<70?70:s>150?150:s}(t)}(t))}function k(t,s){const e=t/s,i=10**Math.floor(Math.log10(e)),n=e/i;let a;return a=n>5?10*i:n>3?5*i:n>2?3*i:n>1.5?2*i:n>1?1.5*i:i,a}function y(t){if(this.popoverEl&&this.popoverEl.open&&"Enter"===t.key){const t=this.popoverEl.querySelector("button");t&&t.click()}}function z(t,s){this.popoverEl&&!this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),s.coords={x:t.clientX,y:t.clientY},B(this.popoverEl,s),H(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function A(t,s){this.popoverEl&&this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),this.focusedSliceId=s.id,s.coords=n(t.target),s.coords.x=s.coords.x+30,s.coords.y=s.coords.y+30,B(this.popoverEl,s),H(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function C(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this.isTabbing=!0,D.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.isTabbing=!0,I.call(this);break;case"Tab":S.call(this);break;case"Escape":this.popoverEl.open=!1,this.userIsNavigating=!1}}function B(t,s){t.open=!1,s.title&&s.text&&(t.sliceDetails=Object.assign({},s),window.setTimeout((()=>t.open=!0),30))}function I(){const t=e(document.activeElement),s=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;F.call(this,s)}function D(){if(this.sliceEls){const t=e(document.activeElement);let s=this.sliceEls.indexOf(t);-1===s?s=0:0===s?s=this.sliceEls.length-1:s-=1,F.call(this,s)}}function F(t){this.sliceEls&&this.el&&(this.userIsNavigating=!0,this.componentWrapperEl.tabIndex=-1,this.el.focusable=!1,this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.sliceEls[t].tabIndex=0,this.sliceEls[t].focusable=!0,this.sliceEls[t].focus(),this.focusedSliceId=this.sliceEls[t].id,window.setTimeout((()=>{this.popoverEl&&(this.popoverEl.open=!0)}),10))}function S(){this.focusedSliceId=void 0,this.sliceEls&&this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.userIsNavigating=!1,window.setTimeout((()=>{this.componentWrapperEl.tabIndex=0,this.el.focusable=!0,this.popoverEl&&(this.popoverEl.open=!1)}),100)}async function j(t){this.slicesDetails=[];let s=0;const e=Array.from(this.el.children);this.total=e.reduce(((t,s)=>t+parseInt(s.getAttribute("amount")||"0")),0);let i=[...l[t].colors];"bar2"===this.chartType&&(e.length<=5&&i.splice(1,1),e.length<=4&&i.splice(2,1)),"bar3"===t&&2===e.length&&(i=[i[1],i[3]]),"doughnut2"===t&&e.length<5&&(i.splice(2,1),e.length<4&&i.shift()),"bar5"!==t||this.notStartedColor||i.shift();let n=0;e.forEach(((e,a)=>{const r=e.getAttribute("amount");if(null==r)return;const o=parseInt(r||"0"),h=m(o,this.total,!0);let c=a;"bar6"===t&&(c=0);const u={amount:o,visualAmount:o,perc:h,legend:e.getAttribute("legend"),color:i[c]||d,offset:s,id:`${this.uid}-${n+1}`,title:e.getAttribute("popover-title"),text:e.getAttribute("popover-text"),buttonText:e.getAttribute("popover-button-text"),sliceRef:e,inSmallCluster:!1,index:n};s+=o,this.slicesDetails.push(u),n++}))}function K(t,s,e){const i=v(s,this.total)-90,n=t/this.total*360;let a=i+n;const r=n>180?"1 1":"0 1",o=n>180?"1 0":"0 0",h=this.chartDetails.size/2,c=this.chartDetails.thickness,u="doughnut"===e?2.25:3;360===n&&(a-=.01);const d=w(h,1,i+1.5,a),l=w(h,c,i+u,a);return`M ${d.x1}, ${d.y1} `+$(1,r,d.x2,d.y2,this.chartDetails.size)+` L ${l.x2}, ${l.y2} `+$(c,o,l.x1,l.y1,this.chartDetails.size)+" z"}function N(){const e=s.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return t("div",{id:"chart-instructions"},e)}function T(s){const e=this.chartDetails.size+this.chartDetails.padding,i="doughnut"===s;let n=i?this.slicesDetails:function(t,s){let e=[...t].sort(((t,s)=>t.amount===s.amount?0:t.amount>s.amount?-1:1)),i=0;return e.filter((t=>t.amount>0)).forEach(((t,n)=>{const a=e[n===e.length-1?0:n+1],r=m(e[0===n?e.length-1:n-1].amount,s,!0),o=m(a.amount,s,!0),h=0===t.perc?8:5;t.inSmallCluster=t.perc<4&&(r<h||o<h),t.offset=i,i+=t.amount})),e}(this.slicesDetails,this.total);n=function(t,s,e){const i=s.map((t=>v(t.amount,e)));if(i.some((t=>0!==t&&t<7))){const t=i.map((t=>0==t?t:Math.max(t,7))),n=t.reduce(((t,s)=>t+(s>7&&0!==s?s:0)),0),a=360-t.reduce(((t,s)=>t+(s>7&&0!==s?0:s)),0),r=(n-a)/a,o=t.map((t=>t>7?t-r*t:0==t?0:7));let h=0;s=s.map(((t,s)=>{const i=o[s]/360*e,n=h;return h+=i,Object.assign(Object.assign({},t),{visualAmount:i,offset:n})}))}return s}(0,n,this.total);const a=n[0].amount;let r=m(a,this.total,!0);return 0===r&&a>0?r="<1%":100===r&&a<this.total?r=">99%":r+="%",t("div",{class:"chart-wrapper doughnut-wrapper"},t("svg",{width:e+"px",height:e+"px",id:`graphic-${this.uid}`,class:"doughnut-svg"},t("defs",null,t("filter",{id:"wmHoverDropShadow"},t("feGaussianBlur",{stdDeviation:"3"}),t("feOffset",{result:"offsetblur"}),t("feFlood",{"flood-color":"#333"}),t("feComposite",{operator:"in",in2:"offsetblur"}),t("feMerge",null,t("feMergeNode",null),t("feMergeNode",{in:"SourceGraphic"})))),n.map((t=>W.call(this,t,s))),q.call(this),i?t("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},r):t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`,"text-anchor":"middle","dominant-baseline":"middle"},n.map((t=>t.amount>0&&!t.inSmallCluster?E.call(this,t):"")))))}function H(t,s){t.forEach((t=>{t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==s.index?t.classList.add("faded"):t.classList.remove("faded")}))}function O(t){t.forEach((t=>{t.classList.remove("faded")}))}function W(s,e){const i=m(s.amount,this.total,!0)+"%";return!isNaN(s.amount)&&t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("path",{id:s.id,class:"segment doughnut-segment",fill:s.visualAmount?s.color:"transparent",d:K.call(this,s.visualAmount,s.offset,e),onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),role:"img","aria-label":`${s.legend}, ${i}`,"data-segmentindex":s.index}))}function q(){return this.isTabbing?t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("use",{tabindex:-1,id:"kfbg1",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfstroke",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfbg2",xlinkHref:`#${this.focusedSliceId}`})):""}function E(s){const e=v(s.offset+s.visualAmount/2,this.total);let i,{x:n,y:a}=w(this.chartDetails.size/2,1.4,e-90);return i=0===s.perc&&s.amount>0?"<1%":100===s.perc&&s.amount<this.total?">99%":s.perc+"%",t("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":s.index},i)}function G(s){const e="bar"===s,i=this.el.shadowRoot.querySelectorAll(".value");return i.length>0&&requestAnimationFrame((()=>{let t=[],s=!1;i.forEach((e=>{e.classList.remove("hidden");const i=parseInt(e.dataset.value);if(t.length>0&&0!=i){const n=e.getBoundingClientRect().left-4;t.forEach((t=>{const a=parseInt(t.dataset.value);t.getBoundingClientRect().right>n&&((i<a?e:t).classList.add("hidden"),s=!0)}))}!e.classList.contains("hidden")&&i>0&&t.push(e)})),(this.isBar||this.isDoughnut)&&this.showHiddenValuesMessage(s)})),t("div",{class:"chart-wrapper bar-wrapper"},e?t("div",{class:"single-perc"},m(this.slicesDetails[0].amount,this.total,!0)+"%"):"","bar3"===this.chartType&&this.drawAxis(),t("div",{class:`inner-stacked-bar-wrapper ${f(this.valueFormat)}`},e?"":t("div",{class:`values ${this.valueFormat}`},this.slicesDetails.map((t=>this.renderBarText(t,5)))),t("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((t=>L.call(this,t,5)))),e?P.call(this):""),"bar3"===this.chartType?t("div",{class:"bar3-axis-label","aria-hidden":"true"},t("span",null,"0%"),t("span",null,"100%")):"")}function L(s,e){const i=m(s.amount,this.total,!1),n=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper"),a=i/100*(n?n.offsetWidth:this.el.offsetWidth)>=e,r=a||0==s.amount?`${i}%`:`${e}px`;let o="";return"percentage"==this.valueFormat?o=`${m(s.amount,this.total,!0)} %`:"amount"==this.valueFormat&&(o=s.amount.toString()),t("div",{class:`segment stacked-bar-segment ${0===m(s.amount,this.total,!1)?"zero":""} ${a?"":"fixed-width"}`,style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("span",{class:"sr-only"},`${s.legend} ${o}`))}function R(s){const e=this.slicesDetails.map((t=>t.amount)).reduce(((t,s)=>t>s?t:s)),n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);let a=M(this.el.getBoundingClientRect().width-n-48),r=k(e,a);const o=Math.floor((a*r-e)/r);a-=o,this.el.style.setProperty("--backgroundSize",100/a+"%"),this.el.style.setProperty("--labelWidth",this.labelWidth),"bar7"!==s||this.showBarLegend||this.el.style.setProperty("--labelWidth","0px");const h=[];this.slicesDetails.forEach((i=>{i.legend&&h.push(function(s,e,i){return t("label",{class:`label${"bar7"!==i||e?"":" hidden"}`},s)}(i.legend,this.showBarLegend,s)),h.push(U.call(this,i,r,a,e))}));const c=[];for(let s=1;s<=a;s++){const e=b(i(s,r));c.push(t("div",{class:"tick"},t("span",null,e)))}const u="bar6"===s&&this.showGrid&&this.el.getBoundingClientRect().width>300;return t("div",{class:"chart-wrapper simple-bar-wrapper"},t("div",{class:`chart ${f(this.valueFormat)}`},u&&t("div",{class:"gridlines"}),t("div",{class:"rows"},h)),u&&t("div",{class:"x-axis","aria-hidden":"true"},t("div",{class:"zero"},t("span",null,"0")),c))}function U(s,e,i,n){const a=m(s.amount,"bar6"===this.currentChartType?e*i:n,!1),r=a?a+"%":"1px",o=b(s.amount);let h="amount"===this.valueFormat?o:"";return"bar6"===this.currentChartType&&"percentage"===this.valueFormat?h=s.amount+"%":"bar7"===this.currentChartType&&"percentage"===this.valueFormat&&(h=(0===this.total?"0":m(s.amount,this.total,!0))+"%"),t("div",{class:"bar segment",style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("div",{class:"value"},h))}function V(s){if(this.showLegend){const e=this.slicesDetails.reduce(((t,s)=>!!s.inSmallCluster||t),!1);return this.isDoughnut&&this.showHiddenValuesMessage(e),t("div",{class:"legend-wrapper"},t("div",{class:`legend ${s} ${"bar"===this.mode?"--top":"--bottom"}`,"aria-hidden":"true"},this.slicesDetails.map((t=>{const s="amount"==this.printModeFormat?`${t.amount}/${this.total}`:`${m(t.amount,this.total,!0)}%`;if(t.amount||t.legend)return J.call(this,{key:t.legend,color:t.color},s,t)}))),this.isDoughnut&&!this.printMode&&Q())}}function J(s,e="",i=null){const n=t=>{i&&(i.coords={x:t.clientX,y:t.clientY},B(this.popoverEl,i),H(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),i))};return t("div",{class:"legend-item",onClick:t=>n(t),"data-segmentindex":i?i.index:null},t("div",{class:"legend-color",style:{backgroundColor:s.color}}),t("div",{class:"legend-text"},s.key,e&&t("span",{class:"print-value "+(this.printMode?"force-visible":"")},": ",e)))}function P(){if(this.completionMessage)return t("div",{class:"completion-message"},this.completionMessage)}function Q(){return t("div",{class:"hidden-values-warning hidden"},p,t("br",null),g)}function X(t,s,e,i=0){switch(e){case"amount":return t.toFixed(i);case"percentage":const e=t/s*100;return t>0&&e<1?"<1%":e>99&&t!==s?">99%":`${Math.round(e).toFixed(0)}%`;default:return""}}function Y(t,s=[1,1.5,2,2.5,3,5,10]){const e=t/Math.pow(10,Math.floor(Math.log10(t)));return s.some((t=>Math.abs(e-t)<1e-4))}function Z(t){if(0===t||!Number.isFinite(t))return 0;let s=Math.abs(t);for(let t=0;t<=15;t++){const e=Math.round(s),i=1e-9;if(Math.abs(s-e)<i)return t;s*=10}return 2}function _(t){if(0===t||!Number.isFinite(t))return 0;const s=Math.abs(t);let e=s;return s>=1e6?e=s/1e6:s>=1e3&&(e=s/1e3),Math.max(Z(s),Z(e))}function tt(t,s){const e=void 0!==s;if(t>=1e6){const i=t/1e6;return e?`${i.toFixed(s)}M`:`${i.toFixed(t%1e6==0?0:1)}M`}if(t>=1e3){const i=t/1e3;return e?`${i.toFixed(s)}K`:`${i.toFixed(t%1e3==0?0:1)}K`}return e?t.toFixed(s):t.toString()}function st(t,s){for(let e=t;e>=1;e--){const t=s/e;if(Y(t))return{numIntervals:e,interval:t}}return{numIntervals:1,interval:s}}function et(t){if(t<=0)return 0;const s=[1,1.5,2,2.5,3,5,10],e=Math.pow(10,Math.floor(Math.log10(t))),i=t/e;for(const t of s)if(t>=i)return t*e;return 10*e}function it(t){const s=new Set,e=[];return t.forEach((t=>{t.forEach((t=>{s.has(t.barLegend)||(s.add(t.barLegend),e.push(t))}))})),e}function nt(t){const s=new Map;return t.forEach((t=>{var e;let i=null!==(e=t.groupName)&&void 0!==e?e:null;s.has(i)||s.set(i,[]),s.get(i).push(t)})),s}function at(t){const s=[...t],e=[];s.forEach((t=>{t.groupName&&!e.includes(t.groupName)&&e.push(t.groupName)}));const i=s.filter((t=>t.groupName===e[0])).map((t=>t.barLegend));return s.sort(((t,s)=>{const n=e.indexOf(t.groupName||""),a=e.indexOf(s.groupName||"");return n!==a?n-a:i.indexOf(t.barLegend)-i.indexOf(s.barLegend)}))}export{l as a,R as b,G as c,T as d,N as e,V as f,j as g,C as h,Q as i,S as j,m as k,P as l,J as m,et as n,it as o,X as p,nt as q,O as r,at as s,st as t,tt as u,M as v,_ as w,k as x}