@hhgtech/hhg-components 1.28.39 → 1.28.41

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 (279) 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/molecules/dropdown/index.styled.d.ts +1 -1
  6. package/build/components.js +1 -1
  7. package/build/{constants-57d89069.js → constants-55a2b4cb.js} +1 -1
  8. package/build/{constants-82348c13.js → constants-d67df371.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/{core-081bdce5.js → core-3dfeee83.js} +1 -1
  11. package/build/ecom.js +1 -1
  12. package/build/esm/babyGrowth.js +4 -4
  13. package/build/esm/cache.js +1 -1
  14. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  15. package/build/esm/care.js +1 -1
  16. package/build/esm/components/molecules/dropdown/index.styled.d.ts +1 -1
  17. package/build/esm/components.js +1 -1
  18. package/build/esm/{constants-0d46ae1d.js → constants-8dc38f9e.js} +1 -1
  19. package/build/esm/{constants-039f36fe.js → constants-fe146bd1.js} +1 -1
  20. package/build/esm/constants.js +1 -1
  21. package/build/esm/{core-3c0d6b0f.js → core-a3b3b447.js} +1 -1
  22. package/build/esm/ecom.js +1 -1
  23. package/build/esm/footer.js +1 -1
  24. package/build/esm/gAssets.js +1 -1
  25. package/build/esm/{getDynamicHealthTool-d874b77f.js → getDynamicHealthTool-781262ca.js} +1 -1
  26. package/build/esm/{getSocialList-5ea15cba.js → getSocialList-f4d07c8e.js} +1 -1
  27. package/build/esm/hooks.js +1 -1
  28. package/build/esm/i18n.js +1 -1
  29. package/build/esm/i18nV2.js +1 -1
  30. package/build/esm/{index-434197c4.js → index-00d3e532.js} +1 -1
  31. package/build/esm/{index-14839883.js → index-27df5763.js} +1 -1
  32. package/build/esm/{index-282bbb6d.js → index-2e1d6359.js} +1 -1
  33. package/build/esm/{index-20b84b31.js → index-53b0f26d.js} +1 -1
  34. package/build/esm/{index-7d0179b5.js → index-5d380017.js} +1 -1
  35. package/build/esm/{index-6795099e.js → index-5f2067d5.js} +1 -1
  36. package/build/esm/index-68094777.js +1 -0
  37. package/build/esm/{index-1be91706.js → index-70655f2a.js} +1 -1
  38. package/build/esm/{index-8db07311.js → index-76a540e6.js} +1 -1
  39. package/build/esm/{index-fa32b4d8.js → index-8118170d.js} +1 -1
  40. package/build/esm/{index-e17cd802.js → index-81be61aa.js} +1 -1
  41. package/build/esm/{index-f1ff7dac.js → index-8680e894.js} +1 -1
  42. package/build/esm/index-8951aade.js +1 -0
  43. package/build/esm/{index-1ac72931.js → index-8b7c8eb1.js} +1 -1
  44. package/build/esm/{index-dff74895.js → index-a954e49f.js} +1 -1
  45. package/build/esm/{index-5ecfac85.js → index-ad6cd88d.js} +1 -1
  46. package/build/esm/{index-0e6dbcc0.js → index-b735052e.js} +1 -1
  47. package/build/esm/{index-5761cc3d.js → index-b98d1a30.js} +1 -1
  48. package/build/esm/{index-8dfb1724.js → index-bed044a7.js} +1 -1
  49. package/build/esm/{index-622dbaca.js → index-d51eb02e.js} +1 -1
  50. package/build/esm/{index-c70696a6.js → index-dd278d18.js} +7 -7
  51. package/build/esm/{index-3d1ca95c.js → index-fc00d32b.js} +1 -1
  52. package/build/esm/index.js +1 -1
  53. package/build/esm/{index.styled-e26007df.js → index.styled-2daeb250.js} +6 -6
  54. package/build/esm/{index.styled-ede7c10d.js → index.styled-5882c35f.js} +1 -1
  55. package/build/esm/{index.styled-90fe28c0.js → index.styled-6252f77a.js} +1 -1
  56. package/build/esm/{index.styled-a1854a4a.js → index.styled-886c957e.js} +76 -76
  57. package/build/esm/{index.styles-95837b62.js → index.styles-874ee5cd.js} +5 -5
  58. package/build/esm/lead.js +1 -1
  59. package/build/esm/mantine.js +1 -1
  60. package/build/esm/misc.js +1 -1
  61. package/build/esm/navigation.js +1 -1
  62. package/build/esm/onboardingV2.js +9 -9
  63. package/build/esm/pwg.js +3 -3
  64. package/build/esm/{routing-7c32cdb3.js → routing-be087f5b.js} +1 -1
  65. package/build/esm/subot.js +1 -1
  66. package/build/esm/together.js +1 -1
  67. package/build/esm/{types-d466572e.js → types-1267dbbc.js} +1 -1
  68. package/build/esm/{types-c5a3b173.js → types-94add167.js} +7 -7
  69. package/build/esm/types.js +1 -1
  70. package/build/esm/{useCategory-702b6604.js → useCategory-440b7f9a.js} +1 -1
  71. package/build/esm/useHealthToolCache-1f203ca0.js +1 -0
  72. package/build/esm/{usePlacesAutocomplete-d14c4671.js → usePlacesAutocomplete-8e10c310.js} +1 -1
  73. package/build/esm/{useRafState-1ba3edb3.js → useRafState-4a14b267.js} +1 -1
  74. package/build/esm/{useTranslations-51dc4ab8.js → useTranslations-6b1653a2.js} +1 -1
  75. package/build/esm/{utils-b2a0d664.js → utils-1e95a4d1.js} +1 -1
  76. package/build/esm/{utils-8849cc57.js → utils-ab72b62f.js} +1 -1
  77. package/build/esm/vaccination.js +11 -11
  78. package/build/footer.js +1 -1
  79. package/build/gAssets.js +1 -1
  80. package/build/getDynamicHealthTool-398ca351.js +1 -0
  81. package/build/{getSocialList-55a29d3a.js → getSocialList-30296f8a.js} +1 -1
  82. package/build/hooks.js +1 -1
  83. package/build/i18n.js +1 -1
  84. package/build/i18nV2.js +1 -1
  85. package/build/index-0a124e5f.js +1 -0
  86. package/build/{index-e23393d6.js → index-11eb8c8c.js} +1 -1
  87. package/build/{index-cbb25109.js → index-19ab75f5.js} +10 -10
  88. package/build/{index-543b2956.js → index-1b06cb3e.js} +1 -1
  89. package/build/{index-80a776c5.js → index-1f4a8940.js} +1 -1
  90. package/build/{index-5a09ea5b.js → index-5cb3e60f.js} +1 -1
  91. package/build/{index-511b99c0.js → index-5d9cc019.js} +1 -1
  92. package/build/{index-e4732cde.js → index-77319653.js} +1 -1
  93. package/build/index-8673af8a.js +1 -0
  94. package/build/{index-dd161fb0.js → index-95cd2806.js} +1 -1
  95. package/build/{index-557f79d9.js → index-9d548edc.js} +1 -1
  96. package/build/{index-1cc9c0e2.js → index-a25f5546.js} +1 -1
  97. package/build/{index-505a6231.js → index-a74cf615.js} +3 -3
  98. package/build/{index-9686d73a.js → index-aeb0ae12.js} +1 -1
  99. package/build/{index-192c3976.js → index-b0fae554.js} +1 -1
  100. package/build/{index-70fc6801.js → index-b9a7f78c.js} +1 -1
  101. package/build/{index-5537eb8b.js → index-bb56ac1b.js} +1 -1
  102. package/build/{index-8a4e8200.js → index-be8bd1aa.js} +1 -1
  103. package/build/{index-f20a3b0b.js → index-dd2f12d8.js} +1 -1
  104. package/build/{index-566d616e.js → index-e2e01405.js} +1 -1
  105. package/build/{index-cda192d8.js → index-ef0f4c83.js} +1 -1
  106. package/build/{index-2744bd7d.js → index-f7640569.js} +1 -1
  107. package/build/index.js +1 -1
  108. package/build/{index.styled-95722c0d.js → index.styled-4108cde2.js} +1 -1
  109. package/build/{index.styled-edaa5fca.js → index.styled-44a88d2d.js} +1 -1
  110. package/build/index.styled-56b27702.js +50 -0
  111. package/build/{index.styled-bf702a00.js → index.styled-d9e7dba1.js} +1 -1
  112. package/build/{index.styles-eee657e0.js → index.styles-d3b67125.js} +1 -1
  113. package/build/lead.js +1 -1
  114. package/build/mantine.js +1 -1
  115. package/build/misc.js +1 -1
  116. package/build/navigation.js +1 -1
  117. package/build/onboardingV2.js +1 -1
  118. package/build/pwg.js +2 -2
  119. package/build/{routing-d19d8856.js → routing-1e951b79.js} +1 -1
  120. package/build/subot.js +1 -1
  121. package/build/together.js +1 -1
  122. package/build/{types-e7648820.js → types-eeedddb1.js} +9 -9
  123. package/build/{types-ec42e31c.js → types-f3bf297f.js} +1 -1
  124. package/build/types.js +1 -1
  125. package/build/{useCategory-15d34903.js → useCategory-eea8836a.js} +1 -1
  126. package/build/{useHealthToolCache-af770568.js → useHealthToolCache-cf34e8b1.js} +1 -1
  127. package/build/{usePlacesAutocomplete-24621567.js → usePlacesAutocomplete-ce74a3d9.js} +1 -1
  128. package/build/{useRafState-80bb67ea.js → useRafState-05392c62.js} +1 -1
  129. package/build/{useTranslations-2e112ad4.js → useTranslations-7f12251c.js} +1 -1
  130. package/build/{utils-6f3d330e.js → utils-00a7b97a.js} +1 -1
  131. package/build/utils-86f4b1f3.js +1 -0
  132. package/build/vaccination.js +1 -1
  133. package/package.json +1 -1
  134. package/build/esm/index-65d31851.js +0 -1
  135. package/build/esm/index-c7136b2d.js +0 -1
  136. package/build/esm/useHealthToolCache-1290f2b9.js +0 -1
  137. package/build/getDynamicHealthTool-12e2540d.js +0 -1
  138. package/build/index-86314983.js +0 -1
  139. package/build/index-b983594e.js +0 -1
  140. package/build/index.styled-7c52b155.js +0 -50
  141. package/build/utils-a167e7a3.js +0 -1
  142. /package/build/{BMI_BOYS.percentile.monthly-1abf1841.js → BMI_BOYS.percentile.monthly-a0d59c80.js} +0 -0
  143. /package/build/{BMI_BOYS.percentile.weekly-a8aff425.js → BMI_BOYS.percentile.weekly-e1b9c439.js} +0 -0
  144. /package/build/{BMI_BOYS.percentile.yearly-c73321bb.js → BMI_BOYS.percentile.yearly-8b8cc180.js} +0 -0
  145. /package/build/{BMI_BOYS.zscore.monthly-69a99c2a.js → BMI_BOYS.zscore.monthly-6b9e2b9d.js} +0 -0
  146. /package/build/{BMI_BOYS.zscore.weekly-f990fa6a.js → BMI_BOYS.zscore.weekly-0266f3d0.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.yearly-ed65c22b.js → BMI_BOYS.zscore.yearly-0a6c0714.js} +0 -0
  148. /package/build/{BMI_GIRLS.percentile.monthly-4c7cb156.js → BMI_GIRLS.percentile.monthly-b92651f5.js} +0 -0
  149. /package/build/{BMI_GIRLS.percentile.weekly-d570954a.js → BMI_GIRLS.percentile.weekly-642d38d3.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.yearly-61a85bc5.js → BMI_GIRLS.percentile.yearly-29d10559.js} +0 -0
  151. /package/build/{BMI_GIRLS.zscore.monthly-f20b70e4.js → BMI_GIRLS.zscore.monthly-8ecfee03.js} +0 -0
  152. /package/build/{BMI_GIRLS.zscore.weekly-178a1989.js → BMI_GIRLS.zscore.weekly-7eb8315e.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.yearly-88ad18e5.js → BMI_GIRLS.zscore.yearly-75127200.js} +0 -0
  154. /package/build/{ChevronDown-3037c172.js → ChevronDown-2eede824.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-56a4402b.js → HEAD CIRCUM_BOYS.percentile.monthly-90eb2bd6.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ccf3c87f.js → HEAD CIRCUM_BOYS.percentile.weekly-4aed1c5b.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2b9916f6.js → HEAD CIRCUM_BOYS.percentile.yearly-694366d9.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bc3fdf65.js → HEAD CIRCUM_BOYS.zscore.monthly-dde69bd2.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a3275cbb.js → HEAD CIRCUM_BOYS.zscore.weekly-14591739.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-424de02b.js → HEAD CIRCUM_BOYS.zscore.yearly-5731ed20.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-31cf5774.js → HEAD CIRCUM_GIRLS.percentile.monthly-f361d369.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-56bc87df.js → HEAD CIRCUM_GIRLS.percentile.weekly-9fd785d7.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d495ae77.js → HEAD CIRCUM_GIRLS.percentile.yearly-9c7b567a.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-389b52dc.js → HEAD CIRCUM_GIRLS.zscore.monthly-4a6f37b4.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-545c913f.js → HEAD CIRCUM_GIRLS.zscore.weekly-ccff7ad3.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-25153e42.js → HEAD CIRCUM_GIRLS.zscore.yearly-c083a5da.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.percentile.monthly-a0167766.js → HEIGHT_BOYS.percentile.monthly-eec60602.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.percentile.weekly-fe6c86b4.js → HEIGHT_BOYS.percentile.weekly-013e3c41.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.yearly-b5f70609.js → HEIGHT_BOYS.percentile.yearly-a93bc668.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.zscore.monthly-69050519.js → HEIGHT_BOYS.zscore.monthly-95bd39db.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.zscore.weekly-086ed503.js → HEIGHT_BOYS.zscore.weekly-230c4ec5.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.yearly-ea1fd110.js → HEIGHT_BOYS.zscore.yearly-92bd30b0.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.percentile.monthly-04393cf7.js → HEIGHT_GIRLS.percentile.monthly-1dcdcb29.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.percentile.weekly-309dd221.js → HEIGHT_GIRLS.percentile.weekly-836fe160.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.yearly-3fe7b9fc.js → HEIGHT_GIRLS.percentile.yearly-2c506c97.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.zscore.monthly-a274d11d.js → HEIGHT_GIRLS.zscore.monthly-72e99c05.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.zscore.weekly-832a2702.js → HEIGHT_GIRLS.zscore.weekly-679708d2.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.yearly-e1250f72.js → HEIGHT_GIRLS.zscore.yearly-5e1ed085.js} +0 -0
  179. /package/build/{Subot-b76ccc9c.js → Subot-6070090a.js} +0 -0
  180. /package/build/{Visible-a902bc5d.js → Visible-97fdcb84.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.percentile.monthly-6aee36d0.js → WEIGHT_BOYS.percentile.monthly-b186f11d.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.percentile.weekly-84a9ddf3.js → WEIGHT_BOYS.percentile.weekly-29e9e425.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.yearly-6a5235a6.js → WEIGHT_BOYS.percentile.yearly-c6acc443.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.zscore.monthly-7b87e89a.js → WEIGHT_BOYS.zscore.monthly-74db320f.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.zscore.weekly-7dc34a8b.js → WEIGHT_BOYS.zscore.weekly-d0e93c78.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.yearly-8cde12c0.js → WEIGHT_BOYS.zscore.yearly-fe926c67.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.percentile.monthly-c1117e84.js → WEIGHT_GIRLS.percentile.monthly-d295e838.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.percentile.weekly-5da1d720.js → WEIGHT_GIRLS.percentile.weekly-c0cfc1ec.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.yearly-a23ec4ec.js → WEIGHT_GIRLS.percentile.yearly-425bc702.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.zscore.monthly-2f26e279.js → WEIGHT_GIRLS.zscore.monthly-b276e14a.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.zscore.weekly-8b0a38e9.js → WEIGHT_GIRLS.zscore.weekly-6259a761.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.yearly-8bad89fe.js → WEIGHT_GIRLS.zscore.yearly-61d76228.js} +0 -0
  193. /package/build/{cookieHelper-edf24fec.js → cookieHelper-50f349a8.js} +0 -0
  194. /package/build/{dataTransform-e2f61d60.js → dataTransform-57927b35.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.percentile.monthly-b9ab85f0.js → BMI_BOYS.percentile.monthly-e4505b15.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.percentile.weekly-ef82192f.js → BMI_BOYS.percentile.weekly-b013d877.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.yearly-183654c8.js → BMI_BOYS.percentile.yearly-9c039626.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.zscore.monthly-6eda6e64.js → BMI_BOYS.zscore.monthly-a7b0ea3d.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.zscore.weekly-2e5db2e4.js → BMI_BOYS.zscore.weekly-b82813b8.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.yearly-89b97ccc.js → BMI_BOYS.zscore.yearly-db29f80a.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.percentile.monthly-c2dca76b.js → BMI_GIRLS.percentile.monthly-7e170f4c.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.percentile.weekly-3db696ed.js → BMI_GIRLS.percentile.weekly-dc3cd239.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.yearly-d3831386.js → BMI_GIRLS.percentile.yearly-2b2f9527.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.zscore.monthly-9cef6f5e.js → BMI_GIRLS.zscore.monthly-f966c405.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.zscore.weekly-78f3bce3.js → BMI_GIRLS.zscore.weekly-dd6e2237.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.yearly-50c1c22d.js → BMI_GIRLS.zscore.yearly-c7c05089.js} +0 -0
  207. /package/build/esm/{ChevronDown-38081c52.js → ChevronDown-48e13c4f.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-768e0230.js → HEAD CIRCUM_BOYS.percentile.monthly-de572089.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-68c28fef.js → HEAD CIRCUM_BOYS.percentile.weekly-22fde075.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-79c477be.js → HEAD CIRCUM_BOYS.percentile.yearly-acf497dc.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c22a6bb8.js → HEAD CIRCUM_BOYS.zscore.monthly-5e0383bb.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-fa0c45de.js → HEAD CIRCUM_BOYS.zscore.weekly-cbffaac5.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-fd828878.js → HEAD CIRCUM_BOYS.zscore.yearly-e8f566d5.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0e370871.js → HEAD CIRCUM_GIRLS.percentile.monthly-70692043.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-f4708552.js → HEAD CIRCUM_GIRLS.percentile.weekly-38c30ebd.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-dfb103cf.js → HEAD CIRCUM_GIRLS.percentile.yearly-b60f18aa.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3ee0be1b.js → HEAD CIRCUM_GIRLS.zscore.monthly-c4979e55.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-44bcc793.js → HEAD CIRCUM_GIRLS.zscore.weekly-45f350f3.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a1027497.js → HEAD CIRCUM_GIRLS.zscore.yearly-cecec861.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-02e472da.js → HEIGHT_BOYS.percentile.monthly-df51d068.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0680ad0c.js → HEIGHT_BOYS.percentile.weekly-dccf4b38.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6f8aae30.js → HEIGHT_BOYS.percentile.yearly-8a701ad8.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c4cd5e14.js → HEIGHT_BOYS.zscore.monthly-dfc95b22.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-44a38e55.js → HEIGHT_BOYS.zscore.weekly-c75310ec.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-07fc5764.js → HEIGHT_BOYS.zscore.yearly-967076a6.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-747f685b.js → HEIGHT_GIRLS.percentile.monthly-e130c053.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f8a8a438.js → HEIGHT_GIRLS.percentile.weekly-b22650c5.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-19c6a95d.js → HEIGHT_GIRLS.percentile.yearly-62993fa6.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a70d26ec.js → HEIGHT_GIRLS.zscore.monthly-602da367.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-80c3120b.js → HEIGHT_GIRLS.zscore.weekly-053b19bc.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-55b48c0f.js → HEIGHT_GIRLS.zscore.yearly-c8ee8767.js} +0 -0
  232. /package/build/esm/{Subot-f581f4df.js → Subot-36ac5f94.js} +0 -0
  233. /package/build/esm/{Visible-773a840f.js → Visible-fa814ffe.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c7365e22.js → WEIGHT_BOYS.percentile.monthly-642abc40.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-5d62ee47.js → WEIGHT_BOYS.percentile.weekly-26521de2.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-90eef9c4.js → WEIGHT_BOYS.percentile.yearly-b3cc9f47.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-39cb41e2.js → WEIGHT_BOYS.zscore.monthly-8ec285f3.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1fd3816a.js → WEIGHT_BOYS.zscore.weekly-3d07dba8.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-91994e22.js → WEIGHT_BOYS.zscore.yearly-99e6bf03.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8803f9b5.js → WEIGHT_GIRLS.percentile.monthly-afe58712.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-ec6c8a49.js → WEIGHT_GIRLS.percentile.weekly-154459dc.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0e9334c7.js → WEIGHT_GIRLS.percentile.yearly-ad483573.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-031167a3.js → WEIGHT_GIRLS.zscore.monthly-c9363f7d.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-36d7530c.js → WEIGHT_GIRLS.zscore.weekly-736b742e.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-93c90f87.js → WEIGHT_GIRLS.zscore.yearly-d1a28c31.js} +0 -0
  246. /package/build/esm/{cookieHelper-1491c7ea.js → cookieHelper-bf1be72d.js} +0 -0
  247. /package/build/esm/{dataTransform-9bceddac.js → dataTransform-c10d68f3.js} +0 -0
  248. /package/build/esm/{index-2f243424.js → index-0e3fc8b7.js} +0 -0
  249. /package/build/esm/{index-0797d3cb.js → index-bc94a926.js} +0 -0
  250. /package/build/esm/{index-bbf78608.js → index-f4b93c10.js} +0 -0
  251. /package/build/esm/{isProduction-d8d94564.js → isProduction-f464a698.js} +0 -0
  252. /package/build/esm/{localizeNumberFormat-3657ce11.js → localizeNumberFormat-079a6b93.js} +0 -0
  253. /package/build/esm/{normalizeLink-7259b86a.js → normalizeLink-15cf45d1.js} +0 -0
  254. /package/build/esm/{number-a14a26d2.js → number-42359818.js} +0 -0
  255. /package/build/esm/{paths-80d2b4f2.js → paths-7c55394d.js} +0 -0
  256. /package/build/esm/{screenSizeContext-f9a53919.js → screenSizeContext-c38ade0a.js} +0 -0
  257. /package/build/esm/{theme-9d69f1a2.js → theme-57e98706.js} +0 -0
  258. /package/build/esm/{translationsContext-a929820e.js → translationsContext-b6ff3279.js} +0 -0
  259. /package/build/esm/{tslib.es6-7b491686.js → tslib.es6-98b62e2b.js} +0 -0
  260. /package/build/esm/{types-c4843c87.js → types-8c6df085.js} +0 -0
  261. /package/build/esm/{useIsInit-36546b9c.js → useIsInit-6b7cbee2.js} +0 -0
  262. /package/build/esm/{useOutsideClick-78141983.js → useOutsideClick-878679f9.js} +0 -0
  263. /package/build/esm/{useScrollbarSize-30b1bee4.js → useScrollbarSize-3959071b.js} +0 -0
  264. /package/build/{index-af3f2c07.js → index-435fff10.js} +0 -0
  265. /package/build/{index-0251e5f0.js → index-5e5d6e08.js} +0 -0
  266. /package/build/{index-ff51ac26.js → index-f2286b64.js} +0 -0
  267. /package/build/{isProduction-fa856154.js → isProduction-f6daa4d4.js} +0 -0
  268. /package/build/{localizeNumberFormat-118c54b5.js → localizeNumberFormat-41f06af6.js} +0 -0
  269. /package/build/{normalizeLink-b898d874.js → normalizeLink-7a96ca0b.js} +0 -0
  270. /package/build/{number-e86b559d.js → number-1963bb93.js} +0 -0
  271. /package/build/{paths-bbbcac69.js → paths-d3a2028a.js} +0 -0
  272. /package/build/{screenSizeContext-478cce5e.js → screenSizeContext-1a577828.js} +0 -0
  273. /package/build/{theme-1481c80b.js → theme-c252ab3b.js} +0 -0
  274. /package/build/{translationsContext-e83c75a5.js → translationsContext-8f763486.js} +0 -0
  275. /package/build/{tslib.es6-524ea691.js → tslib.es6-a447d75e.js} +0 -0
  276. /package/build/{types-5ceae17e.js → types-51f2e864.js} +0 -0
  277. /package/build/{useIsInit-b0daf2cf.js → useIsInit-8be47ce0.js} +0 -0
  278. /package/build/{useOutsideClick-abc52969.js → useOutsideClick-99a300bf.js} +0 -0
  279. /package/build/{useScrollbarSize-251ab8f8.js → useScrollbarSize-af06cacb.js} +0 -0
@@ -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-98b62e2b.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-a3b3b447.js";import{F as d,a as u,B as h}from"./index-bed044a7.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-886c957e.js";import{T as Re,I as Ie,U as De}from"./index-8118170d.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-27df5763.js";import{n as Ke,a as Ye}from"./normalizeLink-15cf45d1.js";import{a as Qe,g as Je,c as Xe,b as et,d as tt}from"./routing-be087f5b.js";import{P as at,b as lt,a as nt}from"./index-8b7c8eb1.js";import{L as it}from"./index-2e1d6359.js";import{u as ot,b as st}from"./useTranslations-6b1653a2.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-36ac5f94.js";import"dayjs";import{j as ht}from"./screenSizeContext-c38ade0a.js";import"styled-components";import{t as gt}from"./theme-57e98706.js";import"./isProduction-f464a698.js";import"./translationsContext-b6ff3279.js";import vt from"string-format";import"@mantine/hooks";import{L as pt}from"./constants-8dc38f9e.js";import Et from"lodash/debounce";import"./useCategory-440b7f9a.js";import{C as yt}from"./ChevronDown-48e13c4f.js";import{B as ft}from"./index-ad6cd88d.js";import{e as bt}from"./constants-fe146bd1.js";import{P as Ct,H as kt}from"./index.styles-874ee5cd.js";import{I as wt}from"./index-68094777.js";import{u as Pt}from"./useIsInit-6b7cbee2.js";import"@linaria/react";import"./utils-ab72b62f.js";import"./index.styled-6252f77a.js";import"./index-0e3fc8b7.js";import{C as _t}from"./index-f4b93c10.js";const Mt=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],Nt=(e="")=>Mt.some((t=>new URL(e).origin.endsWith(t))),Lt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,d]=l(!1);return a.createElement(a.Fragment,null,a.createElement(g,null,a.createElement(v,{onClick:()=>d((e=>!e))},t||(null==n?void 0:n(m))||null,a.createElement(p,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,t)=>a.createElement(E,{key:t,"data-selected":s&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),d((e=>!e))),t.stopPropagation()}},a.createElement(Re,{size:"p3"},e.label),s&&i===e.value&&a.createElement("img",{src:Ue.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&a.createElement(y,{onClick:()=>d(!1)}))},Bt=({languageOptions:e,locale:t})=>{var l,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(Lt,{options:e,selected:i.value,label:a.createElement(Tt,{locale:t,label:i.label||(null===(n=null===(l=t.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Tt=({locale:e,label:t,href:l})=>{var n,i,o;return a.createElement(f,{href:l},a.createElement(d,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),a.createElement("span",null,t))},At=({path:e,locale:t})=>{var a;return`/shop/${null===(a=pt[t||"vi-VN"])||void 0===a?void 0:a[e]}/`},xt=t=>{var{count:l,styles:n,className:i,classNames:o,locale:s}=t,r=e(t,["count","styles","className","classNames","locale"]);const{classes:c,cx:m}=b(void 0,{name:"CartBadge",styles:n,classNames:o});return void 0!==l?a.createElement(ct,Object.assign({component:"a",href:At({path:"CART",locale:s}),className:m(c.root,i)},r),a.createElement(mt,{classNames:{root:c.indicatorRoot},withBorder:!0,color:"red",size:20,disabled:0===l,label:a.createElement(Re,{className:c.iconText,size:"s5"},l>99?"99+":l)},a.createElement(Ie.Cart,{size:24}))):null},Ht=({forceDisplay:e,mediaQueryKey:t,children:l,className:i,style:o})=>{const[s,r]=n((()=>ht(t)),[t]);return a.createElement(C,{lowerBound:e?0:s,upperBound:e?0:r,className:i,style:o},l)},St=e=>{const{allowBgScroll:t}=e||{},a=i();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},jt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z",fill:"#E3F2FF"}),a.createElement("path",{d:"M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38H2.5Z",fill:"#2D87F3"}),a.createElement("path",{d:"M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65ZM5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z",fill:"#2743AD"}),a.createElement("path",{d:"M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z",fill:"#2D87F3"}),a.createElement("path",{d:"M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z",fill:"#FE921D"}),a.createElement("path",{d:"M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.21.21 0 0 1-.06-.15Z",fill:"#fff"})),$t=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11Zm-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Zm1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05Z",fill:"#2D87F3"}),a.createElement("path",{d:"M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06Zm-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97Zm1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66Zm1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Z",fill:"#FFB521"}),a.createElement("path",{d:"M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17ZM13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14Zm1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1Zm1.34-.4a.23.23 0 1 1 .1-.01.23.23 0 0 1-.1.02Z",fill:"#91CAFF"})),Ft=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("rect",{x:"8.33337",y:"8.33325",width:"3.33333",height:"3.33333",rx:"1.66667",fill:"#2D87F3"})),Ot=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02L3.18 7.06Zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02l4.69 4.32Z",fill:"#2743AD"}),a.createElement("path",{d:"M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7Z",fill:"#2D87F3"}),a.createElement("path",{d:"M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25h-.02Zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.23.23 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22Zm-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23Z",fill:"#2743AD"}),a.createElement("path",{d:"M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03Z",fill:"#FE921D"}),a.createElement("path",{d:"M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46Z",fill:"#fff"}),a.createElement("path",{d:"M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7Z",fill:"#BCDEFF"})),Rt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z",fill:"#FF6F4D"})),It=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855",fill:"#2D87F3"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471",fill:"#FF6F4D"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z",fill:"#FF6F4D"})),Dt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142",fill:"#FF6F4D"}),a.createElement("path",{d:"M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204",fill:"#fff"})),Ut=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172",fill:"#00CB8A"})),Vt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0",fill:"#2D87F3"})),zt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334",fill:"#BCDEFF"}),a.createElement("path",{d:"M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005",fill:"#2D87F3"}),a.createElement("path",{d:"M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096",fill:"#2D87F3"})),Zt={helloSites:{member:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>Ue.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Gt=({rank:e,siteType:t="helloSites"})=>{const l=n((()=>{var a,l;return(null===(l=null===(a=Zt[t])||void 0===a?void 0:a[e])||void 0===l?void 0:l.call(a))||""}),[e,t]),{t:i}=ot();return a.createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?gt.colors.blue100:gt.colors.mb100}`}},a.createElement("img",{src:l,alt:e,style:{height:16,width:16}}),a.createElement(Re,{size:"s5",color:"gray.8",weight:"semiBold"},i(`userProfile.userRank.${e}`)))},Wt=({siteType:e="helloSites",userInfo:t})=>(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},a.createElement(u,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),a.createElement(Gt,{rank:"member",siteType:e})),a.createElement(Re,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),a.createElement(Re,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),a.createElement("hr",null)):null,qt=({className:e,activeItem:t,navMenuItems:n,style:i,onLogout:s,siteType:r="helloSites",userInfo:c})=>{const{locale:m}=ot(),[d,u]=l(),h="string"==typeof t?t:d,g=Ke(Qe(m,"marryBaby"===r)+"/"),v=Ke(Je(m,"marryBaby"===r)+"/"),p=n||[[{key:"userProfile.nav.header.viewProfile",icon:a.createElement(zt,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${g}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:a.createElement(Dt,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${g}user/health/`},{key:"userProfile.nav.card.mySaved",icon:a.createElement(Ut,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${g}user/saved/`},{key:"userProfile.nav.card.myBooking",icon:a.createElement(jt,{width:"24",height:"24"}),value:"booking",disabled:!Ve.includes(m),tracking:{action:"Manage Booking Click"},link:`${g}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:a.createElement($t,{width:"24",height:"24"}),value:"myCommunities",disabled:!ze.includes(m),tracking:{action:"Community Click"},link:`${g}user/my-communities/`}],...Ze.includes(m)?[[{key:"userProfile.nav.card.eCom",icon:a.createElement(Ot,{width:"24",height:"24"}),value:"eCom",disabled:!Ze.includes(m),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:a.createElement(Ft,{width:"24",height:"24"}),link:`${v}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:a.createElement(Vt,{width:"24",height:"24"}),subMenu:[{key:"common.profileNavigator.newsletterSubscription",value:"subscription",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Subscription Click"},link:`${g}user/subscriptions/`,disabled:"vi-VN"!==m},{key:"userProfile.nav.menu.password",value:"password",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${g}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:a.createElement(Ft,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${g}user/disable-account/`}]}],[{key:"userProfile.nav.menu.help",icon:a.createElement(Rt,{width:"24",height:"24"}),value:"help",link:`${g}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:a.createElement(It,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return a.createElement(k,{className:e,style:i},a.createElement(Wt,{userInfo:c,siteType:r}),p.map(((e,t)=>a.createElement(o,{key:t},a.createElement("div",{className:"profile-nav-item-group",key:t},e.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:h||"",onLogout:s,onClick:()=>u((t=>t===e.key?void 0:e.key)),siteType:r})))),t!==p.length-1&&a.createElement("hr",null)))))},Kt=({item:e,activeKey:t,forceOpen:i,onLogout:o,onClick:r,siteType:c="helloSites"})=>{var m,d;const[u,h]=l(!1),g=n((()=>"undefined"!=typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:v}=ot(),p=null===(m=e.subMenu)||void 0===m?void 0:m.some((e=>e.key===t)),E=t===e.key;s((()=>{(p||E)&&h(!0)}),[p,E]);const y="boolean"==typeof i?i:u;return a.createElement(w,{as:e.subMenu?void 0:"a","data-is-open":y,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null==r||r(),e.subMenu&&!i?h((e=>!e)):"logout"===e.value?null==o||o():e.link&&(window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(d=null==e?void 0:e.tracking)||void 0===d?void 0:d.action)||"","data-event-label":g},a.createElement(P,{"data-active":E},e.icon,a.createElement(Re,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:E?"helloSites"===c?"hb.6":"mb.6":"gray.8"},v(e.key)),e.subMenu&&a.createElement(_,{"data-is-open":y},a.createElement(yt,{width:14}))),e.subMenu&&a.createElement(M,null,e.subMenu.map((e=>a.createElement(Kt,{key:e.key,item:e,activeKey:t,onLogout:o,siteType:c})))))},Yt=({isOpen:e,userInfo:t,closePopup:l,siteType:n="helloSites",dispatchLogout:i})=>a.createElement(N,{"data-open":e},a.createElement("div",{className:"popup-content"},a.createElement(qt,{siteType:n,onLogout:()=>{i&&(i(),l())},userInfo:t}))),Qt=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:l,siteType:n="helloSites"})=>{const{t:i}=ot();return s((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(dt,null,a.createElement(at,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:Ue.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement(L,null,"helloSites"===n&&a.createElement("img",{src:Ue.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,i("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,i("logout.popup.ask2")),a.createElement(B,{siteType:n},a.createElement(ft,{className:"logout-button",color:"tertiary",size:"lg",onClick:l},i("logout.popup.button.logout")),a.createElement(ft,{className:"cancel-button",color:"primary",size:"lg",onClick:t},i("logout.popup.button.cancel"))))))},Jt=({userInfo:e,siteType:n,onLoginClick:i,SSO_URL:o,currentUrl:r,isMinifyLogin:c,onLogout:m,style:d,isLoading:g,locale:v})=>{const{t:p}=ot(),[E,y]=l(!1),f=(null==e?void 0:e.name)||(null==e?void 0:e.username),[b,C]=l(!1);s((()=>{C(!0)}),[]);const{containerRef:k,onContainerFocus:w,onContainerBlur:P,onButtonMouseDown:_,onClose:M}=St();return g?a.createElement(h,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?a.createElement(a.Fragment,null,a.createElement(T,{ref:k,style:d,tabIndex:0,onBlur:P,onFocus:()=>{var e;w();const t=null===(e=k.current)||void 0===e?void 0:e.querySelector("#desktop-sticky-header .hhgcomp-navprofilebutton-popup");if(t){const e=`calc(100vh - ${t.getBoundingClientRect().top}px)`;t.setAttribute("style",`max-height: ${e};`)}}},a.createElement("div",{onMouseDown:_},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(u,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===n?gt.mbColors.pink:gt.colors.secondaryBase,placeholderText:f&&f.length?f[0].toUpperCase():"A"})),a.createElement(Yt,{dispatchLogout:()=>{M(),y(!0)},isOpen:!1,closePopup:M,siteType:n,userInfo:e})),a.createElement(Qt,{openLogoutPopup:E,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),y(!1)},siteType:n,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){y(!1),document.body.classList.toggle("noscroll",!1),yield m()}))})):a.createElement(A,{style:Object.assign({textDecoration:"none"},d),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:b?void 0:Ke(`${o}?returnUrl=${r}`),"data-site-type":n},c?a.createElement(x,{onClick:i},a.createElement("img",{src:Ue.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===n&&(v===ut.Indonesia||v===ut.PhilippinesTagalog||v===ut.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:Ue.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):a.createElement(h,{className:"mobile-only",size:"sm",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},p("navigation.loginJoin"))),"marryBaby"===n&&a.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},a.createElement(Re,{size:"p3",color:gt.mbColors.pink},p("navigation.loginJoin"))),a.createElement(h,{className:"login-btn",size:"md",onClick:i,leftIcon:a.createElement(De,{useCurrentColor:!0,isSolid:!0,size:22})},p("navigation.loginJoin"))))};var Xt="spdlGfq",ea="vgS16jX";const ta=({onCareHeaderClick:e,currentUrl:t,careUrlFe:l,btnName:n})=>e?a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):a.createElement("a",{href:l,className:`${ea} care-button no-replace-click`},a.createElement(ft,{className:Xt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var aa="y5VJdvw",la="oVhOSCy",na="pX8OXTM";function ia({className:e}){return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function oa({siteType:e,enableSearch:t,className:l}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?Ue.getAssetPath("hamburgerMenuNewWithSearch.svg"):Ue.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:"home",className:l,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:l},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const sa=()=>{const{locale:e,configs:{statics:t},siteType:l}=r(H),n=st(),{t:i}=ot();return a.createElement(Ct,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?i("navigation.search.input.placeholder"):i("home.search",{site:Ge[e||"en-PH"]?Ge[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(S,null))})};var ra="wnUb-dV",ca="cjbOxWe",ma="gB4rp89";const da=({item:e,menu:t})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:s}=St({allowBgScroll:!0}),r=Pt();return!e.popupType&&e.link?a.createElement(ua,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ca},"care"===e.id&&a.createElement("div",{className:ma},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):a.createElement(ua,{isNew:e.isNew},a.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:ca},"care"===e.id&&a.createElement("a",{className:ma,href:Ke(e.link+"/")},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&a.createElement("div",{className:ra},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},a.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),a.isValidElement(t)?a.cloneElement(t,{onClose:s}):null))},ua=({isNew:e,children:t})=>{const{t:l}=ot();return e?a.createElement(wt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},ha=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:l,onClosePopup:n,menuItems:i,headingTitle:o,activeItem:s})=>{const{siteType:c}=r(H);return a.createElement(j,null,a.createElement($,null,a.createElement(kt,{tag:"marryBaby"===c?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(F,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,"data-active":e.id&&e.id===s,href:i},!Nt(i)&&{target:"_blank"},{"data-theme":c,key:t,onClick:n}),a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),a.createElement(ua,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(O,null,a.createElement("img",{src:Ue.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(R,{"data-theme":c,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(I,{onClick:n,"data-theme":c,"data-is-heading-category":!1},t,a.createElement(D,null,a.createElement("img",{className:"svg",src:"marryBaby"===c?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},ga=({item:e,index:t=0})=>{var l;const{t:n}=ot(),{locale:i,configs:{statics:o}}=r(H);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(l=bt[i])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},a.createElement("img",{src:Ue.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(V,null,a.createElement(z,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(Z,null,a.createElement(G,null,e.name),a.createElement(W,null,e.description),a.createElement(q,null,n("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},va=({title:e,link:t,description:l,cta:n,icon:i})=>{const{siteType:o}=r(H);return a.createElement(K,{"data-theme":o},a.createElement(Y,null,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("navMBSpotlightBgNoData.svg"):Ue.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Q,null,i&&a.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(J,null,e),l&&a.createElement(X,null,l),n&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(ft,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},pa=({title:e,viewMore:t,children:l,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(H);return a.createElement(ee,null,a.createElement(te,null,a.createElement(kt,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(ae,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,a.createElement("img",{src:"marryBaby"===o?Ue.getAssetPath("chevronRightPink.svg"):Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},Ea=({spotlights:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{siteType:n}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(le,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(ga,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(ft,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):a.createElement(va,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:t,cta:l("home.navigator.menu.care.homeButton"),icon:Ue.getAssetPath("community.svg")}))},ya=({item:e,index:t=0})=>e?a.createElement(ne,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement(ie,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(oe,null,e.title)):null,fa=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(se,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ya,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(va,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:t,cta:l("home.navigator.menu.category.noDatas.cta"),icon:Ue.getAssetPath("Spotlight.svg")}))},ba=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(H),{t:l}=ot();return a.createElement(pa,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ye(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(re,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ce,{index:t,post:e,key:e.id})))):a.createElement(va,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:Ue.getAssetPath("community.svg")}))},Ca=({item:e,index:t=0})=>e?a.createElement(me,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},a.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),a.createElement(Re,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,ka=({helpfulUrls:e=[]})=>{const{t:t}=ot();return e.length?a.createElement(pa,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?a.createElement(de,null,null==e?void 0:e.slice(0,5).map(((e,t)=>a.createElement(Ca,{key:t,index:t,item:e})))):a.createElement(a.Fragment,null)):null},wa=({item:e,index:t=0})=>{const{t:l}=ot(),{configs:{statics:n}}=r(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(ue,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},a.createElement("img",{src:Ue.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(he,null,a.createElement(ge,null,e.title),a.createElement(ve,null,e.subtitle),a.createElement(pe,null,l("home.seeMore"),a.createElement("img",{src:Ue.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Ee,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Pa=({item:e,index:t=0,color:l})=>{const{t:n}=ot(),{configs:{statics:i}}=r(H);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>a.createElement(be,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>a.createElement(Ce,null,a.createElement(ke,null,a.createElement(we,null,e.title),a.createElement(Pe,null,e.subtitle)),a.createElement(_e,null,a.createElement("div",{className:"mobile-only"},n("home.seeMore")),a.createElement("img",{src:Ue.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(ye,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":l},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},a.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),a.createElement("img",{src:Ue.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(fe,null,a.createElement("div",{className:"mobile-only"},s()),a.createElement("div",{className:"desktop-only"},c())),a.createElement("div",{className:"mobile-only"},c()),a.createElement("div",{className:"desktop-only"},s()))},_a=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:l}=ot(),n=["pink","orange","green"],{siteType:i}=r(H);return a.createElement(pa,{title:l("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement(Me,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?a.createElement(Pa,{key:t,index:t,item:e,color:n[t]}):a.createElement(wa,{key:t,index:t,item:e})))),0===t.length&&a.createElement(va,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:Ue.getAssetPath("community.svg")}))},Ma=({closePopup:e,menuItems:t=[]})=>{var l,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m,ecom:d},activeMenuService:u,configs:{statics:h,enableSearchBar:g},locale:v}=r(H),{t:p}=ot();return a.createElement(Ne,{id:"categories-menu"},g?a.createElement(Le,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},a.createElement(sa,null)):null,a.createElement(Be,null,a.createElement(ha,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:u}),"categories"===u&&a.createElement(fa,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}/spotlight/`}),"tools"===u&&a.createElement(_a,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}${(null===(l=We[v])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&a.createElement(Ea,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=bt[v])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&a.createElement(ba,{spotlights:null==m?void 0:m.spotlights}),"ecom"===u&&a.createElement(ka,{helpfulUrls:null==d?void 0:d.helpfulUrls})))},Na=({menuItems:e})=>{const{siteType:t,configs:{enableSearchBar:l}}=r(H),{containerRef:n,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:s,onClose:c}=St();return a.createElement(Ht,{mediaQueryKey:"mbDown"},a.createElement("header",{className:aa},a.createElement("div",{className:la,ref:n,role:"button",tabIndex:0,onBlur:o,onFocus:i},a.createElement("div",{className:na,onMouseDown:s,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(ia,{className:"mobile-close-icon"}),a.createElement(oa,{siteType:t,enableSearch:l,className:"mobile-hamburger-icon"})),a.createElement(Ma,{menuItems:e,closePopup:c}))))},La=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>La(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Ba=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Ta=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(l=e.object_id)||void 0===l?void 0:l.name)||"",name:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},Aa=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(l=null==e?void 0:e.object_id)||void 0===l?void 0:l.logo)||"",description:(null===(n=e.object_id)||void 0===n?void 0:n.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},xa=(e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+vt(Te.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${qe[e]}`})),Ha=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=bt[a])||void 0===l?void 0:l.ALL}/${(null===(n=bt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},Sa=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},ja=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0};var $a="q3nL5cp",Fa="_2DNf80G",Oa="Q-glX-n";const Ra=({onClosePopup:e})=>a.createElement("div",{className:`${Oa} close-btn`,onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Ia=({onClosePopup:e,isDisplay:t,children:l,isNavMenu:n,hideCloseBtn:i})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},a.createElement(_t,null,!i&&a.createElement("div",{className:Fa},a.createElement(Ra,{onClosePopup:e})),a.createElement(_t,{className:$a},l))),Da=({careSpecialties:e=[],isOpen:t,onClose:l,spotlights:n=[]})=>{var i;const{t:o}=ot(),{locale:s,configs:{statics:c}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:t,isNavMenu:!0},a.createElement(ha,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ha({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(Ea,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(i=bt[s])||void 0===i?void 0:i.SPECIALTIES}/`}))},Ua=({categories:e=[],spotlightsList:t=[],onClose:l,isOpen:n})=>{const{t:i}=ot(),{locale:o,configs:{statics:s}}=r(H);return a.createElement(Ia,{onClosePopup:l,isDisplay:n,isNavMenu:!0},a.createElement(ha,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),a.createElement(fa,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},Va=({communities:e=[],onClose:t,isOpen:l,spotlights:n=[]})=>{const{t:i}=ot(),{configs:{statics:o}}=r(H);return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:Ye(o.TOGETHER_URL_FE),UrlFE:Ke(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(ba,{spotlights:n}))},za=({locale:e,onClose:t,isOpen:l,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=ot(),{configs:{statics:c}}=r(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=We[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return a.createElement(Ia,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ha,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(_a,{spotlightHealthTools:n,hrefViewMore:m}))},Za=({onTopBarAppears:e,languageMenu:t,menuItems:n,logoComponent:o})=>{var m;const{siteType:d,isMobile:u=!1,locale:h,sitewideBanner:g,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:f,cartNumber:b,configs:{statics:C,enableNavCareBooking:k,enableSearchBar:w},userState:{userInfo:P},onLogout:_,isUserLoading:M}=r(H),{t:N}=ot(),{SSO_URL:L,HOME_PAGE_URL:B}=C,T=!!p,[A,x]=l(!1),S=i(47),j=i(null),$=i(!1),F="helloSites"===d?null===(m=Ge[h])||void 0===m?void 0:m.LOGO_TYPE:d,O="undefined"!=typeof window,R=c(rt((()=>{if(O){if(!j.current)return;const e=j.current.getBoundingClientRect();e.top<=0&&window.scrollY>S.current&&window.scrollY>e.height+20&&!$.current&&($.current=!0,x(!0)),window.scrollY<S.current&&$.current&&($.current=!1,x(!1)),window.scrollY>=0&&(S.current=window.scrollY)}}),200),[]);s((()=>{null==e||e(!A)}),[A]),s((()=>(window.addEventListener("scroll",R,{passive:!0}),()=>{window.removeEventListener("scroll",R)})),[]),s((()=>{u&&R()}),[u]);const I=v&&!!g;return a.createElement(Ae,{"data-site-type":d,"data-sponsored":T,"data-sitewide-banner-shown":I,"data-header-type":"home","data-collapsed":A,"data-is-displayed":!0,id:"site-header",ref:j},g,a.createElement(xe,{"data-site-type":d},a.createElement(He,{"data-site-type":d},a.createElement(Na,{menuItems:n}),o||a.createElement("a",{style:{flexShrink:0},href:B},a.createElement("div",null,a.createElement(it,{style:{display:"flex"},type:F,badge:"id-ID"===h&&a.createElement("img",{src:Ue.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:h,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?a.createElement(Wa,{menuItems:n}):w&&a.createElement(Ga,{siteType:d})),a.createElement(Se,{"data-site-type":d},"marryBaby"===d?w&&a.createElement(Ga,{siteType:d}):a.createElement(Wa,{menuItems:n}),a.createElement(je,null,a.createElement(xt,{count:b,locale:h}),k&&a.createElement(Ht,{mediaQueryKey:"mbUp"},a.createElement(ta,{careUrlFe:C.CARE_URL_FE,currentUrl:y,btnName:N("login.booking"),onCareHeaderClick:E})),t,a.createElement(Jt,{userInfo:P,siteType:d,onLoginClick:f||(()=>{const e=window.location.href;window.location.href=L?Ke(`${L}?returnUrl=${e}`):e}),SSO_URL:Ye(C.SSO_URL),currentUrl:y,onLogout:_,isLoading:M,locale:h})))),p?a.isValidElement(p)?a.cloneElement(p,{isCollapsed:A,locale:h,isMobile:u}):p:null)},Ga=({siteType:e})=>a.createElement(Ht,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(sa,null)),Wa=({menuItems:e})=>{const{siteType:t,locale:l,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(H);return a.createElement(Ht,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement($e,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(da,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(Ua,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?a.createElement(za,{locale:l,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?a.createElement(Va,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?a.createElement(Da,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},qa=e=>{var t,o;const{isMobile:m,locale:d,onTopBarAppears:u,languageOptions:h,sponsorComponent:g,sitewideBanner:v,sitewideBannerShown:p,className:E,logoComponent:y}=e,f=(()=>{const{t:e}=ot(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:i,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:m}}=r(H),d="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:d?Ue.getAssetPath("categories-mb.svg"):Ue.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=We[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:d?Ue.getAssetPath("healthtools-mb.svg"):Ue.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:Ke(m.TOGETHER_URL_FE+"/"),thumbnail:d?Ue.getAssetPath("community-mb.svg"):Ue.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ke(m.HOME_PAGE_URL+"/shop"),thumbnail:Ue.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:Ke("ms-MY"===a?m.HOME_PAGE_URL+"/care/current-location/hospital/":m.HOME_PAGE_URL+"/care"),thumbnail:Ue.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),n}),[a,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(H),{userInfo:a}=t;s((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,C=!!g,k=!!(null===(o=null===(t=null==g?void 0:g.props)||void 0===t?void 0:t.sponsoredBy)||void 0===o?void 0:o.length),{headerRef:w,defaultHeaderHeight:P,headerHeight:_,headerBottom:M}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:o})=>{const r=i(null),[m,d]=l(0),[u,h]=l(64),g=c(Et((()=>{var e,t,a,l;const n=(null===(e=r.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=r.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(d(n),h((null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);s((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),s((()=>{g()}),[o,a,t,e,r.current]);const v=n((()=>{let l=56;return a&&(l+=64),t&&(l+=40,e&&(l+=57)),l}),[o,a,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:u,headerRef:r}})({isShowingSiteWideBanner:b,isSponsored:C,hasSponsoredBanners:k,isMobile:m});return a.createElement(Oe,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":`calc(${_}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":M+"px"},className:E},a.createElement("section",{ref:w},a.createElement(Za,{menuItems:f,onTopBarAppears:u,logoComponent:y,languageMenu:a.createElement(Bt,{languageOptions:h,locale:d})})))},Ka=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(Fe,Object.assign({},t),a.createElement(qa,Object.assign({},t)))},Ya=e=>t(void 0,void 0,void 0,(function*(){var t,a,l,n,i,o,s,r,c,m,d,u,h,g,v,p,E,y,f,b,C,k,w;const P={},_="vi-VN_MB"===e;try{const M="tl-PH"===e?"lang=fil":"";try{const[d,u,h,g]=yield Promise.all([fetch(Ke(`${Xe(e)}/wp-json/api/categories${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${M?"&"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ke(`${Xe(e)}/wp-json/api/${_?"health-tools":"healthtools"}/favorites${M?"?"+M:""}`)).then((e=>e.json()))]);P.categories={items:(null===(a=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,La))||[],spotlights:(null===(o=null===(i=null===(n=null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,Sa))||void 0===o?void 0:o.filter(ja))||[]},P.healthTools={items:(null===(r=null===(s=null==h?void 0:h.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Ba))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Ba))||[]}}catch(e){}if(_||ze.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(`${et()}/api/v1/community?website_url=https://${qe[e]}`)).then((e=>e.json())),fetch(Ke(`${et()}/api/v1/options?website_url=https://${qe[e]}&meta_key=popular_post`)).then((e=>e.json()))]);P.together={items:(null===(h=null===(u=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===u?void 0:u.map)||void 0===h?void 0:h.call(u,lt))||[],spotlights:(null===(p=null===(v=null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,nt))||[]}}catch(e){}if(Ve.includes(e))try{const[t,a]=yield Promise.all([fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=0`)).then((e=>e.json())),fetch(Ke(tt()+`/api/options/setting_menu?site=${qe[e]}&type=1`)).then((e=>e.json()))]);P.care={items:(null===(b=null===(f=null===(y=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.setting_menu)||void 0===y?void 0:y.menu_specialty)||void 0===f?void 0:f.map)||void 0===b?void 0:b.call(f,Ta))||[],spotlights:(null===(w=null===(k=null===(C=null==a?void 0:a._data.setting_menu)||void 0===C?void 0:C.menu_hospital)||void 0===k?void 0:k.map)||void 0===w?void 0:w.call(k,Aa))||[]}}catch(e){}}catch(e){console.error(e)}return P})),Qa=e=>t(void 0,void 0,void 0,(function*(){return(yield m("nav-menu-content",(()=>Ya(e||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{Bt as L,Ka as N,qt as P,Qa as a,Qt as b,Jt as c,xa as d,Ya as g,Nt as i};
@@ -1 +1 @@
1
- import{enUS as o,vi as e,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Subot-f581f4df.js";import{i as c}from"./isProduction-d8d94564.js";const h={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};var T;!function(o){o.HPV="hpv"}(T||(T={}));const r={[E.Vietnam]:{[T.HPV]:"hpv-vaccine"},[E.Indonesia]:{[T.HPV]:"deteksi-dini-hpv"}},O="tl-PH"===process.env.NEXT_PUBLIC_DEPLOY_LOCALE?"/fil":"",p=process.env.NEXT_PUBLIC_SSO,_="userGeoLocationCoordinates",m={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},A={[E.Vietnam]:"hellobacsi.com",[E.Indonesia]:"hellosehat.com",[E.Malaysia]:"hellodoktor.com",[E.Cambodia]:"hellokrupet.com",[E.PhilippinesEnglish]:"hellodoctor.com.ph",[E.PhilippinesTagalog]:"hellodoctor.com.ph",[E.Thailand]:"hellokhunmor.com",[E.Myanmar]:"hellosayarwon.com",[E.Taiwan]:"helloyishi.com.tw",[E.India]:"helloswasthya.com"},u={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},y={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},N="user",S=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],C=["vi-VN"],g=["vi-VN","id-ID"],R=["vi-VN","id-ID"],L={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var M;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(M||(M={}));const P={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},d="hhg_user_token",H={[E.PhilippinesEnglish]:o,[E.Vietnam]:e,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:o,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},Y="https://cdn.hellohealthgroup.com/countries",G="_ga",D="YYYY-MM-DD",b="dd-MM-yyyy";var k=Object.freeze({__proto__:null,basePath:O,SSO_URL:p,USER_GEOLOCATION_COORDINATES_COOKIE:_,domainLocales:m,MAP_DOMAIN_BY_LOCALE:A,LOCALE_SPECS:u,STATIC_PAGES:y,UP_BASEPATH:N,TOGETHER_LOCALES:S,ECOM_LOCALES:C,CARE_LOCALES:g,CARE_BOOKING_LOCALES:R,FAVICONS:L,get QUERY_HEALTH_TOOL(){return M},ISO_FORMAT:P,BEARER_TOKEN_COOKIE:d,DATE_FNS_LOCALE:H,CDN_ADDRESS:Y,GA_TOKEN_COOKIE:"_ga",API_DATE_FORMAT:D,DATE_FNS_DATE_FORMAT:b,siteHost:h,siteOptions:I,get RISK_SCREENER_NAME(){return T},RISK_SCREENER_SLUG:r,isProduction:c});export{D as A,d as B,g as C,H as D,C as E,L as F,G,P as I,u as L,A as M,M as Q,T as R,y as S,S as T,_ as U,r as a,Y as b,R as c,m as d,O as e,b as f,p as g,N as h,k as i,h as j,I as s};
1
+ import{enUS as o,vi as e,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Subot-36ac5f94.js";import{i as c}from"./isProduction-f464a698.js";const h={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};var T;!function(o){o.HPV="hpv"}(T||(T={}));const r={[E.Vietnam]:{[T.HPV]:"hpv-vaccine"},[E.Indonesia]:{[T.HPV]:"deteksi-dini-hpv"}},O="tl-PH"===process.env.NEXT_PUBLIC_DEPLOY_LOCALE?"/fil":"",p=process.env.NEXT_PUBLIC_SSO,_="userGeoLocationCoordinates",m={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},A={[E.Vietnam]:"hellobacsi.com",[E.Indonesia]:"hellosehat.com",[E.Malaysia]:"hellodoktor.com",[E.Cambodia]:"hellokrupet.com",[E.PhilippinesEnglish]:"hellodoctor.com.ph",[E.PhilippinesTagalog]:"hellodoctor.com.ph",[E.Thailand]:"hellokhunmor.com",[E.Myanmar]:"hellosayarwon.com",[E.Taiwan]:"helloyishi.com.tw",[E.India]:"helloswasthya.com"},u={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},y={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},N="user",S=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],C=["vi-VN"],g=["vi-VN","id-ID"],R=["vi-VN","id-ID"],L={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var M;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(M||(M={}));const P={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},d="hhg_user_token",H={[E.PhilippinesEnglish]:o,[E.Vietnam]:e,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:o,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},Y="https://cdn.hellohealthgroup.com/countries",G="_ga",D="YYYY-MM-DD",b="dd-MM-yyyy";var k=Object.freeze({__proto__:null,basePath:O,SSO_URL:p,USER_GEOLOCATION_COORDINATES_COOKIE:_,domainLocales:m,MAP_DOMAIN_BY_LOCALE:A,LOCALE_SPECS:u,STATIC_PAGES:y,UP_BASEPATH:N,TOGETHER_LOCALES:S,ECOM_LOCALES:C,CARE_LOCALES:g,CARE_BOOKING_LOCALES:R,FAVICONS:L,get QUERY_HEALTH_TOOL(){return M},ISO_FORMAT:P,BEARER_TOKEN_COOKIE:d,DATE_FNS_LOCALE:H,CDN_ADDRESS:Y,GA_TOKEN_COOKIE:"_ga",API_DATE_FORMAT:D,DATE_FNS_DATE_FORMAT:b,siteHost:h,siteOptions:I,get RISK_SCREENER_NAME(){return T},RISK_SCREENER_SLUG:r,isProduction:c});export{D as A,d as B,g as C,H as D,C as E,L as F,G,P as I,u as L,A as M,M as Q,T as R,y as S,S as T,_ as U,r as a,Y as b,R as c,m as d,O as e,b as f,p as g,N as h,k as i,h as j,I as s};
@@ -1 +1 @@
1
- import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-f581f4df.js";import{CommonGAssets as l}from"./gAssets.js";import{styled as o}from"@linaria/react";import{i as n,a as r,b as g,c as m,d as i,e as c,f as h,g as d,L as u}from"./utils-8849cc57.js";import{I as f}from"./index-8dfb1724.js";const y=o("div")({name:"StyledLogo",class:"s1u9eibo",propsAsIs:!1}),N=o("img")({name:"StyledProLogo",class:"s1afdrb8",propsAsIs:!1}),p=({type:o,className:p,style:w,isLightLogo:E,customSize:A,badge:b,locale:L,dateForSeasonal:P,isPro:V})=>{const[z,Y]=e({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return t((()=>{if(!P||isNaN(new Date(P).getTime()))return;const a=new Date(P),e=n(a),t=r.includes(L)&&g(a),l=!t&&m(a),o=i(a),u=L===s.Vietnam&&c(a),f=L===s.Vietnam&&h(a),y=L===s.Vietnam&&d(a);Y({isChristmas:e,isLunarNewYear:t,isNewYear:l,isRamadan:o,isVNHungKing:u,isVN3004:f,isLabourDay:y})}),[L,new Date(P).getDate()]),a.createElement(y,{className:p,style:w,"data-logo-is-light":E||void 0,"data-has-badge":!!b,"data-seasonal":z.isRamadan?"ramadan":z.isChristmas?"christmas":z.isLunarNewYear?"lunar-new-year":z.isNewYear?"new-year":z.isVNHungKing?"hung-king":z.isVN3004?"30-04":z.isLabourDay?"labour-day":void 0,"data-type":o},z.isChristmas?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left xmas logo",src:l.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right xmas logo",src:l.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):z.isNewYear?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left new year logo",src:l.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right new year logo",src:l.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):z.isLunarNewYear?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellosehat"===o?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellodoktor"===o?a.createElement(a.Fragment,null,a.createElement(f,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),a.createElement(f,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!z.isVNHungKing||"hellobacsi"!==o&&"marryBaby"!==o?null:a.createElement(a.Fragment,null,a.createElement(f,{alt:"Hung King logo",loading:"lazy",src:l.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),a.createElement(u,{type:o,width:null==A?void 0:A.width,height:null==A?void 0:A.height}),V?a.createElement(N,{src:l.getAssetPath("logo/pro-suffix.svg")}):null,b)};export{p as L};
1
+ import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-36ac5f94.js";import{CommonGAssets as l}from"./gAssets.js";import{styled as o}from"@linaria/react";import{i as n,a as r,b as g,c as m,d as i,e as c,f as h,g as d,L as u}from"./utils-ab72b62f.js";import{I as y}from"./index-bed044a7.js";const N=o("div")({name:"StyledLogo",class:"s1u9eibo",propsAsIs:!1}),f=o("img")({name:"StyledProLogo",class:"s1afdrb8",propsAsIs:!1}),p=({type:o,className:p,style:w,isLightLogo:E,customSize:b,badge:A,locale:L,dateForSeasonal:P,isPro:V})=>{const[z,Y]=e({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return t((()=>{if(!P||isNaN(new Date(P).getTime()))return;const a=new Date(P),e=n(a),t=r.includes(L)&&g(a),l=!t&&m(a),o=i(a),u=L===s.Vietnam&&c(a),y=L===s.Vietnam&&h(a),N=L===s.Vietnam&&d(a);Y({isChristmas:e,isLunarNewYear:t,isNewYear:l,isRamadan:o,isVNHungKing:u,isVN3004:y,isLabourDay:N})}),[L,new Date(P).getDate()]),a.createElement(N,{className:p,style:w,"data-logo-is-light":E||void 0,"data-has-badge":!!A,"data-seasonal":z.isRamadan?"ramadan":z.isChristmas?"christmas":z.isLunarNewYear?"lunar-new-year":z.isNewYear?"new-year":z.isVNHungKing?"hung-king":z.isVN3004?"30-04":z.isLabourDay?"labour-day":void 0,"data-type":o},z.isChristmas?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left xmas logo",src:l.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right xmas logo",src:l.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):z.isNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left new year logo",src:l.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right new year logo",src:l.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):z.isLunarNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellosehat"===o?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellodoktor"===o?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!z.isVNHungKing||"hellobacsi"!==o&&"marryBaby"!==o?null:a.createElement(a.Fragment,null,a.createElement(y,{alt:"Hung King logo",loading:"lazy",src:l.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),a.createElement(u,{type:o,width:null==b?void 0:b.width,height:null==b?void 0:b.height}),V?a.createElement(f,{src:l.getAssetPath("logo/pro-suffix.svg")}):null,A)};export{p as L};
@@ -1,4 +1,4 @@
1
- import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle as r,useMemo as n,forwardRef as l,createContext as s}from"react";import{I as d,T as c}from"./index-fa32b4d8.js";import{u as p}from"./useTranslations-51dc4ab8.js";import"lodash/debounce";import"./isProduction-d8d94564.js";import"./index-14839883.js";import"./useCategory-702b6604.js";import{createStyles as m,Stack as g,Group as h,getStylesRef as u,useMantineTheme as b,Flex as x,rem as f,Box as y}from"@mantine/core";import v from"dayjs";import{M as w}from"./screenSizeContext-f9a53919.js";import k,{keyframes as E,css as $}from"styled-components";import{t as D}from"./theme-9d69f1a2.js";import{G as C,L as z}from"./Subot-f581f4df.js";import{CommonGAssets as B}from"./gAssets.js";import{L as P}from"./index-282bbb6d.js";import{B as N}from"./index-5ecfac85.js";import{H as j,T as S,L as I,a2 as T,P as M,t as A}from"./index.styles-95837b62.js";import{I as O}from"./index-f1ff7dac.js";import{_}from"./tslib.es6-7b491686.js";import{R as L,B as U}from"./index-8dfb1724.js";import"@mantine/dates";import"./translationsContext-a929820e.js";import"string-format";import"@mantine/hooks";import{yupResolver as F}from"@hookform/resolvers/yup";import{useForm as H,Controller as R}from"react-hook-form";import{B as G,D as W}from"./index-c70696a6.js";import{L as V}from"./constants-039f36fe.js";import{D as q}from"./index.styled-ede7c10d.js";import{format as Y,addDays as Z}from"date-fns";import"@linaria/react";import"./utils-8849cc57.js";import{S as X}from"./index-3d1ca95c.js";import{M as J}from"./index-8db07311.js";import"./index-2f243424.js";import{D as K}from"./types-c4843c87.js";import Q from"react-day-picker/DayPickerInput";var ee="tliWyii";const te=({className:t,theme:a,hideText:i})=>{const{t:o}=p();return e.createElement("div",{className:`${ee} ${t}`},e.createElement(d.Spinner,{isMarryBaby:"marryBaby"===a}),!i&&o("loading"))},ae=t((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),ie=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),oe=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var re=m(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ne=k.a`
1
+ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle as r,useMemo as n,forwardRef as l,createContext as s}from"react";import{I as d,T as c}from"./index-8118170d.js";import{u as p}from"./useTranslations-6b1653a2.js";import"lodash/debounce";import"./isProduction-f464a698.js";import"./index-27df5763.js";import"./useCategory-440b7f9a.js";import{createStyles as m,Stack as g,Group as h,getStylesRef as u,useMantineTheme as b,Flex as x,rem as f,Box as y}from"@mantine/core";import v from"dayjs";import{M as w}from"./screenSizeContext-c38ade0a.js";import k,{keyframes as E,css as $}from"styled-components";import{t as D}from"./theme-57e98706.js";import{G as C,L as z}from"./Subot-36ac5f94.js";import{CommonGAssets as B}from"./gAssets.js";import{L as P}from"./index-2e1d6359.js";import{B as N}from"./index-ad6cd88d.js";import{H as j,T as S,L as I,a2 as T,P as M,t as A}from"./index.styles-874ee5cd.js";import{I as O}from"./index-8680e894.js";import{_}from"./tslib.es6-98b62e2b.js";import{R as L,B as U}from"./index-bed044a7.js";import"@mantine/dates";import"./translationsContext-b6ff3279.js";import"string-format";import"@mantine/hooks";import{yupResolver as F}from"@hookform/resolvers/yup";import{useForm as H,Controller as R}from"react-hook-form";import{B as G,D as W}from"./index-dd278d18.js";import{L as V}from"./constants-fe146bd1.js";import{D as q}from"./index.styled-5882c35f.js";import{format as Y,addDays as Z}from"date-fns";import"@linaria/react";import"./utils-ab72b62f.js";import{S as X}from"./index-fc00d32b.js";import{M as J}from"./index-76a540e6.js";import"./index-0e3fc8b7.js";import{D as K}from"./types-8c6df085.js";import Q from"react-day-picker/DayPickerInput";var ee="tliWyii";const te=({className:t,theme:a,hideText:i})=>{const{t:o}=p();return e.createElement("div",{className:`${ee} ${t}`},e.createElement(d.Spinner,{isMarryBaby:"marryBaby"===a}),!i&&o("loading"))},ae=t((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),ie=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),oe=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var re=m(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ne=k.a`
2
2
  display: flex;
3
3
  height: 125px;
4
4