@hhgtech/hhg-components 1.28.39 → 1.28.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  4. package/build/care.js +1 -1
  5. package/build/components.js +1 -1
  6. package/build/{constants-57d89069.js → constants-20b167d2.js} +1 -1
  7. package/build/{constants-82348c13.js → constants-e7c8985f.js} +1 -1
  8. package/build/constants.js +1 -1
  9. package/build/{core-081bdce5.js → core-ca200210.js} +1 -1
  10. package/build/ecom.js +1 -1
  11. package/build/esm/babyGrowth.js +4 -4
  12. package/build/esm/cache.js +1 -1
  13. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  14. package/build/esm/care.js +1 -1
  15. package/build/esm/components.js +1 -1
  16. package/build/esm/{constants-0d46ae1d.js → constants-95cb8ea0.js} +1 -1
  17. package/build/esm/{constants-039f36fe.js → constants-bcabc622.js} +1 -1
  18. package/build/esm/constants.js +1 -1
  19. package/build/esm/{core-3c0d6b0f.js → core-ac4e85c7.js} +1 -1
  20. package/build/esm/ecom.js +1 -1
  21. package/build/esm/footer.js +1 -1
  22. package/build/esm/gAssets.js +1 -1
  23. package/build/esm/{getDynamicHealthTool-d874b77f.js → getDynamicHealthTool-00faa2c1.js} +1 -1
  24. package/build/esm/{getSocialList-5ea15cba.js → getSocialList-1248c74c.js} +1 -1
  25. package/build/esm/hooks.js +1 -1
  26. package/build/esm/i18n.js +1 -1
  27. package/build/esm/i18nV2.js +1 -1
  28. package/build/esm/{index-8dfb1724.js → index-02f0f4fe.js} +1 -1
  29. package/build/esm/{index-14839883.js → index-13feb3ef.js} +1 -1
  30. package/build/esm/{index-8db07311.js → index-14780cf0.js} +1 -1
  31. package/build/esm/{index-282bbb6d.js → index-15efeba7.js} +1 -1
  32. package/build/esm/{index-5ecfac85.js → index-19144b5a.js} +1 -1
  33. package/build/esm/index-1fc7e785.js +1 -0
  34. package/build/esm/{index-e17cd802.js → index-212c6a21.js} +1 -1
  35. package/build/esm/{index-0e6dbcc0.js → index-428d1aeb.js} +1 -1
  36. package/build/esm/{index-6795099e.js → index-4e8c3bb6.js} +1 -1
  37. package/build/esm/index-53ef56cd.js +1 -0
  38. package/build/esm/{index-20b84b31.js → index-6aeb538e.js} +1 -1
  39. package/build/esm/{index-7d0179b5.js → index-941eb658.js} +1 -1
  40. package/build/esm/{index-f1ff7dac.js → index-a5e07868.js} +1 -1
  41. package/build/esm/index-c7ee8e8e.js +1 -0
  42. package/build/esm/{index-434197c4.js → index-d6b66097.js} +1 -1
  43. package/build/esm/{index-1ac72931.js → index-dde41fb0.js} +1 -1
  44. package/build/esm/{index-5761cc3d.js → index-e0365fb2.js} +1 -1
  45. package/build/esm/{index-dff74895.js → index-e28d801c.js} +1 -1
  46. package/build/esm/{index-fa32b4d8.js → index-e751d8c2.js} +1 -1
  47. package/build/esm/{index-c70696a6.js → index-eace0e39.js} +1 -1
  48. package/build/esm/{index-622dbaca.js → index-f2ede565.js} +1 -1
  49. package/build/esm/{index-3d1ca95c.js → index-f4f05774.js} +1 -1
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-e26007df.js → index.styled-4a4ab4d3.js} +6 -6
  52. package/build/esm/{index.styled-a1854a4a.js → index.styled-7f374882.js} +1 -1
  53. package/build/esm/{index.styled-ede7c10d.js → index.styled-cadd6706.js} +1 -1
  54. package/build/esm/{index.styled-90fe28c0.js → index.styled-d760ce2f.js} +3 -3
  55. package/build/esm/{index.styles-95837b62.js → index.styles-3036321c.js} +6 -6
  56. package/build/esm/lead.js +1 -1
  57. package/build/esm/mantine.js +1 -1
  58. package/build/esm/misc.js +1 -1
  59. package/build/esm/navigation.js +1 -1
  60. package/build/esm/onboardingV2.js +9 -9
  61. package/build/esm/pwg.js +3 -3
  62. package/build/esm/{routing-7c32cdb3.js → routing-0284bf36.js} +1 -1
  63. package/build/esm/subot.js +1 -1
  64. package/build/esm/together.js +1 -1
  65. package/build/esm/{types-c5a3b173.js → types-553958a6.js} +7 -7
  66. package/build/esm/{types-d466572e.js → types-b8611d30.js} +1 -1
  67. package/build/esm/types.js +1 -1
  68. package/build/esm/{useCategory-702b6604.js → useCategory-b6426a83.js} +1 -1
  69. package/build/esm/useHealthToolCache-9185d66c.js +1 -0
  70. package/build/esm/{usePlacesAutocomplete-d14c4671.js → usePlacesAutocomplete-12181fb9.js} +1 -1
  71. package/build/esm/{useRafState-1ba3edb3.js → useRafState-652131c8.js} +1 -1
  72. package/build/esm/{useTranslations-51dc4ab8.js → useTranslations-e0f5679c.js} +1 -1
  73. package/build/esm/{utils-8849cc57.js → utils-0347b372.js} +1 -1
  74. package/build/esm/{utils-b2a0d664.js → utils-f65c59d5.js} +1 -1
  75. package/build/esm/vaccination.js +1 -1
  76. package/build/footer.js +1 -1
  77. package/build/gAssets.js +1 -1
  78. package/build/getDynamicHealthTool-765ca7ef.js +1 -0
  79. package/build/{getSocialList-55a29d3a.js → getSocialList-1ec4bb1e.js} +1 -1
  80. package/build/hooks.js +1 -1
  81. package/build/i18n.js +1 -1
  82. package/build/i18nV2.js +1 -1
  83. package/build/{index-511b99c0.js → index-0dfb02fc.js} +1 -1
  84. package/build/{index-80a776c5.js → index-1411d846.js} +1 -1
  85. package/build/{index-557f79d9.js → index-16f49c45.js} +1 -1
  86. package/build/{index-dd161fb0.js → index-27fce9f9.js} +1 -1
  87. package/build/{index-1cc9c0e2.js → index-2e6dbe21.js} +1 -1
  88. package/build/{index-543b2956.js → index-32a73461.js} +1 -1
  89. package/build/{index-70fc6801.js → index-3824cae4.js} +1 -1
  90. package/build/{index-f20a3b0b.js → index-3b70c7c6.js} +1 -1
  91. package/build/{index-cbb25109.js → index-417895f0.js} +1 -1
  92. package/build/{index-192c3976.js → index-48cdf99f.js} +1 -1
  93. package/build/{index-cda192d8.js → index-67c1fe30.js} +1 -1
  94. package/build/{index-9686d73a.js → index-8919cdee.js} +1 -1
  95. package/build/{index-e23393d6.js → index-9b5898bd.js} +1 -1
  96. package/build/{index-2744bd7d.js → index-a604bf78.js} +1 -1
  97. package/build/index-ccd99d7b.js +1 -0
  98. package/build/index-d681911b.js +1 -0
  99. package/build/{index-505a6231.js → index-d79b83e7.js} +3 -3
  100. package/build/{index-8a4e8200.js → index-e387ee43.js} +1 -1
  101. package/build/{index-e4732cde.js → index-e393d84f.js} +1 -1
  102. package/build/{index-5a09ea5b.js → index-e94212a5.js} +1 -1
  103. package/build/{index-566d616e.js → index-f0b22b20.js} +1 -1
  104. package/build/{index-5537eb8b.js → index-f65612b1.js} +1 -1
  105. package/build/index.js +1 -1
  106. package/build/{index.styled-bf702a00.js → index.styled-38621c5f.js} +1 -1
  107. package/build/{index.styled-95722c0d.js → index.styled-6220e760.js} +1 -1
  108. package/build/{index.styled-edaa5fca.js → index.styled-9dd14387.js} +1 -1
  109. package/build/index.styled-f6dc3372.js +50 -0
  110. package/build/{index.styles-eee657e0.js → index.styles-3ab75ee6.js} +1 -1
  111. package/build/lead.js +1 -1
  112. package/build/mantine.js +1 -1
  113. package/build/misc.js +1 -1
  114. package/build/navigation.js +1 -1
  115. package/build/onboardingV2.js +1 -1
  116. package/build/pwg.js +3 -3
  117. package/build/{routing-d19d8856.js → routing-404b0db3.js} +1 -1
  118. package/build/subot.js +1 -1
  119. package/build/together.js +1 -1
  120. package/build/{types-ec42e31c.js → types-422e65f8.js} +1 -1
  121. package/build/{types-e7648820.js → types-af0c33af.js} +9 -9
  122. package/build/types.js +1 -1
  123. package/build/{useCategory-15d34903.js → useCategory-bf09d2fa.js} +1 -1
  124. package/build/{useHealthToolCache-af770568.js → useHealthToolCache-a13afe89.js} +1 -1
  125. package/build/{usePlacesAutocomplete-24621567.js → usePlacesAutocomplete-38246a89.js} +1 -1
  126. package/build/{useRafState-80bb67ea.js → useRafState-816567d2.js} +1 -1
  127. package/build/{useTranslations-2e112ad4.js → useTranslations-58ee3b9e.js} +1 -1
  128. package/build/{utils-6f3d330e.js → utils-119b98c5.js} +1 -1
  129. package/build/{utils-a167e7a3.js → utils-660ff29e.js} +1 -1
  130. package/build/vaccination.js +1 -1
  131. package/package.json +1 -1
  132. package/build/esm/index-1be91706.js +0 -1
  133. package/build/esm/index-65d31851.js +0 -1
  134. package/build/esm/index-c7136b2d.js +0 -1
  135. package/build/esm/useHealthToolCache-1290f2b9.js +0 -1
  136. package/build/getDynamicHealthTool-12e2540d.js +0 -1
  137. package/build/index-86314983.js +0 -1
  138. package/build/index-b983594e.js +0 -1
  139. package/build/index.styled-7c52b155.js +0 -50
  140. /package/build/{BMI_BOYS.percentile.monthly-1abf1841.js → BMI_BOYS.percentile.monthly-2be7494b.js} +0 -0
  141. /package/build/{BMI_BOYS.percentile.weekly-a8aff425.js → BMI_BOYS.percentile.weekly-a476da14.js} +0 -0
  142. /package/build/{BMI_BOYS.percentile.yearly-c73321bb.js → BMI_BOYS.percentile.yearly-47264daf.js} +0 -0
  143. /package/build/{BMI_BOYS.zscore.monthly-69a99c2a.js → BMI_BOYS.zscore.monthly-def07248.js} +0 -0
  144. /package/build/{BMI_BOYS.zscore.weekly-f990fa6a.js → BMI_BOYS.zscore.weekly-5bae230f.js} +0 -0
  145. /package/build/{BMI_BOYS.zscore.yearly-ed65c22b.js → BMI_BOYS.zscore.yearly-13085083.js} +0 -0
  146. /package/build/{BMI_GIRLS.percentile.monthly-4c7cb156.js → BMI_GIRLS.percentile.monthly-f5b552ef.js} +0 -0
  147. /package/build/{BMI_GIRLS.percentile.weekly-d570954a.js → BMI_GIRLS.percentile.weekly-078c93d8.js} +0 -0
  148. /package/build/{BMI_GIRLS.percentile.yearly-61a85bc5.js → BMI_GIRLS.percentile.yearly-79661652.js} +0 -0
  149. /package/build/{BMI_GIRLS.zscore.monthly-f20b70e4.js → BMI_GIRLS.zscore.monthly-8a4e6815.js} +0 -0
  150. /package/build/{BMI_GIRLS.zscore.weekly-178a1989.js → BMI_GIRLS.zscore.weekly-ed0b7994.js} +0 -0
  151. /package/build/{BMI_GIRLS.zscore.yearly-88ad18e5.js → BMI_GIRLS.zscore.yearly-8d875256.js} +0 -0
  152. /package/build/{ChevronDown-3037c172.js → ChevronDown-a220d6bf.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-56a4402b.js → HEAD CIRCUM_BOYS.percentile.monthly-81c35b36.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ccf3c87f.js → HEAD CIRCUM_BOYS.percentile.weekly-0ade78bd.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2b9916f6.js → HEAD CIRCUM_BOYS.percentile.yearly-5166fc6d.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bc3fdf65.js → HEAD CIRCUM_BOYS.zscore.monthly-105ecbce.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a3275cbb.js → HEAD CIRCUM_BOYS.zscore.weekly-3c03bbb6.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-424de02b.js → HEAD CIRCUM_BOYS.zscore.yearly-f9c772b7.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-31cf5774.js → HEAD CIRCUM_GIRLS.percentile.monthly-6d84e295.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-56bc87df.js → HEAD CIRCUM_GIRLS.percentile.weekly-52253e24.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d495ae77.js → HEAD CIRCUM_GIRLS.percentile.yearly-7f23d028.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-389b52dc.js → HEAD CIRCUM_GIRLS.zscore.monthly-9cd318a0.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-545c913f.js → HEAD CIRCUM_GIRLS.zscore.weekly-ab38e511.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-25153e42.js → HEAD CIRCUM_GIRLS.zscore.yearly-d3160e92.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.percentile.monthly-a0167766.js → HEIGHT_BOYS.percentile.monthly-5acc24fe.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.percentile.weekly-fe6c86b4.js → HEIGHT_BOYS.percentile.weekly-569a97bd.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.percentile.yearly-b5f70609.js → HEIGHT_BOYS.percentile.yearly-42642e47.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.zscore.monthly-69050519.js → HEIGHT_BOYS.zscore.monthly-65dbd7fb.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.zscore.weekly-086ed503.js → HEIGHT_BOYS.zscore.weekly-0d17c4ae.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.zscore.yearly-ea1fd110.js → HEIGHT_BOYS.zscore.yearly-27b8768a.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.percentile.monthly-04393cf7.js → HEIGHT_GIRLS.percentile.monthly-cd7488f2.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.percentile.weekly-309dd221.js → HEIGHT_GIRLS.percentile.weekly-43ff1254.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.percentile.yearly-3fe7b9fc.js → HEIGHT_GIRLS.percentile.yearly-43e4aff0.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.zscore.monthly-a274d11d.js → HEIGHT_GIRLS.zscore.monthly-31f100f4.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.zscore.weekly-832a2702.js → HEIGHT_GIRLS.zscore.weekly-79fb01f3.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.zscore.yearly-e1250f72.js → HEIGHT_GIRLS.zscore.yearly-bdfde055.js} +0 -0
  177. /package/build/{Subot-b76ccc9c.js → Subot-9d5418e4.js} +0 -0
  178. /package/build/{Visible-a902bc5d.js → Visible-5f2e5d2d.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.percentile.monthly-6aee36d0.js → WEIGHT_BOYS.percentile.monthly-5e8b69e3.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.percentile.weekly-84a9ddf3.js → WEIGHT_BOYS.percentile.weekly-f0dc4f4e.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.percentile.yearly-6a5235a6.js → WEIGHT_BOYS.percentile.yearly-94cb010e.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.zscore.monthly-7b87e89a.js → WEIGHT_BOYS.zscore.monthly-53bc9947.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.zscore.weekly-7dc34a8b.js → WEIGHT_BOYS.zscore.weekly-6ea5cde9.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.zscore.yearly-8cde12c0.js → WEIGHT_BOYS.zscore.yearly-f37e5962.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.percentile.monthly-c1117e84.js → WEIGHT_GIRLS.percentile.monthly-a0af2262.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.percentile.weekly-5da1d720.js → WEIGHT_GIRLS.percentile.weekly-1c11854b.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.percentile.yearly-a23ec4ec.js → WEIGHT_GIRLS.percentile.yearly-c84a146d.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.zscore.monthly-2f26e279.js → WEIGHT_GIRLS.zscore.monthly-6c42d8ac.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.zscore.weekly-8b0a38e9.js → WEIGHT_GIRLS.zscore.weekly-f6ac49b3.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.zscore.yearly-8bad89fe.js → WEIGHT_GIRLS.zscore.yearly-53a8fb67.js} +0 -0
  191. /package/build/{cookieHelper-edf24fec.js → cookieHelper-24b1f061.js} +0 -0
  192. /package/build/{dataTransform-e2f61d60.js → dataTransform-e795262f.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.percentile.monthly-b9ab85f0.js → BMI_BOYS.percentile.monthly-90e8d51b.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.percentile.weekly-ef82192f.js → BMI_BOYS.percentile.weekly-0f155cb8.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.percentile.yearly-183654c8.js → BMI_BOYS.percentile.yearly-24097fcb.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.zscore.monthly-6eda6e64.js → BMI_BOYS.zscore.monthly-c874926b.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.zscore.weekly-2e5db2e4.js → BMI_BOYS.zscore.weekly-f82f54d5.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.zscore.yearly-89b97ccc.js → BMI_BOYS.zscore.yearly-e86e6196.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.percentile.monthly-c2dca76b.js → BMI_GIRLS.percentile.monthly-b5f00f2c.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.percentile.weekly-3db696ed.js → BMI_GIRLS.percentile.weekly-0160255f.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.percentile.yearly-d3831386.js → BMI_GIRLS.percentile.yearly-49fd6692.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.zscore.monthly-9cef6f5e.js → BMI_GIRLS.zscore.monthly-c33b9640.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.zscore.weekly-78f3bce3.js → BMI_GIRLS.zscore.weekly-8dc83438.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.zscore.yearly-50c1c22d.js → BMI_GIRLS.zscore.yearly-1dbbb382.js} +0 -0
  205. /package/build/esm/{ChevronDown-38081c52.js → ChevronDown-8da7a294.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-768e0230.js → HEAD CIRCUM_BOYS.percentile.monthly-ebfdafc9.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-68c28fef.js → HEAD CIRCUM_BOYS.percentile.weekly-27229ddd.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-79c477be.js → HEAD CIRCUM_BOYS.percentile.yearly-ea484f34.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c22a6bb8.js → HEAD CIRCUM_BOYS.zscore.monthly-b98df2be.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-fa0c45de.js → HEAD CIRCUM_BOYS.zscore.weekly-b542bf2d.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-fd828878.js → HEAD CIRCUM_BOYS.zscore.yearly-1f5e4d0b.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0e370871.js → HEAD CIRCUM_GIRLS.percentile.monthly-36881b4b.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-f4708552.js → HEAD CIRCUM_GIRLS.percentile.weekly-0535db6d.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-dfb103cf.js → HEAD CIRCUM_GIRLS.percentile.yearly-018ff807.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3ee0be1b.js → HEAD CIRCUM_GIRLS.zscore.monthly-c1dbe313.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-44bcc793.js → HEAD CIRCUM_GIRLS.zscore.weekly-cd22e813.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a1027497.js → HEAD CIRCUM_GIRLS.zscore.yearly-6a9ea565.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-02e472da.js → HEIGHT_BOYS.percentile.monthly-8e6a0752.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0680ad0c.js → HEIGHT_BOYS.percentile.weekly-ceabde0e.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6f8aae30.js → HEIGHT_BOYS.percentile.yearly-28d17801.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c4cd5e14.js → HEIGHT_BOYS.zscore.monthly-5ce17623.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-44a38e55.js → HEIGHT_BOYS.zscore.weekly-d758fae7.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-07fc5764.js → HEIGHT_BOYS.zscore.yearly-d11d3f15.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-747f685b.js → HEIGHT_GIRLS.percentile.monthly-31f4a828.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f8a8a438.js → HEIGHT_GIRLS.percentile.weekly-735778e7.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-19c6a95d.js → HEIGHT_GIRLS.percentile.yearly-1eabd968.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a70d26ec.js → HEIGHT_GIRLS.zscore.monthly-8b8612b9.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-80c3120b.js → HEIGHT_GIRLS.zscore.weekly-b8a53c59.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-55b48c0f.js → HEIGHT_GIRLS.zscore.yearly-bc15c84f.js} +0 -0
  230. /package/build/esm/{Subot-f581f4df.js → Subot-7ea674b0.js} +0 -0
  231. /package/build/esm/{Visible-773a840f.js → Visible-247d254f.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c7365e22.js → WEIGHT_BOYS.percentile.monthly-f08f1fd2.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-5d62ee47.js → WEIGHT_BOYS.percentile.weekly-fbaf9e3d.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-90eef9c4.js → WEIGHT_BOYS.percentile.yearly-d64145ca.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-39cb41e2.js → WEIGHT_BOYS.zscore.monthly-f239897a.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1fd3816a.js → WEIGHT_BOYS.zscore.weekly-1a2e5a33.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-91994e22.js → WEIGHT_BOYS.zscore.yearly-034538fa.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8803f9b5.js → WEIGHT_GIRLS.percentile.monthly-39819cdb.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-ec6c8a49.js → WEIGHT_GIRLS.percentile.weekly-15569768.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0e9334c7.js → WEIGHT_GIRLS.percentile.yearly-9f519921.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-031167a3.js → WEIGHT_GIRLS.zscore.monthly-c0a9a7aa.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-36d7530c.js → WEIGHT_GIRLS.zscore.weekly-23c1cce3.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-93c90f87.js → WEIGHT_GIRLS.zscore.yearly-9a088bbf.js} +0 -0
  244. /package/build/esm/{cookieHelper-1491c7ea.js → cookieHelper-0d554a3d.js} +0 -0
  245. /package/build/esm/{dataTransform-9bceddac.js → dataTransform-cf3f3aee.js} +0 -0
  246. /package/build/esm/{index-0797d3cb.js → index-96308c0d.js} +0 -0
  247. /package/build/esm/{index-2f243424.js → index-c26145e4.js} +0 -0
  248. /package/build/esm/{index-bbf78608.js → index-e4c49b57.js} +0 -0
  249. /package/build/esm/{isProduction-d8d94564.js → isProduction-d0d81279.js} +0 -0
  250. /package/build/esm/{localizeNumberFormat-3657ce11.js → localizeNumberFormat-1e3158ab.js} +0 -0
  251. /package/build/esm/{normalizeLink-7259b86a.js → normalizeLink-409cf3bf.js} +0 -0
  252. /package/build/esm/{number-a14a26d2.js → number-f57dcbd1.js} +0 -0
  253. /package/build/esm/{paths-80d2b4f2.js → paths-f6ce774b.js} +0 -0
  254. /package/build/esm/{screenSizeContext-f9a53919.js → screenSizeContext-8f042934.js} +0 -0
  255. /package/build/esm/{theme-9d69f1a2.js → theme-c254ba9f.js} +0 -0
  256. /package/build/esm/{translationsContext-a929820e.js → translationsContext-f66e3d3d.js} +0 -0
  257. /package/build/esm/{tslib.es6-7b491686.js → tslib.es6-1a7e483e.js} +0 -0
  258. /package/build/esm/{types-c4843c87.js → types-062901c3.js} +0 -0
  259. /package/build/esm/{useIsInit-36546b9c.js → useIsInit-db1c31df.js} +0 -0
  260. /package/build/esm/{useOutsideClick-78141983.js → useOutsideClick-bfa18062.js} +0 -0
  261. /package/build/esm/{useScrollbarSize-30b1bee4.js → useScrollbarSize-611c8d35.js} +0 -0
  262. /package/build/{index-ff51ac26.js → index-1b69057d.js} +0 -0
  263. /package/build/{index-0251e5f0.js → index-cd030832.js} +0 -0
  264. /package/build/{index-af3f2c07.js → index-e6e3941f.js} +0 -0
  265. /package/build/{isProduction-fa856154.js → isProduction-e1ad6827.js} +0 -0
  266. /package/build/{localizeNumberFormat-118c54b5.js → localizeNumberFormat-7e1dae02.js} +0 -0
  267. /package/build/{normalizeLink-b898d874.js → normalizeLink-adb3417c.js} +0 -0
  268. /package/build/{number-e86b559d.js → number-995e468a.js} +0 -0
  269. /package/build/{paths-bbbcac69.js → paths-f7c2f1d1.js} +0 -0
  270. /package/build/{screenSizeContext-478cce5e.js → screenSizeContext-66416462.js} +0 -0
  271. /package/build/{theme-1481c80b.js → theme-675875f1.js} +0 -0
  272. /package/build/{translationsContext-e83c75a5.js → translationsContext-37b57080.js} +0 -0
  273. /package/build/{tslib.es6-524ea691.js → tslib.es6-af7c5340.js} +0 -0
  274. /package/build/{types-5ceae17e.js → types-8f4d78a7.js} +0 -0
  275. /package/build/{useIsInit-b0daf2cf.js → useIsInit-3c899c10.js} +0 -0
  276. /package/build/{useOutsideClick-abc52969.js → useOutsideClick-44c908eb.js} +0 -0
  277. /package/build/{useScrollbarSize-251ab8f8.js → useScrollbarSize-aef8017d.js} +0 -0
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-7b491686.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,d as i}from"./constants-039f36fe.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:b=!0,actionIcon:y,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:f,size:I,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),H=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":I,className:h,"data-has-action-icon":!!y||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},f||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},H,j)),C&&a.createElement(r,{className:"displayIcon"},C),y&&a.createElement(l,{className:"actionIcon",onClick:v},y)),p&&p.length>0&&b&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
1
+ import{_ as e}from"./tslib.es6-1a7e483e.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,d as i}from"./constants-bcabc622.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:b=!0,actionIcon:y,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:I,size:f,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),H=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":f,className:h,"data-has-action-icon":!!y||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},I||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},H,j)),C&&a.createElement(r,{className:"displayIcon"},C),y&&a.createElement(l,{className:"actionIcon",onClick:v},y)),p&&p.length>0&&b&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./tslib.es6-1a7e483e.js";import t from"react";import{Image as o}from"@mantine/core";import{DatePickerInput as r}from"@mantine/dates";import{I as s}from"./index-13feb3ef.js";import{L as a}from"./Subot-7ea674b0.js";import{CommonGAssets as i}from"./gAssets.js";import{M as n}from"./index-02f0f4fe.js";const l=l=>{var m,{value:c,fullWidth:p=!0}=l,d=e(l,["value","fullWidth"]);return t.createElement(r,Object.assign({locale:n[process.env.UNIFY_LOCALE||a.Vietnam],valueFormat:null===(m=s[process.env.UNIFY_LOCALE||a.Vietnam])||void 0===m?void 0:m.dateFormat,size:"md",clearable:!1,popoverProps:p?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:t.createElement(o,{src:i.getAssetPath(d.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},d,{className:`input-control ${(null==d?void 0:d.className)||""}`}))};export{l as D};
@@ -1 +1 @@
1
- import{_ as e,a as t}from"./tslib.es6-7b491686.js";import a,{useState as l,useMemo as n,useRef as i,Fragment as o,useEffect as s,useContext as r,useCallback as c}from"react";import{g as m}from"./core-3c0d6b0f.js";import{F as d,a as u,B as h}from"./index-8dfb1724.js";import{S as g,a as v,b as p,c as E,d as y,e as f,u as b,f as C,g as k,h as w,i as P,j as _,k as M,l as N,m as L,n as B,o as T,p as A,q as x,N as H,r as S,s as j,t as $,v as F,w as O,x as R,y as I,z as D,A as U,B as V,C as z,D as Z,E as G,F as W,G as q,H as K,I as Y,J as Q,K as J,L as X,M as ee,O as te,P as ae,Q as le,R as ne,T as ie,U as oe,V as se,W as re,X as ce,Y as me,Z as de,_ as ue,$ as he,a0 as ge,a1 as ve,a2 as pe,a3 as Ee,a4 as ye,a5 as fe,a6 as be,a7 as Ce,a8 as ke,a9 as we,aa as Pe,ab as _e,ac as Me,ad as Ne,ae as Le,af as Be,ag as Te,ah as Ae,ai as xe,aj as He,ak as Se,al as je,am as $e,an as Fe,ao as Oe}from"./index.styled-a1854a4a.js";import{T as Re,I as Ie,U as De}from"./index-fa32b4d8.js";import{CommonGAssets as Ue}from"./gAssets.js";import{C as Ve,T as ze,E as Ze,L as Ge,S as We,d as qe}from"./index-14839883.js";import{n as Ke,a as Ye}from"./normalizeLink-7259b86a.js";import{a as Qe,g as Je,c as Xe,b as et,d as tt}from"./routing-7c32cdb3.js";import{P as at,b as lt,a as nt}from"./index-1ac72931.js";import{L as it}from"./index-282bbb6d.js";import{u as ot,b as st}from"./useTranslations-51dc4ab8.js";import rt from"lodash/throttle";import{Box as ct,Indicator as mt,Portal as dt}from"@mantine/core";import"@mantine/dates";import{L as ut}from"./Subot-f581f4df.js";import"dayjs";import{j as ht}from"./screenSizeContext-f9a53919.js";import"styled-components";import{t as gt}from"./theme-9d69f1a2.js";import"./isProduction-d8d94564.js";import"./translationsContext-a929820e.js";import vt from"string-format";import"@mantine/hooks";import{L as pt}from"./constants-0d46ae1d.js";import Et from"lodash/debounce";import"./useCategory-702b6604.js";import{C as yt}from"./ChevronDown-38081c52.js";import{B as ft}from"./index-5ecfac85.js";import{e as bt}from"./constants-039f36fe.js";import{P as Ct,H as kt}from"./index.styles-95837b62.js";import{I as wt}from"./index-c7136b2d.js";import{u as Pt}from"./useIsInit-36546b9c.js";import"@linaria/react";import"./utils-8849cc57.js";import"./index.styled-90fe28c0.js";import"./index-2f243424.js";import{C as _t}from"./index-bbf78608.js";const Mt=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],Nt=(e="")=>Mt.some((t=>new URL(e).origin.endsWith(t))),Lt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,d]=l(!1);return a.createElement(a.Fragment,null,a.createElement(g,null,a.createElement(v,{onClick:()=>d((e=>!e))},t||(null==n?void 0:n(m))||null,a.createElement(p,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,t)=>a.createElement(E,{key:t,"data-selected":s&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),d((e=>!e))),t.stopPropagation()}},a.createElement(Re,{size:"p3"},e.label),s&&i===e.value&&a.createElement("img",{src:Ue.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&a.createElement(y,{onClick:()=>d(!1)}))},Bt=({languageOptions:e,locale:t})=>{var l,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(Lt,{options:e,selected:i.value,label:a.createElement(Tt,{locale:t,label:i.label||(null===(n=null===(l=t.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Tt=({locale:e,label:t,href:l})=>{var n,i,o;return a.createElement(f,{href:l},a.createElement(d,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),a.createElement("span",null,t))},At=({path:e,locale:t})=>{var a;return`/shop/${null===(a=pt[t||"vi-VN"])||void 0===a?void 0:a[e]}/`},xt=t=>{var{count:l,styles:n,className:i,classNames:o,locale:s}=t,r=e(t,["count","styles","className","classNames","locale"]);const{classes:c,cx:m}=b(void 0,{name:"CartBadge",styles:n,classNames:o});return void 0!==l?a.createElement(ct,Object.assign({component:"a",href:At({path:"CART",locale:s}),className:m(c.root,i)},r),a.createElement(mt,{classNames:{root:c.indicatorRoot},withBorder:!0,color:"red",size:20,disabled:0===l,label:a.createElement(Re,{className:c.iconText,size:"s5"},l>99?"99+":l)},a.createElement(Ie.Cart,{size:24}))):null},Ht=({forceDisplay:e,mediaQueryKey:t,children:l,className:i,style:o})=>{const[s,r]=n((()=>ht(t)),[t]);return a.createElement(C,{lowerBound:e?0:s,upperBound:e?0:r,className:i,style:o},l)},St=e=>{const{allowBgScroll:t}=e||{},a=i();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},jt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z",fill:"#E3F2FF"}),a.createElement("path",{d:"M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38H2.5Z",fill:"#2D87F3"}),a.createElement("path",{d:"M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65ZM5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z",fill:"#2743AD"}),a.createElement("path",{d:"M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z",fill:"#2D87F3"}),a.createElement("path",{d:"M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z",fill:"#FE921D"}),a.createElement("path",{d:"M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.21.21 0 0 1-.06-.15Z",fill:"#fff"})),$t=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11Zm-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Zm1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05Z",fill:"#2D87F3"}),a.createElement("path",{d:"M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06Zm-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97Zm1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66Zm1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Z",fill:"#FFB521"}),a.createElement("path",{d:"M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17ZM13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14Zm1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1Zm1.34-.4a.23.23 0 1 1 .1-.01.23.23 0 0 1-.1.02Z",fill:"#91CAFF"})),Ft=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("rect",{x:"8.33337",y:"8.33325",width:"3.33333",height:"3.33333",rx:"1.66667",fill:"#2D87F3"})),Ot=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02L3.18 7.06Zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02l4.69 4.32Z",fill:"#2743AD"}),a.createElement("path",{d:"M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7Z",fill:"#2D87F3"}),a.createElement("path",{d:"M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25h-.02Zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.23.23 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22Zm-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23Z",fill:"#2743AD"}),a.createElement("path",{d:"M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03Z",fill:"#FE921D"}),a.createElement("path",{d:"M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46Z",fill:"#fff"}),a.createElement("path",{d:"M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7Z",fill:"#BCDEFF"})),Rt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z",fill:"#FF6F4D"})),It=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855",fill:"#2D87F3"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471",fill:"#FF6F4D"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z",fill:"#FF6F4D"})),Dt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142",fill:"#FF6F4D"}),a.createElement("path",{d:"M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204",fill:"#fff"})),Ut=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172",fill:"#00CB8A"})),Vt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0",fill:"#2D87F3"})),zt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334",fill:"#BCDEFF"}),a.createElement("path",{d:"M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005",fill:"#2D87F3"}),a.createElement("path",{d:"M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096",fill:"#2D87F3"})),Zt={helloSites:{member:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Gt=({rank:e,siteType:t="helloSites"})=>{const l=n((()=>{var a,l;return(null===(l=null===(a=Zt[t])||void 0===a?void 0:a[e])||void 0===l?void 0:l.call(a))||""}),[e,t]),{t:i}=ot();return a.createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?gt.colors.blue100:gt.colors.mb100}`}},a.createElement("img",{src:l,alt:e,style:{height:16,width:16}}),a.createElement(Re,{size:"s5",color:"gray.8",weight:"semiBold"},i(`userProfile.userRank.${e}`)))},Wt=({siteType:e="helloSites",userInfo:t})=>(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},a.createElement(u,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),a.createElement(Gt,{rank:"member",siteType:e})),a.createElement(Re,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),a.createElement(Re,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),a.createElement("hr",null)):null,qt=({className:e,activeItem:t,navMenuItems:n,style:i,onLogout:s,siteType:r="helloSites",userInfo:c})=>{const{locale:m}=ot(),[d,u]=l(),h="string"==typeof t?t:d,g=Ke(Qe(m,"marryBaby"===r)+"/"),v=Ke(Je(m,"marryBaby"===r)+"/"),p=n||[[{key:"userProfile.nav.header.viewProfile",icon:a.createElement(zt,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${g}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:a.createElement(Dt,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${g}user/health/`},{key:"userProfile.nav.card.mySaved",icon:a.createElement(Ut,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${g}user/saved/`},{key:"userProfile.nav.card.myBooking",icon:a.createElement(jt,{width:"24",height:"24"}),value:"booking",disabled:!Ve.includes(m),tracking:{action:"Manage Booking Click"},link:`${g}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:a.createElement($t,{width:"24",height:"24"}),value:"myCommunities",disabled:!ze.includes(m),tracking:{action:"Community Click"},link:`${g}user/my-communities/`}],...Ze.includes(m)?[[{key:"userProfile.nav.card.eCom",icon:a.createElement(Ot,{width:"24",height:"24"}),value:"eCom",disabled:!Ze.includes(m),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:a.createElement(Vt,{width:"24",height:"24"}),subMenu:[{key:"common.profileNavigator.newsletterSubscription",value:"subscription",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Subscription Click"},link:`${g}user/subscriptions/`,disabled:"vi-VN"!==m},{key:"userProfile.nav.menu.password",value:"password",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${g}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${g}user/disable-account/`}]}],[{key:"userProfile.nav.menu.help",icon:a.createElement(Rt,{width:"24",height:"24"}),value:"help",link:`${g}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:a.createElement(It,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return a.createElement(k,{className:e,style:i},a.createElement(Wt,{userInfo:c,siteType:r}),p.map(((e,t)=>a.createElement(o,{key:t},a.createElement("div",{className:"profile-nav-item-group",key:t},e.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:h||"",onLogout:s,onClick:()=>u((t=>t===e.key?void 0:e.key)),siteType:r})))),t!==p.length-1&&a.createElement("hr",null)))))},Kt=({item:e,activeKey:t,forceOpen:i,onLogout:o,onClick:r,siteType:c="helloSites"})=>{var m,d;const[u,h]=l(!1),g=n((()=>"undefined"!=typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:v}=ot(),p=null===(m=e.subMenu)||void 0===m?void 0:m.some((e=>e.key===t)),E=t===e.key;s((()=>{(p||E)&&h(!0)}),[p,E]);const y="boolean"==typeof i?i:u;return a.createElement(w,{as:e.subMenu?void 0:"a","data-is-open":y,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null==r||r(),e.subMenu&&!i?h((e=>!e)):"logout"===e.value?null==o||o():e.link&&(window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(d=null==e?void 0:e.tracking)||void 0===d?void 0:d.action)||"","data-event-label":g},a.createElement(P,{"data-active":E},e.icon,a.createElement(Re,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:E?"helloSites"===c?"hb.6":"mb.6":"gray.8"},v(e.key)),e.subMenu&&a.createElement(_,{"data-is-open":y},a.createElement(yt,{width:14}))),e.subMenu&&a.createElement(M,null,e.subMenu.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:t,onLogout:o,siteType:c})))))},Yt=({isOpen:e,userInfo:t,closePopup:l,siteType:n="helloSites",dispatchLogout:i})=>a.createElement(N,{"data-open":e},a.createElement("div",{className:"popup-content"},a.createElement(qt,{siteType:n,onLogout:()=>{i&&(i(),l())},userInfo:t}))),Qt=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:l,siteType:n="helloSites"})=>{const{t:i}=ot();return s((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(dt,null,a.createElement(at,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:Ue.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement(L,null,"helloSites"===n&&a.createElement("img",{src:Ue.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,i("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,i("logout.popup.ask2")),a.createElement(B,{siteType:n},a.createElement(ft,{className:"logout-button",color:"tertiary",size:"lg",onClick:l},i("logout.popup.button.logout")),a.createElement(ft,{className:"cancel-button",color:"primary",size:"lg",onClick:t},i("logout.popup.button.cancel"))))))},Jt=({userInfo:e,siteType:n,onLoginClick:i,SSO_URL:o,currentUrl:r,isMinifyLogin:c,onLogout:m,style:d,isLoading:g,locale:v})=>{const{t:p}=ot(),[E,y]=l(!1),f=(null==e?void 0:e.name)||(null==e?void 0:e.username),[b,C]=l(!1);s((()=>{C(!0)}),[]);const{containerRef:k,onContainerFocus:w,onContainerBlur:P,onButtonMouseDown:_,onClose:M}=St();return g?a.createElement(h,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?a.createElement(a.Fragment,null,a.createElement(T,{ref:k,style:d,tabIndex:0,onBlur:P,onFocus:()=>{var e;w();const t=null===(e=k.current)||void 0===e?void 0:e.querySelector("#desktop-sticky-header .hhgcomp-navprofilebutton-popup");if(t){const e=`calc(100vh - ${t.getBoundingClientRect().top}px)`;t.setAttribute("style",`max-height: ${e};`)}}},a.createElement("div",{onMouseDown:_},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(u,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===n?gt.mbColors.pink:gt.colors.secondaryBase,placeholderText:f&&f.length?f[0].toUpperCase():"A"})),a.createElement(Yt,{dispatchLogout:()=>{M(),y(!0)},isOpen:!1,closePopup:M,siteType:n,userInfo:e})),a.createElement(Qt,{openLogoutPopup:E,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),y(!1)},siteType:n,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){y(!1),document.body.classList.toggle("noscroll",!1),yield m()}))})):a.createElement(A,{style:Object.assign({textDecoration:"none"},d),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:b?void 0:Ke(`${o}?returnUrl=${r}`),"data-site-type":n},c?a.createElement(x,{onClick:i},a.createElement("img",{src:Ue.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===n&&(v===ut.Indonesia||v===ut.PhilippinesTagalog||v===ut.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:Ue.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):a.createElement(h,{className:"mobile-only",size:"sm",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},p("navigation.loginJoin"))),"marryBaby"===n&&a.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},a.createElement(Re,{size:"p3",color:gt.mbColors.pink},p("navigation.loginJoin"))),a.createElement(h,{className:"login-btn",size:"md",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22})},p("navigation.loginJoin"))))};var Xt="spdlGfq",ea="vgS16jX";const ta=({onCareHeaderClick:e,currentUrl:t,careUrlFe:l,btnName:n})=>e?a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):a.createElement("a",{href:l,className:`${ea} care-button no-replace-click`},a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var aa="y5VJdvw",la="oVhOSCy",na="pX8OXTM";function ia({className:e}){return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function oa({siteType:e,enableSearch:t,className:l}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?Ue.getAssetPath("hamburgerMenuNewWithSearch.svg"):Ue.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:"home",className:l,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:l},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const sa=()=>{const{locale:e,configs:{statics:t},siteType:l}=r(H),n=st(),{t:i}=ot();return a.createElement(Ct,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?i("navigation.search.input.placeholder"):i("home.search",{site:Ge[e||"en-PH"]?Ge[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(S,null))})};var ra="wnUb-dV",ca="cjbOxWe",ma="gB4rp89";const da=({item:e,menu:t})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:s}=St({allowBgScroll:!0}),r=Pt();return!e.popupType&&e.link?a.createElement(ua,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ca},"care"===e.id&&a.createElement("div",{className:ma},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):a.createElement(ua,{isNew:e.isNew},a.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:ca},"care"===e.id&&a.createElement("a",{className:ma,href:Ke(e.link+"/")},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&a.createElement("div",{className:ra},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},a.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),a.isValidElement(t)?a.cloneElement(t,{onClose:s}):null))},ua=({isNew:e,children:t})=>{const{t:l}=ot();return e?a.createElement(wt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},ha=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:l,onClosePopup:n,menuItems:i,headingTitle:o,activeItem:s})=>{const{siteType:c}=r(H);return a.createElement(j,null,a.createElement($,null,a.createElement(kt,{tag:"marryBaby"===c?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(F,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,"data-active":e.id&&e.id===s,href:i},!Nt(i)&&{target:"_blank"},{"data-theme":c,key:t,onClick:n}),a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),a.createElement(ua,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(O,null,a.createElement("img",{src:Ue.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(R,{"data-theme":c,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(I,{onClick:n,"data-theme":c,"data-is-heading-category":!1},t,a.createElement(D,null,a.createElement("img",{className:"svg",src:"marryBaby"===c?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},ga=({item:e,index:t=0})=>{var l;const{t:n}=ot(),{locale:i,configs:{statics:o}}=r(H);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(l=bt[i])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},a.createElement("img",{src:Ue.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(V,null,a.createElement(z,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(Z,null,a.createElement(G,null,e.name),a.createElement(W,null,e.description),a.createElement(q,null,n("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},va=({title:e,link:t,description:l,cta:n,icon:i})=>{const{siteType:o}=r(H);return a.createElement(K,{"data-theme":o},a.createElement(Y,null,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("navMBSpotlightBgNoData.svg"):Ue.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Q,null,i&&a.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(J,null,e),l&&a.createElement(X,null,l),n&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(ft,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},pa=({title:e,viewMore:t,children:l,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(H);return a.createElement(ee,null,a.createElement(te,null,a.createElement(kt,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(ae,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},Ea=({spotlights:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{siteType:n}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(le,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(ga,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(ft,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):a.createElement(va,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:t,cta:l("home.navigator.menu.care.homeButton"),icon:Ue.getAssetPath("community.svg")}))},ya=({item:e,index:t=0})=>e?a.createElement(ne,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement(ie,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(oe,null,e.title)):null,fa=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(se,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ya,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(va,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:t,cta:l("home.navigator.menu.category.noDatas.cta"),icon:Ue.getAssetPath("Spotlight.svg")}))},ba=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(H),{t:l}=ot();return a.createElement(pa,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ye(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(re,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ce,{index:t,post:e,key:e.id})))):a.createElement(va,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:Ue.getAssetPath("community.svg")}))},Ca=({item:e,index:t=0})=>e?a.createElement(me,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},a.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),a.createElement(Re,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,ka=({helpfulUrls:e=[]})=>{const{t:t}=ot();return e.length?a.createElement(pa,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?a.createElement(de,null,null==e?void 0:e.slice(0,5).map(((e,t)=>a.createElement(Ca,{key:t,index:t,item:e})))):a.createElement(a.Fragment,null)):null},wa=({item:e,index:t=0})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(ue,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},a.createElement("img",{src:Ue.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(he,null,a.createElement(ge,null,e.title),a.createElement(ve,null,e.subtitle),a.createElement(pe,null,l("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Ee,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Pa=({item:e,index:t=0,color:l})=>{const{t:n}=ot(),{configs:{statics:i}}=r(H);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>a.createElement(be,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>a.createElement(Ce,null,a.createElement(ke,null,a.createElement(we,null,e.title),a.createElement(Pe,null,e.subtitle)),a.createElement(_e,null,a.createElement("div",{className:"mobile-only"},n("home.seeMore")),a.createElement("img",{src:Ue.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(ye,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":l},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},a.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),a.createElement("img",{src:Ue.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(fe,null,a.createElement("div",{className:"mobile-only"},s()),a.createElement("div",{className:"desktop-only"},c())),a.createElement("div",{className:"mobile-only"},c()),a.createElement("div",{className:"desktop-only"},s()))},_a=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:l}=ot(),n=["pink","orange","green"],{siteType:i}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement(Me,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?a.createElement(Pa,{key:t,index:t,item:e,color:n[t]}):a.createElement(wa,{key:t,index:t,item:e})))),0===t.length&&a.createElement(va,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:Ue.getAssetPath("community.svg")}))},Ma=({closePopup:e,menuItems:t=[]})=>{var l,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m,ecom:d},activeMenuService:u,configs:{statics:h,enableSearchBar:g},locale:v}=r(H),{t:p}=ot();return a.createElement(Ne,{id:"categories-menu"},g?a.createElement(Le,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},a.createElement(sa,null)):null,a.createElement(Be,null,a.createElement(ha,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:u}),"categories"===u&&a.createElement(fa,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}/spotlight/`}),"tools"===u&&a.createElement(_a,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}${(null===(l=We[v])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&a.createElement(Ea,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=bt[v])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&a.createElement(ba,{spotlights:null==m?void 0:m.spotlights}),"ecom"===u&&a.createElement(ka,{helpfulUrls:null==d?void 0:d.helpfulUrls})))},Na=({menuItems:e})=>{const{siteType:t,configs:{enableSearchBar:l}}=r(H),{containerRef:n,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:s,onClose:c}=St();return a.createElement(Ht,{mediaQueryKey:"mbDown"},a.createElement("header",{className:aa},a.createElement("div",{className:la,ref:n,role:"button",tabIndex:0,onBlur:o,onFocus:i},a.createElement("div",{className:na,onMouseDown:s,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(ia,{className:"mobile-close-icon"}),a.createElement(oa,{siteType:t,enableSearch:l,className:"mobile-hamburger-icon"})),a.createElement(Ma,{menuItems:e,closePopup:c}))))},La=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>La(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Ba=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Ta=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(l=e.object_id)||void 0===l?void 0:l.name)||"",name:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},Aa=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(l=null==e?void 0:e.object_id)||void 0===l?void 0:l.logo)||"",description:(null===(n=e.object_id)||void 0===n?void 0:n.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},xa=(e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+vt(Te.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${qe[e]}`})),Ha=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=bt[a])||void 0===l?void 0:l.ALL}/${(null===(n=bt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},Sa=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},ja=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0};var $a="q3nL5cp",Fa="_2DNf80G",Oa="Q-glX-n";const Ra=({onClosePopup:e})=>a.createElement("div",{className:`${Oa} close-btn`,onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Ia=({onClosePopup:e,isDisplay:t,children:l,isNavMenu:n,hideCloseBtn:i})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},a.createElement(_t,null,!i&&a.createElement("div",{className:Fa},a.createElement(Ra,{onClosePopup:e})),a.createElement(_t,{className:$a},l))),Da=({careSpecialties:e=[],isOpen:t,onClose:l,spotlights:n=[]})=>{var i;const{t:o}=ot(),{locale:s,configs:{statics:c}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:t,isNavMenu:!0},a.createElement(ha,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ha({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(Ea,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(i=bt[s])||void 0===i?void 0:i.SPECIALTIES}/`}))},Ua=({categories:e=[],spotlightsList:t=[],onClose:l,isOpen:n})=>{const{t:i}=ot(),{locale:o,configs:{statics:s}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:n,isNavMenu:!0},a.createElement(ha,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),a.createElement(fa,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},Va=({communities:e=[],onClose:t,isOpen:l,spotlights:n=[]})=>{const{t:i}=ot(),{configs:{statics:o}}=r(H);return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:Ye(o.TOGETHER_URL_FE),UrlFE:Ke(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(ba,{spotlights:n}))},za=({locale:e,onClose:t,isOpen:l,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=ot(),{configs:{statics:c}}=r(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=We[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(_a,{spotlightHealthTools:n,hrefViewMore:m}))},Za=({onTopBarAppears:e,languageMenu:t,menuItems:n,logoComponent:o})=>{var m;const{siteType:d,isMobile:u=!1,locale:h,sitewideBanner:g,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:f,cartNumber:b,configs:{statics:C,enableNavCareBooking:k,enableSearchBar:w},userState:{userInfo:P},onLogout:_,isUserLoading:M}=r(H),{t:N}=ot(),{SSO_URL:L,HOME_PAGE_URL:B}=C,T=!!p,[A,x]=l(!1),S=i(47),j=i(null),$=i(!1),F="helloSites"===d?null===(m=Ge[h])||void 0===m?void 0:m.LOGO_TYPE:d,O="undefined"!=typeof window,R=c(rt((()=>{if(O){if(!j.current)return;const e=j.current.getBoundingClientRect();e.top<=0&&window.scrollY>S.current&&window.scrollY>e.height+20&&!$.current&&($.current=!0,x(!0)),window.scrollY<S.current&&$.current&&($.current=!1,x(!1)),window.scrollY>=0&&(S.current=window.scrollY)}}),200),[]);s((()=>{null==e||e(!A)}),[A]),s((()=>(window.addEventListener("scroll",R,{passive:!0}),()=>{window.removeEventListener("scroll",R)})),[]),s((()=>{u&&R()}),[u]);const I=v&&!!g;return a.createElement(Ae,{"data-site-type":d,"data-sponsored":T,"data-sitewide-banner-shown":I,"data-header-type":"home","data-collapsed":A,"data-is-displayed":!0,id:"site-header",ref:j},g,a.createElement(xe,{"data-site-type":d},a.createElement(He,{"data-site-type":d},a.createElement(Na,{menuItems:n}),o||a.createElement("a",{style:{flexShrink:0},href:B},a.createElement("div",null,a.createElement(it,{style:{display:"flex"},type:F,badge:"id-ID"===h&&a.createElement("img",{src:Ue.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:h,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?a.createElement(Wa,{menuItems:n}):w&&a.createElement(Ga,{siteType:d})),a.createElement(Se,{"data-site-type":d},"marryBaby"===d?w&&a.createElement(Ga,{siteType:d}):a.createElement(Wa,{menuItems:n}),a.createElement(je,null,a.createElement(xt,{count:b,locale:h}),k&&a.createElement(Ht,{mediaQueryKey:"mbUp"},a.createElement(ta,{careUrlFe:C.CARE_URL_FE,currentUrl:y,btnName:N("login.booking"),onCareHeaderClick:E})),t,a.createElement(Jt,{userInfo:P,siteType:d,onLoginClick:f||(()=>{const e=window.location.href;window.location.href=L?Ke(`${L}?returnUrl=${e}`):e}),SSO_URL:Ye(C.SSO_URL),currentUrl:y,onLogout:_,isLoading:M,locale:h})))),p?a.isValidElement(p)?a.cloneElement(p,{isCollapsed:A,locale:h,isMobile:u}):p:null)},Ga=({siteType:e})=>a.createElement(Ht,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(sa,null)),Wa=({menuItems:e})=>{const{siteType:t,locale:l,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(H);return a.createElement(Ht,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement($e,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(da,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(Ua,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?a.createElement(za,{locale:l,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?a.createElement(Va,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?a.createElement(Da,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},qa=e=>{var t,o;const{isMobile:m,locale:d,onTopBarAppears:u,languageOptions:h,sponsorComponent:g,sitewideBanner:v,sitewideBannerShown:p,className:E,logoComponent:y}=e,f=(()=>{const{t:e}=ot(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:i,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:m}}=r(H),d="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:d?Ue.getAssetPath("categories-mb.svg"):Ue.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=We[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:d?Ue.getAssetPath("healthtools-mb.svg"):Ue.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:Ke(m.TOGETHER_URL_FE+"/"),thumbnail:d?Ue.getAssetPath("community-mb.svg"):Ue.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ke(m.HOME_PAGE_URL+"/shop"),thumbnail:Ue.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:Ke("ms-MY"===a?m.HOME_PAGE_URL+"/care/current-location/hospital/":m.HOME_PAGE_URL+"/care"),thumbnail:Ue.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),n}),[a,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(H),{userInfo:a}=t;s((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,C=!!g,k=!!(null===(o=null===(t=null==g?void 0:g.props)||void 0===t?void 0:t.sponsoredBy)||void 0===o?void 0:o.length),{headerRef:w,defaultHeaderHeight:P,headerHeight:_,headerBottom:M}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:o})=>{const r=i(null),[m,d]=l(0),[u,h]=l(64),g=c(Et((()=>{var e,t,a,l;const n=(null===(e=r.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=r.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(d(n),h((null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);s((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),s((()=>{g()}),[o,a,t,e,r.current]);const v=n((()=>{let l=56;return a&&(l+=64),t&&(l+=40,e&&(l+=57)),l}),[o,a,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:u,headerRef:r}})({isShowingSiteWideBanner:b,isSponsored:C,hasSponsoredBanners:k,isMobile:m});return a.createElement(Oe,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":`calc(${_}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":M+"px"},className:E},a.createElement("section",{ref:w},a.createElement(Za,{menuItems:f,onTopBarAppears:u,logoComponent:y,languageMenu:a.createElement(Bt,{languageOptions:h,locale:d})})))},Ka=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(Fe,Object.assign({},t),a.createElement(qa,Object.assign({},t)))},Ya=e=>t(void 0,void 0,void 0,(function*(){var t,a,l,n,i,o,s,r,c,m,d,u,h,g,v,p,E,y,f,b,C,k,w;const P={},_="vi-VN_MB"===e;try{const M="tl-PH"===e?"lang=fil":"";try{const[d,u,h,g]=yield Promise.all([fetch(Ke(`${Xe(e)}/wp-json/api/categories${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${M?"&"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}/favorites${M?"?"+M:""}`)).then((e=>e.json()))]);P.categories={items:(null===(a=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,La))||[],spotlights:(null===(o=null===(i=null===(n=null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,Sa))||void 0===o?void 0:o.filter(ja))||[]},P.healthTools={items:(null===(r=null===(s=null==h?void 0:h.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Ba))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Ba))||[]}}catch(e){}if(_||ze.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(`${et()}/api/v1/community?website_url=https://${qe[e]}`)).then((e=>e.json())),fetch(Ke(`${et()}/api/v1/options?website_url=https://${qe[e]}&meta_key=popular_post`)).then((e=>e.json()))]);P.together={items:(null===(h=null===(u=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===u?void 0:u.map)||void 0===h?void 0:h.call(u,lt))||[],spotlights:(null===(p=null===(v=null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,nt))||[]}}catch(e){}if(Ve.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=0`)).then((e=>e.json())),fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=1`)).then((e=>e.json()))]);P.care={items:(null===(b=null===(f=null===(y=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.setting_menu)||void 0===y?void 0:y.menu_specialty)||void 0===f?void 0:f.map)||void 0===b?void 0:b.call(f,Ta))||[],spotlights:(null===(w=null===(k=null===(C=null==a?void 0:a._data.setting_menu)||void 0===C?void 0:C.menu_hospital)||void 0===k?void 0:k.map)||void 0===w?void 0:w.call(k,Aa))||[]}}catch(e){}}catch(e){console.error(e)}return P})),Qa=e=>t(void 0,void 0,void 0,(function*(){return(yield m("nav-menu-content",(()=>Ya(e||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{Bt as L,Ka as N,qt as P,Qa as a,Qt as b,Jt as c,xa as d,Ya as g,Nt as i};
1
+ import{_ as e,a as t}from"./tslib.es6-1a7e483e.js";import a,{useState as l,useMemo as n,useRef as i,Fragment as o,useEffect as s,useContext as r,useCallback as c}from"react";import{g as m}from"./core-ac4e85c7.js";import{F as d,a as u,B as h}from"./index-02f0f4fe.js";import{S as g,a as v,b as p,c as E,d as y,e as f,u as b,f as C,g as k,h as w,i as P,j as _,k as M,l as N,m as L,n as B,o as T,p as A,q as x,N as H,r as S,s as j,t as $,v as F,w as O,x as R,y as I,z as D,A as U,B as V,C as z,D as Z,E as G,F as W,G as q,H as K,I as Y,J as Q,K as J,L as X,M as ee,O as te,P as ae,Q as le,R as ne,T as ie,U as oe,V as se,W as re,X as ce,Y as me,Z as de,_ as ue,$ as he,a0 as ge,a1 as ve,a2 as pe,a3 as Ee,a4 as ye,a5 as fe,a6 as be,a7 as Ce,a8 as ke,a9 as we,aa as Pe,ab as _e,ac as Me,ad as Ne,ae as Le,af as Be,ag as Te,ah as Ae,ai as xe,aj as He,ak as Se,al as je,am as $e,an as Fe,ao as Oe}from"./index.styled-7f374882.js";import{T as Re,I as Ie,U as De}from"./index-e751d8c2.js";import{CommonGAssets as Ue}from"./gAssets.js";import{C as Ve,T as ze,E as Ze,L as Ge,S as We,d as qe}from"./index-13feb3ef.js";import{n as Ke,a as Ye}from"./normalizeLink-409cf3bf.js";import{a as Qe,g as Je,c as Xe,b as et,d as tt}from"./routing-0284bf36.js";import{P as at,b as lt,a as nt}from"./index-dde41fb0.js";import{L as it}from"./index-15efeba7.js";import{u as ot,b as st}from"./useTranslations-e0f5679c.js";import rt from"lodash/throttle";import{Box as ct,Indicator as mt,Portal as dt}from"@mantine/core";import"@mantine/dates";import{L as ut}from"./Subot-7ea674b0.js";import"dayjs";import{j as ht}from"./screenSizeContext-8f042934.js";import"styled-components";import{t as gt}from"./theme-c254ba9f.js";import"./isProduction-d0d81279.js";import"./translationsContext-f66e3d3d.js";import vt from"string-format";import"@mantine/hooks";import{L as pt}from"./constants-95cb8ea0.js";import Et from"lodash/debounce";import"./useCategory-b6426a83.js";import{C as yt}from"./ChevronDown-8da7a294.js";import{B as ft}from"./index-19144b5a.js";import{e as bt}from"./constants-bcabc622.js";import{P as Ct,H as kt}from"./index.styles-3036321c.js";import{I as wt}from"./index-53ef56cd.js";import{u as Pt}from"./useIsInit-db1c31df.js";import"@linaria/react";import"./utils-0347b372.js";import"./index.styled-d760ce2f.js";import"./index-c26145e4.js";import{C as _t}from"./index-e4c49b57.js";const Mt=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],Nt=(e="")=>Mt.some((t=>new URL(e).origin.endsWith(t))),Lt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,d]=l(!1);return a.createElement(a.Fragment,null,a.createElement(g,null,a.createElement(v,{onClick:()=>d((e=>!e))},t||(null==n?void 0:n(m))||null,a.createElement(p,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,t)=>a.createElement(E,{key:t,"data-selected":s&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),d((e=>!e))),t.stopPropagation()}},a.createElement(Re,{size:"p3"},e.label),s&&i===e.value&&a.createElement("img",{src:Ue.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&a.createElement(y,{onClick:()=>d(!1)}))},Bt=({languageOptions:e,locale:t})=>{var l,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(Lt,{options:e,selected:i.value,label:a.createElement(Tt,{locale:t,label:i.label||(null===(n=null===(l=t.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Tt=({locale:e,label:t,href:l})=>{var n,i,o;return a.createElement(f,{href:l},a.createElement(d,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),a.createElement("span",null,t))},At=({path:e,locale:t})=>{var a;return`/shop/${null===(a=pt[t||"vi-VN"])||void 0===a?void 0:a[e]}/`},xt=t=>{var{count:l,styles:n,className:i,classNames:o,locale:s}=t,r=e(t,["count","styles","className","classNames","locale"]);const{classes:c,cx:m}=b(void 0,{name:"CartBadge",styles:n,classNames:o});return void 0!==l?a.createElement(ct,Object.assign({component:"a",href:At({path:"CART",locale:s}),className:m(c.root,i)},r),a.createElement(mt,{classNames:{root:c.indicatorRoot},withBorder:!0,color:"red",size:20,disabled:0===l,label:a.createElement(Re,{className:c.iconText,size:"s5"},l>99?"99+":l)},a.createElement(Ie.Cart,{size:24}))):null},Ht=({forceDisplay:e,mediaQueryKey:t,children:l,className:i,style:o})=>{const[s,r]=n((()=>ht(t)),[t]);return a.createElement(C,{lowerBound:e?0:s,upperBound:e?0:r,className:i,style:o},l)},St=e=>{const{allowBgScroll:t}=e||{},a=i();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},jt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z",fill:"#E3F2FF"}),a.createElement("path",{d:"M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38H2.5Z",fill:"#2D87F3"}),a.createElement("path",{d:"M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65ZM5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z",fill:"#2743AD"}),a.createElement("path",{d:"M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z",fill:"#2D87F3"}),a.createElement("path",{d:"M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z",fill:"#FE921D"}),a.createElement("path",{d:"M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.21.21 0 0 1-.06-.15Z",fill:"#fff"})),$t=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11Zm-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Zm1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05Z",fill:"#2D87F3"}),a.createElement("path",{d:"M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06Zm-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97Zm1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66Zm1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Z",fill:"#FFB521"}),a.createElement("path",{d:"M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17ZM13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14Zm1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1Zm1.34-.4a.23.23 0 1 1 .1-.01.23.23 0 0 1-.1.02Z",fill:"#91CAFF"})),Ft=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("rect",{x:"8.33337",y:"8.33325",width:"3.33333",height:"3.33333",rx:"1.66667",fill:"#2D87F3"})),Ot=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02L3.18 7.06Zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02l4.69 4.32Z",fill:"#2743AD"}),a.createElement("path",{d:"M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7Z",fill:"#2D87F3"}),a.createElement("path",{d:"M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25h-.02Zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.23.23 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22Zm-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23Z",fill:"#2743AD"}),a.createElement("path",{d:"M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03Z",fill:"#FE921D"}),a.createElement("path",{d:"M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46Z",fill:"#fff"}),a.createElement("path",{d:"M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7Z",fill:"#BCDEFF"})),Rt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z",fill:"#FF6F4D"})),It=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855",fill:"#2D87F3"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471",fill:"#FF6F4D"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z",fill:"#FF6F4D"})),Dt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142",fill:"#FF6F4D"}),a.createElement("path",{d:"M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204",fill:"#fff"})),Ut=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172",fill:"#00CB8A"})),Vt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0",fill:"#2D87F3"})),zt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334",fill:"#BCDEFF"}),a.createElement("path",{d:"M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005",fill:"#2D87F3"}),a.createElement("path",{d:"M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096",fill:"#2D87F3"})),Zt={helloSites:{member:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Gt=({rank:e,siteType:t="helloSites"})=>{const l=n((()=>{var a,l;return(null===(l=null===(a=Zt[t])||void 0===a?void 0:a[e])||void 0===l?void 0:l.call(a))||""}),[e,t]),{t:i}=ot();return a.createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?gt.colors.blue100:gt.colors.mb100}`}},a.createElement("img",{src:l,alt:e,style:{height:16,width:16}}),a.createElement(Re,{size:"s5",color:"gray.8",weight:"semiBold"},i(`userProfile.userRank.${e}`)))},Wt=({siteType:e="helloSites",userInfo:t})=>(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},a.createElement(u,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),a.createElement(Gt,{rank:"member",siteType:e})),a.createElement(Re,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),a.createElement(Re,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),a.createElement("hr",null)):null,qt=({className:e,activeItem:t,navMenuItems:n,style:i,onLogout:s,siteType:r="helloSites",userInfo:c})=>{const{locale:m}=ot(),[d,u]=l(),h="string"==typeof t?t:d,g=Ke(Qe(m,"marryBaby"===r)+"/"),v=Ke(Je(m,"marryBaby"===r)+"/"),p=n||[[{key:"userProfile.nav.header.viewProfile",icon:a.createElement(zt,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${g}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:a.createElement(Dt,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${g}user/health/`},{key:"userProfile.nav.card.mySaved",icon:a.createElement(Ut,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${g}user/saved/`},{key:"userProfile.nav.card.myBooking",icon:a.createElement(jt,{width:"24",height:"24"}),value:"booking",disabled:!Ve.includes(m),tracking:{action:"Manage Booking Click"},link:`${g}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:a.createElement($t,{width:"24",height:"24"}),value:"myCommunities",disabled:!ze.includes(m),tracking:{action:"Community Click"},link:`${g}user/my-communities/`}],...Ze.includes(m)?[[{key:"userProfile.nav.card.eCom",icon:a.createElement(Ot,{width:"24",height:"24"}),value:"eCom",disabled:!Ze.includes(m),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:a.createElement(Vt,{width:"24",height:"24"}),subMenu:[{key:"common.profileNavigator.newsletterSubscription",value:"subscription",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Subscription Click"},link:`${g}user/subscriptions/`,disabled:"vi-VN"!==m},{key:"userProfile.nav.menu.password",value:"password",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${g}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${g}user/disable-account/`}]}],[{key:"userProfile.nav.menu.help",icon:a.createElement(Rt,{width:"24",height:"24"}),value:"help",link:`${g}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:a.createElement(It,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return a.createElement(k,{className:e,style:i},a.createElement(Wt,{userInfo:c,siteType:r}),p.map(((e,t)=>a.createElement(o,{key:t},a.createElement("div",{className:"profile-nav-item-group",key:t},e.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:h||"",onLogout:s,onClick:()=>u((t=>t===e.key?void 0:e.key)),siteType:r})))),t!==p.length-1&&a.createElement("hr",null)))))},Kt=({item:e,activeKey:t,forceOpen:i,onLogout:o,onClick:r,siteType:c="helloSites"})=>{var m,d;const[u,h]=l(!1),g=n((()=>"undefined"!=typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:v}=ot(),p=null===(m=e.subMenu)||void 0===m?void 0:m.some((e=>e.key===t)),E=t===e.key;s((()=>{(p||E)&&h(!0)}),[p,E]);const y="boolean"==typeof i?i:u;return a.createElement(w,{as:e.subMenu?void 0:"a","data-is-open":y,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null==r||r(),e.subMenu&&!i?h((e=>!e)):"logout"===e.value?null==o||o():e.link&&(window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(d=null==e?void 0:e.tracking)||void 0===d?void 0:d.action)||"","data-event-label":g},a.createElement(P,{"data-active":E},e.icon,a.createElement(Re,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:E?"helloSites"===c?"hb.6":"mb.6":"gray.8"},v(e.key)),e.subMenu&&a.createElement(_,{"data-is-open":y},a.createElement(yt,{width:14}))),e.subMenu&&a.createElement(M,null,e.subMenu.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:t,onLogout:o,siteType:c})))))},Yt=({isOpen:e,userInfo:t,closePopup:l,siteType:n="helloSites",dispatchLogout:i})=>a.createElement(N,{"data-open":e},a.createElement("div",{className:"popup-content"},a.createElement(qt,{siteType:n,onLogout:()=>{i&&(i(),l())},userInfo:t}))),Qt=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:l,siteType:n="helloSites"})=>{const{t:i}=ot();return s((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(dt,null,a.createElement(at,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:Ue.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement(L,null,"helloSites"===n&&a.createElement("img",{src:Ue.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,i("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,i("logout.popup.ask2")),a.createElement(B,{siteType:n},a.createElement(ft,{className:"logout-button",color:"tertiary",size:"lg",onClick:l},i("logout.popup.button.logout")),a.createElement(ft,{className:"cancel-button",color:"primary",size:"lg",onClick:t},i("logout.popup.button.cancel"))))))},Jt=({userInfo:e,siteType:n,onLoginClick:i,SSO_URL:o,currentUrl:r,isMinifyLogin:c,onLogout:m,style:d,isLoading:g,locale:v})=>{const{t:p}=ot(),[E,y]=l(!1),f=(null==e?void 0:e.name)||(null==e?void 0:e.username),[b,C]=l(!1);s((()=>{C(!0)}),[]);const{containerRef:k,onContainerFocus:w,onContainerBlur:P,onButtonMouseDown:_,onClose:M}=St();return g?a.createElement(h,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?a.createElement(a.Fragment,null,a.createElement(T,{ref:k,style:d,tabIndex:0,onBlur:P,onFocus:()=>{var e;w();const t=null===(e=k.current)||void 0===e?void 0:e.querySelector("#desktop-sticky-header .hhgcomp-navprofilebutton-popup");if(t){const e=`calc(100vh - ${t.getBoundingClientRect().top}px)`;t.setAttribute("style",`max-height: ${e};`)}}},a.createElement("div",{onMouseDown:_},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(u,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===n?gt.mbColors.pink:gt.colors.secondaryBase,placeholderText:f&&f.length?f[0].toUpperCase():"A"})),a.createElement(Yt,{dispatchLogout:()=>{M(),y(!0)},isOpen:!1,closePopup:M,siteType:n,userInfo:e})),a.createElement(Qt,{openLogoutPopup:E,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),y(!1)},siteType:n,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){y(!1),document.body.classList.toggle("noscroll",!1),yield m()}))})):a.createElement(A,{style:Object.assign({textDecoration:"none"},d),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:b?void 0:Ke(`${o}?returnUrl=${r}`),"data-site-type":n},c?a.createElement(x,{onClick:i},a.createElement("img",{src:Ue.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===n&&(v===ut.Indonesia||v===ut.PhilippinesTagalog||v===ut.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:Ue.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):a.createElement(h,{className:"mobile-only",size:"sm",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},p("navigation.loginJoin"))),"marryBaby"===n&&a.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},a.createElement(Re,{size:"p3",color:gt.mbColors.pink},p("navigation.loginJoin"))),a.createElement(h,{className:"login-btn",size:"md",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22})},p("navigation.loginJoin"))))};var Xt="spdlGfq",ea="vgS16jX";const ta=({onCareHeaderClick:e,currentUrl:t,careUrlFe:l,btnName:n})=>e?a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):a.createElement("a",{href:l,className:`${ea} care-button no-replace-click`},a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var aa="y5VJdvw",la="oVhOSCy",na="pX8OXTM";function ia({className:e}){return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function oa({siteType:e,enableSearch:t,className:l}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?Ue.getAssetPath("hamburgerMenuNewWithSearch.svg"):Ue.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:"home",className:l,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:l},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const sa=()=>{const{locale:e,configs:{statics:t},siteType:l}=r(H),n=st(),{t:i}=ot();return a.createElement(Ct,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?i("navigation.search.input.placeholder"):i("home.search",{site:Ge[e||"en-PH"]?Ge[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(S,null))})};var ra="wnUb-dV",ca="cjbOxWe",ma="gB4rp89";const da=({item:e,menu:t})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:s}=St({allowBgScroll:!0}),r=Pt();return!e.popupType&&e.link?a.createElement(ua,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ca},"care"===e.id&&a.createElement("div",{className:ma},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):a.createElement(ua,{isNew:e.isNew},a.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:ca},"care"===e.id&&a.createElement("a",{className:ma,href:Ke(e.link+"/")},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&a.createElement("div",{className:ra},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},a.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),a.isValidElement(t)?a.cloneElement(t,{onClose:s}):null))},ua=({isNew:e,children:t})=>{const{t:l}=ot();return e?a.createElement(wt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},ha=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:l,onClosePopup:n,menuItems:i,headingTitle:o,activeItem:s})=>{const{siteType:c}=r(H);return a.createElement(j,null,a.createElement($,null,a.createElement(kt,{tag:"marryBaby"===c?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(F,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,"data-active":e.id&&e.id===s,href:i},!Nt(i)&&{target:"_blank"},{"data-theme":c,key:t,onClick:n}),a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),a.createElement(ua,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(O,null,a.createElement("img",{src:Ue.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(R,{"data-theme":c,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(I,{onClick:n,"data-theme":c,"data-is-heading-category":!1},t,a.createElement(D,null,a.createElement("img",{className:"svg",src:"marryBaby"===c?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},ga=({item:e,index:t=0})=>{var l;const{t:n}=ot(),{locale:i,configs:{statics:o}}=r(H);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(l=bt[i])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},a.createElement("img",{src:Ue.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(V,null,a.createElement(z,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(Z,null,a.createElement(G,null,e.name),a.createElement(W,null,e.description),a.createElement(q,null,n("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},va=({title:e,link:t,description:l,cta:n,icon:i})=>{const{siteType:o}=r(H);return a.createElement(K,{"data-theme":o},a.createElement(Y,null,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("navMBSpotlightBgNoData.svg"):Ue.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Q,null,i&&a.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(J,null,e),l&&a.createElement(X,null,l),n&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(ft,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},pa=({title:e,viewMore:t,children:l,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(H);return a.createElement(ee,null,a.createElement(te,null,a.createElement(kt,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(ae,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},Ea=({spotlights:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{siteType:n}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(le,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(ga,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(ft,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):a.createElement(va,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:t,cta:l("home.navigator.menu.care.homeButton"),icon:Ue.getAssetPath("community.svg")}))},ya=({item:e,index:t=0})=>e?a.createElement(ne,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement(ie,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(oe,null,e.title)):null,fa=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(se,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ya,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(va,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:t,cta:l("home.navigator.menu.category.noDatas.cta"),icon:Ue.getAssetPath("Spotlight.svg")}))},ba=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(H),{t:l}=ot();return a.createElement(pa,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ye(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(re,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ce,{index:t,post:e,key:e.id})))):a.createElement(va,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:Ue.getAssetPath("community.svg")}))},Ca=({item:e,index:t=0})=>e?a.createElement(me,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},a.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),a.createElement(Re,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,ka=({helpfulUrls:e=[]})=>{const{t:t}=ot();return e.length?a.createElement(pa,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?a.createElement(de,null,null==e?void 0:e.slice(0,5).map(((e,t)=>a.createElement(Ca,{key:t,index:t,item:e})))):a.createElement(a.Fragment,null)):null},wa=({item:e,index:t=0})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(ue,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},a.createElement("img",{src:Ue.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(he,null,a.createElement(ge,null,e.title),a.createElement(ve,null,e.subtitle),a.createElement(pe,null,l("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Ee,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Pa=({item:e,index:t=0,color:l})=>{const{t:n}=ot(),{configs:{statics:i}}=r(H);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>a.createElement(be,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>a.createElement(Ce,null,a.createElement(ke,null,a.createElement(we,null,e.title),a.createElement(Pe,null,e.subtitle)),a.createElement(_e,null,a.createElement("div",{className:"mobile-only"},n("home.seeMore")),a.createElement("img",{src:Ue.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(ye,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":l},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},a.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),a.createElement("img",{src:Ue.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(fe,null,a.createElement("div",{className:"mobile-only"},s()),a.createElement("div",{className:"desktop-only"},c())),a.createElement("div",{className:"mobile-only"},c()),a.createElement("div",{className:"desktop-only"},s()))},_a=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:l}=ot(),n=["pink","orange","green"],{siteType:i}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement(Me,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?a.createElement(Pa,{key:t,index:t,item:e,color:n[t]}):a.createElement(wa,{key:t,index:t,item:e})))),0===t.length&&a.createElement(va,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:Ue.getAssetPath("community.svg")}))},Ma=({closePopup:e,menuItems:t=[]})=>{var l,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m,ecom:d},activeMenuService:u,configs:{statics:h,enableSearchBar:g},locale:v}=r(H),{t:p}=ot();return a.createElement(Ne,{id:"categories-menu"},g?a.createElement(Le,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},a.createElement(sa,null)):null,a.createElement(Be,null,a.createElement(ha,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:u}),"categories"===u&&a.createElement(fa,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}/spotlight/`}),"tools"===u&&a.createElement(_a,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}${(null===(l=We[v])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&a.createElement(Ea,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=bt[v])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&a.createElement(ba,{spotlights:null==m?void 0:m.spotlights}),"ecom"===u&&a.createElement(ka,{helpfulUrls:null==d?void 0:d.helpfulUrls})))},Na=({menuItems:e})=>{const{siteType:t,configs:{enableSearchBar:l}}=r(H),{containerRef:n,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:s,onClose:c}=St();return a.createElement(Ht,{mediaQueryKey:"mbDown"},a.createElement("header",{className:aa},a.createElement("div",{className:la,ref:n,role:"button",tabIndex:0,onBlur:o,onFocus:i},a.createElement("div",{className:na,onMouseDown:s,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(ia,{className:"mobile-close-icon"}),a.createElement(oa,{siteType:t,enableSearch:l,className:"mobile-hamburger-icon"})),a.createElement(Ma,{menuItems:e,closePopup:c}))))},La=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>La(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Ba=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Ta=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(l=e.object_id)||void 0===l?void 0:l.name)||"",name:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},Aa=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(l=null==e?void 0:e.object_id)||void 0===l?void 0:l.logo)||"",description:(null===(n=e.object_id)||void 0===n?void 0:n.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},xa=(e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+vt(Te.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${qe[e]}`})),Ha=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=bt[a])||void 0===l?void 0:l.ALL}/${(null===(n=bt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},Sa=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},ja=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0};var $a="q3nL5cp",Fa="_2DNf80G",Oa="Q-glX-n";const Ra=({onClosePopup:e})=>a.createElement("div",{className:`${Oa} close-btn`,onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Ia=({onClosePopup:e,isDisplay:t,children:l,isNavMenu:n,hideCloseBtn:i})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},a.createElement(_t,null,!i&&a.createElement("div",{className:Fa},a.createElement(Ra,{onClosePopup:e})),a.createElement(_t,{className:$a},l))),Da=({careSpecialties:e=[],isOpen:t,onClose:l,spotlights:n=[]})=>{var i;const{t:o}=ot(),{locale:s,configs:{statics:c}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:t,isNavMenu:!0},a.createElement(ha,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ha({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(Ea,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(i=bt[s])||void 0===i?void 0:i.SPECIALTIES}/`}))},Ua=({categories:e=[],spotlightsList:t=[],onClose:l,isOpen:n})=>{const{t:i}=ot(),{locale:o,configs:{statics:s}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:n,isNavMenu:!0},a.createElement(ha,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),a.createElement(fa,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},Va=({communities:e=[],onClose:t,isOpen:l,spotlights:n=[]})=>{const{t:i}=ot(),{configs:{statics:o}}=r(H);return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:Ye(o.TOGETHER_URL_FE),UrlFE:Ke(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(ba,{spotlights:n}))},za=({locale:e,onClose:t,isOpen:l,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=ot(),{configs:{statics:c}}=r(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=We[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(_a,{spotlightHealthTools:n,hrefViewMore:m}))},Za=({onTopBarAppears:e,languageMenu:t,menuItems:n,logoComponent:o})=>{var m;const{siteType:d,isMobile:u=!1,locale:h,sitewideBanner:g,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:f,cartNumber:b,configs:{statics:C,enableNavCareBooking:k,enableSearchBar:w},userState:{userInfo:P},onLogout:_,isUserLoading:M}=r(H),{t:N}=ot(),{SSO_URL:L,HOME_PAGE_URL:B}=C,T=!!p,[A,x]=l(!1),S=i(47),j=i(null),$=i(!1),F="helloSites"===d?null===(m=Ge[h])||void 0===m?void 0:m.LOGO_TYPE:d,O="undefined"!=typeof window,R=c(rt((()=>{if(O){if(!j.current)return;const e=j.current.getBoundingClientRect();e.top<=0&&window.scrollY>S.current&&window.scrollY>e.height+20&&!$.current&&($.current=!0,x(!0)),window.scrollY<S.current&&$.current&&($.current=!1,x(!1)),window.scrollY>=0&&(S.current=window.scrollY)}}),200),[]);s((()=>{null==e||e(!A)}),[A]),s((()=>(window.addEventListener("scroll",R,{passive:!0}),()=>{window.removeEventListener("scroll",R)})),[]),s((()=>{u&&R()}),[u]);const I=v&&!!g;return a.createElement(Ae,{"data-site-type":d,"data-sponsored":T,"data-sitewide-banner-shown":I,"data-header-type":"home","data-collapsed":A,"data-is-displayed":!0,id:"site-header",ref:j},g,a.createElement(xe,{"data-site-type":d},a.createElement(He,{"data-site-type":d},a.createElement(Na,{menuItems:n}),o||a.createElement("a",{style:{flexShrink:0},href:B},a.createElement("div",null,a.createElement(it,{style:{display:"flex"},type:F,badge:"id-ID"===h&&a.createElement("img",{src:Ue.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:h,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?a.createElement(Wa,{menuItems:n}):w&&a.createElement(Ga,{siteType:d})),a.createElement(Se,{"data-site-type":d},"marryBaby"===d?w&&a.createElement(Ga,{siteType:d}):a.createElement(Wa,{menuItems:n}),a.createElement(je,null,a.createElement(xt,{count:b,locale:h}),k&&a.createElement(Ht,{mediaQueryKey:"mbUp"},a.createElement(ta,{careUrlFe:C.CARE_URL_FE,currentUrl:y,btnName:N("login.booking"),onCareHeaderClick:E})),t,a.createElement(Jt,{userInfo:P,siteType:d,onLoginClick:f||(()=>{const e=window.location.href;window.location.href=L?Ke(`${L}?returnUrl=${e}`):e}),SSO_URL:Ye(C.SSO_URL),currentUrl:y,onLogout:_,isLoading:M,locale:h})))),p?a.isValidElement(p)?a.cloneElement(p,{isCollapsed:A,locale:h,isMobile:u}):p:null)},Ga=({siteType:e})=>a.createElement(Ht,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(sa,null)),Wa=({menuItems:e})=>{const{siteType:t,locale:l,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(H);return a.createElement(Ht,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement($e,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(da,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(Ua,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?a.createElement(za,{locale:l,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?a.createElement(Va,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?a.createElement(Da,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},qa=e=>{var t,o;const{isMobile:m,locale:d,onTopBarAppears:u,languageOptions:h,sponsorComponent:g,sitewideBanner:v,sitewideBannerShown:p,className:E,logoComponent:y}=e,f=(()=>{const{t:e}=ot(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:i,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:m}}=r(H),d="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:d?Ue.getAssetPath("categories-mb.svg"):Ue.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=We[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:d?Ue.getAssetPath("healthtools-mb.svg"):Ue.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:Ke(m.TOGETHER_URL_FE+"/"),thumbnail:d?Ue.getAssetPath("community-mb.svg"):Ue.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ke(m.HOME_PAGE_URL+"/shop"),thumbnail:Ue.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:Ke("ms-MY"===a?m.HOME_PAGE_URL+"/care/current-location/hospital/":m.HOME_PAGE_URL+"/care"),thumbnail:Ue.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),n}),[a,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(H),{userInfo:a}=t;s((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,C=!!g,k=!!(null===(o=null===(t=null==g?void 0:g.props)||void 0===t?void 0:t.sponsoredBy)||void 0===o?void 0:o.length),{headerRef:w,defaultHeaderHeight:P,headerHeight:_,headerBottom:M}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:o})=>{const r=i(null),[m,d]=l(0),[u,h]=l(64),g=c(Et((()=>{var e,t,a,l;const n=(null===(e=r.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=r.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(d(n),h((null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);s((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),s((()=>{g()}),[o,a,t,e,r.current]);const v=n((()=>{let l=56;return a&&(l+=64),t&&(l+=40,e&&(l+=57)),l}),[o,a,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:u,headerRef:r}})({isShowingSiteWideBanner:b,isSponsored:C,hasSponsoredBanners:k,isMobile:m});return a.createElement(Oe,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":`calc(${_}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":M+"px"},className:E},a.createElement("section",{ref:w},a.createElement(Za,{menuItems:f,onTopBarAppears:u,logoComponent:y,languageMenu:a.createElement(Bt,{languageOptions:h,locale:d})})))},Ka=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(Fe,Object.assign({},t),a.createElement(qa,Object.assign({},t)))},Ya=e=>t(void 0,void 0,void 0,(function*(){var t,a,l,n,i,o,s,r,c,m,d,u,h,g,v,p,E,y,f,b,C,k,w;const P={},_="vi-VN_MB"===e;try{const M="tl-PH"===e?"lang=fil":"";try{const[d,u,h,g]=yield Promise.all([fetch(Ke(`${Xe(e)}/wp-json/api/categories${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${M?"&"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}/favorites${M?"?"+M:""}`)).then((e=>e.json()))]);P.categories={items:(null===(a=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,La))||[],spotlights:(null===(o=null===(i=null===(n=null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,Sa))||void 0===o?void 0:o.filter(ja))||[]},P.healthTools={items:(null===(r=null===(s=null==h?void 0:h.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Ba))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Ba))||[]}}catch(e){}if(_||ze.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(`${et()}/api/v1/community?website_url=https://${qe[e]}`)).then((e=>e.json())),fetch(Ke(`${et()}/api/v1/options?website_url=https://${qe[e]}&meta_key=popular_post`)).then((e=>e.json()))]);P.together={items:(null===(h=null===(u=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===u?void 0:u.map)||void 0===h?void 0:h.call(u,lt))||[],spotlights:(null===(p=null===(v=null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,nt))||[]}}catch(e){}if(Ve.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=0`)).then((e=>e.json())),fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=1`)).then((e=>e.json()))]);P.care={items:(null===(b=null===(f=null===(y=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.setting_menu)||void 0===y?void 0:y.menu_specialty)||void 0===f?void 0:f.map)||void 0===b?void 0:b.call(f,Ta))||[],spotlights:(null===(w=null===(k=null===(C=null==a?void 0:a._data.setting_menu)||void 0===C?void 0:C.menu_hospital)||void 0===k?void 0:k.map)||void 0===w?void 0:w.call(k,Aa))||[]}}catch(e){}}catch(e){console.error(e)}return P})),Qa=e=>t(void 0,void 0,void 0,(function*(){return(yield m("nav-menu-content",(()=>Ya(e||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{Bt as L,Ka as N,qt as P,Qa as a,Qt as b,Jt as c,xa as d,Ya as g,Nt as i};
@@ -1,4 +1,4 @@
1
- import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenSizeContext-f9a53919.js";import"dayjs";import l from"styled-components";import{t as n}from"./theme-9d69f1a2.js";import"./index-14839883.js";import"./isProduction-d8d94564.js";import"./Subot-f581f4df.js";import"./gAssets.js";import{_ as a}from"./tslib.es6-7b491686.js";import{b as r}from"./index.styles-95837b62.js";const d=l.div`
1
+ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenSizeContext-8f042934.js";import"dayjs";import l from"styled-components";import{t as n}from"./theme-c254ba9f.js";import"./index-13feb3ef.js";import"./isProduction-d0d81279.js";import"./Subot-7ea674b0.js";import"./gAssets.js";import{_ as a}from"./tslib.es6-1a7e483e.js";import{b as r}from"./index.styles-3036321c.js";const d=l.div`
2
2
  position: fixed;
3
3
  left: 50%;
4
4
 
@@ -1 +1 @@
1
- import e,{useState as t,useRef as o,useEffect as d}from"react";import{u as a}from"./useScrollbarSize-30b1bee4.js";import{createPortal as l}from"react-dom";import{S as c,a as n,b as r}from"./index-c70696a6.js";const s="hhg-modals",m=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},i=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},h=({type:h="lead",closeIcon:u,isOpen:p=!0,onClose:y,children:b,className:g="",animationType:v="slideTop",isStaticBackdrop:_=!1,siteType:f})=>{const[E,w]=t(!1),C=o(null),{width:N}=a();if(!C.current&&E&&(C.current=document.createElement("div")),d((()=>(w(!0),()=>{w(!1),m(),i()})),[]),d((()=>{if(E){const e=(()=>{let e=document.getElementById(s);return e||(e=document.createElement("div"),e.setAttribute("id",s),document.body.append(e)),e})();return e.appendChild(C.current),()=>{e.removeChild(C.current)}}}),[E]),d((()=>{p?document.body.classList.add("hhc-modal-show"):m()}),[p]),d((()=>{p?(document.body.style.overflow="hidden",document.body.style.paddingRight=N+"px",document.body.classList.add("hhc-disabled-scroll")):i()}),[p,N]),!E)return null;const S=["hhg-modal__wrapper",g,v].filter((e=>e)).join(" ");return l(e.createElement(c,{className:S,"data-open":p,"data-type":h},!_&&e.createElement(n,{"data-open":p,onClick:y,"data-type":h}),!_&&"video"===h&&!!u&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),e.createElement(r,{className:"hhg-modal","data-open":p,"data-site-type":f},e.createElement("div",{className:"video"===h?"hhg-modal__video":"hhg-modal__content"},!!u&&"video"!==h&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),b))),C.current)};export{h as M};
1
+ import e,{useState as t,useRef as o,useEffect as d}from"react";import{u as a}from"./useScrollbarSize-611c8d35.js";import{createPortal as l}from"react-dom";import{S as c,a as n,b as r}from"./index-eace0e39.js";const s="hhg-modals",m=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},i=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},h=({type:h="lead",closeIcon:u,isOpen:p=!0,onClose:y,children:g,className:b="",animationType:v="slideTop",isStaticBackdrop:_=!1,siteType:f})=>{const[E,w]=t(!1),C=o(null),{width:N}=a();if(!C.current&&E&&(C.current=document.createElement("div")),d((()=>(w(!0),()=>{w(!1),m(),i()})),[]),d((()=>{if(E){const e=(()=>{let e=document.getElementById(s);return e||(e=document.createElement("div"),e.setAttribute("id",s),document.body.append(e)),e})();return e.appendChild(C.current),()=>{e.removeChild(C.current)}}}),[E]),d((()=>{p?document.body.classList.add("hhc-modal-show"):m()}),[p]),d((()=>{p?(document.body.style.overflow="hidden",document.body.style.paddingRight=N+"px",document.body.classList.add("hhc-disabled-scroll")):i()}),[p,N]),!E)return null;const S=["hhg-modal__wrapper",b,v].filter((e=>e)).join(" ");return l(e.createElement(c,{className:S,"data-open":p,"data-type":h},!_&&e.createElement(n,{"data-open":p,onClick:y,"data-type":h}),!_&&"video"===h&&!!u&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),e.createElement(r,{className:"hhg-modal","data-open":p,"data-site-type":f},e.createElement("div",{className:"video"===h?"hhg-modal__video":"hhg-modal__content"},!!u&&"video"!==h&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),g))),C.current)};export{h as M};
@@ -1 +1 @@
1
- import{G as e,B as t,a as r,b as a,L as n,O as o,N as s,c as u,d as g,e as p,f as T,F as d,g as i,E as N,S as b}from"./Subot-f581f4df.js";var y=Object.freeze({__proto__:null,get Gender(){return e},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return r},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o},get NodePosition(){return s},get NodeType(){return u},NodeFinalTypes:g,get NodeIntentType(){return p},get NodeActionType(){return T},FULL_KEY_ADDRESS:d,get NodeMultipleOptions(){return i},ELEMENT_CONTROL_INPUT_TYPE:N,SubotType:b});export{y as i};
1
+ import{G as e,B as t,a as r,b as a,L as n,O as o,N as s,c as u,d as g,e as p,f as T,F as b,g as i,E as N,S as d}from"./Subot-7ea674b0.js";var y=Object.freeze({__proto__:null,get Gender(){return e},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return r},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o},get NodePosition(){return s},get NodeType(){return u},NodeFinalTypes:g,get NodeIntentType(){return p},get NodeActionType(){return T},FULL_KEY_ADDRESS:b,get NodeMultipleOptions(){return i},ELEMENT_CONTROL_INPUT_TYPE:N,SubotType:d});export{y as i};