@hhgtech/hhg-components 1.29.79 → 1.29.81

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 (346) hide show
  1. package/build/{index-aefa01a7.js → WhatsApp-82018096.js} +24 -276
  2. package/build/adapters.js +17 -16
  3. package/build/atoms.js +100 -0
  4. package/build/babyGrowth.js +162 -164
  5. package/build/cache.js +3 -3
  6. package/build/care.js +18 -18
  7. package/build/components.js +179 -163
  8. package/build/{constants-94957c92.js → constants-3a475a22.js} +2 -2
  9. package/build/constants-513a9a41.js +318 -0
  10. package/build/{index-6036e2a0.js → constants-936f45e9.js} +0 -136
  11. package/build/constants-dd16fb4d.js +425 -0
  12. package/build/constants.js +3 -3
  13. package/build/{core-279a7b4f.js → core-9e44ee99.js} +2 -2
  14. package/build/{index-5033f644.js → dataTransform-6b4d7a4e.js} +85 -134
  15. package/build/{dataTransform-1c96db25.js → dataTransform-c1701cbd.js} +1 -1
  16. package/build/defaultClassWrapper-e87ca8ef.js +21 -0
  17. package/build/ecom.js +5 -5
  18. package/build/esm/WhatsApp-7d3732e2.js +46 -0
  19. package/build/esm/adapters.js +17 -16
  20. package/build/esm/atoms.js +57 -0
  21. package/build/esm/babyGrowth.js +87 -89
  22. package/build/esm/cache.js +3 -3
  23. package/build/esm/care.js +17 -17
  24. package/build/esm/components.js +91 -75
  25. package/build/esm/constants-6bdb97a8.js +417 -0
  26. package/build/esm/constants-71d9f33b.js +307 -0
  27. package/build/esm/{constants-78d473b4.js → constants-ebf80e5f.js} +2 -2
  28. package/build/esm/{index-122dd8ee.js → constants-f77fc231.js} +1 -127
  29. package/build/esm/constants.js +3 -3
  30. package/build/esm/{core-2715a7c7.js → core-c72e0ff5.js} +2 -2
  31. package/build/esm/{index-f672661d.js → dataTransform-3e8e25ba.js} +87 -135
  32. package/build/esm/{dataTransform-24bd11e8.js → dataTransform-6c032113.js} +1 -1
  33. package/build/esm/defaultClassWrapper-31caf23b.js +15 -0
  34. package/build/esm/ecom.js +5 -5
  35. package/build/esm/fixedBottomAdBlock-13ed4a34.js +3474 -0
  36. package/build/esm/footer.js +18 -18
  37. package/build/esm/gAssets.js +4 -4
  38. package/build/esm/{getDynamicHealthTool-d805169a.js → getDynamicHealthTool-7681e43a.js} +4 -4
  39. package/build/esm/{getSocialList-c8edb201.js → getSocialList-e8142513.js} +5 -6
  40. package/build/esm/healthToolsForm.js +40 -0
  41. package/build/esm/healthToolsForms.d.ts +7 -0
  42. package/build/esm/hooks.js +17 -17
  43. package/build/esm/i18n.js +2 -2
  44. package/build/esm/i18nV2.js +2 -2
  45. package/build/esm/index-16514f4d.js +156 -0
  46. package/build/esm/{index-2a4e676a.js → index-1da2ca0b.js} +2 -2
  47. package/build/esm/{utils-45e55363.js → index-1ecbcf21.js} +71 -105
  48. package/build/esm/{index-e2d856fc.js → index-21eac858.js} +1043 -1232
  49. package/build/esm/{index-c5b3a3ba.js → index-2774583d.js} +35 -176
  50. package/build/esm/index-29d04985.js +14 -0
  51. package/build/esm/index-2b9213cf.js +195 -0
  52. package/build/esm/index-3078acec.js +275 -0
  53. package/build/esm/index-376bee14.js +847 -0
  54. package/build/esm/index-38f50764.js +557 -0
  55. package/build/esm/index-42ad7763.js +95 -0
  56. package/build/esm/{index-47a90477.js → index-598ab51b.js} +5 -5
  57. package/build/esm/{index-ecb46439.js → index-69248434.js} +33 -5
  58. package/build/esm/index-6ac73f00.js +1114 -0
  59. package/build/esm/index-703205e3.js +54 -0
  60. package/build/esm/{index-7c6316a6.js → index-73301602.js} +2 -2
  61. package/build/esm/index-76d20d3f.js +100 -0
  62. package/build/esm/{index-ec38e886.js → index-780a08de.js} +2 -2
  63. package/build/esm/{index-92fd8661.js → index-78255d6c.js} +2 -2
  64. package/build/esm/{index-9b3bf9da.js → index-7cbe2a10.js} +12 -11
  65. package/build/esm/{index-5265867b.js → index-7e756cb8.js} +11 -10
  66. package/build/esm/{index.styled-eb1001c3.js → index-87a2ea8c.js} +21 -3
  67. package/build/esm/index-88ad2ca3.js +1681 -0
  68. package/build/esm/index-8952ceac.js +202 -0
  69. package/build/esm/index-996f7caf.js +148 -0
  70. package/build/esm/{index-272d3d01.js → index-9f1899f2.js} +4 -4
  71. package/build/esm/{index-63be4c47.js → index-b1bb27aa.js} +134 -62
  72. package/build/esm/{index-ef96fd13.js → index-bef3c9bd.js} +3 -3
  73. package/build/esm/{index-670d21ca.js → index-c1af3a8e.js} +13 -12
  74. package/build/esm/{index-b2eed677.js → index-c200bff6.js} +2 -2
  75. package/build/esm/{index-0de64a0f.js → index-cb4afb33.js} +6 -6
  76. package/build/esm/{index-741ce3ab.js → index-cdac57da.js} +1 -1
  77. package/build/esm/{index-49d819b7.js → index-cf6beac8.js} +2 -13
  78. package/build/esm/{index-ad5c69c9.js → index-d218b94e.js} +2 -2
  79. package/build/esm/index-d6201fa4.js +42 -0
  80. package/build/esm/index-e104ad21.js +335 -0
  81. package/build/esm/index-e26514ee.js +262 -0
  82. package/build/esm/index-f27edf45.js +130 -0
  83. package/build/esm/index.css +1 -1
  84. package/build/esm/index.js +89 -73
  85. package/build/esm/lead.js +23 -33
  86. package/build/esm/logoIcon-d93bc56e.js +104 -0
  87. package/build/esm/mantine.js +22 -20
  88. package/build/esm/misc.js +21 -21
  89. package/build/esm/molecules.js +88 -0
  90. package/build/esm/navigation.js +37 -37
  91. package/build/esm/onboardingV2.js +26 -35
  92. package/build/esm/organisms.js +57 -0
  93. package/build/esm/pwg.js +19 -19
  94. package/build/esm/{routing-e7ff0e08.js → routing-bebdc8b7.js} +2 -2
  95. package/build/esm/subot.js +31 -27
  96. package/build/esm/surveyOrPremiumBanner.js +45 -0
  97. package/build/esm/surveyQuestionCard.js +13 -0
  98. package/build/esm/surveyThankyouCard-bf6080eb.js +446 -0
  99. package/build/esm/together.js +35 -37
  100. package/build/esm/{types-37f2c5d4.js → types-2580132c.js} +28 -30
  101. package/build/esm/{types-ce933060.js → types-be952df2.js} +13 -13
  102. package/build/esm/types.js +1 -1
  103. package/build/esm/{useCategory-8e1387db.js → useCategory-8f109eb7.js} +5 -5
  104. package/build/esm/{useHealthToolCache-28115f15.js → useHealthToolCache-d97dfa00.js} +2 -2
  105. package/build/esm/{useMantineLocale-bcfdeb0c.js → useMantineLocale-4fb67342.js} +3 -3
  106. package/build/esm/{usePlacesAutocomplete-837f491d.js → usePlacesAutocomplete-fe2e4cbe.js} +1 -1
  107. package/build/esm/{useTranslations-b8c49c9b.js → useTranslations-fbf6a6ab.js} +1 -1
  108. package/build/esm/{utils-86ef2283.js → utils-cef111b6.js} +1 -1
  109. package/build/esm/{defaultClassWrapper-fcdfc7a3.js → utils-d5a0b58f.js} +60 -408
  110. package/build/esm/vaccination.js +18 -29
  111. package/build/fixedBottomAdBlock-0d4379d1.js +3521 -0
  112. package/build/footer.js +18 -18
  113. package/build/gAssets.js +4 -4
  114. package/build/{getDynamicHealthTool-27b332df.js → getDynamicHealthTool-2a92e1a5.js} +4 -4
  115. package/build/{getSocialList-d16604ba.js → getSocialList-97e7bcc1.js} +8 -9
  116. package/build/healthToolsForm.js +54 -0
  117. package/build/healthToolsForms.d.ts +7 -0
  118. package/build/hooks.js +17 -17
  119. package/build/i18n.js +1 -1
  120. package/build/i18nV2.js +1 -1
  121. package/build/index-058b3c0f.js +1127 -0
  122. package/build/{index-e914bc7c.js → index-05f106c2.js} +1050 -1240
  123. package/build/index-06fa8444.js +102 -0
  124. package/build/{index-e932125b.js → index-1efa7d84.js} +2 -2
  125. package/build/index-247a9eb2.js +1693 -0
  126. package/build/{index-4f5ce9db.js → index-264eeddd.js} +2 -2
  127. package/build/index-3d0d22b3.js +565 -0
  128. package/build/index-3dcb9bc6.js +61 -0
  129. package/build/{index-aff82754.js → index-4af08ec2.js} +2 -2
  130. package/build/index-6acb08c0.js +343 -0
  131. package/build/{index-1b7f73fa.js → index-6bc3f8c3.js} +5 -5
  132. package/build/{index-a903fdaa.js → index-6c27b627.js} +58 -201
  133. package/build/index-73cde644.js +156 -0
  134. package/build/{index-65765b10.js → index-77a2b9ee.js} +1 -1
  135. package/build/{index-dbaa00eb.js → index-7c1dc717.js} +12 -11
  136. package/build/index-7da7b531.js +107 -0
  137. package/build/{index-8c04d412.js → index-838b0f95.js} +6 -6
  138. package/build/index-a7de42d1.js +202 -0
  139. package/build/{index-517f6538.js → index-a86ea1b6.js} +2 -2
  140. package/build/index-aa818139.js +49 -0
  141. package/build/{index-4cd9cc62.js → index-b773bc3d.js} +4 -4
  142. package/build/index-bef2bc73.js +136 -0
  143. package/build/{utils-120200ad.js → index-c225ef22.js} +76 -120
  144. package/build/{index-42621fec.js → index-c2900d8c.js} +2 -2
  145. package/build/index-cb0544e5.js +866 -0
  146. package/build/{index-5aac5fb6.js → index-d34cd464.js} +2 -2
  147. package/build/{index-4026b8c5.js → index-d5b4089d.js} +141 -68
  148. package/build/index-dba2e361.js +20 -0
  149. package/build/{index-586f0a4f.js → index-dcbd8bf3.js} +37 -9
  150. package/build/index-dd1392e3.js +167 -0
  151. package/build/{index-875d81d3.js → index-def9867a.js} +11 -10
  152. package/build/index-e0bf03ac.js +277 -0
  153. package/build/index-ee964d3c.js +209 -0
  154. package/build/index-f10efb61.js +270 -0
  155. package/build/{index-701c74a1.js → index-f1f4fbb9.js} +13 -12
  156. package/build/{index-27c71242.js → index-f28c47ce.js} +1 -13
  157. package/build/{index-e39f5b25.js → index-f6575703.js} +2 -2
  158. package/build/{index.styled-8c14cf6c.js → index-fe7345fa.js} +22 -4
  159. package/build/index.css +1 -1
  160. package/build/index.js +190 -174
  161. package/build/lead.js +29 -39
  162. package/build/logoIcon-ee9a5501.js +110 -0
  163. package/build/mantine.js +24 -23
  164. package/build/misc.js +21 -21
  165. package/build/molecules.js +149 -0
  166. package/build/navigation.js +37 -37
  167. package/build/onboardingV2.js +45 -54
  168. package/build/organisms.js +74 -0
  169. package/build/pwg.js +19 -19
  170. package/build/{routing-40d4f591.js → routing-f6d54205.js} +2 -2
  171. package/build/subot.js +113 -109
  172. package/build/surveyOrPremiumBanner.js +53 -0
  173. package/build/surveyQuestionCard.js +22 -0
  174. package/build/surveyThankyouCard-ead6b355.js +454 -0
  175. package/build/together.js +41 -43
  176. package/build/{types-692f1edc.js → types-4ba4268f.js} +49 -49
  177. package/build/{types-ade68559.js → types-6c5643a2.js} +203 -205
  178. package/build/types.js +1 -1
  179. package/build/{useCategory-bbe47716.js → useCategory-e2c91f59.js} +5 -5
  180. package/build/{useHealthToolCache-80cb8990.js → useHealthToolCache-2a53367b.js} +2 -2
  181. package/build/{useMantineLocale-97b962eb.js → useMantineLocale-a4f0c61d.js} +3 -3
  182. package/build/{usePlacesAutocomplete-99a452c0.js → usePlacesAutocomplete-c76d0caf.js} +1 -1
  183. package/build/{useTranslations-76f64595.js → useTranslations-200168a3.js} +1 -1
  184. package/build/{defaultClassWrapper-feaae206.js → utils-95d9832e.js} +68 -427
  185. package/build/{utils-dc4471cf.js → utils-af695515.js} +1 -1
  186. package/build/vaccination.js +58 -69
  187. package/package.json +1 -1
  188. package/build/Instagram-5735e971.js +0 -32
  189. package/build/esm/Instagram-98c713bc.js +0 -26
  190. package/build/esm/index-18a80466.js +0 -33
  191. package/build/esm/index-1f6890ad.js +0 -1086
  192. package/build/esm/index-40fc06d9.js +0 -298
  193. package/build/esm/index-47d01c08.js +0 -23
  194. package/build/esm/index-687f9ee4.js +0 -71
  195. package/build/esm/index-aeb4ceda.js +0 -7245
  196. package/build/esm/index.styles-bff4ac47.js +0 -1322
  197. package/build/index-561d71d9.js +0 -7324
  198. package/build/index-5ff91adf.js +0 -39
  199. package/build/index-74b64958.js +0 -77
  200. package/build/index-84f7ce80.js +0 -30
  201. package/build/index-c9e324de.js +0 -1100
  202. package/build/index.styles-61201019.js +0 -1361
  203. /package/build/{BMI_BOYS.percentile.monthly-b2166d34.js → BMI_BOYS.percentile.monthly-71fb1c9f.js} +0 -0
  204. /package/build/{BMI_BOYS.percentile.weekly-8b80b329.js → BMI_BOYS.percentile.weekly-b2b344a7.js} +0 -0
  205. /package/build/{BMI_BOYS.percentile.yearly-233e699b.js → BMI_BOYS.percentile.yearly-031ddade.js} +0 -0
  206. /package/build/{BMI_BOYS.zscore.monthly-17ed8572.js → BMI_BOYS.zscore.monthly-bb1f9962.js} +0 -0
  207. /package/build/{BMI_BOYS.zscore.weekly-36c9735b.js → BMI_BOYS.zscore.weekly-d6198d53.js} +0 -0
  208. /package/build/{BMI_BOYS.zscore.yearly-e43d7246.js → BMI_BOYS.zscore.yearly-48255337.js} +0 -0
  209. /package/build/{BMI_GIRLS.percentile.monthly-94ddebb1.js → BMI_GIRLS.percentile.monthly-e3e284ee.js} +0 -0
  210. /package/build/{BMI_GIRLS.percentile.weekly-dc53474b.js → BMI_GIRLS.percentile.weekly-9f2d3977.js} +0 -0
  211. /package/build/{BMI_GIRLS.percentile.yearly-897e47f7.js → BMI_GIRLS.percentile.yearly-c79f34ce.js} +0 -0
  212. /package/build/{BMI_GIRLS.zscore.monthly-44dcd046.js → BMI_GIRLS.zscore.monthly-11092df0.js} +0 -0
  213. /package/build/{BMI_GIRLS.zscore.weekly-6e9400e5.js → BMI_GIRLS.zscore.weekly-5c375d2b.js} +0 -0
  214. /package/build/{BMI_GIRLS.zscore.yearly-3cd8c63d.js → BMI_GIRLS.zscore.yearly-adbba8e3.js} +0 -0
  215. /package/build/{ChevronDown-2775b53a.js → ChevronDown-f7e25d61.js} +0 -0
  216. /package/build/{Close-f419724f.js → Close-36b0da99.js} +0 -0
  217. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-35ed4380.js → HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js} +0 -0
  218. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c7dc736d.js → HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js} +0 -0
  219. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4c3b2318.js → HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js} +0 -0
  220. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1f1cc8dd.js → HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js} +0 -0
  221. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-67593063.js → HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js} +0 -0
  222. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-197c548c.js → HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js} +0 -0
  223. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-47029e7a.js → HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js} +0 -0
  224. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-faf6b122.js → HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js} +0 -0
  225. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f79cdc09.js → HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js} +0 -0
  226. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-329fc5a0.js → HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js} +0 -0
  227. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-aa73a5d6.js → HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js} +0 -0
  228. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5fdab08f.js → HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js} +0 -0
  229. /package/build/{HEIGHT_BOYS.percentile.monthly-190579ee.js → HEIGHT_BOYS.percentile.monthly-35138a98.js} +0 -0
  230. /package/build/{HEIGHT_BOYS.percentile.weekly-d902f59f.js → HEIGHT_BOYS.percentile.weekly-0216c35b.js} +0 -0
  231. /package/build/{HEIGHT_BOYS.percentile.yearly-87254461.js → HEIGHT_BOYS.percentile.yearly-f698e45d.js} +0 -0
  232. /package/build/{HEIGHT_BOYS.zscore.monthly-c741a8bb.js → HEIGHT_BOYS.zscore.monthly-01195728.js} +0 -0
  233. /package/build/{HEIGHT_BOYS.zscore.weekly-c0b2c6c0.js → HEIGHT_BOYS.zscore.weekly-993e9cf2.js} +0 -0
  234. /package/build/{HEIGHT_BOYS.zscore.yearly-1a506923.js → HEIGHT_BOYS.zscore.yearly-fee3ed69.js} +0 -0
  235. /package/build/{HEIGHT_GIRLS.percentile.monthly-9b2b4c93.js → HEIGHT_GIRLS.percentile.monthly-27b2474a.js} +0 -0
  236. /package/build/{HEIGHT_GIRLS.percentile.weekly-5ddecf9a.js → HEIGHT_GIRLS.percentile.weekly-77bff236.js} +0 -0
  237. /package/build/{HEIGHT_GIRLS.percentile.yearly-fa289855.js → HEIGHT_GIRLS.percentile.yearly-6200a720.js} +0 -0
  238. /package/build/{HEIGHT_GIRLS.zscore.monthly-c9db2d0d.js → HEIGHT_GIRLS.zscore.monthly-94978e64.js} +0 -0
  239. /package/build/{HEIGHT_GIRLS.zscore.weekly-c38c0951.js → HEIGHT_GIRLS.zscore.weekly-7951beb1.js} +0 -0
  240. /package/build/{HEIGHT_GIRLS.zscore.yearly-d78a2a93.js → HEIGHT_GIRLS.zscore.yearly-c2eca714.js} +0 -0
  241. /package/build/{Visible-34df6ee7.js → Visible-eee51ba6.js} +0 -0
  242. /package/build/{WEIGHT_BOYS.percentile.monthly-7a5f3721.js → WEIGHT_BOYS.percentile.monthly-6a6f901b.js} +0 -0
  243. /package/build/{WEIGHT_BOYS.percentile.weekly-d86f23fa.js → WEIGHT_BOYS.percentile.weekly-737fb867.js} +0 -0
  244. /package/build/{WEIGHT_BOYS.percentile.yearly-c154651c.js → WEIGHT_BOYS.percentile.yearly-7772b5e5.js} +0 -0
  245. /package/build/{WEIGHT_BOYS.zscore.monthly-8f39952a.js → WEIGHT_BOYS.zscore.monthly-8db2e7d6.js} +0 -0
  246. /package/build/{WEIGHT_BOYS.zscore.weekly-3118363f.js → WEIGHT_BOYS.zscore.weekly-ddd37c1a.js} +0 -0
  247. /package/build/{WEIGHT_BOYS.zscore.yearly-d463cfe7.js → WEIGHT_BOYS.zscore.yearly-332a8f7b.js} +0 -0
  248. /package/build/{WEIGHT_GIRLS.percentile.monthly-4d025f09.js → WEIGHT_GIRLS.percentile.monthly-3edad688.js} +0 -0
  249. /package/build/{WEIGHT_GIRLS.percentile.weekly-89f1f560.js → WEIGHT_GIRLS.percentile.weekly-f113a82a.js} +0 -0
  250. /package/build/{WEIGHT_GIRLS.percentile.yearly-e79630f6.js → WEIGHT_GIRLS.percentile.yearly-95afbeaf.js} +0 -0
  251. /package/build/{WEIGHT_GIRLS.zscore.monthly-64bd7db5.js → WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js} +0 -0
  252. /package/build/{WEIGHT_GIRLS.zscore.weekly-628674eb.js → WEIGHT_GIRLS.zscore.weekly-2b113519.js} +0 -0
  253. /package/build/{WEIGHT_GIRLS.zscore.yearly-5bb1b712.js → WEIGHT_GIRLS.zscore.yearly-c82b04db.js} +0 -0
  254. /package/build/{animation-21a29164.js → animation-e1375a3b.js} +0 -0
  255. /package/build/{cart-cd1f9e9e.js → cart-67147d06.js} +0 -0
  256. /package/build/{cookieHelper-6fd4e238.js → cookieHelper-17491ce8.js} +0 -0
  257. /package/build/{doctor-15fac518.js → doctor-17b525f8.js} +0 -0
  258. /package/build/esm/{BMI_BOYS.percentile.monthly-bc430a4a.js → BMI_BOYS.percentile.monthly-7c9d4923.js} +0 -0
  259. /package/build/esm/{BMI_BOYS.percentile.weekly-404f8241.js → BMI_BOYS.percentile.weekly-c410294a.js} +0 -0
  260. /package/build/esm/{BMI_BOYS.percentile.yearly-cc6a1393.js → BMI_BOYS.percentile.yearly-695a4fe2.js} +0 -0
  261. /package/build/esm/{BMI_BOYS.zscore.monthly-e94926d8.js → BMI_BOYS.zscore.monthly-9fb9f281.js} +0 -0
  262. /package/build/esm/{BMI_BOYS.zscore.weekly-8d1da103.js → BMI_BOYS.zscore.weekly-d2109e4b.js} +0 -0
  263. /package/build/esm/{BMI_BOYS.zscore.yearly-94f8b37e.js → BMI_BOYS.zscore.yearly-bfa5361b.js} +0 -0
  264. /package/build/esm/{BMI_GIRLS.percentile.monthly-356bd71d.js → BMI_GIRLS.percentile.monthly-f5f60596.js} +0 -0
  265. /package/build/esm/{BMI_GIRLS.percentile.weekly-72979d47.js → BMI_GIRLS.percentile.weekly-26e4e864.js} +0 -0
  266. /package/build/esm/{BMI_GIRLS.percentile.yearly-729c84f5.js → BMI_GIRLS.percentile.yearly-5a2b297d.js} +0 -0
  267. /package/build/esm/{BMI_GIRLS.zscore.monthly-6dea8018.js → BMI_GIRLS.zscore.monthly-4e80bed5.js} +0 -0
  268. /package/build/esm/{BMI_GIRLS.zscore.weekly-da7a5d01.js → BMI_GIRLS.zscore.weekly-03b79f0b.js} +0 -0
  269. /package/build/esm/{BMI_GIRLS.zscore.yearly-0b0a5cae.js → BMI_GIRLS.zscore.yearly-822ed949.js} +0 -0
  270. /package/build/esm/{ChevronDown-5f18ca6b.js → ChevronDown-74267eb8.js} +0 -0
  271. /package/build/esm/{Close-87c65991.js → Close-372aa467.js} +0 -0
  272. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-1c910c23.js → HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js} +0 -0
  273. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2da702f0.js → HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js} +0 -0
  274. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9fbeb684.js → HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c93df36e.js → HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-930f82b2.js → HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f7523042.js → HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d93ddef7.js → HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2c7db258.js → HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-07202ee1.js → HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fafa785c.js → HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-28b41bdb.js → HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c5b3bc8b.js → HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js} +0 -0
  284. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0a092d31.js → HEIGHT_BOYS.percentile.monthly-359c4335.js} +0 -0
  285. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5827b445.js → HEIGHT_BOYS.percentile.weekly-a4d4acd3.js} +0 -0
  286. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b88283c2.js → HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js} +0 -0
  287. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d275f074.js → HEIGHT_BOYS.zscore.monthly-12331258.js} +0 -0
  288. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-20bbf392.js → HEIGHT_BOYS.zscore.weekly-172054d3.js} +0 -0
  289. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-2eea3a9c.js → HEIGHT_BOYS.zscore.yearly-bb47a3be.js} +0 -0
  290. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-9ad65492.js → HEIGHT_GIRLS.percentile.monthly-c93c0b34.js} +0 -0
  291. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-898065d3.js → HEIGHT_GIRLS.percentile.weekly-f1f83097.js} +0 -0
  292. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ac5ceb79.js → HEIGHT_GIRLS.percentile.yearly-ccee4e55.js} +0 -0
  293. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-327bdfa5.js → HEIGHT_GIRLS.zscore.monthly-caf5410c.js} +0 -0
  294. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e25ddbc7.js → HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js} +0 -0
  295. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5531c2e3.js → HEIGHT_GIRLS.zscore.yearly-c3af35d3.js} +0 -0
  296. /package/build/esm/{Visible-70c720bb.js → Visible-3f9d7dca.js} +0 -0
  297. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-e199416b.js → WEIGHT_BOYS.percentile.monthly-8a4647df.js} +0 -0
  298. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0965076a.js → WEIGHT_BOYS.percentile.weekly-a2a6adf1.js} +0 -0
  299. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d04404d7.js → WEIGHT_BOYS.percentile.yearly-073df8b7.js} +0 -0
  300. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-be1ae0cd.js → WEIGHT_BOYS.zscore.monthly-bb9e73d2.js} +0 -0
  301. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8b6854c4.js → WEIGHT_BOYS.zscore.weekly-ef32ce7a.js} +0 -0
  302. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bd90b96f.js → WEIGHT_BOYS.zscore.yearly-6cc77688.js} +0 -0
  303. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a4bb8428.js → WEIGHT_GIRLS.percentile.monthly-a4b518bc.js} +0 -0
  304. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c288d810.js → WEIGHT_GIRLS.percentile.weekly-dcedaebb.js} +0 -0
  305. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-73a5ae07.js → WEIGHT_GIRLS.percentile.yearly-9e66577e.js} +0 -0
  306. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-cbcfdab4.js → WEIGHT_GIRLS.zscore.monthly-c07cb81f.js} +0 -0
  307. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-185ff336.js → WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js} +0 -0
  308. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c31a0aee.js → WEIGHT_GIRLS.zscore.yearly-e99ce511.js} +0 -0
  309. /package/build/esm/{animation-9a3ca482.js → animation-0b2299dc.js} +0 -0
  310. /package/build/esm/{cart-5f758c33.js → cart-f961dadc.js} +0 -0
  311. /package/build/esm/{cookieHelper-9c963e09.js → cookieHelper-73ce3871.js} +0 -0
  312. /package/build/esm/{doctor-1d62f054.js → doctor-8a07ca44.js} +0 -0
  313. /package/build/esm/{index-931414db.js → index-782fed08.js} +0 -0
  314. /package/build/esm/{index-4687d5f8.js → index-b65a8764.js} +0 -0
  315. /package/build/esm/{index-90e772e4.js → index-c3264b34.js} +0 -0
  316. /package/build/esm/{index-877eed06.js → index-e3787b20.js} +0 -0
  317. /package/build/esm/{isProduction-d39b7ab2.js → isProduction-5684a28c.js} +0 -0
  318. /package/build/esm/{localizeNumberFormat-f838842a.js → localizeNumberFormat-42ae8d89.js} +0 -0
  319. /package/build/esm/{normalizeLink-65565106.js → normalizeLink-d6f57223.js} +0 -0
  320. /package/build/esm/{number-cad310d0.js → number-13f075cf.js} +0 -0
  321. /package/build/esm/{paths-8fc18a86.js → paths-49a813e7.js} +0 -0
  322. /package/build/esm/{theme-eb1b39f6.js → theme-f18c2351.js} +0 -0
  323. /package/build/esm/{translationsContext-dfb42bf8.js → translationsContext-f3d1a7bd.js} +0 -0
  324. /package/build/esm/{tslib.es6-efad16cf.js → tslib.es6-761239c7.js} +0 -0
  325. /package/build/esm/{useIsInit-f341c0e8.js → useIsInit-ee864235.js} +0 -0
  326. /package/build/esm/{useOutsideClick-e10b28ce.js → useOutsideClick-7451aa57.js} +0 -0
  327. /package/build/esm/{useScrollbarSize-594c61c3.js → useScrollbarSize-84bb5b47.js} +0 -0
  328. /package/build/esm/{useUniqueId-d5f7586b.js → useUniqueId-c23213b6.js} +0 -0
  329. /package/build/esm/{utils-0d590d5e.js → utils-f8761b9d.js} +0 -0
  330. /package/build/{index-d54d6c50.js → index-97ebd7e1.js} +0 -0
  331. /package/build/{index-d8c60733.js → index-ba3797bb.js} +0 -0
  332. /package/build/{index-d628859e.js → index-bba97c2e.js} +0 -0
  333. /package/build/{index-0b957c10.js → index-df5cd44b.js} +0 -0
  334. /package/build/{isProduction-7f7f09ad.js → isProduction-aa963bf9.js} +0 -0
  335. /package/build/{localizeNumberFormat-011e6f65.js → localizeNumberFormat-90d4f9d5.js} +0 -0
  336. /package/build/{normalizeLink-23b10200.js → normalizeLink-451ae6d8.js} +0 -0
  337. /package/build/{number-249e0e0b.js → number-c2338382.js} +0 -0
  338. /package/build/{paths-02f54499.js → paths-e0bbfce7.js} +0 -0
  339. /package/build/{theme-416e0fd4.js → theme-e4f7f487.js} +0 -0
  340. /package/build/{translationsContext-6f3c14ea.js → translationsContext-39528d2f.js} +0 -0
  341. /package/build/{tslib.es6-dd1fc8f2.js → tslib.es6-7e140b89.js} +0 -0
  342. /package/build/{useIsInit-bb64ffbf.js → useIsInit-38cec0c4.js} +0 -0
  343. /package/build/{useOutsideClick-bd35bba1.js → useOutsideClick-e579e1ac.js} +0 -0
  344. /package/build/{useScrollbarSize-57b0fd8a.js → useScrollbarSize-5a8be010.js} +0 -0
  345. /package/build/{useUniqueId-4bafae28.js → useUniqueId-8929fe5f.js} +0 -0
  346. /package/build/{utils-3a589c92.js → utils-524bda7c.js} +0 -0
