@hhgtech/hhg-components 1.27.70 → 1.27.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/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.js +1 -1
  6. package/build/core-00fac4a1.js +1 -0
  7. package/build/{dataTransform-e29982c1.js → dataTransform-fb2e9aef.js} +1 -1
  8. package/build/ecom.js +1 -1
  9. package/build/esm/babyGrowth.js +4 -4
  10. package/build/esm/cache.js +1 -1
  11. package/build/esm/care.js +1 -1
  12. package/build/esm/components.js +1 -1
  13. package/build/esm/constants.js +1 -1
  14. package/build/esm/{core-eee94d3a.js → core-fe8e3ac4.js} +1 -1
  15. package/build/esm/{dataTransform-f3652b0a.js → dataTransform-472ab3cb.js} +1 -1
  16. package/build/esm/ecom.js +1 -1
  17. package/build/esm/{fixedBottomAdBlock-7554c3b8.js → fixedBottomAdBlock-85d4c40e.js} +1 -1
  18. package/build/esm/footer.js +1 -1
  19. package/build/esm/gAssets.js +1 -1
  20. package/build/esm/getDynamicHealthTool-0f0a6a55.js +1 -0
  21. package/build/esm/{getSocialList-f6efdc64.js → getSocialList-a9e6accc.js} +1 -1
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n-values/id-ID.js +1 -1
  24. package/build/esm/i18n-values/km-KH.js +1 -1
  25. package/build/esm/i18n-values/ms-MY.js +1 -1
  26. package/build/esm/i18n-values/my-MM.js +1 -1
  27. package/build/esm/i18n-values/th-TH.js +1 -1
  28. package/build/esm/i18n-values/tl-PH.js +1 -1
  29. package/build/esm/i18n-values/zh-TW.js +1 -1
  30. package/build/esm/i18n.js +1 -1
  31. package/build/esm/i18nV2.js +1 -1
  32. package/build/esm/{index-fce73e2c.js → index-07164e0d.js} +1 -1
  33. package/build/esm/{index-14477fd7.js → index-075c02f5.js} +1 -1
  34. package/build/esm/index-1afa0089.js +1 -0
  35. package/build/esm/{index-1ac00718.js → index-1da6924b.js} +2 -2
  36. package/build/esm/{index-dbc51f01.js → index-2271114a.js} +1 -1
  37. package/build/esm/{index-94da7d7a.js → index-24374711.js} +6 -6
  38. package/build/esm/{index-b87b3db3.js → index-2c50f4ad.js} +1 -1
  39. package/build/esm/{index-ef88b50a.js → index-37be0623.js} +1 -1
  40. package/build/esm/{index-56cd242a.js → index-3f7f7771.js} +1 -1
  41. package/build/esm/{index-19124705.js → index-583c5caf.js} +1 -1
  42. package/build/esm/{index-629208cc.js → index-71b07919.js} +1 -1
  43. package/build/esm/{index-4b6c2c38.js → index-74d8cf2c.js} +1 -1
  44. package/build/esm/index-783fd8db.js +1 -0
  45. package/build/esm/{index-20a67ed5.js → index-93383cf3.js} +1 -1
  46. package/build/esm/index-9ae2e2dd.js +1 -0
  47. package/build/esm/{index-9ec58b78.js → index-b0f9c8c2.js} +1 -1
  48. package/build/esm/{index-136d0591.js → index-b88a25a3.js} +1 -1
  49. package/build/esm/{index-56fa0620.js → index-c9209389.js} +1 -1
  50. package/build/esm/{index-6c96ac70.js → index-d754d2c5.js} +1 -1
  51. package/build/esm/{index-83aad691.js → index-d7a14122.js} +1 -1
  52. package/build/esm/{index-8fa42782.js → index-e43a53fe.js} +1 -1
  53. package/build/esm/index.js +1 -1
  54. package/build/esm/index.styled-33c36729.js +50 -0
  55. package/build/esm/{index.styled-99ed9a64.js → index.styled-5459405c.js} +5 -5
  56. package/build/esm/{index.styled-a177c0fc.js → index.styled-bbbc0d87.js} +9 -9
  57. package/build/esm/lead.js +1 -1
  58. package/build/esm/mantine.js +1 -1
  59. package/build/esm/misc.js +1 -1
  60. package/build/esm/navigation.js +1 -1
  61. package/build/esm/onboarding.js +1 -1
  62. package/build/esm/onboardingV2.js +1 -1
  63. package/build/esm/pwg.js +3 -3
  64. package/build/esm/{routing-15bab0c1.js → routing-c886133a.js} +1 -1
  65. package/build/esm/together.js +1 -1
  66. package/build/esm/{types-1ede8733.js → types-073fcde8.js} +1 -1
  67. package/build/esm/{types-659159e3.js → types-14b6fe12.js} +19 -18
  68. package/build/esm/types.js +1 -1
  69. package/build/esm/useHealthToolCache-3b53cefe.js +1 -0
  70. package/build/esm/{useRafState-956d702c.js → useRafState-b29e29b6.js} +1 -1
  71. package/build/esm/{useTranslations-7ca47aa6.js → useTranslations-94a298de.js} +1 -1
  72. package/build/esm/{utils-95f50b85.js → utils-3a82f3b7.js} +1 -1
  73. package/build/esm/{utils-43ce7755.js → utils-6dbfa2e2.js} +1 -1
  74. package/build/esm/vaccination.js +1 -1
  75. package/build/{fixedBottomAdBlock-9da7b320.js → fixedBottomAdBlock-888c0461.js} +1 -1
  76. package/build/footer.js +1 -1
  77. package/build/gAssets.js +1 -1
  78. package/build/getDynamicHealthTool-2491d41c.js +1 -0
  79. package/build/{getSocialList-89fc7cd1.js → getSocialList-56cc0bdd.js} +1 -1
  80. package/build/hooks.js +1 -1
  81. package/build/i18n-values/id-ID.js +1 -1
  82. package/build/i18n-values/km-KH.js +1 -1
  83. package/build/i18n-values/ms-MY.js +1 -1
  84. package/build/i18n-values/my-MM.js +1 -1
  85. package/build/i18n-values/th-TH.js +1 -1
  86. package/build/i18n-values/tl-PH.js +1 -1
  87. package/build/i18n-values/zh-TW.js +1 -1
  88. package/build/i18n.js +1 -1
  89. package/build/i18nV2.js +1 -1
  90. package/build/{index-bbee93dd.js → index-03ced1e7.js} +1 -1
  91. package/build/{index-de4b79e1.js → index-04de4f49.js} +1 -1
  92. package/build/{index-e00f2884.js → index-0b86a969.js} +1 -1
  93. package/build/{index-2f89ac17.js → index-18bf24c4.js} +2 -2
  94. package/build/{index-4a3978e2.js → index-3594cf46.js} +3 -3
  95. package/build/{index-4d3debcc.js → index-4320e812.js} +1 -1
  96. package/build/{index-c952cbc8.js → index-586f414a.js} +1 -1
  97. package/build/{index-c4d63742.js → index-5f1b82f8.js} +1 -1
  98. package/build/{index-2ff3dc9b.js → index-74225755.js} +1 -1
  99. package/build/{index-c6d5103f.js → index-87f1c61a.js} +1 -1
  100. package/build/{index-4dd35f52.js → index-9467210b.js} +2 -2
  101. package/build/{index-71a241c2.js → index-bdb74451.js} +1 -1
  102. package/build/{index-286f3f1f.js → index-c4863fbc.js} +1 -1
  103. package/build/{index-61ca2233.js → index-c67a81fe.js} +1 -1
  104. package/build/index-cc6403bf.js +1 -0
  105. package/build/{index-a30a463c.js → index-d2593989.js} +1 -1
  106. package/build/{index-a77fa3dc.js → index-dcff1800.js} +1 -1
  107. package/build/{index-d42c20df.js → index-e57e3072.js} +1 -1
  108. package/build/{index-5f26cd75.js → index-e6494985.js} +1 -1
  109. package/build/{index-9796fe55.js → index-f5e97467.js} +1 -1
  110. package/build/{index-e8145d84.js → index-fc5ac11f.js} +1 -1
  111. package/build/index.js +1 -1
  112. package/build/index.styled-04c914b8.js +50 -0
  113. package/build/{index.styled-af0521f7.js → index.styled-5de77bed.js} +3 -3
  114. package/build/{index.styled-e140852f.js → index.styled-aeedd2f1.js} +1 -1
  115. package/build/lead.js +1 -1
  116. package/build/mantine.js +1 -1
  117. package/build/misc.js +1 -1
  118. package/build/navigation.js +1 -1
  119. package/build/onboarding.js +1 -1
  120. package/build/onboardingV2.js +1 -1
  121. package/build/pwg.js +1 -1
  122. package/build/{routing-6279db15.js → routing-3f03b7fc.js} +1 -1
  123. package/build/together.js +1 -1
  124. package/build/{types-19554357.js → types-4357b272.js} +2 -1
  125. package/build/{types-5970349c.js → types-bc949777.js} +1 -1
  126. package/build/types.js +1 -1
  127. package/build/{useHealthToolCache-370897a8.js → useHealthToolCache-7cc7bbb4.js} +1 -1
  128. package/build/{useRafState-11b8c397.js → useRafState-af8a4d48.js} +1 -1
  129. package/build/{useTranslations-6431433b.js → useTranslations-f946cddd.js} +1 -1
  130. package/build/{utils-937d5f73.js → utils-5f2e4ada.js} +1 -1
  131. package/build/{utils-d2d88c63.js → utils-b69e0f1b.js} +1 -1
  132. package/build/vaccination.js +1 -1
  133. package/package.json +1 -1
  134. package/build/core-4d8e9583.js +0 -1
  135. package/build/esm/getDynamicHealthTool-7ca54784.js +0 -1
  136. package/build/esm/index-6b2e40f9.js +0 -1
  137. package/build/esm/index-6c68b9ba.js +0 -1
  138. package/build/esm/index-af57521e.js +0 -1
  139. package/build/esm/index.styled-bcf9194a.js +0 -50
  140. package/build/esm/useHealthToolCache-c93a14d3.js +0 -1
  141. package/build/getDynamicHealthTool-1d128d8b.js +0 -1
  142. package/build/index-491c1f7a.js +0 -1
  143. package/build/index.styled-682ff94a.js +0 -50
  144. /package/build/{BMI_BOYS.percentile.monthly-8958a78c.js → BMI_BOYS.percentile.monthly-ce85cbaa.js} +0 -0
  145. /package/build/{BMI_BOYS.percentile.weekly-4b761f4d.js → BMI_BOYS.percentile.weekly-907fe858.js} +0 -0
  146. /package/build/{BMI_BOYS.percentile.yearly-a04bbf54.js → BMI_BOYS.percentile.yearly-53aebdc5.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.monthly-a36ba4d0.js → BMI_BOYS.zscore.monthly-3f8ae54d.js} +0 -0
  148. /package/build/{BMI_BOYS.zscore.weekly-db6fe4d5.js → BMI_BOYS.zscore.weekly-d538296e.js} +0 -0
  149. /package/build/{BMI_BOYS.zscore.yearly-860caeed.js → BMI_BOYS.zscore.yearly-a18a90a9.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.monthly-00df239c.js → BMI_GIRLS.percentile.monthly-a8bfe72c.js} +0 -0
  151. /package/build/{BMI_GIRLS.percentile.weekly-fddb8641.js → BMI_GIRLS.percentile.weekly-0c4f641f.js} +0 -0
  152. /package/build/{BMI_GIRLS.percentile.yearly-22dd5ac8.js → BMI_GIRLS.percentile.yearly-296222bd.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.monthly-cb7fb89f.js → BMI_GIRLS.zscore.monthly-3005d7fb.js} +0 -0
  154. /package/build/{BMI_GIRLS.zscore.weekly-99eb5541.js → BMI_GIRLS.zscore.weekly-882189f3.js} +0 -0
  155. /package/build/{BMI_GIRLS.zscore.yearly-25cae963.js → BMI_GIRLS.zscore.yearly-d5ff80d7.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-f55ff1d5.js → HEAD CIRCUM_BOYS.percentile.monthly-07cdda99.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-544b75f3.js → HEAD CIRCUM_BOYS.percentile.weekly-1a366f96.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-08510bd3.js → HEAD CIRCUM_BOYS.percentile.yearly-d6cf2202.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bbcdb589.js → HEAD CIRCUM_BOYS.zscore.monthly-db5b94ab.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-dc2399a5.js → HEAD CIRCUM_BOYS.zscore.weekly-35b29074.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-069905bc.js → HEAD CIRCUM_BOYS.zscore.yearly-175dc793.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-40dba81c.js → HEAD CIRCUM_GIRLS.percentile.monthly-ea684642.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-69a42032.js → HEAD CIRCUM_GIRLS.percentile.weekly-37333fc8.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-94df5a03.js → HEAD CIRCUM_GIRLS.percentile.yearly-8f027f18.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-628d6922.js → HEAD CIRCUM_GIRLS.zscore.monthly-a89a959c.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6043be39.js → HEAD CIRCUM_GIRLS.zscore.weekly-ee4a111b.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-10a0741e.js → HEAD CIRCUM_GIRLS.zscore.yearly-0ed20f95.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.percentile.monthly-ae009cf1.js → HEIGHT_BOYS.percentile.monthly-1140adef.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.weekly-70d1d360.js → HEIGHT_BOYS.percentile.weekly-3bbf0b1f.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.percentile.yearly-09cf9130.js → HEIGHT_BOYS.percentile.yearly-ae780adf.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.zscore.monthly-2e81862c.js → HEIGHT_BOYS.zscore.monthly-78ed0896.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.weekly-99b3814d.js → HEIGHT_BOYS.zscore.weekly-6ad41d21.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.zscore.yearly-f4613d62.js → HEIGHT_BOYS.zscore.yearly-8776c3ee.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.percentile.monthly-6f60eeb3.js → HEIGHT_GIRLS.percentile.monthly-8e628730.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.weekly-e4a3dbf0.js → HEIGHT_GIRLS.percentile.weekly-01b09969.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.percentile.yearly-ab93e83f.js → HEIGHT_GIRLS.percentile.yearly-af862b58.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.zscore.monthly-4f9524f2.js → HEIGHT_GIRLS.zscore.monthly-fdb87537.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.weekly-964c7c6b.js → HEIGHT_GIRLS.zscore.weekly-a312ee05.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.zscore.yearly-938f9222.js → HEIGHT_GIRLS.zscore.yearly-f9b3d318.js} +0 -0
  180. /package/build/{Onboarding-7b19bc6b.js → Onboarding-6046991e.js} +0 -0
  181. /package/build/{Visible-b1a5edce.js → Visible-8dfac33c.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.percentile.monthly-0dc89eaf.js → WEIGHT_BOYS.percentile.monthly-c7c2cbf5.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.weekly-c6eb47e5.js → WEIGHT_BOYS.percentile.weekly-9551af52.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.percentile.yearly-a2307c60.js → WEIGHT_BOYS.percentile.yearly-87abbcbf.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.zscore.monthly-a0b441e5.js → WEIGHT_BOYS.zscore.monthly-346a63be.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.weekly-19736bd9.js → WEIGHT_BOYS.zscore.weekly-ae0238bd.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.zscore.yearly-6a026f92.js → WEIGHT_BOYS.zscore.yearly-adfb0402.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.percentile.monthly-65ee3fc1.js → WEIGHT_GIRLS.percentile.monthly-85a3a57a.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.weekly-552483f0.js → WEIGHT_GIRLS.percentile.weekly-0be4d3e9.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.percentile.yearly-60565842.js → WEIGHT_GIRLS.percentile.yearly-8d6a8a82.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.zscore.monthly-08000bda.js → WEIGHT_GIRLS.zscore.monthly-d3dd7142.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.weekly-db98eae0.js → WEIGHT_GIRLS.zscore.weekly-6017e0f0.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.zscore.yearly-10466197.js → WEIGHT_GIRLS.zscore.yearly-fb435d58.js} +0 -0
  194. /package/build/{constants-1a96dc83.js → constants-dec7610d.js} +0 -0
  195. /package/build/{cookieHelper-10e61e77.js → cookieHelper-7d5fd567.js} +0 -0
  196. /package/build/{dataTransform-e952e2a6.js → dataTransform-a105042f.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.monthly-0def0e7f.js → BMI_BOYS.percentile.monthly-fe47e6cd.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.percentile.weekly-d9cacdb3.js → BMI_BOYS.percentile.weekly-aa044b48.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.percentile.yearly-736e654f.js → BMI_BOYS.percentile.yearly-fd50bc0e.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.monthly-22409178.js → BMI_BOYS.zscore.monthly-bafb2899.js} +0 -0
  201. /package/build/esm/{BMI_BOYS.zscore.weekly-4161e89c.js → BMI_BOYS.zscore.weekly-7ec736c9.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.zscore.yearly-7b870f69.js → BMI_BOYS.zscore.yearly-f2a39ed3.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.monthly-1760e248.js → BMI_GIRLS.percentile.monthly-0710ab0b.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.percentile.weekly-a6809fee.js → BMI_GIRLS.percentile.weekly-9abed752.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.percentile.yearly-4514fd35.js → BMI_GIRLS.percentile.yearly-04436686.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.monthly-04fe5bf9.js → BMI_GIRLS.zscore.monthly-8725527a.js} +0 -0
  207. /package/build/esm/{BMI_GIRLS.zscore.weekly-0d5957b5.js → BMI_GIRLS.zscore.weekly-38c97231.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.zscore.yearly-705329fc.js → BMI_GIRLS.zscore.yearly-12253d20.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-d5fb461b.js → HEAD CIRCUM_BOYS.percentile.monthly-119dfd3c.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-13620bc6.js → HEAD CIRCUM_BOYS.percentile.weekly-7284d9b1.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-5f34ec92.js → HEAD CIRCUM_BOYS.percentile.yearly-e139f816.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-1ad9297e.js → HEAD CIRCUM_BOYS.zscore.monthly-26daac23.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b2bdca3a.js → HEAD CIRCUM_BOYS.zscore.weekly-c2c564d0.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1baac315.js → HEAD CIRCUM_BOYS.zscore.yearly-a9b1ab42.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-586b16b0.js → HEAD CIRCUM_GIRLS.percentile.monthly-8f19524f.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-0bae6048.js → HEAD CIRCUM_GIRLS.percentile.weekly-6cdaeadb.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-8fac6642.js → HEAD CIRCUM_GIRLS.percentile.yearly-649c05a6.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-25a08afc.js → HEAD CIRCUM_GIRLS.zscore.monthly-3bcbed96.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-23331b57.js → HEAD CIRCUM_GIRLS.zscore.weekly-e0c17fa2.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b29c6ebf.js → HEAD CIRCUM_GIRLS.zscore.yearly-ee6da83b.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1dbf1260.js → HEIGHT_BOYS.percentile.monthly-fa7c526e.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-d25d7b8f.js → HEIGHT_BOYS.percentile.weekly-085d6a9f.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-1291131e.js → HEIGHT_BOYS.percentile.yearly-d6aaab6f.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-51960331.js → HEIGHT_BOYS.zscore.monthly-da391c1b.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-7cea1500.js → HEIGHT_BOYS.zscore.weekly-bb540454.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f0a1e6ce.js → HEIGHT_BOYS.zscore.yearly-348b3816.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-bb5ef5bb.js → HEIGHT_GIRLS.percentile.monthly-b51d0fd6.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8e15eef2.js → HEIGHT_GIRLS.percentile.weekly-994e98db.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-6645f1ca.js → HEIGHT_GIRLS.percentile.yearly-c75f410e.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-dc5bf23c.js → HEIGHT_GIRLS.zscore.monthly-e7264d3b.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3f88b5a2.js → HEIGHT_GIRLS.zscore.weekly-0f8554b6.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-bdcbd5e0.js → HEIGHT_GIRLS.zscore.yearly-2f3f3a34.js} +0 -0
  233. /package/build/esm/{Onboarding-17999cc6.js → Onboarding-232ac075.js} +0 -0
  234. /package/build/esm/{Visible-1cd4fcba.js → Visible-39409091.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-d038d535.js → WEIGHT_BOYS.percentile.monthly-2a8bb322.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-43211215.js → WEIGHT_BOYS.percentile.weekly-25425843.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-c78ab472.js → WEIGHT_BOYS.percentile.yearly-4cc9d801.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e0a44abc.js → WEIGHT_BOYS.zscore.monthly-dccd7084.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b0383e3c.js → WEIGHT_BOYS.zscore.weekly-c494ae68.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-56dacf94.js → WEIGHT_BOYS.zscore.yearly-6a7fcff9.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-942387b6.js → WEIGHT_GIRLS.percentile.monthly-0cc1fb2a.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-aae75a15.js → WEIGHT_GIRLS.percentile.weekly-9c40d0ba.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-eb71ec38.js → WEIGHT_GIRLS.percentile.yearly-88a45f13.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-8b5c3c06.js → WEIGHT_GIRLS.zscore.monthly-bc332015.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-0795a68b.js → WEIGHT_GIRLS.zscore.weekly-46c702bd.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-fe7f2f80.js → WEIGHT_GIRLS.zscore.yearly-8358d95b.js} +0 -0
  247. /package/build/esm/{constants-f6df1426.js → constants-454ca790.js} +0 -0
  248. /package/build/esm/{cookieHelper-243ea413.js → cookieHelper-bf990dc8.js} +0 -0
  249. /package/build/esm/{dataTransform-36b31b51.js → dataTransform-b313aa54.js} +0 -0
  250. /package/build/esm/{index-171cb1de.js → index-747533b3.js} +0 -0
  251. /package/build/esm/{isProduction-f9284e0d.js → isProduction-51e5a882.js} +0 -0
  252. /package/build/esm/{localizeNumberFormat-891fddd2.js → localizeNumberFormat-1db9658b.js} +0 -0
  253. /package/build/esm/{normalizeLink-5c3d96d1.js → normalizeLink-01dd46d6.js} +0 -0
  254. /package/build/esm/{paths-d8677095.js → paths-2551a89f.js} +0 -0
  255. /package/build/esm/{screenSizeContext-c836ee25.js → screenSizeContext-2fd9933a.js} +0 -0
  256. /package/build/esm/{theme-72c4ec13.js → theme-3f5fb9b4.js} +0 -0
  257. /package/build/esm/{translationsContext-c72ee6fa.js → translationsContext-8e27754a.js} +0 -0
  258. /package/build/esm/{tslib.es6-d8c90a45.js → tslib.es6-c990ebbd.js} +0 -0
  259. /package/build/esm/{types-ab2c0f6a.js → types-59994293.js} +0 -0
  260. /package/build/esm/{useIsInit-392f39dd.js → useIsInit-399900be.js} +0 -0
  261. /package/build/esm/{useOutsideClick-1cd3fb0a.js → useOutsideClick-93403663.js} +0 -0
  262. /package/build/esm/{useScrollbarSize-8565e51f.js → useScrollbarSize-85d86621.js} +0 -0
  263. /package/build/esm/{useUniqueId-3c703513.js → useUniqueId-d2edd2de.js} +0 -0
  264. /package/build/{index-b1647eb2.js → index-484cc895.js} +0 -0
  265. /package/build/{isProduction-a9b4a078.js → isProduction-6f51bfd8.js} +0 -0
  266. /package/build/{localizeNumberFormat-5ef4e484.js → localizeNumberFormat-6c838ca4.js} +0 -0
  267. /package/build/{normalizeLink-50c64691.js → normalizeLink-7adeb83a.js} +0 -0
  268. /package/build/{paths-82fd1623.js → paths-edf8d807.js} +0 -0
  269. /package/build/{screenSizeContext-449c711d.js → screenSizeContext-3bce883f.js} +0 -0
  270. /package/build/{theme-d4afee80.js → theme-2b27c2a9.js} +0 -0
  271. /package/build/{translationsContext-c1c628a8.js → translationsContext-10468cf0.js} +0 -0
  272. /package/build/{tslib.es6-049409d2.js → tslib.es6-cd3b6b6c.js} +0 -0
  273. /package/build/{types-5d92c754.js → types-4777e5c6.js} +0 -0
  274. /package/build/{useIsInit-46fc5c7c.js → useIsInit-f81023ac.js} +0 -0
  275. /package/build/{useOutsideClick-57e6f5a8.js → useOutsideClick-fd083518.js} +0 -0
  276. /package/build/{useScrollbarSize-ed1b21ab.js → useScrollbarSize-b84c486c.js} +0 -0
  277. /package/build/{useUniqueId-4c637d8e.js → useUniqueId-908d46ed.js} +0 -0
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-d8c90a45.js";import t,{useState as a,useEffect as l,useMemo as n,useRef as o,useContext as i,useCallback as s}from"react";import{g as r}from"./core-eee94d3a.js";import{K as c,F as m,E as u,y as d,x as g,P as h,H as v}from"./utils-43ce7755.js";import{S as p,a as E,b as y,c as b,d as f,e as C,f as k,g as w,T as P,N,h as M,i as _,j as A,k as T,l as L,m as S,n as H,o as B,p as x,q as U,r as $,s as I,t as R,u as O,v as j,w as F,x as D,y as z,z as V,A as G,B as W,C as K,D as q,E as Q,F as Y,G as Z,H as J,I as X,J as ee,K as te,L as ae,M as le,O as ne,P as oe,Q as ie,R as se,V as re,W as ce,X as me,Y as ue,Z as de,_ as ge,$ as he,a0 as ve,a1 as pe,a2 as Ee,a3 as ye,a4 as be,a5 as fe,a6 as Ce,a7 as ke,a8 as we,a9 as Pe,aa as Ne,ab as Me,ac as _e,ad as Ae,ae as Te,af as Le,ag as Se,ah as He,ai as Be,aj as xe}from"./index.styled-a177c0fc.js";import{T as Ue}from"./index-6c96ac70.js";import{CommonGAssets as $e}from"./gAssets.js";import{d as Ie,L as Re,S as Oe,U as je,T as Fe,C as De}from"./index-20a67ed5.js";import{n as ze,a as Ve}from"./normalizeLink-5c3d96d1.js";import{c as Ge,b as We,d as Ke}from"./routing-15bab0c1.js";import{P as qe,b as Qe,c as Ye}from"./dataTransform-f3652b0a.js";import{L as Ze}from"./index-83aad691.js";import{u as Je}from"./useTranslations-7ca47aa6.js";import Xe from"lodash/throttle";import{j as et}from"./screenSizeContext-c836ee25.js";import{U as tt,C as at}from"./index-1ac00718.js";import{L as lt}from"./Onboarding-17999cc6.js";import{t as nt}from"./theme-72c4ec13.js";import{g as ot}from"./cookieHelper-243ea413.js";import{I as it}from"./index-629208cc.js";import{B as st}from"./index-56fa0620.js";import{Portal as rt}from"@mantine/core";import"@mantine/dates";import"dayjs";import"styled-components";import"./isProduction-f9284e0d.js";import"@mantine/hooks";import ct from"lodash/debounce";import{L as mt}from"./constants-f6df1426.js";import ut from"string-format";import{a as dt}from"./useUniqueId-3c703513.js";import{I as gt}from"./index-6b2e40f9.js";import{u as ht}from"./useIsInit-392f39dd.js";const vt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},pt=({type:e="square",size:n,avatarImg:o,avatarUrl:i,firstLetter:s,backgroundColor:r,onClick:m,style:u,className:d,width:g,height:h,alt:v})=>{const p=n?vt[n]:void 0,[E,y]=a(!1);l((()=>{if(i){const e=document.createElement("img");e.setAttribute("src",i),e.addEventListener("error",(()=>{y(!0)}))}}),[i,y]);const b=(!i&&!o||E)&&s;return t.createElement(c,{style:Object.assign(Object.assign({},u),{"--size":p?p+"px":void 0,"--width-prop":g?g+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":r}),"data-has-max":!(!g||!h),"data-avatar-type":e,onClick:m,className:d,avatarUrl:i,"data-custom-size":!!n},o,i&&!E&&t.createElement(it,{src:i,alt:v||"avatar"}),b&&s)},Et=["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"],yt=(e="")=>Et.some((t=>new URL(e).origin.endsWith(t))),bt=({options:e,label:l,labelRenderer:n,selected:o,onChange:i,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,u]=a(!1);return t.createElement(t.Fragment,null,t.createElement(p,null,t.createElement(E,{onClick:()=>u((e=>!e))},l||(null==n?void 0:n(m))||null,t.createElement(y,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,a)=>t.createElement(b,{key:a,"data-selected":s&&o===e.value,onClick:t=>{o!==e.value&&(i(e.value),u((e=>!e))),t.stopPropagation()}},t.createElement(Ue,{size:"p3"},e.label),s&&o===e.value&&t.createElement("img",{src:$e.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&t.createElement(f,{onClick:()=>u(!1)}))},ft=({languageOptions:e,locale:a})=>{var l,n;const o=null==e?void 0:e.find((e=>e.locale===a));return(null==e?void 0:e.length)?t.createElement(bt,{options:e,selected:o.value,label:t.createElement(Ct,{locale:a,label:o.label||(null===(n=null===(l=a.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},Ct=({locale:e,label:a,href:l})=>{var n,o,i;return t.createElement(C,{href:l},t.createElement(m,{country:null===(o=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[0]}),t.createElement("span",null,a))},kt=({forceDisplay:e,mediaQueryKey:a,children:l,className:o,style:i})=>{const[s,r]=n((()=>et(a)),[a]);return t.createElement(k,{lowerBound:e?0:s,upperBound:e?0:r,className:o,style:i},l)},wt=e=>{const{allowBgScroll:t}=e||{},a=o();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())}}},Pt=({type:e="lead",closeIcon:a,isOpen:l=!0,onClose:n,children:o,enableAnimation:i=!0,targetAvatar:s,id:r,className:c})=>t.createElement(w,{"data-open":l,"data-type":e,"data-animation":i,"data-target":s,id:r,className:c},t.createElement("div",{className:"popup-content"},!!a&&t.createElement("div",{className:"close-button",onClick:n},a),o)),Nt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Mt="uJQBNNg",_t="TfG3dM5",At="aMtjFNf",Tt="cSz2RR-",Lt="GyFm00F";function St({userInfo:e,onClickMyProfileButton:a,themeName:l="helloSites"}){const{t:o}=Je(),i=n((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return t.createElement("div",{className:Mt,onClick:()=>{a&&a()}},t.createElement(pt,{className:_t,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:i,backgroundColor:"marryBaby"===l?nt.mbColors.pink:nt.colors.secondaryBase}),t.createElement("div",{className:At},t.createElement("div",{className:Tt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),t.createElement("div",{className:Lt,style:{"--bg-hellosites":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${$e.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},o("userProfile.nav.header.viewProfile"))))}var Ht="gn6HmGG",Bt="FCx8FEM",xt="zMiRxaE",Ut="lZ2Z9MQ",$t="rwm-agG",It="qMOscoq";const Rt=({themeName:e,locale:l,onClickItem:o})=>{const[i,s]=a(""),r=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:$e.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:$e.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?s((t=>t?"":e.key)):o&&o(e)}return t.createElement("div",{className:Ht},r.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:i,onClickItem:c,locale:l}))))},Ot=({item:e,openKey:a,onClickItem:l,locale:n})=>{var o;const{t:i}=Je();return(null===(o=e.disableLocale)||void 0===o?void 0:o.includes(n))?null:t.createElement("div",{className:`${Bt} nav-menu-item`,"data-is-open":a===e.key,key:e.key,"data-has-submenu":!!e.subMenu},t.createElement("div",{className:xt,onClick:()=>l(e)},e.icon&&t.createElement("div",{className:Ut,style:{backgroundImage:`url("${e.icon}")`}}),i(e.key),e.subMenu&&t.createElement("div",{className:$t,style:{"--after-bg":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&t.createElement("div",{className:It},e.subMenu.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:a,onClickItem:l,locale:n})))))};var jt="-AZt1au",Ft="IvSIfCI",Dt="eahCJov",zt="XIyViFs",Vt="_4y-O0w3",Gt="kO8iNgD",Wt="a1d4E10",Kt="Tdguxxf",qt="-mOxsaU",Qt="yPeDBNZ";const Yt={helloSites:{member:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Zt=({themeName:e,rank:a="member",numberOfPosts:l=0})=>{const{t:o}=Je(),i=n((()=>{var t,l;return(null===(l=null===(t=Yt[e])||void 0===t?void 0:t[a])||void 0===l?void 0:l.call(t))||""}),[a,e]);return t.createElement("div",{className:Vt,"data-user-rank":a},t.createElement("div",{className:Gt},t.createElement("div",{className:Wt},t.createElement("div",{className:Kt,style:{backgroundImage:`url("${i}")`}}),t.createElement("h3",{className:qt},o(`userProfile.userRank.${a}`)),l>0&&t.createElement("p",{className:Qt},l," ",o("userProfile.nav.header.count.posts")))))},Jt=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=>Jt(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}:{}},Xt=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/"),o=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:o,subtitle:e.subtitle,title:e.title}},ea=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},ta=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},aa=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=mt[a])||void 0===l?void 0:l.ALL}/${(null===(n=mt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},la=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}:{},na=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},oa=({SSO_URL:e,UP_BASEPATH:o="user",themeName:i="helloSites",cardUrls:s=Nt,enableCare:r,enableTogether:c,enableEcom:m,enableMySaved:u,userInfo:d,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:v,onClickMyProfileButton:p,onClickMenuItem:E,onClickLogout:y,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:f=!1,locale:C})=>{const{t:k}=Je(),[w,M]=a(h||0),_="marryBaby"===i;l((()=>{if(d&&void 0===h){const e=ot("hhg_user_token");e&&fetch(ze(((e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+ut(P.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${Ie[e]}`})))(C,_,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,l;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&M((null===(l=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===l?void 0:l.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==d,h,g,_]);const A=n((()=>{let e;return e=_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?r:"myCommunity"===e?c:"myHealth"===e?f:"eCom"===e?m:"mySaved"!==e||u))}),[_,f]),T=n((()=>"marryBaby"===i?null:t.createElement(st,{color:"tertiary",icon:t.createElement("img",{src:$e.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:zt},k("userProfile.nav.menu.logout"))),[i]),L=t=>{window.location.href=ze(`${e}${o}/${t}`)},S=e=>{const t=s[e];v?v(t):L(t)};return d?t.createElement("div",{className:jt,"data-theme":i},t.createElement(St,{userInfo:d,themeName:i,onClickMyProfileButton:()=>{p?p():L("profile")}}),t.createElement(Zt,{themeName:i,rank:"member",numberOfPosts:w}),t.createElement("div",{className:Ft},A.map((e=>t.createElement(N,{className:Dt,key:e,themeName:i,type:e,onClick:S})))),!b&&t.createElement(t.Fragment,null,t.createElement(Rt,{themeName:i,locale:C,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(E?E(e.link):L(e.link))}}),T)):null},ia=({SSO_URL:e,UP_BASEPATH:a,isOpen:l,targetAvatar:n,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,closePopup:m,siteType:u="helloSites",dispatchLogout:d,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v=!1,togetherApiDomain:p,locale:E})=>{const y=t=>{g?g(`/${t}`):e&&(window.location.href=ze(`${e}${a}/${t}`))},b=e=>{y(e),m()};return t.createElement(Pt,{isOpen:l,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},t.createElement(oa,{SSO_URL:e,UP_BASEPATH:a,themeName:u,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,onClickLogout:()=>{d&&(d(),m())},onClickMenuItem:b,onClickNavigationCard:b,onClickMyProfileButton:()=>{y("profile"),m()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v,togetherApiDomain:p,locale:E}))},sa=({openLogoutPopup:e,onCloseHandler:a,onLogoutHandler:n,siteType:o="helloSites"})=>{const{t:i}=Je();return l((()=>{document.body.classList.toggle("noscroll",e)}),[e]),t.createElement(rt,null,t.createElement(qe,{type:"confirm",isOpen:e,closeIcon:t.createElement("img",{src:$e.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:a},t.createElement(M,null,"helloSites"===o&&t.createElement("img",{src:$e.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),t.createElement("h2",null,i("helloSites"===o?"logout.popup.ask1":"logout.popup.ask.mb")),t.createElement("p",null,i("logout.popup.ask2")),t.createElement(_,{siteType:o},t.createElement(st,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},i("logout.popup.button.logout")),t.createElement(st,{className:"cancel-button",color:"primary",size:"lg",onClick:a},i("logout.popup.button.cancel"))))))},ra=({userInfo:n,siteType:o,onLoginClick:i,SSO_URL:s,currentUrl:r,isMinifyLogin:c,enableCare:m,enableTogether:h,enableEcom:v,isUserProfileNavigatorMenuHidden:p,UP_BASEPATH:E,isMyHealthEnabled:y,togetherApiDomain:b,onLogout:f,style:C,userProfileRouterPush:k,isLoading:w,locale:P,enableMySaved:N})=>{const{t:M}=Je(),[_,S]=a(!1),H=(null==n?void 0:n.name)||(null==n?void 0:n.username),[B,x]=a(!1);l((()=>{x(!0)}),[]);const{containerRef:U,onContainerFocus:$,onContainerBlur:I,onButtonMouseDown:R,onClose:O}=wt();return w?t.createElement(u,{size:"sm",color:"transparent",loading:w}):(null==n?void 0:n.id)?t.createElement(t.Fragment,null,t.createElement(A,{ref:U,style:C,tabIndex:0,onBlur:I,onFocus:$},t.createElement("div",{onMouseDown:R},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),t.createElement(d,{size:40,className:"user-avatar",src:null==n?void 0:n.avatar,color:"marryBaby"===o?nt.mbColors.pink:nt.colors.secondaryBase,placeholderText:H&&H.length?H[0].toUpperCase():"A"})),t.createElement(ia,{UP_BASEPATH:E,SSO_URL:s,dispatchLogout:()=>{O(),S(!0)},isOpen:!1,isMyHealthEnabled:y,enableCare:m,enableTogether:h,enableEcom:v,enableMySaved:N,closePopup:O,userInfo:n,siteType:o,isUserProfileNavigatorMenuHidden:p,togetherApiDomain:b,userProfileRouterPush:k,locale:P})),t.createElement(sa,{openLogoutPopup:_,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),S(!1)},siteType:o,onLogoutHandler:()=>e(void 0,void 0,void 0,(function*(){S(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):t.createElement(T,{style:Object.assign({textDecoration:"none"},C),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:B?void 0:ze(`${s}?returnUrl=${r}`),"data-site-type":o},c?t.createElement(L,{onClick:i},t.createElement("img",{src:$e.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):t.createElement(t.Fragment,null,"helloSites"===o&&(P===lt.Indonesia?t.createElement("img",{className:"mobile-only",src:$e.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):t.createElement(u,{className:"mobile-only",size:"sm",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22}),styles:{root:{paddingLeft:"5px",paddingRight:"8px"},leftIcon:{marginRight:"5px"}}},M("navigation.loginJoin"))),"marryBaby"===o&&t.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},t.createElement(g,{size:"p3",color:nt.mbColors.pink},M("navigation.loginJoin"))),t.createElement(u,{className:"login-btn",size:"md",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22})},M("navigation.loginJoin"))))};var ca="spdlGfq",ma="vgS16jX";const ua=({onCareHeaderClick:e,currentUrl:a,careUrlFe:l,btnName:n})=>e?t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):t.createElement("a",{href:l,className:`${ma} care-button no-replace-click`},t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a},n));var da="y5VJdvw",ga="oVhOSCy",ha="pX8OXTM";function va({className:e}){return t.createElement("div",null,t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function pa({siteType:e,type:a,enableSearch:l,className:n}){return"helloSites"===e?t.createElement("div",null,t.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:l?$e.getAssetPath("hamburgerMenuNewWithSearch.svg"):$e.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:a,className:n,loading:"lazy"})):t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},t.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 Ea=()=>{const{locale:e,configs:{statics:a},siteType:l}=i(S),n=dt(),{t:o}=Je();return t.createElement(h,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?o("navigation.search.input.placeholder"):o("home.search",{site:Re[e||"en-PH"]?Re[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${a.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:t.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},t.createElement(H,null))})};var ya="wnUb-dV",ba="cjbOxWe",fa="gB4rp89";const Ca=({item:e,menu:a})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:o,onButtonMouseDown:i,onClose:s}=wt({allowBgScroll:!0}),r=ht();return!e.popupType&&e.link?t.createElement(ka,{isNew:e.isNew},t.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ba},e.name))):t.createElement(ka,{isNew:e.isNew},t.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:o,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:i,className:ba},"care"===e.id&&t.createElement("a",{className:fa,href:ze(e.link+"/")},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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&&t.createElement("div",{className:ya},t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),t.isValidElement(a)?t.cloneElement(a,{onClose:s}):null))},ka=({isNew:e,children:a})=>{const{t:l}=Je();return e?t.createElement(gt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},a):t.createElement(t.Fragment,null,a)},wa=({hrefViewMore:e,titleBtnViewMore:a,UrlFE:l,onClosePopup:n,menuItems:o,headingTitle:s})=>{const{siteType:r}=i(S);return t.createElement(B,null,t.createElement(x,null,t.createElement(v,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},s)),null==o?void 0:o.slice(0,6).map(((e,a)=>{const o=(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 t.createElement(U,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":o,"data-is-heading-category":!1,href:o},!yt(o)&&{target:"_blank"},{"data-theme":r,key:a,onClick:n}),t.createElement("div",{className:"icon"},t.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),t.createElement(ka,{isNew:e.isNew},t.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),t.createElement($,null,t.createElement("img",{src:$e.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),a&&t.createElement(I,{"data-theme":r,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},t.createElement(R,{onClick:n,"data-theme":r,"data-is-heading-category":!1},a,t.createElement(O,null,t.createElement("img",{className:"svg",src:"marryBaby"===r?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},Pa=({item:e,index:a=0})=>{var l;const{t:n}=Je(),{locale:o,configs:{statics:s}}=i(S);if(!e)return null;const r=`${s.CARE_URL_FE}/${null===(l=mt[o])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return t.createElement(j,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${a+1}`,"data-event-label":r},t.createElement("img",{src:$e.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),t.createElement(F,null,t.createElement(D,null,t.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),t.createElement(z,null,t.createElement(V,null,e.name),t.createElement(G,null,e.description),t.createElement(W,null,n("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Na=({title:e,link:a,description:l,cta:n,icon:o})=>{const{siteType:s}=i(S);return t.createElement(K,{"data-theme":s},t.createElement(q,null,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("navMBSpotlightBgNoData.svg"):$e.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(Q,null,o&&t.createElement("img",{src:o,width:64,height:64,loading:"lazy"}))),t.createElement("div",null,e&&t.createElement(Y,null,e),l&&t.createElement(Z,null,l),n&&t.createElement("div",null,t.createElement("a",{href:a},t.createElement(st,{theme:s,className:"survey-contact-submit",size:"md"},n)))))},Ma=({title:e,viewMore:a,children:l,link:n,dataEventAction:o=""})=>{const{siteType:s}=i(S);return t.createElement(J,null,t.createElement(X,null,t.createElement(v,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},e),a&&t.createElement(ee,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":n,href:n,"data-theme":s},a,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},_a=({spotlights:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{siteType:n}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?t.createElement(t.Fragment,null,t.createElement(te,null,null==e?void 0:e.slice(0,3).map(((e,a)=>t.createElement(Pa,{key:a,index:a,item:e})))),t.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},t.createElement("a",{href:a},t.createElement(st,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):t.createElement(Na,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:a,cta:l("home.navigator.menu.care.homeButton"),icon:$e.getAssetPath("community.svg")}))},Aa=({item:e,index:a=0})=>e?t.createElement(ae,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${a+1}`,"data-event-label":e.link},t.createElement(le,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),t.createElement(ne,null,e.title)):null,Ta=({spotlightsList:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:a,dataEventAction:"Spotlight See More Click"},0!==e.length?t.createElement(oe,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(Aa,{key:a,index:a,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):t.createElement(Na,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:a,cta:l("home.navigator.menu.category.noDatas.cta"),icon:$e.getAssetPath("Spotlight.svg")}))},La=({spotlights:e=[]})=>{const{configs:{statics:a}}=i(S),{t:l}=Je();return t.createElement(Ma,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ve(a.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?t.createElement(ie,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(se,{index:a,post:e,key:e.id})))):t.createElement(Na,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${a.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:$e.getAssetPath("community.svg")}))},Sa=({item:e,index:a=0})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return t.createElement(re,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":o},t.createElement("img",{src:$e.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(ce,null,t.createElement(me,null,e.title),t.createElement(ue,null,e.subtitle),t.createElement(de,null,l("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),t.createElement(ge,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ha=({item:e,index:a=0,color:l})=>{const{t:n}=Je(),{configs:{statics:o}}=i(S);if(!e)return null;const s=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0,r=()=>t.createElement(pe,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>t.createElement(Ee,null,t.createElement(ye,null,t.createElement(be,null,e.title),t.createElement(fe,null,e.subtitle)),t.createElement(Ce,null,t.createElement("div",{className:"mobile-only"},n("home.seeMore")),t.createElement("img",{src:$e.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return t.createElement(he,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":s,"data-color":l},t.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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"})),t.createElement("img",{src:$e.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),t.createElement(ve,null,t.createElement("div",{className:"mobile-only"},r()),t.createElement("div",{className:"desktop-only"},c())),t.createElement("div",{className:"mobile-only"},c()),t.createElement("div",{className:"desktop-only"},r()))},Ba=({hrefViewMore:e,spotlightHealthTools:a=[]})=>{const{t:l}=Je(),n=["pink","orange","green"],{siteType:o}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightTools")},0!==a.length&&t.createElement(ke,null,null==a?void 0:a.slice(0,3).map(((e,a)=>"marryBaby"===o?t.createElement(Ha,{key:a,index:a,item:e,color:n[a]}):t.createElement(Sa,{key:a,index:a,item:e})))),0===a.length&&t.createElement(Na,{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:$e.getAssetPath("community.svg")}))},xa=({closePopup:e,menuItems:a=[]})=>{var l,n;const{siteType:o,ssrMenuContent:{categories:s,healthTools:r,care:c,together:m},activeMenuService:u,configs:{statics:d,enableSearchBar:g},locale:h}=i(S),{t:v}=Je();return t.createElement(we,{id:"categories-menu"},g?t.createElement(Pe,{"data-theme":o,onClick:()=>{window.location.href=`${d.HOME_PAGE_URL}/search`}},t.createElement(Ea,null)):null,t.createElement(Ne,null,t.createElement(wa,{UrlFE:d.HOME_PAGE_URL,titleBtnViewMore:v("home.navigator.menuItem.allCategories"),menuItems:a,headingTitle:v("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===u&&t.createElement(Ta,{spotlightsList:(null==s?void 0:s.spotlights)||[],hrefViewMore:`${d.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===u&&t.createElement(Ba,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${d.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(l=Oe[h])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&t.createElement(_a,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${d.CARE_URL_FE}/${null===(n=mt[h])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&t.createElement(La,{spotlights:null==m?void 0:m.spotlights})))},Ua=({type:e="home",menuItems:a})=>{const{siteType:l,configs:{enableSearchBar:n}}=i(S),{containerRef:o,onContainerFocus:s,onContainerBlur:r,onButtonMouseDown:c,onClose:m}=wt();return t.createElement(kt,{mediaQueryKey:"mbDown"},t.createElement("header",{className:da},t.createElement("div",{className:ga,ref:o,role:"button",tabIndex:0,onBlur:r,onFocus:s},t.createElement("div",{className:ha,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},t.createElement(va,{className:"mobile-close-icon"}),t.createElement(pa,{siteType:l,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),t.createElement(xa,{menuItems:a,closePopup:m}))))};var $a="q3nL5cp",Ia="_2DNf80G",Ra="Q-glX-n";const Oa=({onClosePopup:e})=>t.createElement("div",{className:`${Ra} close-btn`,onClick:e},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ja=({onClosePopup:e,isDisplay:a,children:l,isNavMenu:n,hideCloseBtn:o})=>t.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!a,"data-is-nav-menu":!!n},t.createElement(at,null,!o&&t.createElement("div",{className:Ia},t.createElement(Oa,{onClosePopup:e})),t.createElement(at,{className:$a},l))),Fa=({careSpecialties:e=[],isOpen:a,onClose:l,spotlights:n=[]})=>{var o;const{t:s}=Je(),{locale:r,configs:{statics:c}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:a,isNavMenu:!0},t.createElement(wa,{headingTitle:s("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:s("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:aa({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),t.createElement(_a,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(o=mt[r])||void 0===o?void 0:o.SPECIALTIES}/`}))},Da=({categories:e=[],spotlightsList:a=[],onClose:l,isOpen:n})=>{const{t:o}=Je(),{locale:s,configs:{statics:r}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:n,isNavMenu:!0},t.createElement(wa,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:o("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:o("home.navigator.menuItem.healthCategories")}),t.createElement(Ta,{spotlightsList:a,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/spotlight/`}))},za=({communities:e=[],onClose:a,isOpen:l,spotlights:n=[]})=>{const{t:o}=Je(),{configs:{statics:s}}=i(S);return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:Ve(s.TOGETHER_URL_FE),UrlFE:ze(s.TOGETHER_URL_FE),onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),t.createElement(La,{spotlights:n}))},Va=({locale:e,onClose:a,isOpen:l,spotlightHealthTools:n=[],healthTools:o=[]})=>{var s;const{t:r}=Je(),{configs:{statics:c}}=i(S),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(s=Oe[e])||void 0===s?void 0:s.HEALTH_TOOLS)||""}`;return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:a,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:o.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})))}),t.createElement(Ba,{spotlightHealthTools:n,hrefViewMore:m}))},Ga=({onTopBarAppears:e,type:n="home",languageMenu:r,menuItems:c})=>{var m;const{siteType:u,isMobile:d=!1,locale:g,sitewideBanner:h,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:b,configs:{statics:f,enableNavCareBooking:C,enableSearchBar:k,enableNavCare:w,enableProfileMyHealth:P,enableProfileMySaved:N,enableNavTogether:M,enableProfileEcom:_,enableProfileNavigatorMenu:A},userState:{userInfo:T},onLogout:L,userProfileRouterPush:H,isUserLoading:B}=i(S),{t:x}=Je(),{SSO_URL:U,HOME_PAGE_URL:$}=f,I=!!p,[R,O]=a(!1),j=o(47),F=o(null),D=o(!1),z="helloSites"===u?null===(m=Re[g])||void 0===m?void 0:m.LOGO_TYPE:u,V="undefined"!=typeof window,G=s(Xe((()=>{if("home"===n&&V){if(!F.current)return;const e=F.current.getBoundingClientRect();e.top<=0&&window.scrollY>j.current&&window.scrollY>e.height+20&&!D.current&&(D.current=!0,O(!0)),window.scrollY<j.current&&D.current&&(D.current=!1,O(!1)),window.scrollY>=0&&(j.current=window.scrollY)}}),200),[]);l((()=>{null==e||e(!R)}),[R]),l((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),l((()=>{d&&G()}),[d]);const W=v&&!!h;return t.createElement(Me,{"data-site-type":u,"data-sponsored":I,"data-sitewide-banner-shown":W,"data-header-type":n,"data-collapsed":R,"data-with-search-input":"popup-sub-level"!==n,"data-is-displayed":!0,id:"site-header",ref:F},h,t.createElement(_e,{"data-site-type":u},t.createElement(Ae,{"data-site-type":u},t.createElement(Ua,{menuItems:c,type:n}),t.createElement("a",{style:{flexShrink:0},href:$},t.createElement(Te,null,t.createElement(Ze,{style:{display:"flex"},type:z,badge:"id-ID"===g&&t.createElement("img",{src:$e.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===u?t.createElement(Ka,{menuItems:c}):k&&t.createElement(Wa,{siteType:u})),t.createElement(Le,{"data-site-type":u},"marryBaby"===u?k&&t.createElement(Wa,{siteType:u}):t.createElement(Ka,{menuItems:c}),t.createElement(Se,null,C&&t.createElement(kt,{mediaQueryKey:"mbUp"},t.createElement(ua,{careUrlFe:f.CARE_URL_FE,currentUrl:y,btnName:x("login.booking"),onCareHeaderClick:E})),r,t.createElement(ra,{userInfo:T,siteType:u,onLoginClick:b||(()=>{const e=window.location.href;window.location.href=U?ze(`${U}?returnUrl=${e}`):e}),SSO_URL:Ve(f.SSO_URL),currentUrl:y,onLogout:L,UP_BASEPATH:je,isMyHealthEnabled:P,enableCare:w,enableTogether:M,enableEcom:_,enableMySaved:N,togetherApiDomain:Ve(f.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:H,isLoading:B,locale:g})))),p?t.isValidElement(p)?t.cloneElement(p,{isCollapsed:R,locale:g,isMobile:d}):p:null)},Wa=({siteType:e})=>t.createElement(kt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},t.createElement(Ea,null)),Ka=({menuItems:e})=>{const{siteType:a,locale:l,ssrMenuContent:{categories:n,healthTools:o,care:s,together:r}}=i(S);return t.createElement(kt,{mediaQueryKey:"mbUp",style:{height:"100%"}},t.createElement(He,{"data-site-type":a},null==e?void 0:e.map(((e,a)=>t.createElement(Ca,{key:a,item:e,menu:"categories"===e.popupType?t.createElement(Da,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?t.createElement(Va,{locale:l,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?t.createElement(za,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?t.createElement(Fa,{careSpecialties:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):null})))))},qa=e=>{var r,c;const{isMobile:m,locale:u,onTopBarAppears:d,languageOptions:g,sponsorComponent:h,sitewideBanner:v,sitewideBannerShown:p,className:E}=e,y=(()=>{const{t:e}=Je(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:o,enableNavCare:s,enableNavTogether:r,enableNavEcom:c,statics:m}}=i(S),u="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:u?$e.getAssetPath("categories-mb.svg"):$e.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),o&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=Oe[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:u?$e.getAssetPath("healthtools-mb.svg"):$e.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:ze(m.TOGETHER_URL_FE+"/"),thumbnail:u?$e.getAssetPath("community-mb.svg"):$e.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:ze(m.HOME_PAGE_URL+"/shop"),thumbnail:$e.getAssetPath("nav-icons/shop.svg"),popupType:null}),s&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:ze(m.HOME_PAGE_URL+"/care"),thumbnail:$e.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===a?null:"care"}),n}),[a,s,r,c])})();(()=>{const{isFirstLogin:e,userState:t}=i(S),{userInfo:a}=t;l((()=>{(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,f=!!h,C=!!(null===(c=null===(r=null==h?void 0:h.props)||void 0===r?void 0:r.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:k,defaultHeaderHeight:w,headerHeight:P,headerBottom:N}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:i,isMobile:r})=>{const c=o(null),[m,u]=a(0),[d,g]=a(64),h=s(ct((()=>{var e,t,a,l;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(u(n),g((null===(l=c.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);l((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),l((()=>{h()}),[r,i,t,e,c.current]);const v=n((()=>{let a=r?64:69;return i&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,i,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:d,headerRef:c}})({isShowingSiteWideBanner:b,isSponsored:f,hasSponsoredBanners:C,isMobile:m});return t.createElement(xe,{id:"navigation-v2",style:{"--default-header-height":w+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":N+"px"},className:E},t.createElement("section",{ref:k},t.createElement(Ga,{menuItems:y,type:"home",onTopBarAppears:d,languageMenu:t.createElement(ft,{languageOptions:g,locale:u})})))},Qa=e=>{const a=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return t.createElement(Be,Object.assign({},a),t.createElement(qa,Object.assign({},a)))},Ya=t=>e(void 0,void 0,void 0,(function*(){var e,a,l,n,o,i,s,r,c,m,u,d,g,h,v,p,E,y,b,f,C;const k={},w="vi-VN_MB"===t;try{const P="tl-PH"===t?"lang=fil":"";try{const[u,d,g,h]=yield Promise.all([fetch(ze(`${Ge(t)}/wp-json/api/categories${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${P?"&"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}/favorites${P?"?"+P:""}`)).then((e=>e.json()))]);k.categories={items:(null===(a=null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,Jt))||[],spotlights:(null===(i=null===(o=null===(n=null===(l=null==d?void 0:d.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===o?void 0:o.call(n,la))||void 0===i?void 0:i.filter(na))||[]},k.healthTools={items:(null===(r=null===(s=null==g?void 0:g.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Xt))||[],spotlights:(null===(m=null===(c=null==h?void 0:h.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Xt))||[]}}catch(e){}if(w||Fe.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(`${We()}/api/v1/community?website_url=https://${Ie[t]}`)).then((e=>e.json())),fetch(ze(`${We()}/api/v1/options?website_url=https://${Ie[t]}&meta_key=popular_post`)).then((e=>e.json()))]);k.together={items:(null===(g=null===(d=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.communities)||void 0===d?void 0:d.map)||void 0===g?void 0:g.call(d,Qe))||[],spotlights:(null===(p=null===(v=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,Ye))||[]}}catch(e){}if(De.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(Ke()+`/api/specialties?_ishome=1&site=${Ie[t]}`)).then((e=>e.json())),fetch(ze(Ke()+`/api/search/?site=${Ie[t]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);k.care={items:(null===(b=null===(y=null===(E=null==e?void 0:e._data)||void 0===E?void 0:E.specialties)||void 0===y?void 0:y.map)||void 0===b?void 0:b.call(y,ea))||[],spotlights:(null===(C=null===(f=null==a?void 0:a._data.searches)||void 0===f?void 0:f.map)||void 0===C?void 0:C.call(f,ta))||[]}}catch(e){}}catch(e){console.error(e)}return k})),Za=t=>e(void 0,void 0,void 0,(function*(){return(yield r("nav-menu-content",(()=>Ya(t||"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{pt as A,ft as L,Qa as N,ia as P,oa as U,Za as a,St as b,Zt as c,sa as d,ra as e,Ya as g,yt as i};
1
+ import{a as e}from"./tslib.es6-c990ebbd.js";import t,{useState as a,useEffect as l,useMemo as n,useRef as o,useContext as i,useCallback as s}from"react";import{g as r}from"./core-fe8e3ac4.js";import{K as c,F as m,E as d,y as u,x as g,P as h,H as v}from"./utils-6dbfa2e2.js";import{S as p,a as E,b as y,c as b,d as f,e as C,f as k,g as w,T as P,N,h as M,i as _,j as A,k as T,l as L,m as S,n as H,o as B,p as x,q as U,r as $,s as I,t as R,u as O,v as j,w as F,x as D,y as z,z as V,A as G,B as W,C as K,D as q,E as Q,F as Y,G as Z,H as J,I as X,J as ee,K as te,L as ae,M as le,O as ne,P as oe,Q as ie,R as se,V as re,W as ce,X as me,Y as de,Z as ue,_ as ge,$ as he,a0 as ve,a1 as pe,a2 as Ee,a3 as ye,a4 as be,a5 as fe,a6 as Ce,a7 as ke,a8 as we,a9 as Pe,aa as Ne,ab as Me,ac as _e,ad as Ae,ae as Te,af as Le,ag as Se,ah as He,ai as Be,aj as xe}from"./index.styled-bbbc0d87.js";import{T as Ue}from"./index-d754d2c5.js";import{CommonGAssets as $e}from"./gAssets.js";import{d as Ie,L as Re,S as Oe,U as je,T as Fe,C as De}from"./index-93383cf3.js";import{n as ze,a as Ve}from"./normalizeLink-01dd46d6.js";import{c as Ge,b as We,d as Ke}from"./routing-c886133a.js";import{P as qe,b as Qe,c as Ye}from"./dataTransform-472ab3cb.js";import{L as Ze}from"./index-d7a14122.js";import{u as Je}from"./useTranslations-94a298de.js";import Xe from"lodash/throttle";import{j as et}from"./screenSizeContext-2fd9933a.js";import{U as tt,C as at}from"./index-1da6924b.js";import{L as lt}from"./Onboarding-232ac075.js";import{t as nt}from"./theme-3f5fb9b4.js";import{g as ot}from"./cookieHelper-bf990dc8.js";import{I as it}from"./index-71b07919.js";import{B as st}from"./index-c9209389.js";import{Portal as rt}from"@mantine/core";import"@mantine/dates";import"dayjs";import"styled-components";import"./isProduction-51e5a882.js";import"@mantine/hooks";import ct from"lodash/debounce";import{L as mt}from"./constants-454ca790.js";import dt from"string-format";import{a as ut}from"./useUniqueId-d2edd2de.js";import{I as gt}from"./index-9ae2e2dd.js";import{u as ht}from"./useIsInit-399900be.js";const vt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},pt=({type:e="square",size:n,avatarImg:o,avatarUrl:i,firstLetter:s,backgroundColor:r,onClick:m,style:d,className:u,width:g,height:h,alt:v})=>{const p=n?vt[n]:void 0,[E,y]=a(!1);l((()=>{if(i){const e=document.createElement("img");e.setAttribute("src",i),e.addEventListener("error",(()=>{y(!0)}))}}),[i,y]);const b=(!i&&!o||E)&&s;return t.createElement(c,{style:Object.assign(Object.assign({},d),{"--size":p?p+"px":void 0,"--width-prop":g?g+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":r}),"data-has-max":!(!g||!h),"data-avatar-type":e,onClick:m,className:u,avatarUrl:i,"data-custom-size":!!n},o,i&&!E&&t.createElement(it,{src:i,alt:v||"avatar"}),b&&s)},Et=["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"],yt=(e="")=>Et.some((t=>new URL(e).origin.endsWith(t))),bt=({options:e,label:l,labelRenderer:n,selected:o,onChange:i,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,d]=a(!1);return t.createElement(t.Fragment,null,t.createElement(p,null,t.createElement(E,{onClick:()=>d((e=>!e))},l||(null==n?void 0:n(m))||null,t.createElement(y,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,a)=>t.createElement(b,{key:a,"data-selected":s&&o===e.value,onClick:t=>{o!==e.value&&(i(e.value),d((e=>!e))),t.stopPropagation()}},t.createElement(Ue,{size:"p3"},e.label),s&&o===e.value&&t.createElement("img",{src:$e.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&t.createElement(f,{onClick:()=>d(!1)}))},ft=({languageOptions:e,locale:a})=>{var l,n;const o=null==e?void 0:e.find((e=>e.locale===a));return(null==e?void 0:e.length)?t.createElement(bt,{options:e,selected:o.value,label:t.createElement(Ct,{locale:a,label:o.label||(null===(n=null===(l=a.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},Ct=({locale:e,label:a,href:l})=>{var n,o,i;return t.createElement(C,{href:l},t.createElement(m,{country:null===(o=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[0]}),t.createElement("span",null,a))},kt=({forceDisplay:e,mediaQueryKey:a,children:l,className:o,style:i})=>{const[s,r]=n((()=>et(a)),[a]);return t.createElement(k,{lowerBound:e?0:s,upperBound:e?0:r,className:o,style:i},l)},wt=e=>{const{allowBgScroll:t}=e||{},a=o();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())}}},Pt=({type:e="lead",closeIcon:a,isOpen:l=!0,onClose:n,children:o,enableAnimation:i=!0,targetAvatar:s,id:r,className:c})=>t.createElement(w,{"data-open":l,"data-type":e,"data-animation":i,"data-target":s,id:r,className:c},t.createElement("div",{className:"popup-content"},!!a&&t.createElement("div",{className:"close-button",onClick:n},a),o)),Nt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Mt="uJQBNNg",_t="TfG3dM5",At="aMtjFNf",Tt="cSz2RR-",Lt="GyFm00F";function St({userInfo:e,onClickMyProfileButton:a,themeName:l="helloSites"}){const{t:o}=Je(),i=n((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return t.createElement("div",{className:Mt,onClick:()=>{a&&a()}},t.createElement(pt,{className:_t,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:i,backgroundColor:"marryBaby"===l?nt.mbColors.pink:nt.colors.secondaryBase}),t.createElement("div",{className:At},t.createElement("div",{className:Tt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),t.createElement("div",{className:Lt,style:{"--bg-hellosites":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${$e.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},o("userProfile.nav.header.viewProfile"))))}var Ht="gn6HmGG",Bt="FCx8FEM",xt="zMiRxaE",Ut="lZ2Z9MQ",$t="rwm-agG",It="qMOscoq";const Rt=({themeName:e,locale:l,onClickItem:o})=>{const[i,s]=a(""),r=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:$e.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:$e.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?s((t=>t?"":e.key)):o&&o(e)}return t.createElement("div",{className:Ht},r.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:i,onClickItem:c,locale:l}))))},Ot=({item:e,openKey:a,onClickItem:l,locale:n})=>{var o;const{t:i}=Je();return(null===(o=e.disableLocale)||void 0===o?void 0:o.includes(n))?null:t.createElement("div",{className:`${Bt} nav-menu-item`,"data-is-open":a===e.key,key:e.key,"data-has-submenu":!!e.subMenu},t.createElement("div",{className:xt,onClick:()=>l(e)},e.icon&&t.createElement("div",{className:Ut,style:{backgroundImage:`url("${e.icon}")`}}),i(e.key),e.subMenu&&t.createElement("div",{className:$t,style:{"--after-bg":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&t.createElement("div",{className:It},e.subMenu.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:a,onClickItem:l,locale:n})))))};var jt="-AZt1au",Ft="IvSIfCI",Dt="eahCJov",zt="XIyViFs",Vt="_4y-O0w3",Gt="kO8iNgD",Wt="a1d4E10",Kt="Tdguxxf",qt="-mOxsaU",Qt="yPeDBNZ";const Yt={helloSites:{member:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Zt=({themeName:e,rank:a="member",numberOfPosts:l=0})=>{const{t:o}=Je(),i=n((()=>{var t,l;return(null===(l=null===(t=Yt[e])||void 0===t?void 0:t[a])||void 0===l?void 0:l.call(t))||""}),[a,e]);return t.createElement("div",{className:Vt,"data-user-rank":a},t.createElement("div",{className:Gt},t.createElement("div",{className:Wt},t.createElement("div",{className:Kt,style:{backgroundImage:`url("${i}")`}}),t.createElement("h3",{className:qt},o(`userProfile.userRank.${a}`)),l>0&&t.createElement("p",{className:Qt},l," ",o("userProfile.nav.header.count.posts")))))},Jt=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=>Jt(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}:{}},Xt=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/"),o=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:o,subtitle:e.subtitle,title:e.title}},ea=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},ta=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},aa=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=mt[a])||void 0===l?void 0:l.ALL}/${(null===(n=mt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},la=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}:{},na=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},oa=({SSO_URL:e,UP_BASEPATH:o="user",themeName:i="helloSites",cardUrls:s=Nt,enableCare:r,enableTogether:c,enableEcom:m,enableMySaved:d,userInfo:u,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:v,onClickMyProfileButton:p,onClickMenuItem:E,onClickLogout:y,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:f=!1,locale:C})=>{const{t:k}=Je(),[w,M]=a(h||0),_="marryBaby"===i;l((()=>{if(u&&void 0===h){const e=ot("hhg_user_token");e&&fetch(ze(((e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+dt(P.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${Ie[e]}`})))(C,_,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,l;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&M((null===(l=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===l?void 0:l.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==u,h,g,_]);const A=n((()=>{let e;return e=_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?r:"myCommunity"===e?c:"myHealth"===e?f:"eCom"===e?m:"mySaved"!==e||d))}),[_,f]),T=n((()=>"marryBaby"===i?null:t.createElement(st,{color:"tertiary",icon:t.createElement("img",{src:$e.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:zt},k("userProfile.nav.menu.logout"))),[i]),L=t=>{window.location.href=ze(`${e}${o}/${t}`)},S=e=>{const t=s[e];v?v(t):L(t)};return u?t.createElement("div",{className:jt,"data-theme":i},t.createElement(St,{userInfo:u,themeName:i,onClickMyProfileButton:()=>{p?p():L("profile")}}),t.createElement(Zt,{themeName:i,rank:"member",numberOfPosts:w}),t.createElement("div",{className:Ft},A.map((e=>t.createElement(N,{className:Dt,key:e,themeName:i,type:e,onClick:S})))),!b&&t.createElement(t.Fragment,null,t.createElement(Rt,{themeName:i,locale:C,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(E?E(e.link):L(e.link))}}),T)):null},ia=({SSO_URL:e,UP_BASEPATH:a,isOpen:l,targetAvatar:n,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:u,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v=!1,togetherApiDomain:p,locale:E})=>{const y=t=>{g?g(`/${t}`):e&&(window.location.href=ze(`${e}${a}/${t}`))},b=e=>{y(e),m()};return t.createElement(Pt,{isOpen:l,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},t.createElement(oa,{SSO_URL:e,UP_BASEPATH:a,themeName:d,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,onClickLogout:()=>{u&&(u(),m())},onClickMenuItem:b,onClickNavigationCard:b,onClickMyProfileButton:()=>{y("profile"),m()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v,togetherApiDomain:p,locale:E}))},sa=({openLogoutPopup:e,onCloseHandler:a,onLogoutHandler:n,siteType:o="helloSites"})=>{const{t:i}=Je();return l((()=>{document.body.classList.toggle("noscroll",e)}),[e]),t.createElement(rt,null,t.createElement(qe,{type:"confirm",isOpen:e,closeIcon:t.createElement("img",{src:$e.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:a},t.createElement(M,null,"helloSites"===o&&t.createElement("img",{src:$e.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),t.createElement("h2",null,i("helloSites"===o?"logout.popup.ask1":"logout.popup.ask.mb")),t.createElement("p",null,i("logout.popup.ask2")),t.createElement(_,{siteType:o},t.createElement(st,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},i("logout.popup.button.logout")),t.createElement(st,{className:"cancel-button",color:"primary",size:"lg",onClick:a},i("logout.popup.button.cancel"))))))},ra=({userInfo:n,siteType:o,onLoginClick:i,SSO_URL:s,currentUrl:r,isMinifyLogin:c,enableCare:m,enableTogether:h,enableEcom:v,isUserProfileNavigatorMenuHidden:p,UP_BASEPATH:E,isMyHealthEnabled:y,togetherApiDomain:b,onLogout:f,style:C,userProfileRouterPush:k,isLoading:w,locale:P,enableMySaved:N})=>{const{t:M}=Je(),[_,S]=a(!1),H=(null==n?void 0:n.name)||(null==n?void 0:n.username),[B,x]=a(!1);l((()=>{x(!0)}),[]);const{containerRef:U,onContainerFocus:$,onContainerBlur:I,onButtonMouseDown:R,onClose:O}=wt();return w?t.createElement(d,{size:"sm",color:"transparent",loading:w}):(null==n?void 0:n.id)?t.createElement(t.Fragment,null,t.createElement(A,{ref:U,style:C,tabIndex:0,onBlur:I,onFocus:$},t.createElement("div",{onMouseDown:R},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),t.createElement(u,{size:40,className:"user-avatar",src:null==n?void 0:n.avatar,color:"marryBaby"===o?nt.mbColors.pink:nt.colors.secondaryBase,placeholderText:H&&H.length?H[0].toUpperCase():"A"})),t.createElement(ia,{UP_BASEPATH:E,SSO_URL:s,dispatchLogout:()=>{O(),S(!0)},isOpen:!1,isMyHealthEnabled:y,enableCare:m,enableTogether:h,enableEcom:v,enableMySaved:N,closePopup:O,userInfo:n,siteType:o,isUserProfileNavigatorMenuHidden:p,togetherApiDomain:b,userProfileRouterPush:k,locale:P})),t.createElement(sa,{openLogoutPopup:_,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),S(!1)},siteType:o,onLogoutHandler:()=>e(void 0,void 0,void 0,(function*(){S(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):t.createElement(T,{style:Object.assign({textDecoration:"none"},C),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:B?void 0:ze(`${s}?returnUrl=${r}`),"data-site-type":o},c?t.createElement(L,{onClick:i},t.createElement("img",{src:$e.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):t.createElement(t.Fragment,null,"helloSites"===o&&(P===lt.Indonesia?t.createElement("img",{className:"mobile-only",src:$e.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):t.createElement(d,{className:"mobile-only",size:"sm",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22}),styles:{root:{paddingLeft:"5px",paddingRight:"8px"},leftIcon:{marginRight:"5px"}}},M("navigation.loginJoin"))),"marryBaby"===o&&t.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},t.createElement(g,{size:"p3",color:nt.mbColors.pink},M("navigation.loginJoin"))),t.createElement(d,{className:"login-btn",size:"md",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22})},M("navigation.loginJoin"))))};var ca="spdlGfq",ma="vgS16jX";const da=({onCareHeaderClick:e,currentUrl:a,careUrlFe:l,btnName:n})=>e?t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):t.createElement("a",{href:l,className:`${ma} care-button no-replace-click`},t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a},n));var ua="y5VJdvw",ga="oVhOSCy",ha="pX8OXTM";function va({className:e}){return t.createElement("div",null,t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function pa({siteType:e,type:a,enableSearch:l,className:n}){return"helloSites"===e?t.createElement("div",null,t.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:l?$e.getAssetPath("hamburgerMenuNewWithSearch.svg"):$e.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:a,className:n,loading:"lazy"})):t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},t.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 Ea=()=>{const{locale:e,configs:{statics:a},siteType:l}=i(S),n=ut(),{t:o}=Je();return t.createElement(h,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?o("navigation.search.input.placeholder"):o("home.search",{site:Re[e||"en-PH"]?Re[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${a.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:t.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},t.createElement(H,null))})};var ya="wnUb-dV",ba="cjbOxWe",fa="gB4rp89";const Ca=({item:e,menu:a})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:o,onButtonMouseDown:i,onClose:s}=wt({allowBgScroll:!0}),r=ht();return!e.popupType&&e.link?t.createElement(ka,{isNew:e.isNew},t.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ba},e.name))):t.createElement(ka,{isNew:e.isNew},t.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:o,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:i,className:ba},"care"===e.id&&t.createElement("a",{className:fa,href:ze(e.link+"/")},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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&&t.createElement("div",{className:ya},t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),t.isValidElement(a)?t.cloneElement(a,{onClose:s}):null))},ka=({isNew:e,children:a})=>{const{t:l}=Je();return e?t.createElement(gt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},a):t.createElement(t.Fragment,null,a)},wa=({hrefViewMore:e,titleBtnViewMore:a,UrlFE:l,onClosePopup:n,menuItems:o,headingTitle:s})=>{const{siteType:r}=i(S);return t.createElement(B,null,t.createElement(x,null,t.createElement(v,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},s)),null==o?void 0:o.slice(0,6).map(((e,a)=>{const o=(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 t.createElement(U,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":o,"data-is-heading-category":!1,href:o},!yt(o)&&{target:"_blank"},{"data-theme":r,key:a,onClick:n}),t.createElement("div",{className:"icon"},t.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),t.createElement(ka,{isNew:e.isNew},t.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),t.createElement($,null,t.createElement("img",{src:$e.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),a&&t.createElement(I,{"data-theme":r,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},t.createElement(R,{onClick:n,"data-theme":r,"data-is-heading-category":!1},a,t.createElement(O,null,t.createElement("img",{className:"svg",src:"marryBaby"===r?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},Pa=({item:e,index:a=0})=>{var l;const{t:n}=Je(),{locale:o,configs:{statics:s}}=i(S);if(!e)return null;const r=`${s.CARE_URL_FE}/${null===(l=mt[o])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return t.createElement(j,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${a+1}`,"data-event-label":r},t.createElement("img",{src:$e.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),t.createElement(F,null,t.createElement(D,null,t.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),t.createElement(z,null,t.createElement(V,null,e.name),t.createElement(G,null,e.description),t.createElement(W,null,n("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Na=({title:e,link:a,description:l,cta:n,icon:o})=>{const{siteType:s}=i(S);return t.createElement(K,{"data-theme":s},t.createElement(q,null,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("navMBSpotlightBgNoData.svg"):$e.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(Q,null,o&&t.createElement("img",{src:o,width:64,height:64,loading:"lazy"}))),t.createElement("div",null,e&&t.createElement(Y,null,e),l&&t.createElement(Z,null,l),n&&t.createElement("div",null,t.createElement("a",{href:a},t.createElement(st,{theme:s,className:"survey-contact-submit",size:"md"},n)))))},Ma=({title:e,viewMore:a,children:l,link:n,dataEventAction:o=""})=>{const{siteType:s}=i(S);return t.createElement(J,null,t.createElement(X,null,t.createElement(v,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},e),a&&t.createElement(ee,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":n,href:n,"data-theme":s},a,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},_a=({spotlights:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{siteType:n}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?t.createElement(t.Fragment,null,t.createElement(te,null,null==e?void 0:e.slice(0,3).map(((e,a)=>t.createElement(Pa,{key:a,index:a,item:e})))),t.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},t.createElement("a",{href:a},t.createElement(st,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):t.createElement(Na,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:a,cta:l("home.navigator.menu.care.homeButton"),icon:$e.getAssetPath("community.svg")}))},Aa=({item:e,index:a=0})=>e?t.createElement(ae,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${a+1}`,"data-event-label":e.link},t.createElement(le,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),t.createElement(ne,null,e.title)):null,Ta=({spotlightsList:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:a,dataEventAction:"Spotlight See More Click"},0!==e.length?t.createElement(oe,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(Aa,{key:a,index:a,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):t.createElement(Na,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:a,cta:l("home.navigator.menu.category.noDatas.cta"),icon:$e.getAssetPath("Spotlight.svg")}))},La=({spotlights:e=[]})=>{const{configs:{statics:a}}=i(S),{t:l}=Je();return t.createElement(Ma,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ve(a.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?t.createElement(ie,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(se,{index:a,post:e,key:e.id})))):t.createElement(Na,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${a.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:$e.getAssetPath("community.svg")}))},Sa=({item:e,index:a=0})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return t.createElement(re,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":o},t.createElement("img",{src:$e.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(ce,null,t.createElement(me,null,e.title),t.createElement(de,null,e.subtitle),t.createElement(ue,null,l("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),t.createElement(ge,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ha=({item:e,index:a=0,color:l})=>{const{t:n}=Je(),{configs:{statics:o}}=i(S);if(!e)return null;const s=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0,r=()=>t.createElement(pe,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>t.createElement(Ee,null,t.createElement(ye,null,t.createElement(be,null,e.title),t.createElement(fe,null,e.subtitle)),t.createElement(Ce,null,t.createElement("div",{className:"mobile-only"},n("home.seeMore")),t.createElement("img",{src:$e.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return t.createElement(he,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":s,"data-color":l},t.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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"})),t.createElement("img",{src:$e.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),t.createElement(ve,null,t.createElement("div",{className:"mobile-only"},r()),t.createElement("div",{className:"desktop-only"},c())),t.createElement("div",{className:"mobile-only"},c()),t.createElement("div",{className:"desktop-only"},r()))},Ba=({hrefViewMore:e,spotlightHealthTools:a=[]})=>{const{t:l}=Je(),n=["pink","orange","green"],{siteType:o}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightTools")},0!==a.length&&t.createElement(ke,null,null==a?void 0:a.slice(0,3).map(((e,a)=>"marryBaby"===o?t.createElement(Ha,{key:a,index:a,item:e,color:n[a]}):t.createElement(Sa,{key:a,index:a,item:e})))),0===a.length&&t.createElement(Na,{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:$e.getAssetPath("community.svg")}))},xa=({closePopup:e,menuItems:a=[]})=>{var l,n;const{siteType:o,ssrMenuContent:{categories:s,healthTools:r,care:c,together:m},activeMenuService:d,configs:{statics:u,enableSearchBar:g},locale:h}=i(S),{t:v}=Je();return t.createElement(we,{id:"categories-menu"},g?t.createElement(Pe,{"data-theme":o,onClick:()=>{window.location.href=`${u.HOME_PAGE_URL}/search`}},t.createElement(Ea,null)):null,t.createElement(Ne,null,t.createElement(wa,{UrlFE:u.HOME_PAGE_URL,titleBtnViewMore:v("home.navigator.menuItem.allCategories"),menuItems:a,headingTitle:v("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&t.createElement(Ta,{spotlightsList:(null==s?void 0:s.spotlights)||[],hrefViewMore:`${u.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===d&&t.createElement(Ba,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${u.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(l=Oe[h])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===d&&t.createElement(_a,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${u.CARE_URL_FE}/${null===(n=mt[h])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&t.createElement(La,{spotlights:null==m?void 0:m.spotlights})))},Ua=({type:e="home",menuItems:a})=>{const{siteType:l,configs:{enableSearchBar:n}}=i(S),{containerRef:o,onContainerFocus:s,onContainerBlur:r,onButtonMouseDown:c,onClose:m}=wt();return t.createElement(kt,{mediaQueryKey:"mbDown"},t.createElement("header",{className:ua},t.createElement("div",{className:ga,ref:o,role:"button",tabIndex:0,onBlur:r,onFocus:s},t.createElement("div",{className:ha,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},t.createElement(va,{className:"mobile-close-icon"}),t.createElement(pa,{siteType:l,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),t.createElement(xa,{menuItems:a,closePopup:m}))))};var $a="q3nL5cp",Ia="_2DNf80G",Ra="Q-glX-n";const Oa=({onClosePopup:e})=>t.createElement("div",{className:`${Ra} close-btn`,onClick:e},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ja=({onClosePopup:e,isDisplay:a,children:l,isNavMenu:n,hideCloseBtn:o})=>t.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!a,"data-is-nav-menu":!!n},t.createElement(at,null,!o&&t.createElement("div",{className:Ia},t.createElement(Oa,{onClosePopup:e})),t.createElement(at,{className:$a},l))),Fa=({careSpecialties:e=[],isOpen:a,onClose:l,spotlights:n=[]})=>{var o;const{t:s}=Je(),{locale:r,configs:{statics:c}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:a,isNavMenu:!0},t.createElement(wa,{headingTitle:s("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:s("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:aa({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),t.createElement(_a,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(o=mt[r])||void 0===o?void 0:o.SPECIALTIES}/`}))},Da=({categories:e=[],spotlightsList:a=[],onClose:l,isOpen:n})=>{const{t:o}=Je(),{locale:s,configs:{statics:r}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:n,isNavMenu:!0},t.createElement(wa,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:o("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:o("home.navigator.menuItem.healthCategories")}),t.createElement(Ta,{spotlightsList:a,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/spotlight/`}))},za=({communities:e=[],onClose:a,isOpen:l,spotlights:n=[]})=>{const{t:o}=Je(),{configs:{statics:s}}=i(S);return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:Ve(s.TOGETHER_URL_FE),UrlFE:ze(s.TOGETHER_URL_FE),onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),t.createElement(La,{spotlights:n}))},Va=({locale:e,onClose:a,isOpen:l,spotlightHealthTools:n=[],healthTools:o=[]})=>{var s;const{t:r}=Je(),{configs:{statics:c}}=i(S),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(s=Oe[e])||void 0===s?void 0:s.HEALTH_TOOLS)||""}`;return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:a,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:o.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})))}),t.createElement(Ba,{spotlightHealthTools:n,hrefViewMore:m}))},Ga=({onTopBarAppears:e,type:n="home",languageMenu:r,menuItems:c})=>{var m;const{siteType:d,isMobile:u=!1,locale:g,sitewideBanner:h,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:b,configs:{statics:f,enableNavCareBooking:C,enableSearchBar:k,enableNavCare:w,enableProfileMyHealth:P,enableProfileMySaved:N,enableNavTogether:M,enableProfileEcom:_,enableProfileNavigatorMenu:A},userState:{userInfo:T},onLogout:L,userProfileRouterPush:H,isUserLoading:B}=i(S),{t:x}=Je(),{SSO_URL:U,HOME_PAGE_URL:$}=f,I=!!p,[R,O]=a(!1),j=o(47),F=o(null),D=o(!1),z="helloSites"===d?null===(m=Re[g])||void 0===m?void 0:m.LOGO_TYPE:d,V="undefined"!=typeof window,G=s(Xe((()=>{if("home"===n&&V){if(!F.current)return;const e=F.current.getBoundingClientRect();e.top<=0&&window.scrollY>j.current&&window.scrollY>e.height+20&&!D.current&&(D.current=!0,O(!0)),window.scrollY<j.current&&D.current&&(D.current=!1,O(!1)),window.scrollY>=0&&(j.current=window.scrollY)}}),200),[]);l((()=>{null==e||e(!R)}),[R]),l((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),l((()=>{u&&G()}),[u]);const W=v&&!!h;return t.createElement(Me,{"data-site-type":d,"data-sponsored":I,"data-sitewide-banner-shown":W,"data-header-type":n,"data-collapsed":R,"data-with-search-input":"popup-sub-level"!==n,"data-is-displayed":!0,id:"site-header",ref:F},h,t.createElement(_e,{"data-site-type":d},t.createElement(Ae,{"data-site-type":d},t.createElement(Ua,{menuItems:c,type:n}),t.createElement("a",{style:{flexShrink:0},href:$},t.createElement(Te,null,t.createElement(Ze,{style:{display:"flex"},type:z,badge:"id-ID"===g&&t.createElement("img",{src:$e.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?t.createElement(Ka,{menuItems:c}):k&&t.createElement(Wa,{siteType:d})),t.createElement(Le,{"data-site-type":d},"marryBaby"===d?k&&t.createElement(Wa,{siteType:d}):t.createElement(Ka,{menuItems:c}),t.createElement(Se,null,C&&t.createElement(kt,{mediaQueryKey:"mbUp"},t.createElement(da,{careUrlFe:f.CARE_URL_FE,currentUrl:y,btnName:x("login.booking"),onCareHeaderClick:E})),r,t.createElement(ra,{userInfo:T,siteType:d,onLoginClick:b||(()=>{const e=window.location.href;window.location.href=U?ze(`${U}?returnUrl=${e}`):e}),SSO_URL:Ve(f.SSO_URL),currentUrl:y,onLogout:L,UP_BASEPATH:je,isMyHealthEnabled:P,enableCare:w,enableTogether:M,enableEcom:_,enableMySaved:N,togetherApiDomain:Ve(f.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:H,isLoading:B,locale:g})))),p?t.isValidElement(p)?t.cloneElement(p,{isCollapsed:R,locale:g,isMobile:u}):p:null)},Wa=({siteType:e})=>t.createElement(kt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},t.createElement(Ea,null)),Ka=({menuItems:e})=>{const{siteType:a,locale:l,ssrMenuContent:{categories:n,healthTools:o,care:s,together:r}}=i(S);return t.createElement(kt,{mediaQueryKey:"mbUp",style:{height:"100%"}},t.createElement(He,{"data-site-type":a},null==e?void 0:e.map(((e,a)=>t.createElement(Ca,{key:a,item:e,menu:"categories"===e.popupType?t.createElement(Da,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?t.createElement(Va,{locale:l,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?t.createElement(za,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?t.createElement(Fa,{careSpecialties:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):null})))))},qa=e=>{var r,c;const{isMobile:m,locale:d,onTopBarAppears:u,languageOptions:g,sponsorComponent:h,sitewideBanner:v,sitewideBannerShown:p,className:E}=e,y=(()=>{const{t:e}=Je(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:o,enableNavCare:s,enableNavTogether:r,enableNavEcom:c,statics:m}}=i(S),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?$e.getAssetPath("categories-mb.svg"):$e.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),o&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=Oe[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:d?$e.getAssetPath("healthtools-mb.svg"):$e.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:ze(m.TOGETHER_URL_FE+"/"),thumbnail:d?$e.getAssetPath("community-mb.svg"):$e.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:ze(m.HOME_PAGE_URL+"/shop"),thumbnail:$e.getAssetPath("nav-icons/shop.svg"),popupType:null}),s&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:ze(m.HOME_PAGE_URL+"/care"),thumbnail:$e.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===a?null:"care"}),n}),[a,s,r,c])})();(()=>{const{isFirstLogin:e,userState:t}=i(S),{userInfo:a}=t;l((()=>{(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,f=!!h,C=!!(null===(c=null===(r=null==h?void 0:h.props)||void 0===r?void 0:r.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:k,defaultHeaderHeight:w,headerHeight:P,headerBottom:N}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:i,isMobile:r})=>{const c=o(null),[m,d]=a(0),[u,g]=a(64),h=s(ct((()=>{var e,t,a,l;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(d(n),g((null===(l=c.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);l((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),l((()=>{h()}),[r,i,t,e,c.current]);const v=n((()=>{let a=r?64:69;return i&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,i,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:u,headerRef:c}})({isShowingSiteWideBanner:b,isSponsored:f,hasSponsoredBanners:C,isMobile:m});return t.createElement(xe,{id:"navigation-v2",style:{"--default-header-height":w+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":N+"px"},className:E},t.createElement("section",{ref:k},t.createElement(Ga,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:t.createElement(ft,{languageOptions:g,locale:d})})))},Qa=e=>{const a=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return t.createElement(Be,Object.assign({},a),t.createElement(qa,Object.assign({},a)))},Ya=t=>e(void 0,void 0,void 0,(function*(){var e,a,l,n,o,i,s,r,c,m,d,u,g,h,v,p,E,y,b,f,C;const k={},w="vi-VN_MB"===t;try{const P="tl-PH"===t?"lang=fil":"";try{const[d,u,g,h]=yield Promise.all([fetch(ze(`${Ge(t)}/wp-json/api/categories${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${P?"&"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}/favorites${P?"?"+P:""}`)).then((e=>e.json()))]);k.categories={items:(null===(a=null===(e=null==d?void 0:d.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,Jt))||[],spotlights:(null===(i=null===(o=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===o?void 0:o.call(n,la))||void 0===i?void 0:i.filter(na))||[]},k.healthTools={items:(null===(r=null===(s=null==g?void 0:g.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Xt))||[],spotlights:(null===(m=null===(c=null==h?void 0:h.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Xt))||[]}}catch(e){}if(w||Fe.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(`${We()}/api/v1/community?website_url=https://${Ie[t]}`)).then((e=>e.json())),fetch(ze(`${We()}/api/v1/options?website_url=https://${Ie[t]}&meta_key=popular_post`)).then((e=>e.json()))]);k.together={items:(null===(g=null===(u=null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.communities)||void 0===u?void 0:u.map)||void 0===g?void 0:g.call(u,Qe))||[],spotlights:(null===(p=null===(v=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,Ye))||[]}}catch(e){}if(De.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(Ke()+`/api/specialties?_ishome=1&site=${Ie[t]}`)).then((e=>e.json())),fetch(ze(Ke()+`/api/search/?site=${Ie[t]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);k.care={items:(null===(b=null===(y=null===(E=null==e?void 0:e._data)||void 0===E?void 0:E.specialties)||void 0===y?void 0:y.map)||void 0===b?void 0:b.call(y,ea))||[],spotlights:(null===(C=null===(f=null==a?void 0:a._data.searches)||void 0===f?void 0:f.map)||void 0===C?void 0:C.call(f,ta))||[]}}catch(e){}}catch(e){console.error(e)}return k})),Za=t=>e(void 0,void 0,void 0,(function*(){return(yield r("nav-menu-content",(()=>Ya(t||"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{pt as A,ft as L,Qa as N,ia as P,oa as U,Za as a,St as b,Zt as c,sa as d,ra as e,Ya as g,yt as i};
@@ -1,4 +1,4 @@
1
- import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as n,M as l}from"./screenSizeContext-c836ee25.js";import{a2 as r,a3 as s,a4 as d,a5 as c,a6 as m,a7 as p,a0 as h}from"./utils-43ce7755.js";import{T as u}from"./index-6c96ac70.js";import g from"styled-components";import{u as b}from"./useTranslations-7ca47aa6.js";import{G as x}from"./Onboarding-17999cc6.js";import{I as y}from"./index-1ac00718.js";import{M as C,a as f}from"./index-6c68b9ba.js";import{t as v}from"./theme-72c4ec13.js";const w=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),E=({children:o,title:l,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:g=!0,className:b})=>{const x=t();a((()=>(n(m),()=>n(!1))),[m]);const y=()=>{x.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!m&&h?null:e.createElement(i,null,e.createElement(s,{className:b,open:m},e.createElement(w,{open:m,onClickOutside:y}),e.createElement(d,{open:m,placement:p,ref:x,hasTitle:Boolean(l)},e.createElement("div",{className:"title"},l&&e.createElement(u,{size:"s2",type:"semiBold"},l),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:y},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(c,{onClick:e=>{g&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:y}):null)))))},$=({value:t,options:a,className:i,direction:n="horizontal",onChange:l,isDisabled:r,siteType:s})=>{const[d,c]=o(t),h="marryBaby"===s;return e.createElement(m,{className:i,"data-direction":n},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||d)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(c(e),l&&l(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(C,{type:"subtitle-2",color:(t||d)===a.value?v.mbColors.dark:v.mbColors.midGray},a.label):e.createElement(u,{type:"bold",color:(t||d)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},k="hhgcomp-modal-modal",B=h(g.div`
1
+ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as n,M as l}from"./screenSizeContext-2fd9933a.js";import{a2 as r,a3 as s,a4 as d,a5 as m,a6 as c,a7 as p,a0 as h}from"./utils-6dbfa2e2.js";import{T as b}from"./index-d754d2c5.js";import u from"styled-components";import{u as g}from"./useTranslations-94a298de.js";import{G as x}from"./Onboarding-232ac075.js";import{I as y}from"./index-1da6924b.js";import{M as f,a as C}from"./index-783fd8db.js";import{t as v}from"./theme-3f5fb9b4.js";const w=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),E=({children:o,title:l,onClose:r,open:c=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:u=!0,className:g})=>{const x=t();a((()=>(n(c),()=>n(!1))),[c]);const y=()=>{x.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!c&&h?null:e.createElement(i,null,e.createElement(s,{className:g,open:c},e.createElement(w,{open:c,onClickOutside:y}),e.createElement(d,{open:c,placement:p,ref:x,hasTitle:Boolean(l)},e.createElement("div",{className:"title"},l&&e.createElement(b,{size:"s2",type:"semiBold"},l),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:y},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(m,{onClick:e=>{u&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:y}):null)))))},$=({value:t,options:a,className:i,direction:n="horizontal",onChange:l,isDisabled:r,siteType:s})=>{const[d,m]=o(t),h="marryBaby"===s;return e.createElement(c,{className:i,"data-direction":n},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||d)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(m(e),l&&l(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(f,{type:"subtitle-2",color:(t||d)===a.value?v.mbColors.dark:v.mbColors.midGray},a.label):e.createElement(b,{type:"bold",color:(t||d)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},k="hhgcomp-modal-modal",B=h(u.div`
2
2
  position: relative;
3
3
  z-index: 200;
4
4
  background-color: ${e=>e.theme.colors.white};
@@ -27,7 +27,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
27
27
  background-color: none;
28
28
  box-shadow: none;
29
29
  }
30
- `,k),j=g.div`
30
+ `,k),j=u.div`
31
31
  position: fixed;
32
32
  top: 0;
33
33
  left: 0;
@@ -130,7 +130,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
130
130
  }
131
131
  }
132
132
  }
133
- `,z=g.div`
133
+ `,z=u.div`
134
134
  position: fixed;
135
135
  top: 0;
136
136
  left: 0;
@@ -144,7 +144,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
144
144
  &[data-type='video'] {
145
145
  background-color: ${e=>e.theme.colors.secondaryDark};
146
146
  }
147
- `,T=g.div`
147
+ `,T=u.div`
148
148
  & > :not(:last-child) {
149
149
  margin-bottom: 8px;
150
150
  }
@@ -162,7 +162,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
162
162
  }
163
163
  }
164
164
  }
165
- `,G=g($)`
165
+ `,G=u($)`
166
166
  & > div > div {
167
167
  display: flex;
168
168
  flex-direction: row;
@@ -174,4 +174,4 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
174
174
  .radio-group-item-heading {
175
175
  margin-top: 0;
176
176
  }
177
- `,L=({value:t,onChange:a,siteType:o})=>{const{t:i}=b(),n="marryBaby"==o;return e.createElement(T,{"data-is-marryBaby":n},n?e.createElement(f,{type:"h4",color:v.mbColors.dark},i("babyVaccineTool.selectGender")):e.createElement(u,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),e.createElement(G,{siteType:o,options:[{value:x.Boy,label:i("gender.male"),content:n?e.createElement(y.BabyBoyMB,null):e.createElement(y.GenderChooseBoy,null)},{value:x.Girl,label:i("gender.female"),content:n?e.createElement(y.BabyGirlMB,null):e.createElement(y.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{L as B,E as D,$ as R,j as S,z as a,B as b};
177
+ `,L=({value:t,onChange:a,siteType:o})=>{const{t:i}=g(),n="marryBaby"==o;return e.createElement(T,{"data-is-marryBaby":n},n?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("babyVaccineTool.selectGender")):e.createElement(b,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),e.createElement(G,{siteType:o,options:[{value:x.Boy,label:i("gender.male"),content:n?e.createElement(y.BabyBoyMB,null):e.createElement(y.GenderChooseBoy,null)},{value:x.Girl,label:i("gender.female"),content:n?e.createElement(y.BabyGirlMB,null):e.createElement(y.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{L as B,E as D,$ as R,j as S,z as a,B as b};
@@ -1 +1 @@
1
- import{a as e,_ as t}from"./tslib.es6-d8c90a45.js";import s,{useReducer as a,useState as r,useEffect as i}from"react";import{Stack as n,Input as o}from"@mantine/core";import{J as c,a8 as d}from"./utils-43ce7755.js";import"@mantine/dates";import{a as l}from"./index-20a67ed5.js";import{L as p}from"./Onboarding-17999cc6.js";import"./gAssets.js";import"dayjs";import"./screenSizeContext-c836ee25.js";import"styled-components";import"./theme-72c4ec13.js";import"./isProduction-f9284e0d.js";import{u as m}from"./useTranslations-7ca47aa6.js";import"./index-629208cc.js";import"@mantine/hooks";import"lodash/debounce";import{M as v}from"./utils-95f50b85.js";const u={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},h=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},y=({provinces:t})=>{const[s,n]=a(h,u),{provinceByName:o,provinces:c,districts:d,wards:m,selectedProvince:y,selectedDistrict:b,selectedWard:g}=s,[j,E]=r();i((()=>{e(void 0,void 0,void 0,(function*(){var e,s,a,r;try{const i=yield fetch((r=process.env.UNIFY_LOCALE||p.Vietnam,`${l}/cities-data-${v[r]}.json`)).then((e=>e.json()));E(i);const{list:o}=i,c=t?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const a={};return e.map((e=>{a[e.name]=s[e.id]})),a})(t,o):o,d=Object.keys(c),m=Object.keys((null===(e=o[d[0]])||void 0===e?void 0:e.list)||{}),u=Object.keys((null===(a=null===(s=o[d[0]])||void 0===s?void 0:s[m[0]])||void 0===a?void 0:a.list)||{});n({type:"SET_DATA",payload:{provinceByName:c,provinces:d,districts:m,wards:u}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:c,districts:d,wards:m,selectedProvince:y,selectedDistrict:b,selectedWard:g,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=o[e])||void 0===t?void 0:t.list)||{});n({type:"SET_DISTRICTS",payload:s}),n({type:"SET_WARDS",payload:[]}),n({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const a=Object.keys((null===(s=null===(t=o[y])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});n({type:"SET_WARDS",payload:a}),n({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{n({type:"SELECT_WARD",payload:e})}}},b=e=>{var{error:a,provinces:l,placeholder:p}=e,v=t(e,["error","provinces","placeholder"]);const{t:u}=m(),{provinces:h,districts:b,wards:g,selectedProvince:j,selectedDistrict:E,selectedWard:C,handleProvinceChange:O,handleDistrictChange:T,handleWardChange:S}=y({provinces:l}),[D,f]=r("");return i((()=>{j&&E&&C&&D?v.onChange({selectedProvince:j,selectedDistrict:E,selectedWard:C,extraInfo:D}):v.onChange(null)}),[j,E,C,D]),s.createElement(c.Wrapper,Object.assign({withAsterisk:!0},v),s.createElement(n,null,s.createElement(d,{placeholder:(null==p?void 0:p.province)||u("onboarding.similac.input.city"),data:l?h:h.sort(),searchable:!0,onChange:O,value:j}),s.createElement(d,{placeholder:(null==p?void 0:p.district)||u("onboarding.similac.input.district"),data:b.sort(),searchable:!0,onChange:T,value:E,disabled:!j}),s.createElement(d,{placeholder:(null==p?void 0:p.ward)||u("onboarding.similac.input.ward"),searchable:!0,data:g.sort(),value:C,onChange:S,disabled:!j||!E}),s.createElement(c,{placeholder:(null==p?void 0:p.address)||u("onboarding.similac.input.no"),disabled:!j||!E||!C,value:D,onChange:f,style:{marginBottom:0}})),s.createElement(o.Error,{size:"md"},a))};export{b as A};
1
+ import{a as e,_ as t}from"./tslib.es6-c990ebbd.js";import s,{useReducer as a,useState as r,useEffect as i}from"react";import{Stack as n,Input as o}from"@mantine/core";import{J as c,a8 as d}from"./utils-6dbfa2e2.js";import"@mantine/dates";import{a as l}from"./index-93383cf3.js";import{L as p}from"./Onboarding-232ac075.js";import"./gAssets.js";import"dayjs";import"./screenSizeContext-2fd9933a.js";import"styled-components";import"./theme-3f5fb9b4.js";import"./isProduction-51e5a882.js";import{u as m}from"./useTranslations-94a298de.js";import"./index-71b07919.js";import"@mantine/hooks";import"lodash/debounce";import{M as v}from"./utils-3a82f3b7.js";const b={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},u=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},h=({provinces:t})=>{const[s,n]=a(u,b),{provinceByName:o,provinces:c,districts:d,wards:m,selectedProvince:h,selectedDistrict:y,selectedWard:g}=s,[j,E]=r();i((()=>{e(void 0,void 0,void 0,(function*(){var e,s,a,r;try{const i=yield fetch((r=process.env.UNIFY_LOCALE||p.Vietnam,`${l}/cities-data-${v[r]}.json`)).then((e=>e.json()));E(i);const{list:o}=i,c=t?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const a={};return e.map((e=>{a[e.name]=s[e.id]})),a})(t,o):o,d=Object.keys(c),m=Object.keys((null===(e=o[d[0]])||void 0===e?void 0:e.list)||{}),b=Object.keys((null===(a=null===(s=o[d[0]])||void 0===s?void 0:s[m[0]])||void 0===a?void 0:a.list)||{});n({type:"SET_DATA",payload:{provinceByName:c,provinces:d,districts:m,wards:b}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:c,districts:d,wards:m,selectedProvince:h,selectedDistrict:y,selectedWard:g,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=o[e])||void 0===t?void 0:t.list)||{});n({type:"SET_DISTRICTS",payload:s}),n({type:"SET_WARDS",payload:[]}),n({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const a=Object.keys((null===(s=null===(t=o[h])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});n({type:"SET_WARDS",payload:a}),n({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{n({type:"SELECT_WARD",payload:e})}}},y=e=>{var{error:a,provinces:l,placeholder:p}=e,v=t(e,["error","provinces","placeholder"]);const{t:b}=m(),{provinces:u,districts:y,wards:g,selectedProvince:j,selectedDistrict:E,selectedWard:C,handleProvinceChange:O,handleDistrictChange:T,handleWardChange:S}=h({provinces:l}),[f,D]=r("");return i((()=>{j&&E&&C&&f?v.onChange({selectedProvince:j,selectedDistrict:E,selectedWard:C,extraInfo:f}):v.onChange(null)}),[j,E,C,f]),s.createElement(c.Wrapper,Object.assign({withAsterisk:!0},v),s.createElement(n,null,s.createElement(d,{placeholder:(null==p?void 0:p.province)||b("onboarding.similac.input.city"),data:l?u:u.sort(),searchable:!0,onChange:O,value:j}),s.createElement(d,{placeholder:(null==p?void 0:p.district)||b("onboarding.similac.input.district"),data:y.sort(),searchable:!0,onChange:T,value:E,disabled:!j}),s.createElement(d,{placeholder:(null==p?void 0:p.ward)||b("onboarding.similac.input.ward"),searchable:!0,data:g.sort(),value:C,onChange:S,disabled:!j||!E}),s.createElement(c,{placeholder:(null==p?void 0:p.address)||b("onboarding.similac.input.no"),disabled:!j||!E||!C,value:f,onChange:D,style:{marginBottom:0}})),s.createElement(o.Error,{size:"md"},a))};export{y as A};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-d8c90a45.js";import t from"react";import{Image as r}from"@mantine/core";import{DatePickerInput as s}from"@mantine/dates";import{I as o}from"./index-20a67ed5.js";import{L as a}from"./Onboarding-17999cc6.js";import{CommonGAssets as i}from"./gAssets.js";import{aB as n}from"./utils-43ce7755.js";const l=l=>{var m,{value:c,fullWidth:d=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(s,Object.assign({locale:n[process.env.UNIFY_LOCALE||a.Vietnam],valueFormat:null===(m=o[process.env.UNIFY_LOCALE||a.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(r,{src:i.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-c990ebbd.js";import t from"react";import{Image as r}from"@mantine/core";import{DatePickerInput as s}from"@mantine/dates";import{I as o}from"./index-93383cf3.js";import{L as a}from"./Onboarding-232ac075.js";import{CommonGAssets as i}from"./gAssets.js";import{aB as n}from"./utils-6dbfa2e2.js";const l=l=>{var m,{value:c,fullWidth:d=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(s,Object.assign({locale:n[process.env.UNIFY_LOCALE||a.Vietnam],valueFormat:null===(m=o[process.env.UNIFY_LOCALE||a.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(r,{src:i.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 +1 @@
1
- import{_ as e}from"./tslib.es6-d8c90a45.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,c as i}from"./index-1ac00718.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:y=!0,actionIcon:b,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:I,size:f,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),x=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":f,className:h,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},I||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},x,j)),C&&a.createElement(r,{className:"displayIcon"},C),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),p&&p.length>0&&y&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
1
+ import{_ as e}from"./tslib.es6-c990ebbd.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,c as i}from"./index-1da6924b.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:b=!0,actionIcon:y,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:I,size:f,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),x=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":f,className:h,"data-has-action-icon":!!y||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},I||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},x,j)),C&&a.createElement(r,{className:"displayIcon"},C),y&&a.createElement(l,{className:"actionIcon",onClick:v},y)),p&&p.length>0&&b&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-d8c90a45.js";import t,{useState as a,useEffect as n}from"react";import{L as l}from"./Onboarding-17999cc6.js";import{S as r,a as o,b as i}from"./index.styled-bcf9194a.js";const c=c=>{var{data:s,isMobile:m,onSlideChange:g,pillProps:h,locale:p=l.Vietnam,blurFromIndex:v,blurLength:b}=c,C=e(c,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const u={withControls:!m,slideGap:16,blurFromCenter:!0,blurFromIndex:v||(m?2:4),blurLength:b||(m?1:3),onSlideChange:g},[k,w]=a("");return n((()=>{w(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:g,"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}},h),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:p,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",xmlns:"http://www.w3.org/2000/svg",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-c990ebbd.js";import t,{useState as a,useEffect as n}from"react";import{L as l}from"./Onboarding-232ac075.js";import{S as r,a as o,b as i}from"./index.styled-33c36729.js";const c=c=>{var{data:s,isMobile:m,onSlideChange:g,pillProps:h,locale:p=l.Vietnam,blurFromIndex:v,blurLength:b}=c,C=e(c,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const u={withControls:!m,slideGap:16,blurFromCenter:!0,blurFromIndex:v||(m?2:4),blurLength:b||(m?1:3),onSlideChange:g},[k,w]=a("");return n((()=>{w(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:g,"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}},h),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:p,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",xmlns:"http://www.w3.org/2000/svg",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,4 +1,4 @@
1
- import{_ as e}from"./tslib.es6-d8c90a45.js";import t,{useState as n,forwardRef as l,createContext as i,useContext as r,useRef as o,useEffect as a}from"react";import s from"styled-components";import{Carousel as c}from"@mantine/carousel";import{createStyles as d}from"@mantine/core";import{useViewportSize as p,useResizeObserver as h}from"@mantine/hooks";const u=l=>{var{alt:i,backupSrc:r,src:o,placeholderSrc:a,style:s,ref:c}=l,d=e(l,["alt","backupSrc","src","placeholderSrc","style","ref"]);const[p,h]=n(!1);return t.createElement(g,Object.assign({loading:"lazy",alt:i,onError:()=>!p&&h(!0),src:p?r||o:o||r,style:Object.assign(Object.assign({},a?{backgroundImage:`url(${a})`}:{}),s),"data-has-placeholder":!!a,ref:c},d))},g=s.img`
1
+ import{_ as e}from"./tslib.es6-c990ebbd.js";import t,{useState as n,forwardRef as l,createContext as i,useContext as r,useRef as o,useEffect as a}from"react";import s from"styled-components";import{Carousel as c}from"@mantine/carousel";import{createStyles as d}from"@mantine/core";import{useViewportSize as p,useResizeObserver as h}from"@mantine/hooks";const u=l=>{var{alt:i,backupSrc:r,src:o,placeholderSrc:a,style:s,ref:c}=l,d=e(l,["alt","backupSrc","src","placeholderSrc","style","ref"]);const[p,h]=n(!1);return t.createElement(g,Object.assign({loading:"lazy",alt:i,onError:()=>!p&&h(!0),src:p?r||o:o||r,style:Object.assign(Object.assign({},a?{backgroundImage:`url(${a})`}:{}),s),"data-has-placeholder":!!a,ref:c},d))},g=s.img`
2
2
  &[data-has-placeholder='true'] {
3
3
  background-position: center;
4
4
  background-repeat: no-repeat;
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-d8c90a45.js";import t from"react";import{Modal as s,CloseButton as l}from"@mantine/core";import{CommonGAssets as a}from"./gAssets.js";import{az as o,x as n}from"./utils-43ce7755.js";const r=r=>{var{title:i,styles:m}=r,c=e(r,["title","styles"]);const{classes:d}=o(void 0,{name:"Modal",styles:m});return t.createElement(t.Fragment,null,t.createElement(s,Object.assign({centered:!0,classNames:d},c,{withCloseButton:!1,title:c.withCloseButton&&t.createElement(t.Fragment,null,t.createElement(n,{size:"s2",weight:"semiBold",as:"span"},i),t.createElement(l,Object.assign({},c.closeButtonProps,{onClick:()=>{var e;return null===(e=c.onClose)||void 0===e?void 0:e.call(c)},sx:{":focus":{outline:0}}}),t.createElement("img",{loading:"lazy",className:"mantine-Modal-close",src:a.getAssetPath("CloseModal.svg"),style:{width:"16px"}})))})))};export{r as M};
1
+ import{_ as e}from"./tslib.es6-c990ebbd.js";import t from"react";import{Modal as s,CloseButton as l}from"@mantine/core";import{CommonGAssets as a}from"./gAssets.js";import{az as o,x as n}from"./utils-6dbfa2e2.js";const r=r=>{var{title:i,styles:m}=r,c=e(r,["title","styles"]);const{classes:d}=o(void 0,{name:"Modal",styles:m});return t.createElement(t.Fragment,null,t.createElement(s,Object.assign({centered:!0,classNames:d},c,{withCloseButton:!1,title:c.withCloseButton&&t.createElement(t.Fragment,null,t.createElement(n,{size:"s2",weight:"semiBold",as:"span"},i),t.createElement(l,Object.assign({},c.closeButtonProps,{onClick:()=>{var e;return null===(e=c.onClose)||void 0===e?void 0:e.call(c)},sx:{":focus":{outline:0}}}),t.createElement("img",{loading:"lazy",className:"mantine-Modal-close",src:a.getAssetPath("CloseModal.svg"),style:{width:"16px"}})))})))};export{r as M};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./tslib.es6-c990ebbd.js";import t from"react";import{S as s,a}from"./index-71b07919.js";const r=a=>{var{type:r,color:o,style:l}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},o&&{"--text-color":o}),l)},c))},o=s=>{var{type:r,color:o,style:l}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},l),o&&{"--text-color":o})},c))};export{o as M,r as a};
@@ -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"./Onboarding-17999cc6.js";import{i as c}from"./isProduction-f9284e0d.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}},T="userGeoLocationCoordinates",r={"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"},O={"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"}},p={"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"}},_="user",m=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],A=["vi-VN"],u=["vi-VN","id-ID","en-PH","tl-PH"],y=["vi-VN","id-ID"],N={"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 S;!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"}(S||(S={}));const C={[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:","}},g="hhg_user_token",R={[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},L="https://cdn.hellohealthgroup.com/countries";var P=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:T,domainLocales:r,LOCALE_SPECS:O,STATIC_PAGES:p,UP_BASEPATH:_,TOGETHER_LOCALES:m,ECOM_LOCALES:A,CARE_LOCALES:u,CARE_BOOKING_LOCALES:y,FAVICONS:N,get QUERY_HEALTH_TOOL(){return S},ISO_FORMAT:C,BEARER_TOKEN_COOKIE:g,DATE_FNS_LOCALE:R,CDN_ADDRESS:L,siteHost:h,siteOptions:I,isProduction:c});export{g as B,u as C,R as D,A as E,N as F,C as I,O as L,S as Q,p as S,m as T,_ as U,L as a,y as b,T as c,r as d,h as e,P as i,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"./Onboarding-232ac075.js";import{i as c}from"./isProduction-51e5a882.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}},T="userGeoLocationCoordinates",r={"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"},O={"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"}},p={"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"}},_="user",m=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],A=["vi-VN"],u=["vi-VN","id-ID","en-PH","tl-PH"],y=["vi-VN","id-ID"],N={"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 S;!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"}(S||(S={}));const C={[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:","}},g="hhg_user_token",R={[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},L="https://cdn.hellohealthgroup.com/countries";var P=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:T,domainLocales:r,LOCALE_SPECS:O,STATIC_PAGES:p,UP_BASEPATH:_,TOGETHER_LOCALES:m,ECOM_LOCALES:A,CARE_LOCALES:u,CARE_BOOKING_LOCALES:y,FAVICONS:N,get QUERY_HEALTH_TOOL(){return S},ISO_FORMAT:C,BEARER_TOKEN_COOKIE:g,DATE_FNS_LOCALE:R,CDN_ADDRESS:L,siteHost:h,siteOptions:I,isProduction:c});export{g as B,u as C,R as D,A as E,N as F,C as I,O as L,S as Q,p as S,m as T,_ as U,L as a,y as b,T as c,r as d,h as e,P as i,I as s};
@@ -0,0 +1 @@
1
+ import{_ as o}from"./tslib.es6-c990ebbd.js";import t from"react";import{Indicator as s}from"@mantine/core";import"dayjs";import"./screenSizeContext-2fd9933a.js";import"styled-components";import{t as e}from"./theme-3f5fb9b4.js";import"./index-93383cf3.js";import"./isProduction-51e5a882.js";import"./Onboarding-232ac075.js";import"./gAssets.js";const r=r=>{var{styles:i,color:n=e.colors.red700}=r,a=o(r,["styles","color"]);return t.createElement(s,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},a))};export{r as I};
@@ -1 +1 @@
1
- import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-17999cc6.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};
1
+ import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-232ac075.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};