@hhgtech/hhg-components 1.28.68 → 1.28.69

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 (519) hide show
  1. package/build/BMI_BOYS.percentile.monthly-48c9471d.js +688 -0
  2. package/build/BMI_BOYS.percentile.weekly-4965852e.js +182 -0
  3. package/build/BMI_BOYS.percentile.yearly-0f7cc8f4.js +83 -0
  4. package/build/BMI_BOYS.zscore.monthly-5bb8a433.js +440 -0
  5. package/build/BMI_BOYS.zscore.weekly-3d56f80f.js +118 -0
  6. package/build/BMI_BOYS.zscore.yearly-57081f24.js +55 -0
  7. package/build/BMI_GIRLS.percentile.monthly-95859cd9.js +688 -0
  8. package/build/BMI_GIRLS.percentile.weekly-009cf4df.js +182 -0
  9. package/build/BMI_GIRLS.percentile.yearly-4436947b.js +83 -0
  10. package/build/BMI_GIRLS.zscore.monthly-689b4eee.js +440 -0
  11. package/build/BMI_GIRLS.zscore.weekly-dff693df.js +118 -0
  12. package/build/BMI_GIRLS.zscore.yearly-05ef5f4f.js +55 -0
  13. package/build/ChevronDown-275f1ab5.js +29 -0
  14. package/build/HEAD CIRCUM_BOYS.percentile.monthly-55c580a7.js +688 -0
  15. package/build/HEAD CIRCUM_BOYS.percentile.weekly-e30f4a42.js +182 -0
  16. package/build/HEAD CIRCUM_BOYS.percentile.yearly-2378a5f0.js +83 -0
  17. package/build/HEAD CIRCUM_BOYS.zscore.monthly-102d5559.js +440 -0
  18. package/build/HEAD CIRCUM_BOYS.zscore.weekly-7b0f1ba8.js +118 -0
  19. package/build/HEAD CIRCUM_BOYS.zscore.yearly-e9237d31.js +55 -0
  20. package/build/HEAD CIRCUM_GIRLS.percentile.monthly-1ddda8b3.js +688 -0
  21. package/build/HEAD CIRCUM_GIRLS.percentile.weekly-843147ea.js +182 -0
  22. package/build/HEAD CIRCUM_GIRLS.percentile.yearly-9b51c237.js +83 -0
  23. package/build/HEAD CIRCUM_GIRLS.zscore.monthly-3f1b233c.js +440 -0
  24. package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9e14d3fe.js +118 -0
  25. package/build/HEAD CIRCUM_GIRLS.zscore.yearly-d924f5ae.js +55 -0
  26. package/build/HEIGHT_BOYS.percentile.monthly-15538920.js +688 -0
  27. package/build/HEIGHT_BOYS.percentile.weekly-10bd0277.js +182 -0
  28. package/build/HEIGHT_BOYS.percentile.yearly-8e678d38.js +237 -0
  29. package/build/HEIGHT_BOYS.zscore.monthly-2c110da9.js +440 -0
  30. package/build/HEIGHT_BOYS.zscore.weekly-288b7733.js +118 -0
  31. package/build/HEIGHT_BOYS.zscore.yearly-42f6f9f7.js +153 -0
  32. package/build/HEIGHT_GIRLS.percentile.monthly-04abe7d2.js +688 -0
  33. package/build/HEIGHT_GIRLS.percentile.weekly-9653b16c.js +182 -0
  34. package/build/HEIGHT_GIRLS.percentile.yearly-9efacd67.js +237 -0
  35. package/build/HEIGHT_GIRLS.zscore.monthly-c64a97b2.js +440 -0
  36. package/build/HEIGHT_GIRLS.zscore.weekly-3302dd83.js +118 -0
  37. package/build/HEIGHT_GIRLS.zscore.yearly-ebe5114f.js +153 -0
  38. package/build/Subot-5fc40fb5.js +217 -0
  39. package/build/Visible-5c5d57cf.js +29 -0
  40. package/build/WEIGHT_BOYS.percentile.monthly-5e11e7a0.js +688 -0
  41. package/build/WEIGHT_BOYS.percentile.weekly-68ae2578.js +182 -0
  42. package/build/WEIGHT_BOYS.percentile.yearly-030c06a4.js +138 -0
  43. package/build/WEIGHT_BOYS.zscore.monthly-d22c7b57.js +440 -0
  44. package/build/WEIGHT_BOYS.zscore.weekly-d8d901e6.js +118 -0
  45. package/build/WEIGHT_BOYS.zscore.yearly-c311a084.js +90 -0
  46. package/build/WEIGHT_GIRLS.percentile.monthly-5c44f8eb.js +688 -0
  47. package/build/WEIGHT_GIRLS.percentile.weekly-faa98671.js +182 -0
  48. package/build/WEIGHT_GIRLS.percentile.yearly-560b862e.js +138 -0
  49. package/build/WEIGHT_GIRLS.zscore.monthly-5365ba1a.js +440 -0
  50. package/build/WEIGHT_GIRLS.zscore.weekly-0d9dc521.js +118 -0
  51. package/build/WEIGHT_GIRLS.zscore.yearly-5a3c4e43.js +90 -0
  52. package/build/adapters.js +36 -1
  53. package/build/{esm/animation-a158bfd1.js → animation-eb4e500b.js} +32 -10
  54. package/build/babyGrowth.js +913 -47
  55. package/build/cache.js +13 -1
  56. package/build/care.js +38 -1
  57. package/build/components.js +186 -1
  58. package/build/constants-8b8bc19f.js +255 -0
  59. package/build/constants-ae18ce18.js +935 -0
  60. package/build/constants.js +43 -1
  61. package/build/cookieHelper-5c9f4bb8.js +43 -0
  62. package/build/core-2aa8d86c.js +51 -0
  63. package/build/dataTransform-089f414c.js +66 -0
  64. package/build/ecom.js +745 -1
  65. package/build/esm/BMI_BOYS.percentile.monthly-de5dce68.js +686 -0
  66. package/build/esm/BMI_BOYS.percentile.weekly-9d3990b6.js +180 -0
  67. package/build/esm/BMI_BOYS.percentile.yearly-98b9114a.js +81 -0
  68. package/build/esm/BMI_BOYS.zscore.monthly-394646f0.js +438 -0
  69. package/build/esm/BMI_BOYS.zscore.weekly-c669ea51.js +116 -0
  70. package/build/esm/BMI_BOYS.zscore.yearly-771ef6b6.js +53 -0
  71. package/build/esm/BMI_GIRLS.percentile.monthly-1ff3d499.js +686 -0
  72. package/build/esm/BMI_GIRLS.percentile.weekly-211d2f27.js +180 -0
  73. package/build/esm/BMI_GIRLS.percentile.yearly-206fdcff.js +81 -0
  74. package/build/esm/BMI_GIRLS.zscore.monthly-b1137e36.js +438 -0
  75. package/build/esm/BMI_GIRLS.zscore.weekly-63ed3cd6.js +116 -0
  76. package/build/esm/BMI_GIRLS.zscore.yearly-221d187c.js +53 -0
  77. package/build/esm/ChevronDown-9a8ece61.js +7 -0
  78. package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-4c37847c.js +686 -0
  79. package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-8f6ea38a.js +180 -0
  80. package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-6c12a99a.js +81 -0
  81. package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-c531b497.js +438 -0
  82. package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6cafba00.js +116 -0
  83. package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-fe8114a0.js +53 -0
  84. package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-25ce0d36.js +686 -0
  85. package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-5d3f2862.js +180 -0
  86. package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-2b709ca5.js +81 -0
  87. package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-e8617bae.js +438 -0
  88. package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-f3252d67.js +116 -0
  89. package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-5b62d41f.js +53 -0
  90. package/build/esm/HEIGHT_BOYS.percentile.monthly-63d2cf96.js +686 -0
  91. package/build/esm/HEIGHT_BOYS.percentile.weekly-8ea5102d.js +180 -0
  92. package/build/esm/HEIGHT_BOYS.percentile.yearly-8107b77b.js +235 -0
  93. package/build/esm/HEIGHT_BOYS.zscore.monthly-641cdfa3.js +438 -0
  94. package/build/esm/HEIGHT_BOYS.zscore.weekly-86da0362.js +116 -0
  95. package/build/esm/HEIGHT_BOYS.zscore.yearly-060f6e79.js +151 -0
  96. package/build/esm/HEIGHT_GIRLS.percentile.monthly-fb987d37.js +686 -0
  97. package/build/esm/HEIGHT_GIRLS.percentile.weekly-82655dc0.js +180 -0
  98. package/build/esm/HEIGHT_GIRLS.percentile.yearly-a63b8456.js +235 -0
  99. package/build/esm/HEIGHT_GIRLS.zscore.monthly-77d676a3.js +438 -0
  100. package/build/esm/HEIGHT_GIRLS.zscore.weekly-c0387a4e.js +116 -0
  101. package/build/esm/HEIGHT_GIRLS.zscore.yearly-41203c20.js +151 -0
  102. package/build/esm/Subot-3289bd8e.js +212 -0
  103. package/build/esm/Visible-a3d436dd.js +7 -0
  104. package/build/esm/WEIGHT_BOYS.percentile.monthly-50802d8b.js +686 -0
  105. package/build/esm/WEIGHT_BOYS.percentile.weekly-4d72ddd6.js +180 -0
  106. package/build/esm/WEIGHT_BOYS.percentile.yearly-20a29844.js +136 -0
  107. package/build/esm/WEIGHT_BOYS.zscore.monthly-729e6614.js +438 -0
  108. package/build/esm/WEIGHT_BOYS.zscore.weekly-90352f48.js +116 -0
  109. package/build/esm/WEIGHT_BOYS.zscore.yearly-fe1871cc.js +88 -0
  110. package/build/esm/WEIGHT_GIRLS.percentile.monthly-e6afb2e0.js +686 -0
  111. package/build/esm/WEIGHT_GIRLS.percentile.weekly-b66d3016.js +180 -0
  112. package/build/esm/WEIGHT_GIRLS.percentile.yearly-a55622c5.js +136 -0
  113. package/build/esm/WEIGHT_GIRLS.zscore.monthly-2cdcbe75.js +438 -0
  114. package/build/esm/WEIGHT_GIRLS.zscore.weekly-d5be31d5.js +116 -0
  115. package/build/esm/WEIGHT_GIRLS.zscore.yearly-99e8d3a7.js +88 -0
  116. package/build/esm/adapters.js +26 -1
  117. package/build/{animation-ea278d9a.js → esm/animation-3d5edc39.js} +22 -10
  118. package/build/esm/babyGrowth.js +883 -47
  119. package/build/esm/cache.js +3 -1
  120. package/build/esm/care.js +26 -1
  121. package/build/esm/components.js +88 -1
  122. package/build/esm/constants-2a6d2434.js +932 -0
  123. package/build/esm/constants-b77ffe3d.js +238 -0
  124. package/build/esm/constants.js +4 -1
  125. package/build/esm/cookieHelper-d314282c.js +39 -0
  126. package/build/esm/core-8c73d133.js +47 -0
  127. package/build/esm/dataTransform-8ecfc046.js +56 -0
  128. package/build/esm/ecom.js +737 -1
  129. package/build/esm/footer.js +31 -1
  130. package/build/esm/gAssets.js +5 -1
  131. package/build/esm/getDynamicHealthTool-f4497aa5.js +44 -0
  132. package/build/esm/getSocialList-a5b8462e.js +66 -0
  133. package/build/esm/hooks.js +21 -1
  134. package/build/esm/i18n-values/en-PH.js +600 -1
  135. package/build/esm/i18n-values/hi-IN.js +600 -1
  136. package/build/esm/i18n-values/id-ID.js +600 -1
  137. package/build/esm/i18n-values/km-KH.js +600 -1
  138. package/build/esm/i18n-values/ms-MY.js +602 -1
  139. package/build/esm/i18n-values/my-MM.js +600 -1
  140. package/build/esm/i18n-values/th-TH.js +600 -1
  141. package/build/esm/i18n-values/tl-PH.js +600 -1
  142. package/build/esm/i18n-values/vi-VN.js +607 -1
  143. package/build/esm/i18n-values/vi-VN_MB.js +607 -1
  144. package/build/esm/i18n-values/zh-TW.js +600 -1
  145. package/build/esm/i18n.js +55 -1
  146. package/build/esm/i18nV2.js +18 -1
  147. package/build/esm/index-12fa4985.js +8 -0
  148. package/build/esm/index-1e59f99a.js +152 -0
  149. package/build/esm/index-32e53dac.js +1936 -0
  150. package/build/esm/index-3474401a.js +149 -0
  151. package/build/esm/index-34899aa3.js +17 -0
  152. package/build/esm/index-350e8f5b.js +124 -0
  153. package/build/esm/index-41bf860a.js +151 -0
  154. package/build/esm/index-4aa8e518.js +116 -0
  155. package/build/esm/index-4fe2b03f.js +32 -0
  156. package/build/esm/index-6ea6484e.js +29 -0
  157. package/build/esm/index-717401ee.js +184 -0
  158. package/build/esm/index-7af5242a.js +24 -0
  159. package/build/esm/index-7b8c85cd.js +8302 -0
  160. package/build/esm/index-81f295b7.js +23 -0
  161. package/build/esm/index-8858383e.js +52 -0
  162. package/build/esm/index-8f52dcf3.js +33 -0
  163. package/build/esm/index-9ea7e838.js +33 -0
  164. package/build/esm/index-aabac2aa.js +3241 -0
  165. package/build/esm/index-b9b2c417.js +837 -0
  166. package/build/esm/index-c2da5293.js +12 -0
  167. package/build/esm/index-c56d60db.js +370 -0
  168. package/build/esm/index-c5d7f692.js +24 -0
  169. package/build/esm/index-cc93e010.js +53 -0
  170. package/build/esm/index-d7f046db.js +5 -0
  171. package/build/esm/index-d8177667.js +14 -0
  172. package/build/esm/index-da139dda.js +615 -0
  173. package/build/esm/index-e612be9c.js +905 -0
  174. package/build/esm/index-f3d0592b.js +71 -0
  175. package/build/esm/index.js +190 -1
  176. package/build/{index.styled-625bfdc7.js → esm/index.styled-9c9db9cc.js} +17 -5
  177. package/build/esm/index.styles-5add27c5.js +1303 -0
  178. package/build/esm/isProduction-0ea904dd.js +27 -0
  179. package/build/esm/lead.js +2140 -1
  180. package/build/esm/localizeNumberFormat-2ac3773e.js +23 -0
  181. package/build/esm/mantine.js +113 -1
  182. package/build/esm/misc.js +22 -1
  183. package/build/esm/navigation.js +51 -1
  184. package/build/esm/normalizeLink-d1c9617e.js +12 -0
  185. package/build/esm/number-0c126a39.js +38 -0
  186. package/build/esm/onboardingV2.js +860 -34
  187. package/build/esm/paths-a8204db4.js +14 -0
  188. package/build/esm/pwg.js +208 -7
  189. package/build/esm/routing-2474f896.js +40 -0
  190. package/build/esm/subot.js +4553 -134
  191. package/build/esm/theme-e74db08c.js +186 -0
  192. package/build/esm/together.js +52 -1
  193. package/build/esm/translationsContext-ad3e25de.js +5 -0
  194. package/build/esm/tslib.es6-1b1533a9.js +38 -0
  195. package/build/esm/types-06f00b3d.js +8015 -0
  196. package/build/esm/types-15e34418.js +3432 -0
  197. package/build/esm/types-ba190c26.js +21 -0
  198. package/build/esm/types.js +1 -1
  199. package/build/esm/unifyEnv.js +42 -1
  200. package/build/esm/useCategory-2c87152d.js +292 -0
  201. package/build/esm/useHealthToolCache-29d22ddb.js +17 -0
  202. package/build/esm/useIsInit-8a2fc8e5.js +11 -0
  203. package/build/esm/useOutsideClick-c8a7ff20.js +45 -0
  204. package/build/esm/usePlacesAutocomplete-63e04e8e.js +80 -0
  205. package/build/esm/useScrollbarSize-51ce1374.js +57 -0
  206. package/build/esm/useTranslations-4f1db486.js +26 -0
  207. package/build/esm/useUniqueId-3638402f.js +41 -0
  208. package/build/esm/utils-2c484c05.js +132 -0
  209. package/build/esm/utils-3a2a47d9.js +22 -0
  210. package/build/esm/utils-6d7b88da.js +367 -0
  211. package/build/esm/utils-70718e9c.js +1124 -0
  212. package/build/esm/vaccination.js +868 -40
  213. package/build/footer.js +39 -1
  214. package/build/gAssets.js +14 -1
  215. package/build/getDynamicHealthTool-114a1e27.js +48 -0
  216. package/build/getSocialList-4713441d.js +72 -0
  217. package/build/hooks.js +44 -1
  218. package/build/i18n-values/en-PH.js +611 -1
  219. package/build/i18n-values/hi-IN.js +611 -1
  220. package/build/i18n-values/id-ID.js +611 -1
  221. package/build/i18n-values/km-KH.js +611 -1
  222. package/build/i18n-values/ms-MY.js +613 -1
  223. package/build/i18n-values/my-MM.js +611 -1
  224. package/build/i18n-values/th-TH.js +611 -1
  225. package/build/i18n-values/tl-PH.js +611 -1
  226. package/build/i18n-values/vi-VN.js +618 -1
  227. package/build/i18n-values/vi-VN_MB.js +618 -1
  228. package/build/i18n-values/zh-TW.js +611 -1
  229. package/build/i18n.js +64 -1
  230. package/build/i18nV2.js +26 -1
  231. package/build/index-020e6908.js +39 -0
  232. package/build/index-0da9b2e8.js +59 -0
  233. package/build/index-11468c00.js +157 -0
  234. package/build/index-117448a5.js +133 -0
  235. package/build/index-12c07f71.js +18 -0
  236. package/build/index-1a105e87.js +123 -0
  237. package/build/index-1baaedb0.js +55 -0
  238. package/build/index-32d38318.js +7 -0
  239. package/build/index-38582ee0.js +8373 -0
  240. package/build/index-3e5fc2d6.js +1994 -0
  241. package/build/index-3eef6bed.js +853 -0
  242. package/build/index-4035e658.js +159 -0
  243. package/build/index-488d71ae.js +30 -0
  244. package/build/index-5553f9e1.js +930 -0
  245. package/build/index-5fa68e45.js +380 -0
  246. package/build/index-7b467209.js +39 -0
  247. package/build/index-81cb1142.js +77 -0
  248. package/build/index-84ab5b89.js +38 -0
  249. package/build/index-8a95d709.js +30 -0
  250. package/build/index-9da9f0c3.js +35 -0
  251. package/build/index-af91c83e.js +20 -0
  252. package/build/index-b6aea85e.js +191 -0
  253. package/build/index-bc4f4c33.js +156 -0
  254. package/build/index-c604d6bb.js +624 -0
  255. package/build/index-d330735e.js +30 -0
  256. package/build/index-d8a7efaf.js +14 -0
  257. package/build/index-e2e81fa2.js +23 -0
  258. package/build/index-e3d896b3.js +3261 -0
  259. package/build/index.js +436 -1
  260. package/build/{esm/index.styled-ac7ac0fc.js → index.styled-5628b3e7.js} +25 -5
  261. package/build/index.styles-b822bf42.js +1342 -0
  262. package/build/isProduction-5ce3a388.js +29 -0
  263. package/build/lead.js +2168 -1
  264. package/build/localizeNumberFormat-f5f50987.js +31 -0
  265. package/build/mantine.js +154 -1
  266. package/build/misc.js +70 -1
  267. package/build/navigation.js +61 -1
  268. package/build/normalizeLink-6f7b85d8.js +15 -0
  269. package/build/number-79fe92e1.js +40 -0
  270. package/build/onboardingV2.js +892 -34
  271. package/build/paths-a5643d9e.js +16 -0
  272. package/build/pwg.js +217 -7
  273. package/build/routing-191a9a00.js +46 -0
  274. package/build/subot.js +4592 -134
  275. package/build/theme-fa910869.js +189 -0
  276. package/build/together.js +112 -1
  277. package/build/translationsContext-950334bf.js +7 -0
  278. package/build/tslib.es6-65e312a5.js +41 -0
  279. package/build/types-0f117a9f.js +8084 -0
  280. package/build/types-1fedb3d1.js +3446 -0
  281. package/build/types-52a4e888.js +24 -0
  282. package/build/types.js +56 -1
  283. package/build/unifyEnv.js +46 -1
  284. package/build/useCategory-cfc702f5.js +299 -0
  285. package/build/useHealthToolCache-43a7014d.js +19 -0
  286. package/build/useIsInit-89535012.js +13 -0
  287. package/build/useOutsideClick-c6813964.js +49 -0
  288. package/build/usePlacesAutocomplete-297de092.js +84 -0
  289. package/build/useScrollbarSize-0fa31aa7.js +64 -0
  290. package/build/useTranslations-e1853417.js +32 -0
  291. package/build/useUniqueId-11369116.js +44 -0
  292. package/build/utils-52113753.js +384 -0
  293. package/build/utils-64bd0c42.js +143 -0
  294. package/build/utils-661411f6.js +1171 -0
  295. package/build/utils-e1513cbc.js +25 -0
  296. package/build/vaccination.js +891 -40
  297. package/package.json +4 -5
  298. package/build/BMI_BOYS.percentile.monthly-8cc875f7.js +0 -1
  299. package/build/BMI_BOYS.percentile.weekly-b45b05e3.js +0 -1
  300. package/build/BMI_BOYS.percentile.yearly-e4f1d19c.js +0 -1
  301. package/build/BMI_BOYS.zscore.monthly-e51737eb.js +0 -1
  302. package/build/BMI_BOYS.zscore.weekly-4080c0d5.js +0 -1
  303. package/build/BMI_BOYS.zscore.yearly-703e5747.js +0 -1
  304. package/build/BMI_GIRLS.percentile.monthly-ac5a001d.js +0 -1
  305. package/build/BMI_GIRLS.percentile.weekly-6a6f4703.js +0 -1
  306. package/build/BMI_GIRLS.percentile.yearly-8eb7e8e5.js +0 -1
  307. package/build/BMI_GIRLS.zscore.monthly-c2763465.js +0 -1
  308. package/build/BMI_GIRLS.zscore.weekly-7438d8b6.js +0 -1
  309. package/build/BMI_GIRLS.zscore.yearly-a56ffb0c.js +0 -1
  310. package/build/ChevronDown-81b50697.js +0 -1
  311. package/build/HEAD CIRCUM_BOYS.percentile.monthly-cccf9306.js +0 -1
  312. package/build/HEAD CIRCUM_BOYS.percentile.weekly-85fc8a7e.js +0 -1
  313. package/build/HEAD CIRCUM_BOYS.percentile.yearly-d22ad913.js +0 -1
  314. package/build/HEAD CIRCUM_BOYS.zscore.monthly-4db20906.js +0 -1
  315. package/build/HEAD CIRCUM_BOYS.zscore.weekly-1a4dc975.js +0 -1
  316. package/build/HEAD CIRCUM_BOYS.zscore.yearly-a2bcdd3a.js +0 -1
  317. package/build/HEAD CIRCUM_GIRLS.percentile.monthly-13e127f5.js +0 -1
  318. package/build/HEAD CIRCUM_GIRLS.percentile.weekly-95a7695c.js +0 -1
  319. package/build/HEAD CIRCUM_GIRLS.percentile.yearly-852dc893.js +0 -1
  320. package/build/HEAD CIRCUM_GIRLS.zscore.monthly-9865857d.js +0 -1
  321. package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9bdf4dda.js +0 -1
  322. package/build/HEAD CIRCUM_GIRLS.zscore.yearly-ac24fb2f.js +0 -1
  323. package/build/HEIGHT_BOYS.percentile.monthly-691b0568.js +0 -1
  324. package/build/HEIGHT_BOYS.percentile.weekly-520bd6ac.js +0 -1
  325. package/build/HEIGHT_BOYS.percentile.yearly-9093722e.js +0 -1
  326. package/build/HEIGHT_BOYS.zscore.monthly-84db220e.js +0 -1
  327. package/build/HEIGHT_BOYS.zscore.weekly-ce0c52d1.js +0 -1
  328. package/build/HEIGHT_BOYS.zscore.yearly-dab7d4e0.js +0 -1
  329. package/build/HEIGHT_GIRLS.percentile.monthly-7f42e4cd.js +0 -1
  330. package/build/HEIGHT_GIRLS.percentile.weekly-79ca42e5.js +0 -1
  331. package/build/HEIGHT_GIRLS.percentile.yearly-4e11d0f8.js +0 -1
  332. package/build/HEIGHT_GIRLS.zscore.monthly-74be7929.js +0 -1
  333. package/build/HEIGHT_GIRLS.zscore.weekly-a47a1d90.js +0 -1
  334. package/build/HEIGHT_GIRLS.zscore.yearly-f4984496.js +0 -1
  335. package/build/Subot-b0700a95.js +0 -1
  336. package/build/Visible-0267024a.js +0 -1
  337. package/build/WEIGHT_BOYS.percentile.monthly-08b33be0.js +0 -1
  338. package/build/WEIGHT_BOYS.percentile.weekly-65a4fa70.js +0 -1
  339. package/build/WEIGHT_BOYS.percentile.yearly-f3b46cc5.js +0 -1
  340. package/build/WEIGHT_BOYS.zscore.monthly-d1191a6a.js +0 -1
  341. package/build/WEIGHT_BOYS.zscore.weekly-61c60cf9.js +0 -1
  342. package/build/WEIGHT_BOYS.zscore.yearly-0d89c866.js +0 -1
  343. package/build/WEIGHT_GIRLS.percentile.monthly-221c1ba4.js +0 -1
  344. package/build/WEIGHT_GIRLS.percentile.weekly-fbd203a6.js +0 -1
  345. package/build/WEIGHT_GIRLS.percentile.yearly-36a909c2.js +0 -1
  346. package/build/WEIGHT_GIRLS.zscore.monthly-09b6ae5b.js +0 -1
  347. package/build/WEIGHT_GIRLS.zscore.weekly-7ada849a.js +0 -1
  348. package/build/WEIGHT_GIRLS.zscore.yearly-5115a509.js +0 -1
  349. package/build/constants-47b9b5ff.js +0 -108
  350. package/build/constants-8d5fe5b9.js +0 -1
  351. package/build/cookieHelper-effc4373.js +0 -1
  352. package/build/core-fc6dbe08.js +0 -1
  353. package/build/dataTransform-ad721ec5.js +0 -1
  354. package/build/esm/BMI_BOYS.percentile.monthly-2aa26d5a.js +0 -1
  355. package/build/esm/BMI_BOYS.percentile.weekly-838f6b27.js +0 -1
  356. package/build/esm/BMI_BOYS.percentile.yearly-e77609d7.js +0 -1
  357. package/build/esm/BMI_BOYS.zscore.monthly-2657168d.js +0 -1
  358. package/build/esm/BMI_BOYS.zscore.weekly-d3c18887.js +0 -1
  359. package/build/esm/BMI_BOYS.zscore.yearly-3759a54e.js +0 -1
  360. package/build/esm/BMI_GIRLS.percentile.monthly-f3e35273.js +0 -1
  361. package/build/esm/BMI_GIRLS.percentile.weekly-7936ee97.js +0 -1
  362. package/build/esm/BMI_GIRLS.percentile.yearly-757b0bc4.js +0 -1
  363. package/build/esm/BMI_GIRLS.zscore.monthly-d9760b61.js +0 -1
  364. package/build/esm/BMI_GIRLS.zscore.weekly-a58e0db1.js +0 -1
  365. package/build/esm/BMI_GIRLS.zscore.yearly-92413c27.js +0 -1
  366. package/build/esm/ChevronDown-e7d44dc3.js +0 -1
  367. package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-c50f125e.js +0 -1
  368. package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-29038598.js +0 -1
  369. package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-32c4e2be.js +0 -1
  370. package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-cd04e4b1.js +0 -1
  371. package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6b63745c.js +0 -1
  372. package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-3a5be78c.js +0 -1
  373. package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-c7996a02.js +0 -1
  374. package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-553c94d5.js +0 -1
  375. package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-97f86688.js +0 -1
  376. package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-a442f7cc.js +0 -1
  377. package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-cdd37afd.js +0 -1
  378. package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-50d9daff.js +0 -1
  379. package/build/esm/HEIGHT_BOYS.percentile.monthly-53580c1f.js +0 -1
  380. package/build/esm/HEIGHT_BOYS.percentile.weekly-60514fb8.js +0 -1
  381. package/build/esm/HEIGHT_BOYS.percentile.yearly-d6b456a7.js +0 -1
  382. package/build/esm/HEIGHT_BOYS.zscore.monthly-21bd1444.js +0 -1
  383. package/build/esm/HEIGHT_BOYS.zscore.weekly-2a4e7aa0.js +0 -1
  384. package/build/esm/HEIGHT_BOYS.zscore.yearly-7f68c522.js +0 -1
  385. package/build/esm/HEIGHT_GIRLS.percentile.monthly-d5d7448a.js +0 -1
  386. package/build/esm/HEIGHT_GIRLS.percentile.weekly-c3c18801.js +0 -1
  387. package/build/esm/HEIGHT_GIRLS.percentile.yearly-3491901c.js +0 -1
  388. package/build/esm/HEIGHT_GIRLS.zscore.monthly-9f15dd03.js +0 -1
  389. package/build/esm/HEIGHT_GIRLS.zscore.weekly-81319284.js +0 -1
  390. package/build/esm/HEIGHT_GIRLS.zscore.yearly-8a7db57c.js +0 -1
  391. package/build/esm/Subot-fcd7c77c.js +0 -1
  392. package/build/esm/Visible-66d0e6f3.js +0 -1
  393. package/build/esm/WEIGHT_BOYS.percentile.monthly-0f5ea175.js +0 -1
  394. package/build/esm/WEIGHT_BOYS.percentile.weekly-88f50098.js +0 -1
  395. package/build/esm/WEIGHT_BOYS.percentile.yearly-63383bc3.js +0 -1
  396. package/build/esm/WEIGHT_BOYS.zscore.monthly-bf93eec1.js +0 -1
  397. package/build/esm/WEIGHT_BOYS.zscore.weekly-fe0600be.js +0 -1
  398. package/build/esm/WEIGHT_BOYS.zscore.yearly-4212bebb.js +0 -1
  399. package/build/esm/WEIGHT_GIRLS.percentile.monthly-6cc8cf8c.js +0 -1
  400. package/build/esm/WEIGHT_GIRLS.percentile.weekly-05d66e6d.js +0 -1
  401. package/build/esm/WEIGHT_GIRLS.percentile.yearly-b8c1af06.js +0 -1
  402. package/build/esm/WEIGHT_GIRLS.zscore.monthly-8c9195d5.js +0 -1
  403. package/build/esm/WEIGHT_GIRLS.zscore.weekly-4ef9aeee.js +0 -1
  404. package/build/esm/WEIGHT_GIRLS.zscore.yearly-0ccaeb51.js +0 -1
  405. package/build/esm/constants-046883ea.js +0 -1
  406. package/build/esm/constants-1e65de37.js +0 -108
  407. package/build/esm/cookieHelper-e37e6893.js +0 -1
  408. package/build/esm/core-7a237cdc.js +0 -1
  409. package/build/esm/dataTransform-f4476a6b.js +0 -1
  410. package/build/esm/getDynamicHealthTool-e095ea8b.js +0 -1
  411. package/build/esm/getSocialList-5f74d2b2.js +0 -1
  412. package/build/esm/index-006bca17.js +0 -1
  413. package/build/esm/index-068a9606.js +0 -137
  414. package/build/esm/index-0d0e5f45.js +0 -1
  415. package/build/esm/index-1e29d7b0.js +0 -1
  416. package/build/esm/index-2b572b4f.js +0 -1
  417. package/build/esm/index-318d4230.js +0 -117
  418. package/build/esm/index-39174b30.js +0 -1
  419. package/build/esm/index-3bfcc95c.js +0 -1
  420. package/build/esm/index-3c612859.js +0 -1
  421. package/build/esm/index-4004c359.js +0 -113
  422. package/build/esm/index-41f67971.js +0 -177
  423. package/build/esm/index-42a8c7e8.js +0 -1430
  424. package/build/esm/index-461eded2.js +0 -2748
  425. package/build/esm/index-575f65cb.js +0 -1
  426. package/build/esm/index-7f4008ff.js +0 -1
  427. package/build/esm/index-81dbde00.js +0 -375
  428. package/build/esm/index-99348fe5.js +0 -1
  429. package/build/esm/index-9b8a2194.js +0 -1
  430. package/build/esm/index-9d529405.js +0 -1
  431. package/build/esm/index-a445a873.js +0 -1
  432. package/build/esm/index-ab99f4fa.js +0 -1
  433. package/build/esm/index-b7782e6c.js +0 -1
  434. package/build/esm/index-b7a87c5c.js +0 -50
  435. package/build/esm/index-c737fbcc.js +0 -1
  436. package/build/esm/index-dfe2918d.js +0 -1
  437. package/build/esm/index-e7dea007.js +0 -1
  438. package/build/esm/index-eab0e39a.js +0 -1
  439. package/build/esm/index-fa743e14.js +0 -1
  440. package/build/esm/index.styles-d0b249c6.js +0 -817
  441. package/build/esm/isProduction-819e0c5c.js +0 -1
  442. package/build/esm/localizeNumberFormat-87b8adfd.js +0 -1
  443. package/build/esm/normalizeLink-86ab5a4c.js +0 -1
  444. package/build/esm/number-087a7e5f.js +0 -1
  445. package/build/esm/paths-838a5528.js +0 -1
  446. package/build/esm/routing-c85cbf05.js +0 -1
  447. package/build/esm/theme-691eca44.js +0 -1
  448. package/build/esm/translationsContext-f8842fe7.js +0 -1
  449. package/build/esm/tslib.es6-1ab8a2bb.js +0 -1
  450. package/build/esm/types-2d76a291.js +0 -3004
  451. package/build/esm/types-81267cf7.js +0 -1
  452. package/build/esm/types-e02aa1d1.js +0 -785
  453. package/build/esm/useCategory-16048c77.js +0 -1
  454. package/build/esm/useHealthToolCache-b2ecca8b.js +0 -1
  455. package/build/esm/useIsInit-c9c6a218.js +0 -1
  456. package/build/esm/useOutsideClick-9787ba70.js +0 -1
  457. package/build/esm/usePlacesAutocomplete-1966a8e8.js +0 -1
  458. package/build/esm/useScrollbarSize-2cadb783.js +0 -1
  459. package/build/esm/useTranslations-06f29a74.js +0 -1
  460. package/build/esm/useUniqueId-8d28d0f0.js +0 -1
  461. package/build/esm/utils-21a3e198.js +0 -1
  462. package/build/esm/utils-581f9d39.js +0 -8
  463. package/build/esm/utils-8845cf64.js +0 -141
  464. package/build/esm/utils-9188a853.js +0 -1
  465. package/build/getDynamicHealthTool-110fd918.js +0 -1
  466. package/build/getSocialList-eca125e9.js +0 -1
  467. package/build/index-06e0154a.js +0 -177
  468. package/build/index-07abd94a.js +0 -1
  469. package/build/index-0c773078.js +0 -117
  470. package/build/index-170f5567.js +0 -1
  471. package/build/index-19ccb0c7.js +0 -1
  472. package/build/index-219cacd2.js +0 -1
  473. package/build/index-2c0386df.js +0 -50
  474. package/build/index-2ce34495.js +0 -1
  475. package/build/index-3f31aa06.js +0 -1
  476. package/build/index-686fe563.js +0 -1
  477. package/build/index-6c8c7fa5.js +0 -1
  478. package/build/index-76c307b4.js +0 -375
  479. package/build/index-78e20b2b.js +0 -1
  480. package/build/index-853a455f.js +0 -1
  481. package/build/index-9834ba3a.js +0 -1
  482. package/build/index-9c1259e4.js +0 -1
  483. package/build/index-9eed92e6.js +0 -1
  484. package/build/index-a046b313.js +0 -137
  485. package/build/index-ae78fa34.js +0 -113
  486. package/build/index-c4552011.js +0 -1
  487. package/build/index-d0a7d5e2.js +0 -1
  488. package/build/index-d59720e6.js +0 -1
  489. package/build/index-de63ce4e.js +0 -1
  490. package/build/index-e363ea7e.js +0 -1
  491. package/build/index-e4952f3b.js +0 -2748
  492. package/build/index-e9919dca.js +0 -1430
  493. package/build/index-f124e061.js +0 -1
  494. package/build/index-fc3d21c5.js +0 -1
  495. package/build/index.styles-e56f16e2.js +0 -817
  496. package/build/isProduction-b8d43f53.js +0 -1
  497. package/build/localizeNumberFormat-7b0e4009.js +0 -1
  498. package/build/normalizeLink-eb3980aa.js +0 -1
  499. package/build/number-03c2dc35.js +0 -1
  500. package/build/paths-38b399e5.js +0 -1
  501. package/build/routing-fa35242c.js +0 -1
  502. package/build/theme-58404344.js +0 -1
  503. package/build/translationsContext-6a4e467c.js +0 -1
  504. package/build/tslib.es6-f82cfdbc.js +0 -1
  505. package/build/types-006c0884.js +0 -785
  506. package/build/types-48100068.js +0 -3004
  507. package/build/types-b4886ab8.js +0 -1
  508. package/build/useCategory-5efbe937.js +0 -1
  509. package/build/useHealthToolCache-4085d047.js +0 -1
  510. package/build/useIsInit-cde99e17.js +0 -1
  511. package/build/useOutsideClick-8d455bb1.js +0 -1
  512. package/build/usePlacesAutocomplete-fa0acdc7.js +0 -1
  513. package/build/useScrollbarSize-3593573d.js +0 -1
  514. package/build/useTranslations-d91f297f.js +0 -1
  515. package/build/useUniqueId-76286c45.js +0 -1
  516. package/build/utils-6c4e6bc4.js +0 -8
  517. package/build/utils-dd2fab54.js +0 -141
  518. package/build/utils-e1f42597.js +0 -1
  519. package/build/utils-fade3897.js +0 -1
