@hhgtech/hhg-components 1.27.62 → 1.27.63

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 (272) hide show
  1. package/build/babyGrowth.js +122 -17
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/index.d.ts +0 -4
  5. package/build/components/{atoms → babyGrowth/babyGrowthChooseProfileDrawer}/newBabyProfileRadio/index.d.ts +1 -1
  6. package/build/components.js +1 -1
  7. package/build/constants.js +1 -1
  8. package/build/{core-ed57d5b7.js → core-3c2534b4.js} +1 -1
  9. package/build/{dataTransform-3239bfec.js → dataTransform-34c3a610.js} +1 -1
  10. package/build/ecom.js +1 -1
  11. package/build/esm/babyGrowth.js +122 -17
  12. package/build/esm/cache.js +1 -1
  13. package/build/esm/care.js +1 -1
  14. package/build/esm/components/atoms/index.d.ts +0 -4
  15. package/build/esm/components/{atoms → babyGrowth/babyGrowthChooseProfileDrawer}/newBabyProfileRadio/index.d.ts +1 -1
  16. package/build/esm/components.js +1 -1
  17. package/build/esm/constants.js +1 -1
  18. package/build/esm/{core-68a9d98a.js → core-fb32fa44.js} +1 -1
  19. package/build/esm/{dataTransform-97e4d293.js → dataTransform-7728edfe.js} +1 -1
  20. package/build/esm/ecom.js +1 -1
  21. package/build/esm/{fixedBottomAdBlock-f18e85d4.js → fixedBottomAdBlock-0f7402ad.js} +1 -1
  22. package/build/esm/footer.js +1 -1
  23. package/build/esm/gAssets.js +1 -1
  24. package/build/esm/getDynamicHealthTool-278c363e.js +1 -0
  25. package/build/esm/{getSocialList-c8298308.js → getSocialList-62ecf673.js} +1 -1
  26. package/build/esm/hooks.js +1 -1
  27. package/build/esm/i18n.js +1 -1
  28. package/build/esm/i18nV2.js +1 -1
  29. package/build/esm/{index-f93a4f7a.js → index-14497882.js} +1 -1
  30. package/build/esm/{index-7d937042.js → index-159eb35a.js} +1 -1
  31. package/build/esm/{index-8ff39caf.js → index-1e0399b8.js} +1 -1
  32. package/build/esm/{index-809f539e.js → index-34ccbed3.js} +1 -1
  33. package/build/esm/{index-2ff653b5.js → index-58f1c04c.js} +1 -1
  34. package/build/esm/{index-684133d2.js → index-5bfac6f6.js} +1 -1
  35. package/build/esm/index-65f9a5d1.js +1 -0
  36. package/build/esm/index-6bf23069.js +1 -0
  37. package/build/esm/index-73a035be.js +1 -0
  38. package/build/esm/{index-5cfdaa22.js → index-755fcc76.js} +1 -1
  39. package/build/esm/{index-22d6fc10.js → index-ae97141b.js} +1 -1
  40. package/build/esm/{index-f9fb7108.js → index-b3ca9aee.js} +1 -1
  41. package/build/esm/{index-4d5ae1fa.js → index-bc49d8ed.js} +2 -2
  42. package/build/esm/{index-ba4bde77.js → index-be00d57f.js} +1 -1
  43. package/build/esm/{index-6d5d9daa.js → index-be7f337b.js} +1 -1
  44. package/build/esm/index-bf3440a9.js +1 -0
  45. package/build/esm/{index-30e03a57.js → index-c0310544.js} +1 -1
  46. package/build/esm/index-c476cd5f.js +1 -0
  47. package/build/esm/{index-2222b966.js → index-d1fcb2f3.js} +6 -6
  48. package/build/esm/{index-9702a35f.js → index-e05f213d.js} +1 -1
  49. package/build/esm/{index-72a93e65.js → index-f23d2ac2.js} +1 -1
  50. package/build/esm/{index-08f0cf74.js → index-f3cb6311.js} +1 -1
  51. package/build/esm/index.js +1 -1
  52. package/build/esm/{index.styled-bb0e8f22.js → index.styled-5622019d.js} +4 -4
  53. package/build/esm/{index.styled-351754ba.js → index.styled-83a48076.js} +3 -3
  54. package/build/esm/{index.styled-4cfbee8b.js → index.styled-ece06d74.js} +14 -14
  55. package/build/esm/lead.js +1 -1
  56. package/build/esm/mantine.js +1 -1
  57. package/build/esm/misc.js +1 -1
  58. package/build/esm/navigation.js +1 -1
  59. package/build/esm/onboarding.js +1 -1
  60. package/build/esm/onboardingV2.js +6 -6
  61. package/build/esm/pwg.js +2 -2
  62. package/build/esm/{routing-a5352b40.js → routing-55df71ec.js} +1 -1
  63. package/build/esm/{screenSizeContext-491c78ad.js → screenSizeContext-73847cbc.js} +3 -3
  64. package/build/esm/together.js +1 -1
  65. package/build/esm/{types-3618dc5f.js → types-2ddae413.js} +1 -1
  66. package/build/esm/{types-13eef9c1.js → types-993fae95.js} +9 -9
  67. package/build/esm/types.js +1 -1
  68. package/build/esm/useHealthToolCache-407fdaf8.js +1 -0
  69. package/build/esm/{useRafState-60354a42.js → useRafState-ef4c640a.js} +1 -1
  70. package/build/esm/{useTranslations-fa0feb0e.js → useTranslations-fc5ada3b.js} +1 -1
  71. package/build/esm/{utils-3b0f0e5d.js → utils-2f67c22e.js} +1 -1
  72. package/build/esm/{utils-a9bb3a5c.js → utils-80b5125d.js} +57 -162
  73. package/build/esm/vaccination.js +5 -5
  74. package/build/{fixedBottomAdBlock-2466257c.js → fixedBottomAdBlock-ae45b6ce.js} +1 -1
  75. package/build/footer.js +1 -1
  76. package/build/gAssets.js +1 -1
  77. package/build/{getDynamicHealthTool-a5d0b199.js → getDynamicHealthTool-79c02fde.js} +1 -1
  78. package/build/{getSocialList-11d11fc4.js → getSocialList-36e95a94.js} +1 -1
  79. package/build/hooks.js +1 -1
  80. package/build/i18n.js +1 -1
  81. package/build/i18nV2.js +1 -1
  82. package/build/{index-450e3bcc.js → index-0907febb.js} +1 -1
  83. package/build/{index-8e2cf832.js → index-124d9ea4.js} +1 -1
  84. package/build/{index-c2be3c89.js → index-2002abf1.js} +1 -1
  85. package/build/{index-e67aa8cc.js → index-223774a0.js} +1 -1
  86. package/build/{index-91ea9353.js → index-2a187e8a.js} +1 -1
  87. package/build/{index-c53111fa.js → index-66525be3.js} +2 -2
  88. package/build/{index-c33e5fa0.js → index-79d40f6b.js} +1 -1
  89. package/build/index-7a000b10.js +1 -0
  90. package/build/{index-21266c39.js → index-82e3c7ee.js} +1 -1
  91. package/build/{index-f819dbd6.js → index-851dc200.js} +1 -1
  92. package/build/{index-17912d82.js → index-90e7d1fb.js} +1 -1
  93. package/build/{index-a122a222.js → index-96cc1109.js} +1 -1
  94. package/build/{index-3dce5c4d.js → index-975e823d.js} +1 -1
  95. package/build/{index-7cae7cfb.js → index-a3975029.js} +1 -1
  96. package/build/{index-535692c1.js → index-af139f2c.js} +1 -1
  97. package/build/{index-486e1255.js → index-bbee939d.js} +1 -1
  98. package/build/{index-aade58db.js → index-c3406e04.js} +1 -1
  99. package/build/{index-a42c1126.js → index-da8873b6.js} +1 -1
  100. package/build/{index-f45e018d.js → index-dc95faf3.js} +1 -1
  101. package/build/{index-67b07569.js → index-e607b764.js} +1 -1
  102. package/build/{index-88888ef8.js → index-f0786bb6.js} +1 -1
  103. package/build/index-f3cd3d0d.js +1 -0
  104. package/build/index.js +1 -1
  105. package/build/{index.styled-e21a03f7.js → index.styled-0bda59df.js} +2 -2
  106. package/build/{index.styled-546da2a3.js → index.styled-e6c5ca10.js} +4 -4
  107. package/build/{index.styled-87d5668d.js → index.styled-febe5640.js} +1 -1
  108. package/build/lead.js +1 -1
  109. package/build/mantine.js +1 -1
  110. package/build/misc.js +1 -1
  111. package/build/navigation.js +1 -1
  112. package/build/onboarding.js +1 -1
  113. package/build/onboardingV2.js +1 -1
  114. package/build/pwg.js +1 -1
  115. package/build/{routing-e1293a44.js → routing-b3267f9f.js} +1 -1
  116. package/build/{screenSizeContext-b12b1126.js → screenSizeContext-f4df1525.js} +1 -1
  117. package/build/together.js +1 -1
  118. package/build/{types-fcc3b33c.js → types-1a74fcda.js} +1 -1
  119. package/build/{types-e739b7e5.js → types-edc9df3a.js} +1 -1
  120. package/build/types.js +1 -1
  121. package/build/{useHealthToolCache-5df64ef0.js → useHealthToolCache-f0a1ce86.js} +1 -1
  122. package/build/{useRafState-6c740aa4.js → useRafState-a4d233e3.js} +1 -1
  123. package/build/{useTranslations-3a12f7f4.js → useTranslations-9dd72b67.js} +1 -1
  124. package/build/{utils-f24f30a2.js → utils-4766eefa.js} +15 -120
  125. package/build/{utils-03bb818c.js → utils-4da1dcaa.js} +1 -1
  126. package/build/vaccination.js +1 -1
  127. package/package.json +1 -1
  128. package/build/esm/getDynamicHealthTool-8974c573.js +0 -1
  129. package/build/esm/index-5c0bcbff.js +0 -1
  130. package/build/esm/index-9428763e.js +0 -1
  131. package/build/esm/index-b26629ef.js +0 -1
  132. package/build/esm/index-c5489dc0.js +0 -1
  133. package/build/esm/index-cf0b326d.js +0 -1
  134. package/build/esm/useHealthToolCache-f4e0e409.js +0 -1
  135. package/build/index-70c4567f.js +0 -1
  136. package/build/index-ed4f3133.js +0 -1
  137. /package/build/{BMI_BOYS.percentile.monthly-68c42a4b.js → BMI_BOYS.percentile.monthly-7edae6b0.js} +0 -0
  138. /package/build/{BMI_BOYS.percentile.weekly-f606d0bd.js → BMI_BOYS.percentile.weekly-a2f775b2.js} +0 -0
  139. /package/build/{BMI_BOYS.percentile.yearly-833b27ca.js → BMI_BOYS.percentile.yearly-91cf3ea8.js} +0 -0
  140. /package/build/{BMI_BOYS.zscore.monthly-f8f30b8c.js → BMI_BOYS.zscore.monthly-762a118a.js} +0 -0
  141. /package/build/{BMI_BOYS.zscore.weekly-ddd56d75.js → BMI_BOYS.zscore.weekly-020fd45f.js} +0 -0
  142. /package/build/{BMI_BOYS.zscore.yearly-61c548df.js → BMI_BOYS.zscore.yearly-4ea4a49b.js} +0 -0
  143. /package/build/{BMI_GIRLS.percentile.monthly-6715ad32.js → BMI_GIRLS.percentile.monthly-f59b7fec.js} +0 -0
  144. /package/build/{BMI_GIRLS.percentile.weekly-90cebd21.js → BMI_GIRLS.percentile.weekly-9e5c0638.js} +0 -0
  145. /package/build/{BMI_GIRLS.percentile.yearly-ad487b48.js → BMI_GIRLS.percentile.yearly-40763bf7.js} +0 -0
  146. /package/build/{BMI_GIRLS.zscore.monthly-31e92c9c.js → BMI_GIRLS.zscore.monthly-3e29e614.js} +0 -0
  147. /package/build/{BMI_GIRLS.zscore.weekly-7a2e8766.js → BMI_GIRLS.zscore.weekly-cec195f2.js} +0 -0
  148. /package/build/{BMI_GIRLS.zscore.yearly-0e36f06e.js → BMI_GIRLS.zscore.yearly-c9b7f8cd.js} +0 -0
  149. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-bc5bcde9.js → HEAD CIRCUM_BOYS.percentile.monthly-4dbb11a5.js} +0 -0
  150. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8656f36b.js → HEAD CIRCUM_BOYS.percentile.weekly-a6677734.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d9b77124.js → HEAD CIRCUM_BOYS.percentile.yearly-55bcdc02.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-9ff50353.js → HEAD CIRCUM_BOYS.zscore.monthly-abb118d5.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a611f88c.js → HEAD CIRCUM_BOYS.zscore.weekly-07205609.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-2984e847.js → HEAD CIRCUM_BOYS.zscore.yearly-8b55414d.js} +0 -0
  155. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d4ee16ca.js → HEAD CIRCUM_GIRLS.percentile.monthly-24b19a96.js} +0 -0
  156. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-66086383.js → HEAD CIRCUM_GIRLS.percentile.weekly-0ec151cc.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ca066739.js → HEAD CIRCUM_GIRLS.percentile.yearly-dffbcde2.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-56e9e4c6.js → HEAD CIRCUM_GIRLS.zscore.monthly-e5eaa3fc.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-361272fe.js → HEAD CIRCUM_GIRLS.zscore.weekly-8c79c5cc.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-e2af913b.js → HEAD CIRCUM_GIRLS.zscore.yearly-f9cbaac6.js} +0 -0
  161. /package/build/{HEIGHT_BOYS.percentile.monthly-d1b3481d.js → HEIGHT_BOYS.percentile.monthly-fc39af10.js} +0 -0
  162. /package/build/{HEIGHT_BOYS.percentile.weekly-9baa4346.js → HEIGHT_BOYS.percentile.weekly-8c94fb81.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.percentile.yearly-83e29938.js → HEIGHT_BOYS.percentile.yearly-67fda8a7.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.zscore.monthly-41266898.js → HEIGHT_BOYS.zscore.monthly-cb92918b.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.zscore.weekly-bbea8902.js → HEIGHT_BOYS.zscore.weekly-ad926420.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.zscore.yearly-120013b0.js → HEIGHT_BOYS.zscore.yearly-561a8d44.js} +0 -0
  167. /package/build/{HEIGHT_GIRLS.percentile.monthly-07fa7800.js → HEIGHT_GIRLS.percentile.monthly-69dcd67a.js} +0 -0
  168. /package/build/{HEIGHT_GIRLS.percentile.weekly-e070c484.js → HEIGHT_GIRLS.percentile.weekly-6e631303.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.percentile.yearly-e67ad19e.js → HEIGHT_GIRLS.percentile.yearly-f6aebf67.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.zscore.monthly-f7802ad1.js → HEIGHT_GIRLS.zscore.monthly-7ed59e9a.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.zscore.weekly-ce6f6d34.js → HEIGHT_GIRLS.zscore.weekly-b3aebd2f.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.zscore.yearly-251d9d2b.js → HEIGHT_GIRLS.zscore.yearly-7a7725c6.js} +0 -0
  173. /package/build/{Onboarding-20c7c4cf.js → Onboarding-b1ce9fc5.js} +0 -0
  174. /package/build/{Visible-c1a5f7fc.js → Visible-8745c79f.js} +0 -0
  175. /package/build/{WEIGHT_BOYS.percentile.monthly-cda6d708.js → WEIGHT_BOYS.percentile.monthly-b0bd06e4.js} +0 -0
  176. /package/build/{WEIGHT_BOYS.percentile.weekly-b7297501.js → WEIGHT_BOYS.percentile.weekly-68851dae.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.percentile.yearly-6b0d1320.js → WEIGHT_BOYS.percentile.yearly-e7a67889.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.zscore.monthly-5de18c77.js → WEIGHT_BOYS.zscore.monthly-6d49c7c5.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.zscore.weekly-9e48f3c9.js → WEIGHT_BOYS.zscore.weekly-122f4e5b.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.zscore.yearly-05899c32.js → WEIGHT_BOYS.zscore.yearly-41e6a005.js} +0 -0
  181. /package/build/{WEIGHT_GIRLS.percentile.monthly-62e802cc.js → WEIGHT_GIRLS.percentile.monthly-6cb2e977.js} +0 -0
  182. /package/build/{WEIGHT_GIRLS.percentile.weekly-a2e1ad51.js → WEIGHT_GIRLS.percentile.weekly-dae606cb.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.percentile.yearly-6ed8a188.js → WEIGHT_GIRLS.percentile.yearly-c60fd86c.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.zscore.monthly-6bb76633.js → WEIGHT_GIRLS.zscore.monthly-c64b34bb.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.zscore.weekly-decaf9be.js → WEIGHT_GIRLS.zscore.weekly-6098ff7d.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.zscore.yearly-98507cd4.js → WEIGHT_GIRLS.zscore.yearly-e919f873.js} +0 -0
  187. /package/build/components/{atoms → babyGrowth/babyGrowthChooseProfileDrawer}/newBabyProfileRadio/index.styled.d.ts +0 -0
  188. /package/build/{constants-b2fec243.js → constants-ca2e8ac5.js} +0 -0
  189. /package/build/{cookieHelper-9b926906.js → cookieHelper-c6ee4930.js} +0 -0
  190. /package/build/{dataTransform-8b68513b.js → dataTransform-4352b00a.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.percentile.monthly-5940b71e.js → BMI_BOYS.percentile.monthly-bc7f7fa4.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.percentile.weekly-7392f46c.js → BMI_BOYS.percentile.weekly-baadb64f.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.percentile.yearly-f67aafc8.js → BMI_BOYS.percentile.yearly-e7349354.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.zscore.monthly-c91f8221.js → BMI_BOYS.zscore.monthly-1160b3d1.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.zscore.weekly-2cb07179.js → BMI_BOYS.zscore.weekly-d5d4e209.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.zscore.yearly-574788b4.js → BMI_BOYS.zscore.yearly-817441b9.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.percentile.monthly-6e88cf70.js → BMI_GIRLS.percentile.monthly-3be40316.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.percentile.weekly-90718608.js → BMI_GIRLS.percentile.weekly-8ec5312c.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.percentile.yearly-82616228.js → BMI_GIRLS.percentile.yearly-6a3cf831.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.zscore.monthly-27ac5264.js → BMI_GIRLS.zscore.monthly-f096052f.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.zscore.weekly-d50044d3.js → BMI_GIRLS.zscore.weekly-6f787231.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.zscore.yearly-f6ee504f.js → BMI_GIRLS.zscore.yearly-f5703f4e.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c0a6a6df.js → HEAD CIRCUM_BOYS.percentile.monthly-0d3faab4.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-1f592b9c.js → HEAD CIRCUM_BOYS.percentile.weekly-d74d0de6.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-64b65e8d.js → HEAD CIRCUM_BOYS.percentile.yearly-4ac4e5a9.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-0994eda2.js → HEAD CIRCUM_BOYS.zscore.monthly-cc6fb183.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-3451b651.js → HEAD CIRCUM_BOYS.zscore.weekly-80b73981.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-4f597730.js → HEAD CIRCUM_BOYS.zscore.yearly-a8e52858.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-5709bb6d.js → HEAD CIRCUM_GIRLS.percentile.monthly-a50ea344.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c2ec1731.js → HEAD CIRCUM_GIRLS.percentile.weekly-6f46a543.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e6b300ea.js → HEAD CIRCUM_GIRLS.percentile.yearly-0c74c093.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-2617f925.js → HEAD CIRCUM_GIRLS.zscore.monthly-d994c857.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-d5037792.js → HEAD CIRCUM_GIRLS.zscore.weekly-f3467ce8.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-5b1c6662.js → HEAD CIRCUM_GIRLS.zscore.yearly-f2d29a69.js} +0 -0
  215. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-edc1f841.js → HEIGHT_BOYS.percentile.monthly-e0b5f9e2.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-c94273cd.js → HEIGHT_BOYS.percentile.weekly-fc728215.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b1a571c7.js → HEIGHT_BOYS.percentile.yearly-75d18b83.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9013fe1e.js → HEIGHT_BOYS.zscore.monthly-c941cb1e.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e7b0a905.js → HEIGHT_BOYS.zscore.weekly-4942fb03.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a0a63aa7.js → HEIGHT_BOYS.zscore.yearly-29ca25df.js} +0 -0
  221. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e5263708.js → HEIGHT_GIRLS.percentile.monthly-b41d4360.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8937ef44.js → HEIGHT_GIRLS.percentile.weekly-6339978c.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-1f95cba4.js → HEIGHT_GIRLS.percentile.yearly-cd62e570.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ea71c3b4.js → HEIGHT_GIRLS.zscore.monthly-5aaf189a.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-90d075f8.js → HEIGHT_GIRLS.zscore.weekly-f1611d6e.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-bcf4689d.js → HEIGHT_GIRLS.zscore.yearly-a3085a74.js} +0 -0
  227. /package/build/esm/{Onboarding-d141e0b5.js → Onboarding-592dea4f.js} +0 -0
  228. /package/build/esm/{Visible-186cf596.js → Visible-9fde4cfe.js} +0 -0
  229. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-60b9e3a5.js → WEIGHT_BOYS.percentile.monthly-87df740f.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-1e3190c1.js → WEIGHT_BOYS.percentile.weekly-046b8123.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b89d6f19.js → WEIGHT_BOYS.percentile.yearly-6877e8df.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-b229b3ed.js → WEIGHT_BOYS.zscore.monthly-f42d40ef.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6cef3a05.js → WEIGHT_BOYS.zscore.weekly-87a45b3a.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-b83a2c14.js → WEIGHT_BOYS.zscore.yearly-e8975f8e.js} +0 -0
  235. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-f6459c34.js → WEIGHT_GIRLS.percentile.monthly-2cdf9c46.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9a44163b.js → WEIGHT_GIRLS.percentile.weekly-cfd4690b.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-22605780.js → WEIGHT_GIRLS.percentile.yearly-d7cc0e9d.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-31c34a1f.js → WEIGHT_GIRLS.zscore.monthly-2b5fd51f.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-acfd060a.js → WEIGHT_GIRLS.zscore.weekly-425d08ee.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-05fde4ca.js → WEIGHT_GIRLS.zscore.yearly-157b0732.js} +0 -0
  241. /package/build/esm/components/{atoms → babyGrowth/babyGrowthChooseProfileDrawer}/newBabyProfileRadio/index.styled.d.ts +0 -0
  242. /package/build/esm/{constants-36caa50f.js → constants-57b85347.js} +0 -0
  243. /package/build/esm/{cookieHelper-d2f45634.js → cookieHelper-a61f145b.js} +0 -0
  244. /package/build/esm/{dataTransform-53c70c90.js → dataTransform-ec91d564.js} +0 -0
  245. /package/build/esm/{index-f50e4b07.js → index-f32973b6.js} +0 -0
  246. /package/build/esm/{isProduction-ac82d29d.js → isProduction-2f2a254f.js} +0 -0
  247. /package/build/esm/{localizeNumberFormat-3f4b0b91.js → localizeNumberFormat-0e4fc477.js} +0 -0
  248. /package/build/esm/{normalizeLink-27470307.js → normalizeLink-fbc09916.js} +0 -0
  249. /package/build/esm/{paths-519731fc.js → paths-3eb0ea12.js} +0 -0
  250. /package/build/esm/{theme-484b917f.js → theme-1af15451.js} +0 -0
  251. /package/build/esm/{translationsContext-1959ec3c.js → translationsContext-d9be310d.js} +0 -0
  252. /package/build/esm/{tslib.es6-ca4c7924.js → tslib.es6-01eae420.js} +0 -0
  253. /package/build/esm/{types-8a77a66e.js → types-fe86acdb.js} +0 -0
  254. /package/build/esm/{useIsInit-1a3c0a8f.js → useIsInit-b305c968.js} +0 -0
  255. /package/build/esm/{useOutsideClick-47395bcc.js → useOutsideClick-f2098c7b.js} +0 -0
  256. /package/build/esm/{useScrollbarSize-893c05d4.js → useScrollbarSize-b1db9f16.js} +0 -0
  257. /package/build/esm/{useUniqueId-7ea33e1d.js → useUniqueId-f61c11f2.js} +0 -0
  258. /package/build/esm/{utils-10c2f620.js → utils-5e9f366f.js} +0 -0
  259. /package/build/{index-b62e5d17.js → index-50c3e071.js} +0 -0
  260. /package/build/{isProduction-cd92fd15.js → isProduction-1f2830f9.js} +0 -0
  261. /package/build/{localizeNumberFormat-5838788e.js → localizeNumberFormat-bf39f666.js} +0 -0
  262. /package/build/{normalizeLink-561b9daf.js → normalizeLink-c2eb5765.js} +0 -0
  263. /package/build/{paths-7ca57787.js → paths-fc4b2aaa.js} +0 -0
  264. /package/build/{theme-b788c923.js → theme-1b825e83.js} +0 -0
  265. /package/build/{translationsContext-1d56460b.js → translationsContext-76749ce1.js} +0 -0
  266. /package/build/{tslib.es6-8c3251be.js → tslib.es6-3d2a248b.js} +0 -0
  267. /package/build/{types-f0731b29.js → types-8642cda8.js} +0 -0
  268. /package/build/{useIsInit-7b651ad5.js → useIsInit-0e52464a.js} +0 -0
  269. /package/build/{useOutsideClick-c0223d3b.js → useOutsideClick-89067af2.js} +0 -0
  270. /package/build/{useScrollbarSize-e98e05b5.js → useScrollbarSize-7ae15d80.js} +0 -0
  271. /package/build/{useUniqueId-7327a422.js → useUniqueId-72be3b62.js} +0 -0
  272. /package/build/{utils-1ac83567.js → utils-009745cf.js} +0 -0
