@hhgtech/hhg-components 1.28.47 → 1.28.49

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 (274) hide show
  1. package/README.md +5 -0
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components.js +1 -1
  6. package/build/{constants-0b9aa2f4.js → constants-00eb6917.js} +1 -1
  7. package/build/{constants-ded45618.js → constants-e409af9b.js} +1 -1
  8. package/build/constants.js +1 -1
  9. package/build/{core-d774c80a.js → core-ea7ee018.js} +1 -1
  10. package/build/{dataTransform-770a8af7.js → dataTransform-ec201d50.js} +1 -1
  11. package/build/ecom.js +1 -1
  12. package/build/esm/babyGrowth.js +2 -2
  13. package/build/esm/cache.js +1 -1
  14. package/build/esm/care.js +1 -1
  15. package/build/esm/components.js +1 -1
  16. package/build/esm/{constants-d7c4fed6.js → constants-0c5e9437.js} +1 -1
  17. package/build/esm/{constants-7f54318a.js → constants-f262fdad.js} +1 -1
  18. package/build/esm/constants.js +1 -1
  19. package/build/esm/{core-539e7939.js → core-0ea997b2.js} +1 -1
  20. package/build/esm/{dataTransform-82022f0b.js → dataTransform-ce088cfb.js} +1 -1
  21. package/build/esm/ecom.js +1 -1
  22. package/build/esm/footer.js +1 -1
  23. package/build/esm/gAssets.js +1 -1
  24. package/build/esm/getDynamicHealthTool-4e566eb5.js +1 -0
  25. package/build/esm/{getSocialList-1766c602.js → getSocialList-1b0bdd8a.js} +1 -1
  26. package/build/esm/hooks.js +1 -1
  27. package/build/esm/i18n.js +1 -1
  28. package/build/esm/i18nV2.js +1 -1
  29. package/build/esm/{index-0fd0a8fb.js → index-138b5792.js} +1 -1
  30. package/build/esm/{index-b51813fe.js → index-198fd08e.js} +1 -1
  31. package/build/esm/{index-d53f330a.js → index-38864a87.js} +1 -1
  32. package/build/esm/{index-fcb7c05d.js → index-3f24fd41.js} +1 -1
  33. package/build/esm/{index-bd5220da.js → index-491ee5f4.js} +1 -1
  34. package/build/esm/{index-156081e2.js → index-4942221e.js} +1 -1
  35. package/build/esm/{index-c51596b2.js → index-4a948104.js} +1 -1
  36. package/build/esm/{index-5581ff57.js → index-4ab0d69b.js} +1 -1
  37. package/build/esm/{index-9b020630.js → index-4b2d0830.js} +1 -1
  38. package/build/esm/index-696ca464.js +1 -0
  39. package/build/esm/{index-2f6fbc5e.js → index-81d1a3ea.js} +1 -1
  40. package/build/esm/{index-30ecb1e3.js → index-9ccb4430.js} +1 -1
  41. package/build/esm/{index-72664e72.js → index-9d0c6353.js} +1 -1
  42. package/build/esm/{index-f09be292.js → index-a4441d0b.js} +1 -1
  43. package/build/esm/{index-98f238b2.js → index-a5b9597b.js} +1 -1
  44. package/build/esm/{index-1d068cf5.js → index-b36dd213.js} +1 -1
  45. package/build/esm/{index-ac89ac70.js → index-b55d97ab.js} +2 -2
  46. package/build/esm/{index-1fce73b8.js → index-ba2430f8.js} +1 -1
  47. package/build/esm/{index-924d8b45.js → index-c93ec607.js} +1 -1
  48. package/build/esm/{index-7b4c9ffd.js → index-cde509fa.js} +1 -1
  49. package/build/esm/{index-8e3a85f0.js → index-d0c5dfee.js} +1 -1
  50. package/build/esm/{index-679dd359.js → index-d26d0482.js} +1 -1
  51. package/build/esm/{index-cff19603.js → index-e5ca10f5.js} +1 -1
  52. package/build/esm/index.js +1 -1
  53. package/build/esm/{index.styled-222b6ef8.js → index.styled-37a324c2.js} +1 -1
  54. package/build/esm/{index.styles-f450b969.js → index.styles-8be9760e.js} +1 -1
  55. package/build/esm/lead.js +1 -1
  56. package/build/esm/mantine.js +1 -1
  57. package/build/esm/misc.js +1 -1
  58. package/build/esm/navigation.js +1 -1
  59. package/build/esm/onboardingV2.js +1 -1
  60. package/build/esm/pwg.js +3 -3
  61. package/build/esm/{routing-fa27835c.js → routing-6fcf3a59.js} +1 -1
  62. package/build/esm/subot.js +129 -129
  63. package/build/esm/together.js +1 -1
  64. package/build/esm/{types-1779ff39.js → types-2f73c062.js} +1 -1
  65. package/build/esm/{types-de0e0789.js → types-81f48145.js} +1 -1
  66. package/build/esm/types.js +1 -1
  67. package/build/esm/{useCategory-dc56ef34.js → useCategory-a6513a7e.js} +1 -1
  68. package/build/esm/useHealthToolCache-a9f5329f.js +1 -0
  69. package/build/esm/{usePlacesAutocomplete-c2dd02dd.js → usePlacesAutocomplete-a4df5390.js} +1 -1
  70. package/build/esm/useTranslations-b7d4a160.js +1 -0
  71. package/build/esm/{utils-bc76e7d8.js → utils-36e3bf71.js} +1 -1
  72. package/build/esm/{utils-ce8e4c84.js → utils-547d93ca.js} +1 -1
  73. package/build/esm/{utils-ab3bd9a9.js → utils-b8dbc87d.js} +2 -2
  74. package/build/esm/vaccination.js +11 -11
  75. package/build/footer.js +1 -1
  76. package/build/gAssets.js +1 -1
  77. package/build/getDynamicHealthTool-297c8604.js +1 -0
  78. package/build/{getSocialList-95d4b1ab.js → getSocialList-ce1e33c4.js} +1 -1
  79. package/build/hooks.js +1 -1
  80. package/build/i18n.js +1 -1
  81. package/build/i18nV2.js +1 -1
  82. package/build/{index-22f6821f.js → index-05aa21dd.js} +1 -1
  83. package/build/{index-5e65f738.js → index-0b364983.js} +2 -2
  84. package/build/{index-087d7573.js → index-11d1af06.js} +1 -1
  85. package/build/{index-4198e282.js → index-1a06bea6.js} +1 -1
  86. package/build/{index-0a35e29e.js → index-413276e5.js} +1 -1
  87. package/build/index-623655d2.js +1 -0
  88. package/build/{index-c53c2cf6.js → index-62c61507.js} +1 -1
  89. package/build/{index-abe7bb48.js → index-67b9453a.js} +1 -1
  90. package/build/{index-8b4d8b74.js → index-77dbd11f.js} +1 -1
  91. package/build/{index-8d147028.js → index-7c707c86.js} +1 -1
  92. package/build/{index-9f2fce62.js → index-7cf403fc.js} +1 -1
  93. package/build/{index-3183ed6e.js → index-7d326d6a.js} +1 -1
  94. package/build/{index-20b8b28c.js → index-8c1a5431.js} +1 -1
  95. package/build/{index-f56af2a1.js → index-95f2568e.js} +1 -1
  96. package/build/{index-3c0d0730.js → index-992473c0.js} +1 -1
  97. package/build/{index-0e2baf55.js → index-abe62dd3.js} +1 -1
  98. package/build/{index-84f168eb.js → index-ad733c52.js} +1 -1
  99. package/build/{index-f80db37d.js → index-b6b058b9.js} +1 -1
  100. package/build/{index-1c74e473.js → index-c97c557f.js} +17 -17
  101. package/build/{index-a1e30b09.js → index-d8623459.js} +1 -1
  102. package/build/{index-04bf4b9a.js → index-e417cb6d.js} +1 -1
  103. package/build/{index-031eda4d.js → index-f79fe272.js} +5 -5
  104. package/build/index-ff2a7724.js +1 -0
  105. package/build/index.js +1 -1
  106. package/build/{index.styled-250b6af4.js → index.styled-35de73b7.js} +1 -1
  107. package/build/{index.styles-f2358064.js → index.styles-d7c56999.js} +5 -5
  108. package/build/lead.js +1 -1
  109. package/build/mantine.js +1 -1
  110. package/build/misc.js +1 -1
  111. package/build/navigation.js +1 -1
  112. package/build/onboardingV2.js +1 -1
  113. package/build/pwg.js +1 -1
  114. package/build/{routing-ed60b4e3.js → routing-88ae6957.js} +1 -1
  115. package/build/subot.js +86 -86
  116. package/build/together.js +1 -1
  117. package/build/{types-2602cb14.js → types-031b639a.js} +1 -1
  118. package/build/{types-662fa8fb.js → types-d8366bd5.js} +1 -1
  119. package/build/types.js +1 -1
  120. package/build/{useCategory-f58f3f7e.js → useCategory-cfb3af1d.js} +1 -1
  121. package/build/useHealthToolCache-37fe2176.js +1 -0
  122. package/build/{usePlacesAutocomplete-11729974.js → usePlacesAutocomplete-f9a6c313.js} +1 -1
  123. package/build/{useTranslations-eef7f548.js → useTranslations-053501b7.js} +1 -1
  124. package/build/{utils-74e9f3ab.js → utils-94f8c3bb.js} +2 -2
  125. package/build/{utils-5af37bc5.js → utils-b432bb60.js} +1 -1
  126. package/build/{utils-adde2380.js → utils-b79c27a6.js} +1 -1
  127. package/build/vaccination.js +1 -1
  128. package/package.json +1 -1
  129. package/build/esm/getDynamicHealthTool-4d3d11ac.js +0 -1
  130. package/build/esm/index-f5ac3469.js +0 -1
  131. package/build/esm/useHealthToolCache-09b61354.js +0 -1
  132. package/build/esm/useTranslations-49e0430f.js +0 -1
  133. package/build/getDynamicHealthTool-91d3a539.js +0 -1
  134. package/build/index-afd5d772.js +0 -1
  135. package/build/index-ebed7399.js +0 -1
  136. package/build/useHealthToolCache-d78d2251.js +0 -1
  137. /package/build/{BMI_BOYS.percentile.monthly-b574351a.js → BMI_BOYS.percentile.monthly-72dd9d36.js} +0 -0
  138. /package/build/{BMI_BOYS.percentile.weekly-ad058945.js → BMI_BOYS.percentile.weekly-4ba21d56.js} +0 -0
  139. /package/build/{BMI_BOYS.percentile.yearly-8ada8234.js → BMI_BOYS.percentile.yearly-ee912baa.js} +0 -0
  140. /package/build/{BMI_BOYS.zscore.monthly-f16e149c.js → BMI_BOYS.zscore.monthly-b58b2d31.js} +0 -0
  141. /package/build/{BMI_BOYS.zscore.weekly-776e513d.js → BMI_BOYS.zscore.weekly-f6f5fbe0.js} +0 -0
  142. /package/build/{BMI_BOYS.zscore.yearly-3d6a4a73.js → BMI_BOYS.zscore.yearly-d63bdbc4.js} +0 -0
  143. /package/build/{BMI_GIRLS.percentile.monthly-10009b9f.js → BMI_GIRLS.percentile.monthly-ec7dbe18.js} +0 -0
  144. /package/build/{BMI_GIRLS.percentile.weekly-6557eb44.js → BMI_GIRLS.percentile.weekly-9bd192c8.js} +0 -0
  145. /package/build/{BMI_GIRLS.percentile.yearly-3f4acf36.js → BMI_GIRLS.percentile.yearly-e07456dd.js} +0 -0
  146. /package/build/{BMI_GIRLS.zscore.monthly-6a304df3.js → BMI_GIRLS.zscore.monthly-76b385ee.js} +0 -0
  147. /package/build/{BMI_GIRLS.zscore.weekly-e0d6db84.js → BMI_GIRLS.zscore.weekly-53a86183.js} +0 -0
  148. /package/build/{BMI_GIRLS.zscore.yearly-a6ec380e.js → BMI_GIRLS.zscore.yearly-a97d0070.js} +0 -0
  149. /package/build/{ChevronDown-a8966000.js → ChevronDown-6bcccd07.js} +0 -0
  150. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-71a87239.js → HEAD CIRCUM_BOYS.percentile.monthly-da53eed7.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b862aacb.js → HEAD CIRCUM_BOYS.percentile.weekly-36dba3d1.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-13eada26.js → HEAD CIRCUM_BOYS.percentile.yearly-8284c1e0.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f9c4f89e.js → HEAD CIRCUM_BOYS.zscore.monthly-a4266394.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-4e1a4178.js → HEAD CIRCUM_BOYS.zscore.weekly-131c0e35.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-554a8878.js → HEAD CIRCUM_BOYS.zscore.yearly-29b76c14.js} +0 -0
  156. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-2910870c.js → HEAD CIRCUM_GIRLS.percentile.monthly-66a0d840.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-0f14fedf.js → HEAD CIRCUM_GIRLS.percentile.weekly-be38297f.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-596b0da0.js → HEAD CIRCUM_GIRLS.percentile.yearly-dbda2d07.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-69ae9a0c.js → HEAD CIRCUM_GIRLS.zscore.monthly-4dd1fd89.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-114e70a3.js → HEAD CIRCUM_GIRLS.zscore.weekly-f8bb0ae2.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b6747ec7.js → HEAD CIRCUM_GIRLS.zscore.yearly-1aaaf2e0.js} +0 -0
  162. /package/build/{HEIGHT_BOYS.percentile.monthly-cb959489.js → HEIGHT_BOYS.percentile.monthly-f1451664.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.percentile.weekly-7955c34e.js → HEIGHT_BOYS.percentile.weekly-f7201500.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.percentile.yearly-b073f41f.js → HEIGHT_BOYS.percentile.yearly-c62f29a6.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.zscore.monthly-1ae80a89.js → HEIGHT_BOYS.zscore.monthly-ef88cdbc.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.zscore.weekly-cd4bc068.js → HEIGHT_BOYS.zscore.weekly-cc7a465e.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.zscore.yearly-7eb6af8e.js → HEIGHT_BOYS.zscore.yearly-12fcf09b.js} +0 -0
  168. /package/build/{HEIGHT_GIRLS.percentile.monthly-d2959962.js → HEIGHT_GIRLS.percentile.monthly-464d9a63.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.percentile.weekly-99981d42.js → HEIGHT_GIRLS.percentile.weekly-c1ee7ef2.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.percentile.yearly-d1d13641.js → HEIGHT_GIRLS.percentile.yearly-05b92597.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.zscore.monthly-d9a63188.js → HEIGHT_GIRLS.zscore.monthly-364fc3f9.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.zscore.weekly-d58b3339.js → HEIGHT_GIRLS.zscore.weekly-cf345537.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.zscore.yearly-ae58b0a3.js → HEIGHT_GIRLS.zscore.yearly-bfa97a60.js} +0 -0
  174. /package/build/{Subot-511ff255.js → Subot-5e94dc84.js} +0 -0
  175. /package/build/{Visible-338d5d3b.js → Visible-d0b55372.js} +0 -0
  176. /package/build/{WEIGHT_BOYS.percentile.monthly-3687233c.js → WEIGHT_BOYS.percentile.monthly-a1044456.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.percentile.weekly-c0915786.js → WEIGHT_BOYS.percentile.weekly-f3263998.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.percentile.yearly-898b748c.js → WEIGHT_BOYS.percentile.yearly-620641f6.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.zscore.monthly-e47a72be.js → WEIGHT_BOYS.zscore.monthly-cdef160c.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.zscore.weekly-23cc874f.js → WEIGHT_BOYS.zscore.weekly-80221a45.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.zscore.yearly-2c523e95.js → WEIGHT_BOYS.zscore.yearly-080e164b.js} +0 -0
  182. /package/build/{WEIGHT_GIRLS.percentile.monthly-232c03ec.js → WEIGHT_GIRLS.percentile.monthly-5d930c98.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.percentile.weekly-363f6163.js → WEIGHT_GIRLS.percentile.weekly-05cc5075.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.percentile.yearly-09c2db7a.js → WEIGHT_GIRLS.percentile.yearly-c02e014a.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.zscore.monthly-996f2f01.js → WEIGHT_GIRLS.zscore.monthly-4fc25a03.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.zscore.weekly-1c937534.js → WEIGHT_GIRLS.zscore.weekly-95a9936f.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.zscore.yearly-ab136277.js → WEIGHT_GIRLS.zscore.yearly-7820b9d5.js} +0 -0
  188. /package/build/{animation-1e5b6297.js → animation-0b12f69c.js} +0 -0
  189. /package/build/{cookieHelper-91788da6.js → cookieHelper-27fb2f4f.js} +0 -0
  190. /package/build/esm/{BMI_BOYS.percentile.monthly-f3616831.js → BMI_BOYS.percentile.monthly-ef9e6f06.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.percentile.weekly-e94f9b0c.js → BMI_BOYS.percentile.weekly-9ce890fd.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.percentile.yearly-8f7ac99b.js → BMI_BOYS.percentile.yearly-9a66add9.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.zscore.monthly-54be7428.js → BMI_BOYS.zscore.monthly-8b2dbe70.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.zscore.weekly-6c12aa9f.js → BMI_BOYS.zscore.weekly-03bc653d.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.zscore.yearly-1c23b3d9.js → BMI_BOYS.zscore.yearly-15e1555d.js} +0 -0
  196. /package/build/esm/{BMI_GIRLS.percentile.monthly-8a502893.js → BMI_GIRLS.percentile.monthly-8a6f031e.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.percentile.weekly-fa839bec.js → BMI_GIRLS.percentile.weekly-1e740ffb.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.percentile.yearly-a4566ca8.js → BMI_GIRLS.percentile.yearly-d412b15d.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.zscore.monthly-aab4d85c.js → BMI_GIRLS.zscore.monthly-a73a69e1.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.zscore.weekly-f8488af5.js → BMI_GIRLS.zscore.weekly-2d95c18a.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.zscore.yearly-a4d7a630.js → BMI_GIRLS.zscore.yearly-3674ad67.js} +0 -0
  202. /package/build/esm/{ChevronDown-7443ba17.js → ChevronDown-2eea80bb.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-dd491a3d.js → HEAD CIRCUM_BOYS.percentile.monthly-87b98a1c.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-9a4cc487.js → HEAD CIRCUM_BOYS.percentile.weekly-3a2b0ed8.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-5ff7c492.js → HEAD CIRCUM_BOYS.percentile.yearly-75831c10.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-921be2d2.js → HEAD CIRCUM_BOYS.zscore.monthly-744cbfa3.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f5d468d9.js → HEAD CIRCUM_BOYS.zscore.weekly-7d7140d0.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5199b4a7.js → HEAD CIRCUM_BOYS.zscore.yearly-087469e3.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-8679c7bc.js → HEAD CIRCUM_GIRLS.percentile.monthly-e448752c.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-9e2dcb2b.js → HEAD CIRCUM_GIRLS.percentile.weekly-eba34173.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c6203100.js → HEAD CIRCUM_GIRLS.percentile.yearly-198742ce.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-856a5b1e.js → HEAD CIRCUM_GIRLS.zscore.monthly-44ab5598.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0783f118.js → HEAD CIRCUM_GIRLS.zscore.weekly-cfab749b.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a84257a0.js → HEAD CIRCUM_GIRLS.zscore.yearly-b7bcd7b8.js} +0 -0
  215. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-788fb5b4.js → HEIGHT_BOYS.percentile.monthly-5f26b470.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f5190462.js → HEIGHT_BOYS.percentile.weekly-86fe3770.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-afe4fd67.js → HEIGHT_BOYS.percentile.yearly-20b03a84.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-bb98f05e.js → HEIGHT_BOYS.zscore.monthly-6c9748ff.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-dfb95358.js → HEIGHT_BOYS.zscore.weekly-ca75b3dc.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-055fefcb.js → HEIGHT_BOYS.zscore.yearly-a382f2a5.js} +0 -0
  221. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-441d5eec.js → HEIGHT_GIRLS.percentile.monthly-6cf5a5d3.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-df673b20.js → HEIGHT_GIRLS.percentile.weekly-8ad0bb3c.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b8635e96.js → HEIGHT_GIRLS.percentile.yearly-116699be.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-8350897b.js → HEIGHT_GIRLS.zscore.monthly-ab3c471c.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-820a7ef3.js → HEIGHT_GIRLS.zscore.weekly-c98a8fae.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b2f2d906.js → HEIGHT_GIRLS.zscore.yearly-c3850f8e.js} +0 -0
  227. /package/build/esm/{Subot-3d309d90.js → Subot-46c8b66e.js} +0 -0
  228. /package/build/esm/{Visible-45ab1e13.js → Visible-bb443a50.js} +0 -0
  229. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-566b72c0.js → WEIGHT_BOYS.percentile.monthly-2643a2db.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ae3bef15.js → WEIGHT_BOYS.percentile.weekly-8e6f7bf3.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-fd72f182.js → WEIGHT_BOYS.percentile.yearly-1c75479d.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4ebeca1a.js → WEIGHT_BOYS.zscore.monthly-798acbba.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1edeedcc.js → WEIGHT_BOYS.zscore.weekly-2ee812a6.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-b42da93c.js → WEIGHT_BOYS.zscore.yearly-9c9eedab.js} +0 -0
  235. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-ab099390.js → WEIGHT_GIRLS.percentile.monthly-1b0a4bd2.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-e604f0e1.js → WEIGHT_GIRLS.percentile.weekly-3571400e.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9575be98.js → WEIGHT_GIRLS.percentile.yearly-1fa58117.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bddddbe3.js → WEIGHT_GIRLS.zscore.monthly-b1e7b0b6.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f255cbfc.js → WEIGHT_GIRLS.zscore.weekly-eef09ecf.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a99d0fd7.js → WEIGHT_GIRLS.zscore.yearly-b5740f73.js} +0 -0
  241. /package/build/esm/{animation-4d5baff8.js → animation-1598cf15.js} +0 -0
  242. /package/build/esm/{cookieHelper-0acd4fc8.js → cookieHelper-16653e64.js} +0 -0
  243. /package/build/esm/{index-550480ee.js → index-408a335e.js} +0 -0
  244. /package/build/esm/{index-a6ddd645.js → index-5f71fc29.js} +0 -0
  245. /package/build/esm/{index-5dc45c1c.js → index-c4af839e.js} +0 -0
  246. /package/build/esm/{isProduction-135c9280.js → isProduction-6af4d2ac.js} +0 -0
  247. /package/build/esm/{localizeNumberFormat-883148fd.js → localizeNumberFormat-69715560.js} +0 -0
  248. /package/build/esm/{normalizeLink-75e03b67.js → normalizeLink-78ac13e0.js} +0 -0
  249. /package/build/esm/{number-73b198fe.js → number-509ae36f.js} +0 -0
  250. /package/build/esm/{paths-61361575.js → paths-c018124d.js} +0 -0
  251. /package/build/esm/{theme-0d3c8845.js → theme-1fc9bf92.js} +0 -0
  252. /package/build/esm/{translationsContext-ee7ec6eb.js → translationsContext-05a6ebf7.js} +0 -0
  253. /package/build/esm/{tslib.es6-c43c14a5.js → tslib.es6-03e2d67c.js} +0 -0
  254. /package/build/esm/{types-745b966e.js → types-30b992fc.js} +0 -0
  255. /package/build/esm/{useIsInit-d5727c47.js → useIsInit-9c33a9d8.js} +0 -0
  256. /package/build/esm/{useOutsideClick-e4f22be5.js → useOutsideClick-d9a01b05.js} +0 -0
  257. /package/build/esm/{useScrollbarSize-0d367255.js → useScrollbarSize-d69893c7.js} +0 -0
  258. /package/build/esm/{utils-1550f4c2.js → utils-288ca0db.js} +0 -0
  259. /package/build/{index-52b005ff.js → index-47258f9a.js} +0 -0
  260. /package/build/{index-983a543a.js → index-5775ebcd.js} +0 -0
  261. /package/build/{index-f2e5a43e.js → index-7abb70e0.js} +0 -0
  262. /package/build/{isProduction-8a3929cb.js → isProduction-2bcc92a8.js} +0 -0
  263. /package/build/{localizeNumberFormat-d00e3203.js → localizeNumberFormat-e2f08e55.js} +0 -0
  264. /package/build/{normalizeLink-e4d8df7b.js → normalizeLink-234ec40a.js} +0 -0
  265. /package/build/{number-9930fc27.js → number-41fc3a29.js} +0 -0
  266. /package/build/{paths-ed97730a.js → paths-4bb6c34d.js} +0 -0
  267. /package/build/{theme-0bb94193.js → theme-445ed9a5.js} +0 -0
  268. /package/build/{translationsContext-e09b4f33.js → translationsContext-202c33d1.js} +0 -0
  269. /package/build/{tslib.es6-293338f5.js → tslib.es6-6efd1b76.js} +0 -0
  270. /package/build/{types-140f0c7d.js → types-e9c2fd69.js} +0 -0
  271. /package/build/{useIsInit-f9337a25.js → useIsInit-23edb76e.js} +0 -0
  272. /package/build/{useOutsideClick-ac461ca7.js → useOutsideClick-adadb7b1.js} +0 -0
  273. /package/build/{useScrollbarSize-9413af1b.js → useScrollbarSize-0dca0252.js} +0 -0
  274. /package/build/{utils-ec00b8cb.js → utils-38a04ad0.js} +0 -0
