@hhgtech/hhg-components 1.28.21 → 1.28.23

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 (352) hide show
  1. package/build/ChevronDown-2d5d0e3b.js +1 -0
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
  6. package/build/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
  7. package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
  8. package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
  9. package/build/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
  10. package/build/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
  11. package/build/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
  12. package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
  13. package/build/components/navigationV2/index.d.ts +5 -0
  14. package/build/components/organisms/index.d.ts +1 -1
  15. package/build/components/organisms/navigationProfileButton/index.d.ts +2 -11
  16. package/build/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
  17. package/build/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
  18. package/build/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
  19. package/build/components/organisms/profileNavigation/icons/community.d.ts +2 -0
  20. package/build/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
  21. package/build/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
  22. package/build/components/organisms/profileNavigation/icons/help.d.ts +2 -0
  23. package/build/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
  24. package/build/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
  25. package/build/components/organisms/profileNavigation/icons/save.d.ts +2 -0
  26. package/build/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
  27. package/build/components/organisms/profileNavigation/icons/user.d.ts +2 -0
  28. package/build/components/organisms/profileNavigation/index.d.ts +36 -0
  29. package/build/components/organisms/profileNavigation/index.styled.d.ts +9 -0
  30. package/build/components/organisms/profileNavigation/rank.d.ts +7 -0
  31. package/build/components/organisms/profileNavigation/userInfo.d.ts +6 -0
  32. package/build/components.js +1 -1
  33. package/build/{constants-cae8dcfd.js → constants-8bcbbfa4.js} +1 -1
  34. package/build/{constants-0d879f21.js → constants-f4c0aa09.js} +1 -1
  35. package/build/constants.js +1 -1
  36. package/build/{core-42d5ed63.js → core-e13a9991.js} +1 -1
  37. package/build/ecom.js +1 -1
  38. package/build/esm/ChevronDown-85611002.js +1 -0
  39. package/build/esm/babyGrowth.js +2 -2
  40. package/build/esm/cache.js +1 -1
  41. package/build/esm/care.js +1 -1
  42. package/build/esm/components/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
  43. package/build/esm/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
  44. package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
  45. package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
  46. package/build/esm/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
  47. package/build/esm/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
  48. package/build/esm/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
  49. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
  50. package/build/esm/components/navigationV2/index.d.ts +5 -0
  51. package/build/esm/components/organisms/index.d.ts +1 -1
  52. package/build/esm/components/organisms/navigationProfileButton/index.d.ts +2 -11
  53. package/build/esm/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
  54. package/build/esm/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
  55. package/build/esm/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
  56. package/build/esm/components/organisms/profileNavigation/icons/community.d.ts +2 -0
  57. package/build/esm/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
  58. package/build/esm/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
  59. package/build/esm/components/organisms/profileNavigation/icons/help.d.ts +2 -0
  60. package/build/esm/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
  61. package/build/esm/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
  62. package/build/esm/components/organisms/profileNavigation/icons/save.d.ts +2 -0
  63. package/build/esm/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
  64. package/build/esm/components/organisms/profileNavigation/icons/user.d.ts +2 -0
  65. package/build/esm/components/organisms/profileNavigation/index.d.ts +36 -0
  66. package/build/esm/components/organisms/profileNavigation/index.styled.d.ts +9 -0
  67. package/build/esm/components/organisms/profileNavigation/rank.d.ts +7 -0
  68. package/build/esm/components/organisms/profileNavigation/userInfo.d.ts +6 -0
  69. package/build/esm/components.js +1 -1
  70. package/build/esm/{constants-5e4b6aaa.js → constants-0187e9c1.js} +1 -1
  71. package/build/esm/{constants-b5814512.js → constants-c312beee.js} +2 -2
  72. package/build/esm/constants.js +1 -1
  73. package/build/esm/core-2f7d6a78.js +1 -0
  74. package/build/esm/ecom.js +1 -1
  75. package/build/esm/footer.js +1 -1
  76. package/build/esm/gAssets.js +1 -1
  77. package/build/esm/getDynamicHealthTool-9c7dc42f.js +1 -0
  78. package/build/esm/{getSocialList-593d72cf.js → getSocialList-757a53c6.js} +1 -1
  79. package/build/esm/hooks.js +1 -1
  80. package/build/esm/i18n/translationKeys.d.ts +1 -1
  81. package/build/esm/i18n-values/en-PH.js +1 -1
  82. package/build/esm/i18n-values/hi-IN.js +1 -1
  83. package/build/esm/i18n-values/id-ID.js +1 -1
  84. package/build/esm/i18n-values/km-KH.js +1 -1
  85. package/build/esm/i18n-values/ms-MY.js +1 -1
  86. package/build/esm/i18n-values/my-MM.js +1 -1
  87. package/build/esm/i18n-values/th-TH.js +1 -1
  88. package/build/esm/i18n-values/tl-PH.js +1 -1
  89. package/build/esm/i18n-values/vi-VN.js +1 -1
  90. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  91. package/build/esm/i18n-values/zh-TW.js +1 -1
  92. package/build/esm/i18n.js +1 -1
  93. package/build/esm/i18nV2.js +1 -1
  94. package/build/esm/{index-3fd6d11d.js → index-034573a6.js} +1 -1
  95. package/build/esm/index-15c600d6.js +3533 -0
  96. package/build/esm/{index-27f79b14.js → index-29bf362b.js} +1 -1
  97. package/build/esm/{index-727605cf.js → index-324430b9.js} +1 -1
  98. package/build/esm/{index-9bb14d7f.js → index-3bc70679.js} +1 -1
  99. package/build/esm/{index-603aec16.js → index-425a92c5.js} +1 -1
  100. package/build/esm/{index-bf7e8cb2.js → index-5a1f52da.js} +1 -1
  101. package/build/esm/{index-e5dce728.js → index-645ef204.js} +6 -6
  102. package/build/esm/{index-f2bbc22b.js → index-6a2a12a1.js} +1 -1
  103. package/build/esm/{index-bfcf3fb0.js → index-77ec342a.js} +1 -1
  104. package/build/esm/{index-fb027c2b.js → index-7fbbc93e.js} +1 -1
  105. package/build/esm/index-84edbddf.js +1755 -0
  106. package/build/esm/{index-0bc7892c.js → index-8b57ae3b.js} +1 -1
  107. package/build/esm/{index-9cdff468.js → index-9a575100.js} +2 -2
  108. package/build/esm/{index-620551b5.js → index-b902806c.js} +1 -1
  109. package/build/esm/{index-f0b1e2fe.js → index-b9920630.js} +1 -1
  110. package/build/esm/index-db3811a7.js +1 -0
  111. package/build/esm/{index-43c43315.js → index-e12c492a.js} +1 -1
  112. package/build/esm/index-fe3254e0.js +1 -0
  113. package/build/esm/index.css +1 -1
  114. package/build/esm/index.js +1 -1
  115. package/build/esm/{index.styled-02ca5623.js → index.styled-6f781392.js} +1 -1
  116. package/build/esm/{index.styled-39bbc781.js → index.styled-7aa83a38.js} +1 -1
  117. package/build/esm/{index.styles-8e66aa69.js → index.styles-1512f2b5.js} +2 -2
  118. package/build/esm/lead.js +1 -1
  119. package/build/esm/mantine.js +1 -1
  120. package/build/esm/misc.js +1 -1
  121. package/build/esm/navigation.js +1 -1
  122. package/build/esm/onboardingV2.js +1 -1
  123. package/build/esm/pwg.js +1 -1
  124. package/build/esm/{routing-cf2d5f19.js → routing-6b724e34.js} +1 -1
  125. package/build/esm/together.js +1 -1
  126. package/build/esm/{types-a4c1b4b0.js → types-2cf3ca1c.js} +1 -1
  127. package/build/esm/types-c4319967.js +788 -0
  128. package/build/esm/types.js +1 -1
  129. package/build/esm/{useCategory-e1c4dd95.js → useCategory-efa124e8.js} +1 -1
  130. package/build/esm/useHealthToolCache-de46a889.js +1 -0
  131. package/build/esm/useRafState-2a610da2.js +1 -0
  132. package/build/esm/{useTranslations-0f3e8009.js → useTranslations-dd0a13ad.js} +1 -1
  133. package/build/esm/{utils-5f9f0861.js → utils-8ef9fdb1.js} +1 -1
  134. package/build/esm/{utils-c9e60f19.js → utils-c9b03900.js} +1 -1
  135. package/build/esm/vaccination.js +1 -1
  136. package/build/footer.js +1 -1
  137. package/build/gAssets.js +1 -1
  138. package/build/getDynamicHealthTool-8b81f63c.js +1 -0
  139. package/build/{getSocialList-ada93645.js → getSocialList-e857f598.js} +1 -1
  140. package/build/hooks.js +1 -1
  141. package/build/i18n/translationKeys.d.ts +1 -1
  142. package/build/i18n-values/en-PH.js +1 -1
  143. package/build/i18n-values/hi-IN.js +1 -1
  144. package/build/i18n-values/id-ID.js +1 -1
  145. package/build/i18n-values/km-KH.js +1 -1
  146. package/build/i18n-values/ms-MY.js +1 -1
  147. package/build/i18n-values/my-MM.js +1 -1
  148. package/build/i18n-values/th-TH.js +1 -1
  149. package/build/i18n-values/tl-PH.js +1 -1
  150. package/build/i18n-values/vi-VN.js +1 -1
  151. package/build/i18n-values/vi-VN_MB.js +1 -1
  152. package/build/i18n-values/zh-TW.js +1 -1
  153. package/build/i18n.js +1 -1
  154. package/build/i18nV2.js +1 -1
  155. package/build/index-02d5c385.js +1 -0
  156. package/build/{index-75705406.js → index-2867dcac.js} +1 -1
  157. package/build/{index-b6de35aa.js → index-2d3213a5.js} +1 -1
  158. package/build/{index-cef0a00f.js → index-2e9c0de0.js} +1 -1
  159. package/build/{index-853b0b56.js → index-31783012.js} +1 -1
  160. package/build/{index-4a6fc7db.js → index-433f3c65.js} +1 -1
  161. package/build/{index-c29cd0ee.js → index-4647ac38.js} +1 -1
  162. package/build/{index-106a0aa4.js → index-472cd02e.js} +1 -1
  163. package/build/{index-22536346.js → index-49ca569a.js} +1 -1
  164. package/build/index-4e95c4ce.js +1 -0
  165. package/build/{index-1df24374.js → index-5d2cb060.js} +1 -1
  166. package/build/{index-71c2b110.js → index-63670e0c.js} +1 -1
  167. package/build/index-66def10e.js +1755 -0
  168. package/build/index-78b4c580.js +3533 -0
  169. package/build/{index-1fbc51d0.js → index-80ed081f.js} +1 -1
  170. package/build/{index-29d8f3e7.js → index-87067120.js} +1 -1
  171. package/build/index-a0d69a3e.js +1 -0
  172. package/build/{index-9e94fdd7.js → index-da51ce3f.js} +1 -1
  173. package/build/{index-8844b145.js → index-ff10154c.js} +1 -1
  174. package/build/index.css +1 -1
  175. package/build/index.js +1 -1
  176. package/build/{index.styled-0e38b245.js → index.styled-8b68590e.js} +1 -1
  177. package/build/{index.styled-24033e81.js → index.styled-f58521f6.js} +1 -1
  178. package/build/{index.styles-ad7903c3.js → index.styles-2679f17e.js} +1 -1
  179. package/build/lead.js +1 -1
  180. package/build/mantine.js +1 -1
  181. package/build/misc.js +1 -1
  182. package/build/navigation.js +1 -1
  183. package/build/onboardingV2.js +1 -1
  184. package/build/pwg.js +2 -2
  185. package/build/{routing-ec743546.js → routing-d4f8bab4.js} +1 -1
  186. package/build/together.js +1 -1
  187. package/build/{types-04be3103.js → types-79e9ebf6.js} +1 -1
  188. package/build/{types-6f7fce81.js → types-f02ad287.js} +68 -68
  189. package/build/types.js +1 -1
  190. package/build/{useCategory-5cbd3135.js → useCategory-de21ce75.js} +1 -1
  191. package/build/useHealthToolCache-1ec3b85b.js +1 -0
  192. package/build/{useRafState-68615887.js → useRafState-de88a13b.js} +1 -1
  193. package/build/{useTranslations-fe507352.js → useTranslations-9940a064.js} +1 -1
  194. package/build/utils-754d3326.js +1 -0
  195. package/build/{utils-381adc93.js → utils-7d5baedb.js} +1 -1
  196. package/build/vaccination.js +1 -1
  197. package/package.json +1 -1
  198. package/build/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
  199. package/build/esm/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
  200. package/build/esm/core-311d7242.js +0 -1
  201. package/build/esm/getDynamicHealthTool-6bf2e69d.js +0 -1
  202. package/build/esm/index-43ced8c4.js +0 -1
  203. package/build/esm/index-4bee5ccb.js +0 -1
  204. package/build/esm/index-8014dff1.js +0 -3533
  205. package/build/esm/index-ca4fdb46.js +0 -1753
  206. package/build/esm/types-c18963c9.js +0 -788
  207. package/build/esm/useHealthToolCache-4f4bec7e.js +0 -1
  208. package/build/esm/useRafState-d6f71b45.js +0 -1
  209. package/build/getDynamicHealthTool-114ddb03.js +0 -1
  210. package/build/index-38dce2a8.js +0 -3533
  211. package/build/index-562ffe13.js +0 -1
  212. package/build/index-6c94c4af.js +0 -1
  213. package/build/index-b1f953f6.js +0 -1
  214. package/build/index-eb28658b.js +0 -1753
  215. package/build/useHealthToolCache-ad666c43.js +0 -1
  216. package/build/utils-76a160ce.js +0 -1
  217. /package/build/{BMI_BOYS.percentile.monthly-943242cd.js → BMI_BOYS.percentile.monthly-a3fbcc30.js} +0 -0
  218. /package/build/{BMI_BOYS.percentile.weekly-348ba55a.js → BMI_BOYS.percentile.weekly-00a054a1.js} +0 -0
  219. /package/build/{BMI_BOYS.percentile.yearly-aaa04db9.js → BMI_BOYS.percentile.yearly-8bc1b868.js} +0 -0
  220. /package/build/{BMI_BOYS.zscore.monthly-f6d07e3b.js → BMI_BOYS.zscore.monthly-ccb51787.js} +0 -0
  221. /package/build/{BMI_BOYS.zscore.weekly-303d8a0e.js → BMI_BOYS.zscore.weekly-79db5fd6.js} +0 -0
  222. /package/build/{BMI_BOYS.zscore.yearly-024c0240.js → BMI_BOYS.zscore.yearly-3df0688a.js} +0 -0
  223. /package/build/{BMI_GIRLS.percentile.monthly-9e09fab0.js → BMI_GIRLS.percentile.monthly-99222d30.js} +0 -0
  224. /package/build/{BMI_GIRLS.percentile.weekly-4423fb86.js → BMI_GIRLS.percentile.weekly-ed7e3ccc.js} +0 -0
  225. /package/build/{BMI_GIRLS.percentile.yearly-d473af49.js → BMI_GIRLS.percentile.yearly-f1054cd5.js} +0 -0
  226. /package/build/{BMI_GIRLS.zscore.monthly-32c50ad7.js → BMI_GIRLS.zscore.monthly-3968e189.js} +0 -0
  227. /package/build/{BMI_GIRLS.zscore.weekly-cd164e3d.js → BMI_GIRLS.zscore.weekly-b61f50fa.js} +0 -0
  228. /package/build/{BMI_GIRLS.zscore.yearly-45434eb3.js → BMI_GIRLS.zscore.yearly-9616687d.js} +0 -0
  229. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-276b36ea.js → HEAD CIRCUM_BOYS.percentile.monthly-1427d1b8.js} +0 -0
  230. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9e1a3595.js → HEAD CIRCUM_BOYS.percentile.weekly-02cedcc7.js} +0 -0
  231. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2d20cea8.js → HEAD CIRCUM_BOYS.percentile.yearly-decf814c.js} +0 -0
  232. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-33424f91.js → HEAD CIRCUM_BOYS.zscore.monthly-76c954a8.js} +0 -0
  233. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-37907536.js → HEAD CIRCUM_BOYS.zscore.weekly-2b3850fa.js} +0 -0
  234. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-85993e9b.js → HEAD CIRCUM_BOYS.zscore.yearly-f2cc2c6f.js} +0 -0
  235. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d1927886.js → HEAD CIRCUM_GIRLS.percentile.monthly-92f3aa2d.js} +0 -0
  236. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-ee99ab29.js → HEAD CIRCUM_GIRLS.percentile.weekly-c65d2a6c.js} +0 -0
  237. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4a765f28.js → HEAD CIRCUM_GIRLS.percentile.yearly-6fa678da.js} +0 -0
  238. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-3b459cae.js → HEAD CIRCUM_GIRLS.zscore.monthly-07b25781.js} +0 -0
  239. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e6a11767.js → HEAD CIRCUM_GIRLS.zscore.weekly-9b73aff8.js} +0 -0
  240. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-01897cb8.js → HEAD CIRCUM_GIRLS.zscore.yearly-693f90cd.js} +0 -0
  241. /package/build/{HEIGHT_BOYS.percentile.monthly-d30bfe74.js → HEIGHT_BOYS.percentile.monthly-d2d7898b.js} +0 -0
  242. /package/build/{HEIGHT_BOYS.percentile.weekly-036c0cc0.js → HEIGHT_BOYS.percentile.weekly-4f6f9210.js} +0 -0
  243. /package/build/{HEIGHT_BOYS.percentile.yearly-033a22e5.js → HEIGHT_BOYS.percentile.yearly-e2ef743a.js} +0 -0
  244. /package/build/{HEIGHT_BOYS.zscore.monthly-8f647f0d.js → HEIGHT_BOYS.zscore.monthly-49f9202e.js} +0 -0
  245. /package/build/{HEIGHT_BOYS.zscore.weekly-29ffb508.js → HEIGHT_BOYS.zscore.weekly-aef7df8c.js} +0 -0
  246. /package/build/{HEIGHT_BOYS.zscore.yearly-d9229c2b.js → HEIGHT_BOYS.zscore.yearly-87581894.js} +0 -0
  247. /package/build/{HEIGHT_GIRLS.percentile.monthly-788585cb.js → HEIGHT_GIRLS.percentile.monthly-826096f2.js} +0 -0
  248. /package/build/{HEIGHT_GIRLS.percentile.weekly-e7e66eea.js → HEIGHT_GIRLS.percentile.weekly-3cf78569.js} +0 -0
  249. /package/build/{HEIGHT_GIRLS.percentile.yearly-dc20673b.js → HEIGHT_GIRLS.percentile.yearly-8364b303.js} +0 -0
  250. /package/build/{HEIGHT_GIRLS.zscore.monthly-e5830d69.js → HEIGHT_GIRLS.zscore.monthly-fec2ed12.js} +0 -0
  251. /package/build/{HEIGHT_GIRLS.zscore.weekly-ee4eb471.js → HEIGHT_GIRLS.zscore.weekly-39df1c0b.js} +0 -0
  252. /package/build/{HEIGHT_GIRLS.zscore.yearly-2fea76f2.js → HEIGHT_GIRLS.zscore.yearly-491bd234.js} +0 -0
  253. /package/build/{Onboarding-30aed79e.js → Onboarding-321532f3.js} +0 -0
  254. /package/build/{Visible-d5b3e721.js → Visible-7ee562f5.js} +0 -0
  255. /package/build/{WEIGHT_BOYS.percentile.monthly-3b373855.js → WEIGHT_BOYS.percentile.monthly-dcc2c0f1.js} +0 -0
  256. /package/build/{WEIGHT_BOYS.percentile.weekly-40d48d19.js → WEIGHT_BOYS.percentile.weekly-9ef5093e.js} +0 -0
  257. /package/build/{WEIGHT_BOYS.percentile.yearly-a8ed04d7.js → WEIGHT_BOYS.percentile.yearly-a6d79d20.js} +0 -0
  258. /package/build/{WEIGHT_BOYS.zscore.monthly-bb4515c9.js → WEIGHT_BOYS.zscore.monthly-b9332d62.js} +0 -0
  259. /package/build/{WEIGHT_BOYS.zscore.weekly-e246bbb1.js → WEIGHT_BOYS.zscore.weekly-bbb7ef64.js} +0 -0
  260. /package/build/{WEIGHT_BOYS.zscore.yearly-f8a1009f.js → WEIGHT_BOYS.zscore.yearly-38c85120.js} +0 -0
  261. /package/build/{WEIGHT_GIRLS.percentile.monthly-2a4758e2.js → WEIGHT_GIRLS.percentile.monthly-2e0d42c4.js} +0 -0
  262. /package/build/{WEIGHT_GIRLS.percentile.weekly-945cecc0.js → WEIGHT_GIRLS.percentile.weekly-37c0163c.js} +0 -0
  263. /package/build/{WEIGHT_GIRLS.percentile.yearly-f388f6eb.js → WEIGHT_GIRLS.percentile.yearly-48641f99.js} +0 -0
  264. /package/build/{WEIGHT_GIRLS.zscore.monthly-29e23b56.js → WEIGHT_GIRLS.zscore.monthly-f9900eb2.js} +0 -0
  265. /package/build/{WEIGHT_GIRLS.zscore.weekly-27bfa598.js → WEIGHT_GIRLS.zscore.weekly-2818a7cd.js} +0 -0
  266. /package/build/{WEIGHT_GIRLS.zscore.yearly-ec81d01f.js → WEIGHT_GIRLS.zscore.yearly-8854987c.js} +0 -0
  267. /package/build/{cookieHelper-c4eae752.js → cookieHelper-5a5ad9d8.js} +0 -0
  268. /package/build/{dataTransform-7a7971d2.js → dataTransform-d947b2cd.js} +0 -0
  269. /package/build/esm/{BMI_BOYS.percentile.monthly-6359f2aa.js → BMI_BOYS.percentile.monthly-42a71347.js} +0 -0
  270. /package/build/esm/{BMI_BOYS.percentile.weekly-fe261546.js → BMI_BOYS.percentile.weekly-c438d483.js} +0 -0
  271. /package/build/esm/{BMI_BOYS.percentile.yearly-dfb86f24.js → BMI_BOYS.percentile.yearly-a38980fd.js} +0 -0
  272. /package/build/esm/{BMI_BOYS.zscore.monthly-32b6f269.js → BMI_BOYS.zscore.monthly-57b12fbe.js} +0 -0
  273. /package/build/esm/{BMI_BOYS.zscore.weekly-01f330ec.js → BMI_BOYS.zscore.weekly-2dc304ae.js} +0 -0
  274. /package/build/esm/{BMI_BOYS.zscore.yearly-e5014506.js → BMI_BOYS.zscore.yearly-7e1a3797.js} +0 -0
  275. /package/build/esm/{BMI_GIRLS.percentile.monthly-fa928a13.js → BMI_GIRLS.percentile.monthly-88e2f842.js} +0 -0
  276. /package/build/esm/{BMI_GIRLS.percentile.weekly-ec63366d.js → BMI_GIRLS.percentile.weekly-28db3d3a.js} +0 -0
  277. /package/build/esm/{BMI_GIRLS.percentile.yearly-6f7249a8.js → BMI_GIRLS.percentile.yearly-3f111c39.js} +0 -0
  278. /package/build/esm/{BMI_GIRLS.zscore.monthly-84f48d9d.js → BMI_GIRLS.zscore.monthly-42aa08a0.js} +0 -0
  279. /package/build/esm/{BMI_GIRLS.zscore.weekly-d2aa40f9.js → BMI_GIRLS.zscore.weekly-730cc3fb.js} +0 -0
  280. /package/build/esm/{BMI_GIRLS.zscore.yearly-f7c405d2.js → BMI_GIRLS.zscore.yearly-974e68b4.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9a7d38e3.js → HEAD CIRCUM_BOYS.percentile.monthly-6735bf8c.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-5f8c3bc2.js → HEAD CIRCUM_BOYS.percentile.weekly-218a2a8a.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-05cfb1a7.js → HEAD CIRCUM_BOYS.percentile.yearly-7c569f10.js} +0 -0
  284. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e0d54f1f.js → HEAD CIRCUM_BOYS.zscore.monthly-c530f82d.js} +0 -0
  285. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-37e62f29.js → HEAD CIRCUM_BOYS.zscore.weekly-2de64796.js} +0 -0
  286. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-71b64cf9.js → HEAD CIRCUM_BOYS.zscore.yearly-d9646af3.js} +0 -0
  287. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-e6419ec4.js → HEAD CIRCUM_GIRLS.percentile.monthly-33a7b03d.js} +0 -0
  288. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-50ff3bb2.js → HEAD CIRCUM_GIRLS.percentile.weekly-e159c306.js} +0 -0
  289. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-58407ac8.js → HEAD CIRCUM_GIRLS.percentile.yearly-f5b9f524.js} +0 -0
  290. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-0a3d0392.js → HEAD CIRCUM_GIRLS.zscore.monthly-0bb12d79.js} +0 -0
  291. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-7704d6f6.js → HEAD CIRCUM_GIRLS.zscore.weekly-f006ab5c.js} +0 -0
  292. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-20d7b666.js → HEAD CIRCUM_GIRLS.zscore.yearly-7284414f.js} +0 -0
  293. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2265f5e0.js → HEIGHT_BOYS.percentile.monthly-fbd195d8.js} +0 -0
  294. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1d6f2675.js → HEIGHT_BOYS.percentile.weekly-f430a5c1.js} +0 -0
  295. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-a16c60e0.js → HEIGHT_BOYS.percentile.yearly-2d2865f4.js} +0 -0
  296. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-74f11cf7.js → HEIGHT_BOYS.zscore.monthly-9c09fe6a.js} +0 -0
  297. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4e9ad921.js → HEIGHT_BOYS.zscore.weekly-ce50be77.js} +0 -0
  298. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3c84be19.js → HEIGHT_BOYS.zscore.yearly-a864af3a.js} +0 -0
  299. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-d69c1bc0.js → HEIGHT_GIRLS.percentile.monthly-ac862726.js} +0 -0
  300. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c98c3719.js → HEIGHT_GIRLS.percentile.weekly-b3b073a0.js} +0 -0
  301. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-7d1c2f8f.js → HEIGHT_GIRLS.percentile.yearly-32f6f664.js} +0 -0
  302. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-458a3838.js → HEIGHT_GIRLS.zscore.monthly-9521e3b0.js} +0 -0
  303. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-ee69fddb.js → HEIGHT_GIRLS.zscore.weekly-ab5238fc.js} +0 -0
  304. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4ed7d8c4.js → HEIGHT_GIRLS.zscore.yearly-a705e916.js} +0 -0
  305. /package/build/esm/{Onboarding-128f7694.js → Onboarding-776a51ed.js} +0 -0
  306. /package/build/esm/{Visible-0aff5e0b.js → Visible-0463b9e6.js} +0 -0
  307. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c975b56a.js → WEIGHT_BOYS.percentile.monthly-c9ff5588.js} +0 -0
  308. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fa671296.js → WEIGHT_BOYS.percentile.weekly-989fafb4.js} +0 -0
  309. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-94ee1ffc.js → WEIGHT_BOYS.percentile.yearly-164f75e1.js} +0 -0
  310. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-980ad564.js → WEIGHT_BOYS.zscore.monthly-b270ca2c.js} +0 -0
  311. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-cfd0319e.js → WEIGHT_BOYS.zscore.weekly-f7e70c1f.js} +0 -0
  312. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-93242e4e.js → WEIGHT_BOYS.zscore.yearly-32dda9e5.js} +0 -0
  313. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-3701392d.js → WEIGHT_GIRLS.percentile.monthly-718a8734.js} +0 -0
  314. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f94367f1.js → WEIGHT_GIRLS.percentile.weekly-402cdbff.js} +0 -0
  315. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-21712a28.js → WEIGHT_GIRLS.percentile.yearly-942157cf.js} +0 -0
  316. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-68b0d421.js → WEIGHT_GIRLS.zscore.monthly-08c0f7e5.js} +0 -0
  317. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-53eb8866.js → WEIGHT_GIRLS.zscore.weekly-80a0dee3.js} +0 -0
  318. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-ba9c78d9.js → WEIGHT_GIRLS.zscore.yearly-7b8c6a62.js} +0 -0
  319. /package/build/esm/{cookieHelper-f08471b0.js → cookieHelper-df1c13f9.js} +0 -0
  320. /package/build/esm/{dataTransform-9a889a57.js → dataTransform-b9b83d6a.js} +0 -0
  321. /package/build/esm/{index-fc996fc3.js → index-08fb1171.js} +0 -0
  322. /package/build/esm/{index-c93685a5.js → index-2c84d24b.js} +0 -0
  323. /package/build/esm/{index-c4775284.js → index-65e5542a.js} +0 -0
  324. /package/build/esm/{isProduction-526256cd.js → isProduction-f42d4af9.js} +0 -0
  325. /package/build/esm/{localizeNumberFormat-40d6b54f.js → localizeNumberFormat-5d8fed7e.js} +0 -0
  326. /package/build/esm/{normalizeLink-630cc7e1.js → normalizeLink-83bc2fa0.js} +0 -0
  327. /package/build/esm/{number-2748523d.js → number-6083d486.js} +0 -0
  328. /package/build/esm/{paths-d658dd02.js → paths-f457e9f9.js} +0 -0
  329. /package/build/esm/{screenSizeContext-593881b5.js → screenSizeContext-d394cc53.js} +0 -0
  330. /package/build/esm/{theme-2b59bc50.js → theme-e05003ce.js} +0 -0
  331. /package/build/esm/{translationsContext-04bcf678.js → translationsContext-f924f41c.js} +0 -0
  332. /package/build/esm/{tslib.es6-541a264f.js → tslib.es6-d0d7aa00.js} +0 -0
  333. /package/build/esm/{types-fe0f7019.js → types-69c2911d.js} +0 -0
  334. /package/build/esm/{useIsInit-6bede063.js → useIsInit-af8a02c8.js} +0 -0
  335. /package/build/esm/{useOutsideClick-359aeef3.js → useOutsideClick-631f70f3.js} +0 -0
  336. /package/build/esm/{useScrollbarSize-957c3c67.js → useScrollbarSize-934266e1.js} +0 -0
  337. /package/build/{index-867763ec.js → index-5eb6c97e.js} +0 -0
  338. /package/build/{index-11d9951e.js → index-960cb1db.js} +0 -0
  339. /package/build/{index-89f9554a.js → index-d2a44d40.js} +0 -0
  340. /package/build/{isProduction-201ff7b0.js → isProduction-48b088ec.js} +0 -0
  341. /package/build/{localizeNumberFormat-2080e041.js → localizeNumberFormat-232b7837.js} +0 -0
  342. /package/build/{normalizeLink-3765f193.js → normalizeLink-a0154e50.js} +0 -0
  343. /package/build/{number-1de035c4.js → number-98c7d75a.js} +0 -0
  344. /package/build/{paths-855ff49e.js → paths-c1a7d034.js} +0 -0
  345. /package/build/{screenSizeContext-c2712d14.js → screenSizeContext-a1a2dd8f.js} +0 -0
  346. /package/build/{theme-8c73ee47.js → theme-bcfc4bf1.js} +0 -0
  347. /package/build/{translationsContext-1b861397.js → translationsContext-198efa0b.js} +0 -0
  348. /package/build/{tslib.es6-97edf1e8.js → tslib.es6-42b6a4e4.js} +0 -0
  349. /package/build/{types-7692b1e6.js → types-bb264b4a.js} +0 -0
  350. /package/build/{useIsInit-e2e74e93.js → useIsInit-9ccd66c4.js} +0 -0
  351. /package/build/{useOutsideClick-5f6e71c0.js → useOutsideClick-b300ce50.js} +0 -0
  352. /package/build/{useScrollbarSize-4221e3e3.js → useScrollbarSize-523cb659.js} +0 -0
@@ -0,0 +1,3533 @@
1
+ "use strict";var e=require("react"),t=require("./index-472cd02e.js"),a=require("./index.styles-2679f17e.js"),l=require("./screenSizeContext-a1a2dd8f.js"),n=require("./index-49ca569a.js"),i=require("./index-02d5c385.js"),r=require("./useTranslations-9940a064.js");require("lodash/debounce");var o=require("./isProduction-48b088ec.js"),s=require("./index-80ed081f.js");require("./useCategory-de21ce75.js");var d=require("./gAssets.js"),c=require("./theme-bcfc4bf1.js"),u=require("./tslib.es6-42b6a4e4.js"),m=require("@mantine/core"),p=require("innertext");require("@mantine/dates");var g=require("./Onboarding-321532f3.js"),h=require("dayjs"),f=require("styled-components");require("./translationsContext-198efa0b.js"),require("string-format");var b=require("@mantine/hooks"),v=require("./index-66def10e.js"),y=require("lodash/throttle"),x=require("./index-63670e0c.js"),E=require("./index-2e9c0de0.js"),w=require("./index-87067120.js"),C=require("html-react-parser"),k=require("date-fns");require("./utils-7d5baedb.js"),require("./index.styled-f58521f6.js"),require("./index-5eb6c97e.js");var B=require("./constants-8bcbbfa4.js"),T=require("./types-bb264b4a.js"),N=require("./index-5d2cb060.js"),S=require("./index-ff10154c.js"),D=require("./index.styled-8b68590e.js"),M=require("./index-d2a44d40.js"),A=require("react-hook-form"),P=require("./useHealthToolCache-1ec3b85b.js"),$=require("@hookform/resolvers/yup"),z=require("./index-2d3213a5.js"),L=require("./index-4647ac38.js"),I=require("react-day-picker/DayPickerInput"),_=require("./useOutsideClick-b300ce50.js"),O=require("date-fns/locale/en-US"),j=require("date-fns/locale/id"),F=require("date-fns/locale/vi"),H=require("date-fns/locale/zh-TW"),R=require("./getSocialList-e857f598.js"),G=require("uuid"),U=require("./routing-d4f8bab4.js"),W=require("@mantine/form"),V=require("./index-da51ce3f.js"),q=require("js-cookie"),Q=require("lodash/flatten");require("react-contenteditable"),require("react-dom");var Z=require("lodash/uniqBy"),Y=require("./cookieHelper-5a5ad9d8.js"),K=require("./normalizeLink-a0154e50.js");function X(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var J=X(e),ee=X(p),te=X(h),ae=X(f),le=X(y),ne=X(C),ie=X(I),re=X(O),oe=X(j),se=X(F),de=X(H),ce=X(q),ue=X(Q),me=X(Z),pe="CHw-fZZ",ge="_03U6VRS",he="EO828Vv";const fe={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},be=({type:t="square",size:l,avatarImg:i,avatarUrl:r,firstLetter:o,backgroundColor:s,onClick:d,style:c,className:u,width:m,height:p,alt:g})=>{const h=l?fe[l]:void 0,[f,b]=e.useState(!1);e.useEffect((()=>{if(r){const e=document.createElement("img");e.setAttribute("src",r),e.addEventListener("error",(()=>{b(!0)}))}}),[r,b]);const v=(!r&&!i||f)&&o;return J.default.createElement(a.StyledAvatar,{style:Object.assign(Object.assign({},c),{"--size":h?h+"px":void 0,"--width-prop":m?m+"px":void 0,"--height-prop":p?p+"px":void 0,"--background-color":s}),"data-has-max":!(!m||!p),"data-avatar-type":t,onClick:d,className:u,avatarUrl:r,"data-custom-size":!!l},i,r&&!f&&J.default.createElement(n.ImageWrap,{src:r,alt:g||"avatar"}),v&&o)},ve=()=>J.default.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),ye=()=>J.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},J.default.createElement("defs",null,J.default.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},J.default.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),J.default.createElement("title",null,"File"),J.default.createElement("g",{clipPath:"url(#prefix__clip-path)"},J.default.createElement("path",{className:"file-dropdown-path",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)"}),J.default.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),xe=()=>J.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},J.default.createElement("title",null,"download"),J.default.createElement("path",{className:"file-dropdown-path",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)"})),Ee=()=>J.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},J.default.createElement("title",null,"upload"),J.default.createElement("path",{className:"file-dropdown-path",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)"})),we=({pagesAmount:t,activePage:n,handlePageChange:i,handleClick:r,href:o,queryPageName:s="page"})=>{const d=[...Array(t)].map(((e,t)=>t+1)),[c,u]=e.useState(n<=4?d.slice(0,5):n>=d.length-3?d.slice(d.length-5,d.length):d.slice(n-2,n+1));return e.useEffect((()=>{n<=4?u(d.slice(0,5)):n>=d.length-3?u(d.slice(d.length-5,d.length)):u(d.slice(n-2,n+1))}),[n]),J.default.createElement(e.Fragment,null,n>4&&J.default.createElement(e.Fragment,null,J.default.createElement(a.StyledPaginationBlock,{onClick:()=>i(1)},o?J.default.createElement("a",{href:o,onClick:r},1):1),J.default.createElement(a.StyledPaginationBlock,null,"...")),c.map((e=>J.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===n||void 0,onClick:()=>i(e)},o?J.default.createElement("a",{href:l.formatUrlWithPageParam(o,e,s),onClick:r},e):e))),n<d.length-3&&J.default.createElement(e.Fragment,null,J.default.createElement(a.StyledPaginationBlock,null,"..."),J.default.createElement(a.StyledPaginationBlock,{onClick:()=>i(d.length)},o?J.default.createElement("a",{href:l.formatUrlWithPageParam(o,d.length,s),onClick:r},d.length):d.length)))},Ce=({label:e,name:t,checked:l,className:n,isDisabled:i,onChange:r,value:o,isRectangle:s,inputDataTestId:d,siteType:c})=>J.default.createElement(a.StyledCheckbox,{className:n,"data-disabled":i||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":c},J.default.createElement("input",{type:"checkbox",checked:l,name:t,onChange:()=>r(o,!l),disabled:i,value:o,id:`${t}-${o}`,"data-label-text":e,"data-testid":d}),!s&&J.default.createElement("label",{htmlFor:`${t}-${o}`},e)),ke=e=>J.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 32 32",fill:"none"}),J.default.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"})),Be=e=>J.default.createElement("svg",Object.assign({},e,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),J.default.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"})),Te=e=>{const t=r.useUniqueId();return J.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none"}),J.default.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"}),J.default.createElement("mask",{id:t,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},J.default.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),J.default.createElement("g",{mask:`url(#${t})`},J.default.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"})))},Ne=l=>{var{label:n,availableValue:i,styles:o,isBaby:s,genderValue:c={male:"male",female:"female"}}=l,p=u.__rest(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=r.useTranslations(),{classes:h,cx:f}=a.useStyles(void 0,{name:"GenderOptionControl",styles:o}),[b,v]=e.useState(),y=e.useRef(null),x=e.useMemo((()=>[{value:c.male,label:g(s?"gender.boy":"gender.male"),icon:d.CommonGAssets.getAssetPath(s?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:c.female,label:g(s?"gender.girl":"gender.female"),icon:d.CommonGAssets.getAssetPath(s?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return e.useEffect((()=>{v(i)}),[i]),J.default.createElement(m.Box,{ref:y,className:h.root},J.default.createElement(m.Radio.Group,Object.assign({className:"radio-group",label:J.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},n||g(s?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},p,{classNames:{error:h.groupErr}}),J.default.createElement(m.Flex,{className:f(h.wrapper)},x.map((e=>J.default.createElement(m.Radio,Object.assign({className:"gender-item",classNames:{root:h.itemRoot,labelWrapper:h.itemLabelWrapper,label:h.itemLabel,inner:h.itemInner},key:e.value,value:e.value},b&&e.value!==b&&{disabled:!0},{label:J.default.createElement(m.Flex,{gap:m.rem(8),align:"center",justify:"center",sx:{zIndex:0}},J.default.createElement("img",{src:e.icon,className:"gender-image",alt:"female",loading:"lazy"}),J.default.createElement(t.Text,{size:"p3"},e.label))})))))))};var Se="tliWyii";var De="PiqKaXk",Me="HgbW6-m",Ae="_6lkfLYy",Pe="j7c-onH";const $e=({avatarImg:e,authorName:a,authorLink:l,uploadTime:n,size:i})=>J.default.createElement("div",{className:Pe},J.default.createElement("div",{className:"author"},J.default.createElement("div",{className:"avatar","data-size":i},e),J.default.createElement("div",{className:"poster","data-is-disabled-url":!l},J.default.createElement(t.Text,{size:"lg"===i?"p3":"p4"},J.default.createElement("a",{href:l},J.default.createElement("span",{className:"name"},a),"•"," "),J.default.createElement("span",null,n))))),ze=({isMobile:e,avatarImg:l,name:n,link:i,size:r="lg",specialty:o})=>J.default.createElement("div",{className:Pe},J.default.createElement("div",{className:"author"},J.default.createElement("div",{className:"expert-avatar","data-size":r},l),J.default.createElement("div",{className:"expert","data-is-disabled-url":!i},e?J.default.createElement("a",{href:i},"lg"===r?J.default.createElement(J.default.Fragment,null,J.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:c.theme.colors.gray600},n),J.default.createElement(t.Text,{color:c.theme.colors.gray500,size:"p3",className:"specialty"},o)):J.default.createElement(J.default.Fragment,null,J.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:c.theme.colors.gray600},n))):J.default.createElement("a",{href:i},"lg"===r?J.default.createElement(J.default.Fragment,null,J.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:c.theme.colors.gray600},n),J.default.createElement(t.Text,{color:c.theme.colors.gray500,size:"p3",className:"specialty"},o)):J.default.createElement(J.default.Fragment,null,J.default.createElement("h6",{color:c.theme.colors.gray600,className:`${De} expert__name`},n),J.default.createElement(t.Text,{color:c.theme.colors.gray500,size:"p4",className:"specialty"},o)))))),Le=e.memo((()=>J.default.createElement("div",{className:"shoppable"},J.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},J.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),J.default.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),Ie=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>J.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},J.default.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),_e=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>J.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},J.default.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),Oe=e=>{var a,l,i,{article:r,author:o,authorAvatar:s,badge:d="",hideDescription:c=!1,isBookmarked:p=!1,onBookmark:g,time:h,tracking:f}=e,b=u.__rest(e,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=n.useScreenSize();return console.log({article:r}),J.default.createElement(m.Card,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},b),J.default.createElement(m.Card.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},J.default.createElement("img",{src:(v?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{width:"100%"},loading:"lazy"})),J.default.createElement(m.Card.Section,null,J.default.createElement(m.Group,{position:"apart",mt:16,mb:4},J.default.createElement(n.Anchor,{href:(null===(a=null==r?void 0:r.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},J.default.createElement(t.Text,{size:"p4",color:"blue.6"},null===(l=null==r?void 0:r.primaryCategory)||void 0===l?void 0:l.displayName)),J.default.createElement(m.Box,{sx:{cursor:"pointer"},role:"button",onClick:g},p?J.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==f?void 0:f.bookmark),J.default.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):J.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==f?void 0:f.bookmark),J.default.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),J.default.createElement(t.Text,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},r.postTitle||r.postName||""),!c&&J.default.createElement(t.Text,{size:"p2",mb:16,lineClamp:3,className:"pointer"},ee.default(r.excerpt||r.description||(null===(i=r.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),J.default.createElement(m.Flex,{gap:12,align:"center"},J.default.createElement(n.Avatar,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:J.default.createElement("img",{loading:"lazy",src:d,alt:""})}},"A"),J.default.createElement(t.Text,{size:"n1",c:"gray.6"},o," • ",h))))};var je=m.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const Fe=648/440,He=1.5,Re=a=>{var l,i,r,{article:o,author:s,authorAvatar:d,badge:c="",bannerImageWrapProps:p,hideDescription:g=!1,isBookmarked:h=!1,onBookmark:f,time:b,tracking:v,classNames:y,styles:x,unstyled:E,className:w}=a,C=u.__rest(a,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:k}=n.useScreenSize(),{classes:B,cx:T}=je({},{name:"ArticleCard",classNames:y,styles:x,unstyled:E}),N=e.useMemo((()=>g?He:Fe),[g]);return J.default.createElement(m.Card,Object.assign({className:T(B.root,w),padding:"lg",radius:0},C),J.default.createElement(m.Card.Section,{className:T(B.image,"pointer")},J.default.createElement(n.AspectRatio,Object.assign({ratio:N},p),J.default.createElement("img",{src:(k?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),J.default.createElement(m.Card.Section,null,J.default.createElement(m.Group,{position:"apart",mt:16,mb:4},J.default.createElement(n.Anchor,{className:B.category,href:(null===(l=null==o?void 0:o.primaryCategory)||void 0===l?void 0:l.permalink)||"#"},J.default.createElement(t.Text,{size:"p4",color:"blue.6"},null===(i=null==o?void 0:o.primaryCategory)||void 0===i?void 0:i.displayName)),J.default.createElement(m.Box,{sx:{cursor:"pointer"},role:"button",onClick:f},h?J.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),J.default.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):J.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),J.default.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),J.default.createElement(t.Text,{className:T(B.title,"pointer"),size:g?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!g&&J.default.createElement(t.Text,{className:T(B.description,"pointer"),size:"p2",mb:16,lineClamp:3},ee.default(o.excerpt||o.description||(null===(r=o.postContent)||void 0===r?void 0:r.split("\r\n")[0])||"")),J.default.createElement(m.Flex,{className:B.author,gap:12,align:"center"},J.default.createElement(n.Avatar,{size:32,src:d,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:J.default.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),J.default.createElement(t.Text,{size:"n1",c:"gray.6"},s," • ",b))))},Ge=ae.default.a`
2
+ display: flex;
3
+ height: 125px;
4
+
5
+ box-sizing: border-box;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ padding: 8px;
9
+
10
+ border: 1px solid ${e=>e.theme.colors.neutral100};
11
+ background-color: white;
12
+ border-radius: ${e=>e.theme.borderRadius};
13
+ box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
14
+ cursor: pointer;
15
+ text-decoration: none;
16
+
17
+ & > .banner {
18
+ width: 100%;
19
+ height: 63px;
20
+ text-align: center;
21
+ }
22
+
23
+ & > .content {
24
+ display: -webkit-box;
25
+ overflow: hidden;
26
+ -webkit-box-orient: vertical;
27
+ -webkit-line-clamp: 2;
28
+ text-align: center;
29
+ word-break: break-word;
30
+ }
31
+
32
+ * {
33
+ pointer-events: none;
34
+ }
35
+ `,Ue=ae.default.div`
36
+ display: flex;
37
+
38
+ &[data-type='vertical'] {
39
+ flex-direction: column;
40
+
41
+ div {
42
+ margin-bottom: 20px;
43
+ }
44
+ }
45
+
46
+ &[data-type='horizontal'] {
47
+ flex-wrap: wrap;
48
+
49
+ div {
50
+ margin-right: 25px;
51
+ }
52
+
53
+ &[data-is-rectangle] {
54
+ div {
55
+ margin-right: 14px;
56
+ }
57
+ }
58
+ }
59
+ `,We={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},Ve=ae.default.div`
60
+ .pickerContainer {
61
+ position: relative;
62
+ padding-top: 0;
63
+ & > div > svg {
64
+ position: absolute;
65
+ top: 36px;
66
+ right: 16px;
67
+ cursor: pointer;
68
+ }
69
+
70
+ & > :not(:first-child) {
71
+ position: absolute;
72
+ z-index: 2;
73
+ width: 100%;
74
+ }
75
+ }
76
+
77
+ &[data-is-static] .pickerOverlayWrapper {
78
+ position: static;
79
+ max-width: 250px;
80
+ aspect-ratio: 1 / 1;
81
+
82
+ > .pickerOverlay {
83
+ padding: 1rem;
84
+ }
85
+ }
86
+
87
+ .pickerOverlayWrapper {
88
+ min-width: 320px;
89
+ }
90
+
91
+ &[data-align-right='true'] {
92
+ .pickerOverlayWrapper {
93
+ right: 0;
94
+ }
95
+ }
96
+
97
+ .pickerOverlay {
98
+ margin-top: 6px;
99
+ background: white;
100
+ border-radius: ${e=>e.theme.borderRadius};
101
+ box-shadow: 0px 6px 12px rgba(67, 86, 100, 0.2);
102
+ }
103
+
104
+ .picker {
105
+ width: 100%;
106
+ }
107
+
108
+ .react-datepicker-popper {
109
+ .react-datepicker {
110
+ display: flex;
111
+ width: 340px;
112
+ height: 305px;
113
+ align-items: center;
114
+ justify-content: center;
115
+ border: none;
116
+ box-shadow: (-1px 1px 2px rgba(67, 70, 74, 0.0001)),
117
+ (-2px 2px 5px rgba(67, 86, 100, 0.123689));
118
+ }
119
+
120
+ .svg {
121
+ cursor: pointer;
122
+ stroke: ${e=>e.theme.colors.gray800};
123
+ }
124
+ .react-datepicker__day {
125
+ width: 40px;
126
+ }
127
+
128
+ .react-datepicker__header {
129
+ border-bottom: 0;
130
+ background-color: white;
131
+ }
132
+
133
+ .react-datepicker__day--outside-month {
134
+ color: #e9e9e9;
135
+ }
136
+
137
+ .react-datepicker__day {
138
+ font-weight: ${e=>e.theme.sizes.fwBold};
139
+ }
140
+
141
+ .react-datepicker__day--selected,
142
+ .react-datepicker__day--today,
143
+ .react-datepicker__day--selected:hover,
144
+ .react-datepicker__day--keyboard-selected {
145
+ width: 32px;
146
+ height: 30px;
147
+ margin: 4px;
148
+ margin-bottom: -2px;
149
+ background: ${e=>e.theme.colors.primaryBase};
150
+ border-radius: 50%;
151
+ }
152
+
153
+ .react-datepicker__day-name {
154
+ width: 40px;
155
+ }
156
+
157
+ .react-datepicker__triangle {
158
+ display: none;
159
+ }
160
+
161
+ .react-datepicker__header.react-datepicker__header--custom {
162
+ svg {
163
+ stroke: #262626;
164
+ }
165
+ select {
166
+ background: ${e=>e.theme.colors.neutral100};
167
+ text-align: center;
168
+ &:not(:last-child) {
169
+ padding: 8px 10px;
170
+ margin-right: 15px;
171
+ border-radius: ${e=>e.theme.borderRadius};
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ /* DayPicker styles */
178
+
179
+ .DayPicker {
180
+ display: inline-block;
181
+ font-size: 1rem;
182
+ }
183
+
184
+ .DayPicker-wrapper {
185
+ position: relative;
186
+
187
+ flex-direction: row;
188
+ padding-bottom: 1em;
189
+
190
+ -webkit-user-select: none;
191
+
192
+ -moz-user-select: none;
193
+
194
+ -ms-user-select: none;
195
+
196
+ user-select: none;
197
+ }
198
+
199
+ .DayPicker-Months {
200
+ display: flex;
201
+ flex-wrap: wrap;
202
+ justify-content: center;
203
+ }
204
+
205
+ .DayPicker-Month {
206
+ display: table;
207
+ margin: 0 16px;
208
+ margin-top: 16px;
209
+ border-collapse: collapse;
210
+ border-spacing: 0;
211
+
212
+ -webkit-user-select: none;
213
+
214
+ -moz-user-select: none;
215
+
216
+ -ms-user-select: none;
217
+
218
+ user-select: none;
219
+ }
220
+
221
+ .DayPicker-NavBar {
222
+ position: absolute;
223
+ top: 16px;
224
+ left: 0;
225
+ display: flex;
226
+ width: 100%;
227
+ height: 0;
228
+ align-items: center;
229
+ justify-content: space-between;
230
+ padding: 0 20px;
231
+ }
232
+
233
+ .DayPicker-NavButton {
234
+ width: 24px;
235
+ height: 24px;
236
+ margin-bottom: -47px;
237
+ background-position: center;
238
+ background-repeat: no-repeat;
239
+ background-size: 16px 16px;
240
+ color: #8b9898;
241
+ cursor: pointer;
242
+ }
243
+
244
+ .DayPicker-NavButton:hover {
245
+ opacity: 0.8;
246
+ }
247
+
248
+ .DayPicker-NavButton--prev {
249
+ //left: 2px;
250
+ background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9L1 5L5 1' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
251
+ }
252
+
253
+ .DayPicker-NavButton--next {
254
+ //right: 2px;
255
+ background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L1 9' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
256
+ }
257
+
258
+ .DayPicker-NavButton--interactionDisabled {
259
+ display: none;
260
+ }
261
+
262
+ .DayPicker-Caption {
263
+ display: table-caption;
264
+ width: 100%;
265
+ height: 46px;
266
+ padding: 0 32px;
267
+ }
268
+
269
+ .DayPicker-Caption select {
270
+ font-size: 16px;
271
+ font-weight: 600;
272
+ line-height: 24px;
273
+ text-align: left;
274
+ }
275
+
276
+ .DayPicker-Weekdays {
277
+ display: table-header-group;
278
+ margin-top: 1em;
279
+ }
280
+
281
+ .DayPicker-WeekdaysRow {
282
+ display: table-row;
283
+ }
284
+
285
+ .DayPicker-Weekday {
286
+ display: table-cell;
287
+ padding: 0.5em;
288
+ color: #8b9898;
289
+ font-size: 0.875em;
290
+ text-align: center;
291
+ }
292
+
293
+ .DayPicker-Weekday abbr[title] {
294
+ border-bottom: none;
295
+ text-decoration: none;
296
+ }
297
+
298
+ .DayPicker-Body {
299
+ display: table-row-group;
300
+ }
301
+
302
+ .DayPicker-Week {
303
+ display: table-row;
304
+ }
305
+
306
+ .DayPicker-Day {
307
+ display: table-cell;
308
+
309
+ width: 40px;
310
+ height: 40px;
311
+ border-radius: 50%;
312
+ cursor: pointer;
313
+ text-align: center;
314
+ vertical-align: middle;
315
+ }
316
+
317
+ .DayPicker-WeekNumber {
318
+ display: table-cell;
319
+ min-width: 1em;
320
+ padding: 0.5em;
321
+ border-right: 1px solid #eaecec;
322
+ color: #8b9898;
323
+ cursor: pointer;
324
+ font-size: 0.75em;
325
+ text-align: right;
326
+ vertical-align: middle;
327
+ }
328
+
329
+ .DayPicker--interactionDisabled .DayPicker-Day {
330
+ cursor: default;
331
+ }
332
+
333
+ .DayPicker-Footer {
334
+ padding-top: 0.5em;
335
+ }
336
+
337
+ .DayPicker-TodayButton {
338
+ border: none;
339
+ background-color: transparent;
340
+ background-image: none;
341
+ box-shadow: none;
342
+ color: #4a90e2;
343
+ cursor: pointer;
344
+ font-size: 0.875em;
345
+ }
346
+
347
+ /* Default modifiers */
348
+
349
+ .DayPicker-Day--today {
350
+ color: #d0021b;
351
+ font-weight: 700;
352
+ }
353
+
354
+ .DayPicker-Day--outside {
355
+ color: #8b9898;
356
+ cursor: default;
357
+ }
358
+
359
+ .DayPicker-Day--disabled {
360
+ color: #dce0e0;
361
+ cursor: default;
362
+ /* background-color: #eff1f1; */
363
+ }
364
+
365
+ /* Example modifiers */
366
+
367
+ .DayPicker-Day--sunday {
368
+ background-color: #f7f8f8;
369
+ }
370
+
371
+ .DayPicker-Day--sunday:not(.DayPicker-Day--today) {
372
+ color: #dce0e0;
373
+ }
374
+
375
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
376
+ .DayPicker-Day--outside
377
+ ) {
378
+ position: relative;
379
+
380
+ background-color: ${e=>e.theme.colors.primaryBase};
381
+ color: #f0f8ff;
382
+ font-weight: ${e=>e.theme.sizes.fwBold};
383
+ }
384
+
385
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
386
+ .DayPicker-Day--outside
387
+ ):hover {
388
+ background-color: #51a0fa;
389
+ }
390
+
391
+ .DayPicker:not(.DayPicker--interactionDisabled)
392
+ .DayPicker-Day:not(.DayPicker-Day--disabled):not(
393
+ .DayPicker-Day--selected
394
+ ):not(.DayPicker-Day--outside):hover {
395
+ background-color: #f0f8ff;
396
+ }
397
+
398
+ /* DayPickerInput */
399
+
400
+ .DayPickerInput {
401
+ display: inline-block;
402
+ }
403
+
404
+ .DayPickerInput-OverlayWrapper {
405
+ position: relative;
406
+ }
407
+
408
+ .DayPickerInput-Overlay {
409
+ position: absolute;
410
+ z-index: 1;
411
+ left: 0;
412
+
413
+ background: white;
414
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
415
+ }
416
+ `,qe=ae.default.form`
417
+ display: flex;
418
+ width: 100%;
419
+
420
+ height: 46px;
421
+ align-items: center;
422
+ justify-content: space-between;
423
+ & > :first-child {
424
+ margin-right: 10px;
425
+ }
426
+
427
+ & * {
428
+ height: 46px;
429
+ padding: 10px 10px;
430
+ background: ${e=>e.theme.colors.neutral100};
431
+ border-radius: ${e=>e.theme.borderRadius};
432
+ }
433
+ `,Qe=({alignRight:t=!0,placeholder:a,displayDateFormat:l,onChange:n,customInput:i,pickedDate:r,className:o,isStatic:s,disabledDays:d,modifiers:c,UnHideOnClickOutside:u,initialMonth:m,locale:p="en-PH"})=>{const g=e.useRef(!1),h=k.format,[f,b]=e.useState(m||new Date),v=e.useRef(null),y=e.useRef(null),x=We[p],E=e=>{u||v.current&&v.current.contains(e.target)||y.current&&y.current.hideDayPicker()},w=(new Date).getFullYear(),C=new Date(w-150,0),B=new Date(w+1,0),T=({date:e,onChange:t,monthLabels:a})=>{const l=[];for(let e=B.getFullYear();e>=C.getFullYear();e-=1)l.push(e);const n=function(e){const{year:a,month:l}=e.target.form;t(new Date(a.value,l.value))};return J.default.createElement("div",{className:"DayPicker-Caption"},J.default.createElement(qe,null,J.default.createElement("select",{name:"month",onChange:n,value:e.getMonth()},a.map(((e,t)=>J.default.createElement("option",{key:e,value:t},e)))),J.default.createElement("select",{name:"year",onChange:n,value:e.getFullYear()},l.map((e=>J.default.createElement("option",{key:e,value:e},e))))))};return e.useEffect((()=>(document.addEventListener("mousedown",E,{passive:!0}),()=>{document.removeEventListener("mousedown",E,!1)})),[]),J.default.createElement(Ve,{className:o,"data-align-right":t,ref:v,"data-is-static":s||void 0},J.default.createElement(ie.default,{ref:y,inputProps:{readOnly:!0},keepFocus:!1,classNames:{container:"pickerContainer",overlayWrapper:"pickerOverlayWrapper",overlay:"pickerOverlay"},component:i&&J.default.forwardRef(((e,t)=>J.default.createElement(i,Object.assign({},e)))),onDayPickerHide:()=>{g.current=!1},onDayPickerShow:()=>{g.current=!0},dayPickerProps:{month:f,className:"picker",selectedDays:r,canChangeMonth:!0,enableOutsideDaysClick:!s,firstDayOfWeek:1,captionElement:({date:e,localeUtils:t})=>{const a=null==t?void 0:t.getMonths();return J.default.createElement(T,{date:e,monthLabels:x||a,onChange:b})},disabledDays:d||void 0,modifiers:c},format:l||"yyyy-MM-dd",formatDate:(e,t)=>h(e,t),hideOnDayClick:!s,placeholder:a||"",onDayChange:e=>{var t;t=e,y.current&&!s&&y.current.hideDayPicker(),n&&n(t)},showOverlay:s}))},Ze=ae.default.div`
434
+ display: flex;
435
+ align-items: center;
436
+ --font-weight-lg: ${e=>e.theme.sizes.fwBold};
437
+ --font-weight-md: ${e=>e.theme.sizes.fwRegular};
438
+ --font-weight-sm: ${e=>e.theme.sizes.fwRegular};
439
+
440
+ &[data-icon-position='left'] {
441
+ & > *:first-child {
442
+ margin-right: 8px;
443
+ }
444
+
445
+ & > *:last-child {
446
+ width: calc(100% - 24px);
447
+ }
448
+ }
449
+ &[data-icon-position='right'] {
450
+ & > *:first-child {
451
+ width: calc(100% - 24px);
452
+ }
453
+ & > *:last-child {
454
+ margin-left: 8px;
455
+ }
456
+ }
457
+
458
+ ${l.MediaQueries.mbDown} {
459
+ &[data-size='lg'] {
460
+ font-size: 16px;
461
+ line-height: 24px;
462
+ font-weight: var(--font-weight-lg);
463
+ }
464
+ &[data-size='md'] {
465
+ font-size: 14px;
466
+ line-height: 22px;
467
+ font-weight: var(--font-weight-md);
468
+ }
469
+ &[data-size='sm'] {
470
+ font-size: 13px;
471
+ line-height: 20px;
472
+ font-weight: var(----font-weight-sm);
473
+ }
474
+ }
475
+ `,Ye=ae.default.div`
476
+ position: relative;
477
+ width: 100%;
478
+
479
+ & div[role='slider'] {
480
+ -webkit-text-size-adjust: none;
481
+ -webkit-user-select: none;
482
+ &:focus {
483
+ outline: none;
484
+ }
485
+ }
486
+ `,Ke=ae.default.div`
487
+ position: absolute;
488
+ top: 19px;
489
+ width: 24px;
490
+ height: 24px;
491
+ color: ${e=>e.theme.colors.white};
492
+ border: 2px solid ${e=>e.theme.colors.white};
493
+ border-radius: 50%;
494
+ transform: translateY(-50%) translateX(-50%);
495
+ display: flex;
496
+ align-items: center;
497
+ justify-content: center;
498
+ cursor: pointer;
499
+
500
+ background-color: ${e=>e.theme.colors.white};
501
+ color: ${e=>e.theme.colors.gray300};
502
+ border: 1px solid ${e=>e.theme.colors.gray300};
503
+
504
+ &[data-is-active='true'] {
505
+ background-color: ${e=>e.theme.colors.primaryBase};
506
+ color: ${e=>e.theme.colors.white};
507
+ border: none;
508
+ }
509
+ `,Xe=ae.default.div`
510
+ display: flex;
511
+ width: 100%;
512
+ height: 36px;
513
+
514
+ &[data-track-type='detail'] {
515
+ margin-top: 0;
516
+ }
517
+
518
+ &[data-track-type='detail'][data-step-passed='true'] > div {
519
+ border: 1px solid ${e=>e.theme.colors.primaryBase};
520
+ height: 0px;
521
+ }
522
+
523
+ &[data-track-type='detail'] > div {
524
+ border: 1px solid ${e=>e.theme.colors.gray200};
525
+ height: 0px;
526
+ }
527
+ `,Je=ae.default.div`
528
+ width: 100%;
529
+ height: 5px;
530
+ align-self: center;
531
+ border-radius: 4px;
532
+ background-color: ${e=>e.theme.colors.gray200};
533
+ `,et=ae.default.div`
534
+ position: absolute;
535
+ top: 32px;
536
+ min-width: 100px;
537
+ text-align: center;
538
+ color: ${e=>e.theme.colors.gray500};
539
+ font-size: ${e=>e.theme.sizes.fsCaption2};
540
+ font-weight: ${e=>e.theme.sizes.fwBold};
541
+
542
+ &[data-step-passed='true'] {
543
+ color: ${e=>e.theme.colors.gray800};
544
+ }
545
+ `,tt=ae.default.div`
546
+ display: flex;
547
+ align-items: center;
548
+ `,at=ae.default.div`
549
+ display: flex;
550
+ align-items: center;
551
+ font-size: ${e=>e.theme.sizes.fsCaption2};
552
+ font-weight: ${e=>e.theme.sizes.fwBold};
553
+ color: ${e=>e.theme.colors.gray500};
554
+ cursor: pointer;
555
+
556
+ & > svg {
557
+ height: 10px;
558
+ width: 10px;
559
+ margin: 0 14px;
560
+ }
561
+
562
+ & > svg > path {
563
+ stroke: ${e=>e.theme.colors.gray500};
564
+ }
565
+
566
+ &[data-selected='true'] {
567
+ color: ${e=>e.theme.colors.primaryBase};
568
+ }
569
+ `,lt=ae.default.div`
570
+ position: absolute;
571
+ left: 0;
572
+ top: 19px;
573
+ height: 24px;
574
+ cursor: pointer;
575
+
576
+ transform: translateY(-50%);
577
+ display: flex;
578
+ align-items: center;
579
+
580
+ padding: 8px;
581
+ background-color: ${e=>e.theme.colors.white};
582
+ `,nt=ae.default.div`
583
+ min-width: 24px;
584
+ height: 24px;
585
+ border: 2px solid ${e=>e.theme.colors.white};
586
+ border-radius: 50%;
587
+ margin-right: 8px;
588
+ display: flex;
589
+ align-items: center;
590
+ justify-content: center;
591
+ cursor: pointer;
592
+
593
+ background-color: ${e=>e.theme.colors.white};
594
+ color: ${e=>e.theme.colors.gray300};
595
+ border: 1px solid ${e=>e.theme.colors.gray300};
596
+
597
+ &[data-is-active='true'] {
598
+ border: none;
599
+ background-color: ${e=>e.theme.colors.primaryBase};
600
+ color: ${e=>e.theme.colors.white};
601
+ }
602
+ `,it=ae.default.div`
603
+ display: flex;
604
+ align-items: center;
605
+ justify-content: center;
606
+
607
+ & > svg {
608
+ height: 20px;
609
+ width: 20px;
610
+ margin-right: 8px;
611
+
612
+ & > path {
613
+ stroke: ${e=>e.theme.colors.gray500};
614
+ }
615
+ }
616
+ `,rt=ae.default.div`
617
+ color: ${e=>e.theme.colors.gray400};
618
+ font-size: ${e=>e.theme.sizes.fsCaption2};
619
+ font-weight: ${e=>e.theme.sizes.fwBold};
620
+ margin-right: 8px;
621
+ flex: 0 0 auto;
622
+
623
+ &[data-step-passed='true'] {
624
+ color: ${e=>e.theme.colors.gray800};
625
+ }
626
+ `,ot=ae.default.div`
627
+ position: absolute;
628
+ top: 32px;
629
+ font-weight: ${e=>e.theme.sizes.fwRegular};
630
+ color: ${e=>e.theme.colors.gray400};
631
+ padding-right: 16px;
632
+ `,st=J.default.forwardRef((({id:t,value:a,options:l,className:i,isDisabled:r,size:o="small",direction:s="vertical",onChange:d,dataEventCategory:c,dataEventAction:u,dataEventLabel:p},g)=>{const[h,f]=e.useState(a);e.useImperativeHandle(g,(()=>({reset(){f(a)}})));const b="small"===o?"md":"lg",v="vertical"===s?m.Stack:m.Group;return J.default.createElement(n.Radio.Group,{name:t,className:i,size:b,value:String(h),defaultValue:a,onChange:e=>{f(e),null==d||d(e)}},J.default.createElement(v,{spacing:"xl"},l.map((e=>J.default.createElement(n.Radio,{key:e.value,value:e.value,label:e.label,disabled:r,"data-event-category":c,"data-event-action":u,"data-event-label":p})))))})),dt=ae.default.div`
633
+ --menu-width: 240px;
634
+ --menu-spacing: 28px 16px;
635
+ width: var(--menu-width);
636
+ height: 100vh;
637
+ padding: var(--menu-spacing);
638
+ background-color: ${e=>e.theme.colors.neutral50};
639
+ transition: ease-in-out 0.5s;
640
+
641
+ &[data-is-collapsed] {
642
+ --menu-width: 64px;
643
+ --menu-spacing: 28px 8px;
644
+ }
645
+ `,ct=ae.default.div`
646
+ display: flex;
647
+ align-items: baseline;
648
+ justify-content: space-between;
649
+
650
+ svg {
651
+ transition: 0.4s ease-in-out;
652
+ }
653
+ `,ut=ae.default.div`
654
+ cursor: pointer;
655
+ &[data-is-collapsed] {
656
+ transform: rotate(180deg);
657
+ }
658
+ `,mt=ae.default.figure`
659
+ display: flex;
660
+
661
+ > img,
662
+ svg,
663
+ picture {
664
+ width: 40px;
665
+ height: 40px;
666
+ margin-right: 1rem;
667
+ border-radius: 6px;
668
+ object-fit: cover;
669
+ }
670
+
671
+ > figcaption {
672
+ p + p {
673
+ margin-top: 2px;
674
+ }
675
+ }
676
+ `,pt=({name:e,description:a,image:l,isDescriptionHidden:n})=>J.default.createElement(mt,null,l,!n&&J.default.createElement("figcaption",null,J.default.createElement(t.Text,{size:"p4",weight:"bold"},e),J.default.createElement(t.Text,{size:"p4"},a))),gt=ae.default.div`
677
+ display: flex;
678
+ align-items: center;
679
+ margin-top: 24px;
680
+ margin-bottom: 36px;
681
+
682
+ figcaption {
683
+ white-space: nowrap;
684
+ }
685
+
686
+ &[data-is-collapsed='true'] {
687
+ img {
688
+ max-width: 2rem;
689
+ max-height: 2rem;
690
+ }
691
+ }
692
+ `,ht=ae.default.div`
693
+ display: flex;
694
+ align-items: center;
695
+ padding: 9px 21px;
696
+ margin-bottom: 4px;
697
+ border-radius: 6px;
698
+
699
+ &:not([data-is-link-active]) {
700
+ cursor: pointer;
701
+ }
702
+
703
+ p {
704
+ margin-left: 12px;
705
+ }
706
+
707
+ &[data-is-link-active] {
708
+ background: ${e=>e.theme.colors.primaryBase};
709
+ }
710
+
711
+ &[data-is-link-collapsed] {
712
+ justify-content: center;
713
+ margin-right: -14px;
714
+ margin-left: -14px;
715
+ }
716
+ `;var ft=Object.freeze({__proto__:null,SideMenu:({isCollapsed:e,className:t,style:a,children:l})=>J.default.createElement(dt,{style:a,className:t,"data-is-collapsed":e||void 0},l),SideHeader:({isCollapsed:e,defaultLogo:t,onBackClick:a,customIcon:l})=>J.default.createElement(ct,null,J.default.createElement(x.Logo,{type:e?"logomark":t||"hellocare",customSize:{width:e?"24px":"77px",height:"24px"}}),J.default.createElement(ut,{"data-is-collapsed":e||void 0,onClick:a},l||J.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},J.default.createElement("path",{d:"M10 .75A9.25 9.25 0 1019.25 10 9.25 9.25 0 0010 .75z",fill:"none",stroke:"#d2d6dc",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),J.default.createElement("path",{d:"M11.44 6.53L8 10l3.48 3.47",fill:"none",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))),UserInfo:({isCollapsed:e,userName:t,role:a,avatar:l})=>J.default.createElement(gt,{"data-is-collapsed":e||void 0},J.default.createElement(pt,{image:l,name:t,description:a,isDescriptionHidden:e})),MenuLink:({icon:e,isActive:a,children:l,isCollapsed:n,activeIcon:i,onLinkClick:r,textSize:o="base",textType:s="bold",textColorActive:d="#fff",textColor:c="#595959"})=>J.default.createElement(ht,{"data-is-link-active":a||void 0,onClick:r,"data-is-link-collapsed":n||void 0},a&&i?i:e,!n&&J.default.createElement(t.Text,{size:o,weight:s,color:a?d:c},l))});const bt=ae.default.div`
717
+ position: relative;
718
+ width: 100%;
719
+ > .container {
720
+ display: flex;
721
+ width: 100%;
722
+ -ms-overflow-style: none;
723
+ overflow-x: auto;
724
+ scrollbar-width: none;
725
+
726
+ &::-webkit-scrollbar {
727
+ display: none;
728
+ }
729
+
730
+ .section {
731
+ display: flex;
732
+ width: 100%;
733
+ flex-direction: column;
734
+ flex-shrink: 0;
735
+ margin: auto;
736
+
737
+ > .grid-layout {
738
+ display: grid;
739
+ width: 100%;
740
+ grid-row-gap: 8px;
741
+
742
+ > .item-grid {
743
+ width: 100%;
744
+
745
+ > * {
746
+ margin: 0 auto;
747
+ }
748
+ }
749
+ }
750
+
751
+ .progress-bar {
752
+ display: grid;
753
+ height: 15px;
754
+ margin-bottom: 10px;
755
+
756
+ .items-progress {
757
+ position: relative;
758
+ display: flex;
759
+ width: 100%;
760
+ align-items: center;
761
+ justify-content: center;
762
+
763
+ .icon-status {
764
+ position: absolute;
765
+ display: flex;
766
+ }
767
+
768
+ .line {
769
+ width: 50%;
770
+ height: 2px;
771
+ background-color: ${e=>e.theme.colors.gray600};
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
777
+
778
+ .bullet-nav {
779
+ position: absolute;
780
+ z-index: ${e=>e.theme.zIndexes.belowHeader};
781
+ bottom: -30px;
782
+ left: 50%;
783
+ display: flex;
784
+ transform: translate(-50%, -50%);
785
+ }
786
+
787
+ .bullet-nav__link {
788
+ display: block;
789
+ width: 8px;
790
+ height: 8px;
791
+ padding: 0;
792
+ margin-right: 8px;
793
+ backface-visibility: hidden;
794
+ background-color: #e4e8ec;
795
+ border-radius: 50%;
796
+ cursor: pointer;
797
+ transition: all 0.3s;
798
+ }
799
+
800
+ .bullet-nav__link.active[data-scheme='hellosites'] {
801
+ background-color: ${e=>e.theme.colors.primary600};
802
+ }
803
+
804
+ .bullet-nav__link.active[data-scheme='marrybaby'] {
805
+ background-color: ${e=>e.theme.mbColors.pink};
806
+ }
807
+
808
+ .arrow-left {
809
+ position: absolute;
810
+ z-index: 10;
811
+ top: 50%;
812
+ left: -35px;
813
+ transform: translateY(-50%);
814
+ &[data-event-category] > * {
815
+ pointer-events: none;
816
+ }
817
+ }
818
+
819
+ .arrow-right {
820
+ position: absolute;
821
+ z-index: 10;
822
+ top: 50%;
823
+ right: -35px;
824
+ transform: translateY(-50%);
825
+ &[data-event-category] > * {
826
+ pointer-events: none;
827
+ }
828
+ }
829
+
830
+ .image-gallery-wrapper {
831
+ display: flex;
832
+ position: relative;
833
+ margin-top: 16px;
834
+ justify-content: center;
835
+ gap: 16px;
836
+ .image-block {
837
+ display: block;
838
+ width: 100%;
839
+ border: 2px solid transparent;
840
+ border-radius: 4px;
841
+ }
842
+ .image-block.active {
843
+ border-color: ${e=>e.theme.colors.primaryBase};
844
+ }
845
+ img {
846
+ height: 40px;
847
+ width: auto;
848
+ max-width: 100%;
849
+ }
850
+ }
851
+ `,vt=({status:e})=>"inActive"===e?J.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},J.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===e?J.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},J.default.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),J.default.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===e?J.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},J.default.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"}),J.default.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):J.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},J.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),yt=ae.default.div`
852
+ border-radius: ${e=>e.theme.borderRadius};
853
+ ${e=>e["data-is-in-card"]&&`\n padding: 12px; \n background-color: ${e["data-card-color"]};`}
854
+ `,xt=ae.default.div`
855
+ width: 13px;
856
+ height: 13px;
857
+ margin-right: 10px;
858
+ background-color: ${e=>e["data-color"]};
859
+ border-radius: 50%;
860
+ `,Et=ae.default.div`
861
+ display: flex;
862
+ align-items: center;
863
+ color: ${e=>e.theme.colors.gray800};
864
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
865
+ font-weight: ${e=>e.theme.sizes.fwRegular};
866
+ `,wt=ae.default.div`
867
+ display: flex;
868
+ align-items: center;
869
+ margin-top: 4px;
870
+ color: ${e=>e.theme.colors.gray800};
871
+ font-size: ${e=>e.theme.sizes.fsHeading2};
872
+ font-weight: ${e=>e.theme.sizes.fwSemiBold};
873
+
874
+ & > svg {
875
+ width: 24px;
876
+ height: 24px;
877
+ margin-right: 12px;
878
+ }
879
+
880
+ &[data-size='small'] {
881
+ margin-left: 23px;
882
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
883
+ font-weight: ${e=>e.theme.sizes.fwBold};
884
+ }
885
+ `,Ct=ae.default.table`
886
+ --horizontal-spacing: ${e=>e.theme.horizontalPadding||"19px"};
887
+ --vertical-spacing: ${e=>e.theme.verticalPadding||"26px"};
888
+ width: 100%;
889
+ position: relative;
890
+ `,kt=ae.default.td`
891
+ padding: var(--vertical-spacing) var(--horizontal-spacing);
892
+ vertical-align: middle;
893
+
894
+ &[data-text-align='left'] {
895
+ text-align: left;
896
+ }
897
+ &[data-text-align='right'] {
898
+ text-align: right;
899
+ }
900
+ &[data-text-align='center'] {
901
+ text-align: center;
902
+ }
903
+ `,Bt=ae.default.tr`
904
+ border-bottom: 1px solid ${e=>e.theme.colors.gray100};
905
+
906
+ &[data-is-active='true'] {
907
+ background-color: ${e=>e.theme.colors.gray200};
908
+ }
909
+ `,Tt=({children:e,className:t,style:a,isActive:l,onRowClicked:n,rowId:i})=>J.default.createElement(Bt,{className:t,"data-is-active":l,style:a,onClick:()=>{n&&n(i)}},e),Nt=ae.default.thead`
910
+ th {
911
+ padding: var(--vertical-spacing) var(--horizontal-spacing);
912
+ text-align: left;
913
+
914
+ color: ${e=>e.theme.colors.gray500};
915
+ font-weight: ${e=>e.theme.sizes.fwBold};
916
+ }
917
+ &[data-is-sticky] {
918
+ th {
919
+ position: sticky;
920
+ top: 0;
921
+ background: white;
922
+ border-bottom: 2px solid
923
+ ${e=>e.theme.colors.gray200};
924
+ }
925
+ }
926
+ `,St=ae.default.tbody`
927
+ position: relative;
928
+ &[data-is-striped] {
929
+ > tr:nth-child(odd) {
930
+ background-color: ${e=>e.theme.colors.neutral50};
931
+ }
932
+ }
933
+ &[data-is-hoverable] {
934
+ > tr:hover {
935
+ background-color: ${e=>e.theme.colors.neutral100};
936
+ }
937
+ }
938
+ `;var Dt=Object.freeze({__proto__:null,Table:({children:e,className:t,style:a,horizontalPadding:l,verticalPadding:n})=>J.default.createElement(Ct,{className:t,style:a,theme:{horizontalPadding:l,verticalPadding:n}},e),Cell:({children:e,className:t,style:a,textAlign:l,isTableHead:n})=>J.default.createElement(kt,{className:t,style:a,"data-text-align":l||"left",as:n?"th":"td"},e),Head:({isSticky:e,children:t,className:a,style:l})=>J.default.createElement(Nt,{className:a,"data-is-sticky":e||void 0,style:l},J.default.createElement(Tt,null,t)),Row:Tt,Body:({children:e,className:t,style:a,isHoverable:l,isStriped:n})=>J.default.createElement(St,{className:t,style:a,"data-is-striped":n||void 0,"data-is-hoverable":l||void 0},e)}),Mt=m.createStyles((e=>{const t=m.getStylesRef("itemLabel");return{root:{display:"inline-flex",maxWidth:"100%",borderBottom:`1px solid ${e.colors.neutral[1]}`,"-webkit-overflow-scrolling":"touch",overflowX:"auto",overflowY:"hidden","-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"},columnGap:e.spacing.lg},item:{display:"flex",alignItems:"center",paddingBottom:"4px","&:hover":{cursor:"pointer"},"&.active":{color:e.fn.primaryColor(),borderBottom:`3px solid ${e.fn.primaryColor()}`,bottom:"-1px",position:"relative",[`& .${t}`]:{}},"&[data-event-category] > *":{pointerEvents:"none"}},itemInner:{display:"flex",alignItems:"center"},label:{ref:t},icon:{marginRight:e.spacing.xs}}}));const At=ae.default.div`
939
+ padding: 1rem;
940
+ background: ${e=>e.theme.colors.neutral100};
941
+ .survey-inner-wrapper {
942
+ padding: 1.25rem 1rem 1.5rem;
943
+ background: ${e=>e.theme.colors.white};
944
+ border-radius: ${e=>e.theme.borderRadius};
945
+ .survey-header {
946
+ border-bottom: 1px solid #dbdfe5;
947
+ margin-bottom: 12px;
948
+ .survey-header-text {
949
+ color: ${e=>e.theme.colors.gray500};
950
+ }
951
+ }
952
+
953
+ .survey-contact-submit {
954
+ width: 100%;
955
+ margin-bottom: 1.5rem;
956
+ }
957
+ .term-policy-container {
958
+ width: 70%;
959
+ min-width: 210px;
960
+ max-width: 100%;
961
+ margin: 0 auto 1.5rem;
962
+ text-align: center;
963
+ }
964
+
965
+ .survey-progress-wrapper {
966
+ width: calc(100% + 2rem);
967
+ height: 4px;
968
+ margin-bottom: 1rem;
969
+ margin-left: -1rem;
970
+ background: #e4e8ec;
971
+ .survey-progress {
972
+ width: 100%;
973
+ height: 100%;
974
+ background: #00b16a;
975
+ transform: scaleX(0);
976
+ transform-origin: left;
977
+ transition: transform ease-in-out 0.3s;
978
+ }
979
+ }
980
+
981
+ .survey-button-wrapper {
982
+ display: flex;
983
+ justify-content: flex-end;
984
+ button {
985
+ justify-content: center;
986
+ &[data-has-icon='true'] {
987
+ svg {
988
+ width: 10px;
989
+ height: 10px;
990
+ margin-right: 10px;
991
+ vertical-align: unset;
992
+ }
993
+ }
994
+ &.survey-next-button {
995
+ &[data-has-icon='true'] {
996
+ svg {
997
+ margin-right: 0;
998
+ margin-left: 10px;
999
+ }
1000
+ }
1001
+ }
1002
+ }
1003
+ &[data-center='true'] {
1004
+ justify-content: center;
1005
+ button:only-child {
1006
+ width: 200px;
1007
+ max-width: 80%;
1008
+ }
1009
+ }
1010
+ .survey-prev-button {
1011
+ margin-right: 0.5rem;
1012
+ }
1013
+ }
1014
+ }
1015
+ `,Pt=ae.default.div`
1016
+ position: relative;
1017
+ display: flex;
1018
+ align-items: center;
1019
+ cursor: pointer;
1020
+
1021
+ input {
1022
+ position: relative;
1023
+ width: 20px;
1024
+ height: 20px;
1025
+ flex-shrink: 0;
1026
+ border: solid 1px ${e=>e.theme.colors.gray500};
1027
+ margin-right: 8px;
1028
+ border-radius: 100%;
1029
+ cursor: inherit;
1030
+ transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
1031
+
1032
+ &:hover,
1033
+ &:active {
1034
+ border-color: ${e=>e.theme.colors.primaryBase};
1035
+ box-shadow: 0 0 2px 2px
1036
+ ${e=>e.theme.colors.primary600};
1037
+ }
1038
+
1039
+ &:checked {
1040
+ display: flex;
1041
+ align-items: center;
1042
+ justify-content: center;
1043
+ border-color: ${e=>e.theme.colors.primaryBase};
1044
+ &:after {
1045
+ position: absolute;
1046
+ top: 50%;
1047
+ left: 50%;
1048
+ width: 14px;
1049
+ height: 14px;
1050
+ //left: 3px;
1051
+ //position: absolute;
1052
+ //top: 4px;
1053
+ background-color: ${e=>e.theme.colors.primaryBase};
1054
+ border-radius: 50%;
1055
+ content: '';
1056
+ transform: translate(-50%, -50%);
1057
+ }
1058
+ }
1059
+ }
1060
+
1061
+ label {
1062
+ width: calc(100% - 24px);
1063
+ cursor: inherit;
1064
+ font-weight: ${e=>e.theme.sizes.fwRegular};
1065
+ }
1066
+
1067
+ &[data-disabled='true'] {
1068
+ color: ${e=>e.theme.colors.gray300};
1069
+ cursor: not-allowed;
1070
+ input {
1071
+ border-color: ${e=>e.theme.colors.gray300};
1072
+
1073
+ &:hover {
1074
+ border-color: ${e=>e.theme.colors.gray300};
1075
+ box-shadow: none;
1076
+ }
1077
+ }
1078
+ }
1079
+
1080
+ padding: 16px 20px;
1081
+ border: 0.5px solid transparent;
1082
+ background: #fafafa;
1083
+ border-radius: ${e=>e.theme.borderRadius};
1084
+ &[data-checked='true'] {
1085
+ border: 0.5px solid #2d87f3;
1086
+ background: #f7f9fc;
1087
+ }
1088
+ input {
1089
+ border: solid 2px #737373;
1090
+ margin-right: 0;
1091
+ background: white;
1092
+ &[type='checkbox'] {
1093
+ &:checked {
1094
+ border: 0;
1095
+ background: ${e=>e.theme.colors.primaryBase}
1096
+ url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
1097
+ no-repeat center center;
1098
+ &:after {
1099
+ display: none;
1100
+ }
1101
+ }
1102
+ }
1103
+ }
1104
+
1105
+ &[data-has-image='true'] {
1106
+ position: relative;
1107
+ display: block;
1108
+ padding: 12px;
1109
+ input {
1110
+ position: absolute;
1111
+ top: 20px;
1112
+ right: 20px;
1113
+ }
1114
+ .choice-image-wrapper {
1115
+ position: relative;
1116
+ padding-top: 56.25%;
1117
+ margin-bottom: 0.75rem;
1118
+ img {
1119
+ position: absolute;
1120
+ top: 0;
1121
+ left: 0;
1122
+ width: 100%;
1123
+ height: 100%;
1124
+ border-radius: ${e=>e.theme.borderRadius};
1125
+ object-fit: cover;
1126
+ }
1127
+ }
1128
+ }
1129
+ `,$t=ae.default.div`
1130
+ position: relative;
1131
+ width: 100%;
1132
+ padding-top: min(400px, 100%);
1133
+ .survey-thankyou-wrapper-inner {
1134
+ position: absolute;
1135
+ top: 0;
1136
+ left: 0;
1137
+ display: flex;
1138
+ width: 100%;
1139
+ height: 100%;
1140
+ flex-direction: column;
1141
+ align-items: center;
1142
+ justify-content: center;
1143
+ .survey-thankyou-icon {
1144
+ width: 36%;
1145
+ max-height: 50%;
1146
+ margin-bottom: 1.5rem;
1147
+ }
1148
+ .survey-thankyou-title {
1149
+ margin-bottom: 1rem;
1150
+ text-align: center;
1151
+ }
1152
+ .survey-thankyou-subtitle {
1153
+ text-align: center;
1154
+ > * {
1155
+ text-align: center;
1156
+ }
1157
+ }
1158
+ }
1159
+ `,zt=ae.default.div`
1160
+ .survey-question-text-wrapper {
1161
+ margin-bottom: 24px;
1162
+ .survey-question-title {
1163
+ margin-bottom: 4px;
1164
+ }
1165
+ .survey-question-subtitle,
1166
+ .survey-question-description {
1167
+ color: ${e=>e.theme.colors.gray500};
1168
+ }
1169
+ }
1170
+ .survey-question-image {
1171
+ width: 100%;
1172
+ margin-bottom: 12px;
1173
+ border-radius: ${e=>e.theme.borderRadius};
1174
+ }
1175
+
1176
+ .survey-question-answer-wrapper {
1177
+ margin-bottom: 1.5rem;
1178
+ .survey-question-options-wrapper {
1179
+ display: grid;
1180
+ grid-gap: 0.5rem;
1181
+ grid-template-columns: 1fr;
1182
+ &[data-has-image='true'] {
1183
+ grid-gap: 0.8rem;
1184
+ grid-template-columns: 1fr 1fr;
1185
+ }
1186
+ .survey-question-option-item {
1187
+ label {
1188
+ color: #262626;
1189
+ font-size: 16px;
1190
+ font-style: normal;
1191
+ font-weight: normal;
1192
+ line-height: 24px;
1193
+ }
1194
+ }
1195
+ }
1196
+ .survey-contact-input {
1197
+ margin-bottom: 1rem;
1198
+ &:first-child {
1199
+ margin-top: 1rem;
1200
+ }
1201
+ label {
1202
+ font-weight: 700;
1203
+ }
1204
+ input {
1205
+ margin-top: 6px;
1206
+ }
1207
+ }
1208
+ }
1209
+ `,Lt=({size:e="small",label:t,name:a,checked:l,value:n,className:i,isDisabled:r=!1,onChange:o,hasImage:s,inputType:d,image:c})=>J.default.createElement(Pt,{"data-disabled":r,className:i,"data-size":e,"data-checked":l,onClick:()=>{o(n)},"data-has-image":s},s&&J.default.createElement("div",{className:"choice-image-wrapper"},c&&J.default.createElement("img",{src:c,loading:"lazy"})),J.default.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${a}-${n}`},t),J.default.createElement("input",{type:d,checked:l,name:a,id:`${a}-${n}`,value:n,readOnly:!0})),It=({question:l,description:n,onOptionsChange:i,onTextOptionsChange:r,style:o,className:s})=>{const{type:d,title:c,subtitle:u,image:m,textOptions:p,options:g,name:h,is_multi_select:f}=l,b=!!(null==g?void 0:g.some((e=>e.image))),[v,y]=e.useState([]),[x,E]=e.useState((()=>(null==p?void 0:p.slice())||[]));return e.useEffect((()=>{i&&i(v.slice())}),[!!i,v]),e.useEffect((()=>{r&&r(x)}),[!!r,x]),J.default.createElement(zt,{className:s,style:o},J.default.createElement("div",{className:"survey-question-text-wrapper"},c&&J.default.createElement(a.Heading,{"data-nosubtitle":!u,className:"survey-question-title",tag:"h4"},c),u&&J.default.createElement(t.Text,{className:"survey-question-subtitle",size:"p2"},u),n&&J.default.createElement(t.Text,{className:"survey-question-description",size:"p2"},n)),m&&J.default.createElement("img",{src:m,className:"survey-question-image",loading:"lazy"}),J.default.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===d&&J.default.createElement("div",{"data-has-image":b,className:"survey-question-options-wrapper"},g.map((e=>{var t;return J.default.createElement(Lt,{inputType:"radio",label:e.label,name:h,key:`${h}-${e.value}`,checked:(null===(t=v[0])||void 0===t?void 0:t.value)===e.value,value:e.value,onChange:e=>{y([g.find((t=>t.value===e))])},className:"survey-question-option-item",image:e.image,hasImage:b})}))),"checkbox"===d&&J.default.createElement("div",{"data-has-image":b,className:"survey-question-options-wrapper"},g.map((e=>J.default.createElement(Lt,{inputType:"checkbox",label:e.label,name:h,key:`${h}-${e.value}`,checked:!!v.find((t=>t.value===e.value)),value:e.value,onChange:()=>{const t=v.findIndex((t=>t.value===e.value));y(t>=0?e=>(e.splice(t,1),e.slice()):f?t=>t.concat(e).slice():[e])},className:"survey-question-option-item survey-option-radio",image:e.image,hasImage:b})))),"textbox"===d&&x.map(((e,t)=>e.isTextArea?J.default.createElement(a.TextArea,{key:t,placeholder:e.placeholder,height:"150px",value:e.value,onChange:e=>E((a=>(a[t].value=e,a.slice())))}):J.default.createElement(w.Input,{key:t,value:e.value,name:e.name,size:"md",className:"survey-contact-input",label:e.label,placeholder:e.placeholder,onChange:e=>{E((a=>(a[t].value=e,a.slice())))},type:e.type})))))};var _t;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(_t||(_t={}));const Ot=200,jt=ae.default.div``,Ft=ae.default.div`
1210
+ width: 100vw;
1211
+ height: 100vh;
1212
+ position: fixed;
1213
+ bottom: 0;
1214
+ right: 0;
1215
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1216
+ opacity: 0.83;
1217
+ transition: display ${Ot}ms linear;
1218
+
1219
+ [data-floatmenu-open='true'] & {
1220
+ animation: showBackgroundPanel ${Ot}ms linear 0s normal forwards;
1221
+ }
1222
+
1223
+ [data-floatmenu-open='false'] & {
1224
+ animation: hideBackgroundPanel ${Ot}ms linear 0s normal forwards;
1225
+ }
1226
+
1227
+ @keyframes showBackgroundPanel {
1228
+ 0% {
1229
+ opacity: 0;
1230
+ width: 100vw;
1231
+ height: 100vh;
1232
+ }
1233
+ 100% {
1234
+ opacity: 0.83;
1235
+ }
1236
+ }
1237
+
1238
+ @keyframes hideBackgroundPanel {
1239
+ 0% {
1240
+ width: 100vw;
1241
+ height: 100vh;
1242
+ }
1243
+ 99% {
1244
+ width: 100vw;
1245
+ height: 100vh;
1246
+ }
1247
+ 100% {
1248
+ opacity: 0;
1249
+ width: 0;
1250
+ height: 0;
1251
+ }
1252
+ }
1253
+ `,Ht=ae.default.div`
1254
+ position: fixed;
1255
+ right: 16px;
1256
+ bottom: 40px;
1257
+ `,Rt=ae.default.div`
1258
+ display: flex;
1259
+ flex-direction: column;
1260
+ gap: 16px;
1261
+ transition: all ${Ot}ms ease-in-out;
1262
+ position: fixed;
1263
+ bottom: 112px;
1264
+ right: 16px;
1265
+
1266
+ // scale
1267
+ [data-animation-type='scale'] & {
1268
+ transform-origin: 100% 100%;
1269
+ }
1270
+
1271
+ [data-animation-type='scale'][data-floatmenu-open='true'] & {
1272
+ transform: scale(1);
1273
+ }
1274
+
1275
+ [data-animation-type='scale'][data-floatmenu-open='false'] & {
1276
+ transform: scale(0);
1277
+ bottom: 46px;
1278
+ right: 36px;
1279
+ }
1280
+ `,Gt=ae.default.div`
1281
+ border-radius: 50%;
1282
+ width: 56px;
1283
+ height: 56px;
1284
+ position: relative;
1285
+ cursor: pointer;
1286
+ margin-left: auto;
1287
+ transition: all 0.1s linear;
1288
+ -webkit-tap-highlight-color: transparent;
1289
+ [data-site-type='hb'] & {
1290
+ background-color: ${e=>e.theme.colors.primaryBase||e.theme.colors.primary};
1291
+ &:hover {
1292
+ background-color: ${e=>{var t,a;return e.theme.colors.primaryHover||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.blue_700)}};
1293
+ }
1294
+ }
1295
+ [data-site-type='mb'] & {
1296
+ background-color: #2d87f3;
1297
+ &:hover {
1298
+ background-color: #2c74df;
1299
+ }
1300
+ }
1301
+
1302
+ &:before {
1303
+ content: '';
1304
+ width: 2px;
1305
+ height: 20px;
1306
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1307
+ border-radius: 2px;
1308
+ position: absolute;
1309
+ top: 50%;
1310
+ left: 50%;
1311
+ transform: translate(-50%, -50%);
1312
+ }
1313
+
1314
+ &:after {
1315
+ content: '';
1316
+ width: 20px;
1317
+ height: 2px;
1318
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1319
+ border-radius: 2px;
1320
+ position: absolute;
1321
+ top: 50%;
1322
+ left: 50%;
1323
+ transform: translate(-50%, -50%);
1324
+ }
1325
+
1326
+ [data-floatmenu-open='true'] &:before,
1327
+ [data-floatmenu-open='true'] &:after {
1328
+ animation: toX ${Ot}ms linear 0s normal forwards;
1329
+ }
1330
+
1331
+ [data-floatmenu-open='false'] &:before,
1332
+ [data-floatmenu-open='false'] &:after {
1333
+ animation: toPlus ${Ot}ms linear 0s normal forwards;
1334
+ }
1335
+
1336
+ @keyframes toX {
1337
+ 0% {
1338
+ transform: translate(-50%, -50%) rotateZ(0deg);
1339
+ }
1340
+ 49% {
1341
+ transform: translate(-50%, -50%) rotateZ(0deg);
1342
+ }
1343
+ 50% {
1344
+ width: 2px;
1345
+ height: 2px;
1346
+ transform: translate(-50%, -50%) rotateZ(45deg);
1347
+ }
1348
+ 100% {
1349
+ transform: translate(-50%, -50%) rotateZ(45deg);
1350
+ }
1351
+ }
1352
+
1353
+ @keyframes toPlus {
1354
+ 0% {
1355
+ transform: translate(-50%, -50%) rotateZ(45deg);
1356
+ }
1357
+ 49% {
1358
+ transform: translate(-50%, -50%) rotateZ(45deg);
1359
+ }
1360
+ 50% {
1361
+ width: 2px;
1362
+ height: 2px;
1363
+ transform: translate(-50%, -50%) rotateZ(0deg);
1364
+ }
1365
+ 100% {
1366
+ transform: translate(-50%, -50%) rotateZ(0deg);
1367
+ }
1368
+ }
1369
+ `,Ut=ae.default.div`
1370
+ display: flex;
1371
+ gap: 8px;
1372
+ align-items: center;
1373
+ justify-content: flex-end;
1374
+
1375
+ width: fit-content;
1376
+ margin-left: auto;
1377
+
1378
+ [data-floatmenu-open='true'] {
1379
+ cursor: pointer;
1380
+ }
1381
+ [data-floatmenu-open='false'] {
1382
+ pointer-events: none;
1383
+ }
1384
+
1385
+ [data-animation-type='zoom'] &,
1386
+ [data-animation-type='slide'] & {
1387
+ position: absolute;
1388
+ right: 0;
1389
+ width: max-content;
1390
+ }
1391
+ // slide
1392
+ [data-animation-type='slide'] & {
1393
+ transition: all ${Ot}ms ease-in;
1394
+ }
1395
+
1396
+ [data-animation-type='slide'][data-floatmenu-open='true'] & {
1397
+ animation: showItem ${Ot}ms;
1398
+ }
1399
+ [data-animation-type='slide'][data-floatmenu-open='false'] & {
1400
+ bottom: -64px !important;
1401
+ animation: hideItemOnZoom ${250}ms normal forwards;
1402
+ }
1403
+
1404
+ // zoom
1405
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1406
+ animation: hideItemOnZoom ${250}ms normal forwards;
1407
+ }
1408
+
1409
+ @keyframes showItem {
1410
+ 0% {
1411
+ opacity: 0;
1412
+ }
1413
+
1414
+ 100% {
1415
+ opacity: 1;
1416
+ }
1417
+ }
1418
+
1419
+ @keyframes hideItemOnZoom {
1420
+ 0% {
1421
+ transform: translateX(0);
1422
+ opacity: 1;
1423
+ }
1424
+
1425
+ 99% {
1426
+ transform: translateX(0);
1427
+ opacity: 0.5;
1428
+ }
1429
+
1430
+ 100% {
1431
+ transform: translateX(calc(100% + 16px));
1432
+ opacity: 0;
1433
+ }
1434
+ }
1435
+ `,Wt=ae.default.div`
1436
+ font-size: 14px;
1437
+
1438
+ // zoom
1439
+ [data-animation-type='zoom'] & {
1440
+ transition: transform ${Ot}ms ease-in-out;
1441
+ transform-origin: 100% 0;
1442
+ }
1443
+
1444
+ [data-animation-type='zoom'][data-floatmenu-open='true'] & {
1445
+ transform: scale(1);
1446
+ }
1447
+
1448
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1449
+ transform: scale(0);
1450
+ }
1451
+
1452
+ // slide
1453
+ [data-animation-type='slide'] & {
1454
+ transition: opacity ${Ot}ms;
1455
+ }
1456
+ [data-animation-type='slide'][data-floatmenu-open='true'] & {
1457
+ opacity: 1;
1458
+ }
1459
+ [data-animation-type='slide'][data-floatmenu-open='false'] & {
1460
+ opacity: 0;
1461
+ }
1462
+ `,Vt=ae.default.div`
1463
+ border-radius: 50%;
1464
+ box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
1465
+ width: 48px;
1466
+ height: 48px;
1467
+ display: flex;
1468
+ align-items: center;
1469
+ justify-content: center;
1470
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1471
+
1472
+ // zoom
1473
+ [data-animation-type='zoom'] & {
1474
+ transition: transform ${Ot}ms ease-in-out;
1475
+ }
1476
+
1477
+ [data-animation-type='zoom'][data-floatmenu-open='true'] & {
1478
+ transform: scale(1);
1479
+ }
1480
+
1481
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1482
+ transform: scale(0);
1483
+ }
1484
+
1485
+ > img {
1486
+ width: 24px;
1487
+ height: 24px;
1488
+ object-fit: contain;
1489
+ }
1490
+ `,qt=ae.default.div`
1491
+ padding: 16px;
1492
+ width: 375px;
1493
+ word-wrap: break-word;
1494
+ word-break: break-word;
1495
+ ${l.MediaQueries.mbDown} {
1496
+ width: 100%;
1497
+ }
1498
+ &[data-theme='helloSites'] {
1499
+ background: ${e=>e.theme.colors.secondaryBase};
1500
+ box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.1);
1501
+ }
1502
+ &[data-theme='marryBaby'] {
1503
+ border: none;
1504
+ background: ${e=>e.theme.mbColors.pink};
1505
+ border-radius: 12px 12px 0 0;
1506
+ }
1507
+ &[data-is-open='false'] {
1508
+ display: none;
1509
+ }
1510
+ &[data-default-position='true'] {
1511
+ position: fixed;
1512
+ z-index: 1000;
1513
+ bottom: 0;
1514
+ right: 0;
1515
+ ${l.MediaQueries.mbDown} {
1516
+ left: 0;
1517
+ right: unset;
1518
+ }
1519
+ }
1520
+ `,Qt=ae.default.p`
1521
+ position: relative;
1522
+ padding-left: 24px;
1523
+ color: ${e=>e.theme.colors.white};
1524
+ font-size: 14px;
1525
+ font-weight: 600;
1526
+ line-height: 22px;
1527
+ &[data-has-content='true'] {
1528
+ ::before {
1529
+ position: absolute;
1530
+ top: 0;
1531
+ bottom: 0;
1532
+ left: 0;
1533
+ width: 16px;
1534
+ height: 16px;
1535
+ margin: auto 0;
1536
+ content: url("data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.00001 1.33331C4.32001 1.33331 1.33334 4.31998 1.33334 7.99998C1.33334 11.68 4.32001 14.6666 8.00001 14.6666C11.68 14.6666 14.6667 11.68 14.6667 7.99998C14.6667 4.31998 11.68 1.33331 8.00001 1.33331ZM8.00001 11.3333C7.63334 11.3333 7.33334 11.0333 7.33334 10.6666V7.99998C7.33334 7.63331 7.63334 7.33331 8.00001 7.33331C8.36668 7.33331 8.66668 7.63331 8.66668 7.99998V10.6666C8.66668 11.0333 8.36668 11.3333 8.00001 11.3333ZM7.33334 5.99998H8.66668V4.66665H7.33334V5.99998Z' fill='white'/%3e%3c/svg%3e");
1537
+ }
1538
+ }
1539
+ `,Zt=ae.default.p`
1540
+ margin-top: 2px;
1541
+ color: ${e=>e.theme.colors.white};
1542
+ font-size: 12px;
1543
+ font-weight: 400;
1544
+ line-height: 18px;
1545
+ a {
1546
+ color: ${e=>e.theme.colors.white};
1547
+ text-decoration: none;
1548
+ text-decoration-line: underline;
1549
+ }
1550
+ `,Yt=ae.default.div`
1551
+ display: flex;
1552
+ align-items: center;
1553
+ margin-top: 8px;
1554
+ gap: 16px;
1555
+ `,Kt=ae.default.div`
1556
+ padding: 7px 28px;
1557
+ background: ${e=>e.theme.colors.white};
1558
+ border-radius: ${e=>e.theme.borderRadius};
1559
+ color: ${e=>e.theme.colors.secondaryBase};
1560
+ cursor: pointer;
1561
+ font-size: 12px;
1562
+ font-weight: 600;
1563
+ line-height: 18px;
1564
+ `,Xt=ae.default.a`
1565
+ color: ${e=>e.theme.colors.white};
1566
+ font-size: 12px;
1567
+ font-weight: 600;
1568
+ line-height: 22px;
1569
+ text-decoration: none;
1570
+ text-decoration-line: underline;
1571
+ `,Jt=f.keyframes`
1572
+ from {
1573
+ transform: translateY(100%);
1574
+ visibility: visible;
1575
+ }
1576
+
1577
+ to {
1578
+ transform: translateY(0);
1579
+ }
1580
+ `,ea=f.keyframes`
1581
+ from {
1582
+ transform: translate(0, 0);
1583
+ }
1584
+
1585
+ to {
1586
+ visibility: hidden;
1587
+ transform: translate(0, 100%);
1588
+ }
1589
+ `,ta=ae.default.div`
1590
+ cursor: pointer;
1591
+ display: flex;
1592
+ flex-direction: column;
1593
+ align-items: center;
1594
+ justify-items: center;
1595
+ gap: 4px;
1596
+
1597
+ .mobile-navigation-label {
1598
+ font-weight: 500;
1599
+ font-size: 10px;
1600
+ line-height: 16px;
1601
+ color: ${c.theme.colors.gray600};
1602
+ overflow: hidden;
1603
+ text-overflow: ellipsis;
1604
+ white-space: nowrap;
1605
+ width: 60px;
1606
+ text-align: center;
1607
+ ${l.MediaQueries.mbDown} {
1608
+ max-width: 60px;
1609
+ }
1610
+ }
1611
+
1612
+ .mobile-navigation-icon {
1613
+ position: relative;
1614
+ height: 24px;
1615
+ &[data-no-label='true'] {
1616
+ border-radius: 50%;
1617
+ display: flex;
1618
+ flex-direction: column;
1619
+ justify-content: center;
1620
+ align-items: center;
1621
+ padding: 0px;
1622
+ gap: 16px;
1623
+ width: 40px;
1624
+ height: 40px;
1625
+ }
1626
+ }
1627
+
1628
+ &[data-is-special='true'] {
1629
+ display: flex;
1630
+ flex-direction: row;
1631
+ align-items: center;
1632
+ padding: 4px 12px 4px 6px;
1633
+ gap: 4px;
1634
+
1635
+ min-width: 152px;
1636
+ height: 32px;
1637
+ /* Neutral/Neutral-50 */
1638
+ background: ${c.theme.colors.primary50};
1639
+ border-radius: 20px;
1640
+ flex-grow: 1;
1641
+ .mobile-navigation-icon {
1642
+ &[data-no-label='true'] {
1643
+ width: 24px;
1644
+ height: 24px;
1645
+ }
1646
+ }
1647
+ .mobile-navigation-label {
1648
+ max-width: max-content;
1649
+ color: ${c.theme.colors.primaryBase};
1650
+ }
1651
+ }
1652
+
1653
+ &[data-is-active='true'] {
1654
+ .mobile-navigation-label {
1655
+ color: ${c.theme.colors.primaryBase};
1656
+ }
1657
+ }
1658
+
1659
+ &[data-is-disabled='true'] {
1660
+ opacity: 0.2;
1661
+ }
1662
+ `,aa=ae.default.div`
1663
+ z-index: 100;
1664
+ position: fixed;
1665
+ bottom: 0;
1666
+ left: 0;
1667
+ width: 100%;
1668
+ height: 100%;
1669
+ max-height: 56px;
1670
+ min-height: 56px;
1671
+ display: flex;
1672
+ height: 100%;
1673
+ align-items: center;
1674
+ justify-content: space-evenly;
1675
+ background-color: ${c.theme.colors.white};
1676
+ @supports (padding-bottom: env(safe-area-inset-bottom)) {
1677
+ min-height: calc(56px + env(safe-area-inset-bottom));
1678
+ max-height: calc(56px + env(safe-area-inset-bottom));
1679
+ padding-bottom: env(safe-area-inset-bottom);
1680
+ }
1681
+ & > div {
1682
+ flex: 1;
1683
+ }
1684
+ a {
1685
+ text-decoration: none;
1686
+ }
1687
+ &[data-is-collapsed='true'] {
1688
+ animation: ${ea} 500ms ease-in-out forwards;
1689
+ }
1690
+
1691
+ &[data-is-collapsed='false'] {
1692
+ animation: ${Jt} 500ms ease-in-out forwards;
1693
+ }
1694
+ &[data-template='health-tool'] {
1695
+ height: 44px;
1696
+ max-height: 44px;
1697
+ min-height: 44px;
1698
+ justify-content: space-between;
1699
+ & > div {
1700
+ flex: 0;
1701
+ }
1702
+ }
1703
+ `,la=ae.default.span`
1704
+ position: absolute;
1705
+ left: 100%;
1706
+ transform: translate(-10px, calc(-50% + 3px));
1707
+ background-color: ${c.theme.colors.green800};
1708
+ border-radius: 32px;
1709
+ border: 2px solid ${c.theme.colors.white};
1710
+ padding: 1px 4px;
1711
+ display: flex;
1712
+ flex-direction: column;
1713
+ justify-content: center;
1714
+ align-items: center;
1715
+ height: 20px;
1716
+ aspect-ratio: 1;
1717
+ &[data-no-label='true'] {
1718
+ left: 0;
1719
+ transform: translate(22px, -50%);
1720
+ }
1721
+ `;ae.default.div`
1722
+ position: absolute;
1723
+ top: 0;
1724
+ left: 0;
1725
+ height: 3px;
1726
+ background-color: ${c.theme.colors.primaryBase};
1727
+ transition: width 150ms linear;
1728
+ `,ae.default.div`
1729
+ a {
1730
+ text-decoration: none;
1731
+ }
1732
+ `;const na=e=>{var{badgeAmount:a,disabled:l=!1,hasBadge:n=!1,icon:i,isActive:r=!1,isSpecial:o=!1,label:s}=e,d=u.__rest(e,["badgeAmount","disabled","hasBadge","icon","isActive","isSpecial","label"]);return J.default.createElement(ta,Object.assign({"data-is-special":o,"data-is-active":r,"data-is-disabled":l},d),J.default.createElement("div",{className:"mobile-navigation-icon","data-no-label":!Boolean(s)},n&&J.default.createElement(la,{"data-no-label":!Boolean(s)},J.default.createElement(t.Text,{size:"s5",weight:"semiBold",color:o?c.theme.colors.primaryBase:c.theme.colors.white},a)),i),s&&J.default.createElement("span",{className:"mobile-navigation-label"},s))},ia=e=>{var{children:t,on:a="",isCollapsed:l=!1,template:n="homepage"}=e,i=u.__rest(e,["children","on","isCollapsed","template"]);return J.default.createElement(aa,Object.assign({on:a,"data-is-collapsed":l,"data-template":n},i),t)};ia.Icon=na;ae.default.div`
1733
+ margin-top: 13px;
1734
+ &[data-is-mobile='false'] {
1735
+ display: flex;
1736
+ width: 60%;
1737
+ min-width: min(600px, 100%);
1738
+ align-items: center;
1739
+ & > :first-child {
1740
+ margin-right: 18px;
1741
+ }
1742
+ }
1743
+ `,ae.default.div`
1744
+ &[data-is-mobile='false'] {
1745
+ max-width: 540px;
1746
+ }
1747
+ ${l.MediaQueries.tdUp} {
1748
+ padding-right: 120px;
1749
+ }
1750
+ `,ae.default.div`
1751
+ display: flex;
1752
+ align-items: flex-start;
1753
+ margin-top: 10px;
1754
+ color: ${e=>e.theme.colors.white};
1755
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
1756
+ > img {
1757
+ margin-top: 2px;
1758
+ margin-right: 4px;
1759
+ }
1760
+ &[data-is-mobile='false'] {
1761
+ margin-top: 12px;
1762
+ > img {
1763
+ width: 16px;
1764
+ height: 16px;
1765
+ }
1766
+ }
1767
+ &[data-is-mobile='true'] {
1768
+ > img {
1769
+ width: 14px;
1770
+ height: 14px;
1771
+ }
1772
+ }
1773
+ `;const ra=ae.default.div`
1774
+ position: absolute;
1775
+ z-index: 0;
1776
+ right: 0;
1777
+ bottom: -50px;
1778
+ display: flex;
1779
+
1780
+ align-items: center;
1781
+
1782
+ ${l.MediaQueries.mbUp} {
1783
+ img {
1784
+ width: 190px;
1785
+ height: 155px;
1786
+ }
1787
+ }
1788
+ ${l.MediaQueries.mbDown} {
1789
+ width: 70px;
1790
+ }
1791
+ `,oa="hhgcomp-toolbanner-iconcontainer";a.getDefaultClassWrapper(ra,oa),ae.default.div`
1792
+ position: relative;
1793
+ z-index: 1;
1794
+ max-width: 100%;
1795
+ ${l.MediaQueries.mbUp} {
1796
+ padding: 23px 40px;
1797
+ max-width: calc(100% - 210px);
1798
+ &[data-is-side='true'] {
1799
+ max-width: calc(100% - 120px);
1800
+ }
1801
+ }
1802
+ `;const sa=ae.default.div`
1803
+ position: relative;
1804
+ `,da="hhgcomp-toolbanner-inner";a.getDefaultClassWrapper(sa,da);const ca=ae.default.div`
1805
+ position: relative;
1806
+ width: 100%;
1807
+ height: 100%;
1808
+ background: ${e=>e.bgColor};
1809
+ background-color: inherit;
1810
+
1811
+ &[data-site='marryBaby'] {
1812
+ background-color: ${e=>e["data-banner-color"]||"#5EC08F"};
1813
+ background-image: none;
1814
+ padding-bottom: 0;
1815
+ &[data-is-embedded='true'] {
1816
+ border-top-left-radius: 16px;
1817
+ border-top-right-radius: 16px;
1818
+ }
1819
+ }
1820
+ `,ua="hhgcomp-toolbanner-wrapper",ma=a.getDefaultClassWrapper(ca,ua),pa=ae.default.div`
1821
+ width: 100%;
1822
+ ${l.MediaQueries.mbDown} {
1823
+ padding-bottom: 24px;
1824
+ }
1825
+
1826
+ a {
1827
+ text-decoration: none;
1828
+ color: inherit;
1829
+ }
1830
+
1831
+ &[data-site='marryBaby'] {
1832
+ a {
1833
+ text-decoration: underline;
1834
+ }
1835
+ ${l.MediaQueries.mbDown} {
1836
+ padding-bottom: 0;
1837
+ }
1838
+ }
1839
+
1840
+ ${l.MediaQueries.tdDown} {
1841
+ height: auto;
1842
+ .${ua} {
1843
+ .${da} {
1844
+ display: flex;
1845
+ align-items: center;
1846
+ ${l.MediaQueries.mbDown} {
1847
+ justify-content: space-between;
1848
+ }
1849
+ .${oa} {
1850
+ position: relative;
1851
+ right: -50px;
1852
+ bottom: -20px;
1853
+ width: 110px;
1854
+ min-width: 0;
1855
+ height: auto;
1856
+ min-height: 0;
1857
+ align-self: flex-end;
1858
+ margin-bottom: -20px;
1859
+ ${l.MediaQueries.mbDown} {
1860
+ right: unset;
1861
+ }
1862
+ }
1863
+ }
1864
+ }
1865
+ }
1866
+ `,ga=ae.default.div`
1867
+ display: flex;
1868
+ flex-direction: row;
1869
+ align-items: center;
1870
+ padding: 16px 24px;
1871
+ gap: 16px;
1872
+ width: 100%;
1873
+ background-color: ;
1874
+ ${l.MediaQueries.mbDown} {
1875
+ padding: 16px 0;
1876
+ }
1877
+ `,ha=ae.default.div`
1878
+ background: #ffffff;
1879
+ border-radius: 16px;
1880
+ width: 48px;
1881
+ height: 48px;
1882
+ position: relative;
1883
+
1884
+ img {
1885
+ position: absolute;
1886
+ top: 50%;
1887
+ left: 50%;
1888
+ max-width: 24px;
1889
+ max-height: 24px;
1890
+ transform: translate(-50%, -50%);
1891
+ }
1892
+ `,fa=ae.default.div`
1893
+ display: flex;
1894
+ align-items: flex-start;
1895
+ flex-direction: column;
1896
+ justify-content: space-between;
1897
+ gap: 0;
1898
+ width: 100%;
1899
+ `,ba=ae.default.div`
1900
+ display: flex;
1901
+ align-items: flex-start;
1902
+ font-weight: 400;
1903
+ font-size: 12px;
1904
+ line-height: 18px;
1905
+ letter-spacing: -0.2px;
1906
+ color: #f3f3f3;
1907
+
1908
+ > img {
1909
+ margin-top: 2px;
1910
+ margin-right: 4px;
1911
+ }
1912
+ &[data-is-mobile='false'] {
1913
+ > img {
1914
+ width: 16px;
1915
+ height: 16px;
1916
+ }
1917
+ }
1918
+ &[data-is-mobile='true'] {
1919
+ > img {
1920
+ width: 14px;
1921
+ height: 14px;
1922
+ }
1923
+ }
1924
+ `,va=({className:e,heading:l,color:n="blue",isMobile:i,bannerUrl:o,bannerUrlLarge:s,bannerColor:d,medicalReview:c={link:"#",reviewer:"",date:""},icon:u,style:p,siteType:g,isEmbeded:h})=>{var f,b;const{t:v}=r.useTranslations(),y=m.useMantineTheme(),x=i?o:s||o,E={pink:[8,6]},w=y.colors[n]||y.colors.blue,C=(null==c?void 0:c.reviewer)?J.default.createElement(t.Text,{size:"label2",color:"#fff",as:"div",className:"embedded-review",sx:{a:{textUnderlineOffset:"2px",color:"#fff",textDecoration:"underline"}}},J.default.createElement("div",{dangerouslySetInnerHTML:{__html:v("toolPage.toolReviewer",{expert_name:`<a href="${c.link}">${c.reviewer.trim()}</a>`,date:c.date})}})):null;return J.default.createElement(pa,{"data-is-mobile":i,style:p,"data-site":g},J.default.createElement(ma,{className:e,"data-banner-url":x,"data-is-mobile":i,"data-site":g,"data-banner-color":d,"data-is-embedded":h,bgColor:`linear-gradient(71deg, ${null==w?void 0:w[(null===(f=E[n])||void 0===f?void 0:f[0])||7]} -4.07%, ${null==w?void 0:w[(null===(b=E[n])||void 0===b?void 0:b[1])||4]} 90.13%)}`},"marryBaby"===g&&h?J.default.createElement(ga,null,J.default.createElement(ha,null,u),J.default.createElement(fa,null,J.default.createElement(a.Heading,{color:"white",tag:"h5",as:"h2"},l),c&&J.default.createElement(ba,{"data-is-mobile":i},C))):J.default.createElement(m.Flex,{gap:m.rem(24),align:"center",justify:"space-between",sx:{padding:`${m.rem(13)} ${m.rem(20)}`,gap:m.rem(24)}},J.default.createElement(m.Box,null,J.default.createElement(a.Heading,{tag:"h5",as:"h2",color:"#fff"},l),c&&J.default.createElement(t.Text,{size:"n1",as:"div"},C)),J.default.createElement(m.Flex,{justify:"center",align:"center",sx:e=>{var t,a;return{width:m.rem(64),height:m.rem(64),borderRadius:"50%",background:(null===(a=null===(t=e.colors)||void 0===t?void 0:t[n])||void 0===a?void 0:a[0])||e.colors.blue[0],flexShrink:0,img:{maxWidth:m.rem(48),maxHeight:m.rem(48)},[e.fn.smallerThan("sm")]:{width:m.rem(56),height:m.rem(56),img:{maxWidth:m.rem(40),maxHeight:m.rem(40)}}}}},u))))},ya=ae.default(D.Dropdown)`
1925
+ border-color: ${e=>e.theme.mbColors.lightGray};
1926
+ background-color: ${e=>e.theme.colors.white};
1927
+ border-radius: 16px;
1928
+ transition: all 0.2s ease;
1929
+ &:hover {
1930
+ border-color: ${e=>e.theme.mbColors.pink};
1931
+ box-shadow: none;
1932
+ }
1933
+
1934
+ & > ul {
1935
+ z-index: ${a.Z_INDEX.menuSearchPopup};
1936
+ max-height: 300px;
1937
+ overflow-y: auto;
1938
+ }
1939
+
1940
+ ${e=>e.groupedWithLabel&&f.css`
1941
+ & > div:first-child {
1942
+ color: ${e=>e.theme.mbColors.midGray};
1943
+ font-size: 12px;
1944
+ }
1945
+ `}
1946
+
1947
+ &[data-dropdown-open='true'] {
1948
+ border-color: ${e=>e.theme.mbColors.pink};
1949
+ }
1950
+ `;ae.default(a.PureInput)`
1951
+ & input {
1952
+ border-color: ${e=>e.theme.mbColors.lightGray};
1953
+ background-color: ${e=>e.theme.colors.white};
1954
+ border-radius: 16px;
1955
+ transition: all 0.2s ease;
1956
+ &:focus,
1957
+ &:hover {
1958
+ border-color: ${e=>e.theme.mbColors.pink};
1959
+ box-shadow: none;
1960
+ }
1961
+ }
1962
+
1963
+ & .displayIcon {
1964
+ pointer-events: none;
1965
+ }
1966
+ `;const xa=ae.default(w.Input)`
1967
+ & label {
1968
+ position: absolute;
1969
+ z-index: 1;
1970
+ top: 16px;
1971
+
1972
+ left: 16px;
1973
+ color: ${e=>e.theme.mbColors.midGray};
1974
+ pointer-events: none;
1975
+ transition: all 0.2s ease;
1976
+ white-space: nowrap;
1977
+ overflow: hidden;
1978
+ text-overflow: ellipsis;
1979
+ max-width: 240px;
1980
+
1981
+ &[data-size='label2'] {
1982
+ font-size: 12px;
1983
+ }
1984
+
1985
+ ${l.MediaQueries.tdDown} {
1986
+ max-width: 220px;
1987
+ }
1988
+ }
1989
+ & input {
1990
+ ::placeholder {
1991
+ color: ${e=>e.theme.mbColors.gray};
1992
+ font-size: 14px;
1993
+ }
1994
+
1995
+ ::-webkit-input-placeholder {
1996
+ /* Chrome/Opera/Safari */
1997
+ color: ${e=>e.theme.mbColors.gray};
1998
+ font-size: 14px;
1999
+ }
2000
+ ::-moz-placeholder {
2001
+ /* Firefox 19+ */
2002
+ color: ${e=>e.theme.mbColors.gray};
2003
+ font-size: 14px;
2004
+ }
2005
+ :-ms-input-placeholder {
2006
+ /* IE 10+ */
2007
+ color: ${e=>e.theme.mbColors.gray};
2008
+ font-size: 14px;
2009
+ }
2010
+ :-moz-placeholder {
2011
+ /* Firefox 18- */
2012
+ color: ${e=>e.theme.mbColors.gray};
2013
+ font-size: 14px;
2014
+ }
2015
+ height: ${e=>"sm"===e.size?48:72}px;
2016
+ padding-top: 27px;
2017
+ border-color: ${e=>e.theme.mbColors.lightGray};
2018
+ background-color: ${e=>e.theme.colors.white};
2019
+ border-radius: 16px;
2020
+ transition: all 0.2s ease;
2021
+ padding-top: ${e=>e.value?"38px":"27px"};
2022
+
2023
+ &:focus,
2024
+ &:hover {
2025
+ border-color: ${e=>e.theme.mbColors.pink};
2026
+ box-shadow: none;
2027
+ }
2028
+ }
2029
+
2030
+ &[data-has-action-icon] {
2031
+ input {
2032
+ padding-top: ${e=>e.value?"38px":"27px"};
2033
+ padding-bottom: ${e=>e.value?"16px":"27px"};
2034
+ }
2035
+
2036
+ label {
2037
+ position: absolute;
2038
+ z-index: 1;
2039
+ top: 16px;
2040
+ padding-right: 46px;
2041
+ }
2042
+ }
2043
+ `,Ea=ae.default.div`
2044
+ width: 100%;
2045
+ `,wa=ae.default.div`
2046
+ #due-date-dropdown {
2047
+ z-index: 9;
2048
+ width: 100%;
2049
+ min-width: unset;
2050
+ max-width: unset;
2051
+
2052
+ ${l.MediaQueries.mbDown} {
2053
+ font-size: 14px;
2054
+ }
2055
+ ${l.MediaQueries.tdUp} {
2056
+ font-size: 16px;
2057
+ &[data-is-side='true'] {
2058
+ font-size: 14px;
2059
+ }
2060
+ }
2061
+ color: ${e=>e.theme.colors.gray800};
2062
+ > div {
2063
+ white-space: nowrap;
2064
+ overflow: hidden;
2065
+ text-overflow: ellipsis;
2066
+ }
2067
+ }
2068
+ display: flex;
2069
+ width: 100%;
2070
+ justify-content: space-between;
2071
+ `,Ca=ae.default(Ea)`
2072
+ .due-date-input {
2073
+ width: 100%;
2074
+ min-width: unset;
2075
+ max-width: unset;
2076
+ color: ${e=>e.theme.colors.gray800};
2077
+ }
2078
+ .due-date-calculate-button {
2079
+ margin-right: auto;
2080
+ margin-left: auto;
2081
+ }
2082
+ input {
2083
+ &[data-is-side='true'] {
2084
+ ${l.MediaQueries.tdUp} {
2085
+ font-size: 14px;
2086
+ }
2087
+ }
2088
+ ${l.MediaQueries.mbDown} {
2089
+ font-size: 14px;
2090
+ }
2091
+ ${l.MediaQueries.tdUp} {
2092
+ font-size: 16px;
2093
+ }
2094
+ }
2095
+ `;ae.default.div`
2096
+ display: flex;
2097
+ align-items: right;
2098
+
2099
+ & > p {
2100
+ display: inline-block;
2101
+ border-bottom: solid 1px
2102
+ ${e=>e.theme.colors.primaryBase};
2103
+ margin-bottom: 24px;
2104
+ margin-left: auto;
2105
+ color: ${e=>e.theme.colors.primaryBase};
2106
+ cursor: pointer;
2107
+ font-size: 11px;
2108
+ line-height: 16px;
2109
+ text-align: right;
2110
+ }
2111
+ `;const ka=ae.default.img`
2112
+ img& {
2113
+ width: 16px;
2114
+ height: 16px;
2115
+ }
2116
+ `;var Ba;ae.default(ka)`
2117
+ margin-right: 4px;
2118
+ `,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(Ba||(Ba={}));const Ta="yyyy-MM-dd",Na=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Sa=({locale:l,onClick:i,siteType:o,pageUrl:d})=>{const{t:u}=r.useTranslations(),[m,p]=e.useState(new Date);return J.default.createElement(J.default.Fragment,null,J.default.createElement(Ca,{className:"input-form","data-is-side":!0},"marryBaby"===o?J.default.createElement(xa,{label:u("dueDatePage.conceptionDate"),name:"date",size:"md",value:Na(m),CustomInput:J.default.createElement(Qe,{onChange:e=>{p(e)},placeholder:"dd/mm/yyyy",pickedDate:m,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>J.default.createElement(w.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:m&&te.default(m).format(a.DUE_DATE_FORMAT)}))}),actionIcon:J.default.createElement(t.Icon.CalendarMB,{size:32})}):J.default.createElement(w.Input,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},u("dueDatePage.conceptionDate")),value:Na(m),name:"date",size:"md",className:"due-date-input",CustomInput:J.default.createElement(Qe,{customInput:e=>J.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Na(m)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:m,displayDateFormat:T.DATE_FORMAT,onChange:e=>{p(e)},placeholder:"placeholder"})})),J.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===o?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:d,onClick:()=>{i((e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:Ba.conception+1,conception_date:k.format(e,Ta),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}})(m),`${s.QUERY_HEALTH_TOOL.type}=1&sd=${k.format(m,Ta)}&${s.QUERY_HEALTH_TOOL.additional}= `)},role:"button"},u("dueDatePage.lastPeriod.calculate")))},Da=({locale:l,onClick:i,siteType:o,pageUrl:d})=>{const{t:u}=r.useTranslations(),[m,p]=e.useState(new Date),[g,h]=e.useState("3");return J.default.createElement(J.default.Fragment,null,J.default.createElement(Ca,{className:"input-form","data-is-side":!0},"marryBaby"===o?J.default.createElement(xa,{label:u("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:Na(m),CustomInput:J.default.createElement(Qe,{onChange:e=>{p(e)},placeholder:"dd/mm/yyyy",pickedDate:m,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>J.default.createElement(w.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:m&&te.default(m).format(a.DUE_DATE_FORMAT)}))}),actionIcon:J.default.createElement(t.Icon.CalendarMB,{size:32})}):J.default.createElement(w.Input,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray700,style:{marginBottom:"9px",flex:"1"}},u("dueDatePage.ivf.transferDate")),value:Na(m),name:"date",size:"md",className:"due-date-input",CustomInput:J.default.createElement(Qe,{customInput:e=>J.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Na(m)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:m,displayDateFormat:T.DATE_FORMAT,onChange:e=>{p(e)},placeholder:"placeholder"})})),J.default.createElement("div",{style:{width:"100%"}},J.default.createElement(st,{id:"radio-transfer-date",direction:"vertical",size:"small",value:g,onChange:e=>h(e),options:[{value:"3",label:u("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:u("dueDatePage.ivf.transferDateRadio",{number:5})}]})),J.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===o?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:d,onClick:()=>{i(((e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:Ba.IVF+1,ivf_transfer_date:k.format(e,Ta),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}})(m,Number(g)),`${s.QUERY_HEALTH_TOOL.type}=2&${s.QUERY_HEALTH_TOOL.startDate}=${k.format(m,Ta)}&${s.QUERY_HEALTH_TOOL.additional}=${g}`)},role:"button"},u("dueDatePage.lastPeriod.calculate")))},Ma=({locale:l,onClick:i,siteType:o,pageUrl:d})=>{const{t:u}=r.useTranslations(),[m,p]=e.useState(28),[g,h]=e.useState(new Date);return J.default.createElement(J.default.Fragment,null,J.default.createElement(Ca,{className:"input-form","data-is-side":!0},"marryBaby"===o?J.default.createElement(xa,{label:u("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:Na(g),CustomInput:J.default.createElement(Qe,{onChange:e=>{h(e)},placeholder:"dd/mm/yyyy",pickedDate:g,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>J.default.createElement(w.Input,Object.assign({name:"birthday",size:"md"},e,{value:g&&te.default(g).format(a.DUE_DATE_FORMAT)}))}),actionIcon:J.default.createElement(t.Icon.CalendarMB,{size:32})}):J.default.createElement(w.Input,{className:"input-section due-date-input",label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},u("dueDatePage.lastPeriod.lastPeriodLabel")),value:Na(g),name:"date",size:"md",CustomInput:J.default.createElement(Qe,{customInput:e=>J.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Na(g)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:g,displayDateFormat:T.DATE_FORMAT,onChange:e=>{h(e)},placeholder:"placeholder"})})),J.default.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===o?"marryBaby":""},"marryBaby"===o?J.default.createElement(S.MarryBabyText,{type:"bodytext-3",color:c.theme.mbColors.midGray},u("dueDatePage.lastPeriod.periodLengthLabel")):J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"0.5rem"}},u("dueDatePage.lastPeriod.periodLengthLabel")),J.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===o&&J.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:c.theme.colors.gray600},m),J.default.createElement(N.Slider,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==o,withControl:"marryBaby"!==o,onChange:p,value:m,label:"marryBaby"!==o?void 0:null}))),J.default.createElement(n.Button,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:d,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===o?"secondary":"primary",onClick:()=>i(((e,t)=>{const a=t-21+272,l=new Date(e);return l.setDate(l.getDate()+a),{startDate:e,dueDate:l,otherInfo:{method:Ba.lastPeriod+1,first_day:k.format(e,Ta),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}})(g,m),`${s.QUERY_HEALTH_TOOL.type}=0&${s.QUERY_HEALTH_TOOL.startDate}=${k.format(g,Ta)}&${s.QUERY_HEALTH_TOOL.additional}=${m}`),role:"button"},u("dueDatePage.lastPeriod.calculate")))};ae.default.div`
2119
+ padding: 0;
2120
+ background-color: white;
2121
+ `,ae.default.div`
2122
+ padding-bottom: 2px;
2123
+ margin: auto;
2124
+ ${l.MediaQueries.mbUp} {
2125
+ width: 100%;
2126
+ padding: 24px;
2127
+ }
2128
+ `;const Aa=ae.default.div`
2129
+ &[data-is-side='true'] {
2130
+ width: 100%;
2131
+ margin-bottom: 0;
2132
+ }
2133
+ ${l.MediaQueries.mbDown} {
2134
+ width: 100%;
2135
+ margin-bottom: 0;
2136
+ }
2137
+
2138
+ margin-bottom: 24px;
2139
+
2140
+ & > :not(:last-child) {
2141
+ margin-bottom: 8px;
2142
+ }
2143
+
2144
+ .gender-selector {
2145
+ & > :not(:last-child) {
2146
+ margin-right: 16px;
2147
+ }
2148
+
2149
+ & > div {
2150
+ width: calc(50% - 8px);
2151
+
2152
+ ${l.MediaQueries.mbUp} {
2153
+ max-width: 186px;
2154
+ justify-self: left;
2155
+ }
2156
+ }
2157
+ }
2158
+ `,Pa=ae.default.div`
2159
+ margin-bottom: 20px;
2160
+ width: 100%;
2161
+
2162
+ & > :not(:last-child) {
2163
+ margin-bottom: 8px;
2164
+ }
2165
+ .gender-selector {
2166
+ & > div {
2167
+ width: calc(50% - 8px);
2168
+ }
2169
+ }
2170
+ `,$a=ae.default.div`
2171
+ width: 100%;
2172
+ display: flex;
2173
+ justify-content: center;
2174
+ ${l.MediaQueries.mbUp} {
2175
+ padding: 0 16px;
2176
+ &[data-is-side='true'] {
2177
+ margin-top: 24px;
2178
+ }
2179
+ }
2180
+
2181
+ ${l.MediaQueries.mbDown} {
2182
+ margin-top: 24px;
2183
+ &[data-site='marryBaby'] {
2184
+ margin-top: 12px;
2185
+ }
2186
+ }
2187
+ & > :not(:last-child) {
2188
+ margin-bottom: 8px;
2189
+ }
2190
+
2191
+ button {
2192
+ width: 100%;
2193
+ margin: auto;
2194
+ ${l.MediaQueries.mbUp} {
2195
+ max-width: 200px;
2196
+ }
2197
+ }
2198
+ `;ae.default.div`
2199
+ ${l.MediaQueries.mbUp} {
2200
+ padding-left: 16px;
2201
+ padding-right: 16px;
2202
+ }
2203
+
2204
+ padding-bottom: 60px;
2205
+ `,ae.default.div`
2206
+ & > :not(:last-child) {
2207
+ margin-bottom: 28px;
2208
+ }
2209
+ `,ae.default.div`
2210
+ ${l.MediaQueries.mbUp} {
2211
+ padding-left: 16px;
2212
+ padding-right: 16px;
2213
+ }
2214
+
2215
+ padding-top: 32px;
2216
+
2217
+ color: ${e=>e.theme.colors.gray800};
2218
+ text-align: center;
2219
+
2220
+ & > :last-child {
2221
+ margin-top: 8px;
2222
+ }
2223
+ `,ae.default.div`
2224
+ margin-bottom: 32px;
2225
+
2226
+ ${l.MediaQueries.mbUp} {
2227
+ padding-left: 16px;
2228
+ padding-right: 16px;
2229
+ }
2230
+ `,ae.default.div`
2231
+ margin-bottom: 32px;
2232
+
2233
+ ${l.MediaQueries.mbUp} {
2234
+ padding-left: 16px;
2235
+ padding-right: 16px;
2236
+ }
2237
+ `,ae.default.div`
2238
+ margin-bottom: 16px;
2239
+
2240
+ ${l.MediaQueries.mbUp} {
2241
+ padding-left: 16px;
2242
+ padding-right: 16px;
2243
+ }
2244
+ `,ae.default.div`
2245
+ margin-bottom: 24px;
2246
+
2247
+ ${l.MediaQueries.mbUp} {
2248
+ padding-left: 16px;
2249
+ padding-right: 16px;
2250
+ }
2251
+ `,ae.default.div`
2252
+ margin-bottom: 56px;
2253
+ line-height: 24px;
2254
+
2255
+ & > :first-child {
2256
+ margin-bottom: 8px;
2257
+ }
2258
+
2259
+ ${l.MediaQueries.mbUp} {
2260
+ padding-left: 16px;
2261
+ padding-right: 16px;
2262
+ }
2263
+ `,ae.default.div`
2264
+ margin-bottom: 56px;
2265
+
2266
+ & > :first-child {
2267
+ margin-bottom: 8px;
2268
+ }
2269
+
2270
+ ${l.MediaQueries.mbUp} {
2271
+ padding-left: 16px;
2272
+ padding-right: 16px;
2273
+ }
2274
+ `,ae.default.div`
2275
+ padding-top: 32px;
2276
+
2277
+ & > div {
2278
+ margin-bottom: 24px;
2279
+ }
2280
+
2281
+ ${l.MediaQueries.mbUp} {
2282
+ padding-left: 16px;
2283
+ padding-right: 16px;
2284
+ }
2285
+ `,ae.default.div`
2286
+ padding: 68px 0 56px 0;
2287
+
2288
+ ${l.MediaQueries.mbUp} {
2289
+ padding: 84px 0 72px 0;
2290
+ }
2291
+ `,ae.default.div`
2292
+ display: flex;
2293
+ gap: 10px;
2294
+ line-height: 1;
2295
+ span {
2296
+ overflow: hidden;
2297
+ text-overflow: ellipsis;
2298
+ -webkit-line-clamp: 2;
2299
+ display: -webkit-box;
2300
+ -webkit-box-orient: vertical;
2301
+ }
2302
+ ${l.MediaQueries.mbUp} {
2303
+ padding-right: 16px;
2304
+ padding-bottom: 10px;
2305
+ flex-wrap: wrap;
2306
+ align-items: center;
2307
+ justify-content: space-between;
2308
+ &[data-is-side='true'] {
2309
+ width: 100%;
2310
+ margin-bottom: 15px;
2311
+ justify-content: unset;
2312
+ .label {
2313
+ margin-bottom: 9px;
2314
+ }
2315
+ }
2316
+ }
2317
+
2318
+ ${l.MediaQueries.mbDown} {
2319
+ width: 100%;
2320
+ margin-bottom: 15px;
2321
+
2322
+ .label {
2323
+ margin-bottom: 9px;
2324
+ }
2325
+ }
2326
+ `;const za=ae.default.div`
2327
+ width: 100%;
2328
+ display: flex;
2329
+ flex-wrap: wrap;
2330
+ justify-content: space-between;
2331
+ .input-section {
2332
+ display: flex;
2333
+ flex-direction: column;
2334
+ }
2335
+
2336
+ ${l.MediaQueries.mbDown} {
2337
+ flex-direction: column;
2338
+ .input-section {
2339
+ width: 100%;
2340
+ }
2341
+ }
2342
+ `,La=ae.default.div`
2343
+ position: relative;
2344
+ width: calc(50% - 8px);
2345
+
2346
+ &[data-is-side='true'] {
2347
+ .label {
2348
+ margin-bottom: 9px;
2349
+ }
2350
+ }
2351
+ ${l.MediaQueries.mbDown} {
2352
+ .label {
2353
+ margin-bottom: 9px;
2354
+ }
2355
+ }
2356
+ margin-bottom: 24px;
2357
+ #weight-gain-dropdown {
2358
+ z-index: 9;
2359
+ width: 100%;
2360
+ min-width: unset;
2361
+ max-width: unset;
2362
+ color: ${e=>e.theme.colors.gray800};
2363
+ & > ul {
2364
+ z-index: 1;
2365
+ max-height: 300px;
2366
+ overflow-y: scroll;
2367
+ }
2368
+ }
2369
+ `,Ia=ae.default.div`
2370
+ margin-bottom: 24px;
2371
+ width: 100%;
2372
+
2373
+ ${l.MediaQueries.mbUp} {
2374
+ padding: 0 16px;
2375
+ }
2376
+ .card {
2377
+ display: flex;
2378
+ align-items: center;
2379
+ justify-content: space-between;
2380
+
2381
+ & > :not(:last-child) {
2382
+ margin-bottom: 8px;
2383
+ }
2384
+
2385
+ .gender-selector {
2386
+ row-gap: 12px;
2387
+
2388
+ & > :not(:last-child) {
2389
+ margin-right: 16px;
2390
+ }
2391
+
2392
+ & > div {
2393
+ ${l.MediaQueries.mbUp} {
2394
+ width: calc(18% - 4px);
2395
+ max-width: 186px;
2396
+ justify-self: left;
2397
+ }
2398
+
2399
+ ${l.MediaQueries.mbDown} {
2400
+ width: calc(31% - 8px);
2401
+ max-width: 109px;
2402
+ justify-self: left;
2403
+ }
2404
+ }
2405
+ }
2406
+
2407
+ .gender-image {
2408
+ width: 23px;
2409
+ height: 36px;
2410
+ object-fit: contain;
2411
+ }
2412
+ }
2413
+ .note {
2414
+ display: flex;
2415
+ align-items: center;
2416
+ padding-top: 8px;
2417
+ padding-bottom: 16px;
2418
+ }
2419
+ `,_a=({onSubmitDueDate:a,locale:l,isSide:n,siteType:i})=>{const{t:o}=r.useTranslations(),[s,d]=e.useState(Ba.lastPeriod),u=[{value:Ba.lastPeriod,label:o("dueDatePage.lastPeriod")},{value:Ba.conception,label:o("dueDatePage.conceptionDate")},{value:Ba.IVF,label:o("dueDatePage.ivf")}],m=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return J.default.createElement(za,null,J.default.createElement(Ea,{className:"input-form input-section","data-is-side":!0},"marryBaby"===i?J.default.createElement(ya,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:u,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:u[s],onChange:e=>{d(e.value)}}):J.default.createElement(J.default.Fragment,null,J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.calculationMethod")),J.default.createElement(wa,{"data-is-side":n},J.default.createElement(D.Dropdown,{options:u,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:u[s],onChange:e=>{d(e.value)}})))),s===Ba.lastPeriod?J.default.createElement(Ma,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:m}):null,s===Ba.conception?J.default.createElement(Sa,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:m}):null,s===Ba.IVF?J.default.createElement(Da,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:m}):null)},Oa=ae.default.form`
2420
+ margin: auto;
2421
+ ${l.MediaQueries.mbUp} {
2422
+ width: 100%;
2423
+ padding: 20px;
2424
+ display: flex;
2425
+ justify-content: space-between;
2426
+ flex-wrap: wrap;
2427
+ }
2428
+ ${l.MediaQueries.mbDown} {
2429
+ padding: 16px;
2430
+ }
2431
+ .due-date-calculate-button {
2432
+ width: 100%;
2433
+ margin: 12px auto 0;
2434
+ ${l.MediaQueries.mbUp} {
2435
+ max-width: 200px;
2436
+ }
2437
+ }
2438
+ &[data-is-side='true'] {
2439
+ ${l.MediaQueries.mbUp} {
2440
+ padding: 24px 40px 0px 40px;
2441
+ }
2442
+ }
2443
+ .input-weight-form {
2444
+ display: flex;
2445
+ flex-wrap: wrap;
2446
+ justify-content: space-between;
2447
+ padding: 0 16px;
2448
+ }
2449
+ .input-form {
2450
+ display: flex;
2451
+
2452
+ ${l.MediaQueries.mbUp} {
2453
+ margin-bottom: 24px;
2454
+ width: calc(50% - 8px);
2455
+ }
2456
+ &[data-is-side='true'] {
2457
+ ${l.MediaQueries.mbUp} {
2458
+ margin-bottom: 8px;
2459
+ width: 100%;
2460
+ }
2461
+ }
2462
+ ${l.MediaQueries.mbDown} {
2463
+ margin-bottom: 8px;
2464
+ }
2465
+ .label-text {
2466
+ overflow: hidden;
2467
+ text-overflow: ellipsis;
2468
+ -webkit-line-clamp: 2;
2469
+ display: -webkit-box;
2470
+ -webkit-box-orient: vertical;
2471
+ }
2472
+ }
2473
+ .input-form-pwg {
2474
+ display: flex;
2475
+ width: calc(50% - 8px);
2476
+
2477
+ ${l.MediaQueries.mbUp} {
2478
+ margin-bottom: 24px;
2479
+ }
2480
+ &[data-is-side='true'] {
2481
+ ${l.MediaQueries.mbUp} {
2482
+ margin-bottom: 8px;
2483
+ }
2484
+ }
2485
+ ${l.MediaQueries.mbDown} {
2486
+ margin-bottom: 8px;
2487
+ width: 100%;
2488
+ }
2489
+ .label-text {
2490
+ overflow: hidden;
2491
+ text-overflow: ellipsis;
2492
+ -webkit-line-clamp: 2;
2493
+ display: -webkit-box;
2494
+ -webkit-box-orient: vertical;
2495
+ }
2496
+ }
2497
+ .day-slider {
2498
+ width: 100%;
2499
+ ${l.MediaQueries.mbUp} {
2500
+ width: calc(50% - 8px);
2501
+ &[data-is-side='true'] {
2502
+ width: 100%;
2503
+ }
2504
+ }
2505
+ }
2506
+ `,ja="hhgcomp-embedtoolcard-content",Fa=a.getDefaultClassWrapper(Oa,ja),Ha=ae.default.div`
2507
+ padding: 0;
2508
+ background-color: white;
2509
+ border: 1px solid #e4e8ec;
2510
+ border-radius: 4px;
2511
+
2512
+ &[data-site='marryBaby'] {
2513
+ background-color: ${e=>e.theme.mbColors.green};
2514
+ border-radius: 16px;
2515
+ }
2516
+ .due-date-cal {
2517
+ .${ja} {
2518
+ ${l.MediaQueries.mbUp} {
2519
+ padding: 24px;
2520
+ }
2521
+ ${l.MediaQueries.mbDown} {
2522
+ padding: 16px;
2523
+ }
2524
+ }
2525
+ display: table;
2526
+ width: 100%;
2527
+ .slider-due-date {
2528
+ margin-bottom: 12px;
2529
+ width: 100%;
2530
+ margin-left: 0px;
2531
+ margin-right: 0px;
2532
+ .slider-outer-wrapper {
2533
+ margin: 2rem -0.5rem 1rem;
2534
+ }
2535
+ &[data-theme='marryBaby'] {
2536
+ padding: 1rem;
2537
+ background: white;
2538
+ border-radius: 1rem;
2539
+ .slider-outer-wrapper {
2540
+ gap: 12px;
2541
+ display: flex;
2542
+ align-items: center;
2543
+ margin: 0.5rem;
2544
+ }
2545
+ }
2546
+ }
2547
+ .input-form {
2548
+ display: flex;
2549
+ ${l.MediaQueries.mbUp} {
2550
+ width: calc(50% - 8px);
2551
+ margin-bottom: 24px;
2552
+ }
2553
+ &[data-is-side='true'] {
2554
+ ${l.MediaQueries.mbUp} {
2555
+ margin-bottom: 12px;
2556
+ width: 100%;
2557
+ }
2558
+ }
2559
+ ${l.MediaQueries.mbDown} {
2560
+ margin-bottom: 8px;
2561
+ }
2562
+ }
2563
+ }
2564
+ .heart-rate-cal {
2565
+ .slider-heart-rate {
2566
+ margin-bottom: 12px;
2567
+ width: 100%;
2568
+ margin-left: 0px;
2569
+ margin-right: 0px;
2570
+ .slider-outer-wrapper {
2571
+ margin: 2rem -0.5rem 1rem;
2572
+ }
2573
+ }
2574
+ }
2575
+ .ovulation-cal {
2576
+ display: flex;
2577
+ /* padding-top: 24px; */
2578
+ justify-content: space-between;
2579
+ flex-wrap: wrap;
2580
+ .slider-ovulation {
2581
+ margin-bottom: 12px;
2582
+ /* width: 100%; */
2583
+ margin-left: 0px;
2584
+ margin-right: 0px;
2585
+ .slider-outer-wrapper {
2586
+ margin: 2rem -0.5rem 1rem;
2587
+ }
2588
+ &[data-theme='marryBaby'] {
2589
+ padding: 1rem;
2590
+ background: white;
2591
+ border-radius: 1rem;
2592
+ .slider-outer-wrapper {
2593
+ gap: 12px;
2594
+ display: flex;
2595
+ align-items: center;
2596
+ margin: 0.5rem;
2597
+ }
2598
+ }
2599
+ }
2600
+ .input-form {
2601
+ display: flex;
2602
+ ${l.MediaQueries.mbUp} {
2603
+ width: calc(50% - 8px);
2604
+ margin-bottom: 24px;
2605
+ &[data-is-side='true'] {
2606
+ margin-bottom: 12px;
2607
+ width: 100%;
2608
+ }
2609
+ }
2610
+ ${l.MediaQueries.mbDown} {
2611
+ margin-bottom: 8px;
2612
+ }
2613
+ }
2614
+ }
2615
+ .pwg-view-mobile {
2616
+ &[data-is-side='true'] {
2617
+ display: flex;
2618
+ flex-wrap: wrap;
2619
+ justify-content: space-between;
2620
+ }
2621
+ ${l.MediaQueries.mbDown} {
2622
+ display: flex;
2623
+ flex-wrap: wrap;
2624
+ justify-content: space-between;
2625
+ padding: 16px 0;
2626
+ }
2627
+ .hide-asking-mobile {
2628
+ gap: 10px;
2629
+ &[data-is-side='true'] {
2630
+ ${l.MediaQueries.mbUp} {
2631
+ display: none;
2632
+ }
2633
+ }
2634
+ ${l.MediaQueries.mbDown} {
2635
+ display: none;
2636
+ }
2637
+ }
2638
+ .hide-asking-desk {
2639
+ gap: 10px;
2640
+ &[data-is-side='true'] {
2641
+ ${l.MediaQueries.mbUp} {
2642
+ display: unset;
2643
+ }
2644
+ }
2645
+ ${l.MediaQueries.mbUp} {
2646
+ display: none;
2647
+ }
2648
+ }
2649
+ }
2650
+ input[type='date']::after {
2651
+ width: 16px;
2652
+ height: 16px;
2653
+ background-image: url('https://hellobacsi.com/svg/calendar.svg');
2654
+ background-repeat: no-repeat;
2655
+ background-size: contain;
2656
+ content: '';
2657
+ }
2658
+ `,Ra=ae.default(st)`
2659
+ &[data-direction='horizontal'] div[data-type='circle'] {
2660
+ margin-right: 8px;
2661
+ }
2662
+ label {
2663
+ font-size: 14px;
2664
+ }
2665
+ `,Ga=ae.default(n.Button)`
2666
+ margin: 0 auto 24px;
2667
+ ${l.MediaQueries.mbUp} {
2668
+ max-width: 200px;
2669
+ margin: 24px auto;
2670
+ }
2671
+ `,Ua=ae.default(a.PureInput)`
2672
+ &.bmi--input {
2673
+ + .bmi--input {
2674
+ margin-top: 24px;
2675
+ }
2676
+ .inputLabel {
2677
+ display: inline-block;
2678
+ margin-bottom: 5px;
2679
+ color: #595959;
2680
+ font-weight: bold;
2681
+ font-size: 12px;
2682
+ }
2683
+ .errorLabel {
2684
+ line-height: 1.3;
2685
+ }
2686
+ input[type='radio'] {
2687
+ padding: 0;
2688
+ }
2689
+ .bmi--input-radio_gender {
2690
+ width: 100%;
2691
+ gap: 16px;
2692
+ > div {
2693
+ ${l.MediaQueries.mbDown} {
2694
+ width: calc(50% - 8px);
2695
+ }
2696
+ width: calc(33% - 8px);
2697
+ }
2698
+ & > div > div {
2699
+ display: flex;
2700
+ flex-direction: row;
2701
+ justify-content: center;
2702
+ align-content: center;
2703
+ gap: 8px;
2704
+ padding-block: 5px;
2705
+ }
2706
+ }
2707
+ .bmi-side-embed {
2708
+ > div {
2709
+ ${l.MediaQueries.mbUp} {
2710
+ width: calc(50% - 8px);
2711
+ }
2712
+ }
2713
+ }
2714
+ .radio-group-item-heading {
2715
+ margin-top: 0;
2716
+ }
2717
+ }
2718
+
2719
+ ${l.MediaQueries.mbDown} {
2720
+ &.bmi--input {
2721
+ .bmi--input-radio_gender {
2722
+ > div {
2723
+ .gender-image {
2724
+ width: 40px;
2725
+ height: 40px;
2726
+ }
2727
+ }
2728
+ }
2729
+ }
2730
+ }
2731
+ `,Wa=ae.default.div`
2732
+ width: 100%;
2733
+ `,Va=ae.default.div`
2734
+ margin-bottom: 1rem;
2735
+ display: flex;
2736
+ flex-direction: column;
2737
+ gap: 16px;
2738
+ input {
2739
+ font-size: 12px;
2740
+ ::placeholder {
2741
+ color: #8c8c8c;
2742
+ opacity: 1;
2743
+ }
2744
+ }
2745
+ .input-label {
2746
+ label {
2747
+ display: inline-block;
2748
+ margin-bottom: 9px;
2749
+ color: #595959;
2750
+ font-weight: bold;
2751
+ font-size: 12px;
2752
+ }
2753
+ }
2754
+ `;ae.default.div`
2755
+ display: flex;
2756
+ flex-direction: column;
2757
+ #thr-dropdown {
2758
+ z-index: 10;
2759
+ width: 100%;
2760
+ min-width: unset;
2761
+ max-width: unset;
2762
+ color: ${e=>e.theme.colors.gray800};
2763
+ & > ul {
2764
+ z-index: 1;
2765
+ max-height: 300px;
2766
+ overflow-y: scroll;
2767
+ }
2768
+ }
2769
+ `;const qa=ae.default.div`
2770
+ ${l.MediaQueries.mbUp} {
2771
+ display: flex;
2772
+ width: 100%;
2773
+ align-items: flex-start;
2774
+ justify-content: space-between;
2775
+ gap: 12px;
2776
+ > div {
2777
+ width: 100%;
2778
+ }
2779
+ &[data-is-side='true'] {
2780
+ ${l.MediaQueries.mbUp} {
2781
+ display: flex;
2782
+ flex-direction: column;
2783
+ gap: 0px;
2784
+ }
2785
+ }
2786
+ }
2787
+ ${l.MediaQueries.mbDown} {
2788
+ display: flex;
2789
+ flex-direction: column;
2790
+ gap: 0px;
2791
+ }
2792
+ `;function Qa({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const Za=({value:l,onChange:i,onSubmit:o,disabled:d,bmiGenerated:p,bmiUnit:g,locale:h,isSide:f})=>{var b,v,y,x;const[E,w]=e.useState(!1),{control:C,handleSubmit:k,setValue:B,watch:T}=A.useForm(),N=T(),{t:S}=r.useTranslations(),{gender:D=!1,age:M=!1,height:$=!1,weight:z=!1,objective:L=!0}=d||{},{getHealthToolLink:I}=P.useHealthToolsCache(h),_=e.useMemo((()=>I(a.HEALTH_TOOL_TYPE.OVULATION)),[I]),O=e.useMemo((()=>[{value:"lose-weight",label:S("bmi.objective.loseWeight")},{value:"maintain-weight",label:S("bmi.objective.maintainWeight")},{value:"gain-weight",label:S("bmi.objective.gainWeight")}]),[]),j=()=>{w(!0)};return e.useEffect((()=>{Object.keys(l||{}).forEach((e=>{B(e,null==l?void 0:l[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[l]),e.useEffect((()=>{i&&i(N)}),[N]),J.default.createElement(Wa,null,J.default.createElement("form",{onSubmit:k((e=>u.__awaiter(void 0,void 0,void 0,(function*(){const t=g.heightConvert(e.height),a=g.weightConvert(e.weight),l={gender:e.gender,age:e.age,height:t,weight:a,bmi:Qa({height:t,weight:a})};L||(l.objective=e.objective),j(),o&&o(l)}))),j)},!D&&J.default.createElement(Va,{"data-is-side":f},J.default.createElement(A.Controller,{name:"gender",control:C,defaultValue:"male",render:({field:{onChange:e}})=>J.default.createElement(Ne,{defaultValue:"male",onChange:t=>e(t),styles:e=>({root:!f&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:m.rem(12)}}})})})),J.default.createElement(qa,{"data-is-side":f},!M&&J.default.createElement(Va,null,J.default.createElement(A.Controller,{name:"age",control:C,rules:null===(b=p.age)||void 0===b?void 0:b.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:i}})=>J.default.createElement(n.Input.Number,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},S("bmi.ageInput")," ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray300,as:"span"},S("bmi.ageInput.desc"))),placeholder:S("healthtool.placeholder.age"),name:e,value:a,onChange:l,error:E?null==i?void 0:i.message:"",min:0})})),!$&&J.default.createElement(Va,null,J.default.createElement(A.Controller,{name:"height",control:C,rules:null===(v=p.height)||void 0===v?void 0:v.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:i}})=>J.default.createElement(n.Input.Number,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},S("bmi.heightInput")," ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray300,as:"span"},S("bmi.heightInput.desc"))),placeholder:S("pwg.placeholder.height"),name:e,value:a,onChange:l,error:E?null==i?void 0:i.message:"",min:0})})),!z&&J.default.createElement(Va,null,J.default.createElement(A.Controller,{name:"weight",control:C,rules:null===(y=p.weight)||void 0===y?void 0:y.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:i}})=>J.default.createElement(n.Input.Number,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},S("bmi.weightInput")," ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray300,as:"span"},S("bmi.weightInput.desc"))),placeholder:S("pwg.placeholder.weight"),name:e,value:a,onChange:l,error:E?null==i?void 0:i.message:"",precision:1,min:0})})),!L&&J.default.createElement(Va,null,J.default.createElement(A.Controller,{name:"objective",control:C,defaultValue:"lose-weight",rules:null===(x=p.objective)||void 0===x?void 0:x.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>J.default.createElement(Ua,{size:"md",name:e,label:p.objective.label,CustomInput:J.default.createElement(st,{id:"bmi-objective",className:"bmi-objective",direction:"vertical",size:"small",options:O,value:t,onChange:a}),errorMessage:E?null==l?void 0:l.message:"",className:"bmi--input bmi--input-objective"})}))),J.default.createElement("div",{style:{display:"flex"}},J.default.createElement(Ga,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${s.domainLocales[h]}/${_}`,type:"submit"},S("bmi.submit")))))},Ya=ae.default.div`
2793
+ padding-block: 40px;
2794
+
2795
+ &[data-theme='marryBaby'] {
2796
+ padding-block: 0;
2797
+ padding-top: 12px;
2798
+ }
2799
+ `,Ka=ae.default.form`
2800
+ display: flex;
2801
+ flex-direction: column;
2802
+ gap: 16px;
2803
+ `,Xa=ae.default.div`
2804
+ display: flex;
2805
+ flex-direction: column;
2806
+ gap: 6px;
2807
+ margin-top: auto;
2808
+
2809
+ .error-input input {
2810
+ border: 1px solid ${e=>e.theme.colors.red700};
2811
+ }
2812
+ `,Ja=ae.default(B.Label)`
2813
+ display: inline-flex;
2814
+ padding-bottom: 6px;
2815
+ gap: 4px;
2816
+ `,el=ae.default.div`
2817
+ display: flex;
2818
+ width: 100%;
2819
+ align-items: center;
2820
+ justify-content: space-between;
2821
+ gap: 16px;
2822
+ > div {
2823
+ width: 100%;
2824
+ }
2825
+ `;ae.default.div`
2826
+ ${l.MediaQueries.mbUp} {
2827
+ padding: 0 16px;
2828
+ }
2829
+
2830
+ margin-bottom: 24px;
2831
+
2832
+ & > :not(:last-child) {
2833
+ margin-bottom: 8px;
2834
+ }
2835
+
2836
+ .gender-selector {
2837
+ & > :not(:last-child) {
2838
+ margin-right: 16px;
2839
+ }
2840
+
2841
+ & > div {
2842
+ width: calc(50% - 8px);
2843
+
2844
+ ${l.MediaQueries.mbUp} {
2845
+ max-width: 186px;
2846
+ justify-self: left;
2847
+ }
2848
+ }
2849
+ }
2850
+ `;const tl=(e=0,t=0)=>{try{if(e&&t){const a=Number(t)/Math.pow(Number(e)/100,2);return Number(((e,t=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e))(a))}return 0}catch(e){}return 0},al=ae.default.div`
2851
+ padding: 36px;
2852
+ padding-top: 0;
2853
+ background-color: white;
2854
+ ${l.MediaQueries.mbDown} {
2855
+ padding: 16px;
2856
+ padding-top: 0;
2857
+ }
2858
+ &[data-theme='marryBaby'] {
2859
+ background-color: ${e=>e.theme.mbColors.green};
2860
+ padding: 24px;
2861
+ border-bottom-right-radius: 16px;
2862
+ border-bottom-left-radius: 16px;
2863
+ ${l.MediaQueries.mbDown} {
2864
+ padding: 16px;
2865
+ }
2866
+ }
2867
+ `,ll=ae.default((({onSubmit:l,onError:i,schema:o,siteType:s})=>{const{t:d}=r.useTranslations(),u="mb"===m.useMantineTheme().other.template,{control:p,setValue:h,watch:f,handleSubmit:b,formState:{isSubmitted:v}}=A.useForm({resolver:$.yupResolver(o),mode:"onSubmit",defaultValues:{name:"",gender:g.Gender.Boy,measurementDate:new Date}}),y=f("weight"),x=f("height"),E=f("head"),C=e.useMemo((()=>v&&!y&&!x&&!E),[v,y,x,E]);e.useEffect((()=>{const e=tl(x,y);h("bmi",String(e)||"0")}),[y,x]);const k=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return J.default.createElement(J.default.Fragment,null,J.default.createElement(Ya,{"data-theme":s},J.default.createElement(Ka,{onSubmit:b(l,i)},J.default.createElement(A.Controller,{control:p,name:"gender",render:({field:{onChange:e,value:t}})=>J.default.createElement(z.BabyGrowthGender,{onChange:e,value:t,siteType:s})}),"marryBaby"===s?J.default.createElement(J.default.Fragment,null,J.default.createElement(A.Controller,{control:p,name:"birthday",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>J.default.createElement(Xa,null,J.default.createElement(xa,{label:d("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(l),CustomInput:J.default.createElement(Qe,{onChange:e,placeholder:"dd/mm/yyyy",pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:t=>J.default.createElement(w.Input,Object.assign({onChange:e,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md"},t,{value:l&&te.default(l).format(a.DUE_DATE_FORMAT)}))}),actionIcon:J.default.createElement(t.Icon.CalendarMB,{size:32})}))}),J.default.createElement(el,null,J.default.createElement(A.Controller,{control:p,name:"height",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>J.default.createElement(Xa,null,J.default.createElement(xa,{label:`${d("babyGrowth.height")} ${d("babyGrowth.cm")}`,name:"height",size:"md",value:String(t),CustomInput:J.default.createElement(w.Input,{className:C||(null==a?void 0:a.message)?"error-input":"",name:"height",size:"md",placeholder:"Nhập thông tin",value:String(t),onChange:e,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),J.default.createElement(A.Controller,{control:p,name:"weight",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>J.default.createElement(Xa,null,J.default.createElement(xa,{label:`${d("babyGrowth.weight")} ${d("babyGrowth.kg")}`,name:"weight",size:"md",value:String(t),CustomInput:J.default.createElement(w.Input,{className:C||(null==a?void 0:a.message)?"error-input":"",name:"weight",size:"md",placeholder:"Nhập thông tin",value:String(t),onChange:e,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))})),J.default.createElement(el,null,J.default.createElement(A.Controller,{control:p,name:"head",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>J.default.createElement(Xa,null,J.default.createElement(xa,{label:`${d("babyGrowth.headCircumference")} ${d("babyGrowth.cm")}`,name:"head",size:"md",value:String(t),CustomInput:J.default.createElement(w.Input,{className:C||(null==a?void 0:a.message)?"error-input":"",name:"head",size:"md",value:String(t),onChange:e,type:"number",placeholder:"Nhập thông tin",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),J.default.createElement(A.Controller,{control:p,name:"bmi",render:({field:{value:e}})=>J.default.createElement(Xa,null,J.default.createElement(xa,{label:`${d("babyGrowth.input.bmi")} ${d("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(e),CustomInput:J.default.createElement(w.Input,{name:"bmi",size:"md",type:"number",value:String(e),isDisabled:!0,style:{color:"#9495A0"}})}))})),J.default.createElement(A.Controller,{control:p,name:"measurementDate",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>J.default.createElement(Xa,null,J.default.createElement(xa,{label:d("babyGrowth.input.measurementDate"),name:"date",size:"md",value:Na(l),CustomInput:J.default.createElement(Qe,{placeholder:l&&te.default(l).format(a.DUE_DATE_FORMAT),pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",onChange:e,disabledDays:{after:new Date},customInput:t=>J.default.createElement(w.Input,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:l&&te.default(l).format(a.DUE_DATE_FORMAT),onChange:e},t,{value:l&&te.default(l).format(a.DUE_DATE_FORMAT)}))}),actionIcon:J.default.createElement(t.Icon.CalendarMB,{size:32})}))}),J.default.createElement(n.Button,{size:"lg",variant:u?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":k},d("babyGrowth.input.submit"))):J.default.createElement(J.default.Fragment,null,J.default.createElement(A.Controller,{control:p,name:"birthday",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>J.default.createElement(Xa,null,J.default.createElement(Ja,{size:"label1",htmlFor:"birthday"},J.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},d("babyGrowth.input.birthday"))),J.default.createElement(Qe,{onChange:e,placeholder:"dd/mm/yyyy",pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>J.default.createElement(w.Input,Object.assign({onChange:e,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md",actionIcon:J.default.createElement(t.Icon.Calendar,null)},i,{value:l&&te.default(l).format(a.DUE_DATE_FORMAT)}))}))}),J.default.createElement(el,null,J.default.createElement(A.Controller,{control:p,name:"height",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>J.default.createElement(Xa,null,J.default.createElement(Ja,{size:"label1",htmlFor:"height"},J.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.height")),J.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.cm"))),J.default.createElement(w.Input,{className:C||(null==l?void 0:l.message)?"error-input":"",name:"height",placeholder:"0",size:"md",value:String(a),onChange:e,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),J.default.createElement(A.Controller,{control:p,name:"weight",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>J.default.createElement(Xa,null,J.default.createElement(Ja,{size:"label1",htmlFor:"weight"},J.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.weight")),J.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.kg"))),J.default.createElement(w.Input,{className:C||(null==l?void 0:l.message)?"error-input":"",name:"weight",placeholder:"0",size:"md",value:String(a),onChange:e,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))})),J.default.createElement(el,null,J.default.createElement(A.Controller,{control:p,name:"head",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>J.default.createElement(Xa,null,J.default.createElement(Ja,{size:"label1",htmlFor:"head"},J.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.headCircumference")),J.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.cm"))),J.default.createElement(w.Input,{className:C||(null==l?void 0:l.message)?"error-input":"",name:"head",placeholder:"0",size:"md",value:String(a),onChange:e,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),J.default.createElement(A.Controller,{control:p,name:"bmi",render:({field:{value:e}})=>J.default.createElement(Xa,null,J.default.createElement(Ja,{size:"label1",htmlFor:"bmi"},J.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.input.bmi")),J.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.kg.m2"))),J.default.createElement(w.Input,{name:"bmi",size:"md",type:"number",value:String(e),isDisabled:!0}))})),J.default.createElement(A.Controller,{control:p,name:"measurementDate",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>J.default.createElement(Xa,null,J.default.createElement(Ja,{size:"label1",htmlFor:"measurementDate"},J.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},d("babyGrowth.input.measurementDate"))),J.default.createElement(Qe,{placeholder:l&&te.default(l).format(a.DUE_DATE_FORMAT),pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",onChange:e,disabledDays:{after:new Date},customInput:i=>J.default.createElement(w.Input,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:l&&te.default(l).format(a.DUE_DATE_FORMAT),onChange:e,actionIcon:J.default.createElement(t.Icon.Calendar,null)},i,{value:l&&te.default(l).format(a.DUE_DATE_FORMAT)}))}))}),J.default.createElement(n.Button,{size:"lg",variant:u?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":k},d("babyGrowth.input.submit"))))))}))`
2868
+ padding-block: 0;
2869
+ `;ae.default(va)`
2870
+ padding-inline: 20px;
2871
+
2872
+ img.embedded-icon {
2873
+ width: 140px;
2874
+ margin-left: 50%;
2875
+ align-self: center;
2876
+ }
2877
+
2878
+ ${l.MediaQueries.mbDown} {
2879
+ padding-inline: 0;
2880
+ img.embedded-icon {
2881
+ width: 125px;
2882
+ align-self: end;
2883
+ margin-left: 0;
2884
+ position: absolute;
2885
+ transform: translateY(50%);
2886
+ }
2887
+ .embedded-review {
2888
+ max-width: 200px;
2889
+ }
2890
+ }
2891
+ `;var nl=m.createStyles(((e,t)=>{const{isMarryBaby:a,isSide:l,direction:n}=t;return{root:Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",display:"flex"},"auto"===n?{flexDirection:"row"}:{flexDirection:"column"===n?"column-reverse":"row"}),{gap:"8px",padding:"16px",borderRadius:a?"16px":"8px"}),!a&&{backgroundImage:`url(${d.CommonGAssets.getAssetPath("bgPattern/baby-poop.svg")})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"}),{backgroundColor:a?e.colors.toneGreen.toString():e.colors[e.primaryColor][0],[e.fn.smallerThan("sm")]:Object.assign({},"auto"===n?{flexDirection:"column-reverse"}:{}),[e.fn.smallerThan("md")]:{borderRadius:a?"12px":"8px"},[e.fn.largerThan("md")]:{padding:"32px",gap:"20px"}}),inner:{display:"flex",gap:"16px",flexDirection:"column",flex:1},content:{display:"flex",flexDirection:"column",gap:"16px"},reviewText:{display:"flex",gap:"4px",a:{color:e.colors.gray[6],fontWeight:"bold","&:not(:hover)":{textDecoration:"none"}}},reviewTextIcon:{flexShrink:0,width:"16px",height:"16px",[e.fn.largerThan("sm")]:{marginTop:"2px"}},thumbnail:Object.assign(Object.assign({img:{objectFit:"contain",objectPosition:"bottom",width:"100%",height:"100%"}},"column"===n?{width:"80%",alignSelf:"center"}:"row"===n?{width:"40%"}:{}),{[e.fn.smallerThan("sm")]:Object.assign({},"auto"===n?{width:"80%",alignSelf:"center"}:{}),[e.fn.largerThan("sm")]:Object.assign({},"auto"===n?{width:"40%"}:{})}),action:{display:"flex",justifyContent:a?"center":"flex-start"},btn:{minWidth:a?"auto":"143px",width:l||a?"100%":"auto",[e.fn.smallerThan("md")]:{width:"100%"}},sponsorLogo:Object.assign(Object.assign({position:"absolute",top:0,height:40,objectFit:"contain",objectPosition:"top"},"column"===n?{left:"16px",height:40}:"row"===n?{height:50,right:"40px"}:{left:"16px",height:40}),{[e.fn.largerThan("sm")]:Object.assign({},"auto"===n?{height:50,right:"40px",left:"unset"}:{})})}}));const il=ae.default.div`
2892
+ display: flex;
2893
+ width: 100%;
2894
+
2895
+ &[data-direction='vertical'] {
2896
+ flex-direction: column;
2897
+ }
2898
+
2899
+ &[data-direction='horizontal'] {
2900
+ flex-wrap: wrap;
2901
+ }
2902
+ `,rl=ae.default.div`
2903
+ display: flex;
2904
+
2905
+ padding: 8px;
2906
+
2907
+ border-radius: ${e=>e.theme.borderRadius};
2908
+ cursor: pointer;
2909
+
2910
+ & > div {
2911
+ display: flex;
2912
+ width: 100%;
2913
+ height: 100%;
2914
+ flex-direction: column;
2915
+ align-items: center;
2916
+ justify-content: flex-start;
2917
+ }
2918
+
2919
+ &[data-selected='true'] {
2920
+ border: 1px solid #2d87f3;
2921
+ background: white;
2922
+
2923
+ .radio-group-item-heading {
2924
+ color: #2d87f3;
2925
+ }
2926
+ }
2927
+ &[data-selected='false'] {
2928
+ border: 1px solid #f2f2f2;
2929
+ box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
2930
+ .radio-group-item-heading {
2931
+ color: #262626;
2932
+ }
2933
+ }
2934
+ &[data-disabled='true'] {
2935
+ cursor: auto;
2936
+ }
2937
+
2938
+ .radio-group-item-heading {
2939
+ margin-top: 8px;
2940
+ text-align: center;
2941
+ }
2942
+
2943
+ .gender-image {
2944
+ width: 23px;
2945
+ height: 36px;
2946
+ object-fit: contain;
2947
+ }
2948
+ `,ol=({value:a,options:l,className:n,direction:i="horizontal",onChange:r,isDisabled:o})=>{const[s,d]=e.useState(a);return J.default.createElement(il,{className:n,"data-direction":i},l.map(((e,l)=>J.default.createElement(rl,{"data-selected":(a||s)===e.value,"data-disabled":o,key:`health-tool${l}`,onClick:()=>{var t;t=e.value,o||(d(t),r&&r(t))}},J.default.createElement("div",null,J.default.createElement("img",{src:(a||s)===e.value?e.imageActive:e.image,className:"gender-image",alt:"",loading:"lazy"}),e.label&&J.default.createElement(t.Text,{weight:"bold",className:"radio-group-item-heading",size:"label1"},e.label))))))},sl=ae.default(n.Button)`
2949
+ margin: 0 auto 24px;
2950
+ width: 100%;
2951
+ ${l.MediaQueries.mbUp} {
2952
+ max-width: 200px;
2953
+ }
2954
+ `;ae.default.div`
2955
+ display: flex;
2956
+ gap: 10px;
2957
+ line-height: 1;
2958
+ span {
2959
+ overflow: hidden;
2960
+ text-overflow: ellipsis;
2961
+ -webkit-line-clamp: 2;
2962
+ display: -webkit-box;
2963
+ -webkit-box-orient: vertical;
2964
+ }
2965
+ ${l.MediaQueries.mbUp} {
2966
+ padding-right: 16px;
2967
+ padding-bottom: 10px;
2968
+ flex-wrap: wrap;
2969
+ align-items: center;
2970
+ &[data-is-side='true'] {
2971
+ width: 100%;
2972
+ justify-content: unset;
2973
+ .label {
2974
+ margin-bottom: 9px;
2975
+ }
2976
+ }
2977
+ }
2978
+ &[data-is-side='true'] {
2979
+ ${l.MediaQueries.mbDown} {
2980
+ width: 100%;
2981
+ .label {
2982
+ margin-bottom: 9px;
2983
+ }
2984
+ }
2985
+ }
2986
+ ${l.MediaQueries.mbDown} {
2987
+ width: 100%;
2988
+ .label {
2989
+ margin-bottom: 9px;
2990
+ }
2991
+ }
2992
+ `,ae.default(a.PureInput)`
2993
+ &.bmi--input {
2994
+ + .bmi--input {
2995
+ margin-top: 24px;
2996
+ }
2997
+ .inputLabel {
2998
+ display: inline-block;
2999
+ margin-bottom: 5px;
3000
+ color: #595959;
3001
+ font-weight: bold;
3002
+ font-size: 12px;
3003
+ }
3004
+ .errorLabel {
3005
+ line-height: 1.3;
3006
+ }
3007
+ input[type='radio'] {
3008
+ padding: 0;
3009
+ }
3010
+ .bmi--input-radio_gender {
3011
+ width: 100%;
3012
+ gap: 16px;
3013
+ > div {
3014
+ width: calc(50% - 8px);
3015
+ }
3016
+ & > div > div {
3017
+ display: flex;
3018
+ flex-direction: row;
3019
+ justify-content: center;
3020
+ align-content: center;
3021
+ gap: 8px;
3022
+ padding-block: 5px;
3023
+ }
3024
+ }
3025
+ .radio-group-item-heading {
3026
+ margin-top: 0;
3027
+ }
3028
+ }
3029
+
3030
+ ${l.MediaQueries.mbUp} {
3031
+ &.bmi--input {
3032
+ .bmi--input-radio_gender {
3033
+ > div {
3034
+ max-width: 186px;
3035
+ }
3036
+ }
3037
+ }
3038
+ }
3039
+
3040
+ ${l.MediaQueries.mbDown} {
3041
+ &.bmi--input {
3042
+ .bmi--input-radio_gender {
3043
+ > div {
3044
+ .gender-image {
3045
+ width: 40px;
3046
+ height: 40px;
3047
+ }
3048
+ }
3049
+ }
3050
+ }
3051
+ }
3052
+ `;const dl=ae.default.div``,cl=ae.default.div`
3053
+ display: flex;
3054
+ flex-direction: column;
3055
+ gap: 16px;
3056
+ input {
3057
+ font-size: 12px;
3058
+ }
3059
+ .gender-option {
3060
+ gap: 16px;
3061
+ > div {
3062
+ width: calc(50% - 8px);
3063
+ }
3064
+ }
3065
+ .input-label {
3066
+ label {
3067
+ display: inline-block;
3068
+ margin-bottom: 9px;
3069
+ color: #595959;
3070
+ font-weight: bold;
3071
+ font-size: 12px;
3072
+ }
3073
+ }
3074
+ `,ul=ae.default.div`
3075
+ ${l.MediaQueries.mbUp} {
3076
+ display: flex;
3077
+ width: 100%;
3078
+ align-items: flex-start;
3079
+ justify-content: space-between;
3080
+ gap: 16px;
3081
+ margin-bottom: 24px;
3082
+ > div {
3083
+ width: 100%;
3084
+ }
3085
+ }
3086
+
3087
+ ${l.MediaQueries.mbDown} {
3088
+ display: flex;
3089
+ flex-direction: column;
3090
+ gap: 16px;
3091
+ margin-bottom: 8px;
3092
+ }
3093
+ &[data-is-side='true'] {
3094
+ ${l.MediaQueries.mbUp} {
3095
+ display: flex;
3096
+ flex-direction: column-reverse;
3097
+ gap: 0px;
3098
+ }
3099
+ }
3100
+ `,ml=({info:a,className:l,style:n,onChange:i,errorMessage:o={},locale:s})=>{const{t:d}=r.useTranslations(),[u,m]=e.useState(new Date),[p,g]=e.useState({age:!1,rate:!1});return e.useEffect((()=>{g({age:!1,rate:!1})}),[o]),J.default.createElement(dl,{style:n,className:l},J.default.createElement(w.Input,{className:"input-section due-date-input",label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("targetHeartRate.ageInput")),value:Na(u),name:"date",size:"md",CustomInput:J.default.createElement(Qe,{customInput:e=>J.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Na(u)})),disabledDays:{after:new Date(k.addDays(new Date,0))},locale:s,pickedDate:u,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),g((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:k.format(new Date(e),Ta)});i&&i(t)})(e)},placeholder:"placeholder"}),errorMessage:p.age?"":o.age}))},pl=ae.default(n.Button)`
3101
+ margin: 0 auto 24px;
3102
+ ${l.MediaQueries.mbUp} {
3103
+ max-width: 200px;
3104
+ margin: 24px auto;
3105
+ }
3106
+ `;ae.default(a.PureInput)`
3107
+ &.bmi--input {
3108
+ + .bmi--input {
3109
+ margin-top: 24px;
3110
+ }
3111
+ .inputLabel {
3112
+ display: inline-block;
3113
+ margin-bottom: 5px;
3114
+ color: #595959;
3115
+ font-weight: bold;
3116
+ font-size: 12px;
3117
+ }
3118
+ .errorLabel {
3119
+ line-height: 1.3;
3120
+ }
3121
+ input[type='radio'] {
3122
+ padding: 0;
3123
+ }
3124
+ .bmi--input-radio_gender {
3125
+ width: 100%;
3126
+ gap: 16px;
3127
+ > div {
3128
+ ${l.MediaQueries.mbDown} {
3129
+ width: calc(50% - 8px);
3130
+ }
3131
+ width: calc(33% - 8px);
3132
+ }
3133
+ & > div > div {
3134
+ display: flex;
3135
+ flex-direction: row;
3136
+ justify-content: center;
3137
+ align-content: center;
3138
+ gap: 8px;
3139
+ padding-block: 5px;
3140
+ }
3141
+ }
3142
+ .bmi-side-embed {
3143
+ > div {
3144
+ ${l.MediaQueries.mbUp} {
3145
+ width: calc(50% - 8px);
3146
+ }
3147
+ }
3148
+ }
3149
+ .radio-group-item-heading {
3150
+ margin-top: 0;
3151
+ }
3152
+ }
3153
+
3154
+ ${l.MediaQueries.mbDown} {
3155
+ &.bmi--input {
3156
+ .bmi--input-radio_gender {
3157
+ > div {
3158
+ .gender-image {
3159
+ width: 40px;
3160
+ height: 40px;
3161
+ }
3162
+ }
3163
+ }
3164
+ }
3165
+ }
3166
+ `;const gl=ae.default.div``,hl=ae.default.div`
3167
+ margin-bottom: 1rem;
3168
+ display: flex;
3169
+ flex-direction: column;
3170
+ gap: 16px;
3171
+ input {
3172
+ font-size: 12px;
3173
+ ::placeholder {
3174
+ color: #8c8c8c;
3175
+ opacity: 1;
3176
+ }
3177
+ }
3178
+ .gender-option {
3179
+ gap: 16px;
3180
+ > div {
3181
+ width: calc(50% - 8px);
3182
+ }
3183
+ }
3184
+ .input-label {
3185
+ label {
3186
+ display: inline-block;
3187
+ margin-bottom: 9px;
3188
+ color: #595959;
3189
+ font-weight: bold;
3190
+ font-size: 12px;
3191
+ }
3192
+ }
3193
+ `,fl=ae.default.div`
3194
+ ${l.MediaQueries.mbUp} {
3195
+ display: flex;
3196
+ width: 100%;
3197
+ align-items: flex-start;
3198
+ justify-content: space-between;
3199
+ gap: 12px;
3200
+ > div {
3201
+ width: 100%;
3202
+ }
3203
+ &[data-is-side='true'] {
3204
+ ${l.MediaQueries.mbUp} {
3205
+ display: flex;
3206
+ flex-direction: column;
3207
+ gap: 0px;
3208
+ }
3209
+ }
3210
+ }
3211
+ ${l.MediaQueries.mbDown} {
3212
+ display: flex;
3213
+ flex-direction: column;
3214
+ gap: 0px;
3215
+ }
3216
+ `,bl=({info:l,className:i,style:o,onChange:d,errorMessage:u={},locale:p,onClick:g,isSide:h})=>{const{t:f}=r.useTranslations(),[b,v]=e.useState({age:!1,height:!1,weight:!1}),{getHealthToolLink:y}=P.useHealthToolsCache(p),x=e.useMemo((()=>y(a.HEALTH_TOOL_TYPE.OVULATION)),[y]),[E,w]=e.useState("male"),C=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},k=e=>{var t,a;a=e=>{v((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},l),{age:e});d&&d(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||a(t)};return e.useEffect((()=>{d&&d(Object.assign(Object.assign({},l),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),e.useEffect((()=>{v({age:!1,height:!1,weight:!1})}),[u]),J.default.createElement(gl,{style:o,className:i},J.default.createElement(hl,{"data-is-side":h},J.default.createElement(Ne,{defaultValue:"male",onChange:e=>w(e),styles:e=>({root:!h&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:m.rem(12)}}})})),J.default.createElement(fl,{"data-is-side":h},J.default.createElement(hl,null,J.default.createElement(n.Input.Number,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},f("bmi.ageInput")," ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray300,as:"span"},f("bmi.ageInput.desc"))),placeholder:f("healthtool.placeholder.age"),value:Number(l.age),onChange:e=>k(String(e)),error:b.age?"":u.age,min:0})),J.default.createElement(hl,null,J.default.createElement(n.Input.Number,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},f("bmi.heightInput")," ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray300,as:"span"},f("bmi.heightInput.desc"))),placeholder:f("pwg.placeholder.height"),value:Number(l.height),onChange:e=>{return t=String(e),void C(t,(e=>{v((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});d&&d(t)}));var t},error:b.height?"":u.height,min:0})),J.default.createElement(hl,null,J.default.createElement(n.Input.Number,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},f("bmi.weightInput")," ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray300,as:"span"},f("bmi.weightInput.desc"))),placeholder:f("pwg.placeholder.weight"),value:Number(l.weight),onChange:e=>{return t=String(e),v((e=>Object.assign(Object.assign({},e),{weight:!0}))),void C(t,(e=>{const t=Object.assign(Object.assign({},l),{weight:e});d&&d(t)}));var t},error:b.weight?"":u.weight,min:0,precision:1}))),J.default.createElement("div",{style:{display:"flex"}},J.default.createElement(pl,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${s.domainLocales[p]}/${x}`,onClick:()=>{g(E)}},f("bmi.submit"))))},vl=({locale:l,onSubmit:i,isSide:o,siteType:s})=>{const{t:d}=r.useTranslations(),[u,m]=e.useState(new Date),[p,g]=e.useState(28),[h,f]=e.useState(7),b={cycle:p,periodDateStart:u,periodLength:h},v=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return J.default.createElement(J.default.Fragment,null,J.default.createElement(Ca,{className:"input-form input-section","data-is-side":!0},"marryBaby"===s?J.default.createElement(xa,{label:d("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:Na(u),CustomInput:J.default.createElement(Qe,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:u,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:k.addDays(new Date,-45),after:new Date},customInput:e=>J.default.createElement(w.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:u&&te.default(u).format(a.DUE_DATE_FORMAT)}))}),actionIcon:J.default.createElement(t.Icon.CalendarMB,{size:32})}):J.default.createElement(w.Input,{label:J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.lastPeriod.lastPeriodLabel")),value:Na(u),size:"md",name:"date",className:"due-date-input",CustomInput:J.default.createElement(Qe,{customInput:e=>J.default.createElement("input",Object.assign({},e,{type:"date",className:"due-date-input",value:Na(u)})),locale:l,pickedDate:u,displayDateFormat:T.DATE_FORMAT,onChange:e=>{m(e)},disabledDays:{before:k.addDays(new Date,-45),after:new Date},placeholder:"Chọn ngày"})})),J.default.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===s?"marryBaby":"","data-is-side":o},"marryBaby"===s?J.default.createElement(S.MarryBabyText,{type:"bodytext-3",color:c.theme.mbColors.midGray},d("ovulationPage.cycleLength")):J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959"},d("ovulationPage.cycleLength")+" ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},d("ovulationPage.dayUnit"))),J.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===s&&J.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:c.theme.colors.gray600},p),J.default.createElement(N.Slider,{containerStyle:{flex:1},min:21,max:45,step:1,value:p,onChange:g,labelAlwaysOn:"marryBaby"!==s,withControl:"marryBaby"!==s,label:"marryBaby"!==s?void 0:null}))),J.default.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===s?"marryBaby":"","data-is-side":o},"marryBaby"===s?J.default.createElement(S.MarryBabyText,{type:"bodytext-3",color:c.theme.mbColors.midGray},d("ovulationPage.periodDuration")):J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959"},d("ovulationPage.periodDuration")+" ",J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},d("ovulationPage.dayUnit"))),J.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===s&&J.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:c.theme.colors.gray600},h),J.default.createElement(N.Slider,{containerStyle:{flex:1},min:1,max:15,step:1,value:h,onChange:f,labelAlwaysOn:"marryBaby"!==s,withControl:"marryBaby"!==s,label:"marryBaby"!==s?void 0:null}))),J.default.createElement("div",{style:{width:"100%",display:"flex"}},J.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===s?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:v,onClick:()=>{localStorage.setItem("ovulationInfo",JSON.stringify(b)),i&&i({startDate:u,cycle:p,periodLength:h})},role:"button"},d("dueDatePage.lastPeriod.calculate"))))};var yl;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(yl||(yl={}));const xl=({locale:a,onSubmitOvulation:l,isSide:n,siteType:i})=>{const{t:o}=r.useTranslations(),[s,d]=e.useState(yl.trackPeriod),c=[{label:o("ovulationPage.trackPeriod"),value:yl.trackPeriod},{label:o("ovulationPage.conceive"),value:yl.conceive},{label:o("ovulationPage.avoidPregnancy"),value:yl.avoidPregnancy}];return J.default.createElement(za,null,J.default.createElement(Ea,{className:"input-form input-section","data-is-side":!0},"marryBaby"===i?J.default.createElement(ya,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:c,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[s],onChange:e=>{d(e.value)}}):J.default.createElement(J.default.Fragment,null,J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},o("ovulationPage.objectives")),J.default.createElement(wa,{"data-is-side":n},J.default.createElement(D.Dropdown,{options:c,placeholder:o("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[s],onChange:e=>{d(e.value)}})))),J.default.createElement(vl,{siteType:i,locale:a,onSubmit:({startDate:e,cycle:t,periodLength:a})=>{l&&l({method:s,periodDateStart:e,cycle:t,periodLength:a})},isSide:n}))},El=({siteType:t,info:l,onChange:n,errorMessage:i={}})=>{const{t:o}=r.useTranslations(),[s,d]=e.useState({weightBefore:!1,height:!1,weight:!1}),[u,m]=e.useState(0),p=e.useRef(null);e.useEffect((()=>{var e;m(null===(e=p.current)||void 0===e?void 0:e.clientHeight)}));const g=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},h=e=>{g(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});n&&n(t)}))},f=e=>{g(e,(e=>{d((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});n&&n(t)}))},b=e=>{g(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});n&&n(t)}))};return e.useEffect((()=>{n&&n(Object.assign({},l))}),[]),e.useEffect((()=>{d({weightBefore:!1,height:!1,weight:!1})}),[i]),"marryBaby"===t?J.default.createElement(J.default.Fragment,null,J.default.createElement("div",{className:"input-form-pwg input-section"},J.default.createElement(xa,{label:o("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:J.default.createElement(w.Input,{className:(null==s?void 0:s.height)?"":"error-input",name:"pwg-height",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.height,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==s?void 0:s.height)?"":null==i?void 0:i.height,showErrorMessage:!1,onChange:f})})),J.default.createElement("div",{className:"input-form-pwg input-section"},J.default.createElement(xa,{label:o("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:J.default.createElement(w.Input,{className:(null==s?void 0:s.weightBefore)?"":"error-input",name:"pwg-weightBefore",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weightBefore,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==s?void 0:s.weightBefore)?"":null==i?void 0:i.height,showErrorMessage:!1,onChange:h})})),J.default.createElement("div",{className:"input-form-pwg input-section"},J.default.createElement(xa,{label:o("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:J.default.createElement(w.Input,{className:(null==s?void 0:s.weight)?"":"error-input",name:"pwg-weight",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weight,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==s?void 0:s.weight)?"":null==i?void 0:i.weight,showErrorMessage:!1,onChange:b})}))):J.default.createElement(J.default.Fragment,null,J.default.createElement("div",{className:"input-form-pwg"},J.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.height"),className:"input-section",label:J.default.createElement("span",{style:{color:c.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},o("pregnancyWeightGain.heightInput")," ",J.default.createElement("span",{style:{color:`${c.theme.colors.gray300}`}},o("bmi.heightInput.desc"))),errorMessage:s.height?"":null==i?void 0:i.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:f})),J.default.createElement("div",{className:"input-form-pwg"},J.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.weight"),className:"input-section",label:J.default.createElement("span",{style:{color:c.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:p,className:"label-text"},o("pregnancyWeightGain.weightBeforeInput")," ",J.default.createElement("span",{style:{color:`${c.theme.colors.gray300}`}},o("pregnancyWeightGain.weightInput.desc"))),errorMessage:s.weightBefore?"":null==i?void 0:i.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:h,value:null==l?void 0:l.weightBefore})),J.default.createElement("div",{className:"input-form-pwg"},J.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.weight"),className:"input-section",label:J.default.createElement("span",{style:{color:c.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:u},className:"label-text"},o("pregnancyWeightGain.weightInput")," ",J.default.createElement("span",{style:{color:`${c.theme.colors.gray300}`}},o("pregnancyWeightGain.weightInput.desc"))),errorMessage:s.weight?"":null==i?void 0:i.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:b})))},wl=ae.default.div`
3217
+ flex: 1;
3218
+ `,Cl=ae.default.div`
3219
+ padding: 0 10px;
3220
+ `,kl=ae.default.div`
3221
+ display: flex;
3222
+ height: 80px;
3223
+ align-items: center;
3224
+ .calendar-month {
3225
+ font-size: 16px;
3226
+ flex: 1;
3227
+ text-align: center;
3228
+ strong {
3229
+ margin-left: 5px;
3230
+ }
3231
+ }
3232
+ ${l.MediaQueries.mbDown} {
3233
+ height: 70px;
3234
+ }
3235
+ `,Bl=ae.default.div`
3236
+ display: grid;
3237
+ grid-template-columns: repeat(7, 1fr);
3238
+ row-gap: 2px;
3239
+ `,Tl=ae.default(Bl)`
3240
+ margin-bottom: 8px;
3241
+ `;ae.default.div`
3242
+ height: 40px;
3243
+ width: 40px;
3244
+ display: flex;
3245
+ align-items: center;
3246
+ justify-content: center;
3247
+ `;const Nl=ae.default.div`
3248
+ font-size: 14px;
3249
+ display: flex;
3250
+ justify-content: center;
3251
+ align-items: center;
3252
+ color: 1px solid ${e=>e.theme.colors.gray800};
3253
+ font-weight: 300;
3254
+ `,Sl=ae.default.div`
3255
+ width: 18px;
3256
+ position: relative;
3257
+ &::before {
3258
+ content: '';
3259
+ position: absolute;
3260
+ inset: 16px 0 0 0;
3261
+ width: 1px;
3262
+ left: 50%;
3263
+ right: 50%;
3264
+ background: ${e=>e.theme.colors.neutral100};
3265
+ }
3266
+ `,Dl=ae.default.div`
3267
+ margin: 0 auto;
3268
+ `,Ml=ae.default.div`
3269
+ position: relative;
3270
+ `,Al=ae.default(Bl)``,Pl=ae.default.div`
3271
+ position: relative;
3272
+ display: flex;
3273
+ justify-content: center;
3274
+ align-items: center;
3275
+ height: 34px;
3276
+ ${l.MediaQueries.mbUp} {
3277
+ height: 38px;
3278
+ }
3279
+ &[data-is-disabled='true'] {
3280
+ opacity: 0.3;
3281
+ }
3282
+ &[data-in-range='true']:not([data-is-from='true'][data-is-to='true']) {
3283
+ background-color: ${e=>e.theme.colors.gray100};
3284
+ }
3285
+ &:before {
3286
+ position: absolute;
3287
+ top: 0;
3288
+ bottom: 0;
3289
+ right: 0;
3290
+ background-color: ${e=>e.theme.colors.gray100};
3291
+ }
3292
+ &[data-is-from='true'][data-in-range='true'][data-is-to='false'] {
3293
+ background-color: transparent;
3294
+ &:before {
3295
+ content: '';
3296
+ left: 50%;
3297
+ right: 0;
3298
+ }
3299
+ }
3300
+
3301
+ &[data-is-to='true'][data-in-range='true'][data-is-from='false'],
3302
+ &:hover[data-in-range='true']:is([data-has-range='false'] &) {
3303
+ background-color: transparent;
3304
+ &:before {
3305
+ content: '';
3306
+ left: 0;
3307
+ right: 50%;
3308
+ }
3309
+ }
3310
+ `,$l=ae.default.div`
3311
+ position: relative;
3312
+ font-weight: 600;
3313
+ ${l.MediaQueries.mbDown} {
3314
+ width: 32px;
3315
+ height: 32px;
3316
+ }
3317
+ ${l.MediaQueries.mbUp} {
3318
+ width: 36px;
3319
+ height: 36px;
3320
+ }
3321
+ display: flex;
3322
+ justify-content: center;
3323
+ align-items: center;
3324
+ cursor: pointer;
3325
+ [data-is-disabled='true'] & {
3326
+ cursor: not-allowed;
3327
+ }
3328
+ line-height: 1;
3329
+ color: 1px solid ${e=>e.theme.colors.gray800};
3330
+ [data-is-selected='true'] &,
3331
+ [data-is-today='true'] &,
3332
+ [data-is-selected='false']:hover & {
3333
+ border-radius: 32px;
3334
+ }
3335
+ [data-is-selected='true'] & {
3336
+ background-color: ${e=>e.theme.colors.primaryBase};
3337
+ color: white;
3338
+ }
3339
+ [data-is-selected='false']:hover & {
3340
+ background-color: ${e=>e.theme.colors.primary50};
3341
+ }
3342
+ [data-is-today='true'][data-is-selected='false'] & {
3343
+ background-color: transparent;
3344
+ border-radius: 32px;
3345
+ border: 1px solid ${e=>e.theme.colors.primaryBase};
3346
+ }
3347
+ `;const zl={"en-PH":re.default,"vi-VN":se.default,"zh-TW":de.default,"id-ID":oe.default};function Ll(t){const{value:a={from:null,to:null}}=t,[l,i]=e.useState(null),{isMobile:r}=n.useScreenSize(),[o,s]=e.useState((()=>a)),[d,c]=e.useState((()=>{var e;return k.startOfMonth(null!==(e=a.from)&&void 0!==e?e:new Date)})),u=e.useMemo((()=>k.addMonths(d,1)),[d]);const m=Object.assign(Object.assign({},t),{goToNextMonth:function(){c((e=>k.addMonths(e,1)))},goToPreviousMonth:function(){c((e=>k.subMonths(e,1)))},range:o,setRange:s,hoverDay:l,setHoverDay:i});return J.default.createElement(J.default.Fragment,null,J.default.createElement(Il,Object.assign({},m,{date:d})),!r&&J.default.createElement(Sl,null),!r&&J.default.createElement(Il,Object.assign({},m,{date:u})))}function Il({date:t,range:a,setRange:l,onChange:n,goToPreviousMonth:i,goToNextMonth:o,minDate:s,maxDate:c,close:u=(()=>{}),autoClose:m=!1,hoverDay:p,setHoverDay:g}){const{locale:h}=r.useTranslations(),f=e.useMemo((()=>{var e;return null!==(e=zl[h])&&void 0!==e?e:zl["en-PH"]}),[h]),b=e.useMemo((()=>k.format(t,"MMMM",{locale:f})),[t,f]),v=e.useMemo((()=>f?[1,2,3,4,5,6,0].map((e=>f.localize.day(e,{width:"narrow"}))):[]),[f]);function y(e,t){if(null===e)return J.default.createElement(Pl,{key:`idx-${t}`,"data-empty":"true"});const n=e.getDate(),i=k.isToday(e),r=!!a.from&&k.isSameDay(a.from,e),o=!!a.to&&k.isSameDay(a.to,e),d=r||o;let h=!1;null!==p&&a.from&&k.isBefore(a.from,p)&&!a.to?h=k.isWithinInterval(e,{start:a.from,end:p}):a.from&&a.to&&(h=k.isWithinInterval(e,{start:a.from,end:a.to}));let f=!1;return s&&c?f=!k.isWithinInterval(e,{start:s,end:c}):s?f=k.isBefore(e,s):c&&(f=k.isAfter(e,c)),J.default.createElement(Pl,{key:n,"data-is-today":i,"data-is-past":!i&&k.isPast(e),"data-is-selected":d,"data-is-disabled":f,"data-in-range":h,"data-is-from":r,"data-is-to":o,onMouseEnter:()=>{g(e)},onMouseLeave:()=>g(null),onClick:()=>{f||l((t=>(m&&a.from&&!a.to&&u(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?k.isBefore(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})}(e,t))))}},J.default.createElement($l,{onClick:()=>{}},J.default.createElement("p",null,n)))}return e.useEffect((()=>{a.from&&a.to&&n(a)}),[a]),J.default.createElement(wl,{className:"calendar-wrapper"},J.default.createElement(kl,null,J.default.createElement(E.Button,{onClick:i,size:"md",color:"ghost",icon:J.default.createElement("img",{src:d.CommonGAssets.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),J.default.createElement("div",{className:"calendar-month"},b,J.default.createElement("strong",null,k.format(t,"yyyy"))),J.default.createElement(E.Button,{onClick:o,size:"md",color:"ghost",icon:J.default.createElement("img",{src:d.CommonGAssets.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),J.default.createElement(Cl,null,J.default.createElement("div",null,J.default.createElement(Tl,null,v.map(((e,t)=>J.default.createElement(Nl,{key:`${e}-${t}`},e))))),J.default.createElement("div",null,function(){const e=t.getFullYear(),l=t.getMonth(),n=k.getDaysInMonth(t),i=[];for(let t=1;t<=n;t++)i.push(new Date(e,l,t));const r=i[0]?i[0].getDay():0;if(1!==r){const e=0===r?6:r-1;for(let t=0;t<e;t++)i.unshift(null)}return J.default.createElement(Ml,{key:`month-${l}`,"data-month-index":l,"data-has-range":Boolean(a.from&&a.to)},J.default.createElement(Dl,null,J.default.createElement(Al,null,i.map(y))))}())))}const _l=ae.default.div`
3348
+ display: block;
3349
+ position: relative;
3350
+ width: 270px;
3351
+ input {
3352
+ pointer-events: none;
3353
+ caret-color: transparent;
3354
+ }
3355
+ ${l.MediaQueries.mbDown} {
3356
+ width: 100%;
3357
+ }
3358
+ `,Ol=ae.default.div`
3359
+ display: flex;
3360
+ position: absolute;
3361
+ top: 46px;
3362
+ left: 0;
3363
+ width: 684px;
3364
+ border: 1px solid ${e=>e.theme.colors.gray200};
3365
+ filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
3366
+ drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
3367
+ drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
3368
+ border-radius: ${e=>e.theme.borderRadius};
3369
+ background-color: white;
3370
+ z-index: 100;
3371
+ padding-bottom: 16px;
3372
+ align-items: stretch;
3373
+ user-select: none;
3374
+ ${l.MediaQueries.mbDown} {
3375
+ width: 100%;
3376
+ }
3377
+ `;var jl="WUqzfRb",Fl="MnVGtSY",Hl="NclbhXQ";const Rl=({LinkComponent:e,page:t,isLast:a,onChangePage:l})=>{const{label:n,value:i,isDropdown:r,dropdownItems:o,dataEventCategory:s,dataEventAction:d,dataEventLabel:c}=t;return r?J.default.createElement(D.Dropdown,{options:o,placeholder:"...",id:"",placeholderIcon:null,onChange:l,className:"collapsed-breadcrumb"}):J.default.createElement("div",{className:Hl,title:"string"!=typeof n?i:n,"data-last":a},e&&J.default.createElement(e,{"data-event-category":s,"data-event-action":d,"data-event-label":c,href:i||"#"},n))},Gl=ae.default.div`
3378
+ display: flex;
3379
+ gap: 20px;
3380
+ width: 100%;
3381
+ align-items: center;
3382
+ justify-content: center;
3383
+ .icon-group {
3384
+ display: flex;
3385
+ align-items: center;
3386
+ gap: 10px;
3387
+ a,
3388
+ svg {
3389
+ width: 32px;
3390
+ height: 32px;
3391
+ }
3392
+ .share {
3393
+ width: 32px;
3394
+ height: 32px;
3395
+ padding: 8px;
3396
+
3397
+ &:hover {
3398
+ background-color: ${e=>e.theme.colors.neutral50};
3399
+ }
3400
+
3401
+ svg {
3402
+ margin: 0;
3403
+ width: 16px;
3404
+ height: 16px;
3405
+ }
3406
+ }
3407
+ }
3408
+ `,Ul=()=>J.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},J.default.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"}),J.default.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),Wl=ae.default(z.Drawer)`
3409
+ padding-bottom: 24px;
3410
+ .share-container {
3411
+ display: flex;
3412
+ flex-direction: column;
3413
+ gap: 24px;
3414
+ }
3415
+ .icon-group {
3416
+ margin-top: 12px;
3417
+ display: flex;
3418
+ gap: 16px;
3419
+ img {
3420
+ border-radius: 8px;
3421
+ }
3422
+ }
3423
+ .input-group {
3424
+ margin-top: 8px;
3425
+ display: flex;
3426
+ gap: 8px;
3427
+ button {
3428
+ padding: 10px;
3429
+ &:hover {
3430
+ background-color: ${e=>e.theme.colors.neutral50};
3431
+ }
3432
+ }
3433
+ svg {
3434
+ margin: 0;
3435
+ }
3436
+ a,
3437
+ svg:not(.copy) {
3438
+ width: 32px;
3439
+ height: 32px;
3440
+ }
3441
+ }
3442
+ `,Vl=()=>J.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"copy"},J.default.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"})),ql=ae.default.div`
3443
+ position: fixed;
3444
+ z-index: 48;
3445
+ bottom: 0;
3446
+ left: 50%;
3447
+ width: fit-content;
3448
+ max-width: 100%;
3449
+ background: none;
3450
+ transform: translateX(-50%);
3451
+ .close-sticky-button {
3452
+ position: absolute;
3453
+ display: flex;
3454
+ width: 16px;
3455
+ height: 16px;
3456
+ align-items: center;
3457
+ justify-content: center;
3458
+ background: #bfbfbf;
3459
+ border-radius: 50%;
3460
+ color: white;
3461
+
3462
+ cursor: pointer;
3463
+ font-size: 12px;
3464
+ line-height: 12px;
3465
+ transform: translate(50%, -50%);
3466
+ top: 0;
3467
+ right: 0;
3468
+ }
3469
+ opacity: 0;
3470
+ pointer-events: none;
3471
+ &[data-visible='true'] {
3472
+ opacity: 1;
3473
+ pointer-events: auto;
3474
+ }
3475
+ `,Ql=ae.default.div`
3476
+ display: flex;
3477
+ justify-content: center;
3478
+ align-items: center;
3479
+ flex-direction: column;
3480
+ max-width: 100%;
3481
+ width: fit-content;
3482
+ height: fit-content;
3483
+ margin-inline: auto;
3484
+ /* margin: 1rem auto; */
3485
+ &[data-no-wrapper='false'] {
3486
+ border: 1px solid ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
3487
+ background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
3488
+ }
3489
+ &[data-no-wrapper='true'] {
3490
+ line-height: 0;
3491
+ }
3492
+ &[data-header-bottom='true'] {
3493
+ flex-direction: column-reverse;
3494
+ background: none;
3495
+ border: none;
3496
+ }
3497
+ `,Zl=ae.default.div`
3498
+ /* background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}}; */
3499
+ width: 100%;
3500
+ padding: 0 5px 1.5px;
3501
+ display: flex;
3502
+ align-items: center;
3503
+ justify-content: center;
3504
+ gap: 5px;
3505
+ text-transform: capitalize;
3506
+ img {
3507
+ height: 12px;
3508
+ width: 12px;
3509
+ max-width: 12px;
3510
+ max-height: 12px;
3511
+ }
3512
+ &[data-header-bottom='true'] {
3513
+ background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
3514
+ }
3515
+ span {
3516
+ font-size: 10px;
3517
+ line-height: 12px;
3518
+ color: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.gray400}};
3519
+ font-weight: 400;
3520
+ }
3521
+ `,Yl=ae.default.div`
3522
+ background-color: white;
3523
+ background-image: url(${d.CommonGAssets.getAssetPath("close-blue.svg")});
3524
+ background-repeat: no-repeat;
3525
+ background-size: 10px;
3526
+ background-position: center;
3527
+ width: 12px;
3528
+ height: 12px;
3529
+ position: absolute;
3530
+ top: 1px;
3531
+ right: 1px;
3532
+ cursor: pointer;
3533
+ `,Kl={},Xl=e=>{if(Kl[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([Kl[e]]),delete Kl[e]}))}},Jl=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],en=e.forwardRef((function({className:t,adUnitPath:a,size:l,divId:n,pos:i,sizeMapping:o,contentId:s,isHidden:c,hideIfHasSubot:u,isSticky:p,refreshInterval:h,customTargetings:f,style:b,adDefaultSize:v,noWrapper:y,showCloseBtn:x,onCloseAd:E,headerBottom:w,wrapperProps:C,locale:k,isMarryBaby:B},T){const N=h||(k===g.LOCALE.Vietnam&&i.some((e=>Jl.includes(e)))?30:void 0),{t:S}=r.useTranslations(),D=e.useRef(null),M=e.useRef(null),A=e.useRef(N);A.current=N;const[P,$]=e.useState(!1),z=()=>{A.current&&(null!==M.current&&clearInterval(M.current),M.current=window.setInterval((()=>{window.googletag=window.googletag||{cmd:[]};const{googletag:e}=window;e.cmd.push((function(){Kl[n]&&e.pubads().refresh([Kl[n]])}))}),1e3*A.current))};if(e.useEffect((()=>()=>{Xl(n),M.current&&clearInterval(M.current)}),[]),e.useEffect((()=>{z()}),[N]),e.useEffect((()=>{c||(({contentId:e,adUnitPath:t,size:a,divId:l,pos:n,sizeMapping:i,hideIfHasSubot:r,customTargetings:o,onSuccess:s})=>{if(!l||!document.getElementById(l))return console.error("divId is required");Xl(l),window.googletag=window.googletag||{cmd:[]};const{googletag:d}=window;d.cmd.push((function(){const c=document.querySelector('meta[name="content_id"]'),u="string"==typeof e?e:null==c?void 0:c.content,m=d.defineSlot(t,a,l);if(m){try{o&&Object.keys(o).forEach((e=>{e&&(null==m||m.setTargeting(e,o[e]))}))}catch(e){console.error(e)}Kl[l]=m,m.setTargeting("Pos",n),m.addService(d.pubads()),u&&m.setTargeting("Content_ID",u),i&&m.defineSizeMapping(i),r&&document.getElementById("subot--container")&&m.setTargeting("chatbot",!0),d.display(l),null==s||s()}}))})({contentId:s,adUnitPath:a,size:l,divId:n,pos:i,sizeMapping:o,hideIfHasSubot:u,customTargetings:f,onSuccess:z})}),[c]),P)return null;const L=J.default.createElement("div",{style:{position:"relative",width:"fit-content",height:"fit-content",overflow:"hidden",maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},J.default.createElement("div",{ref:T,id:n}),x&&J.default.createElement(Yl,{onClick:()=>{null==E||E(),$(!0)}}));if(p)return L;const I=v?v[0]:l?Array.isArray(l[0])?l[0][0]:l[0]:void 0,_=v?v[1]:l?Array.isArray(l[0])?l[0][1]:l[1]:void 0;return J.default.createElement(m.Box,Object.assign({},C,{className:t}),J.default.createElement(Ql,{ref:D,className:t,style:b,"data-no-wrapper":!!y,"data-header-bottom":!!w},y?L:J.default.createElement(J.default.Fragment,null,J.default.createElement(Zl,{"data-header-bottom":!!w},J.default.createElement("img",{src:B?d.CommonGAssets.getAssetPath("adsIcon-mb.svg"):d.CommonGAssets.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),J.default.createElement("span",null,S("adBanner.title"))),J.default.createElement("div",{style:{minWidth:I||"100%",minHeight:_||"100%",position:"relative"}},L))))})),tn=e.memo(en,((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),an=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:d.CommonGAssets.getAssetPath("newsletter-prefer/newsletter-health.svg"),checked:!1,id:1},{title:"Educational Medical Hello Bacsi Content",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:d.CommonGAssets.getAssetPath("newsletter-prefer/newsletter-education.svg"),checked:!1,id:2},{title:"Hello Health Community Feed",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:d.CommonGAssets.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];var ln;!function(e){e.DUE_DATE="due-date-calculator",e.BMI="bmi",e.BMR="bmr",e.OVULATION="ovulation",e.IFRAME="IFRAME",e.PWG="pregnancy-weight-gain",e.THR="heart-rate",e.BABY_VACCINE="vaccination-tool",e.BABY_GROWTH="baby-growth-tracking",e.BABY_POOP="baby-poop-checking"}(ln||(ln={}));const nn={DUE_DATE:ln.DUE_DATE,BMI:ln.BMI,BMR:ln.BMR,OVULATION:ln.OVULATION,IFRAME:ln.IFRAME,PWG:ln.PWG,THR:ln.THR,BABY_VACCINE:ln.BABY_VACCINE,BABY_GROWTH:ln.BABY_GROWTH,BABY_POOP:ln.BABY_POOP},rn={[nn.DUE_DATE]:d.CommonGAssets.getAssetPath("health-tools/due-date-icon.svg")};var on,sn,dn,cn;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(on||(on={})),function(e){e.Option="option"}(sn||(sn={})),function(e){e.Button="button",e.Checkbox="checkbox"}(dn||(dn={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(cn||(cn={}));const un={pregnancy:on.Pregnant,parenting:on.Parenting},mn={[on.Pregnant]:"pregnant",[on.Parenting]:"parent"},pn=e=>({[nn.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:nn.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[nn.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:nn.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[nn.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:nn.BABY_GROWTH},[s.RISK_SCREENER_NAME.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:d.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:d.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:s.RISK_SCREENER_NAME.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),gn=e.createContext({}),hn=t=>{var a=u.__rest(t,[]);const{locale:l}=r.useTranslations(),{type:i,isMobile:o,currentUrl:s,isMarketing:c,isLoggedIn:p,setShouldAcquisitionModalOpen:g}=e.useContext(gn);return J.default.createElement(m.Container,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>u.__awaiter(void 0,void 0,void 0,(function*(){const e=c?U.getCurrentBaseUrl(l)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;p?null==g||g():window.location.href=`${U.getCurrentSsoUrl(l)}/?returnUrl=${encodeURIComponent(e)}`})),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":s,className:"pointer-event-child-none"},a),J.default.createElement(n.ImageWrap,{src:c?d.CommonGAssets.getAssetPath(`newsletter/${o?"Mobile":"Desktop"}_Marketing.png`):d.CommonGAssets.getAssetPath(`newsletter/${o?"Mobile":"Desktop"}_${i}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},fn="api/v1/categories?site={website_url}",bn="api/v1/subscription?site={website_url}",vn="api/v1/categories?site={website_url}";var yn=m.createStyles((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:m.rem(32),padding:`${m.rem(6)} ${m.rem(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const xn=({heading:l,description:n,thumbnail:i={desktop:"",mobile:""},hideDescOnMobile:r,children:o})=>{const{isMobile:s,minHeight:d}=e.useContext(gn);return J.default.createElement(m.Box,{sx:()=>({borderRadius:m.rem(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},J.default.createElement(m.Box,{sx:e=>({minHeight:m.rem(d),borderRadius:"inherit",background:`url(${s?i.mobile:i.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${m.rem(24)} ${m.rem(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${m.rem(22)} ${m.rem(32)}`}})},J.default.createElement(m.Stack,{spacing:m.rem(16)},J.default.createElement(m.Stack,{spacing:m.rem(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},l&&J.default.createElement(a.Heading,{tag:"h4"},l),!(r&&s)&&n&&J.default.createElement(t.Text,{size:"p4"},n)),J.default.createElement(m.Box,null,o))))},En=l=>{const{styleType:i=dn.Button,items:o=[],buttonProps:d,styles:c,submitBtnTracking:p}=l,{classes:g}=yn(void 0,{name:"PremiumBannerWithOptions",styles:c}),{t:h,locale:f}=r.useTranslations(),{surveyType:b,articleId:v,handleClickOption:y,hasPremiumBanner:x,source:E,isMobile:w,setShowPNModal:C}=e.useContext(gn),k=e.useMemo((()=>x?o:o.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean)),[o]),{getHealthToolLink:B}=P.useHealthToolsCache(f),T=W.useForm({initialValues:{bannerOptions:[]}}),N=e=>u.__awaiter(void 0,void 0,void 0,(function*(){return yield a.callApiWithAuth(a.getApiPath(a.PATHS.HEALTH_TOOL.CREATE,{_locale:f,type:mn[b]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:v,source:E}})})),S=e.useCallback((()=>J.default.createElement(m.Flex,{gap:m.rem(8),className:g.wrapper},k.map(((e,t)=>J.default.createElement(m.Box,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${s.domainLocales[f]}/bot/${s.RISK_SCREENER_SLUG[f][e.activeTool]}/`:e.isLink?B(e.activeTool):void 0},J.default.createElement(n.Button,Object.assign({className:g.button,classNames:{label:g.buttonLabel},size:"sm"},e.tracking,d,{onClick:()=>{e.isLink||(e.isPNBtn&&C(!0),N(e.value),y(e.value))}}),e.label)))))),[k,T]),D=e.useCallback((()=>J.default.createElement(m.Flex,null,J.default.createElement(m.Flex,{align:"center",gap:m.rem(24),sx:e=>({background:"white",borderRadius:m.rem(8),padding:m.rem(4),[e.fn.largerThan("sm")]:{paddingLeft:m.rem(16)}})},J.default.createElement(n.Checkbox.Group,Object.assign({},T.getInputProps("bannerOptions",{type:"checkbox"})),J.default.createElement(m.Flex,{gap:m.rem(16)},k.map(((e,t)=>J.default.createElement(n.Checkbox,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}}))))),J.default.createElement(n.Button,Object.assign({size:"sm"},p,d,{disabled:0===T.getInputProps("bannerOptions").value.length,leftIcon:w?J.default.createElement(t.Icon.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=T.getInputProps("bannerOptions").value;N(e.join("|")),y(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:m.rem(38),minWidth:"auto",padding:0}}})}),!w&&h("pnBanner.submit"))))),[k,T]);return J.default.createElement(xn,Object.assign({},l),i===dn.Button?S():i===dn.Checkbox?D():null)},wn=l=>{var i,d;const{t:c}=r.useTranslations(),{heading:u,description:p,thumbnail:g,btnLabel:h,value:f,isRiskScreener:b,hideDescOnMobile:v,dataEventAction:y}=l,{locale:x}=r.useTranslations(),{isMobile:E}=e.useContext(gn),{getHealthToolLink:w,allTools:C}=P.useHealthToolsCache(x),k=b?"mainBanner":"toolBanner",B=e.useMemo((()=>{const e=b?`https://${o.isProduction?"":"discover."}${s.domainLocales[x]}/bot/${s.RISK_SCREENER_SLUG[x][f]}`:w(f);return J.default.createElement("a",{href:e},J.default.createElement(n.Button,{size:"sm","data-event-category":"Focused Audience","data-event-action":y,"data-event-label":e},h||c("pnBanner.caclNow")))}),[C]);return"mainBanner"===k?J.default.createElement(xn,Object.assign({},Object.assign(Object.assign({},l),{thumbnail:l.thumbnail})),B):J.default.createElement(m.Flex,{gap:m.rem(7),align:"center",justify:"space-between",sx:e=>({borderRadius:m.rem(8),background:e.colors.blue[0],minHeight:m.rem(180),padding:`${m.rem(24)} ${m.rem(16)}`,[e.fn.largerThan("sm")]:{padding:`${m.rem(34)} ${m.rem(32)}`}})},J.default.createElement(m.Stack,{spacing:m.rem(12)},J.default.createElement(m.Stack,{spacing:m.rem(4)},u&&J.default.createElement(a.Heading,{tag:"h4"},u),!(E&&v)&&p&&J.default.createElement(t.Text,{size:"p4"},p)),J.default.createElement(m.Flex,{gap:m.rem(8),sx:{button:{minWidth:m.rem(120)}}},B)),J.default.createElement(m.Flex,{align:"center",justify:"center",sx:e=>({width:m.rem(96),height:m.rem(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:m.rem(112),height:m.rem(112)},img:{maxWidth:m.rem(64),[e.fn.largerThan("sm")]:{maxWidth:m.rem(73)}}})},J.default.createElement("img",{alt:"health-tool-icon",src:g||(null===(d=null===(i=C.filter((e=>e.template===f)))||void 0===i?void 0:i[0])||void 0===d?void 0:d.icon)||rn[f]||"",loading:"lazy"})))},Cn=()=>{var t,a,l;const{t:n}=r.useTranslations(),{state:i,Outside:o}=e.useContext(gn);return(null==i?void 0:i.action)===cn.ShowTool?J.default.createElement(o,null,pn(n)[null===(t=null==i?void 0:i.props)||void 0===t?void 0:t.value]?J.default.createElement(wn,Object.assign({},pn(n)[null===(a=null==i?void 0:i.props)||void 0===a?void 0:a.value],{value:null===(l=null==i?void 0:i.props)||void 0===l?void 0:l.value})):null):(null==i?void 0:i.action)===cn.ShowOptionBanner?J.default.createElement(o,null,J.default.createElement(En,Object.assign({},null==i?void 0:i.props))):null},kn=a=>{var{isMobile:l,children:i,desktopBanner:r=d.CommonGAssets.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:o=d.CommonGAssets.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:s={width:937,height:536},mobileBannerRatio:c={width:750,height:480},desktopBannerRatio:p={width:420,height:536},closeProps:g}=a,h=u.__rest(a,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:f,height:v}=b.useViewportSize(),y=(v<=667?190:265)+f*c.height/c.width+74,[x,E]=e.useState(!1);return J.default.createElement(V.Modal,Object.assign({styles:e=>({content:{flex:"auto",background:"transparent",[e.fn.smallerThan("sm")]:{maxHeight:"100%",height:"100%",position:"relative",borderRadius:0},[e.fn.largerThan("sm")]:{maxWidth:m.rem(s.width),width:"100%",height:"100%",maxHeight:m.rem(s.height),boxShadow:"none"}},body:{padding:0,width:"100%",height:"100%",[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}},inner:{padding:0,[e.fn.smallerThan("sm")]:{display:"flex",alignItems:"flex-end"}}})},h),l?J.default.createElement(m.Box,{sx:{position:"relative",height:"100%"},onTouchStart:()=>E(!0)},J.default.createElement(m.Box,{className:"mobile-template",sx:{position:"absolute",height:100*(x?1:y/v)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},J.default.createElement(m.Box,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:x?0:m.rem(12),borderTopRightRadius:x?0:m.rem(12)}},J.default.createElement(m.Box,{sx:{height:"calc(100% - 74px)",background:`url(${o})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},J.default.createElement(m.UnstyledButton,Object.assign({leftIcon:J.default.createElement(t.Icon.Close,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:m.rem(10)}},g,{onClick:()=>null==h?void 0:h.onClose()})),J.default.createElement(m.AspectRatio,{ratio:(null==c?void 0:c.width)/(null==c?void 0:c.height),w:"100%"}),J.default.createElement(m.Box,{sx:{padding:`${m.rem(28)} ${m.rem(16)} ${m.rem(16)}`,background:"white"}},i))))):J.default.createElement(m.AspectRatio,{className:"desktop-template",ratio:s.width/s.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},J.default.createElement(m.Box,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:m.rem(8),background:"white",boxShadow:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"}},J.default.createElement("img",{alt:"",src:r,loading:"lazy",style:{borderTopLeftRadius:m.rem(8),borderBottomLeftRadius:m.rem(8),height:"100%",display:"block"}}),J.default.createElement(m.Box,{sx:{position:"relative",height:"100%",width:(s.width-p.width)/s.width*100+"%"}},J.default.createElement(n.Button,Object.assign({unstyled:!0,leftIcon:J.default.createElement(t.Icon.Close,null)},g,{onClick:()=>null==h?void 0:h.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),J.default.createElement(m.Box,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${m.rem(40)} ${m.rem(24)} 0`}},i)))))},Bn="user/subscription",Tn=e.createContext({}),Nn=e=>{var{value:t,name:a}=e,l=u.__rest(e,["value","name"]);return J.default.createElement(n.ChipButton,Object.assign({value:t,withIcon:!0},l,{buttonProps:{styles:()=>({leftIcon:{marginRight:m.rem(6)},root:{paddingLeft:m.rem(10),paddingRight:m.rem(10)}})}}),a)},Sn=({topicsGroup:l,onTopicChange:n,isBlock:i=!1,selectedTopics:o=[],inputProps:s,labelProps:d,maxSelect:c=5,hasScroll:u,readonly:p})=>{const{action:{pushNotifications:g}}=e.useContext(a.TogetherComponentGlobalContext),h=ue.default(l.map((e=>e.topics||[]))),{t:f}=r.useTranslations(),[b,v]=e.useState([]);e.useEffect((()=>{v(o)}),[o.length]),e.useEffect((()=>{null==n||n(b)}),[b]);const y=e=>{e.length>5?g({type:"danger",title:f("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:f("pnTopicSection.maxSelectError.desc")}):!p&&v((()=>h.filter((t=>e.some((e=>t.catId===e))))))};return J.default.createElement(m.Stack,{spacing:12},l.map(((e,a)=>J.default.createElement(m.Stack,{key:String(a),spacing:12},e.label&&J.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},d),e.label),u?J.default.createElement(m.ScrollArea,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},J.default.createElement(m.Box,{w:800},J.default.createElement(m.Chip.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},s,{onChange:y}),J.default.createElement(m.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>J.default.createElement(Nn,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:i},e.tracking)))))))):J.default.createElement(m.Chip.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},s,{onChange:y}),J.default.createElement(m.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>t.catId?J.default.createElement(Nn,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:i},e.tracking)):J.default.isValidElement(t.component)?t.component:null))))))))},Dn=t=>{var{heading:l,children:n,stickyActions:i}=t,r=u.__rest(t,["heading","children","stickyActions"]);const{isMobile:o}=e.useContext(Tn),s=J.default.createElement(m.Stack,{spacing:m.rem(24),sx:{height:"100%"}},J.default.createElement(a.Heading,{tag:"h4",style:{textAlign:"center"}},l),J.default.createElement(m.Box,null,n));return J.default.createElement(m.Box,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},o?s:J.default.createElement(m.ScrollArea,Object.assign({className:"layout-body",h:i?"calc(100% - 90px)":"100%"},r),s),i&&J.default.createElement(m.Flex,{gap:m.rem(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:m.rem(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${m.rem(24)} 0`}})},i))},Mn=()=>{const{t:l,locale:i}=r.useTranslations(),{data:{userInfo:o},action:{pushNotifications:s}}=e.useContext(a.TogetherComponentGlobalContext),d=null==o?void 0:o.id,{currentUrl:c,isMobile:p,pnSuggestCategory:g=[],nextStep:h,formValues:f,setFormValues:b,onSubmit:v,submitLoading:y,selectCategory:x,setCategoryLibs:E,setSelectCategory:w,maxSelectCategory:C}=e.useContext(Tn),k=g.map((e=>e.catId)),B=W.useForm({validate:{name:W.isNotEmpty(l("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},f),{fitnessTopics:k})}),[T,N]=e.useState([]),[S,D]=e.useState([]);e.useEffect((()=>{u.__awaiter(void 0,void 0,void 0,(function*(){var e;try{const t=yield a.callApiWithAuth(a.getPremiumApiPath(vn,{_locale:i}),"get"),l=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!k.includes(e.catId)));N(g),D(l),E([...g,...l])}catch(e){console.log(e)}}))}),[]),e.useEffect((()=>{d&&B.setFieldValue("name",(null==o?void 0:o.name)||"")}),[d]);const M=()=>{""!==B.getInputProps("name").value?(b(B.getTransformedValues()),h()):B.validateField("name")},A=e.useMemo((()=>J.default.createElement(n.Button,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:c,leftIcon:J.default.createElement(t.Icon.Plus,{size:16,color:"#262626",useCurrentColor:!0}),onClick:M,styles:e=>({root:{borderRadius:m.rem(6),padding:"2px 15px",height:m.rem(40)},label:{fontSize:m.rem(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:m.rem(12),lineHeight:m.rem(16),height:m.rem(40)}},leftIcon:{marginRight:"5px"}})},J.default.createElement(t.Text,{size:p?"p3":"p4"},l("home.seeMore")))),[B]);return e.useEffect((()=>{B.setFieldValue("fitnessTopics",x.map((e=>e.catId)))}),[x]),J.default.createElement("form",{style:{height:"100%"},onSubmit:B.onSubmit((e=>{if(0===x.length)return s({type:"danger",title:l("newsletter.error.minTitle"),message:l("newsletter.error.minCotennt")}),!1;b(e),null==v||v(e.name)}))},J.default.createElement(Dn,{heading:l("healthToolPNModal.heading"),stickyActions:J.default.createElement(J.default.Fragment,null,J.default.createElement(n.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:c,loading:y,sx:{maxWidth:m.rem(240)}},l("healthToolPNModal.register")))},J.default.createElement(m.Stack,{spacing:m.rem(16)},J.default.createElement(n.Input,Object.assign({label:l("newsletter.welcome.description")},B.getInputProps("name"))),J.default.createElement(Sn,{topicsGroup:[...0===g.length&&0===S.length?[{topics:[{component:A}]}]:[],...g.length>0?[{label:l("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...g,...0===S.length?[{component:A}]:[]]}]:[],...S.length>0?[{label:l("healthToolPNModal.findMore.chooseFav"),topics:[...S,...S.length>0?[{component:A}]:[]]}]:[]],selectedTopics:[...T],labelProps:{size:p?"p3":"p4",color:"gray.6"},onTopicChange:w,maxSelect:C}))))},An=e.forwardRef((function(e,a){var{label:l}=e,n=u.__rest(e,["label"]);return J.default.createElement("div",Object.assign({ref:a},n),J.default.createElement(m.Group,{noWrap:!0},J.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},J.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),J.default.createElement(t.Text,{size:"p3"},l)))})),Pn=e.forwardRef((function(e,a){var{label:l}=e,n=u.__rest(e,["label"]);return J.default.createElement("div",Object.assign({ref:a},n),J.default.createElement(t.Text,{size:"p3"},l))})),$n=({history:e,onDelete:a})=>J.default.createElement(m.Flex,{wrap:"wrap",gap:8},me.default(e,"catId").map((e=>J.default.createElement(m.Badge,{key:e.catId,rightSection:J.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==a?void 0:a(e)},J.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 9C1.5 4.8525 4.8525 1.5 9 1.5C13.1475 1.5 16.5 4.8525 16.5 9C16.5 13.1475 13.1475 16.5 9 16.5C4.8525 16.5 1.5 13.1475 1.5 9ZM11.1677 12.2248C11.4602 12.5173 11.9327 12.5173 12.2252 12.2248C12.5101 11.9323 12.5101 11.4523 12.2252 11.1673L10.0577 8.99979L12.2252 6.83229C12.5177 6.53979 12.5177 6.0673 12.2252 5.7748C11.9327 5.4823 11.4602 5.4823 11.1677 5.7748L9.00015 7.9423L6.83265 5.7748C6.54015 5.4823 6.06765 5.4823 5.77515 5.7748C5.63471 5.91492 5.55579 6.10516 5.55579 6.30354C5.55579 6.50193 5.63471 6.69217 5.77515 6.83229L7.94265 8.99979L5.77515 11.1673C5.63471 11.3074 5.55579 11.4977 5.55579 11.696C5.55579 11.8944 5.63471 12.0847 5.77515 12.2248C6.06765 12.5173 6.54015 12.5173 6.83265 12.2248L9.00015 10.0573L11.1677 12.2248Z",fill:"#8C8C8C"})),styles:{root:{height:32,background:"#ffffff",padding:"5px 12px",border:`1px solid ${n.themeColors.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},J.default.createElement(t.Text,{size:"p4"},e.localName))))),zn=({topics:l,onTopicChange:n,isBlock:i=!1,selectedTopics:o,labelProps:s,maxSelect:d=5})=>{const{action:{pushNotifications:c}}=e.useContext(a.TogetherComponentGlobalContext),[u,p]=e.useState([]),{t:g}=r.useTranslations();e.useEffect((()=>{p(o)}),[o.length]),e.useEffect((()=>{n(u)}),[u]);return l&&0!==l.length?J.default.createElement(m.Stack,{spacing:12,px:16,mx:-16},J.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),g("pnTopicSection.recentView")),J.default.createElement(m.Chip.Group,{value:u.map((e=>e.catId)),onChange:e=>{i&&u.length<e.length?c({type:"danger",title:g("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:g("pnTopicSection.maxSelectError.desc")}):p((()=>l.filter((t=>e.some((e=>t.catId===e))))))},multiple:!0},J.default.createElement(m.Flex,{gap:8,wrap:"wrap"},l.map(((e,t)=>J.default.createElement(Nn,{key:t,value:e.catId,name:e.localName,isBlock:i})))))):null},Ln=e=>{var{topic:a,active:l,onClick:i}=e,r=u.__rest(e,["topic","active","onClick"]);return J.default.createElement(m.Box,Object.assign({sx:e=>({position:"relative",cursor:"pointer",padding:2,borderRadius:8,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)",minHeight:m.rem(130),[e.fn.largerThan("sm")]:{minHeight:m.rem(138)}}),onClick:()=>i(a,l)},r),l&&J.default.createElement(m.Box,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},J.default.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},J.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66699 9.99984C1.66699 5.39984 5.40033 1.6665 10.0003 1.6665C14.6003 1.6665 18.3337 5.39984 18.3337 9.99984C18.3337 14.5998 14.6003 18.3332 10.0003 18.3332C5.40033 18.3332 1.66699 14.5998 1.66699 9.99984ZM4.75066 10.5827L7.74232 13.5744C8.06732 13.8994 8.60066 13.8994 8.91732 13.5744L15.2423 7.2494C15.5673 6.9244 15.5673 6.3994 15.2423 6.0744C14.9173 5.7494 14.3923 5.7494 14.0673 6.0744L8.33399 11.8077L5.92566 9.40773C5.60066 9.08273 5.07566 9.08273 4.75066 9.40773C4.59461 9.56342 4.50692 9.7748 4.50692 9.99523C4.50692 10.2157 4.59461 10.427 4.75066 10.5827Z",fill:"#2D87F3"}),J.default.createElement("path",{d:"M7.74224 13.5772L4.75057 10.5856C4.59453 10.4299 4.50684 10.2185 4.50684 9.99808C4.50684 9.77765 4.59453 9.56627 4.75057 9.41058C5.07557 9.08558 5.60057 9.08558 5.92557 9.41058L8.33391 11.8106L14.0672 6.07725C14.3922 5.75225 14.9172 5.75225 15.2422 6.07725C15.5672 6.40225 15.5672 6.92725 15.2422 7.25225L8.91724 13.5772C8.60057 13.9022 8.06724 13.9022 7.74224 13.5772Z",fill:"white"}))),J.default.createElement(m.Box,{sx:{borderRadius:"8px"}},J.default.createElement(n.AspectRatio,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},J.default.createElement(m.Box,null,J.default.createElement("img",{src:a.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),J.default.createElement(t.Text,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},a.localName||""))},In=({topics:a,selectedTopics:l=[],onTopicChange:n,isBlock:i=!1,labelProps:o,pushNotifications:s,maxSelect:d=5})=>{const{t:c}=r.useTranslations(),[u,p]=e.useState([]),g=(e,t)=>{if(t)p((t=>t.filter((t=>t.catId!==e.catId))));else{if(i)return void s({type:"danger",title:c("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:c("pnTopicSection.maxSelectError.desc")});p((t=>[...t,e]))}};e.useEffect((()=>{p(l)}),[l.length]),e.useEffect((()=>{n(u)}),[u]);const[h,f]=e.useState(!1),[b,v]=e.useState(0),[y,x]=e.useState(0),E=e.useRef(null),w=()=>{f(!1)};return J.default.createElement(m.Stack,{spacing:10},J.default.createElement(m.Flex,{justify:"space-between",align:"center",w:"100%"},J.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},o),c("pnTopicSection.trending"))),J.default.createElement(m.Box,null,J.default.createElement(m.ScrollArea,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:E,viewportProps:{onMouseDown:e=>{e.preventDefault(),E.current&&(f(!0),v(e.pageX-E.current.offsetLeft),x(E.current.scrollLeft))},onMouseUp:w,onMouseLeave:w,onMouseMove:e=>{if(e.preventDefault(),!h||!E.current)return;const t=2*(e.pageX-E.current.offsetLeft-b);E.current.scrollLeft=y-t}},styles:{viewport:{paddingBottom:16}}},J.default.createElement(m.Box,{w:{base:112*a.length+8*(a.length-1)+10}},J.default.createElement(m.Flex,{gap:8},a.map(((e,t)=>J.default.createElement(Ln,{key:t,topic:e,onClick:g,active:u.some((t=>t.catId===e.catId)),w:{base:112}}))))))))},_n=l=>{var{isLoggedIn:i,maxSelect:o=5,values:s=[],labelProps:d,onChange:c}=l,p=u.__rest(l,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:g}}=e.useContext(a.TogetherComponentGlobalContext),[h,f]=e.useState(""),{t:b,locale:v}=r.useTranslations(),y=e.useRef(null),[x,E]=e.useState([]),[w,C]=e.useState([]),[k,B]=e.useState([]),[T,N]=e.useState([]),[S,D]=e.useState(null),[M,A]=e.useState([]);e.useEffect((()=>{u.__awaiter(void 0,void 0,void 0,(function*(){var e,t;const l=yield a.callApiWithAuth(a.getPremiumApiPath(fn,{_locale:v}),"get"),n=(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.interested)||[],i=(null===(t=null==l?void 0:l.data)||void 0===t?void 0:t.trending)||[],r=me.default([...n,...i],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(A(r||[]),D((null==l?void 0:l.data)||null),s.length>0){const e=n.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"interested"}))),t=i.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"trending"})));N(e),C(t)}}))}),[i]);const P=e.useMemo((()=>me.default([...x,...w,...T,...k],"catId")),[x,w,T,k]),[$,z]=e.useState(!1);e.useEffect((()=>{P.length>=o?z(!0):z(!1),null==c||c(P)}),[P]);return J.default.createElement(m.Stack,Object.assign({spacing:m.rem(16)},p),J.default.createElement(m.Stack,{spacing:m.rem(8)},J.default.createElement(t.Text,{size:"p3"},b("pnTopicSection.maxSelectError.detail",{max:o,maxTopic:P.length})),J.default.createElement(m.MultiSelect,{ref:y,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:n.themeColors.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:J.default.createElement(t.Text,{size:"s4",color:"gray.6"},b("pnTopicSection.notFound")),itemComponent:""===h?An:Pn,size:"lg",placeholder:b("pnTopicSection.plsEnterFavTopics"),data:M,onSearchChange:f,searchValue:h,icon:J.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},J.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9682 19.7465 14.8936 19.0205 16.4115 17.8063L20.3168 21.7116C20.7018 22.0966 21.3261 22.0966 21.7111 21.7116C22.0961 21.3266 22.0961 20.7023 21.7111 20.3173L17.8059 16.4121C19.0203 14.894 19.7465 12.9684 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#595959"})),rightSection:J.default.createElement(J.default.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>{return t=e,u.__awaiter(void 0,void 0,void 0,(function*(){var e;const a={trending:C,recently:B,interested:N,default:E};let l="default";if($)g({type:"danger",title:b("pnTopicSection.maxSelectError.title",{maxSelect:o}),message:b("pnTopicSection.maxSelectError.desc")});else{const n=[{key:"trending",array:null==S?void 0:S.trending},{key:"recently",array:null==S?void 0:S.recently},{key:"interested",array:null==S?void 0:S.interested}].find((e=>{var a;return null===(a=e.array)||void 0===a?void 0:a.some((e=>e.catId===t[0]))}));l=(null==n?void 0:n.key)||"default",a[l]((e=>[...e,...M.filter((e=>t.some((t=>e.catId===t))))].map((e=>Object.assign(Object.assign({},e),{template:l}))))),null===(e=y.current)||void 0===e||e.blur()}return null}));var t},value:[]}),P&&P.length>0&&J.default.createElement($n,{history:P,onDelete:e=>{const t={trending:C,recently:B,interested:N,default:E};(t[e.template]||t.default)((t=>{const a=[...t],l=a.findIndex((t=>t.catId===e.catId));return a.splice(l,1),a}))}})),J.default.createElement(m.Box,{sx:e=>({position:"relative",height:m.rem(175),[e.fn.largerThan("sm")]:{height:m.rem(190)}})},J.default.createElement(m.Box,{sx:{position:"absolute",top:0,right:0,left:0}},J.default.createElement(In,{topics:((null==S?void 0:S.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:w,onTopicChange:C,isBlock:$,labelProps:d}))),J.default.createElement(zn,{topics:((null==S?void 0:S.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:k,onTopicChange:B,isBlock:$,labelProps:d}),J.default.createElement(Sn,{labelProps:d,topicsGroup:[{label:b("pnTopicSection.ppAlsoInterested"),topics:((null==S?void 0:S.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:T,onTopicChange:N,isBlock:$}))},On=()=>{const{t:t}=r.useTranslations(),{action:{pushNotifications:l}}=e.useContext(a.TogetherComponentGlobalContext),{prevStep:i,formValues:o,submitLoading:s,onSubmit:d,selectCategory:c,maxSelectCategory:u,setSelectCategory:p,currentUrl:g,isLoggedIn:h}=e.useContext(Tn);return J.default.createElement(Dn,{heading:t("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:m.rem(25)}},stickyActions:J.default.createElement(J.default.Fragment,null,J.default.createElement(n.Button,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:g,onClick:i},t("healthToolPNModal.back")),J.default.createElement(n.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:g,onClick:()=>{if(0===c.length)return l({type:"danger",title:t("newsletter.error.minTitle"),message:t("newsletter.error.minCotennt")}),!1;null==d||d(o.name)},loading:s},t("healthToolPNModal.next")))},J.default.createElement(_n,{isLoggedIn:h,maxSelect:u,values:o.fitnessTopics,onChange:p,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},jn=()=>{const{t:l}=r.useTranslations(),{close:i,selectCategory:o,onRegisterSuccess:s,currentUrl:d,finishLabelOnResult:c,disclaimerText:u}=e.useContext(Tn);return e.useEffect((()=>()=>{setTimeout((()=>{null==s||s()}),400)}),[]),J.default.createElement(Dn,{heading:l("healthToolPNModal.heading"),stickyActions:J.default.createElement(n.Button,{fullWidth:!0,sx:{maxWidth:m.rem(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:d,onClick:()=>{i()}},c||l("healthToolPNModal.finish"))},J.default.createElement(m.Stack,null,J.default.createElement(m.Flex,{gap:m.rem(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:m.rem(8),padding:m.rem(8)})},J.default.createElement(m.Box,null,J.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},J.default.createElement("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",fill:"#00B16A"}),J.default.createElement("path",{d:"M9.58558 12.6674C9.22944 12.668 8.87668 12.5983 8.54752 12.4623C8.21835 12.3264 7.91925 12.1268 7.66732 11.8751L6.68587 10.8931C6.55607 10.7587 6.48424 10.5787 6.48587 10.3919C6.48749 10.2051 6.56243 10.0263 6.69455 9.89422C6.82667 9.7621 7.00539 9.68716 7.19222 9.68554C7.37906 9.68391 7.55906 9.75574 7.69345 9.88554L8.67491 10.8675C8.79344 10.986 8.93415 11.08 9.08902 11.1442C9.24389 11.2083 9.40987 11.2413 9.5775 11.2413C9.74513 11.2413 9.91111 11.2083 10.066 11.1442C10.2208 11.08 10.3616 10.986 10.4801 10.8675L16.7033 5.24335C16.8443 5.12184 17.0272 5.06032 17.213 5.07195C17.3987 5.08358 17.5726 5.16744 17.6973 5.30558C17.8221 5.44373 17.8878 5.6252 17.8805 5.81118C17.8731 5.99717 17.7933 6.17291 17.6581 6.30081L11.4592 11.8998C11.2128 12.1448 10.9205 12.3387 10.5989 12.4705C10.2774 12.6022 9.93304 12.6692 9.58558 12.6674Z",fill:"white"}))),J.default.createElement(t.Text,{size:"p3"},u||l("pnModal.disclaimer"))),J.default.createElement(a.Heading,{tag:"h5"},l("healthToolPNModal.yourPre")),o.length>0&&J.default.createElement(Sn,{topicsGroup:[{label:"",topics:o}],selectedTopics:o,readonly:!0})))},Fn=({isMobile:t,isLoggedIn:l,pnSuggestCategory:n=[],acquisitionInfo:i,currentUrl:o,opened:c,close:p,finishLabelOnResult:h,onRegisterSuccess:f,disclaimerText:b})=>{const{t:v,locale:y}=r.useTranslations(),{action:{pushNotifications:x}}=e.useContext(a.TogetherComponentGlobalContext),E=d.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),w=d.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[C,k]=e.useState([]),[B,T]=e.useState([]),[N,S]=e.useState(0),[D,M]=e.useState({name:"",fitnessTopics:[]}),[A,P]=e.useState(!1),$=()=>S(2),z=e.useCallback((e=>u.__awaiter(void 0,void 0,void 0,(function*(){try{P(!0),yield a.callApiWithAuth(a.getPremiumApiPath(bn,{website_url:a.getWebsiteUrlApi(y)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:ce.default.get(s.GA_TOKEN_COOKIE),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},i.userInfo),{name:e||D.name,type_subscription:1}),domain:s.domainLocales[y||g.LOCALE.Vietnam],category:B,perferred:i.preferredTopics.map((({id:e})=>({id:e})))}}),P(!1),yield a.callApiWithAuth(a.getSsoApiPath(Bn),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),$()}catch(e){console.log({err:e}),P(!1),x({title:v("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[D,B]);return e.useEffect((()=>{[E,w].forEach((e=>{(new Image).src=e}))}),[]),J.default.createElement(Tn.Provider,{value:{currentUrl:o,isMobile:t,isLoggedIn:l,opened:c,close:p,pnSuggestCategory:n,nextStep:()=>S((e=>e<3?e+1:e)),prevStep:()=>S((e=>e>0?e-1:e)),lastStep:$,categoryLibs:C,setCategoryLibs:k,selectCategory:B,setSelectCategory:T,formValues:D,setFormValues:M,maxSelectCategory:5,submitLoading:A,onSubmit:z,onRegisterSuccess:f,finishLabelOnResult:h,disclaimerText:b}},J.default.createElement(kn,{isMobile:t,desktopBanner:d.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:d.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:c,onClose:p,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:o}},J.default.createElement(m.Stepper,{active:N,onStepClick:S,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},J.default.createElement(m.Stepper.Step,null,J.default.createElement(Mn,null)),J.default.createElement(m.Stepper.Step,null,J.default.createElement(On,null)),J.default.createElement(m.Stepper.Step,null,J.default.createElement(jn,null)))))},Hn=()=>{const{locale:t}=r.useTranslations(),{isMobile:l,isLoggedIn:n,currentUrl:i,acquisitionInfo:o,categoryIds:s,state:d,setState:c,settings:m,submitHandler:p,subcribeHealthStatus:g,showPNModal:h,setShowPNModal:f,setIsBack:b}=e.useContext(gn),[v,y]=e.useState([]),[x,E]=e.useState(h);e.useEffect((()=>{u.__awaiter(void 0,void 0,void 0,(function*(){var e,l;const n=yield a.callApiWithAuth(a.getPremiumApiPath(fn,{_locale:t}),"get"),i=[...(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.interested)||[],...(null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.trending)||[]];y(i.filter((e=>s.includes(Number(e.catId)))))}))}),[]);const w=e.useRef([]);return e.useEffect((()=>{const e=(null==g?void 0:g.value)||"",t=e.split("|").filter(Boolean);let a=e;w.current.push(g),t.length>1&&(null!==w.current[0]&&b(!0),Object.keys(p).map((e=>{const l=e.split("|");if(t.length===l.length){let n=0;t.map((e=>{l.includes(String(e))&&(n+=1)})),n===t.length&&(a=e)}})));const l=t.length>0?p[a]:m;c(l)}),[g]),e.useEffect((()=>{E(h)}),[h]),(null==d?void 0:d.action)!==cn.Hide?J.default.createElement(J.default.Fragment,null,J.default.createElement(Cn,Object.assign({},m.props)),J.default.createElement(Fn,{acquisitionInfo:o,isMobile:l,isLoggedIn:n,currentUrl:i,pnSuggestCategory:v,opened:x,close:()=>{var e;E(!1),f(!1),setTimeout((()=>{var e;(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&c({action:cn.Hide})}),400),(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&c({action:cn.Hide})},onRegisterSuccess:()=>E(!1)})):null},Rn={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var Gn="uJQBNNg",Un="TfG3dM5",Wn="aMtjFNf",Vn="cSz2RR-",qn="GyFm00F";function Qn({userInfo:t,onClickMyProfileButton:a,themeName:l="helloSites"}){const{t:n}=r.useTranslations(),i=e.useMemo((()=>{const e=(null==t?void 0:t.name)||(null==t?void 0:t.username);return e&&e.length?e[0].toUpperCase():"A"}),[null==t?void 0:t.username,null==t?void 0:t.name]);return J.default.createElement("div",{className:Gn,onClick:()=>{a&&a()}},J.default.createElement(be,{className:Un,type:"rounded",size:"xl",avatarUrl:null==t?void 0:t.avatar,firstLetter:i,backgroundColor:"marryBaby"===l?c.theme.mbColors.pink:c.theme.colors.secondaryBase}),J.default.createElement("div",{className:Wn},J.default.createElement("div",{className:Vn},(null==t?void 0:t.name)||(null==t?void 0:t.username)),J.default.createElement("div",{className:qn,style:{"--bg-hellosites":`url(${d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Zn="fVk18fq",Yn="v8TCvUb",Kn="mx7T4V3";const Xn={myHealth:c.theme.mbColors.toneYellow,myCommunity:c.theme.mbColors.toneBlue,mySaved:c.theme.mbColors.toneGreen},Jn={helloSites:{myBooking:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},ei=({type:t,themeName:a,className:l,onClick:n=(()=>{})})=>{const{t:i}=r.useTranslations(),o=e.useMemo((()=>{var e,l;return(null===(l=null===(e=Jn[a])||void 0===e?void 0:e[t])||void 0===l?void 0:l.call(e))||""}),[t,a]),s=e.useMemo((()=>"marryBaby"!==a?"transparent":Xn[t]),[t,a]);return J.default.createElement("div",{onClick:function(){n(t)},className:`${Zn} ${l}`},J.default.createElement("div",{className:Kn,style:{backgroundColor:s,backgroundImage:`url("${o}")`}}),J.default.createElement("h3",{className:Yn},i(`userProfile.nav.card.${t}`)))};var ti="gn6HmGG",ai="FCx8FEM",li="zMiRxaE",ni="lZ2Z9MQ",ii="rwm-agG",ri="qMOscoq";const oi=({themeName:t,locale:a,onClickItem:l})=>{const[n,i]=e.useState(""),r=e.useMemo((()=>"marryBaby"===t?[{key:"userProfile.nav.menu.password",icon:d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[t]);function o(e){e.subMenu?i((t=>t?"":e.key)):l&&l(e)}return J.default.createElement("div",{className:ti},r.map((e=>J.default.createElement(si,{key:e.key,item:e,openKey:n,onClickItem:o,locale:a}))))},si=({item:e,openKey:t,onClickItem:a,locale:l})=>{var n;const{t:i}=r.useTranslations();return(null===(n=e.disableLocale)||void 0===n?void 0:n.includes(l))?null:J.default.createElement("div",{className:`${ai} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},J.default.createElement("div",{className:li,onClick:()=>a(e)},e.icon&&J.default.createElement("div",{className:ni,style:{backgroundImage:`url("${e.icon}")`}}),i(e.key),e.subMenu&&J.default.createElement("div",{className:ii,style:{"--after-bg":`url(${d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&J.default.createElement("div",{className:ri},e.subMenu.map((e=>J.default.createElement(si,{key:e.key,item:e,openKey:t,onClickItem:a,locale:l})))))};var di="-AZt1au",ci="IvSIfCI",ui="eahCJov",mi="XIyViFs",pi="_4y-O0w3",gi="kO8iNgD",hi="a1d4E10",fi="Tdguxxf",bi="-mOxsaU",vi="yPeDBNZ";const yi={helloSites:{member:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>d.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},xi=({themeName:t,rank:a="member",numberOfPosts:l=0})=>{const{t:n}=r.useTranslations(),i=e.useMemo((()=>{var e,l;return(null===(l=null===(e=yi[t])||void 0===e?void 0:e[a])||void 0===l?void 0:l.call(e))||""}),[a,t]);return J.default.createElement("div",{className:pi,"data-user-rank":a},J.default.createElement("div",{className:gi},J.default.createElement("div",{className:hi},J.default.createElement("div",{className:fi,style:{backgroundImage:`url("${i}")`}}),J.default.createElement("h3",{className:bi},n(`userProfile.userRank.${a}`)),l>0&&J.default.createElement("p",{className:vi},l," ",n("userProfile.nav.header.count.posts")))))};exports.AdBlock=tn,exports.Alert=({style:e,onClose:a,text:l,type:n,contentIcon:i,closeIcon:r,className:o,description:s})=>J.default.createElement("div",{className:`${pe} ${o||""}`,style:e,"data-alert-type":n},J.default.createElement("div",{className:ge},J.default.createElement("div",{className:"icon-title"},i,J.default.createElement(t.Text,{weight:"bold",size:"label1"},l)),J.default.createElement(t.Text,{weight:"regular",size:"p3"},s)),J.default.createElement("div",{className:he,onClick:a},r)),exports.ArticleCard=({articleLink:e,authorLink:l,authorName:n,avatarImg:i,banner:r,categoryLink:o,categoryName:s,className:c,dataEventActionForBanner:u,dataEventActionForBookmark:m,dataEventActionForCategory:p,dataEventActionForTitle:g,dataEventCategoryForBanner:h,dataEventCategoryForBookmark:f,dataEventCategoryForCategory:b,dataEventCategoryForTitle:v,dataEventLabelForBanner:y,dataEventLabelForBookmark:x,dataEventLabelForCategory:E,dataEventLabelForTitle:w,direction:C="horizontal",hasAffiliate:k,isBookmark:B=!1,isBookmarkDisplayed:T=!0,isMobile:N=!0,onBookmark:S,onClickCategoryName:D,section:M="normal",size:A="md",specialty:P,style:$,styleBanner:z,styleLabel:L,styleTitle:I,text:_,title:O,type:j="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const G=e=>{e.stopPropagation(),null==S||S()},U="lg"===A&&"expert"===j?"h4":"lg"===A&&"home"===M?N?"h4":"h3":"lg"===A?"h4":"h5",W="lg"===A?"p3":"p4",V=N||"home"!==M||"lg"!==A||"author"!==j?"c2":"c1";return J.default.createElement("article",{className:`${Ae} ${c||""}`,"data-size":A,style:$,"data-direction":C,"data-is-expert":"expert"===j||void 0},J.default.createElement("div",{className:"banner",style:z},J.default.createElement("a",{className:Me,"data-event-category":h,"data-event-action":u,"data-event-label":y,href:e||"#",target:H},r),R&&J.default.createElement("img",{loading:"lazy",className:"premium",src:d.CommonGAssets.getAssetPath("premium-crown.svg")}),k&&J.default.createElement(Le,null)),J.default.createElement("div",{className:"content"},J.default.createElement("div",{className:"inner-content"},J.default.createElement(t.Text,{style:L,className:"label",size:V,weight:"caption"},J.default.createElement("a",{className:Me,"data-event-category":b,"data-event-action":p,"data-event-label":E,href:o||"#",onClick:D},s),T&&J.default.createElement("a",{className:"bookmark",onClick:G},B?J.default.createElement(Ie,{dataEventCategoryForBookmark:f,dataEventActionForBookmark:m,dataEventLabelForBookmark:x}):J.default.createElement(_e,{dataEventCategoryForBookmark:f,dataEventActionForBookmark:m,dataEventLabelForBookmark:x}))),J.default.createElement(a.Heading,{tag:U,style:I,className:"title",as:"lg"===A?"h2":"h3"},J.default.createElement("a",{className:Me,"data-event-category":v,"data-event-action":g,"data-event-label":w,href:e||"#",target:H},O)),_&&J.default.createElement("a",{href:e||"#",target:H},J.default.createElement(t.Text,{size:W,className:"text"},_))),J.default.createElement("div",{className:"footer"},"author"===j?J.default.createElement($e,{size:A,avatarImg:i,authorName:n,authorLink:l,uploadTime:F,handleClick:G,isBookmarked:B,dataEventCategoryForBookmark:f,dataEventActionForBookmark:m,dataEventLabelForBookmark:x}):J.default.createElement(ze,{size:A,isMobile:N,avatarImg:i,specialty:P,name:n,link:l,handleClick:G,isBookmarked:B,dataEventCategoryForBookmark:f,dataEventActionForBookmark:m,dataEventLabelForBookmark:x}))))},exports.ArticleCard$1=e=>{var{variant:t="vertical"}=e,a=u.__rest(e,["variant"]);return"horizontal"===t?J.default.createElement(Oe,Object.assign({},a)):J.default.createElement(Re,Object.assign({},a))},exports.Avatar=be,exports.BMICardEmbed=({isMobile:e,onSubmit:t,bmiContent:a,isSide:l,bmiGenerated:n,bmiUnit:i,bmiLink:o,locale:s})=>{var c,u,m;const{t:p}=r.useTranslations();return J.default.createElement(Ha,{"data-is-side":l},J.default.createElement(va,{isSide:l,icon:J.default.createElement("img",{alt:"health-tool-icon",src:(null==a?void 0:a.featured_image)||d.CommonGAssets.getAssetPath("health-tools/bmi.svg"),loading:"lazy"}),heading:p("bmi.heading"),medicalReview:{link:null===(c=null==a?void 0:a.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(u=null==a?void 0:a.reviewBy)||void 0===u?void 0:u.reviewer,date:null===(m=null==a?void 0:a.reviewBy)||void 0===m?void 0:m.date},isMobile:e}),J.default.createElement(M.Container,null,J.default.createElement(Fa,{as:"div","data-is-side":l},o&&J.default.createElement(Za,{onSubmit:t,bmiGenerated:n,locale:s,bmiUnit:i,isSide:l}))))},exports.BMRCardEmbed=({isSide:e,locale:t,bmrContent:a,isMobile:l,info:n,inputErrorMessage:i,onFormChange:o,onSubmit:s})=>{var c,u,m;const{t:p}=r.useTranslations();return J.default.createElement(Ha,{"data-is-side":e},J.default.createElement(va,{isSide:e,icon:J.default.createElement("img",{alt:"health-tool-icon",src:(null==a?void 0:a.featured_image)||d.CommonGAssets.getAssetPath("health-tools/bmr.svg"),loading:"lazy"}),heading:p("bmr.heading"),medicalReview:{link:null===(c=null==a?void 0:a.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(u=null==a?void 0:a.reviewBy)||void 0===u?void 0:u.reviewer,date:null===(m=null==a?void 0:a.reviewBy)||void 0===m?void 0:m.date},isMobile:l}),J.default.createElement(M.Container,null,J.default.createElement(Fa,{onSubmit:e=>e.preventDefault(),"data-is-side":e},J.default.createElement(Pa,null,J.default.createElement(bl,{info:n,locale:t,errorMessage:i,onChange:o,onClick:s,isSide:e})))))},exports.BabyGrowthCardEmbed=({isMobile:e,className:t,onSubmit:a,onError:l,schema:n,babyGrowthContent:i,siteType:r})=>{var o,s,u;return J.default.createElement(Ha,{"babyGrowthContent-is-mobile":e,"data-site":r},J.default.createElement(va,{siteType:r,bannerUrl:d.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:d.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===r&&c.theme.mbColors.mint,isEmbeded:!0,icon:J.default.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==i?void 0:i.featuredImage)||d.CommonGAssets.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null==i?void 0:i.title)||"",medicalReview:{link:null===(o=null==i?void 0:i.reviewBy)||void 0===o?void 0:o.link,reviewer:null===(s=null==i?void 0:i.reviewBy)||void 0===s?void 0:s.reviewer.trim(),date:null===(u=null==i?void 0:i.reviewBy)||void 0===u?void 0:u.date},isMobile:e}),J.default.createElement(al,{"data-theme":r},J.default.createElement(ll,{siteType:r,schema:n,className:t,onSubmit:a,onError:l})))},exports.BabyPoopEmbed=({babyPoopPage:e,onClickFindOut:l,currentUrl:i,isSide:o,direction:s="auto",sponsorLogo:u})=>{const{t:p}=r.useTranslations(),g="mb"===m.useMantineTheme().other.template,{classes:h}=nl({isMarryBaby:g,isSide:o,direction:s},{name:"BabyPoopEmbed"}),{reviewedBy:f,reviewedDate:b}=e||{};return J.default.createElement("div",{className:h.root},J.default.createElement("div",{className:h.inner},J.default.createElement(a.Heading,{tag:"h3",as:"h2",color:!g&&"#284A75"},e.title),J.default.createElement("div",{className:h.content,"data-is-side":o},J.default.createElement(t.Text,{size:"p3",className:"description"},e.description),!!f&&J.default.createElement("div",{className:h.reviewText},J.default.createElement("img",{src:d.CommonGAssets.getAssetPath("reviewerCheck.svg"),alt:"check",className:h.reviewTextIcon,loading:"lazy"}),J.default.createElement(t.Text,{size:"p4",color:c.theme.colors.gray600},p("categoryPage.info.reviewed")," ",J.default.createElement("a",{href:f.profile_url},f.display_name)," ",p("categoryPage.onDate",{date:b||""}))),J.default.createElement("div",{className:h.action},J.default.createElement(n.Button,{className:h.btn,size:g?"lg":"md",variant:g?"secondary":"primary",onClick:l,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:i,style:{visibility:Boolean(l)?"visible":"hidden"}},p("babyPoop.findOut"))))),J.default.createElement("div",{className:h.thumbnail},J.default.createElement("img",{src:g?d.CommonGAssets.getAssetPath("baby-poop.svg"):null==e?void 0:e.featuredImage,alt:e.title,loading:"lazy"})),u&&J.default.createElement("img",{loading:"lazy",src:u,alt:"sponsor",className:h.sponsorLogo}))},exports.Badge=({amount:e,type:t,size:l="medium",color:n="primary",icon:i,className:r})=>J.default.createElement(a.StyledBadge,{"data-notification-type":t,"data-notification-size":l,"data-notification-color":n,"data-has-icon":!!i||void 0,notificationType:t,notificationSize:l,notificationColor:n,hasIcon:!!i,className:r},J.default.createElement("div",null,e&&J.default.createElement("span",null,e)," ",i&&J.default.createElement("div",null,i))),exports.BorderHeading=({style:e,children:t,className:l,size:n="lg",type:i="bold",upperCase:r,as:o="h4",color:s})=>J.default.createElement(a.StyledBorderHeading,{style:Object.assign({color:s},e),className:l,"data-size":n,"data-type":i,"data-uppercase":r,as:o},t),exports.Breadcrumbs=({className:t,pages:a,size:l,LinkComponent:n="a",onChangePage:i,separator:r})=>{const o=e.useMemo((()=>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 J.default.createElement("div",{"data-size":l,className:`${jl} ${t||""}`},o.map(((t,a)=>{const s=a+1===o.length;return J.default.createElement(e.Fragment,{key:a},J.default.createElement(Rl,{LinkComponent:n,page:t,isLast:s,onChangePage:i}),!s&&(t.separator||r||J.default.createElement("div",{className:Fl,"data-size":l})))})))},exports.CategoryCard=e=>{var{category:a,imgBanner:l,label:n,className:i,style:r,href:o="",dataEventCategory:s,dataEventAction:d,dataEventLabel:c}=e,m=u.__rest(e,["category","imgBanner","label","className","style","href","dataEventCategory","dataEventAction","dataEventLabel"]);const p=(null==a?void 0:a.customizedUrl)||(null==a?void 0:a.permalink)||o||"";return J.default.createElement(Ge,Object.assign({"data-event-category":s,"data-event-action":d,"data-event-label":c,className:i,style:r,href:p},(null==a?void 0:a.customizedUrl)&&!v.isInternalLink(a.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===p&&e.preventDefault()}},m),J.default.createElement("div",{className:"banner"},l),J.default.createElement("div",{className:"content"},J.default.createElement(t.Text,{className:"category_name",size:"sm",weight:"bold"},(null==a?void 0:a.displayName)||n||"")))},exports.Checkbox=Ce,exports.CheckboxGroup=({name:e,values:t=[],onChanges:a,options:l=[],className:n,type:i="vertical",isDisabled:r,isRectangle:o})=>{const s=(e,l)=>{const n=t.slice();if(l)n.push(e);else{const t=n.findIndex((t=>t===e));n.splice(t,1)}a&&a(n)};return J.default.createElement(Ue,{className:n,"data-type":i,"data-is-rectangle":o||void 0},l.map(((a,l)=>J.default.createElement(Ce,{label:a.label,name:e,key:`${l}-${a.value}`,checked:t.includes(a.value),value:a.value,isDisabled:r||a.disabled,onChange:!r&&s,isRectangle:o}))))},exports.CookieAcceptConfirm=({className:e,policiesUrl:t,onAcceptClick:a,translations:l={acceptButton:"Accept",policiesButton:"Our Policies"},title:n="",description:i="",theme:r="helloSites",isOpen:o=!0,useDefaultPosition:s=!0,trackingAttributes:d})=>J.default.createElement(qt,{className:e,"data-theme":r,"data-is-open":o,"data-default-position":s},J.default.createElement(Qt,{"data-has-content":!!n},n),J.default.createElement(Zt,{dangerouslySetInnerHTML:{__html:i}}),J.default.createElement(Yt,null,J.default.createElement(Kt,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:a,"data-event-category":null==d?void 0:d.dataEventCategory,"data-event-action":null==d?void 0:d.dataEventAction,"data-event-label":null==d?void 0:d.dataEventLabel},l.acceptButton),J.default.createElement(Xt,{href:t},l.policiesButton))),exports.DatePicker=Qe,exports.DateRangePicker=function({inputSize:t="md",name:l="date-range-picker",value:n,minDate:i,maxDate:r,onChange:o,className:s,autoClose:c=!1}){n||(n={from:null,to:null});const[u,m]=e.useState(!1);function p(){m(!1)}const g=e.useRef(null);function h(e){o&&o(e)}function f(e){return k.format(e,"dd/MM/yyyy")}_.useOutsideClick(g,(()=>{p()}));const b=e.useMemo((()=>n.from&&n.to?k.isSameDay(n.from,n.to)?f(n.from):`${f(n.from)} - ${f(n.to)}`:""),[n.from,n.to]);return J.default.createElement(_l,{className:[s,u&&"focused"].filter(Boolean).join(" "),ref:g},J.default.createElement("label",{htmlFor:l},J.default.createElement(a.PureInput,{size:t,value:b,name:l,actionIcon:J.default.createElement("img",{src:d.CommonGAssets.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>m(!0)})),u?J.default.createElement(Ol,{onMouseDown:e=>{e.stopPropagation()}},J.default.createElement(Ll,{value:n,onChange:h,minDate:i,maxDate:r,close:p,autoClose:c})):null)},exports.DoctorInfo=pt,exports.DueDateCardEmbed=({isMobile:e,locale:t,onSubmitDueDate:a,dueDatePageInfo:l,expertUrl:n,isSide:i,siteType:o})=>{var s;const{t:u}=r.useTranslations();return J.default.createElement(Ha,{"data-is-side":i,"data-site":o},J.default.createElement(va,{isSide:i,siteType:o,bannerColor:"marryBaby"===o&&c.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:J.default.createElement("img",{alt:"health-tool-icon",src:(null==l?void 0:l.featured_image)||d.CommonGAssets.getAssetPath("health-tools/due-date-icon.svg"),loading:"lazy"}),heading:u("healthTools.dueDateCalculator"),medicalReview:{link:n,reviewer:null===(s=null==l?void 0:l.reviewed_by)||void 0===s?void 0:s.display_name,date:null==l?void 0:l.reviewed_date},isMobile:e}),J.default.createElement(Fa,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":i},J.default.createElement(_a,{siteType:o,locale:t,onSubmitDueDate:a,isSide:i})))},exports.FileDropdown=({className:t,value:l,options:n,onUploadSelected:i,id:r,placeholderIcon:o,placeholder:s,style:d})=>{const[c,u]=e.useState(!1),m=()=>u(!c),p=e.useRef(n.map((e=>"upload"===e.type&&J.default.createElement("input",{id:"uploader-dropdown-input-"+r+"-"+e.value,key:"uploader-dropdown-input-"+r+"-"+e.value,accept:e.fileAcceptedType,multiple:e.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),i(e.target.files)}}))));return J.default.createElement(a.StyledDropdown,{className:t,"data-dropdown-open":!!c,id:r,"data-has-icons":!0,style:d,onBlur:()=>u(!1),tabIndex:0},J.default.createElement(ve,null),J.default.createElement(a.StyledDropdownName,{onClick:m},o||J.default.createElement(ye,null)," ",J.default.createElement("span",null,l&&l.value?l.label:s)),c&&J.default.createElement(a.StyledDropdownList,{onClick:m,"data-has-icons":!0},n.map((e=>J.default.createElement(a.StyledDropdownOption,{key:`${r}-${e.value}`,"data-selected":l&&l.value===e.value||void 0,onClick:()=>{return"upload"===e.type?(a="#uploader-dropdown-input-"+r+"-"+e.value,void(null===(l=document.querySelector(a))||void 0===l||l.click())):void((t=e.url)&&window.open(t,"_blank"));var t,a,l}},J.default.createElement(a.StyledIcon,null,e.icon||"download"===e.type?J.default.createElement(xe,null):J.default.createElement(Ee,null)),e.label)))),J.default.createElement(J.default.Fragment,null,p.current))},exports.FixedBottomAdBlock=({className:t,adUnitPath:a,divId:l,isMobile:n,contentId:i,customTargetings:r,locale:o,isMarryBaby:s})=>{const[d,c]=e.useState(!0),[u,m]=e.useState(!1),[p,g]=e.useState(!0),h=e.useRef(null),f=e.useRef(G.v4()),b=e.useRef(null),v=e.useRef(),y=e.useRef();return e.useEffect((()=>{const e=()=>{y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{var t;document.getElementById("subot--container")?c(!0):(c(!1),(null===(t=h.current)||void 0===t?void 0:t.clientHeight)?g(!1):g(!0)),e()}),4e3)};return e(),()=>{v.current&&clearTimeout(v.current),y.current&&clearTimeout(y.current)}}),[]),d||u?null:J.default.createElement(ql,{key:n?"mobile":"desktop",ref:b,className:t,"data-visible":!p},a&&J.default.createElement(tn,{wrapperProps:{m:0},ref:h,adUnitPath:a,size:n?[[320,50],[320,100]]:[728,90],divId:(l||"div-gpt-ad-sticky")+(n?"-mobile":"")+i+String(f.current),pos:["Sticky"],contentId:i,hideIfHasSubot:n,customTargetings:r,adDefaultSize:n?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>m(!0),refreshInterval:60,locale:o,isMarryBaby:s}))},exports.FloatButtonGroup=({items:t,className:a,style:l,backgroundPanelStyle:n,isOpen:i,onOpen:r,onClose:o,disableBackdropClick:s,siteType:d="hb",animationType:c="zoom",zIndex:u=300})=>{const[m,p]=e.useState(!!i);e.useEffect((()=>{p(!!i)}),[i]);const g=()=>{p(!1),o&&o()};return J.default.createElement(jt,{style:l,className:a,"data-floatmenu-open":m,"data-site-type":d,"data-animation-type":c},J.default.createElement(Ft,{className:"float-button-group__panel",style:Object.assign({zIndex:u},n),onClick:s?void 0:g}),J.default.createElement(Ht,{className:"float-button-group___content",style:{zIndex:u}},J.default.createElement(Rt,null,t.map(((e,a)=>J.default.createElement(Ut,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===c&&{bottom:64*(t.length-1-a),transitionDelay:Ot/t.length*(m?t.length-1-a:a)+"ms"}),"slide"===c&&{bottom:64*(t.length-1-a),transitionDelay:Ot/t.length*(m?a:t.length-1-a)+"ms"}),key:a,onClick:()=>{e.onClick(),e.keepMenuOnClick||p(!1)}},J.default.createElement(Wt,{style:Object.assign({},"zoom"===c&&{transitionDelay:Ot/t.length*(m?t.length-1-a:a)+"ms"})},e.label),J.default.createElement(Vt,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===c||"slide"===c)&&{transitionDelay:Ot/t.length*(m?t.length-1-a:a)+"ms"})},e.icon))))),J.default.createElement(Gt,{onClick:m?g:()=>{p(!0),r&&r()}})))},exports.GenderOptionControl=Ne,exports.Grid=({className:e,columns:t,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:i,gap:r,children:o,justifyChildren:s,style:d,alignItems:c})=>J.default.createElement(a.StyledGrid,{className:e,style:d,theme:{columns:t,columnsDesktop:l,gap:r,justifyChildren:s,gridTemplateColumns:n,gridTemplateColumnsDesktop:i,alignItems:c}},o),exports.IconText=({size:e,iconPosition:t,className:a,children:l,icon:n})=>J.default.createElement(Ze,{className:a,"data-size":e,"data-icon-position":t},"left"===t&&n,l,"right"===t&&n),exports.Loading=({className:e,theme:a,hideText:l})=>{const{t:n}=r.useTranslations();return J.default.createElement("div",{className:`${Se} ${e}`},J.default.createElement(t.Icon.Spinner,{isMarryBaby:"marryBaby"===a}),!l&&n("loading"))},exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=mn,exports.MAPPING_CATEGORY_PREMIUM_TYPE=un,exports.MobileBottomNavigation=ia,exports.MobileBottomNavigationIcon=na,exports.NavHeader=Qn,exports.OvulationCardEmbed=({onSubmitOvulation:e,locale:t,ovulationPageInfo:a,expertUrl:l,isSide:n=!1,siteType:i,isMobile:o})=>{var s;const{t:u}=r.useTranslations();return J.default.createElement(Ha,{"data-is-side":n,"data-site":i},J.default.createElement(va,{isSide:n,bannerUrl:d.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:i,bannerColor:"marryBaby"===i&&c.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:J.default.createElement("img",{alt:"health-tool-icon",src:(null==a?void 0:a.featured_image)||d.CommonGAssets.getAssetPath("health-tools/ovulation-icon.svg"),loading:"lazy"}),heading:u("healthTools.ovulationCalculator"),medicalReview:{link:l,reviewer:null===(s=null==a?void 0:a.reviewed_by)||void 0===s?void 0:s.display_name,date:null==a?void 0:a.reviewed_date},isMobile:o}),J.default.createElement(Fa,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":n},J.default.createElement(xl,{siteType:i,locale:t,onSubmitOvulation:e,isSide:n})))},exports.PWGCardEmbed=({locale:l,onClick:i,inputErrorMessage:o,pwgContent:u,onFormChange:m,info:p,isMobile:g,isSide:h=!1,siteType:f})=>{var b;const{t:v}=r.useTranslations(),[y,x]=e.useState("notwins"),[E,w]=e.useState({label:"1",value:1}),C=e.useMemo((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:k}=P.useHealthToolsCache(l),B=e.useMemo((()=>k(a.HEALTH_TOOL_TYPE.PWG)),[k]);return J.default.createElement(Ha,{"data-is-side":h,"data-site":f},J.default.createElement(va,{siteType:f,bannerColor:"marryBaby"===f&&c.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:J.default.createElement("img",{alt:"health-tool-icon",src:(null==u?void 0:u.featuredImage)||d.CommonGAssets.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:v("pregnancyWeightGain.heading"),medicalReview:{link:L.formatUserProfileUrl(null==u?void 0:u.reviewedBy),reviewer:null===(b=null==u?void 0:u.reviewedBy)||void 0===b?void 0:b.display_name,date:null==u?void 0:u.reviewedDate},isMobile:g,isSide:h}),J.default.createElement(M.Container,null,J.default.createElement(Fa,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":h},"marryBaby"!==f&&J.default.createElement(Aa,{className:"hide-asking-mobile","data-is-side":h},J.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"block",color:c.theme.colors.gray600},className:"label"},v("pregnancyWeightGain.havingTwins")),J.default.createElement(Ra,{options:[{value:"twins",label:v("switchBtn.yes")},{value:"notwins",label:v("switchBtn.no")}],value:y,onChange:e=>x(e),className:"gender-selector",id:"twins-check",direction:"horizontal",size:"small"})),J.default.createElement(za,null,J.default.createElement(La,{className:"input-section input-form-pwg","data-is-side":h},"marryBaby"===f?J.default.createElement(ya,{groupedWithLabel:v("pregnancyWeightGain.weekInput"),options:C,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:E,onChange:e=>w({label:e.label,value:e.value})}):J.default.createElement(J.default.Fragment,null,J.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"inline-block",marginBottom:"9px",color:c.theme.colors.gray600}},v("pregnancyWeightGain.weekInput")),J.default.createElement(D.Dropdown,{options:C,placeholder:String(E.label),id:"weight-gain-dropdown",size:"md",value:E,onChange:e=>w({label:e.label,value:e.value})}))),J.default.createElement(El,{siteType:f,info:p,errorMessage:o,onChange:m})),"marryBaby"!==f&&J.default.createElement(Aa,{className:"hide-asking-desk","data-is-side":h},J.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"block",color:c.theme.colors.gray600},className:"label"},v("pregnancyWeightGain.havingTwins")),J.default.createElement(Ra,{options:[{value:"twins",label:v("switchBtn.yes")},{value:"notwins",label:v("switchBtn.no")}],value:y,onChange:e=>x(e),className:"gender-selector",id:"twins-check-mobile",direction:"horizontal",size:"small"})),"marryBaby"===f&&J.default.createElement(Ce,{name:"twins",label:v("pregnancyWeightGain.havingTwins"),checked:"twins"===y,siteType:"marryBaby",onChange:()=>{x("twins"===y?"notwins":"twins")},value:"twins"}),J.default.createElement($a,{"data-is-side":h,"data-site":f},J.default.createElement(n.Button,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${s.domainLocales["marryBaby"===f?"vi-VN_MB":l]}/${B}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===f?"secondary":"primary",onClick:()=>i(y,E.value),role:"button"},v("dueDatePage.lastPeriod.calculate"))))))},exports.Pagination=({className:t,pagesAmount:n,currentPage:i,onChange:r,onClick:o,style:s,href:d,queryPageName:c="page"})=>{const u=[...Array(n)].map(((e,t)=>t+1)),[m,p]=e.useState(i),g=e.useMemo((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),h=n-1,f=e=>{e<=n&&e>0&&(p(e),r(e))},b=e=>{o&&o(e)};return e.useEffect((()=>{p(i)}),[i]),J.default.createElement(a.StyledPagination,{className:t,style:s},J.default.createElement(a.StyledPageBlock,{className:"prev-page",onClick:()=>f(m-1),"data-last-page":1===m||void 0},g?J.default.createElement("a",{href:l.formatUrlWithPageParam(g,m,c),onClick:b},J.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},J.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):J.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},J.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),u.length>8?J.default.createElement(we,{pagesAmount:n,activePage:m,handlePageChange:f,handleClick:b,href:g,queryPageName:c}):u.map((e=>J.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===m||void 0,onClick:()=>f(e)},g?J.default.createElement("a",{href:l.formatUrlWithPageParam(g,e,c),onClick:b},e):e))),J.default.createElement(a.StyledPageBlock,{className:"next-page",onClick:()=>f(m+1),"data-last-page":m===h+1||void 0},g?J.default.createElement("a",{href:l.formatUrlWithPageParam(g,m,c),onClick:b},J.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},J.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):J.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},J.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},exports.ProgressBar=({type:t,numberOfStep:a,activeStep:l,labelPrefix:n,detailSteps:i,className:r,onChange:o})=>{const[s,d]=e.useState(0),c=e=>{var{trackClassName:t}=e,a=u.__rest(e,["trackClassName"]);return J.default.createElement(Xe,Object.assign({},a,{className:t}),J.default.createElement(Je,null))},m=J.default.createElement(Ye,{className:r+" progress-bar"},J.default.createElement(c,null),J.default.createElement((({trackLength:e,activeStep:t,labelPrefix:l="Step",onChange:n})=>J.default.createElement(J.default.Fragment,null,Array.from({length:a},((e,t)=>t)).map(((i,r)=>J.default.createElement(Ke,{"data-is-active":r===t,"data-label":r,style:{left:r*e/(a-1)},onClick:()=>{n&&n(r)},key:r},r+1,J.default.createElement(et,{"data-step-passed":r<=t},l+" "+(r+1))))))),{trackLength:s,activeStep:l,labelPrefix:n,onChange:o})),p=J.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 5.5 9.5"},J.default.createElement("title",null,"chevron-right"),J.default.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),g=J.default.createElement(tt,null,i&&Array.from({length:i.length},((e,t)=>t)).map(((e,t)=>{var a;return J.default.createElement(at,{key:t,"data-selected":t===l,onClick:()=>{o&&o(t)}},null===(a=i[t])||void 0===a?void 0:a.text," ",t<i.length-1&&p)}))),h=J.default.createElement(Ye,{className:r+" progress-bar"},J.default.createElement((({detailSteps:e,activeStep:t,onChange:a})=>J.default.createElement(J.default.Fragment,null,Array.from({length:e.length},((e,t)=>t)).map(((l,n)=>J.default.createElement(lt,{key:n,style:{left:100/e.length*n+"%",width:100/e.length+"%"},onClick:()=>{a&&a(n)}},e[n].icon?J.default.createElement(it,{onClick:()=>{a&&a(n)}},e[n].icon):J.default.createElement(nt,{"data-is-active":n===t,"data-label":l,onClick:()=>{a&&a(n)},key:n},n+1),J.default.createElement(rt,{"data-step-passed":n<t+1},e[n].text,J.default.createElement(ot,null,e[n].description)),n<e.length-1&&J.default.createElement(c,{"data-step-passed":n<t,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:i,onChange:o})),f=e.useCallback(le.default((()=>{const e=document.querySelector(".progress-bar");e&&d(e.offsetWidth)}),1e3),[]);return e.useEffect((()=>{const e=document.querySelector(".progress-bar");return d(null==e?void 0:e.offsetWidth),window.addEventListener("resize",f,{passive:!0}),()=>{window.removeEventListener("resize",f)}}),[]),"step-track"===t&&m||"breadcrumb"===t&&g||"detail-track"===t&&h},exports.Radio=({size:e="small",label:t,name:a,checked:l,value:i,className:r,isDisabled:o=!1,onChange:s,dataEventCategory:d,dataEventAction:c,dataEventLabel:u})=>{const m=!!c&&!!d&&!!u?{"data-event-category":d,"data-event-action":c,"data-event-label":u}:{};return J.default.createElement(n.Radio,Object.assign({size:"small"===e?"md":"lg",label:t,name:a,checked:l,value:i,className:r,disabled:o,onChange:e=>null==s?void 0:s(e.target.value)},m))},exports.RadioGroup=st,exports.RateStars=({gap:t=2,size:l=24,star:n,totalStars:i=5,onSelect:r,hideEmptyStars:o,style:s,className:d})=>{const c=Math.floor(n),u=n-c>=.5?1:0,[m,p]=e.useState(null),g=m||c,h=m?0:u;return J.default.createElement(a.StyledRateStars,{"data-selectable":!!r,style:Object.assign({"--gap":t,"--star-size":l},s),className:d},Array.from({length:o?c+u:i}).map(((e,t)=>{const a=()=>!!r&&p(t+1),l=()=>!!r&&p(null);return t+1<=g?J.default.createElement(Be,{key:t,onClick:()=>null==r?void 0:r(t+1),onMouseOver:a,onMouseLeave:l}):t+1===g+h?J.default.createElement(Te,{key:t,onClick:()=>null==r?void 0:r(t+1),onMouseOver:a,onMouseLeave:l}):J.default.createElement(ke,{key:t,onClick:()=>null==r?void 0:r(t+1),onMouseOver:a,onMouseLeave:l})})))},exports.ScrollList=({row:t=2,column:a=3,isDotsShown:l=!0,isImageGalleryShown:n=!1,mode:i="infinity",type:r="separated",distanceOverlappedLeft:o={amount:0,unit:"pixel"},children:s,className:d,isProgressShown:c=!1,statusChildren:u,isArrowShown:m=!1,classNameLeftArrow:p,classNameRightArrow:g,dataEventCategory:h,dataEventAction:f,dataEventLabel:b,onChangePage:v,page:y,customPageWidth:x,scheme:E="hellosites",arrowType:w="Discover"})=>{const C="number"==typeof y,[k,B]=e.useState(C?y:0),T=[];J.default.Children.map(s,((e,l)=>{l%(t*a)==0&&T.push([]),T[T.length-1].push(J.default.cloneElement(e))}));const N=e.useRef(),S=e.useRef(0),D=e=>{if(!N.current)return;const{clientWidth:t}=N.current,a=x||t,l="intertwined"===r?"percentage"===o.unit?e*a+o.amount/100*a*e:e*a+o.amount*a*e:e*a;N.current.scrollTo({top:0,left:l,behavior:"smooth"}),S.current=e,B(e),v&&v(e)};e.useEffect((()=>{"number"==typeof y&&(e=>{if(!N.current)return;const{clientWidth:t}=N.current,a=x||t,l="intertwined"===r?"percentage"===o.unit?e*a+o.amount/100*a*e:e*a+o.amount*a*e:e*a;N.current.scrollTo({top:0,left:l,behavior:"smooth"}),S.current=e,B(e)})(y)}),[y]);const M=e=>{if(!N.current)return;const{clientWidth:t}=N.current,a=x||t;let l;l=0===k?0:k*a,"forward"===e&&(l===a*(T.length-1)?(B(T.length-1),l=a*(T.length-1),v&&v(T.length-1)):(B(k+1),l+=a,v&&v(k+1)),N.current.scrollTo({top:0,left:l,behavior:"smooth"})),"back"===e&&(0===l?(B(0),v&&v(0),l=0):(B(k-1),v&&v(k-1),l-=a),N.current.scrollTo({top:0,left:l,behavior:"smooth"}))},A=le.default((()=>{if("infinity"===i){if(!N.current)return;const{clientWidth:e,scrollLeft:t}=N.current,a=x||e,l=Math.floor(t/a);B(l),v&&v(l)}}),400);return e.useEffect((()=>{if("snapped"===i){let e,t,a,l,n,i,s=!1;const d=N.current,c=(i,r)=>{s=!0,a=!1,l=!1,e=i-d.offsetLeft,t=r-d.offsetTop,n=d.scrollLeft},u=e=>{c(e.pageX,e.pageY)},m=e=>{c(e.touches[0].pageX,e.touches[0].pageY)},p=()=>{if(s=!1,a=!1,l=!1,!N.current)return;const{clientWidth:e}=N.current,t=x||e,n="ltr"===i?0!==S.current?S.current-1:S.current:"rtl"===i&&S.current<T.length-1?S.current+1:S.current,d="intertwined"===r?"percentage"===o.unit?n*t+o.amount/100*t*n:n*t+o.amount*t*n:n*t;N.current.scrollTo({top:0,left:d,behavior:"smooth"}),i="none",S.current!==n&&(S.current=n,B(n),v&&v(n))},g=(r,o)=>{if(!s)return;const c=r-d.offsetLeft,u=o-d.offsetTop,m=c-e,p=u-t;a||l||!(p>20||p<-20)||(a=!0),!a&&(m>20||m<-20)&&(l=!0,d.scrollLeft=n-m,m>0&&(i="ltr"),m<0&&(i="rtl"),0===m&&(i="none"))},h=e=>{l&&e.preventDefault(),g(e.pageX,e.pageY)},f=e=>{l&&e.preventDefault(),g(e.touches[0].pageX,e.touches[0].pageY)};return null==d||d.addEventListener("mousedown",u,{passive:!0}),null==d||d.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("mouseup",p,{passive:!0}),window.addEventListener("touchend",p,{passive:!0}),null==d||d.addEventListener("mousemove",h,{passive:!0}),null==d||d.addEventListener("touchmove",f,{passive:!0}),()=>{null==d||d.removeEventListener("mousedown",u),null==d||d.removeEventListener("touchstart",m),window.removeEventListener("mouseup",p),window.removeEventListener("touchend",p),null==d||d.removeEventListener("mousemove",h),null==d||d.removeEventListener("touchmove",f)}}}),[]),J.default.createElement(bt,{className:d,"data-row":t,onScroll:A},m&&k>0&&J.default.createElement("div",{className:`${p} arrow-left`,onClick:()=>M("back"),"data-event-category":h,"data-event-action":f,"data-event-label":b},"Care"===w?J.default.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},J.default.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},J.default.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"}),J.default.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"}),J.default.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"})),J.default.createElement("defs",null,J.default.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},J.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),J.default.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"}),J.default.createElement("feOffset",{dx:"-2",dy:"2"}),J.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),J.default.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"}),J.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),J.default.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"}),J.default.createElement("feOffset",{dx:"-1",dy:"1"}),J.default.createElement("feGaussianBlur",{stdDeviation:"1"}),J.default.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"}),J.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),J.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):J.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},J.default.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"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),J.default.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),J.default.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),J.default.createElement("div",{ref:N,className:"container",style:{overflowX:"snapped"===i||m?"hidden":"scroll"}},T.map(((e,l)=>{let n=0;for(let e=0;e<l;e++)n+=T[e].length;return J.default.createElement("div",{key:l,className:"section",style:{marginLeft:"intertwined"===r&&0!==l?o.amount+""+("percentage"===o.unit?"%":"px"):"0px"}},1===t&&c&&J.default.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${a}, 1fr)`}},e.map(((t,a)=>{const i=n+a,r=u.find((e=>e.index===i));return J.default.createElement("div",{className:"items-progress",key:a},0===a&&0===l?J.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):J.default.createElement("div",{className:"line"}),J.default.createElement("div",{className:"icon-status"},J.default.createElement(vt,{status:null==r?void 0:r.status})),l===T.length-1&&a===e.length-1?J.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):J.default.createElement("div",{className:"line"}))}))),J.default.createElement("div",{className:"grid-layout","data-index":l,style:{gridTemplateColumns:`repeat(${a}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`}},e.map(((e,t)=>J.default.createElement(J.default.Fragment,{key:t},J.default.createElement("div",{className:"item-grid",key:t},e))))))}))),m&&k<T.length-1&&J.default.createElement("div",{className:`${g} arrow-right`,onClick:()=>M("forward"),"data-event-category":h,"data-event-action":f,"data-event-label":b}," ","Care"===w?J.default.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},J.default.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},J.default.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"}),J.default.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"}),J.default.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"})),J.default.createElement("defs",null,J.default.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},J.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),J.default.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"}),J.default.createElement("feOffset",{dx:"-2",dy:"2"}),J.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),J.default.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"}),J.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),J.default.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"}),J.default.createElement("feOffset",{dx:"-1",dy:"1"}),J.default.createElement("feGaussianBlur",{stdDeviation:"1"}),J.default.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"}),J.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),J.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):J.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},J.default.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"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),J.default.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),J.default.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l&&J.default.createElement("ul",{className:"bullet-nav"},T.map(((e,t)=>J.default.createElement("li",{key:t,className:"bullet-nav__item "},J.default.createElement("p",{onClick:()=>D(t),className:`bullet-nav__link scroll ${k==t?"active":null}`,"data-scheme":E}))))),n&&J.default.createElement("div",{className:"image-gallery-wrapper","data-test":T.length},T.slice(0,3).map(((e,t)=>J.default.createElement("div",{className:`image-block ${k==t?"active":null}`,key:t,onClick:()=>D(t),"data-scheme":E},e)))))},exports.SeoHead=({SEOData:t={},locale:a="vi-VN",routerPathname:l,routerQuery:n,nextHead:i,siteType:r,seoCustom:d,userId:c,forcedCanonicalUrl:u})=>{var m,p,g,h,f,b,v,y,x,E,w,C;const{totalPages:k,currentPage:B,SEOTitle:T="",SEODescription:N="",SEOImage:S,seoType:D,SEOImageWidth:M,SEOImageHeight:A,customMetaData:P=[],isIndexable:$=!0,hasNoCanonical:z=!1}=t,L=$&&o.isProduction?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:I}=process.env;let _=t.canonicalUrl||l;Object.keys(n).forEach((e=>{const t=n[e];t&&Array.isArray(t)&&(_=_.replace(`[...${e}]`,t.join("/")))}));const O=a||"en-PH",j="helloSites"===r?s.domainLocales[O]:"www.marrybaby.vn",F=_.endsWith("/")?"":"/",H=e.useMemo((()=>{var e,l,n,i,r,o,s;let d="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const c=null===(e=t.apiMetaData)||void 0===e?void 0:e.match(/<title.*?>(.*)<\/title>/),u=` - Page ${B} of ${k}`,m=B&&1!==B&&c?t.apiMetaData.replace(c[0],c[0].includes("-")?c[0].replace("-",u+" - "):`<title>${c[1].concat(u)}</title>`).replace(`<link rel="canonical" href="https://${j}${_}${F}" />`,`<link rel="canonical" href="https://${j}${_}${F}?page=${B}" />`):t.apiMetaData;if(d=ne.default(m,{trim:!0}),!d.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 e=`https://${j}/images/${a}.png`;d=[...d,J.default.createElement("meta",{key:"og:image",property:"og:image",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||S||e||""}),J.default.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(n=t.openGraph)||void 0===n?void 0:n.image)||S||e}),J.default.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(i=t.openGraph)||void 0===i?void 0:i.imageWidth)&&String(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)||M&&String(M)||"1200"}),J.default.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(o=t.openGraph)||void 0===o?void 0:o.imageHeight)&&String(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)||A&&String(A)||"630"})]}}return d}),[t.apiMetaData,t.openGraph,S,A,M,B,_,k,a,j]),R=`https://${j}/images/${a}.png`;return J.default.createElement(i,null,J.default.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===r?J.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}):"km-KH"===a?J.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"th-TH"===a?J.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,100..900&display=swap",rel:"stylesheet"}):J.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}),J.default.createElement("link",{rel:"preconnect",href:I}),J.default.createElement("meta",{charSet:"UTF-8"}),J.default.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),J.default.createElement("meta",{name:"google",content:"notranslate"}),J.default.createElement("meta",{name:"robots",content:L}),J.default.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),P.map(((e,t)=>J.default.createElement("meta",Object.assign({key:t},e)))),J.default.createElement("meta",{name:"theme-color",content:"helloSites"===r?"#2c87f3":"#e85388"}),J.default.createElement("meta",{name:"page_type",content:"Home"}),J.default.createElement("meta",{name:"page_platform",content:"WEB"}),J.default.createElement("meta",{name:"page_language",content:O}),J.default.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!H&&J.default.createElement(J.default.Fragment,null,"helloSites"===r?J.default.createElement("title",null,d?T:T+" - "+(null===(m=s.LOCALE_SPECS[a])||void 0===m?void 0:m.SITE_NAME)):J.default.createElement("title",null,T),!z&&J.default.createElement("link",{rel:"canonical",href:`https://${j}${_}`}),J.default.createElement("meta",{name:"description",content:N||(null===(p=t.openGraph)||void 0===p?void 0:p.description)}),t.schemaData&&J.default.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),J.default.createElement("meta",{property:"og:locale",content:a}),J.default.createElement("meta",{property:"og:type",content:D||"website"}),J.default.createElement("meta",{property:"og:title",content:(null===(g=t.openGraph)||void 0===g?void 0:g.title)||T}),J.default.createElement("meta",{property:"og:description",content:(null===(h=t.openGraph)||void 0===h?void 0:h.description)||N}),J.default.createElement("meta",{property:"og:url",content:`https://${j}${_}`}),J.default.createElement("meta",{property:"og:site_name",content:`https://${j}`}),J.default.createElement("meta",{property:"og:image",content:(null===(f=t.openGraph)||void 0===f?void 0:f.image)||S||R||""}),J.default.createElement("meta",{property:"og:image:secure_url",content:(null===(b=t.openGraph)||void 0===b?void 0:b.image)||S||R}),J.default.createElement("meta",{property:"og:image:width",content:(null===(v=t.openGraph)||void 0===v?void 0:v.imageWidth)&&String(null===(y=t.openGraph)||void 0===y?void 0:y.imageWidth)||M&&String(M)||"1200"}),J.default.createElement("meta",{property:"og:image:height",content:(null===(x=t.openGraph)||void 0===x?void 0:x.imageHeight)&&String(null===(E=t.openGraph)||void 0===E?void 0:E.imageHeight)||A&&String(A)||"630"}),J.default.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),J.default.createElement("meta",{name:"twitter:title",content:(null===(w=t.twitter)||void 0===w?void 0:w.title)||T}),J.default.createElement("meta",{name:"twitter:description",content:N}),J.default.createElement("meta",{name:"twitter:image",content:(null===(C=t.twitter)||void 0===C?void 0:C.image)||S})),("helloSites"===r?s.FAVICONS[O]||[]:s.FAVICONS.marryBaby).map(((e,t)=>"link"===e.type?J.default.createElement("link",{key:`favicon-${t}`,rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?J.default.createElement("meta",{key:t,name:e.name,content:e.content}):null)),Array.isArray(H)&&u?H.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):H,u&&J.default.createElement("link",{rel:"canonical",href:u}),!t.hasNoAmp&&"vi-VN"!==a&&J.default.createElement("link",{rel:"amphtml",href:`https://${j}${_}${F}?amp=1`}),c&&"undefined"!=typeof window?J.default.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${c}'});`}}):null)},exports.ShareContainer=({url:a,onCopied:l,locale:n,siteType:i})=>{const{t:o}=r.useTranslations(),s=R.getSocialList(a||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),d=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return J.default.createElement(Gl,null,J.default.createElement(t.Text,{size:"p3",color:c.theme.colors.gray800},o("shareContainer.title")),J.default.createElement("div",{className:"icon-group"},s.map(((e,t)=>J.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${e.name}`,"data-event-label":d},e.icon))),J.default.createElement(E.Button,{theme:i,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:J.default.createElement(Ul,null),onClick:()=>u.__awaiter(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(a),null==l||l()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":d})))},exports.ShareDrawer=a=>{var{open:l,title:n,onClose:i,onCopied:o,onShared:s,url:d,locale:m}=a,p=u.__rest(a,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:g}=r.useTranslations(),h=e.useCallback((()=>u.__awaiter(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(d),null==o||o()}))),[d,o]),f=R.getSocialList(d||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(m)));return e.useEffect((()=>{l&&navigator.share&&navigator.share({title:null!=n?n:"Read This Post",url:d}).then((()=>{null==s||s()})).catch((()=>{null==i||i()}))}),[d,n,s,l]),"undefined"!=typeof navigator&&navigator.share?null:J.default.createElement(Wl,Object.assign({title:g("share.title"),onClose:i,open:l,placement:"bottom"},p),J.default.createElement("div",{className:"share-container"},J.default.createElement("div",{className:"icon-container"},J.default.createElement(t.Text,{weight:"semiBold",size:"s3",color:c.theme.colors.gray600},g("share.title")),J.default.createElement("div",{className:"icon-group"},f.map(((e,t)=>J.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer"},e.icon))))),J.default.createElement("div",{className:"link-container"},J.default.createElement(t.Text,{weight:"semiBold",size:"s3",color:c.theme.colors.gray600},g("share.copyLink")),J.default.createElement("div",{className:"input-group"},J.default.createElement(w.Input,{name:"link",size:"md",value:d,isDisabled:!0}),J.default.createElement(E.Button,{size:"md",type:"button",color:"tertiary",icon:J.default.createElement(Vl,null),onClick:h})))))},exports.StatisticCard=({type:e,description:t,value:a,withIcon:l,isInACard:n,cardColor:i,className:r})=>J.default.createElement(yt,{className:r,"data-size":e,"data-is-in-card":"big"===e&&n,"data-card-color":i},J.default.createElement(Et,null,"small"===e&&J.default.createElement(xt,{"data-color":i}),t),J.default.createElement(wt,{"data-size":e},"small"!==e&&l,a)),exports.SurveyOrPremiumBanner=({type:t,articleId:l=0,categoryIds:n=[],isMarketing:i,isSurveyType:o,hasPremiumBanner:c,currentUrl:u,isMobile:p,subcribeHealthStatus:g,setShouldAcquisitionModalOpen:h,onValueChange:f,source:b="discover",Wrapper:v})=>{const{t:y}=r.useTranslations(),{data:{userInfo:x}}=e.useContext(a.TogetherComponentGlobalContext),E=Boolean(null==x?void 0:x.id),[w,C]=e.useState(null),[k,B]=e.useState(),[T,N]=e.useState(""),[S,D]=e.useState(!1),[M,A]=e.useState(!1),P=e.useMemo((()=>un[t]),[]),$=((e,t)=>({[on.Pregnant]:{action:cn.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:dn.Button,thumbnail:{desktop:d.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:d.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:m.rem(80),[e.fn.largerThan("sm")]:{minWidth:m.rem(120)}})},items:[{label:e("switchBtn.yes"),value:"yes",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - Yes Click",dataEventLabel:t}},{label:e("switchBtn.no"),value:"no",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - No Click",dataEventLabel:t}}]},submitHandler:{yes:{action:cn.ShowTool,props:{value:nn.DUE_DATE}},no:{action:cn.ShowPremiumModal}}},[on.Parenting]:{action:cn.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:dn.Checkbox,items:[{label:e("pnBanner.toddlers"),value:"todders"},{label:e("pnBanner.teenager"),value:"teenager"}],submitBtnTracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the age range of your kids Click",dataEventLabel:t}},submitHandler:{todders:{action:cn.ShowTool,props:{value:nn.BABY_VACCINE}},teenager:{action:cn.ShowOptionBanner,props:{styleType:dn.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},buttonProps:{variant:"white"},items:[{label:e("childCard.boy"),value:"teenager.boy",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Boy Click",dataEventLabel:t}},{label:e("childCard.girl"),value:"teenager.girl",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Girl Click",dataEventLabel:t}}]}},"teenager.boy":{action:cn.ShowPremiumModal},"teenager.girl":{action:cn.ShowTool,activeTool:s.RISK_SCREENER_NAME.HPV,props:{value:s.RISK_SCREENER_NAME.HPV}},"todders|teenager":{action:cn.ShowOptionBanner,props:{styleType:dn.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:nn.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}},{label:e("pnBanner.pn.btnLabel"),value:"todders|teenager.showPN",isPNBtn:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Premium Newsletter Click",dataEventLabel:t}}]}},"todders|teenager.showPN":{action:cn.ShowOptionBanner,props:{styleType:dn.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:d.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:nn.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(y,u)[P],z=null==$?void 0:$.submitHandler,L=v||m.Box,I=()=>c&&1!==(null==x?void 0:x.subscription)?J.default.createElement(hn,null):null;return e.useEffect((()=>{E&&C({userInfo:x,preferredTopics:an,healthTopics:[]})}),[E]),J.default.createElement(gn.Provider,{value:{settings:$,submitHandler:z,type:t,surveyType:P,value:T,setValue:N,isMobile:p,isLoggedIn:E,isMarketing:i,hasPremiumBanner:c,currentUrl:u,acquisitionInfo:w,categoryIds:n,subcribeHealthStatus:g,articleId:l,onValueChange:f,state:k,setState:B,handleClickOption:e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys(z).map((e=>{const l=e.split("|");if(a.length===l.length){let n=0;a.map((e=>{l.includes(String(e))&&(n+=1)})),n===a.length&&(t=e)}})),t)})(e);if(t){const a=z[t];a.action===cn.ShowPremiumModal?c?(D(!0),B(Object.assign(Object.assign({},k),{actionParams:{hideBannerWhenClose:a.action===cn.ShowPremiumModal}}))):(B({action:cn.Hide}),null==f||f(e)):(B(a),null==f||f(e))}},showPNModal:S,setShowPNModal:D,source:b,Outside:L,isBack:M,setIsBack:A,minHeight:180,setShouldAcquisitionModalOpen:h}},void 0!==g?E?o&&$?(()=>{const e=z[(null==g?void 0:g.value)||""];return(null==e?void 0:e.action)===cn.ShowPremiumModal?I():J.default.createElement(Hn,null)})():I():c?J.default.createElement(hn,null):null:null)},exports.SurveyQuestionCard=({className:a,headerText:l,style:n,question:i,termAndPolicyText:r,prevText:o,nextText:s,isContactForm:d,isDisableNext:c,isDisablePrev:u,onPrevClick:m,onNextClick:p,isSubmitButton:g,isButtonCenter:h,progress:f,descriptionText:b})=>{var v,y,x;const[w,C]=e.useState([]),{is_multi_select:k,multi_select_option:B,from:T,to:N}=i,S=null==i?void 0:i.type,D="checkbox"===S&&(null===(v=i.options)||void 0===v?void 0:v.length)&&(!w||0===w.length||k&&B===_t.RANGE&&(w.length<T||w.length>N)||k&&B===_t.EXACT_NUMBER&&w.length!==T)||"radio"===S&&(null===(y=i.options)||void 0===y?void 0:y.length)&&(!w||0===w.length)||"textbox"===S&&(null===(x=i.textOptions)||void 0===x?void 0:x.length)&&(w.length<i.textOptions.length||w.some((e=>!e.value))),M="number"==typeof f?f>1?1:f<0?0:Number(f.toFixed(2)):-1,A=e.useRef(null),P=()=>"textbox"!==S||A.current.reportValidity();return J.default.createElement(At,{className:a,style:n},J.default.createElement("div",{className:"survey-inner-wrapper"},l&&J.default.createElement("div",{className:"survey-header"},J.default.createElement(t.Text,{className:"survey-header-text",size:"c2"},l)),J.default.createElement("form",{ref:A,onSubmit:e=>e.preventDefault()},J.default.createElement(It,{question:i,description:b,onOptionsChange:e=>{C(e)},onTextOptionsChange:e=>{C(e)}})),d&&s&&J.default.createElement(E.Button,{className:"survey-contact-submit",size:"lg",isDisabled:c||D,onClick:()=>P()&&p&&p(w)},s),r&&J.default.createElement("div",{className:"term-policy-container"},r),"number"==typeof f&&J.default.createElement("div",{className:"survey-progress-wrapper"},J.default.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${M})`}})),(o||s)&&J.default.createElement("div",{"data-center":h,className:"survey-button-wrapper"},o&&J.default.createElement(E.Button,{className:"survey-prev-button",size:"lg",color:u?"primary":"secondary",isDisabled:u,icon:J.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},J.default.createElement("path",{d:"M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z",fill:u?"#fff":"#2D87F3"})),onClick:m},o),!d&&s&&J.default.createElement(E.Button,{onClick:()=>P()&&p&&p(w),className:"survey-next-button",size:"lg",isDisabled:c||D},s," ",g?void 0:J.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},J.default.createElement("path",{d:"M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z",fill:"#ffffff"}))))))},exports.SurveyThankyouCard=({thankyou:e,thankyouSubtitle:l,className:n,style:i})=>J.default.createElement(At,{className:n,style:i},J.default.createElement("div",{className:"survey-inner-wrapper"},J.default.createElement($t,null,J.default.createElement("div",{className:"survey-thankyou-wrapper-inner"},J.default.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},J.default.createElement("path",{d:"M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z",fill:c.theme.colors.primary50}),J.default.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),J.default.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),J.default.createElement("path",{d:"M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z",fill:"#fff"}),J.default.createElement("path",{d:"M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z",fill:"#E4E8EC"}),J.default.createElement("path",{d:"M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z",fill:"#fff"}),J.default.createElement("path",{d:"M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z",fill:"#45A4FF"}),J.default.createElement("path",{stroke:"#2C74DF",d:"M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084"}),J.default.createElement("path",{d:"M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966",stroke:"#FE921D"}),J.default.createElement("path",{d:"M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z",stroke:"#00B16A"}),J.default.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),J.default.createElement("path",{d:"M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z",fill:"#00CB8A"})),e&&J.default.createElement(a.Heading,{className:"survey-thankyou-title",tag:"h3"},e),l&&J.default.createElement(t.Text,{className:"survey-thankyou-subtitle",size:"p3"},l))))),exports.THRCardEmbed=({isSide:l,locale:n,thrContent:i,isMobile:o,info:u,inputErrorMessage:p,onFormChange:g,onSubmit:h})=>{var f,b,v;const{t:y}=r.useTranslations(),{getHealthToolLink:x}=P.useHealthToolsCache(n),E=e.useMemo((()=>x(a.HEALTH_TOOL_TYPE.THR)),[x]),[w,C]=e.useState(!1),[k,B]=e.useState("low_intensity"),[T,S]=e.useState("male"),[D,A]=e.useState(60),[$,z]=e.useState({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),I=[{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}],_=[{value:"low_intensity",label:y("targetHeartRate.lowIntensity.title"),image:d.CommonGAssets.getAssetPath("/low.svg"),imageActive:d.CommonGAssets.getAssetPath("/low-active.svg"),content:y("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:y("targetHeartRate.moderateIntensity.title"),image:d.CommonGAssets.getAssetPath("/moderate.svg"),imageActive:d.CommonGAssets.getAssetPath("/moderate-active.svg"),content:y("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:y("targetHeartRate.aerobicZone.title"),image:d.CommonGAssets.getAssetPath("/aerobic.svg"),imageActive:d.CommonGAssets.getAssetPath("/aerobic-active.svg"),content:y("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:y("targetHeartRate.vigorousIntensity.title"),image:d.CommonGAssets.getAssetPath("/vigorous.svg"),imageActive:d.CommonGAssets.getAssetPath("/vigorous-active.svg"),content:y("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:y("targetHeartRate.maximumIntensity.title"),image:d.CommonGAssets.getAssetPath("/maximum.svg"),imageActive:d.CommonGAssets.getAssetPath("/maximum-active.svg"),content:y("targetHeartRate.maximumIntensity.note")}];return e.useEffect((()=>{const e=((new Date).getTime()-new Date(null==u?void 0:u.age).getTime())/1e3;C(e>=567648e3);const t=I.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||I[0];z(t),A(60)}),[null==u?void 0:u.age]),J.default.createElement(Ha,{"data-is-side":l},J.default.createElement(va,{isSide:l,icon:J.default.createElement("img",{alt:"health-tool-icon",src:(null==i?void 0:i.featured_image)||d.CommonGAssets.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:y("targetHearRate.heading"),medicalReview:(null===(f=null==i?void 0:i.reviewedBy)||void 0===f?void 0:f.display_name)?{link:L.formatUserProfileUrl(null==i?void 0:i.reviewedBy),reviewer:null===(b=null==i?void 0:i.reviewedBy)||void 0===b?void 0:b.display_name,date:null==i?void 0:i.reviewedDate}:void 0,isMobile:o}),J.default.createElement(M.Container,null,J.default.createElement(Fa,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":l},J.default.createElement(ul,{"data-is-side":l},J.default.createElement(cl,null,J.default.createElement(Ne,{defaultValue:"male",onChange:e=>{S(e),A(60)},styles:e=>({root:!l&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:m.rem(12)}}})}))),J.default.createElement(ul,null,J.default.createElement(ml,{info:u,locale:n,errorMessage:p,onChange:g})),J.default.createElement("div",{className:"slider-heart-rate"},J.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},y("targetHeartRate.heartRateInput")),J.default.createElement("div",{className:"slider-outer-wrapper"},J.default.createElement(N.Slider,{containerStyle:{flex:1},min:"male"===T?$.rangeMale:$.rangeFemale,max:200,step:1,value:D,withControl:!0,onChange:A}))),w&&J.default.createElement(cl,null,J.default.createElement(Ia,null,J.default.createElement(t.Text,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:c.theme.colors.gray600,marginBottom:"9px"}},y("targetHeartRate.selectActive")),J.default.createElement("div",{className:"card"},J.default.createElement(ol,{options:_.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:k,onChange:e=>{B(e)},className:"gender-selector"})),k&&J.default.createElement("div",{className:"note"},J.default.createElement("img",{style:{height:"16px",width:"16px"},src:d.CommonGAssets.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),J.default.createElement(t.Text,{size:"s4",color:"#595959"},null===(v=_[_.findIndex((e=>e.value==k))||0])||void 0===v?void 0:v.content)),!k&&J.default.createElement("span",{style:{color:"#e64728"}},p.intensity)))),J.default.createElement("div",{style:{display:"flex"}},J.default.createElement(sl,{size:"lg",onClick:()=>{h(T,k,[D])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${s.domainLocales[n]}/${E}`},y("bmi.submit")))))},exports.Tabs=({style:a,initialTab:l,tabContent:n,onChange:i,className:r,dataEventCategory:o,dataEventAction:s,dataEventLabel:d,id:c,styles:u})=>{const{classes:m,cx:p,theme:g}=Mt(void 0,{name:"Tabs",styles:u}),[h,f]=e.useState(l||0);return e.useEffect((()=>{f(l)}),[l]),J.default.createElement("ul",{style:a,className:p(m.root,r),role:"tablist",id:c},n.map(((e,a)=>J.default.createElement("li",{className:`${m.item} ${h===a?"active":""} ${e.className}`,"aria-selected":h===a,role:"tab",onClick:()=>{f(a),i&&i(a)},onKeyDown:e=>{"Enter"===e.key&&(f(a),i&&i(a))},key:a,"data-event-category":e.dataEventCategory||o,"data-event-action":e.dataEventAction||s,"data-event-label":e.dataEventLabel||d,tabIndex:0,"data-testid":e.dataTestid},J.default.createElement("div",{className:m.itemInner},e.icon&&J.default.createElement("div",{className:m.icon},e.icon),J.default.createElement(t.Text,{className:m.label,size:e.textSize||"sm",weight:e.textType||"bold",color:h===a?g.fn.primaryColor():e.textColor||g.colors.gray[4],dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel},e.name))))))},exports.Tag=({type:e,children:t,style:l,isInline:n,isSquared:r=!1,className:o,isLight:s,hasMorePadding:d,isLink:c,isSelected:u,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return J.default.createElement(a.StyledTag,{"data-is-squared":r||void 0,"data-tag-type":e,"data-is-light":s||void 0,"data-has-more-padding":d||void 0,"data-is-inline":n||void 0,style:Object.assign(Object.assign({},l),p),className:o,"data-is-selected":u||void 0,"data-is-link":c||void 0,tagType:e,isInline:n,tagHasMorePadding:d,tagIsLight:s,tagIsSquared:r,tagIsALink:c},J.default.createElement(i.Text,Object.assign({},m),t))},exports.Toggle=({className:e,id:t,onChange:l,checked:n,style:i,label:r})=>J.default.createElement(a.StyledToggle,{className:e,style:i},J.default.createElement("input",{type:"checkbox",id:t,onChange:l,checked:n}),J.default.createElement("label",{htmlFor:t},J.default.createElement(a.StyledToggleIcon,null),r&&J.default.createElement(a.StyledToggleLabel,null,r))),exports.ToolsBannerCard=va,exports.UserProfileNavigation=({SSO_URL:t,UP_BASEPATH:a="user",themeName:l="helloSites",cardUrls:n=Rn,enableCare:i,enableTogether:o,enableEcom:s,enableMySaved:c,userInfo:u,togetherApiDomain:m,userPostsNumber:p,onClickNavigationCard:g,onClickMyProfileButton:h,onClickMenuItem:f,onClickLogout:b,isUserProfileNavigatorMenuHidden:y=!1,isMyHealthEnabled:x=!1,locale:w})=>{const{t:C}=r.useTranslations(),[k,B]=e.useState(p||0),T="marryBaby"===l;e.useEffect((()=>{if(u&&void 0===p){const e=Y.getCookie("hhg_user_token");e&&fetch(K.normalizeLinkSlash(v.getTogetherUserPostsApiPath(w,T,m)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,l;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&B((null===(l=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===l?void 0:l.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[w,null!==u,p,m,T]);const N=e.useMemo((()=>{let e;return e=T?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?i:"myCommunity"===e?o:"myHealth"===e?x:"eCom"===e?s:"mySaved"!==e||c))}),[T,x]),S=e.useMemo((()=>"marryBaby"===l?null:J.default.createElement(E.Button,{color:"tertiary",icon:J.default.createElement("img",{src:d.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:b,className:mi},C("userProfile.nav.menu.logout"))),[l]),D=e=>{e.startsWith("http")||e.startsWith("/")?window.location.href=K.normalizeLink(e):t&&(window.location.href=K.normalizeLink(`${t}${a}/${e}`))},M=e=>{const t=n[e];g?g(t):D(t)};return u?J.default.createElement("div",{className:di,"data-theme":l},J.default.createElement(Qn,{userInfo:u,themeName:l,onClickMyProfileButton:()=>{h?h():D("profile")}}),J.default.createElement(xi,{themeName:l,rank:"member",numberOfPosts:k}),J.default.createElement("div",{className:ci},N.map((e=>J.default.createElement(ei,{className:ui,key:e,themeName:l,type:e,onClick:M})))),!y&&J.default.createElement(J.default.Fragment,null,J.default.createElement(oi,{themeName:l,locale:w,onClickItem:e=>{"logout"===e.link&&b?b():e.link&&!e.subMenu&&(f?f(e.link):D(e.link))}}),S)):null},exports.UserStats=xi,exports.index=ft,exports.index$1=Dt;