@hhgtech/hhg-components 1.24.20 → 1.24.22

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 (308) hide show
  1. package/build/Onboarding-b479219e.js +1 -0
  2. package/build/babyGrowth.js +17 -17
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/mantine/index.d.ts +4 -1
  6. package/build/components/mantine/text/index.d.ts +11 -0
  7. package/build/components/mantine/text/index.styled.d.ts +9 -0
  8. package/build/components/mantine/theme/heading.d.ts +9 -0
  9. package/build/components/mantine/theme/index.d.ts +1 -0
  10. package/build/components/mantine/theme/input.d.ts +2 -0
  11. package/build/components/mantine/theme/other.d.ts +7 -0
  12. package/build/components/mantine/theme/text.d.ts +63 -0
  13. package/build/components/onboarding.d.ts +4 -3
  14. package/build/components/organisms/onboardingModal/components/dynamicForm/index.d.ts +18 -0
  15. package/build/components/organisms/onboardingModal/components/dynamicForm/index.styled.d.ts +1 -0
  16. package/build/components/organisms/onboardingModal/components/onboardingForm/index.styled.d.ts +1 -1
  17. package/build/components/organisms/onboardingModal/components/otpForm/index.styled.d.ts +1 -1
  18. package/build/components/organisms/onboardingModal/components/personalInfoForm/index.d.ts +1 -1
  19. package/build/components/organisms/onboardingModal/components/updatePassword/index.d.ts +1 -1
  20. package/build/components/organisms/onboardingModal/context.d.ts +1 -0
  21. package/build/components/organisms/onboardingModal/index.d.ts +17 -36
  22. package/build/components/organisms/onboardingModal/index.styled.d.ts +0 -4
  23. package/build/components/ui/onboarding/index.d.ts +8 -0
  24. package/build/components/ui/onboarding/index.styled.d.ts +4 -0
  25. package/build/components.js +1 -1
  26. package/build/constants.js +1 -1
  27. package/build/{core-dd28b9e9.js → core-9ac2af30.js} +1 -1
  28. package/build/{dataTransform-eac94170.js → dataTransform-b8d745de.js} +1 -1
  29. package/build/esm/Onboarding-e9e6a0b3.js +1 -0
  30. package/build/esm/babyGrowth.js +8 -8
  31. package/build/esm/cache.js +1 -1
  32. package/build/esm/care.js +1 -1
  33. package/build/esm/components.js +1 -1
  34. package/build/esm/constants.js +1 -1
  35. package/build/esm/{core-c124f5c7.js → core-3df19176.js} +1 -1
  36. package/build/esm/{dataTransform-5ad5cc61.js → dataTransform-3dbf0687.js} +1 -1
  37. package/build/esm/footer.js +1 -1
  38. package/build/esm/gAssets.js +1 -1
  39. package/build/esm/{getDynamicHealthTool-148e9fad.js → getDynamicHealthTool-dba298d4.js} +1 -1
  40. package/build/esm/getSocialList-71821b27.js +1 -0
  41. package/build/esm/hooks.js +1 -1
  42. package/build/esm/i18n.js +1 -1
  43. package/build/esm/{index-33c69c18.js → index-008e92a3.js} +1 -1
  44. package/build/esm/{index-e009fe25.js → index-0e0de01d.js} +1 -1
  45. package/build/esm/index-1293aa95.js +1 -0
  46. package/build/esm/index-34ef74f7.js +75 -0
  47. package/build/esm/index-3a592570.js +1 -0
  48. package/build/esm/index-3b6e2e21.js +1 -0
  49. package/build/esm/index-5e901368.js +177 -0
  50. package/build/esm/{index-8b0a5077.js → index-6cf76009.js} +1 -1
  51. package/build/esm/index-6d1a95af.js +1 -0
  52. package/build/esm/{index-ad87b858.js → index-7e6ee7bb.js} +1 -1
  53. package/build/esm/index-80dc7452.js +1 -0
  54. package/build/esm/{index-a5b5f7c6.js → index-8392374e.js} +2 -2
  55. package/build/esm/{index-700e710c.js → index-977237f7.js} +1 -1
  56. package/build/esm/{index-36bf0b50.js → index-97906322.js} +1 -1
  57. package/build/esm/index-bf7ea4d1.js +1 -0
  58. package/build/esm/{index-e8374844.js → index-d6ea8731.js} +1 -1
  59. package/build/esm/index-d7138419.js +1 -0
  60. package/build/esm/{index-e3b08d79.js → index-db80c616.js} +1 -1
  61. package/build/esm/{index-9e7b7ac2.js → index-e6b80e2d.js} +1 -1
  62. package/build/esm/index-f1502c97.js +1 -0
  63. package/build/esm/index-fcab6af7.js +1 -0
  64. package/build/esm/index.css +1 -1
  65. package/build/esm/index.js +1 -1
  66. package/build/esm/{index.styled-063818f6.js → index.styled-27074988.js} +1 -1
  67. package/build/esm/index.styled-56e2987b.js +166 -0
  68. package/build/esm/{index.styled-5975614c.js → index.styled-727e93fd.js} +1 -1
  69. package/build/esm/{index.styled-23956c9f.js → index.styled-87dfb77d.js} +12 -12
  70. package/build/esm/{index.styled-68102c0f.js → index.styled-99a22203.js} +4 -4
  71. package/build/esm/{index.styled-b79106ee.js → index.styled-9b7d8209.js} +1 -1
  72. package/build/esm/{index.styled-5f91b6a7.js → index.styled-dba64061.js} +54 -54
  73. package/build/esm/{index.styled-c9eb0225.js → index.styled-f782b04a.js} +1 -1
  74. package/build/esm/lead.js +1 -1
  75. package/build/esm/mantine.js +1 -1
  76. package/build/esm/misc.js +1 -1
  77. package/build/esm/navigation.js +1 -1
  78. package/build/esm/onboarding.js +1 -1
  79. package/build/esm/pwg.js +3 -3
  80. package/build/esm/{routing-7c132a40.js → routing-b727d490.js} +1 -1
  81. package/build/esm/{screenSizeContext-b2458972.js → screenSizeContext-a877eec8.js} +3 -3
  82. package/build/esm/together.js +1 -1
  83. package/build/esm/{translationsContext-5e1a1aa9.js → translationsContext-96871a10.js} +1 -1
  84. package/build/esm/translationsProvider-f259fe4b.js +1 -0
  85. package/build/esm/{types-a2ddb03d.js → types-38b0c372.js} +27 -27
  86. package/build/esm/{types-148872f9.js → types-76c8bea8.js} +1 -1
  87. package/build/esm/types.js +1 -1
  88. package/build/esm/useHealthToolCache-9060c9d7.js +1 -0
  89. package/build/esm/{useRafState-d62073c0.js → useRafState-84e43a8e.js} +1 -1
  90. package/build/esm/useTranslations-547b947e.js +1 -0
  91. package/build/footer.js +1 -1
  92. package/build/gAssets.js +1 -1
  93. package/build/{getDynamicHealthTool-56120bb9.js → getDynamicHealthTool-62933f89.js} +1 -1
  94. package/build/getSocialList-0c688ab4.js +1 -0
  95. package/build/hooks.js +1 -1
  96. package/build/i18n.js +1 -1
  97. package/build/index-021e0d1e.js +1 -0
  98. package/build/{index-db86067e.js → index-0a61907b.js} +1 -1
  99. package/build/{index-7436921a.js → index-0bac5baf.js} +3 -3
  100. package/build/{index-2170a539.js → index-10bacae1.js} +1 -1
  101. package/build/{index-ecc99b0b.js → index-3050ea27.js} +1 -1
  102. package/build/index-388df1e8.js +1 -0
  103. package/build/{index-34e37ef4.js → index-3c3ac2c7.js} +1 -1
  104. package/build/index-4c35fa12.js +177 -0
  105. package/build/index-5c1f6914.js +1 -0
  106. package/build/{index-cbd2fe76.js → index-5f535a5f.js} +2 -2
  107. package/build/index-7f8104ae.js +75 -0
  108. package/build/{index-030507b7.js → index-a575704e.js} +1 -1
  109. package/build/index-a7fadf8e.js +1 -0
  110. package/build/{index-30c70c8b.js → index-af0d8341.js} +1 -1
  111. package/build/{index-432de64e.js → index-b54f49fc.js} +1 -1
  112. package/build/{index-d4a2c5ff.js → index-c189e76c.js} +1 -1
  113. package/build/{index-93547091.js → index-cf24fd82.js} +1 -1
  114. package/build/index-df6cb91f.js +1 -0
  115. package/build/index-e12d4d7d.js +1 -0
  116. package/build/index-e27e8676.js +1 -0
  117. package/build/index-f61308fe.js +1 -0
  118. package/build/index.js +1 -1
  119. package/build/index.styled-06c1ebf7.js +166 -0
  120. package/build/index.styled-09127648.js +45 -0
  121. package/build/{index.styled-9fc33324.js → index.styled-4c059ef2.js} +1 -1
  122. package/build/{index.styled-c06cdfa4.js → index.styled-4eecded5.js} +1 -1
  123. package/build/{index.styled-5b825227.js → index.styled-51ec177c.js} +1 -1
  124. package/build/{index.styled-9a3367c0.js → index.styled-7e9462f7.js} +263 -263
  125. package/build/{index.styled-53368900.js → index.styled-9bb1672d.js} +1 -1
  126. package/build/{index.styled-a497113d.js → index.styled-f24c36f7.js} +39 -39
  127. package/build/interfaces/types/Onboarding.d.ts +21 -0
  128. package/build/interfaces/types/index.d.ts +1 -0
  129. package/build/lead.js +1 -1
  130. package/build/mantine.js +1 -1
  131. package/build/misc.js +1 -1
  132. package/build/navigation.js +1 -1
  133. package/build/onboarding.js +1 -1
  134. package/build/pwg.js +3 -3
  135. package/build/{routing-6c30b15d.js → routing-28dbb192.js} +1 -1
  136. package/build/{screenSizeContext-21fe25eb.js → screenSizeContext-ca33c753.js} +4 -4
  137. package/build/together.js +1 -1
  138. package/build/{translationsContext-2073dca0.js → translationsContext-66459815.js} +1 -1
  139. package/build/translationsProvider-50aa6903.js +1 -0
  140. package/build/{types-9b054698.js → types-7397ed45.js} +1 -1
  141. package/build/{types-52e4bc98.js → types-8be20c67.js} +120 -120
  142. package/build/types.js +1 -1
  143. package/build/{useHealthToolCache-fcc0f814.js → useHealthToolCache-566ddd40.js} +1 -1
  144. package/build/{useRafState-0077c7a5.js → useRafState-d103c212.js} +1 -1
  145. package/build/useTranslations-5f6083e4.js +1 -0
  146. package/package.json +1 -1
  147. package/build/Locale-5cd82b7f.js +0 -1
  148. package/build/components/mantine/radio/index.styled.d.ts +0 -6
  149. package/build/components/organisms/onboardingModal/components/formSection/index.d.ts +0 -8
  150. package/build/components/organisms/onboardingModal/components/formSection/index.styled.d.ts +0 -6
  151. package/build/esm/Locale-79fc91cd.js +0 -1
  152. package/build/esm/getSocialList-9340cc8c.js +0 -1
  153. package/build/esm/index-291c1b6b.js +0 -1
  154. package/build/esm/index-2b98dc9c.js +0 -1
  155. package/build/esm/index-2f24303b.js +0 -1
  156. package/build/esm/index-318b9ac3.js +0 -1
  157. package/build/esm/index-3e657741.js +0 -1
  158. package/build/esm/index-43f866c9.js +0 -170
  159. package/build/esm/index-46727512.js +0 -1
  160. package/build/esm/index-5a2fd2ee.js +0 -177
  161. package/build/esm/index-99319bb8.js +0 -67
  162. package/build/esm/index-c899a726.js +0 -1
  163. package/build/esm/index-d22a3a21.js +0 -1
  164. package/build/esm/translationsProvider-1bac2ef8.js +0 -1
  165. package/build/esm/useHealthToolCache-c13ad9ca.js +0 -1
  166. package/build/esm/useTranslations-68bb344a.js +0 -1
  167. package/build/getSocialList-3787f468.js +0 -1
  168. package/build/index-013c8d93.js +0 -1
  169. package/build/index-01d50cb6.js +0 -1
  170. package/build/index-0a8cef6f.js +0 -1
  171. package/build/index-0e9eb356.js +0 -1
  172. package/build/index-1c0a9448.js +0 -1
  173. package/build/index-1efc6964.js +0 -170
  174. package/build/index-26bcea24.js +0 -62
  175. package/build/index-4875365d.js +0 -1
  176. package/build/index-b1eccad6.js +0 -177
  177. package/build/index-bd7f9211.js +0 -1
  178. package/build/index.styled-8bf16395.js +0 -45
  179. package/build/translationsProvider-3c6938ac.js +0 -1
  180. package/build/useTranslations-caa7e3b4.js +0 -1
  181. /package/build/{BMI_BOYS.percentile.monthly-fa0be4d8.js → BMI_BOYS.percentile.monthly-46ed8782.js} +0 -0
  182. /package/build/{BMI_BOYS.percentile.weekly-c55cbd20.js → BMI_BOYS.percentile.weekly-ea245e7d.js} +0 -0
  183. /package/build/{BMI_BOYS.percentile.yearly-c3bdd8d7.js → BMI_BOYS.percentile.yearly-4964c63d.js} +0 -0
  184. /package/build/{BMI_BOYS.zscore.monthly-8b08ab7b.js → BMI_BOYS.zscore.monthly-66b73fe5.js} +0 -0
  185. /package/build/{BMI_BOYS.zscore.weekly-9e6877b5.js → BMI_BOYS.zscore.weekly-bce8d721.js} +0 -0
  186. /package/build/{BMI_BOYS.zscore.yearly-aec2e44b.js → BMI_BOYS.zscore.yearly-8885048e.js} +0 -0
  187. /package/build/{BMI_GIRLS.percentile.monthly-6fb8b5ce.js → BMI_GIRLS.percentile.monthly-1263f390.js} +0 -0
  188. /package/build/{BMI_GIRLS.percentile.weekly-a1c2c0bd.js → BMI_GIRLS.percentile.weekly-6ace4168.js} +0 -0
  189. /package/build/{BMI_GIRLS.percentile.yearly-8e06e444.js → BMI_GIRLS.percentile.yearly-34d00a37.js} +0 -0
  190. /package/build/{BMI_GIRLS.zscore.monthly-ef5b7af1.js → BMI_GIRLS.zscore.monthly-f069715f.js} +0 -0
  191. /package/build/{BMI_GIRLS.zscore.weekly-e8395ff7.js → BMI_GIRLS.zscore.weekly-d587113b.js} +0 -0
  192. /package/build/{BMI_GIRLS.zscore.yearly-282a4e56.js → BMI_GIRLS.zscore.yearly-1b2ed137.js} +0 -0
  193. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c5032e42.js → HEAD CIRCUM_BOYS.percentile.monthly-bc448b8c.js} +0 -0
  194. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8b75b7f8.js → HEAD CIRCUM_BOYS.percentile.weekly-7d08ffa0.js} +0 -0
  195. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-c5beff11.js → HEAD CIRCUM_BOYS.percentile.yearly-21e93ed5.js} +0 -0
  196. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e190a68d.js → HEAD CIRCUM_BOYS.zscore.monthly-476055e3.js} +0 -0
  197. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d78b73ee.js → HEAD CIRCUM_BOYS.zscore.weekly-841f61a1.js} +0 -0
  198. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8bf442be.js → HEAD CIRCUM_BOYS.zscore.yearly-caab877b.js} +0 -0
  199. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-cbbde26d.js → HEAD CIRCUM_GIRLS.percentile.monthly-f884dbd6.js} +0 -0
  200. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-f61d1a56.js → HEAD CIRCUM_GIRLS.percentile.weekly-6efa3d99.js} +0 -0
  201. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-38bf1457.js → HEAD CIRCUM_GIRLS.percentile.yearly-039cc1c1.js} +0 -0
  202. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5e5eabef.js → HEAD CIRCUM_GIRLS.zscore.monthly-63aa5a75.js} +0 -0
  203. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-19cce68e.js → HEAD CIRCUM_GIRLS.zscore.weekly-feffe1ca.js} +0 -0
  204. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-069324c8.js → HEAD CIRCUM_GIRLS.zscore.yearly-9f366e67.js} +0 -0
  205. /package/build/{HEIGHT_BOYS.percentile.monthly-0e25b8f1.js → HEIGHT_BOYS.percentile.monthly-9f421b76.js} +0 -0
  206. /package/build/{HEIGHT_BOYS.percentile.weekly-f5c75712.js → HEIGHT_BOYS.percentile.weekly-50053c97.js} +0 -0
  207. /package/build/{HEIGHT_BOYS.percentile.yearly-f5cfc513.js → HEIGHT_BOYS.percentile.yearly-6cdeb16e.js} +0 -0
  208. /package/build/{HEIGHT_BOYS.zscore.monthly-fc321eef.js → HEIGHT_BOYS.zscore.monthly-251fdd58.js} +0 -0
  209. /package/build/{HEIGHT_BOYS.zscore.weekly-127f3471.js → HEIGHT_BOYS.zscore.weekly-7081338b.js} +0 -0
  210. /package/build/{HEIGHT_BOYS.zscore.yearly-1babdd5a.js → HEIGHT_BOYS.zscore.yearly-306cdda4.js} +0 -0
  211. /package/build/{HEIGHT_GIRLS.percentile.monthly-f9b9b6c7.js → HEIGHT_GIRLS.percentile.monthly-1137dc66.js} +0 -0
  212. /package/build/{HEIGHT_GIRLS.percentile.weekly-2c0569c0.js → HEIGHT_GIRLS.percentile.weekly-49e22f50.js} +0 -0
  213. /package/build/{HEIGHT_GIRLS.percentile.yearly-775e1dfc.js → HEIGHT_GIRLS.percentile.yearly-44b69884.js} +0 -0
  214. /package/build/{HEIGHT_GIRLS.zscore.monthly-73ceee79.js → HEIGHT_GIRLS.zscore.monthly-fb062871.js} +0 -0
  215. /package/build/{HEIGHT_GIRLS.zscore.weekly-390b05fa.js → HEIGHT_GIRLS.zscore.weekly-9aad09e0.js} +0 -0
  216. /package/build/{HEIGHT_GIRLS.zscore.yearly-ee4bf292.js → HEIGHT_GIRLS.zscore.yearly-6e0b2151.js} +0 -0
  217. /package/build/{Vietnam-9cf7b511.js → Vietnam-585b1527.js} +0 -0
  218. /package/build/{Visible-6a4ec304.js → Visible-767ce2ab.js} +0 -0
  219. /package/build/{WEIGHT_BOYS.percentile.monthly-a24c2b81.js → WEIGHT_BOYS.percentile.monthly-4e621f13.js} +0 -0
  220. /package/build/{WEIGHT_BOYS.percentile.weekly-e09d4b4b.js → WEIGHT_BOYS.percentile.weekly-8f15abc5.js} +0 -0
  221. /package/build/{WEIGHT_BOYS.percentile.yearly-6369539a.js → WEIGHT_BOYS.percentile.yearly-688c8314.js} +0 -0
  222. /package/build/{WEIGHT_BOYS.zscore.monthly-398d4418.js → WEIGHT_BOYS.zscore.monthly-2e3a2bd4.js} +0 -0
  223. /package/build/{WEIGHT_BOYS.zscore.weekly-84b7994f.js → WEIGHT_BOYS.zscore.weekly-4ec209e7.js} +0 -0
  224. /package/build/{WEIGHT_BOYS.zscore.yearly-4480a2b4.js → WEIGHT_BOYS.zscore.yearly-ebc6ebd1.js} +0 -0
  225. /package/build/{WEIGHT_GIRLS.percentile.monthly-b533e424.js → WEIGHT_GIRLS.percentile.monthly-ae5bd05a.js} +0 -0
  226. /package/build/{WEIGHT_GIRLS.percentile.weekly-a4411026.js → WEIGHT_GIRLS.percentile.weekly-fea83262.js} +0 -0
  227. /package/build/{WEIGHT_GIRLS.percentile.yearly-333f6939.js → WEIGHT_GIRLS.percentile.yearly-528ca2ac.js} +0 -0
  228. /package/build/{WEIGHT_GIRLS.zscore.monthly-36829f79.js → WEIGHT_GIRLS.zscore.monthly-4796637a.js} +0 -0
  229. /package/build/{WEIGHT_GIRLS.zscore.weekly-a08abd76.js → WEIGHT_GIRLS.zscore.weekly-21a75fe5.js} +0 -0
  230. /package/build/{WEIGHT_GIRLS.zscore.yearly-97a39363.js → WEIGHT_GIRLS.zscore.yearly-0569fd51.js} +0 -0
  231. /package/build/{constants-171f066e.js → constants-a6aac2ca.js} +0 -0
  232. /package/build/{cookieHelper-403dcaba.js → cookieHelper-338c2be0.js} +0 -0
  233. /package/build/{dataTransform-8aa3d586.js → dataTransform-82684814.js} +0 -0
  234. /package/build/esm/{BMI_BOYS.percentile.monthly-b8589cda.js → BMI_BOYS.percentile.monthly-0877cfa3.js} +0 -0
  235. /package/build/esm/{BMI_BOYS.percentile.weekly-71605d0c.js → BMI_BOYS.percentile.weekly-89eb2377.js} +0 -0
  236. /package/build/esm/{BMI_BOYS.percentile.yearly-02d017ef.js → BMI_BOYS.percentile.yearly-350de3d4.js} +0 -0
  237. /package/build/esm/{BMI_BOYS.zscore.monthly-a6f26919.js → BMI_BOYS.zscore.monthly-35cd7d3f.js} +0 -0
  238. /package/build/esm/{BMI_BOYS.zscore.weekly-da9c6687.js → BMI_BOYS.zscore.weekly-585e628f.js} +0 -0
  239. /package/build/esm/{BMI_BOYS.zscore.yearly-d5bcf0e9.js → BMI_BOYS.zscore.yearly-9a4ad812.js} +0 -0
  240. /package/build/esm/{BMI_GIRLS.percentile.monthly-d5d944e7.js → BMI_GIRLS.percentile.monthly-d9c2167f.js} +0 -0
  241. /package/build/esm/{BMI_GIRLS.percentile.weekly-8251c806.js → BMI_GIRLS.percentile.weekly-5adb4343.js} +0 -0
  242. /package/build/esm/{BMI_GIRLS.percentile.yearly-06cad3f4.js → BMI_GIRLS.percentile.yearly-b979f569.js} +0 -0
  243. /package/build/esm/{BMI_GIRLS.zscore.monthly-450e2308.js → BMI_GIRLS.zscore.monthly-5cc9b47c.js} +0 -0
  244. /package/build/esm/{BMI_GIRLS.zscore.weekly-75ad89ff.js → BMI_GIRLS.zscore.weekly-b7e111dc.js} +0 -0
  245. /package/build/esm/{BMI_GIRLS.zscore.yearly-aff11e15.js → BMI_GIRLS.zscore.yearly-2880c1b2.js} +0 -0
  246. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-99c00bfc.js → HEAD CIRCUM_BOYS.percentile.monthly-d5094788.js} +0 -0
  247. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-cc742c57.js → HEAD CIRCUM_BOYS.percentile.weekly-195898c1.js} +0 -0
  248. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-499e7f4d.js → HEAD CIRCUM_BOYS.percentile.yearly-b56aec52.js} +0 -0
  249. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-dc064392.js → HEAD CIRCUM_BOYS.zscore.monthly-e21fe96d.js} +0 -0
  250. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-223b34c4.js → HEAD CIRCUM_BOYS.zscore.weekly-a360870f.js} +0 -0
  251. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-271d0a15.js → HEAD CIRCUM_BOYS.zscore.yearly-87ffd2bf.js} +0 -0
  252. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-532c3307.js → HEAD CIRCUM_GIRLS.percentile.monthly-613d96c1.js} +0 -0
  253. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-18425e5c.js → HEAD CIRCUM_GIRLS.percentile.weekly-f8282143.js} +0 -0
  254. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-b0d5af48.js → HEAD CIRCUM_GIRLS.percentile.yearly-e4e2a575.js} +0 -0
  255. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-22a0d6f0.js → HEAD CIRCUM_GIRLS.zscore.monthly-0d83ed3a.js} +0 -0
  256. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-52035a58.js → HEAD CIRCUM_GIRLS.zscore.weekly-23cfaf47.js} +0 -0
  257. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-986190bf.js → HEAD CIRCUM_GIRLS.zscore.yearly-7865540b.js} +0 -0
  258. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-dbca101c.js → HEIGHT_BOYS.percentile.monthly-7cf03a94.js} +0 -0
  259. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1c45cb2d.js → HEIGHT_BOYS.percentile.weekly-ca686c31.js} +0 -0
  260. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-418d91ce.js → HEIGHT_BOYS.percentile.yearly-a4456910.js} +0 -0
  261. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6d4809f8.js → HEIGHT_BOYS.zscore.monthly-2742cea8.js} +0 -0
  262. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f4fd7ad7.js → HEIGHT_BOYS.zscore.weekly-d1d9da04.js} +0 -0
  263. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-af84c39d.js → HEIGHT_BOYS.zscore.yearly-65a6d2db.js} +0 -0
  264. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-723c551e.js → HEIGHT_GIRLS.percentile.monthly-ca6bccdc.js} +0 -0
  265. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-93e05157.js → HEIGHT_GIRLS.percentile.weekly-2e950f11.js} +0 -0
  266. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3d22c5a4.js → HEIGHT_GIRLS.percentile.yearly-96c649de.js} +0 -0
  267. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c6ba94c0.js → HEIGHT_GIRLS.zscore.monthly-3ad24724.js} +0 -0
  268. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-fe219f7e.js → HEIGHT_GIRLS.zscore.weekly-1ba71178.js} +0 -0
  269. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-f62d2e09.js → HEIGHT_GIRLS.zscore.yearly-f62a3440.js} +0 -0
  270. /package/build/esm/{Vietnam-bb19ea1e.js → Vietnam-a3fd330e.js} +0 -0
  271. /package/build/esm/{Visible-49618911.js → Visible-656cb3fc.js} +0 -0
  272. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-0846efe5.js → WEIGHT_BOYS.percentile.monthly-20fd9a70.js} +0 -0
  273. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-9faf2bbd.js → WEIGHT_BOYS.percentile.weekly-22f6c1e7.js} +0 -0
  274. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4347f35d.js → WEIGHT_BOYS.percentile.yearly-0181610e.js} +0 -0
  275. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-7afb1f3b.js → WEIGHT_BOYS.zscore.monthly-931ade4a.js} +0 -0
  276. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-f459da3d.js → WEIGHT_BOYS.zscore.weekly-355bfdab.js} +0 -0
  277. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0df3047d.js → WEIGHT_BOYS.zscore.yearly-a57c12c2.js} +0 -0
  278. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-99404580.js → WEIGHT_GIRLS.percentile.monthly-79eb36cc.js} +0 -0
  279. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-766305b3.js → WEIGHT_GIRLS.percentile.weekly-99fcc915.js} +0 -0
  280. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-e1326814.js → WEIGHT_GIRLS.percentile.yearly-203869dc.js} +0 -0
  281. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-04d36d81.js → WEIGHT_GIRLS.zscore.monthly-db087afd.js} +0 -0
  282. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-47817f65.js → WEIGHT_GIRLS.zscore.weekly-62625957.js} +0 -0
  283. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-3158474e.js → WEIGHT_GIRLS.zscore.yearly-36397b83.js} +0 -0
  284. /package/build/esm/{constants-054e7149.js → constants-f80968b2.js} +0 -0
  285. /package/build/esm/{cookieHelper-12b36680.js → cookieHelper-d11ecd73.js} +0 -0
  286. /package/build/esm/{dataTransform-3b7c6864.js → dataTransform-654aecb0.js} +0 -0
  287. /package/build/esm/{index-de6beffa.js → index-0e23add6.js} +0 -0
  288. /package/build/esm/{isProduction-fae24f0d.js → isProduction-990cd44c.js} +0 -0
  289. /package/build/esm/{localizeNumberFormat-0877f62c.js → localizeNumberFormat-f42f5a22.js} +0 -0
  290. /package/build/esm/{normalizeLink-a656e7c6.js → normalizeLink-2f6f6fb0.js} +0 -0
  291. /package/build/esm/{theme-8eeec0f6.js → theme-6a93b566.js} +0 -0
  292. /package/build/esm/{tslib.es6-29604e86.js → tslib.es6-f9bbd890.js} +0 -0
  293. /package/build/esm/{useIsInit-788d3e10.js → useIsInit-81dd61a0.js} +0 -0
  294. /package/build/esm/{useOutsideClick-e6b4249c.js → useOutsideClick-0109b690.js} +0 -0
  295. /package/build/esm/{useScrollbarSize-edd93cf2.js → useScrollbarSize-119c8636.js} +0 -0
  296. /package/build/esm/{useUniqueId-df648499.js → useUniqueId-d87d7ca7.js} +0 -0
  297. /package/build/esm/{utils-095abcea.js → utils-9ef41591.js} +0 -0
  298. /package/build/{index-01009975.js → index-ad2d49c8.js} +0 -0
  299. /package/build/{isProduction-a0c54d6b.js → isProduction-f84dd7e2.js} +0 -0
  300. /package/build/{localizeNumberFormat-4e2c2f5b.js → localizeNumberFormat-6d0123d2.js} +0 -0
  301. /package/build/{normalizeLink-53b761c0.js → normalizeLink-419034bd.js} +0 -0
  302. /package/build/{theme-0a3c7889.js → theme-60cc7a9c.js} +0 -0
  303. /package/build/{tslib.es6-8242200f.js → tslib.es6-cb690bef.js} +0 -0
  304. /package/build/{useIsInit-0b3b8006.js → useIsInit-1214075c.js} +0 -0
  305. /package/build/{useOutsideClick-c4ab263c.js → useOutsideClick-48be5d45.js} +0 -0
  306. /package/build/{useScrollbarSize-df82c46e.js → useScrollbarSize-250dc575.js} +0 -0
  307. /package/build/{useUniqueId-c7ee5797.js → useUniqueId-f4386af9.js} +0 -0
  308. /package/build/{utils-bed11293.js → utils-f8ce6afc.js} +0 -0
