@hhgtech/hhg-components 1.28.45 → 1.28.46

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 (313) hide show
  1. package/README.md +5 -0
  2. package/build/animation-1e9aff6a.js +81 -0
  3. package/build/babyGrowth.js +24 -24
  4. package/build/cache.js +1 -1
  5. package/build/care.js +1 -1
  6. package/build/components.js +1 -1
  7. package/build/{constants-eed0df85.js → constants-28db3174.js} +1 -1
  8. package/build/{constants-715f497a.js → constants-627c575a.js} +2 -2
  9. package/build/constants.js +1 -1
  10. package/build/{core-053d2b2b.js → core-19b328be.js} +1 -1
  11. package/build/dataTransform-308ec1d0.js +1 -0
  12. package/build/ecom.js +1 -1
  13. package/build/esm/animation-03daa77e.js +81 -0
  14. package/build/esm/babyGrowth.js +38 -38
  15. package/build/esm/cache.js +1 -1
  16. package/build/esm/care.js +1 -1
  17. package/build/esm/components.js +1 -1
  18. package/build/esm/{constants-995212e1.js → constants-414e0341.js} +1 -1
  19. package/build/esm/{constants-474a60fc.js → constants-e35c5696.js} +2 -2
  20. package/build/esm/constants.js +1 -1
  21. package/build/esm/{core-a9271475.js → core-091d7f79.js} +1 -1
  22. package/build/esm/dataTransform-6f1823e1.js +1 -0
  23. package/build/esm/ecom.js +1 -1
  24. package/build/esm/footer.js +1 -1
  25. package/build/esm/gAssets.js +1 -1
  26. package/build/esm/getDynamicHealthTool-37333454.js +1 -0
  27. package/build/esm/{getSocialList-2b54a130.js → getSocialList-a6c965a8.js} +1 -1
  28. package/build/esm/hooks.js +1 -1
  29. package/build/esm/i18n.js +1 -1
  30. package/build/esm/i18nV2.js +1 -1
  31. package/build/esm/{index-4cc27c0a.js → index-1bf1317e.js} +9 -9
  32. package/build/esm/{index-fdc4fb0f.js → index-34cf1092.js} +1 -1
  33. package/build/esm/{index-7678ada1.js → index-3d2b9817.js} +1 -1
  34. package/build/esm/index-3e89f917.js +1 -0
  35. package/build/esm/{index-cd710e7d.js → index-4786b57c.js} +1 -1
  36. package/build/esm/{index-ab03b9dd.js → index-49c2a65e.js} +1 -1
  37. package/build/esm/index-5cacbac8.js +1 -0
  38. package/build/esm/index-638a744e.js +1 -0
  39. package/build/esm/index-73532662.js +1 -0
  40. package/build/esm/index-7b8714ba.js +1 -0
  41. package/build/esm/index-865973f4.js +375 -0
  42. package/build/esm/{index-2eaf28c4.js → index-92506b05.js} +1 -1
  43. package/build/esm/{index-1cfc85b4.js → index-9e5a2805.js} +3 -3
  44. package/build/esm/index-a0bcdf6a.js +1 -0
  45. package/build/esm/index-bb8dc02f.js +1 -0
  46. package/build/esm/{index-a454d80b.js → index-bcca5543.js} +1 -1
  47. package/build/esm/index-c1cb45b2.js +1 -0
  48. package/build/esm/index-cb13973d.js +50 -0
  49. package/build/esm/index-cc5ea46f.js +137 -0
  50. package/build/esm/index-d18cfff8.js +2748 -0
  51. package/build/esm/index-d6dac1a0.js +177 -0
  52. package/build/esm/index-f21deeb6.js +1430 -0
  53. package/build/esm/index-fd0e0617.js +1 -0
  54. package/build/esm/index.js +1 -1
  55. package/build/esm/{index.styled-4098b19f.js → index.styled-b876c90a.js} +3 -3
  56. package/build/esm/index.styles-00233f7a.js +839 -0
  57. package/build/esm/lead.js +1 -1
  58. package/build/esm/mantine.js +1 -1
  59. package/build/esm/misc.js +1 -1
  60. package/build/esm/navigation.js +1 -1
  61. package/build/esm/onboardingV2.js +34 -34
  62. package/build/esm/pwg.js +5 -5
  63. package/build/esm/{routing-d3019505.js → routing-5b211351.js} +1 -1
  64. package/build/esm/subot.js +124 -124
  65. package/build/esm/together.js +1 -1
  66. package/build/esm/types-21b8927e.js +3004 -0
  67. package/build/esm/{types-56ff87b5.js → types-242705e6.js} +10 -10
  68. package/build/esm/types.js +1 -1
  69. package/build/esm/useCategory-2e217da0.js +1 -0
  70. package/build/esm/{useHealthToolCache-4a39e9dc.js → useHealthToolCache-011e34e2.js} +1 -1
  71. package/build/esm/{usePlacesAutocomplete-80551f6b.js → usePlacesAutocomplete-ed4983f5.js} +1 -1
  72. package/build/esm/{useTranslations-2b415154.js → useTranslations-80f9bf98.js} +1 -1
  73. package/build/esm/{utils-9dae9f7b.js → utils-19ad9237.js} +2 -2
  74. package/build/esm/utils-39fb1c8c.js +7 -0
  75. package/build/esm/utils-3f639011.js +1 -0
  76. package/build/esm/{utils-6577ea25.js → utils-d4e0e9b5.js} +1 -1
  77. package/build/esm/vaccination.js +40 -40
  78. package/build/footer.js +1 -1
  79. package/build/gAssets.js +1 -1
  80. package/build/getDynamicHealthTool-3e4543ff.js +1 -0
  81. package/build/{getSocialList-b951173d.js → getSocialList-196c323b.js} +1 -1
  82. package/build/hooks.js +1 -1
  83. package/build/i18n.js +1 -1
  84. package/build/i18nV2.js +1 -1
  85. package/build/{index-f85e80c5.js → index-065c9097.js} +1 -1
  86. package/build/index-07dff904.js +1 -0
  87. package/build/index-0c7093ea.js +50 -0
  88. package/build/{index-fe775c96.js → index-0f6355d4.js} +1 -1
  89. package/build/index-19e259ce.js +1 -0
  90. package/build/index-2420eee5.js +1430 -0
  91. package/build/index-425f3390.js +1 -0
  92. package/build/index-43df25b1.js +1 -0
  93. package/build/{index-6e685d2b.js → index-4a8b5e48.js} +1 -1
  94. package/build/index-4c4d7568.js +137 -0
  95. package/build/{index-72cfe602.js → index-4de92198.js} +4 -4
  96. package/build/{index-b23382c3.js → index-5385e211.js} +1 -1
  97. package/build/{index-f1338b36.js → index-6f8ff7df.js} +1 -1
  98. package/build/index-7154350f.js +375 -0
  99. package/build/{index-b3478b6c.js → index-8a21ecb2.js} +1 -1
  100. package/build/index-8e6644eb.js +1 -0
  101. package/build/{index-5f2adc06.js → index-9003442e.js} +1 -1
  102. package/build/{index-718b4bad.js → index-96dd78ba.js} +3 -3
  103. package/build/index-beef0ff7.js +1 -0
  104. package/build/index-cbbe3154.js +2748 -0
  105. package/build/{index-d14172a4.js → index-d27a3f5f.js} +1 -1
  106. package/build/{index-cdf087ee.js → index-e13a4f9a.js} +1 -1
  107. package/build/index-ff74de8e.js +177 -0
  108. package/build/index.js +1 -1
  109. package/build/{index.styled-2bb5f5a2.js → index.styled-a45b7854.js} +1 -1
  110. package/build/index.styles-ce607f17.js +839 -0
  111. package/build/lead.js +1 -1
  112. package/build/mantine.js +1 -1
  113. package/build/misc.js +1 -1
  114. package/build/navigation.js +1 -1
  115. package/build/onboardingV2.js +34 -34
  116. package/build/pwg.js +2 -2
  117. package/build/{routing-9c9a4f25.js → routing-46446fba.js} +1 -1
  118. package/build/subot.js +123 -123
  119. package/build/together.js +1 -1
  120. package/build/types-d2335814.js +3004 -0
  121. package/build/{types-adecb2ce.js → types-e54d8d93.js} +10 -10
  122. package/build/types.js +1 -1
  123. package/build/useCategory-c99469f2.js +1 -0
  124. package/build/{useHealthToolCache-260b51e2.js → useHealthToolCache-dc437f4f.js} +1 -1
  125. package/build/{usePlacesAutocomplete-39be4478.js → usePlacesAutocomplete-55e04a25.js} +1 -1
  126. package/build/{useTranslations-1ddacded.js → useTranslations-b435b717.js} +1 -1
  127. package/build/utils-469dda3f.js +1 -0
  128. package/build/{utils-871f6c88.js → utils-83803365.js} +2 -2
  129. package/build/{utils-a5d09d21.js → utils-9778a239.js} +1 -1
  130. package/build/utils-c18ec2df.js +1 -0
  131. package/build/vaccination.js +33 -33
  132. package/package.json +7 -3
  133. package/build/dataTransform-d5d1a86d.js +0 -1
  134. package/build/esm/dataTransform-f4d63a0a.js +0 -1
  135. package/build/esm/getDynamicHealthTool-9b662a1a.js +0 -1
  136. package/build/esm/index-303e2009.js +0 -1
  137. package/build/esm/index-3c4ac2ae.js +0 -1
  138. package/build/esm/index-4bc5ecbb.js +0 -1
  139. package/build/esm/index-55d2faa0.js +0 -1
  140. package/build/esm/index-608b4a88.js +0 -177
  141. package/build/esm/index-6f066011.js +0 -1
  142. package/build/esm/index-95a46cf3.js +0 -1
  143. package/build/esm/index-993a5f79.js +0 -1
  144. package/build/esm/index-a2dcf4e9.js +0 -1
  145. package/build/esm/index-baaa911b.js +0 -1
  146. package/build/esm/index-be8e7751.js +0 -1
  147. package/build/esm/index-cc519ac7.js +0 -3122
  148. package/build/esm/index-d17ea22d.js +0 -1
  149. package/build/esm/index-d343bc50.js +0 -1
  150. package/build/esm/index-ff10bc28.js +0 -1
  151. package/build/esm/index.styled-156505c7.js +0 -1430
  152. package/build/esm/index.styled-3e11e657.js +0 -3140
  153. package/build/esm/index.styled-be084b87.js +0 -50
  154. package/build/esm/index.styles-caebb95e.js +0 -846
  155. package/build/esm/screenSizeContext-8e3cd726.js +0 -81
  156. package/build/esm/types-f3a821e7.js +0 -1
  157. package/build/esm/useCategory-e47c3929.js +0 -1
  158. package/build/esm/useRafState-8fe79e7a.js +0 -1
  159. package/build/getDynamicHealthTool-ecfb21b0.js +0 -1
  160. package/build/index-0988dfe4.js +0 -1
  161. package/build/index-0f3e6076.js +0 -1
  162. package/build/index-10d9fdff.js +0 -177
  163. package/build/index-24113bb4.js +0 -1
  164. package/build/index-3489608d.js +0 -1
  165. package/build/index-4bfad06d.js +0 -1
  166. package/build/index-7b85f299.js +0 -1
  167. package/build/index-901812ad.js +0 -3122
  168. package/build/index-c22d32f6.js +0 -1
  169. package/build/index-d74ab92f.js +0 -1
  170. package/build/index-db0da298.js +0 -1
  171. package/build/index-f4356d3b.js +0 -1
  172. package/build/index.styled-39310ce9.js +0 -50
  173. package/build/index.styled-3a1748a5.js +0 -3140
  174. package/build/index.styled-75539e3d.js +0 -1430
  175. package/build/index.styles-d3c65e64.js +0 -846
  176. package/build/screenSizeContext-83eeed99.js +0 -81
  177. package/build/types-582a67ed.js +0 -1
  178. package/build/useCategory-957ea2a8.js +0 -1
  179. package/build/useRafState-8a41d548.js +0 -1
  180. /package/build/{BMI_BOYS.percentile.monthly-3ccdbf2f.js → BMI_BOYS.percentile.monthly-0eb54c7c.js} +0 -0
  181. /package/build/{BMI_BOYS.percentile.weekly-003704d5.js → BMI_BOYS.percentile.weekly-b7bde0b1.js} +0 -0
  182. /package/build/{BMI_BOYS.percentile.yearly-51f6c930.js → BMI_BOYS.percentile.yearly-2aa9ad44.js} +0 -0
  183. /package/build/{BMI_BOYS.zscore.monthly-05504085.js → BMI_BOYS.zscore.monthly-97389f6d.js} +0 -0
  184. /package/build/{BMI_BOYS.zscore.weekly-2a93a8db.js → BMI_BOYS.zscore.weekly-bc5a17ee.js} +0 -0
  185. /package/build/{BMI_BOYS.zscore.yearly-37291e62.js → BMI_BOYS.zscore.yearly-95e1abf3.js} +0 -0
  186. /package/build/{BMI_GIRLS.percentile.monthly-97288e63.js → BMI_GIRLS.percentile.monthly-8a628c8b.js} +0 -0
  187. /package/build/{BMI_GIRLS.percentile.weekly-c701d6ff.js → BMI_GIRLS.percentile.weekly-c3423d0b.js} +0 -0
  188. /package/build/{BMI_GIRLS.percentile.yearly-edee3575.js → BMI_GIRLS.percentile.yearly-30c05aa5.js} +0 -0
  189. /package/build/{BMI_GIRLS.zscore.monthly-0ac77300.js → BMI_GIRLS.zscore.monthly-e81868f9.js} +0 -0
  190. /package/build/{BMI_GIRLS.zscore.weekly-f726c4f9.js → BMI_GIRLS.zscore.weekly-98365971.js} +0 -0
  191. /package/build/{BMI_GIRLS.zscore.yearly-c1af9dbd.js → BMI_GIRLS.zscore.yearly-34dac101.js} +0 -0
  192. /package/build/{ChevronDown-e26b6333.js → ChevronDown-77fab19e.js} +0 -0
  193. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c1dbc6d4.js → HEAD CIRCUM_BOYS.percentile.monthly-f49c4a46.js} +0 -0
  194. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9c97d194.js → HEAD CIRCUM_BOYS.percentile.weekly-72afd132.js} +0 -0
  195. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-84f770fb.js → HEAD CIRCUM_BOYS.percentile.yearly-ab0deda0.js} +0 -0
  196. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8522b577.js → HEAD CIRCUM_BOYS.zscore.monthly-fbd5f8c4.js} +0 -0
  197. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d05b4957.js → HEAD CIRCUM_BOYS.zscore.weekly-87f840f6.js} +0 -0
  198. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d1d2d682.js → HEAD CIRCUM_BOYS.zscore.yearly-9a7dd00c.js} +0 -0
  199. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bc7f8e45.js → HEAD CIRCUM_GIRLS.percentile.monthly-679b8839.js} +0 -0
  200. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e24f18fa.js → HEAD CIRCUM_GIRLS.percentile.weekly-b4e20015.js} +0 -0
  201. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-65fe9b8f.js → HEAD CIRCUM_GIRLS.percentile.yearly-9cd60765.js} +0 -0
  202. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-cc51585e.js → HEAD CIRCUM_GIRLS.zscore.monthly-ab6de2c6.js} +0 -0
  203. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0cdef99a.js → HEAD CIRCUM_GIRLS.zscore.weekly-7d38c523.js} +0 -0
  204. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b4df0cb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-eb9d57e8.js} +0 -0
  205. /package/build/{HEIGHT_BOYS.percentile.monthly-42701f3c.js → HEIGHT_BOYS.percentile.monthly-41de847f.js} +0 -0
  206. /package/build/{HEIGHT_BOYS.percentile.weekly-dde65fbd.js → HEIGHT_BOYS.percentile.weekly-62b868f0.js} +0 -0
  207. /package/build/{HEIGHT_BOYS.percentile.yearly-00d00cf7.js → HEIGHT_BOYS.percentile.yearly-e2c7bb82.js} +0 -0
  208. /package/build/{HEIGHT_BOYS.zscore.monthly-9b22b188.js → HEIGHT_BOYS.zscore.monthly-5d6cc9db.js} +0 -0
  209. /package/build/{HEIGHT_BOYS.zscore.weekly-1e042b69.js → HEIGHT_BOYS.zscore.weekly-d7b99302.js} +0 -0
  210. /package/build/{HEIGHT_BOYS.zscore.yearly-0c232fd2.js → HEIGHT_BOYS.zscore.yearly-e5699025.js} +0 -0
  211. /package/build/{HEIGHT_GIRLS.percentile.monthly-1dc63069.js → HEIGHT_GIRLS.percentile.monthly-bac0286d.js} +0 -0
  212. /package/build/{HEIGHT_GIRLS.percentile.weekly-4b58bd05.js → HEIGHT_GIRLS.percentile.weekly-6999925f.js} +0 -0
  213. /package/build/{HEIGHT_GIRLS.percentile.yearly-9fc93f07.js → HEIGHT_GIRLS.percentile.yearly-ebfa2c19.js} +0 -0
  214. /package/build/{HEIGHT_GIRLS.zscore.monthly-35400da4.js → HEIGHT_GIRLS.zscore.monthly-39be4dd2.js} +0 -0
  215. /package/build/{HEIGHT_GIRLS.zscore.weekly-dd1f44e2.js → HEIGHT_GIRLS.zscore.weekly-207cf2f5.js} +0 -0
  216. /package/build/{HEIGHT_GIRLS.zscore.yearly-a69b75ca.js → HEIGHT_GIRLS.zscore.yearly-265aafc2.js} +0 -0
  217. /package/build/{Subot-695ffc58.js → Subot-54546cbb.js} +0 -0
  218. /package/build/{Visible-72e550ed.js → Visible-27b623f0.js} +0 -0
  219. /package/build/{WEIGHT_BOYS.percentile.monthly-2dea455a.js → WEIGHT_BOYS.percentile.monthly-9ca3a316.js} +0 -0
  220. /package/build/{WEIGHT_BOYS.percentile.weekly-184f141e.js → WEIGHT_BOYS.percentile.weekly-7e51fb9b.js} +0 -0
  221. /package/build/{WEIGHT_BOYS.percentile.yearly-c9e8aaf8.js → WEIGHT_BOYS.percentile.yearly-b47c5be9.js} +0 -0
  222. /package/build/{WEIGHT_BOYS.zscore.monthly-c9f03466.js → WEIGHT_BOYS.zscore.monthly-6d59370f.js} +0 -0
  223. /package/build/{WEIGHT_BOYS.zscore.weekly-413af608.js → WEIGHT_BOYS.zscore.weekly-38beac02.js} +0 -0
  224. /package/build/{WEIGHT_BOYS.zscore.yearly-fd8ddd34.js → WEIGHT_BOYS.zscore.yearly-1f4013a7.js} +0 -0
  225. /package/build/{WEIGHT_GIRLS.percentile.monthly-b78e414e.js → WEIGHT_GIRLS.percentile.monthly-c9144c22.js} +0 -0
  226. /package/build/{WEIGHT_GIRLS.percentile.weekly-6979e7ca.js → WEIGHT_GIRLS.percentile.weekly-5455b91e.js} +0 -0
  227. /package/build/{WEIGHT_GIRLS.percentile.yearly-be5d12e7.js → WEIGHT_GIRLS.percentile.yearly-03c736dd.js} +0 -0
  228. /package/build/{WEIGHT_GIRLS.zscore.monthly-28299624.js → WEIGHT_GIRLS.zscore.monthly-415a66a8.js} +0 -0
  229. /package/build/{WEIGHT_GIRLS.zscore.weekly-8584439e.js → WEIGHT_GIRLS.zscore.weekly-1e23361d.js} +0 -0
  230. /package/build/{WEIGHT_GIRLS.zscore.yearly-2e04a2a2.js → WEIGHT_GIRLS.zscore.yearly-8db29178.js} +0 -0
  231. /package/build/{cookieHelper-2e8bb9fa.js → cookieHelper-59a64e32.js} +0 -0
  232. /package/build/esm/{BMI_BOYS.percentile.monthly-486f83ee.js → BMI_BOYS.percentile.monthly-57e884f8.js} +0 -0
  233. /package/build/esm/{BMI_BOYS.percentile.weekly-fd3c15c3.js → BMI_BOYS.percentile.weekly-b2c63459.js} +0 -0
  234. /package/build/esm/{BMI_BOYS.percentile.yearly-da6eb7ec.js → BMI_BOYS.percentile.yearly-8ca90fac.js} +0 -0
  235. /package/build/esm/{BMI_BOYS.zscore.monthly-62d445f2.js → BMI_BOYS.zscore.monthly-b493d2f9.js} +0 -0
  236. /package/build/esm/{BMI_BOYS.zscore.weekly-f67c90eb.js → BMI_BOYS.zscore.weekly-62ae4fbc.js} +0 -0
  237. /package/build/esm/{BMI_BOYS.zscore.yearly-b1a41fe8.js → BMI_BOYS.zscore.yearly-e2aad569.js} +0 -0
  238. /package/build/esm/{BMI_GIRLS.percentile.monthly-66a216cc.js → BMI_GIRLS.percentile.monthly-7f8de0c2.js} +0 -0
  239. /package/build/esm/{BMI_GIRLS.percentile.weekly-b46429d6.js → BMI_GIRLS.percentile.weekly-6e0b116a.js} +0 -0
  240. /package/build/esm/{BMI_GIRLS.percentile.yearly-6a6af348.js → BMI_GIRLS.percentile.yearly-4a395636.js} +0 -0
  241. /package/build/esm/{BMI_GIRLS.zscore.monthly-41bb8c08.js → BMI_GIRLS.zscore.monthly-be973fb7.js} +0 -0
  242. /package/build/esm/{BMI_GIRLS.zscore.weekly-04eb8b89.js → BMI_GIRLS.zscore.weekly-c19aae0e.js} +0 -0
  243. /package/build/esm/{BMI_GIRLS.zscore.yearly-099feda2.js → BMI_GIRLS.zscore.yearly-7bf54eb9.js} +0 -0
  244. /package/build/esm/{ChevronDown-c2b4123b.js → ChevronDown-b9b5a352.js} +0 -0
  245. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-53d11c4f.js → HEAD CIRCUM_BOYS.percentile.monthly-6e42d726.js} +0 -0
  246. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-19dae757.js → HEAD CIRCUM_BOYS.percentile.weekly-8999c4bf.js} +0 -0
  247. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e744f2ee.js → HEAD CIRCUM_BOYS.percentile.yearly-b5760636.js} +0 -0
  248. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-12b76190.js → HEAD CIRCUM_BOYS.zscore.monthly-fe30f273.js} +0 -0
  249. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a62a347c.js → HEAD CIRCUM_BOYS.zscore.weekly-17145cf6.js} +0 -0
  250. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d1c96a90.js → HEAD CIRCUM_BOYS.zscore.yearly-0d813a98.js} +0 -0
  251. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-52e91c35.js → HEAD CIRCUM_GIRLS.percentile.monthly-ae35f7b2.js} +0 -0
  252. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-51fd4b94.js → HEAD CIRCUM_GIRLS.percentile.weekly-430e5931.js} +0 -0
  253. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fb3c718e.js → HEAD CIRCUM_GIRLS.percentile.yearly-ce5d85d6.js} +0 -0
  254. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8d54ac23.js → HEAD CIRCUM_GIRLS.zscore.monthly-b304dc6c.js} +0 -0
  255. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-17722148.js → HEAD CIRCUM_GIRLS.zscore.weekly-de588d96.js} +0 -0
  256. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-0849bdb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-44e77264.js} +0 -0
  257. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-9219856c.js → HEIGHT_BOYS.percentile.monthly-e574a87c.js} +0 -0
  258. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f257a74f.js → HEIGHT_BOYS.percentile.weekly-49bc6c02.js} +0 -0
  259. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3ed1a065.js → HEIGHT_BOYS.percentile.yearly-99cf7774.js} +0 -0
  260. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a58e6f2e.js → HEIGHT_BOYS.zscore.monthly-63c3566b.js} +0 -0
  261. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-af59d81d.js → HEIGHT_BOYS.zscore.weekly-a7eff90c.js} +0 -0
  262. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d64544e6.js → HEIGHT_BOYS.zscore.yearly-b06dea5e.js} +0 -0
  263. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-58d712e2.js → HEIGHT_GIRLS.percentile.monthly-b154ae1d.js} +0 -0
  264. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f5718378.js → HEIGHT_GIRLS.percentile.weekly-a3dd221b.js} +0 -0
  265. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-306e09e7.js → HEIGHT_GIRLS.percentile.yearly-c1a93361.js} +0 -0
  266. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ad472813.js → HEIGHT_GIRLS.zscore.monthly-47b24f91.js} +0 -0
  267. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e53d92d3.js → HEIGHT_GIRLS.zscore.weekly-f3cd351a.js} +0 -0
  268. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3e6e23aa.js → HEIGHT_GIRLS.zscore.yearly-f6e9bb0c.js} +0 -0
  269. /package/build/esm/{Subot-dc774172.js → Subot-0c45fa4c.js} +0 -0
  270. /package/build/esm/{Visible-302a3e45.js → Visible-3eb21335.js} +0 -0
  271. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-49a7ae53.js → WEIGHT_BOYS.percentile.monthly-87900c96.js} +0 -0
  272. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-63420203.js → WEIGHT_BOYS.percentile.weekly-6fb93a78.js} +0 -0
  273. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-26609ac2.js → WEIGHT_BOYS.percentile.yearly-ccca0fe8.js} +0 -0
  274. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-cb16306f.js → WEIGHT_BOYS.zscore.monthly-35d466dc.js} +0 -0
  275. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-291be10f.js → WEIGHT_BOYS.zscore.weekly-d74d6ff5.js} +0 -0
  276. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6a25a7fa.js → WEIGHT_BOYS.zscore.yearly-2c068e1e.js} +0 -0
  277. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d11ea01c.js → WEIGHT_GIRLS.percentile.monthly-1ee7e829.js} +0 -0
  278. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-93c36ba6.js → WEIGHT_GIRLS.percentile.weekly-ab30775b.js} +0 -0
  279. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5fc6d885.js → WEIGHT_GIRLS.percentile.yearly-893b6771.js} +0 -0
  280. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0f6fd15b.js → WEIGHT_GIRLS.zscore.monthly-c37f1d39.js} +0 -0
  281. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ea9c19e1.js → WEIGHT_GIRLS.zscore.weekly-3a1449f6.js} +0 -0
  282. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9665443f.js → WEIGHT_GIRLS.zscore.yearly-aa00837d.js} +0 -0
  283. /package/build/esm/{cookieHelper-d6490b00.js → cookieHelper-cbd9f06e.js} +0 -0
  284. /package/build/esm/{index-a59b0ec0.js → index-7d682662.js} +0 -0
  285. /package/build/esm/{index-379f6571.js → index-c9bdb9a2.js} +0 -0
  286. /package/build/esm/{index-d5fe6c4e.js → index-fb029176.js} +0 -0
  287. /package/build/esm/{isProduction-7b1509aa.js → isProduction-cfb9150a.js} +0 -0
  288. /package/build/esm/{localizeNumberFormat-b4e337ed.js → localizeNumberFormat-213a73b8.js} +0 -0
  289. /package/build/esm/{normalizeLink-7bed1319.js → normalizeLink-cc25681e.js} +0 -0
  290. /package/build/esm/{number-eb39d16c.js → number-dd894856.js} +0 -0
  291. /package/build/esm/{paths-2e45cb1b.js → paths-2d37bc61.js} +0 -0
  292. /package/build/esm/{theme-adbee273.js → theme-9f017335.js} +0 -0
  293. /package/build/esm/{translationsContext-4623d384.js → translationsContext-9fc8f894.js} +0 -0
  294. /package/build/esm/{tslib.es6-693de4fd.js → tslib.es6-cabcb8ea.js} +0 -0
  295. /package/build/esm/{types-054bf1d5.js → types-2d28585d.js} +0 -0
  296. /package/build/esm/{useIsInit-7d5bf403.js → useIsInit-81de6d8b.js} +0 -0
  297. /package/build/esm/{useOutsideClick-5c82f669.js → useOutsideClick-e1437a3f.js} +0 -0
  298. /package/build/esm/{useScrollbarSize-cfeb4651.js → useScrollbarSize-6ecc2f5a.js} +0 -0
  299. /package/build/{index-408e11c4.js → index-21c825aa.js} +0 -0
  300. /package/build/{index-346123fd.js → index-4b719c83.js} +0 -0
  301. /package/build/{index-53fb3b00.js → index-7005321e.js} +0 -0
  302. /package/build/{isProduction-87f95c7d.js → isProduction-426652cc.js} +0 -0
  303. /package/build/{localizeNumberFormat-e7196b4e.js → localizeNumberFormat-5389239f.js} +0 -0
  304. /package/build/{normalizeLink-245ad49c.js → normalizeLink-ef4fc463.js} +0 -0
  305. /package/build/{number-5c9d6f63.js → number-f6e8e1a9.js} +0 -0
  306. /package/build/{paths-3287ee93.js → paths-b1c94851.js} +0 -0
  307. /package/build/{theme-785c6f0c.js → theme-98a7bede.js} +0 -0
  308. /package/build/{translationsContext-efee8d50.js → translationsContext-6c5fb248.js} +0 -0
  309. /package/build/{tslib.es6-ef1f81bf.js → tslib.es6-d46558cb.js} +0 -0
  310. /package/build/{types-0321e2cc.js → types-032556e4.js} +0 -0
  311. /package/build/{useIsInit-311b057a.js → useIsInit-8386673c.js} +0 -0
  312. /package/build/{useOutsideClick-7ddf4eaa.js → useOutsideClick-5544e570.js} +0 -0
  313. /package/build/{useScrollbarSize-6947aaa0.js → useScrollbarSize-d4ccc356.js} +0 -0
