@hhgtech/hhg-components 1.28.15-beta-4 → 1.28.16

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 (347) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/navigationV2/components/atoms/HamburgerIcon.d.ts +3 -1
  5. package/build/components/navigationV2/components/molecules/Categories/index.d.ts +1 -3
  6. package/build/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +3 -1
  7. package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +3 -2
  8. package/build/components/navigationV2/index.d.ts +0 -5
  9. package/build/components/organisms/index.d.ts +1 -1
  10. package/build/components/organisms/navigationProfileButton/index.d.ts +11 -2
  11. package/build/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
  12. package/build/components/organisms/navigationProfileButton/popupWrapper.d.ts +14 -0
  13. package/build/components/organisms/navigationProfileButton/profilePopup.d.ts +15 -3
  14. package/build/components.js +1 -1
  15. package/build/{constants-fb6adb17.js → constants-34c6856b.js} +1 -1
  16. package/build/constants-7e8e3b79.js +1 -0
  17. package/build/constants.js +1 -1
  18. package/build/{core-bef51fd1.js → core-d1a2751c.js} +1 -1
  19. package/build/ecom.js +1 -1
  20. package/build/esm/babyGrowth.js +9 -9
  21. package/build/esm/cache.js +1 -1
  22. package/build/esm/care.js +1 -1
  23. package/build/esm/components/navigationV2/components/atoms/HamburgerIcon.d.ts +3 -1
  24. package/build/esm/components/navigationV2/components/molecules/Categories/index.d.ts +1 -3
  25. package/build/esm/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +3 -1
  26. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +3 -2
  27. package/build/esm/components/navigationV2/index.d.ts +0 -5
  28. package/build/esm/components/organisms/index.d.ts +1 -1
  29. package/build/esm/components/organisms/navigationProfileButton/index.d.ts +11 -2
  30. package/build/esm/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
  31. package/build/esm/components/organisms/navigationProfileButton/popupWrapper.d.ts +14 -0
  32. package/build/esm/components/organisms/navigationProfileButton/profilePopup.d.ts +15 -3
  33. package/build/esm/components.js +1 -1
  34. package/build/esm/{constants-cfdc0380.js → constants-ba60b74a.js} +2 -2
  35. package/build/esm/constants-c334791d.js +1 -0
  36. package/build/esm/constants.js +1 -1
  37. package/build/esm/{core-84b71cee.js → core-88d5192a.js} +1 -1
  38. package/build/esm/ecom.js +1 -1
  39. package/build/esm/footer.js +1 -1
  40. package/build/esm/gAssets.js +1 -1
  41. package/build/esm/{getDynamicHealthTool-dee9eac1.js → getDynamicHealthTool-9db938ad.js} +1 -1
  42. package/build/esm/{getSocialList-2fc3cc61.js → getSocialList-8953efe3.js} +1 -1
  43. package/build/esm/hooks.js +1 -1
  44. package/build/esm/i18n/translationKeys.d.ts +1 -1
  45. package/build/esm/i18n-values/en-PH.js +1 -1
  46. package/build/esm/i18n-values/hi-IN.js +1 -1
  47. package/build/esm/i18n-values/id-ID.js +1 -1
  48. package/build/esm/i18n-values/km-KH.js +1 -1
  49. package/build/esm/i18n-values/ms-MY.js +1 -1
  50. package/build/esm/i18n-values/my-MM.js +1 -1
  51. package/build/esm/i18n-values/th-TH.js +1 -1
  52. package/build/esm/i18n-values/tl-PH.js +1 -1
  53. package/build/esm/i18n-values/vi-VN.js +1 -1
  54. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  55. package/build/esm/i18n-values/zh-TW.js +1 -1
  56. package/build/esm/i18n.js +1 -1
  57. package/build/esm/i18nV2.js +1 -1
  58. package/build/esm/index-11fdf95e.js +1 -0
  59. package/build/esm/{index-cf4fa348.js → index-24c1eba3.js} +1 -1
  60. package/build/esm/{index-068c72cc.js → index-28a3409d.js} +1 -1
  61. package/build/esm/{index-c8a82c3a.js → index-3e28ec6a.js} +1 -1
  62. package/build/esm/index-45e44579.js +3533 -0
  63. package/build/esm/index-50f6ccc7.js +1753 -0
  64. package/build/esm/{index-4b084b6e.js → index-5434cfa9.js} +1 -1
  65. package/build/esm/{index-aecf1873.js → index-657ff743.js} +1 -1
  66. package/build/esm/{index-453d7810.js → index-aa3bea24.js} +2 -2
  67. package/build/esm/{index-91f3d9e2.js → index-b147cf40.js} +1 -1
  68. package/build/esm/{index-2530e74d.js → index-bc2437c9.js} +1 -1
  69. package/build/esm/{index-094aa457.js → index-be417b47.js} +1 -1
  70. package/build/esm/{index-6bd01e9c.js → index-c0138095.js} +1 -1
  71. package/build/esm/{index-5dcb2260.js → index-d430d9ce.js} +6 -6
  72. package/build/esm/{index-1b3cae01.js → index-d7c767cb.js} +1 -1
  73. package/build/esm/{index-5a2d79ac.js → index-dfa670a1.js} +1 -1
  74. package/build/esm/{index-cf397740.js → index-e4543904.js} +1 -1
  75. package/build/esm/{index-03d1cdfe.js → index-ea7f0161.js} +1 -1
  76. package/build/esm/index-fe8c010a.js +1 -0
  77. package/build/esm/index.css +1 -1
  78. package/build/esm/index.js +1 -1
  79. package/build/esm/{index.styled-9950a66c.js → index.styled-9bc1cbde.js} +1 -1
  80. package/build/esm/{index.styled-428e9dac.js → index.styled-b87b9fbd.js} +1 -1
  81. package/build/esm/{index.styles-5092e099.js → index.styles-9a1dd678.js} +2 -2
  82. package/build/esm/lead.css +1 -1
  83. package/build/esm/lead.js +1 -1
  84. package/build/esm/mantine.js +1 -1
  85. package/build/esm/misc.js +1 -1
  86. package/build/esm/navigation.js +1 -1
  87. package/build/esm/onboardingV2.js +1 -1
  88. package/build/esm/pwg.js +5 -5
  89. package/build/esm/{routing-d0f99e19.js → routing-684f58f5.js} +1 -1
  90. package/build/esm/together.js +1 -1
  91. package/build/esm/{types-2f6557e5.js → types-5473890f.js} +1 -1
  92. package/build/esm/{types-1b06fd76.js → types-944ffffe.js} +137 -137
  93. package/build/esm/types.js +1 -1
  94. package/build/esm/{useCategory-5673337e.js → useCategory-33057786.js} +1 -1
  95. package/build/esm/useHealthToolCache-02a850b4.js +1 -0
  96. package/build/esm/{useRafState-9261d5ab.js → useRafState-98a10a71.js} +1 -1
  97. package/build/esm/{useTranslations-52b156cb.js → useTranslations-f2fa1053.js} +1 -1
  98. package/build/esm/{utils-8af2f1c8.js → utils-0ffdff6a.js} +1 -1
  99. package/build/esm/{utils-5255f068.js → utils-87bcdb68.js} +2 -2
  100. package/build/esm/vaccination.js +1 -1
  101. package/build/footer.js +1 -1
  102. package/build/gAssets.js +1 -1
  103. package/build/{getDynamicHealthTool-112965a4.js → getDynamicHealthTool-9ff43ef9.js} +1 -1
  104. package/build/{getSocialList-d5532f87.js → getSocialList-fbfd9e01.js} +1 -1
  105. package/build/hooks.js +1 -1
  106. package/build/i18n/translationKeys.d.ts +1 -1
  107. package/build/i18n-values/en-PH.js +1 -1
  108. package/build/i18n-values/hi-IN.js +1 -1
  109. package/build/i18n-values/id-ID.js +1 -1
  110. package/build/i18n-values/km-KH.js +1 -1
  111. package/build/i18n-values/ms-MY.js +1 -1
  112. package/build/i18n-values/my-MM.js +1 -1
  113. package/build/i18n-values/th-TH.js +1 -1
  114. package/build/i18n-values/tl-PH.js +1 -1
  115. package/build/i18n-values/vi-VN.js +1 -1
  116. package/build/i18n-values/vi-VN_MB.js +1 -1
  117. package/build/i18n-values/zh-TW.js +1 -1
  118. package/build/i18n.js +1 -1
  119. package/build/i18nV2.js +1 -1
  120. package/build/{index-be20fd87.js → index-11dc145c.js} +1 -1
  121. package/build/index-22702e82.js +3533 -0
  122. package/build/{index-3d013906.js → index-28e430b3.js} +1 -1
  123. package/build/{index-9edff19f.js → index-3859eba9.js} +1 -1
  124. package/build/{index-e63ffb86.js → index-443d41ff.js} +1 -1
  125. package/build/{index-4b983686.js → index-4db0a2fe.js} +1 -1
  126. package/build/{index-442cd927.js → index-5c0a432e.js} +3 -3
  127. package/build/{index-350d6b0c.js → index-891da49b.js} +1 -1
  128. package/build/index-8b423cc5.js +1 -0
  129. package/build/{index-41e74b11.js → index-90c21b12.js} +1 -1
  130. package/build/{index-f3b4329f.js → index-9b8e0a98.js} +3 -3
  131. package/build/{index-033c57e0.js → index-a2cff539.js} +1 -1
  132. package/build/index-a35a89b8.js +1753 -0
  133. package/build/{index-b3861169.js → index-a8741dd0.js} +1 -1
  134. package/build/{index-d06f0663.js → index-d9181e17.js} +1 -1
  135. package/build/{index-0ca47103.js → index-da92a0b1.js} +1 -1
  136. package/build/index-e4dc72f3.js +1 -0
  137. package/build/{index-92439f4d.js → index-eab60ab5.js} +1 -1
  138. package/build/{index-269650ef.js → index-fdff35ad.js} +1 -1
  139. package/build/index.css +1 -1
  140. package/build/index.js +1 -1
  141. package/build/{index.styled-4b01c749.js → index.styled-51ef7895.js} +1 -1
  142. package/build/{index.styled-d0e553ec.js → index.styled-d1cabd49.js} +1 -1
  143. package/build/{index.styles-5b235c5c.js → index.styles-6f18edec.js} +5 -5
  144. package/build/lead.css +1 -1
  145. package/build/lead.js +1 -1
  146. package/build/mantine.js +1 -1
  147. package/build/misc.js +1 -1
  148. package/build/navigation.js +1 -1
  149. package/build/onboardingV2.js +1 -1
  150. package/build/pwg.js +2 -2
  151. package/build/{routing-7b0e2dba.js → routing-6b95f257.js} +1 -1
  152. package/build/together.js +1 -1
  153. package/build/{types-9c75f6e1.js → types-218f0dbf.js} +1 -1
  154. package/build/{types-330c16ed.js → types-7740197d.js} +68 -68
  155. package/build/types.js +1 -1
  156. package/build/{useCategory-238c2a87.js → useCategory-7c185815.js} +1 -1
  157. package/build/useHealthToolCache-9137dd04.js +1 -0
  158. package/build/{useRafState-d6ddc7b6.js → useRafState-d26c66a4.js} +1 -1
  159. package/build/{useTranslations-606dabc9.js → useTranslations-c144a2c9.js} +1 -1
  160. package/build/{utils-d5683c27.js → utils-47e2d20e.js} +2 -2
  161. package/build/{utils-ee5ee4f3.js → utils-99084643.js} +1 -1
  162. package/build/vaccination.js +5 -5
  163. package/package.json +1 -1
  164. package/build/ChevronDown-f44eaa38.js +0 -1
  165. package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +0 -8
  166. package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +0 -1
  167. package/build/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +0 -8
  168. package/build/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +0 -2
  169. package/build/components/organisms/profileNavigation/icons/booking.d.ts +0 -2
  170. package/build/components/organisms/profileNavigation/icons/community.d.ts +0 -2
  171. package/build/components/organisms/profileNavigation/icons/dot.d.ts +0 -2
  172. package/build/components/organisms/profileNavigation/icons/eShop.d.ts +0 -2
  173. package/build/components/organisms/profileNavigation/icons/help.d.ts +0 -2
  174. package/build/components/organisms/profileNavigation/icons/logOut.d.ts +0 -2
  175. package/build/components/organisms/profileNavigation/icons/myHealth.d.ts +0 -2
  176. package/build/components/organisms/profileNavigation/icons/save.d.ts +0 -2
  177. package/build/components/organisms/profileNavigation/icons/settings.d.ts +0 -2
  178. package/build/components/organisms/profileNavigation/icons/user.d.ts +0 -2
  179. package/build/components/organisms/profileNavigation/index.d.ts +0 -36
  180. package/build/components/organisms/profileNavigation/index.styled.d.ts +0 -9
  181. package/build/components/organisms/profileNavigation/rank.d.ts +0 -7
  182. package/build/components/organisms/profileNavigation/userInfo.d.ts +0 -6
  183. package/build/esm/ChevronDown-6e4045cb.js +0 -1
  184. package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +0 -8
  185. package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +0 -1
  186. package/build/esm/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +0 -8
  187. package/build/esm/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +0 -2
  188. package/build/esm/components/organisms/profileNavigation/icons/booking.d.ts +0 -2
  189. package/build/esm/components/organisms/profileNavigation/icons/community.d.ts +0 -2
  190. package/build/esm/components/organisms/profileNavigation/icons/dot.d.ts +0 -2
  191. package/build/esm/components/organisms/profileNavigation/icons/eShop.d.ts +0 -2
  192. package/build/esm/components/organisms/profileNavigation/icons/help.d.ts +0 -2
  193. package/build/esm/components/organisms/profileNavigation/icons/logOut.d.ts +0 -2
  194. package/build/esm/components/organisms/profileNavigation/icons/myHealth.d.ts +0 -2
  195. package/build/esm/components/organisms/profileNavigation/icons/save.d.ts +0 -2
  196. package/build/esm/components/organisms/profileNavigation/icons/settings.d.ts +0 -2
  197. package/build/esm/components/organisms/profileNavigation/icons/user.d.ts +0 -2
  198. package/build/esm/components/organisms/profileNavigation/index.d.ts +0 -36
  199. package/build/esm/components/organisms/profileNavigation/index.styled.d.ts +0 -9
  200. package/build/esm/components/organisms/profileNavigation/rank.d.ts +0 -7
  201. package/build/esm/components/organisms/profileNavigation/userInfo.d.ts +0 -6
  202. package/build/esm/index-11d9ff52.js +0 -1755
  203. package/build/esm/index-3229b981.js +0 -1
  204. package/build/esm/index-567d55c1.js +0 -1
  205. package/build/esm/index-c67452e8.js +0 -3533
  206. package/build/esm/useHealthToolCache-c775174e.js +0 -1
  207. package/build/index-48e9d7cf.js +0 -1755
  208. package/build/index-5521c9b0.js +0 -1
  209. package/build/index-8a7776b8.js +0 -3533
  210. package/build/index-98c28740.js +0 -1
  211. package/build/useHealthToolCache-dd833873.js +0 -1
  212. /package/build/{BMI_BOYS.percentile.monthly-8d868ef8.js → BMI_BOYS.percentile.monthly-d8246084.js} +0 -0
  213. /package/build/{BMI_BOYS.percentile.weekly-69972fd1.js → BMI_BOYS.percentile.weekly-44838570.js} +0 -0
  214. /package/build/{BMI_BOYS.percentile.yearly-684c600d.js → BMI_BOYS.percentile.yearly-4f62bdbe.js} +0 -0
  215. /package/build/{BMI_BOYS.zscore.monthly-b2af4560.js → BMI_BOYS.zscore.monthly-0ecedeff.js} +0 -0
  216. /package/build/{BMI_BOYS.zscore.weekly-cc2976cc.js → BMI_BOYS.zscore.weekly-1676fdc4.js} +0 -0
  217. /package/build/{BMI_BOYS.zscore.yearly-b049c50a.js → BMI_BOYS.zscore.yearly-3218080c.js} +0 -0
  218. /package/build/{BMI_GIRLS.percentile.monthly-d329caef.js → BMI_GIRLS.percentile.monthly-233c5186.js} +0 -0
  219. /package/build/{BMI_GIRLS.percentile.weekly-17067fb8.js → BMI_GIRLS.percentile.weekly-0d2f8675.js} +0 -0
  220. /package/build/{BMI_GIRLS.percentile.yearly-eadaae00.js → BMI_GIRLS.percentile.yearly-3385e9e4.js} +0 -0
  221. /package/build/{BMI_GIRLS.zscore.monthly-72600216.js → BMI_GIRLS.zscore.monthly-ad9006a7.js} +0 -0
  222. /package/build/{BMI_GIRLS.zscore.weekly-619aba15.js → BMI_GIRLS.zscore.weekly-5fd5607b.js} +0 -0
  223. /package/build/{BMI_GIRLS.zscore.yearly-28840060.js → BMI_GIRLS.zscore.yearly-0331ba9e.js} +0 -0
  224. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2e62b52d.js → HEAD CIRCUM_BOYS.percentile.monthly-23e7285d.js} +0 -0
  225. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-240f1f30.js → HEAD CIRCUM_BOYS.percentile.weekly-295f6a2e.js} +0 -0
  226. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-79e8812b.js → HEAD CIRCUM_BOYS.percentile.yearly-b37666a4.js} +0 -0
  227. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8274de34.js → HEAD CIRCUM_BOYS.zscore.monthly-d415fd50.js} +0 -0
  228. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f02646ba.js → HEAD CIRCUM_BOYS.zscore.weekly-2c67ede7.js} +0 -0
  229. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b6cc64b6.js → HEAD CIRCUM_BOYS.zscore.yearly-9ce71a5b.js} +0 -0
  230. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-6ee49c4b.js → HEAD CIRCUM_GIRLS.percentile.monthly-691de5a7.js} +0 -0
  231. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-7afb6c72.js → HEAD CIRCUM_GIRLS.percentile.weekly-37bca53e.js} +0 -0
  232. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bebde985.js → HEAD CIRCUM_GIRLS.percentile.yearly-b0e1f790.js} +0 -0
  233. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6fc37161.js → HEAD CIRCUM_GIRLS.zscore.monthly-f15e0ce8.js} +0 -0
  234. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-1311e8a7.js → HEAD CIRCUM_GIRLS.zscore.weekly-601ebbb0.js} +0 -0
  235. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b0f7173d.js → HEAD CIRCUM_GIRLS.zscore.yearly-9ed7f687.js} +0 -0
  236. /package/build/{HEIGHT_BOYS.percentile.monthly-7c62cd64.js → HEIGHT_BOYS.percentile.monthly-e62bb836.js} +0 -0
  237. /package/build/{HEIGHT_BOYS.percentile.weekly-94c0c5dc.js → HEIGHT_BOYS.percentile.weekly-7c5eefb2.js} +0 -0
  238. /package/build/{HEIGHT_BOYS.percentile.yearly-906b6685.js → HEIGHT_BOYS.percentile.yearly-382b5ba6.js} +0 -0
  239. /package/build/{HEIGHT_BOYS.zscore.monthly-06e6c728.js → HEIGHT_BOYS.zscore.monthly-f7be5b32.js} +0 -0
  240. /package/build/{HEIGHT_BOYS.zscore.weekly-bbc34160.js → HEIGHT_BOYS.zscore.weekly-b3d1d920.js} +0 -0
  241. /package/build/{HEIGHT_BOYS.zscore.yearly-8a02fa6a.js → HEIGHT_BOYS.zscore.yearly-8ac55d7f.js} +0 -0
  242. /package/build/{HEIGHT_GIRLS.percentile.monthly-8a23b725.js → HEIGHT_GIRLS.percentile.monthly-ab906406.js} +0 -0
  243. /package/build/{HEIGHT_GIRLS.percentile.weekly-e2505836.js → HEIGHT_GIRLS.percentile.weekly-91e96167.js} +0 -0
  244. /package/build/{HEIGHT_GIRLS.percentile.yearly-2435efab.js → HEIGHT_GIRLS.percentile.yearly-bc79dc59.js} +0 -0
  245. /package/build/{HEIGHT_GIRLS.zscore.monthly-4d138aa2.js → HEIGHT_GIRLS.zscore.monthly-0d6dbdb6.js} +0 -0
  246. /package/build/{HEIGHT_GIRLS.zscore.weekly-f1b50d2e.js → HEIGHT_GIRLS.zscore.weekly-123cd6ac.js} +0 -0
  247. /package/build/{HEIGHT_GIRLS.zscore.yearly-d884851b.js → HEIGHT_GIRLS.zscore.yearly-a33c5dfb.js} +0 -0
  248. /package/build/{Onboarding-02b212ec.js → Onboarding-1ed7eddd.js} +0 -0
  249. /package/build/{Visible-e47a83f0.js → Visible-7d1dad5b.js} +0 -0
  250. /package/build/{WEIGHT_BOYS.percentile.monthly-9c0ab2f3.js → WEIGHT_BOYS.percentile.monthly-930a1df3.js} +0 -0
  251. /package/build/{WEIGHT_BOYS.percentile.weekly-e6359d8f.js → WEIGHT_BOYS.percentile.weekly-7fa375e5.js} +0 -0
  252. /package/build/{WEIGHT_BOYS.percentile.yearly-c1d285ef.js → WEIGHT_BOYS.percentile.yearly-d51b256a.js} +0 -0
  253. /package/build/{WEIGHT_BOYS.zscore.monthly-29cc6a9e.js → WEIGHT_BOYS.zscore.monthly-02e8e97f.js} +0 -0
  254. /package/build/{WEIGHT_BOYS.zscore.weekly-32b9e2db.js → WEIGHT_BOYS.zscore.weekly-587d3760.js} +0 -0
  255. /package/build/{WEIGHT_BOYS.zscore.yearly-88fe92ec.js → WEIGHT_BOYS.zscore.yearly-c55542ed.js} +0 -0
  256. /package/build/{WEIGHT_GIRLS.percentile.monthly-4f8196a3.js → WEIGHT_GIRLS.percentile.monthly-8dcfc1d4.js} +0 -0
  257. /package/build/{WEIGHT_GIRLS.percentile.weekly-60dbf08b.js → WEIGHT_GIRLS.percentile.weekly-30628693.js} +0 -0
  258. /package/build/{WEIGHT_GIRLS.percentile.yearly-73acbfbc.js → WEIGHT_GIRLS.percentile.yearly-980cde92.js} +0 -0
  259. /package/build/{WEIGHT_GIRLS.zscore.monthly-0d179d83.js → WEIGHT_GIRLS.zscore.monthly-3d6f3d00.js} +0 -0
  260. /package/build/{WEIGHT_GIRLS.zscore.weekly-ac52b56b.js → WEIGHT_GIRLS.zscore.weekly-991e001b.js} +0 -0
  261. /package/build/{WEIGHT_GIRLS.zscore.yearly-89b460cc.js → WEIGHT_GIRLS.zscore.yearly-d8ca8e94.js} +0 -0
  262. /package/build/{cookieHelper-6d3c6c73.js → cookieHelper-0da740db.js} +0 -0
  263. /package/build/{dataTransform-4aaed2e5.js → dataTransform-f2f85756.js} +0 -0
  264. /package/build/esm/{BMI_BOYS.percentile.monthly-fbe7c2ef.js → BMI_BOYS.percentile.monthly-a5310a65.js} +0 -0
  265. /package/build/esm/{BMI_BOYS.percentile.weekly-4d797d2a.js → BMI_BOYS.percentile.weekly-5e88bf2d.js} +0 -0
  266. /package/build/esm/{BMI_BOYS.percentile.yearly-d07ae071.js → BMI_BOYS.percentile.yearly-14b68ad4.js} +0 -0
  267. /package/build/esm/{BMI_BOYS.zscore.monthly-96d2a94f.js → BMI_BOYS.zscore.monthly-2383923f.js} +0 -0
  268. /package/build/esm/{BMI_BOYS.zscore.weekly-221997ba.js → BMI_BOYS.zscore.weekly-4f5ee15c.js} +0 -0
  269. /package/build/esm/{BMI_BOYS.zscore.yearly-5b15a7cc.js → BMI_BOYS.zscore.yearly-3c9268d0.js} +0 -0
  270. /package/build/esm/{BMI_GIRLS.percentile.monthly-8be81f3f.js → BMI_GIRLS.percentile.monthly-1d45df4f.js} +0 -0
  271. /package/build/esm/{BMI_GIRLS.percentile.weekly-3ca750dc.js → BMI_GIRLS.percentile.weekly-daa7f9f6.js} +0 -0
  272. /package/build/esm/{BMI_GIRLS.percentile.yearly-bed60b79.js → BMI_GIRLS.percentile.yearly-4c717f07.js} +0 -0
  273. /package/build/esm/{BMI_GIRLS.zscore.monthly-a26ea9a6.js → BMI_GIRLS.zscore.monthly-04f3f50f.js} +0 -0
  274. /package/build/esm/{BMI_GIRLS.zscore.weekly-a2572ace.js → BMI_GIRLS.zscore.weekly-9dcd3a11.js} +0 -0
  275. /package/build/esm/{BMI_GIRLS.zscore.yearly-c298a5f3.js → BMI_GIRLS.zscore.yearly-270280dc.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-dfa23e8e.js → HEAD CIRCUM_BOYS.percentile.monthly-d832f43d.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f4c220d2.js → HEAD CIRCUM_BOYS.percentile.weekly-70ad77e5.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f2265e2d.js → HEAD CIRCUM_BOYS.percentile.yearly-288f7d2d.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-94efc9e9.js → HEAD CIRCUM_BOYS.zscore.monthly-c89bf1de.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-bf5437a7.js → HEAD CIRCUM_BOYS.zscore.weekly-4e71b7f1.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-9116ae02.js → HEAD CIRCUM_BOYS.zscore.yearly-2ff7ba6a.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0969fe45.js → HEAD CIRCUM_GIRLS.percentile.monthly-63058cfd.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e0f3a707.js → HEAD CIRCUM_GIRLS.percentile.weekly-69ef1532.js} +0 -0
  284. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fa905935.js → HEAD CIRCUM_GIRLS.percentile.yearly-aef83790.js} +0 -0
  285. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-27aba736.js → HEAD CIRCUM_GIRLS.zscore.monthly-fde4f28d.js} +0 -0
  286. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f6572add.js → HEAD CIRCUM_GIRLS.zscore.weekly-34f7aaa6.js} +0 -0
  287. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-0ee9d42e.js → HEAD CIRCUM_GIRLS.zscore.yearly-5408d3b3.js} +0 -0
  288. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-913b4b2e.js → HEIGHT_BOYS.percentile.monthly-ee63a496.js} +0 -0
  289. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-bf2adca9.js → HEIGHT_BOYS.percentile.weekly-25c93dc2.js} +0 -0
  290. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d32aa2d0.js → HEIGHT_BOYS.percentile.yearly-29e12cbe.js} +0 -0
  291. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5402d170.js → HEIGHT_BOYS.zscore.monthly-6e504a12.js} +0 -0
  292. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0dc62dc5.js → HEIGHT_BOYS.zscore.weekly-140b4225.js} +0 -0
  293. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-ce1d1112.js → HEIGHT_BOYS.zscore.yearly-ba7114a5.js} +0 -0
  294. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-255d8ce3.js → HEIGHT_GIRLS.percentile.monthly-818aebb8.js} +0 -0
  295. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-fa4289a0.js → HEIGHT_GIRLS.percentile.weekly-0fc6e89e.js} +0 -0
  296. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-2679e2d6.js → HEIGHT_GIRLS.percentile.yearly-681a1ed2.js} +0 -0
  297. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c306ed81.js → HEIGHT_GIRLS.zscore.monthly-7d4ccdc4.js} +0 -0
  298. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-70ca3391.js → HEIGHT_GIRLS.zscore.weekly-c87b10e5.js} +0 -0
  299. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-680b3370.js → HEIGHT_GIRLS.zscore.yearly-e51a9d73.js} +0 -0
  300. /package/build/esm/{Onboarding-280ab4c1.js → Onboarding-463ce431.js} +0 -0
  301. /package/build/esm/{Visible-6294b0e9.js → Visible-6d3eed09.js} +0 -0
  302. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c46775ae.js → WEIGHT_BOYS.percentile.monthly-703de771.js} +0 -0
  303. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ffb54c72.js → WEIGHT_BOYS.percentile.weekly-550eb864.js} +0 -0
  304. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-6641470c.js → WEIGHT_BOYS.percentile.yearly-e9490c8d.js} +0 -0
  305. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-0f3a97ff.js → WEIGHT_BOYS.zscore.monthly-4c83cfbd.js} +0 -0
  306. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c30fd4e4.js → WEIGHT_BOYS.zscore.weekly-f23005b4.js} +0 -0
  307. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-5926bb1e.js → WEIGHT_BOYS.zscore.yearly-ca4f2388.js} +0 -0
  308. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-9f789f62.js → WEIGHT_GIRLS.percentile.monthly-23cd8ea6.js} +0 -0
  309. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-dac4f744.js → WEIGHT_GIRLS.percentile.weekly-febe4234.js} +0 -0
  310. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-23f8d7f3.js → WEIGHT_GIRLS.percentile.yearly-c2f887e5.js} +0 -0
  311. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-2124614a.js → WEIGHT_GIRLS.zscore.monthly-34d3facc.js} +0 -0
  312. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-78c05b87.js → WEIGHT_GIRLS.zscore.weekly-8780aed5.js} +0 -0
  313. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c59c6314.js → WEIGHT_GIRLS.zscore.yearly-252884cf.js} +0 -0
  314. /package/build/esm/{cookieHelper-2f601879.js → cookieHelper-a323723f.js} +0 -0
  315. /package/build/esm/{dataTransform-a7773497.js → dataTransform-a08eca6d.js} +0 -0
  316. /package/build/esm/{index-73d3c6af.js → index-1ad292df.js} +0 -0
  317. /package/build/esm/{index-60f1d2bc.js → index-e62f1f55.js} +0 -0
  318. /package/build/esm/{index-aa077bbc.js → index-eaf84989.js} +0 -0
  319. /package/build/esm/{isProduction-5d3f7f67.js → isProduction-d0806fd7.js} +0 -0
  320. /package/build/esm/{localizeNumberFormat-a323567e.js → localizeNumberFormat-5b2c000a.js} +0 -0
  321. /package/build/esm/{normalizeLink-b601334b.js → normalizeLink-3525e522.js} +0 -0
  322. /package/build/esm/{number-125fe83e.js → number-1375c5fe.js} +0 -0
  323. /package/build/esm/{paths-65bbc2f8.js → paths-c39c362c.js} +0 -0
  324. /package/build/esm/{screenSizeContext-5c31eb3d.js → screenSizeContext-ff1b2f0e.js} +0 -0
  325. /package/build/esm/{theme-db59145c.js → theme-ddf901b0.js} +0 -0
  326. /package/build/esm/{translationsContext-1d0d9d22.js → translationsContext-a1f7810e.js} +0 -0
  327. /package/build/esm/{tslib.es6-61367255.js → tslib.es6-23d6ede2.js} +0 -0
  328. /package/build/esm/{types-47b54a57.js → types-6f704fe0.js} +0 -0
  329. /package/build/esm/{useIsInit-face417a.js → useIsInit-636116cb.js} +0 -0
  330. /package/build/esm/{useOutsideClick-a78fb1a5.js → useOutsideClick-306a35a1.js} +0 -0
  331. /package/build/esm/{useScrollbarSize-ecfa6384.js → useScrollbarSize-6b3ef7cc.js} +0 -0
  332. /package/build/{index-33166fea.js → index-53d11975.js} +0 -0
  333. /package/build/{index-cdba5545.js → index-805e5d13.js} +0 -0
  334. /package/build/{index-7a976333.js → index-82b6a813.js} +0 -0
  335. /package/build/{isProduction-3460232b.js → isProduction-7f5216fc.js} +0 -0
  336. /package/build/{localizeNumberFormat-db78b991.js → localizeNumberFormat-a1c4e286.js} +0 -0
  337. /package/build/{normalizeLink-bf3802e9.js → normalizeLink-26672c12.js} +0 -0
  338. /package/build/{number-b9cf85b4.js → number-64cd3d70.js} +0 -0
  339. /package/build/{paths-ff4a050f.js → paths-00f89d01.js} +0 -0
  340. /package/build/{screenSizeContext-08ca9513.js → screenSizeContext-90f26a14.js} +0 -0
  341. /package/build/{theme-8aa52186.js → theme-729e91dd.js} +0 -0
  342. /package/build/{translationsContext-7394c7ab.js → translationsContext-aef20045.js} +0 -0
  343. /package/build/{tslib.es6-2d438299.js → tslib.es6-647efffd.js} +0 -0
  344. /package/build/{types-a7053c85.js → types-9d34ae85.js} +0 -0
  345. /package/build/{useIsInit-c2a624bb.js → useIsInit-7142302e.js} +0 -0
  346. /package/build/{useOutsideClick-592b8bd1.js → useOutsideClick-55256032.js} +0 -0
  347. /package/build/{useScrollbarSize-19fad168.js → useScrollbarSize-4f7377fd.js} +0 -0