@@ -0,0 +1,847 @@
1
+ import React__default, { useState, useRef, useMemo, useEffect, Fragment, createContext } from 'react';
2
+ import { T as Text } from './index-c200bff6.js';
3
+ import styled from '@emotion/styled';
4
+ import { t as theme } from './theme-f18c2351.js';
5
+ import { M as MediaQueries, f as formatUrlWithPageParam } from './utils-f8761b9d.js';
6
+ import { R as Radio$1 } from './index-21eac858.js';
7
+ import { T as Text$1 } from './index-7e756cb8.js';
8
+ import { s as setDefaultClass } from './defaultClassWrapper-31caf23b.js';
9
+ import { _ as __rest } from './tslib.es6-761239c7.js';
10
+ import flattenChildren from 'react-keyed-flatten-children';
11
+
12
+ var styles = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
13
+
14
+ /**
15
+ * @deprecated Consider to use Mantine
16
+ */
17
+ const Alert = ({ style, onClose, text, type, contentIcon, closeIcon, className, description, }) => {
18
+ return (React__default.createElement("div", { className: `${styles.alert} ${className || ''}`, style: style, "data-alert-type": type },
19
+ React__default.createElement("div", { className: styles.content },
20
+ React__default.createElement("div", { className: "icon-title" },
21
+ contentIcon,
22
+ React__default.createElement(Text, { weight: "bold", size: "label1" }, text)),
23
+ React__default.createElement(Text, { weight: "regular", size: "p3" }, description)),
24
+ React__default.createElement("div", { className: styles.close, onClick: onClose }, closeIcon)));
25
+ };
26
+
27
+ const renderNotificationStyles = (type, size, hasIcon, color) => {
28
+ let sizeparams = '';
29
+ if (type === 'numeric') {
30
+ switch (size) {
31
+ case 'medium':
32
+ sizeparams = `
33
+ height: 16px;
34
+ font-size: 11px;
35
+ padding: 1px 6px;
36
+ `;
37
+ case 'large':
38
+ sizeparams = `
39
+ height: 24px;
40
+ font-size: 13px;
41
+ padding: 1px 10px;
42
+ `;
43
+ }
44
+ }
45
+ let icon = '';
46
+ if (hasIcon) {
47
+ icon = `
48
+ position: absolute;
49
+ top: 0;
50
+ left: 75%;
51
+ `;
52
+ }
53
+ let numericIcon;
54
+ if (hasIcon) {
55
+ numericIcon = `
56
+ left: 70%;
57
+
58
+ ${size === 'large'
59
+ ? `
60
+ top: -7px;
61
+ `
62
+ : size === 'medium'
63
+ ? `
64
+ top: -2px;
65
+ width: 16px;
66
+ height: 16px;
67
+ `
68
+ : ''}
69
+ `;
70
+ }
71
+ let notificationColor = '';
72
+ switch (color) {
73
+ case 'primary':
74
+ notificationColor = `
75
+ background: ${theme.colors.primary50};
76
+ color: ${theme.colors.primary600};
77
+ `;
78
+ break;
79
+ case 'error':
80
+ notificationColor = `
81
+ background: ${theme.colors.error};
82
+ color: white;
83
+ `;
84
+ break;
85
+ }
86
+ switch (type) {
87
+ case 'dot':
88
+ return `
89
+ ${icon}
90
+ width: 8px;
91
+ height: 8px;
92
+ font-size: 0px;
93
+ border-radius: 50%;
94
+ ${notificationColor}
95
+ `;
96
+ case 'numeric':
97
+ return `
98
+ ${icon}
99
+ width: max-content;
100
+ border-radius: 32px;
101
+ ${sizeparams}
102
+ ${numericIcon}
103
+ ${notificationColor}
104
+ `;
105
+ }
106
+ };
107
+ const StyledBadge = styled.div `
108
+ position: relative;
109
+
110
+ > div {
111
+ width: max-content;
112
+ position: relative;
113
+ }
114
+
115
+ span {
116
+ font-weight: ${theme.sizes.fwBold};
117
+ display: flex;
118
+ justify-content: center;
119
+ align-items: center;
120
+
121
+ ${(props) => renderNotificationStyles(props.notificationType, props.notificationSize, props.hasIcon, props.notificationColor)}
122
+ }
123
+
124
+ ${(props) => props.hasIcon &&
125
+ `
126
+ svg {
127
+ width: 40px;
128
+ height: 40px;
129
+ }
130
+ `}
131
+ `;
132
+
133
+ /**
134
+ * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
135
+ */
136
+ const Badge = ({ amount, type, size = 'medium', color = 'primary', icon, className, }) => {
137
+ return (React__default.createElement(StyledBadge, { "data-notification-type": type, "data-notification-size": size, "data-notification-color": color, "data-has-icon": !!icon || undefined, notificationType: type, notificationSize: size, notificationColor: color, hasIcon: !!icon, className: className },
138
+ React__default.createElement("div", null,
139
+ amount && React__default.createElement("span", null, amount),
140
+ " ",
141
+ icon && React__default.createElement("div", null, icon))));
142
+ };
143
+
144
+ const StyledBorderHeading = styled.h4 `
145
+ position: relative;
146
+ line-height: 18px;
147
+
148
+ &:after {
149
+ position: absolute;
150
+ top: 1px;
151
+ left: 0;
152
+ width: 4px;
153
+ height: 18px;
154
+ background-color: ${theme.colors.primaryBase};
155
+ content: '';
156
+ }
157
+
158
+ &[data-size='lg'] {
159
+ font-size: 18px;
160
+ padding-left: 12px;
161
+ }
162
+
163
+ &[data-size='sm'] {
164
+ font-size: 14px;
165
+ padding-left: 8px;
166
+
167
+ &::after {
168
+ width: 2px;
169
+ height: 15px;
170
+ }
171
+ }
172
+
173
+ &[data-type='bold'] {
174
+ font-weight: ${theme.sizes.fwBold};
175
+ }
176
+ &[data-type='semiBold'] {
177
+ font-weight: ${theme.sizes.fwSemiBold};
178
+ }
179
+
180
+ &[data-uppercase] {
181
+ text-transform: uppercase;
182
+ }
183
+
184
+ ${MediaQueries.mbDown} {
185
+ &[data-size='lg'] {
186
+ font-size: 16px;
187
+ }
188
+ }
189
+ `;
190
+
191
+ const BorderHeading = ({ style, children, className, size = 'lg', type = 'bold', upperCase, as = 'h4', color, }) => (React__default.createElement(StyledBorderHeading, { style: Object.assign({ color }, style), className: className, "data-size": size, "data-type": type, "data-uppercase": upperCase, as: as }, children));
192
+
193
+ const StyledDropdown = styled.div `
194
+ position: relative;
195
+ box-sizing: border-box;
196
+ border: 1px solid ${theme.colors.gray200};
197
+ background: url('../../../public/bgSvg/arrow-down.svg') no-repeat;
198
+ background-position: right 16px center;
199
+ border-radius: ${theme.borderRadius};
200
+
201
+ &[data-has-icons='true'] {
202
+ border: none;
203
+ background: ${theme.colors.gray100};
204
+
205
+ img,
206
+ svg {
207
+ display: inline-block;
208
+ max-width: 16px;
209
+ margin-right: 6px;
210
+ }
211
+
212
+ span {
213
+ vertical-align: middle;
214
+ display: inline-block;
215
+ }
216
+
217
+ &:hover {
218
+ box-shadow: none;
219
+ }
220
+ > div {
221
+ position: relative;
222
+ width: 100%;
223
+ display: flex;
224
+ align-items: center;
225
+ box-sizing: border-box;
226
+ }
227
+ > div::after {
228
+ content: '';
229
+ right: 12px;
230
+ top: 50%;
231
+ background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
232
+ width: 10px;
233
+ height: 8px;
234
+ position: absolute;
235
+ background-repeat: no-repeat;
236
+ transform: translateY(-50%);
237
+ }
238
+ }
239
+
240
+ &:hover {
241
+ box-shadow: 0 0 2px 2px ${theme.colors.primary200};
242
+ }
243
+ `;
244
+ const StyledDropdownName = styled.div `
245
+ padding: 12px 18px 12px 16px;
246
+ cursor: pointer;
247
+ &[data-dropdown-open] {
248
+ padding: 11px 15px 11px 15px;
249
+ border: 1px solid ${theme.colors.primaryBase};
250
+ border-radius: ${theme.borderRadius};
251
+ box-shadow: 0 0 2px 2px ${theme.colors.primary200};
252
+ }
253
+
254
+ & > svg {
255
+ height: 16px;
256
+ width: 16px;
257
+ }
258
+ `;
259
+ const StyledDropdownList = styled.ul `
260
+ position: absolute;
261
+ top: 100%;
262
+ right: 0;
263
+ left: 0;
264
+ display: block;
265
+ margin-top: 4px;
266
+ background: ${theme.colors.white};
267
+ border-radius: ${theme.borderRadius};
268
+ box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
269
+ -2px 2px 5px rgba(67, 86, 100, 0.123689);
270
+ cursor: pointer;
271
+
272
+ &[data-has-icons='true'] {
273
+ background: white;
274
+ box-shadow: none;
275
+ border: 1px solid ${theme.colors.gray200};
276
+ filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
277
+ }
278
+ `;
279
+ const StyledDropdownOption = styled.li `
280
+ margin: 8px;
281
+ padding: 12px 18px 12px 16px;
282
+ border-radius: ${theme.borderRadius};
283
+ display: flex;
284
+ &:hover,
285
+ :active {
286
+ background: ${theme.colors.gray100};
287
+ }
288
+ `;
289
+ const StyledIcon = styled.div `
290
+ display: flex;
291
+ align-items: center;
292
+ margin-right: 8px;
293
+
294
+ & > svg {
295
+ height: 16px;
296
+ width: 16px;
297
+ }
298
+ `;
299
+
300
+ const ShareIconPathStyle = () => (React__default.createElement("style", null, '.file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}'));
301
+ const DefaultFileIcon = () => (React__default.createElement("svg", { id: "prefix__Layer_1", "data-name": "Layer 1", viewBox: "0 0 12.17 14.83" },
302
+ React__default.createElement("defs", null,
303
+ React__default.createElement("clipPath", { id: "prefix__clip-path", transform: "translate(-1.92 -1.54)" },
304
+ React__default.createElement("path", { fill: "none", d: "M0 .96h16v16H0z" }))),
305
+ React__default.createElement("title", null, 'File'),
306
+ React__default.createElement("g", { clipPath: "url(#prefix__clip-path)" },
307
+ React__default.createElement("path", { className: "file-dropdown-path", d: "M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z", transform: "translate(-1.92 -1.54)" }),
308
+ React__default.createElement("path", { className: "file-dropdown-path", d: "M8.67 2.29V7h4.66", transform: "translate(-1.92 -1.54)" }))));
309
+ const DownloadIcon = () => (React__default.createElement("svg", { id: "prefix__Layer_1", "data-name": "Layer 1", viewBox: "0 0 13.5 13.5" },
310
+ React__default.createElement("title", null, 'download'),
311
+ React__default.createElement("path", { className: "file-dropdown-path", d: "M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3", transform: "translate(-1.25 -2.21)" })));
312
+ const UploadIcon = () => (React__default.createElement("svg", { id: "prefix__Layer_1", "data-name": "Layer 1", viewBox: "0 0 13.5 13.5" },
313
+ React__default.createElement("title", null, 'upload'),
314
+ React__default.createElement("path", { className: "file-dropdown-path", d: "M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8", transform: "translate(-1.25 -2.21)" })));
315
+ const FileDropdown = ({ className, value, options, onUploadSelected, id, placeholderIcon, placeholder, style, }) => {
316
+ const [isDropdownOpen, setIsDropdownOpen] = useState(false);
317
+ const showDropdown = () => setIsDropdownOpen(!isDropdownOpen);
318
+ const inputList = useRef(options.map((option) => {
319
+ return (option.type === 'upload' && (React__default.createElement("input", { id: 'uploader-dropdown-input-' + id + '-' + option.value, key: 'uploader-dropdown-input-' + id + '-' + option.value, accept: option.fileAcceptedType, multiple: option.multiple, type: "file", style: { display: 'none' }, onChange: (e) => {
320
+ console.log('change');
321
+ onUploadSelected(e.target.files);
322
+ } })));
323
+ }));
324
+ const onUpload = (dropdownId) => {
325
+ var _a;
326
+ (_a = document.querySelector(dropdownId)) === null || _a === void 0 ? void 0 : _a.click();
327
+ };
328
+ const onDownload = (url) => {
329
+ url && window.open(url, '_blank');
330
+ };
331
+ return (React__default.createElement(StyledDropdown, { className: className, "data-dropdown-open": !!isDropdownOpen, id: id, "data-has-icons": true, style: style, onBlur: () => setIsDropdownOpen(false), tabIndex: 0 },
332
+ React__default.createElement(ShareIconPathStyle, null),
333
+ React__default.createElement(StyledDropdownName, { onClick: showDropdown },
334
+ placeholderIcon || React__default.createElement(DefaultFileIcon, null),
335
+ ' ',
336
+ React__default.createElement("span", null, value && value.value ? value.label : placeholder)),
337
+ isDropdownOpen && (React__default.createElement(StyledDropdownList, { onClick: showDropdown, "data-has-icons": true }, options.map((option) => (React__default.createElement(StyledDropdownOption, { key: `${id}-${option.value}`, "data-selected": (value && value.value === option.value) || undefined, onClick: () => option.type === 'upload'
338
+ ? onUpload('#uploader-dropdown-input-' + id + '-' + option.value)
339
+ : onDownload(option.url) },
340
+ React__default.createElement(StyledIcon, null, option.icon || option.type === 'download' ? (React__default.createElement(DownloadIcon, null)) : (React__default.createElement(UploadIcon, null))),
341
+ option.label))))),
342
+ React__default.createElement(React__default.Fragment, null, inputList.current)));
343
+ };
344
+
345
+ const StyledGrid = styled.div `
346
+ --columns: var(--grid-template-columns, repeat(var(--columns-count), 1fr));
347
+ --columns-desktop: var(
348
+ --grid-template-columns-desktop,
349
+ repeat(var(--columns-count-desktop), 1fr)
350
+ );
351
+ display: grid;
352
+ grid-template-columns: var(--columns);
353
+ grid-gap: var(--grid-gap);
354
+ align-items: var(--align-items);
355
+
356
+ ${MediaQueries.tdUp} {
357
+ grid-template-columns: var(--columns-desktop);
358
+ }
359
+
360
+ > * {
361
+ justify-self: var(--justify-children);
362
+ }
363
+ `;
364
+
365
+ /**
366
+ * @deprecated Consider to use mantine
367
+ */
368
+ const Grid = ({ className, columns, columnsDesktop, gridTemplateColumns, gridTemplateColumnsDesktop, gap, children, justifyChildren, style, alignItems, }) => {
369
+ return (React__default.createElement(StyledGrid, { className: className, style: Object.assign({ '--columns-count': columns, '--columns-count-desktop': columnsDesktop, '--grid-template-columns': gridTemplateColumns, '--grid-template-columns-desktop': gridTemplateColumnsDesktop, '--justify-children': justifyChildren, '--grid-gap': gap, '--align-items': alignItems }, style) }, children));
370
+ };
371
+
372
+ const StyledPagination = styled.div `
373
+ display: flex;
374
+ align-items: center;
375
+ justify-content: space-between;
376
+ user-select: none;
377
+ li {
378
+ transition: all 0.3s ease;
379
+ }
380
+ [data-page-active] {
381
+ background: ${theme.colors.primaryBase};
382
+ color: ${theme.colors.white};
383
+
384
+ > a {
385
+ color: ${theme.colors.white};
386
+ }
387
+ }
388
+ `;
389
+ const StyledPageBlock = styled.div `
390
+ display: flex;
391
+ width: 32px;
392
+ height: 32px;
393
+ box-sizing: border-box;
394
+ align-items: center;
395
+ justify-content: center;
396
+ border: 1px solid ${theme.colors.gray200};
397
+ margin: 0 2px;
398
+ border-radius: 4px;
399
+ color: ${theme.colors.gray800};
400
+ cursor: pointer;
401
+ font-size: 14px;
402
+ font-weight: ${theme.sizes.fwBold};
403
+
404
+ &[data-last-page] {
405
+ border: none;
406
+ background-color: ${theme.colors.gray100};
407
+ cursor: not-allowed;
408
+ pointer-events: none;
409
+
410
+ svg {
411
+ path {
412
+ stroke: ${theme.colors.gray300};
413
+ }
414
+ }
415
+ }
416
+ `;
417
+ const StyledPaginationBlock = styled.li `
418
+ display: flex;
419
+ width: 32px;
420
+ height: 32px;
421
+ align-items: center;
422
+ justify-content: center;
423
+ margin: 0 2px;
424
+ border-radius: 4px;
425
+ color: ${theme.colors.gray800};
426
+ cursor: pointer;
427
+ font-size: 14px;
428
+ font-weight: ${theme.sizes.fwBold};
429
+
430
+ > a {
431
+ color: ${theme.colors.gray800};
432
+ text-decoration: unset;
433
+ display: block;
434
+ width: 100%;
435
+ height: 100%;
436
+ line-height: 32px;
437
+ text-align: center;
438
+ }
439
+ `;
440
+
441
+ const RenderPagiWithDots = ({ pagesAmount, activePage, handlePageChange, handleClick, href, queryPageName = 'page', }) => {
442
+ const pages = [...Array(pagesAmount)].map((__v, i) => i + 1);
443
+ const [visiblePages, setVisiblePages] = useState(activePage <= 4
444
+ ? pages.slice(0, 5)
445
+ : activePage >= pages.length - 3
446
+ ? pages.slice(pages.length - 5, pages.length)
447
+ : pages.slice(activePage - 2, activePage + 1));
448
+ useEffect(() => {
449
+ if (activePage <= 4) {
450
+ setVisiblePages(pages.slice(0, 5));
451
+ }
452
+ else if (activePage >= pages.length - 3) {
453
+ setVisiblePages(pages.slice(pages.length - 5, pages.length));
454
+ }
455
+ else {
456
+ setVisiblePages(pages.slice(activePage - 2, activePage + 1));
457
+ }
458
+ }, [activePage]);
459
+ return (React__default.createElement(Fragment, null,
460
+ activePage > 4 && (React__default.createElement(Fragment, null,
461
+ React__default.createElement(StyledPaginationBlock, { onClick: () => handlePageChange(1) }, href ? (React__default.createElement("a", { href: href, onClick: handleClick }, 1)) : (1)),
462
+ React__default.createElement(StyledPaginationBlock, null, "..."))),
463
+ visiblePages.map((i) => (React__default.createElement(StyledPaginationBlock, { key: `${'pagination'}+${i}`, "data-page-active": i === activePage || undefined, onClick: () => handlePageChange(i) }, href ? (React__default.createElement("a", { href: formatUrlWithPageParam(href, i, queryPageName), onClick: handleClick }, i)) : (i)))),
464
+ activePage < pages.length - 3 && (React__default.createElement(Fragment, null,
465
+ React__default.createElement(StyledPaginationBlock, null, "..."),
466
+ React__default.createElement(StyledPaginationBlock, { onClick: () => handlePageChange(pages.length) }, href ? (React__default.createElement("a", { href: formatUrlWithPageParam(href, pages.length, queryPageName), onClick: handleClick }, pages.length)) : (pages.length))))));
467
+ };
468
+ const Pagination = ({ className, pagesAmount, currentPage, onChange, onClick, style, href: _href, queryPageName = 'page', }) => {
469
+ const pages = [...Array(pagesAmount)].map((__v, i) => i + 1);
470
+ const [activePage, setActivePage] = useState(currentPage);
471
+ const href = useMemo(() => {
472
+ // Props `href` is updated from the version 1.8.4 and later. Please change the way to use this props properly
473
+ // - To avoid crash app, transform href for the old way and remove the part &page=
474
+ // /care/ho-chi-minh/hospital/da-khoa/&page=
475
+ // -> /care/ho-chi-minh/hospital/da-khoa/
476
+ if (_href && _href.endsWith('&page=')) {
477
+ return _href.replace('&page=', '');
478
+ }
479
+ return _href;
480
+ }, [_href]);
481
+ const totalArray = pagesAmount - 1;
482
+ const handlePageChange = (p) => {
483
+ if (p <= pagesAmount && p > 0) {
484
+ setActivePage(p);
485
+ onChange(p);
486
+ }
487
+ };
488
+ const handleClick = (e) => {
489
+ onClick && onClick(e);
490
+ };
491
+ useEffect(() => {
492
+ setActivePage(currentPage);
493
+ }, [currentPage]);
494
+ return (React__default.createElement(StyledPagination, { className: className, style: style },
495
+ React__default.createElement(StyledPageBlock, { className: "prev-page", onClick: () => handlePageChange(activePage - 1), "data-last-page": activePage === 1 || undefined }, href ? (React__default.createElement("a", { href: formatUrlWithPageParam(href, activePage, queryPageName), onClick: handleClick },
496
+ React__default.createElement("svg", { width: "7", height: "10", viewBox: "0 0 7 10", fill: "none" },
497
+ React__default.createElement("path", { d: "M5.5 9L1.5 5L5.5 1", stroke: "#2D87F3", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })))) : (React__default.createElement("svg", { width: "7", height: "10", viewBox: "0 0 7 10", fill: "none" },
498
+ React__default.createElement("path", { d: "M5.5 9L1.5 5L5.5 1", stroke: "#2D87F3", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })))),
499
+ pages.length > 8 ? (React__default.createElement(RenderPagiWithDots, { pagesAmount: pagesAmount, activePage: activePage, handlePageChange: handlePageChange, handleClick: handleClick, href: href, queryPageName: queryPageName })) : (pages.map((i) => (React__default.createElement(StyledPaginationBlock, { key: `${'pagination'}+${i}`, "data-page-active": i === activePage || undefined, onClick: () => handlePageChange(i) }, href ? (React__default.createElement("a", { href: formatUrlWithPageParam(href, i, queryPageName), onClick: handleClick }, i)) : (i))))),
500
+ React__default.createElement(StyledPageBlock, { className: "next-page", onClick: () => handlePageChange(activePage + 1), "data-last-page": activePage === totalArray + 1 || undefined }, href ? (React__default.createElement("a", { href: formatUrlWithPageParam(href, activePage, queryPageName), onClick: handleClick },
501
+ React__default.createElement("svg", { width: "7", height: "10", viewBox: "0 0 7 10", fill: "none" },
502
+ React__default.createElement("path", { d: "M1.5 9L5.5 5L1.5 1", stroke: "#2D87F3", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })))) : (React__default.createElement("svg", { width: "7", height: "10", viewBox: "0 0 7 10", fill: "none" },
503
+ React__default.createElement("path", { d: "M1.5 9L5.5 5L1.5 1", stroke: "#2D87F3", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }))))));
504
+ };
505
+
506
+ /**
507
+ * @deprecated Consider to use import { Radio } from '@mantine/core'
508
+ */
509
+ const Radio = ({ size = 'small', label, name, checked, value, className, isDisabled = false, onChange, dataEventCategory, dataEventAction, dataEventLabel, }) => {
510
+ const isHasTracking = !!dataEventAction && !!dataEventCategory && !!dataEventLabel;
511
+ const trackingProps = isHasTracking
512
+ ? {
513
+ 'data-event-category': dataEventCategory,
514
+ 'data-event-action': dataEventAction,
515
+ 'data-event-label': dataEventLabel,
516
+ }
517
+ : {};
518
+ return (React__default.createElement(Radio$1
519
+ // type,
520
+ , Object.assign({
521
+ // type,
522
+ size: size === 'small' ? 'md' : 'lg', label: label, name: name, checked: checked, value: value, className: className, disabled: isDisabled, onChange: (e) => onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value) }, trackingProps)));
523
+ };
524
+
525
+ const getTag = (tag, isLight) => {
526
+ switch (tag) {
527
+ case 'yellow': {
528
+ const color = isLight ? theme.colors.yellow50 : theme.colors.yellow600;
529
+ return `
530
+ background: ${color};
531
+ p {
532
+ color: var(
533
+ --text-props-color,
534
+ ${theme.colors.gray800}
535
+ );
536
+ }
537
+ `;
538
+ }
539
+ case 'standard': {
540
+ return `
541
+ background: ${theme.colors.white};
542
+ border: 1px solid ${theme.colors.gray200};
543
+
544
+ p {
545
+ color: var(
546
+ --text-props-color,
547
+ ${theme.colors.gray800}
548
+ );
549
+ }
550
+
551
+ &:hover {
552
+ background: ${theme.colors.gray100};
553
+ }
554
+ `;
555
+ }
556
+ case 'red': {
557
+ const color = isLight ? theme.colors.red50 : theme.colors.red500;
558
+ return `
559
+ background: ${color};
560
+ `;
561
+ }
562
+ case 'green': {
563
+ const color = isLight ? theme.colors.green50 : theme.colors.green500;
564
+ return `
565
+ background: ${color};
566
+ `;
567
+ }
568
+ case 'blue': {
569
+ const color = isLight ? theme.colors.primary50 : theme.colors.primaryBase;
570
+ return `
571
+ background: ${color};
572
+ `;
573
+ }
574
+ case 'teal': {
575
+ const color = isLight ? theme.colors.teal100 : theme.colors.teal600;
576
+ return `
577
+ background: ${color};
578
+ `;
579
+ }
580
+ case 'pink': {
581
+ const color = isLight ? theme.colors.pink200 : theme.colors.pink800;
582
+ return `
583
+ background: ${color};
584
+ `;
585
+ }
586
+ case 'violet': {
587
+ const color = isLight ? theme.colors.violet100 : theme.colors.violet500;
588
+ return `
589
+ background: ${color};
590
+ `;
591
+ }
592
+ case 'grey': {
593
+ const color = isLight ? theme.colors.gray100 : theme.colors.gray600;
594
+ return `
595
+ background: ${color};
596
+ `;
597
+ }
598
+ }
599
+ };
600
+ const StyledTag = styled.div `
601
+ --padding-horizontal: 8px;
602
+ --pading-vertical: 2px;
603
+ display: flex;
604
+ align-items: center;
605
+ justify-content: center;
606
+ padding: var(--pading-vertical) var(--padding-horizontal);
607
+ border-radius: 24px;
608
+
609
+ ${(props) => props.tagType === 'sponsored' &&
610
+ `
611
+ --offset-size: 4px;
612
+ display: flex;
613
+ align-items: center;
614
+ justify-content: center;
615
+ box-sizing: content-box;
616
+ position: relative;
617
+ box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
618
+ border-radius: 0 4px 18px 0;
619
+ height: 24px;
620
+ width: 90px;
621
+ border-left: var(--offset-size) solid ${theme.colors.accentLight};
622
+ padding: 0;
623
+ margin-left: calc(var(--offset-size) * -1);
624
+
625
+ p {
626
+ font-weight: ${theme.sizes.fwBold};
627
+ color: var(
628
+ --text-props-color,
629
+ ${theme.colors.secondaryDark}
630
+ );
631
+ font-size: 11px;
632
+ margin-left: calc(var(--offset-size) * -1);
633
+ }
634
+
635
+ &::after {
636
+ width: calc(var(--offset-size) * 2);
637
+ height: var(--offset-size);
638
+ background: ${theme.colors.accentMain};
639
+ position: absolute;
640
+ left: calc(var(--offset-size) * -1);
641
+ bottom: calc(var(--offset-size) * -1);
642
+ clip-path: polygon(0 1%, 100% 0%, 100% 100%);
643
+ content: '';
644
+ }
645
+ `}
646
+
647
+ ${(props) => props.isInline &&
648
+ `
649
+ display: inline-block;
650
+ `}
651
+
652
+ ${(props) => props.tagHasMorePadding &&
653
+ `
654
+ &[data-has-more-padding] {
655
+ padding: calc(var(--pading-vertical) + 5px) var(--padding-horizontal);
656
+ }
657
+ `}
658
+
659
+ p {
660
+ ${(props) => props.tagIsLight
661
+ ? `
662
+ color: var(--text-props-color, #000);
663
+ `
664
+ : `
665
+ color: var(--text-props-color, ${theme.colors.white});
666
+ `}
667
+ }
668
+
669
+ ${(props) => getTag(props.tagType, props.tagIsLight)}
670
+
671
+ ${(props) => props.tagIsSquared &&
672
+ props.tagType !== 'sponsored' &&
673
+ `
674
+ border-radius: 4px;
675
+ `}
676
+
677
+ ${(props) => props.tagIsALink &&
678
+ `
679
+ cursor: pointer;
680
+ `}
681
+
682
+ &[data-is-selected],
683
+ &:active {
684
+ background: ${theme.colors.primary50};
685
+ }
686
+ `;
687
+
688
+ const Tag = ({ type, children, style, isInline, isSquared = false, className, isLight, hasMorePadding, isLink, isSelected, textProps = {
689
+ size: 'sm',
690
+ }, }) => {
691
+ const textColor = textProps.color
692
+ ? { '--text-props-color': textProps.color }
693
+ : {};
694
+ return (React__default.createElement(StyledTag, { "data-is-squared": isSquared || undefined, "data-tag-type": type, "data-is-light": isLight || undefined, "data-has-more-padding": hasMorePadding || undefined, "data-is-inline": isInline || undefined, style: Object.assign(Object.assign({}, style), textColor), className: className, "data-is-selected": isSelected || undefined, "data-is-link": isLink || undefined, tagType: type, isInline: isInline, tagHasMorePadding: hasMorePadding, tagIsLight: isLight, tagIsSquared: isSquared, tagIsALink: isLink },
695
+ React__default.createElement(Text$1, Object.assign({}, textProps), children)));
696
+ };
697
+
698
+ const heightIcon = '24px';
699
+ const StyledToggleIcon = setDefaultClass(styled.span `
700
+ position: relative;
701
+ display: block;
702
+ width: 40px;
703
+ height: ${heightIcon};
704
+ background: #c3cbd4;
705
+ border-radius: 100px;
706
+ cursor: pointer;
707
+
708
+ &:after {
709
+ position: absolute;
710
+ top: 2px;
711
+ left: 2px;
712
+ width: 20px;
713
+ height: 20px;
714
+ background: #fff;
715
+ border-radius: 90px;
716
+ content: '';
717
+ transition: 0.3s;
718
+ }
719
+ `, 'hhgcomp-toggle-icon');
720
+ const StyledToggleLabel = styled.span `
721
+ padding-left: 15px;
722
+ `;
723
+ const StyledToggle = styled.div `
724
+ height: ${heightIcon};
725
+
726
+ input[type='checkbox'] {
727
+ width: 0;
728
+ height: 0;
729
+ visibility: hidden;
730
+ }
731
+
732
+ label {
733
+ cursor: pointer;
734
+ display: inline-flex;
735
+ color: ${theme.colors.gray600};
736
+ }
737
+
738
+ input:checked + label ${StyledToggleIcon.classSelector} {
739
+ background: ${theme.colors.primaryBase};
740
+ &:after {
741
+ left: calc(100% - 2px);
742
+ transform: translateX(-100%);
743
+ }
744
+ }
745
+ `;
746
+
747
+ /**
748
+ * @deprecated Consider to use {@link Switch} at {@link https://www.npmjs.com/package/@hhgtech/hhg-components/mantine}
749
+ */
750
+ const Toggle = ({ className, id, onChange, checked, style, label }) => (React__default.createElement(StyledToggle, { className: className, style: style },
751
+ React__default.createElement("input", { type: "checkbox", id: id, onChange: onChange, checked: checked }),
752
+ React__default.createElement("label", { htmlFor: id },
753
+ React__default.createElement(StyledToggleIcon, null),
754
+ label && React__default.createElement(StyledToggleLabel, null, label))));
755
+
756
+ const StyledRateStars = styled.div `
757
+ display: inline-flex;
758
+
759
+ gap: calc(var(--gap) * 1px);
760
+ > svg {
761
+ width: calc(var(--star-size) * 1px);
762
+ height: calc(var(--star-size) * 1px);
763
+ }
764
+
765
+ &[data-selectable='true'] {
766
+ > svg {
767
+ cursor: pointer;
768
+ }
769
+ }
770
+ `;
771
+
772
+ const StarHalfIcon = (props) => {
773
+ return (React__default.createElement("svg", Object.assign({}, props, { viewBox: "0 0 24 24", fill: "none" }),
774
+ React__default.createElement("path", { d: "m139.287 144.772 5.17 3.12c.38.23.85-.11.75-.54l-1.37-5.88 4.56-3.95c.33-.29.16-.84-.29-.88l-6.01-.51-2.35-5.54a.498.498 0 0 0-.92 0l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z", fill: "#E4E8EC" }),
775
+ React__default.createElement("path", { d: "M139.289 144.771s.013-14.488 0-14.488a.49.49 0 0 0-.46.308l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z", fill: "#FFC326" })));
776
+ };
777
+
778
+ const StarIcon = (_a) => {
779
+ var { isFull } = _a, props = __rest(_a, ["isFull"]);
780
+ return (React__default.createElement("svg", Object.assign({}, props, { viewBox: "0 0 32 32", fill: "none" }),
781
+ React__default.createElement("path", { d: "m16 23.027 6.893 4.16c.507.306 1.134-.147 1-.72l-1.826-7.84 6.08-5.267a.67.67 0 0 0-.387-1.173l-8.013-.68-3.134-7.387a.664.664 0 0 0-1.226 0l-3.133 7.387-8.014.68a.668.668 0 0 0-.373 1.173l6.08 5.267-1.827 7.84c-.133.573.493 1.026 1 .72z", fill: isFull ? '#FFC326' : '#D2D6DC' })));
782
+ };
783
+
784
+ /**
785
+ *
786
+ * Show 5 (or more) stars and allow user vote (optional)
787
+ *
788
+ */
789
+ const RateStars = ({ gap = 2, size = 24, star, totalStars = 5, onSelect, hideEmptyStars, style, className, }) => {
790
+ const numberOfFullStars = Math.floor(star);
791
+ const numberOfHalfStars = star - numberOfFullStars >= 0.5 ? 1 : 0;
792
+ const [tempStar, setTempStar] = useState(null);
793
+ const tempFullStars = tempStar || numberOfFullStars;
794
+ const tempHalfStars = tempStar ? 0 : numberOfHalfStars;
795
+ return (React__default.createElement(StyledRateStars, { "data-selectable": !!onSelect, style: Object.assign({ '--gap': gap, '--star-size': size }, style), className: className }, Array.from({
796
+ length: hideEmptyStars
797
+ ? numberOfFullStars + numberOfHalfStars
798
+ : totalStars,
799
+ }).map((_, index) => {
800
+ const onMouseOver = () => !!onSelect && setTempStar(index + 1);
801
+ const onMouseLeave = () => !!onSelect && setTempStar(null);
802
+ return index + 1 <= tempFullStars ? (React__default.createElement(StarIcon, { key: index, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect(index + 1), onMouseOver: onMouseOver, onMouseLeave: onMouseLeave, isFull: true })) : index + 1 === tempFullStars + tempHalfStars ? (React__default.createElement(StarHalfIcon, { key: index, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect(index + 1), onMouseOver: onMouseOver, onMouseLeave: onMouseLeave })) : (React__default.createElement(StarIcon, { key: index, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect(index + 1), onMouseOver: onMouseOver, onMouseLeave: onMouseLeave }));
803
+ })));
804
+ };
805
+
806
+ // define shared context
807
+ const StepRendererContext = createContext({
808
+ currentStep: 0,
809
+ setCurrentStep: () => false,
810
+ setMaxStep: () => false,
811
+ nextStep: () => false,
812
+ prevStep: () => false,
813
+ });
814
+ const StepRenderer = ({ children, onStepChange }) => {
815
+ const [currentStep, setCurrentStep] = useState(0);
816
+ const [maxStep, setMaxStep] = useState(0);
817
+ const childrenCount = React__default.Children.count(children);
818
+ useEffect(() => {
819
+ setMaxStep(childrenCount - 1);
820
+ }, [childrenCount]);
821
+ useEffect(() => {
822
+ onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(currentStep);
823
+ }, [currentStep]);
824
+ const nextStep = () => currentStep + 1 <= maxStep && setCurrentStep(currentStep + 1);
825
+ const prevStep = () => currentStep - 1 >= 0 && setCurrentStep(currentStep - 1);
826
+ return (React__default.createElement(StepRendererContext.Provider, { value: {
827
+ currentStep,
828
+ setCurrentStep,
829
+ setMaxStep,
830
+ nextStep,
831
+ prevStep,
832
+ } }, flattenChildren(children).map((element, idx) => {
833
+ const active = idx === currentStep;
834
+ return (React__default.createElement(Fragment, { key: idx }, !React__default.isValidElement(element)
835
+ ? active
836
+ ? element
837
+ : null
838
+ : element.props.alwaysRender || active
839
+ ? React__default.cloneElement(element, {
840
+ isActive: idx === currentStep,
841
+ stepIndex: idx,
842
+ })
843
+ : null));
844
+ })));
845
+ };
846
+
847
+ export { Alert as A, Badge as B, FileDropdown as F, Grid as G, Pagination as P, Radio as R, StepRenderer as S, Tag as T, BorderHeading as a, Toggle as b, RateStars as c, StepRendererContext as d };