package/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ # TODO LIST
2
+
3
+ - [ ] remove html-react-parser (will also remove its dep htmlparser2 and html-dom-parser) => refactor SEO Head
4
+ - [ ] remove react-day-picker => remove old DatePicker, use mantine instead and make sure to check all projects that use this component
5
+
1
6
  # HHG Components
2
7
 
3
8
  HHG Components is a collection of React components developed by Hello Health Group (HHG) for internal use. These components are designed to streamline the development of web applications in the healthcare domain, offering a range of UI elements tailored to meet the specific needs of healthcare-related projects.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-22f6821f.js"),t=require("react"),r=require("./Subot-511ff255.js"),a=require("./theme-0bb94193.js"),l=require("./index-c53c2cf6.js"),o=require("styled-components"),n=require("./index-9f2fce62.js"),i=require("./index-0a35e29e.js"),d=require("dayjs"),s=require("./localizeNumberFormat-d00e3203.js"),c=require("./useTranslations-eef7f548.js"),u=require("./index.styles-f2358064.js"),C=require("./utils-ec00b8cb.js"),h=require("./tslib.es6-293338f5.js");require("@mantine/core"),require("./index-8b4d8b74.js"),require("./index-04bf4b9a.js"),require("./constants-ded45618.js"),require("./utils-74e9f3ab.js");var m=require("./index-ebed7399.js"),f=require("./index-52b005ff.js");require("./index-3183ed6e.js"),require("./utils-adde2380.js"),require("@mantine/dates"),require("@mantine/hooks");var y=require("./useOutsideClick-ac461ca7.js"),p=require("./index-84f168eb.js"),b=require("recharts"),g=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-9413af1b.js"),require("lodash/debounce"),require("react-dom"),require("./index.styled-250b6af4.js"),require("./translationsContext-e09b4f33.js"),require("string-format"),require("./animation-1e5b6297.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("classnames"),require("./isProduction-8a3929cb.js"),require("date-fns/locale"),require("./cookieHelper-91788da6.js"),require("slugify");var E=x(t),w=x(o),v=x(d),B=x(g);const L=w.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-05aa21dd.js"),t=require("react"),r=require("./Subot-5e94dc84.js"),a=require("./theme-445ed9a5.js"),l=require("./index-62c61507.js"),o=require("styled-components"),n=require("./index-7cf403fc.js"),i=require("./index-413276e5.js"),d=require("dayjs"),s=require("./localizeNumberFormat-e2f08e55.js"),c=require("./useTranslations-053501b7.js"),u=require("./index.styles-d7c56999.js"),C=require("./utils-38a04ad0.js"),h=require("./tslib.es6-6efd1b76.js");require("@mantine/core"),require("./index-77dbd11f.js"),require("./index-e417cb6d.js"),require("./constants-e409af9b.js"),require("./utils-94f8c3bb.js");var m=require("./index-623655d2.js"),f=require("./index-47258f9a.js");require("./index-7d326d6a.js"),require("./utils-b79c27a6.js"),require("@mantine/dates"),require("@mantine/hooks");var y=require("./useOutsideClick-adadb7b1.js"),p=require("./index-ad733c52.js"),b=require("recharts"),g=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-0dca0252.js"),require("lodash/debounce"),require("react-dom"),require("./index.styled-35de73b7.js"),require("./translationsContext-202c33d1.js"),require("string-format"),require("./animation-0b12f69c.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("classnames"),require("./isProduction-2bcc92a8.js"),require("date-fns/locale"),require("./cookieHelper-27fb2f4f.js"),require("slugify");var E=x(t),w=x(o),v=x(d),B=x(g);const L=w.default.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  gap: 16px;