package/build/types.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Locale-5cd82b7f.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-b479219e.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}});
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-8242200f.js"),t=require("react"),o=require("./getDynamicHealthTool-56120bb9.js");exports.useHealthToolsCache=a=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield o.getDynamicHealthToolWithCache(a);l(e)}))}),[o.getDynamicHealthToolWithCache,a]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
1
+ "use strict";var e=require("./tslib.es6-cb690bef.js"),t=require("react"),o=require("./getDynamicHealthTool-62933f89.js");exports.useHealthToolsCache=a=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield o.getDynamicHealthToolWithCache(a);l(e)}))}),[o.getDynamicHealthToolWithCache,a]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-8242200f.js"),t=require("react"),r=require("./cookieHelper-403dcaba.js"),n=require("./useUniqueId-c7ee5797.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const a=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,o,u,l;if(!a.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),a.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(o=a.current)||void 0===o?void 0:o.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,a,o,c,s]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};s&&(d.fn=s),e&&(d.em=e),t&&(d.ph=t),a&&(d.db=a),o&&(d.ge=o),c&&(d.ct=c),null===(l=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===l||l.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),a=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,a]};
1
+ "use strict";var e=require("./tslib.es6-cb690bef.js"),t=require("react"),r=require("./cookieHelper-338c2be0.js"),n=require("./useUniqueId-f4386af9.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const a=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,o,u,l;if(!a.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),a.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(o=a.current)||void 0===o?void 0:o.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,a,o,c,s]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};s&&(d.fn=s),e&&(d.em=e),t&&(d.ph=t),a&&(d.db=a),o&&(d.ge=o),c&&(d.ct=c),null===(l=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===l||l.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),a=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,a]};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("react"),t=require("./translationsContext-66459815.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,r)=>a?a[e]?r?n.default(a[e]||e,r):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),r?n.default(t.defaultTranslations[e]||e,r):t.defaultTranslations[e]||e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhgtech/hhg-components",
3
- "version": "1.24.20",
3
+ "version": "1.24.22",
4
4
  "main": "build/index.js",
