@hhgtech/hhg-components 1.24.21 → 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 (301) 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/theme/input.d.ts +2 -0
  6. package/build/components/onboarding.d.ts +4 -3
  7. package/build/components/organisms/onboardingModal/components/dynamicForm/index.d.ts +18 -0
  8. package/build/components/organisms/onboardingModal/components/dynamicForm/index.styled.d.ts +1 -0
  9. package/build/components/organisms/onboardingModal/components/onboardingForm/index.styled.d.ts +1 -1
  10. package/build/components/organisms/onboardingModal/components/otpForm/index.styled.d.ts +1 -1
  11. package/build/components/organisms/onboardingModal/components/personalInfoForm/index.d.ts +1 -1
  12. package/build/components/organisms/onboardingModal/components/updatePassword/index.d.ts +1 -1
  13. package/build/components/organisms/onboardingModal/context.d.ts +1 -0
  14. package/build/components/organisms/onboardingModal/index.d.ts +17 -36
  15. package/build/components/organisms/onboardingModal/index.styled.d.ts +0 -4
  16. package/build/components/ui/onboarding/index.d.ts +8 -0
  17. package/build/components/ui/onboarding/index.styled.d.ts +4 -0
  18. package/build/components.js +1 -1
  19. package/build/constants.js +1 -1
  20. package/build/{core-1ddff0e2.js → core-9ac2af30.js} +1 -1
  21. package/build/{dataTransform-f19c1617.js → dataTransform-b8d745de.js} +1 -1
  22. package/build/esm/Onboarding-e9e6a0b3.js +1 -0
  23. package/build/esm/babyGrowth.js +9 -9
  24. package/build/esm/cache.js +1 -1
  25. package/build/esm/care.js +1 -1
  26. package/build/esm/components.js +1 -1
  27. package/build/esm/constants.js +1 -1
  28. package/build/esm/{core-01abe7a1.js → core-3df19176.js} +1 -1
  29. package/build/esm/{dataTransform-b6ffa89e.js → dataTransform-3dbf0687.js} +1 -1
  30. package/build/esm/footer.js +1 -1
  31. package/build/esm/gAssets.js +1 -1
  32. package/build/esm/getDynamicHealthTool-dba298d4.js +1 -0
  33. package/build/esm/getSocialList-71821b27.js +1 -0
  34. package/build/esm/hooks.js +1 -1
  35. package/build/esm/i18n.js +1 -1
  36. package/build/esm/{index-4b19571c.js → index-008e92a3.js} +1 -1
  37. package/build/esm/{index-43d2bffe.js → index-0e0de01d.js} +1 -1
  38. package/build/esm/index-1293aa95.js +1 -0
  39. package/build/esm/index-34ef74f7.js +75 -0
  40. package/build/esm/{index-e2b7ef68.js → index-3a592570.js} +1 -1
  41. package/build/esm/index-3b6e2e21.js +1 -0
  42. package/build/esm/index-5e901368.js +177 -0
  43. package/build/esm/{index-65b95e24.js → index-6cf76009.js} +1 -1
  44. package/build/esm/index-6d1a95af.js +1 -0
  45. package/build/esm/{index-c2de5d7b.js → index-7e6ee7bb.js} +1 -1
  46. package/build/esm/index-80dc7452.js +1 -0
  47. package/build/esm/{index-881e5990.js → index-8392374e.js} +2 -2
  48. package/build/esm/{index-10233643.js → index-977237f7.js} +1 -1
  49. package/build/esm/{index-8f7ffa4b.js → index-97906322.js} +1 -1
  50. package/build/esm/index-bf7ea4d1.js +1 -0
  51. package/build/esm/{index-e1e88ca8.js → index-d6ea8731.js} +1 -1
  52. package/build/esm/index-d7138419.js +1 -0
  53. package/build/esm/{index-6d8a955b.js → index-db80c616.js} +1 -1
  54. package/build/esm/{index-6b049c9f.js → index-e6b80e2d.js} +1 -1
  55. package/build/esm/index-f1502c97.js +1 -0
  56. package/build/esm/index-fcab6af7.js +1 -0
  57. package/build/esm/index.css +1 -1
  58. package/build/esm/index.js +1 -1
  59. package/build/esm/{index.styled-c3d5eff6.js → index.styled-27074988.js} +1 -1
  60. package/build/esm/index.styled-56e2987b.js +166 -0
  61. package/build/esm/{index.styled-981e6c04.js → index.styled-727e93fd.js} +1 -1
  62. package/build/esm/{index.styled-89252990.js → index.styled-87dfb77d.js} +12 -12
  63. package/build/esm/{index.styled-8aca10eb.js → index.styled-99a22203.js} +4 -4
  64. package/build/esm/{index.styled-243d7f64.js → index.styled-9b7d8209.js} +1 -1
  65. package/build/esm/{index.styled-38864315.js → index.styled-dba64061.js} +54 -54
  66. package/build/esm/{index.styled-839052ac.js → index.styled-f782b04a.js} +1 -1
  67. package/build/esm/lead.js +1 -1
  68. package/build/esm/mantine.js +1 -1
  69. package/build/esm/misc.js +1 -1
  70. package/build/esm/navigation.js +1 -1
  71. package/build/esm/onboarding.js +1 -1
  72. package/build/esm/pwg.js +5 -5
  73. package/build/esm/{routing-6d3d5706.js → routing-b727d490.js} +1 -1
  74. package/build/esm/{screenSizeContext-796cb6e5.js → screenSizeContext-a877eec8.js} +1 -1
  75. package/build/esm/together.js +1 -1
  76. package/build/esm/{translationsContext-d4d12e4a.js → translationsContext-96871a10.js} +1 -1
  77. package/build/esm/translationsProvider-f259fe4b.js +1 -0
  78. package/build/esm/{types-e46ef606.js → types-38b0c372.js} +68 -68
  79. package/build/esm/{types-31c78444.js → types-76c8bea8.js} +37 -37
  80. package/build/esm/types.js +1 -1
  81. package/build/esm/useHealthToolCache-9060c9d7.js +1 -0
  82. package/build/esm/{useRafState-1e0d71f3.js → useRafState-84e43a8e.js} +1 -1
  83. package/build/esm/useTranslations-547b947e.js +1 -0
  84. package/build/footer.js +1 -1
  85. package/build/gAssets.js +1 -1
  86. package/build/{getDynamicHealthTool-407de63f.js → getDynamicHealthTool-62933f89.js} +1 -1
  87. package/build/getSocialList-0c688ab4.js +1 -0
  88. package/build/hooks.js +1 -1
  89. package/build/i18n.js +1 -1
  90. package/build/index-021e0d1e.js +1 -0
  91. package/build/{index-178a694b.js → index-0a61907b.js} +1 -1
  92. package/build/{index-50f5a6cd.js → index-0bac5baf.js} +3 -3
  93. package/build/{index-aeea420e.js → index-10bacae1.js} +1 -1
  94. package/build/{index-857fa6cb.js → index-3050ea27.js} +1 -1
  95. package/build/index-388df1e8.js +1 -0
  96. package/build/{index-03b58356.js → index-3c3ac2c7.js} +1 -1
  97. package/build/index-4c35fa12.js +177 -0
  98. package/build/index-5c1f6914.js +1 -0
  99. package/build/{index-92ea35de.js → index-5f535a5f.js} +2 -2
  100. package/build/index-7f8104ae.js +75 -0
  101. package/build/{index-aca89b3b.js → index-a575704e.js} +1 -1
  102. package/build/index-a7fadf8e.js +1 -0
  103. package/build/{index-c2ef36dd.js → index-af0d8341.js} +1 -1
  104. package/build/{index-62cac9a6.js → index-b54f49fc.js} +1 -1
  105. package/build/{index-6419e3dc.js → index-c189e76c.js} +1 -1
  106. package/build/{index-fb65c87a.js → index-cf24fd82.js} +1 -1
  107. package/build/index-df6cb91f.js +1 -0
  108. package/build/{index-5afdfa27.js → index-e12d4d7d.js} +1 -1
  109. package/build/index-e27e8676.js +1 -0
  110. package/build/index-f61308fe.js +1 -0
  111. package/build/index.js +1 -1
  112. package/build/index.styled-06c1ebf7.js +166 -0
  113. package/build/index.styled-09127648.js +45 -0
  114. package/build/{index.styled-8fe3cbb8.js → index.styled-4c059ef2.js} +1 -1
  115. package/build/{index.styled-66045dd3.js → index.styled-4eecded5.js} +1 -1
  116. package/build/{index.styled-431f1caa.js → index.styled-51ec177c.js} +1 -1
  117. package/build/{index.styled-77b969ab.js → index.styled-7e9462f7.js} +263 -263
  118. package/build/{index.styled-38bd8957.js → index.styled-9bb1672d.js} +1 -1
  119. package/build/index.styled-f24c36f7.js +1249 -0
  120. package/build/interfaces/types/Onboarding.d.ts +21 -0
  121. package/build/interfaces/types/index.d.ts +1 -0
  122. package/build/lead.js +1 -1
  123. package/build/mantine.js +1 -1
  124. package/build/misc.js +1 -1
  125. package/build/navigation.js +1 -1
  126. package/build/onboarding.js +1 -1
  127. package/build/pwg.js +3 -3
  128. package/build/{routing-c02011e8.js → routing-28dbb192.js} +1 -1
  129. package/build/screenSizeContext-ca33c753.js +81 -0
  130. package/build/together.js +1 -1
  131. package/build/{translationsContext-0e066585.js → translationsContext-66459815.js} +1 -1
  132. package/build/translationsProvider-50aa6903.js +1 -0
  133. package/build/{types-d10baf2e.js → types-7397ed45.js} +1 -1
  134. package/build/{types-5df2a81a.js → types-8be20c67.js} +120 -120
  135. package/build/types.js +1 -1
  136. package/build/{useHealthToolCache-3f4dc66a.js → useHealthToolCache-566ddd40.js} +1 -1
  137. package/build/{useRafState-9cd628f0.js → useRafState-d103c212.js} +1 -1
  138. package/build/{useTranslations-7bb84bd7.js → useTranslations-5f6083e4.js} +1 -1
  139. package/package.json +1 -1
  140. package/build/Locale-a4f9d8f6.js +0 -1
  141. package/build/components/mantine/radio/index.styled.d.ts +0 -6
  142. package/build/components/organisms/onboardingModal/components/formSection/index.d.ts +0 -8
  143. package/build/components/organisms/onboardingModal/components/formSection/index.styled.d.ts +0 -6
  144. package/build/esm/Locale-2a1e1450.js +0 -1
  145. package/build/esm/getDynamicHealthTool-0aab98fc.js +0 -1
  146. package/build/esm/getSocialList-03e2a2b1.js +0 -1
  147. package/build/esm/index-1a820ef8.js +0 -1
  148. package/build/esm/index-28b8dab6.js +0 -177
  149. package/build/esm/index-505a781d.js +0 -1
  150. package/build/esm/index-6f78a19c.js +0 -1
  151. package/build/esm/index-879836ec.js +0 -1
  152. package/build/esm/index-8eec058f.js +0 -1
  153. package/build/esm/index-c9290e7f.js +0 -1
  154. package/build/esm/index-f3de7ff9.js +0 -170
  155. package/build/esm/index-f49aeb82.js +0 -1
  156. package/build/esm/index-fcef2054.js +0 -78
  157. package/build/esm/translationsProvider-8152b937.js +0 -1
  158. package/build/esm/useHealthToolCache-3488ead9.js +0 -1
  159. package/build/esm/useTranslations-86f7e107.js +0 -1
  160. package/build/getSocialList-5d162a85.js +0 -1
  161. package/build/index-085adf8a.js +0 -170
  162. package/build/index-19064ad7.js +0 -1
  163. package/build/index-1ecd880c.js +0 -1
  164. package/build/index-4d6932de.js +0 -177
  165. package/build/index-702d2f27.js +0 -1
  166. package/build/index-727332bb.js +0 -73
  167. package/build/index-8fddd03f.js +0 -1
  168. package/build/index-980141e9.js +0 -1
  169. package/build/index-fc40c9d0.js +0 -1
  170. package/build/index.styled-1f82603f.js +0 -45
  171. package/build/index.styled-da26abe1.js +0 -1249
  172. package/build/screenSizeContext-4f7042b6.js +0 -81
  173. package/build/translationsProvider-d0f24f1c.js +0 -1
  174. /package/build/{BMI_BOYS.percentile.monthly-9061bffa.js → BMI_BOYS.percentile.monthly-46ed8782.js} +0 -0
  175. /package/build/{BMI_BOYS.percentile.weekly-6963805b.js → BMI_BOYS.percentile.weekly-ea245e7d.js} +0 -0
  176. /package/build/{BMI_BOYS.percentile.yearly-479e90a6.js → BMI_BOYS.percentile.yearly-4964c63d.js} +0 -0
  177. /package/build/{BMI_BOYS.zscore.monthly-1174fe4a.js → BMI_BOYS.zscore.monthly-66b73fe5.js} +0 -0
  178. /package/build/{BMI_BOYS.zscore.weekly-fca159e9.js → BMI_BOYS.zscore.weekly-bce8d721.js} +0 -0
  179. /package/build/{BMI_BOYS.zscore.yearly-c7cbffa6.js → BMI_BOYS.zscore.yearly-8885048e.js} +0 -0
  180. /package/build/{BMI_GIRLS.percentile.monthly-925f454e.js → BMI_GIRLS.percentile.monthly-1263f390.js} +0 -0
  181. /package/build/{BMI_GIRLS.percentile.weekly-3ee3b6cb.js → BMI_GIRLS.percentile.weekly-6ace4168.js} +0 -0
  182. /package/build/{BMI_GIRLS.percentile.yearly-a8a64247.js → BMI_GIRLS.percentile.yearly-34d00a37.js} +0 -0
  183. /package/build/{BMI_GIRLS.zscore.monthly-818e735c.js → BMI_GIRLS.zscore.monthly-f069715f.js} +0 -0
  184. /package/build/{BMI_GIRLS.zscore.weekly-f69dc139.js → BMI_GIRLS.zscore.weekly-d587113b.js} +0 -0
  185. /package/build/{BMI_GIRLS.zscore.yearly-01c99405.js → BMI_GIRLS.zscore.yearly-1b2ed137.js} +0 -0
  186. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c23614a4.js → HEAD CIRCUM_BOYS.percentile.monthly-bc448b8c.js} +0 -0
  187. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-a84f9182.js → HEAD CIRCUM_BOYS.percentile.weekly-7d08ffa0.js} +0 -0
  188. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-b1784f74.js → HEAD CIRCUM_BOYS.percentile.yearly-21e93ed5.js} +0 -0
  189. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-6fa109d5.js → HEAD CIRCUM_BOYS.zscore.monthly-476055e3.js} +0 -0
  190. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0f128294.js → HEAD CIRCUM_BOYS.zscore.weekly-841f61a1.js} +0 -0
  191. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b0ae2aa5.js → HEAD CIRCUM_BOYS.zscore.yearly-caab877b.js} +0 -0
  192. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d8a849f5.js → HEAD CIRCUM_GIRLS.percentile.monthly-f884dbd6.js} +0 -0
  193. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e585c948.js → HEAD CIRCUM_GIRLS.percentile.weekly-6efa3d99.js} +0 -0
  194. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f312b25f.js → HEAD CIRCUM_GIRLS.percentile.yearly-039cc1c1.js} +0 -0
  195. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-a79f2c22.js → HEAD CIRCUM_GIRLS.zscore.monthly-63aa5a75.js} +0 -0
  196. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3905832d.js → HEAD CIRCUM_GIRLS.zscore.weekly-feffe1ca.js} +0 -0
  197. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-76817288.js → HEAD CIRCUM_GIRLS.zscore.yearly-9f366e67.js} +0 -0
  198. /package/build/{HEIGHT_BOYS.percentile.monthly-058b22b8.js → HEIGHT_BOYS.percentile.monthly-9f421b76.js} +0 -0
  199. /package/build/{HEIGHT_BOYS.percentile.weekly-225abac0.js → HEIGHT_BOYS.percentile.weekly-50053c97.js} +0 -0
  200. /package/build/{HEIGHT_BOYS.percentile.yearly-c8f6fbc5.js → HEIGHT_BOYS.percentile.yearly-6cdeb16e.js} +0 -0
  201. /package/build/{HEIGHT_BOYS.zscore.monthly-f2d62779.js → HEIGHT_BOYS.zscore.monthly-251fdd58.js} +0 -0
  202. /package/build/{HEIGHT_BOYS.zscore.weekly-2132aa31.js → HEIGHT_BOYS.zscore.weekly-7081338b.js} +0 -0
  203. /package/build/{HEIGHT_BOYS.zscore.yearly-7bd73d3a.js → HEIGHT_BOYS.zscore.yearly-306cdda4.js} +0 -0
  204. /package/build/{HEIGHT_GIRLS.percentile.monthly-524307c0.js → HEIGHT_GIRLS.percentile.monthly-1137dc66.js} +0 -0
  205. /package/build/{HEIGHT_GIRLS.percentile.weekly-f323e7e3.js → HEIGHT_GIRLS.percentile.weekly-49e22f50.js} +0 -0
  206. /package/build/{HEIGHT_GIRLS.percentile.yearly-1f2f77ee.js → HEIGHT_GIRLS.percentile.yearly-44b69884.js} +0 -0
  207. /package/build/{HEIGHT_GIRLS.zscore.monthly-a58cd90f.js → HEIGHT_GIRLS.zscore.monthly-fb062871.js} +0 -0
  208. /package/build/{HEIGHT_GIRLS.zscore.weekly-24d8a6ac.js → HEIGHT_GIRLS.zscore.weekly-9aad09e0.js} +0 -0
  209. /package/build/{HEIGHT_GIRLS.zscore.yearly-d233bce8.js → HEIGHT_GIRLS.zscore.yearly-6e0b2151.js} +0 -0
  210. /package/build/{Vietnam-48e12311.js → Vietnam-585b1527.js} +0 -0
  211. /package/build/{Visible-f3415620.js → Visible-767ce2ab.js} +0 -0
  212. /package/build/{WEIGHT_BOYS.percentile.monthly-111c4d25.js → WEIGHT_BOYS.percentile.monthly-4e621f13.js} +0 -0
  213. /package/build/{WEIGHT_BOYS.percentile.weekly-478bf0e4.js → WEIGHT_BOYS.percentile.weekly-8f15abc5.js} +0 -0
  214. /package/build/{WEIGHT_BOYS.percentile.yearly-a35cc113.js → WEIGHT_BOYS.percentile.yearly-688c8314.js} +0 -0
  215. /package/build/{WEIGHT_BOYS.zscore.monthly-33586e3f.js → WEIGHT_BOYS.zscore.monthly-2e3a2bd4.js} +0 -0
  216. /package/build/{WEIGHT_BOYS.zscore.weekly-0299912e.js → WEIGHT_BOYS.zscore.weekly-4ec209e7.js} +0 -0
  217. /package/build/{WEIGHT_BOYS.zscore.yearly-0e683e93.js → WEIGHT_BOYS.zscore.yearly-ebc6ebd1.js} +0 -0
  218. /package/build/{WEIGHT_GIRLS.percentile.monthly-ab188feb.js → WEIGHT_GIRLS.percentile.monthly-ae5bd05a.js} +0 -0
  219. /package/build/{WEIGHT_GIRLS.percentile.weekly-876c7d98.js → WEIGHT_GIRLS.percentile.weekly-fea83262.js} +0 -0
  220. /package/build/{WEIGHT_GIRLS.percentile.yearly-49975396.js → WEIGHT_GIRLS.percentile.yearly-528ca2ac.js} +0 -0
  221. /package/build/{WEIGHT_GIRLS.zscore.monthly-1370faec.js → WEIGHT_GIRLS.zscore.monthly-4796637a.js} +0 -0
  222. /package/build/{WEIGHT_GIRLS.zscore.weekly-01f8c266.js → WEIGHT_GIRLS.zscore.weekly-21a75fe5.js} +0 -0
  223. /package/build/{WEIGHT_GIRLS.zscore.yearly-f65a2231.js → WEIGHT_GIRLS.zscore.yearly-0569fd51.js} +0 -0
  224. /package/build/{constants-81475620.js → constants-a6aac2ca.js} +0 -0
  225. /package/build/{cookieHelper-c871b460.js → cookieHelper-338c2be0.js} +0 -0
  226. /package/build/{dataTransform-68517294.js → dataTransform-82684814.js} +0 -0
  227. /package/build/esm/{BMI_BOYS.percentile.monthly-4223c4eb.js → BMI_BOYS.percentile.monthly-0877cfa3.js} +0 -0
  228. /package/build/esm/{BMI_BOYS.percentile.weekly-c9f3efaa.js → BMI_BOYS.percentile.weekly-89eb2377.js} +0 -0
  229. /package/build/esm/{BMI_BOYS.percentile.yearly-f0b4b014.js → BMI_BOYS.percentile.yearly-350de3d4.js} +0 -0
  230. /package/build/esm/{BMI_BOYS.zscore.monthly-e16193f5.js → BMI_BOYS.zscore.monthly-35cd7d3f.js} +0 -0
  231. /package/build/esm/{BMI_BOYS.zscore.weekly-d2b2b292.js → BMI_BOYS.zscore.weekly-585e628f.js} +0 -0
  232. /package/build/esm/{BMI_BOYS.zscore.yearly-817ec82e.js → BMI_BOYS.zscore.yearly-9a4ad812.js} +0 -0
  233. /package/build/esm/{BMI_GIRLS.percentile.monthly-494bc828.js → BMI_GIRLS.percentile.monthly-d9c2167f.js} +0 -0
  234. /package/build/esm/{BMI_GIRLS.percentile.weekly-042426ae.js → BMI_GIRLS.percentile.weekly-5adb4343.js} +0 -0
  235. /package/build/esm/{BMI_GIRLS.percentile.yearly-247c7391.js → BMI_GIRLS.percentile.yearly-b979f569.js} +0 -0
  236. /package/build/esm/{BMI_GIRLS.zscore.monthly-371459b5.js → BMI_GIRLS.zscore.monthly-5cc9b47c.js} +0 -0
  237. /package/build/esm/{BMI_GIRLS.zscore.weekly-ecf23bd6.js → BMI_GIRLS.zscore.weekly-b7e111dc.js} +0 -0
  238. /package/build/esm/{BMI_GIRLS.zscore.yearly-8020be10.js → BMI_GIRLS.zscore.yearly-2880c1b2.js} +0 -0
  239. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-854959a5.js → HEAD CIRCUM_BOYS.percentile.monthly-d5094788.js} +0 -0
  240. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c39075dc.js → HEAD CIRCUM_BOYS.percentile.weekly-195898c1.js} +0 -0
  241. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e387af13.js → HEAD CIRCUM_BOYS.percentile.yearly-b56aec52.js} +0 -0
  242. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-b7a84ef5.js → HEAD CIRCUM_BOYS.zscore.monthly-e21fe96d.js} +0 -0
  243. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b9a6fd79.js → HEAD CIRCUM_BOYS.zscore.weekly-a360870f.js} +0 -0
  244. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-28d7fb71.js → HEAD CIRCUM_BOYS.zscore.yearly-87ffd2bf.js} +0 -0
  245. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-cebb3bd4.js → HEAD CIRCUM_GIRLS.percentile.monthly-613d96c1.js} +0 -0
  246. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e30f8aee.js → HEAD CIRCUM_GIRLS.percentile.weekly-f8282143.js} +0 -0
  247. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a517c188.js → HEAD CIRCUM_GIRLS.percentile.yearly-e4e2a575.js} +0 -0
  248. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6ec149f3.js → HEAD CIRCUM_GIRLS.zscore.monthly-0d83ed3a.js} +0 -0
  249. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e7a5b23f.js → HEAD CIRCUM_GIRLS.zscore.weekly-23cfaf47.js} +0 -0
  250. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-2935ab55.js → HEAD CIRCUM_GIRLS.zscore.yearly-7865540b.js} +0 -0
  251. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-f69e7c07.js → HEIGHT_BOYS.percentile.monthly-7cf03a94.js} +0 -0
  252. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9a4b487d.js → HEIGHT_BOYS.percentile.weekly-ca686c31.js} +0 -0
  253. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-cb58cecc.js → HEIGHT_BOYS.percentile.yearly-a4456910.js} +0 -0
  254. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5f7e0a28.js → HEIGHT_BOYS.zscore.monthly-2742cea8.js} +0 -0
  255. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-3c7bd88b.js → HEIGHT_BOYS.zscore.weekly-d1d9da04.js} +0 -0
  256. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-66c2098e.js → HEIGHT_BOYS.zscore.yearly-65a6d2db.js} +0 -0
  257. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-484e0602.js → HEIGHT_GIRLS.percentile.monthly-ca6bccdc.js} +0 -0
  258. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3c492d07.js → HEIGHT_GIRLS.percentile.weekly-2e950f11.js} +0 -0
  259. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8ce15a6f.js → HEIGHT_GIRLS.percentile.yearly-96c649de.js} +0 -0
  260. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-204b1e6d.js → HEIGHT_GIRLS.zscore.monthly-3ad24724.js} +0 -0
  261. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-ccb615d2.js → HEIGHT_GIRLS.zscore.weekly-1ba71178.js} +0 -0
  262. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-9479f3c0.js → HEIGHT_GIRLS.zscore.yearly-f62a3440.js} +0 -0
  263. /package/build/esm/{Vietnam-dc72e656.js → Vietnam-a3fd330e.js} +0 -0
  264. /package/build/esm/{Visible-18cf87ba.js → Visible-656cb3fc.js} +0 -0
  265. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8dd91b1d.js → WEIGHT_BOYS.percentile.monthly-20fd9a70.js} +0 -0
  266. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-3a959642.js → WEIGHT_BOYS.percentile.weekly-22f6c1e7.js} +0 -0
  267. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-cc8eb0ef.js → WEIGHT_BOYS.percentile.yearly-0181610e.js} +0 -0
  268. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-2e131dd1.js → WEIGHT_BOYS.zscore.monthly-931ade4a.js} +0 -0
  269. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-cabcd1af.js → WEIGHT_BOYS.zscore.weekly-355bfdab.js} +0 -0
  270. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f1f7e94e.js → WEIGHT_BOYS.zscore.yearly-a57c12c2.js} +0 -0
  271. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-4de3f67c.js → WEIGHT_GIRLS.percentile.monthly-79eb36cc.js} +0 -0
  272. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-2ed25b2a.js → WEIGHT_GIRLS.percentile.weekly-99fcc915.js} +0 -0
  273. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f0f76a88.js → WEIGHT_GIRLS.percentile.yearly-203869dc.js} +0 -0
  274. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b841255d.js → WEIGHT_GIRLS.zscore.monthly-db087afd.js} +0 -0
  275. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-d6eb177b.js → WEIGHT_GIRLS.zscore.weekly-62625957.js} +0 -0
  276. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-58a53745.js → WEIGHT_GIRLS.zscore.yearly-36397b83.js} +0 -0
  277. /package/build/esm/{constants-fb47e65c.js → constants-f80968b2.js} +0 -0
  278. /package/build/esm/{cookieHelper-b88c2be8.js → cookieHelper-d11ecd73.js} +0 -0
  279. /package/build/esm/{dataTransform-75f1271b.js → dataTransform-654aecb0.js} +0 -0
  280. /package/build/esm/{index-77a5c7ce.js → index-0e23add6.js} +0 -0
  281. /package/build/esm/{isProduction-e00482ad.js → isProduction-990cd44c.js} +0 -0
  282. /package/build/esm/{localizeNumberFormat-65181040.js → localizeNumberFormat-f42f5a22.js} +0 -0
  283. /package/build/esm/{normalizeLink-1d2dc701.js → normalizeLink-2f6f6fb0.js} +0 -0
  284. /package/build/esm/{theme-6dca57c7.js → theme-6a93b566.js} +0 -0
  285. /package/build/esm/{tslib.es6-f1b9d31e.js → tslib.es6-f9bbd890.js} +0 -0
  286. /package/build/esm/{useIsInit-e900b10b.js → useIsInit-81dd61a0.js} +0 -0
  287. /package/build/esm/{useOutsideClick-305b5046.js → useOutsideClick-0109b690.js} +0 -0
  288. /package/build/esm/{useScrollbarSize-057c4f10.js → useScrollbarSize-119c8636.js} +0 -0
  289. /package/build/esm/{useUniqueId-679a497e.js → useUniqueId-d87d7ca7.js} +0 -0
  290. /package/build/esm/{utils-049d75fa.js → utils-9ef41591.js} +0 -0
  291. /package/build/{index-444eee4a.js → index-ad2d49c8.js} +0 -0
  292. /package/build/{isProduction-2a4d042f.js → isProduction-f84dd7e2.js} +0 -0
  293. /package/build/{localizeNumberFormat-3d8dd0e3.js → localizeNumberFormat-6d0123d2.js} +0 -0
  294. /package/build/{normalizeLink-f5ed8bd7.js → normalizeLink-419034bd.js} +0 -0
  295. /package/build/{theme-c812af69.js → theme-60cc7a9c.js} +0 -0
  296. /package/build/{tslib.es6-09b9cf36.js → tslib.es6-cb690bef.js} +0 -0
  297. /package/build/{useIsInit-b290676c.js → useIsInit-1214075c.js} +0 -0
  298. /package/build/{useOutsideClick-e4b4783f.js → useOutsideClick-48be5d45.js} +0 -0
  299. /package/build/{useScrollbarSize-220a2ce3.js → useScrollbarSize-250dc575.js} +0 -0
  300. /package/build/{useUniqueId-f2e50bd6.js → useUniqueId-f4386af9.js} +0 -0
  301. /package/build/{utils-daf19904.js → utils-f8ce6afc.js} +0 -0
