@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
@@ -1,3533 +0,0 @@
1
- "use strict";var e=require("react"),t=require("./index-106a0aa4.js"),a=require("./index.styles-ad7903c3.js"),l=require("./screenSizeContext-c2712d14.js"),n=require("./index-22536346.js"),i=require("./index-b1f953f6.js"),r=require("./useTranslations-fe507352.js");require("lodash/debounce");var o=require("./isProduction-201ff7b0.js"),s=require("./index-1fbc51d0.js");require("./useCategory-5cbd3135.js");var d=require("./gAssets.js"),c=require("./theme-8c73ee47.js"),u=require("./tslib.es6-97edf1e8.js"),m=require("@mantine/core"),p=require("innertext");require("@mantine/dates");var g=require("./Onboarding-30aed79e.js"),h=require("dayjs"),f=require("styled-components");require("./translationsContext-1b861397.js"),require("string-format");var b=require("@mantine/hooks"),v=require("./index-eb28658b.js"),y=require("lodash/throttle"),x=require("./index-71c2b110.js"),E=require("./index-cef0a00f.js"),w=require("./index-29d8f3e7.js"),C=require("html-react-parser"),k=require("date-fns");require("./utils-381adc93.js"),require("./index.styled-24033e81.js"),require("./index-867763ec.js");var B=require("./constants-cae8dcfd.js"),T=require("./types-7692b1e6.js"),D=require("./index-1df24374.js"),S=require("./index-8844b145.js"),N=require("./index.styled-0e38b245.js"),M=require("./index-89f9554a.js"),A=require("react-hook-form"),$=require("./useHealthToolCache-ad666c43.js"),z=require("@hookform/resolvers/yup"),P=require("./index-b6de35aa.js"),L=require("./index-c29cd0ee.js"),I=require("react-day-picker/DayPickerInput"),_=require("./useOutsideClick-5f6e71c0.js"),O=require("date-fns/locale/en-US"),j=require("date-fns/locale/id"),F=require("date-fns/locale/vi"),R=require("date-fns/locale/zh-TW"),H=require("./getSocialList-ada93645.js"),G=require("uuid"),U=require("./routing-ec743546.js"),W=require("@mantine/form"),V=require("./index-9e94fdd7.js"),Q=require("js-cookie"),q=require("lodash/flatten");require("react-contenteditable"),require("react-dom");var Z=require("lodash/uniqBy");function Y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var K=Y(e),X=Y(p),J=Y(h),ee=Y(f),te=Y(y),ae=Y(C),le=Y(I),ne=Y(O),ie=Y(j),re=Y(F),oe=Y(R),se=Y(Q),de=Y(q),ce=Y(Z),ue="CHw-fZZ",me="_03U6VRS",pe="EO828Vv";const ge=()=>K.default.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),he=()=>K.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},K.default.createElement("defs",null,K.default.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},K.default.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),K.default.createElement("title",null,"File"),K.default.createElement("g",{clipPath:"url(#prefix__clip-path)"},K.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)"}),K.default.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),fe=()=>K.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},K.default.createElement("title",null,"download"),K.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)"})),be=()=>K.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},K.default.createElement("title",null,"upload"),K.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)"})),ve=({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]),K.default.createElement(e.Fragment,null,n>4&&K.default.createElement(e.Fragment,null,K.default.createElement(a.StyledPaginationBlock,{onClick:()=>i(1)},o?K.default.createElement("a",{href:o,onClick:r},1):1),K.default.createElement(a.StyledPaginationBlock,null,"...")),c.map((e=>K.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===n||void 0,onClick:()=>i(e)},o?K.default.createElement("a",{href:l.formatUrlWithPageParam(o,e,s),onClick:r},e):e))),n<d.length-3&&K.default.createElement(e.Fragment,null,K.default.createElement(a.StyledPaginationBlock,null,"..."),K.default.createElement(a.StyledPaginationBlock,{onClick:()=>i(d.length)},o?K.default.createElement("a",{href:l.formatUrlWithPageParam(o,d.length,s),onClick:r},d.length):d.length)))},ye=({label:e,name:t,checked:l,className:n,isDisabled:i,onChange:r,value:o,isRectangle:s,inputDataTestId:d,siteType:c})=>K.default.createElement(a.StyledCheckbox,{className:n,"data-disabled":i||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":c},K.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&&K.default.createElement("label",{htmlFor:`${t}-${o}`},e)),xe=e=>K.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 32 32",fill:"none"}),K.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"})),Ee=e=>K.default.createElement("svg",Object.assign({},e,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),K.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"})),we=e=>{const t=r.useUniqueId();return K.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none"}),K.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"}),K.default.createElement("mask",{id:t,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},K.default.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),K.default.createElement("g",{mask:`url(#${t})`},K.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"})))},Ce=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]),K.default.createElement(m.Box,{ref:y,className:h.root},K.default.createElement(m.Radio.Group,Object.assign({className:"radio-group",label:K.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},n||g(s?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},p,{classNames:{error:h.groupErr}}),K.default.createElement(m.Flex,{className:f(h.wrapper)},x.map((e=>K.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:K.default.createElement(m.Flex,{gap:m.rem(8),align:"center",justify:"center",sx:{zIndex:0}},K.default.createElement("img",{src:e.icon,className:"gender-image",alt:"female",loading:"lazy"}),K.default.createElement(t.Text,{size:"p3"},e.label))})))))))};var ke="tliWyii";var Be="PiqKaXk",Te="HgbW6-m",De="_6lkfLYy",Se="j7c-onH";const Ne=({avatarImg:e,authorName:a,authorLink:l,uploadTime:n,size:i})=>K.default.createElement("div",{className:Se},K.default.createElement("div",{className:"author"},K.default.createElement("div",{className:"avatar","data-size":i},e),K.default.createElement("div",{className:"poster","data-is-disabled-url":!l},K.default.createElement(t.Text,{size:"lg"===i?"p3":"p4"},K.default.createElement("a",{href:l},K.default.createElement("span",{className:"name"},a),"•"," "),K.default.createElement("span",null,n))))),Me=({isMobile:e,avatarImg:l,name:n,link:i,size:r="lg",specialty:o})=>K.default.createElement("div",{className:Se},K.default.createElement("div",{className:"author"},K.default.createElement("div",{className:"expert-avatar","data-size":r},l),K.default.createElement("div",{className:"expert","data-is-disabled-url":!i},e?K.default.createElement("a",{href:i},"lg"===r?K.default.createElement(K.default.Fragment,null,K.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:c.theme.colors.gray600},n),K.default.createElement(t.Text,{color:c.theme.colors.gray500,size:"p3",className:"specialty"},o)):K.default.createElement(K.default.Fragment,null,K.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:c.theme.colors.gray600},n))):K.default.createElement("a",{href:i},"lg"===r?K.default.createElement(K.default.Fragment,null,K.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:c.theme.colors.gray600},n),K.default.createElement(t.Text,{color:c.theme.colors.gray500,size:"p3",className:"specialty"},o)):K.default.createElement(K.default.Fragment,null,K.default.createElement("h6",{color:c.theme.colors.gray600,className:`${Be} expert__name`},n),K.default.createElement(t.Text,{color:c.theme.colors.gray500,size:"p4",className:"specialty"},o)))))),Ae=e.memo((()=>K.default.createElement("div",{className:"shoppable"},K.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},K.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),K.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"}))))),$e=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>K.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"},K.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"})))),ze=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>K.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"},K.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"})))),Pe=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}),K.default.createElement(m.Card,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},b),K.default.createElement(m.Card.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},K.default.createElement("img",{src:(v?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{width:"100%"},loading:"lazy"})),K.default.createElement(m.Card.Section,null,K.default.createElement(m.Group,{position:"apart",mt:16,mb:4},K.default.createElement(n.Anchor,{href:(null===(a=null==r?void 0:r.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},K.default.createElement(t.Text,{size:"p4",color:"blue.6"},null===(l=null==r?void 0:r.primaryCategory)||void 0===l?void 0:l.displayName)),K.default.createElement(m.Box,{sx:{cursor:"pointer"},role:"button",onClick:g},p?K.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==f?void 0:f.bookmark),K.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"})):K.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==f?void 0:f.bookmark),K.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"})))),K.default.createElement(t.Text,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},r.postTitle||r.postName||""),!c&&K.default.createElement(t.Text,{size:"p2",mb:16,lineClamp:3,className:"pointer"},X.default(r.excerpt||r.description||(null===(i=r.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),K.default.createElement(m.Flex,{gap:12,align:"center"},K.default.createElement(n.Avatar,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:K.default.createElement("img",{loading:"lazy",src:d,alt:""})}},"A"),K.default.createElement(t.Text,{size:"n1",c:"gray.6"},o," • ",h))))};var Le=m.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const Ie=648/440,_e=1.5,Oe=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}=Le({},{name:"ArticleCard",classNames:y,styles:x,unstyled:E}),D=e.useMemo((()=>g?_e:Ie),[g]);return K.default.createElement(m.Card,Object.assign({className:T(B.root,w),padding:"lg",radius:0},C),K.default.createElement(m.Card.Section,{className:T(B.image,"pointer")},K.default.createElement(n.AspectRatio,Object.assign({ratio:D},p),K.default.createElement("img",{src:(k?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),K.default.createElement(m.Card.Section,null,K.default.createElement(m.Group,{position:"apart",mt:16,mb:4},K.default.createElement(n.Anchor,{className:B.category,href:(null===(l=null==o?void 0:o.primaryCategory)||void 0===l?void 0:l.permalink)||"#"},K.default.createElement(t.Text,{size:"p4",color:"blue.6"},null===(i=null==o?void 0:o.primaryCategory)||void 0===i?void 0:i.displayName)),K.default.createElement(m.Box,{sx:{cursor:"pointer"},role:"button",onClick:f},h?K.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),K.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"})):K.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),K.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"})))),K.default.createElement(t.Text,{className:T(B.title,"pointer"),size:g?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!g&&K.default.createElement(t.Text,{className:T(B.description,"pointer"),size:"p2",mb:16,lineClamp:3},X.default(o.excerpt||o.description||(null===(r=o.postContent)||void 0===r?void 0:r.split("\r\n")[0])||"")),K.default.createElement(m.Flex,{className:B.author,gap:12,align:"center"},K.default.createElement(n.Avatar,{size:32,src:d,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:K.default.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),K.default.createElement(t.Text,{size:"n1",c:"gray.6"},s," • ",b))))},je=ee.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
- `,Fe=ee.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
- `,Re={"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":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},He=ee.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
- `,Ge=ee.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
- `,Ue=({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=Re[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 K.default.createElement("div",{className:"DayPicker-Caption"},K.default.createElement(Ge,null,K.default.createElement("select",{name:"month",onChange:n,value:e.getMonth()},a.map(((e,t)=>K.default.createElement("option",{key:e,value:t},e)))),K.default.createElement("select",{name:"year",onChange:n,value:e.getFullYear()},l.map((e=>K.default.createElement("option",{key:e,value:e},e))))))};return e.useEffect((()=>(document.addEventListener("mousedown",E,{passive:!0}),()=>{document.removeEventListener("mousedown",E,!1)})),[]),K.default.createElement(He,{className:o,"data-align-right":t,ref:v,"data-is-static":s||void 0},K.default.createElement(le.default,{ref:y,inputProps:{readOnly:!0},keepFocus:!1,classNames:{container:"pickerContainer",overlayWrapper:"pickerOverlayWrapper",overlay:"pickerOverlay"},component:i&&K.default.forwardRef(((e,t)=>K.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 K.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}))},We=ee.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
- `,Ve=ee.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
- `,Qe=ee.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
- `,qe=ee.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
- `,Ze=ee.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
- `,Ye=ee.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
- `,Ke=ee.default.div`
546
- display: flex;
547
- align-items: center;
548
- `,Xe=ee.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
- `,Je=ee.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
- `,et=ee.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
- `,tt=ee.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
- `,at=ee.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
- `,lt=ee.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
- `,nt=K.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 K.default.createElement(n.Radio.Group,{name:t,className:i,size:b,value:String(h),defaultValue:a,onChange:e=>{f(e),null==d||d(e)}},K.default.createElement(v,{spacing:"xl"},l.map((e=>K.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})))))})),it=ee.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
- `,rt=ee.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
- `,ot=ee.default.div`
654
- cursor: pointer;
655
- &[data-is-collapsed] {
656
- transform: rotate(180deg);
657
- }
658
- `,st=ee.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
- `,dt=({name:e,description:a,image:l,isDescriptionHidden:n})=>K.default.createElement(st,null,l,!n&&K.default.createElement("figcaption",null,K.default.createElement(t.Text,{size:"p4",weight:"bold"},e),K.default.createElement(t.Text,{size:"p4"},a))),ct=ee.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
- `,ut=ee.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 mt=Object.freeze({__proto__:null,SideMenu:({isCollapsed:e,className:t,style:a,children:l})=>K.default.createElement(it,{style:a,className:t,"data-is-collapsed":e||void 0},l),SideHeader:({isCollapsed:e,defaultLogo:t,onBackClick:a,customIcon:l})=>K.default.createElement(rt,null,K.default.createElement(x.Logo,{type:e?"logomark":t||"hellocare",customSize:{width:e?"24px":"77px",height:"24px"}}),K.default.createElement(ot,{"data-is-collapsed":e||void 0,onClick:a},l||K.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},K.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"}),K.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})=>K.default.createElement(ct,{"data-is-collapsed":e||void 0},K.default.createElement(dt,{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"})=>K.default.createElement(ut,{"data-is-link-active":a||void 0,onClick:r,"data-is-link-collapsed":n||void 0},a&&i?i:e,!n&&K.default.createElement(t.Text,{size:o,weight:s,color:a?d:c},l))});const pt=ee.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
- `,gt=({status:e})=>"inActive"===e?K.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},K.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===e?K.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},K.default.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),K.default.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===e?K.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},K.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"}),K.default.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):K.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},K.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),ht=ee.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
- `,ft=ee.default.div`
855
- width: 13px;
856
- height: 13px;
857
- margin-right: 10px;
858
- background-color: ${e=>e["data-color"]};
859
- border-radius: 50%;
860
- `,bt=ee.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
- `,vt=ee.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
- `,yt=ee.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
- `,xt=ee.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
- `,Et=ee.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
- `,wt=({children:e,className:t,style:a,isActive:l,onRowClicked:n,rowId:i})=>K.default.createElement(Et,{className:t,"data-is-active":l,style:a,onClick:()=>{n&&n(i)}},e),Ct=ee.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
- `,kt=ee.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 Bt=Object.freeze({__proto__:null,Table:({children:e,className:t,style:a,horizontalPadding:l,verticalPadding:n})=>K.default.createElement(yt,{className:t,style:a,theme:{horizontalPadding:l,verticalPadding:n}},e),Cell:({children:e,className:t,style:a,textAlign:l,isTableHead:n})=>K.default.createElement(xt,{className:t,style:a,"data-text-align":l||"left",as:n?"th":"td"},e),Head:({isSticky:e,children:t,className:a,style:l})=>K.default.createElement(Ct,{className:a,"data-is-sticky":e||void 0,style:l},K.default.createElement(wt,null,t)),Row:wt,Body:({children:e,className:t,style:a,isHoverable:l,isStriped:n})=>K.default.createElement(kt,{className:t,style:a,"data-is-striped":n||void 0,"data-is-hoverable":l||void 0},e)}),Tt=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 Dt=ee.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
- `,St=ee.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
- `,Nt=ee.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
- `,Mt=ee.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
- `,At=({size:e="small",label:t,name:a,checked:l,value:n,className:i,isDisabled:r=!1,onChange:o,hasImage:s,inputType:d,image:c})=>K.default.createElement(St,{"data-disabled":r,className:i,"data-size":e,"data-checked":l,onClick:()=>{o(n)},"data-has-image":s},s&&K.default.createElement("div",{className:"choice-image-wrapper"},c&&K.default.createElement("img",{src:c,loading:"lazy"})),K.default.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${a}-${n}`},t),K.default.createElement("input",{type:d,checked:l,name:a,id:`${a}-${n}`,value:n,readOnly:!0})),$t=({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]),K.default.createElement(Mt,{className:s,style:o},K.default.createElement("div",{className:"survey-question-text-wrapper"},c&&K.default.createElement(a.Heading,{"data-nosubtitle":!u,className:"survey-question-title",tag:"h4"},c),u&&K.default.createElement(t.Text,{className:"survey-question-subtitle",size:"p2"},u),n&&K.default.createElement(t.Text,{className:"survey-question-description",size:"p2"},n)),m&&K.default.createElement("img",{src:m,className:"survey-question-image",loading:"lazy"}),K.default.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===d&&K.default.createElement("div",{"data-has-image":b,className:"survey-question-options-wrapper"},g.map((e=>{var t;return K.default.createElement(At,{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&&K.default.createElement("div",{"data-has-image":b,className:"survey-question-options-wrapper"},g.map((e=>K.default.createElement(At,{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?K.default.createElement(a.TextArea,{key:t,placeholder:e.placeholder,height:"150px",value:e.value,onChange:e=>E((a=>(a[t].value=e,a.slice())))}):K.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 zt;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(zt||(zt={}));const Pt=200,Lt=ee.default.div``,It=ee.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 ${Pt}ms linear;
1218
-
1219
- [data-floatmenu-open='true'] & {
1220
- animation: showBackgroundPanel ${Pt}ms linear 0s normal forwards;
1221
- }
1222
-
1223
- [data-floatmenu-open='false'] & {
1224
- animation: hideBackgroundPanel ${Pt}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
- `,_t=ee.default.div`
1254
- position: fixed;
1255
- right: 16px;
1256
- bottom: 40px;
1257
- `,Ot=ee.default.div`
1258
- display: flex;
1259
- flex-direction: column;
1260
- gap: 16px;
1261
- transition: all ${Pt}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
- `,jt=ee.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 ${Pt}ms linear 0s normal forwards;
1329
- }
1330
-
1331
- [data-floatmenu-open='false'] &:before,
1332
- [data-floatmenu-open='false'] &:after {
1333
- animation: toPlus ${Pt}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
- `,Ft=ee.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 ${Pt}ms ease-in;
1394
- }
1395
-
1396
- [data-animation-type='slide'][data-floatmenu-open='true'] & {
1397
- animation: showItem ${Pt}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
- `,Rt=ee.default.div`
1436
- font-size: 14px;
1437
-
1438
- // zoom
1439
- [data-animation-type='zoom'] & {
1440
- transition: transform ${Pt}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 ${Pt}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
- `,Ht=ee.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 ${Pt}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
- `,Gt=ee.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
- `,Ut=ee.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
- `,Wt=ee.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
- `,Vt=ee.default.div`
1551
- display: flex;
1552
- align-items: center;
1553
- margin-top: 8px;
1554
- gap: 16px;
1555
- `,Qt=ee.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
- `,qt=ee.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
- `,Zt=f.keyframes`
1572
- from {
1573
- transform: translateY(100%);
1574
- visibility: visible;
1575
- }
1576
-
1577
- to {
1578
- transform: translateY(0);
1579
- }
1580
- `,Yt=f.keyframes`
1581
- from {
1582
- transform: translate(0, 0);
1583
- }
1584
-
1585
- to {
1586
- visibility: hidden;
1587
- transform: translate(0, 100%);
1588
- }
1589
- `,Kt=ee.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
- `,Xt=ee.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: ${Yt} 500ms ease-in-out forwards;
1689
- }
1690
-
1691
- &[data-is-collapsed='false'] {
1692
- animation: ${Zt} 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
- `,Jt=ee.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
- `;ee.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
- `,ee.default.div`
1729
- a {
1730
- text-decoration: none;
1731
- }
1732
- `;const ea=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 K.default.createElement(Kt,Object.assign({"data-is-special":o,"data-is-active":r,"data-is-disabled":l},d),K.default.createElement("div",{className:"mobile-navigation-icon","data-no-label":!Boolean(s)},n&&K.default.createElement(Jt,{"data-no-label":!Boolean(s)},K.default.createElement(t.Text,{size:"s5",weight:"semiBold",color:o?c.theme.colors.primaryBase:c.theme.colors.white},a)),i),s&&K.default.createElement("span",{className:"mobile-navigation-label"},s))},ta=e=>{var{children:t,on:a="",isCollapsed:l=!1,template:n="homepage"}=e,i=u.__rest(e,["children","on","isCollapsed","template"]);return K.default.createElement(Xt,Object.assign({on:a,"data-is-collapsed":l,"data-template":n},i),t)};ta.Icon=ea;ee.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
- `,ee.default.div`
1744
- &[data-is-mobile='false'] {
1745
- max-width: 540px;
1746
- }
1747
- ${l.MediaQueries.tdUp} {
1748
- padding-right: 120px;
1749
- }
1750
- `,ee.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 aa=ee.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
- `,la="hhgcomp-toolbanner-iconcontainer";a.getDefaultClassWrapper(aa,la),ee.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 na=ee.default.div`
1803
- position: relative;
1804
- `,ia="hhgcomp-toolbanner-inner";a.getDefaultClassWrapper(na,ia);const ra=ee.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
- `,oa="hhgcomp-toolbanner-wrapper",sa=a.getDefaultClassWrapper(ra,oa),da=ee.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
- .${oa} {
1843
- .${ia} {
1844
- display: flex;
1845
- align-items: center;
1846
- ${l.MediaQueries.mbDown} {
1847
- justify-content: space-between;
1848
- }
1849
- .${la} {
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
- `,ca=ee.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
- `,ua=ee.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
- `,ma=ee.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
- `,pa=ee.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
- `,ga=({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)?K.default.createElement(t.Text,{size:"label2",color:"#fff",as:"div",className:"embedded-review",sx:{a:{textUnderlineOffset:"2px",color:"#fff",textDecoration:"underline"}}},K.default.createElement("div",{dangerouslySetInnerHTML:{__html:v("toolPage.toolReviewer",{expert_name:`<a href="${c.link}">${c.reviewer.trim()}</a>`,date:c.date})}})):null;return K.default.createElement(da,{"data-is-mobile":i,style:p,"data-site":g},K.default.createElement(sa,{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?K.default.createElement(ca,null,K.default.createElement(ua,null,u),K.default.createElement(ma,null,K.default.createElement(a.Heading,{color:"white",tag:"h5",as:"h2"},l),c&&K.default.createElement(pa,{"data-is-mobile":i},C))):K.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)}},K.default.createElement(m.Box,null,K.default.createElement(a.Heading,{tag:"h5",as:"h2",color:"#fff"},l),c&&K.default.createElement(t.Text,{size:"n1",as:"div"},C)),K.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))))},ha=ee.default(N.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
- `;ee.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 fa=ee.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
- `,ba=ee.default.div`
2044
- width: 100%;
2045
- `,va=ee.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
- `,ya=ee.default(ba)`
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
- `;ee.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 xa=ee.default.img`
2112
- img& {
2113
- width: 16px;
2114
- height: 16px;
2115
- }
2116
- `;var Ea;ee.default(xa)`
2117
- margin-right: 4px;
2118
- `,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(Ea||(Ea={}));const wa="yyyy-MM-dd",Ca=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,ka=({locale:l,onClick:i,siteType:o,pageUrl:d})=>{const{t:u}=r.useTranslations(),[m,p]=e.useState(new Date);return K.default.createElement(K.default.Fragment,null,K.default.createElement(ya,{className:"input-form","data-is-side":!0},"marryBaby"===o?K.default.createElement(fa,{label:u("dueDatePage.conceptionDate"),name:"date",size:"md",value:Ca(m),CustomInput:K.default.createElement(Ue,{onChange:e=>{p(e)},placeholder:"dd/mm/yyyy",pickedDate:m,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>K.default.createElement(w.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:m&&J.default(m).format(a.DUE_DATE_FORMAT)}))}),actionIcon:K.default.createElement(t.Icon.CalendarMB,{size:32})}):K.default.createElement(w.Input,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},u("dueDatePage.conceptionDate")),value:Ca(m),name:"date",size:"md",className:"due-date-input",CustomInput:K.default.createElement(Ue,{customInput:e=>K.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Ca(m)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:m,displayDateFormat:T.DATE_FORMAT,onChange:e=>{p(e)},placeholder:"placeholder"})})),K.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:Ea.conception+1,conception_date:k.format(e,wa),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,wa)}&${s.QUERY_HEALTH_TOOL.additional}= `)},role:"button"},u("dueDatePage.lastPeriod.calculate")))},Ba=({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 K.default.createElement(K.default.Fragment,null,K.default.createElement(ya,{className:"input-form","data-is-side":!0},"marryBaby"===o?K.default.createElement(fa,{label:u("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:Ca(m),CustomInput:K.default.createElement(Ue,{onChange:e=>{p(e)},placeholder:"dd/mm/yyyy",pickedDate:m,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>K.default.createElement(w.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:m&&J.default(m).format(a.DUE_DATE_FORMAT)}))}),actionIcon:K.default.createElement(t.Icon.CalendarMB,{size:32})}):K.default.createElement(w.Input,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray700,style:{marginBottom:"9px",flex:"1"}},u("dueDatePage.ivf.transferDate")),value:Ca(m),name:"date",size:"md",className:"due-date-input",CustomInput:K.default.createElement(Ue,{customInput:e=>K.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Ca(m)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:m,displayDateFormat:T.DATE_FORMAT,onChange:e=>{p(e)},placeholder:"placeholder"})})),K.default.createElement("div",{style:{width:"100%"}},K.default.createElement(nt,{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})}]})),K.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:Ea.IVF+1,ivf_transfer_date:k.format(e,wa),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,wa)}&${s.QUERY_HEALTH_TOOL.additional}=${g}`)},role:"button"},u("dueDatePage.lastPeriod.calculate")))},Ta=({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 K.default.createElement(K.default.Fragment,null,K.default.createElement(ya,{className:"input-form","data-is-side":!0},"marryBaby"===o?K.default.createElement(fa,{label:u("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:Ca(g),CustomInput:K.default.createElement(Ue,{onChange:e=>{h(e)},placeholder:"dd/mm/yyyy",pickedDate:g,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>K.default.createElement(w.Input,Object.assign({name:"birthday",size:"md"},e,{value:g&&J.default(g).format(a.DUE_DATE_FORMAT)}))}),actionIcon:K.default.createElement(t.Icon.CalendarMB,{size:32})}):K.default.createElement(w.Input,{className:"input-section due-date-input",label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},u("dueDatePage.lastPeriod.lastPeriodLabel")),value:Ca(g),name:"date",size:"md",CustomInput:K.default.createElement(Ue,{customInput:e=>K.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Ca(g)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:g,displayDateFormat:T.DATE_FORMAT,onChange:e=>{h(e)},placeholder:"placeholder"})})),K.default.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===o?"marryBaby":""},"marryBaby"===o?K.default.createElement(S.MarryBabyText,{type:"bodytext-3",color:c.theme.mbColors.midGray},u("dueDatePage.lastPeriod.periodLengthLabel")):K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"0.5rem"}},u("dueDatePage.lastPeriod.periodLengthLabel")),K.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===o&&K.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:c.theme.colors.gray600},m),K.default.createElement(D.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}))),K.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:Ea.lastPeriod+1,first_day:k.format(e,wa),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,wa)}&${s.QUERY_HEALTH_TOOL.additional}=${m}`),role:"button"},u("dueDatePage.lastPeriod.calculate")))};ee.default.div`
2119
- padding: 0;
2120
- background-color: white;
2121
- `,ee.default.div`
2122
- padding-bottom: 2px;
2123
- margin: auto;
2124
- ${l.MediaQueries.mbUp} {
2125
- width: 100%;
2126
- padding: 24px;
2127
- }
2128
- `;const Da=ee.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
- `,Sa=ee.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
- `,Na=ee.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
- `;ee.default.div`
2199
- ${l.MediaQueries.mbUp} {
2200
- padding-left: 16px;
2201
- padding-right: 16px;
2202
- }
2203
-
2204
- padding-bottom: 60px;
2205
- `,ee.default.div`
2206
- & > :not(:last-child) {
2207
- margin-bottom: 28px;
2208
- }
2209
- `,ee.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
- `,ee.default.div`
2224
- margin-bottom: 32px;
2225
-
2226
- ${l.MediaQueries.mbUp} {
2227
- padding-left: 16px;
2228
- padding-right: 16px;
2229
- }
2230
- `,ee.default.div`
2231
- margin-bottom: 32px;
2232
-
2233
- ${l.MediaQueries.mbUp} {
2234
- padding-left: 16px;
2235
- padding-right: 16px;
2236
- }
2237
- `,ee.default.div`
2238
- margin-bottom: 16px;
2239
-
2240
- ${l.MediaQueries.mbUp} {
2241
- padding-left: 16px;
2242
- padding-right: 16px;
2243
- }
2244
- `,ee.default.div`
2245
- margin-bottom: 24px;
2246
-
2247
- ${l.MediaQueries.mbUp} {
2248
- padding-left: 16px;
2249
- padding-right: 16px;
2250
- }
2251
- `,ee.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
- `,ee.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
- `,ee.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
- `,ee.default.div`
2286
- padding: 68px 0 56px 0;
2287
-
2288
- ${l.MediaQueries.mbUp} {
2289
- padding: 84px 0 72px 0;
2290
- }
2291
- `,ee.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 Ma=ee.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
- `,Aa=ee.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
- `,$a=ee.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
- `,za=({onSubmitDueDate:a,locale:l,isSide:n,siteType:i})=>{const{t:o}=r.useTranslations(),[s,d]=e.useState(Ea.lastPeriod),u=[{value:Ea.lastPeriod,label:o("dueDatePage.lastPeriod")},{value:Ea.conception,label:o("dueDatePage.conceptionDate")},{value:Ea.IVF,label:o("dueDatePage.ivf")}],m=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return K.default.createElement(Ma,null,K.default.createElement(ba,{className:"input-form input-section","data-is-side":!0},"marryBaby"===i?K.default.createElement(ha,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:u,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:u[s],onChange:e=>{d(e.value)}}):K.default.createElement(K.default.Fragment,null,K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.calculationMethod")),K.default.createElement(va,{"data-is-side":n},K.default.createElement(N.Dropdown,{options:u,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:u[s],onChange:e=>{d(e.value)}})))),s===Ea.lastPeriod?K.default.createElement(Ta,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:m}):null,s===Ea.conception?K.default.createElement(ka,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:m}):null,s===Ea.IVF?K.default.createElement(Ba,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:m}):null)},Pa=ee.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
- `,La="hhgcomp-embedtoolcard-content",Ia=a.getDefaultClassWrapper(Pa,La),_a=ee.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
- .${La} {
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
- `,Oa=ee.default(nt)`
2659
- &[data-direction='horizontal'] div[data-type='circle'] {
2660
- margin-right: 8px;
2661
- }
2662
- label {
2663
- font-size: 14px;
2664
- }
2665
- `,ja=ee.default(n.Button)`
2666
- margin: 0 auto 24px;
2667
- ${l.MediaQueries.mbUp} {
2668
- max-width: 200px;
2669
- margin: 24px auto;
2670
- }
2671
- `,Fa=ee.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
- `,Ra=ee.default.div`
2732
- width: 100%;
2733
- `,Ha=ee.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
- `;ee.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 Ga=ee.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 Ua({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const Wa=({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(),D=T(),{t:S}=r.useTranslations(),{gender:N=!1,age:M=!1,height:z=!1,weight:P=!1,objective:L=!0}=d||{},{getHealthToolLink:I}=$.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(D)}),[D]),K.default.createElement(Ra,null,K.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:Ua({height:t,weight:a})};L||(l.objective=e.objective),j(),o&&o(l)}))),j)},!N&&K.default.createElement(Ha,{"data-is-side":f},K.default.createElement(A.Controller,{name:"gender",control:C,defaultValue:"male",render:({field:{onChange:e}})=>K.default.createElement(Ce,{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)}}})})})),K.default.createElement(Ga,{"data-is-side":f},!M&&K.default.createElement(Ha,null,K.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}})=>K.default.createElement(n.Input.Number,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},S("bmi.ageInput")," ",K.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})})),!z&&K.default.createElement(Ha,null,K.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}})=>K.default.createElement(n.Input.Number,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},S("bmi.heightInput")," ",K.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})})),!P&&K.default.createElement(Ha,null,K.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}})=>K.default.createElement(n.Input.Number,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},S("bmi.weightInput")," ",K.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&&K.default.createElement(Ha,null,K.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}})=>K.default.createElement(Fa,{size:"md",name:e,label:p.objective.label,CustomInput:K.default.createElement(nt,{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"})}))),K.default.createElement("div",{style:{display:"flex"}},K.default.createElement(ja,{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")))))},Va=ee.default.div`
2793
- padding-block: 40px;
2794
-
2795
- &[data-theme='marryBaby'] {
2796
- padding-block: 0;
2797
- padding-top: 12px;
2798
- }
2799
- `,Qa=ee.default.form`
2800
- display: flex;
2801
- flex-direction: column;
2802
- gap: 16px;
2803
- `,qa=ee.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
- `,Za=ee.default(B.Label)`
2813
- display: inline-flex;
2814
- padding-bottom: 6px;
2815
- gap: 4px;
2816
- `,Ya=ee.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
- `;ee.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 Ka=(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},Xa=ee.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
- `,Ja=ee.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:z.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=Ka(x,y);h("bmi",String(e)||"0")}),[y,x]);const k=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return K.default.createElement(K.default.Fragment,null,K.default.createElement(Va,{"data-theme":s},K.default.createElement(Qa,{onSubmit:b(l,i)},K.default.createElement(A.Controller,{control:p,name:"gender",render:({field:{onChange:e,value:t}})=>K.default.createElement(P.BabyGrowthGender,{onChange:e,value:t,siteType:s})}),"marryBaby"===s?K.default.createElement(K.default.Fragment,null,K.default.createElement(A.Controller,{control:p,name:"birthday",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>K.default.createElement(qa,null,K.default.createElement(fa,{label:d("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(l),CustomInput:K.default.createElement(Ue,{onChange:e,placeholder:"dd/mm/yyyy",pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:t=>K.default.createElement(w.Input,Object.assign({onChange:e,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md"},t,{value:l&&J.default(l).format(a.DUE_DATE_FORMAT)}))}),actionIcon:K.default.createElement(t.Icon.CalendarMB,{size:32})}))}),K.default.createElement(Ya,null,K.default.createElement(A.Controller,{control:p,name:"height",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>K.default.createElement(qa,null,K.default.createElement(fa,{label:`${d("babyGrowth.height")} ${d("babyGrowth.cm")}`,name:"height",size:"md",value:String(t),CustomInput:K.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()})}))}),K.default.createElement(A.Controller,{control:p,name:"weight",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>K.default.createElement(qa,null,K.default.createElement(fa,{label:`${d("babyGrowth.weight")} ${d("babyGrowth.kg")}`,name:"weight",size:"md",value:String(t),CustomInput:K.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()})}))})),K.default.createElement(Ya,null,K.default.createElement(A.Controller,{control:p,name:"head",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>K.default.createElement(qa,null,K.default.createElement(fa,{label:`${d("babyGrowth.headCircumference")} ${d("babyGrowth.cm")}`,name:"head",size:"md",value:String(t),CustomInput:K.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()})}))}),K.default.createElement(A.Controller,{control:p,name:"bmi",render:({field:{value:e}})=>K.default.createElement(qa,null,K.default.createElement(fa,{label:`${d("babyGrowth.input.bmi")} ${d("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(e),CustomInput:K.default.createElement(w.Input,{name:"bmi",size:"md",type:"number",value:String(e),isDisabled:!0,style:{color:"#9495A0"}})}))})),K.default.createElement(A.Controller,{control:p,name:"measurementDate",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>K.default.createElement(qa,null,K.default.createElement(fa,{label:d("babyGrowth.input.measurementDate"),name:"date",size:"md",value:Ca(l),CustomInput:K.default.createElement(Ue,{placeholder:l&&J.default(l).format(a.DUE_DATE_FORMAT),pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",onChange:e,disabledDays:{after:new Date},customInput:t=>K.default.createElement(w.Input,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:l&&J.default(l).format(a.DUE_DATE_FORMAT),onChange:e},t,{value:l&&J.default(l).format(a.DUE_DATE_FORMAT)}))}),actionIcon:K.default.createElement(t.Icon.CalendarMB,{size:32})}))}),K.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"))):K.default.createElement(K.default.Fragment,null,K.default.createElement(A.Controller,{control:p,name:"birthday",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>K.default.createElement(qa,null,K.default.createElement(Za,{size:"label1",htmlFor:"birthday"},K.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},d("babyGrowth.input.birthday"))),K.default.createElement(Ue,{onChange:e,placeholder:"dd/mm/yyyy",pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>K.default.createElement(w.Input,Object.assign({onChange:e,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md",actionIcon:K.default.createElement(t.Icon.Calendar,null)},i,{value:l&&J.default(l).format(a.DUE_DATE_FORMAT)}))}))}),K.default.createElement(Ya,null,K.default.createElement(A.Controller,{control:p,name:"height",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>K.default.createElement(qa,null,K.default.createElement(Za,{size:"label1",htmlFor:"height"},K.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.height")),K.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.cm"))),K.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()}))}),K.default.createElement(A.Controller,{control:p,name:"weight",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>K.default.createElement(qa,null,K.default.createElement(Za,{size:"label1",htmlFor:"weight"},K.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.weight")),K.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.kg"))),K.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()}))})),K.default.createElement(Ya,null,K.default.createElement(A.Controller,{control:p,name:"head",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>K.default.createElement(qa,null,K.default.createElement(Za,{size:"label1",htmlFor:"head"},K.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.headCircumference")),K.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.cm"))),K.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()}))}),K.default.createElement(A.Controller,{control:p,name:"bmi",render:({field:{value:e}})=>K.default.createElement(qa,null,K.default.createElement(Za,{size:"label1",htmlFor:"bmi"},K.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.input.bmi")),K.default.createElement(t.Text,{as:"span",size:"n1",color:c.theme.colors.gray400},d("babyGrowth.kg.m2"))),K.default.createElement(w.Input,{name:"bmi",size:"md",type:"number",value:String(e),isDisabled:!0}))})),K.default.createElement(A.Controller,{control:p,name:"measurementDate",render:({field:{onChange:e,value:l},fieldState:{error:n}})=>K.default.createElement(qa,null,K.default.createElement(Za,{size:"label1",htmlFor:"measurementDate"},K.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},d("babyGrowth.input.measurementDate"))),K.default.createElement(Ue,{placeholder:l&&J.default(l).format(a.DUE_DATE_FORMAT),pickedDate:l||new Date,displayDateFormat:"dd/MM/yyyy",onChange:e,disabledDays:{after:new Date},customInput:i=>K.default.createElement(w.Input,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:l&&J.default(l).format(a.DUE_DATE_FORMAT),onChange:e,actionIcon:K.default.createElement(t.Icon.Calendar,null)},i,{value:l&&J.default(l).format(a.DUE_DATE_FORMAT)}))}))}),K.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
- `;ee.default(ga)`
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 el=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 tl=ee.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
- `,al=ee.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
- `,ll=({value:a,options:l,className:n,direction:i="horizontal",onChange:r,isDisabled:o})=>{const[s,d]=e.useState(a);return K.default.createElement(tl,{className:n,"data-direction":i},l.map(((e,l)=>K.default.createElement(al,{"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))}},K.default.createElement("div",null,K.default.createElement("img",{src:(a||s)===e.value?e.imageActive:e.image,className:"gender-image",alt:"",loading:"lazy"}),e.label&&K.default.createElement(t.Text,{weight:"bold",className:"radio-group-item-heading",size:"label1"},e.label))))))},nl=ee.default(n.Button)`
2949
- margin: 0 auto 24px;
2950
- width: 100%;
2951
- ${l.MediaQueries.mbUp} {
2952
- max-width: 200px;
2953
- }
2954
- `;ee.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
- `,ee.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 il=ee.default.div``,rl=ee.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
- `,ol=ee.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
- `,sl=({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]),K.default.createElement(il,{style:n,className:l},K.default.createElement(w.Input,{className:"input-section due-date-input",label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("targetHeartRate.ageInput")),value:Ca(u),name:"date",size:"md",CustomInput:K.default.createElement(Ue,{customInput:e=>K.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:Ca(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),wa)});i&&i(t)})(e)},placeholder:"placeholder"}),errorMessage:p.age?"":o.age}))},dl=ee.default(n.Button)`
3101
- margin: 0 auto 24px;
3102
- ${l.MediaQueries.mbUp} {
3103
- max-width: 200px;
3104
- margin: 24px auto;
3105
- }
3106
- `;ee.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 cl=ee.default.div``,ul=ee.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
- `,ml=ee.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
- `,pl=({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}=$.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]),K.default.createElement(cl,{style:o,className:i},K.default.createElement(ul,{"data-is-side":h},K.default.createElement(Ce,{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)}}})})),K.default.createElement(ml,{"data-is-side":h},K.default.createElement(ul,null,K.default.createElement(n.Input.Number,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},f("bmi.ageInput")," ",K.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})),K.default.createElement(ul,null,K.default.createElement(n.Input.Number,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},f("bmi.heightInput")," ",K.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})),K.default.createElement(ul,null,K.default.createElement(n.Input.Number,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},f("bmi.weightInput")," ",K.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}))),K.default.createElement("div",{style:{display:"flex"}},K.default.createElement(dl,{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"))))},gl=({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 K.default.createElement(K.default.Fragment,null,K.default.createElement(ya,{className:"input-form input-section","data-is-side":!0},"marryBaby"===s?K.default.createElement(fa,{label:d("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:Ca(u),CustomInput:K.default.createElement(Ue,{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=>K.default.createElement(w.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:u&&J.default(u).format(a.DUE_DATE_FORMAT)}))}),actionIcon:K.default.createElement(t.Icon.CalendarMB,{size:32})}):K.default.createElement(w.Input,{label:K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.lastPeriod.lastPeriodLabel")),value:Ca(u),size:"md",name:"date",className:"due-date-input",CustomInput:K.default.createElement(Ue,{customInput:e=>K.default.createElement("input",Object.assign({},e,{type:"date",className:"due-date-input",value:Ca(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"})})),K.default.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===s?"marryBaby":"","data-is-side":o},"marryBaby"===s?K.default.createElement(S.MarryBabyText,{type:"bodytext-3",color:c.theme.mbColors.midGray},d("ovulationPage.cycleLength")):K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959"},d("ovulationPage.cycleLength")+" ",K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},d("ovulationPage.dayUnit"))),K.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===s&&K.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:c.theme.colors.gray600},p),K.default.createElement(D.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}))),K.default.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===s?"marryBaby":"","data-is-side":o},"marryBaby"===s?K.default.createElement(S.MarryBabyText,{type:"bodytext-3",color:c.theme.mbColors.midGray},d("ovulationPage.periodDuration")):K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959"},d("ovulationPage.periodDuration")+" ",K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},d("ovulationPage.dayUnit"))),K.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===s&&K.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:c.theme.colors.gray600},h),K.default.createElement(D.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}))),K.default.createElement("div",{style:{width:"100%",display:"flex"}},K.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 hl;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(hl||(hl={}));const fl=({locale:a,onSubmitOvulation:l,isSide:n,siteType:i})=>{const{t:o}=r.useTranslations(),[s,d]=e.useState(hl.trackPeriod),c=[{label:o("ovulationPage.trackPeriod"),value:hl.trackPeriod},{label:o("ovulationPage.conceive"),value:hl.conceive},{label:o("ovulationPage.avoidPregnancy"),value:hl.avoidPregnancy}];return K.default.createElement(Ma,null,K.default.createElement(ba,{className:"input-form input-section","data-is-side":!0},"marryBaby"===i?K.default.createElement(ha,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:c,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[s],onChange:e=>{d(e.value)}}):K.default.createElement(K.default.Fragment,null,K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},o("ovulationPage.objectives")),K.default.createElement(va,{"data-is-side":n},K.default.createElement(N.Dropdown,{options:c,placeholder:o("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[s],onChange:e=>{d(e.value)}})))),K.default.createElement(gl,{siteType:i,locale:a,onSubmit:({startDate:e,cycle:t,periodLength:a})=>{l&&l({method:s,periodDateStart:e,cycle:t,periodLength:a})},isSide:n}))},bl=({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?K.default.createElement(K.default.Fragment,null,K.default.createElement("div",{className:"input-form-pwg input-section"},K.default.createElement(fa,{label:o("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:K.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})})),K.default.createElement("div",{className:"input-form-pwg input-section"},K.default.createElement(fa,{label:o("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:K.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})})),K.default.createElement("div",{className:"input-form-pwg input-section"},K.default.createElement(fa,{label:o("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:K.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})}))):K.default.createElement(K.default.Fragment,null,K.default.createElement("div",{className:"input-form-pwg"},K.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.height"),className:"input-section",label:K.default.createElement("span",{style:{color:c.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},o("pregnancyWeightGain.heightInput")," ",K.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})),K.default.createElement("div",{className:"input-form-pwg"},K.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.weight"),className:"input-section",label:K.default.createElement("span",{style:{color:c.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:p,className:"label-text"},o("pregnancyWeightGain.weightBeforeInput")," ",K.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})),K.default.createElement("div",{className:"input-form-pwg"},K.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.weight"),className:"input-section",label:K.default.createElement("span",{style:{color:c.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:u},className:"label-text"},o("pregnancyWeightGain.weightInput")," ",K.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})))},vl=ee.default.div`
3217
- flex: 1;
3218
- `,yl=ee.default.div`
3219
- padding: 0 10px;
3220
- `,xl=ee.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
- `,El=ee.default.div`
3236
- display: grid;
3237
- grid-template-columns: repeat(7, 1fr);
3238
- row-gap: 2px;
3239
- `,wl=ee.default(El)`
3240
- margin-bottom: 8px;
3241
- `;ee.default.div`
3242
- height: 40px;
3243
- width: 40px;
3244
- display: flex;
3245
- align-items: center;
3246
- justify-content: center;
3247
- `;const Cl=ee.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
- `,kl=ee.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
- `,Bl=ee.default.div`
3267
- margin: 0 auto;
3268
- `,Tl=ee.default.div`
3269
- position: relative;
3270
- `,Dl=ee.default(El)``,Sl=ee.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
- `,Nl=ee.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 Ml={"en-PH":ne.default,"vi-VN":re.default,"zh-TW":oe.default,"id-ID":ie.default};function Al(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 K.default.createElement(K.default.Fragment,null,K.default.createElement($l,Object.assign({},m,{date:d})),!r&&K.default.createElement(kl,null),!r&&K.default.createElement($l,Object.assign({},m,{date:u})))}function $l({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=Ml[h])&&void 0!==e?e:Ml["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 K.default.createElement(Sl,{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)),K.default.createElement(Sl,{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))))}},K.default.createElement(Nl,{onClick:()=>{}},K.default.createElement("p",null,n)))}return e.useEffect((()=>{a.from&&a.to&&n(a)}),[a]),K.default.createElement(vl,{className:"calendar-wrapper"},K.default.createElement(xl,null,K.default.createElement(E.Button,{onClick:i,size:"md",color:"ghost",icon:K.default.createElement("img",{src:d.CommonGAssets.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),K.default.createElement("div",{className:"calendar-month"},b,K.default.createElement("strong",null,k.format(t,"yyyy"))),K.default.createElement(E.Button,{onClick:o,size:"md",color:"ghost",icon:K.default.createElement("img",{src:d.CommonGAssets.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),K.default.createElement(yl,null,K.default.createElement("div",null,K.default.createElement(wl,null,v.map(((e,t)=>K.default.createElement(Cl,{key:`${e}-${t}`},e))))),K.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 K.default.createElement(Tl,{key:`month-${l}`,"data-month-index":l,"data-has-range":Boolean(a.from&&a.to)},K.default.createElement(Bl,null,K.default.createElement(Dl,null,i.map(y))))}())))}const zl=ee.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
- `,Pl=ee.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 Ll="WUqzfRb",Il="MnVGtSY",_l="NclbhXQ";const Ol=({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?K.default.createElement(N.Dropdown,{options:o,placeholder:"...",id:"",placeholderIcon:null,onChange:l,className:"collapsed-breadcrumb"}):K.default.createElement("div",{className:_l,title:"string"!=typeof n?i:n,"data-last":a},e&&K.default.createElement(e,{"data-event-category":s,"data-event-action":d,"data-event-label":c,href:i||"#"},n))},jl=ee.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
- `,Fl=()=>K.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},K.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"}),K.default.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),Rl=ee.default(P.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
- `,Hl=()=>K.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"copy"},K.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"})),Gl=ee.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
- `,Ul=ee.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
- `,Wl=ee.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
- `,Vl=ee.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
- `,Ql={},ql=e=>{if(Ql[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([Ql[e]]),delete Ql[e]}))}},Zl=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],Yl=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 D=h||(k===g.LOCALE.Vietnam&&i.some((e=>Zl.includes(e)))?30:void 0),{t:S}=r.useTranslations(),N=e.useRef(null),M=e.useRef(null),A=e.useRef(D);A.current=D;const[$,z]=e.useState(!1),P=()=>{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(){Ql[n]&&e.pubads().refresh([Ql[n]])}))}),1e3*A.current))};if(e.useEffect((()=>()=>{ql(n),M.current&&clearInterval(M.current)}),[]),e.useEffect((()=>{P()}),[D]),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");ql(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)}Ql[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:P})}),[c]),$)return null;const L=K.default.createElement("div",{style:{position:"relative",width:"fit-content",height:"fit-content",overflow:"hidden",maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},K.default.createElement("div",{ref:T,id:n}),x&&K.default.createElement(Vl,{onClick:()=>{null==E||E(),z(!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 K.default.createElement(m.Box,Object.assign({},C,{className:t}),K.default.createElement(Ul,{ref:N,className:t,style:b,"data-no-wrapper":!!y,"data-header-bottom":!!w},y?L:K.default.createElement(K.default.Fragment,null,K.default.createElement(Wl,{"data-header-bottom":!!w},K.default.createElement("img",{src:B?d.CommonGAssets.getAssetPath("adsIcon-mb.svg"):d.CommonGAssets.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),K.default.createElement("span",null,S("adBanner.title"))),K.default.createElement("div",{style:{minWidth:I||"100%",minHeight:_||"100%",position:"relative"}},L))))})),Kl=e.memo(Yl,((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),Xl=[{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 Jl;!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"}(Jl||(Jl={}));const en={DUE_DATE:Jl.DUE_DATE,BMI:Jl.BMI,BMR:Jl.BMR,OVULATION:Jl.OVULATION,IFRAME:Jl.IFRAME,PWG:Jl.PWG,THR:Jl.THR,BABY_VACCINE:Jl.BABY_VACCINE,BABY_GROWTH:Jl.BABY_GROWTH,BABY_POOP:Jl.BABY_POOP},tn={[en.DUE_DATE]:d.CommonGAssets.getAssetPath("health-tools/due-date-icon.svg")};var an,ln,nn,rn;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(an||(an={})),function(e){e.Option="option"}(ln||(ln={})),function(e){e.Button="button",e.Checkbox="checkbox"}(nn||(nn={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(rn||(rn={}));const on={pregnancy:an.Pregnant,parenting:an.Parenting},sn={[an.Pregnant]:"pregnant",[an.Parenting]:"parent"},dn=e=>({[en.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:en.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[en.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:en.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[en.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:en.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"}}),cn=e.createContext({}),un=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(cn);return K.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),K.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"}))},mn="api/v1/categories?site={website_url}",pn="api/v1/subscription?site={website_url}",gn="api/v1/categories?site={website_url}";var hn=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 fn=({heading:l,description:n,thumbnail:i={desktop:"",mobile:""},hideDescOnMobile:r,children:o})=>{const{isMobile:s,minHeight:d}=e.useContext(cn);return K.default.createElement(m.Box,{sx:()=>({borderRadius:m.rem(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},K.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)}`}})},K.default.createElement(m.Stack,{spacing:m.rem(16)},K.default.createElement(m.Stack,{spacing:m.rem(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},l&&K.default.createElement(a.Heading,{tag:"h4"},l),!(r&&s)&&n&&K.default.createElement(t.Text,{size:"p4"},n)),K.default.createElement(m.Box,null,o))))},bn=l=>{const{styleType:i=nn.Button,items:o=[],buttonProps:d,styles:c,submitBtnTracking:p}=l,{classes:g}=hn(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(cn),k=e.useMemo((()=>x?o:o.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean)),[o]),{getHealthToolLink:B}=$.useHealthToolsCache(f),T=W.useForm({initialValues:{bannerOptions:[]}}),D=e=>u.__awaiter(void 0,void 0,void 0,(function*(){return yield a.callApiWithAuth(a.getApiPath(a.PATHS.HEALTH_TOOL.CREATE,{_locale:f,type:sn[b]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:v,source:E}})})),S=e.useCallback((()=>K.default.createElement(m.Flex,{gap:m.rem(8),className:g.wrapper},k.map(((e,t)=>K.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},K.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),D(e.value),y(e.value))}}),e.label)))))),[k,T]),N=e.useCallback((()=>K.default.createElement(m.Flex,null,K.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)}})},K.default.createElement(n.Checkbox.Group,Object.assign({},T.getInputProps("bannerOptions",{type:"checkbox"})),K.default.createElement(m.Flex,{gap:m.rem(16)},k.map(((e,t)=>K.default.createElement(n.Checkbox,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}}))))),K.default.createElement(n.Button,Object.assign({size:"sm"},p,d,{disabled:0===T.getInputProps("bannerOptions").value.length,leftIcon:w?K.default.createElement(t.Icon.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=T.getInputProps("bannerOptions").value;D(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 K.default.createElement(fn,Object.assign({},l),i===nn.Button?S():i===nn.Checkbox?N():null)},vn=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(cn),{getHealthToolLink:w,allTools:C}=$.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 K.default.createElement("a",{href:e},K.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?K.default.createElement(fn,Object.assign({},Object.assign(Object.assign({},l),{thumbnail:l.thumbnail})),B):K.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)}`}})},K.default.createElement(m.Stack,{spacing:m.rem(12)},K.default.createElement(m.Stack,{spacing:m.rem(4)},u&&K.default.createElement(a.Heading,{tag:"h4"},u),!(E&&v)&&p&&K.default.createElement(t.Text,{size:"p4"},p)),K.default.createElement(m.Flex,{gap:m.rem(8),sx:{button:{minWidth:m.rem(120)}}},B)),K.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)}}})},K.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)||tn[f]||"",loading:"lazy"})))},yn=()=>{var t,a,l;const{t:n}=r.useTranslations(),{state:i,Outside:o}=e.useContext(cn);return(null==i?void 0:i.action)===rn.ShowTool?K.default.createElement(o,null,dn(n)[null===(t=null==i?void 0:i.props)||void 0===t?void 0:t.value]?K.default.createElement(vn,Object.assign({},dn(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)===rn.ShowOptionBanner?K.default.createElement(o,null,K.default.createElement(bn,Object.assign({},null==i?void 0:i.props))):null},xn=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 K.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?K.default.createElement(m.Box,{sx:{position:"relative",height:"100%"},onTouchStart:()=>E(!0)},K.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"}},K.default.createElement(m.Box,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:x?0:m.rem(12),borderTopRightRadius:x?0:m.rem(12)}},K.default.createElement(m.Box,{sx:{height:"calc(100% - 74px)",background:`url(${o})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},K.default.createElement(m.UnstyledButton,Object.assign({leftIcon:K.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()})),K.default.createElement(m.AspectRatio,{ratio:(null==c?void 0:c.width)/(null==c?void 0:c.height),w:"100%"}),K.default.createElement(m.Box,{sx:{padding:`${m.rem(28)} ${m.rem(16)} ${m.rem(16)}`,background:"white"}},i))))):K.default.createElement(m.AspectRatio,{className:"desktop-template",ratio:s.width/s.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},K.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"}},K.default.createElement("img",{alt:"",src:r,loading:"lazy",style:{borderTopLeftRadius:m.rem(8),borderBottomLeftRadius:m.rem(8),height:"100%",display:"block"}}),K.default.createElement(m.Box,{sx:{position:"relative",height:"100%",width:(s.width-p.width)/s.width*100+"%"}},K.default.createElement(n.Button,Object.assign({unstyled:!0,leftIcon:K.default.createElement(t.Icon.Close,null)},g,{onClick:()=>null==h?void 0:h.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),K.default.createElement(m.Box,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${m.rem(40)} ${m.rem(24)} 0`}},i)))))},En="user/subscription",wn=e.createContext({}),Cn=e=>{var{value:t,name:a}=e,l=u.__rest(e,["value","name"]);return K.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)},kn=({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=de.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 K.default.createElement(m.Stack,{spacing:12},l.map(((e,a)=>K.default.createElement(m.Stack,{key:String(a),spacing:12},e.label&&K.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},d),e.label),u?K.default.createElement(m.ScrollArea,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},K.default.createElement(m.Box,{w:800},K.default.createElement(m.Chip.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},s,{onChange:y}),K.default.createElement(m.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>K.default.createElement(Cn,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:i},e.tracking)))))))):K.default.createElement(m.Chip.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},s,{onChange:y}),K.default.createElement(m.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>t.catId?K.default.createElement(Cn,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:i},e.tracking)):K.default.isValidElement(t.component)?t.component:null))))))))},Bn=t=>{var{heading:l,children:n,stickyActions:i}=t,r=u.__rest(t,["heading","children","stickyActions"]);const{isMobile:o}=e.useContext(wn),s=K.default.createElement(m.Stack,{spacing:m.rem(24),sx:{height:"100%"}},K.default.createElement(a.Heading,{tag:"h4",style:{textAlign:"center"}},l),K.default.createElement(m.Box,null,n));return K.default.createElement(m.Box,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},o?s:K.default.createElement(m.ScrollArea,Object.assign({className:"layout-body",h:i?"calc(100% - 90px)":"100%"},r),s),i&&K.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))},Tn=()=>{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(wn),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,D]=e.useState([]),[S,N]=e.useState([]);e.useEffect((()=>{u.__awaiter(void 0,void 0,void 0,(function*(){var e;try{const t=yield a.callApiWithAuth(a.getPremiumApiPath(gn,{_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)));D(g),N(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((()=>K.default.createElement(n.Button,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:c,leftIcon:K.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"}})},K.default.createElement(t.Text,{size:p?"p3":"p4"},l("home.seeMore")))),[B]);return e.useEffect((()=>{B.setFieldValue("fitnessTopics",x.map((e=>e.catId)))}),[x]),K.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)}))},K.default.createElement(Bn,{heading:l("healthToolPNModal.heading"),stickyActions:K.default.createElement(K.default.Fragment,null,K.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")))},K.default.createElement(m.Stack,{spacing:m.rem(16)},K.default.createElement(n.Input,Object.assign({label:l("newsletter.welcome.description")},B.getInputProps("name"))),K.default.createElement(kn,{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}))))},Dn=e.forwardRef((function(e,a){var{label:l}=e,n=u.__rest(e,["label"]);return K.default.createElement("div",Object.assign({ref:a},n),K.default.createElement(m.Group,{noWrap:!0},K.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},K.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"})),K.default.createElement(t.Text,{size:"p3"},l)))})),Sn=e.forwardRef((function(e,a){var{label:l}=e,n=u.__rest(e,["label"]);return K.default.createElement("div",Object.assign({ref:a},n),K.default.createElement(t.Text,{size:"p3"},l))})),Nn=({history:e,onDelete:a})=>K.default.createElement(m.Flex,{wrap:"wrap",gap:8},ce.default(e,"catId").map((e=>K.default.createElement(m.Badge,{key:e.catId,rightSection:K.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==a?void 0:a(e)},K.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"}}},K.default.createElement(t.Text,{size:"p4"},e.localName))))),Mn=({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?K.default.createElement(m.Stack,{spacing:12,px:16,mx:-16},K.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),g("pnTopicSection.recentView")),K.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},K.default.createElement(m.Flex,{gap:8,wrap:"wrap"},l.map(((e,t)=>K.default.createElement(Cn,{key:t,value:e.catId,name:e.localName,isBlock:i})))))):null},An=e=>{var{topic:a,active:l,onClick:i}=e,r=u.__rest(e,["topic","active","onClick"]);return K.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&&K.default.createElement(m.Box,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},K.default.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},K.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"}),K.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"}))),K.default.createElement(m.Box,{sx:{borderRadius:"8px"}},K.default.createElement(n.AspectRatio,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},K.default.createElement(m.Box,null,K.default.createElement("img",{src:a.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),K.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||""))},$n=({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 K.default.createElement(m.Stack,{spacing:10},K.default.createElement(m.Flex,{justify:"space-between",align:"center",w:"100%"},K.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},o),c("pnTopicSection.trending"))),K.default.createElement(m.Box,null,K.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}}},K.default.createElement(m.Box,{w:{base:112*a.length+8*(a.length-1)+10}},K.default.createElement(m.Flex,{gap:8},a.map(((e,t)=>K.default.createElement(An,{key:t,topic:e,onClick:g,active:u.some((t=>t.catId===e.catId)),w:{base:112}}))))))))},zn=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,D]=e.useState([]),[S,N]=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(mn,{_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=ce.default([...n,...i],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(A(r||[]),N((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"})));D(e),C(t)}}))}),[i]);const $=e.useMemo((()=>ce.default([...x,...w,...T,...k],"catId")),[x,w,T,k]),[z,P]=e.useState(!1);e.useEffect((()=>{$.length>=o?P(!0):P(!1),null==c||c($)}),[$]);return K.default.createElement(m.Stack,Object.assign({spacing:m.rem(16)},p),K.default.createElement(m.Stack,{spacing:m.rem(8)},K.default.createElement(t.Text,{size:"p3"},b("pnTopicSection.maxSelectError.detail",{max:o,maxTopic:$.length})),K.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:K.default.createElement(t.Text,{size:"s4",color:"gray.6"},b("pnTopicSection.notFound")),itemComponent:""===h?Dn:Sn,size:"lg",placeholder:b("pnTopicSection.plsEnterFavTopics"),data:M,onSearchChange:f,searchValue:h,icon:K.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},K.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:K.default.createElement(K.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:D,default:E};let l="default";if(z)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:[]}),$&&$.length>0&&K.default.createElement(Nn,{history:$,onDelete:e=>{const t={trending:C,recently:B,interested:D,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}))}})),K.default.createElement(m.Box,{sx:e=>({position:"relative",height:m.rem(175),[e.fn.largerThan("sm")]:{height:m.rem(190)}})},K.default.createElement(m.Box,{sx:{position:"absolute",top:0,right:0,left:0}},K.default.createElement($n,{topics:((null==S?void 0:S.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:w,onTopicChange:C,isBlock:z,labelProps:d}))),K.default.createElement(Mn,{topics:((null==S?void 0:S.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:k,onTopicChange:B,isBlock:z,labelProps:d}),K.default.createElement(kn,{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:D,isBlock:z}))},Pn=()=>{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(wn);return K.default.createElement(Bn,{heading:t("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:m.rem(25)}},stickyActions:K.default.createElement(K.default.Fragment,null,K.default.createElement(n.Button,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:g,onClick:i},t("healthToolPNModal.back")),K.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")))},K.default.createElement(zn,{isLoggedIn:h,maxSelect:u,values:o.fitnessTopics,onChange:p,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Ln=()=>{const{t:l}=r.useTranslations(),{close:i,selectCategory:o,onRegisterSuccess:s,currentUrl:d,finishLabelOnResult:c,disclaimerText:u}=e.useContext(wn);return e.useEffect((()=>()=>{setTimeout((()=>{null==s||s()}),400)}),[]),K.default.createElement(Bn,{heading:l("healthToolPNModal.heading"),stickyActions:K.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"))},K.default.createElement(m.Stack,null,K.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)})},K.default.createElement(m.Box,null,K.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},K.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"}),K.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"}))),K.default.createElement(t.Text,{size:"p3"},u||l("pnModal.disclaimer"))),K.default.createElement(a.Heading,{tag:"h5"},l("healthToolPNModal.yourPre")),o.length>0&&K.default.createElement(kn,{topicsGroup:[{label:"",topics:o}],selectedTopics:o,readonly:!0})))},In=({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([]),[D,S]=e.useState(0),[N,M]=e.useState({name:"",fitnessTopics:[]}),[A,$]=e.useState(!1),z=()=>S(2),P=e.useCallback((e=>u.__awaiter(void 0,void 0,void 0,(function*(){try{$(!0),yield a.callApiWithAuth(a.getPremiumApiPath(pn,{website_url:a.getWebsiteUrlApi(y)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:se.default.get(s.GA_TOKEN_COOKIE),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},i.userInfo),{name:e||N.name,type_subscription:1}),domain:s.domainLocales[y||g.LOCALE.Vietnam],category:B,perferred:i.preferredTopics.map((({id:e})=>({id:e})))}}),$(!1),yield a.callApiWithAuth(a.getSsoApiPath(En),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),z()}catch(e){console.log({err:e}),$(!1),x({title:v("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[N,B]);return e.useEffect((()=>{[E,w].forEach((e=>{(new Image).src=e}))}),[]),K.default.createElement(wn.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:z,categoryLibs:C,setCategoryLibs:k,selectCategory:B,setSelectCategory:T,formValues:N,setFormValues:M,maxSelectCategory:5,submitLoading:A,onSubmit:P,onRegisterSuccess:f,finishLabelOnResult:h,disclaimerText:b}},K.default.createElement(xn,{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}},K.default.createElement(m.Stepper,{active:D,onStepClick:S,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},K.default.createElement(m.Stepper.Step,null,K.default.createElement(Tn,null)),K.default.createElement(m.Stepper.Step,null,K.default.createElement(Pn,null)),K.default.createElement(m.Stepper.Step,null,K.default.createElement(Ln,null)))))},_n=()=>{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(cn),[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(mn,{_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)!==rn.Hide?K.default.createElement(K.default.Fragment,null,K.default.createElement(yn,Object.assign({},m.props)),K.default.createElement(In,{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:rn.Hide})}),400),(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&c({action:rn.Hide})},onRegisterSuccess:()=>E(!1)})):null};exports.AdBlock=Kl,exports.Alert=({style:e,onClose:a,text:l,type:n,contentIcon:i,closeIcon:r,className:o,description:s})=>K.default.createElement("div",{className:`${ue} ${o||""}`,style:e,"data-alert-type":n},K.default.createElement("div",{className:me},K.default.createElement("div",{className:"icon-title"},i,K.default.createElement(t.Text,{weight:"bold",size:"label1"},l)),K.default.createElement(t.Text,{weight:"regular",size:"p3"},s)),K.default.createElement("div",{className:pe,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:D=!0,onBookmark:S,onClickCategoryName:N,section:M="normal",size:A="md",specialty:$,style:z,styleBanner:P,styleLabel:L,styleTitle:I,text:_,title:O,type:j="author",uploadTime:F,articleLinkTarget:R,isPremium:H})=>{const G=e=>{e.stopPropagation(),null==S||S()},U="lg"===A&&"expert"===j?"h4":"lg"===A&&"home"===M?D?"h4":"h3":"lg"===A?"h4":"h5",W="lg"===A?"p3":"p4",V=D||"home"!==M||"lg"!==A||"author"!==j?"c2":"c1";return K.default.createElement("article",{className:`${De} ${c||""}`,"data-size":A,style:z,"data-direction":C,"data-is-expert":"expert"===j||void 0},K.default.createElement("div",{className:"banner",style:P},K.default.createElement("a",{className:Te,"data-event-category":h,"data-event-action":u,"data-event-label":y,href:e||"#",target:R},r),H&&K.default.createElement("img",{loading:"lazy",className:"premium",src:d.CommonGAssets.getAssetPath("premium-crown.svg")}),k&&K.default.createElement(Ae,null)),K.default.createElement("div",{className:"content"},K.default.createElement("div",{className:"inner-content"},K.default.createElement(t.Text,{style:L,className:"label",size:V,weight:"caption"},K.default.createElement("a",{className:Te,"data-event-category":b,"data-event-action":p,"data-event-label":E,href:o||"#",onClick:N},s),T&&K.default.createElement("a",{className:"bookmark",onClick:G},B?K.default.createElement($e,{dataEventCategoryForBookmark:f,dataEventActionForBookmark:m,dataEventLabelForBookmark:x}):K.default.createElement(ze,{dataEventCategoryForBookmark:f,dataEventActionForBookmark:m,dataEventLabelForBookmark:x}))),K.default.createElement(a.Heading,{tag:U,style:I,className:"title",as:"lg"===A?"h2":"h3"},K.default.createElement("a",{className:Te,"data-event-category":v,"data-event-action":g,"data-event-label":w,href:e||"#",target:R},O)),_&&K.default.createElement("a",{href:e||"#",target:R},K.default.createElement(t.Text,{size:W,className:"text"},_))),K.default.createElement("div",{className:"footer"},"author"===j?K.default.createElement(Ne,{size:A,avatarImg:i,authorName:n,authorLink:l,uploadTime:F,handleClick:G,isBookmarked:B,dataEventCategoryForBookmark:f,dataEventActionForBookmark:m,dataEventLabelForBookmark:x}):K.default.createElement(Me,{size:A,isMobile:D,avatarImg:i,specialty:$,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?K.default.createElement(Pe,Object.assign({},a)):K.default.createElement(Oe,Object.assign({},a))},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 K.default.createElement(_a,{"data-is-side":l},K.default.createElement(ga,{isSide:l,icon:K.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}),K.default.createElement(M.Container,null,K.default.createElement(Ia,{as:"div","data-is-side":l},o&&K.default.createElement(Wa,{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 K.default.createElement(_a,{"data-is-side":e},K.default.createElement(ga,{isSide:e,icon:K.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}),K.default.createElement(M.Container,null,K.default.createElement(Ia,{onSubmit:e=>e.preventDefault(),"data-is-side":e},K.default.createElement(Sa,null,K.default.createElement(pl,{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 K.default.createElement(_a,{"babyGrowthContent-is-mobile":e,"data-site":r},K.default.createElement(ga,{siteType:r,bannerUrl:d.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:d.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===r&&c.theme.mbColors.mint,isEmbeded:!0,icon:K.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}),K.default.createElement(Xa,{"data-theme":r},K.default.createElement(Ja,{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}=el({isMarryBaby:g,isSide:o,direction:s},{name:"BabyPoopEmbed"}),{reviewedBy:f,reviewedDate:b}=e||{};return K.default.createElement("div",{className:h.root},K.default.createElement("div",{className:h.inner},K.default.createElement(a.Heading,{tag:"h3",as:"h2",color:!g&&"#284A75"},e.title),K.default.createElement("div",{className:h.content,"data-is-side":o},K.default.createElement(t.Text,{size:"p3",className:"description"},e.description),!!f&&K.default.createElement("div",{className:h.reviewText},K.default.createElement("img",{src:d.CommonGAssets.getAssetPath("reviewerCheck.svg"),alt:"check",className:h.reviewTextIcon,loading:"lazy"}),K.default.createElement(t.Text,{size:"p4",color:c.theme.colors.gray600},p("categoryPage.info.reviewed")," ",K.default.createElement("a",{href:f.profile_url},f.display_name)," ",p("categoryPage.onDate",{date:b||""}))),K.default.createElement("div",{className:h.action},K.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"))))),K.default.createElement("div",{className:h.thumbnail},K.default.createElement("img",{src:g?d.CommonGAssets.getAssetPath("baby-poop.svg"):null==e?void 0:e.featuredImage,alt:e.title,loading:"lazy"})),u&&K.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})=>K.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},K.default.createElement("div",null,e&&K.default.createElement("span",null,e)," ",i&&K.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})=>K.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 K.default.createElement("div",{"data-size":l,className:`${Ll} ${t||""}`},o.map(((t,a)=>{const s=a+1===o.length;return K.default.createElement(e.Fragment,{key:a},K.default.createElement(Ol,{LinkComponent:n,page:t,isLast:s,onChangePage:i}),!s&&(t.separator||r||K.default.createElement("div",{className:Il,"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 K.default.createElement(je,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),K.default.createElement("div",{className:"banner"},l),K.default.createElement("div",{className:"content"},K.default.createElement(t.Text,{className:"category_name",size:"sm",weight:"bold"},(null==a?void 0:a.displayName)||n||"")))},exports.Checkbox=ye,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 K.default.createElement(Fe,{className:n,"data-type":i,"data-is-rectangle":o||void 0},l.map(((a,l)=>K.default.createElement(ye,{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})=>K.default.createElement(Gt,{className:e,"data-theme":r,"data-is-open":o,"data-default-position":s},K.default.createElement(Ut,{"data-has-content":!!n},n),K.default.createElement(Wt,{dangerouslySetInnerHTML:{__html:i}}),K.default.createElement(Vt,null,K.default.createElement(Qt,{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),K.default.createElement(qt,{href:t},l.policiesButton))),exports.DatePicker=Ue,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 K.default.createElement(zl,{className:[s,u&&"focused"].filter(Boolean).join(" "),ref:g},K.default.createElement("label",{htmlFor:l},K.default.createElement(a.PureInput,{size:t,value:b,name:l,actionIcon:K.default.createElement("img",{src:d.CommonGAssets.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>m(!0)})),u?K.default.createElement(Pl,{onMouseDown:e=>{e.stopPropagation()}},K.default.createElement(Al,{value:n,onChange:h,minDate:i,maxDate:r,close:p,autoClose:c})):null)},exports.DoctorInfo=dt,exports.DueDateCardEmbed=({isMobile:e,locale:t,onSubmitDueDate:a,dueDatePageInfo:l,expertUrl:n,isSide:i,siteType:o})=>{var s;const{t:u}=r.useTranslations();return K.default.createElement(_a,{"data-is-side":i,"data-site":o},K.default.createElement(ga,{isSide:i,siteType:o,bannerColor:"marryBaby"===o&&c.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:K.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}),K.default.createElement(Ia,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":i},K.default.createElement(za,{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&&K.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 K.default.createElement(a.StyledDropdown,{className:t,"data-dropdown-open":!!c,id:r,"data-has-icons":!0,style:d,onBlur:()=>u(!1),tabIndex:0},K.default.createElement(ge,null),K.default.createElement(a.StyledDropdownName,{onClick:m},o||K.default.createElement(he,null)," ",K.default.createElement("span",null,l&&l.value?l.label:s)),c&&K.default.createElement(a.StyledDropdownList,{onClick:m,"data-has-icons":!0},n.map((e=>K.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}},K.default.createElement(a.StyledIcon,null,e.icon||"download"===e.type?K.default.createElement(fe,null):K.default.createElement(be,null)),e.label)))),K.default.createElement(K.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:K.default.createElement(Gl,{key:n?"mobile":"desktop",ref:b,className:t,"data-visible":!p},a&&K.default.createElement(Kl,{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 K.default.createElement(Lt,{style:l,className:a,"data-floatmenu-open":m,"data-site-type":d,"data-animation-type":c},K.default.createElement(It,{className:"float-button-group__panel",style:Object.assign({zIndex:u},n),onClick:s?void 0:g}),K.default.createElement(_t,{className:"float-button-group___content",style:{zIndex:u}},K.default.createElement(Ot,null,t.map(((e,a)=>K.default.createElement(Ft,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===c&&{bottom:64*(t.length-1-a),transitionDelay:Pt/t.length*(m?t.length-1-a:a)+"ms"}),"slide"===c&&{bottom:64*(t.length-1-a),transitionDelay:Pt/t.length*(m?a:t.length-1-a)+"ms"}),key:a,onClick:()=>{e.onClick(),e.keepMenuOnClick||p(!1)}},K.default.createElement(Rt,{style:Object.assign({},"zoom"===c&&{transitionDelay:Pt/t.length*(m?t.length-1-a:a)+"ms"})},e.label),K.default.createElement(Ht,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===c||"slide"===c)&&{transitionDelay:Pt/t.length*(m?t.length-1-a:a)+"ms"})},e.icon))))),K.default.createElement(jt,{onClick:m?g:()=>{p(!0),r&&r()}})))},exports.GenderOptionControl=Ce,exports.Grid=({className:e,columns:t,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:i,gap:r,children:o,justifyChildren:s,style:d,alignItems:c})=>K.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})=>K.default.createElement(We,{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 K.default.createElement("div",{className:`${ke} ${e}`},K.default.createElement(t.Icon.Spinner,{isMarryBaby:"marryBaby"===a}),!l&&n("loading"))},exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=sn,exports.MAPPING_CATEGORY_PREMIUM_TYPE=on,exports.MobileBottomNavigation=ta,exports.MobileBottomNavigationIcon=ea,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 K.default.createElement(_a,{"data-is-side":n,"data-site":i},K.default.createElement(ga,{isSide:n,bannerUrl:d.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:i,bannerColor:"marryBaby"===i&&c.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:K.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}),K.default.createElement(Ia,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":n},K.default.createElement(fl,{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}=$.useHealthToolsCache(l),B=e.useMemo((()=>k(a.HEALTH_TOOL_TYPE.PWG)),[k]);return K.default.createElement(_a,{"data-is-side":h,"data-site":f},K.default.createElement(ga,{siteType:f,bannerColor:"marryBaby"===f&&c.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:K.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}),K.default.createElement(M.Container,null,K.default.createElement(Ia,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":h},"marryBaby"!==f&&K.default.createElement(Da,{className:"hide-asking-mobile","data-is-side":h},K.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"block",color:c.theme.colors.gray600},className:"label"},v("pregnancyWeightGain.havingTwins")),K.default.createElement(Oa,{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"})),K.default.createElement(Ma,null,K.default.createElement(Aa,{className:"input-section input-form-pwg","data-is-side":h},"marryBaby"===f?K.default.createElement(ha,{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})}):K.default.createElement(K.default.Fragment,null,K.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"inline-block",marginBottom:"9px",color:c.theme.colors.gray600}},v("pregnancyWeightGain.weekInput")),K.default.createElement(N.Dropdown,{options:C,placeholder:String(E.label),id:"weight-gain-dropdown",size:"md",value:E,onChange:e=>w({label:e.label,value:e.value})}))),K.default.createElement(bl,{siteType:f,info:p,errorMessage:o,onChange:m})),"marryBaby"!==f&&K.default.createElement(Da,{className:"hide-asking-desk","data-is-side":h},K.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"block",color:c.theme.colors.gray600},className:"label"},v("pregnancyWeightGain.havingTwins")),K.default.createElement(Oa,{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&&K.default.createElement(ye,{name:"twins",label:v("pregnancyWeightGain.havingTwins"),checked:"twins"===y,siteType:"marryBaby",onChange:()=>{x("twins"===y?"notwins":"twins")},value:"twins"}),K.default.createElement(Na,{"data-is-side":h,"data-site":f},K.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]),K.default.createElement(a.StyledPagination,{className:t,style:s},K.default.createElement(a.StyledPageBlock,{className:"prev-page",onClick:()=>f(m-1),"data-last-page":1===m||void 0},g?K.default.createElement("a",{href:l.formatUrlWithPageParam(g,m,c),onClick:b},K.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},K.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):K.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},K.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),u.length>8?K.default.createElement(ve,{pagesAmount:n,activePage:m,handlePageChange:f,handleClick:b,href:g,queryPageName:c}):u.map((e=>K.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===m||void 0,onClick:()=>f(e)},g?K.default.createElement("a",{href:l.formatUrlWithPageParam(g,e,c),onClick:b},e):e))),K.default.createElement(a.StyledPageBlock,{className:"next-page",onClick:()=>f(m+1),"data-last-page":m===h+1||void 0},g?K.default.createElement("a",{href:l.formatUrlWithPageParam(g,m,c),onClick:b},K.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},K.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):K.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},K.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 K.default.createElement(qe,Object.assign({},a,{className:t}),K.default.createElement(Ze,null))},m=K.default.createElement(Ve,{className:r+" progress-bar"},K.default.createElement(c,null),K.default.createElement((({trackLength:e,activeStep:t,labelPrefix:l="Step",onChange:n})=>K.default.createElement(K.default.Fragment,null,Array.from({length:a},((e,t)=>t)).map(((i,r)=>K.default.createElement(Qe,{"data-is-active":r===t,"data-label":r,style:{left:r*e/(a-1)},onClick:()=>{n&&n(r)},key:r},r+1,K.default.createElement(Ye,{"data-step-passed":r<=t},l+" "+(r+1))))))),{trackLength:s,activeStep:l,labelPrefix:n,onChange:o})),p=K.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 5.5 9.5"},K.default.createElement("title",null,"chevron-right"),K.default.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),g=K.default.createElement(Ke,null,i&&Array.from({length:i.length},((e,t)=>t)).map(((e,t)=>{var a;return K.default.createElement(Xe,{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=K.default.createElement(Ve,{className:r+" progress-bar"},K.default.createElement((({detailSteps:e,activeStep:t,onChange:a})=>K.default.createElement(K.default.Fragment,null,Array.from({length:e.length},((e,t)=>t)).map(((l,n)=>K.default.createElement(Je,{key:n,style:{left:100/e.length*n+"%",width:100/e.length+"%"},onClick:()=>{a&&a(n)}},e[n].icon?K.default.createElement(tt,{onClick:()=>{a&&a(n)}},e[n].icon):K.default.createElement(et,{"data-is-active":n===t,"data-label":l,onClick:()=>{a&&a(n)},key:n},n+1),K.default.createElement(at,{"data-step-passed":n<t+1},e[n].text,K.default.createElement(lt,null,e[n].description)),n<e.length-1&&K.default.createElement(c,{"data-step-passed":n<t,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:i,onChange:o})),f=e.useCallback(te.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 K.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=nt,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 K.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?K.default.createElement(Ee,{key:t,onClick:()=>null==r?void 0:r(t+1),onMouseOver:a,onMouseLeave:l}):t+1===g+h?K.default.createElement(we,{key:t,onClick:()=>null==r?void 0:r(t+1),onMouseOver:a,onMouseLeave:l}):K.default.createElement(xe,{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=[];K.default.Children.map(s,((e,l)=>{l%(t*a)==0&&T.push([]),T[T.length-1].push(K.default.cloneElement(e))}));const D=e.useRef(),S=e.useRef(0),N=e=>{if(!D.current)return;const{clientWidth:t}=D.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;D.current.scrollTo({top:0,left:l,behavior:"smooth"}),S.current=e,B(e),v&&v(e)};e.useEffect((()=>{"number"==typeof y&&(e=>{if(!D.current)return;const{clientWidth:t}=D.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;D.current.scrollTo({top:0,left:l,behavior:"smooth"}),S.current=e,B(e)})(y)}),[y]);const M=e=>{if(!D.current)return;const{clientWidth:t}=D.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)),D.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),D.current.scrollTo({top:0,left:l,behavior:"smooth"}))},A=te.default((()=>{if("infinity"===i){if(!D.current)return;const{clientWidth:e,scrollLeft:t}=D.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=D.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,!D.current)return;const{clientWidth:e}=D.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;D.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)}}}),[]),K.default.createElement(pt,{className:d,"data-row":t,onScroll:A},m&&k>0&&K.default.createElement("div",{className:`${p} arrow-left`,onClick:()=>M("back"),"data-event-category":h,"data-event-action":f,"data-event-label":b},"Care"===w?K.default.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},K.default.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},K.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"}),K.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"}),K.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"})),K.default.createElement("defs",null,K.default.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},K.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),K.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"}),K.default.createElement("feOffset",{dx:"-2",dy:"2"}),K.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),K.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"}),K.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),K.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"}),K.default.createElement("feOffset",{dx:"-1",dy:"1"}),K.default.createElement("feGaussianBlur",{stdDeviation:"1"}),K.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"}),K.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),K.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):K.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},K.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"}),K.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"}),K.default.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),K.default.createElement("div",{ref:D,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 K.default.createElement("div",{key:l,className:"section",style:{marginLeft:"intertwined"===r&&0!==l?o.amount+""+("percentage"===o.unit?"%":"px"):"0px"}},1===t&&c&&K.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 K.default.createElement("div",{className:"items-progress",key:a},0===a&&0===l?K.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):K.default.createElement("div",{className:"line"}),K.default.createElement("div",{className:"icon-status"},K.default.createElement(gt,{status:null==r?void 0:r.status})),l===T.length-1&&a===e.length-1?K.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):K.default.createElement("div",{className:"line"}))}))),K.default.createElement("div",{className:"grid-layout","data-index":l,style:{gridTemplateColumns:`repeat(${a}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`}},e.map(((e,t)=>K.default.createElement(K.default.Fragment,{key:t},K.default.createElement("div",{className:"item-grid",key:t},e))))))}))),m&&k<T.length-1&&K.default.createElement("div",{className:`${g} arrow-right`,onClick:()=>M("forward"),"data-event-category":h,"data-event-action":f,"data-event-label":b}," ","Care"===w?K.default.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},K.default.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},K.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"}),K.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"}),K.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"})),K.default.createElement("defs",null,K.default.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},K.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),K.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"}),K.default.createElement("feOffset",{dx:"-2",dy:"2"}),K.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),K.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"}),K.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),K.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"}),K.default.createElement("feOffset",{dx:"-1",dy:"1"}),K.default.createElement("feGaussianBlur",{stdDeviation:"1"}),K.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"}),K.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),K.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):K.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},K.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"}),K.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"}),K.default.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l&&K.default.createElement("ul",{className:"bullet-nav"},T.map(((e,t)=>K.default.createElement("li",{key:t,className:"bullet-nav__item "},K.default.createElement("p",{onClick:()=>N(t),className:`bullet-nav__link scroll ${k==t?"active":null}`,"data-scheme":E}))))),n&&K.default.createElement("div",{className:"image-gallery-wrapper","data-test":T.length},T.slice(0,3).map(((e,t)=>K.default.createElement("div",{className:`image-block ${k==t?"active":null}`,key:t,onClick:()=>N(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:D="",SEOImage:S,seoType:N,SEOImageWidth:M,SEOImageHeight:A,customMetaData:$=[],isIndexable:z=!0,hasNoCanonical:P=!1}=t,L=z&&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("/")?"":"/",R=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=ae.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,K.default.createElement("meta",{key:"og:image",property:"og:image",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||S||e||""}),K.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}),K.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"}),K.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]),H=`https://${j}/images/${a}.png`;return K.default.createElement(i,null,K.default.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===r?K.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}):"km-KH"===a?K.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"th-TH"===a?K.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,100..900&display=swap",rel:"stylesheet"}):K.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}),K.default.createElement("link",{rel:"preconnect",href:I}),K.default.createElement("meta",{charSet:"UTF-8"}),K.default.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),K.default.createElement("meta",{name:"google",content:"notranslate"}),K.default.createElement("meta",{name:"robots",content:L}),K.default.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),$.map(((e,t)=>K.default.createElement("meta",Object.assign({key:t},e)))),K.default.createElement("meta",{name:"theme-color",content:"helloSites"===r?"#2c87f3":"#e85388"}),K.default.createElement("meta",{name:"page_type",content:"Home"}),K.default.createElement("meta",{name:"page_platform",content:"WEB"}),K.default.createElement("meta",{name:"page_language",content:O}),K.default.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!R&&K.default.createElement(K.default.Fragment,null,"helloSites"===r?K.default.createElement("title",null,d?T:T+" - "+(null===(m=s.LOCALE_SPECS[a])||void 0===m?void 0:m.SITE_NAME)):K.default.createElement("title",null,T),!P&&K.default.createElement("link",{rel:"canonical",href:`https://${j}${_}`}),K.default.createElement("meta",{name:"description",content:D||(null===(p=t.openGraph)||void 0===p?void 0:p.description)}),t.schemaData&&K.default.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),K.default.createElement("meta",{property:"og:locale",content:a}),K.default.createElement("meta",{property:"og:type",content:N||"website"}),K.default.createElement("meta",{property:"og:title",content:(null===(g=t.openGraph)||void 0===g?void 0:g.title)||T}),K.default.createElement("meta",{property:"og:description",content:(null===(h=t.openGraph)||void 0===h?void 0:h.description)||D}),K.default.createElement("meta",{property:"og:url",content:`https://${j}${_}`}),K.default.createElement("meta",{property:"og:site_name",content:`https://${j}`}),K.default.createElement("meta",{property:"og:image",content:(null===(f=t.openGraph)||void 0===f?void 0:f.image)||S||H||""}),K.default.createElement("meta",{property:"og:image:secure_url",content:(null===(b=t.openGraph)||void 0===b?void 0:b.image)||S||H}),K.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"}),K.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"}),K.default.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),K.default.createElement("meta",{name:"twitter:title",content:(null===(w=t.twitter)||void 0===w?void 0:w.title)||T}),K.default.createElement("meta",{name:"twitter:description",content:D}),K.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?K.default.createElement("link",{key:`favicon-${t}`,rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?K.default.createElement("meta",{key:t,name:e.name,content:e.content}):null)),Array.isArray(R)&&u?R.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):R,u&&K.default.createElement("link",{rel:"canonical",href:u}),!t.hasNoAmp&&"vi-VN"!==a&&K.default.createElement("link",{rel:"amphtml",href:`https://${j}${_}${F}?amp=1`}),c&&"undefined"!=typeof window?K.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=H.getSocialList(a||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),d=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return K.default.createElement(jl,null,K.default.createElement(t.Text,{size:"p3",color:c.theme.colors.gray800},o("shareContainer.title")),K.default.createElement("div",{className:"icon-group"},s.map(((e,t)=>K.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))),K.default.createElement(E.Button,{theme:i,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:K.default.createElement(Fl,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=H.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:K.default.createElement(Rl,Object.assign({title:g("share.title"),onClose:i,open:l,placement:"bottom"},p),K.default.createElement("div",{className:"share-container"},K.default.createElement("div",{className:"icon-container"},K.default.createElement(t.Text,{weight:"semiBold",size:"s3",color:c.theme.colors.gray600},g("share.title")),K.default.createElement("div",{className:"icon-group"},f.map(((e,t)=>K.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer"},e.icon))))),K.default.createElement("div",{className:"link-container"},K.default.createElement(t.Text,{weight:"semiBold",size:"s3",color:c.theme.colors.gray600},g("share.copyLink")),K.default.createElement("div",{className:"input-group"},K.default.createElement(w.Input,{name:"link",size:"md",value:d,isDisabled:!0}),K.default.createElement(E.Button,{size:"md",type:"button",color:"tertiary",icon:K.default.createElement(Hl,null),onClick:h})))))},exports.StatisticCard=({type:e,description:t,value:a,withIcon:l,isInACard:n,cardColor:i,className:r})=>K.default.createElement(ht,{className:r,"data-size":e,"data-is-in-card":"big"===e&&n,"data-card-color":i},K.default.createElement(bt,null,"small"===e&&K.default.createElement(ft,{"data-color":i}),t),K.default.createElement(vt,{"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,D]=e.useState(""),[S,N]=e.useState(!1),[M,A]=e.useState(!1),$=e.useMemo((()=>on[t]),[]),z=((e,t)=>({[an.Pregnant]:{action:rn.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:nn.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:rn.ShowTool,props:{value:en.DUE_DATE}},no:{action:rn.ShowPremiumModal}}},[an.Parenting]:{action:rn.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:nn.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:rn.ShowTool,props:{value:en.BABY_VACCINE}},teenager:{action:rn.ShowOptionBanner,props:{styleType:nn.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:rn.ShowPremiumModal},"teenager.girl":{action:rn.ShowTool,activeTool:s.RISK_SCREENER_NAME.HPV,props:{value:s.RISK_SCREENER_NAME.HPV}},"todders|teenager":{action:rn.ShowOptionBanner,props:{styleType:nn.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:en.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:rn.ShowOptionBanner,props:{styleType:nn.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:en.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(y,u)[$],P=null==z?void 0:z.submitHandler,L=v||m.Box,I=()=>c&&1!==(null==x?void 0:x.subscription)?K.default.createElement(un,null):null;return e.useEffect((()=>{E&&C({userInfo:x,preferredTopics:Xl,healthTopics:[]})}),[E]),K.default.createElement(cn.Provider,{value:{settings:z,submitHandler:P,type:t,surveyType:$,value:T,setValue:D,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(P).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=P[t];a.action===rn.ShowPremiumModal?c?(N(!0),B(Object.assign(Object.assign({},k),{actionParams:{hideBannerWhenClose:a.action===rn.ShowPremiumModal}}))):(B({action:rn.Hide}),null==f||f(e)):(B(a),null==f||f(e))}},showPNModal:S,setShowPNModal:N,source:b,Outside:L,isBack:M,setIsBack:A,minHeight:180,setShouldAcquisitionModalOpen:h}},void 0!==g?E?o&&z?(()=>{const e=P[(null==g?void 0:g.value)||""];return(null==e?void 0:e.action)===rn.ShowPremiumModal?I():K.default.createElement(_n,null)})():I():c?K.default.createElement(un,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:D}=i,S=null==i?void 0:i.type,N="checkbox"===S&&(null===(v=i.options)||void 0===v?void 0:v.length)&&(!w||0===w.length||k&&B===zt.RANGE&&(w.length<T||w.length>D)||k&&B===zt.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),$=()=>"textbox"!==S||A.current.reportValidity();return K.default.createElement(Dt,{className:a,style:n},K.default.createElement("div",{className:"survey-inner-wrapper"},l&&K.default.createElement("div",{className:"survey-header"},K.default.createElement(t.Text,{className:"survey-header-text",size:"c2"},l)),K.default.createElement("form",{ref:A,onSubmit:e=>e.preventDefault()},K.default.createElement($t,{question:i,description:b,onOptionsChange:e=>{C(e)},onTextOptionsChange:e=>{C(e)}})),d&&s&&K.default.createElement(E.Button,{className:"survey-contact-submit",size:"lg",isDisabled:c||N,onClick:()=>$()&&p&&p(w)},s),r&&K.default.createElement("div",{className:"term-policy-container"},r),"number"==typeof f&&K.default.createElement("div",{className:"survey-progress-wrapper"},K.default.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${M})`}})),(o||s)&&K.default.createElement("div",{"data-center":h,className:"survey-button-wrapper"},o&&K.default.createElement(E.Button,{className:"survey-prev-button",size:"lg",color:u?"primary":"secondary",isDisabled:u,icon:K.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},K.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&&K.default.createElement(E.Button,{onClick:()=>$()&&p&&p(w),className:"survey-next-button",size:"lg",isDisabled:c||N},s," ",g?void 0:K.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},K.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})=>K.default.createElement(Dt,{className:n,style:i},K.default.createElement("div",{className:"survey-inner-wrapper"},K.default.createElement(Nt,null,K.default.createElement("div",{className:"survey-thankyou-wrapper-inner"},K.default.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},K.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}),K.default.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),K.default.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),K.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"}),K.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"}),K.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"}),K.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"}),K.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"}),K.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"}),K.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"}),K.default.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),K.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&&K.default.createElement(a.Heading,{className:"survey-thankyou-title",tag:"h3"},e),l&&K.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}=$.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"),[N,A]=e.useState(60),[z,P]=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];P(t),A(60)}),[null==u?void 0:u.age]),K.default.createElement(_a,{"data-is-side":l},K.default.createElement(ga,{isSide:l,icon:K.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}),K.default.createElement(M.Container,null,K.default.createElement(Ia,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":l},K.default.createElement(ol,{"data-is-side":l},K.default.createElement(rl,null,K.default.createElement(Ce,{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)}}})}))),K.default.createElement(ol,null,K.default.createElement(sl,{info:u,locale:n,errorMessage:p,onChange:g})),K.default.createElement("div",{className:"slider-heart-rate"},K.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:c.theme.colors.gray600},y("targetHeartRate.heartRateInput")),K.default.createElement("div",{className:"slider-outer-wrapper"},K.default.createElement(D.Slider,{containerStyle:{flex:1},min:"male"===T?z.rangeMale:z.rangeFemale,max:200,step:1,value:N,withControl:!0,onChange:A}))),w&&K.default.createElement(rl,null,K.default.createElement($a,null,K.default.createElement(t.Text,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:c.theme.colors.gray600,marginBottom:"9px"}},y("targetHeartRate.selectActive")),K.default.createElement("div",{className:"card"},K.default.createElement(ll,{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&&K.default.createElement("div",{className:"note"},K.default.createElement("img",{style:{height:"16px",width:"16px"},src:d.CommonGAssets.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),K.default.createElement(t.Text,{size:"s4",color:"#595959"},null===(v=_[_.findIndex((e=>e.value==k))||0])||void 0===v?void 0:v.content)),!k&&K.default.createElement("span",{style:{color:"#e64728"}},p.intensity)))),K.default.createElement("div",{style:{display:"flex"}},K.default.createElement(nl,{size:"lg",onClick:()=>{h(T,k,[N])},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}=Tt(void 0,{name:"Tabs",styles:u}),[h,f]=e.useState(l||0);return e.useEffect((()=>{f(l)}),[l]),K.default.createElement("ul",{style:a,className:p(m.root,r),role:"tablist",id:c},n.map(((e,a)=>K.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},K.default.createElement("div",{className:m.itemInner},e.icon&&K.default.createElement("div",{className:m.icon},e.icon),K.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 K.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},K.default.createElement(i.Text,Object.assign({},m),t))},exports.Toggle=({className:e,id:t,onChange:l,checked:n,style:i,label:r})=>K.default.createElement(a.StyledToggle,{className:e,style:i},K.default.createElement("input",{type:"checkbox",id:t,onChange:l,checked:n}),K.default.createElement("label",{htmlFor:t},K.default.createElement(a.StyledToggleIcon,null),r&&K.default.createElement(a.StyledToggleLabel,null,r))),exports.ToolsBannerCard=ga,exports.index=mt,exports.index$1=Bt;