@hhgtech/hhg-components 1.26.8 → 1.26.9

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 (266) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/onboarding/onboardingForm/index.d.ts +1 -0
  5. package/build/components.js +1 -1
  6. package/build/constants.js +1 -1
  7. package/build/core-bce57a3f.js +1 -0
  8. package/build/{dataTransform-b9779c7b.js → dataTransform-2e3216c1.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +2 -2
  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-1ba5a93d.js → core-eaca75d2.js} +1 -1
  16. package/build/esm/{dataTransform-15d0f3e5.js → dataTransform-099866f1.js} +1 -1
  17. package/build/esm/ecom.js +1 -1
  18. package/build/esm/footer.js +1 -1
  19. package/build/esm/gAssets.js +1 -1
  20. package/build/esm/{getDynamicHealthTool-a87f5dc5.js → getDynamicHealthTool-30f0d9c8.js} +1 -1
  21. package/build/esm/{getSocialList-6c2d884e.js → getSocialList-2f0bba5d.js} +1 -1
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/{index-e2d3b625.js → index-0823a58a.js} +1 -1
  25. package/build/esm/{index-8157114c.js → index-0bd8f75a.js} +1 -1
  26. package/build/esm/{index-862be2c0.js → index-0fb0e636.js} +2 -2
  27. package/build/esm/{index-d8e51cf5.js → index-1433f24d.js} +1 -1
  28. package/build/esm/{index-e4fc4d53.js → index-22caf7f4.js} +1 -1
  29. package/build/esm/{index-3c3305bd.js → index-372b593f.js} +1 -1
  30. package/build/esm/{index-a84cf731.js → index-3969abb6.js} +1 -1
  31. package/build/esm/{index-40559b61.js → index-4c1722c9.js} +1 -1
  32. package/build/esm/{index-bc8298c6.js → index-51e350e5.js} +1 -1
  33. package/build/esm/{index-9dc57d76.js → index-5fd031d8.js} +1 -1
  34. package/build/esm/{index-5939dafb.js → index-5ff9487f.js} +1 -1
  35. package/build/esm/{index-0f61e70e.js → index-714f7c99.js} +1 -1
  36. package/build/esm/{index-9def8ea9.js → index-773f005a.js} +6 -6
  37. package/build/esm/{index-871aefd9.js → index-84827b34.js} +1 -1
  38. package/build/esm/{index-e7794a2c.js → index-9d8d196e.js} +1 -1
  39. package/build/esm/{index-159e23dd.js → index-ad31ca14.js} +1 -1
  40. package/build/esm/{index-cbc2ff64.js → index-b3bac285.js} +1 -1
  41. package/build/esm/{index-3a76c7ed.js → index-c6035781.js} +1 -1
  42. package/build/esm/{index-ccd9a1c1.js → index-c80835a2.js} +1 -1
  43. package/build/esm/{index-cebbf552.js → index-d685c854.js} +1 -1
  44. package/build/esm/{index-04fb5dcf.js → index-da540258.js} +1 -1
  45. package/build/esm/{index-9147523d.js → index-e2c1d836.js} +1 -1
  46. package/build/esm/{index-ba418d56.js → index-e86baa73.js} +1 -1
  47. package/build/esm/index.js +1 -1
  48. package/build/esm/{index.styled-c2b8575f.js → index.styled-474cfb0b.js} +1 -1
  49. package/build/esm/{index.styled-4540e146.js → index.styled-7761c40a.js} +1 -1
  50. package/build/esm/{index.styled-47f8a12f.js → index.styled-8556d345.js} +1 -1
  51. package/build/esm/{index.styled-e09431ef.js → index.styled-8fb8e9b8.js} +6 -6
  52. package/build/esm/{index.styled-0520150f.js → index.styled-fe007e9a.js} +1 -1
  53. package/build/esm/lead.js +1 -1
  54. package/build/esm/mantine.js +1 -1
  55. package/build/esm/misc.js +1 -1
  56. package/build/esm/navigation.js +1 -1
  57. package/build/esm/onboarding.js +1 -1
  58. package/build/esm/pwg.js +1 -1
  59. package/build/esm/{routing-fb90d6e9.js → routing-05aee8b0.js} +1 -1
  60. package/build/esm/{screenSizeContext-4828f72d.js → screenSizeContext-afe24f18.js} +3 -3
  61. package/build/esm/together.js +1 -1
  62. package/build/esm/{translationsProvider-416f647a.js → translationsProvider-3c6be0a3.js} +1 -1
  63. package/build/esm/{types-3db4a213.js → types-2e3179ac.js} +1 -1
  64. package/build/esm/{types-81d0f5f2.js → types-a26ed60e.js} +1 -1
  65. package/build/esm/types.js +1 -1
  66. package/build/esm/useHealthToolCache-9a837339.js +1 -0
  67. package/build/esm/{useRafState-941456c0.js → useRafState-df251936.js} +1 -1
  68. package/build/esm/{useTranslations-2c71b7e9.js → useTranslations-c605802e.js} +1 -1
  69. package/build/esm/{utils-471a42e0.js → utils-f05931b6.js} +14 -14
  70. package/build/esm/vaccination.js +1 -1
  71. package/build/footer.js +1 -1
  72. package/build/gAssets.js +1 -1
  73. package/build/{getDynamicHealthTool-ca04d9b6.js → getDynamicHealthTool-c32d21e9.js} +1 -1
  74. package/build/{getSocialList-7a55a235.js → getSocialList-c7d47760.js} +1 -1
  75. package/build/hooks.js +1 -1
  76. package/build/i18n.js +1 -1
  77. package/build/index-08ebf815.js +1 -0
  78. package/build/{index-bb7f02ef.js → index-162a3187.js} +1 -1
  79. package/build/{index-216d3020.js → index-178bcba4.js} +1 -1
  80. package/build/index-240af476.js +1 -0
  81. package/build/{index-447b4a65.js → index-2ad56564.js} +1 -1
  82. package/build/{index-8ae30e70.js → index-3cf6c798.js} +1 -1
  83. package/build/{index-e2672091.js → index-43d4148a.js} +1 -1
  84. package/build/{index-c18db254.js → index-4488afbb.js} +1 -1
  85. package/build/{index-6a132e53.js → index-5bcb8e18.js} +1 -1
  86. package/build/{index-5e9d910a.js → index-638f59f0.js} +1 -1
  87. package/build/{index-8c508d33.js → index-6879aad8.js} +1 -1
  88. package/build/{index-72cf8f92.js → index-828fea6d.js} +3 -3
  89. package/build/{index-db7eaf44.js → index-89ddf392.js} +1 -1
  90. package/build/{index-18d90296.js → index-9a66bc04.js} +1 -1
  91. package/build/{index-1c15ef03.js → index-9b3628f7.js} +1 -1
  92. package/build/{index-9b990a32.js → index-a8828931.js} +1 -1
  93. package/build/{index-80881f0f.js → index-aa38a545.js} +1 -1
  94. package/build/{index-1e8607fb.js → index-bbb6ca10.js} +1 -1
  95. package/build/{index-cdb1bfcc.js → index-be75135e.js} +1 -1
  96. package/build/{index-327ade5f.js → index-c7e0b905.js} +1 -1
  97. package/build/{index-aa274713.js → index-c831afb1.js} +1 -1
  98. package/build/{index-2cc47736.js → index-dfffbff4.js} +1 -1
  99. package/build/{index-6cf93db3.js → index-f79d0367.js} +1 -1
  100. package/build/index.js +1 -1
  101. package/build/{index.styled-30480c8e.js → index.styled-1b1f2c69.js} +1 -1
  102. package/build/index.styled-90363295.js +50 -0
  103. package/build/{index.styled-d0100cb8.js → index.styled-9123dab7.js} +1 -1
  104. package/build/{index.styled-cef9c18c.js → index.styled-c128f3cb.js} +1 -1
  105. package/build/{index.styled-99f321d8.js → index.styled-c95f67be.js} +1 -1
  106. package/build/lead.js +1 -1
  107. package/build/mantine.js +1 -1
  108. package/build/misc.js +1 -1
  109. package/build/navigation.js +1 -1
  110. package/build/onboarding.js +1 -1
  111. package/build/pwg.js +4 -4
  112. package/build/{routing-619393c7.js → routing-79e9fce4.js} +1 -1
  113. package/build/screenSizeContext-3cd42202.js +81 -0
  114. package/build/together.js +1 -1
  115. package/build/{translationsProvider-476b882a.js → translationsProvider-f627001f.js} +1 -1
  116. package/build/{types-18be4e73.js → types-026ff49f.js} +37 -37
  117. package/build/{types-99091b1e.js → types-b4c9e644.js} +23 -23
  118. package/build/types.js +1 -1
  119. package/build/useHealthToolCache-5bb0b780.js +1 -0
  120. package/build/{useRafState-a5c61d03.js → useRafState-2139defa.js} +1 -1
  121. package/build/useTranslations-21728373.js +1 -0
  122. package/build/{utils-e5f5aaf1.js → utils-08380dce.js} +8 -8
  123. package/build/vaccination.js +1 -1
  124. package/package.json +1 -1
  125. package/build/core-b177367b.js +0 -1
  126. package/build/esm/useHealthToolCache-41849924.js +0 -1
  127. package/build/index-29934d81.js +0 -1
  128. package/build/index-447f3937.js +0 -1
  129. package/build/index.styled-e729496c.js +0 -50
  130. package/build/screenSizeContext-e67214d1.js +0 -81
  131. package/build/useHealthToolCache-3935c40e.js +0 -1
  132. package/build/useTranslations-b1da09b8.js +0 -1
  133. /package/build/{BMI_BOYS.percentile.monthly-0150f5e0.js → BMI_BOYS.percentile.monthly-65c1c1b9.js} +0 -0
  134. /package/build/{BMI_BOYS.percentile.weekly-3897bf59.js → BMI_BOYS.percentile.weekly-329d55ce.js} +0 -0
  135. /package/build/{BMI_BOYS.percentile.yearly-02db591b.js → BMI_BOYS.percentile.yearly-ba61708b.js} +0 -0
  136. /package/build/{BMI_BOYS.zscore.monthly-ed95bc1e.js → BMI_BOYS.zscore.monthly-67c47ae8.js} +0 -0
  137. /package/build/{BMI_BOYS.zscore.weekly-ae9c59c6.js → BMI_BOYS.zscore.weekly-2c82a17f.js} +0 -0
  138. /package/build/{BMI_BOYS.zscore.yearly-694857d9.js → BMI_BOYS.zscore.yearly-2a36a22b.js} +0 -0
  139. /package/build/{BMI_GIRLS.percentile.monthly-59cf5d6c.js → BMI_GIRLS.percentile.monthly-e8d8b043.js} +0 -0
  140. /package/build/{BMI_GIRLS.percentile.weekly-2026cd98.js → BMI_GIRLS.percentile.weekly-0c7be973.js} +0 -0
  141. /package/build/{BMI_GIRLS.percentile.yearly-986732ec.js → BMI_GIRLS.percentile.yearly-e5459d9d.js} +0 -0
  142. /package/build/{BMI_GIRLS.zscore.monthly-1a546f91.js → BMI_GIRLS.zscore.monthly-c0930f28.js} +0 -0
  143. /package/build/{BMI_GIRLS.zscore.weekly-88e0fa97.js → BMI_GIRLS.zscore.weekly-80b80949.js} +0 -0
  144. /package/build/{BMI_GIRLS.zscore.yearly-197b7890.js → BMI_GIRLS.zscore.yearly-1a85ea3f.js} +0 -0
  145. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-28688c69.js → HEAD CIRCUM_BOYS.percentile.monthly-5efd51d6.js} +0 -0
  146. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-656e5e1a.js → HEAD CIRCUM_BOYS.percentile.weekly-a8e50f1e.js} +0 -0
  147. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d0472fda.js → HEAD CIRCUM_BOYS.percentile.yearly-cb66a281.js} +0 -0
  148. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a8cadddc.js → HEAD CIRCUM_BOYS.zscore.monthly-ba711ef5.js} +0 -0
  149. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c0cd687b.js → HEAD CIRCUM_BOYS.zscore.weekly-237af1fc.js} +0 -0
  150. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-45a17522.js → HEAD CIRCUM_BOYS.zscore.yearly-d46c43ca.js} +0 -0
  151. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-fed65f4d.js → HEAD CIRCUM_GIRLS.percentile.monthly-359de71b.js} +0 -0
  152. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-9c8a10f4.js → HEAD CIRCUM_GIRLS.percentile.weekly-3a7711bb.js} +0 -0
  153. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f0ccd9dd.js → HEAD CIRCUM_GIRLS.percentile.yearly-819a5e7f.js} +0 -0
  154. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-7fb7620e.js → HEAD CIRCUM_GIRLS.zscore.monthly-e8b70d6c.js} +0 -0
  155. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-91e62e8a.js → HEAD CIRCUM_GIRLS.zscore.weekly-1636719b.js} +0 -0
  156. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-6203b029.js → HEAD CIRCUM_GIRLS.zscore.yearly-4a160915.js} +0 -0
  157. /package/build/{HEIGHT_BOYS.percentile.monthly-e3f1f758.js → HEIGHT_BOYS.percentile.monthly-aae5f4ea.js} +0 -0
  158. /package/build/{HEIGHT_BOYS.percentile.weekly-1a1700b8.js → HEIGHT_BOYS.percentile.weekly-e07df5bd.js} +0 -0
  159. /package/build/{HEIGHT_BOYS.percentile.yearly-555204da.js → HEIGHT_BOYS.percentile.yearly-f0ff2920.js} +0 -0
  160. /package/build/{HEIGHT_BOYS.zscore.monthly-5b003f04.js → HEIGHT_BOYS.zscore.monthly-b33b7eed.js} +0 -0
  161. /package/build/{HEIGHT_BOYS.zscore.weekly-0bd27690.js → HEIGHT_BOYS.zscore.weekly-6a528e0d.js} +0 -0
  162. /package/build/{HEIGHT_BOYS.zscore.yearly-0c491b6b.js → HEIGHT_BOYS.zscore.yearly-fc772f54.js} +0 -0
  163. /package/build/{HEIGHT_GIRLS.percentile.monthly-73c0e696.js → HEIGHT_GIRLS.percentile.monthly-77645433.js} +0 -0
  164. /package/build/{HEIGHT_GIRLS.percentile.weekly-a7ddbcef.js → HEIGHT_GIRLS.percentile.weekly-81798a05.js} +0 -0
  165. /package/build/{HEIGHT_GIRLS.percentile.yearly-c6f86ed2.js → HEIGHT_GIRLS.percentile.yearly-28b9cef1.js} +0 -0
  166. /package/build/{HEIGHT_GIRLS.zscore.monthly-7a048d6c.js → HEIGHT_GIRLS.zscore.monthly-a1e1d91f.js} +0 -0
  167. /package/build/{HEIGHT_GIRLS.zscore.weekly-30fab896.js → HEIGHT_GIRLS.zscore.weekly-ece7a9cb.js} +0 -0
  168. /package/build/{HEIGHT_GIRLS.zscore.yearly-a81779c3.js → HEIGHT_GIRLS.zscore.yearly-dba371f2.js} +0 -0
  169. /package/build/{Onboarding-50b70483.js → Onboarding-1e96a01c.js} +0 -0
  170. /package/build/{Visible-5171db00.js → Visible-8691b9d0.js} +0 -0
  171. /package/build/{WEIGHT_BOYS.percentile.monthly-69b51680.js → WEIGHT_BOYS.percentile.monthly-510b5f4d.js} +0 -0
  172. /package/build/{WEIGHT_BOYS.percentile.weekly-4ac72b82.js → WEIGHT_BOYS.percentile.weekly-ea71ac3d.js} +0 -0
  173. /package/build/{WEIGHT_BOYS.percentile.yearly-37953021.js → WEIGHT_BOYS.percentile.yearly-4a14baaa.js} +0 -0
  174. /package/build/{WEIGHT_BOYS.zscore.monthly-efb21526.js → WEIGHT_BOYS.zscore.monthly-fa08281a.js} +0 -0
  175. /package/build/{WEIGHT_BOYS.zscore.weekly-ad745f6f.js → WEIGHT_BOYS.zscore.weekly-87ca83f2.js} +0 -0
  176. /package/build/{WEIGHT_BOYS.zscore.yearly-6ebe1fbd.js → WEIGHT_BOYS.zscore.yearly-92ec7e52.js} +0 -0
  177. /package/build/{WEIGHT_GIRLS.percentile.monthly-5037a267.js → WEIGHT_GIRLS.percentile.monthly-b64ff9ed.js} +0 -0
  178. /package/build/{WEIGHT_GIRLS.percentile.weekly-7ded70eb.js → WEIGHT_GIRLS.percentile.weekly-6a072ba9.js} +0 -0
  179. /package/build/{WEIGHT_GIRLS.percentile.yearly-aef03951.js → WEIGHT_GIRLS.percentile.yearly-805c942f.js} +0 -0
  180. /package/build/{WEIGHT_GIRLS.zscore.monthly-d5fd8d01.js → WEIGHT_GIRLS.zscore.monthly-8cc45264.js} +0 -0
  181. /package/build/{WEIGHT_GIRLS.zscore.weekly-2f51b849.js → WEIGHT_GIRLS.zscore.weekly-29458a45.js} +0 -0
  182. /package/build/{WEIGHT_GIRLS.zscore.yearly-8cd819fe.js → WEIGHT_GIRLS.zscore.yearly-5a12b2bf.js} +0 -0
  183. /package/build/{constants-20ad0169.js → constants-de607f4d.js} +0 -0
  184. /package/build/{cookieHelper-333b8fcd.js → cookieHelper-e3e70eb3.js} +0 -0
  185. /package/build/{dataTransform-69a5c4d3.js → dataTransform-0bd1d1d6.js} +0 -0
  186. /package/build/esm/{BMI_BOYS.percentile.monthly-328b2beb.js → BMI_BOYS.percentile.monthly-17a75e3d.js} +0 -0
  187. /package/build/esm/{BMI_BOYS.percentile.weekly-a7aa34e7.js → BMI_BOYS.percentile.weekly-58f3c8ec.js} +0 -0
  188. /package/build/esm/{BMI_BOYS.percentile.yearly-4ce7945a.js → BMI_BOYS.percentile.yearly-34734ac8.js} +0 -0
  189. /package/build/esm/{BMI_BOYS.zscore.monthly-73236ed9.js → BMI_BOYS.zscore.monthly-f331bfd3.js} +0 -0
  190. /package/build/esm/{BMI_BOYS.zscore.weekly-b3ff2848.js → BMI_BOYS.zscore.weekly-02b6669e.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.zscore.yearly-e410a5ce.js → BMI_BOYS.zscore.yearly-8b6dbd27.js} +0 -0
  192. /package/build/esm/{BMI_GIRLS.percentile.monthly-2488fcfb.js → BMI_GIRLS.percentile.monthly-f47a78b1.js} +0 -0
  193. /package/build/esm/{BMI_GIRLS.percentile.weekly-b2dc3a2f.js → BMI_GIRLS.percentile.weekly-31078b59.js} +0 -0
  194. /package/build/esm/{BMI_GIRLS.percentile.yearly-2a47e307.js → BMI_GIRLS.percentile.yearly-7914df40.js} +0 -0
  195. /package/build/esm/{BMI_GIRLS.zscore.monthly-7c2648b4.js → BMI_GIRLS.zscore.monthly-ef2fa80b.js} +0 -0
  196. /package/build/esm/{BMI_GIRLS.zscore.weekly-1b004fbf.js → BMI_GIRLS.zscore.weekly-fc2859b2.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.zscore.yearly-0441becc.js → BMI_GIRLS.zscore.yearly-5e8c8ace.js} +0 -0
  198. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-587e3ef1.js → HEAD CIRCUM_BOYS.percentile.monthly-f0a9b560.js} +0 -0
  199. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f8da96c4.js → HEAD CIRCUM_BOYS.percentile.weekly-c01f614e.js} +0 -0
  200. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-3c91d6b5.js → HEAD CIRCUM_BOYS.percentile.yearly-03a28a8b.js} +0 -0
  201. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-899154c0.js → HEAD CIRCUM_BOYS.zscore.monthly-d5de3e8b.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d4c24c8f.js → HEAD CIRCUM_BOYS.zscore.weekly-a2d3f03f.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c3b1f178.js → HEAD CIRCUM_BOYS.zscore.yearly-77410c4d.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ff6f5288.js → HEAD CIRCUM_GIRLS.percentile.monthly-791abaf5.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-a178ad93.js → HEAD CIRCUM_GIRLS.percentile.weekly-de6b914e.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-8894764f.js → HEAD CIRCUM_GIRLS.percentile.yearly-391d8f3d.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-b2ae7192.js → HEAD CIRCUM_GIRLS.zscore.monthly-22118a38.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-110d5ff1.js → HEAD CIRCUM_GIRLS.zscore.weekly-033fadf5.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d63b0710.js → HEAD CIRCUM_GIRLS.zscore.yearly-1043f92c.js} +0 -0
  210. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b6406697.js → HEIGHT_BOYS.percentile.monthly-e30512f8.js} +0 -0
  211. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1f87f753.js → HEIGHT_BOYS.percentile.weekly-2669b8d2.js} +0 -0
  212. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-cf3e5700.js → HEIGHT_BOYS.percentile.yearly-9b889de2.js} +0 -0
  213. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-15d4566f.js → HEIGHT_BOYS.zscore.monthly-5f74d2ee.js} +0 -0
  214. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c0116721.js → HEIGHT_BOYS.zscore.weekly-b40182eb.js} +0 -0
  215. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-92940057.js → HEIGHT_BOYS.zscore.yearly-0ec11593.js} +0 -0
  216. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3c2914a0.js → HEIGHT_GIRLS.percentile.monthly-95c00017.js} +0 -0
  217. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f5ad157b.js → HEIGHT_GIRLS.percentile.weekly-ff8faa93.js} +0 -0
  218. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-bf945ac2.js → HEIGHT_GIRLS.percentile.yearly-f2c2a09a.js} +0 -0
  219. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-8c38ca12.js → HEIGHT_GIRLS.zscore.monthly-b739572b.js} +0 -0
  220. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-44576ab5.js → HEIGHT_GIRLS.zscore.weekly-26e015bb.js} +0 -0
  221. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-6cfef554.js → HEIGHT_GIRLS.zscore.yearly-45192b6a.js} +0 -0
  222. /package/build/esm/{Onboarding-1e0cdc14.js → Onboarding-10567429.js} +0 -0
  223. /package/build/esm/{Visible-0eceea17.js → Visible-49a5c322.js} +0 -0
  224. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-321a3654.js → WEIGHT_BOYS.percentile.monthly-69b48e8f.js} +0 -0
  225. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-f262bdce.js → WEIGHT_BOYS.percentile.weekly-1beaae43.js} +0 -0
  226. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-bcaabc13.js → WEIGHT_BOYS.percentile.yearly-7c7e9919.js} +0 -0
  227. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-caf62634.js → WEIGHT_BOYS.zscore.monthly-9283b869.js} +0 -0
  228. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5516fb26.js → WEIGHT_BOYS.zscore.weekly-1ac9a072.js} +0 -0
  229. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-99f2bd68.js → WEIGHT_BOYS.zscore.yearly-9b839b9b.js} +0 -0
  230. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2109a6da.js → WEIGHT_GIRLS.percentile.monthly-cb1c7848.js} +0 -0
  231. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-0614959f.js → WEIGHT_GIRLS.percentile.weekly-9ffe610b.js} +0 -0
  232. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5a2e7fe1.js → WEIGHT_GIRLS.percentile.yearly-7fd15451.js} +0 -0
  233. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9bf48f58.js → WEIGHT_GIRLS.zscore.monthly-6bfdcfb2.js} +0 -0
  234. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f7a1747a.js → WEIGHT_GIRLS.zscore.weekly-919cbbb2.js} +0 -0
  235. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-3bfb637c.js → WEIGHT_GIRLS.zscore.yearly-38d57df3.js} +0 -0
  236. /package/build/esm/{constants-7df11369.js → constants-4a417337.js} +0 -0
  237. /package/build/esm/{cookieHelper-1b97affb.js → cookieHelper-f076ed06.js} +0 -0
  238. /package/build/esm/{dataTransform-dc15d222.js → dataTransform-b230f97a.js} +0 -0
  239. /package/build/esm/{index-027bb069.js → index-822affa3.js} +0 -0
  240. /package/build/esm/{index-ed97452a.js → index-a740301e.js} +0 -0
  241. /package/build/esm/{isProduction-ea2805e9.js → isProduction-0fd1652a.js} +0 -0
  242. /package/build/esm/{localizeNumberFormat-bda12ec3.js → localizeNumberFormat-6198dbc9.js} +0 -0
  243. /package/build/esm/{normalizeLink-57cde8a3.js → normalizeLink-cb62ad21.js} +0 -0
  244. /package/build/esm/{theme-14d3ed36.js → theme-875e5b63.js} +0 -0
  245. /package/build/esm/{translationsContext-15f5801f.js → translationsContext-fc6486f2.js} +0 -0
  246. /package/build/esm/{tslib.es6-fe545a17.js → tslib.es6-34de753e.js} +0 -0
  247. /package/build/esm/{types-942826d2.js → types-dc04785f.js} +0 -0
  248. /package/build/esm/{useIsInit-31c73930.js → useIsInit-0a3202aa.js} +0 -0
  249. /package/build/esm/{useOutsideClick-8eb63d77.js → useOutsideClick-07eeb8f1.js} +0 -0
  250. /package/build/esm/{useScrollbarSize-3beb582b.js → useScrollbarSize-a3b4003c.js} +0 -0
  251. /package/build/esm/{useUniqueId-68407b14.js → useUniqueId-c4f0155d.js} +0 -0
  252. /package/build/esm/{utils-c9476401.js → utils-f2d53b55.js} +0 -0
  253. /package/build/{index-a559b242.js → index-81408460.js} +0 -0
  254. /package/build/{index-ed190faf.js → index-f543c132.js} +0 -0
  255. /package/build/{isProduction-eab59ecb.js → isProduction-98c7ea47.js} +0 -0
  256. /package/build/{localizeNumberFormat-683cd941.js → localizeNumberFormat-1138924a.js} +0 -0
  257. /package/build/{normalizeLink-9bc92e33.js → normalizeLink-72b84dc0.js} +0 -0
  258. /package/build/{theme-bb3c32c5.js → theme-1a9c8dfd.js} +0 -0
  259. /package/build/{translationsContext-e9495a89.js → translationsContext-293921e2.js} +0 -0
  260. /package/build/{tslib.es6-014cba8c.js → tslib.es6-68615b0b.js} +0 -0
  261. /package/build/{types-ee7c2fca.js → types-0e11a3ca.js} +0 -0
  262. /package/build/{useIsInit-c50f6304.js → useIsInit-4db8b56c.js} +0 -0
  263. /package/build/{useOutsideClick-06f23f8f.js → useOutsideClick-c07db0f6.js} +0 -0
  264. /package/build/{useScrollbarSize-2d5b6224.js → useScrollbarSize-5b3b19b1.js} +0 -0
  265. /package/build/{useUniqueId-04ab341c.js → useUniqueId-f59551e6.js} +0 -0
  266. /package/build/{utils-4678c740.js → utils-3a8eef75.js} +0 -0