@@ -0,0 +1,2748 @@
1
+ "use strict";var e=require("react"),t=require("./index-beef0ff7.js"),a=require("./index.styles-ce607f17.js"),l=require("./utils-469dda3f.js"),n=require("./index-4de92198.js"),i=require("./index-07dff904.js"),o=require("./useTranslations-b435b717.js"),r=require("./index-065c9097.js"),s=require("./theme-98a7bede.js"),d=require("./tslib.es6-d46558cb.js"),c=require("@mantine/core"),m=require("innertext");require("@mantine/dates");var u=require("./index-d27a3f5f.js"),p=require("./Subot-54546cbb.js");require("./translationsContext-6c5fb248.js"),require("string-format");var g=require("@mantine/hooks"),h=require("./index-2420eee5.js"),f=require("styled-components"),v=require("lodash/throttle"),b=require("./index-4a8b5e48.js"),y=require("./index-0f6355d4.js"),x=require("./index-5385e211.js"),E=require("html-react-parser"),w=require("./isProduction-426652cc.js"),C=require("date-fns"),k=require("dayjs");require("./utils-83803365.js"),require("./index.styled-a45b7854.js"),require("./index-4b719c83.js");var B=require("./constants-627c575a.js"),T=require("./utils-c18ec2df.js"),S=require("./types-032556e4.js"),N=require("./index-7154350f.js"),A=require("./index-e13a4f9a.js"),M=require("./index-6f8ff7df.js"),P=require("./index-4c4d7568.js"),D=require("./index-21c825aa.js"),z=require("react-hook-form"),L=require("./useHealthToolCache-dc437f4f.js"),I=require("@hookform/resolvers/yup"),$=require("./index-ff74de8e.js"),_=require("./index-96dd78ba.js"),O=require("./useOutsideClick-5544e570.js"),j=require("date-fns/locale/en-US"),F=require("date-fns/locale/id"),H=require("date-fns/locale/vi"),R=require("date-fns/locale/zh-TW"),G=require("./getSocialList-196c323b.js"),U=require("uuid"),W=require("./routing-46446fba.js"),V=require("@mantine/form"),q=require("./index-8a21ecb2.js"),Q=require("js-cookie"),Z=require("lodash/flatten"),Y=require("lodash/uniqBy"),K=require("./cookieHelper-59a64e32.js"),X=require("./normalizeLink-ef4fc463.js");function J(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ee=J(e),te=J(m),ae=J(f),le=J(v),ne=J(E),ie=J(k),oe=J(j),re=J(F),se=J(H),de=J(R),ce=J(Q),me=J(Z),ue=J(Y),pe="CHw-fZZ",ge="_03U6VRS",he="EO828Vv";const fe={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},ve=({type:t="square",size:l,avatarImg:i,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:d,style:c,className:m,width:u,height:p,alt:g})=>{const h=l?fe[l]:void 0,[f,v]=e.useState(!1);e.useEffect((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{v(!0)}))}}),[o,v]);const b=(!o&&!i||f)&&r;return ee.default.createElement(a.StyledAvatar,{style:Object.assign(Object.assign({},c),{"--size":h?h+"px":void 0,"--width-prop":u?u+"px":void 0,"--height-prop":p?p+"px":void 0,"--background-color":s}),"data-has-max":!(!u||!p),"data-avatar-type":t,onClick:d,className:m,avatarUrl:o,"data-custom-size":!!l},i,o&&!f&&ee.default.createElement(n.ImageWrap,{src:o,alt:g||"avatar"}),b&&r)},be=()=>ee.default.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),ye=()=>ee.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},ee.default.createElement("defs",null,ee.default.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},ee.default.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),ee.default.createElement("title",null,"File"),ee.default.createElement("g",{clipPath:"url(#prefix__clip-path)"},ee.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)"}),ee.default.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),xe=()=>ee.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},ee.default.createElement("title",null,"download"),ee.default.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),Ee=()=>ee.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},ee.default.createElement("title",null,"upload"),ee.default.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),we=({pagesAmount:t,activePage:n,handlePageChange:i,handleClick:o,href:r,queryPageName:s="page"})=>{const d=[...Array(t)].map(((e,t)=>t+1)),[c,m]=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?m(d.slice(0,5)):n>=d.length-3?m(d.slice(d.length-5,d.length)):m(d.slice(n-2,n+1))}),[n]),ee.default.createElement(e.Fragment,null,n>4&&ee.default.createElement(e.Fragment,null,ee.default.createElement(a.StyledPaginationBlock,{onClick:()=>i(1)},r?ee.default.createElement("a",{href:r,onClick:o},1):1),ee.default.createElement(a.StyledPaginationBlock,null,"...")),c.map((e=>ee.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===n||void 0,onClick:()=>i(e)},r?ee.default.createElement("a",{href:l.formatUrlWithPageParam(r,e,s),onClick:o},e):e))),n<d.length-3&&ee.default.createElement(e.Fragment,null,ee.default.createElement(a.StyledPaginationBlock,null,"..."),ee.default.createElement(a.StyledPaginationBlock,{onClick:()=>i(d.length)},r?ee.default.createElement("a",{href:l.formatUrlWithPageParam(r,d.length,s),onClick:o},d.length):d.length)))},Ce=({label:e,name:t,checked:l,className:n,isDisabled:i,onChange:o,value:r,isRectangle:s,inputDataTestId:d,siteType:c})=>ee.default.createElement(a.StyledCheckbox,{className:n,"data-disabled":i||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":c},ee.default.createElement("input",{type:"checkbox",checked:l,name:t,onChange:()=>o(r,!l),disabled:i,value:r,id:`${t}-${r}`,"data-label-text":e,"data-testid":d}),!s&&ee.default.createElement("label",{htmlFor:`${t}-${r}`},e)),ke=e=>ee.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 32 32",fill:"none"}),ee.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),Be=e=>ee.default.createElement("svg",Object.assign({},e,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),ee.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),Te=e=>{const t=o.useUniqueId();return ee.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none"}),ee.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"}),ee.default.createElement("mask",{id:t,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},ee.default.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),ee.default.createElement("g",{mask:`url(#${t})`},ee.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"})))},Se=l=>{var{label:n,availableValue:i,styles:s,isBaby:m,genderValue:u={male:"male",female:"female"}}=l,p=d.__rest(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=o.useTranslations(),{classes:h,cx:f}=a.useStyles(void 0,{name:"GenderOptionControl",styles:s}),[v,b]=e.useState(),y=e.useRef(null),x=e.useMemo((()=>[{value:u.male,label:g(m?"gender.boy":"gender.male"),icon:r.CommonGAssets.getAssetPath(m?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:u.female,label:g(m?"gender.girl":"gender.female"),icon:r.CommonGAssets.getAssetPath(m?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return e.useEffect((()=>{b(i)}),[i]),ee.default.createElement(c.Box,{ref:y,className:h.root},ee.default.createElement(c.Radio.Group,Object.assign({className:"radio-group",label:ee.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},n||g(m?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},p,{classNames:{error:h.groupErr}}),ee.default.createElement(c.Flex,{className:f(h.wrapper)},x.map((e=>ee.default.createElement(c.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},v&&e.value!==v&&{disabled:!0},{label:ee.default.createElement(c.Flex,{gap:c.rem(8),align:"center",justify:"center",sx:{zIndex:0}},ee.default.createElement("img",{src:e.icon,className:"gender-image",alt:"female",loading:"lazy"}),ee.default.createElement(t.Text,{size:"p3"},e.label))})))))))};var Ne="PiqKaXk",Ae="HgbW6-m",Me="_6lkfLYy",Pe="j7c-onH";const De=({avatarImg:e,authorName:a,authorLink:l,uploadTime:n,size:i})=>ee.default.createElement("div",{className:Pe},ee.default.createElement("div",{className:"author"},ee.default.createElement("div",{className:"avatar","data-size":i},e),ee.default.createElement("div",{className:"poster","data-is-disabled-url":!l},ee.default.createElement(t.Text,{size:"lg"===i?"p3":"p4"},ee.default.createElement("a",{href:l},ee.default.createElement("span",{className:"name"},a),"•"," "),ee.default.createElement("span",null,n))))),ze=({isMobile:e,avatarImg:l,name:n,link:i,size:o="lg",specialty:r})=>ee.default.createElement("div",{className:Pe},ee.default.createElement("div",{className:"author"},ee.default.createElement("div",{className:"expert-avatar","data-size":o},l),ee.default.createElement("div",{className:"expert","data-is-disabled-url":!i},e?ee.default.createElement("a",{href:i},"lg"===o?ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:s.theme.colors.gray600},n),ee.default.createElement(t.Text,{color:s.theme.colors.gray500,size:"p3",className:"specialty"},r)):ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:s.theme.colors.gray600},n))):ee.default.createElement("a",{href:i},"lg"===o?ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:s.theme.colors.gray600},n),ee.default.createElement(t.Text,{color:s.theme.colors.gray500,size:"p3",className:"specialty"},r)):ee.default.createElement(ee.default.Fragment,null,ee.default.createElement("h6",{color:s.theme.colors.gray600,className:`${Ne} expert__name`},n),ee.default.createElement(t.Text,{color:s.theme.colors.gray500,size:"p4",className:"specialty"},r)))))),Le=e.memo((()=>ee.default.createElement("div",{className:"shoppable"},ee.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ee.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),ee.default.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),Ie=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>ee.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"},ee.default.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),$e=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>ee.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"},ee.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"})))),_e=e=>{var a,l,i,{article:o,author:r,authorAvatar:s,badge:m="",hideDescription:u=!1,isBookmarked:p=!1,onBookmark:g,time:h,tracking:f}=e,v=d.__rest(e,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:b}=n.useScreenSize();return console.log({article:o}),ee.default.createElement(c.Card,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},v),ee.default.createElement(c.Card.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},ee.default.createElement("img",{src:(b?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{width:"100%"},loading:"lazy"})),ee.default.createElement(c.Card.Section,null,ee.default.createElement(c.Group,{position:"apart",mt:16,mb:4},ee.default.createElement(n.Anchor,{href:(null===(a=null==o?void 0:o.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},ee.default.createElement(t.Text,{size:"p4",color:"blue.6"},null===(l=null==o?void 0:o.primaryCategory)||void 0===l?void 0:l.displayName)),ee.default.createElement(c.Box,{sx:{cursor:"pointer"},role:"button",onClick:g},p?ee.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==f?void 0:f.bookmark),ee.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"})):ee.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==f?void 0:f.bookmark),ee.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"})))),ee.default.createElement(t.Text,{size:u?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},o.postTitle||o.postName||""),!u&&ee.default.createElement(t.Text,{size:"p2",mb:16,lineClamp:3,className:"pointer"},te.default(o.excerpt||o.description||(null===(i=o.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),ee.default.createElement(c.Flex,{gap:12,align:"center"},ee.default.createElement(n.Avatar,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:ee.default.createElement("img",{loading:"lazy",src:m,alt:""})}},"A"),ee.default.createElement(t.Text,{size:"n1",c:"gray.6"},r," • ",h))))};var Oe=c.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const je=648/440,Fe=1.5,He=a=>{var l,i,o,{article:r,author:s,authorAvatar:m,badge:u="",bannerImageWrapProps:p,hideDescription:g=!1,isBookmarked:h=!1,onBookmark:f,time:v,tracking:b,classNames:y,styles:x,unstyled:E,className:w}=a,C=d.__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}=Oe({},{name:"ArticleCard",classNames:y,styles:x,unstyled:E}),S=e.useMemo((()=>g?Fe:je),[g]);return ee.default.createElement(c.Card,Object.assign({className:T(B.root,w),padding:"lg",radius:0},C),ee.default.createElement(c.Card.Section,{className:T(B.image,"pointer")},ee.default.createElement(n.AspectRatio,Object.assign({ratio:S},p),ee.default.createElement("img",{src:(k?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{objectFit:"cover"}}))),ee.default.createElement(c.Card.Section,null,ee.default.createElement(c.Group,{position:"apart",mt:16,mb:4},ee.default.createElement(n.Anchor,{className:B.category,href:(null===(l=null==r?void 0:r.primaryCategory)||void 0===l?void 0:l.permalink)||"#"},ee.default.createElement(t.Text,{size:"p4",color:"blue.6"},null===(i=null==r?void 0:r.primaryCategory)||void 0===i?void 0:i.displayName)),ee.default.createElement(c.Box,{sx:{cursor:"pointer"},role:"button",onClick:f},h?ee.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==b?void 0:b.bookmark),ee.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"})):ee.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==b?void 0:b.bookmark),ee.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"})))),ee.default.createElement(t.Text,{className:T(B.title,"pointer"),size:g?"s2":"s1",mb:8,weight:"semiBold"},r.postTitle||r.postName||""),!g&&ee.default.createElement(t.Text,{className:T(B.description,"pointer"),size:"p2",mb:16,lineClamp:3},te.default(r.excerpt||r.description||(null===(o=r.postContent)||void 0===o?void 0:o.split("\r\n")[0])||"")),ee.default.createElement(c.Flex,{className:B.author,gap:12,align:"center"},ee.default.createElement(n.Avatar,{size:32,src:m,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:ee.default.createElement("img",{loading:"lazy",src:u,alt:""})}},"A"),ee.default.createElement(t.Text,{size:"n1",c:"gray.6"},s," • ",v))))},Re=ae.default.a`
2
+ display: flex;
3
+ height: 125px;
4
+
5
+ box-sizing: border-box;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ padding: 8px;
9
+
10
+ border: 1px solid ${s.theme.colors.neutral100};
11
+ background-color: white;
12
+ border-radius: ${s.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
+ `,Ge=ae.default.div`
36
+ display: flex;
37
+
38
+ &[data-type='vertical'] {
39
+ flex-direction: column;
40
+
41
+ div {
42
+ margin-bottom: 20px;
43
+ }
44
+ }
45
+
46
+ &[data-type='horizontal'] {
47
+ flex-wrap: wrap;
48
+
49
+ div {
50
+ margin-right: 25px;
51
+ }
52
+
53
+ &[data-is-rectangle] {
54
+ div {
55
+ margin-right: 14px;
56
+ }
57
+ }
58
+ }
59
+ `,Ue=ae.default.div`
60
+ display: flex;
61
+ align-items: center;
62
+ --font-weight-lg: ${s.theme.sizes.fwBold};
63
+ --font-weight-md: ${s.theme.sizes.fwRegular};
64
+ --font-weight-sm: ${s.theme.sizes.fwRegular};
65
+
66
+ &[data-icon-position='left'] {
67
+ & > *:first-child {
68
+ margin-right: 8px;
69
+ }
70
+
71
+ & > *:last-child {
72
+ width: calc(100% - 24px);
73
+ }
74
+ }
75
+ &[data-icon-position='right'] {
76
+ & > *:first-child {
77
+ width: calc(100% - 24px);
78
+ }
79
+ & > *:last-child {
80
+ margin-left: 8px;
81
+ }
82
+ }
83
+
84
+ ${l.MediaQueries.mbDown} {
85
+ &[data-size='lg'] {
86
+ font-size: 16px;
87
+ line-height: 24px;
88
+ font-weight: var(--font-weight-lg);
89
+ }
90
+ &[data-size='md'] {
91
+ font-size: 14px;
92
+ line-height: 22px;
93
+ font-weight: var(--font-weight-md);
94
+ }
95
+ &[data-size='sm'] {
96
+ font-size: 13px;
97
+ line-height: 20px;
98
+ font-weight: var(----font-weight-sm);
99
+ }
100
+ }
101
+ `,We=ae.default.div`
102
+ position: relative;
103
+ width: 100%;
104
+
105
+ & div[role='slider'] {
106
+ -webkit-text-size-adjust: none;
107
+ -webkit-user-select: none;
108
+ &:focus {
109
+ outline: none;
110
+ }
111
+ }
112
+ `,Ve=ae.default.div`
113
+ position: absolute;
114
+ top: 19px;
115
+ width: 24px;
116
+ height: 24px;
117
+ color: ${s.theme.colors.white};
118
+ border: 2px solid ${s.theme.colors.white};
119
+ border-radius: 50%;
120
+ transform: translateY(-50%) translateX(-50%);
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ cursor: pointer;
125
+
126
+ background-color: ${s.theme.colors.white};
127
+ color: ${s.theme.colors.gray300};
128
+ border: 1px solid ${s.theme.colors.gray300};
129
+
130
+ &[data-is-active='true'] {
131
+ background-color: ${s.theme.colors.primaryBase};
132
+ color: ${s.theme.colors.white};
133
+ border: none;
134
+ }
135
+ `,qe=ae.default.div`
136
+ display: flex;
137
+ width: 100%;
138
+ height: 36px;
139
+
140
+ &[data-track-type='detail'] {
141
+ margin-top: 0;
142
+ }
143
+
144
+ &[data-track-type='detail'][data-step-passed='true'] > div {
145
+ border: 1px solid ${s.theme.colors.primaryBase};
146
+ height: 0px;
147
+ }
148
+
149
+ &[data-track-type='detail'] > div {
150
+ border: 1px solid ${s.theme.colors.gray200};
151
+ height: 0px;
152
+ }
153
+ `,Qe=ae.default.div`
154
+ width: 100%;
155
+ height: 5px;
156
+ align-self: center;
157
+ border-radius: 4px;
158
+ background-color: ${s.theme.colors.gray200};
159
+ `,Ze=ae.default.div`
160
+ position: absolute;
161
+ top: 32px;
162
+ min-width: 100px;
163
+ text-align: center;
164
+ color: ${s.theme.colors.gray500};
165
+ font-size: ${s.theme.sizes.fsCaption2};
166
+ font-weight: ${s.theme.sizes.fwBold};
167
+
168
+ &[data-step-passed='true'] {
169
+ color: ${s.theme.colors.gray800};
170
+ }
171
+ `,Ye=ae.default.div`
172
+ display: flex;
173
+ align-items: center;
174
+ `,Ke=ae.default.div`
175
+ display: flex;
176
+ align-items: center;
177
+ font-size: ${s.theme.sizes.fsCaption2};
178
+ font-weight: ${s.theme.sizes.fwBold};
179
+ color: ${s.theme.colors.gray500};
180
+ cursor: pointer;
181
+
182
+ & > svg {
183
+ height: 10px;
184
+ width: 10px;
185
+ margin: 0 14px;
186
+ }
187
+
188
+ & > svg > path {
189
+ stroke: ${s.theme.colors.gray500};
190
+ }
191
+
192
+ &[data-selected='true'] {
193
+ color: ${s.theme.colors.primaryBase};
194
+ }
195
+ `,Xe=ae.default.div`
196
+ position: absolute;
197
+ left: 0;
198
+ top: 19px;
199
+ height: 24px;
200
+ cursor: pointer;
201
+
202
+ transform: translateY(-50%);
203
+ display: flex;
204
+ align-items: center;
205
+
206
+ padding: 8px;
207
+ background-color: ${s.theme.colors.white};
208
+ `,Je=ae.default.div`
209
+ min-width: 24px;
210
+ height: 24px;
211
+ border: 2px solid ${s.theme.colors.white};
212
+ border-radius: 50%;
213
+ margin-right: 8px;
214
+ display: flex;
215
+ align-items: center;
216
+ justify-content: center;
217
+ cursor: pointer;
218
+
219
+ background-color: ${s.theme.colors.white};
220
+ color: ${s.theme.colors.gray300};
221
+ border: 1px solid ${s.theme.colors.gray300};
222
+
223
+ &[data-is-active='true'] {
224
+ border: none;
225
+ background-color: ${s.theme.colors.primaryBase};
226
+ color: ${s.theme.colors.white};
227
+ }
228
+ `,et=ae.default.div`
229
+ display: flex;
230
+ align-items: center;
231
+ justify-content: center;
232
+
233
+ & > svg {
234
+ height: 20px;
235
+ width: 20px;
236
+ margin-right: 8px;
237
+
238
+ & > path {
239
+ stroke: ${s.theme.colors.gray500};
240
+ }
241
+ }
242
+ `,tt=ae.default.div`
243
+ color: ${s.theme.colors.gray400};
244
+ font-size: ${s.theme.sizes.fsCaption2};
245
+ font-weight: ${s.theme.sizes.fwBold};
246
+ margin-right: 8px;
247
+ flex: 0 0 auto;
248
+
249
+ &[data-step-passed='true'] {
250
+ color: ${s.theme.colors.gray800};
251
+ }
252
+ `,at=ae.default.div`
253
+ position: absolute;
254
+ top: 32px;
255
+ font-weight: ${s.theme.sizes.fwRegular};
256
+ color: ${s.theme.colors.gray400};
257
+ padding-right: 16px;
258
+ `,lt=ee.default.forwardRef((({id:t,value:a,options:l,className:i,isDisabled:o,size:r="small",direction:s="vertical",onChange:d,dataEventCategory:m,dataEventAction:u,dataEventLabel:p},g)=>{const[h,f]=e.useState(a);e.useImperativeHandle(g,(()=>({reset(){f(a)}})));const v="small"===r?"md":"lg",b="vertical"===s?c.Stack:c.Group;return ee.default.createElement(n.Radio.Group,{name:t,className:i,size:v,value:String(h),defaultValue:a,onChange:e=>{f(e),null==d||d(e)}},ee.default.createElement(b,{spacing:"xl"},l.map((e=>ee.default.createElement(n.Radio,{key:e.value,value:e.value,label:e.label,disabled:o,"data-event-category":m,"data-event-action":u,"data-event-label":p})))))})),nt=ae.default.div`
259
+ --menu-width: 240px;
260
+ --menu-spacing: 28px 16px;
261
+ width: var(--menu-width);
262
+ height: 100vh;
263
+ padding: var(--menu-spacing);
264
+ background-color: ${s.theme.colors.neutral50};
265
+ transition: ease-in-out 0.5s;
266
+
267
+ &[data-is-collapsed] {
268
+ --menu-width: 64px;
269
+ --menu-spacing: 28px 8px;
270
+ }
271
+ `,it=ae.default.div`
272
+ display: flex;
273
+ align-items: baseline;
274
+ justify-content: space-between;
275
+
276
+ svg {
277
+ transition: 0.4s ease-in-out;
278
+ }
279
+ `,ot=ae.default.div`
280
+ cursor: pointer;
281
+ &[data-is-collapsed] {
282
+ transform: rotate(180deg);
283
+ }
284
+ `,rt=ae.default.figure`
285
+ display: flex;
286
+
287
+ > img,
288
+ svg,
289
+ picture {
290
+ width: 40px;
291
+ height: 40px;
292
+ margin-right: 1rem;
293
+ border-radius: 6px;
294
+ object-fit: cover;
295
+ }
296
+
297
+ > figcaption {
298
+ p + p {
299
+ margin-top: 2px;
300
+ }
301
+ }
302
+ `,st=({name:e,description:a,image:l,isDescriptionHidden:n})=>ee.default.createElement(rt,null,l,!n&&ee.default.createElement("figcaption",null,ee.default.createElement(t.Text,{size:"p4",weight:"bold"},e),ee.default.createElement(t.Text,{size:"p4"},a))),dt=ae.default.div`
303
+ display: flex;
304
+ align-items: center;
305
+ margin-top: 24px;
306
+ margin-bottom: 36px;
307
+
308
+ figcaption {
309
+ white-space: nowrap;
310
+ }
311
+
312
+ &[data-is-collapsed='true'] {
313
+ img {
314
+ max-width: 2rem;
315
+ max-height: 2rem;
316
+ }
317
+ }
318
+ `,ct=ae.default.div`
319
+ display: flex;
320
+ align-items: center;
321
+ padding: 9px 21px;
322
+ margin-bottom: 4px;
323
+ border-radius: 6px;
324
+
325
+ &:not([data-is-link-active]) {
326
+ cursor: pointer;
327
+ }
328
+
329
+ p {
330
+ margin-left: 12px;
331
+ }
332
+
333
+ &[data-is-link-active] {
334
+ background: ${s.theme.colors.primaryBase};
335
+ }
336
+
337
+ &[data-is-link-collapsed] {
338
+ justify-content: center;
339
+ margin-right: -14px;
340
+ margin-left: -14px;
341
+ }
342
+ `;var mt=Object.freeze({__proto__:null,SideMenu:({isCollapsed:e,className:t,style:a,children:l})=>ee.default.createElement(nt,{style:a,className:t,"data-is-collapsed":e||void 0},l),SideHeader:({isCollapsed:e,defaultLogo:t,onBackClick:a,customIcon:l})=>ee.default.createElement(it,null,ee.default.createElement(b.Logo,{type:e?"logomark":t||"hellocare",customSize:{width:e?"24px":"77px",height:"24px"}}),ee.default.createElement(ot,{"data-is-collapsed":e||void 0,onClick:a},l||ee.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},ee.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"}),ee.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})=>ee.default.createElement(dt,{"data-is-collapsed":e||void 0},ee.default.createElement(st,{image:l,name:t,description:a,isDescriptionHidden:e})),MenuLink:({icon:e,isActive:a,children:l,isCollapsed:n,activeIcon:i,onLinkClick:o,textSize:r="base",textType:s="bold",textColorActive:d="#fff",textColor:c="#595959"})=>ee.default.createElement(ct,{"data-is-link-active":a||void 0,onClick:o,"data-is-link-collapsed":n||void 0},a&&i?i:e,!n&&ee.default.createElement(t.Text,{size:r,weight:s,color:a?d:c},l))});const ut=ae.default.div`
343
+ position: relative;
344
+ width: 100%;
345
+ > .container {
346
+ display: flex;
347
+ width: 100%;
348
+ -ms-overflow-style: none;
349
+ overflow-x: auto;
350
+ scrollbar-width: none;
351
+
352
+ &::-webkit-scrollbar {
353
+ display: none;
354
+ }
355
+
356
+ .section {
357
+ display: flex;
358
+ width: 100%;
359
+ flex-direction: column;
360
+ flex-shrink: 0;
361
+ margin: auto;
362
+
363
+ > .grid-layout {
364
+ display: grid;
365
+ width: 100%;
366
+ grid-row-gap: 8px;
367
+
368
+ > .item-grid {
369
+ width: 100%;
370
+
371
+ > * {
372
+ margin: 0 auto;
373
+ }
374
+ }
375
+ }
376
+
377
+ .progress-bar {
378
+ display: grid;
379
+ height: 15px;
380
+ margin-bottom: 10px;
381
+
382
+ .items-progress {
383
+ position: relative;
384
+ display: flex;
385
+ width: 100%;
386
+ align-items: center;
387
+ justify-content: center;
388
+
389
+ .icon-status {
390
+ position: absolute;
391
+ display: flex;
392
+ }
393
+
394
+ .line {
395
+ width: 50%;
396
+ height: 2px;
397
+ background-color: ${s.theme.colors.gray600};
398
+ }
399
+ }
400
+ }
401
+ }
402
+ }
403
+
404
+ .bullet-nav {
405
+ position: absolute;
406
+ z-index: ${s.theme.zIndexes.belowHeader};
407
+ bottom: -30px;
408
+ left: 50%;
409
+ display: flex;
410
+ transform: translate(-50%, -50%);
411
+ }
412
+
413
+ .bullet-nav__link {
414
+ display: block;
415
+ width: 8px;
416
+ height: 8px;
417
+ padding: 0;
418
+ margin-right: 8px;
419
+ backface-visibility: hidden;
420
+ background-color: #e4e8ec;
421
+ border-radius: 50%;
422
+ cursor: pointer;
423
+ transition: all 0.3s;
424
+ &.active {
425
+ &[data-scheme='hellosites'] {
426
+ background-color: ${s.theme.colors.primary600};
427
+ }
428
+ &[data-scheme='marrybaby'] {
429
+ background-color: ${s.theme.mbColors.pink};
430
+ }
431
+ }
432
+ }
433
+
434
+ .arrow-left {
435
+ position: absolute;
436
+ z-index: 10;
437
+ top: 50%;
438
+ left: -35px;
439
+ transform: translateY(-50%);
440
+ &[data-event-category] > * {
441
+ pointer-events: none;
442
+ }
443
+ }
444
+
445
+ .arrow-right {
446
+ position: absolute;
447
+ z-index: 10;
448
+ top: 50%;
449
+ right: -35px;
450
+ transform: translateY(-50%);
451
+ &[data-event-category] > * {
452
+ pointer-events: none;
453
+ }
454
+ }
455
+
456
+ .image-gallery-wrapper {
457
+ display: flex;
458
+ position: relative;
459
+ margin-top: 16px;
460
+ justify-content: center;
461
+ gap: 16px;
462
+ .image-block {
463
+ display: block;
464
+ width: 100%;
465
+ border: 2px solid transparent;
466
+ border-radius: 4px;
467
+ }
468
+ .image-block.active {
469
+ border-color: ${s.theme.colors.primaryBase};
470
+ }
471
+ img {
472
+ height: 40px;
473
+ width: auto;
474
+ max-width: 100%;
475
+ }
476
+ }
477
+ `,pt=({status:e})=>"inActive"===e?ee.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},ee.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===e?ee.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},ee.default.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),ee.default.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===e?ee.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},ee.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"}),ee.default.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):ee.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},ee.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),gt=ae.default.div`
478
+ border-radius: ${s.theme.borderRadius};
479
+ ${e=>e["data-is-in-card"]&&`\n padding: 12px; \n background-color: ${e["data-card-color"]};`}
480
+ `,ht=ae.default.div`
481
+ width: 13px;
482
+ height: 13px;
483
+ margin-right: 10px;
484
+ background-color: ${e=>e["data-color"]};
485
+ border-radius: 50%;
486
+ `,ft=ae.default.div`
487
+ display: flex;
488
+ align-items: center;
489
+ color: ${s.theme.colors.gray800};
490
+ font-size: ${s.theme.sizes.fsParagraph4};
491
+ font-weight: ${s.theme.sizes.fwRegular};
492
+ `,vt=ae.default.div`
493
+ display: flex;
494
+ align-items: center;
495
+ margin-top: 4px;
496
+ color: ${s.theme.colors.gray800};
497
+ font-size: ${s.theme.sizes.fsHeading2};
498
+ font-weight: ${s.theme.sizes.fwSemiBold};
499
+
500
+ & > svg {
501
+ width: 24px;
502
+ height: 24px;
503
+ margin-right: 12px;
504
+ }
505
+
506
+ &[data-size='small'] {
507
+ margin-left: 23px;
508
+ font-size: ${s.theme.sizes.fsParagraph4};
509
+ font-weight: ${s.theme.sizes.fwBold};
510
+ }
511
+ `,bt=ae.default.table`
512
+ width: 100%;
513
+ position: relative;
514
+ `,yt=ae.default.td`
515
+ padding: var(--vertical-spacing) var(--horizontal-spacing);
516
+ vertical-align: middle;
517
+
518
+ &[data-text-align='left'] {
519
+ text-align: left;
520
+ }
521
+ &[data-text-align='right'] {
522
+ text-align: right;
523
+ }
524
+ &[data-text-align='center'] {
525
+ text-align: center;
526
+ }
527
+ `,xt=ae.default.tr`
528
+ border-bottom: 1px solid ${s.theme.colors.gray100};
529
+
530
+ &[data-is-active='true'] {
531
+ background-color: ${s.theme.colors.gray200};
532
+ }
533
+ `,Et=({children:e,className:t,style:a,isActive:l,onRowClicked:n,rowId:i})=>ee.default.createElement(xt,{className:t,"data-is-active":l,style:a,onClick:()=>{n&&n(i)}},e),wt=ae.default.thead`
534
+ th {
535
+ padding: var(--vertical-spacing) var(--horizontal-spacing);
536
+ text-align: left;
537
+
538
+ color: ${s.theme.colors.gray500};
539
+ font-weight: ${s.theme.sizes.fwBold};
540
+ }
541
+ &[data-is-sticky] {
542
+ th {
543
+ position: sticky;
544
+ top: 0;
545
+ background: white;
546
+ border-bottom: 2px solid ${s.theme.colors.gray200};
547
+ }
548
+ }
549
+ `,Ct=ae.default.tbody`
550
+ position: relative;
551
+ &[data-is-striped] {
552
+ > tr:nth-child(odd) {
553
+ background-color: ${s.theme.colors.neutral50};
554
+ }
555
+ }
556
+ &[data-is-hoverable] {
557
+ > tr:hover {
558
+ background-color: ${s.theme.colors.neutral100};
559
+ }
560
+ }
561
+ `;var kt=Object.freeze({__proto__:null,Table:({children:e,className:t,style:a,horizontalPadding:l,verticalPadding:n})=>ee.default.createElement(bt,{className:t,style:Object.assign({"--horizontal-spacing":l||"19px","--vertical-spacing":n||"26px"},a)},e),Cell:({children:e,className:t,style:a,textAlign:l,isTableHead:n})=>ee.default.createElement(yt,{className:t,style:a,"data-text-align":l||"left",as:n?"th":"td"},e),Head:({isSticky:e,children:t,className:a,style:l})=>ee.default.createElement(wt,{className:a,"data-is-sticky":e||void 0,style:l},ee.default.createElement(Et,null,t)),Row:Et,Body:({children:e,className:t,style:a,isHoverable:l,isStriped:n})=>ee.default.createElement(Ct,{className:t,style:a,"data-is-striped":n||void 0,"data-is-hoverable":l||void 0},e)}),Bt=c.createStyles((e=>{const t=c.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 Tt=ae.default.div`
562
+ padding: 1rem;
563
+ background: ${s.theme.colors.neutral100};
564
+ .survey-inner-wrapper {
565
+ padding: 1.25rem 1rem 1.5rem;
566
+ background: ${s.theme.colors.white};
567
+ border-radius: ${s.theme.borderRadius};
568
+ .survey-header {
569
+ border-bottom: 1px solid #dbdfe5;
570
+ margin-bottom: 12px;
571
+ .survey-header-text {
572
+ color: ${s.theme.colors.gray500};
573
+ }
574
+ }
575
+
576
+ .survey-contact-submit {
577
+ width: 100%;
578
+ margin-bottom: 1.5rem;
579
+ }
580
+ .term-policy-container {
581
+ width: 70%;
582
+ min-width: 210px;
583
+ max-width: 100%;
584
+ margin: 0 auto 1.5rem;
585
+ text-align: center;
586
+ }
587
+
588
+ .survey-progress-wrapper {
589
+ width: calc(100% + 2rem);
590
+ height: 4px;
591
+ margin-bottom: 1rem;
592
+ margin-left: -1rem;
593
+ background: #e4e8ec;
594
+ .survey-progress {
595
+ width: 100%;
596
+ height: 100%;
597
+ background: #00b16a;
598
+ transform: scaleX(0);
599
+ transform-origin: left;
600
+ transition: transform ease-in-out 0.3s;
601
+ }
602
+ }
603
+
604
+ .survey-button-wrapper {
605
+ display: flex;
606
+ justify-content: flex-end;
607
+ button {
608
+ justify-content: center;
609
+ &[data-has-icon='true'] {
610
+ svg {
611
+ width: 10px;
612
+ height: 10px;
613
+ margin-right: 10px;
614
+ vertical-align: unset;
615
+ }
616
+ }
617
+ &.survey-next-button {
618
+ &[data-has-icon='true'] {
619
+ svg {
620
+ margin-right: 0;
621
+ margin-left: 10px;
622
+ }
623
+ }
624
+ }
625
+ }
626
+ &[data-center='true'] {
627
+ justify-content: center;
628
+ button:only-child {
629
+ width: 200px;
630
+ max-width: 80%;
631
+ }
632
+ }
633
+ .survey-prev-button {
634
+ margin-right: 0.5rem;
635
+ }
636
+ }
637
+ }
638
+ `,St=ae.default.div`
639
+ position: relative;
640
+ display: flex;
641
+ align-items: center;
642
+ cursor: pointer;
643
+
644
+ input {
645
+ position: relative;
646
+ width: 20px;
647
+ height: 20px;
648
+ flex-shrink: 0;
649
+ border: solid 1px ${s.theme.colors.gray500};
650
+ margin-right: 8px;
651
+ border-radius: 100%;
652
+ cursor: inherit;
653
+ transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
654
+
655
+ &:hover,
656
+ &:active {
657
+ border-color: ${s.theme.colors.primaryBase};
658
+ box-shadow: 0 0 2px 2px ${s.theme.colors.primary600};
659
+ }
660
+
661
+ &:checked {
662
+ display: flex;
663
+ align-items: center;
664
+ justify-content: center;
665
+ border-color: ${s.theme.colors.primaryBase};
666
+ &:after {
667
+ position: absolute;
668
+ top: 50%;
669
+ left: 50%;
670
+ width: 14px;
671
+ height: 14px;
672
+ //left: 3px;
673
+ //position: absolute;
674
+ //top: 4px;
675
+ background-color: ${s.theme.colors.primaryBase};
676
+ border-radius: 50%;
677
+ content: '';
678
+ transform: translate(-50%, -50%);
679
+ }
680
+ }
681
+ }
682
+
683
+ label {
684
+ width: calc(100% - 24px);
685
+ cursor: inherit;
686
+ font-weight: ${s.theme.sizes.fwRegular};
687
+ }
688
+
689
+ &[data-disabled='true'] {
690
+ color: ${s.theme.colors.gray300};
691
+ cursor: not-allowed;
692
+ input {
693
+ border-color: ${s.theme.colors.gray300};
694
+
695
+ &:hover {
696
+ border-color: ${s.theme.colors.gray300};
697
+ box-shadow: none;
698
+ }
699
+ }
700
+ }
701
+
702
+ padding: 16px 20px;
703
+ border: 0.5px solid transparent;
704
+ background: #fafafa;
705
+ border-radius: ${s.theme.borderRadius};
706
+ &[data-checked='true'] {
707
+ border: 0.5px solid #2d87f3;
708
+ background: #f7f9fc;
709
+ }
710
+ input {
711
+ border: solid 2px #737373;
712
+ margin-right: 0;
713
+ background: white;
714
+ &[type='checkbox'] {
715
+ &:checked {
716
+ border: 0;
717
+ background: ${s.theme.colors.primaryBase}
718
+ 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")
719
+ no-repeat center center;
720
+ &:after {
721
+ display: none;
722
+ }
723
+ }
724
+ }
725
+ }
726
+
727
+ &[data-has-image='true'] {
728
+ position: relative;
729
+ display: block;
730
+ padding: 12px;
731
+ input {
732
+ position: absolute;
733
+ top: 20px;
734
+ right: 20px;
735
+ }
736
+ .choice-image-wrapper {
737
+ position: relative;
738
+ padding-top: 56.25%;
739
+ margin-bottom: 0.75rem;
740
+ img {
741
+ position: absolute;
742
+ top: 0;
743
+ left: 0;
744
+ width: 100%;
745
+ height: 100%;
746
+ border-radius: ${s.theme.borderRadius};
747
+ object-fit: cover;
748
+ }
749
+ }
750
+ }
751
+ `,Nt=ae.default.div`
752
+ position: relative;
753
+ width: 100%;
754
+ padding-top: min(400px, 100%);
755
+ .survey-thankyou-wrapper-inner {
756
+ position: absolute;
757
+ top: 0;
758
+ left: 0;
759
+ display: flex;
760
+ width: 100%;
761
+ height: 100%;
762
+ flex-direction: column;
763
+ align-items: center;
764
+ justify-content: center;
765
+ .survey-thankyou-icon {
766
+ width: 36%;
767
+ max-height: 50%;
768
+ margin-bottom: 1.5rem;
769
+ }
770
+ .survey-thankyou-title {
771
+ margin-bottom: 1rem;
772
+ text-align: center;
773
+ }
774
+ .survey-thankyou-subtitle {
775
+ text-align: center;
776
+ > * {
777
+ text-align: center;
778
+ }
779
+ }
780
+ }
781
+ `,At=ae.default.div`
782
+ .survey-question-text-wrapper {
783
+ margin-bottom: 24px;
784
+ .survey-question-title {
785
+ margin-bottom: 4px;
786
+ }
787
+ .survey-question-subtitle,
788
+ .survey-question-description {
789
+ color: ${s.theme.colors.gray500};
790
+ }
791
+ }
792
+ .survey-question-image {
793
+ width: 100%;
794
+ margin-bottom: 12px;
795
+ border-radius: ${s.theme.borderRadius};
796
+ }
797
+
798
+ .survey-question-answer-wrapper {
799
+ margin-bottom: 1.5rem;
800
+ .survey-question-options-wrapper {
801
+ display: grid;
802
+ grid-gap: 0.5rem;
803
+ grid-template-columns: 1fr;
804
+ &[data-has-image='true'] {
805
+ grid-gap: 0.8rem;
806
+ grid-template-columns: 1fr 1fr;
807
+ }
808
+ .survey-question-option-item {
809
+ label {
810
+ color: #262626;
811
+ font-size: 16px;
812
+ font-style: normal;
813
+ font-weight: normal;
814
+ line-height: 24px;
815
+ }
816
+ }
817
+ }
818
+ .survey-contact-input {
819
+ margin-bottom: 1rem;
820
+ &:first-child {
821
+ margin-top: 1rem;
822
+ }
823
+ label {
824
+ font-weight: 700;
825
+ }
826
+ input {
827
+ margin-top: 6px;
828
+ }
829
+ }
830
+ }
831
+ `,Mt=({size:e="small",label:t,name:a,checked:l,value:n,className:i,isDisabled:o=!1,onChange:r,hasImage:s,inputType:d,image:c})=>ee.default.createElement(St,{"data-disabled":o,className:i,"data-size":e,"data-checked":l,onClick:()=>{r(n)},"data-has-image":s},s&&ee.default.createElement("div",{className:"choice-image-wrapper"},c&&ee.default.createElement("img",{src:c,loading:"lazy"})),ee.default.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${a}-${n}`},t),ee.default.createElement("input",{type:d,checked:l,name:a,id:`${a}-${n}`,value:n,readOnly:!0})),Pt=({question:l,description:n,onOptionsChange:i,onTextOptionsChange:o,style:r,className:s})=>{const{type:d,title:c,subtitle:m,image:u,textOptions:p,options:g,name:h,is_multi_select:f}=l,v=!!(null==g?void 0:g.some((e=>e.image))),[b,y]=e.useState([]),[E,w]=e.useState((()=>(null==p?void 0:p.slice())||[]));return e.useEffect((()=>{i&&i(b.slice())}),[!!i,b]),e.useEffect((()=>{o&&o(E)}),[!!o,E]),ee.default.createElement(At,{className:s,style:r},ee.default.createElement("div",{className:"survey-question-text-wrapper"},c&&ee.default.createElement(a.Heading,{"data-nosubtitle":!m,className:"survey-question-title",tag:"h4"},c),m&&ee.default.createElement(t.Text,{className:"survey-question-subtitle",size:"p2"},m),n&&ee.default.createElement(t.Text,{className:"survey-question-description",size:"p2"},n)),u&&ee.default.createElement("img",{src:u,className:"survey-question-image",loading:"lazy"}),ee.default.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===d&&ee.default.createElement("div",{"data-has-image":v,className:"survey-question-options-wrapper"},g.map((e=>{var t;return ee.default.createElement(Mt,{inputType:"radio",label:e.label,name:h,key:`${h}-${e.value}`,checked:(null===(t=b[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:v})}))),"checkbox"===d&&ee.default.createElement("div",{"data-has-image":v,className:"survey-question-options-wrapper"},g.map((e=>ee.default.createElement(Mt,{inputType:"checkbox",label:e.label,name:h,key:`${h}-${e.value}`,checked:!!b.find((t=>t.value===e.value)),value:e.value,onChange:()=>{const t=b.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:v})))),"textbox"===d&&E.map(((e,t)=>e.isTextArea?ee.default.createElement(a.TextArea,{key:t,placeholder:e.placeholder,height:"150px",value:e.value,onChange:e=>w((a=>(a[t].value=e,a.slice())))}):ee.default.createElement(x.Input,{key:t,value:e.value,name:e.name,size:"md",className:"survey-contact-input",label:e.label,placeholder:e.placeholder,onChange:e=>{w((a=>(a[t].value=e,a.slice())))},type:e.type})))))};var Dt;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(Dt||(Dt={}));const zt=200,Lt=ae.default.div``,It=ae.default.div`
832
+ width: 100vw;
833
+ height: 100vh;
834
+ position: fixed;
835
+ bottom: 0;
836
+ right: 0;
837
+ background-color: ${s.theme.colors.white};
838
+ opacity: 0.83;
839
+ transition: display ${zt}ms linear;
840
+
841
+ [data-floatmenu-open='true'] & {
842
+ animation: showBackgroundPanel ${zt}ms linear 0s normal
843
+ forwards;
844
+ }
845
+
846
+ [data-floatmenu-open='false'] & {
847
+ animation: hideBackgroundPanel ${zt}ms linear 0s normal
848
+ forwards;
849
+ }
850
+
851
+ @keyframes showBackgroundPanel {
852
+ 0% {
853
+ opacity: 0;
854
+ width: 100vw;
855
+ height: 100vh;
856
+ }
857
+ 100% {
858
+ opacity: 0.83;
859
+ }
860
+ }
861
+
862
+ @keyframes hideBackgroundPanel {
863
+ 0% {
864
+ width: 100vw;
865
+ height: 100vh;
866
+ }
867
+ 99% {
868
+ width: 100vw;
869
+ height: 100vh;
870
+ }
871
+ 100% {
872
+ opacity: 0;
873
+ width: 0;
874
+ height: 0;
875
+ }
876
+ }
877
+ `,$t=ae.default.div`
878
+ position: fixed;
879
+ right: 16px;
880
+ bottom: 40px;
881
+ `,_t=ae.default.div`
882
+ display: flex;
883
+ flex-direction: column;
884
+ gap: 16px;
885
+ transition: all ${zt}ms ease-in-out;
886
+ position: fixed;
887
+ bottom: 112px;
888
+ right: 16px;
889
+
890
+ // scale
891
+ [data-animation-type='scale'] & {
892
+ transform-origin: 100% 100%;
893
+ }
894
+
895
+ [data-animation-type='scale'][data-floatmenu-open='true'] & {
896
+ transform: scale(1);
897
+ }
898
+
899
+ [data-animation-type='scale'][data-floatmenu-open='false'] & {
900
+ transform: scale(0);
901
+ bottom: 46px;
902
+ right: 36px;
903
+ }
904
+ `,Ot=ae.default.div`
905
+ border-radius: 50%;
906
+ width: 56px;
907
+ height: 56px;
908
+ position: relative;
909
+ cursor: pointer;
910
+ margin-left: auto;
911
+ transition: all 0.1s linear;
912
+ -webkit-tap-highlight-color: transparent;
913
+ [data-site-type='hb'] & {
914
+ background-color: ${s.theme.colors.primaryBase};
915
+ &:hover {
916
+ background-color: ${s.theme.colors.primaryHover};
917
+ }
918
+ }
919
+ [data-site-type='mb'] & {
920
+ background-color: #2d87f3;
921
+ &:hover {
922
+ background-color: #2c74df;
923
+ }
924
+ }
925
+
926
+ &:before {
927
+ content: '';
928
+ width: 2px;
929
+ height: 20px;
930
+ background-color: ${s.theme.colors.white};
931
+ border-radius: 2px;
932
+ position: absolute;
933
+ top: 50%;
934
+ left: 50%;
935
+ transform: translate(-50%, -50%);
936
+ }
937
+
938
+ &:after {
939
+ content: '';
940
+ width: 20px;
941
+ height: 2px;
942
+ background-color: ${s.theme.colors.white};
943
+ border-radius: 2px;
944
+ position: absolute;
945
+ top: 50%;
946
+ left: 50%;
947
+ transform: translate(-50%, -50%);
948
+ }
949
+
950
+ [data-floatmenu-open='true'] &:before,
951
+ [data-floatmenu-open='true'] &:after {
952
+ animation: toX ${zt}ms linear 0s normal forwards;
953
+ }
954
+
955
+ [data-floatmenu-open='false'] &:before,
956
+ [data-floatmenu-open='false'] &:after {
957
+ animation: toPlus ${zt}ms linear 0s normal forwards;
958
+ }
959
+
960
+ @keyframes toX {
961
+ 0% {
962
+ transform: translate(-50%, -50%) rotateZ(0deg);
963
+ }
964
+ 49% {
965
+ transform: translate(-50%, -50%) rotateZ(0deg);
966
+ }
967
+ 50% {
968
+ width: 2px;
969
+ height: 2px;
970
+ transform: translate(-50%, -50%) rotateZ(45deg);
971
+ }
972
+ 100% {
973
+ transform: translate(-50%, -50%) rotateZ(45deg);
974
+ }
975
+ }
976
+
977
+ @keyframes toPlus {
978
+ 0% {
979
+ transform: translate(-50%, -50%) rotateZ(45deg);
980
+ }
981
+ 49% {
982
+ transform: translate(-50%, -50%) rotateZ(45deg);
983
+ }
984
+ 50% {
985
+ width: 2px;
986
+ height: 2px;
987
+ transform: translate(-50%, -50%) rotateZ(0deg);
988
+ }
989
+ 100% {
990
+ transform: translate(-50%, -50%) rotateZ(0deg);
991
+ }
992
+ }
993
+ `,jt=ae.default.div`
994
+ display: flex;
995
+ gap: 8px;
996
+ align-items: center;
997
+ justify-content: flex-end;
998
+
999
+ width: fit-content;
1000
+ margin-left: auto;
1001
+
1002
+ [data-floatmenu-open='true'] {
1003
+ cursor: pointer;
1004
+ }
1005
+ [data-floatmenu-open='false'] {
1006
+ pointer-events: none;
1007
+ }
1008
+
1009
+ [data-animation-type='zoom'] &,
1010
+ [data-animation-type='slide'] & {
1011
+ position: absolute;
1012
+ right: 0;
1013
+ width: max-content;
1014
+ }
1015
+ // slide
1016
+ [data-animation-type='slide'] & {
1017
+ transition: all ${zt}ms ease-in;
1018
+ }
1019
+
1020
+ [data-animation-type='slide'][data-floatmenu-open='true'] & {
1021
+ animation: showItem ${zt}ms;
1022
+ }
1023
+ [data-animation-type='slide'][data-floatmenu-open='false'] & {
1024
+ bottom: -64px !important;
1025
+ animation: hideItemOnZoom ${250}ms normal forwards;
1026
+ }
1027
+
1028
+ // zoom
1029
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1030
+ animation: hideItemOnZoom ${250}ms normal forwards;
1031
+ }
1032
+
1033
+ @keyframes showItem {
1034
+ 0% {
1035
+ opacity: 0;
1036
+ }
1037
+
1038
+ 100% {
1039
+ opacity: 1;
1040
+ }
1041
+ }
1042
+
1043
+ @keyframes hideItemOnZoom {
1044
+ 0% {
1045
+ transform: translateX(0);
1046
+ opacity: 1;
1047
+ }
1048
+
1049
+ 99% {
1050
+ transform: translateX(0);
1051
+ opacity: 0.5;
1052
+ }
1053
+
1054
+ 100% {
1055
+ transform: translateX(calc(100% + 16px));
1056
+ opacity: 0;
1057
+ }
1058
+ }
1059
+ `,Ft=ae.default.div`
1060
+ font-size: 14px;
1061
+
1062
+ // zoom
1063
+ [data-animation-type='zoom'] & {
1064
+ transition: transform ${zt}ms ease-in-out;
1065
+ transform-origin: 100% 0;
1066
+ }
1067
+
1068
+ [data-animation-type='zoom'][data-floatmenu-open='true'] & {
1069
+ transform: scale(1);
1070
+ }
1071
+
1072
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1073
+ transform: scale(0);
1074
+ }
1075
+
1076
+ // slide
1077
+ [data-animation-type='slide'] & {
1078
+ transition: opacity ${zt}ms;
1079
+ }
1080
+ [data-animation-type='slide'][data-floatmenu-open='true'] & {
1081
+ opacity: 1;
1082
+ }
1083
+ [data-animation-type='slide'][data-floatmenu-open='false'] & {
1084
+ opacity: 0;
1085
+ }
1086
+ `,Ht=ae.default.div`
1087
+ border-radius: 50%;
1088
+ box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 8px rgba(0, 0, 0, 0.04),
1089
+ 0px 0px 1px rgba(0, 0, 0, 0.04);
1090
+ width: 48px;
1091
+ height: 48px;
1092
+ display: flex;
1093
+ align-items: center;
1094
+ justify-content: center;
1095
+ background-color: ${s.theme.colors.white};
1096
+
1097
+ // zoom
1098
+ [data-animation-type='zoom'] & {
1099
+ transition: transform ${zt}ms ease-in-out;
1100
+ }
1101
+
1102
+ [data-animation-type='zoom'][data-floatmenu-open='true'] & {
1103
+ transform: scale(1);
1104
+ }
1105
+
1106
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1107
+ transform: scale(0);
1108
+ }
1109
+
1110
+ > img {
1111
+ width: 24px;
1112
+ height: 24px;
1113
+ object-fit: contain;
1114
+ }
1115
+ `,Rt=ae.default.div`
1116
+ padding: 16px;
1117
+ width: 375px;
1118
+ word-wrap: break-word;
1119
+ word-break: break-word;
1120
+ ${l.MediaQueries.mbDown} {
1121
+ width: 100%;
1122
+ }
1123
+ &[data-theme='helloSites'] {
1124
+ background: ${s.theme.colors.secondaryBase};
1125
+ box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.1);
1126
+ }
1127
+ &[data-theme='marryBaby'] {
1128
+ border: none;
1129
+ background: ${s.theme.mbColors.pink};
1130
+ border-radius: 12px 12px 0 0;
1131
+ }
1132
+ &[data-is-open='false'] {
1133
+ display: none;
1134
+ }
1135
+ &[data-default-position='true'] {
1136
+ position: fixed;
1137
+ z-index: 1000;
1138
+ bottom: 0;
1139
+ right: 0;
1140
+ ${l.MediaQueries.mbDown} {
1141
+ left: 0;
1142
+ right: unset;
1143
+ }
1144
+ }
1145
+ `,Gt=ae.default.p`
1146
+ position: relative;
1147
+ padding-left: 24px;
1148
+ color: ${s.theme.colors.white};
1149
+ font-size: 14px;
1150
+ font-weight: 600;
1151
+ line-height: 22px;
1152
+ &[data-has-content='true'] {
1153
+ ::before {
1154
+ position: absolute;
1155
+ top: 0;
1156
+ bottom: 0;
1157
+ left: 0;
1158
+ width: 16px;
1159
+ height: 16px;
1160
+ margin: auto 0;
1161
+ 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");
1162
+ }
1163
+ }
1164
+ `,Ut=ae.default.p`
1165
+ margin-top: 2px;
1166
+ color: ${s.theme.colors.white};
1167
+ font-size: 12px;
1168
+ font-weight: 400;
1169
+ line-height: 18px;
1170
+ a {
1171
+ color: ${s.theme.colors.white};
1172
+ text-decoration: none;
1173
+ text-decoration-line: underline;
1174
+ }
1175
+ `,Wt=ae.default.div`
1176
+ display: flex;
1177
+ align-items: center;
1178
+ margin-top: 8px;
1179
+ gap: 16px;
1180
+ `,Vt=ae.default.div`
1181
+ padding: 7px 28px;
1182
+ background: ${s.theme.colors.white};
1183
+ border-radius: ${s.theme.borderRadius};
1184
+ color: ${s.theme.colors.secondaryBase};
1185
+ cursor: pointer;
1186
+ font-size: 12px;
1187
+ font-weight: 600;
1188
+ line-height: 18px;
1189
+ `,qt=ae.default.a`
1190
+ color: ${s.theme.colors.white};
1191
+ font-size: 12px;
1192
+ font-weight: 600;
1193
+ line-height: 22px;
1194
+ text-decoration: none;
1195
+ text-decoration-line: underline;
1196
+ `,Qt=f.keyframes`
1197
+ from {
1198
+ transform: translateY(100%);
1199
+ visibility: visible;
1200
+ }
1201
+
1202
+ to {
1203
+ transform: translateY(0);
1204
+ }
1205
+ `,Zt=f.keyframes`
1206
+ from {
1207
+ transform: translate(0, 0);
1208
+ }
1209
+
1210
+ to {
1211
+ visibility: hidden;
1212
+ transform: translate(0, 100%);
1213
+ }
1214
+ `,Yt=ae.default.div`
1215
+ cursor: pointer;
1216
+ display: flex;
1217
+ flex-direction: column;
1218
+ align-items: center;
1219
+ justify-items: center;
1220
+ gap: 4px;
1221
+
1222
+ .mobile-navigation-label {
1223
+ font-weight: 500;
1224
+ font-size: 10px;
1225
+ line-height: 16px;
1226
+ color: ${s.theme.colors.gray600};
1227
+ overflow: hidden;
1228
+ text-overflow: ellipsis;
1229
+ white-space: nowrap;
1230
+ width: 60px;
1231
+ text-align: center;
1232
+ ${l.MediaQueries.mbDown} {
1233
+ max-width: 60px;
1234
+ }
1235
+ }
1236
+
1237
+ .mobile-navigation-icon {
1238
+ position: relative;
1239
+ height: 24px;
1240
+ &[data-no-label='true'] {
1241
+ border-radius: 50%;
1242
+ display: flex;
1243
+ flex-direction: column;
1244
+ justify-content: center;
1245
+ align-items: center;
1246
+ padding: 0px;
1247
+ gap: 16px;
1248
+ width: 40px;
1249
+ height: 40px;
1250
+ }
1251
+ }
1252
+
1253
+ &[data-is-special='true'] {
1254
+ display: flex;
1255
+ flex-direction: row;
1256
+ align-items: center;
1257
+ padding: 4px 12px 4px 6px;
1258
+ gap: 4px;
1259
+
1260
+ min-width: 152px;
1261
+ height: 32px;
1262
+ /* Neutral/Neutral-50 */
1263
+ background: ${s.theme.colors.primary50};
1264
+ border-radius: 20px;
1265
+ flex-grow: 1;
1266
+ .mobile-navigation-icon {
1267
+ &[data-no-label='true'] {
1268
+ width: 24px;
1269
+ height: 24px;
1270
+ }
1271
+ }
1272
+ .mobile-navigation-label {
1273
+ max-width: max-content;
1274
+ color: ${s.theme.colors.primaryBase};
1275
+ }
1276
+ }
1277
+
1278
+ &[data-is-active='true'] {
1279
+ .mobile-navigation-label {
1280
+ color: ${s.theme.colors.primaryBase};
1281
+ }
1282
+ }
1283
+
1284
+ &[data-is-disabled='true'] {
1285
+ opacity: 0.2;
1286
+ }
1287
+ `,Kt=ae.default.div`
1288
+ z-index: 100;
1289
+ position: fixed;
1290
+ bottom: 0;
1291
+ left: 0;
1292
+ width: 100%;
1293
+ height: 100%;
1294
+ max-height: 56px;
1295
+ min-height: 56px;
1296
+ display: flex;
1297
+ height: 100%;
1298
+ align-items: center;
1299
+ justify-content: space-evenly;
1300
+ background-color: ${s.theme.colors.white};
1301
+ @supports (padding-bottom: env(safe-area-inset-bottom)) {
1302
+ min-height: calc(56px + env(safe-area-inset-bottom));
1303
+ max-height: calc(56px + env(safe-area-inset-bottom));
1304
+ padding-bottom: env(safe-area-inset-bottom);
1305
+ }
1306
+ & > div {
1307
+ flex: 1;
1308
+ }
1309
+ a {
1310
+ text-decoration: none;
1311
+ }
1312
+ &[data-is-collapsed='true'] {
1313
+ animation: ${Zt} 500ms ease-in-out forwards;
1314
+ }
1315
+
1316
+ &[data-is-collapsed='false'] {
1317
+ animation: ${Qt} 500ms ease-in-out forwards;
1318
+ }
1319
+ &[data-template='health-tool'] {
1320
+ height: 44px;
1321
+ max-height: 44px;
1322
+ min-height: 44px;
1323
+ justify-content: space-between;
1324
+ & > div {
1325
+ flex: 0;
1326
+ }
1327
+ }
1328
+ `,Xt=ae.default.span`
1329
+ position: absolute;
1330
+ left: 100%;
1331
+ transform: translate(-10px, calc(-50% + 3px));
1332
+ background-color: ${s.theme.colors.green800};
1333
+ border-radius: 32px;
1334
+ border: 2px solid ${s.theme.colors.white};
1335
+ padding: 1px 4px;
1336
+ display: flex;
1337
+ flex-direction: column;
1338
+ justify-content: center;
1339
+ align-items: center;
1340
+ height: 20px;
1341
+ aspect-ratio: 1;
1342
+ &[data-no-label='true'] {
1343
+ left: 0;
1344
+ transform: translate(22px, -50%);
1345
+ }
1346
+ `;ae.default.div`
1347
+ position: absolute;
1348
+ top: 0;
1349
+ left: 0;
1350
+ height: 3px;
1351
+ background-color: ${s.theme.colors.primaryBase};
1352
+ transition: width 150ms linear;
1353
+ `,ae.default.div`
1354
+ a {
1355
+ text-decoration: none;
1356
+ }
1357
+ `;const Jt=e=>{var{badgeAmount:a,disabled:l=!1,hasBadge:n=!1,icon:i,isActive:o=!1,isSpecial:r=!1,label:c}=e,m=d.__rest(e,["badgeAmount","disabled","hasBadge","icon","isActive","isSpecial","label"]);return ee.default.createElement(Yt,Object.assign({"data-is-special":r,"data-is-active":o,"data-is-disabled":l},m),ee.default.createElement("div",{className:"mobile-navigation-icon","data-no-label":!Boolean(c)},n&&ee.default.createElement(Xt,{"data-no-label":!Boolean(c)},ee.default.createElement(t.Text,{size:"s5",weight:"semiBold",color:r?s.theme.colors.primaryBase:s.theme.colors.white},a)),i),c&&ee.default.createElement("span",{className:"mobile-navigation-label"},c))},ea=e=>{var{children:t,isCollapsed:a=!1,template:l="homepage"}=e,n=d.__rest(e,["children","isCollapsed","template"]);return ee.default.createElement(Kt,Object.assign({"data-is-collapsed":a,"data-template":l},n),t)};ea.Icon=Jt;const ta=ae.default.div`
1358
+ position: relative;
1359
+ width: 100%;
1360
+ height: 100%;
1361
+ background: ${e=>e.bgColor};
1362
+ background-color: inherit;
1363
+
1364
+ &[data-site='marryBaby'] {
1365
+ background-color: ${e=>e["data-banner-color"]||"#5EC08F"};
1366
+ background-image: none;
1367
+ padding-bottom: 0;
1368
+ &[data-is-embedded='true'] {
1369
+ border-top-left-radius: 16px;
1370
+ border-top-right-radius: 16px;
1371
+ }
1372
+ }
1373
+ `,aa="hhgcomp-toolbanner-wrapper",la=a.getDefaultClassWrapper(ta,aa),na=ae.default.div`
1374
+ width: 100%;
1375
+ ${l.MediaQueries.mbDown} {
1376
+ padding-bottom: 24px;
1377
+ }
1378
+
1379
+ a {
1380
+ text-decoration: none;
1381
+ color: inherit;
1382
+ }
1383
+
1384
+ &[data-site='marryBaby'] {
1385
+ a {
1386
+ text-decoration: underline;
1387
+ }
1388
+ ${l.MediaQueries.mbDown} {
1389
+ padding-bottom: 0;
1390
+ }
1391
+ }
1392
+
1393
+ ${l.MediaQueries.tdDown} {
1394
+ height: auto;
1395
+ .${aa} {
1396
+ .${"hhgcomp-toolbanner-inner"} {
1397
+ display: flex;
1398
+ align-items: center;
1399
+ ${l.MediaQueries.mbDown} {
1400
+ justify-content: space-between;
1401
+ }
1402
+ .${"hhgcomp-toolbanner-iconcontainer"} {
1403
+ position: relative;
1404
+ right: -50px;
1405
+ bottom: -20px;
1406
+ width: 110px;
1407
+ min-width: 0;
1408
+ height: auto;
1409
+ min-height: 0;
1410
+ align-self: flex-end;
1411
+ margin-bottom: -20px;
1412
+ ${l.MediaQueries.mbDown} {
1413
+ right: unset;
1414
+ }
1415
+ }
1416
+ }
1417
+ }
1418
+ }
1419
+ `,ia=ae.default.div`
1420
+ display: flex;
1421
+ flex-direction: row;
1422
+ align-items: center;
1423
+ padding: 16px 24px;
1424
+ gap: 16px;
1425
+ width: 100%;
1426
+ /* background-color: ; */
1427
+ ${l.MediaQueries.mbDown} {
1428
+ padding: 16px 0;
1429
+ }
1430
+ `,oa=ae.default.div`
1431
+ background: #ffffff;
1432
+ border-radius: 16px;
1433
+ width: 48px;
1434
+ height: 48px;
1435
+ position: relative;
1436
+
1437
+ img {
1438
+ position: absolute;
1439
+ top: 50%;
1440
+ left: 50%;
1441
+ max-width: 24px;
1442
+ max-height: 24px;
1443
+ transform: translate(-50%, -50%);
1444
+ }
1445
+ `,ra=ae.default.div`
1446
+ display: flex;
1447
+ align-items: flex-start;
1448
+ flex-direction: column;
1449
+ justify-content: space-between;
1450
+ gap: 0;
1451
+ width: 100%;
1452
+ `,sa=ae.default.div`
1453
+ display: flex;
1454
+ align-items: flex-start;
1455
+ font-weight: 400;
1456
+ font-size: 12px;
1457
+ line-height: 18px;
1458
+ letter-spacing: -0.2px;
1459
+ color: #f3f3f3;
1460
+
1461
+ > img {
1462
+ margin-top: 2px;
1463
+ margin-right: 4px;
1464
+ }
1465
+ &[data-is-mobile='false'] {
1466
+ > img {
1467
+ width: 16px;
1468
+ height: 16px;
1469
+ }
1470
+ }
1471
+ &[data-is-mobile='true'] {
1472
+ > img {
1473
+ width: 14px;
1474
+ height: 14px;
1475
+ }
1476
+ }
1477
+ `,da=({className:e,heading:l,color:n="blue",isMobile:i,bannerUrl:r,bannerUrlLarge:s,bannerColor:d,medicalReview:m={link:"#",reviewer:"",date:""},icon:u,style:p,siteType:g,isEmbeded:h})=>{var f,v;const{t:b}=o.useTranslations(),y=c.useMantineTheme(),x=i?r:s||r,E={pink:[8,6]},w=y.colors[n]||y.colors.blue,C=(null==m?void 0:m.reviewer)?ee.default.createElement(t.Text,{size:"label2",color:"#fff",as:"div",className:"embedded-review",sx:{a:{textUnderlineOffset:"2px",color:"#fff",textDecoration:"underline"}}},ee.default.createElement("div",{dangerouslySetInnerHTML:{__html:b("toolPage.toolReviewer",{expert_name:`<a href="${m.link}">${m.reviewer.trim()}</a>`,date:m.date})}})):null;return ee.default.createElement(na,{"data-is-mobile":i,style:p,"data-site":g},ee.default.createElement(la,{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===(v=E[n])||void 0===v?void 0:v[1])||4]} 90.13%)}`},"marryBaby"===g&&h?ee.default.createElement(ia,null,ee.default.createElement(oa,null,u),ee.default.createElement(ra,null,ee.default.createElement(a.Heading,{color:"white",tag:"h5",as:"h2"},l),m&&ee.default.createElement(sa,{"data-is-mobile":i},C))):ee.default.createElement(c.Flex,{gap:c.rem(24),align:"center",justify:"space-between",sx:{padding:`${c.rem(13)} ${c.rem(20)}`,gap:c.rem(24)}},ee.default.createElement(c.Box,null,ee.default.createElement(a.Heading,{tag:"h5",as:"h2",color:"#fff"},l),m&&ee.default.createElement(t.Text,{size:"n1",as:"div"},C)),ee.default.createElement(c.Flex,{justify:"center",align:"center",sx:e=>{var t,a;return{width:c.rem(64),height:c.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:c.rem(48),maxHeight:c.rem(48)},[e.fn.smallerThan("sm")]:{width:c.rem(56),height:c.rem(56),img:{maxWidth:c.rem(40),maxHeight:c.rem(40)}}}}},u))))},ca=ae.default(P.Dropdown)`
1478
+ border-color: ${s.theme.mbColors.lightGray};
1479
+ background-color: ${s.theme.colors.white};
1480
+ border-radius: 16px;
1481
+ transition: all 0.2s ease;
1482
+ &:hover {
1483
+ border-color: ${s.theme.mbColors.pink};
1484
+ box-shadow: none;
1485
+ }
1486
+
1487
+ & > ul {
1488
+ z-index: ${T.Z_INDEX.menuSearchPopup};
1489
+ max-height: 300px;
1490
+ overflow-y: auto;
1491
+ }
1492
+
1493
+ ${e=>e.groupedWithLabel&&f.css`
1494
+ & > div:first-child {
1495
+ color: ${s.theme.mbColors.midGray};
1496
+ font-size: 12px;
1497
+ }
1498
+ `}
1499
+
1500
+ &[data-dropdown-open='true'] {
1501
+ border-color: ${s.theme.mbColors.pink};
1502
+ }
1503
+ `;ae.default(a.PureInput)`
1504
+ & input {
1505
+ border-color: ${s.theme.mbColors.lightGray};
1506
+ background-color: ${s.theme.colors.white};
1507
+ border-radius: 16px;
1508
+ transition: all 0.2s ease;
1509
+ &:focus,
1510
+ &:hover {
1511
+ border-color: ${s.theme.mbColors.pink};
1512
+ box-shadow: none;
1513
+ }
1514
+ }
1515
+
1516
+ & .displayIcon {
1517
+ pointer-events: none;
1518
+ }
1519
+ `;const ma=ae.default(x.Input)`
1520
+ & label {
1521
+ position: absolute;
1522
+ z-index: 1;
1523
+ top: 16px;
1524
+
1525
+ left: 16px;
1526
+ color: ${s.theme.mbColors.midGray};
1527
+ pointer-events: none;
1528
+ transition: all 0.2s ease;
1529
+ white-space: nowrap;
1530
+ overflow: hidden;
1531
+ text-overflow: ellipsis;
1532
+ max-width: 240px;
1533
+
1534
+ &[data-size='label2'] {
1535
+ font-size: 12px;
1536
+ }
1537
+
1538
+ ${l.MediaQueries.tdDown} {
1539
+ max-width: 220px;
1540
+ }
1541
+ }
1542
+ & input {
1543
+ ::placeholder {
1544
+ color: ${s.theme.mbColors.gray};
1545
+ font-size: 14px;
1546
+ }
1547
+
1548
+ ::-webkit-input-placeholder {
1549
+ /* Chrome/Opera/Safari */
1550
+ color: ${s.theme.mbColors.gray};
1551
+ font-size: 14px;
1552
+ }
1553
+ ::-moz-placeholder {
1554
+ /* Firefox 19+ */
1555
+ color: ${s.theme.mbColors.gray};
1556
+ font-size: 14px;
1557
+ }
1558
+ :-ms-input-placeholder {
1559
+ /* IE 10+ */
1560
+ color: ${s.theme.mbColors.gray};
1561
+ font-size: 14px;
1562
+ }
1563
+ :-moz-placeholder {
1564
+ /* Firefox 18- */
1565
+ color: ${s.theme.mbColors.gray};
1566
+ font-size: 14px;
1567
+ }
1568
+ height: ${e=>"sm"===e.size?48:72}px;
1569
+ padding-top: 27px;
1570
+ border-color: ${s.theme.mbColors.lightGray};
1571
+ background-color: ${s.theme.colors.white};
1572
+ border-radius: 16px;
1573
+ transition: all 0.2s ease;
1574
+ padding-top: ${e=>e.value?"38px":"27px"};
1575
+
1576
+ &:focus,
1577
+ &:hover {
1578
+ border-color: ${s.theme.mbColors.pink};
1579
+ box-shadow: none;
1580
+ }
1581
+ }
1582
+
1583
+ &[data-has-action-icon] {
1584
+ input {
1585
+ padding-top: ${e=>e.value?"38px":"27px"};
1586
+ padding-bottom: ${e=>e.value?"16px":"27px"};
1587
+ }
1588
+
1589
+ label {
1590
+ position: absolute;
1591
+ z-index: 1;
1592
+ top: 16px;
1593
+ padding-right: 46px;
1594
+ }
1595
+ }
1596
+ `,ua=ae.default.div`
1597
+ width: 100%;
1598
+ `,pa=ae.default.div`
1599
+ #due-date-dropdown {
1600
+ z-index: 9;
1601
+ width: 100%;
1602
+ min-width: unset;
1603
+ max-width: unset;
1604
+
1605
+ ${l.MediaQueries.mbDown} {
1606
+ font-size: 14px;
1607
+ }
1608
+ ${l.MediaQueries.tdUp} {
1609
+ font-size: 16px;
1610
+ &[data-is-side='true'] {
1611
+ font-size: 14px;
1612
+ }
1613
+ }
1614
+ color: ${s.theme.colors.gray800};
1615
+ > div {
1616
+ white-space: nowrap;
1617
+ overflow: hidden;
1618
+ text-overflow: ellipsis;
1619
+ }
1620
+ }
1621
+ display: flex;
1622
+ width: 100%;
1623
+ justify-content: space-between;
1624
+ `,ga=ae.default(ua)`
1625
+ .due-date-input {
1626
+ width: 100%;
1627
+ min-width: unset;
1628
+ max-width: unset;
1629
+ color: ${s.theme.colors.gray800};
1630
+ }
1631
+ .due-date-calculate-button {
1632
+ margin-right: auto;
1633
+ margin-left: auto;
1634
+ }
1635
+ input {
1636
+ &[data-is-side='true'] {
1637
+ ${l.MediaQueries.tdUp} {
1638
+ font-size: 14px;
1639
+ }
1640
+ }
1641
+ ${l.MediaQueries.mbDown} {
1642
+ font-size: 14px;
1643
+ }
1644
+ ${l.MediaQueries.tdUp} {
1645
+ font-size: 16px;
1646
+ }
1647
+ }
1648
+ `;ae.default.div`
1649
+ display: flex;
1650
+ align-items: right;
1651
+
1652
+ & > p {
1653
+ display: inline-block;
1654
+ border-bottom: solid 1px ${s.theme.colors.primaryBase};
1655
+ margin-bottom: 24px;
1656
+ margin-left: auto;
1657
+ color: ${s.theme.colors.primaryBase};
1658
+ cursor: pointer;
1659
+ font-size: 11px;
1660
+ line-height: 16px;
1661
+ text-align: right;
1662
+ }
1663
+ `;const ha=ae.default.img`
1664
+ img& {
1665
+ width: 16px;
1666
+ height: 16px;
1667
+ }
1668
+ `;var fa;ae.default(ha)`
1669
+ margin-right: 4px;
1670
+ `,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(fa||(fa={}));const va="yyyy-MM-dd",ba=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,ya=({locale:a,onClick:l,siteType:i,pageUrl:r})=>{const{t:d}=o.useTranslations(),[c,m]=e.useState(new Date);return ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(ga,{className:"input-form","data-is-side":!0},"marryBaby"===i?ee.default.createElement(ma,{label:d("dueDatePage.conceptionDate"),name:"date",size:"md",value:ba(c),CustomInput:ee.default.createElement(N.DatePicker,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>ee.default.createElement(x.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&ie.default(c).format(T.DUE_DATE_FORMAT)}))}),actionIcon:ee.default.createElement(t.Icon.CalendarMB,{size:32})}):ee.default.createElement(x.Input,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.conceptionDate")),value:ba(c),name:"date",size:"md",className:"due-date-input",CustomInput:ee.default.createElement(N.DatePicker,{customInput:e=>ee.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:ba(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:S.DATE_FORMAT,onChange:e=>{m(e)},placeholder:"placeholder"})})),ee.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,onClick:()=>{l((e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:fa.conception+1,conception_date:C.format(e,va),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}})(c),`${u.QUERY_HEALTH_TOOL.type}=1&sd=${C.format(c,va)}&${u.QUERY_HEALTH_TOOL.additional}= `)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},xa=({locale:a,onClick:l,siteType:i,pageUrl:r})=>{const{t:d}=o.useTranslations(),[c,m]=e.useState(new Date),[p,g]=e.useState("3");return ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(ga,{className:"input-form","data-is-side":!0},"marryBaby"===i?ee.default.createElement(ma,{label:d("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:ba(c),CustomInput:ee.default.createElement(N.DatePicker,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>ee.default.createElement(x.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&ie.default(c).format(T.DUE_DATE_FORMAT)}))}),actionIcon:ee.default.createElement(t.Icon.CalendarMB,{size:32})}):ee.default.createElement(x.Input,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray700,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.ivf.transferDate")),value:ba(c),name:"date",size:"md",className:"due-date-input",CustomInput:ee.default.createElement(N.DatePicker,{customInput:e=>ee.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:ba(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:S.DATE_FORMAT,onChange:e=>{m(e)},placeholder:"placeholder"})})),ee.default.createElement("div",{style:{width:"100%"}},ee.default.createElement(lt,{id:"radio-transfer-date",direction:"vertical",size:"small",value:p,onChange:e=>g(e),options:[{value:"3",label:d("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:d("dueDatePage.ivf.transferDateRadio",{number:5})}]})),ee.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,onClick:()=>{l(((e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:fa.IVF+1,ivf_transfer_date:C.format(e,va),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}})(c,Number(p)),`${u.QUERY_HEALTH_TOOL.type}=2&${u.QUERY_HEALTH_TOOL.startDate}=${C.format(c,va)}&${u.QUERY_HEALTH_TOOL.additional}=${p}`)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},Ea=({locale:a,onClick:l,siteType:i,pageUrl:r})=>{const{t:d}=o.useTranslations(),[c,m]=e.useState(28),[p,g]=e.useState(new Date);return ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(ga,{className:"input-form","data-is-side":!0},"marryBaby"===i?ee.default.createElement(ma,{label:d("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:ba(p),CustomInput:ee.default.createElement(N.DatePicker,{onChange:e=>{g(e)},placeholder:"dd/mm/yyyy",pickedDate:p,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>ee.default.createElement(x.Input,Object.assign({name:"birthday",size:"md"},e,{value:p&&ie.default(p).format(T.DUE_DATE_FORMAT)}))}),actionIcon:ee.default.createElement(t.Icon.CalendarMB,{size:32})}):ee.default.createElement(x.Input,{className:"input-section due-date-input",label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.lastPeriod.lastPeriodLabel")),value:ba(p),name:"date",size:"md",CustomInput:ee.default.createElement(N.DatePicker,{customInput:e=>ee.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:ba(p)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:p,displayDateFormat:S.DATE_FORMAT,onChange:e=>{g(e)},placeholder:"placeholder"})})),ee.default.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===i?"marryBaby":""},"marryBaby"===i?ee.default.createElement(M.MarryBabyText,{type:"bodytext-3",color:s.theme.mbColors.midGray},d("dueDatePage.lastPeriod.periodLengthLabel")):ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600,style:{marginBottom:"0.5rem"}},d("dueDatePage.lastPeriod.periodLengthLabel")),ee.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===i&&ee.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:s.theme.colors.gray600},c),ee.default.createElement(A.Slider,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==i,withControl:"marryBaby"!==i,onChange:m,value:c,label:"marryBaby"!==i?void 0:null}))),ee.default.createElement(n.Button,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",onClick:()=>l(((e,t)=>{const a=t-21+272,l=new Date(e);return l.setDate(l.getDate()+a),{startDate:e,dueDate:l,otherInfo:{method:fa.lastPeriod+1,first_day:C.format(e,va),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}})(p,c),`${u.QUERY_HEALTH_TOOL.type}=0&${u.QUERY_HEALTH_TOOL.startDate}=${C.format(p,va)}&${u.QUERY_HEALTH_TOOL.additional}=${c}`),role:"button"},d("dueDatePage.lastPeriod.calculate")))},wa=ae.default.div`
1671
+ &[data-is-side='true'] {
1672
+ width: 100%;
1673
+ margin-bottom: 0;
1674
+ }
1675
+ ${l.MediaQueries.mbDown} {
1676
+ width: 100%;
1677
+ margin-bottom: 0;
1678
+ }
1679
+
1680
+ margin-bottom: 24px;
1681
+
1682
+ & > :not(:last-child) {
1683
+ margin-bottom: 8px;
1684
+ }
1685
+
1686
+ .gender-selector {
1687
+ & > :not(:last-child) {
1688
+ margin-right: 16px;
1689
+ }
1690
+
1691
+ & > div {
1692
+ width: calc(50% - 8px);
1693
+
1694
+ ${l.MediaQueries.mbUp} {
1695
+ max-width: 186px;
1696
+ justify-self: left;
1697
+ }
1698
+ }
1699
+ }
1700
+ `,Ca=ae.default.div`
1701
+ margin-bottom: 20px;
1702
+ width: 100%;
1703
+
1704
+ & > :not(:last-child) {
1705
+ margin-bottom: 8px;
1706
+ }
1707
+ .gender-selector {
1708
+ & > div {
1709
+ width: calc(50% - 8px);
1710
+ }
1711
+ }
1712
+ `,ka=ae.default.div`
1713
+ width: 100%;
1714
+ display: flex;
1715
+ justify-content: center;
1716
+ ${l.MediaQueries.mbUp} {
1717
+ padding: 0 16px;
1718
+ &[data-is-side='true'] {
1719
+ margin-top: 24px;
1720
+ }
1721
+ }
1722
+
1723
+ ${l.MediaQueries.mbDown} {
1724
+ margin-top: 24px;
1725
+ &[data-site='marryBaby'] {
1726
+ margin-top: 12px;
1727
+ }
1728
+ }
1729
+ & > :not(:last-child) {
1730
+ margin-bottom: 8px;
1731
+ }
1732
+
1733
+ button {
1734
+ width: 100%;
1735
+ margin: auto;
1736
+ ${l.MediaQueries.mbUp} {
1737
+ max-width: 200px;
1738
+ }
1739
+ }
1740
+ `,Ba=ae.default.div`
1741
+ width: 100%;
1742
+ display: flex;
1743
+ flex-wrap: wrap;
1744
+ justify-content: space-between;
1745
+ .input-section {
1746
+ display: flex;
1747
+ flex-direction: column;
1748
+ }
1749
+
1750
+ ${l.MediaQueries.mbDown} {
1751
+ flex-direction: column;
1752
+ .input-section {
1753
+ width: 100%;
1754
+ }
1755
+ }
1756
+ `,Ta=ae.default.div`
1757
+ position: relative;
1758
+ width: calc(50% - 8px);
1759
+
1760
+ &[data-is-side='true'] {
1761
+ .label {
1762
+ margin-bottom: 9px;
1763
+ }
1764
+ }
1765
+ ${l.MediaQueries.mbDown} {
1766
+ .label {
1767
+ margin-bottom: 9px;
1768
+ }
1769
+ }
1770
+ margin-bottom: 24px;
1771
+ #weight-gain-dropdown {
1772
+ z-index: 9;
1773
+ width: 100%;
1774
+ min-width: unset;
1775
+ max-width: unset;
1776
+ color: ${s.theme.colors.gray800};
1777
+ & > ul {
1778
+ z-index: 1;
1779
+ max-height: 300px;
1780
+ overflow-y: scroll;
1781
+ }
1782
+ }
1783
+ `,Sa=ae.default.div`
1784
+ margin-bottom: 24px;
1785
+ width: 100%;
1786
+
1787
+ ${l.MediaQueries.mbUp} {
1788
+ padding: 0 16px;
1789
+ }
1790
+ .card {
1791
+ display: flex;
1792
+ align-items: center;
1793
+ justify-content: space-between;
1794
+
1795
+ & > :not(:last-child) {
1796
+ margin-bottom: 8px;
1797
+ }
1798
+
1799
+ .gender-selector {
1800
+ row-gap: 12px;
1801
+
1802
+ & > :not(:last-child) {
1803
+ margin-right: 16px;
1804
+ }
1805
+
1806
+ & > div {
1807
+ ${l.MediaQueries.mbUp} {
1808
+ width: calc(18% - 4px);
1809
+ max-width: 186px;
1810
+ justify-self: left;
1811
+ }
1812
+
1813
+ ${l.MediaQueries.mbDown} {
1814
+ width: calc(31% - 8px);
1815
+ max-width: 109px;
1816
+ justify-self: left;
1817
+ }
1818
+ }
1819
+ }
1820
+
1821
+ .gender-image {
1822
+ width: 23px;
1823
+ height: 36px;
1824
+ object-fit: contain;
1825
+ }
1826
+ }
1827
+ .note {
1828
+ display: flex;
1829
+ align-items: center;
1830
+ padding-top: 8px;
1831
+ padding-bottom: 16px;
1832
+ }
1833
+ `,Na=({onSubmitDueDate:a,locale:l,isSide:n,siteType:i})=>{const{t:r}=o.useTranslations(),[d,c]=e.useState(fa.lastPeriod),m=[{value:fa.lastPeriod,label:r("dueDatePage.lastPeriod")},{value:fa.conception,label:r("dueDatePage.conceptionDate")},{value:fa.IVF,label:r("dueDatePage.ivf")}],u=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return ee.default.createElement(Ba,null,ee.default.createElement(ua,{className:"input-form input-section","data-is-side":!0},"marryBaby"===i?ee.default.createElement(ca,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:m,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:m[d],onChange:e=>{c(e.value)}}):ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.calculationMethod")),ee.default.createElement(pa,{"data-is-side":n},ee.default.createElement(P.Dropdown,{options:m,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:m[d],onChange:e=>{c(e.value)}})))),d===fa.lastPeriod?ee.default.createElement(Ea,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:u}):null,d===fa.conception?ee.default.createElement(ya,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:u}):null,d===fa.IVF?ee.default.createElement(xa,{locale:l,onClick:a,isSide:n,siteType:i,pageUrl:u}):null)},Aa=ae.default.form`
1834
+ margin: auto;
1835
+ ${l.MediaQueries.mbUp} {
1836
+ width: 100%;
1837
+ padding: 20px;
1838
+ display: flex;
1839
+ justify-content: space-between;
1840
+ flex-wrap: wrap;
1841
+ }
1842
+ ${l.MediaQueries.mbDown} {
1843
+ padding: 16px;
1844
+ }
1845
+ .due-date-calculate-button {
1846
+ width: 100%;
1847
+ margin: 12px auto 0;
1848
+ ${l.MediaQueries.mbUp} {
1849
+ max-width: 200px;
1850
+ }
1851
+ }
1852
+ &[data-is-side='true'] {
1853
+ ${l.MediaQueries.mbUp} {
1854
+ padding: 24px 40px 0px 40px;
1855
+ }
1856
+ }
1857
+ .input-weight-form {
1858
+ display: flex;
1859
+ flex-wrap: wrap;
1860
+ justify-content: space-between;
1861
+ padding: 0 16px;
1862
+ }
1863
+ .input-form {
1864
+ display: flex;
1865
+
1866
+ ${l.MediaQueries.mbUp} {
1867
+ margin-bottom: 24px;
1868
+ width: calc(50% - 8px);
1869
+ }
1870
+ &[data-is-side='true'] {
1871
+ ${l.MediaQueries.mbUp} {
1872
+ margin-bottom: 8px;
1873
+ width: 100%;
1874
+ }
1875
+ }
1876
+ ${l.MediaQueries.mbDown} {
1877
+ margin-bottom: 8px;
1878
+ }
1879
+ .label-text {
1880
+ overflow: hidden;
1881
+ text-overflow: ellipsis;
1882
+ -webkit-line-clamp: 2;
1883
+ display: -webkit-box;
1884
+ -webkit-box-orient: vertical;
1885
+ }
1886
+ }
1887
+ .input-form-pwg {
1888
+ display: flex;
1889
+ width: calc(50% - 8px);
1890
+
1891
+ ${l.MediaQueries.mbUp} {
1892
+ margin-bottom: 24px;
1893
+ }
1894
+ &[data-is-side='true'] {
1895
+ ${l.MediaQueries.mbUp} {
1896
+ margin-bottom: 8px;
1897
+ }
1898
+ }
1899
+ ${l.MediaQueries.mbDown} {
1900
+ margin-bottom: 8px;
1901
+ width: 100%;
1902
+ }
1903
+ .label-text {
1904
+ overflow: hidden;
1905
+ text-overflow: ellipsis;
1906
+ -webkit-line-clamp: 2;
1907
+ display: -webkit-box;
1908
+ -webkit-box-orient: vertical;
1909
+ }
1910
+ }
1911
+ .day-slider {
1912
+ width: 100%;
1913
+ ${l.MediaQueries.mbUp} {
1914
+ width: calc(50% - 8px);
1915
+ &[data-is-side='true'] {
1916
+ width: 100%;
1917
+ }
1918
+ }
1919
+ }
1920
+ `,Ma="hhgcomp-embedtoolcard-content",Pa=a.getDefaultClassWrapper(Aa,Ma),Da=ae.default.div`
1921
+ padding: 0;
1922
+ background-color: white;
1923
+ border: 1px solid #e4e8ec;
1924
+ border-radius: 4px;
1925
+
1926
+ &[data-site='marryBaby'] {
1927
+ background-color: ${s.theme.mbColors.green};
1928
+ border-radius: 16px;
1929
+ }
1930
+ .due-date-cal {
1931
+ .${Ma} {
1932
+ ${l.MediaQueries.mbUp} {
1933
+ padding: 24px;
1934
+ }
1935
+ ${l.MediaQueries.mbDown} {
1936
+ padding: 16px;
1937
+ }
1938
+ }
1939
+ display: table;
1940
+ width: 100%;
1941
+ .slider-due-date {
1942
+ margin-bottom: 12px;
1943
+ width: 100%;
1944
+ margin-left: 0px;
1945
+ margin-right: 0px;
1946
+ .slider-outer-wrapper {
1947
+ margin: 2rem -0.5rem 1rem;
1948
+ }
1949
+ &[data-theme='marryBaby'] {
1950
+ padding: 1rem;
1951
+ background: white;
1952
+ border-radius: 1rem;
1953
+ .slider-outer-wrapper {
1954
+ gap: 12px;
1955
+ display: flex;
1956
+ align-items: center;
1957
+ margin: 0.5rem;
1958
+ }
1959
+ }
1960
+ }
1961
+ .input-form {
1962
+ display: flex;
1963
+ ${l.MediaQueries.mbUp} {
1964
+ width: calc(50% - 8px);
1965
+ margin-bottom: 24px;
1966
+ }
1967
+ &[data-is-side='true'] {
1968
+ ${l.MediaQueries.mbUp} {
1969
+ margin-bottom: 12px;
1970
+ width: 100%;
1971
+ }
1972
+ }
1973
+ ${l.MediaQueries.mbDown} {
1974
+ margin-bottom: 8px;
1975
+ }
1976
+ }
1977
+ }
1978
+ .heart-rate-cal {
1979
+ .slider-heart-rate {
1980
+ margin-bottom: 12px;
1981
+ width: 100%;
1982
+ margin-left: 0px;
1983
+ margin-right: 0px;
1984
+ .slider-outer-wrapper {
1985
+ margin: 2rem -0.5rem 1rem;
1986
+ }
1987
+ }
1988
+ }
1989
+ .ovulation-cal {
1990
+ display: flex;
1991
+ /* padding-top: 24px; */
1992
+ justify-content: space-between;
1993
+ flex-wrap: wrap;
1994
+ .slider-ovulation {
1995
+ margin-bottom: 12px;
1996
+ /* width: 100%; */
1997
+ margin-left: 0px;
1998
+ margin-right: 0px;
1999
+ .slider-outer-wrapper {
2000
+ margin: 2rem -0.5rem 1rem;
2001
+ }
2002
+ &[data-theme='marryBaby'] {
2003
+ padding: 1rem;
2004
+ background: white;
2005
+ border-radius: 1rem;
2006
+ .slider-outer-wrapper {
2007
+ gap: 12px;
2008
+ display: flex;
2009
+ align-items: center;
2010
+ margin: 0.5rem;
2011
+ }
2012
+ }
2013
+ }
2014
+ .input-form {
2015
+ display: flex;
2016
+ ${l.MediaQueries.mbUp} {
2017
+ width: calc(50% - 8px);
2018
+ margin-bottom: 24px;
2019
+ &[data-is-side='true'] {
2020
+ margin-bottom: 12px;
2021
+ width: 100%;
2022
+ }
2023
+ }
2024
+ ${l.MediaQueries.mbDown} {
2025
+ margin-bottom: 8px;
2026
+ }
2027
+ }
2028
+ }
2029
+ .pwg-view-mobile {
2030
+ &[data-is-side='true'] {
2031
+ display: flex;
2032
+ flex-wrap: wrap;
2033
+ justify-content: space-between;
2034
+ }
2035
+ ${l.MediaQueries.mbDown} {
2036
+ display: flex;
2037
+ flex-wrap: wrap;
2038
+ justify-content: space-between;
2039
+ padding: 16px 0;
2040
+ }
2041
+ .hide-asking-mobile {
2042
+ gap: 10px;
2043
+ &[data-is-side='true'] {
2044
+ ${l.MediaQueries.mbUp} {
2045
+ display: none;
2046
+ }
2047
+ }
2048
+ ${l.MediaQueries.mbDown} {
2049
+ display: none;
2050
+ }
2051
+ }
2052
+ .hide-asking-desk {
2053
+ gap: 10px;
2054
+ &[data-is-side='true'] {
2055
+ ${l.MediaQueries.mbUp} {
2056
+ display: unset;
2057
+ }
2058
+ }
2059
+ ${l.MediaQueries.mbUp} {
2060
+ display: none;
2061
+ }
2062
+ }
2063
+ }
2064
+ input[type='date']::after {
2065
+ width: 16px;
2066
+ height: 16px;
2067
+ background-image: url('https://hellobacsi.com/svg/calendar.svg');
2068
+ background-repeat: no-repeat;
2069
+ background-size: contain;
2070
+ content: '';
2071
+ }
2072
+ `,za=ae.default(lt)`
2073
+ &[data-direction='horizontal'] div[data-type='circle'] {
2074
+ margin-right: 8px;
2075
+ }
2076
+ label {
2077
+ font-size: 14px;
2078
+ }
2079
+ `,La=ae.default(n.Button)`
2080
+ margin: 0 auto 24px;
2081
+ ${l.MediaQueries.mbUp} {
2082
+ max-width: 200px;
2083
+ margin: 24px auto;
2084
+ }
2085
+ `,Ia=ae.default(a.PureInput)`
2086
+ &.bmi--input {
2087
+ + .bmi--input {
2088
+ margin-top: 24px;
2089
+ }
2090
+ .inputLabel {
2091
+ display: inline-block;
2092
+ margin-bottom: 5px;
2093
+ color: #595959;
2094
+ font-weight: bold;
2095
+ font-size: 12px;
2096
+ }
2097
+ .errorLabel {
2098
+ line-height: 1.3;
2099
+ }
2100
+ input[type='radio'] {
2101
+ padding: 0;
2102
+ }
2103
+ .bmi--input-radio_gender {
2104
+ width: 100%;
2105
+ gap: 16px;
2106
+ > div {
2107
+ ${l.MediaQueries.mbDown} {
2108
+ width: calc(50% - 8px);
2109
+ }
2110
+ width: calc(33% - 8px);
2111
+ }
2112
+ & > div > div {
2113
+ display: flex;
2114
+ flex-direction: row;
2115
+ justify-content: center;
2116
+ align-content: center;
2117
+ gap: 8px;
2118
+ padding-block: 5px;
2119
+ }
2120
+ }
2121
+ .bmi-side-embed {
2122
+ > div {
2123
+ ${l.MediaQueries.mbUp} {
2124
+ width: calc(50% - 8px);
2125
+ }
2126
+ }
2127
+ }
2128
+ .radio-group-item-heading {
2129
+ margin-top: 0;
2130
+ }
2131
+ }
2132
+
2133
+ ${l.MediaQueries.mbDown} {
2134
+ &.bmi--input {
2135
+ .bmi--input-radio_gender {
2136
+ > div {
2137
+ .gender-image {
2138
+ width: 40px;
2139
+ height: 40px;
2140
+ }
2141
+ }
2142
+ }
2143
+ }
2144
+ }
2145
+ `,$a=ae.default.div`
2146
+ width: 100%;
2147
+ `,_a=ae.default.div`
2148
+ margin-bottom: 1rem;
2149
+ display: flex;
2150
+ flex-direction: column;
2151
+ gap: 16px;
2152
+ input {
2153
+ font-size: 12px;
2154
+ ::placeholder {
2155
+ color: #8c8c8c;
2156
+ opacity: 1;
2157
+ }
2158
+ }
2159
+ .input-label {
2160
+ label {
2161
+ display: inline-block;
2162
+ margin-bottom: 9px;
2163
+ color: #595959;
2164
+ font-weight: bold;
2165
+ font-size: 12px;
2166
+ }
2167
+ }
2168
+ `,Oa=ae.default.div`
2169
+ ${l.MediaQueries.mbUp} {
2170
+ display: flex;
2171
+ width: 100%;
2172
+ align-items: flex-start;
2173
+ justify-content: space-between;
2174
+ gap: 12px;
2175
+ > div {
2176
+ width: 100%;
2177
+ }
2178
+ &[data-is-side='true'] {
2179
+ ${l.MediaQueries.mbUp} {
2180
+ display: flex;
2181
+ flex-direction: column;
2182
+ gap: 0px;
2183
+ }
2184
+ }
2185
+ }
2186
+ ${l.MediaQueries.mbDown} {
2187
+ display: flex;
2188
+ flex-direction: column;
2189
+ gap: 0px;
2190
+ }
2191
+ `;function ja({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const Fa=({value:a,onChange:l,onSubmit:i,disabled:r,bmiGenerated:m,bmiUnit:p,locale:g,isSide:h})=>{var f,v,b,y;const[x,E]=e.useState(!1),{control:w,handleSubmit:C,setValue:k,watch:B}=z.useForm(),S=B(),{t:N}=o.useTranslations(),{gender:A=!1,age:M=!1,height:P=!1,weight:D=!1,objective:I=!0}=r||{},{getHealthToolLink:$}=L.useHealthToolsCache(g),_=e.useMemo((()=>$(T.HEALTH_TOOL_TYPE.OVULATION)),[$]),O=e.useMemo((()=>[{value:"lose-weight",label:N("bmi.objective.loseWeight")},{value:"maintain-weight",label:N("bmi.objective.maintainWeight")},{value:"gain-weight",label:N("bmi.objective.gainWeight")}]),[]),j=()=>{E(!0)};return e.useEffect((()=>{Object.keys(a||{}).forEach((e=>{k(e,null==a?void 0:a[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[a]),e.useEffect((()=>{l&&l(S)}),[S]),ee.default.createElement($a,null,ee.default.createElement("form",{onSubmit:C((e=>d.__awaiter(void 0,void 0,void 0,(function*(){const t=p.heightConvert(e.height),a=p.weightConvert(e.weight),l={gender:e.gender,age:e.age,height:t,weight:a,bmi:ja({height:t,weight:a})};I||(l.objective=e.objective),j(),i&&i(l)}))),j)},!A&&ee.default.createElement(_a,{"data-is-side":h},ee.default.createElement(z.Controller,{name:"gender",control:w,defaultValue:"male",render:({field:{onChange:e}})=>ee.default.createElement(Se,{defaultValue:"male",onChange:t=>e(t),styles:e=>({root:!h&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:c.rem(12)}}})})})),ee.default.createElement(Oa,{"data-is-side":h},!M&&ee.default.createElement(_a,null,ee.default.createElement(z.Controller,{name:"age",control:w,rules:null===(f=m.age)||void 0===f?void 0:f.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:i}})=>ee.default.createElement(n.Input.Number,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600},N("bmi.ageInput")," ",ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray300,as:"span"},N("bmi.ageInput.desc"))),placeholder:N("healthtool.placeholder.age"),name:e,value:a,onChange:l,error:x?null==i?void 0:i.message:"",min:0})})),!P&&ee.default.createElement(_a,null,ee.default.createElement(z.Controller,{name:"height",control:w,rules:null===(v=m.height)||void 0===v?void 0:v.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:i}})=>ee.default.createElement(n.Input.Number,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600},N("bmi.heightInput")," ",ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray300,as:"span"},N("bmi.heightInput.desc"))),placeholder:N("pwg.placeholder.height"),name:e,value:a,onChange:l,error:x?null==i?void 0:i.message:"",min:0})})),!D&&ee.default.createElement(_a,null,ee.default.createElement(z.Controller,{name:"weight",control:w,rules:null===(b=m.weight)||void 0===b?void 0:b.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:i}})=>ee.default.createElement(n.Input.Number,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600},N("bmi.weightInput")," ",ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray300,as:"span"},N("bmi.weightInput.desc"))),placeholder:N("pwg.placeholder.weight"),name:e,value:a,onChange:l,error:x?null==i?void 0:i.message:"",precision:1,min:0})})),!I&&ee.default.createElement(_a,null,ee.default.createElement(z.Controller,{name:"objective",control:w,defaultValue:"lose-weight",rules:null===(y=m.objective)||void 0===y?void 0:y.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>ee.default.createElement(Ia,{size:"md",name:e,label:m.objective.label,CustomInput:ee.default.createElement(lt,{id:"bmi-objective",className:"bmi-objective",direction:"vertical",size:"small",options:O,value:t,onChange:a}),errorMessage:x?null==l?void 0:l.message:"",className:"bmi--input bmi--input-objective"})}))),ee.default.createElement("div",{style:{display:"flex"}},ee.default.createElement(La,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${u.domainLocales[g]}/${_}`,type:"submit"},N("bmi.submit")))))},Ha=ae.default.div`
2192
+ padding-block: 40px;
2193
+
2194
+ &[data-theme='marryBaby'] {
2195
+ padding-block: 0;
2196
+ padding-top: 12px;
2197
+ }
2198
+ `,Ra=ae.default.form`
2199
+ display: flex;
2200
+ flex-direction: column;
2201
+ gap: 16px;
2202
+ `,Ga=ae.default.div`
2203
+ display: flex;
2204
+ flex-direction: column;
2205
+ gap: 6px;
2206
+ margin-top: auto;
2207
+
2208
+ .error-input input {
2209
+ border: 1px solid ${s.theme.colors.red700};
2210
+ }
2211
+ `,Ua=ae.default(B.Label)`
2212
+ display: inline-flex;
2213
+ padding-bottom: 6px;
2214
+ gap: 4px;
2215
+ `,Wa=ae.default.div`
2216
+ display: flex;
2217
+ width: 100%;
2218
+ align-items: center;
2219
+ justify-content: space-between;
2220
+ gap: 16px;
2221
+ > div {
2222
+ width: 100%;
2223
+ }
2224
+ `,Va=(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},qa=ae.default.div`
2225
+ padding: 36px;
2226
+ padding-top: 0;
2227
+ background-color: white;
2228
+ ${l.MediaQueries.mbDown} {
2229
+ padding: 16px;
2230
+ padding-top: 0;
2231
+ }
2232
+ &[data-theme='marryBaby'] {
2233
+ background-color: ${s.theme.mbColors.green};
2234
+ padding: 24px;
2235
+ border-bottom-right-radius: 16px;
2236
+ border-bottom-left-radius: 16px;
2237
+ ${l.MediaQueries.mbDown} {
2238
+ padding: 16px;
2239
+ }
2240
+ }
2241
+ `,Qa=ae.default((({onSubmit:a,onError:l,schema:i,siteType:r})=>{const{t:d}=o.useTranslations(),m="mb"===c.useMantineTheme().other.template,{control:u,setValue:g,watch:h,handleSubmit:f,formState:{isSubmitted:v}}=z.useForm({resolver:I.yupResolver(i),mode:"onSubmit",defaultValues:{name:"",gender:p.Gender.Boy,measurementDate:new Date}}),b=h("weight"),y=h("height"),E=h("head"),w=e.useMemo((()=>v&&!b&&!y&&!E),[v,b,y,E]);e.useEffect((()=>{const e=Va(y,b);g("bmi",String(e)||"0")}),[b,y]);const C=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(Ha,{"data-theme":r},ee.default.createElement(Ra,{onSubmit:f(a,l)},ee.default.createElement(z.Controller,{control:u,name:"gender",render:({field:{onChange:e,value:t}})=>ee.default.createElement($.BabyGrowthGender,{onChange:e,value:t,siteType:r})}),"marryBaby"===r?ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(z.Controller,{control:u,name:"birthday",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>ee.default.createElement(Ga,null,ee.default.createElement(ma,{label:d("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(a),CustomInput:ee.default.createElement(N.DatePicker,{onChange:e,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:t=>ee.default.createElement(x.Input,Object.assign({onChange:e,className:(null==l?void 0:l.message)?"error-input":"",name:"birthday",size:"md"},t,{value:a&&ie.default(a).format(T.DUE_DATE_FORMAT)}))}),actionIcon:ee.default.createElement(t.Icon.CalendarMB,{size:32})}))}),ee.default.createElement(Wa,null,ee.default.createElement(z.Controller,{control:u,name:"height",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>ee.default.createElement(Ga,null,ee.default.createElement(ma,{label:`${d("babyGrowth.height")} ${d("babyGrowth.cm")}`,name:"height",size:"md",value:String(t),CustomInput:ee.default.createElement(x.Input,{className:w||(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()})}))}),ee.default.createElement(z.Controller,{control:u,name:"weight",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>ee.default.createElement(Ga,null,ee.default.createElement(ma,{label:`${d("babyGrowth.weight")} ${d("babyGrowth.kg")}`,name:"weight",size:"md",value:String(t),CustomInput:ee.default.createElement(x.Input,{className:w||(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()})}))})),ee.default.createElement(Wa,null,ee.default.createElement(z.Controller,{control:u,name:"head",render:({field:{onChange:e,value:t},fieldState:{error:a}})=>ee.default.createElement(Ga,null,ee.default.createElement(ma,{label:`${d("babyGrowth.headCircumference")} ${d("babyGrowth.cm")}`,name:"head",size:"md",value:String(t),CustomInput:ee.default.createElement(x.Input,{className:w||(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()})}))}),ee.default.createElement(z.Controller,{control:u,name:"bmi",render:({field:{value:e}})=>ee.default.createElement(Ga,null,ee.default.createElement(ma,{label:`${d("babyGrowth.input.bmi")} ${d("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(e),CustomInput:ee.default.createElement(x.Input,{name:"bmi",size:"md",type:"number",value:String(e),isDisabled:!0,style:{color:"#9495A0"}})}))})),ee.default.createElement(z.Controller,{control:u,name:"measurementDate",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>ee.default.createElement(Ga,null,ee.default.createElement(ma,{label:d("babyGrowth.input.measurementDate"),name:"date",size:"md",value:ba(a),CustomInput:ee.default.createElement(N.DatePicker,{placeholder:a&&ie.default(a).format(T.DUE_DATE_FORMAT),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:e,disabledDays:{after:new Date},customInput:t=>ee.default.createElement(x.Input,Object.assign({className:(null==l?void 0:l.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&ie.default(a).format(T.DUE_DATE_FORMAT),onChange:e},t,{value:a&&ie.default(a).format(T.DUE_DATE_FORMAT)}))}),actionIcon:ee.default.createElement(t.Icon.CalendarMB,{size:32})}))}),ee.default.createElement(n.Button,{size:"lg",type:"submit",variant:m?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":C},d("babyGrowth.input.submit"))):ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(z.Controller,{control:u,name:"birthday",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>ee.default.createElement(Ga,null,ee.default.createElement(Ua,{size:"label1",htmlFor:"birthday"},ee.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},d("babyGrowth.input.birthday"))),ee.default.createElement(N.DatePicker,{onChange:e,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:n=>ee.default.createElement(x.Input,Object.assign({onChange:e,className:(null==l?void 0:l.message)?"error-input":"",name:"birthday",size:"md",actionIcon:ee.default.createElement(t.Icon.Calendar,null)},n,{value:a&&ie.default(a).format(T.DUE_DATE_FORMAT)}))}))}),ee.default.createElement(Wa,null,ee.default.createElement(z.Controller,{control:u,name:"height",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>ee.default.createElement(Ga,null,ee.default.createElement(Ua,{size:"label1",htmlFor:"height"},ee.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.height")),ee.default.createElement(t.Text,{as:"span",size:"n1",color:s.theme.colors.gray400},d("babyGrowth.cm"))),ee.default.createElement(x.Input,{className:w||(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()}))}),ee.default.createElement(z.Controller,{control:u,name:"weight",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>ee.default.createElement(Ga,null,ee.default.createElement(Ua,{size:"label1",htmlFor:"weight"},ee.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.weight")),ee.default.createElement(t.Text,{as:"span",size:"n1",color:s.theme.colors.gray400},d("babyGrowth.kg"))),ee.default.createElement(x.Input,{className:w||(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()}))})),ee.default.createElement(Wa,null,ee.default.createElement(z.Controller,{control:u,name:"head",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>ee.default.createElement(Ga,null,ee.default.createElement(Ua,{size:"label1",htmlFor:"head"},ee.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.headCircumference")),ee.default.createElement(t.Text,{as:"span",size:"n1",color:s.theme.colors.gray400},d("babyGrowth.cm"))),ee.default.createElement(x.Input,{className:w||(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()}))}),ee.default.createElement(z.Controller,{control:u,name:"bmi",render:({field:{value:e}})=>ee.default.createElement(Ga,null,ee.default.createElement(Ua,{size:"label1",htmlFor:"bmi"},ee.default.createElement(t.Text,{size:"s4",weight:"semiBold"},d("babyGrowth.input.bmi")),ee.default.createElement(t.Text,{as:"span",size:"n1",color:s.theme.colors.gray400},d("babyGrowth.kg.m2"))),ee.default.createElement(x.Input,{name:"bmi",size:"md",type:"number",value:String(e),isDisabled:!0}))})),ee.default.createElement(z.Controller,{control:u,name:"measurementDate",render:({field:{onChange:e,value:a},fieldState:{error:l}})=>ee.default.createElement(Ga,null,ee.default.createElement(Ua,{size:"label1",htmlFor:"measurementDate"},ee.default.createElement(t.Text,{as:"label",size:"s4",weight:"semiBold"},d("babyGrowth.input.measurementDate"))),ee.default.createElement(N.DatePicker,{placeholder:a&&ie.default(a).format(T.DUE_DATE_FORMAT),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:e,disabledDays:{after:new Date},customInput:n=>ee.default.createElement(x.Input,Object.assign({className:(null==l?void 0:l.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&ie.default(a).format(T.DUE_DATE_FORMAT),onChange:e,actionIcon:ee.default.createElement(t.Icon.Calendar,null)},n,{value:a&&ie.default(a).format(T.DUE_DATE_FORMAT)}))}))}),ee.default.createElement(n.Button,{size:"lg",type:"submit",variant:m?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":C},d("babyGrowth.input.submit"))))))}))`
2242
+ padding-block: 0;
2243
+ `;ae.default(da)`
2244
+ padding-inline: 20px;
2245
+
2246
+ img.embedded-icon {
2247
+ width: 140px;
2248
+ margin-left: 50%;
2249
+ align-self: center;
2250
+ }
2251
+
2252
+ ${l.MediaQueries.mbDown} {
2253
+ padding-inline: 0;
2254
+ img.embedded-icon {
2255
+ width: 125px;
2256
+ align-self: end;
2257
+ margin-left: 0;
2258
+ position: absolute;
2259
+ transform: translateY(50%);
2260
+ }
2261
+ .embedded-review {
2262
+ max-width: 200px;
2263
+ }
2264
+ }
2265
+ `;var Za=c.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(${r.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 Ya=ae.default.div`
2266
+ display: flex;
2267
+ width: 100%;
2268
+
2269
+ &[data-direction='vertical'] {
2270
+ flex-direction: column;
2271
+ }
2272
+
2273
+ &[data-direction='horizontal'] {
2274
+ flex-wrap: wrap;
2275
+ }
2276
+ `,Ka=ae.default.div`
2277
+ display: flex;
2278
+
2279
+ padding: 8px;
2280
+
2281
+ border-radius: ${s.theme.borderRadius};
2282
+ cursor: pointer;
2283
+
2284
+ & > div {
2285
+ display: flex;
2286
+ width: 100%;
2287
+ height: 100%;
2288
+ flex-direction: column;
2289
+ align-items: center;
2290
+ justify-content: flex-start;
2291
+ }
2292
+
2293
+ &[data-selected='true'] {
2294
+ border: 1px solid #2d87f3;
2295
+ background: white;
2296
+
2297
+ .radio-group-item-heading {
2298
+ color: #2d87f3;
2299
+ }
2300
+ }
2301
+ &[data-selected='false'] {
2302
+ border: 1px solid #f2f2f2;
2303
+ box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
2304
+ .radio-group-item-heading {
2305
+ color: #262626;
2306
+ }
2307
+ }
2308
+ &[data-disabled='true'] {
2309
+ cursor: auto;
2310
+ }
2311
+
2312
+ .radio-group-item-heading {
2313
+ margin-top: 8px;
2314
+ text-align: center;
2315
+ }
2316
+
2317
+ .gender-image {
2318
+ width: 23px;
2319
+ height: 36px;
2320
+ object-fit: contain;
2321
+ }
2322
+ `,Xa=({value:a,options:l,className:n,direction:i="horizontal",onChange:o,isDisabled:r})=>{const[s,d]=e.useState(a);return ee.default.createElement(Ya,{className:n,"data-direction":i},l.map(((e,l)=>ee.default.createElement(Ka,{"data-selected":(a||s)===e.value,"data-disabled":r,key:`health-tool${l}`,onClick:()=>{var t;t=e.value,r||(d(t),o&&o(t))}},ee.default.createElement("div",null,ee.default.createElement("img",{src:(a||s)===e.value?e.imageActive:e.image,className:"gender-image",alt:"",loading:"lazy"}),e.label&&ee.default.createElement(t.Text,{weight:"bold",className:"radio-group-item-heading",size:"label1"},e.label))))))},Ja=ae.default(n.Button)`
2323
+ margin: 0 auto 24px;
2324
+ width: 100%;
2325
+ ${l.MediaQueries.mbUp} {
2326
+ max-width: 200px;
2327
+ }
2328
+ `,el=ae.default.div``,tl=ae.default.div`
2329
+ display: flex;
2330
+ flex-direction: column;
2331
+ gap: 16px;
2332
+ input {
2333
+ font-size: 12px;
2334
+ }
2335
+ .gender-option {
2336
+ gap: 16px;
2337
+ > div {
2338
+ width: calc(50% - 8px);
2339
+ }
2340
+ }
2341
+ .input-label {
2342
+ label {
2343
+ display: inline-block;
2344
+ margin-bottom: 9px;
2345
+ color: #595959;
2346
+ font-weight: bold;
2347
+ font-size: 12px;
2348
+ }
2349
+ }
2350
+ `,al=ae.default.div`
2351
+ ${l.MediaQueries.mbUp} {
2352
+ display: flex;
2353
+ width: 100%;
2354
+ align-items: flex-start;
2355
+ justify-content: space-between;
2356
+ gap: 16px;
2357
+ margin-bottom: 24px;
2358
+ > div {
2359
+ width: 100%;
2360
+ }
2361
+ }
2362
+
2363
+ ${l.MediaQueries.mbDown} {
2364
+ display: flex;
2365
+ flex-direction: column;
2366
+ gap: 16px;
2367
+ margin-bottom: 8px;
2368
+ }
2369
+ &[data-is-side='true'] {
2370
+ ${l.MediaQueries.mbUp} {
2371
+ display: flex;
2372
+ flex-direction: column-reverse;
2373
+ gap: 0px;
2374
+ }
2375
+ }
2376
+ `,ll=({info:a,className:l,style:n,onChange:i,errorMessage:r={},locale:d})=>{const{t:c}=o.useTranslations(),[m,u]=e.useState(new Date),[p,g]=e.useState({age:!1,rate:!1});return e.useEffect((()=>{g({age:!1,rate:!1})}),[r]),ee.default.createElement(el,{style:n,className:l},ee.default.createElement(x.Input,{className:"input-section due-date-input",label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:ba(m),name:"date",size:"md",CustomInput:ee.default.createElement(N.DatePicker,{customInput:e=>ee.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:ba(m)})),disabledDays:{after:new Date(C.addDays(new Date,0))},locale:d,pickedDate:m,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{u(e),g((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:C.format(new Date(e),va)});i&&i(t)})(e)},placeholder:"placeholder"}),errorMessage:p.age?"":r.age}))},nl=ae.default(n.Button)`
2377
+ margin: 0 auto 24px;
2378
+ ${l.MediaQueries.mbUp} {
2379
+ max-width: 200px;
2380
+ margin: 24px auto;
2381
+ }
2382
+ `,il=ae.default.div``,ol=ae.default.div`
2383
+ margin-bottom: 1rem;
2384
+ display: flex;
2385
+ flex-direction: column;
2386
+ gap: 16px;
2387
+ input {
2388
+ font-size: 12px;
2389
+ ::placeholder {
2390
+ color: #8c8c8c;
2391
+ opacity: 1;
2392
+ }
2393
+ }
2394
+ .gender-option {
2395
+ gap: 16px;
2396
+ > div {
2397
+ width: calc(50% - 8px);
2398
+ }
2399
+ }
2400
+ .input-label {
2401
+ label {
2402
+ display: inline-block;
2403
+ margin-bottom: 9px;
2404
+ color: #595959;
2405
+ font-weight: bold;
2406
+ font-size: 12px;
2407
+ }
2408
+ }
2409
+ `,rl=ae.default.div`
2410
+ ${l.MediaQueries.mbUp} {
2411
+ display: flex;
2412
+ width: 100%;
2413
+ align-items: flex-start;
2414
+ justify-content: space-between;
2415
+ gap: 12px;
2416
+ > div {
2417
+ width: 100%;
2418
+ }
2419
+ &[data-is-side='true'] {
2420
+ ${l.MediaQueries.mbUp} {
2421
+ display: flex;
2422
+ flex-direction: column;
2423
+ gap: 0px;
2424
+ }
2425
+ }
2426
+ }
2427
+ ${l.MediaQueries.mbDown} {
2428
+ display: flex;
2429
+ flex-direction: column;
2430
+ gap: 0px;
2431
+ }
2432
+ `,sl=({info:a,className:l,style:i,onChange:r,errorMessage:d={},locale:m,onClick:p,isSide:g})=>{const{t:h}=o.useTranslations(),[f,v]=e.useState({age:!1,height:!1,weight:!1}),{getHealthToolLink:b}=L.useHealthToolsCache(m),y=e.useMemo((()=>b(T.HEALTH_TOOL_TYPE.OVULATION)),[b]),[x,E]=e.useState("male"),w=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},C=e=>{var t,l;l=e=>{v((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:e});r&&r(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||l(t)};return e.useEffect((()=>{r&&r(Object.assign(Object.assign({},a),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),e.useEffect((()=>{v({age:!1,height:!1,weight:!1})}),[d]),ee.default.createElement(il,{style:i,className:l},ee.default.createElement(ol,{"data-is-side":g},ee.default.createElement(Se,{defaultValue:"male",onChange:e=>E(e),styles:e=>({root:!g&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:c.rem(12)}}})})),ee.default.createElement(rl,{"data-is-side":g},ee.default.createElement(ol,null,ee.default.createElement(n.Input.Number,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600},h("bmi.ageInput")," ",ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray300,as:"span"},h("bmi.ageInput.desc"))),placeholder:h("healthtool.placeholder.age"),value:Number(a.age),onChange:e=>C(String(e)),error:f.age?"":d.age,min:0})),ee.default.createElement(ol,null,ee.default.createElement(n.Input.Number,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600},h("bmi.heightInput")," ",ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray300,as:"span"},h("bmi.heightInput.desc"))),placeholder:h("pwg.placeholder.height"),value:Number(a.height),onChange:e=>{return t=String(e),void w(t,(e=>{v((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},a),{height:e});r&&r(t)}));var t},error:f.height?"":d.height,min:0})),ee.default.createElement(ol,null,ee.default.createElement(n.Input.Number,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600},h("bmi.weightInput")," ",ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray300,as:"span"},h("bmi.weightInput.desc"))),placeholder:h("pwg.placeholder.weight"),value:Number(a.weight),onChange:e=>{return t=String(e),v((e=>Object.assign(Object.assign({},e),{weight:!0}))),void w(t,(e=>{const t=Object.assign(Object.assign({},a),{weight:e});r&&r(t)}));var t},error:f.weight?"":d.weight,min:0,precision:1}))),ee.default.createElement("div",{style:{display:"flex"}},ee.default.createElement(nl,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${u.domainLocales[m]}/${y}`,onClick:()=>{p(x)}},h("bmi.submit"))))},dl=({locale:a,onSubmit:l,isSide:i,siteType:r})=>{const{t:d}=o.useTranslations(),[c,m]=e.useState(new Date),[u,p]=e.useState(28),[g,h]=e.useState(7),f={cycle:u,periodDateStart:c,periodLength:g},v=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(ga,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?ee.default.createElement(ma,{label:d("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:ba(c),CustomInput:ee.default.createElement(N.DatePicker,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:C.addDays(new Date,-45),after:new Date},customInput:e=>ee.default.createElement(x.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&ie.default(c).format(T.DUE_DATE_FORMAT)}))}),actionIcon:ee.default.createElement(t.Icon.CalendarMB,{size:32})}):ee.default.createElement(x.Input,{label:ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.lastPeriod.lastPeriodLabel")),value:ba(c),size:"md",name:"date",className:"due-date-input",CustomInput:ee.default.createElement(N.DatePicker,{customInput:e=>ee.default.createElement("input",Object.assign({},e,{type:"date",className:"due-date-input",value:ba(c)})),locale:a,pickedDate:c,displayDateFormat:S.DATE_FORMAT,onChange:e=>{m(e)},disabledDays:{before:C.addDays(new Date,-45),after:new Date},placeholder:"Chọn ngày"})})),ee.default.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":i},"marryBaby"===r?ee.default.createElement(M.MarryBabyText,{type:"bodytext-3",color:s.theme.mbColors.midGray},d("ovulationPage.cycleLength")):ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959"},d("ovulationPage.cycleLength")+" ",ee.default.createElement("span",{style:{minHeight:"36px"}},d("ovulationPage.dayUnit"))),ee.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&ee.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:s.theme.colors.gray600},u),ee.default.createElement(A.Slider,{containerStyle:{flex:1},min:21,max:45,step:1,value:u,onChange:p,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),ee.default.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":i},"marryBaby"===r?ee.default.createElement(M.MarryBabyText,{type:"bodytext-3",color:s.theme.mbColors.midGray},d("ovulationPage.periodDuration")):ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959"},d("ovulationPage.periodDuration")+" ",ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},d("ovulationPage.dayUnit"))),ee.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&ee.default.createElement(t.Text,{size:"s3",weight:"semiBold",color:s.theme.colors.gray600},g),ee.default.createElement(A.Slider,{containerStyle:{flex:1},min:1,max:15,step:1,value:g,onChange:h,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),ee.default.createElement("div",{style:{width:"100%",display:"flex"}},ee.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:v,onClick:()=>{localStorage.setItem("ovulationInfo",JSON.stringify(f)),l&&l({startDate:c,cycle:u,periodLength:g})},role:"button"},d("dueDatePage.lastPeriod.calculate"))))};var cl;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(cl||(cl={}));const ml=({locale:a,onSubmitOvulation:l,isSide:n,siteType:i})=>{const{t:r}=o.useTranslations(),[s,d]=e.useState(cl.trackPeriod),c=[{label:r("ovulationPage.trackPeriod"),value:cl.trackPeriod},{label:r("ovulationPage.conceive"),value:cl.conceive},{label:r("ovulationPage.avoidPregnancy"),value:cl.avoidPregnancy}];return ee.default.createElement(Ba,null,ee.default.createElement(ua,{className:"input-form input-section","data-is-side":!0},"marryBaby"===i?ee.default.createElement(ca,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:c,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[s],onChange:e=>{d(e.value)}}):ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},r("ovulationPage.objectives")),ee.default.createElement(pa,{"data-is-side":n},ee.default.createElement(P.Dropdown,{options:c,placeholder:r("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[s],onChange:e=>{d(e.value)}})))),ee.default.createElement(dl,{siteType:i,locale:a,onSubmit:({startDate:e,cycle:t,periodLength:a})=>{l&&l({method:s,periodDateStart:e,cycle:t,periodLength:a})},isSide:n}))},ul=({siteType:t,info:l,onChange:n,errorMessage:i={}})=>{const{t:r}=o.useTranslations(),[d,c]=e.useState({weightBefore:!1,height:!1,weight:!1}),[m,u]=e.useState(0),p=e.useRef(null);e.useEffect((()=>{var e;u(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=>{c((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=>{c((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});n&&n(t)}))},v=e=>{g(e,(e=>{c((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((()=>{c({weightBefore:!1,height:!1,weight:!1})}),[i]),"marryBaby"===t?ee.default.createElement(ee.default.Fragment,null,ee.default.createElement("div",{className:"input-form-pwg input-section"},ee.default.createElement(ma,{label:r("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:ee.default.createElement(x.Input,{className:(null==d?void 0:d.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==d?void 0:d.height)?"":null==i?void 0:i.height,showErrorMessage:!1,onChange:f})})),ee.default.createElement("div",{className:"input-form-pwg input-section"},ee.default.createElement(ma,{label:r("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:ee.default.createElement(x.Input,{className:(null==d?void 0:d.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==d?void 0:d.weightBefore)?"":null==i?void 0:i.height,showErrorMessage:!1,onChange:h})})),ee.default.createElement("div",{className:"input-form-pwg input-section"},ee.default.createElement(ma,{label:r("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:ee.default.createElement(x.Input,{className:(null==d?void 0:d.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==d?void 0:d.weight)?"":null==i?void 0:i.weight,showErrorMessage:!1,onChange:v})}))):ee.default.createElement(ee.default.Fragment,null,ee.default.createElement("div",{className:"input-form-pwg"},ee.default.createElement(a.PureInput,{placeholder:r("pwg.placeholder.height"),className:"input-section",label:ee.default.createElement("span",{style:{color:s.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},r("pregnancyWeightGain.heightInput")," ",ee.default.createElement("span",{style:{color:`${s.theme.colors.gray300}`}},r("bmi.heightInput.desc"))),errorMessage:d.height?"":null==i?void 0:i.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:f})),ee.default.createElement("div",{className:"input-form-pwg"},ee.default.createElement(a.PureInput,{placeholder:r("pwg.placeholder.weight"),className:"input-section",label:ee.default.createElement("span",{style:{color:s.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:p,className:"label-text"},r("pregnancyWeightGain.weightBeforeInput")," ",ee.default.createElement("span",{style:{color:`${s.theme.colors.gray300}`}},r("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weightBefore?"":null==i?void 0:i.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:h,value:null==l?void 0:l.weightBefore})),ee.default.createElement("div",{className:"input-form-pwg"},ee.default.createElement(a.PureInput,{placeholder:r("pwg.placeholder.weight"),className:"input-section",label:ee.default.createElement("span",{style:{color:s.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:m},className:"label-text"},r("pregnancyWeightGain.weightInput")," ",ee.default.createElement("span",{style:{color:`${s.theme.colors.gray300}`}},r("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weight?"":null==i?void 0:i.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:v})))},pl=ae.default.div`
2433
+ flex: 1;
2434
+ `,gl=ae.default.div`
2435
+ padding: 0 10px;
2436
+ `,hl=ae.default.div`
2437
+ display: flex;
2438
+ height: 80px;
2439
+ align-items: center;
2440
+ .calendar-month {
2441
+ font-size: 16px;
2442
+ flex: 1;
2443
+ text-align: center;
2444
+ strong {
2445
+ margin-left: 5px;
2446
+ }
2447
+ }
2448
+ ${l.MediaQueries.mbDown} {
2449
+ height: 70px;
2450
+ }
2451
+ `,fl=ae.default.div`
2452
+ display: grid;
2453
+ grid-template-columns: repeat(7, 1fr);
2454
+ row-gap: 2px;
2455
+ `,vl=ae.default(fl)`
2456
+ margin-bottom: 8px;
2457
+ `;ae.default.div`
2458
+ height: 40px;
2459
+ width: 40px;
2460
+ display: flex;
2461
+ align-items: center;
2462
+ justify-content: center;
2463
+ `;const bl=ae.default.div`
2464
+ font-size: 14px;
2465
+ display: flex;
2466
+ justify-content: center;
2467
+ align-items: center;
2468
+ color: 1px solid ${s.theme.colors.gray800};
2469
+ font-weight: 300;
2470
+ `,yl=ae.default.div`
2471
+ width: 18px;
2472
+ position: relative;
2473
+ &::before {
2474
+ content: '';
2475
+ position: absolute;
2476
+ inset: 16px 0 0 0;
2477
+ width: 1px;
2478
+ left: 50%;
2479
+ right: 50%;
2480
+ background: ${s.theme.colors.neutral100};
2481
+ }
2482
+ `,xl=ae.default.div`
2483
+ margin: 0 auto;
2484
+ `,El=ae.default.div`
2485
+ position: relative;
2486
+ `,wl=fl,Cl=ae.default.div`
2487
+ position: relative;
2488
+ display: flex;
2489
+ justify-content: center;
2490
+ align-items: center;
2491
+ height: 34px;
2492
+ ${l.MediaQueries.mbUp} {
2493
+ height: 38px;
2494
+ }
2495
+ &[data-is-disabled='true'] {
2496
+ opacity: 0.3;
2497
+ }
2498
+ &[data-in-range='true']:not([data-is-from='true'][data-is-to='true']) {
2499
+ background-color: ${s.theme.colors.gray100};
2500
+ }
2501
+ &:before {
2502
+ position: absolute;
2503
+ top: 0;
2504
+ bottom: 0;
2505
+ right: 0;
2506
+ background-color: ${s.theme.colors.gray100};
2507
+ }
2508
+ &[data-is-from='true'][data-in-range='true'][data-is-to='false'] {
2509
+ background-color: transparent;
2510
+ &:before {
2511
+ content: '';
2512
+ left: 50%;
2513
+ right: 0;
2514
+ }
2515
+ }
2516
+
2517
+ &[data-is-to='true'][data-in-range='true'][data-is-from='false'],
2518
+ &:hover[data-in-range='true']:is([data-has-range='false'] &) {
2519
+ background-color: transparent;
2520
+ &:before {
2521
+ content: '';
2522
+ left: 0;
2523
+ right: 50%;
2524
+ }
2525
+ }
2526
+ `,kl=ae.default.div`
2527
+ position: relative;
2528
+ font-weight: 600;
2529
+ ${l.MediaQueries.mbDown} {
2530
+ width: 32px;
2531
+ height: 32px;
2532
+ }
2533
+ ${l.MediaQueries.mbUp} {
2534
+ width: 36px;
2535
+ height: 36px;
2536
+ }
2537
+ display: flex;
2538
+ justify-content: center;
2539
+ align-items: center;
2540
+ cursor: pointer;
2541
+ [data-is-disabled='true'] & {
2542
+ cursor: not-allowed;
2543
+ }
2544
+ line-height: 1;
2545
+ color: 1px solid ${s.theme.colors.gray800};
2546
+ [data-is-selected='true'] &,
2547
+ [data-is-today='true'] &,
2548
+ [data-is-selected='false']:hover & {
2549
+ border-radius: 32px;
2550
+ }
2551
+ [data-is-selected='true'] & {
2552
+ background-color: ${s.theme.colors.primaryBase};
2553
+ color: white;
2554
+ }
2555
+ [data-is-selected='false']:hover & {
2556
+ background-color: ${s.theme.colors.primary50};
2557
+ }
2558
+ [data-is-today='true'][data-is-selected='false'] & {
2559
+ background-color: transparent;
2560
+ border-radius: 32px;
2561
+ border: 1px solid ${s.theme.colors.primaryBase};
2562
+ }
2563
+ `;const Bl={"en-PH":oe.default,"vi-VN":se.default,"zh-TW":de.default,"id-ID":re.default};function Tl(t){const{value:a={from:null,to:null}}=t,[l,i]=e.useState(null),{isMobile:o}=n.useScreenSize(),[r,s]=e.useState((()=>a)),[d,c]=e.useState((()=>{var e;return C.startOfMonth(null!==(e=a.from)&&void 0!==e?e:new Date)})),m=e.useMemo((()=>C.addMonths(d,1)),[d]);const u=Object.assign(Object.assign({},t),{goToNextMonth:function(){c((e=>C.addMonths(e,1)))},goToPreviousMonth:function(){c((e=>C.subMonths(e,1)))},range:r,setRange:s,hoverDay:l,setHoverDay:i});return ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(Sl,Object.assign({},u,{date:d})),!o&&ee.default.createElement(yl,null),!o&&ee.default.createElement(Sl,Object.assign({},u,{date:m})))}function Sl({date:t,range:a,setRange:l,onChange:n,goToPreviousMonth:i,goToNextMonth:s,minDate:d,maxDate:c,close:m=(()=>{}),autoClose:u=!1,hoverDay:p,setHoverDay:g}){const{locale:h}=o.useTranslations(),f=e.useMemo((()=>{var e;return null!==(e=Bl[h])&&void 0!==e?e:Bl["en-PH"]}),[h]),v=e.useMemo((()=>C.format(t,"MMMM",{locale:f})),[t,f]),b=e.useMemo((()=>f?[1,2,3,4,5,6,0].map((e=>f.localize.day(e,{width:"narrow"}))):[]),[f]);function x(e,t){if(null===e)return ee.default.createElement(Cl,{key:`idx-${t}`,"data-empty":"true"});const n=e.getDate(),i=C.isToday(e),o=!!a.from&&C.isSameDay(a.from,e),r=!!a.to&&C.isSameDay(a.to,e),s=o||r;let h=!1;null!==p&&a.from&&C.isBefore(a.from,p)&&!a.to?h=C.isWithinInterval(e,{start:a.from,end:p}):a.from&&a.to&&(h=C.isWithinInterval(e,{start:a.from,end:a.to}));let f=!1;return d&&c?f=!C.isWithinInterval(e,{start:d,end:c}):d?f=C.isBefore(e,d):c&&(f=C.isAfter(e,c)),ee.default.createElement(Cl,{key:n,"data-is-today":i,"data-is-past":!i&&C.isPast(e),"data-is-selected":s,"data-is-disabled":f,"data-in-range":h,"data-is-from":o,"data-is-to":r,onMouseEnter:()=>{g(e)},onMouseLeave:()=>g(null),onClick:()=>{f||l((t=>(u&&a.from&&!a.to&&m(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?C.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))))}},ee.default.createElement(kl,{onClick:()=>{}},ee.default.createElement("p",null,n)))}return e.useEffect((()=>{a.from&&a.to&&n(a)}),[a]),ee.default.createElement(pl,{className:"calendar-wrapper"},ee.default.createElement(hl,null,ee.default.createElement(y.Button,{onClick:i,size:"md",color:"ghost",icon:ee.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),ee.default.createElement("div",{className:"calendar-month"},v,ee.default.createElement("strong",null,C.format(t,"yyyy"))),ee.default.createElement(y.Button,{onClick:s,size:"md",color:"ghost",icon:ee.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),ee.default.createElement(gl,null,ee.default.createElement("div",null,ee.default.createElement(vl,null,b.map(((e,t)=>ee.default.createElement(bl,{key:`${e}-${t}`},e))))),ee.default.createElement("div",null,function(){const e=t.getFullYear(),l=t.getMonth(),n=C.getDaysInMonth(t),i=[];for(let t=1;t<=n;t++)i.push(new Date(e,l,t));const o=i[0]?i[0].getDay():0;if(1!==o){const e=0===o?6:o-1;for(let t=0;t<e;t++)i.unshift(null)}return ee.default.createElement(El,{key:`month-${l}`,"data-month-index":l,"data-has-range":Boolean(a.from&&a.to)},ee.default.createElement(xl,null,ee.default.createElement(wl,null,i.map(x))))}())))}const Nl=ae.default.div`
2564
+ display: block;
2565
+ position: relative;
2566
+ width: 270px;
2567
+ input {
2568
+ pointer-events: none;
2569
+ caret-color: transparent;
2570
+ }
2571
+ ${l.MediaQueries.mbDown} {
2572
+ width: 100%;
2573
+ }
2574
+ `,Al=ae.default.div`
2575
+ display: flex;
2576
+ position: absolute;
2577
+ top: 46px;
2578
+ left: 0;
2579
+ width: 684px;
2580
+ border: 1px solid ${s.theme.colors.gray200};
2581
+ filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
2582
+ drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
2583
+ drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
2584
+ border-radius: ${s.theme.borderRadius};
2585
+ background-color: white;
2586
+ z-index: 100;
2587
+ padding-bottom: 16px;
2588
+ align-items: stretch;
2589
+ user-select: none;
2590
+ ${l.MediaQueries.mbDown} {
2591
+ width: 100%;
2592
+ }
2593
+ `;var Ml="WUqzfRb",Pl="MnVGtSY",Dl="NclbhXQ";const zl=({LinkComponent:e,page:t,isLast:a,onChangePage:l})=>{const{label:n,value:i,isDropdown:o,dropdownItems:r,dataEventCategory:s,dataEventAction:d,dataEventLabel:c}=t;return o?ee.default.createElement(P.Dropdown,{options:r,placeholder:"...",id:"",placeholderIcon:null,onChange:l,className:"collapsed-breadcrumb"}):ee.default.createElement("div",{className:Dl,title:"string"!=typeof n?i:n,"data-last":a},e&&ee.default.createElement(e,{"data-event-category":s,"data-event-action":d,"data-event-label":c,href:i||"#"},n))},Ll=ae.default.div`
2594
+ display: flex;
2595
+ gap: 20px;
2596
+ width: 100%;
2597
+ align-items: center;
2598
+ justify-content: center;
2599
+ .icon-group {
2600
+ display: flex;
2601
+ align-items: center;
2602
+ gap: 10px;
2603
+ a,
2604
+ svg {
2605
+ width: 32px;
2606
+ height: 32px;
2607
+ }
2608
+ .share {
2609
+ width: 32px;
2610
+ height: 32px;
2611
+ padding: 8px;
2612
+
2613
+ &:hover {
2614
+ background-color: ${s.theme.colors.neutral50};
2615
+ }
2616
+
2617
+ svg {
2618
+ margin: 0;
2619
+ width: 16px;
2620
+ height: 16px;
2621
+ }
2622
+ }
2623
+ }
2624
+ `,Il=()=>ee.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},ee.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"}),ee.default.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),$l=ae.default($.Drawer)`
2625
+ padding-bottom: 24px;
2626
+ .share-container {
2627
+ display: flex;
2628
+ flex-direction: column;
2629
+ gap: 24px;
2630
+ }
2631
+ .icon-group {
2632
+ margin-top: 12px;
2633
+ display: flex;
2634
+ gap: 16px;
2635
+ img {
2636
+ border-radius: 8px;
2637
+ }
2638
+ }
2639
+ .input-group {
2640
+ margin-top: 8px;
2641
+ display: flex;
2642
+ gap: 8px;
2643
+ button {
2644
+ padding: 10px;
2645
+ &:hover {
2646
+ background-color: ${s.theme.colors.neutral50};
2647
+ }
2648
+ }
2649
+ svg {
2650
+ margin: 0;
2651
+ }
2652
+ a,
2653
+ svg:not(.copy) {
2654
+ width: 32px;
2655
+ height: 32px;
2656
+ }
2657
+ }
2658
+ `,_l=()=>ee.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"copy"},ee.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"})),Ol=ae.default.div`
2659
+ position: fixed;
2660
+ z-index: 48;
2661
+ bottom: 0;
2662
+ left: 50%;
2663
+ width: fit-content;
2664
+ max-width: 100%;
2665
+ background: none;
2666
+ transform: translateX(-50%);
2667
+ .close-sticky-button {
2668
+ position: absolute;
2669
+ display: flex;
2670
+ width: 16px;
2671
+ height: 16px;
2672
+ align-items: center;
2673
+ justify-content: center;
2674
+ background: #bfbfbf;
2675
+ border-radius: 50%;
2676
+ color: white;
2677
+
2678
+ cursor: pointer;
2679
+ font-size: 12px;
2680
+ line-height: 12px;
2681
+ transform: translate(50%, -50%);
2682
+ top: 0;
2683
+ right: 0;
2684
+ }
2685
+ opacity: 0;
2686
+ pointer-events: none;
2687
+ &[data-visible='true'] {
2688
+ opacity: 1;
2689
+ pointer-events: auto;
2690
+ }
2691
+ `,jl=ae.default.div`
2692
+ display: flex;
2693
+ justify-content: center;
2694
+ align-items: center;
2695
+ flex-direction: column;
2696
+ max-width: 100%;
2697
+ width: fit-content;
2698
+ height: fit-content;
2699
+ margin-inline: auto;
2700
+ /* margin: 1rem auto; */
2701
+ &[data-no-wrapper='false'] {
2702
+ border: 1px solid ${s.theme.colors.neutral50};
2703
+ background: ${s.theme.colors.neutral50};
2704
+ }
2705
+ &[data-no-wrapper='true'] {
2706
+ line-height: 0;
2707
+ }
2708
+ &[data-header-bottom='true'] {
2709
+ flex-direction: column-reverse;
2710
+ background: none;
2711
+ border: none;
2712
+ }
2713
+ `,Fl=ae.default.div`
2714
+ width: 100%;
2715
+ padding: 0 5px 1.5px;
2716
+ display: flex;
2717
+ align-items: center;
2718
+ justify-content: center;
2719
+ gap: 5px;
2720
+ text-transform: capitalize;
2721
+ img {
2722
+ height: 12px;
2723
+ width: 12px;
2724
+ max-width: 12px;
2725
+ max-height: 12px;
2726
+ }
2727
+ &[data-header-bottom='true'] {
2728
+ background: ${s.theme.colors.neutral50};
2729
+ }
2730
+ span {
2731
+ font-size: 10px;
2732
+ line-height: 12px;
2733
+ color: ${s.theme.colors.gray400};
2734
+ font-weight: 400;
2735
+ }
2736
+ `,Hl=ae.default.div`
2737
+ background-color: white;
2738
+ background-image: url(${r.CommonGAssets.getAssetPath("close-blue.svg")});
2739
+ background-repeat: no-repeat;
2740
+ background-size: 10px;
2741
+ background-position: center;
2742
+ width: 12px;
2743
+ height: 12px;
2744
+ position: absolute;
2745
+ top: 1px;
2746
+ right: 1px;
2747
+ cursor: pointer;
2748
+ `,Rl={},Gl=e=>{if(Rl[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([Rl[e]]),delete Rl[e]}))}},Ul=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],Wl=e.forwardRef((function({className:t,adUnitPath:a,size:l,divId:n,pos:i,sizeMapping:s,contentId:d,isHidden:m,hideIfHasSubot:u,isSticky:g,refreshInterval:h,customTargetings:f,style:v,adDefaultSize:b,noWrapper:y,showCloseBtn:x,onCloseAd:E,headerBottom:w,wrapperProps:C,locale:k,isMarryBaby:B},T){const S=h||(k===p.LOCALE.Vietnam&&i.some((e=>Ul.includes(e)))?30:void 0),{t:N}=o.useTranslations(),A=e.useRef(null),M=e.useRef(null),P=e.useRef(S);P.current=S;const[D,z]=e.useState(!1),L=()=>{P.current&&(null!==M.current&&clearInterval(M.current),M.current=window.setInterval((()=>{window.googletag=window.googletag||{cmd:[]};const{googletag:e}=window;e.cmd.push((function(){Rl[n]&&e.pubads().refresh([Rl[n]])}))}),1e3*P.current))};if(e.useEffect((()=>()=>{Gl(n),M.current&&clearInterval(M.current)}),[]),e.useEffect((()=>{L()}),[S]),e.useEffect((()=>{m||(({contentId:e,adUnitPath:t,size:a,divId:l,pos:n,sizeMapping:i,hideIfHasSubot:o,customTargetings:r,onSuccess:s})=>{if(!l||!document.getElementById(l))return console.error("divId is required");Gl(l),window.googletag=window.googletag||{cmd:[]};const{googletag:d}=window;d.cmd.push((function(){const c=document.querySelector('meta[name="content_id"]'),m="string"==typeof e?e:null==c?void 0:c.content,u=d.defineSlot(t,a,l);if(u){try{r&&Object.keys(r).forEach((e=>{e&&(null==u||u.setTargeting(e,r[e]))}))}catch(e){console.error(e)}Rl[l]=u,u.setTargeting("Pos",n),u.addService(d.pubads()),m&&u.setTargeting("Content_ID",m),i&&u.defineSizeMapping(i),o&&document.getElementById("subot--container")&&u.setTargeting("chatbot",!0),d.display(l),null==s||s()}}))})({contentId:d,adUnitPath:a,size:l,divId:n,pos:i,sizeMapping:s,hideIfHasSubot:u,customTargetings:f,onSuccess:L})}),[m]),D)return null;const I=ee.default.createElement("div",{style:{position:"relative",width:"fit-content",height:"fit-content",overflow:"hidden",maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},ee.default.createElement("div",{ref:T,id:n}),x&&ee.default.createElement(Hl,{onClick:()=>{null==E||E(),z(!0)}}));if(g)return I;const $=b?b[0]:l?Array.isArray(l[0])?l[0][0]:l[0]:void 0,_=b?b[1]:l?Array.isArray(l[0])?l[0][1]:l[1]:void 0;return ee.default.createElement(c.Box,Object.assign({},C,{className:t}),ee.default.createElement(jl,{ref:A,className:t,style:v,"data-no-wrapper":!!y,"data-header-bottom":!!w},y?I:ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(Fl,{"data-header-bottom":!!w},ee.default.createElement("img",{src:B?r.CommonGAssets.getAssetPath("adsIcon-mb.svg"):r.CommonGAssets.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),ee.default.createElement("span",null,N("adBanner.title"))),ee.default.createElement("div",{style:{minWidth:$||"100%",minHeight:_||"100%",position:"relative"}},I))))})),Vl=e.memo(Wl,((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),ql=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:r.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:r.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:r.CommonGAssets.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];var Ql;!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"}(Ql||(Ql={}));const Zl={DUE_DATE:Ql.DUE_DATE,BMI:Ql.BMI,BMR:Ql.BMR,OVULATION:Ql.OVULATION,IFRAME:Ql.IFRAME,PWG:Ql.PWG,THR:Ql.THR,BABY_VACCINE:Ql.BABY_VACCINE,BABY_GROWTH:Ql.BABY_GROWTH,BABY_POOP:Ql.BABY_POOP},Yl={[Zl.DUE_DATE]:r.CommonGAssets.getAssetPath("health-tools/due-date-icon.svg")};var Kl,Xl,Jl,en;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(Kl||(Kl={})),function(e){e.Option="option"}(Xl||(Xl={})),function(e){e.Button="button",e.Checkbox="checkbox"}(Jl||(Jl={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(en||(en={}));const tn={pregnancy:Kl.Pregnant,parenting:Kl.Parenting},an={[Kl.Pregnant]:"pregnant",[Kl.Parenting]:"parent"},ln=e=>({[Zl.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:Zl.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[Zl.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:Zl.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[Zl.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:Zl.BABY_GROWTH},[u.RISK_SCREENER_NAME.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:r.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:r.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:u.RISK_SCREENER_NAME.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),nn=e.createContext({}),on=t=>{var a=d.__rest(t,[]);const{locale:l}=o.useTranslations(),{type:i,isMobile:s,currentUrl:m,isMarketing:u,isLoggedIn:p,setShouldAcquisitionModalOpen:g}=e.useContext(nn);return ee.default.createElement(c.Container,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>d.__awaiter(void 0,void 0,void 0,(function*(){const e=u?W.getCurrentBaseUrl(l)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;p?null==g||g():window.location.href=`${W.getCurrentSsoUrl(l)}/?returnUrl=${encodeURIComponent(e)}`})),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":m,className:"pointer-event-child-none"},a),ee.default.createElement(n.ImageWrap,{src:u?r.CommonGAssets.getAssetPath(`newsletter/${s?"Mobile":"Desktop"}_Marketing.png`):r.CommonGAssets.getAssetPath(`newsletter/${s?"Mobile":"Desktop"}_${i}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},rn="api/v1/categories?site={website_url}",sn="api/v1/subscription?site={website_url}",dn="api/v1/categories?site={website_url}";var cn=c.createStyles((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:c.rem(32),padding:`${c.rem(6)} ${c.rem(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const mn=({heading:l,description:n,thumbnail:i={desktop:"",mobile:""},hideDescOnMobile:o,children:r})=>{const{isMobile:s,minHeight:d}=e.useContext(nn);return ee.default.createElement(c.Box,{sx:()=>({borderRadius:c.rem(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},ee.default.createElement(c.Box,{sx:e=>({minHeight:c.rem(d),borderRadius:"inherit",background:`url(${s?i.mobile:i.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${c.rem(24)} ${c.rem(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${c.rem(22)} ${c.rem(32)}`}})},ee.default.createElement(c.Stack,{spacing:c.rem(16)},ee.default.createElement(c.Stack,{spacing:c.rem(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},l&&ee.default.createElement(a.Heading,{tag:"h4"},l),!(o&&s)&&n&&ee.default.createElement(t.Text,{size:"p4"},n)),ee.default.createElement(c.Box,null,r))))},un=a=>{const{styleType:l=Jl.Button,items:i=[],buttonProps:r,styles:s,submitBtnTracking:m}=a,{classes:p}=cn(void 0,{name:"PremiumBannerWithOptions",styles:s}),{t:g,locale:h}=o.useTranslations(),{surveyType:f,articleId:v,handleClickOption:b,hasPremiumBanner:y,source:x,isMobile:E,setShowPNModal:w}=e.useContext(nn),C=e.useMemo((()=>y?i:i.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean)),[i]),{getHealthToolLink:k}=L.useHealthToolsCache(h),B=V.useForm({initialValues:{bannerOptions:[]}}),S=e=>d.__awaiter(void 0,void 0,void 0,(function*(){return yield T.callApiWithAuth(T.getApiPath(T.PATHS.HEALTH_TOOL.CREATE,{_locale:h,type:an[f]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:v,source:x}})})),N=e.useCallback((()=>ee.default.createElement(c.Flex,{gap:c.rem(8),className:p.wrapper},C.map(((e,t)=>ee.default.createElement(c.Box,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${u.domainLocales[h]}/bot/${u.RISK_SCREENER_SLUG[h][e.activeTool]}/`:e.isLink?k(e.activeTool):void 0},ee.default.createElement(n.Button,Object.assign({className:p.button,classNames:{label:p.buttonLabel},size:"sm"},e.tracking,r,{onClick:()=>{e.isLink||(e.isPNBtn&&w(!0),S(e.value),b(e.value))}}),e.label)))))),[C,B]),A=e.useCallback((()=>ee.default.createElement(c.Flex,null,ee.default.createElement(c.Flex,{align:"center",gap:c.rem(24),sx:e=>({background:"white",borderRadius:c.rem(8),padding:c.rem(4),[e.fn.largerThan("sm")]:{paddingLeft:c.rem(16)}})},ee.default.createElement(n.Checkbox.Group,Object.assign({},B.getInputProps("bannerOptions",{type:"checkbox"})),ee.default.createElement(c.Flex,{gap:c.rem(16)},C.map(((e,t)=>ee.default.createElement(n.Checkbox,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}}))))),ee.default.createElement(n.Button,Object.assign({size:"sm"},m,r,{disabled:0===B.getInputProps("bannerOptions").value.length,leftIcon:E?ee.default.createElement(t.Icon.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=B.getInputProps("bannerOptions").value;S(e.join("|")),b(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:c.rem(38),minWidth:"auto",padding:0}}})}),!E&&g("pnBanner.submit"))))),[C,B]);return ee.default.createElement(mn,Object.assign({},a),l===Jl.Button?N():l===Jl.Checkbox?A():null)},pn=l=>{var i,r;const{t:s}=o.useTranslations(),{heading:d,description:m,thumbnail:p,btnLabel:g,value:h,isRiskScreener:f,hideDescOnMobile:v,dataEventAction:b}=l,{locale:y}=o.useTranslations(),{isMobile:x}=e.useContext(nn),{getHealthToolLink:E,allTools:C}=L.useHealthToolsCache(y),k=f?"mainBanner":"toolBanner",B=e.useMemo((()=>{const e=f?`https://${w.isProduction?"":"discover."}${u.domainLocales[y]}/bot/${u.RISK_SCREENER_SLUG[y][h]}`:E(h);return ee.default.createElement("a",{href:e},ee.default.createElement(n.Button,{size:"sm","data-event-category":"Focused Audience","data-event-action":b,"data-event-label":e},g||s("pnBanner.caclNow")))}),[C]);return"mainBanner"===k?ee.default.createElement(mn,Object.assign({},Object.assign(Object.assign({},l),{thumbnail:l.thumbnail})),B):ee.default.createElement(c.Flex,{gap:c.rem(7),align:"center",justify:"space-between",sx:e=>({borderRadius:c.rem(8),background:e.colors.blue[0],minHeight:c.rem(180),padding:`${c.rem(24)} ${c.rem(16)}`,[e.fn.largerThan("sm")]:{padding:`${c.rem(34)} ${c.rem(32)}`}})},ee.default.createElement(c.Stack,{spacing:c.rem(12)},ee.default.createElement(c.Stack,{spacing:c.rem(4)},d&&ee.default.createElement(a.Heading,{tag:"h4"},d),!(x&&v)&&m&&ee.default.createElement(t.Text,{size:"p4"},m)),ee.default.createElement(c.Flex,{gap:c.rem(8),sx:{button:{minWidth:c.rem(120)}}},B)),ee.default.createElement(c.Flex,{align:"center",justify:"center",sx:e=>({width:c.rem(96),height:c.rem(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:c.rem(112),height:c.rem(112)},img:{maxWidth:c.rem(64),[e.fn.largerThan("sm")]:{maxWidth:c.rem(73)}}})},ee.default.createElement("img",{alt:"health-tool-icon",src:p||(null===(r=null===(i=C.filter((e=>e.template===h)))||void 0===i?void 0:i[0])||void 0===r?void 0:r.icon)||Yl[h]||"",loading:"lazy"})))},gn=()=>{var t,a,l;const{t:n}=o.useTranslations(),{state:i,Outside:r}=e.useContext(nn);return(null==i?void 0:i.action)===en.ShowTool?ee.default.createElement(r,null,ln(n)[null===(t=null==i?void 0:i.props)||void 0===t?void 0:t.value]?ee.default.createElement(pn,Object.assign({},ln(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)===en.ShowOptionBanner?ee.default.createElement(r,null,ee.default.createElement(un,Object.assign({},null==i?void 0:i.props))):null},hn=a=>{var{isMobile:l,children:i,desktopBanner:o=r.CommonGAssets.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:s=r.CommonGAssets.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:m={width:937,height:536},mobileBannerRatio:u={width:750,height:480},desktopBannerRatio:p={width:420,height:536},closeProps:h}=a,f=d.__rest(a,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:v,height:b}=g.useViewportSize(),y=(b<=667?190:265)+v*u.height/u.width+74,[x,E]=e.useState(!1);return ee.default.createElement(q.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:c.rem(m.width),width:"100%",height:"100%",maxHeight:c.rem(m.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"}}})},f),l?ee.default.createElement(c.Box,{sx:{position:"relative",height:"100%"},onTouchStart:()=>E(!0)},ee.default.createElement(c.Box,{className:"mobile-template",sx:{position:"absolute",height:100*(x?1:y/b)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},ee.default.createElement(c.Box,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:x?0:c.rem(12),borderTopRightRadius:x?0:c.rem(12)}},ee.default.createElement(c.Box,{sx:{height:"calc(100% - 74px)",background:`url(${s})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},ee.default.createElement(c.UnstyledButton,Object.assign({leftIcon:ee.default.createElement(t.Icon.Close,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:c.rem(10)}},h,{onClick:()=>null==f?void 0:f.onClose()})),ee.default.createElement(c.AspectRatio,{ratio:(null==u?void 0:u.width)/(null==u?void 0:u.height),w:"100%"}),ee.default.createElement(c.Box,{sx:{padding:`${c.rem(28)} ${c.rem(16)} ${c.rem(16)}`,background:"white"}},i))))):ee.default.createElement(c.AspectRatio,{className:"desktop-template",ratio:m.width/m.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},ee.default.createElement(c.Box,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:c.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"}},ee.default.createElement("img",{alt:"",src:o,loading:"lazy",style:{borderTopLeftRadius:c.rem(8),borderBottomLeftRadius:c.rem(8),height:"100%",display:"block"}}),ee.default.createElement(c.Box,{sx:{position:"relative",height:"100%",width:(m.width-p.width)/m.width*100+"%"}},ee.default.createElement(n.Button,Object.assign({unstyled:!0,leftIcon:ee.default.createElement(t.Icon.Close,null)},h,{onClick:()=>null==f?void 0:f.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),ee.default.createElement(c.Box,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${c.rem(40)} ${c.rem(24)} 0`}},i)))))},fn="user/subscription",vn=e.createContext({}),bn=e=>{var{value:t,name:a}=e,l=d.__rest(e,["value","name"]);return ee.default.createElement(n.ChipButton,Object.assign({value:t,withIcon:!0},l,{buttonProps:{styles:()=>({leftIcon:{marginRight:c.rem(6)},root:{paddingLeft:c.rem(10),paddingRight:c.rem(10)}})}}),a)},yn=({topicsGroup:a,onTopicChange:l,isBlock:n=!1,selectedTopics:i=[],inputProps:r,labelProps:s,maxSelect:d=5,hasScroll:m,readonly:u})=>{const{action:{pushNotifications:p}}=e.useContext(T.TogetherComponentGlobalContext),g=me.default(a.map((e=>e.topics||[]))),{t:h}=o.useTranslations(),[f,v]=e.useState([]);e.useEffect((()=>{v(i)}),[i.length]),e.useEffect((()=>{null==l||l(f)}),[f]);const b=e=>{e.length>5?p({type:"danger",title:h("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:h("pnTopicSection.maxSelectError.desc")}):!u&&v((()=>g.filter((t=>e.some((e=>t.catId===e))))))};return ee.default.createElement(c.Stack,{spacing:12},a.map(((e,a)=>ee.default.createElement(c.Stack,{key:String(a),spacing:12},e.label&&ee.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),e.label),m?ee.default.createElement(c.ScrollArea,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},ee.default.createElement(c.Box,{w:800},ee.default.createElement(c.Chip.Group,Object.assign({value:f.map((e=>e.catId)),multiple:!0},r,{onChange:b}),ee.default.createElement(c.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>ee.default.createElement(bn,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking)))))))):ee.default.createElement(c.Chip.Group,Object.assign({value:f.map((e=>e.catId)),multiple:!0},r,{onChange:b}),ee.default.createElement(c.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>t.catId?ee.default.createElement(bn,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking)):ee.default.isValidElement(t.component)?t.component:null))))))))},xn=t=>{var{heading:l,children:n,stickyActions:i}=t,o=d.__rest(t,["heading","children","stickyActions"]);const{isMobile:r}=e.useContext(vn),s=ee.default.createElement(c.Stack,{spacing:c.rem(24),sx:{height:"100%"}},ee.default.createElement(a.Heading,{tag:"h4",style:{textAlign:"center"}},l),ee.default.createElement(c.Box,null,n));return ee.default.createElement(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},r?s:ee.default.createElement(c.ScrollArea,Object.assign({className:"layout-body",h:i?"calc(100% - 90px)":"100%"},o),s),i&&ee.default.createElement(c.Flex,{gap:c.rem(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:c.rem(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${c.rem(24)} 0`}})},i))},En=()=>{const{t:a,locale:l}=o.useTranslations(),{data:{userInfo:i},action:{pushNotifications:r}}=e.useContext(T.TogetherComponentGlobalContext),s=null==i?void 0:i.id,{currentUrl:m,isMobile:u,pnSuggestCategory:p=[],nextStep:g,formValues:h,setFormValues:f,onSubmit:v,submitLoading:b,selectCategory:y,setCategoryLibs:x,setSelectCategory:E,maxSelectCategory:w}=e.useContext(vn),C=p.map((e=>e.catId)),k=V.useForm({validate:{name:V.isNotEmpty(a("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},h),{fitnessTopics:C})}),[B,S]=e.useState([]),[N,A]=e.useState([]);e.useEffect((()=>{d.__awaiter(void 0,void 0,void 0,(function*(){var e;try{const t=yield T.callApiWithAuth(T.getPremiumApiPath(dn,{_locale:l}),"get"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!C.includes(e.catId)));S(p),A(a),x([...p,...a])}catch(e){console.log(e)}}))}),[]),e.useEffect((()=>{s&&k.setFieldValue("name",(null==i?void 0:i.name)||"")}),[s]);const M=()=>{""!==k.getInputProps("name").value?(f(k.getTransformedValues()),g()):k.validateField("name")},P=e.useMemo((()=>ee.default.createElement(n.Button,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:m,leftIcon:ee.default.createElement(t.Icon.Plus,{size:16,color:"#262626",useCurrentColor:!0}),onClick:M,styles:e=>({root:{borderRadius:c.rem(6),padding:"2px 15px",height:c.rem(40)},label:{fontSize:c.rem(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:c.rem(12),lineHeight:c.rem(16),height:c.rem(40)}},leftIcon:{marginRight:"5px"}})},ee.default.createElement(t.Text,{size:u?"p3":"p4"},a("home.seeMore")))),[k]);return e.useEffect((()=>{k.setFieldValue("fitnessTopics",y.map((e=>e.catId)))}),[y]),ee.default.createElement("form",{style:{height:"100%"},onSubmit:k.onSubmit((e=>{if(0===y.length)return r({type:"danger",title:a("newsletter.error.minTitle"),message:a("newsletter.error.minCotennt")}),!1;f(e),null==v||v(e.name)}))},ee.default.createElement(xn,{heading:a("healthToolPNModal.heading"),stickyActions:ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(n.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:m,loading:b,sx:{maxWidth:c.rem(240)}},a("healthToolPNModal.register")))},ee.default.createElement(c.Stack,{spacing:c.rem(16)},ee.default.createElement(n.Input,Object.assign({label:a("newsletter.welcome.description")},k.getInputProps("name"))),ee.default.createElement(yn,{topicsGroup:[...0===p.length&&0===N.length?[{topics:[{component:P}]}]:[],...p.length>0?[{label:a("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...p,...0===N.length?[{component:P}]:[]]}]:[],...N.length>0?[{label:a("healthToolPNModal.findMore.chooseFav"),topics:[...N,...N.length>0?[{component:P}]:[]]}]:[]],selectedTopics:[...B],labelProps:{size:u?"p3":"p4",color:"gray.6"},onTopicChange:E,maxSelect:w}))))},wn=e.forwardRef((function(e,a){var{label:l}=e,n=d.__rest(e,["label"]);return ee.default.createElement("div",Object.assign({ref:a},n),ee.default.createElement(c.Group,{noWrap:!0},ee.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},ee.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"})),ee.default.createElement(t.Text,{size:"p3"},l)))})),Cn=e.forwardRef((function(e,a){var{label:l}=e,n=d.__rest(e,["label"]);return ee.default.createElement("div",Object.assign({ref:a},n),ee.default.createElement(t.Text,{size:"p3"},l))})),kn=({history:e,onDelete:a})=>ee.default.createElement(c.Flex,{wrap:"wrap",gap:8},ue.default(e,"catId").map((e=>ee.default.createElement(c.Badge,{key:e.catId,rightSection:ee.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==a?void 0:a(e)},ee.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"}}},ee.default.createElement(t.Text,{size:"p4"},e.localName))))),Bn=({topics:a,onTopicChange:l,isBlock:n=!1,selectedTopics:i,labelProps:r,maxSelect:s=5})=>{const{action:{pushNotifications:d}}=e.useContext(T.TogetherComponentGlobalContext),[m,u]=e.useState([]),{t:p}=o.useTranslations();e.useEffect((()=>{u(i)}),[i.length]),e.useEffect((()=>{l(m)}),[m]);return a&&0!==a.length?ee.default.createElement(c.Stack,{spacing:12,px:16,mx:-16},ee.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},r),p("pnTopicSection.recentView")),ee.default.createElement(c.Chip.Group,{value:m.map((e=>e.catId)),onChange:e=>{n&&m.length<e.length?d({type:"danger",title:p("pnTopicSection.maxSelectError.title",{maxSelect:s}),message:p("pnTopicSection.maxSelectError.desc")}):u((()=>a.filter((t=>e.some((e=>t.catId===e))))))},multiple:!0},ee.default.createElement(c.Flex,{gap:8,wrap:"wrap"},a.map(((e,t)=>ee.default.createElement(bn,{key:t,value:e.catId,name:e.localName,isBlock:n})))))):null},Tn=e=>{var{topic:a,active:l,onClick:i}=e,o=d.__rest(e,["topic","active","onClick"]);return ee.default.createElement(c.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:c.rem(130),[e.fn.largerThan("sm")]:{minHeight:c.rem(138)}}),onClick:()=>i(a,l)},o),l&&ee.default.createElement(c.Box,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},ee.default.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},ee.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"}),ee.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"}))),ee.default.createElement(c.Box,{sx:{borderRadius:"8px"}},ee.default.createElement(n.AspectRatio,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},ee.default.createElement(c.Box,null,ee.default.createElement("img",{src:a.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),ee.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||""))},Sn=({topics:a,selectedTopics:l=[],onTopicChange:n,isBlock:i=!1,labelProps:r,pushNotifications:s,maxSelect:d=5})=>{const{t:m}=o.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:m("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:m("pnTopicSection.maxSelectError.desc")});p((t=>[...t,e]))}};e.useEffect((()=>{p(l)}),[l.length]),e.useEffect((()=>{n(u)}),[u]);const[h,f]=e.useState(!1),[v,b]=e.useState(0),[y,x]=e.useState(0),E=e.useRef(null),w=()=>{f(!1)};return ee.default.createElement(c.Stack,{spacing:10},ee.default.createElement(c.Flex,{justify:"space-between",align:"center",w:"100%"},ee.default.createElement(t.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},r),m("pnTopicSection.trending"))),ee.default.createElement(c.Box,null,ee.default.createElement(c.ScrollArea,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:E,viewportProps:{onMouseDown:e=>{e.preventDefault(),E.current&&(f(!0),b(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-v);E.current.scrollLeft=y-t}},styles:{viewport:{paddingBottom:16}}},ee.default.createElement(c.Box,{w:{base:112*a.length+8*(a.length-1)+10}},ee.default.createElement(c.Flex,{gap:8},a.map(((e,t)=>ee.default.createElement(Tn,{key:t,topic:e,onClick:g,active:u.some((t=>t.catId===e.catId)),w:{base:112}}))))))))},Nn=a=>{var{isLoggedIn:l,maxSelect:i=5,values:r=[],labelProps:s,onChange:m}=a,u=d.__rest(a,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:p}}=e.useContext(T.TogetherComponentGlobalContext),[g,h]=e.useState(""),{t:f,locale:v}=o.useTranslations(),b=e.useRef(null),[y,x]=e.useState([]),[E,w]=e.useState([]),[C,k]=e.useState([]),[B,S]=e.useState([]),[N,A]=e.useState(null),[M,P]=e.useState([]);e.useEffect((()=>{d.__awaiter(void 0,void 0,void 0,(function*(){var e,t;const a=yield T.callApiWithAuth(T.getPremiumApiPath(rn,{_locale:v}),"get"),l=(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],n=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[],i=ue.default([...l,...n],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(P(i||[]),A((null==a?void 0:a.data)||null),r.length>0){const e=l.filter((e=>r.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"interested"}))),t=n.filter((e=>r.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"trending"})));S(e),w(t)}}))}),[l]);const D=e.useMemo((()=>ue.default([...y,...E,...B,...C],"catId")),[y,E,B,C]),[z,L]=e.useState(!1);e.useEffect((()=>{D.length>=i?L(!0):L(!1),null==m||m(D)}),[D]);return ee.default.createElement(c.Stack,Object.assign({spacing:c.rem(16)},u),ee.default.createElement(c.Stack,{spacing:c.rem(8)},ee.default.createElement(t.Text,{size:"p3"},f("pnTopicSection.maxSelectError.detail",{max:i,maxTopic:D.length})),ee.default.createElement(c.MultiSelect,{ref:b,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:ee.default.createElement(t.Text,{size:"s4",color:"gray.6"},f("pnTopicSection.notFound")),itemComponent:""===g?wn:Cn,size:"lg",placeholder:f("pnTopicSection.plsEnterFavTopics"),data:M,onSearchChange:h,searchValue:g,icon:ee.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ee.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:ee.default.createElement(ee.default.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>{return t=e,d.__awaiter(void 0,void 0,void 0,(function*(){var e;const a={trending:w,recently:k,interested:S,default:x};let l="default";if(z)p({type:"danger",title:f("pnTopicSection.maxSelectError.title",{maxSelect:i}),message:f("pnTopicSection.maxSelectError.desc")});else{const n=[{key:"trending",array:null==N?void 0:N.trending},{key:"recently",array:null==N?void 0:N.recently},{key:"interested",array:null==N?void 0:N.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=b.current)||void 0===e||e.blur()}return null}));var t},value:[]}),D&&D.length>0&&ee.default.createElement(kn,{history:D,onDelete:e=>{const t={trending:w,recently:k,interested:S,default:x};(t[e.template]||t.default)((t=>{const a=[...t],l=a.findIndex((t=>t.catId===e.catId));return a.splice(l,1),a}))}})),ee.default.createElement(c.Box,{sx:e=>({position:"relative",height:c.rem(175),[e.fn.largerThan("sm")]:{height:c.rem(190)}})},ee.default.createElement(c.Box,{sx:{position:"absolute",top:0,right:0,left:0}},ee.default.createElement(Sn,{topics:((null==N?void 0:N.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:E,onTopicChange:w,isBlock:z,labelProps:s}))),ee.default.createElement(Bn,{topics:((null==N?void 0:N.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:C,onTopicChange:k,isBlock:z,labelProps:s}),ee.default.createElement(yn,{labelProps:s,topicsGroup:[{label:f("pnTopicSection.ppAlsoInterested"),topics:((null==N?void 0:N.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:B,onTopicChange:S,isBlock:z}))},An=()=>{const{t:t}=o.useTranslations(),{action:{pushNotifications:a}}=e.useContext(T.TogetherComponentGlobalContext),{prevStep:l,formValues:i,submitLoading:r,onSubmit:s,selectCategory:d,maxSelectCategory:m,setSelectCategory:u,currentUrl:p,isLoggedIn:g}=e.useContext(vn);return ee.default.createElement(xn,{heading:t("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:c.rem(25)}},stickyActions:ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(n.Button,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:p,onClick:l},t("healthToolPNModal.back")),ee.default.createElement(n.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:p,onClick:()=>{if(0===d.length)return a({type:"danger",title:t("newsletter.error.minTitle"),message:t("newsletter.error.minCotennt")}),!1;null==s||s(i.name)},loading:r},t("healthToolPNModal.next")))},ee.default.createElement(Nn,{isLoggedIn:g,maxSelect:m,values:i.fitnessTopics,onChange:u,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Mn=()=>{const{t:l}=o.useTranslations(),{close:i,selectCategory:r,onRegisterSuccess:s,currentUrl:d,finishLabelOnResult:m,disclaimerText:u}=e.useContext(vn);return e.useEffect((()=>()=>{setTimeout((()=>{null==s||s()}),400)}),[]),ee.default.createElement(xn,{heading:l("healthToolPNModal.heading"),stickyActions:ee.default.createElement(n.Button,{fullWidth:!0,sx:{maxWidth:c.rem(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:d,onClick:()=>{i()}},m||l("healthToolPNModal.finish"))},ee.default.createElement(c.Stack,null,ee.default.createElement(c.Flex,{gap:c.rem(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:c.rem(8),padding:c.rem(8)})},ee.default.createElement(c.Box,null,ee.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},ee.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"}),ee.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"}))),ee.default.createElement(t.Text,{size:"p3"},u||l("pnModal.disclaimer"))),ee.default.createElement(a.Heading,{tag:"h5"},l("healthToolPNModal.yourPre")),r.length>0&&ee.default.createElement(yn,{topicsGroup:[{label:"",topics:r}],selectedTopics:r,readonly:!0})))},Pn=({isMobile:t,isLoggedIn:a,pnSuggestCategory:l=[],acquisitionInfo:n,currentUrl:i,opened:s,close:m,finishLabelOnResult:g,onRegisterSuccess:h,disclaimerText:f})=>{const{t:v,locale:b}=o.useTranslations(),{action:{pushNotifications:y}}=e.useContext(T.TogetherComponentGlobalContext),x=r.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),E=r.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[w,C]=e.useState([]),[k,B]=e.useState([]),[S,N]=e.useState(0),[A,M]=e.useState({name:"",fitnessTopics:[]}),[P,D]=e.useState(!1),z=()=>N(2),L=e.useCallback((e=>d.__awaiter(void 0,void 0,void 0,(function*(){try{D(!0),yield T.callApiWithAuth(T.getPremiumApiPath(sn,{website_url:T.getWebsiteUrlApi(b)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:ce.default.get(u.GA_TOKEN_COOKIE),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},n.userInfo),{name:e||A.name,type_subscription:1}),domain:u.domainLocales[b||p.LOCALE.Vietnam],category:k,perferred:n.preferredTopics.map((({id:e})=>({id:e})))}}),D(!1),yield T.callApiWithAuth(T.getSsoApiPath(fn),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),z()}catch(e){console.log({err:e}),D(!1),y({title:v("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[A,k]);return e.useEffect((()=>{[x,E].forEach((e=>{(new Image).src=e}))}),[]),ee.default.createElement(vn.Provider,{value:{currentUrl:i,isMobile:t,isLoggedIn:a,opened:s,close:m,pnSuggestCategory:l,nextStep:()=>N((e=>e<3?e+1:e)),prevStep:()=>N((e=>e>0?e-1:e)),lastStep:z,categoryLibs:w,setCategoryLibs:C,selectCategory:k,setSelectCategory:B,formValues:A,setFormValues:M,maxSelectCategory:5,submitLoading:P,onSubmit:L,onRegisterSuccess:h,finishLabelOnResult:g,disclaimerText:f}},ee.default.createElement(hn,{isMobile:t,desktopBanner:r.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:r.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:s,onClose:m,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:i}},ee.default.createElement(c.Stepper,{active:S,onStepClick:N,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},ee.default.createElement(c.Stepper.Step,null,ee.default.createElement(En,null)),ee.default.createElement(c.Stepper.Step,null,ee.default.createElement(An,null)),ee.default.createElement(c.Stepper.Step,null,ee.default.createElement(Mn,null)))))},Dn=()=>{const{locale:t}=o.useTranslations(),{isMobile:a,isLoggedIn:l,currentUrl:n,acquisitionInfo:i,categoryIds:r,state:s,setState:c,settings:m,submitHandler:u,subcribeHealthStatus:p,showPNModal:g,setShowPNModal:h,setIsBack:f}=e.useContext(nn),[v,b]=e.useState([]),[y,x]=e.useState(g);e.useEffect((()=>{d.__awaiter(void 0,void 0,void 0,(function*(){var e,a;const l=yield T.callApiWithAuth(T.getPremiumApiPath(rn,{_locale:t}),"get"),n=[...(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.interested)||[],...(null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.trending)||[]];b(n.filter((e=>r.includes(Number(e.catId)))))}))}),[]);const E=e.useRef([]);return e.useEffect((()=>{const e=(null==p?void 0:p.value)||"",t=e.split("|").filter(Boolean);let a=e;E.current.push(p),t.length>1&&(null!==E.current[0]&&f(!0),Object.keys(u).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?u[a]:m;c(l)}),[p]),e.useEffect((()=>{x(g)}),[g]),(null==s?void 0:s.action)!==en.Hide?ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(gn,Object.assign({},m.props)),ee.default.createElement(Pn,{acquisitionInfo:i,isMobile:a,isLoggedIn:l,currentUrl:n,pnSuggestCategory:v,opened:y,close:()=>{var e;x(!1),h(!1),setTimeout((()=>{var e;(null===(e=s.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&c({action:en.Hide})}),400),(null===(e=s.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&c({action:en.Hide})},onRegisterSuccess:()=>x(!1)})):null},zn={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var Ln="uJQBNNg",In="TfG3dM5",$n="aMtjFNf",_n="cSz2RR-",On="GyFm00F";function jn({userInfo:t,onClickMyProfileButton:a,themeName:l="helloSites"}){const{t:n}=o.useTranslations(),i=e.useMemo((()=>{const e=(null==t?void 0:t.name)||(null==t?void 0:t.username);return e&&e.length?e[0].toUpperCase():"A"}),[null==t?void 0:t.username,null==t?void 0:t.name]);return ee.default.createElement("div",{className:Ln,onClick:()=>{a&&a()}},ee.default.createElement(ve,{className:In,type:"rounded",size:"xl",avatarUrl:null==t?void 0:t.avatar,firstLetter:i,backgroundColor:"marryBaby"===l?s.theme.mbColors.pink:s.theme.colors.secondaryBase}),ee.default.createElement("div",{className:$n},ee.default.createElement("div",{className:_n},(null==t?void 0:t.name)||(null==t?void 0:t.username)),ee.default.createElement("div",{className:On,style:{"--bg-hellosites":`url(${r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Fn="fVk18fq",Hn="v8TCvUb",Rn="mx7T4V3";const Gn={myHealth:s.theme.mbColors.toneYellow,myCommunity:s.theme.mbColors.toneBlue,mySaved:s.theme.mbColors.toneGreen},Un={helloSites:{myBooking:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},Wn=({type:t,themeName:a,className:l,onClick:n=(()=>{})})=>{const{t:i}=o.useTranslations(),r=e.useMemo((()=>{var e,l;return(null===(l=null===(e=Un[a])||void 0===e?void 0:e[t])||void 0===l?void 0:l.call(e))||""}),[t,a]),s=e.useMemo((()=>"marryBaby"!==a?"transparent":Gn[t]),[t,a]);return ee.default.createElement("div",{onClick:function(){n(t)},className:`${Fn} ${l}`},ee.default.createElement("div",{className:Rn,style:{backgroundColor:s,backgroundImage:`url("${r}")`}}),ee.default.createElement("h3",{className:Hn},i(`userProfile.nav.card.${t}`)))};var Vn="gn6HmGG",qn="FCx8FEM",Qn="zMiRxaE",Zn="lZ2Z9MQ",Yn="rwm-agG",Kn="qMOscoq";const Xn=({themeName:t,locale:a,onClickItem:l})=>{const[n,i]=e.useState(""),o=e.useMemo((()=>"marryBaby"===t?[{key:"userProfile.nav.menu.password",icon:r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[t]);function s(e){e.subMenu?i((t=>t?"":e.key)):l&&l(e)}return ee.default.createElement("div",{className:Vn},o.map((e=>ee.default.createElement(Jn,{key:e.key,item:e,openKey:n,onClickItem:s,locale:a}))))},Jn=({item:e,openKey:t,onClickItem:a,locale:l})=>{var n;const{t:i}=o.useTranslations();return(null===(n=e.disableLocale)||void 0===n?void 0:n.includes(l))?null:ee.default.createElement("div",{className:`${qn} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},ee.default.createElement("div",{className:Qn,onClick:()=>a(e)},e.icon&&ee.default.createElement("div",{className:Zn,style:{backgroundImage:`url("${e.icon}")`}}),i(e.key),e.subMenu&&ee.default.createElement("div",{className:Yn,style:{"--after-bg":`url(${r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&ee.default.createElement("div",{className:Kn},e.subMenu.map((e=>ee.default.createElement(Jn,{key:e.key,item:e,openKey:t,onClickItem:a,locale:l})))))};var ei="-AZt1au",ti="IvSIfCI",ai="eahCJov",li="XIyViFs",ni="_4y-O0w3",ii="kO8iNgD",oi="a1d4E10",ri="Tdguxxf",si="-mOxsaU",di="yPeDBNZ";const ci={helloSites:{member:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>r.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},mi=({themeName:t,rank:a="member",numberOfPosts:l=0})=>{const{t:n}=o.useTranslations(),i=e.useMemo((()=>{var e,l;return(null===(l=null===(e=ci[t])||void 0===e?void 0:e[a])||void 0===l?void 0:l.call(e))||""}),[a,t]);return ee.default.createElement("div",{className:ni,"data-user-rank":a},ee.default.createElement("div",{className:ii},ee.default.createElement("div",{className:oi},ee.default.createElement("div",{className:ri,style:{backgroundImage:`url("${i}")`}}),ee.default.createElement("h3",{className:si},n(`userProfile.userRank.${a}`)),l>0&&ee.default.createElement("p",{className:di},l," ",n("userProfile.nav.header.count.posts")))))};exports.AdBlock=Vl,exports.Alert=({style:e,onClose:a,text:l,type:n,contentIcon:i,closeIcon:o,className:r,description:s})=>ee.default.createElement("div",{className:`${pe} ${r||""}`,style:e,"data-alert-type":n},ee.default.createElement("div",{className:ge},ee.default.createElement("div",{className:"icon-title"},i,ee.default.createElement(t.Text,{weight:"bold",size:"label1"},l)),ee.default.createElement(t.Text,{weight:"regular",size:"p3"},s)),ee.default.createElement("div",{className:he,onClick:a},o)),exports.ArticleCard=({articleLink:e,authorLink:l,authorName:n,avatarImg:i,banner:o,categoryLink:s,categoryName:d,className:c,dataEventActionForBanner:m,dataEventActionForBookmark:u,dataEventActionForCategory:p,dataEventActionForTitle:g,dataEventCategoryForBanner:h,dataEventCategoryForBookmark:f,dataEventCategoryForCategory:v,dataEventCategoryForTitle:b,dataEventLabelForBanner:y,dataEventLabelForBookmark:x,dataEventLabelForCategory:E,dataEventLabelForTitle:w,direction:C="horizontal",hasAffiliate:k,isBookmark:B=!1,isBookmarkDisplayed:T=!0,isMobile:S=!0,onBookmark:N,onClickCategoryName:A,section:M="normal",size:P="md",specialty:D,style:z,styleBanner:L,styleLabel:I,styleTitle:$,text:_,title:O,type:j="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const G=e=>{e.stopPropagation(),null==N||N()},U="lg"===P&&"expert"===j?"h4":"lg"===P&&"home"===M?S?"h4":"h3":"lg"===P?"h4":"h5",W="lg"===P?"p3":"p4",V=S||"home"!==M||"lg"!==P||"author"!==j?"c2":"c1";return ee.default.createElement("article",{className:`${Me} ${c||""}`,"data-size":P,style:z,"data-direction":C,"data-is-expert":"expert"===j||void 0},ee.default.createElement("div",{className:"banner",style:L},ee.default.createElement("a",{className:Ae,"data-event-category":h,"data-event-action":m,"data-event-label":y,href:e||"#",target:H},o),R&&ee.default.createElement("img",{loading:"lazy",className:"premium",src:r.CommonGAssets.getAssetPath("premium-crown.svg")}),k&&ee.default.createElement(Le,null)),ee.default.createElement("div",{className:"content"},ee.default.createElement("div",{className:"inner-content"},ee.default.createElement(t.Text,{style:I,className:"label",size:V,weight:"caption"},ee.default.createElement("a",{className:Ae,"data-event-category":v,"data-event-action":p,"data-event-label":E,href:s||"#",onClick:A},d),T&&ee.default.createElement("a",{className:"bookmark",onClick:G},B?ee.default.createElement(Ie,{dataEventCategoryForBookmark:f,dataEventActionForBookmark:u,dataEventLabelForBookmark:x}):ee.default.createElement($e,{dataEventCategoryForBookmark:f,dataEventActionForBookmark:u,dataEventLabelForBookmark:x}))),ee.default.createElement(a.Heading,{tag:U,style:$,className:"title",as:"lg"===P?"h2":"h3"},ee.default.createElement("a",{className:Ae,"data-event-category":b,"data-event-action":g,"data-event-label":w,href:e||"#",target:H},O)),_&&ee.default.createElement("a",{href:e||"#",target:H},ee.default.createElement(t.Text,{size:W,className:"text"},_))),ee.default.createElement("div",{className:"footer"},"author"===j?ee.default.createElement(De,{size:P,avatarImg:i,authorName:n,authorLink:l,uploadTime:F,handleClick:G,isBookmarked:B,dataEventCategoryForBookmark:f,dataEventActionForBookmark:u,dataEventLabelForBookmark:x}):ee.default.createElement(ze,{size:P,isMobile:S,avatarImg:i,specialty:D,name:n,link:l,handleClick:G,isBookmarked:B,dataEventCategoryForBookmark:f,dataEventActionForBookmark:u,dataEventLabelForBookmark:x}))))},exports.ArticleCard$1=e=>{var{variant:t="vertical"}=e,a=d.__rest(e,["variant"]);return"horizontal"===t?ee.default.createElement(_e,Object.assign({},a)):ee.default.createElement(He,Object.assign({},a))},exports.Avatar=ve,exports.BMICardEmbed=({isMobile:e,onSubmit:t,bmiContent:a,isSide:l,bmiGenerated:n,bmiUnit:i,bmiLink:s,locale:d})=>{var c,m,u;const{t:p}=o.useTranslations();return ee.default.createElement(Da,{"data-is-side":l},ee.default.createElement(da,{isSide:l,icon:ee.default.createElement("img",{alt:"health-tool-icon",src:(null==a?void 0:a.featured_image)||r.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===(m=null==a?void 0:a.reviewBy)||void 0===m?void 0:m.reviewer,date:null===(u=null==a?void 0:a.reviewBy)||void 0===u?void 0:u.date},isMobile:e}),ee.default.createElement(D.Container,null,ee.default.createElement(Pa,{as:"div","data-is-side":l},s&&ee.default.createElement(Fa,{onSubmit:t,bmiGenerated:n,locale:d,bmiUnit:i,isSide:l}))))},exports.BMRCardEmbed=({isSide:e,locale:t,bmrContent:a,isMobile:l,info:n,inputErrorMessage:i,onFormChange:s,onSubmit:d})=>{var c,m,u;const{t:p}=o.useTranslations();return ee.default.createElement(Da,{"data-is-side":e},ee.default.createElement(da,{isSide:e,icon:ee.default.createElement("img",{alt:"health-tool-icon",src:(null==a?void 0:a.featured_image)||r.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===(m=null==a?void 0:a.reviewBy)||void 0===m?void 0:m.reviewer,date:null===(u=null==a?void 0:a.reviewBy)||void 0===u?void 0:u.date},isMobile:l}),ee.default.createElement(D.Container,null,ee.default.createElement(Pa,{onSubmit:e=>e.preventDefault(),"data-is-side":e},ee.default.createElement(Ca,null,ee.default.createElement(sl,{info:n,locale:t,errorMessage:i,onChange:s,onClick:d,isSide:e})))))},exports.BabyGrowthCardEmbed=({isMobile:e,className:t,onSubmit:a,onError:l,schema:n,babyGrowthContent:i,siteType:o})=>{var d,c,m;return ee.default.createElement(Da,{"babyGrowthContent-is-mobile":e,"data-site":o},ee.default.createElement(da,{siteType:o,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===o&&s.theme.mbColors.mint,isEmbeded:!0,icon:ee.default.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==i?void 0:i.featuredImage)||r.CommonGAssets.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null==i?void 0:i.title)||"",medicalReview:{link:null===(d=null==i?void 0:i.reviewBy)||void 0===d?void 0:d.link,reviewer:null===(c=null==i?void 0:i.reviewBy)||void 0===c?void 0:c.reviewer.trim(),date:null===(m=null==i?void 0:i.reviewBy)||void 0===m?void 0:m.date},isMobile:e}),ee.default.createElement(qa,{"data-theme":o},ee.default.createElement(Qa,{siteType:o,schema:n,className:t,onSubmit:a,onError:l})))},exports.BabyPoopEmbed=({babyPoopPage:e,onClickFindOut:l,currentUrl:i,isSide:d,direction:m="auto",sponsorLogo:u})=>{const{t:p}=o.useTranslations(),g="mb"===c.useMantineTheme().other.template,{classes:h}=Za({isMarryBaby:g,isSide:d,direction:m},{name:"BabyPoopEmbed"}),{reviewedBy:f,reviewedDate:v}=e||{};return ee.default.createElement("div",{className:h.root},ee.default.createElement("div",{className:h.inner},ee.default.createElement(a.Heading,{tag:"h3",as:"h2",color:!g&&"#284A75"},e.title),ee.default.createElement("div",{className:h.content,"data-is-side":d},ee.default.createElement(t.Text,{size:"p3",className:"description"},e.description),!!f&&ee.default.createElement("div",{className:h.reviewText},ee.default.createElement("img",{src:r.CommonGAssets.getAssetPath("reviewerCheck.svg"),alt:"check",className:h.reviewTextIcon,loading:"lazy"}),ee.default.createElement(t.Text,{size:"p4",color:s.theme.colors.gray600},p("categoryPage.info.reviewed")," ",ee.default.createElement("a",{href:f.profile_url},f.display_name)," ",p("categoryPage.onDate",{date:v||""}))),ee.default.createElement("div",{className:h.action},ee.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"))))),ee.default.createElement("div",{className:h.thumbnail},ee.default.createElement("img",{src:g?r.CommonGAssets.getAssetPath("baby-poop.svg"):null==e?void 0:e.featuredImage,alt:e.title,loading:"lazy"})),u&&ee.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:o})=>ee.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:o},ee.default.createElement("div",null,e&&ee.default.createElement("span",null,e)," ",i&&ee.default.createElement("div",null,i))),exports.BorderHeading=({style:e,children:t,className:l,size:n="lg",type:i="bold",upperCase:o,as:r="h4",color:s})=>ee.default.createElement(a.StyledBorderHeading,{style:Object.assign({color:s},e),className:l,"data-size":n,"data-type":i,"data-uppercase":o,as:r},t),exports.Breadcrumbs=({className:t,pages:a,size:l,LinkComponent:n="a",onChangePage:i,separator:o})=>{const r=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 ee.default.createElement("div",{"data-size":l,className:`${Ml} ${t||""}`},r.map(((t,a)=>{const s=a+1===r.length;return ee.default.createElement(e.Fragment,{key:a},ee.default.createElement(zl,{LinkComponent:n,page:t,isLast:s,onChangePage:i}),!s&&(t.separator||o||ee.default.createElement("div",{className:Pl,"data-size":l})))})))},exports.CategoryCard=e=>{var{category:a,imgBanner:l,label:n,className:i,style:o,href:r="",dataEventCategory:s,dataEventAction:c,dataEventLabel:m}=e,u=d.__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)||r||"";return ee.default.createElement(Re,Object.assign({"data-event-category":s,"data-event-action":c,"data-event-label":m,className:i,style:o,href:p},(null==a?void 0:a.customizedUrl)&&!h.isInternalLink(a.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===p&&e.preventDefault()}},u),ee.default.createElement("div",{className:"banner"},l),ee.default.createElement("div",{className:"content"},ee.default.createElement(t.Text,{className:"category_name",size:"sm",weight:"bold"},(null==a?void 0:a.displayName)||n||"")))},exports.Checkbox=Ce,exports.CheckboxGroup=({name:e,values:t=[],onChanges:a,options:l=[],className:n,type:i="vertical",isDisabled:o,isRectangle:r})=>{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 ee.default.createElement(Ge,{className:n,"data-type":i,"data-is-rectangle":r||void 0},l.map(((a,l)=>ee.default.createElement(Ce,{label:a.label,name:e,key:`${l}-${a.value}`,checked:t.includes(a.value),value:a.value,isDisabled:o||a.disabled,onChange:!o&&s,isRectangle:r}))))},exports.CookieAcceptConfirm=({className:e,policiesUrl:t,onAcceptClick:a,translations:l={acceptButton:"Accept",policiesButton:"Our Policies"},title:n="",description:i="",theme:o="helloSites",isOpen:r=!0,useDefaultPosition:s=!0,trackingAttributes:d})=>ee.default.createElement(Rt,{className:e,"data-theme":o,"data-is-open":r,"data-default-position":s},ee.default.createElement(Gt,{"data-has-content":!!n},n),ee.default.createElement(Ut,{dangerouslySetInnerHTML:{__html:i}}),ee.default.createElement(Wt,null,ee.default.createElement(Vt,{role:"button",tabIndex:0,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),ee.default.createElement(qt,{href:t},l.policiesButton))),exports.DateRangePicker=function({inputSize:t="md",name:l="date-range-picker",value:n,minDate:i,maxDate:o,onChange:s,className:d,autoClose:c=!1}){n||(n={from:null,to:null});const[m,u]=e.useState(!1);function p(){u(!1)}const g=e.useRef(null);function h(e){s&&s(e)}function f(e){return C.format(e,"dd/MM/yyyy")}O.useOutsideClick(g,(()=>{p()}));const v=e.useMemo((()=>n.from&&n.to?C.isSameDay(n.from,n.to)?f(n.from):`${f(n.from)} - ${f(n.to)}`:""),[n.from,n.to]);return ee.default.createElement(Nl,{className:[d,m&&"focused"].filter(Boolean).join(" "),ref:g},ee.default.createElement("label",{htmlFor:l},ee.default.createElement(a.PureInput,{size:t,value:v,name:l,actionIcon:ee.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>u(!0)})),m?ee.default.createElement(Al,{onMouseDown:e=>{e.stopPropagation()}},ee.default.createElement(Tl,{value:n,onChange:h,minDate:i,maxDate:o,close:p,autoClose:c})):null)},exports.DoctorInfo=st,exports.DueDateCardEmbed=({isMobile:e,locale:t,onSubmitDueDate:a,dueDatePageInfo:l,expertUrl:n,isSide:i,siteType:d})=>{var c;const{t:m}=o.useTranslations();return ee.default.createElement(Da,{"data-is-side":i,"data-site":d},ee.default.createElement(da,{isSide:i,siteType:d,bannerColor:"marryBaby"===d&&s.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:ee.default.createElement("img",{alt:"health-tool-icon",src:(null==l?void 0:l.featured_image)||r.CommonGAssets.getAssetPath("health-tools/due-date-icon.svg"),loading:"lazy"}),heading:m("healthTools.dueDateCalculator"),medicalReview:{link:n,reviewer:null===(c=null==l?void 0:l.reviewed_by)||void 0===c?void 0:c.display_name,date:null==l?void 0:l.reviewed_date},isMobile:e}),ee.default.createElement(Pa,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":i},ee.default.createElement(Na,{siteType:d,locale:t,onSubmitDueDate:a,isSide:i})))},exports.FileDropdown=({className:t,value:l,options:n,onUploadSelected:i,id:o,placeholderIcon:r,placeholder:s,style:d})=>{const[c,m]=e.useState(!1),u=()=>m(!c),p=e.useRef(n.map((e=>"upload"===e.type&&ee.default.createElement("input",{id:"uploader-dropdown-input-"+o+"-"+e.value,key:"uploader-dropdown-input-"+o+"-"+e.value,accept:e.fileAcceptedType,multiple:e.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),i(e.target.files)}}))));return ee.default.createElement(a.StyledDropdown,{className:t,"data-dropdown-open":!!c,id:o,"data-has-icons":!0,style:d,onBlur:()=>m(!1),tabIndex:0},ee.default.createElement(be,null),ee.default.createElement(a.StyledDropdownName,{onClick:u},r||ee.default.createElement(ye,null)," ",ee.default.createElement("span",null,l&&l.value?l.label:s)),c&&ee.default.createElement(a.StyledDropdownList,{onClick:u,"data-has-icons":!0},n.map((e=>ee.default.createElement(a.StyledDropdownOption,{key:`${o}-${e.value}`,"data-selected":l&&l.value===e.value||void 0,onClick:()=>{return"upload"===e.type?(a="#uploader-dropdown-input-"+o+"-"+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}},ee.default.createElement(a.StyledIcon,null,e.icon||"download"===e.type?ee.default.createElement(xe,null):ee.default.createElement(Ee,null)),e.label)))),ee.default.createElement(ee.default.Fragment,null,p.current))},exports.FixedBottomAdBlock=({className:t,adUnitPath:a,divId:l,isMobile:n,contentId:i,customTargetings:o,locale:r,isMarryBaby:s})=>{const[d,c]=e.useState(!0),[m,u]=e.useState(!1),[p,g]=e.useState(!0),h=e.useRef(null),f=e.useRef(U.v4()),v=e.useRef(null),b=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(),()=>{b.current&&clearTimeout(b.current),y.current&&clearTimeout(y.current)}}),[]),d||m?null:ee.default.createElement(Ol,{key:n?"mobile":"desktop",ref:v,className:t,"data-visible":!p},a&&ee.default.createElement(Vl,{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:o,adDefaultSize:n?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>u(!0),refreshInterval:60,locale:r,isMarryBaby:s}))},exports.FloatButtonGroup=({items:t,className:a,style:l,backgroundPanelStyle:n,isOpen:i,onOpen:o,onClose:r,disableBackdropClick:s,siteType:d="hb",animationType:c="zoom",zIndex:m=300})=>{const[u,p]=e.useState(!!i);e.useEffect((()=>{p(!!i)}),[i]);const g=()=>{p(!1),r&&r()};return ee.default.createElement(Lt,{style:l,className:a,"data-floatmenu-open":u,"data-site-type":d,"data-animation-type":c},ee.default.createElement(It,{className:"float-button-group__panel",style:Object.assign({zIndex:m},n),onClick:s?void 0:g}),ee.default.createElement($t,{className:"float-button-group___content",style:{zIndex:m}},ee.default.createElement(_t,null,t.map(((e,a)=>ee.default.createElement(jt,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===c&&{bottom:64*(t.length-1-a),transitionDelay:zt/t.length*(u?t.length-1-a:a)+"ms"}),"slide"===c&&{bottom:64*(t.length-1-a),transitionDelay:zt/t.length*(u?a:t.length-1-a)+"ms"}),key:a,onClick:()=>{e.onClick(),e.keepMenuOnClick||p(!1)}},ee.default.createElement(Ft,{style:Object.assign({},"zoom"===c&&{transitionDelay:zt/t.length*(u?t.length-1-a:a)+"ms"})},e.label),ee.default.createElement(Ht,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===c||"slide"===c)&&{transitionDelay:zt/t.length*(u?t.length-1-a:a)+"ms"})},e.icon))))),ee.default.createElement(Ot,{onClick:u?g:()=>{p(!0),o&&o()}})))},exports.GenderOptionControl=Se,exports.Grid=({className:e,columns:t,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:i,gap:o,children:r,justifyChildren:s,style:d,alignItems:c})=>ee.default.createElement(a.StyledGrid,{className:e,style:Object.assign({"--columns-count":t,"--columns-count-desktop":l,"--grid-template-columns":n,"--grid-template-columns-desktop":i,"--justify-children":s,"--grid-gap":o,"--align-items":c},d)},r),exports.IconText=({size:e,iconPosition:t,className:a,children:l,icon:n})=>ee.default.createElement(Ue,{className:a,"data-size":e,"data-icon-position":t},"left"===t&&n,l,"right"===t&&n),exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=an,exports.MAPPING_CATEGORY_PREMIUM_TYPE=tn,exports.MobileBottomNavigation=ea,exports.MobileBottomNavigationIcon=Jt,exports.NavHeader=jn,exports.OvulationCardEmbed=({onSubmitOvulation:e,locale:t,ovulationPageInfo:a,expertUrl:l,isSide:n=!1,siteType:i,isMobile:d})=>{var c;const{t:m}=o.useTranslations();return ee.default.createElement(Da,{"data-is-side":n,"data-site":i},ee.default.createElement(da,{isSide:n,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:i,bannerColor:"marryBaby"===i&&s.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:ee.default.createElement("img",{alt:"health-tool-icon",src:(null==a?void 0:a.featured_image)||r.CommonGAssets.getAssetPath("health-tools/ovulation-icon.svg"),loading:"lazy"}),heading:m("healthTools.ovulationCalculator"),medicalReview:{link:l,reviewer:null===(c=null==a?void 0:a.reviewed_by)||void 0===c?void 0:c.display_name,date:null==a?void 0:a.reviewed_date},isMobile:d}),ee.default.createElement(Pa,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":n},ee.default.createElement(ml,{siteType:i,locale:t,onSubmitOvulation:e,isSide:n})))},exports.PWGCardEmbed=({locale:a,onClick:l,inputErrorMessage:i,pwgContent:d,onFormChange:c,info:m,isMobile:p,isSide:g=!1,siteType:h})=>{var f;const{t:v}=o.useTranslations(),[b,y]=e.useState("notwins"),[x,E]=e.useState({label:"1",value:1}),w=e.useMemo((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:C}=L.useHealthToolsCache(a),k=e.useMemo((()=>C(T.HEALTH_TOOL_TYPE.PWG)),[C]);return ee.default.createElement(Da,{"data-is-side":g,"data-site":h},ee.default.createElement(da,{siteType:h,bannerColor:"marryBaby"===h&&s.theme.mbColors.mint,isEmbeded:!0,color:"pink",icon:ee.default.createElement("img",{alt:"health-tool-icon",src:(null==d?void 0:d.featuredImage)||r.CommonGAssets.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:v("pregnancyWeightGain.heading"),medicalReview:{link:_.formatUserProfileUrl(null==d?void 0:d.reviewedBy),reviewer:null===(f=null==d?void 0:d.reviewedBy)||void 0===f?void 0:f.display_name,date:null==d?void 0:d.reviewedDate},isMobile:p,isSide:g}),ee.default.createElement(D.Container,null,ee.default.createElement(Pa,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":g},"marryBaby"!==h&&ee.default.createElement(wa,{className:"hide-asking-mobile","data-is-side":g},ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"block",color:s.theme.colors.gray600},className:"label"},v("pregnancyWeightGain.havingTwins")),ee.default.createElement(za,{options:[{value:"twins",label:v("switchBtn.yes")},{value:"notwins",label:v("switchBtn.no")}],value:b,onChange:e=>y(e),className:"gender-selector",id:"twins-check",direction:"horizontal",size:"small"})),ee.default.createElement(Ba,null,ee.default.createElement(Ta,{className:"input-section input-form-pwg","data-is-side":g},"marryBaby"===h?ee.default.createElement(ca,{groupedWithLabel:v("pregnancyWeightGain.weekInput"),options:w,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:x,onChange:e=>E({label:e.label,value:e.value})}):ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"inline-block",marginBottom:"9px",color:s.theme.colors.gray600}},v("pregnancyWeightGain.weekInput")),ee.default.createElement(P.Dropdown,{options:w,placeholder:String(x.label),id:"weight-gain-dropdown",size:"md",value:x,onChange:e=>E({label:e.label,value:e.value})}))),ee.default.createElement(ul,{siteType:h,info:m,errorMessage:i,onChange:c})),"marryBaby"!==h&&ee.default.createElement(wa,{className:"hide-asking-desk","data-is-side":g},ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",style:{display:"block",color:s.theme.colors.gray600},className:"label"},v("pregnancyWeightGain.havingTwins")),ee.default.createElement(za,{options:[{value:"twins",label:v("switchBtn.yes")},{value:"notwins",label:v("switchBtn.no")}],value:b,onChange:e=>y(e),className:"gender-selector",id:"twins-check-mobile",direction:"horizontal",size:"small"})),"marryBaby"===h&&ee.default.createElement(Ce,{name:"twins",label:v("pregnancyWeightGain.havingTwins"),checked:"twins"===b,siteType:"marryBaby",onChange:()=>{y("twins"===b?"notwins":"twins")},value:"twins"}),ee.default.createElement(ka,{"data-is-side":g,"data-site":h},ee.default.createElement(n.Button,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${u.domainLocales["marryBaby"===h?"vi-VN_MB":a]}/${k}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===h?"secondary":"primary",onClick:()=>l(b,x.value),role:"button"},v("dueDatePage.lastPeriod.calculate"))))))},exports.Pagination=({className:t,pagesAmount:n,currentPage:i,onChange:o,onClick:r,style:s,href:d,queryPageName:c="page"})=>{const m=[...Array(n)].map(((e,t)=>t+1)),[u,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),o(e))},v=e=>{r&&r(e)};return e.useEffect((()=>{p(i)}),[i]),ee.default.createElement(a.StyledPagination,{className:t,style:s},ee.default.createElement(a.StyledPageBlock,{className:"prev-page",onClick:()=>f(u-1),"data-last-page":1===u||void 0},g?ee.default.createElement("a",{href:l.formatUrlWithPageParam(g,u,c),onClick:v},ee.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},ee.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):ee.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},ee.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),m.length>8?ee.default.createElement(we,{pagesAmount:n,activePage:u,handlePageChange:f,handleClick:v,href:g,queryPageName:c}):m.map((e=>ee.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===u||void 0,onClick:()=>f(e)},g?ee.default.createElement("a",{href:l.formatUrlWithPageParam(g,e,c),onClick:v},e):e))),ee.default.createElement(a.StyledPageBlock,{className:"next-page",onClick:()=>f(u+1),"data-last-page":u===h+1||void 0},g?ee.default.createElement("a",{href:l.formatUrlWithPageParam(g,u,c),onClick:v},ee.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},ee.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):ee.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},ee.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:o,onChange:r})=>{const[s,c]=e.useState(0),m=e=>{var{trackClassName:t}=e,a=d.__rest(e,["trackClassName"]);return ee.default.createElement(qe,Object.assign({},a,{className:t}),ee.default.createElement(Qe,null))},u=ee.default.createElement(We,{className:o+" progress-bar"},ee.default.createElement(m,null),ee.default.createElement((({trackLength:e,activeStep:t,labelPrefix:l="Step",onChange:n})=>ee.default.createElement(ee.default.Fragment,null,Array.from({length:a},((e,t)=>t)).map(((i,o)=>ee.default.createElement(Ve,{"data-is-active":o===t,"data-label":o,style:{left:o*e/(a-1)},onClick:()=>{n&&n(o)},key:o},o+1,ee.default.createElement(Ze,{"data-step-passed":o<=t},l+" "+(o+1))))))),{trackLength:s,activeStep:l,labelPrefix:n,onChange:r})),p=ee.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 5.5 9.5"},ee.default.createElement("title",null,"chevron-right"),ee.default.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),g=ee.default.createElement(Ye,null,i&&Array.from({length:i.length},((e,t)=>t)).map(((e,t)=>{var a;return ee.default.createElement(Ke,{key:t,"data-selected":t===l,onClick:()=>{r&&r(t)}},null===(a=i[t])||void 0===a?void 0:a.text," ",t<i.length-1&&p)}))),h=ee.default.createElement(We,{className:o+" progress-bar"},ee.default.createElement((({detailSteps:e,activeStep:t,onChange:a})=>ee.default.createElement(ee.default.Fragment,null,Array.from({length:e.length},((e,t)=>t)).map(((l,n)=>ee.default.createElement(Xe,{key:n,style:{left:100/e.length*n+"%",width:100/e.length+"%"},onClick:()=>{a&&a(n)}},e[n].icon?ee.default.createElement(et,{onClick:()=>{a&&a(n)}},e[n].icon):ee.default.createElement(Je,{"data-is-active":n===t,"data-label":l,onClick:()=>{a&&a(n)},key:n},n+1),ee.default.createElement(tt,{"data-step-passed":n<t+1},e[n].text,ee.default.createElement(at,null,e[n].description)),n<e.length-1&&ee.default.createElement(m,{"data-step-passed":n<t,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:i,onChange:r})),f=e.useCallback(le.default((()=>{const e=document.querySelector(".progress-bar");e&&c(e.offsetWidth)}),1e3),[]);return e.useEffect((()=>{const e=document.querySelector(".progress-bar");return c(null==e?void 0:e.offsetWidth),window.addEventListener("resize",f,{passive:!0}),()=>{window.removeEventListener("resize",f)}}),[]),"step-track"===t&&u||"breadcrumb"===t&&g||"detail-track"===t&&h},exports.Radio=({size:e="small",label:t,name:a,checked:l,value:i,className:o,isDisabled:r=!1,onChange:s,dataEventCategory:d,dataEventAction:c,dataEventLabel:m})=>{const u=!!c&&!!d&&!!m?{"data-event-category":d,"data-event-action":c,"data-event-label":m}:{};return ee.default.createElement(n.Radio,Object.assign({size:"small"===e?"md":"lg",label:t,name:a,checked:l,value:i,className:o,disabled:r,onChange:e=>null==s?void 0:s(e.target.value)},u))},exports.RadioGroup=lt,exports.RateStars=({gap:t=2,size:l=24,star:n,totalStars:i=5,onSelect:o,hideEmptyStars:r,style:s,className:d})=>{const c=Math.floor(n),m=n-c>=.5?1:0,[u,p]=e.useState(null),g=u||c,h=u?0:m;return ee.default.createElement(a.StyledRateStars,{"data-selectable":!!o,style:Object.assign({"--gap":t,"--star-size":l},s),className:d},Array.from({length:r?c+m:i}).map(((e,t)=>{const a=()=>!!o&&p(t+1),l=()=>!!o&&p(null);return t+1<=g?ee.default.createElement(Be,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):t+1===g+h?ee.default.createElement(Te,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):ee.default.createElement(ke,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l})})))},exports.ScrollList=({row:t=2,column:a=3,isDotsShown:l=!0,isImageGalleryShown:n=!1,mode:i="infinity",type:o="separated",distanceOverlappedLeft:r={amount:0,unit:"pixel"},children:s,className:d,isProgressShown:c=!1,statusChildren:m,isArrowShown:u=!1,classNameLeftArrow:p,classNameRightArrow:g,dataEventCategory:h,dataEventAction:f,dataEventLabel:v,onChangePage:b,page:y,customPageWidth:x,scheme:E="hellosites",arrowType:w="Discover"})=>{const C="number"==typeof y,[k,B]=e.useState(C?y:0),T=[];ee.default.Children.map(s,((e,l)=>{l%(t*a)==0&&T.push([]),T[T.length-1].push(ee.default.cloneElement(e))}));const S=e.useRef(),N=e.useRef(0),A=e=>{if(!S.current)return;const{clientWidth:t}=S.current,a=x||t,l="intertwined"===o?"percentage"===r.unit?e*a+r.amount/100*a*e:e*a+r.amount*a*e:e*a;S.current.scrollTo({top:0,left:l,behavior:"smooth"}),N.current=e,B(e),b&&b(e)};e.useEffect((()=>{"number"==typeof y&&(e=>{if(!S.current)return;const{clientWidth:t}=S.current,a=x||t,l="intertwined"===o?"percentage"===r.unit?e*a+r.amount/100*a*e:e*a+r.amount*a*e:e*a;S.current.scrollTo({top:0,left:l,behavior:"smooth"}),N.current=e,B(e)})(y)}),[y]);const M=e=>{if(!S.current)return;const{clientWidth:t}=S.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),b&&b(T.length-1)):(B(k+1),l+=a,b&&b(k+1)),S.current.scrollTo({top:0,left:l,behavior:"smooth"})),"back"===e&&(0===l?(B(0),b&&b(0),l=0):(B(k-1),b&&b(k-1),l-=a),S.current.scrollTo({top:0,left:l,behavior:"smooth"}))},P=le.default((()=>{if("infinity"===i){if(!S.current)return;const{clientWidth:e,scrollLeft:t}=S.current,a=x||e,l=Math.floor(t/a);B(l),b&&b(l)}}),400);return e.useEffect((()=>{if("snapped"===i){let e,t,a,l,n,i,s=!1;const d=S.current,c=(i,o)=>{s=!0,a=!1,l=!1,e=i-d.offsetLeft,t=o-d.offsetTop,n=d.scrollLeft},m=e=>{c(e.pageX,e.pageY)},u=e=>{c(e.touches[0].pageX,e.touches[0].pageY)},p=()=>{if(s=!1,a=!1,l=!1,!S.current)return;const{clientWidth:e}=S.current,t=x||e,n="ltr"===i?0!==N.current?N.current-1:N.current:"rtl"===i&&N.current<T.length-1?N.current+1:N.current,d="intertwined"===o?"percentage"===r.unit?n*t+r.amount/100*t*n:n*t+r.amount*t*n:n*t;S.current.scrollTo({top:0,left:d,behavior:"smooth"}),i="none",N.current!==n&&(N.current=n,B(n),b&&b(n))},g=(o,r)=>{if(!s)return;const c=o-d.offsetLeft,m=r-d.offsetTop,u=c-e,p=m-t;a||l||!(p>20||p<-20)||(a=!0),!a&&(u>20||u<-20)&&(l=!0,d.scrollLeft=n-u,u>0&&(i="ltr"),u<0&&(i="rtl"),0===u&&(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",m,{passive:!0}),null==d||d.addEventListener("touchstart",u,{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",m),null==d||d.removeEventListener("touchstart",u),window.removeEventListener("mouseup",p),window.removeEventListener("touchend",p),null==d||d.removeEventListener("mousemove",h),null==d||d.removeEventListener("touchmove",f)}}}),[]),ee.default.createElement(ut,{className:d,"data-row":t,onScroll:P},u&&k>0&&ee.default.createElement("div",{className:`${p} arrow-left`,onClick:()=>M("back"),"data-event-category":h,"data-event-action":f,"data-event-label":v},"Care"===w?ee.default.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},ee.default.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},ee.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"}),ee.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"}),ee.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"})),ee.default.createElement("defs",null,ee.default.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},ee.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),ee.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"}),ee.default.createElement("feOffset",{dx:"-2",dy:"2"}),ee.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),ee.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"}),ee.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),ee.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"}),ee.default.createElement("feOffset",{dx:"-1",dy:"1"}),ee.default.createElement("feGaussianBlur",{stdDeviation:"1"}),ee.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"}),ee.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),ee.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):ee.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},ee.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"}),ee.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"}),ee.default.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),ee.default.createElement("div",{ref:S,className:"container",style:{overflowX:"snapped"===i||u?"hidden":"scroll"}},T.map(((e,l)=>{let n=0;for(let e=0;e<l;e++)n+=T[e].length;return ee.default.createElement("div",{key:l,className:"section",style:{marginLeft:"intertwined"===o&&0!==l?r.amount+""+("percentage"===r.unit?"%":"px"):"0px"}},1===t&&c&&ee.default.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${a}, 1fr)`}},e.map(((t,a)=>{const i=n+a,o=m.find((e=>e.index===i));return ee.default.createElement("div",{className:"items-progress",key:a},0===a&&0===l?ee.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):ee.default.createElement("div",{className:"line"}),ee.default.createElement("div",{className:"icon-status"},ee.default.createElement(pt,{status:null==o?void 0:o.status})),l===T.length-1&&a===e.length-1?ee.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):ee.default.createElement("div",{className:"line"}))}))),ee.default.createElement("div",{className:"grid-layout","data-index":l,style:{gridTemplateColumns:`repeat(${a}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`}},e.map(((e,t)=>ee.default.createElement(ee.default.Fragment,{key:t},ee.default.createElement("div",{className:"item-grid",key:t},e))))))}))),u&&k<T.length-1&&ee.default.createElement("div",{className:`${g} arrow-right`,onClick:()=>M("forward"),"data-event-category":h,"data-event-action":f,"data-event-label":v}," ","Care"===w?ee.default.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},ee.default.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},ee.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"}),ee.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"}),ee.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"})),ee.default.createElement("defs",null,ee.default.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},ee.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),ee.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"}),ee.default.createElement("feOffset",{dx:"-2",dy:"2"}),ee.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),ee.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"}),ee.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),ee.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"}),ee.default.createElement("feOffset",{dx:"-1",dy:"1"}),ee.default.createElement("feGaussianBlur",{stdDeviation:"1"}),ee.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"}),ee.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),ee.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):ee.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},ee.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"}),ee.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"}),ee.default.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===E?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l&&ee.default.createElement("ul",{className:"bullet-nav"},T.map(((e,t)=>ee.default.createElement("li",{key:t,className:"bullet-nav__item "},ee.default.createElement("p",{onClick:()=>A(t),className:`bullet-nav__link scroll ${k==t?"active":null}`,"data-scheme":E}))))),n&&ee.default.createElement("div",{className:"image-gallery-wrapper","data-test":T.length},T.slice(0,3).map(((e,t)=>ee.default.createElement("div",{className:`image-block ${k==t?"active":null}`,key:t,onClick:()=>A(t),"data-scheme":E},e)))))},exports.SeoHead=({SEOData:t={},locale:a="vi-VN",routerPathname:l,routerQuery:n,nextHead:i,siteType:o,seoCustom:r,userId:s,forcedCanonicalUrl:d})=>{var c,m,p,g,h,f,v,b,y,x,E,C;const{totalPages:k,currentPage:B,SEOTitle:T="",SEODescription:S="",SEOImage:N,seoType:A,SEOImageWidth:M,SEOImageHeight:P,customMetaData:D=[],isIndexable:z=!0,hasNoCanonical:L=!1}=t,I=z&&w.isProduction?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:$}=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"===o?u.domainLocales[O]:"www.marrybaby.vn",F=_.endsWith("/")?"":"/",H=e.useMemo((()=>{var e,l,n,i,o,r,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>/),m=` - Page ${B} of ${k}`,u=B&&1!==B&&c?t.apiMetaData.replace(c[0],c[0].includes("-")?c[0].replace("-",m+" - "):`<title>${c[1].concat(m)}</title>`).replace(`<link rel="canonical" href="https://${j}${_}${F}" />`,`<link rel="canonical" href="https://${j}${_}${F}?page=${B}" />`):t.apiMetaData;if(d=ne.default(u,{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,ee.default.createElement("meta",{key:"og:image",property:"og:image",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||N||e||""}),ee.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)||N||e}),ee.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===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)||M&&String(M)||"1200"}),ee.default.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(r=t.openGraph)||void 0===r?void 0:r.imageHeight)&&String(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)||P&&String(P)||"630"})]}}return d}),[t.apiMetaData,t.openGraph,N,P,M,B,_,k,a,j]),R=`https://${j}/images/${a}.png`;return ee.default.createElement(i,null,ee.default.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===o?ee.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}):"km-KH"===a?ee.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"th-TH"===a?ee.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,100..900&display=swap",rel:"stylesheet"}):ee.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}),ee.default.createElement("link",{rel:"preconnect",href:$}),ee.default.createElement("meta",{charSet:"UTF-8"}),ee.default.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),ee.default.createElement("meta",{name:"google",content:"notranslate"}),ee.default.createElement("meta",{name:"robots",content:I}),ee.default.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),D.map(((e,t)=>ee.default.createElement("meta",Object.assign({key:t},e)))),ee.default.createElement("meta",{name:"theme-color",content:"helloSites"===o?"#2c87f3":"#e85388"}),ee.default.createElement("meta",{name:"page_type",content:"Home"}),ee.default.createElement("meta",{name:"page_platform",content:"WEB"}),ee.default.createElement("meta",{name:"page_language",content:O}),ee.default.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!H&&ee.default.createElement(ee.default.Fragment,null,"helloSites"===o?ee.default.createElement("title",null,r?T:T+" - "+(null===(c=u.LOCALE_SPECS[a])||void 0===c?void 0:c.SITE_NAME)):ee.default.createElement("title",null,T),!L&&ee.default.createElement("link",{rel:"canonical",href:`https://${j}${_}`}),ee.default.createElement("meta",{name:"description",content:S||(null===(m=t.openGraph)||void 0===m?void 0:m.description)}),t.schemaData&&ee.default.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),ee.default.createElement("meta",{property:"og:locale",content:a}),ee.default.createElement("meta",{property:"og:type",content:A||"website"}),ee.default.createElement("meta",{property:"og:title",content:(null===(p=t.openGraph)||void 0===p?void 0:p.title)||T}),ee.default.createElement("meta",{property:"og:description",content:(null===(g=t.openGraph)||void 0===g?void 0:g.description)||S}),ee.default.createElement("meta",{property:"og:url",content:`https://${j}${_}`}),ee.default.createElement("meta",{property:"og:site_name",content:`https://${j}`}),ee.default.createElement("meta",{property:"og:image",content:(null===(h=t.openGraph)||void 0===h?void 0:h.image)||N||R||""}),ee.default.createElement("meta",{property:"og:image:secure_url",content:(null===(f=t.openGraph)||void 0===f?void 0:f.image)||N||R}),ee.default.createElement("meta",{property:"og:image:width",content:(null===(v=t.openGraph)||void 0===v?void 0:v.imageWidth)&&String(null===(b=t.openGraph)||void 0===b?void 0:b.imageWidth)||M&&String(M)||"1200"}),ee.default.createElement("meta",{property:"og:image:height",content:(null===(y=t.openGraph)||void 0===y?void 0:y.imageHeight)&&String(null===(x=t.openGraph)||void 0===x?void 0:x.imageHeight)||P&&String(P)||"630"}),ee.default.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),ee.default.createElement("meta",{name:"twitter:title",content:(null===(E=t.twitter)||void 0===E?void 0:E.title)||T}),ee.default.createElement("meta",{name:"twitter:description",content:S}),ee.default.createElement("meta",{name:"twitter:image",content:(null===(C=t.twitter)||void 0===C?void 0:C.image)||N})),("helloSites"===o?u.FAVICONS[O]||[]:u.FAVICONS.marryBaby).map(((e,t)=>"link"===e.type?ee.default.createElement("link",{key:`favicon-${t}`,rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?ee.default.createElement("meta",{key:t,name:e.name,content:e.content}):null)),Array.isArray(H)&&d?H.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):H,d&&ee.default.createElement("link",{rel:"canonical",href:d}),!t.hasNoAmp&&"vi-VN"!==a&&ee.default.createElement("link",{rel:"amphtml",href:`https://${j}${_}${F}?amp=1`}),s&&"undefined"!=typeof window?ee.default.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${s}'});`}}):null)},exports.ShareContainer=({url:a,onCopied:l,locale:n,siteType:i})=>{const{t:r}=o.useTranslations(),c=G.getSocialList(a||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),m=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return ee.default.createElement(Ll,null,ee.default.createElement(t.Text,{size:"p3",color:s.theme.colors.gray800},r("shareContainer.title")),ee.default.createElement("div",{className:"icon-group"},c.map(((e,t)=>ee.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":m},e.icon))),ee.default.createElement(y.Button,{theme:i,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:ee.default.createElement(Il,null),onClick:()=>d.__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":m})))},exports.ShareDrawer=a=>{var{open:l,title:n,onClose:i,onCopied:r,onShared:c,url:m,locale:u}=a,p=d.__rest(a,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:g}=o.useTranslations(),h=e.useCallback((()=>d.__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(m),null==r||r()}))),[m,r]),f=G.getSocialList(m||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(u)));return e.useEffect((()=>{l&&navigator.share&&navigator.share({title:null!=n?n:"Read This Post",url:m}).then((()=>{null==c||c()})).catch((()=>{null==i||i()}))}),[m,n,c,l]),"undefined"!=typeof navigator&&navigator.share?null:ee.default.createElement($l,Object.assign({title:g("share.title"),onClose:i,open:l,placement:"bottom"},p),ee.default.createElement("div",{className:"share-container"},ee.default.createElement("div",{className:"icon-container"},ee.default.createElement(t.Text,{weight:"semiBold",size:"s3",color:s.theme.colors.gray600},g("share.title")),ee.default.createElement("div",{className:"icon-group"},f.map(((e,t)=>ee.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer"},e.icon))))),ee.default.createElement("div",{className:"link-container"},ee.default.createElement(t.Text,{weight:"semiBold",size:"s3",color:s.theme.colors.gray600},g("share.copyLink")),ee.default.createElement("div",{className:"input-group"},ee.default.createElement(x.Input,{name:"link",size:"md",value:m,isDisabled:!0}),ee.default.createElement(y.Button,{size:"md",type:"button",color:"tertiary",icon:ee.default.createElement(_l,null),onClick:h})))))},exports.StatisticCard=({type:e,description:t,value:a,withIcon:l,isInACard:n,cardColor:i,className:o})=>ee.default.createElement(gt,{className:o,"data-size":e,"data-is-in-card":"big"===e&&n,"data-card-color":i},ee.default.createElement(ft,null,"small"===e&&ee.default.createElement(ht,{"data-color":i}),t),ee.default.createElement(vt,{"data-size":e},"small"!==e&&l,a)),exports.SurveyOrPremiumBanner=({type:t,articleId:a=0,categoryIds:l=[],isMarketing:n,isSurveyType:i,hasPremiumBanner:s,currentUrl:d,isMobile:m,subcribeHealthStatus:p,setShouldAcquisitionModalOpen:g,onValueChange:h,source:f="discover",Wrapper:v})=>{const{t:b}=o.useTranslations(),{data:{userInfo:y}}=e.useContext(T.TogetherComponentGlobalContext),x=Boolean(null==y?void 0:y.id),[E,w]=e.useState(null),[C,k]=e.useState(),[B,S]=e.useState(""),[N,A]=e.useState(!1),[M,P]=e.useState(!1),D=e.useMemo((()=>tn[t]),[]),z=((e,t)=>({[Kl.Pregnant]:{action:en.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:Jl.Button,thumbnail:{desktop:r.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:r.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:c.rem(80),[e.fn.largerThan("sm")]:{minWidth:c.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:en.ShowTool,props:{value:Zl.DUE_DATE}},no:{action:en.ShowPremiumModal}}},[Kl.Parenting]:{action:en.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:r.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:r.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:Jl.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:en.ShowTool,props:{value:Zl.BABY_VACCINE}},teenager:{action:en.ShowOptionBanner,props:{styleType:Jl.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:r.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:r.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:en.ShowPremiumModal},"teenager.girl":{action:en.ShowTool,activeTool:u.RISK_SCREENER_NAME.HPV,props:{value:u.RISK_SCREENER_NAME.HPV}},"todders|teenager":{action:en.ShowOptionBanner,props:{styleType:Jl.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:r.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:r.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:Zl.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:en.ShowOptionBanner,props:{styleType:Jl.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:r.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:r.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:Zl.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(b,d)[D],L=null==z?void 0:z.submitHandler,I=v||c.Box,$=()=>s&&1!==(null==y?void 0:y.subscription)?ee.default.createElement(on,null):null;return e.useEffect((()=>{x&&w({userInfo:y,preferredTopics:ql,healthTopics:[]})}),[x]),ee.default.createElement(nn.Provider,{value:{settings:z,submitHandler:L,type:t,surveyType:D,value:B,setValue:S,isMobile:m,isLoggedIn:x,isMarketing:n,hasPremiumBanner:s,currentUrl:d,acquisitionInfo:E,categoryIds:l,subcribeHealthStatus:p,articleId:a,onValueChange:h,state:C,setState:k,handleClickOption:e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys(L).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=L[t];a.action===en.ShowPremiumModal?s?(A(!0),k(Object.assign(Object.assign({},C),{actionParams:{hideBannerWhenClose:a.action===en.ShowPremiumModal}}))):(k({action:en.Hide}),null==h||h(e)):(k(a),null==h||h(e))}},showPNModal:N,setShowPNModal:A,source:f,Outside:I,isBack:M,setIsBack:P,minHeight:180,setShouldAcquisitionModalOpen:g}},void 0!==p?x?i&&z?(()=>{const e=L[(null==p?void 0:p.value)||""];return(null==e?void 0:e.action)===en.ShowPremiumModal?$():ee.default.createElement(Dn,null)})():$():s?ee.default.createElement(on,null):null:null)},exports.SurveyQuestionCard=({className:a,headerText:l,style:n,question:i,termAndPolicyText:o,prevText:r,nextText:s,isContactForm:d,isDisableNext:c,isDisablePrev:m,onPrevClick:u,onNextClick:p,isSubmitButton:g,isButtonCenter:h,progress:f,descriptionText:v})=>{var b,x,E;const[w,C]=e.useState([]),{is_multi_select:k,multi_select_option:B,from:T,to:S}=i,N=null==i?void 0:i.type,A="checkbox"===N&&(null===(b=i.options)||void 0===b?void 0:b.length)&&(!w||0===w.length||k&&B===Dt.RANGE&&(w.length<T||w.length>S)||k&&B===Dt.EXACT_NUMBER&&w.length!==T)||"radio"===N&&(null===(x=i.options)||void 0===x?void 0:x.length)&&(!w||0===w.length)||"textbox"===N&&(null===(E=i.textOptions)||void 0===E?void 0:E.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,P=e.useRef(null),D=()=>"textbox"!==N||P.current.reportValidity();return ee.default.createElement(Tt,{className:a,style:n},ee.default.createElement("div",{className:"survey-inner-wrapper"},l&&ee.default.createElement("div",{className:"survey-header"},ee.default.createElement(t.Text,{className:"survey-header-text",size:"c2"},l)),ee.default.createElement("form",{ref:P,onSubmit:e=>e.preventDefault()},ee.default.createElement(Pt,{question:i,description:v,onOptionsChange:e=>{C(e)},onTextOptionsChange:e=>{C(e)}})),d&&s&&ee.default.createElement(y.Button,{className:"survey-contact-submit",size:"lg",isDisabled:c||A,onClick:()=>D()&&p&&p(w)},s),o&&ee.default.createElement("div",{className:"term-policy-container"},o),"number"==typeof f&&ee.default.createElement("div",{className:"survey-progress-wrapper"},ee.default.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${M})`}})),(r||s)&&ee.default.createElement("div",{"data-center":h,className:"survey-button-wrapper"},r&&ee.default.createElement(y.Button,{className:"survey-prev-button",size:"lg",color:m?"primary":"secondary",isDisabled:m,icon:ee.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},ee.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:m?"#fff":"#2D87F3"})),onClick:u},r),!d&&s&&ee.default.createElement(y.Button,{onClick:()=>D()&&p&&p(w),className:"survey-next-button",size:"lg",isDisabled:c||A},s," ",g?void 0:ee.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},ee.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})=>ee.default.createElement(Tt,{className:n,style:i},ee.default.createElement("div",{className:"survey-inner-wrapper"},ee.default.createElement(Nt,null,ee.default.createElement("div",{className:"survey-thankyou-wrapper-inner"},ee.default.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},ee.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:s.theme.colors.primary50}),ee.default.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),ee.default.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),ee.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"}),ee.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"}),ee.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"}),ee.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"}),ee.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"}),ee.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"}),ee.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"}),ee.default.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),ee.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&&ee.default.createElement(a.Heading,{className:"survey-thankyou-title",tag:"h3"},e),l&&ee.default.createElement(t.Text,{className:"survey-thankyou-subtitle",size:"p3"},l))))),exports.THRCardEmbed=({isSide:a,locale:l,thrContent:n,isMobile:i,info:d,inputErrorMessage:m,onFormChange:p,onSubmit:g})=>{var h,f,v;const{t:b}=o.useTranslations(),{getHealthToolLink:y}=L.useHealthToolsCache(l),x=e.useMemo((()=>y(T.HEALTH_TOOL_TYPE.THR)),[y]),[E,w]=e.useState(!1),[C,k]=e.useState("low_intensity"),[B,S]=e.useState("male"),[N,M]=e.useState(60),[P,z]=e.useState({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),I=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],$=[{value:"low_intensity",label:b("targetHeartRate.lowIntensity.title"),image:r.CommonGAssets.getAssetPath("/low.svg"),imageActive:r.CommonGAssets.getAssetPath("/low-active.svg"),content:b("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:b("targetHeartRate.moderateIntensity.title"),image:r.CommonGAssets.getAssetPath("/moderate.svg"),imageActive:r.CommonGAssets.getAssetPath("/moderate-active.svg"),content:b("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:b("targetHeartRate.aerobicZone.title"),image:r.CommonGAssets.getAssetPath("/aerobic.svg"),imageActive:r.CommonGAssets.getAssetPath("/aerobic-active.svg"),content:b("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:b("targetHeartRate.vigorousIntensity.title"),image:r.CommonGAssets.getAssetPath("/vigorous.svg"),imageActive:r.CommonGAssets.getAssetPath("/vigorous-active.svg"),content:b("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:b("targetHeartRate.maximumIntensity.title"),image:r.CommonGAssets.getAssetPath("/maximum.svg"),imageActive:r.CommonGAssets.getAssetPath("/maximum-active.svg"),content:b("targetHeartRate.maximumIntensity.note")}];return e.useEffect((()=>{const e=((new Date).getTime()-new Date(null==d?void 0:d.age).getTime())/1e3;w(e>=567648e3);const t=I.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||I[0];z(t),M(60)}),[null==d?void 0:d.age]),ee.default.createElement(Da,{"data-is-side":a},ee.default.createElement(da,{isSide:a,icon:ee.default.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||r.CommonGAssets.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:b("targetHearRate.heading"),medicalReview:(null===(h=null==n?void 0:n.reviewedBy)||void 0===h?void 0:h.display_name)?{link:_.formatUserProfileUrl(null==n?void 0:n.reviewedBy),reviewer:null===(f=null==n?void 0:n.reviewedBy)||void 0===f?void 0:f.display_name,date:null==n?void 0:n.reviewedDate}:void 0,isMobile:i}),ee.default.createElement(D.Container,null,ee.default.createElement(Pa,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":a},ee.default.createElement(al,{"data-is-side":a},ee.default.createElement(tl,null,ee.default.createElement(Se,{defaultValue:"male",onChange:e=>{S(e),M(60)},styles:e=>({root:!a&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:c.rem(12)}}})}))),ee.default.createElement(al,null,ee.default.createElement(ll,{info:d,locale:l,errorMessage:m,onChange:p})),ee.default.createElement("div",{className:"slider-heart-rate"},ee.default.createElement(t.Text,{size:"s4",weight:"semiBold",color:s.theme.colors.gray600},b("targetHeartRate.heartRateInput")),ee.default.createElement("div",{className:"slider-outer-wrapper"},ee.default.createElement(A.Slider,{containerStyle:{flex:1},min:"male"===B?P.rangeMale:P.rangeFemale,max:200,step:1,value:N,withControl:!0,onChange:M}))),E&&ee.default.createElement(tl,null,ee.default.createElement(Sa,null,ee.default.createElement(t.Text,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:s.theme.colors.gray600,marginBottom:"9px"}},b("targetHeartRate.selectActive")),ee.default.createElement("div",{className:"card"},ee.default.createElement(Xa,{options:$.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:C,onChange:e=>{k(e)},className:"gender-selector"})),C&&ee.default.createElement("div",{className:"note"},ee.default.createElement("img",{style:{height:"16px",width:"16px"},src:r.CommonGAssets.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),ee.default.createElement(t.Text,{size:"s4",color:"#595959"},null===(v=$[$.findIndex((e=>e.value==C))||0])||void 0===v?void 0:v.content)),!C&&ee.default.createElement("span",{style:{color:"#e64728"}},m.intensity)))),ee.default.createElement("div",{style:{display:"flex"}},ee.default.createElement(Ja,{size:"lg",onClick:()=>{g(B,C,[N])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${u.domainLocales[l]}/${x}`},b("bmi.submit")))))},exports.Tabs=({style:a,initialTab:l,tabContent:n,onChange:i,className:o,dataEventCategory:r,dataEventAction:s,dataEventLabel:d,id:c,styles:m})=>{const{classes:u,cx:p,theme:g}=Bt(void 0,{name:"Tabs",styles:m}),[h,f]=e.useState(l||0);return e.useEffect((()=>{f(l)}),[l]),ee.default.createElement("ul",{style:a,className:p(u.root,o),role:"tablist",id:c},n.map(((e,a)=>ee.default.createElement("li",{className:`${u.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||r,"data-event-action":e.dataEventAction||s,"data-event-label":e.dataEventLabel||d,tabIndex:0,"data-testid":e.dataTestid},ee.default.createElement("div",{className:u.itemInner},e.icon&&ee.default.createElement("div",{className:u.icon},e.icon),ee.default.createElement(t.Text,{className:u.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:o=!1,className:r,isLight:s,hasMorePadding:d,isLink:c,isSelected:m,textProps:u={size:"sm"}})=>{const p=u.color?{"--text-props-color":u.color}:{};return ee.default.createElement(a.StyledTag,{"data-is-squared":o||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:r,"data-is-selected":m||void 0,"data-is-link":c||void 0,tagType:e,isInline:n,tagHasMorePadding:d,tagIsLight:s,tagIsSquared:o,tagIsALink:c},ee.default.createElement(i.Text,Object.assign({},u),t))},exports.Toggle=({className:e,id:t,onChange:l,checked:n,style:i,label:o})=>ee.default.createElement(a.StyledToggle,{className:e,style:i},ee.default.createElement("input",{type:"checkbox",id:t,onChange:l,checked:n}),ee.default.createElement("label",{htmlFor:t},ee.default.createElement(a.StyledToggleIcon,null),o&&ee.default.createElement(a.StyledToggleLabel,null,o))),exports.ToolsBannerCard=da,exports.UserProfileNavigation=({SSO_URL:t,UP_BASEPATH:a="user",themeName:l="helloSites",cardUrls:n=zn,enableCare:i,enableTogether:s,enableEcom:d,enableMySaved:c,userInfo:m,togetherApiDomain:u,userPostsNumber:p,onClickNavigationCard:g,onClickMyProfileButton:f,onClickMenuItem:v,onClickLogout:b,isUserProfileNavigatorMenuHidden:x=!1,isMyHealthEnabled:E=!1,locale:w})=>{const{t:C}=o.useTranslations(),[k,B]=e.useState(p||0),T="marryBaby"===l;e.useEffect((()=>{if(m&&void 0===p){const e=K.getCookie("hhg_user_token");e&&fetch(X.normalizeLinkSlash(h.getTogetherUserPostsApiPath(w,T,u)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,l;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&B((null===(l=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===l?void 0:l.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[w,null!==m,p,u,T]);const S=e.useMemo((()=>{let e;return e=T?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?i:"myCommunity"===e?s:"myHealth"===e?E:"eCom"===e?d:"mySaved"!==e||c))}),[T,E]),N=e.useMemo((()=>"marryBaby"===l?null:ee.default.createElement(y.Button,{color:"tertiary",icon:ee.default.createElement("img",{src:r.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:b,className:li},C("userProfile.nav.menu.logout"))),[l]),A=e=>{e.startsWith("http")||e.startsWith("/")?window.location.href=X.normalizeLink(e):t&&(window.location.href=X.normalizeLink(`${t}${a}/${e}`))},M=e=>{const t=n[e];g?g(t):A(t)};return m?ee.default.createElement("div",{className:ei,"data-theme":l},ee.default.createElement(jn,{userInfo:m,themeName:l,onClickMyProfileButton:()=>{f?f():A("profile")}}),ee.default.createElement(mi,{themeName:l,rank:"member",numberOfPosts:k}),ee.default.createElement("div",{className:ti},S.map((e=>ee.default.createElement(Wn,{className:ai,key:e,themeName:l,type:e,onClick:M})))),!x&&ee.default.createElement(ee.default.Fragment,null,ee.default.createElement(Xn,{themeName:l,locale:w,onClickItem:e=>{"logout"===e.link&&b?b():e.link&&!e.subMenu&&(v?v(e.link):A(e.link))}}),N)):null},exports.UserStats=mi,exports.index=mt,exports.index$1=kt;