@hhgtech/hhg-components 1.28.37 → 1.28.39

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 (275) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/{constants-e54aa389.js → constants-57d89069.js} +1 -1
  6. package/build/{constants-8ef08ff5.js → constants-82348c13.js} +1 -1
  7. package/build/constants.js +1 -1
  8. package/build/{core-ba7d65c8.js → core-081bdce5.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +4 -4
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/{constants-6cfaa1ef.js → constants-039f36fe.js} +1 -1
  15. package/build/esm/{constants-2b76d121.js → constants-0d46ae1d.js} +1 -1
  16. package/build/esm/constants.js +1 -1
  17. package/build/esm/{core-18ff4cb5.js → core-3c0d6b0f.js} +1 -1
  18. package/build/esm/ecom.js +1 -1
  19. package/build/esm/footer.js +1 -1
  20. package/build/esm/gAssets.js +1 -1
  21. package/build/esm/{getDynamicHealthTool-7989183b.js → getDynamicHealthTool-d874b77f.js} +1 -1
  22. package/build/esm/{getSocialList-5330dbd2.js → getSocialList-5ea15cba.js} +1 -1
  23. package/build/esm/hooks.js +1 -1
  24. package/build/esm/i18n.js +1 -1
  25. package/build/esm/i18nV2.js +1 -1
  26. package/build/esm/{index-c9737971.js → index-0e6dbcc0.js} +1 -1
  27. package/build/esm/{index-2be76d22.js → index-14839883.js} +1 -1
  28. package/build/esm/{index-064bc751.js → index-1ac72931.js} +1 -1
  29. package/build/esm/{index-fa625a55.js → index-1be91706.js} +1 -1
  30. package/build/esm/{index-6127f94b.js → index-20b84b31.js} +1 -1
  31. package/build/esm/{index-12a2d8bc.js → index-282bbb6d.js} +1 -1
  32. package/build/esm/index-3d1ca95c.js +1 -0
  33. package/build/esm/index-434197c4.js +1 -0
  34. package/build/esm/{index-74cef015.js → index-5761cc3d.js} +1 -1
  35. package/build/esm/{index-9991cfb3.js → index-5ecfac85.js} +1 -1
  36. package/build/esm/{index-2b4575ac.js → index-622dbaca.js} +1 -1
  37. package/build/esm/index-65d31851.js +1 -0
  38. package/build/esm/{index-7684a5b9.js → index-6795099e.js} +1 -1
  39. package/build/esm/{index-6e2dd27b.js → index-7d0179b5.js} +1 -1
  40. package/build/esm/{index-03141739.js → index-8db07311.js} +1 -1
  41. package/build/esm/{index-a2e81576.js → index-8dfb1724.js} +1 -1
  42. package/build/esm/{index-5fdbf5bc.js → index-c70696a6.js} +7 -7
  43. package/build/esm/index-c7136b2d.js +1 -0
  44. package/build/esm/{index-8f2fcc98.js → index-dff74895.js} +1 -1
  45. package/build/esm/{index-79f41857.js → index-e17cd802.js} +1 -1
  46. package/build/esm/{index-162b9bde.js → index-f1ff7dac.js} +1 -1
  47. package/build/esm/{index-60f16dee.js → index-fa32b4d8.js} +1 -1
  48. package/build/esm/index.js +1 -1
  49. package/build/esm/{index.styled-46a99590.js → index.styled-90fe28c0.js} +1 -1
  50. package/build/esm/{index.styled-a25d7261.js → index.styled-a1854a4a.js} +80 -77
  51. package/build/esm/{index.styled-36cb24ce.js → index.styled-e26007df.js} +6 -6
  52. package/build/esm/{index.styled-17af4657.js → index.styled-ede7c10d.js} +1 -1
  53. package/build/esm/{index.styles-671382bc.js → index.styles-95837b62.js} +5 -5
  54. package/build/esm/lead.js +1 -1
  55. package/build/esm/mantine.js +1 -1
  56. package/build/esm/misc.js +1 -1
  57. package/build/esm/navigation.js +1 -1
  58. package/build/esm/onboardingV2.js +1 -1
  59. package/build/esm/pwg.js +3 -3
  60. package/build/esm/{routing-ec23ed74.js → routing-7c32cdb3.js} +1 -1
  61. package/build/esm/subot.js +1 -1
  62. package/build/esm/together.js +1 -1
  63. package/build/esm/{types-e1669387.js → types-c5a3b173.js} +1 -1
  64. package/build/esm/{types-232e79d1.js → types-d466572e.js} +1 -1
  65. package/build/esm/types.js +1 -1
  66. package/build/esm/{useCategory-00053487.js → useCategory-702b6604.js} +1 -1
  67. package/build/esm/{useHealthToolCache-cfa13b2f.js → useHealthToolCache-1290f2b9.js} +1 -1
  68. package/build/esm/{usePlacesAutocomplete-07f0fc32.js → usePlacesAutocomplete-d14c4671.js} +1 -1
  69. package/build/esm/{useRafState-9968ee17.js → useRafState-1ba3edb3.js} +1 -1
  70. package/build/esm/{useTranslations-d963b37f.js → useTranslations-51dc4ab8.js} +1 -1
  71. package/build/esm/{utils-892d8a65.js → utils-8849cc57.js} +1 -1
  72. package/build/esm/{utils-98561d5e.js → utils-b2a0d664.js} +1 -1
  73. package/build/esm/vaccination.js +11 -11
  74. package/build/footer.js +1 -1
  75. package/build/gAssets.js +1 -1
  76. package/build/getDynamicHealthTool-12e2540d.js +1 -0
  77. package/build/{getSocialList-9e58358a.js → getSocialList-55a29d3a.js} +1 -1
  78. package/build/hooks.js +1 -1
  79. package/build/i18n.js +1 -1
  80. package/build/i18nV2.js +1 -1
  81. package/build/{index-2241f0a7.js → index-192c3976.js} +1 -1
  82. package/build/{index-d9c91a7a.js → index-1cc9c0e2.js} +1 -1
  83. package/build/{index-fe748c3b.js → index-2744bd7d.js} +1 -1
  84. package/build/{index-a788941c.js → index-505a6231.js} +3 -3
  85. package/build/{index-6b89bd1e.js → index-511b99c0.js} +1 -1
  86. package/build/{index-1763366b.js → index-543b2956.js} +1 -1
  87. package/build/{index-f8a63825.js → index-5537eb8b.js} +1 -1
  88. package/build/{index-24584ae5.js → index-557f79d9.js} +1 -1
  89. package/build/{index-824143ee.js → index-566d616e.js} +1 -1
  90. package/build/{index-db727a39.js → index-5a09ea5b.js} +1 -1
  91. package/build/{index-df9365fe.js → index-70fc6801.js} +1 -1
  92. package/build/{index-6a76dedf.js → index-80a776c5.js} +1 -1
  93. package/build/index-86314983.js +1 -0
  94. package/build/{index-63e33ff2.js → index-8a4e8200.js} +1 -1
  95. package/build/{index-5a341117.js → index-9686d73a.js} +1 -1
  96. package/build/index-b983594e.js +1 -0
  97. package/build/{index-7c3ea642.js → index-cbb25109.js} +10 -10
  98. package/build/{index-8e8894d5.js → index-cda192d8.js} +1 -1
  99. package/build/{index-3f6899fe.js → index-dd161fb0.js} +1 -1
  100. package/build/{index-8e766956.js → index-e23393d6.js} +1 -1
  101. package/build/index-e4732cde.js +1 -0
  102. package/build/{index-b9003514.js → index-f20a3b0b.js} +1 -1
  103. package/build/index.js +1 -1
  104. package/build/{index.styled-3570c720.js → index.styled-7c52b155.js} +2 -2
  105. package/build/{index.styled-40cb1c5c.js → index.styled-95722c0d.js} +1 -1
  106. package/build/{index.styled-77b9479f.js → index.styled-bf702a00.js} +5 -2
  107. package/build/{index.styled-380d6e0a.js → index.styled-edaa5fca.js} +1 -1
  108. package/build/{index.styles-3f14873c.js → index.styles-eee657e0.js} +1 -1
  109. package/build/lead.js +1 -1
  110. package/build/mantine.js +1 -1
  111. package/build/misc.js +1 -1
  112. package/build/navigation.js +1 -1
  113. package/build/onboardingV2.js +1 -1
  114. package/build/pwg.js +3 -3
  115. package/build/{routing-f6c590ab.js → routing-d19d8856.js} +1 -1
  116. package/build/subot.js +1 -1
  117. package/build/together.js +1 -1
  118. package/build/{types-72e39367.js → types-e7648820.js} +1 -1
  119. package/build/{types-2439f02e.js → types-ec42e31c.js} +1 -1
  120. package/build/types.js +1 -1
  121. package/build/{useCategory-b165202c.js → useCategory-15d34903.js} +1 -1
  122. package/build/{useHealthToolCache-b15142cb.js → useHealthToolCache-af770568.js} +1 -1
  123. package/build/{usePlacesAutocomplete-966d009c.js → usePlacesAutocomplete-24621567.js} +1 -1
  124. package/build/{useRafState-af69ad6c.js → useRafState-80bb67ea.js} +1 -1
  125. package/build/{useTranslations-95cf8449.js → useTranslations-2e112ad4.js} +1 -1
  126. package/build/{utils-6754d753.js → utils-6f3d330e.js} +1 -1
  127. package/build/{utils-167797c2.js → utils-a167e7a3.js} +1 -1
  128. package/build/vaccination.js +1 -1
  129. package/package.json +1 -1
  130. package/build/esm/index-752b7c3f.js +0 -1
  131. package/build/esm/index-778d5fb2.js +0 -1
  132. package/build/esm/index-84c08ad9.js +0 -1
  133. package/build/esm/index-956cdde0.js +0 -1
  134. package/build/getDynamicHealthTool-a7d75452.js +0 -1
  135. package/build/index-01f4346e.js +0 -1
  136. package/build/index-7adb6ca5.js +0 -1
  137. package/build/index-c782489f.js +0 -1
  138. /package/build/{BMI_BOYS.percentile.monthly-19f4ed11.js → BMI_BOYS.percentile.monthly-1abf1841.js} +0 -0
  139. /package/build/{BMI_BOYS.percentile.weekly-988c28e7.js → BMI_BOYS.percentile.weekly-a8aff425.js} +0 -0
  140. /package/build/{BMI_BOYS.percentile.yearly-2ce0172a.js → BMI_BOYS.percentile.yearly-c73321bb.js} +0 -0
  141. /package/build/{BMI_BOYS.zscore.monthly-0319a3ca.js → BMI_BOYS.zscore.monthly-69a99c2a.js} +0 -0
  142. /package/build/{BMI_BOYS.zscore.weekly-6af17a54.js → BMI_BOYS.zscore.weekly-f990fa6a.js} +0 -0
  143. /package/build/{BMI_BOYS.zscore.yearly-51a52dc7.js → BMI_BOYS.zscore.yearly-ed65c22b.js} +0 -0
  144. /package/build/{BMI_GIRLS.percentile.monthly-49e8d16b.js → BMI_GIRLS.percentile.monthly-4c7cb156.js} +0 -0
  145. /package/build/{BMI_GIRLS.percentile.weekly-6852a685.js → BMI_GIRLS.percentile.weekly-d570954a.js} +0 -0
  146. /package/build/{BMI_GIRLS.percentile.yearly-e769c49a.js → BMI_GIRLS.percentile.yearly-61a85bc5.js} +0 -0
  147. /package/build/{BMI_GIRLS.zscore.monthly-82c5d7a1.js → BMI_GIRLS.zscore.monthly-f20b70e4.js} +0 -0
  148. /package/build/{BMI_GIRLS.zscore.weekly-1f4764fb.js → BMI_GIRLS.zscore.weekly-178a1989.js} +0 -0
  149. /package/build/{BMI_GIRLS.zscore.yearly-cac12266.js → BMI_GIRLS.zscore.yearly-88ad18e5.js} +0 -0
  150. /package/build/{ChevronDown-5b4ef88d.js → ChevronDown-3037c172.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-00707b2f.js → HEAD CIRCUM_BOYS.percentile.monthly-56a4402b.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-36272a6b.js → HEAD CIRCUM_BOYS.percentile.weekly-ccf3c87f.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8ffd2a1b.js → HEAD CIRCUM_BOYS.percentile.yearly-2b9916f6.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b9037d32.js → HEAD CIRCUM_BOYS.zscore.monthly-bc3fdf65.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-acf9cc31.js → HEAD CIRCUM_BOYS.zscore.weekly-a3275cbb.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-50079d83.js → HEAD CIRCUM_BOYS.zscore.yearly-424de02b.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-211234b7.js → HEAD CIRCUM_GIRLS.percentile.monthly-31cf5774.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b6a1780b.js → HEAD CIRCUM_GIRLS.percentile.weekly-56bc87df.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2ac79afc.js → HEAD CIRCUM_GIRLS.percentile.yearly-d495ae77.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-39639744.js → HEAD CIRCUM_GIRLS.zscore.monthly-389b52dc.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8ebb9191.js → HEAD CIRCUM_GIRLS.zscore.weekly-545c913f.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0a728371.js → HEAD CIRCUM_GIRLS.zscore.yearly-25153e42.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.percentile.monthly-a04a5707.js → HEIGHT_BOYS.percentile.monthly-a0167766.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.percentile.weekly-601c6385.js → HEIGHT_BOYS.percentile.weekly-fe6c86b4.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.percentile.yearly-ee7cc294.js → HEIGHT_BOYS.percentile.yearly-b5f70609.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.zscore.monthly-390392ac.js → HEIGHT_BOYS.zscore.monthly-69050519.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.zscore.weekly-d0be59ca.js → HEIGHT_BOYS.zscore.weekly-086ed503.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.zscore.yearly-67fe48eb.js → HEIGHT_BOYS.zscore.yearly-ea1fd110.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.percentile.monthly-32fbf6d6.js → HEIGHT_GIRLS.percentile.monthly-04393cf7.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.percentile.weekly-378c22e7.js → HEIGHT_GIRLS.percentile.weekly-309dd221.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.percentile.yearly-f8a775da.js → HEIGHT_GIRLS.percentile.yearly-3fe7b9fc.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.zscore.monthly-eba9d82b.js → HEIGHT_GIRLS.zscore.monthly-a274d11d.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.zscore.weekly-649d1e6a.js → HEIGHT_GIRLS.zscore.weekly-832a2702.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.zscore.yearly-d7566aef.js → HEIGHT_GIRLS.zscore.yearly-e1250f72.js} +0 -0
  175. /package/build/{Subot-781f30c5.js → Subot-b76ccc9c.js} +0 -0
  176. /package/build/{Visible-0d367263.js → Visible-a902bc5d.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.percentile.monthly-cdd83d2c.js → WEIGHT_BOYS.percentile.monthly-6aee36d0.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.percentile.weekly-08b2cc25.js → WEIGHT_BOYS.percentile.weekly-84a9ddf3.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.percentile.yearly-78bd0332.js → WEIGHT_BOYS.percentile.yearly-6a5235a6.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.zscore.monthly-bd9c59c4.js → WEIGHT_BOYS.zscore.monthly-7b87e89a.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.zscore.weekly-71bf2560.js → WEIGHT_BOYS.zscore.weekly-7dc34a8b.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.zscore.yearly-80a65ace.js → WEIGHT_BOYS.zscore.yearly-8cde12c0.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.percentile.monthly-e602fb9f.js → WEIGHT_GIRLS.percentile.monthly-c1117e84.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.percentile.weekly-8ec40671.js → WEIGHT_GIRLS.percentile.weekly-5da1d720.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.percentile.yearly-6c13450f.js → WEIGHT_GIRLS.percentile.yearly-a23ec4ec.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.zscore.monthly-f2dff34a.js → WEIGHT_GIRLS.zscore.monthly-2f26e279.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.zscore.weekly-a7c88fa4.js → WEIGHT_GIRLS.zscore.weekly-8b0a38e9.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.zscore.yearly-4c55b4b9.js → WEIGHT_GIRLS.zscore.yearly-8bad89fe.js} +0 -0
  189. /package/build/{cookieHelper-cb2c780d.js → cookieHelper-edf24fec.js} +0 -0
  190. /package/build/{dataTransform-aa76f31c.js → dataTransform-e2f61d60.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.percentile.monthly-05d05da5.js → BMI_BOYS.percentile.monthly-b9ab85f0.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.percentile.weekly-b1aa1512.js → BMI_BOYS.percentile.weekly-ef82192f.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.percentile.yearly-9a9ca29b.js → BMI_BOYS.percentile.yearly-183654c8.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.zscore.monthly-ab8c5087.js → BMI_BOYS.zscore.monthly-6eda6e64.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.zscore.weekly-9c26d743.js → BMI_BOYS.zscore.weekly-2e5db2e4.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.zscore.yearly-0c8e88bf.js → BMI_BOYS.zscore.yearly-89b97ccc.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.percentile.monthly-09da7135.js → BMI_GIRLS.percentile.monthly-c2dca76b.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.percentile.weekly-04cd0f7f.js → BMI_GIRLS.percentile.weekly-3db696ed.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.percentile.yearly-b96e6cdd.js → BMI_GIRLS.percentile.yearly-d3831386.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.zscore.monthly-e301d83d.js → BMI_GIRLS.zscore.monthly-9cef6f5e.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.zscore.weekly-23ab6a7b.js → BMI_GIRLS.zscore.weekly-78f3bce3.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.zscore.yearly-576720ea.js → BMI_GIRLS.zscore.yearly-50c1c22d.js} +0 -0
  203. /package/build/esm/{ChevronDown-70559b47.js → ChevronDown-38081c52.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-81d95d86.js → HEAD CIRCUM_BOYS.percentile.monthly-768e0230.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-12162f09.js → HEAD CIRCUM_BOYS.percentile.weekly-68c28fef.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-45cd1c23.js → HEAD CIRCUM_BOYS.percentile.yearly-79c477be.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-47835e82.js → HEAD CIRCUM_BOYS.zscore.monthly-c22a6bb8.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-026aced6.js → HEAD CIRCUM_BOYS.zscore.weekly-fa0c45de.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-01c4d654.js → HEAD CIRCUM_BOYS.zscore.yearly-fd828878.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3bac7be1.js → HEAD CIRCUM_GIRLS.percentile.monthly-0e370871.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d0a20741.js → HEAD CIRCUM_GIRLS.percentile.weekly-f4708552.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-dc919555.js → HEAD CIRCUM_GIRLS.percentile.yearly-dfb103cf.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-47bf7a3c.js → HEAD CIRCUM_GIRLS.zscore.monthly-3ee0be1b.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a8e45e75.js → HEAD CIRCUM_GIRLS.zscore.weekly-44bcc793.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-bf546ba6.js → HEAD CIRCUM_GIRLS.zscore.yearly-a1027497.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-6ba59424.js → HEIGHT_BOYS.percentile.monthly-02e472da.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-29b8fe64.js → HEIGHT_BOYS.percentile.weekly-0680ad0c.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f135b8e2.js → HEIGHT_BOYS.percentile.yearly-6f8aae30.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-49e9680a.js → HEIGHT_BOYS.zscore.monthly-c4cd5e14.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f9a65efa.js → HEIGHT_BOYS.zscore.weekly-44a38e55.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-8b5ad6d2.js → HEIGHT_BOYS.zscore.yearly-07fc5764.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e5b38079.js → HEIGHT_GIRLS.percentile.monthly-747f685b.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f3670276.js → HEIGHT_GIRLS.percentile.weekly-f8a8a438.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4c02f1bb.js → HEIGHT_GIRLS.percentile.yearly-19c6a95d.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-640e5e55.js → HEIGHT_GIRLS.zscore.monthly-a70d26ec.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4eead516.js → HEIGHT_GIRLS.zscore.weekly-80c3120b.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-6ebee51c.js → HEIGHT_GIRLS.zscore.yearly-55b48c0f.js} +0 -0
  228. /package/build/esm/{Subot-2c9e4c09.js → Subot-f581f4df.js} +0 -0
  229. /package/build/esm/{Visible-280d16e3.js → Visible-773a840f.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-430dc3b2.js → WEIGHT_BOYS.percentile.monthly-c7365e22.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b937aeb9.js → WEIGHT_BOYS.percentile.weekly-5d62ee47.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-cbf833e8.js → WEIGHT_BOYS.percentile.yearly-90eef9c4.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-dd6b0e64.js → WEIGHT_BOYS.zscore.monthly-39cb41e2.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-786a8d18.js → WEIGHT_BOYS.zscore.weekly-1fd3816a.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-acfb2c76.js → WEIGHT_BOYS.zscore.yearly-91994e22.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1e4153b0.js → WEIGHT_GIRLS.percentile.monthly-8803f9b5.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f69a3ddb.js → WEIGHT_GIRLS.percentile.weekly-ec6c8a49.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-a42cb1fc.js → WEIGHT_GIRLS.percentile.yearly-0e9334c7.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c8062203.js → WEIGHT_GIRLS.zscore.monthly-031167a3.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c4c6e1e6.js → WEIGHT_GIRLS.zscore.weekly-36d7530c.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-35f750e9.js → WEIGHT_GIRLS.zscore.yearly-93c90f87.js} +0 -0
  242. /package/build/esm/{cookieHelper-02a646ef.js → cookieHelper-1491c7ea.js} +0 -0
  243. /package/build/esm/{dataTransform-3970f88b.js → dataTransform-9bceddac.js} +0 -0
  244. /package/build/esm/{index-d74e3f4d.js → index-0797d3cb.js} +0 -0
  245. /package/build/esm/{index-2d5104c5.js → index-2f243424.js} +0 -0
  246. /package/build/esm/{index-4daeba4d.js → index-bbf78608.js} +0 -0
  247. /package/build/esm/{isProduction-2e0a8f23.js → isProduction-d8d94564.js} +0 -0
  248. /package/build/esm/{localizeNumberFormat-d7e41005.js → localizeNumberFormat-3657ce11.js} +0 -0
  249. /package/build/esm/{normalizeLink-78014c07.js → normalizeLink-7259b86a.js} +0 -0
  250. /package/build/esm/{number-33fd0b74.js → number-a14a26d2.js} +0 -0
  251. /package/build/esm/{paths-64d19041.js → paths-80d2b4f2.js} +0 -0
  252. /package/build/esm/{screenSizeContext-18a2ae59.js → screenSizeContext-f9a53919.js} +0 -0
  253. /package/build/esm/{theme-2bdea2f5.js → theme-9d69f1a2.js} +0 -0
  254. /package/build/esm/{translationsContext-63b5cfff.js → translationsContext-a929820e.js} +0 -0
  255. /package/build/esm/{tslib.es6-70854b37.js → tslib.es6-7b491686.js} +0 -0
  256. /package/build/esm/{types-4c039872.js → types-c4843c87.js} +0 -0
  257. /package/build/esm/{useIsInit-28ed39fb.js → useIsInit-36546b9c.js} +0 -0
  258. /package/build/esm/{useOutsideClick-0fb1f5b8.js → useOutsideClick-78141983.js} +0 -0
  259. /package/build/esm/{useScrollbarSize-622c2c1a.js → useScrollbarSize-30b1bee4.js} +0 -0
  260. /package/build/{index-36f0d549.js → index-0251e5f0.js} +0 -0
  261. /package/build/{index-f0a00b26.js → index-af3f2c07.js} +0 -0
  262. /package/build/{index-869fff15.js → index-ff51ac26.js} +0 -0
  263. /package/build/{isProduction-d688052c.js → isProduction-fa856154.js} +0 -0
  264. /package/build/{localizeNumberFormat-c01aadd7.js → localizeNumberFormat-118c54b5.js} +0 -0
  265. /package/build/{normalizeLink-b47d5761.js → normalizeLink-b898d874.js} +0 -0
  266. /package/build/{number-7e0491b4.js → number-e86b559d.js} +0 -0
  267. /package/build/{paths-b90c2d13.js → paths-bbbcac69.js} +0 -0
  268. /package/build/{screenSizeContext-41fd163e.js → screenSizeContext-478cce5e.js} +0 -0
  269. /package/build/{theme-5779230b.js → theme-1481c80b.js} +0 -0
  270. /package/build/{translationsContext-149822d4.js → translationsContext-e83c75a5.js} +0 -0
  271. /package/build/{tslib.es6-afbb99a9.js → tslib.es6-524ea691.js} +0 -0
  272. /package/build/{types-3377b03d.js → types-5ceae17e.js} +0 -0
  273. /package/build/{useIsInit-2ed8cbec.js → useIsInit-b0daf2cf.js} +0 -0
  274. /package/build/{useOutsideClick-e2fd0c7a.js → useOutsideClick-abc52969.js} +0 -0
  275. /package/build/{useScrollbarSize-4279aad3.js → useScrollbarSize-251ab8f8.js} +0 -0
@@ -1 +1 @@
1
- import e from"react";import{B as t}from"./index-9991cfb3.js";import{C as a}from"./index-4daeba4d.js";import l from"dayjs";import{d as n}from"./index-2be76d22.js";import{t as o}from"./theme-2bdea2f5.js";import"./index-a2e81576.js";import{Flex as i,Stack as r,Box as m}from"@mantine/core";import"@mantine/dates";import"./Subot-2c9e4c09.js";import"./gAssets.js";import{T as c}from"./index-60f16dee.js";import"./screenSizeContext-18a2ae59.js";import"styled-components";import"./isProduction-2e0a8f23.js";import{u as s}from"./useTranslations-d963b37f.js";import"@mantine/hooks";import{L as d}from"./index-12a2d8bc.js";import{M as v}from"./index-03141739.js";import"./translationsContext-63b5cfff.js";import"string-format";import"./tslib.es6-70854b37.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"@linaria/react";import"./utils-892d8a65.js";import"./index.styled-46a99590.js";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:m,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,z,$,x,T,j,M,C,L,_,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==m?void 0:m.menu,O=(null===(p=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(c,{size:"p1",weight:"bold"},null===(f=null==m?void 0:m.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(C=null==m?void 0:m.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(c,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==m?void 0:m.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(w=null==m?void 0:m.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==m?void 0:m.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(c,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(c,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==m?void 0:m.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(m,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
1
+ import e from"react";import{B as t}from"./index-5ecfac85.js";import{C as a}from"./index-bbf78608.js";import l from"dayjs";import{d as n}from"./index-14839883.js";import{t as o}from"./theme-9d69f1a2.js";import"./index-8dfb1724.js";import{Flex as i,Stack as r,Box as m}from"@mantine/core";import"@mantine/dates";import"./Subot-f581f4df.js";import"./gAssets.js";import{T as c}from"./index-fa32b4d8.js";import"./screenSizeContext-f9a53919.js";import"styled-components";import"./isProduction-d8d94564.js";import{u as s}from"./useTranslations-51dc4ab8.js";import"@mantine/hooks";import{L as d}from"./index-282bbb6d.js";import{M as v}from"./index-8db07311.js";import"./translationsContext-a929820e.js";import"string-format";import"./tslib.es6-7b491686.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"@linaria/react";import"./utils-8849cc57.js";import"./index.styled-90fe28c0.js";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:m,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,z,$,x,T,j,M,C,L,_,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==m?void 0:m.menu,O=(null===(p=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(c,{size:"p1",weight:"bold"},null===(f=null==m?void 0:m.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(C=null==m?void 0:m.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(c,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==m?void 0:m.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(w=null==m?void 0:m.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==m?void 0:m.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(c,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(c,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==m?void 0:m.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(m,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
@@ -1 +1 @@
1
- import{d as e}from"./index-2be76d22.js";import{i as s}from"./isProduction-2e0a8f23.js";import"date-fns/locale";import"./Subot-2c9e4c09.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,e].join("/");return s||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,o=s.split("."),i=e[Object.keys(e).find((t=>s.includes(e[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
1
+ import{d as s}from"./index-14839883.js";import{i as t}from"./isProduction-d8d94564.js";import"date-fns/locale";import"./Subot-f581f4df.js";const e="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,e,o)=>{const i="https://hhg-common."+[e||this.getBaseDomain(),o||this.subPath,s].join("/");return t||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:t}=window.location,o=t.split("."),i=s[Object.keys(s).find((e=>t.includes(s[e])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return t=s,!isNaN(parseFloat(t))&&isFinite(t);var t}))||!i?e:i}return e}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
@@ -1 +1 @@
1
- import{a as t}from"./tslib.es6-70854b37.js";import{g as o}from"./core-18ff4cb5.js";import{n as i}from"./normalizeLink-78014c07.js";import{c as l}from"./routing-ec23ed74.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let r=[];try{const a=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));r=(null===(e=null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return r}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
1
+ import{a as t}from"./tslib.es6-7b491686.js";import{g as o}from"./core-3c0d6b0f.js";import{n as i}from"./normalizeLink-7259b86a.js";import{c as l}from"./routing-7c32cdb3.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let a=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
@@ -1 +1 @@
1
- import e from"react";import{L as t}from"./Subot-2c9e4c09.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
1
+ import e from"react";import{L as t}from"./Subot-f581f4df.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
@@ -1 +1 @@
1
- export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-d963b37f.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-622c2c1a.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-9968ee17.js";export{u as useHealthToolsCache}from"./useHealthToolCache-cfa13b2f.js";export{u as useIsInit}from"./useIsInit-28ed39fb.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-0fb1f5b8.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,u as useCategory}from"./useCategory-00053487.js";import"react";import"./translationsContext-63b5cfff.js";import"string-format";import"lodash/debounce";import"./tslib.es6-70854b37.js";import"./cookieHelper-02a646ef.js";import"./getDynamicHealthTool-7989183b.js";import"./core-18ff4cb5.js";import"./isProduction-2e0a8f23.js";import"./normalizeLink-78014c07.js";import"./routing-ec23ed74.js";import"./index-2be76d22.js";import"date-fns/locale";import"./Subot-2c9e4c09.js";
1
+ export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-51dc4ab8.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-30b1bee4.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-1ba3edb3.js";export{u as useHealthToolsCache}from"./useHealthToolCache-1290f2b9.js";export{u as useIsInit}from"./useIsInit-36546b9c.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-78141983.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,u as useCategory}from"./useCategory-702b6604.js";import"react";import"./translationsContext-a929820e.js";import"string-format";import"lodash/debounce";import"./tslib.es6-7b491686.js";import"./cookieHelper-1491c7ea.js";import"./getDynamicHealthTool-d874b77f.js";import"./core-3c0d6b0f.js";import"./isProduction-d8d94564.js";import"./normalizeLink-7259b86a.js";import"./routing-7c32cdb3.js";import"./index-14839883.js";import"date-fns/locale";import"./Subot-f581f4df.js";
package/build/esm/i18n.js CHANGED
@@ -1 +1 @@
1
- import{T as s}from"./translationsContext-63b5cfff.js";export{T as TranslationsContext}from"./translationsContext-63b5cfff.js";import o,{useState as r,useEffect as e,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import f from"./i18n-values/my-MM.js";import v from"./i18n-values/th-TH.js";import j from"./i18n-values/tl-PH.js";import u from"./i18n-values/vi-VN.js";import c from"./i18n-values/vi-VN_MB.js";import p from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":u,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":f,"km-KH":l,"zh-TW":p,"th-TH":v,"tl-PH":j,"vi-VN_MB":c},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:f=null,onTranslationsLoaded:v})=>{const j=n&&n[i]||a,[u,c]=r((()=>Object.assign(Object.assign({},j),m?d[i]:{})));e((()=>{c(Object.assign(Object.assign({},j),m?d[i]:{}))}),[m,i]);const p=t((()=>u?{locale:i,values:u}:null),[i,u]);return e((()=>{v&&Object.keys(u).length&&v(u)}),[u]),o.createElement(s.Provider,{value:p},p?l:f)};export{h as TranslationsProvider,d as translationsMap};
1
+ import{T as s}from"./translationsContext-a929820e.js";export{T as TranslationsContext}from"./translationsContext-a929820e.js";import o,{useState as e,useEffect as r,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import p from"./i18n-values/vi-VN.js";import c from"./i18n-values/vi-VN_MB.js";import f from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":p,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":f,"th-TH":j,"tl-PH":u,"vi-VN_MB":c},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[p,c]=e((()=>Object.assign(Object.assign({},u),m?d[i]:{})));r((()=>{c(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>p?{locale:i,values:p}:null),[i,p]);return r((()=>{j&&Object.keys(p).length&&j(p)}),[p]),o.createElement(s.Provider,{value:f},f?l:v)};export{h as TranslationsProvider,d as translationsMap};
@@ -1 +1 @@
1
- import{T as t}from"./translationsContext-63b5cfff.js";export{T as TranslationsContext}from"./translationsContext-63b5cfff.js";import e,{useMemo as o}from"react";const r=({locale:r="en-PH",values:n,children:a})=>{const l=o((()=>n?{locale:r,values:n}:null),[r,n]);return e.createElement(t.Provider,{value:l},a)};export{r as TranslationsProvider};
1
+ import{T as e}from"./translationsContext-a929820e.js";export{T as TranslationsContext}from"./translationsContext-a929820e.js";import t,{useMemo as o}from"react";const a=({locale:a="en-PH",values:r,children:n})=>{const l=o((()=>r?{locale:a,values:r}:null),[a,r]);return t.createElement(e.Provider,{value:l},n)};export{a as TranslationsProvider};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-70854b37.js";import t,{useState as a,useEffect as n}from"react";import{L as l}from"./Subot-2c9e4c09.js";import{S as r,a as o,b as i}from"./index.styled-36cb24ce.js";const c=c=>{var{data:s,isMobile:m,onSlideChange:h,pillProps:p,locale:v=l.Vietnam,blurFromIndex:g,blurLength:b}=c,C=e(c,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const u={withControls:!m,slideGap:16,blurFromCenter:!0,blurFromIndex:g||(m?2:4),blurLength:b||(m?1:3),onSlideChange:h},[k,f]=a("");return n((()=>{f(window.location.href)}),[]),t.createElement(r,Object.assign({},u,C,{selectSlideWhenClick:!0,previousControlIcon:t.createElement(d,{currentUrl:k}),nextControlIcon:t.createElement(d,{currentUrl:k,isRight:!0})}),(e=>s.map(((a,n)=>t.createElement(o,Object.assign({key:n,onClick:h,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":k,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":k}},p),t.createElement("div",{className:"centerred-pill-wrapper"},t.createElement(i,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":k,locale:v,name:a.name,icon:a.icon,className:n===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))},d=({isRight:e,currentUrl:a})=>t.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":a,className:"pointer-event-child-none"},t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));export{c as P};
1
+ import{_ as e}from"./tslib.es6-7b491686.js";import t,{useState as a,useEffect as n}from"react";import{L as l}from"./Subot-f581f4df.js";import{S as r,a as o,b as i}from"./index.styled-e26007df.js";const c=c=>{var{data:s,isMobile:m,onSlideChange:h,pillProps:p,locale:v=l.Vietnam,blurFromIndex:g,blurLength:b}=c,C=e(c,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const u={withControls:!m,slideGap:16,blurFromCenter:!0,blurFromIndex:g||(m?2:4),blurLength:b||(m?1:3),onSlideChange:h},[f,k]=a("");return n((()=>{k(window.location.href)}),[]),t.createElement(r,Object.assign({},u,C,{selectSlideWhenClick:!0,previousControlIcon:t.createElement(d,{currentUrl:f}),nextControlIcon:t.createElement(d,{currentUrl:f,isRight:!0})}),(e=>s.map(((a,n)=>t.createElement(o,Object.assign({key:n,onClick:h,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":f,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":f}},p),t.createElement("div",{className:"centerred-pill-wrapper"},t.createElement(i,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":f,locale:v,name:a.name,icon:a.icon,className:n===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))},d=({isRight:e,currentUrl:a})=>t.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":a,className:"pointer-event-child-none"},t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));export{c as P};
@@ -1 +1 @@
1
- import{enUS as o,vi as e,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Subot-2c9e4c09.js";import{i as c}from"./isProduction-2e0a8f23.js";const h={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};var T;!function(o){o.HPV="hpv"}(T||(T={}));const r={[E.Vietnam]:{[T.HPV]:"hpv-vaccine"},[E.Indonesia]:{[T.HPV]:"deteksi-dini-hpv"}},O="tl-PH"===process.env.NEXT_PUBLIC_DEPLOY_LOCALE?"/fil":"",p=process.env.NEXT_PUBLIC_SSO,_="userGeoLocationCoordinates",m={"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","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},A={[E.Vietnam]:"hellobacsi.com",[E.Indonesia]:"hellosehat.com",[E.Malaysia]:"hellodoktor.com",[E.Cambodia]:"hellokrupet.com",[E.PhilippinesEnglish]:"hellodoctor.com.ph",[E.PhilippinesTagalog]:"hellodoctor.com.ph",[E.Thailand]:"hellokhunmor.com",[E.Myanmar]:"hellosayarwon.com",[E.Taiwan]:"helloyishi.com.tw",[E.India]:"helloswasthya.com"},u={"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",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"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",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-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:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},y={"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/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},N="user",S=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],C=["vi-VN"],g=["vi-VN","id-ID"],R=["vi-VN","id-ID"],L={"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"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var M;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(M||(M={}));const P={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},d="hhg_user_token",H={[E.PhilippinesEnglish]:o,[E.Vietnam]:e,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:o,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},Y="https://cdn.hellohealthgroup.com/countries",G="_ga",D="YYYY-MM-DD",b="dd-MM-yyyy";var k=Object.freeze({__proto__:null,basePath:O,SSO_URL:p,USER_GEOLOCATION_COORDINATES_COOKIE:_,domainLocales:m,MAP_DOMAIN_BY_LOCALE:A,LOCALE_SPECS:u,STATIC_PAGES:y,UP_BASEPATH:N,TOGETHER_LOCALES:S,ECOM_LOCALES:C,CARE_LOCALES:g,CARE_BOOKING_LOCALES:R,FAVICONS:L,get QUERY_HEALTH_TOOL(){return M},ISO_FORMAT:P,BEARER_TOKEN_COOKIE:d,DATE_FNS_LOCALE:H,CDN_ADDRESS:Y,GA_TOKEN_COOKIE:"_ga",API_DATE_FORMAT:D,DATE_FNS_DATE_FORMAT:b,siteHost:h,siteOptions:I,get RISK_SCREENER_NAME(){return T},RISK_SCREENER_SLUG:r,isProduction:c});export{D as A,d as B,g as C,H as D,C as E,L as F,G,P as I,u as L,A as M,M as Q,T as R,y as S,S as T,_ as U,r as a,Y as b,R as c,m as d,O as e,b as f,p as g,N as h,k as i,h as j,I as s};
1
+ import{enUS as o,vi as e,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Subot-f581f4df.js";import{i as c}from"./isProduction-d8d94564.js";const h={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};var T;!function(o){o.HPV="hpv"}(T||(T={}));const r={[E.Vietnam]:{[T.HPV]:"hpv-vaccine"},[E.Indonesia]:{[T.HPV]:"deteksi-dini-hpv"}},O="tl-PH"===process.env.NEXT_PUBLIC_DEPLOY_LOCALE?"/fil":"",p=process.env.NEXT_PUBLIC_SSO,_="userGeoLocationCoordinates",m={"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","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},A={[E.Vietnam]:"hellobacsi.com",[E.Indonesia]:"hellosehat.com",[E.Malaysia]:"hellodoktor.com",[E.Cambodia]:"hellokrupet.com",[E.PhilippinesEnglish]:"hellodoctor.com.ph",[E.PhilippinesTagalog]:"hellodoctor.com.ph",[E.Thailand]:"hellokhunmor.com",[E.Myanmar]:"hellosayarwon.com",[E.Taiwan]:"helloyishi.com.tw",[E.India]:"helloswasthya.com"},u={"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",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"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",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-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:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},y={"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/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},N="user",S=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],C=["vi-VN"],g=["vi-VN","id-ID"],R=["vi-VN","id-ID"],L={"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"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var M;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(M||(M={}));const P={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},d="hhg_user_token",H={[E.PhilippinesEnglish]:o,[E.Vietnam]:e,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:o,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},Y="https://cdn.hellohealthgroup.com/countries",G="_ga",D="YYYY-MM-DD",b="dd-MM-yyyy";var k=Object.freeze({__proto__:null,basePath:O,SSO_URL:p,USER_GEOLOCATION_COORDINATES_COOKIE:_,domainLocales:m,MAP_DOMAIN_BY_LOCALE:A,LOCALE_SPECS:u,STATIC_PAGES:y,UP_BASEPATH:N,TOGETHER_LOCALES:S,ECOM_LOCALES:C,CARE_LOCALES:g,CARE_BOOKING_LOCALES:R,FAVICONS:L,get QUERY_HEALTH_TOOL(){return M},ISO_FORMAT:P,BEARER_TOKEN_COOKIE:d,DATE_FNS_LOCALE:H,CDN_ADDRESS:Y,GA_TOKEN_COOKIE:"_ga",API_DATE_FORMAT:D,DATE_FNS_DATE_FORMAT:b,siteHost:h,siteOptions:I,get RISK_SCREENER_NAME(){return T},RISK_SCREENER_SLUG:r,isProduction:c});export{D as A,d as B,g as C,H as D,C as E,L as F,G,P as I,u as L,A as M,M as Q,T as R,y as S,S as T,_ as U,r as a,Y as b,R as c,m as d,O as e,b as f,p as g,N as h,k as i,h as j,I as s};
@@ -1,4 +1,4 @@
1
- import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenSizeContext-18a2ae59.js";import"dayjs";import l from"styled-components";import{t as n}from"./theme-2bdea2f5.js";import"./index-2be76d22.js";import"./isProduction-2e0a8f23.js";import"./Subot-2c9e4c09.js";import"./gAssets.js";import{_ as a}from"./tslib.es6-70854b37.js";import{b as r}from"./index.styles-671382bc.js";const d=l.div`
1
+ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenSizeContext-f9a53919.js";import"dayjs";import l from"styled-components";import{t as n}from"./theme-9d69f1a2.js";import"./index-14839883.js";import"./isProduction-d8d94564.js";import"./Subot-f581f4df.js";import"./gAssets.js";import{_ as a}from"./tslib.es6-7b491686.js";import{b as r}from"./index.styles-95837b62.js";const d=l.div`
2
2
  position: fixed;
3
3
  left: 50%;
4
4
 
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-70854b37.js";import t from"react";import{Image as o}from"@mantine/core";import{DatePickerInput as r}from"@mantine/dates";import{I as s}from"./index-2be76d22.js";import{L as i}from"./Subot-2c9e4c09.js";import{CommonGAssets as a}from"./gAssets.js";import{M as n}from"./index-a2e81576.js";const l=l=>{var m,{value:c,fullWidth:d=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(r,Object.assign({locale:n[process.env.UNIFY_LOCALE||i.Vietnam],valueFormat:null===(m=s[process.env.UNIFY_LOCALE||i.Vietnam])||void 0===m?void 0:m.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:t.createElement(o,{src:a.getAssetPath(p.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},p,{className:`input-control ${(null==p?void 0:p.className)||""}`}))};export{l as D};
1
+ import{_ as e}from"./tslib.es6-7b491686.js";import t from"react";import{Image as o}from"@mantine/core";import{DatePickerInput as r}from"@mantine/dates";import{I as s}from"./index-14839883.js";import{L as i}from"./Subot-f581f4df.js";import{CommonGAssets as a}from"./gAssets.js";import{M as n}from"./index-8dfb1724.js";const l=l=>{var m,{value:c,fullWidth:d=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(r,Object.assign({locale:n[process.env.UNIFY_LOCALE||i.Vietnam],valueFormat:null===(m=s[process.env.UNIFY_LOCALE||i.Vietnam])||void 0===m?void 0:m.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:t.createElement(o,{src:a.getAssetPath(p.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},p,{className:`input-control ${(null==p?void 0:p.className)||""}`}))};export{l as D};
@@ -1,4 +1,4 @@
1
- import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle as r,useMemo as n,forwardRef as l,createContext as s}from"react";import{I as d,T as c}from"./index-60f16dee.js";import{u as p}from"./useTranslations-d963b37f.js";import"lodash/debounce";import"./isProduction-2e0a8f23.js";import"./index-2be76d22.js";import"./useCategory-00053487.js";import{createStyles as m,Stack as g,Group as h,getStylesRef as u,useMantineTheme as b,Flex as x,rem as f,Box as y}from"@mantine/core";import v from"dayjs";import{M as w}from"./screenSizeContext-18a2ae59.js";import k,{keyframes as E,css as $}from"styled-components";import{t as D}from"./theme-2bdea2f5.js";import{G as C,L as z}from"./Subot-2c9e4c09.js";import{CommonGAssets as B}from"./gAssets.js";import{L as P}from"./index-12a2d8bc.js";import{B as N}from"./index-9991cfb3.js";import{H as j,T as S,L as I,a2 as T,P as M,t as A}from"./index.styles-671382bc.js";import{I as O}from"./index-162b9bde.js";import{_}from"./tslib.es6-70854b37.js";import{R as L,B as U}from"./index-a2e81576.js";import"@mantine/dates";import"./translationsContext-63b5cfff.js";import"string-format";import"@mantine/hooks";import{yupResolver as F}from"@hookform/resolvers/yup";import{useForm as H,Controller as R}from"react-hook-form";import{B as G,D as W}from"./index-5fdbf5bc.js";import{L as V}from"./constants-6cfaa1ef.js";import{D as q}from"./index.styled-17af4657.js";import{format as Y,addDays as Z}from"date-fns";import"@linaria/react";import"./utils-892d8a65.js";import{S as X}from"./index-778d5fb2.js";import{M as J}from"./index-03141739.js";import"./index-2d5104c5.js";import{D as K}from"./types-4c039872.js";import Q from"react-day-picker/DayPickerInput";var ee="tliWyii";const te=({className:t,theme:a,hideText:i})=>{const{t:o}=p();return e.createElement("div",{className:`${ee} ${t}`},e.createElement(d.Spinner,{isMarryBaby:"marryBaby"===a}),!i&&o("loading"))},ae=t((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),ie=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),oe=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var re=m(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ne=k.a`
1
+ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle as r,useMemo as n,forwardRef as l,createContext as s}from"react";import{I as d,T as c}from"./index-fa32b4d8.js";import{u as p}from"./useTranslations-51dc4ab8.js";import"lodash/debounce";import"./isProduction-d8d94564.js";import"./index-14839883.js";import"./useCategory-702b6604.js";import{createStyles as m,Stack as g,Group as h,getStylesRef as u,useMantineTheme as b,Flex as x,rem as f,Box as y}from"@mantine/core";import v from"dayjs";import{M as w}from"./screenSizeContext-f9a53919.js";import k,{keyframes as E,css as $}from"styled-components";import{t as D}from"./theme-9d69f1a2.js";import{G as C,L as z}from"./Subot-f581f4df.js";import{CommonGAssets as B}from"./gAssets.js";import{L as P}from"./index-282bbb6d.js";import{B as N}from"./index-5ecfac85.js";import{H as j,T as S,L as I,a2 as T,P as M,t as A}from"./index.styles-95837b62.js";import{I as O}from"./index-f1ff7dac.js";import{_}from"./tslib.es6-7b491686.js";import{R as L,B as U}from"./index-8dfb1724.js";import"@mantine/dates";import"./translationsContext-a929820e.js";import"string-format";import"@mantine/hooks";import{yupResolver as F}from"@hookform/resolvers/yup";import{useForm as H,Controller as R}from"react-hook-form";import{B as G,D as W}from"./index-c70696a6.js";import{L as V}from"./constants-039f36fe.js";import{D as q}from"./index.styled-ede7c10d.js";import{format as Y,addDays as Z}from"date-fns";import"@linaria/react";import"./utils-8849cc57.js";import{S as X}from"./index-3d1ca95c.js";import{M as J}from"./index-8db07311.js";import"./index-2f243424.js";import{D as K}from"./types-c4843c87.js";import Q from"react-day-picker/DayPickerInput";var ee="tliWyii";const te=({className:t,theme:a,hideText:i})=>{const{t:o}=p();return e.createElement("div",{className:`${ee} ${t}`},e.createElement(d.Spinner,{isMarryBaby:"marryBaby"===a}),!i&&o("loading"))},ae=t((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),ie=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),oe=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var re=m(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ne=k.a`
2
2
  display: flex;
3
3
  height: 125px;
4
4
 
@@ -1 +1 @@
1
- import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-2c9e4c09.js";import{CommonGAssets as l}from"./gAssets.js";import{styled as o}from"@linaria/react";import{i as n,a as r,b as g,c as m,d as i,e as c,f as h,g as d,L as u}from"./utils-892d8a65.js";import{I as y}from"./index-a2e81576.js";const N=o("div")({name:"StyledLogo",class:"s1u9eibo",propsAsIs:!1}),f=o("img")({name:"StyledProLogo",class:"s1afdrb8",propsAsIs:!1}),p=({type:o,className:p,style:w,isLightLogo:E,customSize:A,badge:L,locale:P,dateForSeasonal:b,isPro:V})=>{const[z,Y]=e({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return t((()=>{if(!b||isNaN(new Date(b).getTime()))return;const a=new Date(b),e=n(a),t=r.includes(P)&&g(a),l=!t&&m(a),o=i(a),u=P===s.Vietnam&&c(a),y=P===s.Vietnam&&h(a),N=P===s.Vietnam&&d(a);Y({isChristmas:e,isLunarNewYear:t,isNewYear:l,isRamadan:o,isVNHungKing:u,isVN3004:y,isLabourDay:N})}),[P,new Date(b).getDate()]),a.createElement(N,{className:p,style:w,"data-logo-is-light":E||void 0,"data-has-badge":!!L,"data-seasonal":z.isRamadan?"ramadan":z.isChristmas?"christmas":z.isLunarNewYear?"lunar-new-year":z.isNewYear?"new-year":z.isVNHungKing?"hung-king":z.isVN3004?"30-04":z.isLabourDay?"labour-day":void 0,"data-type":o},z.isChristmas?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left xmas logo",src:l.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right xmas logo",src:l.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):z.isNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left new year logo",src:l.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right new year logo",src:l.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):z.isLunarNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellosehat"===o?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellodoktor"===o?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!z.isVNHungKing||"hellobacsi"!==o&&"marryBaby"!==o?null:a.createElement(a.Fragment,null,a.createElement(y,{alt:"Hung King logo",loading:"lazy",src:l.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),a.createElement(u,{type:o,width:null==A?void 0:A.width,height:null==A?void 0:A.height}),V?a.createElement(f,{src:l.getAssetPath("logo/pro-suffix.svg")}):null,L)};export{p as L};
1
+ import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-f581f4df.js";import{CommonGAssets as l}from"./gAssets.js";import{styled as o}from"@linaria/react";import{i as n,a as r,b as g,c as m,d as i,e as c,f as h,g as d,L as u}from"./utils-8849cc57.js";import{I as f}from"./index-8dfb1724.js";const y=o("div")({name:"StyledLogo",class:"s1u9eibo",propsAsIs:!1}),N=o("img")({name:"StyledProLogo",class:"s1afdrb8",propsAsIs:!1}),p=({type:o,className:p,style:w,isLightLogo:E,customSize:A,badge:b,locale:L,dateForSeasonal:P,isPro:V})=>{const[z,Y]=e({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return t((()=>{if(!P||isNaN(new Date(P).getTime()))return;const a=new Date(P),e=n(a),t=r.includes(L)&&g(a),l=!t&&m(a),o=i(a),u=L===s.Vietnam&&c(a),f=L===s.Vietnam&&h(a),y=L===s.Vietnam&&d(a);Y({isChristmas:e,isLunarNewYear:t,isNewYear:l,isRamadan:o,isVNHungKing:u,isVN3004:f,isLabourDay:y})}),[L,new Date(P).getDate()]),a.createElement(y,{className:p,style:w,"data-logo-is-light":E||void 0,"data-has-badge":!!b,"data-seasonal":z.isRamadan?"ramadan":z.isChristmas?"christmas":z.isLunarNewYear?"lunar-new-year":z.isNewYear?"new-year":z.isVNHungKing?"hung-king":z.isVN3004?"30-04":z.isLabourDay?"labour-day":void 0,"data-type":o},z.isChristmas?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left xmas logo",src:l.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right xmas logo",src:l.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):z.isNewYear?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left new year logo",src:l.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right new year logo",src:l.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):z.isLunarNewYear?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellosehat"===o?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellodoktor"===o?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!z.isVNHungKing||"hellobacsi"!==o&&"marryBaby"!==o?null:a.createElement(a.Fragment,null,a.createElement(f,{alt:"Hung King logo",loading:"lazy",src:l.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),a.createElement(u,{type:o,width:null==A?void 0:A.width,height:null==A?void 0:A.height}),V?a.createElement(N,{src:l.getAssetPath("logo/pro-suffix.svg")}):null,b)};export{p as L};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./tslib.es6-7b491686.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{B as r}from"./index-5ecfac85.js";import{D as s,g as i,h as l}from"./index-8dfb1724.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:u,min:g,max:p,isStatic:k,containerClassName:f,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[C,b]=o(u||g||0),[E]=a(C,s);return n((()=>{null==d||d(E)}),[E]),n((()=>{b(u)}),[u]),t.createElement(i,{className:f,style:v},h&&t.createElement(r,{type:"button",size:"sm",color:"ghost",onClick:()=>{b((e=>g&&e===g?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:C,onChange:k?()=>null:b,min:g,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(r,{type:"button",size:"sm",color:"ghost",onClick:()=>{b((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
@@ -0,0 +1 @@
1
+ import{_ as e,a as t}from"./tslib.es6-7b491686.js";import a,{useState as l,useMemo as n,useRef as i,Fragment as o,useEffect as s,useContext as r,useCallback as c}from"react";import{g as m}from"./core-3c0d6b0f.js";import{F as d,a as u,B as h}from"./index-8dfb1724.js";import{S as g,a as v,b as p,c as E,d as y,e as f,u as b,f as C,g as k,h as w,i as P,j as _,k as M,l as N,m as L,n as B,o as T,p as A,q as x,N as H,r as S,s as j,t as $,v as F,w as O,x as R,y as I,z as D,A as U,B as V,C as z,D as Z,E as G,F as W,G as q,H as K,I as Y,J as Q,K as J,L as X,M as ee,O as te,P as ae,Q as le,R as ne,T as ie,U as oe,V as se,W as re,X as ce,Y as me,Z as de,_ as ue,$ as he,a0 as ge,a1 as ve,a2 as pe,a3 as Ee,a4 as ye,a5 as fe,a6 as be,a7 as Ce,a8 as ke,a9 as we,aa as Pe,ab as _e,ac as Me,ad as Ne,ae as Le,af as Be,ag as Te,ah as Ae,ai as xe,aj as He,ak as Se,al as je,am as $e,an as Fe,ao as Oe}from"./index.styled-a1854a4a.js";import{T as Re,I as Ie,U as De}from"./index-fa32b4d8.js";import{CommonGAssets as Ue}from"./gAssets.js";import{C as Ve,T as ze,E as Ze,L as Ge,S as We,d as qe}from"./index-14839883.js";import{n as Ke,a as Ye}from"./normalizeLink-7259b86a.js";import{a as Qe,g as Je,c as Xe,b as et,d as tt}from"./routing-7c32cdb3.js";import{P as at,b as lt,a as nt}from"./index-1ac72931.js";import{L as it}from"./index-282bbb6d.js";import{u as ot,b as st}from"./useTranslations-51dc4ab8.js";import rt from"lodash/throttle";import{Box as ct,Indicator as mt,Portal as dt}from"@mantine/core";import"@mantine/dates";import{L as ut}from"./Subot-f581f4df.js";import"dayjs";import{j as ht}from"./screenSizeContext-f9a53919.js";import"styled-components";import{t as gt}from"./theme-9d69f1a2.js";import"./isProduction-d8d94564.js";import"./translationsContext-a929820e.js";import vt from"string-format";import"@mantine/hooks";import{L as pt}from"./constants-0d46ae1d.js";import Et from"lodash/debounce";import"./useCategory-702b6604.js";import{C as yt}from"./ChevronDown-38081c52.js";import{B as ft}from"./index-5ecfac85.js";import{e as bt}from"./constants-039f36fe.js";import{P as Ct,H as kt}from"./index.styles-95837b62.js";import{I as wt}from"./index-c7136b2d.js";import{u as Pt}from"./useIsInit-36546b9c.js";import"@linaria/react";import"./utils-8849cc57.js";import"./index.styled-90fe28c0.js";import"./index-2f243424.js";import{C as _t}from"./index-bbf78608.js";const Mt=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],Nt=(e="")=>Mt.some((t=>new URL(e).origin.endsWith(t))),Lt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,d]=l(!1);return a.createElement(a.Fragment,null,a.createElement(g,null,a.createElement(v,{onClick:()=>d((e=>!e))},t||(null==n?void 0:n(m))||null,a.createElement(p,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,t)=>a.createElement(E,{key:t,"data-selected":s&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),d((e=>!e))),t.stopPropagation()}},a.createElement(Re,{size:"p3"},e.label),s&&i===e.value&&a.createElement("img",{src:Ue.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&a.createElement(y,{onClick:()=>d(!1)}))},Bt=({languageOptions:e,locale:t})=>{var l,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(Lt,{options:e,selected:i.value,label:a.createElement(Tt,{locale:t,label:i.label||(null===(n=null===(l=t.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Tt=({locale:e,label:t,href:l})=>{var n,i,o;return a.createElement(f,{href:l},a.createElement(d,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),a.createElement("span",null,t))},At=({path:e,locale:t})=>{var a;return`/shop/${null===(a=pt[t||"vi-VN"])||void 0===a?void 0:a[e]}/`},xt=t=>{var{count:l,styles:n,className:i,classNames:o,locale:s}=t,r=e(t,["count","styles","className","classNames","locale"]);const{classes:c,cx:m}=b(void 0,{name:"CartBadge",styles:n,classNames:o});return void 0!==l?a.createElement(ct,Object.assign({component:"a",href:At({path:"CART",locale:s}),className:m(c.root,i)},r),a.createElement(mt,{classNames:{root:c.indicatorRoot},withBorder:!0,color:"red",size:20,disabled:0===l,label:a.createElement(Re,{className:c.iconText,size:"s5"},l>99?"99+":l)},a.createElement(Ie.Cart,{size:24}))):null},Ht=({forceDisplay:e,mediaQueryKey:t,children:l,className:i,style:o})=>{const[s,r]=n((()=>ht(t)),[t]);return a.createElement(C,{lowerBound:e?0:s,upperBound:e?0:r,className:i,style:o},l)},St=e=>{const{allowBgScroll:t}=e||{},a=i();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},jt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z",fill:"#E3F2FF"}),a.createElement("path",{d:"M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38H2.5Z",fill:"#2D87F3"}),a.createElement("path",{d:"M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65ZM5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z",fill:"#2743AD"}),a.createElement("path",{d:"M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z",fill:"#2D87F3"}),a.createElement("path",{d:"M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z",fill:"#FE921D"}),a.createElement("path",{d:"M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.21.21 0 0 1-.06-.15Z",fill:"#fff"})),$t=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11Zm-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Zm1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05Z",fill:"#2D87F3"}),a.createElement("path",{d:"M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06Zm-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97Zm1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66Zm1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Z",fill:"#FFB521"}),a.createElement("path",{d:"M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17ZM13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14Zm1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1Zm1.34-.4a.23.23 0 1 1 .1-.01.23.23 0 0 1-.1.02Z",fill:"#91CAFF"})),Ft=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("rect",{x:"8.33337",y:"8.33325",width:"3.33333",height:"3.33333",rx:"1.66667",fill:"#2D87F3"})),Ot=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02L3.18 7.06Zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02l4.69 4.32Z",fill:"#2743AD"}),a.createElement("path",{d:"M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7Z",fill:"#2D87F3"}),a.createElement("path",{d:"M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25h-.02Zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.23.23 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22Zm-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23Z",fill:"#2743AD"}),a.createElement("path",{d:"M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03Z",fill:"#FE921D"}),a.createElement("path",{d:"M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46Z",fill:"#fff"}),a.createElement("path",{d:"M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7Z",fill:"#BCDEFF"})),Rt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z",fill:"#FF6F4D"})),It=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855",fill:"#2D87F3"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471",fill:"#FF6F4D"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z",fill:"#FF6F4D"})),Dt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142",fill:"#FF6F4D"}),a.createElement("path",{d:"M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204",fill:"#fff"})),Ut=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172",fill:"#00CB8A"})),Vt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0",fill:"#2D87F3"})),zt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334",fill:"#BCDEFF"}),a.createElement("path",{d:"M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005",fill:"#2D87F3"}),a.createElement("path",{d:"M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096",fill:"#2D87F3"})),Zt={helloSites:{member:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Gt=({rank:e,siteType:t="helloSites"})=>{const l=n((()=>{var a,l;return(null===(l=null===(a=Zt[t])||void 0===a?void 0:a[e])||void 0===l?void 0:l.call(a))||""}),[e,t]),{t:i}=ot();return a.createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?gt.colors.blue100:gt.colors.mb100}`}},a.createElement("img",{src:l,alt:e,style:{height:16,width:16}}),a.createElement(Re,{size:"s5",color:"gray.8",weight:"semiBold"},i(`userProfile.userRank.${e}`)))},Wt=({siteType:e="helloSites",userInfo:t})=>(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},a.createElement(u,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),a.createElement(Gt,{rank:"member",siteType:e})),a.createElement(Re,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),a.createElement(Re,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),a.createElement("hr",null)):null,qt=({className:e,activeItem:t,navMenuItems:n,style:i,onLogout:s,siteType:r="helloSites",userInfo:c})=>{const{locale:m}=ot(),[d,u]=l(),h="string"==typeof t?t:d,g=Ke(Qe(m,"marryBaby"===r)+"/"),v=Ke(Je(m,"marryBaby"===r)+"/"),p=n||[[{key:"userProfile.nav.header.viewProfile",icon:a.createElement(zt,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${g}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:a.createElement(Dt,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${g}user/health/`},{key:"userProfile.nav.card.mySaved",icon:a.createElement(Ut,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${g}user/saved/`},{key:"userProfile.nav.card.myBooking",icon:a.createElement(jt,{width:"24",height:"24"}),value:"booking",disabled:!Ve.includes(m),tracking:{action:"Manage Booking Click"},link:`${g}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:a.createElement($t,{width:"24",height:"24"}),value:"myCommunities",disabled:!ze.includes(m),tracking:{action:"Community Click"},link:`${g}user/my-communities/`}],...Ze.includes(m)?[[{key:"userProfile.nav.card.eCom",icon:a.createElement(Ot,{width:"24",height:"24"}),value:"eCom",disabled:!Ze.includes(m),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:a.createElement(Vt,{width:"24",height:"24"}),subMenu:[{key:"common.profileNavigator.newsletterSubscription",value:"subscription",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Subscription Click"},link:`${g}user/subscriptions/`,disabled:"vi-VN"!==m},{key:"userProfile.nav.menu.password",value:"password",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${g}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${g}user/disable-account/`}]}],[{key:"userProfile.nav.menu.help",icon:a.createElement(Rt,{width:"24",height:"24"}),value:"help",link:`${g}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:a.createElement(It,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return a.createElement(k,{className:e,style:i},a.createElement(Wt,{userInfo:c,siteType:r}),p.map(((e,t)=>a.createElement(o,{key:t},a.createElement("div",{className:"profile-nav-item-group",key:t},e.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:h||"",onLogout:s,onClick:()=>u((t=>t===e.key?void 0:e.key)),siteType:r})))),t!==p.length-1&&a.createElement("hr",null)))))},Kt=({item:e,activeKey:t,forceOpen:i,onLogout:o,onClick:r,siteType:c="helloSites"})=>{var m,d;const[u,h]=l(!1),g=n((()=>"undefined"!=typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:v}=ot(),p=null===(m=e.subMenu)||void 0===m?void 0:m.some((e=>e.key===t)),E=t===e.key;s((()=>{(p||E)&&h(!0)}),[p,E]);const y="boolean"==typeof i?i:u;return a.createElement(w,{as:e.subMenu?void 0:"a","data-is-open":y,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null==r||r(),e.subMenu&&!i?h((e=>!e)):"logout"===e.value?null==o||o():e.link&&(window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(d=null==e?void 0:e.tracking)||void 0===d?void 0:d.action)||"","data-event-label":g},a.createElement(P,{"data-active":E},e.icon,a.createElement(Re,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:E?"helloSites"===c?"hb.6":"mb.6":"gray.8"},v(e.key)),e.subMenu&&a.createElement(_,{"data-is-open":y},a.createElement(yt,{width:14}))),e.subMenu&&a.createElement(M,null,e.subMenu.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:t,onLogout:o,siteType:c})))))},Yt=({isOpen:e,userInfo:t,closePopup:l,siteType:n="helloSites",dispatchLogout:i})=>a.createElement(N,{"data-open":e},a.createElement("div",{className:"popup-content"},a.createElement(qt,{siteType:n,onLogout:()=>{i&&(i(),l())},userInfo:t}))),Qt=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:l,siteType:n="helloSites"})=>{const{t:i}=ot();return s((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(dt,null,a.createElement(at,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:Ue.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement(L,null,"helloSites"===n&&a.createElement("img",{src:Ue.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,i("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,i("logout.popup.ask2")),a.createElement(B,{siteType:n},a.createElement(ft,{className:"logout-button",color:"tertiary",size:"lg",onClick:l},i("logout.popup.button.logout")),a.createElement(ft,{className:"cancel-button",color:"primary",size:"lg",onClick:t},i("logout.popup.button.cancel"))))))},Jt=({userInfo:e,siteType:n,onLoginClick:i,SSO_URL:o,currentUrl:r,isMinifyLogin:c,onLogout:m,style:d,isLoading:g,locale:v})=>{const{t:p}=ot(),[E,y]=l(!1),f=(null==e?void 0:e.name)||(null==e?void 0:e.username),[b,C]=l(!1);s((()=>{C(!0)}),[]);const{containerRef:k,onContainerFocus:w,onContainerBlur:P,onButtonMouseDown:_,onClose:M}=St();return g?a.createElement(h,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?a.createElement(a.Fragment,null,a.createElement(T,{ref:k,style:d,tabIndex:0,onBlur:P,onFocus:()=>{var e;w();const t=null===(e=k.current)||void 0===e?void 0:e.querySelector("#desktop-sticky-header .hhgcomp-navprofilebutton-popup");if(t){const e=`calc(100vh - ${t.getBoundingClientRect().top}px)`;t.setAttribute("style",`max-height: ${e};`)}}},a.createElement("div",{onMouseDown:_},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(u,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===n?gt.mbColors.pink:gt.colors.secondaryBase,placeholderText:f&&f.length?f[0].toUpperCase():"A"})),a.createElement(Yt,{dispatchLogout:()=>{M(),y(!0)},isOpen:!1,closePopup:M,siteType:n,userInfo:e})),a.createElement(Qt,{openLogoutPopup:E,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),y(!1)},siteType:n,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){y(!1),document.body.classList.toggle("noscroll",!1),yield m()}))})):a.createElement(A,{style:Object.assign({textDecoration:"none"},d),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:b?void 0:Ke(`${o}?returnUrl=${r}`),"data-site-type":n},c?a.createElement(x,{onClick:i},a.createElement("img",{src:Ue.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===n&&(v===ut.Indonesia||v===ut.PhilippinesTagalog||v===ut.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:Ue.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):a.createElement(h,{className:"mobile-only",size:"sm",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},p("navigation.loginJoin"))),"marryBaby"===n&&a.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},a.createElement(Re,{size:"p3",color:gt.mbColors.pink},p("navigation.loginJoin"))),a.createElement(h,{className:"login-btn",size:"md",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22})},p("navigation.loginJoin"))))};var Xt="spdlGfq",ea="vgS16jX";const ta=({onCareHeaderClick:e,currentUrl:t,careUrlFe:l,btnName:n})=>e?a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):a.createElement("a",{href:l,className:`${ea} care-button no-replace-click`},a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var aa="y5VJdvw",la="oVhOSCy",na="pX8OXTM";function ia({className:e}){return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function oa({siteType:e,enableSearch:t,className:l}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?Ue.getAssetPath("hamburgerMenuNewWithSearch.svg"):Ue.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:"home",className:l,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:l},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const sa=()=>{const{locale:e,configs:{statics:t},siteType:l}=r(H),n=st(),{t:i}=ot();return a.createElement(Ct,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?i("navigation.search.input.placeholder"):i("home.search",{site:Ge[e||"en-PH"]?Ge[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(S,null))})};var ra="wnUb-dV",ca="cjbOxWe",ma="gB4rp89";const da=({item:e,menu:t})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:s}=St({allowBgScroll:!0}),r=Pt();return!e.popupType&&e.link?a.createElement(ua,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ca},"care"===e.id&&a.createElement("div",{className:ma},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):a.createElement(ua,{isNew:e.isNew},a.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:ca},"care"===e.id&&a.createElement("a",{className:ma,href:Ke(e.link+"/")},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&a.createElement("div",{className:ra},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},a.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),a.isValidElement(t)?a.cloneElement(t,{onClose:s}):null))},ua=({isNew:e,children:t})=>{const{t:l}=ot();return e?a.createElement(wt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},ha=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:l,onClosePopup:n,menuItems:i,headingTitle:o,activeItem:s})=>{const{siteType:c}=r(H);return a.createElement(j,null,a.createElement($,null,a.createElement(kt,{tag:"marryBaby"===c?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(F,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,"data-active":e.id&&e.id===s,href:i},!Nt(i)&&{target:"_blank"},{"data-theme":c,key:t,onClick:n}),a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),a.createElement(ua,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(O,null,a.createElement("img",{src:Ue.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(R,{"data-theme":c,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(I,{onClick:n,"data-theme":c,"data-is-heading-category":!1},t,a.createElement(D,null,a.createElement("img",{className:"svg",src:"marryBaby"===c?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},ga=({item:e,index:t=0})=>{var l;const{t:n}=ot(),{locale:i,configs:{statics:o}}=r(H);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(l=bt[i])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},a.createElement("img",{src:Ue.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(V,null,a.createElement(z,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(Z,null,a.createElement(G,null,e.name),a.createElement(W,null,e.description),a.createElement(q,null,n("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},va=({title:e,link:t,description:l,cta:n,icon:i})=>{const{siteType:o}=r(H);return a.createElement(K,{"data-theme":o},a.createElement(Y,null,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("navMBSpotlightBgNoData.svg"):Ue.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Q,null,i&&a.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(J,null,e),l&&a.createElement(X,null,l),n&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(ft,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},pa=({title:e,viewMore:t,children:l,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(H);return a.createElement(ee,null,a.createElement(te,null,a.createElement(kt,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(ae,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},Ea=({spotlights:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{siteType:n}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(le,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(ga,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(ft,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):a.createElement(va,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:t,cta:l("home.navigator.menu.care.homeButton"),icon:Ue.getAssetPath("community.svg")}))},ya=({item:e,index:t=0})=>e?a.createElement(ne,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement(ie,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(oe,null,e.title)):null,fa=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(se,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ya,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(va,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:t,cta:l("home.navigator.menu.category.noDatas.cta"),icon:Ue.getAssetPath("Spotlight.svg")}))},ba=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(H),{t:l}=ot();return a.createElement(pa,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ye(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(re,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ce,{index:t,post:e,key:e.id})))):a.createElement(va,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:Ue.getAssetPath("community.svg")}))},Ca=({item:e,index:t=0})=>e?a.createElement(me,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},a.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),a.createElement(Re,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,ka=({helpfulUrls:e=[]})=>{const{t:t}=ot();return e.length?a.createElement(pa,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?a.createElement(de,null,null==e?void 0:e.slice(0,5).map(((e,t)=>a.createElement(Ca,{key:t,index:t,item:e})))):a.createElement(a.Fragment,null)):null},wa=({item:e,index:t=0})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(ue,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},a.createElement("img",{src:Ue.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(he,null,a.createElement(ge,null,e.title),a.createElement(ve,null,e.subtitle),a.createElement(pe,null,l("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Ee,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Pa=({item:e,index:t=0,color:l})=>{const{t:n}=ot(),{configs:{statics:i}}=r(H);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>a.createElement(be,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>a.createElement(Ce,null,a.createElement(ke,null,a.createElement(we,null,e.title),a.createElement(Pe,null,e.subtitle)),a.createElement(_e,null,a.createElement("div",{className:"mobile-only"},n("home.seeMore")),a.createElement("img",{src:Ue.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(ye,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":l},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},a.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),a.createElement("img",{src:Ue.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(fe,null,a.createElement("div",{className:"mobile-only"},s()),a.createElement("div",{className:"desktop-only"},c())),a.createElement("div",{className:"mobile-only"},c()),a.createElement("div",{className:"desktop-only"},s()))},_a=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:l}=ot(),n=["pink","orange","green"],{siteType:i}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement(Me,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?a.createElement(Pa,{key:t,index:t,item:e,color:n[t]}):a.createElement(wa,{key:t,index:t,item:e})))),0===t.length&&a.createElement(va,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:Ue.getAssetPath("community.svg")}))},Ma=({closePopup:e,menuItems:t=[]})=>{var l,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m,ecom:d},activeMenuService:u,configs:{statics:h,enableSearchBar:g},locale:v}=r(H),{t:p}=ot();return a.createElement(Ne,{id:"categories-menu"},g?a.createElement(Le,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},a.createElement(sa,null)):null,a.createElement(Be,null,a.createElement(ha,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:u}),"categories"===u&&a.createElement(fa,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}/spotlight/`}),"tools"===u&&a.createElement(_a,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}${(null===(l=We[v])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&a.createElement(Ea,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=bt[v])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&a.createElement(ba,{spotlights:null==m?void 0:m.spotlights}),"ecom"===u&&a.createElement(ka,{helpfulUrls:null==d?void 0:d.helpfulUrls})))},Na=({menuItems:e})=>{const{siteType:t,configs:{enableSearchBar:l}}=r(H),{containerRef:n,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:s,onClose:c}=St();return a.createElement(Ht,{mediaQueryKey:"mbDown"},a.createElement("header",{className:aa},a.createElement("div",{className:la,ref:n,role:"button",tabIndex:0,onBlur:o,onFocus:i},a.createElement("div",{className:na,onMouseDown:s,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(ia,{className:"mobile-close-icon"}),a.createElement(oa,{siteType:t,enableSearch:l,className:"mobile-hamburger-icon"})),a.createElement(Ma,{menuItems:e,closePopup:c}))))},La=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>La(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Ba=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Ta=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(l=e.object_id)||void 0===l?void 0:l.name)||"",name:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},Aa=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(l=null==e?void 0:e.object_id)||void 0===l?void 0:l.logo)||"",description:(null===(n=e.object_id)||void 0===n?void 0:n.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},xa=(e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+vt(Te.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${qe[e]}`})),Ha=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=bt[a])||void 0===l?void 0:l.ALL}/${(null===(n=bt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},Sa=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},ja=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0};var $a="q3nL5cp",Fa="_2DNf80G",Oa="Q-glX-n";const Ra=({onClosePopup:e})=>a.createElement("div",{className:`${Oa} close-btn`,onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Ia=({onClosePopup:e,isDisplay:t,children:l,isNavMenu:n,hideCloseBtn:i})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},a.createElement(_t,null,!i&&a.createElement("div",{className:Fa},a.createElement(Ra,{onClosePopup:e})),a.createElement(_t,{className:$a},l))),Da=({careSpecialties:e=[],isOpen:t,onClose:l,spotlights:n=[]})=>{var i;const{t:o}=ot(),{locale:s,configs:{statics:c}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:t,isNavMenu:!0},a.createElement(ha,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ha({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(Ea,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(i=bt[s])||void 0===i?void 0:i.SPECIALTIES}/`}))},Ua=({categories:e=[],spotlightsList:t=[],onClose:l,isOpen:n})=>{const{t:i}=ot(),{locale:o,configs:{statics:s}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:n,isNavMenu:!0},a.createElement(ha,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),a.createElement(fa,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},Va=({communities:e=[],onClose:t,isOpen:l,spotlights:n=[]})=>{const{t:i}=ot(),{configs:{statics:o}}=r(H);return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:Ye(o.TOGETHER_URL_FE),UrlFE:Ke(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(ba,{spotlights:n}))},za=({locale:e,onClose:t,isOpen:l,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=ot(),{configs:{statics:c}}=r(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=We[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(_a,{spotlightHealthTools:n,hrefViewMore:m}))},Za=({onTopBarAppears:e,languageMenu:t,menuItems:n,logoComponent:o})=>{var m;const{siteType:d,isMobile:u=!1,locale:h,sitewideBanner:g,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:f,cartNumber:b,configs:{statics:C,enableNavCareBooking:k,enableSearchBar:w},userState:{userInfo:P},onLogout:_,isUserLoading:M}=r(H),{t:N}=ot(),{SSO_URL:L,HOME_PAGE_URL:B}=C,T=!!p,[A,x]=l(!1),S=i(47),j=i(null),$=i(!1),F="helloSites"===d?null===(m=Ge[h])||void 0===m?void 0:m.LOGO_TYPE:d,O="undefined"!=typeof window,R=c(rt((()=>{if(O){if(!j.current)return;const e=j.current.getBoundingClientRect();e.top<=0&&window.scrollY>S.current&&window.scrollY>e.height+20&&!$.current&&($.current=!0,x(!0)),window.scrollY<S.current&&$.current&&($.current=!1,x(!1)),window.scrollY>=0&&(S.current=window.scrollY)}}),200),[]);s((()=>{null==e||e(!A)}),[A]),s((()=>(window.addEventListener("scroll",R,{passive:!0}),()=>{window.removeEventListener("scroll",R)})),[]),s((()=>{u&&R()}),[u]);const I=v&&!!g;return a.createElement(Ae,{"data-site-type":d,"data-sponsored":T,"data-sitewide-banner-shown":I,"data-header-type":"home","data-collapsed":A,"data-is-displayed":!0,id:"site-header",ref:j},g,a.createElement(xe,{"data-site-type":d},a.createElement(He,{"data-site-type":d},a.createElement(Na,{menuItems:n}),o||a.createElement("a",{style:{flexShrink:0},href:B},a.createElement("div",null,a.createElement(it,{style:{display:"flex"},type:F,badge:"id-ID"===h&&a.createElement("img",{src:Ue.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:h,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?a.createElement(Wa,{menuItems:n}):w&&a.createElement(Ga,{siteType:d})),a.createElement(Se,{"data-site-type":d},"marryBaby"===d?w&&a.createElement(Ga,{siteType:d}):a.createElement(Wa,{menuItems:n}),a.createElement(je,null,a.createElement(xt,{count:b,locale:h}),k&&a.createElement(Ht,{mediaQueryKey:"mbUp"},a.createElement(ta,{careUrlFe:C.CARE_URL_FE,currentUrl:y,btnName:N("login.booking"),onCareHeaderClick:E})),t,a.createElement(Jt,{userInfo:P,siteType:d,onLoginClick:f||(()=>{const e=window.location.href;window.location.href=L?Ke(`${L}?returnUrl=${e}`):e}),SSO_URL:Ye(C.SSO_URL),currentUrl:y,onLogout:_,isLoading:M,locale:h})))),p?a.isValidElement(p)?a.cloneElement(p,{isCollapsed:A,locale:h,isMobile:u}):p:null)},Ga=({siteType:e})=>a.createElement(Ht,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(sa,null)),Wa=({menuItems:e})=>{const{siteType:t,locale:l,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(H);return a.createElement(Ht,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement($e,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(da,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(Ua,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?a.createElement(za,{locale:l,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?a.createElement(Va,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?a.createElement(Da,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},qa=e=>{var t,o;const{isMobile:m,locale:d,onTopBarAppears:u,languageOptions:h,sponsorComponent:g,sitewideBanner:v,sitewideBannerShown:p,className:E,logoComponent:y}=e,f=(()=>{const{t:e}=ot(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:i,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:m}}=r(H),d="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:d?Ue.getAssetPath("categories-mb.svg"):Ue.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=We[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:d?Ue.getAssetPath("healthtools-mb.svg"):Ue.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:Ke(m.TOGETHER_URL_FE+"/"),thumbnail:d?Ue.getAssetPath("community-mb.svg"):Ue.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ke(m.HOME_PAGE_URL+"/shop"),thumbnail:Ue.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:Ke("ms-MY"===a?m.HOME_PAGE_URL+"/care/current-location/hospital/":m.HOME_PAGE_URL+"/care"),thumbnail:Ue.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),n}),[a,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(H),{userInfo:a}=t;s((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,C=!!g,k=!!(null===(o=null===(t=null==g?void 0:g.props)||void 0===t?void 0:t.sponsoredBy)||void 0===o?void 0:o.length),{headerRef:w,defaultHeaderHeight:P,headerHeight:_,headerBottom:M}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:o})=>{const r=i(null),[m,d]=l(0),[u,h]=l(64),g=c(Et((()=>{var e,t,a,l;const n=(null===(e=r.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=r.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(d(n),h((null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);s((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),s((()=>{g()}),[o,a,t,e,r.current]);const v=n((()=>{let l=56;return a&&(l+=64),t&&(l+=40,e&&(l+=57)),l}),[o,a,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:u,headerRef:r}})({isShowingSiteWideBanner:b,isSponsored:C,hasSponsoredBanners:k,isMobile:m});return a.createElement(Oe,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":`calc(${_}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":M+"px"},className:E},a.createElement("section",{ref:w},a.createElement(Za,{menuItems:f,onTopBarAppears:u,logoComponent:y,languageMenu:a.createElement(Bt,{languageOptions:h,locale:d})})))},Ka=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(Fe,Object.assign({},t),a.createElement(qa,Object.assign({},t)))},Ya=e=>t(void 0,void 0,void 0,(function*(){var t,a,l,n,i,o,s,r,c,m,d,u,h,g,v,p,E,y,f,b,C,k,w;const P={},_="vi-VN_MB"===e;try{const M="tl-PH"===e?"lang=fil":"";try{const[d,u,h,g]=yield Promise.all([fetch(Ke(`${Xe(e)}/wp-json/api/categories${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${M?"&"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}/favorites${M?"?"+M:""}`)).then((e=>e.json()))]);P.categories={items:(null===(a=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,La))||[],spotlights:(null===(o=null===(i=null===(n=null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,Sa))||void 0===o?void 0:o.filter(ja))||[]},P.healthTools={items:(null===(r=null===(s=null==h?void 0:h.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Ba))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Ba))||[]}}catch(e){}if(_||ze.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(`${et()}/api/v1/community?website_url=https://${qe[e]}`)).then((e=>e.json())),fetch(Ke(`${et()}/api/v1/options?website_url=https://${qe[e]}&meta_key=popular_post`)).then((e=>e.json()))]);P.together={items:(null===(h=null===(u=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===u?void 0:u.map)||void 0===h?void 0:h.call(u,lt))||[],spotlights:(null===(p=null===(v=null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,nt))||[]}}catch(e){}if(Ve.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=0`)).then((e=>e.json())),fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=1`)).then((e=>e.json()))]);P.care={items:(null===(b=null===(f=null===(y=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.setting_menu)||void 0===y?void 0:y.menu_specialty)||void 0===f?void 0:f.map)||void 0===b?void 0:b.call(f,Ta))||[],spotlights:(null===(w=null===(k=null===(C=null==a?void 0:a._data.setting_menu)||void 0===C?void 0:C.menu_hospital)||void 0===k?void 0:k.map)||void 0===w?void 0:w.call(k,Aa))||[]}}catch(e){}}catch(e){console.error(e)}return P})),Qa=e=>t(void 0,void 0,void 0,(function*(){return(yield m("nav-menu-content",(()=>Ya(e||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{Bt as L,Ka as N,qt as P,Qa as a,Qt as b,Jt as c,xa as d,Ya as g,Nt as i};
@@ -1 +1 @@
1
- import e,{useState as t,useRef as o,useEffect as d}from"react";import{u as a}from"./useScrollbarSize-622c2c1a.js";import{createPortal as l}from"react-dom";import{S as c,a as n,b as r}from"./index-5fdbf5bc.js";const s="hhg-modals",m=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},i=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},h=({type:h="lead",closeIcon:u,isOpen:p=!0,onClose:y,children:b,className:g="",animationType:v="slideTop",isStaticBackdrop:f=!1,siteType:_})=>{const[E,w]=t(!1),C=o(null),{width:N}=a();if(!C.current&&E&&(C.current=document.createElement("div")),d((()=>(w(!0),()=>{w(!1),m(),i()})),[]),d((()=>{if(E){const e=(()=>{let e=document.getElementById(s);return e||(e=document.createElement("div"),e.setAttribute("id",s),document.body.append(e)),e})();return e.appendChild(C.current),()=>{e.removeChild(C.current)}}}),[E]),d((()=>{p?document.body.classList.add("hhc-modal-show"):m()}),[p]),d((()=>{p?(document.body.style.overflow="hidden",document.body.style.paddingRight=N+"px",document.body.classList.add("hhc-disabled-scroll")):i()}),[p,N]),!E)return null;const S=["hhg-modal__wrapper",g,v].filter((e=>e)).join(" ");return l(e.createElement(c,{className:S,"data-open":p,"data-type":h},!f&&e.createElement(n,{"data-open":p,onClick:y,"data-type":h}),!f&&"video"===h&&!!u&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),e.createElement(r,{className:"hhg-modal","data-open":p,"data-site-type":_},e.createElement("div",{className:"video"===h?"hhg-modal__video":"hhg-modal__content"},!!u&&"video"!==h&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),b))),C.current)};export{h as M};
1
+ import e,{useState as t,useRef as o,useEffect as d}from"react";import{u as a}from"./useScrollbarSize-30b1bee4.js";import{createPortal as l}from"react-dom";import{S as c,a as n,b as r}from"./index-c70696a6.js";const s="hhg-modals",m=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},i=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},h=({type:h="lead",closeIcon:u,isOpen:p=!0,onClose:y,children:b,className:g="",animationType:v="slideTop",isStaticBackdrop:_=!1,siteType:f})=>{const[E,w]=t(!1),C=o(null),{width:N}=a();if(!C.current&&E&&(C.current=document.createElement("div")),d((()=>(w(!0),()=>{w(!1),m(),i()})),[]),d((()=>{if(E){const e=(()=>{let e=document.getElementById(s);return e||(e=document.createElement("div"),e.setAttribute("id",s),document.body.append(e)),e})();return e.appendChild(C.current),()=>{e.removeChild(C.current)}}}),[E]),d((()=>{p?document.body.classList.add("hhc-modal-show"):m()}),[p]),d((()=>{p?(document.body.style.overflow="hidden",document.body.style.paddingRight=N+"px",document.body.classList.add("hhc-disabled-scroll")):i()}),[p,N]),!E)return null;const S=["hhg-modal__wrapper",g,v].filter((e=>e)).join(" ");return l(e.createElement(c,{className:S,"data-open":p,"data-type":h},!_&&e.createElement(n,{"data-open":p,onClick:y,"data-type":h}),!_&&"video"===h&&!!u&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),e.createElement(r,{className:"hhg-modal","data-open":p,"data-site-type":f},e.createElement("div",{className:"video"===h?"hhg-modal__video":"hhg-modal__content"},!!u&&"video"!==h&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),b))),C.current)};export{h as M};