@@ -1 +1 @@
1
- import{_ as e,a as t}from"./tslib.es6-fe545a17.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as r,useContext as o,useCallback as s}from"react";import{g as c}from"./core-1ba5a93d.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-68407b14.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 H,r as N,s as x,t as B,u as A,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 as F,J as I,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 re,a3 as oe,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 He,ao as Ne,ap as xe,aq as Be}from"./index.styled-0520150f.js";import{T as Ae}from"./index-e4fc4d53.js";import{d as Te,L as _e,S as Re,U as Se,T as Oe,C as Ue}from"./index-9147523d.js";import{n as je,a as Ze}from"./normalizeLink-57cde8a3.js";import{c as $e,b as Ve,d as Fe}from"./routing-fb90d6e9.js";import{P as Ie,b as De,c as ze}from"./dataTransform-15d0f3e5.js";import{L as Ge}from"./index-bc8298c6.js";import{u as We}from"./useTranslations-2c71b7e9.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-c9476401.js";import{y as Ye,P as Qe}from"./index.styled-c2b8575f.js";import{B as Je}from"./index-5939dafb.js";import{t as Xe}from"./theme-14d3ed36.js";import{g as et}from"./cookieHelper-1b97affb.js";import{Portal as tt}from"@mantine/core";import"./index-0f61e70e.js";import{C as lt}from"./index-04fb5dcf.js";import"./index.styled-47f8a12f.js";import"./index-ed97452a.js";import"./index-862be2c0.js";import"dayjs";import"./screenSizeContext-4828f72d.js";import"styled-components";import"./isProduction-ea2805e9.js";import"./Onboarding-1e0cdc14.js";import"./index-159e23dd.js";import"@mantine/hooks";import{L as at}from"./constants-7df11369.js";import nt from"string-format";import{H as it}from"./index-e2d3b625.js";import{u as rt}from"./useIsInit-31c73930.js";import ot from"lodash/debounce";const st={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},ct=({type:e="square",size:t,avatarImg:i,avatarUrl:r,firstLetter:o,backgroundColor:s,onClick:c,style:m,className:d,width:h,height:u})=>{const g=t?st[t]:void 0,[p,v]=a(!1);n((()=>{if(r){const e=document.createElement("img");e.setAttribute("src",r),e.addEventListener("error",(()=>{v(!0)}))}}),[r,v]);const E=(!r&&!i||p)&&o;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:r,"data-custom-size":!!t},i,r&&!p&&l.createElement("img",{src:r}),E&&o)},mt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),dt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ht=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"}))),ut=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"}))),gt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),pt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaSquare.png")},e)),vt=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"})))},Et=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"}))),yt=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"})),wt=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"}))),Lt=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"})),bt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Ct=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineSquare.png")},e)),kt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("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"})))),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#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"})),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-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"})),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:"#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"}))),xt=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 At=({country:e,language:t,rounded:a,height:n,width:i,isTesting:r})=>{let o,s;switch(t){case"en":o=l.createElement(ut,null),s=l.createElement(ht,null);break;case"vi":o=l.createElement(xt,null),s=l.createElement(Nt,null);break;case"id":o=l.createElement(Et,{isTesting:r}),s=l.createElement(vt,{isTesting:r});break;case"th":o=l.createElement(Ht,null),s=l.createElement(Pt,null);break;case"km":o=l.createElement(dt,null),s=l.createElement(mt,null);break;case"ms":o=l.createElement(yt,null),s=l.createElement(ft,null);break;case"my":o=l.createElement(Lt,null),s=l.createElement(wt,null);break;case"tl":o=l.createElement(Ct,null),s=l.createElement(bt,null);break;case"hi":o=l.createElement(pt,null),s=l.createElement(gt,null);break;case"zh":o=l.createElement(Mt,null),s=l.createElement(kt,null)}if(!o&&!s)switch(e){case"VN":o=l.createElement(xt,null),s=l.createElement(Nt,null);break;case"ID":o=l.createElement(Et,{isTesting:r}),s=l.createElement(vt,{isTesting:r});break;case"TH":o=l.createElement(Ht,null),s=l.createElement(Pt,null);break;case"KH":o=l.createElement(dt,null),s=l.createElement(mt,null);break;case"MY":o=l.createElement(yt,null),s=l.createElement(ft,null);break;case"MM":o=l.createElement(Lt,null),s=l.createElement(wt,null);break;case"PH":o=l.createElement(Ct,null),s=l.createElement(bt,null);break;case"IN":o=l.createElement(pt,null),s=l.createElement(gt,null);break;case"TW":o=l.createElement(Mt,null),s=l.createElement(kt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:o)},Tt=({options:e,label:t,labelRenderer:n,selected:i,onChange:r,showSelected:o=!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":o&&i===e.value,onClick:t=>{i!==e.value&&(r(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Ae,{size:"p3"},e.label),o&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},_t=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(Tt,{options:e,selected:i.value,label:l.createElement(Rt,{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},Rt=({locale:e,label:t,href:a})=>{var n,i,r;return l.createElement(E,{href:a},l.createElement(At,{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===(r=null==e?void 0:e.split("-"))||void 0===r?void 0:r[0]}),l.createElement("span",null,t))},St=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:r})=>{const[o,s]=i((()=>Ke(t)),[t]);return l.createElement(f,{lowerBound:e?0:o,upperBound:e?0:s,className:n,style:r},a)},Ot=e=>{const{allowBgScroll:t}=e||{},l=r();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())}}},Ut=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:r=!0,targetAvatar:o,id:s,className:c})=>l.createElement(y,{"data-open":a,"data-type":e,"data-animation":r,"data-target":o,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),jt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Zt="uJQBNNg",$t="TfG3dM5",Vt="aMtjFNf",Ft="cSz2RR-",It="GyFm00F";function Dt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),r=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:Zt,onClick:()=>{t&&t()}},l.createElement(ct,{className:$t,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:r,backgroundColor:"marryBaby"===a?Xe.mbColors.pink:Xe.colors.secondaryBase}),l.createElement("div",{className:Vt},l.createElement("div",{className:Ft},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:It,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 zt="gn6HmGG",Gt="FCx8FEM",Wt="zMiRxaE",qt="lZ2Z9MQ",Kt="rwm-agG",Yt="qMOscoq";const Qt=({themeName:e,locale:t,onClickItem:n})=>{const[r,o]=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:"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?o((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:zt},s.map((e=>l.createElement(Jt,{key:e.key,item:e,openKey:r,onClickItem:c,locale:t}))))},Jt=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:r}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Gt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:Wt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:qt,style:{backgroundImage:`url("${e.icon}")`}}),r(e.key),e.subMenu&&l.createElement("div",{className:Kt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Yt},e.subMenu.map((e=>l.createElement(Jt,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var Xt="-AZt1au",el="IvSIfCI",tl="eahCJov",ll="XIyViFs",al="_4y-O0w3",nl="kO8iNgD",il="a1d4E10",rl="Tdguxxf",ol="-mOxsaU",sl="yPeDBNZ";const cl={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")}},ml=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),r=i((()=>{var l,a;return(null===(a=null===(l=cl[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:al,"data-user-rank":t},l.createElement("div",{className:nl},l.createElement("div",{className:il},l.createElement("div",{className:rl,style:{backgroundImage:`url("${r}")`}}),l.createElement("h3",{className:ol},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:sl},a," ",n("userProfile.nav.header.count.posts")))))},dl=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=>dl(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}:{}},hl=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}},ul=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},gl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},pl=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=at[l])||void 0===a?void 0:a.ALL}/${(null===(n=at[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},vl=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}:{},El=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:r="helloSites",cardUrls:o=jt,enableCare:s,enableTogether:c,enableEcom:d,userInfo:h,togetherApiDomain:u,userPostsNumber:g,onClickNavigationCard:p,onClickMyProfileButton:v,onClickMenuItem:E,onClickLogout:f,isUserProfileNavigatorMenuHidden:y=!1,isMyHealthEnabled:b=!1,locale:C})=>{const{t:k}=We(),[M,P]=a(g||0),H="marryBaby"===r;n((()=>{if(h&&void 0===g){const e=et("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+nt(w.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${Te[e]}`})))(C,H,u)),{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)&&P((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)))}}),[C,null!==h,g,u,H]);const N=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?b:"eCom"!==e||d))}),[H,b]),x=i((()=>"marryBaby"===r?null:l.createElement(Je,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:f,className:ll},k("userProfile.nav.menu.logout"))),[r]),B=l=>{window.location.href=je(`${e}${t}/${l}`)},A=e=>{const t=o[e];p?p(t):B(t)};return h?l.createElement("div",{className:Xt,"data-theme":r},l.createElement(Dt,{userInfo:h,themeName:r,onClickMyProfileButton:()=>{v?v():B("profile")}}),l.createElement(ml,{themeName:r,rank:"member",numberOfPosts:M}),l.createElement("div",{className:el},N.map((e=>l.createElement(L,{className:tl,key:e,themeName:r,type:e,onClick:A})))),!y&&l.createElement(l.Fragment,null,l.createElement(Qt,{themeName:r,locale:C,onClickItem:e=>{"logout"===e.link&&f?f():e.link&&!e.subMenu&&(E?E(e.link):B(e.link))}}),x)):null},yl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,closePopup:c,siteType:m="helloSites",dispatchLogout:d,userProfileRouterPush:h,isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g=!1,togetherApiDomain:p,locale:v})=>{const E=l=>{h?h(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},f=e=>{E(e),c()};return l.createElement(Ut,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:c},l.createElement(fl,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,onClickLogout:()=>{d&&(d(),c())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{E("profile"),c()},isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g,togetherApiDomain:p,locale:v}))},wl=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:r}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(tt,null,l.createElement(Ie,{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,r("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,r("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Je,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},r("logout.popup.button.logout")),l.createElement(Je,{className:"cancel-button",color:"primary",size:"lg",onClick:t},r("logout.popup.button.cancel"))))))},Ll=({userInfo:e,siteType:i,onLoginClick:r,SSO_URL:o,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})=>{const{t:C}=We(),[H,N]=a(!1),x=(null==e?void 0:e.name)||(null==e?void 0:e.username),[B,A]=a(!1);n((()=>{A(!0)}),[]);const{containerRef:T,onContainerFocus:_,onContainerBlur:R,onButtonMouseDown:S,onClose:O}=Ot();return L?l.createElement(Je,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:T,style:y,tabIndex:0,onBlur:R,onFocus:_},l.createElement("div",{onMouseDown:S},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(ct,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==e?void 0:e.avatar,firstLetter:x&&x.length?x[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?Xe.mbColors.pink:Xe.colors.secondaryBase})),l.createElement(yl,{UP_BASEPATH:p,SSO_URL:o,dispatchLogout:()=>{O(),N(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,closePopup:O,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(wl,{openLogoutPopup:H,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),N(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){N(!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(`${o}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:r},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:r}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:r,style:{paddingLeft:16}},l.createElement(Ae,{size:"p3",color:Xe.mbColors.pink},C("navigation.loginJoin"))),l.createElement(Je,{className:"login-btn",size:"md",color:"tertiary",onClick:r,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},C("navigation.loginJoin"))))};var bl="_6gGCHV-",Cl="YDzfyQU";const kl=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Je,{className:bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t)},n):l.createElement("a",{href:a,className:`${Cl} care-button no-replace-click`},l.createElement(Je,{className:bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Ml="IQdn7tn",Pl="_1jX3mGY",Hl="arD755Y";function Nl({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 xl({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}=o(H),{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(N,null))})},Al=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:r})=>{const{siteType:s}=o(H);return l.createElement(x,null,l.createElement(B,null,l.createElement(it,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},r)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(A,{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}})),l.createElement("p",null,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"}})))))},Tl=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:r}}=o(H);if(!e)return null;const s=`${r.CARE_URL_FE}/${null===(a=at[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(F,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},_l=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:r}=o(H);return l.createElement(I,{"data-theme":r},l.createElement(D,null,l.createElement("img",{src:"marryBaby"===r?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(Je,{theme:r,className:"survey-contact-submit",size:"md"},n)))))},Rl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:r}=o(H);return l.createElement(q,null,l.createElement(K,null,l.createElement(it,{tag:"marryBaby"===r?"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":r},t,l.createElement("img",{src:"marryBaby"===r?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},Sl=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Rl,{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(Tl,{key:t,index:t,item:e})))):l.createElement(_l,{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")}))},Ol=({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,Ul=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=o(H);return l.createElement(Rl,{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(Ol,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(_l,{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")}))},jl=({spotlights:e=[]})=>{const{configs:{statics:t}}=o(H),{t:a}=We();return l.createElement(Rl,{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(_l,{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")}))},Zl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=o(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(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(re,null,e.title),l.createElement(oe,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"})))},$l=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=o(H);if(!e)return null;const r=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:r,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":r,"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()))},Vl=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=o(H);return l.createElement(Rl,{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($l,{key:t,index:t,item:e,color:n[t]}):l.createElement(Zl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(_l,{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")}))},Fl=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:r,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=o(H),{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(Al,{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(Ul,{spotlightsList:(null==r?void 0:r.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(Vl,{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(Sl,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=at[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(jl,{spotlights:null==m?void 0:m.spotlights})))},Il=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=o(H),{containerRef:i,onContainerFocus:r,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Ot();return l.createElement(St,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Ml},l.createElement("div",{className:Pl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:r},l.createElement("div",{className:Hl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(Nl,{className:"mobile-close-icon"}),l.createElement(xl,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Fl,{menuItems:t,closePopup:m}))))};var Dl="-XmTq5-",zl="V-oxu20";const Gl=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:r,onClose:o}=Ot({allowBgScroll:!0}),s=rt();return!e.popupType&&e.link?l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:zl},e.name)):l.createElement("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:r,className:zl},e.name,e.popupType&&l.createElement("div",{className:Dl},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:o}):null)};var Wl="eJS8-if",ql="EuQrB-3",Kl="_0JtBh8L";const Yl=({onClosePopup:e})=>l.createElement("div",{className:`${Kl} 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"}))),Ql=({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(lt,null,!i&&l.createElement("div",{className:ql},l.createElement(Yl,{onClosePopup:e})),l.createElement(lt,{className:Wl},a))),Jl=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:r}=We(),{locale:s,configs:{statics:c}}=o(H),m=`${c.CARE_URL_FE}/${null===(i=at[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(Ql,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Al,{headingTitle:r("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:r("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:pl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Sl,{spotlights:n,hrefViewMore:m}))},Xl=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:r,configs:{statics:s}}=o(H);return l.createElement(Ql,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Al,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/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(Ul,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/spotlight/`}))},ea=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:r}}=o(H);return l.createElement(Ql,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Al,{hrefViewMore:Ze(r.TOGETHER_URL_FE),UrlFE:je(r.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(jl,{spotlights:n}))},ta=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var r;const{t:s}=We(),{configs:{statics:c}}=o(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(r=Re[e])||void 0===r?void 0:r.HEALTH_TOOLS)||""}`;return l.createElement(Ql,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Al,{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(Vl,{spotlightHealthTools:n,hrefViewMore:m}))},la=({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,enableNavTogether:P,enableProfileEcom:N,enableProfileNavigatorMenu:x},userState:{userInfo:B},onLogout:A,userProfileRouterPush:T,isUserLoading:_}=o(H),{t:R}=We(),{SSO_URL:S,HOME_PAGE_URL:O}=L,U=!!E,[j,Z]=a(!1),$=r(47),V=r(null),F=r(!1),I="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,D="undefined"!=typeof window,z=s(qe((()=>{if("home"===t&&D){if(!V.current)return;const e=V.current.getBoundingClientRect();e.top<=0&&window.scrollY>$.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,Z(!0)),window.scrollY<$.current&&F.current&&(F.current=!1,Z(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!j)}),[j]),n((()=>(window.addEventListener("scroll",z,{passive:!0}),()=>{window.removeEventListener("scroll",z)})),[]),n((()=>{u&&z()}),[u]);const G=v&&!!p;return l.createElement(be,{"data-site-type":h,"data-sponsored":U,"data-sitewide-banner-shown":G,"data-header-type":t,"data-collapsed":j,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:V},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(Il,{menuItems:c,type:t}),l.createElement("a",{href:O},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:I,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(na,{menuItems:c}):C&&l.createElement(aa,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(aa,{siteType:h}):l.createElement(na,{menuItems:c}),l.createElement(He,null,b&&l.createElement(St,{mediaQueryKey:"mbUp"},l.createElement(kl,{careUrlFe:L.CARE_URL_FE,currentUrl:y,btnName:R("login.booking"),onCareHeaderClick:f})),i,l.createElement(Ll,{userInfo:B,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=S?je(`${S}?returnUrl=${e}`):e}),SSO_URL:Ze(L.SSO_URL),currentUrl:y,onLogout:A,UP_BASEPATH:Se,isMyHealthEnabled:M,enableCare:k,enableTogether:P,enableEcom:N,togetherApiDomain:Ze(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!x,userProfileRouterPush:T,isLoading:_,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:j,locale:g,isMobile:u}):E:null)},aa=({siteType:e})=>l.createElement(St,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Bl,null)),na=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:r,together:s}}=o(H);return l.createElement(St,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(Ne,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Gl,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(Xl,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(ta,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(ea,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(Jl,{careSpecialties:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):null})))))},ia=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:{enableNavCare:a,enableNavTogether:n,enableNavEcom:r,statics:s}}=o(H),c="marryBaby"===t;return i((()=>{var t;const i=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:c?m.getAssetPath("categories-mb.svg"):m.getAssetPath("discover.png"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:c?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("healthTools.png"),popupType:"tools"}];return a&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(s.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===l?null:"care"}),n&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(s.TOGETHER_URL_FE+"/"),thumbnail:c?m.getAssetPath("community-mb.svg"):m.getAssetPath("together.png"),popupType:"together"}),r&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(s.HOME_PAGE_URL+"/ecom"),thumbnail:m.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),i}),[l,a,n,r])})();(()=>{const{isFirstLogin:e,userState:t}=o(H),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,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:o})=>{const c=r(null),[m,d]=a(0),[h,u]=a(64),g=s(ot((()=>{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()}),[o,l,t,e,c.current]);const p=i((()=>{let a=o?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[o,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:L,hasSponsoredBanners:b,isMobile:d});return l.createElement(Be,{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(la,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(_t,{languageOptions:g,locale:h})})))},ra=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(ia,Object.assign({},t)))},oa=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,r,o,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${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,dl))||[],spotlights:(null===(r=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,vl))||void 0===r?void 0:r.filter(El))||[]},b.healthTools={items:(null===(s=null===(o=null==u?void 0:u.data)||void 0===o?void 0:o.map)||void 0===s?void 0:s.call(o,hl))||[],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,hl))||[]}}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(Fe()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Fe()+`/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,ul))||[],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,gl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),sa=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>oa(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{ct as A,At as F,_t as L,ra as N,yl as P,fl as U,sa as a,Dt as b,ml as c,wl as d,Ll as e,oa as g};
1
+ import{_ as e,a as t}from"./tslib.es6-34de753e.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as r,useContext as o,useCallback as s}from"react";import{g as c}from"./core-eaca75d2.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-c4f0155d.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 H,r as N,s as x,t as B,u as A,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 as F,J as I,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 re,a3 as oe,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 He,ao as Ne,ap as xe,aq as Be}from"./index.styled-fe007e9a.js";import{T as Ae}from"./index-22caf7f4.js";import{d as Te,L as _e,S as Re,U as Se,T as Oe,C as Ue}from"./index-e2c1d836.js";import{n as je,a as Ze}from"./normalizeLink-cb62ad21.js";import{c as $e,b as Ve,d as Fe}from"./routing-05aee8b0.js";import{P as Ie,b as De,c as ze}from"./dataTransform-099866f1.js";import{L as Ge}from"./index-51e350e5.js";import{u as We}from"./useTranslations-c605802e.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-f2d53b55.js";import{y as Ye,P as Qe}from"./index.styled-474cfb0b.js";import{B as Je}from"./index-5ff9487f.js";import{t as Xe}from"./theme-875e5b63.js";import{g as et}from"./cookieHelper-f076ed06.js";import{Portal as tt}from"@mantine/core";import"./index-714f7c99.js";import{C as lt}from"./index-da540258.js";import"./index.styled-8556d345.js";import"./index-a740301e.js";import"./index-0fb0e636.js";import"dayjs";import"./screenSizeContext-afe24f18.js";import"styled-components";import"./isProduction-0fd1652a.js";import"./Onboarding-10567429.js";import"./index-ad31ca14.js";import"@mantine/hooks";import{L as at}from"./constants-4a417337.js";import nt from"string-format";import{H as it}from"./index-0823a58a.js";import{u as rt}from"./useIsInit-0a3202aa.js";import ot from"lodash/debounce";const st={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},ct=({type:e="square",size:t,avatarImg:i,avatarUrl:r,firstLetter:o,backgroundColor:s,onClick:c,style:m,className:d,width:h,height:u})=>{const g=t?st[t]:void 0,[p,v]=a(!1);n((()=>{if(r){const e=document.createElement("img");e.setAttribute("src",r),e.addEventListener("error",(()=>{v(!0)}))}}),[r,v]);const E=(!r&&!i||p)&&o;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:r,"data-custom-size":!!t},i,r&&!p&&l.createElement("img",{src:r}),E&&o)},mt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),dt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ht=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"}))),ut=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"}))),gt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),pt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaSquare.png")},e)),vt=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"})))},Et=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"}))),yt=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"})),wt=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"}))),Lt=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"})),bt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Ct=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineSquare.png")},e)),kt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("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"})))),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#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"})),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-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"})),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:"#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"}))),xt=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 At=({country:e,language:t,rounded:a,height:n,width:i,isTesting:r})=>{let o,s;switch(t){case"en":o=l.createElement(ut,null),s=l.createElement(ht,null);break;case"vi":o=l.createElement(xt,null),s=l.createElement(Nt,null);break;case"id":o=l.createElement(Et,{isTesting:r}),s=l.createElement(vt,{isTesting:r});break;case"th":o=l.createElement(Ht,null),s=l.createElement(Pt,null);break;case"km":o=l.createElement(dt,null),s=l.createElement(mt,null);break;case"ms":o=l.createElement(yt,null),s=l.createElement(ft,null);break;case"my":o=l.createElement(Lt,null),s=l.createElement(wt,null);break;case"tl":o=l.createElement(Ct,null),s=l.createElement(bt,null);break;case"hi":o=l.createElement(pt,null),s=l.createElement(gt,null);break;case"zh":o=l.createElement(Mt,null),s=l.createElement(kt,null)}if(!o&&!s)switch(e){case"VN":o=l.createElement(xt,null),s=l.createElement(Nt,null);break;case"ID":o=l.createElement(Et,{isTesting:r}),s=l.createElement(vt,{isTesting:r});break;case"TH":o=l.createElement(Ht,null),s=l.createElement(Pt,null);break;case"KH":o=l.createElement(dt,null),s=l.createElement(mt,null);break;case"MY":o=l.createElement(yt,null),s=l.createElement(ft,null);break;case"MM":o=l.createElement(Lt,null),s=l.createElement(wt,null);break;case"PH":o=l.createElement(Ct,null),s=l.createElement(bt,null);break;case"IN":o=l.createElement(pt,null),s=l.createElement(gt,null);break;case"TW":o=l.createElement(Mt,null),s=l.createElement(kt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:o)},Tt=({options:e,label:t,labelRenderer:n,selected:i,onChange:r,showSelected:o=!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":o&&i===e.value,onClick:t=>{i!==e.value&&(r(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Ae,{size:"p3"},e.label),o&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},_t=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(Tt,{options:e,selected:i.value,label:l.createElement(Rt,{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},Rt=({locale:e,label:t,href:a})=>{var n,i,r;return l.createElement(E,{href:a},l.createElement(At,{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===(r=null==e?void 0:e.split("-"))||void 0===r?void 0:r[0]}),l.createElement("span",null,t))},St=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:r})=>{const[o,s]=i((()=>Ke(t)),[t]);return l.createElement(f,{lowerBound:e?0:o,upperBound:e?0:s,className:n,style:r},a)},Ot=e=>{const{allowBgScroll:t}=e||{},l=r();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())}}},Ut=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:r=!0,targetAvatar:o,id:s,className:c})=>l.createElement(y,{"data-open":a,"data-type":e,"data-animation":r,"data-target":o,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),jt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Zt="uJQBNNg",$t="TfG3dM5",Vt="aMtjFNf",Ft="cSz2RR-",It="GyFm00F";function Dt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),r=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:Zt,onClick:()=>{t&&t()}},l.createElement(ct,{className:$t,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:r,backgroundColor:"marryBaby"===a?Xe.mbColors.pink:Xe.colors.secondaryBase}),l.createElement("div",{className:Vt},l.createElement("div",{className:Ft},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:It,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 zt="gn6HmGG",Gt="FCx8FEM",Wt="zMiRxaE",qt="lZ2Z9MQ",Kt="rwm-agG",Yt="qMOscoq";const Qt=({themeName:e,locale:t,onClickItem:n})=>{const[r,o]=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:"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?o((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:zt},s.map((e=>l.createElement(Jt,{key:e.key,item:e,openKey:r,onClickItem:c,locale:t}))))},Jt=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:r}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Gt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:Wt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:qt,style:{backgroundImage:`url("${e.icon}")`}}),r(e.key),e.subMenu&&l.createElement("div",{className:Kt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Yt},e.subMenu.map((e=>l.createElement(Jt,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var Xt="-AZt1au",el="IvSIfCI",tl="eahCJov",ll="XIyViFs",al="_4y-O0w3",nl="kO8iNgD",il="a1d4E10",rl="Tdguxxf",ol="-mOxsaU",sl="yPeDBNZ";const cl={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")}},ml=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),r=i((()=>{var l,a;return(null===(a=null===(l=cl[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:al,"data-user-rank":t},l.createElement("div",{className:nl},l.createElement("div",{className:il},l.createElement("div",{className:rl,style:{backgroundImage:`url("${r}")`}}),l.createElement("h3",{className:ol},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:sl},a," ",n("userProfile.nav.header.count.posts")))))},dl=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=>dl(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}:{}},hl=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}},ul=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},gl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},pl=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=at[l])||void 0===a?void 0:a.ALL}/${(null===(n=at[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},vl=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}:{},El=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:r="helloSites",cardUrls:o=jt,enableCare:s,enableTogether:c,enableEcom:d,userInfo:h,togetherApiDomain:u,userPostsNumber:g,onClickNavigationCard:p,onClickMyProfileButton:v,onClickMenuItem:E,onClickLogout:f,isUserProfileNavigatorMenuHidden:y=!1,isMyHealthEnabled:b=!1,locale:C})=>{const{t:k}=We(),[M,P]=a(g||0),H="marryBaby"===r;n((()=>{if(h&&void 0===g){const e=et("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+nt(w.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${Te[e]}`})))(C,H,u)),{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)&&P((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)))}}),[C,null!==h,g,u,H]);const N=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?b:"eCom"!==e||d))}),[H,b]),x=i((()=>"marryBaby"===r?null:l.createElement(Je,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:f,className:ll},k("userProfile.nav.menu.logout"))),[r]),B=l=>{window.location.href=je(`${e}${t}/${l}`)},A=e=>{const t=o[e];p?p(t):B(t)};return h?l.createElement("div",{className:Xt,"data-theme":r},l.createElement(Dt,{userInfo:h,themeName:r,onClickMyProfileButton:()=>{v?v():B("profile")}}),l.createElement(ml,{themeName:r,rank:"member",numberOfPosts:M}),l.createElement("div",{className:el},N.map((e=>l.createElement(L,{className:tl,key:e,themeName:r,type:e,onClick:A})))),!y&&l.createElement(l.Fragment,null,l.createElement(Qt,{themeName:r,locale:C,onClickItem:e=>{"logout"===e.link&&f?f():e.link&&!e.subMenu&&(E?E(e.link):B(e.link))}}),x)):null},yl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,closePopup:c,siteType:m="helloSites",dispatchLogout:d,userProfileRouterPush:h,isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g=!1,togetherApiDomain:p,locale:v})=>{const E=l=>{h?h(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},f=e=>{E(e),c()};return l.createElement(Ut,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:c},l.createElement(fl,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,onClickLogout:()=>{d&&(d(),c())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{E("profile"),c()},isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g,togetherApiDomain:p,locale:v}))},wl=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:r}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(tt,null,l.createElement(Ie,{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,r("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,r("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Je,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},r("logout.popup.button.logout")),l.createElement(Je,{className:"cancel-button",color:"primary",size:"lg",onClick:t},r("logout.popup.button.cancel"))))))},Ll=({userInfo:e,siteType:i,onLoginClick:r,SSO_URL:o,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})=>{const{t:C}=We(),[H,N]=a(!1),x=(null==e?void 0:e.name)||(null==e?void 0:e.username),[B,A]=a(!1);n((()=>{A(!0)}),[]);const{containerRef:T,onContainerFocus:_,onContainerBlur:R,onButtonMouseDown:S,onClose:O}=Ot();return L?l.createElement(Je,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:T,style:y,tabIndex:0,onBlur:R,onFocus:_},l.createElement("div",{onMouseDown:S},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(ct,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==e?void 0:e.avatar,firstLetter:x&&x.length?x[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?Xe.mbColors.pink:Xe.colors.secondaryBase})),l.createElement(yl,{UP_BASEPATH:p,SSO_URL:o,dispatchLogout:()=>{O(),N(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,closePopup:O,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(wl,{openLogoutPopup:H,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),N(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){N(!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(`${o}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:r},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:r}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:r,style:{paddingLeft:16}},l.createElement(Ae,{size:"p3",color:Xe.mbColors.pink},C("navigation.loginJoin"))),l.createElement(Je,{className:"login-btn",size:"md",color:"tertiary",onClick:r,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},C("navigation.loginJoin"))))};var bl="_6gGCHV-",Cl="YDzfyQU";const kl=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Je,{className:bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t)},n):l.createElement("a",{href:a,className:`${Cl} care-button no-replace-click`},l.createElement(Je,{className:bl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Ml="IQdn7tn",Pl="_1jX3mGY",Hl="arD755Y";function Nl({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 xl({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}=o(H),{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(N,null))})},Al=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:r})=>{const{siteType:s}=o(H);return l.createElement(x,null,l.createElement(B,null,l.createElement(it,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},r)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(A,{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}})),l.createElement("p",null,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"}})))))},Tl=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:r}}=o(H);if(!e)return null;const s=`${r.CARE_URL_FE}/${null===(a=at[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(F,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},_l=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:r}=o(H);return l.createElement(I,{"data-theme":r},l.createElement(D,null,l.createElement("img",{src:"marryBaby"===r?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(Je,{theme:r,className:"survey-contact-submit",size:"md"},n)))))},Rl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:r}=o(H);return l.createElement(q,null,l.createElement(K,null,l.createElement(it,{tag:"marryBaby"===r?"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":r},t,l.createElement("img",{src:"marryBaby"===r?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},Sl=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Rl,{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(Tl,{key:t,index:t,item:e})))):l.createElement(_l,{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")}))},Ol=({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,Ul=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=o(H);return l.createElement(Rl,{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(Ol,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(_l,{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")}))},jl=({spotlights:e=[]})=>{const{configs:{statics:t}}=o(H),{t:a}=We();return l.createElement(Rl,{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(_l,{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")}))},Zl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=o(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(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(re,null,e.title),l.createElement(oe,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"})))},$l=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=o(H);if(!e)return null;const r=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:r,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":r,"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()))},Vl=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=o(H);return l.createElement(Rl,{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($l,{key:t,index:t,item:e,color:n[t]}):l.createElement(Zl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(_l,{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")}))},Fl=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:r,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=o(H),{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(Al,{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(Ul,{spotlightsList:(null==r?void 0:r.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(Vl,{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(Sl,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=at[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(jl,{spotlights:null==m?void 0:m.spotlights})))},Il=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=o(H),{containerRef:i,onContainerFocus:r,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Ot();return l.createElement(St,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Ml},l.createElement("div",{className:Pl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:r},l.createElement("div",{className:Hl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(Nl,{className:"mobile-close-icon"}),l.createElement(xl,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Fl,{menuItems:t,closePopup:m}))))};var Dl="-XmTq5-",zl="V-oxu20";const Gl=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:r,onClose:o}=Ot({allowBgScroll:!0}),s=rt();return!e.popupType&&e.link?l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:zl},e.name)):l.createElement("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:r,className:zl},e.name,e.popupType&&l.createElement("div",{className:Dl},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:o}):null)};var Wl="eJS8-if",ql="EuQrB-3",Kl="_0JtBh8L";const Yl=({onClosePopup:e})=>l.createElement("div",{className:`${Kl} 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"}))),Ql=({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(lt,null,!i&&l.createElement("div",{className:ql},l.createElement(Yl,{onClosePopup:e})),l.createElement(lt,{className:Wl},a))),Jl=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:r}=We(),{locale:s,configs:{statics:c}}=o(H),m=`${c.CARE_URL_FE}/${null===(i=at[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(Ql,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Al,{headingTitle:r("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:r("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:pl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Sl,{spotlights:n,hrefViewMore:m}))},Xl=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:r,configs:{statics:s}}=o(H);return l.createElement(Ql,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Al,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/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(Ul,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/spotlight/`}))},ea=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:r}}=o(H);return l.createElement(Ql,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Al,{hrefViewMore:Ze(r.TOGETHER_URL_FE),UrlFE:je(r.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(jl,{spotlights:n}))},ta=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var r;const{t:s}=We(),{configs:{statics:c}}=o(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(r=Re[e])||void 0===r?void 0:r.HEALTH_TOOLS)||""}`;return l.createElement(Ql,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Al,{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(Vl,{spotlightHealthTools:n,hrefViewMore:m}))},la=({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,enableNavTogether:P,enableProfileEcom:N,enableProfileNavigatorMenu:x},userState:{userInfo:B},onLogout:A,userProfileRouterPush:T,isUserLoading:_}=o(H),{t:R}=We(),{SSO_URL:S,HOME_PAGE_URL:O}=L,U=!!E,[j,Z]=a(!1),$=r(47),V=r(null),F=r(!1),I="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,D="undefined"!=typeof window,z=s(qe((()=>{if("home"===t&&D){if(!V.current)return;const e=V.current.getBoundingClientRect();e.top<=0&&window.scrollY>$.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,Z(!0)),window.scrollY<$.current&&F.current&&(F.current=!1,Z(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!j)}),[j]),n((()=>(window.addEventListener("scroll",z,{passive:!0}),()=>{window.removeEventListener("scroll",z)})),[]),n((()=>{u&&z()}),[u]);const G=v&&!!p;return l.createElement(be,{"data-site-type":h,"data-sponsored":U,"data-sitewide-banner-shown":G,"data-header-type":t,"data-collapsed":j,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:V},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(Il,{menuItems:c,type:t}),l.createElement("a",{href:O},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:I,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(na,{menuItems:c}):C&&l.createElement(aa,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(aa,{siteType:h}):l.createElement(na,{menuItems:c}),l.createElement(He,null,b&&l.createElement(St,{mediaQueryKey:"mbUp"},l.createElement(kl,{careUrlFe:L.CARE_URL_FE,currentUrl:y,btnName:R("login.booking"),onCareHeaderClick:f})),i,l.createElement(Ll,{userInfo:B,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=S?je(`${S}?returnUrl=${e}`):e}),SSO_URL:Ze(L.SSO_URL),currentUrl:y,onLogout:A,UP_BASEPATH:Se,isMyHealthEnabled:M,enableCare:k,enableTogether:P,enableEcom:N,togetherApiDomain:Ze(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!x,userProfileRouterPush:T,isLoading:_,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:j,locale:g,isMobile:u}):E:null)},aa=({siteType:e})=>l.createElement(St,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Bl,null)),na=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:r,together:s}}=o(H);return l.createElement(St,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(Ne,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Gl,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(Xl,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(ta,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(ea,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(Jl,{careSpecialties:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):null})))))},ia=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:{enableNavCare:a,enableNavTogether:n,enableNavEcom:r,statics:s}}=o(H),c="marryBaby"===t;return i((()=>{var t;const i=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:c?m.getAssetPath("categories-mb.svg"):m.getAssetPath("discover.png"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:c?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("healthTools.png"),popupType:"tools"}];return a&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(s.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===l?null:"care"}),n&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(s.TOGETHER_URL_FE+"/"),thumbnail:c?m.getAssetPath("community-mb.svg"):m.getAssetPath("together.png"),popupType:"together"}),r&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(s.HOME_PAGE_URL+"/ecom"),thumbnail:m.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),i}),[l,a,n,r])})();(()=>{const{isFirstLogin:e,userState:t}=o(H),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,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:o})=>{const c=r(null),[m,d]=a(0),[h,u]=a(64),g=s(ot((()=>{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()}),[o,l,t,e,c.current]);const p=i((()=>{let a=o?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[o,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:L,hasSponsoredBanners:b,isMobile:d});return l.createElement(Be,{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(la,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(_t,{languageOptions:g,locale:h})})))},ra=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(ia,Object.assign({},t)))},oa=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,r,o,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${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,dl))||[],spotlights:(null===(r=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,vl))||void 0===r?void 0:r.filter(El))||[]},b.healthTools={items:(null===(s=null===(o=null==u?void 0:u.data)||void 0===o?void 0:o.map)||void 0===s?void 0:s.call(o,hl))||[],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,hl))||[]}}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(Fe()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Fe()+`/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,ul))||[],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,gl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),sa=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>oa(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{ct as A,At as F,_t as L,ra as N,yl as P,fl as U,sa as a,Dt as b,ml as c,wl as d,Ll as e,oa as g};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-fe545a17.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{B as s}from"./index-5939dafb.js";import{D as r,S as i,j as l}from"./index-862be2c0.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:g,min:w,max:p,isStatic:u,containerClassName:k,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[f,C]=o(g||w||0),[b]=a(f,r);return n((()=>{null==d||d(b)}),[b]),n((()=>{C(g)}),[g]),t.createElement(i,{className:k,style:v},h&&t.createElement(s,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>w&&e===w?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:f,onChange:u?()=>null:C,min:w,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(s,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
1
+ import{_ as e}from"./tslib.es6-34de753e.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as s}from"@mantine/hooks";import{B as a}from"./index-5ff9487f.js";import{D as r,S as i,j as l}from"./index-0fb0e636.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:g,min:w,max:p,isStatic:u,containerClassName:f,containerStyle:k}=m,v=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[x,C]=o(g||w||0),[E]=s(x,r);return n((()=>{null==d||d(E)}),[E]),n((()=>{C(g)}),[g]),t.createElement(i,{className:f,style:k},h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>w&&e===w?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:x,onChange:u?()=>null:C,min:w,max:p},v,{className:"hhg-mantine-slider "+(v.className||"")})),h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
@@ -1 +1 @@
1
- import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-1e0cdc14.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};
1
+ import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-10567429.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};
@@ -1 +1 @@
1
- import e,{useMemo as a}from"react";import{CommonGAssets as s}from"./gAssets.js";import{i as t,L as l,a as o,b as n,S as r,c as g,d as i}from"./index-04fb5dcf.js";const m=({type:m,className:c,style:h,isLightLogo:d,customSize:u,badge:w,locale:N,dateForSeasonal:y,isPro:f})=>{const p=a((()=>{if(!y||isNaN(new Date(y).getTime()))return{isChristmas:!1,isLunarNewYear:!1,isNewYear:!1};const e=new Date(y),a=t(e),s=l.includes(N)&&o(e);return{isChristmas:a,isLunarNewYear:s,isNewYear:!s&&n(e)}}),[N,new Date(y).getDate()]);return e.createElement(r,{className:c,style:h,"data-logo-is-light":d||void 0,"data-has-badge":!!w,"data-christmas":p.isChristmas,"data-new-year":p.isNewYear,"data-lunar-new-year":p.isLunarNewYear},p.isChristmas?e.createElement(e.Fragment,null,e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):p.isNewYear?e.createElement(e.Fragment,null,e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):p.isLunarNewYear?e.createElement(e.Fragment,null,e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):null,e.createElement(g,{type:m,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),f?e.createElement(i,{src:s.getAssetPath("logo/pro-suffix.svg")}):null,w)};export{m as L};
1
+ import e,{useMemo as a}from"react";import{CommonGAssets as s}from"./gAssets.js";import{i as t,L as l,a as o,b as n,S as r,c as g,d as i}from"./index-da540258.js";const m=({type:m,className:c,style:h,isLightLogo:d,customSize:u,badge:w,locale:N,dateForSeasonal:y,isPro:p})=>{const f=a((()=>{if(!y||isNaN(new Date(y).getTime()))return{isChristmas:!1,isLunarNewYear:!1,isNewYear:!1};const e=new Date(y),a=t(e),s=l.includes(N)&&o(e);return{isChristmas:a,isLunarNewYear:s,isNewYear:!s&&n(e)}}),[N,new Date(y).getDate()]);return e.createElement(r,{className:c,style:h,"data-logo-is-light":d||void 0,"data-has-badge":!!w,"data-christmas":f.isChristmas,"data-new-year":f.isNewYear,"data-lunar-new-year":f.isLunarNewYear},f.isChristmas?e.createElement(e.Fragment,null,e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):f.isNewYear?e.createElement(e.Fragment,null,e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):f.isLunarNewYear?e.createElement(e.Fragment,null,e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement("img",{loading:"lazy",src:s.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):null,e.createElement(g,{type:m,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),p?e.createElement(i,{src:s.getAssetPath("logo/pro-suffix.svg")}):null,w)};export{m as L};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-fe545a17.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,c as i}from"./index-0f61e70e.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:y=!0,actionIcon:b,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:f,size:I,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),x=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":I,className:h,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},f||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},x,j)),C&&a.createElement(r,{className:"displayIcon"},C),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),p&&p.length>0&&y&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
1
+ import{_ as e}from"./tslib.es6-34de753e.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,c as i}from"./index-714f7c99.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:y=!0,actionIcon:b,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:I,size:f,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),x=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":f,className:h,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},I||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},x,j)),C&&a.createElement(r,{className:"displayIcon"},C),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),p&&p.length>0&&y&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
@@ -1 +1 @@
1
- import{_ as a}from"./tslib.es6-fe545a17.js";import t from"react";var e="P03rcnV",o="LsvykAk",d="S2kaD9B",c="fAwTdkg",i="ITgol3T",r="cD-HMFz",n="oAG2-aJ",s="Y9fGCaj";const l=l=>{var{size:C,color:m="primary",theme:u="helloSites",isDisabled:h,isBlock:p,title:g,className:P,onClick:k,icon:v,iconPosition:E="left",children:y,isLoading:N=!1,loadingText:b,dataEventCategory:w,dataEventAction:f,dataEventLabel:L,dataProductChannel:B,dataProductSku:x,dataProductBrand:A,dataProductName:T,dataProductPrice:z,dataProductCategory:D,dataProductPosition:S,type:j}=l,F=a(l,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const M={"data-event-category":w,"data-event-action":f,"data-event-label":L,"data-product-channel":B,"data-product-sku":x,"data-product-brand":A,"data-product-name":T,"data-product-price":z,"data-product-category":D,"data-product-position":S},G=t.createElement("span",{className:o},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{className:s,cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("mask",{id:"path-1-inside-1",fill:"white"},t.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),t.createElement("path",{className:n,d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),W=(v||N)&&t.createElement("span",{className:r},N?G:v," ");return t.createElement("button",Object.assign({},M,{className:`${i} ${P||""}`,"data-size":C,"data-color":m,"data-block":p,"data-has-icon":!!v||void 0,"data-theme":u,disabled:h,onClick:a=>{!N&&!h&&k&&k(a)},title:g,"data-is-loading":N,type:j},F),t.createElement("span",{className:c},"left"===E&&W,y&&t.createElement("span",{className:d},N&&b||y),"right"===E&&W))};export{l as B};
1
+ import{_ as a}from"./tslib.es6-34de753e.js";import t from"react";var e="P03rcnV",d="LsvykAk",o="S2kaD9B",c="fAwTdkg",i="ITgol3T",r="cD-HMFz",n="oAG2-aJ",s="Y9fGCaj";const l=l=>{var{size:C,color:m="primary",theme:u="helloSites",isDisabled:h,isBlock:p,title:g,className:P,onClick:k,icon:v,iconPosition:E="left",children:y,isLoading:N=!1,loadingText:b,dataEventCategory:w,dataEventAction:f,dataEventLabel:L,dataProductChannel:B,dataProductSku:x,dataProductBrand:A,dataProductName:T,dataProductPrice:z,dataProductCategory:D,dataProductPosition:S,type:j}=l,F=a(l,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const M={"data-event-category":w,"data-event-action":f,"data-event-label":L,"data-product-channel":B,"data-product-sku":x,"data-product-brand":A,"data-product-name":T,"data-product-price":z,"data-product-category":D,"data-product-position":S},G=t.createElement("span",{className:d},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{className:s,cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("mask",{id:"path-1-inside-1",fill:"white"},t.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),t.createElement("path",{className:n,d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),W=(v||N)&&t.createElement("span",{className:r},N?G:v," ");return t.createElement("button",Object.assign({},M,{className:`${i} ${P||""}`,"data-size":C,"data-color":m,"data-block":p,"data-has-icon":!!v||void 0,"data-theme":u,disabled:h,onClick:a=>{!N&&!h&&k&&k(a)},title:g,"data-is-loading":N,type:j},F),t.createElement("span",{className:c},"left"===E&&W,y&&t.createElement("span",{className:o},N&&b||y),"right"===E&&W))};export{l as B};
@@ -1,4 +1,4 @@
1
- import{M as e}from"./utils-c9476401.js";import t from"styled-components";import o from"react";const i=t.div`
1
+ import{M as e}from"./utils-f2d53b55.js";import t from"styled-components";import o from"react";const i=t.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
 
@@ -1,4 +1,4 @@
1
- import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as l,M as n}from"./utils-c9476401.js";import{ae as r,af as s,ag as d,ah as c,ai as m,aj as p,C as h}from"./index.styled-c2b8575f.js";import{T as u}from"./index-e4fc4d53.js";import g from"styled-components";import{u as b}from"./useTranslations-2c71b7e9.js";import{G as x}from"./Onboarding-1e0cdc14.js";import{I as y}from"./index-cbc2ff64.js";import{M as f,a as C}from"./index-3a76c7ed.js";import{t as v}from"./theme-14d3ed36.js";const w=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),E=({children:o,title:n,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,className:g})=>{const b=t();a((()=>(l(m),()=>l(!1))),[m]);const x=()=>{b.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!m&&h?null:e.createElement(i,null,e.createElement(s,{className:g,open:m},e.createElement(w,{open:m,onClickOutside:x}),e.createElement(d,{open:m,placement:p,ref:b,hasTitle:Boolean(n)},e.createElement("div",{className:"title"},n&&e.createElement(u,{size:"s2",type:"semiBold"},n),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:x},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(c,{onClick:e=>e.stopPropagation()},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:x}):null)))))},$=({value:t,options:a,className:i,direction:l="horizontal",onChange:n,isDisabled:r,siteType:s})=>{const[d,c]=o(t),h="marryBaby"===s;return e.createElement(m,{className:i,"data-direction":l},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||d)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(c(e),n&&n(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(f,{type:"subtitle-2",color:(t||d)===a.value?v.mbColors.dark:v.mbColors.midGray},a.label):e.createElement(u,{type:"bold",color:(t||d)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},k="hhgcomp-modal-modal",B=h(g.div`
1
+ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as l,M as n}from"./utils-f2d53b55.js";import{ae as r,af as s,ag as d,ah as c,ai as m,aj as p,C as h}from"./index.styled-474cfb0b.js";import{T as b}from"./index-22caf7f4.js";import u from"styled-components";import{u as g}from"./useTranslations-c605802e.js";import{G as x}from"./Onboarding-10567429.js";import{I as y}from"./index-b3bac285.js";import{M as f,a as C}from"./index-c6035781.js";import{t as v}from"./theme-875e5b63.js";const w=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),E=({children:o,title:n,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,className:u})=>{const g=t();a((()=>(l(m),()=>l(!1))),[m]);const x=()=>{g.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!m&&h?null:e.createElement(i,null,e.createElement(s,{className:u,open:m},e.createElement(w,{open:m,onClickOutside:x}),e.createElement(d,{open:m,placement:p,ref:g,hasTitle:Boolean(n)},e.createElement("div",{className:"title"},n&&e.createElement(b,{size:"s2",type:"semiBold"},n),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:x},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(c,{onClick:e=>e.stopPropagation()},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:x}):null)))))},$=({value:t,options:a,className:i,direction:l="horizontal",onChange:n,isDisabled:r,siteType:s})=>{const[d,c]=o(t),h="marryBaby"===s;return e.createElement(m,{className:i,"data-direction":l},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||d)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(c(e),n&&n(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(f,{type:"subtitle-2",color:(t||d)===a.value?v.mbColors.dark:v.mbColors.midGray},a.label):e.createElement(b,{type:"bold",color:(t||d)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},k="hhgcomp-modal-modal",B=h(u.div`
2
2
  position: relative;
3
3
  z-index: 200;
4
4
  background-color: ${e=>e.theme.colors.white};
@@ -27,7 +27,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
27
27
  background-color: none;
28
28
  box-shadow: none;
29
29
  }
30
- `,k),j=g.div`
30
+ `,k),j=u.div`
31
31
  position: fixed;
32
32
  top: 0;
33
33
  left: 0;
@@ -130,7 +130,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
130
130
  }
131
131
  }
132
132
  }
133
- `,z=g.div`
133
+ `,z=u.div`
134
134
  position: fixed;
135
135
  top: 0;
136
136
  left: 0;
@@ -144,7 +144,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
144
144
  &[data-type='video'] {
145
145
  background-color: ${e=>e.theme.colors.secondaryDark};
146
146
  }
147
- `,T=g.div`
147
+ `,T=u.div`
148
148
  & > :not(:last-child) {
149
149
  margin-bottom: 8px;
150
150
  }
@@ -162,7 +162,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
162
162
  }
163
163
  }
164
164
  }
165
- `,G=g($)`
165
+ `,G=u($)`
166
166
  & > div > div {
167
167
  display: flex;
168
168
  flex-direction: row;
@@ -174,4 +174,4 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
174
174
  .radio-group-item-heading {
175
175
  margin-top: 0;
176
176
  }
177
- `,L=({value:t,onChange:a,siteType:o})=>{const{t:i}=b(),l="marryBaby"==o;return e.createElement(T,{"data-is-marryBaby":l},l?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("babyVaccineTool.selectGender")):e.createElement(u,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),e.createElement(G,{siteType:o,options:[{value:x.Boy,label:i("gender.male"),content:l?e.createElement(y.BabyBoyMB,null):e.createElement(y.GenderChooseBoy,null)},{value:x.Girl,label:i("gender.female"),content:l?e.createElement(y.BabyGirlMB,null):e.createElement(y.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{L as B,E as D,$ as R,j as S,z as a,B as b};
177
+ `,L=({value:t,onChange:a,siteType:o})=>{const{t:i}=g(),l="marryBaby"==o;return e.createElement(T,{"data-is-marryBaby":l},l?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("babyVaccineTool.selectGender")):e.createElement(b,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),e.createElement(G,{siteType:o,options:[{value:x.Boy,label:i("gender.male"),content:l?e.createElement(y.BabyBoyMB,null):e.createElement(y.GenderChooseBoy,null)},{value:x.Girl,label:i("gender.female"),content:l?e.createElement(y.BabyGirlMB,null):e.createElement(y.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{L as B,E as D,$ as R,j as S,z as a,B as b};
@@ -1 +1 @@
1
- import{_ as t}from"./tslib.es6-fe545a17.js";import a from"react";import{Button as e}from"@mantine/core";import{i as r}from"./index-862be2c0.js";const o={primary:"filled",secondary:"outline",tertiary:"default",light:"light",ghost:"subtle",error:"outline"},s=s=>{var{variant:i,size:n,color:l,skipHover:c,className:v,dataEventCategory:m,dataEventAction:d,dataEventLabel:p}=s,E=t(s,["variant","size","color","skipHover","className","dataEventCategory","dataEventAction","dataEventLabel"]);const b="error"===i,{classes:f,cx:g}=r({variant:i,size:n,color:l,skipHover:c,isError:b});return a.createElement(e,Object.assign({className:g(f.rootCustom,v),variant:o[i],"data-event-category":m,"data-event-action":d,"data-event-label":p},E))};export{s as B};
1
+ import{_ as t}from"./tslib.es6-34de753e.js";import a from"react";import{Button as e}from"@mantine/core";import{i as r}from"./index-0fb0e636.js";const o={primary:"filled",secondary:"outline",tertiary:"default",light:"light",ghost:"subtle",error:"outline"},s=s=>{var{variant:i,size:n,color:l,skipHover:c,className:v,dataEventCategory:m,dataEventAction:d,dataEventLabel:p}=s,E=t(s,["variant","size","color","skipHover","className","dataEventCategory","dataEventAction","dataEventLabel"]);const b="error"===i,{classes:f,cx:g}=r({variant:i,size:n,color:l,skipHover:c,isError:b});return a.createElement(e,Object.assign({className:g(f.rootCustom,v),variant:o[i],"data-event-category":m,"data-event-action":d,"data-event-label":p},E))};export{s as B};
@@ -1 +1 @@
1
- import e,{useState as t,useRef as a,useEffect as o}from"react";import{u as d}from"./useTranslations-2c71b7e9.js";import{t as c}from"./theme-14d3ed36.js";import{ak as r}from"./index.styled-c2b8575f.js";import{I as l}from"./index-cbc2ff64.js";import{I as s}from"./index-9dc57d76.js";import{M as n}from"./index-3a76c7ed.js";import{T as m}from"./index-e4fc4d53.js";import{u as i}from"./useScrollbarSize-3beb582b.js";import{createPortal as h}from"react-dom";import{S as p,a as u,b as y}from"./index-9def8ea9.js";const b=({isActive:t,onChange:a,value:o="",onInputChange:i,siteType:h})=>{const{t:p}=d(),u="marryBaby"===h;return e.createElement(r,{onClick:()=>a("new"),"data-is-mb":u,"data-isActive":u&&t},"marryBaby"===h?e.createElement("div",{className:"title"},e.createElement(n,{type:"bodytext-1",color:c.colors.gray800},p("chooseBaby.new")),e.createElement("div",{className:t?"radio active":"radio"},t&&e.createElement(l.CheckActiveMB,{size:26}))):e.createElement("div",{className:"title"},e.createElement(m,{size:"p2",color:c.colors.gray800},p("chooseBaby.new")),e.createElement("div",{className:t?"radio active":"radio"})),e.createElement(s,{name:"name",value:o,size:"md",placeholder:p("chooseBaby.placeholder"),type:"text",onChange:i}))},v="hhg-modals",f=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},g=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},E=({type:d="lead",closeIcon:c,isOpen:r=!0,onClose:l,children:s,className:n="",animationType:m="slideTop",isStaticBackdrop:b=!1,siteType:E})=>{const[C,N]=t(!1),j=a(null),{width:x}=i();if(!j.current&&C&&(j.current=document.createElement("div")),o((()=>(N(!0),()=>{N(!1),f(),g()})),[]),o((()=>{if(C){const e=(()=>{let e=document.getElementById(v);return e||(e=document.createElement("div"),e.setAttribute("id",v),document.body.append(e)),e})();return e.appendChild(j.current),()=>{e.removeChild(j.current)}}}),[C]),o((()=>{r?document.body.classList.add("hhc-modal-show"):f()}),[r]),o((()=>{r?(document.body.style.overflow="hidden",document.body.style.paddingRight=x+"px",document.body.classList.add("hhc-disabled-scroll")):g()}),[r,x]),!C)return null;const _=["hhg-modal__wrapper",n,m].filter((e=>e)).join(" ");return h(e.createElement(p,{className:_,"data-open":r,"data-type":d},!b&&e.createElement(u,{"data-open":r,onClick:l,"data-type":d}),!b&&"video"===d&&!!c&&e.createElement("div",{className:"hhg-modal__close",onClick:l},c),e.createElement(y,{className:"hhg-modal","data-open":r,"data-site-type":E},e.createElement("div",{className:"video"===d?"hhg-modal__video":"hhg-modal__content"},!!c&&"video"!==d&&e.createElement("div",{className:"hhg-modal__close",onClick:l},c),s))),j.current)};export{E as M,b as N};
1
+ import e,{useState as t,useRef as a,useEffect as o}from"react";import{u as d}from"./useTranslations-c605802e.js";import{t as r}from"./theme-875e5b63.js";import{ak as c}from"./index.styled-474cfb0b.js";import{I as l}from"./index-b3bac285.js";import{I as s}from"./index-5fd031d8.js";import{M as n}from"./index-c6035781.js";import{T as m}from"./index-22caf7f4.js";import{u as i}from"./useScrollbarSize-a3b4003c.js";import{createPortal as h}from"react-dom";import{S as p,a as u,b as y}from"./index-773f005a.js";const b=({isActive:t,onChange:a,value:o="",onInputChange:i,siteType:h})=>{const{t:p}=d(),u="marryBaby"===h;return e.createElement(c,{onClick:()=>a("new"),"data-is-mb":u,"data-isActive":u&&t},"marryBaby"===h?e.createElement("div",{className:"title"},e.createElement(n,{type:"bodytext-1",color:r.colors.gray800},p("chooseBaby.new")),e.createElement("div",{className:t?"radio active":"radio"},t&&e.createElement(l.CheckActiveMB,{size:26}))):e.createElement("div",{className:"title"},e.createElement(m,{size:"p2",color:r.colors.gray800},p("chooseBaby.new")),e.createElement("div",{className:t?"radio active":"radio"})),e.createElement(s,{name:"name",value:o,size:"md",placeholder:p("chooseBaby.placeholder"),type:"text",onChange:i}))},v="hhg-modals",f=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},g=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},E=({type:d="lead",closeIcon:r,isOpen:c=!0,onClose:l,children:s,className:n="",animationType:m="slideTop",isStaticBackdrop:b=!1,siteType:E})=>{const[C,N]=t(!1),j=a(null),{width:x}=i();if(!j.current&&C&&(j.current=document.createElement("div")),o((()=>(N(!0),()=>{N(!1),f(),g()})),[]),o((()=>{if(C){const e=(()=>{let e=document.getElementById(v);return e||(e=document.createElement("div"),e.setAttribute("id",v),document.body.append(e)),e})();return e.appendChild(j.current),()=>{e.removeChild(j.current)}}}),[C]),o((()=>{c?document.body.classList.add("hhc-modal-show"):f()}),[c]),o((()=>{c?(document.body.style.overflow="hidden",document.body.style.paddingRight=x+"px",document.body.classList.add("hhc-disabled-scroll")):g()}),[c,x]),!C)return null;const _=["hhg-modal__wrapper",n,m].filter((e=>e)).join(" ");return h(e.createElement(p,{className:_,"data-open":c,"data-type":d},!b&&e.createElement(u,{"data-open":c,onClick:l,"data-type":d}),!b&&"video"===d&&!!r&&e.createElement("div",{className:"hhg-modal__close",onClick:l},r),e.createElement(y,{className:"hhg-modal","data-open":c,"data-site-type":E},e.createElement("div",{className:"video"===d?"hhg-modal__video":"hhg-modal__content"},!!r&&"video"!==d&&e.createElement("div",{className:"hhg-modal__close",onClick:l},r),s))),j.current)};export{E as M,b as N};