@hhgtech/hhg-components 1.28.65 → 1.28.67

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 (461) hide show
  1. package/build/adapters.js +1 -1
  2. package/build/babyGrowth.js +24 -24
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/atoms/icons/index.d.ts +0 -58
  6. package/build/components.js +1 -1
  7. package/build/{constants-2a4ad19a.js → constants-00e06f68.js} +1 -1
  8. package/build/{constants-2af7a634.js → constants-51251306.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/{core-a23c80d2.js → core-ba3af3e2.js} +1 -1
  11. package/build/{dataTransform-2ab3c90d.js → dataTransform-1805eae3.js} +1 -1
  12. package/build/ecom.js +1 -1
  13. package/build/esm/adapters.js +1 -1
  14. package/build/esm/babyGrowth.js +24 -24
  15. package/build/esm/cache.js +1 -1
  16. package/build/esm/care.js +1 -1
  17. package/build/esm/components/atoms/icons/index.d.ts +0 -58
  18. package/build/esm/components.js +1 -1
  19. package/build/esm/{constants-36c1648d.js → constants-6ecfa77c.js} +1 -1
  20. package/build/esm/{constants-ed8abdff.js → constants-f7c80032.js} +1 -1
  21. package/build/esm/constants.js +1 -1
  22. package/build/esm/{core-cdfc811a.js → core-80112758.js} +1 -1
  23. package/build/esm/{dataTransform-10fecdbe.js → dataTransform-0fa341bb.js} +1 -1
  24. package/build/esm/ecom.js +1 -1
  25. package/build/esm/footer.js +1 -1
  26. package/build/esm/gAssets.js +1 -1
  27. package/build/esm/getDynamicHealthTool-a4c9d6dd.js +1 -0
  28. package/build/esm/{getSocialList-558fc075.js → getSocialList-4e48deba.js} +1 -1
  29. package/build/esm/hooks.js +1 -1
  30. package/build/esm/i18n.js +1 -1
  31. package/build/esm/i18nV2.js +1 -1
  32. package/build/esm/index-13dc1f44.js +1 -0
  33. package/build/esm/{index-0d9821e3.js → index-13e62563.js} +2 -2
  34. package/build/esm/index-24557f2b.js +1 -0
  35. package/build/esm/{index-7e4d8533.js → index-252cb964.js} +1 -1
  36. package/build/esm/{index-01efa9be.js → index-2e99f941.js} +1 -1
  37. package/build/esm/{index-18ff3f75.js → index-3452fed2.js} +1 -1
  38. package/build/esm/index-3aff939b.js +1 -0
  39. package/build/esm/index-459e0362.js +1 -0
  40. package/build/esm/index-45dcd965.js +1 -0
  41. package/build/esm/{index-8f4b4a7f.js → index-486b71cd.js} +1 -1
  42. package/build/esm/{index-8c1e2ce6.js → index-5408f5a4.js} +15 -15
  43. package/build/esm/{index-c6fcc250.js → index-5e1af23a.js} +1 -1
  44. package/build/esm/{index-5f52d2b1.js → index-79ef3a30.js} +1 -1
  45. package/build/esm/{index-89127303.js → index-7c77273a.js} +1 -1
  46. package/build/esm/{index-557e3a42.js → index-823fd7c0.js} +1 -1
  47. package/build/esm/{index-16d9b234.js → index-93e5b4f3.js} +1 -1
  48. package/build/esm/{index-5ef00905.js → index-9c7b9011.js} +133 -133
  49. package/build/esm/{index-05214244.js → index-9e5956c2.js} +1 -1
  50. package/build/esm/{index-c2e4449d.js → index-a83aad1c.js} +13 -13
  51. package/build/esm/index-b7cc3ca2.js +1 -0
  52. package/build/esm/{index-661f66bf.js → index-bf11f9e9.js} +1 -1
  53. package/build/esm/index-ce3d38fd.js +1 -0
  54. package/build/esm/index-d27a0e25.js +1 -0
  55. package/build/esm/index-f9514788.js +177 -0
  56. package/build/esm/{index-f03e0f09.js → index-fd04ccb7.js} +89 -89
  57. package/build/esm/index.js +1 -1
  58. package/build/esm/{index.styled-c2100f19.js → index.styled-14b65c9e.js} +3 -3
  59. package/build/esm/{index.styles-d3334c25.js → index.styles-94af560f.js} +1 -1
  60. package/build/esm/lead.js +1 -1
  61. package/build/esm/mantine.js +1 -1
  62. package/build/esm/misc.js +1 -1
  63. package/build/esm/navigation.js +1 -1
  64. package/build/esm/onboardingV2.js +9 -9
  65. package/build/esm/pwg.js +3 -3
  66. package/build/esm/{routing-a6c8f9f9.js → routing-2b284b30.js} +1 -1
  67. package/build/esm/subot.js +4 -4
  68. package/build/esm/together.js +1 -1
  69. package/build/esm/types-6d397125.js +3004 -0
  70. package/build/esm/{types-202e947a.js → types-850814a7.js} +34 -34
  71. package/build/esm/types.js +1 -1
  72. package/build/esm/{useCategory-3045fde3.js → useCategory-f5f74749.js} +1 -1
  73. package/build/esm/useHealthToolCache-f1488032.js +1 -0
  74. package/build/esm/usePlacesAutocomplete-0733ec49.js +1 -0
  75. package/build/esm/useTranslations-df1b3bb8.js +1 -0
  76. package/build/esm/{utils-508d45bb.js → utils-3d2e3f0f.js} +1 -1
  77. package/build/esm/utils-970ce0c0.js +8 -0
  78. package/build/esm/{utils-c6a7729e.js → utils-b87ec473.js} +1 -1
  79. package/build/esm/vaccination.js +7 -7
  80. package/build/footer.js +1 -1
  81. package/build/gAssets.js +1 -1
  82. package/build/{getDynamicHealthTool-ba27b7ff.js → getDynamicHealthTool-31f44ca1.js} +1 -1
  83. package/build/{getSocialList-50dc70b7.js → getSocialList-29c0a6e8.js} +1 -1
  84. package/build/hooks.js +1 -1
  85. package/build/i18n.js +1 -1
  86. package/build/i18nV2.js +1 -1
  87. package/build/index-1714c81c.js +2748 -0
  88. package/build/{index-7b33ac50.js → index-238813a4.js} +1 -1
  89. package/build/{index-e1263b2f.js → index-2438163d.js} +68 -68
  90. package/build/{index-1305e723.js → index-29d302f4.js} +1 -1
  91. package/build/{index-166c60e5.js → index-3184ae4e.js} +1 -1
  92. package/build/{index-76d08581.js → index-35192783.js} +1 -1
  93. package/build/{index-d5e1c0b8.js → index-41d684a8.js} +1 -1
  94. package/build/{index-9770314e.js → index-4a8c8ce6.js} +1 -1
  95. package/build/index-64d2f812.js +1 -0
  96. package/build/index-85c621a2.js +113 -0
  97. package/build/{index-a35a2780.js → index-90f4bc02.js} +1 -1
  98. package/build/{index-0553b781.js → index-9a845847.js} +1 -1
  99. package/build/index-9ed509d1.js +1 -0
  100. package/build/{index-7ad5f191.js → index-aa495d24.js} +1 -1
  101. package/build/{index-499c23d5.js → index-ad5cf64d.js} +1 -1
  102. package/build/{index-6bff2cc3.js → index-b21a1d96.js} +1 -1
  103. package/build/index-b320255d.js +1 -0
  104. package/build/index-b9af15da.js +1 -0
  105. package/build/{index-856f5069.js → index-bd4b31bf.js} +1 -1
  106. package/build/{index-b21da1ea.js → index-bf81cb71.js} +1 -1
  107. package/build/index-c3cbb8f3.js +1 -0
  108. package/build/index-d25afe2f.js +1 -0
  109. package/build/index-e7c1ff53.js +177 -0
  110. package/build/index-f6217f73.js +1 -0
  111. package/build/{index-25e39319.js → index-f7088d57.js} +1 -1
  112. package/build/index.js +1 -1
  113. package/build/{index.styled-b45c0dd2.js → index.styled-0a1fb891.js} +1 -1
  114. package/build/{index.styles-ce777fa6.js → index.styles-2ecb9c85.js} +4 -4
  115. package/build/lead.js +1 -1
  116. package/build/mantine.js +1 -1
  117. package/build/misc.js +1 -1
  118. package/build/navigation.js +1 -1
  119. package/build/onboardingV2.js +1 -1
  120. package/build/pwg.js +3 -3
  121. package/build/{routing-d3de5002.js → routing-f2edd0d0.js} +1 -1
  122. package/build/subot.js +4 -4
  123. package/build/together.js +1 -1
  124. package/build/{types-61b2a9ef.js → types-49f0543a.js} +2 -2
  125. package/build/{types-d8cdfbc7.js → types-bfd12e24.js} +202 -202
  126. package/build/types.js +1 -1
  127. package/build/{useCategory-7bd8370b.js → useCategory-94d60dab.js} +1 -1
  128. package/build/{useHealthToolCache-79d56870.js → useHealthToolCache-7307d240.js} +1 -1
  129. package/build/{usePlacesAutocomplete-c4bd074d.js → usePlacesAutocomplete-6ab0181b.js} +1 -1
  130. package/build/{useTranslations-e2b22984.js → useTranslations-233c68bc.js} +1 -1
  131. package/build/utils-13ea4f2f.js +8 -0
  132. package/build/{utils-c3b0bf92.js → utils-bee8be92.js} +2 -2
  133. package/build/{utils-7a63c632.js → utils-d5766c73.js} +1 -1
  134. package/build/vaccination.js +5 -5
  135. package/package.json +4 -2
  136. package/build/Plus-1389822c.js +0 -1
  137. package/build/WhatsApp-b1f3496a.js +0 -1
  138. package/build/components/atoms/icons/ACharacter.d.ts +0 -4
  139. package/build/components/atoms/icons/Activities.d.ts +0 -4
  140. package/build/components/atoms/icons/ArrowDown.d.ts +0 -4
  141. package/build/components/atoms/icons/ArrowLeft.d.ts +0 -4
  142. package/build/components/atoms/icons/ArrowRight.d.ts +0 -4
  143. package/build/components/atoms/icons/Article.d.ts +0 -4
  144. package/build/components/atoms/icons/Ask.d.ts +0 -4
  145. package/build/components/atoms/icons/BabyBoyMB.d.ts +0 -4
  146. package/build/components/atoms/icons/BabyGirlMB.d.ts +0 -4
  147. package/build/components/atoms/icons/BarChart.d.ts +0 -4
  148. package/build/components/atoms/icons/Booking.d.ts +0 -4
  149. package/build/components/atoms/icons/Bookmark.d.ts +0 -4
  150. package/build/components/atoms/icons/Boy.d.ts +0 -4
  151. package/build/components/atoms/icons/Business.d.ts +0 -4
  152. package/build/components/atoms/icons/Calendar.d.ts +0 -4
  153. package/build/components/atoms/icons/CalendarMB.d.ts +0 -4
  154. package/build/components/atoms/icons/CameraCircle.d.ts +0 -4
  155. package/build/components/atoms/icons/Chat.d.ts +0 -4
  156. package/build/components/atoms/icons/Check.d.ts +0 -4
  157. package/build/components/atoms/icons/CheckActiveMB.d.ts +0 -4
  158. package/build/components/atoms/icons/CircleBorder.d.ts +0 -4
  159. package/build/components/atoms/icons/Clickable.d.ts +0 -4
  160. package/build/components/atoms/icons/ClinicPin.d.ts +0 -4
  161. package/build/components/atoms/icons/Close.d.ts +0 -4
  162. package/build/components/atoms/icons/Comment.d.ts +0 -4
  163. package/build/components/atoms/icons/Community.d.ts +0 -4
  164. package/build/components/atoms/icons/CrossLogo.d.ts +0 -4
  165. package/build/components/atoms/icons/Current.d.ts +0 -4
  166. package/build/components/atoms/icons/EditSpecial.d.ts +0 -4
  167. package/build/components/atoms/icons/Endorse.d.ts +0 -4
  168. package/build/components/atoms/icons/Envelop.d.ts +0 -4
  169. package/build/components/atoms/icons/Family.d.ts +0 -4
  170. package/build/components/atoms/icons/Font.d.ts +0 -4
  171. package/build/components/atoms/icons/FullScreen.d.ts +0 -4
  172. package/build/components/atoms/icons/GenderBoy.d.ts +0 -4
  173. package/build/components/atoms/icons/GenderChooseBoy.d.ts +0 -4
  174. package/build/components/atoms/icons/GenderChooseGirl.d.ts +0 -4
  175. package/build/components/atoms/icons/GenderGirl.d.ts +0 -4
  176. package/build/components/atoms/icons/Girl.d.ts +0 -4
  177. package/build/components/atoms/icons/GroupPeople.d.ts +0 -4
  178. package/build/components/atoms/icons/GroupPeopleSolid.d.ts +0 -4
  179. package/build/components/atoms/icons/Heart.d.ts +0 -4
  180. package/build/components/atoms/icons/Home.d.ts +0 -4
  181. package/build/components/atoms/icons/Hospital.d.ts +0 -4
  182. package/build/components/atoms/icons/Info.d.ts +0 -4
  183. package/build/components/atoms/icons/Kebab.d.ts +0 -4
  184. package/build/components/atoms/icons/Like.d.ts +0 -4
  185. package/build/components/atoms/icons/Link.d.ts +0 -4
  186. package/build/components/atoms/icons/Minus.d.ts +0 -4
  187. package/build/components/atoms/icons/Missed.d.ts +0 -4
  188. package/build/components/atoms/icons/MyCommunity.d.ts +0 -4
  189. package/build/components/atoms/icons/MyHealth.d.ts +0 -4
  190. package/build/components/atoms/icons/Oppose.d.ts +0 -4
  191. package/build/components/atoms/icons/Parents.d.ts +0 -4
  192. package/build/components/atoms/icons/Plus.d.ts +0 -4
  193. package/build/components/atoms/icons/PlusSpecial.d.ts +0 -4
  194. package/build/components/atoms/icons/Post.d.ts +0 -4
  195. package/build/components/atoms/icons/Recalculate.d.ts +0 -4
  196. package/build/components/atoms/icons/Reply.d.ts +0 -4
  197. package/build/components/atoms/icons/Scale.d.ts +0 -4
  198. package/build/components/atoms/icons/Screener.d.ts +0 -4
  199. package/build/components/atoms/icons/Search.d.ts +0 -4
  200. package/build/components/atoms/icons/ShieldCheck.d.ts +0 -4
  201. package/build/components/atoms/icons/Smile.d.ts +0 -4
  202. package/build/components/atoms/icons/Sparkle.d.ts +0 -4
  203. package/build/components/atoms/icons/Star.d.ts +0 -4
  204. package/build/components/atoms/icons/Stethoscope.d.ts +0 -4
  205. package/build/components/atoms/icons/StethoscopeActive.d.ts +0 -4
  206. package/build/components/atoms/icons/ToggleOff.d.ts +0 -4
  207. package/build/components/atoms/icons/ToggleOn.d.ts +0 -4
  208. package/build/components/atoms/icons/Trash.d.ts +0 -4
  209. package/build/components/atoms/icons/Upcoming.d.ts +0 -4
  210. package/build/components/atoms/icons/User.d.ts +0 -4
  211. package/build/components/atoms/icons/UserCheck.d.ts +0 -4
  212. package/build/components/atoms/icons/Vaccinated.d.ts +0 -4
  213. package/build/components/atoms/icons/Video.d.ts +0 -4
  214. package/build/components/atoms/icons/VideoCall.d.ts +0 -4
  215. package/build/components/atoms/icons/Woman.d.ts +0 -4
  216. package/build/components/navigationV2/components/atoms/SearchIcon.d.ts +0 -2
  217. package/build/esm/Plus-61592057.js +0 -1
  218. package/build/esm/WhatsApp-5a6ef99f.js +0 -1
  219. package/build/esm/components/atoms/icons/ACharacter.d.ts +0 -4
  220. package/build/esm/components/atoms/icons/Activities.d.ts +0 -4
  221. package/build/esm/components/atoms/icons/ArrowDown.d.ts +0 -4
  222. package/build/esm/components/atoms/icons/ArrowLeft.d.ts +0 -4
  223. package/build/esm/components/atoms/icons/ArrowRight.d.ts +0 -4
  224. package/build/esm/components/atoms/icons/Article.d.ts +0 -4
  225. package/build/esm/components/atoms/icons/Ask.d.ts +0 -4
  226. package/build/esm/components/atoms/icons/BabyBoyMB.d.ts +0 -4
  227. package/build/esm/components/atoms/icons/BabyGirlMB.d.ts +0 -4
  228. package/build/esm/components/atoms/icons/BarChart.d.ts +0 -4
  229. package/build/esm/components/atoms/icons/Booking.d.ts +0 -4
  230. package/build/esm/components/atoms/icons/Bookmark.d.ts +0 -4
  231. package/build/esm/components/atoms/icons/Boy.d.ts +0 -4
  232. package/build/esm/components/atoms/icons/Business.d.ts +0 -4
  233. package/build/esm/components/atoms/icons/Calendar.d.ts +0 -4
  234. package/build/esm/components/atoms/icons/CalendarMB.d.ts +0 -4
  235. package/build/esm/components/atoms/icons/CameraCircle.d.ts +0 -4
  236. package/build/esm/components/atoms/icons/Chat.d.ts +0 -4
  237. package/build/esm/components/atoms/icons/Check.d.ts +0 -4
  238. package/build/esm/components/atoms/icons/CheckActiveMB.d.ts +0 -4
  239. package/build/esm/components/atoms/icons/CircleBorder.d.ts +0 -4
  240. package/build/esm/components/atoms/icons/Clickable.d.ts +0 -4
  241. package/build/esm/components/atoms/icons/ClinicPin.d.ts +0 -4
  242. package/build/esm/components/atoms/icons/Close.d.ts +0 -4
  243. package/build/esm/components/atoms/icons/Comment.d.ts +0 -4
  244. package/build/esm/components/atoms/icons/Community.d.ts +0 -4
  245. package/build/esm/components/atoms/icons/CrossLogo.d.ts +0 -4
  246. package/build/esm/components/atoms/icons/Current.d.ts +0 -4
  247. package/build/esm/components/atoms/icons/EditSpecial.d.ts +0 -4
  248. package/build/esm/components/atoms/icons/Endorse.d.ts +0 -4
  249. package/build/esm/components/atoms/icons/Envelop.d.ts +0 -4
  250. package/build/esm/components/atoms/icons/Family.d.ts +0 -4
  251. package/build/esm/components/atoms/icons/Font.d.ts +0 -4
  252. package/build/esm/components/atoms/icons/FullScreen.d.ts +0 -4
  253. package/build/esm/components/atoms/icons/GenderBoy.d.ts +0 -4
  254. package/build/esm/components/atoms/icons/GenderChooseBoy.d.ts +0 -4
  255. package/build/esm/components/atoms/icons/GenderChooseGirl.d.ts +0 -4
  256. package/build/esm/components/atoms/icons/GenderGirl.d.ts +0 -4
  257. package/build/esm/components/atoms/icons/Girl.d.ts +0 -4
  258. package/build/esm/components/atoms/icons/GroupPeople.d.ts +0 -4
  259. package/build/esm/components/atoms/icons/GroupPeopleSolid.d.ts +0 -4
  260. package/build/esm/components/atoms/icons/Heart.d.ts +0 -4
  261. package/build/esm/components/atoms/icons/Home.d.ts +0 -4
  262. package/build/esm/components/atoms/icons/Hospital.d.ts +0 -4
  263. package/build/esm/components/atoms/icons/Info.d.ts +0 -4
  264. package/build/esm/components/atoms/icons/Kebab.d.ts +0 -4
  265. package/build/esm/components/atoms/icons/Like.d.ts +0 -4
  266. package/build/esm/components/atoms/icons/Link.d.ts +0 -4
  267. package/build/esm/components/atoms/icons/Minus.d.ts +0 -4
  268. package/build/esm/components/atoms/icons/Missed.d.ts +0 -4
  269. package/build/esm/components/atoms/icons/MyCommunity.d.ts +0 -4
  270. package/build/esm/components/atoms/icons/MyHealth.d.ts +0 -4
  271. package/build/esm/components/atoms/icons/Oppose.d.ts +0 -4
  272. package/build/esm/components/atoms/icons/Parents.d.ts +0 -4
  273. package/build/esm/components/atoms/icons/Plus.d.ts +0 -4
  274. package/build/esm/components/atoms/icons/PlusSpecial.d.ts +0 -4
  275. package/build/esm/components/atoms/icons/Post.d.ts +0 -4
  276. package/build/esm/components/atoms/icons/Recalculate.d.ts +0 -4
  277. package/build/esm/components/atoms/icons/Reply.d.ts +0 -4
  278. package/build/esm/components/atoms/icons/Scale.d.ts +0 -4
  279. package/build/esm/components/atoms/icons/Screener.d.ts +0 -4
  280. package/build/esm/components/atoms/icons/Search.d.ts +0 -4
  281. package/build/esm/components/atoms/icons/ShieldCheck.d.ts +0 -4
  282. package/build/esm/components/atoms/icons/Smile.d.ts +0 -4
  283. package/build/esm/components/atoms/icons/Sparkle.d.ts +0 -4
  284. package/build/esm/components/atoms/icons/Star.d.ts +0 -4
  285. package/build/esm/components/atoms/icons/Stethoscope.d.ts +0 -4
  286. package/build/esm/components/atoms/icons/StethoscopeActive.d.ts +0 -4
  287. package/build/esm/components/atoms/icons/ToggleOff.d.ts +0 -4
  288. package/build/esm/components/atoms/icons/ToggleOn.d.ts +0 -4
  289. package/build/esm/components/atoms/icons/Trash.d.ts +0 -4
  290. package/build/esm/components/atoms/icons/Upcoming.d.ts +0 -4
  291. package/build/esm/components/atoms/icons/User.d.ts +0 -4
  292. package/build/esm/components/atoms/icons/UserCheck.d.ts +0 -4
  293. package/build/esm/components/atoms/icons/Vaccinated.d.ts +0 -4
  294. package/build/esm/components/atoms/icons/Video.d.ts +0 -4
  295. package/build/esm/components/atoms/icons/VideoCall.d.ts +0 -4
  296. package/build/esm/components/atoms/icons/Woman.d.ts +0 -4
  297. package/build/esm/components/navigationV2/components/atoms/SearchIcon.d.ts +0 -2
  298. package/build/esm/getDynamicHealthTool-94a90aa0.js +0 -1
  299. package/build/esm/index-04f183b8.js +0 -1
  300. package/build/esm/index-07905741.js +0 -1
  301. package/build/esm/index-1f2316ca.js +0 -1
  302. package/build/esm/index-200ec6b1.js +0 -1
  303. package/build/esm/index-418f072b.js +0 -1
  304. package/build/esm/index-a9cbaabd.js +0 -1
  305. package/build/esm/index-ebd9ace0.js +0 -1
  306. package/build/esm/index-ed71bf72.js +0 -177
  307. package/build/esm/types-d7d54442.js +0 -3004
  308. package/build/esm/useHealthToolCache-73b62210.js +0 -1
  309. package/build/esm/usePlacesAutocomplete-ff204ea8.js +0 -1
  310. package/build/esm/useTranslations-cce18e33.js +0 -1
  311. package/build/esm/utils-e3640c23.js +0 -7
  312. package/build/index-01eb2479.js +0 -177
  313. package/build/index-0242b079.js +0 -1
  314. package/build/index-04da6493.js +0 -1
  315. package/build/index-0a9fa2c4.js +0 -2748
  316. package/build/index-0cecb118.js +0 -1
  317. package/build/index-1c7247cc.js +0 -113
  318. package/build/index-d85d7a99.js +0 -1
  319. package/build/index-e05e160d.js +0 -1
  320. package/build/index-f4c55cce.js +0 -1
  321. package/build/utils-5ea654b8.js +0 -1
  322. /package/build/{BMI_BOYS.percentile.monthly-5cd79b25.js → BMI_BOYS.percentile.monthly-c56b0165.js} +0 -0
  323. /package/build/{BMI_BOYS.percentile.weekly-fc72eb47.js → BMI_BOYS.percentile.weekly-64287e04.js} +0 -0
  324. /package/build/{BMI_BOYS.percentile.yearly-9f13a908.js → BMI_BOYS.percentile.yearly-8db65d54.js} +0 -0
  325. /package/build/{BMI_BOYS.zscore.monthly-f306d58d.js → BMI_BOYS.zscore.monthly-f12389cd.js} +0 -0
  326. /package/build/{BMI_BOYS.zscore.weekly-9d80c0e2.js → BMI_BOYS.zscore.weekly-fff37a57.js} +0 -0
  327. /package/build/{BMI_BOYS.zscore.yearly-9ade76a5.js → BMI_BOYS.zscore.yearly-a19b57eb.js} +0 -0
  328. /package/build/{BMI_GIRLS.percentile.monthly-0318da9f.js → BMI_GIRLS.percentile.monthly-a4b36d7d.js} +0 -0
  329. /package/build/{BMI_GIRLS.percentile.weekly-1f566aaa.js → BMI_GIRLS.percentile.weekly-b6089202.js} +0 -0
  330. /package/build/{BMI_GIRLS.percentile.yearly-215b3cba.js → BMI_GIRLS.percentile.yearly-0d340818.js} +0 -0
  331. /package/build/{BMI_GIRLS.zscore.monthly-bae848b2.js → BMI_GIRLS.zscore.monthly-fd5b57c0.js} +0 -0
  332. /package/build/{BMI_GIRLS.zscore.weekly-2371a64f.js → BMI_GIRLS.zscore.weekly-d4577f50.js} +0 -0
  333. /package/build/{BMI_GIRLS.zscore.yearly-9ecfbccb.js → BMI_GIRLS.zscore.yearly-e40b8a7d.js} +0 -0
  334. /package/build/{ChevronDown-9a823643.js → ChevronDown-602ce39e.js} +0 -0
  335. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-0d2ab2e7.js → HEAD CIRCUM_BOYS.percentile.monthly-2e4c5776.js} +0 -0
  336. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-27bac0cb.js → HEAD CIRCUM_BOYS.percentile.weekly-fc5728a5.js} +0 -0
  337. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-b175db79.js → HEAD CIRCUM_BOYS.percentile.yearly-6bfab277.js} +0 -0
  338. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f5c6bdd6.js → HEAD CIRCUM_BOYS.zscore.monthly-6af7ce44.js} +0 -0
  339. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-bfdc4392.js → HEAD CIRCUM_BOYS.zscore.weekly-9adb819b.js} +0 -0
  340. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-14f0889d.js → HEAD CIRCUM_BOYS.zscore.yearly-9a6cdbcf.js} +0 -0
  341. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-903e7189.js → HEAD CIRCUM_GIRLS.percentile.monthly-e7bfe9c6.js} +0 -0
  342. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-748869a7.js → HEAD CIRCUM_GIRLS.percentile.weekly-9f17e019.js} +0 -0
  343. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2a680f48.js → HEAD CIRCUM_GIRLS.percentile.yearly-8a59f541.js} +0 -0
  344. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-e054510e.js → HEAD CIRCUM_GIRLS.zscore.monthly-b7ddb16c.js} +0 -0
  345. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-eb025087.js → HEAD CIRCUM_GIRLS.zscore.weekly-72701c55.js} +0 -0
  346. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-011649a2.js → HEAD CIRCUM_GIRLS.zscore.yearly-dd94bded.js} +0 -0
  347. /package/build/{HEIGHT_BOYS.percentile.monthly-7e9898ff.js → HEIGHT_BOYS.percentile.monthly-b890068c.js} +0 -0
  348. /package/build/{HEIGHT_BOYS.percentile.weekly-a7df6826.js → HEIGHT_BOYS.percentile.weekly-a1aa5130.js} +0 -0
  349. /package/build/{HEIGHT_BOYS.percentile.yearly-7f716f35.js → HEIGHT_BOYS.percentile.yearly-5727d920.js} +0 -0
  350. /package/build/{HEIGHT_BOYS.zscore.monthly-a180ab2d.js → HEIGHT_BOYS.zscore.monthly-13b70aa6.js} +0 -0
  351. /package/build/{HEIGHT_BOYS.zscore.weekly-92934eaa.js → HEIGHT_BOYS.zscore.weekly-3e1d7f23.js} +0 -0
  352. /package/build/{HEIGHT_BOYS.zscore.yearly-bd2cf58f.js → HEIGHT_BOYS.zscore.yearly-a956102d.js} +0 -0
  353. /package/build/{HEIGHT_GIRLS.percentile.monthly-a90a6654.js → HEIGHT_GIRLS.percentile.monthly-da5ec01b.js} +0 -0
  354. /package/build/{HEIGHT_GIRLS.percentile.weekly-b89741cd.js → HEIGHT_GIRLS.percentile.weekly-e6205d32.js} +0 -0
  355. /package/build/{HEIGHT_GIRLS.percentile.yearly-03631447.js → HEIGHT_GIRLS.percentile.yearly-caefa502.js} +0 -0
  356. /package/build/{HEIGHT_GIRLS.zscore.monthly-aac24454.js → HEIGHT_GIRLS.zscore.monthly-102ba473.js} +0 -0
  357. /package/build/{HEIGHT_GIRLS.zscore.weekly-2869cc02.js → HEIGHT_GIRLS.zscore.weekly-db4f710b.js} +0 -0
  358. /package/build/{HEIGHT_GIRLS.zscore.yearly-fc370322.js → HEIGHT_GIRLS.zscore.yearly-36465920.js} +0 -0
  359. /package/build/{Subot-6f44f7d1.js → Subot-4751194d.js} +0 -0
  360. /package/build/{Visible-e3703df9.js → Visible-9497c463.js} +0 -0
  361. /package/build/{WEIGHT_BOYS.percentile.monthly-975193d0.js → WEIGHT_BOYS.percentile.monthly-554d0361.js} +0 -0
  362. /package/build/{WEIGHT_BOYS.percentile.weekly-b5c38df2.js → WEIGHT_BOYS.percentile.weekly-8e5334b8.js} +0 -0
  363. /package/build/{WEIGHT_BOYS.percentile.yearly-240ed2c9.js → WEIGHT_BOYS.percentile.yearly-536e1ccb.js} +0 -0
  364. /package/build/{WEIGHT_BOYS.zscore.monthly-fa43b6c3.js → WEIGHT_BOYS.zscore.monthly-01eccee1.js} +0 -0
  365. /package/build/{WEIGHT_BOYS.zscore.weekly-046b9f1b.js → WEIGHT_BOYS.zscore.weekly-ee8f2c6b.js} +0 -0
  366. /package/build/{WEIGHT_BOYS.zscore.yearly-ae9412de.js → WEIGHT_BOYS.zscore.yearly-0aea2749.js} +0 -0
  367. /package/build/{WEIGHT_GIRLS.percentile.monthly-6d56fb24.js → WEIGHT_GIRLS.percentile.monthly-7abf9d06.js} +0 -0
  368. /package/build/{WEIGHT_GIRLS.percentile.weekly-f9e08e94.js → WEIGHT_GIRLS.percentile.weekly-f9b6e963.js} +0 -0
  369. /package/build/{WEIGHT_GIRLS.percentile.yearly-980c7b20.js → WEIGHT_GIRLS.percentile.yearly-254865a5.js} +0 -0
  370. /package/build/{WEIGHT_GIRLS.zscore.monthly-f27b0da0.js → WEIGHT_GIRLS.zscore.monthly-909f7417.js} +0 -0
  371. /package/build/{WEIGHT_GIRLS.zscore.weekly-666d490e.js → WEIGHT_GIRLS.zscore.weekly-e62cd084.js} +0 -0
  372. /package/build/{WEIGHT_GIRLS.zscore.yearly-5f28002e.js → WEIGHT_GIRLS.zscore.yearly-8d6e5405.js} +0 -0
  373. /package/build/{animation-e73dc040.js → animation-d5d9ef32.js} +0 -0
  374. /package/build/{cookieHelper-3b9ceb4e.js → cookieHelper-7d519a72.js} +0 -0
  375. /package/build/esm/{BMI_BOYS.percentile.monthly-5245a76e.js → BMI_BOYS.percentile.monthly-6272f835.js} +0 -0
  376. /package/build/esm/{BMI_BOYS.percentile.weekly-69f6d409.js → BMI_BOYS.percentile.weekly-80d18f47.js} +0 -0
  377. /package/build/esm/{BMI_BOYS.percentile.yearly-6b7c67a5.js → BMI_BOYS.percentile.yearly-a7e5b5f6.js} +0 -0
  378. /package/build/esm/{BMI_BOYS.zscore.monthly-54f7384d.js → BMI_BOYS.zscore.monthly-d3658f97.js} +0 -0
  379. /package/build/esm/{BMI_BOYS.zscore.weekly-208ea2d6.js → BMI_BOYS.zscore.weekly-6e6708dc.js} +0 -0
  380. /package/build/esm/{BMI_BOYS.zscore.yearly-95fb8846.js → BMI_BOYS.zscore.yearly-b8400c9d.js} +0 -0
  381. /package/build/esm/{BMI_GIRLS.percentile.monthly-ffd9ffc6.js → BMI_GIRLS.percentile.monthly-98586b46.js} +0 -0
  382. /package/build/esm/{BMI_GIRLS.percentile.weekly-ca8fcfee.js → BMI_GIRLS.percentile.weekly-7c1511b0.js} +0 -0
  383. /package/build/esm/{BMI_GIRLS.percentile.yearly-b30eb957.js → BMI_GIRLS.percentile.yearly-ea667f90.js} +0 -0
  384. /package/build/esm/{BMI_GIRLS.zscore.monthly-4fd0f8f1.js → BMI_GIRLS.zscore.monthly-3a4fd1a6.js} +0 -0
  385. /package/build/esm/{BMI_GIRLS.zscore.weekly-d6b98de6.js → BMI_GIRLS.zscore.weekly-cc1de097.js} +0 -0
  386. /package/build/esm/{BMI_GIRLS.zscore.yearly-fbb5ee44.js → BMI_GIRLS.zscore.yearly-6dd1a364.js} +0 -0
  387. /package/build/esm/{ChevronDown-8452962e.js → ChevronDown-4e59cac6.js} +0 -0
  388. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-09c89acf.js → HEAD CIRCUM_BOYS.percentile.monthly-bd0965ae.js} +0 -0
  389. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-a15b9bbb.js → HEAD CIRCUM_BOYS.percentile.weekly-db1053f7.js} +0 -0
  390. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c6feccdc.js → HEAD CIRCUM_BOYS.percentile.yearly-cd38b622.js} +0 -0
  391. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-591fe4e6.js → HEAD CIRCUM_BOYS.zscore.monthly-d7f88a95.js} +0 -0
  392. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6e915af3.js → HEAD CIRCUM_BOYS.zscore.weekly-76f7db79.js} +0 -0
  393. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-59e4bfc4.js → HEAD CIRCUM_BOYS.zscore.yearly-3ce70f8e.js} +0 -0
  394. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-303fa4d4.js → HEAD CIRCUM_GIRLS.percentile.monthly-b2e678ae.js} +0 -0
  395. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-740b13f4.js → HEAD CIRCUM_GIRLS.percentile.weekly-8e2664bb.js} +0 -0
  396. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-d0589d47.js → HEAD CIRCUM_GIRLS.percentile.yearly-f5c075a9.js} +0 -0
  397. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-5d8fda84.js → HEAD CIRCUM_GIRLS.zscore.monthly-6f87849e.js} +0 -0
  398. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a8c3171f.js → HEAD CIRCUM_GIRLS.zscore.weekly-48da0aaa.js} +0 -0
  399. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-95746ad3.js → HEAD CIRCUM_GIRLS.zscore.yearly-4eea437b.js} +0 -0
  400. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-63abb64c.js → HEIGHT_BOYS.percentile.monthly-d1a8cc8e.js} +0 -0
  401. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e084fc63.js → HEIGHT_BOYS.percentile.weekly-2b6cfe6c.js} +0 -0
  402. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-fe73951b.js → HEIGHT_BOYS.percentile.yearly-9e78afc3.js} +0 -0
  403. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-cd438afc.js → HEIGHT_BOYS.zscore.monthly-5292d78a.js} +0 -0
  404. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-654e6872.js → HEIGHT_BOYS.zscore.weekly-fbdee645.js} +0 -0
  405. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f93b88e1.js → HEIGHT_BOYS.zscore.yearly-c11a8f1b.js} +0 -0
  406. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a7fceb4a.js → HEIGHT_GIRLS.percentile.monthly-8e11e2dc.js} +0 -0
  407. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0ffd736b.js → HEIGHT_GIRLS.percentile.weekly-dc3965cb.js} +0 -0
  408. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-bc5ba895.js → HEIGHT_GIRLS.percentile.yearly-490f7b4e.js} +0 -0
  409. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a527f6b5.js → HEIGHT_GIRLS.zscore.monthly-e3531c32.js} +0 -0
  410. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0432321b.js → HEIGHT_GIRLS.zscore.weekly-36a16a66.js} +0 -0
  411. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-580f5550.js → HEIGHT_GIRLS.zscore.yearly-61736bba.js} +0 -0
  412. /package/build/esm/{Subot-ade21804.js → Subot-4642c5bf.js} +0 -0
  413. /package/build/esm/{Visible-39f22e26.js → Visible-ff7d225c.js} +0 -0
  414. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f146d4b0.js → WEIGHT_BOYS.percentile.monthly-0cfe7ecd.js} +0 -0
  415. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b90291b2.js → WEIGHT_BOYS.percentile.weekly-89802113.js} +0 -0
  416. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1c5bc721.js → WEIGHT_BOYS.percentile.yearly-0eb40972.js} +0 -0
  417. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e7f77bb7.js → WEIGHT_BOYS.zscore.monthly-7f8c5a15.js} +0 -0
  418. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-a964f7fe.js → WEIGHT_BOYS.zscore.weekly-3dcfa8ce.js} +0 -0
  419. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0cd3170e.js → WEIGHT_BOYS.zscore.yearly-98ce1ea0.js} +0 -0
  420. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-963226db.js → WEIGHT_GIRLS.percentile.monthly-df98e335.js} +0 -0
  421. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-137218b5.js → WEIGHT_GIRLS.percentile.weekly-63fff42a.js} +0 -0
  422. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ec29d8fe.js → WEIGHT_GIRLS.percentile.yearly-8db8cdd0.js} +0 -0
  423. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-14843702.js → WEIGHT_GIRLS.zscore.monthly-15c83c6d.js} +0 -0
  424. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-43d4a42b.js → WEIGHT_GIRLS.zscore.weekly-747a55ec.js} +0 -0
  425. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-878837ef.js → WEIGHT_GIRLS.zscore.yearly-197dc52d.js} +0 -0
  426. /package/build/esm/{animation-1d694586.js → animation-0340efb3.js} +0 -0
  427. /package/build/esm/{cookieHelper-3fe8fdf3.js → cookieHelper-4f089e3c.js} +0 -0
  428. /package/build/esm/{index-9a776a7f.js → index-1e7ad007.js} +0 -0
  429. /package/build/esm/{index-761ce6cc.js → index-8c77d7e0.js} +0 -0
  430. /package/build/esm/{index-8cf56535.js → index-e21276e3.js} +0 -0
  431. /package/build/esm/{isProduction-8ae381c3.js → isProduction-00695d80.js} +0 -0
  432. /package/build/esm/{localizeNumberFormat-5846bb60.js → localizeNumberFormat-8355a44f.js} +0 -0
  433. /package/build/esm/{normalizeLink-cfd22388.js → normalizeLink-1c194268.js} +0 -0
  434. /package/build/esm/{number-c9fbe4ab.js → number-1347eb7b.js} +0 -0
  435. /package/build/esm/{paths-dfd6bdd2.js → paths-749b4b53.js} +0 -0
  436. /package/build/esm/{theme-2f0d6367.js → theme-3db3c9a8.js} +0 -0
  437. /package/build/esm/{translationsContext-d3dc4282.js → translationsContext-6d2efd65.js} +0 -0
  438. /package/build/esm/{tslib.es6-4a7efa3e.js → tslib.es6-266309d1.js} +0 -0
  439. /package/build/esm/{types-0d3813ec.js → types-d3da37d2.js} +0 -0
  440. /package/build/esm/{useIsInit-8d70a700.js → useIsInit-9661c5f5.js} +0 -0
  441. /package/build/esm/{useOutsideClick-7826d461.js → useOutsideClick-0704b383.js} +0 -0
  442. /package/build/esm/{useScrollbarSize-7519cdcf.js → useScrollbarSize-90b179a5.js} +0 -0
  443. /package/build/esm/{useUniqueId-463b8d94.js → useUniqueId-03fbaecd.js} +0 -0
  444. /package/build/esm/{utils-597f4846.js → utils-5b4e60da.js} +0 -0
  445. /package/build/{index-4da2b598.js → index-34b6bd24.js} +0 -0
  446. /package/build/{index-c2ff8b54.js → index-58e0d49f.js} +0 -0
  447. /package/build/{index-56b73a7a.js → index-ed8656f9.js} +0 -0
  448. /package/build/{isProduction-822a7286.js → isProduction-28d96804.js} +0 -0
  449. /package/build/{localizeNumberFormat-f54c1770.js → localizeNumberFormat-22b2d7aa.js} +0 -0
  450. /package/build/{normalizeLink-f9713014.js → normalizeLink-594ccff1.js} +0 -0
  451. /package/build/{number-3835f480.js → number-cf06dcc0.js} +0 -0
  452. /package/build/{paths-0bb9c960.js → paths-ed72ecb8.js} +0 -0
  453. /package/build/{theme-b5bd9d5b.js → theme-f2b8aad7.js} +0 -0
  454. /package/build/{translationsContext-4202bcac.js → translationsContext-4c4c33c4.js} +0 -0
  455. /package/build/{tslib.es6-94d9fc9f.js → tslib.es6-ceb091fd.js} +0 -0
  456. /package/build/{types-baa14b03.js → types-5b303b71.js} +0 -0
  457. /package/build/{useIsInit-8be51b79.js → useIsInit-c3cf1925.js} +0 -0
  458. /package/build/{useOutsideClick-b08de0a8.js → useOutsideClick-15fef824.js} +0 -0
  459. /package/build/{useScrollbarSize-f6774988.js → useScrollbarSize-ab332673.js} +0 -0
  460. /package/build/{useUniqueId-ff7774a5.js → useUniqueId-46834e18.js} +0 -0
  461. /package/build/{utils-82e9e1c2.js → utils-45e691a3.js} +0 -0
@@ -1,4 +1,4 @@
1
- import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,memo as o,useCallback as r,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p}from"./Plus-61592057.js";import{b as g,c as u,d as h,e as v,f as b,h as y,i as f,j as E,k as x,l as w,m as k,n as C,o as N,p as B,q as z,r as $,s as S,t as P,u as D,T as L,g as I,P as M}from"./index.styles-d3334c25.js";import{f as T,M as A}from"./utils-597f4846.js";import{I as j,R as O,u as _,A as F,b as H,c as R,B as W,d as U,e as V,f as G,t as Z}from"./index-8c1e2ce6.js";import{T as q}from"./index-418f072b.js";import{a as Y}from"./useUniqueId-463b8d94.js";import{C as X}from"./index-01efa9be.js";import{H as K}from"./index-a9cbaabd.js";import{t as Q}from"./theme-2f0d6367.js";import{_ as J,a as ee}from"./tslib.es6-4a7efa3e.js";import{Box as te,Radio as ae,Flex as ne,rem as ie,Card as le,Group as oe,createStyles as re,Stack as se,getStylesRef as ce,useMantineTheme as de,Container as me,UnstyledButton as pe,AspectRatio as ge,ScrollArea as ue,Chip as he,Badge as ve,MultiSelect as be,Stepper as ye}from"@mantine/core";import fe from"innertext";import"@mantine/dates";import{d as Ee,L as xe,F as we,Q as ke,R as Ce,a as Ne,G as Be}from"./index-05214244.js";import{G as ze,L as $e}from"./Subot-ade21804.js";import"./translationsContext-d3dc4282.js";import"string-format";import{useViewportSize as Se}from"@mantine/hooks";import{i as Pe,d as De}from"./index-f03e0f09.js";import Le,{keyframes as Ie,css as Me}from"styled-components";import Te from"lodash/throttle";import{L as Ae}from"./index-7e4d8533.js";import{B as je}from"./index-18ff3f75.js";import{I as Oe}from"./index-c6fcc250.js";import _e from"html-react-parser";import{i as Fe}from"./isProduction-8ae381c3.js";import{u as He}from"./useTranslations-cce18e33.js";import{format as Re,addDays as We,isBefore as Ue,startOfMonth as Ve,addMonths as Ge,subMonths as Ze,getDaysInMonth as qe,isToday as Ye,isSameDay as Xe,isWithinInterval as Ke,isAfter as Qe,isPast as Je}from"date-fns";import et from"dayjs";import"./utils-508d45bb.js";import{I as tt}from"./index-04f183b8.js";import"./index.styled-c2100f19.js";import"./index-761ce6cc.js";import{L as at}from"./constants-ed8abdff.js";import{Z as nt,s as it,H as lt,o as ot,d as rt,P as st,T as ct,t as dt,u as mt,v as pt}from"./utils-e3640c23.js";import{D as gt}from"./types-0d3813ec.js";import{D as ut}from"./index-c2e4449d.js";import{S as ht}from"./index-8f4b4a7f.js";import{M as vt}from"./index-89127303.js";import{D as bt}from"./index-0d9821e3.js";import{C as yt}from"./index-9a776a7f.js";import{useForm as ft,Controller as Et}from"react-hook-form";import{u as xt}from"./useHealthToolCache-73b62210.js";import{yupResolver as wt}from"@hookform/resolvers/yup";import{B as kt,D as Ct}from"./index-ed71bf72.js";import{h as Nt}from"./index-557e3a42.js";import"./WhatsApp-5a6ef99f.js";import{a as Bt}from"./useOutsideClick-7826d461.js";import zt from"date-fns/locale/en-US";import $t from"date-fns/locale/id";import St from"date-fns/locale/vi";import Pt from"date-fns/locale/zh-TW";import{g as Dt}from"./getSocialList-558fc075.js";import{v4 as Lt}from"uuid";import{g as It,a as Mt}from"./routing-a6c8f9f9.js";import{useForm as Tt,isNotEmpty as At}from"@mantine/form";import{M as jt}from"./index-07905741.js";import Ot from"js-cookie";import _t from"lodash/flatten";import Ft from"lodash/uniqBy";import{g as Ht}from"./cookieHelper-3fe8fdf3.js";import{n as Rt,a as Wt}from"./normalizeLink-cfd22388.js";var Ut="CHw-fZZ",Vt="_03U6VRS",Gt="EO828Vv";const Zt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:o,className:r,description:s})=>e.createElement("div",{className:`${Ut} ${r||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Vt},e.createElement("div",{className:"icon-title"},l,e.createElement(p,{weight:"bold",size:"label1"},n)),e.createElement(p,{weight:"regular",size:"p3"},s)),e.createElement("div",{className:Gt,onClick:a},o)),qt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Yt=({type:n="square",size:i,avatarImg:l,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:d,className:m,width:p,height:u,alt:h})=>{const v=i?qt[i]:void 0,[b,y]=t(!1);a((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{y(!0)}))}}),[o,y]);const f=(!o&&!l||b)&&r;return e.createElement(g,{style:Object.assign(Object.assign({},d),{"--size":v?v+"px":void 0,"--width-prop":p?p+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!p||!u),"data-avatar-type":n,onClick:c,className:m,avatarUrl:o,"data-custom-size":!!i},l,o&&!b&&e.createElement(j,{src:o,alt:h||"avatar"}),f&&r)},Xt=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:o})=>e.createElement(u,{"data-notification-type":a,"data-notification-size":n,"data-notification-color":i,"data-has-icon":!!l||void 0,notificationType:a,notificationSize:n,notificationColor:i,hasIcon:!!l,className:o},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),Kt=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:o,as:r="h4",color:s})=>e.createElement(h,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":o,as:r},a),Qt=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),Jt=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.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)"}),e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),ea=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"download"),e.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)"})),ta=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"upload"),e.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)"})),aa=({className:a,value:i,options:l,onUploadSelected:o,id:r,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),u=n(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+r+"-"+t.value,key:"uploader-dropdown-input-"+r+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}}))));return e.createElement(v,{className:a,"data-dropdown-open":!!m,id:r,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(Qt,null),e.createElement(b,{onClick:g},s||e.createElement(Jt,null)," ",e.createElement("span",null,i&&i.value?i.label:c)),m&&e.createElement(y,{onClick:g,"data-has-icons":!0},l.map((t=>e.createElement(f,{key:`${r}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+r+"-"+t.value,void(null===(n=document.querySelector(a))||void 0===n||n.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,n}},e.createElement(E,null,t.icon||"download"===t.type?e.createElement(ea,null):e.createElement(ta,null)),t.label)))),e.createElement(e.Fragment,null,u.current))},na=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:o,children:r,justifyChildren:s,style:c,alignItems:d})=>e.createElement(x,{className:t,style:Object.assign({"--columns-count":a,"--columns-count-desktop":n,"--grid-template-columns":i,"--grid-template-columns-desktop":l,"--justify-children":s,"--grid-gap":o,"--align-items":d},c)},r),ia=({pagesAmount:n,activePage:i,handlePageChange:o,handleClick:r,href:s,queryPageName:c="page"})=>{const d=[...Array(n)].map(((e,t)=>t+1)),[m,p]=t(i<=4?d.slice(0,5):i>=d.length-3?d.slice(d.length-5,d.length):d.slice(i-2,i+1));return a((()=>{i<=4?p(d.slice(0,5)):i>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(i-2,i+1))}),[i]),e.createElement(l,null,i>4&&e.createElement(l,null,e.createElement(C,{onClick:()=>o(1)},s?e.createElement("a",{href:s,onClick:r},1):1),e.createElement(C,null,"...")),m.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===i||void 0,onClick:()=>o(t)},s?e.createElement("a",{href:T(s,t,c),onClick:r},t):t))),i<d.length-3&&e.createElement(l,null,e.createElement(C,null,"..."),e.createElement(C,{onClick:()=>o(d.length)},s?e.createElement("a",{href:T(s,d.length,c),onClick:r},d.length):d.length)))},la=({className:n,pagesAmount:l,currentPage:o,onChange:r,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,u]=t(o),h=i((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),v=l-1,b=e=>{e<=l&&e>0&&(u(e),r(e))},y=e=>{s&&s(e)};return a((()=>{u(o)}),[o]),e.createElement(w,{className:n,style:c},e.createElement(k,{className:"prev-page",onClick:()=>b(g-1),"data-last-page":1===g||void 0},h?e.createElement("a",{href:T(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?e.createElement(ia,{pagesAmount:l,activePage:g,handlePageChange:b,handleClick:y,href:h,queryPageName:m}):p.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>b(t)},h?e.createElement("a",{href:T(h,t,m),onClick:y},t):t))),e.createElement(k,{className:"next-page",onClick:()=>b(g+1),"data-last-page":g===v+1||void 0},h?e.createElement("a",{href:T(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},oa=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>{const p=!!d&&!!c&&!!m?{"data-event-category":c,"data-event-action":d,"data-event-label":m}:{};return e.createElement(O,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:o,disabled:r,onChange:e=>null==s?void 0:s(e.target.value)},p))},ra=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:o,isLight:r,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(N,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":r||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:o,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:r,tagIsSquared:l,tagIsALink:c},e.createElement(q,Object.assign({},m),a))},sa=({className:t,id:a,onChange:n,checked:i,style:l,label:o})=>e.createElement(B,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement(z,null),o&&e.createElement($,null,o))),ca=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:o,value:r,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(S,{className:i,"data-disabled":l||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":d},e.createElement("input",{type:"checkbox",checked:n,name:a,onChange:()=>o(r,!n),disabled:l,value:r,id:`${a}-${r}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${r}`},t)),da=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),ma=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),pa=t=>{const a=Y();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},ga=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:o,hideEmptyStars:r,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),u=p||d,h=p?0:m;return e.createElement(P,{"data-selectable":!!o,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:r?d+m:l}).map(((t,a)=>{const n=()=>!!o&&g(a+1),i=()=>!!o&&g(null);return a+1<=u?e.createElement(ma,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):a+1===u+h?e.createElement(pa,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(da,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i})})))},ua=l=>{var{label:o,availableValue:r,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=J(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=He(),{classes:u,cx:h}=D(void 0,{name:"GenderOptionControl",styles:s}),[v,b]=t(),y=n(null),f=i((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:X.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:X.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return a((()=>{b(r)}),[r]),e.createElement(te,{ref:y,className:u.root},e.createElement(ae.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:u.groupErr}}),e.createElement(ne,{className:h(u.wrapper)},f.map((t=>e.createElement(ae,Object.assign({className:"gender-item",classNames:{root:u.itemRoot,labelWrapper:u.itemLabelWrapper,label:u.itemLabel,inner:u.itemInner},key:t.value,value:t.value},v&&t.value!==v&&{disabled:!0},{label:e.createElement(ne,{gap:ie(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(p,{size:"p3"},t.label))})))))))};var ha="PiqKaXk",va="HgbW6-m",ba="_6lkfLYy",ya="j7c-onH";const fa=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":l},t),e.createElement("div",{className:"poster","data-is-disabled-url":!n},e.createElement(p,{size:"lg"===l?"p3":"p4"},e.createElement("a",{href:n},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,i))))),Ea=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:o})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":l},a),e.createElement("div",{className:"expert","data-is-disabled-url":!i},t?e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(K,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement(K,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(K,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement("h6",{color:Q.colors.gray600,className:`${ha} expert__name`},n),e.createElement(p,{color:Q.colors.gray500,size:"p4",className:"specialty"},o)))))),xa=o((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.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"}))))),wa=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.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"})))),ka=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.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"})))),Ca=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:o,categoryName:r,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:u,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:b,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:E,dataEventLabelForTitle:x,direction:w="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:z,onClickCategoryName:$,section:S="normal",size:P="md",specialty:D,style:L,styleBanner:I,styleLabel:M,styleTitle:T,text:A,title:j,type:O="author",uploadTime:_,articleLinkTarget:F,isPremium:H})=>{const R=e=>{e.stopPropagation(),null==z||z()},W="lg"===P&&"expert"===O?"h4":"lg"===P&&"home"===S?B?"h4":"h3":"lg"===P?"h4":"h5",U="lg"===P?"p3":"p4",V=B||"home"!==S||"lg"!==P||"author"!==O?"c2":"c1";return e.createElement("article",{className:`${ba} ${s||""}`,"data-size":P,style:L,"data-direction":w,"data-is-expert":"expert"===O||void 0},e.createElement("div",{className:"banner",style:I},e.createElement("a",{className:va,"data-event-category":u,"data-event-action":c,"data-event-label":y,href:t||"#",target:F},l),H&&e.createElement("img",{loading:"lazy",className:"premium",src:X.getAssetPath("premium-crown.svg")}),k&&e.createElement(xa,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:M,className:"label",size:V,weight:"caption"},e.createElement("a",{className:va,"data-event-category":v,"data-event-action":m,"data-event-label":E,href:o||"#",onClick:$},r),N&&e.createElement("a",{className:"bookmark",onClick:R},C?e.createElement(wa,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(ka,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(K,{tag:W,style:T,className:"title",as:"lg"===P?"h2":"h3"},e.createElement("a",{className:va,"data-event-category":b,"data-event-action":g,"data-event-label":x,href:t||"#",target:F},j)),A&&e.createElement("a",{href:t||"#",target:F},e.createElement(p,{size:U,className:"text"},A))),e.createElement("div",{className:"footer"},"author"===O?e.createElement(fa,{size:P,avatarImg:i,authorName:n,authorLink:a,uploadTime:_,handleClick:R,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Ea,{size:P,isMobile:B,avatarImg:i,specialty:D,name:n,link:a,handleClick:R,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},Na=t=>{var a,n,i,{article:l,author:o,authorAvatar:r,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:u}=t,h=J(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=_();return console.log({article:l}),e.createElement(le,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),e.createElement(le.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(v?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(F,{href:(null===(a=null==l?void 0:l.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==l?void 0:l.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:m},d?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.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"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.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"})))),e.createElement(p,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},l.postTitle||l.postName||""),!c&&e.createElement(p,{size:"p2",mb:16,lineClamp:3,className:"pointer"},fe(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(ne,{gap:12,align:"center"},e.createElement(H,{size:32,src:r,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},o," • ",g))))};var Ba=re(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const za=648/440,$a=1.5,Sa=t=>{var a,n,l,{article:o,author:r,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:u,time:h,tracking:v,classNames:b,styles:y,unstyled:f,className:E}=t,x=J(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:w}=_(),{classes:k,cx:C}=Ba({},{name:"ArticleCard",classNames:b,styles:y,unstyled:f}),N=i((()=>m?$a:za),[m]);return e.createElement(le,Object.assign({className:C(k.root,E),padding:"lg",radius:0},x),e.createElement(le.Section,{className:C(k.image,"pointer")},e.createElement(R,Object.assign({ratio:N},d),e.createElement("img",{src:(w?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(F,{className:k.category,href:(null===(a=null==o?void 0:o.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.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"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.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"})))),e.createElement(p,{className:C(k.title,"pointer"),size:m?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},fe(o.excerpt||o.description||(null===(l=o.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(ne,{className:k.author,gap:12,align:"center"},e.createElement(H,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},r," • ",h))))},Pa=t=>{var{variant:a="vertical"}=t,n=J(t,["variant"]);return"horizontal"===a?e.createElement(Na,Object.assign({},n)):e.createElement(Sa,Object.assign({},n))},Da=Le.a`
1
+ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,memo as o,useCallback as r,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p}from"./index-d27a0e25.js";import{b as g,c as u,d as h,e as v,f as b,h as y,i as f,j as E,k as x,l as w,m as k,n as C,o as N,p as B,q as z,r as $,s as S,t as P,u as D,T as L,g as I,P as T}from"./index.styles-94af560f.js";import{f as M,M as A}from"./utils-5b4e60da.js";import{I as j,R as O,u as _,A as F,a as H,b as R,B as W,c as U,d as V,e as G,t as Z}from"./index-5408f5a4.js";import{T as q}from"./index-459e0362.js";import{a as Y}from"./useUniqueId-03fbaecd.js";import{C as X}from"./index-2e99f941.js";import{H as K}from"./index-24557f2b.js";import{t as Q}from"./theme-3db3c9a8.js";import{_ as J,a as ee}from"./tslib.es6-266309d1.js";import{Box as te,Radio as ae,Flex as ne,rem as ie,Card as le,Group as oe,createStyles as re,Stack as se,getStylesRef as ce,useMantineTheme as de,Container as me,UnstyledButton as pe,AspectRatio as ge,ScrollArea as ue,Chip as he,Badge as ve,MultiSelect as be,Stepper as ye}from"@mantine/core";import fe from"innertext";import"@mantine/dates";import{d as Ee,L as xe,F as we,Q as ke,R as Ce,a as Ne,G as Be}from"./index-9e5956c2.js";import{G as ze,L as $e}from"./Subot-4642c5bf.js";import"./translationsContext-6d2efd65.js";import"string-format";import{useViewportSize as Se}from"@mantine/hooks";import{i as Pe,d as De}from"./index-fd04ccb7.js";import Le,{keyframes as Ie,css as Te}from"styled-components";import Me from"lodash/throttle";import{L as Ae}from"./index-252cb964.js";import{B as je}from"./index-3452fed2.js";import{I as Oe}from"./index-5e1af23a.js";import _e from"html-react-parser";import{i as Fe}from"./isProduction-00695d80.js";import{u as He}from"./useTranslations-df1b3bb8.js";import{CalendarMB as Re,Calendar as We}from"@hhgtech/icons/other";import{format as Ue,addDays as Ve,isBefore as Ge,startOfMonth as Ze,addMonths as qe,subMonths as Ye,getDaysInMonth as Xe,isToday as Ke,isSameDay as Qe,isWithinInterval as Je,isAfter as et,isPast as tt}from"date-fns";import at from"dayjs";import{D as nt}from"./types-d3da37d2.js";import{Z as it,s as lt,H as ot,o as rt,d as st,P as ct,T as dt,t as mt,u as pt,v as gt}from"./utils-970ce0c0.js";import{D as ut}from"./index-a83aad1c.js";import{M as ht}from"./index-7c77273a.js";import{S as vt}from"./index-486b71cd.js";import{D as bt}from"./index-13e62563.js";import{C as yt}from"./index-1e7ad007.js";import{useForm as ft,Controller as Et}from"react-hook-form";import{u as xt}from"./useHealthToolCache-f1488032.js";import{yupResolver as wt}from"@hookform/resolvers/yup";import{B as kt,D as Ct}from"./index-f9514788.js";import{L as Nt}from"./constants-f7c80032.js";import{h as Bt}from"./index-823fd7c0.js";import"./utils-3d2e3f0f.js";import"./index.styled-14b65c9e.js";import"./index-8c77d7e0.js";import{a as zt}from"./useOutsideClick-0704b383.js";import $t from"date-fns/locale/en-US";import St from"date-fns/locale/id";import Pt from"date-fns/locale/vi";import Dt from"date-fns/locale/zh-TW";import{g as Lt}from"./getSocialList-4e48deba.js";import{v4 as It}from"uuid";import{g as Tt,a as Mt}from"./routing-2b284b30.js";import{useForm as At,isNotEmpty as jt}from"@mantine/form";import{I as Ot}from"./index-13dc1f44.js";import{Close as _t,Plus as Ft}from"@hhgtech/icons/core";import{M as Ht}from"./index-3aff939b.js";import Rt from"js-cookie";import Wt from"lodash/flatten";import Ut from"lodash/uniqBy";import{g as Vt}from"./cookieHelper-4f089e3c.js";import{n as Gt,a as Zt}from"./normalizeLink-1c194268.js";var qt="CHw-fZZ",Yt="_03U6VRS",Xt="EO828Vv";const Kt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:o,className:r,description:s})=>e.createElement("div",{className:`${qt} ${r||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Yt},e.createElement("div",{className:"icon-title"},l,e.createElement(p,{weight:"bold",size:"label1"},n)),e.createElement(p,{weight:"regular",size:"p3"},s)),e.createElement("div",{className:Xt,onClick:a},o)),Qt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Jt=({type:n="square",size:i,avatarImg:l,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:d,className:m,width:p,height:u,alt:h})=>{const v=i?Qt[i]:void 0,[b,y]=t(!1);a((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{y(!0)}))}}),[o,y]);const f=(!o&&!l||b)&&r;return e.createElement(g,{style:Object.assign(Object.assign({},d),{"--size":v?v+"px":void 0,"--width-prop":p?p+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!p||!u),"data-avatar-type":n,onClick:c,className:m,avatarUrl:o,"data-custom-size":!!i},l,o&&!b&&e.createElement(j,{src:o,alt:h||"avatar"}),f&&r)},ea=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:o})=>e.createElement(u,{"data-notification-type":a,"data-notification-size":n,"data-notification-color":i,"data-has-icon":!!l||void 0,notificationType:a,notificationSize:n,notificationColor:i,hasIcon:!!l,className:o},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),ta=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:o,as:r="h4",color:s})=>e.createElement(h,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":o,as:r},a),aa=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),na=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.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)"}),e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),ia=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"download"),e.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)"})),la=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"upload"),e.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)"})),oa=({className:a,value:i,options:l,onUploadSelected:o,id:r,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),u=n(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+r+"-"+t.value,key:"uploader-dropdown-input-"+r+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}}))));return e.createElement(v,{className:a,"data-dropdown-open":!!m,id:r,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(aa,null),e.createElement(b,{onClick:g},s||e.createElement(na,null)," ",e.createElement("span",null,i&&i.value?i.label:c)),m&&e.createElement(y,{onClick:g,"data-has-icons":!0},l.map((t=>e.createElement(f,{key:`${r}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+r+"-"+t.value,void(null===(n=document.querySelector(a))||void 0===n||n.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,n}},e.createElement(E,null,t.icon||"download"===t.type?e.createElement(ia,null):e.createElement(la,null)),t.label)))),e.createElement(e.Fragment,null,u.current))},ra=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:o,children:r,justifyChildren:s,style:c,alignItems:d})=>e.createElement(x,{className:t,style:Object.assign({"--columns-count":a,"--columns-count-desktop":n,"--grid-template-columns":i,"--grid-template-columns-desktop":l,"--justify-children":s,"--grid-gap":o,"--align-items":d},c)},r),sa=({pagesAmount:n,activePage:i,handlePageChange:o,handleClick:r,href:s,queryPageName:c="page"})=>{const d=[...Array(n)].map(((e,t)=>t+1)),[m,p]=t(i<=4?d.slice(0,5):i>=d.length-3?d.slice(d.length-5,d.length):d.slice(i-2,i+1));return a((()=>{i<=4?p(d.slice(0,5)):i>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(i-2,i+1))}),[i]),e.createElement(l,null,i>4&&e.createElement(l,null,e.createElement(C,{onClick:()=>o(1)},s?e.createElement("a",{href:s,onClick:r},1):1),e.createElement(C,null,"...")),m.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===i||void 0,onClick:()=>o(t)},s?e.createElement("a",{href:M(s,t,c),onClick:r},t):t))),i<d.length-3&&e.createElement(l,null,e.createElement(C,null,"..."),e.createElement(C,{onClick:()=>o(d.length)},s?e.createElement("a",{href:M(s,d.length,c),onClick:r},d.length):d.length)))},ca=({className:n,pagesAmount:l,currentPage:o,onChange:r,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,u]=t(o),h=i((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),v=l-1,b=e=>{e<=l&&e>0&&(u(e),r(e))},y=e=>{s&&s(e)};return a((()=>{u(o)}),[o]),e.createElement(w,{className:n,style:c},e.createElement(k,{className:"prev-page",onClick:()=>b(g-1),"data-last-page":1===g||void 0},h?e.createElement("a",{href:M(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?e.createElement(sa,{pagesAmount:l,activePage:g,handlePageChange:b,handleClick:y,href:h,queryPageName:m}):p.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>b(t)},h?e.createElement("a",{href:M(h,t,m),onClick:y},t):t))),e.createElement(k,{className:"next-page",onClick:()=>b(g+1),"data-last-page":g===v+1||void 0},h?e.createElement("a",{href:M(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},da=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>{const p=!!d&&!!c&&!!m?{"data-event-category":c,"data-event-action":d,"data-event-label":m}:{};return e.createElement(O,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:o,disabled:r,onChange:e=>null==s?void 0:s(e.target.value)},p))},ma=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:o,isLight:r,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(N,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":r||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:o,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:r,tagIsSquared:l,tagIsALink:c},e.createElement(q,Object.assign({},m),a))},pa=({className:t,id:a,onChange:n,checked:i,style:l,label:o})=>e.createElement(B,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement(z,null),o&&e.createElement($,null,o))),ga=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:o,value:r,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(S,{className:i,"data-disabled":l||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":d},e.createElement("input",{type:"checkbox",checked:n,name:a,onChange:()=>o(r,!n),disabled:l,value:r,id:`${a}-${r}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${r}`},t)),ua=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),ha=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),va=t=>{const a=Y();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},ba=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:o,hideEmptyStars:r,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),u=p||d,h=p?0:m;return e.createElement(P,{"data-selectable":!!o,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:r?d+m:l}).map(((t,a)=>{const n=()=>!!o&&g(a+1),i=()=>!!o&&g(null);return a+1<=u?e.createElement(ha,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):a+1===u+h?e.createElement(va,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(ua,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i})})))},ya=l=>{var{label:o,availableValue:r,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=J(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=He(),{classes:u,cx:h}=D(void 0,{name:"GenderOptionControl",styles:s}),[v,b]=t(),y=n(null),f=i((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:X.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:X.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return a((()=>{b(r)}),[r]),e.createElement(te,{ref:y,className:u.root},e.createElement(ae.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:u.groupErr}}),e.createElement(ne,{className:h(u.wrapper)},f.map((t=>e.createElement(ae,Object.assign({className:"gender-item",classNames:{root:u.itemRoot,labelWrapper:u.itemLabelWrapper,label:u.itemLabel,inner:u.itemInner},key:t.value,value:t.value},v&&t.value!==v&&{disabled:!0},{label:e.createElement(ne,{gap:ie(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(p,{size:"p3"},t.label))})))))))};var fa="PiqKaXk",Ea="HgbW6-m",xa="_6lkfLYy",wa="j7c-onH";const ka=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:wa},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":l},t),e.createElement("div",{className:"poster","data-is-disabled-url":!n},e.createElement(p,{size:"lg"===l?"p3":"p4"},e.createElement("a",{href:n},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,i))))),Ca=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:o})=>e.createElement("div",{className:wa},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":l},a),e.createElement("div",{className:"expert","data-is-disabled-url":!i},t?e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(K,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement(K,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(K,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement("h6",{color:Q.colors.gray600,className:`${fa} expert__name`},n),e.createElement(p,{color:Q.colors.gray500,size:"p4",className:"specialty"},o)))))),Na=o((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.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"}))))),Ba=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.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"})))),za=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.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"})))),$a=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:o,categoryName:r,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:u,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:b,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:E,dataEventLabelForTitle:x,direction:w="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:z,onClickCategoryName:$,section:S="normal",size:P="md",specialty:D,style:L,styleBanner:I,styleLabel:T,styleTitle:M,text:A,title:j,type:O="author",uploadTime:_,articleLinkTarget:F,isPremium:H})=>{const R=e=>{e.stopPropagation(),null==z||z()},W="lg"===P&&"expert"===O?"h4":"lg"===P&&"home"===S?B?"h4":"h3":"lg"===P?"h4":"h5",U="lg"===P?"p3":"p4",V=B||"home"!==S||"lg"!==P||"author"!==O?"c2":"c1";return e.createElement("article",{className:`${xa} ${s||""}`,"data-size":P,style:L,"data-direction":w,"data-is-expert":"expert"===O||void 0},e.createElement("div",{className:"banner",style:I},e.createElement("a",{className:Ea,"data-event-category":u,"data-event-action":c,"data-event-label":y,href:t||"#",target:F},l),H&&e.createElement("img",{loading:"lazy",className:"premium",src:X.getAssetPath("premium-crown.svg")}),k&&e.createElement(Na,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:T,className:"label",size:V,weight:"caption"},e.createElement("a",{className:Ea,"data-event-category":v,"data-event-action":m,"data-event-label":E,href:o||"#",onClick:$},r),N&&e.createElement("a",{className:"bookmark",onClick:R},C?e.createElement(Ba,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(za,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(K,{tag:W,style:M,className:"title",as:"lg"===P?"h2":"h3"},e.createElement("a",{className:Ea,"data-event-category":b,"data-event-action":g,"data-event-label":x,href:t||"#",target:F},j)),A&&e.createElement("a",{href:t||"#",target:F},e.createElement(p,{size:U,className:"text"},A))),e.createElement("div",{className:"footer"},"author"===O?e.createElement(ka,{size:P,avatarImg:i,authorName:n,authorLink:a,uploadTime:_,handleClick:R,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Ca,{size:P,isMobile:B,avatarImg:i,specialty:D,name:n,link:a,handleClick:R,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},Sa=t=>{var a,n,i,{article:l,author:o,authorAvatar:r,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:u}=t,h=J(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=_();return console.log({article:l}),e.createElement(le,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),e.createElement(le.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(v?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(F,{href:(null===(a=null==l?void 0:l.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==l?void 0:l.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:m},d?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.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"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.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"})))),e.createElement(p,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},l.postTitle||l.postName||""),!c&&e.createElement(p,{size:"p2",mb:16,lineClamp:3,className:"pointer"},fe(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(ne,{gap:12,align:"center"},e.createElement(H,{size:32,src:r,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},o," • ",g))))};var Pa=re(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const Da=648/440,La=1.5,Ia=t=>{var a,n,l,{article:o,author:r,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:u,time:h,tracking:v,classNames:b,styles:y,unstyled:f,className:E}=t,x=J(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:w}=_(),{classes:k,cx:C}=Pa({},{name:"ArticleCard",classNames:b,styles:y,unstyled:f}),N=i((()=>m?La:Da),[m]);return e.createElement(le,Object.assign({className:C(k.root,E),padding:"lg",radius:0},x),e.createElement(le.Section,{className:C(k.image,"pointer")},e.createElement(R,Object.assign({ratio:N},d),e.createElement("img",{src:(w?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(F,{className:k.category,href:(null===(a=null==o?void 0:o.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.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"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.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"})))),e.createElement(p,{className:C(k.title,"pointer"),size:m?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},fe(o.excerpt||o.description||(null===(l=o.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(ne,{className:k.author,gap:12,align:"center"},e.createElement(H,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},r," • ",h))))},Ta=t=>{var{variant:a="vertical"}=t,n=J(t,["variant"]);return"horizontal"===a?e.createElement(Sa,Object.assign({},n)):e.createElement(Ia,Object.assign({},n))},Ma=Le.a`
2
2
  display: flex;
3
3
  height: 125px;
4
4
 
@@ -32,7 +32,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
32
32
  * {
33
33
  pointer-events: none;
34
34
  }
35
- `,La=t=>{var{category:a,imgBanner:n,label:i,className:l,style:o,href:r="",dataEventCategory:s,dataEventAction:c,dataEventLabel:d}=t,m=J(t,["category","imgBanner","label","className","style","href","dataEventCategory","dataEventAction","dataEventLabel"]);const g=(null==a?void 0:a.customizedUrl)||(null==a?void 0:a.permalink)||r||"";return e.createElement(Da,Object.assign({"data-event-category":s,"data-event-action":c,"data-event-label":d,className:l,style:o,href:g},(null==a?void 0:a.customizedUrl)&&!Pe(a.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===g&&e.preventDefault()}},m),e.createElement("div",{className:"banner"},n),e.createElement("div",{className:"content"},e.createElement(p,{className:"category_name",size:"sm",weight:"bold"},(null==a?void 0:a.displayName)||i||"")))},Ia=Le.div`
35
+ `,Aa=t=>{var{category:a,imgBanner:n,label:i,className:l,style:o,href:r="",dataEventCategory:s,dataEventAction:c,dataEventLabel:d}=t,m=J(t,["category","imgBanner","label","className","style","href","dataEventCategory","dataEventAction","dataEventLabel"]);const g=(null==a?void 0:a.customizedUrl)||(null==a?void 0:a.permalink)||r||"";return e.createElement(Ma,Object.assign({"data-event-category":s,"data-event-action":c,"data-event-label":d,className:l,style:o,href:g},(null==a?void 0:a.customizedUrl)&&!Pe(a.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===g&&e.preventDefault()}},m),e.createElement("div",{className:"banner"},n),e.createElement("div",{className:"content"},e.createElement(p,{className:"category_name",size:"sm",weight:"bold"},(null==a?void 0:a.displayName)||i||"")))},ja=Le.div`
36
36
  display: flex;
37
37
 
38
38
  &[data-type='vertical'] {
@@ -56,7 +56,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
56
56
  }
57
57
  }
58
58
  }
59
- `,Ma=({name:t,values:a=[],onChanges:n,options:i=[],className:l,type:o="vertical",isDisabled:r,isRectangle:s})=>{const c=(e,t)=>{const i=a.slice();if(t)i.push(e);else{const t=i.findIndex((t=>t===e));i.splice(t,1)}n&&n(i)};return e.createElement(Ia,{className:l,"data-type":o,"data-is-rectangle":s||void 0},i.map(((n,i)=>e.createElement(ca,{label:n.label,name:t,key:`${i}-${n.value}`,checked:a.includes(n.value),value:n.value,isDisabled:r||n.disabled,onChange:!r&&c,isRectangle:s}))))},Ta=Le.div`
59
+ `,Oa=({name:t,values:a=[],onChanges:n,options:i=[],className:l,type:o="vertical",isDisabled:r,isRectangle:s})=>{const c=(e,t)=>{const i=a.slice();if(t)i.push(e);else{const t=i.findIndex((t=>t===e));i.splice(t,1)}n&&n(i)};return e.createElement(ja,{className:l,"data-type":o,"data-is-rectangle":s||void 0},i.map(((n,i)=>e.createElement(ga,{label:n.label,name:t,key:`${i}-${n.value}`,checked:a.includes(n.value),value:n.value,isDisabled:r||n.disabled,onChange:!r&&c,isRectangle:s}))))},_a=Le.div`
60
60
  display: flex;
61
61
  align-items: center;
62
62
  --font-weight-lg: ${Q.sizes.fwBold};
@@ -98,7 +98,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
98
98
  font-weight: var(----font-weight-sm);
99
99
  }
100
100
  }
101
- `,Aa=({size:t,iconPosition:a,className:n,children:i,icon:l})=>e.createElement(Ta,{className:n,"data-size":t,"data-icon-position":a},"left"===a&&l,i,"right"===a&&l),ja=Le.div`
101
+ `,Fa=({size:t,iconPosition:a,className:n,children:i,icon:l})=>e.createElement(_a,{className:n,"data-size":t,"data-icon-position":a},"left"===a&&l,i,"right"===a&&l),Ha=Le.div`
102
102
  position: relative;
103
103
  width: 100%;
104
104
 
@@ -109,7 +109,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
109
109
  outline: none;
110
110
  }
111
111
  }
112
- `,Oa=Le.div`
112
+ `,Ra=Le.div`
113
113
  position: absolute;
114
114
  top: 19px;
115
115
  width: 24px;
@@ -132,7 +132,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
132
132
  color: ${Q.colors.white};
133
133
  border: none;
134
134
  }
135
- `,_a=Le.div`
135
+ `,Wa=Le.div`
136
136
  display: flex;
137
137
  width: 100%;
138
138
  height: 36px;
@@ -150,13 +150,13 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
150
150
  border: 1px solid ${Q.colors.gray200};
151
151
  height: 0px;
152
152
  }
153
- `,Fa=Le.div`
153
+ `,Ua=Le.div`
154
154
  width: 100%;
155
155
  height: 5px;
156
156
  align-self: center;
157
157
  border-radius: 4px;
158
158
  background-color: ${Q.colors.gray200};
159
- `,Ha=Le.div`
159
+ `,Va=Le.div`
160
160
  position: absolute;
161
161
  top: 32px;
162
162
  min-width: 100px;
@@ -168,10 +168,10 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
168
168
  &[data-step-passed='true'] {
169
169
  color: ${Q.colors.gray800};
170
170
  }
171
- `,Ra=Le.div`
171
+ `,Ga=Le.div`
172
172
  display: flex;
173
173
  align-items: center;
174
- `,Wa=Le.div`
174
+ `,Za=Le.div`
175
175
  display: flex;
176
176
  align-items: center;
177
177
  font-size: ${Q.sizes.fsCaption2};
@@ -192,7 +192,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
192
192
  &[data-selected='true'] {
193
193
  color: ${Q.colors.primaryBase};
194
194
  }
195
- `,Ua=Le.div`
195
+ `,qa=Le.div`
196
196
  position: absolute;
197
197
  left: 0;
198
198
  top: 19px;
@@ -205,7 +205,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
205
205
 
206
206
  padding: 8px;
207
207
  background-color: ${Q.colors.white};
208
- `,Va=Le.div`
208
+ `,Ya=Le.div`
209
209
  min-width: 24px;
210
210
  height: 24px;
211
211
  border: 2px solid ${Q.colors.white};
@@ -225,7 +225,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
225
225
  background-color: ${Q.colors.primaryBase};
226
226
  color: ${Q.colors.white};
227
227
  }
228
- `,Ga=Le.div`
228
+ `,Xa=Le.div`
229
229
  display: flex;
230
230
  align-items: center;
231
231
  justify-content: center;
@@ -239,7 +239,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
239
239
  stroke: ${Q.colors.gray500};
240
240
  }
241
241
  }
242
- `,Za=Le.div`
242
+ `,Ka=Le.div`
243
243
  color: ${Q.colors.gray400};
244
244
  font-size: ${Q.sizes.fsCaption2};
245
245
  font-weight: ${Q.sizes.fwBold};
@@ -249,13 +249,13 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
249
249
  &[data-step-passed='true'] {
250
250
  color: ${Q.colors.gray800};
251
251
  }
252
- `,qa=Le.div`
252
+ `,Qa=Le.div`
253
253
  position: absolute;
254
254
  top: 32px;
255
255
  font-weight: ${Q.sizes.fwRegular};
256
256
  color: ${Q.colors.gray400};
257
257
  padding-right: 16px;
258
- `,Ya=({type:n,numberOfStep:i,activeStep:l,labelPrefix:o,detailSteps:s,className:c,onChange:d})=>{const[m,p]=t(0),g=t=>{var{trackClassName:a}=t,n=J(t,["trackClassName"]);return e.createElement(_a,Object.assign({},n,{className:a}),e.createElement(Fa,null))},u=e.createElement(ja,{className:c+" progress-bar"},e.createElement(g,null),e.createElement((({trackLength:t,activeStep:a,labelPrefix:n="Step",onChange:l})=>e.createElement(e.Fragment,null,Array.from({length:i},((e,t)=>t)).map(((o,r)=>e.createElement(Oa,{"data-is-active":r===a,"data-label":r,style:{left:r*t/(i-1)},onClick:()=>{l&&l(r)},key:r},r+1,e.createElement(Ha,{"data-step-passed":r<=a},n+" "+(r+1))))))),{trackLength:m,activeStep:l,labelPrefix:o,onChange:d})),h=e.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),v=e.createElement(Ra,null,s&&Array.from({length:s.length},((e,t)=>t)).map(((t,a)=>{var n;return e.createElement(Wa,{key:a,"data-selected":a===l,onClick:()=>{d&&d(a)}},null===(n=s[a])||void 0===n?void 0:n.text," ",a<s.length-1&&h)}))),b=e.createElement(ja,{className:c+" progress-bar"},e.createElement((({detailSteps:t,activeStep:a,onChange:n})=>e.createElement(e.Fragment,null,Array.from({length:t.length},((e,t)=>t)).map(((i,l)=>e.createElement(Ua,{key:l,style:{left:100/t.length*l+"%",width:100/t.length+"%"},onClick:()=>{n&&n(l)}},t[l].icon?e.createElement(Ga,{onClick:()=>{n&&n(l)}},t[l].icon):e.createElement(Va,{"data-is-active":l===a,"data-label":i,onClick:()=>{n&&n(l)},key:l},l+1),e.createElement(Za,{"data-step-passed":l<a+1},t[l].text,e.createElement(qa,null,t[l].description)),l<t.length-1&&e.createElement(g,{"data-step-passed":l<a,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:s,onChange:d})),y=r(Te((()=>{const e=document.querySelector(".progress-bar");e&&p(e.offsetWidth)}),1e3),[]);return a((()=>{const e=document.querySelector(".progress-bar");return p(null==e?void 0:e.offsetWidth),window.addEventListener("resize",y,{passive:!0}),()=>{window.removeEventListener("resize",y)}}),[]),"step-track"===n&&u||"breadcrumb"===n&&v||"detail-track"===n&&b},Xa=e.forwardRef((({id:a,value:n,options:i,className:l,isDisabled:o,size:r="small",direction:c="vertical",onChange:d,dataEventCategory:m,dataEventAction:p,dataEventLabel:g},u)=>{const[h,v]=t(n);s(u,(()=>({reset(){v(n)}})));const b="small"===r?"md":"lg",y="vertical"===c?se:oe;return e.createElement(O.Group,{name:a,className:l,size:b,value:String(h),defaultValue:n,onChange:e=>{v(e),null==d||d(e)}},e.createElement(y,{spacing:"xl"},i.map((t=>e.createElement(O,{key:t.value,value:t.value,label:t.label,disabled:o,"data-event-category":m,"data-event-action":p,"data-event-label":g})))))})),Ka=Le.div`
258
+ `,Ja=({type:n,numberOfStep:i,activeStep:l,labelPrefix:o,detailSteps:s,className:c,onChange:d})=>{const[m,p]=t(0),g=t=>{var{trackClassName:a}=t,n=J(t,["trackClassName"]);return e.createElement(Wa,Object.assign({},n,{className:a}),e.createElement(Ua,null))},u=e.createElement(Ha,{className:c+" progress-bar"},e.createElement(g,null),e.createElement((({trackLength:t,activeStep:a,labelPrefix:n="Step",onChange:l})=>e.createElement(e.Fragment,null,Array.from({length:i},((e,t)=>t)).map(((o,r)=>e.createElement(Ra,{"data-is-active":r===a,"data-label":r,style:{left:r*t/(i-1)},onClick:()=>{l&&l(r)},key:r},r+1,e.createElement(Va,{"data-step-passed":r<=a},n+" "+(r+1))))))),{trackLength:m,activeStep:l,labelPrefix:o,onChange:d})),h=e.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),v=e.createElement(Ga,null,s&&Array.from({length:s.length},((e,t)=>t)).map(((t,a)=>{var n;return e.createElement(Za,{key:a,"data-selected":a===l,onClick:()=>{d&&d(a)}},null===(n=s[a])||void 0===n?void 0:n.text," ",a<s.length-1&&h)}))),b=e.createElement(Ha,{className:c+" progress-bar"},e.createElement((({detailSteps:t,activeStep:a,onChange:n})=>e.createElement(e.Fragment,null,Array.from({length:t.length},((e,t)=>t)).map(((i,l)=>e.createElement(qa,{key:l,style:{left:100/t.length*l+"%",width:100/t.length+"%"},onClick:()=>{n&&n(l)}},t[l].icon?e.createElement(Xa,{onClick:()=>{n&&n(l)}},t[l].icon):e.createElement(Ya,{"data-is-active":l===a,"data-label":i,onClick:()=>{n&&n(l)},key:l},l+1),e.createElement(Ka,{"data-step-passed":l<a+1},t[l].text,e.createElement(Qa,null,t[l].description)),l<t.length-1&&e.createElement(g,{"data-step-passed":l<a,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:s,onChange:d})),y=r(Me((()=>{const e=document.querySelector(".progress-bar");e&&p(e.offsetWidth)}),1e3),[]);return a((()=>{const e=document.querySelector(".progress-bar");return p(null==e?void 0:e.offsetWidth),window.addEventListener("resize",y,{passive:!0}),()=>{window.removeEventListener("resize",y)}}),[]),"step-track"===n&&u||"breadcrumb"===n&&v||"detail-track"===n&&b},en=e.forwardRef((({id:a,value:n,options:i,className:l,isDisabled:o,size:r="small",direction:c="vertical",onChange:d,dataEventCategory:m,dataEventAction:p,dataEventLabel:g},u)=>{const[h,v]=t(n);s(u,(()=>({reset(){v(n)}})));const b="small"===r?"md":"lg",y="vertical"===c?se:oe;return e.createElement(O.Group,{name:a,className:l,size:b,value:String(h),defaultValue:n,onChange:e=>{v(e),null==d||d(e)}},e.createElement(y,{spacing:"xl"},i.map((t=>e.createElement(O,{key:t.value,value:t.value,label:t.label,disabled:o,"data-event-category":m,"data-event-action":p,"data-event-label":g})))))})),tn=Le.div`
259
259
  --menu-width: 240px;
260
260
  --menu-spacing: 28px 16px;
261
261
  width: var(--menu-width);
@@ -268,7 +268,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
268
268
  --menu-width: 64px;
269
269
  --menu-spacing: 28px 8px;
270
270
  }
271
- `,Qa=Le.div`
271
+ `,an=Le.div`
272
272
  display: flex;
273
273
  align-items: baseline;
274
274
  justify-content: space-between;
@@ -276,12 +276,12 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
276
276
  svg {
277
277
  transition: 0.4s ease-in-out;
278
278
  }
279
- `,Ja=Le.div`
279
+ `,nn=Le.div`
280
280
  cursor: pointer;
281
281
  &[data-is-collapsed] {
282
282
  transform: rotate(180deg);
283
283
  }
284
- `,en=Le.figure`
284
+ `,ln=Le.figure`
285
285
  display: flex;
286
286
 
287
287
  > img,
@@ -299,7 +299,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
299
299
  margin-top: 2px;
300
300
  }
301
301
  }
302
- `,tn=({name:t,description:a,image:n,isDescriptionHidden:i})=>e.createElement(en,null,n,!i&&e.createElement("figcaption",null,e.createElement(p,{size:"p4",weight:"bold"},t),e.createElement(p,{size:"p4"},a))),an=Le.div`
302
+ `,on=({name:t,description:a,image:n,isDescriptionHidden:i})=>e.createElement(ln,null,n,!i&&e.createElement("figcaption",null,e.createElement(p,{size:"p4",weight:"bold"},t),e.createElement(p,{size:"p4"},a))),rn=Le.div`
303
303
  display: flex;
304
304
  align-items: center;
305
305
  margin-top: 24px;
@@ -315,7 +315,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
315
315
  max-height: 2rem;
316
316
  }
317
317
  }
318
- `,nn=Le.div`
318
+ `,sn=Le.div`
319
319
  display: flex;
320
320
  align-items: center;
321
321
  padding: 9px 21px;
@@ -339,7 +339,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
339
339
  margin-right: -14px;
340
340
  margin-left: -14px;
341
341
  }
342
- `;var ln=Object.freeze({__proto__:null,SideMenu:({isCollapsed:t,className:a,style:n,children:i})=>e.createElement(Ka,{style:n,className:a,"data-is-collapsed":t||void 0},i),SideHeader:({isCollapsed:t,defaultLogo:a,onBackClick:n,customIcon:i})=>e.createElement(Qa,null,e.createElement(Ae,{type:t?"logomark":a||"hellocare",customSize:{width:t?"24px":"77px",height:"24px"}}),e.createElement(Ja,{"data-is-collapsed":t||void 0,onClick:n},i||e.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},e.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"}),e.createElement("path",{d:"M11.44 6.53L8 10l3.48 3.47",fill:"none",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))),UserInfo:({isCollapsed:t,userName:a,role:n,avatar:i})=>e.createElement(an,{"data-is-collapsed":t||void 0},e.createElement(tn,{image:i,name:a,description:n,isDescriptionHidden:t})),MenuLink:({icon:t,isActive:a,children:n,isCollapsed:i,activeIcon:l,onLinkClick:o,textSize:r="base",textType:s="bold",textColorActive:c="#fff",textColor:d="#595959"})=>e.createElement(nn,{"data-is-link-active":a||void 0,onClick:o,"data-is-link-collapsed":i||void 0},a&&l?l:t,!i&&e.createElement(p,{size:r,weight:s,color:a?c:d},n))});const on=Le.div`
342
+ `;var cn=Object.freeze({__proto__:null,SideMenu:({isCollapsed:t,className:a,style:n,children:i})=>e.createElement(tn,{style:n,className:a,"data-is-collapsed":t||void 0},i),SideHeader:({isCollapsed:t,defaultLogo:a,onBackClick:n,customIcon:i})=>e.createElement(an,null,e.createElement(Ae,{type:t?"logomark":a||"hellocare",customSize:{width:t?"24px":"77px",height:"24px"}}),e.createElement(nn,{"data-is-collapsed":t||void 0,onClick:n},i||e.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},e.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"}),e.createElement("path",{d:"M11.44 6.53L8 10l3.48 3.47",fill:"none",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))),UserInfo:({isCollapsed:t,userName:a,role:n,avatar:i})=>e.createElement(rn,{"data-is-collapsed":t||void 0},e.createElement(on,{image:i,name:a,description:n,isDescriptionHidden:t})),MenuLink:({icon:t,isActive:a,children:n,isCollapsed:i,activeIcon:l,onLinkClick:o,textSize:r="base",textType:s="bold",textColorActive:c="#fff",textColor:d="#595959"})=>e.createElement(sn,{"data-is-link-active":a||void 0,onClick:o,"data-is-link-collapsed":i||void 0},a&&l?l:t,!i&&e.createElement(p,{size:r,weight:s,color:a?c:d},n))});const dn=Le.div`
343
343
  position: relative;
344
344
  width: 100%;
345
345
  > .container {
@@ -474,22 +474,22 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
474
474
  max-width: 100%;
475
475
  }
476
476
  }
477
- `,rn=({status:t})=>"inActive"===t?e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),e.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e.createElement("path",{d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"#00B16A"}),e.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),sn=({row:i=2,column:l=3,isDotsShown:o=!0,isImageGalleryShown:r=!1,mode:s="infinity",type:c="separated",distanceOverlappedLeft:d={amount:0,unit:"pixel"},children:m,className:p,isProgressShown:g=!1,statusChildren:u,isArrowShown:h=!1,classNameLeftArrow:v,classNameRightArrow:b,dataEventCategory:y,dataEventAction:f,dataEventLabel:E,onChangePage:x,page:w,customPageWidth:k,scheme:C="hellosites",arrowType:N="Discover"})=>{const B="number"==typeof w,[z,$]=t(B?w:0),S=[];e.Children.map(m,((t,a)=>{a%(i*l)==0&&S.push([]),S[S.length-1].push(e.cloneElement(t))}));const P=n(),D=n(0),L=e=>{if(!P.current)return;const{clientWidth:t}=P.current,a=k||t,n="intertwined"===c?"percentage"===d.unit?e*a+d.amount/100*a*e:e*a+d.amount*a*e:e*a;P.current.scrollTo({top:0,left:n,behavior:"smooth"}),D.current=e,$(e),x&&x(e)};a((()=>{"number"==typeof w&&(e=>{if(!P.current)return;const{clientWidth:t}=P.current,a=k||t,n="intertwined"===c?"percentage"===d.unit?e*a+d.amount/100*a*e:e*a+d.amount*a*e:e*a;P.current.scrollTo({top:0,left:n,behavior:"smooth"}),D.current=e,$(e)})(w)}),[w]);const I=e=>{if(!P.current)return;const{clientWidth:t}=P.current,a=k||t;let n;n=0===z?0:z*a,"forward"===e&&(n===a*(S.length-1)?($(S.length-1),n=a*(S.length-1),x&&x(S.length-1)):($(z+1),n+=a,x&&x(z+1)),P.current.scrollTo({top:0,left:n,behavior:"smooth"})),"back"===e&&(0===n?($(0),x&&x(0),n=0):($(z-1),x&&x(z-1),n-=a),P.current.scrollTo({top:0,left:n,behavior:"smooth"}))},M=Te((()=>{if("infinity"===s){if(!P.current)return;const{clientWidth:e,scrollLeft:t}=P.current,a=k||e,n=Math.floor(t/a);$(n),x&&x(n)}}),400);return a((()=>{if("snapped"===s){let e,t,a,n,i,l,o=!1;const r=P.current,s=(l,s)=>{o=!0,a=!1,n=!1,e=l-r.offsetLeft,t=s-r.offsetTop,i=r.scrollLeft},m=e=>{s(e.pageX,e.pageY)},p=e=>{s(e.touches[0].pageX,e.touches[0].pageY)},g=()=>{if(o=!1,a=!1,n=!1,!P.current)return;const{clientWidth:e}=P.current,t=k||e,i="ltr"===l?0!==D.current?D.current-1:D.current:"rtl"===l&&D.current<S.length-1?D.current+1:D.current,r="intertwined"===c?"percentage"===d.unit?i*t+d.amount/100*t*i:i*t+d.amount*t*i:i*t;P.current.scrollTo({top:0,left:r,behavior:"smooth"}),l="none",D.current!==i&&(D.current=i,$(i),x&&x(i))},u=(s,c)=>{if(!o)return;const d=s-r.offsetLeft,m=c-r.offsetTop,p=d-e,g=m-t;a||n||!(g>20||g<-20)||(a=!0),!a&&(p>20||p<-20)&&(n=!0,r.scrollLeft=i-p,p>0&&(l="ltr"),p<0&&(l="rtl"),0===p&&(l="none"))},h=e=>{n&&e.preventDefault(),u(e.pageX,e.pageY)},v=e=>{n&&e.preventDefault(),u(e.touches[0].pageX,e.touches[0].pageY)};return null==r||r.addEventListener("mousedown",m,{passive:!0}),null==r||r.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("mouseup",g,{passive:!0}),window.addEventListener("touchend",g,{passive:!0}),null==r||r.addEventListener("mousemove",h,{passive:!0}),null==r||r.addEventListener("touchmove",v,{passive:!0}),()=>{null==r||r.removeEventListener("mousedown",m),null==r||r.removeEventListener("touchstart",p),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g),null==r||r.removeEventListener("mousemove",h),null==r||r.removeEventListener("touchmove",v)}}}),[]),e.createElement(on,{className:p,"data-row":i,onScroll:M},h&&z>0&&e.createElement("div",{className:`${v} arrow-left`,onClick:()=>I("back"),"data-event-category":y,"data-event-action":f,"data-event-label":E},"Care"===N?e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3V3C31.8368 3 39.0002 10.1634 39.0002 19V19C39.0002 27.8366 31.8368 35 23.0002 35V35C14.1637 35 7.00024 27.8366 7.00024 19V19Z",fill:"white"}),e.createElement("path",{d:"M20.9293 19L24.7503 15.179C25.1643 14.765 25.1643 14.093 24.7503 13.679C24.3363 13.265 23.6643 13.265 23.2503 13.679L18.6363 18.293C18.2453 18.684 18.2453 19.317 18.6363 19.707L23.2503 24.321C23.6643 24.735 24.3363 24.735 24.7503 24.321C25.1643 23.907 25.1643 23.235 24.7503 22.821L20.9293 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),e.createElement("div",{ref:P,className:"container",style:{overflowX:"snapped"===s||h?"hidden":"scroll"}},S.map(((t,a)=>{let n=0;for(let e=0;e<a;e++)n+=S[e].length;return e.createElement("div",{key:a,className:"section",style:{marginLeft:"intertwined"===c&&0!==a?d.amount+""+("percentage"===d.unit?"%":"px"):"0px"}},1===i&&g&&e.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${l}, 1fr)`}},t.map(((i,l)=>{const o=n+l,r=u.find((e=>e.index===o));return e.createElement("div",{className:"items-progress",key:l},0===l&&0===a?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}),e.createElement("div",{className:"icon-status"},e.createElement(rn,{status:null==r?void 0:r.status})),a===S.length-1&&l===t.length-1?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}))}))),e.createElement("div",{className:"grid-layout","data-index":a,style:{gridTemplateColumns:`repeat(${l}, 1fr)`,gridTemplateRows:`repeat(${i}, 1fr)`}},t.map(((t,a)=>e.createElement(e.Fragment,{key:a},e.createElement("div",{className:"item-grid",key:a},t))))))}))),h&&z<S.length-1&&e.createElement("div",{className:`${b} arrow-right`,onClick:()=>I("forward"),"data-event-category":y,"data-event-action":f,"data-event-label":E}," ","Care"===N?e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3C31.8368 3 39.0002 10.1634 39.0002 19C39.0002 27.8366 31.8368 35 23.0002 35C14.1637 35 7.00024 27.8366 7.00024 19Z",fill:"white"}),e.createElement("path",{d:"M24.0712 19L20.2502 15.179C19.8362 14.765 19.8362 14.093 20.2502 13.679C20.6642 13.265 21.3362 13.265 21.7502 13.679L26.3642 18.293C26.7552 18.684 26.7552 19.317 26.3642 19.707L21.7502 24.321C21.3362 24.735 20.6642 24.735 20.2502 24.321C19.8362 23.907 19.8362 23.235 20.2502 22.821L24.0712 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o&&e.createElement("ul",{className:"bullet-nav"},S.map(((t,a)=>e.createElement("li",{key:a,className:"bullet-nav__item "},e.createElement("p",{onClick:()=>L(a),className:`bullet-nav__link scroll ${z==a?"active":null}`,"data-scheme":C}))))),r&&e.createElement("div",{className:"image-gallery-wrapper","data-test":S.length},S.slice(0,3).map(((t,a)=>e.createElement("div",{className:`image-block ${z==a?"active":null}`,key:a,onClick:()=>L(a),"data-scheme":C},t)))))},cn=Le.div`
477
+ `,mn=({status:t})=>"inActive"===t?e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),e.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e.createElement("path",{d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"#00B16A"}),e.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),pn=({row:i=2,column:l=3,isDotsShown:o=!0,isImageGalleryShown:r=!1,mode:s="infinity",type:c="separated",distanceOverlappedLeft:d={amount:0,unit:"pixel"},children:m,className:p,isProgressShown:g=!1,statusChildren:u,isArrowShown:h=!1,classNameLeftArrow:v,classNameRightArrow:b,dataEventCategory:y,dataEventAction:f,dataEventLabel:E,onChangePage:x,page:w,customPageWidth:k,scheme:C="hellosites",arrowType:N="Discover"})=>{const B="number"==typeof w,[z,$]=t(B?w:0),S=[];e.Children.map(m,((t,a)=>{a%(i*l)==0&&S.push([]),S[S.length-1].push(e.cloneElement(t))}));const P=n(),D=n(0),L=e=>{if(!P.current)return;const{clientWidth:t}=P.current,a=k||t,n="intertwined"===c?"percentage"===d.unit?e*a+d.amount/100*a*e:e*a+d.amount*a*e:e*a;P.current.scrollTo({top:0,left:n,behavior:"smooth"}),D.current=e,$(e),x&&x(e)};a((()=>{"number"==typeof w&&(e=>{if(!P.current)return;const{clientWidth:t}=P.current,a=k||t,n="intertwined"===c?"percentage"===d.unit?e*a+d.amount/100*a*e:e*a+d.amount*a*e:e*a;P.current.scrollTo({top:0,left:n,behavior:"smooth"}),D.current=e,$(e)})(w)}),[w]);const I=e=>{if(!P.current)return;const{clientWidth:t}=P.current,a=k||t;let n;n=0===z?0:z*a,"forward"===e&&(n===a*(S.length-1)?($(S.length-1),n=a*(S.length-1),x&&x(S.length-1)):($(z+1),n+=a,x&&x(z+1)),P.current.scrollTo({top:0,left:n,behavior:"smooth"})),"back"===e&&(0===n?($(0),x&&x(0),n=0):($(z-1),x&&x(z-1),n-=a),P.current.scrollTo({top:0,left:n,behavior:"smooth"}))},T=Me((()=>{if("infinity"===s){if(!P.current)return;const{clientWidth:e,scrollLeft:t}=P.current,a=k||e,n=Math.floor(t/a);$(n),x&&x(n)}}),400);return a((()=>{if("snapped"===s){let e,t,a,n,i,l,o=!1;const r=P.current,s=(l,s)=>{o=!0,a=!1,n=!1,e=l-r.offsetLeft,t=s-r.offsetTop,i=r.scrollLeft},m=e=>{s(e.pageX,e.pageY)},p=e=>{s(e.touches[0].pageX,e.touches[0].pageY)},g=()=>{if(o=!1,a=!1,n=!1,!P.current)return;const{clientWidth:e}=P.current,t=k||e,i="ltr"===l?0!==D.current?D.current-1:D.current:"rtl"===l&&D.current<S.length-1?D.current+1:D.current,r="intertwined"===c?"percentage"===d.unit?i*t+d.amount/100*t*i:i*t+d.amount*t*i:i*t;P.current.scrollTo({top:0,left:r,behavior:"smooth"}),l="none",D.current!==i&&(D.current=i,$(i),x&&x(i))},u=(s,c)=>{if(!o)return;const d=s-r.offsetLeft,m=c-r.offsetTop,p=d-e,g=m-t;a||n||!(g>20||g<-20)||(a=!0),!a&&(p>20||p<-20)&&(n=!0,r.scrollLeft=i-p,p>0&&(l="ltr"),p<0&&(l="rtl"),0===p&&(l="none"))},h=e=>{n&&e.preventDefault(),u(e.pageX,e.pageY)},v=e=>{n&&e.preventDefault(),u(e.touches[0].pageX,e.touches[0].pageY)};return null==r||r.addEventListener("mousedown",m,{passive:!0}),null==r||r.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("mouseup",g,{passive:!0}),window.addEventListener("touchend",g,{passive:!0}),null==r||r.addEventListener("mousemove",h,{passive:!0}),null==r||r.addEventListener("touchmove",v,{passive:!0}),()=>{null==r||r.removeEventListener("mousedown",m),null==r||r.removeEventListener("touchstart",p),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g),null==r||r.removeEventListener("mousemove",h),null==r||r.removeEventListener("touchmove",v)}}}),[]),e.createElement(dn,{className:p,"data-row":i,onScroll:T},h&&z>0&&e.createElement("div",{className:`${v} arrow-left`,onClick:()=>I("back"),"data-event-category":y,"data-event-action":f,"data-event-label":E},"Care"===N?e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3V3C31.8368 3 39.0002 10.1634 39.0002 19V19C39.0002 27.8366 31.8368 35 23.0002 35V35C14.1637 35 7.00024 27.8366 7.00024 19V19Z",fill:"white"}),e.createElement("path",{d:"M20.9293 19L24.7503 15.179C25.1643 14.765 25.1643 14.093 24.7503 13.679C24.3363 13.265 23.6643 13.265 23.2503 13.679L18.6363 18.293C18.2453 18.684 18.2453 19.317 18.6363 19.707L23.2503 24.321C23.6643 24.735 24.3363 24.735 24.7503 24.321C25.1643 23.907 25.1643 23.235 24.7503 22.821L20.9293 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),e.createElement("div",{ref:P,className:"container",style:{overflowX:"snapped"===s||h?"hidden":"scroll"}},S.map(((t,a)=>{let n=0;for(let e=0;e<a;e++)n+=S[e].length;return e.createElement("div",{key:a,className:"section",style:{marginLeft:"intertwined"===c&&0!==a?d.amount+""+("percentage"===d.unit?"%":"px"):"0px"}},1===i&&g&&e.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${l}, 1fr)`}},t.map(((i,l)=>{const o=n+l,r=u.find((e=>e.index===o));return e.createElement("div",{className:"items-progress",key:l},0===l&&0===a?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}),e.createElement("div",{className:"icon-status"},e.createElement(mn,{status:null==r?void 0:r.status})),a===S.length-1&&l===t.length-1?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}))}))),e.createElement("div",{className:"grid-layout","data-index":a,style:{gridTemplateColumns:`repeat(${l}, 1fr)`,gridTemplateRows:`repeat(${i}, 1fr)`}},t.map(((t,a)=>e.createElement(e.Fragment,{key:a},e.createElement("div",{className:"item-grid",key:a},t))))))}))),h&&z<S.length-1&&e.createElement("div",{className:`${b} arrow-right`,onClick:()=>I("forward"),"data-event-category":y,"data-event-action":f,"data-event-label":E}," ","Care"===N?e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3C31.8368 3 39.0002 10.1634 39.0002 19C39.0002 27.8366 31.8368 35 23.0002 35C14.1637 35 7.00024 27.8366 7.00024 19Z",fill:"white"}),e.createElement("path",{d:"M24.0712 19L20.2502 15.179C19.8362 14.765 19.8362 14.093 20.2502 13.679C20.6642 13.265 21.3362 13.265 21.7502 13.679L26.3642 18.293C26.7552 18.684 26.7552 19.317 26.3642 19.707L21.7502 24.321C21.3362 24.735 20.6642 24.735 20.2502 24.321C19.8362 23.907 19.8362 23.235 20.2502 22.821L24.0712 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o&&e.createElement("ul",{className:"bullet-nav"},S.map(((t,a)=>e.createElement("li",{key:a,className:"bullet-nav__item "},e.createElement("p",{onClick:()=>L(a),className:`bullet-nav__link scroll ${z==a?"active":null}`,"data-scheme":C}))))),r&&e.createElement("div",{className:"image-gallery-wrapper","data-test":S.length},S.slice(0,3).map(((t,a)=>e.createElement("div",{className:`image-block ${z==a?"active":null}`,key:a,onClick:()=>L(a),"data-scheme":C},t)))))},gn=Le.div`
478
478
  border-radius: ${Q.borderRadius};
479
479
  ${e=>e["data-is-in-card"]&&`\n padding: 12px; \n background-color: ${e["data-card-color"]};`}
480
- `,dn=Le.div`
480
+ `,un=Le.div`
481
481
  width: 13px;
482
482
  height: 13px;
483
483
  margin-right: 10px;
484
484
  background-color: ${e=>e["data-color"]};
485
485
  border-radius: 50%;
486
- `,mn=Le.div`
486
+ `,hn=Le.div`
487
487
  display: flex;
488
488
  align-items: center;
489
489
  color: ${Q.colors.gray800};
490
490
  font-size: ${Q.sizes.fsParagraph4};
491
491
  font-weight: ${Q.sizes.fwRegular};
492
- `,pn=Le.div`
492
+ `,vn=Le.div`
493
493
  display: flex;
494
494
  align-items: center;
495
495
  margin-top: 4px;
@@ -508,10 +508,10 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
508
508
  font-size: ${Q.sizes.fsParagraph4};
509
509
  font-weight: ${Q.sizes.fwBold};
510
510
  }
511
- `,gn=({type:t,description:a,value:n,withIcon:i,isInACard:l,cardColor:o,className:r})=>e.createElement(cn,{className:r,"data-size":t,"data-is-in-card":"big"===t&&l,"data-card-color":o},e.createElement(mn,null,"small"===t&&e.createElement(dn,{"data-color":o}),a),e.createElement(pn,{"data-size":t},"small"!==t&&i,n)),un=Le.table`
511
+ `,bn=({type:t,description:a,value:n,withIcon:i,isInACard:l,cardColor:o,className:r})=>e.createElement(gn,{className:r,"data-size":t,"data-is-in-card":"big"===t&&l,"data-card-color":o},e.createElement(hn,null,"small"===t&&e.createElement(un,{"data-color":o}),a),e.createElement(vn,{"data-size":t},"small"!==t&&i,n)),yn=Le.table`
512
512
  width: 100%;
513
513
  position: relative;
514
- `,hn=Le.td`
514
+ `,fn=Le.td`
515
515
  padding: var(--vertical-spacing) var(--horizontal-spacing);
516
516
  vertical-align: middle;
517
517
 
@@ -524,13 +524,13 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
524
524
  &[data-text-align='center'] {
525
525
  text-align: center;
526
526
  }
527
- `,vn=Le.tr`
527
+ `,En=Le.tr`
528
528
  border-bottom: 1px solid ${Q.colors.gray100};
529
529
 
530
530
  &[data-is-active='true'] {
531
531
  background-color: ${Q.colors.gray200};
532
532
  }
533
- `,bn=({children:t,className:a,style:n,isActive:i,onRowClicked:l,rowId:o})=>e.createElement(vn,{className:a,"data-is-active":i,style:n,onClick:()=>{l&&l(o)}},t),yn=Le.thead`
533
+ `,xn=({children:t,className:a,style:n,isActive:i,onRowClicked:l,rowId:o})=>e.createElement(En,{className:a,"data-is-active":i,style:n,onClick:()=>{l&&l(o)}},t),wn=Le.thead`
534
534
  th {
535
535
  padding: var(--vertical-spacing) var(--horizontal-spacing);
536
536
  text-align: left;
@@ -546,7 +546,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
546
546
  border-bottom: 2px solid ${Q.colors.gray200};
547
547
  }
548
548
  }
549
- `,fn=Le.tbody`
549
+ `,kn=Le.tbody`
550
550
  position: relative;
551
551
  &[data-is-striped] {
552
552
  > tr:nth-child(odd) {
@@ -558,7 +558,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
558
558
  background-color: ${Q.colors.neutral100};
559
559
  }
560
560
  }
561
- `;var En=Object.freeze({__proto__:null,Table:({children:t,className:a,style:n,horizontalPadding:i,verticalPadding:l})=>e.createElement(un,{className:a,style:Object.assign({"--horizontal-spacing":i||"19px","--vertical-spacing":l||"26px"},n)},t),Cell:({children:t,className:a,style:n,textAlign:i,isTableHead:l})=>e.createElement(hn,{className:a,style:n,"data-text-align":i||"left",as:l?"th":"td"},t),Head:({isSticky:t,children:a,className:n,style:i})=>e.createElement(yn,{className:n,"data-is-sticky":t||void 0,style:i},e.createElement(bn,null,a)),Row:bn,Body:({children:t,className:a,style:n,isHoverable:i,isStriped:l})=>e.createElement(fn,{className:a,style:n,"data-is-striped":l||void 0,"data-is-hoverable":i||void 0},t)}),xn=re((e=>{const t=ce("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 wn=({style:n,initialTab:i,tabContent:l,onChange:o,className:r,dataEventCategory:s,dataEventAction:c,dataEventLabel:d,id:m,styles:g})=>{const{classes:u,cx:h,theme:v}=xn(void 0,{name:"Tabs",styles:g}),[b,y]=t(i||0);return a((()=>{y(i)}),[i]),e.createElement("ul",{style:n,className:h(u.root,r),role:"tablist",id:m},l.map(((t,a)=>e.createElement("li",{className:`${u.item} ${b===a?"active":""} ${t.className}`,"aria-selected":b===a,role:"tab",onClick:()=>{y(a),o&&o(a)},onKeyDown:e=>{"Enter"===e.key&&(y(a),o&&o(a))},key:a,"data-event-category":t.dataEventCategory||s,"data-event-action":t.dataEventAction||c,"data-event-label":t.dataEventLabel||d,tabIndex:0,"data-testid":t.dataTestid},e.createElement("div",{className:u.itemInner},t.icon&&e.createElement("div",{className:u.icon},t.icon),e.createElement(p,{className:u.label,size:t.textSize||"sm",weight:t.textType||"bold",color:b===a?v.fn.primaryColor():t.textColor||v.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))},kn=Le.div`
561
+ `;var Cn=Object.freeze({__proto__:null,Table:({children:t,className:a,style:n,horizontalPadding:i,verticalPadding:l})=>e.createElement(yn,{className:a,style:Object.assign({"--horizontal-spacing":i||"19px","--vertical-spacing":l||"26px"},n)},t),Cell:({children:t,className:a,style:n,textAlign:i,isTableHead:l})=>e.createElement(fn,{className:a,style:n,"data-text-align":i||"left",as:l?"th":"td"},t),Head:({isSticky:t,children:a,className:n,style:i})=>e.createElement(wn,{className:n,"data-is-sticky":t||void 0,style:i},e.createElement(xn,null,a)),Row:xn,Body:({children:t,className:a,style:n,isHoverable:i,isStriped:l})=>e.createElement(kn,{className:a,style:n,"data-is-striped":l||void 0,"data-is-hoverable":i||void 0},t)}),Nn=re((e=>{const t=ce("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 Bn=({style:n,initialTab:i,tabContent:l,onChange:o,className:r,dataEventCategory:s,dataEventAction:c,dataEventLabel:d,id:m,styles:g})=>{const{classes:u,cx:h,theme:v}=Nn(void 0,{name:"Tabs",styles:g}),[b,y]=t(i||0);return a((()=>{y(i)}),[i]),e.createElement("ul",{style:n,className:h(u.root,r),role:"tablist",id:m},l.map(((t,a)=>e.createElement("li",{className:`${u.item} ${b===a?"active":""} ${t.className}`,"aria-selected":b===a,role:"tab",onClick:()=>{y(a),o&&o(a)},onKeyDown:e=>{"Enter"===e.key&&(y(a),o&&o(a))},key:a,"data-event-category":t.dataEventCategory||s,"data-event-action":t.dataEventAction||c,"data-event-label":t.dataEventLabel||d,tabIndex:0,"data-testid":t.dataTestid},e.createElement("div",{className:u.itemInner},t.icon&&e.createElement("div",{className:u.icon},t.icon),e.createElement(p,{className:u.label,size:t.textSize||"sm",weight:t.textType||"bold",color:b===a?v.fn.primaryColor():t.textColor||v.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))},zn=Le.div`
562
562
  padding: 1rem;
563
563
  background: ${Q.colors.neutral100};
564
564
  .survey-inner-wrapper {
@@ -635,7 +635,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
635
635
  }
636
636
  }
637
637
  }
638
- `,Cn=Le.div`
638
+ `,$n=Le.div`
639
639
  position: relative;
640
640
  display: flex;
641
641
  align-items: center;
@@ -748,7 +748,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
748
748
  }
749
749
  }
750
750
  }
751
- `,Nn=Le.div`
751
+ `,Sn=Le.div`
752
752
  position: relative;
753
753
  width: 100%;
754
754
  padding-top: min(400px, 100%);
@@ -778,7 +778,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
778
778
  }
779
779
  }
780
780
  }
781
- `,Bn=Le.div`
781
+ `,Pn=Le.div`
782
782
  .survey-question-text-wrapper {
783
783
  margin-bottom: 24px;
784
784
  .survey-question-title {
@@ -828,7 +828,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
828
828
  }
829
829
  }
830
830
  }
831
- `,zn=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,hasImage:c,inputType:d,image:m})=>e.createElement(Cn,{"data-disabled":r,className:o,"data-size":t,"data-checked":i,onClick:()=>{s(l)},"data-has-image":c},c&&e.createElement("div",{className:"choice-image-wrapper"},m&&e.createElement("img",{src:m,loading:"lazy"})),e.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${n}-${l}`},a),e.createElement("input",{type:d,checked:i,name:n,id:`${n}-${l}`,value:l,readOnly:!0})),$n=({question:n,description:i,onOptionsChange:l,onTextOptionsChange:o,style:r,className:s})=>{const{type:c,title:d,subtitle:m,image:g,textOptions:u,options:h,name:v,is_multi_select:b}=n,y=!!(null==h?void 0:h.some((e=>e.image))),[f,E]=t([]),[x,w]=t((()=>(null==u?void 0:u.slice())||[]));return a((()=>{l&&l(f.slice())}),[!!l,f]),a((()=>{o&&o(x)}),[!!o,x]),e.createElement(Bn,{className:s,style:r},e.createElement("div",{className:"survey-question-text-wrapper"},d&&e.createElement(K,{"data-nosubtitle":!m,className:"survey-question-title",tag:"h4"},d),m&&e.createElement(p,{className:"survey-question-subtitle",size:"p2"},m),i&&e.createElement(p,{className:"survey-question-description",size:"p2"},i)),g&&e.createElement("img",{src:g,className:"survey-question-image",loading:"lazy"}),e.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===c&&e.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},h.map((t=>{var a;return e.createElement(zn,{inputType:"radio",label:t.label,name:v,key:`${v}-${t.value}`,checked:(null===(a=f[0])||void 0===a?void 0:a.value)===t.value,value:t.value,onChange:e=>{E([h.find((t=>t.value===e))])},className:"survey-question-option-item",image:t.image,hasImage:y})}))),"checkbox"===c&&e.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},h.map((t=>e.createElement(zn,{inputType:"checkbox",label:t.label,name:v,key:`${v}-${t.value}`,checked:!!f.find((e=>e.value===t.value)),value:t.value,onChange:()=>{const e=f.findIndex((e=>e.value===t.value));E(e>=0?t=>(t.splice(e,1),t.slice()):b?e=>e.concat(t).slice():[t])},className:"survey-question-option-item survey-option-radio",image:t.image,hasImage:y})))),"textbox"===c&&x.map(((t,a)=>t.isTextArea?e.createElement(L,{key:a,placeholder:t.placeholder,height:"150px",value:t.value,onChange:e=>w((t=>(t[a].value=e,t.slice())))}):e.createElement(Oe,{key:a,value:t.value,name:t.name,size:"md",className:"survey-contact-input",label:t.label,placeholder:t.placeholder,onChange:e=>{w((t=>(t[a].value=e,t.slice())))},type:t.type})))))};var Sn;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(Sn||(Sn={}));const Pn=({className:a,headerText:i,style:l,question:o,termAndPolicyText:r,prevText:s,nextText:c,isContactForm:d,isDisableNext:m,isDisablePrev:g,onPrevClick:u,onNextClick:h,isSubmitButton:v,isButtonCenter:b,progress:y,descriptionText:f})=>{var E,x,w;const[k,C]=t([]),{is_multi_select:N,multi_select_option:B,from:z,to:$}=o,S=null==o?void 0:o.type,P="checkbox"===S&&(null===(E=o.options)||void 0===E?void 0:E.length)&&(!k||0===k.length||N&&B===Sn.RANGE&&(k.length<z||k.length>$)||N&&B===Sn.EXACT_NUMBER&&k.length!==z)||"radio"===S&&(null===(x=o.options)||void 0===x?void 0:x.length)&&(!k||0===k.length)||"textbox"===S&&(null===(w=o.textOptions)||void 0===w?void 0:w.length)&&(k.length<o.textOptions.length||k.some((e=>!e.value))),D="number"==typeof y?y>1?1:y<0?0:Number(y.toFixed(2)):-1,L=n(null),I=()=>"textbox"!==S||L.current.reportValidity();return e.createElement(kn,{className:a,style:l},e.createElement("div",{className:"survey-inner-wrapper"},i&&e.createElement("div",{className:"survey-header"},e.createElement(p,{className:"survey-header-text",size:"c2"},i)),e.createElement("form",{ref:L,onSubmit:e=>e.preventDefault()},e.createElement($n,{question:o,description:f,onOptionsChange:e=>{C(e)},onTextOptionsChange:e=>{C(e)}})),d&&c&&e.createElement(je,{className:"survey-contact-submit",size:"lg",isDisabled:m||P,onClick:()=>I()&&h&&h(k)},c),r&&e.createElement("div",{className:"term-policy-container"},r),"number"==typeof y&&e.createElement("div",{className:"survey-progress-wrapper"},e.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${D})`}})),(s||c)&&e.createElement("div",{"data-center":b,className:"survey-button-wrapper"},s&&e.createElement(je,{className:"survey-prev-button",size:"lg",color:g?"primary":"secondary",isDisabled:g,icon:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.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:g?"#fff":"#2D87F3"})),onClick:u},s),!d&&c&&e.createElement(je,{onClick:()=>I()&&h&&h(k),className:"survey-next-button",size:"lg",isDisabled:m||P},c," ",v?void 0:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.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"}))))))},Dn=({thankyou:t,thankyouSubtitle:a,className:n,style:i})=>e.createElement(kn,{className:n,style:i},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(Nn,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},e.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:Q.colors.primary50}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),e.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"})),t&&e.createElement(K,{className:"survey-thankyou-title",tag:"h3"},t),a&&e.createElement(p,{className:"survey-thankyou-subtitle",size:"p3"},a))))),Ln=200,In=Le.div``,Mn=Le.div`
831
+ `,Dn=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,hasImage:c,inputType:d,image:m})=>e.createElement($n,{"data-disabled":r,className:o,"data-size":t,"data-checked":i,onClick:()=>{s(l)},"data-has-image":c},c&&e.createElement("div",{className:"choice-image-wrapper"},m&&e.createElement("img",{src:m,loading:"lazy"})),e.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${n}-${l}`},a),e.createElement("input",{type:d,checked:i,name:n,id:`${n}-${l}`,value:l,readOnly:!0})),Ln=({question:n,description:i,onOptionsChange:l,onTextOptionsChange:o,style:r,className:s})=>{const{type:c,title:d,subtitle:m,image:g,textOptions:u,options:h,name:v,is_multi_select:b}=n,y=!!(null==h?void 0:h.some((e=>e.image))),[f,E]=t([]),[x,w]=t((()=>(null==u?void 0:u.slice())||[]));return a((()=>{l&&l(f.slice())}),[!!l,f]),a((()=>{o&&o(x)}),[!!o,x]),e.createElement(Pn,{className:s,style:r},e.createElement("div",{className:"survey-question-text-wrapper"},d&&e.createElement(K,{"data-nosubtitle":!m,className:"survey-question-title",tag:"h4"},d),m&&e.createElement(p,{className:"survey-question-subtitle",size:"p2"},m),i&&e.createElement(p,{className:"survey-question-description",size:"p2"},i)),g&&e.createElement("img",{src:g,className:"survey-question-image",loading:"lazy"}),e.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===c&&e.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},h.map((t=>{var a;return e.createElement(Dn,{inputType:"radio",label:t.label,name:v,key:`${v}-${t.value}`,checked:(null===(a=f[0])||void 0===a?void 0:a.value)===t.value,value:t.value,onChange:e=>{E([h.find((t=>t.value===e))])},className:"survey-question-option-item",image:t.image,hasImage:y})}))),"checkbox"===c&&e.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},h.map((t=>e.createElement(Dn,{inputType:"checkbox",label:t.label,name:v,key:`${v}-${t.value}`,checked:!!f.find((e=>e.value===t.value)),value:t.value,onChange:()=>{const e=f.findIndex((e=>e.value===t.value));E(e>=0?t=>(t.splice(e,1),t.slice()):b?e=>e.concat(t).slice():[t])},className:"survey-question-option-item survey-option-radio",image:t.image,hasImage:y})))),"textbox"===c&&x.map(((t,a)=>t.isTextArea?e.createElement(L,{key:a,placeholder:t.placeholder,height:"150px",value:t.value,onChange:e=>w((t=>(t[a].value=e,t.slice())))}):e.createElement(Oe,{key:a,value:t.value,name:t.name,size:"md",className:"survey-contact-input",label:t.label,placeholder:t.placeholder,onChange:e=>{w((t=>(t[a].value=e,t.slice())))},type:t.type})))))};var In;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(In||(In={}));const Tn=({className:a,headerText:i,style:l,question:o,termAndPolicyText:r,prevText:s,nextText:c,isContactForm:d,isDisableNext:m,isDisablePrev:g,onPrevClick:u,onNextClick:h,isSubmitButton:v,isButtonCenter:b,progress:y,descriptionText:f})=>{var E,x,w;const[k,C]=t([]),{is_multi_select:N,multi_select_option:B,from:z,to:$}=o,S=null==o?void 0:o.type,P="checkbox"===S&&(null===(E=o.options)||void 0===E?void 0:E.length)&&(!k||0===k.length||N&&B===In.RANGE&&(k.length<z||k.length>$)||N&&B===In.EXACT_NUMBER&&k.length!==z)||"radio"===S&&(null===(x=o.options)||void 0===x?void 0:x.length)&&(!k||0===k.length)||"textbox"===S&&(null===(w=o.textOptions)||void 0===w?void 0:w.length)&&(k.length<o.textOptions.length||k.some((e=>!e.value))),D="number"==typeof y?y>1?1:y<0?0:Number(y.toFixed(2)):-1,L=n(null),I=()=>"textbox"!==S||L.current.reportValidity();return e.createElement(zn,{className:a,style:l},e.createElement("div",{className:"survey-inner-wrapper"},i&&e.createElement("div",{className:"survey-header"},e.createElement(p,{className:"survey-header-text",size:"c2"},i)),e.createElement("form",{ref:L,onSubmit:e=>e.preventDefault()},e.createElement(Ln,{question:o,description:f,onOptionsChange:e=>{C(e)},onTextOptionsChange:e=>{C(e)}})),d&&c&&e.createElement(je,{className:"survey-contact-submit",size:"lg",isDisabled:m||P,onClick:()=>I()&&h&&h(k)},c),r&&e.createElement("div",{className:"term-policy-container"},r),"number"==typeof y&&e.createElement("div",{className:"survey-progress-wrapper"},e.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${D})`}})),(s||c)&&e.createElement("div",{"data-center":b,className:"survey-button-wrapper"},s&&e.createElement(je,{className:"survey-prev-button",size:"lg",color:g?"primary":"secondary",isDisabled:g,icon:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.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:g?"#fff":"#2D87F3"})),onClick:u},s),!d&&c&&e.createElement(je,{onClick:()=>I()&&h&&h(k),className:"survey-next-button",size:"lg",isDisabled:m||P},c," ",v?void 0:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.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"}))))))},Mn=({thankyou:t,thankyouSubtitle:a,className:n,style:i})=>e.createElement(zn,{className:n,style:i},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(Sn,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},e.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:Q.colors.primary50}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),e.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"})),t&&e.createElement(K,{className:"survey-thankyou-title",tag:"h3"},t),a&&e.createElement(p,{className:"survey-thankyou-subtitle",size:"p3"},a))))),An=200,jn=Le.div``,On=Le.div`
832
832
  width: 100vw;
833
833
  height: 100vh;
834
834
  position: fixed;
@@ -836,15 +836,15 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
836
836
  right: 0;
837
837
  background-color: ${Q.colors.white};
838
838
  opacity: 0.83;
839
- transition: display ${Ln}ms linear;
839
+ transition: display ${An}ms linear;
840
840
 
841
841
  [data-floatmenu-open='true'] & {
842
- animation: showBackgroundPanel ${Ln}ms linear 0s normal
842
+ animation: showBackgroundPanel ${An}ms linear 0s normal
843
843
  forwards;
844
844
  }
845
845
 
846
846
  [data-floatmenu-open='false'] & {
847
- animation: hideBackgroundPanel ${Ln}ms linear 0s normal
847
+ animation: hideBackgroundPanel ${An}ms linear 0s normal
848
848
  forwards;
849
849
  }
850
850
 
@@ -874,15 +874,15 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
874
874
  height: 0;
875
875
  }
876
876
  }
877
- `,Tn=Le.div`
877
+ `,_n=Le.div`
878
878
  position: fixed;
879
879
  right: 16px;
880
880
  bottom: 40px;
881
- `,An=Le.div`
881
+ `,Fn=Le.div`
882
882
  display: flex;
883
883
  flex-direction: column;
884
884
  gap: 16px;
885
- transition: all ${Ln}ms ease-in-out;
885
+ transition: all ${An}ms ease-in-out;
886
886
  position: fixed;
887
887
  bottom: 112px;
888
888
  right: 16px;
@@ -901,7 +901,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
901
901
  bottom: 46px;
902
902
  right: 36px;
903
903
  }
904
- `,jn=Le.div`
904
+ `,Hn=Le.div`
905
905
  border-radius: 50%;
906
906
  width: 56px;
907
907
  height: 56px;
@@ -949,12 +949,12 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
949
949
 
950
950
  [data-floatmenu-open='true'] &:before,
951
951
  [data-floatmenu-open='true'] &:after {
952
- animation: toX ${Ln}ms linear 0s normal forwards;
952
+ animation: toX ${An}ms linear 0s normal forwards;
953
953
  }
954
954
 
955
955
  [data-floatmenu-open='false'] &:before,
956
956
  [data-floatmenu-open='false'] &:after {
957
- animation: toPlus ${Ln}ms linear 0s normal forwards;
957
+ animation: toPlus ${An}ms linear 0s normal forwards;
958
958
  }
959
959
 
960
960
  @keyframes toX {
@@ -990,7 +990,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
990
990
  transform: translate(-50%, -50%) rotateZ(0deg);
991
991
  }
992
992
  }
993
- `,On=Le.div`
993
+ `,Rn=Le.div`
994
994
  display: flex;
995
995
  gap: 8px;
996
996
  align-items: center;
@@ -1014,11 +1014,11 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1014
1014
  }
1015
1015
  // slide
1016
1016
  [data-animation-type='slide'] & {
1017
- transition: all ${Ln}ms ease-in;
1017
+ transition: all ${An}ms ease-in;
1018
1018
  }
1019
1019
 
1020
1020
  [data-animation-type='slide'][data-floatmenu-open='true'] & {
1021
- animation: showItem ${Ln}ms;
1021
+ animation: showItem ${An}ms;
1022
1022
  }
1023
1023
  [data-animation-type='slide'][data-floatmenu-open='false'] & {
1024
1024
  bottom: -64px !important;
@@ -1056,12 +1056,12 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1056
1056
  opacity: 0;
1057
1057
  }
1058
1058
  }
1059
- `,_n=Le.div`
1059
+ `,Wn=Le.div`
1060
1060
  font-size: 14px;
1061
1061
 
1062
1062
  // zoom
1063
1063
  [data-animation-type='zoom'] & {
1064
- transition: transform ${Ln}ms ease-in-out;
1064
+ transition: transform ${An}ms ease-in-out;
1065
1065
  transform-origin: 100% 0;
1066
1066
  }
1067
1067
 
@@ -1075,7 +1075,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1075
1075
 
1076
1076
  // slide
1077
1077
  [data-animation-type='slide'] & {
1078
- transition: opacity ${Ln}ms;
1078
+ transition: opacity ${An}ms;
1079
1079
  }
1080
1080
  [data-animation-type='slide'][data-floatmenu-open='true'] & {
1081
1081
  opacity: 1;
@@ -1083,7 +1083,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1083
1083
  [data-animation-type='slide'][data-floatmenu-open='false'] & {
1084
1084
  opacity: 0;
1085
1085
  }
1086
- `,Fn=Le.div`
1086
+ `,Un=Le.div`
1087
1087
  border-radius: 50%;
1088
1088
  box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 8px rgba(0, 0, 0, 0.04),
1089
1089
  0px 0px 1px rgba(0, 0, 0, 0.04);
@@ -1096,7 +1096,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1096
1096
 
1097
1097
  // zoom
1098
1098
  [data-animation-type='zoom'] & {
1099
- transition: transform ${Ln}ms ease-in-out;
1099
+ transition: transform ${An}ms ease-in-out;
1100
1100
  }
1101
1101
 
1102
1102
  [data-animation-type='zoom'][data-floatmenu-open='true'] & {
@@ -1112,7 +1112,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1112
1112
  height: 24px;
1113
1113
  object-fit: contain;
1114
1114
  }
1115
- `,Hn=({items:n,className:i,style:l,backgroundPanelStyle:o,isOpen:r,onOpen:s,onClose:c,disableBackdropClick:d,siteType:m="hb",animationType:p="zoom",zIndex:g=300})=>{const[u,h]=t(!!r);a((()=>{h(!!r)}),[r]);const v=()=>{h(!1),c&&c()};return e.createElement(In,{style:l,className:i,"data-floatmenu-open":u,"data-site-type":m,"data-animation-type":p},e.createElement(Mn,{className:"float-button-group__panel",style:Object.assign({zIndex:g},o),onClick:d?void 0:v}),e.createElement(Tn,{className:"float-button-group___content",style:{zIndex:g}},e.createElement(An,null,n.map(((t,a)=>e.createElement(On,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===p&&{bottom:64*(n.length-1-a),transitionDelay:Ln/n.length*(u?n.length-1-a:a)+"ms"}),"slide"===p&&{bottom:64*(n.length-1-a),transitionDelay:Ln/n.length*(u?a:n.length-1-a)+"ms"}),key:a,onClick:()=>{t.onClick(),t.keepMenuOnClick||h(!1)}},e.createElement(_n,{style:Object.assign({},"zoom"===p&&{transitionDelay:Ln/n.length*(u?n.length-1-a:a)+"ms"})},t.label),e.createElement(Fn,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===p||"slide"===p)&&{transitionDelay:Ln/n.length*(u?n.length-1-a:a)+"ms"})},t.icon))))),e.createElement(jn,{onClick:u?v:()=>{h(!0),s&&s()}})))},Rn=Le.div`
1115
+ `,Vn=({items:n,className:i,style:l,backgroundPanelStyle:o,isOpen:r,onOpen:s,onClose:c,disableBackdropClick:d,siteType:m="hb",animationType:p="zoom",zIndex:g=300})=>{const[u,h]=t(!!r);a((()=>{h(!!r)}),[r]);const v=()=>{h(!1),c&&c()};return e.createElement(jn,{style:l,className:i,"data-floatmenu-open":u,"data-site-type":m,"data-animation-type":p},e.createElement(On,{className:"float-button-group__panel",style:Object.assign({zIndex:g},o),onClick:d?void 0:v}),e.createElement(_n,{className:"float-button-group___content",style:{zIndex:g}},e.createElement(Fn,null,n.map(((t,a)=>e.createElement(Rn,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===p&&{bottom:64*(n.length-1-a),transitionDelay:An/n.length*(u?n.length-1-a:a)+"ms"}),"slide"===p&&{bottom:64*(n.length-1-a),transitionDelay:An/n.length*(u?a:n.length-1-a)+"ms"}),key:a,onClick:()=>{t.onClick(),t.keepMenuOnClick||h(!1)}},e.createElement(Wn,{style:Object.assign({},"zoom"===p&&{transitionDelay:An/n.length*(u?n.length-1-a:a)+"ms"})},t.label),e.createElement(Un,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===p||"slide"===p)&&{transitionDelay:An/n.length*(u?n.length-1-a:a)+"ms"})},t.icon))))),e.createElement(Hn,{onClick:u?v:()=>{h(!0),s&&s()}})))},Gn=Le.div`
1116
1116
  padding: 16px;
1117
1117
  width: 375px;
1118
1118
  word-wrap: break-word;
@@ -1142,7 +1142,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1142
1142
  right: unset;
1143
1143
  }
1144
1144
  }
1145
- `,Wn=Le.p`
1145
+ `,Zn=Le.p`
1146
1146
  position: relative;
1147
1147
  padding-left: 24px;
1148
1148
  color: ${Q.colors.white};
@@ -1161,7 +1161,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1161
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
1162
  }
1163
1163
  }
1164
- `,Un=Le.p`
1164
+ `,qn=Le.p`
1165
1165
  margin-top: 2px;
1166
1166
  color: ${Q.colors.white};
1167
1167
  font-size: 12px;
@@ -1172,12 +1172,12 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1172
1172
  text-decoration: none;
1173
1173
  text-decoration-line: underline;
1174
1174
  }
1175
- `,Vn=Le.div`
1175
+ `,Yn=Le.div`
1176
1176
  display: flex;
1177
1177
  align-items: center;
1178
1178
  margin-top: 8px;
1179
1179
  gap: 16px;
1180
- `,Gn=Le.div`
1180
+ `,Xn=Le.div`
1181
1181
  padding: 7px 28px;
1182
1182
  background: ${Q.colors.white};
1183
1183
  border-radius: ${Q.borderRadius};
@@ -1186,14 +1186,14 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1186
1186
  font-size: 12px;
1187
1187
  font-weight: 600;
1188
1188
  line-height: 18px;
1189
- `,Zn=Le.a`
1189
+ `,Kn=Le.a`
1190
1190
  color: ${Q.colors.white};
1191
1191
  font-size: 12px;
1192
1192
  font-weight: 600;
1193
1193
  line-height: 22px;
1194
1194
  text-decoration: none;
1195
1195
  text-decoration-line: underline;
1196
- `,qn=({className:t,policiesUrl:a,onAcceptClick:n,translations:i={acceptButton:"Accept",policiesButton:"Our Policies"},title:l="",description:o="",theme:r="helloSites",isOpen:s=!0,useDefaultPosition:c=!0,trackingAttributes:d})=>e.createElement(Rn,{className:t,"data-theme":r,"data-is-open":s,"data-default-position":c},e.createElement(Wn,{"data-has-content":!!l},l),e.createElement(Un,{dangerouslySetInnerHTML:{__html:o}}),e.createElement(Vn,null,e.createElement(Gn,{role:"button",tabIndex:0,onClick:n,"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},i.acceptButton),e.createElement(Zn,{href:a},i.policiesButton))),Yn=Ie`
1196
+ `,Qn=({className:t,policiesUrl:a,onAcceptClick:n,translations:i={acceptButton:"Accept",policiesButton:"Our Policies"},title:l="",description:o="",theme:r="helloSites",isOpen:s=!0,useDefaultPosition:c=!0,trackingAttributes:d})=>e.createElement(Gn,{className:t,"data-theme":r,"data-is-open":s,"data-default-position":c},e.createElement(Zn,{"data-has-content":!!l},l),e.createElement(qn,{dangerouslySetInnerHTML:{__html:o}}),e.createElement(Yn,null,e.createElement(Xn,{role:"button",tabIndex:0,onClick:n,"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},i.acceptButton),e.createElement(Kn,{href:a},i.policiesButton))),Jn=Ie`
1197
1197
  from {
1198
1198
  transform: translateY(100%);
1199
1199
  visibility: visible;
@@ -1202,7 +1202,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1202
1202
  to {
1203
1203
  transform: translateY(0);
1204
1204
  }
1205
- `,Xn=Ie`
1205
+ `,ei=Ie`
1206
1206
  from {
1207
1207
  transform: translate(0, 0);
1208
1208
  }
@@ -1211,7 +1211,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1211
1211
  visibility: hidden;
1212
1212
  transform: translate(0, 100%);
1213
1213
  }
1214
- `,Kn=Le.div`
1214
+ `,ti=Le.div`
1215
1215
  cursor: pointer;
1216
1216
  display: flex;
1217
1217
  flex-direction: column;
@@ -1284,7 +1284,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1284
1284
  &[data-is-disabled='true'] {
1285
1285
  opacity: 0.2;
1286
1286
  }
1287
- `,Qn=Le.div`
1287
+ `,ai=Le.div`
1288
1288
  z-index: 100;
1289
1289
  position: fixed;
1290
1290
  bottom: 0;
@@ -1310,11 +1310,11 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1310
1310
  text-decoration: none;
1311
1311
  }
1312
1312
  &[data-is-collapsed='true'] {
1313
- animation: ${Xn} 500ms ease-in-out forwards;
1313
+ animation: ${ei} 500ms ease-in-out forwards;
1314
1314
  }
1315
1315
 
1316
1316
  &[data-is-collapsed='false'] {
1317
- animation: ${Yn} 500ms ease-in-out forwards;
1317
+ animation: ${Jn} 500ms ease-in-out forwards;
1318
1318
  }
1319
1319
  &[data-template='health-tool'] {
1320
1320
  height: 44px;
@@ -1325,7 +1325,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1325
1325
  flex: 0;
1326
1326
  }
1327
1327
  }
1328
- `,Jn=Le.span`
1328
+ `,ni=Le.span`
1329
1329
  position: absolute;
1330
1330
  left: 100%;
1331
1331
  transform: translate(-10px, calc(-50% + 3px));
@@ -1354,7 +1354,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1354
1354
  a {
1355
1355
  text-decoration: none;
1356
1356
  }
1357
- `;const ei=t=>{var{badgeAmount:a,disabled:n=!1,hasBadge:i=!1,icon:l,isActive:o=!1,isSpecial:r=!1,label:s}=t,c=J(t,["badgeAmount","disabled","hasBadge","icon","isActive","isSpecial","label"]);return e.createElement(Kn,Object.assign({"data-is-special":r,"data-is-active":o,"data-is-disabled":n},c),e.createElement("div",{className:"mobile-navigation-icon","data-no-label":!Boolean(s)},i&&e.createElement(Jn,{"data-no-label":!Boolean(s)},e.createElement(p,{size:"s5",weight:"semiBold",color:r?Q.colors.primaryBase:Q.colors.white},a)),l),s&&e.createElement("span",{className:"mobile-navigation-label"},s))},ti=t=>{var{children:a,isCollapsed:n=!1,template:i="homepage"}=t,l=J(t,["children","isCollapsed","template"]);return e.createElement(Qn,Object.assign({"data-is-collapsed":n,"data-template":i},l),a)};ti.Icon=ei;const ai=({SEOData:t={},locale:a="vi-VN",routerPathname:n,routerQuery:l,nextHead:o,siteType:r,seoCustom:s,userId:c,forcedCanonicalUrl:d})=>{var m,p,g,u,h,v,b,y,f,E,x,w;const{totalPages:k,currentPage:C,SEOTitle:N="",SEODescription:B="",SEOImage:z,seoType:$,SEOImageWidth:S,SEOImageHeight:P,customMetaData:D=[],isIndexable:L=!0,hasNoCanonical:I=!1}=t,M=L&&Fe?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:T}=process.env;let A=t.canonicalUrl||n;Object.keys(l).forEach((e=>{const t=l[e];t&&Array.isArray(t)&&(A=A.replace(`[...${e}]`,t.join("/")))}));const j=a||"en-PH",O="helloSites"===r?Ee[j]:"www.marrybaby.vn",_=A.endsWith("/")?"":"/",F=i((()=>{var n,i,l,o,r,s,c;let d="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const m=null===(n=t.apiMetaData)||void 0===n?void 0:n.match(/<title.*?>(.*)<\/title>/),p=` - Page ${C} of ${k}`,g=C&&1!==C&&m?t.apiMetaData.replace(m[0],m[0].includes("-")?m[0].replace("-",p+" - "):`<title>${m[1].concat(p)}</title>`).replace(`<link rel="canonical" href="https://${O}${A}${_}" />`,`<link rel="canonical" href="https://${O}${A}${_}?page=${C}" />`):t.apiMetaData;if(d=_e(g,{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 n=`https://${O}/images/${a}.png`;d=[...d,e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(i=t.openGraph)||void 0===i?void 0:i.image)||z||n||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||z||n}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)&&String(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)||S&&String(S)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)&&String(null===(c=t.openGraph)||void 0===c?void 0:c.imageHeight)||P&&String(P)||"630"})]}}return d}),[t.apiMetaData,t.openGraph,z,P,S,C,A,k,a,O]),H=`https://${O}/images/${a}.png`;return e.createElement(o,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===r?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}):"km-KH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"th-TH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,100..900&display=swap",rel:"stylesheet"}):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}),e.createElement("link",{rel:"preconnect",href:T}),e.createElement("meta",{charSet:"UTF-8"}),e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:M}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),D.map(((t,a)=>e.createElement("meta",Object.assign({key:a},t)))),e.createElement("meta",{name:"theme-color",content:"helloSites"===r?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:j}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!F&&e.createElement(e.Fragment,null,"helloSites"===r?e.createElement("title",null,s?N:N+" - "+(null===(m=xe[a])||void 0===m?void 0:m.SITE_NAME)):e.createElement("title",null,N),!I&&e.createElement("link",{rel:"canonical",href:`https://${O}${A}`}),e.createElement("meta",{name:"description",content:B||(null===(p=t.openGraph)||void 0===p?void 0:p.description)}),t.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),e.createElement("meta",{property:"og:locale",content:a}),e.createElement("meta",{property:"og:type",content:$||"website"}),e.createElement("meta",{property:"og:title",content:(null===(g=t.openGraph)||void 0===g?void 0:g.title)||N}),e.createElement("meta",{property:"og:description",content:(null===(u=t.openGraph)||void 0===u?void 0:u.description)||B}),e.createElement("meta",{property:"og:url",content:`https://${O}${A}`}),e.createElement("meta",{property:"og:site_name",content:`https://${O}`}),e.createElement("meta",{property:"og:image",content:(null===(h=t.openGraph)||void 0===h?void 0:h.image)||z||H||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(v=t.openGraph)||void 0===v?void 0:v.image)||z||H}),e.createElement("meta",{property:"og:image:width",content:(null===(b=t.openGraph)||void 0===b?void 0:b.imageWidth)&&String(null===(y=t.openGraph)||void 0===y?void 0:y.imageWidth)||S&&String(S)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=t.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(E=t.openGraph)||void 0===E?void 0:E.imageHeight)||P&&String(P)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(x=t.twitter)||void 0===x?void 0:x.title)||N}),e.createElement("meta",{name:"twitter:description",content:B}),e.createElement("meta",{name:"twitter:image",content:(null===(w=t.twitter)||void 0===w?void 0:w.image)||z})),("helloSites"===r?we[j]||[]:we.marryBaby).map(((t,a)=>"link"===t.type?e.createElement("link",{key:`favicon-${a}`,rel:t.rel,href:t.href,sizes:t.sizes}):"meta"===t.type?e.createElement("meta",{key:a,name:t.name,content:t.content}):null)),Array.isArray(F)&&d?F.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):F,d&&e.createElement("link",{rel:"canonical",href:d}),!t.hasNoAmp&&"vi-VN"!==a&&e.createElement("link",{rel:"amphtml",href:`https://${O}${A}${_}?amp=1`}),c&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${c}'});`}}):null)},ni="hhgcomp-toolbanner-wrapper",ii=I(Le.div`
1357
+ `;const ii=t=>{var{badgeAmount:a,disabled:n=!1,hasBadge:i=!1,icon:l,isActive:o=!1,isSpecial:r=!1,label:s}=t,c=J(t,["badgeAmount","disabled","hasBadge","icon","isActive","isSpecial","label"]);return e.createElement(ti,Object.assign({"data-is-special":r,"data-is-active":o,"data-is-disabled":n},c),e.createElement("div",{className:"mobile-navigation-icon","data-no-label":!Boolean(s)},i&&e.createElement(ni,{"data-no-label":!Boolean(s)},e.createElement(p,{size:"s5",weight:"semiBold",color:r?Q.colors.primaryBase:Q.colors.white},a)),l),s&&e.createElement("span",{className:"mobile-navigation-label"},s))},li=t=>{var{children:a,isCollapsed:n=!1,template:i="homepage"}=t,l=J(t,["children","isCollapsed","template"]);return e.createElement(ai,Object.assign({"data-is-collapsed":n,"data-template":i},l),a)};li.Icon=ii;const oi=({SEOData:t={},locale:a="vi-VN",routerPathname:n,routerQuery:l,nextHead:o,siteType:r,seoCustom:s,userId:c,forcedCanonicalUrl:d})=>{var m,p,g,u,h,v,b,y,f,E,x,w;const{totalPages:k,currentPage:C,SEOTitle:N="",SEODescription:B="",SEOImage:z,seoType:$,SEOImageWidth:S,SEOImageHeight:P,customMetaData:D=[],isIndexable:L=!0,hasNoCanonical:I=!1}=t,T=L&&Fe?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:M}=process.env;let A=t.canonicalUrl||n;Object.keys(l).forEach((e=>{const t=l[e];t&&Array.isArray(t)&&(A=A.replace(`[...${e}]`,t.join("/")))}));const j=a||"en-PH",O="helloSites"===r?Ee[j]:"www.marrybaby.vn",_=A.endsWith("/")?"":"/",F=i((()=>{var n,i,l,o,r,s,c;let d="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const m=null===(n=t.apiMetaData)||void 0===n?void 0:n.match(/<title.*?>(.*)<\/title>/),p=` - Page ${C} of ${k}`,g=C&&1!==C&&m?t.apiMetaData.replace(m[0],m[0].includes("-")?m[0].replace("-",p+" - "):`<title>${m[1].concat(p)}</title>`).replace(`<link rel="canonical" href="https://${O}${A}${_}" />`,`<link rel="canonical" href="https://${O}${A}${_}?page=${C}" />`):t.apiMetaData;if(d=_e(g,{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 n=`https://${O}/images/${a}.png`;d=[...d,e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(i=t.openGraph)||void 0===i?void 0:i.image)||z||n||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||z||n}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)&&String(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)||S&&String(S)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)&&String(null===(c=t.openGraph)||void 0===c?void 0:c.imageHeight)||P&&String(P)||"630"})]}}return d}),[t.apiMetaData,t.openGraph,z,P,S,C,A,k,a,O]),H=`https://${O}/images/${a}.png`;return e.createElement(o,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===r?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}):"km-KH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"th-TH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,100..900&display=swap",rel:"stylesheet"}):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}),e.createElement("link",{rel:"preconnect",href:M}),e.createElement("meta",{charSet:"UTF-8"}),e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:T}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),D.map(((t,a)=>e.createElement("meta",Object.assign({key:a},t)))),e.createElement("meta",{name:"theme-color",content:"helloSites"===r?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:j}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!F&&e.createElement(e.Fragment,null,"helloSites"===r?e.createElement("title",null,s?N:N+" - "+(null===(m=xe[a])||void 0===m?void 0:m.SITE_NAME)):e.createElement("title",null,N),!I&&e.createElement("link",{rel:"canonical",href:`https://${O}${A}`}),e.createElement("meta",{name:"description",content:B||(null===(p=t.openGraph)||void 0===p?void 0:p.description)}),t.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),e.createElement("meta",{property:"og:locale",content:a}),e.createElement("meta",{property:"og:type",content:$||"website"}),e.createElement("meta",{property:"og:title",content:(null===(g=t.openGraph)||void 0===g?void 0:g.title)||N}),e.createElement("meta",{property:"og:description",content:(null===(u=t.openGraph)||void 0===u?void 0:u.description)||B}),e.createElement("meta",{property:"og:url",content:`https://${O}${A}`}),e.createElement("meta",{property:"og:site_name",content:`https://${O}`}),e.createElement("meta",{property:"og:image",content:(null===(h=t.openGraph)||void 0===h?void 0:h.image)||z||H||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(v=t.openGraph)||void 0===v?void 0:v.image)||z||H}),e.createElement("meta",{property:"og:image:width",content:(null===(b=t.openGraph)||void 0===b?void 0:b.imageWidth)&&String(null===(y=t.openGraph)||void 0===y?void 0:y.imageWidth)||S&&String(S)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=t.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(E=t.openGraph)||void 0===E?void 0:E.imageHeight)||P&&String(P)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(x=t.twitter)||void 0===x?void 0:x.title)||N}),e.createElement("meta",{name:"twitter:description",content:B}),e.createElement("meta",{name:"twitter:image",content:(null===(w=t.twitter)||void 0===w?void 0:w.image)||z})),("helloSites"===r?we[j]||[]:we.marryBaby).map(((t,a)=>"link"===t.type?e.createElement("link",{key:`favicon-${a}`,rel:t.rel,href:t.href,sizes:t.sizes}):"meta"===t.type?e.createElement("meta",{key:a,name:t.name,content:t.content}):null)),Array.isArray(F)&&d?F.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):F,d&&e.createElement("link",{rel:"canonical",href:d}),!t.hasNoAmp&&"vi-VN"!==a&&e.createElement("link",{rel:"amphtml",href:`https://${O}${A}${_}?amp=1`}),c&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${c}'});`}}):null)},ri="hhgcomp-toolbanner-wrapper",si=I(Le.div`
1358
1358
  position: relative;
1359
1359
  width: 100%;
1360
1360
  height: 100%;
@@ -1370,7 +1370,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1370
1370
  border-top-right-radius: 16px;
1371
1371
  }
1372
1372
  }
1373
- `,ni),li=Le.div`
1373
+ `,ri),ci=Le.div`
1374
1374
  width: 100%;
1375
1375
  ${A.mbDown} {
1376
1376
  padding-bottom: 24px;
@@ -1392,7 +1392,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1392
1392
 
1393
1393
  ${A.tdDown} {
1394
1394
  height: auto;
1395
- .${ni} {
1395
+ .${ri} {
1396
1396
  .${"hhgcomp-toolbanner-inner"} {
1397
1397
  display: flex;
1398
1398
  align-items: center;
@@ -1416,7 +1416,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1416
1416
  }
1417
1417
  }
1418
1418
  }
1419
- `,oi=Le.div`
1419
+ `,di=Le.div`
1420
1420
  display: flex;
1421
1421
  flex-direction: row;
1422
1422
  align-items: center;
@@ -1427,7 +1427,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1427
1427
  ${A.mbDown} {
1428
1428
  padding: 16px 0;
1429
1429
  }
1430
- `,ri=Le.div`
1430
+ `,mi=Le.div`
1431
1431
  background: #ffffff;
1432
1432
  border-radius: 16px;
1433
1433
  width: 48px;
@@ -1442,14 +1442,14 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1442
1442
  max-height: 24px;
1443
1443
  transform: translate(-50%, -50%);
1444
1444
  }
1445
- `,si=Le.div`
1445
+ `,pi=Le.div`
1446
1446
  display: flex;
1447
1447
  align-items: flex-start;
1448
1448
  flex-direction: column;
1449
1449
  justify-content: space-between;
1450
1450
  gap: 0;
1451
1451
  width: 100%;
1452
- `,ci=Le.div`
1452
+ `,gi=Le.div`
1453
1453
  display: flex;
1454
1454
  align-items: flex-start;
1455
1455
  font-weight: 400;
@@ -1474,7 +1474,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1474
1474
  height: 14px;
1475
1475
  }
1476
1476
  }
1477
- `,di=({className:t,heading:a,color:n="blue",isMobile:i,bannerUrl:l,bannerUrlLarge:o,bannerColor:r,medicalReview:s={link:"#",reviewer:"",date:""},icon:c,style:d,siteType:m,isEmbeded:g})=>{var u,h;const{t:v}=He(),b=de(),y=i?l:o||l,f={pink:[8,6]},E=b.colors[n]||b.colors.blue,x=(null==s?void 0:s.reviewer)?e.createElement(p,{size:"label2",color:"#fff",as:"div",className:"embedded-review",sx:{a:{textUnderlineOffset:"2px",color:"#fff",textDecoration:"underline"}}},e.createElement("div",{dangerouslySetInnerHTML:{__html:v("toolPage.toolReviewer",{expert_name:`<a href="${s.link}">${s.reviewer.trim()}</a>`,date:s.date})}})):null;return e.createElement(li,{"data-is-mobile":i,style:d,"data-site":m},e.createElement(ii,{className:t,"data-banner-url":y,"data-is-mobile":i,"data-site":m,"data-banner-color":r,"data-is-embedded":g,bgColor:`linear-gradient(71deg, ${null==E?void 0:E[(null===(u=f[n])||void 0===u?void 0:u[0])||7]} -4.07%, ${null==E?void 0:E[(null===(h=f[n])||void 0===h?void 0:h[1])||4]} 90.13%)}`},"marryBaby"===m&&g?e.createElement(oi,null,e.createElement(ri,null,c),e.createElement(si,null,e.createElement(K,{color:"white",tag:"h5",as:"h2"},a),s&&e.createElement(ci,{"data-is-mobile":i},x))):e.createElement(ne,{gap:ie(24),align:"center",justify:"space-between",sx:{padding:`${ie(13)} ${ie(20)}`,gap:ie(24)}},e.createElement(te,null,e.createElement(K,{tag:"h5",as:"h2",color:"#fff"},a),s&&e.createElement(p,{size:"n1",as:"div"},x)),e.createElement(ne,{justify:"center",align:"center",sx:e=>{var t,a;return{width:ie(64),height:ie(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:ie(48),maxHeight:ie(48)},[e.fn.smallerThan("sm")]:{width:ie(56),height:ie(56),img:{maxWidth:ie(40),maxHeight:ie(40)}}}}},c))))},mi=Le(bt)`
1477
+ `,ui=({className:t,heading:a,color:n="blue",isMobile:i,bannerUrl:l,bannerUrlLarge:o,bannerColor:r,medicalReview:s={link:"#",reviewer:"",date:""},icon:c,style:d,siteType:m,isEmbeded:g})=>{var u,h;const{t:v}=He(),b=de(),y=i?l:o||l,f={pink:[8,6]},E=b.colors[n]||b.colors.blue,x=(null==s?void 0:s.reviewer)?e.createElement(p,{size:"label2",color:"#fff",as:"div",className:"embedded-review",sx:{a:{textUnderlineOffset:"2px",color:"#fff",textDecoration:"underline"}}},e.createElement("div",{dangerouslySetInnerHTML:{__html:v("toolPage.toolReviewer",{expert_name:`<a href="${s.link}">${s.reviewer.trim()}</a>`,date:s.date})}})):null;return e.createElement(ci,{"data-is-mobile":i,style:d,"data-site":m},e.createElement(si,{className:t,"data-banner-url":y,"data-is-mobile":i,"data-site":m,"data-banner-color":r,"data-is-embedded":g,bgColor:`linear-gradient(71deg, ${null==E?void 0:E[(null===(u=f[n])||void 0===u?void 0:u[0])||7]} -4.07%, ${null==E?void 0:E[(null===(h=f[n])||void 0===h?void 0:h[1])||4]} 90.13%)}`},"marryBaby"===m&&g?e.createElement(di,null,e.createElement(mi,null,c),e.createElement(pi,null,e.createElement(K,{color:"white",tag:"h5",as:"h2"},a),s&&e.createElement(gi,{"data-is-mobile":i},x))):e.createElement(ne,{gap:ie(24),align:"center",justify:"space-between",sx:{padding:`${ie(13)} ${ie(20)}`,gap:ie(24)}},e.createElement(te,null,e.createElement(K,{tag:"h5",as:"h2",color:"#fff"},a),s&&e.createElement(p,{size:"n1",as:"div"},x)),e.createElement(ne,{justify:"center",align:"center",sx:e=>{var t,a;return{width:ie(64),height:ie(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:ie(48),maxHeight:ie(48)},[e.fn.smallerThan("sm")]:{width:ie(56),height:ie(56),img:{maxWidth:ie(40),maxHeight:ie(40)}}}}},c))))},hi=Le(bt)`
1478
1478
  border-color: ${Q.mbColors.lightGray};
1479
1479
  background-color: ${Q.colors.white};
1480
1480
  border-radius: 16px;
@@ -1485,12 +1485,12 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1485
1485
  }
1486
1486
 
1487
1487
  & > ul {
1488
- z-index: ${nt.menuSearchPopup};
1488
+ z-index: ${it.menuSearchPopup};
1489
1489
  max-height: 300px;
1490
1490
  overflow-y: auto;
1491
1491
  }
1492
1492
 
1493
- ${e=>e.groupedWithLabel&&Me`
1493
+ ${e=>e.groupedWithLabel&&Te`
1494
1494
  & > div:first-child {
1495
1495
  color: ${Q.mbColors.midGray};
1496
1496
  font-size: 12px;
@@ -1500,7 +1500,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1500
1500
  &[data-dropdown-open='true'] {
1501
1501
  border-color: ${Q.mbColors.pink};
1502
1502
  }
1503
- `;Le(M)`
1503
+ `;Le(T)`
1504
1504
  & input {
1505
1505
  border-color: ${Q.mbColors.lightGray};
1506
1506
  background-color: ${Q.colors.white};
@@ -1516,7 +1516,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1516
1516
  & .displayIcon {
1517
1517
  pointer-events: none;
1518
1518
  }
1519
- `;const pi=Le(Oe)`
1519
+ `;const vi=Le(Oe)`
1520
1520
  & label {
1521
1521
  position: absolute;
1522
1522
  z-index: 1;
@@ -1593,9 +1593,9 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1593
1593
  padding-right: 46px;
1594
1594
  }
1595
1595
  }
1596
- `,gi=Le.div`
1596
+ `,bi=Le.div`
1597
1597
  width: 100%;
1598
- `,ui=Le.div`
1598
+ `,yi=Le.div`
1599
1599
  #due-date-dropdown {
1600
1600
  z-index: 9;
1601
1601
  width: 100%;
@@ -1621,7 +1621,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1621
1621
  display: flex;
1622
1622
  width: 100%;
1623
1623
  justify-content: space-between;
1624
- `,hi=Le(gi)`
1624
+ `,fi=Le(bi)`
1625
1625
  .due-date-input {
1626
1626
  width: 100%;
1627
1627
  min-width: unset;
@@ -1660,14 +1660,14 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1660
1660
  line-height: 16px;
1661
1661
  text-align: right;
1662
1662
  }
1663
- `;var vi;Le(Le.img`
1663
+ `;var Ei;Le(Le.img`
1664
1664
  img& {
1665
1665
  width: 16px;
1666
1666
  height: 16px;
1667
1667
  }
1668
1668
  `)`
1669
1669
  margin-right: 4px;
1670
- `,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(vi||(vi={}));const bi="yyyy-MM-dd",yi=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,fi=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:o}=He(),[r,s]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(hi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(pi,{label:o("dueDatePage.conceptionDate"),name:"date",size:"md",value:yi(r),CustomInput:e.createElement(ut,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:r,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Oe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:r&&et(r).format(it)}))}),actionIcon:e.createElement(tt.CalendarMB,{size:32})}):e.createElement(Oe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.conceptionDate")),value:yi(r),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:yi(r)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:r,displayDateFormat:gt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement(W,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,onClick:()=>{n((e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:vi.conception+1,conception_date:Re(e,bi),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}})(r),`${ke.type}=1&sd=${Re(r,bi)}&${ke.additional}= `)},role:"button"},o("dueDatePage.lastPeriod.calculate")))},Ei=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:o}=He(),[r,s]=t(new Date),[c,d]=t("3");return e.createElement(e.Fragment,null,e.createElement(hi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(pi,{label:o("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:yi(r),CustomInput:e.createElement(ut,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:r,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Oe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:r&&et(r).format(it)}))}),actionIcon:e.createElement(tt.CalendarMB,{size:32})}):e.createElement(Oe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray700,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.ivf.transferDate")),value:yi(r),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:yi(r)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:r,displayDateFormat:gt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement("div",{style:{width:"100%"}},e.createElement(Xa,{id:"radio-transfer-date",direction:"vertical",size:"small",value:c,onChange:e=>d(e),options:[{value:"3",label:o("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:o("dueDatePage.ivf.transferDateRadio",{number:5})}]})),e.createElement(W,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,onClick:()=>{n(((e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:vi.IVF+1,ivf_transfer_date:Re(e,bi),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}})(r,Number(c)),`${ke.type}=2&${ke.startDate}=${Re(r,bi)}&${ke.additional}=${c}`)},role:"button"},o("dueDatePage.lastPeriod.calculate")))},xi=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:o}=He(),[r,s]=t(28),[c,d]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(hi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(pi,{label:o("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:yi(c),CustomInput:e.createElement(ut,{onChange:e=>{d(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Oe,Object.assign({name:"birthday",size:"md"},t,{value:c&&et(c).format(it)}))}),actionIcon:e.createElement(tt.CalendarMB,{size:32})}):e.createElement(Oe,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.lastPeriod.lastPeriodLabel")),value:yi(c),name:"date",size:"md",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:yi(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:gt,onChange:e=>{d(e)},placeholder:"placeholder"})})),e.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===i?"marryBaby":""},"marryBaby"===i?e.createElement(vt,{type:"bodytext-3",color:Q.mbColors.midGray},o("dueDatePage.lastPeriod.periodLengthLabel")):e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"0.5rem"}},o("dueDatePage.lastPeriod.periodLengthLabel")),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===i&&e.createElement(p,{size:"s3",weight:"semiBold",color:Q.colors.gray600},r),e.createElement(ht,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==i,withControl:"marryBaby"!==i,onChange:s,value:r,label:"marryBaby"!==i?void 0:null}))),e.createElement(W,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",onClick:()=>n(((e,t)=>{const a=t-21+272,n=new Date(e);return n.setDate(n.getDate()+a),{startDate:e,dueDate:n,otherInfo:{method:vi.lastPeriod+1,first_day:Re(e,bi),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}})(c,r),`${ke.type}=0&${ke.startDate}=${Re(c,bi)}&${ke.additional}=${r}`),role:"button"},o("dueDatePage.lastPeriod.calculate")))},wi=Le.div`
1670
+ `,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(Ei||(Ei={}));const xi="yyyy-MM-dd",wi=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,ki=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:o}=He(),[r,s]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(fi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(vi,{label:o("dueDatePage.conceptionDate"),name:"date",size:"md",value:wi(r),CustomInput:e.createElement(ut,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:r,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Oe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:r&&at(r).format(lt)}))}),actionIcon:e.createElement(Re,{size:32})}):e.createElement(Oe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.conceptionDate")),value:wi(r),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:wi(r)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:r,displayDateFormat:nt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement(W,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,onClick:()=>{n((e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:Ei.conception+1,conception_date:Ue(e,xi),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}})(r),`${ke.type}=1&sd=${Ue(r,xi)}&${ke.additional}= `)},role:"button"},o("dueDatePage.lastPeriod.calculate")))},Ci=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:o}=He(),[r,s]=t(new Date),[c,d]=t("3");return e.createElement(e.Fragment,null,e.createElement(fi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(vi,{label:o("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:wi(r),CustomInput:e.createElement(ut,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:r,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Oe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:r&&at(r).format(lt)}))}),actionIcon:e.createElement(Re,{size:32})}):e.createElement(Oe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray700,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.ivf.transferDate")),value:wi(r),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:wi(r)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:r,displayDateFormat:nt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement("div",{style:{width:"100%"}},e.createElement(en,{id:"radio-transfer-date",direction:"vertical",size:"small",value:c,onChange:e=>d(e),options:[{value:"3",label:o("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:o("dueDatePage.ivf.transferDateRadio",{number:5})}]})),e.createElement(W,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,onClick:()=>{n(((e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:Ei.IVF+1,ivf_transfer_date:Ue(e,xi),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}})(r,Number(c)),`${ke.type}=2&${ke.startDate}=${Ue(r,xi)}&${ke.additional}=${c}`)},role:"button"},o("dueDatePage.lastPeriod.calculate")))},Ni=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:o}=He(),[r,s]=t(28),[c,d]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(fi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(vi,{label:o("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:wi(c),CustomInput:e.createElement(ut,{onChange:e=>{d(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Oe,Object.assign({name:"birthday",size:"md"},t,{value:c&&at(c).format(lt)}))}),actionIcon:e.createElement(Re,{size:32})}):e.createElement(Oe,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.lastPeriod.lastPeriodLabel")),value:wi(c),name:"date",size:"md",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:wi(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:nt,onChange:e=>{d(e)},placeholder:"placeholder"})})),e.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===i?"marryBaby":""},"marryBaby"===i?e.createElement(ht,{type:"bodytext-3",color:Q.mbColors.midGray},o("dueDatePage.lastPeriod.periodLengthLabel")):e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"0.5rem"}},o("dueDatePage.lastPeriod.periodLengthLabel")),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===i&&e.createElement(p,{size:"s3",weight:"semiBold",color:Q.colors.gray600},r),e.createElement(vt,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==i,withControl:"marryBaby"!==i,onChange:s,value:r,label:"marryBaby"!==i?void 0:null}))),e.createElement(W,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",onClick:()=>n(((e,t)=>{const a=t-21+272,n=new Date(e);return n.setDate(n.getDate()+a),{startDate:e,dueDate:n,otherInfo:{method:Ei.lastPeriod+1,first_day:Ue(e,xi),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}})(c,r),`${ke.type}=0&${ke.startDate}=${Ue(c,xi)}&${ke.additional}=${r}`),role:"button"},o("dueDatePage.lastPeriod.calculate")))},Bi=Le.div`
1671
1671
  &[data-is-side='true'] {
1672
1672
  width: 100%;
1673
1673
  margin-bottom: 0;
@@ -1697,7 +1697,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1697
1697
  }
1698
1698
  }
1699
1699
  }
1700
- `,ki=Le.div`
1700
+ `,zi=Le.div`
1701
1701
  margin-bottom: 20px;
1702
1702
  width: 100%;
1703
1703
 
@@ -1709,7 +1709,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1709
1709
  width: calc(50% - 8px);
1710
1710
  }
1711
1711
  }
1712
- `,Ci=Le.div`
1712
+ `,$i=Le.div`
1713
1713
  width: 100%;
1714
1714
  display: flex;
1715
1715
  justify-content: center;
@@ -1737,7 +1737,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1737
1737
  max-width: 200px;
1738
1738
  }
1739
1739
  }
1740
- `,Ni=Le.div`
1740
+ `,Si=Le.div`
1741
1741
  width: 100%;
1742
1742
  display: flex;
1743
1743
  flex-wrap: wrap;
@@ -1753,7 +1753,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1753
1753
  width: 100%;
1754
1754
  }
1755
1755
  }
1756
- `,Bi=Le.div`
1756
+ `,Pi=Le.div`
1757
1757
  position: relative;
1758
1758
  width: calc(50% - 8px);
1759
1759
 
@@ -1780,7 +1780,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1780
1780
  overflow-y: scroll;
1781
1781
  }
1782
1782
  }
1783
- `,zi=Le.div`
1783
+ `,Di=Le.div`
1784
1784
  margin-bottom: 24px;
1785
1785
  width: 100%;
1786
1786
 
@@ -1830,7 +1830,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1830
1830
  padding-top: 8px;
1831
1831
  padding-bottom: 16px;
1832
1832
  }
1833
- `,$i=({onSubmitDueDate:a,locale:n,isSide:l,siteType:o})=>{const{t:r}=He(),[s,c]=t(vi.lastPeriod),d=[{value:vi.lastPeriod,label:r("dueDatePage.lastPeriod")},{value:vi.conception,label:r("dueDatePage.conceptionDate")},{value:vi.IVF,label:r("dueDatePage.ivf")}],m=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Ni,null,e.createElement(gi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===o?e.createElement(mi,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:d,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:d[s],onChange:e=>{c(e.value)}}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.calculationMethod")),e.createElement(ui,{"data-is-side":l},e.createElement(bt,{options:d,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:d[s],onChange:e=>{c(e.value)}})))),s===vi.lastPeriod?e.createElement(xi,{locale:n,onClick:a,isSide:l,siteType:o,pageUrl:m}):null,s===vi.conception?e.createElement(fi,{locale:n,onClick:a,isSide:l,siteType:o,pageUrl:m}):null,s===vi.IVF?e.createElement(Ei,{locale:n,onClick:a,isSide:l,siteType:o,pageUrl:m}):null)},Si="hhgcomp-embedtoolcard-content",Pi=I(Le.form`
1833
+ `,Li=({onSubmitDueDate:a,locale:n,isSide:l,siteType:o})=>{const{t:r}=He(),[s,c]=t(Ei.lastPeriod),d=[{value:Ei.lastPeriod,label:r("dueDatePage.lastPeriod")},{value:Ei.conception,label:r("dueDatePage.conceptionDate")},{value:Ei.IVF,label:r("dueDatePage.ivf")}],m=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Si,null,e.createElement(bi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===o?e.createElement(hi,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:d,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:d[s],onChange:e=>{c(e.value)}}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.calculationMethod")),e.createElement(yi,{"data-is-side":l},e.createElement(bt,{options:d,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:d[s],onChange:e=>{c(e.value)}})))),s===Ei.lastPeriod?e.createElement(Ni,{locale:n,onClick:a,isSide:l,siteType:o,pageUrl:m}):null,s===Ei.conception?e.createElement(ki,{locale:n,onClick:a,isSide:l,siteType:o,pageUrl:m}):null,s===Ei.IVF?e.createElement(Ci,{locale:n,onClick:a,isSide:l,siteType:o,pageUrl:m}):null)},Ii="hhgcomp-embedtoolcard-content",Ti=I(Le.form`
1834
1834
  margin: auto;
1835
1835
  ${A.mbUp} {
1836
1836
  width: 100%;
@@ -1917,7 +1917,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1917
1917
  }
1918
1918
  }
1919
1919
  }
1920
- `,Si),Di=Le.div`
1920
+ `,Ii),Mi=Le.div`
1921
1921
  padding: 0;
1922
1922
  background-color: white;
1923
1923
  border: 1px solid #e4e8ec;
@@ -1928,7 +1928,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
1928
1928
  border-radius: 16px;
1929
1929
  }
1930
1930
  .due-date-cal {
1931
- .${Si} {
1931
+ .${Ii} {
1932
1932
  ${A.mbUp} {
1933
1933
  padding: 24px;
1934
1934
  }
@@ -2069,20 +2069,20 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2069
2069
  background-size: contain;
2070
2070
  content: '';
2071
2071
  }
2072
- `,Li=Le(Xa)`
2072
+ `,Ai=Le(en)`
2073
2073
  &[data-direction='horizontal'] div[data-type='circle'] {
2074
2074
  margin-right: 8px;
2075
2075
  }
2076
2076
  label {
2077
2077
  font-size: 14px;
2078
2078
  }
2079
- `,Ii=({isMobile:t,locale:a,onSubmitDueDate:n,dueDatePageInfo:i,expertUrl:l,isSide:o,siteType:r})=>{var s;const{t:c}=He();return e.createElement(Di,{"data-is-side":o,"data-site":r},e.createElement(di,{isSide:o,siteType:r,bannerColor:"marryBaby"===r&&Q.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==i?void 0:i.featured_image)||X.getAssetPath("health-tools/due-date-icon.svg"),loading:"lazy"}),heading:c("healthTools.dueDateCalculator"),medicalReview:{link:l,reviewer:null===(s=null==i?void 0:i.reviewed_by)||void 0===s?void 0:s.display_name,date:null==i?void 0:i.reviewed_date},isMobile:t}),e.createElement(Pi,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":o},e.createElement($i,{siteType:r,locale:a,onSubmitDueDate:n,isSide:o})))},Mi=Le(W)`
2079
+ `,ji=({isMobile:t,locale:a,onSubmitDueDate:n,dueDatePageInfo:i,expertUrl:l,isSide:o,siteType:r})=>{var s;const{t:c}=He();return e.createElement(Mi,{"data-is-side":o,"data-site":r},e.createElement(ui,{isSide:o,siteType:r,bannerColor:"marryBaby"===r&&Q.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==i?void 0:i.featured_image)||X.getAssetPath("health-tools/due-date-icon.svg"),loading:"lazy"}),heading:c("healthTools.dueDateCalculator"),medicalReview:{link:l,reviewer:null===(s=null==i?void 0:i.reviewed_by)||void 0===s?void 0:s.display_name,date:null==i?void 0:i.reviewed_date},isMobile:t}),e.createElement(Ti,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":o},e.createElement(Li,{siteType:r,locale:a,onSubmitDueDate:n,isSide:o})))},Oi=Le(W)`
2080
2080
  margin: 0 auto 24px;
2081
2081
  ${A.mbUp} {
2082
2082
  max-width: 200px;
2083
2083
  margin: 24px auto;
2084
2084
  }
2085
- `,Ti=Le(M)`
2085
+ `,_i=Le(T)`
2086
2086
  &.bmi--input {
2087
2087
  + .bmi--input {
2088
2088
  margin-top: 24px;
@@ -2142,9 +2142,9 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2142
2142
  }
2143
2143
  }
2144
2144
  }
2145
- `,Ai=Le.div`
2145
+ `,Fi=Le.div`
2146
2146
  width: 100%;
2147
- `,ji=Le.div`
2147
+ `,Hi=Le.div`
2148
2148
  margin-bottom: 1rem;
2149
2149
  display: flex;
2150
2150
  flex-direction: column;
@@ -2165,7 +2165,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2165
2165
  font-size: 12px;
2166
2166
  }
2167
2167
  }
2168
- `,Oi=Le.div`
2168
+ `,Ri=Le.div`
2169
2169
  ${A.mbUp} {
2170
2170
  display: flex;
2171
2171
  width: 100%;
@@ -2188,18 +2188,18 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2188
2188
  flex-direction: column;
2189
2189
  gap: 0px;
2190
2190
  }
2191
- `;function _i({weight:e,height:t}){const a=t/100,n=e;return Math.round(n/(a*a)*10)/10}const Fi=({value:n,onChange:l,onSubmit:o,disabled:r,bmiGenerated:s,bmiUnit:c,locale:d,isSide:m})=>{var g,u,h,v;const[b,y]=t(!1),{control:f,handleSubmit:E,setValue:x,watch:w}=ft(),k=w(),{t:C}=He(),{gender:N=!1,age:B=!1,height:z=!1,weight:$=!1,objective:S=!0}=r||{},{getHealthToolLink:P}=xt(d),D=i((()=>P(lt.OVULATION)),[P]),L=i((()=>[{value:"lose-weight",label:C("bmi.objective.loseWeight")},{value:"maintain-weight",label:C("bmi.objective.maintainWeight")},{value:"gain-weight",label:C("bmi.objective.gainWeight")}]),[]),I=()=>{y(!0)};return a((()=>{Object.keys(n||{}).forEach((e=>{x(e,null==n?void 0:n[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[n]),a((()=>{l&&l(k)}),[k]),e.createElement(Ai,null,e.createElement("form",{onSubmit:E((e=>ee(void 0,void 0,void 0,(function*(){const t=c.heightConvert(e.height),a=c.weightConvert(e.weight),n={gender:e.gender,age:e.age,height:t,weight:a,bmi:_i({height:t,weight:a})};S||(n.objective=e.objective),I(),o&&o(n)}))),I)},!N&&e.createElement(ji,{"data-is-side":m},e.createElement(Et,{name:"gender",control:f,defaultValue:"male",render:({field:{onChange:t}})=>e.createElement(ua,{defaultValue:"male",onChange:e=>t(e),styles:e=>({root:!m&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:ie(12)}}})})})),e.createElement(Oi,{"data-is-side":m},!B&&e.createElement(ji,null,e.createElement(Et,{name:"age",control:f,rules:null===(g=s.age)||void 0===g?void 0:g.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},C("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},C("bmi.ageInput.desc"))),placeholder:C("healthtool.placeholder.age"),name:t,value:a,onChange:n,error:b?null==i?void 0:i.message:"",min:0})})),!z&&e.createElement(ji,null,e.createElement(Et,{name:"height",control:f,rules:null===(u=s.height)||void 0===u?void 0:u.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},C("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},C("bmi.heightInput.desc"))),placeholder:C("pwg.placeholder.height"),name:t,value:a,onChange:n,error:b?null==i?void 0:i.message:"",min:0})})),!$&&e.createElement(ji,null,e.createElement(Et,{name:"weight",control:f,rules:null===(h=s.weight)||void 0===h?void 0:h.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},C("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},C("bmi.weightInput.desc"))),placeholder:C("pwg.placeholder.weight"),name:t,value:a,onChange:n,error:b?null==i?void 0:i.message:"",precision:1,min:0})})),!S&&e.createElement(ji,null,e.createElement(Et,{name:"objective",control:f,defaultValue:"lose-weight",rules:null===(v=s.objective)||void 0===v?void 0:v.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(Ti,{size:"md",name:t,label:s.objective.label,CustomInput:e.createElement(Xa,{id:"bmi-objective",className:"bmi-objective",direction:"vertical",size:"small",options:L,value:a,onChange:n}),errorMessage:b?null==i?void 0:i.message:"",className:"bmi--input bmi--input-objective"})}))),e.createElement("div",{style:{display:"flex"}},e.createElement(Mi,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${Ee[d]}/${D}`,type:"submit"},C("bmi.submit")))))},Hi=({isMobile:t,onSubmit:a,bmiContent:n,isSide:i,bmiGenerated:l,bmiUnit:o,bmiLink:r,locale:s})=>{var c,d,m;const{t:p}=He();return e.createElement(Di,{"data-is-side":i},e.createElement(di,{isSide:i,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||X.getAssetPath("health-tools/bmi.svg"),loading:"lazy"}),heading:p("bmi.heading"),medicalReview:{link:null===(c=null==n?void 0:n.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(d=null==n?void 0:n.reviewBy)||void 0===d?void 0:d.reviewer,date:null===(m=null==n?void 0:n.reviewBy)||void 0===m?void 0:m.date},isMobile:t}),e.createElement(yt,null,e.createElement(Pi,{as:"div","data-is-side":i},r&&e.createElement(Fi,{onSubmit:a,bmiGenerated:l,locale:s,bmiUnit:o,isSide:i}))))},Ri=Le.div`
2191
+ `;function Wi({weight:e,height:t}){const a=t/100,n=e;return Math.round(n/(a*a)*10)/10}const Ui=({value:n,onChange:l,onSubmit:o,disabled:r,bmiGenerated:s,bmiUnit:c,locale:d,isSide:m})=>{var g,u,h,v;const[b,y]=t(!1),{control:f,handleSubmit:E,setValue:x,watch:w}=ft(),k=w(),{t:C}=He(),{gender:N=!1,age:B=!1,height:z=!1,weight:$=!1,objective:S=!0}=r||{},{getHealthToolLink:P}=xt(d),D=i((()=>P(ot.OVULATION)),[P]),L=i((()=>[{value:"lose-weight",label:C("bmi.objective.loseWeight")},{value:"maintain-weight",label:C("bmi.objective.maintainWeight")},{value:"gain-weight",label:C("bmi.objective.gainWeight")}]),[]),I=()=>{y(!0)};return a((()=>{Object.keys(n||{}).forEach((e=>{x(e,null==n?void 0:n[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[n]),a((()=>{l&&l(k)}),[k]),e.createElement(Fi,null,e.createElement("form",{onSubmit:E((e=>ee(void 0,void 0,void 0,(function*(){const t=c.heightConvert(e.height),a=c.weightConvert(e.weight),n={gender:e.gender,age:e.age,height:t,weight:a,bmi:Wi({height:t,weight:a})};S||(n.objective=e.objective),I(),o&&o(n)}))),I)},!N&&e.createElement(Hi,{"data-is-side":m},e.createElement(Et,{name:"gender",control:f,defaultValue:"male",render:({field:{onChange:t}})=>e.createElement(ya,{defaultValue:"male",onChange:e=>t(e),styles:e=>({root:!m&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:ie(12)}}})})})),e.createElement(Ri,{"data-is-side":m},!B&&e.createElement(Hi,null,e.createElement(Et,{name:"age",control:f,rules:null===(g=s.age)||void 0===g?void 0:g.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},C("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},C("bmi.ageInput.desc"))),placeholder:C("healthtool.placeholder.age"),name:t,value:a,onChange:n,error:b?null==i?void 0:i.message:"",min:0})})),!z&&e.createElement(Hi,null,e.createElement(Et,{name:"height",control:f,rules:null===(u=s.height)||void 0===u?void 0:u.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},C("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},C("bmi.heightInput.desc"))),placeholder:C("pwg.placeholder.height"),name:t,value:a,onChange:n,error:b?null==i?void 0:i.message:"",min:0})})),!$&&e.createElement(Hi,null,e.createElement(Et,{name:"weight",control:f,rules:null===(h=s.weight)||void 0===h?void 0:h.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},C("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},C("bmi.weightInput.desc"))),placeholder:C("pwg.placeholder.weight"),name:t,value:a,onChange:n,error:b?null==i?void 0:i.message:"",precision:1,min:0})})),!S&&e.createElement(Hi,null,e.createElement(Et,{name:"objective",control:f,defaultValue:"lose-weight",rules:null===(v=s.objective)||void 0===v?void 0:v.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(_i,{size:"md",name:t,label:s.objective.label,CustomInput:e.createElement(en,{id:"bmi-objective",className:"bmi-objective",direction:"vertical",size:"small",options:L,value:a,onChange:n}),errorMessage:b?null==i?void 0:i.message:"",className:"bmi--input bmi--input-objective"})}))),e.createElement("div",{style:{display:"flex"}},e.createElement(Oi,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${Ee[d]}/${D}`,type:"submit"},C("bmi.submit")))))},Vi=({isMobile:t,onSubmit:a,bmiContent:n,isSide:i,bmiGenerated:l,bmiUnit:o,bmiLink:r,locale:s})=>{var c,d,m;const{t:p}=He();return e.createElement(Mi,{"data-is-side":i},e.createElement(ui,{isSide:i,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||X.getAssetPath("health-tools/bmi.svg"),loading:"lazy"}),heading:p("bmi.heading"),medicalReview:{link:null===(c=null==n?void 0:n.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(d=null==n?void 0:n.reviewBy)||void 0===d?void 0:d.reviewer,date:null===(m=null==n?void 0:n.reviewBy)||void 0===m?void 0:m.date},isMobile:t}),e.createElement(yt,null,e.createElement(Ti,{as:"div","data-is-side":i},r&&e.createElement(Ui,{onSubmit:a,bmiGenerated:l,locale:s,bmiUnit:o,isSide:i}))))},Gi=Le.div`
2192
2192
  padding-block: 40px;
2193
2193
 
2194
2194
  &[data-theme='marryBaby'] {
2195
2195
  padding-block: 0;
2196
2196
  padding-top: 12px;
2197
2197
  }
2198
- `,Wi=Le.form`
2198
+ `,Zi=Le.form`
2199
2199
  display: flex;
2200
2200
  flex-direction: column;
2201
2201
  gap: 16px;
2202
- `,Ui=Le.div`
2202
+ `,qi=Le.div`
2203
2203
  display: flex;
2204
2204
  flex-direction: column;
2205
2205
  gap: 6px;
@@ -2208,11 +2208,11 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2208
2208
  .error-input input {
2209
2209
  border: 1px solid ${Q.colors.red700};
2210
2210
  }
2211
- `,Vi=Le(at)`
2211
+ `,Yi=Le(Nt)`
2212
2212
  display: inline-flex;
2213
2213
  padding-bottom: 6px;
2214
2214
  gap: 4px;
2215
- `,Gi=Le.div`
2215
+ `,Xi=Le.div`
2216
2216
  display: flex;
2217
2217
  width: 100%;
2218
2218
  align-items: center;
@@ -2221,7 +2221,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2221
2221
  > div {
2222
2222
  width: 100%;
2223
2223
  }
2224
- `,Zi=(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},qi=Le.div`
2224
+ `,Ki=(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},Qi=Le.div`
2225
2225
  padding: 36px;
2226
2226
  padding-top: 0;
2227
2227
  background-color: white;
@@ -2238,9 +2238,9 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2238
2238
  padding: 16px;
2239
2239
  }
2240
2240
  }
2241
- `,Yi=Le((({onSubmit:t,onError:n,schema:l,siteType:o})=>{const{t:r}=He(),s="mb"===de().other.template,{control:c,setValue:d,watch:m,handleSubmit:g,formState:{isSubmitted:u}}=ft({resolver:wt(l),mode:"onSubmit",defaultValues:{name:"",gender:ze.Boy,measurementDate:new Date}}),h=m("weight"),v=m("height"),b=m("head"),y=i((()=>u&&!h&&!v&&!b),[u,h,v,b]);a((()=>{const e=Zi(v,h);d("bmi",String(e)||"0")}),[h,v]);const f=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(Ri,{"data-theme":o},e.createElement(Wi,{onSubmit:g(t,n)},e.createElement(Et,{control:c,name:"gender",render:({field:{onChange:t,value:a}})=>e.createElement(kt,{onChange:t,value:a,siteType:o})}),"marryBaby"===o?e.createElement(e.Fragment,null,e.createElement(Et,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(pi,{label:r("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(a),CustomInput:e.createElement(ut,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md"},i,{value:a&&et(a).format(it)}))}),actionIcon:e.createElement(tt.CalendarMB,{size:32})}))}),e.createElement(Gi,null,e.createElement(Et,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(pi,{label:`${r("babyGrowth.height")} ${r("babyGrowth.cm")}`,name:"height",size:"md",value:String(a),CustomInput:e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"height",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(Et,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(pi,{label:`${r("babyGrowth.weight")} ${r("babyGrowth.kg")}`,name:"weight",size:"md",value:String(a),CustomInput:e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"weight",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))})),e.createElement(Gi,null,e.createElement(Et,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(pi,{label:`${r("babyGrowth.headCircumference")} ${r("babyGrowth.cm")}`,name:"head",size:"md",value:String(a),CustomInput:e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"head",size:"md",value:String(a),onChange:t,type:"number",placeholder:"Nhập thông tin",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(Et,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(Ui,null,e.createElement(pi,{label:`${r("babyGrowth.input.bmi")} ${r("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(t),CustomInput:e.createElement(Oe,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0,style:{color:"#9495A0"}})}))})),e.createElement(Et,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(pi,{label:r("babyGrowth.input.measurementDate"),name:"date",size:"md",value:yi(a),CustomInput:e.createElement(ut,{placeholder:a&&et(a).format(it),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&et(a).format(it),onChange:t},i,{value:a&&et(a).format(it)}))}),actionIcon:e.createElement(tt.CalendarMB,{size:32})}))}),e.createElement(W,{size:"lg",type:"submit",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":f},r("babyGrowth.input.submit"))):e.createElement(e.Fragment,null,e.createElement(Et,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(Vi,{size:"label1",htmlFor:"birthday"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},r("babyGrowth.input.birthday"))),e.createElement(ut,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md",actionIcon:e.createElement(tt.Calendar,null)},i,{value:a&&et(a).format(it)}))}))}),e.createElement(Gi,null,e.createElement(Et,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(Vi,{size:"label1",htmlFor:"height"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.height")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.cm"))),e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"height",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(Et,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(Vi,{size:"label1",htmlFor:"weight"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.weight")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.kg"))),e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"weight",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))})),e.createElement(Gi,null,e.createElement(Et,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(Vi,{size:"label1",htmlFor:"head"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.headCircumference")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.cm"))),e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"head",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(Et,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(Ui,null,e.createElement(Vi,{size:"label1",htmlFor:"bmi"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.input.bmi")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.kg.m2"))),e.createElement(Oe,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0}))})),e.createElement(Et,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ui,null,e.createElement(Vi,{size:"label1",htmlFor:"measurementDate"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},r("babyGrowth.input.measurementDate"))),e.createElement(ut,{placeholder:a&&et(a).format(it),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&et(a).format(it),onChange:t,actionIcon:e.createElement(tt.Calendar,null)},i,{value:a&&et(a).format(it)}))}))}),e.createElement(W,{size:"lg",type:"submit",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":f},r("babyGrowth.input.submit"))))))}))`
2241
+ `,Ji=Le((({onSubmit:t,onError:n,schema:l,siteType:o})=>{const{t:r}=He(),s="mb"===de().other.template,{control:c,setValue:d,watch:m,handleSubmit:g,formState:{isSubmitted:u}}=ft({resolver:wt(l),mode:"onSubmit",defaultValues:{name:"",gender:ze.Boy,measurementDate:new Date}}),h=m("weight"),v=m("height"),b=m("head"),y=i((()=>u&&!h&&!v&&!b),[u,h,v,b]);a((()=>{const e=Ki(v,h);d("bmi",String(e)||"0")}),[h,v]);const f=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(Gi,{"data-theme":o},e.createElement(Zi,{onSubmit:g(t,n)},e.createElement(Et,{control:c,name:"gender",render:({field:{onChange:t,value:a}})=>e.createElement(kt,{onChange:t,value:a,siteType:o})}),"marryBaby"===o?e.createElement(e.Fragment,null,e.createElement(Et,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(vi,{label:r("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(a),CustomInput:e.createElement(ut,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md"},i,{value:a&&at(a).format(lt)}))}),actionIcon:e.createElement(Re,{size:32})}))}),e.createElement(Xi,null,e.createElement(Et,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(vi,{label:`${r("babyGrowth.height")} ${r("babyGrowth.cm")}`,name:"height",size:"md",value:String(a),CustomInput:e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"height",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(Et,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(vi,{label:`${r("babyGrowth.weight")} ${r("babyGrowth.kg")}`,name:"weight",size:"md",value:String(a),CustomInput:e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"weight",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))})),e.createElement(Xi,null,e.createElement(Et,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(vi,{label:`${r("babyGrowth.headCircumference")} ${r("babyGrowth.cm")}`,name:"head",size:"md",value:String(a),CustomInput:e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"head",size:"md",value:String(a),onChange:t,type:"number",placeholder:"Nhập thông tin",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(Et,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(qi,null,e.createElement(vi,{label:`${r("babyGrowth.input.bmi")} ${r("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(t),CustomInput:e.createElement(Oe,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0,style:{color:"#9495A0"}})}))})),e.createElement(Et,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(vi,{label:r("babyGrowth.input.measurementDate"),name:"date",size:"md",value:wi(a),CustomInput:e.createElement(ut,{placeholder:a&&at(a).format(lt),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&at(a).format(lt),onChange:t},i,{value:a&&at(a).format(lt)}))}),actionIcon:e.createElement(Re,{size:32})}))}),e.createElement(W,{size:"lg",type:"submit",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":f},r("babyGrowth.input.submit"))):e.createElement(e.Fragment,null,e.createElement(Et,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(Yi,{size:"label1",htmlFor:"birthday"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},r("babyGrowth.input.birthday"))),e.createElement(ut,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md",actionIcon:e.createElement(We,null)},i,{value:a&&at(a).format(lt)}))}))}),e.createElement(Xi,null,e.createElement(Et,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(Yi,{size:"label1",htmlFor:"height"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.height")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.cm"))),e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"height",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(Et,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(Yi,{size:"label1",htmlFor:"weight"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.weight")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.kg"))),e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"weight",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))})),e.createElement(Xi,null,e.createElement(Et,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(Yi,{size:"label1",htmlFor:"head"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.headCircumference")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.cm"))),e.createElement(Oe,{className:y||(null==n?void 0:n.message)?"error-input":"",name:"head",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(Et,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(qi,null,e.createElement(Yi,{size:"label1",htmlFor:"bmi"},e.createElement(p,{size:"s4",weight:"semiBold"},r("babyGrowth.input.bmi")),e.createElement(p,{as:"span",size:"n1",color:Q.colors.gray400},r("babyGrowth.kg.m2"))),e.createElement(Oe,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0}))})),e.createElement(Et,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(qi,null,e.createElement(Yi,{size:"label1",htmlFor:"measurementDate"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},r("babyGrowth.input.measurementDate"))),e.createElement(ut,{placeholder:a&&at(a).format(lt),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Oe,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&at(a).format(lt),onChange:t,actionIcon:e.createElement(We,null)},i,{value:a&&at(a).format(lt)}))}))}),e.createElement(W,{size:"lg",type:"submit",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":f},r("babyGrowth.input.submit"))))))}))`
2242
2242
  padding-block: 0;
2243
- `;Le(di)`
2243
+ `;Le(ui)`
2244
2244
  padding-inline: 20px;
2245
2245
 
2246
2246
  img.embedded-icon {
@@ -2262,7 +2262,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2262
2262
  max-width: 200px;
2263
2263
  }
2264
2264
  }
2265
- `;const Xi=({isMobile:t,className:a,onSubmit:n,onError:i,schema:l,babyGrowthContent:o,siteType:r})=>{var s,c,d;return e.createElement(Di,{"babyGrowthContent-is-mobile":t,"data-site":r},e.createElement(di,{siteType:r,bannerUrl:X.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:X.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===r&&Q.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==o?void 0:o.featuredImage)||X.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null==o?void 0:o.title)||"",medicalReview:{link:null===(s=null==o?void 0:o.reviewBy)||void 0===s?void 0:s.link,reviewer:null===(c=null==o?void 0:o.reviewBy)||void 0===c?void 0:c.reviewer.trim(),date:null===(d=null==o?void 0:o.reviewBy)||void 0===d?void 0:d.date},isMobile:t}),e.createElement(qi,{"data-theme":r},e.createElement(Yi,{siteType:r,schema:l,className:a,onSubmit:n,onError:i})))};var Ki=re(((e,t)=>{const{isMarryBaby:a,isSide:n,direction:i}=t;return{root:Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",display:"flex"},"auto"===i?{flexDirection:"row"}:{flexDirection:"column"===i?"column-reverse":"row"}),{gap:"8px",padding:"16px",borderRadius:a?"16px":"8px"}),!a&&{backgroundImage:`url(${X.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"===i?{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"===i?{width:"80%",alignSelf:"center"}:"row"===i?{width:"40%"}:{}),{[e.fn.smallerThan("sm")]:Object.assign({},"auto"===i?{width:"80%",alignSelf:"center"}:{}),[e.fn.largerThan("sm")]:Object.assign({},"auto"===i?{width:"40%"}:{})}),action:{display:"flex",justifyContent:a?"center":"flex-start"},btn:{minWidth:a?"auto":"143px",width:n||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"===i?{left:"16px",height:40}:"row"===i?{height:50,right:"40px"}:{left:"16px",height:40}),{[e.fn.largerThan("sm")]:Object.assign({},"auto"===i?{height:50,right:"40px",left:"unset"}:{})})}}));const Qi=({babyPoopPage:t,onClickFindOut:a,currentUrl:n,isSide:i,direction:l="auto",sponsorLogo:o})=>{const{t:r}=He(),s="mb"===de().other.template,{classes:c}=Ki({isMarryBaby:s,isSide:i,direction:l},{name:"BabyPoopEmbed"}),{reviewedBy:d,reviewedDate:m}=t||{};return e.createElement("div",{className:c.root},e.createElement("div",{className:c.inner},e.createElement(K,{tag:"h3",as:"h2",color:!s&&"#284A75"},t.title),e.createElement("div",{className:c.content,"data-is-side":i},e.createElement(p,{size:"p3",className:"description"},t.description),!!d&&e.createElement("div",{className:c.reviewText},e.createElement("img",{src:X.getAssetPath("reviewerCheck.svg"),alt:"check",className:c.reviewTextIcon,loading:"lazy"}),e.createElement(p,{size:"p4",color:Q.colors.gray600},r("categoryPage.info.reviewed")," ",e.createElement("a",{href:d.profile_url},d.display_name)," ",r("categoryPage.onDate",{date:m||""}))),e.createElement("div",{className:c.action},e.createElement(W,{className:c.btn,size:s?"lg":"md",variant:s?"secondary":"primary",onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:n,style:{visibility:Boolean(a)?"visible":"hidden"}},r("babyPoop.findOut"))))),e.createElement("div",{className:c.thumbnail},e.createElement("img",{src:s?X.getAssetPath("baby-poop.svg"):null==t?void 0:t.featuredImage,alt:t.title,loading:"lazy"})),o&&e.createElement("img",{loading:"lazy",src:o,alt:"sponsor",className:c.sponsorLogo}))},Ji=Le.div`
2265
+ `;const el=({isMobile:t,className:a,onSubmit:n,onError:i,schema:l,babyGrowthContent:o,siteType:r})=>{var s,c,d;return e.createElement(Mi,{"babyGrowthContent-is-mobile":t,"data-site":r},e.createElement(ui,{siteType:r,bannerUrl:X.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:X.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===r&&Q.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==o?void 0:o.featuredImage)||X.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null==o?void 0:o.title)||"",medicalReview:{link:null===(s=null==o?void 0:o.reviewBy)||void 0===s?void 0:s.link,reviewer:null===(c=null==o?void 0:o.reviewBy)||void 0===c?void 0:c.reviewer.trim(),date:null===(d=null==o?void 0:o.reviewBy)||void 0===d?void 0:d.date},isMobile:t}),e.createElement(Qi,{"data-theme":r},e.createElement(Ji,{siteType:r,schema:l,className:a,onSubmit:n,onError:i})))};var tl=re(((e,t)=>{const{isMarryBaby:a,isSide:n,direction:i}=t;return{root:Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",display:"flex"},"auto"===i?{flexDirection:"row"}:{flexDirection:"column"===i?"column-reverse":"row"}),{gap:"8px",padding:"16px",borderRadius:a?"16px":"8px"}),!a&&{backgroundImage:`url(${X.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"===i?{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"===i?{width:"80%",alignSelf:"center"}:"row"===i?{width:"40%"}:{}),{[e.fn.smallerThan("sm")]:Object.assign({},"auto"===i?{width:"80%",alignSelf:"center"}:{}),[e.fn.largerThan("sm")]:Object.assign({},"auto"===i?{width:"40%"}:{})}),action:{display:"flex",justifyContent:a?"center":"flex-start"},btn:{minWidth:a?"auto":"143px",width:n||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"===i?{left:"16px",height:40}:"row"===i?{height:50,right:"40px"}:{left:"16px",height:40}),{[e.fn.largerThan("sm")]:Object.assign({},"auto"===i?{height:50,right:"40px",left:"unset"}:{})})}}));const al=({babyPoopPage:t,onClickFindOut:a,currentUrl:n,isSide:i,direction:l="auto",sponsorLogo:o})=>{const{t:r}=He(),s="mb"===de().other.template,{classes:c}=tl({isMarryBaby:s,isSide:i,direction:l},{name:"BabyPoopEmbed"}),{reviewedBy:d,reviewedDate:m}=t||{};return e.createElement("div",{className:c.root},e.createElement("div",{className:c.inner},e.createElement(K,{tag:"h3",as:"h2",color:!s&&"#284A75"},t.title),e.createElement("div",{className:c.content,"data-is-side":i},e.createElement(p,{size:"p3",className:"description"},t.description),!!d&&e.createElement("div",{className:c.reviewText},e.createElement("img",{src:X.getAssetPath("reviewerCheck.svg"),alt:"check",className:c.reviewTextIcon,loading:"lazy"}),e.createElement(p,{size:"p4",color:Q.colors.gray600},r("categoryPage.info.reviewed")," ",e.createElement("a",{href:d.profile_url},d.display_name)," ",r("categoryPage.onDate",{date:m||""}))),e.createElement("div",{className:c.action},e.createElement(W,{className:c.btn,size:s?"lg":"md",variant:s?"secondary":"primary",onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:n,style:{visibility:Boolean(a)?"visible":"hidden"}},r("babyPoop.findOut"))))),e.createElement("div",{className:c.thumbnail},e.createElement("img",{src:s?X.getAssetPath("baby-poop.svg"):null==t?void 0:t.featuredImage,alt:t.title,loading:"lazy"})),o&&e.createElement("img",{loading:"lazy",src:o,alt:"sponsor",className:c.sponsorLogo}))},nl=Le.div`
2266
2266
  display: flex;
2267
2267
  width: 100%;
2268
2268
 
@@ -2273,7 +2273,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2273
2273
  &[data-direction='horizontal'] {
2274
2274
  flex-wrap: wrap;
2275
2275
  }
2276
- `,el=Le.div`
2276
+ `,il=Le.div`
2277
2277
  display: flex;
2278
2278
 
2279
2279
  padding: 8px;
@@ -2319,13 +2319,13 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2319
2319
  height: 36px;
2320
2320
  object-fit: contain;
2321
2321
  }
2322
- `,tl=({value:a,options:n,className:i,direction:l="horizontal",onChange:o,isDisabled:r})=>{const[s,c]=t(a);return e.createElement(Ji,{className:i,"data-direction":l},n.map(((t,n)=>e.createElement(el,{"data-selected":(a||s)===t.value,"data-disabled":r,key:`health-tool${n}`,onClick:()=>{var e;e=t.value,r||(c(e),o&&o(e))}},e.createElement("div",null,e.createElement("img",{src:(a||s)===t.value?t.imageActive:t.image,className:"gender-image",alt:"",loading:"lazy"}),t.label&&e.createElement(p,{weight:"bold",className:"radio-group-item-heading",size:"label1"},t.label))))))},al=Le(W)`
2322
+ `,ll=({value:a,options:n,className:i,direction:l="horizontal",onChange:o,isDisabled:r})=>{const[s,c]=t(a);return e.createElement(nl,{className:i,"data-direction":l},n.map(((t,n)=>e.createElement(il,{"data-selected":(a||s)===t.value,"data-disabled":r,key:`health-tool${n}`,onClick:()=>{var e;e=t.value,r||(c(e),o&&o(e))}},e.createElement("div",null,e.createElement("img",{src:(a||s)===t.value?t.imageActive:t.image,className:"gender-image",alt:"",loading:"lazy"}),t.label&&e.createElement(p,{weight:"bold",className:"radio-group-item-heading",size:"label1"},t.label))))))},ol=Le(W)`
2323
2323
  margin: 0 auto 24px;
2324
2324
  width: 100%;
2325
2325
  ${A.mbUp} {
2326
2326
  max-width: 200px;
2327
2327
  }
2328
- `,nl=Le.div``,il=Le.div`
2328
+ `,rl=Le.div``,sl=Le.div`
2329
2329
  display: flex;
2330
2330
  flex-direction: column;
2331
2331
  gap: 16px;
@@ -2347,7 +2347,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2347
2347
  font-size: 12px;
2348
2348
  }
2349
2349
  }
2350
- `,ll=Le.div`
2350
+ `,cl=Le.div`
2351
2351
  ${A.mbUp} {
2352
2352
  display: flex;
2353
2353
  width: 100%;
@@ -2373,13 +2373,13 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2373
2373
  gap: 0px;
2374
2374
  }
2375
2375
  }
2376
- `,ol=({info:n,className:i,style:l,onChange:o,errorMessage:r={},locale:s})=>{const{t:c}=He(),[d,m]=t(new Date),[g,u]=t({age:!1,rate:!1});return a((()=>{u({age:!1,rate:!1})}),[r]),e.createElement(nl,{style:l,className:i},e.createElement(Oe,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:yi(d),name:"date",size:"md",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:yi(d)})),disabledDays:{after:new Date(We(new Date,0))},locale:s,pickedDate:d,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),u((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},n),{age:Re(new Date(e),bi)});o&&o(t)})(e)},placeholder:"placeholder"}),errorMessage:g.age?"":r.age}))},rl=({isSide:n,locale:l,thrContent:o,isMobile:r,info:s,inputErrorMessage:c,onFormChange:d,onSubmit:m})=>{var g,u,h;const{t:v}=He(),{getHealthToolLink:b}=xt(l),y=i((()=>b(lt.THR)),[b]),[f,E]=t(!1),[x,w]=t("low_intensity"),[k,C]=t("male"),[N,B]=t(60),[z,$]=t({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),S=[{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}],P=[{value:"low_intensity",label:v("targetHeartRate.lowIntensity.title"),image:X.getAssetPath("/low.svg"),imageActive:X.getAssetPath("/low-active.svg"),content:v("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:v("targetHeartRate.moderateIntensity.title"),image:X.getAssetPath("/moderate.svg"),imageActive:X.getAssetPath("/moderate-active.svg"),content:v("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:v("targetHeartRate.aerobicZone.title"),image:X.getAssetPath("/aerobic.svg"),imageActive:X.getAssetPath("/aerobic-active.svg"),content:v("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:v("targetHeartRate.vigorousIntensity.title"),image:X.getAssetPath("/vigorous.svg"),imageActive:X.getAssetPath("/vigorous-active.svg"),content:v("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:v("targetHeartRate.maximumIntensity.title"),image:X.getAssetPath("/maximum.svg"),imageActive:X.getAssetPath("/maximum-active.svg"),content:v("targetHeartRate.maximumIntensity.note")}];return a((()=>{const e=((new Date).getTime()-new Date(null==s?void 0:s.age).getTime())/1e3;E(e>=567648e3);const t=S.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||S[0];$(t),B(60)}),[null==s?void 0:s.age]),e.createElement(Di,{"data-is-side":n},e.createElement(di,{isSide:n,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==o?void 0:o.featured_image)||X.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:v("targetHearRate.heading"),medicalReview:(null===(g=null==o?void 0:o.reviewedBy)||void 0===g?void 0:g.display_name)?{link:Nt(null==o?void 0:o.reviewedBy),reviewer:null===(u=null==o?void 0:o.reviewedBy)||void 0===u?void 0:u.display_name,date:null==o?void 0:o.reviewedDate}:void 0,isMobile:r}),e.createElement(yt,null,e.createElement(Pi,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":n},e.createElement(ll,{"data-is-side":n},e.createElement(il,null,e.createElement(ua,{defaultValue:"male",onChange:e=>{C(e),B(60)},styles:e=>({root:!n&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:ie(12)}}})}))),e.createElement(ll,null,e.createElement(ol,{info:s,locale:l,errorMessage:c,onChange:d})),e.createElement("div",{className:"slider-heart-rate"},e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},v("targetHeartRate.heartRateInput")),e.createElement("div",{className:"slider-outer-wrapper"},e.createElement(ht,{containerStyle:{flex:1},min:"male"===k?z.rangeMale:z.rangeFemale,max:200,step:1,value:N,withControl:!0,onChange:B}))),f&&e.createElement(il,null,e.createElement(zi,null,e.createElement(p,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:Q.colors.gray600,marginBottom:"9px"}},v("targetHeartRate.selectActive")),e.createElement("div",{className:"card"},e.createElement(tl,{options:P.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:x,onChange:e=>{w(e)},className:"gender-selector"})),x&&e.createElement("div",{className:"note"},e.createElement("img",{style:{height:"16px",width:"16px"},src:X.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),e.createElement(p,{size:"s4",color:"#595959"},null===(h=P[P.findIndex((e=>e.value==x))||0])||void 0===h?void 0:h.content)),!x&&e.createElement("span",{style:{color:"#e64728"}},c.intensity)))),e.createElement("div",{style:{display:"flex"}},e.createElement(al,{size:"lg",onClick:()=>{m(k,x,[N])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${Ee[l]}/${y}`},v("bmi.submit")))))},sl=Le(W)`
2376
+ `,dl=({info:n,className:i,style:l,onChange:o,errorMessage:r={},locale:s})=>{const{t:c}=He(),[d,m]=t(new Date),[g,u]=t({age:!1,rate:!1});return a((()=>{u({age:!1,rate:!1})}),[r]),e.createElement(rl,{style:l,className:i},e.createElement(Oe,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:wi(d),name:"date",size:"md",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:wi(d)})),disabledDays:{after:new Date(Ve(new Date,0))},locale:s,pickedDate:d,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),u((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},n),{age:Ue(new Date(e),xi)});o&&o(t)})(e)},placeholder:"placeholder"}),errorMessage:g.age?"":r.age}))},ml=({isSide:n,locale:l,thrContent:o,isMobile:r,info:s,inputErrorMessage:c,onFormChange:d,onSubmit:m})=>{var g,u,h;const{t:v}=He(),{getHealthToolLink:b}=xt(l),y=i((()=>b(ot.THR)),[b]),[f,E]=t(!1),[x,w]=t("low_intensity"),[k,C]=t("male"),[N,B]=t(60),[z,$]=t({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),S=[{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}],P=[{value:"low_intensity",label:v("targetHeartRate.lowIntensity.title"),image:X.getAssetPath("/low.svg"),imageActive:X.getAssetPath("/low-active.svg"),content:v("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:v("targetHeartRate.moderateIntensity.title"),image:X.getAssetPath("/moderate.svg"),imageActive:X.getAssetPath("/moderate-active.svg"),content:v("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:v("targetHeartRate.aerobicZone.title"),image:X.getAssetPath("/aerobic.svg"),imageActive:X.getAssetPath("/aerobic-active.svg"),content:v("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:v("targetHeartRate.vigorousIntensity.title"),image:X.getAssetPath("/vigorous.svg"),imageActive:X.getAssetPath("/vigorous-active.svg"),content:v("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:v("targetHeartRate.maximumIntensity.title"),image:X.getAssetPath("/maximum.svg"),imageActive:X.getAssetPath("/maximum-active.svg"),content:v("targetHeartRate.maximumIntensity.note")}];return a((()=>{const e=((new Date).getTime()-new Date(null==s?void 0:s.age).getTime())/1e3;E(e>=567648e3);const t=S.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||S[0];$(t),B(60)}),[null==s?void 0:s.age]),e.createElement(Mi,{"data-is-side":n},e.createElement(ui,{isSide:n,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==o?void 0:o.featured_image)||X.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:v("targetHearRate.heading"),medicalReview:(null===(g=null==o?void 0:o.reviewedBy)||void 0===g?void 0:g.display_name)?{link:Bt(null==o?void 0:o.reviewedBy),reviewer:null===(u=null==o?void 0:o.reviewedBy)||void 0===u?void 0:u.display_name,date:null==o?void 0:o.reviewedDate}:void 0,isMobile:r}),e.createElement(yt,null,e.createElement(Ti,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":n},e.createElement(cl,{"data-is-side":n},e.createElement(sl,null,e.createElement(ya,{defaultValue:"male",onChange:e=>{C(e),B(60)},styles:e=>({root:!n&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:ie(12)}}})}))),e.createElement(cl,null,e.createElement(dl,{info:s,locale:l,errorMessage:c,onChange:d})),e.createElement("div",{className:"slider-heart-rate"},e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},v("targetHeartRate.heartRateInput")),e.createElement("div",{className:"slider-outer-wrapper"},e.createElement(vt,{containerStyle:{flex:1},min:"male"===k?z.rangeMale:z.rangeFemale,max:200,step:1,value:N,withControl:!0,onChange:B}))),f&&e.createElement(sl,null,e.createElement(Di,null,e.createElement(p,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:Q.colors.gray600,marginBottom:"9px"}},v("targetHeartRate.selectActive")),e.createElement("div",{className:"card"},e.createElement(ll,{options:P.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:x,onChange:e=>{w(e)},className:"gender-selector"})),x&&e.createElement("div",{className:"note"},e.createElement("img",{style:{height:"16px",width:"16px"},src:X.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),e.createElement(p,{size:"s4",color:"#595959"},null===(h=P[P.findIndex((e=>e.value==x))||0])||void 0===h?void 0:h.content)),!x&&e.createElement("span",{style:{color:"#e64728"}},c.intensity)))),e.createElement("div",{style:{display:"flex"}},e.createElement(ol,{size:"lg",onClick:()=>{m(k,x,[N])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${Ee[l]}/${y}`},v("bmi.submit")))))},pl=Le(W)`
2377
2377
  margin: 0 auto 24px;
2378
2378
  ${A.mbUp} {
2379
2379
  max-width: 200px;
2380
2380
  margin: 24px auto;
2381
2381
  }
2382
- `,cl=Le.div``,dl=Le.div`
2382
+ `,gl=Le.div``,ul=Le.div`
2383
2383
  margin-bottom: 1rem;
2384
2384
  display: flex;
2385
2385
  flex-direction: column;
@@ -2406,7 +2406,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2406
2406
  font-size: 12px;
2407
2407
  }
2408
2408
  }
2409
- `,ml=Le.div`
2409
+ `,hl=Le.div`
2410
2410
  ${A.mbUp} {
2411
2411
  display: flex;
2412
2412
  width: 100%;
@@ -2429,11 +2429,11 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2429
2429
  flex-direction: column;
2430
2430
  gap: 0px;
2431
2431
  }
2432
- `,pl=({info:n,className:l,style:o,onChange:r,errorMessage:s={},locale:c,onClick:d,isSide:m})=>{const{t:g}=He(),[u,h]=t({age:!1,height:!1,weight:!1}),{getHealthToolLink:v}=xt(c),b=i((()=>v(lt.OVULATION)),[v]),[y,f]=t("male"),E=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},x=e=>{var t,a;a=e=>{h((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},n),{age:e});r&&r(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||a(t)};return a((()=>{r&&r(Object.assign(Object.assign({},n),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),a((()=>{h({age:!1,height:!1,weight:!1})}),[s]),e.createElement(cl,{style:o,className:l},e.createElement(dl,{"data-is-side":m},e.createElement(ua,{defaultValue:"male",onChange:e=>f(e),styles:e=>({root:!m&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:ie(12)}}})})),e.createElement(ml,{"data-is-side":m},e.createElement(dl,null,e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},g("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},g("bmi.ageInput.desc"))),placeholder:g("healthtool.placeholder.age"),value:Number(n.age),onChange:e=>x(String(e)),error:u.age?"":s.age,min:0})),e.createElement(dl,null,e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},g("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},g("bmi.heightInput.desc"))),placeholder:g("pwg.placeholder.height"),value:Number(n.height),onChange:e=>{return t=String(e),void E(t,(e=>{h((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},n),{height:e});r&&r(t)}));var t},error:u.height?"":s.height,min:0})),e.createElement(dl,null,e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},g("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},g("bmi.weightInput.desc"))),placeholder:g("pwg.placeholder.weight"),value:Number(n.weight),onChange:e=>{return t=String(e),h((e=>Object.assign(Object.assign({},e),{weight:!0}))),void E(t,(e=>{const t=Object.assign(Object.assign({},n),{weight:e});r&&r(t)}));var t},error:u.weight?"":s.weight,min:0,precision:1}))),e.createElement("div",{style:{display:"flex"}},e.createElement(sl,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${Ee[c]}/${b}`,onClick:()=>{d(y)}},g("bmi.submit"))))},gl=({isSide:t,locale:a,bmrContent:n,isMobile:i,info:l,inputErrorMessage:o,onFormChange:r,onSubmit:s})=>{var c,d,m;const{t:p}=He();return e.createElement(Di,{"data-is-side":t},e.createElement(di,{isSide:t,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||X.getAssetPath("health-tools/bmr.svg"),loading:"lazy"}),heading:p("bmr.heading"),medicalReview:{link:null===(c=null==n?void 0:n.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(d=null==n?void 0:n.reviewBy)||void 0===d?void 0:d.reviewer,date:null===(m=null==n?void 0:n.reviewBy)||void 0===m?void 0:m.date},isMobile:i}),e.createElement(yt,null,e.createElement(Pi,{onSubmit:e=>e.preventDefault(),"data-is-side":t},e.createElement(ki,null,e.createElement(pl,{info:l,locale:a,errorMessage:o,onChange:r,onClick:s,isSide:t})))))},ul=({locale:a,onSubmit:n,isSide:l,siteType:o})=>{const{t:r}=He(),[s,c]=t(new Date),[d,m]=t(28),[g,u]=t(7),h={cycle:d,periodDateStart:s,periodLength:g},v=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(hi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===o?e.createElement(pi,{label:r("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:yi(s),CustomInput:e.createElement(ut,{onChange:e=>{c(e)},placeholder:"dd/mm/yyyy",pickedDate:s,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:We(new Date,-45),after:new Date},customInput:t=>e.createElement(Oe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:s&&et(s).format(it)}))}),actionIcon:e.createElement(tt.CalendarMB,{size:32})}):e.createElement(Oe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.lastPeriod.lastPeriodLabel")),value:yi(s),size:"md",name:"date",className:"due-date-input",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({},t,{type:"date",className:"due-date-input",value:yi(s)})),locale:a,pickedDate:s,displayDateFormat:gt,onChange:e=>{c(e)},disabledDays:{before:We(new Date,-45),after:new Date},placeholder:"Chọn ngày"})})),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===o?"marryBaby":"","data-is-side":l},"marryBaby"===o?e.createElement(vt,{type:"bodytext-3",color:Q.mbColors.midGray},r("ovulationPage.cycleLength")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},r("ovulationPage.cycleLength")+" ",e.createElement("span",{style:{minHeight:"36px"}},r("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===o&&e.createElement(p,{size:"s3",weight:"semiBold",color:Q.colors.gray600},d),e.createElement(ht,{containerStyle:{flex:1},min:21,max:45,step:1,value:d,onChange:m,labelAlwaysOn:"marryBaby"!==o,withControl:"marryBaby"!==o,label:"marryBaby"!==o?void 0:null}))),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===o?"marryBaby":"","data-is-side":l},"marryBaby"===o?e.createElement(vt,{type:"bodytext-3",color:Q.mbColors.midGray},r("ovulationPage.periodDuration")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},r("ovulationPage.periodDuration")+" ",e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},r("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===o&&e.createElement(p,{size:"s3",weight:"semiBold",color:Q.colors.gray600},g),e.createElement(ht,{containerStyle:{flex:1},min:1,max:15,step:1,value:g,onChange:u,labelAlwaysOn:"marryBaby"!==o,withControl:"marryBaby"!==o,label:"marryBaby"!==o?void 0:null}))),e.createElement("div",{style:{width:"100%",display:"flex"}},e.createElement(W,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===o?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:v,onClick:()=>{localStorage.setItem("ovulationInfo",JSON.stringify(h)),n&&n({startDate:s,cycle:d,periodLength:g})},role:"button"},r("dueDatePage.lastPeriod.calculate"))))};var hl;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(hl||(hl={}));const vl=({locale:a,onSubmitOvulation:n,isSide:i,siteType:l})=>{const{t:o}=He(),[r,s]=t(hl.trackPeriod),c=[{label:o("ovulationPage.trackPeriod"),value:hl.trackPeriod},{label:o("ovulationPage.conceive"),value:hl.conceive},{label:o("ovulationPage.avoidPregnancy"),value:hl.avoidPregnancy}];return e.createElement(Ni,null,e.createElement(gi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===l?e.createElement(mi,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:c,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[r],onChange:e=>{s(e.value)}}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},o("ovulationPage.objectives")),e.createElement(ui,{"data-is-side":i},e.createElement(bt,{options:c,placeholder:o("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[r],onChange:e=>{s(e.value)}})))),e.createElement(ul,{siteType:l,locale:a,onSubmit:({startDate:e,cycle:t,periodLength:a})=>{n&&n({method:r,periodDateStart:e,cycle:t,periodLength:a})},isSide:i}))},bl=({onSubmitOvulation:t,locale:a,ovulationPageInfo:n,expertUrl:i,isSide:l=!1,siteType:o,isMobile:r})=>{var s;const{t:c}=He();return e.createElement(Di,{"data-is-side":l,"data-site":o},e.createElement(di,{isSide:l,bannerUrl:X.getAssetPath("embedToolBannerPink.svg"),siteType:o,bannerColor:"marryBaby"===o&&Q.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||X.getAssetPath("health-tools/ovulation-icon.svg"),loading:"lazy"}),heading:c("healthTools.ovulationCalculator"),medicalReview:{link:i,reviewer:null===(s=null==n?void 0:n.reviewed_by)||void 0===s?void 0:s.display_name,date:null==n?void 0:n.reviewed_date},isMobile:r}),e.createElement(Pi,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":l},e.createElement(vl,{siteType:o,locale:a,onSubmitOvulation:t,isSide:l})))},yl=({siteType:i,info:l,onChange:o,errorMessage:r={}})=>{const{t:s}=He(),[c,d]=t({weightBefore:!1,height:!1,weight:!1}),[m,p]=t(0),g=n(null);a((()=>{var e;p(null===(e=g.current)||void 0===e?void 0:e.clientHeight)}));const u=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},h=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});o&&o(t)}))},v=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});o&&o(t)}))},b=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});o&&o(t)}))};return a((()=>{o&&o(Object.assign({},l))}),[]),a((()=>{d({weightBefore:!1,height:!1,weight:!1})}),[r]),"marryBaby"===i?e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(pi,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:e.createElement(Oe,{className:(null==c?void 0:c.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==c?void 0:c.height)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:v})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(pi,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:e.createElement(Oe,{className:(null==c?void 0:c.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==c?void 0:c.weightBefore)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:h})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(pi,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:e.createElement(Oe,{className:(null==c?void 0:c.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==c?void 0:c.weight)?"":null==r?void 0:r.weight,showErrorMessage:!1,onChange:b})}))):e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(M,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:e.createElement("span",{style:{color:Q.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:`${Q.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:c.height?"":null==r?void 0:r.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:v})),e.createElement("div",{className:"input-form-pwg"},e.createElement(M,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:Q.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:g,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:`${Q.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weightBefore?"":null==r?void 0:r.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:h,value:null==l?void 0:l.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(M,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:Q.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:m},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:`${Q.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weight?"":null==r?void 0:r.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:b})))},fl=({locale:a,onClick:n,inputErrorMessage:l,pwgContent:o,onFormChange:r,info:s,isMobile:c,isSide:d=!1,siteType:m})=>{var g;const{t:u}=He(),[h,v]=t("notwins"),[b,y]=t({label:"1",value:1}),f=i((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:E}=xt(a),x=i((()=>E(lt.PWG)),[E]);return e.createElement(Di,{"data-is-side":d,"data-site":m},e.createElement(di,{siteType:m,bannerColor:"marryBaby"===m&&Q.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==o?void 0:o.featuredImage)||X.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:u("pregnancyWeightGain.heading"),medicalReview:{link:Nt(null==o?void 0:o.reviewedBy),reviewer:null===(g=null==o?void 0:o.reviewedBy)||void 0===g?void 0:g.display_name,date:null==o?void 0:o.reviewedDate},isMobile:c,isSide:d}),e.createElement(yt,null,e.createElement(Pi,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":d},"marryBaby"!==m&&e.createElement(wi,{className:"hide-asking-mobile","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:Q.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(Li,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:h,onChange:e=>v(e),className:"gender-selector",id:"twins-check",direction:"horizontal",size:"small"})),e.createElement(Ni,null,e.createElement(Bi,{className:"input-section input-form-pwg","data-is-side":d},"marryBaby"===m?e.createElement(mi,{groupedWithLabel:u("pregnancyWeightGain.weekInput"),options:f,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:b,onChange:e=>y({label:e.label,value:e.value})}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"inline-block",marginBottom:"9px",color:Q.colors.gray600}},u("pregnancyWeightGain.weekInput")),e.createElement(bt,{options:f,placeholder:String(b.label),id:"weight-gain-dropdown",size:"md",value:b,onChange:e=>y({label:e.label,value:e.value})}))),e.createElement(yl,{siteType:m,info:s,errorMessage:l,onChange:r})),"marryBaby"!==m&&e.createElement(wi,{className:"hide-asking-desk","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:Q.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(Li,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:h,onChange:e=>v(e),className:"gender-selector",id:"twins-check-mobile",direction:"horizontal",size:"small"})),"marryBaby"===m&&e.createElement(ca,{name:"twins",label:u("pregnancyWeightGain.havingTwins"),checked:"twins"===h,siteType:"marryBaby",onChange:()=>{v("twins"===h?"notwins":"twins")},value:"twins"}),e.createElement(Ci,{"data-is-side":d,"data-site":m},e.createElement(W,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${Ee["marryBaby"===m?"vi-VN_MB":a]}/${x}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===m?"secondary":"primary",onClick:()=>n(h,b.value),role:"button"},u("dueDatePage.lastPeriod.calculate"))))))},El=Le.div`
2432
+ `,vl=({info:n,className:l,style:o,onChange:r,errorMessage:s={},locale:c,onClick:d,isSide:m})=>{const{t:g}=He(),[u,h]=t({age:!1,height:!1,weight:!1}),{getHealthToolLink:v}=xt(c),b=i((()=>v(ot.OVULATION)),[v]),[y,f]=t("male"),E=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},x=e=>{var t,a;a=e=>{h((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},n),{age:e});r&&r(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||a(t)};return a((()=>{r&&r(Object.assign(Object.assign({},n),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),a((()=>{h({age:!1,height:!1,weight:!1})}),[s]),e.createElement(gl,{style:o,className:l},e.createElement(ul,{"data-is-side":m},e.createElement(ya,{defaultValue:"male",onChange:e=>f(e),styles:e=>({root:!m&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:ie(12)}}})})),e.createElement(hl,{"data-is-side":m},e.createElement(ul,null,e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},g("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},g("bmi.ageInput.desc"))),placeholder:g("healthtool.placeholder.age"),value:Number(n.age),onChange:e=>x(String(e)),error:u.age?"":s.age,min:0})),e.createElement(ul,null,e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},g("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},g("bmi.heightInput.desc"))),placeholder:g("pwg.placeholder.height"),value:Number(n.height),onChange:e=>{return t=String(e),void E(t,(e=>{h((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},n),{height:e});r&&r(t)}));var t},error:u.height?"":s.height,min:0})),e.createElement(ul,null,e.createElement(U.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray600},g("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:Q.colors.gray300,as:"span"},g("bmi.weightInput.desc"))),placeholder:g("pwg.placeholder.weight"),value:Number(n.weight),onChange:e=>{return t=String(e),h((e=>Object.assign(Object.assign({},e),{weight:!0}))),void E(t,(e=>{const t=Object.assign(Object.assign({},n),{weight:e});r&&r(t)}));var t},error:u.weight?"":s.weight,min:0,precision:1}))),e.createElement("div",{style:{display:"flex"}},e.createElement(pl,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${Ee[c]}/${b}`,onClick:()=>{d(y)}},g("bmi.submit"))))},bl=({isSide:t,locale:a,bmrContent:n,isMobile:i,info:l,inputErrorMessage:o,onFormChange:r,onSubmit:s})=>{var c,d,m;const{t:p}=He();return e.createElement(Mi,{"data-is-side":t},e.createElement(ui,{isSide:t,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||X.getAssetPath("health-tools/bmr.svg"),loading:"lazy"}),heading:p("bmr.heading"),medicalReview:{link:null===(c=null==n?void 0:n.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(d=null==n?void 0:n.reviewBy)||void 0===d?void 0:d.reviewer,date:null===(m=null==n?void 0:n.reviewBy)||void 0===m?void 0:m.date},isMobile:i}),e.createElement(yt,null,e.createElement(Ti,{onSubmit:e=>e.preventDefault(),"data-is-side":t},e.createElement(zi,null,e.createElement(vl,{info:l,locale:a,errorMessage:o,onChange:r,onClick:s,isSide:t})))))},yl=({locale:a,onSubmit:n,isSide:l,siteType:o})=>{const{t:r}=He(),[s,c]=t(new Date),[d,m]=t(28),[g,u]=t(7),h={cycle:d,periodDateStart:s,periodLength:g},v=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(fi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===o?e.createElement(vi,{label:r("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:wi(s),CustomInput:e.createElement(ut,{onChange:e=>{c(e)},placeholder:"dd/mm/yyyy",pickedDate:s,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:Ve(new Date,-45),after:new Date},customInput:t=>e.createElement(Oe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:s&&at(s).format(lt)}))}),actionIcon:e.createElement(Re,{size:32})}):e.createElement(Oe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.lastPeriod.lastPeriodLabel")),value:wi(s),size:"md",name:"date",className:"due-date-input",CustomInput:e.createElement(ut,{customInput:t=>e.createElement("input",Object.assign({},t,{type:"date",className:"due-date-input",value:wi(s)})),locale:a,pickedDate:s,displayDateFormat:nt,onChange:e=>{c(e)},disabledDays:{before:Ve(new Date,-45),after:new Date},placeholder:"Chọn ngày"})})),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===o?"marryBaby":"","data-is-side":l},"marryBaby"===o?e.createElement(ht,{type:"bodytext-3",color:Q.mbColors.midGray},r("ovulationPage.cycleLength")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},r("ovulationPage.cycleLength")+" ",e.createElement("span",{style:{minHeight:"36px"}},r("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===o&&e.createElement(p,{size:"s3",weight:"semiBold",color:Q.colors.gray600},d),e.createElement(vt,{containerStyle:{flex:1},min:21,max:45,step:1,value:d,onChange:m,labelAlwaysOn:"marryBaby"!==o,withControl:"marryBaby"!==o,label:"marryBaby"!==o?void 0:null}))),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===o?"marryBaby":"","data-is-side":l},"marryBaby"===o?e.createElement(ht,{type:"bodytext-3",color:Q.mbColors.midGray},r("ovulationPage.periodDuration")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},r("ovulationPage.periodDuration")+" ",e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},r("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===o&&e.createElement(p,{size:"s3",weight:"semiBold",color:Q.colors.gray600},g),e.createElement(vt,{containerStyle:{flex:1},min:1,max:15,step:1,value:g,onChange:u,labelAlwaysOn:"marryBaby"!==o,withControl:"marryBaby"!==o,label:"marryBaby"!==o?void 0:null}))),e.createElement("div",{style:{width:"100%",display:"flex"}},e.createElement(W,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===o?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:v,onClick:()=>{localStorage.setItem("ovulationInfo",JSON.stringify(h)),n&&n({startDate:s,cycle:d,periodLength:g})},role:"button"},r("dueDatePage.lastPeriod.calculate"))))};var fl;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(fl||(fl={}));const El=({locale:a,onSubmitOvulation:n,isSide:i,siteType:l})=>{const{t:o}=He(),[r,s]=t(fl.trackPeriod),c=[{label:o("ovulationPage.trackPeriod"),value:fl.trackPeriod},{label:o("ovulationPage.conceive"),value:fl.conceive},{label:o("ovulationPage.avoidPregnancy"),value:fl.avoidPregnancy}];return e.createElement(Si,null,e.createElement(bi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===l?e.createElement(hi,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:c,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[r],onChange:e=>{s(e.value)}}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},o("ovulationPage.objectives")),e.createElement(yi,{"data-is-side":i},e.createElement(bt,{options:c,placeholder:o("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[r],onChange:e=>{s(e.value)}})))),e.createElement(yl,{siteType:l,locale:a,onSubmit:({startDate:e,cycle:t,periodLength:a})=>{n&&n({method:r,periodDateStart:e,cycle:t,periodLength:a})},isSide:i}))},xl=({onSubmitOvulation:t,locale:a,ovulationPageInfo:n,expertUrl:i,isSide:l=!1,siteType:o,isMobile:r})=>{var s;const{t:c}=He();return e.createElement(Mi,{"data-is-side":l,"data-site":o},e.createElement(ui,{isSide:l,bannerUrl:X.getAssetPath("embedToolBannerPink.svg"),siteType:o,bannerColor:"marryBaby"===o&&Q.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||X.getAssetPath("health-tools/ovulation-icon.svg"),loading:"lazy"}),heading:c("healthTools.ovulationCalculator"),medicalReview:{link:i,reviewer:null===(s=null==n?void 0:n.reviewed_by)||void 0===s?void 0:s.display_name,date:null==n?void 0:n.reviewed_date},isMobile:r}),e.createElement(Ti,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":l},e.createElement(El,{siteType:o,locale:a,onSubmitOvulation:t,isSide:l})))},wl=({siteType:i,info:l,onChange:o,errorMessage:r={}})=>{const{t:s}=He(),[c,d]=t({weightBefore:!1,height:!1,weight:!1}),[m,p]=t(0),g=n(null);a((()=>{var e;p(null===(e=g.current)||void 0===e?void 0:e.clientHeight)}));const u=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},h=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});o&&o(t)}))},v=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});o&&o(t)}))},b=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});o&&o(t)}))};return a((()=>{o&&o(Object.assign({},l))}),[]),a((()=>{d({weightBefore:!1,height:!1,weight:!1})}),[r]),"marryBaby"===i?e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(vi,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:e.createElement(Oe,{className:(null==c?void 0:c.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==c?void 0:c.height)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:v})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(vi,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:e.createElement(Oe,{className:(null==c?void 0:c.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==c?void 0:c.weightBefore)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:h})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(vi,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:e.createElement(Oe,{className:(null==c?void 0:c.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==c?void 0:c.weight)?"":null==r?void 0:r.weight,showErrorMessage:!1,onChange:b})}))):e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(T,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:e.createElement("span",{style:{color:Q.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:`${Q.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:c.height?"":null==r?void 0:r.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:v})),e.createElement("div",{className:"input-form-pwg"},e.createElement(T,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:Q.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:g,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:`${Q.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weightBefore?"":null==r?void 0:r.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:h,value:null==l?void 0:l.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(T,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:Q.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:m},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:`${Q.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weight?"":null==r?void 0:r.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:b})))},kl=({locale:a,onClick:n,inputErrorMessage:l,pwgContent:o,onFormChange:r,info:s,isMobile:c,isSide:d=!1,siteType:m})=>{var g;const{t:u}=He(),[h,v]=t("notwins"),[b,y]=t({label:"1",value:1}),f=i((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:E}=xt(a),x=i((()=>E(ot.PWG)),[E]);return e.createElement(Mi,{"data-is-side":d,"data-site":m},e.createElement(ui,{siteType:m,bannerColor:"marryBaby"===m&&Q.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==o?void 0:o.featuredImage)||X.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:u("pregnancyWeightGain.heading"),medicalReview:{link:Bt(null==o?void 0:o.reviewedBy),reviewer:null===(g=null==o?void 0:o.reviewedBy)||void 0===g?void 0:g.display_name,date:null==o?void 0:o.reviewedDate},isMobile:c,isSide:d}),e.createElement(yt,null,e.createElement(Ti,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":d},"marryBaby"!==m&&e.createElement(Bi,{className:"hide-asking-mobile","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:Q.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(Ai,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:h,onChange:e=>v(e),className:"gender-selector",id:"twins-check",direction:"horizontal",size:"small"})),e.createElement(Si,null,e.createElement(Pi,{className:"input-section input-form-pwg","data-is-side":d},"marryBaby"===m?e.createElement(hi,{groupedWithLabel:u("pregnancyWeightGain.weekInput"),options:f,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:b,onChange:e=>y({label:e.label,value:e.value})}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"inline-block",marginBottom:"9px",color:Q.colors.gray600}},u("pregnancyWeightGain.weekInput")),e.createElement(bt,{options:f,placeholder:String(b.label),id:"weight-gain-dropdown",size:"md",value:b,onChange:e=>y({label:e.label,value:e.value})}))),e.createElement(wl,{siteType:m,info:s,errorMessage:l,onChange:r})),"marryBaby"!==m&&e.createElement(Bi,{className:"hide-asking-desk","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:Q.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(Ai,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:h,onChange:e=>v(e),className:"gender-selector",id:"twins-check-mobile",direction:"horizontal",size:"small"})),"marryBaby"===m&&e.createElement(ga,{name:"twins",label:u("pregnancyWeightGain.havingTwins"),checked:"twins"===h,siteType:"marryBaby",onChange:()=>{v("twins"===h?"notwins":"twins")},value:"twins"}),e.createElement($i,{"data-is-side":d,"data-site":m},e.createElement(W,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${Ee["marryBaby"===m?"vi-VN_MB":a]}/${x}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===m?"secondary":"primary",onClick:()=>n(h,b.value),role:"button"},u("dueDatePage.lastPeriod.calculate"))))))},Cl=Le.div`
2433
2433
  flex: 1;
2434
- `,xl=Le.div`
2434
+ `,Nl=Le.div`
2435
2435
  padding: 0 10px;
2436
- `,wl=Le.div`
2436
+ `,Bl=Le.div`
2437
2437
  display: flex;
2438
2438
  height: 80px;
2439
2439
  align-items: center;
@@ -2448,11 +2448,11 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2448
2448
  ${A.mbDown} {
2449
2449
  height: 70px;
2450
2450
  }
2451
- `,kl=Le.div`
2451
+ `,zl=Le.div`
2452
2452
  display: grid;
2453
2453
  grid-template-columns: repeat(7, 1fr);
2454
2454
  row-gap: 2px;
2455
- `,Cl=Le(kl)`
2455
+ `,$l=Le(zl)`
2456
2456
  margin-bottom: 8px;
2457
2457
  `;Le.div`
2458
2458
  height: 40px;
@@ -2460,14 +2460,14 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2460
2460
  display: flex;
2461
2461
  align-items: center;
2462
2462
  justify-content: center;
2463
- `;const Nl=Le.div`
2463
+ `;const Sl=Le.div`
2464
2464
  font-size: 14px;
2465
2465
  display: flex;
2466
2466
  justify-content: center;
2467
2467
  align-items: center;
2468
2468
  color: 1px solid ${Q.colors.gray800};
2469
2469
  font-weight: 300;
2470
- `,Bl=Le.div`
2470
+ `,Pl=Le.div`
2471
2471
  width: 18px;
2472
2472
  position: relative;
2473
2473
  &::before {
@@ -2479,11 +2479,11 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2479
2479
  right: 50%;
2480
2480
  background: ${Q.colors.neutral100};
2481
2481
  }
2482
- `,zl=Le.div`
2482
+ `,Dl=Le.div`
2483
2483
  margin: 0 auto;
2484
- `,$l=Le.div`
2484
+ `,Ll=Le.div`
2485
2485
  position: relative;
2486
- `,Sl=kl,Pl=Le.div`
2486
+ `,Il=zl,Tl=Le.div`
2487
2487
  position: relative;
2488
2488
  display: flex;
2489
2489
  justify-content: center;
@@ -2523,7 +2523,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2523
2523
  right: 50%;
2524
2524
  }
2525
2525
  }
2526
- `,Dl=Le.div`
2526
+ `,Ml=Le.div`
2527
2527
  position: relative;
2528
2528
  font-weight: 600;
2529
2529
  ${A.mbDown} {
@@ -2560,7 +2560,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2560
2560
  border-radius: 32px;
2561
2561
  border: 1px solid ${Q.colors.primaryBase};
2562
2562
  }
2563
- `;const Ll={"en-PH":zt,"vi-VN":St,"zh-TW":Pt,"id-ID":$t};function Il(a){const{value:n={from:null,to:null}}=a,[l,o]=t(null),{isMobile:r}=_(),[s,c]=t((()=>n)),[d,m]=t((()=>{var e;return Ve(null!==(e=n.from)&&void 0!==e?e:new Date)})),p=i((()=>Ge(d,1)),[d]);const g=Object.assign(Object.assign({},a),{goToNextMonth:function(){m((e=>Ge(e,1)))},goToPreviousMonth:function(){m((e=>Ze(e,1)))},range:s,setRange:c,hoverDay:l,setHoverDay:o});return e.createElement(e.Fragment,null,e.createElement(Ml,Object.assign({},g,{date:d})),!r&&e.createElement(Bl,null),!r&&e.createElement(Ml,Object.assign({},g,{date:p})))}function Ml({date:t,range:n,setRange:l,onChange:o,goToPreviousMonth:r,goToNextMonth:s,minDate:c,maxDate:d,close:m=(()=>{}),autoClose:p=!1,hoverDay:g,setHoverDay:u}){const{locale:h}=He(),v=i((()=>{var e;return null!==(e=Ll[h])&&void 0!==e?e:Ll["en-PH"]}),[h]),b=i((()=>Re(t,"MMMM",{locale:v})),[t,v]),y=i((()=>v?[1,2,3,4,5,6,0].map((e=>v.localize.day(e,{width:"narrow"}))):[]),[v]);function f(t,a){if(null===t)return e.createElement(Pl,{key:`idx-${a}`,"data-empty":"true"});const i=t.getDate(),o=Ye(t),r=!!n.from&&Xe(n.from,t),s=!!n.to&&Xe(n.to,t),h=r||s;let v=!1;null!==g&&n.from&&Ue(n.from,g)&&!n.to?v=Ke(t,{start:n.from,end:g}):n.from&&n.to&&(v=Ke(t,{start:n.from,end:n.to}));let b=!1;return c&&d?b=!Ke(t,{start:c,end:d}):c?b=Ue(t,c):d&&(b=Qe(t,d)),e.createElement(Pl,{key:i,"data-is-today":o,"data-is-past":!o&&Je(t),"data-is-selected":h,"data-is-disabled":b,"data-in-range":v,"data-is-from":r,"data-is-to":s,onMouseEnter:()=>{u(t)},onMouseLeave:()=>u(null),onClick:()=>{b||l((e=>(p&&n.from&&!n.to&&m(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?Ue(e,t.from)?Object.assign(Object.assign({},t),{from:e}):Object.assign(Object.assign({},t),{to:e}):t:Object.assign(Object.assign({},t),{from:e})}(t,e))))}},e.createElement(Dl,{onClick:()=>{}},e.createElement("p",null,i)))}return a((()=>{n.from&&n.to&&o(n)}),[n]),e.createElement(El,{className:"calendar-wrapper"},e.createElement(wl,null,e.createElement(je,{onClick:r,size:"md",color:"ghost",icon:e.createElement("img",{src:X.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),e.createElement("div",{className:"calendar-month"},b,e.createElement("strong",null,Re(t,"yyyy"))),e.createElement(je,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:X.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),e.createElement(xl,null,e.createElement("div",null,e.createElement(Cl,null,y.map(((t,a)=>e.createElement(Nl,{key:`${t}-${a}`},t))))),e.createElement("div",null,function(){const a=t.getFullYear(),i=t.getMonth(),l=qe(t),o=[];for(let e=1;e<=l;e++)o.push(new Date(a,i,e));const r=o[0]?o[0].getDay():0;if(1!==r){const e=0===r?6:r-1;for(let t=0;t<e;t++)o.unshift(null)}return e.createElement($l,{key:`month-${i}`,"data-month-index":i,"data-has-range":Boolean(n.from&&n.to)},e.createElement(zl,null,e.createElement(Sl,null,o.map(f))))}())))}const Tl=Le.div`
2563
+ `;const Al={"en-PH":$t,"vi-VN":Pt,"zh-TW":Dt,"id-ID":St};function jl(a){const{value:n={from:null,to:null}}=a,[l,o]=t(null),{isMobile:r}=_(),[s,c]=t((()=>n)),[d,m]=t((()=>{var e;return Ze(null!==(e=n.from)&&void 0!==e?e:new Date)})),p=i((()=>qe(d,1)),[d]);const g=Object.assign(Object.assign({},a),{goToNextMonth:function(){m((e=>qe(e,1)))},goToPreviousMonth:function(){m((e=>Ye(e,1)))},range:s,setRange:c,hoverDay:l,setHoverDay:o});return e.createElement(e.Fragment,null,e.createElement(Ol,Object.assign({},g,{date:d})),!r&&e.createElement(Pl,null),!r&&e.createElement(Ol,Object.assign({},g,{date:p})))}function Ol({date:t,range:n,setRange:l,onChange:o,goToPreviousMonth:r,goToNextMonth:s,minDate:c,maxDate:d,close:m=(()=>{}),autoClose:p=!1,hoverDay:g,setHoverDay:u}){const{locale:h}=He(),v=i((()=>{var e;return null!==(e=Al[h])&&void 0!==e?e:Al["en-PH"]}),[h]),b=i((()=>Ue(t,"MMMM",{locale:v})),[t,v]),y=i((()=>v?[1,2,3,4,5,6,0].map((e=>v.localize.day(e,{width:"narrow"}))):[]),[v]);function f(t,a){if(null===t)return e.createElement(Tl,{key:`idx-${a}`,"data-empty":"true"});const i=t.getDate(),o=Ke(t),r=!!n.from&&Qe(n.from,t),s=!!n.to&&Qe(n.to,t),h=r||s;let v=!1;null!==g&&n.from&&Ge(n.from,g)&&!n.to?v=Je(t,{start:n.from,end:g}):n.from&&n.to&&(v=Je(t,{start:n.from,end:n.to}));let b=!1;return c&&d?b=!Je(t,{start:c,end:d}):c?b=Ge(t,c):d&&(b=et(t,d)),e.createElement(Tl,{key:i,"data-is-today":o,"data-is-past":!o&&tt(t),"data-is-selected":h,"data-is-disabled":b,"data-in-range":v,"data-is-from":r,"data-is-to":s,onMouseEnter:()=>{u(t)},onMouseLeave:()=>u(null),onClick:()=>{b||l((e=>(p&&n.from&&!n.to&&m(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?Ge(e,t.from)?Object.assign(Object.assign({},t),{from:e}):Object.assign(Object.assign({},t),{to:e}):t:Object.assign(Object.assign({},t),{from:e})}(t,e))))}},e.createElement(Ml,{onClick:()=>{}},e.createElement("p",null,i)))}return a((()=>{n.from&&n.to&&o(n)}),[n]),e.createElement(Cl,{className:"calendar-wrapper"},e.createElement(Bl,null,e.createElement(je,{onClick:r,size:"md",color:"ghost",icon:e.createElement("img",{src:X.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),e.createElement("div",{className:"calendar-month"},b,e.createElement("strong",null,Ue(t,"yyyy"))),e.createElement(je,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:X.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),e.createElement(Nl,null,e.createElement("div",null,e.createElement($l,null,y.map(((t,a)=>e.createElement(Sl,{key:`${t}-${a}`},t))))),e.createElement("div",null,function(){const a=t.getFullYear(),i=t.getMonth(),l=Xe(t),o=[];for(let e=1;e<=l;e++)o.push(new Date(a,i,e));const r=o[0]?o[0].getDay():0;if(1!==r){const e=0===r?6:r-1;for(let t=0;t<e;t++)o.unshift(null)}return e.createElement(Ll,{key:`month-${i}`,"data-month-index":i,"data-has-range":Boolean(n.from&&n.to)},e.createElement(Dl,null,e.createElement(Il,null,o.map(f))))}())))}const _l=Le.div`
2564
2564
  display: block;
2565
2565
  position: relative;
2566
2566
  width: 270px;
@@ -2571,7 +2571,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2571
2571
  ${A.mbDown} {
2572
2572
  width: 100%;
2573
2573
  }
2574
- `,Al=Le.div`
2574
+ `,Fl=Le.div`
2575
2575
  display: flex;
2576
2576
  position: absolute;
2577
2577
  top: 46px;
@@ -2590,7 +2590,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2590
2590
  ${A.mbDown} {
2591
2591
  width: 100%;
2592
2592
  }
2593
- `;function jl({inputSize:a="md",name:l="date-range-picker",value:o,minDate:r,maxDate:s,onChange:c,className:d,autoClose:m=!1}){o||(o={from:null,to:null});const[p,g]=t(!1);function u(){g(!1)}const h=n(null);function v(e){c&&c(e)}function b(e){return Re(e,"dd/MM/yyyy")}Bt(h,(()=>{u()}));const y=i((()=>o.from&&o.to?Xe(o.from,o.to)?b(o.from):`${b(o.from)} - ${b(o.to)}`:""),[o.from,o.to]);return e.createElement(Tl,{className:[d,p&&"focused"].filter(Boolean).join(" "),ref:h},e.createElement("label",{htmlFor:l},e.createElement(M,{size:a,value:y,name:l,actionIcon:e.createElement("img",{src:X.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>g(!0)})),p?e.createElement(Al,{onMouseDown:e=>{e.stopPropagation()}},e.createElement(Il,{value:o,onChange:v,minDate:r,maxDate:s,close:u,autoClose:m})):null)}var Ol="WUqzfRb",_l="MnVGtSY",Fl="NclbhXQ";const Hl=({LinkComponent:t,page:a,isLast:n,onChangePage:i})=>{const{label:l,value:o,isDropdown:r,dropdownItems:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m}=a;return r?e.createElement(bt,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:i,className:"collapsed-breadcrumb"}):e.createElement("div",{className:Fl,title:"string"!=typeof l?o:l,"data-last":n},t&&e.createElement(t,{"data-event-category":c,"data-event-action":d,"data-event-label":m,href:o||"#"},l))},Rl=({className:t,pages:a,size:n,LinkComponent:o="a",onChangePage:r,separator:s})=>{const c=i((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return e.createElement("div",{"data-size":n,className:`${Ol} ${t||""}`},c.map(((t,a)=>{const i=a+1===c.length;return e.createElement(l,{key:a},e.createElement(Hl,{LinkComponent:o,page:t,isLast:i,onChangePage:r}),!i&&(t.separator||s||e.createElement("div",{className:_l,"data-size":n})))})))},Wl=Le.div`
2593
+ `;function Hl({inputSize:a="md",name:l="date-range-picker",value:o,minDate:r,maxDate:s,onChange:c,className:d,autoClose:m=!1}){o||(o={from:null,to:null});const[p,g]=t(!1);function u(){g(!1)}const h=n(null);function v(e){c&&c(e)}function b(e){return Ue(e,"dd/MM/yyyy")}zt(h,(()=>{u()}));const y=i((()=>o.from&&o.to?Qe(o.from,o.to)?b(o.from):`${b(o.from)} - ${b(o.to)}`:""),[o.from,o.to]);return e.createElement(_l,{className:[d,p&&"focused"].filter(Boolean).join(" "),ref:h},e.createElement("label",{htmlFor:l},e.createElement(T,{size:a,value:y,name:l,actionIcon:e.createElement("img",{src:X.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>g(!0)})),p?e.createElement(Fl,{onMouseDown:e=>{e.stopPropagation()}},e.createElement(jl,{value:o,onChange:v,minDate:r,maxDate:s,close:u,autoClose:m})):null)}var Rl="WUqzfRb",Wl="MnVGtSY",Ul="NclbhXQ";const Vl=({LinkComponent:t,page:a,isLast:n,onChangePage:i})=>{const{label:l,value:o,isDropdown:r,dropdownItems:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m}=a;return r?e.createElement(bt,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:i,className:"collapsed-breadcrumb"}):e.createElement("div",{className:Ul,title:"string"!=typeof l?o:l,"data-last":n},t&&e.createElement(t,{"data-event-category":c,"data-event-action":d,"data-event-label":m,href:o||"#"},l))},Gl=({className:t,pages:a,size:n,LinkComponent:o="a",onChangePage:r,separator:s})=>{const c=i((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return e.createElement("div",{"data-size":n,className:`${Rl} ${t||""}`},c.map(((t,a)=>{const i=a+1===c.length;return e.createElement(l,{key:a},e.createElement(Vl,{LinkComponent:o,page:t,isLast:i,onChangePage:r}),!i&&(t.separator||s||e.createElement("div",{className:Wl,"data-size":n})))})))},Zl=Le.div`
2594
2594
  display: flex;
2595
2595
  gap: 20px;
2596
2596
  width: 100%;
@@ -2621,7 +2621,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2621
2621
  }
2622
2622
  }
2623
2623
  }
2624
- `,Ul=()=>e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),Vl=({url:t,onCopied:a,locale:n,siteType:l})=>{const{t:o}=He(),r=Dt(t||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),s=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Wl,null,e.createElement(p,{size:"p3",color:Q.colors.gray800},o("shareContainer.title")),e.createElement("div",{className:"icon-group"},r.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${t.name}`,"data-event-label":s},t.icon))),e.createElement(je,{theme:l,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(Ul,null),onClick:()=>ee(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(t),null==a||a()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":s})))},Gl=Le(Ct)`
2624
+ `,ql=()=>e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),Yl=({url:t,onCopied:a,locale:n,siteType:l})=>{const{t:o}=He(),r=Lt(t||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),s=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Zl,null,e.createElement(p,{size:"p3",color:Q.colors.gray800},o("shareContainer.title")),e.createElement("div",{className:"icon-group"},r.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${t.name}`,"data-event-label":s},t.icon))),e.createElement(je,{theme:l,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(ql,null),onClick:()=>ee(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(t),null==a||a()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":s})))},Xl=Le(Ct)`
2625
2625
  padding-bottom: 24px;
2626
2626
  .share-container {
2627
2627
  display: flex;
@@ -2655,7 +2655,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2655
2655
  height: 32px;
2656
2656
  }
2657
2657
  }
2658
- `,Zl=()=>e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"})),ql=t=>{var{open:n,title:i,onClose:l,onCopied:o,onShared:s,url:c,locale:d}=t,m=J(t,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:g}=He(),u=r((()=>ee(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(c),null==o||o()}))),[c,o]),h=Dt(c||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(d)));return a((()=>{n&&navigator.share&&navigator.share({title:null!=i?i:"Read This Post",url:c}).then((()=>{null==s||s()})).catch((()=>{null==l||l()}))}),[c,i,s,n]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Gl,Object.assign({title:g("share.title"),onClose:l,open:n,placement:"bottom"},m),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(p,{weight:"semiBold",size:"s3",color:Q.colors.gray600},g("share.title")),e.createElement("div",{className:"icon-group"},h.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer"},t.icon))))),e.createElement("div",{className:"link-container"},e.createElement(p,{weight:"semiBold",size:"s3",color:Q.colors.gray600},g("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Oe,{name:"link",size:"md",value:c,isDisabled:!0}),e.createElement(je,{size:"md",type:"button",color:"tertiary",icon:e.createElement(Zl,null),onClick:u})))))},Yl=Le.div`
2658
+ `,Kl=()=>e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"})),Ql=t=>{var{open:n,title:i,onClose:l,onCopied:o,onShared:s,url:c,locale:d}=t,m=J(t,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:g}=He(),u=r((()=>ee(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(c),null==o||o()}))),[c,o]),h=Lt(c||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(d)));return a((()=>{n&&navigator.share&&navigator.share({title:null!=i?i:"Read This Post",url:c}).then((()=>{null==s||s()})).catch((()=>{null==l||l()}))}),[c,i,s,n]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Xl,Object.assign({title:g("share.title"),onClose:l,open:n,placement:"bottom"},m),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(p,{weight:"semiBold",size:"s3",color:Q.colors.gray600},g("share.title")),e.createElement("div",{className:"icon-group"},h.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer"},t.icon))))),e.createElement("div",{className:"link-container"},e.createElement(p,{weight:"semiBold",size:"s3",color:Q.colors.gray600},g("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Oe,{name:"link",size:"md",value:c,isDisabled:!0}),e.createElement(je,{size:"md",type:"button",color:"tertiary",icon:e.createElement(Kl,null),onClick:u})))))},Jl=Le.div`
2659
2659
  position: fixed;
2660
2660
  z-index: 48;
2661
2661
  bottom: 0;
@@ -2688,7 +2688,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2688
2688
  opacity: 1;
2689
2689
  pointer-events: auto;
2690
2690
  }
2691
- `,Xl=Le.div`
2691
+ `,eo=Le.div`
2692
2692
  display: flex;
2693
2693
  justify-content: center;
2694
2694
  align-items: center;
@@ -2710,7 +2710,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2710
2710
  background: none;
2711
2711
  border: none;
2712
2712
  }
2713
- `,Kl=Le.div`
2713
+ `,to=Le.div`
2714
2714
  width: 100%;
2715
2715
  padding: 0 5px 1.5px;
2716
2716
  display: flex;
@@ -2733,7 +2733,7 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2733
2733
  color: ${Q.colors.gray400};
2734
2734
  font-weight: 400;
2735
2735
  }
2736
- `,Ql=Le.div`
2736
+ `,ao=Le.div`
2737
2737
  background-color: white;
2738
2738
  background-image: url(${X.getAssetPath("close-blue.svg")});
2739
2739
  background-repeat: no-repeat;
@@ -2745,4 +2745,4 @@ import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,me
2745
2745
  top: 1px;
2746
2746
  right: 1px;
2747
2747
  cursor: pointer;
2748
- `,Jl={},eo=e=>{if(Jl[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([Jl[e]]),delete Jl[e]}))}},to=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],ao=o(c((function({className:i,adUnitPath:l,size:o,divId:r,pos:s,sizeMapping:c,contentId:d,isHidden:m,hideIfHasSubot:p,isSticky:g,refreshInterval:u,customTargetings:h,style:v,adDefaultSize:b,noWrapper:y,showCloseBtn:f,onCloseAd:E,headerBottom:x,wrapperProps:w,locale:k,isMarryBaby:C},N){const B=u||(k===$e.Vietnam&&s.some((e=>to.includes(e)))?30:void 0),{t:z}=He(),$=n(null),S=n(null),P=n(B);P.current=B;const[D,L]=t(!1),I=()=>{P.current&&(null!==S.current&&clearInterval(S.current),S.current=window.setInterval((()=>{window.googletag=window.googletag||{cmd:[]};const{googletag:e}=window;e.cmd.push((function(){Jl[r]&&e.pubads().refresh([Jl[r]])}))}),1e3*P.current))};if(a((()=>()=>{eo(r),S.current&&clearInterval(S.current)}),[]),a((()=>{I()}),[B]),a((()=>{m||(({contentId:e,adUnitPath:t,size:a,divId:n,pos:i,sizeMapping:l,hideIfHasSubot:o,customTargetings:r,onSuccess:s})=>{if(!n||!document.getElementById(n))return console.error("divId is required");eo(n),window.googletag=window.googletag||{cmd:[]};const{googletag:c}=window;c.cmd.push((function(){const d=document.querySelector('meta[name="content_id"]'),m="string"==typeof e?e:null==d?void 0:d.content,p=c.defineSlot(t,a,n);if(p){try{r&&Object.keys(r).forEach((e=>{e&&(null==p||p.setTargeting(e,r[e]))}))}catch(e){console.error(e)}Jl[n]=p,p.setTargeting("Pos",i),p.addService(c.pubads()),m&&p.setTargeting("Content_ID",m),l&&p.defineSizeMapping(l),o&&document.getElementById("subot--container")&&p.setTargeting("chatbot",!0),c.display(n),null==s||s()}}))})({contentId:d,adUnitPath:l,size:o,divId:r,pos:s,sizeMapping:c,hideIfHasSubot:p,customTargetings:h,onSuccess:I})}),[m]),D)return null;const M=e.createElement("div",{style:{position:"relative",width:"fit-content",height:"fit-content",overflow:"hidden",maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{ref:N,id:r}),f&&e.createElement(Ql,{onClick:()=>{null==E||E(),L(!0)}}));if(g)return M;const T=b?b[0]:o?Array.isArray(o[0])?o[0][0]:o[0]:void 0,A=b?b[1]:o?Array.isArray(o[0])?o[0][1]:o[1]:void 0;return e.createElement(te,Object.assign({},w,{className:i}),e.createElement(Xl,{ref:$,className:i,style:v,"data-no-wrapper":!!y,"data-header-bottom":!!x},y?M:e.createElement(e.Fragment,null,e.createElement(Kl,{"data-header-bottom":!!x},e.createElement("img",{src:C?X.getAssetPath("adsIcon-mb.svg"):X.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),e.createElement("span",null,z("adBanner.title"))),e.createElement("div",{style:{minWidth:T||"100%",minHeight:A||"100%",position:"relative"}},M))))})),((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),no=({className:i,adUnitPath:l,divId:o,isMobile:r,contentId:s,customTargetings:c,locale:d,isMarryBaby:m})=>{const[p,g]=t(!0),[u,h]=t(!1),[v,b]=t(!0),y=n(null),f=n(Lt()),E=n(null),x=n(),w=n();return a((()=>{const e=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{var t;document.getElementById("subot--container")?g(!0):(g(!1),(null===(t=y.current)||void 0===t?void 0:t.clientHeight)?b(!1):b(!0)),e()}),4e3)};return e(),()=>{x.current&&clearTimeout(x.current),w.current&&clearTimeout(w.current)}}),[]),p||u?null:e.createElement(Yl,{key:r?"mobile":"desktop",ref:E,className:i,"data-visible":!v},l&&e.createElement(ao,{wrapperProps:{m:0},ref:y,adUnitPath:l,size:r?[[320,50],[320,100]]:[728,90],divId:(o||"div-gpt-ad-sticky")+(r?"-mobile":"")+s+String(f.current),pos:["Sticky"],contentId:s,hideIfHasSubot:r,customTargetings:c,adDefaultSize:r?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>h(!0),refreshInterval:60,locale:d,isMarryBaby:m}))},io=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:X.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:X.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:X.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];var lo;!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"}(lo||(lo={}));const oo={DUE_DATE:lo.DUE_DATE,BMI:lo.BMI,BMR:lo.BMR,OVULATION:lo.OVULATION,IFRAME:lo.IFRAME,PWG:lo.PWG,THR:lo.THR,BABY_VACCINE:lo.BABY_VACCINE,BABY_GROWTH:lo.BABY_GROWTH,BABY_POOP:lo.BABY_POOP},ro={[oo.DUE_DATE]:X.getAssetPath("health-tools/due-date-icon.svg")};var so,co,mo,po;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(so||(so={})),function(e){e.Option="option"}(co||(co={})),function(e){e.Button="button",e.Checkbox="checkbox"}(mo||(mo={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(po||(po={}));const go={pregnancy:so.Pregnant,parenting:so.Parenting},uo={[so.Pregnant]:"pregnant",[so.Parenting]:"parent"},ho=e=>({[oo.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:oo.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[oo.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:oo.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[oo.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:oo.BABY_GROWTH},[Ce.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:X.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:Ce.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),vo=d({}),bo=t=>{var a=J(t,[]);const{locale:n}=He(),{type:i,isMobile:l,currentUrl:o,isMarketing:r,isLoggedIn:s,setShouldAcquisitionModalOpen:c}=m(vo);return e.createElement(me,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>ee(void 0,void 0,void 0,(function*(){const e=r?It(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;s?null==c||c():window.location.href=`${Mt(n)}/?returnUrl=${encodeURIComponent(e)}`})),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":o,className:"pointer-event-child-none"},a),e.createElement(j,{src:r?X.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_Marketing.png`):X.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_${i}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},yo="api/v1/categories?site={website_url}",fo="api/v1/subscription?site={website_url}",Eo="api/v1/categories?site={website_url}";var xo=re((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:ie(32),padding:`${ie(6)} ${ie(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const wo=({heading:t,description:a,thumbnail:n={desktop:"",mobile:""},hideDescOnMobile:i,children:l})=>{const{isMobile:o,minHeight:r}=m(vo);return e.createElement(te,{sx:()=>({borderRadius:ie(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},e.createElement(te,{sx:e=>({minHeight:ie(r),borderRadius:"inherit",background:`url(${o?n.mobile:n.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${ie(24)} ${ie(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${ie(22)} ${ie(32)}`}})},e.createElement(se,{spacing:ie(16)},e.createElement(se,{spacing:ie(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},t&&e.createElement(K,{tag:"h4"},t),!(i&&o)&&a&&e.createElement(p,{size:"p4"},a)),e.createElement(te,null,l))))},ko=t=>{const{styleType:a=mo.Button,items:n=[],buttonProps:l,styles:o,submitBtnTracking:s}=t,{classes:c}=xo(void 0,{name:"PremiumBannerWithOptions",styles:o}),{t:d,locale:p}=He(),{surveyType:g,articleId:u,handleClickOption:h,hasPremiumBanner:v,source:b,isMobile:y,setShowPNModal:f}=m(vo),E=i((()=>v?n:n.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean)),[n]),{getHealthToolLink:x}=xt(p),w=Tt({initialValues:{bannerOptions:[]}}),k=e=>ee(void 0,void 0,void 0,(function*(){return yield ot(rt(st.HEALTH_TOOL.CREATE,{_locale:p,type:uo[g]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:u,source:b}})})),C=r((()=>e.createElement(ne,{gap:ie(8),className:c.wrapper},E.map(((t,a)=>e.createElement(te,{key:String(a),component:t.isLink?"a":"div",href:t.isRiskScreener?`https://${Ee[p]}/bot/${Ne[p][t.activeTool]}/`:t.isLink?x(t.activeTool):void 0},e.createElement(W,Object.assign({className:c.button,classNames:{label:c.buttonLabel},size:"sm"},t.tracking,l,{onClick:()=>{t.isLink||(t.isPNBtn&&f(!0),k(t.value),h(t.value))}}),t.label)))))),[E,w]),N=r((()=>e.createElement(ne,null,e.createElement(ne,{align:"center",gap:ie(24),sx:e=>({background:"white",borderRadius:ie(8),padding:ie(4),[e.fn.largerThan("sm")]:{paddingLeft:ie(16)}})},e.createElement(V.Group,Object.assign({},w.getInputProps("bannerOptions",{type:"checkbox"})),e.createElement(ne,{gap:ie(16)},E.map(((t,a)=>e.createElement(V,{key:String(a),value:t.value,label:t.label,styles:{label:{cursor:"pointer"}}}))))),e.createElement(W,Object.assign({size:"sm"},s,l,{disabled:0===w.getInputProps("bannerOptions").value.length,leftIcon:y?e.createElement(tt.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=w.getInputProps("bannerOptions").value;k(e.join("|")),h(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:ie(38),minWidth:"auto",padding:0}}})}),!y&&d("pnBanner.submit"))))),[E,w]);return e.createElement(wo,Object.assign({},t),a===mo.Button?C():a===mo.Checkbox?N():null)},Co=t=>{var a,n;const{t:l}=He(),{heading:o,description:r,thumbnail:s,btnLabel:c,value:d,isRiskScreener:g,hideDescOnMobile:u,dataEventAction:h}=t,{locale:v}=He(),{isMobile:b}=m(vo),{getHealthToolLink:y,allTools:f}=xt(v),E=g?"mainBanner":"toolBanner",x=i((()=>{const t=g?`https://${Fe?"":"discover."}${Ee[v]}/bot/${Ne[v][d]}`:y(d);return e.createElement("a",{href:t},e.createElement(W,{size:"sm","data-event-category":"Focused Audience","data-event-action":h,"data-event-label":t},c||l("pnBanner.caclNow")))}),[f]);return"mainBanner"===E?e.createElement(wo,Object.assign({},Object.assign(Object.assign({},t),{thumbnail:t.thumbnail})),x):e.createElement(ne,{gap:ie(7),align:"center",justify:"space-between",sx:e=>({borderRadius:ie(8),background:e.colors.blue[0],minHeight:ie(180),padding:`${ie(24)} ${ie(16)}`,[e.fn.largerThan("sm")]:{padding:`${ie(34)} ${ie(32)}`}})},e.createElement(se,{spacing:ie(12)},e.createElement(se,{spacing:ie(4)},o&&e.createElement(K,{tag:"h4"},o),!(b&&u)&&r&&e.createElement(p,{size:"p4"},r)),e.createElement(ne,{gap:ie(8),sx:{button:{minWidth:ie(120)}}},x)),e.createElement(ne,{align:"center",justify:"center",sx:e=>({width:ie(96),height:ie(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:ie(112),height:ie(112)},img:{maxWidth:ie(64),[e.fn.largerThan("sm")]:{maxWidth:ie(73)}}})},e.createElement("img",{alt:"health-tool-icon",src:s||(null===(n=null===(a=f.filter((e=>e.template===d)))||void 0===a?void 0:a[0])||void 0===n?void 0:n.icon)||ro[d]||"",loading:"lazy"})))},No=()=>{var t,a,n;const{t:i}=He(),{state:l,Outside:o}=m(vo);return(null==l?void 0:l.action)===po.ShowTool?e.createElement(o,null,ho(i)[null===(t=null==l?void 0:l.props)||void 0===t?void 0:t.value]?e.createElement(Co,Object.assign({},ho(i)[null===(a=null==l?void 0:l.props)||void 0===a?void 0:a.value],{value:null===(n=null==l?void 0:l.props)||void 0===n?void 0:n.value})):null):(null==l?void 0:l.action)===po.ShowOptionBanner?e.createElement(o,null,e.createElement(ko,Object.assign({},null==l?void 0:l.props))):null},Bo=a=>{var{isMobile:n,children:i,desktopBanner:l=X.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:o=X.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:r={width:937,height:536},mobileBannerRatio:s={width:750,height:480},desktopBannerRatio:c={width:420,height:536},closeProps:d}=a,m=J(a,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:p,height:g}=Se(),u=(g<=667?190:265)+p*s.height/s.width+74,[h,v]=t(!1);return e.createElement(jt,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:ie(r.width),width:"100%",height:"100%",maxHeight:ie(r.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"}}})},m),n?e.createElement(te,{sx:{position:"relative",height:"100%"},onTouchStart:()=>v(!0)},e.createElement(te,{className:"mobile-template",sx:{position:"absolute",height:100*(h?1:u/g)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},e.createElement(te,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:h?0:ie(12),borderTopRightRadius:h?0:ie(12)}},e.createElement(te,{sx:{height:"calc(100% - 74px)",background:`url(${o})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},e.createElement(pe,Object.assign({leftIcon:e.createElement(tt.Close,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:ie(10)}},d,{onClick:()=>null==m?void 0:m.onClose()})),e.createElement(ge,{ratio:(null==s?void 0:s.width)/(null==s?void 0:s.height),w:"100%"}),e.createElement(te,{sx:{padding:`${ie(28)} ${ie(16)} ${ie(16)}`,background:"white"}},i))))):e.createElement(ge,{className:"desktop-template",ratio:r.width/r.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},e.createElement(te,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:ie(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"}},e.createElement("img",{alt:"",src:l,loading:"lazy",style:{borderTopLeftRadius:ie(8),borderBottomLeftRadius:ie(8),height:"100%",display:"block"}}),e.createElement(te,{sx:{position:"relative",height:"100%",width:(r.width-c.width)/r.width*100+"%"}},e.createElement(W,Object.assign({unstyled:!0,leftIcon:e.createElement(tt.Close,null)},d,{onClick:()=>null==m?void 0:m.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),e.createElement(te,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${ie(40)} ${ie(24)} 0`}},i)))))},zo="user/subscription",$o=d({}),So=t=>{var{value:a,name:n}=t,i=J(t,["value","name"]);return e.createElement(G,Object.assign({value:a,withIcon:!0},i,{buttonProps:{styles:()=>({leftIcon:{marginRight:ie(6)},root:{paddingLeft:ie(10),paddingRight:ie(10)}})}}),n)},Po=({topicsGroup:n,onTopicChange:i,isBlock:l=!1,selectedTopics:o=[],inputProps:r,labelProps:s,maxSelect:c=5,hasScroll:d,readonly:g})=>{const{action:{pushNotifications:u}}=m(ct),h=_t(n.map((e=>e.topics||[]))),{t:v}=He(),[b,y]=t([]);a((()=>{y(o)}),[o.length]),a((()=>{null==i||i(b)}),[b]);const f=e=>{e.length>5?u({type:"danger",title:v("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:v("pnTopicSection.maxSelectError.desc")}):!g&&y((()=>h.filter((t=>e.some((e=>t.catId===e))))))};return e.createElement(se,{spacing:12},n.map(((t,a)=>e.createElement(se,{key:String(a),spacing:12},t.label&&e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),t.label),d?e.createElement(ue,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},e.createElement(te,{w:800},e.createElement(he.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},r,{onChange:f}),e.createElement(ne,{gap:8,wrap:"wrap"},t.topics.map((a=>e.createElement(So,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)))))))):e.createElement(he.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},r,{onChange:f}),e.createElement(ne,{gap:8,wrap:"wrap"},t.topics.map((a=>a.catId?e.createElement(So,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)):e.isValidElement(a.component)?a.component:null))))))))},Do=t=>{var{heading:a,children:n,stickyActions:i}=t,l=J(t,["heading","children","stickyActions"]);const{isMobile:o}=m($o),r=e.createElement(se,{spacing:ie(24),sx:{height:"100%"}},e.createElement(K,{tag:"h4",style:{textAlign:"center"}},a),e.createElement(te,null,n));return e.createElement(te,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},o?r:e.createElement(ue,Object.assign({className:"layout-body",h:i?"calc(100% - 90px)":"100%"},l),r),i&&e.createElement(ne,{gap:ie(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:ie(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${ie(24)} 0`}})},i))},Lo=()=>{const{t:n,locale:l}=He(),{data:{userInfo:o},action:{pushNotifications:r}}=m(ct),s=null==o?void 0:o.id,{currentUrl:c,isMobile:d,pnSuggestCategory:g=[],nextStep:u,formValues:h,setFormValues:v,onSubmit:b,submitLoading:y,selectCategory:f,setCategoryLibs:E,setSelectCategory:x,maxSelectCategory:w}=m($o),k=g.map((e=>e.catId)),C=Tt({validate:{name:At(n("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},h),{fitnessTopics:k})}),[N,B]=t([]),[z,$]=t([]);a((()=>{ee(void 0,void 0,void 0,(function*(){var e;try{const t=yield ot(dt(Eo,{_locale:l}),"get"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!k.includes(e.catId)));B(g),$(a),E([...g,...a])}catch(e){console.log(e)}}))}),[]),a((()=>{s&&C.setFieldValue("name",(null==o?void 0:o.name)||"")}),[s]);const S=()=>{""!==C.getInputProps("name").value?(v(C.getTransformedValues()),u()):C.validateField("name")},P=i((()=>e.createElement(W,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:c,leftIcon:e.createElement(tt.Plus,{size:16,color:"#262626",useCurrentColor:!0}),onClick:S,styles:e=>({root:{borderRadius:ie(6),padding:"2px 15px",height:ie(40)},label:{fontSize:ie(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:ie(12),lineHeight:ie(16),height:ie(40)}},leftIcon:{marginRight:"5px"}})},e.createElement(p,{size:d?"p3":"p4"},n("home.seeMore")))),[C]);return a((()=>{C.setFieldValue("fitnessTopics",f.map((e=>e.catId)))}),[f]),e.createElement("form",{style:{height:"100%"},onSubmit:C.onSubmit((e=>{if(0===f.length)return r({type:"danger",title:n("newsletter.error.minTitle"),message:n("newsletter.error.minCotennt")}),!1;v(e),null==b||b(e.name)}))},e.createElement(Do,{heading:n("healthToolPNModal.heading"),stickyActions:e.createElement(e.Fragment,null,e.createElement(W,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:c,loading:y,sx:{maxWidth:ie(240)}},n("healthToolPNModal.register")))},e.createElement(se,{spacing:ie(16)},e.createElement(U,Object.assign({label:n("newsletter.welcome.description")},C.getInputProps("name"))),e.createElement(Po,{topicsGroup:[...0===g.length&&0===z.length?[{topics:[{component:P}]}]:[],...g.length>0?[{label:n("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...g,...0===z.length?[{component:P}]:[]]}]:[],...z.length>0?[{label:n("healthToolPNModal.findMore.chooseFav"),topics:[...z,...z.length>0?[{component:P}]:[]]}]:[]],selectedTopics:[...N],labelProps:{size:d?"p3":"p4",color:"gray.6"},onTopicChange:x,maxSelect:w}))))},Io=c((function(t,a){var{label:n}=t,i=J(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(oe,{noWrap:!0},e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.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"})),e.createElement(p,{size:"p3"},n)))})),Mo=c((function(t,a){var{label:n}=t,i=J(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(p,{size:"p3"},n))})),To=({history:t,onDelete:a})=>e.createElement(ne,{wrap:"wrap",gap:8},Ft(t,"catId").map((t=>e.createElement(ve,{key:t.catId,rightSection:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==a?void 0:a(t)},e.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 ${Z.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},e.createElement(p,{size:"p4"},t.localName))))),Ao=({topics:n,onTopicChange:i,isBlock:l=!1,selectedTopics:o,labelProps:r,maxSelect:s=5})=>{const{action:{pushNotifications:c}}=m(ct),[d,g]=t([]),{t:u}=He();a((()=>{g(o)}),[o.length]),a((()=>{i(d)}),[d]);return n&&0!==n.length?e.createElement(se,{spacing:12,px:16,mx:-16},e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},r),u("pnTopicSection.recentView")),e.createElement(he.Group,{value:d.map((e=>e.catId)),onChange:e=>{l&&d.length<e.length?c({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:s}),message:u("pnTopicSection.maxSelectError.desc")}):g((()=>n.filter((t=>e.some((e=>t.catId===e))))))},multiple:!0},e.createElement(ne,{gap:8,wrap:"wrap"},n.map(((t,a)=>e.createElement(So,{key:a,value:t.catId,name:t.localName,isBlock:l})))))):null},jo=t=>{var{topic:a,active:n,onClick:i}=t,l=J(t,["topic","active","onClick"]);return e.createElement(te,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:ie(130),[e.fn.largerThan("sm")]:{minHeight:ie(138)}}),onClick:()=>i(a,n)},l),n&&e.createElement(te,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},e.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.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"}),e.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"}))),e.createElement(te,{sx:{borderRadius:"8px"}},e.createElement(R,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},e.createElement(te,null,e.createElement("img",{src:a.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),e.createElement(p,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},a.localName||""))},Oo=({topics:i,selectedTopics:l=[],onTopicChange:o,isBlock:r=!1,labelProps:s,pushNotifications:c,maxSelect:d=5})=>{const{t:m}=He(),[g,u]=t([]),h=(e,t)=>{if(t)u((t=>t.filter((t=>t.catId!==e.catId))));else{if(r)return void c({type:"danger",title:m("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:m("pnTopicSection.maxSelectError.desc")});u((t=>[...t,e]))}};a((()=>{u(l)}),[l.length]),a((()=>{o(g)}),[g]);const[v,b]=t(!1),[y,f]=t(0),[E,x]=t(0),w=n(null),k=()=>{b(!1)};return e.createElement(se,{spacing:10},e.createElement(ne,{justify:"space-between",align:"center",w:"100%"},e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},s),m("pnTopicSection.trending"))),e.createElement(te,null,e.createElement(ue,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:w,viewportProps:{onMouseDown:e=>{e.preventDefault(),w.current&&(b(!0),f(e.pageX-w.current.offsetLeft),x(w.current.scrollLeft))},onMouseUp:k,onMouseLeave:k,onMouseMove:e=>{if(e.preventDefault(),!v||!w.current)return;const t=2*(e.pageX-w.current.offsetLeft-y);w.current.scrollLeft=E-t}},styles:{viewport:{paddingBottom:16}}},e.createElement(te,{w:{base:112*i.length+8*(i.length-1)+10}},e.createElement(ne,{gap:8},i.map(((t,a)=>e.createElement(jo,{key:a,topic:t,onClick:h,active:g.some((e=>e.catId===t.catId)),w:{base:112}}))))))))},_o=l=>{var{isLoggedIn:o,maxSelect:r=5,values:s=[],labelProps:c,onChange:d}=l,g=J(l,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:u}}=m(ct),[h,v]=t(""),{t:b,locale:y}=He(),f=n(null),[E,x]=t([]),[w,k]=t([]),[C,N]=t([]),[B,z]=t([]),[$,S]=t(null),[P,D]=t([]);a((()=>{ee(void 0,void 0,void 0,(function*(){var e,t;const a=yield ot(dt(yo,{_locale:y}),"get"),n=(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],i=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[],l=Ft([...n,...i],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(D(l||[]),S((null==a?void 0:a.data)||null),s.length>0){const e=n.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"interested"}))),t=i.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"trending"})));z(e),k(t)}}))}),[o]);const L=i((()=>Ft([...E,...w,...B,...C],"catId")),[E,w,B,C]),[I,M]=t(!1);a((()=>{L.length>=r?M(!0):M(!1),null==d||d(L)}),[L]);return e.createElement(se,Object.assign({spacing:ie(16)},g),e.createElement(se,{spacing:ie(8)},e.createElement(p,{size:"p3"},b("pnTopicSection.maxSelectError.detail",{max:r,maxTopic:L.length})),e.createElement(be,{ref:f,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:Z.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:e.createElement(p,{size:"s4",color:"gray.6"},b("pnTopicSection.notFound")),itemComponent:""===h?Io:Mo,size:"lg",placeholder:b("pnTopicSection.plsEnterFavTopics"),data:P,onSearchChange:v,searchValue:h,icon:e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.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:e.createElement(e.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>{return t=e,ee(void 0,void 0,void 0,(function*(){var e;const a={trending:k,recently:N,interested:z,default:x};let n="default";if(I)u({type:"danger",title:b("pnTopicSection.maxSelectError.title",{maxSelect:r}),message:b("pnTopicSection.maxSelectError.desc")});else{const i=[{key:"trending",array:null==$?void 0:$.trending},{key:"recently",array:null==$?void 0:$.recently},{key:"interested",array:null==$?void 0:$.interested}].find((e=>{var a;return null===(a=e.array)||void 0===a?void 0:a.some((e=>e.catId===t[0]))}));n=(null==i?void 0:i.key)||"default",a[n]((e=>[...e,...P.filter((e=>t.some((t=>e.catId===t))))].map((e=>Object.assign(Object.assign({},e),{template:n}))))),null===(e=f.current)||void 0===e||e.blur()}return null}));var t},value:[]}),L&&L.length>0&&e.createElement(To,{history:L,onDelete:e=>{const t={trending:k,recently:N,interested:z,default:x};(t[e.template]||t.default)((t=>{const a=[...t],n=a.findIndex((t=>t.catId===e.catId));return a.splice(n,1),a}))}})),e.createElement(te,{sx:e=>({position:"relative",height:ie(175),[e.fn.largerThan("sm")]:{height:ie(190)}})},e.createElement(te,{sx:{position:"absolute",top:0,right:0,left:0}},e.createElement(Oo,{topics:((null==$?void 0:$.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:w,onTopicChange:k,isBlock:I,labelProps:c}))),e.createElement(Ao,{topics:((null==$?void 0:$.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:C,onTopicChange:N,isBlock:I,labelProps:c}),e.createElement(Po,{labelProps:c,topicsGroup:[{label:b("pnTopicSection.ppAlsoInterested"),topics:((null==$?void 0:$.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:B,onTopicChange:z,isBlock:I}))},Fo=()=>{const{t:t}=He(),{action:{pushNotifications:a}}=m(ct),{prevStep:n,formValues:i,submitLoading:l,onSubmit:o,selectCategory:r,maxSelectCategory:s,setSelectCategory:c,currentUrl:d,isLoggedIn:p}=m($o);return e.createElement(Do,{heading:t("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:ie(25)}},stickyActions:e.createElement(e.Fragment,null,e.createElement(W,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:d,onClick:n},t("healthToolPNModal.back")),e.createElement(W,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:d,onClick:()=>{if(0===r.length)return a({type:"danger",title:t("newsletter.error.minTitle"),message:t("newsletter.error.minCotennt")}),!1;null==o||o(i.name)},loading:l},t("healthToolPNModal.next")))},e.createElement(_o,{isLoggedIn:p,maxSelect:s,values:i.fitnessTopics,onChange:c,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Ho=()=>{const{t:t}=He(),{close:n,selectCategory:i,onRegisterSuccess:l,currentUrl:o,finishLabelOnResult:r,disclaimerText:s}=m($o);return a((()=>()=>{setTimeout((()=>{null==l||l()}),400)}),[]),e.createElement(Do,{heading:t("healthToolPNModal.heading"),stickyActions:e.createElement(W,{fullWidth:!0,sx:{maxWidth:ie(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:o,onClick:()=>{n()}},r||t("healthToolPNModal.finish"))},e.createElement(se,null,e.createElement(ne,{gap:ie(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:ie(8),padding:ie(8)})},e.createElement(te,null,e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.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"}),e.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"}))),e.createElement(p,{size:"p3"},s||t("pnModal.disclaimer"))),e.createElement(K,{tag:"h5"},t("healthToolPNModal.yourPre")),i.length>0&&e.createElement(Po,{topicsGroup:[{label:"",topics:i}],selectedTopics:i,readonly:!0})))},Ro=({isMobile:n,isLoggedIn:i,pnSuggestCategory:l=[],acquisitionInfo:o,currentUrl:s,opened:c,close:d,finishLabelOnResult:p,onRegisterSuccess:g,disclaimerText:u})=>{const{t:h,locale:v}=He(),{action:{pushNotifications:b}}=m(ct),y=X.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),f=X.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[E,x]=t([]),[w,k]=t([]),[C,N]=t(0),[B,z]=t({name:"",fitnessTopics:[]}),[$,S]=t(!1),P=()=>N(2),D=r((e=>ee(void 0,void 0,void 0,(function*(){try{S(!0),yield ot(dt(fo,{website_url:mt(v)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:Ot.get(Be),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},o.userInfo),{name:e||B.name,type_subscription:1}),domain:Ee[v||$e.Vietnam],category:w,perferred:o.preferredTopics.map((({id:e})=>({id:e})))}}),S(!1),yield ot(pt(zo),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),P()}catch(e){console.log({err:e}),S(!1),b({title:h("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[B,w]);return a((()=>{[y,f].forEach((e=>{(new Image).src=e}))}),[]),e.createElement($o.Provider,{value:{currentUrl:s,isMobile:n,isLoggedIn:i,opened:c,close:d,pnSuggestCategory:l,nextStep:()=>N((e=>e<3?e+1:e)),prevStep:()=>N((e=>e>0?e-1:e)),lastStep:P,categoryLibs:E,setCategoryLibs:x,selectCategory:w,setSelectCategory:k,formValues:B,setFormValues:z,maxSelectCategory:5,submitLoading:$,onSubmit:D,onRegisterSuccess:g,finishLabelOnResult:p,disclaimerText:u}},e.createElement(Bo,{isMobile:n,desktopBanner:X.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:X.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:c,onClose:d,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:s}},e.createElement(ye,{active:C,onStepClick:N,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},e.createElement(ye.Step,null,e.createElement(Lo,null)),e.createElement(ye.Step,null,e.createElement(Fo,null)),e.createElement(ye.Step,null,e.createElement(Ho,null)))))},Wo=()=>{const{locale:i}=He(),{isMobile:l,isLoggedIn:o,currentUrl:r,acquisitionInfo:s,categoryIds:c,state:d,setState:p,settings:g,submitHandler:u,subcribeHealthStatus:h,showPNModal:v,setShowPNModal:b,setIsBack:y}=m(vo),[f,E]=t([]),[x,w]=t(v);a((()=>{ee(void 0,void 0,void 0,(function*(){var e,t;const a=yield ot(dt(yo,{_locale:i}),"get"),n=[...(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],...(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[]];E(n.filter((e=>c.includes(Number(e.catId)))))}))}),[]);const k=n([]);return a((()=>{const e=(null==h?void 0:h.value)||"",t=e.split("|").filter(Boolean);let a=e;k.current.push(h),t.length>1&&(null!==k.current[0]&&y(!0),Object.keys(u).map((e=>{const n=e.split("|");if(t.length===n.length){let i=0;t.map((e=>{n.includes(String(e))&&(i+=1)})),i===t.length&&(a=e)}})));const n=t.length>0?u[a]:g;p(n)}),[h]),a((()=>{w(v)}),[v]),(null==d?void 0:d.action)!==po.Hide?e.createElement(e.Fragment,null,e.createElement(No,Object.assign({},g.props)),e.createElement(Ro,{acquisitionInfo:s,isMobile:l,isLoggedIn:o,currentUrl:r,pnSuggestCategory:f,opened:x,close:()=>{var e;w(!1),b(!1),setTimeout((()=>{var e;(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:po.Hide})}),400),(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:po.Hide})},onRegisterSuccess:()=>w(!1)})):null},Uo=({type:n,articleId:l=0,categoryIds:o=[],isMarketing:r,isSurveyType:s,hasPremiumBanner:c,currentUrl:d,isMobile:p,subcribeHealthStatus:g,setShouldAcquisitionModalOpen:u,onValueChange:h,source:v="discover",Wrapper:b})=>{const{t:y}=He(),{data:{userInfo:f}}=m(ct),E=Boolean(null==f?void 0:f.id),[x,w]=t(null),[k,C]=t(),[N,B]=t(""),[z,$]=t(!1),[S,P]=t(!1),D=i((()=>go[n]),[]),L=((e,t)=>({[so.Pregnant]:{action:po.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:mo.Button,thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:X.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:ie(80),[e.fn.largerThan("sm")]:{minWidth:ie(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:po.ShowTool,props:{value:oo.DUE_DATE}},no:{action:po.ShowPremiumModal}}},[so.Parenting]:{action:po.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:mo.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:po.ShowTool,props:{value:oo.BABY_VACCINE}},teenager:{action:po.ShowOptionBanner,props:{styleType:mo.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.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:po.ShowPremiumModal},"teenager.girl":{action:po.ShowTool,activeTool:Ce.HPV,props:{value:Ce.HPV}},"todders|teenager":{action:po.ShowOptionBanner,props:{styleType:mo.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.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:oo.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:po.ShowOptionBanner,props:{styleType:mo.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.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:oo.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(y,d)[D],I=null==L?void 0:L.submitHandler,M=b||te,T=()=>c&&1!==(null==f?void 0:f.subscription)?e.createElement(bo,null):null;return a((()=>{E&&w({userInfo:f,preferredTopics:io,healthTopics:[]})}),[E]),e.createElement(vo.Provider,{value:{settings:L,submitHandler:I,type:n,surveyType:D,value:N,setValue:B,isMobile:p,isLoggedIn:E,isMarketing:r,hasPremiumBanner:c,currentUrl:d,acquisitionInfo:x,categoryIds:o,subcribeHealthStatus:g,articleId:l,onValueChange:h,state:k,setState:C,handleClickOption:e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys(I).map((e=>{const n=e.split("|");if(a.length===n.length){let i=0;a.map((e=>{n.includes(String(e))&&(i+=1)})),i===a.length&&(t=e)}})),t)})(e);if(t){const a=I[t];a.action===po.ShowPremiumModal?c?($(!0),C(Object.assign(Object.assign({},k),{actionParams:{hideBannerWhenClose:a.action===po.ShowPremiumModal}}))):(C({action:po.Hide}),null==h||h(e)):(C(a),null==h||h(e))}},showPNModal:z,setShowPNModal:$,source:v,Outside:M,isBack:S,setIsBack:P,minHeight:180,setShouldAcquisitionModalOpen:u}},void 0!==g?E?s&&L?(()=>{const t=I[(null==g?void 0:g.value)||""];return(null==t?void 0:t.action)===po.ShowPremiumModal?T():e.createElement(Wo,null)})():T():c?e.createElement(bo,null):null:null)},Vo={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var Go="uJQBNNg",Zo="TfG3dM5",qo="aMtjFNf",Yo="cSz2RR-",Xo="GyFm00F";function Ko({userInfo:t,onClickMyProfileButton:a,themeName:n="helloSites"}){const{t:l}=He(),o=i((()=>{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 e.createElement("div",{className:Go,onClick:()=>{a&&a()}},e.createElement(Yt,{className:Zo,type:"rounded",size:"xl",avatarUrl:null==t?void 0:t.avatar,firstLetter:o,backgroundColor:"marryBaby"===n?Q.mbColors.pink:Q.colors.secondaryBase}),e.createElement("div",{className:qo},e.createElement("div",{className:Yo},(null==t?void 0:t.name)||(null==t?void 0:t.username)),e.createElement("div",{className:Xo,style:{"--bg-hellosites":`url(${X.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${X.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},l("userProfile.nav.header.viewProfile"))))}var Qo="fVk18fq",Jo="v8TCvUb",er="mx7T4V3";const tr={myHealth:Q.mbColors.toneYellow,myCommunity:Q.mbColors.toneBlue,mySaved:Q.mbColors.toneGreen},ar={helloSites:{myBooking:()=>X.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>X.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>X.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>X.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>X.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>X.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>X.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>X.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>X.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},nr=({type:t,themeName:a,className:n,onClick:l=(()=>{})})=>{const{t:o}=He(),r=i((()=>{var e,n;return(null===(n=null===(e=ar[a])||void 0===e?void 0:e[t])||void 0===n?void 0:n.call(e))||""}),[t,a]),s=i((()=>"marryBaby"!==a?"transparent":tr[t]),[t,a]);return e.createElement("div",{onClick:function(){l(t)},className:`${Qo} ${n}`},e.createElement("div",{className:er,style:{backgroundColor:s,backgroundImage:`url("${r}")`}}),e.createElement("h3",{className:Jo},o(`userProfile.nav.card.${t}`)))};var ir="gn6HmGG",lr="FCx8FEM",or="zMiRxaE",rr="lZ2Z9MQ",sr="rwm-agG",cr="qMOscoq";const dr=({themeName:a,locale:n,onClickItem:l})=>{const[o,r]=t(""),s=i((()=>"marryBaby"===a?[{key:"userProfile.nav.menu.password",icon:X.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:X.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:X.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:X.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[a]);function c(e){e.subMenu?r((t=>t?"":e.key)):l&&l(e)}return e.createElement("div",{className:ir},s.map((t=>e.createElement(mr,{key:t.key,item:t,openKey:o,onClickItem:c,locale:n}))))},mr=({item:t,openKey:a,onClickItem:n,locale:i})=>{var l;const{t:o}=He();return(null===(l=t.disableLocale)||void 0===l?void 0:l.includes(i))?null:e.createElement("div",{className:`${lr} nav-menu-item`,"data-is-open":a===t.key,key:t.key,"data-has-submenu":!!t.subMenu},e.createElement("div",{className:or,onClick:()=>n(t)},t.icon&&e.createElement("div",{className:rr,style:{backgroundImage:`url("${t.icon}")`}}),o(t.key),t.subMenu&&e.createElement("div",{className:sr,style:{"--after-bg":`url(${X.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),t.subMenu&&e.createElement("div",{className:cr},t.subMenu.map((t=>e.createElement(mr,{key:t.key,item:t,openKey:a,onClickItem:n,locale:i})))))};var pr="-AZt1au",gr="IvSIfCI",ur="eahCJov",hr="XIyViFs",vr="_4y-O0w3",br="kO8iNgD",yr="a1d4E10",fr="Tdguxxf",Er="-mOxsaU",xr="yPeDBNZ";const wr={helloSites:{member:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},kr=({themeName:t,rank:a="member",numberOfPosts:n=0})=>{const{t:l}=He(),o=i((()=>{var e,n;return(null===(n=null===(e=wr[t])||void 0===e?void 0:e[a])||void 0===n?void 0:n.call(e))||""}),[a,t]);return e.createElement("div",{className:vr,"data-user-rank":a},e.createElement("div",{className:br},e.createElement("div",{className:yr},e.createElement("div",{className:fr,style:{backgroundImage:`url("${o}")`}}),e.createElement("h3",{className:Er},l(`userProfile.userRank.${a}`)),n>0&&e.createElement("p",{className:xr},n," ",l("userProfile.nav.header.count.posts")))))},Cr=({SSO_URL:n,UP_BASEPATH:l="user",themeName:o="helloSites",cardUrls:r=Vo,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:m,userInfo:p,togetherApiDomain:g,userPostsNumber:u,onClickNavigationCard:h,onClickMyProfileButton:v,onClickMenuItem:b,onClickLogout:y,isUserProfileNavigatorMenuHidden:f=!1,isMyHealthEnabled:E=!1,locale:x})=>{const{t:w}=He(),[k,C]=t(u||0),N="marryBaby"===o;a((()=>{if(p&&void 0===u){const e=Ht("hhg_user_token");e&&fetch(Rt(De(x,N,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,n;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&C((null===(n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===n?void 0:n.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[x,null!==p,u,g,N]);const B=i((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?E:"eCom"===e?d:"mySaved"!==e||m))}),[N,E]),z=i((()=>"marryBaby"===o?null:e.createElement(je,{color:"tertiary",icon:e.createElement("img",{src:X.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:hr},w("userProfile.nav.menu.logout"))),[o]),$=e=>{e.startsWith("http")||e.startsWith("/")?window.location.href=Wt(e):n&&(window.location.href=Wt(`${n}${l}/${e}`))},S=e=>{const t=r[e];h?h(t):$(t)};return p?e.createElement("div",{className:pr,"data-theme":o},e.createElement(Ko,{userInfo:p,themeName:o,onClickMyProfileButton:()=>{v?v():$("profile")}}),e.createElement(kr,{themeName:o,rank:"member",numberOfPosts:k}),e.createElement("div",{className:gr},B.map((t=>e.createElement(nr,{className:ur,key:t,themeName:o,type:t,onClick:S})))),!f&&e.createElement(e.Fragment,null,e.createElement(dr,{themeName:o,locale:x,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(b?b(e.link):$(e.link))}}),z)):null};export{kr as $,Zt as A,Xt as B,ca as C,tn as D,rl as E,aa as F,na as G,gl as H,Aa as I,fl as J,jl as K,Rl as L,ti as M,Vl as N,bl as O,la as P,ql as Q,oa as R,sn as S,ra as T,ao as U,no as V,Uo as W,go as X,uo as Y,Cr as Z,Ko as _,Yt as a,Kt as b,sa as c,ga as d,ua as e,Ca as f,Pa as g,La as h,Ma as i,Ya as j,Xa as k,ln as l,gn as m,En as n,wn as o,Pn as p,Dn as q,Hn as r,qn as s,ei as t,ai as u,di as v,Ii as w,Hi as x,Xi as y,Qi as z};
2748
+ `,no={},io=e=>{if(no[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([no[e]]),delete no[e]}))}},lo=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],oo=o(c((function({className:i,adUnitPath:l,size:o,divId:r,pos:s,sizeMapping:c,contentId:d,isHidden:m,hideIfHasSubot:p,isSticky:g,refreshInterval:u,customTargetings:h,style:v,adDefaultSize:b,noWrapper:y,showCloseBtn:f,onCloseAd:E,headerBottom:x,wrapperProps:w,locale:k,isMarryBaby:C},N){const B=u||(k===$e.Vietnam&&s.some((e=>lo.includes(e)))?30:void 0),{t:z}=He(),$=n(null),S=n(null),P=n(B);P.current=B;const[D,L]=t(!1),I=()=>{P.current&&(null!==S.current&&clearInterval(S.current),S.current=window.setInterval((()=>{window.googletag=window.googletag||{cmd:[]};const{googletag:e}=window;e.cmd.push((function(){no[r]&&e.pubads().refresh([no[r]])}))}),1e3*P.current))};if(a((()=>()=>{io(r),S.current&&clearInterval(S.current)}),[]),a((()=>{I()}),[B]),a((()=>{m||(({contentId:e,adUnitPath:t,size:a,divId:n,pos:i,sizeMapping:l,hideIfHasSubot:o,customTargetings:r,onSuccess:s})=>{if(!n||!document.getElementById(n))return console.error("divId is required");io(n),window.googletag=window.googletag||{cmd:[]};const{googletag:c}=window;c.cmd.push((function(){const d=document.querySelector('meta[name="content_id"]'),m="string"==typeof e?e:null==d?void 0:d.content,p=c.defineSlot(t,a,n);if(p){try{r&&Object.keys(r).forEach((e=>{e&&(null==p||p.setTargeting(e,r[e]))}))}catch(e){console.error(e)}no[n]=p,p.setTargeting("Pos",i),p.addService(c.pubads()),m&&p.setTargeting("Content_ID",m),l&&p.defineSizeMapping(l),o&&document.getElementById("subot--container")&&p.setTargeting("chatbot",!0),c.display(n),null==s||s()}}))})({contentId:d,adUnitPath:l,size:o,divId:r,pos:s,sizeMapping:c,hideIfHasSubot:p,customTargetings:h,onSuccess:I})}),[m]),D)return null;const T=e.createElement("div",{style:{position:"relative",width:"fit-content",height:"fit-content",overflow:"hidden",maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{ref:N,id:r}),f&&e.createElement(ao,{onClick:()=>{null==E||E(),L(!0)}}));if(g)return T;const M=b?b[0]:o?Array.isArray(o[0])?o[0][0]:o[0]:void 0,A=b?b[1]:o?Array.isArray(o[0])?o[0][1]:o[1]:void 0;return e.createElement(te,Object.assign({},w,{className:i}),e.createElement(eo,{ref:$,className:i,style:v,"data-no-wrapper":!!y,"data-header-bottom":!!x},y?T:e.createElement(e.Fragment,null,e.createElement(to,{"data-header-bottom":!!x},e.createElement("img",{src:C?X.getAssetPath("adsIcon-mb.svg"):X.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),e.createElement("span",null,z("adBanner.title"))),e.createElement("div",{style:{minWidth:M||"100%",minHeight:A||"100%",position:"relative"}},T))))})),((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),ro=({className:i,adUnitPath:l,divId:o,isMobile:r,contentId:s,customTargetings:c,locale:d,isMarryBaby:m})=>{const[p,g]=t(!0),[u,h]=t(!1),[v,b]=t(!0),y=n(null),f=n(It()),E=n(null),x=n(),w=n();return a((()=>{const e=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{var t;document.getElementById("subot--container")?g(!0):(g(!1),(null===(t=y.current)||void 0===t?void 0:t.clientHeight)?b(!1):b(!0)),e()}),4e3)};return e(),()=>{x.current&&clearTimeout(x.current),w.current&&clearTimeout(w.current)}}),[]),p||u?null:e.createElement(Jl,{key:r?"mobile":"desktop",ref:E,className:i,"data-visible":!v},l&&e.createElement(oo,{wrapperProps:{m:0},ref:y,adUnitPath:l,size:r?[[320,50],[320,100]]:[728,90],divId:(o||"div-gpt-ad-sticky")+(r?"-mobile":"")+s+String(f.current),pos:["Sticky"],contentId:s,hideIfHasSubot:r,customTargetings:c,adDefaultSize:r?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>h(!0),refreshInterval:60,locale:d,isMarryBaby:m}))},so=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:X.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:X.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:X.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];var co;!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"}(co||(co={}));const mo={DUE_DATE:co.DUE_DATE,BMI:co.BMI,BMR:co.BMR,OVULATION:co.OVULATION,IFRAME:co.IFRAME,PWG:co.PWG,THR:co.THR,BABY_VACCINE:co.BABY_VACCINE,BABY_GROWTH:co.BABY_GROWTH,BABY_POOP:co.BABY_POOP},po={[mo.DUE_DATE]:X.getAssetPath("health-tools/due-date-icon.svg")};var go,uo,ho,vo;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(go||(go={})),function(e){e.Option="option"}(uo||(uo={})),function(e){e.Button="button",e.Checkbox="checkbox"}(ho||(ho={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(vo||(vo={}));const bo={pregnancy:go.Pregnant,parenting:go.Parenting},yo={[go.Pregnant]:"pregnant",[go.Parenting]:"parent"},fo=e=>({[mo.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:mo.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[mo.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:mo.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[mo.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:mo.BABY_GROWTH},[Ce.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:X.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:Ce.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),Eo=d({}),xo=t=>{var a=J(t,[]);const{locale:n}=He(),{type:i,isMobile:l,currentUrl:o,isMarketing:r,isLoggedIn:s,setShouldAcquisitionModalOpen:c}=m(Eo);return e.createElement(me,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>ee(void 0,void 0,void 0,(function*(){const e=r?Tt(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;s?null==c||c():window.location.href=`${Mt(n)}/?returnUrl=${encodeURIComponent(e)}`})),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":o,className:"pointer-event-child-none"},a),e.createElement(j,{src:r?X.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_Marketing.png`):X.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_${i}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},wo="api/v1/categories?site={website_url}",ko="api/v1/subscription?site={website_url}",Co="api/v1/categories?site={website_url}";var No=re((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:ie(32),padding:`${ie(6)} ${ie(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const Bo=({heading:t,description:a,thumbnail:n={desktop:"",mobile:""},hideDescOnMobile:i,children:l})=>{const{isMobile:o,minHeight:r}=m(Eo);return e.createElement(te,{sx:()=>({borderRadius:ie(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},e.createElement(te,{sx:e=>({minHeight:ie(r),borderRadius:"inherit",background:`url(${o?n.mobile:n.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${ie(24)} ${ie(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${ie(22)} ${ie(32)}`}})},e.createElement(se,{spacing:ie(16)},e.createElement(se,{spacing:ie(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},t&&e.createElement(K,{tag:"h4"},t),!(i&&o)&&a&&e.createElement(p,{size:"p4"},a)),e.createElement(te,null,l))))},zo=t=>{const{styleType:a=ho.Button,items:n=[],buttonProps:l,styles:o,submitBtnTracking:s}=t,{classes:c}=No(void 0,{name:"PremiumBannerWithOptions",styles:o}),{t:d,locale:p}=He(),{surveyType:g,articleId:u,handleClickOption:h,hasPremiumBanner:v,source:b,isMobile:y,setShowPNModal:f}=m(Eo),E=i((()=>v?n:n.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean)),[n]),{getHealthToolLink:x}=xt(p),w=At({initialValues:{bannerOptions:[]}}),k=e=>ee(void 0,void 0,void 0,(function*(){return yield rt(st(ct.HEALTH_TOOL.CREATE,{_locale:p,type:yo[g]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:u,source:b}})})),C=r((()=>e.createElement(ne,{gap:ie(8),className:c.wrapper},E.map(((t,a)=>e.createElement(te,{key:String(a),component:t.isLink?"a":"div",href:t.isRiskScreener?`https://${Ee[p]}/bot/${Ne[p][t.activeTool]}/`:t.isLink?x(t.activeTool):void 0},e.createElement(W,Object.assign({className:c.button,classNames:{label:c.buttonLabel},size:"sm"},t.tracking,l,{onClick:()=>{t.isLink||(t.isPNBtn&&f(!0),k(t.value),h(t.value))}}),t.label)))))),[E,w]),N=r((()=>e.createElement(ne,null,e.createElement(ne,{align:"center",gap:ie(24),sx:e=>({background:"white",borderRadius:ie(8),padding:ie(4),[e.fn.largerThan("sm")]:{paddingLeft:ie(16)}})},e.createElement(V.Group,Object.assign({},w.getInputProps("bannerOptions",{type:"checkbox"})),e.createElement(ne,{gap:ie(16)},E.map(((t,a)=>e.createElement(V,{key:String(a),value:t.value,label:t.label,styles:{label:{cursor:"pointer"}}}))))),e.createElement(W,Object.assign({size:"sm"},s,l,{disabled:0===w.getInputProps("bannerOptions").value.length,leftIcon:y?e.createElement(Ot.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=w.getInputProps("bannerOptions").value;k(e.join("|")),h(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:ie(38),minWidth:"auto",padding:0}}})}),!y&&d("pnBanner.submit"))))),[E,w]);return e.createElement(Bo,Object.assign({},t),a===ho.Button?C():a===ho.Checkbox?N():null)},$o=t=>{var a,n;const{t:l}=He(),{heading:o,description:r,thumbnail:s,btnLabel:c,value:d,isRiskScreener:g,hideDescOnMobile:u,dataEventAction:h}=t,{locale:v}=He(),{isMobile:b}=m(Eo),{getHealthToolLink:y,allTools:f}=xt(v),E=g?"mainBanner":"toolBanner",x=i((()=>{const t=g?`https://${Fe?"":"discover."}${Ee[v]}/bot/${Ne[v][d]}`:y(d);return e.createElement("a",{href:t},e.createElement(W,{size:"sm","data-event-category":"Focused Audience","data-event-action":h,"data-event-label":t},c||l("pnBanner.caclNow")))}),[f]);return"mainBanner"===E?e.createElement(Bo,Object.assign({},Object.assign(Object.assign({},t),{thumbnail:t.thumbnail})),x):e.createElement(ne,{gap:ie(7),align:"center",justify:"space-between",sx:e=>({borderRadius:ie(8),background:e.colors.blue[0],minHeight:ie(180),padding:`${ie(24)} ${ie(16)}`,[e.fn.largerThan("sm")]:{padding:`${ie(34)} ${ie(32)}`}})},e.createElement(se,{spacing:ie(12)},e.createElement(se,{spacing:ie(4)},o&&e.createElement(K,{tag:"h4"},o),!(b&&u)&&r&&e.createElement(p,{size:"p4"},r)),e.createElement(ne,{gap:ie(8),sx:{button:{minWidth:ie(120)}}},x)),e.createElement(ne,{align:"center",justify:"center",sx:e=>({width:ie(96),height:ie(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:ie(112),height:ie(112)},img:{maxWidth:ie(64),[e.fn.largerThan("sm")]:{maxWidth:ie(73)}}})},e.createElement("img",{alt:"health-tool-icon",src:s||(null===(n=null===(a=f.filter((e=>e.template===d)))||void 0===a?void 0:a[0])||void 0===n?void 0:n.icon)||po[d]||"",loading:"lazy"})))},So=()=>{var t,a,n;const{t:i}=He(),{state:l,Outside:o}=m(Eo);return(null==l?void 0:l.action)===vo.ShowTool?e.createElement(o,null,fo(i)[null===(t=null==l?void 0:l.props)||void 0===t?void 0:t.value]?e.createElement($o,Object.assign({},fo(i)[null===(a=null==l?void 0:l.props)||void 0===a?void 0:a.value],{value:null===(n=null==l?void 0:l.props)||void 0===n?void 0:n.value})):null):(null==l?void 0:l.action)===vo.ShowOptionBanner?e.createElement(o,null,e.createElement(zo,Object.assign({},null==l?void 0:l.props))):null},Po=a=>{var{isMobile:n,children:i,desktopBanner:l=X.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:o=X.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:r={width:937,height:536},mobileBannerRatio:s={width:750,height:480},desktopBannerRatio:c={width:420,height:536},closeProps:d}=a,m=J(a,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:p,height:g}=Se(),u=(g<=667?190:265)+p*s.height/s.width+74,[h,v]=t(!1);return e.createElement(Ht,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:ie(r.width),width:"100%",height:"100%",maxHeight:ie(r.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"}}})},m),n?e.createElement(te,{sx:{position:"relative",height:"100%"},onTouchStart:()=>v(!0)},e.createElement(te,{className:"mobile-template",sx:{position:"absolute",height:100*(h?1:u/g)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},e.createElement(te,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:h?0:ie(12),borderTopRightRadius:h?0:ie(12)}},e.createElement(te,{sx:{height:"calc(100% - 74px)",background:`url(${o})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},e.createElement(pe,Object.assign({leftIcon:e.createElement(_t,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:ie(10)}},d,{onClick:()=>null==m?void 0:m.onClose()})),e.createElement(ge,{ratio:(null==s?void 0:s.width)/(null==s?void 0:s.height),w:"100%"}),e.createElement(te,{sx:{padding:`${ie(28)} ${ie(16)} ${ie(16)}`,background:"white"}},i))))):e.createElement(ge,{className:"desktop-template",ratio:r.width/r.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},e.createElement(te,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:ie(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"}},e.createElement("img",{alt:"",src:l,loading:"lazy",style:{borderTopLeftRadius:ie(8),borderBottomLeftRadius:ie(8),height:"100%",display:"block"}}),e.createElement(te,{sx:{position:"relative",height:"100%",width:(r.width-c.width)/r.width*100+"%"}},e.createElement(W,Object.assign({unstyled:!0,leftIcon:e.createElement(_t,null)},d,{onClick:()=>null==m?void 0:m.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),e.createElement(te,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${ie(40)} ${ie(24)} 0`}},i)))))},Do="user/subscription",Lo=d({}),Io=t=>{var{value:a,name:n}=t,i=J(t,["value","name"]);return e.createElement(G,Object.assign({value:a,withIcon:!0},i,{buttonProps:{styles:()=>({leftIcon:{marginRight:ie(6)},root:{paddingLeft:ie(10),paddingRight:ie(10)}})}}),n)},To=({topicsGroup:n,onTopicChange:i,isBlock:l=!1,selectedTopics:o=[],inputProps:r,labelProps:s,maxSelect:c=5,hasScroll:d,readonly:g})=>{const{action:{pushNotifications:u}}=m(dt),h=Wt(n.map((e=>e.topics||[]))),{t:v}=He(),[b,y]=t([]);a((()=>{y(o)}),[o.length]),a((()=>{null==i||i(b)}),[b]);const f=e=>{e.length>5?u({type:"danger",title:v("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:v("pnTopicSection.maxSelectError.desc")}):!g&&y((()=>h.filter((t=>e.some((e=>t.catId===e))))))};return e.createElement(se,{spacing:12},n.map(((t,a)=>e.createElement(se,{key:String(a),spacing:12},t.label&&e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),t.label),d?e.createElement(ue,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},e.createElement(te,{w:800},e.createElement(he.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},r,{onChange:f}),e.createElement(ne,{gap:8,wrap:"wrap"},t.topics.map((a=>e.createElement(Io,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)))))))):e.createElement(he.Group,Object.assign({value:b.map((e=>e.catId)),multiple:!0},r,{onChange:f}),e.createElement(ne,{gap:8,wrap:"wrap"},t.topics.map((a=>a.catId?e.createElement(Io,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)):e.isValidElement(a.component)?a.component:null))))))))},Mo=t=>{var{heading:a,children:n,stickyActions:i}=t,l=J(t,["heading","children","stickyActions"]);const{isMobile:o}=m(Lo),r=e.createElement(se,{spacing:ie(24),sx:{height:"100%"}},e.createElement(K,{tag:"h4",style:{textAlign:"center"}},a),e.createElement(te,null,n));return e.createElement(te,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},o?r:e.createElement(ue,Object.assign({className:"layout-body",h:i?"calc(100% - 90px)":"100%"},l),r),i&&e.createElement(ne,{gap:ie(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:ie(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${ie(24)} 0`}})},i))},Ao=()=>{const{t:n,locale:l}=He(),{data:{userInfo:o},action:{pushNotifications:r}}=m(dt),s=null==o?void 0:o.id,{currentUrl:c,isMobile:d,pnSuggestCategory:g=[],nextStep:u,formValues:h,setFormValues:v,onSubmit:b,submitLoading:y,selectCategory:f,setCategoryLibs:E,setSelectCategory:x,maxSelectCategory:w}=m(Lo),k=g.map((e=>e.catId)),C=At({validate:{name:jt(n("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},h),{fitnessTopics:k})}),[N,B]=t([]),[z,$]=t([]);a((()=>{ee(void 0,void 0,void 0,(function*(){var e;try{const t=yield rt(mt(Co,{_locale:l}),"get"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!k.includes(e.catId)));B(g),$(a),E([...g,...a])}catch(e){console.log(e)}}))}),[]),a((()=>{s&&C.setFieldValue("name",(null==o?void 0:o.name)||"")}),[s]);const S=()=>{""!==C.getInputProps("name").value?(v(C.getTransformedValues()),u()):C.validateField("name")},P=i((()=>e.createElement(W,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:c,leftIcon:e.createElement(Ft,{size:16,color:"currentColor"}),onClick:S,styles:e=>({root:{borderRadius:ie(6),padding:"2px 15px",height:ie(40)},label:{fontSize:ie(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:ie(12),lineHeight:ie(16),height:ie(40)}},leftIcon:{marginRight:"5px"}})},e.createElement(p,{size:d?"p3":"p4"},n("home.seeMore")))),[C]);return a((()=>{C.setFieldValue("fitnessTopics",f.map((e=>e.catId)))}),[f]),e.createElement("form",{style:{height:"100%"},onSubmit:C.onSubmit((e=>{if(0===f.length)return r({type:"danger",title:n("newsletter.error.minTitle"),message:n("newsletter.error.minCotennt")}),!1;v(e),null==b||b(e.name)}))},e.createElement(Mo,{heading:n("healthToolPNModal.heading"),stickyActions:e.createElement(e.Fragment,null,e.createElement(W,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:c,loading:y,sx:{maxWidth:ie(240)}},n("healthToolPNModal.register")))},e.createElement(se,{spacing:ie(16)},e.createElement(U,Object.assign({label:n("newsletter.welcome.description")},C.getInputProps("name"))),e.createElement(To,{topicsGroup:[...0===g.length&&0===z.length?[{topics:[{component:P}]}]:[],...g.length>0?[{label:n("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...g,...0===z.length?[{component:P}]:[]]}]:[],...z.length>0?[{label:n("healthToolPNModal.findMore.chooseFav"),topics:[...z,...z.length>0?[{component:P}]:[]]}]:[]],selectedTopics:[...N],labelProps:{size:d?"p3":"p4",color:"gray.6"},onTopicChange:x,maxSelect:w}))))},jo=c((function(t,a){var{label:n}=t,i=J(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(oe,{noWrap:!0},e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.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"})),e.createElement(p,{size:"p3"},n)))})),Oo=c((function(t,a){var{label:n}=t,i=J(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(p,{size:"p3"},n))})),_o=({history:t,onDelete:a})=>e.createElement(ne,{wrap:"wrap",gap:8},Ut(t,"catId").map((t=>e.createElement(ve,{key:t.catId,rightSection:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==a?void 0:a(t)},e.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 ${Z.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},e.createElement(p,{size:"p4"},t.localName))))),Fo=({topics:n,onTopicChange:i,isBlock:l=!1,selectedTopics:o,labelProps:r,maxSelect:s=5})=>{const{action:{pushNotifications:c}}=m(dt),[d,g]=t([]),{t:u}=He();a((()=>{g(o)}),[o.length]),a((()=>{i(d)}),[d]);return n&&0!==n.length?e.createElement(se,{spacing:12,px:16,mx:-16},e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},r),u("pnTopicSection.recentView")),e.createElement(he.Group,{value:d.map((e=>e.catId)),onChange:e=>{l&&d.length<e.length?c({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:s}),message:u("pnTopicSection.maxSelectError.desc")}):g((()=>n.filter((t=>e.some((e=>t.catId===e))))))},multiple:!0},e.createElement(ne,{gap:8,wrap:"wrap"},n.map(((t,a)=>e.createElement(Io,{key:a,value:t.catId,name:t.localName,isBlock:l})))))):null},Ho=t=>{var{topic:a,active:n,onClick:i}=t,l=J(t,["topic","active","onClick"]);return e.createElement(te,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:ie(130),[e.fn.largerThan("sm")]:{minHeight:ie(138)}}),onClick:()=>i(a,n)},l),n&&e.createElement(te,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},e.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.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"}),e.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"}))),e.createElement(te,{sx:{borderRadius:"8px"}},e.createElement(R,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},e.createElement(te,null,e.createElement("img",{src:a.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),e.createElement(p,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},a.localName||""))},Ro=({topics:i,selectedTopics:l=[],onTopicChange:o,isBlock:r=!1,labelProps:s,pushNotifications:c,maxSelect:d=5})=>{const{t:m}=He(),[g,u]=t([]),h=(e,t)=>{if(t)u((t=>t.filter((t=>t.catId!==e.catId))));else{if(r)return void c({type:"danger",title:m("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:m("pnTopicSection.maxSelectError.desc")});u((t=>[...t,e]))}};a((()=>{u(l)}),[l.length]),a((()=>{o(g)}),[g]);const[v,b]=t(!1),[y,f]=t(0),[E,x]=t(0),w=n(null),k=()=>{b(!1)};return e.createElement(se,{spacing:10},e.createElement(ne,{justify:"space-between",align:"center",w:"100%"},e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},s),m("pnTopicSection.trending"))),e.createElement(te,null,e.createElement(ue,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:w,viewportProps:{onMouseDown:e=>{e.preventDefault(),w.current&&(b(!0),f(e.pageX-w.current.offsetLeft),x(w.current.scrollLeft))},onMouseUp:k,onMouseLeave:k,onMouseMove:e=>{if(e.preventDefault(),!v||!w.current)return;const t=2*(e.pageX-w.current.offsetLeft-y);w.current.scrollLeft=E-t}},styles:{viewport:{paddingBottom:16}}},e.createElement(te,{w:{base:112*i.length+8*(i.length-1)+10}},e.createElement(ne,{gap:8},i.map(((t,a)=>e.createElement(Ho,{key:a,topic:t,onClick:h,active:g.some((e=>e.catId===t.catId)),w:{base:112}}))))))))},Wo=l=>{var{isLoggedIn:o,maxSelect:r=5,values:s=[],labelProps:c,onChange:d}=l,g=J(l,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:u}}=m(dt),[h,v]=t(""),{t:b,locale:y}=He(),f=n(null),[E,x]=t([]),[w,k]=t([]),[C,N]=t([]),[B,z]=t([]),[$,S]=t(null),[P,D]=t([]);a((()=>{ee(void 0,void 0,void 0,(function*(){var e,t;const a=yield rt(mt(wo,{_locale:y}),"get"),n=(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],i=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[],l=Ut([...n,...i],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(D(l||[]),S((null==a?void 0:a.data)||null),s.length>0){const e=n.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"interested"}))),t=i.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"trending"})));z(e),k(t)}}))}),[o]);const L=i((()=>Ut([...E,...w,...B,...C],"catId")),[E,w,B,C]),[I,T]=t(!1);a((()=>{L.length>=r?T(!0):T(!1),null==d||d(L)}),[L]);return e.createElement(se,Object.assign({spacing:ie(16)},g),e.createElement(se,{spacing:ie(8)},e.createElement(p,{size:"p3"},b("pnTopicSection.maxSelectError.detail",{max:r,maxTopic:L.length})),e.createElement(be,{ref:f,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:Z.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:e.createElement(p,{size:"s4",color:"gray.6"},b("pnTopicSection.notFound")),itemComponent:""===h?jo:Oo,size:"lg",placeholder:b("pnTopicSection.plsEnterFavTopics"),data:P,onSearchChange:v,searchValue:h,icon:e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.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:e.createElement(e.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>{return t=e,ee(void 0,void 0,void 0,(function*(){var e;const a={trending:k,recently:N,interested:z,default:x};let n="default";if(I)u({type:"danger",title:b("pnTopicSection.maxSelectError.title",{maxSelect:r}),message:b("pnTopicSection.maxSelectError.desc")});else{const i=[{key:"trending",array:null==$?void 0:$.trending},{key:"recently",array:null==$?void 0:$.recently},{key:"interested",array:null==$?void 0:$.interested}].find((e=>{var a;return null===(a=e.array)||void 0===a?void 0:a.some((e=>e.catId===t[0]))}));n=(null==i?void 0:i.key)||"default",a[n]((e=>[...e,...P.filter((e=>t.some((t=>e.catId===t))))].map((e=>Object.assign(Object.assign({},e),{template:n}))))),null===(e=f.current)||void 0===e||e.blur()}return null}));var t},value:[]}),L&&L.length>0&&e.createElement(_o,{history:L,onDelete:e=>{const t={trending:k,recently:N,interested:z,default:x};(t[e.template]||t.default)((t=>{const a=[...t],n=a.findIndex((t=>t.catId===e.catId));return a.splice(n,1),a}))}})),e.createElement(te,{sx:e=>({position:"relative",height:ie(175),[e.fn.largerThan("sm")]:{height:ie(190)}})},e.createElement(te,{sx:{position:"absolute",top:0,right:0,left:0}},e.createElement(Ro,{topics:((null==$?void 0:$.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:w,onTopicChange:k,isBlock:I,labelProps:c}))),e.createElement(Fo,{topics:((null==$?void 0:$.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:C,onTopicChange:N,isBlock:I,labelProps:c}),e.createElement(To,{labelProps:c,topicsGroup:[{label:b("pnTopicSection.ppAlsoInterested"),topics:((null==$?void 0:$.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:B,onTopicChange:z,isBlock:I}))},Uo=()=>{const{t:t}=He(),{action:{pushNotifications:a}}=m(dt),{prevStep:n,formValues:i,submitLoading:l,onSubmit:o,selectCategory:r,maxSelectCategory:s,setSelectCategory:c,currentUrl:d,isLoggedIn:p}=m(Lo);return e.createElement(Mo,{heading:t("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:ie(25)}},stickyActions:e.createElement(e.Fragment,null,e.createElement(W,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:d,onClick:n},t("healthToolPNModal.back")),e.createElement(W,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:d,onClick:()=>{if(0===r.length)return a({type:"danger",title:t("newsletter.error.minTitle"),message:t("newsletter.error.minCotennt")}),!1;null==o||o(i.name)},loading:l},t("healthToolPNModal.next")))},e.createElement(Wo,{isLoggedIn:p,maxSelect:s,values:i.fitnessTopics,onChange:c,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Vo=()=>{const{t:t}=He(),{close:n,selectCategory:i,onRegisterSuccess:l,currentUrl:o,finishLabelOnResult:r,disclaimerText:s}=m(Lo);return a((()=>()=>{setTimeout((()=>{null==l||l()}),400)}),[]),e.createElement(Mo,{heading:t("healthToolPNModal.heading"),stickyActions:e.createElement(W,{fullWidth:!0,sx:{maxWidth:ie(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:o,onClick:()=>{n()}},r||t("healthToolPNModal.finish"))},e.createElement(se,null,e.createElement(ne,{gap:ie(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:ie(8),padding:ie(8)})},e.createElement(te,null,e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.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"}),e.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"}))),e.createElement(p,{size:"p3"},s||t("pnModal.disclaimer"))),e.createElement(K,{tag:"h5"},t("healthToolPNModal.yourPre")),i.length>0&&e.createElement(To,{topicsGroup:[{label:"",topics:i}],selectedTopics:i,readonly:!0})))},Go=({isMobile:n,isLoggedIn:i,pnSuggestCategory:l=[],acquisitionInfo:o,currentUrl:s,opened:c,close:d,finishLabelOnResult:p,onRegisterSuccess:g,disclaimerText:u})=>{const{t:h,locale:v}=He(),{action:{pushNotifications:b}}=m(dt),y=X.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),f=X.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[E,x]=t([]),[w,k]=t([]),[C,N]=t(0),[B,z]=t({name:"",fitnessTopics:[]}),[$,S]=t(!1),P=()=>N(2),D=r((e=>ee(void 0,void 0,void 0,(function*(){try{S(!0),yield rt(mt(ko,{website_url:pt(v)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:Rt.get(Be),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},o.userInfo),{name:e||B.name,type_subscription:1}),domain:Ee[v||$e.Vietnam],category:w,perferred:o.preferredTopics.map((({id:e})=>({id:e})))}}),S(!1),yield rt(gt(Do),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),P()}catch(e){console.log({err:e}),S(!1),b({title:h("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[B,w]);return a((()=>{[y,f].forEach((e=>{(new Image).src=e}))}),[]),e.createElement(Lo.Provider,{value:{currentUrl:s,isMobile:n,isLoggedIn:i,opened:c,close:d,pnSuggestCategory:l,nextStep:()=>N((e=>e<3?e+1:e)),prevStep:()=>N((e=>e>0?e-1:e)),lastStep:P,categoryLibs:E,setCategoryLibs:x,selectCategory:w,setSelectCategory:k,formValues:B,setFormValues:z,maxSelectCategory:5,submitLoading:$,onSubmit:D,onRegisterSuccess:g,finishLabelOnResult:p,disclaimerText:u}},e.createElement(Po,{isMobile:n,desktopBanner:X.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:X.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:c,onClose:d,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:s}},e.createElement(ye,{active:C,onStepClick:N,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},e.createElement(ye.Step,null,e.createElement(Ao,null)),e.createElement(ye.Step,null,e.createElement(Uo,null)),e.createElement(ye.Step,null,e.createElement(Vo,null)))))},Zo=()=>{const{locale:i}=He(),{isMobile:l,isLoggedIn:o,currentUrl:r,acquisitionInfo:s,categoryIds:c,state:d,setState:p,settings:g,submitHandler:u,subcribeHealthStatus:h,showPNModal:v,setShowPNModal:b,setIsBack:y}=m(Eo),[f,E]=t([]),[x,w]=t(v);a((()=>{ee(void 0,void 0,void 0,(function*(){var e,t;const a=yield rt(mt(wo,{_locale:i}),"get"),n=[...(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],...(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[]];E(n.filter((e=>c.includes(Number(e.catId)))))}))}),[]);const k=n([]);return a((()=>{const e=(null==h?void 0:h.value)||"",t=e.split("|").filter(Boolean);let a=e;k.current.push(h),t.length>1&&(null!==k.current[0]&&y(!0),Object.keys(u).map((e=>{const n=e.split("|");if(t.length===n.length){let i=0;t.map((e=>{n.includes(String(e))&&(i+=1)})),i===t.length&&(a=e)}})));const n=t.length>0?u[a]:g;p(n)}),[h]),a((()=>{w(v)}),[v]),(null==d?void 0:d.action)!==vo.Hide?e.createElement(e.Fragment,null,e.createElement(So,Object.assign({},g.props)),e.createElement(Go,{acquisitionInfo:s,isMobile:l,isLoggedIn:o,currentUrl:r,pnSuggestCategory:f,opened:x,close:()=>{var e;w(!1),b(!1),setTimeout((()=>{var e;(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:vo.Hide})}),400),(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:vo.Hide})},onRegisterSuccess:()=>w(!1)})):null},qo=({type:n,articleId:l=0,categoryIds:o=[],isMarketing:r,isSurveyType:s,hasPremiumBanner:c,currentUrl:d,isMobile:p,subcribeHealthStatus:g,setShouldAcquisitionModalOpen:u,onValueChange:h,source:v="discover",Wrapper:b})=>{const{t:y}=He(),{data:{userInfo:f}}=m(dt),E=Boolean(null==f?void 0:f.id),[x,w]=t(null),[k,C]=t(),[N,B]=t(""),[z,$]=t(!1),[S,P]=t(!1),D=i((()=>bo[n]),[]),L=((e,t)=>({[go.Pregnant]:{action:vo.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:ho.Button,thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:X.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:ie(80),[e.fn.largerThan("sm")]:{minWidth:ie(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:vo.ShowTool,props:{value:mo.DUE_DATE}},no:{action:vo.ShowPremiumModal}}},[go.Parenting]:{action:vo.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:ho.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:vo.ShowTool,props:{value:mo.BABY_VACCINE}},teenager:{action:vo.ShowOptionBanner,props:{styleType:ho.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.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:vo.ShowPremiumModal},"teenager.girl":{action:vo.ShowTool,activeTool:Ce.HPV,props:{value:Ce.HPV}},"todders|teenager":{action:vo.ShowOptionBanner,props:{styleType:ho.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.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:mo.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:vo.ShowOptionBanner,props:{styleType:ho.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:X.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:X.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:mo.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(y,d)[D],I=null==L?void 0:L.submitHandler,T=b||te,M=()=>c&&1!==(null==f?void 0:f.subscription)?e.createElement(xo,null):null;return a((()=>{E&&w({userInfo:f,preferredTopics:so,healthTopics:[]})}),[E]),e.createElement(Eo.Provider,{value:{settings:L,submitHandler:I,type:n,surveyType:D,value:N,setValue:B,isMobile:p,isLoggedIn:E,isMarketing:r,hasPremiumBanner:c,currentUrl:d,acquisitionInfo:x,categoryIds:o,subcribeHealthStatus:g,articleId:l,onValueChange:h,state:k,setState:C,handleClickOption:e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys(I).map((e=>{const n=e.split("|");if(a.length===n.length){let i=0;a.map((e=>{n.includes(String(e))&&(i+=1)})),i===a.length&&(t=e)}})),t)})(e);if(t){const a=I[t];a.action===vo.ShowPremiumModal?c?($(!0),C(Object.assign(Object.assign({},k),{actionParams:{hideBannerWhenClose:a.action===vo.ShowPremiumModal}}))):(C({action:vo.Hide}),null==h||h(e)):(C(a),null==h||h(e))}},showPNModal:z,setShowPNModal:$,source:v,Outside:T,isBack:S,setIsBack:P,minHeight:180,setShouldAcquisitionModalOpen:u}},void 0!==g?E?s&&L?(()=>{const t=I[(null==g?void 0:g.value)||""];return(null==t?void 0:t.action)===vo.ShowPremiumModal?M():e.createElement(Zo,null)})():M():c?e.createElement(xo,null):null:null)},Yo={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var Xo="uJQBNNg",Ko="TfG3dM5",Qo="aMtjFNf",Jo="cSz2RR-",er="GyFm00F";function tr({userInfo:t,onClickMyProfileButton:a,themeName:n="helloSites"}){const{t:l}=He(),o=i((()=>{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 e.createElement("div",{className:Xo,onClick:()=>{a&&a()}},e.createElement(Jt,{className:Ko,type:"rounded",size:"xl",avatarUrl:null==t?void 0:t.avatar,firstLetter:o,backgroundColor:"marryBaby"===n?Q.mbColors.pink:Q.colors.secondaryBase}),e.createElement("div",{className:Qo},e.createElement("div",{className:Jo},(null==t?void 0:t.name)||(null==t?void 0:t.username)),e.createElement("div",{className:er,style:{"--bg-hellosites":`url(${X.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${X.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},l("userProfile.nav.header.viewProfile"))))}var ar="fVk18fq",nr="v8TCvUb",ir="mx7T4V3";const lr={myHealth:Q.mbColors.toneYellow,myCommunity:Q.mbColors.toneBlue,mySaved:Q.mbColors.toneGreen},or={helloSites:{myBooking:()=>X.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>X.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>X.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>X.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>X.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>X.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>X.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>X.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>X.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},rr=({type:t,themeName:a,className:n,onClick:l=(()=>{})})=>{const{t:o}=He(),r=i((()=>{var e,n;return(null===(n=null===(e=or[a])||void 0===e?void 0:e[t])||void 0===n?void 0:n.call(e))||""}),[t,a]),s=i((()=>"marryBaby"!==a?"transparent":lr[t]),[t,a]);return e.createElement("div",{onClick:function(){l(t)},className:`${ar} ${n}`},e.createElement("div",{className:ir,style:{backgroundColor:s,backgroundImage:`url("${r}")`}}),e.createElement("h3",{className:nr},o(`userProfile.nav.card.${t}`)))};var sr="gn6HmGG",cr="FCx8FEM",dr="zMiRxaE",mr="lZ2Z9MQ",pr="rwm-agG",gr="qMOscoq";const ur=({themeName:a,locale:n,onClickItem:l})=>{const[o,r]=t(""),s=i((()=>"marryBaby"===a?[{key:"userProfile.nav.menu.password",icon:X.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:X.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:X.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:X.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[a]);function c(e){e.subMenu?r((t=>t?"":e.key)):l&&l(e)}return e.createElement("div",{className:sr},s.map((t=>e.createElement(hr,{key:t.key,item:t,openKey:o,onClickItem:c,locale:n}))))},hr=({item:t,openKey:a,onClickItem:n,locale:i})=>{var l;const{t:o}=He();return(null===(l=t.disableLocale)||void 0===l?void 0:l.includes(i))?null:e.createElement("div",{className:`${cr} nav-menu-item`,"data-is-open":a===t.key,key:t.key,"data-has-submenu":!!t.subMenu},e.createElement("div",{className:dr,onClick:()=>n(t)},t.icon&&e.createElement("div",{className:mr,style:{backgroundImage:`url("${t.icon}")`}}),o(t.key),t.subMenu&&e.createElement("div",{className:pr,style:{"--after-bg":`url(${X.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),t.subMenu&&e.createElement("div",{className:gr},t.subMenu.map((t=>e.createElement(hr,{key:t.key,item:t,openKey:a,onClickItem:n,locale:i})))))};var vr="-AZt1au",br="IvSIfCI",yr="eahCJov",fr="XIyViFs",Er="_4y-O0w3",xr="kO8iNgD",wr="a1d4E10",kr="Tdguxxf",Cr="-mOxsaU",Nr="yPeDBNZ";const Br={helloSites:{member:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>X.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>X.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},zr=({themeName:t,rank:a="member",numberOfPosts:n=0})=>{const{t:l}=He(),o=i((()=>{var e,n;return(null===(n=null===(e=Br[t])||void 0===e?void 0:e[a])||void 0===n?void 0:n.call(e))||""}),[a,t]);return e.createElement("div",{className:Er,"data-user-rank":a},e.createElement("div",{className:xr},e.createElement("div",{className:wr},e.createElement("div",{className:kr,style:{backgroundImage:`url("${o}")`}}),e.createElement("h3",{className:Cr},l(`userProfile.userRank.${a}`)),n>0&&e.createElement("p",{className:Nr},n," ",l("userProfile.nav.header.count.posts")))))},$r=({SSO_URL:n,UP_BASEPATH:l="user",themeName:o="helloSites",cardUrls:r=Yo,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:m,userInfo:p,togetherApiDomain:g,userPostsNumber:u,onClickNavigationCard:h,onClickMyProfileButton:v,onClickMenuItem:b,onClickLogout:y,isUserProfileNavigatorMenuHidden:f=!1,isMyHealthEnabled:E=!1,locale:x})=>{const{t:w}=He(),[k,C]=t(u||0),N="marryBaby"===o;a((()=>{if(p&&void 0===u){const e=Vt("hhg_user_token");e&&fetch(Gt(De(x,N,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,n;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&C((null===(n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===n?void 0:n.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[x,null!==p,u,g,N]);const B=i((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?E:"eCom"===e?d:"mySaved"!==e||m))}),[N,E]),z=i((()=>"marryBaby"===o?null:e.createElement(je,{color:"tertiary",icon:e.createElement("img",{src:X.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:fr},w("userProfile.nav.menu.logout"))),[o]),$=e=>{e.startsWith("http")||e.startsWith("/")?window.location.href=Zt(e):n&&(window.location.href=Zt(`${n}${l}/${e}`))},S=e=>{const t=r[e];h?h(t):$(t)};return p?e.createElement("div",{className:vr,"data-theme":o},e.createElement(tr,{userInfo:p,themeName:o,onClickMyProfileButton:()=>{v?v():$("profile")}}),e.createElement(zr,{themeName:o,rank:"member",numberOfPosts:k}),e.createElement("div",{className:br},B.map((t=>e.createElement(rr,{className:yr,key:t,themeName:o,type:t,onClick:S})))),!f&&e.createElement(e.Fragment,null,e.createElement(ur,{themeName:o,locale:x,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(b?b(e.link):$(e.link))}}),z)):null};export{zr as $,Kt as A,ea as B,ga as C,on as D,ml as E,oa as F,ra as G,bl as H,Fa as I,kl as J,Hl as K,Gl as L,li as M,Yl as N,xl as O,ca as P,Ql as Q,da as R,pn as S,ma as T,oo as U,ro as V,qo as W,bo as X,yo as Y,$r as Z,tr as _,Jt as a,ta as b,pa as c,ba as d,ya as e,$a as f,Ta as g,Aa as h,Oa as i,Ja as j,en as k,cn as l,bn as m,Cn as n,Bn as o,Tn as p,Mn as q,Vn as r,Qn as s,ii as t,oi as u,ui as v,ji as w,Vi as x,el as y,al as z};