@@ -1 +1 @@
1
- import{_ as e,a as t}from"./tslib.es6-ca4c7924.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as o,useContext as r,useCallback as s}from"react";import{g as c}from"./core-68a9d98a.js";import{CommonGAssets as m}from"./gAssets.js";import{I as d}from"./index-5cfdaa22.js";import{a as h}from"./useUniqueId-7ea33e1d.js";import{S as u,a as g,b as p,c as v,d as E,e as f,f as y,g as w,T as C,N as b,h as L,i as k,j as M,k as P,l as H,m as N,n as x,o as B,p as T,q as A,r as _,s as R,t as S,u as O,v as U,w as V,x as j,y as Z,z as $,A as I,B as F,C as D,D as z,E as G,F as W,G as q,H as K,I as Q,J as Y,K as J,L as X,M as ee,O as te,P as le,Q as ae,R as ne,V as ie,W as oe,X as re,Y as se,Z as ce,_ as me,$ as de,a0 as he,a1 as ue,a2 as ge,a3 as pe,a4 as ve,a5 as Ee,a6 as fe,a7 as ye,a8 as we,a9 as Ce,aa as be,ab as Le,ac as ke,ad as Me,ae as Pe,af as He,ag as Ne,ah as xe,ai as Be,aj as Te}from"./index.styled-4cfbee8b.js";import{T as Ae}from"./index-30e03a57.js";import{d as _e,L as Re,S as Se,U as Oe,T as Ue,C as Ve}from"./index-72a93e65.js";import{n as je,a as Ze}from"./normalizeLink-27470307.js";import{c as $e,b as Ie,d as Fe}from"./routing-a5352b40.js";import{P as De,b as ze,c as Ge}from"./dataTransform-97e4d293.js";import{L as We}from"./index-7d937042.js";import{u as qe}from"./useTranslations-fa0feb0e.js";import Ke from"lodash/throttle";import{g as Qe}from"./utils-10c2f620.js";import{Z as Ye,W as Je,Q as Xe,_ as et,O as tt,P as lt,H as at,C as nt}from"./utils-a9bb3a5c.js";import{t as it}from"./theme-484b917f.js";import{g as ot}from"./cookieHelper-d2f45634.js";import{B as rt}from"./index-f9fb7108.js";import{Portal as st}from"@mantine/core";import"./index-08f0cf74.js";import"@mantine/hooks";import"@mantine/dates";import"./Onboarding-d141e0b5.js";import"dayjs";import"./screenSizeContext-491c78ad.js";import"styled-components";import"./isProduction-ac82d29d.js";import ct from"lodash/debounce";import{L as mt}from"./constants-36caa50f.js";import dt from"string-format";import{I as ht}from"./index-9428763e.js";import{u as ut}from"./useIsInit-1a3c0a8f.js";const gt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},pt=({type:e="square",size:t,avatarImg:i,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:m,className:h,width:u,height:g,alt:p})=>{const v=t?gt[t]:void 0,[E,f]=a(!1);n((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{f(!0)}))}}),[o,f]);const y=(!o&&!i||E)&&r;return l.createElement(Ye,{style:Object.assign(Object.assign({},m),{"--size":v?v+"px":void 0,"--width-prop":u?u+"px":void 0,"--height-prop":g?g+"px":void 0,"--background-color":s}),"data-has-max":!(!u||!g),"data-avatar-type":e,onClick:c,className:h,avatarUrl:o,"data-custom-size":!!t},i,o&&!E&&l.createElement(d,{src:o,alt:p||"avatar"}),y&&r)},vt=e=>l.createElement(d,Object.assign({alt:"round cambodia flag",src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Et=e=>l.createElement(d,Object.assign({alt:"square cambodia flag",src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ft=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),l.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),l.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),l.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),l.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),l.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),l.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),l.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),l.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),l.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),l.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),l.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),l.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),l.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),l.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),l.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),l.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),l.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),l.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),l.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),l.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),l.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),l.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),yt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},l.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),l.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),l.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),l.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),l.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),l.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),l.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),l.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),l.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),l.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),wt=e=>l.createElement(d,Object.assign({alt:"round india flag",src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Ct=e=>l.createElement(d,Object.assign({alt:"square indian flag",src:m.getAssetPath("flags/indiaSquare.png")},e)),bt=t=>{var a=e(t,[]);const n=h();return l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("g",{mask:`url(#${n})`},l.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),l.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},Lt=t=>{var a=e(t,[]);const n=h();return l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("g",{clipPath:`url(#${n})`},l.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),l.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:n},l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},kt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),l.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),l.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),l.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),l.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),l.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),Ht=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),l.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),l.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Nt=e=>l.createElement(d,Object.assign({alt:"round philippines flag",src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),xt=e=>l.createElement(d,Object.assign({alt:"square philippines flag",src:m.getAssetPath("flags/philippineSquare.png")},e)),Bt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),l.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),l.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Tt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),l.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),At=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),l.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),_t=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),l.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),Rt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),l.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),St=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("clipPath",null,l.createElement("rect",{width:"24",height:"16",fill:"white"})),l.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),l.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Ot="pfaLGRK";const Ut=({country:e,language:t,rounded:a,height:n,width:i,isTesting:o})=>{let r,s;switch(t){case"en":r=l.createElement(yt,null),s=l.createElement(ft,null);break;case"vi":r=l.createElement(St,null),s=l.createElement(Rt,null);break;case"id":r=l.createElement(Lt,{isTesting:o}),s=l.createElement(bt,{isTesting:o});break;case"th":r=l.createElement(_t,null),s=l.createElement(At,null);break;case"km":r=l.createElement(Et,null),s=l.createElement(vt,null);break;case"ms":r=l.createElement(Mt,null),s=l.createElement(kt,null);break;case"my":r=l.createElement(Ht,null),s=l.createElement(Pt,null);break;case"tl":r=l.createElement(xt,null),s=l.createElement(Nt,null);break;case"hi":r=l.createElement(Ct,null),s=l.createElement(wt,null);break;case"zh":r=l.createElement(Tt,null),s=l.createElement(Bt,null)}if(!r&&!s)switch(e){case"VN":r=l.createElement(St,null),s=l.createElement(Rt,null);break;case"ID":r=l.createElement(Lt,{isTesting:o}),s=l.createElement(bt,{isTesting:o});break;case"TH":r=l.createElement(_t,null),s=l.createElement(At,null);break;case"KH":r=l.createElement(Et,null),s=l.createElement(vt,null);break;case"MY":r=l.createElement(Mt,null),s=l.createElement(kt,null);break;case"MM":r=l.createElement(Ht,null),s=l.createElement(Pt,null);break;case"PH":r=l.createElement(xt,null),s=l.createElement(Nt,null);break;case"IN":r=l.createElement(Ct,null),s=l.createElement(wt,null);break;case"TW":r=l.createElement(Tt,null),s=l.createElement(Bt,null)}return l.createElement("div",{className:Ot,style:{"--width":i||20,"--height":n||20}},a?s:r)},Vt=["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"],jt=(e="")=>Vt.some((t=>new URL(e).origin.endsWith(t))),Zt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:r=!0,style:s={},showIndicator:c=!0})=>{const[d,h]=a(!1);return l.createElement(l.Fragment,null,l.createElement(u,null,l.createElement(g,{onClick:()=>h((e=>!e))},t||(null==n?void 0:n(d))||null,l.createElement(p,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>l.createElement(v,{key:t,"data-selected":r&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),h((e=>!e))),t.stopPropagation()}},l.createElement(Ae,{size:"p3"},e.label),r&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),d&&l.createElement(E,{onClick:()=>h(!1)}))},$t=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(Zt,{options:e,selected:i.value,label:l.createElement(It,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[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},It=({locale:e,label:t,href:a})=>{var n,i,o;return l.createElement(f,{href:a},l.createElement(Ut,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),l.createElement("span",null,t))},Ft=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:o})=>{const[r,s]=i((()=>Qe(t)),[t]);return l.createElement(y,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},Dt=e=>{const{allowBgScroll:t}=e||{},l=o();return{containerRef:l,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur())}}},zt=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:o=!0,targetAvatar:r,id:s,className:c})=>l.createElement(w,{"data-open":a,"data-type":e,"data-animation":o,"data-target":r,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Gt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Wt="uJQBNNg",qt="TfG3dM5",Kt="aMtjFNf",Qt="cSz2RR-",Yt="GyFm00F";function Jt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=qe(),o=i((()=>{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 l.createElement("div",{className:Wt,onClick:()=>{t&&t()}},l.createElement(pt,{className:qt,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===a?it.mbColors.pink:it.colors.secondaryBase}),l.createElement("div",{className:Kt},l.createElement("div",{className:Qt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Yt,style:{"--bg-hellosites":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Xt="gn6HmGG",el="FCx8FEM",tl="zMiRxaE",ll="lZ2Z9MQ",al="rwm-agG",nl="qMOscoq";const il=({themeName:e,locale:t,onClickItem:n})=>{const[o,r]=a(""),s=i((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:m.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:m.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:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?r((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:Xt},s.map((e=>l.createElement(ol,{key:e.key,item:e,openKey:o,onClickItem:c,locale:t}))))},ol=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:o}=qe();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${el} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:tl,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:ll,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&l.createElement("div",{className:al,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:nl},e.subMenu.map((e=>l.createElement(ol,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var rl="-AZt1au",sl="IvSIfCI",cl="eahCJov",ml="XIyViFs",dl="_4y-O0w3",hl="kO8iNgD",ul="a1d4E10",gl="Tdguxxf",pl="-mOxsaU",vl="yPeDBNZ";const El={helloSites:{member:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},fl=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=qe(),o=i((()=>{var l,a;return(null===(a=null===(l=El[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:dl,"data-user-rank":t},l.createElement("div",{className:hl},l.createElement("div",{className:ul},l.createElement("div",{className:gl,style:{backgroundImage:`url("${o}")`}}),l.createElement("h3",{className:pl},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:vl},a," ",n("userProfile.nav.header.count.posts")))))},yl=e=>{var t,l,a,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=>yl(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===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.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}:{}},wl=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Cl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},bl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},Ll=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=mt[l])||void 0===a?void 0:a.ALL}/${(null===(n=mt[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},kl=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}:{},Ml=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},Pl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:o="helloSites",cardUrls:r=Gt,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:h,userInfo:u,togetherApiDomain:g,userPostsNumber:p,onClickNavigationCard:v,onClickMyProfileButton:E,onClickMenuItem:f,onClickLogout:y,isUserProfileNavigatorMenuHidden:w=!1,isMyHealthEnabled:L=!1,locale:k})=>{const{t:M}=qe(),[P,H]=a(p||0),N="marryBaby"===o;n((()=>{if(u&&void 0===p){const e=ot("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+dt(C.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${_e[e]}`})))(k,N,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&H((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[k,null!==u,p,g,N]);const x=i((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?L:"eCom"===e?d:"mySaved"!==e||h))}),[N,L]),B=i((()=>"marryBaby"===o?null:l.createElement(rt,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:ml},M("userProfile.nav.menu.logout"))),[o]),T=l=>{window.location.href=je(`${e}${t}/${l}`)},A=e=>{const t=r[e];v?v(t):T(t)};return u?l.createElement("div",{className:rl,"data-theme":o},l.createElement(Jt,{userInfo:u,themeName:o,onClickMyProfileButton:()=>{E?E():T("profile")}}),l.createElement(fl,{themeName:o,rank:"member",numberOfPosts:P}),l.createElement("div",{className:sl},x.map((e=>l.createElement(b,{className:cl,key:e,themeName:o,type:e,onClick:A})))),!w&&l.createElement(l.Fragment,null,l.createElement(il,{themeName:o,locale:k,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(f?f(e.link):T(e.link))}}),B)):null},Hl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:h,userProfileRouterPush:u,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p=!1,togetherApiDomain:v,locale:E})=>{const f=l=>{u?u(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},y=e=>{f(e),m()};return l.createElement(zt,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},l.createElement(Pl,{SSO_URL:e,UP_BASEPATH:t,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,onClickLogout:()=>{h&&(h(),m())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:()=>{f("profile"),m()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p,togetherApiDomain:v,locale:E}))},Nl=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:o}=qe();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(st,null,l.createElement(De,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},l.createElement(L,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),l.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,o("logout.popup.ask2")),l.createElement(k,{siteType:i},l.createElement(rt,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},o("logout.popup.button.logout")),l.createElement(rt,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},xl=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:r,currentUrl:s,isMinifyLogin:c,enableCare:d,enableTogether:h,enableEcom:u,isUserProfileNavigatorMenuHidden:g,UP_BASEPATH:p,isMyHealthEnabled:v,togetherApiDomain:E,onLogout:f,style:y,userProfileRouterPush:w,isLoading:C,locale:b,enableMySaved:L})=>{const{t:k}=qe(),[N,x]=a(!1),B=(null==e?void 0:e.name)||(null==e?void 0:e.username),[T,A]=a(!1);n((()=>{A(!0)}),[]);const{containerRef:_,onContainerFocus:R,onContainerBlur:S,onButtonMouseDown:O,onClose:U}=Dt();return C?l.createElement(Je,{size:"sm",color:"transparent",loading:C}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(M,{ref:_,style:y,tabIndex:0,onBlur:S,onFocus:R},l.createElement("div",{onMouseDown:O},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),l.createElement(Xe,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===i?it.mbColors.pink:it.colors.secondaryBase,placeholderText:B&&B.length?B[0].toUpperCase():"A"})),l.createElement(Hl,{UP_BASEPATH:p,SSO_URL:r,dispatchLogout:()=>{U(),x(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,enableMySaved:L,closePopup:U,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(Nl,{openLogoutPopup:N,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),x(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){x(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):l.createElement(P,{style:Object.assign({textDecoration:"none"},y),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:T?void 0:je(`${r}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(H,{onClick:o},l.createElement("img",{src:m.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):l.createElement(l.Fragment,null,"helloSites"===i&&l.createElement(Je,{className:"mobile-only",size:"sm",onClick:o,leftIcon:l.createElement(et,{useCurrentColor:!0,isSolid:!0,size:22}),styles:{root:{paddingLeft:"5px",paddingRight:"8px"},leftIcon:{marginRight:"5px"}}},k("navigation.loginJoin")),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},l.createElement(tt,{size:"p3",color:it.mbColors.pink},k("navigation.loginJoin"))),l.createElement(Je,{className:"login-btn",size:"md",onClick:o,leftIcon:l.createElement(et,{useCurrentColor:!0,isSolid:!0,size:22})},k("navigation.loginJoin"))))};var Bl="spdlGfq",Tl="vgS16jX";const Al=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(rt,{className:Bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):l.createElement("a",{href:a,className:`${Tl} care-button no-replace-click`},l.createElement(rt,{className:Bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var _l="y5VJdvw",Rl="oVhOSCy",Sl="pX8OXTM";function Ol({className:e}){return l.createElement("div",null,l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Ul({siteType:e,type:t,enableSearch:a,className:n}){return"helloSites"===e?l.createElement("div",null,l.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?m.getAssetPath("hamburgerMenuNewWithSearch.svg"):m.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n,loading:"lazy"})):l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},l.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 Vl=()=>{const{locale:e,configs:{statics:t},siteType:a}=r(N),{t:n}=qe();return l.createElement(lt,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:Re[e||"en-PH"]?Re[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:l.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},l.createElement(x,null))})};var jl="wnUb-dV",Zl="cjbOxWe",$l="gB4rp89";const Il=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:r}=Dt({allowBgScroll:!0}),s=ut();return!e.popupType&&e.link?l.createElement(Fl,{isNew:e.isNew},l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:Zl},e.name))):l.createElement(Fl,{isNew:e.isNew},l.createElement("div",{ref:a,className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:Zl},"care"===e.id&&l.createElement("a",{className:$l,href:je(e.link+"/")},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.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&&l.createElement("div",{className:jl},l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),l.isValidElement(t)?l.cloneElement(t,{onClose:r}):null))},Fl=({isNew:e,children:t})=>{const{t:a}=qe();return e?l.createElement(ht,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},Dl=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:o})=>{const{siteType:s}=r(N);return l.createElement(B,null,l.createElement(T,null,l.createElement(at,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(A,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i},!jt(i)&&{target:"_blank"},{"data-theme":s,key:t,onClick:n}),l.createElement("div",{className:"icon"},l.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),l.createElement(Fl,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(_,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&l.createElement(R,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(S,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(O,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},zl=({item:e,index:t=0})=>{var a;const{t:n}=qe(),{locale:i,configs:{statics:o}}=r(N);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(a=mt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},l.createElement("img",{src:m.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),l.createElement(V,null,l.createElement(j,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(Z,null,l.createElement($,null,e.name),l.createElement(I,null,e.description),l.createElement(F,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Gl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:o}=r(N);return l.createElement(D,{"data-theme":o},l.createElement(z,null,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(G,null,i&&l.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),l.createElement("div",null,e&&l.createElement(W,null,e),a&&l.createElement(q,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(rt,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},Wl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(N);return l.createElement(K,null,l.createElement(Q,null,l.createElement(at,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&l.createElement(Y,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),a)},ql=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=qe(),{siteType:n}=r(N);return l.createElement(Wl,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(l.Fragment,null,l.createElement(J,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(zl,{key:t,index:t,item:e})))),l.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},l.createElement("a",{href:t},l.createElement(rt,{theme:n,className:"survey-contact-submit",size:"md"},a("home.navigator.menu.care.homeButton"))))):l.createElement(Gl,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.homeButton"),icon:m.getAssetPath("community.svg")}))},Kl=({item:e,index:t=0})=>e?l.createElement(X,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},l.createElement(ee,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),l.createElement(te,null,e.title)):null,Ql=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=qe(),{configs:{statics:n}}=r(N);return l.createElement(Wl,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?l.createElement(le,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(Kl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(Gl,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:m.getAssetPath("Spotlight.svg")}))},Yl=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(N),{t:a}=qe();return l.createElement(Wl,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:Ze(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?l.createElement(ae,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(ne,{index:t,post:e,key:e.id})))):l.createElement(Gl,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:m.getAssetPath("community.svg")}))},Jl=({item:e,index:t=0})=>{const{t:a}=qe(),{configs:{statics:n}}=r(N);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(ie,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},l.createElement("img",{src:m.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(oe,null,l.createElement(re,null,e.title),l.createElement(se,null,e.subtitle),l.createElement(ce,null,a("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),l.createElement(me,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Xl=({item:e,index:t=0,color:a})=>{const{t:n}=qe(),{configs:{statics:i}}=r(N);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>l.createElement(ue,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>l.createElement(ge,null,l.createElement(pe,null,l.createElement(ve,null,e.title),l.createElement(Ee,null,e.subtitle)),l.createElement(fe,null,l.createElement("div",{className:"mobile-only"},n("home.seeMore")),l.createElement("img",{src:m.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return l.createElement(de,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":a},l.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.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"})),l.createElement("img",{src:m.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),l.createElement(he,null,l.createElement("div",{className:"mobile-only"},s()),l.createElement("div",{className:"desktop-only"},c())),l.createElement("div",{className:"mobile-only"},c()),l.createElement("div",{className:"desktop-only"},s()))},ea=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=qe(),n=["pink","orange","green"],{siteType:i}=r(N);return l.createElement(Wl,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&l.createElement(ye,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?l.createElement(Xl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Jl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(Gl,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},ta=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=r(N),{t:p}=qe();return l.createElement(we,{id:"categories-menu"},u?l.createElement(Ce,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},l.createElement(Vl,null)):null,l.createElement(be,null,l.createElement(Dl,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&l.createElement(Ql,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(ea,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}${(null===(a=Se[g])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===d&&l.createElement(ql,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=mt[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Yl,{spotlights:null==m?void 0:m.spotlights})))},la=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=r(N),{containerRef:i,onContainerFocus:o,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Dt();return l.createElement(Ft,{mediaQueryKey:"mbDown"},l.createElement("header",{className:_l},l.createElement("div",{className:Rl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:o},l.createElement("div",{className:Sl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(Ol,{className:"mobile-close-icon"}),l.createElement(Ul,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(ta,{menuItems:t,closePopup:m}))))};var aa="q3nL5cp",na="_2DNf80G",ia="Q-glX-n";const oa=({onClosePopup:e})=>l.createElement("div",{className:`${ia} close-btn`,onClick:e},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ra=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(nt,null,!i&&l.createElement("div",{className:na},l.createElement(oa,{onClosePopup:e})),l.createElement(nt,{className:aa},a))),sa=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:o}=qe(),{locale:s,configs:{statics:c}}=r(N);return l.createElement(ra,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Dl,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ll({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(ql,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(i=mt[s])||void 0===i?void 0:i.SPECIALTIES}/`}))},ca=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=qe(),{locale:o,configs:{statics:s}}=r(N);return l.createElement(ra,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Dl,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement(Ql,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},ma=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=qe(),{configs:{statics:o}}=r(N);return l.createElement(ra,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Dl,{hrefViewMore:Ze(o.TOGETHER_URL_FE),UrlFE:je(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),l.createElement(Yl,{spotlights:n}))},da=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=qe(),{configs:{statics:c}}=r(N),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=Se[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return l.createElement(ra,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Dl,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),l.createElement(ea,{spotlightHealthTools:n,hrefViewMore:m}))},ha=({onTopBarAppears:e,type:t="home",languageMenu:i,menuItems:c})=>{var d;const{siteType:h,isMobile:u=!1,locale:g,sitewideBanner:p,sitewideBannerShown:v=!0,sponsorComponent:E,onBookingClick:f,currentUrl:y,onLoginClick:w,configs:{statics:C,enableNavCareBooking:b,enableSearchBar:L,enableNavCare:k,enableProfileMyHealth:M,enableProfileMySaved:P,enableNavTogether:H,enableProfileEcom:x,enableProfileNavigatorMenu:B},userState:{userInfo:T},onLogout:A,userProfileRouterPush:_,isUserLoading:R}=r(N),{t:S}=qe(),{SSO_URL:O,HOME_PAGE_URL:U}=C,V=!!E,[j,Z]=a(!1),$=o(47),I=o(null),F=o(!1),D="helloSites"===h?null===(d=Re[g])||void 0===d?void 0:d.LOGO_TYPE:h,z="undefined"!=typeof window,G=s(Ke((()=>{if("home"===t&&z){if(!I.current)return;const e=I.current.getBoundingClientRect();e.top<=0&&window.scrollY>$.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,Z(!0)),window.scrollY<$.current&&F.current&&(F.current=!1,Z(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!j)}),[j]),n((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),n((()=>{u&&G()}),[u]);const W=v&&!!p;return l.createElement(Le,{"data-site-type":h,"data-sponsored":V,"data-sitewide-banner-shown":W,"data-header-type":t,"data-collapsed":j,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:I},p,l.createElement(ke,{"data-site-type":h},l.createElement(Me,{"data-site-type":h},l.createElement(la,{menuItems:c,type:t}),l.createElement("a",{style:{flexShrink:0},href:U},l.createElement(Pe,null,l.createElement(We,{style:{display:"flex"},type:D,badge:"id-ID"===g&&l.createElement("img",{src:m.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===h?l.createElement(ga,{menuItems:c}):L&&l.createElement(ua,{siteType:h})),l.createElement(He,{"data-site-type":h},"marryBaby"===h?L&&l.createElement(ua,{siteType:h}):l.createElement(ga,{menuItems:c}),l.createElement(Ne,null,b&&l.createElement(Ft,{mediaQueryKey:"mbUp"},l.createElement(Al,{careUrlFe:C.CARE_URL_FE,currentUrl:y,btnName:S("login.booking"),onCareHeaderClick:f})),i,l.createElement(xl,{userInfo:T,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(C.SSO_URL),currentUrl:y,onLogout:A,UP_BASEPATH:Oe,isMyHealthEnabled:M,enableCare:k,enableTogether:H,enableEcom:x,enableMySaved:P,togetherApiDomain:Ze(C.TOGETHER_API),isUserProfileNavigatorMenuHidden:!B,userProfileRouterPush:_,isLoading:R,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:j,locale:g,isMobile:u}):E:null)},ua=({siteType:e})=>l.createElement(Ft,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Vl,null)),ga=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(N);return l.createElement(Ft,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(xe,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Il,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(ca,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(da,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(ma,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(sa,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},pa=e=>{var t,c;const{isMobile:d,locale:h,onTopBarAppears:u,languageOptions:g,sponsorComponent:p,sitewideBanner:v,sitewideBannerShown:E,className:f}=e,y=(()=>{const{t:e}=qe(),{siteType:t,locale:l,configs:{enableNavDiscover:a,enableNavHealthTools:n,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:d}}=r(N),h="marryBaby"===t;return i((()=>{var t;const i=[];return a&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:h?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),n&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Se[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(d.TOGETHER_URL_FE+"/"),thumbnail:h?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(d.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(d.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),i}),[l,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(N),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,C=!!p,b=!!(null===(c=null===(t=null==p?void 0:p.props)||void 0===t?void 0:t.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:L,defaultHeaderHeight:k,headerHeight:M,headerBottom:P}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:l,isMobile:r})=>{const c=o(null),[m,d]=a(0),[h,u]=a(64),g=s(ct((()=>{var e,t,l,a;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),u((null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||m))}),200),[]);n((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),n((()=>{g()}),[r,l,t,e,c.current]);const p=i((()=>{let a=r?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:C,hasSponsoredBanners:b,isMobile:d});return l.createElement(Te,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${M}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":P+"px"},className:f},l.createElement("section",{ref:L},l.createElement(ha,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement($t,{languageOptions:g,locale:h})})))},va=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return l.createElement(Be,Object.assign({},t),l.createElement(pa,Object.assign({},t)))},Ea=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,o,r,s,c,m,d,h,u,g,p,v,E,f,y,w,C;const b={},L="vi-VN_MB"===e;try{const k="tl-PH"===e?"lang=fil":"";try{const[d,h,u,g]=yield Promise.all([fetch(je(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${k?"&"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${L?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${L?"health-tools":"healthtools"}/favorites${k?"?"+k:""}`)).then((e=>e.json()))]);b.categories={items:(null===(l=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,yl))||[],spotlights:(null===(o=null===(i=null===(n=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,kl))||void 0===o?void 0:o.filter(Ml))||[]},b.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,wl))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,wl))||[]}}catch(e){}if(L||Ue.includes(e))try{const[t,l]=yield Promise.all([fetch(je(`${Ie()}/api/v1/community?website_url=https://${_e[e]}`)).then((e=>e.json())),fetch(je(`${Ie()}/api/v1/options?website_url=https://${_e[e]}&meta_key=popular_post`)).then((e=>e.json()))]);b.together={items:(null===(u=null===(h=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===h?void 0:h.map)||void 0===u?void 0:u.call(h,ze))||[],spotlights:(null===(v=null===(p=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.posts)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,Ge))||[]}}catch(e){}if(Ve.includes(e))try{const[t,l]=yield Promise.all([fetch(je(Fe()+`/api/specialties?_ishome=1&site=${_e[e]}`)).then((e=>e.json())),fetch(je(Fe()+`/api/search/?site=${_e[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);b.care={items:(null===(y=null===(f=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===f?void 0:f.map)||void 0===y?void 0:y.call(f,Cl))||[],spotlights:(null===(C=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===C?void 0:C.call(w,bl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),fa=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>Ea(e||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));export{pt as A,Ut as F,$t as L,va as N,Hl as P,Pl as U,fa as a,Jt as b,fl as c,Nl as d,xl as e,Ea as g,jt as i};
1
+ import{_ as e,a as t}from"./tslib.es6-01eae420.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as o,useContext as r,useCallback as s}from"react";import{g as c}from"./core-fb32fa44.js";import{CommonGAssets as m}from"./gAssets.js";import{I as d}from"./index-755fcc76.js";import{a as h}from"./useUniqueId-f61c11f2.js";import{S as u,a as g,b as p,c as v,d as E,e as f,f as y,g as w,T as C,N as b,h as L,i as k,j as M,k as P,l as N,m as H,n as x,o as B,p as T,q as A,r as _,s as R,t as S,u as O,v as U,w as V,x as j,y as Z,z as $,A as I,B as F,C as D,D as z,E as G,F as W,G as q,H as K,I as Y,J as Q,K as J,L as X,M as ee,O as te,P as le,Q as ae,R as ne,V as ie,W as oe,X as re,Y as se,Z as ce,_ as me,$ as de,a0 as he,a1 as ue,a2 as ge,a3 as pe,a4 as ve,a5 as Ee,a6 as fe,a7 as ye,a8 as we,a9 as Ce,aa as be,ab as Le,ac as ke,ad as Me,ae as Pe,af as Ne,ag as He,ah as xe,ai as Be,aj as Te}from"./index.styled-ece06d74.js";import{T as Ae}from"./index-c0310544.js";import{d as _e,L as Re,S as Se,U as Oe,T as Ue,C as Ve}from"./index-f23d2ac2.js";import{n as je,a as Ze}from"./normalizeLink-fbc09916.js";import{c as $e,b as Ie,d as Fe}from"./routing-55df71ec.js";import{P as De,b as ze,c as Ge}from"./dataTransform-7728edfe.js";import{L as We}from"./index-159eb35a.js";import{u as qe}from"./useTranslations-fc5ada3b.js";import Ke from"lodash/throttle";import{g as Ye}from"./utils-5e9f366f.js";import{Y as Qe,U as Je,O as Xe,Z as et,N as tt,P as lt,H as at,C as nt}from"./utils-80b5125d.js";import{t as it}from"./theme-1af15451.js";import{g as ot}from"./cookieHelper-a61f145b.js";import{B as rt}from"./index-b3ca9aee.js";import{Portal as st}from"@mantine/core";import"./index-f3cb6311.js";import"@mantine/hooks";import"@mantine/dates";import"./Onboarding-592dea4f.js";import"dayjs";import"./screenSizeContext-73847cbc.js";import"styled-components";import"./isProduction-2f2a254f.js";import ct from"lodash/debounce";import{L as mt}from"./constants-57b85347.js";import dt from"string-format";import{I as ht}from"./index-73a035be.js";import{u as ut}from"./useIsInit-b305c968.js";const gt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},pt=({type:e="square",size:t,avatarImg:i,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:m,className:h,width:u,height:g,alt:p})=>{const v=t?gt[t]:void 0,[E,f]=a(!1);n((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{f(!0)}))}}),[o,f]);const y=(!o&&!i||E)&&r;return l.createElement(Qe,{style:Object.assign(Object.assign({},m),{"--size":v?v+"px":void 0,"--width-prop":u?u+"px":void 0,"--height-prop":g?g+"px":void 0,"--background-color":s}),"data-has-max":!(!u||!g),"data-avatar-type":e,onClick:c,className:h,avatarUrl:o,"data-custom-size":!!t},i,o&&!E&&l.createElement(d,{src:o,alt:p||"avatar"}),y&&r)},vt=e=>l.createElement(d,Object.assign({alt:"round cambodia flag",src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Et=e=>l.createElement(d,Object.assign({alt:"square cambodia flag",src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ft=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),l.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),l.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),l.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),l.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),l.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),l.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),l.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),l.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),l.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),l.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),l.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),l.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),l.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),l.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),l.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),l.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),l.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),l.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),l.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),l.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),l.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),l.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),yt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},l.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),l.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),l.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),l.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),l.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),l.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),l.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),l.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),l.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),l.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),wt=e=>l.createElement(d,Object.assign({alt:"round india flag",src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Ct=e=>l.createElement(d,Object.assign({alt:"square indian flag",src:m.getAssetPath("flags/indiaSquare.png")},e)),bt=t=>{var a=e(t,[]);const n=h();return l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("g",{mask:`url(#${n})`},l.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),l.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},Lt=t=>{var a=e(t,[]);const n=h();return l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("g",{clipPath:`url(#${n})`},l.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),l.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:n},l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},kt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),l.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),l.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),l.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),l.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),l.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),Nt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),l.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),l.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Ht=e=>l.createElement(d,Object.assign({alt:"round philippines flag",src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),xt=e=>l.createElement(d,Object.assign({alt:"square philippines flag",src:m.getAssetPath("flags/philippineSquare.png")},e)),Bt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),l.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),l.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Tt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),l.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),At=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),l.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),_t=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),l.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),Rt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),l.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),St=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("clipPath",null,l.createElement("rect",{width:"24",height:"16",fill:"white"})),l.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),l.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Ot="pfaLGRK";const Ut=({country:e,language:t,rounded:a,height:n,width:i,isTesting:o})=>{let r,s;switch(t){case"en":r=l.createElement(yt,null),s=l.createElement(ft,null);break;case"vi":r=l.createElement(St,null),s=l.createElement(Rt,null);break;case"id":r=l.createElement(Lt,{isTesting:o}),s=l.createElement(bt,{isTesting:o});break;case"th":r=l.createElement(_t,null),s=l.createElement(At,null);break;case"km":r=l.createElement(Et,null),s=l.createElement(vt,null);break;case"ms":r=l.createElement(Mt,null),s=l.createElement(kt,null);break;case"my":r=l.createElement(Nt,null),s=l.createElement(Pt,null);break;case"tl":r=l.createElement(xt,null),s=l.createElement(Ht,null);break;case"hi":r=l.createElement(Ct,null),s=l.createElement(wt,null);break;case"zh":r=l.createElement(Tt,null),s=l.createElement(Bt,null)}if(!r&&!s)switch(e){case"VN":r=l.createElement(St,null),s=l.createElement(Rt,null);break;case"ID":r=l.createElement(Lt,{isTesting:o}),s=l.createElement(bt,{isTesting:o});break;case"TH":r=l.createElement(_t,null),s=l.createElement(At,null);break;case"KH":r=l.createElement(Et,null),s=l.createElement(vt,null);break;case"MY":r=l.createElement(Mt,null),s=l.createElement(kt,null);break;case"MM":r=l.createElement(Nt,null),s=l.createElement(Pt,null);break;case"PH":r=l.createElement(xt,null),s=l.createElement(Ht,null);break;case"IN":r=l.createElement(Ct,null),s=l.createElement(wt,null);break;case"TW":r=l.createElement(Tt,null),s=l.createElement(Bt,null)}return l.createElement("div",{className:Ot,style:{"--width":i||20,"--height":n||20}},a?s:r)},Vt=["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"],jt=(e="")=>Vt.some((t=>new URL(e).origin.endsWith(t))),Zt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:r=!0,style:s={},showIndicator:c=!0})=>{const[d,h]=a(!1);return l.createElement(l.Fragment,null,l.createElement(u,null,l.createElement(g,{onClick:()=>h((e=>!e))},t||(null==n?void 0:n(d))||null,l.createElement(p,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>l.createElement(v,{key:t,"data-selected":r&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),h((e=>!e))),t.stopPropagation()}},l.createElement(Ae,{size:"p3"},e.label),r&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),d&&l.createElement(E,{onClick:()=>h(!1)}))},$t=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(Zt,{options:e,selected:i.value,label:l.createElement(It,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[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},It=({locale:e,label:t,href:a})=>{var n,i,o;return l.createElement(f,{href:a},l.createElement(Ut,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),l.createElement("span",null,t))},Ft=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:o})=>{const[r,s]=i((()=>Ye(t)),[t]);return l.createElement(y,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},Dt=e=>{const{allowBgScroll:t}=e||{},l=o();return{containerRef:l,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur())}}},zt=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:o=!0,targetAvatar:r,id:s,className:c})=>l.createElement(w,{"data-open":a,"data-type":e,"data-animation":o,"data-target":r,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Gt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Wt="uJQBNNg",qt="TfG3dM5",Kt="aMtjFNf",Yt="cSz2RR-",Qt="GyFm00F";function Jt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=qe(),o=i((()=>{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 l.createElement("div",{className:Wt,onClick:()=>{t&&t()}},l.createElement(pt,{className:qt,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===a?it.mbColors.pink:it.colors.secondaryBase}),l.createElement("div",{className:Kt},l.createElement("div",{className:Yt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Qt,style:{"--bg-hellosites":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Xt="gn6HmGG",el="FCx8FEM",tl="zMiRxaE",ll="lZ2Z9MQ",al="rwm-agG",nl="qMOscoq";const il=({themeName:e,locale:t,onClickItem:n})=>{const[o,r]=a(""),s=i((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:m.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:m.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:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?r((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:Xt},s.map((e=>l.createElement(ol,{key:e.key,item:e,openKey:o,onClickItem:c,locale:t}))))},ol=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:o}=qe();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${el} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:tl,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:ll,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&l.createElement("div",{className:al,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:nl},e.subMenu.map((e=>l.createElement(ol,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var rl="-AZt1au",sl="IvSIfCI",cl="eahCJov",ml="XIyViFs",dl="_4y-O0w3",hl="kO8iNgD",ul="a1d4E10",gl="Tdguxxf",pl="-mOxsaU",vl="yPeDBNZ";const El={helloSites:{member:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},fl=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=qe(),o=i((()=>{var l,a;return(null===(a=null===(l=El[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:dl,"data-user-rank":t},l.createElement("div",{className:hl},l.createElement("div",{className:ul},l.createElement("div",{className:gl,style:{backgroundImage:`url("${o}")`}}),l.createElement("h3",{className:pl},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:vl},a," ",n("userProfile.nav.header.count.posts")))))},yl=e=>{var t,l,a,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=>yl(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===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.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}:{}},wl=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Cl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},bl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},Ll=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=mt[l])||void 0===a?void 0:a.ALL}/${(null===(n=mt[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},kl=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}:{},Ml=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},Pl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:o="helloSites",cardUrls:r=Gt,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:h,userInfo:u,togetherApiDomain:g,userPostsNumber:p,onClickNavigationCard:v,onClickMyProfileButton:E,onClickMenuItem:f,onClickLogout:y,isUserProfileNavigatorMenuHidden:w=!1,isMyHealthEnabled:L=!1,locale:k})=>{const{t:M}=qe(),[P,N]=a(p||0),H="marryBaby"===o;n((()=>{if(u&&void 0===p){const e=ot("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+dt(C.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${_e[e]}`})))(k,H,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&N((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[k,null!==u,p,g,H]);const x=i((()=>{let e;return e=H?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?L:"eCom"===e?d:"mySaved"!==e||h))}),[H,L]),B=i((()=>"marryBaby"===o?null:l.createElement(rt,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:ml},M("userProfile.nav.menu.logout"))),[o]),T=l=>{window.location.href=je(`${e}${t}/${l}`)},A=e=>{const t=r[e];v?v(t):T(t)};return u?l.createElement("div",{className:rl,"data-theme":o},l.createElement(Jt,{userInfo:u,themeName:o,onClickMyProfileButton:()=>{E?E():T("profile")}}),l.createElement(fl,{themeName:o,rank:"member",numberOfPosts:P}),l.createElement("div",{className:sl},x.map((e=>l.createElement(b,{className:cl,key:e,themeName:o,type:e,onClick:A})))),!w&&l.createElement(l.Fragment,null,l.createElement(il,{themeName:o,locale:k,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(f?f(e.link):T(e.link))}}),B)):null},Nl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:h,userProfileRouterPush:u,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p=!1,togetherApiDomain:v,locale:E})=>{const f=l=>{u?u(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},y=e=>{f(e),m()};return l.createElement(zt,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},l.createElement(Pl,{SSO_URL:e,UP_BASEPATH:t,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,onClickLogout:()=>{h&&(h(),m())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:()=>{f("profile"),m()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p,togetherApiDomain:v,locale:E}))},Hl=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:o}=qe();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(st,null,l.createElement(De,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},l.createElement(L,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),l.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,o("logout.popup.ask2")),l.createElement(k,{siteType:i},l.createElement(rt,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},o("logout.popup.button.logout")),l.createElement(rt,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},xl=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:r,currentUrl:s,isMinifyLogin:c,enableCare:d,enableTogether:h,enableEcom:u,isUserProfileNavigatorMenuHidden:g,UP_BASEPATH:p,isMyHealthEnabled:v,togetherApiDomain:E,onLogout:f,style:y,userProfileRouterPush:w,isLoading:C,locale:b,enableMySaved:L})=>{const{t:k}=qe(),[H,x]=a(!1),B=(null==e?void 0:e.name)||(null==e?void 0:e.username),[T,A]=a(!1);n((()=>{A(!0)}),[]);const{containerRef:_,onContainerFocus:R,onContainerBlur:S,onButtonMouseDown:O,onClose:U}=Dt();return C?l.createElement(Je,{size:"sm",color:"transparent",loading:C}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(M,{ref:_,style:y,tabIndex:0,onBlur:S,onFocus:R},l.createElement("div",{onMouseDown:O},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),l.createElement(Xe,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===i?it.mbColors.pink:it.colors.secondaryBase,placeholderText:B&&B.length?B[0].toUpperCase():"A"})),l.createElement(Nl,{UP_BASEPATH:p,SSO_URL:r,dispatchLogout:()=>{U(),x(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,enableMySaved:L,closePopup:U,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(Hl,{openLogoutPopup:H,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),x(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){x(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):l.createElement(P,{style:Object.assign({textDecoration:"none"},y),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:T?void 0:je(`${r}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(N,{onClick:o},l.createElement("img",{src:m.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):l.createElement(l.Fragment,null,"helloSites"===i&&l.createElement(Je,{className:"mobile-only",size:"sm",onClick:o,leftIcon:l.createElement(et,{useCurrentColor:!0,isSolid:!0,size:22}),styles:{root:{paddingLeft:"5px",paddingRight:"8px"},leftIcon:{marginRight:"5px"}}},k("navigation.loginJoin")),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},l.createElement(tt,{size:"p3",color:it.mbColors.pink},k("navigation.loginJoin"))),l.createElement(Je,{className:"login-btn",size:"md",onClick:o,leftIcon:l.createElement(et,{useCurrentColor:!0,isSolid:!0,size:22})},k("navigation.loginJoin"))))};var Bl="spdlGfq",Tl="vgS16jX";const Al=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(rt,{className:Bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):l.createElement("a",{href:a,className:`${Tl} care-button no-replace-click`},l.createElement(rt,{className:Bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var _l="y5VJdvw",Rl="oVhOSCy",Sl="pX8OXTM";function Ol({className:e}){return l.createElement("div",null,l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Ul({siteType:e,type:t,enableSearch:a,className:n}){return"helloSites"===e?l.createElement("div",null,l.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?m.getAssetPath("hamburgerMenuNewWithSearch.svg"):m.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n,loading:"lazy"})):l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},l.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 Vl=()=>{const{locale:e,configs:{statics:t},siteType:a}=r(H),{t:n}=qe();return l.createElement(lt,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:Re[e||"en-PH"]?Re[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:l.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},l.createElement(x,null))})};var jl="wnUb-dV",Zl="cjbOxWe",$l="gB4rp89";const Il=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:r}=Dt({allowBgScroll:!0}),s=ut();return!e.popupType&&e.link?l.createElement(Fl,{isNew:e.isNew},l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:Zl},e.name))):l.createElement(Fl,{isNew:e.isNew},l.createElement("div",{ref:a,className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:Zl},"care"===e.id&&l.createElement("a",{className:$l,href:je(e.link+"/")},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.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&&l.createElement("div",{className:jl},l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),l.isValidElement(t)?l.cloneElement(t,{onClose:r}):null))},Fl=({isNew:e,children:t})=>{const{t:a}=qe();return e?l.createElement(ht,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},Dl=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:o})=>{const{siteType:s}=r(H);return l.createElement(B,null,l.createElement(T,null,l.createElement(at,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(A,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i},!jt(i)&&{target:"_blank"},{"data-theme":s,key:t,onClick:n}),l.createElement("div",{className:"icon"},l.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),l.createElement(Fl,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(_,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&l.createElement(R,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(S,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(O,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},zl=({item:e,index:t=0})=>{var a;const{t:n}=qe(),{locale:i,configs:{statics:o}}=r(H);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(a=mt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},l.createElement("img",{src:m.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),l.createElement(V,null,l.createElement(j,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(Z,null,l.createElement($,null,e.name),l.createElement(I,null,e.description),l.createElement(F,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Gl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:o}=r(H);return l.createElement(D,{"data-theme":o},l.createElement(z,null,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(G,null,i&&l.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),l.createElement("div",null,e&&l.createElement(W,null,e),a&&l.createElement(q,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(rt,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},Wl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(H);return l.createElement(K,null,l.createElement(Y,null,l.createElement(at,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&l.createElement(Q,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),a)},ql=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=qe(),{siteType:n}=r(H);return l.createElement(Wl,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(l.Fragment,null,l.createElement(J,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(zl,{key:t,index:t,item:e})))),l.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},l.createElement("a",{href:t},l.createElement(rt,{theme:n,className:"survey-contact-submit",size:"md"},a("home.navigator.menu.care.homeButton"))))):l.createElement(Gl,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.homeButton"),icon:m.getAssetPath("community.svg")}))},Kl=({item:e,index:t=0})=>e?l.createElement(X,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},l.createElement(ee,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),l.createElement(te,null,e.title)):null,Yl=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=qe(),{configs:{statics:n}}=r(H);return l.createElement(Wl,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?l.createElement(le,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(Kl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(Gl,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:m.getAssetPath("Spotlight.svg")}))},Ql=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(H),{t:a}=qe();return l.createElement(Wl,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:Ze(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?l.createElement(ae,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(ne,{index:t,post:e,key:e.id})))):l.createElement(Gl,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:m.getAssetPath("community.svg")}))},Jl=({item:e,index:t=0})=>{const{t:a}=qe(),{configs:{statics:n}}=r(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(ie,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},l.createElement("img",{src:m.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(oe,null,l.createElement(re,null,e.title),l.createElement(se,null,e.subtitle),l.createElement(ce,null,a("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),l.createElement(me,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Xl=({item:e,index:t=0,color:a})=>{const{t:n}=qe(),{configs:{statics:i}}=r(H);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>l.createElement(ue,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>l.createElement(ge,null,l.createElement(pe,null,l.createElement(ve,null,e.title),l.createElement(Ee,null,e.subtitle)),l.createElement(fe,null,l.createElement("div",{className:"mobile-only"},n("home.seeMore")),l.createElement("img",{src:m.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return l.createElement(de,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":a},l.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.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"})),l.createElement("img",{src:m.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),l.createElement(he,null,l.createElement("div",{className:"mobile-only"},s()),l.createElement("div",{className:"desktop-only"},c())),l.createElement("div",{className:"mobile-only"},c()),l.createElement("div",{className:"desktop-only"},s()))},ea=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=qe(),n=["pink","orange","green"],{siteType:i}=r(H);return l.createElement(Wl,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&l.createElement(ye,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?l.createElement(Xl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Jl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(Gl,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},ta=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=r(H),{t:p}=qe();return l.createElement(we,{id:"categories-menu"},u?l.createElement(Ce,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},l.createElement(Vl,null)):null,l.createElement(be,null,l.createElement(Dl,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&l.createElement(Yl,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(ea,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}${(null===(a=Se[g])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===d&&l.createElement(ql,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=mt[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Ql,{spotlights:null==m?void 0:m.spotlights})))},la=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=r(H),{containerRef:i,onContainerFocus:o,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Dt();return l.createElement(Ft,{mediaQueryKey:"mbDown"},l.createElement("header",{className:_l},l.createElement("div",{className:Rl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:o},l.createElement("div",{className:Sl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(Ol,{className:"mobile-close-icon"}),l.createElement(Ul,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(ta,{menuItems:t,closePopup:m}))))};var aa="q3nL5cp",na="_2DNf80G",ia="Q-glX-n";const oa=({onClosePopup:e})=>l.createElement("div",{className:`${ia} close-btn`,onClick:e},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ra=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(nt,null,!i&&l.createElement("div",{className:na},l.createElement(oa,{onClosePopup:e})),l.createElement(nt,{className:aa},a))),sa=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:o}=qe(),{locale:s,configs:{statics:c}}=r(H);return l.createElement(ra,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Dl,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ll({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(ql,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(i=mt[s])||void 0===i?void 0:i.SPECIALTIES}/`}))},ca=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=qe(),{locale:o,configs:{statics:s}}=r(H);return l.createElement(ra,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Dl,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement(Yl,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},ma=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=qe(),{configs:{statics:o}}=r(H);return l.createElement(ra,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Dl,{hrefViewMore:Ze(o.TOGETHER_URL_FE),UrlFE:je(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),l.createElement(Ql,{spotlights:n}))},da=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=qe(),{configs:{statics:c}}=r(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=Se[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return l.createElement(ra,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Dl,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),l.createElement(ea,{spotlightHealthTools:n,hrefViewMore:m}))},ha=({onTopBarAppears:e,type:t="home",languageMenu:i,menuItems:c})=>{var d;const{siteType:h,isMobile:u=!1,locale:g,sitewideBanner:p,sitewideBannerShown:v=!0,sponsorComponent:E,onBookingClick:f,currentUrl:y,onLoginClick:w,configs:{statics:C,enableNavCareBooking:b,enableSearchBar:L,enableNavCare:k,enableProfileMyHealth:M,enableProfileMySaved:P,enableNavTogether:N,enableProfileEcom:x,enableProfileNavigatorMenu:B},userState:{userInfo:T},onLogout:A,userProfileRouterPush:_,isUserLoading:R}=r(H),{t:S}=qe(),{SSO_URL:O,HOME_PAGE_URL:U}=C,V=!!E,[j,Z]=a(!1),$=o(47),I=o(null),F=o(!1),D="helloSites"===h?null===(d=Re[g])||void 0===d?void 0:d.LOGO_TYPE:h,z="undefined"!=typeof window,G=s(Ke((()=>{if("home"===t&&z){if(!I.current)return;const e=I.current.getBoundingClientRect();e.top<=0&&window.scrollY>$.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,Z(!0)),window.scrollY<$.current&&F.current&&(F.current=!1,Z(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!j)}),[j]),n((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),n((()=>{u&&G()}),[u]);const W=v&&!!p;return l.createElement(Le,{"data-site-type":h,"data-sponsored":V,"data-sitewide-banner-shown":W,"data-header-type":t,"data-collapsed":j,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:I},p,l.createElement(ke,{"data-site-type":h},l.createElement(Me,{"data-site-type":h},l.createElement(la,{menuItems:c,type:t}),l.createElement("a",{style:{flexShrink:0},href:U},l.createElement(Pe,null,l.createElement(We,{style:{display:"flex"},type:D,badge:"id-ID"===g&&l.createElement("img",{src:m.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===h?l.createElement(ga,{menuItems:c}):L&&l.createElement(ua,{siteType:h})),l.createElement(Ne,{"data-site-type":h},"marryBaby"===h?L&&l.createElement(ua,{siteType:h}):l.createElement(ga,{menuItems:c}),l.createElement(He,null,b&&l.createElement(Ft,{mediaQueryKey:"mbUp"},l.createElement(Al,{careUrlFe:C.CARE_URL_FE,currentUrl:y,btnName:S("login.booking"),onCareHeaderClick:f})),i,l.createElement(xl,{userInfo:T,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(C.SSO_URL),currentUrl:y,onLogout:A,UP_BASEPATH:Oe,isMyHealthEnabled:M,enableCare:k,enableTogether:N,enableEcom:x,enableMySaved:P,togetherApiDomain:Ze(C.TOGETHER_API),isUserProfileNavigatorMenuHidden:!B,userProfileRouterPush:_,isLoading:R,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:j,locale:g,isMobile:u}):E:null)},ua=({siteType:e})=>l.createElement(Ft,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Vl,null)),ga=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(H);return l.createElement(Ft,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(xe,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Il,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(ca,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(da,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(ma,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(sa,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},pa=e=>{var t,c;const{isMobile:d,locale:h,onTopBarAppears:u,languageOptions:g,sponsorComponent:p,sitewideBanner:v,sitewideBannerShown:E,className:f}=e,y=(()=>{const{t:e}=qe(),{siteType:t,locale:l,configs:{enableNavDiscover:a,enableNavHealthTools:n,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:d}}=r(H),h="marryBaby"===t;return i((()=>{var t;const i=[];return a&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:h?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),n&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Se[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(d.TOGETHER_URL_FE+"/"),thumbnail:h?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(d.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(d.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),i}),[l,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(H),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,C=!!p,b=!!(null===(c=null===(t=null==p?void 0:p.props)||void 0===t?void 0:t.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:L,defaultHeaderHeight:k,headerHeight:M,headerBottom:P}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:l,isMobile:r})=>{const c=o(null),[m,d]=a(0),[h,u]=a(64),g=s(ct((()=>{var e,t,l,a;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),u((null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||m))}),200),[]);n((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),n((()=>{g()}),[r,l,t,e,c.current]);const p=i((()=>{let a=r?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:C,hasSponsoredBanners:b,isMobile:d});return l.createElement(Te,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${M}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":P+"px"},className:f},l.createElement("section",{ref:L},l.createElement(ha,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement($t,{languageOptions:g,locale:h})})))},va=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return l.createElement(Be,Object.assign({},t),l.createElement(pa,Object.assign({},t)))},Ea=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,o,r,s,c,m,d,h,u,g,p,v,E,f,y,w,C;const b={},L="vi-VN_MB"===e;try{const k="tl-PH"===e?"lang=fil":"";try{const[d,h,u,g]=yield Promise.all([fetch(je(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${k?"&"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${L?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${L?"health-tools":"healthtools"}/favorites${k?"?"+k:""}`)).then((e=>e.json()))]);b.categories={items:(null===(l=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,yl))||[],spotlights:(null===(o=null===(i=null===(n=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,kl))||void 0===o?void 0:o.filter(Ml))||[]},b.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,wl))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,wl))||[]}}catch(e){}if(L||Ue.includes(e))try{const[t,l]=yield Promise.all([fetch(je(`${Ie()}/api/v1/community?website_url=https://${_e[e]}`)).then((e=>e.json())),fetch(je(`${Ie()}/api/v1/options?website_url=https://${_e[e]}&meta_key=popular_post`)).then((e=>e.json()))]);b.together={items:(null===(u=null===(h=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===h?void 0:h.map)||void 0===u?void 0:u.call(h,ze))||[],spotlights:(null===(v=null===(p=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.posts)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,Ge))||[]}}catch(e){}if(Ve.includes(e))try{const[t,l]=yield Promise.all([fetch(je(Fe()+`/api/specialties?_ishome=1&site=${_e[e]}`)).then((e=>e.json())),fetch(je(Fe()+`/api/search/?site=${_e[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);b.care={items:(null===(y=null===(f=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===f?void 0:f.map)||void 0===y?void 0:y.call(f,Cl))||[],spotlights:(null===(C=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===C?void 0:C.call(w,bl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),fa=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>Ea(e||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));export{pt as A,Ut as F,$t as L,va as N,Nl as P,Pl as U,fa as a,Jt as b,fl as c,Hl as d,xl as e,Ea as g,jt as i};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./tslib.es6-01eae420.js";import t from"react";import{Modal as s,CloseButton as l}from"@mantine/core";import{CommonGAssets as a}from"./gAssets.js";import{aO as o,N as n}from"./utils-80b5125d.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 +1 @@
1
- import{_ as a}from"./tslib.es6-ca4c7924.js";import e from"react";var t="wIj6fkD";const s=s=>{var{size:r="base",type:c="regular",className:o,style:n,children:d,color:i,dataEventCategory:l,dataEventAction:p,dataEventLabel:v,as:m="p",wordWrap:y,isUppercase:b}=s,g=a(s,["size","type","className","style","children","color","dataEventCategory","dataEventAction","dataEventLabel","as","wordWrap","isUppercase"]);const E=m;return e.createElement(E,Object.assign({"data-size":r,"data-type":c,style:Object.assign(Object.assign({},n),i?{"--custom-color":i}:void 0),className:`${t} ${o||""}`,"data-event-category":l,"data-event-action":p,"data-event-label":v,"data-word-wrap":y,"data-is-uppercase":b},g),d)};export{s as T};
1
+ import{_ as a}from"./tslib.es6-01eae420.js";import e from"react";var t="wIj6fkD";const s=s=>{var{size:r="base",type:o="regular",className:c,style:n,children:d,color:i,dataEventCategory:l,dataEventAction:p,dataEventLabel:v,as:m="p",wordWrap:y,isUppercase:b}=s,g=a(s,["size","type","className","style","children","color","dataEventCategory","dataEventAction","dataEventLabel","as","wordWrap","isUppercase"]);const E=m;return e.createElement(E,Object.assign({"data-size":r,"data-type":o,style:Object.assign(Object.assign({},n),i?{"--custom-color":i}:void 0),className:`${t} ${c||""}`,"data-event-category":l,"data-event-action":p,"data-event-label":v,"data-word-wrap":y,"data-is-uppercase":b},g),d)};export{s as T};
@@ -0,0 +1 @@
1
+ import o,{useState as a,useEffect as e,useMemo as t,useCallback as i}from"react";import{_ as l,$ as d,U as s,a0 as n,a1 as r}from"./utils-80b5125d.js";import{_ as c,a as u}from"./tslib.es6-01eae420.js";import{u as v}from"./useTranslations-fc5ada3b.js";import{P as m}from"./paths-3eb0ea12.js";import{L as p}from"./constants-57b85347.js";import"@mantine/core";import"@mantine/hooks";import"./gAssets.js";import"@mantine/dates";import{d as g}from"./index-f23d2ac2.js";import"./Onboarding-592dea4f.js";import"dayjs";import"./screenSizeContext-73847cbc.js";import"styled-components";import"./theme-1af15451.js";import"./utils-5e9f366f.js";import"./isProduction-2f2a254f.js";import"./index-755fcc76.js";import"lodash/debounce";const b=({type:a="solid",className:e,style:t})=>o.createElement(l,{style:t,className:e,"data-diver-type":a,dividerType:a}),y={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},f=a=>{var{siteType:e,role:t,title:i,styles:l,className:s}=a,n=c(a,["siteType","role","title","styles","className"]);const{t:r}=v(),u=t?(o=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((a=>a===o)))(t):"",{classes:m,cx:p}=d(void 0,{name:"AuthorBadge",styles:l});return u&&y[u]?o.createElement("div",Object.assign({className:p(m.root,s),"data-label-type":u,"data-is-marrybaby":"marryBaby"===e},n),i||r(y[u])):null};var E="Dudns9-";const h=({value:t,choices:i,onChange:l})=>{const[d,n]=a(t);return e((()=>{n(t)}),[t]),o.createElement("div",{className:E},i.map(((a,e)=>o.createElement(s,{dataEventCategory:a.dataEventCategory,dataEventAction:a.dataEventAction,dataEventLabel:a.dataEventLabel,size:"sm",variant:a.value===d?"primary":"tertiary",key:e,onClick:()=>{n(a.value),null==l||l(a.value)}},a.label||""))))},A=e=>{var{label:l,bookingId:d,bookingType:b="doctor",locale:y="vi-VN"}=e,f=c(e,["label","bookingId","bookingType","locale"]);const{t:E}=v(),[h,A]=a(!1),j=t((()=>"undefined"!=typeof window?window.location.href:""),[]),T=i((()=>u(void 0,void 0,void 0,(function*(){var o,a,e,t,i,l,s,c,u,v,f,E,h,j,T;const _="doctor"===b?m.GET_DOCTOR_DETAIL:"hospital"===b?m.GET_HOSPITAL_DETAIL:"service"===b?m.GET_SERVICE_DETAIL:"";try{A(!0);const m=yield n(r(_,{id:d,site:g[y]}),"get");if(1===(null==m?void 0:m._status)){const d="doctor"===b?{id:null===(a=null===(o=null==m?void 0:m._data)||void 0===o?void 0:o.doctor)||void 0===a?void 0:a.id,slug:null===(t=null===(e=null==m?void 0:m._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.slug,localSlug:null===(i=p[y])||void 0===i?void 0:i.DOCTOR}:"hospital"===b?{id:null===(s=null===(l=null==m?void 0:m._data)||void 0===l?void 0:l.branch)||void 0===s?void 0:s.id,slug:null===(u=null===(c=null==m?void 0:m._data)||void 0===c?void 0:c.branch)||void 0===u?void 0:u.slug,localSlug:null===(v=p[y])||void 0===v?void 0:v.HOSPITAL}:{id:null===(E=null===(f=null==m?void 0:m._data)||void 0===f?void 0:f.service)||void 0===E?void 0:E.id,slug:null===(j=null===(h=null==m?void 0:m._data)||void 0===h?void 0:h.service)||void 0===j?void 0:j.slug,localSlug:null===(T=p[y])||void 0===T?void 0:T.SERVICE};window.location.href=`/care/${d.localSlug}/${d.slug}-${d.id}/`}else A(!1)}catch(o){console.log(o),A(!1)}}))),[]);return d&&b?o.createElement(s,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:j,onClick:T,loading:h},f),l||E("careBooking.bookAnAppointment")):null};export{f as A,h as B,b as D,A as a};
@@ -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 l,M as n}from"./utils-10c2f620.js";import{ae as r,af as s,ag as d,ah as c,ai as m,aj as p,ac as h,I as b}from"./utils-a9bb3a5c.js";import{T as u}from"./index-30e03a57.js";import g from"styled-components";import{u as y}from"./useTranslations-fa0feb0e.js";import{G as f}from"./Onboarding-d141e0b5.js";import{M as x,a as C}from"./index-b26629ef.js";import{t as v}from"./theme-484b917f.js";const w=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),E=({children:o,title:n,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:b=!0,className:g})=>{const y=t();a((()=>(l(m),()=>l(!1))),[m]);const f=()=>{y.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!m&&h?null:e.createElement(i,null,e.createElement(s,{className:g,open:m},e.createElement(w,{open:m,onClickOutside:f}),e.createElement(d,{open:m,placement:p,ref:y,hasTitle:Boolean(n)},e.createElement("div",{className:"title"},n&&e.createElement(u,{size:"s2",type:"semiBold"},n),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:f},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=>{b&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:f}):null)))))},$=({value:t,options:a,className:i,direction:l="horizontal",onChange:n,isDisabled:r,siteType:s})=>{const[d,c]=o(t),h="marryBaby"===s;return e.createElement(m,{className:i,"data-direction":l},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),n&&n(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(x,{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 l,M as n}from"./utils-5e9f366f.js";import{ad as r,ae as s,af as d,ag as c,ah as m,ai as p,ab as h,I as u}from"./utils-80b5125d.js";import{T as g}from"./index-c0310544.js";import b from"styled-components";import{u as f}from"./useTranslations-fc5ada3b.js";import{G as y}from"./Onboarding-592dea4f.js";import{M as x,a as C}from"./index-65f9a5d1.js";import{t as v}from"./theme-1af15451.js";const w=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),E=({children:o,title:n,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:u=!0,className:b})=>{const f=t();a((()=>(l(m),()=>l(!1))),[m]);const y=()=>{f.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:f,hasTitle:Boolean(n)},e.createElement("div",{className:"title"},n&&e.createElement(g,{size:"s2",type:"semiBold"},n),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=>{u&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:y}):null)))))},$=({value:t,options:a,className:i,direction:l="horizontal",onChange:n,isDisabled:r,siteType:s})=>{const[d,c]=o(t),h="marryBaby"===s;return e.createElement(m,{className:i,"data-direction":l},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),n&&n(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(x,{type:"subtitle-2",color:(t||d)===a.value?v.mbColors.dark:v.mbColors.midGray},a.label):e.createElement(g,{type:"bold",color:(t||d)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},k="hhgcomp-modal-modal",B=h(b.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=b.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=b.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=b.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=b($)`
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}=y(),l="marryBaby"==o;return e.createElement(T,{"data-is-marryBaby":l},l?e.createElement(C,{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:f.Boy,label:i("gender.male"),content:l?e.createElement(b.BabyBoyMB,null):e.createElement(b.GenderChooseBoy,null)},{value:f.Girl,label:i("gender.female"),content:l?e.createElement(b.BabyGirlMB,null):e.createElement(b.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}=f(),l="marryBaby"==o;return e.createElement(T,{"data-is-marryBaby":l},l?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("babyVaccineTool.selectGender")):e.createElement(g,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),e.createElement(G,{siteType:o,options:[{value:y.Boy,label:i("gender.male"),content:l?e.createElement(u.BabyBoyMB,null):e.createElement(u.GenderChooseBoy,null)},{value:y.Girl,label:i("gender.female"),content:l?e.createElement(u.BabyGirlMB,null):e.createElement(u.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{_ as e}from"./tslib.es6-ca4c7924.js";import t,{useState as a,useEffect as n}from"react";import{L as l}from"./Onboarding-d141e0b5.js";import{S as r,a as o,b as i}from"./index.styled-bb0e8f22.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-01eae420.js";import t,{useState as a,useEffect as n}from"react";import{L as l}from"./Onboarding-592dea4f.js";import{S as r,a as o,b as i}from"./index.styled-5622019d.js";const c=c=>{var{data:s,isMobile:m,onSlideChange:g,pillProps:h,locale:p=l.Vietnam,blurFromIndex:v,blurLength:C}=c,b=e(c,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const u={withControls:!m,slideGap:16,blurFromCenter:!0,blurFromIndex:v||(m?2:4),blurLength:C||(m?1:3),onSlideChange:g},[k,w]=a("");return n((()=>{w(window.location.href)}),[]),t.createElement(r,Object.assign({},u,b,{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};