@@ -397,7 +397,7 @@
397
397
  }
398
398
  }
399
399
  }
400
- `,K=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=c.useTranslations(),s="marryBaby"===n;return E.default.createElement(U,{onClick:()=>t("new"),"data-is-mb":s,"data-isActive":s&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(l.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(p.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},X={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-7955c34e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-cb959489.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-b073f41f.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-c0915786.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-3687233c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-898b748c.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-b862aacb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-71a87239.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-13eada26.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-ad058945.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-b574351a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-8ada8234.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-99981d42.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-d2959962.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-d1d13641.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-363f6163.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-232c03ec.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-09c2db7a.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0f14fedf.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-2910870c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-596b0da0.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-6557eb44.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-10009b9f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-3f4acf36.js")}))}}},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-cd4bc068.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-1ae80a89.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-7eb6af8e.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-23cc874f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-e47a72be.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-2c523e95.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-4e1a4178.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-f9c4f89e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-554a8878.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-776e513d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-f16e149c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-3d6a4a73.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-d58b3339.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-d9a63188.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-ae58b0a3.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-1c937534.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-996f2f01.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-ab136277.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-114e70a3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-69ae9a0c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-b6747ec7.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-e0d6db84.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-6a304df3.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a6ec380e.js")}))}}},Q=(e,t,a,l)=>l===r.LOCALE.Indonesia?J[e][t][a]():X[e][t][a](),ee=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},te=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),re=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ae=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),oe=w.default.div`
400
+ `,K=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=c.useTranslations(),s="marryBaby"===n;return E.default.createElement(U,{onClick:()=>t("new"),"data-is-mb":s,"data-isActive":s&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(l.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(p.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},X={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-f7201500.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-f1451664.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-c62f29a6.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-f3263998.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-a1044456.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-620641f6.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-36dba3d1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-da53eed7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-8284c1e0.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-4ba21d56.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-72dd9d36.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-ee912baa.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-c1ee7ef2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-464d9a63.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-05b92597.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-05cc5075.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-5d930c98.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-c02e014a.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-be38297f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-66a0d840.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-dbda2d07.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-9bd192c8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-ec7dbe18.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-e07456dd.js")}))}}},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-cc7a465e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-ef88cdbc.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-12fcf09b.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-80221a45.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-cdef160c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-080e164b.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-131c0e35.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-a4266394.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-29b76c14.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-f6f5fbe0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-b58b2d31.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-d63bdbc4.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-cf345537.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-364fc3f9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-bfa97a60.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-95a9936f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-4fc25a03.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-7820b9d5.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-f8bb0ae2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-4dd1fd89.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-1aaaf2e0.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-53a86183.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-76b385ee.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a97d0070.js")}))}}},Q=(e,t,a,l)=>l===r.LOCALE.Indonesia?J[e][t][a]():X[e][t][a](),ee=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},te=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),re=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ae=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),oe=w.default.div`
401
401
  position: relative;
