@hhgtech/hhg-components 1.26.73 → 1.26.75

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 (276) hide show
  1. package/build/babyGrowth.js +8 -8
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/mantine/popover/index.d.ts +2 -2
  5. package/build/components.js +1 -1
  6. package/build/constants.js +1 -1
  7. package/build/{core-58abe73a.js → core-121d27d2.js} +1 -1
  8. package/build/{dataTransform-cc89d72d.js → dataTransform-f00337f6.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +4 -4
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/constants.js +1 -1
  15. package/build/esm/{core-78831e26.js → core-43c7ffd1.js} +1 -1
  16. package/build/esm/{dataTransform-1c8ff733.js → dataTransform-1d5a57a1.js} +1 -1
  17. package/build/esm/ecom.js +1 -1
  18. package/build/esm/{fixedBottomAdBlock-2289f247.js → fixedBottomAdBlock-39fb60ae.js} +1 -1
  19. package/build/esm/footer.js +1 -1
  20. package/build/esm/gAssets.js +1 -1
  21. package/build/esm/getDynamicHealthTool-eee0d4f7.js +1 -0
  22. package/build/esm/{getSocialList-e9cd6d91.js → getSocialList-ca2fbcca.js} +1 -1
  23. package/build/esm/hooks.js +1 -1
  24. package/build/esm/i18n.js +1 -1
  25. package/build/esm/{index-427d9690.js → index-0178ac2e.js} +1 -1
  26. package/build/esm/{index-2322501a.js → index-0f8d4769.js} +1 -1
  27. package/build/esm/{index-b55a48f3.js → index-12ffb4de.js} +1 -1
  28. package/build/esm/index-1ac12915.js +1 -0
  29. package/build/esm/{index-993bfe79.js → index-5e9ecefe.js} +1 -1
  30. package/build/esm/{index-0a507ebb.js → index-66a79cf9.js} +1 -1
  31. package/build/esm/{index-27dac1d2.js → index-6cead89b.js} +1 -1
  32. package/build/esm/{index-4306c019.js → index-707c78b0.js} +1 -1
  33. package/build/esm/index-7ee1784b.js +1 -0
  34. package/build/esm/{index-ee79c397.js → index-8fa2f8bc.js} +1 -1
  35. package/build/esm/{index-379e2e04.js → index-94122956.js} +1 -1
  36. package/build/esm/{index-09c71638.js → index-9a27c685.js} +6 -6
  37. package/build/esm/{index-e1fabe21.js → index-9ea700d1.js} +1 -1
  38. package/build/esm/{index-e9eccfd1.js → index-ac148fbd.js} +1 -1
  39. package/build/esm/{index-d91f335c.js → index-b3f8d9bb.js} +1 -1
  40. package/build/esm/{index-bd6fff6a.js → index-b3fc6e3a.js} +1 -1
  41. package/build/esm/index-bc492271.js +1 -0
  42. package/build/esm/index-bc874d31.js +1 -0
  43. package/build/esm/{index-1da35a24.js → index-bdaefff3.js} +1 -1
  44. package/build/esm/{index-660c9993.js → index-e085137d.js} +2 -2
  45. package/build/esm/{index-cac42c1a.js → index-ec58f89c.js} +1 -1
  46. package/build/esm/{index-d26ba6c1.js → index-ecaaca4c.js} +1 -1
  47. package/build/esm/{index-29a7b961.js → index-f0e811c3.js} +1 -1
  48. package/build/esm/{index-00052e33.js → index-fa007542.js} +1 -1
  49. package/build/esm/index.js +1 -1
  50. package/build/esm/{index.styled-07189132.js → index.styled-15b0117c.js} +1 -1
  51. package/build/esm/{index.styled-814e4704.js → index.styled-4d74d202.js} +1 -1
  52. package/build/esm/{index.styled-4e66a7ef.js → index.styled-53cab956.js} +1 -1
  53. package/build/esm/{index.styled-ddf38d67.js → index.styled-5bb4f023.js} +12 -12
  54. package/build/esm/lead.js +1 -1
  55. package/build/esm/mantine.js +1 -1
  56. package/build/esm/misc.js +1 -1
  57. package/build/esm/navigation.js +1 -1
  58. package/build/esm/onboarding.js +1 -1
  59. package/build/esm/pwg.js +5 -5
  60. package/build/esm/{routing-49b02ef4.js → routing-42c89d62.js} +1 -1
  61. package/build/esm/{screenSizeContext-4ba69e1d.js → screenSizeContext-b24a1650.js} +4 -4
  62. package/build/esm/together.js +1 -1
  63. package/build/esm/{translationsProvider-9f4f07c7.js → translationsProvider-b3a535f9.js} +1 -1
  64. package/build/esm/{types-cbc770f2.js → types-13364962.js} +1 -1
  65. package/build/esm/{types-5dd64b84.js → types-7ca455fe.js} +119 -119
  66. package/build/esm/types.js +1 -1
  67. package/build/esm/useHealthToolCache-82eec0d7.js +1 -0
  68. package/build/esm/{useRafState-a821a326.js → useRafState-059143ae.js} +1 -1
  69. package/build/esm/useTranslations-d6993743.js +1 -0
  70. package/build/esm/{utils-811a83e5.js → utils-a77f458d.js} +6 -6
  71. package/build/esm/vaccination.js +5 -5
  72. package/build/fixedBottomAdBlock-45628670.js +1 -0
  73. package/build/footer.js +1 -1
  74. package/build/gAssets.js +1 -1
  75. package/build/{getDynamicHealthTool-3940077b.js → getDynamicHealthTool-06643783.js} +1 -1
  76. package/build/{getSocialList-9db8b91d.js → getSocialList-e22c0455.js} +1 -1
  77. package/build/hooks.js +1 -1
  78. package/build/i18n.js +1 -1
  79. package/build/{index-90898016.js → index-087fa50c.js} +1 -1
  80. package/build/index-0e2160aa.js +1 -0
  81. package/build/index-11951bbb.js +1 -0
  82. package/build/{index-6cf880e2.js → index-2afb035b.js} +1 -1
  83. package/build/index-51f5060c.js +1 -0
  84. package/build/{index-1ee1be98.js → index-557c7f2f.js} +1 -1
  85. package/build/{index-f9f1c50a.js → index-5a1fc6c2.js} +1 -1
  86. package/build/{index-5067e711.js → index-5ab62ddb.js} +1 -1
  87. package/build/{index-3cf07d72.js → index-5faeea84.js} +1 -1
  88. package/build/{index-c859c654.js → index-62edeaa4.js} +1 -1
  89. package/build/{index-baa581f9.js → index-645f98e4.js} +1 -1
  90. package/build/{index-2927bfec.js → index-66e9ad2e.js} +3 -3
  91. package/build/{index-7d4a45a0.js → index-6a585a67.js} +1 -1
  92. package/build/{index-f5c74425.js → index-6cd875e2.js} +1 -1
  93. package/build/{index-df593bbc.js → index-7ce035ad.js} +1 -1
  94. package/build/{index-b2a58c46.js → index-8ee1d88f.js} +1 -1
  95. package/build/{index-901a6560.js → index-9bd44e26.js} +1 -1
  96. package/build/{index-3d9e18ef.js → index-b2553514.js} +1 -1
  97. package/build/{index-6817b5d7.js → index-b32f8a1f.js} +1 -1
  98. package/build/{index-985b6ac6.js → index-c7e39094.js} +1 -1
  99. package/build/{index-da41cb71.js → index-d01b707a.js} +1 -1
  100. package/build/{index-b44ec8c0.js → index-d03a8411.js} +1 -1
  101. package/build/{index-7609dab9.js → index-db8fa0b8.js} +1 -1
  102. package/build/index-df75e1a0.js +1 -0
  103. package/build/index.js +1 -1
  104. package/build/index.styled-23cbe1f7.js +50 -0
  105. package/build/{index.styled-5e35b4ce.js → index.styled-2dcdfb8a.js} +1 -1
  106. package/build/{index.styled-75d8a80f.js → index.styled-c1c892a9.js} +1 -1
  107. package/build/{index.styled-27887426.js → index.styled-e906813d.js} +1 -1
  108. package/build/interfaces/constants/index.d.ts +3 -0
  109. package/build/lead.js +1 -1
  110. package/build/mantine.js +1 -1
  111. package/build/misc.js +1 -1
  112. package/build/navigation.js +1 -1
  113. package/build/onboarding.js +1 -1
  114. package/build/pwg.js +1 -1
  115. package/build/{routing-b871530b.js → routing-ee02c91d.js} +1 -1
  116. package/build/{screenSizeContext-798a1742.js → screenSizeContext-5b0e10ce.js} +1 -1
  117. package/build/together/interfaces/types.d.ts +2 -0
  118. package/build/together.js +1 -1
  119. package/build/{translationsProvider-dc53208d.js → translationsProvider-57fa0fa9.js} +1 -1
  120. package/build/{types-352a87c0.js → types-d3fe3354.js} +37 -37
  121. package/build/{types-da15ca5e.js → types-f07de01e.js} +78 -78
  122. package/build/types.js +1 -1
  123. package/build/useHealthToolCache-2c3284da.js +1 -0
  124. package/build/{useRafState-d2093ab3.js → useRafState-88a85a93.js} +1 -1
  125. package/build/{useTranslations-f990381a.js → useTranslations-cf4bbc9f.js} +1 -1
  126. package/build/{utils-e21fba9c.js → utils-52be70dd.js} +3 -3
  127. package/build/vaccination.js +3 -3
  128. package/package.json +1 -1
  129. package/build/esm/getDynamicHealthTool-90793ba5.js +0 -1
  130. package/build/esm/index-18ad34a3.js +0 -1
  131. package/build/esm/index-5124a84f.js +0 -1
  132. package/build/esm/index-6bf13551.js +0 -1
  133. package/build/esm/index-e2b6628b.js +0 -1
  134. package/build/esm/useHealthToolCache-5e949049.js +0 -1
  135. package/build/esm/useTranslations-5d864a21.js +0 -1
  136. package/build/fixedBottomAdBlock-b0496596.js +0 -1
  137. package/build/index-5be31d81.js +0 -1
  138. package/build/index-84241083.js +0 -1
  139. package/build/index-bf6f99ad.js +0 -1
  140. package/build/index-e7cd9b61.js +0 -1
  141. package/build/index.styled-f5149bf5.js +0 -50
  142. package/build/useHealthToolCache-eacc0d4b.js +0 -1
  143. /package/build/{BMI_BOYS.percentile.monthly-6916b482.js → BMI_BOYS.percentile.monthly-fb6518e3.js} +0 -0
  144. /package/build/{BMI_BOYS.percentile.weekly-264f0d68.js → BMI_BOYS.percentile.weekly-bd83d38c.js} +0 -0
  145. /package/build/{BMI_BOYS.percentile.yearly-09dd1a3b.js → BMI_BOYS.percentile.yearly-e53854b4.js} +0 -0
  146. /package/build/{BMI_BOYS.zscore.monthly-b37c78c6.js → BMI_BOYS.zscore.monthly-720c0634.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.weekly-ca9e3e33.js → BMI_BOYS.zscore.weekly-c9a1a4f7.js} +0 -0
  148. /package/build/{BMI_BOYS.zscore.yearly-71ddc992.js → BMI_BOYS.zscore.yearly-f3cc86e9.js} +0 -0
  149. /package/build/{BMI_GIRLS.percentile.monthly-6d9a39d4.js → BMI_GIRLS.percentile.monthly-37449fb4.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.weekly-43cf5db5.js → BMI_GIRLS.percentile.weekly-ec9710c8.js} +0 -0
  151. /package/build/{BMI_GIRLS.percentile.yearly-17088c48.js → BMI_GIRLS.percentile.yearly-102b6667.js} +0 -0
  152. /package/build/{BMI_GIRLS.zscore.monthly-e9fa0275.js → BMI_GIRLS.zscore.monthly-df045923.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.weekly-2157e7a1.js → BMI_GIRLS.zscore.weekly-163a9a4d.js} +0 -0
  154. /package/build/{BMI_GIRLS.zscore.yearly-c60a101a.js → BMI_GIRLS.zscore.yearly-ea38fde4.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-691894e7.js → HEAD CIRCUM_BOYS.percentile.monthly-6c856463.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-453777e8.js → HEAD CIRCUM_BOYS.percentile.weekly-4059abe1.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-0a5c8410.js → HEAD CIRCUM_BOYS.percentile.yearly-9e447c14.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e9a0e8e1.js → HEAD CIRCUM_BOYS.zscore.monthly-4da53eaa.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-1b7a4110.js → HEAD CIRCUM_BOYS.zscore.weekly-e4752e5c.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-2a9854b9.js → HEAD CIRCUM_BOYS.zscore.yearly-2973faff.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-af105b74.js → HEAD CIRCUM_GIRLS.percentile.monthly-b922444b.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1fa12191.js → HEAD CIRCUM_GIRLS.percentile.weekly-cca37095.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-40d63fb5.js → HEAD CIRCUM_GIRLS.percentile.yearly-e05ed1a9.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-7d8fdde8.js → HEAD CIRCUM_GIRLS.zscore.monthly-604cbad5.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-91fff26c.js → HEAD CIRCUM_GIRLS.zscore.weekly-29b1253a.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4f42f764.js → HEAD CIRCUM_GIRLS.zscore.yearly-f2c134db.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.percentile.monthly-70b3da74.js → HEIGHT_BOYS.percentile.monthly-a974f3fa.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.percentile.weekly-65ca22d8.js → HEIGHT_BOYS.percentile.weekly-56033698.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.yearly-00c27f61.js → HEIGHT_BOYS.percentile.yearly-5f0d789e.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.zscore.monthly-d649a610.js → HEIGHT_BOYS.zscore.monthly-b97f6d2d.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.zscore.weekly-36a74af3.js → HEIGHT_BOYS.zscore.weekly-565711e1.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.yearly-7cd6e870.js → HEIGHT_BOYS.zscore.yearly-c1c9b18c.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.percentile.monthly-1dd23262.js → HEIGHT_GIRLS.percentile.monthly-d0d935b5.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.percentile.weekly-ddb979a6.js → HEIGHT_GIRLS.percentile.weekly-88c5ea54.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.yearly-8c84cd63.js → HEIGHT_GIRLS.percentile.yearly-accec08f.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.zscore.monthly-4e247985.js → HEIGHT_GIRLS.zscore.monthly-e5ed38af.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.zscore.weekly-5c495557.js → HEIGHT_GIRLS.zscore.weekly-67033e28.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.yearly-c8642134.js → HEIGHT_GIRLS.zscore.yearly-3612811d.js} +0 -0
  179. /package/build/{Onboarding-e7188dcb.js → Onboarding-8c3ac7e0.js} +0 -0
  180. /package/build/{Visible-df340d91.js → Visible-2382e0ac.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.percentile.monthly-6c814cc3.js → WEIGHT_BOYS.percentile.monthly-da523587.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.percentile.weekly-cb49479e.js → WEIGHT_BOYS.percentile.weekly-31f7e62d.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.yearly-310ec306.js → WEIGHT_BOYS.percentile.yearly-4e56eabc.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.zscore.monthly-4de3ae44.js → WEIGHT_BOYS.zscore.monthly-2854d2cf.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.zscore.weekly-53abb5f4.js → WEIGHT_BOYS.zscore.weekly-24e8bee4.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.yearly-c8117291.js → WEIGHT_BOYS.zscore.yearly-346c066e.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.percentile.monthly-db9a7315.js → WEIGHT_GIRLS.percentile.monthly-486f80b6.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.percentile.weekly-acc04e6d.js → WEIGHT_GIRLS.percentile.weekly-8ff2837f.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.yearly-ea22f915.js → WEIGHT_GIRLS.percentile.yearly-206fe4ab.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.zscore.monthly-eb0d4641.js → WEIGHT_GIRLS.zscore.monthly-29497261.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.zscore.weekly-13d8d9df.js → WEIGHT_GIRLS.zscore.weekly-d249a7ad.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.yearly-d0c19464.js → WEIGHT_GIRLS.zscore.yearly-5913a4ad.js} +0 -0
  193. /package/build/{constants-c87791c7.js → constants-6c47d57b.js} +0 -0
  194. /package/build/{cookieHelper-d25da3c5.js → cookieHelper-57bb285e.js} +0 -0
  195. /package/build/{dataTransform-458eddd0.js → dataTransform-6cc861d6.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.percentile.monthly-5d0bddcf.js → BMI_BOYS.percentile.monthly-d09eb55c.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.weekly-f3768602.js → BMI_BOYS.percentile.weekly-a64759d6.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.percentile.yearly-ec0eb767.js → BMI_BOYS.percentile.yearly-60db2d9a.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.zscore.monthly-ae6d907e.js → BMI_BOYS.zscore.monthly-6616ae59.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.weekly-acc97bac.js → BMI_BOYS.zscore.weekly-ce00a06d.js} +0 -0
  201. /package/build/esm/{BMI_BOYS.zscore.yearly-2a460c01.js → BMI_BOYS.zscore.yearly-32b77696.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.percentile.monthly-cbdb3a1c.js → BMI_GIRLS.percentile.monthly-dcd301ee.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.weekly-38e052d0.js → BMI_GIRLS.percentile.weekly-90120a0e.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.percentile.yearly-5c5c1bad.js → BMI_GIRLS.percentile.yearly-673f0bdf.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.zscore.monthly-e25a44b5.js → BMI_GIRLS.zscore.monthly-816b60d1.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.weekly-993f2899.js → BMI_GIRLS.zscore.weekly-242b7946.js} +0 -0
  207. /package/build/esm/{BMI_GIRLS.zscore.yearly-20d1a9dc.js → BMI_GIRLS.zscore.yearly-2d347d78.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c5bde274.js → HEAD CIRCUM_BOYS.percentile.monthly-83552f3b.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-610472b1.js → HEAD CIRCUM_BOYS.percentile.weekly-33ce7009.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d47e72d1.js → HEAD CIRCUM_BOYS.percentile.yearly-ea03f1f9.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-bab70ead.js → HEAD CIRCUM_BOYS.zscore.monthly-905071ca.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-28966364.js → HEAD CIRCUM_BOYS.zscore.weekly-337e8547.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f8309fbe.js → HEAD CIRCUM_BOYS.zscore.yearly-e3cd6b0b.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-9281136e.js → HEAD CIRCUM_GIRLS.percentile.monthly-b4d208da.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-148204af.js → HEAD CIRCUM_GIRLS.percentile.weekly-eb9efcac.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-86c5d692.js → HEAD CIRCUM_GIRLS.percentile.yearly-29d6a470.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-729ddc97.js → HEAD CIRCUM_GIRLS.zscore.monthly-3f0c868f.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3379f18a.js → HEAD CIRCUM_GIRLS.zscore.weekly-dcf4c079.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-f221d72b.js → HEAD CIRCUM_GIRLS.zscore.yearly-179d0ae1.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-eb822352.js → HEIGHT_BOYS.percentile.monthly-472ae5b0.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9e74f38c.js → HEIGHT_BOYS.percentile.weekly-5508b957.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e0cb3a7b.js → HEIGHT_BOYS.percentile.yearly-29a5b046.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-2c7b0871.js → HEIGHT_BOYS.zscore.monthly-ccf2cd1e.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4a75f327.js → HEIGHT_BOYS.zscore.weekly-ca8601af.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-c76f10ca.js → HEIGHT_BOYS.zscore.yearly-a77e8af8.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c25d995b.js → HEIGHT_GIRLS.percentile.monthly-8db6521d.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-e6bd4f33.js → HEIGHT_GIRLS.percentile.weekly-e535f020.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-67f48304.js → HEIGHT_GIRLS.percentile.yearly-ecb4236e.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ec105b30.js → HEIGHT_GIRLS.zscore.monthly-ffcb790d.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b49f0d7d.js → HEIGHT_GIRLS.zscore.weekly-0c846cbb.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-438b631d.js → HEIGHT_GIRLS.zscore.yearly-e9b5d527.js} +0 -0
  232. /package/build/esm/{Onboarding-a1460ceb.js → Onboarding-dcd86c28.js} +0 -0
  233. /package/build/esm/{Visible-37ab6fd3.js → Visible-8104bfc0.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-538a29c9.js → WEIGHT_BOYS.percentile.monthly-0e904899.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-014e3915.js → WEIGHT_BOYS.percentile.weekly-bda57aa9.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1f33478e.js → WEIGHT_BOYS.percentile.yearly-241436b2.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-0e18e4fe.js → WEIGHT_BOYS.zscore.monthly-aee4d55e.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-9875ecf1.js → WEIGHT_BOYS.zscore.weekly-014be4fb.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6e4df37c.js → WEIGHT_BOYS.zscore.yearly-b3f0bb8e.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-40116841.js → WEIGHT_GIRLS.percentile.monthly-8bcc5cda.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1d424134.js → WEIGHT_GIRLS.percentile.weekly-9030ac5b.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-b37b43b7.js → WEIGHT_GIRLS.percentile.yearly-7af1b2a0.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-1c4c6c9b.js → WEIGHT_GIRLS.zscore.monthly-831be394.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-64abc976.js → WEIGHT_GIRLS.zscore.weekly-41b1b8bc.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d58502fd.js → WEIGHT_GIRLS.zscore.yearly-1d7c60db.js} +0 -0
  246. /package/build/esm/{constants-965e16a3.js → constants-6073dbe3.js} +0 -0
  247. /package/build/esm/{cookieHelper-151dc631.js → cookieHelper-34593baf.js} +0 -0
  248. /package/build/esm/{dataTransform-c065a17c.js → dataTransform-f07a0a59.js} +0 -0
  249. /package/build/esm/{index-31a0ce7b.js → index-351d6253.js} +0 -0
  250. /package/build/esm/{index-b7d9e0da.js → index-5f98755a.js} +0 -0
  251. /package/build/esm/{isProduction-60318bee.js → isProduction-6647ee09.js} +0 -0
  252. /package/build/esm/{localizeNumberFormat-9a783e7f.js → localizeNumberFormat-75f8b237.js} +0 -0
  253. /package/build/esm/{normalizeLink-39d11b46.js → normalizeLink-9e913eae.js} +0 -0
  254. /package/build/esm/{theme-23115d69.js → theme-d8fde17d.js} +0 -0
  255. /package/build/esm/{translationsContext-aae526a6.js → translationsContext-072b23b4.js} +0 -0
  256. /package/build/esm/{tslib.es6-c7baa758.js → tslib.es6-a6424d8a.js} +0 -0
  257. /package/build/esm/{types-7d094668.js → types-1bff887a.js} +0 -0
  258. /package/build/esm/{useIsInit-290802ea.js → useIsInit-349ff22c.js} +0 -0
  259. /package/build/esm/{useOutsideClick-5baed9d0.js → useOutsideClick-16bc2a17.js} +0 -0
  260. /package/build/esm/{useScrollbarSize-22d0f96f.js → useScrollbarSize-8b30e9f6.js} +0 -0
  261. /package/build/esm/{useUniqueId-8a9b3aad.js → useUniqueId-0ac0ad2c.js} +0 -0
  262. /package/build/esm/{utils-65cc3684.js → utils-b5d9375f.js} +0 -0
  263. /package/build/{index-43516e52.js → index-b23d1f51.js} +0 -0
  264. /package/build/{index-0433c750.js → index-e7bb5abc.js} +0 -0
  265. /package/build/{isProduction-8f53dcb4.js → isProduction-b3f1daee.js} +0 -0
  266. /package/build/{localizeNumberFormat-615b2b85.js → localizeNumberFormat-9e0d2e66.js} +0 -0
  267. /package/build/{normalizeLink-1c4f8b11.js → normalizeLink-502783c4.js} +0 -0
  268. /package/build/{theme-b5db0b22.js → theme-1810a3f8.js} +0 -0
  269. /package/build/{translationsContext-2a1ab5b6.js → translationsContext-25a86e0f.js} +0 -0
  270. /package/build/{tslib.es6-aef534e9.js → tslib.es6-b3e94c4c.js} +0 -0
  271. /package/build/{types-a08a20bc.js → types-d0b3983a.js} +0 -0
  272. /package/build/{useIsInit-2d0e5bc8.js → useIsInit-550cc1f5.js} +0 -0
  273. /package/build/{useOutsideClick-e4fe3d79.js → useOutsideClick-d82ffcb6.js} +0 -0
  274. /package/build/{useScrollbarSize-297c6a00.js → useScrollbarSize-d072f60a.js} +0 -0
  275. /package/build/{useUniqueId-92cea548.js → useUniqueId-c1775bab.js} +0 -0
  276. /package/build/{utils-51f2cd64.js → utils-cd8b92a2.js} +0 -0
@@ -1 +1 @@
1
- import{_ as e,a as t}from"./tslib.es6-c7baa758.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as o,useContext as r,useCallback as s}from"react";import{g as c}from"./core-78831e26.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-8a9b3aad.js";import{S as h,d as u,e as g,f as p,g as v,h as E,i as y,j as f,k as w,N as L,l as b,m as C,n as k,o as M,p as P,q as N,r as H,s as x,t as A,u as B,v as T,w as _,x as R,y as S,z as O,A as U,B as j,C as Z,E as $,F as V,I,J as F,K as D,L as z,M as G,O as W,P as q,Q as K,R as Y,V as Q,W as J,X,Y as ee,Z as te,_ as le,$ as ae,a0 as ne,a1 as ie,a2 as oe,a3 as re,a4 as se,a5 as ce,a6 as me,a7 as de,a8 as he,a9 as ue,aa as ge,ab as pe,ac as ve,ad as Ee,ae as ye,af as fe,ag as we,ah as Le,ai as be,aj as Ce,ak as ke,al as Me,am as Pe,an as Ne,ao as He,ap as xe,aq as Ae}from"./index.styled-ddf38d67.js";import{T as Be}from"./index-5124a84f.js";import{d as Te,L as _e,S as Re,U as Se,T as Oe,C as Ue}from"./index-e2b6628b.js";import{n as je,a as Ze}from"./normalizeLink-39d11b46.js";import{c as $e,b as Ve,d as Ie}from"./routing-49b02ef4.js";import{P as Fe,b as De,c as ze}from"./dataTransform-1c8ff733.js";import{L as Ge}from"./index-cac42c1a.js";import{u as We}from"./useTranslations-5d864a21.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-65cc3684.js";import{y as Ye,P as Qe,H as Je}from"./index.styled-814e4704.js";import{B as Xe}from"./index-27dac1d2.js";import{t as et}from"./theme-23115d69.js";import{g as tt}from"./cookieHelper-151dc631.js";import{Portal as lt}from"@mantine/core";import"./index-2322501a.js";import{C as at}from"./index-b55a48f3.js";import"./index.styled-4e66a7ef.js";import"./index-31a0ce7b.js";import"@mantine/dates";import"./Onboarding-a1460ceb.js";import"./index-660c9993.js";import"dayjs";import"./screenSizeContext-4ba69e1d.js";import"styled-components";import"./isProduction-60318bee.js";import"./index-bd6fff6a.js";import"@mantine/hooks";import{L as nt}from"./constants-965e16a3.js";import it from"string-format";import{I as ot}from"./index-18ad34a3.js";import rt from"lodash/debounce";import{u as st}from"./useIsInit-290802ea.js";const ct={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},mt=({type:e="square",size:t,avatarImg:i,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:m,className:d,width:h,height:u})=>{const g=t?ct[t]:void 0,[p,v]=a(!1);n((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{v(!0)}))}}),[o,v]);const E=(!o&&!i||p)&&r;return l.createElement(Ye,{style:Object.assign(Object.assign({},m),{"--size":g?g+"px":void 0,"--width-prop":h?h+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!h||!u),"data-avatar-type":e,onClick:c,className:d,avatarUrl:o,"data-custom-size":!!t},i,o&&!p&&l.createElement("img",{src:o}),E&&r)},dt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),ht=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ut=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),l.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),l.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),l.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),l.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),l.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),l.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),l.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),l.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),l.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),l.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),l.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),l.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),l.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),l.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),l.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),l.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),l.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),l.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),l.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),l.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),l.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),l.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),gt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},l.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),l.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),l.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),l.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),l.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),l.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),l.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),l.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),l.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),l.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),pt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),vt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaSquare.png")},e)),Et=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("g",{mask:`url(#${n})`},l.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),l.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},yt=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("g",{clipPath:`url(#${n})`},l.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),l.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:n},l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},ft=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),l.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),wt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),l.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),l.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),Lt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),l.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),l.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),bt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),l.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),l.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Ct=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),kt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineSquare.png")},e)),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),l.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),l.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),l.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),Nt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),l.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),Ht=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),l.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),xt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),l.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),At=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("clipPath",null,l.createElement("rect",{width:"24",height:"16",fill:"white"})),l.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),l.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Bt="pfaLGRK";const Tt=({country:e,language:t,rounded:a,height:n,width:i,isTesting:o})=>{let r,s;switch(t){case"en":r=l.createElement(gt,null),s=l.createElement(ut,null);break;case"vi":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"id":r=l.createElement(yt,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"th":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"km":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"ms":r=l.createElement(wt,null),s=l.createElement(ft,null);break;case"my":r=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"tl":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"hi":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"zh":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}if(!r&&!s)switch(e){case"VN":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"ID":r=l.createElement(yt,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"TH":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"KH":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"MY":r=l.createElement(wt,null),s=l.createElement(ft,null);break;case"MM":r=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"PH":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"IN":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"TW":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:r)},_t=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:r=!0,style:s={},showIndicator:c=!0})=>{const[d,E]=a(!1);return l.createElement(l.Fragment,null,l.createElement(h,null,l.createElement(u,{onClick:()=>E((e=>!e))},t||(null==n?void 0:n(d))||null,l.createElement(g,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>l.createElement(p,{key:t,"data-selected":r&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Be,{size:"p3"},e.label),r&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},Rt=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(_t,{options:e,selected:i.value,label:l.createElement(St,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},St=({locale:e,label:t,href:a})=>{var n,i,o;return l.createElement(E,{href:a},l.createElement(Tt,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),l.createElement("span",null,t))},Ot=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:o})=>{const[r,s]=i((()=>Ke(t)),[t]);return l.createElement(y,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},Ut=e=>{const{allowBgScroll:t}=e||{},l=o();return{containerRef:l,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur())}}},jt=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:o=!0,targetAvatar:r,id:s,className:c})=>l.createElement(f,{"data-open":a,"data-type":e,"data-animation":o,"data-target":r,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Zt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var $t="uJQBNNg",Vt="TfG3dM5",It="aMtjFNf",Ft="cSz2RR-",Dt="GyFm00F";function zt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),o=i((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return l.createElement("div",{className:$t,onClick:()=>{t&&t()}},l.createElement(mt,{className:Vt,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===a?et.mbColors.pink:et.colors.secondaryBase}),l.createElement("div",{className:It},l.createElement("div",{className:Ft},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Dt,style:{"--bg-hellosites":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Gt="gn6HmGG",Wt="FCx8FEM",qt="zMiRxaE",Kt="lZ2Z9MQ",Yt="rwm-agG",Qt="qMOscoq";const Jt=({themeName:e,locale:t,onClickItem:n})=>{const[o,r]=a(""),s=i((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:m.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:m.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?r((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:Gt},s.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:o,onClickItem:c,locale:t}))))},Xt=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:o}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Wt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:qt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:Kt,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&l.createElement("div",{className:Yt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Qt},e.subMenu.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var el="-AZt1au",tl="IvSIfCI",ll="eahCJov",al="XIyViFs",nl="_4y-O0w3",il="kO8iNgD",ol="a1d4E10",rl="Tdguxxf",sl="-mOxsaU",cl="yPeDBNZ";const ml={helloSites:{member:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},dl=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),o=i((()=>{var l,a;return(null===(a=null===(l=ml[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:nl,"data-user-rank":t},l.createElement("div",{className:il},l.createElement("div",{className:ol},l.createElement("div",{className:rl,style:{backgroundImage:`url("${o}")`}}),l.createElement("h3",{className:sl},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:cl},a," ",n("userProfile.nav.header.count.posts")))))},hl=e=>{var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>hl(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null}:{}},ul=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},gl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},pl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},vl=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=nt[l])||void 0===a?void 0:a.ALL}/${(null===(n=nt[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},El=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}:{},yl=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},fl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:o="helloSites",cardUrls:r=Zt,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:h,userInfo:u,togetherApiDomain:g,userPostsNumber:p,onClickNavigationCard:v,onClickMyProfileButton:E,onClickMenuItem:y,onClickLogout:f,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:C=!1,locale:k})=>{const{t:M}=We(),[P,N]=a(p||0),H="marryBaby"===o;n((()=>{if(u&&void 0===p){const e=tt("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+it(w.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${Te[e]}`})))(k,H,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&N((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[k,null!==u,p,g,H]);const x=i((()=>{let e;return e=H?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?C:"eCom"===e?d:"mySaved"!==e||h))}),[H,C]),A=i((()=>"marryBaby"===o?null:l.createElement(Xe,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:f,className:al},M("userProfile.nav.menu.logout"))),[o]),B=l=>{window.location.href=je(`${e}${t}/${l}`)},T=e=>{const t=r[e];v?v(t):B(t)};return u?l.createElement("div",{className:el,"data-theme":o},l.createElement(zt,{userInfo:u,themeName:o,onClickMyProfileButton:()=>{E?E():B("profile")}}),l.createElement(dl,{themeName:o,rank:"member",numberOfPosts:P}),l.createElement("div",{className:tl},x.map((e=>l.createElement(L,{className:ll,key:e,themeName:o,type:e,onClick:T})))),!b&&l.createElement(l.Fragment,null,l.createElement(Jt,{themeName:o,locale:k,onClickItem:e=>{"logout"===e.link&&f?f():e.link&&!e.subMenu&&(y?y(e.link):B(e.link))}}),A)):null},wl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:h,userProfileRouterPush:u,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p=!1,togetherApiDomain:v,locale:E})=>{const y=l=>{u?u(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},f=e=>{y(e),m()};return l.createElement(jt,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},l.createElement(fl,{SSO_URL:e,UP_BASEPATH:t,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,onClickLogout:()=>{h&&(h(),m())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{y("profile"),m()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p,togetherApiDomain:v,locale:E}))},Ll=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:o}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(lt,null,l.createElement(Fe,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:t},l.createElement(b,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),l.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,o("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Xe,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},o("logout.popup.button.logout")),l.createElement(Xe,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},bl=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:r,currentUrl:s,isMinifyLogin:c,enableCare:d,enableTogether:h,enableEcom:u,isUserProfileNavigatorMenuHidden:g,UP_BASEPATH:p,isMyHealthEnabled:v,togetherApiDomain:E,onLogout:y,style:f,userProfileRouterPush:w,isLoading:L,locale:b,enableMySaved:C})=>{const{t:N}=We(),[H,x]=a(!1),A=(null==e?void 0:e.name)||(null==e?void 0:e.username),[B,T]=a(!1);n((()=>{T(!0)}),[]);const{containerRef:_,onContainerFocus:R,onContainerBlur:S,onButtonMouseDown:O,onClose:U}=Ut();return L?l.createElement(Xe,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:_,style:f,tabIndex:0,onBlur:S,onFocus:R},l.createElement("div",{onMouseDown:O},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),l.createElement(mt,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==e?void 0:e.avatar,firstLetter:A&&A.length?A[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?et.mbColors.pink:et.colors.secondaryBase})),l.createElement(wl,{UP_BASEPATH:p,SSO_URL:r,dispatchLogout:()=>{U(),x(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,enableMySaved:C,closePopup:U,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(Ll,{openLogoutPopup:H,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),x(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){x(!1),document.body.classList.toggle("noscroll",!1),yield y()}))})):l.createElement(M,{style:Object.assign({textDecoration:"none"},f),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:B?void 0:je(`${r}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:o},l.createElement("img",{src:m.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):l.createElement(l.Fragment,null,"helloSites"===i&&l.createElement("img",{className:"mobile-only",src:m.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:o}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},l.createElement(Be,{size:"p3",color:et.mbColors.pink},N("navigation.loginJoin"))),l.createElement(Xe,{className:"login-btn",size:"md",color:"tertiary",onClick:o,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},N("navigation.loginJoin"))))};var Cl="spdlGfq",kl="vgS16jX";const Ml=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Xe,{className:Cl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):l.createElement("a",{href:a,className:`${kl} care-button no-replace-click`},l.createElement(Xe,{className:Cl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Pl="y5VJdvw",Nl="oVhOSCy",Hl="pX8OXTM";function xl({className:e}){return l.createElement("div",null,l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Al({siteType:e,type:t,enableSearch:a,className:n}){return"helloSites"===e?l.createElement("div",null,l.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?m.getAssetPath("hamburgerMenuNewWithSearch.svg"):m.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n})):l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const Bl=()=>{const{locale:e,configs:{statics:t},siteType:a}=r(N),{t:n}=We();return l.createElement(Qe,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:_e[e||"en-PH"]?_e[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:l.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},l.createElement(H,null))})};var Tl="wnUb-dV",_l="cjbOxWe";const Rl=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:r}=Ut({allowBgScroll:!0}),s=st();return!e.popupType&&e.link?l.createElement(Sl,{isNew:e.isNew},l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:_l},e.name))):l.createElement(Sl,{isNew:e.isNew},l.createElement("div",{ref:a,className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:_l},e.name,e.popupType&&l.createElement("div",{className:Tl},l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),l.isValidElement(t)?l.cloneElement(t,{onClose:r}):null))},Sl=({isNew:e,children:t})=>{const{t:a}=We();return e?l.createElement(ot,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},Ol=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:o})=>{const{siteType:s}=r(N);return l.createElement(x,null,l.createElement(A,null,l.createElement(Je,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(B,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i,"data-theme":s,key:t,onClick:n},l.createElement("div",{className:"icon"},l.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),l.createElement(Sl,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(T,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&l.createElement(_,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(R,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(S,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Ul=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:o}}=r(N);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(a=nt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(O,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},l.createElement("img",{src:m.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),l.createElement(U,null,l.createElement(j,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(Z,null,l.createElement($,null,e.name),l.createElement(V,null,e.description),l.createElement(I,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},jl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:o}=r(N);return l.createElement(F,{"data-theme":o},l.createElement(D,null,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(z,null,i&&l.createElement("img",{src:i,width:64,height:64}))),l.createElement("div",null,e&&l.createElement(G,null,e),a&&l.createElement(W,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(Xe,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},Zl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(N);return l.createElement(q,null,l.createElement(K,null,l.createElement(Je,{tag:"marryBaby"===o?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(Y,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},$l=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Zl,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(Q,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(Ul,{key:t,index:t,item:e})))):l.createElement(jl,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Vl=({item:e,index:t=0})=>e?l.createElement(J,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},l.createElement(X,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),l.createElement(ee,null,e.title)):null,Il=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=r(N);return l.createElement(Zl,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?l.createElement(te,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(Vl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(jl,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:m.getAssetPath("Spotlight.svg")}))},Fl=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(N),{t:a}=We();return l.createElement(Zl,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:Ze(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?l.createElement(le,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(ae,{index:t,post:e,key:e.id})))):l.createElement(jl,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:m.getAssetPath("community.svg")}))},Dl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=r(N);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(ne,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},l.createElement("img",{src:m.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(ie,null,l.createElement(oe,null,e.title),l.createElement(re,null,e.subtitle),l.createElement(se,null,a("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),l.createElement(ce,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},zl=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=r(N);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>l.createElement(he,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>l.createElement(ue,null,l.createElement(ge,null,l.createElement(pe,null,e.title),l.createElement(ve,null,e.subtitle)),l.createElement(Ee,null,l.createElement("div",{className:"mobile-only"},n("home.seeMore")),l.createElement("img",{src:m.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})));return l.createElement(me,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":a},l.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),l.createElement("img",{src:m.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),l.createElement(de,null,l.createElement("div",{className:"mobile-only"},s()),l.createElement("div",{className:"desktop-only"},c())),l.createElement("div",{className:"mobile-only"},c()),l.createElement("div",{className:"desktop-only"},s()))},Gl=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=r(N);return l.createElement(Zl,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&l.createElement(ye,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?l.createElement(zl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Dl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(jl,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Wl=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=r(N),{t:p}=We();return l.createElement(fe,{id:"categories-menu"},u?l.createElement(we,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},l.createElement(Bl,null)):null,l.createElement(Le,null,l.createElement(Ol,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&l.createElement(Il,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(Gl,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}${(null===(a=Re[g])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===d&&l.createElement($l,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=nt[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Fl,{spotlights:null==m?void 0:m.spotlights})))},ql=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=r(N),{containerRef:i,onContainerFocus:o,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Ut();return l.createElement(Ot,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Pl},l.createElement("div",{className:Nl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:o},l.createElement("div",{className:Hl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(xl,{className:"mobile-close-icon"}),l.createElement(Al,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Wl,{menuItems:t,closePopup:m}))))};var Kl="q3nL5cp",Yl="_2DNf80G",Ql="Q-glX-n";const Jl=({onClosePopup:e})=>l.createElement("div",{className:`${Ql} close-btn`,onClick:e},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Xl=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(at,null,!i&&l.createElement("div",{className:Yl},l.createElement(Jl,{onClosePopup:e})),l.createElement(at,{className:Kl},a))),ea=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:o}=We(),{locale:s,configs:{statics:c}}=r(N),m=`${c.CARE_URL_FE}/${null===(i=nt[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(Xl,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Ol,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:vl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement($l,{spotlights:n,hrefViewMore:m}))},ta=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:o,configs:{statics:s}}=r(N);return l.createElement(Xl,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Ol,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement(Il,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},la=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:o}}=r(N);return l.createElement(Xl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ol,{hrefViewMore:Ze(o.TOGETHER_URL_FE),UrlFE:je(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),l.createElement(Fl,{spotlights:n}))},aa=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=We(),{configs:{statics:c}}=r(N),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=Re[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return l.createElement(Xl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ol,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),l.createElement(Gl,{spotlightHealthTools:n,hrefViewMore:m}))},na=({onTopBarAppears:e,type:t="home",languageMenu:i,menuItems:c})=>{var d;const{siteType:h,isMobile:u=!1,locale:g,sitewideBanner:p,sitewideBannerShown:v=!0,sponsorComponent:E,onBookingClick:y,currentUrl:f,onLoginClick:w,configs:{statics:L,enableNavCareBooking:b,enableSearchBar:C,enableNavCare:k,enableProfileMyHealth:M,enableProfileMySaved:P,enableNavTogether:H,enableProfileEcom:x,enableProfileNavigatorMenu:A},userState:{userInfo:B},onLogout:T,userProfileRouterPush:_,isUserLoading:R}=r(N),{t:S}=We(),{SSO_URL:O,HOME_PAGE_URL:U}=L,j=!!E,[Z,$]=a(!1),V=o(47),I=o(null),F=o(!1),D="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,z="undefined"!=typeof window,G=s(qe((()=>{if("home"===t&&z){if(!I.current)return;const e=I.current.getBoundingClientRect();e.top<=0&&window.scrollY>V.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,$(!0)),window.scrollY<V.current&&F.current&&(F.current=!1,$(!1)),window.scrollY>=0&&(V.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!Z)}),[Z]),n((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),n((()=>{u&&G()}),[u]);const W=v&&!!p;return l.createElement(be,{"data-site-type":h,"data-sponsored":j,"data-sitewide-banner-shown":W,"data-header-type":t,"data-collapsed":Z,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:I},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(ql,{menuItems:c,type:t}),l.createElement("a",{href:U},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:D,badge:"id-ID"===g&&l.createElement("img",{src:m.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===h?l.createElement(oa,{menuItems:c}):C&&l.createElement(ia,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(ia,{siteType:h}):l.createElement(oa,{menuItems:c}),l.createElement(Ne,null,b&&l.createElement(Ot,{mediaQueryKey:"mbUp"},l.createElement(Ml,{careUrlFe:L.CARE_URL_FE,currentUrl:f,btnName:S("login.booking"),onCareHeaderClick:y})),i,l.createElement(bl,{userInfo:B,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(L.SSO_URL),currentUrl:f,onLogout:T,UP_BASEPATH:Se,isMyHealthEnabled:M,enableCare:k,enableTogether:H,enableEcom:x,enableMySaved:P,togetherApiDomain:Ze(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:_,isLoading:R,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:Z,locale:g,isMobile:u}):E:null)},ia=({siteType:e})=>l.createElement(Ot,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Bl,null)),oa=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(N);return l.createElement(Ot,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(He,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Rl,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(ta,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(aa,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(la,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(ea,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},ra=e=>{var t,c;const{isMobile:d,locale:h,onTopBarAppears:u,languageOptions:g,sponsorComponent:p,sitewideBanner:v,sitewideBannerShown:E,className:y}=e,f=(()=>{const{t:e}=We(),{siteType:t,locale:l,configs:{enableNavDiscover:a,enableNavHealthTools:n,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:d}}=r(N),h="marryBaby"===t;return i((()=>{var t;const i=[];return a&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:h?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),n&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),o&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(d.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),s&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(d.TOGETHER_URL_FE+"/"),thumbnail:h?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(d.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null,isNew:!0}),i}),[l,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(N),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,L=!!p,b=!!(null===(c=null===(t=null==p?void 0:p.props)||void 0===t?void 0:t.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:C,defaultHeaderHeight:k,headerHeight:M,headerBottom:P}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:l,isMobile:r})=>{const c=o(null),[m,d]=a(0),[h,u]=a(64),g=s(rt((()=>{var e,t,l,a;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),u((null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||m))}),200),[]);n((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),n((()=>{g()}),[r,l,t,e,c.current]);const p=i((()=>{let a=r?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:L,hasSponsoredBanners:b,isMobile:d});return l.createElement(Ae,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${M}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":P+"px"},className:y},l.createElement("section",{ref:C},l.createElement(na,{menuItems:f,type:"home",onTopBarAppears:u,languageMenu:l.createElement(Rt,{languageOptions:g,locale:h})})))},sa=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return l.createElement(xe,Object.assign({},t),l.createElement(ra,Object.assign({},t)))},ca=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,o,r,s,c,m,d,h,u,g,p,v,E,y,f,w,L;const b={},C="vi-VN_MB"===e;try{const k="tl-PH"===e?"lang=fil":"";try{const[d,h,u,g]=yield Promise.all([fetch(je(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${k?"&"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}/favorites${k?"?"+k:""}`)).then((e=>e.json()))]);b.categories={items:(null===(l=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,hl))||[],spotlights:(null===(o=null===(i=null===(n=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,El))||void 0===o?void 0:o.filter(yl))||[]},b.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,ul))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,ul))||[]}}catch(e){}if(C||Oe.includes(e))try{const[t,l]=yield Promise.all([fetch(je(`${Ve()}/api/v1/community?website_url=https://${Te[e]}`)).then((e=>e.json())),fetch(je(`${Ve()}/api/v1/options?website_url=https://${Te[e]}&meta_key=popular_post`)).then((e=>e.json()))]);b.together={items:(null===(u=null===(h=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===h?void 0:h.map)||void 0===u?void 0:u.call(h,De))||[],spotlights:(null===(v=null===(p=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.posts)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,ze))||[]}}catch(e){}if(Ue.includes(e))try{const[t,l]=yield Promise.all([fetch(je(Ie()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Ie()+`/api/search/?site=${Te[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);b.care={items:(null===(f=null===(y=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===y?void 0:y.map)||void 0===f?void 0:f.call(y,gl))||[],spotlights:(null===(L=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===L?void 0:L.call(w,pl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),ma=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>ca(e||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));export{mt as A,Tt as F,Rt as L,sa as N,wl as P,fl as U,ma as a,zt as b,dl as c,Ll as d,bl as e,ca as g};
1
+ import{_ as e,a as t}from"./tslib.es6-a6424d8a.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as o,useContext as r,useCallback as s}from"react";import{g as c}from"./core-43c7ffd1.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-0ac0ad2c.js";import{S as h,d as u,e as g,f as p,g as v,h as E,i as f,j as y,k as w,N as L,l as b,m as C,n as k,o as M,p as P,q as N,r as H,s as x,t as A,u as B,v as T,w as _,x as R,y as S,z as O,A as U,B as j,C as Z,E as $,F as V,I,J as F,K as D,L as z,M as G,O as W,P as q,Q as K,R as Y,V as Q,W as J,X,Y as ee,Z as te,_ as le,$ as ae,a0 as ne,a1 as ie,a2 as oe,a3 as re,a4 as se,a5 as ce,a6 as me,a7 as de,a8 as he,a9 as ue,aa as ge,ab as pe,ac as ve,ad as Ee,ae as fe,af as ye,ag as we,ah as Le,ai as be,aj as Ce,ak as ke,al as Me,am as Pe,an as Ne,ao as He,ap as xe,aq as Ae}from"./index.styled-5bb4f023.js";import{T as Be}from"./index-bc492271.js";import{d as Te,L as _e,S as Re,U as Se,T as Oe,C as Ue}from"./index-1ac12915.js";import{n as je,a as Ze}from"./normalizeLink-9e913eae.js";import{c as $e,b as Ve,d as Ie}from"./routing-42c89d62.js";import{P as Fe,b as De,c as ze}from"./dataTransform-1d5a57a1.js";import{L as Ge}from"./index-ec58f89c.js";import{u as We}from"./useTranslations-d6993743.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-b5d9375f.js";import{y as Ye,P as Qe,H as Je}from"./index.styled-4d74d202.js";import{B as Xe}from"./index-6cead89b.js";import{t as et}from"./theme-d8fde17d.js";import{g as tt}from"./cookieHelper-34593baf.js";import{Portal as lt}from"@mantine/core";import"./index-0f8d4769.js";import{C as at}from"./index-12ffb4de.js";import"./index.styled-53cab956.js";import"./index-351d6253.js";import"@mantine/dates";import"./Onboarding-dcd86c28.js";import"./index-e085137d.js";import"dayjs";import"./screenSizeContext-b24a1650.js";import"styled-components";import"./isProduction-6647ee09.js";import"./index-b3fc6e3a.js";import"@mantine/hooks";import{L as nt}from"./constants-6073dbe3.js";import it from"string-format";import{I as ot}from"./index-bc874d31.js";import rt from"lodash/debounce";import{u as st}from"./useIsInit-349ff22c.js";const ct={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},mt=({type:e="square",size:t,avatarImg:i,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:m,className:d,width:h,height:u})=>{const g=t?ct[t]:void 0,[p,v]=a(!1);n((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{v(!0)}))}}),[o,v]);const E=(!o&&!i||p)&&r;return l.createElement(Ye,{style:Object.assign(Object.assign({},m),{"--size":g?g+"px":void 0,"--width-prop":h?h+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!h||!u),"data-avatar-type":e,onClick:c,className:d,avatarUrl:o,"data-custom-size":!!t},i,o&&!p&&l.createElement("img",{src:o}),E&&r)},dt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),ht=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ut=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),l.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),l.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),l.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),l.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),l.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),l.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),l.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),l.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),l.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),l.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),l.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),l.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),l.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),l.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),l.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),l.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),l.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),l.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),l.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),l.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),l.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),l.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),gt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},l.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),l.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),l.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),l.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),l.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),l.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),l.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),l.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),l.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),l.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),pt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),vt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaSquare.png")},e)),Et=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("g",{mask:`url(#${n})`},l.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),l.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},ft=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("g",{clipPath:`url(#${n})`},l.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),l.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:n},l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},yt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),l.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),wt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),l.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),l.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),Lt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),l.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),l.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),bt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),l.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),l.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Ct=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),kt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineSquare.png")},e)),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),l.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),l.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),l.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),Nt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),l.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),Ht=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),l.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),xt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),l.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),At=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("clipPath",null,l.createElement("rect",{width:"24",height:"16",fill:"white"})),l.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),l.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Bt="pfaLGRK";const Tt=({country:e,language:t,rounded:a,height:n,width:i,isTesting:o})=>{let r,s;switch(t){case"en":r=l.createElement(gt,null),s=l.createElement(ut,null);break;case"vi":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"id":r=l.createElement(ft,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"th":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"km":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"ms":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"my":r=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"tl":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"hi":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"zh":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}if(!r&&!s)switch(e){case"VN":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"ID":r=l.createElement(ft,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"TH":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"KH":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"MY":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"MM":r=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"PH":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"IN":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"TW":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:r)},_t=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:r=!0,style:s={},showIndicator:c=!0})=>{const[d,E]=a(!1);return l.createElement(l.Fragment,null,l.createElement(h,null,l.createElement(u,{onClick:()=>E((e=>!e))},t||(null==n?void 0:n(d))||null,l.createElement(g,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>l.createElement(p,{key:t,"data-selected":r&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Be,{size:"p3"},e.label),r&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},Rt=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(_t,{options:e,selected:i.value,label:l.createElement(St,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},St=({locale:e,label:t,href:a})=>{var n,i,o;return l.createElement(E,{href:a},l.createElement(Tt,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),l.createElement("span",null,t))},Ot=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:o})=>{const[r,s]=i((()=>Ke(t)),[t]);return l.createElement(f,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},Ut=e=>{const{allowBgScroll:t}=e||{},l=o();return{containerRef:l,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur())}}},jt=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:o=!0,targetAvatar:r,id:s,className:c})=>l.createElement(y,{"data-open":a,"data-type":e,"data-animation":o,"data-target":r,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Zt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var $t="uJQBNNg",Vt="TfG3dM5",It="aMtjFNf",Ft="cSz2RR-",Dt="GyFm00F";function zt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),o=i((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return l.createElement("div",{className:$t,onClick:()=>{t&&t()}},l.createElement(mt,{className:Vt,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===a?et.mbColors.pink:et.colors.secondaryBase}),l.createElement("div",{className:It},l.createElement("div",{className:Ft},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Dt,style:{"--bg-hellosites":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Gt="gn6HmGG",Wt="FCx8FEM",qt="zMiRxaE",Kt="lZ2Z9MQ",Yt="rwm-agG",Qt="qMOscoq";const Jt=({themeName:e,locale:t,onClickItem:n})=>{const[o,r]=a(""),s=i((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:m.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:m.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?r((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:Gt},s.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:o,onClickItem:c,locale:t}))))},Xt=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:o}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Wt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:qt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:Kt,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&l.createElement("div",{className:Yt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Qt},e.subMenu.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var el="-AZt1au",tl="IvSIfCI",ll="eahCJov",al="XIyViFs",nl="_4y-O0w3",il="kO8iNgD",ol="a1d4E10",rl="Tdguxxf",sl="-mOxsaU",cl="yPeDBNZ";const ml={helloSites:{member:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},dl=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),o=i((()=>{var l,a;return(null===(a=null===(l=ml[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:nl,"data-user-rank":t},l.createElement("div",{className:il},l.createElement("div",{className:ol},l.createElement("div",{className:rl,style:{backgroundImage:`url("${o}")`}}),l.createElement("h3",{className:sl},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:cl},a," ",n("userProfile.nav.header.count.posts")))))},hl=e=>{var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>hl(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null}:{}},ul=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},gl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},pl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},vl=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=nt[l])||void 0===a?void 0:a.ALL}/${(null===(n=nt[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},El=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}:{},fl=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},yl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:o="helloSites",cardUrls:r=Zt,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:h,userInfo:u,togetherApiDomain:g,userPostsNumber:p,onClickNavigationCard:v,onClickMyProfileButton:E,onClickMenuItem:f,onClickLogout:y,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:C=!1,locale:k})=>{const{t:M}=We(),[P,N]=a(p||0),H="marryBaby"===o;n((()=>{if(u&&void 0===p){const e=tt("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+it(w.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${Te[e]}`})))(k,H,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&N((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[k,null!==u,p,g,H]);const x=i((()=>{let e;return e=H?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?C:"eCom"===e?d:"mySaved"!==e||h))}),[H,C]),A=i((()=>"marryBaby"===o?null:l.createElement(Xe,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:y,className:al},M("userProfile.nav.menu.logout"))),[o]),B=l=>{window.location.href=je(`${e}${t}/${l}`)},T=e=>{const t=r[e];v?v(t):B(t)};return u?l.createElement("div",{className:el,"data-theme":o},l.createElement(zt,{userInfo:u,themeName:o,onClickMyProfileButton:()=>{E?E():B("profile")}}),l.createElement(dl,{themeName:o,rank:"member",numberOfPosts:P}),l.createElement("div",{className:tl},x.map((e=>l.createElement(L,{className:ll,key:e,themeName:o,type:e,onClick:T})))),!b&&l.createElement(l.Fragment,null,l.createElement(Jt,{themeName:o,locale:k,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(f?f(e.link):B(e.link))}}),A)):null},wl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:h,userProfileRouterPush:u,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p=!1,togetherApiDomain:v,locale:E})=>{const f=l=>{u?u(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},y=e=>{f(e),m()};return l.createElement(jt,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},l.createElement(yl,{SSO_URL:e,UP_BASEPATH:t,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,onClickLogout:()=>{h&&(h(),m())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:()=>{f("profile"),m()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p,togetherApiDomain:v,locale:E}))},Ll=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:o}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(lt,null,l.createElement(Fe,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:t},l.createElement(b,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),l.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,o("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Xe,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},o("logout.popup.button.logout")),l.createElement(Xe,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},bl=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:r,currentUrl:s,isMinifyLogin:c,enableCare:d,enableTogether:h,enableEcom:u,isUserProfileNavigatorMenuHidden:g,UP_BASEPATH:p,isMyHealthEnabled:v,togetherApiDomain:E,onLogout:f,style:y,userProfileRouterPush:w,isLoading:L,locale:b,enableMySaved:C})=>{const{t:N}=We(),[H,x]=a(!1),A=(null==e?void 0:e.name)||(null==e?void 0:e.username),[B,T]=a(!1);n((()=>{T(!0)}),[]);const{containerRef:_,onContainerFocus:R,onContainerBlur:S,onButtonMouseDown:O,onClose:U}=Ut();return L?l.createElement(Xe,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:_,style:y,tabIndex:0,onBlur:S,onFocus:R},l.createElement("div",{onMouseDown:O},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),l.createElement(mt,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==e?void 0:e.avatar,firstLetter:A&&A.length?A[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?et.mbColors.pink:et.colors.secondaryBase})),l.createElement(wl,{UP_BASEPATH:p,SSO_URL:r,dispatchLogout:()=>{U(),x(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,enableMySaved:C,closePopup:U,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(Ll,{openLogoutPopup:H,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),x(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){x(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):l.createElement(M,{style:Object.assign({textDecoration:"none"},y),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:B?void 0:je(`${r}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:o},l.createElement("img",{src:m.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):l.createElement(l.Fragment,null,"helloSites"===i&&l.createElement("img",{className:"mobile-only",src:m.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:o}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},l.createElement(Be,{size:"p3",color:et.mbColors.pink},N("navigation.loginJoin"))),l.createElement(Xe,{className:"login-btn",size:"md",color:"tertiary",onClick:o,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},N("navigation.loginJoin"))))};var Cl="spdlGfq",kl="vgS16jX";const Ml=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Xe,{className:Cl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):l.createElement("a",{href:a,className:`${kl} care-button no-replace-click`},l.createElement(Xe,{className:Cl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Pl="y5VJdvw",Nl="oVhOSCy",Hl="pX8OXTM";function xl({className:e}){return l.createElement("div",null,l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Al({siteType:e,type:t,enableSearch:a,className:n}){return"helloSites"===e?l.createElement("div",null,l.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?m.getAssetPath("hamburgerMenuNewWithSearch.svg"):m.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n})):l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const Bl=()=>{const{locale:e,configs:{statics:t},siteType:a}=r(N),{t:n}=We();return l.createElement(Qe,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:_e[e||"en-PH"]?_e[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:l.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},l.createElement(H,null))})};var Tl="wnUb-dV",_l="cjbOxWe";const Rl=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:r}=Ut({allowBgScroll:!0}),s=st();return!e.popupType&&e.link?l.createElement(Sl,{isNew:e.isNew},l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:_l},e.name))):l.createElement(Sl,{isNew:e.isNew},l.createElement("div",{ref:a,className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:_l},e.name,e.popupType&&l.createElement("div",{className:Tl},l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),l.isValidElement(t)?l.cloneElement(t,{onClose:r}):null))},Sl=({isNew:e,children:t})=>{const{t:a}=We();return e?l.createElement(ot,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},Ol=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:o})=>{const{siteType:s}=r(N);return l.createElement(x,null,l.createElement(A,null,l.createElement(Je,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(B,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i,"data-theme":s,key:t,onClick:n},l.createElement("div",{className:"icon"},l.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),l.createElement(Sl,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(T,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&l.createElement(_,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(R,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(S,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Ul=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:o}}=r(N);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(a=nt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(O,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},l.createElement("img",{src:m.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),l.createElement(U,null,l.createElement(j,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(Z,null,l.createElement($,null,e.name),l.createElement(V,null,e.description),l.createElement(I,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},jl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:o}=r(N);return l.createElement(F,{"data-theme":o},l.createElement(D,null,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(z,null,i&&l.createElement("img",{src:i,width:64,height:64}))),l.createElement("div",null,e&&l.createElement(G,null,e),a&&l.createElement(W,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(Xe,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},Zl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(N);return l.createElement(q,null,l.createElement(K,null,l.createElement(Je,{tag:"marryBaby"===o?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(Y,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},$l=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Zl,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(Q,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(Ul,{key:t,index:t,item:e})))):l.createElement(jl,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Vl=({item:e,index:t=0})=>e?l.createElement(J,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},l.createElement(X,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),l.createElement(ee,null,e.title)):null,Il=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=r(N);return l.createElement(Zl,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?l.createElement(te,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(Vl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(jl,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:m.getAssetPath("Spotlight.svg")}))},Fl=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(N),{t:a}=We();return l.createElement(Zl,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:Ze(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?l.createElement(le,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(ae,{index:t,post:e,key:e.id})))):l.createElement(jl,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:m.getAssetPath("community.svg")}))},Dl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=r(N);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(ne,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},l.createElement("img",{src:m.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(ie,null,l.createElement(oe,null,e.title),l.createElement(re,null,e.subtitle),l.createElement(se,null,a("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),l.createElement(ce,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},zl=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=r(N);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>l.createElement(he,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>l.createElement(ue,null,l.createElement(ge,null,l.createElement(pe,null,e.title),l.createElement(ve,null,e.subtitle)),l.createElement(Ee,null,l.createElement("div",{className:"mobile-only"},n("home.seeMore")),l.createElement("img",{src:m.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})));return l.createElement(me,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":a},l.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),l.createElement("img",{src:m.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),l.createElement(de,null,l.createElement("div",{className:"mobile-only"},s()),l.createElement("div",{className:"desktop-only"},c())),l.createElement("div",{className:"mobile-only"},c()),l.createElement("div",{className:"desktop-only"},s()))},Gl=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=r(N);return l.createElement(Zl,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&l.createElement(fe,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?l.createElement(zl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Dl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(jl,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Wl=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=r(N),{t:p}=We();return l.createElement(ye,{id:"categories-menu"},u?l.createElement(we,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},l.createElement(Bl,null)):null,l.createElement(Le,null,l.createElement(Ol,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&l.createElement(Il,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(Gl,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}${(null===(a=Re[g])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===d&&l.createElement($l,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=nt[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Fl,{spotlights:null==m?void 0:m.spotlights})))},ql=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=r(N),{containerRef:i,onContainerFocus:o,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Ut();return l.createElement(Ot,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Pl},l.createElement("div",{className:Nl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:o},l.createElement("div",{className:Hl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(xl,{className:"mobile-close-icon"}),l.createElement(Al,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Wl,{menuItems:t,closePopup:m}))))};var Kl="q3nL5cp",Yl="_2DNf80G",Ql="Q-glX-n";const Jl=({onClosePopup:e})=>l.createElement("div",{className:`${Ql} close-btn`,onClick:e},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Xl=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(at,null,!i&&l.createElement("div",{className:Yl},l.createElement(Jl,{onClosePopup:e})),l.createElement(at,{className:Kl},a))),ea=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:o}=We(),{locale:s,configs:{statics:c}}=r(N),m=`${c.CARE_URL_FE}/${null===(i=nt[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(Xl,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Ol,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:vl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement($l,{spotlights:n,hrefViewMore:m}))},ta=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:o,configs:{statics:s}}=r(N);return l.createElement(Xl,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Ol,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement(Il,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},la=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:o}}=r(N);return l.createElement(Xl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ol,{hrefViewMore:Ze(o.TOGETHER_URL_FE),UrlFE:je(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),l.createElement(Fl,{spotlights:n}))},aa=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=We(),{configs:{statics:c}}=r(N),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=Re[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return l.createElement(Xl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ol,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),l.createElement(Gl,{spotlightHealthTools:n,hrefViewMore:m}))},na=({onTopBarAppears:e,type:t="home",languageMenu:i,menuItems:c})=>{var d;const{siteType:h,isMobile:u=!1,locale:g,sitewideBanner:p,sitewideBannerShown:v=!0,sponsorComponent:E,onBookingClick:f,currentUrl:y,onLoginClick:w,configs:{statics:L,enableNavCareBooking:b,enableSearchBar:C,enableNavCare:k,enableProfileMyHealth:M,enableProfileMySaved:P,enableNavTogether:H,enableProfileEcom:x,enableProfileNavigatorMenu:A},userState:{userInfo:B},onLogout:T,userProfileRouterPush:_,isUserLoading:R}=r(N),{t:S}=We(),{SSO_URL:O,HOME_PAGE_URL:U}=L,j=!!E,[Z,$]=a(!1),V=o(47),I=o(null),F=o(!1),D="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,z="undefined"!=typeof window,G=s(qe((()=>{if("home"===t&&z){if(!I.current)return;const e=I.current.getBoundingClientRect();e.top<=0&&window.scrollY>V.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,$(!0)),window.scrollY<V.current&&F.current&&(F.current=!1,$(!1)),window.scrollY>=0&&(V.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!Z)}),[Z]),n((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),n((()=>{u&&G()}),[u]);const W=v&&!!p;return l.createElement(be,{"data-site-type":h,"data-sponsored":j,"data-sitewide-banner-shown":W,"data-header-type":t,"data-collapsed":Z,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:I},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(ql,{menuItems:c,type:t}),l.createElement("a",{href:U},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:D,badge:"id-ID"===g&&l.createElement("img",{src:m.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===h?l.createElement(oa,{menuItems:c}):C&&l.createElement(ia,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(ia,{siteType:h}):l.createElement(oa,{menuItems:c}),l.createElement(Ne,null,b&&l.createElement(Ot,{mediaQueryKey:"mbUp"},l.createElement(Ml,{careUrlFe:L.CARE_URL_FE,currentUrl:y,btnName:S("login.booking"),onCareHeaderClick:f})),i,l.createElement(bl,{userInfo:B,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(L.SSO_URL),currentUrl:y,onLogout:T,UP_BASEPATH:Se,isMyHealthEnabled:M,enableCare:k,enableTogether:H,enableEcom:x,enableMySaved:P,togetherApiDomain:Ze(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:_,isLoading:R,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:Z,locale:g,isMobile:u}):E:null)},ia=({siteType:e})=>l.createElement(Ot,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Bl,null)),oa=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(N);return l.createElement(Ot,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(He,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Rl,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(ta,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(aa,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(la,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(ea,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},ra=e=>{var t,c;const{isMobile:d,locale:h,onTopBarAppears:u,languageOptions:g,sponsorComponent:p,sitewideBanner:v,sitewideBannerShown:E,className:f}=e,y=(()=>{const{t:e}=We(),{siteType:t,locale:l,configs:{enableNavDiscover:a,enableNavHealthTools:n,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:d}}=r(N),h="marryBaby"===t;return i((()=>{var t;const i=[];return a&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:h?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),n&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),o&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(d.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),s&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(d.TOGETHER_URL_FE+"/"),thumbnail:h?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(d.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null,isNew:!0}),i}),[l,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(N),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,L=!!p,b=!!(null===(c=null===(t=null==p?void 0:p.props)||void 0===t?void 0:t.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:C,defaultHeaderHeight:k,headerHeight:M,headerBottom:P}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:l,isMobile:r})=>{const c=o(null),[m,d]=a(0),[h,u]=a(64),g=s(rt((()=>{var e,t,l,a;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),u((null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||m))}),200),[]);n((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),n((()=>{g()}),[r,l,t,e,c.current]);const p=i((()=>{let a=r?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:L,hasSponsoredBanners:b,isMobile:d});return l.createElement(Ae,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${M}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":P+"px"},className:f},l.createElement("section",{ref:C},l.createElement(na,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(Rt,{languageOptions:g,locale:h})})))},sa=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return l.createElement(xe,Object.assign({},t),l.createElement(ra,Object.assign({},t)))},ca=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,o,r,s,c,m,d,h,u,g,p,v,E,f,y,w,L;const b={},C="vi-VN_MB"===e;try{const k="tl-PH"===e?"lang=fil":"";try{const[d,h,u,g]=yield Promise.all([fetch(je(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${k?"&"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}/favorites${k?"?"+k:""}`)).then((e=>e.json()))]);b.categories={items:(null===(l=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,hl))||[],spotlights:(null===(o=null===(i=null===(n=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,El))||void 0===o?void 0:o.filter(fl))||[]},b.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,ul))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,ul))||[]}}catch(e){}if(C||Oe.includes(e))try{const[t,l]=yield Promise.all([fetch(je(`${Ve()}/api/v1/community?website_url=https://${Te[e]}`)).then((e=>e.json())),fetch(je(`${Ve()}/api/v1/options?website_url=https://${Te[e]}&meta_key=popular_post`)).then((e=>e.json()))]);b.together={items:(null===(u=null===(h=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===h?void 0:h.map)||void 0===u?void 0:u.call(h,De))||[],spotlights:(null===(v=null===(p=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.posts)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,ze))||[]}}catch(e){}if(Ue.includes(e))try{const[t,l]=yield Promise.all([fetch(je(Ie()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Ie()+`/api/search/?site=${Te[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);b.care={items:(null===(y=null===(f=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===f?void 0:f.map)||void 0===y?void 0:y.call(f,gl))||[],spotlights:(null===(L=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===L?void 0:L.call(w,pl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),ma=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>ca(e||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));export{mt as A,Tt as F,Rt as L,sa as N,wl as P,yl as U,ma as a,zt as b,dl as c,Ll as d,bl as e,ca as g};
@@ -1 +1 @@
1
- import e,{useState as t,useEffect as a,useRef as r}from"react";import{z as s,A as n}from"./index.styled-814e4704.js";import{_ as o}from"./tslib.es6-c7baa758.js";import{u as i}from"./useTranslations-5d864a21.js";import{useMantineTheme as l}from"@mantine/core";import"./gAssets.js";import"@mantine/dates";import"./index-e2b6628b.js";import"./Onboarding-a1460ceb.js";import{f as c}from"./index-660c9993.js";import{B as d}from"./index-6bf13551.js";import"dayjs";import"./screenSizeContext-4ba69e1d.js";import"styled-components";import"./theme-23115d69.js";import"./utils-65cc3684.js";import"./isProduction-60318bee.js";import"./translationsContext-aae526a6.js";import"string-format";import"./index-bd6fff6a.js";import"@mantine/hooks";import{b2 as m}from"./index-d26ba6c1.js";const p=({type:t="solid",className:a,style:r})=>e.createElement(s,{style:r,className:a,"data-diver-type":t,dividerType:t}),v={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},b=t=>{var{siteType:a,role:r,title:s,styles:l,className:c}=t,d=o(t,["siteType","role","title","styles","className"]);const{t:m}=i(),p=r?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(r):"",{classes:b,cx:u}=n(void 0,{name:"AuthorBadge",styles:l});return p&&v[p]?e.createElement("div",Object.assign({className:u(b.root,c),"data-label-type":p,"data-is-marrybaby":"marryBaby"===a},d),s||m(v[p])):null};var u="Dudns9-";const y=({value:r,choices:s,onChange:n})=>{const[o,i]=t(r);return a((()=>{i(r)}),[r]),e.createElement("div",{className:u},s.map(((t,a)=>e.createElement(d,{dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel,size:"sm",variant:t.value===o?"primary":"tertiary",key:a,onClick:()=>{i(t.value),null==n||n(t.value)}},t.label||""))))},E=t=>{var{fallbackSrc:s}=t,n=o(t,["fallbackSrc"]);const{other:i}=l(),c=r(null),d=s||i.defaultImage,m=n.src||d||"",p=r(!1);a((()=>{m!==d&&c.current&&(c.current.src=m)}),[]),a((()=>{p.current=!1}),[m]);return e.createElement("img",Object.assign({ref:c},n,{src:m,onError:e=>{var t;p.current||(e.currentTarget.src=d||"",p.current=!0),null===(t=n.onError)||void 0===t||t.call(n,e)}}))},f=({style:r,initialTab:s,tabContent:n,onChange:o,className:i,dataEventCategory:l,dataEventAction:d,dataEventLabel:p,id:v,styles:b})=>{const{classes:u,cx:y,theme:E}=m(void 0,{name:"Tabs",styles:b}),[f,g]=t(s||0);return a((()=>{g(s)}),[s]),e.createElement("ul",{style:r,className:y(u.root,i),role:"tablist",id:v},n.map(((t,a)=>e.createElement("li",{className:`${u.item} ${f===a?"active":""}`,"aria-selected":f===a,role:"tab",onClick:()=>{g(a),o&&o(a)},onKeyDown:e=>{"Enter"===e.key&&(g(a),o&&o(a))},key:a,"data-event-category":t.dataEventCategory||l,"data-event-action":t.dataEventAction||d,"data-event-label":t.dataEventLabel||p,tabIndex:0,"data-testid":t.dataTestid},e.createElement("div",{className:u.itemInner},t.icon&&e.createElement("div",{className:u.icon},t.icon),e.createElement(c,{className:u.label,size:t.textSize||"sm",weight:t.textType||"bold",color:f===a?E.fn.primaryColor():t.textColor||E.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))};export{b as A,y as B,p as D,E as I,f as T};
1
+ import e,{useState as t,useEffect as a,useRef as r}from"react";import{z as s,A as n}from"./index.styled-4d74d202.js";import{_ as o}from"./tslib.es6-a6424d8a.js";import{u as i}from"./useTranslations-d6993743.js";import{useMantineTheme as l}from"@mantine/core";import"./gAssets.js";import"@mantine/dates";import"./index-1ac12915.js";import"./Onboarding-dcd86c28.js";import{f as c}from"./index-e085137d.js";import{B as d}from"./index-7ee1784b.js";import"dayjs";import"./screenSizeContext-b24a1650.js";import"styled-components";import"./theme-d8fde17d.js";import"./utils-b5d9375f.js";import"./isProduction-6647ee09.js";import"./translationsContext-072b23b4.js";import"string-format";import"./index-b3fc6e3a.js";import"@mantine/hooks";import{b2 as m}from"./index-ecaaca4c.js";const p=({type:t="solid",className:a,style:r})=>e.createElement(s,{style:r,className:a,"data-diver-type":t,dividerType:t}),v={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},u=t=>{var{siteType:a,role:r,title:s,styles:l,className:c}=t,d=o(t,["siteType","role","title","styles","className"]);const{t:m}=i(),p=r?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(r):"",{classes:u,cx:y}=n(void 0,{name:"AuthorBadge",styles:l});return p&&v[p]?e.createElement("div",Object.assign({className:y(u.root,c),"data-label-type":p,"data-is-marrybaby":"marryBaby"===a},d),s||m(v[p])):null};var y="Dudns9-";const b=({value:r,choices:s,onChange:n})=>{const[o,i]=t(r);return a((()=>{i(r)}),[r]),e.createElement("div",{className:y},s.map(((t,a)=>e.createElement(d,{dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel,size:"sm",variant:t.value===o?"primary":"tertiary",key:a,onClick:()=>{i(t.value),null==n||n(t.value)}},t.label||""))))},E=t=>{var{fallbackSrc:s}=t,n=o(t,["fallbackSrc"]);const{other:i}=l(),c=r(null),d=s||i.defaultImage,m=n.src||d||"",p=r(!1);a((()=>{m!==d&&c.current&&(c.current.src=m)}),[]),a((()=>{p.current=!1}),[m]);return e.createElement("img",Object.assign({ref:c},n,{src:m,onError:e=>{var t;p.current||(e.currentTarget.src=d||"",p.current=!0),null===(t=n.onError)||void 0===t||t.call(n,e)}}))},g=({style:r,initialTab:s,tabContent:n,onChange:o,className:i,dataEventCategory:l,dataEventAction:d,dataEventLabel:p,id:v,styles:u})=>{const{classes:y,cx:b,theme:E}=m(void 0,{name:"Tabs",styles:u}),[g,f]=t(s||0);return a((()=>{f(s)}),[s]),e.createElement("ul",{style:r,className:b(y.root,i),role:"tablist",id:v},n.map(((t,a)=>e.createElement("li",{className:`${y.item} ${g===a?"active":""}`,"aria-selected":g===a,role:"tab",onClick:()=>{f(a),o&&o(a)},onKeyDown:e=>{"Enter"===e.key&&(f(a),o&&o(a))},key:a,"data-event-category":t.dataEventCategory||l,"data-event-action":t.dataEventAction||d,"data-event-label":t.dataEventLabel||p,tabIndex:0,"data-testid":t.dataTestid},e.createElement("div",{className:y.itemInner},t.icon&&e.createElement("div",{className:y.icon},t.icon),e.createElement(c,{className:y.label,size:t.textSize||"sm",weight:t.textType||"bold",color:g===a?E.fn.primaryColor():t.textColor||E.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))};export{u as A,b as B,p as D,E as I,g as T};
@@ -1 +1 @@
1
- export{i as Types}from"./index-427d9690.js";export{i as Constants}from"./index-e2b6628b.js";export{A as Alert,e as ArticleCard,r as BMICardEmbed,v as BMRCardEmbed,s as BabyGrowthCardEmbed,t as BabyPoopEmbed,B as Badge,a as BorderHeading,y as Breadcrumbs,k as Carousel,f as CategoryCard,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,x as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,H as FixedBottomAdBlock,o as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,w as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,j as ScrollList,q as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,i as SideMenu,l as StatisticCard,n as SurveyThankyouCard,u as THRCardEmbed,m as Table,T as Tag,b as Toggle,U as UnderlinedLink,c as Uploader}from"./fixedBottomAdBlock-2289f247.js";export{A as Avatar,F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-29a7b961.js";export{B as Button}from"./index-27dac1d2.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,I as ImageWithHandler,T as Tabs}from"./index-00052e33.js";export{H as Heading,M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-814e4704.js";export{I as Input}from"./index-e9eccfd1.js";export{L as Label}from"./index-2322501a.js";export{L as Logo}from"./index-cac42c1a.js";export{A as AdBlock,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-d26ba6c1.js";export{T as Text}from"./index-5124a84f.js";export{C as Container,L as LogoIcon}from"./index-b55a48f3.js";export{I as Icon}from"./index-993bfe79.js";export{D as Drawer,R as RadioImageGroup}from"./index-09c71638.js";export{M as Modal,N as NewBabyProfileRadio}from"./index-ee79c397.js";export{C as CustomReferenceDot}from"./index-31a0ce7b.js";export{P as Popup,d as TogetherDataTransforms}from"./dataTransform-1c8ff733.js";export{P as PillCarousel}from"./index-d91f335c.js";export{Footer}from"./footer.js";export{u as useTranslations}from"./useTranslations-5d864a21.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-22d0f96f.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-a821a326.js";export{u as useHealthToolsCache}from"./useHealthToolCache-5e949049.js";export{u as useIsInit}from"./useIsInit-290802ea.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-5baed9d0.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-8a9b3aad.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-9f4f07c7.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-aae526a6.js";export{g as CardAuthor,C as CardLink,D as CardPost,E as CardPostPopoverMore,b as CardReactions,F as CardReply,G as CardReplyPopover,K as Close,h as CreateNewPostContent,i as CreatePostDescription,j as CreatePostTitle,s as ImagePreviewPopup,I as InputCommentBar,e as LabelPin,d as LabelSortPin,f as LabelSorting,L as Loading,H as PopoverMenu,P as PopupDanger,l as PopupDoctor,k as PopupExpert,o as PopupFrame,m as PopupHospital,r as PostContent,w as PostImagePreview,v as PostSingleImageViewPopup,z as ProfileDetail,y as ProfileDetailModal,q as ShareBox,S as SharePopup,B as SkipQuestionOfExpertBtn,x as SocialLinkPreview,J as SourceList,p as SubmitReportForm,A as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,n as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-5dd64b84.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants,U as UserAvatar}from"./index.styled-ddf38d67.js";export{B as BookingSearchBar,t as CareTypes}from"./types-cbc770f2.js";export{c as CareConstants}from"./constants-965e16a3.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-9a783e7f.js";export{S as ScreenSizeContext,j as ScreenSizeContextProvider,h as fadeIn,i as getWindowSizeGroups,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp}from"./screenSizeContext-4ba69e1d.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-151dc631.js";import*as Z from"react";import"styled-components";export{M as MBTheme,t as theme}from"./theme-23115d69.js";export{a as abbreviateNumber,f as formatPill}from"./dataTransform-c065a17c.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-49b02ef4.js";export{B as Breakpoints,M as MediaQueries,f as formatUrlWithPageParam,g as getBoundariesFromMediaQueryKey,a as getPopupWrapperDom,b as getWrapperDomWithSelector,m as makeParams,c as safeEncodeURI,s as startCase,t as toggleNoScroll}from"./utils-65cc3684.js";export{f as formatHealthTool,g as getDynamicHealthTool,a as getDynamicHealthToolWithCache}from"./getDynamicHealthTool-90793ba5.js";export{g as getSocialList}from"./getSocialList-e9cd6d91.js";export{a as Cambodia,C as CaretDown,I as India,b as Indonesia,M as Malaysia,c as Myanmar,P as Phillipines,T as Taiwan,d as Thailand,V as Vietnam}from"./index-660c9993.js";export{V as Visible}from"./Visible-37ab6fd3.js";import"./Onboarding-a1460ceb.js";import"./isProduction-60318bee.js";import"./gAssets.js";import"./tslib.es6-c7baa758.js";import"lodash/throttle";import"keen-slider/react";import"dayjs";import"date-fns";import"@mantine/core";import"./index.styled-4e66a7ef.js";import"@mantine/dates";import"./index-6bf13551.js";import"./index-bd6fff6a.js";import"@mantine/carousel";import"@mantine/hooks";import"./types-7d094668.js";import"./index-0a507ebb.js";import"./index-e1fabe21.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"uuid";import"./core-78831e26.js";import"./normalizeLink-39d11b46.js";import"string-format";import"./index-18ad34a3.js";import"lodash/debounce";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"react-dom";import"./index.styled-07189132.js";import"innertext";import"react-contenteditable";import"dayjs/plugin/relativeTime";import"./index-4306c019.js";import"slugify";import"react-loading-skeleton";import"lodash/shuffle";const W=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66797 9.99984C1.66797 5.39984 5.4013 1.6665 10.0013 1.6665C14.6013 1.6665 18.3346 5.39984 18.3346 9.99984C18.3346 14.5998 14.6013 18.3332 10.0013 18.3332C5.4013 18.3332 1.66797 14.5998 1.66797 9.99984ZM4.75147 10.5828L7.74314 13.5745C8.06814 13.8995 8.60147 13.8995 8.91814 13.5745L15.2431 7.24948C15.5681 6.92448 15.5681 6.39948 15.2431 6.07448C14.9181 5.74948 14.3931 5.74948 14.0681 6.07448L8.3348 11.8078L5.92647 9.40781C5.60147 9.08281 5.07647 9.08281 4.75147 9.40781C4.59543 9.56351 4.50773 9.77488 4.50773 9.99531C4.50773 10.2157 4.59543 10.4271 4.75147 10.5828Z"}),Z.createElement("path",{d:"M7.74322 13.5772L4.75155 10.5856C4.59551 10.4299 4.50781 10.2185 4.50781 9.99808C4.50781 9.77765 4.59551 9.56627 4.75155 9.41058C5.07655 9.08558 5.60155 9.08558 5.92655 9.41058L8.33488 11.8106L14.0682 6.07725C14.3932 5.75225 14.9182 5.75225 15.2432 6.07725C15.5682 6.40225 15.5682 6.92725 15.2432 7.25225L8.91822 13.5772C8.60155 13.9022 8.06822 13.9022 7.74322 13.5772Z",fill:"white"})),_=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"})),Q=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M10.929 12.0002L14.75 8.17915C15.164 7.76515 15.164 7.09315 14.75 6.67915C14.336 6.26515 13.664 6.26515 13.25 6.67915L8.63605 11.2932C8.24505 11.6842 8.24505 12.3172 8.63605 12.7072L13.25 17.3212C13.664 17.7352 14.336 17.7352 14.75 17.3212C15.164 16.9072 15.164 16.2352 14.75 15.8212L10.929 12.0002Z"})),X=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.071 12.0002L10.25 8.17915C9.83598 7.76515 9.83598 7.09315 10.25 6.67915C10.664 6.26515 11.336 6.26515 11.75 6.67915L16.364 11.2932C16.755 11.6842 16.755 12.3172 16.364 12.7072L11.75 17.3212C11.336 17.7352 10.664 17.7352 10.25 17.3212C9.83598 16.9072 9.83598 16.2352 10.25 15.8212L14.071 12.0002Z"})),Y=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M7.80267 6.61943L10.35 9.16676C10.626 9.44276 11.074 9.44276 11.35 9.16676C11.626 8.89076 11.626 8.44276 11.35 8.16676L8.27401 5.09076C8.01334 4.8301 7.59134 4.8301 7.33134 5.09076L4.25534 8.16676C3.97934 8.44276 3.97934 8.89076 4.25534 9.16676C4.53134 9.44276 4.97934 9.44276 5.25534 9.16676L7.80267 6.61943Z"})),$=e=>Z.createElement("svg",Object.assign({className:"spinner",viewBox:"0 0 50 50",fill:"currentColor",width:"1em",height:"1em"},e),Z.createElement("circle",{className:"path",cx:25,cy:25,r:20,stroke:"currentColor",strokeWidth:5})),ee=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M66.03 20.0896L66.0298 20.0896L54.445 17.1371L33.1143 11.7035H33.1064L33.0912 11.6997L27.0869 10.1654L66.03 20.0896ZM66.03 20.0896C66.408 20.1854 66.7633 20.3548 67.0757 20.5882C67.3881 20.8215 67.6514 21.1141 67.8506 21.4493C68.0498 21.7845 68.1809 22.1557 68.2364 22.5417C68.2919 22.9276 68.2708 23.3207 68.1742 23.6985L68.1742 23.6986M66.03 20.0896L68.1742 23.6986M68.1742 23.6986L66.3914 30.6842L66.5125 30.7151M68.1742 23.6986L66.5125 30.7151M66.5125 30.7151L66.3914 30.6842L63.9545 40.241L37.7595 53.4735L16.9721 37.5413M66.5125 30.7151L16.9721 37.5413M16.9721 37.5413L17.075 37.4096L17.0911 37.3889L17.0976 37.3634L21.0735 21.7341L21.0805 21.7254L21.0871 21.6992L23.477 12.3089C23.6715 11.546 24.1611 10.8916 24.838 10.4896C25.515 10.0876 26.3239 9.97102 27.0868 10.1654L16.9721 37.5413Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.25}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M40.797 39.6731C46.1394 41.0733 51.6054 37.8775 53.0056 32.5351C54.4058 27.1927 51.21 21.7268 45.8676 20.3266C40.5252 18.9263 35.0592 22.1221 33.659 27.4645C32.2588 32.8069 35.4546 38.2729 40.797 39.6731Z",fill:"#00CB8A"}),Z.createElement("path",{d:"M42.0398 32.9697C41.6263 32.862 41.238 32.6738 40.8973 32.4158C40.5566 32.1578 40.2701 31.8352 40.0542 31.4663L39.2137 30.0279C39.1039 29.8324 39.0753 29.6016 39.134 29.3852C39.1927 29.1689 39.3341 28.9842 39.5277 28.871C39.7212 28.7579 39.9515 28.7252 40.1689 28.7802C40.3862 28.8352 40.5733 28.9733 40.6898 29.1649L41.5304 30.6033C41.6319 30.7769 41.7666 30.9289 41.9269 31.0504C42.0871 31.172 42.2698 31.2608 42.4643 31.3118C42.6589 31.3628 42.8616 31.375 43.0609 31.3477C43.2602 31.3203 43.4522 31.254 43.6258 31.1525L52.5607 26.5173C52.7613 26.4192 52.9924 26.4034 53.2045 26.4734C53.4166 26.5435 53.5929 26.6937 53.6956 26.892C53.7984 27.0903 53.8195 27.3209 53.7544 27.5346C53.6893 27.7483 53.5432 27.928 53.3473 28.0353L44.4483 32.6486C44.0877 32.8581 43.6894 32.9943 43.2761 33.0494C42.8628 33.1045 42.4427 33.0774 42.0398 32.9697Z",fill:"white"})),ae=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M65.9578 20.3722L65.9583 20.3723C66.2991 20.4587 66.6195 20.6115 66.9012 20.8218C67.1829 21.0322 67.4203 21.2961 67.5999 21.5983C67.7794 21.9005 67.8976 22.2352 67.9477 22.5832C67.9978 22.9312 67.9787 23.2856 67.8916 23.6262L67.8916 23.6264L66.1088 30.612L66.1088 30.6121L63.7046 40.0405L37.7915 53.1306L17.3693 37.4783L17.3803 37.4353L21.3406 21.8671L21.3476 21.8584L21.3698 21.7712L23.7596 12.381C23.7596 12.3809 23.7597 12.3809 23.7597 12.3808C23.9351 11.6929 24.3765 11.1028 24.9869 10.7404C25.5974 10.3779 26.3269 10.2727 27.0149 10.4481L33.019 11.9822L33.0697 11.9952H33.0777L54.3729 17.4197L54.373 17.4197L65.9578 20.3722Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.833333}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M36.2349 37.7184C40.4975 41.2301 46.7998 40.6212 50.3115 36.3586C53.8231 32.0959 53.2143 25.7936 48.9516 22.282C44.689 18.7703 38.3867 19.3792 34.875 23.6418C31.3634 27.9045 31.9722 34.2068 36.2349 37.7184Z",fill:"#FF5331"}),Z.createElement("g",{clipPath:"url(#clip0_1176_26159)"},Z.createElement("path",{d:"M48.4022 27.8621C48.317 27.6306 48.1433 27.4425 47.9195 27.3391C47.6956 27.2357 47.4398 27.2254 47.2084 27.3105L43.1437 28.8064L41.6479 24.7418C41.5597 24.5144 41.3858 24.3308 41.1635 24.2304C40.9413 24.1301 40.6885 24.1211 40.4596 24.2053C40.2308 24.2895 40.0442 24.4602 39.94 24.6807C39.8358 24.9012 39.8224 25.1538 39.9026 25.3841L41.3984 29.4487L37.3338 30.9445C37.2172 30.9851 37.1098 31.0486 37.018 31.1312C36.9262 31.2137 36.8517 31.3137 36.7989 31.4254C36.7462 31.537 36.7162 31.6581 36.7107 31.7815C36.7052 31.9048 36.7243 32.0281 36.767 32.144C36.8096 32.2598 36.8749 32.3661 36.9591 32.4565C37.0432 32.5469 37.1445 32.6196 37.2571 32.6704C37.3697 32.7212 37.4912 32.7491 37.6146 32.7524C37.7381 32.7558 37.861 32.7345 37.9761 32.6898L42.0407 31.194L43.5366 35.2586C43.6247 35.486 43.7987 35.6696 44.021 35.7699C44.2432 35.8703 44.496 35.8793 44.7248 35.7951C44.9537 35.7109 45.1403 35.5401 45.2445 35.3197C45.3487 35.0992 45.3621 34.8466 45.2819 34.6163L43.7861 30.5517L47.8507 29.0559C48.0821 28.9707 48.2702 28.797 48.3736 28.5732C48.477 28.3493 48.4873 28.0935 48.4022 27.8621Z",fill:"white"})),Z.createElement("defs",null,Z.createElement("clipPath",{id:"clip0_1176_26159"},Z.createElement("rect",{width:11.1603,height:11.1603,fill:"white",transform:"translate(39.8672 22.5942) rotate(24.7957)"})))),te=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14 0H3C1.61929 0 0.5 1.11929 0.5 2.5V13.5C0.5 14.8807 1.61929 16 3 16H14C15.3807 16 16.5 14.8807 16.5 13.5V2.5C16.5 1.11929 15.3807 0 14 0Z",fill:"#1778F2"}),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.657 16V9.7495H12.2845L12.5 7.595H10.657L10.66 6.517C10.66 5.9555 10.71 5.6545 11.4715 5.6545H12.4885V3.5H10.861C8.906 3.5 8.2185 4.545 8.2185 6.302V7.5955H7V9.7495H8.2185V16H10.657Z",fill:"white"})),se=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.6819 8.15547C14.6819 7.57992 14.6353 7.15992 14.5345 6.72437H7.98047V9.32212H11.8275C11.75 9.96769 11.3312 10.9399 10.4004 11.5932L10.3874 11.6802L12.4596 13.29L12.6032 13.3044C13.9217 12.0832 14.6819 10.2866 14.6819 8.15547Z",fill:"#4285F4"}),Z.createElement("path",{d:"M7.98042 15.0001C9.86516 15.0001 11.4474 14.3778 12.6031 13.3045L10.4003 11.5934C9.81089 12.0056 9.01973 12.2934 7.98042 12.2934C6.13445 12.2934 4.5677 11.0723 4.0092 9.38452L3.92733 9.39149L1.77256 11.0637L1.74438 11.1423C2.8923 13.4289 5.2502 15.0001 7.98042 15.0001Z",fill:"#34A853"}),Z.createElement("path",{d:"M4.00915 9.38424C3.86178 8.94869 3.7765 8.48199 3.7765 7.99979C3.7765 7.51754 3.86178 7.05089 4.00139 6.61534L3.99749 6.52258L1.81572 4.82349L1.74434 4.85753C1.27123 5.80644 0.999756 6.87201 0.999756 7.99979C0.999756 9.12757 1.27123 10.1931 1.74434 11.142L4.00915 9.38424Z",fill:"#FBBC05"}),Z.createElement("path",{d:"M7.98042 3.70665C9.2912 3.70665 10.1754 4.27443 10.6796 4.7489L12.6497 2.82C11.4397 1.69223 9.86516 1 7.98042 1C5.2502 1 2.8923 2.5711 1.74438 4.85775L4.00144 6.61556C4.5677 4.92778 6.13445 3.70665 7.98042 3.70665Z",fill:"#EB4335"})),oe=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.71 4.54002C2.32 4.15002 2.32 3.52002 2.71 3.13002C3.1 2.74002 3.74 2.74002 4.13 3.13002L20.44 19.46C20.83 19.85 20.83 20.48 20.44 20.87C20.05 21.26 19.42 21.26 19.03 20.87L16.31 18.15C14.97 18.67 13.52 18.97 12 18.97C7 18.97 2.73 15.86 1 11.47C1.77 9.50002 3.06 7.80002 4.68 6.51002L2.71 4.54002ZM17 11.47C17 8.71002 14.76 6.47002 12 6.47002C11.49 6.47002 11 6.57002 10.53 6.71002L8.36 4.54002C9.51 4.17002 10.73 3.97002 12 3.97002C17 3.97002 21.27 7.08002 23 11.46C22.31 13.22 21.21 14.76 19.82 15.99L16.76 12.93C16.9 12.47 17 11.98 17 11.47ZM12 16.47C9.24 16.47 7 14.23 7 11.47C7 10.7 7.18 9.97002 7.49 9.33002L9.06 10.9C9.03 11.08 9 11.27 9 11.47C9 13.13 10.34 14.47 12 14.47C12.2 14.47 12.38 14.44 12.57 14.4L14.14 15.97C13.49 16.29 12.77 16.47 12 16.47ZM14.97 11.14C14.82 9.74002 13.72 8.65002 12.33 8.50002L14.97 11.14Z"})),re=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("circle",{cx:12.5,cy:12,r:10,stroke:"#DBDFE5",strokeWidth:4}),Z.createElement("mask",{id:"path-2-inside-1_917_29592",fill:"white"},Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z"})),Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z",stroke:"#2D87F3",strokeWidth:8,mask:"url(#path-2-inside-1_917_29592)"},Z.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12.5 12",to:"360 12.5 12",dur:"2s",repeatCount:"indefinite"})));export{W as CheckCircle,_ as ChevronDown,Q as ChevronLeft,X as ChevronRight,Y as ChevronUp,$ as Circle,ee as EmailCheck,ae as EmailFail,te as Facebook,se as Google,oe as InVisible,re as Spinning};
1
+ export{i as Types}from"./index-0178ac2e.js";export{i as Constants}from"./index-1ac12915.js";export{A as Alert,e as ArticleCard,r as BMICardEmbed,v as BMRCardEmbed,s as BabyGrowthCardEmbed,t as BabyPoopEmbed,B as Badge,a as BorderHeading,y as Breadcrumbs,k as Carousel,f as CategoryCard,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,x as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,H as FixedBottomAdBlock,o as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,w as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,j as ScrollList,q as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,i as SideMenu,l as StatisticCard,n as SurveyThankyouCard,u as THRCardEmbed,m as Table,T as Tag,b as Toggle,U as UnderlinedLink,c as Uploader}from"./fixedBottomAdBlock-39fb60ae.js";export{A as Avatar,F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-f0e811c3.js";export{B as Button}from"./index-6cead89b.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,I as ImageWithHandler,T as Tabs}from"./index-fa007542.js";export{H as Heading,M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-4d74d202.js";export{I as Input}from"./index-ac148fbd.js";export{L as Label}from"./index-0f8d4769.js";export{L as Logo}from"./index-ec58f89c.js";export{A as AdBlock,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-ecaaca4c.js";export{T as Text}from"./index-bc492271.js";export{C as Container,L as LogoIcon}from"./index-12ffb4de.js";export{I as Icon}from"./index-5e9ecefe.js";export{D as Drawer,R as RadioImageGroup}from"./index-9a27c685.js";export{M as Modal,N as NewBabyProfileRadio}from"./index-8fa2f8bc.js";export{C as CustomReferenceDot}from"./index-351d6253.js";export{P as Popup,d as TogetherDataTransforms}from"./dataTransform-1d5a57a1.js";export{P as PillCarousel}from"./index-b3f8d9bb.js";export{Footer}from"./footer.js";export{u as useTranslations}from"./useTranslations-d6993743.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-8b30e9f6.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-059143ae.js";export{u as useHealthToolsCache}from"./useHealthToolCache-82eec0d7.js";export{u as useIsInit}from"./useIsInit-349ff22c.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-16bc2a17.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-0ac0ad2c.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-b3a535f9.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-072b23b4.js";export{g as CardAuthor,C as CardLink,D as CardPost,E as CardPostPopoverMore,b as CardReactions,F as CardReply,G as CardReplyPopover,K as Close,h as CreateNewPostContent,i as CreatePostDescription,j as CreatePostTitle,s as ImagePreviewPopup,I as InputCommentBar,e as LabelPin,d as LabelSortPin,f as LabelSorting,L as Loading,H as PopoverMenu,P as PopupDanger,l as PopupDoctor,k as PopupExpert,o as PopupFrame,m as PopupHospital,r as PostContent,w as PostImagePreview,v as PostSingleImageViewPopup,z as ProfileDetail,y as ProfileDetailModal,q as ShareBox,S as SharePopup,B as SkipQuestionOfExpertBtn,x as SocialLinkPreview,J as SourceList,p as SubmitReportForm,A as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,n as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-7ca455fe.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants,U as UserAvatar}from"./index.styled-5bb4f023.js";export{B as BookingSearchBar,t as CareTypes}from"./types-13364962.js";export{c as CareConstants}from"./constants-6073dbe3.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-75f8b237.js";export{S as ScreenSizeContext,j as ScreenSizeContextProvider,h as fadeIn,i as getWindowSizeGroups,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp}from"./screenSizeContext-b24a1650.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-34593baf.js";import*as Z from"react";import"styled-components";export{M as MBTheme,t as theme}from"./theme-d8fde17d.js";export{a as abbreviateNumber,f as formatPill}from"./dataTransform-f07a0a59.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-42c89d62.js";export{B as Breakpoints,M as MediaQueries,f as formatUrlWithPageParam,g as getBoundariesFromMediaQueryKey,a as getPopupWrapperDom,b as getWrapperDomWithSelector,m as makeParams,c as safeEncodeURI,s as startCase,t as toggleNoScroll}from"./utils-b5d9375f.js";export{f as formatHealthTool,g as getDynamicHealthTool,a as getDynamicHealthToolWithCache}from"./getDynamicHealthTool-eee0d4f7.js";export{g as getSocialList}from"./getSocialList-ca2fbcca.js";export{a as Cambodia,C as CaretDown,I as India,b as Indonesia,M as Malaysia,c as Myanmar,P as Phillipines,T as Taiwan,d as Thailand,V as Vietnam}from"./index-e085137d.js";export{V as Visible}from"./Visible-8104bfc0.js";import"./Onboarding-dcd86c28.js";import"date-fns/locale";import"./isProduction-6647ee09.js";import"./gAssets.js";import"./tslib.es6-a6424d8a.js";import"lodash/throttle";import"keen-slider/react";import"dayjs";import"date-fns";import"@mantine/core";import"./index.styled-53cab956.js";import"@mantine/dates";import"./index-7ee1784b.js";import"./index-b3fc6e3a.js";import"@mantine/carousel";import"@mantine/hooks";import"./types-1bff887a.js";import"./index-66a79cf9.js";import"./index-9ea700d1.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"uuid";import"./core-43c7ffd1.js";import"./normalizeLink-9e913eae.js";import"string-format";import"./index-bc874d31.js";import"lodash/debounce";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"react-dom";import"./index.styled-15b0117c.js";import"innertext";import"react-contenteditable";import"dayjs/plugin/relativeTime";import"./index-707c78b0.js";import"slugify";import"react-loading-skeleton";import"lodash/shuffle";const W=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66797 9.99984C1.66797 5.39984 5.4013 1.6665 10.0013 1.6665C14.6013 1.6665 18.3346 5.39984 18.3346 9.99984C18.3346 14.5998 14.6013 18.3332 10.0013 18.3332C5.4013 18.3332 1.66797 14.5998 1.66797 9.99984ZM4.75147 10.5828L7.74314 13.5745C8.06814 13.8995 8.60147 13.8995 8.91814 13.5745L15.2431 7.24948C15.5681 6.92448 15.5681 6.39948 15.2431 6.07448C14.9181 5.74948 14.3931 5.74948 14.0681 6.07448L8.3348 11.8078L5.92647 9.40781C5.60147 9.08281 5.07647 9.08281 4.75147 9.40781C4.59543 9.56351 4.50773 9.77488 4.50773 9.99531C4.50773 10.2157 4.59543 10.4271 4.75147 10.5828Z"}),Z.createElement("path",{d:"M7.74322 13.5772L4.75155 10.5856C4.59551 10.4299 4.50781 10.2185 4.50781 9.99808C4.50781 9.77765 4.59551 9.56627 4.75155 9.41058C5.07655 9.08558 5.60155 9.08558 5.92655 9.41058L8.33488 11.8106L14.0682 6.07725C14.3932 5.75225 14.9182 5.75225 15.2432 6.07725C15.5682 6.40225 15.5682 6.92725 15.2432 7.25225L8.91822 13.5772C8.60155 13.9022 8.06822 13.9022 7.74322 13.5772Z",fill:"white"})),_=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"})),Q=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M10.929 12.0002L14.75 8.17915C15.164 7.76515 15.164 7.09315 14.75 6.67915C14.336 6.26515 13.664 6.26515 13.25 6.67915L8.63605 11.2932C8.24505 11.6842 8.24505 12.3172 8.63605 12.7072L13.25 17.3212C13.664 17.7352 14.336 17.7352 14.75 17.3212C15.164 16.9072 15.164 16.2352 14.75 15.8212L10.929 12.0002Z"})),X=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.071 12.0002L10.25 8.17915C9.83598 7.76515 9.83598 7.09315 10.25 6.67915C10.664 6.26515 11.336 6.26515 11.75 6.67915L16.364 11.2932C16.755 11.6842 16.755 12.3172 16.364 12.7072L11.75 17.3212C11.336 17.7352 10.664 17.7352 10.25 17.3212C9.83598 16.9072 9.83598 16.2352 10.25 15.8212L14.071 12.0002Z"})),Y=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M7.80267 6.61943L10.35 9.16676C10.626 9.44276 11.074 9.44276 11.35 9.16676C11.626 8.89076 11.626 8.44276 11.35 8.16676L8.27401 5.09076C8.01334 4.8301 7.59134 4.8301 7.33134 5.09076L4.25534 8.16676C3.97934 8.44276 3.97934 8.89076 4.25534 9.16676C4.53134 9.44276 4.97934 9.44276 5.25534 9.16676L7.80267 6.61943Z"})),$=e=>Z.createElement("svg",Object.assign({className:"spinner",viewBox:"0 0 50 50",fill:"currentColor",width:"1em",height:"1em"},e),Z.createElement("circle",{className:"path",cx:25,cy:25,r:20,stroke:"currentColor",strokeWidth:5})),ee=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M66.03 20.0896L66.0298 20.0896L54.445 17.1371L33.1143 11.7035H33.1064L33.0912 11.6997L27.0869 10.1654L66.03 20.0896ZM66.03 20.0896C66.408 20.1854 66.7633 20.3548 67.0757 20.5882C67.3881 20.8215 67.6514 21.1141 67.8506 21.4493C68.0498 21.7845 68.1809 22.1557 68.2364 22.5417C68.2919 22.9276 68.2708 23.3207 68.1742 23.6985L68.1742 23.6986M66.03 20.0896L68.1742 23.6986M68.1742 23.6986L66.3914 30.6842L66.5125 30.7151M68.1742 23.6986L66.5125 30.7151M66.5125 30.7151L66.3914 30.6842L63.9545 40.241L37.7595 53.4735L16.9721 37.5413M66.5125 30.7151L16.9721 37.5413M16.9721 37.5413L17.075 37.4096L17.0911 37.3889L17.0976 37.3634L21.0735 21.7341L21.0805 21.7254L21.0871 21.6992L23.477 12.3089C23.6715 11.546 24.1611 10.8916 24.838 10.4896C25.515 10.0876 26.3239 9.97102 27.0868 10.1654L16.9721 37.5413Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.25}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M40.797 39.6731C46.1394 41.0733 51.6054 37.8775 53.0056 32.5351C54.4058 27.1927 51.21 21.7268 45.8676 20.3266C40.5252 18.9263 35.0592 22.1221 33.659 27.4645C32.2588 32.8069 35.4546 38.2729 40.797 39.6731Z",fill:"#00CB8A"}),Z.createElement("path",{d:"M42.0398 32.9697C41.6263 32.862 41.238 32.6738 40.8973 32.4158C40.5566 32.1578 40.2701 31.8352 40.0542 31.4663L39.2137 30.0279C39.1039 29.8324 39.0753 29.6016 39.134 29.3852C39.1927 29.1689 39.3341 28.9842 39.5277 28.871C39.7212 28.7579 39.9515 28.7252 40.1689 28.7802C40.3862 28.8352 40.5733 28.9733 40.6898 29.1649L41.5304 30.6033C41.6319 30.7769 41.7666 30.9289 41.9269 31.0504C42.0871 31.172 42.2698 31.2608 42.4643 31.3118C42.6589 31.3628 42.8616 31.375 43.0609 31.3477C43.2602 31.3203 43.4522 31.254 43.6258 31.1525L52.5607 26.5173C52.7613 26.4192 52.9924 26.4034 53.2045 26.4734C53.4166 26.5435 53.5929 26.6937 53.6956 26.892C53.7984 27.0903 53.8195 27.3209 53.7544 27.5346C53.6893 27.7483 53.5432 27.928 53.3473 28.0353L44.4483 32.6486C44.0877 32.8581 43.6894 32.9943 43.2761 33.0494C42.8628 33.1045 42.4427 33.0774 42.0398 32.9697Z",fill:"white"})),ae=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M65.9578 20.3722L65.9583 20.3723C66.2991 20.4587 66.6195 20.6115 66.9012 20.8218C67.1829 21.0322 67.4203 21.2961 67.5999 21.5983C67.7794 21.9005 67.8976 22.2352 67.9477 22.5832C67.9978 22.9312 67.9787 23.2856 67.8916 23.6262L67.8916 23.6264L66.1088 30.612L66.1088 30.6121L63.7046 40.0405L37.7915 53.1306L17.3693 37.4783L17.3803 37.4353L21.3406 21.8671L21.3476 21.8584L21.3698 21.7712L23.7596 12.381C23.7596 12.3809 23.7597 12.3809 23.7597 12.3808C23.9351 11.6929 24.3765 11.1028 24.9869 10.7404C25.5974 10.3779 26.3269 10.2727 27.0149 10.4481L33.019 11.9822L33.0697 11.9952H33.0777L54.3729 17.4197L54.373 17.4197L65.9578 20.3722Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.833333}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M36.2349 37.7184C40.4975 41.2301 46.7998 40.6212 50.3115 36.3586C53.8231 32.0959 53.2143 25.7936 48.9516 22.282C44.689 18.7703 38.3867 19.3792 34.875 23.6418C31.3634 27.9045 31.9722 34.2068 36.2349 37.7184Z",fill:"#FF5331"}),Z.createElement("g",{clipPath:"url(#clip0_1176_26159)"},Z.createElement("path",{d:"M48.4022 27.8621C48.317 27.6306 48.1433 27.4425 47.9195 27.3391C47.6956 27.2357 47.4398 27.2254 47.2084 27.3105L43.1437 28.8064L41.6479 24.7418C41.5597 24.5144 41.3858 24.3308 41.1635 24.2304C40.9413 24.1301 40.6885 24.1211 40.4596 24.2053C40.2308 24.2895 40.0442 24.4602 39.94 24.6807C39.8358 24.9012 39.8224 25.1538 39.9026 25.3841L41.3984 29.4487L37.3338 30.9445C37.2172 30.9851 37.1098 31.0486 37.018 31.1312C36.9262 31.2137 36.8517 31.3137 36.7989 31.4254C36.7462 31.537 36.7162 31.6581 36.7107 31.7815C36.7052 31.9048 36.7243 32.0281 36.767 32.144C36.8096 32.2598 36.8749 32.3661 36.9591 32.4565C37.0432 32.5469 37.1445 32.6196 37.2571 32.6704C37.3697 32.7212 37.4912 32.7491 37.6146 32.7524C37.7381 32.7558 37.861 32.7345 37.9761 32.6898L42.0407 31.194L43.5366 35.2586C43.6247 35.486 43.7987 35.6696 44.021 35.7699C44.2432 35.8703 44.496 35.8793 44.7248 35.7951C44.9537 35.7109 45.1403 35.5401 45.2445 35.3197C45.3487 35.0992 45.3621 34.8466 45.2819 34.6163L43.7861 30.5517L47.8507 29.0559C48.0821 28.9707 48.2702 28.797 48.3736 28.5732C48.477 28.3493 48.4873 28.0935 48.4022 27.8621Z",fill:"white"})),Z.createElement("defs",null,Z.createElement("clipPath",{id:"clip0_1176_26159"},Z.createElement("rect",{width:11.1603,height:11.1603,fill:"white",transform:"translate(39.8672 22.5942) rotate(24.7957)"})))),te=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14 0H3C1.61929 0 0.5 1.11929 0.5 2.5V13.5C0.5 14.8807 1.61929 16 3 16H14C15.3807 16 16.5 14.8807 16.5 13.5V2.5C16.5 1.11929 15.3807 0 14 0Z",fill:"#1778F2"}),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.657 16V9.7495H12.2845L12.5 7.595H10.657L10.66 6.517C10.66 5.9555 10.71 5.6545 11.4715 5.6545H12.4885V3.5H10.861C8.906 3.5 8.2185 4.545 8.2185 6.302V7.5955H7V9.7495H8.2185V16H10.657Z",fill:"white"})),se=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.6819 8.15547C14.6819 7.57992 14.6353 7.15992 14.5345 6.72437H7.98047V9.32212H11.8275C11.75 9.96769 11.3312 10.9399 10.4004 11.5932L10.3874 11.6802L12.4596 13.29L12.6032 13.3044C13.9217 12.0832 14.6819 10.2866 14.6819 8.15547Z",fill:"#4285F4"}),Z.createElement("path",{d:"M7.98042 15.0001C9.86516 15.0001 11.4474 14.3778 12.6031 13.3045L10.4003 11.5934C9.81089 12.0056 9.01973 12.2934 7.98042 12.2934C6.13445 12.2934 4.5677 11.0723 4.0092 9.38452L3.92733 9.39149L1.77256 11.0637L1.74438 11.1423C2.8923 13.4289 5.2502 15.0001 7.98042 15.0001Z",fill:"#34A853"}),Z.createElement("path",{d:"M4.00915 9.38424C3.86178 8.94869 3.7765 8.48199 3.7765 7.99979C3.7765 7.51754 3.86178 7.05089 4.00139 6.61534L3.99749 6.52258L1.81572 4.82349L1.74434 4.85753C1.27123 5.80644 0.999756 6.87201 0.999756 7.99979C0.999756 9.12757 1.27123 10.1931 1.74434 11.142L4.00915 9.38424Z",fill:"#FBBC05"}),Z.createElement("path",{d:"M7.98042 3.70665C9.2912 3.70665 10.1754 4.27443 10.6796 4.7489L12.6497 2.82C11.4397 1.69223 9.86516 1 7.98042 1C5.2502 1 2.8923 2.5711 1.74438 4.85775L4.00144 6.61556C4.5677 4.92778 6.13445 3.70665 7.98042 3.70665Z",fill:"#EB4335"})),oe=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.71 4.54002C2.32 4.15002 2.32 3.52002 2.71 3.13002C3.1 2.74002 3.74 2.74002 4.13 3.13002L20.44 19.46C20.83 19.85 20.83 20.48 20.44 20.87C20.05 21.26 19.42 21.26 19.03 20.87L16.31 18.15C14.97 18.67 13.52 18.97 12 18.97C7 18.97 2.73 15.86 1 11.47C1.77 9.50002 3.06 7.80002 4.68 6.51002L2.71 4.54002ZM17 11.47C17 8.71002 14.76 6.47002 12 6.47002C11.49 6.47002 11 6.57002 10.53 6.71002L8.36 4.54002C9.51 4.17002 10.73 3.97002 12 3.97002C17 3.97002 21.27 7.08002 23 11.46C22.31 13.22 21.21 14.76 19.82 15.99L16.76 12.93C16.9 12.47 17 11.98 17 11.47ZM12 16.47C9.24 16.47 7 14.23 7 11.47C7 10.7 7.18 9.97002 7.49 9.33002L9.06 10.9C9.03 11.08 9 11.27 9 11.47C9 13.13 10.34 14.47 12 14.47C12.2 14.47 12.38 14.44 12.57 14.4L14.14 15.97C13.49 16.29 12.77 16.47 12 16.47ZM14.97 11.14C14.82 9.74002 13.72 8.65002 12.33 8.50002L14.97 11.14Z"})),re=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("circle",{cx:12.5,cy:12,r:10,stroke:"#DBDFE5",strokeWidth:4}),Z.createElement("mask",{id:"path-2-inside-1_917_29592",fill:"white"},Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z"})),Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z",stroke:"#2D87F3",strokeWidth:8,mask:"url(#path-2-inside-1_917_29592)"},Z.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12.5 12",to:"360 12.5 12",dur:"2s",repeatCount:"indefinite"})));export{W as CheckCircle,_ as ChevronDown,Q as ChevronLeft,X as ChevronRight,Y as ChevronUp,$ as Circle,ee as EmailCheck,ae as EmailFail,te as Facebook,se as Google,oe as InVisible,re as Spinning};
@@ -1,4 +1,4 @@
1
- import{_ as e}from"./tslib.es6-c7baa758.js";import t,{useMemo as o}from"react";import{L as n}from"./Onboarding-a1460ceb.js";import{CommonGAssets as i}from"./gAssets.js";import{t as a}from"./theme-23115d69.js";import r from"styled-components";import{T as s}from"./index-5124a84f.js";import{C as l}from"./index-bd6fff6a.js";const c=r.div`
1
+ import{_ as e}from"./tslib.es6-a6424d8a.js";import t,{useMemo as o}from"react";import{L as n}from"./Onboarding-dcd86c28.js";import{CommonGAssets as i}from"./gAssets.js";import{t as a}from"./theme-d8fde17d.js";import r from"styled-components";import{T as s}from"./index-bc492271.js";import{C as l}from"./index-b3fc6e3a.js";const c=r.div`
2
2
  display: inline-flex;
3
3
  overflow: hidden;
4
4
  width: ${e=>e.size}px;
@@ -1,4 +1,4 @@
1
- import e,{css as o}from"styled-components";import{t}from"./theme-23115d69.js";import{M as r}from"./utils-65cc3684.js";import{_ as i}from"./tslib.es6-c7baa758.js";import a,{useState as s,forwardRef as l}from"react";import{createStyles as n}from"@mantine/core";import{L as c}from"./index-2322501a.js";import{C as d}from"./index-b55a48f3.js";import{T as C}from"./index-5124a84f.js";import"dayjs";import{s as p,e as h,b as g,f as v,c as m,g as u,a as w,d as x,h as f}from"./screenSizeContext-4ba69e1d.js";import"./index-e2b6628b.js";import"./isProduction-60318bee.js";import"./Onboarding-a1460ceb.js";import"./gAssets.js";const b=e.div`
1
+ import e,{css as o}from"styled-components";import{t}from"./theme-d8fde17d.js";import{M as r}from"./utils-b5d9375f.js";import{_ as i}from"./tslib.es6-a6424d8a.js";import a,{useState as s,forwardRef as l}from"react";import{createStyles as n}from"@mantine/core";import{L as c}from"./index-0f8d4769.js";import{C as d}from"./index-12ffb4de.js";import{T as C}from"./index-bc492271.js";import"dayjs";import{s as p,e as h,b as g,f as v,c as m,g as u,a as w,d as x,h as f}from"./screenSizeContext-b24a1650.js";import"./index-1ac12915.js";import"./isProduction-6647ee09.js";import"./Onboarding-dcd86c28.js";import"./gAssets.js";const b=e.div`
2
2
  background-color: var(--background-color, transparent);
3
3
  color: white;
4
4
  cursor: pointer;
@@ -1,4 +1,4 @@
1
- import{_ as t}from"./tslib.es6-c7baa758.js";import e from"react";import i from"styled-components";const p=i((i=>{var{type:p}=i,n=t(i,["type"]);return e.createElement(p,n)}))`
1
+ import{_ as t}from"./tslib.es6-a6424d8a.js";import e from"react";import i from"styled-components";const p=i((i=>{var{type:p}=i,n=t(i,["type"]);return e.createElement(p,n)}))`
2
2
  color: var(--text-color, ${t=>t.theme.mbColors.dark});
3
3
  font-family: Krub;
4
4
  font-weight: 600;