@@ -0,0 +1,21 @@
1
+ // You can include shared interfaces/types in a separate file
2
+ // and then use them in any component by importing them. For
3
+ // example, to import the interface below do:
4
+ //
5
+ var GenderLabel;
6
+ (function (GenderLabel) {
7
+ GenderLabel["MALE"] = "gender.male";
8
+ GenderLabel["FEMALE"] = "gender.female";
9
+ GenderLabel["OTHER"] = "gender.other";
10
+ })(GenderLabel || (GenderLabel = {}));
11
+ const DATE_FORMAT_API = 'yyyy-MM-dd';
12
+ const DATE_FORMAT = 'dd-MM-yyyy';
13
+
14
+ var types = /*#__PURE__*/Object.freeze({
15
+ __proto__: null,
16
+ get GenderLabel () { return GenderLabel; },
17
+ DATE_FORMAT_API: DATE_FORMAT_API,
18
+ DATE_FORMAT: DATE_FORMAT
19
+ });
20
+
21
+ export { DATE_FORMAT as D, types as t };
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-fcd7c77c.js";
1
+ export { a as BabyGrowthChartDuration, B as BabyGrowthChartType, b as BabyGrowthResultTab, E as ELEMENT_CONTROL_INPUT_TYPE, F as FULL_KEY_ADDRESS, G as Gender, L as LOCALE, f as NodeActionType, d as NodeFinalTypes, e as NodeIntentType, g as NodeMultipleOptions, N as NodePosition, c as NodeType, O as OnboardingStep, S as SubotType } from './Subot-3289bd8e.js';
@@ -1 +1,42 @@
1
- function I({DISCOVER_API:I,INTERNAL_DISCOVER_API:_,TOGETHER_API:A,INTERNAL_TOGETHER_API:N,CARE_API:E,INTERNAL_CARE_API:e,SIDIS_TEMPLATE_API:s,SIDIS_API:P,SIDIS_API_GET:T,SSO_API:U,LOCALE:L,DEPLOY_ENV:O,LEAD_API:S,SUBOT_API:R,INTERNAL_SUBOT_API:n,SUBOT_URL:r,PREMIUM_URL:o,VACCINATION_TOOL_API:Y,LOGGING_ENABLED:c}){I&&(process.env.UNIFY_DISCOVER_API=I),_&&(process.env.UNIFY_INTERNAL_DISCOVER_API=_),A&&(process.env.UNIFY_TOGETHER_API=A),N&&(process.env.UNIFY_INTERNAL_TOGETHER_API=N),E&&(process.env.UNIFY_CARE_API=E),e&&(process.env.UNIFY_INTERNAL_CARE_API=e),s&&(process.env.UNIFY_SIDIS_TEMPLATE_API=s),P&&(process.env.UNIFY_SIDIS_API=P),T&&(process.env.UNIFY_SIDIS_API_GET=T),U&&(process.env.UNIFY_SSO_API=U),L&&(process.env.UNIFY_LOCALE=L),O&&(process.env.UNIFY_DEPLOY_ENV=O),S&&(process.env.UNIFY_LEAD_API=S),R&&(process.env.UNIFY_SUBOT_API=R),n&&(process.env.UNIFY_INTERNAL_SUBOT_API=n),r&&(process.env.UNIFY_SUBOT_URL=r),o&&(process.env.UNIFY_PREMIUM_URL=o),Y&&(process.env.UNIFY_VACCINATION_TOOL_API=Y),String(c)&&(process.env.UNIFY_LOGGING_ENABLED=String(c))}export{I as setupUnifyEnv};
1
+ function setupUnifyEnv({ DISCOVER_API, INTERNAL_DISCOVER_API, TOGETHER_API, INTERNAL_TOGETHER_API, CARE_API, INTERNAL_CARE_API, SIDIS_TEMPLATE_API, SIDIS_API, SIDIS_API_GET, SSO_API, LOCALE, DEPLOY_ENV, LEAD_API, SUBOT_API, INTERNAL_SUBOT_API, SUBOT_URL, PREMIUM_URL, VACCINATION_TOOL_API, LOGGING_ENABLED, }) {
2
+ if (DISCOVER_API)
3
+ process.env.UNIFY_DISCOVER_API = DISCOVER_API;
4
+ if (INTERNAL_DISCOVER_API)
5
+ process.env.UNIFY_INTERNAL_DISCOVER_API = INTERNAL_DISCOVER_API;
6
+ if (TOGETHER_API)
7
+ process.env.UNIFY_TOGETHER_API = TOGETHER_API;
8
+ if (INTERNAL_TOGETHER_API)
9
+ process.env.UNIFY_INTERNAL_TOGETHER_API = INTERNAL_TOGETHER_API;
10
+ if (CARE_API)
11
+ process.env.UNIFY_CARE_API = CARE_API;
12
+ if (INTERNAL_CARE_API)
13
+ process.env.UNIFY_INTERNAL_CARE_API = INTERNAL_CARE_API;
14
+ if (SIDIS_TEMPLATE_API)
15
+ process.env.UNIFY_SIDIS_TEMPLATE_API = SIDIS_TEMPLATE_API;
16
+ if (SIDIS_API)
17
+ process.env.UNIFY_SIDIS_API = SIDIS_API;
18
+ if (SIDIS_API_GET)
19
+ process.env.UNIFY_SIDIS_API_GET = SIDIS_API_GET;
20
+ if (SSO_API)
21
+ process.env.UNIFY_SSO_API = SSO_API;
22
+ if (LOCALE)
23
+ process.env.UNIFY_LOCALE = LOCALE;
24
+ if (DEPLOY_ENV)
25
+ process.env.UNIFY_DEPLOY_ENV = DEPLOY_ENV;
26
+ if (LEAD_API)
27
+ process.env.UNIFY_LEAD_API = LEAD_API;
28
+ if (SUBOT_API)
29
+ process.env.UNIFY_SUBOT_API = SUBOT_API;
30
+ if (INTERNAL_SUBOT_API)
31
+ process.env.UNIFY_INTERNAL_SUBOT_API = INTERNAL_SUBOT_API;
32
+ if (SUBOT_URL)
33
+ process.env.UNIFY_SUBOT_URL = SUBOT_URL;
34
+ if (PREMIUM_URL)
35
+ process.env.UNIFY_PREMIUM_URL = PREMIUM_URL;
36
+ if (VACCINATION_TOOL_API)
37
+ process.env.UNIFY_VACCINATION_TOOL_API = VACCINATION_TOOL_API;
38
+ if (String(LOGGING_ENABLED))
39
+ process.env.UNIFY_LOGGING_ENABLED = String(LOGGING_ENABLED);
40
+ }
41
+
42
+ export { setupUnifyEnv };
@@ -0,0 +1,292 @@
1
+ import { a as __awaiter } from './tslib.es6-1b1533a9.js';
2
+ import { useRef, useEffect, useState, useCallback, useMemo } from 'react';
3
+ import { g as getCookie } from './cookieHelper-d314282c.js';
4
+ import { u as useInitialMount } from './useUniqueId-3638402f.js';
5
+ import { L as LOCALE } from './Subot-3289bd8e.js';
6
+ import { u as useTranslations } from './useTranslations-4f1db486.js';
7
+
8
+ function normalizeAndHash(string) {
9
+ const utf8 = new TextEncoder().encode(string.trim().toLowerCase());
10
+ return crypto.subtle.digest('SHA-256', utf8).then((hashBuffer) => {
11
+ const hashArray = Array.from(new Uint8Array(hashBuffer));
12
+ const hashHex = hashArray
13
+ .map((bytes) => bytes.toString(16).padStart(2, '0'))
14
+ .join('');
15
+ return hashHex;
16
+ });
17
+ }
18
+ const FbDataLayerStoreKey = 'fbDataLayer_userInfo';
19
+ const IPStoreKey = 'fbClientIp';
20
+ const useFbDataLayer = (userInfo) => {
21
+ const savedIpRef = useRef('');
22
+ useEffect(() => {
23
+ (() => __awaiter(void 0, void 0, void 0, function* () {
24
+ var _a, _b, _c, _d, _e;
25
+ if (!savedIpRef.current) {
26
+ let userIp = yield fetch('https://api.ipify.org').then((res) => res.text());
27
+ if (!userIp) {
28
+ userIp = yield fetch('https://icanhazip.com').then((res) => res.text());
29
+ }
30
+ savedIpRef.current = userIp;
31
+ }
32
+ (_b = (_a = window.localStorage) === null || _a === void 0 ? void 0 : _a.setItem) === null || _b === void 0 ? void 0 : _b.call(_a, IPStoreKey, JSON.stringify({
33
+ client_ip_address: ((_c = savedIpRef.current) === null || _c === void 0 ? void 0 : _c.replace('\n', '')) || '',
34
+ client_user_agent: navigator.userAgent || '',
35
+ }));
36
+ if (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) {
37
+ const [em, ph, db, ge, ct, fn] = yield Promise.all([
38
+ userInfo.email ? normalizeAndHash(userInfo.email) : null,
39
+ userInfo.phone ? normalizeAndHash(userInfo.phone) : null,
40
+ userInfo.birthday
41
+ ? normalizeAndHash(userInfo.birthday.split('-').join(''))
42
+ : null,
43
+ userInfo.gender ? 'm' : 'f',
44
+ userInfo.city_name
45
+ ? normalizeAndHash(userInfo.city_name).then((n) => n.replace(/\s/g, ''))
46
+ : null,
47
+ userInfo.name ? normalizeAndHash(userInfo.name) : null,
48
+ ]);
49
+ ({
50
+ fbc: getCookie('_fbc') || '',
51
+ fbp: getCookie('_fbp') || '',
52
+ });
53
+ const localData = {
54
+ user_id: userInfo.id,
55
+ };
56
+ if (fn) {
57
+ localData['fn'] = fn;
58
+ }
59
+ if (em) {
60
+ localData['em'] = em;
61
+ }
62
+ if (ph) {
63
+ localData['ph'] = ph;
64
+ }
65
+ if (db) {
66
+ localData['db'] = db;
67
+ }
68
+ if (ct) {
69
+ localData['ct'] = ct;
70
+ }
71
+ (_e = (_d = window.localStorage) === null || _d === void 0 ? void 0 : _d.setItem) === null || _e === void 0 ? void 0 : _e.call(_d, FbDataLayerStoreKey, JSON.stringify(localData));
72
+ // ;(async function waitFbq() {
73
+ // // check for the generic script
74
+ // // easiest check to prevent race condition
75
+ // if (window.fbq) {
76
+ // window.fbq('trackCustom', 'FB Conversion', {
77
+ // action_source: 'website',
78
+ // event_source_url: window.location.href,
79
+ // user_data: [userData],
80
+ // })
81
+ // } else {
82
+ // timeout = setTimeout(waitFbq, 1000)
83
+ // }
84
+ // })()
85
+ }
86
+ }))();
87
+ return () => {
88
+ };
89
+ }, [userInfo]);
90
+ };
91
+
92
+ /** src: https://www.benmvp.com/blog/8-helpful-custom-react-hooks/
93
+ * know the PREVIOUS + DIFFERENT value of props or state. */
94
+ const usePrevious = (value) => {
95
+ // use refs to keep track of both the previous &
96
+ // current values
97
+ const prevRef = useRef();
98
+ const curRef = useRef(value);
99
+ const isInitialMount = useInitialMount();
100
+ // after the initial render, if the value passed in
101
+ // differs from the `curRef`, then we know that the
102
+ // value we're tracking actually changed. we can
103
+ // update the refs. otherwise if the `curRef` &
104
+ // value are the same, something else caused the
105
+ // re-render and we should *not* update `prevRef`.
106
+ if (!isInitialMount && curRef.current !== value) {
107
+ prevRef.current = curRef.current;
108
+ curRef.current = value;
109
+ }
110
+ return prevRef.current;
111
+ };
112
+
113
+ /** src: https://www.benmvp.com/blog/8-helpful-custom-react-hooks/
114
+ * delay State update till next animation frame. Similar to debounce but shorter */
115
+ const useRafState = (initialState) => {
116
+ // this is the actual state
117
+ const [state, setState] = useState(initialState);
118
+ // keep track of the `requestAnimationFrame` request ID
119
+ // across renders and successive calls to `useRafState`
120
+ const requestId = useRef(0);
121
+ // the actual state setter we'll return.
122
+ // using `useCallback` so that it's memoized
123
+ // just like `setState`
124
+ const setRafState = useCallback((value) => {
125
+ // cancel active request before making next one.
126
+ // this is debouncing.
127
+ cancelAnimationFrame(requestId.current);
128
+ // create new request to set state on animation frame
129
+ requestId.current = requestAnimationFrame(() => {
130
+ setState(value);
131
+ });
132
+ }, []);
133
+ // cancel any active request when component unmounts
134
+ useEffect(() => {
135
+ return () => cancelAnimationFrame(requestId.current);
136
+ });
137
+ return [state, setRafState];
138
+ };
139
+
140
+ const PREGNANCY_SLUG = {
141
+ 'vi-VN': 'mang-thai',
142
+ 'id-ID': 'kehamilan',
143
+ 'ms-MY': 'kehamilan',
144
+ 'km-KH': 'ពពោះ',
145
+ 'en-PH': 'pregnancy',
146
+ 'tl-PH': 'pregnancy',
147
+ 'th-TH': 'การตั้งครรภ์',
148
+ 'my-MM': 'pregnancy',
149
+ 'zh-TW': 'pregnancy',
150
+ 'hi-IN': 'pregnancy',
151
+ };
152
+ // NOTE: this is temporary mapping on 13/02/2023, can be outdated due to changes from content team in the future
153
+ const MAPPED_CATEGORY_SLUGS = {
154
+ [LOCALE.Vietnam]: {
155
+ sexualWellness: 'suc-khoe-tinh-duc',
156
+ health: 'suc-khoe',
157
+ healthyEating: 'an-uong-lanh-manh',
158
+ skinHealth: 'da-lieu',
159
+ healthyHabit: 'thoi-quen-lanh-manh',
160
+ drug: 'thuoc',
161
+ womensHealth: 'suc-khoe-phu-nu',
162
+ fitness: 'the-duc-the-thao',
163
+ pregnancy: 'mang-thai',
164
+ parenting: 'nuoi-day-con',
165
+ diabetes: 'tieu-duong-dai-thao-duong',
166
+ healthyMind: 'tam-ly-tam-than',
167
+ },
168
+ [LOCALE.Indonesia]: {
169
+ pregnancy: 'kehamilan',
170
+ parenting: 'parenting',
171
+ health: 'sehat',
172
+ diabetes: 'diabetes',
173
+ womensHealth: 'wanita',
174
+ drug: 'obat-suplemen',
175
+ sexualWellness: '',
176
+ healthyEating: '',
177
+ skinHealth: '',
178
+ },
179
+ [LOCALE.Malaysia]: {
180
+ pregnancy: 'kehamilan',
181
+ parenting: 'keibubapaan',
182
+ health: 'kesihatan',
183
+ diabetes: 'kencing-manis',
184
+ womensHealth: 'kesihatan-wanita',
185
+ drug: 'ubat',
186
+ sexualWellness: '',
187
+ healthyEating: '',
188
+ skinHealth: '',
189
+ },
190
+ [LOCALE.Cambodia]: {
191
+ pregnancy: '%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87',
192
+ parenting: '%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93',
193
+ health: '%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85',
194
+ diabetes: '%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98',
195
+ womensHealth: '%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8',
196
+ drug: '%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93',
197
+ sexualWellness: '',
198
+ healthyEating: '',
199
+ skinHealth: '',
200
+ },
201
+ [LOCALE.PhilippinesEnglish]: {
202
+ pregnancy: 'pregnancy',
203
+ parenting: 'parenting',
204
+ health: 'health',
205
+ diabetes: 'diabetes',
206
+ womensHealth: 'womens-health',
207
+ drug: 'drugs-supplements',
208
+ sexualWellness: '',
209
+ healthyEating: '',
210
+ skinHealth: '',
211
+ },
212
+ [LOCALE.PhilippinesTagalog]: {
213
+ pregnancy: 'pagbubuntis',
214
+ parenting: 'pagiging-magulang',
215
+ health: 'kalusugan',
216
+ diabetes: 'diabetes-fil',
217
+ womensHealth: 'kalusugan-kababaihan',
218
+ drug: 'drugs-at-supplements',
219
+ sexualWellness: '',
220
+ healthyEating: '',
221
+ skinHealth: '',
222
+ },
223
+ [LOCALE.Thailand]: {
224
+ pregnancy: '%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c',
225
+ parenting: '%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81',
226
+ health: '%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e',
227
+ diabetes: '%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99',
228
+ womensHealth: '%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87',
229
+ drug: '%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1',
230
+ sexualWellness: '',
231
+ healthyEating: '',
232
+ skinHealth: '',
233
+ },
234
+ [LOCALE.Myanmar]: {
235
+ pregnancy: 'pregnancy',
236
+ parenting: 'parenting',
237
+ health: 'health',
238
+ diabetes: 'diabetes',
239
+ womensHealth: 'womens-health',
240
+ drug: 'drugs-az',
241
+ sexualWellness: '',
242
+ healthyEating: '',
243
+ skinHealth: '',
244
+ },
245
+ [LOCALE.Taiwan]: {
246
+ pregnancy: 'pregnancy',
247
+ parenting: 'parenting',
248
+ health: 'health',
249
+ diabetes: 'diabetes',
250
+ womensHealth: 'womens-health',
251
+ drug: 'drugs-supplement',
252
+ sexualWellness: '',
253
+ healthyEating: '',
254
+ skinHealth: '',
255
+ },
256
+ [LOCALE.India]: {
257
+ pregnancy: 'pregnancy',
258
+ parenting: 'parenting',
259
+ health: 'health',
260
+ diabetes: 'diabetes',
261
+ womensHealth: 'womens-health',
262
+ diabetesEn: 'en-diabetes',
263
+ drug: 'dawaai',
264
+ sexualWellness: '',
265
+ healthyEating: '',
266
+ skinHealth: '',
267
+ },
268
+ };
269
+ function getCategoryFromURL(url, categories) {
270
+ const urlParts = url.split('/');
271
+ for (const key in categories) {
272
+ const keyword = categories[key];
273
+ if (urlParts.includes(keyword)) {
274
+ return key;
275
+ }
276
+ }
277
+ return null; // Return null if no matching key is found
278
+ }
279
+ const useCategory = (asPath) => {
280
+ const { locale } = useTranslations();
281
+ const isPregnancy = useMemo(() => decodeURI(asPath.replace(/\//gi, '')).includes(PREGNANCY_SLUG[locale]), []);
282
+ const isParenting = useMemo(() => {
283
+ var _a;
284
+ return decodeURI(asPath.replace(/\//gi, '')).includes((_a = MAPPED_CATEGORY_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.parenting);
285
+ }, []);
286
+ const type = useMemo(() => {
287
+ return getCategoryFromURL(asPath, MAPPED_CATEGORY_SLUGS[locale]);
288
+ }, [asPath, locale]);
289
+ return { isPregnancy, isParenting, type };
290
+ };
291
+
292
+ export { MAPPED_CATEGORY_SLUGS as M, PREGNANCY_SLUG as P, usePrevious as a, useRafState as b, useCategory as c, useFbDataLayer as u };
@@ -0,0 +1,17 @@
1
+ import { a as __awaiter } from './tslib.es6-1b1533a9.js';
2
+ import { useState, useEffect, useCallback } from 'react';
3
+ import { a as getDynamicHealthToolWithCache } from './getDynamicHealthTool-f4497aa5.js';
4
+
5
+ const useHealthToolsCache = (locale) => {
6
+ const [allTools, setAllTools] = useState([]);
7
+ useEffect(() => {
8
+ (() => __awaiter(void 0, void 0, void 0, function* () {
9
+ const allHealthTools = yield getDynamicHealthToolWithCache(locale);
10
+ setAllTools(allHealthTools);
11
+ }))();
12
+ }, [getDynamicHealthToolWithCache, locale]);
13
+ const getHealthToolLink = useCallback((type) => { var _a; return ((_a = allTools.find((tool) => tool.template === type)) === null || _a === void 0 ? void 0 : _a.link) || ''; }, [allTools]);
14
+ return { allTools, getHealthToolLink };
15
+ };
16
+
17
+ export { useHealthToolsCache as u };
@@ -0,0 +1,11 @@
1
+ import { useState, useEffect } from 'react';
2
+
3
+ const useIsInit = () => {
4
+ const [isInit, setIsInit] = useState(true);
5
+ useEffect(() => {
6
+ setIsInit(false);
7
+ }, []);
8
+ return isInit;
9
+ };
10
+
11
+ export { useIsInit as u };
@@ -0,0 +1,45 @@
1
+ import { useEffect, useCallback } from 'react';
2
+
3
+ const callbacks = new Map();
4
+ const handleClick = (e) => {
5
+ for (const [ref, callback] of callbacks) {
6
+ if (ref.current && !ref.current.contains(e.target)) {
7
+ callback(e);
8
+ }
9
+ }
10
+ };
11
+ const initSharedOutSideClickListener = () => {
12
+ document.addEventListener('mousedown', handleClick, {
13
+ passive: true,
14
+ });
15
+ };
16
+ /** require the use of initSharedOutSideClickListener once, anywhere globally */
17
+ const useSharedOutsideClick = (ref, callback) => {
18
+ useEffect(() => {
19
+ callbacks.set(ref, callback);
20
+ return () => {
21
+ callbacks.delete(ref);
22
+ };
23
+ }, [ref, callback]);
24
+ };
25
+ const useOutsideClick = (ref, callback) => {
26
+ const handleClick = useCallback((e) => {
27
+ var _a;
28
+ // If the click target is a descendant of the ref, ignore it
29
+ if ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) {
30
+ return;
31
+ }
32
+ // Otherwise, invoke the callback
33
+ callback(e);
34
+ }, []);
35
+ useEffect(() => {
36
+ document.addEventListener('mousedown', handleClick, {
37
+ passive: true,
38
+ });
39
+ return () => {
40
+ document.removeEventListener('mousedown', handleClick);
41
+ };
42
+ }, [handleClick]);
43
+ };
44
+
45
+ export { useOutsideClick as a, initSharedOutSideClickListener as i, useSharedOutsideClick as u };
@@ -0,0 +1,80 @@
1
+ import { a as __awaiter } from './tslib.es6-1b1533a9.js';
2
+ import { useState, useEffect } from 'react';
3
+
4
+ const formatAutoCompleteAddress = (addresses) => {
5
+ if (!addresses || addresses.length < 1)
6
+ return [];
7
+ return addresses.map((s) => ({
8
+ placeId: s.place_id,
9
+ description: s.description,
10
+ }));
11
+ };
12
+ const IS_SSR = typeof window === 'undefined';
13
+ // https://developers.google.com/maps/faq#languagesupport
14
+ const GOOGLE_API_LANGUAGE = {
15
+ VN: 'vi',
16
+ ID: 'id',
17
+ TH: 'th',
18
+ MY: 'ms',
19
+ TW: 'zh-TW',
20
+ KH: 'km',
21
+ MM: 'my',
22
+ IN: 'hi',
23
+ PH: 'en',
24
+ };
25
+ const GOOGLE_API_KEY = 'AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU';
26
+ const googleAutocomplete = (text = '', countrycode = '', languageCountrycode = 'vi') => __awaiter(void 0, void 0, void 0, function* () {
27
+ return new Promise((resolve, reject) => {
28
+ if (!text) {
29
+ return reject('Need valid text input');
30
+ }
31
+ if (IS_SSR) {
32
+ return reject('Need valid window object');
33
+ }
34
+ try {
35
+ new window.google.maps.places.AutocompleteService().getPlacePredictions(Object.assign(Object.assign({ input: text }, (countrycode
36
+ ? {
37
+ componentRestrictions: { country: countrycode },
38
+ }
39
+ : {})), { language: GOOGLE_API_LANGUAGE[languageCountrycode] }), resolve);
40
+ }
41
+ catch (e) {
42
+ reject(e);
43
+ }
44
+ });
45
+ });
46
+ const usePlacesAutocomplete = (text = '', countrycode = '', languageCountrycode = '', debounceTimeout = 500) => {
47
+ const [predictions, setPredictions] = useState([]);
48
+ const [isLoading, setIsLoading] = useState(false);
49
+ useEffect(() => {
50
+ let handleDebounce;
51
+ if (text) {
52
+ handleDebounce = window.setTimeout(() => __awaiter(void 0, void 0, void 0, function* () {
53
+ if (!text) {
54
+ setPredictions([]);
55
+ return;
56
+ }
57
+ try {
58
+ setIsLoading(true);
59
+ const nextPredictions = yield googleAutocomplete(text, countrycode, languageCountrycode);
60
+ setPredictions(formatAutoCompleteAddress(nextPredictions));
61
+ }
62
+ catch (e) {
63
+ console.error(e);
64
+ }
65
+ finally {
66
+ setIsLoading(false);
67
+ }
68
+ }), debounceTimeout);
69
+ }
70
+ else if (predictions.length) {
71
+ setPredictions([]);
72
+ }
73
+ return () => {
74
+ window.clearTimeout(handleDebounce);
75
+ };
76
+ }, [text, debounceTimeout, countrycode]);
77
+ return { isLoading, predictions };
78
+ };
79
+
80
+ export { GOOGLE_API_KEY as G, GOOGLE_API_LANGUAGE as a, usePlacesAutocomplete as u };
@@ -0,0 +1,57 @@
1
+ import { useState, useRef, useEffect } from 'react';
2
+ import debounce from 'lodash/debounce';
3
+
4
+ const MEASURE_ELEMENT_CLASS = 'measure-scrollbar-size';
5
+ const useScrollbarSize = (trigger = true) => {
6
+ const [dimensions, setDimensions] = useState({ height: 0, width: 0 });
7
+ const element = useRef(null);
8
+ // initialize resize event handler and state when mounted
9
+ useEffect(() => {
10
+ if (!trigger || typeof window === 'undefined') {
11
+ return;
12
+ }
13
+ const getElement = () => {
14
+ if (!element.current) {
15
+ // element was not created yet -- initialize
16
+ element.current = document.createElement('div');
17
+ element.current.classList.add(MEASURE_ELEMENT_CLASS);
18
+ element.current.style.width = '99px';
19
+ element.current.style.height = '99px';
20
+ element.current.style.overflow = 'scroll';
21
+ element.current.style.position = 'absolute';
22
+ element.current.style.top = '-9999px';
23
+ element.current.setAttribute('aria-hidden', 'true');
24
+ element.current.setAttribute('role', 'presentation');
25
+ }
26
+ return element.current;
27
+ };
28
+ const updateState = () => {
29
+ const { offsetHeight, clientHeight, offsetWidth, clientWidth } = getElement();
30
+ const scrollbarHeight = offsetHeight - clientHeight;
31
+ const scrollbarWidth = offsetWidth - clientWidth;
32
+ setDimensions((currentDimensions) => {
33
+ const { height, width } = currentDimensions;
34
+ return height !== scrollbarHeight || width !== scrollbarWidth
35
+ ? { height: scrollbarHeight, width: scrollbarWidth }
36
+ : currentDimensions;
37
+ });
38
+ };
39
+ const handleResize = debounce(updateState, 100);
40
+ // initialize
41
+ window.addEventListener('resize', handleResize, {
42
+ passive: true,
43
+ });
44
+ document.body.appendChild(getElement());
45
+ updateState();
46
+ const elementToRemove = getElement();
47
+ // cleanup
48
+ return () => {
49
+ handleResize.cancel();
50
+ window.removeEventListener('resize', handleResize);
51
+ document.body.removeChild(elementToRemove);
52
+ };
53
+ }, [trigger]);
54
+ return dimensions;
55
+ };
56
+
57
+ export { MEASURE_ELEMENT_CLASS as M, useScrollbarSize as u };
@@ -0,0 +1,26 @@
1
+ import { useContext, useMemo } from 'react';
2
+ import { T as TranslationsContext } from './translationsContext-ad3e25de.js';
3
+ import formatString from 'string-format';
4
+
5
+ function useTranslations() {
6
+ const { values, locale } = useContext(TranslationsContext) || {
7
+ locale: 'en-PH',
8
+ };
9
+ return useMemo(() => ({
10
+ t(k, option) {
11
+ if (!values) {
12
+ console.error('[useTranslations] t method called before translation values are loaded');
13
+ return k;
14
+ }
15
+ if (values[k]) {
16
+ return option ? formatString(values[k] || k, option) : values[k] || k;
17
+ }
18
+ console.warn(`[useTranslations] Missing translation for key ${k} and locale ${locale}`);
19
+ return option ? formatString(k, option) : k;
20
+ },
21
+ // @ts-ignore
22
+ locale,
23
+ }), [values, locale]);
24
+ }
25
+
26
+ export { useTranslations as u };
@@ -0,0 +1,41 @@
1
+ import { useRef } from 'react';
2
+
3
+ /** src: https://www.benmvp.com/blog/8-helpful-custom-react-hooks/
4
+ * check if we are at first mount */
5
+ const useInitialMount = () => {
6
+ // refs exist across component re-renders, so
7
+ // we can use it to store a value for the
8
+ // subsequent renders. We're tracking if it's
9
+ // the first render, which is initially `true`
10
+ const isFirst = useRef(true);
11
+ // the very first render, the ref will be
12
+ // `true`. but we immediately set it to `false`
13
+ // so that every render after will be `false`
14
+ if (isFirst.current) {
15
+ isFirst.current = false;
16
+ // return true the very first render
17
+ return true;
18
+ }
19
+ // return false every following render
20
+ return false;
21
+ };
22
+
23
+ let GLOBAL_ID = 0;
24
+ /** src: https://www.benmvp.com/blog/8-helpful-custom-react-hooks/
25
+ * Generate Unique ID for both server and client side. Format: hhg-gen-id{number}
26
+ * This depend on render order, assuming that the order is the same on server and client.
27
+ */
28
+ const useUniqueId = () => {
29
+ const idRef = useRef('');
30
+ const isInitialMount = useInitialMount();
31
+ // generate the ID for the first render
32
+ // and store in the ref to remain for
33
+ // subsequent renders
34
+ if (isInitialMount) {
35
+ GLOBAL_ID += 1;
36
+ idRef.current = `hhg-gen-id${GLOBAL_ID}`;
37
+ }
38
+ return idRef.current;
39
+ };
40
+
41
+ export { useUniqueId as a, useInitialMount as u };