5
5
  "module": "build/esm/index.js",
6
6
  "files": [
@@ -1 +0,0 @@
1
- "use strict";var e,t,r,a,o;exports.Gender=void 0,(e=exports.Gender||(exports.Gender={})).Boy="boy",e.Girl="girl",exports.BabyGrowthChartType=void 0,(t=exports.BabyGrowthChartType||(exports.BabyGrowthChartType={}))[t.Weight=0]="Weight",t[t.Height=1]="Height",t[t.Head=2]="Head",t[t.BMI=3]="BMI",exports.BabyGrowthChartDuration=void 0,(r=exports.BabyGrowthChartDuration||(exports.BabyGrowthChartDuration={}))[r.Weekly=0]="Weekly",r[r.Monthly=1]="Monthly",r[r.Yearly=2]="Yearly",exports.BabyGrowthResultTab=void 0,(a=exports.BabyGrowthResultTab||(exports.BabyGrowthResultTab={}))[a.Weight=0]="Weight",a[a.Height=1]="Height",a[a.Head=2]="Head",a[a.BMI=3]="BMI",a[a.Record=4]="Record",exports.LOCALE=void 0,(o=exports.LOCALE||(exports.LOCALE={})).Vietnam="vi-VN",o.Indonesia="id-ID",o.Malaysia="ms-MY",o.Cambodia="km-KH",o.PhilippinesEnglish="en-PH",o.PhilippinesTagalog="tl-PH",o.Thailand="th-TH",o.Myanmar="my-MM",o.Taiwan="zh-TW",o.India="hi-IN";
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledRadio: import("styled-components").StyledComponent<((props: import("@mantine/core").RadioProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
3
- Group: import("react").ForwardRefExoticComponent<import("@mantine/core").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
4
- } & {
5
- displayName: string;
6
- }, any, {}, never>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { ContainerProps } from '@mantine/core';
3
- export type FormSectionProps = {
4
- heading: string;
5
- description: React.ReactNode;
6
- imgSrc?: string;
7
- } & ContainerProps;
8
- export declare const FormSection: ({ heading, description, children, className, imgSrc, ...rest }: FormSectionProps) => JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledText: import("styled-components").StyledComponent<(<T>({ size, type, className, style, children, color, dataEventCategory, dataEventAction, dataEventLabel, as, wordWrap, isUppercase, ...rest }: import("../../../../atoms/text").Props<T>) => JSX.Element), any, {}, never>;
4
- export declare const StyledFormInner: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const StyledFormSection: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@mantine/core").ContainerProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
6
- export declare const StyledThumb: import("styled-components").StyledComponent<"img", any, {}, never>;
@@ -1 +0,0 @@
1
- var i,a,e,n,t;!function(i){i.Boy="boy",i.Girl="girl"}(i||(i={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI"}(a||(a={})),function(i){i[i.Weekly=0]="Weekly",i[i.Monthly=1]="Monthly",i[i.Yearly=2]="Yearly"}(e||(e={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI",i[i.Record=4]="Record"}(n||(n={})),function(i){i.Vietnam="vi-VN",i.Indonesia="id-ID",i.Malaysia="ms-MY",i.Cambodia="km-KH",i.PhilippinesEnglish="en-PH",i.PhilippinesTagalog="tl-PH",i.Thailand="th-TH",i.Myanmar="my-MM",i.Taiwan="zh-TW",i.India="hi-IN"}(t||(t={}));export{a as B,i as G,t as L,e as a,n as b};
@@ -1 +0,0 @@
1
- import e from"react";import{L as t}from"./Locale-79fc91cd.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
@@ -1 +0,0 @@
1
- import{L as o}from"./Locale-79fc91cd.js";import{i as e}from"./isProduction-fae24f0d.js";const l={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},i={HELLO_HEALTH_GROUP:{lng:o.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:o.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:o.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:o.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:o.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:o.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:o.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:o.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:o.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:o.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:o.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:o.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}},n="userGeoLocationCoordinates",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},t={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},s={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},E="user",c=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],I=["vi-VN","id-ID","en-PH","tl-PH","zh-TW"],h=["vi-VN","id-ID"],T={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var r;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(r||(r={}));const O={[o.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[o.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[o.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[o.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}};var p=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:n,domainLocales:a,LOCALE_SPECS:t,STATIC_PAGES:s,UP_BASEPATH:E,TOGETHER_LOCALES:c,CARE_LOCALES:I,CARE_BOOKING_LOCALES:h,FAVICONS:T,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:O,siteHost:l,siteOptions:i,isProduction:e});export{I as C,T as F,O as I,t as L,r as Q,s as S,c as T,E as U,h as a,n as b,l as c,a as d,p as i,i as s};
@@ -1 +0,0 @@
1
- import e,{useState as a,useEffect as t}from"react";import{z as r}from"./index.styled-5f91b6a7.js";import{_ as s}from"./tslib.es6-29604e86.js";import{u as o}from"./useTranslations-68bb344a.js";import{B as n}from"./index-700e710c.js";import{T as l}from"./index-9e7b7ac2.js";import{bp as i,bq as d,br as c,bs as m}from"./index.styled-23956c9f.js";import{t as y}from"./theme-8eeec0f6.js";const b=({type:a="solid",className:t,style:s})=>e.createElement(r,{style:s,className:t,"data-diver-type":a,dividerType:a});var v="U9NRDG6";const p={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},u=a=>{var{siteType:t,role:r,title:n}=a,l=s(a,["siteType","role","title"]);const{t:i}=o(),d=r?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((a=>a===e)))(r):"";return d&&p[d]?e.createElement("div",Object.assign({className:v,"data-label-type":d,"data-is-marrybaby":"marryBaby"===t},l),n||i(p[d])):null};var E="Dudns9-";const f=({value:r,choices:s,onChange:o,isMarryBaby:l})=>{const[i,d]=a(r);return t((()=>{d(r)}),[r]),e.createElement("div",{className:E},s.map(((a,t)=>e.createElement(n,{size:"sm",color:a.value===i?"primary":"tertiary",key:t,onClick:()=>{d(a.value),null==o||o(a.value)},theme:l?"marryBaby":"helloSites"},a.label||""))))},h=({style:r,initialTab:s,tabContent:o,onChange:n,className:b,dataEventCategory:v,dataEventAction:p,dataEventLabel:u,id:E})=>{const[f,h]=a(s||0);return t((()=>{h(s)}),[s]),e.createElement(i,{style:r,className:b,role:"tablist",id:E},o.map(((a,t)=>e.createElement(d,{"data-is-tab-active":f===t||void 0,"aria-selected":f===t,role:"tab",onClick:()=>{h(t),n&&n(t)},onKeyDown:e=>{"Enter"===e.key&&(h(t),n&&n(t))},key:t,"data-event-category":a.dataEventCategory||v,"data-event-action":a.dataEventAction||p,"data-event-label":a.dataEventLabel||u,tabIndex:0,"data-testid":a.dataTestid},e.createElement(c,null,a.icon&&e.createElement(m,null,a.icon),e.createElement(l,{size:a.textSize||"sm",type:a.textType||"bold",color:a.textColor||y.colors.gray800,dataEventCategory:a.dataEventCategory,dataEventAction:a.dataEventAction,dataEventLabel:a.dataEventLabel},a.name))))))};export{u as A,f as B,b as D,h as T};
@@ -1 +0,0 @@
1
- import{G as r,B as t,a as e,b as a,L as o}from"./Locale-79fc91cd.js";var n=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return o}});export{n as i};
@@ -1 +0,0 @@
1
- import e from"react";import{u as a}from"./useTranslations-68bb344a.js";import{t}from"./theme-8eeec0f6.js";import{I as r}from"./index-5a2fd2ee.js";import{I as o}from"./index-33c69c18.js";import{M as s}from"./index-ad87b858.js";import{T as i}from"./index-9e7b7ac2.js";import{ai as c}from"./index.styled-5f91b6a7.js";const m=({isActive:m,onChange:n,value:l="",onInputChange:d,siteType:p})=>{const{t:y}=a(),b="marryBaby"===p;return e.createElement(c,{onClick:()=>n("new"),"data-is-mb":b,"data-isActive":b&&m},"marryBaby"===p?e.createElement("div",{className:"title"},e.createElement(s,{type:"bodytext-1",color:t.colors.gray800},y("chooseBaby.new")),e.createElement("div",{className:m?"radio active":"radio"},m&&e.createElement(r.CheckActiveMB,{size:26}))):e.createElement("div",{className:"title"},e.createElement(i,{size:"p2",color:t.colors.gray800},y("chooseBaby.new")),e.createElement("div",{className:m?"radio active":"radio"})),e.createElement(o,{name:"name",value:l,size:"md",placeholder:y("chooseBaby.placeholder"),type:"text",onChange:d}))};export{m as N};
@@ -1 +0,0 @@
1
- import{_ as e}from"./tslib.es6-29604e86.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{B as s}from"./index-700e710c.js";import{D as r,S as i,b as l}from"./index-a5b5f7c6.js";const m=m=>{var{color:c,withControl:h,onChange:g,value:w,min:d,max:p,isStatic:u,containerClassName:k,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[C,b]=o(w||d||0),[f]=a(C,r);return n((()=>{null==g||g(f)}),[f]),n((()=>{b(w)}),[w]),t.createElement(i,{className:k,style:v},h&&t.createElement(s,{type:"button",size:"sm",color:"ghost",onClick:()=>{b((e=>d&&e===d?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:C,onChange:u?()=>null:b,min:d,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(s,{type:"button",size:"sm",color:"ghost",onClick:()=>{b((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,170 +0,0 @@
1
- import{_ as e,a as o}from"./tslib.es6-29604e86.js";import n,{createContext as t,useContext as r,useState as i,useRef as a,useEffect as s,useMemo as l,useCallback as d}from"react";import{useInterval as m,useCounter as c}from"@mantine/hooks";import{H as p}from"./index.styled-5f91b6a7.js";import{B as g}from"./index-700e710c.js";import"./gAssets.js";import"./index.styled-c9eb0225.js";import{c as b}from"./index-e8374844.js";import{M as u}from"./utils-095abcea.js";import{t as h}from"./theme-8eeec0f6.js";import{Container as f,Input as E}from"@mantine/core";import"./index.styled-063818f6.js";import{u as y}from"./useTranslations-68bb344a.js";import"./index-de6beffa.js";import"lodash/debounce";import"./isProduction-fae24f0d.js";import{L as x}from"./index-291c1b6b.js";import"dayjs";import"./screenSizeContext-b2458972.js";import v from"styled-components";import{L as P}from"./Locale-79fc91cd.js";import"./translationsContext-5e1a1aa9.js";import"string-format";import{T as w}from"./index-9e7b7ac2.js";import{useForm as S,yupResolver as j}from"@mantine/form";import{P as k,O as C,D as O,R as M}from"./index-99319bb8.js";import*as T from"yup";import N from"lodash/throttle";import"./index.styled-b79106ee.js";import{P as B}from"./index-a5b5f7c6.js";import"./index-e009fe25.js";import{format as I}from"date-fns";import{V as L}from"./Visible-49618911.js";const z=t({}),F=v.div``,$=v(w)`
2
- margin-top: 8px;
3
- `,D=v.div`
4
- margin-top: 70px;
5
- display: flex;
6
- flex-direction: column;
7
- align-items: center;
8
- justify-content: center;
9
- `,V=v(f)`
10
- &.hhg-comp-onboarding-container.hhg-comp-onboarding-container {
11
- display: flex;
12
- flex-direction: column;
13
- align-items: center;
14
- height: 100%;
15
- width: 100%;
16
- max-width: 520px;
17
- }
18
- .header {
19
- margin-bottom: 32px;
20
- text-align: center;
21
- ${u.mbDown} {
22
- margin-bottom: 16px;
23
- }
24
- }
25
-
26
- .input-control {
27
- width: 100%;
28
-
29
- label {
30
- font-size: 12px;
31
- line-height: 18px;
32
- font-weight: 600;
33
- margin-bottom: 6px;
34
- }
35
-
36
- input {
37
- height: 42px;
38
- line-height: 42px;
39
- font-size: 14px;
40
- }
41
- }
42
- .radio-group,
43
- .input-control {
44
- margin-bottom: 16px;
45
- }
46
- .form {
47
- width: 100%;
48
- }
49
-
50
- .form-error {
51
- margin-top: 32px;
52
- font-size: 14px;
53
- }
54
-
55
- .field-error {
56
- margin-top: 10px;
57
- font-size: 14px;
58
- }
59
-
60
- .form-button {
61
- width: 100%;
62
- }
63
- `,A=v.img`
64
- margin-bottom: 38px;
65
- `,R=o=>{var t,{heading:i,description:a,children:s,className:l,imgSrc:d}=o,m=e(o,["heading","description","children","className","imgSrc"]);const{isMarryBaby:c,siteType:g}=r(z);return n.createElement(V,Object.assign({},m,{className:`hhg-comp-onboarding-container ${l}`,size:"sm"}),n.createElement(b,{type:c?g:(null===(t=x[process.env.UNIFY_LOCALE])||void 0===t?void 0:t.LOGO_TYPE)||"hellobacsi"}),n.createElement(D,null,d&&n.createElement(A,{src:d,loading:"lazy"}),n.createElement(F,{className:"header"},n.createElement(p,{tag:"h3"},i),n.createElement($,{size:"p3",color:h.colors.gray600},a)),s))},U=e=>T.object().shape({phone:T.string().required(e("onboarding.updatePhone.error")).default("")}),q=e=>T.object().shape({otp:T.string().required(e("onboarding.otpForm.error")).length(6,e("onboarding.otpForm.error")).default("")}),H=e=>T.object().shape({email:T.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),name:T.string().required(e("onboarding.errorMessage.requiredName"))}),_=e=>T.object().shape({password:T.string().required(e("onboarding.errorMessage.requiredPassword")).min(8,e("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,e("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:T.string().required(e("onboarding.errorMessage.requiredConfirmPassword")).oneOf([T.ref("password"),null],e("onboarding.errorMessage.passNotMatch")).default("")}),W=v(R)`
66
- .phone-input {
67
- width: 100%;
68
- margin-bottom: 32px;
69
- ${u.mbDown} {
70
- margin-bottom: 16px;
71
- }
72
- .PhoneInput {
73
- margin-bottom: 16px;
74
- }
75
- .PhoneInputCountry {
76
- border-radius: 4px 0 0 4px;
77
- }
78
- .PhoneInputInput {
79
- border-radius: 0 4px 4px 0;
80
- }
81
- }
82
- `,Y={[P.Vietnam]:"VN",[P.Cambodia]:"KH",[P.Indonesia]:"ID",[P.Malaysia]:"MY",[P.PhilippinesEnglish]:"PH",[P.PhilippinesTagalog]:"PH",[P.Taiwan]:"TW",[P.Thailand]:"TH",[P.Myanmar]:"MM"},Z=({onClose:e,onSubmit:t,canSkip:r=!0,customFormTexts:i})=>{const{t:a}=y(),s=S({initialValues:{phone:""},validate:j(U(a))});return n.createElement(W,{heading:(null==i?void 0:i.heading)||a("onboarding.updatePhone.heading"),description:(null==i?void 0:i.description)||a("onboarding.updatePhone.description")},n.createElement("form",{onSubmit:s.onSubmit((e=>o(void 0,void 0,void 0,(function*(){t(e.phone)}))),(e=>{console.log(e)}))},n.createElement("div",{className:"phone-input"},n.createElement(k,Object.assign({defaultCountry:Y[process.env.UNIFY_LOCALE]||"VN"},s.getInputProps("phone"))),n.createElement(E.Error,null,s.errors.phone)),n.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},a("onboarding.button.continue")),r&&n.createElement(g,{color:"ghost",isBlock:!0,size:"lg",onClick:e,type:"button"},a("onboarding.button.skip"))))};P.Vietnam,P.Cambodia,P.Indonesia,P.Malaysia,P.PhilippinesEnglish,P.PhilippinesTagalog,P.Taiwan,P.Thailand,P.Myanmar;const G=(e="")=>{const o=e.indexOf("@"),n=e.substring(0,o),t=n.length>3?3:n.length;return e.replace(e.substring(t,o),e.slice(t,o).replace(/./g,"x"))},K=v(R)`
83
- .otp-input {
84
- margin-bottom: 36px;
85
- ${u.mbDown} {
86
- margin-bottom: 20px;
87
- }
88
- .otpContainer {
89
- margin-bottom: 16px;
90
- }
91
- }
92
- .resend {
93
- display: flex;
94
- gap: 6px;
95
- margin-bottom: 32px;
96
- ${u.mbDown} {
97
- margin-bottom: 16px;
98
- }
99
- a {
100
- text-decoration: underline;
101
- cursor: pointer;
102
- }
103
- }
104
- .phone-description {
105
- margin-left: 2px;
106
- margin-top: 2px;
107
- }
108
- .otp-description-edit-icon {
109
- cursor: pointer;
110
- vertical-align: bottom;
111
- /* height: 100%; */
112
- margin-bottom: 3px;
113
- margin-left: 3px;
114
- }
115
- `,J=({onSubmit:e,phone:t,email:d,onResendCode:p,otpError:b,onClose:u,loading:f,onBack:x,canSkip:v,outOfEdit:P})=>{const{siteType:k,isMarryBaby:O}=r(z),[M,T]=i(30),B=m((()=>T((e=>e-1))),1e3),[I,L]=c(0,{min:0,max:3}),F=a(!0),{t:$}=y();s((()=>(B.start(),B.stop)),[]),s((()=>{0===M&&(B.stop(),F.current=!1)}),[M]);const D=S({initialValues:{otp:""},validate:j(q($))});s((()=>{b&&D.setFieldError("otp",b)}),[b]);const V=l((()=>N((()=>{F.current||(L.increment(),T(30),null==p||p(t||d),B.start(),F.current=!0)}),1e3,{trailing:!1})),[t,d,p,B]);return n.createElement(K,{heading:$("onboarding.otpForm.heading"),description:n.createElement(n.Fragment,null,n.createElement("span",{dangerouslySetInnerHTML:{__html:t?$("onboarding.otpForm.description",{phone:`<b style="color:${h.colors.gray800}">${t.slice(0,-3).replace(/./g,"x").concat(t.slice(-3))}</b>`}):$("onboarding.otpForm.descriptionEmail",{email:`<b style="color:${h.colors.gray800}">${G(d)}</b>`})}}),!P&&n.createElement("svg",{onClick:()=>{null==x||x()},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},n.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},n.createElement("form",{onSubmit:D.onSubmit((n=>o(void 0,void 0,void 0,(function*(){L.increment(),e(n.otp)}))),(e=>{console.log(e)}))},n.createElement("div",{className:"otp-input"},n.createElement(C,Object.assign({enterKeyHint:void 0,nonce:void 0},D.getInputProps("otp"))),n.createElement(E.Error,null,D.errors.otp)),n.createElement("div",{className:"resend"},n.createElement(w,{size:"p4",color:h.colors.gray400},$("onboarding.otpForm.notReceiveOTP")),n.createElement(w,{as:"a",size:"p4",color:O?h.mbColors.pink:h.colors.primaryBase,onClick:V},$("onboarding.otpForm.resendCode",{seconds:M}))),n.createElement(g,{theme:k,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:f,disabled:f,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},$("onboarding.button.continue")),v&&I>=3&&n.createElement(g,{theme:k,color:"ghost",isBlock:!0,size:"lg",onClick:u,type:"button"},$("onboarding.button.skip"))))},Q=({onClose:e,onSubmit:o,canSkip:t,loading:i,errorMessage:a,initialData:l})=>{const{t:d,locale:m}=y(),{siteType:c,isMarryBaby:p}=r(z),b=S({validate:j(H(d))});console.log({isMarryBaby:p});return s((()=>{b.setValues(Object.assign(Object.assign({gender:"0"},l),(null==l?void 0:l.birthday)&&{birthday:new Date(l.birthday)}))}),[l]),s((()=>{a&&b.setFieldError("email",a)}),[a]),n.createElement(R,{heading:d("onboarding.formEmail.heading"),description:d("onboarding.formEmail.description",{site:p?"Marry Baby":x[m].SITE_NAME_FORMATTED})},n.createElement("form",{className:"form",onSubmit:b.onSubmit((e=>{o(Object.assign(Object.assign({},e),{birthday:e.birthday&&I(e.birthday,"yyyy-MM-dd")}))}),(e=>{console.log({fieldErrors:e})}))},n.createElement(E.Wrapper,{label:d("onboarding.formEmail.yourName"),className:"input-control",withAsterisk:!0},n.createElement(E,Object.assign({},b.getInputProps("name"))),n.createElement(E.Error,{className:"field-error"},b.errors.name)),n.createElement(E.Wrapper,{label:d("onboarding.formEmail.yourEmail"),className:"input-control",withAsterisk:!0},n.createElement(E,Object.assign({},b.getInputProps("email"))),n.createElement(E.Error,{className:"field-error"},b.errors.email)),n.createElement(O,Object.assign({className:"input-control",label:d("onboarding.formEmail.yourBirthday")},b.getInputProps("birthday"))),n.createElement(M.Group,{value:b.values.gender,onChange:e=>b.setFieldValue("gender",e),className:"radio-group"},n.createElement(M,{value:"0",label:d("onboarding.formEmail.genderMale")}),n.createElement(M,{value:"1",label:d("onboarding.formEmail.genderFemale")})),n.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:c,isLoading:i,disabled:i},d("onboarding.button.continue")),t&&n.createElement(g,{theme:c,color:"ghost",isBlock:!0,size:"lg",onClick:e},d("onboarding.button.skip"))))},X=({onClose:e,onSubmit:o,canSkip:t,errorMessage:r,loading:i})=>{const{t:a}=y(),s=S({initialValues:{password:"",confirmPassword:""},validate:j(_(a))});return n.createElement(R,{heading:a("onboarding.updatePassword.heading"),description:a("onboarding.updatePassword.description")},n.createElement("form",{className:"form",onSubmit:s.onSubmit((e=>o((null==e?void 0:e.password)||"")),(e=>{console.log({fieldErrors:e})}))},n.createElement(B,Object.assign({label:a("onboarding.updatePassword.password"),withAsterisk:!0,rightSection:n.createElement(L,null)},s.getInputProps("password"))),n.createElement(B,Object.assign({label:a("onboarding.updatePassword.confirmPassword"),withAsterisk:!0,rightSection:n.createElement(L,null)},s.getInputProps("confirmPassword"))),n.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:i,disabled:i},a("onboarding.button.continue")),t&&n.createElement(g,{color:"ghost",isBlock:!0,size:"lg",onClick:e},a("onboarding.button.skip")),r&&n.createElement(E.Error,{className:"form-error"},r)))},ee=v.div`
116
- position: fixed;
117
- top: 0;
118
- left: 0;
119
- right: 0;
120
- bottom: 0;
121
- z-index: 1000;
122
- background: white;
123
- overflow-y: auto;
124
- `,oe=v.div`
125
- height: 100%;
126
- ${u.lgPcUp} {
127
- display: table;
128
- width: 100%;
129
- height: calc(100% - 25px);
130
- }
131
- `,ne=v.div`
132
- padding: 48px 24px 24px;
133
-
134
- ${u.lgPcUp} {
135
- display: table-cell;
136
-
137
- &[data-has-banner='true'] {
138
- width: calc(100% - 640px);
139
- }
140
- }
141
- `,te=v.div`
142
- width: 640px;
143
- padding: 16px 16px 0 16px;
144
- display: none;
145
-
146
- ${u.lgPcUp} {
147
- width: 640px;
148
- display: table-cell;
149
- }
150
- `,re=v.div`
151
- background-color: ${h.colors.primary50};
152
- border-radius: 12px;
153
- height: 100%;
154
- display: flex;
155
- flex-direction: column;
156
- justify-content: space-between;
157
-
158
- &[data-is-marry-baby='true'] {
159
- background-color: ${h.mbColors.tonePink};
160
- }
161
- `,ie=v.div`
162
- margin-top: 40px;
163
- padding: 24px 40px;
164
- `,ae=v(p)`
165
- margin-bottom: 24px;
166
- text-align: center;
167
- `,se=v(w)``,le=v.img`
168
- width: 100%;
169
- display: block;
170
- `,de=v.div``;var me;!function(e){e[e.Phone=0]="Phone",e[e.OTP=1]="OTP",e[e.OTPEmail=2]="OTPEmail",e[e.PersonalInfo=3]="PersonalInfo",e[e.UpdatePassword=4]="UpdatePassword",e[e.Result=5]="Result"}(me||(me={}));const ce=t=>{var{onClose:r,canSkip:a,flow:s=[me.Phone,me.OTP],step:l,onPhoneSubmit:m,onOtpSubmit:p,onPersonalInfoSubmit:b,onCreatePassByEmail:u,onResendCode:f,otpError:E,personalInfoError:x,createPassError:v,emailLoading:P,createPassLoading:w,otpLoading:S,customFormTexts:j,initialData:k,banner:C,resultScreenProps:O,siteType:M}=t,T=e(t,["onClose","canSkip","flow","step","onPhoneSubmit","onOtpSubmit","onPersonalInfoSubmit","onCreatePassByEmail","onResendCode","otpError","personalInfoError","createPassError","emailLoading","createPassLoading","otpLoading","customFormTexts","initialData","banner","resultScreenProps","siteType"]);const{t:N}=y(),[B,I]=i(l||s[0]),[L,F]=i(""),[$,D]=i(""),[V,A]=c(0,{min:0,max:2}),U=d((()=>{const e=s.indexOf(B)+1;e<=s.length-1&&I(s[e])}),[B]),q=d((()=>{const e=s.indexOf(B)-1;e>=0&&I(s[e])}),[B]),H=e=>o(void 0,void 0,void 0,(function*(){try{!(yield p(e))&&U()}catch(e){console.error(e)}})),_=()=>{V>=2||(A.increment(),q())},W="marryBaby"===M;return console.log({isMarryBaby:W}),n.createElement(z.Provider,{value:{siteType:M,isMarryBaby:W}},n.createElement(ee,Object.assign({},T),s.length>0?n.createElement(oe,null,n.createElement(ne,{"data-has-banner":"object"==typeof C},B===me.Phone&&n.createElement(Z,{onClose:r,canSkip:a,onSubmit:e=>o(void 0,void 0,void 0,(function*(){try{F(e),yield null==m?void 0:m(e),U()}catch(e){console.error(e)}})),customFormTexts:j.onboarding}),B===me.OTP&&n.createElement(J,{onClose:r,onSubmit:H,phone:L,onResendCode:f,otpError:E,loading:S,canSkip:a,onBack:_,outOfEdit:V>=2}),B===me.OTPEmail&&n.createElement(J,{onClose:r,onSubmit:H,onResendCode:f,otpError:E,loading:S,canSkip:a,onBack:_,outOfEdit:V>=2,email:$}),B===me.PersonalInfo&&n.createElement(Q,{initialData:null==k?void 0:k[me.PersonalInfo],onClose:r,canSkip:a,onSubmit:e=>o(void 0,void 0,void 0,(function*(){try{D((null==e?void 0:e.email)||"");!(yield null==b?void 0:b(e))&&U()}catch(e){console.error(e)}})),errorMessage:x,loading:P}),B===me.UpdatePassword&&n.createElement(X,{onClose:r,canSkip:a,onSubmit:e=>o(void 0,void 0,void 0,(function*(){try{yield null==u?void 0:u(e),!v&&U()}catch(e){console.error(e)}})),errorMessage:v,loading:w}),B===me.Result&&n.createElement(R,Object.assign({},O),n.createElement(g,{theme:M,size:"lg",onClick:r,className:"form-button"},N("onboarding.button.continue")))),"object"==typeof C&&n.createElement(te,null,n.createElement(re,{"data-is-marry-baby":W},n.createElement(ie,null,(null==C?void 0:C.heading)&&n.createElement(ae,{tag:"h1"},null==C?void 0:C.heading),(null==C?void 0:C.description)&&n.createElement(se,{size:"p1",color:h.colors.gray800},N("onboarding.welcomeScreen.content"))),(null==C?void 0:C.imgSrc)&&n.createElement(de,null,n.createElement(le,{src:null==C?void 0:C.imgSrc,loading:"lazy"}))))):"Incorrect flow"))};export{Y as M,ce as O,me as a,Z as b,J as c};
@@ -1 +0,0 @@
1
- import{_ as e,a as t}from"./tslib.es6-29604e86.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-c124f5c7.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-df648499.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,l as L,N 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 Z,C as j,E as $,F as V,I,J as F,K as D,L as z,M as G,O as W,P as q,Q as K,R as Y,V as Q,W as J,X,Y as ee,Z as te,_ as le,$ as ae,a0 as ne,a1 as ie,a2 as 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-5975614c.js";import{T as Ae}from"./index-9e7b7ac2.js";import{d as Te,L as _e,S as Re,U as Se,T as Oe,C as Ue}from"./index-291c1b6b.js";import{n as Ze,a as je}from"./normalizeLink-a656e7c6.js";import{c as $e,b as Ve,d as Ie}from"./routing-7c132a40.js";import{P as Fe,b as De,c as ze}from"./dataTransform-5ad5cc61.js";import{L as Ge}from"./index-8b0a5077.js";import{u as We}from"./useTranslations-68bb344a.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-095abcea.js";import{y as Ye,P as Qe,H as Je}from"./index.styled-5f91b6a7.js";import{B as Xe}from"./index-700e710c.js";import{t as et}from"./theme-8eeec0f6.js";import{Portal as tt}from"@mantine/core";import{g as lt}from"./cookieHelper-12b36680.js";import"./index.styled-c9eb0225.js";import{C as at}from"./index-e8374844.js";import"./index.styled-063818f6.js";import"./index-de6beffa.js";import{L as nt}from"./constants-054e7149.js";import it from"string-format";import{u as rt}from"./useIsInit-788d3e10.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,["isTesting"]);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,["isTesting"]);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=({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(Fe,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:t},l.createElement(y,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(w,{siteType:i},l.createElement(Xe,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},r("logout.popup.button.logout")),l.createElement(Xe,{className:"cancel-button",color:"primary",size:"lg",onClick:t},r("logout.popup.button.cancel"))))))},Zt=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=>Zt(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}:{}},jt=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}},$t=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},Vt=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},It=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=nt[l])||void 0===a?void 0:a.ALL}/${(null===(n=nt[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},Ft=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}:{},Dt=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},zt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Gt={navHeader:"uJQBNNg",navAvatar:"TfG3dM5",navHeaderUserInfos:"aMtjFNf",navHeaderUserName:"cSz2RR-",navHeaderMyProfileButton:"GyFm00F"};function Wt({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:Gt.navHeader,onClick:()=>{t&&t()}},l.createElement(ct,{className:Gt.navAvatar,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:r,backgroundColor:"marryBaby"===a?et.mbColors.pink:et.colors.secondaryBase}),l.createElement("div",{className:Gt.navHeaderUserInfos},l.createElement("div",{className:Gt.navHeaderUserName},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Gt.navHeaderMyProfileButton,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 qt="gn6HmGG",Kt="FCx8FEM",Yt="zMiRxaE",Qt="lZ2Z9MQ",Jt="rwm-agG",Xt="qMOscoq";const el=({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:qt},s.map((e=>l.createElement(tl,{key:e.key,item:e,openKey:r,onClickItem:c,locale:t}))))},tl=({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:`${Kt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:Yt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:Qt,style:{backgroundImage:`url("${e.icon}")`}}),r(e.key),e.subMenu&&l.createElement("div",{className:Jt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Xt},e.subMenu.map((e=>l.createElement(tl,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var ll="-AZt1au",al="IvSIfCI",nl="eahCJov",il="XIyViFs",rl="_4y-O0w3",ol="kO8iNgD",sl="a1d4E10",cl="Tdguxxf",ml="-mOxsaU",dl="yPeDBNZ";const hl={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")}},ul=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),r=i((()=>{var l,a;return(null===(a=null===(l=hl[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:rl,"data-user-rank":t},l.createElement("div",{className:ol},l.createElement("div",{className:sl},l.createElement("div",{className:cl,style:{backgroundImage:`url("${r}")`}}),l.createElement("h3",{className:ml},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:dl},a," ",n("userProfile.nav.header.count.posts")))))},gl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:r="helloSites",cardUrls:o=zt,enableCare:s,enableTogether:c,enableEcom:d,userInfo:h,togetherApiDomain:u,userPostsNumber:g,onClickNavigationCard:p,onClickMyProfileButton:v,onClickMenuItem:E,onClickLogout:f,isUserProfileNavigatorMenuHidden:y=!1,isMyHealthEnabled:w=!1,locale:C})=>{const{t:k}=We(),[M,P]=a(g||0),H="marryBaby"===r;n((()=>{if(h&&void 0===g){const e=lt("hhg_user_token");e&&fetch(Ze(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+it(L.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?w:"eCom"!==e||d))}),[H,w]),x=i((()=>"marryBaby"===r?null:l.createElement(Xe,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:f,className:il},k("userProfile.nav.menu.logout"))),[r]),B=l=>{window.location.href=Ze(`${e}${t}/${l}`)},A=e=>{const t=o[e];p?p(t):B(t)};return h?l.createElement("div",{className:ll,"data-theme":r},l.createElement(Wt,{userInfo:h,themeName:r,onClickMyProfileButton:()=>{v?v():B("profile")}}),l.createElement(ul,{themeName:r,rank:"member",numberOfPosts:M}),l.createElement("div",{className:al},N.map((e=>l.createElement(b,{className:nl,key:e,themeName:r,type:e,onClick:A})))),!y&&l.createElement(l.Fragment,null,l.createElement(el,{themeName:r,locale:C,onClickItem:e=>{"logout"===e.link&&f?f():e.link&&!e.subMenu&&(E?E(e.link):B(e.link))}}),x)):null},pl=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:r=!0,targetAvatar:o,id:s,className:c})=>l.createElement(C,{"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)),vl=({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=Ze(`${e}${t}/${l}`))},f=e=>{E(e),c()};return l.createElement(pl,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:c},l.createElement(gl,{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}))},El=({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(Xe,{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?et.mbColors.pink:et.colors.secondaryBase})),l.createElement(vl,{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(Ut,{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:Ze(`${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:et.mbColors.pink},C("navigation.loginJoin"))),l.createElement(Xe,{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 fl="-XmTq5-",yl="V-oxu20";const wl=({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:yl},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:yl},e.name,e.popupType&&l.createElement("div",{className:fl},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)},Ll=()=>{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))})};var bl="eJS8-if",Cl="EuQrB-3",kl="_0JtBh8L";const Ml=({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"}))),Pl=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(at,null,!i&&l.createElement("div",{className:Cl},l.createElement(Ml,{onClosePopup:e})),l.createElement(at,{className:bl},a))),Hl=({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(Je,{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"}})))))},Nl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:r}=o(H);return l.createElement(O,{"data-theme":r},l.createElement(U,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(j,null,e),a&&l.createElement($,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(Xe,{theme:r,className:"survey-contact-submit",size:"md"},n)))))},xl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:r}=o(H);return l.createElement(V,null,l.createElement(I,null,l.createElement(Je,{tag:"marryBaby"===r?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(F,{"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)},Bl=({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=nt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(D,{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(z,null,l.createElement(G,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(W,null,l.createElement(q,null,e.name),l.createElement(K,null,e.description),l.createElement(Y,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},Al=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(xl,{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(Bl,{key:t,index:t,item:e})))):l.createElement(Nl,{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")}))},Tl=({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=nt[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(Pl,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Hl,{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:It({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Al,{spotlights:n,hrefViewMore:m}))},_l=({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,Rl=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=o(H);return l.createElement(xl,{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(_l,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(Nl,{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")}))},Sl=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:r,configs:{statics:s}}=o(H);return l.createElement(Pl,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Hl,{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(Rl,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/spotlight/`}))},Ol=({spotlights:e=[]})=>{const{configs:{statics:t}}=o(H),{t:a}=We();return l.createElement(xl,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:je(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(Nl,{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")}))},Ul=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:r}}=o(H);return l.createElement(Pl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Hl,{hrefViewMore:je(r.TOGETHER_URL_FE),UrlFE:Ze(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(Ol,{spotlights:n}))},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"})))},jl=({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()))},$l=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=o(H);return l.createElement(xl,{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(jl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Zl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(Nl,{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")}))},Vl=({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(Pl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Hl,{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($l,{spotlightHealthTools:n,hrefViewMore:m}))};var Il="_6gGCHV-",Fl="YDzfyQU";const Dl=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Xe,{className:Il,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t)},n):l.createElement("a",{href:a,className:`${Fl} care-button no-replace-click`},l.createElement(Xe,{className:Il,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));function zl({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 Gl({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 Wl=({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(Ll,null)):null,l.createElement(Le,null,l.createElement(Hl,{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(Rl,{spotlightsList:(null==r?void 0:r.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement($l,{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(Al,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=nt[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Ol,{spotlights:null==m?void 0:m.spotlights})))};var ql="IQdn7tn",Kl="_1jX3mGY",Yl="arD755Y";const Ql=({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:ql},l.createElement("div",{className:Kl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:r},l.createElement("div",{className:Yl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(zl,{className:"mobile-close-icon"}),l.createElement(Gl,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Wl,{menuItems:t,closePopup:m}))))},Jl=({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,[Z,j]=a(!1),$=r(47),V=r(null),I=r(!1),F="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&&!I.current&&(I.current=!0,j(!0)),window.scrollY<$.current&&I.current&&(I.current=!1,j(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!Z)}),[Z]),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":Z,"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(Ql,{menuItems:c,type:t}),l.createElement("a",{href:O},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:F,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(ea,{menuItems:c}):C&&l.createElement(Xl,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(Xl,{siteType:h}):l.createElement(ea,{menuItems:c}),l.createElement(He,null,b&&l.createElement(St,{mediaQueryKey:"mbUp"},l.createElement(Dl,{careUrlFe:L.CARE_URL_FE,currentUrl:y,btnName:R("login.booking"),onCareHeaderClick:f})),i,l.createElement(El,{userInfo:B,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=S?Ze(`${S}?returnUrl=${e}`):e}),SSO_URL:je(L.SSO_URL),currentUrl:y,onLogout:A,UP_BASEPATH:Se,isMyHealthEnabled:M,enableCare:k,enableTogether:P,enableEcom:N,togetherApiDomain:je(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!x,userProfileRouterPush:T,isLoading:_,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:Z,locale:g,isMobile:u}):E:null)},Xl=({siteType:e})=>l.createElement(St,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Ll,null)),ea=({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(wl,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(Sl,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(Vl,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(Ul,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(Tl,{careSpecialties:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):null})))))},ta=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:Ze(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:Ze(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:Ze(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(Jl,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(_t,{languageOptions:g,locale:h})})))},la=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(ta,Object.assign({},t)))},aa=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(Ze(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(Ze(`${$e(e)}/wp-json/api/spotlights?per_page=10${k?"&"+k:""}`)).then((e=>e.json())),fetch(Ze(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(Ze(`${$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,Zt))||[],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,Ft))||void 0===r?void 0:r.filter(Dt))||[]},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,jt))||[],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,jt))||[]}}catch(e){}if(C||Oe.includes(e))try{const[t,l]=yield Promise.all([fetch(Ze(`${Ve()}/api/v1/community?website_url=https://${Te[e]}`)).then((e=>e.json())),fetch(Ze(`${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(Ze(Ie()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(Ze(Ie()+`/api/search/?site=${Te[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);b.care={items:(null===(y=null===(f=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===f?void 0:f.map)||void 0===y?void 0:y.call(f,$t))||[],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,Vt))||[]}}catch(e){}}catch(e){console.error(e)}return b})),na=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>aa(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,la as N,vl as P,gl as U,na as a,Wt as b,ul as c,Ut as d,El as e,aa as g};