@hhgtech/hhg-components 1.27.159 → 1.27.161

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 (283) hide show
  1. package/README.md +60 -8
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care/index.d.ts +1 -0
  5. package/build/care.js +1 -1
  6. package/build/components/atoms/index.d.ts +0 -1
  7. package/build/components.js +1 -1
  8. package/build/{constants-75aadffb.js → constants-530a0ecf.js} +1 -1
  9. package/build/{constants-31450bc5.js → constants-729267f0.js} +1 -1
  10. package/build/constants.js +1 -1
  11. package/build/core-9c7a3bbf.js +1 -0
  12. package/build/ecom.js +1 -1
  13. package/build/esm/babyGrowth.js +2 -2
  14. package/build/esm/cache.js +1 -1
  15. package/build/esm/care/index.d.ts +1 -0
  16. package/build/esm/care.js +1 -1
  17. package/build/esm/components/atoms/index.d.ts +0 -1
  18. package/build/esm/components.js +1 -1
  19. package/build/esm/{constants-531169d2.js → constants-4e77772b.js} +1 -1
  20. package/build/esm/{constants-b08eda13.js → constants-55308a13.js} +1 -1
  21. package/build/esm/constants.js +1 -1
  22. package/build/esm/{core-8a9cbd2a.js → core-54fe1600.js} +1 -1
  23. package/build/esm/ecom.js +1 -1
  24. package/build/esm/footer.js +1 -1
  25. package/build/esm/gAssets.js +1 -1
  26. package/build/esm/getDynamicHealthTool-dc735430.js +1 -0
  27. package/build/esm/{getSocialList-bcc967f8.js → getSocialList-2c08720a.js} +1 -1
  28. package/build/esm/hooks.js +1 -1
  29. package/build/esm/i18n.js +1 -1
  30. package/build/esm/i18nV2.js +1 -1
  31. package/build/esm/{index-754ac192.js → index-13075213.js} +1 -1
  32. package/build/esm/index-2778bd37.js +1 -0
  33. package/build/esm/{index-fa41ceed.js → index-29398213.js} +1 -1
  34. package/build/esm/index-405d59b7.js +3533 -0
  35. package/build/esm/{index-97b10ada.js → index-47fa9ddc.js} +1 -1
  36. package/build/esm/{index-3112b8d2.js → index-502d83d4.js} +4 -4
  37. package/build/esm/{index-34a8408b.js → index-50a78483.js} +1 -1
  38. package/build/esm/{index-485d0140.js → index-68a6626d.js} +1 -1
  39. package/build/esm/index-6a6071e2.js +1 -0
  40. package/build/esm/{index-c2bcdb0a.js → index-882b7df3.js} +1 -1
  41. package/build/esm/{index-26c4b35f.js → index-9753cb26.js} +1 -1
  42. package/build/esm/{index-46237665.js → index-99818d57.js} +1 -1
  43. package/build/esm/{index-79917dbf.js → index-9fce504e.js} +1 -1
  44. package/build/esm/{index-5c537ab4.js → index-bb5d98ca.js} +1 -1
  45. package/build/esm/{index-31afc7f3.js → index-c7bc059b.js} +7 -12
  46. package/build/esm/index-c9986dbd.js +1 -0
  47. package/build/esm/{index-59ecbd4b.js → index-d0c43f4c.js} +2 -2
  48. package/build/esm/{index-5fd57ab2.js → index-f41ce453.js} +1 -1
  49. package/build/esm/index-fb2f22d1.js +1 -0
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-44862bae.js → index.styled-9ca20e58.js} +1 -1
  52. package/build/esm/{index.styled-83088fd6.js → index.styled-e131ec51.js} +1 -1
  53. package/build/esm/{index.styles-5dfe0c2d.js → index.styles-0c995338.js} +45 -64
  54. package/build/esm/lead.js +1 -1
  55. package/build/esm/mantine.js +1 -1
  56. package/build/esm/misc.js +1 -1
  57. package/build/esm/navigation.js +1 -1
  58. package/build/esm/onboardingV2.js +1 -1
  59. package/build/esm/pwg.js +1 -1
  60. package/build/esm/{routing-7d005a49.js → routing-1b159c4a.js} +1 -1
  61. package/build/esm/together.js +1 -1
  62. package/build/esm/{types-d3f309d9.js → types-6c860ae9.js} +28 -9
  63. package/build/esm/{types-988ffdb6.js → types-b2ec6aab.js} +1 -1
  64. package/build/esm/types.js +1 -1
  65. package/build/esm/{useCategory-075626af.js → useCategory-c0a62126.js} +1 -1
  66. package/build/esm/useHealthToolCache-110c732c.js +1 -0
  67. package/build/esm/{useRafState-ceea7492.js → useRafState-e60b168e.js} +1 -1
  68. package/build/esm/{useTranslations-d23e5957.js → useTranslations-8e7471e9.js} +1 -1
  69. package/build/esm/{utils-fe965c4d.js → utils-33596d98.js} +1 -1
  70. package/build/esm/{utils-19423dc2.js → utils-923bed56.js} +1 -1
  71. package/build/esm/vaccination.js +1 -1
  72. package/build/footer.js +1 -1
  73. package/build/gAssets.js +1 -1
  74. package/build/getDynamicHealthTool-6139d439.js +1 -0
  75. package/build/{getSocialList-345abcd6.js → getSocialList-40644b05.js} +1 -1
  76. package/build/hooks.js +1 -1
  77. package/build/i18n.js +1 -1
  78. package/build/i18nV2.js +1 -1
  79. package/build/{index-6c3faa7e.js → index-2505994e.js} +1 -1
  80. package/build/index-309e60ab.js +1 -0
  81. package/build/index-40f68767.js +1 -0
  82. package/build/{index-7d8725b3.js → index-4a12c2a8.js} +1 -1
  83. package/build/{index-c6ad09b1.js → index-4d038478.js} +1 -1
  84. package/build/index-69fb3903.js +1 -0
  85. package/build/{index-b7a1b3cb.js → index-76e24325.js} +1 -1
  86. package/build/{index-b1e5dddc.js → index-7a8b14d4.js} +1 -1
  87. package/build/{index-db80ba0c.js → index-8232502b.js} +1 -1
  88. package/build/{index-b99ae263.js → index-9df81ed9.js} +1 -1
  89. package/build/{index-75d9ef50.js → index-a37938a5.js} +1 -1
  90. package/build/index-b5c78d4d.js +3533 -0
  91. package/build/index-c084e8e0.js +113 -0
  92. package/build/{index-4772af05.js → index-d31e5a7a.js} +1 -1
  93. package/build/{index-420aa9de.js → index-e2e5c0d6.js} +1 -1
  94. package/build/{index-55def889.js → index-f03402aa.js} +1 -1
  95. package/build/{index-8537defc.js → index-f2c966a4.js} +1 -1
  96. package/build/{index-6ad602c5.js → index-f51aa89f.js} +1 -1
  97. package/build/{index-48216d9e.js → index-fa36dcfc.js} +1 -1
  98. package/build/index.js +1 -1
  99. package/build/{index.styled-01b8561c.js → index.styled-572bd083.js} +1 -1
  100. package/build/{index.styled-4bfae288.js → index.styled-fb6a5c77.js} +1 -1
  101. package/build/{index.styles-7b879f73.js → index.styles-99d90a47.js} +47 -66
  102. package/build/lead.js +1 -1
  103. package/build/mantine.js +1 -1
  104. package/build/misc.js +1 -1
  105. package/build/navigation.js +1 -1
  106. package/build/onboardingV2.js +5 -5
  107. package/build/pwg.js +2 -2
  108. package/build/{routing-b783336f.js → routing-2be6c855.js} +1 -1
  109. package/build/together.js +1 -1
  110. package/build/{types-e3fd1da1.js → types-f14e51e2.js} +1 -1
  111. package/build/{types-de3c0549.js → types-f71ec22e.js} +21 -2
  112. package/build/types.js +1 -1
  113. package/build/{useCategory-a6ac1b1f.js → useCategory-e02bbab5.js} +1 -1
  114. package/build/{useHealthToolCache-0d190518.js → useHealthToolCache-89d5706e.js} +1 -1
  115. package/build/{useRafState-18243d6c.js → useRafState-51c4ff7e.js} +1 -1
  116. package/build/{useTranslations-fec480df.js → useTranslations-d57cfa60.js} +1 -1
  117. package/build/utils-21b70e2b.js +1 -0
  118. package/build/{utils-a7094a26.js → utils-3f62b2db.js} +1 -1
  119. package/build/vaccination.js +1 -1
  120. package/package.json +4 -3
  121. package/build/core-b7f657e8.js +0 -1
  122. package/build/esm/getDynamicHealthTool-ebb00e98.js +0 -1
  123. package/build/esm/index-313f49bc.js +0 -1
  124. package/build/esm/index-6b5561fb.js +0 -1
  125. package/build/esm/index-6d051f86.js +0 -1
  126. package/build/esm/index-98346b8c.js +0 -1
  127. package/build/esm/index-d3087357.js +0 -3533
  128. package/build/esm/misc/callApi/helpers.d.ts +0 -4
  129. package/build/esm/misc/callApi/index.d.ts +0 -24
  130. package/build/esm/misc/callApi/instance.d.ts +0 -11
  131. package/build/esm/misc/callApi/interceptors.d.ts +0 -6
  132. package/build/esm/useHealthToolCache-5227ddbe.js +0 -1
  133. package/build/getDynamicHealthTool-24c62518.js +0 -1
  134. package/build/index-03a10f01.js +0 -1
  135. package/build/index-916461f6.js +0 -1
  136. package/build/index-9a389e50.js +0 -3533
  137. package/build/index-a42027c8.js +0 -118
  138. package/build/index-f6a8c60a.js +0 -1
  139. package/build/misc/callApi/helpers.d.ts +0 -4
  140. package/build/misc/callApi/index.d.ts +0 -24
  141. package/build/misc/callApi/instance.d.ts +0 -11
  142. package/build/misc/callApi/interceptors.d.ts +0 -6
  143. package/build/utils-e78a1e03.js +0 -1
  144. /package/build/{BMI_BOYS.percentile.monthly-86fc92b6.js → BMI_BOYS.percentile.monthly-0fe75dc6.js} +0 -0
  145. /package/build/{BMI_BOYS.percentile.weekly-9c7691d5.js → BMI_BOYS.percentile.weekly-d32a6320.js} +0 -0
  146. /package/build/{BMI_BOYS.percentile.yearly-e2e09c55.js → BMI_BOYS.percentile.yearly-4783dc1f.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.monthly-71eef063.js → BMI_BOYS.zscore.monthly-44c85e86.js} +0 -0
  148. /package/build/{BMI_BOYS.zscore.weekly-35341733.js → BMI_BOYS.zscore.weekly-ba69577e.js} +0 -0
  149. /package/build/{BMI_BOYS.zscore.yearly-733eaec2.js → BMI_BOYS.zscore.yearly-4b4836cc.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.monthly-75d28c94.js → BMI_GIRLS.percentile.monthly-6140cd94.js} +0 -0
  151. /package/build/{BMI_GIRLS.percentile.weekly-7e151197.js → BMI_GIRLS.percentile.weekly-fe6dfa19.js} +0 -0
  152. /package/build/{BMI_GIRLS.percentile.yearly-4a5e10be.js → BMI_GIRLS.percentile.yearly-6286e1d1.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.monthly-8b8dd2f6.js → BMI_GIRLS.zscore.monthly-aa81719b.js} +0 -0
  154. /package/build/{BMI_GIRLS.zscore.weekly-b353db3c.js → BMI_GIRLS.zscore.weekly-c8c0fcc0.js} +0 -0
  155. /package/build/{BMI_GIRLS.zscore.yearly-4a9ebd64.js → BMI_GIRLS.zscore.yearly-983def3f.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-e229b6f6.js → HEAD CIRCUM_BOYS.percentile.monthly-7c1c8703.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-d3634bd9.js → HEAD CIRCUM_BOYS.percentile.weekly-0b870250.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-82f68209.js → HEAD CIRCUM_BOYS.percentile.yearly-1ccbc81d.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3996efc6.js → HEAD CIRCUM_BOYS.zscore.monthly-f640d4d0.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-be4ebfbd.js → HEAD CIRCUM_BOYS.zscore.weekly-5482f634.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-e72242b9.js → HEAD CIRCUM_BOYS.zscore.yearly-e29b3fd9.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-10e7794e.js → HEAD CIRCUM_GIRLS.percentile.monthly-287252fa.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-da0137ff.js → HEAD CIRCUM_GIRLS.percentile.weekly-2ea52420.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c9612d3b.js → HEAD CIRCUM_GIRLS.percentile.yearly-d5265be0.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-3e5cb09b.js → HEAD CIRCUM_GIRLS.zscore.monthly-64a05054.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-9ccd7ef0.js → HEAD CIRCUM_GIRLS.zscore.weekly-5dab5bf0.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5e552c88.js → HEAD CIRCUM_GIRLS.zscore.yearly-8dc20701.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.percentile.monthly-393957a1.js → HEIGHT_BOYS.percentile.monthly-b783cf1a.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.weekly-daccba5b.js → HEIGHT_BOYS.percentile.weekly-ec990b80.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.percentile.yearly-f23d36d8.js → HEIGHT_BOYS.percentile.yearly-614a1951.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.zscore.monthly-d2062b80.js → HEIGHT_BOYS.zscore.monthly-495a0b9b.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.weekly-2c68b327.js → HEIGHT_BOYS.zscore.weekly-02c6ce54.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.zscore.yearly-2f6bb842.js → HEIGHT_BOYS.zscore.yearly-3ae47f90.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.percentile.monthly-47c1a524.js → HEIGHT_GIRLS.percentile.monthly-bef2e359.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.weekly-e3e274fd.js → HEIGHT_GIRLS.percentile.weekly-b56f489e.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.percentile.yearly-aea4d47d.js → HEIGHT_GIRLS.percentile.yearly-fd44e47b.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.zscore.monthly-1108062c.js → HEIGHT_GIRLS.zscore.monthly-6326e54b.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.weekly-867bf1d8.js → HEIGHT_GIRLS.zscore.weekly-7a825114.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.zscore.yearly-6c430c89.js → HEIGHT_GIRLS.zscore.yearly-407d276d.js} +0 -0
  180. /package/build/{Onboarding-7fe4d4db.js → Onboarding-06a9b342.js} +0 -0
  181. /package/build/{Visible-89723a09.js → Visible-e848ad3b.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.percentile.monthly-d8c6b2bb.js → WEIGHT_BOYS.percentile.monthly-a5f13251.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.weekly-add05ea0.js → WEIGHT_BOYS.percentile.weekly-891ce70e.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.percentile.yearly-9b35d955.js → WEIGHT_BOYS.percentile.yearly-0c8b23da.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.zscore.monthly-2ccfe61f.js → WEIGHT_BOYS.zscore.monthly-26f7b120.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.weekly-f6b0aad9.js → WEIGHT_BOYS.zscore.weekly-6362ab5d.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.zscore.yearly-b3f6f2fe.js → WEIGHT_BOYS.zscore.yearly-1bb66ec7.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.percentile.monthly-1caa8605.js → WEIGHT_GIRLS.percentile.monthly-18e18c37.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.weekly-6e0fce65.js → WEIGHT_GIRLS.percentile.weekly-f357be7b.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.percentile.yearly-ab90c630.js → WEIGHT_GIRLS.percentile.yearly-baec8082.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.zscore.monthly-a90d8080.js → WEIGHT_GIRLS.zscore.monthly-b3094d86.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.weekly-be79d16b.js → WEIGHT_GIRLS.zscore.weekly-5a94465d.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.zscore.yearly-3b28ae66.js → WEIGHT_GIRLS.zscore.yearly-e0a3c64a.js} +0 -0
  194. /package/build/{components → care/components}/atoms/textDivider/index.d.ts +0 -0
  195. /package/build/{cookieHelper-851ec602.js → cookieHelper-5109a4f2.js} +0 -0
  196. /package/build/{dataTransform-86066740.js → dataTransform-b61a062d.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.monthly-12cf3653.js → BMI_BOYS.percentile.monthly-a923fb18.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.percentile.weekly-cd5c4f2a.js → BMI_BOYS.percentile.weekly-e23d100f.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.percentile.yearly-f7cb8621.js → BMI_BOYS.percentile.yearly-9e23931d.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.monthly-3f321a88.js → BMI_BOYS.zscore.monthly-9ce5f05c.js} +0 -0
  201. /package/build/esm/{BMI_BOYS.zscore.weekly-b1ccb020.js → BMI_BOYS.zscore.weekly-d570818b.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.zscore.yearly-e1442373.js → BMI_BOYS.zscore.yearly-7684e153.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.monthly-3e3dd1a0.js → BMI_GIRLS.percentile.monthly-b8ca45dd.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.percentile.weekly-72195163.js → BMI_GIRLS.percentile.weekly-451e30f2.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.percentile.yearly-b75f3aa1.js → BMI_GIRLS.percentile.yearly-96f009cc.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.monthly-448c9a07.js → BMI_GIRLS.zscore.monthly-ec53a919.js} +0 -0
  207. /package/build/esm/{BMI_GIRLS.zscore.weekly-f1184bc5.js → BMI_GIRLS.zscore.weekly-01f847e4.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.zscore.yearly-3b0c0841.js → BMI_GIRLS.zscore.yearly-40b42515.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-adae309b.js → HEAD CIRCUM_BOYS.percentile.monthly-cc05ce46.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-4abc16d0.js → HEAD CIRCUM_BOYS.percentile.weekly-184b46b0.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2b27de3c.js → HEAD CIRCUM_BOYS.percentile.yearly-3fa81fa5.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-928048d0.js → HEAD CIRCUM_BOYS.zscore.monthly-2b936c65.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-ee08b060.js → HEAD CIRCUM_BOYS.zscore.weekly-9819fbfe.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e2ddf196.js → HEAD CIRCUM_BOYS.zscore.yearly-8775cb4d.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b97261c0.js → HEAD CIRCUM_GIRLS.percentile.monthly-a79e2170.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-1e7b10b0.js → HEAD CIRCUM_GIRLS.percentile.weekly-8abdec4f.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-001aa75b.js → HEAD CIRCUM_GIRLS.percentile.yearly-31bd302c.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fc98dcac.js → HEAD CIRCUM_GIRLS.zscore.monthly-d0c8a30b.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-acb2c226.js → HEAD CIRCUM_GIRLS.zscore.weekly-78546079.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-842a2867.js → HEAD CIRCUM_GIRLS.zscore.yearly-8451b740.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-025c8110.js → HEIGHT_BOYS.percentile.monthly-9104bf98.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-598512e3.js → HEIGHT_BOYS.percentile.weekly-c4e8cdbb.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2b82a8c8.js → HEIGHT_BOYS.percentile.yearly-fbba72e6.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e0c2db06.js → HEIGHT_BOYS.zscore.monthly-f8bd1d11.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f38a3fab.js → HEIGHT_BOYS.zscore.weekly-843af1e6.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-510e0fc3.js → HEIGHT_BOYS.zscore.yearly-6e022214.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ebd61dd4.js → HEIGHT_GIRLS.percentile.monthly-832c4534.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-70651097.js → HEIGHT_GIRLS.percentile.weekly-f8b45685.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e78a2253.js → HEIGHT_GIRLS.percentile.yearly-b2c3e937.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-293036dc.js → HEIGHT_GIRLS.zscore.monthly-bf6a523e.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3aefb675.js → HEIGHT_GIRLS.zscore.weekly-aec1bc6d.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b4f1d366.js → HEIGHT_GIRLS.zscore.yearly-a2085013.js} +0 -0
  233. /package/build/esm/{Onboarding-a5085557.js → Onboarding-5af7aa41.js} +0 -0
  234. /package/build/esm/{Visible-244eee23.js → Visible-6fd031d2.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b2b0aad1.js → WEIGHT_BOYS.percentile.monthly-83d2c114.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-44824457.js → WEIGHT_BOYS.percentile.weekly-e0133883.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b2d29cea.js → WEIGHT_BOYS.percentile.yearly-734253da.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9033a5a4.js → WEIGHT_BOYS.zscore.monthly-b6ac5265.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b893d59b.js → WEIGHT_BOYS.zscore.weekly-f166956c.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-82c340a3.js → WEIGHT_BOYS.zscore.yearly-19007035.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-26e4a0c2.js → WEIGHT_GIRLS.percentile.monthly-903cb147.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-18f825e1.js → WEIGHT_GIRLS.percentile.weekly-e141924c.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-19c9e245.js → WEIGHT_GIRLS.percentile.yearly-61057460.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-d6cd03de.js → WEIGHT_GIRLS.zscore.monthly-beb59acc.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-b5887d90.js → WEIGHT_GIRLS.zscore.weekly-d8e3e406.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a86cf86b.js → WEIGHT_GIRLS.zscore.yearly-8a3bb4b8.js} +0 -0
  247. /package/build/esm/{components → care/components}/atoms/textDivider/index.d.ts +0 -0
  248. /package/build/esm/{cookieHelper-87efe0d2.js → cookieHelper-0382f1df.js} +0 -0
  249. /package/build/esm/{dataTransform-be97b21f.js → dataTransform-e257cd3d.js} +0 -0
  250. /package/build/esm/{index-d9fbb64d.js → index-47ab4704.js} +0 -0
  251. /package/build/esm/{index-dde18580.js → index-5e2209df.js} +0 -0
  252. /package/build/esm/{index-6798950d.js → index-ad39e5b2.js} +0 -0
  253. /package/build/esm/{index-2a0d9999.js → index-f8c1d9d6.js} +0 -0
  254. /package/build/esm/{isProduction-c4e701af.js → isProduction-1597e8ed.js} +0 -0
  255. /package/build/esm/{localizeNumberFormat-33083aa3.js → localizeNumberFormat-face9bb0.js} +0 -0
  256. /package/build/esm/{normalizeLink-1ac7cfcc.js → normalizeLink-5d28acbf.js} +0 -0
  257. /package/build/esm/{number-9b135fc2.js → number-a402108e.js} +0 -0
  258. /package/build/esm/{paths-00f55271.js → paths-e83a7594.js} +0 -0
  259. /package/build/esm/{screenSizeContext-e2052d31.js → screenSizeContext-662f92d9.js} +0 -0
  260. /package/build/esm/{theme-fd087af5.js → theme-fff94356.js} +0 -0
  261. /package/build/esm/{translationsContext-959b75ab.js → translationsContext-3e91995c.js} +0 -0
  262. /package/build/esm/{tslib.es6-15a12e4d.js → tslib.es6-d8ba5e0e.js} +0 -0
  263. /package/build/esm/{types-4cea16bd.js → types-5a01ab34.js} +0 -0
  264. /package/build/esm/{useIsInit-001e7017.js → useIsInit-e13c4b5b.js} +0 -0
  265. /package/build/esm/{useOutsideClick-dd2aced6.js → useOutsideClick-554f17ac.js} +0 -0
  266. /package/build/esm/{useScrollbarSize-83b7328b.js → useScrollbarSize-9c6ef5a1.js} +0 -0
  267. /package/build/{index-3ddaf646.js → index-11991307.js} +0 -0
  268. /package/build/{index-1b6775f7.js → index-3d525ada.js} +0 -0
  269. /package/build/{index-b9ebc729.js → index-7c081df1.js} +0 -0
  270. /package/build/{index-90515a25.js → index-de379d7d.js} +0 -0
  271. /package/build/{isProduction-93520986.js → isProduction-19fdda9c.js} +0 -0
  272. /package/build/{localizeNumberFormat-fe02153f.js → localizeNumberFormat-53cbaaf1.js} +0 -0
  273. /package/build/{normalizeLink-8e0bf6f7.js → normalizeLink-c3885bca.js} +0 -0
  274. /package/build/{number-96da5bf3.js → number-dc4d0b00.js} +0 -0
  275. /package/build/{paths-1394796b.js → paths-79805462.js} +0 -0
  276. /package/build/{screenSizeContext-fb7c716d.js → screenSizeContext-eb66c071.js} +0 -0
  277. /package/build/{theme-d7f6b2e4.js → theme-6b7baadc.js} +0 -0
  278. /package/build/{translationsContext-cb208449.js → translationsContext-20478eec.js} +0 -0
  279. /package/build/{tslib.es6-4b9d0a36.js → tslib.es6-15853eea.js} +0 -0
  280. /package/build/{types-b8882b86.js → types-2a73c8cf.js} +0 -0
  281. /package/build/{useIsInit-887a3738.js → useIsInit-af1d4b28.js} +0 -0
  282. /package/build/{useOutsideClick-86f33f79.js → useOutsideClick-4b5a27d8.js} +0 -0
  283. /package/build/{useScrollbarSize-6c49566b.js → useScrollbarSize-55ae5aec.js} +0 -0