@@ -0,0 +1,1753 @@
1
+ import{a as e,_ as t}from"./tslib.es6-23d6ede2.js";import a,{useState as o,useEffect as i,useMemo as n,useRef as l,memo as r,useContext as s,useCallback as d}from"react";import{g as c}from"./core-88d5192a.js";import{I as m,F as p,B as g,a as h}from"./index-3e28ec6a.js";import u from"styled-components";import{T as v,U as y}from"./index-b147cf40.js";import{CommonGAssets as b}from"./gAssets.js";import{d as f,C as x,b as w,T as E,E as C,L as k,S as $,U as P}from"./index-24c1eba3.js";import{n as N,a as B}from"./normalizeLink-3525e522.js";import{g as _,a as M,b as A,c as T,d as H}from"./routing-684f58f5.js";import{P as S,U as L,a as U,b as z}from"./index-aa3bea24.js";import{L as D}from"./index-d7c767cb.js";import{u as j,b as R}from"./useTranslations-f2fa1053.js";import O from"lodash/throttle";import{j as I,M as F}from"./screenSizeContext-ff1b2f0e.js";import{L as V}from"./Onboarding-463ce431.js";import{t as G}from"./theme-ddf901b0.js";import{I as W,w as Y,J as Z,P as q,H as K}from"./index.styles-9a1dd678.js";import{D as Q}from"./constants-c334791d.js";import{g as J}from"./cookieHelper-a323723f.js";import{Portal as X}from"@mantine/core";import{B as ee}from"./index-c0138095.js";import{a as te}from"./constants-ba60b74a.js";import"./utils-87bcdb68.js";import"@mantine/dates";import ae from"dayjs";import"./isProduction-d0806fd7.js";import"@mantine/hooks";import"./index.styled-9bc1cbde.js";import"./index-e62f1f55.js";import oe from"lodash/debounce";import"./useCategory-33057786.js";import ie from"string-format";import{I as ne}from"./index-11fdf95e.js";import{u as le}from"./useIsInit-636116cb.js";import re from"dayjs/plugin/relativeTime";import{C as se}from"./index-1ad292df.js";const de={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},ce=({type:e="square",size:t,avatarImg:n,avatarUrl:l,firstLetter:r,backgroundColor:s,onClick:d,style:c,className:p,width:g,height:h,alt:u})=>{const v=t?de[t]:void 0,[y,b]=o(!1);i((()=>{if(l){const e=document.createElement("img");e.setAttribute("src",l),e.addEventListener("error",(()=>{b(!0)}))}}),[l,b]);const f=(!l&&!n||y)&&r;return a.createElement(W,{style:Object.assign(Object.assign({},c),{"--size":v?v+"px":void 0,"--width-prop":g?g+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":s}),"data-has-max":!(!g||!h),"data-avatar-type":e,onClick:d,className:p,avatarUrl:l,"data-custom-size":!!t},n,l&&!y&&a.createElement(m,{src:l,alt:u||"avatar"}),f&&r)},me=["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"],pe=(e="")=>me.some((t=>new URL(e).origin.endsWith(t))),ge=u.a`
2
+ display: inline-flex;
3
+ position: relative;
4
+ flex-direction: row;
5
+ align-items: center;
6
+ padding: 7px 11px;
7
+ gap: 2px;
8
+
9
+ background: ${e=>e.theme.colors.white};
10
+ border: 1px solid ${e=>e.theme.colors.neutral100};
11
+ border-radius: 20px;
12
+
13
+ color: ${e=>e.theme.colors.gray600};
14
+ font-weight: 600;
15
+ font-size: 12px;
16
+ line-height: 18px;
17
+ text-decoration: none;
18
+
19
+ cursor: pointer;
20
+ `,he=u.div`
21
+ position: relative;
22
+ display: inline-block;
23
+ `,ue=u.div`
24
+ position: relative;
25
+ `,ve=u.div`
26
+ position: absolute;
27
+ z-index: 21;
28
+ top: 100%;
29
+ right: 0;
30
+ width: 327px;
31
+ padding: 8px;
32
+ background: white;
33
+ border-radius: 4px;
34
+ filter: drop-shadow(0px 8px 40px rgba(0, 0, 0, 0.1));
35
+
36
+ &[data-is-open='false'] {
37
+ display: none;
38
+ }
39
+ &[data-show-indicator='true'] {
40
+ &:before {
41
+ position: absolute;
42
+ right: 11px;
43
+ bottom: 100%;
44
+ width: 0;
45
+ height: 0;
46
+ border: 0.5rem solid transparent;
47
+ border-top: none;
48
+ border-bottom-color: #fff;
49
+ content: '';
50
+ filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));
51
+ }
52
+ }
53
+ `,ye=u.div`
54
+ display: flex;
55
+ height: 40px;
56
+ align-items: center;
57
+ justify-content: space-between;
58
+
59
+ padding: 0 16px;
60
+ border-radius: ${e=>e.theme.borderRadius};
61
+ cursor: pointer;
62
+
63
+ .check-icon {
64
+ width: 16px;
65
+ height: 16px;
66
+ }
67
+ &[data-selected='false'] {
68
+ background-color: ${e=>e.theme.colors.gray100};
69
+ }
70
+ `,be=u.div`
71
+ position: fixed;
72
+ z-index: 20;
73
+ top: 0;
74
+ left: 0;
75
+ width: 100%;
76
+ height: 100%;
77
+ cursor: default;
78
+ `,fe=({options:e,label:t,labelRenderer:i,selected:n,onChange:l,showSelected:r=!0,style:s={},showIndicator:d=!0})=>{const[c,m]=o(!1);return a.createElement(a.Fragment,null,a.createElement(he,null,a.createElement(ue,{onClick:()=>m((e=>!e))},t||(null==i?void 0:i(c))||null,a.createElement(ve,{"data-is-open":c,style:s,"data-show-indicator":d},e.map(((e,t)=>a.createElement(ye,{key:t,"data-selected":r&&n===e.value,onClick:t=>{n!==e.value&&(l(e.value),m((e=>!e))),t.stopPropagation()}},a.createElement(v,{size:"p3"},e.label),r&&n===e.value&&a.createElement("img",{src:b.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),c&&a.createElement(be,{onClick:()=>m(!1)}))},xe=({languageOptions:e,locale:t})=>{var o,i;const n=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(fe,{options:e,selected:n.value,label:a.createElement(we,{locale:t,label:n.label||(null===(i=null===(o=t.split("-"))||void 0===o?void 0:o[0])||void 0===i?void 0:i.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},we=({locale:e,label:t,href:o})=>{var i,n,l;return a.createElement(ge,{href:o},a.createElement(p,{country:null===(n=null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[1])||void 0===n?void 0:n.toUpperCase(),width:16,height:16,rounded:!0,language:null===(l=null==e?void 0:e.split("-"))||void 0===l?void 0:l[0]}),a.createElement("span",null,t))},Ee=u.div`
79
+ ${e=>`\n ${0!==e.lowerBound?`@media (max-width: ${e.lowerBound-1}px) { display: none; }`:""}\n ${0!==e.upperBound?`@media (min-width: ${e.upperBound}px) { display: none; }`:""}\n `}
80
+ `,Ce=({forceDisplay:e,mediaQueryKey:t,children:o,className:i,style:l})=>{const[r,s]=n((()=>I(t)),[t]);return a.createElement(Ee,{lowerBound:e?0:r,upperBound:e?0:s,className:i,style:l},o)},ke=e=>{const{allowBgScroll:t}=e||{},a=l();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())}}},$e="hhgcomp-navprofilebutton-popup",Pe=Y(u.div`
81
+ position: absolute;
82
+ right: 0;
83
+ background-color: ${e=>e.theme.colors.white};
84
+
85
+ &[data-animation='true'] {
86
+ transition: all 0.5s ease-in-out;
87
+ }
88
+
89
+ &[data-open='true'] {
90
+ z-index: 200;
91
+ top: 120%;
92
+ opacity: 1;
93
+ visibility: visible;
94
+ }
95
+
96
+ &[data-open='false'] {
97
+ display: none;
98
+ }
99
+
100
+ &[data-type='lead'] {
101
+ width: 332px;
102
+ height: 460px;
103
+
104
+ div {
105
+ top: -15px;
106
+ right: -15px;
107
+ }
108
+ }
109
+
110
+ &[data-type='welcome'] {
111
+ position: fixed;
112
+ ${F.mbDown} {
113
+ width: 100%;
114
+ height: 424px;
115
+ bottom: 0;
116
+ top: unset;
117
+ }
118
+ ${F.mbUp} {
119
+ top: 50%;
120
+ left: 50%;
121
+ transform: translate(-50%, -50%);
122
+ width: 100%;
123
+ min-height: 445px;
124
+ max-width: 407px;
125
+ }
126
+ }
127
+
128
+ &[data-type='due-date'] {
129
+ position: fixed;
130
+ ${F.mbDown} {
131
+ width: 100%;
132
+ height: 100%;
133
+ overflow-y: scroll;
134
+ bottom: 0;
135
+ top: unset;
136
+ }
137
+ ${F.mbUp} {
138
+ top: 50%;
139
+ left: 50%;
140
+ transform: translate(-50%, -50%);
141
+ width: 100vw;
142
+ height: 55vw;
143
+ max-height: 598px;
144
+ max-width: 1080px;
145
+ }
146
+ }
147
+
148
+ .popup-content {
149
+ z-index: 111;
150
+ height: 100%;
151
+ ${F.mbDown} {
152
+ max-height: calc(100vh - var(--header-bottom, 64px));
153
+ }
154
+ overflow: auto;
155
+ }
156
+
157
+ &[data-type='form'] {
158
+ width: 496px;
159
+ height: 548px;
160
+ }
161
+
162
+ &[data-type='confirm'] {
163
+ width: 380px;
164
+ height: 252px;
165
+ }
166
+
167
+ &[data-type='profile'] {
168
+ /* min-height: 415px; */
169
+ ${F.mbUp} {
170
+ border-radius: ${e=>e.theme.borderRadius};
171
+ box-shadow: 0px 4px 8px
172
+ ${e=>e.theme.colors.gray200};
173
+ &:before {
174
+ position: absolute;
175
+ right: 11px;
176
+ bottom: 100%;
177
+ width: 0;
178
+ height: 0;
179
+ border: 0.5rem solid transparent;
180
+ border-top: none;
181
+ border-bottom-color: #fff;
182
+ content: '';
183
+ filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));
184
+ }
185
+ }
186
+ ${F.mbDown} {
187
+ position: fixed;
188
+ left: 0;
189
+ width: 100%;
190
+ border-top: 1px solid ${G.colors.neutral100};
191
+ }
192
+ ${F.mbUp} {
193
+ width: 368px;
194
+ }
195
+ }
196
+
197
+ .close-button {
198
+ position: absolute;
199
+ top: 0;
200
+ right: 0;
201
+ width: 32px;
202
+ height: 32px;
203
+ cursor: pointer;
204
+
205
+ img {
206
+ width: 100%;
207
+ height: 100%;
208
+ border-radius: 50%;
209
+ }
210
+ }
211
+ `,$e),Ne="hhgcomp-navprofilebutton-popupwrapper";Y(u.div`
212
+ position: fixed;
213
+ z-index: 150;
214
+ top: var(--header-bottom, 56px);
215
+ left: 0;
216
+ width: 100%;
217
+ height: 100%;
218
+ align-items: center;
219
+
220
+ ${F.mbUp} {
221
+ background-color: transparent;
222
+ &[data-type='welcome'] {
223
+ background: rgba(38, 38, 38, 0.3);
224
+ }
225
+ &[data-type='due-date'] {
226
+ background: rgba(38, 38, 38, 0.3);
227
+ }
228
+ }
229
+
230
+ ${F.mbDown} {
231
+ background: rgba(38, 38, 38, 0.3);
232
+ }
233
+
234
+ &[data-type='welcome'] {
235
+ top: 0;
236
+ }
237
+
238
+ &[data-open='false'] {
239
+ display: none;
240
+ }
241
+ `,Ne);const Be=u.div`
242
+ width: 40px;
243
+ height: 40px;
244
+ cursor: pointer;
245
+
246
+ img {
247
+ border-radius: 50%;
248
+ }
249
+
250
+ .avatar {
251
+ width: 40px;
252
+ height: 40px;
253
+ object-fit: cover;
254
+ }
255
+
256
+ .avatar-default {
257
+ display: flex;
258
+ align-items: center;
259
+ justify-content: center;
260
+ background-color: ${e=>e.theme.colors.secondaryBase};
261
+ border-radius: 50%;
262
+ color: white;
263
+ font-size: 20px;
264
+ font-weight: bold;
265
+ }
266
+ `,_e=u.a`
267
+ display: inline-flex;
268
+ position: relative;
269
+ width: 40px;
270
+ height: 40px;
271
+ display: flex;
272
+ align-items: center;
273
+ justify-content: center;
274
+ text-decoration: none;
275
+ flex-shrink: 0;
276
+ cursor: pointer;
277
+
278
+ .user-close-icon {
279
+ display: none;
280
+ }
281
+ &:focus-within {
282
+ .user-close-icon {
283
+ display: block;
284
+ }
285
+ .user-avatar {
286
+ display: none;
287
+ }
288
+ .${$e} {
289
+ z-index: 200;
290
+ top: 120%;
291
+ opacity: 1;
292
+ visibility: visible;
293
+ display: initial;
294
+ &[data-type='profile'] {
295
+ ${F.mbDown} {
296
+ top: 100%;
297
+ }
298
+ }
299
+ }
300
+ .${Ne} {
301
+ display: initial;
302
+ }
303
+ }
304
+ `,Me=u.a`
305
+ display: inline-flex;
306
+ .login-btn[data-color='tertiary'][data-size='md'] {
307
+ padding-left: 12px;
308
+ padding-right: 12px;
309
+ }
310
+ .mobile-only {
311
+ ${F.mbUp} {
312
+ display: none;
313
+ }
314
+ }
315
+ .login-btn {
316
+ display: none;
317
+ ${F.mbUp} {
318
+ display: block;
319
+ }
320
+ }
321
+ `,Ae=({type:e="lead",closeIcon:t,isOpen:o=!0,onClose:i,children:n,enableAnimation:l=!0,targetAvatar:r,id:s,className:d})=>a.createElement(Pe,{"data-open":o,"data-type":e,"data-animation":l,"data-target":r,id:s,className:d},a.createElement("div",{className:"popup-content"},!!t&&a.createElement("div",{className:"close-button",onClick:i},t),n)),Te={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var He="uJQBNNg",Se="TfG3dM5",Le="aMtjFNf",Ue="cSz2RR-",ze="GyFm00F";function De({userInfo:e,onClickMyProfileButton:t,themeName:o="helloSites"}){const{t:i}=j(),l=n((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return a.createElement("div",{className:He,onClick:()=>{t&&t()}},a.createElement(ce,{className:Se,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:l,backgroundColor:"marryBaby"===o?G.mbColors.pink:G.colors.secondaryBase}),a.createElement("div",{className:Le},a.createElement("div",{className:Ue},(null==e?void 0:e.name)||(null==e?void 0:e.username)),a.createElement("div",{className:ze,style:{"--bg-hellosites":`url(${b.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${b.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},i("userProfile.nav.header.viewProfile"))))}var je="fVk18fq",Re="v8TCvUb",Oe="mx7T4V3";const Ie={myHealth:G.mbColors.toneYellow,myCommunity:G.mbColors.toneBlue,mySaved:G.mbColors.toneGreen},Fe={helloSites:{myBooking:()=>b.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>b.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>b.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>b.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>b.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>b.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>b.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>b.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>b.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},Ve=({type:e,themeName:t,className:o,onClick:i=(()=>{})})=>{const{t:l}=j(),r=n((()=>{var a,o;return(null===(o=null===(a=Fe[t])||void 0===a?void 0:a[e])||void 0===o?void 0:o.call(a))||""}),[e,t]),s=n((()=>"marryBaby"!==t?"transparent":Ie[e]),[e,t]);return a.createElement("div",{onClick:function(){i(e)},className:`${je} ${o}`},a.createElement("div",{className:Oe,style:{backgroundColor:s,backgroundImage:`url("${r}")`}}),a.createElement("h3",{className:Re},l(`userProfile.nav.card.${e}`)))};var Ge="gn6HmGG",We="FCx8FEM",Ye="zMiRxaE",Ze="lZ2Z9MQ",qe="rwm-agG",Ke="qMOscoq";const Qe=({themeName:e,locale:t,onClickItem:i})=>{const[l,r]=o(""),s=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:b.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:b.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:b.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:b.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function d(e){e.subMenu?r((t=>t?"":e.key)):i&&i(e)}return a.createElement("div",{className:Ge},s.map((e=>a.createElement(Je,{key:e.key,item:e,openKey:l,onClickItem:d,locale:t}))))},Je=({item:e,openKey:t,onClickItem:o,locale:i})=>{var n;const{t:l}=j();return(null===(n=e.disableLocale)||void 0===n?void 0:n.includes(i))?null:a.createElement("div",{className:`${We} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},a.createElement("div",{className:Ye,onClick:()=>o(e)},e.icon&&a.createElement("div",{className:Ze,style:{backgroundImage:`url("${e.icon}")`}}),l(e.key),e.subMenu&&a.createElement("div",{className:qe,style:{"--after-bg":`url(${b.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&a.createElement("div",{className:Ke},e.subMenu.map((e=>a.createElement(Je,{key:e.key,item:e,openKey:t,onClickItem:o,locale:i})))))};var Xe="-AZt1au",et="IvSIfCI",tt="eahCJov",at="XIyViFs",ot="_4y-O0w3",it="kO8iNgD",nt="a1d4E10",lt="Tdguxxf",rt="-mOxsaU",st="yPeDBNZ";const dt={helloSites:{member:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},ct=({themeName:e,rank:t="member",numberOfPosts:o=0})=>{const{t:i}=j(),l=n((()=>{var a,o;return(null===(o=null===(a=dt[e])||void 0===a?void 0:a[t])||void 0===o?void 0:o.call(a))||""}),[t,e]);return a.createElement("div",{className:ot,"data-user-rank":t},a.createElement("div",{className:it},a.createElement("div",{className:nt},a.createElement("div",{className:lt,style:{backgroundImage:`url("${l}")`}}),a.createElement("h3",{className:rt},i(`userProfile.userRank.${t}`)),o>0&&a.createElement("p",{className:st},o," ",i("userProfile.nav.header.count.posts")))))},mt="profile/posts?website_url={websiteUrl}",pt=99,gt=300,ht=400,ut=210,vt=e=>{var t,a,o,i;return e?{termId:e.term_id||null,sponsor:e.sponsor?(i=e.sponsor,i?{title:i.title,logo:i.logo,link:i.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=>vt(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?(o=e.reviewed_by,{postTitle:o.post_title,permalink:o.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}:{}},yt=e=>{var t,a;if(!e)return{};const o=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),i=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),n=e.link?e.link.startsWith("http")||o?e.link:i?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:n,subtitle:e.subtitle,title:e.title}},bt=e=>{var t,a,o,i,n;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===(o=e.object_id)||void 0===o?void 0:o.name)||"",name:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",slug:(null===(n=e.object_id)||void 0===n?void 0:n.slug)||""}:{}},ft=e=>{var t,a,o,i,n;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===(o=null==e?void 0:e.object_id)||void 0===o?void 0:o.logo)||"",description:(null===(i=e.object_id)||void 0===i?void 0:i.description)||"",slug:(null===(n=e.object_id)||void 0===n?void 0:n.slug)||""}:{}},xt=({type:e,specialtySlug:t,locale:a})=>{var o,i;return`${null===(o=te[a])||void 0===o?void 0:o.ALL}/${(null===(i=te[a])||void 0===i?void 0:i[e])||"doctor"}/${null!=t?t:""}`},wt=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}:{},Et=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},Ct=({SSO_URL:e,UP_BASEPATH:t="user",themeName:l="helloSites",cardUrls:r=Te,enableCare:s,enableTogether:d,enableEcom:c,enableMySaved:m,userInfo:p,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:u,onClickMyProfileButton:v,onClickMenuItem:y,onClickLogout:x,isUserProfileNavigatorMenuHidden:w=!1,isMyHealthEnabled:E=!1,locale:C})=>{const{t:k}=j(),[$,P]=o(h||0),_="marryBaby"===l;i((()=>{if(p&&void 0===h){const e=J("hhg_user_token");e&&fetch(N(((e,t,a,o)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+ie(mt,Object.assign(Object.assign({},o),{websiteUrl:t?"https://marrybaby.vn":`https://${f[e]}`})))(C,_,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,o;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&P((null===(o=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===o?void 0:o.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==p,h,g,_]);const M=n((()=>{let e;return e=_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?d:"myHealth"===e?E:"eCom"===e?c:"mySaved"!==e||m))}),[_,E]),A=n((()=>"marryBaby"===l?null:a.createElement(ee,{color:"tertiary",icon:a.createElement("img",{src:b.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:x,className:at},k("userProfile.nav.menu.logout"))),[l]),T=a=>{a.startsWith("http")||a.startsWith("/")?window.location.href=B(a):e&&(window.location.href=B(`${e}${t}/${a}`))},H=e=>{const t=r[e];u?u(t):T(t)};return p?a.createElement("div",{className:Xe,"data-theme":l},a.createElement(De,{userInfo:p,themeName:l,onClickMyProfileButton:()=>{v?v():T("profile")}}),a.createElement(ct,{themeName:l,rank:"member",numberOfPosts:$}),a.createElement("div",{className:et},M.map((e=>a.createElement(Ve,{className:tt,key:e,themeName:l,type:e,onClick:H})))),!w&&a.createElement(a.Fragment,null,a.createElement(Qe,{themeName:l,locale:C,onClickItem:e=>{"logout"===e.link&&x?x():e.link&&!e.subMenu&&(y?y(e.link):T(e.link))}}),A)):null},kt=({SSO_URL:e,UP_BASEPATH:t,isOpen:o,targetAvatar:i,userInfo:n,enableCare:l,enableTogether:r,enableEcom:s,enableMySaved:d,closePopup:c,siteType:m="helloSites",dispatchLogout:p,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:u=!1,togetherApiDomain:v,locale:y})=>{const b=a=>{if(a.startsWith("http"))window.location.href=B(a);else if(a.startsWith("/")){let e=window.location.origin;e.includes("id.")&&(e=Q),window.location.href=B(`${e}${a}`)}else g?g(`/${a}`):window.location.href=B(`${e}${t}/${a}`)},f=e=>{b(e),c()};return a.createElement(Ae,{isOpen:o,type:"profile",enableAnimation:!0,targetAvatar:i,onClose:c},a.createElement(Ct,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:n,enableCare:l,enableTogether:r,enableEcom:s,enableMySaved:d,onClickLogout:()=>{p&&(p(),c())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{b("profile"),c()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:u,togetherApiDomain:v,locale:y}))},$t=u.div`
322
+ background-color: white;
323
+ text-align: center;
324
+ .cancle-img {
325
+ margin-top: 24px;
326
+ ${F.mbDown} {
327
+ width: 80px;
328
+ height: 80px;
329
+ }
330
+
331
+ ${F.mbUp} {
332
+ width: 100px;
333
+ height: 100px;
334
+ }
335
+ }
336
+
337
+ h2 {
338
+ margin-top: 32px;
339
+ color: ${e=>e.theme.colors.gray800};
340
+ font-style: normal;
341
+ font-weight: bold;
342
+ ${F.mbDown} {
343
+ font-size: 24px;
344
+ line-height: 32px;
345
+ }
346
+
347
+ ${F.mbUp} {
348
+ font-size: 32px;
349
+ line-height: 42px;
350
+ }
351
+ }
352
+
353
+ p {
354
+ margin-top: 8px;
355
+ color: ${e=>e.theme.colors.gray600};
356
+ font-style: normal;
357
+ font-weight: normal;
358
+ ${F.mbDown} {
359
+ font-size: 16px;
360
+ line-height: 24px;
361
+ }
362
+
363
+ ${F.mbUp} {
364
+ font-size: 16px;
365
+ line-height: 24px;
366
+ }
367
+ }
368
+ `,Pt=u.div`
369
+ display: flex;
370
+
371
+ ${F.mbDown} {
372
+ margin-top: 24px;
373
+ }
374
+
375
+ ${F.mbUp} {
376
+ margin-top: 32px;
377
+ }
378
+ justify-content: space-around;
379
+ button {
380
+ flex: 1;
381
+ margin: 4px;
382
+ }
383
+
384
+ ${e=>"marryBaby"===e.siteType?"\n .cancel-button {\n background-color: #E55C8A;\n }\n .cancel-button:hover {\n background-color: #E55C8A !important;\n }\n .logout-button {\n border-color: #E55C8A;\n color: #E55C8A;\n }\n ":""}
385
+ `,Nt=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:o,siteType:n="helloSites"})=>{const{t:l}=j();return i((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(X,null,a.createElement(S,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:b.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement($t,null,"helloSites"===n&&a.createElement("img",{src:b.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,l("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,l("logout.popup.ask2")),a.createElement(Pt,{siteType:n},a.createElement(ee,{className:"logout-button",color:"tertiary",size:"lg",onClick:o},l("logout.popup.button.logout")),a.createElement(ee,{className:"cancel-button",color:"primary",size:"lg",onClick:t},l("logout.popup.button.cancel"))))))},Bt=({userInfo:t,siteType:n,onLoginClick:l,SSO_URL:r,currentUrl:s,isMinifyLogin:d,enableCare:c,enableTogether:m,enableEcom:p,isUserProfileNavigatorMenuHidden:u,UP_BASEPATH:f,isMyHealthEnabled:x,togetherApiDomain:w,onLogout:E,style:C,userProfileRouterPush:k,isLoading:$,locale:P,enableMySaved:B})=>{const{t:_}=j(),[M,A]=o(!1),T=(null==t?void 0:t.name)||(null==t?void 0:t.username),[H,S]=o(!1);i((()=>{S(!0)}),[]);const{containerRef:L,onContainerFocus:U,onContainerBlur:z,onButtonMouseDown:D,onClose:R}=ke();return $?a.createElement(g,{size:"sm",color:"transparent",loading:$}):(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement(_e,{ref:L,style:C,tabIndex:0,onBlur:z,onFocus:U},a.createElement("div",{onMouseDown:D},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(h,{size:40,className:"user-avatar",src:null==t?void 0:t.avatar,color:"marryBaby"===n?G.mbColors.pink:G.colors.secondaryBase,placeholderText:T&&T.length?T[0].toUpperCase():"A"})),a.createElement(kt,{UP_BASEPATH:f,SSO_URL:r,dispatchLogout:()=>{R(),A(!0)},isOpen:!1,isMyHealthEnabled:x,enableCare:c,enableTogether:m,enableEcom:p,enableMySaved:B,closePopup:R,userInfo:t,siteType:n,isUserProfileNavigatorMenuHidden:u,togetherApiDomain:w,userProfileRouterPush:k,locale:P})),a.createElement(Nt,{openLogoutPopup:M,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),A(!1)},siteType:n,onLogoutHandler:()=>e(void 0,void 0,void 0,(function*(){A(!1),document.body.classList.toggle("noscroll",!1),yield E()}))})):a.createElement(Me,{style:Object.assign({textDecoration:"none"},C),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:H?void 0:N(`${r}?returnUrl=${s}`),"data-site-type":n},d?a.createElement(Be,{onClick:l},a.createElement("img",{src:b.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===n&&(P===V.Indonesia||P===V.PhilippinesTagalog||P===V.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:b.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:l}):a.createElement(g,{className:"mobile-only",size:"sm",onClick:l,leftIcon:a.createElement(y,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},_("navigation.loginJoin"))),"marryBaby"===n&&a.createElement("div",{className:"mobile-only",onClick:l,style:{paddingLeft:16}},a.createElement(v,{size:"p3",color:G.mbColors.pink},_("navigation.loginJoin"))),a.createElement(g,{className:"login-btn",size:"md",onClick:l,leftIcon:a.createElement(y,{useCurrentColor:!0,isSolid:!0,size:22})},_("navigation.loginJoin"))))};var _t="spdlGfq",Mt="vgS16jX";const At=({onCareHeaderClick:e,currentUrl:t,careUrlFe:o,btnName:i})=>e?a.createElement(ee,{className:_t,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},i):a.createElement("a",{href:o,className:`${Mt} care-button no-replace-click`},a.createElement(ee,{className:_t,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},i));var Tt="y5VJdvw",Ht="oVhOSCy",St="pX8OXTM";const Lt=a.createContext({}),Ut=e=>{var{children:o}=e,l=t(e,["children"]);const[r,s]=a.useState((()=>l.currentUrl||`https://${"marryBaby"===l.siteType?Z[l.locale||"en-PH"]:f[l.locale||"en-PH"]}${"together"===l.projectType?"/community":"ecom"===l.projectType?"/ecom":"care"===l.projectType?"/care":""}/`));i((()=>{const e=()=>{s(window.location.href)};return window.addEventListener("popstate",e),e(),()=>{window.removeEventListener("popstate",e)}}),[]);const d=(({locale:e,projectType:t,isMobile:a,siteType:o,enableBookingBtn:i})=>n((()=>{const n=!(!a&&"profile"===t),l="discover"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===o,r="marryBaby"!==o&&"marryBaby"!==t&&x.includes(e),s=i&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==o&&w.includes(e),d="marryBaby"===t||E.includes(e),c="marryBaby"!==o&&C.includes(e),m="marryBaby"!==o&&C.includes(e);let p=_(e,"marryBaby"===o);"undefined"!=typeof window&&(p.includes("//id.")&&(p=p.replace("id.","")),p.includes("//staging-id.")&&(p=p.replace("staging-id.","discover.")));return{enableProfileNavigatorMenu:n,enableSearchBar:l,enableNavCare:r,enableNavCareBooking:s,enableNavTogether:d,enableNavEcom:c,enableProfileEcom:m,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:{HOME_PAGE_URL:p,CARE_URL_FE:`${p}/care`,TOGETHER_URL_FE:`${p}/community`,SSO_URL:M(e,"marryBaby"===o),TOGETHER_API:A(),DISCOVER_API:T(e)}}}),[e,t,a]))({locale:l.locale,projectType:l.projectType,isMobile:l.isMobile,siteType:l.siteType,enableBookingBtn:l.enableBookingBtn});return a.createElement(Lt.Provider,{value:Object.assign(Object.assign({},l),{configs:Object.assign(Object.assign({},d),l.configs),currentUrl:l.currentUrl||r})},o)};function zt({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 Dt({siteType:e,type:t,enableSearch:o,className:i}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:o?b.getAssetPath("hamburgerMenuNewWithSearch.svg"):b.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:i,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:i},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 jt=u.div`
386
+ position: fixed;
387
+ z-index: 201;
388
+ top: calc(100% + 1px); // border 1px
389
+ width: 100%;
390
+ height: calc(100vh - var(--header-bottom));
391
+ overflow-x: hidden;
392
+ overflow-y: auto;
393
+ background: white;
394
+ display: flex;
395
+ flex-direction: column;
396
+ padding-bottom: 0;
397
+ left: 0;
398
+ .hhgcomp-navigation-popupwrapper-menuwrapper {
399
+ position: unset;
400
+ }
401
+ `;u.div`
402
+ position: fixed;
403
+ bottom: 0;
404
+ left: 0;
405
+ display: flex;
406
+ width: 100%;
407
+ height: 72px;
408
+ align-items: flex-start;
409
+ justify-content: center;
410
+
411
+ background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
412
+
413
+ .button-image {
414
+ stroke-color: blue;
415
+ }
416
+
417
+ &[data-site-type='marryBaby'] {
418
+ padding: 0 16px;
419
+ .category-button {
420
+ width: 100%;
421
+ height: 48px;
422
+ }
423
+ }
424
+ `,u.div`
425
+ display: flex;
426
+
427
+ &[data-card-array-no-margin-style='true'] {
428
+ margin: 8px 0;
429
+
430
+ & > div {
431
+ width: 0;
432
+ flex: 1;
433
+ margin: 0 -1px;
434
+ }
435
+ }
436
+
437
+ &[data-card-array-no-margin-style='false'] {
438
+ margin: 8px -4px;
439
+
440
+ & > div {
441
+ flex: 1;
442
+ margin: 0 4px;
443
+ }
444
+ }
445
+ `,u.div`
446
+ margin-top: 64px;
447
+ `,u.div`
448
+ padding: 24px 0;
449
+ `,u.div`
450
+ display: flex;
451
+ width: 100%;
452
+ align-items: center;
453
+ justify-content: center;
454
+
455
+ & > div:first-child {
456
+ margin-right: 8px;
457
+ }
458
+ `,u.div`
459
+ z-index: ${ut};
460
+ align-items: center;
461
+
462
+ border: 1px solid ${e=>e.theme.colors.neutral50};
463
+ background-color: ${e=>e.theme.colors.white};
464
+ box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
465
+ 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
466
+ 0px 0px 1px rgba(0, 0, 0, 0.04);
467
+ `,u.div`
468
+ position: relative;
469
+ display: flex;
470
+ flex-wrap: wrap;
471
+ align-items: flex-start;
472
+ justify-content: flex-start;
473
+ padding: 48px 0;
474
+ `,u.div`
475
+ position: relative;
476
+ display: flex;
477
+ flex-wrap: wrap;
478
+ align-items: flex-start;
479
+ justify-content: flex-start;
480
+ &[data-disabled-divider='false'] {
481
+ border-right: 1px solid #e4e8ec;
482
+ }
483
+ `,u.div`
484
+ width: 20%;
485
+ padding-right: 16px;
486
+ margin-bottom: 12px;
487
+
488
+ & > a {
489
+ color: ${e=>e.theme.colors.gray800};
490
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
491
+ font-weight: ${e=>e.theme.sizes.fwRegular};
492
+ line-height: 22px;
493
+ }
494
+
495
+ & > a:hover {
496
+ color: ${e=>e.theme.colors.primaryBase};
497
+ }
498
+
499
+ .iconMenu {
500
+ display: flex;
501
+ align-items: center;
502
+
503
+ > .imageContainer {
504
+ display: flex;
505
+ width: 32px;
506
+ min-width: 32px;
507
+ align-items: center;
508
+ margin-right: 16px;
509
+ }
510
+ }
511
+ `,u.div`
512
+ display: none;
513
+ `,u.div`
514
+ width: 33%;
515
+ height: 48px;
516
+ padding-right: 16px;
517
+ margin-bottom: 12px;
518
+
519
+ & > a {
520
+ display: flex;
521
+ align-items: center;
522
+ color: ${e=>e.theme.colors.gray800};
523
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
524
+ font-weight: ${e=>e.theme.sizes.fwRegular};
525
+ line-height: 22px;
526
+
527
+ & > :first-child {
528
+ margin-right: 16px;
529
+ }
530
+ }
531
+
532
+ & > a > p:hover {
533
+ color: ${e=>e.theme.colors.primaryBase};
534
+ }
535
+ `,u.div`
536
+ display: flex;
537
+ align-items: center;
538
+
539
+ padding-right: 16px;
540
+ margin-bottom: 12px;
541
+ color: ${e=>e.theme.colors.primaryBase};
542
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
543
+ font-weight: ${e=>e.theme.sizes.fwBold};
544
+ line-height: 24px;
545
+
546
+ &[data-theme='marryBaby'] {
547
+ color: ${e=>e.theme.mbColors.pink};
548
+ }
549
+ `,u.div`
550
+ display: flex;
551
+ align-items: center;
552
+
553
+ margin-left: 10px;
554
+ `,u.div`
555
+ position: absolute;
556
+ top: 16px;
557
+ right: 0;
558
+ display: flex;
559
+ align-items: center;
560
+ cursor: pointer;
561
+ `,u.div`
562
+ display: block;
563
+ `,u.div`
564
+ .categories__spotlight {
565
+ display: grid;
566
+ margin: 16px;
567
+ margin-bottom: 32px;
568
+ grid-gap: 8px;
569
+ grid-template-columns: 1fr 1fr;
570
+
571
+ a {
572
+ text-decoration: none;
573
+ }
574
+ }
575
+
576
+ .categoryCard {
577
+ display: flex;
578
+ width: 100%;
579
+ flex-direction: column;
580
+ align-items: center;
581
+ padding: 16px;
582
+ border-radius: ${e=>e.theme.borderRadius};
583
+ color: ${e=>e.theme.colors.primaryBase};
584
+
585
+ svg {
586
+ margin-bottom: 4px;
587
+ }
588
+
589
+ &.active {
590
+ background: ${e=>e.theme.colors.primaryBase};
591
+ box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06),
592
+ 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
593
+ color: white;
594
+ }
595
+
596
+ &:not(.active) {
597
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04),
598
+ 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);
599
+ }
600
+ }
601
+
602
+ .amp__menu-header {
603
+ display: grid;
604
+ grid-template-columns: 1fr 1fr 1fr;
605
+
606
+ svg {
607
+ margin-left: 16px;
608
+ }
609
+
610
+ > div {
611
+ align-self: center;
612
+
613
+ &:nth-child(2) {
614
+ justify-self: center;
615
+ }
616
+ }
617
+ }
618
+
619
+ .logo {
620
+ margin: 22px 0;
621
+ }
622
+
623
+ .categories {
624
+ margin: 0 16px;
625
+
626
+ li {
627
+ display: block;
628
+ width: 100%;
629
+
630
+ + li {
631
+ border-top: 1px solid
632
+ ${e=>e.theme.colors.neutral100};
633
+ }
634
+
635
+ a {
636
+ display: block;
637
+ margin: 12px 0;
638
+ color: ${e=>e.theme.colors.gray800};
639
+ text-decoration: none;
640
+ }
641
+ }
642
+ }
643
+ `,u.div`
644
+ width: 20%;
645
+ height: 2px;
646
+
647
+ background-color: ${e=>e.theme.mbColors.pink};
648
+ border-radius: 2px;
649
+ `;const Rt=u.div`
650
+ padding: 16px;
651
+ padding-bottom: 12px;
652
+ .fake-search-input {
653
+ pointer-events: none;
654
+ input {
655
+ line-height: 20px;
656
+ padding-top: 10px;
657
+ padding-bottom: 10px;
658
+ }
659
+ }
660
+ &[data-theme='marryBaby'] {
661
+ input {
662
+ background: ${e=>e.theme.mbColors.lightGray};
663
+ border-radius: 16px;
664
+ border: none;
665
+ }
666
+ }
667
+ `,Ot=u.div`
668
+ display: block;
669
+ overflow-y: auto;
670
+ flex: 1;
671
+ padding-bottom: 16px;
672
+ &::-webkit-scrollbar {
673
+ width: 0;
674
+ display: none;
675
+ }
676
+ `,It=r((()=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"})))),Ft=()=>{const{locale:e,configs:{statics:t},siteType:o}=s(Lt),i=R(),{t:n}=j();return a.createElement(q,{className:"fake-search-input",name:"search-input-menu-service"+i,size:"md",placeholder:"marryBaby"===o?n("navigation.search.input.placeholder"):n("home.search",{site:k[e||"en-PH"]?k[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(It,null))})},Vt=u.div`
677
+ padding-right: 1rem;
678
+ margin-top: 10px;
679
+ background: #ffffff;
680
+ padding: 5px 15px;
681
+ ${F.mbUp} {
682
+ border-right: 1px solid #e4e8ec;
683
+ }
684
+ `,Gt=u.a`
685
+ padding: 10px 0;
686
+ position: relative;
687
+
688
+ display: flex;
689
+ align-items: center;
690
+ text-decoration: none;
691
+ color: ${e=>e.theme.colors.gray800};
692
+ * {
693
+ pointer-events: none;
694
+ }
695
+ p {
696
+ font-size: 16px;
697
+ font-weight: 400;
698
+ padding: 0 0.4rem;
699
+ }
700
+
701
+ &[data-theme='marryBaby']:hover {
702
+ p {
703
+ color: ${e=>e.theme.mbColors.pink};
704
+ }
705
+ .icon {
706
+ background-color: ${e=>e.theme.mbColors.lightPink};
707
+ }
708
+ }
709
+ &[data-theme='helloSite']:hover {
710
+ p {
711
+ color: ${e=>e.theme.colors.primaryActive};
712
+ }
713
+ }
714
+ a {
715
+ }
716
+
717
+ &[data-theme='marryBaby'] {
718
+ .icon {
719
+ display: flex;
720
+ align-items: center;
721
+ justify-content: center;
722
+ max-width: 40px;
723
+ width: 100%;
724
+ height: 40px;
725
+ border-radius: 50%;
726
+ background-color: ${e=>e.theme.mbColors.lightGray};
727
+ img {
728
+ border-radius: 50%;
729
+ }
730
+ }
731
+ }
732
+ `,Wt=u.div`
733
+ margin: 15px 0;
734
+ ${F.mbDown} {
735
+ display: none;
736
+ }
737
+ `,Yt=u.div`
738
+ display: flex;
739
+ position: absolute;
740
+ right: 0;
741
+ ${F.mbUp} {
742
+ display: none;
743
+ }
744
+ `,Zt=u.div`
745
+ display: flex;
746
+ align-items: center;
747
+ color: ${e=>e.theme.colors.primaryBase};
748
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
749
+ font-weight: ${e=>e.theme.sizes.fwBold};
750
+ line-height: 24px;
751
+ font-size: 14px;
752
+ font-weight: 600;
753
+ &[data-event-category] * {
754
+ pointer-events: none;
755
+ }
756
+ &[data-theme='marryBaby'] {
757
+ color: ${e=>e.theme.mbColors.pink};
758
+ }
759
+ `,qt=u.div`
760
+ display: flex;
761
+ align-items: center;
762
+ margin-left: 10px;
763
+ `,Kt=u.a`
764
+ border: 1px solid ${e=>e.theme.colors.primaryBase};
765
+ &[data-theme='marryBaby'] {
766
+ border: 1px solid ${e=>e.theme.mbColors.pink};
767
+
768
+ svg path {
769
+ stroke: ${e=>e.theme.mbColors.pink};
770
+ }
771
+ }
772
+ position: relative;
773
+ display: flex;
774
+ align-items: center;
775
+ justify-content: center;
776
+ padding: 6px;
777
+ border-radius: 5px;
778
+ margin-top: 20px;
779
+ ${F.mbDown} {
780
+ display: none;
781
+ }
782
+ `;var Qt="wnUb-dV",Jt="cjbOxWe",Xt="gB4rp89";const ea=({item:e,menu:t})=>{const{containerRef:o,onContainerFocus:i,onContainerBlur:n,onButtonMouseDown:l,onClose:r}=ke({allowBgScroll:!0}),s=le();return!e.popupType&&e.link?a.createElement(ta,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`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:Jt},"care"===e.id&&a.createElement("div",{className:Xt},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(ta,{isNew:e.isNew},a.createElement("div",{ref:o,className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:n,onFocus:i,"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:l,className:Jt},"care"===e.id&&a.createElement("a",{className:Xt,href:N(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:Qt},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:r}):null))},ta=({isNew:e,children:t})=>{const{t:o}=j();return e?a.createElement(ne,{color:"green",label:o("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},aa=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:o,onClosePopup:i,menuItems:n,headingTitle:l})=>{const{siteType:r}=s(Lt);return a.createElement(Vt,null,a.createElement(Wt,null,a.createElement(K,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},l)),null==n?void 0:n.slice(0,6).map(((e,t)=>{const n=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${o}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(Gt,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":n,"data-is-heading-category":!1,href:n},!pe(n)&&{target:"_blank"},{"data-theme":r,key:t,onClick:i}),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(ta,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(Yt,null,a.createElement("img",{src:b.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(Kt,{"data-theme":r,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(Zt,{onClick:i,"data-theme":r,"data-is-heading-category":!1},t,a.createElement(qt,null,a.createElement("img",{className:"svg",src:"marryBaby"===r?b.getAssetPath("chevronRightPink.svg"):b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))};u.div`
783
+ & > a:not(:last-child) > div {
784
+ border-bottom: 1px solid
785
+ ${e=>e.theme.colors.neutral100};
786
+ }
787
+
788
+ &[data-category-list-type='sub'] {
789
+ padding-bottom: 72px;
790
+ }
791
+
792
+ &[data-is-displayed='false'] {
793
+ display: none;
794
+ }
795
+ `;const oa=u.div`
796
+ display: grid;
797
+
798
+ grid-template-columns: repeat(3, 1fr);
799
+ gap: 24px;
800
+ margin-bottom: 3.5rem;
801
+ ${F.tdDown} {
802
+ grid-template-columns: repeat(1, 1fr);
803
+ }
804
+ `,ia=u.div`
805
+ height: 152px; // 120 + 16 * 2
806
+ position: absolute;
807
+ top: 0;
808
+ left: 0;
809
+ z-index: 3;
810
+ overflow: hidden;
811
+ border-radius: 4px;
812
+ padding: 16px;
813
+ width: 100%;
814
+
815
+ .img-container {
816
+ width: 100%;
817
+ height: 100%;
818
+ }
819
+ img {
820
+ width: 100%;
821
+ height: 100%;
822
+ display: block;
823
+ object-fit: contain;
824
+ }
825
+ ${F.tdDown} {
826
+ margin-bottom: 0;
827
+ padding: 0;
828
+ height: 100%;
829
+ position: unset;
830
+ width: 150px;
831
+ }
832
+ ${F.mbDown} {
833
+ width: 80px;
834
+ }
835
+ `,na=u.div`
836
+ background-color: #ffffff;
837
+ border-radius: 4px;
838
+ width: 100%;
839
+ height: 100%;
840
+ `,la=u.div`
841
+ display: flex;
842
+ margin-top: 1rem;
843
+ align-items: center;
844
+ color: ${e=>e.theme.colors.primaryBase};
845
+ font-weight: 400;
846
+ font-size: 14px;
847
+ text-decoration: none;
848
+ ${F.tdDown} {
849
+ display: none;
850
+ }
851
+ `,ra=u.p`
852
+ font-size: 16px;
853
+ font-weight: 600;
854
+ line-height: 1.6;
855
+ color: ${e=>e.theme.colors.gray800};
856
+ ${F.tdDown} {
857
+ padding: 0;
858
+ }
859
+ `,sa=u.p`
860
+ font-size: 14px;
861
+ line-height: 1.6;
862
+ font-weight: 400;
863
+ color: ${e=>e.theme.colors.gray600};
864
+ height: 40px;
865
+ text-overflow: ellipsis;
866
+ overflow: hidden;
867
+ display: -webkit-box;
868
+ -webkit-line-clamp: 2;
869
+ -webkit-box-orient: vertical;
870
+ margin-bottom: auto;
871
+ ${F.tdDown} {
872
+ height: unset;
873
+ padding: 0;
874
+ }
875
+ `,da="hhgcomp-navigation-menucareitem-contentwrapper",ca=Y(u.div`
876
+ display: flex;
877
+ flex-direction: column;
878
+ gap: 8px;
879
+ flex: 1;
880
+ z-index: 1;
881
+ ${F.tdDown} {
882
+ gap: 4px;
883
+ }
884
+ `,da),ma=u.a`
885
+ text-decoration: none;
886
+ border-radius: 4px;
887
+ background: ${G.colors.white};
888
+ position: relative;
889
+ overflow: hidden;
890
+ padding: 16px;
891
+ display: flex;
892
+ padding-top: 166px;
893
+ * {
894
+ pointer-events: none;
895
+ }
896
+ ${F.tdUp} {
897
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06),
898
+ 0px 0px 1px rgba(0, 0, 0, 0.04);
899
+ gap: 30px;
900
+ flex-direction: column;
901
+ a {
902
+ display: flex;
903
+ width: 100%;
904
+ }
905
+ }
906
+ ${F.tdDown} {
907
+ padding-top: 16px;
908
+ a {
909
+ display: none;
910
+ }
911
+ grid-template-columns: 2fr 1fr;
912
+ gap: 10px;
913
+ display: grid;
914
+ max-height: 110px;
915
+ display: flex;
916
+ flex-direction: row-reverse;
917
+ > .${da} {
918
+ flex: 1;
919
+ }
920
+ img {
921
+ width: 150px;
922
+ }
923
+ }
924
+ ${F.mbDown} {
925
+ box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.04),
926
+ 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
927
+ display: flex;
928
+ flex-direction: row-reverse;
929
+ img {
930
+ width: 80px;
931
+ height: 80px;
932
+ }
933
+ }
934
+ ${F.tdOnly} {
935
+ border: 1px solid ${G.colors.neutral100};
936
+ }
937
+ .bg-svg {
938
+ width: 100%;
939
+ max-width: 245px;
940
+ height: 100%;
941
+ top: 0;
942
+ right: -40px;
943
+ position: absolute;
944
+ display: inline-block;
945
+ }
946
+ `,pa=({item:e,index:t=0})=>{var o;const{t:i}=j(),{locale:n,configs:{statics:l}}=s(Lt);if(!e)return null;const r=`${l.CARE_URL_FE}/${null===(o=te[n])||void 0===o?void 0:o.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(ma,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":r},a.createElement("img",{src:b.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(ia,null,a.createElement(na,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(ca,null,a.createElement(ra,null,e.name),a.createElement(sa,null,e.description),a.createElement(la,null,i("home.seeMore"),a.createElement("img",{src:b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},ga=u.div`
947
+ padding: 16px;
948
+ border-radius: 8px;
949
+ position: relative;
950
+ z-index: 1;
951
+ overflow: hidden;
952
+ a {
953
+ text-decoration: none;
954
+ }
955
+
956
+ .bg-svg {
957
+ height: 100%;
958
+ position: absolute;
959
+ top: 0;
960
+ left: 0;
961
+ z-index: -1;
962
+ }
963
+ ${F.mbDown} {
964
+ display: block;
965
+ .bg-svg {
966
+ right: -24px;
967
+ left: unset;
968
+ top: 0;
969
+ transform: rotateY(180deg);
970
+ }
971
+ }
972
+
973
+ ${F.mbUp} {
974
+ display: grid;
975
+ grid-gap: 10px;
976
+ grid-template-columns: 1fr 3fr;
977
+ }
978
+ `,ha=u.div`
979
+ font-weight: 400;
980
+ font-size: 14px;
981
+ line-height: 24px;
982
+ color: ${e=>e.theme.colors.gray600};
983
+ margin-bottom: 15px;
984
+ `,ua=u.div`
985
+ font-weight: 600;
986
+ font-size: 16px;
987
+ line-height: 26px;
988
+ color: #000000;
989
+ margin-bottom: 4px;
990
+ `,va=u.div`
991
+ background: #fff;
992
+ padding: 5px;
993
+ display: flex;
994
+ align-items: center;
995
+ justify-content: center;
996
+ border-radius: 50px;
997
+ `,ya=u.div`
998
+ display: flex;
999
+ justify-content: center;
1000
+ align-items: center;
1001
+ position: relative;
1002
+ ${F.mbDown} {
1003
+ justify-content: end;
1004
+ min-height: 100px;
1005
+ }
1006
+ `,ba=({title:e,link:t,description:o,cta:i,icon:n})=>{const{siteType:l}=s(Lt);return a.createElement(ga,{"data-theme":l},a.createElement(ya,null,a.createElement("img",{src:"marryBaby"===l?b.getAssetPath("navMBSpotlightBgNoData.svg"):b.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(va,null,n&&a.createElement("img",{src:n,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(ua,null,e),o&&a.createElement(ha,null,o),i&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(ee,{theme:l,className:"survey-contact-submit",size:"md"},i)))))},fa=u.div`
1007
+ margin-top: 10px;
1008
+ background: #ffffff;
1009
+ padding: 5px 15px;
1010
+ position: relative;
1011
+ ${F.mbDown} {
1012
+ &:after {
1013
+ position: absolute;
1014
+ top: 0;
1015
+ left: 0;
1016
+ width: 100%;
1017
+ height: 4px;
1018
+ background-color: ${e=>e.theme.colors.neutral100};
1019
+ content: '';
1020
+ }
1021
+ }
1022
+ `,xa=u.div`
1023
+ margin: 15px 0;
1024
+ display: flex;
1025
+ `,wa=u.a`
1026
+ padding-left: 10px;
1027
+ display: flex;
1028
+ align-items: center;
1029
+ text-decoration: none;
1030
+ font-weight: 400;
1031
+ font-size: 14px;
1032
+ color: ${e=>e.theme.colors.primaryBase};
1033
+ &[data-theme='marryBaby'] {
1034
+ color: ${e=>e.theme.mbColors.pink};
1035
+ }
1036
+ img {
1037
+ padding-left: 5px;
1038
+ }
1039
+ ${F.mbDown} {
1040
+ margin-left: auto;
1041
+ }
1042
+ `,Ea=({title:e,viewMore:t,children:o,link:i,dataEventAction:n=""})=>{const{siteType:l}=s(Lt);return a.createElement(fa,null,a.createElement(xa,null,a.createElement(K,{tag:"marryBaby"===l?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(wa,{"data-event-category":"Hamburger Navigation","data-event-action":n,"data-event-label":i,href:i,"data-theme":l},t,a.createElement("img",{src:"marryBaby"===l?b.getAssetPath("chevronRightPink.svg"):b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),o)},Ca=({spotlights:e=[],hrefViewMore:t})=>{const{t:o}=j(),{siteType:i}=s(Lt);return a.createElement(Ea,{title:o("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(oa,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(pa,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(ee,{theme:i,className:"survey-contact-submit",size:"md"},o("home.navigator.menu.care.homeButton"))))):a.createElement(ba,{title:o("home.navigator.menu.care.noDatas.title"),description:o("home.navigator.menu.care.noDatas.description"),link:t,cta:o("home.navigator.menu.care.homeButton"),icon:b.getAssetPath("community.svg")}))};u.div`
1043
+ &[data-category-list-type='sub'] {
1044
+ padding-bottom: 72px;
1045
+ }
1046
+
1047
+ &[data-is-displayed='false'] {
1048
+ display: none;
1049
+ }
1050
+ `,u.div`
1051
+ & > div {
1052
+ width: 100%;
1053
+ margin-bottom: 8px;
1054
+ }
1055
+ `;const ka=u.div`
1056
+ display: grid;
1057
+
1058
+ grid-template-columns: repeat(4, 1fr);
1059
+ gap: 24px;
1060
+ ${F.tdDown} {
1061
+ gap: 12px;
1062
+ grid-template-columns: 1fr;
1063
+ }
1064
+ `,$a=u.a`
1065
+ width: 100%;
1066
+ display: flex;
1067
+ align-items: center;
1068
+ text-decoration: none;
1069
+ * {
1070
+ pointer-events: none;
1071
+ }
1072
+ `,Pa=u.div`
1073
+ border-radius: 5px;
1074
+ display: block;
1075
+ overflow: hidden;
1076
+ padding-top: 140%;
1077
+ width: 100%;
1078
+ position: relative;
1079
+ height: 0;
1080
+ img {
1081
+ position: absolute;
1082
+ width: 100%;
1083
+ height: 100%;
1084
+ display: block;
1085
+ object-fit: cover;
1086
+ top: 0;
1087
+ left: 0;
1088
+ }
1089
+ ${F.tdDown} {
1090
+ width: 72px;
1091
+ padding-top: 100px;
1092
+ }
1093
+ `,Na=u.p`
1094
+ font-size: 16px;
1095
+ font-weight: 400;
1096
+ padding: 4px 15px;
1097
+ line-height: 1.4;
1098
+ color: ${e=>e.theme.colors.gray800};
1099
+ flex: 1;
1100
+ ${F.tdUp} {
1101
+ display: none;
1102
+ }
1103
+ `,Ba=({item:e,index:t=0})=>e?a.createElement($a,{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(Pa,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(Na,null,e.title)):null,_a=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:o}=j(),{configs:{statics:i}}=s(Lt);return a.createElement(Ea,{title:o("home.navigator.menu.spotlights"),viewMore:o("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(ka,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(Ba,{key:t,index:t,item:{id:e.id,link:i.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(ba,{title:o("home.navigator.menu.category.noDatas.title"),description:o("home.navigator.menu.category.noDatas.description"),link:t,cta:o("home.navigator.menu.category.noDatas.cta"),icon:b.getAssetPath("Spotlight.svg")}))};u.div`
1104
+ & > :not(:last-child) {
1105
+ border-bottom: 1px solid
1106
+ ${e=>e.theme.colors.neutral100};
1107
+ }
1108
+
1109
+ & > div > :not(:last-child) {
1110
+ border-bottom: 1px solid
1111
+ ${e=>e.theme.colors.neutral100};
1112
+ }
1113
+
1114
+ &[data-category-list-type='sub'] {
1115
+ padding-bottom: 72px;
1116
+ }
1117
+
1118
+ &[data-is-displayed='false'] {
1119
+ display: none;
1120
+ }
1121
+ `,u.div`
1122
+ & > div {
1123
+ width: 100%;
1124
+ margin-bottom: 8px;
1125
+ }
1126
+ `;const Ma=u.div`
1127
+ display: grid;
1128
+ grid-template-columns: repeat(2, 1fr);
1129
+ grid-gap: 48px;
1130
+ ${F.tdDown} {
1131
+ grid-template-columns: 1fr;
1132
+ grid-gap: 32px;
1133
+ }
1134
+ ${F.mbDown} {
1135
+ grid-gap: 24px;
1136
+ }
1137
+ `,Aa=u.div`
1138
+ padding: 5px;
1139
+ flex: 1;
1140
+ `,Ta=u.img`
1141
+ width: 88px;
1142
+ height: 88px;
1143
+ border-radius: 4px;
1144
+ object-fit: cover;
1145
+ `,Ha=u.div`
1146
+ font-size: 12px;
1147
+ font-weight: 600;
1148
+ color: ${e=>e.theme.colors.gray800};
1149
+ text-decoration: none;
1150
+ &[data-theme='marryBaby'] {
1151
+ font-weight: 400;
1152
+ letter-spacing: -0.2px;
1153
+ }
1154
+ `,Sa=u.div`
1155
+ text-decoration: none;
1156
+ font-size: 12px;
1157
+ font-weight: 400;
1158
+ color: ${e=>e.theme.colors.primaryBase};
1159
+ &[data-theme='marryBaby'] {
1160
+ font-weight: 400;
1161
+ letter-spacing: -0.2px;
1162
+ }
1163
+ `,La=u.div`
1164
+ font-size: 12px;
1165
+ font-weight: 400;
1166
+ color: ${e=>e.theme.colors.gray600};
1167
+ `,Ua=u.div`
1168
+ font-size: 12px;
1169
+ font-weight: 400;
1170
+ color: ${e=>e.theme.colors.gray600};
1171
+ `,za=u.a`
1172
+ display: flex;
1173
+ gap: 10px;
1174
+ text-decoration: none;
1175
+ position: relative;
1176
+ &::after {
1177
+ content: '';
1178
+ display: block;
1179
+ width: 100%;
1180
+ height: 1px;
1181
+ border-top: 1px dashed
1182
+ ${e=>e.theme.colors.neutral100};
1183
+ position: absolute;
1184
+ bottom: -24px;
1185
+ ${F.tdOnly} {
1186
+ bottom: -16px;
1187
+ }
1188
+ ${F.mbDown} {
1189
+ bottom: -12px;
1190
+ }
1191
+ }
1192
+ &:last-child {
1193
+ &::after {
1194
+ display: none;
1195
+ }
1196
+ }
1197
+ ${F.tdUp} {
1198
+ &:nth-last-child(2) {
1199
+ &::after {
1200
+ display: none;
1201
+ }
1202
+ }
1203
+ }
1204
+ `,Da=u.div`
1205
+ display: flex;
1206
+ gap: 10px;
1207
+ vertical-align: middle;
1208
+ align-items: center;
1209
+ `,ja=u.div`
1210
+ margin-top: 8px;
1211
+ font-size: 16px;
1212
+ font-weight: 600;
1213
+ color: ${e=>e.theme.colors.gray800};
1214
+ &[data-theme='marryBaby'] {
1215
+ margin-top: 12px;
1216
+ font-weight: 400;
1217
+ font-size: 14px;
1218
+ line-height: 24px;
1219
+ letter-spacing: -0.2px;
1220
+ }
1221
+ `,Ra=u.div`
1222
+ display: flex;
1223
+ flex-wrap: wrap;
1224
+ align-items: center;
1225
+ column-gap: 5px;
1226
+ `,Oa=u.div`
1227
+ display: flex;
1228
+ gap: 4px;
1229
+ flex-direction: column;
1230
+ `;ae.extend(re);const Ia=({post:e,index:t=0})=>{var o,i,n,l,r,d,c;const{siteType:m,configs:{statics:p}}=s(Lt);if(!e)return null;const g=[p.TOGETHER_URL_FE,null===(o=e.community)||void 0===o?void 0:o.slug].join("/"),h=[g,e.slug].join("/"),u=e.createdAt,v=u?isNaN(new Date(u).getTime())?null:new Date(u):null,y=v?ae(v).toNow(!0):u;return a.createElement(za,{href:h,"data-event-category":"Hamburger Navigation","data-event-action":`Together Click ${t+1}`,"data-event-label":h},a.createElement(Aa,null,a.createElement(Da,null,a.createElement(L,{avatar:null===(i=e.author)||void 0===i?void 0:i.avatar,username:(null===(n=e.author)||void 0===n?void 0:n.name)||(null===(l=e.author)||void 0===l?void 0:l.username)}),a.createElement(Oa,null,a.createElement(Ha,{"data-theme":m},null===(r=e.author)||void 0===r?void 0:r.name),a.createElement(Ra,null,a.createElement(Sa,{"data-event-category":"Hamburger Navigation","data-event-action":`Topic Click ${t+1}`,"data-event-label":g,onClick:e=>{e.preventDefault(),location.href=g},"data-theme":m},null===(d=e.community)||void 0===d?void 0:d.name),a.createElement(Ua,null,"•"),a.createElement(La,{"data-theme":m},y)))),a.createElement(ja,null,e.title)),!!(null===(c=e.photos)||void 0===c?void 0:c.length)&&a.createElement(Ta,{loading:"lazy",src:e.photos[0]}))},Fa=({spotlights:e=[]})=>{const{configs:{statics:t}}=s(Lt),{t:o}=j();return a.createElement(Ea,{title:o("home.navigator.menu.trendingPosts"),viewMore:o("home.navigator.menu.trendingPosts.seeMore"),link:B(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(Ma,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(Ia,{index:t,post:e,key:e.id})))):a.createElement(ba,{title:o("home.navigator.menu.together.noPosts.title"),description:o("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:o("home.navigator.menu.together.noPosts.cta"),icon:b.getAssetPath("community.svg")}))};u.div`
1231
+ &[data-is-display='false'] {
1232
+ display: none;
1233
+ }
1234
+ `;const Va=u.div`
1235
+ display: grid;
1236
+
1237
+ grid-template-columns: repeat(3, 1fr);
1238
+ gap: 24px;
1239
+ ${F.tdDown} {
1240
+ grid-template-columns: 1fr;
1241
+ gap: 12px;
1242
+ }
1243
+ `,Ga=u.a`
1244
+ text-decoration: none;
1245
+ border-radius: 4px;
1246
+ background: ${e=>e.theme.colors.primary50};
1247
+ position: relative;
1248
+ overflow: hidden;
1249
+ display: flex;
1250
+ * {
1251
+ pointer-events: none;
1252
+ }
1253
+ .bg-svg {
1254
+ width: 245px;
1255
+ top: 0;
1256
+ right: 0;
1257
+ height: 100%;
1258
+ position: absolute;
1259
+ ${F.tdDown} {
1260
+ top: calc(51% - 68px);
1261
+ right: -8px;
1262
+ }
1263
+ }
1264
+ padding: 180px 24px 16px;
1265
+ a {
1266
+ display: flex;
1267
+ width: 100%;
1268
+ }
1269
+ ${F.tdDown} {
1270
+ padding-top: 16px;
1271
+ display: flex;
1272
+ align-items: center;
1273
+ }
1274
+ `,Wa=u.div`
1275
+ width: 64px;
1276
+ height: 64px;
1277
+ background: white;
1278
+ position: absolute;
1279
+ right: 25px;
1280
+ top: 35px;
1281
+ z-index: 3;
1282
+ border-radius: 50%;
1283
+ img {
1284
+ position: absolute;
1285
+ width: 64px;
1286
+ height: 64px;
1287
+ top: 50%;
1288
+ left: 50%;
1289
+ display: block;
1290
+ transform: translate(-50%, -50%);
1291
+ }
1292
+ ${F.tdDown} {
1293
+ position: relative;
1294
+ top: unset;
1295
+ right: unset;
1296
+ }
1297
+ `,Ya=u.div`
1298
+ display: flex;
1299
+ align-items: center;
1300
+ color: ${e=>e.theme.colors.primaryBase};
1301
+ font-weight: 400;
1302
+ font-size: 14px;
1303
+ text-decoration: none;
1304
+ `,Za=u.p`
1305
+ font-size: 16px;
1306
+ font-weight: 600;
1307
+ line-height: 1.4;
1308
+ color: ${e=>e.theme.colors.gray800};
1309
+ `,qa=u.p`
1310
+ font-size: 14px;
1311
+ line-height: 1.4;
1312
+ font-weight: 400;
1313
+ color: ${e=>e.theme.colors.gray600};
1314
+ height: 40px;
1315
+ text-overflow: ellipsis;
1316
+ overflow: hidden;
1317
+ display: -webkit-box;
1318
+ -webkit-line-clamp: 2;
1319
+ -webkit-box-orient: vertical;
1320
+ margin-bottom: auto;
1321
+ ${F.tdDown} {
1322
+ display: none;
1323
+ }
1324
+ `,Ka=u.div`
1325
+ display: flex;
1326
+ flex-direction: column;
1327
+ flex: 1;
1328
+ z-index: 1;
1329
+ ${F.tdUp} {
1330
+ gap: 8px;
1331
+ }
1332
+ ${F.tdDown} {
1333
+ gap: 4px;
1334
+ flex: 1;
1335
+ }
1336
+ `,Qa=({item:e,index:t=0})=>{const{t:o}=j(),{configs:{statics:i}}=s(Lt);if(!e)return null;const n=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(Ga,{href:n,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":n},a.createElement("img",{src:b.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Ka,null,a.createElement(Za,null,e.title),a.createElement(qa,null,e.subtitle),a.createElement(Ya,null,o("home.seeMore"),a.createElement("img",{src:b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Wa,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ja=u.a`
1337
+ text-decoration: none;
1338
+ border-radius: 12px;
1339
+
1340
+ position: relative;
1341
+ overflow: hidden;
1342
+ display: flex;
1343
+ * {
1344
+ pointer-events: none;
1345
+ }
1346
+ .bg-svg {
1347
+ top: 0;
1348
+ left: 0;
1349
+ position: absolute;
1350
+ }
1351
+
1352
+ .dot-svg {
1353
+ width: 40px;
1354
+ height: 30px;
1355
+ top: 36px;
1356
+ left: 16px;
1357
+ position: absolute;
1358
+ stroke-width: 0;
1359
+ }
1360
+
1361
+ &[data-color='pink'] {
1362
+ background: ${e=>e.theme.mbColors.tonePink};
1363
+ .bg-svg {
1364
+ fill: ${e=>e.theme.mbColors.peach};
1365
+ }
1366
+ }
1367
+ &[data-color='orange'] {
1368
+ background: ${e=>e.theme.mbColors.toneYellow};
1369
+ .bg-svg {
1370
+ fill: ${e=>e.theme.mbColors.orange};
1371
+ }
1372
+ }
1373
+ &[data-color='green'] {
1374
+ background: ${e=>e.theme.mbColors.toneGreen};
1375
+ .bg-svg {
1376
+ fill: ${e=>e.theme.mbColors.mint};
1377
+ }
1378
+ }
1379
+
1380
+ padding: 180px 24px 16px;
1381
+ a {
1382
+ display: flex;
1383
+ width: 100%;
1384
+ }
1385
+ ${F.tdDown} {
1386
+ padding-top: 16px;
1387
+ display: flex;
1388
+ align-items: flex-start;
1389
+ justify-content: flex-start;
1390
+ }
1391
+ ${F.mbDown} {
1392
+ padding-top: 0;
1393
+ padding-left: 80px;
1394
+ height: 96px;
1395
+ align-items: flex-start;
1396
+ justify-content: center;
1397
+ flex-direction: column;
1398
+ .dot-svg {
1399
+ top: 22px;
1400
+ left: 16px;
1401
+ }
1402
+ }
1403
+ ${F.tdUp} {
1404
+ min-height: 296px;
1405
+ }
1406
+ .mobile-only {
1407
+ ${F.tdUp} {
1408
+ display: none;
1409
+ }
1410
+ }
1411
+ .desktop-only {
1412
+ ${F.tdDown} {
1413
+ display: none;
1414
+ }
1415
+ }
1416
+ `,Xa=u.div`
1417
+ width: 48px;
1418
+ height: 48px;
1419
+ background: white;
1420
+ position: absolute;
1421
+ right: 25px;
1422
+ top: 35px;
1423
+ z-index: 3;
1424
+ border-radius: 50%;
1425
+ img {
1426
+ position: absolute;
1427
+ width: 36px;
1428
+ height: 36px;
1429
+ top: 50%;
1430
+ left: 50%;
1431
+ display: block;
1432
+ transform: translate(-50%, -50%);
1433
+ }
1434
+ ${F.tdDown} {
1435
+ position: relative;
1436
+ top: unset;
1437
+ right: unset;
1438
+ }
1439
+ ${F.mbDown} {
1440
+ position: absolute;
1441
+ left: 32px;
1442
+ top: 28px;
1443
+ }
1444
+ `,eo=u.div`
1445
+ display: flex;
1446
+ align-items: center;
1447
+ background: white;
1448
+ font-weight: 400;
1449
+ font-size: 14px;
1450
+ text-decoration: none;
1451
+ border-radius: 50%;
1452
+ width: 20px;
1453
+ height: 20px;
1454
+
1455
+ svg path {
1456
+ fill: ${e=>e.theme.mbColors.gray};
1457
+ }
1458
+
1459
+ ${F.tdDown} {
1460
+ background: none;
1461
+ width: 100%;
1462
+ font-weight: 400;
1463
+ font-size: 12px;
1464
+ line-height: 18px;
1465
+ color: ${e=>e.theme.mbColors.pink};
1466
+ padding-left: 16px;
1467
+ }
1468
+ `,to=u.p`
1469
+ font-weight: 600;
1470
+ font-size: 14px;
1471
+ line-height: 24px;
1472
+ letter-spacing: -0.2px;
1473
+ color: ${e=>e.theme.colors.gray800};
1474
+ `,ao=u.p`
1475
+ font-weight: 400;
1476
+ font-size: 12px;
1477
+ line-height: 18px;
1478
+ letter-spacing: -0.2px;
1479
+ color: ${e=>e.theme.colors.gray600};
1480
+ height: 54px;
1481
+ text-overflow: ellipsis;
1482
+ overflow: hidden;
1483
+ display: -webkit-box;
1484
+ -webkit-line-clamp: 3;
1485
+ -webkit-box-orient: vertical;
1486
+ margin-bottom: auto;
1487
+ ${F.tdDown} {
1488
+ display: none;
1489
+ }
1490
+ `,oo=u.div`
1491
+ display: flex;
1492
+ flex: 1;
1493
+ z-index: 1;
1494
+ align-items: flex-end;
1495
+ justify-content: flex-end;
1496
+ ${F.tdUp} {
1497
+ gap: 8px;
1498
+ flex-direction: row;
1499
+ }
1500
+
1501
+ ${F.tdDown} {
1502
+ align-items: flex-start;
1503
+ justify-content: flex-start;
1504
+ gap: 4px;
1505
+ }
1506
+ `,io=u.div`
1507
+ display: flex;
1508
+ flex-direction: column;
1509
+ flex: 1;
1510
+ z-index: 1;
1511
+ ${F.tdUp} {
1512
+ gap: 8px;
1513
+ }
1514
+ ${F.tdDown} {
1515
+ gap: 4px;
1516
+ flex: 1;
1517
+ padding-left: 16px;
1518
+ }
1519
+ `,no=u.div`
1520
+ display: flex;
1521
+ flex-direction: row;
1522
+ flex: 1;
1523
+ z-index: 1;
1524
+ ${F.tdUp} {
1525
+ gap: 8px;
1526
+ justify-content: flex-end;
1527
+ align-items: flex-end;
1528
+ }
1529
+ ${F.tdDown} {
1530
+ flex-direction: column;
1531
+ justify-content: flex-start;
1532
+ align-items: flex-start;
1533
+ }
1534
+ `,lo=({item:e,index:t=0,color:o})=>{const{t:i}=j(),{configs:{statics:n}}=s(Lt);if(!e)return null;const l=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0,r=()=>a.createElement(Xa,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),d=()=>a.createElement(no,null,a.createElement(io,null,a.createElement(to,null,e.title),a.createElement(ao,null,e.subtitle)),a.createElement(eo,null,a.createElement("div",{className:"mobile-only"},i("home.seeMore")),a.createElement("img",{src:b.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(Ja,{href:l,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":l,"data-color":o},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:b.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(oo,null,a.createElement("div",{className:"mobile-only"},r()),a.createElement("div",{className:"desktop-only"},d())),a.createElement("div",{className:"mobile-only"},d()),a.createElement("div",{className:"desktop-only"},r()))},ro=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:o}=j(),i=["pink","orange","green"],{siteType:n}=s(Lt);return a.createElement(Ea,{title:o("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement(Va,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===n?a.createElement(lo,{key:t,index:t,item:e,color:i[t]}):a.createElement(Qa,{key:t,index:t,item:e})))),0===t.length&&a.createElement(ba,{title:o("home.navigator.menu.healthTools.noDatas.title"),description:o("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:o("home.navigator.menu.healthTools.noDatas.cta"),icon:b.getAssetPath("community.svg")}))},so=({closePopup:e,menuItems:t=[]})=>{var o,i;const{siteType:n,ssrMenuContent:{categories:l,healthTools:r,care:d,together:c},activeMenuService:m,configs:{statics:p,enableSearchBar:g},locale:h}=s(Lt),{t:u}=j();return a.createElement(jt,{id:"categories-menu"},g?a.createElement(Rt,{"data-theme":n,onClick:()=>{window.location.href=`${p.HOME_PAGE_URL}/search`}},a.createElement(Ft,null)):null,a.createElement(Ot,null,a.createElement(aa,{UrlFE:p.HOME_PAGE_URL,titleBtnViewMore:u("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:u("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===m&&a.createElement(_a,{spotlightsList:(null==l?void 0:l.spotlights)||[],hrefViewMore:`${p.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===m&&a.createElement(ro,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${p.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(o=$[h])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`}),"care"===m&&a.createElement(Ca,{spotlights:null==d?void 0:d.spotlights,hrefViewMore:`${p.CARE_URL_FE}/${null===(i=te[h])||void 0===i?void 0:i.SPECIALTIES}`}),"together"===m&&a.createElement(Fa,{spotlights:null==c?void 0:c.spotlights})))},co=({type:e="home",menuItems:t})=>{const{siteType:o,configs:{enableSearchBar:i}}=s(Lt),{containerRef:n,onContainerFocus:l,onContainerBlur:r,onButtonMouseDown:d,onClose:c}=ke();return a.createElement(Ce,{mediaQueryKey:"mbDown"},a.createElement("header",{className:Tt},a.createElement("div",{className:Ht,ref:n,role:"button",tabIndex:0,onBlur:r,onFocus:l},a.createElement("div",{className:St,onMouseDown:d,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(zt,{className:"mobile-close-icon"}),a.createElement(Dt,{siteType:o,type:e,enableSearch:i,className:"mobile-hamburger-icon"})),a.createElement(so,{menuItems:t,closePopup:c}))))},mo=u.div`
1535
+ z-index: 201;
1536
+ width: 100%;
1537
+ align-items: center;
1538
+
1539
+ background-color: ${e=>e.theme.colors.white};
1540
+
1541
+ transition: height 0.3s, transform 0.3s;
1542
+
1543
+ &[data-site-type='helloSites'] {
1544
+ border-bottom: 1px solid
1545
+ ${e=>e.theme.colors.neutral100};
1546
+ }
1547
+ &[data-sponsored='true'] {
1548
+ border-bottom: none;
1549
+ }
1550
+ &[data-marry-baby-tone='pink'] {
1551
+ background-color: ${e=>e.theme.mbColors.lightPink};
1552
+ }
1553
+
1554
+ ${F.mbUp} {
1555
+ &[data-sitewide-banner-shown='true'][data-collapsed='true'] {
1556
+ transform: translateY(-64px);
1557
+ }
1558
+ }
1559
+ ${F.mbDown} {
1560
+ &[data-site-type='marryBaby'] {
1561
+ border-bottom: none;
1562
+ }
1563
+
1564
+ &[data-fixed-bar='true'] {
1565
+ position: fixed;
1566
+ transform: translateY(0);
1567
+ }
1568
+
1569
+ &[data-fixed-bar='false'] {
1570
+ position: absolute;
1571
+ }
1572
+
1573
+ &[data-collapsed='true'] {
1574
+ transform: translateY(-100%);
1575
+ transition: transform 0.5s;
1576
+ }
1577
+ &[data-collapsed='false'] {
1578
+ transform: translateY(0);
1579
+ transition: transform 0.5s;
1580
+ }
1581
+
1582
+ .top-bar-header {
1583
+ line-height: normal;
1584
+ }
1585
+
1586
+ &[data-header-type='home'] {
1587
+ z-index: ${pt};
1588
+ }
1589
+
1590
+ &[data-header-type='popup'] {
1591
+ position: absolute;
1592
+ z-index: ${gt};
1593
+ }
1594
+
1595
+ &[data-header-type='popup-sub-level'] {
1596
+ position: absolute;
1597
+ z-index: ${ht};
1598
+ }
1599
+
1600
+ &[data-is-displayed='false'] {
1601
+ //display: none;
1602
+ visibility: hidden;
1603
+ }
1604
+ }
1605
+
1606
+ .marry-baby {
1607
+ input {
1608
+ background: ${e=>e.theme.mbColors.lightGray};
1609
+ border-radius: 16px;
1610
+ border: none;
1611
+ }
1612
+ max-width: 172px;
1613
+ }
1614
+ &[data-site-type='marryBaby'] {
1615
+ .close-btn {
1616
+ top: 16px;
1617
+ right: 16px;
1618
+ }
1619
+ }
1620
+ `,po=u.div`
1621
+ display: flex;
1622
+ height: 100%;
1623
+ align-items: center;
1624
+
1625
+ justify-content: space-between;
1626
+ padding: 0 2rem;
1627
+ height: 56px;
1628
+ ${F.pcDown} {
1629
+ padding: 0 1rem;
1630
+ }
1631
+
1632
+ ${F.mbDown} {
1633
+ position: relative;
1634
+ height: 56px;
1635
+ background: white;
1636
+ gap: 2px;
1637
+ }
1638
+
1639
+ &[data-site-type='marryBaby'] {
1640
+ width: 100%;
1641
+ margin: 0 auto;
1642
+ padding: 0 16px;
1643
+ ${F.tdUp} {
1644
+ max-width: 1064px;
1645
+ }
1646
+ }
1647
+ `,go=u.div`
1648
+ display: flex;
1649
+ align-items: center;
1650
+ height: 100%;
1651
+ gap: 24px;
1652
+ ${F.pcDown} {
1653
+ flex-shrink: 0;
1654
+ gap: 16px;
1655
+ }
1656
+ ${F.pcDown} {
1657
+ gap: 12px;
1658
+ }
1659
+ &[data-site-type='marryBaby'] {
1660
+ gap: 26px;
1661
+ }
1662
+ `,ho=u.div``,uo=u.div`
1663
+ display: flex;
1664
+ align-items: center;
1665
+ height: 100%;
1666
+ flex-shrink: 0;
1667
+ /* gap: 16px; */
1668
+ ${F.tdDown} {
1669
+ flex-shrink: 0.6;
1670
+ }
1671
+ .hhgcomp-navigation-itemnav-headeritem {
1672
+ gap: 2px;
1673
+ ${F.pcUp} {
1674
+ padding: 0 10px;
1675
+ }
1676
+ ${F.pcDown} {
1677
+ padding: 0 6px;
1678
+ }
1679
+ ${F.mbDown} {
1680
+ display: none;
1681
+ }
1682
+ a {
1683
+ text-decoration: none;
1684
+ }
1685
+ }
1686
+ `;u.div`
1687
+ .fake-search-input {
1688
+ pointer-events: none;
1689
+ input {
1690
+ line-height: 20px;
1691
+ padding-top: 10px;
1692
+ padding-bottom: 10px;
1693
+ }
1694
+ }
1695
+ `;const vo=u.div`
1696
+ margin-left: 16px;
1697
+ display: flex;
1698
+ gap: 12px;
1699
+ align-items: center;
1700
+ flex-shrink: 0;
1701
+ ${F.pcDown} {
1702
+ margin-left: 8px;
1703
+ gap: 8px;
1704
+ }
1705
+ ${F.mbDown} {
1706
+ margin-left: 0;
1707
+ gap: 10px;
1708
+ }
1709
+ `,yo=u.div`
1710
+ display: flex;
1711
+ align-items: center;
1712
+ height: 100%;
1713
+ &[data-site-type='marryBaby'] {
1714
+ gap: 26px;
1715
+ }
1716
+ `;var bo="q3nL5cp",fo="_2DNf80G",xo="Q-glX-n";const wo=({onClosePopup:e})=>a.createElement("div",{className:`${xo} 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"}))),Eo=({onClosePopup:e,isDisplay:t,children:o,isNavMenu:i,hideCloseBtn:n})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!i},a.createElement(se,null,!n&&a.createElement("div",{className:fo},a.createElement(wo,{onClosePopup:e})),a.createElement(se,{className:bo},o))),Co=({careSpecialties:e=[],isOpen:t,onClose:o,spotlights:i=[]})=>{var n;const{t:l}=j(),{locale:r,configs:{statics:d}}=s(Lt);return a.createElement(Eo,{onClosePopup:o,isDisplay:t,isNavMenu:!0},a.createElement(aa,{headingTitle:l("home.navigator.menuItem.specialties"),hrefViewMore:`${d.CARE_URL_FE}/`,UrlFE:d.CARE_URL_FE,onClosePopup:o,titleBtnViewMore:l("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:xt({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(Ca,{spotlights:i,hrefViewMore:`${d.CARE_URL_FE}/${null===(n=te[r])||void 0===n?void 0:n.SPECIALTIES}/`}))},ko=({categories:e=[],spotlightsList:t=[],onClose:o,isOpen:i})=>{const{t:n}=j(),{locale:l,configs:{statics:r}}=s(Lt);return a.createElement(Eo,{onClosePopup:o,isDisplay:i,isNavMenu:!0},a.createElement(aa,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:o,titleBtnViewMore:n("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:n("home.navigator.menuItem.healthCategories")}),a.createElement(_a,{spotlightsList:t,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/spotlight/`}))},$o=({communities:e=[],onClose:t,isOpen:o,spotlights:i=[]})=>{const{t:n}=j(),{configs:{statics:l}}=s(Lt);return a.createElement(Eo,{onClosePopup:t,isDisplay:o,isNavMenu:!0},a.createElement(aa,{hrefViewMore:B(l.TOGETHER_URL_FE),UrlFE:N(l.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:n("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:n("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(Fa,{spotlights:i}))},Po=({locale:e,onClose:t,isOpen:o,spotlightHealthTools:i=[],healthTools:n=[]})=>{var l;const{t:r}=j(),{configs:{statics:d}}=s(Lt),c=`${d.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(l=$[e])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`;return a.createElement(Eo,{onClosePopup:t,isDisplay:o,isNavMenu:!0},a.createElement(aa,{hrefViewMore:c,UrlFE:d.HOME_PAGE_URL,onClosePopup:t,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:n.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${d.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(ro,{spotlightHealthTools:i,hrefViewMore:c}))},No=({onTopBarAppears:e,type:t="home",languageMenu:n,menuItems:r})=>{var c;const{siteType:m,isMobile:p=!1,locale:g,sitewideBanner:h,sitewideBannerShown:u=!0,sponsorComponent:v,onBookingClick:y,currentUrl:f,onLoginClick:x,configs:{statics:w,enableNavCareBooking:E,enableSearchBar:C,enableNavCare:$,enableProfileMyHealth:_,enableProfileMySaved:M,enableNavTogether:A,enableProfileEcom:T,enableProfileNavigatorMenu:H},userState:{userInfo:S},onLogout:L,userProfileRouterPush:U,isUserLoading:z}=s(Lt),{t:R}=j(),{SSO_URL:I,HOME_PAGE_URL:F}=w,V=!!v,[G,W]=o(!1),Y=l(47),Z=l(null),q=l(!1),K="helloSites"===m?null===(c=k[g])||void 0===c?void 0:c.LOGO_TYPE:m,Q="undefined"!=typeof window,J=d(O((()=>{if("home"===t&&Q){if(!Z.current)return;const e=Z.current.getBoundingClientRect();e.top<=0&&window.scrollY>Y.current&&window.scrollY>e.height+20&&!q.current&&(q.current=!0,W(!0)),window.scrollY<Y.current&&q.current&&(q.current=!1,W(!1)),window.scrollY>=0&&(Y.current=window.scrollY)}}),200),[]);i((()=>{null==e||e(!G)}),[G]),i((()=>(window.addEventListener("scroll",J,{passive:!0}),()=>{window.removeEventListener("scroll",J)})),[]),i((()=>{p&&J()}),[p]);const X=u&&!!h;return a.createElement(mo,{"data-site-type":m,"data-sponsored":V,"data-sitewide-banner-shown":X,"data-header-type":t,"data-collapsed":G,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:Z},h,a.createElement(po,{"data-site-type":m},a.createElement(go,{"data-site-type":m},a.createElement(co,{menuItems:r,type:t}),a.createElement("a",{style:{flexShrink:0},href:F},a.createElement(ho,null,a.createElement(D,{style:{display:"flex"},type:K,badge:"id-ID"===g&&a.createElement("img",{src:b.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===m?a.createElement(_o,{menuItems:r}):C&&a.createElement(Bo,{siteType:m})),a.createElement(uo,{"data-site-type":m},"marryBaby"===m?C&&a.createElement(Bo,{siteType:m}):a.createElement(_o,{menuItems:r}),a.createElement(vo,null,E&&a.createElement(Ce,{mediaQueryKey:"mbUp"},a.createElement(At,{careUrlFe:w.CARE_URL_FE,currentUrl:f,btnName:R("login.booking"),onCareHeaderClick:y})),n,a.createElement(Bt,{userInfo:S,siteType:m,onLoginClick:x||(()=>{const e=window.location.href;window.location.href=I?N(`${I}?returnUrl=${e}`):e}),SSO_URL:B(w.SSO_URL),currentUrl:f,onLogout:L,UP_BASEPATH:P,isMyHealthEnabled:_,enableCare:$,enableTogether:A,enableEcom:T,enableMySaved:M,togetherApiDomain:B(w.TOGETHER_API),isUserProfileNavigatorMenuHidden:!H,userProfileRouterPush:U,isLoading:z,locale:g})))),v?a.isValidElement(v)?a.cloneElement(v,{isCollapsed:G,locale:g,isMobile:p}):v:null)},Bo=({siteType:e})=>a.createElement(Ce,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(Ft,null)),_o=({menuItems:e})=>{const{siteType:t,locale:o,ssrMenuContent:{categories:i,healthTools:n,care:l,together:r}}=s(Lt);return a.createElement(Ce,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement(yo,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(ea,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(ko,{categories:null==i?void 0:i.items,spotlightsList:null==i?void 0:i.spotlights}):"tools"===e.popupType?a.createElement(Po,{locale:o,healthTools:null==n?void 0:n.items,spotlightHealthTools:null==n?void 0:n.spotlights}):"together"===e.popupType?a.createElement($o,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?a.createElement(Co,{careSpecialties:null==l?void 0:l.items,spotlights:null==l?void 0:l.spotlights}):null})))))},Mo=u.div`
1717
+ --header-z-index: 305;
1718
+ top: 0;
1719
+ z-index: var(--header-z-index);
1720
+
1721
+ ${F.mbDown} {
1722
+ width: 100vw;
1723
+ max-width: 100%;
1724
+ }
1725
+ --amp-site-wide-closed: 2px;
1726
+
1727
+ -webkit-transform: translateZ(0);
1728
+ position: sticky;
1729
+
1730
+ &.nav-open {
1731
+ margin-top: 64px;
1732
+ }
1733
+
1734
+ &:not(.nav-open) {
1735
+ --amp-site-wide-closed: 66px;
1736
+ }
1737
+ pointer-events: none;
1738
+ > section * {
1739
+ pointer-events: auto;
1740
+ }
1741
+ `;u.div`
1742
+ display: flex;
1743
+ align-items: center;
1744
+ gap: 8px;
1745
+ `,u.a`
1746
+ &[data-is-active='true'] {
1747
+ color: unset;
1748
+ }
1749
+ font-size: 14px;
1750
+ font-weight: 700;
1751
+ line-height: 22px;
1752
+ text-decoration: none;
1753
+ `;const Ao=e=>{var t,r;const{isMobile:c,locale:m,onTopBarAppears:p,languageOptions:g,sponsorComponent:h,sitewideBanner:u,sitewideBannerShown:v,className:y}=e,f=(()=>{const{t:e}=j(),{siteType:t,locale:a,configs:{enableNavDiscover:o,enableNavHealthTools:i,enableNavCare:l,enableNavTogether:r,enableNavEcom:d,statics:c}}=s(Lt),m="marryBaby"===t;return n((()=>{var t;const n=[];return o&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${c.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:m?b.getAssetPath("categories-mb.svg"):b.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${c.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=$[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:m?b.getAssetPath("healthtools-mb.svg"):b.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:N(c.TOGETHER_URL_FE+"/"),thumbnail:m?b.getAssetPath("community-mb.svg"):b.getAssetPath("nav-icons/community.svg"),popupType:"together"}),d&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:N(c.HOME_PAGE_URL+"/shop"),thumbnail:b.getAssetPath("nav-icons/shop.svg"),popupType:null}),l&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:N("ms-MY"===a?c.HOME_PAGE_URL+"/care/current-location/hospital/":c.HOME_PAGE_URL+"/care"),thumbnail:b.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),n}),[a,l,r,d])})();(()=>{const{isFirstLogin:e,userState:t}=s(Lt),{userInfo:a}=t;i((()=>{(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 x=v&&!!u,w=!!h,E=!!(null===(r=null===(t=null==h?void 0:h.props)||void 0===t?void 0:t.sponsoredBy)||void 0===r?void 0:r.length),{headerRef:C,defaultHeaderHeight:k,headerHeight:P,headerBottom:B}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:r})=>{const s=l(null),[c,m]=o(0),[p,g]=o(64),h=d(oe((()=>{var e,t,a,o;const i=(null===(e=s.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=s.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=i+200&&(m(i),g((null===(o=s.current)||void 0===o?void 0:o.getBoundingClientRect().bottom)||c))}),200),[]);i((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),i((()=>{h()}),[r,a,t,e,s.current]);const u=n((()=>{let o=56;return a&&(o+=64),t&&(o+=40,e&&(o+=57)),o}),[r,a,e,t]);return{defaultHeaderHeight:u,headerHeight:c||u,headerBottom:p,headerRef:s}})({isShowingSiteWideBanner:x,isSponsored:w,hasSponsoredBanners:E,isMobile:c});return a.createElement(Mo,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":B+"px"},className:y},a.createElement("section",{ref:C},a.createElement(No,{menuItems:f,type:"home",onTopBarAppears:p,languageMenu:a.createElement(xe,{languageOptions:g,locale:m})})))},To=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(Ut,Object.assign({},t),a.createElement(Ao,Object.assign({},t)))},Ho=t=>e(void 0,void 0,void 0,(function*(){var e,a,o,i,n,l,r,s,d,c,m,p,g,h,u,v,y,b,w,C,k,$,P;const B={},_="vi-VN_MB"===t;try{const M="tl-PH"===t?"lang=fil":"";try{const[m,p,g,h]=yield Promise.all([fetch(N(`${T(t)}/wp-json/api/categories${M?"?"+M:""}`)).then((e=>e.json())),fetch(N(`${T(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${M?"&"+M:""}`)).then((e=>e.json())),fetch(N(`${T(t)}/wp-json/api/${_?"health-tools":"healthtools"}${M?"?"+M:""}`)).then((e=>e.json())),fetch(N(`${T(t)}/wp-json/api/${_?"health-tools":"healthtools"}/favorites${M?"?"+M:""}`)).then((e=>e.json()))]);B.categories={items:(null===(a=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,vt))||[],spotlights:(null===(l=null===(n=null===(i=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.articles)||void 0===i?void 0:i.map)||void 0===n?void 0:n.call(i,wt))||void 0===l?void 0:l.filter(Et))||[]},B.healthTools={items:(null===(s=null===(r=null==g?void 0:g.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,yt))||[],spotlights:(null===(c=null===(d=null==h?void 0:h.data)||void 0===d?void 0:d.map)||void 0===c?void 0:c.call(d,yt))||[]}}catch(e){}if(_||E.includes(t))try{const[e,a]=yield Promise.all([fetch(N(`${A()}/api/v1/community?website_url=https://${f[t]}`)).then((e=>e.json())),fetch(N(`${A()}/api/v1/options?website_url=https://${f[t]}&meta_key=popular_post`)).then((e=>e.json()))]);B.together={items:(null===(g=null===(p=null===(m=null==e?void 0:e.data)||void 0===m?void 0:m.communities)||void 0===p?void 0:p.map)||void 0===g?void 0:g.call(p,U))||[],spotlights:(null===(v=null===(u=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===u?void 0:u.map)||void 0===v?void 0:v.call(u,z))||[]}}catch(e){}if(x.includes(t))try{const[e,a]=yield Promise.all([fetch(N(H()+`/api/options/setting_menu?site=${f[t]}&type=0`)).then((e=>e.json())),fetch(N(H()+`/api/options/setting_menu?site=${f[t]}&type=1`)).then((e=>e.json()))]);B.care={items:(null===(C=null===(w=null===(b=null===(y=null==e?void 0:e._data)||void 0===y?void 0:y.setting_menu)||void 0===b?void 0:b.menu_specialty)||void 0===w?void 0:w.map)||void 0===C?void 0:C.call(w,bt))||[],spotlights:(null===(P=null===($=null===(k=null==a?void 0:a._data.setting_menu)||void 0===k?void 0:k.menu_hospital)||void 0===$?void 0:$.map)||void 0===P?void 0:P.call($,ft))||[]}}catch(e){}}catch(e){console.error(e)}return B})),So=t=>e(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>Ho(t||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{ce as A,xe as L,To as N,kt as P,Ct as U,So as a,De as b,ct as c,Nt as d,Bt as e,Ho as g,pe as i};