402
402
  .custom-chart-label {
403
403
  display: flex;
package/build/cache.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-d774c80a.js");require("./tslib.es6-293338f5.js"),require("./isProduction-8a3929cb.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-ea7ee018.js");require("./tslib.es6-6efd1b76.js"),require("./isProduction-2bcc92a8.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
package/build/care.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-662fa8fb.js"),r=require("./constants-ded45618.js");require("./tslib.es6-293338f5.js"),require("react"),require("./useTranslations-eef7f548.js"),require("./translationsContext-e09b4f33.js"),require("string-format"),require("lodash/debounce"),require("./index-84f168eb.js"),require("@mantine/core"),require("styled-components"),require("./index-c53c2cf6.js"),require("./theme-0bb94193.js"),require("lodash/shuffle"),require("./useOutsideClick-ac461ca7.js"),require("./utils-ec00b8cb.js"),require("react-loading-skeleton"),require("./paths-ed97730a.js"),require("./index-3183ed6e.js"),require("date-fns/locale"),require("./Subot-511ff255.js"),require("./isProduction-8a3929cb.js"),require("./cookieHelper-91788da6.js"),require("./index-f2e5a43e.js"),require("./ChevronDown-a8966000.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.TextDivider=e.TextDivider,exports.CareConstants=r.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-d8366bd5.js"),r=require("./constants-e409af9b.js");require("./tslib.es6-6efd1b76.js"),require("react"),require("./useTranslations-053501b7.js"),require("./translationsContext-202c33d1.js"),require("string-format"),require("lodash/debounce"),require("./index-ad733c52.js"),require("@mantine/core"),require("styled-components"),require("./index-62c61507.js"),require("./theme-445ed9a5.js"),require("lodash/shuffle"),require("./useOutsideClick-adadb7b1.js"),require("./utils-38a04ad0.js"),require("react-loading-skeleton"),require("./paths-4bb6c34d.js"),require("./index-7d326d6a.js"),require("date-fns/locale"),require("./Subot-5e94dc84.js"),require("./isProduction-2bcc92a8.js"),require("./cookieHelper-27fb2f4f.js"),require("./index-7abb70e0.js"),require("./ChevronDown-6bcccd07.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.TextDivider=e.TextDivider,exports.CareConstants=r.constants;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-1c74e473.js"),r=require("./index-9f2fce62.js"),o=require("./index-afd5d772.js"),t=require("./index-8b4d8b74.js"),i=require("./index.styles-f2358064.js"),a=require("./index-84f168eb.js"),s=require("./constants-ded45618.js"),n=require("./index-20b8b28c.js"),d=require("./index-ebed7399.js"),u=require("./index-f2e5a43e.js"),p=require("./index-c53c2cf6.js"),x=require("./index-22f6821f.js"),l=require("./index-52b005ff.js"),c=require("./utils-74e9f3ab.js"),q=require("./index-3c0d0730.js"),b=require("./index-5e65f738.js"),g=require("./index-8d147028.js"),C=require("./index-abe7bb48.js"),f=require("./index-031eda4d.js"),j=require("./index-4198e282.js"),m=require("./index-087d7573.js");require("react"),require("./utils-ec00b8cb.js"),require("./useTranslations-eef7f548.js"),require("./translationsContext-e09b4f33.js"),require("string-format"),require("./index-04bf4b9a.js"),require("./index-3183ed6e.js"),require("date-fns/locale"),require("./Subot-511ff255.js"),require("./isProduction-8a3929cb.js"),require("./theme-0bb94193.js"),require("./tslib.es6-293338f5.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("@mantine/hooks"),require("styled-components"),require("lodash/throttle"),require("html-react-parser"),require("date-fns"),require("dayjs"),require("./index.styled-250b6af4.js"),require("./utils-adde2380.js"),require("./cookieHelper-91788da6.js"),require("slugify"),require("./types-140f0c7d.js"),require("./index-f56af2a1.js"),require("./index-0a35e29e.js"),require("react-hook-form"),require("./useHealthToolCache-d78d2251.js"),require("./getDynamicHealthTool-91d3a539.js"),require("./normalizeLink-e4d8df7b.js"),require("./routing-ed60b4e3.js"),require("./core-d774c80a.js"),require("@hookform/resolvers/yup"),require("./useOutsideClick-ac461ca7.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-95d4b1ab.js"),require("uuid"),require("@mantine/form"),require("./index-a1e30b09.js"),require("js-cookie"),require("lodash/flatten"),require("lodash/uniqBy"),require("./paths-ed97730a.js"),require("@mantine/carousel"),require("classnames"),require("./animation-1e5b6297.js"),require("react-keyed-flatten-children"),require("./useScrollbarSize-9413af1b.js"),require("lodash/debounce"),require("react-dom"),require("react-day-picker/DayPickerInput"),require("./constants-0b9aa2f4.js"),require("./ChevronDown-a8966000.js"),require("./index-f80db37d.js"),require("./useIsInit-f9337a25.js"),require("dayjs/plugin/relativeTime"),require("./utils-5af37bc5.js"),exports.AdBlock=e.AdBlock,exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.Avatar=e.Avatar,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DoctorInfo=e.DoctorInfo,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=e.MAPPING_CATEGORY_PREMIUM_API_TYPE,exports.MAPPING_CATEGORY_PREMIUM_TYPE=e.MAPPING_CATEGORY_PREMIUM_TYPE,exports.MobileBottomNavigation=e.MobileBottomNavigation,exports.MobileBottomNavigationIcon=e.MobileBottomNavigationIcon,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RadioGroup=e.RadioGroup,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyOrPremiumBanner=e.SurveyOrPremiumBanner,exports.SurveyQuestionCard=e.SurveyQuestionCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.ToolsBannerCard=e.ToolsBannerCard,exports.UserProfileNavigation=e.UserProfileNavigation,exports.UserProfileNavigationHeader=e.NavHeader,exports.UserProfileNavigationStats=e.UserStats,exports.Button=r.Button,exports.AuthorBadge=o.AuthorBadge,exports.BookingBtn=o.BookingBtn,exports.BtnChoice=o.BtnChoice,exports.Divider=o.Divider,exports.Flag=t.Flag,exports.ImageWrap=t.ImageWrap,exports.Heading=i.Heading,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=n.Logo,exports.Text=d.Text,exports.Container=u.Container,exports.Icon=p.Icon,exports.Drawer=x.Drawer,exports.Modal=x.Modal,exports.RadioImageGroup=x.RadioImageGroup,exports.CustomReferenceDot=l.CustomReferenceDot,exports.LogoIcon=c.LogoIcon,exports.DatePicker=q.DatePicker,exports.Loading=q.Loading,exports.Dropdown=b.Dropdown,exports.Popup=g.Popup,exports.LanguageSwitcher=C.LanguageSwitcher,exports.NavigationLogoutPopup=C.NavigationLogoutPopup,exports.NavigationProfileButton=C.NavigationProfileButton,exports.NavigationV2=C.NavigationV2,exports.ProfileNavigation=C.ProfileNavigation,exports.getNavMenuContent=C.getNavMenuContent,exports.getNavMenuContentWithCache=C.getNavMenuContentWithCache,exports.PillCarousel=f.PillCarousel,exports.AddressInput=j.AddressInput,exports.Footer=m.Footer;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-c97c557f.js"),r=require("./index-7cf403fc.js"),o=require("./index-ff2a7724.js"),t=require("./index-77dbd11f.js"),i=require("./index.styles-d7c56999.js"),a=require("./index-ad733c52.js"),s=require("./constants-e409af9b.js"),n=require("./index-8c1a5431.js"),d=require("./index-623655d2.js"),u=require("./index-7abb70e0.js"),p=require("./index-62c61507.js"),x=require("./index-05aa21dd.js"),c=require("./index-47258f9a.js"),l=require("./utils-94f8c3bb.js"),q=require("./index-992473c0.js"),b=require("./index-0b364983.js"),g=require("./index-7c707c86.js"),C=require("./index-67b9453a.js"),j=require("./index-f79fe272.js"),m=require("./index-1a06bea6.js"),P=require("./index-11d1af06.js");require("react"),require("./utils-38a04ad0.js"),require("./useTranslations-053501b7.js"),require("./translationsContext-202c33d1.js"),require("string-format"),require("./index-e417cb6d.js"),require("./index-7d326d6a.js"),require("date-fns/locale"),require("./Subot-5e94dc84.js"),require("./isProduction-2bcc92a8.js"),require("./theme-445ed9a5.js"),require("./tslib.es6-6efd1b76.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("@mantine/hooks"),require("styled-components"),require("lodash/throttle"),require("html-react-parser"),require("date-fns"),require("dayjs"),require("./index.styled-35de73b7.js"),require("./utils-b79c27a6.js"),require("./cookieHelper-27fb2f4f.js"),require("slugify"),require("./types-e9c2fd69.js"),require("./index-95f2568e.js"),require("./index-413276e5.js"),require("react-hook-form"),require("./useHealthToolCache-37fe2176.js"),require("./getDynamicHealthTool-297c8604.js"),require("./normalizeLink-234ec40a.js"),require("./routing-88ae6957.js"),require("./core-ea7ee018.js"),require("@hookform/resolvers/yup"),require("./useOutsideClick-adadb7b1.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-ce1e33c4.js"),require("uuid"),require("@mantine/form"),require("./index-d8623459.js"),require("js-cookie"),require("lodash/flatten"),require("lodash/uniqBy"),require("./paths-4bb6c34d.js"),require("@mantine/carousel"),require("classnames"),require("./animation-0b12f69c.js"),require("react-keyed-flatten-children"),require("./useScrollbarSize-0dca0252.js"),require("lodash/debounce"),require("react-dom"),require("react-day-picker/DayPickerInput"),require("./constants-00eb6917.js"),require("./ChevronDown-6bcccd07.js"),require("./index-b6b058b9.js"),require("./useIsInit-23edb76e.js"),require("dayjs/plugin/relativeTime"),require("./utils-b432bb60.js"),exports.AdBlock=e.AdBlock,exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.Avatar=e.Avatar,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DoctorInfo=e.DoctorInfo,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=e.MAPPING_CATEGORY_PREMIUM_API_TYPE,exports.MAPPING_CATEGORY_PREMIUM_TYPE=e.MAPPING_CATEGORY_PREMIUM_TYPE,exports.MobileBottomNavigation=e.MobileBottomNavigation,exports.MobileBottomNavigationIcon=e.MobileBottomNavigationIcon,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RadioGroup=e.RadioGroup,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyOrPremiumBanner=e.SurveyOrPremiumBanner,exports.SurveyQuestionCard=e.SurveyQuestionCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.ToolsBannerCard=e.ToolsBannerCard,exports.UserProfileNavigation=e.UserProfileNavigation,exports.UserProfileNavigationHeader=e.NavHeader,exports.UserProfileNavigationStats=e.UserStats,exports.Button=r.Button,exports.AuthorBadge=o.AuthorBadge,exports.BookingBtn=o.BookingBtn,exports.BtnChoice=o.BtnChoice,exports.Divider=o.Divider,exports.Flag=t.Flag,exports.ImageWrap=t.ImageWrap,exports.Heading=i.Heading,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=n.Logo,exports.Text=d.Text,exports.Container=u.Container,exports.Icon=p.Icon,exports.Drawer=x.Drawer,exports.Modal=x.Modal,exports.RadioImageGroup=x.RadioImageGroup,exports.CustomReferenceDot=c.CustomReferenceDot,exports.LogoIcon=l.LogoIcon,exports.DatePicker=q.DatePicker,exports.Loading=q.Loading,exports.Dropdown=b.Dropdown,exports.Popup=g.Popup,exports.LanguageSwitcher=C.LanguageSwitcher,exports.NavigationLogoutPopup=C.NavigationLogoutPopup,exports.NavigationProfileButton=C.NavigationProfileButton,exports.NavigationV2=C.NavigationV2,exports.ProfileNavigation=C.ProfileNavigation,exports.getNavMenuContent=C.getNavMenuContent,exports.getNavMenuContentWithCache=C.getNavMenuContentWithCache,exports.PillCarousel=j.PillCarousel,exports.AddressInput=m.AddressInput,exports.Footer=P.Footer;
@@ -1 +1 @@
1
- "use strict";require("./index-3183ed6e.js");var e=require("./isProduction-8a3929cb.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},_={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var r=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});exports.LOCALISED_SLUGS=O,exports.constants=r;
1
+ "use strict";require("./index-7d326d6a.js");var e=require("./isProduction-2bcc92a8.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},_={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var r=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});exports.LOCALISED_SLUGS=O,exports.constants=r;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./theme-0bb94193.js"),i=require("./utils-ec00b8cb.js"),t=require("styled-components"),a=require("react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(t),r=s(a);const n=o.default.div`
1
+ "use strict";var e=require("./theme-445ed9a5.js"),i=require("./utils-38a04ad0.js"),t=require("styled-components"),a=require("react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(t),r=s(a);const n=o.default.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var E=require("./index-3183ed6e.js"),e=require("./isProduction-8a3929cb.js");require("date-fns/locale"),require("./Subot-511ff255.js"),exports.API_DATE_FORMAT=E.API_DATE_FORMAT,exports.BEARER_TOKEN_COOKIE=E.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=E.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=E.CARE_LOCALES,exports.CDN_ADDRESS=E.CDN_ADDRESS,exports.DATE_FNS_DATE_FORMAT=E.DATE_FNS_DATE_FORMAT,exports.DATE_FNS_LOCALE=E.DATE_FNS_LOCALE,exports.ECOM_LOCALES=E.ECOM_LOCALES,exports.FAVICONS=E.FAVICONS,exports.GA_TOKEN_COOKIE=E.GA_TOKEN_COOKIE,exports.ISO_FORMAT=E.ISO_FORMAT,exports.LOCALE_SPECS=E.LOCALE_SPECS,exports.MAP_DOMAIN_BY_LOCALE=E.MAP_DOMAIN_BY_LOCALE,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return E.QUERY_HEALTH_TOOL}}),Object.defineProperty(exports,"RISK_SCREENER_NAME",{enumerable:!0,get:function(){return E.RISK_SCREENER_NAME}}),exports.RISK_SCREENER_SLUG=E.RISK_SCREENER_SLUG,exports.SSO_URL=E.SSO_URL,exports.STATIC_PAGES=E.STATIC_PAGES,exports.TOGETHER_LOCALES=E.TOGETHER_LOCALES,exports.UP_BASEPATH=E.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=E.USER_GEOLOCATION_COORDINATES_COOKIE,exports.basePath=E.basePath,exports.domainLocales=E.domainLocales,exports.siteHost=E.siteHost,exports.siteOptions=E.siteOptions,exports.isProduction=e.isProduction;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var E=require("./index-7d326d6a.js"),e=require("./isProduction-2bcc92a8.js");require("date-fns/locale"),require("./Subot-5e94dc84.js"),exports.API_DATE_FORMAT=E.API_DATE_FORMAT,exports.BEARER_TOKEN_COOKIE=E.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=E.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=E.CARE_LOCALES,exports.CDN_ADDRESS=E.CDN_ADDRESS,exports.DATE_FNS_DATE_FORMAT=E.DATE_FNS_DATE_FORMAT,exports.DATE_FNS_LOCALE=E.DATE_FNS_LOCALE,exports.ECOM_LOCALES=E.ECOM_LOCALES,exports.FAVICONS=E.FAVICONS,exports.GA_TOKEN_COOKIE=E.GA_TOKEN_COOKIE,exports.ISO_FORMAT=E.ISO_FORMAT,exports.LOCALE_SPECS=E.LOCALE_SPECS,exports.MAP_DOMAIN_BY_LOCALE=E.MAP_DOMAIN_BY_LOCALE,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return E.QUERY_HEALTH_TOOL}}),Object.defineProperty(exports,"RISK_SCREENER_NAME",{enumerable:!0,get:function(){return E.RISK_SCREENER_NAME}}),exports.RISK_SCREENER_SLUG=E.RISK_SCREENER_SLUG,exports.SSO_URL=E.SSO_URL,exports.STATIC_PAGES=E.STATIC_PAGES,exports.TOGETHER_LOCALES=E.TOGETHER_LOCALES,exports.UP_BASEPATH=E.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=E.USER_GEOLOCATION_COORDINATES_COOKIE,exports.basePath=E.basePath,exports.domainLocales=E.domainLocales,exports.siteHost=E.siteHost,exports.siteOptions=E.siteOptions,exports.isProduction=e.isProduction;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-293338f5.js"),e=require("./isProduction-8a3929cb.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
1
+ "use strict";var t=require("./tslib.es6-6efd1b76.js"),e=require("./isProduction-2bcc92a8.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("lodash/throttle"),i=require("./utils-ec00b8cb.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),o=n(t);const s=e.createContext({isInit:!0}),a=e=>{const t=(e=>"number"==typeof e?e:"undefined"!=typeof window&&window.innerWidth||0)(e);return{smallMobile:t<i.Breakpoints.BREAK_POINT_SMALL_MOBILE,mobile:t>=i.Breakpoints.BREAK_POINT_SMALL_MOBILE&&t<i.Breakpoints.BREAK_POINT_MOBILE,tablet:t>=i.Breakpoints.BREAK_POINT_MOBILE&&t<i.Breakpoints.BREAK_POINT_TABLET,pc:t>=i.Breakpoints.BREAK_POINT_TABLET&&t<i.Breakpoints.BREAK_POINT_PC,xl:t>=i.Breakpoints.BREAK_POINT_PC}};exports.ScreenSizeContext=s,exports.ScreenSizeContextProvider=({children:t})=>{const[i,n]=e.useState((()=>({isInit:!0})));e.useEffect((()=>{const e=o.default((()=>{n({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const d=e.useMemo((()=>a(i.width)),[i.width]);return r.default.createElement(s.Provider,{value:Object.assign(Object.assign({},i),{sizeGroups:d})},t)},exports.formatPill=e=>e?{id:e.id,name:e.name||"",icon:e.fruit_icon||""}:{},exports.getWindowSizeGroups=a;
1
+ "use strict";var e=require("react"),t=require("lodash/throttle"),i=require("./utils-38a04ad0.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),o=n(t);const s=e.createContext({isInit:!0}),a=e=>{const t=(e=>"number"==typeof e?e:"undefined"!=typeof window&&window.innerWidth||0)(e);return{smallMobile:t<i.Breakpoints.BREAK_POINT_SMALL_MOBILE,mobile:t>=i.Breakpoints.BREAK_POINT_SMALL_MOBILE&&t<i.Breakpoints.BREAK_POINT_MOBILE,tablet:t>=i.Breakpoints.BREAK_POINT_MOBILE&&t<i.Breakpoints.BREAK_POINT_TABLET,pc:t>=i.Breakpoints.BREAK_POINT_TABLET&&t<i.Breakpoints.BREAK_POINT_PC,xl:t>=i.Breakpoints.BREAK_POINT_PC}};exports.ScreenSizeContext=s,exports.ScreenSizeContextProvider=({children:t})=>{const[i,n]=e.useState((()=>({isInit:!0})));e.useEffect((()=>{const e=o.default((()=>{n({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const d=e.useMemo((()=>a(i.width)),[i.width]);return r.default.createElement(s.Provider,{value:Object.assign(Object.assign({},i),{sizeGroups:d})},t)},exports.formatPill=e=>e?{id:e.id,name:e.name||"",icon:e.fruit_icon||""}:{},exports.getWindowSizeGroups=a;
package/build/ecom.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-0bb94193.js"),e=require("./constants-0b9aa2f4.js"),o=require("./types-140f0c7d.js");require("./index-3183ed6e.js"),require("date-fns/locale"),require("./Subot-511ff255.js"),require("./isProduction-8a3929cb.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-445ed9a5.js"),e=require("./constants-00eb6917.js"),o=require("./types-e9c2fd69.js");require("./index-7d326d6a.js"),require("date-fns/locale"),require("./Subot-5e94dc84.js"),require("./isProduction-2bcc92a8.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
@@ -1,4 +1,4 @@
1
- import{D as e,M as t}from"./index-cff19603.js";export{B as BabyGrowthGender}from"./index-cff19603.js";import r,{useMemo as o,useRef as l,useState as a,useEffect as i}from"react";import{L as n,G as c,B as s,a as d}from"./Subot-3d309d90.js";import{t as m}from"./theme-0d3c8845.js";import{T as C,I as p}from"./index-b51813fe.js";import h from"styled-components";import{B as y}from"./index-1fce73b8.js";import{M as f}from"./index-7b4c9ffd.js";import u from"dayjs";import{a as b,l as g}from"./localizeNumberFormat-883148fd.js";import{u as E}from"./useTranslations-49e0430f.js";import{H as x}from"./index.styles-f450b969.js";import{s as v}from"./utils-1550f4c2.js";import{_ as w,a as L}from"./tslib.es6-c43c14a5.js";import"@mantine/core";import"./index-924d8b45.js";import"./index-9b020630.js";import"./constants-7f54318a.js";import"./utils-bc76e7d8.js";import{T as k}from"./index-f5ac3469.js";import{C as M}from"./index-5dc45c1c.js";import"./index-fcb7c05d.js";import"./utils-ab3bd9a9.js";import"@mantine/dates";import"@mantine/hooks";import{a as H}from"./useOutsideClick-e4f22be5.js";import{I}from"./index-f09be292.js";import{ResponsiveContainer as j,LineChart as S,CartesianGrid as G,Tooltip as R,XAxis as z,YAxis as Z,Line as _,ReferenceDot as N}from"recharts";import V from"lodash/chunk";import"./useScrollbarSize-0d367255.js";import"lodash/debounce";import"react-dom";import"./index.styled-222b6ef8.js";import"./translationsContext-ee7ec6eb.js";import"string-format";import"./animation-4d5baff8.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"classnames";import"./isProduction-135c9280.js";import"date-fns/locale";import"./cookieHelper-0acd4fc8.js";import"slugify";const T=h.div`
1
+ import{D as e,M as t}from"./index-e5ca10f5.js";export{B as BabyGrowthGender}from"./index-e5ca10f5.js";import r,{useMemo as o,useRef as l,useState as a,useEffect as i}from"react";import{L as n,G as c,B as s,a as d}from"./Subot-46c8b66e.js";import{t as m}from"./theme-1fc9bf92.js";import{T as C,I as p}from"./index-198fd08e.js";import h from"styled-components";import{B as y}from"./index-ba2430f8.js";import{M as f}from"./index-cde509fa.js";import u from"dayjs";import{a as b,l as g}from"./localizeNumberFormat-69715560.js";import{u as E}from"./useTranslations-b7d4a160.js";import{H as x}from"./index.styles-8be9760e.js";import{s as v}from"./utils-288ca0db.js";import{_ as w,a as L}from"./tslib.es6-03e2d67c.js";import"@mantine/core";import"./index-c93ec607.js";import"./index-4b2d0830.js";import"./constants-f262fdad.js";import"./utils-36e3bf71.js";import{T as k}from"./index-696ca464.js";import{C as M}from"./index-c4af839e.js";import"./index-3f24fd41.js";import"./utils-b8dbc87d.js";import"@mantine/dates";import"@mantine/hooks";import{a as H}from"./useOutsideClick-d9a01b05.js";import{I}from"./index-a4441d0b.js";import{ResponsiveContainer as j,LineChart as S,CartesianGrid as G,Tooltip as R,XAxis as z,YAxis as Z,Line as _,ReferenceDot as N}from"recharts";import V from"lodash/chunk";import"./useScrollbarSize-d69893c7.js";import"lodash/debounce";import"react-dom";import"./index.styled-37a324c2.js";import"./translationsContext-05a6ebf7.js";import"string-format";import"./animation-1598cf15.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"classnames";import"./isProduction-6af4d2ac.js";import"date-fns/locale";import"./cookieHelper-16653e64.js";import"slugify";const T=h.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  gap: 16px;
@@ -397,7 +397,7 @@ import{D as e,M as t}from"./index-cff19603.js";export{B as BabyGrowthGender}from
397
397
  }
398
398
  }
399
399
  }
400
- `,he=({isActive:e,onChange:t,value:o="",onInputChange:l,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(pe,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(f,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(I,{name:"name",value:o,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:l}))},ye=e=>{var t,o,{babyProfiles:l,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:u,newBabyValue:b,onNewBabyValueChange:g,siteType:x,buttonText:v,headerText:L}=e,M=w(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=l[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(de,Object.assign({title:L||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=l||[])||void 0===t?void 0:t.map((e=>r.createElement(J,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(he,{siteType:x,value:b,onInputChange:g,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},u||B(e)))})):r.createElement(me,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(f,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},L||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(o=l||[])||void 0===o?void 0:o.map((e=>r.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(he,{value:b,onInputChange:g,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},u||B()))},fe={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-f5190462.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-788fb5b4.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-afe4fd67.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-ae3bef15.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-566b72c0.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-fd72f182.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-9a4cc487.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-dd491a3d.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-5ff7c492.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-e94f9b0c.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-f3616831.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-8f7ac99b.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-df673b20.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-441d5eec.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-b8635e96.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-e604f0e1.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-ab099390.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-9575be98.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-9e2dcb2b.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-8679c7bc.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-c6203100.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-fa839bec.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-8a502893.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-a4566ca8.js")}}},ue={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-dfb95358.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-bb98f05e.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-055fefcb.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-1edeedcc.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-4ebeca1a.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-b42da93c.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-f5d468d9.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-921be2d2.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-5199b4a7.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-6c12aa9f.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-54be7428.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-1c23b3d9.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-820a7ef3.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-8350897b.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-b2f2d906.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-f255cbfc.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-bddddbe3.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-a99d0fd7.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-0783f118.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-856a5b1e.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-a84257a0.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-f8488af5.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-aab4d85c.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-a4d7a630.js")}}},be=(e,t,r,o,l)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][o],a[0][o]];return a.forEach((e=>{e[o]>n&&(n=e[o]),e[o]<i&&(i=e[o])})),[(0|i)-l,(0|n)+l]},ge=(e,t,r,o)=>o===n.Indonesia?ue[e][t][r]():fe[e][t][r](),Ee=(e,t)=>{const[r,o]=V(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),a=o.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:o,status:"second-half"}:{data:t,status:"full"}},xe=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ve=(e,t,r,o,l)=>[...e,{name:o,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),we=(e,t=0)=>{const r=[];for(const o in e){e[o].forEach(((e,l)=>{r[l]?r[l][o]=e:r[l]={name:l+t,[o]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const o=r[e],l=r[e+1],a=o.getAttribute("x1"),i=o.getAttribute("y"),n=o.getAttribute("height"),c=o.getAttribute("x1"),s=l.getAttribute("x1");console.log({oddLine:o,nextLine:l});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(o),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Me=h.div`
400
+ `,he=({isActive:e,onChange:t,value:o="",onInputChange:l,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(pe,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(f,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(I,{name:"name",value:o,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:l}))},ye=e=>{var t,o,{babyProfiles:l,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:u,newBabyValue:b,onNewBabyValueChange:g,siteType:x,buttonText:v,headerText:L}=e,M=w(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=l[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(de,Object.assign({title:L||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=l||[])||void 0===t?void 0:t.map((e=>r.createElement(J,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(he,{siteType:x,value:b,onInputChange:g,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},u||B(e)))})):r.createElement(me,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(f,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},L||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(o=l||[])||void 0===o?void 0:o.map((e=>r.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(he,{value:b,onInputChange:g,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},u||B()))},fe={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-86fe3770.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-5f26b470.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-20b03a84.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-8e6f7bf3.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-2643a2db.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-1c75479d.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-3a2b0ed8.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-87b98a1c.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-75831c10.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-9ce890fd.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-ef9e6f06.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-9a66add9.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-8ad0bb3c.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-6cf5a5d3.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-116699be.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-3571400e.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-1b0a4bd2.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-1fa58117.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-eba34173.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-e448752c.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-198742ce.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-1e740ffb.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-8a6f031e.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-d412b15d.js")}}},ue={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-ca75b3dc.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-6c9748ff.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-a382f2a5.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-2ee812a6.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-798acbba.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-9c9eedab.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-7d7140d0.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-744cbfa3.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-087469e3.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-03bc653d.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-8b2dbe70.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-15e1555d.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-c98a8fae.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-ab3c471c.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-c3850f8e.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-eef09ecf.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-b1e7b0b6.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-b5740f73.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-cfab749b.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-44ab5598.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-b7bcd7b8.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-2d95c18a.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-a73a69e1.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-3674ad67.js")}}},be=(e,t,r,o,l)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][o],a[0][o]];return a.forEach((e=>{e[o]>n&&(n=e[o]),e[o]<i&&(i=e[o])})),[(0|i)-l,(0|n)+l]},ge=(e,t,r,o)=>o===n.Indonesia?ue[e][t][r]():fe[e][t][r](),Ee=(e,t)=>{const[r,o]=V(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),a=o.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:o,status:"second-half"}:{data:t,status:"full"}},xe=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ve=(e,t,r,o,l)=>[...e,{name:o,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),we=(e,t=0)=>{const r=[];for(const o in e){e[o].forEach(((e,l)=>{r[l]?r[l][o]=e:r[l]={name:l+t,[o]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const o=r[e],l=r[e+1],a=o.getAttribute("x1"),i=o.getAttribute("y"),n=o.getAttribute("height"),c=o.getAttribute("x1"),s=l.getAttribute("x1");console.log({oddLine:o,nextLine:l});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(o),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Me=h.div`
401
401
  position: relative;
402
402
  .custom-chart-label {
403
403
  display: flex;
@@ -1 +1 @@
1
- export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-539e7939.js";import"./tslib.es6-c43c14a5.js";import"./isProduction-135c9280.js";
1
+ export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-0ea997b2.js";import"./tslib.es6-03e2d67c.js";import"./isProduction-6af4d2ac.js";
package/build/esm/care.js CHANGED
@@ -1 +1 @@
1
- export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-1779ff39.js";export{c as CareConstants}from"./constants-7f54318a.js";import"./tslib.es6-c43c14a5.js";import"react";import"./useTranslations-49e0430f.js";import"./translationsContext-ee7ec6eb.js";import"string-format";import"lodash/debounce";import"./index-f09be292.js";import"@mantine/core";import"styled-components";import"./index-b51813fe.js";import"./theme-0d3c8845.js";import"lodash/shuffle";import"./useOutsideClick-e4f22be5.js";import"./utils-1550f4c2.js";import"react-loading-skeleton";import"./paths-61361575.js";import"./index-fcb7c05d.js";import"date-fns/locale";import"./Subot-3d309d90.js";import"./isProduction-135c9280.js";import"./cookieHelper-0acd4fc8.js";import"./index-a6ddd645.js";import"./ChevronDown-7443ba17.js";
1
+ export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-2f73c062.js";export{c as CareConstants}from"./constants-f262fdad.js";import"./tslib.es6-03e2d67c.js";import"react";import"./useTranslations-b7d4a160.js";import"./translationsContext-05a6ebf7.js";import"string-format";import"lodash/debounce";import"./index-a4441d0b.js";import"@mantine/core";import"styled-components";import"./index-198fd08e.js";import"./theme-1fc9bf92.js";import"lodash/shuffle";import"./useOutsideClick-d9a01b05.js";import"./utils-288ca0db.js";import"react-loading-skeleton";import"./paths-c018124d.js";import"./index-3f24fd41.js";import"date-fns/locale";import"./Subot-46c8b66e.js";import"./isProduction-6af4d2ac.js";import"./cookieHelper-16653e64.js";import"./index-5f71fc29.js";import"./ChevronDown-2eea80bb.js";
@@ -1 +1 @@
1
- export{U as AdBlock,A as Alert,f as ArticleCard,g as ArticleCardV2,a as Avatar,x as BMICardEmbed,H as BMRCardEmbed,y as BabyGrowthCardEmbed,z as BabyPoopEmbed,B as Badge,b as BorderHeading,L as Breadcrumbs,h as CategoryCard,C as Checkbox,i as CheckboxGroup,s as CookieAcceptConfirm,K as DateRangePicker,D as DoctorInfo,w as DueDateCardEmbed,F as FileDropdown,V as FixedBottomAdBlock,r as FloatButtonGroup,e as GenderOptionControl,G as Grid,I as IconText,Y as MAPPING_CATEGORY_PREMIUM_API_TYPE,X as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,t as MobileBottomNavigationIcon,O as OvulationCardEmbed,J as PWGCardEmbed,P as Pagination,j as ProgressBar,R as Radio,k as RadioGroup,d as RateStars,S as ScrollList,u as SeoHead,N as ShareContainer,Q as ShareDrawer,l as SideMenu,m as StatisticCard,W as SurveyOrPremiumBanner,p as SurveyQuestionCard,q as SurveyThankyouCard,E as THRCardEmbed,n as Table,o as Tabs,T as Tag,c as Toggle,v as ToolsBannerCard,Z as UserProfileNavigation,_ as UserProfileNavigationHeader,$ as UserProfileNavigationStats}from"./index-0fd0a8fb.js";export{B as Button}from"./index-1fce73b8.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider}from"./index-d53f330a.js";export{F as Flag,I as ImageWrap}from"./index-924d8b45.js";export{H as Heading,P as PureInput,S as StepRenderer,a as StepRendererContext,T as TextArea}from"./index.styles-f450b969.js";export{I as Input}from"./index-f09be292.js";export{L as Label}from"./constants-7f54318a.js";export{L as Logo}from"./index-72664e72.js";export{T as Text}from"./index-f5ac3469.js";export{C as Container}from"./index-a6ddd645.js";export{I as Icon}from"./index-b51813fe.js";export{D as Drawer,M as Modal,R as RadioImageGroup}from"./index-cff19603.js";export{C as CustomReferenceDot}from"./index-5dc45c1c.js";export{L as LogoIcon}from"./utils-bc76e7d8.js";export{D as DatePicker,L as Loading}from"./index-2f6fbc5e.js";export{D as Dropdown}from"./index-ac89ac70.js";export{P as Popup}from"./index-156081e2.js";export{L as LanguageSwitcher,b as NavigationLogoutPopup,c as NavigationProfileButton,N as NavigationV2,P as ProfileNavigation,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-679dd359.js";export{P as PillCarousel}from"./index-8e3a85f0.js";export{A as AddressInput}from"./index-c51596b2.js";export{F as Footer}from"./index-5581ff57.js";import"react";import"./utils-1550f4c2.js";import"./useTranslations-49e0430f.js";import"./translationsContext-ee7ec6eb.js";import"string-format";import"./index-9b020630.js";import"./index-fcb7c05d.js";import"date-fns/locale";import"./Subot-3d309d90.js";import"./isProduction-135c9280.js";import"./theme-0d3c8845.js";import"./tslib.es6-c43c14a5.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"@mantine/hooks";import"styled-components";import"lodash/throttle";import"html-react-parser";import"date-fns";import"dayjs";import"./index.styled-222b6ef8.js";import"./utils-ab3bd9a9.js";import"./cookieHelper-0acd4fc8.js";import"slugify";import"./types-745b966e.js";import"./index-bd5220da.js";import"./index-7b4c9ffd.js";import"react-hook-form";import"./useHealthToolCache-09b61354.js";import"./getDynamicHealthTool-4d3d11ac.js";import"./normalizeLink-75e03b67.js";import"./routing-fa27835c.js";import"./core-539e7939.js";import"@hookform/resolvers/yup";import"./useOutsideClick-e4f22be5.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-1766c602.js";import"uuid";import"@mantine/form";import"./index-1d068cf5.js";import"js-cookie";import"lodash/flatten";import"lodash/uniqBy";import"./paths-61361575.js";import"@mantine/carousel";import"classnames";import"./animation-4d5baff8.js";import"react-keyed-flatten-children";import"./useScrollbarSize-0d367255.js";import"lodash/debounce";import"react-dom";import"react-day-picker/DayPickerInput";import"./constants-d7c4fed6.js";import"./ChevronDown-7443ba17.js";import"./index-98f238b2.js";import"./useIsInit-d5727c47.js";import"dayjs/plugin/relativeTime";import"./utils-ce8e4c84.js";
1
+ export{U as AdBlock,A as Alert,f as ArticleCard,g as ArticleCardV2,a as Avatar,x as BMICardEmbed,H as BMRCardEmbed,y as BabyGrowthCardEmbed,z as BabyPoopEmbed,B as Badge,b as BorderHeading,L as Breadcrumbs,h as CategoryCard,C as Checkbox,i as CheckboxGroup,s as CookieAcceptConfirm,K as DateRangePicker,D as DoctorInfo,w as DueDateCardEmbed,F as FileDropdown,V as FixedBottomAdBlock,r as FloatButtonGroup,e as GenderOptionControl,G as Grid,I as IconText,Y as MAPPING_CATEGORY_PREMIUM_API_TYPE,X as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,t as MobileBottomNavigationIcon,O as OvulationCardEmbed,J as PWGCardEmbed,P as Pagination,j as ProgressBar,R as Radio,k as RadioGroup,d as RateStars,S as ScrollList,u as SeoHead,N as ShareContainer,Q as ShareDrawer,l as SideMenu,m as StatisticCard,W as SurveyOrPremiumBanner,p as SurveyQuestionCard,q as SurveyThankyouCard,E as THRCardEmbed,n as Table,o as Tabs,T as Tag,c as Toggle,v as ToolsBannerCard,Z as UserProfileNavigation,_ as UserProfileNavigationHeader,$ as UserProfileNavigationStats}from"./index-138b5792.js";export{B as Button}from"./index-ba2430f8.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider}from"./index-38864a87.js";export{F as Flag,I as ImageWrap}from"./index-c93ec607.js";export{H as Heading,P as PureInput,S as StepRenderer,a as StepRendererContext,T as TextArea}from"./index.styles-8be9760e.js";export{I as Input}from"./index-a4441d0b.js";export{L as Label}from"./constants-f262fdad.js";export{L as Logo}from"./index-9d0c6353.js";export{T as Text}from"./index-696ca464.js";export{C as Container}from"./index-5f71fc29.js";export{I as Icon}from"./index-198fd08e.js";export{D as Drawer,M as Modal,R as RadioImageGroup}from"./index-e5ca10f5.js";export{C as CustomReferenceDot}from"./index-c4af839e.js";export{L as LogoIcon}from"./utils-36e3bf71.js";export{D as DatePicker,L as Loading}from"./index-81d1a3ea.js";export{D as Dropdown}from"./index-b55d97ab.js";export{P as Popup}from"./index-4942221e.js";export{L as LanguageSwitcher,b as NavigationLogoutPopup,c as NavigationProfileButton,N as NavigationV2,P as ProfileNavigation,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-d26d0482.js";export{P as PillCarousel}from"./index-d0c5dfee.js";export{A as AddressInput}from"./index-4a948104.js";export{F as Footer}from"./index-4ab0d69b.js";import"react";import"./utils-288ca0db.js";import"./useTranslations-b7d4a160.js";import"./translationsContext-05a6ebf7.js";import"string-format";import"./index-4b2d0830.js";import"./index-3f24fd41.js";import"date-fns/locale";import"./Subot-46c8b66e.js";import"./isProduction-6af4d2ac.js";import"./theme-1fc9bf92.js";import"./tslib.es6-03e2d67c.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"@mantine/hooks";import"styled-components";import"lodash/throttle";import"html-react-parser";import"date-fns";import"dayjs";import"./index.styled-37a324c2.js";import"./utils-b8dbc87d.js";import"./cookieHelper-16653e64.js";import"slugify";import"./types-30b992fc.js";import"./index-491ee5f4.js";import"./index-cde509fa.js";import"react-hook-form";import"./useHealthToolCache-a9f5329f.js";import"./getDynamicHealthTool-4e566eb5.js";import"./normalizeLink-78ac13e0.js";import"./routing-6fcf3a59.js";import"./core-0ea997b2.js";import"@hookform/resolvers/yup";import"./useOutsideClick-d9a01b05.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-1b0bdd8a.js";import"uuid";import"@mantine/form";import"./index-b36dd213.js";import"js-cookie";import"lodash/flatten";import"lodash/uniqBy";import"./paths-c018124d.js";import"@mantine/carousel";import"classnames";import"./animation-1598cf15.js";import"react-keyed-flatten-children";import"./useScrollbarSize-d69893c7.js";import"lodash/debounce";import"react-dom";import"react-day-picker/DayPickerInput";import"./constants-0c5e9437.js";import"./ChevronDown-2eea80bb.js";import"./index-a5b9597b.js";import"./useIsInit-9c33a9d8.js";import"dayjs/plugin/relativeTime";import"./utils-547d93ca.js";