@@ -0,0 +1,3533 @@
1
+ import e,{useState as t,useRef as a,useMemo as n,useEffect as i,Fragment as l,memo as r,useCallback as o,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p,I as g}from"./index-f41ce453.js";import{e as h,f as u,g as b,h as v,i as y,j as f,k as x,l as w,m as E,n as k,o as C,p as B,q as N,r as D,s as $,t as z,u as L,v as P,H as S,T,w as M,Z as I,P as j,x as A,y as O,z as _,A as F,B as H,b as R,C as W,E as U,F as V}from"./index.styles-0c995338.js";import{i as G,M as Z}from"./screenSizeContext-662f92d9.js";import{R as q}from"./index-5e2209df.js";import{T as Y}from"./index-c9986dbd.js";import{b as X,u as K}from"./useTranslations-8e7471e9.js";import"lodash/debounce";import{i as J}from"./isProduction-1597e8ed.js";import{d as Q,L as ee,F as te,Q as ae,R as ne,a as ie,G as le}from"./index-50a78483.js";import"./useCategory-c0a62126.js";import{CommonGAssets as re}from"./gAssets.js";import{t as oe}from"./theme-fff94356.js";import{_ as se,a as ce}from"./tslib.es6-d8ba5e0e.js";import{Box as de,Radio as me,Flex as pe,rem as ge,Card as he,Group as ue,createStyles as be,Stack as ve,getStylesRef as ye,useMantineTheme as fe,Container as xe,UnstyledButton as we,AspectRatio as Ee,ScrollArea as ke,Chip as Ce,Badge as Be,MultiSelect as Ne,Stepper as De}from"@mantine/core";import $e from"innertext";import{u as ze,A as Le,a as Pe,b as Se,B as Te,c as Me,I as Ie,d as je,e as Ae,t as Oe}from"./index-c7bc059b.js";import"@mantine/dates";import{G as _e,L as Fe}from"./Onboarding-5af7aa41.js";import He from"dayjs";import Re,{keyframes as We,css as Ue}from"styled-components";import"./translationsContext-3e91995c.js";import"string-format";import{useViewportSize as Ve}from"@mantine/hooks";import{i as Ge}from"./index-9fce504e.js";import Ze from"lodash/throttle";import{L as qe}from"./index-99818d57.js";import{B as Ye}from"./index-9753cb26.js";import{I as Xe}from"./index-29398213.js";import Ke from"html-react-parser";import{format as Je,addDays as Qe,isBefore as et,startOfMonth as tt,addMonths as at,subMonths as nt,getDaysInMonth as it,isToday as lt,isSameDay as rt,isWithinInterval as ot,isAfter as st,isPast as ct}from"date-fns";import"./utils-33596d98.js";import"./index.styled-e131ec51.js";import"./index-f8c1d9d6.js";import{L as dt}from"./constants-4e77772b.js";import{D as mt}from"./types-5a01ab34.js";import{S as pt}from"./index-2778bd37.js";import{M as gt}from"./index-68a6626d.js";import{b as ht}from"./index.styled-9ca20e58.js";import{C as ut}from"./index-47ab4704.js";import{useForm as bt,Controller as vt}from"react-hook-form";import{u as yt}from"./useHealthToolCache-110c732c.js";import{yupResolver as ft}from"@hookform/resolvers/yup";import{B as xt,D as wt}from"./index-d0c43f4c.js";import{f as Et}from"./index-bb5d98ca.js";import kt from"react-day-picker/DayPickerInput";import{a as Ct}from"./useOutsideClick-554f17ac.js";import Bt from"date-fns/locale/en-US";import Nt from"date-fns/locale/id";import Dt from"date-fns/locale/vi";import $t from"date-fns/locale/zh-TW";import{g as zt}from"./getSocialList-2c08720a.js";import{v4 as Lt}from"uuid";import{g as Pt,a as St}from"./routing-1b159c4a.js";import{useForm as Tt,isNotEmpty as Mt}from"@mantine/form";import{M as It}from"./index-47fa9ddc.js";import jt from"js-cookie";import At from"lodash/flatten";import"react-contenteditable";import"react-dom";import Ot from"lodash/uniqBy";var _t="CHw-fZZ",Ft="_03U6VRS",Ht="EO828Vv";const Rt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:r,className:o,description:s})=>e.createElement("div",{className:`${_t} ${o||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Ft},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:Ht,onClick:a},r)),Wt=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:r})=>e.createElement(h,{"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:r},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),Ut=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:r,as:o="h4",color:s})=>e.createElement(u,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":r,as:o},a),Vt=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),Gt=()=>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)"}))),Zt=()=>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)"})),qt=()=>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)"})),Yt=({className:n,value:i,options:l,onUploadSelected:r,id:o,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),h=a(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+o+"-"+t.value,key:"uploader-dropdown-input-"+o+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),r(e.target.files)}}))));return e.createElement(b,{className:n,"data-dropdown-open":!!m,id:o,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(Vt,null),e.createElement(v,{onClick:g},s||e.createElement(Gt,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:`${o}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+o+"-"+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(x,null,t.icon||"download"===t.type?e.createElement(Zt,null):e.createElement(qt,null)),t.label)))),e.createElement(e.Fragment,null,h.current))},Xt=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:r,children:o,justifyChildren:s,style:c,alignItems:d})=>e.createElement(w,{className:t,style:c,theme:{columns:a,columnsDesktop:n,gap:r,justifyChildren:s,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,alignItems:d}},o),Kt=({pagesAmount:a,activePage:n,handlePageChange:r,handleClick:o,href:s,queryPageName:c="page"})=>{const d=[...Array(a)].map(((e,t)=>t+1)),[m,p]=t(n<=4?d.slice(0,5):n>=d.length-3?d.slice(d.length-5,d.length):d.slice(n-2,n+1));return i((()=>{n<=4?p(d.slice(0,5)):n>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(n-2,n+1))}),[n]),e.createElement(l,null,n>4&&e.createElement(l,null,e.createElement(C,{onClick:()=>r(1)},s?e.createElement("a",{href:s,onClick:o},1):1),e.createElement(C,null,"...")),m.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===n||void 0,onClick:()=>r(t)},s?e.createElement("a",{href:G(s,t,c),onClick:o},t):t))),n<d.length-3&&e.createElement(l,null,e.createElement(C,null,"..."),e.createElement(C,{onClick:()=>r(d.length)},s?e.createElement("a",{href:G(s,d.length,c),onClick:o},d.length):d.length)))},Jt=({className:a,pagesAmount:l,currentPage:r,onChange:o,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,h]=t(r),u=n((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),b=l-1,v=e=>{e<=l&&e>0&&(h(e),o(e))},y=e=>{s&&s(e)};return i((()=>{h(r)}),[r]),e.createElement(E,{className:a,style:c},e.createElement(k,{className:"prev-page",onClick:()=>v(g-1),"data-last-page":1===g||void 0},u?e.createElement("a",{href:G(u,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(Kt,{pagesAmount:l,activePage:g,handlePageChange:v,handleClick:y,href:u,queryPageName:m}):p.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>v(t)},u?e.createElement("a",{href:G(u,t,m),onClick:y},t):t))),e.createElement(k,{className:"next-page",onClick:()=>v(g+1),"data-last-page":g===b+1||void 0},u?e.createElement("a",{href:G(u,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"}))))},Qt=({size:t="small",label:a,name:n,checked:i,value:l,className:r,isDisabled:o=!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(q,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:r,disabled:o,onChange:e=>null==s?void 0:s(e.target.value)},p))},ea=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:r,isLight:o,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(B,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":o||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:r,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:o,tagIsSquared:l,tagIsALink:c},e.createElement(Y,Object.assign({},m),a))},ta=({className:t,id:a,onChange:n,checked:i,style:l,label:r})=>e.createElement(N,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement(D,null),r&&e.createElement($,null,r))),aa=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:r,value:o,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(z,{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:()=>r(o,!n),disabled:l,value:o,id:`${a}-${o}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${o}`},t)),na=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"})),ia=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"})),la=t=>{const a=X();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"})))},ra=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:r,hideEmptyStars:o,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),h=p||d,u=p?0:m;return e.createElement(L,{"data-selectable":!!r,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:o?d+m:l}).map(((t,a)=>{const n=()=>!!r&&g(a+1),i=()=>!!r&&g(null);return a+1<=h?e.createElement(ia,{key:a,onClick:()=>null==r?void 0:r(a+1),onMouseOver:n,onMouseLeave:i}):a+1===h+u?e.createElement(la,{key:a,onClick:()=>null==r?void 0:r(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(na,{key:a,onClick:()=>null==r?void 0:r(a+1),onMouseOver:n,onMouseLeave:i})})))},oa=l=>{var{label:r,availableValue:o,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=se(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=K(),{classes:h,cx:u}=P(void 0,{name:"GenderOptionControl",styles:s}),[b,v]=t(),y=a(null),f=n((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:re.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:re.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return i((()=>{v(o)}),[o]),e.createElement(de,{ref:y,className:h.root},e.createElement(me.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},r||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:h.groupErr}}),e.createElement(pe,{className:u(h.wrapper)},f.map((t=>e.createElement(me,Object.assign({className:"gender-item",classNames:{root:h.itemRoot,labelWrapper:h.itemLabelWrapper,label:h.itemLabel,inner:h.itemInner},key:t.value,value:t.value},b&&t.value!==b&&{disabled:!0},{label:e.createElement(pe,{gap:ge(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 sa="tliWyii";const ca=({className:t,theme:a,hideText:n})=>{const{t:i}=K();return e.createElement("div",{className:`${sa} ${t}`},e.createElement(g.Spinner,{isMarryBaby:"marryBaby"===a}),!n&&i("loading"))};var da="PiqKaXk",ma="HgbW6-m",pa="_6lkfLYy",ga="j7c-onH";const ha=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:ga},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))))),ua=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:r})=>e.createElement("div",{className:ga},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(S,{tag:"h6",className:"expert__name",color:oe.colors.gray600},n),e.createElement(p,{color:oe.colors.gray500,size:"p3",className:"specialty"},r)):e.createElement(e.Fragment,null,e.createElement(S,{tag:"h6",className:"expert__name",color:oe.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(S,{tag:"h6",className:"expert__name",color:oe.colors.gray600},n),e.createElement(p,{color:oe.colors.gray500,size:"p3",className:"specialty"},r)):e.createElement(e.Fragment,null,e.createElement("h6",{color:oe.colors.gray600,className:`${da} expert__name`},n),e.createElement(p,{color:oe.colors.gray500,size:"p4",className:"specialty"},r)))))),ba=r((()=>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"}))))),va=r((({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"})))),ya=r((({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"})))),fa=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:r,categoryName:o,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:h,dataEventCategoryForBookmark:u,dataEventCategoryForCategory:b,dataEventCategoryForTitle:v,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:x,dataEventLabelForTitle:w,direction:E="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:B=!0,isMobile:N=!0,onBookmark:D,onClickCategoryName:$,section:z="normal",size:L="md",specialty:P,style:T,styleBanner:M,styleLabel:I,styleTitle:j,text:A,title:O,type:_="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const W=e=>{e.stopPropagation(),null==D||D()},U="lg"===L&&"expert"===_?"h4":"lg"===L&&"home"===z?N?"h4":"h3":"lg"===L?"h4":"h5",V="lg"===L?"p3":"p4",G=N||"home"!==z||"lg"!==L||"author"!==_?"c2":"c1";return e.createElement("article",{className:`${pa} ${s||""}`,"data-size":L,style:T,"data-direction":E,"data-is-expert":"expert"===_||void 0},e.createElement("div",{className:"banner",style:M},e.createElement("a",{className:ma,"data-event-category":h,"data-event-action":c,"data-event-label":y,href:t||"#",target:H},l),R&&e.createElement("img",{loading:"lazy",className:"premium",src:re.getAssetPath("premium-crown.svg")}),k&&e.createElement(ba,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:I,className:"label",size:G,weight:"caption"},e.createElement("a",{className:ma,"data-event-category":b,"data-event-action":m,"data-event-label":x,href:r||"#",onClick:$},o),B&&e.createElement("a",{className:"bookmark",onClick:W},C?e.createElement(va,{dataEventCategoryForBookmark:u,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(ya,{dataEventCategoryForBookmark:u,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(S,{tag:U,style:j,className:"title",as:"lg"===L?"h2":"h3"},e.createElement("a",{className:ma,"data-event-category":v,"data-event-action":g,"data-event-label":w,href:t||"#",target:H},O)),A&&e.createElement("a",{href:t||"#",target:H},e.createElement(p,{size:V,className:"text"},A))),e.createElement("div",{className:"footer"},"author"===_?e.createElement(ha,{size:L,avatarImg:i,authorName:n,authorLink:a,uploadTime:F,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:u,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(ua,{size:L,isMobile:N,avatarImg:i,specialty:P,name:n,link:a,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:u,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},xa=t=>{var a,n,i,{article:l,author:r,authorAvatar:o,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:h}=t,u=se(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:b}=ze();return console.log({article:l}),e.createElement(he,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},u),e.createElement(he.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(b?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(he.Section,null,e.createElement(ue,{position:"apart",mt:16,mb:4},e.createElement(Le,{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(de,{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==h?void 0:h.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==h?void 0:h.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"},$e(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(pe,{gap:12,align:"center"},e.createElement(Pe,{size:32,src:o,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"},r," • ",g))))};var wa=be(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const Ea=648/440,ka=1.5,Ca=t=>{var a,i,l,{article:r,author:o,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:h,time:u,tracking:b,classNames:v,styles:y,unstyled:f,className:x}=t,w=se(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:E}=ze(),{classes:k,cx:C}=wa({},{name:"ArticleCard",classNames:v,styles:y,unstyled:f}),B=n((()=>m?ka:Ea),[m]);return e.createElement(he,Object.assign({className:C(k.root,x),padding:"lg",radius:0},w),e.createElement(he.Section,{className:C(k.image,"pointer")},e.createElement(Se,Object.assign({ratio:B},d),e.createElement("img",{src:(E?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{objectFit:"cover"}}))),e.createElement(he.Section,null,e.createElement(ue,{position:"apart",mt:16,mb:4},e.createElement(Le,{className:k.category,href:(null===(a=null==r?void 0:r.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(i=null==r?void 0:r.primaryCategory)||void 0===i?void 0:i.displayName)),e.createElement(de,{sx:{cursor:"pointer"},role:"button",onClick:h},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==b?void 0:b.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==b?void 0:b.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"},r.postTitle||r.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},$e(r.excerpt||r.description||(null===(l=r.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(pe,{className:k.author,gap:12,align:"center"},e.createElement(Pe,{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"},o," • ",u))))},Ba=t=>{var{variant:a="vertical"}=t,n=se(t,["variant"]);return"horizontal"===a?e.createElement(xa,Object.assign({},n)):e.createElement(Ca,Object.assign({},n))},Na=Re.a`
2
+ display: flex;
3
+ height: 125px;
4
+
5
+ box-sizing: border-box;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ padding: 8px;
9
+
10
+ border: 1px solid ${e=>e.theme.colors.neutral100};
11
+ background-color: white;
12
+ border-radius: ${e=>e.theme.borderRadius};
13
+ box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
14
+ cursor: pointer;
15
+ text-decoration: none;
16
+
17
+ & > .banner {
18
+ width: 100%;
19
+ height: 63px;
20
+ text-align: center;
21
+ }
22
+
23
+ & > .content {
24
+ display: -webkit-box;
25
+ overflow: hidden;
26
+ -webkit-box-orient: vertical;
27
+ -webkit-line-clamp: 2;
28
+ text-align: center;
29
+ word-break: break-word;
30
+ }
31
+
32
+ * {
33
+ pointer-events: none;
34
+ }
35
+ `,Da=t=>{var{category:a,imgBanner:n,label:i,className:l,style:r,href:o="",dataEventCategory:s,dataEventAction:c,dataEventLabel:d}=t,m=se(t,["category","imgBanner","label","className","style","href","dataEventCategory","dataEventAction","dataEventLabel"]);const g=(null==a?void 0:a.customizedUrl)||(null==a?void 0:a.permalink)||o||"";return e.createElement(Na,Object.assign({"data-event-category":s,"data-event-action":c,"data-event-label":d,className:l,style:r,href:g},(null==a?void 0:a.customizedUrl)&&!Ge(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||"")))},$a=Re.div`
36
+ display: flex;
37
+
38
+ &[data-type='vertical'] {
39
+ flex-direction: column;
40
+
41
+ div {
42
+ margin-bottom: 20px;
43
+ }
44
+ }
45
+
46
+ &[data-type='horizontal'] {
47
+ flex-wrap: wrap;
48
+
49
+ div {
50
+ margin-right: 25px;
51
+ }
52
+
53
+ &[data-is-rectangle] {
54
+ div {
55
+ margin-right: 14px;
56
+ }
57
+ }
58
+ }
59
+ `,za=({name:t,values:a=[],onChanges:n,options:i=[],className:l,type:r="vertical",isDisabled:o,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($a,{className:l,"data-type":r,"data-is-rectangle":s||void 0},i.map(((n,i)=>e.createElement(aa,{label:n.label,name:t,key:`${i}-${n.value}`,checked:a.includes(n.value),value:n.value,isDisabled:o||n.disabled,onChange:!o&&c,isRectangle:s}))))},La={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},Pa=Re.div`
60
+ .pickerContainer {
61
+ position: relative;
62
+ padding-top: 0;
63
+ & > div > svg {
64
+ position: absolute;
65
+ top: 36px;
66
+ right: 16px;
67
+ cursor: pointer;
68
+ }
69
+
70
+ & > :not(:first-child) {
71
+ position: absolute;
72
+ z-index: 2;
73
+ width: 100%;
74
+ }
75
+ }
76
+
77
+ &[data-is-static] .pickerOverlayWrapper {
78
+ position: static;
79
+ max-width: 250px;
80
+ aspect-ratio: 1 / 1;
81
+
82
+ > .pickerOverlay {
83
+ padding: 1rem;
84
+ }
85
+ }
86
+
87
+ .pickerOverlayWrapper {
88
+ min-width: 320px;
89
+ }
90
+
91
+ &[data-align-right='true'] {
92
+ .pickerOverlayWrapper {
93
+ right: 0;
94
+ }
95
+ }
96
+
97
+ .pickerOverlay {
98
+ margin-top: 6px;
99
+ background: white;
100
+ border-radius: ${e=>e.theme.borderRadius};
101
+ box-shadow: 0px 6px 12px rgba(67, 86, 100, 0.2);
102
+ }
103
+
104
+ .picker {
105
+ width: 100%;
106
+ }
107
+
108
+ .react-datepicker-popper {
109
+ .react-datepicker {
110
+ display: flex;
111
+ width: 340px;
112
+ height: 305px;
113
+ align-items: center;
114
+ justify-content: center;
115
+ border: none;
116
+ box-shadow: (-1px 1px 2px rgba(67, 70, 74, 0.0001)),
117
+ (-2px 2px 5px rgba(67, 86, 100, 0.123689));
118
+ }
119
+
120
+ .svg {
121
+ cursor: pointer;
122
+ stroke: ${e=>e.theme.colors.gray800};
123
+ }
124
+ .react-datepicker__day {
125
+ width: 40px;
126
+ }
127
+
128
+ .react-datepicker__header {
129
+ border-bottom: 0;
130
+ background-color: white;
131
+ }
132
+
133
+ .react-datepicker__day--outside-month {
134
+ color: #e9e9e9;
135
+ }
136
+
137
+ .react-datepicker__day {
138
+ font-weight: ${e=>e.theme.sizes.fwBold};
139
+ }
140
+
141
+ .react-datepicker__day--selected,
142
+ .react-datepicker__day--today,
143
+ .react-datepicker__day--selected:hover,
144
+ .react-datepicker__day--keyboard-selected {
145
+ width: 32px;
146
+ height: 30px;
147
+ margin: 4px;
148
+ margin-bottom: -2px;
149
+ background: ${e=>e.theme.colors.primaryBase};
150
+ border-radius: 50%;
151
+ }
152
+
153
+ .react-datepicker__day-name {
154
+ width: 40px;
155
+ }
156
+
157
+ .react-datepicker__triangle {
158
+ display: none;
159
+ }
160
+
161
+ .react-datepicker__header.react-datepicker__header--custom {
162
+ svg {
163
+ stroke: #262626;
164
+ }
165
+ select {
166
+ background: ${e=>e.theme.colors.neutral100};
167
+ text-align: center;
168
+ &:not(:last-child) {
169
+ padding: 8px 10px;
170
+ margin-right: 15px;
171
+ border-radius: ${e=>e.theme.borderRadius};
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ /* DayPicker styles */
178
+
179
+ .DayPicker {
180
+ display: inline-block;
181
+ font-size: 1rem;
182
+ }
183
+
184
+ .DayPicker-wrapper {
185
+ position: relative;
186
+
187
+ flex-direction: row;
188
+ padding-bottom: 1em;
189
+
190
+ -webkit-user-select: none;
191
+
192
+ -moz-user-select: none;
193
+
194
+ -ms-user-select: none;
195
+
196
+ user-select: none;
197
+ }
198
+
199
+ .DayPicker-Months {
200
+ display: flex;
201
+ flex-wrap: wrap;
202
+ justify-content: center;
203
+ }
204
+
205
+ .DayPicker-Month {
206
+ display: table;
207
+ margin: 0 16px;
208
+ margin-top: 16px;
209
+ border-collapse: collapse;
210
+ border-spacing: 0;
211
+
212
+ -webkit-user-select: none;
213
+
214
+ -moz-user-select: none;
215
+
216
+ -ms-user-select: none;
217
+
218
+ user-select: none;
219
+ }
220
+
221
+ .DayPicker-NavBar {
222
+ position: absolute;
223
+ top: 16px;
224
+ left: 0;
225
+ display: flex;
226
+ width: 100%;
227
+ height: 0;
228
+ align-items: center;
229
+ justify-content: space-between;
230
+ padding: 0 20px;
231
+ }
232
+
233
+ .DayPicker-NavButton {
234
+ width: 24px;
235
+ height: 24px;
236
+ margin-bottom: -47px;
237
+ background-position: center;
238
+ background-repeat: no-repeat;
239
+ background-size: 16px 16px;
240
+ color: #8b9898;
241
+ cursor: pointer;
242
+ }
243
+
244
+ .DayPicker-NavButton:hover {
245
+ opacity: 0.8;
246
+ }
247
+
248
+ .DayPicker-NavButton--prev {
249
+ //left: 2px;
250
+ background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9L1 5L5 1' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
251
+ }
252
+
253
+ .DayPicker-NavButton--next {
254
+ //right: 2px;
255
+ background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L1 9' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
256
+ }
257
+
258
+ .DayPicker-NavButton--interactionDisabled {
259
+ display: none;
260
+ }
261
+
262
+ .DayPicker-Caption {
263
+ display: table-caption;
264
+ width: 100%;
265
+ height: 46px;
266
+ padding: 0 32px;
267
+ }
268
+
269
+ .DayPicker-Caption select {
270
+ font-size: 16px;
271
+ font-weight: 600;
272
+ line-height: 24px;
273
+ text-align: left;
274
+ }
275
+
276
+ .DayPicker-Weekdays {
277
+ display: table-header-group;
278
+ margin-top: 1em;
279
+ }
280
+
281
+ .DayPicker-WeekdaysRow {
282
+ display: table-row;
283
+ }
284
+
285
+ .DayPicker-Weekday {
286
+ display: table-cell;
287
+ padding: 0.5em;
288
+ color: #8b9898;
289
+ font-size: 0.875em;
290
+ text-align: center;
291
+ }
292
+
293
+ .DayPicker-Weekday abbr[title] {
294
+ border-bottom: none;
295
+ text-decoration: none;
296
+ }
297
+
298
+ .DayPicker-Body {
299
+ display: table-row-group;
300
+ }
301
+
302
+ .DayPicker-Week {
303
+ display: table-row;
304
+ }
305
+
306
+ .DayPicker-Day {
307
+ display: table-cell;
308
+
309
+ width: 40px;
310
+ height: 40px;
311
+ border-radius: 50%;
312
+ cursor: pointer;
313
+ text-align: center;
314
+ vertical-align: middle;
315
+ }
316
+
317
+ .DayPicker-WeekNumber {
318
+ display: table-cell;
319
+ min-width: 1em;
320
+ padding: 0.5em;
321
+ border-right: 1px solid #eaecec;
322
+ color: #8b9898;
323
+ cursor: pointer;
324
+ font-size: 0.75em;
325
+ text-align: right;
326
+ vertical-align: middle;
327
+ }
328
+
329
+ .DayPicker--interactionDisabled .DayPicker-Day {
330
+ cursor: default;
331
+ }
332
+
333
+ .DayPicker-Footer {
334
+ padding-top: 0.5em;
335
+ }
336
+
337
+ .DayPicker-TodayButton {
338
+ border: none;
339
+ background-color: transparent;
340
+ background-image: none;
341
+ box-shadow: none;
342
+ color: #4a90e2;
343
+ cursor: pointer;
344
+ font-size: 0.875em;
345
+ }
346
+
347
+ /* Default modifiers */
348
+
349
+ .DayPicker-Day--today {
350
+ color: #d0021b;
351
+ font-weight: 700;
352
+ }
353
+
354
+ .DayPicker-Day--outside {
355
+ color: #8b9898;
356
+ cursor: default;
357
+ }
358
+
359
+ .DayPicker-Day--disabled {
360
+ color: #dce0e0;
361
+ cursor: default;
362
+ /* background-color: #eff1f1; */
363
+ }
364
+
365
+ /* Example modifiers */
366
+
367
+ .DayPicker-Day--sunday {
368
+ background-color: #f7f8f8;
369
+ }
370
+
371
+ .DayPicker-Day--sunday:not(.DayPicker-Day--today) {
372
+ color: #dce0e0;
373
+ }
374
+
375
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
376
+ .DayPicker-Day--outside
377
+ ) {
378
+ position: relative;
379
+
380
+ background-color: ${e=>e.theme.colors.primaryBase};
381
+ color: #f0f8ff;
382
+ font-weight: ${e=>e.theme.sizes.fwBold};
383
+ }
384
+
385
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
386
+ .DayPicker-Day--outside
387
+ ):hover {
388
+ background-color: #51a0fa;
389
+ }
390
+
391
+ .DayPicker:not(.DayPicker--interactionDisabled)
392
+ .DayPicker-Day:not(.DayPicker-Day--disabled):not(
393
+ .DayPicker-Day--selected
394
+ ):not(.DayPicker-Day--outside):hover {
395
+ background-color: #f0f8ff;
396
+ }
397
+
398
+ /* DayPickerInput */
399
+
400
+ .DayPickerInput {
401
+ display: inline-block;
402
+ }
403
+
404
+ .DayPickerInput-OverlayWrapper {
405
+ position: relative;
406
+ }
407
+
408
+ .DayPickerInput-Overlay {
409
+ position: absolute;
410
+ z-index: 1;
411
+ left: 0;
412
+
413
+ background: white;
414
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
415
+ }
416
+ `,Sa=Re.form`
417
+ display: flex;
418
+ width: 100%;
419
+
420
+ height: 46px;
421
+ align-items: center;
422
+ justify-content: space-between;
423
+ & > :first-child {
424
+ margin-right: 10px;
425
+ }
426
+
427
+ & * {
428
+ height: 46px;
429
+ padding: 10px 10px;
430
+ background: ${e=>e.theme.colors.neutral100};
431
+ border-radius: ${e=>e.theme.borderRadius};
432
+ }
433
+ `,Ta=({alignRight:n=!0,placeholder:l,displayDateFormat:r,onChange:o,customInput:s,pickedDate:c,className:d,isStatic:m,disabledDays:p,modifiers:g,UnHideOnClickOutside:h,initialMonth:u,locale:b="en-PH"})=>{const v=a(!1),y=Je,[f,x]=t(u||new Date),w=a(null),E=a(null),k=La[b],C=e=>{h||w.current&&w.current.contains(e.target)||E.current&&E.current.hideDayPicker()},B=(new Date).getFullYear(),N=new Date(B-150,0),D=new Date(B+1,0),$=({date:t,onChange:a,monthLabels:n})=>{const i=[];for(let e=D.getFullYear();e>=N.getFullYear();e-=1)i.push(e);const l=function(e){const{year:t,month:n}=e.target.form;a(new Date(t.value,n.value))};return e.createElement("div",{className:"DayPicker-Caption"},e.createElement(Sa,null,e.createElement("select",{name:"month",onChange:l,value:t.getMonth()},n.map(((t,a)=>e.createElement("option",{key:t,value:a},t)))),e.createElement("select",{name:"year",onChange:l,value:t.getFullYear()},i.map((t=>e.createElement("option",{key:t,value:t},t))))))};return i((()=>(document.addEventListener("mousedown",C,{passive:!0}),()=>{document.removeEventListener("mousedown",C,!1)})),[]),e.createElement(Pa,{className:d,"data-align-right":n,ref:w,"data-is-static":m||void 0},e.createElement(kt,{ref:E,inputProps:{readOnly:!0},keepFocus:!1,classNames:{container:"pickerContainer",overlayWrapper:"pickerOverlayWrapper",overlay:"pickerOverlay"},component:s&&e.forwardRef(((t,a)=>e.createElement(s,Object.assign({},t)))),onDayPickerHide:()=>{v.current=!1},onDayPickerShow:()=>{v.current=!0},dayPickerProps:{month:f,className:"picker",selectedDays:c,canChangeMonth:!0,enableOutsideDaysClick:!m,firstDayOfWeek:1,captionElement:({date:t,localeUtils:a})=>{const n=null==a?void 0:a.getMonths();return e.createElement($,{date:t,monthLabels:k||n,onChange:x})},disabledDays:p||void 0,modifiers:g},format:r||"yyyy-MM-dd",formatDate:(e,t)=>y(e,t),hideOnDayClick:!m,placeholder:l||"",onDayChange:e=>{var t;t=e,E.current&&!m&&E.current.hideDayPicker(),o&&o(t)},showOverlay:m}))},Ma=Re.div`
434
+ display: flex;
435
+ align-items: center;
436
+ --font-weight-lg: ${e=>e.theme.sizes.fwBold};
437
+ --font-weight-md: ${e=>e.theme.sizes.fwRegular};
438
+ --font-weight-sm: ${e=>e.theme.sizes.fwRegular};
439
+
440
+ &[data-icon-position='left'] {
441
+ & > *:first-child {
442
+ margin-right: 8px;
443
+ }
444
+
445
+ & > *:last-child {
446
+ width: calc(100% - 24px);
447
+ }
448
+ }
449
+ &[data-icon-position='right'] {
450
+ & > *:first-child {
451
+ width: calc(100% - 24px);
452
+ }
453
+ & > *:last-child {
454
+ margin-left: 8px;
455
+ }
456
+ }
457
+
458
+ ${Z.mbDown} {
459
+ &[data-size='lg'] {
460
+ font-size: 16px;
461
+ line-height: 24px;
462
+ font-weight: var(--font-weight-lg);
463
+ }
464
+ &[data-size='md'] {
465
+ font-size: 14px;
466
+ line-height: 22px;
467
+ font-weight: var(--font-weight-md);
468
+ }
469
+ &[data-size='sm'] {
470
+ font-size: 13px;
471
+ line-height: 20px;
472
+ font-weight: var(----font-weight-sm);
473
+ }
474
+ }
475
+ `,Ia=({size:t,iconPosition:a,className:n,children:i,icon:l})=>e.createElement(Ma,{className:n,"data-size":t,"data-icon-position":a},"left"===a&&l,i,"right"===a&&l),ja=Re.div`
476
+ position: relative;
477
+ width: 100%;
478
+
479
+ & div[role='slider'] {
480
+ -webkit-text-size-adjust: none;
481
+ -webkit-user-select: none;
482
+ &:focus {
483
+ outline: none;
484
+ }
485
+ }
486
+ `,Aa=Re.div`
487
+ position: absolute;
488
+ top: 19px;
489
+ width: 24px;
490
+ height: 24px;
491
+ color: ${e=>e.theme.colors.white};
492
+ border: 2px solid ${e=>e.theme.colors.white};
493
+ border-radius: 50%;
494
+ transform: translateY(-50%) translateX(-50%);
495
+ display: flex;
496
+ align-items: center;
497
+ justify-content: center;
498
+ cursor: pointer;
499
+
500
+ background-color: ${e=>e.theme.colors.white};
501
+ color: ${e=>e.theme.colors.gray300};
502
+ border: 1px solid ${e=>e.theme.colors.gray300};
503
+
504
+ &[data-is-active='true'] {
505
+ background-color: ${e=>e.theme.colors.primaryBase};
506
+ color: ${e=>e.theme.colors.white};
507
+ border: none;
508
+ }
509
+ `,Oa=Re.div`
510
+ display: flex;
511
+ width: 100%;
512
+ height: 36px;
513
+
514
+ &[data-track-type='detail'] {
515
+ margin-top: 0;
516
+ }
517
+
518
+ &[data-track-type='detail'][data-step-passed='true'] > div {
519
+ border: 1px solid ${e=>e.theme.colors.primaryBase};
520
+ height: 0px;
521
+ }
522
+
523
+ &[data-track-type='detail'] > div {
524
+ border: 1px solid ${e=>e.theme.colors.gray200};
525
+ height: 0px;
526
+ }
527
+ `,_a=Re.div`
528
+ width: 100%;
529
+ height: 5px;
530
+ align-self: center;
531
+ border-radius: 4px;
532
+ background-color: ${e=>e.theme.colors.gray200};
533
+ `,Fa=Re.div`
534
+ position: absolute;
535
+ top: 32px;
536
+ min-width: 100px;
537
+ text-align: center;
538
+ color: ${e=>e.theme.colors.gray500};
539
+ font-size: ${e=>e.theme.sizes.fsCaption2};
540
+ font-weight: ${e=>e.theme.sizes.fwBold};
541
+
542
+ &[data-step-passed='true'] {
543
+ color: ${e=>e.theme.colors.gray800};
544
+ }
545
+ `,Ha=Re.div`
546
+ display: flex;
547
+ align-items: center;
548
+ `,Ra=Re.div`
549
+ display: flex;
550
+ align-items: center;
551
+ font-size: ${e=>e.theme.sizes.fsCaption2};
552
+ font-weight: ${e=>e.theme.sizes.fwBold};
553
+ color: ${e=>e.theme.colors.gray500};
554
+ cursor: pointer;
555
+
556
+ & > svg {
557
+ height: 10px;
558
+ width: 10px;
559
+ margin: 0 14px;
560
+ }
561
+
562
+ & > svg > path {
563
+ stroke: ${e=>e.theme.colors.gray500};
564
+ }
565
+
566
+ &[data-selected='true'] {
567
+ color: ${e=>e.theme.colors.primaryBase};
568
+ }
569
+ `,Wa=Re.div`
570
+ position: absolute;
571
+ left: 0;
572
+ top: 19px;
573
+ height: 24px;
574
+ cursor: pointer;
575
+
576
+ transform: translateY(-50%);
577
+ display: flex;
578
+ align-items: center;
579
+
580
+ padding: 8px;
581
+ background-color: ${e=>e.theme.colors.white};
582
+ `,Ua=Re.div`
583
+ min-width: 24px;
584
+ height: 24px;
585
+ border: 2px solid ${e=>e.theme.colors.white};
586
+ border-radius: 50%;
587
+ margin-right: 8px;
588
+ display: flex;
589
+ align-items: center;
590
+ justify-content: center;
591
+ cursor: pointer;
592
+
593
+ background-color: ${e=>e.theme.colors.white};
594
+ color: ${e=>e.theme.colors.gray300};
595
+ border: 1px solid ${e=>e.theme.colors.gray300};
596
+
597
+ &[data-is-active='true'] {
598
+ border: none;
599
+ background-color: ${e=>e.theme.colors.primaryBase};
600
+ color: ${e=>e.theme.colors.white};
601
+ }
602
+ `,Va=Re.div`
603
+ display: flex;
604
+ align-items: center;
605
+ justify-content: center;
606
+
607
+ & > svg {
608
+ height: 20px;
609
+ width: 20px;
610
+ margin-right: 8px;
611
+
612
+ & > path {
613
+ stroke: ${e=>e.theme.colors.gray500};
614
+ }
615
+ }
616
+ `,Ga=Re.div`
617
+ color: ${e=>e.theme.colors.gray400};
618
+ font-size: ${e=>e.theme.sizes.fsCaption2};
619
+ font-weight: ${e=>e.theme.sizes.fwBold};
620
+ margin-right: 8px;
621
+ flex: 0 0 auto;
622
+
623
+ &[data-step-passed='true'] {
624
+ color: ${e=>e.theme.colors.gray800};
625
+ }
626
+ `,Za=Re.div`
627
+ position: absolute;
628
+ top: 32px;
629
+ font-weight: ${e=>e.theme.sizes.fwRegular};
630
+ color: ${e=>e.theme.colors.gray400};
631
+ padding-right: 16px;
632
+ `,qa=({type:a,numberOfStep:n,activeStep:l,labelPrefix:r,detailSteps:s,className:c,onChange:d})=>{const[m,p]=t(0),g=t=>{var{trackClassName:a}=t,n=se(t,["trackClassName"]);return e.createElement(Oa,Object.assign({},n,{className:a}),e.createElement(_a,null))},h=e.createElement(ja,{className:c+" progress-bar"},e.createElement(g,null),e.createElement((({trackLength:t,activeStep:a,labelPrefix:i="Step",onChange:l})=>e.createElement(e.Fragment,null,Array.from({length:n},((e,t)=>t)).map(((r,o)=>e.createElement(Aa,{"data-is-active":o===a,"data-label":o,style:{left:o*t/(n-1)},onClick:()=>{l&&l(o)},key:o},o+1,e.createElement(Fa,{"data-step-passed":o<=a},i+" "+(o+1))))))),{trackLength:m,activeStep:l,labelPrefix:r,onChange:d})),u=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})),b=e.createElement(Ha,null,s&&Array.from({length:s.length},((e,t)=>t)).map(((t,a)=>{var n;return e.createElement(Ra,{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&&u)}))),v=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(Wa,{key:l,style:{left:100/t.length*l+"%",width:100/t.length+"%"},onClick:()=>{n&&n(l)}},t[l].icon?e.createElement(Va,{onClick:()=>{n&&n(l)}},t[l].icon):e.createElement(Ua,{"data-is-active":l===a,"data-label":i,onClick:()=>{n&&n(l)},key:l},l+1),e.createElement(Ga,{"data-step-passed":l<a+1},t[l].text,e.createElement(Za,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=o(Ze((()=>{const e=document.querySelector(".progress-bar");e&&p(e.offsetWidth)}),1e3),[]);return i((()=>{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"===a&&h||"breadcrumb"===a&&b||"detail-track"===a&&v},Ya=e.forwardRef((({id:a,value:n,options:i,className:l,isDisabled:r,size:o="small",direction:c="vertical",onChange:d,dataEventCategory:m,dataEventAction:p,dataEventLabel:g},h)=>{const[u,b]=t(n);s(h,(()=>({reset(){b(n)}})));const v="small"===o?"md":"lg",y="vertical"===c?ve:ue;return e.createElement(q.Group,{name:a,className:l,size:v,value:String(u),defaultValue:n,onChange:e=>{b(e),null==d||d(e)}},e.createElement(y,{spacing:"xl"},i.map((t=>e.createElement(q,{key:t.value,value:t.value,label:t.label,disabled:r,"data-event-category":m,"data-event-action":p,"data-event-label":g})))))})),Xa=Re.div`
633
+ --menu-width: 240px;
634
+ --menu-spacing: 28px 16px;
635
+ width: var(--menu-width);
636
+ height: 100vh;
637
+ padding: var(--menu-spacing);
638
+ background-color: ${e=>e.theme.colors.neutral50};
639
+ transition: ease-in-out 0.5s;
640
+
641
+ &[data-is-collapsed] {
642
+ --menu-width: 64px;
643
+ --menu-spacing: 28px 8px;
644
+ }
645
+ `,Ka=Re.div`
646
+ display: flex;
647
+ align-items: baseline;
648
+ justify-content: space-between;
649
+
650
+ svg {
651
+ transition: 0.4s ease-in-out;
652
+ }
653
+ `,Ja=Re.div`
654
+ cursor: pointer;
655
+ &[data-is-collapsed] {
656
+ transform: rotate(180deg);
657
+ }
658
+ `,Qa=Re.figure`
659
+ display: flex;
660
+
661
+ > img,
662
+ svg,
663
+ picture {
664
+ width: 40px;
665
+ height: 40px;
666
+ margin-right: 1rem;
667
+ border-radius: 6px;
668
+ object-fit: cover;
669
+ }
670
+
671
+ > figcaption {
672
+ p + p {
673
+ margin-top: 2px;
674
+ }
675
+ }
676
+ `,en=({name:t,description:a,image:n,isDescriptionHidden:i})=>e.createElement(Qa,null,n,!i&&e.createElement("figcaption",null,e.createElement(p,{size:"p4",weight:"bold"},t),e.createElement(p,{size:"p4"},a))),tn=Re.div`
677
+ display: flex;
678
+ align-items: center;
679
+ margin-top: 24px;
680
+ margin-bottom: 36px;
681
+
682
+ figcaption {
683
+ white-space: nowrap;
684
+ }
685
+
686
+ &[data-is-collapsed='true'] {
687
+ img {
688
+ max-width: 2rem;
689
+ max-height: 2rem;
690
+ }
691
+ }
692
+ `,an=Re.div`
693
+ display: flex;
694
+ align-items: center;
695
+ padding: 9px 21px;
696
+ margin-bottom: 4px;
697
+ border-radius: 6px;
698
+
699
+ &:not([data-is-link-active]) {
700
+ cursor: pointer;
701
+ }
702
+
703
+ p {
704
+ margin-left: 12px;
705
+ }
706
+
707
+ &[data-is-link-active] {
708
+ background: ${e=>e.theme.colors.primaryBase};
709
+ }
710
+
711
+ &[data-is-link-collapsed] {
712
+ justify-content: center;
713
+ margin-right: -14px;
714
+ margin-left: -14px;
715
+ }
716
+ `;var nn=Object.freeze({__proto__:null,SideMenu:({isCollapsed:t,className:a,style:n,children:i})=>e.createElement(Xa,{style:n,className:a,"data-is-collapsed":t||void 0},i),SideHeader:({isCollapsed:t,defaultLogo:a,onBackClick:n,customIcon:i})=>e.createElement(Ka,null,e.createElement(qe,{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(tn,{"data-is-collapsed":t||void 0},e.createElement(en,{image:i,name:a,description:n,isDescriptionHidden:t})),MenuLink:({icon:t,isActive:a,children:n,isCollapsed:i,activeIcon:l,onLinkClick:r,textSize:o="base",textType:s="bold",textColorActive:c="#fff",textColor:d="#595959"})=>e.createElement(an,{"data-is-link-active":a||void 0,onClick:r,"data-is-link-collapsed":i||void 0},a&&l?l:t,!i&&e.createElement(p,{size:o,weight:s,color:a?c:d},n))});const ln=Re.div`
717
+ position: relative;
718
+ width: 100%;
719
+ > .container {
720
+ display: flex;
721
+ width: 100%;
722
+ -ms-overflow-style: none;
723
+ overflow-x: auto;
724
+ scrollbar-width: none;
725
+
726
+ &::-webkit-scrollbar {
727
+ display: none;
728
+ }
729
+
730
+ .section {
731
+ display: flex;
732
+ width: 100%;
733
+ flex-direction: column;
734
+ flex-shrink: 0;
735
+ margin: auto;
736
+
737
+ > .grid-layout {
738
+ display: grid;
739
+ width: 100%;
740
+ grid-row-gap: 8px;
741
+
742
+ > .item-grid {
743
+ width: 100%;
744
+
745
+ > * {
746
+ margin: 0 auto;
747
+ }
748
+ }
749
+ }
750
+
751
+ .progress-bar {
752
+ display: grid;
753
+ height: 15px;
754
+ margin-bottom: 10px;
755
+
756
+ .items-progress {
757
+ position: relative;
758
+ display: flex;
759
+ width: 100%;
760
+ align-items: center;
761
+ justify-content: center;
762
+
763
+ .icon-status {
764
+ position: absolute;
765
+ display: flex;
766
+ }
767
+
768
+ .line {
769
+ width: 50%;
770
+ height: 2px;
771
+ background-color: ${e=>e.theme.colors.gray600};
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
777
+
778
+ .bullet-nav {
779
+ position: absolute;
780
+ z-index: ${e=>e.theme.zIndexes.belowHeader};
781
+ bottom: -30px;
782
+ left: 50%;
783
+ display: flex;
784
+ transform: translate(-50%, -50%);
785
+ }
786
+
787
+ .bullet-nav__link {
788
+ display: block;
789
+ width: 8px;
790
+ height: 8px;
791
+ padding: 0;
792
+ margin-right: 8px;
793
+ backface-visibility: hidden;
794
+ background-color: #e4e8ec;
795
+ border-radius: 50%;
796
+ cursor: pointer;
797
+ transition: all 0.3s;
798
+ }
799
+
800
+ .bullet-nav__link.active[data-scheme='hellosites'] {
801
+ background-color: ${e=>e.theme.colors.primary600};
802
+ }
803
+
804
+ .bullet-nav__link.active[data-scheme='marrybaby'] {
805
+ background-color: ${e=>e.theme.mbColors.pink};
806
+ }
807
+
808
+ .arrow-left {
809
+ position: absolute;
810
+ z-index: 10;
811
+ top: 50%;
812
+ left: -35px;
813
+ transform: translateY(-50%);
814
+ &[data-event-category] > * {
815
+ pointer-events: none;
816
+ }
817
+ }
818
+
819
+ .arrow-right {
820
+ position: absolute;
821
+ z-index: 10;
822
+ top: 50%;
823
+ right: -35px;
824
+ transform: translateY(-50%);
825
+ &[data-event-category] > * {
826
+ pointer-events: none;
827
+ }
828
+ }
829
+
830
+ .image-gallery-wrapper {
831
+ display: flex;
832
+ position: relative;
833
+ margin-top: 16px;
834
+ justify-content: center;
835
+ gap: 16px;
836
+ .image-block {
837
+ display: block;
838
+ width: 100%;
839
+ border: 2px solid transparent;
840
+ border-radius: 4px;
841
+ }
842
+ .image-block.active {
843
+ border-color: ${e=>e.theme.colors.primaryBase};
844
+ }
845
+ img {
846
+ height: 40px;
847
+ width: auto;
848
+ max-width: 100%;
849
+ }
850
+ }
851
+ `,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"})),on=({row:n=2,column:l=3,isDotsShown:r=!0,isImageGalleryShown:o=!1,mode:s="infinity",type:c="separated",distanceOverlappedLeft:d={amount:0,unit:"pixel"},children:m,className:p,isProgressShown:g=!1,statusChildren:h,isArrowShown:u=!1,classNameLeftArrow:b,classNameRightArrow:v,dataEventCategory:y,dataEventAction:f,dataEventLabel:x,onChangePage:w,page:E,customPageWidth:k,scheme:C="hellosites",arrowType:B="Discover"})=>{const N="number"==typeof E,[D,$]=t(N?E:0),z=[];e.Children.map(m,((t,a)=>{a%(n*l)==0&&z.push([]),z[z.length-1].push(e.cloneElement(t))}));const L=a(),P=a(0),S=e=>{if(!L.current)return;const{clientWidth:t}=L.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;L.current.scrollTo({top:0,left:n,behavior:"smooth"}),P.current=e,$(e),w&&w(e)};i((()=>{"number"==typeof E&&(e=>{if(!L.current)return;const{clientWidth:t}=L.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;L.current.scrollTo({top:0,left:n,behavior:"smooth"}),P.current=e,$(e)})(E)}),[E]);const T=e=>{if(!L.current)return;const{clientWidth:t}=L.current,a=k||t;let n;n=0===D?0:D*a,"forward"===e&&(n===a*(z.length-1)?($(z.length-1),n=a*(z.length-1),w&&w(z.length-1)):($(D+1),n+=a,w&&w(D+1)),L.current.scrollTo({top:0,left:n,behavior:"smooth"})),"back"===e&&(0===n?($(0),w&&w(0),n=0):($(D-1),w&&w(D-1),n-=a),L.current.scrollTo({top:0,left:n,behavior:"smooth"}))},M=Ze((()=>{if("infinity"===s){if(!L.current)return;const{clientWidth:e,scrollLeft:t}=L.current,a=k||e,n=Math.floor(t/a);$(n),w&&w(n)}}),400);return i((()=>{if("snapped"===s){let e,t,a,n,i,l,r=!1;const o=L.current,s=(l,s)=>{r=!0,a=!1,n=!1,e=l-o.offsetLeft,t=s-o.offsetTop,i=o.scrollLeft},m=e=>{s(e.pageX,e.pageY)},p=e=>{s(e.touches[0].pageX,e.touches[0].pageY)},g=()=>{if(r=!1,a=!1,n=!1,!L.current)return;const{clientWidth:e}=L.current,t=k||e,i="ltr"===l?0!==P.current?P.current-1:P.current:"rtl"===l&&P.current<z.length-1?P.current+1:P.current,o="intertwined"===c?"percentage"===d.unit?i*t+d.amount/100*t*i:i*t+d.amount*t*i:i*t;L.current.scrollTo({top:0,left:o,behavior:"smooth"}),l="none",P.current!==i&&(P.current=i,$(i),w&&w(i))},h=(s,c)=>{if(!r)return;const d=s-o.offsetLeft,m=c-o.offsetTop,p=d-e,g=m-t;a||n||!(g>20||g<-20)||(a=!0),!a&&(p>20||p<-20)&&(n=!0,o.scrollLeft=i-p,p>0&&(l="ltr"),p<0&&(l="rtl"),0===p&&(l="none"))},u=e=>{n&&e.preventDefault(),h(e.pageX,e.pageY)},b=e=>{n&&e.preventDefault(),h(e.touches[0].pageX,e.touches[0].pageY)};return null==o||o.addEventListener("mousedown",m,{passive:!0}),null==o||o.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("mouseup",g,{passive:!0}),window.addEventListener("touchend",g,{passive:!0}),null==o||o.addEventListener("mousemove",u,{passive:!0}),null==o||o.addEventListener("touchmove",b,{passive:!0}),()=>{null==o||o.removeEventListener("mousedown",m),null==o||o.removeEventListener("touchstart",p),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g),null==o||o.removeEventListener("mousemove",u),null==o||o.removeEventListener("touchmove",b)}}}),[]),e.createElement(ln,{className:p,"data-row":n,onScroll:M},u&&D>0&&e.createElement("div",{className:`${b} arrow-left`,onClick:()=>T("back"),"data-event-category":y,"data-event-action":f,"data-event-label":x},"Care"===B?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:L,className:"container",style:{overflowX:"snapped"===s||u?"hidden":"scroll"}},z.map(((t,a)=>{let i=0;for(let e=0;e<a;e++)i+=z[e].length;return e.createElement("div",{key:a,className:"section",style:{marginLeft:"intertwined"===c&&0!==a?d.amount+""+("percentage"===d.unit?"%":"px"):"0px"}},1===n&&g&&e.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${l}, 1fr)`}},t.map(((n,l)=>{const r=i+l,o=h.find((e=>e.index===r));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==o?void 0:o.status})),a===z.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(${n}, 1fr)`}},t.map(((t,a)=>e.createElement(e.Fragment,{key:a},e.createElement("div",{className:"item-grid",key:a},t))))))}))),u&&D<z.length-1&&e.createElement("div",{className:`${v} arrow-right`,onClick:()=>T("forward"),"data-event-category":y,"data-event-action":f,"data-event-label":x}," ","Care"===B?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"}))),r&&e.createElement("ul",{className:"bullet-nav"},z.map(((t,a)=>e.createElement("li",{key:a,className:"bullet-nav__item "},e.createElement("p",{onClick:()=>S(a),className:`bullet-nav__link scroll ${D==a?"active":null}`,"data-scheme":C}))))),o&&e.createElement("div",{className:"image-gallery-wrapper","data-test":z.length},z.slice(0,3).map(((t,a)=>e.createElement("div",{className:`image-block ${D==a?"active":null}`,key:a,onClick:()=>S(a),"data-scheme":C},t)))))},sn=Re.div`
852
+ border-radius: ${e=>e.theme.borderRadius};
853
+ ${e=>e["data-is-in-card"]&&`\n padding: 12px; \n background-color: ${e["data-card-color"]};`}
854
+ `,cn=Re.div`
855
+ width: 13px;
856
+ height: 13px;
857
+ margin-right: 10px;
858
+ background-color: ${e=>e["data-color"]};
859
+ border-radius: 50%;
860
+ `,dn=Re.div`
861
+ display: flex;
862
+ align-items: center;
863
+ color: ${e=>e.theme.colors.gray800};
864
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
865
+ font-weight: ${e=>e.theme.sizes.fwRegular};
866
+ `,mn=Re.div`
867
+ display: flex;
868
+ align-items: center;
869
+ margin-top: 4px;
870
+ color: ${e=>e.theme.colors.gray800};
871
+ font-size: ${e=>e.theme.sizes.fsHeading2};
872
+ font-weight: ${e=>e.theme.sizes.fwSemiBold};
873
+
874
+ & > svg {
875
+ width: 24px;
876
+ height: 24px;
877
+ margin-right: 12px;
878
+ }
879
+
880
+ &[data-size='small'] {
881
+ margin-left: 23px;
882
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
883
+ font-weight: ${e=>e.theme.sizes.fwBold};
884
+ }
885
+ `,pn=({type:t,description:a,value:n,withIcon:i,isInACard:l,cardColor:r,className:o})=>e.createElement(sn,{className:o,"data-size":t,"data-is-in-card":"big"===t&&l,"data-card-color":r},e.createElement(dn,null,"small"===t&&e.createElement(cn,{"data-color":r}),a),e.createElement(mn,{"data-size":t},"small"!==t&&i,n)),gn=Re.table`
886
+ --horizontal-spacing: ${e=>e.theme.horizontalPadding||"19px"};
887
+ --vertical-spacing: ${e=>e.theme.verticalPadding||"26px"};
888
+ width: 100%;
889
+ position: relative;
890
+ `,hn=Re.td`
891
+ padding: var(--vertical-spacing) var(--horizontal-spacing);
892
+ vertical-align: middle;
893
+
894
+ &[data-text-align='left'] {
895
+ text-align: left;
896
+ }
897
+ &[data-text-align='right'] {
898
+ text-align: right;
899
+ }
900
+ &[data-text-align='center'] {
901
+ text-align: center;
902
+ }
903
+ `,un=Re.tr`
904
+ border-bottom: 1px solid ${e=>e.theme.colors.gray100};
905
+
906
+ &[data-is-active='true'] {
907
+ background-color: ${e=>e.theme.colors.gray200};
908
+ }
909
+ `,bn=({children:t,className:a,style:n,isActive:i,onRowClicked:l,rowId:r})=>e.createElement(un,{className:a,"data-is-active":i,style:n,onClick:()=>{l&&l(r)}},t),vn=Re.thead`
910
+ th {
911
+ padding: var(--vertical-spacing) var(--horizontal-spacing);
912
+ text-align: left;
913
+
914
+ color: ${e=>e.theme.colors.gray500};
915
+ font-weight: ${e=>e.theme.sizes.fwBold};
916
+ }
917
+ &[data-is-sticky] {
918
+ th {
919
+ position: sticky;
920
+ top: 0;
921
+ background: white;
922
+ border-bottom: 2px solid
923
+ ${e=>e.theme.colors.gray200};
924
+ }
925
+ }
926
+ `,yn=Re.tbody`
927
+ position: relative;
928
+ &[data-is-striped] {
929
+ > tr:nth-child(odd) {
930
+ background-color: ${e=>e.theme.colors.neutral50};
931
+ }
932
+ }
933
+ &[data-is-hoverable] {
934
+ > tr:hover {
935
+ background-color: ${e=>e.theme.colors.neutral100};
936
+ }
937
+ }
938
+ `;var fn=Object.freeze({__proto__:null,Table:({children:t,className:a,style:n,horizontalPadding:i,verticalPadding:l})=>e.createElement(gn,{className:a,style:n,theme:{horizontalPadding:i,verticalPadding:l}},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(vn,{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(yn,{className:a,style:n,"data-is-striped":l||void 0,"data-is-hoverable":i||void 0},t)}),xn=be((e=>{const t=ye("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:a,initialTab:n,tabContent:l,onChange:r,className:o,dataEventCategory:s,dataEventAction:c,dataEventLabel:d,id:m,styles:g})=>{const{classes:h,cx:u,theme:b}=xn(void 0,{name:"Tabs",styles:g}),[v,y]=t(n||0);return i((()=>{y(n)}),[n]),e.createElement("ul",{style:a,className:u(h.root,o),role:"tablist",id:m},l.map(((t,a)=>e.createElement("li",{className:`${h.item} ${v===a?"active":""} ${t.className}`,"aria-selected":v===a,role:"tab",onClick:()=>{y(a),r&&r(a)},onKeyDown:e=>{"Enter"===e.key&&(y(a),r&&r(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:h.itemInner},t.icon&&e.createElement("div",{className:h.icon},t.icon),e.createElement(p,{className:h.label,size:t.textSize||"sm",weight:t.textType||"bold",color:v===a?b.fn.primaryColor():t.textColor||b.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))},En=Re.div`
939
+ padding: 1rem;
940
+ background: ${e=>e.theme.colors.neutral100};
941
+ .survey-inner-wrapper {
942
+ padding: 1.25rem 1rem 1.5rem;
943
+ background: ${e=>e.theme.colors.white};
944
+ border-radius: ${e=>e.theme.borderRadius};
945
+ .survey-header {
946
+ border-bottom: 1px solid #dbdfe5;
947
+ margin-bottom: 12px;
948
+ .survey-header-text {
949
+ color: ${e=>e.theme.colors.gray500};
950
+ }
951
+ }
952
+
953
+ .survey-contact-submit {
954
+ width: 100%;
955
+ margin-bottom: 1.5rem;
956
+ }
957
+ .term-policy-container {
958
+ width: 70%;
959
+ min-width: 210px;
960
+ max-width: 100%;
961
+ margin: 0 auto 1.5rem;
962
+ text-align: center;
963
+ }
964
+
965
+ .survey-progress-wrapper {
966
+ width: calc(100% + 2rem);
967
+ height: 4px;
968
+ margin-bottom: 1rem;
969
+ margin-left: -1rem;
970
+ background: #e4e8ec;
971
+ .survey-progress {
972
+ width: 100%;
973
+ height: 100%;
974
+ background: #00b16a;
975
+ transform: scaleX(0);
976
+ transform-origin: left;
977
+ transition: transform ease-in-out 0.3s;
978
+ }
979
+ }
980
+
981
+ .survey-button-wrapper {
982
+ display: flex;
983
+ justify-content: flex-end;
984
+ button {
985
+ justify-content: center;
986
+ &[data-has-icon='true'] {
987
+ svg {
988
+ width: 10px;
989
+ height: 10px;
990
+ margin-right: 10px;
991
+ vertical-align: unset;
992
+ }
993
+ }
994
+ &.survey-next-button {
995
+ &[data-has-icon='true'] {
996
+ svg {
997
+ margin-right: 0;
998
+ margin-left: 10px;
999
+ }
1000
+ }
1001
+ }
1002
+ }
1003
+ &[data-center='true'] {
1004
+ justify-content: center;
1005
+ button:only-child {
1006
+ width: 200px;
1007
+ max-width: 80%;
1008
+ }
1009
+ }
1010
+ .survey-prev-button {
1011
+ margin-right: 0.5rem;
1012
+ }
1013
+ }
1014
+ }
1015
+ `,kn=Re.div`
1016
+ position: relative;
1017
+ display: flex;
1018
+ align-items: center;
1019
+ cursor: pointer;
1020
+
1021
+ input {
1022
+ position: relative;
1023
+ width: 20px;
1024
+ height: 20px;
1025
+ flex-shrink: 0;
1026
+ border: solid 1px ${e=>e.theme.colors.gray500};
1027
+ margin-right: 8px;
1028
+ border-radius: 100%;
1029
+ cursor: inherit;
1030
+ transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
1031
+
1032
+ &:hover,
1033
+ &:active {
1034
+ border-color: ${e=>e.theme.colors.primaryBase};
1035
+ box-shadow: 0 0 2px 2px
1036
+ ${e=>e.theme.colors.primary600};
1037
+ }
1038
+
1039
+ &:checked {
1040
+ display: flex;
1041
+ align-items: center;
1042
+ justify-content: center;
1043
+ border-color: ${e=>e.theme.colors.primaryBase};
1044
+ &:after {
1045
+ position: absolute;
1046
+ top: 50%;
1047
+ left: 50%;
1048
+ width: 14px;
1049
+ height: 14px;
1050
+ //left: 3px;
1051
+ //position: absolute;
1052
+ //top: 4px;
1053
+ background-color: ${e=>e.theme.colors.primaryBase};
1054
+ border-radius: 50%;
1055
+ content: '';
1056
+ transform: translate(-50%, -50%);
1057
+ }
1058
+ }
1059
+ }
1060
+
1061
+ label {
1062
+ width: calc(100% - 24px);
1063
+ cursor: inherit;
1064
+ font-weight: ${e=>e.theme.sizes.fwRegular};
1065
+ }
1066
+
1067
+ &[data-disabled='true'] {
1068
+ color: ${e=>e.theme.colors.gray300};
1069
+ cursor: not-allowed;
1070
+ input {
1071
+ border-color: ${e=>e.theme.colors.gray300};
1072
+
1073
+ &:hover {
1074
+ border-color: ${e=>e.theme.colors.gray300};
1075
+ box-shadow: none;
1076
+ }
1077
+ }
1078
+ }
1079
+
1080
+ padding: 16px 20px;
1081
+ border: 0.5px solid transparent;
1082
+ background: #fafafa;
1083
+ border-radius: ${e=>e.theme.borderRadius};
1084
+ &[data-checked='true'] {
1085
+ border: 0.5px solid #2d87f3;
1086
+ background: #f7f9fc;
1087
+ }
1088
+ input {
1089
+ border: solid 2px #737373;
1090
+ margin-right: 0;
1091
+ background: white;
1092
+ &[type='checkbox'] {
1093
+ &:checked {
1094
+ border: 0;
1095
+ background: ${e=>e.theme.colors.primaryBase}
1096
+ url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
1097
+ no-repeat center center;
1098
+ &:after {
1099
+ display: none;
1100
+ }
1101
+ }
1102
+ }
1103
+ }
1104
+
1105
+ &[data-has-image='true'] {
1106
+ position: relative;
1107
+ display: block;
1108
+ padding: 12px;
1109
+ input {
1110
+ position: absolute;
1111
+ top: 20px;
1112
+ right: 20px;
1113
+ }
1114
+ .choice-image-wrapper {
1115
+ position: relative;
1116
+ padding-top: 56.25%;
1117
+ margin-bottom: 0.75rem;
1118
+ img {
1119
+ position: absolute;
1120
+ top: 0;
1121
+ left: 0;
1122
+ width: 100%;
1123
+ height: 100%;
1124
+ border-radius: ${e=>e.theme.borderRadius};
1125
+ object-fit: cover;
1126
+ }
1127
+ }
1128
+ }
1129
+ `,Cn=Re.div`
1130
+ position: relative;
1131
+ width: 100%;
1132
+ padding-top: min(400px, 100%);
1133
+ .survey-thankyou-wrapper-inner {
1134
+ position: absolute;
1135
+ top: 0;
1136
+ left: 0;
1137
+ display: flex;
1138
+ width: 100%;
1139
+ height: 100%;
1140
+ flex-direction: column;
1141
+ align-items: center;
1142
+ justify-content: center;
1143
+ .survey-thankyou-icon {
1144
+ width: 36%;
1145
+ max-height: 50%;
1146
+ margin-bottom: 1.5rem;
1147
+ }
1148
+ .survey-thankyou-title {
1149
+ margin-bottom: 1rem;
1150
+ text-align: center;
1151
+ }
1152
+ .survey-thankyou-subtitle {
1153
+ text-align: center;
1154
+ > * {
1155
+ text-align: center;
1156
+ }
1157
+ }
1158
+ }
1159
+ `,Bn=Re.div`
1160
+ .survey-question-text-wrapper {
1161
+ margin-bottom: 24px;
1162
+ .survey-question-title {
1163
+ margin-bottom: 4px;
1164
+ }
1165
+ .survey-question-subtitle,
1166
+ .survey-question-description {
1167
+ color: ${e=>e.theme.colors.gray500};
1168
+ }
1169
+ }
1170
+ .survey-question-image {
1171
+ width: 100%;
1172
+ margin-bottom: 12px;
1173
+ border-radius: ${e=>e.theme.borderRadius};
1174
+ }
1175
+
1176
+ .survey-question-answer-wrapper {
1177
+ margin-bottom: 1.5rem;
1178
+ .survey-question-options-wrapper {
1179
+ display: grid;
1180
+ grid-gap: 0.5rem;
1181
+ grid-template-columns: 1fr;
1182
+ &[data-has-image='true'] {
1183
+ grid-gap: 0.8rem;
1184
+ grid-template-columns: 1fr 1fr;
1185
+ }
1186
+ .survey-question-option-item {
1187
+ label {
1188
+ color: #262626;
1189
+ font-size: 16px;
1190
+ font-style: normal;
1191
+ font-weight: normal;
1192
+ line-height: 24px;
1193
+ }
1194
+ }
1195
+ }
1196
+ .survey-contact-input {
1197
+ margin-bottom: 1rem;
1198
+ &:first-child {
1199
+ margin-top: 1rem;
1200
+ }
1201
+ label {
1202
+ font-weight: 700;
1203
+ }
1204
+ input {
1205
+ margin-top: 6px;
1206
+ }
1207
+ }
1208
+ }
1209
+ `,Nn=({size:t="small",label:a,name:n,checked:i,value:l,className:r,isDisabled:o=!1,onChange:s,hasImage:c,inputType:d,image:m})=>e.createElement(kn,{"data-disabled":o,className:r,"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})),Dn=({question:a,description:n,onOptionsChange:l,onTextOptionsChange:r,style:o,className:s})=>{const{type:c,title:d,subtitle:m,image:g,textOptions:h,options:u,name:b,is_multi_select:v}=a,y=!!(null==u?void 0:u.some((e=>e.image))),[f,x]=t([]),[w,E]=t((()=>(null==h?void 0:h.slice())||[]));return i((()=>{l&&l(f.slice())}),[!!l,f]),i((()=>{r&&r(w)}),[!!r,w]),e.createElement(Bn,{className:s,style:o},e.createElement("div",{className:"survey-question-text-wrapper"},d&&e.createElement(S,{"data-nosubtitle":!m,className:"survey-question-title",tag:"h4"},d),m&&e.createElement(p,{className:"survey-question-subtitle",size:"p2"},m),n&&e.createElement(p,{className:"survey-question-description",size:"p2"},n)),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"},u.map((t=>{var a;return e.createElement(Nn,{inputType:"radio",label:t.label,name:b,key:`${b}-${t.value}`,checked:(null===(a=f[0])||void 0===a?void 0:a.value)===t.value,value:t.value,onChange:e=>{x([u.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"},u.map((t=>e.createElement(Nn,{inputType:"checkbox",label:t.label,name:b,key:`${b}-${t.value}`,checked:!!f.find((e=>e.value===t.value)),value:t.value,onChange:()=>{const e=f.findIndex((e=>e.value===t.value));x(e>=0?t=>(t.splice(e,1),t.slice()):v?e=>e.concat(t).slice():[t])},className:"survey-question-option-item survey-option-radio",image:t.image,hasImage:y})))),"textbox"===c&&w.map(((t,a)=>t.isTextArea?e.createElement(T,{key:a,placeholder:t.placeholder,height:"150px",value:t.value,onChange:e=>E((t=>(t[a].value=e,t.slice())))}):e.createElement(Xe,{key:a,value:t.value,name:t.name,size:"md",className:"survey-contact-input",label:t.label,placeholder:t.placeholder,onChange:e=>{E((t=>(t[a].value=e,t.slice())))},type:t.type})))))};var $n;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}($n||($n={}));const zn=({className:n,headerText:i,style:l,question:r,termAndPolicyText:o,prevText:s,nextText:c,isContactForm:d,isDisableNext:m,isDisablePrev:g,onPrevClick:h,onNextClick:u,isSubmitButton:b,isButtonCenter:v,progress:y,descriptionText:f})=>{var x,w,E;const[k,C]=t([]),{is_multi_select:B,multi_select_option:N,from:D,to:$}=r,z=null==r?void 0:r.type,L="checkbox"===z&&(null===(x=r.options)||void 0===x?void 0:x.length)&&(!k||0===k.length||B&&N===$n.RANGE&&(k.length<D||k.length>$)||B&&N===$n.EXACT_NUMBER&&k.length!==D)||"radio"===z&&(null===(w=r.options)||void 0===w?void 0:w.length)&&(!k||0===k.length)||"textbox"===z&&(null===(E=r.textOptions)||void 0===E?void 0:E.length)&&(k.length<r.textOptions.length||k.some((e=>!e.value))),P="number"==typeof y?y>1?1:y<0?0:Number(y.toFixed(2)):-1,S=a(null),T=()=>"textbox"!==z||S.current.reportValidity();return e.createElement(En,{className:n,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:S,onSubmit:e=>e.preventDefault()},e.createElement(Dn,{question:r,description:f,onOptionsChange:e=>{C(e)},onTextOptionsChange:e=>{C(e)}})),d&&c&&e.createElement(Ye,{className:"survey-contact-submit",size:"lg",isDisabled:m||L,onClick:()=>T()&&u&&u(k)},c),o&&e.createElement("div",{className:"term-policy-container"},o),"number"==typeof y&&e.createElement("div",{className:"survey-progress-wrapper"},e.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${P})`}})),(s||c)&&e.createElement("div",{"data-center":v,className:"survey-button-wrapper"},s&&e.createElement(Ye,{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:h},s),!d&&c&&e.createElement(Ye,{onClick:()=>T()&&u&&u(k),className:"survey-next-button",size:"lg",isDisabled:m||L},c," ",b?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"}))))))},Ln=({thankyou:t,thankyouSubtitle:a,className:n,style:i})=>e.createElement(En,{className:n,style:i},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(Cn,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:oe.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(S,{className:"survey-thankyou-title",tag:"h3"},t),a&&e.createElement(p,{className:"survey-thankyou-subtitle",size:"p3"},a))))),Pn=200,Sn=Re.div``,Tn=Re.div`
1210
+ width: 100vw;
1211
+ height: 100vh;
1212
+ position: fixed;
1213
+ bottom: 0;
1214
+ right: 0;
1215
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1216
+ opacity: 0.83;
1217
+ transition: display ${Pn}ms linear;
1218
+
1219
+ [data-floatmenu-open='true'] & {
1220
+ animation: showBackgroundPanel ${Pn}ms linear 0s normal forwards;
1221
+ }
1222
+
1223
+ [data-floatmenu-open='false'] & {
1224
+ animation: hideBackgroundPanel ${Pn}ms linear 0s normal forwards;
1225
+ }
1226
+
1227
+ @keyframes showBackgroundPanel {
1228
+ 0% {
1229
+ opacity: 0;
1230
+ width: 100vw;
1231
+ height: 100vh;
1232
+ }
1233
+ 100% {
1234
+ opacity: 0.83;
1235
+ }
1236
+ }
1237
+
1238
+ @keyframes hideBackgroundPanel {
1239
+ 0% {
1240
+ width: 100vw;
1241
+ height: 100vh;
1242
+ }
1243
+ 99% {
1244
+ width: 100vw;
1245
+ height: 100vh;
1246
+ }
1247
+ 100% {
1248
+ opacity: 0;
1249
+ width: 0;
1250
+ height: 0;
1251
+ }
1252
+ }
1253
+ `,Mn=Re.div`
1254
+ position: fixed;
1255
+ right: 16px;
1256
+ bottom: 40px;
1257
+ `,In=Re.div`
1258
+ display: flex;
1259
+ flex-direction: column;
1260
+ gap: 16px;
1261
+ transition: all ${Pn}ms ease-in-out;
1262
+ position: fixed;
1263
+ bottom: 112px;
1264
+ right: 16px;
1265
+
1266
+ // scale
1267
+ [data-animation-type='scale'] & {
1268
+ transform-origin: 100% 100%;
1269
+ }
1270
+
1271
+ [data-animation-type='scale'][data-floatmenu-open='true'] & {
1272
+ transform: scale(1);
1273
+ }
1274
+
1275
+ [data-animation-type='scale'][data-floatmenu-open='false'] & {
1276
+ transform: scale(0);
1277
+ bottom: 46px;
1278
+ right: 36px;
1279
+ }
1280
+ `,jn=Re.div`
1281
+ border-radius: 50%;
1282
+ width: 56px;
1283
+ height: 56px;
1284
+ position: relative;
1285
+ cursor: pointer;
1286
+ margin-left: auto;
1287
+ transition: all 0.1s linear;
1288
+ -webkit-tap-highlight-color: transparent;
1289
+ [data-site-type='hb'] & {
1290
+ background-color: ${e=>e.theme.colors.primaryBase||e.theme.colors.primary};
1291
+ &:hover {
1292
+ background-color: ${e=>{var t,a;return e.theme.colors.primaryHover||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.blue_700)}};
1293
+ }
1294
+ }
1295
+ [data-site-type='mb'] & {
1296
+ background-color: #2d87f3;
1297
+ &:hover {
1298
+ background-color: #2c74df;
1299
+ }
1300
+ }
1301
+
1302
+ &:before {
1303
+ content: '';
1304
+ width: 2px;
1305
+ height: 20px;
1306
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1307
+ border-radius: 2px;
1308
+ position: absolute;
1309
+ top: 50%;
1310
+ left: 50%;
1311
+ transform: translate(-50%, -50%);
1312
+ }
1313
+
1314
+ &:after {
1315
+ content: '';
1316
+ width: 20px;
1317
+ height: 2px;
1318
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1319
+ border-radius: 2px;
1320
+ position: absolute;
1321
+ top: 50%;
1322
+ left: 50%;
1323
+ transform: translate(-50%, -50%);
1324
+ }
1325
+
1326
+ [data-floatmenu-open='true'] &:before,
1327
+ [data-floatmenu-open='true'] &:after {
1328
+ animation: toX ${Pn}ms linear 0s normal forwards;
1329
+ }
1330
+
1331
+ [data-floatmenu-open='false'] &:before,
1332
+ [data-floatmenu-open='false'] &:after {
1333
+ animation: toPlus ${Pn}ms linear 0s normal forwards;
1334
+ }
1335
+
1336
+ @keyframes toX {
1337
+ 0% {
1338
+ transform: translate(-50%, -50%) rotateZ(0deg);
1339
+ }
1340
+ 49% {
1341
+ transform: translate(-50%, -50%) rotateZ(0deg);
1342
+ }
1343
+ 50% {
1344
+ width: 2px;
1345
+ height: 2px;
1346
+ transform: translate(-50%, -50%) rotateZ(45deg);
1347
+ }
1348
+ 100% {
1349
+ transform: translate(-50%, -50%) rotateZ(45deg);
1350
+ }
1351
+ }
1352
+
1353
+ @keyframes toPlus {
1354
+ 0% {
1355
+ transform: translate(-50%, -50%) rotateZ(45deg);
1356
+ }
1357
+ 49% {
1358
+ transform: translate(-50%, -50%) rotateZ(45deg);
1359
+ }
1360
+ 50% {
1361
+ width: 2px;
1362
+ height: 2px;
1363
+ transform: translate(-50%, -50%) rotateZ(0deg);
1364
+ }
1365
+ 100% {
1366
+ transform: translate(-50%, -50%) rotateZ(0deg);
1367
+ }
1368
+ }
1369
+ `,An=Re.div`
1370
+ display: flex;
1371
+ gap: 8px;
1372
+ align-items: center;
1373
+ justify-content: flex-end;
1374
+
1375
+ width: fit-content;
1376
+ margin-left: auto;
1377
+
1378
+ [data-floatmenu-open='true'] {
1379
+ cursor: pointer;
1380
+ }
1381
+ [data-floatmenu-open='false'] {
1382
+ pointer-events: none;
1383
+ }
1384
+
1385
+ [data-animation-type='zoom'] &,
1386
+ [data-animation-type='slide'] & {
1387
+ position: absolute;
1388
+ right: 0;
1389
+ width: max-content;
1390
+ }
1391
+ // slide
1392
+ [data-animation-type='slide'] & {
1393
+ transition: all ${Pn}ms ease-in;
1394
+ }
1395
+
1396
+ [data-animation-type='slide'][data-floatmenu-open='true'] & {
1397
+ animation: showItem ${Pn}ms;
1398
+ }
1399
+ [data-animation-type='slide'][data-floatmenu-open='false'] & {
1400
+ bottom: -64px !important;
1401
+ animation: hideItemOnZoom ${250}ms normal forwards;
1402
+ }
1403
+
1404
+ // zoom
1405
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1406
+ animation: hideItemOnZoom ${250}ms normal forwards;
1407
+ }
1408
+
1409
+ @keyframes showItem {
1410
+ 0% {
1411
+ opacity: 0;
1412
+ }
1413
+
1414
+ 100% {
1415
+ opacity: 1;
1416
+ }
1417
+ }
1418
+
1419
+ @keyframes hideItemOnZoom {
1420
+ 0% {
1421
+ transform: translateX(0);
1422
+ opacity: 1;
1423
+ }
1424
+
1425
+ 99% {
1426
+ transform: translateX(0);
1427
+ opacity: 0.5;
1428
+ }
1429
+
1430
+ 100% {
1431
+ transform: translateX(calc(100% + 16px));
1432
+ opacity: 0;
1433
+ }
1434
+ }
1435
+ `,On=Re.div`
1436
+ font-size: 14px;
1437
+
1438
+ // zoom
1439
+ [data-animation-type='zoom'] & {
1440
+ transition: transform ${Pn}ms ease-in-out;
1441
+ transform-origin: 100% 0;
1442
+ }
1443
+
1444
+ [data-animation-type='zoom'][data-floatmenu-open='true'] & {
1445
+ transform: scale(1);
1446
+ }
1447
+
1448
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1449
+ transform: scale(0);
1450
+ }
1451
+
1452
+ // slide
1453
+ [data-animation-type='slide'] & {
1454
+ transition: opacity ${Pn}ms;
1455
+ }
1456
+ [data-animation-type='slide'][data-floatmenu-open='true'] & {
1457
+ opacity: 1;
1458
+ }
1459
+ [data-animation-type='slide'][data-floatmenu-open='false'] & {
1460
+ opacity: 0;
1461
+ }
1462
+ `,_n=Re.div`
1463
+ border-radius: 50%;
1464
+ box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
1465
+ width: 48px;
1466
+ height: 48px;
1467
+ display: flex;
1468
+ align-items: center;
1469
+ justify-content: center;
1470
+ background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
1471
+
1472
+ // zoom
1473
+ [data-animation-type='zoom'] & {
1474
+ transition: transform ${Pn}ms ease-in-out;
1475
+ }
1476
+
1477
+ [data-animation-type='zoom'][data-floatmenu-open='true'] & {
1478
+ transform: scale(1);
1479
+ }
1480
+
1481
+ [data-animation-type='zoom'][data-floatmenu-open='false'] & {
1482
+ transform: scale(0);
1483
+ }
1484
+
1485
+ > img {
1486
+ width: 24px;
1487
+ height: 24px;
1488
+ object-fit: contain;
1489
+ }
1490
+ `,Fn=({items:a,className:n,style:l,backgroundPanelStyle:r,isOpen:o,onOpen:s,onClose:c,disableBackdropClick:d,siteType:m="hb",animationType:p="zoom",zIndex:g=300})=>{const[h,u]=t(!!o);i((()=>{u(!!o)}),[o]);const b=()=>{u(!1),c&&c()};return e.createElement(Sn,{style:l,className:n,"data-floatmenu-open":h,"data-site-type":m,"data-animation-type":p},e.createElement(Tn,{className:"float-button-group__panel",style:Object.assign({zIndex:g},r),onClick:d?void 0:b}),e.createElement(Mn,{className:"float-button-group___content",style:{zIndex:g}},e.createElement(In,null,a.map(((t,n)=>e.createElement(An,{className:`float-item-button-${n}`,style:Object.assign(Object.assign({},"zoom"===p&&{bottom:64*(a.length-1-n),transitionDelay:Pn/a.length*(h?a.length-1-n:n)+"ms"}),"slide"===p&&{bottom:64*(a.length-1-n),transitionDelay:Pn/a.length*(h?n:a.length-1-n)+"ms"}),key:n,onClick:()=>{t.onClick(),t.keepMenuOnClick||u(!1)}},e.createElement(On,{style:Object.assign({},"zoom"===p&&{transitionDelay:Pn/a.length*(h?a.length-1-n:n)+"ms"})},t.label),e.createElement(_n,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===p||"slide"===p)&&{transitionDelay:Pn/a.length*(h?a.length-1-n:n)+"ms"})},t.icon))))),e.createElement(jn,{onClick:h?b:()=>{u(!0),s&&s()}})))},Hn=Re.div`
1491
+ padding: 16px;
1492
+ width: 375px;
1493
+ word-wrap: break-word;
1494
+ word-break: break-word;
1495
+ ${Z.mbDown} {
1496
+ width: 100%;
1497
+ }
1498
+ &[data-theme='helloSites'] {
1499
+ background: ${e=>e.theme.colors.secondaryBase};
1500
+ box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.1);
1501
+ }
1502
+ &[data-theme='marryBaby'] {
1503
+ border: none;
1504
+ background: ${e=>e.theme.mbColors.pink};
1505
+ border-radius: 12px 12px 0 0;
1506
+ }
1507
+ &[data-is-open='false'] {
1508
+ display: none;
1509
+ }
1510
+ &[data-default-position='true'] {
1511
+ position: fixed;
1512
+ z-index: 1000;
1513
+ bottom: 0;
1514
+ right: 0;
1515
+ ${Z.mbDown} {
1516
+ left: 0;
1517
+ right: unset;
1518
+ }
1519
+ }
1520
+ `,Rn=Re.p`
1521
+ position: relative;
1522
+ padding-left: 24px;
1523
+ color: ${e=>e.theme.colors.white};
1524
+ font-size: 14px;
1525
+ font-weight: 600;
1526
+ line-height: 22px;
1527
+ &[data-has-content='true'] {
1528
+ ::before {
1529
+ position: absolute;
1530
+ top: 0;
1531
+ bottom: 0;
1532
+ left: 0;
1533
+ width: 16px;
1534
+ height: 16px;
1535
+ margin: auto 0;
1536
+ content: url("data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.00001 1.33331C4.32001 1.33331 1.33334 4.31998 1.33334 7.99998C1.33334 11.68 4.32001 14.6666 8.00001 14.6666C11.68 14.6666 14.6667 11.68 14.6667 7.99998C14.6667 4.31998 11.68 1.33331 8.00001 1.33331ZM8.00001 11.3333C7.63334 11.3333 7.33334 11.0333 7.33334 10.6666V7.99998C7.33334 7.63331 7.63334 7.33331 8.00001 7.33331C8.36668 7.33331 8.66668 7.63331 8.66668 7.99998V10.6666C8.66668 11.0333 8.36668 11.3333 8.00001 11.3333ZM7.33334 5.99998H8.66668V4.66665H7.33334V5.99998Z' fill='white'/%3e%3c/svg%3e");
1537
+ }
1538
+ }
1539
+ `,Wn=Re.p`
1540
+ margin-top: 2px;
1541
+ color: ${e=>e.theme.colors.white};
1542
+ font-size: 12px;
1543
+ font-weight: 400;
1544
+ line-height: 18px;
1545
+ a {
1546
+ color: ${e=>e.theme.colors.white};
1547
+ text-decoration: none;
1548
+ text-decoration-line: underline;
1549
+ }
1550
+ `,Un=Re.div`
1551
+ display: flex;
1552
+ align-items: center;
1553
+ margin-top: 8px;
1554
+ gap: 16px;
1555
+ `,Vn=Re.div`
1556
+ padding: 7px 28px;
1557
+ background: ${e=>e.theme.colors.white};
1558
+ border-radius: ${e=>e.theme.borderRadius};
1559
+ color: ${e=>e.theme.colors.secondaryBase};
1560
+ cursor: pointer;
1561
+ font-size: 12px;
1562
+ font-weight: 600;
1563
+ line-height: 18px;
1564
+ `,Gn=Re.a`
1565
+ color: ${e=>e.theme.colors.white};
1566
+ font-size: 12px;
1567
+ font-weight: 600;
1568
+ line-height: 22px;
1569
+ text-decoration: none;
1570
+ text-decoration-line: underline;
1571
+ `,Zn=({className:t,policiesUrl:a,onAcceptClick:n,translations:i={acceptButton:"Accept",policiesButton:"Our Policies"},title:l="",description:r="",theme:o="helloSites",isOpen:s=!0,useDefaultPosition:c=!0,trackingAttributes:d})=>e.createElement(Hn,{className:t,"data-theme":o,"data-is-open":s,"data-default-position":c},e.createElement(Rn,{"data-has-content":!!l},l),e.createElement(Wn,{dangerouslySetInnerHTML:{__html:r}}),e.createElement(Un,null,e.createElement(Vn,{role:"button",tabIndex:0,on:"tap:consent-element.accept",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(Gn,{href:a},i.policiesButton))),qn=We`
1572
+ from {
1573
+ transform: translateY(100%);
1574
+ visibility: visible;
1575
+ }
1576
+
1577
+ to {
1578
+ transform: translateY(0);
1579
+ }
1580
+ `,Yn=We`
1581
+ from {
1582
+ transform: translate(0, 0);
1583
+ }
1584
+
1585
+ to {
1586
+ visibility: hidden;
1587
+ transform: translate(0, 100%);
1588
+ }
1589
+ `,Xn=Re.div`
1590
+ cursor: pointer;
1591
+ display: flex;
1592
+ flex-direction: column;
1593
+ align-items: center;
1594
+ justify-items: center;
1595
+ gap: 4px;
1596
+
1597
+ .mobile-navigation-label {
1598
+ font-weight: 500;
1599
+ font-size: 10px;
1600
+ line-height: 16px;
1601
+ color: ${oe.colors.gray600};
1602
+ overflow: hidden;
1603
+ text-overflow: ellipsis;
1604
+ white-space: nowrap;
1605
+ width: 60px;
1606
+ text-align: center;
1607
+ ${Z.mbDown} {
1608
+ max-width: 60px;
1609
+ }
1610
+ }
1611
+
1612
+ .mobile-navigation-icon {
1613
+ position: relative;
1614
+ height: 24px;
1615
+ &[data-no-label='true'] {
1616
+ border-radius: 50%;
1617
+ display: flex;
1618
+ flex-direction: column;
1619
+ justify-content: center;
1620
+ align-items: center;
1621
+ padding: 0px;
1622
+ gap: 16px;
1623
+ width: 40px;
1624
+ height: 40px;
1625
+ }
1626
+ }
1627
+
1628
+ &[data-is-special='true'] {
1629
+ display: flex;
1630
+ flex-direction: row;
1631
+ align-items: center;
1632
+ padding: 4px 12px 4px 6px;
1633
+ gap: 4px;
1634
+
1635
+ min-width: 152px;
1636
+ height: 32px;
1637
+ /* Neutral/Neutral-50 */
1638
+ background: ${oe.colors.primary50};
1639
+ border-radius: 20px;
1640
+ flex-grow: 1;
1641
+ .mobile-navigation-icon {
1642
+ &[data-no-label='true'] {
1643
+ width: 24px;
1644
+ height: 24px;
1645
+ }
1646
+ }
1647
+ .mobile-navigation-label {
1648
+ max-width: max-content;
1649
+ color: ${oe.colors.primaryBase};
1650
+ }
1651
+ }
1652
+
1653
+ &[data-is-active='true'] {
1654
+ .mobile-navigation-label {
1655
+ color: ${oe.colors.primaryBase};
1656
+ }
1657
+ }
1658
+
1659
+ &[data-is-disabled='true'] {
1660
+ opacity: 0.2;
1661
+ }
1662
+ `,Kn=Re.div`
1663
+ z-index: 100;
1664
+ position: fixed;
1665
+ bottom: 0;
1666
+ left: 0;
1667
+ width: 100%;
1668
+ height: 100%;
1669
+ max-height: 56px;
1670
+ min-height: 56px;
1671
+ display: flex;
1672
+ height: 100%;
1673
+ align-items: center;
1674
+ justify-content: space-evenly;
1675
+ background-color: ${oe.colors.white};
1676
+ @supports (padding-bottom: env(safe-area-inset-bottom)) {
1677
+ min-height: calc(56px + env(safe-area-inset-bottom));
1678
+ max-height: calc(56px + env(safe-area-inset-bottom));
1679
+ padding-bottom: env(safe-area-inset-bottom);
1680
+ }
1681
+ & > div {
1682
+ flex: 1;
1683
+ }
1684
+ a {
1685
+ text-decoration: none;
1686
+ }
1687
+ &[data-is-collapsed='true'] {
1688
+ animation: ${Yn} 500ms ease-in-out forwards;
1689
+ }
1690
+
1691
+ &[data-is-collapsed='false'] {
1692
+ animation: ${qn} 500ms ease-in-out forwards;
1693
+ }
1694
+ &[data-template='health-tool'] {
1695
+ height: 44px;
1696
+ max-height: 44px;
1697
+ min-height: 44px;
1698
+ justify-content: space-between;
1699
+ & > div {
1700
+ flex: 0;
1701
+ }
1702
+ }
1703
+ `,Jn=Re.span`
1704
+ position: absolute;
1705
+ left: 100%;
1706
+ transform: translate(-10px, calc(-50% + 3px));
1707
+ background-color: ${oe.colors.green800};
1708
+ border-radius: 32px;
1709
+ border: 2px solid ${oe.colors.white};
1710
+ padding: 1px 4px;
1711
+ display: flex;
1712
+ flex-direction: column;
1713
+ justify-content: center;
1714
+ align-items: center;
1715
+ height: 20px;
1716
+ aspect-ratio: 1;
1717
+ &[data-no-label='true'] {
1718
+ left: 0;
1719
+ transform: translate(22px, -50%);
1720
+ }
1721
+ `;Re.div`
1722
+ position: absolute;
1723
+ top: 0;
1724
+ left: 0;
1725
+ height: 3px;
1726
+ background-color: ${oe.colors.primaryBase};
1727
+ transition: width 150ms linear;
1728
+ `,Re.div`
1729
+ a {
1730
+ text-decoration: none;
1731
+ }
1732
+ `;const Qn=t=>{var{badgeAmount:a,disabled:n=!1,hasBadge:i=!1,icon:l,isActive:r=!1,isSpecial:o=!1,label:s}=t,c=se(t,["badgeAmount","disabled","hasBadge","icon","isActive","isSpecial","label"]);return e.createElement(Xn,Object.assign({"data-is-special":o,"data-is-active":r,"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:o?oe.colors.primaryBase:oe.colors.white},a)),l),s&&e.createElement("span",{className:"mobile-navigation-label"},s))},ei=t=>{var{children:a,on:n="",isCollapsed:i=!1,template:l="homepage"}=t,r=se(t,["children","on","isCollapsed","template"]);return e.createElement(Kn,Object.assign({on:n,"data-is-collapsed":i,"data-template":l},r),a)};ei.Icon=Qn;const ti=({SEOData:t={},locale:a="vi-VN",routerPathname:i,routerQuery:l,nextHead:r,siteType:o,seoCustom:s,userId:c,forcedCanonicalUrl:d})=>{var m,p,g,h,u,b,v,y,f,x,w,E;const{totalPages:k,currentPage:C,SEOTitle:B="",SEODescription:N="",SEOImage:D,seoType:$,SEOImageWidth:z,SEOImageHeight:L,customMetaData:P=[],isIndexable:S=!0,hasNoCanonical:T=!1}=t,M=S&&J?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:I}=process.env;let j=t.canonicalUrl||i;Object.keys(l).forEach((e=>{const t=l[e];t&&Array.isArray(t)&&(j=j.replace(`[...${e}]`,t.join("/")))}));const A=a||"en-PH",O="helloSites"===o?Q[A]:"www.marrybaby.vn",_=j.endsWith("/")?"":"/",F=n((()=>{var n,i,l,r,o,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}${j}${_}" />`,`<link rel="canonical" href="https://${O}${j}${_}?page=${C}" />`):t.apiMetaData;if(d=Ke(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)||D||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)||D||n}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)&&String(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)||z&&String(z)||"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)||L&&String(L)||"630"})]}}return d}),[t.apiMetaData,t.openGraph,D,L,z,C,j,k,a,O]),H=`https://${O}/images/${a}.png`;return e.createElement(r,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===o&&e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===a||"ms-MY"===a?e.createElement(e.Fragment,null):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),e.createElement("link",{rel:"preconnect",href:I}),e.createElement("meta",{charSet:"UTF-8"}),e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:M}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),P.map(((t,a)=>e.createElement("meta",Object.assign({key:a},t)))),e.createElement("meta",{name:"theme-color",content:"helloSites"===o?"#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:A}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!F&&e.createElement(e.Fragment,null,"helloSites"===o?e.createElement("title",null,s?B:B+" - "+(null===(m=ee[a])||void 0===m?void 0:m.SITE_NAME)):e.createElement("title",null,B),!T&&e.createElement("link",{rel:"canonical",href:`https://${O}${j}`}),e.createElement("meta",{name:"description",content:N||(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)||B}),e.createElement("meta",{property:"og:description",content:(null===(h=t.openGraph)||void 0===h?void 0:h.description)||N}),e.createElement("meta",{property:"og:url",content:`https://${O}${j}`}),e.createElement("meta",{property:"og:site_name",content:`https://${O}`}),e.createElement("meta",{property:"og:image",content:(null===(u=t.openGraph)||void 0===u?void 0:u.image)||D||H||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(b=t.openGraph)||void 0===b?void 0:b.image)||D||H}),e.createElement("meta",{property:"og:image:width",content:(null===(v=t.openGraph)||void 0===v?void 0:v.imageWidth)&&String(null===(y=t.openGraph)||void 0===y?void 0:y.imageWidth)||z&&String(z)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=t.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(x=t.openGraph)||void 0===x?void 0:x.imageHeight)||L&&String(L)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(w=t.twitter)||void 0===w?void 0:w.title)||B}),e.createElement("meta",{name:"twitter:description",content:N}),e.createElement("meta",{name:"twitter:image",content:(null===(E=t.twitter)||void 0===E?void 0:E.image)||D})),("helloSites"===o?te[A]||[]:te.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}${j}${_}?amp=1`}),c&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${c}'});`}}):null)};Re.div`
1733
+ margin-top: 13px;
1734
+ &[data-is-mobile='false'] {
1735
+ display: flex;
1736
+ width: 60%;
1737
+ min-width: min(600px, 100%);
1738
+ align-items: center;
1739
+ & > :first-child {
1740
+ margin-right: 18px;
1741
+ }
1742
+ }
1743
+ `,Re.div`
1744
+ &[data-is-mobile='false'] {
1745
+ max-width: 540px;
1746
+ }
1747
+ ${Z.tdUp} {
1748
+ padding-right: 120px;
1749
+ }
1750
+ `,Re.div`
1751
+ display: flex;
1752
+ align-items: flex-start;
1753
+ margin-top: 10px;
1754
+ color: ${e=>e.theme.colors.white};
1755
+ font-size: ${e=>e.theme.sizes.fsParagraph4};
1756
+ > img {
1757
+ margin-top: 2px;
1758
+ margin-right: 4px;
1759
+ }
1760
+ &[data-is-mobile='false'] {
1761
+ margin-top: 12px;
1762
+ > img {
1763
+ width: 16px;
1764
+ height: 16px;
1765
+ }
1766
+ }
1767
+ &[data-is-mobile='true'] {
1768
+ > img {
1769
+ width: 14px;
1770
+ height: 14px;
1771
+ }
1772
+ }
1773
+ `;const ai="hhgcomp-toolbanner-iconcontainer";M(Re.div`
1774
+ position: absolute;
1775
+ z-index: 0;
1776
+ right: 0;
1777
+ bottom: -50px;
1778
+ display: flex;
1779
+
1780
+ align-items: center;
1781
+
1782
+ ${Z.mbUp} {
1783
+ img {
1784
+ width: 190px;
1785
+ height: 155px;
1786
+ }
1787
+ }
1788
+ ${Z.mbDown} {
1789
+ width: 70px;
1790
+ }
1791
+ `,ai),Re.div`
1792
+ position: relative;
1793
+ z-index: 1;
1794
+ max-width: 100%;
1795
+ ${Z.mbUp} {
1796
+ padding: 23px 40px;
1797
+ max-width: calc(100% - 210px);
1798
+ &[data-is-side='true'] {
1799
+ max-width: calc(100% - 120px);
1800
+ }
1801
+ }
1802
+ `;const ni="hhgcomp-toolbanner-inner";M(Re.div`
1803
+ position: relative;
1804
+ `,ni);const ii="hhgcomp-toolbanner-wrapper",li=M(Re.div`
1805
+ position: relative;
1806
+ width: 100%;
1807
+ height: 100%;
1808
+ background: ${e=>e.bgColor};
1809
+ background-color: inherit;
1810
+
1811
+ &[data-site='marryBaby'] {
1812
+ background-color: ${e=>e["data-banner-color"]||"#5EC08F"};
1813
+ background-image: none;
1814
+ padding-bottom: 0;
1815
+ &[data-is-embedded='true'] {
1816
+ border-top-left-radius: 16px;
1817
+ border-top-right-radius: 16px;
1818
+ }
1819
+ }
1820
+ `,ii),ri=Re.div`
1821
+ width: 100%;
1822
+ ${Z.mbDown} {
1823
+ padding-bottom: 24px;
1824
+ }
1825
+
1826
+ a {
1827
+ text-decoration: none;
1828
+ color: inherit;
1829
+ }
1830
+
1831
+ &[data-site='marryBaby'] {
1832
+ a {
1833
+ text-decoration: underline;
1834
+ }
1835
+ ${Z.mbDown} {
1836
+ padding-bottom: 0;
1837
+ }
1838
+ }
1839
+
1840
+ ${Z.tdDown} {
1841
+ height: auto;
1842
+ .${ii} {
1843
+ .${ni} {
1844
+ display: flex;
1845
+ align-items: center;
1846
+ ${Z.mbDown} {
1847
+ justify-content: space-between;
1848
+ }
1849
+ .${ai} {
1850
+ position: relative;
1851
+ right: -50px;
1852
+ bottom: -20px;
1853
+ width: 110px;
1854
+ min-width: 0;
1855
+ height: auto;
1856
+ min-height: 0;
1857
+ align-self: flex-end;
1858
+ margin-bottom: -20px;
1859
+ ${Z.mbDown} {
1860
+ right: unset;
1861
+ }
1862
+ }
1863
+ }
1864
+ }
1865
+ }
1866
+ `,oi=Re.div`
1867
+ display: flex;
1868
+ flex-direction: row;
1869
+ align-items: center;
1870
+ padding: 16px 24px;
1871
+ gap: 16px;
1872
+ width: 100%;
1873
+ background-color: ;
1874
+ ${Z.mbDown} {
1875
+ padding: 16px 0;
1876
+ }
1877
+ `,si=Re.div`
1878
+ background: #ffffff;
1879
+ border-radius: 16px;
1880
+ width: 48px;
1881
+ height: 48px;
1882
+ position: relative;
1883
+
1884
+ img {
1885
+ position: absolute;
1886
+ top: 50%;
1887
+ left: 50%;
1888
+ max-width: 24px;
1889
+ max-height: 24px;
1890
+ transform: translate(-50%, -50%);
1891
+ }
1892
+ `,ci=Re.div`
1893
+ display: flex;
1894
+ align-items: flex-start;
1895
+ flex-direction: column;
1896
+ justify-content: space-between;
1897
+ gap: 0;
1898
+ width: 100%;
1899
+ `,di=Re.div`
1900
+ display: flex;
1901
+ align-items: flex-start;
1902
+ font-weight: 400;
1903
+ font-size: 12px;
1904
+ line-height: 18px;
1905
+ letter-spacing: -0.2px;
1906
+ color: #f3f3f3;
1907
+
1908
+ > img {
1909
+ margin-top: 2px;
1910
+ margin-right: 4px;
1911
+ }
1912
+ &[data-is-mobile='false'] {
1913
+ > img {
1914
+ width: 16px;
1915
+ height: 16px;
1916
+ }
1917
+ }
1918
+ &[data-is-mobile='true'] {
1919
+ > img {
1920
+ width: 14px;
1921
+ height: 14px;
1922
+ }
1923
+ }
1924
+ `,mi=({className:t,heading:a,color:n="blue",isMobile:i,bannerUrl:l,bannerUrlLarge:r,bannerColor:o,medicalReview:s={link:"#",reviewer:"",date:""},icon:c,style:d,siteType:m,isEmbeded:g})=>{var h,u;const{t:b}=K(),v=fe(),y=i?l:r||l,f={pink:[8,6]},x=v.colors[n]||v.colors.blue,w=(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:b("toolPage.toolReviewer",{expert_name:`<a href="${s.link}">${s.reviewer.trim()}</a>`,date:s.date})}})):null;return e.createElement(ri,{"data-is-mobile":i,style:d,"data-site":m},e.createElement(li,{className:t,"data-banner-url":y,"data-is-mobile":i,"data-site":m,"data-banner-color":o,"data-is-embedded":g,bgColor:`linear-gradient(71deg, ${null==x?void 0:x[(null===(h=f[n])||void 0===h?void 0:h[0])||7]} -4.07%, ${null==x?void 0:x[(null===(u=f[n])||void 0===u?void 0:u[1])||4]} 90.13%)}`},"marryBaby"===m&&g?e.createElement(oi,null,e.createElement(si,null,c),e.createElement(ci,null,e.createElement(S,{color:"white",tag:"h5",as:"h2"},a),s&&e.createElement(di,{"data-is-mobile":i},w))):e.createElement(pe,{gap:ge(24),align:"center",justify:"space-between",sx:{padding:`${ge(13)} ${ge(20)}`,gap:ge(24)}},e.createElement(de,null,e.createElement(S,{tag:"h5",as:"h2",color:"#fff"},a),s&&e.createElement(p,{size:"n1",as:"div"},w)),e.createElement(pe,{justify:"center",align:"center",sx:e=>{var t,a;return{width:ge(64),height:ge(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:ge(48),maxHeight:ge(48)},[e.fn.smallerThan("sm")]:{width:ge(56),height:ge(56),img:{maxWidth:ge(40),maxHeight:ge(40)}}}}},c))))},pi=Re(ht)`
1925
+ border-color: ${e=>e.theme.mbColors.lightGray};
1926
+ background-color: ${e=>e.theme.colors.white};
1927
+ border-radius: 16px;
1928
+ transition: all 0.2s ease;
1929
+ &:hover {
1930
+ border-color: ${e=>e.theme.mbColors.pink};
1931
+ box-shadow: none;
1932
+ }
1933
+
1934
+ & > ul {
1935
+ z-index: ${I.menuSearchPopup};
1936
+ max-height: 300px;
1937
+ overflow-y: auto;
1938
+ }
1939
+
1940
+ ${e=>e.groupedWithLabel&&Ue`
1941
+ & > div:first-child {
1942
+ color: ${e=>e.theme.mbColors.midGray};
1943
+ font-size: 12px;
1944
+ }
1945
+ `}
1946
+
1947
+ &[data-dropdown-open='true'] {
1948
+ border-color: ${e=>e.theme.mbColors.pink};
1949
+ }
1950
+ `;Re(j)`
1951
+ & input {
1952
+ border-color: ${e=>e.theme.mbColors.lightGray};
1953
+ background-color: ${e=>e.theme.colors.white};
1954
+ border-radius: 16px;
1955
+ transition: all 0.2s ease;
1956
+ &:focus,
1957
+ &:hover {
1958
+ border-color: ${e=>e.theme.mbColors.pink};
1959
+ box-shadow: none;
1960
+ }
1961
+ }
1962
+
1963
+ & .displayIcon {
1964
+ pointer-events: none;
1965
+ }
1966
+ `;const gi=Re(Xe)`
1967
+ & label {
1968
+ position: absolute;
1969
+ z-index: 1;
1970
+ top: 16px;
1971
+
1972
+ left: 16px;
1973
+ color: ${e=>e.theme.mbColors.midGray};
1974
+ pointer-events: none;
1975
+ transition: all 0.2s ease;
1976
+ white-space: nowrap;
1977
+ overflow: hidden;
1978
+ text-overflow: ellipsis;
1979
+ max-width: 240px;
1980
+
1981
+ &[data-size='label2'] {
1982
+ font-size: 12px;
1983
+ }
1984
+
1985
+ ${Z.tdDown} {
1986
+ max-width: 220px;
1987
+ }
1988
+ }
1989
+ & input {
1990
+ ::placeholder {
1991
+ color: ${e=>e.theme.mbColors.gray};
1992
+ font-size: 14px;
1993
+ }
1994
+
1995
+ ::-webkit-input-placeholder {
1996
+ /* Chrome/Opera/Safari */
1997
+ color: ${e=>e.theme.mbColors.gray};
1998
+ font-size: 14px;
1999
+ }
2000
+ ::-moz-placeholder {
2001
+ /* Firefox 19+ */
2002
+ color: ${e=>e.theme.mbColors.gray};
2003
+ font-size: 14px;
2004
+ }
2005
+ :-ms-input-placeholder {
2006
+ /* IE 10+ */
2007
+ color: ${e=>e.theme.mbColors.gray};
2008
+ font-size: 14px;
2009
+ }
2010
+ :-moz-placeholder {
2011
+ /* Firefox 18- */
2012
+ color: ${e=>e.theme.mbColors.gray};
2013
+ font-size: 14px;
2014
+ }
2015
+ height: ${e=>"sm"===e.size?48:72}px;
2016
+ padding-top: 27px;
2017
+ border-color: ${e=>e.theme.mbColors.lightGray};
2018
+ background-color: ${e=>e.theme.colors.white};
2019
+ border-radius: 16px;
2020
+ transition: all 0.2s ease;
2021
+ padding-top: ${e=>e.value?"38px":"27px"};
2022
+
2023
+ &:focus,
2024
+ &:hover {
2025
+ border-color: ${e=>e.theme.mbColors.pink};
2026
+ box-shadow: none;
2027
+ }
2028
+ }
2029
+
2030
+ &[data-has-action-icon] {
2031
+ input {
2032
+ padding-top: ${e=>e.value?"38px":"27px"};
2033
+ padding-bottom: ${e=>e.value?"16px":"27px"};
2034
+ }
2035
+
2036
+ label {
2037
+ position: absolute;
2038
+ z-index: 1;
2039
+ top: 16px;
2040
+ padding-right: 46px;
2041
+ }
2042
+ }
2043
+ `,hi=Re.div`
2044
+ width: 100%;
2045
+ `,ui=Re.div`
2046
+ #due-date-dropdown {
2047
+ z-index: 9;
2048
+ width: 100%;
2049
+ min-width: unset;
2050
+ max-width: unset;
2051
+
2052
+ ${Z.mbDown} {
2053
+ font-size: 14px;
2054
+ }
2055
+ ${Z.tdUp} {
2056
+ font-size: 16px;
2057
+ &[data-is-side='true'] {
2058
+ font-size: 14px;
2059
+ }
2060
+ }
2061
+ color: ${e=>e.theme.colors.gray800};
2062
+ > div {
2063
+ white-space: nowrap;
2064
+ overflow: hidden;
2065
+ text-overflow: ellipsis;
2066
+ }
2067
+ }
2068
+ display: flex;
2069
+ width: 100%;
2070
+ justify-content: space-between;
2071
+ `,bi=Re(hi)`
2072
+ .due-date-input {
2073
+ width: 100%;
2074
+ min-width: unset;
2075
+ max-width: unset;
2076
+ color: ${e=>e.theme.colors.gray800};
2077
+ }
2078
+ .due-date-calculate-button {
2079
+ margin-right: auto;
2080
+ margin-left: auto;
2081
+ }
2082
+ input {
2083
+ &[data-is-side='true'] {
2084
+ ${Z.tdUp} {
2085
+ font-size: 14px;
2086
+ }
2087
+ }
2088
+ ${Z.mbDown} {
2089
+ font-size: 14px;
2090
+ }
2091
+ ${Z.tdUp} {
2092
+ font-size: 16px;
2093
+ }
2094
+ }
2095
+ `;Re.div`
2096
+ display: flex;
2097
+ align-items: right;
2098
+
2099
+ & > p {
2100
+ display: inline-block;
2101
+ border-bottom: solid 1px
2102
+ ${e=>e.theme.colors.primaryBase};
2103
+ margin-bottom: 24px;
2104
+ margin-left: auto;
2105
+ color: ${e=>e.theme.colors.primaryBase};
2106
+ cursor: pointer;
2107
+ font-size: 11px;
2108
+ line-height: 16px;
2109
+ text-align: right;
2110
+ }
2111
+ `;var vi;Re(Re.img`
2112
+ img& {
2113
+ width: 16px;
2114
+ height: 16px;
2115
+ }
2116
+ `)`
2117
+ margin-right: 4px;
2118
+ `,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(vi||(vi={}));const yi="yyyy-MM-dd",fi=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,xi=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:r}=K(),[o,s]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(bi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(gi,{label:r("dueDatePage.conceptionDate"),name:"date",size:"md",value:fi(o),CustomInput:e.createElement(Ta,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:o,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Xe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:o&&He(o).format(A)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Xe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.conceptionDate")),value:fi(o),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(Ta,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:fi(o)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:o,displayDateFormat:mt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement(Te,{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:Je(e,yi),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}})(o),`${ae.type}=1&sd=${Je(o,yi)}&${ae.additional}= `)},role:"button"},r("dueDatePage.lastPeriod.calculate")))},wi=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:r}=K(),[o,s]=t(new Date),[c,d]=t("3");return e.createElement(e.Fragment,null,e.createElement(bi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(gi,{label:r("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:fi(o),CustomInput:e.createElement(Ta,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:o,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Xe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:o&&He(o).format(A)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Xe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray700,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.ivf.transferDate")),value:fi(o),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(Ta,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:fi(o)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:o,displayDateFormat:mt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement("div",{style:{width:"100%"}},e.createElement(Ya,{id:"radio-transfer-date",direction:"vertical",size:"small",value:c,onChange:e=>d(e),options:[{value:"3",label:r("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:r("dueDatePage.ivf.transferDateRadio",{number:5})}]})),e.createElement(Te,{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:Je(e,yi),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}})(o,Number(c)),`${ae.type}=2&${ae.startDate}=${Je(o,yi)}&${ae.additional}=${c}`)},role:"button"},r("dueDatePage.lastPeriod.calculate")))},Ei=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:r}=K(),[o,s]=t(28),[c,d]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(bi,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(gi,{label:r("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:fi(c),CustomInput:e.createElement(Ta,{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(Xe,Object.assign({name:"birthday",size:"md"},t,{value:c&&He(c).format(A)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Xe,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.lastPeriod.lastPeriodLabel")),value:fi(c),name:"date",size:"md",CustomInput:e.createElement(Ta,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:fi(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:mt,onChange:e=>{d(e)},placeholder:"placeholder"})})),e.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===i?"marryBaby":""},"marryBaby"===i?e.createElement(gt,{type:"bodytext-3",color:oe.mbColors.midGray},r("dueDatePage.lastPeriod.periodLengthLabel")):e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600,style:{marginBottom:"0.5rem"}},r("dueDatePage.lastPeriod.periodLengthLabel")),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===i&&e.createElement(p,{size:"s3",weight:"semiBold",color:oe.colors.gray600},o),e.createElement(pt,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==i,withControl:"marryBaby"!==i,onChange:s,value:o,label:"marryBaby"!==i?void 0:null}))),e.createElement(Te,{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:Je(e,yi),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}})(c,o),`${ae.type}=0&${ae.startDate}=${Je(c,yi)}&${ae.additional}=${o}`),role:"button"},r("dueDatePage.lastPeriod.calculate")))};Re.div`
2119
+ padding: 0;
2120
+ background-color: white;
2121
+ `,Re.div`
2122
+ padding-bottom: 2px;
2123
+ margin: auto;
2124
+ ${Z.mbUp} {
2125
+ width: 100%;
2126
+ padding: 24px;
2127
+ }
2128
+ `;const ki=Re.div`
2129
+ &[data-is-side='true'] {
2130
+ width: 100%;
2131
+ margin-bottom: 0;
2132
+ }
2133
+ ${Z.mbDown} {
2134
+ width: 100%;
2135
+ margin-bottom: 0;
2136
+ }
2137
+
2138
+ margin-bottom: 24px;
2139
+
2140
+ & > :not(:last-child) {
2141
+ margin-bottom: 8px;
2142
+ }
2143
+
2144
+ .gender-selector {
2145
+ & > :not(:last-child) {
2146
+ margin-right: 16px;
2147
+ }
2148
+
2149
+ & > div {
2150
+ width: calc(50% - 8px);
2151
+
2152
+ ${Z.mbUp} {
2153
+ max-width: 186px;
2154
+ justify-self: left;
2155
+ }
2156
+ }
2157
+ }
2158
+ `,Ci=Re.div`
2159
+ margin-bottom: 20px;
2160
+ width: 100%;
2161
+
2162
+ & > :not(:last-child) {
2163
+ margin-bottom: 8px;
2164
+ }
2165
+ .gender-selector {
2166
+ & > div {
2167
+ width: calc(50% - 8px);
2168
+ }
2169
+ }
2170
+ `,Bi=Re.div`
2171
+ width: 100%;
2172
+ display: flex;
2173
+ justify-content: center;
2174
+ ${Z.mbUp} {
2175
+ padding: 0 16px;
2176
+ &[data-is-side='true'] {
2177
+ margin-top: 24px;
2178
+ }
2179
+ }
2180
+
2181
+ ${Z.mbDown} {
2182
+ margin-top: 24px;
2183
+ &[data-site='marryBaby'] {
2184
+ margin-top: 12px;
2185
+ }
2186
+ }
2187
+ & > :not(:last-child) {
2188
+ margin-bottom: 8px;
2189
+ }
2190
+
2191
+ button {
2192
+ width: 100%;
2193
+ margin: auto;
2194
+ ${Z.mbUp} {
2195
+ max-width: 200px;
2196
+ }
2197
+ }
2198
+ `;Re.div`
2199
+ ${Z.mbUp} {
2200
+ padding-left: 16px;
2201
+ padding-right: 16px;
2202
+ }
2203
+
2204
+ padding-bottom: 60px;
2205
+ `,Re.div`
2206
+ & > :not(:last-child) {
2207
+ margin-bottom: 28px;
2208
+ }
2209
+ `,Re.div`
2210
+ ${Z.mbUp} {
2211
+ padding-left: 16px;
2212
+ padding-right: 16px;
2213
+ }
2214
+
2215
+ padding-top: 32px;
2216
+
2217
+ color: ${e=>e.theme.colors.gray800};
2218
+ text-align: center;
2219
+
2220
+ & > :last-child {
2221
+ margin-top: 8px;
2222
+ }
2223
+ `,Re.div`
2224
+ margin-bottom: 32px;
2225
+
2226
+ ${Z.mbUp} {
2227
+ padding-left: 16px;
2228
+ padding-right: 16px;
2229
+ }
2230
+ `,Re.div`
2231
+ margin-bottom: 32px;
2232
+
2233
+ ${Z.mbUp} {
2234
+ padding-left: 16px;
2235
+ padding-right: 16px;
2236
+ }
2237
+ `,Re.div`
2238
+ margin-bottom: 16px;
2239
+
2240
+ ${Z.mbUp} {
2241
+ padding-left: 16px;
2242
+ padding-right: 16px;
2243
+ }
2244
+ `,Re.div`
2245
+ margin-bottom: 24px;
2246
+
2247
+ ${Z.mbUp} {
2248
+ padding-left: 16px;
2249
+ padding-right: 16px;
2250
+ }
2251
+ `,Re.div`
2252
+ margin-bottom: 56px;
2253
+ line-height: 24px;
2254
+
2255
+ & > :first-child {
2256
+ margin-bottom: 8px;
2257
+ }
2258
+
2259
+ ${Z.mbUp} {
2260
+ padding-left: 16px;
2261
+ padding-right: 16px;
2262
+ }
2263
+ `,Re.div`
2264
+ margin-bottom: 56px;
2265
+
2266
+ & > :first-child {
2267
+ margin-bottom: 8px;
2268
+ }
2269
+
2270
+ ${Z.mbUp} {
2271
+ padding-left: 16px;
2272
+ padding-right: 16px;
2273
+ }
2274
+ `,Re.div`
2275
+ padding-top: 32px;
2276
+
2277
+ & > div {
2278
+ margin-bottom: 24px;
2279
+ }
2280
+
2281
+ ${Z.mbUp} {
2282
+ padding-left: 16px;
2283
+ padding-right: 16px;
2284
+ }
2285
+ `,Re.div`
2286
+ padding: 68px 0 56px 0;
2287
+
2288
+ ${Z.mbUp} {
2289
+ padding: 84px 0 72px 0;
2290
+ }
2291
+ `,Re.div`
2292
+ display: flex;
2293
+ gap: 10px;
2294
+ line-height: 1;
2295
+ span {
2296
+ overflow: hidden;
2297
+ text-overflow: ellipsis;
2298
+ -webkit-line-clamp: 2;
2299
+ display: -webkit-box;
2300
+ -webkit-box-orient: vertical;
2301
+ }
2302
+ ${Z.mbUp} {
2303
+ padding-right: 16px;
2304
+ padding-bottom: 10px;
2305
+ flex-wrap: wrap;
2306
+ align-items: center;
2307
+ justify-content: space-between;
2308
+ &[data-is-side='true'] {
2309
+ width: 100%;
2310
+ margin-bottom: 15px;
2311
+ justify-content: unset;
2312
+ .label {
2313
+ margin-bottom: 9px;
2314
+ }
2315
+ }
2316
+ }
2317
+
2318
+ ${Z.mbDown} {
2319
+ width: 100%;
2320
+ margin-bottom: 15px;
2321
+
2322
+ .label {
2323
+ margin-bottom: 9px;
2324
+ }
2325
+ }
2326
+ `;const Ni=Re.div`
2327
+ width: 100%;
2328
+ display: flex;
2329
+ flex-wrap: wrap;
2330
+ justify-content: space-between;
2331
+ .input-section {
2332
+ display: flex;
2333
+ flex-direction: column;
2334
+ }
2335
+
2336
+ ${Z.mbDown} {
2337
+ flex-direction: column;
2338
+ .input-section {
2339
+ width: 100%;
2340
+ }
2341
+ }
2342
+ `,Di=Re.div`
2343
+ position: relative;
2344
+ width: calc(50% - 8px);
2345
+
2346
+ &[data-is-side='true'] {
2347
+ .label {
2348
+ margin-bottom: 9px;
2349
+ }
2350
+ }
2351
+ ${Z.mbDown} {
2352
+ .label {
2353
+ margin-bottom: 9px;
2354
+ }
2355
+ }
2356
+ margin-bottom: 24px;
2357
+ #weight-gain-dropdown {
2358
+ z-index: 9;
2359
+ width: 100%;
2360
+ min-width: unset;
2361
+ max-width: unset;
2362
+ color: ${e=>e.theme.colors.gray800};
2363
+ & > ul {
2364
+ z-index: 1;
2365
+ max-height: 300px;
2366
+ overflow-y: scroll;
2367
+ }
2368
+ }
2369
+ `,$i=Re.div`
2370
+ margin-bottom: 24px;
2371
+ width: 100%;
2372
+
2373
+ ${Z.mbUp} {
2374
+ padding: 0 16px;
2375
+ }
2376
+ .card {
2377
+ display: flex;
2378
+ align-items: center;
2379
+ justify-content: space-between;
2380
+
2381
+ & > :not(:last-child) {
2382
+ margin-bottom: 8px;
2383
+ }
2384
+
2385
+ .gender-selector {
2386
+ row-gap: 12px;
2387
+
2388
+ & > :not(:last-child) {
2389
+ margin-right: 16px;
2390
+ }
2391
+
2392
+ & > div {
2393
+ ${Z.mbUp} {
2394
+ width: calc(18% - 4px);
2395
+ max-width: 186px;
2396
+ justify-self: left;
2397
+ }
2398
+
2399
+ ${Z.mbDown} {
2400
+ width: calc(31% - 8px);
2401
+ max-width: 109px;
2402
+ justify-self: left;
2403
+ }
2404
+ }
2405
+ }
2406
+
2407
+ .gender-image {
2408
+ width: 23px;
2409
+ height: 36px;
2410
+ object-fit: contain;
2411
+ }
2412
+ }
2413
+ .note {
2414
+ display: flex;
2415
+ align-items: center;
2416
+ padding-top: 8px;
2417
+ padding-bottom: 16px;
2418
+ }
2419
+ `,zi=({onSubmitDueDate:a,locale:i,isSide:l,siteType:r})=>{const{t:o}=K(),[s,c]=t(vi.lastPeriod),d=[{value:vi.lastPeriod,label:o("dueDatePage.lastPeriod")},{value:vi.conception,label:o("dueDatePage.conceptionDate")},{value:vi.IVF,label:o("dueDatePage.ivf")}],m=n((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Ni,null,e.createElement(hi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?e.createElement(pi,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:d,placeholder:o("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:oe.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.calculationMethod")),e.createElement(ui,{"data-is-side":l},e.createElement(ht,{options:d,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:d[s],onChange:e=>{c(e.value)}})))),s===vi.lastPeriod?e.createElement(Ei,{locale:i,onClick:a,isSide:l,siteType:r,pageUrl:m}):null,s===vi.conception?e.createElement(xi,{locale:i,onClick:a,isSide:l,siteType:r,pageUrl:m}):null,s===vi.IVF?e.createElement(wi,{locale:i,onClick:a,isSide:l,siteType:r,pageUrl:m}):null)},Li="hhgcomp-embedtoolcard-content",Pi=M(Re.form`
2420
+ margin: auto;
2421
+ ${Z.mbUp} {
2422
+ width: 100%;
2423
+ padding: 20px;
2424
+ display: flex;
2425
+ justify-content: space-between;
2426
+ flex-wrap: wrap;
2427
+ }
2428
+ ${Z.mbDown} {
2429
+ padding: 16px;
2430
+ }
2431
+ .due-date-calculate-button {
2432
+ width: 100%;
2433
+ margin: 12px auto 0;
2434
+ ${Z.mbUp} {
2435
+ max-width: 200px;
2436
+ }
2437
+ }
2438
+ &[data-is-side='true'] {
2439
+ ${Z.mbUp} {
2440
+ padding: 24px 40px 0px 40px;
2441
+ }
2442
+ }
2443
+ .input-weight-form {
2444
+ display: flex;
2445
+ flex-wrap: wrap;
2446
+ justify-content: space-between;
2447
+ padding: 0 16px;
2448
+ }
2449
+ .input-form {
2450
+ display: flex;
2451
+
2452
+ ${Z.mbUp} {
2453
+ margin-bottom: 24px;
2454
+ width: calc(50% - 8px);
2455
+ }
2456
+ &[data-is-side='true'] {
2457
+ ${Z.mbUp} {
2458
+ margin-bottom: 8px;
2459
+ width: 100%;
2460
+ }
2461
+ }
2462
+ ${Z.mbDown} {
2463
+ margin-bottom: 8px;
2464
+ }
2465
+ .label-text {
2466
+ overflow: hidden;
2467
+ text-overflow: ellipsis;
2468
+ -webkit-line-clamp: 2;
2469
+ display: -webkit-box;
2470
+ -webkit-box-orient: vertical;
2471
+ }
2472
+ }
2473
+ .input-form-pwg {
2474
+ display: flex;
2475
+ width: calc(50% - 8px);
2476
+
2477
+ ${Z.mbUp} {
2478
+ margin-bottom: 24px;
2479
+ }
2480
+ &[data-is-side='true'] {
2481
+ ${Z.mbUp} {
2482
+ margin-bottom: 8px;
2483
+ }
2484
+ }
2485
+ ${Z.mbDown} {
2486
+ margin-bottom: 8px;
2487
+ width: 100%;
2488
+ }
2489
+ .label-text {
2490
+ overflow: hidden;
2491
+ text-overflow: ellipsis;
2492
+ -webkit-line-clamp: 2;
2493
+ display: -webkit-box;
2494
+ -webkit-box-orient: vertical;
2495
+ }
2496
+ }
2497
+ .day-slider {
2498
+ width: 100%;
2499
+ ${Z.mbUp} {
2500
+ width: calc(50% - 8px);
2501
+ &[data-is-side='true'] {
2502
+ width: 100%;
2503
+ }
2504
+ }
2505
+ }
2506
+ `,Li),Si=Re.div`
2507
+ padding: 0;
2508
+ background-color: white;
2509
+ border: 1px solid #e4e8ec;
2510
+ border-radius: 4px;
2511
+
2512
+ &[data-site='marryBaby'] {
2513
+ background-color: ${e=>e.theme.mbColors.green};
2514
+ border-radius: 16px;
2515
+ }
2516
+ .due-date-cal {
2517
+ .${Li} {
2518
+ ${Z.mbUp} {
2519
+ padding: 24px;
2520
+ }
2521
+ ${Z.mbDown} {
2522
+ padding: 16px;
2523
+ }
2524
+ }
2525
+ display: table;
2526
+ width: 100%;
2527
+ .slider-due-date {
2528
+ margin-bottom: 12px;
2529
+ width: 100%;
2530
+ margin-left: 0px;
2531
+ margin-right: 0px;
2532
+ .slider-outer-wrapper {
2533
+ margin: 2rem -0.5rem 1rem;
2534
+ }
2535
+ &[data-theme='marryBaby'] {
2536
+ padding: 1rem;
2537
+ background: white;
2538
+ border-radius: 1rem;
2539
+ .slider-outer-wrapper {
2540
+ gap: 12px;
2541
+ display: flex;
2542
+ align-items: center;
2543
+ margin: 0.5rem;
2544
+ }
2545
+ }
2546
+ }
2547
+ .input-form {
2548
+ display: flex;
2549
+ ${Z.mbUp} {
2550
+ width: calc(50% - 8px);
2551
+ margin-bottom: 24px;
2552
+ }
2553
+ &[data-is-side='true'] {
2554
+ ${Z.mbUp} {
2555
+ margin-bottom: 12px;
2556
+ width: 100%;
2557
+ }
2558
+ }
2559
+ ${Z.mbDown} {
2560
+ margin-bottom: 8px;
2561
+ }
2562
+ }
2563
+ }
2564
+ .heart-rate-cal {
2565
+ .slider-heart-rate {
2566
+ margin-bottom: 12px;
2567
+ width: 100%;
2568
+ margin-left: 0px;
2569
+ margin-right: 0px;
2570
+ .slider-outer-wrapper {
2571
+ margin: 2rem -0.5rem 1rem;
2572
+ }
2573
+ }
2574
+ }
2575
+ .ovulation-cal {
2576
+ display: flex;
2577
+ /* padding-top: 24px; */
2578
+ justify-content: space-between;
2579
+ flex-wrap: wrap;
2580
+ .slider-ovulation {
2581
+ margin-bottom: 12px;
2582
+ /* width: 100%; */
2583
+ margin-left: 0px;
2584
+ margin-right: 0px;
2585
+ .slider-outer-wrapper {
2586
+ margin: 2rem -0.5rem 1rem;
2587
+ }
2588
+ &[data-theme='marryBaby'] {
2589
+ padding: 1rem;
2590
+ background: white;
2591
+ border-radius: 1rem;
2592
+ .slider-outer-wrapper {
2593
+ gap: 12px;
2594
+ display: flex;
2595
+ align-items: center;
2596
+ margin: 0.5rem;
2597
+ }
2598
+ }
2599
+ }
2600
+ .input-form {
2601
+ display: flex;
2602
+ ${Z.mbUp} {
2603
+ width: calc(50% - 8px);
2604
+ margin-bottom: 24px;
2605
+ &[data-is-side='true'] {
2606
+ margin-bottom: 12px;
2607
+ width: 100%;
2608
+ }
2609
+ }
2610
+ ${Z.mbDown} {
2611
+ margin-bottom: 8px;
2612
+ }
2613
+ }
2614
+ }
2615
+ .pwg-view-mobile {
2616
+ &[data-is-side='true'] {
2617
+ display: flex;
2618
+ flex-wrap: wrap;
2619
+ justify-content: space-between;
2620
+ }
2621
+ ${Z.mbDown} {
2622
+ display: flex;
2623
+ flex-wrap: wrap;
2624
+ justify-content: space-between;
2625
+ padding: 16px 0;
2626
+ }
2627
+ .hide-asking-mobile {
2628
+ gap: 10px;
2629
+ &[data-is-side='true'] {
2630
+ ${Z.mbUp} {
2631
+ display: none;
2632
+ }
2633
+ }
2634
+ ${Z.mbDown} {
2635
+ display: none;
2636
+ }
2637
+ }
2638
+ .hide-asking-desk {
2639
+ gap: 10px;
2640
+ &[data-is-side='true'] {
2641
+ ${Z.mbUp} {
2642
+ display: unset;
2643
+ }
2644
+ }
2645
+ ${Z.mbUp} {
2646
+ display: none;
2647
+ }
2648
+ }
2649
+ }
2650
+ input[type='date']::after {
2651
+ width: 16px;
2652
+ height: 16px;
2653
+ background-image: url('https://hellobacsi.com/svg/calendar.svg');
2654
+ background-repeat: no-repeat;
2655
+ background-size: contain;
2656
+ content: '';
2657
+ }
2658
+ `,Ti=Re(Ya)`
2659
+ &[data-direction='horizontal'] div[data-type='circle'] {
2660
+ margin-right: 8px;
2661
+ }
2662
+ label {
2663
+ font-size: 14px;
2664
+ }
2665
+ `,Mi=({isMobile:t,locale:a,onSubmitDueDate:n,dueDatePageInfo:i,expertUrl:l,isSide:r,siteType:o})=>{var s;const{t:c}=K();return e.createElement(Si,{"data-is-side":r,"data-site":o},e.createElement(mi,{isSide:r,siteType:o,bannerColor:"marryBaby"===o&&oe.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==i?void 0:i.featured_image)||re.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":r},e.createElement(zi,{siteType:o,locale:a,onSubmitDueDate:n,isSide:r})))},Ii=Re(Te)`
2666
+ margin: 0 auto 24px;
2667
+ ${Z.mbUp} {
2668
+ max-width: 200px;
2669
+ margin: 24px auto;
2670
+ }
2671
+ `,ji=Re(j)`
2672
+ &.bmi--input {
2673
+ + .bmi--input {
2674
+ margin-top: 24px;
2675
+ }
2676
+ .inputLabel {
2677
+ display: inline-block;
2678
+ margin-bottom: 5px;
2679
+ color: #595959;
2680
+ font-weight: bold;
2681
+ font-size: 12px;
2682
+ }
2683
+ .errorLabel {
2684
+ line-height: 1.3;
2685
+ }
2686
+ input[type='radio'] {
2687
+ padding: 0;
2688
+ }
2689
+ .bmi--input-radio_gender {
2690
+ width: 100%;
2691
+ gap: 16px;
2692
+ > div {
2693
+ ${Z.mbDown} {
2694
+ width: calc(50% - 8px);
2695
+ }
2696
+ width: calc(33% - 8px);
2697
+ }
2698
+ & > div > div {
2699
+ display: flex;
2700
+ flex-direction: row;
2701
+ justify-content: center;
2702
+ align-content: center;
2703
+ gap: 8px;
2704
+ padding-block: 5px;
2705
+ }
2706
+ }
2707
+ .bmi-side-embed {
2708
+ > div {
2709
+ ${Z.mbUp} {
2710
+ width: calc(50% - 8px);
2711
+ }
2712
+ }
2713
+ }
2714
+ .radio-group-item-heading {
2715
+ margin-top: 0;
2716
+ }
2717
+ }
2718
+
2719
+ ${Z.mbDown} {
2720
+ &.bmi--input {
2721
+ .bmi--input-radio_gender {
2722
+ > div {
2723
+ .gender-image {
2724
+ width: 40px;
2725
+ height: 40px;
2726
+ }
2727
+ }
2728
+ }
2729
+ }
2730
+ }
2731
+ `,Ai=Re.div`
2732
+ width: 100%;
2733
+ `,Oi=Re.div`
2734
+ margin-bottom: 1rem;
2735
+ display: flex;
2736
+ flex-direction: column;
2737
+ gap: 16px;
2738
+ input {
2739
+ font-size: 12px;
2740
+ ::placeholder {
2741
+ color: #8c8c8c;
2742
+ opacity: 1;
2743
+ }
2744
+ }
2745
+ .input-label {
2746
+ label {
2747
+ display: inline-block;
2748
+ margin-bottom: 9px;
2749
+ color: #595959;
2750
+ font-weight: bold;
2751
+ font-size: 12px;
2752
+ }
2753
+ }
2754
+ `;Re.div`
2755
+ display: flex;
2756
+ flex-direction: column;
2757
+ #thr-dropdown {
2758
+ z-index: 10;
2759
+ width: 100%;
2760
+ min-width: unset;
2761
+ max-width: unset;
2762
+ color: ${e=>e.theme.colors.gray800};
2763
+ & > ul {
2764
+ z-index: 1;
2765
+ max-height: 300px;
2766
+ overflow-y: scroll;
2767
+ }
2768
+ }
2769
+ `;const _i=Re.div`
2770
+ ${Z.mbUp} {
2771
+ display: flex;
2772
+ width: 100%;
2773
+ align-items: flex-start;
2774
+ justify-content: space-between;
2775
+ gap: 12px;
2776
+ > div {
2777
+ width: 100%;
2778
+ }
2779
+ &[data-is-side='true'] {
2780
+ ${Z.mbUp} {
2781
+ display: flex;
2782
+ flex-direction: column;
2783
+ gap: 0px;
2784
+ }
2785
+ }
2786
+ }
2787
+ ${Z.mbDown} {
2788
+ display: flex;
2789
+ flex-direction: column;
2790
+ gap: 0px;
2791
+ }
2792
+ `;function Fi({weight:e,height:t}){const a=t/100,n=e;return Math.round(n/(a*a)*10)/10}const Hi=({value:a,onChange:l,onSubmit:r,disabled:o,bmiGenerated:s,bmiUnit:c,locale:d,isSide:m})=>{var g,h,u,b;const[v,y]=t(!1),{control:f,handleSubmit:x,setValue:w,watch:E}=bt(),k=E(),{t:C}=K(),{gender:B=!1,age:N=!1,height:D=!1,weight:$=!1,objective:z=!0}=o||{},{getHealthToolLink:L}=yt(d),P=n((()=>L(O.OVULATION)),[L]),S=n((()=>[{value:"lose-weight",label:C("bmi.objective.loseWeight")},{value:"maintain-weight",label:C("bmi.objective.maintainWeight")},{value:"gain-weight",label:C("bmi.objective.gainWeight")}]),[]),T=()=>{y(!0)};return i((()=>{Object.keys(a||{}).forEach((e=>{w(e,null==a?void 0:a[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[a]),i((()=>{l&&l(k)}),[k]),e.createElement(Ai,null,e.createElement("form",{onSubmit:x((e=>ce(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:Fi({height:t,weight:a})};z||(n.objective=e.objective),T(),r&&r(n)}))),T)},!B&&e.createElement(Oi,{"data-is-side":m},e.createElement(vt,{name:"gender",control:f,defaultValue:"male",render:({field:{onChange:t}})=>e.createElement(oa,{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:ge(12)}}})})})),e.createElement(_i,{"data-is-side":m},!N&&e.createElement(Oi,null,e.createElement(vt,{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(Me.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600},C("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray300,as:"span"},C("bmi.ageInput.desc"))),placeholder:C("healthtool.placeholder.age"),name:t,value:a,onChange:n,error:v?null==i?void 0:i.message:"",min:0})})),!D&&e.createElement(Oi,null,e.createElement(vt,{name:"height",control:f,rules:null===(h=s.height)||void 0===h?void 0:h.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(Me.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600},C("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray300,as:"span"},C("bmi.heightInput.desc"))),placeholder:C("pwg.placeholder.height"),name:t,value:a,onChange:n,error:v?null==i?void 0:i.message:"",min:0})})),!$&&e.createElement(Oi,null,e.createElement(vt,{name:"weight",control:f,rules:null===(u=s.weight)||void 0===u?void 0:u.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(Me.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600},C("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray300,as:"span"},C("bmi.weightInput.desc"))),placeholder:C("pwg.placeholder.weight"),name:t,value:a,onChange:n,error:v?null==i?void 0:i.message:"",precision:1,min:0})})),!z&&e.createElement(Oi,null,e.createElement(vt,{name:"objective",control:f,defaultValue:"lose-weight",rules:null===(b=s.objective)||void 0===b?void 0:b.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(ji,{size:"md",name:t,label:s.objective.label,CustomInput:e.createElement(Ya,{id:"bmi-objective",className:"bmi-objective",direction:"vertical",size:"small",options:S,value:a,onChange:n}),errorMessage:v?null==i?void 0:i.message:"",className:"bmi--input bmi--input-objective"})}))),e.createElement("div",{style:{display:"flex"}},e.createElement(Ii,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${Q[d]}/${P}`,type:"submit"},C("bmi.submit")))))},Ri=({isMobile:t,onSubmit:a,bmiContent:n,isSide:i,bmiGenerated:l,bmiUnit:r,bmiLink:o,locale:s})=>{var c,d,m;const{t:p}=K();return e.createElement(Si,{"data-is-side":i},e.createElement(mi,{isSide:i,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||re.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(ut,null,e.createElement(Pi,{as:"div","data-is-side":i},o&&e.createElement(Hi,{onSubmit:a,bmiGenerated:l,locale:s,bmiUnit:r,isSide:i}))))},Wi=Re.div`
2793
+ padding-block: 40px;
2794
+
2795
+ &[data-theme='marryBaby'] {
2796
+ padding-block: 0;
2797
+ padding-top: 12px;
2798
+ }
2799
+ `,Ui=Re.form`
2800
+ display: flex;
2801
+ flex-direction: column;
2802
+ gap: 16px;
2803
+ `,Vi=Re.div`
2804
+ display: flex;
2805
+ flex-direction: column;
2806
+ gap: 6px;
2807
+ margin-top: auto;
2808
+
2809
+ .error-input input {
2810
+ border: 1px solid ${e=>e.theme.colors.red700};
2811
+ }
2812
+ `,Gi=Re(dt)`
2813
+ display: inline-flex;
2814
+ padding-bottom: 6px;
2815
+ gap: 4px;
2816
+ `,Zi=Re.div`
2817
+ display: flex;
2818
+ width: 100%;
2819
+ align-items: center;
2820
+ justify-content: space-between;
2821
+ gap: 16px;
2822
+ > div {
2823
+ width: 100%;
2824
+ }
2825
+ `;Re.div`
2826
+ ${Z.mbUp} {
2827
+ padding: 0 16px;
2828
+ }
2829
+
2830
+ margin-bottom: 24px;
2831
+
2832
+ & > :not(:last-child) {
2833
+ margin-bottom: 8px;
2834
+ }
2835
+
2836
+ .gender-selector {
2837
+ & > :not(:last-child) {
2838
+ margin-right: 16px;
2839
+ }
2840
+
2841
+ & > div {
2842
+ width: calc(50% - 8px);
2843
+
2844
+ ${Z.mbUp} {
2845
+ max-width: 186px;
2846
+ justify-self: left;
2847
+ }
2848
+ }
2849
+ }
2850
+ `;const qi=(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},Yi=Re.div`
2851
+ padding: 36px;
2852
+ padding-top: 0;
2853
+ background-color: white;
2854
+ ${Z.mbDown} {
2855
+ padding: 16px;
2856
+ padding-top: 0;
2857
+ }
2858
+ &[data-theme='marryBaby'] {
2859
+ background-color: ${e=>e.theme.mbColors.green};
2860
+ padding: 24px;
2861
+ border-bottom-right-radius: 16px;
2862
+ border-bottom-left-radius: 16px;
2863
+ ${Z.mbDown} {
2864
+ padding: 16px;
2865
+ }
2866
+ }
2867
+ `,Xi=Re((({onSubmit:t,onError:a,schema:l,siteType:r})=>{const{t:o}=K(),s="mb"===fe().other.template,{control:c,setValue:d,watch:m,handleSubmit:h,formState:{isSubmitted:u}}=bt({resolver:ft(l),mode:"onSubmit",defaultValues:{name:"",gender:_e.Boy,measurementDate:new Date}}),b=m("weight"),v=m("height"),y=m("head"),f=n((()=>u&&!b&&!v&&!y),[u,b,v,y]);i((()=>{const e=qi(v,b);d("bmi",String(e)||"0")}),[b,v]);const x=n((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(Wi,{"data-theme":r},e.createElement(Ui,{onSubmit:h(t,a)},e.createElement(vt,{control:c,name:"gender",render:({field:{onChange:t,value:a}})=>e.createElement(xt,{onChange:t,value:a,siteType:r})}),"marryBaby"===r?e.createElement(e.Fragment,null,e.createElement(vt,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(gi,{label:o("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(a),CustomInput:e.createElement(Ta,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Xe,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md"},i,{value:a&&He(a).format(A)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}))}),e.createElement(Zi,null,e.createElement(vt,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(gi,{label:`${o("babyGrowth.height")} ${o("babyGrowth.cm")}`,name:"height",size:"md",value:String(a),CustomInput:e.createElement(Xe,{className:f||(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(vt,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(gi,{label:`${o("babyGrowth.weight")} ${o("babyGrowth.kg")}`,name:"weight",size:"md",value:String(a),CustomInput:e.createElement(Xe,{className:f||(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(Zi,null,e.createElement(vt,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(gi,{label:`${o("babyGrowth.headCircumference")} ${o("babyGrowth.cm")}`,name:"head",size:"md",value:String(a),CustomInput:e.createElement(Xe,{className:f||(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(vt,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(Vi,null,e.createElement(gi,{label:`${o("babyGrowth.input.bmi")} ${o("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(t),CustomInput:e.createElement(Xe,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0,style:{color:"#9495A0"}})}))})),e.createElement(vt,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(gi,{label:o("babyGrowth.input.measurementDate"),name:"date",size:"md",value:fi(a),CustomInput:e.createElement(Ta,{placeholder:a&&He(a).format(A),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Xe,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&He(a).format(A),onChange:t},i,{value:a&&He(a).format(A)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}))}),e.createElement(Te,{size:"lg",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":x},o("babyGrowth.input.submit"))):e.createElement(e.Fragment,null,e.createElement(vt,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(Gi,{size:"label1",htmlFor:"birthday"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o("babyGrowth.input.birthday"))),e.createElement(Ta,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Xe,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md",actionIcon:e.createElement(g.Calendar,null)},i,{value:a&&He(a).format(A)}))}))}),e.createElement(Zi,null,e.createElement(vt,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(Gi,{size:"label1",htmlFor:"height"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.height")),e.createElement(p,{as:"span",size:"n1",color:oe.colors.gray400},o("babyGrowth.cm"))),e.createElement(Xe,{className:f||(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(vt,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(Gi,{size:"label1",htmlFor:"weight"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.weight")),e.createElement(p,{as:"span",size:"n1",color:oe.colors.gray400},o("babyGrowth.kg"))),e.createElement(Xe,{className:f||(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(Zi,null,e.createElement(vt,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(Gi,{size:"label1",htmlFor:"head"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.headCircumference")),e.createElement(p,{as:"span",size:"n1",color:oe.colors.gray400},o("babyGrowth.cm"))),e.createElement(Xe,{className:f||(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(vt,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(Vi,null,e.createElement(Gi,{size:"label1",htmlFor:"bmi"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.input.bmi")),e.createElement(p,{as:"span",size:"n1",color:oe.colors.gray400},o("babyGrowth.kg.m2"))),e.createElement(Xe,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0}))})),e.createElement(vt,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Vi,null,e.createElement(Gi,{size:"label1",htmlFor:"measurementDate"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o("babyGrowth.input.measurementDate"))),e.createElement(Ta,{placeholder:a&&He(a).format(A),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Xe,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&He(a).format(A),onChange:t,actionIcon:e.createElement(g.Calendar,null)},i,{value:a&&He(a).format(A)}))}))}),e.createElement(Te,{size:"lg",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":x},o("babyGrowth.input.submit"))))))}))`
2868
+ padding-block: 0;
2869
+ `;Re(mi)`
2870
+ padding-inline: 20px;
2871
+
2872
+ img.embedded-icon {
2873
+ width: 140px;
2874
+ margin-left: 50%;
2875
+ align-self: center;
2876
+ }
2877
+
2878
+ ${Z.mbDown} {
2879
+ padding-inline: 0;
2880
+ img.embedded-icon {
2881
+ width: 125px;
2882
+ align-self: end;
2883
+ margin-left: 0;
2884
+ position: absolute;
2885
+ transform: translateY(50%);
2886
+ }
2887
+ .embedded-review {
2888
+ max-width: 200px;
2889
+ }
2890
+ }
2891
+ `;const Ki=({isMobile:t,className:a,onSubmit:n,onError:i,schema:l,babyGrowthContent:r,siteType:o})=>{var s,c,d;return e.createElement(Si,{"babyGrowthContent-is-mobile":t,"data-site":o},e.createElement(mi,{siteType:o,bannerUrl:re.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:re.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===o&&oe.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==r?void 0:r.featuredImage)||re.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null==r?void 0:r.title)||"",medicalReview:{link:null===(s=null==r?void 0:r.reviewBy)||void 0===s?void 0:s.link,reviewer:null===(c=null==r?void 0:r.reviewBy)||void 0===c?void 0:c.reviewer.trim(),date:null===(d=null==r?void 0:r.reviewBy)||void 0===d?void 0:d.date},isMobile:t}),e.createElement(Yi,{"data-theme":o},e.createElement(Xi,{siteType:o,schema:l,className:a,onSubmit:n,onError:i})))};var Ji=be(((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(${re.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:r})=>{const{t:o}=K(),s="mb"===fe().other.template,{classes:c}=Ji({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(S,{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:re.getAssetPath("reviewerCheck.svg"),alt:"check",className:c.reviewTextIcon,loading:"lazy"}),e.createElement(p,{size:"p4",color:oe.colors.gray600},o("categoryPage.info.reviewed")," ",e.createElement("a",{href:d.profile_url},d.display_name)," ",o("categoryPage.onDate",{date:m||""}))),e.createElement("div",{className:c.action},e.createElement(Te,{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"}},o("babyPoop.findOut"))))),e.createElement("div",{className:c.thumbnail},e.createElement("img",{src:s?re.getAssetPath("baby-poop.svg"):null==t?void 0:t.featuredImage,alt:t.title,loading:"lazy"})),r&&e.createElement("img",{loading:"lazy",src:r,alt:"sponsor",className:c.sponsorLogo}))},el=Re.div`
2892
+ display: flex;
2893
+ width: 100%;
2894
+
2895
+ &[data-direction='vertical'] {
2896
+ flex-direction: column;
2897
+ }
2898
+
2899
+ &[data-direction='horizontal'] {
2900
+ flex-wrap: wrap;
2901
+ }
2902
+ `,tl=Re.div`
2903
+ display: flex;
2904
+
2905
+ padding: 8px;
2906
+
2907
+ border-radius: ${e=>e.theme.borderRadius};
2908
+ cursor: pointer;
2909
+
2910
+ & > div {
2911
+ display: flex;
2912
+ width: 100%;
2913
+ height: 100%;
2914
+ flex-direction: column;
2915
+ align-items: center;
2916
+ justify-content: flex-start;
2917
+ }
2918
+
2919
+ &[data-selected='true'] {
2920
+ border: 1px solid #2d87f3;
2921
+ background: white;
2922
+
2923
+ .radio-group-item-heading {
2924
+ color: #2d87f3;
2925
+ }
2926
+ }
2927
+ &[data-selected='false'] {
2928
+ border: 1px solid #f2f2f2;
2929
+ box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
2930
+ .radio-group-item-heading {
2931
+ color: #262626;
2932
+ }
2933
+ }
2934
+ &[data-disabled='true'] {
2935
+ cursor: auto;
2936
+ }
2937
+
2938
+ .radio-group-item-heading {
2939
+ margin-top: 8px;
2940
+ text-align: center;
2941
+ }
2942
+
2943
+ .gender-image {
2944
+ width: 23px;
2945
+ height: 36px;
2946
+ object-fit: contain;
2947
+ }
2948
+ `,al=({value:a,options:n,className:i,direction:l="horizontal",onChange:r,isDisabled:o})=>{const[s,c]=t(a);return e.createElement(el,{className:i,"data-direction":l},n.map(((t,n)=>e.createElement(tl,{"data-selected":(a||s)===t.value,"data-disabled":o,key:`health-tool${n}`,onClick:()=>{var e;e=t.value,o||(c(e),r&&r(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))))))},nl=Re(Te)`
2949
+ margin: 0 auto 24px;
2950
+ width: 100%;
2951
+ ${Z.mbUp} {
2952
+ max-width: 200px;
2953
+ }
2954
+ `;Re.div`
2955
+ display: flex;
2956
+ gap: 10px;
2957
+ line-height: 1;
2958
+ span {
2959
+ overflow: hidden;
2960
+ text-overflow: ellipsis;
2961
+ -webkit-line-clamp: 2;
2962
+ display: -webkit-box;
2963
+ -webkit-box-orient: vertical;
2964
+ }
2965
+ ${Z.mbUp} {
2966
+ padding-right: 16px;
2967
+ padding-bottom: 10px;
2968
+ flex-wrap: wrap;
2969
+ align-items: center;
2970
+ &[data-is-side='true'] {
2971
+ width: 100%;
2972
+ justify-content: unset;
2973
+ .label {
2974
+ margin-bottom: 9px;
2975
+ }
2976
+ }
2977
+ }
2978
+ &[data-is-side='true'] {
2979
+ ${Z.mbDown} {
2980
+ width: 100%;
2981
+ .label {
2982
+ margin-bottom: 9px;
2983
+ }
2984
+ }
2985
+ }
2986
+ ${Z.mbDown} {
2987
+ width: 100%;
2988
+ .label {
2989
+ margin-bottom: 9px;
2990
+ }
2991
+ }
2992
+ `,Re(j)`
2993
+ &.bmi--input {
2994
+ + .bmi--input {
2995
+ margin-top: 24px;
2996
+ }
2997
+ .inputLabel {
2998
+ display: inline-block;
2999
+ margin-bottom: 5px;
3000
+ color: #595959;
3001
+ font-weight: bold;
3002
+ font-size: 12px;
3003
+ }
3004
+ .errorLabel {
3005
+ line-height: 1.3;
3006
+ }
3007
+ input[type='radio'] {
3008
+ padding: 0;
3009
+ }
3010
+ .bmi--input-radio_gender {
3011
+ width: 100%;
3012
+ gap: 16px;
3013
+ > div {
3014
+ width: calc(50% - 8px);
3015
+ }
3016
+ & > div > div {
3017
+ display: flex;
3018
+ flex-direction: row;
3019
+ justify-content: center;
3020
+ align-content: center;
3021
+ gap: 8px;
3022
+ padding-block: 5px;
3023
+ }
3024
+ }
3025
+ .radio-group-item-heading {
3026
+ margin-top: 0;
3027
+ }
3028
+ }
3029
+
3030
+ ${Z.mbUp} {
3031
+ &.bmi--input {
3032
+ .bmi--input-radio_gender {
3033
+ > div {
3034
+ max-width: 186px;
3035
+ }
3036
+ }
3037
+ }
3038
+ }
3039
+
3040
+ ${Z.mbDown} {
3041
+ &.bmi--input {
3042
+ .bmi--input-radio_gender {
3043
+ > div {
3044
+ .gender-image {
3045
+ width: 40px;
3046
+ height: 40px;
3047
+ }
3048
+ }
3049
+ }
3050
+ }
3051
+ }
3052
+ `;const il=Re.div``,ll=Re.div`
3053
+ display: flex;
3054
+ flex-direction: column;
3055
+ gap: 16px;
3056
+ input {
3057
+ font-size: 12px;
3058
+ }
3059
+ .gender-option {
3060
+ gap: 16px;
3061
+ > div {
3062
+ width: calc(50% - 8px);
3063
+ }
3064
+ }
3065
+ .input-label {
3066
+ label {
3067
+ display: inline-block;
3068
+ margin-bottom: 9px;
3069
+ color: #595959;
3070
+ font-weight: bold;
3071
+ font-size: 12px;
3072
+ }
3073
+ }
3074
+ `,rl=Re.div`
3075
+ ${Z.mbUp} {
3076
+ display: flex;
3077
+ width: 100%;
3078
+ align-items: flex-start;
3079
+ justify-content: space-between;
3080
+ gap: 16px;
3081
+ margin-bottom: 24px;
3082
+ > div {
3083
+ width: 100%;
3084
+ }
3085
+ }
3086
+
3087
+ ${Z.mbDown} {
3088
+ display: flex;
3089
+ flex-direction: column;
3090
+ gap: 16px;
3091
+ margin-bottom: 8px;
3092
+ }
3093
+ &[data-is-side='true'] {
3094
+ ${Z.mbUp} {
3095
+ display: flex;
3096
+ flex-direction: column-reverse;
3097
+ gap: 0px;
3098
+ }
3099
+ }
3100
+ `,ol=({info:a,className:n,style:l,onChange:r,errorMessage:o={},locale:s})=>{const{t:c}=K(),[d,m]=t(new Date),[g,h]=t({age:!1,rate:!1});return i((()=>{h({age:!1,rate:!1})}),[o]),e.createElement(il,{style:l,className:n},e.createElement(Xe,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:fi(d),name:"date",size:"md",CustomInput:e.createElement(Ta,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:fi(d)})),disabledDays:{after:new Date(Qe(new Date,0))},locale:s,pickedDate:d,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),h((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:Je(new Date(e),yi)});r&&r(t)})(e)},placeholder:"placeholder"}),errorMessage:g.age?"":o.age}))},sl=({isSide:a,locale:l,thrContent:r,isMobile:o,info:s,inputErrorMessage:c,onFormChange:d,onSubmit:m})=>{var g,h,u;const{t:b}=K(),{getHealthToolLink:v}=yt(l),y=n((()=>v(O.THR)),[v]),[f,x]=t(!1),[w,E]=t("low_intensity"),[k,C]=t("male"),[B,N]=t(60),[D,$]=t({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),z=[{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}],L=[{value:"low_intensity",label:b("targetHeartRate.lowIntensity.title"),image:re.getAssetPath("/low.svg"),imageActive:re.getAssetPath("/low-active.svg"),content:b("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:b("targetHeartRate.moderateIntensity.title"),image:re.getAssetPath("/moderate.svg"),imageActive:re.getAssetPath("/moderate-active.svg"),content:b("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:b("targetHeartRate.aerobicZone.title"),image:re.getAssetPath("/aerobic.svg"),imageActive:re.getAssetPath("/aerobic-active.svg"),content:b("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:b("targetHeartRate.vigorousIntensity.title"),image:re.getAssetPath("/vigorous.svg"),imageActive:re.getAssetPath("/vigorous-active.svg"),content:b("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:b("targetHeartRate.maximumIntensity.title"),image:re.getAssetPath("/maximum.svg"),imageActive:re.getAssetPath("/maximum-active.svg"),content:b("targetHeartRate.maximumIntensity.note")}];return i((()=>{const e=((new Date).getTime()-new Date(null==s?void 0:s.age).getTime())/1e3;x(e>=567648e3);const t=z.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||z[0];$(t),N(60)}),[null==s?void 0:s.age]),e.createElement(Si,{"data-is-side":a},e.createElement(mi,{isSide:a,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==r?void 0:r.featured_image)||re.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:b("targetHearRate.heading"),medicalReview:(null===(g=null==r?void 0:r.reviewedBy)||void 0===g?void 0:g.display_name)?{link:Et(null==r?void 0:r.reviewedBy),reviewer:null===(h=null==r?void 0:r.reviewedBy)||void 0===h?void 0:h.display_name,date:null==r?void 0:r.reviewedDate}:void 0,isMobile:o}),e.createElement(ut,null,e.createElement(Pi,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":a},e.createElement(rl,{"data-is-side":a},e.createElement(ll,null,e.createElement(oa,{defaultValue:"male",onChange:e=>{C(e),N(60)},styles:e=>({root:!a&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:ge(12)}}})}))),e.createElement(rl,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:oe.colors.gray600},b("targetHeartRate.heartRateInput")),e.createElement("div",{className:"slider-outer-wrapper"},e.createElement(pt,{containerStyle:{flex:1},min:"male"===k?D.rangeMale:D.rangeFemale,max:200,step:1,value:B,withControl:!0,onChange:N}))),f&&e.createElement(ll,null,e.createElement($i,null,e.createElement(p,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:oe.colors.gray600,marginBottom:"9px"}},b("targetHeartRate.selectActive")),e.createElement("div",{className:"card"},e.createElement(al,{options:L.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:w,onChange:e=>{E(e)},className:"gender-selector"})),w&&e.createElement("div",{className:"note"},e.createElement("img",{style:{height:"16px",width:"16px"},src:re.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),e.createElement(p,{size:"s4",color:"#595959"},null===(u=L[L.findIndex((e=>e.value==w))||0])||void 0===u?void 0:u.content)),!w&&e.createElement("span",{style:{color:"#e64728"}},c.intensity)))),e.createElement("div",{style:{display:"flex"}},e.createElement(nl,{size:"lg",onClick:()=>{m(k,w,[B])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${Q[l]}/${y}`},b("bmi.submit")))))},cl=Re(Te)`
3101
+ margin: 0 auto 24px;
3102
+ ${Z.mbUp} {
3103
+ max-width: 200px;
3104
+ margin: 24px auto;
3105
+ }
3106
+ `;Re(j)`
3107
+ &.bmi--input {
3108
+ + .bmi--input {
3109
+ margin-top: 24px;
3110
+ }
3111
+ .inputLabel {
3112
+ display: inline-block;
3113
+ margin-bottom: 5px;
3114
+ color: #595959;
3115
+ font-weight: bold;
3116
+ font-size: 12px;
3117
+ }
3118
+ .errorLabel {
3119
+ line-height: 1.3;
3120
+ }
3121
+ input[type='radio'] {
3122
+ padding: 0;
3123
+ }
3124
+ .bmi--input-radio_gender {
3125
+ width: 100%;
3126
+ gap: 16px;
3127
+ > div {
3128
+ ${Z.mbDown} {
3129
+ width: calc(50% - 8px);
3130
+ }
3131
+ width: calc(33% - 8px);
3132
+ }
3133
+ & > div > div {
3134
+ display: flex;
3135
+ flex-direction: row;
3136
+ justify-content: center;
3137
+ align-content: center;
3138
+ gap: 8px;
3139
+ padding-block: 5px;
3140
+ }
3141
+ }
3142
+ .bmi-side-embed {
3143
+ > div {
3144
+ ${Z.mbUp} {
3145
+ width: calc(50% - 8px);
3146
+ }
3147
+ }
3148
+ }
3149
+ .radio-group-item-heading {
3150
+ margin-top: 0;
3151
+ }
3152
+ }
3153
+
3154
+ ${Z.mbDown} {
3155
+ &.bmi--input {
3156
+ .bmi--input-radio_gender {
3157
+ > div {
3158
+ .gender-image {
3159
+ width: 40px;
3160
+ height: 40px;
3161
+ }
3162
+ }
3163
+ }
3164
+ }
3165
+ }
3166
+ `;const dl=Re.div``,ml=Re.div`
3167
+ margin-bottom: 1rem;
3168
+ display: flex;
3169
+ flex-direction: column;
3170
+ gap: 16px;
3171
+ input {
3172
+ font-size: 12px;
3173
+ ::placeholder {
3174
+ color: #8c8c8c;
3175
+ opacity: 1;
3176
+ }
3177
+ }
3178
+ .gender-option {
3179
+ gap: 16px;
3180
+ > div {
3181
+ width: calc(50% - 8px);
3182
+ }
3183
+ }
3184
+ .input-label {
3185
+ label {
3186
+ display: inline-block;
3187
+ margin-bottom: 9px;
3188
+ color: #595959;
3189
+ font-weight: bold;
3190
+ font-size: 12px;
3191
+ }
3192
+ }
3193
+ `,pl=Re.div`
3194
+ ${Z.mbUp} {
3195
+ display: flex;
3196
+ width: 100%;
3197
+ align-items: flex-start;
3198
+ justify-content: space-between;
3199
+ gap: 12px;
3200
+ > div {
3201
+ width: 100%;
3202
+ }
3203
+ &[data-is-side='true'] {
3204
+ ${Z.mbUp} {
3205
+ display: flex;
3206
+ flex-direction: column;
3207
+ gap: 0px;
3208
+ }
3209
+ }
3210
+ }
3211
+ ${Z.mbDown} {
3212
+ display: flex;
3213
+ flex-direction: column;
3214
+ gap: 0px;
3215
+ }
3216
+ `,gl=({info:a,className:l,style:r,onChange:o,errorMessage:s={},locale:c,onClick:d,isSide:m})=>{const{t:g}=K(),[h,u]=t({age:!1,height:!1,weight:!1}),{getHealthToolLink:b}=yt(c),v=n((()=>b(O.OVULATION)),[b]),[y,f]=t("male"),x=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},w=e=>{var t,n;n=e=>{u((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:e});o&&o(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||n(t)};return i((()=>{o&&o(Object.assign(Object.assign({},a),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),i((()=>{u({age:!1,height:!1,weight:!1})}),[s]),e.createElement(dl,{style:r,className:l},e.createElement(ml,{"data-is-side":m},e.createElement(oa,{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:ge(12)}}})})),e.createElement(pl,{"data-is-side":m},e.createElement(ml,null,e.createElement(Me.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600},g("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray300,as:"span"},g("bmi.ageInput.desc"))),placeholder:g("healthtool.placeholder.age"),value:Number(a.age),onChange:e=>w(String(e)),error:h.age?"":s.age,min:0})),e.createElement(ml,null,e.createElement(Me.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600},g("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray300,as:"span"},g("bmi.heightInput.desc"))),placeholder:g("pwg.placeholder.height"),value:Number(a.height),onChange:e=>{return t=String(e),void x(t,(e=>{u((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},a),{height:e});o&&o(t)}));var t},error:h.height?"":s.height,min:0})),e.createElement(ml,null,e.createElement(Me.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray600},g("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:oe.colors.gray300,as:"span"},g("bmi.weightInput.desc"))),placeholder:g("pwg.placeholder.weight"),value:Number(a.weight),onChange:e=>{return t=String(e),u((e=>Object.assign(Object.assign({},e),{weight:!0}))),void x(t,(e=>{const t=Object.assign(Object.assign({},a),{weight:e});o&&o(t)}));var t},error:h.weight?"":s.weight,min:0,precision:1}))),e.createElement("div",{style:{display:"flex"}},e.createElement(cl,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${Q[c]}/${v}`,onClick:()=>{d(y)}},g("bmi.submit"))))},hl=({isSide:t,locale:a,bmrContent:n,isMobile:i,info:l,inputErrorMessage:r,onFormChange:o,onSubmit:s})=>{var c,d,m;const{t:p}=K();return e.createElement(Si,{"data-is-side":t},e.createElement(mi,{isSide:t,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||re.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(ut,null,e.createElement(Pi,{onSubmit:e=>e.preventDefault(),"data-is-side":t},e.createElement(Ci,null,e.createElement(gl,{info:l,locale:a,errorMessage:r,onChange:o,onClick:s,isSide:t})))))},ul=({locale:a,onSubmit:i,isSide:l,siteType:r})=>{const{t:o}=K(),[s,c]=t(new Date),[d,m]=t(28),[h,u]=t(7),b={cycle:d,periodDateStart:s,periodLength:h},v=n((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(bi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?e.createElement(gi,{label:o("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:fi(s),CustomInput:e.createElement(Ta,{onChange:e=>{c(e)},placeholder:"dd/mm/yyyy",pickedDate:s,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:Qe(new Date,-45),after:new Date},customInput:t=>e.createElement(Xe,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:s&&He(s).format(A)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Xe,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.lastPeriod.lastPeriodLabel")),value:fi(s),size:"md",name:"date",className:"due-date-input",CustomInput:e.createElement(Ta,{customInput:t=>e.createElement("input",Object.assign({},t,{type:"date",className:"due-date-input",value:fi(s)})),locale:a,pickedDate:s,displayDateFormat:mt,onChange:e=>{c(e)},disabledDays:{before:Qe(new Date,-45),after:new Date},placeholder:"Chọn ngày"})})),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":l},"marryBaby"===r?e.createElement(gt,{type:"bodytext-3",color:oe.mbColors.midGray},o("ovulationPage.cycleLength")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},o("ovulationPage.cycleLength")+" ",e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},o("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&e.createElement(p,{size:"s3",weight:"semiBold",color:oe.colors.gray600},d),e.createElement(pt,{containerStyle:{flex:1},min:21,max:45,step:1,value:d,onChange:m,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":l},"marryBaby"===r?e.createElement(gt,{type:"bodytext-3",color:oe.mbColors.midGray},o("ovulationPage.periodDuration")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},o("ovulationPage.periodDuration")+" ",e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},o("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&e.createElement(p,{size:"s3",weight:"semiBold",color:oe.colors.gray600},h),e.createElement(pt,{containerStyle:{flex:1},min:1,max:15,step:1,value:h,onChange:u,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),e.createElement("div",{style:{width:"100%",display:"flex"}},e.createElement(Te,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:v,onClick:()=>{localStorage.setItem("ovulationInfo",JSON.stringify(b)),i&&i({startDate:s,cycle:d,periodLength:h})},role:"button"},o("dueDatePage.lastPeriod.calculate"))))};var bl;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(bl||(bl={}));const vl=({locale:a,onSubmitOvulation:n,isSide:i,siteType:l})=>{const{t:r}=K(),[o,s]=t(bl.trackPeriod),c=[{label:r("ovulationPage.trackPeriod"),value:bl.trackPeriod},{label:r("ovulationPage.conceive"),value:bl.conceive},{label:r("ovulationPage.avoidPregnancy"),value:bl.avoidPregnancy}];return e.createElement(Ni,null,e.createElement(hi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===l?e.createElement(pi,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:c,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[o],onChange:e=>{s(e.value)}}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},r("ovulationPage.objectives")),e.createElement(ui,{"data-is-side":i},e.createElement(ht,{options:c,placeholder:r("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[o],onChange:e=>{s(e.value)}})))),e.createElement(ul,{siteType:l,locale:a,onSubmit:({startDate:e,cycle:t,periodLength:a})=>{n&&n({method:o,periodDateStart:e,cycle:t,periodLength:a})},isSide:i}))},yl=({onSubmitOvulation:t,locale:a,ovulationPageInfo:n,expertUrl:i,isSide:l=!1,siteType:r,isMobile:o})=>{var s;const{t:c}=K();return e.createElement(Si,{"data-is-side":l,"data-site":r},e.createElement(mi,{isSide:l,bannerUrl:re.getAssetPath("embedToolBannerPink.svg"),siteType:r,bannerColor:"marryBaby"===r&&oe.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||re.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:o}),e.createElement(Pi,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":l},e.createElement(vl,{siteType:r,locale:a,onSubmitOvulation:t,isSide:l})))},fl=({siteType:n,info:l,onChange:r,errorMessage:o={}})=>{const{t:s}=K(),[c,d]=t({weightBefore:!1,height:!1,weight:!1}),[m,p]=t(0),g=a(null);i((()=>{var e;p(null===(e=g.current)||void 0===e?void 0:e.clientHeight)}));const h=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},u=e=>{h(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});r&&r(t)}))},b=e=>{h(e,(e=>{d((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});r&&r(t)}))},v=e=>{h(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});r&&r(t)}))};return i((()=>{r&&r(Object.assign({},l))}),[]),i((()=>{d({weightBefore:!1,height:!1,weight:!1})}),[o]),"marryBaby"===n?e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(gi,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:e.createElement(Xe,{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==o?void 0:o.height,showErrorMessage:!1,onChange:b})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(gi,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:e.createElement(Xe,{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==o?void 0:o.height,showErrorMessage:!1,onChange:u})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(gi,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:e.createElement(Xe,{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==o?void 0:o.weight,showErrorMessage:!1,onChange:v})}))):e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(j,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:e.createElement("span",{style:{color:oe.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:`${oe.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:c.height?"":null==o?void 0:o.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:b})),e.createElement("div",{className:"input-form-pwg"},e.createElement(j,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:oe.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:g,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:`${oe.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weightBefore?"":null==o?void 0:o.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:u,value:null==l?void 0:l.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(j,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:oe.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:m},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:`${oe.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weight?"":null==o?void 0:o.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:v})))},xl=({locale:a,onClick:i,inputErrorMessage:l,pwgContent:r,onFormChange:o,info:s,isMobile:c,isSide:d=!1,siteType:m})=>{var g;const{t:h}=K(),[u,b]=t("notwins"),[v,y]=t({label:"1",value:1}),f=n((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:x}=yt(a),w=n((()=>x(O.PWG)),[x]);return e.createElement(Si,{"data-is-side":d,"data-site":m},e.createElement(mi,{siteType:m,bannerColor:"marryBaby"===m&&oe.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==r?void 0:r.featuredImage)||re.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:h("pregnancyWeightGain.heading"),medicalReview:{link:Et(null==r?void 0:r.reviewedBy),reviewer:null===(g=null==r?void 0:r.reviewedBy)||void 0===g?void 0:g.display_name,date:null==r?void 0:r.reviewedDate},isMobile:c,isSide:d}),e.createElement(ut,null,e.createElement(Pi,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":d},"marryBaby"!==m&&e.createElement(ki,{className:"hide-asking-mobile","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:oe.colors.gray600},className:"label"},h("pregnancyWeightGain.havingTwins")),e.createElement(Ti,{options:[{value:"twins",label:h("switchBtn.yes")},{value:"notwins",label:h("switchBtn.no")}],value:u,onChange:e=>b(e),className:"gender-selector",id:"twins-check",direction:"horizontal",size:"small"})),e.createElement(Ni,null,e.createElement(Di,{className:"input-section input-form-pwg","data-is-side":d},"marryBaby"===m?e.createElement(pi,{groupedWithLabel:h("pregnancyWeightGain.weekInput"),options:f,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:v,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:oe.colors.gray600}},h("pregnancyWeightGain.weekInput")),e.createElement(ht,{options:f,placeholder:String(v.label),id:"weight-gain-dropdown",size:"md",value:v,onChange:e=>y({label:e.label,value:e.value})}))),e.createElement(fl,{siteType:m,info:s,errorMessage:l,onChange:o})),"marryBaby"!==m&&e.createElement(ki,{className:"hide-asking-desk","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:oe.colors.gray600},className:"label"},h("pregnancyWeightGain.havingTwins")),e.createElement(Ti,{options:[{value:"twins",label:h("switchBtn.yes")},{value:"notwins",label:h("switchBtn.no")}],value:u,onChange:e=>b(e),className:"gender-selector",id:"twins-check-mobile",direction:"horizontal",size:"small"})),"marryBaby"===m&&e.createElement(aa,{name:"twins",label:h("pregnancyWeightGain.havingTwins"),checked:"twins"===u,siteType:"marryBaby",onChange:()=>{b("twins"===u?"notwins":"twins")},value:"twins"}),e.createElement(Bi,{"data-is-side":d,"data-site":m},e.createElement(Te,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${Q["marryBaby"===m?"vi-VN_MB":a]}/${w}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===m?"secondary":"primary",onClick:()=>i(u,v.value),role:"button"},h("dueDatePage.lastPeriod.calculate"))))))},wl=Re.div`
3217
+ flex: 1;
3218
+ `,El=Re.div`
3219
+ padding: 0 10px;
3220
+ `,kl=Re.div`
3221
+ display: flex;
3222
+ height: 80px;
3223
+ align-items: center;
3224
+ .calendar-month {
3225
+ font-size: 16px;
3226
+ flex: 1;
3227
+ text-align: center;
3228
+ strong {
3229
+ margin-left: 5px;
3230
+ }
3231
+ }
3232
+ ${Z.mbDown} {
3233
+ height: 70px;
3234
+ }
3235
+ `,Cl=Re.div`
3236
+ display: grid;
3237
+ grid-template-columns: repeat(7, 1fr);
3238
+ row-gap: 2px;
3239
+ `,Bl=Re(Cl)`
3240
+ margin-bottom: 8px;
3241
+ `;Re.div`
3242
+ height: 40px;
3243
+ width: 40px;
3244
+ display: flex;
3245
+ align-items: center;
3246
+ justify-content: center;
3247
+ `;const Nl=Re.div`
3248
+ font-size: 14px;
3249
+ display: flex;
3250
+ justify-content: center;
3251
+ align-items: center;
3252
+ color: 1px solid ${e=>e.theme.colors.gray800};
3253
+ font-weight: 300;
3254
+ `,Dl=Re.div`
3255
+ width: 18px;
3256
+ position: relative;
3257
+ &::before {
3258
+ content: '';
3259
+ position: absolute;
3260
+ inset: 16px 0 0 0;
3261
+ width: 1px;
3262
+ left: 50%;
3263
+ right: 50%;
3264
+ background: ${e=>e.theme.colors.neutral100};
3265
+ }
3266
+ `,$l=Re.div`
3267
+ margin: 0 auto;
3268
+ `,zl=Re.div`
3269
+ position: relative;
3270
+ `,Ll=Re(Cl)``,Pl=Re.div`
3271
+ position: relative;
3272
+ display: flex;
3273
+ justify-content: center;
3274
+ align-items: center;
3275
+ height: 34px;
3276
+ ${Z.mbUp} {
3277
+ height: 38px;
3278
+ }
3279
+ &[data-is-disabled='true'] {
3280
+ opacity: 0.3;
3281
+ }
3282
+ &[data-in-range='true']:not([data-is-from='true'][data-is-to='true']) {
3283
+ background-color: ${e=>e.theme.colors.gray100};
3284
+ }
3285
+ &:before {
3286
+ position: absolute;
3287
+ top: 0;
3288
+ bottom: 0;
3289
+ right: 0;
3290
+ background-color: ${e=>e.theme.colors.gray100};
3291
+ }
3292
+ &[data-is-from='true'][data-in-range='true'][data-is-to='false'] {
3293
+ background-color: transparent;
3294
+ &:before {
3295
+ content: '';
3296
+ left: 50%;
3297
+ right: 0;
3298
+ }
3299
+ }
3300
+
3301
+ &[data-is-to='true'][data-in-range='true'][data-is-from='false'],
3302
+ &:hover[data-in-range='true']:is([data-has-range='false'] &) {
3303
+ background-color: transparent;
3304
+ &:before {
3305
+ content: '';
3306
+ left: 0;
3307
+ right: 50%;
3308
+ }
3309
+ }
3310
+ `,Sl=Re.div`
3311
+ position: relative;
3312
+ font-weight: 600;
3313
+ ${Z.mbDown} {
3314
+ width: 32px;
3315
+ height: 32px;
3316
+ }
3317
+ ${Z.mbUp} {
3318
+ width: 36px;
3319
+ height: 36px;
3320
+ }
3321
+ display: flex;
3322
+ justify-content: center;
3323
+ align-items: center;
3324
+ cursor: pointer;
3325
+ [data-is-disabled='true'] & {
3326
+ cursor: not-allowed;
3327
+ }
3328
+ line-height: 1;
3329
+ color: 1px solid ${e=>e.theme.colors.gray800};
3330
+ [data-is-selected='true'] &,
3331
+ [data-is-today='true'] &,
3332
+ [data-is-selected='false']:hover & {
3333
+ border-radius: 32px;
3334
+ }
3335
+ [data-is-selected='true'] & {
3336
+ background-color: ${e=>e.theme.colors.primaryBase};
3337
+ color: white;
3338
+ }
3339
+ [data-is-selected='false']:hover & {
3340
+ background-color: ${e=>e.theme.colors.primary50};
3341
+ }
3342
+ [data-is-today='true'][data-is-selected='false'] & {
3343
+ background-color: transparent;
3344
+ border-radius: 32px;
3345
+ border: 1px solid ${e=>e.theme.colors.primaryBase};
3346
+ }
3347
+ `;const Tl={"en-PH":Bt,"vi-VN":Dt,"zh-TW":$t,"id-ID":Nt};function Ml(a){const{value:i={from:null,to:null}}=a,[l,r]=t(null),{isMobile:o}=ze(),[s,c]=t((()=>i)),[d,m]=t((()=>{var e;return tt(null!==(e=i.from)&&void 0!==e?e:new Date)})),p=n((()=>at(d,1)),[d]);const g=Object.assign(Object.assign({},a),{goToNextMonth:function(){m((e=>at(e,1)))},goToPreviousMonth:function(){m((e=>nt(e,1)))},range:s,setRange:c,hoverDay:l,setHoverDay:r});return e.createElement(e.Fragment,null,e.createElement(Il,Object.assign({},g,{date:d})),!o&&e.createElement(Dl,null),!o&&e.createElement(Il,Object.assign({},g,{date:p})))}function Il({date:t,range:a,setRange:l,onChange:r,goToPreviousMonth:o,goToNextMonth:s,minDate:c,maxDate:d,close:m=(()=>{}),autoClose:p=!1,hoverDay:g,setHoverDay:h}){const{locale:u}=K(),b=n((()=>{var e;return null!==(e=Tl[u])&&void 0!==e?e:Tl["en-PH"]}),[u]),v=n((()=>Je(t,"MMMM",{locale:b})),[t,b]),y=n((()=>b?[1,2,3,4,5,6,0].map((e=>b.localize.day(e,{width:"narrow"}))):[]),[b]);function f(t,n){if(null===t)return e.createElement(Pl,{key:`idx-${n}`,"data-empty":"true"});const i=t.getDate(),r=lt(t),o=!!a.from&&rt(a.from,t),s=!!a.to&&rt(a.to,t),u=o||s;let b=!1;null!==g&&a.from&&et(a.from,g)&&!a.to?b=ot(t,{start:a.from,end:g}):a.from&&a.to&&(b=ot(t,{start:a.from,end:a.to}));let v=!1;return c&&d?v=!ot(t,{start:c,end:d}):c?v=et(t,c):d&&(v=st(t,d)),e.createElement(Pl,{key:i,"data-is-today":r,"data-is-past":!r&&ct(t),"data-is-selected":u,"data-is-disabled":v,"data-in-range":b,"data-is-from":o,"data-is-to":s,onMouseEnter:()=>{h(t)},onMouseLeave:()=>h(null),onClick:()=>{v||l((e=>(p&&a.from&&!a.to&&m(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?et(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(Sl,{onClick:()=>{}},e.createElement("p",null,i)))}return i((()=>{a.from&&a.to&&r(a)}),[a]),e.createElement(wl,{className:"calendar-wrapper"},e.createElement(kl,null,e.createElement(Ye,{onClick:o,size:"md",color:"ghost",icon:e.createElement("img",{src:re.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),e.createElement("div",{className:"calendar-month"},v,e.createElement("strong",null,Je(t,"yyyy"))),e.createElement(Ye,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:re.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),e.createElement(El,null,e.createElement("div",null,e.createElement(Bl,null,y.map(((t,a)=>e.createElement(Nl,{key:`${t}-${a}`},t))))),e.createElement("div",null,function(){const n=t.getFullYear(),i=t.getMonth(),l=it(t),r=[];for(let e=1;e<=l;e++)r.push(new Date(n,i,e));const o=r[0]?r[0].getDay():0;if(1!==o){const e=0===o?6:o-1;for(let t=0;t<e;t++)r.unshift(null)}return e.createElement(zl,{key:`month-${i}`,"data-month-index":i,"data-has-range":Boolean(a.from&&a.to)},e.createElement($l,null,e.createElement(Ll,null,r.map(f))))}())))}const jl=Re.div`
3348
+ display: block;
3349
+ position: relative;
3350
+ width: 270px;
3351
+ input {
3352
+ pointer-events: none;
3353
+ caret-color: transparent;
3354
+ }
3355
+ ${Z.mbDown} {
3356
+ width: 100%;
3357
+ }
3358
+ `,Al=Re.div`
3359
+ display: flex;
3360
+ position: absolute;
3361
+ top: 46px;
3362
+ left: 0;
3363
+ width: 684px;
3364
+ border: 1px solid ${e=>e.theme.colors.gray200};
3365
+ filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
3366
+ drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
3367
+ drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
3368
+ border-radius: ${e=>e.theme.borderRadius};
3369
+ background-color: white;
3370
+ z-index: 100;
3371
+ padding-bottom: 16px;
3372
+ align-items: stretch;
3373
+ user-select: none;
3374
+ ${Z.mbDown} {
3375
+ width: 100%;
3376
+ }
3377
+ `;function Ol({inputSize:i="md",name:l="date-range-picker",value:r,minDate:o,maxDate:s,onChange:c,className:d,autoClose:m=!1}){r||(r={from:null,to:null});const[p,g]=t(!1);function h(){g(!1)}const u=a(null);function b(e){c&&c(e)}function v(e){return Je(e,"dd/MM/yyyy")}Ct(u,(()=>{h()}));const y=n((()=>r.from&&r.to?rt(r.from,r.to)?v(r.from):`${v(r.from)} - ${v(r.to)}`:""),[r.from,r.to]);return e.createElement(jl,{className:[d,p&&"focused"].filter(Boolean).join(" "),ref:u},e.createElement("label",{htmlFor:l},e.createElement(j,{size:i,value:y,name:l,actionIcon:e.createElement("img",{src:re.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>g(!0)})),p?e.createElement(Al,{onMouseDown:e=>{e.stopPropagation()}},e.createElement(Ml,{value:r,onChange:b,minDate:o,maxDate:s,close:h,autoClose:m})):null)}var _l="WUqzfRb",Fl="MnVGtSY",Hl="NclbhXQ";const Rl=({LinkComponent:t,page:a,isLast:n,onChangePage:i})=>{const{label:l,value:r,isDropdown:o,dropdownItems:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m}=a;return o?e.createElement(ht,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:i,className:"collapsed-breadcrumb"}):e.createElement("div",{className:Hl,title:"string"!=typeof l?r:l,"data-last":n},t&&e.createElement(t,{"data-event-category":c,"data-event-action":d,"data-event-label":m,href:r||"#"},l))},Wl=({className:t,pages:a,size:i,LinkComponent:r="a",onChangePage:o,separator:s})=>{const c=n((()=>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":i,className:`${_l} ${t||""}`},c.map(((t,a)=>{const n=a+1===c.length;return e.createElement(l,{key:a},e.createElement(Rl,{LinkComponent:r,page:t,isLast:n,onChangePage:o}),!n&&(t.separator||s||e.createElement("div",{className:Fl,"data-size":i})))})))},Ul=Re.div`
3378
+ display: flex;
3379
+ gap: 20px;
3380
+ width: 100%;
3381
+ align-items: center;
3382
+ justify-content: center;
3383
+ .icon-group {
3384
+ display: flex;
3385
+ align-items: center;
3386
+ gap: 10px;
3387
+ a,
3388
+ svg {
3389
+ width: 32px;
3390
+ height: 32px;
3391
+ }
3392
+ .share {
3393
+ width: 32px;
3394
+ height: 32px;
3395
+ padding: 8px;
3396
+
3397
+ &:hover {
3398
+ background-color: ${e=>e.theme.colors.neutral50};
3399
+ }
3400
+
3401
+ svg {
3402
+ margin: 0;
3403
+ width: 16px;
3404
+ height: 16px;
3405
+ }
3406
+ }
3407
+ }
3408
+ `,Vl=()=>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"})),Gl=({url:t,onCopied:a,locale:i,siteType:l})=>{const{t:r}=K(),o=zt(t||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(i))),s=n((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Ul,null,e.createElement(p,{size:"p3",color:oe.colors.gray800},r("shareContainer.title")),e.createElement("div",{className:"icon-group"},o.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(Ye,{theme:l,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(Vl,null),onClick:()=>ce(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})))},Zl=Re(wt)`
3409
+ padding-bottom: 24px;
3410
+ .share-container {
3411
+ display: flex;
3412
+ flex-direction: column;
3413
+ gap: 24px;
3414
+ }
3415
+ .icon-group {
3416
+ margin-top: 12px;
3417
+ display: flex;
3418
+ gap: 16px;
3419
+ img {
3420
+ border-radius: 8px;
3421
+ }
3422
+ }
3423
+ .input-group {
3424
+ margin-top: 8px;
3425
+ display: flex;
3426
+ gap: 8px;
3427
+ button {
3428
+ padding: 10px;
3429
+ &:hover {
3430
+ background-color: ${e=>e.theme.colors.neutral50};
3431
+ }
3432
+ }
3433
+ svg {
3434
+ margin: 0;
3435
+ }
3436
+ a,
3437
+ svg:not(.copy) {
3438
+ width: 32px;
3439
+ height: 32px;
3440
+ }
3441
+ }
3442
+ `,ql=()=>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"})),Yl=t=>{var{open:a,title:n,onClose:l,onCopied:r,onShared:s,url:c,locale:d}=t,m=se(t,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:g}=K(),h=o((()=>ce(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==r||r()}))),[c,r]),u=zt(c||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(d)));return i((()=>{a&&navigator.share&&navigator.share({title:null!=n?n:"Read This Post",url:c}).then((()=>{null==s||s()})).catch((()=>{null==l||l()}))}),[c,n,s,a]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Zl,Object.assign({title:g("share.title"),onClose:l,open:a,placement:"bottom"},m),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(p,{weight:"semiBold",size:"s3",color:oe.colors.gray600},g("share.title")),e.createElement("div",{className:"icon-group"},u.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:oe.colors.gray600},g("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Xe,{name:"link",size:"md",value:c,isDisabled:!0}),e.createElement(Ye,{size:"md",type:"button",color:"tertiary",icon:e.createElement(ql,null),onClick:h})))))},Xl=Re.div`
3443
+ position: fixed;
3444
+ z-index: 48;
3445
+ bottom: 0;
3446
+ left: 50%;
3447
+ width: fit-content;
3448
+ max-width: 100%;
3449
+ background: none;
3450
+ transform: translateX(-50%);
3451
+ .close-sticky-button {
3452
+ position: absolute;
3453
+ display: flex;
3454
+ width: 16px;
3455
+ height: 16px;
3456
+ align-items: center;
3457
+ justify-content: center;
3458
+ background: #bfbfbf;
3459
+ border-radius: 50%;
3460
+ color: white;
3461
+
3462
+ cursor: pointer;
3463
+ font-size: 12px;
3464
+ line-height: 12px;
3465
+ transform: translate(50%, -50%);
3466
+ top: 0;
3467
+ right: 0;
3468
+ }
3469
+ opacity: 0;
3470
+ pointer-events: none;
3471
+ &[data-visible='true'] {
3472
+ opacity: 1;
3473
+ pointer-events: auto;
3474
+ }
3475
+ `,Kl=Re.div`
3476
+ display: flex;
3477
+ justify-content: center;
3478
+ align-items: center;
3479
+ flex-direction: column;
3480
+ max-width: 100%;
3481
+ width: fit-content;
3482
+ height: fit-content;
3483
+ margin-inline: auto;
3484
+ /* margin: 1rem auto; */
3485
+ &[data-no-wrapper='false'] {
3486
+ border: 1px solid ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
3487
+ background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
3488
+ }
3489
+ &[data-no-wrapper='true'] {
3490
+ line-height: 0;
3491
+ }
3492
+ &[data-header-bottom='true'] {
3493
+ flex-direction: column-reverse;
3494
+ background: none;
3495
+ border: none;
3496
+ }
3497
+ `,Jl=Re.div`
3498
+ /* background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}}; */
3499
+ width: 100%;
3500
+ padding: 0 5px 1.5px;
3501
+ display: flex;
3502
+ align-items: center;
3503
+ justify-content: center;
3504
+ gap: 5px;
3505
+ text-transform: capitalize;
3506
+ img {
3507
+ height: 12px;
3508
+ width: 12px;
3509
+ max-width: 12px;
3510
+ max-height: 12px;
3511
+ }
3512
+ &[data-header-bottom='true'] {
3513
+ background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
3514
+ }
3515
+ span {
3516
+ font-size: 10px;
3517
+ line-height: 12px;
3518
+ color: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.gray400}};
3519
+ font-weight: 400;
3520
+ }
3521
+ `,Ql=Re.div`
3522
+ background-color: white;
3523
+ background-image: url(${re.getAssetPath("close-blue.svg")});
3524
+ background-repeat: no-repeat;
3525
+ background-size: 10px;
3526
+ background-position: center;
3527
+ width: 12px;
3528
+ height: 12px;
3529
+ position: absolute;
3530
+ top: 1px;
3531
+ right: 1px;
3532
+ cursor: pointer;
3533
+ `,er={},tr=e=>{if(er[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([er[e]]),delete er[e]}))}},ar=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],nr=r(c((function({className:n,adUnitPath:l,size:r,divId:o,pos:s,sizeMapping:c,contentId:d,isHidden:m,hideIfHasSubot:p,isSticky:g,refreshInterval:h,customTargetings:u,style:b,adDefaultSize:v,noWrapper:y,showCloseBtn:f,onCloseAd:x,headerBottom:w,wrapperProps:E,locale:k,isMarryBaby:C},B){const N=h||(k===Fe.Vietnam&&s.some((e=>ar.includes(e)))?30:void 0),{t:D}=K(),$=a(null),z=a(null),L=a(N);L.current=N;const[P,S]=t(!1),T=()=>{L.current&&(null!==z.current&&clearInterval(z.current),z.current=window.setInterval((()=>{window.googletag=window.googletag||{cmd:[]};const{googletag:e}=window;e.cmd.push((function(){er[o]&&e.pubads().refresh([er[o]])}))}),1e3*L.current))};if(i((()=>()=>{tr(o),z.current&&clearInterval(z.current)}),[]),i((()=>{T()}),[N]),i((()=>{m||(({contentId:e,adUnitPath:t,size:a,divId:n,pos:i,sizeMapping:l,hideIfHasSubot:r,customTargetings:o,onSuccess:s})=>{if(!n||!document.getElementById(n))return console.error("divId is required");tr(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{o&&Object.keys(o).forEach((e=>{e&&(null==p||p.setTargeting(e,o[e]))}))}catch(e){console.error(e)}er[n]=p,p.setTargeting("Pos",i),p.addService(c.pubads()),m&&p.setTargeting("Content_ID",m),l&&p.defineSizeMapping(l),r&&document.getElementById("subot--container")&&p.setTargeting("chatbot",!0),c.display(n),null==s||s()}}))})({contentId:d,adUnitPath:l,size:r,divId:o,pos:s,sizeMapping:c,hideIfHasSubot:p,customTargetings:u,onSuccess:T})}),[m]),P)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:B,id:o}),f&&e.createElement(Ql,{onClick:()=>{null==x||x(),S(!0)}}));if(g)return M;const I=v?v[0]:r?Array.isArray(r[0])?r[0][0]:r[0]:void 0,j=v?v[1]:r?Array.isArray(r[0])?r[0][1]:r[1]:void 0;return e.createElement(de,Object.assign({},E,{className:n}),e.createElement(Kl,{ref:$,className:n,style:b,"data-no-wrapper":!!y,"data-header-bottom":!!w},y?M:e.createElement(e.Fragment,null,e.createElement(Jl,{"data-header-bottom":!!w},e.createElement("img",{src:C?re.getAssetPath("adsIcon-mb.svg"):re.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),e.createElement("span",null,D("adBanner.title"))),e.createElement("div",{style:{minWidth:I||"100%",minHeight:j||"100%",position:"relative"}},M))))})),((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),ir=({className:n,adUnitPath:l,divId:r,isMobile:o,contentId:s,customTargetings:c,locale:d,isMarryBaby:m})=>{const[p,g]=t(!0),[h,u]=t(!1),[b,v]=t(!0),y=a(null),f=a(Lt()),x=a(null),w=a(),E=a();return i((()=>{const e=()=>{E.current&&clearTimeout(E.current),E.current=setTimeout((()=>{var t;document.getElementById("subot--container")?g(!0):(g(!1),(null===(t=y.current)||void 0===t?void 0:t.clientHeight)?v(!1):v(!0)),e()}),4e3)};return e(),()=>{w.current&&clearTimeout(w.current),E.current&&clearTimeout(E.current)}}),[]),p||h?null:e.createElement(Xl,{key:o?"mobile":"desktop",ref:x,className:n,"data-visible":!b},l&&e.createElement(nr,{wrapperProps:{m:0},ref:y,adUnitPath:l,size:o?[[320,50],[320,100]]:[728,90],divId:(r||"div-gpt-ad-sticky")+(o?"-mobile":"")+s+String(f.current),pos:["Sticky"],contentId:s,hideIfHasSubot:o,customTargetings:c,adDefaultSize:o?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>u(!0),refreshInterval:60,locale:d,isMarryBaby:m}))},lr=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:re.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:re.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:re.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];var rr;!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"}(rr||(rr={}));const or={DUE_DATE:rr.DUE_DATE,BMI:rr.BMI,BMR:rr.BMR,OVULATION:rr.OVULATION,IFRAME:rr.IFRAME,PWG:rr.PWG,THR:rr.THR,BABY_VACCINE:rr.BABY_VACCINE,BABY_GROWTH:rr.BABY_GROWTH,BABY_POOP:rr.BABY_POOP},sr={[or.DUE_DATE]:re.getAssetPath("health-tools/due-date-icon.svg")};var cr,dr,mr,pr;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(cr||(cr={})),function(e){e.Option="option"}(dr||(dr={})),function(e){e.Button="button",e.Checkbox="checkbox"}(mr||(mr={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(pr||(pr={}));const gr={pregnancy:cr.Pregnant,parenting:cr.Parenting},hr={[cr.Pregnant]:"pregnant",[cr.Parenting]:"parent"},ur=e=>({[or.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:or.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[or.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:or.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[or.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:or.BABY_GROWTH},[ne.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:re.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:re.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:ne.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),br=d({}),vr=t=>{var a=se(t,[]);const{locale:n}=K(),{type:i,isMobile:l,currentUrl:r,isMarketing:o,isLoggedIn:s,setShouldAcquisitionModalOpen:c}=m(br);return e.createElement(xe,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>ce(void 0,void 0,void 0,(function*(){const e=o?Pt(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;s?null==c||c():window.location.href=`${St(n)}/?returnUrl=${encodeURIComponent(e)}`})),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":r,className:"pointer-event-child-none"},a),e.createElement(Ie,{src:o?re.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_Marketing.png`):re.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_${i}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},yr="api/v1/categories?site={website_url}",fr="api/v1/subscription?site={website_url}",xr="api/v1/categories?site={website_url}";var wr=be((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:ge(32),padding:`${ge(6)} ${ge(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const Er=({heading:t,description:a,thumbnail:n={desktop:"",mobile:""},hideDescOnMobile:i,children:l})=>{const{isMobile:r,minHeight:o}=m(br);return e.createElement(de,{sx:()=>({borderRadius:ge(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},e.createElement(de,{sx:e=>({minHeight:ge(o),borderRadius:"inherit",background:`url(${r?n.mobile:n.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${ge(24)} ${ge(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${ge(22)} ${ge(32)}`}})},e.createElement(ve,{spacing:ge(16)},e.createElement(ve,{spacing:ge(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},t&&e.createElement(S,{tag:"h4"},t),!(i&&r)&&a&&e.createElement(p,{size:"p4"},a)),e.createElement(de,null,l))))},kr=t=>{const{styleType:a=mr.Button,items:i=[],buttonProps:l,styles:r,submitBtnTracking:s}=t,{classes:c}=wr(void 0,{name:"PremiumBannerWithOptions",styles:r}),{t:d,locale:p}=K(),{surveyType:h,articleId:u,handleClickOption:b,hasPremiumBanner:v,source:y,isMobile:f,setShowPNModal:x}=m(br),w=n((()=>v?i:i.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean)),[i]),{getHealthToolLink:E}=yt(p),k=Tt({initialValues:{bannerOptions:[]}}),C=e=>ce(void 0,void 0,void 0,(function*(){return yield _(F(H.HEALTH_TOOL.CREATE,{_locale:p,type:hr[h]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:u,source:y}})})),B=o((()=>e.createElement(pe,{gap:ge(8),className:c.wrapper},w.map(((t,a)=>e.createElement(de,{key:String(a),component:t.isLink?"a":"div",href:t.isRiskScreener?`https://${Q[p]}/bot/${ie[p][t.activeTool]}/`:t.isLink?E(t.activeTool):void 0},e.createElement(Te,Object.assign({className:c.button,classNames:{label:c.buttonLabel},size:"sm"},t.tracking,l,{onClick:()=>{t.isLink||(t.isPNBtn&&x(!0),C(t.value),b(t.value))}}),t.label)))))),[w,k]),N=o((()=>e.createElement(pe,null,e.createElement(pe,{align:"center",gap:ge(24),sx:e=>({background:"white",borderRadius:ge(8),padding:ge(4),[e.fn.largerThan("sm")]:{paddingLeft:ge(16)}})},e.createElement(je.Group,Object.assign({},k.getInputProps("bannerOptions",{type:"checkbox"})),e.createElement(pe,{gap:ge(16)},w.map(((t,a)=>e.createElement(je,{key:String(a),value:t.value,label:t.label,styles:{label:{cursor:"pointer"}}}))))),e.createElement(Te,Object.assign({size:"sm"},s,l,{disabled:0===k.getInputProps("bannerOptions").value.length,leftIcon:f?e.createElement(g.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=k.getInputProps("bannerOptions").value;C(e.join("|")),b(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:ge(38),minWidth:"auto",padding:0}}})}),!f&&d("pnBanner.submit"))))),[w,k]);return e.createElement(Er,Object.assign({},t),a===mr.Button?B():a===mr.Checkbox?N():null)},Cr=t=>{var a,i;const{t:l}=K(),{heading:r,description:o,thumbnail:s,btnLabel:c,value:d,isRiskScreener:g,hideDescOnMobile:h,dataEventAction:u}=t,{locale:b}=K(),{isMobile:v}=m(br),{getHealthToolLink:y,allTools:f}=yt(b),x=g?"mainBanner":"toolBanner",w=n((()=>{const t=g?`https://${J?"":"discover."}${Q[b]}/bot/${ie[b][d]}`:y(d);return e.createElement("a",{href:t},e.createElement(Te,{size:"sm","data-event-category":"Focused Audience","data-event-action":u,"data-event-label":t},c||l("pnBanner.caclNow")))}),[f]);return"mainBanner"===x?e.createElement(Er,Object.assign({},Object.assign(Object.assign({},t),{thumbnail:t.thumbnail})),w):e.createElement(pe,{gap:ge(7),align:"center",justify:"space-between",sx:e=>({borderRadius:ge(8),background:e.colors.blue[0],minHeight:ge(180),padding:`${ge(24)} ${ge(16)}`,[e.fn.largerThan("sm")]:{padding:`${ge(34)} ${ge(32)}`}})},e.createElement(ve,{spacing:ge(12)},e.createElement(ve,{spacing:ge(4)},r&&e.createElement(S,{tag:"h4"},r),!(v&&h)&&o&&e.createElement(p,{size:"p4"},o)),e.createElement(pe,{gap:ge(8),sx:{button:{minWidth:ge(120)}}},w)),e.createElement(pe,{align:"center",justify:"center",sx:e=>({width:ge(96),height:ge(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:ge(112),height:ge(112)},img:{maxWidth:ge(64),[e.fn.largerThan("sm")]:{maxWidth:ge(73)}}})},e.createElement("img",{alt:"health-tool-icon",src:s||(null===(i=null===(a=f.filter((e=>e.template===d)))||void 0===a?void 0:a[0])||void 0===i?void 0:i.icon)||sr[d]||"",loading:"lazy"})))},Br=()=>{var t,a,n;const{t:i}=K(),{state:l,Outside:r}=m(br);return(null==l?void 0:l.action)===pr.ShowTool?e.createElement(r,null,ur(i)[null===(t=null==l?void 0:l.props)||void 0===t?void 0:t.value]?e.createElement(Cr,Object.assign({},ur(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)===pr.ShowOptionBanner?e.createElement(r,null,e.createElement(kr,Object.assign({},null==l?void 0:l.props))):null},Nr=a=>{var{isMobile:n,children:i,desktopBanner:l=re.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:r=re.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:o={width:937,height:536},mobileBannerRatio:s={width:750,height:480},desktopBannerRatio:c={width:420,height:536},closeProps:d}=a,m=se(a,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:p,height:h}=Ve(),u=(h<=667?190:265)+p*s.height/s.width+74,[b,v]=t(!1);return e.createElement(It,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:ge(o.width),width:"100%",height:"100%",maxHeight:ge(o.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(de,{sx:{position:"relative",height:"100%"},onTouchStart:()=>v(!0)},e.createElement(de,{className:"mobile-template",sx:{position:"absolute",height:100*(b?1:u/h)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},e.createElement(de,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:b?0:ge(12),borderTopRightRadius:b?0:ge(12)}},e.createElement(de,{sx:{height:"calc(100% - 74px)",background:`url(${r})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},e.createElement(we,Object.assign({leftIcon:e.createElement(g.Close,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:ge(10)}},d,{onClick:()=>null==m?void 0:m.onClose()})),e.createElement(Ee,{ratio:(null==s?void 0:s.width)/(null==s?void 0:s.height),w:"100%"}),e.createElement(de,{sx:{padding:`${ge(28)} ${ge(16)} ${ge(16)}`,background:"white"}},i))))):e.createElement(Ee,{className:"desktop-template",ratio:o.width/o.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},e.createElement(de,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:ge(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:ge(8),borderBottomLeftRadius:ge(8),height:"100%",display:"block"}}),e.createElement(de,{sx:{position:"relative",height:"100%",width:(o.width-c.width)/o.width*100+"%"}},e.createElement(Te,Object.assign({unstyled:!0,leftIcon:e.createElement(g.Close,null)},d,{onClick:()=>null==m?void 0:m.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),e.createElement(de,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${ge(40)} ${ge(24)} 0`}},i)))))},Dr="user/subscription",$r=d({}),zr=t=>{var{value:a,name:n}=t,i=se(t,["value","name"]);return e.createElement(Ae,Object.assign({value:a,withIcon:!0},i,{buttonProps:{styles:()=>({leftIcon:{marginRight:ge(6)},root:{paddingLeft:ge(10),paddingRight:ge(10)}})}}),n)},Lr=({topicsGroup:a,onTopicChange:n,isBlock:l=!1,selectedTopics:r=[],inputProps:o,labelProps:s,maxSelect:c=5,hasScroll:d,readonly:g})=>{const{action:{pushNotifications:h}}=m(R),u=At(a.map((e=>e.topics||[]))),{t:b}=K(),[v,y]=t([]);i((()=>{y(r)}),[r.length]),i((()=>{null==n||n(v)}),[v]);const f=e=>{e.length>5?h({type:"danger",title:b("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:b("pnTopicSection.maxSelectError.desc")}):!g&&y((()=>u.filter((t=>e.some((e=>t.catId===e))))))};return e.createElement(ve,{spacing:12},a.map(((t,a)=>e.createElement(ve,{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(ke,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},e.createElement(de,{w:800},e.createElement(Ce.Group,Object.assign({value:v.map((e=>e.catId)),multiple:!0},o,{onChange:f}),e.createElement(pe,{gap:8,wrap:"wrap"},t.topics.map((a=>e.createElement(zr,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)))))))):e.createElement(Ce.Group,Object.assign({value:v.map((e=>e.catId)),multiple:!0},o,{onChange:f}),e.createElement(pe,{gap:8,wrap:"wrap"},t.topics.map((a=>a.catId?e.createElement(zr,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)):e.isValidElement(a.component)?a.component:null))))))))},Pr=t=>{var{heading:a,children:n,stickyActions:i}=t,l=se(t,["heading","children","stickyActions"]);const{isMobile:r}=m($r),o=e.createElement(ve,{spacing:ge(24),sx:{height:"100%"}},e.createElement(S,{tag:"h4",style:{textAlign:"center"}},a),e.createElement(de,null,n));return e.createElement(de,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},r?o:e.createElement(ke,Object.assign({className:"layout-body",h:i?"calc(100% - 90px)":"100%"},l),o),i&&e.createElement(pe,{gap:ge(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:ge(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${ge(24)} 0`}})},i))},Sr=()=>{const{t:a,locale:l}=K(),{data:{userInfo:r},action:{pushNotifications:o}}=m(R),s=null==r?void 0:r.id,{currentUrl:c,isMobile:d,pnSuggestCategory:h=[],nextStep:u,formValues:b,setFormValues:v,onSubmit:y,submitLoading:f,selectCategory:x,setCategoryLibs:w,setSelectCategory:E,maxSelectCategory:k}=m($r),C=h.map((e=>e.catId)),B=Tt({validate:{name:Mt(a("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},b),{fitnessTopics:C})}),[N,D]=t([]),[$,z]=t([]);i((()=>{ce(void 0,void 0,void 0,(function*(){var e;try{const t=yield _(W(xr,{_locale:l}),"get"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!C.includes(e.catId)));D(h),z(a),w([...h,...a])}catch(e){console.log(e)}}))}),[]),i((()=>{s&&B.setFieldValue("name",(null==r?void 0:r.name)||"")}),[s]);const L=()=>{""!==B.getInputProps("name").value?(v(B.getTransformedValues()),u()):B.validateField("name")},P=n((()=>e.createElement(Te,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:c,leftIcon:e.createElement(g.Plus,{size:16,color:"#262626",useCurrentColor:!0}),onClick:L,styles:e=>({root:{borderRadius:ge(6),padding:"2px 15px",height:ge(40)},label:{fontSize:ge(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:ge(12),lineHeight:ge(16),height:ge(40)}},leftIcon:{marginRight:"5px"}})},e.createElement(p,{size:d?"p3":"p4"},a("home.seeMore")))),[B]);return i((()=>{B.setFieldValue("fitnessTopics",x.map((e=>e.catId)))}),[x]),e.createElement("form",{style:{height:"100%"},onSubmit:B.onSubmit((e=>{if(0===x.length)return o({type:"danger",title:a("newsletter.error.minTitle"),message:a("newsletter.error.minCotennt")}),!1;v(e),null==y||y(e.name)}))},e.createElement(Pr,{heading:a("healthToolPNModal.heading"),stickyActions:e.createElement(e.Fragment,null,e.createElement(Te,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:c,loading:f,sx:{maxWidth:ge(240)}},a("healthToolPNModal.register")))},e.createElement(ve,{spacing:ge(16)},e.createElement(Me,Object.assign({label:a("newsletter.welcome.description")},B.getInputProps("name"))),e.createElement(Lr,{topicsGroup:[...0===h.length&&0===$.length?[{topics:[{component:P}]}]:[],...h.length>0?[{label:a("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...h,...0===$.length?[{component:P}]:[]]}]:[],...$.length>0?[{label:a("healthToolPNModal.findMore.chooseFav"),topics:[...$,...$.length>0?[{component:P}]:[]]}]:[]],selectedTopics:[...N],labelProps:{size:d?"p3":"p4",color:"gray.6"},onTopicChange:E,maxSelect:k}))))},Tr=c((function(t,a){var{label:n}=t,i=se(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(ue,{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)))})),Mr=c((function(t,a){var{label:n}=t,i=se(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(p,{size:"p3"},n))})),Ir=({history:t,onDelete:a})=>e.createElement(pe,{wrap:"wrap",gap:8},Ot(t,"catId").map((t=>e.createElement(Be,{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 ${Oe.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},e.createElement(p,{size:"p4"},t.localName))))),jr=({topics:a,onTopicChange:n,isBlock:l=!1,selectedTopics:r,labelProps:o,maxSelect:s=5})=>{const{action:{pushNotifications:c}}=m(R),[d,g]=t([]),{t:h}=K();i((()=>{g(r)}),[r.length]),i((()=>{n(d)}),[d]);return a&&0!==a.length?e.createElement(ve,{spacing:12,px:16,mx:-16},e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},o),h("pnTopicSection.recentView")),e.createElement(Ce.Group,{value:d.map((e=>e.catId)),onChange:e=>{l&&d.length<e.length?c({type:"danger",title:h("pnTopicSection.maxSelectError.title",{maxSelect:s}),message:h("pnTopicSection.maxSelectError.desc")}):g((()=>a.filter((t=>e.some((e=>t.catId===e))))))},multiple:!0},e.createElement(pe,{gap:8,wrap:"wrap"},a.map(((t,a)=>e.createElement(zr,{key:a,value:t.catId,name:t.localName,isBlock:l})))))):null},Ar=t=>{var{topic:a,active:n,onClick:i}=t,l=se(t,["topic","active","onClick"]);return e.createElement(de,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:ge(130),[e.fn.largerThan("sm")]:{minHeight:ge(138)}}),onClick:()=>i(a,n)},l),n&&e.createElement(de,{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(de,{sx:{borderRadius:"8px"}},e.createElement(Se,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},e.createElement(de,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||""))},Or=({topics:n,selectedTopics:l=[],onTopicChange:r,isBlock:o=!1,labelProps:s,pushNotifications:c,maxSelect:d=5})=>{const{t:m}=K(),[g,h]=t([]),u=(e,t)=>{if(t)h((t=>t.filter((t=>t.catId!==e.catId))));else{if(o)return void c({type:"danger",title:m("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:m("pnTopicSection.maxSelectError.desc")});h((t=>[...t,e]))}};i((()=>{h(l)}),[l.length]),i((()=>{r(g)}),[g]);const[b,v]=t(!1),[y,f]=t(0),[x,w]=t(0),E=a(null),k=()=>{v(!1)};return e.createElement(ve,{spacing:10},e.createElement(pe,{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(de,null,e.createElement(ke,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:E,viewportProps:{onMouseDown:e=>{e.preventDefault(),E.current&&(v(!0),f(e.pageX-E.current.offsetLeft),w(E.current.scrollLeft))},onMouseUp:k,onMouseLeave:k,onMouseMove:e=>{if(e.preventDefault(),!b||!E.current)return;const t=2*(e.pageX-E.current.offsetLeft-y);E.current.scrollLeft=x-t}},styles:{viewport:{paddingBottom:16}}},e.createElement(de,{w:{base:112*n.length+8*(n.length-1)+10}},e.createElement(pe,{gap:8},n.map(((t,a)=>e.createElement(Ar,{key:a,topic:t,onClick:u,active:g.some((e=>e.catId===t.catId)),w:{base:112}}))))))))},_r=l=>{var{isLoggedIn:r,maxSelect:o=5,values:s=[],labelProps:c,onChange:d}=l,g=se(l,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:h}}=m(R),[u,b]=t(""),{t:v,locale:y}=K(),f=a(null),[x,w]=t([]),[E,k]=t([]),[C,B]=t([]),[N,D]=t([]),[$,z]=t(null),[L,P]=t([]);i((()=>{ce(void 0,void 0,void 0,(function*(){var e,t;const a=yield _(W(yr,{_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=Ot([...n,...i],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(P(l||[]),z((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"})));D(e),k(t)}}))}),[r]);const S=n((()=>Ot([...x,...E,...N,...C],"catId")),[x,E,N,C]),[T,M]=t(!1);i((()=>{S.length>=o?M(!0):M(!1),null==d||d(S)}),[S]);return e.createElement(ve,Object.assign({spacing:ge(16)},g),e.createElement(ve,{spacing:ge(8)},e.createElement(p,{size:"p3"},v("pnTopicSection.maxSelectError.detail",{max:o,maxTopic:S.length})),e.createElement(Ne,{ref:f,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:Oe.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:e.createElement(p,{size:"s4",color:"gray.6"},v("pnTopicSection.notFound")),itemComponent:""===u?Tr:Mr,size:"lg",placeholder:v("pnTopicSection.plsEnterFavTopics"),data:L,onSearchChange:b,searchValue:u,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,ce(void 0,void 0,void 0,(function*(){var e;const a={trending:k,recently:B,interested:D,default:w};let n="default";if(T)h({type:"danger",title:v("pnTopicSection.maxSelectError.title",{maxSelect:o}),message:v("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,...L.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:[]}),S&&S.length>0&&e.createElement(Ir,{history:S,onDelete:e=>{const t={trending:k,recently:B,interested:D,default:w};(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(de,{sx:e=>({position:"relative",height:ge(175),[e.fn.largerThan("sm")]:{height:ge(190)}})},e.createElement(de,{sx:{position:"absolute",top:0,right:0,left:0}},e.createElement(Or,{topics:((null==$?void 0:$.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:E,onTopicChange:k,isBlock:T,labelProps:c}))),e.createElement(jr,{topics:((null==$?void 0:$.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:C,onTopicChange:B,isBlock:T,labelProps:c}),e.createElement(Lr,{labelProps:c,topicsGroup:[{label:v("pnTopicSection.ppAlsoInterested"),topics:((null==$?void 0:$.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:N,onTopicChange:D,isBlock:T}))},Fr=()=>{const{t:t}=K(),{action:{pushNotifications:a}}=m(R),{prevStep:n,formValues:i,submitLoading:l,onSubmit:r,selectCategory:o,maxSelectCategory:s,setSelectCategory:c,currentUrl:d,isLoggedIn:p}=m($r);return e.createElement(Pr,{heading:t("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:ge(25)}},stickyActions:e.createElement(e.Fragment,null,e.createElement(Te,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:d,onClick:n},t("healthToolPNModal.back")),e.createElement(Te,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:d,onClick:()=>{if(0===o.length)return a({type:"danger",title:t("newsletter.error.minTitle"),message:t("newsletter.error.minCotennt")}),!1;null==r||r(i.name)},loading:l},t("healthToolPNModal.next")))},e.createElement(_r,{isLoggedIn:p,maxSelect:s,values:i.fitnessTopics,onChange:c,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Hr=()=>{const{t:t}=K(),{close:a,selectCategory:n,onRegisterSuccess:l,currentUrl:r,finishLabelOnResult:o,disclaimerText:s}=m($r);return i((()=>()=>{setTimeout((()=>{null==l||l()}),400)}),[]),e.createElement(Pr,{heading:t("healthToolPNModal.heading"),stickyActions:e.createElement(Te,{fullWidth:!0,sx:{maxWidth:ge(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:r,onClick:()=>{a()}},o||t("healthToolPNModal.finish"))},e.createElement(ve,null,e.createElement(pe,{gap:ge(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:ge(8),padding:ge(8)})},e.createElement(de,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(S,{tag:"h5"},t("healthToolPNModal.yourPre")),n.length>0&&e.createElement(Lr,{topicsGroup:[{label:"",topics:n}],selectedTopics:n,readonly:!0})))},Rr=({isMobile:a,isLoggedIn:n,pnSuggestCategory:l=[],acquisitionInfo:r,currentUrl:s,opened:c,close:d,finishLabelOnResult:p,onRegisterSuccess:g,disclaimerText:h})=>{const{t:u,locale:b}=K(),{action:{pushNotifications:v}}=m(R),y=re.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),f=re.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[x,w]=t([]),[E,k]=t([]),[C,B]=t(0),[N,D]=t({name:"",fitnessTopics:[]}),[$,z]=t(!1),L=()=>B(2),P=o((e=>ce(void 0,void 0,void 0,(function*(){try{z(!0),yield _(W(fr,{website_url:U(b)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:jt.get(le),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},r.userInfo),{name:e||N.name,type_subscription:1}),domain:Q[b||Fe.Vietnam],category:E,perferred:r.preferredTopics.map((({id:e})=>({id:e})))}}),z(!1),yield _(V(Dr),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),L()}catch(e){console.log({err:e}),z(!1),v({title:u("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[N,E]);return i((()=>{[y,f].forEach((e=>{(new Image).src=e}))}),[]),e.createElement($r.Provider,{value:{currentUrl:s,isMobile:a,isLoggedIn:n,opened:c,close:d,pnSuggestCategory:l,nextStep:()=>B((e=>e<3?e+1:e)),prevStep:()=>B((e=>e>0?e-1:e)),lastStep:L,categoryLibs:x,setCategoryLibs:w,selectCategory:E,setSelectCategory:k,formValues:N,setFormValues:D,maxSelectCategory:5,submitLoading:$,onSubmit:P,onRegisterSuccess:g,finishLabelOnResult:p,disclaimerText:h}},e.createElement(Nr,{isMobile:a,desktopBanner:re.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:re.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(De,{active:C,onStepClick:B,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},e.createElement(De.Step,null,e.createElement(Sr,null)),e.createElement(De.Step,null,e.createElement(Fr,null)),e.createElement(De.Step,null,e.createElement(Hr,null)))))},Wr=()=>{const{locale:n}=K(),{isMobile:l,isLoggedIn:r,currentUrl:o,acquisitionInfo:s,categoryIds:c,state:d,setState:p,settings:g,submitHandler:h,subcribeHealthStatus:u,showPNModal:b,setShowPNModal:v,setIsBack:y}=m(br),[f,x]=t([]),[w,E]=t(b);i((()=>{ce(void 0,void 0,void 0,(function*(){var e,t;const a=yield _(W(yr,{_locale:n}),"get"),i=[...(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)||[]];x(i.filter((e=>c.includes(Number(e.catId)))))}))}),[]);const k=a([]);return i((()=>{const e=(null==u?void 0:u.value)||"",t=e.split("|").filter(Boolean);let a=e;k.current.push(u),t.length>1&&(null!==k.current[0]&&y(!0),Object.keys(h).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?h[a]:g;p(n)}),[u]),i((()=>{E(b)}),[b]),(null==d?void 0:d.action)!==pr.Hide?e.createElement(e.Fragment,null,e.createElement(Br,Object.assign({},g.props)),e.createElement(Rr,{acquisitionInfo:s,isMobile:l,isLoggedIn:r,currentUrl:o,pnSuggestCategory:f,opened:w,close:()=>{var e;E(!1),v(!1),setTimeout((()=>{var e;(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:pr.Hide})}),400),(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:pr.Hide})},onRegisterSuccess:()=>E(!1)})):null},Ur=({type:a,articleId:l=0,categoryIds:r=[],isMarketing:o,isSurveyType:s,hasPremiumBanner:c,currentUrl:d,isMobile:p,subcribeHealthStatus:g,setShouldAcquisitionModalOpen:h,onValueChange:u,source:b="discover",Wrapper:v})=>{const{t:y}=K(),{data:{userInfo:f}}=m(R),x=Boolean(null==f?void 0:f.id),[w,E]=t(null),[k,C]=t(),[B,N]=t(""),[D,$]=t(!1),[z,L]=t(!1),P=n((()=>gr[a]),[]),S=((e,t)=>({[cr.Pregnant]:{action:pr.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:mr.Button,thumbnail:{desktop:re.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:re.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:ge(80),[e.fn.largerThan("sm")]:{minWidth:ge(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:pr.ShowTool,props:{value:or.DUE_DATE}},no:{action:pr.ShowPremiumModal}}},[cr.Parenting]:{action:pr.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:re.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:re.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:mr.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:pr.ShowTool,props:{value:or.BABY_VACCINE}},teenager:{action:pr.ShowOptionBanner,props:{styleType:mr.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:re.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:re.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:pr.ShowPremiumModal},"teenager.girl":{action:pr.ShowTool,activeTool:ne.HPV,props:{value:ne.HPV}},"todders|teenager":{action:pr.ShowOptionBanner,props:{styleType:mr.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:re.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:re.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:or.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:pr.ShowOptionBanner,props:{styleType:mr.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:re.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:re.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:or.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(y,d)[P],T=null==S?void 0:S.submitHandler,M=v||de,I=()=>c&&1!==(null==f?void 0:f.subscription)?e.createElement(vr,null):null;return i((()=>{x&&E({userInfo:f,preferredTopics:lr,healthTopics:[]})}),[x]),e.createElement(br.Provider,{value:{settings:S,submitHandler:T,type:a,surveyType:P,value:B,setValue:N,isMobile:p,isLoggedIn:x,isMarketing:o,hasPremiumBanner:c,currentUrl:d,acquisitionInfo:w,categoryIds:r,subcribeHealthStatus:g,articleId:l,onValueChange:u,state:k,setState:C,handleClickOption:e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys(T).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=T[t];a.action===pr.ShowPremiumModal?c?($(!0),C(Object.assign(Object.assign({},k),{actionParams:{hideBannerWhenClose:a.action===pr.ShowPremiumModal}}))):(C({action:pr.Hide}),null==u||u(e)):(C(a),null==u||u(e))}},showPNModal:D,setShowPNModal:$,source:b,Outside:M,isBack:z,setIsBack:L,minHeight:180,setShouldAcquisitionModalOpen:h}},void 0!==g?x?s&&S?(()=>{const t=T[(null==g?void 0:g.value)||""];return(null==t?void 0:t.action)===pr.ShowPremiumModal?I():e.createElement(Wr,null)})():I():c?e.createElement(vr,null):null:null)};export{Rt as A,Wt as B,aa as C,Ta as D,sl as E,Yt as F,Xt as G,hl as H,Ia as I,xl as J,Ol as K,ca as L,ei as M,Wl as N,yl as O,Jt as P,Gl as Q,Qt as R,on as S,ea as T,Yl as U,nr as V,ir as W,Ur as X,gr as Y,hr as Z,Ut as a,ta as b,ra as c,oa as d,fa as e,Ba as f,Da as g,za as h,qa as i,Ya as j,nn as k,pn as l,fn as m,wn as n,en as o,zn as p,Ln as q,Fn as r,Zn as s,Qn as t,ti as u,mi as v,Mi as w,Ri as x,Ki as y,Qi as z};