@@ -1 +1 @@
1
- import e from"react";import{as as i,at as o}from"./index.styled-981e6c04.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>u(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((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}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};
1
+ import e from"react";import{as as i,at as o}from"./index.styled-727e93fd.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>u(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((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}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};
@@ -1 +1 @@
1
- import e from"react";import{B as t}from"./index-10233643.js";import{C as a}from"./index-e1e88ca8.js";import{T as l}from"./index-6b049c9f.js";import{d as n}from"./index-c9290e7f.js";import{t as o}from"./theme-6dca57c7.js";import{u as i}from"./useTranslations-86f7e107.js";import{L as r}from"./index-65b95e24.js";import{M as c}from"./index-c2de5d7b.js";import"./tslib.es6-f1b9d31e.js";import"./utils-049d75fa.js";import"styled-components";import"./gAssets.js";import"./isProduction-e00482ad.js";import"./Locale-2a1e1450.js";import"./translationsContext-d4d12e4a.js";import"string-format";import"./index.styled-c3d5eff6.js";var s="Lj0qoTD",m="OO-qFWT";const d=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:m,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),v=({className:r,type:c="main",footerInfo:m,isMobile:v,locale:u})=>{var E,g,y,p,N,b,f,h,k,F,$,z,j,C,T,x,M,L,w,A,_,H,B,I,G,S,D,q;const{t:J}=i(),K=null==m?void 0:m.menu,O=(null===(g=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===g?void 0:g.filter(Boolean))||[];return e.createElement("footer",{className:`${s} ${r||""}`,style:"mini"===c?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":c},"main"===c?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===u})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(p=null==m?void 0:m.general)||void 0===p?void 0:p.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.title),e.createElement("div",{className:"icons"},null===(f=null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.socials)||void 0===f?void 0:f.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(k=null===(h=K[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(F=K[1])||void 0===F?void 0:F.menu_title),null===(z=null===($=K[1])||void 0===$?void 0:$.items)||void 0===z?void 0:z.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(j=K[2])||void 0===j?void 0:j.menu_title),null===(T=null===(C=K[2])||void 0===C?void 0:C.items)||void 0===T?void 0:T.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(x=null==m?void 0:m.branch)||void 0===x?void 0:x.title),e.createElement("div",{className:"flags"},null===(L=null===(M=null==m?void 0:m.branch)||void 0===M?void 0:M.branch)||void 0===L?void 0:L.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(d,{url:t.flag,isMobile:v,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(w=null==m?void 0:m.general)||void 0===w?void 0:w.copyright)),"vi-VN"===u&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[1])||void 0===A?void 0:A.menu_title),null===(H=null===(_=null==m?void 0:m.menu[1])||void 0===_?void 0:_.items)||void 0===H?void 0:H.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[u]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`,size:"sm",type:"regular",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.menu_title),null===(G=null===(I=null==m?void 0:m.menu[2])||void 0===I?void 0:I.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:o.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==c&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(S=null==m?void 0:m.social)||void 0===S?void 0:S.title),e.createElement("div",{className:"icons"},null===(q=null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.socials)||void 0===q?void 0:q.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var u="B6-KmWK",E="GS-7mbG",g="qc5bEb3",y="CQGVeuT",p="_6JMoel-",N="_8eUT8Jr",b="cjDwoLi";const f=({logoType:t="marryBaby",footerMenu:l,background:n})=>{var i;if(!l)return null;const{general:s,menu:m,socials:d}=l;return e.createElement("footer",{className:u,style:{backgroundColor:n||"none"}},e.createElement("div",{className:b},e.createElement(a,null,e.createElement("div",{className:E},null==m?void 0:m.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:g,key:`mbf${l}`},e.createElement(c,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:y,key:`mbitem${l}`},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:p},e.createElement(r,{className:"logo",type:t}),e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},null==s?void 0:s.content)),e.createElement("div",{className:"social-link"},null==d?void 0:d.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{loading:"lazy",src:t,alt:a}))))))),e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-3",color:o.colors.white},null==s?void 0:s.copyright),e.createElement("div",{className:"verify"},null===(i=null==s?void 0:s.verified)||void 0===i?void 0:i.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a})))))))))},h=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(v,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(f,{footerMenu:n,background:i});export{h as Footer};
1
+ import e from"react";import{B as t}from"./index-977237f7.js";import{C as a}from"./index-d6ea8731.js";import{T as l}from"./index-e6b80e2d.js";import{d as n}from"./index-6d1a95af.js";import{t as o}from"./theme-6a93b566.js";import{u as i}from"./useTranslations-547b947e.js";import{L as r}from"./index-6cf76009.js";import{M as c}from"./index-7e6ee7bb.js";import"./tslib.es6-f9bbd890.js";import"./utils-9ef41591.js";import"styled-components";import"./gAssets.js";import"./isProduction-990cd44c.js";import"./Onboarding-e9e6a0b3.js";import"./translationsContext-96871a10.js";import"string-format";import"./index.styled-27074988.js";var s="Lj0qoTD",m="OO-qFWT";const d=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:m,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),v=({className:r,type:c="main",footerInfo:m,isMobile:v,locale:u})=>{var E,g,y,p,b,N,f,h,k,F,$,z,j,C,T,x,M,L,w,A,_,H,B,I,G,S,D,q;const{t:O}=i(),J=null==m?void 0:m.menu,K=(null===(g=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===g?void 0:g.filter(Boolean))||[];return e.createElement("footer",{className:`${s} ${r||""}`,style:"mini"===c?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":c},"main"===c?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===u})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(p=null==m?void 0:m.general)||void 0===p?void 0:p.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(f=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===f?void 0:f.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,J&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(k=null===(h=J[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(F=J[1])||void 0===F?void 0:F.menu_title),null===(z=null===($=J[1])||void 0===$?void 0:$.items)||void 0===z?void 0:z.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(j=J[2])||void 0===j?void 0:j.menu_title),null===(T=null===(C=J[2])||void 0===C?void 0:C.items)||void 0===T?void 0:T.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(x=null==m?void 0:m.branch)||void 0===x?void 0:x.title),e.createElement("div",{className:"flags"},null===(L=null===(M=null==m?void 0:m.branch)||void 0===M?void 0:M.branch)||void 0===L?void 0:L.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(d,{url:t.flag,isMobile:v,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(w=null==m?void 0:m.general)||void 0===w?void 0:w.copyright)),"vi-VN"===u&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[1])||void 0===A?void 0:A.menu_title),null===(H=null===(_=null==m?void 0:m.menu[1])||void 0===_?void 0:_.items)||void 0===H?void 0:H.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[u]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`,size:"sm",type:"regular",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.menu_title),null===(G=null===(I=null==m?void 0:m.menu[2])||void 0===I?void 0:I.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:o.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==c&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(S=null==m?void 0:m.social)||void 0===S?void 0:S.title),e.createElement("div",{className:"icons"},null===(q=null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.socials)||void 0===q?void 0:q.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var u="B6-KmWK",E="GS-7mbG",g="qc5bEb3",y="CQGVeuT",p="_6JMoel-",b="_8eUT8Jr",N="cjDwoLi";const f=({logoType:t="marryBaby",footerMenu:l,background:n})=>{var i;if(!l)return null;const{general:s,menu:m,socials:d}=l;return e.createElement("footer",{className:u,style:{backgroundColor:n||"none"}},e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:E},null==m?void 0:m.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:g,key:`mbf${l}`},e.createElement(c,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:y,key:`mbitem${l}`},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:p},e.createElement(r,{className:"logo",type:t}),e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},null==s?void 0:s.content)),e.createElement("div",{className:"social-link"},null==d?void 0:d.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{loading:"lazy",src:t,alt:a}))))))),e.createElement("div",{className:b},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-3",color:o.colors.white},null==s?void 0:s.copyright),e.createElement("div",{className:"verify"},null===(i=null==s?void 0:s.verified)||void 0===i?void 0:i.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a})))))))))},h=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(v,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(f,{footerMenu:n,background:i});export{h as Footer};
@@ -1 +1 @@
1
- import{d as e}from"./index-c9290e7f.js";import{i as s}from"./isProduction-e00482ad.js";import"./Locale-2a1e1450.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,e].join("/");return s||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,o=s.split("."),i=e[Object.keys(e).find((t=>s.includes(e[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
1
+ import{d as s}from"./index-6d1a95af.js";import{i as e}from"./isProduction-990cd44c.js";import"./Onboarding-e9e6a0b3.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,s].join("/");return e||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:e}=window.location,o=e.split("."),i=s[Object.keys(s).find((t=>e.includes(s[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return e=s,!isNaN(parseFloat(e))&&isFinite(e);var e}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
@@ -0,0 +1 @@
1
+ import{a as t}from"./tslib.es6-f9bbd890.js";import{g as i}from"./core-3df19176.js";import{n as o}from"./normalizeLink-2f6f6fb0.js";import{c as l}from"./routing-b727d490.js";const e=(t,i)=>{var o,l;if(!t)return{};const e="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(o=t.link)||void 0===o?void 0:o.startsWith("http"))?t.link:`${e}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${e}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t(void 0,void 0,void 0,(function*(){var t,n;try{let r;r="undefined"!=typeof window?window.fetch:yield require("node-fetch");const s="tl-PH"===i?"lang=fil":"";let d=[];try{const a=yield r(o(`${l(i)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));d=(null===(n=null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>e(t,i))))||[]}catch(t){}return d}catch(t){console.error(t)}})),r=o=>t(void 0,void 0,void 0,(function*(){return(yield i("all-health-tools",(()=>n(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{r as a,e as f,n as g};
@@ -0,0 +1 @@
1
+ import e from"react";import{L as t}from"./Onboarding-e9e6a0b3.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 +1 @@
1
- export{u as useTranslations}from"./useTranslations-86f7e107.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-057c4f10.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-1e0d71f3.js";export{u as useHealthToolsCache}from"./useHealthToolCache-3488ead9.js";export{u as useIsInit}from"./useIsInit-e900b10b.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-305b5046.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-679a497e.js";import"react";import"./translationsContext-d4d12e4a.js";import"string-format";import"lodash/debounce";import"./tslib.es6-f1b9d31e.js";import"./cookieHelper-b88c2be8.js";import"./getDynamicHealthTool-0aab98fc.js";import"./core-01abe7a1.js";import"./isProduction-e00482ad.js";import"./normalizeLink-1d2dc701.js";import"./routing-6d3d5706.js";import"./index-c9290e7f.js";import"./Locale-2a1e1450.js";
1
+ export{u as useTranslations}from"./useTranslations-547b947e.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-119c8636.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-84e43a8e.js";export{u as useHealthToolsCache}from"./useHealthToolCache-9060c9d7.js";export{u as useIsInit}from"./useIsInit-81dd61a0.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-0109b690.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-d87d7ca7.js";import"react";import"./translationsContext-96871a10.js";import"string-format";import"lodash/debounce";import"./tslib.es6-f9bbd890.js";import"./cookieHelper-d11ecd73.js";import"./getDynamicHealthTool-dba298d4.js";import"./core-3df19176.js";import"./isProduction-990cd44c.js";import"./normalizeLink-2f6f6fb0.js";import"./routing-b727d490.js";import"./index-6d1a95af.js";import"./Onboarding-e9e6a0b3.js";
package/build/esm/i18n.js CHANGED
@@ -1 +1 @@
1
- export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-8152b937.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-d4d12e4a.js";import"react";
1
+ export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-f259fe4b.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-96871a10.js";import"react";
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-f1b9d31e.js";import a,{useMemo as t}from"react";import{S as s,L as n,a as o,b as l,c as i}from"./index.styled-839052ac.js";const r=r=>{var{name:c,value:m,errorMessage:d,isNumerousKeyboard:u=!1,showErrorMessage:p=!0,actionIcon:b,displayIcon:y,onActionClick:v,label:g,className:C,onChange:E,isDisabled:N,CustomInput:h,size:I,style:f,autoComplete:k="off",type:A="text",inputClassName:K,trackingAttributes:M,enterKeyHint:z}=r,L=e(r,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const j=t((()=>M?{"data-event-category":M.dataEventCategory,"data-event-action":M.dataEventAction,"data-event-label":M.dataEventLabel}:{}),[M]);return a.createElement(s,{"data-size":I,className:C,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":d&&d.length>0||void 0,style:f},g&&a.createElement(n,{size:"label2",htmlFor:c,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},h||a.createElement("input",Object.assign({id:c,name:c,onChange:e=>E&&E(e.target.value),type:A,"aria-label":A,value:m,disabled:N,autoComplete:k,inputMode:u||"number"===A?"numeric":A,pattern:u?"[0-9]*":".*",className:K,enterKeyHint:z},j,L)),y&&a.createElement(o,{className:"displayIcon"},y),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),d&&d.length>0&&p&&a.createElement(i,{className:"errorLabel"},d))};export{r as I};
1
+ import{_ as e}from"./tslib.es6-f9bbd890.js";import a,{useMemo as t}from"react";import{S as s,L as n,a as o,b as l,c as i}from"./index.styled-f782b04a.js";const r=r=>{var{name:c,value:m,errorMessage:d,isNumerousKeyboard:u=!1,showErrorMessage:p=!0,actionIcon:b,displayIcon:y,onActionClick:v,label:g,className:C,onChange:E,isDisabled:N,CustomInput:h,size:I,style:f,autoComplete:k="off",type:A="text",inputClassName:K,trackingAttributes:M,enterKeyHint:z}=r,L=e(r,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const j=t((()=>M?{"data-event-category":M.dataEventCategory,"data-event-action":M.dataEventAction,"data-event-label":M.dataEventLabel}:{}),[M]);return a.createElement(s,{"data-size":I,className:C,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":d&&d.length>0||void 0,style:f},g&&a.createElement(n,{size:"label2",htmlFor:c,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},h||a.createElement("input",Object.assign({id:c,name:c,onChange:e=>E&&E(e.target.value),type:A,"aria-label":A,value:m,disabled:N,autoComplete:k,inputMode:u||"number"===A?"numeric":A,pattern:u?"[0-9]*":".*",className:K,enterKeyHint:z},j,L)),y&&a.createElement(o,{className:"displayIcon"},y),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),d&&d.length>0&&p&&a.createElement(i,{className:"errorLabel"},d))};export{r as I};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-f1b9d31e.js";import l,{createContext as r,useContext as n,useRef as t,useState as i,useEffect as o}from"react";import{Carousel as c}from"@mantine/carousel";import{useResizeObserver as d}from"@mantine/hooks";const a=c.Slide,s=r({}),u=(e,l)=>e>=l?e-l:e,p=r=>{var{children:n,blurFromCenter:a,blurFromIndex:p,blurLength:h=3,maxBlurOpacity:m=.5,onSlideChange:x,selectSlideWhenClick:v}=r,g=e(r,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const[b,S]=d(),f=t(null),[y,C]=i(0),k=()=>{var e,l,r;const n=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.selectedScrollSnap();C(n);const t=(null===(l=null==f?void 0:f.current)||void 0===l?void 0:l.slideNodes())||[],i=t.length,o=(null===(r=null==f?void 0:f.current)||void 0===r?void 0:r.slidesInView()).length,c=Math.floor(o/2),d=a?p+h-1:c,s=n+d,x=s===i?0:s>i?s-i:s,v=n-d,g=v<0?i+v:v>0?n-d:0,b=Array(2*d+1).fill("").map(((e,l)=>u(g+l,i)));t.map(((e,l)=>{if(l===n?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==b.indexOf(l)){const n=m/h;for(let o=0;o<h;o++){if(l===u(g+o,i)||l===(t=i,(r=x-o)<0?t+r:r)){e.style.opacity=String((o+1)*n);break}e.style.opacity="1"}}else e.style.opacity="0";var r,t}))},w={getEmblaApi:e=>{f.current=e},onSlideChange:e=>{k(),null==x||x(e)}};return o((()=>{(null==f?void 0:f.current)&&k()}),[S]),l.createElement(s.Provider,{value:{slider:null==f?void 0:f.current,centerSlide:y,selectSlideWhenClick:v}},l.createElement(c,Object.assign({ref:b,slideSize:"auto",containScroll:"trimSnaps"},w,g,{loop:!0}),"function"==typeof n?n(y):n))};p.Slide=r=>{var{children:c,onClick:d}=r,u=e(r,["children","onClick"]);const{slider:p,selectSlideWhenClick:h}=n(s),m=t(),x=t(""),[v,g]=i(0);o((()=>{x.current=String(Math.round(1e4*Math.random()))}),[]),o((()=>{const e=(null==p?void 0:p.slideNodes())||[];g(e.findIndex((e=>e.dataset.key===x.current)))}),[p]);const b={ref:m,"data-key":x.current,"data-index":v,styles:()=>({control:{width:"40px",height:"40px",border:0,background:"white",boxShadow:"rgb(0 0 0 / 4%) 0px 10px 16px, rgb(0 0 0 / 4%) 0px 2px 8px, rgb(0 0 0 / 4%) 0px 0px 1px",svg:{width:"20px",height:"20px"}}})};return l.createElement(a,Object.assign({},b,u),l.createElement("div",{onClick:()=>{h&&(null==p||p.scrollTo(v)),null==d||d(v)}},c))};export{p as C};
1
+ import{_ as e}from"./tslib.es6-f9bbd890.js";import l,{createContext as r,useContext as n,useRef as t,useState as i,useEffect as o}from"react";import{Carousel as c}from"@mantine/carousel";import{useResizeObserver as d}from"@mantine/hooks";const a=c.Slide,s=r({}),u=(e,l)=>e>=l?e-l:e,p=r=>{var{children:n,blurFromCenter:a,blurFromIndex:p,blurLength:h=3,maxBlurOpacity:m=.5,onSlideChange:x,selectSlideWhenClick:v}=r,b=e(r,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const[g,S]=d(),f=t(null),[y,C]=i(0),k=()=>{var e,l,r;const n=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.selectedScrollSnap();C(n);const t=(null===(l=null==f?void 0:f.current)||void 0===l?void 0:l.slideNodes())||[],i=t.length,o=(null===(r=null==f?void 0:f.current)||void 0===r?void 0:r.slidesInView()).length,c=Math.floor(o/2),d=a?p+h-1:c,s=n+d,x=s===i?0:s>i?s-i:s,v=n-d,b=v<0?i+v:v>0?n-d:0,g=Array(2*d+1).fill("").map(((e,l)=>u(b+l,i)));t.map(((e,l)=>{if(l===n?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==g.indexOf(l)){const n=m/h;for(let o=0;o<h;o++){if(l===u(b+o,i)||l===(t=i,(r=x-o)<0?t+r:r)){e.style.opacity=String((o+1)*n);break}e.style.opacity="1"}}else e.style.opacity="0";var r,t}))},w={getEmblaApi:e=>{f.current=e},onSlideChange:e=>{k(),null==x||x(e)}};return o((()=>{(null==f?void 0:f.current)&&k()}),[S]),l.createElement(s.Provider,{value:{slider:null==f?void 0:f.current,centerSlide:y,selectSlideWhenClick:v}},l.createElement(c,Object.assign({ref:g,slideSize:"auto",containScroll:"trimSnaps"},w,b,{loop:!0}),"function"==typeof n?n(y):n))};p.Slide=r=>{var{children:c,onClick:d}=r,u=e(r,["children","onClick"]);const{slider:p,selectSlideWhenClick:h}=n(s),m=t(),x=t(""),[v,b]=i(0);o((()=>{x.current=String(Math.round(1e4*Math.random()))}),[]),o((()=>{const e=(null==p?void 0:p.slideNodes())||[];b(e.findIndex((e=>e.dataset.key===x.current)))}),[p]);const g={ref:m,"data-key":x.current,"data-index":v,styles:()=>({control:{width:"40px",height:"40px",border:0,background:"white",boxShadow:"rgb(0 0 0 / 4%) 0px 10px 16px, rgb(0 0 0 / 4%) 0px 2px 8px, rgb(0 0 0 / 4%) 0px 0px 1px",svg:{width:"20px",height:"20px"}}})};return l.createElement(a,Object.assign({},g,u),l.createElement("div",{onClick:()=>{h&&(null==p||p.scrollTo(v)),null==d||d(v)}},c))};export{p as C};
@@ -0,0 +1 @@
1
+ import e,{useState as t,useRef as a,useMemo as l,useEffect as n,Fragment as r,useCallback as o}from"react";import{T as i}from"./index-e6b80e2d.js";import{S as s,b as c,c as m,d,e as g,f as u,g as p,h,i as v,j as E,k as y,l as b,m as f,n as w,o as C,p as k,q as N,r as L,s as x,t as B,u as _,v as M,w as D,x as z,P as S}from"./index.styled-dba64061.js";import{f as j,B as A}from"./utils-9ef41591.js";import{B as I}from"./index-977237f7.js";import{a as T}from"./useUniqueId-d87d7ca7.js";import{CommonGAssets as P}from"./gAssets.js";import{H as F}from"./index-d7138419.js";import{t as O}from"./theme-6a93b566.js";import{A as H,U as $,B as V,a as W,e as R,f as G,g as U,h as Z,i as q,j as K,k as Y,l as X,m as Q,n as J,o as ee,p as te,q as ae,r as le,s as ne,t as re,u as oe,v as ie,w as se,x as ce,y as me,z as de,C as ge,E as ue,F as pe,G as he,H as ve,I as Ee,J as ye,K as be,L as fe,N as we,O as Ce,P as ke,Q as Ne,V as Le,W as xe,X as Be,Y as _e,Z as Me,_ as De,$ as ze,a0 as Se,a1 as je,a2 as Ae,a3 as Ie,a4 as Te,a5 as Pe,a6 as Fe,a7 as Oe,a8 as He,a9 as $e,aa as Ve,D as We,ab as Re,ac as Ge,ad as Ue,b as Ze,ae as qe,af as Ke,ag as Ye,ah as Xe,ai as Qe,aj as Je,ak as et,al as tt,T as at,am as lt,an as nt,ao as rt,ap as ot,aq as it,ar as st,as as ct,at as mt,au as dt,av as gt,aw as ut,ax as pt,ay as ht,az as vt,aA as Et,aB as yt,aC as bt,aD as ft,aE as wt,aF as Ct,aG as kt,aH as Nt,aI as Lt,aJ as xt,aK as Bt,aL as _t,aM as Mt,aN as Dt,aO as zt,aP as St,aQ as jt,aR as At,aS as It,aT as Tt,aU as Pt,aV as Ft,aW as Ot,aX as Ht,aY as $t,aZ as Vt,a_ as Wt,a$ as Rt,b0 as Gt,b1 as Ut,b2 as Zt,b3 as qt,b4 as Kt,b5 as Yt,b6 as Xt,b7 as Qt,b8 as Jt,b9 as ea,ba as ta,bb as aa,bc as la,bd as na,be as ra,bf as oa,bg as ia,bh as sa,bi as ca,bj as ma,bk as da,bl as ga,bm as ua,bn as pa,bo as ha}from"./index.styled-87dfb77d.js";import{_ as va,a as Ea}from"./tslib.es6-f9bbd890.js";import ya from"lodash/throttle";import{useKeenSlider as ba}from"keen-slider/react";import fa from"dayjs";import"./screenSizeContext-a877eec8.js";import"styled-components";import{d as wa,L as Ca,F as ka,Q as Na}from"./index-6d1a95af.js";import{i as La}from"./isProduction-990cd44c.js";import{L as xa}from"./Onboarding-e9e6a0b3.js";import{u as Ba}from"./useTranslations-547b947e.js";import{format as _a,addDays as Ma,isBefore as Da,startOfMonth as za,addMonths as Sa,subMonths as ja,getDaysInMonth as Aa,isToday as Ia,isSameDay as Ta,isWithinInterval as Pa,isAfter as Fa,isPast as Oa}from"date-fns";import{I as Ha}from"./index-008e92a3.js";import{C as $a}from"./index-d6ea8731.js";import{I as Va,R as Wa}from"./index-5e901368.js";import{Container as Ra,Checkbox as Ga}from"@mantine/core";import"./index.styled-27074988.js";import"./index-0e23add6.js";import{b as Ua,H as Za}from"./index.styled-727e93fd.js";import{M as qa}from"./index-7e6ee7bb.js";import{S as Ka}from"./index-3a592570.js";import{useForm as Ya,Controller as Xa}from"react-hook-form";import{I as Qa}from"./index-8392374e.js";import{u as Ja}from"./useHealthToolCache-9060c9d7.js";import{L as el}from"./index.styled-f782b04a.js";import{f as tl,a as al}from"./dataTransform-3dbf0687.js";import{a as ll}from"./useOutsideClick-0109b690.js";import nl from"date-fns/locale/en-US";import rl from"date-fns/locale/id";import ol from"date-fns/locale/vi";import il from"date-fns/locale/zh-TW";import{g as sl}from"./getSocialList-71821b27.js";import{DatePicker as cl}from"@mantine/dates";import{T as ml}from"./index-fcab6af7.js";var dl="CHw-fZZ",gl="_03U6VRS",ul="EO828Vv";const pl=({style:t,onClose:a,text:l,type:n,contentIcon:r,closeIcon:o,className:s,description:c})=>e.createElement("div",{className:`${dl} ${s||""}`,style:t,"data-alert-type":n},e.createElement("div",{className:gl},e.createElement("div",{className:"icon-title"},r,e.createElement(i,{type:"bold",size:"label1"},l)),e.createElement(i,{type:"regular",size:"p3"},c)),e.createElement("div",{className:ul,onClick:a},o)),hl=({amount:t,type:a,size:l="medium",color:n="primary",icon:r,className:o})=>e.createElement(s,{"data-notification-type":a,"data-notification-size":l,"data-notification-color":n,"data-has-icon":!!r||void 0,notificationType:a,notificationSize:l,notificationColor:n,hasIcon:!!r,className:o},e.createElement("div",null,t&&e.createElement("span",null,t)," ",r&&e.createElement("div",null,r))),vl=({style:t,children:a,className:l,size:n="lg",type:r="bold",upperCase:o,as:i="h4",color:s})=>e.createElement(c,{style:Object.assign({color:s},t),className:l,"data-size":n,"data-type":r,"data-uppercase":o,as:i},a),El=({className:l,value:n,options:r,onUploadSelected:o,id:i,placeholderIcon:s,placeholder:c,style:h})=>{const[v,E]=t(!1),y=()=>E(!v),b=a(r.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+i+"-"+t.value,key:"uploader-dropdown-input-"+i+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}})))),f=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),e.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),w=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"download"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),C=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"}));return e.createElement(m,{className:l,"data-dropdown-open":!!v,id:i,"data-has-icons":!0,style:h,onBlur:()=>E(!1),tabIndex:0},e.createElement(d,{onClick:y},s||f," ",e.createElement("span",null,n&&n.value?n.label:c)),v&&e.createElement(g,{onClick:y,"data-has-icons":!0},r.map((t=>e.createElement(u,{key:`${i}-${t.value}`,"data-selected":n&&n.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+i+"-"+t.value,void(null===(l=document.querySelector(a))||void 0===l||l.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,l}},e.createElement(p,null,t.icon||"download"===t.type?w:C),t.label)))),e.createElement(e.Fragment,null,b.current))},yl=({className:t,columns:a,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,gap:o,children:i,justifyChildren:s,style:c,alignItems:m})=>e.createElement(h,{className:t,style:c,theme:{columns:a,columnsDesktop:l,gap:o,justifyChildren:s,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,alignItems:m}},i),bl=({pagesAmount:a,activePage:l,handlePageChange:o,handleClick:i,href:s,queryPageName:c="page"})=>{const m=[...Array(a)].map(((e,t)=>t+1)),[d,g]=t(l<=4?m.slice(0,5):l>=m.length-3?m.slice(m.length-5,m.length):m.slice(l-2,l+1));return n((()=>{l<=4?g(m.slice(0,5)):l>=m.length-3?g(m.slice(m.length-5,m.length)):g(m.slice(l-2,l+1))}),[l]),e.createElement(r,null,l>4&&e.createElement(r,null,e.createElement(y,{onClick:()=>o(1)},s?e.createElement("a",{href:s,onClick:i},1):1),e.createElement(y,null,"...")),d.map((t=>e.createElement(y,{key:`pagination+${t}`,"data-page-active":t===l||void 0,onClick:()=>o(t)},s?e.createElement("a",{href:j(s,t,c),onClick:i},t):t))),l<m.length-3&&e.createElement(r,null,e.createElement(y,null,"..."),e.createElement(y,{onClick:()=>o(m.length)},s?e.createElement("a",{href:j(s,m.length,c),onClick:i},m.length):m.length)))},fl=({className:a,pagesAmount:r,currentPage:o,onChange:i,onClick:s,style:c,href:m,queryPageName:d="page"})=>{const g=[...Array(r)].map(((e,t)=>t+1)),[u,p]=t(o),h=l((()=>m&&m.endsWith("&page=")?m.replace("&page=",""):m),[m]),b=r-1,f=e=>{e<=r&&e>0&&(p(e),i(e))},w=e=>{s&&s(e)};return n((()=>{p(o)}),[o]),e.createElement(v,{className:a,style:c},e.createElement(E,{className:"prev-page",onClick:()=>f(u-1),"data-last-page":1===u||void 0},h?e.createElement("a",{href:j(h,u,d),onClick:w},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),g.length>8?e.createElement(bl,{pagesAmount:r,activePage:u,handlePageChange:f,handleClick:w,href:h,queryPageName:d}):g.map((t=>e.createElement(y,{key:`pagination+${t}`,"data-page-active":t===u||void 0,onClick:()=>f(t)},h?e.createElement("a",{href:j(h,t,d),onClick:w},t):t))),e.createElement(E,{className:"next-page",onClick:()=>f(u+1),"data-last-page":u===b+1||void 0},h?e.createElement("a",{href:j(h,u,d),onClick:w},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},wl=({size:t,children:a,style:l,className:n})=>e.createElement(b,{style:l,className:n,"data-shadow-size":t},a),Cl=({type:t,children:a,style:l,isInline:n,isSquared:r=!1,className:o,isLight:s,hasMorePadding:c,isLink:m,isSelected:d,textProps:g={size:"sm"}})=>{const u=g.color?{"--text-props-color":g.color}:{};return e.createElement(f,{"data-is-squared":r||void 0,"data-tag-type":t,"data-is-light":s||void 0,"data-has-more-padding":c||void 0,"data-is-inline":n||void 0,style:Object.assign(Object.assign({},l),u),className:o,"data-is-selected":d||void 0,"data-is-link":m||void 0,tagType:t,isInline:n,tagHasMorePadding:c,tagIsLight:s,tagIsSquared:r,tagIsALink:m},e.createElement(i,Object.assign({},g),a))},kl=({className:t,id:a,onChange:l,checked:n,style:r,label:o})=>e.createElement(w,{className:t,style:r},e.createElement("input",{type:"checkbox",id:a,onChange:l,checked:n}),e.createElement("label",{htmlFor:a},e.createElement(C,null),o&&e.createElement(k,null,o))),Nl=({size:t,isDisabled:a,className:l,link:n,style:r})=>e.createElement(N,{className:l,"data-size":t,style:r,"data-disabled":a||void 0},n),Ll=({type:t,withIcon:a,onFileSelected:l,inputId:n,withElement:r,fileAcceptType:o,multiple:i,value:s,className:c})=>{const m=()=>{var e;null===(e=document.querySelector("#uploader-input-"+n))||void 0===e||e.click()};return e.createElement(L,{className:c},"badge"===t?e.createElement(x,{onClick:m,"data-is-attached-to-element":!!r},r,e.createElement(B,{"data-is-attached-to-element":!!r},a)):r?e.createElement("div",{onClick:m},r):e.createElement(I,{size:"md",color:"secondary",className:"default-button",icon:a,onClick:m},e.createElement(_,null,e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 10v2.67A1.33 1.33 0 0112.67 14H3.33A1.33 1.33 0 012 12.67V10M11.33 5.33L8 2 4.67 5.33M8 2v8",transform:"translate(-1.25 -1.25)"})),"Upload Image")),e.createElement("input",{id:"uploader-input-"+n,accept:o,multiple:i,type:"file",style:{display:"none"},onChange:e=>{l(e.target.files)},value:s}))},xl=({label:t,name:a,checked:l,className:n,isDisabled:r,onChange:o,value:i,isRectangle:s,inputDataTestId:c,siteType:m})=>e.createElement(M,{className:n,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":m},e.createElement("input",{type:"checkbox",checked:l,name:a,onChange:()=>o(i,!l),disabled:r,value:i,id:`${a}-${i}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${i}`},t)),Bl=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),_l=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),Ml=t=>{const a=T();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},Dl=({gap:a=2,size:l=24,star:n,totalStars:r=5,onSelect:o,hideEmptyStars:i,style:s,className:c})=>{const m=Math.floor(n),d=n-m>=.5?1:0,[g,u]=t(null),p=g||m,h=g?0:d;return e.createElement(D,{"data-selectable":!!o,style:Object.assign({"--gap":a,"--star-size":l},s),className:c},Array.from({length:i?m+d:r}).map(((t,a)=>{const l=()=>!!o&&u(a+1),n=()=>!!o&&u(null);return a+1<=p?e.createElement(_l,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:l,onMouseLeave:n}):a+1===p+h?e.createElement(Ml,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:l,onMouseLeave:n}):e.createElement(Bl,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:l,onMouseLeave:n})})))},zl=({percent:t,style:a})=>e.createElement(z,{style:Object.assign({"--progress":t},a)});var Sl="PiqKaXk",jl="HgbW6-m",Al="_6lkfLYy",Il="j7c-onH";const Tl=({avatarImg:t,authorName:a,authorLink:l,uploadTime:n,size:r})=>e.createElement("div",{className:Il},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":r},t),e.createElement("div",{className:"poster","data-is-disabled-url":!l},e.createElement(i,{size:"lg"===r?"p3":"p4"},e.createElement("a",{href:l},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,n))))),Pl=({isMobile:t,avatarImg:a,name:l,link:n,size:r="lg",specialty:o})=>e.createElement("div",{className:Il},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":r},a),e.createElement("div",{className:"expert","data-is-disabled-url":!n},t?e.createElement("a",{href:n},"lg"===r?e.createElement(e.Fragment,null,e.createElement(F,{tag:"h6",className:"expert__name",color:O.colors.gray600},l),e.createElement(i,{color:O.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement(F,{tag:"h6",className:"expert__name",color:O.colors.gray600},l))):e.createElement("a",{href:n},"lg"===r?e.createElement(e.Fragment,null,e.createElement(F,{tag:"h6",className:"expert__name",color:O.colors.gray600},l),e.createElement(i,{color:O.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement("h6",{color:O.colors.gray600,className:`${Sl} expert__name`},l),e.createElement(i,{color:O.colors.gray500,size:"p4",className:"specialty"},o)))))),Fl=({articleLink:t,authorLink:a,authorName:l,avatarImg:n,banner:r,categoryLink:o,categoryName:s,className:c,dataEventActionForBanner:m,dataEventActionForBookmark:d,dataEventActionForCategory:g,dataEventActionForTitle:u,dataEventCategoryForBanner:p,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:E,dataEventLabelForBanner:y,dataEventLabelForBookmark:b,dataEventLabelForCategory:f,dataEventLabelForTitle:w,direction:C="horizontal",hasAffiliate:k,isBookmark:N=!1,isBookmarkDisplayed:L=!0,isMobile:x=!0,onBookmark:B,onClickCategoryName:_,section:M="normal",size:D="md",specialty:z,style:S,styleBanner:j,styleLabel:A,styleTitle:I,text:T,title:O,type:W="author",uploadTime:R,articleLinkTarget:G,isPremium:U})=>{const Z=e=>{e.stopPropagation(),null==B||B()},q="lg"===D&&"expert"===W?"h4":"lg"===D&&"home"===M?x?"h4":"h3":"lg"===D?"h4":"h5",K="lg"===D?"p3":"p4",Y=x||"home"!==M||"lg"!==D||"author"!==W?"c2":"c1";return e.createElement("article",{className:`${Al} ${c||""}`,"data-size":D,style:S,"data-direction":C,"data-is-expert":"expert"===W||void 0},e.createElement("div",{className:"banner",style:j},e.createElement("a",{className:jl,"data-event-category":p,"data-event-action":m,"data-event-label":y,href:t||"#",target:G},r),U&&e.createElement("img",{loading:"lazy",className:"premium",src:P.getAssetPath("premium-crown.svg")}),k&&e.createElement(H,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(i,{style:A,className:"label",size:Y,type:"caption"},e.createElement("a",{className:jl,"data-event-category":v,"data-event-action":g,"data-event-label":f,href:o||"#",onClick:_},s),L&&e.createElement("a",{className:"bookmark",onClick:Z},N?e.createElement(V,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}):e.createElement($,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}))),e.createElement(F,{tag:q,style:I,className:"title",as:"lg"===D?"h2":"h3"},e.createElement("a",{className:jl,"data-event-category":E,"data-event-action":u,"data-event-label":w,href:t||"#",target:G},O)),T&&e.createElement("a",{href:t||"#",target:G},e.createElement(i,{size:K,className:"text"},T))),e.createElement("div",{className:"footer"},"author"===W?e.createElement(Tl,{size:D,avatarImg:n,authorName:l,authorLink:a,uploadTime:R,handleClick:Z,isBookmarked:N,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}):e.createElement(Pl,{size:D,isMobile:x,avatarImg:n,specialty:z,name:l,link:a,handleClick:Z,isBookmarked:N,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}))))};var Ol="lKjhvEi",Hl="HGYlQvl",$l="AyUUQv-";const Vl=({LinkComponent:t,page:a,isLast:l,onChangePage:n})=>{const{label:r,value:o,isDropdown:i,dropdownItems:s,dataEventCategory:c,dataEventAction:m,dataEventLabel:d}=a;return i?e.createElement(W,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:n,className:"collapsed-breadcrumb"}):e.createElement("div",{className:$l,title:"string"!=typeof r?o:r,"data-last":l},t&&e.createElement(t,{"data-event-category":c,"data-event-action":m,"data-event-label":d,href:o||"#"},r))},Wl=({className:t,pages:a,size:n,LinkComponent:o="a",onChangePage:i,separator:s})=>{const c=l((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return e.createElement("div",{"data-size":n,className:`${Ol} ${t||""}`},c.map(((t,a)=>{const l=a+1===c.length;return e.createElement(r,{key:a},e.createElement(Vl,{LinkComponent:o,page:t,isLast:l,onChangePage:i}),!l&&(t.separator||s||e.createElement("div",{className:Hl,"data-size":n})))})))},Rl=({imgBanner:t,label:a,className:l,style:n,href:r="",dataEventCategory:o,dataEventAction:s,dataEventLabel:c})=>e.createElement(R,{"data-event-category":o,"data-event-action":s,"data-event-label":c,className:l,style:n,href:r,onClick:e=>{""===r&&e.preventDefault()}},e.createElement("div",{className:"banner"},t),e.createElement("div",{className:"content"},e.createElement(i,{className:"category_name",size:"sm",type:"bold"},a))),Gl=({name:t,values:a=[],onChanges:l,options:n=[],className:r,type:o="vertical",isDisabled:i,isRectangle:s})=>{const c=(e,t)=>{const n=a.slice();if(t)n.push(e);else{const t=n.findIndex((t=>t===e));n.splice(t,1)}l&&l(n)};return e.createElement(G,{className:r,"data-type":o,"data-is-rectangle":s||void 0},n.map(((l,n)=>e.createElement(xl,{label:l.label,name:t,key:`${n}-${l.value}`,checked:a.includes(l.value),value:l.value,isDisabled:i||l.disabled,onChange:!i&&c,isRectangle:s}))))},Ul=({size:t,iconPosition:a,className:l,children:n,icon:r})=>e.createElement(U,{className:l,"data-size":t,"data-icon-position":a},"left"===a&&r,n,"right"===a&&r),Zl=({type:a,numberOfStep:l,activeStep:r,labelPrefix:i,detailSteps:s,className:c,onChange:m})=>{const[d,g]=t(0),u=t=>{var{trackClassName:a}=t,l=va(t,["trackClassName"]);return e.createElement(Y,Object.assign({},l,{className:a}),e.createElement(X,null))},p=e.createElement(Z,{className:c+" progress-bar"},e.createElement(u,null),e.createElement((({trackLength:t,activeStep:a,labelPrefix:n="Step",onChange:r})=>e.createElement(e.Fragment,null,Array.from({length:l},((e,t)=>t)).map(((o,i)=>e.createElement(Q,{"data-is-active":i===a,"data-label":i,style:{left:i*t/(l-1)},onClick:()=>{r&&r(i)},key:i},i+1,e.createElement(J,{"data-step-passed":i<=a},n+" "+(i+1))))))),{trackLength:d,activeStep:r,labelPrefix:i,onChange:m})),h=e.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),v=e.createElement(q,null,s&&Array.from({length:s.length},((e,t)=>t)).map(((t,a)=>{var l;return e.createElement(K,{key:a,"data-selected":a===r,onClick:()=>{m&&m(a)}},null===(l=s[a])||void 0===l?void 0:l.text," ",a<s.length-1&&h)}))),E=e.createElement(Z,{className:c+" progress-bar"},e.createElement((({detailSteps:t,activeStep:a,onChange:l})=>e.createElement(e.Fragment,null,Array.from({length:t.length},((e,t)=>t)).map(((n,r)=>e.createElement(ee,{key:r,style:{left:100/t.length*r+"%",width:100/t.length+"%"},onClick:()=>{l&&l(r)}},t[r].icon?e.createElement(te,{onClick:()=>{l&&l(r)}},t[r].icon):e.createElement(ae,{"data-is-active":r===a,"data-label":n,onClick:()=>{l&&l(r)},key:r},r+1),e.createElement(le,{"data-step-passed":r<a+1},t[r].text,e.createElement(ne,null,t[r].description)),r<t.length-1&&e.createElement(u,{"data-step-passed":r<a,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:r,detailSteps:s,onChange:m})),y=o(ya((()=>{const e=document.querySelector(".progress-bar");e&&g(e.offsetWidth)}),1e3),[]);return n((()=>{const e=document.querySelector(".progress-bar");return g(null==e?void 0:e.offsetWidth),window.addEventListener("resize",y,{passive:!0}),()=>{window.removeEventListener("resize",y)}}),[]),"step-track"===a&&p||"breadcrumb"===a&&v||"detail-track"===a&&E};var ql=Object.freeze({__proto__:null,SideMenu:re,SideHeader:oe,UserInfo:ie,MenuLink:se});const Kl=({status:t})=>"inActive"===t?e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),e.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"#00B16A"}),e.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),Yl=({row:l=2,column:r=3,isDotsShown:o=!0,isImageGalleryShown:i=!1,mode:s="infinity",type:c="separated",distanceOverlappedLeft:m={amount:0,unit:"pixel"},children:d,className:g,isProgressShown:u=!1,statusChildren:p,isArrowShown:h=!1,classNameLeftArrow:v,classNameRightArrow:E,dataEventCategory:y,dataEventAction:b,dataEventLabel:f,onChangePage:w,page:C,customPageWidth:k,scheme:N="hellosites",arrowType:L="Discover"})=>{const x="number"==typeof C,[B,_]=t(x?C:0),M=[];e.Children.map(d,((t,a)=>{a%(l*r)==0&&M.push([]),M[M.length-1].push(e.cloneElement(t))}));const D=a(),z=a(0),S=e=>{if(!D.current)return;const{clientWidth:t}=D.current,a=k||t,l="intertwined"===c?"percentage"===m.unit?e*a+m.amount/100*a*e:e*a+m.amount*a*e:e*a;D.current.scrollTo({top:0,left:l,behavior:"smooth"}),z.current=e,_(e),w&&w(e)};n((()=>{"number"==typeof C&&(e=>{if(!D.current)return;const{clientWidth:t}=D.current,a=k||t,l="intertwined"===c?"percentage"===m.unit?e*a+m.amount/100*a*e:e*a+m.amount*a*e:e*a;D.current.scrollTo({top:0,left:l,behavior:"smooth"}),z.current=e,_(e)})(C)}),[C]);const j=e=>{if(!D.current)return;const{clientWidth:t}=D.current,a=k||t;let l;l=0===B?0:B*a,"forward"===e&&(l===a*(M.length-1)?(_(M.length-1),l=a*(M.length-1),w&&w(M.length-1)):(_(B+1),l+=a,w&&w(B+1)),D.current.scrollTo({top:0,left:l,behavior:"smooth"})),"back"===e&&(0===l?(_(0),w&&w(0),l=0):(_(B-1),w&&w(B-1),l-=a),D.current.scrollTo({top:0,left:l,behavior:"smooth"}))},A=ya((()=>{if("infinity"===s){if(!D.current)return;const{clientWidth:e,scrollLeft:t}=D.current,a=k||e,l=Math.floor(t/a);_(l),w&&w(l)}}),400);return n((()=>{if("snapped"===s){let e,t,a,l,n,r,o=!1;const i=D.current,s=(r,s)=>{o=!0,a=!1,l=!1,e=r-i.offsetLeft,t=s-i.offsetTop,n=i.scrollLeft},d=e=>{s(e.pageX,e.pageY)},g=e=>{s(e.touches[0].pageX,e.touches[0].pageY)},u=()=>{if(o=!1,a=!1,l=!1,!D.current)return;const{clientWidth:e}=D.current,t=k||e,n="ltr"===r?0!==z.current?z.current-1:z.current:"rtl"===r&&z.current<M.length-1?z.current+1:z.current,i="intertwined"===c?"percentage"===m.unit?n*t+m.amount/100*t*n:n*t+m.amount*t*n:n*t;D.current.scrollTo({top:0,left:i,behavior:"smooth"}),r="none",z.current!==n&&(z.current=n,_(n),w&&w(n))},p=(s,c)=>{if(!o)return;const m=s-i.offsetLeft,d=c-i.offsetTop,g=m-e,u=d-t;a||l||!(u>20||u<-20)||(a=!0),!a&&(g>20||g<-20)&&(l=!0,i.scrollLeft=n-g,g>0&&(r="ltr"),g<0&&(r="rtl"),0===g&&(r="none"))},h=e=>{l&&e.preventDefault(),p(e.pageX,e.pageY)},v=e=>{l&&e.preventDefault(),p(e.touches[0].pageX,e.touches[0].pageY)};return null==i||i.addEventListener("mousedown",d,{passive:!0}),null==i||i.addEventListener("touchstart",g,{passive:!0}),window.addEventListener("mouseup",u,{passive:!0}),window.addEventListener("touchend",u,{passive:!0}),null==i||i.addEventListener("mousemove",h,{passive:!0}),null==i||i.addEventListener("touchmove",v,{passive:!0}),()=>{null==i||i.removeEventListener("mousedown",d),null==i||i.removeEventListener("touchstart",g),window.removeEventListener("mouseup",u),window.removeEventListener("touchend",u),null==i||i.removeEventListener("mousemove",h),null==i||i.removeEventListener("touchmove",v)}}}),[]),e.createElement(ce,{className:g,"data-row":l,onScroll:A},h&&B>0&&e.createElement("div",{className:`${v} arrow-left`,onClick:()=>j("back"),"data-event-category":y,"data-event-action":b,"data-event-label":f},"Care"===L?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3V3C31.8368 3 39.0002 10.1634 39.0002 19V19C39.0002 27.8366 31.8368 35 23.0002 35V35C14.1637 35 7.00024 27.8366 7.00024 19V19Z",fill:"white"}),e.createElement("path",{d:"M20.9293 19L24.7503 15.179C25.1643 14.765 25.1643 14.093 24.7503 13.679C24.3363 13.265 23.6643 13.265 23.2503 13.679L18.6363 18.293C18.2453 18.684 18.2453 19.317 18.6363 19.707L23.2503 24.321C23.6643 24.735 24.3363 24.735 24.7503 24.321C25.1643 23.907 25.1643 23.235 24.7503 22.821L20.9293 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),e.createElement("div",{ref:D,className:"container",style:{overflowX:"snapped"===s||h?"hidden":"scroll"}},M.map(((t,a)=>{let n=0;for(let e=0;e<a;e++)n+=M[e].length;return e.createElement("div",{key:a,className:"section",style:{marginLeft:"intertwined"===c&&0!==a?m.amount+""+("percentage"===m.unit?"%":"px"):"0px"}},1===l&&u&&e.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${r}, 1fr)`}},t.map(((l,r)=>{const o=n+r,i=p.find((e=>e.index===o));return e.createElement("div",{className:"items-progress",key:r},0===r&&0===a?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}),e.createElement("div",{className:"icon-status"},e.createElement(Kl,{status:null==i?void 0:i.status})),a===M.length-1&&r===t.length-1?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}))}))),e.createElement("div",{className:"grid-layout","data-index":a,style:{gridTemplateColumns:`repeat(${r}, 1fr)`,gridTemplateRows:`repeat(${l}, 1fr)`}},t.map(((t,a)=>e.createElement(e.Fragment,{key:a},e.createElement("div",{className:"item-grid",key:a},t))))))}))),h&&B<M.length-1&&e.createElement("div",{className:`${E} arrow-right`,onClick:()=>j("forward"),"data-event-category":y,"data-event-action":b,"data-event-label":f}," ","Care"===L?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3C31.8368 3 39.0002 10.1634 39.0002 19C39.0002 27.8366 31.8368 35 23.0002 35C14.1637 35 7.00024 27.8366 7.00024 19Z",fill:"white"}),e.createElement("path",{d:"M24.0712 19L20.2502 15.179C19.8362 14.765 19.8362 14.093 20.2502 13.679C20.6642 13.265 21.3362 13.265 21.7502 13.679L26.3642 18.293C26.7552 18.684 26.7552 19.317 26.3642 19.707L21.7502 24.321C21.3362 24.735 20.6642 24.735 20.2502 24.321C19.8362 23.907 19.8362 23.235 20.2502 22.821L24.0712 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o&&e.createElement("ul",{className:"bullet-nav"},M.map(((t,a)=>e.createElement("li",{key:a,className:"bullet-nav__item "},e.createElement("p",{onClick:()=>S(a),className:`bullet-nav__link scroll ${B==a?"active":null}`,"data-scheme":N}))))),i&&e.createElement("div",{className:"image-gallery-wrapper","data-test":M.length},M.slice(0,3).map(((t,a)=>e.createElement("div",{className:`image-block ${B==a?"active":null}`,key:a,onClick:()=>S(a),"data-scheme":N},t)))))},Xl=({isDisabled:t,isLeft:a,onClick:l,className:n,scheme:r="hellosites"})=>e.createElement(ge,{onClick:l,"data-is-disabled":t,"data-is-left":a,className:n},e.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a?e.createElement("path",{d:"M2.92902 6.00015L6.75002 2.17915C7.16402 1.76515 7.16402 1.09315 6.75002 0.679152C6.33602 0.265152 5.66402 0.265152 5.25002 0.679152L0.636023 5.29315C0.245023 5.68415 0.245023 6.31715 0.636023 6.70715L5.25002 11.3212C5.66402 11.7352 6.33602 11.7352 6.75002 11.3212C7.16402 10.9072 7.16402 10.2352 6.75002 9.82115L2.92902 6.00015Z",fill:"hellosites"===r?"#595959":"#E55C8A"}):e.createElement("path",{d:"M5.07095 6.00015L1.24995 2.17915C0.835953 1.76515 0.835953 1.09315 1.24995 0.679152C1.66395 0.265152 2.33595 0.265152 2.74995 0.679152L7.36395 5.29315C7.75495 5.68415 7.75495 6.31715 7.36395 6.70715L2.74995 11.3212C2.33595 11.7352 1.66395 11.7352 1.24995 11.3212C0.835953 10.9072 0.835953 10.2352 1.24995 9.82115L5.07095 6.00015Z",fill:"hellosites"===r?"#595959":"#E55C8A"}))),Ql=({row:a,column:l,children:n,scheme:r="hellosites",classNameLeftArrow:o="",classNameRightArrow:i="",mode:s="snap",isDotsShown:c=!0,isArrowShown:m=!1,dataEventCategory:d,dataEventAction:g,dataEventLabel:u,onChangePage:p})=>{const[h,v]=e.useState(0),[E,y]=t(!1),[b,f]=ba({defaultAnimation:{duration:1e3},initial:0,slideChanged(e){v(e.track.details.rel),p&&p(e.track.details.rel)},created(){y(!0)},drag:!0,mode:s,slides:{spacing:12}}),w=[],C=a*l;for(let e=0;e<n.length;e+=C){const t=n.slice(e,e+C);w.push(t)}return e.createElement(me,{row:a,column:l},e.createElement("div",{className:"navigation-wrapper"},e.createElement("div",{ref:b,className:"keen-slider slides-wrapper"},w.map(((t,a)=>e.createElement("div",{key:a,className:"keen-slider__slide page-items"},t.map(((t,a)=>e.createElement("div",{key:a},t))))))),E&&f.current&&m&&e.createElement(e.Fragment,null,e.createElement(Xl,{isLeft:!0,onClick:e=>{var t;return e.stopPropagation()||(null===(t=f.current)||void 0===t?void 0:t.prev())},isDisabled:0===h,scheme:r,className:`left-arrow ${o}`,"data-event-category":d,"data-event-action":g,"data-event-label":u}),e.createElement(Xl,{isLeft:!1,onClick:e=>{var t;return e.stopPropagation()||(null===(t=f.current)||void 0===t?void 0:t.next())},isDisabled:h===f.current.track.details.slides.length-1,scheme:r,className:`right-arrow ${i}`,"data-event-category":d,"data-event-action":g,"data-event-label":u}))),E&&f.current&&c&&e.createElement("div",{className:"dots"},[...Array(f.current.track.details.slides.length)].map(((t,a)=>e.createElement(de,{key:a,onClick:()=>{var e;null===(e=f.current)||void 0===e||e.moveToIdx(a)},"data-is-active":h===a,"data-is-hellosites":"hellosites"===r})))))},Jl=({type:t,description:a,value:l,withIcon:n,isInACard:r,cardColor:o,className:i})=>e.createElement(ue,{className:i,"data-size":t,"data-is-in-card":"big"===t&&r,"data-card-color":o},e.createElement(pe,null,"small"===t&&e.createElement(he,{"data-color":o}),a),e.createElement(ve,{"data-size":t},"small"!==t&&n,l));var en=Object.freeze({__proto__:null,Table:Ee,Cell:ye,Head:be,Row:fe,Body:we});const tn=({thankyou:t,thankyouSubtitle:a,className:l,style:n})=>e.createElement(Ce,{className:l,style:n},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(ke,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},e.createElement("path",{d:"M61.5 122C94.6371 122 121.5 95.1371 121.5 62C121.5 28.8629 94.6371 2 61.5 2C28.3629 2 1.5 28.8629 1.5 62C1.5 95.1371 28.3629 122 61.5 122Z",fill:O.colors.primary50}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.9048 72.6663H101.5L87.597 40H35.403L21.5 72.6663H40.0952V91H83.0786L82.9048 72.6663Z",fill:"#2C74DF"}),e.createElement("path",{d:"M74.4004 15.0005H39.863C36.9017 15.0005 34.5 17.4022 34.5 20.3635V72.5769C34.5 75.5383 36.9017 77.9399 39.863 77.9399H83.1357C86.097 77.9399 88.4987 75.5383 88.4987 72.5769V29.0988L88.4987 21.0005C88.4987 17.6868 85.8124 15.0005 82.4987 15.0005H74.4004Z",fill:"white"}),e.createElement("path",{d:"M88.8529 80.1077H34.1469C31.8699 80.1077 30.06 78.3036 30.06 76.0338V65.3837C30.06 63.1139 31.8699 61.3098 34.1469 61.3098H88.8529C91.1299 61.3098 92.9398 63.1139 92.9398 65.3837V76.0338C92.9398 78.3036 91.1299 80.1077 88.8529 80.1077Z",fill:"#E4E8EC"}),e.createElement("path",{d:"M90.838 85.4512H32.1618C29.8849 85.4512 28.075 83.6471 28.075 81.3774V70.7272C28.075 68.4575 29.8849 66.6533 32.1618 66.6533H90.7796C93.0566 66.6533 94.8665 68.4575 94.8665 70.7272V81.3774C94.9249 83.6471 93.0566 85.4512 90.838 85.4512Z",fill:"white"}),e.createElement("path",{d:"M103.748 75.4919V105.755C103.748 107.675 102.172 109.247 100.245 109.247H23.0031C21.0764 109.247 19.5 107.675 19.5 105.755V75.4919C19.5 73.5713 21.0764 72 23.0031 72H42.3866C44.3133 72 45.8897 73.5713 45.8897 75.4919V80.8461C45.8897 81.1952 46.1232 81.428 46.4735 81.428H76.7749C77.1253 81.428 77.3588 81.1952 77.3588 80.8461V75.4919C77.3588 73.5713 78.9352 72 80.8618 72H100.245C102.172 72 103.748 73.5713 103.748 75.4919Z",fill:"#45A4FF"}),e.createElement("path",{d:"M51.9541 91.3767V94.4612C51.9541 96.0907 53.2386 97.3711 54.8733 97.3711H67.7179C69.3526 97.3711 70.6371 96.0907 70.6371 94.4612V91.3767",stroke:"#2C74DF",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M120.5 38.0251C118.5 37.7793 117.25 39.3768 118.125 41.22L118.375 41.9573C119.125 43.8006 118 45.398 116 45.1523L115.25 45.0294C113.25 44.7836 112 46.3811 112.875 48.2244L113.25 48.9616C114 50.8049 112.875 52.4025 110.875 52.1567L110.125 52.0337C108.625 51.9109 107.5 52.7712 107.5 54",stroke:"#FE921D",strokeWidth:"1.9096",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M1.53299 62C1.2644 63.413 2.6745 64.337 4.35323 63.8478L5.02472 63.6304C6.70346 63.087 8.11356 64.0109 7.84496 65.4783L7.7107 66.0217C7.4421 67.4348 8.8522 68.3587 10.5309 67.8696L11.2024 67.6522C12.8812 67.1087 14.2913 68.0326 14.0227 69.5L13.8884 70.0435C13.687 71.1304 14.4256 71.8913 15.5 72",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M118 92C119.381 92 120.5 90.8807 120.5 89.5C120.5 88.1193 119.381 87 118 87C116.619 87 115.5 88.1193 115.5 89.5C115.5 90.8807 116.619 92 118 92Z",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M82.0001 3.18747L83.1875 7.53467L87.5347 6.34727L86.3473 2.00007L82.0001 3.18747Z",stroke:"#00B16A",strokeWidth:"2.1628",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M17.0001 28C18.1046 28 19 27.1045 19 25.9999C19 24.8954 18.1046 24 17.0001 24C15.8955 24 15 24.8954 15 25.9999C15 27.1045 15.8955 28 17.0001 28Z",stroke:"#FE921D",strokeWidth:"2.3278",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M61.5 26.6667C54.136 26.6667 48.1667 32.6361 48.1667 40.0001C48.1667 47.3641 54.136 53.3334 61.5 53.3334C68.864 53.3334 74.8334 47.3641 74.8334 40.0001C74.8334 32.6361 68.864 26.6667 61.5 26.6667ZM69.1094 36.9427L59.776 46.2761C59.516 46.5361 59.1747 46.6667 58.8334 46.6667C58.492 46.6667 58.1507 46.5361 57.8907 46.2761L53.8907 42.2761C53.3694 41.7547 53.3694 40.9121 53.8907 40.3907C54.412 39.8694 55.2547 39.8694 55.776 40.3907L58.8334 43.4481L67.224 35.0574C67.7454 34.5361 68.588 34.5361 69.1094 35.0574C69.6307 35.5787 69.6307 36.4214 69.1094 36.9427Z",fill:"#00CB8A"})),t&&e.createElement(F,{className:"survey-thankyou-title",tag:"h3"},t),a&&e.createElement(i,{className:"survey-thankyou-subtitle",size:"p3"},a))))),an=({items:a,className:l,style:r,backgroundPanelStyle:o,isOpen:i,onOpen:s,onClose:c,disableBackdropClick:m,siteType:d="hb",animationType:g="zoom",zIndex:u=300})=>{const[p,h]=t(!!i);n((()=>{h(!!i)}),[i]);const v=()=>{h(!1),c&&c()};return e.createElement(Ne,{style:r,className:l,"data-floatmenu-open":p,"data-site-type":d,"data-animation-type":g},e.createElement(Le,{className:"float-button-group__panel",style:Object.assign({zIndex:u},o),onClick:m?void 0:v}),e.createElement(xe,{className:"float-button-group___content",style:{zIndex:u}},e.createElement(Be,null,a.map(((t,l)=>e.createElement(_e,{className:`float-item-button-${l}`,style:Object.assign(Object.assign({},"zoom"===g&&{bottom:64*(a.length-1-l),transitionDelay:Me/a.length*(p?a.length-1-l:l)+"ms"}),"slide"===g&&{bottom:64*(a.length-1-l),transitionDelay:Me/a.length*(p?l:a.length-1-l)+"ms"}),key:l,onClick:()=>{t.onClick(),t.keepMenuOnClick||h(!1)}},e.createElement(De,{style:Object.assign({},"zoom"===g&&{transitionDelay:Me/a.length*(p?a.length-1-l:l)+"ms"})},t.label),e.createElement(ze,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===g||"slide"===g)&&{transitionDelay:Me/a.length*(p?a.length-1-l:l)+"ms"})},t.icon))))),e.createElement(Se,{onClick:p?v:()=>{h(!0),s&&s()}})))},ln=({className:t,policiesUrl:a,onAcceptClick:l,translations:n={acceptButton:"Accept",policiesButton:"Our Policies"},title:r="",description:o="",theme:i="helloSites",isOpen:s=!0,useDefaultPosition:c=!0,trackingAttributes:m})=>e.createElement(je,{className:t,"data-theme":i,"data-is-open":s,"data-default-position":c},e.createElement(Ae,{"data-has-content":!!r},r),e.createElement(Ie,{dangerouslySetInnerHTML:{__html:o}}),e.createElement(Te,null,e.createElement(Pe,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:l,"data-event-category":null==m?void 0:m.dataEventCategory,"data-event-action":null==m?void 0:m.dataEventAction,"data-event-label":null==m?void 0:m.dataEventLabel},n.acceptButton),e.createElement(Fe,{href:a},n.policiesButton))),nn=({SEOData:t={},locale:a="vi-VN",routerPathname:n,routerQuery:r,nextHead:o,siteType:i,seoCustom:s,userId:c,forcedCanonicalUrl:m})=>{var d,g,u,p,h,v,E,y,b,f,w,C;const{totalPages:k,currentPage:N,SEOTitle:L="",SEODescription:x="",SEOImage:B,seoType:_,SEOImageWidth:M,SEOImageHeight:D,customMetaData:z=[],isIndexable:S=!0,hasNoCanonical:j=!1}=t,A=S&&La?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:I}=process.env;let T=t.canonicalUrl||n;Object.keys(r).forEach((e=>{const t=r[e];t&&Array.isArray(t)&&(T=T.replace(`[...${e}]`,t.join("/")))}));const P=a||"en-PH",F="helloSites"===i?wa[P]:"www.marrybaby.vn",O=T.endsWith("/")?"":"/",H=l((()=>{var l,n,r,o,i,s,c;let m="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const d=null===(l=t.apiMetaData)||void 0===l?void 0:l.match(/<title.*?>(.*)<\/title>/),g=` - Page ${N} of ${k}`,u=N&&1!==N&&d?t.apiMetaData.replace(d[0],d[0].includes("-")?d[0].replace("-",g+" - "):`<title>${d[1].concat(g)}</title>`).replace(`<link rel="canonical" href="https://${F}${T}${O}" />`,`<link rel="canonical" href="https://${F}${T}${O}?page=${N}" />`):t.apiMetaData;if(m=Oe(u,{trim:!0}),!m.find((e=>{var t,a;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(a=e.props)||void 0===a?void 0:a.property)}))){const l=`https://${F}/images/${a}.png`;m=[...m,e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(n=t.openGraph)||void 0===n?void 0:n.image)||B||l||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(r=t.openGraph)||void 0===r?void 0:r.image)||B||l}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)&&String(null===(i=t.openGraph)||void 0===i?void 0:i.imageWidth)||M&&String(M)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)&&String(null===(c=t.openGraph)||void 0===c?void 0:c.imageHeight)||D&&String(D)||"630"})]}}return m}),[t.apiMetaData,t.openGraph,B,D,M,N,T,k,a,F]),$=`https://${F}/images/${a}.png`;return e.createElement(o,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===i&&e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===a||"ms-MY"===a?e.createElement(e.Fragment,null):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),e.createElement("link",{rel:"preconnect",href:I}),e.createElement("meta",{charSet:"UTF-8"}),e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:A}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),z.map(((t,a)=>e.createElement("meta",Object.assign({key:a},t)))),e.createElement("meta",{name:"theme-color",content:"helloSites"===i?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:P}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!H&&e.createElement(e.Fragment,null,"helloSites"===i?e.createElement("title",null,s?L:L+" - "+(null===(d=Ca[a])||void 0===d?void 0:d.SITE_NAME)):e.createElement("title",null,L),!j&&e.createElement("link",{rel:"canonical",href:`https://${F}${T}`}),e.createElement("meta",{name:"description",content:x||(null===(g=t.openGraph)||void 0===g?void 0:g.description)}),t.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),e.createElement("meta",{property:"og:locale",content:a}),e.createElement("meta",{property:"og:type",content:_||"website"}),e.createElement("meta",{property:"og:title",content:(null===(u=t.openGraph)||void 0===u?void 0:u.title)||L}),e.createElement("meta",{property:"og:description",content:(null===(p=t.openGraph)||void 0===p?void 0:p.description)||x}),e.createElement("meta",{property:"og:url",content:`https://${F}${T}`}),e.createElement("meta",{property:"og:site_name",content:`https://${F}`}),e.createElement("meta",{property:"og:image",content:(null===(h=t.openGraph)||void 0===h?void 0:h.image)||B||$||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(v=t.openGraph)||void 0===v?void 0:v.image)||B||$}),e.createElement("meta",{property:"og:image:width",content:(null===(E=t.openGraph)||void 0===E?void 0:E.imageWidth)&&String(null===(y=t.openGraph)||void 0===y?void 0:y.imageWidth)||M&&String(M)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(b=t.openGraph)||void 0===b?void 0:b.imageHeight)&&String(null===(f=t.openGraph)||void 0===f?void 0:f.imageHeight)||D&&String(D)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(w=t.twitter)||void 0===w?void 0:w.title)||L}),e.createElement("meta",{name:"twitter:description",content:x}),e.createElement("meta",{name:"twitter:image",content:(null===(C=t.twitter)||void 0===C?void 0:C.image)||B})),("helloSites"===i?ka[P]||[]:ka.marryBaby).map(((t,a)=>"link"===t.type?e.createElement("link",{key:`favicon-${a}`,rel:t.rel,href:t.href,sizes:t.sizes}):"meta"===t.type?e.createElement("meta",{key:a,name:t.name,content:t.content}):null)),Array.isArray(H)&&m?H.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):H,m&&e.createElement("link",{rel:"canonical",href:m}),!t.hasNoAmp&&"vi-VN"!==a&&e.createElement("link",{rel:"amphtml",href:`https://${F}${T}${O}?amp=1`}),c&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${c}'});`}}):null)},rn=({locale:a,onClick:l,siteType:n,pageUrl:r})=>{const{t:o}=Ba(),[s,c]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(He,{className:"input-form","data-is-side":!0},"marryBaby"===n?e.createElement($e,{label:o("dueDatePage.conceptionDate"),name:"date",size:"md",value:Ve(s),CustomInput:e.createElement(We,{onChange:e=>{c(e)},placeholder:"dd/mm/yyyy",pickedDate:s,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Ha,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:s&&fa(s).format(Ua)}))}),actionIcon:e.createElement(Va.CalendarMB,{size:32})}):e.createElement(Ha,{label:e.createElement(i,{size:"n1",type:"bold",color:O.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.conceptionDate")),value:Ve(s),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Ve(s)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:s,displayDateFormat:Re,onChange:e=>{c(e)},placeholder:"placeholder"})})),e.createElement(I,{className:"due-date-calculate-button",size:"lg",color:"marryBaby"===n?"secondary":"primary",theme:n,dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,onClick:()=>{l(Ge(s),`${Na.type}=1&sd=${_a(s,Ue)}&${Na.additional}= `)},role:"button"},o("dueDatePage.lastPeriod.calculate")))},on=({locale:a,onClick:l,siteType:n,pageUrl:r})=>{const{t:o}=Ba(),[s,c]=t(new Date),[m,d]=t("3");return e.createElement(e.Fragment,null,e.createElement(He,{className:"input-form","data-is-side":!0},"marryBaby"===n?e.createElement($e,{label:o("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:Ve(s),CustomInput:e.createElement(We,{onChange:e=>{c(e)},placeholder:"dd/mm/yyyy",pickedDate:s,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Ha,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:s&&fa(s).format(Ua)}))}),actionIcon:e.createElement(Va.CalendarMB,{size:32})}):e.createElement(Ha,{label:e.createElement(i,{size:"n1",type:"bold",color:O.colors.gray700,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.ivf.transferDate")),value:Ve(s),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Ve(s)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:s,displayDateFormat:Re,onChange:e=>{c(e)},placeholder:"placeholder"})})),e.createElement("div",{style:{width:"100%"}},e.createElement(Ze,{id:"radio-transfer-date",type:"circle",direction:"vertical",size:"small",group:"group1",value:m,onChange:e=>d(e),options:[{value:"3",label:o("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:o("dueDatePage.ivf.transferDateRadio",{number:5})}]})),e.createElement(I,{className:"due-date-calculate-button",size:"lg",color:"marryBaby"===n?"secondary":"primary",theme:n,dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,onClick:()=>{l(qe(s,Number(m)),`${Na.type}=2&${Na.startDate}=${_a(s,Ue)}&${Na.additional}=${m}`)},role:"button"},o("dueDatePage.lastPeriod.calculate")))},sn=({locale:a,onClick:l,siteType:n,pageUrl:r})=>{const{t:o}=Ba(),[s,c]=t(28),[m,d]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(He,{className:"input-form","data-is-side":!0},"marryBaby"===n?e.createElement($e,{label:o("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:Ve(m),CustomInput:e.createElement(We,{onChange:e=>{d(e)},placeholder:"dd/mm/yyyy",pickedDate:m,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Ha,Object.assign({name:"birthday",size:"md"},t,{value:m&&fa(m).format(Ua)}))}),actionIcon:e.createElement(Va.CalendarMB,{size:32})}):e.createElement(Ha,{className:"input-section due-date-input",label:e.createElement(i,{size:"n1",type:"bold",color:O.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.lastPeriod.lastPeriodLabel")),value:Ve(m),name:"date",size:"md",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Ve(m)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:m,displayDateFormat:Re,onChange:e=>{d(e)},placeholder:"placeholder"})})),e.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===n?"marryBaby":""},"marryBaby"===n?e.createElement(qa,{type:"bodytext-3",color:O.mbColors.midGray},o("dueDatePage.lastPeriod.periodLengthLabel")):e.createElement(i,{size:"n1",type:"bold",color:O.colors.gray600,style:{marginBottom:"0.5rem"}},o("dueDatePage.lastPeriod.periodLengthLabel")),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===n&&e.createElement(i,{size:"s3",type:"bold",color:O.colors.gray600},s),e.createElement(Ka,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==n,withControl:"marryBaby"!==n,onChange:c,value:s,label:"marryBaby"!==n?void 0:null}))),e.createElement(I,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,className:"due-date-calculate-button",size:"lg",color:"marryBaby"===n?"secondary":"primary",theme:n,onClick:()=>l(Ke(m,s),`${Na.type}=0&${Na.startDate}=${_a(m,Ue)}&${Na.additional}=${s}`),role:"button"},o("dueDatePage.lastPeriod.calculate")))},cn=({onSubmitDueDate:a,locale:n,isSide:r,siteType:o})=>{const{t:s}=Ba(),[c,m]=t(Ye.lastPeriod),d=[{value:Ye.lastPeriod,label:s("dueDatePage.lastPeriod")},{value:Ye.conception,label:s("dueDatePage.conceptionDate")},{value:Ye.IVF,label:s("dueDatePage.ivf")}],g=l((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Xe,null,e.createElement(Qe,{className:"input-form input-section","data-is-side":!0},"marryBaby"===o?e.createElement(Je,{groupedWithLabel:s("dueDatePage.calculationMethod"),options:d,placeholder:s("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:d[c],onChange:e=>{m(e.value)}}):e.createElement(e.Fragment,null,e.createElement(i,{size:"n1",type:"bold",color:O.colors.gray600,style:{marginBottom:"9px",flex:"1"}},s("dueDatePage.calculationMethod")),e.createElement(et,{"data-is-side":r},e.createElement(W,{options:d,placeholder:s("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:d[c],onChange:e=>{m(e.value)}})))),c===Ye.lastPeriod?e.createElement(sn,{locale:n,onClick:a,isSide:r,siteType:o,pageUrl:g}):null,c===Ye.conception?e.createElement(rn,{locale:n,onClick:a,isSide:r,siteType:o,pageUrl:g}):null,c===Ye.IVF?e.createElement(on,{locale:n,onClick:a,isSide:r,siteType:o,pageUrl:g}):null)},mn=({isMobile:t,locale:a,onSubmitDueDate:l,dueDatePageInfo:n,expertUrl:r,isSide:o,siteType:s})=>{var c;const{t:m}=Ba();return e.createElement(tt,{"data-is-side":o,"data-site":s},e.createElement(at,{isSide:o,bannerUrl:P.getAssetPath("embedToolBannerPink.svg"),siteType:s,bannerColor:"marryBaby"===s&&O.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{alt:"health-tool-icon",src:null==n?void 0:n.featured_image,style:"marryBaby"!==s?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null}),heading:m("healthTools.dueDateCalculator"),medicalReview:(null===(c=null==n?void 0:n.reviewed_by)||void 0===c?void 0:c.display_name)?e.createElement(i,{size:"label2",color:O.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:"marryBaby"===s?null==n?void 0:n.reviewed_by.display_name:`<a\n style="color: white"\n href="${r}"\n >\n ${null==n?void 0:n.reviewed_by.display_name}\n </a>`,date:null==n?void 0:n.reviewed_date})}}),e.createElement("span",null)):void 0,isMobile:t}),e.createElement(lt,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":o},e.createElement(cn,{siteType:s,locale:a,onSubmitDueDate:l,isSide:o})))};function dn({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const gn=({value:a,onChange:r,onSubmit:o,disabled:s,bmiGenerated:c,bmiUnit:m,locale:d,isSide:g})=>{var u,p,h,v;const[E,y]=t(!1),{control:b,handleSubmit:f,setValue:w,watch:C}=Ya(),k=C(),{t:N}=Ba(),{gender:L=!1,age:x=!1,height:B=!1,weight:_=!1,objective:M=!0}=s||{},{getHealthToolLink:D}=Ja(d),z=l((()=>D(Za.OVULATION)),[D]),S=l((()=>[{value:"male",label:N("gender.male"),content:e.createElement(Va.GenderChooseBoy,null)},{value:"female",label:N("gender.female"),content:e.createElement(Va.GenderChooseGirl,null)}]),[]),j=l((()=>[{value:"lose-weight",label:N("bmi.objective.loseWeight")},{value:"maintain-weight",label:N("bmi.objective.maintainWeight")},{value:"gain-weight",label:N("bmi.objective.gainWeight")}]),[]),A=()=>{y(!0)};return n((()=>{Object.keys(a||{}).forEach((e=>{w(e,null==a?void 0:a[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[a]),n((()=>{r&&r(k)}),[k]),e.createElement(nt,null,e.createElement("form",{onSubmit:f((e=>Ea(void 0,void 0,void 0,(function*(){const t=m.heightConvert(e.height),a=m.weightConvert(e.weight),l={gender:e.gender,age:e.age,height:t,weight:a,bmi:dn({height:t,weight:a})};M||(l.objective=e.objective),A(),o&&o(l)}))),A)},!L&&e.createElement(rt,{"data-is-side":g},e.createElement(Xa,{name:"gender",control:b,defaultValue:"male",render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(ot,{size:"md",name:t,label:c.gender.label,CustomInput:e.createElement(Wa,{options:S,value:a,onChange:e=>l(e),className:"bmi--input-radio_gender "+(g?"bmi-side-embed":"")}),errorMessage:E?null==n?void 0:n.message:"",className:"bmi--input bmi--input-gender"})})),e.createElement(it,{"data-is-side":g},!x&&e.createElement(rt,null,e.createElement(Xa,{name:"age",control:b,rules:null===(u=c.age)||void 0===u?void 0:u.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(Qa.Number,{label:e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray600},c.age.label),placeholder:N("healthtool.placeholder.age"),name:t,value:a,onChange:l,error:E?null==n?void 0:n.message:"",min:0})})),!B&&e.createElement(rt,null,e.createElement(Xa,{name:"height",control:b,rules:null===(p=c.height)||void 0===p?void 0:p.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(Qa.Number,{label:e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray600},c.height.label),placeholder:N("pwg.placeholder.height"),name:t,value:a,onChange:l,error:E?null==n?void 0:n.message:"",min:0})})),!_&&e.createElement(rt,null,e.createElement(Xa,{name:"weight",control:b,rules:null===(h=c.weight)||void 0===h?void 0:h.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(Qa.Number,{label:e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray600},c.weight.label),placeholder:N("pwg.placeholder.weight"),name:t,value:a,onChange:l,error:E?null==n?void 0:n.message:"",precision:1,min:0})})),!M&&e.createElement(rt,null,e.createElement(Xa,{name:"objective",control:b,defaultValue:"lose-weight",rules:null===(v=c.objective)||void 0===v?void 0:v.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(ot,{size:"md",name:t,label:c.objective.label,CustomInput:e.createElement(Ze,{id:"bmi-objective",className:"bmi-objective",type:"circle",direction:"vertical",size:"small",group:"group1",options:j,value:a,onChange:l}),errorMessage:E?null==n?void 0:n.message:"",className:"bmi--input bmi--input-objective"})}))),e.createElement("div",{style:{display:"flex"}},e.createElement(st,{size:"lg",isBlock:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${wa[d]}/${z}`},N("bmi.submit")))))},un=({isMobile:t,onSubmit:a,bmiContent:l,isSide:n,bmiGenerated:r,bmiUnit:o,bmiLink:s,locale:c})=>{var m,d,g;const{t:u}=Ba();return e.createElement(tt,{"data-is-side":n},e.createElement(at,{isSide:n,bannerUrl:P.getAssetPath("embedToolBannerBlue.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}}),heading:u("bmi.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?e.createElement(i,{size:"n1",color:O.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:u("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(d=null==l?void 0:l.reviewBy)||void 0===d?void 0:d.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.date})}}),e.createElement("span",null)):void 0,isMobile:t}),e.createElement($a,null,e.createElement(lt,{as:"div","data-is-side":n},s&&e.createElement(gn,{onSubmit:a,bmiGenerated:r,locale:c,bmiUnit:o,isSide:n}))))},pn=({isMobile:t,className:a,onSubmit:l,onError:n,schema:r,babyGrowthContent:o,siteType:s})=>{var c,m,d,g,u;const{t:p}=Ba();return e.createElement(tt,{"babyGrowthContent-is-mobile":t,"data-site":s},e.createElement(at,{siteType:s,bannerUrl:P.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:P.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===s&&O.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==o?void 0:o.featuredImage)||"",style:{maxWidth:"100%"}}),heading:(null==o?void 0:o.title)||"",medicalReview:(null===(c=null==o?void 0:o.reviewBy)||void 0===c?void 0:c.reviewer)&&""!==(null===(m=null==o?void 0:o.reviewBy)||void 0===m?void 0:m.reviewer)?e.createElement(i,{size:"label2",color:O.colors.white,className:"embedded-review"},e.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:"marryBaby"===s?null===(d=null==o?void 0:o.reviewBy)||void 0===d?void 0:d.reviewer.trim():`<a\n style="color: white"\n href="${(null===(g=null==o?void 0:o.reviewBy)||void 0===g?void 0:g.link)||"#"}"\n >\n ${null===(u=null==o?void 0:o.reviewBy)||void 0===u?void 0:u.reviewer.trim()}\n </a>`,date:null==o?void 0:o.reviewBy.date})}})):void 0,isMobile:t}),e.createElement(ct,{"data-theme":s},e.createElement(mt,{siteType:s,schema:r,className:a,onSubmit:l,onError:n})))},hn=({babyPoopPage:t,onClickFindOut:a,locale:l,isMobile:n,currentUrl:r,isSide:o})=>{const{t:s}=Ba(),{reviewedBy:c,reviewedDate:m}=t;return e.createElement(dt,null,e.createElement(Ra,{className:"px-16",style:{height:"100%",display:""+(n?"flex":""),flexDirection:"column"}},n&&e.createElement(gt,{src:P.getAssetPath("babyDiaper.png"),alt:t.title}),e.createElement(ut,{"data-is-side":o},e.createElement(pt,{"data-is-side":o},e.createElement(F,{tag:"h2",color:"#284A75"},t.title),e.createElement(i,{size:"p3",className:"description"},t.description),!!c&&e.createElement(ht,{className:"reviewer"},e.createElement("img",{src:P.getAssetPath("reviewerCheck.svg"),alt:"check",className:"check-icon"}),e.createElement(i,{size:"p4",color:O.colors.gray600},s("categoryPage.info.reviewed")," ",e.createElement("a",{href:c.profileUrl},c.displayName)," ",s("categoryPage.onDate",{date:m}))),e.createElement(I,{color:"primary",size:"md",className:"mt-16 find-out-button",onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:r,style:{visibility:Boolean(a)?"visible":"hidden"}},s("babyPoop.findOut"))),!n&&e.createElement(gt,{src:P.getAssetPath("babyDiaper.png"),alt:t.title,"data-is-vietnam":l===xa.Vietnam,className:"banner-img"}))))},vn=({value:a,options:l,className:n,direction:r="horizontal",onChange:o,isDisabled:s})=>{const[c,m]=t(a);return e.createElement(vt,{className:n,"data-direction":r},l.map(((t,l)=>e.createElement(Et,{"data-selected":(a||c)===t.value,"data-disabled":s,key:`health-tool${l}`,onClick:()=>{var e;e=t.value,s||(m(e),o&&o(e))}},e.createElement("div",null,e.createElement("img",{src:(a||c)===t.value?t.imageActive:t.image,className:"gender-image",alt:""}),t.label&&e.createElement(i,{type:"bold",className:"radio-group-item-heading",size:"label1"},t.label))))))},En=({info:a,className:l,style:r,onChange:o,errorMessage:s={},locale:c})=>{const{t:m}=Ba(),[d,g]=t(new Date),[u,p]=t({age:!1,rate:!1});return n((()=>{p({age:!1,rate:!1})}),[s]),e.createElement(yt,{style:r,className:l},e.createElement(Ha,{className:"input-section due-date-input",label:e.createElement(i,{size:"n1",type:"bold",color:O.colors.gray600,style:{marginBottom:"9px",flex:"1"}},m("targetHeartRate.ageInput")),value:Ve(d),name:"date",size:"md",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Ve(d)})),disabledDays:{after:new Date(Ma(new Date,0))},locale:c,pickedDate:d,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{g(e),p((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:_a(new Date(e),Ue)});o&&o(t)})(e)},placeholder:"placeholder"}),errorMessage:u.age?"":s.age}))},yn=({isSide:a,locale:r,thrContent:o,isMobile:s,info:c,inputErrorMessage:m,onFormChange:d,onSubmit:g})=>{var u,p,h;const{t:v}=Ba(),{getHealthToolLink:E}=Ja(r),y=l((()=>E(Za.THR)),[E]),[b,f]=t(!1),[w,C]=t("low_intensity"),[k,N]=t("male"),[L,x]=t(60),[B,_]=t({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),M=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],D=[{value:"low_intensity",label:v("targetHeartRate.lowIntensity.title"),image:P.getAssetPath("/low.svg"),imageActive:P.getAssetPath("/low-active.svg"),content:v("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:v("targetHeartRate.moderateIntensity.title"),image:P.getAssetPath("/moderate.svg"),imageActive:P.getAssetPath("/moderate-active.svg"),content:v("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:v("targetHeartRate.aerobicZone.title"),image:P.getAssetPath("/aerobic.svg"),imageActive:P.getAssetPath("/aerobic-active.svg"),content:v("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:v("targetHeartRate.vigorousIntensity.title"),image:P.getAssetPath("/vigorous.svg"),imageActive:P.getAssetPath("/vigorous-active.svg"),content:v("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:v("targetHeartRate.maximumIntensity.title"),image:P.getAssetPath("/maximum.svg"),imageActive:P.getAssetPath("/maximum-active.svg"),content:v("targetHeartRate.maximumIntensity.note")}],z=l((()=>[{value:"male",label:v("gender.male"),content:e.createElement(Va.GenderChooseBoy,null)},{value:"female",label:v("gender.female"),content:e.createElement(Va.GenderChooseGirl,null)}]),[]);return n((()=>{const e=((new Date).getTime()-new Date(null==c?void 0:c.age).getTime())/1e3;f(e>=567648e3);const t=M.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||M[0];_(t),x(60)}),[null==c?void 0:c.age]),e.createElement(tt,{"data-is-side":a},e.createElement(at,{isSide:a,bannerUrl:P.getAssetPath("embedToolBannerBlue.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:null==o?void 0:o.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}}),heading:v("targetHearRate.heading"),medicalReview:(null===(u=null==o?void 0:o.reviewedBy)||void 0===u?void 0:u.display_name)?e.createElement(i,{size:"n1",color:O.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:v("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${tl(null==o?void 0:o.reviewedBy)}"\n >\n ${null===(p=null==o?void 0:o.reviewedBy)||void 0===p?void 0:p.display_name}\n </a>`,date:null==o?void 0:o.reviewedDate})}}),e.createElement("span",null)):void 0,isMobile:s}),e.createElement($a,null,e.createElement(lt,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":a},e.createElement(bt,{"data-is-side":a},e.createElement(ft,null,e.createElement(wt,{size:"md",name:"gender",label:v("bmi.selectGender"),CustomInput:e.createElement(Wa,{options:z,value:k,onChange:e=>{N(e),x(60)},className:"bmi--input-radio_gender"}),className:"bmi--input bmi--input-gender"}))),e.createElement(bt,null,e.createElement(En,{info:c,locale:r,errorMessage:m,onChange:d})),e.createElement("div",{className:"slider-heart-rate"},e.createElement(el,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:O.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},v("targetHeartRate.heartRateInput")),e.createElement("div",{className:"slider-outer-wrapper"},e.createElement(Ka,{containerStyle:{flex:1},min:"male"===k?B.rangeMale:B.rangeFemale,max:200,step:1,value:L,withControl:!0,onChange:x}))),b&&e.createElement(ft,null,e.createElement(Ct,null,e.createElement(el,{size:"label2",style:{display:"inline-block",fontWeight:"bold",color:O.colors.gray600,marginBottom:"9px"},htmlFor:"gender-selector"},v("targetHeartRate.selectActive")),e.createElement("div",{className:"card"},e.createElement(vn,{options:D.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:w,onChange:e=>{C(e)},className:"gender-selector"})),w&&e.createElement("div",{className:"note"},e.createElement("img",{style:{height:"16px",width:"16px"},src:P.getAssetPath("/infoIcon.svg"),alt:""}),e.createElement(i,{size:"n1",color:"#595959"},null===(h=D[D.findIndex((e=>e.value==w))||0])||void 0===h?void 0:h.content)),!w&&e.createElement("span",{style:{color:"#e64728"}},m.intensity)))),e.createElement("div",{style:{display:"flex"}},e.createElement(kt,{size:"lg",onClick:()=>{g(k,w,[L])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${wa[r]}/${y}`},v("bmi.submit")))))},bn=({info:a,className:r,style:o,onChange:s,errorMessage:c={},locale:m,onClick:d,isSide:g})=>{const{t:u}=Ba(),[p,h]=t({age:!1,height:!1,weight:!1}),{getHealthToolLink:v}=Ja(m),E=l((()=>v(Za.OVULATION)),[v]),[y,b]=t("male"),f=l((()=>[{value:"male",label:u("gender.male"),content:e.createElement(Va.GenderChooseBoy,null)},{value:"female",label:u("gender.female"),content:e.createElement(Va.GenderChooseGirl,null)}]),[]),w=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},C=e=>{var t,l;l=e=>{h((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:e});s&&s(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||l(t)};return n((()=>{s&&s(Object.assign(Object.assign({},a),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),n((()=>{h({age:!1,height:!1,weight:!1})}),[c]),e.createElement(Nt,{style:o,className:r},e.createElement(Lt,{"data-is-side":g},e.createElement(xt,{size:"md",name:"gender",label:u("bmi.selectGender"),CustomInput:e.createElement(Wa,{options:f,value:y,onChange:e=>b(e),className:"bmi--input-radio_gender "+(g?"bmi-side-embed":"")}),className:"bmi--input bmi--input-gender"})),e.createElement(Bt,{"data-is-side":g},e.createElement(Lt,null,e.createElement(Qa.Number,{label:e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray600},u("bmi.ageInput")," ",e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray300,as:"span"},u("bmi.ageInput.desc"))),placeholder:u("healthtool.placeholder.age"),value:Number(a.age),onChange:e=>C(String(e)),error:p.age?"":c.age,min:0})),e.createElement(Lt,null,e.createElement(Qa.Number,{label:e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray600},u("bmi.heightInput")," ",e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray300,as:"span"},u("bmi.heightInput.desc"))),placeholder:u("pwg.placeholder.height"),value:Number(a.height),onChange:e=>{return t=String(e),void w(t,(e=>{h((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},a),{height:e});s&&s(t)}));var t},error:p.height?"":c.height,min:0})),e.createElement(Lt,null,e.createElement(Qa.Number,{label:e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray600},u("bmi.weightInput")," ",e.createElement(i,{size:"label2",type:"bold",color:O.colors.gray300,as:"span"},u("bmi.weightInput.desc"))),placeholder:u("pwg.placeholder.weight"),value:Number(a.weight),onChange:e=>{return t=String(e),h((e=>Object.assign(Object.assign({},e),{weight:!0}))),void w(t,(e=>{const t=Object.assign(Object.assign({},a),{weight:e});s&&s(t)}));var t},error:p.weight?"":c.weight,min:0,precision:1}))),e.createElement("div",{style:{display:"flex"}},e.createElement(_t,{size:"lg",isBlock:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${wa[m]}/${E}`,onClick:()=>{d(y)}},u("bmi.submit"))))},fn=({isSide:t,locale:a,bmrContent:l,isMobile:n,info:r,inputErrorMessage:o,onFormChange:s,onSubmit:c})=>{var m,d,g;const{t:u}=Ba();return e.createElement(tt,{"data-is-side":t},e.createElement(at,{isSide:t,bannerUrl:P.getAssetPath("embedToolBannerBlue.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}}),heading:u("bmr.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?e.createElement(i,{size:"n1",color:O.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:u("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(d=null==l?void 0:l.reviewBy)||void 0===d?void 0:d.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.date})}}),e.createElement("span",null)):void 0,isMobile:n}),e.createElement($a,null,e.createElement(lt,{onSubmit:e=>e.preventDefault(),"data-is-side":t},e.createElement(Mt,null,e.createElement(bn,{info:r,locale:a,errorMessage:o,onChange:s,onClick:c,isSide:t})))))};var wn="eM8ChWU",Cn="KAx1aqi",kn="QcFfKPB",Nn="brbyNAY",Ln="W65hTnn";const xn=({src:t,title:a,backgroundSrc:l,className:n,reviewedSection:r,isSide:o})=>e.createElement("div",{className:`${wn} ${n||""}`},e.createElement("div",{className:Cn,style:{backgroundImage:`url("${l}")`}},e.createElement("div",{className:kn,"data-is-side":o},e.createElement("div",{className:Nn,"data-is-side":o},e.createElement(F,{tag:"h4",color:"white"},a),r),e.createElement("div",{className:Ln},e.createElement("img",{src:t||"",style:{objectFit:"contain"},alt:a})))));var Bn="zvE9IoJ",_n="njDC-ia",Mn="ESkUhe9",Dn="wZLIQYa";const zn=({backgroundDesktopSrc:t,backgroundMobileSrc:a,title:l,className:n,isSide:r,ovulationContent:o})=>{var s,c,m;const{t:d}=Ba(),g=tl(null==o?void 0:o.reviewed_by);return e.createElement("div",{className:`${Bn} ${n}`,"data-is-side":r},e.createElement("div",{className:_n,style:{backgroundImage:`url('${a||t}')`}},e.createElement("div",{className:Dn},e.createElement(F,{tag:"h5",color:"white"},l),(null===(s=null==o?void 0:o.reviewed_by)||void 0===s?void 0:s.display_name)?e.createElement(i,{size:"n1",color:"white",style:{marginTop:"0.3rem"}},e.createElement("span",{dangerouslySetInnerHTML:{__html:d("articlePage.articleReviewerBy",{name:`<a\n style="color: white"\n href="${g}"\n >\n ${o.reviewed_by.display_name}\n </a>`})}}),e.createElement("span",null,d("tools.heading.on")),e.createElement("span",null,null==o?void 0:o.reviewed_date)):null),e.createElement("div",{className:Mn,"data-is-side":r},e.createElement("img",{src:(null==o?void 0:o.featured_image)||"",style:{width:"100%",objectFit:"contain",marginTop:"20px"},alt:l}))),e.createElement(xn,{className:"desktop-only",src:(null==o?void 0:o.featured_image)||"",backgroundSrc:t||a||"",title:l,reviewedSection:(null===(c=null==o?void 0:o.reviewed_by)||void 0===c?void 0:c.display_name)&&""!==(null===(m=null==o?void 0:o.reviewed_by)||void 0===m?void 0:m.display_name)&&e.createElement(i,{size:"n1",color:O.colors.white,style:{marginTop:12}},e.createElement("span",{dangerouslySetInnerHTML:{__html:d("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${g}"\n >\n ${o.reviewed_by.display_name}\n </a>`,date:null==o?void 0:o.reviewed_date})}}),e.createElement("span",null)),isSide:r}))},Sn=({onSubmitOvulation:t,locale:a,ovulationPageInfo:l,ovulationContent:n,expertUrl:r,isSide:o=!1,siteType:s,isMobile:c})=>{var m;const{t:d}=Ba(),g=al(l||null);return e.createElement(tt,{"data-is-side":o,"data-site":s},"marryBaby"!==s?e.createElement(zn,{backgroundDesktopSrc:P.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:P.getAssetPath("embedToolBannerPink.svg"),title:d("healthTools.ovulationCalculator"),reviewedBy:g.reviewedBy,reviewedDate:g.reviewedDate,ovulationContent:n,isSide:o}):e.createElement(at,{isSide:o,bannerUrl:P.getAssetPath("embedToolBannerPink.svg"),siteType:s,bannerColor:"marryBaby"===s&&O.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:"marryBaby"!==s?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null}),heading:d("healthTools.ovulationCalculator"),medicalReview:(null===(m=null==l?void 0:l.reviewed_by)||void 0===m?void 0:m.display_name)?e.createElement(i,{size:"label2",color:O.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:d("toolPage.toolReviewer",{expert_name:null==l?void 0:l.reviewed_by.display_name,date:null==l?void 0:l.reviewed_date})}}),e.createElement("span",null)):void 0,isMobile:c}),e.createElement(lt,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":o},e.createElement(Dt,{siteType:s,locale:a,onSubmitOvulation:t,isSide:o})))},jn=({siteType:l,info:r,onChange:o,errorMessage:i={}})=>{const{t:s}=Ba(),[c,m]=t({weightBefore:!1,height:!1,weight:!1}),[d,g]=t(0),u=a(null);n((()=>{var e;g(null===(e=u.current)||void 0===e?void 0:e.clientHeight)}));const p=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},h=e=>{p(e,(e=>{m((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},r),{weightBefore:e});o&&o(t)}))},v=e=>{p(e,(e=>{m((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},r),{height:e});o&&o(t)}))},E=e=>{p(e,(e=>{m((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},r),{weight:e});o&&o(t)}))};return n((()=>{o&&o(Object.assign({},r))}),[]),n((()=>{m({weightBefore:!1,height:!1,weight:!1})}),[i]),"marryBaby"===l?e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg input-section"},e.createElement($e,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==r?void 0:r.height,CustomInput:e.createElement(Ha,{className:(null==c?void 0:c.height)?"":"error-input",name:"pwg-height",size:"md",placeholder:"Nhập thông tin",value:null==r?void 0:r.height,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==c?void 0:c.height)?"":null==i?void 0:i.height,showErrorMessage:!1,onChange:v})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement($e,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==r?void 0:r.weightBefore,CustomInput:e.createElement(Ha,{className:(null==c?void 0:c.weightBefore)?"":"error-input",name:"pwg-weightBefore",size:"md",placeholder:"Nhập thông tin",value:null==r?void 0:r.weightBefore,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==c?void 0:c.weightBefore)?"":null==i?void 0:i.height,showErrorMessage:!1,onChange:h})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement($e,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==r?void 0:r.weight,CustomInput:e.createElement(Ha,{className:(null==c?void 0:c.weight)?"":"error-input",name:"pwg-weight",size:"md",placeholder:"Nhập thông tin",value:null==r?void 0:r.weight,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==c?void 0:c.weight)?"":null==i?void 0:i.weight,showErrorMessage:!1,onChange:E})}))):e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(S,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:e.createElement("span",{style:{color:O.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:`${O.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:c.height?"":null==i?void 0:i.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==r?void 0:r.height,onChange:v})),e.createElement("div",{className:"input-form-pwg"},e.createElement(S,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:O.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},ref:u,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:`${O.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weightBefore?"":null==i?void 0:i.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:h,value:null==r?void 0:r.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(S,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:O.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px",minHeight:d},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:`${O.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weight?"":null==i?void 0:i.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==r?void 0:r.weight,onChange:E})))},An=({locale:a,onClick:n,inputErrorMessage:r,pwgContent:o,onFormChange:s,info:c,isMobile:m,isSide:d=!1,siteType:g})=>{var u,p;const{t:h}=Ba(),[v,E]=t("notwins"),[y,b]=t({label:"1",value:1}),f=l((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:w}=Ja(a),C=l((()=>w(Za.PWG)),[w]),k=(null===(u=null==o?void 0:o.reviewedBy)||void 0===u?void 0:u.display_name)?e.createElement(i,{size:"n1",color:O.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:h("toolPage.toolReviewer",{expert_name:null===(p=null==o?void 0:o.reviewedBy)||void 0===p?void 0:p.display_name,date:null==o?void 0:o.reviewedDate})}}),e.createElement("span",null)):void 0;return e.createElement(tt,{"data-is-side":d,"data-site":g},e.createElement(at,{siteType:g,bannerUrl:P.getAssetPath("embedToolBannerPink.svg"),bannerColor:"marryBaby"===g&&O.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{alt:"health-tool-icon",src:null==o?void 0:o.featuredImage,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}}),heading:h("pregnancyWeightGain.heading"),medicalReview:k,isMobile:m,isSide:d}),e.createElement($a,null,e.createElement(lt,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":d},"marryBaby"!==g&&e.createElement(zt,{className:"hide-asking-mobile","data-is-side":d},e.createElement(el,{size:"label2",style:{display:"block",fontWeight:"bold",color:O.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},h("pregnancyWeightGain.havingTwins")),e.createElement(St,{options:[{value:"twins",label:h("switchBtn.yes")},{value:"notwins",label:h("switchBtn.no")}],value:v,onChange:e=>E(e),className:"gender-selector",id:"twins-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Xe,null,e.createElement(jt,{className:"input-section input-form-pwg","data-is-side":d},"marryBaby"===g?e.createElement(Je,{groupedWithLabel:h("pregnancyWeightGain.weekInput"),options:f,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:y,onChange:e=>b({label:e.label,value:e.value})}):e.createElement(e.Fragment,null,e.createElement(el,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:O.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},h("pregnancyWeightGain.weekInput")),e.createElement(W,{options:f,placeholder:String(y.label),id:"weight-gain-dropdown",size:"md",value:y,onChange:e=>b({label:e.label,value:e.value})}))),e.createElement(jn,{siteType:g,info:c,errorMessage:r,onChange:s})),"marryBaby"!==g&&e.createElement(zt,{className:"hide-asking-desk","data-is-side":d},e.createElement(el,{size:"label2",style:{display:"block",fontWeight:"bold",color:O.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},h("pregnancyWeightGain.havingTwins")),e.createElement(St,{options:[{value:"twins",label:h("switchBtn.yes")},{value:"notwins",label:h("switchBtn.no")}],value:v,onChange:e=>E(e),className:"gender-selector",id:"twins-check-mobile",type:"circle",direction:"horizontal",size:"small",group:"group1"})),"marryBaby"===g&&e.createElement(xl,{name:"twins",label:h("pregnancyWeightGain.havingTwins"),checked:"twins"===v,siteType:"marryBaby",onChange:()=>{E("twins"===v?"notwins":"twins")},value:"twins"}),e.createElement(At,{"data-is-side":d,"data-site":g},e.createElement(I,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${wa["marryBaby"===g?"vi-VN_MB":a]}/${C}`,className:"due-date-calculate-button",size:"lg",color:"marryBaby"===g?"secondary":"primary",onClick:()=>n(v,y.value),role:"button",theme:g},h("dueDatePage.lastPeriod.calculate"))))))},In=()=>"undefined"!=typeof window&&window.innerWidth<A.BREAK_POINT_MOBILE,Tn=()=>"undefined"!=typeof window&&window.innerWidth>=A.BREAK_POINT_MOBILE&&window.innerWidth<A.BREAK_POINT_PC,Pn=()=>{const[e,a]=t(In()),[l,r]=t(Tn());return n((()=>{const e=()=>{a(In()),r(Tn())};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),{isMobile:e,isLargeMobile:l}};const Fn={"en-PH":nl,"vi-VN":ol,"zh-TW":il,"id-ID":rl};function On(a){const{value:n={from:null,to:null}}=a,[r,o]=t(null),{isMobile:i}=Pn(),[s,c]=t((()=>n)),[m,d]=t((()=>{var e;return za(null!==(e=n.from)&&void 0!==e?e:new Date)})),g=l((()=>Sa(m,1)),[m]);const u=Object.assign(Object.assign({},a),{goToNextMonth:function(){d((e=>Sa(e,1)))},goToPreviousMonth:function(){d((e=>ja(e,1)))},range:s,setRange:c,hoverDay:r,setHoverDay:o});return e.createElement(e.Fragment,null,e.createElement(Hn,Object.assign({},u,{date:m})),!i&&e.createElement(It,null),!i&&e.createElement(Hn,Object.assign({},u,{date:g})))}function Hn({date:t,range:a,setRange:r,onChange:o,goToPreviousMonth:i,goToNextMonth:s,minDate:c,maxDate:m,close:d=(()=>{}),autoClose:g=!1,hoverDay:u,setHoverDay:p}){const{locale:h}=Ba(),v=l((()=>{var e;return null!==(e=Fn[h])&&void 0!==e?e:Fn["en-PH"]}),[h]),E=l((()=>_a(t,"MMMM",{locale:v})),[t,v]),y=l((()=>v?[1,2,3,4,5,6,0].map((e=>v.localize.day(e,{width:"narrow"}))):[]),[v]);function b(t,l){if(null===t)return e.createElement(Rt,{key:`idx-${l}`,"data-empty":"true"});const n=t.getDate(),o=Ia(t),i=!!a.from&&Ta(a.from,t),s=!!a.to&&Ta(a.to,t),h=i||s;let v=!1;null!==u&&a.from&&Da(a.from,u)&&!a.to?v=Pa(t,{start:a.from,end:u}):a.from&&a.to&&(v=Pa(t,{start:a.from,end:a.to}));let E=!1;return c&&m?E=!Pa(t,{start:c,end:m}):c?E=Da(t,c):m&&(E=Fa(t,m)),e.createElement(Rt,{key:n,"data-is-today":o,"data-is-past":!o&&Oa(t),"data-is-selected":h,"data-is-disabled":E,"data-in-range":v,"data-is-from":i,"data-is-to":s,onMouseEnter:()=>{p(t)},onMouseLeave:()=>p(null),onClick:()=>{E||r((e=>(g&&a.from&&!a.to&&d(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?Da(e,t.from)?Object.assign(Object.assign({},t),{from:e}):Object.assign(Object.assign({},t),{to:e}):t:Object.assign(Object.assign({},t),{from:e})}(t,e))))}},e.createElement(Gt,{onClick:()=>{}},e.createElement("p",null,n)))}return n((()=>{a.from&&a.to&&o(a)}),[a]),e.createElement(Tt,{className:"calendar-wrapper"},e.createElement(Pt,null,e.createElement(I,{onClick:i,size:"md",color:"ghost",icon:e.createElement("img",{src:P.getAssetPath("calendarArrowLeft.svg")})}),e.createElement("div",{className:"calendar-month"},E,e.createElement("strong",null,_a(t,"yyyy"))),e.createElement(I,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:P.getAssetPath("calendarArrowRight.svg")})})),e.createElement(Ft,null,e.createElement("div",null,e.createElement(Ot,null,y.map(((t,a)=>e.createElement(Ht,{key:`${t}-${a}`},t))))),e.createElement("div",null,function(){const l=t.getFullYear(),n=t.getMonth(),r=Aa(t),o=[];for(let e=1;e<=r;e++)o.push(new Date(l,n,e));const i=o[0]?o[0].getDay():0;if(1!==i){const e=0===i?6:i-1;for(let t=0;t<e;t++)o.unshift(null)}return e.createElement($t,{key:`month-${n}`,"data-month-index":n,"data-has-range":Boolean(a.from&&a.to)},e.createElement(Vt,null,e.createElement(Wt,null,o.map(b))))}())))}function $n({inputSize:n="md",name:r="date-range-picker",value:o,minDate:i,maxDate:s,onChange:c,className:m,autoClose:d=!1}){o||(o={from:null,to:null});const[g,u]=t(!1);function p(){u(!1)}const h=a(null);function v(e){c&&c(e)}function E(e){return _a(e,"dd/MM/yyyy")}ll(h,(()=>{p()}));const y=l((()=>o.from&&o.to?Ta(o.from,o.to)?E(o.from):`${E(o.from)} - ${E(o.to)}`:""),[o.from,o.to]);return e.createElement(Ut,{className:[m,g&&"focused"].filter(Boolean).join(" "),ref:h},e.createElement("label",{htmlFor:r},e.createElement(S,{size:n,value:y,name:r,actionIcon:e.createElement("img",{src:P.getAssetPath("calendar.svg")}),onFocus:()=>u(!0)})),g?e.createElement(Zt,{onMouseDown:e=>{e.stopPropagation()}},e.createElement(On,{value:o,onChange:v,minDate:i,maxDate:s,close:p,autoClose:d})):null)}const Vn=()=>e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),Wn=({url:t,onCopied:a,locale:n,siteType:r})=>{const{t:o}=Ba(),s=sl(t||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),c=l((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(qt,null,e.createElement(i,{size:"p3",color:O.colors.gray800},o("shareContainer.title")),e.createElement("div",{className:"icon-group"},s.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${t.name}`,"data-event-label":c},t.icon))),e.createElement(I,{theme:r,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(Vn,null),onClick:()=>Ea(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(t),null==a||a()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":c})))},Rn=()=>e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"})),Gn=t=>{var{open:a,title:l,onClose:r,onCopied:s,onShared:c,url:m,locale:d}=t,g=va(t,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:u}=Ba(),p=o((()=>Ea(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(m),null==s||s()}))),[m,s]),h=sl(m||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(d)));return n((()=>{a&&navigator.share&&navigator.share({title:null!=l?l:"Read This Post",url:m}).then((()=>{null==c||c()})).catch((()=>{null==r||r()}))}),[m,l,c,a]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Kt,Object.assign({title:u("share.title"),onClose:r,open:a,placement:"bottom"},g),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(i,{type:"semiBold",size:"s3",color:O.colors.gray600},u("share.title")),e.createElement("div",{className:"icon-group"},h.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer"},t.icon))))),e.createElement("div",{className:"link-container"},e.createElement(i,{type:"semiBold",size:"s3",color:O.colors.gray600},u("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Ha,{name:"link",size:"md",value:m,isDisabled:!0}),e.createElement(I,{size:"md",type:"button",color:"tertiary",icon:e.createElement(Rn,null),onClick:p})))))},Un=({vaccineRecord:t,isInTimeline:a,isCurrent:l,onMarkAsInjected:n,onDelInjected:r,className:o,siteType:s})=>{const{t:c}=Ba(),{vaccineId:m,id:d,status:g,optional:u,vaccineName:p,doseNumber:h,totalDoses:v,givenOn:E}=t;return e.createElement(Yt,{className:o,"data-theme":s,"data-status":l?"current":g,"data-is-in-timeline":a},e.createElement(Xt,null,l?e.createElement(Va.Current,null):"vaccinated"===g?e.createElement(Va.Vaccinated,null):"passed"===g?e.createElement(Va.Missed,null):e.createElement(Va.Upcoming,null),a?e.createElement("div",{className:"toggle",onChange:()=>{"vaccinated"==g?r(t):n(t)}},"vaccinated"===g?e.createElement(Va.ToggleOn,null):e.createElement(Va.ToggleOff,null),e.createElement(i,{size:"n1",color:O.colors.gray800},c("vaccinated"===g?"babyVaccine.vaccineCard.injected":"babyVaccine.vaccineCard.markAsInjected"))):e.createElement("div",{className:"in-detail"},c(l?"babyVaccine.status.current":"vaccinated"===g?"babyVaccine.status.vaccinated":"passed"===g?"babyVaccine.status.missed":"babyVaccine.status.upcoming"))),e.createElement(Qt,null,e.createElement(i,{size:"s3",color:O.colors.gray800,type:"semiBold"},p),e.createElement(Jt,null,e.createElement(i,{size:"n1",color:u?O.colors.gray800:O.colors.red800},c(u?"babyVaccine.vaccineInfo.optional":"babyVaccine.vaccineInfo.mandatory")),e.createElement("span",{className:"dot"}),e.createElement(i,{size:"n1",color:O.colors.gray600},c("babyVaccine.vaccineInfo.dose",{ordinal:h,total:v})),e.createElement("span",{className:"dot"}),e.createElement(i,{size:"n1",color:O.colors.gray800},c("vaccinated"===g?"babyVaccine.vaccineInfo.injectedDate":"babyVaccine.vaccineInfo.suggested",{date:E})))))},Zn=({vaccineRecords:t,isCurrent:a,onMarkAsInjected:l,onDelInjected:n,countPass:r,countNext:o,className:s,siteType:c})=>{const{t:m}=Ba();return e.createElement(ea,{className:s,"data-theme":c},e.createElement(ta,null,e.createElement(aa,null,e.createElement(i,{size:"s4",color:a?O.colors.primaryBase:O.colors.gray800,type:"semiBold",className:"title"},t.name||t.shortName),e.createElement(la,{"data-isCurrent":a},e.createElement("span",{className:"dot"}),e.createElement("div",{className:"line"}))),e.createElement(na,null,r>0&&e.createElement(i,{size:"n1",color:O.colors.gray600,wordWrap:"none"},m("babyVaccine.timeline.totalPast",{number:r})),r>0&&o>0&&e.createElement("span",{className:"dot"}),o>0&&e.createElement(i,{size:"n1",color:O.colors.gray600,wordWrap:"none"},m("babyVaccine.timeline.totalNext",{number:o})))),e.createElement(ra,null,(null==t?void 0:t.records)&&t.records.map(((t,r)=>e.createElement(Un,{key:`${r}${t.vaccineId}`,vaccineRecord:t,isInTimeline:!0,isCurrent:a&&0===r,onMarkAsInjected:()=>l(t),onDelInjected:()=>n(t)})))))},qn=({content:t,url:a,icon:l,gender:n,className:r,siteType:o})=>{const{t:s}=Ba();return e.createElement(oa,{className:r,"data-theme":o,"data-gender":n},e.createElement("div",{className:"content"},e.createElement(i,{size:"p3",color:O.colors.gray800},t),a&&e.createElement("a",{className:"read-more",href:a,target:"_blank",rel:"noreferrer"},e.createElement("div",null,e.createElement(i,{size:"s4",color:O.colors.primaryBase,type:"semiBold"},s("articlePage.readMore"))),e.createElement(Va.ArrowRight,{size:20,color:O.colors.primaryBase}))),e.createElement("img",{alt:"health-tool-icon",src:l}))},Kn=({babyVaccinationRecord:a,onClose:l,vaccineDetail:r,isDetail:o,open:s,siteType:c,onMarkAsInjected:m,onDelInjected:d})=>{const{t:g}=Ba(),[u,p]=t(0),[h,v]=t(!1),E=[{name:g("babyVaccine.popup.tab.schedule"),dataEventAction:"Click"},{name:g("babyVaccine.popup.tab.detail"),dataEventAction:"Click"},{name:g("babyVaccine.popup.tab.benefits"),dataEventAction:"Click"},{name:g("babyVaccine.popup.tab.contraindication"),dataEventAction:"Click"}];return n((()=>{o&&p(1)}),[o]),e.createElement(ia,{type:"profile",isOpen:s,onClose:l,siteType:c},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},e.createElement(i,{size:"s2",type:"semiBold"},g("babyVaccine.popup.title")),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:l},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),e.createElement("div",{className:"profile-container"},e.createElement(ml,{style:{fontSize:"14px",lineHeight:"22px",width:"100%",border:"none"},onChange:e=>{p(e)},tabContent:E,initialTab:u}),e.createElement(sa,null,0===u&&e.createElement(e.Fragment,null,e.createElement(Un,{vaccineRecord:a,onMarkAsInjected:()=>m(a),onDelInjected:()=>d(a),isInTimeline:!1}),e.createElement("div",{className:"toggle",onChange:()=>{"vaccinated"==a.status?d(a):m(a)}},"vaccinated"===a.status?e.createElement(Va.ToggleOn,null):e.createElement(Va.ToggleOff,null),e.createElement(i,{size:"n1",color:O.colors.gray800},"vaccinated"===a.status?g("babyVaccine.vaccineCard.injected"):g("babyVaccine.vaccineCard.markAsInjected"))),e.createElement(cl,{style:{width:"100%"},label:e.createElement(i,{as:"label",size:"s5",type:"semiBold",color:O.colors.gray600},g("babyVaccine.popup.checkbox.suggestedDate")),onChange:()=>null,excludeDate:e=>fa(e).isAfter(fa())}),e.createElement(Ga,{label:e.createElement(i,{as:"label",size:"s5",type:"semiBold",color:O.colors.gray600},g("babyVaccine.popup.input.suggestedDate")),name:"check",checked:h,value:"check",onChange:()=>v(!h)})),1===u&&e.createElement(e.Fragment,null,e.createElement("span",{className:"description",dangerouslySetInnerHTML:{__html:r.detail}})),2===u&&e.createElement(e.Fragment,null," ",e.createElement("span",{className:"description",dangerouslySetInnerHTML:{__html:r.benefits}})),3===u&&e.createElement(e.Fragment,null,e.createElement("span",{className:"description",dangerouslySetInnerHTML:{__html:r.contraindications}})))),e.createElement(I,{style:{width:"100%",marginTop:12},theme:c,size:"lg",color:"primary"},g("babyVaccine.popup.button.submit")))},Yn=(t,a)=>e.createElement(ha,{"data-status":t,"data-id":a||"header"},a||""),Xn=({vaccineRecord:t,onMarkAsInjected:a,onDelInjected:l,isMobile:n,className:r,siteType:o})=>{const{t:s}=Ba();return e.createElement(ca,{className:r,"data-theme":o},e.createElement(ma,null,e.createElement(Va.Missed,{color:O.colors.gray600}),e.createElement(i,{size:"p3",color:O.colors.gray800},s("babyVaccine.immunization.warning"))),e.createElement(da,null,e.createElement(ga,{className:"header"},!n&&e.createElement(ua,{className:"header"},e.createElement(i,{size:"s5",color:O.colors.gray800,type:"semiBold"},s("babyVaccine.immunization.vaccineName"))),e.createElement(pa,{className:"header"},e.createElement("div",{className:"status"},Yn("passed"),e.createElement(i,{size:"p4",color:O.colors.gray800},s("babyVaccine.status.missed"))),e.createElement("div",{className:"status"},Yn("next"),e.createElement(i,{size:"p4",color:O.colors.gray800},s("babyVaccine.status.upcoming"))),e.createElement("div",{className:"status"},Yn("vaccinated"),e.createElement(i,{size:"p4",color:O.colors.gray800},s("babyVaccine.status.vaccinated"))))),t&&t.map(((t,r)=>e.createElement(ga,{key:`${r}${t.id}`},e.createElement(ua,null,e.createElement(i,{size:"n1",color:t.optional?O.colors.gray800:O.colors.red800},t.optional?s("babyVaccine.vaccineInfo.optional"):s("babyVaccine.vaccineInfo.mandatory")),e.createElement(i,{size:n?"s3":"s4",color:O.colors.gray800,type:"semiBold"},t.name||t.antigen)),e.createElement(pa,null,t.records&&t.records.map(((t,n)=>e.createElement("div",{key:n,onClick:()=>{"vaccinated"==t.status?l(t):a(t)}},Yn(t.status,n+1))))))))))};export{pl as A,hl as B,xl as C,mn as D,Gn as E,El as F,yl as G,Zn as H,Ul as I,qn as J,Kn as K,Xn as L,Sn as O,fl as P,Dl as R,wl as S,Cl as T,Nl as U,Un as V,vl as a,kl as b,Ll as c,zl as d,Fl as e,Wl as f,Rl as g,Gl as h,Zl as i,ql as j,Yl as k,Ql as l,Jl as m,en as n,tn as o,an as p,ln as q,nn as r,un as s,pn as t,hn as u,yn as v,fn as w,An as x,$n as y,Wn as z};